forge-openclaw-plugin 0.2.25 → 0.2.27

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 (237) hide show
  1. package/README.md +59 -3
  2. package/dist/assets/{board-VmF4FAfr.js → board-C6jCchjI.js} +3 -3
  3. package/dist/assets/{board-VmF4FAfr.js.map → board-C6jCchjI.js.map} +1 -1
  4. package/dist/assets/index-DVvS8iiU.css +1 -0
  5. package/dist/assets/index-zYB-9Dfo.js +85 -0
  6. package/dist/assets/index-zYB-9Dfo.js.map +1 -0
  7. package/dist/assets/knowledge-graph-layout.worker-DRvzPxhP.js +2 -0
  8. package/dist/assets/knowledge-graph-layout.worker-DRvzPxhP.js.map +1 -0
  9. package/dist/assets/{motion-DvkU14p-.js → motion-DFHrH2rd.js} +2 -2
  10. package/dist/assets/{motion-DvkU14p-.js.map → motion-DFHrH2rd.js.map} +1 -1
  11. package/dist/assets/{table-DgiPof9E.js → table-ZL7Di_u3.js} +2 -2
  12. package/dist/assets/{table-DgiPof9E.js.map → table-ZL7Di_u3.js.map} +1 -1
  13. package/dist/assets/{ui-nYfoC0Gq.js → ui-CKNPpz7q.js} +2 -2
  14. package/dist/assets/{ui-nYfoC0Gq.js.map → ui-CKNPpz7q.js.map} +1 -1
  15. package/dist/assets/vendor-DoNZuFhn.js +1247 -0
  16. package/dist/assets/vendor-DoNZuFhn.js.map +1 -0
  17. package/dist/index.html +7 -8
  18. package/dist/openclaw/local-runtime.d.ts +3 -1
  19. package/dist/openclaw/local-runtime.js +67 -15
  20. package/dist/openclaw/plugin-entry-shared.js +24 -2
  21. package/dist/openclaw/plugin-sdk-types.d.ts +17 -0
  22. package/dist/openclaw/routes.d.ts +27 -0
  23. package/dist/openclaw/routes.js +16 -12
  24. package/dist/openclaw/tools.js +0 -3
  25. package/dist/server/server/migrations/001_core.sql +411 -0
  26. package/dist/server/server/migrations/002_psyche.sql +392 -0
  27. package/dist/server/server/migrations/003_habits.sql +30 -0
  28. package/dist/server/server/migrations/004_habit_links.sql +8 -0
  29. package/dist/server/server/migrations/005_habit_psyche_links.sql +24 -0
  30. package/dist/server/server/migrations/006_work_adjustments.sql +14 -0
  31. package/dist/server/server/migrations/007_weekly_review_closures.sql +17 -0
  32. package/dist/server/server/migrations/008_calendar_execution.sql +147 -0
  33. package/dist/server/server/migrations/009_true_calendar_events.sql +195 -0
  34. package/dist/server/server/migrations/010_calendar_selection_state.sql +6 -0
  35. package/dist/server/server/migrations/011_calendar_timezone_backfill.sql +11 -0
  36. package/dist/server/server/migrations/012_work_block_ranges.sql +7 -0
  37. package/dist/server/server/migrations/013_microsoft_local_auth_settings.sql +8 -0
  38. package/dist/server/server/migrations/014_note_tags_and_ephemeral.sql +8 -0
  39. package/dist/server/server/migrations/015_multi_user_and_strategies.sql +244 -0
  40. package/dist/server/server/migrations/016_health_companion.sql +158 -0
  41. package/dist/server/server/migrations/016_strategy_contracts_and_user_graph.sql +22 -0
  42. package/dist/server/server/migrations/017_preferences.sql +131 -0
  43. package/dist/server/server/migrations/018_preference_catalogs.sql +31 -0
  44. package/dist/server/server/migrations/019_wiki_memory.sql +255 -0
  45. package/dist/server/server/migrations/020_wiki_page_hierarchy.sql +11 -0
  46. package/dist/server/server/migrations/021_hide_evidence_from_wiki_index.sql +3 -0
  47. package/dist/server/server/migrations/022_wiki_ingest_background.sql +85 -0
  48. package/dist/server/server/migrations/023_diagnostic_logs.sql +28 -0
  49. package/dist/server/server/migrations/024_questionnaires.sql +96 -0
  50. package/dist/server/server/migrations/025_ai_model_connections.sql +26 -0
  51. package/dist/server/server/migrations/026_custom_theme_settings.sql +2 -0
  52. package/dist/server/server/migrations/027_ai_processors.sql +31 -0
  53. package/dist/server/server/migrations/028_movement_domain.sql +136 -0
  54. package/dist/server/server/migrations/029_watch_micro_capture.sql +23 -0
  55. package/dist/server/server/migrations/030_surface_layouts.sql +5 -0
  56. package/dist/server/server/migrations/031_ai_processor_runtime_upgrades.sql +10 -0
  57. package/dist/server/server/migrations/032_ai_connectors.sql +44 -0
  58. package/dist/server/server/migrations/033_movement_trip_point_sync.sql +36 -0
  59. package/dist/server/server/migrations/034_movement_segment_sync.sql +49 -0
  60. package/dist/server/server/migrations/035_google_local_auth_settings.sql +2 -0
  61. package/dist/server/server/migrations/036_google_local_auth_client_secret.sql +2 -0
  62. package/dist/server/server/migrations/037_workbench_public_inputs_and_run_inputs.sql +5 -0
  63. package/dist/server/server/migrations/038_data_management_settings.sql +11 -0
  64. package/dist/server/server/migrations/039_life_force_and_action_points.sql +114 -0
  65. package/dist/server/server/migrations/040_screen_time_domain.sql +89 -0
  66. package/dist/server/server/migrations/041_companion_source_states.sql +21 -0
  67. package/dist/server/server/migrations/042_movement_boxes.sql +47 -0
  68. package/dist/server/server/migrations/043_movement_box_overlap_overrides.sql +26 -0
  69. package/dist/server/{app.js → server/src/app.js} +2112 -414
  70. package/dist/server/server/src/connectors/box-registry.js +223 -0
  71. package/dist/server/server/src/data-management-types.js +107 -0
  72. package/dist/server/{db.js → server/src/db.js} +72 -4
  73. package/dist/server/server/src/debug.js +19 -0
  74. package/dist/server/{demo-data.js → server/src/demo-data.js} +2 -2
  75. package/dist/server/{health.js → server/src/health.js} +702 -18
  76. package/dist/server/{managers → server/src/managers}/platform/llm-manager.js +7 -4
  77. package/dist/server/server/src/managers/platform/mock-workbench-provider.js +149 -0
  78. package/dist/server/{managers → server/src/managers}/platform/secrets-manager.js +18 -1
  79. package/dist/server/{managers → server/src/managers}/runtime.js +9 -0
  80. package/dist/server/{movement.js → server/src/movement.js} +1971 -112
  81. package/dist/server/{openapi.js → server/src/openapi.js} +491 -3
  82. package/dist/server/{psyche-types.js → server/src/psyche-types.js} +9 -1
  83. package/dist/server/{repositories → server/src/repositories}/activity-events.js +8 -0
  84. package/dist/server/{repositories → server/src/repositories}/ai-connectors.js +758 -47
  85. package/dist/server/{repositories → server/src/repositories}/calendar.js +1 -1
  86. package/dist/server/{repositories → server/src/repositories}/habits.js +37 -1
  87. package/dist/server/{repositories → server/src/repositories}/model-settings.js +13 -3
  88. package/dist/server/{repositories → server/src/repositories}/notes.js +3 -0
  89. package/dist/server/{repositories → server/src/repositories}/settings.js +431 -21
  90. package/dist/server/{repositories → server/src/repositories}/tasks.js +170 -10
  91. package/dist/server/server/src/runtime-data-root.js +82 -0
  92. package/dist/server/server/src/screen-time.js +802 -0
  93. package/dist/server/{services → server/src/services}/calendar-runtime.js +775 -58
  94. package/dist/server/server/src/services/data-management.js +788 -0
  95. package/dist/server/{services → server/src/services}/entity-crud.js +205 -2
  96. package/dist/server/server/src/services/google-calendar-oauth-config.js +176 -0
  97. package/dist/server/server/src/services/knowledge-graph.js +1455 -0
  98. package/dist/server/server/src/services/life-force-model.js +197 -0
  99. package/dist/server/server/src/services/life-force.js +1270 -0
  100. package/dist/server/server/src/services/psyche-observation-calendar.js +413 -0
  101. package/dist/server/{types.js → server/src/types.js} +420 -29
  102. package/dist/server/server/src/web.js +332 -0
  103. package/dist/server/src/components/customization/utility-widgets.js +439 -0
  104. package/dist/server/src/components/ui/info-tooltip.js +25 -0
  105. package/dist/server/src/components/workbench-boxes/calendar/calendar-boxes.js +78 -0
  106. package/dist/server/src/components/workbench-boxes/goals/goals-boxes.js +62 -0
  107. package/dist/server/src/components/workbench-boxes/habits/habits-boxes.js +62 -0
  108. package/dist/server/src/components/workbench-boxes/health/health-boxes.js +147 -0
  109. package/dist/server/src/components/workbench-boxes/insights/insights-boxes.js +50 -0
  110. package/dist/server/src/components/workbench-boxes/kanban/kanban-boxes.js +136 -0
  111. package/dist/server/src/components/workbench-boxes/movement/movement-boxes.js +47 -0
  112. package/dist/server/src/components/workbench-boxes/notes/notes-boxes.js +132 -0
  113. package/dist/server/src/components/workbench-boxes/overview/overview-boxes.js +65 -0
  114. package/dist/server/src/components/workbench-boxes/preferences/preferences-boxes.js +78 -0
  115. package/dist/server/src/components/workbench-boxes/projects/projects-boxes.js +62 -0
  116. package/dist/server/src/components/workbench-boxes/psyche/psyche-boxes.js +88 -0
  117. package/dist/server/src/components/workbench-boxes/questionnaires/questionnaires-boxes.js +61 -0
  118. package/dist/server/src/components/workbench-boxes/review/review-boxes.js +53 -0
  119. package/dist/server/src/components/workbench-boxes/shared/define-workbench-box.js +6 -0
  120. package/dist/server/src/components/workbench-boxes/shared/generic-node-view.js +49 -0
  121. package/dist/server/src/components/workbench-boxes/strategies/strategies-boxes.js +62 -0
  122. package/dist/server/src/components/workbench-boxes/tasks/tasks-boxes.js +76 -0
  123. package/dist/server/src/components/workbench-boxes/today/today-boxes.js +78 -0
  124. package/dist/server/src/components/workbench-boxes/wiki/wiki-boxes.js +60 -0
  125. package/dist/server/src/lib/api-error.js +37 -0
  126. package/dist/server/src/lib/api.js +2118 -0
  127. package/dist/server/src/lib/calendar-name-deduper.js +144 -0
  128. package/dist/server/src/lib/data-management-types.js +1 -0
  129. package/dist/server/src/lib/diagnostics.js +67 -0
  130. package/dist/server/src/lib/entity-visuals.js +279 -0
  131. package/dist/server/src/lib/knowledge-graph-types.js +276 -0
  132. package/dist/server/src/lib/knowledge-graph.js +470 -0
  133. package/dist/server/src/lib/psyche-types.js +1 -0
  134. package/dist/server/src/lib/questionnaire-types.js +1 -0
  135. package/dist/server/src/lib/runtime-paths.js +24 -0
  136. package/dist/server/src/lib/schemas.js +238 -0
  137. package/dist/server/src/lib/snapshot-normalizer.js +416 -0
  138. package/dist/server/src/lib/theme-system.js +319 -0
  139. package/dist/server/src/lib/types.js +1 -0
  140. package/dist/server/src/lib/utils.js +22 -0
  141. package/dist/server/src/lib/workbench/boxes.js +16 -0
  142. package/dist/server/src/lib/workbench/contracts.js +229 -0
  143. package/dist/server/src/lib/workbench/nodes.js +215 -0
  144. package/dist/server/src/lib/workbench/registry.js +120 -0
  145. package/dist/server/src/lib/workbench/runtime.js +397 -0
  146. package/dist/server/src/lib/workbench/tool-catalog.js +68 -0
  147. package/openclaw.plugin.json +1 -1
  148. package/package.json +1 -1
  149. package/server/index.js +68 -0
  150. package/server/migrations/035_google_local_auth_settings.sql +2 -0
  151. package/server/migrations/036_google_local_auth_client_secret.sql +2 -0
  152. package/server/migrations/037_workbench_public_inputs_and_run_inputs.sql +5 -0
  153. package/server/migrations/038_data_management_settings.sql +11 -0
  154. package/server/migrations/039_life_force_and_action_points.sql +114 -0
  155. package/server/migrations/040_screen_time_domain.sql +89 -0
  156. package/server/migrations/041_companion_source_states.sql +21 -0
  157. package/server/migrations/042_movement_boxes.sql +47 -0
  158. package/server/migrations/043_movement_box_overlap_overrides.sql +26 -0
  159. package/skills/forge-openclaw/SKILL.md +27 -11
  160. package/skills/forge-openclaw/entity_conversation_playbooks.md +411 -46
  161. package/skills/forge-openclaw/psyche_entity_playbooks.md +195 -20
  162. package/dist/assets/index-CFCKDIMH.js +0 -67
  163. package/dist/assets/index-CFCKDIMH.js.map +0 -1
  164. package/dist/assets/index-ZPY6U1TU.css +0 -1
  165. package/dist/assets/vendor-D9PTEPSB.js +0 -824
  166. package/dist/assets/vendor-D9PTEPSB.js.map +0 -1
  167. package/dist/assets/viz-Cqb6s--o.js +0 -34
  168. package/dist/assets/viz-Cqb6s--o.js.map +0 -1
  169. package/dist/server/connectors/box-registry.js +0 -257
  170. package/dist/server/services/psyche-observation-calendar.js +0 -46
  171. package/dist/server/web.js +0 -98
  172. /package/dist/server/{discovery-advertiser.js → server/src/discovery-advertiser.js} +0 -0
  173. /package/dist/server/{e2e-server.js → server/src/e2e-server.js} +0 -0
  174. /package/dist/server/{errors.js → server/src/errors.js} +0 -0
  175. /package/dist/server/{index.js → server/src/index.js} +0 -0
  176. /package/dist/server/{managers → server/src/managers}/base.js +0 -0
  177. /package/dist/server/{managers → server/src/managers}/contracts.js +0 -0
  178. /package/dist/server/{managers → server/src/managers}/platform/api-gateway-manager.js +0 -0
  179. /package/dist/server/{managers → server/src/managers}/platform/audit-manager.js +0 -0
  180. /package/dist/server/{managers → server/src/managers}/platform/authentication-manager.js +0 -0
  181. /package/dist/server/{managers → server/src/managers}/platform/authorization-manager.js +0 -0
  182. /package/dist/server/{managers → server/src/managers}/platform/background-job-manager.js +0 -0
  183. /package/dist/server/{managers → server/src/managers}/platform/configuration-manager.js +0 -0
  184. /package/dist/server/{managers → server/src/managers}/platform/database-manager.js +0 -0
  185. /package/dist/server/{managers → server/src/managers}/platform/event-bus-manager.js +0 -0
  186. /package/dist/server/{managers → server/src/managers}/platform/external-service-manager.js +0 -0
  187. /package/dist/server/{managers → server/src/managers}/platform/health-manager.js +0 -0
  188. /package/dist/server/{managers → server/src/managers}/platform/migration-manager.js +0 -0
  189. /package/dist/server/{managers → server/src/managers}/platform/openai-responses-provider.js +0 -0
  190. /package/dist/server/{managers → server/src/managers}/platform/search-index-manager.js +0 -0
  191. /package/dist/server/{managers → server/src/managers}/platform/session-manager.js +0 -0
  192. /package/dist/server/{managers → server/src/managers}/platform/storage-manager.js +0 -0
  193. /package/dist/server/{managers → server/src/managers}/platform/token-manager.js +0 -0
  194. /package/dist/server/{managers → server/src/managers}/platform/transaction-manager.js +0 -0
  195. /package/dist/server/{managers → server/src/managers}/platform/trusted-network.js +0 -0
  196. /package/dist/server/{managers → server/src/managers}/type-guards.js +0 -0
  197. /package/dist/server/{preferences-seeds.js → server/src/preferences-seeds.js} +0 -0
  198. /package/dist/server/{preferences-types.js → server/src/preferences-types.js} +0 -0
  199. /package/dist/server/{questionnaire-flow.js → server/src/questionnaire-flow.js} +0 -0
  200. /package/dist/server/{questionnaire-seeds.js → server/src/questionnaire-seeds.js} +0 -0
  201. /package/dist/server/{questionnaire-types.js → server/src/questionnaire-types.js} +0 -0
  202. /package/dist/server/{repositories → server/src/repositories}/ai-processors.js +0 -0
  203. /package/dist/server/{repositories → server/src/repositories}/collaboration.js +0 -0
  204. /package/dist/server/{repositories → server/src/repositories}/deleted-entities.js +0 -0
  205. /package/dist/server/{repositories → server/src/repositories}/diagnostic-logs.js +0 -0
  206. /package/dist/server/{repositories → server/src/repositories}/domains.js +0 -0
  207. /package/dist/server/{repositories → server/src/repositories}/entity-ownership.js +0 -0
  208. /package/dist/server/{repositories → server/src/repositories}/event-log.js +0 -0
  209. /package/dist/server/{repositories → server/src/repositories}/goals.js +0 -0
  210. /package/dist/server/{repositories → server/src/repositories}/preferences.js +0 -0
  211. /package/dist/server/{repositories → server/src/repositories}/projects.js +0 -0
  212. /package/dist/server/{repositories → server/src/repositories}/psyche.js +0 -0
  213. /package/dist/server/{repositories → server/src/repositories}/questionnaires.js +0 -0
  214. /package/dist/server/{repositories → server/src/repositories}/rewards.js +0 -0
  215. /package/dist/server/{repositories → server/src/repositories}/strategies.js +0 -0
  216. /package/dist/server/{repositories → server/src/repositories}/surface-layouts.js +0 -0
  217. /package/dist/server/{repositories → server/src/repositories}/tags.js +0 -0
  218. /package/dist/server/{repositories → server/src/repositories}/task-runs.js +0 -0
  219. /package/dist/server/{repositories → server/src/repositories}/users.js +0 -0
  220. /package/dist/server/{repositories → server/src/repositories}/weekly-reviews.js +0 -0
  221. /package/dist/server/{repositories → server/src/repositories}/wiki-memory.js +0 -0
  222. /package/dist/server/{repositories → server/src/repositories}/work-adjustments.js +0 -0
  223. /package/dist/server/{seed-demo.js → server/src/seed-demo.js} +0 -0
  224. /package/dist/server/{services → server/src/services}/context.js +0 -0
  225. /package/dist/server/{services → server/src/services}/dashboard.js +0 -0
  226. /package/dist/server/{services → server/src/services}/gamification.js +0 -0
  227. /package/dist/server/{services → server/src/services}/insights.js +0 -0
  228. /package/dist/server/{services → server/src/services}/openai-codex-oauth.js +0 -0
  229. /package/dist/server/{services → server/src/services}/projects.js +0 -0
  230. /package/dist/server/{services → server/src/services}/psyche.js +0 -0
  231. /package/dist/server/{services → server/src/services}/relations.js +0 -0
  232. /package/dist/server/{services → server/src/services}/reviews.js +0 -0
  233. /package/dist/server/{services → server/src/services}/run-recovery.js +0 -0
  234. /package/dist/server/{services → server/src/services}/tagging.js +0 -0
  235. /package/dist/server/{services → server/src/services}/task-run-watchdog.js +0 -0
  236. /package/dist/server/{services → server/src/services}/work-time.js +0 -0
  237. /package/dist/server/{watch-mobile.js → server/src/watch-mobile.js} +0 -0
@@ -0,0 +1,1247 @@
1
+ var qF=Object.defineProperty;var aM=e=>{throw TypeError(e)};var VF=(e,t,n)=>t in e?qF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ic=(e,t,n)=>VF(e,typeof t!="symbol"?t+"":t,n),rw=(e,t,n)=>t.has(e)||aM("Cannot "+n);var Q=(e,t,n)=>(rw(e,t,"read from private field"),n?n.call(e):t.get(e)),qe=(e,t,n)=>t.has(e)?aM("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Te=(e,t,n,r)=>(rw(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),rt=(e,t,n)=>(rw(e,t,"access private method"),n);var cg=(e,t,n,r)=>({set _(i){Te(e,t,i,n)},get _(){return Q(e,t,r)}});function KF(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function ti(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var iw={exports:{}},Td={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var oM;function YF(){if(oM)return Td;oM=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,a){var s=null;if(a!==void 0&&(s=""+a),i.key!==void 0&&(s=""+i.key),"key"in i){a={};for(var u in i)u!=="key"&&(a[u]=i[u])}else a=i;return i=a.ref,{$$typeof:e,type:r,key:s,ref:i!==void 0?i:null,props:a}}return Td.Fragment=t,Td.jsx=n,Td.jsxs=n,Td}var sM;function WF(){return sM||(sM=1,iw.exports=YF()),iw.exports}var ge=WF(),aw={exports:{}},Xe={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var lM;function QF(){if(lM)return Xe;lM=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),g=Symbol.iterator;function v(B){return B===null||typeof B!="object"?null:(B=g&&B[g]||B["@@iterator"],typeof B=="function"?B:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,w={};function _(B,K,X){this.props=B,this.context=K,this.refs=w,this.updater=X||y}_.prototype.isReactComponent={},_.prototype.setState=function(B,K){if(typeof B!="object"&&typeof B!="function"&&B!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,B,K,"setState")},_.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};function C(){}C.prototype=_.prototype;function E(B,K,X){this.props=B,this.context=K,this.refs=w,this.updater=X||y}var S=E.prototype=new C;S.constructor=E,b(S,_.prototype),S.isPureReactComponent=!0;var T=Array.isArray;function O(){}var M={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function R(B,K,X){var ee=X.ref;return{$$typeof:e,type:B,key:K,ref:ee!==void 0?ee:null,props:X}}function z(B,K){return R(B.type,K,B.props)}function D(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function N(B){var K={"=":"=0",":":"=2"};return"$"+B.replace(/[=:]/g,function(X){return K[X]})}var $=/\/+/g;function I(B,K){return typeof B=="object"&&B!==null&&B.key!=null?N(""+B.key):K.toString(36)}function U(B){switch(B.status){case"fulfilled":return B.value;case"rejected":throw B.reason;default:switch(typeof B.status=="string"?B.then(O,O):(B.status="pending",B.then(function(K){B.status==="pending"&&(B.status="fulfilled",B.value=K)},function(K){B.status==="pending"&&(B.status="rejected",B.reason=K)})),B.status){case"fulfilled":return B.value;case"rejected":throw B.reason}}throw B}function j(B,K,X,ee,ce){var he=typeof B;(he==="undefined"||he==="boolean")&&(B=null);var de=!1;if(B===null)de=!0;else switch(he){case"bigint":case"string":case"number":de=!0;break;case"object":switch(B.$$typeof){case e:case t:de=!0;break;case h:return de=B._init,j(de(B._payload),K,X,ee,ce)}}if(de)return ce=ce(B),de=ee===""?"."+I(B,0):ee,T(ce)?(X="",de!=null&&(X=de.replace($,"$&/")+"/"),j(ce,K,X,"",function(pe){return pe})):ce!=null&&(D(ce)&&(ce=z(ce,X+(ce.key==null||B&&B.key===ce.key?"":(""+ce.key).replace($,"$&/")+"/")+de)),K.push(ce)),1;de=0;var ie=ee===""?".":ee+":";if(T(B))for(var J=0;J<B.length;J++)ee=B[J],he=ie+I(ee,J),de+=j(ee,K,X,he,ce);else if(J=v(B),typeof J=="function")for(B=J.call(B),J=0;!(ee=B.next()).done;)ee=ee.value,he=ie+I(ee,J++),de+=j(ee,K,X,he,ce);else if(he==="object"){if(typeof B.then=="function")return j(U(B),K,X,ee,ce);throw K=String(B),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(B).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return de}function G(B,K,X){if(B==null)return B;var ee=[],ce=0;return j(B,ee,"","",function(he){return K.call(X,he,ce++)}),ee}function q(B){if(B._status===-1){var K=B._result;K=K(),K.then(function(X){(B._status===0||B._status===-1)&&(B._status=1,B._result=X)},function(X){(B._status===0||B._status===-1)&&(B._status=2,B._result=X)}),B._status===-1&&(B._status=0,B._result=K)}if(B._status===1)return B._result.default;throw B._result}var H=typeof reportError=="function"?reportError:function(B){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof B=="object"&&B!==null&&typeof B.message=="string"?String(B.message):String(B),error:B});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",B);return}console.error(B)},V={map:G,forEach:function(B,K,X){G(B,function(){K.apply(this,arguments)},X)},count:function(B){var K=0;return G(B,function(){K++}),K},toArray:function(B){return G(B,function(K){return K})||[]},only:function(B){if(!D(B))throw Error("React.Children.only expected to receive a single React element child.");return B}};return Xe.Activity=p,Xe.Children=V,Xe.Component=_,Xe.Fragment=n,Xe.Profiler=i,Xe.PureComponent=E,Xe.StrictMode=r,Xe.Suspense=c,Xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Xe.__COMPILER_RUNTIME={__proto__:null,c:function(B){return M.H.useMemoCache(B)}},Xe.cache=function(B){return function(){return B.apply(null,arguments)}},Xe.cacheSignal=function(){return null},Xe.cloneElement=function(B,K,X){if(B==null)throw Error("The argument must be a React element, but you passed "+B+".");var ee=b({},B.props),ce=B.key;if(K!=null)for(he in K.key!==void 0&&(ce=""+K.key),K)!P.call(K,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&K.ref===void 0||(ee[he]=K[he]);var he=arguments.length-2;if(he===1)ee.children=X;else if(1<he){for(var de=Array(he),ie=0;ie<he;ie++)de[ie]=arguments[ie+2];ee.children=de}return R(B.type,ce,ee)},Xe.createContext=function(B){return B={$$typeof:s,_currentValue:B,_currentValue2:B,_threadCount:0,Provider:null,Consumer:null},B.Provider=B,B.Consumer={$$typeof:a,_context:B},B},Xe.createElement=function(B,K,X){var ee,ce={},he=null;if(K!=null)for(ee in K.key!==void 0&&(he=""+K.key),K)P.call(K,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(ce[ee]=K[ee]);var de=arguments.length-2;if(de===1)ce.children=X;else if(1<de){for(var ie=Array(de),J=0;J<de;J++)ie[J]=arguments[J+2];ce.children=ie}if(B&&B.defaultProps)for(ee in de=B.defaultProps,de)ce[ee]===void 0&&(ce[ee]=de[ee]);return R(B,he,ce)},Xe.createRef=function(){return{current:null}},Xe.forwardRef=function(B){return{$$typeof:u,render:B}},Xe.isValidElement=D,Xe.lazy=function(B){return{$$typeof:h,_payload:{_status:-1,_result:B},_init:q}},Xe.memo=function(B,K){return{$$typeof:f,type:B,compare:K===void 0?null:K}},Xe.startTransition=function(B){var K=M.T,X={};M.T=X;try{var ee=B(),ce=M.S;ce!==null&&ce(X,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(O,H)}catch(he){H(he)}finally{K!==null&&X.types!==null&&(K.types=X.types),M.T=K}},Xe.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Xe.use=function(B){return M.H.use(B)},Xe.useActionState=function(B,K,X){return M.H.useActionState(B,K,X)},Xe.useCallback=function(B,K){return M.H.useCallback(B,K)},Xe.useContext=function(B){return M.H.useContext(B)},Xe.useDebugValue=function(){},Xe.useDeferredValue=function(B,K){return M.H.useDeferredValue(B,K)},Xe.useEffect=function(B,K){return M.H.useEffect(B,K)},Xe.useEffectEvent=function(B){return M.H.useEffectEvent(B)},Xe.useId=function(){return M.H.useId()},Xe.useImperativeHandle=function(B,K,X){return M.H.useImperativeHandle(B,K,X)},Xe.useInsertionEffect=function(B,K){return M.H.useInsertionEffect(B,K)},Xe.useLayoutEffect=function(B,K){return M.H.useLayoutEffect(B,K)},Xe.useMemo=function(B,K){return M.H.useMemo(B,K)},Xe.useOptimistic=function(B,K){return M.H.useOptimistic(B,K)},Xe.useReducer=function(B,K,X){return M.H.useReducer(B,K,X)},Xe.useRef=function(B){return M.H.useRef(B)},Xe.useState=function(B){return M.H.useState(B)},Xe.useSyncExternalStore=function(B,K,X){return M.H.useSyncExternalStore(B,K,X)},Xe.useTransition=function(){return M.H.useTransition()},Xe.version="19.2.4",Xe}var uM;function gf(){return uM||(uM=1,aw.exports=QF()),aw.exports}var k=gf();const cn=ti(k),ZF=KF({__proto__:null,default:cn},[k]);var ow={exports:{}},Md={},sw={exports:{}},lw={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var cM;function XF(){return cM||(cM=1,(function(e){function t(j,G){var q=j.length;j.push(G);e:for(;0<q;){var H=q-1>>>1,V=j[H];if(0<i(V,G))j[H]=G,j[q]=V,q=H;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var G=j[0],q=j.pop();if(q!==G){j[0]=q;e:for(var H=0,V=j.length,B=V>>>1;H<B;){var K=2*(H+1)-1,X=j[K],ee=K+1,ce=j[ee];if(0>i(X,q))ee<V&&0>i(ce,X)?(j[H]=ce,j[ee]=q,H=ee):(j[H]=X,j[K]=q,H=K);else if(ee<V&&0>i(ce,q))j[H]=ce,j[ee]=q,H=ee;else break e}}return G}function i(j,G){var q=j.sortIndex-G.sortIndex;return q!==0?q:j.id-G.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var c=[],f=[],h=1,p=null,g=3,v=!1,y=!1,b=!1,w=!1,_=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function S(j){for(var G=n(f);G!==null;){if(G.callback===null)r(f);else if(G.startTime<=j)r(f),G.sortIndex=G.expirationTime,t(c,G);else break;G=n(f)}}function T(j){if(b=!1,S(j),!y)if(n(c)!==null)y=!0,O||(O=!0,N());else{var G=n(f);G!==null&&U(T,G.startTime-j)}}var O=!1,M=-1,P=5,R=-1;function z(){return w?!0:!(e.unstable_now()-R<P)}function D(){if(w=!1,O){var j=e.unstable_now();R=j;var G=!0;try{e:{y=!1,b&&(b=!1,C(M),M=-1),v=!0;var q=g;try{t:{for(S(j),p=n(c);p!==null&&!(p.expirationTime>j&&z());){var H=p.callback;if(typeof H=="function"){p.callback=null,g=p.priorityLevel;var V=H(p.expirationTime<=j);if(j=e.unstable_now(),typeof V=="function"){p.callback=V,S(j),G=!0;break t}p===n(c)&&r(c),S(j)}else r(c);p=n(c)}if(p!==null)G=!0;else{var B=n(f);B!==null&&U(T,B.startTime-j),G=!1}}break e}finally{p=null,g=q,v=!1}G=void 0}}finally{G?N():O=!1}}}var N;if(typeof E=="function")N=function(){E(D)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,I=$.port2;$.port1.onmessage=D,N=function(){I.postMessage(null)}}else N=function(){_(D,0)};function U(j,G){M=_(function(){j(e.unstable_now())},G)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(j){switch(g){case 1:case 2:case 3:var G=3;break;default:G=g}var q=g;g=G;try{return j()}finally{g=q}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(j,G){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var q=g;g=j;try{return G()}finally{g=q}},e.unstable_scheduleCallback=function(j,G,q){var H=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?H+q:H):q=H,j){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=q+V,j={id:h++,callback:G,priorityLevel:j,startTime:q,expirationTime:V,sortIndex:-1},q>H?(j.sortIndex=q,t(f,j),n(c)===null&&j===n(f)&&(b?(C(M),M=-1):b=!0,U(T,q-H))):(j.sortIndex=V,t(c,j),y||v||(y=!0,O||(O=!0,N()))),j},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(j){var G=g;return function(){var q=g;g=G;try{return j.apply(this,arguments)}finally{g=q}}}})(lw)),lw}var fM;function JF(){return fM||(fM=1,sw.exports=XF()),sw.exports}var uw={exports:{}},ar={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var dM;function eH(){if(dM)return ar;dM=1;var e=gf();function t(c){var f="https://react.dev/errors/"+c;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)f+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+c+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function a(c,f,h){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:c,containerInfo:f,implementation:h}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(c,f){if(c==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return ar.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ar.createPortal=function(c,f){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return a(c,f,null,h)},ar.flushSync=function(c){var f=s.T,h=r.p;try{if(s.T=null,r.p=2,c)return c()}finally{s.T=f,r.p=h,r.d.f()}},ar.preconnect=function(c,f){typeof c=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(c,f))},ar.prefetchDNS=function(c){typeof c=="string"&&r.d.D(c)},ar.preinit=function(c,f){if(typeof c=="string"&&f&&typeof f.as=="string"){var h=f.as,p=u(h,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,v=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;h==="style"?r.d.S(c,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:p,integrity:g,fetchPriority:v}):h==="script"&&r.d.X(c,{crossOrigin:p,integrity:g,fetchPriority:v,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},ar.preinitModule=function(c,f){if(typeof c=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var h=u(f.as,f.crossOrigin);r.d.M(c,{crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(c)},ar.preload=function(c,f){if(typeof c=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var h=f.as,p=u(h,f.crossOrigin);r.d.L(c,h,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},ar.preloadModule=function(c,f){if(typeof c=="string")if(f){var h=u(f.as,f.crossOrigin);r.d.m(c,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(c)},ar.requestFormReset=function(c){r.d.r(c)},ar.unstable_batchedUpdates=function(c,f){return c(f)},ar.useFormState=function(c,f,h){return s.H.useFormState(c,f,h)},ar.useFormStatus=function(){return s.H.useHostTransitionStatus()},ar.version="19.2.4",ar}var hM;function D4(){if(hM)return uw.exports;hM=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),uw.exports=eH(),uw.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var pM;function tH(){if(pM)return Md;pM=1;var e=JF(),t=gf(),n=D4();function r(o){var l="https://react.dev/errors/"+o;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)l+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+o+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function a(o){var l=o,d=o;if(o.alternate)for(;l.return;)l=l.return;else{o=l;do l=o,(l.flags&4098)!==0&&(d=l.return),o=l.return;while(o)}return l.tag===3?d:null}function s(o){if(o.tag===13){var l=o.memoizedState;if(l===null&&(o=o.alternate,o!==null&&(l=o.memoizedState)),l!==null)return l.dehydrated}return null}function u(o){if(o.tag===31){var l=o.memoizedState;if(l===null&&(o=o.alternate,o!==null&&(l=o.memoizedState)),l!==null)return l.dehydrated}return null}function c(o){if(a(o)!==o)throw Error(r(188))}function f(o){var l=o.alternate;if(!l){if(l=a(o),l===null)throw Error(r(188));return l!==o?null:o}for(var d=o,m=l;;){var x=d.return;if(x===null)break;var A=x.alternate;if(A===null){if(m=x.return,m!==null){d=m;continue}break}if(x.child===A.child){for(A=x.child;A;){if(A===d)return c(x),o;if(A===m)return c(x),l;A=A.sibling}throw Error(r(188))}if(d.return!==m.return)d=x,m=A;else{for(var L=!1,F=x.child;F;){if(F===d){L=!0,d=x,m=A;break}if(F===m){L=!0,m=x,d=A;break}F=F.sibling}if(!L){for(F=A.child;F;){if(F===d){L=!0,d=A,m=x;break}if(F===m){L=!0,m=A,d=x;break}F=F.sibling}if(!L)throw Error(r(189))}}if(d.alternate!==m)throw Error(r(190))}if(d.tag!==3)throw Error(r(188));return d.stateNode.current===d?o:l}function h(o){var l=o.tag;if(l===5||l===26||l===27||l===6)return o;for(o=o.child;o!==null;){if(l=h(o),l!==null)return l;o=o.sibling}return null}var p=Object.assign,g=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),E=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),z=Symbol.for("react.memo_cache_sentinel"),D=Symbol.iterator;function N(o){return o===null||typeof o!="object"?null:(o=D&&o[D]||o["@@iterator"],typeof o=="function"?o:null)}var $=Symbol.for("react.client.reference");function I(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===$?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case b:return"Fragment";case _:return"Profiler";case w:return"StrictMode";case T:return"Suspense";case O:return"SuspenseList";case R:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case y:return"Portal";case E:return o.displayName||"Context";case C:return(o._context.displayName||"Context")+".Consumer";case S:var l=o.render;return o=o.displayName,o||(o=l.displayName||l.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case M:return l=o.displayName||null,l!==null?l:I(o.type)||"Memo";case P:l=o._payload,o=o._init;try{return I(o(l))}catch{}}return null}var U=Array.isArray,j=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q={pending:!1,data:null,method:null,action:null},H=[],V=-1;function B(o){return{current:o}}function K(o){0>V||(o.current=H[V],H[V]=null,V--)}function X(o,l){V++,H[V]=o.current,o.current=l}var ee=B(null),ce=B(null),he=B(null),de=B(null);function ie(o,l){switch(X(he,l),X(ce,o),X(ee,null),l.nodeType){case 9:case 11:o=(o=l.documentElement)&&(o=o.namespaceURI)?OT(o):0;break;default:if(o=l.tagName,l=l.namespaceURI)l=OT(l),o=TT(l,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}K(ee),X(ee,o)}function J(){K(ee),K(ce),K(he)}function pe(o){o.memoizedState!==null&&X(de,o);var l=ee.current,d=TT(l,o.type);l!==d&&(X(ce,o),X(ee,d))}function ye(o){ce.current===o&&(K(ee),K(ce)),de.current===o&&(K(de),Ad._currentValue=q)}var te,Ce;function Se(o){if(te===void 0)try{throw Error()}catch(d){var l=d.stack.trim().match(/\n( *(at )?)/);te=l&&l[1]||"",Ce=-1<d.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+te+o+Ce}var Ye=!1;function Ie(o,l){if(!o||Ye)return"";Ye=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(l){var we=function(){throw Error()};if(Object.defineProperty(we.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(we,[])}catch(me){var fe=me}Reflect.construct(o,[],we)}else{try{we.call()}catch(me){fe=me}o.call(we.prototype)}}else{try{throw Error()}catch(me){fe=me}(we=o())&&typeof we.catch=="function"&&we.catch(function(){})}}catch(me){if(me&&fe&&typeof me.stack=="string")return[me.stack,fe.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var x=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");x&&x.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var A=m.DetermineComponentFrameRoot(),L=A[0],F=A[1];if(L&&F){var Y=L.split(`
44
+ `),se=F.split(`
45
+ `);for(x=m=0;m<Y.length&&!Y[m].includes("DetermineComponentFrameRoot");)m++;for(;x<se.length&&!se[x].includes("DetermineComponentFrameRoot");)x++;if(m===Y.length||x===se.length)for(m=Y.length-1,x=se.length-1;1<=m&&0<=x&&Y[m]!==se[x];)x--;for(;1<=m&&0<=x;m--,x--)if(Y[m]!==se[x]){if(m!==1||x!==1)do if(m--,x--,0>x||Y[m]!==se[x]){var ve=`
46
+ `+Y[m].replace(" at new "," at ");return o.displayName&&ve.includes("<anonymous>")&&(ve=ve.replace("<anonymous>",o.displayName)),ve}while(1<=m&&0<=x);break}}}finally{Ye=!1,Error.prepareStackTrace=d}return(d=o?o.displayName||o.name:"")?Se(d):""}function ut(o,l){switch(o.tag){case 26:case 27:case 5:return Se(o.type);case 16:return Se("Lazy");case 13:return o.child!==l&&l!==null?Se("Suspense Fallback"):Se("Suspense");case 19:return Se("SuspenseList");case 0:case 15:return Ie(o.type,!1);case 11:return Ie(o.type.render,!1);case 1:return Ie(o.type,!0);case 31:return Se("Activity");default:return""}}function jt(o){try{var l="",d=null;do l+=ut(o,d),d=o,o=o.return;while(o);return l}catch(m){return`
47
+ Error generating stack: `+m.message+`
48
+ `+m.stack}}var Zt=Object.prototype.hasOwnProperty,nr=e.unstable_scheduleCallback,rr=e.unstable_cancelCallback,W=e.unstable_shouldYield,re=e.unstable_requestPaint,ae=e.unstable_now,Oe=e.unstable_getCurrentPriorityLevel,_e=e.unstable_ImmediatePriority,Ee=e.unstable_UserBlockingPriority,Re=e.unstable_NormalPriority,Ze=e.unstable_LowPriority,ct=e.unstable_IdlePriority,Hn=e.log,xr=e.unstable_setDisableYieldValue,Xt=null,Gn=null;function _r(o){if(typeof Hn=="function"&&xr(o),Gn&&typeof Gn.setStrictMode=="function")try{Gn.setStrictMode(Xt,o)}catch{}}var _n=Math.clz32?Math.clz32:If,Df=Math.log,bu=Math.LN2;function If(o){return o>>>=0,o===0?32:31-(Df(o)/bu|0)|0}var ka=256,wu=262144,xu=4194304;function Ca(o){var l=o&42;if(l!==0)return l;switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function _u(o,l,d){var m=o.pendingLanes;if(m===0)return 0;var x=0,A=o.suspendedLanes,L=o.pingedLanes;o=o.warmLanes;var F=m&134217727;return F!==0?(m=F&~A,m!==0?x=Ca(m):(L&=F,L!==0?x=Ca(L):d||(d=F&~o,d!==0&&(x=Ca(d))))):(F=m&~A,F!==0?x=Ca(F):L!==0?x=Ca(L):d||(d=m&~o,d!==0&&(x=Ca(d)))),x===0?0:l!==0&&l!==x&&(l&A)===0&&(A=x&-x,d=l&-l,A>=d||A===32&&(d&4194048)!==0)?l:x}function Qs(o,l){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&l)===0}function V0(o,l){switch(o){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Up(){var o=xu;return xu<<=1,(xu&62914560)===0&&(xu=4194304),o}function Lf(o){for(var l=[],d=0;31>d;d++)l.push(o);return l}function Zs(o,l){o.pendingLanes|=l,l!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function K0(o,l,d,m,x,A){var L=o.pendingLanes;o.pendingLanes=d,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=d,o.entangledLanes&=d,o.errorRecoveryDisabledLanes&=d,o.shellSuspendCounter=0;var F=o.entanglements,Y=o.expirationTimes,se=o.hiddenUpdates;for(d=L&~d;0<d;){var ve=31-_n(d),we=1<<ve;F[ve]=0,Y[ve]=-1;var fe=se[ve];if(fe!==null)for(se[ve]=null,ve=0;ve<fe.length;ve++){var me=fe[ve];me!==null&&(me.lane&=-536870913)}d&=~we}m!==0&&Fp(o,m,0),A!==0&&x===0&&o.tag!==0&&(o.suspendedLanes|=A&~(L&~l))}function Fp(o,l,d){o.pendingLanes|=l,o.suspendedLanes&=~l;var m=31-_n(l);o.entangledLanes|=l,o.entanglements[m]=o.entanglements[m]|1073741824|d&261930}function Hp(o,l){var d=o.entangledLanes|=l;for(o=o.entanglements;d;){var m=31-_n(d),x=1<<m;x&l|o[m]&l&&(o[m]|=l),d&=~x}}function Gp(o,l){var d=l&-l;return d=(d&42)!==0?1:zf(d),(d&(o.suspendedLanes|l))!==0?0:d}function zf(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function jf(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function qp(){var o=G.p;return o!==0?o:(o=window.event,o===void 0?32:XT(o.type))}function Vp(o,l){var d=G.p;try{return G.p=o,l()}finally{G.p=d}}var Qi=Math.random().toString(36).slice(2),Sn="__reactFiber$"+Qi,ir="__reactProps$"+Qi,Oa="__reactContainer$"+Qi,Su="__reactEvents$"+Qi,Kp="__reactListeners$"+Qi,Y0="__reactHandles$"+Qi,Yp="__reactResources$"+Qi,Xs="__reactMarker$"+Qi;function $f(o){delete o[Sn],delete o[ir],delete o[Su],delete o[Kp],delete o[Y0]}function Lo(o){var l=o[Sn];if(l)return l;for(var d=o.parentNode;d;){if(l=d[Oa]||d[Sn]){if(d=l.alternate,l.child!==null||d!==null&&d.child!==null)for(o=LT(o);o!==null;){if(d=o[Sn])return d;o=LT(o)}return l}o=d,d=o.parentNode}return null}function zo(o){if(o=o[Sn]||o[Oa]){var l=o.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return o}return null}function jo(o){var l=o.tag;if(l===5||l===26||l===27||l===6)return o.stateNode;throw Error(r(33))}function $o(o){var l=o[Yp];return l||(l=o[Yp]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function hn(o){o[Xs]=!0}var Wp=new Set,Qp={};function Ta(o,l){Bo(o,l),Bo(o+"Capture",l)}function Bo(o,l){for(Qp[o]=l,o=0;o<l.length;o++)Wp.add(l[o])}var W0=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Bf={},Zp={};function Q0(o){return Zt.call(Zp,o)?!0:Zt.call(Bf,o)?!1:W0.test(o)?Zp[o]=!0:(Bf[o]=!0,!1)}function Eu(o,l,d){if(Q0(l))if(d===null)o.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":o.removeAttribute(l);return;case"boolean":var m=l.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){o.removeAttribute(l);return}}o.setAttribute(l,""+d)}}function Au(o,l,d){if(d===null)o.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(l);return}o.setAttribute(l,""+d)}}function Ci(o,l,d,m){if(m===null)o.removeAttribute(d);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(d);return}o.setAttributeNS(l,d,""+m)}}function Sr(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Xp(o){var l=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Z0(o,l,d){var m=Object.getOwnPropertyDescriptor(o.constructor.prototype,l);if(!o.hasOwnProperty(l)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var x=m.get,A=m.set;return Object.defineProperty(o,l,{configurable:!0,get:function(){return x.call(this)},set:function(L){d=""+L,A.call(this,L)}}),Object.defineProperty(o,l,{enumerable:m.enumerable}),{getValue:function(){return d},setValue:function(L){d=""+L},stopTracking:function(){o._valueTracker=null,delete o[l]}}}}function Uo(o){if(!o._valueTracker){var l=Xp(o)?"checked":"value";o._valueTracker=Z0(o,l,""+o[l])}}function Jp(o){if(!o)return!1;var l=o._valueTracker;if(!l)return!0;var d=l.getValue(),m="";return o&&(m=Xp(o)?o.checked?"true":"false":o.value),o=m,o!==d?(l.setValue(o),!0):!1}function Js(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var X0=/[\n"\\]/g;function Er(o){return o.replace(X0,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function el(o,l,d,m,x,A,L,F){o.name="",L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"?o.type=L:o.removeAttribute("type"),l!=null?L==="number"?(l===0&&o.value===""||o.value!=l)&&(o.value=""+Sr(l)):o.value!==""+Sr(l)&&(o.value=""+Sr(l)):L!=="submit"&&L!=="reset"||o.removeAttribute("value"),l!=null?Uf(o,L,Sr(l)):d!=null?Uf(o,L,Sr(d)):m!=null&&o.removeAttribute("value"),x==null&&A!=null&&(o.defaultChecked=!!A),x!=null&&(o.checked=x&&typeof x!="function"&&typeof x!="symbol"),F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"?o.name=""+Sr(F):o.removeAttribute("name")}function em(o,l,d,m,x,A,L,F){if(A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(o.type=A),l!=null||d!=null){if(!(A!=="submit"&&A!=="reset"||l!=null)){Uo(o);return}d=d!=null?""+Sr(d):"",l=l!=null?""+Sr(l):d,F||l===o.value||(o.value=l),o.defaultValue=l}m=m??x,m=typeof m!="function"&&typeof m!="symbol"&&!!m,o.checked=F?o.checked:!!m,o.defaultChecked=!!m,L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"&&(o.name=L),Uo(o)}function Uf(o,l,d){l==="number"&&Js(o.ownerDocument)===o||o.defaultValue===""+d||(o.defaultValue=""+d)}function Ma(o,l,d,m){if(o=o.options,l){l={};for(var x=0;x<d.length;x++)l["$"+d[x]]=!0;for(d=0;d<o.length;d++)x=l.hasOwnProperty("$"+o[d].value),o[d].selected!==x&&(o[d].selected=x),x&&m&&(o[d].defaultSelected=!0)}else{for(d=""+Sr(d),l=null,x=0;x<o.length;x++){if(o[x].value===d){o[x].selected=!0,m&&(o[x].defaultSelected=!0);return}l!==null||o[x].disabled||(l=o[x])}l!==null&&(l.selected=!0)}}function Sk(o,l,d){if(l!=null&&(l=""+Sr(l),l!==o.value&&(o.value=l),d==null)){o.defaultValue!==l&&(o.defaultValue=l);return}o.defaultValue=d!=null?""+Sr(d):""}function Ek(o,l,d,m){if(l==null){if(m!=null){if(d!=null)throw Error(r(92));if(U(m)){if(1<m.length)throw Error(r(93));m=m[0]}d=m}d==null&&(d=""),l=d}d=Sr(l),o.defaultValue=d,m=o.textContent,m===d&&m!==""&&m!==null&&(o.value=m),Uo(o)}function ku(o,l){if(l){var d=o.firstChild;if(d&&d===o.lastChild&&d.nodeType===3){d.nodeValue=l;return}}o.textContent=l}var BU=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Ak(o,l,d){var m=l.indexOf("--")===0;d==null||typeof d=="boolean"||d===""?m?o.setProperty(l,""):l==="float"?o.cssFloat="":o[l]="":m?o.setProperty(l,d):typeof d!="number"||d===0||BU.has(l)?l==="float"?o.cssFloat=d:o[l]=(""+d).trim():o[l]=d+"px"}function kk(o,l,d){if(l!=null&&typeof l!="object")throw Error(r(62));if(o=o.style,d!=null){for(var m in d)!d.hasOwnProperty(m)||l!=null&&l.hasOwnProperty(m)||(m.indexOf("--")===0?o.setProperty(m,""):m==="float"?o.cssFloat="":o[m]="");for(var x in l)m=l[x],l.hasOwnProperty(x)&&d[x]!==m&&Ak(o,x,m)}else for(var A in l)l.hasOwnProperty(A)&&Ak(o,A,l[A])}function J0(o){if(o.indexOf("-")===-1)return!1;switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var UU=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),FU=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function tm(o){return FU.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function Pa(){}var eb=null;function tb(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var Cu=null,Ou=null;function Ck(o){var l=zo(o);if(l&&(o=l.stateNode)){var d=o[ir]||null;e:switch(o=l.stateNode,l.type){case"input":if(el(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name),l=d.name,d.type==="radio"&&l!=null){for(d=o;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll('input[name="'+Er(""+l)+'"][type="radio"]'),l=0;l<d.length;l++){var m=d[l];if(m!==o&&m.form===o.form){var x=m[ir]||null;if(!x)throw Error(r(90));el(m,x.value,x.defaultValue,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name)}}for(l=0;l<d.length;l++)m=d[l],m.form===o.form&&Jp(m)}break e;case"textarea":Sk(o,d.value,d.defaultValue);break e;case"select":l=d.value,l!=null&&Ma(o,!!d.multiple,l,!1)}}}var nb=!1;function Ok(o,l,d){if(nb)return o(l,d);nb=!0;try{var m=o(l);return m}finally{if(nb=!1,(Cu!==null||Ou!==null)&&(Fm(),Cu&&(l=Cu,o=Ou,Ou=Cu=null,Ck(l),o)))for(l=0;l<o.length;l++)Ck(o[l])}}function Ff(o,l){var d=o.stateNode;if(d===null)return null;var m=d[ir]||null;if(m===null)return null;d=m[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(o=o.type,m=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!m;break e;default:o=!1}if(o)return null;if(d&&typeof d!="function")throw Error(r(231,l,typeof d));return d}var Na=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rb=!1;if(Na)try{var Hf={};Object.defineProperty(Hf,"passive",{get:function(){rb=!0}}),window.addEventListener("test",Hf,Hf),window.removeEventListener("test",Hf,Hf)}catch{rb=!1}var Fo=null,ib=null,nm=null;function Tk(){if(nm)return nm;var o,l=ib,d=l.length,m,x="value"in Fo?Fo.value:Fo.textContent,A=x.length;for(o=0;o<d&&l[o]===x[o];o++);var L=d-o;for(m=1;m<=L&&l[d-m]===x[A-m];m++);return nm=x.slice(o,1<m?1-m:void 0)}function rm(o){var l=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&l===13&&(o=13)):o=l,o===10&&(o=13),32<=o||o===13?o:0}function im(){return!0}function Mk(){return!1}function Ar(o){function l(d,m,x,A,L){this._reactName=d,this._targetInst=x,this.type=m,this.nativeEvent=A,this.target=L,this.currentTarget=null;for(var F in o)o.hasOwnProperty(F)&&(d=o[F],this[F]=d?d(A):A[F]);return this.isDefaultPrevented=(A.defaultPrevented!=null?A.defaultPrevented:A.returnValue===!1)?im:Mk,this.isPropagationStopped=Mk,this}return p(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=im)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=im)},persist:function(){},isPersistent:im}),l}var tl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},am=Ar(tl),Gf=p({},tl,{view:0,detail:0}),HU=Ar(Gf),ab,ob,qf,om=p({},Gf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lb,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==qf&&(qf&&o.type==="mousemove"?(ab=o.screenX-qf.screenX,ob=o.screenY-qf.screenY):ob=ab=0,qf=o),ab)},movementY:function(o){return"movementY"in o?o.movementY:ob}}),Pk=Ar(om),GU=p({},om,{dataTransfer:0}),qU=Ar(GU),VU=p({},Gf,{relatedTarget:0}),sb=Ar(VU),KU=p({},tl,{animationName:0,elapsedTime:0,pseudoElement:0}),YU=Ar(KU),WU=p({},tl,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),QU=Ar(WU),ZU=p({},tl,{data:0}),Nk=Ar(ZU),XU={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},JU={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},e7={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function t7(o){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(o):(o=e7[o])?!!l[o]:!1}function lb(){return t7}var n7=p({},Gf,{key:function(o){if(o.key){var l=XU[o.key]||o.key;if(l!=="Unidentified")return l}return o.type==="keypress"?(o=rm(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?JU[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lb,charCode:function(o){return o.type==="keypress"?rm(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?rm(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),r7=Ar(n7),i7=p({},om,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rk=Ar(i7),a7=p({},Gf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lb}),o7=Ar(a7),s7=p({},tl,{propertyName:0,elapsedTime:0,pseudoElement:0}),l7=Ar(s7),u7=p({},om,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),c7=Ar(u7),f7=p({},tl,{newState:0,oldState:0}),d7=Ar(f7),h7=[9,13,27,32],ub=Na&&"CompositionEvent"in window,Vf=null;Na&&"documentMode"in document&&(Vf=document.documentMode);var p7=Na&&"TextEvent"in window&&!Vf,Dk=Na&&(!ub||Vf&&8<Vf&&11>=Vf),Ik=" ",Lk=!1;function zk(o,l){switch(o){case"keyup":return h7.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jk(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Tu=!1;function m7(o,l){switch(o){case"compositionend":return jk(l);case"keypress":return l.which!==32?null:(Lk=!0,Ik);case"textInput":return o=l.data,o===Ik&&Lk?null:o;default:return null}}function g7(o,l){if(Tu)return o==="compositionend"||!ub&&zk(o,l)?(o=Tk(),nm=ib=Fo=null,Tu=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return Dk&&l.locale!=="ko"?null:l.data;default:return null}}var v7={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function $k(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l==="input"?!!v7[o.type]:l==="textarea"}function Bk(o,l,d,m){Cu?Ou?Ou.push(m):Ou=[m]:Cu=m,l=Wm(l,"onChange"),0<l.length&&(d=new am("onChange","change",null,d,m),o.push({event:d,listeners:l}))}var Kf=null,Yf=null;function y7(o){_T(o,0)}function sm(o){var l=jo(o);if(Jp(l))return o}function Uk(o,l){if(o==="change")return l}var Fk=!1;if(Na){var cb;if(Na){var fb="oninput"in document;if(!fb){var Hk=document.createElement("div");Hk.setAttribute("oninput","return;"),fb=typeof Hk.oninput=="function"}cb=fb}else cb=!1;Fk=cb&&(!document.documentMode||9<document.documentMode)}function Gk(){Kf&&(Kf.detachEvent("onpropertychange",qk),Yf=Kf=null)}function qk(o){if(o.propertyName==="value"&&sm(Yf)){var l=[];Bk(l,Yf,o,tb(o)),Ok(y7,l)}}function b7(o,l,d){o==="focusin"?(Gk(),Kf=l,Yf=d,Kf.attachEvent("onpropertychange",qk)):o==="focusout"&&Gk()}function w7(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return sm(Yf)}function x7(o,l){if(o==="click")return sm(l)}function _7(o,l){if(o==="input"||o==="change")return sm(l)}function S7(o,l){return o===l&&(o!==0||1/o===1/l)||o!==o&&l!==l}var zr=typeof Object.is=="function"?Object.is:S7;function Wf(o,l){if(zr(o,l))return!0;if(typeof o!="object"||o===null||typeof l!="object"||l===null)return!1;var d=Object.keys(o),m=Object.keys(l);if(d.length!==m.length)return!1;for(m=0;m<d.length;m++){var x=d[m];if(!Zt.call(l,x)||!zr(o[x],l[x]))return!1}return!0}function Vk(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function Kk(o,l){var d=Vk(o);o=0;for(var m;d;){if(d.nodeType===3){if(m=o+d.textContent.length,o<=l&&m>=l)return{node:d,offset:l-o};o=m}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=Vk(d)}}function Yk(o,l){return o&&l?o===l?!0:o&&o.nodeType===3?!1:l&&l.nodeType===3?Yk(o,l.parentNode):"contains"in o?o.contains(l):o.compareDocumentPosition?!!(o.compareDocumentPosition(l)&16):!1:!1}function Wk(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var l=Js(o.document);l instanceof o.HTMLIFrameElement;){try{var d=typeof l.contentWindow.location.href=="string"}catch{d=!1}if(d)o=l.contentWindow;else break;l=Js(o.document)}return l}function db(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l&&(l==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||l==="textarea"||o.contentEditable==="true")}var E7=Na&&"documentMode"in document&&11>=document.documentMode,Mu=null,hb=null,Qf=null,pb=!1;function Qk(o,l,d){var m=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;pb||Mu==null||Mu!==Js(m)||(m=Mu,"selectionStart"in m&&db(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),Qf&&Wf(Qf,m)||(Qf=m,m=Wm(hb,"onSelect"),0<m.length&&(l=new am("onSelect","select",null,l,d),o.push({event:l,listeners:m}),l.target=Mu)))}function nl(o,l){var d={};return d[o.toLowerCase()]=l.toLowerCase(),d["Webkit"+o]="webkit"+l,d["Moz"+o]="moz"+l,d}var Pu={animationend:nl("Animation","AnimationEnd"),animationiteration:nl("Animation","AnimationIteration"),animationstart:nl("Animation","AnimationStart"),transitionrun:nl("Transition","TransitionRun"),transitionstart:nl("Transition","TransitionStart"),transitioncancel:nl("Transition","TransitionCancel"),transitionend:nl("Transition","TransitionEnd")},mb={},Zk={};Na&&(Zk=document.createElement("div").style,"AnimationEvent"in window||(delete Pu.animationend.animation,delete Pu.animationiteration.animation,delete Pu.animationstart.animation),"TransitionEvent"in window||delete Pu.transitionend.transition);function rl(o){if(mb[o])return mb[o];if(!Pu[o])return o;var l=Pu[o],d;for(d in l)if(l.hasOwnProperty(d)&&d in Zk)return mb[o]=l[d];return o}var Xk=rl("animationend"),Jk=rl("animationiteration"),eC=rl("animationstart"),A7=rl("transitionrun"),k7=rl("transitionstart"),C7=rl("transitioncancel"),tC=rl("transitionend"),nC=new Map,gb="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");gb.push("scrollEnd");function Oi(o,l){nC.set(o,l),Ta(l,[o])}var lm=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},ii=[],Nu=0,vb=0;function um(){for(var o=Nu,l=vb=Nu=0;l<o;){var d=ii[l];ii[l++]=null;var m=ii[l];ii[l++]=null;var x=ii[l];ii[l++]=null;var A=ii[l];if(ii[l++]=null,m!==null&&x!==null){var L=m.pending;L===null?x.next=x:(x.next=L.next,L.next=x),m.pending=x}A!==0&&rC(d,x,A)}}function cm(o,l,d,m){ii[Nu++]=o,ii[Nu++]=l,ii[Nu++]=d,ii[Nu++]=m,vb|=m,o.lanes|=m,o=o.alternate,o!==null&&(o.lanes|=m)}function yb(o,l,d,m){return cm(o,l,d,m),fm(o)}function il(o,l){return cm(o,null,null,l),fm(o)}function rC(o,l,d){o.lanes|=d;var m=o.alternate;m!==null&&(m.lanes|=d);for(var x=!1,A=o.return;A!==null;)A.childLanes|=d,m=A.alternate,m!==null&&(m.childLanes|=d),A.tag===22&&(o=A.stateNode,o===null||o._visibility&1||(x=!0)),o=A,A=A.return;return o.tag===3?(A=o.stateNode,x&&l!==null&&(x=31-_n(d),o=A.hiddenUpdates,m=o[x],m===null?o[x]=[l]:m.push(l),l.lane=d|536870912),A):null}function fm(o){if(50<yd)throw yd=0,C1=null,Error(r(185));for(var l=o.return;l!==null;)o=l,l=o.return;return o.tag===3?o.stateNode:null}var Ru={};function O7(o,l,d,m){this.tag=o,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jr(o,l,d,m){return new O7(o,l,d,m)}function bb(o){return o=o.prototype,!(!o||!o.isReactComponent)}function Ra(o,l){var d=o.alternate;return d===null?(d=jr(o.tag,l,o.key,o.mode),d.elementType=o.elementType,d.type=o.type,d.stateNode=o.stateNode,d.alternate=o,o.alternate=d):(d.pendingProps=l,d.type=o.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=o.flags&65011712,d.childLanes=o.childLanes,d.lanes=o.lanes,d.child=o.child,d.memoizedProps=o.memoizedProps,d.memoizedState=o.memoizedState,d.updateQueue=o.updateQueue,l=o.dependencies,d.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},d.sibling=o.sibling,d.index=o.index,d.ref=o.ref,d.refCleanup=o.refCleanup,d}function iC(o,l){o.flags&=65011714;var d=o.alternate;return d===null?(o.childLanes=0,o.lanes=l,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=d.childLanes,o.lanes=d.lanes,o.child=d.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=d.memoizedProps,o.memoizedState=d.memoizedState,o.updateQueue=d.updateQueue,o.type=d.type,l=d.dependencies,o.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),o}function dm(o,l,d,m,x,A){var L=0;if(m=o,typeof o=="function")bb(o)&&(L=1);else if(typeof o=="string")L=RF(o,d,ee.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case R:return o=jr(31,d,l,x),o.elementType=R,o.lanes=A,o;case b:return al(d.children,x,A,l);case w:L=8,x|=24;break;case _:return o=jr(12,d,l,x|2),o.elementType=_,o.lanes=A,o;case T:return o=jr(13,d,l,x),o.elementType=T,o.lanes=A,o;case O:return o=jr(19,d,l,x),o.elementType=O,o.lanes=A,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case E:L=10;break e;case C:L=9;break e;case S:L=11;break e;case M:L=14;break e;case P:L=16,m=null;break e}L=29,d=Error(r(130,o===null?"null":typeof o,"")),m=null}return l=jr(L,d,l,x),l.elementType=o,l.type=m,l.lanes=A,l}function al(o,l,d,m){return o=jr(7,o,m,l),o.lanes=d,o}function wb(o,l,d){return o=jr(6,o,null,l),o.lanes=d,o}function aC(o){var l=jr(18,null,null,0);return l.stateNode=o,l}function xb(o,l,d){return l=jr(4,o.children!==null?o.children:[],o.key,l),l.lanes=d,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}var oC=new WeakMap;function ai(o,l){if(typeof o=="object"&&o!==null){var d=oC.get(o);return d!==void 0?d:(l={value:o,source:l,stack:jt(l)},oC.set(o,l),l)}return{value:o,source:l,stack:jt(l)}}var Du=[],Iu=0,hm=null,Zf=0,oi=[],si=0,Ho=null,Zi=1,Xi="";function Da(o,l){Du[Iu++]=Zf,Du[Iu++]=hm,hm=o,Zf=l}function sC(o,l,d){oi[si++]=Zi,oi[si++]=Xi,oi[si++]=Ho,Ho=o;var m=Zi;o=Xi;var x=32-_n(m)-1;m&=~(1<<x),d+=1;var A=32-_n(l)+x;if(30<A){var L=x-x%5;A=(m&(1<<L)-1).toString(32),m>>=L,x-=L,Zi=1<<32-_n(l)+x|d<<x|m,Xi=A+o}else Zi=1<<A|d<<x|m,Xi=o}function _b(o){o.return!==null&&(Da(o,1),sC(o,1,0))}function Sb(o){for(;o===hm;)hm=Du[--Iu],Du[Iu]=null,Zf=Du[--Iu],Du[Iu]=null;for(;o===Ho;)Ho=oi[--si],oi[si]=null,Xi=oi[--si],oi[si]=null,Zi=oi[--si],oi[si]=null}function lC(o,l){oi[si++]=Zi,oi[si++]=Xi,oi[si++]=Ho,Zi=l.id,Xi=l.overflow,Ho=o}var qn=null,$t=null,ht=!1,Go=null,li=!1,Eb=Error(r(519));function qo(o){var l=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Xf(ai(l,o)),Eb}function uC(o){var l=o.stateNode,d=o.type,m=o.memoizedProps;switch(l[Sn]=o,l[ir]=m,d){case"dialog":lt("cancel",l),lt("close",l);break;case"iframe":case"object":case"embed":lt("load",l);break;case"video":case"audio":for(d=0;d<wd.length;d++)lt(wd[d],l);break;case"source":lt("error",l);break;case"img":case"image":case"link":lt("error",l),lt("load",l);break;case"details":lt("toggle",l);break;case"input":lt("invalid",l),em(l,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0);break;case"select":lt("invalid",l);break;case"textarea":lt("invalid",l),Ek(l,m.value,m.defaultValue,m.children)}d=m.children,typeof d!="string"&&typeof d!="number"&&typeof d!="bigint"||l.textContent===""+d||m.suppressHydrationWarning===!0||kT(l.textContent,d)?(m.popover!=null&&(lt("beforetoggle",l),lt("toggle",l)),m.onScroll!=null&&lt("scroll",l),m.onScrollEnd!=null&&lt("scrollend",l),m.onClick!=null&&(l.onclick=Pa),l=!0):l=!1,l||qo(o,!0)}function cC(o){for(qn=o.return;qn;)switch(qn.tag){case 5:case 31:case 13:li=!1;return;case 27:case 3:li=!0;return;default:qn=qn.return}}function Lu(o){if(o!==qn)return!1;if(!ht)return cC(o),ht=!0,!1;var l=o.tag,d;if((d=l!==3&&l!==27)&&((d=l===5)&&(d=o.type,d=!(d!=="form"&&d!=="button")||F1(o.type,o.memoizedProps)),d=!d),d&&$t&&qo(o),cC(o),l===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));$t=IT(o)}else if(l===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));$t=IT(o)}else l===27?(l=$t,as(o.type)?(o=K1,K1=null,$t=o):$t=l):$t=qn?ci(o.stateNode.nextSibling):null;return!0}function ol(){$t=qn=null,ht=!1}function Ab(){var o=Go;return o!==null&&(Tr===null?Tr=o:Tr.push.apply(Tr,o),Go=null),o}function Xf(o){Go===null?Go=[o]:Go.push(o)}var kb=B(null),sl=null,Ia=null;function Vo(o,l,d){X(kb,l._currentValue),l._currentValue=d}function La(o){o._currentValue=kb.current,K(kb)}function Cb(o,l,d){for(;o!==null;){var m=o.alternate;if((o.childLanes&l)!==l?(o.childLanes|=l,m!==null&&(m.childLanes|=l)):m!==null&&(m.childLanes&l)!==l&&(m.childLanes|=l),o===d)break;o=o.return}}function Ob(o,l,d,m){var x=o.child;for(x!==null&&(x.return=o);x!==null;){var A=x.dependencies;if(A!==null){var L=x.child;A=A.firstContext;e:for(;A!==null;){var F=A;A=x;for(var Y=0;Y<l.length;Y++)if(F.context===l[Y]){A.lanes|=d,F=A.alternate,F!==null&&(F.lanes|=d),Cb(A.return,d,o),m||(L=null);break e}A=F.next}}else if(x.tag===18){if(L=x.return,L===null)throw Error(r(341));L.lanes|=d,A=L.alternate,A!==null&&(A.lanes|=d),Cb(L,d,o),L=null}else L=x.child;if(L!==null)L.return=x;else for(L=x;L!==null;){if(L===o){L=null;break}if(x=L.sibling,x!==null){x.return=L.return,L=x;break}L=L.return}x=L}}function zu(o,l,d,m){o=null;for(var x=l,A=!1;x!==null;){if(!A){if((x.flags&524288)!==0)A=!0;else if((x.flags&262144)!==0)break}if(x.tag===10){var L=x.alternate;if(L===null)throw Error(r(387));if(L=L.memoizedProps,L!==null){var F=x.type;zr(x.pendingProps.value,L.value)||(o!==null?o.push(F):o=[F])}}else if(x===de.current){if(L=x.alternate,L===null)throw Error(r(387));L.memoizedState.memoizedState!==x.memoizedState.memoizedState&&(o!==null?o.push(Ad):o=[Ad])}x=x.return}o!==null&&Ob(l,o,d,m),l.flags|=262144}function pm(o){for(o=o.firstContext;o!==null;){if(!zr(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function ll(o){sl=o,Ia=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function Vn(o){return fC(sl,o)}function mm(o,l){return sl===null&&ll(o),fC(o,l)}function fC(o,l){var d=l._currentValue;if(l={context:l,memoizedValue:d,next:null},Ia===null){if(o===null)throw Error(r(308));Ia=l,o.dependencies={lanes:0,firstContext:l},o.flags|=524288}else Ia=Ia.next=l;return d}var T7=typeof AbortController<"u"?AbortController:function(){var o=[],l=this.signal={aborted:!1,addEventListener:function(d,m){o.push(m)}};this.abort=function(){l.aborted=!0,o.forEach(function(d){return d()})}},M7=e.unstable_scheduleCallback,P7=e.unstable_NormalPriority,pn={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Tb(){return{controller:new T7,data:new Map,refCount:0}}function Jf(o){o.refCount--,o.refCount===0&&M7(P7,function(){o.controller.abort()})}var ed=null,Mb=0,ju=0,$u=null;function N7(o,l){if(ed===null){var d=ed=[];Mb=0,ju=R1(),$u={status:"pending",value:void 0,then:function(m){d.push(m)}}}return Mb++,l.then(dC,dC),l}function dC(){if(--Mb===0&&ed!==null){$u!==null&&($u.status="fulfilled");var o=ed;ed=null,ju=0,$u=null;for(var l=0;l<o.length;l++)(0,o[l])()}}function R7(o,l){var d=[],m={status:"pending",value:null,reason:null,then:function(x){d.push(x)}};return o.then(function(){m.status="fulfilled",m.value=l;for(var x=0;x<d.length;x++)(0,d[x])(l)},function(x){for(m.status="rejected",m.reason=x,x=0;x<d.length;x++)(0,d[x])(void 0)}),m}var hC=j.S;j.S=function(o,l){QO=ae(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&N7(o,l),hC!==null&&hC(o,l)};var ul=B(null);function Pb(){var o=ul.current;return o!==null?o:Dt.pooledCache}function gm(o,l){l===null?X(ul,ul.current):X(ul,l.pool)}function pC(){var o=Pb();return o===null?null:{parent:pn._currentValue,pool:o}}var Bu=Error(r(460)),Nb=Error(r(474)),vm=Error(r(542)),ym={then:function(){}};function mC(o){return o=o.status,o==="fulfilled"||o==="rejected"}function gC(o,l,d){switch(d=o[d],d===void 0?o.push(l):d!==l&&(l.then(Pa,Pa),l=d),l.status){case"fulfilled":return l.value;case"rejected":throw o=l.reason,yC(o),o;default:if(typeof l.status=="string")l.then(Pa,Pa);else{if(o=Dt,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=l,o.status="pending",o.then(function(m){if(l.status==="pending"){var x=l;x.status="fulfilled",x.value=m}},function(m){if(l.status==="pending"){var x=l;x.status="rejected",x.reason=m}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw o=l.reason,yC(o),o}throw fl=l,Bu}}function cl(o){try{var l=o._init;return l(o._payload)}catch(d){throw d!==null&&typeof d=="object"&&typeof d.then=="function"?(fl=d,Bu):d}}var fl=null;function vC(){if(fl===null)throw Error(r(459));var o=fl;return fl=null,o}function yC(o){if(o===Bu||o===vm)throw Error(r(483))}var Uu=null,td=0;function bm(o){var l=td;return td+=1,Uu===null&&(Uu=[]),gC(Uu,o,l)}function nd(o,l){l=l.props.ref,o.ref=l!==void 0?l:null}function wm(o,l){throw l.$$typeof===g?Error(r(525)):(o=Object.prototype.toString.call(l),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":o)))}function bC(o){function l(ne,Z){if(o){var oe=ne.deletions;oe===null?(ne.deletions=[Z],ne.flags|=16):oe.push(Z)}}function d(ne,Z){if(!o)return null;for(;Z!==null;)l(ne,Z),Z=Z.sibling;return null}function m(ne){for(var Z=new Map;ne!==null;)ne.key!==null?Z.set(ne.key,ne):Z.set(ne.index,ne),ne=ne.sibling;return Z}function x(ne,Z){return ne=Ra(ne,Z),ne.index=0,ne.sibling=null,ne}function A(ne,Z,oe){return ne.index=oe,o?(oe=ne.alternate,oe!==null?(oe=oe.index,oe<Z?(ne.flags|=67108866,Z):oe):(ne.flags|=67108866,Z)):(ne.flags|=1048576,Z)}function L(ne){return o&&ne.alternate===null&&(ne.flags|=67108866),ne}function F(ne,Z,oe,be){return Z===null||Z.tag!==6?(Z=wb(oe,ne.mode,be),Z.return=ne,Z):(Z=x(Z,oe),Z.return=ne,Z)}function Y(ne,Z,oe,be){var Ve=oe.type;return Ve===b?ve(ne,Z,oe.props.children,be,oe.key):Z!==null&&(Z.elementType===Ve||typeof Ve=="object"&&Ve!==null&&Ve.$$typeof===P&&cl(Ve)===Z.type)?(Z=x(Z,oe.props),nd(Z,oe),Z.return=ne,Z):(Z=dm(oe.type,oe.key,oe.props,null,ne.mode,be),nd(Z,oe),Z.return=ne,Z)}function se(ne,Z,oe,be){return Z===null||Z.tag!==4||Z.stateNode.containerInfo!==oe.containerInfo||Z.stateNode.implementation!==oe.implementation?(Z=xb(oe,ne.mode,be),Z.return=ne,Z):(Z=x(Z,oe.children||[]),Z.return=ne,Z)}function ve(ne,Z,oe,be,Ve){return Z===null||Z.tag!==7?(Z=al(oe,ne.mode,be,Ve),Z.return=ne,Z):(Z=x(Z,oe),Z.return=ne,Z)}function we(ne,Z,oe){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return Z=wb(""+Z,ne.mode,oe),Z.return=ne,Z;if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case v:return oe=dm(Z.type,Z.key,Z.props,null,ne.mode,oe),nd(oe,Z),oe.return=ne,oe;case y:return Z=xb(Z,ne.mode,oe),Z.return=ne,Z;case P:return Z=cl(Z),we(ne,Z,oe)}if(U(Z)||N(Z))return Z=al(Z,ne.mode,oe,null),Z.return=ne,Z;if(typeof Z.then=="function")return we(ne,bm(Z),oe);if(Z.$$typeof===E)return we(ne,mm(ne,Z),oe);wm(ne,Z)}return null}function fe(ne,Z,oe,be){var Ve=Z!==null?Z.key:null;if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return Ve!==null?null:F(ne,Z,""+oe,be);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case v:return oe.key===Ve?Y(ne,Z,oe,be):null;case y:return oe.key===Ve?se(ne,Z,oe,be):null;case P:return oe=cl(oe),fe(ne,Z,oe,be)}if(U(oe)||N(oe))return Ve!==null?null:ve(ne,Z,oe,be,null);if(typeof oe.then=="function")return fe(ne,Z,bm(oe),be);if(oe.$$typeof===E)return fe(ne,Z,mm(ne,oe),be);wm(ne,oe)}return null}function me(ne,Z,oe,be,Ve){if(typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint")return ne=ne.get(oe)||null,F(Z,ne,""+be,Ve);if(typeof be=="object"&&be!==null){switch(be.$$typeof){case v:return ne=ne.get(be.key===null?oe:be.key)||null,Y(Z,ne,be,Ve);case y:return ne=ne.get(be.key===null?oe:be.key)||null,se(Z,ne,be,Ve);case P:return be=cl(be),me(ne,Z,oe,be,Ve)}if(U(be)||N(be))return ne=ne.get(oe)||null,ve(Z,ne,be,Ve,null);if(typeof be.then=="function")return me(ne,Z,oe,bm(be),Ve);if(be.$$typeof===E)return me(ne,Z,oe,mm(Z,be),Ve);wm(Z,be)}return null}function Le(ne,Z,oe,be){for(var Ve=null,yt=null,Ue=Z,nt=Z=0,dt=null;Ue!==null&&nt<oe.length;nt++){Ue.index>nt?(dt=Ue,Ue=null):dt=Ue.sibling;var bt=fe(ne,Ue,oe[nt],be);if(bt===null){Ue===null&&(Ue=dt);break}o&&Ue&&bt.alternate===null&&l(ne,Ue),Z=A(bt,Z,nt),yt===null?Ve=bt:yt.sibling=bt,yt=bt,Ue=dt}if(nt===oe.length)return d(ne,Ue),ht&&Da(ne,nt),Ve;if(Ue===null){for(;nt<oe.length;nt++)Ue=we(ne,oe[nt],be),Ue!==null&&(Z=A(Ue,Z,nt),yt===null?Ve=Ue:yt.sibling=Ue,yt=Ue);return ht&&Da(ne,nt),Ve}for(Ue=m(Ue);nt<oe.length;nt++)dt=me(Ue,ne,nt,oe[nt],be),dt!==null&&(o&&dt.alternate!==null&&Ue.delete(dt.key===null?nt:dt.key),Z=A(dt,Z,nt),yt===null?Ve=dt:yt.sibling=dt,yt=dt);return o&&Ue.forEach(function(cs){return l(ne,cs)}),ht&&Da(ne,nt),Ve}function We(ne,Z,oe,be){if(oe==null)throw Error(r(151));for(var Ve=null,yt=null,Ue=Z,nt=Z=0,dt=null,bt=oe.next();Ue!==null&&!bt.done;nt++,bt=oe.next()){Ue.index>nt?(dt=Ue,Ue=null):dt=Ue.sibling;var cs=fe(ne,Ue,bt.value,be);if(cs===null){Ue===null&&(Ue=dt);break}o&&Ue&&cs.alternate===null&&l(ne,Ue),Z=A(cs,Z,nt),yt===null?Ve=cs:yt.sibling=cs,yt=cs,Ue=dt}if(bt.done)return d(ne,Ue),ht&&Da(ne,nt),Ve;if(Ue===null){for(;!bt.done;nt++,bt=oe.next())bt=we(ne,bt.value,be),bt!==null&&(Z=A(bt,Z,nt),yt===null?Ve=bt:yt.sibling=bt,yt=bt);return ht&&Da(ne,nt),Ve}for(Ue=m(Ue);!bt.done;nt++,bt=oe.next())bt=me(Ue,ne,nt,bt.value,be),bt!==null&&(o&&bt.alternate!==null&&Ue.delete(bt.key===null?nt:bt.key),Z=A(bt,Z,nt),yt===null?Ve=bt:yt.sibling=bt,yt=bt);return o&&Ue.forEach(function(GF){return l(ne,GF)}),ht&&Da(ne,nt),Ve}function Pt(ne,Z,oe,be){if(typeof oe=="object"&&oe!==null&&oe.type===b&&oe.key===null&&(oe=oe.props.children),typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case v:e:{for(var Ve=oe.key;Z!==null;){if(Z.key===Ve){if(Ve=oe.type,Ve===b){if(Z.tag===7){d(ne,Z.sibling),be=x(Z,oe.props.children),be.return=ne,ne=be;break e}}else if(Z.elementType===Ve||typeof Ve=="object"&&Ve!==null&&Ve.$$typeof===P&&cl(Ve)===Z.type){d(ne,Z.sibling),be=x(Z,oe.props),nd(be,oe),be.return=ne,ne=be;break e}d(ne,Z);break}else l(ne,Z);Z=Z.sibling}oe.type===b?(be=al(oe.props.children,ne.mode,be,oe.key),be.return=ne,ne=be):(be=dm(oe.type,oe.key,oe.props,null,ne.mode,be),nd(be,oe),be.return=ne,ne=be)}return L(ne);case y:e:{for(Ve=oe.key;Z!==null;){if(Z.key===Ve)if(Z.tag===4&&Z.stateNode.containerInfo===oe.containerInfo&&Z.stateNode.implementation===oe.implementation){d(ne,Z.sibling),be=x(Z,oe.children||[]),be.return=ne,ne=be;break e}else{d(ne,Z);break}else l(ne,Z);Z=Z.sibling}be=xb(oe,ne.mode,be),be.return=ne,ne=be}return L(ne);case P:return oe=cl(oe),Pt(ne,Z,oe,be)}if(U(oe))return Le(ne,Z,oe,be);if(N(oe)){if(Ve=N(oe),typeof Ve!="function")throw Error(r(150));return oe=Ve.call(oe),We(ne,Z,oe,be)}if(typeof oe.then=="function")return Pt(ne,Z,bm(oe),be);if(oe.$$typeof===E)return Pt(ne,Z,mm(ne,oe),be);wm(ne,oe)}return typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint"?(oe=""+oe,Z!==null&&Z.tag===6?(d(ne,Z.sibling),be=x(Z,oe),be.return=ne,ne=be):(d(ne,Z),be=wb(oe,ne.mode,be),be.return=ne,ne=be),L(ne)):d(ne,Z)}return function(ne,Z,oe,be){try{td=0;var Ve=Pt(ne,Z,oe,be);return Uu=null,Ve}catch(Ue){if(Ue===Bu||Ue===vm)throw Ue;var yt=jr(29,Ue,null,ne.mode);return yt.lanes=be,yt.return=ne,yt}finally{}}}var dl=bC(!0),wC=bC(!1),Ko=!1;function Rb(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Db(o,l){o=o.updateQueue,l.updateQueue===o&&(l.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Yo(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function Wo(o,l,d){var m=o.updateQueue;if(m===null)return null;if(m=m.shared,(St&2)!==0){var x=m.pending;return x===null?l.next=l:(l.next=x.next,x.next=l),m.pending=l,l=fm(o),rC(o,null,d),l}return cm(o,m,l,d),fm(o)}function rd(o,l,d){if(l=l.updateQueue,l!==null&&(l=l.shared,(d&4194048)!==0)){var m=l.lanes;m&=o.pendingLanes,d|=m,l.lanes=d,Hp(o,d)}}function Ib(o,l){var d=o.updateQueue,m=o.alternate;if(m!==null&&(m=m.updateQueue,d===m)){var x=null,A=null;if(d=d.firstBaseUpdate,d!==null){do{var L={lane:d.lane,tag:d.tag,payload:d.payload,callback:null,next:null};A===null?x=A=L:A=A.next=L,d=d.next}while(d!==null);A===null?x=A=l:A=A.next=l}else x=A=l;d={baseState:m.baseState,firstBaseUpdate:x,lastBaseUpdate:A,shared:m.shared,callbacks:m.callbacks},o.updateQueue=d;return}o=d.lastBaseUpdate,o===null?d.firstBaseUpdate=l:o.next=l,d.lastBaseUpdate=l}var Lb=!1;function id(){if(Lb){var o=$u;if(o!==null)throw o}}function ad(o,l,d,m){Lb=!1;var x=o.updateQueue;Ko=!1;var A=x.firstBaseUpdate,L=x.lastBaseUpdate,F=x.shared.pending;if(F!==null){x.shared.pending=null;var Y=F,se=Y.next;Y.next=null,L===null?A=se:L.next=se,L=Y;var ve=o.alternate;ve!==null&&(ve=ve.updateQueue,F=ve.lastBaseUpdate,F!==L&&(F===null?ve.firstBaseUpdate=se:F.next=se,ve.lastBaseUpdate=Y))}if(A!==null){var we=x.baseState;L=0,ve=se=Y=null,F=A;do{var fe=F.lane&-536870913,me=fe!==F.lane;if(me?(ft&fe)===fe:(m&fe)===fe){fe!==0&&fe===ju&&(Lb=!0),ve!==null&&(ve=ve.next={lane:0,tag:F.tag,payload:F.payload,callback:null,next:null});e:{var Le=o,We=F;fe=l;var Pt=d;switch(We.tag){case 1:if(Le=We.payload,typeof Le=="function"){we=Le.call(Pt,we,fe);break e}we=Le;break e;case 3:Le.flags=Le.flags&-65537|128;case 0:if(Le=We.payload,fe=typeof Le=="function"?Le.call(Pt,we,fe):Le,fe==null)break e;we=p({},we,fe);break e;case 2:Ko=!0}}fe=F.callback,fe!==null&&(o.flags|=64,me&&(o.flags|=8192),me=x.callbacks,me===null?x.callbacks=[fe]:me.push(fe))}else me={lane:fe,tag:F.tag,payload:F.payload,callback:F.callback,next:null},ve===null?(se=ve=me,Y=we):ve=ve.next=me,L|=fe;if(F=F.next,F===null){if(F=x.shared.pending,F===null)break;me=F,F=me.next,me.next=null,x.lastBaseUpdate=me,x.shared.pending=null}}while(!0);ve===null&&(Y=we),x.baseState=Y,x.firstBaseUpdate=se,x.lastBaseUpdate=ve,A===null&&(x.shared.lanes=0),es|=L,o.lanes=L,o.memoizedState=we}}function xC(o,l){if(typeof o!="function")throw Error(r(191,o));o.call(l)}function _C(o,l){var d=o.callbacks;if(d!==null)for(o.callbacks=null,o=0;o<d.length;o++)xC(d[o],l)}var Fu=B(null),xm=B(0);function SC(o,l){o=qa,X(xm,o),X(Fu,l),qa=o|l.baseLanes}function zb(){X(xm,qa),X(Fu,Fu.current)}function jb(){qa=xm.current,K(Fu),K(xm)}var $r=B(null),ui=null;function Qo(o){var l=o.alternate;X(ln,ln.current&1),X($r,o),ui===null&&(l===null||Fu.current!==null||l.memoizedState!==null)&&(ui=o)}function $b(o){X(ln,ln.current),X($r,o),ui===null&&(ui=o)}function EC(o){o.tag===22?(X(ln,ln.current),X($r,o),ui===null&&(ui=o)):Zo()}function Zo(){X(ln,ln.current),X($r,$r.current)}function Br(o){K($r),ui===o&&(ui=null),K(ln)}var ln=B(0);function _m(o){for(var l=o;l!==null;){if(l.tag===13){var d=l.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||q1(d)||V1(d)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var za=0,tt=null,Tt=null,mn=null,Sm=!1,Hu=!1,hl=!1,Em=0,od=0,Gu=null,D7=0;function Jt(){throw Error(r(321))}function Bb(o,l){if(l===null)return!1;for(var d=0;d<l.length&&d<o.length;d++)if(!zr(o[d],l[d]))return!1;return!0}function Ub(o,l,d,m,x,A){return za=A,tt=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,j.H=o===null||o.memoizedState===null?sO:n1,hl=!1,A=d(m,x),hl=!1,Hu&&(A=kC(l,d,m,x)),AC(o),A}function AC(o){j.H=ud;var l=Tt!==null&&Tt.next!==null;if(za=0,mn=Tt=tt=null,Sm=!1,od=0,Gu=null,l)throw Error(r(300));o===null||gn||(o=o.dependencies,o!==null&&pm(o)&&(gn=!0))}function kC(o,l,d,m){tt=o;var x=0;do{if(Hu&&(Gu=null),od=0,Hu=!1,25<=x)throw Error(r(301));if(x+=1,mn=Tt=null,o.updateQueue!=null){var A=o.updateQueue;A.lastEffect=null,A.events=null,A.stores=null,A.memoCache!=null&&(A.memoCache.index=0)}j.H=lO,A=l(d,m)}while(Hu);return A}function I7(){var o=j.H,l=o.useState()[0];return l=typeof l.then=="function"?sd(l):l,o=o.useState()[0],(Tt!==null?Tt.memoizedState:null)!==o&&(tt.flags|=1024),l}function Fb(){var o=Em!==0;return Em=0,o}function Hb(o,l,d){l.updateQueue=o.updateQueue,l.flags&=-2053,o.lanes&=~d}function Gb(o){if(Sm){for(o=o.memoizedState;o!==null;){var l=o.queue;l!==null&&(l.pending=null),o=o.next}Sm=!1}za=0,mn=Tt=tt=null,Hu=!1,od=Em=0,Gu=null}function hr(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mn===null?tt.memoizedState=mn=o:mn=mn.next=o,mn}function un(){if(Tt===null){var o=tt.alternate;o=o!==null?o.memoizedState:null}else o=Tt.next;var l=mn===null?tt.memoizedState:mn.next;if(l!==null)mn=l,Tt=o;else{if(o===null)throw tt.alternate===null?Error(r(467)):Error(r(310));Tt=o,o={memoizedState:Tt.memoizedState,baseState:Tt.baseState,baseQueue:Tt.baseQueue,queue:Tt.queue,next:null},mn===null?tt.memoizedState=mn=o:mn=mn.next=o}return mn}function Am(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function sd(o){var l=od;return od+=1,Gu===null&&(Gu=[]),o=gC(Gu,o,l),l=tt,(mn===null?l.memoizedState:mn.next)===null&&(l=l.alternate,j.H=l===null||l.memoizedState===null?sO:n1),o}function km(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return sd(o);if(o.$$typeof===E)return Vn(o)}throw Error(r(438,String(o)))}function qb(o){var l=null,d=tt.updateQueue;if(d!==null&&(l=d.memoCache),l==null){var m=tt.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(l={data:m.data.map(function(x){return x.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),d===null&&(d=Am(),tt.updateQueue=d),d.memoCache=l,d=l.data[l.index],d===void 0)for(d=l.data[l.index]=Array(o),m=0;m<o;m++)d[m]=z;return l.index++,d}function ja(o,l){return typeof l=="function"?l(o):l}function Cm(o){var l=un();return Vb(l,Tt,o)}function Vb(o,l,d){var m=o.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=d;var x=o.baseQueue,A=m.pending;if(A!==null){if(x!==null){var L=x.next;x.next=A.next,A.next=L}l.baseQueue=x=A,m.pending=null}if(A=o.baseState,x===null)o.memoizedState=A;else{l=x.next;var F=L=null,Y=null,se=l,ve=!1;do{var we=se.lane&-536870913;if(we!==se.lane?(ft&we)===we:(za&we)===we){var fe=se.revertLane;if(fe===0)Y!==null&&(Y=Y.next={lane:0,revertLane:0,gesture:null,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null}),we===ju&&(ve=!0);else if((za&fe)===fe){se=se.next,fe===ju&&(ve=!0);continue}else we={lane:0,revertLane:se.revertLane,gesture:null,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null},Y===null?(F=Y=we,L=A):Y=Y.next=we,tt.lanes|=fe,es|=fe;we=se.action,hl&&d(A,we),A=se.hasEagerState?se.eagerState:d(A,we)}else fe={lane:we,revertLane:se.revertLane,gesture:se.gesture,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null},Y===null?(F=Y=fe,L=A):Y=Y.next=fe,tt.lanes|=we,es|=we;se=se.next}while(se!==null&&se!==l);if(Y===null?L=A:Y.next=F,!zr(A,o.memoizedState)&&(gn=!0,ve&&(d=$u,d!==null)))throw d;o.memoizedState=A,o.baseState=L,o.baseQueue=Y,m.lastRenderedState=A}return x===null&&(m.lanes=0),[o.memoizedState,m.dispatch]}function Kb(o){var l=un(),d=l.queue;if(d===null)throw Error(r(311));d.lastRenderedReducer=o;var m=d.dispatch,x=d.pending,A=l.memoizedState;if(x!==null){d.pending=null;var L=x=x.next;do A=o(A,L.action),L=L.next;while(L!==x);zr(A,l.memoizedState)||(gn=!0),l.memoizedState=A,l.baseQueue===null&&(l.baseState=A),d.lastRenderedState=A}return[A,m]}function CC(o,l,d){var m=tt,x=un(),A=ht;if(A){if(d===void 0)throw Error(r(407));d=d()}else d=l();var L=!zr((Tt||x).memoizedState,d);if(L&&(x.memoizedState=d,gn=!0),x=x.queue,Qb(MC.bind(null,m,x,o),[o]),x.getSnapshot!==l||L||mn!==null&&mn.memoizedState.tag&1){if(m.flags|=2048,qu(9,{destroy:void 0},TC.bind(null,m,x,d,l),null),Dt===null)throw Error(r(349));A||(za&127)!==0||OC(m,l,d)}return d}function OC(o,l,d){o.flags|=16384,o={getSnapshot:l,value:d},l=tt.updateQueue,l===null?(l=Am(),tt.updateQueue=l,l.stores=[o]):(d=l.stores,d===null?l.stores=[o]:d.push(o))}function TC(o,l,d,m){l.value=d,l.getSnapshot=m,PC(l)&&NC(o)}function MC(o,l,d){return d(function(){PC(l)&&NC(o)})}function PC(o){var l=o.getSnapshot;o=o.value;try{var d=l();return!zr(o,d)}catch{return!0}}function NC(o){var l=il(o,2);l!==null&&Mr(l,o,2)}function Yb(o){var l=hr();if(typeof o=="function"){var d=o;if(o=d(),hl){_r(!0);try{d()}finally{_r(!1)}}}return l.memoizedState=l.baseState=o,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ja,lastRenderedState:o},l}function RC(o,l,d,m){return o.baseState=d,Vb(o,Tt,typeof m=="function"?m:ja)}function L7(o,l,d,m,x){if(Mm(o))throw Error(r(485));if(o=l.action,o!==null){var A={payload:x,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(L){A.listeners.push(L)}};j.T!==null?d(!0):A.isTransition=!1,m(A),d=l.pending,d===null?(A.next=l.pending=A,DC(l,A)):(A.next=d.next,l.pending=d.next=A)}}function DC(o,l){var d=l.action,m=l.payload,x=o.state;if(l.isTransition){var A=j.T,L={};j.T=L;try{var F=d(x,m),Y=j.S;Y!==null&&Y(L,F),IC(o,l,F)}catch(se){Wb(o,l,se)}finally{A!==null&&L.types!==null&&(A.types=L.types),j.T=A}}else try{A=d(x,m),IC(o,l,A)}catch(se){Wb(o,l,se)}}function IC(o,l,d){d!==null&&typeof d=="object"&&typeof d.then=="function"?d.then(function(m){LC(o,l,m)},function(m){return Wb(o,l,m)}):LC(o,l,d)}function LC(o,l,d){l.status="fulfilled",l.value=d,zC(l),o.state=d,l=o.pending,l!==null&&(d=l.next,d===l?o.pending=null:(d=d.next,l.next=d,DC(o,d)))}function Wb(o,l,d){var m=o.pending;if(o.pending=null,m!==null){m=m.next;do l.status="rejected",l.reason=d,zC(l),l=l.next;while(l!==m)}o.action=null}function zC(o){o=o.listeners;for(var l=0;l<o.length;l++)(0,o[l])()}function jC(o,l){return l}function $C(o,l){if(ht){var d=Dt.formState;if(d!==null){e:{var m=tt;if(ht){if($t){t:{for(var x=$t,A=li;x.nodeType!==8;){if(!A){x=null;break t}if(x=ci(x.nextSibling),x===null){x=null;break t}}A=x.data,x=A==="F!"||A==="F"?x:null}if(x){$t=ci(x.nextSibling),m=x.data==="F!";break e}}qo(m)}m=!1}m&&(l=d[0])}}return d=hr(),d.memoizedState=d.baseState=l,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jC,lastRenderedState:l},d.queue=m,d=iO.bind(null,tt,m),m.dispatch=d,m=Yb(!1),A=t1.bind(null,tt,!1,m.queue),m=hr(),x={state:l,dispatch:null,action:o,pending:null},m.queue=x,d=L7.bind(null,tt,x,A,d),x.dispatch=d,m.memoizedState=o,[l,d,!1]}function BC(o){var l=un();return UC(l,Tt,o)}function UC(o,l,d){if(l=Vb(o,l,jC)[0],o=Cm(ja)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var m=sd(l)}catch(L){throw L===Bu?vm:L}else m=l;l=un();var x=l.queue,A=x.dispatch;return d!==l.memoizedState&&(tt.flags|=2048,qu(9,{destroy:void 0},z7.bind(null,x,d),null)),[m,A,o]}function z7(o,l){o.action=l}function FC(o){var l=un(),d=Tt;if(d!==null)return UC(l,d,o);un(),l=l.memoizedState,d=un();var m=d.queue.dispatch;return d.memoizedState=o,[l,m,!1]}function qu(o,l,d,m){return o={tag:o,create:d,deps:m,inst:l,next:null},l=tt.updateQueue,l===null&&(l=Am(),tt.updateQueue=l),d=l.lastEffect,d===null?l.lastEffect=o.next=o:(m=d.next,d.next=o,o.next=m,l.lastEffect=o),o}function HC(){return un().memoizedState}function Om(o,l,d,m){var x=hr();tt.flags|=o,x.memoizedState=qu(1|l,{destroy:void 0},d,m===void 0?null:m)}function Tm(o,l,d,m){var x=un();m=m===void 0?null:m;var A=x.memoizedState.inst;Tt!==null&&m!==null&&Bb(m,Tt.memoizedState.deps)?x.memoizedState=qu(l,A,d,m):(tt.flags|=o,x.memoizedState=qu(1|l,A,d,m))}function GC(o,l){Om(8390656,8,o,l)}function Qb(o,l){Tm(2048,8,o,l)}function j7(o){tt.flags|=4;var l=tt.updateQueue;if(l===null)l=Am(),tt.updateQueue=l,l.events=[o];else{var d=l.events;d===null?l.events=[o]:d.push(o)}}function qC(o){var l=un().memoizedState;return j7({ref:l,nextImpl:o}),function(){if((St&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}function VC(o,l){return Tm(4,2,o,l)}function KC(o,l){return Tm(4,4,o,l)}function YC(o,l){if(typeof l=="function"){o=o();var d=l(o);return function(){typeof d=="function"?d():l(null)}}if(l!=null)return o=o(),l.current=o,function(){l.current=null}}function WC(o,l,d){d=d!=null?d.concat([o]):null,Tm(4,4,YC.bind(null,l,o),d)}function Zb(){}function QC(o,l){var d=un();l=l===void 0?null:l;var m=d.memoizedState;return l!==null&&Bb(l,m[1])?m[0]:(d.memoizedState=[o,l],o)}function ZC(o,l){var d=un();l=l===void 0?null:l;var m=d.memoizedState;if(l!==null&&Bb(l,m[1]))return m[0];if(m=o(),hl){_r(!0);try{o()}finally{_r(!1)}}return d.memoizedState=[m,l],m}function Xb(o,l,d){return d===void 0||(za&1073741824)!==0&&(ft&261930)===0?o.memoizedState=l:(o.memoizedState=d,o=XO(),tt.lanes|=o,es|=o,d)}function XC(o,l,d,m){return zr(d,l)?d:Fu.current!==null?(o=Xb(o,d,m),zr(o,l)||(gn=!0),o):(za&42)===0||(za&1073741824)!==0&&(ft&261930)===0?(gn=!0,o.memoizedState=d):(o=XO(),tt.lanes|=o,es|=o,l)}function JC(o,l,d,m,x){var A=G.p;G.p=A!==0&&8>A?A:8;var L=j.T,F={};j.T=F,t1(o,!1,l,d);try{var Y=x(),se=j.S;if(se!==null&&se(F,Y),Y!==null&&typeof Y=="object"&&typeof Y.then=="function"){var ve=R7(Y,m);ld(o,l,ve,Hr(o))}else ld(o,l,m,Hr(o))}catch(we){ld(o,l,{then:function(){},status:"rejected",reason:we},Hr())}finally{G.p=A,L!==null&&F.types!==null&&(L.types=F.types),j.T=L}}function $7(){}function Jb(o,l,d,m){if(o.tag!==5)throw Error(r(476));var x=eO(o).queue;JC(o,x,l,q,d===null?$7:function(){return tO(o),d(m)})}function eO(o){var l=o.memoizedState;if(l!==null)return l;l={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ja,lastRenderedState:q},next:null};var d={};return l.next={memoizedState:d,baseState:d,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ja,lastRenderedState:d},next:null},o.memoizedState=l,o=o.alternate,o!==null&&(o.memoizedState=l),l}function tO(o){var l=eO(o);l.next===null&&(l=o.alternate.memoizedState),ld(o,l.next.queue,{},Hr())}function e1(){return Vn(Ad)}function nO(){return un().memoizedState}function rO(){return un().memoizedState}function B7(o){for(var l=o.return;l!==null;){switch(l.tag){case 24:case 3:var d=Hr();o=Yo(d);var m=Wo(l,o,d);m!==null&&(Mr(m,l,d),rd(m,l,d)),l={cache:Tb()},o.payload=l;return}l=l.return}}function U7(o,l,d){var m=Hr();d={lane:m,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},Mm(o)?aO(l,d):(d=yb(o,l,d,m),d!==null&&(Mr(d,o,m),oO(d,l,m)))}function iO(o,l,d){var m=Hr();ld(o,l,d,m)}function ld(o,l,d,m){var x={lane:m,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null};if(Mm(o))aO(l,x);else{var A=o.alternate;if(o.lanes===0&&(A===null||A.lanes===0)&&(A=l.lastRenderedReducer,A!==null))try{var L=l.lastRenderedState,F=A(L,d);if(x.hasEagerState=!0,x.eagerState=F,zr(F,L))return cm(o,l,x,0),Dt===null&&um(),!1}catch{}finally{}if(d=yb(o,l,x,m),d!==null)return Mr(d,o,m),oO(d,l,m),!0}return!1}function t1(o,l,d,m){if(m={lane:2,revertLane:R1(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},Mm(o)){if(l)throw Error(r(479))}else l=yb(o,d,m,2),l!==null&&Mr(l,o,2)}function Mm(o){var l=o.alternate;return o===tt||l!==null&&l===tt}function aO(o,l){Hu=Sm=!0;var d=o.pending;d===null?l.next=l:(l.next=d.next,d.next=l),o.pending=l}function oO(o,l,d){if((d&4194048)!==0){var m=l.lanes;m&=o.pendingLanes,d|=m,l.lanes=d,Hp(o,d)}}var ud={readContext:Vn,use:km,useCallback:Jt,useContext:Jt,useEffect:Jt,useImperativeHandle:Jt,useLayoutEffect:Jt,useInsertionEffect:Jt,useMemo:Jt,useReducer:Jt,useRef:Jt,useState:Jt,useDebugValue:Jt,useDeferredValue:Jt,useTransition:Jt,useSyncExternalStore:Jt,useId:Jt,useHostTransitionStatus:Jt,useFormState:Jt,useActionState:Jt,useOptimistic:Jt,useMemoCache:Jt,useCacheRefresh:Jt};ud.useEffectEvent=Jt;var sO={readContext:Vn,use:km,useCallback:function(o,l){return hr().memoizedState=[o,l===void 0?null:l],o},useContext:Vn,useEffect:GC,useImperativeHandle:function(o,l,d){d=d!=null?d.concat([o]):null,Om(4194308,4,YC.bind(null,l,o),d)},useLayoutEffect:function(o,l){return Om(4194308,4,o,l)},useInsertionEffect:function(o,l){Om(4,2,o,l)},useMemo:function(o,l){var d=hr();l=l===void 0?null:l;var m=o();if(hl){_r(!0);try{o()}finally{_r(!1)}}return d.memoizedState=[m,l],m},useReducer:function(o,l,d){var m=hr();if(d!==void 0){var x=d(l);if(hl){_r(!0);try{d(l)}finally{_r(!1)}}}else x=l;return m.memoizedState=m.baseState=x,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:x},m.queue=o,o=o.dispatch=U7.bind(null,tt,o),[m.memoizedState,o]},useRef:function(o){var l=hr();return o={current:o},l.memoizedState=o},useState:function(o){o=Yb(o);var l=o.queue,d=iO.bind(null,tt,l);return l.dispatch=d,[o.memoizedState,d]},useDebugValue:Zb,useDeferredValue:function(o,l){var d=hr();return Xb(d,o,l)},useTransition:function(){var o=Yb(!1);return o=JC.bind(null,tt,o.queue,!0,!1),hr().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,l,d){var m=tt,x=hr();if(ht){if(d===void 0)throw Error(r(407));d=d()}else{if(d=l(),Dt===null)throw Error(r(349));(ft&127)!==0||OC(m,l,d)}x.memoizedState=d;var A={value:d,getSnapshot:l};return x.queue=A,GC(MC.bind(null,m,A,o),[o]),m.flags|=2048,qu(9,{destroy:void 0},TC.bind(null,m,A,d,l),null),d},useId:function(){var o=hr(),l=Dt.identifierPrefix;if(ht){var d=Xi,m=Zi;d=(m&~(1<<32-_n(m)-1)).toString(32)+d,l="_"+l+"R_"+d,d=Em++,0<d&&(l+="H"+d.toString(32)),l+="_"}else d=D7++,l="_"+l+"r_"+d.toString(32)+"_";return o.memoizedState=l},useHostTransitionStatus:e1,useFormState:$C,useActionState:$C,useOptimistic:function(o){var l=hr();l.memoizedState=l.baseState=o;var d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=d,l=t1.bind(null,tt,!0,d),d.dispatch=l,[o,l]},useMemoCache:qb,useCacheRefresh:function(){return hr().memoizedState=B7.bind(null,tt)},useEffectEvent:function(o){var l=hr(),d={impl:o};return l.memoizedState=d,function(){if((St&2)!==0)throw Error(r(440));return d.impl.apply(void 0,arguments)}}},n1={readContext:Vn,use:km,useCallback:QC,useContext:Vn,useEffect:Qb,useImperativeHandle:WC,useInsertionEffect:VC,useLayoutEffect:KC,useMemo:ZC,useReducer:Cm,useRef:HC,useState:function(){return Cm(ja)},useDebugValue:Zb,useDeferredValue:function(o,l){var d=un();return XC(d,Tt.memoizedState,o,l)},useTransition:function(){var o=Cm(ja)[0],l=un().memoizedState;return[typeof o=="boolean"?o:sd(o),l]},useSyncExternalStore:CC,useId:nO,useHostTransitionStatus:e1,useFormState:BC,useActionState:BC,useOptimistic:function(o,l){var d=un();return RC(d,Tt,o,l)},useMemoCache:qb,useCacheRefresh:rO};n1.useEffectEvent=qC;var lO={readContext:Vn,use:km,useCallback:QC,useContext:Vn,useEffect:Qb,useImperativeHandle:WC,useInsertionEffect:VC,useLayoutEffect:KC,useMemo:ZC,useReducer:Kb,useRef:HC,useState:function(){return Kb(ja)},useDebugValue:Zb,useDeferredValue:function(o,l){var d=un();return Tt===null?Xb(d,o,l):XC(d,Tt.memoizedState,o,l)},useTransition:function(){var o=Kb(ja)[0],l=un().memoizedState;return[typeof o=="boolean"?o:sd(o),l]},useSyncExternalStore:CC,useId:nO,useHostTransitionStatus:e1,useFormState:FC,useActionState:FC,useOptimistic:function(o,l){var d=un();return Tt!==null?RC(d,Tt,o,l):(d.baseState=o,[o,d.queue.dispatch])},useMemoCache:qb,useCacheRefresh:rO};lO.useEffectEvent=qC;function r1(o,l,d,m){l=o.memoizedState,d=d(m,l),d=d==null?l:p({},l,d),o.memoizedState=d,o.lanes===0&&(o.updateQueue.baseState=d)}var i1={enqueueSetState:function(o,l,d){o=o._reactInternals;var m=Hr(),x=Yo(m);x.payload=l,d!=null&&(x.callback=d),l=Wo(o,x,m),l!==null&&(Mr(l,o,m),rd(l,o,m))},enqueueReplaceState:function(o,l,d){o=o._reactInternals;var m=Hr(),x=Yo(m);x.tag=1,x.payload=l,d!=null&&(x.callback=d),l=Wo(o,x,m),l!==null&&(Mr(l,o,m),rd(l,o,m))},enqueueForceUpdate:function(o,l){o=o._reactInternals;var d=Hr(),m=Yo(d);m.tag=2,l!=null&&(m.callback=l),l=Wo(o,m,d),l!==null&&(Mr(l,o,d),rd(l,o,d))}};function uO(o,l,d,m,x,A,L){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(m,A,L):l.prototype&&l.prototype.isPureReactComponent?!Wf(d,m)||!Wf(x,A):!0}function cO(o,l,d,m){o=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(d,m),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(d,m),l.state!==o&&i1.enqueueReplaceState(l,l.state,null)}function pl(o,l){var d=l;if("ref"in l){d={};for(var m in l)m!=="ref"&&(d[m]=l[m])}if(o=o.defaultProps){d===l&&(d=p({},d));for(var x in o)d[x]===void 0&&(d[x]=o[x])}return d}function fO(o){lm(o)}function dO(o){console.error(o)}function hO(o){lm(o)}function Pm(o,l){try{var d=o.onUncaughtError;d(l.value,{componentStack:l.stack})}catch(m){setTimeout(function(){throw m})}}function pO(o,l,d){try{var m=o.onCaughtError;m(d.value,{componentStack:d.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(x){setTimeout(function(){throw x})}}function a1(o,l,d){return d=Yo(d),d.tag=3,d.payload={element:null},d.callback=function(){Pm(o,l)},d}function mO(o){return o=Yo(o),o.tag=3,o}function gO(o,l,d,m){var x=d.type.getDerivedStateFromError;if(typeof x=="function"){var A=m.value;o.payload=function(){return x(A)},o.callback=function(){pO(l,d,m)}}var L=d.stateNode;L!==null&&typeof L.componentDidCatch=="function"&&(o.callback=function(){pO(l,d,m),typeof x!="function"&&(ts===null?ts=new Set([this]):ts.add(this));var F=m.stack;this.componentDidCatch(m.value,{componentStack:F!==null?F:""})})}function F7(o,l,d,m,x){if(d.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(l=d.alternate,l!==null&&zu(l,d,x,!0),d=$r.current,d!==null){switch(d.tag){case 31:case 13:return ui===null?Hm():d.alternate===null&&en===0&&(en=3),d.flags&=-257,d.flags|=65536,d.lanes=x,m===ym?d.flags|=16384:(l=d.updateQueue,l===null?d.updateQueue=new Set([m]):l.add(m),M1(o,m,x)),!1;case 22:return d.flags|=65536,m===ym?d.flags|=16384:(l=d.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([m])},d.updateQueue=l):(d=l.retryQueue,d===null?l.retryQueue=new Set([m]):d.add(m)),M1(o,m,x)),!1}throw Error(r(435,d.tag))}return M1(o,m,x),Hm(),!1}if(ht)return l=$r.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=x,m!==Eb&&(o=Error(r(422),{cause:m}),Xf(ai(o,d)))):(m!==Eb&&(l=Error(r(423),{cause:m}),Xf(ai(l,d))),o=o.current.alternate,o.flags|=65536,x&=-x,o.lanes|=x,m=ai(m,d),x=a1(o.stateNode,m,x),Ib(o,x),en!==4&&(en=2)),!1;var A=Error(r(520),{cause:m});if(A=ai(A,d),vd===null?vd=[A]:vd.push(A),en!==4&&(en=2),l===null)return!0;m=ai(m,d),d=l;do{switch(d.tag){case 3:return d.flags|=65536,o=x&-x,d.lanes|=o,o=a1(d.stateNode,m,o),Ib(d,o),!1;case 1:if(l=d.type,A=d.stateNode,(d.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||A!==null&&typeof A.componentDidCatch=="function"&&(ts===null||!ts.has(A))))return d.flags|=65536,x&=-x,d.lanes|=x,x=mO(x),gO(x,o,d,m),Ib(d,x),!1}d=d.return}while(d!==null);return!1}var o1=Error(r(461)),gn=!1;function Kn(o,l,d,m){l.child=o===null?wC(l,null,d,m):dl(l,o.child,d,m)}function vO(o,l,d,m,x){d=d.render;var A=l.ref;if("ref"in m){var L={};for(var F in m)F!=="ref"&&(L[F]=m[F])}else L=m;return ll(l),m=Ub(o,l,d,L,A,x),F=Fb(),o!==null&&!gn?(Hb(o,l,x),$a(o,l,x)):(ht&&F&&_b(l),l.flags|=1,Kn(o,l,m,x),l.child)}function yO(o,l,d,m,x){if(o===null){var A=d.type;return typeof A=="function"&&!bb(A)&&A.defaultProps===void 0&&d.compare===null?(l.tag=15,l.type=A,bO(o,l,A,m,x)):(o=dm(d.type,null,m,l,l.mode,x),o.ref=l.ref,o.return=l,l.child=o)}if(A=o.child,!p1(o,x)){var L=A.memoizedProps;if(d=d.compare,d=d!==null?d:Wf,d(L,m)&&o.ref===l.ref)return $a(o,l,x)}return l.flags|=1,o=Ra(A,m),o.ref=l.ref,o.return=l,l.child=o}function bO(o,l,d,m,x){if(o!==null){var A=o.memoizedProps;if(Wf(A,m)&&o.ref===l.ref)if(gn=!1,l.pendingProps=m=A,p1(o,x))(o.flags&131072)!==0&&(gn=!0);else return l.lanes=o.lanes,$a(o,l,x)}return s1(o,l,d,m,x)}function wO(o,l,d,m){var x=m.children,A=o!==null?o.memoizedState:null;if(o===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((l.flags&128)!==0){if(A=A!==null?A.baseLanes|d:d,o!==null){for(m=l.child=o.child,x=0;m!==null;)x=x|m.lanes|m.childLanes,m=m.sibling;m=x&~A}else m=0,l.child=null;return xO(o,l,A,d,m)}if((d&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},o!==null&&gm(l,A!==null?A.cachePool:null),A!==null?SC(l,A):zb(),EC(l);else return m=l.lanes=536870912,xO(o,l,A!==null?A.baseLanes|d:d,d,m)}else A!==null?(gm(l,A.cachePool),SC(l,A),Zo(),l.memoizedState=null):(o!==null&&gm(l,null),zb(),Zo());return Kn(o,l,x,d),l.child}function cd(o,l){return o!==null&&o.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function xO(o,l,d,m,x){var A=Pb();return A=A===null?null:{parent:pn._currentValue,pool:A},l.memoizedState={baseLanes:d,cachePool:A},o!==null&&gm(l,null),zb(),EC(l),o!==null&&zu(o,l,m,!0),l.childLanes=x,null}function Nm(o,l){return l=Dm({mode:l.mode,children:l.children},o.mode),l.ref=o.ref,o.child=l,l.return=o,l}function _O(o,l,d){return dl(l,o.child,null,d),o=Nm(l,l.pendingProps),o.flags|=2,Br(l),l.memoizedState=null,o}function H7(o,l,d){var m=l.pendingProps,x=(l.flags&128)!==0;if(l.flags&=-129,o===null){if(ht){if(m.mode==="hidden")return o=Nm(l,m),l.lanes=536870912,cd(null,o);if($b(l),(o=$t)?(o=DT(o,li),o=o!==null&&o.data==="&"?o:null,o!==null&&(l.memoizedState={dehydrated:o,treeContext:Ho!==null?{id:Zi,overflow:Xi}:null,retryLane:536870912,hydrationErrors:null},d=aC(o),d.return=l,l.child=d,qn=l,$t=null)):o=null,o===null)throw qo(l);return l.lanes=536870912,null}return Nm(l,m)}var A=o.memoizedState;if(A!==null){var L=A.dehydrated;if($b(l),x)if(l.flags&256)l.flags&=-257,l=_O(o,l,d);else if(l.memoizedState!==null)l.child=o.child,l.flags|=128,l=null;else throw Error(r(558));else if(gn||zu(o,l,d,!1),x=(d&o.childLanes)!==0,gn||x){if(m=Dt,m!==null&&(L=Gp(m,d),L!==0&&L!==A.retryLane))throw A.retryLane=L,il(o,L),Mr(m,o,L),o1;Hm(),l=_O(o,l,d)}else o=A.treeContext,$t=ci(L.nextSibling),qn=l,ht=!0,Go=null,li=!1,o!==null&&lC(l,o),l=Nm(l,m),l.flags|=4096;return l}return o=Ra(o.child,{mode:m.mode,children:m.children}),o.ref=l.ref,l.child=o,o.return=l,o}function Rm(o,l){var d=l.ref;if(d===null)o!==null&&o.ref!==null&&(l.flags|=4194816);else{if(typeof d!="function"&&typeof d!="object")throw Error(r(284));(o===null||o.ref!==d)&&(l.flags|=4194816)}}function s1(o,l,d,m,x){return ll(l),d=Ub(o,l,d,m,void 0,x),m=Fb(),o!==null&&!gn?(Hb(o,l,x),$a(o,l,x)):(ht&&m&&_b(l),l.flags|=1,Kn(o,l,d,x),l.child)}function SO(o,l,d,m,x,A){return ll(l),l.updateQueue=null,d=kC(l,m,d,x),AC(o),m=Fb(),o!==null&&!gn?(Hb(o,l,A),$a(o,l,A)):(ht&&m&&_b(l),l.flags|=1,Kn(o,l,d,A),l.child)}function EO(o,l,d,m,x){if(ll(l),l.stateNode===null){var A=Ru,L=d.contextType;typeof L=="object"&&L!==null&&(A=Vn(L)),A=new d(m,A),l.memoizedState=A.state!==null&&A.state!==void 0?A.state:null,A.updater=i1,l.stateNode=A,A._reactInternals=l,A=l.stateNode,A.props=m,A.state=l.memoizedState,A.refs={},Rb(l),L=d.contextType,A.context=typeof L=="object"&&L!==null?Vn(L):Ru,A.state=l.memoizedState,L=d.getDerivedStateFromProps,typeof L=="function"&&(r1(l,d,L,m),A.state=l.memoizedState),typeof d.getDerivedStateFromProps=="function"||typeof A.getSnapshotBeforeUpdate=="function"||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(L=A.state,typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount(),L!==A.state&&i1.enqueueReplaceState(A,A.state,null),ad(l,m,A,x),id(),A.state=l.memoizedState),typeof A.componentDidMount=="function"&&(l.flags|=4194308),m=!0}else if(o===null){A=l.stateNode;var F=l.memoizedProps,Y=pl(d,F);A.props=Y;var se=A.context,ve=d.contextType;L=Ru,typeof ve=="object"&&ve!==null&&(L=Vn(ve));var we=d.getDerivedStateFromProps;ve=typeof we=="function"||typeof A.getSnapshotBeforeUpdate=="function",F=l.pendingProps!==F,ve||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(F||se!==L)&&cO(l,A,m,L),Ko=!1;var fe=l.memoizedState;A.state=fe,ad(l,m,A,x),id(),se=l.memoizedState,F||fe!==se||Ko?(typeof we=="function"&&(r1(l,d,we,m),se=l.memoizedState),(Y=Ko||uO(l,d,Y,m,fe,se,L))?(ve||typeof A.UNSAFE_componentWillMount!="function"&&typeof A.componentWillMount!="function"||(typeof A.componentWillMount=="function"&&A.componentWillMount(),typeof A.UNSAFE_componentWillMount=="function"&&A.UNSAFE_componentWillMount()),typeof A.componentDidMount=="function"&&(l.flags|=4194308)):(typeof A.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=m,l.memoizedState=se),A.props=m,A.state=se,A.context=L,m=Y):(typeof A.componentDidMount=="function"&&(l.flags|=4194308),m=!1)}else{A=l.stateNode,Db(o,l),L=l.memoizedProps,ve=pl(d,L),A.props=ve,we=l.pendingProps,fe=A.context,se=d.contextType,Y=Ru,typeof se=="object"&&se!==null&&(Y=Vn(se)),F=d.getDerivedStateFromProps,(se=typeof F=="function"||typeof A.getSnapshotBeforeUpdate=="function")||typeof A.UNSAFE_componentWillReceiveProps!="function"&&typeof A.componentWillReceiveProps!="function"||(L!==we||fe!==Y)&&cO(l,A,m,Y),Ko=!1,fe=l.memoizedState,A.state=fe,ad(l,m,A,x),id();var me=l.memoizedState;L!==we||fe!==me||Ko||o!==null&&o.dependencies!==null&&pm(o.dependencies)?(typeof F=="function"&&(r1(l,d,F,m),me=l.memoizedState),(ve=Ko||uO(l,d,ve,m,fe,me,Y)||o!==null&&o.dependencies!==null&&pm(o.dependencies))?(se||typeof A.UNSAFE_componentWillUpdate!="function"&&typeof A.componentWillUpdate!="function"||(typeof A.componentWillUpdate=="function"&&A.componentWillUpdate(m,me,Y),typeof A.UNSAFE_componentWillUpdate=="function"&&A.UNSAFE_componentWillUpdate(m,me,Y)),typeof A.componentDidUpdate=="function"&&(l.flags|=4),typeof A.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof A.componentDidUpdate!="function"||L===o.memoizedProps&&fe===o.memoizedState||(l.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||L===o.memoizedProps&&fe===o.memoizedState||(l.flags|=1024),l.memoizedProps=m,l.memoizedState=me),A.props=m,A.state=me,A.context=Y,m=ve):(typeof A.componentDidUpdate!="function"||L===o.memoizedProps&&fe===o.memoizedState||(l.flags|=4),typeof A.getSnapshotBeforeUpdate!="function"||L===o.memoizedProps&&fe===o.memoizedState||(l.flags|=1024),m=!1)}return A=m,Rm(o,l),m=(l.flags&128)!==0,A||m?(A=l.stateNode,d=m&&typeof d.getDerivedStateFromError!="function"?null:A.render(),l.flags|=1,o!==null&&m?(l.child=dl(l,o.child,null,x),l.child=dl(l,null,d,x)):Kn(o,l,d,x),l.memoizedState=A.state,o=l.child):o=$a(o,l,x),o}function AO(o,l,d,m){return ol(),l.flags|=256,Kn(o,l,d,m),l.child}var l1={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function u1(o){return{baseLanes:o,cachePool:pC()}}function c1(o,l,d){return o=o!==null?o.childLanes&~d:0,l&&(o|=Fr),o}function kO(o,l,d){var m=l.pendingProps,x=!1,A=(l.flags&128)!==0,L;if((L=A)||(L=o!==null&&o.memoizedState===null?!1:(ln.current&2)!==0),L&&(x=!0,l.flags&=-129),L=(l.flags&32)!==0,l.flags&=-33,o===null){if(ht){if(x?Qo(l):Zo(),(o=$t)?(o=DT(o,li),o=o!==null&&o.data!=="&"?o:null,o!==null&&(l.memoizedState={dehydrated:o,treeContext:Ho!==null?{id:Zi,overflow:Xi}:null,retryLane:536870912,hydrationErrors:null},d=aC(o),d.return=l,l.child=d,qn=l,$t=null)):o=null,o===null)throw qo(l);return V1(o)?l.lanes=32:l.lanes=536870912,null}var F=m.children;return m=m.fallback,x?(Zo(),x=l.mode,F=Dm({mode:"hidden",children:F},x),m=al(m,x,d,null),F.return=l,m.return=l,F.sibling=m,l.child=F,m=l.child,m.memoizedState=u1(d),m.childLanes=c1(o,L,d),l.memoizedState=l1,cd(null,m)):(Qo(l),f1(l,F))}var Y=o.memoizedState;if(Y!==null&&(F=Y.dehydrated,F!==null)){if(A)l.flags&256?(Qo(l),l.flags&=-257,l=d1(o,l,d)):l.memoizedState!==null?(Zo(),l.child=o.child,l.flags|=128,l=null):(Zo(),F=m.fallback,x=l.mode,m=Dm({mode:"visible",children:m.children},x),F=al(F,x,d,null),F.flags|=2,m.return=l,F.return=l,m.sibling=F,l.child=m,dl(l,o.child,null,d),m=l.child,m.memoizedState=u1(d),m.childLanes=c1(o,L,d),l.memoizedState=l1,l=cd(null,m));else if(Qo(l),V1(F)){if(L=F.nextSibling&&F.nextSibling.dataset,L)var se=L.dgst;L=se,m=Error(r(419)),m.stack="",m.digest=L,Xf({value:m,source:null,stack:null}),l=d1(o,l,d)}else if(gn||zu(o,l,d,!1),L=(d&o.childLanes)!==0,gn||L){if(L=Dt,L!==null&&(m=Gp(L,d),m!==0&&m!==Y.retryLane))throw Y.retryLane=m,il(o,m),Mr(L,o,m),o1;q1(F)||Hm(),l=d1(o,l,d)}else q1(F)?(l.flags|=192,l.child=o.child,l=null):(o=Y.treeContext,$t=ci(F.nextSibling),qn=l,ht=!0,Go=null,li=!1,o!==null&&lC(l,o),l=f1(l,m.children),l.flags|=4096);return l}return x?(Zo(),F=m.fallback,x=l.mode,Y=o.child,se=Y.sibling,m=Ra(Y,{mode:"hidden",children:m.children}),m.subtreeFlags=Y.subtreeFlags&65011712,se!==null?F=Ra(se,F):(F=al(F,x,d,null),F.flags|=2),F.return=l,m.return=l,m.sibling=F,l.child=m,cd(null,m),m=l.child,F=o.child.memoizedState,F===null?F=u1(d):(x=F.cachePool,x!==null?(Y=pn._currentValue,x=x.parent!==Y?{parent:Y,pool:Y}:x):x=pC(),F={baseLanes:F.baseLanes|d,cachePool:x}),m.memoizedState=F,m.childLanes=c1(o,L,d),l.memoizedState=l1,cd(o.child,m)):(Qo(l),d=o.child,o=d.sibling,d=Ra(d,{mode:"visible",children:m.children}),d.return=l,d.sibling=null,o!==null&&(L=l.deletions,L===null?(l.deletions=[o],l.flags|=16):L.push(o)),l.child=d,l.memoizedState=null,d)}function f1(o,l){return l=Dm({mode:"visible",children:l},o.mode),l.return=o,o.child=l}function Dm(o,l){return o=jr(22,o,null,l),o.lanes=0,o}function d1(o,l,d){return dl(l,o.child,null,d),o=f1(l,l.pendingProps.children),o.flags|=2,l.memoizedState=null,o}function CO(o,l,d){o.lanes|=l;var m=o.alternate;m!==null&&(m.lanes|=l),Cb(o.return,l,d)}function h1(o,l,d,m,x,A){var L=o.memoizedState;L===null?o.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:m,tail:d,tailMode:x,treeForkCount:A}:(L.isBackwards=l,L.rendering=null,L.renderingStartTime=0,L.last=m,L.tail=d,L.tailMode=x,L.treeForkCount=A)}function OO(o,l,d){var m=l.pendingProps,x=m.revealOrder,A=m.tail;m=m.children;var L=ln.current,F=(L&2)!==0;if(F?(L=L&1|2,l.flags|=128):L&=1,X(ln,L),Kn(o,l,m,d),m=ht?Zf:0,!F&&o!==null&&(o.flags&128)!==0)e:for(o=l.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&CO(o,d,l);else if(o.tag===19)CO(o,d,l);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===l)break e;for(;o.sibling===null;){if(o.return===null||o.return===l)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(x){case"forwards":for(d=l.child,x=null;d!==null;)o=d.alternate,o!==null&&_m(o)===null&&(x=d),d=d.sibling;d=x,d===null?(x=l.child,l.child=null):(x=d.sibling,d.sibling=null),h1(l,!1,x,d,A,m);break;case"backwards":case"unstable_legacy-backwards":for(d=null,x=l.child,l.child=null;x!==null;){if(o=x.alternate,o!==null&&_m(o)===null){l.child=x;break}o=x.sibling,x.sibling=d,d=x,x=o}h1(l,!0,d,null,A,m);break;case"together":h1(l,!1,null,null,void 0,m);break;default:l.memoizedState=null}return l.child}function $a(o,l,d){if(o!==null&&(l.dependencies=o.dependencies),es|=l.lanes,(d&l.childLanes)===0)if(o!==null){if(zu(o,l,d,!1),(d&l.childLanes)===0)return null}else return null;if(o!==null&&l.child!==o.child)throw Error(r(153));if(l.child!==null){for(o=l.child,d=Ra(o,o.pendingProps),l.child=d,d.return=l;o.sibling!==null;)o=o.sibling,d=d.sibling=Ra(o,o.pendingProps),d.return=l;d.sibling=null}return l.child}function p1(o,l){return(o.lanes&l)!==0?!0:(o=o.dependencies,!!(o!==null&&pm(o)))}function G7(o,l,d){switch(l.tag){case 3:ie(l,l.stateNode.containerInfo),Vo(l,pn,o.memoizedState.cache),ol();break;case 27:case 5:pe(l);break;case 4:ie(l,l.stateNode.containerInfo);break;case 10:Vo(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,$b(l),null;break;case 13:var m=l.memoizedState;if(m!==null)return m.dehydrated!==null?(Qo(l),l.flags|=128,null):(d&l.child.childLanes)!==0?kO(o,l,d):(Qo(l),o=$a(o,l,d),o!==null?o.sibling:null);Qo(l);break;case 19:var x=(o.flags&128)!==0;if(m=(d&l.childLanes)!==0,m||(zu(o,l,d,!1),m=(d&l.childLanes)!==0),x){if(m)return OO(o,l,d);l.flags|=128}if(x=l.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),X(ln,ln.current),m)break;return null;case 22:return l.lanes=0,wO(o,l,d,l.pendingProps);case 24:Vo(l,pn,o.memoizedState.cache)}return $a(o,l,d)}function TO(o,l,d){if(o!==null)if(o.memoizedProps!==l.pendingProps)gn=!0;else{if(!p1(o,d)&&(l.flags&128)===0)return gn=!1,G7(o,l,d);gn=(o.flags&131072)!==0}else gn=!1,ht&&(l.flags&1048576)!==0&&sC(l,Zf,l.index);switch(l.lanes=0,l.tag){case 16:e:{var m=l.pendingProps;if(o=cl(l.elementType),l.type=o,typeof o=="function")bb(o)?(m=pl(o,m),l.tag=1,l=EO(null,l,o,m,d)):(l.tag=0,l=s1(null,l,o,m,d));else{if(o!=null){var x=o.$$typeof;if(x===S){l.tag=11,l=vO(null,l,o,m,d);break e}else if(x===M){l.tag=14,l=yO(null,l,o,m,d);break e}}throw l=I(o)||o,Error(r(306,l,""))}}return l;case 0:return s1(o,l,l.type,l.pendingProps,d);case 1:return m=l.type,x=pl(m,l.pendingProps),EO(o,l,m,x,d);case 3:e:{if(ie(l,l.stateNode.containerInfo),o===null)throw Error(r(387));m=l.pendingProps;var A=l.memoizedState;x=A.element,Db(o,l),ad(l,m,null,d);var L=l.memoizedState;if(m=L.cache,Vo(l,pn,m),m!==A.cache&&Ob(l,[pn],d,!0),id(),m=L.element,A.isDehydrated)if(A={element:m,isDehydrated:!1,cache:L.cache},l.updateQueue.baseState=A,l.memoizedState=A,l.flags&256){l=AO(o,l,m,d);break e}else if(m!==x){x=ai(Error(r(424)),l),Xf(x),l=AO(o,l,m,d);break e}else{switch(o=l.stateNode.containerInfo,o.nodeType){case 9:o=o.body;break;default:o=o.nodeName==="HTML"?o.ownerDocument.body:o}for($t=ci(o.firstChild),qn=l,ht=!0,Go=null,li=!0,d=wC(l,null,m,d),l.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling}else{if(ol(),m===x){l=$a(o,l,d);break e}Kn(o,l,m,d)}l=l.child}return l;case 26:return Rm(o,l),o===null?(d=BT(l.type,null,l.pendingProps,null))?l.memoizedState=d:ht||(d=l.type,o=l.pendingProps,m=Qm(he.current).createElement(d),m[Sn]=l,m[ir]=o,Yn(m,d,o),hn(m),l.stateNode=m):l.memoizedState=BT(l.type,o.memoizedProps,l.pendingProps,o.memoizedState),null;case 27:return pe(l),o===null&&ht&&(m=l.stateNode=zT(l.type,l.pendingProps,he.current),qn=l,li=!0,x=$t,as(l.type)?(K1=x,$t=ci(m.firstChild)):$t=x),Kn(o,l,l.pendingProps.children,d),Rm(o,l),o===null&&(l.flags|=4194304),l.child;case 5:return o===null&&ht&&((x=m=$t)&&(m=wF(m,l.type,l.pendingProps,li),m!==null?(l.stateNode=m,qn=l,$t=ci(m.firstChild),li=!1,x=!0):x=!1),x||qo(l)),pe(l),x=l.type,A=l.pendingProps,L=o!==null?o.memoizedProps:null,m=A.children,F1(x,A)?m=null:L!==null&&F1(x,L)&&(l.flags|=32),l.memoizedState!==null&&(x=Ub(o,l,I7,null,null,d),Ad._currentValue=x),Rm(o,l),Kn(o,l,m,d),l.child;case 6:return o===null&&ht&&((o=d=$t)&&(d=xF(d,l.pendingProps,li),d!==null?(l.stateNode=d,qn=l,$t=null,o=!0):o=!1),o||qo(l)),null;case 13:return kO(o,l,d);case 4:return ie(l,l.stateNode.containerInfo),m=l.pendingProps,o===null?l.child=dl(l,null,m,d):Kn(o,l,m,d),l.child;case 11:return vO(o,l,l.type,l.pendingProps,d);case 7:return Kn(o,l,l.pendingProps,d),l.child;case 8:return Kn(o,l,l.pendingProps.children,d),l.child;case 12:return Kn(o,l,l.pendingProps.children,d),l.child;case 10:return m=l.pendingProps,Vo(l,l.type,m.value),Kn(o,l,m.children,d),l.child;case 9:return x=l.type._context,m=l.pendingProps.children,ll(l),x=Vn(x),m=m(x),l.flags|=1,Kn(o,l,m,d),l.child;case 14:return yO(o,l,l.type,l.pendingProps,d);case 15:return bO(o,l,l.type,l.pendingProps,d);case 19:return OO(o,l,d);case 31:return H7(o,l,d);case 22:return wO(o,l,d,l.pendingProps);case 24:return ll(l),m=Vn(pn),o===null?(x=Pb(),x===null&&(x=Dt,A=Tb(),x.pooledCache=A,A.refCount++,A!==null&&(x.pooledCacheLanes|=d),x=A),l.memoizedState={parent:m,cache:x},Rb(l),Vo(l,pn,x)):((o.lanes&d)!==0&&(Db(o,l),ad(l,null,null,d),id()),x=o.memoizedState,A=l.memoizedState,x.parent!==m?(x={parent:m,cache:m},l.memoizedState=x,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=x),Vo(l,pn,m)):(m=A.cache,Vo(l,pn,m),m!==x.cache&&Ob(l,[pn],d,!0))),Kn(o,l,l.pendingProps.children,d),l.child;case 29:throw l.pendingProps}throw Error(r(156,l.tag))}function Ba(o){o.flags|=4}function m1(o,l,d,m,x){if((l=(o.mode&32)!==0)&&(l=!1),l){if(o.flags|=16777216,(x&335544128)===x)if(o.stateNode.complete)o.flags|=8192;else if(nT())o.flags|=8192;else throw fl=ym,Nb}else o.flags&=-16777217}function MO(o,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!qT(l))if(nT())o.flags|=8192;else throw fl=ym,Nb}function Im(o,l){l!==null&&(o.flags|=4),o.flags&16384&&(l=o.tag!==22?Up():536870912,o.lanes|=l,Wu|=l)}function fd(o,l){if(!ht)switch(o.tailMode){case"hidden":l=o.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?o.tail=null:d.sibling=null;break;case"collapsed":d=o.tail;for(var m=null;d!==null;)d.alternate!==null&&(m=d),d=d.sibling;m===null?l||o.tail===null?o.tail=null:o.tail.sibling=null:m.sibling=null}}function Bt(o){var l=o.alternate!==null&&o.alternate.child===o.child,d=0,m=0;if(l)for(var x=o.child;x!==null;)d|=x.lanes|x.childLanes,m|=x.subtreeFlags&65011712,m|=x.flags&65011712,x.return=o,x=x.sibling;else for(x=o.child;x!==null;)d|=x.lanes|x.childLanes,m|=x.subtreeFlags,m|=x.flags,x.return=o,x=x.sibling;return o.subtreeFlags|=m,o.childLanes=d,l}function q7(o,l,d){var m=l.pendingProps;switch(Sb(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bt(l),null;case 1:return Bt(l),null;case 3:return d=l.stateNode,m=null,o!==null&&(m=o.memoizedState.cache),l.memoizedState.cache!==m&&(l.flags|=2048),La(pn),J(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(o===null||o.child===null)&&(Lu(l)?Ba(l):o===null||o.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,Ab())),Bt(l),null;case 26:var x=l.type,A=l.memoizedState;return o===null?(Ba(l),A!==null?(Bt(l),MO(l,A)):(Bt(l),m1(l,x,null,m,d))):A?A!==o.memoizedState?(Ba(l),Bt(l),MO(l,A)):(Bt(l),l.flags&=-16777217):(o=o.memoizedProps,o!==m&&Ba(l),Bt(l),m1(l,x,o,m,d)),null;case 27:if(ye(l),d=he.current,x=l.type,o!==null&&l.stateNode!=null)o.memoizedProps!==m&&Ba(l);else{if(!m){if(l.stateNode===null)throw Error(r(166));return Bt(l),null}o=ee.current,Lu(l)?uC(l):(o=zT(x,m,d),l.stateNode=o,Ba(l))}return Bt(l),null;case 5:if(ye(l),x=l.type,o!==null&&l.stateNode!=null)o.memoizedProps!==m&&Ba(l);else{if(!m){if(l.stateNode===null)throw Error(r(166));return Bt(l),null}if(A=ee.current,Lu(l))uC(l);else{var L=Qm(he.current);switch(A){case 1:A=L.createElementNS("http://www.w3.org/2000/svg",x);break;case 2:A=L.createElementNS("http://www.w3.org/1998/Math/MathML",x);break;default:switch(x){case"svg":A=L.createElementNS("http://www.w3.org/2000/svg",x);break;case"math":A=L.createElementNS("http://www.w3.org/1998/Math/MathML",x);break;case"script":A=L.createElement("div"),A.innerHTML="<script><\/script>",A=A.removeChild(A.firstChild);break;case"select":A=typeof m.is=="string"?L.createElement("select",{is:m.is}):L.createElement("select"),m.multiple?A.multiple=!0:m.size&&(A.size=m.size);break;default:A=typeof m.is=="string"?L.createElement(x,{is:m.is}):L.createElement(x)}}A[Sn]=l,A[ir]=m;e:for(L=l.child;L!==null;){if(L.tag===5||L.tag===6)A.appendChild(L.stateNode);else if(L.tag!==4&&L.tag!==27&&L.child!==null){L.child.return=L,L=L.child;continue}if(L===l)break e;for(;L.sibling===null;){if(L.return===null||L.return===l)break e;L=L.return}L.sibling.return=L.return,L=L.sibling}l.stateNode=A;e:switch(Yn(A,x,m),x){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}m&&Ba(l)}}return Bt(l),m1(l,l.type,o===null?null:o.memoizedProps,l.pendingProps,d),null;case 6:if(o&&l.stateNode!=null)o.memoizedProps!==m&&Ba(l);else{if(typeof m!="string"&&l.stateNode===null)throw Error(r(166));if(o=he.current,Lu(l)){if(o=l.stateNode,d=l.memoizedProps,m=null,x=qn,x!==null)switch(x.tag){case 27:case 5:m=x.memoizedProps}o[Sn]=l,o=!!(o.nodeValue===d||m!==null&&m.suppressHydrationWarning===!0||kT(o.nodeValue,d)),o||qo(l,!0)}else o=Qm(o).createTextNode(m),o[Sn]=l,l.stateNode=o}return Bt(l),null;case 31:if(d=l.memoizedState,o===null||o.memoizedState!==null){if(m=Lu(l),d!==null){if(o===null){if(!m)throw Error(r(318));if(o=l.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[Sn]=l}else ol(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Bt(l),o=!1}else d=Ab(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=d),o=!0;if(!o)return l.flags&256?(Br(l),l):(Br(l),null);if((l.flags&128)!==0)throw Error(r(558))}return Bt(l),null;case 13:if(m=l.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(x=Lu(l),m!==null&&m.dehydrated!==null){if(o===null){if(!x)throw Error(r(318));if(x=l.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(r(317));x[Sn]=l}else ol(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Bt(l),x=!1}else x=Ab(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=x),x=!0;if(!x)return l.flags&256?(Br(l),l):(Br(l),null)}return Br(l),(l.flags&128)!==0?(l.lanes=d,l):(d=m!==null,o=o!==null&&o.memoizedState!==null,d&&(m=l.child,x=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(x=m.alternate.memoizedState.cachePool.pool),A=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(A=m.memoizedState.cachePool.pool),A!==x&&(m.flags|=2048)),d!==o&&d&&(l.child.flags|=8192),Im(l,l.updateQueue),Bt(l),null);case 4:return J(),o===null&&z1(l.stateNode.containerInfo),Bt(l),null;case 10:return La(l.type),Bt(l),null;case 19:if(K(ln),m=l.memoizedState,m===null)return Bt(l),null;if(x=(l.flags&128)!==0,A=m.rendering,A===null)if(x)fd(m,!1);else{if(en!==0||o!==null&&(o.flags&128)!==0)for(o=l.child;o!==null;){if(A=_m(o),A!==null){for(l.flags|=128,fd(m,!1),o=A.updateQueue,l.updateQueue=o,Im(l,o),l.subtreeFlags=0,o=d,d=l.child;d!==null;)iC(d,o),d=d.sibling;return X(ln,ln.current&1|2),ht&&Da(l,m.treeForkCount),l.child}o=o.sibling}m.tail!==null&&ae()>Bm&&(l.flags|=128,x=!0,fd(m,!1),l.lanes=4194304)}else{if(!x)if(o=_m(A),o!==null){if(l.flags|=128,x=!0,o=o.updateQueue,l.updateQueue=o,Im(l,o),fd(m,!0),m.tail===null&&m.tailMode==="hidden"&&!A.alternate&&!ht)return Bt(l),null}else 2*ae()-m.renderingStartTime>Bm&&d!==536870912&&(l.flags|=128,x=!0,fd(m,!1),l.lanes=4194304);m.isBackwards?(A.sibling=l.child,l.child=A):(o=m.last,o!==null?o.sibling=A:l.child=A,m.last=A)}return m.tail!==null?(o=m.tail,m.rendering=o,m.tail=o.sibling,m.renderingStartTime=ae(),o.sibling=null,d=ln.current,X(ln,x?d&1|2:d&1),ht&&Da(l,m.treeForkCount),o):(Bt(l),null);case 22:case 23:return Br(l),jb(),m=l.memoizedState!==null,o!==null?o.memoizedState!==null!==m&&(l.flags|=8192):m&&(l.flags|=8192),m?(d&536870912)!==0&&(l.flags&128)===0&&(Bt(l),l.subtreeFlags&6&&(l.flags|=8192)):Bt(l),d=l.updateQueue,d!==null&&Im(l,d.retryQueue),d=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),m=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),m!==d&&(l.flags|=2048),o!==null&&K(ul),null;case 24:return d=null,o!==null&&(d=o.memoizedState.cache),l.memoizedState.cache!==d&&(l.flags|=2048),La(pn),Bt(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function V7(o,l){switch(Sb(l),l.tag){case 1:return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return La(pn),J(),o=l.flags,(o&65536)!==0&&(o&128)===0?(l.flags=o&-65537|128,l):null;case 26:case 27:case 5:return ye(l),null;case 31:if(l.memoizedState!==null){if(Br(l),l.alternate===null)throw Error(r(340));ol()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 13:if(Br(l),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(r(340));ol()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return K(ln),null;case 4:return J(),null;case 10:return La(l.type),null;case 22:case 23:return Br(l),jb(),o!==null&&K(ul),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 24:return La(pn),null;case 25:return null;default:return null}}function PO(o,l){switch(Sb(l),l.tag){case 3:La(pn),J();break;case 26:case 27:case 5:ye(l);break;case 4:J();break;case 31:l.memoizedState!==null&&Br(l);break;case 13:Br(l);break;case 19:K(ln);break;case 10:La(l.type);break;case 22:case 23:Br(l),jb(),o!==null&&K(ul);break;case 24:La(pn)}}function dd(o,l){try{var d=l.updateQueue,m=d!==null?d.lastEffect:null;if(m!==null){var x=m.next;d=x;do{if((d.tag&o)===o){m=void 0;var A=d.create,L=d.inst;m=A(),L.destroy=m}d=d.next}while(d!==x)}}catch(F){Ot(l,l.return,F)}}function Xo(o,l,d){try{var m=l.updateQueue,x=m!==null?m.lastEffect:null;if(x!==null){var A=x.next;m=A;do{if((m.tag&o)===o){var L=m.inst,F=L.destroy;if(F!==void 0){L.destroy=void 0,x=l;var Y=d,se=F;try{se()}catch(ve){Ot(x,Y,ve)}}}m=m.next}while(m!==A)}}catch(ve){Ot(l,l.return,ve)}}function NO(o){var l=o.updateQueue;if(l!==null){var d=o.stateNode;try{_C(l,d)}catch(m){Ot(o,o.return,m)}}}function RO(o,l,d){d.props=pl(o.type,o.memoizedProps),d.state=o.memoizedState;try{d.componentWillUnmount()}catch(m){Ot(o,l,m)}}function hd(o,l){try{var d=o.ref;if(d!==null){switch(o.tag){case 26:case 27:case 5:var m=o.stateNode;break;case 30:m=o.stateNode;break;default:m=o.stateNode}typeof d=="function"?o.refCleanup=d(m):d.current=m}}catch(x){Ot(o,l,x)}}function Ji(o,l){var d=o.ref,m=o.refCleanup;if(d!==null)if(typeof m=="function")try{m()}catch(x){Ot(o,l,x)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof d=="function")try{d(null)}catch(x){Ot(o,l,x)}else d.current=null}function DO(o){var l=o.type,d=o.memoizedProps,m=o.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":d.autoFocus&&m.focus();break e;case"img":d.src?m.src=d.src:d.srcSet&&(m.srcset=d.srcSet)}}catch(x){Ot(o,o.return,x)}}function g1(o,l,d){try{var m=o.stateNode;pF(m,o.type,d,l),m[ir]=l}catch(x){Ot(o,o.return,x)}}function IO(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&as(o.type)||o.tag===4}function v1(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||IO(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&as(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function y1(o,l,d){var m=o.tag;if(m===5||m===6)o=o.stateNode,l?(d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d).insertBefore(o,l):(l=d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d,l.appendChild(o),d=d._reactRootContainer,d!=null||l.onclick!==null||(l.onclick=Pa));else if(m!==4&&(m===27&&as(o.type)&&(d=o.stateNode,l=null),o=o.child,o!==null))for(y1(o,l,d),o=o.sibling;o!==null;)y1(o,l,d),o=o.sibling}function Lm(o,l,d){var m=o.tag;if(m===5||m===6)o=o.stateNode,l?d.insertBefore(o,l):d.appendChild(o);else if(m!==4&&(m===27&&as(o.type)&&(d=o.stateNode),o=o.child,o!==null))for(Lm(o,l,d),o=o.sibling;o!==null;)Lm(o,l,d),o=o.sibling}function LO(o){var l=o.stateNode,d=o.memoizedProps;try{for(var m=o.type,x=l.attributes;x.length;)l.removeAttributeNode(x[0]);Yn(l,m,d),l[Sn]=o,l[ir]=d}catch(A){Ot(o,o.return,A)}}var Ua=!1,vn=!1,b1=!1,zO=typeof WeakSet=="function"?WeakSet:Set,Dn=null;function K7(o,l){if(o=o.containerInfo,B1=rg,o=Wk(o),db(o)){if("selectionStart"in o)var d={start:o.selectionStart,end:o.selectionEnd};else e:{d=(d=o.ownerDocument)&&d.defaultView||window;var m=d.getSelection&&d.getSelection();if(m&&m.rangeCount!==0){d=m.anchorNode;var x=m.anchorOffset,A=m.focusNode;m=m.focusOffset;try{d.nodeType,A.nodeType}catch{d=null;break e}var L=0,F=-1,Y=-1,se=0,ve=0,we=o,fe=null;t:for(;;){for(var me;we!==d||x!==0&&we.nodeType!==3||(F=L+x),we!==A||m!==0&&we.nodeType!==3||(Y=L+m),we.nodeType===3&&(L+=we.nodeValue.length),(me=we.firstChild)!==null;)fe=we,we=me;for(;;){if(we===o)break t;if(fe===d&&++se===x&&(F=L),fe===A&&++ve===m&&(Y=L),(me=we.nextSibling)!==null)break;we=fe,fe=we.parentNode}we=me}d=F===-1||Y===-1?null:{start:F,end:Y}}else d=null}d=d||{start:0,end:0}}else d=null;for(U1={focusedElem:o,selectionRange:d},rg=!1,Dn=l;Dn!==null;)if(l=Dn,o=l.child,(l.subtreeFlags&1028)!==0&&o!==null)o.return=l,Dn=o;else for(;Dn!==null;){switch(l=Dn,A=l.alternate,o=l.flags,l.tag){case 0:if((o&4)!==0&&(o=l.updateQueue,o=o!==null?o.events:null,o!==null))for(d=0;d<o.length;d++)x=o[d],x.ref.impl=x.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&A!==null){o=void 0,d=l,x=A.memoizedProps,A=A.memoizedState,m=d.stateNode;try{var Le=pl(d.type,x);o=m.getSnapshotBeforeUpdate(Le,A),m.__reactInternalSnapshotBeforeUpdate=o}catch(We){Ot(d,d.return,We)}}break;case 3:if((o&1024)!==0){if(o=l.stateNode.containerInfo,d=o.nodeType,d===9)G1(o);else if(d===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":G1(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=l.sibling,o!==null){o.return=l.return,Dn=o;break}Dn=l.return}}function jO(o,l,d){var m=d.flags;switch(d.tag){case 0:case 11:case 15:Ha(o,d),m&4&&dd(5,d);break;case 1:if(Ha(o,d),m&4)if(o=d.stateNode,l===null)try{o.componentDidMount()}catch(L){Ot(d,d.return,L)}else{var x=pl(d.type,l.memoizedProps);l=l.memoizedState;try{o.componentDidUpdate(x,l,o.__reactInternalSnapshotBeforeUpdate)}catch(L){Ot(d,d.return,L)}}m&64&&NO(d),m&512&&hd(d,d.return);break;case 3:if(Ha(o,d),m&64&&(o=d.updateQueue,o!==null)){if(l=null,d.child!==null)switch(d.child.tag){case 27:case 5:l=d.child.stateNode;break;case 1:l=d.child.stateNode}try{_C(o,l)}catch(L){Ot(d,d.return,L)}}break;case 27:l===null&&m&4&&LO(d);case 26:case 5:Ha(o,d),l===null&&m&4&&DO(d),m&512&&hd(d,d.return);break;case 12:Ha(o,d);break;case 31:Ha(o,d),m&4&&UO(o,d);break;case 13:Ha(o,d),m&4&&FO(o,d),m&64&&(o=d.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(d=nF.bind(null,d),_F(o,d))));break;case 22:if(m=d.memoizedState!==null||Ua,!m){l=l!==null&&l.memoizedState!==null||vn,x=Ua;var A=vn;Ua=m,(vn=l)&&!A?Ga(o,d,(d.subtreeFlags&8772)!==0):Ha(o,d),Ua=x,vn=A}break;case 30:break;default:Ha(o,d)}}function $O(o){var l=o.alternate;l!==null&&(o.alternate=null,$O(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&$f(l)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var Gt=null,kr=!1;function Fa(o,l,d){for(d=d.child;d!==null;)BO(o,l,d),d=d.sibling}function BO(o,l,d){if(Gn&&typeof Gn.onCommitFiberUnmount=="function")try{Gn.onCommitFiberUnmount(Xt,d)}catch{}switch(d.tag){case 26:vn||Ji(d,l),Fa(o,l,d),d.memoizedState?d.memoizedState.count--:d.stateNode&&(d=d.stateNode,d.parentNode.removeChild(d));break;case 27:vn||Ji(d,l);var m=Gt,x=kr;as(d.type)&&(Gt=d.stateNode,kr=!1),Fa(o,l,d),_d(d.stateNode),Gt=m,kr=x;break;case 5:vn||Ji(d,l);case 6:if(m=Gt,x=kr,Gt=null,Fa(o,l,d),Gt=m,kr=x,Gt!==null)if(kr)try{(Gt.nodeType===9?Gt.body:Gt.nodeName==="HTML"?Gt.ownerDocument.body:Gt).removeChild(d.stateNode)}catch(A){Ot(d,l,A)}else try{Gt.removeChild(d.stateNode)}catch(A){Ot(d,l,A)}break;case 18:Gt!==null&&(kr?(o=Gt,NT(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,d.stateNode),rc(o)):NT(Gt,d.stateNode));break;case 4:m=Gt,x=kr,Gt=d.stateNode.containerInfo,kr=!0,Fa(o,l,d),Gt=m,kr=x;break;case 0:case 11:case 14:case 15:Xo(2,d,l),vn||Xo(4,d,l),Fa(o,l,d);break;case 1:vn||(Ji(d,l),m=d.stateNode,typeof m.componentWillUnmount=="function"&&RO(d,l,m)),Fa(o,l,d);break;case 21:Fa(o,l,d);break;case 22:vn=(m=vn)||d.memoizedState!==null,Fa(o,l,d),vn=m;break;default:Fa(o,l,d)}}function UO(o,l){if(l.memoizedState===null&&(o=l.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{rc(o)}catch(d){Ot(l,l.return,d)}}}function FO(o,l){if(l.memoizedState===null&&(o=l.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{rc(o)}catch(d){Ot(l,l.return,d)}}function Y7(o){switch(o.tag){case 31:case 13:case 19:var l=o.stateNode;return l===null&&(l=o.stateNode=new zO),l;case 22:return o=o.stateNode,l=o._retryCache,l===null&&(l=o._retryCache=new zO),l;default:throw Error(r(435,o.tag))}}function zm(o,l){var d=Y7(o);l.forEach(function(m){if(!d.has(m)){d.add(m);var x=rF.bind(null,o,m);m.then(x,x)}})}function Cr(o,l){var d=l.deletions;if(d!==null)for(var m=0;m<d.length;m++){var x=d[m],A=o,L=l,F=L;e:for(;F!==null;){switch(F.tag){case 27:if(as(F.type)){Gt=F.stateNode,kr=!1;break e}break;case 5:Gt=F.stateNode,kr=!1;break e;case 3:case 4:Gt=F.stateNode.containerInfo,kr=!0;break e}F=F.return}if(Gt===null)throw Error(r(160));BO(A,L,x),Gt=null,kr=!1,A=x.alternate,A!==null&&(A.return=null),x.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)HO(l,o),l=l.sibling}var Ti=null;function HO(o,l){var d=o.alternate,m=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:Cr(l,o),Or(o),m&4&&(Xo(3,o,o.return),dd(3,o),Xo(5,o,o.return));break;case 1:Cr(l,o),Or(o),m&512&&(vn||d===null||Ji(d,d.return)),m&64&&Ua&&(o=o.updateQueue,o!==null&&(m=o.callbacks,m!==null&&(d=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=d===null?m:d.concat(m))));break;case 26:var x=Ti;if(Cr(l,o),Or(o),m&512&&(vn||d===null||Ji(d,d.return)),m&4){var A=d!==null?d.memoizedState:null;if(m=o.memoizedState,d===null)if(m===null)if(o.stateNode===null){e:{m=o.type,d=o.memoizedProps,x=x.ownerDocument||x;t:switch(m){case"title":A=x.getElementsByTagName("title")[0],(!A||A[Xs]||A[Sn]||A.namespaceURI==="http://www.w3.org/2000/svg"||A.hasAttribute("itemprop"))&&(A=x.createElement(m),x.head.insertBefore(A,x.querySelector("head > title"))),Yn(A,m,d),A[Sn]=o,hn(A),m=A;break e;case"link":var L=HT("link","href",x).get(m+(d.href||""));if(L){for(var F=0;F<L.length;F++)if(A=L[F],A.getAttribute("href")===(d.href==null||d.href===""?null:d.href)&&A.getAttribute("rel")===(d.rel==null?null:d.rel)&&A.getAttribute("title")===(d.title==null?null:d.title)&&A.getAttribute("crossorigin")===(d.crossOrigin==null?null:d.crossOrigin)){L.splice(F,1);break t}}A=x.createElement(m),Yn(A,m,d),x.head.appendChild(A);break;case"meta":if(L=HT("meta","content",x).get(m+(d.content||""))){for(F=0;F<L.length;F++)if(A=L[F],A.getAttribute("content")===(d.content==null?null:""+d.content)&&A.getAttribute("name")===(d.name==null?null:d.name)&&A.getAttribute("property")===(d.property==null?null:d.property)&&A.getAttribute("http-equiv")===(d.httpEquiv==null?null:d.httpEquiv)&&A.getAttribute("charset")===(d.charSet==null?null:d.charSet)){L.splice(F,1);break t}}A=x.createElement(m),Yn(A,m,d),x.head.appendChild(A);break;default:throw Error(r(468,m))}A[Sn]=o,hn(A),m=A}o.stateNode=m}else GT(x,o.type,o.stateNode);else o.stateNode=FT(x,m,o.memoizedProps);else A!==m?(A===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):A.count--,m===null?GT(x,o.type,o.stateNode):FT(x,m,o.memoizedProps)):m===null&&o.stateNode!==null&&g1(o,o.memoizedProps,d.memoizedProps)}break;case 27:Cr(l,o),Or(o),m&512&&(vn||d===null||Ji(d,d.return)),d!==null&&m&4&&g1(o,o.memoizedProps,d.memoizedProps);break;case 5:if(Cr(l,o),Or(o),m&512&&(vn||d===null||Ji(d,d.return)),o.flags&32){x=o.stateNode;try{ku(x,"")}catch(Le){Ot(o,o.return,Le)}}m&4&&o.stateNode!=null&&(x=o.memoizedProps,g1(o,x,d!==null?d.memoizedProps:x)),m&1024&&(b1=!0);break;case 6:if(Cr(l,o),Or(o),m&4){if(o.stateNode===null)throw Error(r(162));m=o.memoizedProps,d=o.stateNode;try{d.nodeValue=m}catch(Le){Ot(o,o.return,Le)}}break;case 3:if(Jm=null,x=Ti,Ti=Zm(l.containerInfo),Cr(l,o),Ti=x,Or(o),m&4&&d!==null&&d.memoizedState.isDehydrated)try{rc(l.containerInfo)}catch(Le){Ot(o,o.return,Le)}b1&&(b1=!1,GO(o));break;case 4:m=Ti,Ti=Zm(o.stateNode.containerInfo),Cr(l,o),Or(o),Ti=m;break;case 12:Cr(l,o),Or(o);break;case 31:Cr(l,o),Or(o),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,zm(o,m)));break;case 13:Cr(l,o),Or(o),o.child.flags&8192&&o.memoizedState!==null!=(d!==null&&d.memoizedState!==null)&&($m=ae()),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,zm(o,m)));break;case 22:x=o.memoizedState!==null;var Y=d!==null&&d.memoizedState!==null,se=Ua,ve=vn;if(Ua=se||x,vn=ve||Y,Cr(l,o),vn=ve,Ua=se,Or(o),m&8192)e:for(l=o.stateNode,l._visibility=x?l._visibility&-2:l._visibility|1,x&&(d===null||Y||Ua||vn||ml(o)),d=null,l=o;;){if(l.tag===5||l.tag===26){if(d===null){Y=d=l;try{if(A=Y.stateNode,x)L=A.style,typeof L.setProperty=="function"?L.setProperty("display","none","important"):L.display="none";else{F=Y.stateNode;var we=Y.memoizedProps.style,fe=we!=null&&we.hasOwnProperty("display")?we.display:null;F.style.display=fe==null||typeof fe=="boolean"?"":(""+fe).trim()}}catch(Le){Ot(Y,Y.return,Le)}}}else if(l.tag===6){if(d===null){Y=l;try{Y.stateNode.nodeValue=x?"":Y.memoizedProps}catch(Le){Ot(Y,Y.return,Le)}}}else if(l.tag===18){if(d===null){Y=l;try{var me=Y.stateNode;x?RT(me,!0):RT(Y.stateNode,!1)}catch(Le){Ot(Y,Y.return,Le)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===o)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break e;for(;l.sibling===null;){if(l.return===null||l.return===o)break e;d===l&&(d=null),l=l.return}d===l&&(d=null),l.sibling.return=l.return,l=l.sibling}m&4&&(m=o.updateQueue,m!==null&&(d=m.retryQueue,d!==null&&(m.retryQueue=null,zm(o,d))));break;case 19:Cr(l,o),Or(o),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,zm(o,m)));break;case 30:break;case 21:break;default:Cr(l,o),Or(o)}}function Or(o){var l=o.flags;if(l&2){try{for(var d,m=o.return;m!==null;){if(IO(m)){d=m;break}m=m.return}if(d==null)throw Error(r(160));switch(d.tag){case 27:var x=d.stateNode,A=v1(o);Lm(o,A,x);break;case 5:var L=d.stateNode;d.flags&32&&(ku(L,""),d.flags&=-33);var F=v1(o);Lm(o,F,L);break;case 3:case 4:var Y=d.stateNode.containerInfo,se=v1(o);y1(o,se,Y);break;default:throw Error(r(161))}}catch(ve){Ot(o,o.return,ve)}o.flags&=-3}l&4096&&(o.flags&=-4097)}function GO(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var l=o;GO(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),o=o.sibling}}function Ha(o,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)jO(o,l.alternate,l),l=l.sibling}function ml(o){for(o=o.child;o!==null;){var l=o;switch(l.tag){case 0:case 11:case 14:case 15:Xo(4,l,l.return),ml(l);break;case 1:Ji(l,l.return);var d=l.stateNode;typeof d.componentWillUnmount=="function"&&RO(l,l.return,d),ml(l);break;case 27:_d(l.stateNode);case 26:case 5:Ji(l,l.return),ml(l);break;case 22:l.memoizedState===null&&ml(l);break;case 30:ml(l);break;default:ml(l)}o=o.sibling}}function Ga(o,l,d){for(d=d&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var m=l.alternate,x=o,A=l,L=A.flags;switch(A.tag){case 0:case 11:case 15:Ga(x,A,d),dd(4,A);break;case 1:if(Ga(x,A,d),m=A,x=m.stateNode,typeof x.componentDidMount=="function")try{x.componentDidMount()}catch(se){Ot(m,m.return,se)}if(m=A,x=m.updateQueue,x!==null){var F=m.stateNode;try{var Y=x.shared.hiddenCallbacks;if(Y!==null)for(x.shared.hiddenCallbacks=null,x=0;x<Y.length;x++)xC(Y[x],F)}catch(se){Ot(m,m.return,se)}}d&&L&64&&NO(A),hd(A,A.return);break;case 27:LO(A);case 26:case 5:Ga(x,A,d),d&&m===null&&L&4&&DO(A),hd(A,A.return);break;case 12:Ga(x,A,d);break;case 31:Ga(x,A,d),d&&L&4&&UO(x,A);break;case 13:Ga(x,A,d),d&&L&4&&FO(x,A);break;case 22:A.memoizedState===null&&Ga(x,A,d),hd(A,A.return);break;case 30:break;default:Ga(x,A,d)}l=l.sibling}}function w1(o,l){var d=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==d&&(o!=null&&o.refCount++,d!=null&&Jf(d))}function x1(o,l){o=null,l.alternate!==null&&(o=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==o&&(l.refCount++,o!=null&&Jf(o))}function Mi(o,l,d,m){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)qO(o,l,d,m),l=l.sibling}function qO(o,l,d,m){var x=l.flags;switch(l.tag){case 0:case 11:case 15:Mi(o,l,d,m),x&2048&&dd(9,l);break;case 1:Mi(o,l,d,m);break;case 3:Mi(o,l,d,m),x&2048&&(o=null,l.alternate!==null&&(o=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==o&&(l.refCount++,o!=null&&Jf(o)));break;case 12:if(x&2048){Mi(o,l,d,m),o=l.stateNode;try{var A=l.memoizedProps,L=A.id,F=A.onPostCommit;typeof F=="function"&&F(L,l.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(Y){Ot(l,l.return,Y)}}else Mi(o,l,d,m);break;case 31:Mi(o,l,d,m);break;case 13:Mi(o,l,d,m);break;case 23:break;case 22:A=l.stateNode,L=l.alternate,l.memoizedState!==null?A._visibility&2?Mi(o,l,d,m):pd(o,l):A._visibility&2?Mi(o,l,d,m):(A._visibility|=2,Vu(o,l,d,m,(l.subtreeFlags&10256)!==0||!1)),x&2048&&w1(L,l);break;case 24:Mi(o,l,d,m),x&2048&&x1(l.alternate,l);break;default:Mi(o,l,d,m)}}function Vu(o,l,d,m,x){for(x=x&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var A=o,L=l,F=d,Y=m,se=L.flags;switch(L.tag){case 0:case 11:case 15:Vu(A,L,F,Y,x),dd(8,L);break;case 23:break;case 22:var ve=L.stateNode;L.memoizedState!==null?ve._visibility&2?Vu(A,L,F,Y,x):pd(A,L):(ve._visibility|=2,Vu(A,L,F,Y,x)),x&&se&2048&&w1(L.alternate,L);break;case 24:Vu(A,L,F,Y,x),x&&se&2048&&x1(L.alternate,L);break;default:Vu(A,L,F,Y,x)}l=l.sibling}}function pd(o,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var d=o,m=l,x=m.flags;switch(m.tag){case 22:pd(d,m),x&2048&&w1(m.alternate,m);break;case 24:pd(d,m),x&2048&&x1(m.alternate,m);break;default:pd(d,m)}l=l.sibling}}var md=8192;function Ku(o,l,d){if(o.subtreeFlags&md)for(o=o.child;o!==null;)VO(o,l,d),o=o.sibling}function VO(o,l,d){switch(o.tag){case 26:Ku(o,l,d),o.flags&md&&o.memoizedState!==null&&DF(d,Ti,o.memoizedState,o.memoizedProps);break;case 5:Ku(o,l,d);break;case 3:case 4:var m=Ti;Ti=Zm(o.stateNode.containerInfo),Ku(o,l,d),Ti=m;break;case 22:o.memoizedState===null&&(m=o.alternate,m!==null&&m.memoizedState!==null?(m=md,md=16777216,Ku(o,l,d),md=m):Ku(o,l,d));break;default:Ku(o,l,d)}}function KO(o){var l=o.alternate;if(l!==null&&(o=l.child,o!==null)){l.child=null;do l=o.sibling,o.sibling=null,o=l;while(o!==null)}}function gd(o){var l=o.deletions;if((o.flags&16)!==0){if(l!==null)for(var d=0;d<l.length;d++){var m=l[d];Dn=m,WO(m,o)}KO(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)YO(o),o=o.sibling}function YO(o){switch(o.tag){case 0:case 11:case 15:gd(o),o.flags&2048&&Xo(9,o,o.return);break;case 3:gd(o);break;case 12:gd(o);break;case 22:var l=o.stateNode;o.memoizedState!==null&&l._visibility&2&&(o.return===null||o.return.tag!==13)?(l._visibility&=-3,jm(o)):gd(o);break;default:gd(o)}}function jm(o){var l=o.deletions;if((o.flags&16)!==0){if(l!==null)for(var d=0;d<l.length;d++){var m=l[d];Dn=m,WO(m,o)}KO(o)}for(o=o.child;o!==null;){switch(l=o,l.tag){case 0:case 11:case 15:Xo(8,l,l.return),jm(l);break;case 22:d=l.stateNode,d._visibility&2&&(d._visibility&=-3,jm(l));break;default:jm(l)}o=o.sibling}}function WO(o,l){for(;Dn!==null;){var d=Dn;switch(d.tag){case 0:case 11:case 15:Xo(8,d,l);break;case 23:case 22:if(d.memoizedState!==null&&d.memoizedState.cachePool!==null){var m=d.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:Jf(d.memoizedState.cache)}if(m=d.child,m!==null)m.return=d,Dn=m;else e:for(d=o;Dn!==null;){m=Dn;var x=m.sibling,A=m.return;if($O(m),m===d){Dn=null;break e}if(x!==null){x.return=A,Dn=x;break e}Dn=A}}}var W7={getCacheForType:function(o){var l=Vn(pn),d=l.data.get(o);return d===void 0&&(d=o(),l.data.set(o,d)),d},cacheSignal:function(){return Vn(pn).controller.signal}},Q7=typeof WeakMap=="function"?WeakMap:Map,St=0,Dt=null,st=null,ft=0,Ct=0,Ur=null,Jo=!1,Yu=!1,_1=!1,qa=0,en=0,es=0,gl=0,S1=0,Fr=0,Wu=0,vd=null,Tr=null,E1=!1,$m=0,QO=0,Bm=1/0,Um=null,ts=null,En=0,ns=null,Qu=null,Va=0,A1=0,k1=null,ZO=null,yd=0,C1=null;function Hr(){return(St&2)!==0&&ft!==0?ft&-ft:j.T!==null?R1():qp()}function XO(){if(Fr===0)if((ft&536870912)===0||ht){var o=wu;wu<<=1,(wu&3932160)===0&&(wu=262144),Fr=o}else Fr=536870912;return o=$r.current,o!==null&&(o.flags|=32),Fr}function Mr(o,l,d){(o===Dt&&(Ct===2||Ct===9)||o.cancelPendingCommit!==null)&&(Zu(o,0),rs(o,ft,Fr,!1)),Zs(o,d),((St&2)===0||o!==Dt)&&(o===Dt&&((St&2)===0&&(gl|=d),en===4&&rs(o,ft,Fr,!1)),ea(o))}function JO(o,l,d){if((St&6)!==0)throw Error(r(327));var m=!d&&(l&127)===0&&(l&o.expiredLanes)===0||Qs(o,l),x=m?J7(o,l):T1(o,l,!0),A=m;do{if(x===0){Yu&&!m&&rs(o,l,0,!1);break}else{if(d=o.current.alternate,A&&!Z7(d)){x=T1(o,l,!1),A=!1;continue}if(x===2){if(A=l,o.errorRecoveryDisabledLanes&A)var L=0;else L=o.pendingLanes&-536870913,L=L!==0?L:L&536870912?536870912:0;if(L!==0){l=L;e:{var F=o;x=vd;var Y=F.current.memoizedState.isDehydrated;if(Y&&(Zu(F,L).flags|=256),L=T1(F,L,!1),L!==2){if(_1&&!Y){F.errorRecoveryDisabledLanes|=A,gl|=A,x=4;break e}A=Tr,Tr=x,A!==null&&(Tr===null?Tr=A:Tr.push.apply(Tr,A))}x=L}if(A=!1,x!==2)continue}}if(x===1){Zu(o,0),rs(o,l,0,!0);break}e:{switch(m=o,A=x,A){case 0:case 1:throw Error(r(345));case 4:if((l&4194048)!==l)break;case 6:rs(m,l,Fr,!Jo);break e;case 2:Tr=null;break;case 3:case 5:break;default:throw Error(r(329))}if((l&62914560)===l&&(x=$m+300-ae(),10<x)){if(rs(m,l,Fr,!Jo),_u(m,0,!0)!==0)break e;Va=l,m.timeoutHandle=MT(eT.bind(null,m,d,Tr,Um,E1,l,Fr,gl,Wu,Jo,A,"Throttled",-0,0),x);break e}eT(m,d,Tr,Um,E1,l,Fr,gl,Wu,Jo,A,null,-0,0)}}break}while(!0);ea(o)}function eT(o,l,d,m,x,A,L,F,Y,se,ve,we,fe,me){if(o.timeoutHandle=-1,we=l.subtreeFlags,we&8192||(we&16785408)===16785408){we={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Pa},VO(l,A,we);var Le=(A&62914560)===A?$m-ae():(A&4194048)===A?QO-ae():0;if(Le=IF(we,Le),Le!==null){Va=A,o.cancelPendingCommit=Le(lT.bind(null,o,l,A,d,m,x,L,F,Y,ve,we,null,fe,me)),rs(o,A,L,!se);return}}lT(o,l,A,d,m,x,L,F,Y)}function Z7(o){for(var l=o;;){var d=l.tag;if((d===0||d===11||d===15)&&l.flags&16384&&(d=l.updateQueue,d!==null&&(d=d.stores,d!==null)))for(var m=0;m<d.length;m++){var x=d[m],A=x.getSnapshot;x=x.value;try{if(!zr(A(),x))return!1}catch{return!1}}if(d=l.child,l.subtreeFlags&16384&&d!==null)d.return=l,l=d;else{if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function rs(o,l,d,m){l&=~S1,l&=~gl,o.suspendedLanes|=l,o.pingedLanes&=~l,m&&(o.warmLanes|=l),m=o.expirationTimes;for(var x=l;0<x;){var A=31-_n(x),L=1<<A;m[A]=-1,x&=~L}d!==0&&Fp(o,d,l)}function Fm(){return(St&6)===0?(bd(0),!1):!0}function O1(){if(st!==null){if(Ct===0)var o=st.return;else o=st,Ia=sl=null,Gb(o),Uu=null,td=0,o=st;for(;o!==null;)PO(o.alternate,o),o=o.return;st=null}}function Zu(o,l){var d=o.timeoutHandle;d!==-1&&(o.timeoutHandle=-1,vF(d)),d=o.cancelPendingCommit,d!==null&&(o.cancelPendingCommit=null,d()),Va=0,O1(),Dt=o,st=d=Ra(o.current,null),ft=l,Ct=0,Ur=null,Jo=!1,Yu=Qs(o,l),_1=!1,Wu=Fr=S1=gl=es=en=0,Tr=vd=null,E1=!1,(l&8)!==0&&(l|=l&32);var m=o.entangledLanes;if(m!==0)for(o=o.entanglements,m&=l;0<m;){var x=31-_n(m),A=1<<x;l|=o[x],m&=~A}return qa=l,um(),d}function tT(o,l){tt=null,j.H=ud,l===Bu||l===vm?(l=vC(),Ct=3):l===Nb?(l=vC(),Ct=4):Ct=l===o1?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,Ur=l,st===null&&(en=1,Pm(o,ai(l,o.current)))}function nT(){var o=$r.current;return o===null?!0:(ft&4194048)===ft?ui===null:(ft&62914560)===ft||(ft&536870912)!==0?o===ui:!1}function rT(){var o=j.H;return j.H=ud,o===null?ud:o}function iT(){var o=j.A;return j.A=W7,o}function Hm(){en=4,Jo||(ft&4194048)!==ft&&$r.current!==null||(Yu=!0),(es&134217727)===0&&(gl&134217727)===0||Dt===null||rs(Dt,ft,Fr,!1)}function T1(o,l,d){var m=St;St|=2;var x=rT(),A=iT();(Dt!==o||ft!==l)&&(Um=null,Zu(o,l)),l=!1;var L=en;e:do try{if(Ct!==0&&st!==null){var F=st,Y=Ur;switch(Ct){case 8:O1(),L=6;break e;case 3:case 2:case 9:case 6:$r.current===null&&(l=!0);var se=Ct;if(Ct=0,Ur=null,Xu(o,F,Y,se),d&&Yu){L=0;break e}break;default:se=Ct,Ct=0,Ur=null,Xu(o,F,Y,se)}}X7(),L=en;break}catch(ve){tT(o,ve)}while(!0);return l&&o.shellSuspendCounter++,Ia=sl=null,St=m,j.H=x,j.A=A,st===null&&(Dt=null,ft=0,um()),L}function X7(){for(;st!==null;)aT(st)}function J7(o,l){var d=St;St|=2;var m=rT(),x=iT();Dt!==o||ft!==l?(Um=null,Bm=ae()+500,Zu(o,l)):Yu=Qs(o,l);e:do try{if(Ct!==0&&st!==null){l=st;var A=Ur;t:switch(Ct){case 1:Ct=0,Ur=null,Xu(o,l,A,1);break;case 2:case 9:if(mC(A)){Ct=0,Ur=null,oT(l);break}l=function(){Ct!==2&&Ct!==9||Dt!==o||(Ct=7),ea(o)},A.then(l,l);break e;case 3:Ct=7;break e;case 4:Ct=5;break e;case 7:mC(A)?(Ct=0,Ur=null,oT(l)):(Ct=0,Ur=null,Xu(o,l,A,7));break;case 5:var L=null;switch(st.tag){case 26:L=st.memoizedState;case 5:case 27:var F=st;if(L?qT(L):F.stateNode.complete){Ct=0,Ur=null;var Y=F.sibling;if(Y!==null)st=Y;else{var se=F.return;se!==null?(st=se,Gm(se)):st=null}break t}}Ct=0,Ur=null,Xu(o,l,A,5);break;case 6:Ct=0,Ur=null,Xu(o,l,A,6);break;case 8:O1(),en=6;break e;default:throw Error(r(462))}}eF();break}catch(ve){tT(o,ve)}while(!0);return Ia=sl=null,j.H=m,j.A=x,St=d,st!==null?0:(Dt=null,ft=0,um(),en)}function eF(){for(;st!==null&&!W();)aT(st)}function aT(o){var l=TO(o.alternate,o,qa);o.memoizedProps=o.pendingProps,l===null?Gm(o):st=l}function oT(o){var l=o,d=l.alternate;switch(l.tag){case 15:case 0:l=SO(d,l,l.pendingProps,l.type,void 0,ft);break;case 11:l=SO(d,l,l.pendingProps,l.type.render,l.ref,ft);break;case 5:Gb(l);default:PO(d,l),l=st=iC(l,qa),l=TO(d,l,qa)}o.memoizedProps=o.pendingProps,l===null?Gm(o):st=l}function Xu(o,l,d,m){Ia=sl=null,Gb(l),Uu=null,td=0;var x=l.return;try{if(F7(o,x,l,d,ft)){en=1,Pm(o,ai(d,o.current)),st=null;return}}catch(A){if(x!==null)throw st=x,A;en=1,Pm(o,ai(d,o.current)),st=null;return}l.flags&32768?(ht||m===1?o=!0:Yu||(ft&536870912)!==0?o=!1:(Jo=o=!0,(m===2||m===9||m===3||m===6)&&(m=$r.current,m!==null&&m.tag===13&&(m.flags|=16384))),sT(l,o)):Gm(l)}function Gm(o){var l=o;do{if((l.flags&32768)!==0){sT(l,Jo);return}o=l.return;var d=q7(l.alternate,l,qa);if(d!==null){st=d;return}if(l=l.sibling,l!==null){st=l;return}st=l=o}while(l!==null);en===0&&(en=5)}function sT(o,l){do{var d=V7(o.alternate,o);if(d!==null){d.flags&=32767,st=d;return}if(d=o.return,d!==null&&(d.flags|=32768,d.subtreeFlags=0,d.deletions=null),!l&&(o=o.sibling,o!==null)){st=o;return}st=o=d}while(o!==null);en=6,st=null}function lT(o,l,d,m,x,A,L,F,Y){o.cancelPendingCommit=null;do qm();while(En!==0);if((St&6)!==0)throw Error(r(327));if(l!==null){if(l===o.current)throw Error(r(177));if(A=l.lanes|l.childLanes,A|=vb,K0(o,d,A,L,F,Y),o===Dt&&(st=Dt=null,ft=0),Qu=l,ns=o,Va=d,A1=A,k1=x,ZO=m,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,iF(Re,function(){return hT(),null})):(o.callbackNode=null,o.callbackPriority=0),m=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||m){m=j.T,j.T=null,x=G.p,G.p=2,L=St,St|=4;try{K7(o,l,d)}finally{St=L,G.p=x,j.T=m}}En=1,uT(),cT(),fT()}}function uT(){if(En===1){En=0;var o=ns,l=Qu,d=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||d){d=j.T,j.T=null;var m=G.p;G.p=2;var x=St;St|=4;try{HO(l,o);var A=U1,L=Wk(o.containerInfo),F=A.focusedElem,Y=A.selectionRange;if(L!==F&&F&&F.ownerDocument&&Yk(F.ownerDocument.documentElement,F)){if(Y!==null&&db(F)){var se=Y.start,ve=Y.end;if(ve===void 0&&(ve=se),"selectionStart"in F)F.selectionStart=se,F.selectionEnd=Math.min(ve,F.value.length);else{var we=F.ownerDocument||document,fe=we&&we.defaultView||window;if(fe.getSelection){var me=fe.getSelection(),Le=F.textContent.length,We=Math.min(Y.start,Le),Pt=Y.end===void 0?We:Math.min(Y.end,Le);!me.extend&&We>Pt&&(L=Pt,Pt=We,We=L);var ne=Kk(F,We),Z=Kk(F,Pt);if(ne&&Z&&(me.rangeCount!==1||me.anchorNode!==ne.node||me.anchorOffset!==ne.offset||me.focusNode!==Z.node||me.focusOffset!==Z.offset)){var oe=we.createRange();oe.setStart(ne.node,ne.offset),me.removeAllRanges(),We>Pt?(me.addRange(oe),me.extend(Z.node,Z.offset)):(oe.setEnd(Z.node,Z.offset),me.addRange(oe))}}}}for(we=[],me=F;me=me.parentNode;)me.nodeType===1&&we.push({element:me,left:me.scrollLeft,top:me.scrollTop});for(typeof F.focus=="function"&&F.focus(),F=0;F<we.length;F++){var be=we[F];be.element.scrollLeft=be.left,be.element.scrollTop=be.top}}rg=!!B1,U1=B1=null}finally{St=x,G.p=m,j.T=d}}o.current=l,En=2}}function cT(){if(En===2){En=0;var o=ns,l=Qu,d=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||d){d=j.T,j.T=null;var m=G.p;G.p=2;var x=St;St|=4;try{jO(o,l.alternate,l)}finally{St=x,G.p=m,j.T=d}}En=3}}function fT(){if(En===4||En===3){En=0,re();var o=ns,l=Qu,d=Va,m=ZO;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?En=5:(En=0,Qu=ns=null,dT(o,o.pendingLanes));var x=o.pendingLanes;if(x===0&&(ts=null),jf(d),l=l.stateNode,Gn&&typeof Gn.onCommitFiberRoot=="function")try{Gn.onCommitFiberRoot(Xt,l,void 0,(l.current.flags&128)===128)}catch{}if(m!==null){l=j.T,x=G.p,G.p=2,j.T=null;try{for(var A=o.onRecoverableError,L=0;L<m.length;L++){var F=m[L];A(F.value,{componentStack:F.stack})}}finally{j.T=l,G.p=x}}(Va&3)!==0&&qm(),ea(o),x=o.pendingLanes,(d&261930)!==0&&(x&42)!==0?o===C1?yd++:(yd=0,C1=o):yd=0,bd(0)}}function dT(o,l){(o.pooledCacheLanes&=l)===0&&(l=o.pooledCache,l!=null&&(o.pooledCache=null,Jf(l)))}function qm(){return uT(),cT(),fT(),hT()}function hT(){if(En!==5)return!1;var o=ns,l=A1;A1=0;var d=jf(Va),m=j.T,x=G.p;try{G.p=32>d?32:d,j.T=null,d=k1,k1=null;var A=ns,L=Va;if(En=0,Qu=ns=null,Va=0,(St&6)!==0)throw Error(r(331));var F=St;if(St|=4,YO(A.current),qO(A,A.current,L,d),St=F,bd(0,!1),Gn&&typeof Gn.onPostCommitFiberRoot=="function")try{Gn.onPostCommitFiberRoot(Xt,A)}catch{}return!0}finally{G.p=x,j.T=m,dT(o,l)}}function pT(o,l,d){l=ai(d,l),l=a1(o.stateNode,l,2),o=Wo(o,l,2),o!==null&&(Zs(o,2),ea(o))}function Ot(o,l,d){if(o.tag===3)pT(o,o,d);else for(;l!==null;){if(l.tag===3){pT(l,o,d);break}else if(l.tag===1){var m=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(ts===null||!ts.has(m))){o=ai(d,o),d=mO(2),m=Wo(l,d,2),m!==null&&(gO(d,m,l,o),Zs(m,2),ea(m));break}}l=l.return}}function M1(o,l,d){var m=o.pingCache;if(m===null){m=o.pingCache=new Q7;var x=new Set;m.set(l,x)}else x=m.get(l),x===void 0&&(x=new Set,m.set(l,x));x.has(d)||(_1=!0,x.add(d),o=tF.bind(null,o,l,d),l.then(o,o))}function tF(o,l,d){var m=o.pingCache;m!==null&&m.delete(l),o.pingedLanes|=o.suspendedLanes&d,o.warmLanes&=~d,Dt===o&&(ft&d)===d&&(en===4||en===3&&(ft&62914560)===ft&&300>ae()-$m?(St&2)===0&&Zu(o,0):S1|=d,Wu===ft&&(Wu=0)),ea(o)}function mT(o,l){l===0&&(l=Up()),o=il(o,l),o!==null&&(Zs(o,l),ea(o))}function nF(o){var l=o.memoizedState,d=0;l!==null&&(d=l.retryLane),mT(o,d)}function rF(o,l){var d=0;switch(o.tag){case 31:case 13:var m=o.stateNode,x=o.memoizedState;x!==null&&(d=x.retryLane);break;case 19:m=o.stateNode;break;case 22:m=o.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(l),mT(o,d)}function iF(o,l){return nr(o,l)}var Vm=null,Ju=null,P1=!1,Km=!1,N1=!1,is=0;function ea(o){o!==Ju&&o.next===null&&(Ju===null?Vm=Ju=o:Ju=Ju.next=o),Km=!0,P1||(P1=!0,oF())}function bd(o,l){if(!N1&&Km){N1=!0;do for(var d=!1,m=Vm;m!==null;){if(o!==0){var x=m.pendingLanes;if(x===0)var A=0;else{var L=m.suspendedLanes,F=m.pingedLanes;A=(1<<31-_n(42|o)+1)-1,A&=x&~(L&~F),A=A&201326741?A&201326741|1:A?A|2:0}A!==0&&(d=!0,bT(m,A))}else A=ft,A=_u(m,m===Dt?A:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(A&3)===0||Qs(m,A)||(d=!0,bT(m,A));m=m.next}while(d);N1=!1}}function aF(){gT()}function gT(){Km=P1=!1;var o=0;is!==0&&gF()&&(o=is);for(var l=ae(),d=null,m=Vm;m!==null;){var x=m.next,A=vT(m,l);A===0?(m.next=null,d===null?Vm=x:d.next=x,x===null&&(Ju=d)):(d=m,(o!==0||(A&3)!==0)&&(Km=!0)),m=x}En!==0&&En!==5||bd(o),is!==0&&(is=0)}function vT(o,l){for(var d=o.suspendedLanes,m=o.pingedLanes,x=o.expirationTimes,A=o.pendingLanes&-62914561;0<A;){var L=31-_n(A),F=1<<L,Y=x[L];Y===-1?((F&d)===0||(F&m)!==0)&&(x[L]=V0(F,l)):Y<=l&&(o.expiredLanes|=F),A&=~F}if(l=Dt,d=ft,d=_u(o,o===l?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),m=o.callbackNode,d===0||o===l&&(Ct===2||Ct===9)||o.cancelPendingCommit!==null)return m!==null&&m!==null&&rr(m),o.callbackNode=null,o.callbackPriority=0;if((d&3)===0||Qs(o,d)){if(l=d&-d,l===o.callbackPriority)return l;switch(m!==null&&rr(m),jf(d)){case 2:case 8:d=Ee;break;case 32:d=Re;break;case 268435456:d=ct;break;default:d=Re}return m=yT.bind(null,o),d=nr(d,m),o.callbackPriority=l,o.callbackNode=d,l}return m!==null&&m!==null&&rr(m),o.callbackPriority=2,o.callbackNode=null,2}function yT(o,l){if(En!==0&&En!==5)return o.callbackNode=null,o.callbackPriority=0,null;var d=o.callbackNode;if(qm()&&o.callbackNode!==d)return null;var m=ft;return m=_u(o,o===Dt?m:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),m===0?null:(JO(o,m,l),vT(o,ae()),o.callbackNode!=null&&o.callbackNode===d?yT.bind(null,o):null)}function bT(o,l){if(qm())return null;JO(o,l,!0)}function oF(){yF(function(){(St&6)!==0?nr(_e,aF):gT()})}function R1(){if(is===0){var o=ju;o===0&&(o=ka,ka<<=1,(ka&261888)===0&&(ka=256)),is=o}return is}function wT(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:tm(""+o)}function xT(o,l){var d=l.ownerDocument.createElement("input");return d.name=l.name,d.value=l.value,o.id&&d.setAttribute("form",o.id),l.parentNode.insertBefore(d,l),o=new FormData(o),d.parentNode.removeChild(d),o}function sF(o,l,d,m,x){if(l==="submit"&&d&&d.stateNode===x){var A=wT((x[ir]||null).action),L=m.submitter;L&&(l=(l=L[ir]||null)?wT(l.formAction):L.getAttribute("formAction"),l!==null&&(A=l,L=null));var F=new am("action","action",null,m,x);o.push({event:F,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(is!==0){var Y=L?xT(x,L):new FormData(x);Jb(d,{pending:!0,data:Y,method:x.method,action:A},null,Y)}}else typeof A=="function"&&(F.preventDefault(),Y=L?xT(x,L):new FormData(x),Jb(d,{pending:!0,data:Y,method:x.method,action:A},A,Y))},currentTarget:x}]})}}for(var D1=0;D1<gb.length;D1++){var I1=gb[D1],lF=I1.toLowerCase(),uF=I1[0].toUpperCase()+I1.slice(1);Oi(lF,"on"+uF)}Oi(Xk,"onAnimationEnd"),Oi(Jk,"onAnimationIteration"),Oi(eC,"onAnimationStart"),Oi("dblclick","onDoubleClick"),Oi("focusin","onFocus"),Oi("focusout","onBlur"),Oi(A7,"onTransitionRun"),Oi(k7,"onTransitionStart"),Oi(C7,"onTransitionCancel"),Oi(tC,"onTransitionEnd"),Bo("onMouseEnter",["mouseout","mouseover"]),Bo("onMouseLeave",["mouseout","mouseover"]),Bo("onPointerEnter",["pointerout","pointerover"]),Bo("onPointerLeave",["pointerout","pointerover"]),Ta("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ta("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ta("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ta("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ta("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ta("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wd="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),cF=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wd));function _T(o,l){l=(l&4)!==0;for(var d=0;d<o.length;d++){var m=o[d],x=m.event;m=m.listeners;e:{var A=void 0;if(l)for(var L=m.length-1;0<=L;L--){var F=m[L],Y=F.instance,se=F.currentTarget;if(F=F.listener,Y!==A&&x.isPropagationStopped())break e;A=F,x.currentTarget=se;try{A(x)}catch(ve){lm(ve)}x.currentTarget=null,A=Y}else for(L=0;L<m.length;L++){if(F=m[L],Y=F.instance,se=F.currentTarget,F=F.listener,Y!==A&&x.isPropagationStopped())break e;A=F,x.currentTarget=se;try{A(x)}catch(ve){lm(ve)}x.currentTarget=null,A=Y}}}}function lt(o,l){var d=l[Su];d===void 0&&(d=l[Su]=new Set);var m=o+"__bubble";d.has(m)||(ST(l,o,2,!1),d.add(m))}function L1(o,l,d){var m=0;l&&(m|=4),ST(d,o,m,l)}var Ym="_reactListening"+Math.random().toString(36).slice(2);function z1(o){if(!o[Ym]){o[Ym]=!0,Wp.forEach(function(d){d!=="selectionchange"&&(cF.has(d)||L1(d,!1,o),L1(d,!0,o))});var l=o.nodeType===9?o:o.ownerDocument;l===null||l[Ym]||(l[Ym]=!0,L1("selectionchange",!1,l))}}function ST(o,l,d,m){switch(XT(l)){case 2:var x=jF;break;case 8:x=$F;break;default:x=X1}d=x.bind(null,l,d,o),x=void 0,!rb||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(x=!0),m?x!==void 0?o.addEventListener(l,d,{capture:!0,passive:x}):o.addEventListener(l,d,!0):x!==void 0?o.addEventListener(l,d,{passive:x}):o.addEventListener(l,d,!1)}function j1(o,l,d,m,x){var A=m;if((l&1)===0&&(l&2)===0&&m!==null)e:for(;;){if(m===null)return;var L=m.tag;if(L===3||L===4){var F=m.stateNode.containerInfo;if(F===x)break;if(L===4)for(L=m.return;L!==null;){var Y=L.tag;if((Y===3||Y===4)&&L.stateNode.containerInfo===x)return;L=L.return}for(;F!==null;){if(L=Lo(F),L===null)return;if(Y=L.tag,Y===5||Y===6||Y===26||Y===27){m=A=L;continue e}F=F.parentNode}}m=m.return}Ok(function(){var se=A,ve=tb(d),we=[];e:{var fe=nC.get(o);if(fe!==void 0){var me=am,Le=o;switch(o){case"keypress":if(rm(d)===0)break e;case"keydown":case"keyup":me=r7;break;case"focusin":Le="focus",me=sb;break;case"focusout":Le="blur",me=sb;break;case"beforeblur":case"afterblur":me=sb;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":me=Pk;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":me=qU;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":me=o7;break;case Xk:case Jk:case eC:me=YU;break;case tC:me=l7;break;case"scroll":case"scrollend":me=HU;break;case"wheel":me=c7;break;case"copy":case"cut":case"paste":me=QU;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":me=Rk;break;case"toggle":case"beforetoggle":me=d7}var We=(l&4)!==0,Pt=!We&&(o==="scroll"||o==="scrollend"),ne=We?fe!==null?fe+"Capture":null:fe;We=[];for(var Z=se,oe;Z!==null;){var be=Z;if(oe=be.stateNode,be=be.tag,be!==5&&be!==26&&be!==27||oe===null||ne===null||(be=Ff(Z,ne),be!=null&&We.push(xd(Z,be,oe))),Pt)break;Z=Z.return}0<We.length&&(fe=new me(fe,Le,null,d,ve),we.push({event:fe,listeners:We}))}}if((l&7)===0){e:{if(fe=o==="mouseover"||o==="pointerover",me=o==="mouseout"||o==="pointerout",fe&&d!==eb&&(Le=d.relatedTarget||d.fromElement)&&(Lo(Le)||Le[Oa]))break e;if((me||fe)&&(fe=ve.window===ve?ve:(fe=ve.ownerDocument)?fe.defaultView||fe.parentWindow:window,me?(Le=d.relatedTarget||d.toElement,me=se,Le=Le?Lo(Le):null,Le!==null&&(Pt=a(Le),We=Le.tag,Le!==Pt||We!==5&&We!==27&&We!==6)&&(Le=null)):(me=null,Le=se),me!==Le)){if(We=Pk,be="onMouseLeave",ne="onMouseEnter",Z="mouse",(o==="pointerout"||o==="pointerover")&&(We=Rk,be="onPointerLeave",ne="onPointerEnter",Z="pointer"),Pt=me==null?fe:jo(me),oe=Le==null?fe:jo(Le),fe=new We(be,Z+"leave",me,d,ve),fe.target=Pt,fe.relatedTarget=oe,be=null,Lo(ve)===se&&(We=new We(ne,Z+"enter",Le,d,ve),We.target=oe,We.relatedTarget=Pt,be=We),Pt=be,me&&Le)t:{for(We=fF,ne=me,Z=Le,oe=0,be=ne;be;be=We(be))oe++;be=0;for(var Ve=Z;Ve;Ve=We(Ve))be++;for(;0<oe-be;)ne=We(ne),oe--;for(;0<be-oe;)Z=We(Z),be--;for(;oe--;){if(ne===Z||Z!==null&&ne===Z.alternate){We=ne;break t}ne=We(ne),Z=We(Z)}We=null}else We=null;me!==null&&ET(we,fe,me,We,!1),Le!==null&&Pt!==null&&ET(we,Pt,Le,We,!0)}}e:{if(fe=se?jo(se):window,me=fe.nodeName&&fe.nodeName.toLowerCase(),me==="select"||me==="input"&&fe.type==="file")var yt=Uk;else if($k(fe))if(Fk)yt=_7;else{yt=w7;var Ue=b7}else me=fe.nodeName,!me||me.toLowerCase()!=="input"||fe.type!=="checkbox"&&fe.type!=="radio"?se&&J0(se.elementType)&&(yt=Uk):yt=x7;if(yt&&(yt=yt(o,se))){Bk(we,yt,d,ve);break e}Ue&&Ue(o,fe,se),o==="focusout"&&se&&fe.type==="number"&&se.memoizedProps.value!=null&&Uf(fe,"number",fe.value)}switch(Ue=se?jo(se):window,o){case"focusin":($k(Ue)||Ue.contentEditable==="true")&&(Mu=Ue,hb=se,Qf=null);break;case"focusout":Qf=hb=Mu=null;break;case"mousedown":pb=!0;break;case"contextmenu":case"mouseup":case"dragend":pb=!1,Qk(we,d,ve);break;case"selectionchange":if(E7)break;case"keydown":case"keyup":Qk(we,d,ve)}var nt;if(ub)e:{switch(o){case"compositionstart":var dt="onCompositionStart";break e;case"compositionend":dt="onCompositionEnd";break e;case"compositionupdate":dt="onCompositionUpdate";break e}dt=void 0}else Tu?zk(o,d)&&(dt="onCompositionEnd"):o==="keydown"&&d.keyCode===229&&(dt="onCompositionStart");dt&&(Dk&&d.locale!=="ko"&&(Tu||dt!=="onCompositionStart"?dt==="onCompositionEnd"&&Tu&&(nt=Tk()):(Fo=ve,ib="value"in Fo?Fo.value:Fo.textContent,Tu=!0)),Ue=Wm(se,dt),0<Ue.length&&(dt=new Nk(dt,o,null,d,ve),we.push({event:dt,listeners:Ue}),nt?dt.data=nt:(nt=jk(d),nt!==null&&(dt.data=nt)))),(nt=p7?m7(o,d):g7(o,d))&&(dt=Wm(se,"onBeforeInput"),0<dt.length&&(Ue=new Nk("onBeforeInput","beforeinput",null,d,ve),we.push({event:Ue,listeners:dt}),Ue.data=nt)),sF(we,o,se,d,ve)}_T(we,l)})}function xd(o,l,d){return{instance:o,listener:l,currentTarget:d}}function Wm(o,l){for(var d=l+"Capture",m=[];o!==null;){var x=o,A=x.stateNode;if(x=x.tag,x!==5&&x!==26&&x!==27||A===null||(x=Ff(o,d),x!=null&&m.unshift(xd(o,x,A)),x=Ff(o,l),x!=null&&m.push(xd(o,x,A))),o.tag===3)return m;o=o.return}return[]}function fF(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function ET(o,l,d,m,x){for(var A=l._reactName,L=[];d!==null&&d!==m;){var F=d,Y=F.alternate,se=F.stateNode;if(F=F.tag,Y!==null&&Y===m)break;F!==5&&F!==26&&F!==27||se===null||(Y=se,x?(se=Ff(d,A),se!=null&&L.unshift(xd(d,se,Y))):x||(se=Ff(d,A),se!=null&&L.push(xd(d,se,Y)))),d=d.return}L.length!==0&&o.push({event:l,listeners:L})}var dF=/\r\n?/g,hF=/\u0000|\uFFFD/g;function AT(o){return(typeof o=="string"?o:""+o).replace(dF,`
49
+ `).replace(hF,"")}function kT(o,l){return l=AT(l),AT(o)===l}function Mt(o,l,d,m,x,A){switch(d){case"children":typeof m=="string"?l==="body"||l==="textarea"&&m===""||ku(o,m):(typeof m=="number"||typeof m=="bigint")&&l!=="body"&&ku(o,""+m);break;case"className":Au(o,"class",m);break;case"tabIndex":Au(o,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":Au(o,d,m);break;case"style":kk(o,m,A);break;case"data":if(l!=="object"){Au(o,"data",m);break}case"src":case"href":if(m===""&&(l!=="a"||d!=="href")){o.removeAttribute(d);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){o.removeAttribute(d);break}m=tm(""+m),o.setAttribute(d,m);break;case"action":case"formAction":if(typeof m=="function"){o.setAttribute(d,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof A=="function"&&(d==="formAction"?(l!=="input"&&Mt(o,l,"name",x.name,x,null),Mt(o,l,"formEncType",x.formEncType,x,null),Mt(o,l,"formMethod",x.formMethod,x,null),Mt(o,l,"formTarget",x.formTarget,x,null)):(Mt(o,l,"encType",x.encType,x,null),Mt(o,l,"method",x.method,x,null),Mt(o,l,"target",x.target,x,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){o.removeAttribute(d);break}m=tm(""+m),o.setAttribute(d,m);break;case"onClick":m!=null&&(o.onclick=Pa);break;case"onScroll":m!=null&&lt("scroll",o);break;case"onScrollEnd":m!=null&&lt("scrollend",o);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(d=m.__html,d!=null){if(x.children!=null)throw Error(r(60));o.innerHTML=d}}break;case"multiple":o.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":o.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){o.removeAttribute("xlink:href");break}d=tm(""+m),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",d);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?o.setAttribute(d,""+m):o.removeAttribute(d);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":m&&typeof m!="function"&&typeof m!="symbol"?o.setAttribute(d,""):o.removeAttribute(d);break;case"capture":case"download":m===!0?o.setAttribute(d,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?o.setAttribute(d,m):o.removeAttribute(d);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?o.setAttribute(d,m):o.removeAttribute(d);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?o.removeAttribute(d):o.setAttribute(d,m);break;case"popover":lt("beforetoggle",o),lt("toggle",o),Eu(o,"popover",m);break;case"xlinkActuate":Ci(o,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":Ci(o,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":Ci(o,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":Ci(o,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":Ci(o,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":Ci(o,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":Ci(o,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":Ci(o,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":Ci(o,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":Eu(o,"is",m);break;case"innerText":case"textContent":break;default:(!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(d=UU.get(d)||d,Eu(o,d,m))}}function $1(o,l,d,m,x,A){switch(d){case"style":kk(o,m,A);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(d=m.__html,d!=null){if(x.children!=null)throw Error(r(60));o.innerHTML=d}}break;case"children":typeof m=="string"?ku(o,m):(typeof m=="number"||typeof m=="bigint")&&ku(o,""+m);break;case"onScroll":m!=null&&lt("scroll",o);break;case"onScrollEnd":m!=null&&lt("scrollend",o);break;case"onClick":m!=null&&(o.onclick=Pa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Qp.hasOwnProperty(d))e:{if(d[0]==="o"&&d[1]==="n"&&(x=d.endsWith("Capture"),l=d.slice(2,x?d.length-7:void 0),A=o[ir]||null,A=A!=null?A[d]:null,typeof A=="function"&&o.removeEventListener(l,A,x),typeof m=="function")){typeof A!="function"&&A!==null&&(d in o?o[d]=null:o.hasAttribute(d)&&o.removeAttribute(d)),o.addEventListener(l,m,x);break e}d in o?o[d]=m:m===!0?o.setAttribute(d,""):Eu(o,d,m)}}}function Yn(o,l,d){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":lt("error",o),lt("load",o);var m=!1,x=!1,A;for(A in d)if(d.hasOwnProperty(A)){var L=d[A];if(L!=null)switch(A){case"src":m=!0;break;case"srcSet":x=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Mt(o,l,A,L,d,null)}}x&&Mt(o,l,"srcSet",d.srcSet,d,null),m&&Mt(o,l,"src",d.src,d,null);return;case"input":lt("invalid",o);var F=A=L=x=null,Y=null,se=null;for(m in d)if(d.hasOwnProperty(m)){var ve=d[m];if(ve!=null)switch(m){case"name":x=ve;break;case"type":L=ve;break;case"checked":Y=ve;break;case"defaultChecked":se=ve;break;case"value":A=ve;break;case"defaultValue":F=ve;break;case"children":case"dangerouslySetInnerHTML":if(ve!=null)throw Error(r(137,l));break;default:Mt(o,l,m,ve,d,null)}}em(o,A,F,Y,se,L,x,!1);return;case"select":lt("invalid",o),m=L=A=null;for(x in d)if(d.hasOwnProperty(x)&&(F=d[x],F!=null))switch(x){case"value":A=F;break;case"defaultValue":L=F;break;case"multiple":m=F;default:Mt(o,l,x,F,d,null)}l=A,d=L,o.multiple=!!m,l!=null?Ma(o,!!m,l,!1):d!=null&&Ma(o,!!m,d,!0);return;case"textarea":lt("invalid",o),A=x=m=null;for(L in d)if(d.hasOwnProperty(L)&&(F=d[L],F!=null))switch(L){case"value":m=F;break;case"defaultValue":x=F;break;case"children":A=F;break;case"dangerouslySetInnerHTML":if(F!=null)throw Error(r(91));break;default:Mt(o,l,L,F,d,null)}Ek(o,m,x,A);return;case"option":for(Y in d)if(d.hasOwnProperty(Y)&&(m=d[Y],m!=null))switch(Y){case"selected":o.selected=m&&typeof m!="function"&&typeof m!="symbol";break;default:Mt(o,l,Y,m,d,null)}return;case"dialog":lt("beforetoggle",o),lt("toggle",o),lt("cancel",o),lt("close",o);break;case"iframe":case"object":lt("load",o);break;case"video":case"audio":for(m=0;m<wd.length;m++)lt(wd[m],o);break;case"image":lt("error",o),lt("load",o);break;case"details":lt("toggle",o);break;case"embed":case"source":case"link":lt("error",o),lt("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(se in d)if(d.hasOwnProperty(se)&&(m=d[se],m!=null))switch(se){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Mt(o,l,se,m,d,null)}return;default:if(J0(l)){for(ve in d)d.hasOwnProperty(ve)&&(m=d[ve],m!==void 0&&$1(o,l,ve,m,d,void 0));return}}for(F in d)d.hasOwnProperty(F)&&(m=d[F],m!=null&&Mt(o,l,F,m,d,null))}function pF(o,l,d,m){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var x=null,A=null,L=null,F=null,Y=null,se=null,ve=null;for(me in d){var we=d[me];if(d.hasOwnProperty(me)&&we!=null)switch(me){case"checked":break;case"value":break;case"defaultValue":Y=we;default:m.hasOwnProperty(me)||Mt(o,l,me,null,m,we)}}for(var fe in m){var me=m[fe];if(we=d[fe],m.hasOwnProperty(fe)&&(me!=null||we!=null))switch(fe){case"type":A=me;break;case"name":x=me;break;case"checked":se=me;break;case"defaultChecked":ve=me;break;case"value":L=me;break;case"defaultValue":F=me;break;case"children":case"dangerouslySetInnerHTML":if(me!=null)throw Error(r(137,l));break;default:me!==we&&Mt(o,l,fe,me,m,we)}}el(o,L,F,Y,se,ve,A,x);return;case"select":me=L=F=fe=null;for(A in d)if(Y=d[A],d.hasOwnProperty(A)&&Y!=null)switch(A){case"value":break;case"multiple":me=Y;default:m.hasOwnProperty(A)||Mt(o,l,A,null,m,Y)}for(x in m)if(A=m[x],Y=d[x],m.hasOwnProperty(x)&&(A!=null||Y!=null))switch(x){case"value":fe=A;break;case"defaultValue":F=A;break;case"multiple":L=A;default:A!==Y&&Mt(o,l,x,A,m,Y)}l=F,d=L,m=me,fe!=null?Ma(o,!!d,fe,!1):!!m!=!!d&&(l!=null?Ma(o,!!d,l,!0):Ma(o,!!d,d?[]:"",!1));return;case"textarea":me=fe=null;for(F in d)if(x=d[F],d.hasOwnProperty(F)&&x!=null&&!m.hasOwnProperty(F))switch(F){case"value":break;case"children":break;default:Mt(o,l,F,null,m,x)}for(L in m)if(x=m[L],A=d[L],m.hasOwnProperty(L)&&(x!=null||A!=null))switch(L){case"value":fe=x;break;case"defaultValue":me=x;break;case"children":break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:x!==A&&Mt(o,l,L,x,m,A)}Sk(o,fe,me);return;case"option":for(var Le in d)if(fe=d[Le],d.hasOwnProperty(Le)&&fe!=null&&!m.hasOwnProperty(Le))switch(Le){case"selected":o.selected=!1;break;default:Mt(o,l,Le,null,m,fe)}for(Y in m)if(fe=m[Y],me=d[Y],m.hasOwnProperty(Y)&&fe!==me&&(fe!=null||me!=null))switch(Y){case"selected":o.selected=fe&&typeof fe!="function"&&typeof fe!="symbol";break;default:Mt(o,l,Y,fe,m,me)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var We in d)fe=d[We],d.hasOwnProperty(We)&&fe!=null&&!m.hasOwnProperty(We)&&Mt(o,l,We,null,m,fe);for(se in m)if(fe=m[se],me=d[se],m.hasOwnProperty(se)&&fe!==me&&(fe!=null||me!=null))switch(se){case"children":case"dangerouslySetInnerHTML":if(fe!=null)throw Error(r(137,l));break;default:Mt(o,l,se,fe,m,me)}return;default:if(J0(l)){for(var Pt in d)fe=d[Pt],d.hasOwnProperty(Pt)&&fe!==void 0&&!m.hasOwnProperty(Pt)&&$1(o,l,Pt,void 0,m,fe);for(ve in m)fe=m[ve],me=d[ve],!m.hasOwnProperty(ve)||fe===me||fe===void 0&&me===void 0||$1(o,l,ve,fe,m,me);return}}for(var ne in d)fe=d[ne],d.hasOwnProperty(ne)&&fe!=null&&!m.hasOwnProperty(ne)&&Mt(o,l,ne,null,m,fe);for(we in m)fe=m[we],me=d[we],!m.hasOwnProperty(we)||fe===me||fe==null&&me==null||Mt(o,l,we,fe,m,me)}function CT(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function mF(){if(typeof performance.getEntriesByType=="function"){for(var o=0,l=0,d=performance.getEntriesByType("resource"),m=0;m<d.length;m++){var x=d[m],A=x.transferSize,L=x.initiatorType,F=x.duration;if(A&&F&&CT(L)){for(L=0,F=x.responseEnd,m+=1;m<d.length;m++){var Y=d[m],se=Y.startTime;if(se>F)break;var ve=Y.transferSize,we=Y.initiatorType;ve&&CT(we)&&(Y=Y.responseEnd,L+=ve*(Y<F?1:(F-se)/(Y-se)))}if(--m,l+=8*(A+L)/(x.duration/1e3),o++,10<o)break}}if(0<o)return l/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var B1=null,U1=null;function Qm(o){return o.nodeType===9?o:o.ownerDocument}function OT(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function TT(o,l){if(o===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&l==="foreignObject"?0:o}function F1(o,l){return o==="textarea"||o==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var H1=null;function gF(){var o=window.event;return o&&o.type==="popstate"?o===H1?!1:(H1=o,!0):(H1=null,!1)}var MT=typeof setTimeout=="function"?setTimeout:void 0,vF=typeof clearTimeout=="function"?clearTimeout:void 0,PT=typeof Promise=="function"?Promise:void 0,yF=typeof queueMicrotask=="function"?queueMicrotask:typeof PT<"u"?function(o){return PT.resolve(null).then(o).catch(bF)}:MT;function bF(o){setTimeout(function(){throw o})}function as(o){return o==="head"}function NT(o,l){var d=l,m=0;do{var x=d.nextSibling;if(o.removeChild(d),x&&x.nodeType===8)if(d=x.data,d==="/$"||d==="/&"){if(m===0){o.removeChild(x),rc(l);return}m--}else if(d==="$"||d==="$?"||d==="$~"||d==="$!"||d==="&")m++;else if(d==="html")_d(o.ownerDocument.documentElement);else if(d==="head"){d=o.ownerDocument.head,_d(d);for(var A=d.firstChild;A;){var L=A.nextSibling,F=A.nodeName;A[Xs]||F==="SCRIPT"||F==="STYLE"||F==="LINK"&&A.rel.toLowerCase()==="stylesheet"||d.removeChild(A),A=L}}else d==="body"&&_d(o.ownerDocument.body);d=x}while(d);rc(l)}function RT(o,l){var d=o;o=0;do{var m=d.nextSibling;if(d.nodeType===1?l?(d._stashedDisplay=d.style.display,d.style.display="none"):(d.style.display=d._stashedDisplay||"",d.getAttribute("style")===""&&d.removeAttribute("style")):d.nodeType===3&&(l?(d._stashedText=d.nodeValue,d.nodeValue=""):d.nodeValue=d._stashedText||""),m&&m.nodeType===8)if(d=m.data,d==="/$"){if(o===0)break;o--}else d!=="$"&&d!=="$?"&&d!=="$~"&&d!=="$!"||o++;d=m}while(d)}function G1(o){var l=o.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var d=l;switch(l=l.nextSibling,d.nodeName){case"HTML":case"HEAD":case"BODY":G1(d),$f(d);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(d.rel.toLowerCase()==="stylesheet")continue}o.removeChild(d)}}function wF(o,l,d,m){for(;o.nodeType===1;){var x=d;if(o.nodeName.toLowerCase()!==l.toLowerCase()){if(!m&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(m){if(!o[Xs])switch(l){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(A=o.getAttribute("rel"),A==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(A!==x.rel||o.getAttribute("href")!==(x.href==null||x.href===""?null:x.href)||o.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin)||o.getAttribute("title")!==(x.title==null?null:x.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(A=o.getAttribute("src"),(A!==(x.src==null?null:x.src)||o.getAttribute("type")!==(x.type==null?null:x.type)||o.getAttribute("crossorigin")!==(x.crossOrigin==null?null:x.crossOrigin))&&A&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(l==="input"&&o.type==="hidden"){var A=x.name==null?null:""+x.name;if(x.type==="hidden"&&o.getAttribute("name")===A)return o}else return o;if(o=ci(o.nextSibling),o===null)break}return null}function xF(o,l,d){if(l==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!d||(o=ci(o.nextSibling),o===null))return null;return o}function DT(o,l){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!l||(o=ci(o.nextSibling),o===null))return null;return o}function q1(o){return o.data==="$?"||o.data==="$~"}function V1(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function _F(o,l){var d=o.ownerDocument;if(o.data==="$~")o._reactRetry=l;else if(o.data!=="$?"||d.readyState!=="loading")l();else{var m=function(){l(),d.removeEventListener("DOMContentLoaded",m)};d.addEventListener("DOMContentLoaded",m),o._reactRetry=m}}function ci(o){for(;o!=null;o=o.nextSibling){var l=o.nodeType;if(l===1||l===3)break;if(l===8){if(l=o.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return o}var K1=null;function IT(o){o=o.nextSibling;for(var l=0;o;){if(o.nodeType===8){var d=o.data;if(d==="/$"||d==="/&"){if(l===0)return ci(o.nextSibling);l--}else d!=="$"&&d!=="$!"&&d!=="$?"&&d!=="$~"&&d!=="&"||l++}o=o.nextSibling}return null}function LT(o){o=o.previousSibling;for(var l=0;o;){if(o.nodeType===8){var d=o.data;if(d==="$"||d==="$!"||d==="$?"||d==="$~"||d==="&"){if(l===0)return o;l--}else d!=="/$"&&d!=="/&"||l++}o=o.previousSibling}return null}function zT(o,l,d){switch(l=Qm(d),o){case"html":if(o=l.documentElement,!o)throw Error(r(452));return o;case"head":if(o=l.head,!o)throw Error(r(453));return o;case"body":if(o=l.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function _d(o){for(var l=o.attributes;l.length;)o.removeAttributeNode(l[0]);$f(o)}var fi=new Map,jT=new Set;function Zm(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var Ka=G.d;G.d={f:SF,r:EF,D:AF,C:kF,L:CF,m:OF,X:MF,S:TF,M:PF};function SF(){var o=Ka.f(),l=Fm();return o||l}function EF(o){var l=zo(o);l!==null&&l.tag===5&&l.type==="form"?tO(l):Ka.r(o)}var ec=typeof document>"u"?null:document;function $T(o,l,d){var m=ec;if(m&&typeof l=="string"&&l){var x=Er(l);x='link[rel="'+o+'"][href="'+x+'"]',typeof d=="string"&&(x+='[crossorigin="'+d+'"]'),jT.has(x)||(jT.add(x),o={rel:o,crossOrigin:d,href:l},m.querySelector(x)===null&&(l=m.createElement("link"),Yn(l,"link",o),hn(l),m.head.appendChild(l)))}}function AF(o){Ka.D(o),$T("dns-prefetch",o,null)}function kF(o,l){Ka.C(o,l),$T("preconnect",o,l)}function CF(o,l,d){Ka.L(o,l,d);var m=ec;if(m&&o&&l){var x='link[rel="preload"][as="'+Er(l)+'"]';l==="image"&&d&&d.imageSrcSet?(x+='[imagesrcset="'+Er(d.imageSrcSet)+'"]',typeof d.imageSizes=="string"&&(x+='[imagesizes="'+Er(d.imageSizes)+'"]')):x+='[href="'+Er(o)+'"]';var A=x;switch(l){case"style":A=tc(o);break;case"script":A=nc(o)}fi.has(A)||(o=p({rel:"preload",href:l==="image"&&d&&d.imageSrcSet?void 0:o,as:l},d),fi.set(A,o),m.querySelector(x)!==null||l==="style"&&m.querySelector(Sd(A))||l==="script"&&m.querySelector(Ed(A))||(l=m.createElement("link"),Yn(l,"link",o),hn(l),m.head.appendChild(l)))}}function OF(o,l){Ka.m(o,l);var d=ec;if(d&&o){var m=l&&typeof l.as=="string"?l.as:"script",x='link[rel="modulepreload"][as="'+Er(m)+'"][href="'+Er(o)+'"]',A=x;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":A=nc(o)}if(!fi.has(A)&&(o=p({rel:"modulepreload",href:o},l),fi.set(A,o),d.querySelector(x)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(d.querySelector(Ed(A)))return}m=d.createElement("link"),Yn(m,"link",o),hn(m),d.head.appendChild(m)}}}function TF(o,l,d){Ka.S(o,l,d);var m=ec;if(m&&o){var x=$o(m).hoistableStyles,A=tc(o);l=l||"default";var L=x.get(A);if(!L){var F={loading:0,preload:null};if(L=m.querySelector(Sd(A)))F.loading=5;else{o=p({rel:"stylesheet",href:o,"data-precedence":l},d),(d=fi.get(A))&&Y1(o,d);var Y=L=m.createElement("link");hn(Y),Yn(Y,"link",o),Y._p=new Promise(function(se,ve){Y.onload=se,Y.onerror=ve}),Y.addEventListener("load",function(){F.loading|=1}),Y.addEventListener("error",function(){F.loading|=2}),F.loading|=4,Xm(L,l,m)}L={type:"stylesheet",instance:L,count:1,state:F},x.set(A,L)}}}function MF(o,l){Ka.X(o,l);var d=ec;if(d&&o){var m=$o(d).hoistableScripts,x=nc(o),A=m.get(x);A||(A=d.querySelector(Ed(x)),A||(o=p({src:o,async:!0},l),(l=fi.get(x))&&W1(o,l),A=d.createElement("script"),hn(A),Yn(A,"link",o),d.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},m.set(x,A))}}function PF(o,l){Ka.M(o,l);var d=ec;if(d&&o){var m=$o(d).hoistableScripts,x=nc(o),A=m.get(x);A||(A=d.querySelector(Ed(x)),A||(o=p({src:o,async:!0,type:"module"},l),(l=fi.get(x))&&W1(o,l),A=d.createElement("script"),hn(A),Yn(A,"link",o),d.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},m.set(x,A))}}function BT(o,l,d,m){var x=(x=he.current)?Zm(x):null;if(!x)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof d.precedence=="string"&&typeof d.href=="string"?(l=tc(d.href),d=$o(x).hoistableStyles,m=d.get(l),m||(m={type:"style",instance:null,count:0,state:null},d.set(l,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(d.rel==="stylesheet"&&typeof d.href=="string"&&typeof d.precedence=="string"){o=tc(d.href);var A=$o(x).hoistableStyles,L=A.get(o);if(L||(x=x.ownerDocument||x,L={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},A.set(o,L),(A=x.querySelector(Sd(o)))&&!A._p&&(L.instance=A,L.state.loading=5),fi.has(o)||(d={rel:"preload",as:"style",href:d.href,crossOrigin:d.crossOrigin,integrity:d.integrity,media:d.media,hrefLang:d.hrefLang,referrerPolicy:d.referrerPolicy},fi.set(o,d),A||NF(x,o,d,L.state))),l&&m===null)throw Error(r(528,""));return L}if(l&&m!==null)throw Error(r(529,""));return null;case"script":return l=d.async,d=d.src,typeof d=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=nc(d),d=$o(x).hoistableScripts,m=d.get(l),m||(m={type:"script",instance:null,count:0,state:null},d.set(l,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function tc(o){return'href="'+Er(o)+'"'}function Sd(o){return'link[rel="stylesheet"]['+o+"]"}function UT(o){return p({},o,{"data-precedence":o.precedence,precedence:null})}function NF(o,l,d,m){o.querySelector('link[rel="preload"][as="style"]['+l+"]")?m.loading=1:(l=o.createElement("link"),m.preload=l,l.addEventListener("load",function(){return m.loading|=1}),l.addEventListener("error",function(){return m.loading|=2}),Yn(l,"link",d),hn(l),o.head.appendChild(l))}function nc(o){return'[src="'+Er(o)+'"]'}function Ed(o){return"script[async]"+o}function FT(o,l,d){if(l.count++,l.instance===null)switch(l.type){case"style":var m=o.querySelector('style[data-href~="'+Er(d.href)+'"]');if(m)return l.instance=m,hn(m),m;var x=p({},d,{"data-href":d.href,"data-precedence":d.precedence,href:null,precedence:null});return m=(o.ownerDocument||o).createElement("style"),hn(m),Yn(m,"style",x),Xm(m,d.precedence,o),l.instance=m;case"stylesheet":x=tc(d.href);var A=o.querySelector(Sd(x));if(A)return l.state.loading|=4,l.instance=A,hn(A),A;m=UT(d),(x=fi.get(x))&&Y1(m,x),A=(o.ownerDocument||o).createElement("link"),hn(A);var L=A;return L._p=new Promise(function(F,Y){L.onload=F,L.onerror=Y}),Yn(A,"link",m),l.state.loading|=4,Xm(A,d.precedence,o),l.instance=A;case"script":return A=nc(d.src),(x=o.querySelector(Ed(A)))?(l.instance=x,hn(x),x):(m=d,(x=fi.get(A))&&(m=p({},d),W1(m,x)),o=o.ownerDocument||o,x=o.createElement("script"),hn(x),Yn(x,"link",m),o.head.appendChild(x),l.instance=x);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(m=l.instance,l.state.loading|=4,Xm(m,d.precedence,o));return l.instance}function Xm(o,l,d){for(var m=d.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),x=m.length?m[m.length-1]:null,A=x,L=0;L<m.length;L++){var F=m[L];if(F.dataset.precedence===l)A=F;else if(A!==x)break}A?A.parentNode.insertBefore(o,A.nextSibling):(l=d.nodeType===9?d.head:d,l.insertBefore(o,l.firstChild))}function Y1(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.title==null&&(o.title=l.title)}function W1(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.integrity==null&&(o.integrity=l.integrity)}var Jm=null;function HT(o,l,d){if(Jm===null){var m=new Map,x=Jm=new Map;x.set(d,m)}else x=Jm,m=x.get(d),m||(m=new Map,x.set(d,m));if(m.has(o))return m;for(m.set(o,null),d=d.getElementsByTagName(o),x=0;x<d.length;x++){var A=d[x];if(!(A[Xs]||A[Sn]||o==="link"&&A.getAttribute("rel")==="stylesheet")&&A.namespaceURI!=="http://www.w3.org/2000/svg"){var L=A.getAttribute(l)||"";L=o+L;var F=m.get(L);F?F.push(A):m.set(L,[A])}}return m}function GT(o,l,d){o=o.ownerDocument||o,o.head.insertBefore(d,l==="title"?o.querySelector("head > title"):null)}function RF(o,l,d){if(d===1||l.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return o=l.disabled,typeof l.precedence=="string"&&o==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function qT(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function DF(o,l,d,m){if(d.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(d.state.loading&4)===0){if(d.instance===null){var x=tc(m.href),A=l.querySelector(Sd(x));if(A){l=A._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(o.count++,o=eg.bind(o),l.then(o,o)),d.state.loading|=4,d.instance=A,hn(A);return}A=l.ownerDocument||l,m=UT(m),(x=fi.get(x))&&Y1(m,x),A=A.createElement("link"),hn(A);var L=A;L._p=new Promise(function(F,Y){L.onload=F,L.onerror=Y}),Yn(A,"link",m),d.instance=A}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(d,l),(l=d.state.preload)&&(d.state.loading&3)===0&&(o.count++,d=eg.bind(o),l.addEventListener("load",d),l.addEventListener("error",d))}}var Q1=0;function IF(o,l){return o.stylesheets&&o.count===0&&ng(o,o.stylesheets),0<o.count||0<o.imgCount?function(d){var m=setTimeout(function(){if(o.stylesheets&&ng(o,o.stylesheets),o.unsuspend){var A=o.unsuspend;o.unsuspend=null,A()}},6e4+l);0<o.imgBytes&&Q1===0&&(Q1=62500*mF());var x=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&ng(o,o.stylesheets),o.unsuspend)){var A=o.unsuspend;o.unsuspend=null,A()}},(o.imgBytes>Q1?50:800)+l);return o.unsuspend=d,function(){o.unsuspend=null,clearTimeout(m),clearTimeout(x)}}:null}function eg(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ng(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var tg=null;function ng(o,l){o.stylesheets=null,o.unsuspend!==null&&(o.count++,tg=new Map,l.forEach(LF,o),tg=null,eg.call(o))}function LF(o,l){if(!(l.state.loading&4)){var d=tg.get(o);if(d)var m=d.get(null);else{d=new Map,tg.set(o,d);for(var x=o.querySelectorAll("link[data-precedence],style[data-precedence]"),A=0;A<x.length;A++){var L=x[A];(L.nodeName==="LINK"||L.getAttribute("media")!=="not all")&&(d.set(L.dataset.precedence,L),m=L)}m&&d.set(null,m)}x=l.instance,L=x.getAttribute("data-precedence"),A=d.get(L)||m,A===m&&d.set(null,x),d.set(L,x),this.count++,m=eg.bind(this),x.addEventListener("load",m),x.addEventListener("error",m),A?A.parentNode.insertBefore(x,A.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(x,o.firstChild)),l.state.loading|=4}}var Ad={$$typeof:E,Provider:null,Consumer:null,_currentValue:q,_currentValue2:q,_threadCount:0};function zF(o,l,d,m,x,A,L,F,Y){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Lf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lf(0),this.hiddenUpdates=Lf(null),this.identifierPrefix=m,this.onUncaughtError=x,this.onCaughtError=A,this.onRecoverableError=L,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Y,this.incompleteTransitions=new Map}function VT(o,l,d,m,x,A,L,F,Y,se,ve,we){return o=new zF(o,l,d,L,Y,se,ve,we,F),l=1,A===!0&&(l|=24),A=jr(3,null,null,l),o.current=A,A.stateNode=o,l=Tb(),l.refCount++,o.pooledCache=l,l.refCount++,A.memoizedState={element:m,isDehydrated:d,cache:l},Rb(A),o}function KT(o){return o?(o=Ru,o):Ru}function YT(o,l,d,m,x,A){x=KT(x),m.context===null?m.context=x:m.pendingContext=x,m=Yo(l),m.payload={element:d},A=A===void 0?null:A,A!==null&&(m.callback=A),d=Wo(o,m,l),d!==null&&(Mr(d,o,l),rd(d,o,l))}function WT(o,l){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var d=o.retryLane;o.retryLane=d!==0&&d<l?d:l}}function Z1(o,l){WT(o,l),(o=o.alternate)&&WT(o,l)}function QT(o){if(o.tag===13||o.tag===31){var l=il(o,67108864);l!==null&&Mr(l,o,67108864),Z1(o,67108864)}}function ZT(o){if(o.tag===13||o.tag===31){var l=Hr();l=zf(l);var d=il(o,l);d!==null&&Mr(d,o,l),Z1(o,l)}}var rg=!0;function jF(o,l,d,m){var x=j.T;j.T=null;var A=G.p;try{G.p=2,X1(o,l,d,m)}finally{G.p=A,j.T=x}}function $F(o,l,d,m){var x=j.T;j.T=null;var A=G.p;try{G.p=8,X1(o,l,d,m)}finally{G.p=A,j.T=x}}function X1(o,l,d,m){if(rg){var x=J1(m);if(x===null)j1(o,l,m,ig,d),JT(o,m);else if(UF(x,o,l,d,m))m.stopPropagation();else if(JT(o,m),l&4&&-1<BF.indexOf(o)){for(;x!==null;){var A=zo(x);if(A!==null)switch(A.tag){case 3:if(A=A.stateNode,A.current.memoizedState.isDehydrated){var L=Ca(A.pendingLanes);if(L!==0){var F=A;for(F.pendingLanes|=2,F.entangledLanes|=2;L;){var Y=1<<31-_n(L);F.entanglements[1]|=Y,L&=~Y}ea(A),(St&6)===0&&(Bm=ae()+500,bd(0))}}break;case 31:case 13:F=il(A,2),F!==null&&Mr(F,A,2),Fm(),Z1(A,2)}if(A=J1(m),A===null&&j1(o,l,m,ig,d),A===x)break;x=A}x!==null&&m.stopPropagation()}else j1(o,l,m,null,d)}}function J1(o){return o=tb(o),ew(o)}var ig=null;function ew(o){if(ig=null,o=Lo(o),o!==null){var l=a(o);if(l===null)o=null;else{var d=l.tag;if(d===13){if(o=s(l),o!==null)return o;o=null}else if(d===31){if(o=u(l),o!==null)return o;o=null}else if(d===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;o=null}else l!==o&&(o=null)}}return ig=o,null}function XT(o){switch(o){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Oe()){case _e:return 2;case Ee:return 8;case Re:case Ze:return 32;case ct:return 268435456;default:return 32}default:return 32}}var tw=!1,os=null,ss=null,ls=null,kd=new Map,Cd=new Map,us=[],BF="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function JT(o,l){switch(o){case"focusin":case"focusout":os=null;break;case"dragenter":case"dragleave":ss=null;break;case"mouseover":case"mouseout":ls=null;break;case"pointerover":case"pointerout":kd.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cd.delete(l.pointerId)}}function Od(o,l,d,m,x,A){return o===null||o.nativeEvent!==A?(o={blockedOn:l,domEventName:d,eventSystemFlags:m,nativeEvent:A,targetContainers:[x]},l!==null&&(l=zo(l),l!==null&&QT(l)),o):(o.eventSystemFlags|=m,l=o.targetContainers,x!==null&&l.indexOf(x)===-1&&l.push(x),o)}function UF(o,l,d,m,x){switch(l){case"focusin":return os=Od(os,o,l,d,m,x),!0;case"dragenter":return ss=Od(ss,o,l,d,m,x),!0;case"mouseover":return ls=Od(ls,o,l,d,m,x),!0;case"pointerover":var A=x.pointerId;return kd.set(A,Od(kd.get(A)||null,o,l,d,m,x)),!0;case"gotpointercapture":return A=x.pointerId,Cd.set(A,Od(Cd.get(A)||null,o,l,d,m,x)),!0}return!1}function eM(o){var l=Lo(o.target);if(l!==null){var d=a(l);if(d!==null){if(l=d.tag,l===13){if(l=s(d),l!==null){o.blockedOn=l,Vp(o.priority,function(){ZT(d)});return}}else if(l===31){if(l=u(d),l!==null){o.blockedOn=l,Vp(o.priority,function(){ZT(d)});return}}else if(l===3&&d.stateNode.current.memoizedState.isDehydrated){o.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}o.blockedOn=null}function ag(o){if(o.blockedOn!==null)return!1;for(var l=o.targetContainers;0<l.length;){var d=J1(o.nativeEvent);if(d===null){d=o.nativeEvent;var m=new d.constructor(d.type,d);eb=m,d.target.dispatchEvent(m),eb=null}else return l=zo(d),l!==null&&QT(l),o.blockedOn=d,!1;l.shift()}return!0}function tM(o,l,d){ag(o)&&d.delete(l)}function FF(){tw=!1,os!==null&&ag(os)&&(os=null),ss!==null&&ag(ss)&&(ss=null),ls!==null&&ag(ls)&&(ls=null),kd.forEach(tM),Cd.forEach(tM)}function og(o,l){o.blockedOn===l&&(o.blockedOn=null,tw||(tw=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,FF)))}var sg=null;function nM(o){sg!==o&&(sg=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){sg===o&&(sg=null);for(var l=0;l<o.length;l+=3){var d=o[l],m=o[l+1],x=o[l+2];if(typeof m!="function"){if(ew(m||d)===null)continue;break}var A=zo(d);A!==null&&(o.splice(l,3),l-=3,Jb(A,{pending:!0,data:x,method:d.method,action:m},m,x))}}))}function rc(o){function l(Y){return og(Y,o)}os!==null&&og(os,o),ss!==null&&og(ss,o),ls!==null&&og(ls,o),kd.forEach(l),Cd.forEach(l);for(var d=0;d<us.length;d++){var m=us[d];m.blockedOn===o&&(m.blockedOn=null)}for(;0<us.length&&(d=us[0],d.blockedOn===null);)eM(d),d.blockedOn===null&&us.shift();if(d=(o.ownerDocument||o).$$reactFormReplay,d!=null)for(m=0;m<d.length;m+=3){var x=d[m],A=d[m+1],L=x[ir]||null;if(typeof A=="function")L||nM(d);else if(L){var F=null;if(A&&A.hasAttribute("formAction")){if(x=A,L=A[ir]||null)F=L.formAction;else if(ew(x)!==null)continue}else F=L.action;typeof F=="function"?d[m+1]=F:(d.splice(m,3),m-=3),nM(d)}}}function rM(){function o(A){A.canIntercept&&A.info==="react-transition"&&A.intercept({handler:function(){return new Promise(function(L){return x=L})},focusReset:"manual",scroll:"manual"})}function l(){x!==null&&(x(),x=null),m||setTimeout(d,20)}function d(){if(!m&&!navigation.transition){var A=navigation.currentEntry;A&&A.url!=null&&navigation.navigate(A.url,{state:A.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var m=!1,x=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(d,100),function(){m=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),x!==null&&(x(),x=null)}}}function nw(o){this._internalRoot=o}lg.prototype.render=nw.prototype.render=function(o){var l=this._internalRoot;if(l===null)throw Error(r(409));var d=l.current,m=Hr();YT(d,m,o,l,null,null)},lg.prototype.unmount=nw.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var l=o.containerInfo;YT(o.current,2,null,o,null,null),Fm(),l[Oa]=null}};function lg(o){this._internalRoot=o}lg.prototype.unstable_scheduleHydration=function(o){if(o){var l=qp();o={blockedOn:null,target:o,priority:l};for(var d=0;d<us.length&&l!==0&&l<us[d].priority;d++);us.splice(d,0,o),d===0&&eM(o)}};var iM=t.version;if(iM!=="19.2.4")throw Error(r(527,iM,"19.2.4"));G.findDOMNode=function(o){var l=o._reactInternals;if(l===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=f(l),o=o!==null?h(o):null,o=o===null?null:o.stateNode,o};var HF={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ug=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ug.isDisabled&&ug.supportsFiber)try{Xt=ug.inject(HF),Gn=ug}catch{}}return Md.createRoot=function(o,l){if(!i(o))throw Error(r(299));var d=!1,m="",x=fO,A=dO,L=hO;return l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onUncaughtError!==void 0&&(x=l.onUncaughtError),l.onCaughtError!==void 0&&(A=l.onCaughtError),l.onRecoverableError!==void 0&&(L=l.onRecoverableError)),l=VT(o,1,!1,null,null,d,m,null,x,A,L,rM),o[Oa]=l.current,z1(o),new nw(l)},Md.hydrateRoot=function(o,l,d){if(!i(o))throw Error(r(299));var m=!1,x="",A=fO,L=dO,F=hO,Y=null;return d!=null&&(d.unstable_strictMode===!0&&(m=!0),d.identifierPrefix!==void 0&&(x=d.identifierPrefix),d.onUncaughtError!==void 0&&(A=d.onUncaughtError),d.onCaughtError!==void 0&&(L=d.onCaughtError),d.onRecoverableError!==void 0&&(F=d.onRecoverableError),d.formState!==void 0&&(Y=d.formState)),l=VT(o,1,!0,l,d??null,m,x,Y,A,L,F,rM),l.context=KT(null),d=l.current,m=Hr(),m=zf(m),x=Yo(m),x.callback=null,Wo(d,x,m),d=m,l.current.lanes=d,Zs(l,d),ea(l),o[Oa]=l.current,z1(o),new lg(l)},Md.version="19.2.4",Md}var mM;function nH(){if(mM)return ow.exports;mM=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),ow.exports=tH(),ow.exports}var rH=nH();const n2e=ti(rH);var vf=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ll,As,Dc,S4,iH=(S4=class extends vf{constructor(){super();qe(this,Ll);qe(this,As);qe(this,Dc);Te(this,Dc,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Q(this,As)||this.setEventListener(Q(this,Dc))}onUnsubscribe(){var t;this.hasListeners()||((t=Q(this,As))==null||t.call(this),Te(this,As,void 0))}setEventListener(t){var n;Te(this,Dc,t),(n=Q(this,As))==null||n.call(this),Te(this,As,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){Q(this,Ll)!==t&&(Te(this,Ll,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Q(this,Ll)=="boolean"?Q(this,Ll):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ll=new WeakMap,As=new WeakMap,Dc=new WeakMap,S4),z2=new iH,aH={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ks,L2,E4,oH=(E4=class{constructor(){qe(this,ks,aH);qe(this,L2,!1)}setTimeoutProvider(e){Te(this,ks,e)}setTimeout(e,t){return Q(this,ks).setTimeout(e,t)}clearTimeout(e){Q(this,ks).clearTimeout(e)}setInterval(e,t){return Q(this,ks).setInterval(e,t)}clearInterval(e){Q(this,ks).clearInterval(e)}},ks=new WeakMap,L2=new WeakMap,E4),Ml=new oH;function sH(e){setTimeout(e,0)}var lH=typeof window>"u"||"Deno"in globalThis;function gr(){}function uH(e,t){return typeof e=="function"?e(t):e}function G_(e){return typeof e=="number"&&e>=0&&e!==1/0}function I4(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Is(e,t){return typeof e=="function"?e(t):e}function vi(e,t){return typeof e=="function"?e(t):e}function gM(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:s,stale:u}=e;if(s){if(r){if(t.queryHash!==j2(s,t.options))return!1}else if(!wh(t.queryKey,s))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||a&&!a(t))}function vM(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(Ql(t.options.mutationKey)!==Ql(a))return!1}else if(!wh(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function j2(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ql)(e)}function Ql(e){return JSON.stringify(e,(t,n)=>q_(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function wh(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>wh(e[n],t[n])):!1}var cH=Object.prototype.hasOwnProperty;function $2(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=yM(e)&&yM(t);if(!r&&!(q_(e)&&q_(t)))return t;const a=(r?e:Object.keys(e)).length,s=r?t:Object.keys(t),u=s.length,c=r?new Array(u):{};let f=0;for(let h=0;h<u;h++){const p=r?h:s[h],g=e[p],v=t[p];if(g===v){c[p]=g,(r?h<a:cH.call(e,p))&&f++;continue}if(g===null||v===null||typeof g!="object"||typeof v!="object"){c[p]=v;continue}const y=$2(g,v,n+1);c[p]=y,y===g&&f++}return a===u&&f===a?e:c}function dv(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function yM(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function q_(e){if(!bM(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!bM(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function bM(e){return Object.prototype.toString.call(e)==="[object Object]"}function fH(e){return new Promise(t=>{Ml.setTimeout(t,e)})}function V_(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?$2(e,t):t}function dH(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function hH(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var B2=Symbol();function L4(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===B2?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function U2(e,t){return typeof e=="function"?e(...t):!!e}function pH(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),r||(r=!0,i.aborted?n():i.addEventListener("abort",n,{once:!0})),i)}),e}var xh=(()=>{let e=()=>lH;return{isServer(){return e()},setIsServer(t){e=t}}})();function K_(){let e,t;const n=new Promise((i,a)=>{e=i,t=a});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var mH=sH;function gH(){let e=[],t=0,n=u=>{u()},r=u=>{u()},i=mH;const a=u=>{t?e.push(u):i(()=>{n(u)})},s=()=>{const u=e;e=[],u.length&&i(()=>{r(()=>{u.forEach(c=>{n(c)})})})};return{batch:u=>{let c;t++;try{c=u()}finally{t--,t||s()}return c},batchCalls:u=>(...c)=>{a(()=>{u(...c)})},schedule:a,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var fn=gH(),Ic,Cs,Lc,A4,vH=(A4=class extends vf{constructor(){super();qe(this,Ic,!0);qe(this,Cs);qe(this,Lc);Te(this,Lc,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){Q(this,Cs)||this.setEventListener(Q(this,Lc))}onUnsubscribe(){var t;this.hasListeners()||((t=Q(this,Cs))==null||t.call(this),Te(this,Cs,void 0))}setEventListener(t){var n;Te(this,Lc,t),(n=Q(this,Cs))==null||n.call(this),Te(this,Cs,t(this.setOnline.bind(this)))}setOnline(t){Q(this,Ic)!==t&&(Te(this,Ic,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Q(this,Ic)}},Ic=new WeakMap,Cs=new WeakMap,Lc=new WeakMap,A4),hv=new vH;function yH(e){return Math.min(1e3*2**e,3e4)}function z4(e){return(e??"online")==="online"?hv.isOnline():!0}var Y_=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function j4(e){let t=!1,n=0,r;const i=K_(),a=()=>i.status!=="pending",s=b=>{var w;if(!a()){const _=new Y_(b);g(_),(w=e.onCancel)==null||w.call(e,_)}},u=()=>{t=!0},c=()=>{t=!1},f=()=>z2.isFocused()&&(e.networkMode==="always"||hv.isOnline())&&e.canRun(),h=()=>z4(e.networkMode)&&e.canRun(),p=b=>{a()||(r==null||r(),i.resolve(b))},g=b=>{a()||(r==null||r(),i.reject(b))},v=()=>new Promise(b=>{var w;r=_=>{(a()||f())&&b(_)},(w=e.onPause)==null||w.call(e)}).then(()=>{var b;r=void 0,a()||(b=e.onContinue)==null||b.call(e)}),y=()=>{if(a())return;let b;const w=n===0?e.initialPromise:void 0;try{b=w??e.fn()}catch(_){b=Promise.reject(_)}Promise.resolve(b).then(p).catch(_=>{var O;if(a())return;const C=e.retry??(xh.isServer()?0:3),E=e.retryDelay??yH,S=typeof E=="function"?E(n,_):E,T=C===!0||typeof C=="number"&&n<C||typeof C=="function"&&C(n,_);if(t||!T){g(_);return}n++,(O=e.onFail)==null||O.call(e,n,_),fH(S).then(()=>f()?void 0:v()).then(()=>{t?g(_):y()})})};return{promise:i,status:()=>i.status,cancel:s,continue:()=>(r==null||r(),i),cancelRetry:u,continueRetry:c,canStart:h,start:()=>(h()?y():v().then(y),i)}}var zl,k4,$4=(k4=class{constructor(){qe(this,zl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),G_(this.gcTime)&&Te(this,zl,Ml.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(xh.isServer()?1/0:300*1e3))}clearGcTimeout(){Q(this,zl)&&(Ml.clearTimeout(Q(this,zl)),Te(this,zl,void 0))}},zl=new WeakMap,k4),jl,zc,gi,$l,In,Qh,Bl,Gr,B4,Za,C4,bH=(C4=class extends $4{constructor(t){super();qe(this,Gr);qe(this,jl);qe(this,zc);qe(this,gi);qe(this,$l);qe(this,In);qe(this,Qh);qe(this,Bl);Te(this,Bl,!1),Te(this,Qh,t.defaultOptions),this.setOptions(t.options),this.observers=[],Te(this,$l,t.client),Te(this,gi,Q(this,$l).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Te(this,jl,xM(this.options)),this.state=t.state??Q(this,jl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Q(this,In))==null?void 0:t.promise}setOptions(t){if(this.options={...Q(this,Qh),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=xM(this.options);n.data!==void 0&&(this.setState(wM(n.data,n.dataUpdatedAt)),Te(this,jl,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Q(this,gi).remove(this)}setData(t,n){const r=V_(this.state.data,t,this.options);return rt(this,Gr,Za).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){rt(this,Gr,Za).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=Q(this,In))==null?void 0:r.promise;return(i=Q(this,In))==null||i.cancel(t),n?n.then(gr).catch(gr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return Q(this,jl)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>vi(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===B2||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Is(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!I4(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Q(this,In))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Q(this,In))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Q(this,gi).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Q(this,In)&&(Q(this,Bl)||rt(this,Gr,B4).call(this)?Q(this,In).cancel({revert:!0}):Q(this,In).cancelRetry()),this.scheduleGc()),Q(this,gi).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||rt(this,Gr,Za).call(this,{type:"invalidate"})}async fetch(t,n){var c,f,h,p,g,v,y,b,w,_,C,E;if(this.state.fetchStatus!=="idle"&&((c=Q(this,In))==null?void 0:c.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Q(this,In))return Q(this,In).continueRetry(),Q(this,In).promise}if(t&&this.setOptions(t),!this.options.queryFn){const S=this.observers.find(T=>T.options.queryFn);S&&this.setOptions(S.options)}const r=new AbortController,i=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(Te(this,Bl,!0),r.signal)})},a=()=>{const S=L4(this.options,n),O=(()=>{const M={client:Q(this,$l),queryKey:this.queryKey,meta:this.meta};return i(M),M})();return Te(this,Bl,!1),this.options.persister?this.options.persister(S,O,this):S(O)},u=(()=>{const S={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:Q(this,$l),state:this.state,fetchFn:a};return i(S),S})();(f=this.options.behavior)==null||f.onFetch(u,this),Te(this,zc,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((h=u.fetchOptions)==null?void 0:h.meta))&&rt(this,Gr,Za).call(this,{type:"fetch",meta:(p=u.fetchOptions)==null?void 0:p.meta}),Te(this,In,j4({initialPromise:n==null?void 0:n.initialPromise,fn:u.fetchFn,onCancel:S=>{S instanceof Y_&&S.revert&&this.setState({...Q(this,zc),fetchStatus:"idle"}),r.abort()},onFail:(S,T)=>{rt(this,Gr,Za).call(this,{type:"failed",failureCount:S,error:T})},onPause:()=>{rt(this,Gr,Za).call(this,{type:"pause"})},onContinue:()=>{rt(this,Gr,Za).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0}));try{const S=await Q(this,In).start();if(S===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(S),(v=(g=Q(this,gi).config).onSuccess)==null||v.call(g,S,this),(b=(y=Q(this,gi).config).onSettled)==null||b.call(y,S,this.state.error,this),S}catch(S){if(S instanceof Y_){if(S.silent)return Q(this,In).promise;if(S.revert){if(this.state.data===void 0)throw S;return this.state.data}}throw rt(this,Gr,Za).call(this,{type:"error",error:S}),(_=(w=Q(this,gi).config).onError)==null||_.call(w,S,this),(E=(C=Q(this,gi).config).onSettled)==null||E.call(C,this.state.data,S,this),S}finally{this.scheduleGc()}}},jl=new WeakMap,zc=new WeakMap,gi=new WeakMap,$l=new WeakMap,In=new WeakMap,Qh=new WeakMap,Bl=new WeakMap,Gr=new WeakSet,B4=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Za=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...U4(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,...wM(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return Te(this,zc,t.manual?i:void 0),i;case"error":const a=t.error;return{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),fn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),Q(this,gi).notify({query:this,type:"updated",action:t})})},C4);function U4(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:z4(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function wM(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function xM(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Pr,pt,Zh,pr,Ul,jc,to,Os,Xh,$c,Bc,Fl,Hl,Ts,Uc,At,nh,W_,Q_,Z_,X_,J_,eS,tS,H4,O4,F4=(O4=class extends vf{constructor(t,n){super();qe(this,At);qe(this,Pr);qe(this,pt);qe(this,Zh);qe(this,pr);qe(this,Ul);qe(this,jc);qe(this,to);qe(this,Os);qe(this,Xh);qe(this,$c);qe(this,Bc);qe(this,Fl);qe(this,Hl);qe(this,Ts);qe(this,Uc,new Set);this.options=n,Te(this,Pr,t),Te(this,Os,null),Te(this,to,K_()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Q(this,pt).addObserver(this),_M(Q(this,pt),this.options)?rt(this,At,nh).call(this):this.updateResult(),rt(this,At,X_).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return nS(Q(this,pt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return nS(Q(this,pt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,rt(this,At,J_).call(this),rt(this,At,eS).call(this),Q(this,pt).removeObserver(this)}setOptions(t){const n=this.options,r=Q(this,pt);if(this.options=Q(this,Pr).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof vi(this.options.enabled,Q(this,pt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");rt(this,At,tS).call(this),Q(this,pt).setOptions(this.options),n._defaulted&&!dv(this.options,n)&&Q(this,Pr).getQueryCache().notify({type:"observerOptionsUpdated",query:Q(this,pt),observer:this});const i=this.hasListeners();i&&SM(Q(this,pt),r,this.options,n)&&rt(this,At,nh).call(this),this.updateResult(),i&&(Q(this,pt)!==r||vi(this.options.enabled,Q(this,pt))!==vi(n.enabled,Q(this,pt))||Is(this.options.staleTime,Q(this,pt))!==Is(n.staleTime,Q(this,pt)))&&rt(this,At,W_).call(this);const a=rt(this,At,Q_).call(this);i&&(Q(this,pt)!==r||vi(this.options.enabled,Q(this,pt))!==vi(n.enabled,Q(this,pt))||a!==Q(this,Ts))&&rt(this,At,Z_).call(this,a)}getOptimisticResult(t){const n=Q(this,Pr).getQueryCache().build(Q(this,Pr),t),r=this.createResult(n,t);return xH(this,r)&&(Te(this,pr,r),Te(this,jc,this.options),Te(this,Ul,Q(this,pt).state)),r}getCurrentResult(){return Q(this,pr)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&Q(this,to).status==="pending"&&Q(this,to).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,i))})}trackProp(t){Q(this,Uc).add(t)}getCurrentQuery(){return Q(this,pt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=Q(this,Pr).defaultQueryOptions(t),r=Q(this,Pr).getQueryCache().build(Q(this,Pr),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return rt(this,At,nh).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),Q(this,pr)))}createResult(t,n){var R;const r=Q(this,pt),i=this.options,a=Q(this,pr),s=Q(this,Ul),u=Q(this,jc),f=t!==r?t.state:Q(this,Zh),{state:h}=t;let p={...h},g=!1,v;if(n._optimisticResults){const z=this.hasListeners(),D=!z&&_M(t,n),N=z&&SM(t,r,n,i);(D||N)&&(p={...p,...U4(h.data,t.options)}),n._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:y,errorUpdatedAt:b,status:w}=p;v=p.data;let _=!1;if(n.placeholderData!==void 0&&v===void 0&&w==="pending"){let z;a!=null&&a.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData)?(z=a.data,_=!0):z=typeof n.placeholderData=="function"?n.placeholderData((R=Q(this,Bc))==null?void 0:R.state.data,Q(this,Bc)):n.placeholderData,z!==void 0&&(w="success",v=V_(a==null?void 0:a.data,z,n),g=!0)}if(n.select&&v!==void 0&&!_)if(a&&v===(s==null?void 0:s.data)&&n.select===Q(this,Xh))v=Q(this,$c);else try{Te(this,Xh,n.select),v=n.select(v),v=V_(a==null?void 0:a.data,v,n),Te(this,$c,v),Te(this,Os,null)}catch(z){Te(this,Os,z)}Q(this,Os)&&(y=Q(this,Os),v=Q(this,$c),b=Date.now(),w="error");const C=p.fetchStatus==="fetching",E=w==="pending",S=w==="error",T=E&&C,O=v!==void 0,P={status:w,fetchStatus:p.fetchStatus,isPending:E,isSuccess:w==="success",isError:S,isInitialLoading:T,isLoading:T,data:v,dataUpdatedAt:p.dataUpdatedAt,error:y,errorUpdatedAt:b,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:p.dataUpdateCount>f.dataUpdateCount||p.errorUpdateCount>f.errorUpdateCount,isFetching:C,isRefetching:C&&!E,isLoadingError:S&&!O,isPaused:p.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:S&&O,isStale:F2(t,n),refetch:this.refetch,promise:Q(this,to),isEnabled:vi(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const z=P.data!==void 0,D=P.status==="error"&&!z,N=U=>{D?U.reject(P.error):z&&U.resolve(P.data)},$=()=>{const U=Te(this,to,P.promise=K_());N(U)},I=Q(this,to);switch(I.status){case"pending":t.queryHash===r.queryHash&&N(I);break;case"fulfilled":(D||P.data!==I.value)&&$();break;case"rejected":(!D||P.error!==I.reason)&&$();break}}return P}updateResult(){const t=Q(this,pr),n=this.createResult(Q(this,pt),this.options);if(Te(this,Ul,Q(this,pt).state),Te(this,jc,this.options),Q(this,Ul).data!==void 0&&Te(this,Bc,Q(this,pt)),dv(n,t))return;Te(this,pr,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!Q(this,Uc).size)return!0;const s=new Set(a??Q(this,Uc));return this.options.throwOnError&&s.add("error"),Object.keys(Q(this,pr)).some(u=>{const c=u;return Q(this,pr)[c]!==t[c]&&s.has(c)})};rt(this,At,H4).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&rt(this,At,X_).call(this)}},Pr=new WeakMap,pt=new WeakMap,Zh=new WeakMap,pr=new WeakMap,Ul=new WeakMap,jc=new WeakMap,to=new WeakMap,Os=new WeakMap,Xh=new WeakMap,$c=new WeakMap,Bc=new WeakMap,Fl=new WeakMap,Hl=new WeakMap,Ts=new WeakMap,Uc=new WeakMap,At=new WeakSet,nh=function(t){rt(this,At,tS).call(this);let n=Q(this,pt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(gr)),n},W_=function(){rt(this,At,J_).call(this);const t=Is(this.options.staleTime,Q(this,pt));if(xh.isServer()||Q(this,pr).isStale||!G_(t))return;const r=I4(Q(this,pr).dataUpdatedAt,t)+1;Te(this,Fl,Ml.setTimeout(()=>{Q(this,pr).isStale||this.updateResult()},r))},Q_=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Q(this,pt)):this.options.refetchInterval)??!1},Z_=function(t){rt(this,At,eS).call(this),Te(this,Ts,t),!(xh.isServer()||vi(this.options.enabled,Q(this,pt))===!1||!G_(Q(this,Ts))||Q(this,Ts)===0)&&Te(this,Hl,Ml.setInterval(()=>{(this.options.refetchIntervalInBackground||z2.isFocused())&&rt(this,At,nh).call(this)},Q(this,Ts)))},X_=function(){rt(this,At,W_).call(this),rt(this,At,Z_).call(this,rt(this,At,Q_).call(this))},J_=function(){Q(this,Fl)&&(Ml.clearTimeout(Q(this,Fl)),Te(this,Fl,void 0))},eS=function(){Q(this,Hl)&&(Ml.clearInterval(Q(this,Hl)),Te(this,Hl,void 0))},tS=function(){const t=Q(this,Pr).getQueryCache().build(Q(this,Pr),this.options);if(t===Q(this,pt))return;const n=Q(this,pt);Te(this,pt,t),Te(this,Zh,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},H4=function(t){fn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(Q(this,pr))}),Q(this,Pr).getQueryCache().notify({query:Q(this,pt),type:"observerResultsUpdated"})})},O4);function wH(e,t){return vi(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function _M(e,t){return wH(e,t)||e.state.data!==void 0&&nS(e,t,t.refetchOnMount)}function nS(e,t,n){if(vi(t.enabled,e)!==!1&&Is(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&F2(e,t)}return!1}function SM(e,t,n,r){return(e!==t||vi(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&F2(e,n)}function F2(e,t){return vi(t.enabled,e)!==!1&&e.isStaleByTime(Is(t.staleTime,e))}function xH(e,t){return!dv(e.getCurrentResult(),t)}function pv(e){return{onFetch:(t,n)=>{var h,p,g,v,y;const r=t.options,i=(g=(p=(h=t.fetchOptions)==null?void 0:h.meta)==null?void 0:p.fetchMore)==null?void 0:g.direction,a=((v=t.state.data)==null?void 0:v.pages)||[],s=((y=t.state.data)==null?void 0:y.pageParams)||[];let u={pages:[],pageParams:[]},c=0;const f=async()=>{let b=!1;const w=E=>{pH(E,()=>t.signal,()=>b=!0)},_=L4(t.options,t.fetchOptions),C=async(E,S,T)=>{if(b)return Promise.reject();if(S==null&&E.pages.length)return Promise.resolve(E);const M=(()=>{const D={client:t.client,queryKey:t.queryKey,pageParam:S,direction:T?"backward":"forward",meta:t.options.meta};return w(D),D})(),P=await _(M),{maxPages:R}=t.options,z=T?hH:dH;return{pages:z(E.pages,P,R),pageParams:z(E.pageParams,S,R)}};if(i&&a.length){const E=i==="backward",S=E?G4:rS,T={pages:a,pageParams:s},O=S(r,T);u=await C(T,O,E)}else{const E=e??a.length;do{const S=c===0?s[0]??r.initialPageParam:rS(r,u);if(c>0&&S==null)break;u=await C(u,S),c++}while(c<E)}return u};t.options.persister?t.fetchFn=()=>{var b,w;return(w=(b=t.options).persister)==null?void 0:w.call(b,f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=f}}}function rS(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function G4(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function _H(e,t){return t?rS(e,t)!=null:!1}function SH(e,t){return!t||!e.getPreviousPageParam?!1:G4(e,t)!=null}var EH=class extends F4{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:pv()})}getOptimisticResult(e){return e.behavior=pv(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var y,b;const{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:s,isRefetchError:u}=r,c=(b=(y=n.fetchMeta)==null?void 0:y.fetchMore)==null?void 0:b.direction,f=s&&c==="forward",h=i&&c==="forward",p=s&&c==="backward",g=i&&c==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:_H(t,n.data),hasPreviousPage:SH(t,n.data),isFetchNextPageError:f,isFetchingNextPage:h,isFetchPreviousPageError:p,isFetchingPreviousPage:g,isRefetchError:u&&!f&&!p,isRefetching:a&&!h&&!g}}},Jh,oa,or,Gl,sa,ys,T4,AH=(T4=class extends $4{constructor(t){super();qe(this,sa);qe(this,Jh);qe(this,oa);qe(this,or);qe(this,Gl);Te(this,Jh,t.client),this.mutationId=t.mutationId,Te(this,or,t.mutationCache),Te(this,oa,[]),this.state=t.state||q4(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Q(this,oa).includes(t)||(Q(this,oa).push(t),this.clearGcTimeout(),Q(this,or).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Te(this,oa,Q(this,oa).filter(n=>n!==t)),this.scheduleGc(),Q(this,or).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Q(this,oa).length||(this.state.status==="pending"?this.scheduleGc():Q(this,or).remove(this))}continue(){var t;return((t=Q(this,Gl))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,u,c,f,h,p,g,v,y,b,w,_,C,E,S,T,O,M;const n=()=>{rt(this,sa,ys).call(this,{type:"continue"})},r={client:Q(this,Jh),meta:this.options.meta,mutationKey:this.options.mutationKey};Te(this,Gl,j4({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(P,R)=>{rt(this,sa,ys).call(this,{type:"failed",failureCount:P,error:R})},onPause:()=>{rt(this,sa,ys).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Q(this,or).canRun(this)}));const i=this.state.status==="pending",a=!Q(this,Gl).canStart();try{if(i)n();else{rt(this,sa,ys).call(this,{type:"pending",variables:t,isPaused:a}),Q(this,or).config.onMutate&&await Q(this,or).config.onMutate(t,this,r);const R=await((u=(s=this.options).onMutate)==null?void 0:u.call(s,t,r));R!==this.state.context&&rt(this,sa,ys).call(this,{type:"pending",context:R,variables:t,isPaused:a})}const P=await Q(this,Gl).start();return await((f=(c=Q(this,or).config).onSuccess)==null?void 0:f.call(c,P,t,this.state.context,this,r)),await((p=(h=this.options).onSuccess)==null?void 0:p.call(h,P,t,this.state.context,r)),await((v=(g=Q(this,or).config).onSettled)==null?void 0:v.call(g,P,null,this.state.variables,this.state.context,this,r)),await((b=(y=this.options).onSettled)==null?void 0:b.call(y,P,null,t,this.state.context,r)),rt(this,sa,ys).call(this,{type:"success",data:P}),P}catch(P){try{await((_=(w=Q(this,or).config).onError)==null?void 0:_.call(w,P,t,this.state.context,this,r))}catch(R){Promise.reject(R)}try{await((E=(C=this.options).onError)==null?void 0:E.call(C,P,t,this.state.context,r))}catch(R){Promise.reject(R)}try{await((T=(S=Q(this,or).config).onSettled)==null?void 0:T.call(S,void 0,P,this.state.variables,this.state.context,this,r))}catch(R){Promise.reject(R)}try{await((M=(O=this.options).onSettled)==null?void 0:M.call(O,void 0,P,t,this.state.context,r))}catch(R){Promise.reject(R)}throw rt(this,sa,ys).call(this,{type:"error",error:P}),P}finally{Q(this,or).runNext(this)}}},Jh=new WeakMap,oa=new WeakMap,or=new WeakMap,Gl=new WeakMap,sa=new WeakSet,ys=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),fn.batch(()=>{Q(this,oa).forEach(r=>{r.onMutationUpdate(t)}),Q(this,or).notify({mutation:this,type:"updated",action:t})})},T4);function q4(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var no,Ii,ep,M4,kH=(M4=class extends vf{constructor(t={}){super();qe(this,no);qe(this,Ii);qe(this,ep);this.config=t,Te(this,no,new Set),Te(this,Ii,new Map),Te(this,ep,0)}build(t,n,r){const i=new AH({client:t,mutationCache:this,mutationId:++cg(this,ep)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){Q(this,no).add(t);const n=fg(t);if(typeof n=="string"){const r=Q(this,Ii).get(n);r?r.push(t):Q(this,Ii).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(Q(this,no).delete(t)){const n=fg(t);if(typeof n=="string"){const r=Q(this,Ii).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&Q(this,Ii).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=fg(t);if(typeof n=="string"){const r=Q(this,Ii).get(n),i=r==null?void 0:r.find(a=>a.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=fg(t);if(typeof n=="string"){const i=(r=Q(this,Ii).get(n))==null?void 0:r.find(a=>a!==t&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){fn.batch(()=>{Q(this,no).forEach(t=>{this.notify({type:"removed",mutation:t})}),Q(this,no).clear(),Q(this,Ii).clear()})}getAll(){return Array.from(Q(this,no))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>vM(n,r))}findAll(t={}){return this.getAll().filter(n=>vM(t,n))}notify(t){fn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return fn.batch(()=>Promise.all(t.map(n=>n.continue().catch(gr))))}},no=new WeakMap,Ii=new WeakMap,ep=new WeakMap,M4);function fg(e){var t;return(t=e.options.scope)==null?void 0:t.id}var ro,Ms,Nr,io,go,Xg,iS,P4,CH=(P4=class extends vf{constructor(n,r){super();qe(this,go);qe(this,ro);qe(this,Ms);qe(this,Nr);qe(this,io);Te(this,ro,n),this.setOptions(r),this.bindMethods(),rt(this,go,Xg).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var i;const r=this.options;this.options=Q(this,ro).defaultMutationOptions(n),dv(this.options,r)||Q(this,ro).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Q(this,Nr),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Ql(r.mutationKey)!==Ql(this.options.mutationKey)?this.reset():((i=Q(this,Nr))==null?void 0:i.state.status)==="pending"&&Q(this,Nr).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=Q(this,Nr))==null||n.removeObserver(this)}onMutationUpdate(n){rt(this,go,Xg).call(this),rt(this,go,iS).call(this,n)}getCurrentResult(){return Q(this,Ms)}reset(){var n;(n=Q(this,Nr))==null||n.removeObserver(this),Te(this,Nr,void 0),rt(this,go,Xg).call(this),rt(this,go,iS).call(this)}mutate(n,r){var i;return Te(this,io,r),(i=Q(this,Nr))==null||i.removeObserver(this),Te(this,Nr,Q(this,ro).getMutationCache().build(Q(this,ro),this.options)),Q(this,Nr).addObserver(this),Q(this,Nr).execute(n)}},ro=new WeakMap,Ms=new WeakMap,Nr=new WeakMap,io=new WeakMap,go=new WeakSet,Xg=function(){var r;const n=((r=Q(this,Nr))==null?void 0:r.state)??q4();Te(this,Ms,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},iS=function(n){fn.batch(()=>{var r,i,a,s,u,c,f,h;if(Q(this,io)&&this.hasListeners()){const p=Q(this,Ms).variables,g=Q(this,Ms).context,v={client:Q(this,ro),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(i=(r=Q(this,io)).onSuccess)==null||i.call(r,n.data,p,g,v)}catch(y){Promise.reject(y)}try{(s=(a=Q(this,io)).onSettled)==null||s.call(a,n.data,null,p,g,v)}catch(y){Promise.reject(y)}}else if((n==null?void 0:n.type)==="error"){try{(c=(u=Q(this,io)).onError)==null||c.call(u,n.error,p,g,v)}catch(y){Promise.reject(y)}try{(h=(f=Q(this,io)).onSettled)==null||h.call(f,void 0,n.error,p,g,v)}catch(y){Promise.reject(y)}}}this.listeners.forEach(p=>{p(Q(this,Ms))})})},P4),la,N4,OH=(N4=class extends vf{constructor(t={}){super();qe(this,la);this.config=t,Te(this,la,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??j2(i,n);let s=this.get(a);return s||(s=new bH({client:t,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){Q(this,la).has(t.queryHash)||(Q(this,la).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Q(this,la).get(t.queryHash);n&&(t.destroy(),n===t&&Q(this,la).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){fn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Q(this,la).get(t)}getAll(){return[...Q(this,la).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>gM(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>gM(t,r)):n}notify(t){fn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){fn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){fn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},la=new WeakMap,N4),tn,Ps,Ns,Fc,Hc,Rs,Gc,qc,R4,i2e=(R4=class{constructor(e={}){qe(this,tn);qe(this,Ps);qe(this,Ns);qe(this,Fc);qe(this,Hc);qe(this,Rs);qe(this,Gc);qe(this,qc);Te(this,tn,e.queryCache||new OH),Te(this,Ps,e.mutationCache||new kH),Te(this,Ns,e.defaultOptions||{}),Te(this,Fc,new Map),Te(this,Hc,new Map),Te(this,Rs,0)}mount(){cg(this,Rs)._++,Q(this,Rs)===1&&(Te(this,Gc,z2.subscribe(async e=>{e&&(await this.resumePausedMutations(),Q(this,tn).onFocus())})),Te(this,qc,hv.subscribe(async e=>{e&&(await this.resumePausedMutations(),Q(this,tn).onOnline())})))}unmount(){var e,t;cg(this,Rs)._--,Q(this,Rs)===0&&((e=Q(this,Gc))==null||e.call(this),Te(this,Gc,void 0),(t=Q(this,qc))==null||t.call(this),Te(this,qc,void 0))}isFetching(e){return Q(this,tn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Q(this,Ps).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Q(this,tn).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=Q(this,tn).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Is(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return Q(this,tn).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=Q(this,tn).get(r.queryHash),a=i==null?void 0:i.state.data,s=uH(t,a);if(s!==void 0)return Q(this,tn).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return fn.batch(()=>Q(this,tn).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Q(this,tn).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=Q(this,tn);fn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Q(this,tn);return fn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=fn.batch(()=>Q(this,tn).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(gr).catch(gr)}invalidateQueries(e,t={}){return fn.batch(()=>(Q(this,tn).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=fn.batch(()=>Q(this,tn).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(gr)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(gr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Q(this,tn).build(this,t);return n.isStaleByTime(Is(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(gr).catch(gr)}fetchInfiniteQuery(e){return e.behavior=pv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(gr).catch(gr)}ensureInfiniteQueryData(e){return e.behavior=pv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return hv.isOnline()?Q(this,Ps).resumePausedMutations():Promise.resolve()}getQueryCache(){return Q(this,tn)}getMutationCache(){return Q(this,Ps)}getDefaultOptions(){return Q(this,Ns)}setDefaultOptions(e){Te(this,Ns,e)}setQueryDefaults(e,t){Q(this,Fc).set(Ql(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Q(this,Fc).values()],n={};return t.forEach(r=>{wh(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){Q(this,Hc).set(Ql(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Q(this,Hc).values()],n={};return t.forEach(r=>{wh(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Q(this,Ns).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=j2(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===B2&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Q(this,Ns).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Q(this,tn).clear(),Q(this,Ps).clear()}},tn=new WeakMap,Ps=new WeakMap,Ns=new WeakMap,Fc=new WeakMap,Hc=new WeakMap,Rs=new WeakMap,Gc=new WeakMap,qc=new WeakMap,R4),V4=k.createContext(void 0),tp=e=>{const t=k.useContext(V4);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},a2e=({client:e,children:t})=>(k.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),ge.jsx(V4.Provider,{value:e,children:t})),K4=k.createContext(!1),TH=()=>k.useContext(K4);K4.Provider;function MH(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var PH=k.createContext(MH()),NH=()=>k.useContext(PH),RH=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?U2(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},DH=e=>{k.useEffect(()=>{e.clearReset()},[e])},IH=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||U2(n,[e.error,r])),LH=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},zH=(e,t)=>e.isLoading&&e.isFetching&&!t,jH=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,EM=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Y4(e,t,n){var g,v,y,b;const r=TH(),i=NH(),a=tp(n),s=a.defaultQueryOptions(e);(v=(g=a.getDefaultOptions().queries)==null?void 0:g._experimental_beforeQuery)==null||v.call(g,s);const u=a.getQueryCache().get(s.queryHash);s._optimisticResults=r?"isRestoring":"optimistic",LH(s),RH(s,i,u),DH(i);const c=!a.getQueryCache().get(s.queryHash),[f]=k.useState(()=>new t(a,s)),h=f.getOptimisticResult(s),p=!r&&e.subscribed!==!1;if(k.useSyncExternalStore(k.useCallback(w=>{const _=p?f.subscribe(fn.batchCalls(w)):gr;return f.updateResult(),_},[f,p]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),k.useEffect(()=>{f.setOptions(s)},[s,f]),jH(s,h))throw EM(s,f,i);if(IH({result:h,errorResetBoundary:i,throwOnError:s.throwOnError,query:u,suspense:s.suspense}))throw h.error;if((b=(y=a.getDefaultOptions().queries)==null?void 0:y._experimental_afterQuery)==null||b.call(y,s,h),s.experimental_prefetchInRender&&!xh.isServer()&&zH(h,r)){const w=c?EM(s,f,i):u==null?void 0:u.promise;w==null||w.catch(gr).finally(()=>{f.updateResult()})}return s.notifyOnChangeProps?h:f.trackResult(h)}function o2e(e,t){return Y4(e,F4,t)}function s2e(e,t){const n=tp(t),r=n.getQueryCache();return k.useSyncExternalStore(k.useCallback(i=>r.subscribe(fn.batchCalls(i)),[r]),()=>n.isFetching(e),()=>n.isFetching(e))}function l2e(e,t){const n=tp(t);return $H({filters:{...e,status:"pending"}},n).length}function AM(e,t){return e.findAll(t.filters).map(n=>t.select?t.select(n):n.state)}function $H(e={},t){const n=tp(t).getMutationCache(),r=k.useRef(e),i=k.useRef(null);return i.current===null&&(i.current=AM(n,e)),k.useEffect(()=>{r.current=e}),k.useSyncExternalStore(k.useCallback(a=>n.subscribe(()=>{const s=$2(i.current,AM(n,r.current));i.current!==s&&(i.current=s,fn.schedule(a))}),[n]),()=>i.current,()=>i.current)}function u2e(e,t){const n=tp(t),[r]=k.useState(()=>new CH(n,e));k.useEffect(()=>{r.setOptions(e)},[r,e]);const i=k.useSyncExternalStore(k.useCallback(s=>r.subscribe(fn.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=k.useCallback((s,u)=>{r.mutate(s,u).catch(gr)},[r]);if(i.error&&U2(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function c2e(e,t){return Y4(e,EH,t)}var cw={exports:{}},fw={};/**
50
+ * @license React
51
+ * use-sync-external-store-with-selector.production.js
52
+ *
53
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE file in the root directory of this source tree.
57
+ */var kM;function BH(){if(kM)return fw;kM=1;var e=gf();function t(c,f){return c===f&&(c!==0||1/c===1/f)||c!==c&&f!==f}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,s=e.useMemo,u=e.useDebugValue;return fw.useSyncExternalStoreWithSelector=function(c,f,h,p,g){var v=i(null);if(v.current===null){var y={hasValue:!1,value:null};v.current=y}else y=v.current;v=s(function(){function w(T){if(!_){if(_=!0,C=T,T=p(T),g!==void 0&&y.hasValue){var O=y.value;if(g(O,T))return E=O}return E=T}if(O=E,n(C,T))return O;var M=p(T);return g!==void 0&&g(O,M)?(C=T,O):(C=T,E=M)}var _=!1,C,E,S=h===void 0?null:h;return[function(){return w(f())},S===null?void 0:function(){return w(S())}]},[f,h,p,g]);var b=r(c,v[0],v[1]);return a(function(){y.hasValue=!0,y.value=b},[b]),u(b),b},fw}var CM;function UH(){return CM||(CM=1,cw.exports=BH()),cw.exports}var FH=UH();function W4(e){e()}function HH(){let e=null,t=null;return{clear(){e=null,t=null},notify(){W4(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var OM={notify(){},get:()=>[]};function GH(e,t){let n,r=OM,i=0,a=!1;function s(b){h();const w=r.subscribe(b);let _=!1;return()=>{_||(_=!0,w(),p())}}function u(){r.notify()}function c(){y.onStateChange&&y.onStateChange()}function f(){return a}function h(){i++,n||(n=e.subscribe(c),r=HH())}function p(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=OM)}function g(){a||(a=!0,h())}function v(){a&&(a=!1,p())}const y={addNestedSub:s,notifyNestedSubs:u,handleChangeWrapper:c,isSubscribed:f,trySubscribe:g,tryUnsubscribe:v,getListeners:()=>r};return y}var qH=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",VH=qH(),KH=()=>typeof navigator<"u"&&navigator.product==="ReactNative",YH=KH(),WH=()=>VH||YH?k.useLayoutEffect:k.useEffect,QH=WH();function TM(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Oc(e,t){if(TM(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!TM(e[n[i]],t[n[i]]))return!1;return!0}var dw=Symbol.for("react-redux-context"),hw=typeof globalThis<"u"?globalThis:{};function ZH(){if(!k.createContext)return{};const e=hw[dw]??(hw[dw]=new Map);let t=e.get(k.createContext);return t||(t=k.createContext(null),e.set(k.createContext,t)),t}var Bs=ZH();function XH(e){const{children:t,context:n,serverState:r,store:i}=e,a=k.useMemo(()=>{const c=GH(i);return{store:i,subscription:c,getServerState:r?()=>r:void 0}},[i,r]),s=k.useMemo(()=>i.getState(),[i]);QH(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==i.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,s]);const u=n||Bs;return k.createElement(u.Provider,{value:a},t)}var JH=XH;function H2(e=Bs){return function(){return k.useContext(e)}}var Q4=H2();function Z4(e=Bs){const t=e===Bs?Q4:H2(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var X4=Z4();function eG(e=Bs){const t=e===Bs?X4:Z4(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var tG=eG(),nG=(e,t)=>e===t;function rG(e=Bs){const t=e===Bs?Q4:H2(e),n=(r,i={})=>{const{equalityFn:a=nG}=typeof i=="function"?{equalityFn:i}:i,s=t(),{store:u,subscription:c,getServerState:f}=s;k.useRef(!0);const h=k.useCallback({[r.name](g){return r(g)}}[r.name],[r]),p=FH.useSyncExternalStoreWithSelector(c.addNestedSub,u.getState,f||u.getState,h,a);return k.useDebugValue(p),p};return Object.assign(n,{withTypes:()=>n}),n}var iG=rG(),aG=W4;/**
58
+ * react-router v7.13.1
59
+ *
60
+ * Copyright (c) Remix Software Inc.
61
+ *
62
+ * This source code is licensed under the MIT license found in the
63
+ * LICENSE.md file in the root directory of this source tree.
64
+ *
65
+ * @license MIT
66
+ */var MM="popstate";function PM(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function oG(e={}){function t(r,i){var f;let a=(f=i.state)==null?void 0:f.masked,{pathname:s,search:u,hash:c}=a||r.location;return aS("",{pathname:s,search:u,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default",a?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,i){return typeof i=="string"?i:_h(i)}return lG(t,n,null,e)}function Vt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function wi(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function sG(){return Math.random().toString(36).substring(2,10)}function NM(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function aS(e,t,n=null,r,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?yf(t):t,state:n,key:t&&t.key||r||sG(),unstable_mask:i}}function _h({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function yf(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function lG(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,u="POP",c=null,f=h();f==null&&(f=0,s.replaceState({...s.state,idx:f},""));function h(){return(s.state||{idx:null}).idx}function p(){u="POP";let w=h(),_=w==null?null:w-f;f=w,c&&c({action:u,location:b.location,delta:_})}function g(w,_){u="PUSH";let C=PM(w)?w:aS(b.location,w,_);f=h()+1;let E=NM(C,f),S=b.createHref(C.unstable_mask||C);try{s.pushState(E,"",S)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;i.location.assign(S)}a&&c&&c({action:u,location:b.location,delta:1})}function v(w,_){u="REPLACE";let C=PM(w)?w:aS(b.location,w,_);f=h();let E=NM(C,f),S=b.createHref(C.unstable_mask||C);s.replaceState(E,"",S),a&&c&&c({action:u,location:b.location,delta:0})}function y(w){return uG(w)}let b={get action(){return u},get location(){return e(i,s)},listen(w){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(MM,p),c=w,()=>{i.removeEventListener(MM,p),c=null}},createHref(w){return t(i,w)},createURL:y,encodeLocation(w){let _=y(w);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:g,replace:v,go(w){return s.go(w)}};return b}function uG(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Vt(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:_h(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function J4(e,t,n="/"){return cG(e,t,n,!1)}function cG(e,t,n,r){let i=typeof t=="string"?yf(t):t,a=vo(i.pathname||"/",n);if(a==null)return null;let s=ez(e);fG(s);let u=null;for(let c=0;u==null&&c<s.length;++c){let f=_G(a);u=wG(s[c],f,r)}return u}function ez(e,t=[],n=[],r="",i=!1){let a=(s,u,c=i,f)=>{let h={relativePath:f===void 0?s.path||"":f,caseSensitive:s.caseSensitive===!0,childrenIndex:u,route:s};if(h.relativePath.startsWith("/")){if(!h.relativePath.startsWith(r)&&c)return;Vt(h.relativePath.startsWith(r),`Absolute route path "${h.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(r.length)}let p=da([r,h.relativePath]),g=n.concat(h);s.children&&s.children.length>0&&(Vt(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),ez(s.children,t,g,p,c)),!(s.path==null&&!s.index)&&t.push({path:p,score:yG(p,s.index),routesMeta:g})};return e.forEach((s,u)=>{var c;if(s.path===""||!((c=s.path)!=null&&c.includes("?")))a(s,u);else for(let f of tz(s.path))a(s,u,!0,f)}),t}function tz(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=tz(r.join("/")),u=[];return u.push(...s.map(c=>c===""?a:[a,c].join("/"))),i&&u.push(...s),u.map(c=>e.startsWith("/")&&c===""?"/":c)}function fG(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:bG(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var dG=/^:[\w-]+$/,hG=3,pG=2,mG=1,gG=10,vG=-2,RM=e=>e==="*";function yG(e,t){let n=e.split("/"),r=n.length;return n.some(RM)&&(r+=vG),t&&(r+=pG),n.filter(i=>!RM(i)).reduce((i,a)=>i+(dG.test(a)?hG:a===""?mG:gG),r)}function bG(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function wG(e,t,n=!1){let{routesMeta:r}=e,i={},a="/",s=[];for(let u=0;u<r.length;++u){let c=r[u],f=u===r.length-1,h=a==="/"?t:t.slice(a.length)||"/",p=mv({path:c.relativePath,caseSensitive:c.caseSensitive,end:f},h),g=c.route;if(!p&&f&&n&&!r[r.length-1].route.index&&(p=mv({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},h)),!p)return null;Object.assign(i,p.params),s.push({params:i,pathname:da([a,p.pathname]),pathnameBase:kG(da([a,p.pathnameBase])),route:g}),p.pathnameBase!=="/"&&(a=da([a,p.pathnameBase]))}return s}function mv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=xG(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],s=a.replace(/(.)\/+$/,"$1"),u=i.slice(1);return{params:r.reduce((f,{paramName:h,isOptional:p},g)=>{if(h==="*"){let y=u[g]||"";s=a.slice(0,a.length-y.length).replace(/(.)\/+$/,"$1")}const v=u[g];return p&&!v?f[h]=void 0:f[h]=(v||"").replace(/%2F/g,"/"),f},{}),pathname:a,pathnameBase:s,pattern:e}}function xG(e,t=!1,n=!0){wi(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,u,c,f,h)=>{if(r.push({paramName:u,isOptional:c!=null}),c){let p=h.charAt(f+s.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function _G(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return wi(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function vo(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var SG=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function EG(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?yf(e):e,a;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?a=DM(n.substring(1),"/"):a=DM(n,t)):a=t,{pathname:a,search:CG(r),hash:OG(i)}}function DM(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function pw(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function AG(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function G2(e){let t=AG(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Iy(e,t,n,r=!1){let i;typeof e=="string"?i=yf(e):(i={...e},Vt(!i.pathname||!i.pathname.includes("?"),pw("?","pathname","search",i)),Vt(!i.pathname||!i.pathname.includes("#"),pw("#","pathname","hash",i)),Vt(!i.search||!i.search.includes("#"),pw("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,u;if(s==null)u=n;else{let p=t.length-1;if(!r&&s.startsWith("..")){let g=s.split("/");for(;g[0]==="..";)g.shift(),p-=1;i.pathname=g.join("/")}u=p>=0?t[p]:"/"}let c=EG(i,u),f=s&&s!=="/"&&s.endsWith("/"),h=(a||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(f||h)&&(c.pathname+="/"),c}var da=e=>e.join("/").replace(/\/\/+/g,"/"),kG=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),CG=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,OG=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,TG=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function MG(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function PG(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var nz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function rz(e,t){let n=e;if(typeof n!="string"||!SG.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(nz)try{let a=new URL(window.location.href),s=n.startsWith("//")?new URL(a.protocol+n):new URL(n),u=vo(s.pathname,t);s.origin===a.origin&&u!=null?n=u+s.search+s.hash:i=!0}catch{wi(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var iz=["POST","PUT","PATCH","DELETE"];new Set(iz);var NG=["GET",...iz];new Set(NG);var bf=k.createContext(null);bf.displayName="DataRouter";var Ly=k.createContext(null);Ly.displayName="DataRouterState";var RG=k.createContext(!1),az=k.createContext({isTransitioning:!1});az.displayName="ViewTransition";var DG=k.createContext(new Map);DG.displayName="Fetchers";var IG=k.createContext(null);IG.displayName="Await";var ni=k.createContext(null);ni.displayName="Navigation";var np=k.createContext(null);np.displayName="Location";var _i=k.createContext({outlet:null,matches:[],isDataRoute:!1});_i.displayName="Route";var q2=k.createContext(null);q2.displayName="RouteError";var oz="REACT_ROUTER_ERROR",LG="REDIRECT",zG="ROUTE_ERROR_RESPONSE";function jG(e){if(e.startsWith(`${oz}:${LG}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function $G(e){if(e.startsWith(`${oz}:${zG}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new TG(t.status,t.statusText,t.data)}catch{}}function BG(e,{relative:t}={}){Vt(wf(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=k.useContext(ni),{hash:i,pathname:a,search:s}=rp(e,{relative:t}),u=a;return n!=="/"&&(u=a==="/"?n:da([n,a])),r.createHref({pathname:u,search:s,hash:i})}function wf(){return k.useContext(np)!=null}function _a(){return Vt(wf(),"useLocation() may be used only in the context of a <Router> component."),k.useContext(np).location}var sz="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function lz(e){k.useContext(ni).static||k.useLayoutEffect(e)}function V2(){let{isDataRoute:e}=k.useContext(_i);return e?JG():UG()}function UG(){Vt(wf(),"useNavigate() may be used only in the context of a <Router> component.");let e=k.useContext(bf),{basename:t,navigator:n}=k.useContext(ni),{matches:r}=k.useContext(_i),{pathname:i}=_a(),a=JSON.stringify(G2(r)),s=k.useRef(!1);return lz(()=>{s.current=!0}),k.useCallback((c,f={})=>{if(wi(s.current,sz),!s.current)return;if(typeof c=="number"){n.go(c);return}let h=Iy(c,JSON.parse(a),i,f.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:da([t,h.pathname])),(f.replace?n.replace:n.push)(h,f.state,f)},[t,n,a,i,e])}var uz=k.createContext(null);function f2e(){return k.useContext(uz)}function d2e(e){let t=k.useContext(_i).outlet;return k.useMemo(()=>t&&k.createElement(uz.Provider,{value:e},t),[t,e])}function h2e(){let{matches:e}=k.useContext(_i),t=e[e.length-1];return t?t.params:{}}function rp(e,{relative:t}={}){let{matches:n}=k.useContext(_i),{pathname:r}=_a(),i=JSON.stringify(G2(n));return k.useMemo(()=>Iy(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function FG(e,t){return cz(e,t)}function cz(e,t,n){var w;Vt(wf(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=k.useContext(ni),{matches:i}=k.useContext(_i),a=i[i.length-1],s=a?a.params:{},u=a?a.pathname:"/",c=a?a.pathnameBase:"/",f=a&&a.route;{let _=f&&f.path||"";dz(u,!f||_.endsWith("*")||_.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${_}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
67
+
68
+ Please change the parent <Route path="${_}"> to <Route path="${_==="/"?"*":`${_}/*`}">.`)}let h=_a(),p;if(t){let _=typeof t=="string"?yf(t):t;Vt(c==="/"||((w=_.pathname)==null?void 0:w.startsWith(c)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${_.pathname}" was given in the \`location\` prop.`),p=_}else p=h;let g=p.pathname||"/",v=g;if(c!=="/"){let _=c.replace(/^\//,"").split("/");v="/"+g.replace(/^\//,"").split("/").slice(_.length).join("/")}let y=J4(e,{pathname:v});wi(f||y!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),wi(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=KG(y&&y.map(_=>Object.assign({},_,{params:Object.assign({},s,_.params),pathname:da([c,r.encodeLocation?r.encodeLocation(_.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?c:da([c,r.encodeLocation?r.encodeLocation(_.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:_.pathnameBase])})),i,n);return t&&b?k.createElement(np.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...p},navigationType:"POP"}},b):b}function HG(){let e=XG(),t=MG(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=k.createElement(k.Fragment,null,k.createElement("p",null,"💿 Hey developer 👋"),k.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",k.createElement("code",{style:a},"ErrorBoundary")," or"," ",k.createElement("code",{style:a},"errorElement")," prop on your route.")),k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:i},n):null,s)}var GG=k.createElement(HG,null),fz=class extends k.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||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=$G(e.digest);n&&(e=n)}let t=e!==void 0?k.createElement(_i.Provider,{value:this.props.routeContext},k.createElement(q2.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?k.createElement(qG,{error:e},t):t}};fz.contextType=RG;var mw=new WeakMap;function qG({children:e,error:t}){let{basename:n}=k.useContext(ni);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=jG(t.digest);if(r){let i=mw.get(t);if(i)throw i;let a=rz(r.location,n);if(nz&&!mw.get(t))if(a.isExternal||r.reloadDocument)window.location.href=a.absoluteURL||a.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:r.replace}));throw mw.set(t,s),s}return k.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a.absoluteURL||a.to}`})}}return e}function VG({routeContext:e,match:t,children:n}){let r=k.useContext(bf);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),k.createElement(_i.Provider,{value:e},n)}function KG(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r==null?void 0:r.errors;if(a!=null){let h=i.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);Vt(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,h+1))}let s=!1,u=-1;if(n&&r){s=r.renderFallback;for(let h=0;h<i.length;h++){let p=i[h];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(u=h),p.route.id){let{loaderData:g,errors:v}=r,y=p.route.loader&&!g.hasOwnProperty(p.route.id)&&(!v||v[p.route.id]===void 0);if(p.route.lazy||y){n.isStatic&&(s=!0),u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}}let c=n==null?void 0:n.onError,f=r&&c?(h,p)=>{var g,v;c(h,{location:r.location,params:((v=(g=r.matches)==null?void 0:g[0])==null?void 0:v.params)??{},unstable_pattern:PG(r.matches),errorInfo:p})}:void 0;return i.reduceRight((h,p,g)=>{let v,y=!1,b=null,w=null;r&&(v=a&&p.route.id?a[p.route.id]:void 0,b=p.route.errorElement||GG,s&&(u<0&&g===0?(dz("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,w=null):u===g&&(y=!0,w=p.route.hydrateFallbackElement||null)));let _=t.concat(i.slice(0,g+1)),C=()=>{let E;return v?E=b:y?E=w:p.route.Component?E=k.createElement(p.route.Component,null):p.route.element?E=p.route.element:E=h,k.createElement(VG,{match:p,routeContext:{outlet:h,matches:_,isDataRoute:r!=null},children:E})};return r&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?k.createElement(fz,{location:r.location,revalidation:r.revalidation,component:b,error:v,children:C(),routeContext:{outlet:null,matches:_,isDataRoute:!0},onError:f}):C()},null)}function K2(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function YG(e){let t=k.useContext(bf);return Vt(t,K2(e)),t}function WG(e){let t=k.useContext(Ly);return Vt(t,K2(e)),t}function QG(e){let t=k.useContext(_i);return Vt(t,K2(e)),t}function Y2(e){let t=QG(e),n=t.matches[t.matches.length-1];return Vt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function ZG(){return Y2("useRouteId")}function XG(){var r;let e=k.useContext(q2),t=WG("useRouteError"),n=Y2("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function JG(){let{router:e}=YG("useNavigate"),t=Y2("useNavigate"),n=k.useRef(!1);return lz(()=>{n.current=!0}),k.useCallback(async(i,a={})=>{wi(n.current,sz),n.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var IM={};function dz(e,t,n){!t&&!IM[e]&&(IM[e]=!0,wi(!1,n))}k.memo(eq);function eq({routes:e,future:t,state:n,isStatic:r,onError:i}){return cz(e,void 0,{state:n,isStatic:r,onError:i})}function p2e({to:e,replace:t,state:n,relative:r}){Vt(wf(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=k.useContext(ni);wi(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:a}=k.useContext(_i),{pathname:s}=_a(),u=V2(),c=Iy(e,G2(a),s,r==="path"),f=JSON.stringify(c);return k.useEffect(()=>{u(JSON.parse(f),{replace:t,state:n,relative:r})},[u,f,r,t,n]),null}function tq(e){Vt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function nq({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:a=!1,unstable_useTransitions:s}){Vt(!wf(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),c=k.useMemo(()=>({basename:u,navigator:i,static:a,unstable_useTransitions:s,future:{}}),[u,i,a,s]);typeof n=="string"&&(n=yf(n));let{pathname:f="/",search:h="",hash:p="",state:g=null,key:v="default",unstable_mask:y}=n,b=k.useMemo(()=>{let w=vo(f,u);return w==null?null:{location:{pathname:w,search:h,hash:p,state:g,key:v,unstable_mask:y},navigationType:r}},[u,f,h,p,g,v,r,y]);return wi(b!=null,`<Router basename="${u}"> is not able to match the URL "${f}${h}${p}" because it does not start with the basename, so the <Router> won't render anything.`),b==null?null:k.createElement(ni.Provider,{value:c},k.createElement(np.Provider,{children:t,value:b}))}function m2e({children:e,location:t}){return FG(oS(e),t)}function oS(e,t=[]){let n=[];return k.Children.forEach(e,(r,i)=>{if(!k.isValidElement(r))return;let a=[...t,i];if(r.type===k.Fragment){n.push.apply(n,oS(r.props.children,a));return}Vt(r.type===tq,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Vt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=oS(r.props.children,a)),n.push(s)}),n}var Jg="get",ev="application/x-www-form-urlencoded";function zy(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function rq(e){return zy(e)&&e.tagName.toLowerCase()==="button"}function iq(e){return zy(e)&&e.tagName.toLowerCase()==="form"}function aq(e){return zy(e)&&e.tagName.toLowerCase()==="input"}function oq(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sq(e,t){return e.button===0&&(!t||t==="_self")&&!oq(e)}function sS(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function lq(e,t){let n=sS(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(a=>{n.append(i,a)})}),n}var dg=null;function uq(){if(dg===null)try{new FormData(document.createElement("form"),0),dg=!1}catch{dg=!0}return dg}var cq=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function gw(e){return e!=null&&!cq.has(e)?(wi(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ev}"`),null):e}function fq(e,t){let n,r,i,a,s;if(iq(e)){let u=e.getAttribute("action");r=u?vo(u,t):null,n=e.getAttribute("method")||Jg,i=gw(e.getAttribute("enctype"))||ev,a=new FormData(e)}else if(rq(e)||aq(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||u.getAttribute("action");if(r=c?vo(c,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||Jg,i=gw(e.getAttribute("formenctype"))||gw(u.getAttribute("enctype"))||ev,a=new FormData(u,e),!uq()){let{name:f,type:h,value:p}=e;if(h==="image"){let g=f?`${f}.`:"";a.append(`${g}x`,"0"),a.append(`${g}y`,"0")}else f&&a.append(f,p)}}else{if(zy(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Jg,r=null,i=ev,s=e}return a&&i==="text/plain"&&(s=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function W2(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dq(e,t,n,r){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname==="/"?i.pathname=`_root.${r}`:t&&vo(i.pathname,t)==="/"?i.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${r}`,i}async function hq(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function pq(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function mq(e,t,n){let r=await Promise.all(e.map(async i=>{let a=t.routes[i.route.id];if(a){let s=await hq(a,n);return s.links?s.links():[]}return[]}));return bq(r.flat(1).filter(pq).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function LM(e,t,n,r,i,a){let s=(c,f)=>n[f]?c.route.id!==n[f].route.id:!0,u=(c,f)=>{var h;return n[f].pathname!==c.pathname||((h=n[f].route.path)==null?void 0:h.endsWith("*"))&&n[f].params["*"]!==c.params["*"]};return a==="assets"?t.filter((c,f)=>s(c,f)||u(c,f)):a==="data"?t.filter((c,f)=>{var p;let h=r.routes[c.route.id];if(!h||!h.hasLoader)return!1;if(s(c,f)||u(c,f))return!0;if(c.route.shouldRevalidate){let g=c.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function gq(e,t,{includeHydrateFallback:n}={}){return vq(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let a=[i.module];return i.clientActionModule&&(a=a.concat(i.clientActionModule)),i.clientLoaderModule&&(a=a.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(a=a.concat(i.hydrateFallbackModule)),i.imports&&(a=a.concat(i.imports)),a}).flat(1))}function vq(e){return[...new Set(e)]}function yq(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function bq(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let a=JSON.stringify(yq(i));return n.has(a)||(n.add(a),r.push({key:a,link:i})),r},[])}function hz(){let e=k.useContext(bf);return W2(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function wq(){let e=k.useContext(Ly);return W2(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Q2=k.createContext(void 0);Q2.displayName="FrameworkContext";function pz(){let e=k.useContext(Q2);return W2(e,"You must render this element inside a <HydratedRouter> element"),e}function xq(e,t){let n=k.useContext(Q2),[r,i]=k.useState(!1),[a,s]=k.useState(!1),{onFocus:u,onBlur:c,onMouseEnter:f,onMouseLeave:h,onTouchStart:p}=t,g=k.useRef(null);k.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let b=_=>{_.forEach(C=>{s(C.isIntersecting)})},w=new IntersectionObserver(b,{threshold:.5});return g.current&&w.observe(g.current),()=>{w.disconnect()}}},[e]),k.useEffect(()=>{if(r){let b=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(b)}}},[r]);let v=()=>{i(!0)},y=()=>{i(!1),s(!1)};return n?e!=="intent"?[a,g,{}]:[a,g,{onFocus:Pd(u,v),onBlur:Pd(c,y),onMouseEnter:Pd(f,v),onMouseLeave:Pd(h,y),onTouchStart:Pd(p,v)}]:[!1,g,{}]}function Pd(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function _q({page:e,...t}){let{router:n}=hz(),r=k.useMemo(()=>J4(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?k.createElement(Eq,{page:e,matches:r,...t}):null}function Sq(e){let{manifest:t,routeModules:n}=pz(),[r,i]=k.useState([]);return k.useEffect(()=>{let a=!1;return mq(e,t,n).then(s=>{a||i(s)}),()=>{a=!0}},[e,t,n]),r}function Eq({page:e,matches:t,...n}){let r=_a(),{future:i,manifest:a,routeModules:s}=pz(),{basename:u}=hz(),{loaderData:c,matches:f}=wq(),h=k.useMemo(()=>LM(e,t,f,a,r,"data"),[e,t,f,a,r]),p=k.useMemo(()=>LM(e,t,f,a,r,"assets"),[e,t,f,a,r]),g=k.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let b=new Set,w=!1;if(t.forEach(C=>{var S;let E=a.routes[C.route.id];!E||!E.hasLoader||(!h.some(T=>T.route.id===C.route.id)&&C.route.id in c&&((S=s[C.route.id])!=null&&S.shouldRevalidate)||E.hasClientLoader?w=!0:b.add(C.route.id))}),b.size===0)return[];let _=dq(e,u,i.unstable_trailingSlashAwareDataRequests,"data");return w&&b.size>0&&_.searchParams.set("_routes",t.filter(C=>b.has(C.route.id)).map(C=>C.route.id).join(",")),[_.pathname+_.search]},[u,i.unstable_trailingSlashAwareDataRequests,c,r,a,h,t,e,s]),v=k.useMemo(()=>gq(p,a),[p,a]),y=Sq(p);return k.createElement(k.Fragment,null,g.map(b=>k.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...n})),v.map(b=>k.createElement("link",{key:b,rel:"modulepreload",href:b,...n})),y.map(({key:b,link:w})=>k.createElement("link",{key:b,nonce:n.nonce,...w,crossOrigin:w.crossOrigin??n.crossOrigin})))}function Aq(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var kq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{kq&&(window.__reactRouterVersion="7.13.1")}catch{}function g2e({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=k.useRef();i.current==null&&(i.current=oG({window:r,v5Compat:!0}));let a=i.current,[s,u]=k.useState({action:a.action,location:a.location}),c=k.useCallback(f=>{n===!1?u(f):k.startTransition(()=>u(f))},[n]);return k.useLayoutEffect(()=>a.listen(c),[a,c]),k.createElement(nq,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a,unstable_useTransitions:n})}var mz=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gz=k.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:a,replace:s,unstable_mask:u,state:c,target:f,to:h,preventScrollReset:p,viewTransition:g,unstable_defaultShouldRevalidate:v,...y},b){let{basename:w,navigator:_,unstable_useTransitions:C}=k.useContext(ni),E=typeof h=="string"&&mz.test(h),S=rz(h,w);h=S.to;let T=BG(h,{relative:i}),O=_a(),M=null;if(u){let U=Iy(u,[],O.unstable_mask?O.unstable_mask.pathname:"/",!0);w!=="/"&&(U.pathname=U.pathname==="/"?w:da([w,U.pathname])),M=_.createHref(U)}let[P,R,z]=xq(r,y),D=Mq(h,{replace:s,unstable_mask:u,state:c,target:f,preventScrollReset:p,relative:i,viewTransition:g,unstable_defaultShouldRevalidate:v,unstable_useTransitions:C});function N(U){t&&t(U),U.defaultPrevented||D(U)}let $=!(S.isExternal||a),I=k.createElement("a",{...y,...z,href:($?M:void 0)||S.absoluteURL||T,onClick:$?N:t,ref:Aq(b,R),target:f,"data-discover":!E&&n==="render"?"true":void 0});return P&&!E?k.createElement(k.Fragment,null,I,k.createElement(_q,{page:T})):I});gz.displayName="Link";var Cq=k.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:a,to:s,viewTransition:u,children:c,...f},h){let p=rp(s,{relative:f.relative}),g=_a(),v=k.useContext(Ly),{navigator:y,basename:b}=k.useContext(ni),w=v!=null&&Iq(p)&&u===!0,_=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,C=g.pathname,E=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(C=C.toLowerCase(),E=E?E.toLowerCase():null,_=_.toLowerCase()),E&&b&&(E=vo(E,b)||E);const S=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let T=C===_||!i&&C.startsWith(_)&&C.charAt(S)==="/",O=E!=null&&(E===_||!i&&E.startsWith(_)&&E.charAt(_.length)==="/"),M={isActive:T,isPending:O,isTransitioning:w},P=T?t:void 0,R;typeof r=="function"?R=r(M):R=[r,T?"active":null,O?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let z=typeof a=="function"?a(M):a;return k.createElement(gz,{...f,"aria-current":P,className:R,ref:h,style:z,to:s,viewTransition:u},typeof c=="function"?c(M):c)});Cq.displayName="NavLink";var Oq=k.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:s=Jg,action:u,onSubmit:c,relative:f,preventScrollReset:h,viewTransition:p,unstable_defaultShouldRevalidate:g,...v},y)=>{let{unstable_useTransitions:b}=k.useContext(ni),w=Rq(),_=Dq(u,{relative:f}),C=s.toLowerCase()==="get"?"get":"post",E=typeof u=="string"&&mz.test(u),S=T=>{if(c&&c(T),T.defaultPrevented)return;T.preventDefault();let O=T.nativeEvent.submitter,M=(O==null?void 0:O.getAttribute("formmethod"))||s,P=()=>w(O||T.currentTarget,{fetcherKey:t,method:M,navigate:n,replace:i,state:a,relative:f,preventScrollReset:h,viewTransition:p,unstable_defaultShouldRevalidate:g});b&&n!==!1?k.startTransition(()=>P()):P()};return k.createElement("form",{ref:y,method:C,action:_,onSubmit:r?c:S,...v,"data-discover":!E&&e==="render"?"true":void 0})});Oq.displayName="Form";function Tq(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function vz(e){let t=k.useContext(bf);return Vt(t,Tq(e)),t}function Mq(e,{target:t,replace:n,unstable_mask:r,state:i,preventScrollReset:a,relative:s,viewTransition:u,unstable_defaultShouldRevalidate:c,unstable_useTransitions:f}={}){let h=V2(),p=_a(),g=rp(e,{relative:s});return k.useCallback(v=>{if(sq(v,t)){v.preventDefault();let y=n!==void 0?n:_h(p)===_h(g),b=()=>h(e,{replace:y,unstable_mask:r,state:i,preventScrollReset:a,relative:s,viewTransition:u,unstable_defaultShouldRevalidate:c});f?k.startTransition(()=>b()):b()}},[p,h,g,n,r,i,t,e,a,s,u,c,f])}function v2e(e){wi(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=k.useRef(sS(e)),n=k.useRef(!1),r=_a(),i=k.useMemo(()=>lq(r.search,n.current?null:t.current),[r.search]),a=V2(),s=k.useCallback((u,c)=>{const f=sS(typeof u=="function"?u(new URLSearchParams(i)):u);n.current=!0,a("?"+f,c)},[a,i]);return[i,s]}var Pq=0,Nq=()=>`__${String(++Pq)}__`;function Rq(){let{router:e}=vz("useSubmit"),{basename:t}=k.useContext(ni),n=ZG(),r=e.fetch,i=e.navigate;return k.useCallback(async(a,s={})=>{let{action:u,method:c,encType:f,formData:h,body:p}=fq(a,t);if(s.navigate===!1){let g=s.fetcherKey||Nq();await r(g,n,s.action||u,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:h,body:p,formMethod:s.method||c,formEncType:s.encType||f,flushSync:s.flushSync})}else await i(s.action||u,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:h,body:p,formMethod:s.method||c,formEncType:s.encType||f,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[r,i,t,n])}function Dq(e,{relative:t}={}){let{basename:n}=k.useContext(ni),r=k.useContext(_i);Vt(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),a={...rp(e||".",{relative:t})},s=_a();if(e==null){a.search=s.search;let u=new URLSearchParams(a.search),c=u.getAll("index");if(c.some(h=>h==="")){u.delete("index"),c.filter(p=>p).forEach(p=>u.append("index",p));let h=u.toString();a.search=h?`?${h}`:""}}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:da([n,a.pathname])),_h(a)}function Iq(e,{relative:t}={}){let n=k.useContext(az);Vt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=vz("useViewTransitionState"),i=rp(e,{relative:t});if(!n.isTransitioning)return!1;let a=vo(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=vo(n.nextLocation.pathname,r)||n.nextLocation.pathname;return mv(i.pathname,s)!=null||mv(i.pathname,a)!=null}var jy=D4();const y2e=ti(jy);var gv=function(){return gv=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},gv.apply(this,arguments)};function Lq(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function b2e(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function vw(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function zq(e,t){var n=k.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var jq=typeof window<"u"?k.useLayoutEffect:k.useEffect,zM=new WeakMap;function w2e(e,t){var n=zq(null,function(r){return e.forEach(function(i){return vw(i,r)})});return jq(function(){var r=zM.get(n);if(r){var i=new Set(r),a=new Set(e),s=n.current;i.forEach(function(u){a.has(u)||vw(u,null)}),a.forEach(function(u){i.has(u)||vw(u,s)})}zM.set(n,e)},[e]),n}function $q(e){return e}function Bq(e,t){t===void 0&&(t=$q);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(u){return u!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(u){return a(u)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var u=n;n=[],u.forEach(a),s=n}var c=function(){var h=s;s=[],h.forEach(a)},f=function(){return Promise.resolve().then(c)};f(),n={push:function(h){s.push(h),f()},filter:function(h){return s=s.filter(h),n}}}};return i}function x2e(e){e===void 0&&(e={});var t=Bq(null);return t.options=gv({async:!0,ssr:!1},e),t}var yz=function(e){var t=e.sideCar,n=Lq(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return k.createElement(r,gv({},n))};yz.isSideCarExport=!0;function _2e(e,t){return e.useMedium(t),yz}var Uq=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Fq(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Uq();return t&&e.setAttribute("nonce",t),e}function Hq(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Gq(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var qq=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Fq())&&(Hq(t,n),Gq(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Vq=function(){var e=qq();return function(t,n){k.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},S2e=function(){var e=Vq(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},Kq=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ac=new WeakMap,hg=new WeakMap,pg={},yw=0,bz=function(e){return e&&(e.host||bz(e.parentNode))},Yq=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=bz(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Wq=function(e,t,n,r){var i=Yq(t,Array.isArray(e)?e:[e]);pg[n]||(pg[n]=new WeakMap);var a=pg[n],s=[],u=new Set,c=new Set(i),f=function(p){!p||u.has(p)||(u.add(p),f(p.parentNode))};i.forEach(f);var h=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(g){if(u.has(g))h(g);else try{var v=g.getAttribute(r),y=v!==null&&v!=="false",b=(ac.get(g)||0)+1,w=(a.get(g)||0)+1;ac.set(g,b),a.set(g,w),s.push(g),b===1&&y&&hg.set(g,!0),w===1&&g.setAttribute(n,"true"),y||g.setAttribute(r,"true")}catch(_){console.error("aria-hidden: cannot operate on ",g,_)}})};return h(t),u.clear(),yw++,function(){s.forEach(function(p){var g=ac.get(p)-1,v=a.get(p)-1;ac.set(p,g),a.set(p,v),g||(hg.has(p)||p.removeAttribute(r),hg.delete(p)),v||p.removeAttribute(n)}),yw--,yw||(ac=new WeakMap,ac=new WeakMap,hg=new WeakMap,pg={})}},E2e=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=Kq(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),Wq(r,i,n,"aria-hidden")):function(){return null}};/**
69
+ * @license lucide-react v0.525.0 - ISC
70
+ *
71
+ * This source code is licensed under the ISC license.
72
+ * See the LICENSE file in the root directory of this source tree.
73
+ */const Qq=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Zq=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),jM=e=>{const t=Zq(e);return t.charAt(0).toUpperCase()+t.slice(1)},wz=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Xq=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
74
+ * @license lucide-react v0.525.0 - ISC
75
+ *
76
+ * This source code is licensed under the ISC license.
77
+ * See the LICENSE file in the root directory of this source tree.
78
+ */var Jq={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
79
+ * @license lucide-react v0.525.0 - ISC
80
+ *
81
+ * This source code is licensed under the ISC license.
82
+ * See the LICENSE file in the root directory of this source tree.
83
+ */const eV=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:a,iconNode:s,...u},c)=>k.createElement("svg",{ref:c,...Jq,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:wz("lucide",i),...!a&&!Xq(u)&&{"aria-hidden":"true"},...u},[...s.map(([f,h])=>k.createElement(f,h)),...Array.isArray(a)?a:[a]]));/**
84
+ * @license lucide-react v0.525.0 - ISC
85
+ *
86
+ * This source code is licensed under the ISC license.
87
+ * See the LICENSE file in the root directory of this source tree.
88
+ */const ue=(e,t)=>{const n=k.forwardRef(({className:r,...i},a)=>k.createElement(eV,{ref:a,iconNode:t,className:wz(`lucide-${Qq(jM(e))}`,`lucide-${e}`,r),...i}));return n.displayName=jM(e),n};/**
89
+ * @license lucide-react v0.525.0 - ISC
90
+ *
91
+ * This source code is licensed under the ISC license.
92
+ * See the LICENSE file in the root directory of this source tree.
93
+ */const tV=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],A2e=ue("activity",tV);/**
94
+ * @license lucide-react v0.525.0 - ISC
95
+ *
96
+ * This source code is licensed under the ISC license.
97
+ * See the LICENSE file in the root directory of this source tree.
98
+ */const nV=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h2",key:"tvwodi"}],["path",{d:"M20 8v11a2 2 0 0 1-2 2h-2",key:"1gkqxj"}],["path",{d:"m9 15 3-3 3 3",key:"1pd0qc"}],["path",{d:"M12 12v9",key:"192myk"}]],k2e=ue("archive-restore",nV);/**
99
+ * @license lucide-react v0.525.0 - ISC
100
+ *
101
+ * This source code is licensed under the ISC license.
102
+ * See the LICENSE file in the root directory of this source tree.
103
+ */const rV=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],C2e=ue("archive",rV);/**
104
+ * @license lucide-react v0.525.0 - ISC
105
+ *
106
+ * This source code is licensed under the ISC license.
107
+ * See the LICENSE file in the root directory of this source tree.
108
+ */const iV=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],O2e=ue("arrow-down",iV);/**
109
+ * @license lucide-react v0.525.0 - ISC
110
+ *
111
+ * This source code is licensed under the ISC license.
112
+ * See the LICENSE file in the root directory of this source tree.
113
+ */const aV=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],T2e=ue("arrow-left",aV);/**
114
+ * @license lucide-react v0.525.0 - ISC
115
+ *
116
+ * This source code is licensed under the ISC license.
117
+ * See the LICENSE file in the root directory of this source tree.
118
+ */const oV=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],M2e=ue("arrow-right",oV);/**
119
+ * @license lucide-react v0.525.0 - ISC
120
+ *
121
+ * This source code is licensed under the ISC license.
122
+ * See the LICENSE file in the root directory of this source tree.
123
+ */const sV=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],P2e=ue("arrow-up-right",sV);/**
124
+ * @license lucide-react v0.525.0 - ISC
125
+ *
126
+ * This source code is licensed under the ISC license.
127
+ * See the LICENSE file in the root directory of this source tree.
128
+ */const lV=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],N2e=ue("arrow-up",lV);/**
129
+ * @license lucide-react v0.525.0 - ISC
130
+ *
131
+ * This source code is licensed under the ISC license.
132
+ * See the LICENSE file in the root directory of this source tree.
133
+ */const uV=[["path",{d:"m11 7-3 5h4l-3 5",key:"b4a64w"}],["path",{d:"M14.856 6H16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.935",key:"lre1cr"}],["path",{d:"M22 14v-4",key:"14q9d5"}],["path",{d:"M5.14 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2.936",key:"13q5k0"}]],R2e=ue("battery-charging",uV);/**
134
+ * @license lucide-react v0.525.0 - ISC
135
+ *
136
+ * This source code is licensed under the ISC license.
137
+ * See the LICENSE file in the root directory of this source tree.
138
+ */const cV=[["path",{d:"M2 16V4a2 2 0 0 1 2-2h11",key:"spzkk5"}],["path",{d:"M22 18H11a2 2 0 1 0 0 4h10.5a.5.5 0 0 0 .5-.5v-15a.5.5 0 0 0-.5-.5H11a2 2 0 0 0-2 2v12",key:"1wz07i"}],["path",{d:"M5 14H4a2 2 0 1 0 0 4h1",key:"16gqf9"}]],D2e=ue("book-copy",cV);/**
139
+ * @license lucide-react v0.525.0 - ISC
140
+ *
141
+ * This source code is licensed under the ISC license.
142
+ * See the LICENSE file in the root directory of this source tree.
143
+ */const fV=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],I2e=ue("bot",fV);/**
144
+ * @license lucide-react v0.525.0 - ISC
145
+ *
146
+ * This source code is licensed under the ISC license.
147
+ * See the LICENSE file in the root directory of this source tree.
148
+ */const dV=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],L2e=ue("braces",dV);/**
149
+ * @license lucide-react v0.525.0 - ISC
150
+ *
151
+ * This source code is licensed under the ISC license.
152
+ * See the LICENSE file in the root directory of this source tree.
153
+ */const hV=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],z2e=ue("brain-circuit",hV);/**
154
+ * @license lucide-react v0.525.0 - ISC
155
+ *
156
+ * This source code is licensed under the ISC license.
157
+ * See the LICENSE file in the root directory of this source tree.
158
+ */const pV=[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],j2e=ue("briefcase-business",pV);/**
159
+ * @license lucide-react v0.525.0 - ISC
160
+ *
161
+ * This source code is licensed under the ISC license.
162
+ * See the LICENSE file in the root directory of this source tree.
163
+ */const mV=[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]],$2e=ue("bug",mV);/**
164
+ * @license lucide-react v0.525.0 - ISC
165
+ *
166
+ * This source code is licensed under the ISC license.
167
+ * See the LICENSE file in the root directory of this source tree.
168
+ */const gV=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],B2e=ue("calendar-days",gV);/**
169
+ * @license lucide-react v0.525.0 - ISC
170
+ *
171
+ * This source code is licensed under the ISC license.
172
+ * See the LICENSE file in the root directory of this source tree.
173
+ */const vV=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],U2e=ue("chart-column",vV);/**
174
+ * @license lucide-react v0.525.0 - ISC
175
+ *
176
+ * This source code is licensed under the ISC license.
177
+ * See the LICENSE file in the root directory of this source tree.
178
+ */const yV=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],F2e=ue("check-check",yV);/**
179
+ * @license lucide-react v0.525.0 - ISC
180
+ *
181
+ * This source code is licensed under the ISC license.
182
+ * See the LICENSE file in the root directory of this source tree.
183
+ */const bV=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],H2e=ue("check",bV);/**
184
+ * @license lucide-react v0.525.0 - ISC
185
+ *
186
+ * This source code is licensed under the ISC license.
187
+ * See the LICENSE file in the root directory of this source tree.
188
+ */const wV=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],G2e=ue("chevron-down",wV);/**
189
+ * @license lucide-react v0.525.0 - ISC
190
+ *
191
+ * This source code is licensed under the ISC license.
192
+ * See the LICENSE file in the root directory of this source tree.
193
+ */const xV=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],q2e=ue("chevron-right",xV);/**
194
+ * @license lucide-react v0.525.0 - ISC
195
+ *
196
+ * This source code is licensed under the ISC license.
197
+ * See the LICENSE file in the root directory of this source tree.
198
+ */const _V=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],V2e=ue("chevron-up",_V);/**
199
+ * @license lucide-react v0.525.0 - ISC
200
+ *
201
+ * This source code is licensed under the ISC license.
202
+ * See the LICENSE file in the root directory of this source tree.
203
+ */const SV=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],K2e=ue("chevrons-left",SV);/**
204
+ * @license lucide-react v0.525.0 - ISC
205
+ *
206
+ * This source code is licensed under the ISC license.
207
+ * See the LICENSE file in the root directory of this source tree.
208
+ */const EV=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],Y2e=ue("chevrons-right",EV);/**
209
+ * @license lucide-react v0.525.0 - ISC
210
+ *
211
+ * This source code is licensed under the ISC license.
212
+ * See the LICENSE file in the root directory of this source tree.
213
+ */const AV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],W2e=ue("circle-alert",AV);/**
214
+ * @license lucide-react v0.525.0 - ISC
215
+ *
216
+ * This source code is licensed under the ISC license.
217
+ * See the LICENSE file in the root directory of this source tree.
218
+ */const kV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Q2e=ue("circle-check",kV);/**
219
+ * @license lucide-react v0.525.0 - ISC
220
+ *
221
+ * This source code is licensed under the ISC license.
222
+ * See the LICENSE file in the root directory of this source tree.
223
+ */const CV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],Z2e=ue("circle-pause",CV);/**
224
+ * @license lucide-react v0.525.0 - ISC
225
+ *
226
+ * This source code is licensed under the ISC license.
227
+ * See the LICENSE file in the root directory of this source tree.
228
+ */const OV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],X2e=ue("circle-question-mark",OV);/**
229
+ * @license lucide-react v0.525.0 - ISC
230
+ *
231
+ * This source code is licensed under the ISC license.
232
+ * See the LICENSE file in the root directory of this source tree.
233
+ */const TV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],J2e=ue("circle-x",TV);/**
234
+ * @license lucide-react v0.525.0 - ISC
235
+ *
236
+ * This source code is licensed under the ISC license.
237
+ * See the LICENSE file in the root directory of this source tree.
238
+ */const MV=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],eEe=ue("clipboard-list",MV);/**
239
+ * @license lucide-react v0.525.0 - ISC
240
+ *
241
+ * This source code is licensed under the ISC license.
242
+ * See the LICENSE file in the root directory of this source tree.
243
+ */const PV=[["path",{d:"M11 14h10",key:"1w8e9d"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v1.344",key:"1e62lh"}],["path",{d:"m17 18 4-4-4-4",key:"z2g111"}],["path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113",key:"bjbb7m"}],["rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",key:"ublpy"}]],tEe=ue("clipboard-paste",PV);/**
244
+ * @license lucide-react v0.525.0 - ISC
245
+ *
246
+ * This source code is licensed under the ISC license.
247
+ * See the LICENSE file in the root directory of this source tree.
248
+ */const NV=[["path",{d:"M12 6v6h4",key:"135r8i"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],nEe=ue("clock-3",NV);/**
249
+ * @license lucide-react v0.525.0 - ISC
250
+ *
251
+ * This source code is licensed under the ISC license.
252
+ * See the LICENSE file in the root directory of this source tree.
253
+ */const RV=[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}],["path",{d:"M15.947 12.65a4 4 0 0 0-5.925-4.128",key:"dpwdj0"}],["path",{d:"M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z",key:"s09mg5"}]],rEe=ue("cloud-sun",RV);/**
254
+ * @license lucide-react v0.525.0 - ISC
255
+ *
256
+ * This source code is licensed under the ISC license.
257
+ * See the LICENSE file in the root directory of this source tree.
258
+ */const DV=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],iEe=ue("cloud-upload",DV);/**
259
+ * @license lucide-react v0.525.0 - ISC
260
+ *
261
+ * This source code is licensed under the ISC license.
262
+ * See the LICENSE file in the root directory of this source tree.
263
+ */const IV=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],aEe=ue("cloud",IV);/**
264
+ * @license lucide-react v0.525.0 - ISC
265
+ *
266
+ * This source code is licensed under the ISC license.
267
+ * See the LICENSE file in the root directory of this source tree.
268
+ */const LV=[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]],oEe=ue("coffee",LV);/**
269
+ * @license lucide-react v0.525.0 - ISC
270
+ *
271
+ * This source code is licensed under the ISC license.
272
+ * See the LICENSE file in the root directory of this source tree.
273
+ */const zV=[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],sEe=ue("compass",zV);/**
274
+ * @license lucide-react v0.525.0 - ISC
275
+ *
276
+ * This source code is licensed under the ISC license.
277
+ * See the LICENSE file in the root directory of this source tree.
278
+ */const jV=[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],lEe=ue("copy-plus",jV);/**
279
+ * @license lucide-react v0.525.0 - ISC
280
+ *
281
+ * This source code is licensed under the ISC license.
282
+ * See the LICENSE file in the root directory of this source tree.
283
+ */const $V=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],uEe=ue("copy",$V);/**
284
+ * @license lucide-react v0.525.0 - ISC
285
+ *
286
+ * This source code is licensed under the ISC license.
287
+ * See the LICENSE file in the root directory of this source tree.
288
+ */const BV=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],cEe=ue("cpu",BV);/**
289
+ * @license lucide-react v0.525.0 - ISC
290
+ *
291
+ * This source code is licensed under the ISC license.
292
+ * See the LICENSE file in the root directory of this source tree.
293
+ */const UV=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]],fEe=ue("crosshair",UV);/**
294
+ * @license lucide-react v0.525.0 - ISC
295
+ *
296
+ * This source code is licensed under the ISC license.
297
+ * See the LICENSE file in the root directory of this source tree.
298
+ */const FV=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 15 21.84",key:"14ibmq"}],["path",{d:"M21 5V8",key:"1marbg"}],["path",{d:"M21 12L18 17H22L19 22",key:"zafso"}],["path",{d:"M3 12A9 3 0 0 0 14.59 14.87",key:"1y4wr8"}]],dEe=ue("database-zap",FV);/**
299
+ * @license lucide-react v0.525.0 - ISC
300
+ *
301
+ * This source code is licensed under the ISC license.
302
+ * See the LICENSE file in the root directory of this source tree.
303
+ */const HV=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],hEe=ue("database",HV);/**
304
+ * @license lucide-react v0.525.0 - ISC
305
+ *
306
+ * This source code is licensed under the ISC license.
307
+ * See the LICENSE file in the root directory of this source tree.
308
+ */const GV=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],pEe=ue("download",GV);/**
309
+ * @license lucide-react v0.525.0 - ISC
310
+ *
311
+ * This source code is licensed under the ISC license.
312
+ * See the LICENSE file in the root directory of this source tree.
313
+ */const qV=[["path",{d:"M17.596 12.768a2 2 0 1 0 2.829-2.829l-1.768-1.767a2 2 0 0 0 2.828-2.829l-2.828-2.828a2 2 0 0 0-2.829 2.828l-1.767-1.768a2 2 0 1 0-2.829 2.829z",key:"9m4mmf"}],["path",{d:"m2.5 21.5 1.4-1.4",key:"17g3f0"}],["path",{d:"m20.1 3.9 1.4-1.4",key:"1qn309"}],["path",{d:"M5.343 21.485a2 2 0 1 0 2.829-2.828l1.767 1.768a2 2 0 1 0 2.829-2.829l-6.364-6.364a2 2 0 1 0-2.829 2.829l1.768 1.767a2 2 0 0 0-2.828 2.829z",key:"1t2c92"}],["path",{d:"m9.6 14.4 4.8-4.8",key:"6umqxw"}]],mEe=ue("dumbbell",qV);/**
314
+ * @license lucide-react v0.525.0 - ISC
315
+ *
316
+ * This source code is licensed under the ISC license.
317
+ * See the LICENSE file in the root directory of this source tree.
318
+ */const VV=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],gEe=ue("ellipsis",VV);/**
319
+ * @license lucide-react v0.525.0 - ISC
320
+ *
321
+ * This source code is licensed under the ISC license.
322
+ * See the LICENSE file in the root directory of this source tree.
323
+ */const KV=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],vEe=ue("external-link",KV);/**
324
+ * @license lucide-react v0.525.0 - ISC
325
+ *
326
+ * This source code is licensed under the ISC license.
327
+ * See the LICENSE file in the root directory of this source tree.
328
+ */const YV=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],yEe=ue("eye-off",YV);/**
329
+ * @license lucide-react v0.525.0 - ISC
330
+ *
331
+ * This source code is licensed under the ISC license.
332
+ * See the LICENSE file in the root directory of this source tree.
333
+ */const WV=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],bEe=ue("eye",WV);/**
334
+ * @license lucide-react v0.525.0 - ISC
335
+ *
336
+ * This source code is licensed under the ISC license.
337
+ * See the LICENSE file in the root directory of this source tree.
338
+ */const QV=[["path",{d:"M10 12v-1",key:"v7bkov"}],["path",{d:"M10 18v-2",key:"1cjy8d"}],["path",{d:"M10 7V6",key:"dljcrl"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v16a2 2 0 0 0 .274 1.01",key:"gkbcor"}],["circle",{cx:"10",cy:"20",r:"2",key:"1xzdoj"}]],wEe=ue("file-archive",QV);/**
339
+ * @license lucide-react v0.525.0 - ISC
340
+ *
341
+ * This source code is licensed under the ISC license.
342
+ * See the LICENSE file in the root directory of this source tree.
343
+ */const ZV=[["path",{d:"M21 7h-3a2 2 0 0 1-2-2V2",key:"9rb54x"}],["path",{d:"M21 6v6.5c0 .8-.7 1.5-1.5 1.5h-7c-.8 0-1.5-.7-1.5-1.5v-9c0-.8.7-1.5 1.5-1.5H17Z",key:"1059l0"}],["path",{d:"M7 8v8.8c0 .3.2.6.4.8.2.2.5.4.8.4H15",key:"16874u"}],["path",{d:"M3 12v8.8c0 .3.2.6.4.8.2.2.5.4.8.4H11",key:"k2ox98"}]],xEe=ue("file-stack",ZV);/**
344
+ * @license lucide-react v0.525.0 - ISC
345
+ *
346
+ * This source code is licensed under the ISC license.
347
+ * See the LICENSE file in the root directory of this source tree.
348
+ */const XV=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],_Ee=ue("file-text",XV);/**
349
+ * @license lucide-react v0.525.0 - ISC
350
+ *
351
+ * This source code is licensed under the ISC license.
352
+ * See the LICENSE file in the root directory of this source tree.
353
+ */const JV=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],SEe=ue("flame",JV);/**
354
+ * @license lucide-react v0.525.0 - ISC
355
+ *
356
+ * This source code is licensed under the ISC license.
357
+ * See the LICENSE file in the root directory of this source tree.
358
+ */const eK=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],EEe=ue("folder-open",eK);/**
359
+ * @license lucide-react v0.525.0 - ISC
360
+ *
361
+ * This source code is licensed under the ISC license.
362
+ * See the LICENSE file in the root directory of this source tree.
363
+ */const tK=[["path",{d:"M10.7 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v4.1",key:"1bw5m7"}],["path",{d:"m21 21-1.9-1.9",key:"1g2n9r"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}]],AEe=ue("folder-search",tK);/**
364
+ * @license lucide-react v0.525.0 - ISC
365
+ *
366
+ * This source code is licensed under the ISC license.
367
+ * See the LICENSE file in the root directory of this source tree.
368
+ */const nK=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 16s-1.5-2-4-2-4 2-4 2",key:"epbg0q"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],kEe=ue("frown",nK);/**
369
+ * @license lucide-react v0.525.0 - ISC
370
+ *
371
+ * This source code is licensed under the ISC license.
372
+ * See the LICENSE file in the root directory of this source tree.
373
+ */const rK=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],CEe=ue("funnel",rK);/**
374
+ * @license lucide-react v0.525.0 - ISC
375
+ *
376
+ * This source code is licensed under the ISC license.
377
+ * See the LICENSE file in the root directory of this source tree.
378
+ */const iK=[["path",{d:"M6 3v12",key:"qpgusn"}],["path",{d:"M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"1d02ji"}],["path",{d:"M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"chk6ph"}],["path",{d:"M15 6a9 9 0 0 0-9 9",key:"or332x"}],["path",{d:"M18 15v6",key:"9wciyi"}],["path",{d:"M21 18h-6",key:"139f0c"}]],OEe=ue("git-branch-plus",iK);/**
379
+ * @license lucide-react v0.525.0 - ISC
380
+ *
381
+ * This source code is licensed under the ISC license.
382
+ * See the LICENSE file in the root directory of this source tree.
383
+ */const aK=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],TEe=ue("git-branch",aK);/**
384
+ * @license lucide-react v0.525.0 - ISC
385
+ *
386
+ * This source code is licensed under the ISC license.
387
+ * See the LICENSE file in the root directory of this source tree.
388
+ */const oK=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],MEe=ue("git-merge",oK);/**
389
+ * @license lucide-react v0.525.0 - ISC
390
+ *
391
+ * This source code is licensed under the ISC license.
392
+ * See the LICENSE file in the root directory of this source tree.
393
+ */const sK=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],PEe=ue("globe",sK);/**
394
+ * @license lucide-react v0.525.0 - ISC
395
+ *
396
+ * This source code is licensed under the ISC license.
397
+ * See the LICENSE file in the root directory of this source tree.
398
+ */const lK=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],NEe=ue("grip-vertical",lK);/**
399
+ * @license lucide-react v0.525.0 - ISC
400
+ *
401
+ * This source code is licensed under the ISC license.
402
+ * See the LICENSE file in the root directory of this source tree.
403
+ */const uK=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],REe=ue("hard-drive",uK);/**
404
+ * @license lucide-react v0.525.0 - ISC
405
+ *
406
+ * This source code is licensed under the ISC license.
407
+ * See the LICENSE file in the root directory of this source tree.
408
+ */const cK=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66",key:"4oyue0"}],["path",{d:"m18 15-2-2",key:"60u0ii"}],["path",{d:"m15 18-2-2",key:"6p76be"}]],DEe=ue("heart-handshake",cK);/**
409
+ * @license lucide-react v0.525.0 - ISC
410
+ *
411
+ * This source code is licensed under the ISC license.
412
+ * See the LICENSE file in the root directory of this source tree.
413
+ */const fK=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M3.22 12H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"1uw2ng"}]],IEe=ue("heart-pulse",fK);/**
414
+ * @license lucide-react v0.525.0 - ISC
415
+ *
416
+ * This source code is licensed under the ISC license.
417
+ * See the LICENSE file in the root directory of this source tree.
418
+ */const dK=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],LEe=ue("heart",dK);/**
419
+ * @license lucide-react v0.525.0 - ISC
420
+ *
421
+ * This source code is licensed under the ISC license.
422
+ * See the LICENSE file in the root directory of this source tree.
423
+ */const hK=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],zEe=ue("history",hK);/**
424
+ * @license lucide-react v0.525.0 - ISC
425
+ *
426
+ * This source code is licensed under the ISC license.
427
+ * See the LICENSE file in the root directory of this source tree.
428
+ */const pK=[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],jEe=ue("image-plus",pK);/**
429
+ * @license lucide-react v0.525.0 - ISC
430
+ *
431
+ * This source code is licensed under the ISC license.
432
+ * See the LICENSE file in the root directory of this source tree.
433
+ */const mK=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],$Ee=ue("key-round",mK);/**
434
+ * @license lucide-react v0.525.0 - ISC
435
+ *
436
+ * This source code is licensed under the ISC license.
437
+ * See the LICENSE file in the root directory of this source tree.
438
+ */const gK=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],BEe=ue("layers",gK);/**
439
+ * @license lucide-react v0.525.0 - ISC
440
+ *
441
+ * This source code is licensed under the ISC license.
442
+ * See the LICENSE file in the root directory of this source tree.
443
+ */const vK=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],UEe=ue("layout-dashboard",vK);/**
444
+ * @license lucide-react v0.525.0 - ISC
445
+ *
446
+ * This source code is licensed under the ISC license.
447
+ * See the LICENSE file in the root directory of this source tree.
448
+ */const yK=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],FEe=ue("layout-grid",yK);/**
449
+ * @license lucide-react v0.525.0 - ISC
450
+ *
451
+ * This source code is licensed under the ISC license.
452
+ * See the LICENSE file in the root directory of this source tree.
453
+ */const bK=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]],HEe=ue("layout-template",bK);/**
454
+ * @license lucide-react v0.525.0 - ISC
455
+ *
456
+ * This source code is licensed under the ISC license.
457
+ * See the LICENSE file in the root directory of this source tree.
458
+ */const wK=[["rect",{width:"8",height:"18",x:"3",y:"3",rx:"1",key:"oynpb5"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M20.4 18.9c.2.5-.1 1.1-.6 1.3l-1.9.7c-.5.2-1.1-.1-1.3-.6L11.1 5.1c-.2-.5.1-1.1.6-1.3l1.9-.7c.5-.2 1.1.1 1.3.6Z",key:"1qboyk"}]],GEe=ue("library-big",wK);/**
459
+ * @license lucide-react v0.525.0 - ISC
460
+ *
461
+ * This source code is licensed under the ISC license.
462
+ * See the LICENSE file in the root directory of this source tree.
463
+ */const xK=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],qEe=ue("link-2",xK);/**
464
+ * @license lucide-react v0.525.0 - ISC
465
+ *
466
+ * This source code is licensed under the ISC license.
467
+ * See the LICENSE file in the root directory of this source tree.
468
+ */const _K=[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]],VEe=ue("list-checks",_K);/**
469
+ * @license lucide-react v0.525.0 - ISC
470
+ *
471
+ * This source code is licensed under the ISC license.
472
+ * See the LICENSE file in the root directory of this source tree.
473
+ */const SK=[["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M16 18H3",key:"12xzn7"}],["path",{d:"M18 9v6",key:"1twb98"}],["path",{d:"M21 12h-6",key:"bt1uis"}]],KEe=ue("list-plus",SK);/**
474
+ * @license lucide-react v0.525.0 - ISC
475
+ *
476
+ * This source code is licensed under the ISC license.
477
+ * See the LICENSE file in the root directory of this source tree.
478
+ */const EK=[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]],YEe=ue("list-todo",EK);/**
479
+ * @license lucide-react v0.525.0 - ISC
480
+ *
481
+ * This source code is licensed under the ISC license.
482
+ * See the LICENSE file in the root directory of this source tree.
483
+ */const AK=[["path",{d:"M21 12h-8",key:"1bmf0i"}],["path",{d:"M21 6H8",key:"1pqkrb"}],["path",{d:"M21 18h-8",key:"1tm79t"}],["path",{d:"M3 6v4c0 1.1.9 2 2 2h3",key:"1ywdgy"}],["path",{d:"M3 10v6c0 1.1.9 2 2 2h3",key:"2wc746"}]],WEe=ue("list-tree",AK);/**
484
+ * @license lucide-react v0.525.0 - ISC
485
+ *
486
+ * This source code is licensed under the ISC license.
487
+ * See the LICENSE file in the root directory of this source tree.
488
+ */const kK=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],QEe=ue("loader-circle",kK);/**
489
+ * @license lucide-react v0.525.0 - ISC
490
+ *
491
+ * This source code is licensed under the ISC license.
492
+ * See the LICENSE file in the root directory of this source tree.
493
+ */const CK=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],ZEe=ue("map-pin",CK);/**
494
+ * @license lucide-react v0.525.0 - ISC
495
+ *
496
+ * This source code is licensed under the ISC license.
497
+ * See the LICENSE file in the root directory of this source tree.
498
+ */const OK=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],XEe=ue("map",OK);/**
499
+ * @license lucide-react v0.525.0 - ISC
500
+ *
501
+ * This source code is licensed under the ISC license.
502
+ * See the LICENSE file in the root directory of this source tree.
503
+ */const TK=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],JEe=ue("maximize-2",TK);/**
504
+ * @license lucide-react v0.525.0 - ISC
505
+ *
506
+ * This source code is licensed under the ISC license.
507
+ * See the LICENSE file in the root directory of this source tree.
508
+ */const MK=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]],eAe=ue("maximize",MK);/**
509
+ * @license lucide-react v0.525.0 - ISC
510
+ *
511
+ * This source code is licensed under the ISC license.
512
+ * See the LICENSE file in the root directory of this source tree.
513
+ */const PK=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"8",x2:"16",y1:"15",y2:"15",key:"1xb1d9"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],tAe=ue("meh",PK);/**
514
+ * @license lucide-react v0.525.0 - ISC
515
+ *
516
+ * This source code is licensed under the ISC license.
517
+ * See the LICENSE file in the root directory of this source tree.
518
+ */const NK=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],nAe=ue("message-square",NK);/**
519
+ * @license lucide-react v0.525.0 - ISC
520
+ *
521
+ * This source code is licensed under the ISC license.
522
+ * See the LICENSE file in the root directory of this source tree.
523
+ */const RK=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],rAe=ue("minimize-2",RK);/**
524
+ * @license lucide-react v0.525.0 - ISC
525
+ *
526
+ * This source code is licensed under the ISC license.
527
+ * See the LICENSE file in the root directory of this source tree.
528
+ */const DK=[["path",{d:"M5 12h14",key:"1ays0h"}]],iAe=ue("minus",DK);/**
529
+ * @license lucide-react v0.525.0 - ISC
530
+ *
531
+ * This source code is licensed under the ISC license.
532
+ * See the LICENSE file in the root directory of this source tree.
533
+ */const IK=[["path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8",key:"10dyio"}],["path",{d:"M10 19v-3.96 3.15",key:"1irgej"}],["path",{d:"M7 19h5",key:"qswx4l"}],["rect",{width:"6",height:"10",x:"16",y:"12",rx:"2",key:"1egngj"}]],aAe=ue("monitor-smartphone",IK);/**
534
+ * @license lucide-react v0.525.0 - ISC
535
+ *
536
+ * This source code is licensed under the ISC license.
537
+ * See the LICENSE file in the root directory of this source tree.
538
+ */const LK=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9",key:"4ay0iu"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}]],oAe=ue("moon-star",LK);/**
539
+ * @license lucide-react v0.525.0 - ISC
540
+ *
541
+ * This source code is licensed under the ISC license.
542
+ * See the LICENSE file in the root directory of this source tree.
543
+ */const zK=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],sAe=ue("moon",zK);/**
544
+ * @license lucide-react v0.525.0 - ISC
545
+ *
546
+ * This source code is licensed under the ISC license.
547
+ * See the LICENSE file in the root directory of this source tree.
548
+ */const jK=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]],lAe=ue("move",jK);/**
549
+ * @license lucide-react v0.525.0 - ISC
550
+ *
551
+ * This source code is licensed under the ISC license.
552
+ * See the LICENSE file in the root directory of this source tree.
553
+ */const $K=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["path",{d:"m9 9 12-2",key:"1e64n2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],uAe=ue("music-4",$K);/**
554
+ * @license lucide-react v0.525.0 - ISC
555
+ *
556
+ * This source code is licensed under the ISC license.
557
+ * See the LICENSE file in the root directory of this source tree.
558
+ */const BK=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],cAe=ue("network",BK);/**
559
+ * @license lucide-react v0.525.0 - ISC
560
+ *
561
+ * This source code is licensed under the ISC license.
562
+ * See the LICENSE file in the root directory of this source tree.
563
+ */const UK=[["path",{d:"M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4",key:"re6nr2"}],["path",{d:"M2 6h4",key:"aawbzj"}],["path",{d:"M2 10h4",key:"l0bgd4"}],["path",{d:"M2 14h4",key:"1gsvsf"}],["path",{d:"M2 18h4",key:"1bu2t1"}],["path",{d:"M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"pqwjuv"}]],fAe=ue("notebook-pen",UK);/**
564
+ * @license lucide-react v0.525.0 - ISC
565
+ *
566
+ * This source code is licensed under the ISC license.
567
+ * See the LICENSE file in the root directory of this source tree.
568
+ */const FK=[["path",{d:"M20.341 6.484A10 10 0 0 1 10.266 21.85",key:"1enhxb"}],["path",{d:"M3.659 17.516A10 10 0 0 1 13.74 2.152",key:"1crzgf"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["circle",{cx:"19",cy:"5",r:"2",key:"mhkx31"}],["circle",{cx:"5",cy:"19",r:"2",key:"v8kfzx"}]],dAe=ue("orbit",FK);/**
569
+ * @license lucide-react v0.525.0 - ISC
570
+ *
571
+ * This source code is licensed under the ISC license.
572
+ * See the LICENSE file in the root directory of this source tree.
573
+ */const HK=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]],hAe=ue("panel-right-close",HK);/**
574
+ * @license lucide-react v0.525.0 - ISC
575
+ *
576
+ * This source code is licensed under the ISC license.
577
+ * See the LICENSE file in the root directory of this source tree.
578
+ */const GK=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m10 15-3-3 3-3",key:"1pgupc"}]],pAe=ue("panel-right-open",GK);/**
579
+ * @license lucide-react v0.525.0 - ISC
580
+ *
581
+ * This source code is licensed under the ISC license.
582
+ * See the LICENSE file in the root directory of this source tree.
583
+ */const qK=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}]],mAe=ue("panel-top",qK);/**
584
+ * @license lucide-react v0.525.0 - ISC
585
+ *
586
+ * This source code is licensed under the ISC license.
587
+ * See the LICENSE file in the root directory of this source tree.
588
+ */const VK=[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]],gAe=ue("party-popper",VK);/**
589
+ * @license lucide-react v0.525.0 - ISC
590
+ *
591
+ * This source code is licensed under the ISC license.
592
+ * See the LICENSE file in the root directory of this source tree.
593
+ */const KK=[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}],["path",{d:"m15 5 3 3",key:"1w25hb"}]],vAe=ue("pencil-line",KK);/**
594
+ * @license lucide-react v0.525.0 - ISC
595
+ *
596
+ * This source code is licensed under the ISC license.
597
+ * See the LICENSE file in the root directory of this source tree.
598
+ */const YK=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],yAe=ue("pencil",YK);/**
599
+ * @license lucide-react v0.525.0 - ISC
600
+ *
601
+ * This source code is licensed under the ISC license.
602
+ * See the LICENSE file in the root directory of this source tree.
603
+ */const WK=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],bAe=ue("play",WK);/**
604
+ * @license lucide-react v0.525.0 - ISC
605
+ *
606
+ * This source code is licensed under the ISC license.
607
+ * See the LICENSE file in the root directory of this source tree.
608
+ */const QK=[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],wAe=ue("plug-zap",QK);/**
609
+ * @license lucide-react v0.525.0 - ISC
610
+ *
611
+ * This source code is licensed under the ISC license.
612
+ * See the LICENSE file in the root directory of this source tree.
613
+ */const ZK=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],xAe=ue("plus",ZK);/**
614
+ * @license lucide-react v0.525.0 - ISC
615
+ *
616
+ * This source code is licensed under the ISC license.
617
+ * See the LICENSE file in the root directory of this source tree.
618
+ */const XK=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],_Ae=ue("qr-code",XK);/**
619
+ * @license lucide-react v0.525.0 - ISC
620
+ *
621
+ * This source code is licensed under the ISC license.
622
+ * See the LICENSE file in the root directory of this source tree.
623
+ */const JK=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],SAe=ue("quote",JK);/**
624
+ * @license lucide-react v0.525.0 - ISC
625
+ *
626
+ * This source code is licensed under the ISC license.
627
+ * See the LICENSE file in the root directory of this source tree.
628
+ */const eY=[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]],EAe=ue("radar",eY);/**
629
+ * @license lucide-react v0.525.0 - ISC
630
+ *
631
+ * This source code is licensed under the ISC license.
632
+ * See the LICENSE file in the root directory of this source tree.
633
+ */const tY=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],AAe=ue("refresh-ccw",tY);/**
634
+ * @license lucide-react v0.525.0 - ISC
635
+ *
636
+ * This source code is licensed under the ISC license.
637
+ * See the LICENSE file in the root directory of this source tree.
638
+ */const nY=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],kAe=ue("refresh-cw",nY);/**
639
+ * @license lucide-react v0.525.0 - ISC
640
+ *
641
+ * This source code is licensed under the ISC license.
642
+ * See the LICENSE file in the root directory of this source tree.
643
+ */const rY=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],CAe=ue("repeat",rY);/**
644
+ * @license lucide-react v0.525.0 - ISC
645
+ *
646
+ * This source code is licensed under the ISC license.
647
+ * See the LICENSE file in the root directory of this source tree.
648
+ */const iY=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],OAe=ue("rocket",iY);/**
649
+ * @license lucide-react v0.525.0 - ISC
650
+ *
651
+ * This source code is licensed under the ISC license.
652
+ * See the LICENSE file in the root directory of this source tree.
653
+ */const aY=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],TAe=ue("rotate-ccw",aY);/**
654
+ * @license lucide-react v0.525.0 - ISC
655
+ *
656
+ * This source code is licensed under the ISC license.
657
+ * See the LICENSE file in the root directory of this source tree.
658
+ */const oY=[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]],MAe=ue("route",oY);/**
659
+ * @license lucide-react v0.525.0 - ISC
660
+ *
661
+ * This source code is licensed under the ISC license.
662
+ * See the LICENSE file in the root directory of this source tree.
663
+ */const sY=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]],PAe=ue("rows-3",sY);/**
664
+ * @license lucide-react v0.525.0 - ISC
665
+ *
666
+ * This source code is licensed under the ISC license.
667
+ * See the LICENSE file in the root directory of this source tree.
668
+ */const lY=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],NAe=ue("save",lY);/**
669
+ * @license lucide-react v0.525.0 - ISC
670
+ *
671
+ * This source code is licensed under the ISC license.
672
+ * See the LICENSE file in the root directory of this source tree.
673
+ */const uY=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]],RAe=ue("scan-search",uY);/**
674
+ * @license lucide-react v0.525.0 - ISC
675
+ *
676
+ * This source code is licensed under the ISC license.
677
+ * See the LICENSE file in the root directory of this source tree.
678
+ */const cY=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],DAe=ue("scissors",cY);/**
679
+ * @license lucide-react v0.525.0 - ISC
680
+ *
681
+ * This source code is licensed under the ISC license.
682
+ * See the LICENSE file in the root directory of this source tree.
683
+ */const fY=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],IAe=ue("scroll-text",fY);/**
684
+ * @license lucide-react v0.525.0 - ISC
685
+ *
686
+ * This source code is licensed under the ISC license.
687
+ * See the LICENSE file in the root directory of this source tree.
688
+ */const dY=[["path",{d:"m8 11 2 2 4-4",key:"1sed1v"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],LAe=ue("search-check",dY);/**
689
+ * @license lucide-react v0.525.0 - ISC
690
+ *
691
+ * This source code is licensed under the ISC license.
692
+ * See the LICENSE file in the root directory of this source tree.
693
+ */const hY=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],zAe=ue("search",hY);/**
694
+ * @license lucide-react v0.525.0 - ISC
695
+ *
696
+ * This source code is licensed under the ISC license.
697
+ * See the LICENSE file in the root directory of this source tree.
698
+ */const pY=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],jAe=ue("send",pY);/**
699
+ * @license lucide-react v0.525.0 - ISC
700
+ *
701
+ * This source code is licensed under the ISC license.
702
+ * See the LICENSE file in the root directory of this source tree.
703
+ */const mY=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],$Ae=ue("settings-2",mY);/**
704
+ * @license lucide-react v0.525.0 - ISC
705
+ *
706
+ * This source code is licensed under the ISC license.
707
+ * See the LICENSE file in the root directory of this source tree.
708
+ */const gY=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],BAe=ue("settings",gY);/**
709
+ * @license lucide-react v0.525.0 - ISC
710
+ *
711
+ * This source code is licensed under the ISC license.
712
+ * See the LICENSE file in the root directory of this source tree.
713
+ */const vY=[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]],UAe=ue("shapes",vY);/**
714
+ * @license lucide-react v0.525.0 - ISC
715
+ *
716
+ * This source code is licensed under the ISC license.
717
+ * See the LICENSE file in the root directory of this source tree.
718
+ */const yY=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m4.243 5.21 14.39 12.472",key:"1c9a7c"}]],FAe=ue("shield-ban",yY);/**
719
+ * @license lucide-react v0.525.0 - ISC
720
+ *
721
+ * This source code is licensed under the ISC license.
722
+ * See the LICENSE file in the root directory of this source tree.
723
+ */const bY=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],HAe=ue("shield-check",bY);/**
724
+ * @license lucide-react v0.525.0 - ISC
725
+ *
726
+ * This source code is licensed under the ISC license.
727
+ * See the LICENSE file in the root directory of this source tree.
728
+ */const wY=[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]],GAe=ue("shield-off",wY);/**
729
+ * @license lucide-react v0.525.0 - ISC
730
+ *
731
+ * This source code is licensed under the ISC license.
732
+ * See the LICENSE file in the root directory of this source tree.
733
+ */const xY=[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]],qAe=ue("sliders-horizontal",xY);/**
734
+ * @license lucide-react v0.525.0 - ISC
735
+ *
736
+ * This source code is licensed under the ISC license.
737
+ * See the LICENSE file in the root directory of this source tree.
738
+ */const _Y=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],VAe=ue("smartphone",_Y);/**
739
+ * @license lucide-react v0.525.0 - ISC
740
+ *
741
+ * This source code is licensed under the ISC license.
742
+ * See the LICENSE file in the root directory of this source tree.
743
+ */const SY=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],KAe=ue("smile",SY);/**
744
+ * @license lucide-react v0.525.0 - ISC
745
+ *
746
+ * This source code is licensed under the ISC license.
747
+ * See the LICENSE file in the root directory of this source tree.
748
+ */const EY=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],YAe=ue("sparkles",EY);/**
749
+ * @license lucide-react v0.525.0 - ISC
750
+ *
751
+ * This source code is licensed under the ISC license.
752
+ * See the LICENSE file in the root directory of this source tree.
753
+ */const AY=[["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M8 3H3v5",key:"15dfkv"}],["path",{d:"M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3",key:"1qrqzj"}],["path",{d:"m15 9 6-6",key:"ko1vev"}]],WAe=ue("split",AY);/**
754
+ * @license lucide-react v0.525.0 - ISC
755
+ *
756
+ * This source code is licensed under the ISC license.
757
+ * See the LICENSE file in the root directory of this source tree.
758
+ */const kY=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],QAe=ue("square-pen",kY);/**
759
+ * @license lucide-react v0.525.0 - ISC
760
+ *
761
+ * This source code is licensed under the ISC license.
762
+ * See the LICENSE file in the root directory of this source tree.
763
+ */const CY=[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]],ZAe=ue("square-terminal",CY);/**
764
+ * @license lucide-react v0.525.0 - ISC
765
+ *
766
+ * This source code is licensed under the ISC license.
767
+ * See the LICENSE file in the root directory of this source tree.
768
+ */const OY=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],XAe=ue("square",OY);/**
769
+ * @license lucide-react v0.525.0 - ISC
770
+ *
771
+ * This source code is licensed under the ISC license.
772
+ * See the LICENSE file in the root directory of this source tree.
773
+ */const TY=[["path",{d:"M16 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8Z",key:"qazsjp"}],["path",{d:"M15 3v4a2 2 0 0 0 2 2h4",key:"40519r"}]],JAe=ue("sticky-note",TY);/**
774
+ * @license lucide-react v0.525.0 - ISC
775
+ *
776
+ * This source code is licensed under the ISC license.
777
+ * See the LICENSE file in the root directory of this source tree.
778
+ */const MY=[["path",{d:"M15 3v18",key:"14nvp0"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]],eke=ue("table-properties",MY);/**
779
+ * @license lucide-react v0.525.0 - ISC
780
+ *
781
+ * This source code is licensed under the ISC license.
782
+ * See the LICENSE file in the root directory of this source tree.
783
+ */const PY=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],tke=ue("target",PY);/**
784
+ * @license lucide-react v0.525.0 - ISC
785
+ *
786
+ * This source code is licensed under the ISC license.
787
+ * See the LICENSE file in the root directory of this source tree.
788
+ */const NY=[["path",{d:"M10 2h4",key:"n1abiw"}],["path",{d:"M12 14v-4",key:"1evpnu"}],["path",{d:"M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6",key:"1ts96g"}],["path",{d:"M9 17H4v5",key:"8t5av"}]],nke=ue("timer-reset",NY);/**
789
+ * @license lucide-react v0.525.0 - ISC
790
+ *
791
+ * This source code is licensed under the ISC license.
792
+ * See the LICENSE file in the root directory of this source tree.
793
+ */const RY=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],rke=ue("timer",RY);/**
794
+ * @license lucide-react v0.525.0 - ISC
795
+ *
796
+ * This source code is licensed under the ISC license.
797
+ * See the LICENSE file in the root directory of this source tree.
798
+ */const DY=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],ike=ue("trash-2",DY);/**
799
+ * @license lucide-react v0.525.0 - ISC
800
+ *
801
+ * This source code is licensed under the ISC license.
802
+ * See the LICENSE file in the root directory of this source tree.
803
+ */const IY=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],ake=ue("triangle-alert",IY);/**
804
+ * @license lucide-react v0.525.0 - ISC
805
+ *
806
+ * This source code is licensed under the ISC license.
807
+ * See the LICENSE file in the root directory of this source tree.
808
+ */const LY=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]],oke=ue("trophy",LY);/**
809
+ * @license lucide-react v0.525.0 - ISC
810
+ *
811
+ * This source code is licensed under the ISC license.
812
+ * See the LICENSE file in the root directory of this source tree.
813
+ */const zY=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],ske=ue("type",zY);/**
814
+ * @license lucide-react v0.525.0 - ISC
815
+ *
816
+ * This source code is licensed under the ISC license.
817
+ * See the LICENSE file in the root directory of this source tree.
818
+ */const jY=[["path",{d:"M12 22v-6",key:"6o8u61"}],["path",{d:"M12 8V2",key:"1wkif3"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m15 5-3-3-3 3",key:"itvq4r"}]],lke=ue("unfold-vertical",jY);/**
819
+ * @license lucide-react v0.525.0 - ISC
820
+ *
821
+ * This source code is licensed under the ISC license.
822
+ * See the LICENSE file in the root directory of this source tree.
823
+ */const $Y=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],uke=ue("upload",$Y);/**
824
+ * @license lucide-react v0.525.0 - ISC
825
+ *
826
+ * This source code is licensed under the ISC license.
827
+ * See the LICENSE file in the root directory of this source tree.
828
+ */const BY=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],cke=ue("user-round",BY);/**
829
+ * @license lucide-react v0.525.0 - ISC
830
+ *
831
+ * This source code is licensed under the ISC license.
832
+ * See the LICENSE file in the root directory of this source tree.
833
+ */const UY=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],fke=ue("users",UY);/**
834
+ * @license lucide-react v0.525.0 - ISC
835
+ *
836
+ * This source code is licensed under the ISC license.
837
+ * See the LICENSE file in the root directory of this source tree.
838
+ */const FY=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],dke=ue("wand-sparkles",FY);/**
839
+ * @license lucide-react v0.525.0 - ISC
840
+ *
841
+ * This source code is licensed under the ISC license.
842
+ * See the LICENSE file in the root directory of this source tree.
843
+ */const HY=[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]],hke=ue("waves",HY);/**
844
+ * @license lucide-react v0.525.0 - ISC
845
+ *
846
+ * This source code is licensed under the ISC license.
847
+ * See the LICENSE file in the root directory of this source tree.
848
+ */const GY=[["circle",{cx:"12",cy:"4.5",r:"2.5",key:"r5ysbb"}],["path",{d:"m10.2 6.3-3.9 3.9",key:"1nzqf6"}],["circle",{cx:"4.5",cy:"12",r:"2.5",key:"jydg6v"}],["path",{d:"M7 12h10",key:"b7w52i"}],["circle",{cx:"19.5",cy:"12",r:"2.5",key:"1piiel"}],["path",{d:"m13.8 17.7 3.9-3.9",key:"1wyg1y"}],["circle",{cx:"12",cy:"19.5",r:"2.5",key:"13o1pw"}]],pke=ue("waypoints",GY);/**
849
+ * @license lucide-react v0.525.0 - ISC
850
+ *
851
+ * This source code is licensed under the ISC license.
852
+ * See the LICENSE file in the root directory of this source tree.
853
+ */const qY=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],mke=ue("workflow",qY);/**
854
+ * @license lucide-react v0.525.0 - ISC
855
+ *
856
+ * This source code is licensed under the ISC license.
857
+ * See the LICENSE file in the root directory of this source tree.
858
+ */const VY=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],gke=ue("x",VY);/**
859
+ * @license lucide-react v0.525.0 - ISC
860
+ *
861
+ * This source code is licensed under the ISC license.
862
+ * See the LICENSE file in the root directory of this source tree.
863
+ */const KY=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],vke=ue("zap",KY);function xz(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=xz(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function kt(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=xz(e))&&(r&&(r+=" "),r+=t);return r}const YY=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},WY=(e,t)=>({classGroupId:e,validator:t}),_z=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),vv="-",$M=[],QY="arbitrary..",ZY=e=>{const t=JY(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return XY(s);const u=s.split(vv),c=u[0]===""&&u.length>1?1:0;return Sz(u,c,t)},getConflictingClassGroupIds:(s,u)=>{if(u){const c=r[s],f=n[s];return c?f?YY(f,c):c:f||$M}return n[s]||$M}}},Sz=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],a=n.nextPart.get(i);if(a){const f=Sz(e,t+1,a);if(f)return f}const s=n.validators;if(s===null)return;const u=t===0?e.join(vv):e.slice(t).join(vv),c=s.length;for(let f=0;f<c;f++){const h=s[f];if(h.validator(u))return h.classGroupId}},XY=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?QY+r:void 0})(),JY=e=>{const{theme:t,classGroups:n}=e;return eW(n,t)},eW=(e,t)=>{const n=_z();for(const r in e){const i=e[r];Z2(i,n,r,t)}return n},Z2=(e,t,n,r)=>{const i=e.length;for(let a=0;a<i;a++){const s=e[a];tW(s,t,n,r)}},tW=(e,t,n,r)=>{if(typeof e=="string"){nW(e,t,n);return}if(typeof e=="function"){rW(e,t,n,r);return}iW(e,t,n,r)},nW=(e,t,n)=>{const r=e===""?t:Ez(t,e);r.classGroupId=n},rW=(e,t,n,r)=>{if(aW(e)){Z2(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(WY(n,e))},iW=(e,t,n,r)=>{const i=Object.entries(e),a=i.length;for(let s=0;s<a;s++){const[u,c]=i[s];Z2(c,Ez(t,u),n,r)}},Ez=(e,t)=>{let n=e;const r=t.split(vv),i=r.length;for(let a=0;a<i;a++){const s=r[a];let u=n.nextPart.get(s);u||(u=_z(),n.nextPart.set(s,u)),n=u}return n},aW=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,oW=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(a,s)=>{n[a]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let s=n[a];if(s!==void 0)return s;if((s=r[a])!==void 0)return i(a,s),s},set(a,s){a in n?n[a]=s:i(a,s)}}},lS="!",BM=":",sW=[],UM=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),lW=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const a=[];let s=0,u=0,c=0,f;const h=i.length;for(let b=0;b<h;b++){const w=i[b];if(s===0&&u===0){if(w===BM){a.push(i.slice(c,b)),c=b+1;continue}if(w==="/"){f=b;continue}}w==="["?s++:w==="]"?s--:w==="("?u++:w===")"&&u--}const p=a.length===0?i:i.slice(c);let g=p,v=!1;p.endsWith(lS)?(g=p.slice(0,-1),v=!0):p.startsWith(lS)&&(g=p.slice(1),v=!0);const y=f&&f>c?f-c:void 0;return UM(a,v,g,y)};if(t){const i=t+BM,a=r;r=s=>s.startsWith(i)?a(s.slice(i.length)):UM(sW,!1,s,void 0,!0)}if(n){const i=r;r=a=>n({className:a,parseClassName:i})}return r},uW=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let a=0;a<n.length;a++){const s=n[a],u=s[0]==="[",c=t.has(s);u||c?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(s)):i.push(s)}return i.length>0&&(i.sort(),r.push(...i)),r}},cW=e=>({cache:oW(e.cacheSize),parseClassName:lW(e),sortModifiers:uW(e),...ZY(e)}),fW=/\s+/,dW=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,s=[],u=e.trim().split(fW);let c="";for(let f=u.length-1;f>=0;f-=1){const h=u[f],{isExternal:p,modifiers:g,hasImportantModifier:v,baseClassName:y,maybePostfixModifierPosition:b}=n(h);if(p){c=h+(c.length>0?" "+c:c);continue}let w=!!b,_=r(w?y.substring(0,b):y);if(!_){if(!w){c=h+(c.length>0?" "+c:c);continue}if(_=r(y),!_){c=h+(c.length>0?" "+c:c);continue}w=!1}const C=g.length===0?"":g.length===1?g[0]:a(g).join(":"),E=v?C+lS:C,S=E+_;if(s.indexOf(S)>-1)continue;s.push(S);const T=i(_,w);for(let O=0;O<T.length;++O){const M=T[O];s.push(E+M)}c=h+(c.length>0?" "+c:c)}return c},hW=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=Az(n))&&(i&&(i+=" "),i+=r);return i},Az=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Az(e[r]))&&(n&&(n+=" "),n+=t);return n},pW=(e,...t)=>{let n,r,i,a;const s=c=>{const f=t.reduce((h,p)=>p(h),e());return n=cW(f),r=n.cache.get,i=n.cache.set,a=u,u(c)},u=c=>{const f=r(c);if(f)return f;const h=dW(c,n);return i(c,h),h};return a=s,(...c)=>a(hW(...c))},mW=[],An=e=>{const t=n=>n[e]||mW;return t.isThemeGetter=!0,t},kz=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Cz=/^\((?:(\w[\w-]*):)?(.+)\)$/i,gW=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,vW=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yW=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,bW=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,wW=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xW=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fs=e=>gW.test(e),it=e=>!!e&&!Number.isNaN(Number(e)),ds=e=>!!e&&Number.isInteger(Number(e)),bw=e=>e.endsWith("%")&&it(e.slice(0,-1)),Ya=e=>vW.test(e),Oz=()=>!0,_W=e=>yW.test(e)&&!bW.test(e),X2=()=>!1,SW=e=>wW.test(e),EW=e=>xW.test(e),AW=e=>!ze(e)&&!je(e),kW=e=>Vs(e,Pz,X2),ze=e=>kz.test(e),vl=e=>Vs(e,Nz,_W),FM=e=>Vs(e,DW,it),CW=e=>Vs(e,Dz,Oz),OW=e=>Vs(e,Rz,X2),HM=e=>Vs(e,Tz,X2),TW=e=>Vs(e,Mz,EW),mg=e=>Vs(e,Iz,SW),je=e=>Cz.test(e),Nd=e=>pu(e,Nz),MW=e=>pu(e,Rz),GM=e=>pu(e,Tz),PW=e=>pu(e,Pz),NW=e=>pu(e,Mz),gg=e=>pu(e,Iz,!0),RW=e=>pu(e,Dz,!0),Vs=(e,t,n)=>{const r=kz.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},pu=(e,t,n=!1)=>{const r=Cz.exec(e);return r?r[1]?t(r[1]):n:!1},Tz=e=>e==="position"||e==="percentage",Mz=e=>e==="image"||e==="url",Pz=e=>e==="length"||e==="size"||e==="bg-size",Nz=e=>e==="length",DW=e=>e==="number",Rz=e=>e==="family-name",Dz=e=>e==="number"||e==="weight",Iz=e=>e==="shadow",IW=()=>{const e=An("color"),t=An("font"),n=An("text"),r=An("font-weight"),i=An("tracking"),a=An("leading"),s=An("breakpoint"),u=An("container"),c=An("spacing"),f=An("radius"),h=An("shadow"),p=An("inset-shadow"),g=An("text-shadow"),v=An("drop-shadow"),y=An("blur"),b=An("perspective"),w=An("aspect"),_=An("ease"),C=An("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...S(),je,ze],O=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],P=()=>[je,ze,c],R=()=>[fs,"full","auto",...P()],z=()=>[ds,"none","subgrid",je,ze],D=()=>["auto",{span:["full",ds,je,ze]},ds,je,ze],N=()=>[ds,"auto",je,ze],$=()=>["auto","min","max","fr",je,ze],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...P()],G=()=>[fs,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],q=()=>[fs,"screen","full","dvw","lvw","svw","min","max","fit",...P()],H=()=>[fs,"screen","full","lh","dvh","lvh","svh","min","max","fit",...P()],V=()=>[e,je,ze],B=()=>[...S(),GM,HM,{position:[je,ze]}],K=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",PW,kW,{size:[je,ze]}],ee=()=>[bw,Nd,vl],ce=()=>["","none","full",f,je,ze],he=()=>["",it,Nd,vl],de=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[it,bw,GM,HM],pe=()=>["","none",y,je,ze],ye=()=>["none",it,je,ze],te=()=>["none",it,je,ze],Ce=()=>[it,je,ze],Se=()=>[fs,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ya],breakpoint:[Ya],color:[Oz],container:[Ya],"drop-shadow":[Ya],ease:["in","out","in-out"],font:[AW],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ya],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ya],shadow:[Ya],spacing:["px",it],text:[Ya],"text-shadow":[Ya],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",fs,ze,je,w]}],container:["container"],columns:[{columns:[it,ze,je,u]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{"inset-s":R(),start:R()}],end:[{"inset-e":R(),end:R()}],"inset-bs":[{"inset-bs":R()}],"inset-be":[{"inset-be":R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[ds,"auto",je,ze]}],basis:[{basis:[fs,"full","auto",u,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[it,fs,"auto","initial","none",ze]}],grow:[{grow:["",it,je,ze]}],shrink:[{shrink:["",it,je,ze]}],order:[{order:[ds,"first","last","none",je,ze]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":$()}],"auto-rows":[{"auto-rows":$()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pbs:[{pbs:P()}],pbe:[{pbe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mbs:[{mbs:j()}],mbe:[{mbe:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],"inline-size":[{inline:["auto",...q()]}],"min-inline-size":[{"min-inline":["auto",...q()]}],"max-inline-size":[{"max-inline":["none",...q()]}],"block-size":[{block:["auto",...H()]}],"min-block-size":[{"min-block":["auto",...H()]}],"max-block-size":[{"max-block":["none",...H()]}],w:[{w:[u,"screen",...G()]}],"min-w":[{"min-w":[u,"screen","none",...G()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[s]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",n,Nd,vl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,RW,CW]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",bw,ze]}],"font-family":[{font:[MW,OW,t]}],"font-features":[{"font-features":[ze]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,je,ze]}],"line-clamp":[{"line-clamp":[it,"none",je,FM]}],leading:[{leading:[a,...P()]}],"list-image":[{"list-image":["none",je,ze]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",je,ze]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:[it,"from-font","auto",je,vl]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[it,"auto",je,ze]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",je,ze]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",je,ze]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:B()}],"bg-repeat":[{bg:K()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ds,je,ze],radial:["",je,ze],conic:[ds,je,ze]},NW,TW]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:ee()}],"gradient-via-pos":[{via:ee()}],"gradient-to-pos":[{to:ee()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:ce()}],"rounded-s":[{"rounded-s":ce()}],"rounded-e":[{"rounded-e":ce()}],"rounded-t":[{"rounded-t":ce()}],"rounded-r":[{"rounded-r":ce()}],"rounded-b":[{"rounded-b":ce()}],"rounded-l":[{"rounded-l":ce()}],"rounded-ss":[{"rounded-ss":ce()}],"rounded-se":[{"rounded-se":ce()}],"rounded-ee":[{"rounded-ee":ce()}],"rounded-es":[{"rounded-es":ce()}],"rounded-tl":[{"rounded-tl":ce()}],"rounded-tr":[{"rounded-tr":ce()}],"rounded-br":[{"rounded-br":ce()}],"rounded-bl":[{"rounded-bl":ce()}],"border-w":[{border:he()}],"border-w-x":[{"border-x":he()}],"border-w-y":[{"border-y":he()}],"border-w-s":[{"border-s":he()}],"border-w-e":[{"border-e":he()}],"border-w-bs":[{"border-bs":he()}],"border-w-be":[{"border-be":he()}],"border-w-t":[{"border-t":he()}],"border-w-r":[{"border-r":he()}],"border-w-b":[{"border-b":he()}],"border-w-l":[{"border-l":he()}],"divide-x":[{"divide-x":he()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":he()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...de(),"hidden","none"]}],"divide-style":[{divide:[...de(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-bs":[{"border-bs":V()}],"border-color-be":[{"border-be":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...de(),"none","hidden"]}],"outline-offset":[{"outline-offset":[it,je,ze]}],"outline-w":[{outline:["",it,Nd,vl]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",h,gg,mg]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",p,gg,mg]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[it,vl]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":he()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",g,gg,mg]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[it,je,ze]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[it]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[je,ze]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[it]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:B()}],"mask-repeat":[{mask:K()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",je,ze]}],filter:[{filter:["","none",je,ze]}],blur:[{blur:pe()}],brightness:[{brightness:[it,je,ze]}],contrast:[{contrast:[it,je,ze]}],"drop-shadow":[{"drop-shadow":["","none",v,gg,mg]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",it,je,ze]}],"hue-rotate":[{"hue-rotate":[it,je,ze]}],invert:[{invert:["",it,je,ze]}],saturate:[{saturate:[it,je,ze]}],sepia:[{sepia:["",it,je,ze]}],"backdrop-filter":[{"backdrop-filter":["","none",je,ze]}],"backdrop-blur":[{"backdrop-blur":pe()}],"backdrop-brightness":[{"backdrop-brightness":[it,je,ze]}],"backdrop-contrast":[{"backdrop-contrast":[it,je,ze]}],"backdrop-grayscale":[{"backdrop-grayscale":["",it,je,ze]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[it,je,ze]}],"backdrop-invert":[{"backdrop-invert":["",it,je,ze]}],"backdrop-opacity":[{"backdrop-opacity":[it,je,ze]}],"backdrop-saturate":[{"backdrop-saturate":[it,je,ze]}],"backdrop-sepia":[{"backdrop-sepia":["",it,je,ze]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",je,ze]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[it,"initial",je,ze]}],ease:[{ease:["linear","initial",_,je,ze]}],delay:[{delay:[it,je,ze]}],animate:[{animate:["none",C,je,ze]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,je,ze]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:te()}],"scale-x":[{"scale-x":te()}],"scale-y":[{"scale-y":te()}],"scale-z":[{"scale-z":te()}],"scale-3d":["scale-3d"],skew:[{skew:Ce()}],"skew-x":[{"skew-x":Ce()}],"skew-y":[{"skew-y":Ce()}],transform:[{transform:[je,ze,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Se()}],"translate-x":[{"translate-x":Se()}],"translate-y":[{"translate-y":Se()}],"translate-z":[{"translate-z":Se()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",je,ze]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mbs":[{"scroll-mbs":P()}],"scroll-mbe":[{"scroll-mbe":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pbs":[{"scroll-pbs":P()}],"scroll-pbe":[{"scroll-pbe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",je,ze]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[it,Nd,vl,FM]}],stroke:[{stroke:["none",...V()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},yke=pW(IW),qM=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,VM=kt,bke=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return VM(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:a}=t,s=Object.keys(i).map(f=>{const h=n==null?void 0:n[f],p=a==null?void 0:a[f];if(h===null)return null;const g=qM(h)||qM(p);return i[f][g]}),u=n&&Object.entries(n).reduce((f,h)=>{let[p,g]=h;return g===void 0||(f[p]=g),f},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((f,h)=>{let{class:p,className:g,...v}=h;return Object.entries(v).every(y=>{let[b,w]=y;return Array.isArray(w)?w.includes({...a,...u}[b]):{...a,...u}[b]===w})?[...f,p,g]:f},[]);return VM(e,s,c,n==null?void 0:n.class,n==null?void 0:n.className)};var wt;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const a={};for(const s of i)a[s]=s;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(u=>typeof i[i[u]]!="number"),s={};for(const u of a)s[u]=i[u];return e.objectValues(s)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&a.push(s);return a},e.find=(i,a)=>{for(const s of i)if(a(s))return s},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(s=>typeof s=="string"?`'${s}'`:s).join(a)}e.joinValues=r,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(wt||(wt={}));var KM;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(KM||(KM={}));const Be=wt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),bs=e=>{switch(typeof e){case"undefined":return Be.undefined;case"string":return Be.string;case"number":return Number.isNaN(e)?Be.nan:Be.number;case"boolean":return Be.boolean;case"function":return Be.function;case"bigint":return Be.bigint;case"symbol":return Be.symbol;case"object":return Array.isArray(e)?Be.array:e===null?Be.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Be.promise:typeof Map<"u"&&e instanceof Map?Be.map:typeof Set<"u"&&e instanceof Set?Be.set:typeof Date<"u"&&e instanceof Date?Be.date:Be.object;default:return Be.unknown}},Ae=wt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class yo extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(a){return a.message},r={_errors:[]},i=a=>{for(const s of a.issues)if(s.code==="invalid_union")s.unionErrors.map(i);else if(s.code==="invalid_return_type")i(s.returnTypeError);else if(s.code==="invalid_arguments")i(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let u=r,c=0;for(;c<s.path.length;){const f=s.path[c];c===s.path.length-1?(u[f]=u[f]||{_errors:[]},u[f]._errors.push(n(s))):u[f]=u[f]||{_errors:[]},u=u[f],c++}}};return i(this),r}static assert(t){if(!(t instanceof yo))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,wt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)if(i.path.length>0){const a=i.path[0];n[a]=n[a]||[],n[a].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}yo.create=e=>new yo(e);const uS=(e,t)=>{let n;switch(e.code){case Ae.invalid_type:e.received===Be.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case Ae.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,wt.jsonStringifyReplacer)}`;break;case Ae.unrecognized_keys:n=`Unrecognized key(s) in object: ${wt.joinValues(e.keys,", ")}`;break;case Ae.invalid_union:n="Invalid input";break;case Ae.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${wt.joinValues(e.options)}`;break;case Ae.invalid_enum_value:n=`Invalid enum value. Expected ${wt.joinValues(e.options)}, received '${e.received}'`;break;case Ae.invalid_arguments:n="Invalid function arguments";break;case Ae.invalid_return_type:n="Invalid function return type";break;case Ae.invalid_date:n="Invalid date";break;case Ae.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:wt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case Ae.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case Ae.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case Ae.custom:n="Invalid input";break;case Ae.invalid_intersection_types:n="Intersection results could not be merged";break;case Ae.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Ae.not_finite:n="Number must be finite";break;default:n=t.defaultError,wt.assertNever(e)}return{message:n}};let LW=uS;function zW(){return LW}const jW=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],s={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let u="";const c=r.filter(f=>!!f).slice().reverse();for(const f of c)u=f(s,{data:t,defaultError:u}).message;return{...i,path:a,message:u}};function Pe(e,t){const n=zW(),r=jW({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===uS?void 0:uS].filter(i=>!!i)});e.common.issues.push(r)}class Wr{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return Je;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const a=await i.key,s=await i.value;r.push({key:a,value:s})}return Wr.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:a,value:s}=i;if(a.status==="aborted"||s.status==="aborted")return Je;a.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof s.value<"u"||i.alwaysSet)&&(r[a.value]=s.value)}return{status:t.value,value:r}}}const Je=Object.freeze({status:"aborted"}),rh=e=>({status:"dirty",value:e}),Si=e=>({status:"valid",value:e}),YM=e=>e.status==="aborted",WM=e=>e.status==="dirty",Vc=e=>e.status==="valid",yv=e=>typeof Promise<"u"&&e instanceof Promise;var He;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(He||(He={}));class Us{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const QM=(e,t)=>{if(Vc(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new yo(e.common.issues);return this._error=n,this._error}}};function ot(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(s,u)=>{const{message:c}=e;return s.code==="invalid_enum_value"?{message:c??u.defaultError}:typeof u.data>"u"?{message:c??r??u.defaultError}:s.code!=="invalid_type"?{message:u.defaultError}:{message:c??n??u.defaultError}},description:i}}class vt{get description(){return this._def.description}_getType(t){return bs(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:bs(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Wr,ctx:{common:t.parent.common,data:t.data,parsedType:bs(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(yv(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:bs(t)},i=this._parseSync({data:t,path:r.path,parent:r});return QM(r,i)}"~validate"(t){var r,i;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:bs(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:n});return Vc(a)?{value:a.value}:{issues:n.common.issues}}catch(a){(i=(r=a==null?void 0:a.message)==null?void 0:r.toLowerCase())!=null&&i.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(a=>Vc(a)?{value:a.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:bs(t)},i=this._parse({data:t,path:r.path,parent:r}),a=await(yv(i)?i:Promise.resolve(i));return QM(r,a)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,a)=>{const s=t(i),u=()=>a.addIssue({code:Ae.custom,...r(i)});return typeof Promise<"u"&&s instanceof Promise?s.then(c=>c?!0:(u(),!1)):s?!0:(u(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new Wc({schema:this,typeName:et.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Ls.create(this,this._def)}nullable(){return Qc.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ha.create(this)}promise(){return _v.create(this,this._def)}or(t){return wv.create([this,t],this._def)}and(t){return xv.create(this,t,this._def)}transform(t){return new Wc({...ot(this._def),schema:this,typeName:et.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new dS({...ot(this._def),innerType:this,defaultValue:n,typeName:et.ZodDefault})}brand(){return new sQ({typeName:et.ZodBranded,type:this,...ot(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new hS({...ot(this._def),innerType:this,catchValue:n,typeName:et.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return J2.create(this,t)}readonly(){return pS.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const $W=/^c[^\s-]{8,}$/i,BW=/^[0-9a-z]+$/,UW=/^[0-9A-HJKMNP-TV-Z]{26}$/i,FW=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,HW=/^[a-z0-9_-]{21}$/i,GW=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,qW=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,VW=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,KW="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ww;const YW=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,WW=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,QW=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,ZW=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,XW=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,JW=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Lz="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",eQ=new RegExp(`^${Lz}$`);function zz(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function tQ(e){return new RegExp(`^${zz(e)}$`)}function nQ(e){let t=`${Lz}T${zz(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function rQ(e,t){return!!((t==="v4"||!t)&&YW.test(e)||(t==="v6"||!t)&&QW.test(e))}function iQ(e,t){if(!GW.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!(typeof i!="object"||i===null||"typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function aQ(e,t){return!!((t==="v4"||!t)&&WW.test(e)||(t==="v6"||!t)&&ZW.test(e))}class so extends vt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Be.string){const a=this._getOrReturnCtx(t);return Pe(a,{code:Ae.invalid_type,expected:Be.string,received:a.parsedType}),Je}const r=new Wr;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ae.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="max")t.data.length>a.value&&(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ae.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const s=t.data.length>a.value,u=t.data.length<a.value;(s||u)&&(i=this._getOrReturnCtx(t,i),s?Pe(i,{code:Ae.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):u&&Pe(i,{code:Ae.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if(a.kind==="email")VW.test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"email",code:Ae.invalid_string,message:a.message}),r.dirty());else if(a.kind==="emoji")ww||(ww=new RegExp(KW,"u")),ww.test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"emoji",code:Ae.invalid_string,message:a.message}),r.dirty());else if(a.kind==="uuid")FW.test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"uuid",code:Ae.invalid_string,message:a.message}),r.dirty());else if(a.kind==="nanoid")HW.test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"nanoid",code:Ae.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid")$W.test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"cuid",code:Ae.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid2")BW.test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"cuid2",code:Ae.invalid_string,message:a.message}),r.dirty());else if(a.kind==="ulid")UW.test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"ulid",code:Ae.invalid_string,message:a.message}),r.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),Pe(i,{validation:"url",code:Ae.invalid_string,message:a.message}),r.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"regex",code:Ae.invalid_string,message:a.message}),r.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ae.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),r.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ae.invalid_string,validation:{startsWith:a.value},message:a.message}),r.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ae.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty()):a.kind==="datetime"?nQ(a).test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ae.invalid_string,validation:"datetime",message:a.message}),r.dirty()):a.kind==="date"?eQ.test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ae.invalid_string,validation:"date",message:a.message}),r.dirty()):a.kind==="time"?tQ(a).test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ae.invalid_string,validation:"time",message:a.message}),r.dirty()):a.kind==="duration"?qW.test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"duration",code:Ae.invalid_string,message:a.message}),r.dirty()):a.kind==="ip"?rQ(t.data,a.version)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"ip",code:Ae.invalid_string,message:a.message}),r.dirty()):a.kind==="jwt"?iQ(t.data,a.alg)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"jwt",code:Ae.invalid_string,message:a.message}),r.dirty()):a.kind==="cidr"?aQ(t.data,a.version)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"cidr",code:Ae.invalid_string,message:a.message}),r.dirty()):a.kind==="base64"?XW.test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"base64",code:Ae.invalid_string,message:a.message}),r.dirty()):a.kind==="base64url"?JW.test(t.data)||(i=this._getOrReturnCtx(t,i),Pe(i,{validation:"base64url",code:Ae.invalid_string,message:a.message}),r.dirty()):wt.assertNever(a);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:Ae.invalid_string,...He.errToObj(r)})}_addCheck(t){return new so({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...He.errToObj(t)})}url(t){return this._addCheck({kind:"url",...He.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...He.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...He.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...He.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...He.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...He.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...He.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...He.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...He.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...He.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...He.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...He.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...He.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...He.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...He.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...He.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...He.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...He.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...He.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...He.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...He.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...He.errToObj(n)})}nonempty(t){return this.min(1,He.errToObj(t))}trim(){return new so({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new so({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new so({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}so.create=e=>new so({checks:[],typeName:et.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...ot(e)});function oQ(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(t.toFixed(i).replace(".",""));return a%s/10**i}class Zl extends vt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Be.number){const a=this._getOrReturnCtx(t);return Pe(a,{code:Ae.invalid_type,expected:Be.number,received:a.parsedType}),Je}let r;const i=new Wr;for(const a of this._def.checks)a.kind==="int"?wt.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ae.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ae.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ae.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?oQ(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ae.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ae.not_finite,message:a.message}),i.dirty()):wt.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,He.toString(n))}gt(t,n){return this.setLimit("min",t,!1,He.toString(n))}lte(t,n){return this.setLimit("max",t,!0,He.toString(n))}lt(t,n){return this.setLimit("max",t,!1,He.toString(n))}setLimit(t,n,r,i){return new Zl({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:He.toString(i)}]})}_addCheck(t){return new Zl({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:He.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:He.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:He.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:He.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:He.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:He.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:He.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:He.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:He.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&wt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Zl.create=e=>new Zl({checks:[],typeName:et.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...ot(e)});class Xl extends vt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Be.bigint)return this._getInvalidInput(t);let r;const i=new Wr;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ae.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ae.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),Pe(r,{code:Ae.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):wt.assertNever(a);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return Pe(n,{code:Ae.invalid_type,expected:Be.bigint,received:n.parsedType}),Je}gte(t,n){return this.setLimit("min",t,!0,He.toString(n))}gt(t,n){return this.setLimit("min",t,!1,He.toString(n))}lte(t,n){return this.setLimit("max",t,!0,He.toString(n))}lt(t,n){return this.setLimit("max",t,!1,He.toString(n))}setLimit(t,n,r,i){return new Xl({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:He.toString(i)}]})}_addCheck(t){return new Xl({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:He.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:He.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:He.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:He.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:He.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Xl.create=e=>new Xl({checks:[],typeName:et.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...ot(e)});class bv extends vt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Be.boolean){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ae.invalid_type,expected:Be.boolean,received:r.parsedType}),Je}return Si(t.data)}}bv.create=e=>new bv({typeName:et.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...ot(e)});class Kc extends vt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Be.date){const a=this._getOrReturnCtx(t);return Pe(a,{code:Ae.invalid_type,expected:Be.date,received:a.parsedType}),Je}if(Number.isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return Pe(a,{code:Ae.invalid_date}),Je}const r=new Wr;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ae.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),r.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(i=this._getOrReturnCtx(t,i),Pe(i,{code:Ae.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):wt.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Kc({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:He.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:He.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Kc.create=e=>new Kc({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:et.ZodDate,...ot(e)});class ZM extends vt{_parse(t){if(this._getType(t)!==Be.symbol){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ae.invalid_type,expected:Be.symbol,received:r.parsedType}),Je}return Si(t.data)}}ZM.create=e=>new ZM({typeName:et.ZodSymbol,...ot(e)});class XM extends vt{_parse(t){if(this._getType(t)!==Be.undefined){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ae.invalid_type,expected:Be.undefined,received:r.parsedType}),Je}return Si(t.data)}}XM.create=e=>new XM({typeName:et.ZodUndefined,...ot(e)});class JM extends vt{_parse(t){if(this._getType(t)!==Be.null){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ae.invalid_type,expected:Be.null,received:r.parsedType}),Je}return Si(t.data)}}JM.create=e=>new JM({typeName:et.ZodNull,...ot(e)});class eP extends vt{constructor(){super(...arguments),this._any=!0}_parse(t){return Si(t.data)}}eP.create=e=>new eP({typeName:et.ZodAny,...ot(e)});class tP extends vt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Si(t.data)}}tP.create=e=>new tP({typeName:et.ZodUnknown,...ot(e)});class Fs extends vt{_parse(t){const n=this._getOrReturnCtx(t);return Pe(n,{code:Ae.invalid_type,expected:Be.never,received:n.parsedType}),Je}}Fs.create=e=>new Fs({typeName:et.ZodNever,...ot(e)});class nP extends vt{_parse(t){if(this._getType(t)!==Be.undefined){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ae.invalid_type,expected:Be.void,received:r.parsedType}),Je}return Si(t.data)}}nP.create=e=>new nP({typeName:et.ZodVoid,...ot(e)});class ha extends vt{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==Be.array)return Pe(n,{code:Ae.invalid_type,expected:Be.array,received:n.parsedType}),Je;if(i.exactLength!==null){const s=n.data.length>i.exactLength.value,u=n.data.length<i.exactLength.value;(s||u)&&(Pe(n,{code:s?Ae.too_big:Ae.too_small,minimum:u?i.exactLength.value:void 0,maximum:s?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(Pe(n,{code:Ae.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(Pe(n,{code:Ae.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,u)=>i.type._parseAsync(new Us(n,s,n.path,u)))).then(s=>Wr.mergeArray(r,s));const a=[...n.data].map((s,u)=>i.type._parseSync(new Us(n,s,n.path,u)));return Wr.mergeArray(r,a)}get element(){return this._def.type}min(t,n){return new ha({...this._def,minLength:{value:t,message:He.toString(n)}})}max(t,n){return new ha({...this._def,maxLength:{value:t,message:He.toString(n)}})}length(t,n){return new ha({...this._def,exactLength:{value:t,message:He.toString(n)}})}nonempty(t){return this.min(1,t)}}ha.create=(e,t)=>new ha({type:e,minLength:null,maxLength:null,exactLength:null,typeName:et.ZodArray,...ot(t)});function xc(e){if(e instanceof bn){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Ls.create(xc(r))}return new bn({...e._def,shape:()=>t})}else return e instanceof ha?new ha({...e._def,type:xc(e.element)}):e instanceof Ls?Ls.create(xc(e.unwrap())):e instanceof Qc?Qc.create(xc(e.unwrap())):e instanceof Jl?Jl.create(e.items.map(t=>xc(t))):e}class bn extends vt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=wt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Be.object){const f=this._getOrReturnCtx(t);return Pe(f,{code:Ae.invalid_type,expected:Be.object,received:f.parsedType}),Je}const{status:r,ctx:i}=this._processInputParams(t),{shape:a,keys:s}=this._getCached(),u=[];if(!(this._def.catchall instanceof Fs&&this._def.unknownKeys==="strip"))for(const f in i.data)s.includes(f)||u.push(f);const c=[];for(const f of s){const h=a[f],p=i.data[f];c.push({key:{status:"valid",value:f},value:h._parse(new Us(i,p,i.path,f)),alwaysSet:f in i.data})}if(this._def.catchall instanceof Fs){const f=this._def.unknownKeys;if(f==="passthrough")for(const h of u)c.push({key:{status:"valid",value:h},value:{status:"valid",value:i.data[h]}});else if(f==="strict")u.length>0&&(Pe(i,{code:Ae.unrecognized_keys,keys:u}),r.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const f=this._def.catchall;for(const h of u){const p=i.data[h];c.push({key:{status:"valid",value:h},value:f._parse(new Us(i,p,i.path,h)),alwaysSet:h in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const f=[];for(const h of c){const p=await h.key,g=await h.value;f.push({key:p,value:g,alwaysSet:h.alwaysSet})}return f}).then(f=>Wr.mergeObjectSync(r,f)):Wr.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return He.errToObj,new bn({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var a,s;const i=((s=(a=this._def).errorMap)==null?void 0:s.call(a,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:He.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new bn({...this._def,unknownKeys:"strip"})}passthrough(){return new bn({...this._def,unknownKeys:"passthrough"})}extend(t){return new bn({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new bn({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:et.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new bn({...this._def,catchall:t})}pick(t){const n={};for(const r of wt.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new bn({...this._def,shape:()=>n})}omit(t){const n={};for(const r of wt.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new bn({...this._def,shape:()=>n})}deepPartial(){return xc(this)}partial(t){const n={};for(const r of wt.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new bn({...this._def,shape:()=>n})}required(t){const n={};for(const r of wt.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof Ls;)a=a._def.innerType;n[r]=a}return new bn({...this._def,shape:()=>n})}keyof(){return jz(wt.objectKeys(this.shape))}}bn.create=(e,t)=>new bn({shape:()=>e,unknownKeys:"strip",catchall:Fs.create(),typeName:et.ZodObject,...ot(t)});bn.strictCreate=(e,t)=>new bn({shape:()=>e,unknownKeys:"strict",catchall:Fs.create(),typeName:et.ZodObject,...ot(t)});bn.lazycreate=(e,t)=>new bn({shape:e,unknownKeys:"strip",catchall:Fs.create(),typeName:et.ZodObject,...ot(t)});class wv extends vt{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(a){for(const u of a)if(u.result.status==="valid")return u.result;for(const u of a)if(u.result.status==="dirty")return n.common.issues.push(...u.ctx.common.issues),u.result;const s=a.map(u=>new yo(u.ctx.common.issues));return Pe(n,{code:Ae.invalid_union,unionErrors:s}),Je}if(n.common.async)return Promise.all(r.map(async a=>{const s={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(i);{let a;const s=[];for(const c of r){const f={...n,common:{...n.common,issues:[]},parent:null},h=c._parseSync({data:n.data,path:n.path,parent:f});if(h.status==="valid")return h;h.status==="dirty"&&!a&&(a={result:h,ctx:f}),f.common.issues.length&&s.push(f.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const u=s.map(c=>new yo(c));return Pe(n,{code:Ae.invalid_union,unionErrors:u}),Je}}get options(){return this._def.options}}wv.create=(e,t)=>new wv({options:e,typeName:et.ZodUnion,...ot(t)});function cS(e,t){const n=bs(e),r=bs(t);if(e===t)return{valid:!0,data:e};if(n===Be.object&&r===Be.object){const i=wt.objectKeys(t),a=wt.objectKeys(e).filter(u=>i.indexOf(u)!==-1),s={...e,...t};for(const u of a){const c=cS(e[u],t[u]);if(!c.valid)return{valid:!1};s[u]=c.data}return{valid:!0,data:s}}else if(n===Be.array&&r===Be.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a<e.length;a++){const s=e[a],u=t[a],c=cS(s,u);if(!c.valid)return{valid:!1};i.push(c.data)}return{valid:!0,data:i}}else return n===Be.date&&r===Be.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class xv extends vt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(a,s)=>{if(YM(a)||YM(s))return Je;const u=cS(a.value,s.value);return u.valid?((WM(a)||WM(s))&&n.dirty(),{status:n.value,value:u.data}):(Pe(r,{code:Ae.invalid_intersection_types}),Je)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([a,s])=>i(a,s)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}xv.create=(e,t,n)=>new xv({left:e,right:t,typeName:et.ZodIntersection,...ot(n)});class Jl extends vt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Be.array)return Pe(r,{code:Ae.invalid_type,expected:Be.array,received:r.parsedType}),Je;if(r.data.length<this._def.items.length)return Pe(r,{code:Ae.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Je;!this._def.rest&&r.data.length>this._def.items.length&&(Pe(r,{code:Ae.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((s,u)=>{const c=this._def.items[u]||this._def.rest;return c?c._parse(new Us(r,s,r.path,u)):null}).filter(s=>!!s);return r.common.async?Promise.all(a).then(s=>Wr.mergeArray(n,s)):Wr.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new Jl({...this._def,rest:t})}}Jl.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Jl({items:e,typeName:et.ZodTuple,rest:null,...ot(t)})};class rP extends vt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Be.map)return Pe(r,{code:Ae.invalid_type,expected:Be.map,received:r.parsedType}),Je;const i=this._def.keyType,a=this._def.valueType,s=[...r.data.entries()].map(([u,c],f)=>({key:i._parse(new Us(r,u,r.path,[f,"key"])),value:a._parse(new Us(r,c,r.path,[f,"value"]))}));if(r.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const c of s){const f=await c.key,h=await c.value;if(f.status==="aborted"||h.status==="aborted")return Je;(f.status==="dirty"||h.status==="dirty")&&n.dirty(),u.set(f.value,h.value)}return{status:n.value,value:u}})}else{const u=new Map;for(const c of s){const f=c.key,h=c.value;if(f.status==="aborted"||h.status==="aborted")return Je;(f.status==="dirty"||h.status==="dirty")&&n.dirty(),u.set(f.value,h.value)}return{status:n.value,value:u}}}}rP.create=(e,t,n)=>new rP({valueType:t,keyType:e,typeName:et.ZodMap,...ot(n)});class Sh extends vt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Be.set)return Pe(r,{code:Ae.invalid_type,expected:Be.set,received:r.parsedType}),Je;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(Pe(r,{code:Ae.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(Pe(r,{code:Ae.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const a=this._def.valueType;function s(c){const f=new Set;for(const h of c){if(h.status==="aborted")return Je;h.status==="dirty"&&n.dirty(),f.add(h.value)}return{status:n.value,value:f}}const u=[...r.data.values()].map((c,f)=>a._parse(new Us(r,c,r.path,f)));return r.common.async?Promise.all(u).then(c=>s(c)):s(u)}min(t,n){return new Sh({...this._def,minSize:{value:t,message:He.toString(n)}})}max(t,n){return new Sh({...this._def,maxSize:{value:t,message:He.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Sh.create=(e,t)=>new Sh({valueType:e,minSize:null,maxSize:null,typeName:et.ZodSet,...ot(t)});class iP extends vt{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}iP.create=(e,t)=>new iP({getter:e,typeName:et.ZodLazy,...ot(t)});class fS extends vt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return Pe(n,{received:n.data,code:Ae.invalid_literal,expected:this._def.value}),Je}return{status:"valid",value:t.data}}get value(){return this._def.value}}fS.create=(e,t)=>new fS({value:e,typeName:et.ZodLiteral,...ot(t)});function jz(e,t){return new Yc({values:e,typeName:et.ZodEnum,...ot(t)})}class Yc extends vt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return Pe(n,{expected:wt.joinValues(r),received:n.parsedType,code:Ae.invalid_type}),Je}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return Pe(n,{received:n.data,code:Ae.invalid_enum_value,options:r}),Je}return Si(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Yc.create(t,{...this._def,...n})}exclude(t,n=this._def){return Yc.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Yc.create=jz;class aP extends vt{_parse(t){const n=wt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Be.string&&r.parsedType!==Be.number){const i=wt.objectValues(n);return Pe(r,{expected:wt.joinValues(i),received:r.parsedType,code:Ae.invalid_type}),Je}if(this._cache||(this._cache=new Set(wt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=wt.objectValues(n);return Pe(r,{received:r.data,code:Ae.invalid_enum_value,options:i}),Je}return Si(t.data)}get enum(){return this._def.values}}aP.create=(e,t)=>new aP({values:e,typeName:et.ZodNativeEnum,...ot(t)});class _v extends vt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Be.promise&&n.common.async===!1)return Pe(n,{code:Ae.invalid_type,expected:Be.promise,received:n.parsedType}),Je;const r=n.parsedType===Be.promise?n.data:Promise.resolve(n.data);return Si(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}_v.create=(e,t)=>new _v({type:e,typeName:et.ZodPromise,...ot(t)});class Wc extends vt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===et.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,a={addIssue:s=>{Pe(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const s=i.transform(r.data,a);if(r.common.async)return Promise.resolve(s).then(async u=>{if(n.value==="aborted")return Je;const c=await this._def.schema._parseAsync({data:u,path:r.path,parent:r});return c.status==="aborted"?Je:c.status==="dirty"||n.value==="dirty"?rh(c.value):c});{if(n.value==="aborted")return Je;const u=this._def.schema._parseSync({data:s,path:r.path,parent:r});return u.status==="aborted"?Je:u.status==="dirty"||n.value==="dirty"?rh(u.value):u}}if(i.type==="refinement"){const s=u=>{const c=i.refinement(u,a);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return u};if(r.common.async===!1){const u=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return u.status==="aborted"?Je:(u.status==="dirty"&&n.dirty(),s(u.value),{status:n.value,value:u.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(u=>u.status==="aborted"?Je:(u.status==="dirty"&&n.dirty(),s(u.value).then(()=>({status:n.value,value:u.value}))))}if(i.type==="transform")if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Vc(s))return Je;const u=i.transform(s.value,a);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:u}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>Vc(s)?Promise.resolve(i.transform(s.value,a)).then(u=>({status:n.value,value:u})):Je);wt.assertNever(i)}}Wc.create=(e,t,n)=>new Wc({schema:e,typeName:et.ZodEffects,effect:t,...ot(n)});Wc.createWithPreprocess=(e,t,n)=>new Wc({schema:t,effect:{type:"preprocess",transform:e},typeName:et.ZodEffects,...ot(n)});class Ls extends vt{_parse(t){return this._getType(t)===Be.undefined?Si(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ls.create=(e,t)=>new Ls({innerType:e,typeName:et.ZodOptional,...ot(t)});class Qc extends vt{_parse(t){return this._getType(t)===Be.null?Si(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Qc.create=(e,t)=>new Qc({innerType:e,typeName:et.ZodNullable,...ot(t)});class dS extends vt{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Be.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}dS.create=(e,t)=>new dS({innerType:e,typeName:et.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ot(t)});class hS extends vt{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return yv(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new yo(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new yo(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}hS.create=(e,t)=>new hS({innerType:e,typeName:et.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ot(t)});class oP extends vt{_parse(t){if(this._getType(t)!==Be.nan){const r=this._getOrReturnCtx(t);return Pe(r,{code:Ae.invalid_type,expected:Be.nan,received:r.parsedType}),Je}return{status:"valid",value:t.data}}}oP.create=e=>new oP({typeName:et.ZodNaN,...ot(e)});class sQ extends vt{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class J2 extends vt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Je:a.status==="dirty"?(n.dirty(),rh(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?Je:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new J2({in:t,out:n,typeName:et.ZodPipeline})}}class pS extends vt{_parse(t){const n=this._def.innerType._parse(t),r=i=>(Vc(i)&&(i.value=Object.freeze(i.value)),i);return yv(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}pS.create=(e,t)=>new pS({innerType:e,typeName:et.ZodReadonly,...ot(t)});var et;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(et||(et={}));const wke=so.create,xke=Zl.create;Xl.create;const _ke=bv.create;Kc.create;Fs.create;const Ske=ha.create,Eke=bn.create;wv.create;xv.create;Jl.create;const Ake=fS.create,kke=Yc.create;_v.create;Ls.create;Qc.create;const Cke={string:(e=>so.create({...e,coerce:!0})),number:(e=>Zl.create({...e,coerce:!0})),boolean:(e=>bv.create({...e,coerce:!0})),bigint:(e=>Xl.create({...e,coerce:!0})),date:(e=>Kc.create({...e,coerce:!0}))};function Wn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var lQ=typeof Symbol=="function"&&Symbol.observable||"@@observable",sP=lQ,xw=()=>Math.random().toString(36).substring(7).split("").join("."),uQ={INIT:`@@redux/INIT${xw()}`,REPLACE:`@@redux/REPLACE${xw()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${xw()}`},Sv=uQ;function Zc(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function $z(e,t,n){if(typeof e!="function")throw new Error(Wn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Wn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Wn(1));return n($z)(e,t)}let r=e,i=t,a=new Map,s=a,u=0,c=!1;function f(){s===a&&(s=new Map,a.forEach((w,_)=>{s.set(_,w)}))}function h(){if(c)throw new Error(Wn(3));return i}function p(w){if(typeof w!="function")throw new Error(Wn(4));if(c)throw new Error(Wn(5));let _=!0;f();const C=u++;return s.set(C,w),function(){if(_){if(c)throw new Error(Wn(6));_=!1,f(),s.delete(C),a=null}}}function g(w){if(!Zc(w))throw new Error(Wn(7));if(typeof w.type>"u")throw new Error(Wn(8));if(typeof w.type!="string")throw new Error(Wn(17));if(c)throw new Error(Wn(9));try{c=!0,i=r(i,w)}finally{c=!1}return(a=s).forEach(C=>{C()}),w}function v(w){if(typeof w!="function")throw new Error(Wn(10));r=w,g({type:Sv.REPLACE})}function y(){const w=p;return{subscribe(_){if(typeof _!="object"||_===null)throw new Error(Wn(11));function C(){const S=_;S.next&&S.next(h())}return C(),{unsubscribe:w(C)}},[sP](){return this}}}return g({type:Sv.INIT}),{dispatch:g,subscribe:p,getState:h,replaceReducer:v,[sP]:y}}function cQ(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Sv.INIT})>"u")throw new Error(Wn(12));if(typeof n(void 0,{type:Sv.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Wn(13))})}function eE(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const s=t[a];typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;try{cQ(n)}catch(a){i=a}return function(s={},u){if(i)throw i;let c=!1;const f={};for(let h=0;h<r.length;h++){const p=r[h],g=n[p],v=s[p],y=g(v,u);if(typeof y>"u")throw u&&u.type,new Error(Wn(14));f[p]=y,c=c||y!==v}return c=c||r.length!==Object.keys(s).length,c?f:s}}function Ev(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function fQ(...e){return t=>(n,r)=>{const i=t(n,r);let a=()=>{throw new Error(Wn(15))};const s={getState:i.getState,dispatch:(c,...f)=>a(c,...f)},u=e.map(c=>c(s));return a=Ev(...u)(i.dispatch),{...i,dispatch:a}}}function tE(e){return Zc(e)&&"type"in e&&typeof e.type=="string"}var nE=Symbol.for("immer-nothing"),fh=Symbol.for("immer-draftable"),zn=Symbol.for("immer-state");function Zn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Kr=Object,eu=Kr.getPrototypeOf,Eh="constructor",ip="prototype",mS="configurable",Av="enumerable",tv="writable",Ah="value",Qr=e=>!!e&&!!e[zn];function Zr(e){var t;return e?Bz(e)||op(e)||!!e[fh]||!!((t=e[Eh])!=null&&t[fh])||sp(e)||lp(e):!1}var dQ=Kr[ip][Eh].toString(),lP=new WeakMap;function Bz(e){if(!e||!Xc(e))return!1;const t=eu(e);if(t===null||t===Kr[ip])return!0;const n=Kr.hasOwnProperty.call(t,Eh)&&t[Eh];if(n===Object)return!0;if(!Tl(n))return!1;let r=lP.get(n);return r===void 0&&(r=Function.toString.call(n),lP.set(n,r)),r===dQ}function hQ(e){return Qr(e)||Zn(15,e),e[zn].base_}function ap(e,t,n=!0){tu(e)===0?(n?Reflect.ownKeys(e):Kr.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function tu(e){const t=e[zn];return t?t.type_:op(e)?1:sp(e)?2:lp(e)?3:0}var dh=(e,t,n=tu(e))=>n===2?e.has(t):Kr[ip].hasOwnProperty.call(e,t),Ja=(e,t,n=tu(e))=>n===2?e.get(t):e[t],kv=(e,t,n,r=tu(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function pQ(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var op=Array.isArray,sp=e=>e instanceof Map,lp=e=>e instanceof Set,Xc=e=>typeof e=="object",Tl=e=>typeof e=="function",_w=e=>typeof e=="boolean";function mQ(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var gQ=e=>Xc(e)?e==null?void 0:e[zn]:null,eo=e=>e.copy_||e.base_,rE=e=>e.modified_?e.copy_:e.base_;function gS(e,t){if(sp(e))return new Map(e);if(lp(e))return new Set(e);if(op(e))return Array[ip].slice.call(e);const n=Bz(e);if(t===!0||t==="class_only"&&!n){const r=Kr.getOwnPropertyDescriptors(e);delete r[zn];let i=Reflect.ownKeys(r);for(let a=0;a<i.length;a++){const s=i[a],u=r[s];u[tv]===!1&&(u[tv]=!0,u[mS]=!0),(u.get||u.set)&&(r[s]={[mS]:!0,[tv]:!0,[Av]:u[Av],[Ah]:e[s]})}return Kr.create(eu(e),r)}else{const r=eu(e);if(r!==null&&n)return{...e};const i=Kr.create(r);return Kr.assign(i,e)}}function iE(e,t=!1){return $y(e)||Qr(e)||!Zr(e)||(tu(e)>1&&Kr.defineProperties(e,{set:vg,add:vg,clear:vg,delete:vg}),Kr.freeze(e),t&&ap(e,(n,r)=>{iE(r,!0)},!1)),e}function vQ(){Zn(2)}var vg={[Ah]:vQ};function $y(e){return e===null||!Xc(e)?!0:Kr.isFrozen(e)}var Cv="MapSet",Ov="Patches",uP="ArrayMethods",Tv={};function nu(e){const t=Tv[e];return t||Zn(0,e),t}var cP=e=>!!Tv[e];function yQ(e,t){Tv[e]||(Tv[e]=t)}var kh,Uz=()=>kh,bQ=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:cP(Cv)?nu(Cv):void 0,arrayMethodsPlugin_:cP(uP)?nu(uP):void 0});function fP(e,t){t&&(e.patchPlugin_=nu(Ov),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function vS(e){yS(e),e.drafts_.forEach(wQ),e.drafts_=null}function yS(e){e===kh&&(kh=e.parent_)}var dP=e=>kh=bQ(kh,e);function wQ(e){const t=e[zn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function hP(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[zn].modified_&&(vS(t),Zn(4)),Zr(e)&&(e=pP(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[zn].base_,e,t)}else e=pP(t,n);return xQ(t,e,!0),vS(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==nE?e:void 0}function pP(e,t){if($y(t))return t;const n=t[zn];if(!n)return Mv(t,e.handledSet_,e);if(!By(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);Gz(n,e)}return n.copy_}function xQ(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&iE(t,n)}function Fz(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var By=(e,t)=>e.scope_===t,_Q=[];function Hz(e,t,n,r){const i=eo(e),a=e.type_;if(r!==void 0&&Ja(i,r,a)===t){kv(i,r,n,a);return}if(!e.draftLocations_){const u=e.draftLocations_=new Map;ap(i,(c,f)=>{if(Qr(f)){const h=u.get(f)||[];h.push(c),u.set(f,h)}})}const s=e.draftLocations_.get(t)??_Q;for(const u of s)kv(i,u,n,a)}function SQ(e,t,n){e.callbacks_.push(function(i){var u;const a=t;if(!a||!By(a,i))return;(u=i.mapSetPlugin_)==null||u.fixSetContents(a);const s=rE(a);Hz(e,a.draft_??a,s,n),Gz(a,i)})}function Gz(e,t){var r;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((r=e.assigned_)==null?void 0:r.size)??0)>0)){const{patchPlugin_:i}=t;if(i){const a=i.getPath(e);a&&i.generatePatches_(e,a,t)}Fz(e)}}function EQ(e,t,n){const{scope_:r}=e;if(Qr(n)){const i=n[zn];By(i,r)&&i.callbacks_.push(function(){nv(e);const s=rE(i);Hz(e,n,s,t)})}else Zr(n)&&e.callbacks_.push(function(){const a=eo(e);e.type_===3?a.has(n)&&Mv(n,r.handledSet_,r):Ja(a,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Mv(Ja(e.copy_,t,e.type_),r.handledSet_,r)})}function Mv(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Qr(e)||t.has(e)||!Zr(e)||$y(e)||(t.add(e),ap(e,(r,i)=>{if(Qr(i)){const a=i[zn];if(By(a,n)){const s=rE(a);kv(e,r,s,e.type_),Fz(a)}}else Zr(i)&&Mv(i,t,n)})),e}function AQ(e,t){const n=op(e),r={type_:n?1:0,scope_:t?t.scope_:Uz(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,a=Pv;n&&(i=[r],a=Ch);const{revoke:s,proxy:u}=Proxy.revocable(i,a);return r.draft_=u,r.revoke_=s,[u,r]}var Pv={get(e,t){if(t===zn)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n!=null&&n.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const i=eo(e);if(!dh(i,t,e.type_))return kQ(e,i,t);const a=i[t];if(e.finalized_||!Zr(a)||r&&e.operationMethod&&(n!=null&&n.isMutatingArrayMethod(e.operationMethod))&&mQ(t))return a;if(a===Sw(e.base_,t)){nv(e);const s=e.type_===1?+t:t,u=wS(e.scope_,a,e,s);return e.copy_[s]=u}return a},has(e,t){return t in eo(e)},ownKeys(e){return Reflect.ownKeys(eo(e))},set(e,t,n){const r=qz(eo(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Sw(eo(e),t),a=i==null?void 0:i[zn];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(pQ(n,i)&&(n!==void 0||dh(e.base_,t,e.type_)))return!0;nv(e),bS(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),EQ(e,t,n)),!0},deleteProperty(e,t){return nv(e),Sw(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),bS(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=eo(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[tv]:!0,[mS]:e.type_!==1||t!=="length",[Av]:r[Av],[Ah]:n[t]}},defineProperty(){Zn(11)},getPrototypeOf(e){return eu(e.base_)},setPrototypeOf(){Zn(12)}},Ch={};for(let e in Pv){let t=Pv[e];Ch[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}Ch.deleteProperty=function(e,t){return Ch.set.call(this,e,t,void 0)};Ch.set=function(e,t,n){return Pv.set.call(this,e[0],t,n,e[0])};function Sw(e,t){const n=e[zn];return(n?eo(n):e)[t]}function kQ(e,t,n){var i;const r=qz(t,n);return r?Ah in r?r[Ah]:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function qz(e,t){if(!(t in e))return;let n=eu(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=eu(n)}}function bS(e){e.modified_||(e.modified_=!0,e.parent_&&bS(e.parent_))}function nv(e){e.copy_||(e.assigned_=new Map,e.copy_=gS(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var CQ=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(n,r,i)=>{if(Tl(n)&&!Tl(r)){const s=r;r=n;const u=this;return function(f=s,...h){return u.produce(f,p=>r.call(this,p,...h))}}Tl(r)||Zn(6),i!==void 0&&!Tl(i)&&Zn(7);let a;if(Zr(n)){const s=dP(this),u=wS(s,n,void 0);let c=!0;try{a=r(u),c=!1}finally{c?vS(s):yS(s)}return fP(s,i),hP(a,s)}else if(!n||!Xc(n)){if(a=r(n),a===void 0&&(a=n),a===nE&&(a=void 0),this.autoFreeze_&&iE(a,!0),i){const s=[],u=[];nu(Ov).generateReplacementPatches_(n,a,{patches_:s,inversePatches_:u}),i(s,u)}return a}else Zn(1,n)},this.produceWithPatches=(n,r)=>{if(Tl(n))return(u,...c)=>this.produceWithPatches(u,f=>n(f,...c));let i,a;return[this.produce(n,r,(u,c)=>{i=u,a=c}),i,a]},_w(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),_w(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),_w(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Zr(t)||Zn(8),Qr(t)&&(t=Yr(t));const n=dP(this),r=wS(n,t,void 0);return r[zn].isManual_=!0,yS(n),r}finishDraft(t,n){const r=t&&t[zn];(!r||!r.isManual_)&&Zn(9);const{scope_:i}=r;return fP(i,n),hP(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,n){let r;for(r=n.length-1;r>=0;r--){const a=n[r];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}r>-1&&(n=n.slice(r+1));const i=nu(Ov).applyPatches_;return Qr(t)?i(t,n):this.produce(t,a=>i(a,n))}};function wS(e,t,n,r){const[i,a]=sp(t)?nu(Cv).proxyMap_(t,n):lp(t)?nu(Cv).proxySet_(t,n):AQ(t,n);return((n==null?void 0:n.scope_)??Uz()).drafts_.push(i),a.callbacks_=(n==null?void 0:n.callbacks_)??[],a.key_=r,n&&r!==void 0?SQ(n,a,r):a.callbacks_.push(function(c){var h;(h=c.mapSetPlugin_)==null||h.fixSetContents(a);const{patchPlugin_:f}=c;a.modified_&&f&&f.generatePatches_(a,[],c)}),i}function Yr(e){return Qr(e)||Zn(10,e),Vz(e)}function Vz(e){if(!Zr(e)||$y(e))return e;const t=e[zn];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=gS(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=gS(e,!0);return ap(n,(i,a)=>{kv(n,i,Vz(a))},r),t&&(t.finalized_=!1),n}function OQ(){function t(y,b=[]){if(y.key_!==void 0){const w=y.parent_.copy_??y.parent_.base_,_=gQ(Ja(w,y.key_)),C=Ja(w,y.key_);if(C===void 0||C!==y.draft_&&C!==y.base_&&C!==y.copy_||_!=null&&_.base_!==y.base_)return null;const E=y.parent_.type_===3;let S;if(E){const T=y.parent_;S=Array.from(T.drafts_.keys()).indexOf(y.key_)}else S=y.key_;if(!(E&&w.size>S||dh(w,S)))return null;b.push(S)}if(y.parent_)return t(y.parent_,b);b.reverse();try{n(y.copy_,b)}catch{return null}return b}function n(y,b){let w=y;for(let _=0;_<b.length-1;_++){const C=b[_];if(w=Ja(w,C),!Xc(w)||w===null)throw new Error(`Cannot resolve path at '${b.join("/")}'`)}return w}const r="replace",i="add",a="remove";function s(y,b,w){if(y.scope_.processedForPatches_.has(y))return;y.scope_.processedForPatches_.add(y);const{patches_:_,inversePatches_:C}=w;switch(y.type_){case 0:case 2:return c(y,b,_,C);case 1:return u(y,b,_,C);case 3:return f(y,b,_,C)}}function u(y,b,w,_){let{base_:C,assigned_:E}=y,S=y.copy_;S.length<C.length&&([C,S]=[S,C],[w,_]=[_,w]);const T=y.allIndicesReassigned_===!0;for(let O=0;O<C.length;O++){const M=S[O],P=C[O];if((T||(E==null?void 0:E.get(O.toString())))&&M!==P){const z=M==null?void 0:M[zn];if(z&&z.modified_)continue;const D=b.concat([O]);w.push({op:r,path:D,value:v(M)}),_.push({op:r,path:D,value:v(P)})}}for(let O=C.length;O<S.length;O++){const M=b.concat([O]);w.push({op:i,path:M,value:v(S[O])})}for(let O=S.length-1;C.length<=O;--O){const M=b.concat([O]);_.push({op:a,path:M})}}function c(y,b,w,_){const{base_:C,copy_:E,type_:S}=y;ap(y.assigned_,(T,O)=>{const M=Ja(C,T,S),P=Ja(E,T,S),R=O?dh(C,T)?r:i:a;if(M===P&&R===r)return;const z=b.concat(T);w.push(R===a?{op:R,path:z}:{op:R,path:z,value:v(P)}),_.push(R===i?{op:a,path:z}:R===a?{op:i,path:z,value:v(M)}:{op:r,path:z,value:v(M)})})}function f(y,b,w,_){let{base_:C,copy_:E}=y,S=0;C.forEach(T=>{if(!E.has(T)){const O=b.concat([S]);w.push({op:a,path:O,value:T}),_.unshift({op:i,path:O,value:T})}S++}),S=0,E.forEach(T=>{if(!C.has(T)){const O=b.concat([S]);w.push({op:i,path:O,value:T}),_.unshift({op:a,path:O,value:T})}S++})}function h(y,b,w){const{patches_:_,inversePatches_:C}=w;_.push({op:r,path:[],value:b===nE?void 0:b}),C.push({op:r,path:[],value:y})}function p(y,b){return b.forEach(w=>{const{path:_,op:C}=w;let E=y;for(let M=0;M<_.length-1;M++){const P=tu(E);let R=_[M];typeof R!="string"&&typeof R!="number"&&(R=""+R),(P===0||P===1)&&(R==="__proto__"||R===Eh)&&Zn(19),Tl(E)&&R===ip&&Zn(19),E=Ja(E,R),Xc(E)||Zn(18,_.join("/"))}const S=tu(E),T=g(w.value),O=_[_.length-1];switch(C){case r:switch(S){case 2:return E.set(O,T);case 3:Zn(16);default:return E[O]=T}case i:switch(S){case 1:return O==="-"?E.push(T):E.splice(O,0,T);case 2:return E.set(O,T);case 3:return E.add(T);default:return E[O]=T}case a:switch(S){case 1:return E.splice(O,1);case 2:return E.delete(O);case 3:return E.delete(w.value);default:return delete E[O]}default:Zn(17,C)}}),y}function g(y){if(!Zr(y))return y;if(op(y))return y.map(g);if(sp(y))return new Map(Array.from(y.entries()).map(([w,_])=>[w,g(_)]));if(lp(y))return new Set(Array.from(y).map(g));const b=Object.create(eu(y));for(const w in y)b[w]=g(y[w]);return dh(y,fh)&&(b[fh]=y[fh]),b}function v(y){return Qr(y)?g(y):y}yQ(Ov,{applyPatches_:p,generatePatches_:s,generateReplacementPatches_:h,getPath:t})}var Oh=new CQ,up=Oh.produce,Kz=Oh.produceWithPatches.bind(Oh),mP=Oh.applyPatches.bind(Oh);function TQ(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function MQ(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function PQ(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var gP=e=>Array.isArray(e)?e:[e];function NQ(e){const t=Array.isArray(e[0])?e[0]:e;return PQ(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function RQ(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var DQ=class{constructor(e){this.value=e}deref(){return this.value}},IQ=typeof WeakRef<"u"?WeakRef:DQ,LQ=0,vP=1;function yg(){return{s:LQ,v:void 0,o:null,p:null}}function Nv(e,t={}){let n=yg();const{resultEqualityCheck:r}=t;let i,a=0;function s(){var p;let u=n;const{length:c}=arguments;for(let g=0,v=c;g<v;g++){const y=arguments[g];if(typeof y=="function"||typeof y=="object"&&y!==null){let b=u.o;b===null&&(u.o=b=new WeakMap);const w=b.get(y);w===void 0?(u=yg(),b.set(y,u)):u=w}else{let b=u.p;b===null&&(u.p=b=new Map);const w=b.get(y);w===void 0?(u=yg(),b.set(y,u)):u=w}}const f=u;let h;if(u.s===vP)h=u.v;else if(h=e.apply(null,arguments),a++,r){const g=((p=i==null?void 0:i.deref)==null?void 0:p.call(i))??i;g!=null&&r(g,h)&&(h=g,a!==0&&a--),i=typeof h=="object"&&h!==null||typeof h=="function"?new IQ(h):h}return f.s=vP,f.v=h,h}return s.clearCache=()=>{n=yg(),s.resetResultsCount()},s.resultsCount=()=>a,s.resetResultsCount=()=>{a=0},s}function zQ(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let a=0,s=0,u,c={},f=i.pop();typeof f=="object"&&(c=f,f=i.pop()),TQ(f,`createSelector expects an output function after the inputs, but received: [${typeof f}]`);const h={...n,...c},{memoize:p,memoizeOptions:g=[],argsMemoize:v=Nv,argsMemoizeOptions:y=[]}=h,b=gP(g),w=gP(y),_=NQ(i),C=p(function(){return a++,f.apply(null,arguments)},...b),E=v(function(){s++;const T=RQ(_,arguments);return u=C.apply(null,T),u},...w);return Object.assign(E,{resultFunc:f,memoizedResultFunc:C,dependencies:_,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>u,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:p,argsMemoize:v})};return Object.assign(r,{withTypes:()=>r}),r}var le=zQ(Nv),jQ=Object.assign((e,t=le)=>{MQ(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(a=>e[a]);return t(r,(...a)=>a.reduce((s,u,c)=>(s[n[c]]=u,s),{}))},{withTypes:()=>jQ});function Yz(e){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,e):i(a)}var $Q=Yz(),BQ=Yz,UQ=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ev:Ev.apply(null,arguments)},FQ=e=>e&&typeof e.match=="function";function on(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(er(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>tE(r)&&r.type===e,n}var Wz=class ih extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,ih.prototype)}static get[Symbol.species](){return ih}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new ih(...t[0].concat(this)):new ih(...t.concat(this))}};function yP(e){return Zr(e)?up(e,()=>{}):e}function bg(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function HQ(e){return typeof e=="boolean"}var GQ=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let s=new Wz;return n&&(HQ(n)?s.push($Q):s.push(BQ(n.extraArgument))),s},Uy="RTK_autoBatch",Et=()=>e=>({payload:e,meta:{[Uy]:!0}}),bP=e=>t=>{setTimeout(t,e)},Qz=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,a=!1,s=!1;const u=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:bP(10):e.type==="callback"?e.queueNotification:bP(e.timeout),f=()=>{s=!1,a&&(a=!1,u.forEach(h=>h()))};return Object.assign({},r,{subscribe(h){const p=()=>i&&h(),g=r.subscribe(p);return u.add(h),()=>{g(),u.delete(h)}},dispatch(h){var p;try{return i=!((p=h==null?void 0:h.meta)!=null&&p[Uy]),a=!i,a&&(s||(s=!0,c(f))),r.dispatch(h)}finally{i=!0}}})},qQ=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Wz(e);return r&&i.push(Qz(typeof r=="object"?r:void 0)),i};function VQ(e){const t=GQ(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:s=void 0,enhancers:u=void 0}=e||{};let c;if(typeof n=="function")c=n;else if(Zc(n))c=eE(n);else throw new Error(er(1));let f;typeof r=="function"?f=r(t):f=t();let h=Ev;i&&(h=UQ({trace:!1,...typeof i=="object"&&i}));const p=fQ(...f),g=qQ(p);let v=typeof u=="function"?u(g):g();const y=h(...v);return $z(c,s,y)}function Zz(e){const t={},n=[];let r;const i={addCase(a,s){const u=typeof a=="string"?a:a.type;if(!u)throw new Error(er(28));if(u in t)throw new Error(er(29));return t[u]=s,i},addAsyncThunk(a,s){return s.pending&&(t[a.pending.type]=s.pending),s.rejected&&(t[a.rejected.type]=s.rejected),s.fulfilled&&(t[a.fulfilled.type]=s.fulfilled),s.settled&&n.push({matcher:a.settled,reducer:s.settled}),i},addMatcher(a,s){return n.push({matcher:a,reducer:s}),i},addDefaultCase(a){return r=a,i}};return e(i),[t,n,r]}function KQ(e){return typeof e=="function"}function YQ(e,t){let[n,r,i]=Zz(t),a;if(KQ(e))a=()=>yP(e());else{const u=yP(e);a=()=>u}function s(u=a(),c){let f=[n[c.type],...r.filter(({matcher:h})=>h(c)).map(({reducer:h})=>h)];return f.filter(h=>!!h).length===0&&(f=[i]),f.reduce((h,p)=>{if(p)if(Qr(h)){const v=p(h,c);return v===void 0?h:v}else{if(Zr(h))return up(h,g=>p(g,c));{const g=p(h,c);if(g===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}}return h},u)}return s.getInitialState=a,s}var Xz=(e,t)=>FQ(e)?e.match(t):e(t);function bo(...e){return t=>e.some(n=>Xz(n,t))}function hh(...e){return t=>e.every(n=>Xz(n,t))}function Fy(e,t){if(!e||!e.meta)return!1;const n=typeof e.meta.requestId=="string",r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function cp(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function aE(...e){return e.length===0?t=>Fy(t,["pending"]):cp(e)?bo(...e.map(t=>t.pending)):aE()(e[0])}function Jc(...e){return e.length===0?t=>Fy(t,["rejected"]):cp(e)?bo(...e.map(t=>t.rejected)):Jc()(e[0])}function Hy(...e){const t=n=>n&&n.meta&&n.meta.rejectedWithValue;return e.length===0?hh(Jc(...e),t):cp(e)?hh(Jc(...e),t):Hy()(e[0])}function Hs(...e){return e.length===0?t=>Fy(t,["fulfilled"]):cp(e)?bo(...e.map(t=>t.fulfilled)):Hs()(e[0])}function xS(...e){return e.length===0?t=>Fy(t,["pending","fulfilled","rejected"]):cp(e)?bo(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):xS()(e[0])}var WQ="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Gy=(e=21)=>{let t="",n=e;for(;n--;)t+=WQ[Math.random()*64|0];return t},QQ=["name","message","stack","code"],Ew=class{constructor(e,t){ic(this,"_type");this.payload=e,this.meta=t}},wP=class{constructor(e,t){ic(this,"_type");this.payload=e,this.meta=t}},ZQ=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of QQ)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},xP="External signal was aborted",_P=(()=>{function e(t,n,r){const i=on(t+"/fulfilled",(c,f,h,p)=>({payload:c,meta:{...p||{},arg:h,requestId:f,requestStatus:"fulfilled"}})),a=on(t+"/pending",(c,f,h)=>({payload:void 0,meta:{...h||{},arg:f,requestId:c,requestStatus:"pending"}})),s=on(t+"/rejected",(c,f,h,p,g)=>({payload:p,error:(r&&r.serializeError||ZQ)(c||"Rejected"),meta:{...g||{},arg:h,requestId:f,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"}}));function u(c,{signal:f}={}){return(h,p,g)=>{const v=r!=null&&r.idGenerator?r.idGenerator(c):Gy(),y=new AbortController;let b,w;function _(E){w=E,y.abort()}f&&(f.aborted?_(xP):f.addEventListener("abort",()=>_(xP),{once:!0}));const C=(async function(){var T,O;let E;try{let M=(T=r==null?void 0:r.condition)==null?void 0:T.call(r,c,{getState:p,extra:g});if(JQ(M)&&(M=await M),M===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const P=new Promise((R,z)=>{b=()=>{z({name:"AbortError",message:w||"Aborted"})},y.signal.addEventListener("abort",b,{once:!0})});h(a(v,c,(O=r==null?void 0:r.getPendingMeta)==null?void 0:O.call(r,{requestId:v,arg:c},{getState:p,extra:g}))),E=await Promise.race([P,Promise.resolve(n(c,{dispatch:h,getState:p,extra:g,requestId:v,signal:y.signal,abort:_,rejectWithValue:(R,z)=>new Ew(R,z),fulfillWithValue:(R,z)=>new wP(R,z)})).then(R=>{if(R instanceof Ew)throw R;return R instanceof wP?i(R.payload,v,c,R.meta):i(R,v,c)})])}catch(M){E=M instanceof Ew?s(null,v,c,M.payload,M.meta):s(M,v,c)}finally{b&&y.signal.removeEventListener("abort",b)}return r&&!r.dispatchConditionRejection&&s.match(E)&&E.meta.condition||h(E),E})();return Object.assign(C,{abort:_,requestId:v,arg:c,unwrap(){return C.then(XQ)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:i,settled:bo(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function XQ(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function JQ(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var eZ=Symbol.for("rtk-slice-createasyncthunk");function tZ(e,t){return`${e}/${t}`}function nZ({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[eZ];return function(i){const{name:a,reducerPath:s=a}=i;if(!a)throw new Error(er(11));const u=(typeof i.reducers=="function"?i.reducers(iZ()):i.reducers)||{},c=Object.keys(u),f={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},h={addCase(S,T){const O=typeof S=="string"?S:S.type;if(!O)throw new Error(er(12));if(O in f.sliceCaseReducersByType)throw new Error(er(13));return f.sliceCaseReducersByType[O]=T,h},addMatcher(S,T){return f.sliceMatchers.push({matcher:S,reducer:T}),h},exposeAction(S,T){return f.actionCreators[S]=T,h},exposeCaseReducer(S,T){return f.sliceCaseReducersByName[S]=T,h}};c.forEach(S=>{const T=u[S],O={reducerName:S,type:tZ(a,S),createNotation:typeof i.reducers=="function"};oZ(T)?lZ(O,T,h,t):aZ(O,T,h)});function p(){const[S={},T=[],O=void 0]=typeof i.extraReducers=="function"?Zz(i.extraReducers):[i.extraReducers],M={...S,...f.sliceCaseReducersByType};return YQ(i.initialState,P=>{for(let R in M)P.addCase(R,M[R]);for(let R of f.sliceMatchers)P.addMatcher(R.matcher,R.reducer);for(let R of T)P.addMatcher(R.matcher,R.reducer);O&&P.addDefaultCase(O)})}const g=S=>S,v=new Map,y=new WeakMap;let b;function w(S,T){return b||(b=p()),b(S,T)}function _(){return b||(b=p()),b.getInitialState()}function C(S,T=!1){function O(P){let R=P[S];return typeof R>"u"&&T&&(R=bg(y,O,_)),R}function M(P=g){const R=bg(v,T,()=>new WeakMap);return bg(R,P,()=>{const z={};for(const[D,N]of Object.entries(i.selectors??{}))z[D]=rZ(N,P,()=>bg(y,P,_),T);return z})}return{reducerPath:S,getSelectors:M,get selectors(){return M(O)},selectSlice:O}}const E={name:a,reducer:w,actions:f.actionCreators,caseReducers:f.sliceCaseReducersByName,getInitialState:_,...C(s),injectInto(S,{reducerPath:T,...O}={}){const M=T??s;return S.inject({reducerPath:M,reducer:w},O),{...E,...C(M,!0)}}};return E}}function rZ(e,t,n,r){function i(a,...s){let u=t(a);return typeof u>"u"&&r&&(u=n()),e(u,...s)}return i.unwrapped=e,i}var an=nZ();function iZ(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function aZ({type:e,reducerName:t,createNotation:n},r,i){let a,s;if("reducer"in r){if(n&&!sZ(r))throw new Error(er(17));a=r.reducer,s=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,s?on(e,s):on(e))}function oZ(e){return e._reducerDefinitionType==="asyncThunk"}function sZ(e){return e._reducerDefinitionType==="reducerWithPrepare"}function lZ({type:e,reducerName:t},n,r,i){if(!i)throw new Error(er(18));const{payloadCreator:a,fulfilled:s,pending:u,rejected:c,settled:f,options:h}=n,p=i(e,a,h);r.exposeAction(t,p),s&&r.addCase(p.fulfilled,s),u&&r.addCase(p.pending,u),c&&r.addCase(p.rejected,c),f&&r.addMatcher(p.settled,f),r.exposeCaseReducer(t,{fulfilled:s||wg,pending:u||wg,rejected:c||wg,settled:f||wg})}function wg(){}var uZ="task",Jz="listener",e5="completed",oE="cancelled",cZ=`task-${oE}`,fZ=`task-${e5}`,_S=`${Jz}-${oE}`,dZ=`${Jz}-${e5}`,qy=class{constructor(e){ic(this,"name","TaskAbortError");ic(this,"message");this.code=e,this.message=`${uZ} ${oE} (reason: ${e})`}},sE=(e,t)=>{if(typeof e!="function")throw new TypeError(er(32))},Rv=()=>{},t5=(e,t=Rv)=>(e.catch(t),e),n5=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),ql=e=>{if(e.aborted)throw new qy(e.reason)};function r5(e,t){let n=Rv;return new Promise((r,i)=>{const a=()=>i(new qy(e.reason));if(e.aborted){a();return}n=n5(e,a),t.finally(()=>n()).then(r,i)}).finally(()=>{n=Rv})}var hZ=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof qy?"cancelled":"rejected",error:n}}finally{t==null||t()}},Dv=e=>t=>t5(r5(e,t).then(n=>(ql(e),n))),i5=e=>{const t=Dv(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:Tc}=Object,SP={},Vy="listenerMiddleware",pZ=(e,t)=>{const n=r=>n5(e,()=>r.abort(e.reason));return(r,i)=>{sE(r);const a=new AbortController;n(a);const s=hZ(async()=>{ql(e),ql(a.signal);const u=await r({pause:Dv(a.signal),delay:i5(a.signal),signal:a.signal});return ql(a.signal),u},()=>a.abort(fZ));return i!=null&&i.autoJoin&&t.push(s.catch(Rv)),{result:Dv(e)(s),cancel(){a.abort(cZ)}}}},mZ=(e,t)=>{const n=async(r,i)=>{ql(t);let a=()=>{};const u=[new Promise((c,f)=>{let h=e({predicate:r,effect:(p,g)=>{g.unsubscribe(),c([p,g.getState(),g.getOriginalState()])}});a=()=>{h(),f()}})];i!=null&&u.push(new Promise(c=>setTimeout(c,i,null)));try{const c=await r5(t,Promise.race(u));return ql(t),c}finally{a()}};return(r,i)=>t5(n(r,i))},a5=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=on(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(er(21));return sE(a),{predicate:i,type:t,effect:a}},o5=Tc(e=>{const{type:t,predicate:n,effect:r}=a5(e);return{id:Gy(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(er(22))}}},{withTypes:()=>o5}),EP=(e,t)=>{const{type:n,effect:r,predicate:i}=a5(t);return Array.from(e.values()).find(a=>(typeof n=="string"?a.type===n:a.predicate===i)&&a.effect===r)},SS=e=>{e.pending.forEach(t=>{t.abort(_S)})},gZ=(e,t)=>()=>{for(const n of t.keys())SS(n);e.clear()},AP=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},s5=Tc(on(`${Vy}/add`),{withTypes:()=>s5}),vZ=on(`${Vy}/removeAll`),l5=Tc(on(`${Vy}/remove`),{withTypes:()=>l5}),yZ=(...e)=>{console.error(`${Vy}/error`,...e)},fp=(e={})=>{const t=new Map,n=new Map,r=v=>{const y=n.get(v)??0;n.set(v,y+1)},i=v=>{const y=n.get(v)??1;y===1?n.delete(v):n.set(v,y-1)},{extra:a,onError:s=yZ}=e;sE(s);const u=v=>(v.unsubscribe=()=>t.delete(v.id),t.set(v.id,v),y=>{v.unsubscribe(),y!=null&&y.cancelActive&&SS(v)}),c=v=>{const y=EP(t,v)??o5(v);return u(y)};Tc(c,{withTypes:()=>c});const f=v=>{const y=EP(t,v);return y&&(y.unsubscribe(),v.cancelActive&&SS(y)),!!y};Tc(f,{withTypes:()=>f});const h=async(v,y,b,w)=>{const _=new AbortController,C=mZ(c,_.signal),E=[];try{v.pending.add(_),r(v),await Promise.resolve(v.effect(y,Tc({},b,{getOriginalState:w,condition:(S,T)=>C(S,T).then(Boolean),take:C,delay:i5(_.signal),pause:Dv(_.signal),extra:a,signal:_.signal,fork:pZ(_.signal,E),unsubscribe:v.unsubscribe,subscribe:()=>{t.set(v.id,v)},cancelActiveListeners:()=>{v.pending.forEach((S,T,O)=>{S!==_&&(S.abort(_S),O.delete(S))})},cancel:()=>{_.abort(_S),v.pending.delete(_)},throwIfCancelled:()=>{ql(_.signal)}})))}catch(S){S instanceof qy||AP(s,S,{raisedBy:"effect"})}finally{await Promise.all(E),_.abort(dZ),i(v),v.pending.delete(_)}},p=gZ(t,n);return{middleware:v=>y=>b=>{if(!tE(b))return y(b);if(s5.match(b))return c(b.payload);if(vZ.match(b)){p();return}if(l5.match(b))return f(b.payload);let w=v.getState();const _=()=>{if(w===SP)throw new Error(er(23));return w};let C;try{if(C=y(b),t.size>0){const E=v.getState(),S=Array.from(t.values());for(const T of S){let O=!1;try{O=T.predicate(b,E,w)}catch(M){O=!1,AP(s,M,{raisedBy:"predicate"})}O&&h(T,b,v,_)}}}finally{w=SP}return C},startListening:c,stopListening:f,clearListeners:p}};function er(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var bZ=class extends Error{constructor(t){super(t[0].message);ic(this,"issues");this.name="SchemaError",this.issues=t}},u5=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(u5||{}),wo="uninitialized",ES="pending",ah="fulfilled",oh="rejected";function kP(e){return{status:e,isUninitialized:e===wo,isLoading:e===ES,isSuccess:e===ah,isError:e===oh}}var CP=Zc;function lE(e,t){if(e===t||!(CP(e)&&CP(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),r=Object.keys(e);let i=n.length===r.length;const a=Array.isArray(t)?[]:{};for(const s of n)a[s]=lE(e[s],t[s]),i&&(i=e[s]===a[s]);return i?e:a}function AS(e,t,n){return e.reduce((r,i,a)=>(t(i,a)&&r.push(n(i,a)),r),[]).flat()}function wZ(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}function uE(e){return e!=null}function OP(e){return[...(e==null?void 0:e.values())??[]].filter(uE)}function xZ(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function Iv(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var kS=()=>new Map,TP=class{constructor(e,t=void 0){this.value=e,this.meta=t}},Ky="__rtkq/",c5="online",f5="offline",_Z="focus",d5="focused",SZ="visibilitychange",Yy=on(`${Ky}${d5}`),cE=on(`${Ky}un${d5}`),Wy=on(`${Ky}${c5}`),fE=on(`${Ky}${f5}`),xg=!1;function Tke(e,t){function n(){const[r,i,a,s]=[Yy,cE,Wy,fE].map(f=>()=>e(f())),u=()=>{window.document.visibilityState==="visible"?r():i()};let c=()=>{xg=!1};if(!xg&&typeof window<"u"&&window.addEventListener){let f=function(p){Object.entries(h).forEach(([g,v])=>{p?window.addEventListener(g,v,!1):window.removeEventListener(g,v)})};const h={[_Z]:r,[SZ]:u,[c5]:a,[f5]:s};f(!0),xg=!0,c=()=>{f(!1),xg=!1}}return c}return n()}var dp="query",h5="mutation",p5="infinitequery";function Qy(e){return e.type===dp}function EZ(e){return e.type===h5}function Zy(e){return e.type===p5}function Lv(e){return Qy(e)||Zy(e)}function dE(e,t,n,r,i,a){const s=AZ(e)?e(t,n,r,i):e;return s?AS(s,uE,u=>a(m5(u))):[]}function AZ(e){return typeof e=="function"}function m5(e){return typeof e=="string"?{type:e}:e}function kZ(e,t){return e.catch(t)}var ef=(e,t)=>e.endpointDefinitions[t],Th=Symbol("forceQueryFn"),CS=e=>typeof e[Th]=="function";function CZ({serializeQueryArgs:e,queryThunk:t,infiniteQueryThunk:n,mutationThunk:r,api:i,context:a,getInternalState:s}){const u=S=>{var T;return(T=s(S))==null?void 0:T.runningQueries},c=S=>{var T;return(T=s(S))==null?void 0:T.runningMutations},{unsubscribeQueryResult:f,removeMutationResult:h,updateSubscriptionOptions:p}=i.internalActions;return{buildInitiateQuery:_,buildInitiateInfiniteQuery:C,buildInitiateMutation:E,getRunningQueryThunk:g,getRunningMutationThunk:v,getRunningQueriesThunk:y,getRunningMutationsThunk:b};function g(S,T){return O=>{var R;const M=ef(a,S),P=e({queryArgs:T,endpointDefinition:M,endpointName:S});return(R=u(O))==null?void 0:R.get(P)}}function v(S,T){return O=>{var M;return(M=c(O))==null?void 0:M.get(T)}}function y(){return S=>OP(u(S))}function b(){return S=>OP(c(S))}function w(S,T){const O=(M,{subscribe:P=!0,forceRefetch:R,subscriptionOptions:z,[Th]:D,...N}={})=>($,I)=>{var de;const U=e({queryArgs:M,endpointDefinition:T,endpointName:S});let j;const G={...N,type:dp,subscribe:P,forceRefetch:R,subscriptionOptions:z,endpointName:S,originalArgs:M,queryCacheKey:U,[Th]:D};if(Qy(T))j=t(G);else{const{direction:ie,initialPageParam:J,refetchCachedPages:pe}=N;j=n({...G,direction:ie,initialPageParam:J,refetchCachedPages:pe})}const q=i.endpoints[S].select(M),H=$(j),V=q(I()),{requestId:B,abort:K}=H,X=V.requestId!==B,ee=(de=u($))==null?void 0:de.get(U),ce=()=>q(I()),he=Object.assign(D?H.then(ce):X&&!ee?Promise.resolve(V):Promise.all([ee,H]).then(ce),{arg:M,requestId:B,subscriptionOptions:z,queryCacheKey:U,abort:K,async unwrap(){const ie=await he;if(ie.isError)throw ie.error;return ie.data},refetch:ie=>$(O(M,{subscribe:!1,forceRefetch:!0,...ie})),unsubscribe(){P&&$(f({queryCacheKey:U,requestId:B}))},updateSubscriptionOptions(ie){he.subscriptionOptions=ie,$(p({endpointName:S,requestId:B,queryCacheKey:U,options:ie}))}});if(!ee&&!X&&!D){const ie=u($);ie.set(U,he),he.then(()=>{ie.delete(U)})}return he};return O}function _(S,T){return w(S,T)}function C(S,T){return w(S,T)}function E(S){return(T,{track:O=!0,fixedCacheKey:M}={})=>(P,R)=>{const z=r({type:"mutation",endpointName:S,originalArgs:T,track:O,fixedCacheKey:M}),D=P(z),{requestId:N,abort:$,unwrap:I}=D,U=kZ(D.unwrap().then(H=>({data:H})),H=>({error:H})),j=()=>{P(h({requestId:N,fixedCacheKey:M}))},G=Object.assign(U,{arg:D.arg,requestId:N,abort:$,unwrap:I,reset:j}),q=c(P);return q.set(N,G),G.then(()=>{q.delete(N)}),M&&(q.set(M,G),G.then(()=>{q.get(M)===G&&q.delete(M)})),G}}}var g5=class extends bZ{constructor(e,t,n,r){super(e),this.value=t,this.schemaName=n,this._bqMeta=r}},yl=(e,t)=>Array.isArray(e)?e.includes(t):!!e;async function bl(e,t,n,r){const i=await e["~standard"].validate(t);if(i.issues)throw new g5(i.issues,t,n,r);return i.value}function MP(e){return e}var Rd=(e={})=>({...e,[Uy]:!0});function OZ({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:r,api:i,assertTagType:a,selectors:s,onSchemaFailure:u,catchSchemaFailure:c,skipSchemaValidation:f}){const h=(D,N,$,I)=>(U,j)=>{const G=n[D],q=r({queryArgs:N,endpointDefinition:G,endpointName:D});if(U(i.internalActions.queryResultPatched({queryCacheKey:q,patches:$})),!I)return;const H=i.endpoints[D].select(N)(j()),V=dE(G.providesTags,H.data,void 0,N,{},a);U(i.internalActions.updateProvidedBy([{queryCacheKey:q,providedTags:V}]))};function p(D,N,$=0){const I=[N,...D];return $&&I.length>$?I.slice(0,-1):I}function g(D,N,$=0){const I=[...D,N];return $&&I.length>$?I.slice(1):I}const v=(D,N,$,I=!0)=>(U,j)=>{const q=i.endpoints[D].select(N)(j()),H={patches:[],inversePatches:[],undo:()=>U(i.util.patchQueryData(D,N,H.inversePatches,I))};if(q.status===wo)return H;let V;if("data"in q)if(Zr(q.data)){const[B,K,X]=Kz(q.data,$);H.patches.push(...K),H.inversePatches.push(...X),V=B}else V=$(q.data),H.patches.push({op:"replace",path:[],value:V}),H.inversePatches.push({op:"replace",path:[],value:q.data});return H.patches.length===0||U(i.util.patchQueryData(D,N,H.patches,I)),H},y=(D,N,$)=>I=>I(i.endpoints[D].initiate(N,{subscribe:!1,forceRefetch:!0,[Th]:()=>({data:$})})),b=(D,N)=>D.query&&D[N]?D[N]:MP,w=async(D,{signal:N,abort:$,rejectWithValue:I,fulfillWithValue:U,dispatch:j,getState:G,extra:q})=>{var X,ee;const H=n[D.endpointName],{metaSchema:V,skipSchemaValidation:B=f}=H,K=D.type===dp;try{let ce=MP;const he={signal:N,abort:$,dispatch:j,getState:G,extra:q,endpoint:D.endpointName,type:D.type,forced:K?_(D,G()):void 0,queryCacheKey:K?D.queryCacheKey:void 0},de=K?D[Th]:void 0;let ie;const J=async(ye,te,Ce,Se)=>{if(te==null&&ye.pages.length)return Promise.resolve({data:ye});const Ye={queryArg:D.originalArgs,pageParam:te},Ie=await pe(Ye),ut=Se?p:g;return{data:{pages:ut(ye.pages,Ie.data,Ce),pageParams:ut(ye.pageParams,te,Ce)},meta:Ie.meta}};async function pe(ye){let te;const{extraOptions:Ce,argSchema:Se,rawResponseSchema:Ye,responseSchema:Ie}=H;if(Se&&!yl(B,"arg")&&(ye=await bl(Se,ye,"argSchema",{})),de?te=de():H.query?(ce=b(H,"transformResponse"),te=await t(H.query(ye),he,Ce)):te=await H.queryFn(ye,he,Ce,Zt=>t(Zt,he,Ce)),typeof process<"u",te.error)throw new TP(te.error,te.meta);let{data:ut}=te;Ye&&!yl(B,"rawResponse")&&(ut=await bl(Ye,te.data,"rawResponseSchema",te.meta));let jt=await ce(ut,te.meta,ye);return Ie&&!yl(B,"response")&&(jt=await bl(Ie,jt,"responseSchema",te.meta)),{...te,data:jt}}if(K&&"infiniteQueryOptions"in H){const{infiniteQueryOptions:ye}=H,{maxPages:te=1/0}=ye,Ce=D.refetchCachedPages??ye.refetchCachedPages??!0;let Se;const Ye={pages:[],pageParams:[]},Ie=(X=s.selectQueryEntry(G(),D.queryCacheKey))==null?void 0:X.data,jt=_(D,G())&&!D.direction||!Ie?Ye:Ie;if("direction"in D&&D.direction&&jt.pages.length){const Zt=D.direction==="backward",rr=(Zt?v5:OS)(ye,jt,D.originalArgs);Se=await J(jt,rr,te,Zt)}else{const{initialPageParam:Zt=ye.initialPageParam}=D,nr=(Ie==null?void 0:Ie.pageParams)??[],rr=nr[0]??Zt,W=nr.length;if(Se=await J(jt,rr,te),de&&(Se={data:Se.data.pages[0]}),Ce)for(let re=1;re<W;re++){const ae=OS(ye,Se.data,D.originalArgs);Se=await J(Se.data,ae,te)}}ie=Se}else ie=await pe(D.originalArgs);return V&&!yl(B,"meta")&&ie.meta&&(ie.meta=await bl(V,ie.meta,"metaSchema",ie.meta)),U(ie.data,Rd({fulfilledTimeStamp:Date.now(),baseQueryMeta:ie.meta}))}catch(ce){let he=ce;if(he instanceof TP){let de=b(H,"transformErrorResponse");const{rawErrorResponseSchema:ie,errorResponseSchema:J}=H;let{value:pe,meta:ye}=he;try{ie&&!yl(B,"rawErrorResponse")&&(pe=await bl(ie,pe,"rawErrorResponseSchema",ye)),V&&!yl(B,"meta")&&(ye=await bl(V,ye,"metaSchema",ye));let te=await de(pe,ye,D.originalArgs);return J&&!yl(B,"errorResponse")&&(te=await bl(J,te,"errorResponseSchema",ye)),I(te,Rd({baseQueryMeta:ye}))}catch(te){he=te}}try{if(he instanceof g5){const de={endpoint:D.endpointName,arg:D.originalArgs,type:D.type,queryCacheKey:K?D.queryCacheKey:void 0};(ee=H.onSchemaFailure)==null||ee.call(H,he,de),u==null||u(he,de);const{catchSchemaFailure:ie=c}=H;if(ie)return I(ie(he,de),Rd({baseQueryMeta:he._bqMeta}))}}catch(de){he=de}throw console.error(he),he}};function _(D,N){const $=s.selectQueryEntry(N,D.queryCacheKey),I=s.selectConfig(N).refetchOnMountOrArgChange,U=$==null?void 0:$.fulfilledTimeStamp,j=D.forceRefetch??(D.subscribe&&I);return j?j===!0||(Number(new Date)-Number(U))/1e3>=j:!1}const C=()=>_P(`${e}/executeQuery`,w,{getPendingMeta({arg:N}){const $=n[N.endpointName];return Rd({startedTimeStamp:Date.now(),...Zy($)?{direction:N.direction}:{}})},condition(N,{getState:$}){var B;const I=$(),U=s.selectQueryEntry(I,N.queryCacheKey),j=U==null?void 0:U.fulfilledTimeStamp,G=N.originalArgs,q=U==null?void 0:U.originalArgs,H=n[N.endpointName],V=N.direction;return CS(N)?!0:(U==null?void 0:U.status)==="pending"?!1:_(N,I)||Qy(H)&&((B=H==null?void 0:H.forceRefetch)!=null&&B.call(H,{currentArg:G,previousArg:q,endpointState:U,state:I}))?!0:!(j&&!V)},dispatchConditionRejection:!0}),E=C(),S=C(),T=_P(`${e}/executeMutation`,w,{getPendingMeta(){return Rd({startedTimeStamp:Date.now()})}}),O=D=>"force"in D,M=D=>"ifOlderThan"in D,P=(D,N,$={})=>(I,U)=>{const j=O($)&&$.force,G=M($)&&$.ifOlderThan,q=(V=!0)=>{const B={forceRefetch:V,subscribe:!1};return i.endpoints[D].initiate(N,B)},H=i.endpoints[D].select(N)(U());if(j)I(q());else if(G){const V=H==null?void 0:H.fulfilledTimeStamp;if(!V){I(q());return}(Number(new Date)-Number(new Date(V)))/1e3>=G&&I(q())}else I(q(!1))};function R(D){return N=>{var $,I;return((I=($=N==null?void 0:N.meta)==null?void 0:$.arg)==null?void 0:I.endpointName)===D}}function z(D,N){return{matchPending:hh(aE(D),R(N)),matchFulfilled:hh(Hs(D),R(N)),matchRejected:hh(Jc(D),R(N))}}return{queryThunk:E,mutationThunk:T,infiniteQueryThunk:S,prefetch:P,updateQueryData:v,upsertQueryData:y,patchQueryData:h,buildMatchThunkActions:z}}function OS(e,{pages:t,pageParams:n},r){const i=t.length-1;return e.getNextPageParam(t[i],t,n[i],n,r)}function v5(e,{pages:t,pageParams:n},r){var i;return(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,n[0],n,r)}function y5(e,t,n,r){return dE(n[e.meta.arg.endpointName][t],Hs(e)?e.payload:void 0,Hy(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function PP(e){return Qr(e)?Yr(e):e}function _g(e,t,n){const r=e[t];r&&n(r)}function Mh(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function NP(e,t,n){const r=e[Mh(t)];r&&n(r)}var Sg={};function TZ({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:r,context:{endpointDefinitions:i,apiUid:a,extractRehydrationInfo:s,hasRehydrationInfo:u},assertTagType:c,config:f}){const h=on(`${e}/resetApiState`);function p(R,z,D,N){var $;R[$=z.queryCacheKey]??(R[$]={status:wo,endpointName:z.endpointName}),_g(R,z.queryCacheKey,I=>{I.status=ES,I.requestId=D&&I.requestId?I.requestId:N.requestId,z.originalArgs!==void 0&&(I.originalArgs=z.originalArgs),I.startedTimeStamp=N.startedTimeStamp;const U=i[N.arg.endpointName];Zy(U)&&"direction"in z&&(I.direction=z.direction)})}function g(R,z,D,N){_g(R,z.arg.queryCacheKey,$=>{if($.requestId!==z.requestId&&!N)return;const{merge:I}=i[z.arg.endpointName];if($.status=ah,I)if($.data!==void 0){const{fulfilledTimeStamp:U,arg:j,baseQueryMeta:G,requestId:q}=z;let H=up($.data,V=>I(V,D,{arg:j.originalArgs,baseQueryMeta:G,fulfilledTimeStamp:U,requestId:q}));$.data=H}else $.data=D;else $.data=i[z.arg.endpointName].structuralSharing??!0?lE(Qr($.data)?hQ($.data):$.data,D):D;delete $.error,$.fulfilledTimeStamp=z.fulfilledTimeStamp})}const v=an({name:`${e}/queries`,initialState:Sg,reducers:{removeQueryResult:{reducer(R,{payload:{queryCacheKey:z}}){delete R[z]},prepare:Et()},cacheEntriesUpserted:{reducer(R,z){for(const D of z.payload){const{queryDescription:N,value:$}=D;p(R,N,!0,{arg:N,requestId:z.meta.requestId,startedTimeStamp:z.meta.timestamp}),g(R,{arg:N,requestId:z.meta.requestId,fulfilledTimeStamp:z.meta.timestamp,baseQueryMeta:{}},$,!0)}},prepare:R=>({payload:R.map(N=>{const{endpointName:$,arg:I,value:U}=N,j=i[$];return{queryDescription:{type:dp,endpointName:$,originalArgs:N.arg,queryCacheKey:r({queryArgs:I,endpointDefinition:j,endpointName:$})},value:U}}),meta:{[Uy]:!0,requestId:Gy(),timestamp:Date.now()}})},queryResultPatched:{reducer(R,{payload:{queryCacheKey:z,patches:D}}){_g(R,z,N=>{N.data=mP(N.data,D.concat())})},prepare:Et()}},extraReducers(R){R.addCase(t.pending,(z,{meta:D,meta:{arg:N}})=>{const $=CS(N);p(z,N,$,D)}).addCase(t.fulfilled,(z,{meta:D,payload:N})=>{const $=CS(D.arg);g(z,D,N,$)}).addCase(t.rejected,(z,{meta:{condition:D,arg:N,requestId:$},error:I,payload:U})=>{_g(z,N.queryCacheKey,j=>{if(!D){if(j.requestId!==$)return;j.status=oh,j.error=U??I}})}).addMatcher(u,(z,D)=>{const{queries:N}=s(D);for(const[$,I]of Object.entries(N))((I==null?void 0:I.status)===ah||(I==null?void 0:I.status)===oh)&&(z[$]=I)})}}),y=an({name:`${e}/mutations`,initialState:Sg,reducers:{removeMutationResult:{reducer(R,{payload:z}){const D=Mh(z);D in R&&delete R[D]},prepare:Et()}},extraReducers(R){R.addCase(n.pending,(z,{meta:D,meta:{requestId:N,arg:$,startedTimeStamp:I}})=>{$.track&&(z[Mh(D)]={requestId:N,status:ES,endpointName:$.endpointName,startedTimeStamp:I})}).addCase(n.fulfilled,(z,{payload:D,meta:N})=>{N.arg.track&&NP(z,N,$=>{$.requestId===N.requestId&&($.status=ah,$.data=D,$.fulfilledTimeStamp=N.fulfilledTimeStamp)})}).addCase(n.rejected,(z,{payload:D,error:N,meta:$})=>{$.arg.track&&NP(z,$,I=>{I.requestId===$.requestId&&(I.status=oh,I.error=D??N)})}).addMatcher(u,(z,D)=>{const{mutations:N}=s(D);for(const[$,I]of Object.entries(N))((I==null?void 0:I.status)===ah||(I==null?void 0:I.status)===oh)&&$!==(I==null?void 0:I.requestId)&&(z[$]=I)})}}),b={tags:{},keys:{}},w=an({name:`${e}/invalidation`,initialState:b,reducers:{updateProvidedBy:{reducer(R,z){var D,N,$;for(const{queryCacheKey:I,providedTags:U}of z.payload){_(R,I);for(const{type:j,id:G}of U){const q=(N=(D=R.tags)[j]??(D[j]={}))[$=G||"__internal_without_id"]??(N[$]=[]);q.includes(I)||q.push(I)}R.keys[I]=U}},prepare:Et()}},extraReducers(R){R.addCase(v.actions.removeQueryResult,(z,{payload:{queryCacheKey:D}})=>{_(z,D)}).addMatcher(u,(z,D)=>{var $,I,U;const{provided:N}=s(D);for(const[j,G]of Object.entries(N.tags??{}))for(const[q,H]of Object.entries(G)){const V=(I=($=z.tags)[j]??($[j]={}))[U=q||"__internal_without_id"]??(I[U]=[]);for(const B of H)V.includes(B)||V.push(B),z.keys[B]=N.keys[B]}}).addMatcher(bo(Hs(t),Hy(t)),(z,D)=>{C(z,[D])}).addMatcher(v.actions.cacheEntriesUpserted.match,(z,D)=>{const N=D.payload.map(({queryDescription:$,value:I})=>({type:"UNKNOWN",payload:I,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:$}}));C(z,N)})}});function _(R,z){var N;const D=PP(R.keys[z]??[]);for(const $ of D){const I=$.type,U=$.id??"__internal_without_id",j=(N=R.tags[I])==null?void 0:N[U];j&&(R.tags[I][U]=PP(j).filter(G=>G!==z))}delete R.keys[z]}function C(R,z){const D=z.map(N=>{const $=y5(N,"providesTags",i,c),{queryCacheKey:I}=N.meta.arg;return{queryCacheKey:I,providedTags:$}});w.caseReducers.updateProvidedBy(R,w.actions.updateProvidedBy(D))}const E=an({name:`${e}/subscriptions`,initialState:Sg,reducers:{updateSubscriptionOptions(R,z){},unsubscribeQueryResult(R,z){},internal_getRTKQSubscriptions(){}}}),S=an({name:`${e}/internalSubscriptions`,initialState:Sg,reducers:{subscriptionsUpdated:{reducer(R,z){return mP(R,z.payload)},prepare:Et()}}}),T=an({name:`${e}/config`,initialState:{online:xZ(),focused:wZ(),middlewareRegistered:!1,...f},reducers:{middlewareRegistered(R,{payload:z}){R.middlewareRegistered=R.middlewareRegistered==="conflict"||a!==z?"conflict":!0}},extraReducers:R=>{R.addCase(Wy,z=>{z.online=!0}).addCase(fE,z=>{z.online=!1}).addCase(Yy,z=>{z.focused=!0}).addCase(cE,z=>{z.focused=!1}).addMatcher(u,z=>({...z}))}}),O=eE({queries:v.reducer,mutations:y.reducer,provided:w.reducer,subscriptions:S.reducer,config:T.reducer}),M=(R,z)=>O(h.match(z)?void 0:R,z),P={...T.actions,...v.actions,...E.actions,...S.actions,...y.actions,...w.actions,resetApiState:h};return{reducer:M,actions:P}}var Di=Symbol.for("RTKQ/skipToken"),b5={status:wo},RP=up(b5,()=>{}),DP=up(b5,()=>{});function MZ({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const r=E=>RP,i=E=>DP;return{buildQuerySelector:g,buildInfiniteQuerySelector:v,buildMutationSelector:y,selectInvalidatedBy:b,selectCachedArgsForQuery:w,selectApiState:s,selectQueries:u,selectMutations:f,selectQueryEntry:c,selectConfig:h};function a(E){return{...E,...kP(E.status)}}function s(E){return E[t]}function u(E){var S;return(S=s(E))==null?void 0:S.queries}function c(E,S){var T;return(T=u(E))==null?void 0:T[S]}function f(E){var S;return(S=s(E))==null?void 0:S.mutations}function h(E){var S;return(S=s(E))==null?void 0:S.config}function p(E,S,T){return O=>{if(O===Di)return n(r,T);const M=e({queryArgs:O,endpointDefinition:S,endpointName:E});return n(R=>c(R,M)??RP,T)}}function g(E,S){return p(E,S,a)}function v(E,S){const{infiniteQueryOptions:T}=S;function O(M){const P={...M,...kP(M.status)},{isLoading:R,isError:z,direction:D}=P,N=D==="forward",$=D==="backward";return{...P,hasNextPage:_(T,P.data,P.originalArgs),hasPreviousPage:C(T,P.data,P.originalArgs),isFetchingNextPage:R&&N,isFetchingPreviousPage:R&&$,isFetchNextPageError:z&&N,isFetchPreviousPageError:z&&$}}return p(E,S,O)}function y(){return E=>{let S;return typeof E=="object"?S=Mh(E)??Di:S=E,n(S===Di?i:M=>{var P,R;return((R=(P=s(M))==null?void 0:P.mutations)==null?void 0:R[S])??DP},a)}}function b(E,S){const T=E[t],O=new Set,M=AS(S,uE,m5);for(const P of M){const R=T.provided.tags[P.type];if(!R)continue;let z=(P.id!==void 0?R[P.id]:Object.values(R).flat())??[];for(const D of z)O.add(D)}return Array.from(O.values()).flatMap(P=>{const R=T.queries[P];return R?{queryCacheKey:P,endpointName:R.endpointName,originalArgs:R.originalArgs}:[]})}function w(E,S){return AS(Object.values(u(E)),T=>(T==null?void 0:T.endpointName)===S&&T.status!==wo,T=>T.originalArgs)}function _(E,S,T){return S?OS(E,S,T)!=null:!1}function C(E,S,T){return!S||!E.getPreviousPageParam?!1:v5(E,S,T)!=null}}var oc=WeakMap?new WeakMap:void 0,IP=({endpointName:e,queryArgs:t})=>{let n="";const r=oc==null?void 0:oc.get(t);if(typeof r=="string")n=r;else{const i=JSON.stringify(t,(a,s)=>(s=typeof s=="bigint"?{$bigint:s.toString()}:s,s=Zc(s)?Object.keys(s).sort().reduce((u,c)=>(u[c]=s[c],u),{}):s,s));Zc(t)&&(oc==null||oc.set(t,i)),n=i}return`${e}(${n})`};function w5(...e){return function(n){const r=Nv(f=>{var h;return(h=n.extractRehydrationInfo)==null?void 0:h.call(n,f,{reducerPath:n.reducerPath??"api"})}),i={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...n,extractRehydrationInfo:r,serializeQueryArgs(f){let h=IP;if("serializeQueryArgs"in f.endpointDefinition){const p=f.endpointDefinition.serializeQueryArgs;h=g=>{const v=p(g);return typeof v=="string"?v:IP({...g,queryArgs:v})}}else n.serializeQueryArgs&&(h=n.serializeQueryArgs);return h(f)},tagTypes:[...n.tagTypes||[]]},a={endpointDefinitions:{},batch(f){f()},apiUid:Gy(),extractRehydrationInfo:r,hasRehydrationInfo:Nv(f=>r(f)!=null)},s={injectEndpoints:c,enhanceEndpoints({addTagTypes:f,endpoints:h}){if(f)for(const p of f)i.tagTypes.includes(p)||i.tagTypes.push(p);if(h)for(const[p,g]of Object.entries(h))typeof g=="function"?g(ef(a,p)):Object.assign(ef(a,p)||{},g);return s}},u=e.map(f=>f.init(s,i,a));function c(f){const h=f.endpoints({query:p=>({...p,type:dp}),mutation:p=>({...p,type:h5}),infiniteQuery:p=>({...p,type:p5})});for(const[p,g]of Object.entries(h)){if(f.overrideExisting!==!0&&p in a.endpointDefinitions){if(f.overrideExisting==="throw")throw new Error(er(39));continue}a.endpointDefinitions[p]=g;for(const v of u)v.injectEndpoint(p,g)}return s}return s.injectEndpoints({endpoints:n.endpoints})}}function Mke(){return function(){throw new Error(er(33))}}function Wa(e,...t){return Object.assign(e,...t)}var PZ=({api:e,queryThunk:t,internalState:n,mwApi:r})=>{const i=`${e.reducerPath}/subscriptions`;let a=null,s=null;const{updateSubscriptionOptions:u,unsubscribeQueryResult:c}=e.internalActions,f=(b,w)=>{if(u.match(w)){const{queryCacheKey:C,requestId:E,options:S}=w.payload,T=b.get(C);return T!=null&&T.has(E)&&T.set(E,S),!0}if(c.match(w)){const{queryCacheKey:C,requestId:E}=w.payload,S=b.get(C);return S&&S.delete(E),!0}if(e.internalActions.removeQueryResult.match(w))return b.delete(w.payload.queryCacheKey),!0;if(t.pending.match(w)){const{meta:{arg:C,requestId:E}}=w,S=Iv(b,C.queryCacheKey,kS);return C.subscribe&&S.set(E,C.subscriptionOptions??S.get(E)??{}),!0}let _=!1;if(t.rejected.match(w)){const{meta:{condition:C,arg:E,requestId:S}}=w;if(C&&E.subscribe){const T=Iv(b,E.queryCacheKey,kS);T.set(S,E.subscriptionOptions??T.get(S)??{}),_=!0}}return _},h=()=>n.currentSubscriptions,v={getSubscriptions:h,getSubscriptionCount:b=>{const _=h().get(b);return(_==null?void 0:_.size)??0},isRequestSubscribed:(b,w)=>{var C;const _=h();return!!((C=_==null?void 0:_.get(b))!=null&&C.get(w))}};function y(b){return JSON.parse(JSON.stringify(Object.fromEntries([...b].map(([w,_])=>[w,Object.fromEntries(_)]))))}return(b,w)=>{if(a||(a=y(n.currentSubscriptions)),e.util.resetApiState.match(b))return a={},n.currentSubscriptions.clear(),s=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(b))return[!1,v];const _=f(n.currentSubscriptions,b);let C=!0;if(_){s||(s=setTimeout(()=>{const T=y(n.currentSubscriptions),[,O]=Kz(a,()=>T);w.next(e.internalActions.subscriptionsUpdated(O)),a=T,s=null},500));const E=typeof b.type=="string"&&!!b.type.startsWith(i),S=t.rejected.match(b)&&b.meta.condition&&!!b.meta.arg.subscribe;C=!E&&!S}return[C,!1]}},NZ=2147483647/1e3-1,RZ=({reducerPath:e,api:t,queryThunk:n,context:r,internalState:i,selectors:{selectQueryEntry:a,selectConfig:s},getRunningQueryThunk:u,mwApi:c})=>{const{removeQueryResult:f,unsubscribeQueryResult:h,cacheEntriesUpserted:p}=t.internalActions,g=bo(h.match,n.fulfilled,n.rejected,p.match);function v(E){const S=i.currentSubscriptions.get(E);return S?S.size>0:!1}const y={};function b(E){var S;for(const T of E.values())(S=T==null?void 0:T.abort)==null||S.call(T)}const w=(E,S)=>{const T=S.getState(),O=s(T);if(g(E)){let M;if(p.match(E))M=E.payload.map(P=>P.queryDescription.queryCacheKey);else{const{queryCacheKey:P}=h.match(E)?E.payload:E.meta.arg;M=[P]}_(M,S,O)}if(t.util.resetApiState.match(E)){for(const[M,P]of Object.entries(y))P&&clearTimeout(P),delete y[M];b(i.runningQueries),b(i.runningMutations)}if(r.hasRehydrationInfo(E)){const{queries:M}=r.extractRehydrationInfo(E);_(Object.keys(M),S,O)}};function _(E,S,T){const O=S.getState();for(const M of E){const P=a(O,M);P!=null&&P.endpointName&&C(M,P.endpointName,S,T)}}function C(E,S,T,O){const M=ef(r,S),P=(M==null?void 0:M.keepUnusedDataFor)??O.keepUnusedDataFor;if(P===1/0)return;const R=Math.max(0,Math.min(P,NZ));if(!v(E)){const z=y[E];z&&clearTimeout(z),y[E]=setTimeout(()=>{if(!v(E)){const D=a(T.getState(),E);if(D!=null&&D.endpointName){const N=T.dispatch(u(D.endpointName,D.originalArgs));N==null||N.abort()}T.dispatch(f({queryCacheKey:E}))}delete y[E]},R*1e3)}}return w},LP=new Error("Promise never resolved before cacheEntryRemoved."),DZ=({api:e,reducerPath:t,context:n,queryThunk:r,mutationThunk:i,internalState:a,selectors:{selectQueryEntry:s,selectApiState:u}})=>{const c=xS(r),f=xS(i),h=Hs(r,i),p={},{removeQueryResult:g,removeMutationResult:v,cacheEntriesUpserted:y}=e.internalActions;function b(T,O,M){const P=p[T];P!=null&&P.valueResolved&&(P.valueResolved({data:O,meta:M}),delete P.valueResolved)}function w(T){const O=p[T];O&&(delete p[T],O.cacheEntryRemoved())}function _(T){const{arg:O,requestId:M}=T.meta,{endpointName:P,originalArgs:R}=O;return[P,R,M]}const C=(T,O,M)=>{const P=E(T);function R(z,D,N,$){const I=s(M,D),U=s(O.getState(),D);!I&&U&&S(z,$,D,O,N)}if(r.pending.match(T)){const[z,D,N]=_(T);R(z,P,N,D)}else if(y.match(T))for(const{queryDescription:z,value:D}of T.payload){const{endpointName:N,originalArgs:$,queryCacheKey:I}=z;R(N,I,T.meta.requestId,$),b(I,D,{})}else if(i.pending.match(T)){if(O.getState()[t].mutations[P]){const[D,N,$]=_(T);S(D,N,P,O,$)}}else if(h(T))b(P,T.payload,T.meta.baseQueryMeta);else if(g.match(T)||v.match(T))w(P);else if(e.util.resetApiState.match(T))for(const z of Object.keys(p))w(z)};function E(T){return c(T)?T.meta.arg.queryCacheKey:f(T)?T.meta.arg.fixedCacheKey??T.meta.requestId:g.match(T)?T.payload.queryCacheKey:v.match(T)?Mh(T.payload):""}function S(T,O,M,P,R){const z=ef(n,T),D=z==null?void 0:z.onCacheEntryAdded;if(!D)return;const N={},$=new Promise(H=>{N.cacheEntryRemoved=H}),I=Promise.race([new Promise(H=>{N.valueResolved=H}),$.then(()=>{throw LP})]);I.catch(()=>{}),p[M]=N;const U=e.endpoints[T].select(Lv(z)?O:M),j=P.dispatch((H,V,B)=>B),G={...P,getCacheEntry:()=>U(P.getState()),requestId:R,extra:j,updateCachedData:Lv(z)?H=>P.dispatch(e.util.updateQueryData(T,O,H)):void 0,cacheDataLoaded:I,cacheEntryRemoved:$},q=D(O,G);Promise.resolve(q).catch(H=>{if(H!==LP)throw H})}return C},IZ=({api:e,context:{apiUid:t},reducerPath:n})=>(r,i)=>{e.util.resetApiState.match(r)&&i.dispatch(e.internalActions.middlewareRegistered(t))},LZ=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:r,queryThunk:i,api:a,assertTagType:s,refetchQuery:u,internalState:c})=>{const{removeQueryResult:f}=a.internalActions,h=bo(Hs(r),Hy(r)),p=bo(Hs(i,r),Jc(i,r));let g=[],v=0;const y=(_,C)=>{(i.pending.match(_)||r.pending.match(_))&&v++,p(_)&&(v=Math.max(0,v-1)),h(_)?w(y5(_,"invalidatesTags",n,s),C):p(_)?w([],C):a.util.invalidateTags.match(_)&&w(dE(_.payload,void 0,void 0,void 0,void 0,s),C)};function b(){return v>0}function w(_,C){const E=C.getState(),S=E[e];if(g.push(..._),S.config.invalidationBehavior==="delayed"&&b())return;const T=g;if(g=[],T.length===0)return;const O=a.util.selectInvalidatedBy(E,T);t.batch(()=>{const M=Array.from(O.values());for(const{queryCacheKey:P}of M){const R=S.queries[P],z=Iv(c.currentSubscriptions,P,kS);R&&(z.size===0?C.dispatch(f({queryCacheKey:P})):R.status!==wo&&C.dispatch(u(R)))}})}return y},zZ=({reducerPath:e,queryThunk:t,api:n,refetchQuery:r,internalState:i})=>{const{currentPolls:a,currentSubscriptions:s}=i,u=new Set;let c=null;const f=(w,_)=>{(n.internalActions.updateSubscriptionOptions.match(w)||n.internalActions.unsubscribeQueryResult.match(w))&&h(w.payload.queryCacheKey,_),(t.pending.match(w)||t.rejected.match(w)&&w.meta.condition)&&h(w.meta.arg.queryCacheKey,_),(t.fulfilled.match(w)||t.rejected.match(w)&&!w.meta.condition)&&p(w.meta.arg,_),n.util.resetApiState.match(w)&&(y(),c&&(clearTimeout(c),c=null),u.clear())};function h(w,_){u.add(w),c||(c=setTimeout(()=>{for(const C of u)g({queryCacheKey:C},_);u.clear(),c=null},0))}function p({queryCacheKey:w},_){const C=_.getState()[e],E=C.queries[w],S=s.get(w);if(!E||E.status===wo)return;const{lowestPollingInterval:T,skipPollingIfUnfocused:O}=b(S);if(!Number.isFinite(T))return;const M=a.get(w);M!=null&&M.timeout&&(clearTimeout(M.timeout),M.timeout=void 0);const P=Date.now()+T;a.set(w,{nextPollTimestamp:P,pollingInterval:T,timeout:setTimeout(()=>{(C.config.focused||!O)&&_.dispatch(r(E)),p({queryCacheKey:w},_)},T)})}function g({queryCacheKey:w},_){const E=_.getState()[e].queries[w],S=s.get(w);if(!E||E.status===wo)return;const{lowestPollingInterval:T}=b(S);if(!Number.isFinite(T)){v(w);return}const O=a.get(w),M=Date.now()+T;(!O||M<O.nextPollTimestamp)&&p({queryCacheKey:w},_)}function v(w){const _=a.get(w);_!=null&&_.timeout&&clearTimeout(_.timeout),a.delete(w)}function y(){for(const w of a.keys())v(w)}function b(w=new Map){let _=!1,C=Number.POSITIVE_INFINITY;for(const E of w.values())E.pollingInterval&&(C=Math.min(E.pollingInterval,C),_=E.skipPollingIfUnfocused||_);return{lowestPollingInterval:C,skipPollingIfUnfocused:_}}return f},jZ=({api:e,context:t,queryThunk:n,mutationThunk:r})=>{const i=aE(n,r),a=Jc(n,r),s=Hs(n,r),u={};return(f,h)=>{var p,g;if(i(f)){const{requestId:v,arg:{endpointName:y,originalArgs:b}}=f.meta,w=ef(t,y),_=w==null?void 0:w.onQueryStarted;if(_){const C={},E=new Promise((M,P)=>{C.resolve=M,C.reject=P});E.catch(()=>{}),u[v]=C;const S=e.endpoints[y].select(Lv(w)?b:v),T=h.dispatch((M,P,R)=>R),O={...h,getCacheEntry:()=>S(h.getState()),requestId:v,extra:T,updateCachedData:Lv(w)?M=>h.dispatch(e.util.updateQueryData(y,b,M)):void 0,queryFulfilled:E};_(b,O)}}else if(s(f)){const{requestId:v,baseQueryMeta:y}=f.meta;(p=u[v])==null||p.resolve({data:f.payload,meta:y}),delete u[v]}else if(a(f)){const{requestId:v,rejectedWithValue:y,baseQueryMeta:b}=f.meta;(g=u[v])==null||g.reject({error:f.payload??f.error,isUnhandledError:!y,meta:b}),delete u[v]}}},$Z=({reducerPath:e,context:t,api:n,refetchQuery:r,internalState:i})=>{const{removeQueryResult:a}=n.internalActions,s=(c,f)=>{Yy.match(c)&&u(f,"refetchOnFocus"),Wy.match(c)&&u(f,"refetchOnReconnect")};function u(c,f){const h=c.getState()[e],p=h.queries,g=i.currentSubscriptions;t.batch(()=>{for(const v of g.keys()){const y=p[v],b=g.get(v);if(!b||!y)continue;const w=[...b.values()];(w.some(C=>C[f]===!0)||w.every(C=>C[f]===void 0)&&h.config[f])&&(b.size===0?c.dispatch(a({queryCacheKey:v})):y.status!==wo&&c.dispatch(r(y)))}})}return s};function BZ(e){const{reducerPath:t,queryThunk:n,api:r,context:i,getInternalState:a}=e,{apiUid:s}=i,u={invalidateTags:on(`${t}/invalidateTags`)},c=g=>g.type.startsWith(`${t}/`),f=[IZ,RZ,LZ,zZ,DZ,jZ];return{middleware:g=>{let v=!1;const y=a(g.dispatch),b={...e,internalState:y,refetchQuery:p,isThisApiSliceAction:c,mwApi:g},w=f.map(E=>E(b)),_=PZ(b),C=$Z(b);return E=>S=>{if(!tE(S))return E(S);v||(v=!0,g.dispatch(r.internalActions.middlewareRegistered(s)));const T={...g,next:E},O=g.getState(),[M,P]=_(S,T,O);let R;if(M?R=E(S):R=P,g.getState()[t]&&(C(S,T,O),c(S)||i.hasRehydrationInfo(S)))for(const z of w)z(S,T,O);return R}},actions:u};function p(g){return e.api.endpoints[g.endpointName].initiate(g.originalArgs,{subscribe:!1,forceRefetch:!0})}}var zP=Symbol(),x5=({createSelector:e=le}={})=>({name:zP,init(t,{baseQuery:n,tagTypes:r,reducerPath:i,serializeQueryArgs:a,keepUnusedDataFor:s,refetchOnMountOrArgChange:u,refetchOnFocus:c,refetchOnReconnect:f,invalidationBehavior:h,onSchemaFailure:p,catchSchemaFailure:g,skipSchemaValidation:v},y){OQ();const b=de=>de;Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:Wy,onOffline:fE,onFocus:Yy,onFocusLost:cE},util:{}});const w=MZ({serializeQueryArgs:a,reducerPath:i,createSelector:e}),{selectInvalidatedBy:_,selectCachedArgsForQuery:C,buildQuerySelector:E,buildInfiniteQuerySelector:S,buildMutationSelector:T}=w;Wa(t.util,{selectInvalidatedBy:_,selectCachedArgsForQuery:C});const{queryThunk:O,infiniteQueryThunk:M,mutationThunk:P,patchQueryData:R,updateQueryData:z,upsertQueryData:D,prefetch:N,buildMatchThunkActions:$}=OZ({baseQuery:n,reducerPath:i,context:y,api:t,serializeQueryArgs:a,assertTagType:b,selectors:w,onSchemaFailure:p,catchSchemaFailure:g,skipSchemaValidation:v}),{reducer:I,actions:U}=TZ({context:y,queryThunk:O,mutationThunk:P,serializeQueryArgs:a,reducerPath:i,assertTagType:b,config:{refetchOnFocus:c,refetchOnReconnect:f,refetchOnMountOrArgChange:u,keepUnusedDataFor:s,reducerPath:i,invalidationBehavior:h}});Wa(t.util,{patchQueryData:R,updateQueryData:z,upsertQueryData:D,prefetch:N,resetApiState:U.resetApiState,upsertQueryEntries:U.cacheEntriesUpserted}),Wa(t.internalActions,U);const j=new WeakMap,G=de=>Iv(j,de,()=>({currentSubscriptions:new Map,currentPolls:new Map,runningQueries:new Map,runningMutations:new Map})),{buildInitiateQuery:q,buildInitiateInfiniteQuery:H,buildInitiateMutation:V,getRunningMutationThunk:B,getRunningMutationsThunk:K,getRunningQueriesThunk:X,getRunningQueryThunk:ee}=CZ({queryThunk:O,mutationThunk:P,infiniteQueryThunk:M,api:t,serializeQueryArgs:a,context:y,getInternalState:G});Wa(t.util,{getRunningMutationThunk:B,getRunningMutationsThunk:K,getRunningQueryThunk:ee,getRunningQueriesThunk:X});const{middleware:ce,actions:he}=BZ({reducerPath:i,context:y,queryThunk:O,mutationThunk:P,infiniteQueryThunk:M,api:t,assertTagType:b,selectors:w,getRunningQueryThunk:ee,getInternalState:G});return Wa(t.util,he),Wa(t,{reducer:I,middleware:ce}),{name:zP,injectEndpoint(de,ie){var ye;const pe=(ye=t.endpoints)[de]??(ye[de]={});Qy(ie)&&Wa(pe,{name:de,select:E(de,ie),initiate:q(de,ie)},$(O,de)),EZ(ie)&&Wa(pe,{name:de,select:T(),initiate:V(de)},$(P,de)),Zy(ie)&&Wa(pe,{name:de,select:S(de,ie),initiate:H(de,ie)},$(O,de))}}}});x5();function Eg(e){return e.replace(e[0],e[0].toUpperCase())}var UZ="query",FZ="mutation",HZ="infinitequery";function GZ(e){return e.type===UZ}function qZ(e){return e.type===FZ}function _5(e){return e.type===HZ}function Dd(e,...t){return Object.assign(e,...t)}var Aw=Symbol();function kw(e){const t=k.useRef(e),n=k.useMemo(()=>lE(t.current,e),[e]);return k.useEffect(()=>{t.current!==n&&(t.current=n)},[n]),n}function sc(e){const t=k.useRef(e);return k.useEffect(()=>{Oc(t.current,e)||(t.current=e)},[e]),Oc(t.current,e)?t.current:e}var VZ=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",KZ=VZ(),YZ=()=>typeof navigator<"u"&&navigator.product==="ReactNative",WZ=YZ(),QZ=()=>KZ||WZ?k.useLayoutEffect:k.useEffect,ZZ=QZ(),jP=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:u5.pending}:e;function Cw(e,...t){const n={};return t.forEach(r=>{n[r]=e[r]}),n}var Ow=["data","status","isLoading","isSuccess","isError","error"];function XZ({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:i},unstable__sideEffectsInRender:a,createSelector:s},serializeQueryArgs:u,context:c}){const f=a?O=>O():k.useEffect,h=O=>{var M,P;return(P=(M=O.current)==null?void 0:M.unsubscribe)==null?void 0:P.call(M)},p=c.endpointDefinitions;return{buildQueryHooks:E,buildInfiniteQueryHooks:S,buildMutationHook:T,usePrefetch:y};function g(O,M,P){if(M!=null&&M.endpointName&&O.isUninitialized){const{endpointName:I}=M,U=p[I];P!==Di&&u({queryArgs:M.originalArgs,endpointDefinition:U,endpointName:I})===u({queryArgs:P,endpointDefinition:U,endpointName:I})&&(M=void 0)}let R=O.isSuccess?O.data:M==null?void 0:M.data;R===void 0&&(R=O.data);const z=R!==void 0,D=O.isLoading,N=(!M||M.isLoading||M.isUninitialized)&&!z&&D,$=O.isSuccess||z&&(D&&!(M!=null&&M.isError)||O.isUninitialized);return{...O,data:R,currentData:O.data,isFetching:D,isLoading:N,isSuccess:$}}function v(O,M,P){if(M!=null&&M.endpointName&&O.isUninitialized){const{endpointName:I}=M,U=p[I];P!==Di&&u({queryArgs:M.originalArgs,endpointDefinition:U,endpointName:I})===u({queryArgs:P,endpointDefinition:U,endpointName:I})&&(M=void 0)}let R=O.isSuccess?O.data:M==null?void 0:M.data;R===void 0&&(R=O.data);const z=R!==void 0,D=O.isLoading,N=(!M||M.isLoading||M.isUninitialized)&&!z&&D,$=O.isSuccess||D&&z;return{...O,data:R,currentData:O.data,isFetching:D,isLoading:N,isSuccess:$}}function y(O,M){const P=n(),R=sc(M);return k.useCallback((z,D)=>P(e.util.prefetch(O,z,{...R,...D})),[O,P,R])}function b(O,M,{refetchOnReconnect:P,refetchOnFocus:R,refetchOnMountOrArgChange:z,skip:D=!1,pollingInterval:N=0,skipPollingIfUnfocused:$=!1,...I}={}){const{initiate:U}=e.endpoints[O],j=n(),G=k.useRef(void 0);if(!G.current){const J=j(e.internalActions.internal_getRTKQSubscriptions());G.current=J}const q=kw(D?Di:M),H=sc({refetchOnReconnect:P,refetchOnFocus:R,pollingInterval:N,skipPollingIfUnfocused:$}),V=I.initialPageParam,B=sc(V),K=I.refetchCachedPages,X=sc(K),ee=k.useRef(void 0);let{queryCacheKey:ce,requestId:he}=ee.current||{},de=!1;ce&&he&&(de=G.current.isRequestSubscribed(ce,he));const ie=!de&&ee.current!==void 0;return f(()=>{ie&&(ee.current=void 0)},[ie]),f(()=>{var ye;const J=ee.current;if(q===Di){J==null||J.unsubscribe(),ee.current=void 0;return}const pe=(ye=ee.current)==null?void 0:ye.subscriptionOptions;if(!J||J.arg!==q){J==null||J.unsubscribe();const te=j(U(q,{subscriptionOptions:H,forceRefetch:z,..._5(p[O])?{initialPageParam:B,refetchCachedPages:X}:{}}));ee.current=te}else H!==pe&&J.updateSubscriptionOptions(H)},[j,U,z,q,H,ie,B,X,O]),[ee,j,U,H]}function w(O,M){return(R,{skip:z=!1,selectFromResult:D}={})=>{const{select:N}=e.endpoints[O],$=kw(z?Di:R),I=k.useRef(void 0),U=k.useMemo(()=>s([N($),(V,B)=>B,V=>$],M,{memoizeOptions:{resultEqualityCheck:Oc}}),[N,$]),j=k.useMemo(()=>D?s([U],D,{devModeChecks:{identityFunctionCheck:"never"}}):U,[U,D]),G=r(V=>j(V,I.current),Oc),q=i(),H=U(q.getState(),I.current);return ZZ(()=>{I.current=H},[H]),G}}function _(O){k.useEffect(()=>()=>{h(O),O.current=void 0},[O])}function C(O){if(!O.current)throw new Error(er(38));return O.current.refetch()}function E(O){const M=(z,D={})=>{const[N]=b(O,z,D);return _(N),k.useMemo(()=>({refetch:()=>C(N)}),[N])},P=({refetchOnReconnect:z,refetchOnFocus:D,pollingInterval:N=0,skipPollingIfUnfocused:$=!1}={})=>{const{initiate:I}=e.endpoints[O],U=n(),[j,G]=k.useState(Aw),q=k.useRef(void 0),H=sc({refetchOnReconnect:z,refetchOnFocus:D,pollingInterval:N,skipPollingIfUnfocused:$});f(()=>{var ee,ce;const X=(ee=q.current)==null?void 0:ee.subscriptionOptions;H!==X&&((ce=q.current)==null||ce.updateSubscriptionOptions(H))},[H]);const V=k.useRef(H);f(()=>{V.current=H},[H]);const B=k.useCallback(function(X,ee=!1){let ce;return t(()=>{h(q),q.current=ce=U(I(X,{subscriptionOptions:V.current,forceRefetch:!ee})),G(X)}),ce},[U,I]),K=k.useCallback(()=>{var X,ee;(X=q.current)!=null&&X.queryCacheKey&&U(e.internalActions.removeQueryResult({queryCacheKey:(ee=q.current)==null?void 0:ee.queryCacheKey}))},[U]);return k.useEffect(()=>()=>{h(q)},[]),k.useEffect(()=>{j!==Aw&&!q.current&&B(j,!0)},[j,B]),k.useMemo(()=>[B,j,{reset:K}],[B,j,K])},R=w(O,g);return{useQueryState:R,useQuerySubscription:M,useLazyQuerySubscription:P,useLazyQuery(z){const[D,N,{reset:$}]=P(z),I=R(N,{...z,skip:N===Aw}),U=k.useMemo(()=>({lastArg:N}),[N]);return k.useMemo(()=>[D,{...I,reset:$},U],[D,I,$,U])},useQuery(z,D){const N=M(z,D),$=R(z,{selectFromResult:z===Di||D!=null&&D.skip?void 0:jP,...D}),I=Cw($,...Ow);return k.useDebugValue(I),k.useMemo(()=>({...$,...N}),[$,N])}}}function S(O){const M=(R,z={})=>{const[D,N,$,I]=b(O,R,z),U=k.useRef(I);f(()=>{U.current=I},[I]);const j=z.refetchCachedPages,G=sc(j),q=k.useCallback(function(B,K){let X;return t(()=>{h(D),D.current=X=N($(B,{subscriptionOptions:U.current,direction:K}))}),X},[D,N,$]);_(D);const H=kw(z.skip?Di:R),V=k.useCallback(B=>{if(!D.current)throw new Error(er(38));const K={refetchCachedPages:(B==null?void 0:B.refetchCachedPages)??G};return D.current.refetch(K)},[D,G]);return k.useMemo(()=>({trigger:q,refetch:V,fetchNextPage:()=>q(H,"forward"),fetchPreviousPage:()=>q(H,"backward")}),[V,q,H])},P=w(O,v);return{useInfiniteQueryState:P,useInfiniteQuerySubscription:M,useInfiniteQuery(R,z){const{refetch:D,fetchNextPage:N,fetchPreviousPage:$}=M(R,z),I=P(R,{selectFromResult:R===Di||z!=null&&z.skip?void 0:jP,...z}),U=Cw(I,...Ow,"hasNextPage","hasPreviousPage");return k.useDebugValue(U),k.useMemo(()=>({...I,fetchNextPage:N,fetchPreviousPage:$,refetch:D}),[I,N,$,D])}}}function T(O){return({selectFromResult:M,fixedCacheKey:P}={})=>{const{select:R,initiate:z}=e.endpoints[O],D=n(),[N,$]=k.useState();k.useEffect(()=>()=>{N!=null&&N.arg.fixedCacheKey||N==null||N.reset()},[N]);const I=k.useCallback(function(X){const ee=D(z(X,{fixedCacheKey:P}));return $(ee),ee},[D,z,P]),{requestId:U}=N||{},j=k.useMemo(()=>R({fixedCacheKey:P,requestId:N==null?void 0:N.requestId}),[P,N,R]),G=k.useMemo(()=>M?s([j],M):j,[M,j]),q=r(G,Oc),H=P==null?N==null?void 0:N.arg.originalArgs:void 0,V=k.useCallback(()=>{t(()=>{N&&$(void 0),P&&D(e.internalActions.removeMutationResult({requestId:U,fixedCacheKey:P}))})},[D,P,N,U]),B=Cw(q,...Ow,"endpointName");k.useDebugValue(B);const K=k.useMemo(()=>({...q,originalArgs:H,reset:V}),[q,H,V]);return k.useMemo(()=>[I,K],[I,K])}}}var JZ=Symbol(),eX=({batch:e=aG,hooks:t={useDispatch:tG,useSelector:iG,useStore:X4},createSelector:n=le,unstable__sideEffectsInRender:r=!1,...i}={})=>({name:JZ,init(a,{serializeQueryArgs:s},u){const c=a,{buildQueryHooks:f,buildInfiniteQueryHooks:h,buildMutationHook:p,usePrefetch:g}=XZ({api:a,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:s,context:u});return Dd(c,{usePrefetch:g}),Dd(u,{batch:e}),{injectEndpoint(v,y){if(GZ(y)){const{useQuery:b,useLazyQuery:w,useLazyQuerySubscription:_,useQueryState:C,useQuerySubscription:E}=f(v);Dd(c.endpoints[v],{useQuery:b,useLazyQuery:w,useLazyQuerySubscription:_,useQueryState:C,useQuerySubscription:E}),a[`use${Eg(v)}Query`]=b,a[`useLazy${Eg(v)}Query`]=w}if(qZ(y)){const b=p(v);Dd(c.endpoints[v],{useMutation:b}),a[`use${Eg(v)}Mutation`]=b}else if(_5(y)){const{useInfiniteQuery:b,useInfiniteQuerySubscription:w,useInfiniteQueryState:_}=h(v);Dd(c.endpoints[v],{useInfiniteQuery:b,useInfiniteQuerySubscription:w,useInfiniteQueryState:_}),a[`use${Eg(v)}InfiniteQuery`]=b}}}}}),Pke=w5(x5(),eX());function xn(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,r;n<e.length;n++)(r=xn(e[n]))!==""&&(t+=(t&&" ")+r);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var tX={value:()=>{}};function Xy(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new rv(n)}function rv(e){this._=e}function nX(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}rv.prototype=Xy.prototype={constructor:rv,on:function(e,t){var n=this._,r=nX(e+"",n),i,a=-1,s=r.length;if(arguments.length<2){for(;++a<s;)if((i=(e=r[a]).type)&&(i=rX(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<s;)if(i=(e=r[a]).type)n[i]=$P(n[i],e.name,t);else if(t==null)for(i in n)n[i]=$P(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new rv(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function rX(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function $P(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=tX,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var TS="http://www.w3.org/1999/xhtml";const BP={svg:"http://www.w3.org/2000/svg",xhtml:TS,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Jy(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),BP.hasOwnProperty(t)?{space:BP[t],local:e}:e}function iX(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===TS&&t.documentElement.namespaceURI===TS?t.createElement(e):t.createElementNS(n,e)}}function aX(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function S5(e){var t=Jy(e);return(t.local?aX:iX)(t)}function oX(){}function hE(e){return e==null?oX:function(){return this.querySelector(e)}}function sX(e){typeof e!="function"&&(e=hE(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],s=a.length,u=r[i]=new Array(s),c,f,h=0;h<s;++h)(c=a[h])&&(f=e.call(c,c.__data__,h,a))&&("__data__"in c&&(f.__data__=c.__data__),u[h]=f);return new Xr(r,this._parents)}function lX(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function uX(){return[]}function E5(e){return e==null?uX:function(){return this.querySelectorAll(e)}}function cX(e){return function(){return lX(e.apply(this,arguments))}}function fX(e){typeof e=="function"?e=cX(e):e=E5(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var s=t[a],u=s.length,c,f=0;f<u;++f)(c=s[f])&&(r.push(e.call(c,c.__data__,f,s)),i.push(c));return new Xr(r,i)}function A5(e){return function(){return this.matches(e)}}function k5(e){return function(t){return t.matches(e)}}var dX=Array.prototype.find;function hX(e){return function(){return dX.call(this.children,e)}}function pX(){return this.firstElementChild}function mX(e){return this.select(e==null?pX:hX(typeof e=="function"?e:k5(e)))}var gX=Array.prototype.filter;function vX(){return Array.from(this.children)}function yX(e){return function(){return gX.call(this.children,e)}}function bX(e){return this.selectAll(e==null?vX:yX(typeof e=="function"?e:k5(e)))}function wX(e){typeof e!="function"&&(e=A5(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],s=a.length,u=r[i]=[],c,f=0;f<s;++f)(c=a[f])&&e.call(c,c.__data__,f,a)&&u.push(c);return new Xr(r,this._parents)}function C5(e){return new Array(e.length)}function xX(){return new Xr(this._enter||this._groups.map(C5),this._parents)}function zv(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}zv.prototype={constructor:zv,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function _X(e){return function(){return e}}function SX(e,t,n,r,i,a){for(var s=0,u,c=t.length,f=a.length;s<f;++s)(u=t[s])?(u.__data__=a[s],r[s]=u):n[s]=new zv(e,a[s]);for(;s<c;++s)(u=t[s])&&(i[s]=u)}function EX(e,t,n,r,i,a,s){var u,c,f=new Map,h=t.length,p=a.length,g=new Array(h),v;for(u=0;u<h;++u)(c=t[u])&&(g[u]=v=s.call(c,c.__data__,u,t)+"",f.has(v)?i[u]=c:f.set(v,c));for(u=0;u<p;++u)v=s.call(e,a[u],u,a)+"",(c=f.get(v))?(r[u]=c,c.__data__=a[u],f.delete(v)):n[u]=new zv(e,a[u]);for(u=0;u<h;++u)(c=t[u])&&f.get(g[u])===c&&(i[u]=c)}function AX(e){return e.__data__}function kX(e,t){if(!arguments.length)return Array.from(this,AX);var n=t?EX:SX,r=this._parents,i=this._groups;typeof e!="function"&&(e=_X(e));for(var a=i.length,s=new Array(a),u=new Array(a),c=new Array(a),f=0;f<a;++f){var h=r[f],p=i[f],g=p.length,v=CX(e.call(h,h&&h.__data__,f,r)),y=v.length,b=u[f]=new Array(y),w=s[f]=new Array(y),_=c[f]=new Array(g);n(h,p,b,w,_,v,t);for(var C=0,E=0,S,T;C<y;++C)if(S=b[C]){for(C>=E&&(E=C+1);!(T=w[E])&&++E<y;);S._next=T||null}}return s=new Xr(s,r),s._enter=u,s._exit=c,s}function CX(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function OX(){return new Xr(this._exit||this._groups.map(C5),this._parents)}function TX(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function MX(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,s=Math.min(i,a),u=new Array(i),c=0;c<s;++c)for(var f=n[c],h=r[c],p=f.length,g=u[c]=new Array(p),v,y=0;y<p;++y)(v=f[y]||h[y])&&(g[y]=v);for(;c<i;++c)u[c]=n[c];return new Xr(u,this._parents)}function PX(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],s;--i>=0;)(s=r[i])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}function NX(e){e||(e=RX);function t(p,g){return p&&g?e(p.__data__,g.__data__):!p-!g}for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var s=n[a],u=s.length,c=i[a]=new Array(u),f,h=0;h<u;++h)(f=s[h])&&(c[h]=f);c.sort(t)}return new Xr(i,this._parents).order()}function RX(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function DX(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function IX(){return Array.from(this)}function LX(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var s=r[i];if(s)return s}return null}function zX(){let e=0;for(const t of this)++e;return e}function jX(){return!this.node()}function $X(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,s=i.length,u;a<s;++a)(u=i[a])&&e.call(u,u.__data__,a,i);return this}function BX(e){return function(){this.removeAttribute(e)}}function UX(e){return function(){this.removeAttributeNS(e.space,e.local)}}function FX(e,t){return function(){this.setAttribute(e,t)}}function HX(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function GX(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function qX(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function VX(e,t){var n=Jy(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?UX:BX:typeof t=="function"?n.local?qX:GX:n.local?HX:FX)(n,t))}function O5(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function KX(e){return function(){this.style.removeProperty(e)}}function YX(e,t,n){return function(){this.style.setProperty(e,t,n)}}function WX(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function QX(e,t,n){return arguments.length>1?this.each((t==null?KX:typeof t=="function"?WX:YX)(e,t,n??"")):tf(this.node(),e)}function tf(e,t){return e.style.getPropertyValue(t)||O5(e).getComputedStyle(e,null).getPropertyValue(t)}function ZX(e){return function(){delete this[e]}}function XX(e,t){return function(){this[e]=t}}function JX(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function eJ(e,t){return arguments.length>1?this.each((t==null?ZX:typeof t=="function"?JX:XX)(e,t)):this.node()[e]}function T5(e){return e.trim().split(/^|\s+/)}function pE(e){return e.classList||new M5(e)}function M5(e){this._node=e,this._names=T5(e.getAttribute("class")||"")}M5.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function P5(e,t){for(var n=pE(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function N5(e,t){for(var n=pE(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function tJ(e){return function(){P5(this,e)}}function nJ(e){return function(){N5(this,e)}}function rJ(e,t){return function(){(t.apply(this,arguments)?P5:N5)(this,e)}}function iJ(e,t){var n=T5(e+"");if(arguments.length<2){for(var r=pE(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?rJ:t?tJ:nJ)(n,t))}function aJ(){this.textContent=""}function oJ(e){return function(){this.textContent=e}}function sJ(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function lJ(e){return arguments.length?this.each(e==null?aJ:(typeof e=="function"?sJ:oJ)(e)):this.node().textContent}function uJ(){this.innerHTML=""}function cJ(e){return function(){this.innerHTML=e}}function fJ(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function dJ(e){return arguments.length?this.each(e==null?uJ:(typeof e=="function"?fJ:cJ)(e)):this.node().innerHTML}function hJ(){this.nextSibling&&this.parentNode.appendChild(this)}function pJ(){return this.each(hJ)}function mJ(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function gJ(){return this.each(mJ)}function vJ(e){var t=typeof e=="function"?e:S5(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function yJ(){return null}function bJ(e,t){var n=typeof e=="function"?e:S5(e),r=t==null?yJ:typeof t=="function"?t:hE(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function wJ(){var e=this.parentNode;e&&e.removeChild(this)}function xJ(){return this.each(wJ)}function _J(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function SJ(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function EJ(e){return this.select(e?SJ:_J)}function AJ(e){return arguments.length?this.property("__data__",e):this.node().__data__}function kJ(e){return function(t){e.call(this,t,this.__data__)}}function CJ(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function OJ(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function TJ(e,t,n){return function(){var r=this.__on,i,a=kJ(t);if(r){for(var s=0,u=r.length;s<u;++s)if((i=r[s]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function MJ(e,t,n){var r=CJ(e+""),i,a=r.length,s;if(arguments.length<2){var u=this.node().__on;if(u){for(var c=0,f=u.length,h;c<f;++c)for(i=0,h=u[c];i<a;++i)if((s=r[i]).type===h.type&&s.name===h.name)return h.value}return}for(u=t?TJ:OJ,i=0;i<a;++i)this.each(u(r[i],t,n));return this}function R5(e,t,n){var r=O5(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function PJ(e,t){return function(){return R5(this,e,t)}}function NJ(e,t){return function(){return R5(this,e,t.apply(this,arguments))}}function RJ(e,t){return this.each((typeof t=="function"?NJ:PJ)(e,t))}function*DJ(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,s;i<a;++i)(s=r[i])&&(yield s)}var D5=[null];function Xr(e,t){this._groups=e,this._parents=t}function hp(){return new Xr([[document.documentElement]],D5)}function IJ(){return this}Xr.prototype=hp.prototype={constructor:Xr,select:sX,selectAll:fX,selectChild:mX,selectChildren:bX,filter:wX,data:kX,enter:xX,exit:OX,join:TX,merge:MX,selection:IJ,order:PX,sort:NX,call:DX,nodes:IX,node:LX,size:zX,empty:jX,each:$X,attr:VX,style:QX,property:eJ,classed:iJ,text:lJ,html:dJ,raise:pJ,lower:gJ,append:vJ,insert:bJ,remove:xJ,clone:EJ,datum:AJ,on:MJ,dispatch:RJ,[Symbol.iterator]:DJ};function qr(e){return typeof e=="string"?new Xr([[document.querySelector(e)]],[document.documentElement]):new Xr([[e]],D5)}function LJ(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Li(e,t){if(e=LJ(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const zJ={passive:!1},Ph={capture:!0,passive:!1};function Tw(e){e.stopImmediatePropagation()}function Mc(e){e.preventDefault(),e.stopImmediatePropagation()}function I5(e){var t=e.document.documentElement,n=qr(e).on("dragstart.drag",Mc,Ph);"onselectstart"in t?n.on("selectstart.drag",Mc,Ph):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function L5(e,t){var n=e.document.documentElement,r=qr(e).on("dragstart.drag",null);t&&(r.on("click.drag",Mc,Ph),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Ag=e=>()=>e;function MS(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:a,x:s,y:u,dx:c,dy:f,dispatch:h}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:f,enumerable:!0,configurable:!0},_:{value:h}})}MS.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function jJ(e){return!e.ctrlKey&&!e.button}function $J(){return this.parentNode}function BJ(e,t){return t??{x:e.x,y:e.y}}function UJ(){return navigator.maxTouchPoints||"ontouchstart"in this}function z5(){var e=jJ,t=$J,n=BJ,r=UJ,i={},a=Xy("start","drag","end"),s=0,u,c,f,h,p=0;function g(S){S.on("mousedown.drag",v).filter(r).on("touchstart.drag",w).on("touchmove.drag",_,zJ).on("touchend.drag touchcancel.drag",C).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(S,T){if(!(h||!e.call(this,S,T))){var O=E(this,t.call(this,S,T),S,T,"mouse");O&&(qr(S.view).on("mousemove.drag",y,Ph).on("mouseup.drag",b,Ph),I5(S.view),Tw(S),f=!1,u=S.clientX,c=S.clientY,O("start",S))}}function y(S){if(Mc(S),!f){var T=S.clientX-u,O=S.clientY-c;f=T*T+O*O>p}i.mouse("drag",S)}function b(S){qr(S.view).on("mousemove.drag mouseup.drag",null),L5(S.view,f),Mc(S),i.mouse("end",S)}function w(S,T){if(e.call(this,S,T)){var O=S.changedTouches,M=t.call(this,S,T),P=O.length,R,z;for(R=0;R<P;++R)(z=E(this,M,S,T,O[R].identifier,O[R]))&&(Tw(S),z("start",S,O[R]))}}function _(S){var T=S.changedTouches,O=T.length,M,P;for(M=0;M<O;++M)(P=i[T[M].identifier])&&(Mc(S),P("drag",S,T[M]))}function C(S){var T=S.changedTouches,O=T.length,M,P;for(h&&clearTimeout(h),h=setTimeout(function(){h=null},500),M=0;M<O;++M)(P=i[T[M].identifier])&&(Tw(S),P("end",S,T[M]))}function E(S,T,O,M,P,R){var z=a.copy(),D=Li(R||O,T),N,$,I;if((I=n.call(S,new MS("beforestart",{sourceEvent:O,target:g,identifier:P,active:s,x:D[0],y:D[1],dx:0,dy:0,dispatch:z}),M))!=null)return N=I.x-D[0]||0,$=I.y-D[1]||0,function U(j,G,q){var H=D,V;switch(j){case"start":i[P]=U,V=s++;break;case"end":delete i[P],--s;case"drag":D=Li(q||G,T),V=s;break}z.call(j,S,new MS(j,{sourceEvent:G,subject:I,target:g,identifier:P,active:V,x:D[0]+N,y:D[1]+$,dx:D[0]-H[0],dy:D[1]-H[1],dispatch:z}),M)}}return g.filter=function(S){return arguments.length?(e=typeof S=="function"?S:Ag(!!S),g):e},g.container=function(S){return arguments.length?(t=typeof S=="function"?S:Ag(S),g):t},g.subject=function(S){return arguments.length?(n=typeof S=="function"?S:Ag(S),g):n},g.touchable=function(S){return arguments.length?(r=typeof S=="function"?S:Ag(!!S),g):r},g.on=function(){var S=a.on.apply(a,arguments);return S===a?g:S},g.clickDistance=function(S){return arguments.length?(p=(S=+S)*S,g):Math.sqrt(p)},g}function mE(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function j5(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function pp(){}var Nh=.7,jv=1/Nh,Pc="\\s*([+-]?\\d+)\\s*",Rh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",pa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",FJ=/^#([0-9a-f]{3,8})$/,HJ=new RegExp(`^rgb\\(${Pc},${Pc},${Pc}\\)$`),GJ=new RegExp(`^rgb\\(${pa},${pa},${pa}\\)$`),qJ=new RegExp(`^rgba\\(${Pc},${Pc},${Pc},${Rh}\\)$`),VJ=new RegExp(`^rgba\\(${pa},${pa},${pa},${Rh}\\)$`),KJ=new RegExp(`^hsl\\(${Rh},${pa},${pa}\\)$`),YJ=new RegExp(`^hsla\\(${Rh},${pa},${pa},${Rh}\\)$`),UP={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};mE(pp,ru,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:FP,formatHex:FP,formatHex8:WJ,formatHsl:QJ,formatRgb:HP,toString:HP});function FP(){return this.rgb().formatHex()}function WJ(){return this.rgb().formatHex8()}function QJ(){return $5(this).formatHsl()}function HP(){return this.rgb().formatRgb()}function ru(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=FJ.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?GP(t):n===3?new Dr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?kg(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?kg(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=HJ.exec(e))?new Dr(t[1],t[2],t[3],1):(t=GJ.exec(e))?new Dr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=qJ.exec(e))?kg(t[1],t[2],t[3],t[4]):(t=VJ.exec(e))?kg(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=KJ.exec(e))?KP(t[1],t[2]/100,t[3]/100,1):(t=YJ.exec(e))?KP(t[1],t[2]/100,t[3]/100,t[4]):UP.hasOwnProperty(e)?GP(UP[e]):e==="transparent"?new Dr(NaN,NaN,NaN,0):null}function GP(e){return new Dr(e>>16&255,e>>8&255,e&255,1)}function kg(e,t,n,r){return r<=0&&(e=t=n=NaN),new Dr(e,t,n,r)}function ZJ(e){return e instanceof pp||(e=ru(e)),e?(e=e.rgb(),new Dr(e.r,e.g,e.b,e.opacity)):new Dr}function PS(e,t,n,r){return arguments.length===1?ZJ(e):new Dr(e,t,n,r??1)}function Dr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}mE(Dr,PS,j5(pp,{brighter(e){return e=e==null?jv:Math.pow(jv,e),new Dr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Nh:Math.pow(Nh,e),new Dr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Dr(Vl(this.r),Vl(this.g),Vl(this.b),$v(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:qP,formatHex:qP,formatHex8:XJ,formatRgb:VP,toString:VP}));function qP(){return`#${Pl(this.r)}${Pl(this.g)}${Pl(this.b)}`}function XJ(){return`#${Pl(this.r)}${Pl(this.g)}${Pl(this.b)}${Pl((isNaN(this.opacity)?1:this.opacity)*255)}`}function VP(){const e=$v(this.opacity);return`${e===1?"rgb(":"rgba("}${Vl(this.r)}, ${Vl(this.g)}, ${Vl(this.b)}${e===1?")":`, ${e})`}`}function $v(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Pl(e){return e=Vl(e),(e<16?"0":"")+e.toString(16)}function KP(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ji(e,t,n,r)}function $5(e){if(e instanceof ji)return new ji(e.h,e.s,e.l,e.opacity);if(e instanceof pp||(e=ru(e)),!e)return new ji;if(e instanceof ji)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,u=a-i,c=(a+i)/2;return u?(t===a?s=(n-r)/u+(n<r)*6:n===a?s=(r-t)/u+2:s=(t-n)/u+4,u/=c<.5?a+i:2-a-i,s*=60):u=c>0&&c<1?0:s,new ji(s,u,c,e.opacity)}function JJ(e,t,n,r){return arguments.length===1?$5(e):new ji(e,t,n,r??1)}function ji(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}mE(ji,JJ,j5(pp,{brighter(e){return e=e==null?jv:Math.pow(jv,e),new ji(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Nh:Math.pow(Nh,e),new ji(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Dr(Mw(e>=240?e-240:e+120,i,r),Mw(e,i,r),Mw(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ji(YP(this.h),Cg(this.s),Cg(this.l),$v(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=$v(this.opacity);return`${e===1?"hsl(":"hsla("}${YP(this.h)}, ${Cg(this.s)*100}%, ${Cg(this.l)*100}%${e===1?")":`, ${e})`}`}}));function YP(e){return e=(e||0)%360,e<0?e+360:e}function Cg(e){return Math.max(0,Math.min(1,e||0))}function Mw(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const gE=e=>()=>e;function eee(e,t){return function(n){return e+n*t}}function tee(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function nee(e){return(e=+e)==1?B5:function(t,n){return n-t?tee(t,n,e):gE(isNaN(t)?n:t)}}function B5(e,t){var n=t-e;return n?eee(e,n):gE(isNaN(e)?t:e)}const Bv=(function e(t){var n=nee(t);function r(i,a){var s=n((i=PS(i)).r,(a=PS(a)).r),u=n(i.g,a.g),c=n(i.b,a.b),f=B5(i.opacity,a.opacity);return function(h){return i.r=s(h),i.g=u(h),i.b=c(h),i.opacity=f(h),i+""}}return r.gamma=e,r})(1);function ree(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function iee(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function aee(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),s;for(s=0;s<r;++s)i[s]=fo(e[s],t[s]);for(;s<n;++s)a[s]=t[s];return function(u){for(s=0;s<r;++s)a[s]=i[s](u);return a}}function oee(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function zi(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function see(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=fo(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var NS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Pw=new RegExp(NS.source,"g");function lee(e){return function(){return e}}function uee(e){return function(t){return e(t)+""}}function U5(e,t){var n=NS.lastIndex=Pw.lastIndex=0,r,i,a,s=-1,u=[],c=[];for(e=e+"",t=t+"";(r=NS.exec(e))&&(i=Pw.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),u[s]?u[s]+=a:u[++s]=a),(r=r[0])===(i=i[0])?u[s]?u[s]+=i:u[++s]=i:(u[++s]=null,c.push({i:s,x:zi(r,i)})),n=Pw.lastIndex;return n<t.length&&(a=t.slice(n),u[s]?u[s]+=a:u[++s]=a),u.length<2?c[0]?uee(c[0].x):lee(t):(t=c.length,function(f){for(var h=0,p;h<t;++h)u[(p=c[h]).i]=p.x(f);return u.join("")})}function fo(e,t){var n=typeof t,r;return t==null||n==="boolean"?gE(t):(n==="number"?zi:n==="string"?(r=ru(t))?(t=r,Bv):U5:t instanceof ru?Bv:t instanceof Date?oee:iee(t)?ree:Array.isArray(t)?aee:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?see:zi)(e,t)}function vE(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var WP=180/Math.PI,RS={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function F5(e,t,n,r,i,a){var s,u,c;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,c/=u),e*r<t*n&&(e=-e,t=-t,c=-c,s=-s),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*WP,skewX:Math.atan(c)*WP,scaleX:s,scaleY:u}}var Og;function cee(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?RS:F5(t.a,t.b,t.c,t.d,t.e,t.f)}function fee(e){return e==null||(Og||(Og=document.createElementNS("http://www.w3.org/2000/svg","g")),Og.setAttribute("transform",e),!(e=Og.transform.baseVal.consolidate()))?RS:(e=e.matrix,F5(e.a,e.b,e.c,e.d,e.e,e.f))}function H5(e,t,n,r){function i(f){return f.length?f.pop()+" ":""}function a(f,h,p,g,v,y){if(f!==p||h!==g){var b=v.push("translate(",null,t,null,n);y.push({i:b-4,x:zi(f,p)},{i:b-2,x:zi(h,g)})}else(p||g)&&v.push("translate("+p+t+g+n)}function s(f,h,p,g){f!==h?(f-h>180?h+=360:h-f>180&&(f+=360),g.push({i:p.push(i(p)+"rotate(",null,r)-2,x:zi(f,h)})):h&&p.push(i(p)+"rotate("+h+r)}function u(f,h,p,g){f!==h?g.push({i:p.push(i(p)+"skewX(",null,r)-2,x:zi(f,h)}):h&&p.push(i(p)+"skewX("+h+r)}function c(f,h,p,g,v,y){if(f!==p||h!==g){var b=v.push(i(v)+"scale(",null,",",null,")");y.push({i:b-4,x:zi(f,p)},{i:b-2,x:zi(h,g)})}else(p!==1||g!==1)&&v.push(i(v)+"scale("+p+","+g+")")}return function(f,h){var p=[],g=[];return f=e(f),h=e(h),a(f.translateX,f.translateY,h.translateX,h.translateY,p,g),s(f.rotate,h.rotate,p,g),u(f.skewX,h.skewX,p,g),c(f.scaleX,f.scaleY,h.scaleX,h.scaleY,p,g),f=h=null,function(v){for(var y=-1,b=g.length,w;++y<b;)p[(w=g[y]).i]=w.x(v);return p.join("")}}}var dee=H5(cee,"px, ","px)","deg)"),hee=H5(fee,", ",")",")"),pee=1e-12;function QP(e){return((e=Math.exp(e))+1/e)/2}function mee(e){return((e=Math.exp(e))-1/e)/2}function gee(e){return((e=Math.exp(2*e))-1)/(e+1)}const iv=(function e(t,n,r){function i(a,s){var u=a[0],c=a[1],f=a[2],h=s[0],p=s[1],g=s[2],v=h-u,y=p-c,b=v*v+y*y,w,_;if(b<pee)_=Math.log(g/f)/t,w=function(M){return[u+M*v,c+M*y,f*Math.exp(t*M*_)]};else{var C=Math.sqrt(b),E=(g*g-f*f+r*b)/(2*f*n*C),S=(g*g-f*f-r*b)/(2*g*n*C),T=Math.log(Math.sqrt(E*E+1)-E),O=Math.log(Math.sqrt(S*S+1)-S);_=(O-T)/t,w=function(M){var P=M*_,R=QP(T),z=f/(n*C)*(R*gee(t*P+T)-mee(T));return[u+z*v,c+z*y,f*R/QP(t*P+T)]}}return w.duration=_*1e3*t/Math.SQRT2,w}return i.rho=function(a){var s=Math.max(.001,+a),u=s*s,c=u*u;return e(s,u,c)},i})(Math.SQRT2,2,4);function vee(e,t){t===void 0&&(t=e,e=fo);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(s){var u=Math.max(0,Math.min(r-1,Math.floor(s*=r)));return a[u](s-u)}}var nf=0,sh=0,Id=0,G5=1e3,Uv,lh,Fv=0,iu=0,e0=0,Dh=typeof performance=="object"&&performance.now?performance:Date,q5=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function yE(){return iu||(q5(yee),iu=Dh.now()+e0)}function yee(){iu=0}function Hv(){this._call=this._time=this._next=null}Hv.prototype=V5.prototype={constructor:Hv,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?yE():+n)+(t==null?0:+t),!this._next&&lh!==this&&(lh?lh._next=this:Uv=this,lh=this),this._call=e,this._time=n,DS()},stop:function(){this._call&&(this._call=null,this._time=1/0,DS())}};function V5(e,t,n){var r=new Hv;return r.restart(e,t,n),r}function bee(){yE(),++nf;for(var e=Uv,t;e;)(t=iu-e._time)>=0&&e._call.call(void 0,t),e=e._next;--nf}function ZP(){iu=(Fv=Dh.now())+e0,nf=sh=0;try{bee()}finally{nf=0,xee(),iu=0}}function wee(){var e=Dh.now(),t=e-Fv;t>G5&&(e0-=t,Fv=e)}function xee(){for(var e,t=Uv,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Uv=n);lh=e,DS(r)}function DS(e){if(!nf){sh&&(sh=clearTimeout(sh));var t=e-iu;t>24?(e<1/0&&(sh=setTimeout(ZP,e-Dh.now()-e0)),Id&&(Id=clearInterval(Id))):(Id||(Fv=Dh.now(),Id=setInterval(wee,G5)),nf=1,q5(ZP))}}function XP(e,t,n){var r=new Hv;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var _ee=Xy("start","end","cancel","interrupt"),See=[],K5=0,JP=1,IS=2,av=3,eN=4,LS=5,ov=6;function t0(e,t,n,r,i,a){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;Eee(e,n,{name:t,index:r,group:i,on:_ee,tween:See,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:K5})}function bE(e,t){var n=Ki(e,t);if(n.state>K5)throw new Error("too late; already scheduled");return n}function Sa(e,t){var n=Ki(e,t);if(n.state>av)throw new Error("too late; already running");return n}function Ki(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Eee(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=V5(a,0,n.time);function a(f){n.state=JP,n.timer.restart(s,n.delay,n.time),n.delay<=f&&s(f-n.delay)}function s(f){var h,p,g,v;if(n.state!==JP)return c();for(h in r)if(v=r[h],v.name===n.name){if(v.state===av)return XP(s);v.state===eN?(v.state=ov,v.timer.stop(),v.on.call("interrupt",e,e.__data__,v.index,v.group),delete r[h]):+h<t&&(v.state=ov,v.timer.stop(),v.on.call("cancel",e,e.__data__,v.index,v.group),delete r[h])}if(XP(function(){n.state===av&&(n.state=eN,n.timer.restart(u,n.delay,n.time),u(f))}),n.state=IS,n.on.call("start",e,e.__data__,n.index,n.group),n.state===IS){for(n.state=av,i=new Array(g=n.tween.length),h=0,p=-1;h<g;++h)(v=n.tween[h].value.call(e,e.__data__,n.index,n.group))&&(i[++p]=v);i.length=p+1}}function u(f){for(var h=f<n.duration?n.ease.call(null,f/n.duration):(n.timer.restart(c),n.state=LS,1),p=-1,g=i.length;++p<g;)i[p].call(e,h);n.state===LS&&(n.on.call("end",e,e.__data__,n.index,n.group),c())}function c(){n.state=ov,n.timer.stop(),delete r[t];for(var f in r)return;delete e.__transition}}function sv(e,t){var n=e.__transition,r,i,a=!0,s;if(n){t=t==null?null:t+"";for(s in n){if((r=n[s]).name!==t){a=!1;continue}i=r.state>IS&&r.state<LS,r.state=ov,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[s]}a&&delete e.__transition}}function Aee(e){return this.each(function(){sv(this,e)})}function kee(e,t){var n,r;return function(){var i=Sa(this,e),a=i.tween;if(a!==n){r=n=a;for(var s=0,u=r.length;s<u;++s)if(r[s].name===t){r=r.slice(),r.splice(s,1);break}}i.tween=r}}function Cee(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var a=Sa(this,e),s=a.tween;if(s!==r){i=(r=s).slice();for(var u={name:t,value:n},c=0,f=i.length;c<f;++c)if(i[c].name===t){i[c]=u;break}c===f&&i.push(u)}a.tween=i}}function Oee(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Ki(this.node(),n).tween,i=0,a=r.length,s;i<a;++i)if((s=r[i]).name===e)return s.value;return null}return this.each((t==null?kee:Cee)(n,e,t))}function wE(e,t,n){var r=e._id;return e.each(function(){var i=Sa(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return Ki(i,r).value[t]}}function Y5(e,t){var n;return(typeof t=="number"?zi:t instanceof ru?Bv:(n=ru(t))?(t=n,Bv):U5)(e,t)}function Tee(e){return function(){this.removeAttribute(e)}}function Mee(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Pee(e,t,n){var r,i=n+"",a;return function(){var s=this.getAttribute(e);return s===i?null:s===r?a:a=t(r=s,n)}}function Nee(e,t,n){var r,i=n+"",a;return function(){var s=this.getAttributeNS(e.space,e.local);return s===i?null:s===r?a:a=t(r=s,n)}}function Ree(e,t,n){var r,i,a;return function(){var s,u=n(this),c;return u==null?void this.removeAttribute(e):(s=this.getAttribute(e),c=u+"",s===c?null:s===r&&c===i?a:(i=c,a=t(r=s,u)))}}function Dee(e,t,n){var r,i,a;return function(){var s,u=n(this),c;return u==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),c=u+"",s===c?null:s===r&&c===i?a:(i=c,a=t(r=s,u)))}}function Iee(e,t){var n=Jy(e),r=n==="transform"?hee:Y5;return this.attrTween(e,typeof t=="function"?(n.local?Dee:Ree)(n,r,wE(this,"attr."+e,t)):t==null?(n.local?Mee:Tee)(n):(n.local?Nee:Pee)(n,r,t))}function Lee(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function zee(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function jee(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&zee(e,a)),n}return i._value=t,i}function $ee(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&Lee(e,a)),n}return i._value=t,i}function Bee(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=Jy(e);return this.tween(n,(r.local?jee:$ee)(r,t))}function Uee(e,t){return function(){bE(this,e).delay=+t.apply(this,arguments)}}function Fee(e,t){return t=+t,function(){bE(this,e).delay=t}}function Hee(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Uee:Fee)(t,e)):Ki(this.node(),t).delay}function Gee(e,t){return function(){Sa(this,e).duration=+t.apply(this,arguments)}}function qee(e,t){return t=+t,function(){Sa(this,e).duration=t}}function Vee(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Gee:qee)(t,e)):Ki(this.node(),t).duration}function Kee(e,t){if(typeof t!="function")throw new Error;return function(){Sa(this,e).ease=t}}function Yee(e){var t=this._id;return arguments.length?this.each(Kee(t,e)):Ki(this.node(),t).ease}function Wee(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Sa(this,e).ease=n}}function Qee(e){if(typeof e!="function")throw new Error;return this.each(Wee(this._id,e))}function Zee(e){typeof e!="function"&&(e=A5(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],s=a.length,u=r[i]=[],c,f=0;f<s;++f)(c=a[f])&&e.call(c,c.__data__,f,a)&&u.push(c);return new xo(r,this._parents,this._name,this._id)}function Xee(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),s=new Array(r),u=0;u<a;++u)for(var c=t[u],f=n[u],h=c.length,p=s[u]=new Array(h),g,v=0;v<h;++v)(g=c[v]||f[v])&&(p[v]=g);for(;u<r;++u)s[u]=t[u];return new xo(s,this._parents,this._name,this._id)}function Jee(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function ete(e,t,n){var r,i,a=Jee(t)?bE:Sa;return function(){var s=a(this,e),u=s.on;u!==r&&(i=(r=u).copy()).on(t,n),s.on=i}}function tte(e,t){var n=this._id;return arguments.length<2?Ki(this.node(),n).on.on(e):this.each(ete(n,e,t))}function nte(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function rte(){return this.on("end.remove",nte(this._id))}function ite(e){var t=this._name,n=this._id;typeof e!="function"&&(e=hE(e));for(var r=this._groups,i=r.length,a=new Array(i),s=0;s<i;++s)for(var u=r[s],c=u.length,f=a[s]=new Array(c),h,p,g=0;g<c;++g)(h=u[g])&&(p=e.call(h,h.__data__,g,u))&&("__data__"in h&&(p.__data__=h.__data__),f[g]=p,t0(f[g],t,n,g,f,Ki(h,n)));return new xo(a,this._parents,t,n)}function ate(e){var t=this._name,n=this._id;typeof e!="function"&&(e=E5(e));for(var r=this._groups,i=r.length,a=[],s=[],u=0;u<i;++u)for(var c=r[u],f=c.length,h,p=0;p<f;++p)if(h=c[p]){for(var g=e.call(h,h.__data__,p,c),v,y=Ki(h,n),b=0,w=g.length;b<w;++b)(v=g[b])&&t0(v,t,n,b,g,y);a.push(g),s.push(h)}return new xo(a,s,t,n)}var ote=hp.prototype.constructor;function ste(){return new ote(this._groups,this._parents)}function lte(e,t){var n,r,i;return function(){var a=tf(this,e),s=(this.style.removeProperty(e),tf(this,e));return a===s?null:a===n&&s===r?i:i=t(n=a,r=s)}}function W5(e){return function(){this.style.removeProperty(e)}}function ute(e,t,n){var r,i=n+"",a;return function(){var s=tf(this,e);return s===i?null:s===r?a:a=t(r=s,n)}}function cte(e,t,n){var r,i,a;return function(){var s=tf(this,e),u=n(this),c=u+"";return u==null&&(c=u=(this.style.removeProperty(e),tf(this,e))),s===c?null:s===r&&c===i?a:(i=c,a=t(r=s,u))}}function fte(e,t){var n,r,i,a="style."+t,s="end."+a,u;return function(){var c=Sa(this,e),f=c.on,h=c.value[a]==null?u||(u=W5(t)):void 0;(f!==n||i!==h)&&(r=(n=f).copy()).on(s,i=h),c.on=r}}function dte(e,t,n){var r=(e+="")=="transform"?dee:Y5;return t==null?this.styleTween(e,lte(e,r)).on("end.style."+e,W5(e)):typeof t=="function"?this.styleTween(e,cte(e,r,wE(this,"style."+e,t))).each(fte(this._id,e)):this.styleTween(e,ute(e,r,t),n).on("end.style."+e,null)}function hte(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function pte(e,t,n){var r,i;function a(){var s=t.apply(this,arguments);return s!==i&&(r=(i=s)&&hte(e,s,n)),r}return a._value=t,a}function mte(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,pte(e,t,n??""))}function gte(e){return function(){this.textContent=e}}function vte(e){return function(){var t=e(this);this.textContent=t??""}}function yte(e){return this.tween("text",typeof e=="function"?vte(wE(this,"text",e)):gte(e==null?"":e+""))}function bte(e){return function(t){this.textContent=e.call(this,t)}}function wte(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&bte(i)),t}return r._value=e,r}function xte(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,wte(e))}function _te(){for(var e=this._name,t=this._id,n=Q5(),r=this._groups,i=r.length,a=0;a<i;++a)for(var s=r[a],u=s.length,c,f=0;f<u;++f)if(c=s[f]){var h=Ki(c,t);t0(c,e,n,f,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new xo(r,this._parents,e,n)}function Ste(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,s){var u={value:s},c={value:function(){--i===0&&a()}};n.each(function(){var f=Sa(this,r),h=f.on;h!==e&&(t=(e=h).copy(),t._.cancel.push(u),t._.interrupt.push(u),t._.end.push(c)),f.on=t}),i===0&&a()})}var Ete=0;function xo(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Q5(){return++Ete}var Qa=hp.prototype;xo.prototype={constructor:xo,select:ite,selectAll:ate,selectChild:Qa.selectChild,selectChildren:Qa.selectChildren,filter:Zee,merge:Xee,selection:ste,transition:_te,call:Qa.call,nodes:Qa.nodes,node:Qa.node,size:Qa.size,empty:Qa.empty,each:Qa.each,on:tte,attr:Iee,attrTween:Bee,style:dte,styleTween:mte,text:yte,textTween:xte,remove:rte,tween:Oee,delay:Hee,duration:Vee,ease:Yee,easeVarying:Qee,end:Ste,[Symbol.iterator]:Qa[Symbol.iterator]};function Ate(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var kte={time:null,delay:0,duration:250,ease:Ate};function Cte(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function Ote(e){var t,n;e instanceof xo?(t=e._id,e=e._name):(t=Q5(),(n=kte).time=yE(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var s=r[a],u=s.length,c,f=0;f<u;++f)(c=s[f])&&t0(c,e,t,f,s,n||Cte(c,t));return new xo(r,this._parents,e,t)}hp.prototype.interrupt=Aee;hp.prototype.transition=Ote;const Tg=e=>()=>e;function Tte(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function lo(e,t,n){this.k=e,this.x=t,this.y=n}lo.prototype={constructor:lo,scale:function(e){return e===1?this:new lo(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new lo(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var n0=new lo(1,0,0);Z5.prototype=lo.prototype;function Z5(e){for(;!e.__zoom;)if(!(e=e.parentNode))return n0;return e.__zoom}function Nw(e){e.stopImmediatePropagation()}function Ld(e){e.preventDefault(),e.stopImmediatePropagation()}function Mte(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Pte(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function tN(){return this.__zoom||n0}function Nte(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Rte(){return navigator.maxTouchPoints||"ontouchstart"in this}function Dte(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),s>a?(a+s)/2:Math.min(0,a)||Math.max(0,s))}function X5(){var e=Mte,t=Pte,n=Dte,r=Nte,i=Rte,a=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],u=250,c=iv,f=Xy("start","zoom","end"),h,p,g,v=500,y=150,b=0,w=10;function _(I){I.property("__zoom",tN).on("wheel.zoom",P,{passive:!1}).on("mousedown.zoom",R).on("dblclick.zoom",z).filter(i).on("touchstart.zoom",D).on("touchmove.zoom",N).on("touchend.zoom touchcancel.zoom",$).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}_.transform=function(I,U,j,G){var q=I.selection?I.selection():I;q.property("__zoom",tN),I!==q?T(I,U,j,G):q.interrupt().each(function(){O(this,arguments).event(G).start().zoom(null,typeof U=="function"?U.apply(this,arguments):U).end()})},_.scaleBy=function(I,U,j,G){_.scaleTo(I,function(){var q=this.__zoom.k,H=typeof U=="function"?U.apply(this,arguments):U;return q*H},j,G)},_.scaleTo=function(I,U,j,G){_.transform(I,function(){var q=t.apply(this,arguments),H=this.__zoom,V=j==null?S(q):typeof j=="function"?j.apply(this,arguments):j,B=H.invert(V),K=typeof U=="function"?U.apply(this,arguments):U;return n(E(C(H,K),V,B),q,s)},j,G)},_.translateBy=function(I,U,j,G){_.transform(I,function(){return n(this.__zoom.translate(typeof U=="function"?U.apply(this,arguments):U,typeof j=="function"?j.apply(this,arguments):j),t.apply(this,arguments),s)},null,G)},_.translateTo=function(I,U,j,G,q){_.transform(I,function(){var H=t.apply(this,arguments),V=this.__zoom,B=G==null?S(H):typeof G=="function"?G.apply(this,arguments):G;return n(n0.translate(B[0],B[1]).scale(V.k).translate(typeof U=="function"?-U.apply(this,arguments):-U,typeof j=="function"?-j.apply(this,arguments):-j),H,s)},G,q)};function C(I,U){return U=Math.max(a[0],Math.min(a[1],U)),U===I.k?I:new lo(U,I.x,I.y)}function E(I,U,j){var G=U[0]-j[0]*I.k,q=U[1]-j[1]*I.k;return G===I.x&&q===I.y?I:new lo(I.k,G,q)}function S(I){return[(+I[0][0]+ +I[1][0])/2,(+I[0][1]+ +I[1][1])/2]}function T(I,U,j,G){I.on("start.zoom",function(){O(this,arguments).event(G).start()}).on("interrupt.zoom end.zoom",function(){O(this,arguments).event(G).end()}).tween("zoom",function(){var q=this,H=arguments,V=O(q,H).event(G),B=t.apply(q,H),K=j==null?S(B):typeof j=="function"?j.apply(q,H):j,X=Math.max(B[1][0]-B[0][0],B[1][1]-B[0][1]),ee=q.__zoom,ce=typeof U=="function"?U.apply(q,H):U,he=c(ee.invert(K).concat(X/ee.k),ce.invert(K).concat(X/ce.k));return function(de){if(de===1)de=ce;else{var ie=he(de),J=X/ie[2];de=new lo(J,K[0]-ie[0]*J,K[1]-ie[1]*J)}V.zoom(null,de)}})}function O(I,U,j){return!j&&I.__zooming||new M(I,U)}function M(I,U){this.that=I,this.args=U,this.active=0,this.sourceEvent=null,this.extent=t.apply(I,U),this.taps=0}M.prototype={event:function(I){return I&&(this.sourceEvent=I),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(I,U){return this.mouse&&I!=="mouse"&&(this.mouse[1]=U.invert(this.mouse[0])),this.touch0&&I!=="touch"&&(this.touch0[1]=U.invert(this.touch0[0])),this.touch1&&I!=="touch"&&(this.touch1[1]=U.invert(this.touch1[0])),this.that.__zoom=U,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(I){var U=qr(this.that).datum();f.call(I,this.that,new Tte(I,{sourceEvent:this.sourceEvent,target:_,transform:this.that.__zoom,dispatch:f}),U)}};function P(I,...U){if(!e.apply(this,arguments))return;var j=O(this,U).event(I),G=this.__zoom,q=Math.max(a[0],Math.min(a[1],G.k*Math.pow(2,r.apply(this,arguments)))),H=Li(I);if(j.wheel)(j.mouse[0][0]!==H[0]||j.mouse[0][1]!==H[1])&&(j.mouse[1]=G.invert(j.mouse[0]=H)),clearTimeout(j.wheel);else{if(G.k===q)return;j.mouse=[H,G.invert(H)],sv(this),j.start()}Ld(I),j.wheel=setTimeout(V,y),j.zoom("mouse",n(E(C(G,q),j.mouse[0],j.mouse[1]),j.extent,s));function V(){j.wheel=null,j.end()}}function R(I,...U){if(g||!e.apply(this,arguments))return;var j=I.currentTarget,G=O(this,U,!0).event(I),q=qr(I.view).on("mousemove.zoom",K,!0).on("mouseup.zoom",X,!0),H=Li(I,j),V=I.clientX,B=I.clientY;I5(I.view),Nw(I),G.mouse=[H,this.__zoom.invert(H)],sv(this),G.start();function K(ee){if(Ld(ee),!G.moved){var ce=ee.clientX-V,he=ee.clientY-B;G.moved=ce*ce+he*he>b}G.event(ee).zoom("mouse",n(E(G.that.__zoom,G.mouse[0]=Li(ee,j),G.mouse[1]),G.extent,s))}function X(ee){q.on("mousemove.zoom mouseup.zoom",null),L5(ee.view,G.moved),Ld(ee),G.event(ee).end()}}function z(I,...U){if(e.apply(this,arguments)){var j=this.__zoom,G=Li(I.changedTouches?I.changedTouches[0]:I,this),q=j.invert(G),H=j.k*(I.shiftKey?.5:2),V=n(E(C(j,H),G,q),t.apply(this,U),s);Ld(I),u>0?qr(this).transition().duration(u).call(T,V,G,I):qr(this).call(_.transform,V,G,I)}}function D(I,...U){if(e.apply(this,arguments)){var j=I.touches,G=j.length,q=O(this,U,I.changedTouches.length===G).event(I),H,V,B,K;for(Nw(I),V=0;V<G;++V)B=j[V],K=Li(B,this),K=[K,this.__zoom.invert(K),B.identifier],q.touch0?!q.touch1&&q.touch0[2]!==K[2]&&(q.touch1=K,q.taps=0):(q.touch0=K,H=!0,q.taps=1+!!h);h&&(h=clearTimeout(h)),H&&(q.taps<2&&(p=K[0],h=setTimeout(function(){h=null},v)),sv(this),q.start())}}function N(I,...U){if(this.__zooming){var j=O(this,U).event(I),G=I.changedTouches,q=G.length,H,V,B,K;for(Ld(I),H=0;H<q;++H)V=G[H],B=Li(V,this),j.touch0&&j.touch0[2]===V.identifier?j.touch0[0]=B:j.touch1&&j.touch1[2]===V.identifier&&(j.touch1[0]=B);if(V=j.that.__zoom,j.touch1){var X=j.touch0[0],ee=j.touch0[1],ce=j.touch1[0],he=j.touch1[1],de=(de=ce[0]-X[0])*de+(de=ce[1]-X[1])*de,ie=(ie=he[0]-ee[0])*ie+(ie=he[1]-ee[1])*ie;V=C(V,Math.sqrt(de/ie)),B=[(X[0]+ce[0])/2,(X[1]+ce[1])/2],K=[(ee[0]+he[0])/2,(ee[1]+he[1])/2]}else if(j.touch0)B=j.touch0[0],K=j.touch0[1];else return;j.zoom("touch",n(E(V,B,K),j.extent,s))}}function $(I,...U){if(this.__zooming){var j=O(this,U).event(I),G=I.changedTouches,q=G.length,H,V;for(Nw(I),g&&clearTimeout(g),g=setTimeout(function(){g=null},v),H=0;H<q;++H)V=G[H],j.touch0&&j.touch0[2]===V.identifier?delete j.touch0:j.touch1&&j.touch1[2]===V.identifier&&delete j.touch1;if(j.touch1&&!j.touch0&&(j.touch0=j.touch1,delete j.touch1),j.touch0)j.touch0[1]=this.__zoom.invert(j.touch0[0]);else if(j.end(),j.taps===2&&(V=Li(V,this),Math.hypot(p[0]-V[0],p[1]-V[1])<w)){var B=qr(this).on("dblclick.zoom");B&&B.apply(this,arguments)}}}return _.wheelDelta=function(I){return arguments.length?(r=typeof I=="function"?I:Tg(+I),_):r},_.filter=function(I){return arguments.length?(e=typeof I=="function"?I:Tg(!!I),_):e},_.touchable=function(I){return arguments.length?(i=typeof I=="function"?I:Tg(!!I),_):i},_.extent=function(I){return arguments.length?(t=typeof I=="function"?I:Tg([[+I[0][0],+I[0][1]],[+I[1][0],+I[1][1]]]),_):t},_.scaleExtent=function(I){return arguments.length?(a[0]=+I[0],a[1]=+I[1],_):[a[0],a[1]]},_.translateExtent=function(I){return arguments.length?(s[0][0]=+I[0][0],s[1][0]=+I[1][0],s[0][1]=+I[0][1],s[1][1]=+I[1][1],_):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},_.constrain=function(I){return arguments.length?(n=I,_):n},_.duration=function(I){return arguments.length?(u=+I,_):u},_.interpolate=function(I){return arguments.length?(c=I,_):c},_.on=function(){var I=f.on.apply(f,arguments);return I===f?_:I},_.clickDistance=function(I){return arguments.length?(b=(I=+I)*I,_):Math.sqrt(b)},_.tapDistance=function(I){return arguments.length?(w=+I,_):w},_}const ga={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:r}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},Ih=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],J5=["Enter"," ","Escape"],ej={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var rf;(function(e){e.Strict="strict",e.Loose="loose"})(rf||(rf={}));var Kl;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(Kl||(Kl={}));var Lh;(function(e){e.Partial="partial",e.Full="full"})(Lh||(Lh={}));const tj={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var _s;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(_s||(_s={}));var Gv;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(Gv||(Gv={}));var Ke;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(Ke||(Ke={}));const nN={[Ke.Left]:Ke.Right,[Ke.Right]:Ke.Left,[Ke.Top]:Ke.Bottom,[Ke.Bottom]:Ke.Top};function nj(e){return e===null?null:e?"valid":"invalid"}const rj=e=>"id"in e&&"source"in e&&"target"in e,Ite=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),xE=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),mp=(e,t=[0,0])=>{const{width:n,height:r}=ko(e),i=e.origin??t,a=n*i[0],s=r*i[1];return{x:e.position.x-a,y:e.position.y-s}},Lte=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((r,i)=>{const a=typeof i=="string";let s=!t.nodeLookup&&!a?i:void 0;t.nodeLookup&&(s=a?t.nodeLookup.get(i):xE(i)?i:t.nodeLookup.get(i.id));const u=s?qv(s,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return r0(r,u)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return i0(n)},gp=(e,t={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},r=!1;return e.forEach(i=>{(t.filter===void 0||t.filter(i))&&(n=r0(n,qv(i)),r=!0)}),r?i0(n):{x:0,y:0,width:0,height:0}},_E=(e,t,[n,r,i]=[0,0,1],a=!1,s=!1)=>{const u={...yp(t,[n,r,i]),width:t.width/i,height:t.height/i},c=[];for(const f of e.values()){const{measured:h,selectable:p=!0,hidden:g=!1}=f;if(s&&!p||g)continue;const v=h.width??f.width??f.initialWidth??null,y=h.height??f.height??f.initialHeight??null,b=zh(u,of(f)),w=(v??0)*(y??0),_=a&&b>0;(!f.internals.handleBounds||_||b>=w||f.dragging)&&c.push(f)}return c},zte=(e,t)=>{const n=new Set;return e.forEach(r=>{n.add(r.id)}),t.filter(r=>n.has(r.source)||n.has(r.target))};function jte(e,t){const n=new Map,r=t!=null&&t.nodes?new Set(t.nodes.map(i=>i.id)):null;return e.forEach(i=>{i.measured.width&&i.measured.height&&((t==null?void 0:t.includeHiddenNodes)||!i.hidden)&&(!r||r.has(i.id))&&n.set(i.id,i)}),n}async function $te({nodes:e,width:t,height:n,panZoom:r,minZoom:i,maxZoom:a},s){if(e.size===0)return Promise.resolve(!0);const u=jte(e,s),c=gp(u),f=SE(c,t,n,(s==null?void 0:s.minZoom)??i,(s==null?void 0:s.maxZoom)??a,(s==null?void 0:s.padding)??.1);return await r.setViewport(f,{duration:s==null?void 0:s.duration,ease:s==null?void 0:s.ease,interpolate:s==null?void 0:s.interpolate}),Promise.resolve(!0)}function ij({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:i,onError:a}){const s=n.get(e),u=s.parentId?n.get(s.parentId):void 0,{x:c,y:f}=u?u.internals.positionAbsolute:{x:0,y:0},h=s.origin??r;let p=s.extent||i;if(s.extent==="parent"&&!s.expandParent)if(!u)a==null||a("005",ga.error005());else{const v=u.measured.width,y=u.measured.height;v&&y&&(p=[[c,f],[c+v,f+y]])}else u&&sf(s.extent)&&(p=[[s.extent[0][0]+c,s.extent[0][1]+f],[s.extent[1][0]+c,s.extent[1][1]+f]]);const g=sf(p)?au(t,p,s.measured):t;return(s.measured.width===void 0||s.measured.height===void 0)&&(a==null||a("015",ga.error015())),{position:{x:g.x-c+(s.measured.width??0)*h[0],y:g.y-f+(s.measured.height??0)*h[1]},positionAbsolute:g}}async function Bte({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:r,onBeforeDelete:i}){const a=new Set(e.map(g=>g.id)),s=[];for(const g of n){if(g.deletable===!1)continue;const v=a.has(g.id),y=!v&&g.parentId&&s.find(b=>b.id===g.parentId);(v||y)&&s.push(g)}const u=new Set(t.map(g=>g.id)),c=r.filter(g=>g.deletable!==!1),h=zte(s,c);for(const g of c)u.has(g.id)&&!h.find(y=>y.id===g.id)&&h.push(g);if(!i)return{edges:h,nodes:s};const p=await i({nodes:s,edges:h});return typeof p=="boolean"?p?{edges:h,nodes:s}:{edges:[],nodes:[]}:p}const af=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),au=(e={x:0,y:0},t,n)=>({x:af(e.x,t[0][0],t[1][0]-((n==null?void 0:n.width)??0)),y:af(e.y,t[0][1],t[1][1]-((n==null?void 0:n.height)??0))});function aj(e,t,n){const{width:r,height:i}=ko(n),{x:a,y:s}=n.internals.positionAbsolute;return au(e,[[a,s],[a+r,s+i]],t)}const rN=(e,t,n)=>e<t?af(Math.abs(e-t),1,t)/t:e>n?-af(Math.abs(e-n),1,t)/t:0,oj=(e,t,n=15,r=40)=>{const i=rN(e.x,r,t.width-r)*n,a=rN(e.y,r,t.height-r)*n;return[i,a]},r0=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),zS=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),i0=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),of=(e,t=[0,0])=>{var i,a;const{x:n,y:r}=xE(e)?e.internals.positionAbsolute:mp(e,t);return{x:n,y:r,width:((i=e.measured)==null?void 0:i.width)??e.width??e.initialWidth??0,height:((a=e.measured)==null?void 0:a.height)??e.height??e.initialHeight??0}},qv=(e,t=[0,0])=>{var i,a;const{x:n,y:r}=xE(e)?e.internals.positionAbsolute:mp(e,t);return{x:n,y:r,x2:n+(((i=e.measured)==null?void 0:i.width)??e.width??e.initialWidth??0),y2:r+(((a=e.measured)==null?void 0:a.height)??e.height??e.initialHeight??0)}},sj=(e,t)=>i0(r0(zS(e),zS(t))),zh=(e,t)=>{const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),r=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*r)},iN=e=>Hi(e.width)&&Hi(e.height)&&Hi(e.x)&&Hi(e.y),Hi=e=>!isNaN(e)&&isFinite(e),Ute=(e,t)=>{},vp=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),yp=({x:e,y:t},[n,r,i],a=!1,s=[1,1])=>{const u={x:(e-n)/i,y:(t-r)/i};return a?vp(u,s):u},Vv=({x:e,y:t},[n,r,i])=>({x:e*i+n,y:t*i+r});function lc(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function Fte(e,t,n){if(typeof e=="string"||typeof e=="number"){const r=lc(e,n),i=lc(e,t);return{top:r,right:i,bottom:r,left:i,x:i*2,y:r*2}}if(typeof e=="object"){const r=lc(e.top??e.y??0,n),i=lc(e.bottom??e.y??0,n),a=lc(e.left??e.x??0,t),s=lc(e.right??e.x??0,t);return{top:r,right:s,bottom:i,left:a,x:a+s,y:r+i}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function Hte(e,t,n,r,i,a){const{x:s,y:u}=Vv(e,[t,n,r]),{x:c,y:f}=Vv({x:e.x+e.width,y:e.y+e.height},[t,n,r]),h=i-c,p=a-f;return{left:Math.floor(s),top:Math.floor(u),right:Math.floor(h),bottom:Math.floor(p)}}const SE=(e,t,n,r,i,a)=>{const s=Fte(a,t,n),u=(t-s.x)/e.width,c=(n-s.y)/e.height,f=Math.min(u,c),h=af(f,r,i),p=e.x+e.width/2,g=e.y+e.height/2,v=t/2-p*h,y=n/2-g*h,b=Hte(e,v,y,h,t,n),w={left:Math.min(b.left-s.left,0),top:Math.min(b.top-s.top,0),right:Math.min(b.right-s.right,0),bottom:Math.min(b.bottom-s.bottom,0)};return{x:v-w.left+w.right,y:y-w.top+w.bottom,zoom:h}},jh=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function sf(e){return e!=null&&e!=="parent"}function ko(e){var t,n;return{width:((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth??0,height:((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight??0}}function lj(e){var t,n;return(((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth)!==void 0&&(((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight)!==void 0}function uj(e,t={width:0,height:0},n,r,i){const a={...e},s=r.get(n);if(s){const u=s.origin||i;a.x+=s.internals.positionAbsolute.x-(t.width??0)*u[0],a.y+=s.internals.positionAbsolute.y-(t.height??0)*u[1]}return a}function aN(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function Gte(){let e,t;return{promise:new Promise((r,i)=>{e=r,t=i}),resolve:e,reject:t}}function qte(e){return{...ej,...e||{}}}function ph(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:r,containerBounds:i}){const{x:a,y:s}=Gi(e),u=yp({x:a-((i==null?void 0:i.left)??0),y:s-((i==null?void 0:i.top)??0)},r),{x:c,y:f}=n?vp(u,t):u;return{xSnapped:c,ySnapped:f,...u}}const EE=e=>({width:e.offsetWidth,height:e.offsetHeight}),cj=e=>{var t;return((t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},Vte=["INPUT","SELECT","TEXTAREA"];function fj(e){var r,i;const t=((i=(r=e.composedPath)==null?void 0:r.call(e))==null?void 0:i[0])||e.target;return(t==null?void 0:t.nodeType)!==1?!1:Vte.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const dj=e=>"clientX"in e,Gi=(e,t)=>{var a,s;const n=dj(e),r=n?e.clientX:(a=e.touches)==null?void 0:a[0].clientX,i=n?e.clientY:(s=e.touches)==null?void 0:s[0].clientY;return{x:r-((t==null?void 0:t.left)??0),y:i-((t==null?void 0:t.top)??0)}},oN=(e,t,n,r,i)=>{const a=t.querySelectorAll(`.${e}`);return!a||!a.length?null:Array.from(a).map(s=>{const u=s.getBoundingClientRect();return{id:s.getAttribute("data-handleid"),type:e,nodeId:i,position:s.getAttribute("data-handlepos"),x:(u.left-n.left)/r,y:(u.top-n.top)/r,...EE(s)}})};function hj({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:i,sourceControlY:a,targetControlX:s,targetControlY:u}){const c=e*.125+i*.375+s*.375+n*.125,f=t*.125+a*.375+u*.375+r*.125,h=Math.abs(c-e),p=Math.abs(f-t);return[c,f,h,p]}function Mg(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function sN({pos:e,x1:t,y1:n,x2:r,y2:i,c:a}){switch(e){case Ke.Left:return[t-Mg(t-r,a),n];case Ke.Right:return[t+Mg(r-t,a),n];case Ke.Top:return[t,n-Mg(n-i,a)];case Ke.Bottom:return[t,n+Mg(i-n,a)]}}function pj({sourceX:e,sourceY:t,sourcePosition:n=Ke.Bottom,targetX:r,targetY:i,targetPosition:a=Ke.Top,curvature:s=.25}){const[u,c]=sN({pos:n,x1:e,y1:t,x2:r,y2:i,c:s}),[f,h]=sN({pos:a,x1:r,y1:i,x2:e,y2:t,c:s}),[p,g,v,y]=hj({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:u,sourceControlY:c,targetControlX:f,targetControlY:h});return[`M${e},${t} C${u},${c} ${f},${h} ${r},${i}`,p,g,v,y]}function mj({sourceX:e,sourceY:t,targetX:n,targetY:r}){const i=Math.abs(n-e)/2,a=n<e?n+i:n-i,s=Math.abs(r-t)/2,u=r<t?r+s:r-s;return[a,u,i,s]}function Kte({sourceNode:e,targetNode:t,selected:n=!1,zIndex:r=0,elevateOnSelect:i=!1,zIndexMode:a="basic"}){if(a==="manual")return r;const s=i&&n?r+1e3:r,u=Math.max(e.parentId||i&&e.selected?e.internals.z:0,t.parentId||i&&t.selected?t.internals.z:0);return s+u}function Yte({sourceNode:e,targetNode:t,width:n,height:r,transform:i}){const a=r0(qv(e),qv(t));a.x===a.x2&&(a.x2+=1),a.y===a.y2&&(a.y2+=1);const s={x:-i[0]/i[2],y:-i[1]/i[2],width:n/i[2],height:r/i[2]};return zh(s,i0(a))>0}const Wte=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`xy-edge__${e}${t||""}-${n}${r||""}`,Qte=(e,t)=>t.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),Zte=(e,t,n={})=>{if(!e.source||!e.target)return t;const r=n.getEdgeId||Wte;let i;return rj(e)?i={...e}:i={...e,id:r(e)},Qte(i,t)?t:(i.sourceHandle===null&&delete i.sourceHandle,i.targetHandle===null&&delete i.targetHandle,t.concat(i))};function gj({sourceX:e,sourceY:t,targetX:n,targetY:r}){const[i,a,s,u]=mj({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,i,a,s,u]}const lN={[Ke.Left]:{x:-1,y:0},[Ke.Right]:{x:1,y:0},[Ke.Top]:{x:0,y:-1},[Ke.Bottom]:{x:0,y:1}},Xte=({source:e,sourcePosition:t=Ke.Bottom,target:n})=>t===Ke.Left||t===Ke.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},uN=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function Jte({source:e,sourcePosition:t=Ke.Bottom,target:n,targetPosition:r=Ke.Top,center:i,offset:a,stepPosition:s}){const u=lN[t],c=lN[r],f={x:e.x+u.x*a,y:e.y+u.y*a},h={x:n.x+c.x*a,y:n.y+c.y*a},p=Xte({source:f,sourcePosition:t,target:h}),g=p.x!==0?"x":"y",v=p[g];let y=[],b,w;const _={x:0,y:0},C={x:0,y:0},[,,E,S]=mj({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(u[g]*c[g]===-1){g==="x"?(b=i.x??f.x+(h.x-f.x)*s,w=i.y??(f.y+h.y)/2):(b=i.x??(f.x+h.x)/2,w=i.y??f.y+(h.y-f.y)*s);const P=[{x:b,y:f.y},{x:b,y:h.y}],R=[{x:f.x,y:w},{x:h.x,y:w}];u[g]===v?y=g==="x"?P:R:y=g==="x"?R:P}else{const P=[{x:f.x,y:h.y}],R=[{x:h.x,y:f.y}];if(g==="x"?y=u.x===v?R:P:y=u.y===v?P:R,t===r){const I=Math.abs(e[g]-n[g]);if(I<=a){const U=Math.min(a-1,a-I);u[g]===v?_[g]=(f[g]>e[g]?-1:1)*U:C[g]=(h[g]>n[g]?-1:1)*U}}if(t!==r){const I=g==="x"?"y":"x",U=u[g]===c[I],j=f[I]>h[I],G=f[I]<h[I];(u[g]===1&&(!U&&j||U&&G)||u[g]!==1&&(!U&&G||U&&j))&&(y=g==="x"?P:R)}const z={x:f.x+_.x,y:f.y+_.y},D={x:h.x+C.x,y:h.y+C.y},N=Math.max(Math.abs(z.x-y[0].x),Math.abs(D.x-y[0].x)),$=Math.max(Math.abs(z.y-y[0].y),Math.abs(D.y-y[0].y));N>=$?(b=(z.x+D.x)/2,w=y[0].y):(b=y[0].x,w=(z.y+D.y)/2)}const T={x:f.x+_.x,y:f.y+_.y},O={x:h.x+C.x,y:h.y+C.y};return[[e,...T.x!==y[0].x||T.y!==y[0].y?[T]:[],...y,...O.x!==y[y.length-1].x||O.y!==y[y.length-1].y?[O]:[],n],b,w,E,S]}function ene(e,t,n,r){const i=Math.min(uN(e,t)/2,uN(t,n)/2,r),{x:a,y:s}=t;if(e.x===a&&a===n.x||e.y===s&&s===n.y)return`L${a} ${s}`;if(e.y===s){const f=e.x<n.x?-1:1,h=e.y<n.y?1:-1;return`L ${a+i*f},${s}Q ${a},${s} ${a},${s+i*h}`}const u=e.x<n.x?1:-1,c=e.y<n.y?-1:1;return`L ${a},${s+i*c}Q ${a},${s} ${a+i*u},${s}`}function jS({sourceX:e,sourceY:t,sourcePosition:n=Ke.Bottom,targetX:r,targetY:i,targetPosition:a=Ke.Top,borderRadius:s=5,centerX:u,centerY:c,offset:f=20,stepPosition:h=.5}){const[p,g,v,y,b]=Jte({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:i},targetPosition:a,center:{x:u,y:c},offset:f,stepPosition:h});let w=`M${p[0].x} ${p[0].y}`;for(let _=1;_<p.length-1;_++)w+=ene(p[_-1],p[_],p[_+1],s);return w+=`L${p[p.length-1].x} ${p[p.length-1].y}`,[w,g,v,y,b]}function cN(e){var t;return e&&!!(e.internals.handleBounds||(t=e.handles)!=null&&t.length)&&!!(e.measured.width||e.width||e.initialWidth)}function tne(e){var p;const{sourceNode:t,targetNode:n}=e;if(!cN(t)||!cN(n))return null;const r=t.internals.handleBounds||fN(t.handles),i=n.internals.handleBounds||fN(n.handles),a=dN((r==null?void 0:r.source)??[],e.sourceHandle),s=dN(e.connectionMode===rf.Strict?(i==null?void 0:i.target)??[]:((i==null?void 0:i.target)??[]).concat((i==null?void 0:i.source)??[]),e.targetHandle);if(!a||!s)return(p=e.onError)==null||p.call(e,"008",ga.error008(a?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const u=(a==null?void 0:a.position)||Ke.Bottom,c=(s==null?void 0:s.position)||Ke.Top,f=ou(t,a,u),h=ou(n,s,c);return{sourceX:f.x,sourceY:f.y,targetX:h.x,targetY:h.y,sourcePosition:u,targetPosition:c}}function fN(e){if(!e)return null;const t=[],n=[];for(const r of e)r.width=r.width??1,r.height=r.height??1,r.type==="source"?t.push(r):r.type==="target"&&n.push(r);return{source:t,target:n}}function ou(e,t,n=Ke.Left,r=!1){const i=((t==null?void 0:t.x)??0)+e.internals.positionAbsolute.x,a=((t==null?void 0:t.y)??0)+e.internals.positionAbsolute.y,{width:s,height:u}=t??ko(e);if(r)return{x:i+s/2,y:a+u/2};switch((t==null?void 0:t.position)??n){case Ke.Top:return{x:i+s/2,y:a};case Ke.Right:return{x:i+s,y:a+u/2};case Ke.Bottom:return{x:i+s/2,y:a+u};case Ke.Left:return{x:i,y:a+u/2}}}function dN(e,t){return e&&(t?e.find(n=>n.id===t):e[0])||null}function $S(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(r=>`${r}=${e[r]}`).join("&")}`:""}function nne(e,{id:t,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:i}){const a=new Set;return e.reduce((s,u)=>([u.markerStart||r,u.markerEnd||i].forEach(c=>{if(c&&typeof c=="object"){const f=$S(c,t);a.has(f)||(s.push({id:f,color:c.color||n,...c}),a.add(f))}}),s),[]).sort((s,u)=>s.id.localeCompare(u.id))}const vj=1e3,rne=10,AE={nodeOrigin:[0,0],nodeExtent:Ih,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},ine={...AE,checkEquality:!0};function kE(e,t){const n={...e};for(const r in t)t[r]!==void 0&&(n[r]=t[r]);return n}function ane(e,t,n){const r=kE(AE,n);for(const i of e.values())if(i.parentId)OE(i,e,t,r);else{const a=mp(i,r.nodeOrigin),s=sf(i.extent)?i.extent:r.nodeExtent,u=au(a,s,ko(i));i.internals.positionAbsolute=u}}function one(e,t){if(!e.handles)return e.measured?t==null?void 0:t.internals.handleBounds:void 0;const n=[],r=[];for(const i of e.handles){const a={id:i.id,width:i.width??1,height:i.height??1,nodeId:e.id,x:i.x,y:i.y,position:i.position,type:i.type};i.type==="source"?n.push(a):i.type==="target"&&r.push(a)}return{source:n,target:r}}function CE(e){return e==="manual"}function BS(e,t,n,r={}){var h,p;const i=kE(ine,r),a={i:0},s=new Map(t),u=i!=null&&i.elevateNodesOnSelect&&!CE(i.zIndexMode)?vj:0;let c=e.length>0,f=!1;t.clear(),n.clear();for(const g of e){let v=s.get(g.id);if(i.checkEquality&&g===(v==null?void 0:v.internals.userNode))t.set(g.id,v);else{const y=mp(g,i.nodeOrigin),b=sf(g.extent)?g.extent:i.nodeExtent,w=au(y,b,ko(g));v={...i.defaults,...g,measured:{width:(h=g.measured)==null?void 0:h.width,height:(p=g.measured)==null?void 0:p.height},internals:{positionAbsolute:w,handleBounds:one(g,v),z:yj(g,u,i.zIndexMode),userNode:g}},t.set(g.id,v)}(v.measured===void 0||v.measured.width===void 0||v.measured.height===void 0)&&!v.hidden&&(c=!1),g.parentId&&OE(v,t,n,r,a),f||(f=g.selected??!1)}return{nodesInitialized:c,hasSelectedNodes:f}}function sne(e,t){if(!e.parentId)return;const n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function OE(e,t,n,r,i){const{elevateNodesOnSelect:a,nodeOrigin:s,nodeExtent:u,zIndexMode:c}=kE(AE,r),f=e.parentId,h=t.get(f);if(!h){console.warn(`Parent node ${f} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}sne(e,n),i&&!h.parentId&&h.internals.rootParentIndex===void 0&&c==="auto"&&(h.internals.rootParentIndex=++i.i,h.internals.z=h.internals.z+i.i*rne),i&&h.internals.rootParentIndex!==void 0&&(i.i=h.internals.rootParentIndex);const p=a&&!CE(c)?vj:0,{x:g,y:v,z:y}=lne(e,h,s,u,p,c),{positionAbsolute:b}=e.internals,w=g!==b.x||v!==b.y;(w||y!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:w?{x:g,y:v}:b,z:y}})}function yj(e,t,n){const r=Hi(e.zIndex)?e.zIndex:0;return CE(n)?r:r+(e.selected?t:0)}function lne(e,t,n,r,i,a){const{x:s,y:u}=t.internals.positionAbsolute,c=ko(e),f=mp(e,n),h=sf(e.extent)?au(f,e.extent,c):f;let p=au({x:s+h.x,y:u+h.y},r,c);e.extent==="parent"&&(p=aj(p,c,t));const g=yj(e,i,a),v=t.internals.z??0;return{x:p.x,y:p.y,z:v>=g?v+1:g}}function TE(e,t,n,r=[0,0]){var s;const i=[],a=new Map;for(const u of e){const c=t.get(u.parentId);if(!c)continue;const f=((s=a.get(u.parentId))==null?void 0:s.expandedRect)??of(c),h=sj(f,u.rect);a.set(u.parentId,{expandedRect:h,parent:c})}return a.size>0&&a.forEach(({expandedRect:u,parent:c},f)=>{var E;const h=c.internals.positionAbsolute,p=ko(c),g=c.origin??r,v=u.x<h.x?Math.round(Math.abs(h.x-u.x)):0,y=u.y<h.y?Math.round(Math.abs(h.y-u.y)):0,b=Math.max(p.width,Math.round(u.width)),w=Math.max(p.height,Math.round(u.height)),_=(b-p.width)*g[0],C=(w-p.height)*g[1];(v>0||y>0||_||C)&&(i.push({id:f,type:"position",position:{x:c.position.x-v+_,y:c.position.y-y+C}}),(E=n.get(f))==null||E.forEach(S=>{e.some(T=>T.id===S.id)||i.push({id:S.id,type:"position",position:{x:S.position.x+v,y:S.position.y+y}})})),(p.width<u.width||p.height<u.height||v||y)&&i.push({id:f,type:"dimensions",setAttributes:!0,dimensions:{width:b+(v?g[0]*v-_:0),height:w+(y?g[1]*y-C:0)}})}),i}function une(e,t,n,r,i,a,s){const u=r==null?void 0:r.querySelector(".xyflow__viewport");let c=!1;if(!u)return{changes:[],updatedInternals:c};const f=[],h=window.getComputedStyle(u),{m22:p}=new window.DOMMatrixReadOnly(h.transform),g=[];for(const v of e.values()){const y=t.get(v.id);if(!y)continue;if(y.hidden){t.set(y.id,{...y,internals:{...y.internals,handleBounds:void 0}}),c=!0;continue}const b=EE(v.nodeElement),w=y.measured.width!==b.width||y.measured.height!==b.height;if(!!(b.width&&b.height&&(w||!y.internals.handleBounds||v.force))){const C=v.nodeElement.getBoundingClientRect(),E=sf(y.extent)?y.extent:a;let{positionAbsolute:S}=y.internals;y.parentId&&y.extent==="parent"?S=aj(S,b,t.get(y.parentId)):E&&(S=au(S,E,b));const T={...y,measured:b,internals:{...y.internals,positionAbsolute:S,handleBounds:{source:oN("source",v.nodeElement,C,p,y.id),target:oN("target",v.nodeElement,C,p,y.id)}}};t.set(y.id,T),y.parentId&&OE(T,t,n,{nodeOrigin:i,zIndexMode:s}),c=!0,w&&(f.push({id:y.id,type:"dimensions",dimensions:b}),y.expandParent&&y.parentId&&g.push({id:y.id,parentId:y.parentId,rect:of(T,i)}))}}if(g.length>0){const v=TE(g,t,n,i);f.push(...v)}return{changes:f,updatedInternals:c}}async function cne({delta:e,panZoom:t,transform:n,translateExtent:r,width:i,height:a}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);const s=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[i,a]],r),u=!!s&&(s.x!==n[0]||s.y!==n[1]||s.k!==n[2]);return Promise.resolve(u)}function hN(e,t,n,r,i,a){let s=i;const u=r.get(s)||new Map;r.set(s,u.set(n,t)),s=`${i}-${e}`;const c=r.get(s)||new Map;if(r.set(s,c.set(n,t)),a){s=`${i}-${e}-${a}`;const f=r.get(s)||new Map;r.set(s,f.set(n,t))}}function bj(e,t,n){e.clear(),t.clear();for(const r of n){const{source:i,target:a,sourceHandle:s=null,targetHandle:u=null}=r,c={edgeId:r.id,source:i,target:a,sourceHandle:s,targetHandle:u},f=`${i}-${s}--${a}-${u}`,h=`${a}-${u}--${i}-${s}`;hN("source",c,h,e,i,s),hN("target",c,f,e,a,u),t.set(r.id,r)}}function wj(e,t){if(!e.parentId)return!1;const n=t.get(e.parentId);return n?n.selected?!0:wj(n,t):!1}function pN(e,t,n){var i;let r=e;do{if((i=r==null?void 0:r.matches)!=null&&i.call(r,t))return!0;if(r===n)return!1;r=r==null?void 0:r.parentElement}while(r);return!1}function fne(e,t,n,r){const i=new Map;for(const[a,s]of e)if((s.selected||s.id===r)&&(!s.parentId||!wj(s,e))&&(s.draggable||t&&typeof s.draggable>"u")){const u=e.get(a);u&&i.set(a,{id:a,position:u.position||{x:0,y:0},distance:{x:n.x-u.internals.positionAbsolute.x,y:n.y-u.internals.positionAbsolute.y},extent:u.extent,parentId:u.parentId,origin:u.origin,expandParent:u.expandParent,internals:{positionAbsolute:u.internals.positionAbsolute||{x:0,y:0}},measured:{width:u.measured.width??0,height:u.measured.height??0}})}return i}function Rw({nodeId:e,dragItems:t,nodeLookup:n,dragging:r=!0}){var s,u,c;const i=[];for(const[f,h]of t){const p=(s=n.get(f))==null?void 0:s.internals.userNode;p&&i.push({...p,position:h.position,dragging:r})}if(!e)return[i[0],i];const a=(u=n.get(e))==null?void 0:u.internals.userNode;return[a?{...a,position:((c=t.get(e))==null?void 0:c.position)||a.position,dragging:r}:i[0],i]}function dne({dragItems:e,snapGrid:t,x:n,y:r}){const i=e.values().next().value;if(!i)return null;const a={x:n-i.distance.x,y:r-i.distance.y},s=vp(a,t);return{x:s.x-a.x,y:s.y-a.y}}function hne({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:r,onDragStop:i}){let a={x:null,y:null},s=0,u=new Map,c=!1,f={x:0,y:0},h=null,p=!1,g=null,v=!1,y=!1,b=null;function w({noDragClassName:C,handleSelector:E,domNode:S,isSelectable:T,nodeId:O,nodeClickDistance:M=0}){g=qr(S);function P({x:N,y:$}){const{nodeLookup:I,nodeExtent:U,snapGrid:j,snapToGrid:G,nodeOrigin:q,onNodeDrag:H,onSelectionDrag:V,onError:B,updateNodePositions:K}=t();a={x:N,y:$};let X=!1;const ee=u.size>1,ce=ee&&U?zS(gp(u)):null,he=ee&&G?dne({dragItems:u,snapGrid:j,x:N,y:$}):null;for(const[de,ie]of u){if(!I.has(de))continue;let J={x:N-ie.distance.x,y:$-ie.distance.y};G&&(J=he?{x:Math.round(J.x+he.x),y:Math.round(J.y+he.y)}:vp(J,j));let pe=null;if(ee&&U&&!ie.extent&&ce){const{positionAbsolute:Ce}=ie.internals,Se=Ce.x-ce.x+U[0][0],Ye=Ce.x+ie.measured.width-ce.x2+U[1][0],Ie=Ce.y-ce.y+U[0][1],ut=Ce.y+ie.measured.height-ce.y2+U[1][1];pe=[[Se,Ie],[Ye,ut]]}const{position:ye,positionAbsolute:te}=ij({nodeId:de,nextPosition:J,nodeLookup:I,nodeExtent:pe||U,nodeOrigin:q,onError:B});X=X||ie.position.x!==ye.x||ie.position.y!==ye.y,ie.position=ye,ie.internals.positionAbsolute=te}if(y=y||X,!!X&&(K(u,!0),b&&(r||H||!O&&V))){const[de,ie]=Rw({nodeId:O,dragItems:u,nodeLookup:I});r==null||r(b,u,de,ie),H==null||H(b,de,ie),O||V==null||V(b,ie)}}async function R(){if(!h)return;const{transform:N,panBy:$,autoPanSpeed:I,autoPanOnNodeDrag:U}=t();if(!U){c=!1,cancelAnimationFrame(s);return}const[j,G]=oj(f,h,I);(j!==0||G!==0)&&(a.x=(a.x??0)-j/N[2],a.y=(a.y??0)-G/N[2],await $({x:j,y:G})&&P(a)),s=requestAnimationFrame(R)}function z(N){var ee;const{nodeLookup:$,multiSelectionActive:I,nodesDraggable:U,transform:j,snapGrid:G,snapToGrid:q,selectNodesOnDrag:H,onNodeDragStart:V,onSelectionDragStart:B,unselectNodesAndEdges:K}=t();p=!0,(!H||!T)&&!I&&O&&((ee=$.get(O))!=null&&ee.selected||K()),T&&H&&O&&(e==null||e(O));const X=ph(N.sourceEvent,{transform:j,snapGrid:G,snapToGrid:q,containerBounds:h});if(a=X,u=fne($,U,X,O),u.size>0&&(n||V||!O&&B)){const[ce,he]=Rw({nodeId:O,dragItems:u,nodeLookup:$});n==null||n(N.sourceEvent,u,ce,he),V==null||V(N.sourceEvent,ce,he),O||B==null||B(N.sourceEvent,he)}}const D=z5().clickDistance(M).on("start",N=>{const{domNode:$,nodeDragThreshold:I,transform:U,snapGrid:j,snapToGrid:G}=t();h=($==null?void 0:$.getBoundingClientRect())||null,v=!1,y=!1,b=N.sourceEvent,I===0&&z(N),a=ph(N.sourceEvent,{transform:U,snapGrid:j,snapToGrid:G,containerBounds:h}),f=Gi(N.sourceEvent,h)}).on("drag",N=>{const{autoPanOnNodeDrag:$,transform:I,snapGrid:U,snapToGrid:j,nodeDragThreshold:G,nodeLookup:q}=t(),H=ph(N.sourceEvent,{transform:I,snapGrid:U,snapToGrid:j,containerBounds:h});if(b=N.sourceEvent,(N.sourceEvent.type==="touchmove"&&N.sourceEvent.touches.length>1||O&&!q.has(O))&&(v=!0),!v){if(!c&&$&&p&&(c=!0,R()),!p){const V=Gi(N.sourceEvent,h),B=V.x-f.x,K=V.y-f.y;Math.sqrt(B*B+K*K)>G&&z(N)}(a.x!==H.xSnapped||a.y!==H.ySnapped)&&u&&p&&(f=Gi(N.sourceEvent,h),P(H))}}).on("end",N=>{if(!(!p||v)&&(c=!1,p=!1,cancelAnimationFrame(s),u.size>0)){const{nodeLookup:$,updateNodePositions:I,onNodeDragStop:U,onSelectionDragStop:j}=t();if(y&&(I(u,!1),y=!1),i||U||!O&&j){const[G,q]=Rw({nodeId:O,dragItems:u,nodeLookup:$,dragging:!1});i==null||i(N.sourceEvent,u,G,q),U==null||U(N.sourceEvent,G,q),O||j==null||j(N.sourceEvent,q)}}}).filter(N=>{const $=N.target;return!N.button&&(!C||!pN($,`.${C}`,S))&&(!E||pN($,E,S))});g.call(D)}function _(){g==null||g.on(".drag",null)}return{update:w,destroy:_}}function pne(e,t,n){const r=[],i={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const a of t.values())zh(i,of(a))>0&&r.push(a);return r}const mne=250;function gne(e,t,n,r){var u,c;let i=[],a=1/0;const s=pne(e,n,t+mne);for(const f of s){const h=[...((u=f.internals.handleBounds)==null?void 0:u.source)??[],...((c=f.internals.handleBounds)==null?void 0:c.target)??[]];for(const p of h){if(r.nodeId===p.nodeId&&r.type===p.type&&r.id===p.id)continue;const{x:g,y:v}=ou(f,p,p.position,!0),y=Math.sqrt(Math.pow(g-e.x,2)+Math.pow(v-e.y,2));y>t||(y<a?(i=[{...p,x:g,y:v}],a=y):y===a&&i.push({...p,x:g,y:v}))}}if(!i.length)return null;if(i.length>1){const f=r.type==="source"?"target":"source";return i.find(h=>h.type===f)??i[0]}return i[0]}function xj(e,t,n,r,i,a=!1){var f,h,p;const s=r.get(e);if(!s)return null;const u=i==="strict"?(f=s.internals.handleBounds)==null?void 0:f[t]:[...((h=s.internals.handleBounds)==null?void 0:h.source)??[],...((p=s.internals.handleBounds)==null?void 0:p.target)??[]],c=(n?u==null?void 0:u.find(g=>g.id===n):u==null?void 0:u[0])??null;return c&&a?{...c,...ou(s,c,c.position,!0)}:c}function _j(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function vne(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}const Sj=()=>!0;function yne(e,{connectionMode:t,connectionRadius:n,handleId:r,nodeId:i,edgeUpdaterType:a,isTarget:s,domNode:u,nodeLookup:c,lib:f,autoPanOnConnect:h,flowId:p,panBy:g,cancelConnection:v,onConnectStart:y,onConnect:b,onConnectEnd:w,isValidConnection:_=Sj,onReconnectEnd:C,updateConnection:E,getTransform:S,getFromHandle:T,autoPanSpeed:O,dragThreshold:M=1,handleDomNode:P}){const R=cj(e.target);let z=0,D;const{x:N,y:$}=Gi(e),I=_j(a,P),U=u==null?void 0:u.getBoundingClientRect();let j=!1;if(!U||!I)return;const G=xj(i,I,r,c,t);if(!G)return;let q=Gi(e,U),H=!1,V=null,B=!1,K=null;function X(){if(!h||!U)return;const[ye,te]=oj(q,U,O);g({x:ye,y:te}),z=requestAnimationFrame(X)}const ee={...G,nodeId:i,type:I,position:G.position},ce=c.get(i);let de={inProgress:!0,isValid:null,from:ou(ce,ee,Ke.Left,!0),fromHandle:ee,fromPosition:ee.position,fromNode:ce,to:q,toHandle:null,toPosition:nN[ee.position],toNode:null,pointer:q};function ie(){j=!0,E(de),y==null||y(e,{nodeId:i,handleId:r,handleType:I})}M===0&&ie();function J(ye){if(!j){const{x:ut,y:jt}=Gi(ye),Zt=ut-N,nr=jt-$;if(!(Zt*Zt+nr*nr>M*M))return;ie()}if(!T()||!ee){pe(ye);return}const te=S();q=Gi(ye,U),D=gne(yp(q,te,!1,[1,1]),n,c,ee),H||(X(),H=!0);const Ce=Ej(ye,{handle:D,connectionMode:t,fromNodeId:i,fromHandleId:r,fromType:s?"target":"source",isValidConnection:_,doc:R,lib:f,flowId:p,nodeLookup:c});K=Ce.handleDomNode,V=Ce.connection,B=vne(!!D,Ce.isValid);const Se=c.get(i),Ye=Se?ou(Se,ee,Ke.Left,!0):de.from,Ie={...de,from:Ye,isValid:B,to:Ce.toHandle&&B?Vv({x:Ce.toHandle.x,y:Ce.toHandle.y},te):q,toHandle:Ce.toHandle,toPosition:B&&Ce.toHandle?Ce.toHandle.position:nN[ee.position],toNode:Ce.toHandle?c.get(Ce.toHandle.nodeId):null,pointer:q};E(Ie),de=Ie}function pe(ye){if(!("touches"in ye&&ye.touches.length>0)){if(j){(D||K)&&V&&B&&(b==null||b(V));const{inProgress:te,...Ce}=de,Se={...Ce,toPosition:de.toHandle?de.toPosition:null};w==null||w(ye,Se),a&&(C==null||C(ye,Se))}v(),cancelAnimationFrame(z),H=!1,B=!1,V=null,K=null,R.removeEventListener("mousemove",J),R.removeEventListener("mouseup",pe),R.removeEventListener("touchmove",J),R.removeEventListener("touchend",pe)}}R.addEventListener("mousemove",J),R.addEventListener("mouseup",pe),R.addEventListener("touchmove",J),R.addEventListener("touchend",pe)}function Ej(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:i,fromType:a,doc:s,lib:u,flowId:c,isValidConnection:f=Sj,nodeLookup:h}){const p=a==="target",g=t?s.querySelector(`.${u}-flow__handle[data-id="${c}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x:v,y}=Gi(e),b=s.elementFromPoint(v,y),w=b!=null&&b.classList.contains(`${u}-flow__handle`)?b:g,_={handleDomNode:w,isValid:!1,connection:null,toHandle:null};if(w){const C=_j(void 0,w),E=w.getAttribute("data-nodeid"),S=w.getAttribute("data-handleid"),T=w.classList.contains("connectable"),O=w.classList.contains("connectableend");if(!E||!C)return _;const M={source:p?E:r,sourceHandle:p?S:i,target:p?r:E,targetHandle:p?i:S};_.connection=M;const R=T&&O&&(n===rf.Strict?p&&C==="source"||!p&&C==="target":E!==r||S!==i);_.isValid=R&&f(M),_.toHandle=xj(E,C,S,h,n,!0)}return _}const US={onPointerDown:yne,isValid:Ej};function bne({domNode:e,panZoom:t,getTransform:n,getViewScale:r}){const i=qr(e);function a({translateExtent:u,width:c,height:f,zoomStep:h=1,pannable:p=!0,zoomable:g=!0,inversePan:v=!1}){const y=E=>{if(E.sourceEvent.type!=="wheel"||!t)return;const S=n(),T=E.sourceEvent.ctrlKey&&jh()?10:1,O=-E.sourceEvent.deltaY*(E.sourceEvent.deltaMode===1?.05:E.sourceEvent.deltaMode?1:.002)*h,M=S[2]*Math.pow(2,O*T);t.scaleTo(M)};let b=[0,0];const w=E=>{(E.sourceEvent.type==="mousedown"||E.sourceEvent.type==="touchstart")&&(b=[E.sourceEvent.clientX??E.sourceEvent.touches[0].clientX,E.sourceEvent.clientY??E.sourceEvent.touches[0].clientY])},_=E=>{const S=n();if(E.sourceEvent.type!=="mousemove"&&E.sourceEvent.type!=="touchmove"||!t)return;const T=[E.sourceEvent.clientX??E.sourceEvent.touches[0].clientX,E.sourceEvent.clientY??E.sourceEvent.touches[0].clientY],O=[T[0]-b[0],T[1]-b[1]];b=T;const M=r()*Math.max(S[2],Math.log(S[2]))*(v?-1:1),P={x:S[0]-O[0]*M,y:S[1]-O[1]*M},R=[[0,0],[c,f]];t.setViewportConstrained({x:P.x,y:P.y,zoom:S[2]},R,u)},C=X5().on("start",w).on("zoom",p?_:null).on("zoom.wheel",g?y:null);i.call(C,{})}function s(){i.on("zoom",null)}return{update:a,destroy:s,pointer:Li}}const a0=e=>({x:e.x,y:e.y,zoom:e.k}),Dw=({x:e,y:t,zoom:n})=>n0.translate(e,t).scale(n),Sc=(e,t)=>e.target.closest(`.${t}`),Aj=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),wne=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,Iw=(e,t=0,n=wne,r=()=>{})=>{const i=typeof t=="number"&&t>0;return i||r(),i?e.transition().duration(t).ease(n).on("end",r):e},kj=e=>{const t=e.ctrlKey&&jh()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function xne({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:r,panOnScrollMode:i,panOnScrollSpeed:a,zoomOnPinch:s,onPanZoomStart:u,onPanZoom:c,onPanZoomEnd:f}){return h=>{if(Sc(h,t))return h.ctrlKey&&h.preventDefault(),!1;h.preventDefault(),h.stopImmediatePropagation();const p=n.property("__zoom").k||1;if(h.ctrlKey&&s){const w=Li(h),_=kj(h),C=p*Math.pow(2,_);r.scaleTo(n,C,w,h);return}const g=h.deltaMode===1?20:1;let v=i===Kl.Vertical?0:h.deltaX*g,y=i===Kl.Horizontal?0:h.deltaY*g;!jh()&&h.shiftKey&&i!==Kl.Vertical&&(v=h.deltaY*g,y=0),r.translateBy(n,-(v/p)*a,-(y/p)*a,{internal:!0});const b=a0(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(c==null||c(h,b),e.panScrollTimeout=setTimeout(()=>{f==null||f(h,b),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,u==null||u(h,b))}}function _ne({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(r,i){const a=r.type==="wheel",s=!t&&a&&!r.ctrlKey,u=Sc(r,e);if(r.ctrlKey&&a&&u&&r.preventDefault(),s||u)return null;r.preventDefault(),n.call(this,r,i)}}function Sne({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return r=>{var a,s,u;if((a=r.sourceEvent)!=null&&a.internal)return;const i=a0(r.transform);e.mouseButton=((s=r.sourceEvent)==null?void 0:s.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=i,((u=r.sourceEvent)==null?void 0:u.type)==="mousedown"&&t(!0),n&&(n==null||n(r.sourceEvent,i))}}function Ene({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:r,onPanZoom:i}){return a=>{var s,u;e.usedRightMouseButton=!!(n&&Aj(t,e.mouseButton??0)),(s=a.sourceEvent)!=null&&s.sync||r([a.transform.x,a.transform.y,a.transform.k]),i&&!((u=a.sourceEvent)!=null&&u.internal)&&(i==null||i(a.sourceEvent,a0(a.transform)))}}function Ane({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:i,onPaneContextMenu:a}){return s=>{var u;if(!((u=s.sourceEvent)!=null&&u.internal)&&(e.isZoomingOrPanning=!1,a&&Aj(t,e.mouseButton??0)&&!e.usedRightMouseButton&&s.sourceEvent&&a(s.sourceEvent),e.usedRightMouseButton=!1,r(!1),i)){const c=a0(s.transform);e.prevViewport=c,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{i==null||i(s.sourceEvent,c)},n?150:0)}}}function kne({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:r,panOnScroll:i,zoomOnDoubleClick:a,userSelectionActive:s,noWheelClassName:u,noPanClassName:c,lib:f,connectionInProgress:h}){return p=>{var w;const g=e||t,v=n&&p.ctrlKey,y=p.type==="wheel";if(p.button===1&&p.type==="mousedown"&&(Sc(p,`${f}-flow__node`)||Sc(p,`${f}-flow__edge`)))return!0;if(!r&&!g&&!i&&!a&&!n||s||h&&!y||Sc(p,u)&&y||Sc(p,c)&&(!y||i&&y&&!e)||!n&&p.ctrlKey&&y)return!1;if(!n&&p.type==="touchstart"&&((w=p.touches)==null?void 0:w.length)>1)return p.preventDefault(),!1;if(!g&&!i&&!v&&y||!r&&(p.type==="mousedown"||p.type==="touchstart")||Array.isArray(r)&&!r.includes(p.button)&&p.type==="mousedown")return!1;const b=Array.isArray(r)&&r.includes(p.button)||!p.button||p.button<=1;return(!p.ctrlKey||y)&&b}}function Cne({domNode:e,minZoom:t,maxZoom:n,translateExtent:r,viewport:i,onPanZoom:a,onPanZoomStart:s,onPanZoomEnd:u,onDraggingChange:c}){const f={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},h=e.getBoundingClientRect(),p=X5().scaleExtent([t,n]).translateExtent(r),g=qr(e).call(p);C({x:i.x,y:i.y,zoom:af(i.zoom,t,n)},[[0,0],[h.width,h.height]],r);const v=g.on("wheel.zoom"),y=g.on("dblclick.zoom");p.wheelDelta(kj);function b(D,N){return g?new Promise($=>{p==null||p.interpolate((N==null?void 0:N.interpolate)==="linear"?fo:iv).transform(Iw(g,N==null?void 0:N.duration,N==null?void 0:N.ease,()=>$(!0)),D)}):Promise.resolve(!1)}function w({noWheelClassName:D,noPanClassName:N,onPaneContextMenu:$,userSelectionActive:I,panOnScroll:U,panOnDrag:j,panOnScrollMode:G,panOnScrollSpeed:q,preventScrolling:H,zoomOnPinch:V,zoomOnScroll:B,zoomOnDoubleClick:K,zoomActivationKeyPressed:X,lib:ee,onTransformChange:ce,connectionInProgress:he,paneClickDistance:de,selectionOnDrag:ie}){I&&!f.isZoomingOrPanning&&_();const J=U&&!X&&!I;p.clickDistance(ie?1/0:!Hi(de)||de<0?0:de);const pe=J?xne({zoomPanValues:f,noWheelClassName:D,d3Selection:g,d3Zoom:p,panOnScrollMode:G,panOnScrollSpeed:q,zoomOnPinch:V,onPanZoomStart:s,onPanZoom:a,onPanZoomEnd:u}):_ne({noWheelClassName:D,preventScrolling:H,d3ZoomHandler:v});if(g.on("wheel.zoom",pe,{passive:!1}),!I){const te=Sne({zoomPanValues:f,onDraggingChange:c,onPanZoomStart:s});p.on("start",te);const Ce=Ene({zoomPanValues:f,panOnDrag:j,onPaneContextMenu:!!$,onPanZoom:a,onTransformChange:ce});p.on("zoom",Ce);const Se=Ane({zoomPanValues:f,panOnDrag:j,panOnScroll:U,onPaneContextMenu:$,onPanZoomEnd:u,onDraggingChange:c});p.on("end",Se)}const ye=kne({zoomActivationKeyPressed:X,panOnDrag:j,zoomOnScroll:B,panOnScroll:U,zoomOnDoubleClick:K,zoomOnPinch:V,userSelectionActive:I,noPanClassName:N,noWheelClassName:D,lib:ee,connectionInProgress:he});p.filter(ye),K?g.on("dblclick.zoom",y):g.on("dblclick.zoom",null)}function _(){p.on("zoom",null)}async function C(D,N,$){const I=Dw(D),U=p==null?void 0:p.constrain()(I,N,$);return U&&await b(U),new Promise(j=>j(U))}async function E(D,N){const $=Dw(D);return await b($,N),new Promise(I=>I($))}function S(D){if(g){const N=Dw(D),$=g.property("__zoom");($.k!==D.zoom||$.x!==D.x||$.y!==D.y)&&(p==null||p.transform(g,N,null,{sync:!0}))}}function T(){const D=g?Z5(g.node()):{x:0,y:0,k:1};return{x:D.x,y:D.y,zoom:D.k}}function O(D,N){return g?new Promise($=>{p==null||p.interpolate((N==null?void 0:N.interpolate)==="linear"?fo:iv).scaleTo(Iw(g,N==null?void 0:N.duration,N==null?void 0:N.ease,()=>$(!0)),D)}):Promise.resolve(!1)}function M(D,N){return g?new Promise($=>{p==null||p.interpolate((N==null?void 0:N.interpolate)==="linear"?fo:iv).scaleBy(Iw(g,N==null?void 0:N.duration,N==null?void 0:N.ease,()=>$(!0)),D)}):Promise.resolve(!1)}function P(D){p==null||p.scaleExtent(D)}function R(D){p==null||p.translateExtent(D)}function z(D){const N=!Hi(D)||D<0?0:D;p==null||p.clickDistance(N)}return{update:w,destroy:_,setViewport:E,setViewportConstrained:C,getViewport:T,scaleTo:O,scaleBy:M,setScaleExtent:P,setTranslateExtent:R,syncViewport:S,setClickDistance:z}}var lf;(function(e){e.Line="line",e.Handle="handle"})(lf||(lf={}));function One({width:e,prevWidth:t,height:n,prevHeight:r,affectsX:i,affectsY:a}){const s=e-t,u=n-r,c=[s>0?1:s<0?-1:0,u>0?1:u<0?-1:0];return s&&i&&(c[0]=c[0]*-1),u&&a&&(c[1]=c[1]*-1),c}function mN(e){const t=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),r=e.includes("left"),i=e.includes("top");return{isHorizontal:t,isVertical:n,affectsX:r,affectsY:i}}function hs(e,t){return Math.max(0,t-e)}function ps(e,t){return Math.max(0,e-t)}function Pg(e,t,n){return Math.max(0,t-e,e-n)}function gN(e,t){return e?!t:t}function Tne(e,t,n,r,i,a,s,u){let{affectsX:c,affectsY:f}=t;const{isHorizontal:h,isVertical:p}=t,g=h&&p,{xSnapped:v,ySnapped:y}=n,{minWidth:b,maxWidth:w,minHeight:_,maxHeight:C}=r,{x:E,y:S,width:T,height:O,aspectRatio:M}=e;let P=Math.floor(h?v-e.pointerX:0),R=Math.floor(p?y-e.pointerY:0);const z=T+(c?-P:P),D=O+(f?-R:R),N=-a[0]*T,$=-a[1]*O;let I=Pg(z,b,w),U=Pg(D,_,C);if(s){let q=0,H=0;c&&P<0?q=hs(E+P+N,s[0][0]):!c&&P>0&&(q=ps(E+z+N,s[1][0])),f&&R<0?H=hs(S+R+$,s[0][1]):!f&&R>0&&(H=ps(S+D+$,s[1][1])),I=Math.max(I,q),U=Math.max(U,H)}if(u){let q=0,H=0;c&&P>0?q=ps(E+P,u[0][0]):!c&&P<0&&(q=hs(E+z,u[1][0])),f&&R>0?H=ps(S+R,u[0][1]):!f&&R<0&&(H=hs(S+D,u[1][1])),I=Math.max(I,q),U=Math.max(U,H)}if(i){if(h){const q=Pg(z/M,_,C)*M;if(I=Math.max(I,q),s){let H=0;!c&&!f||c&&!f&&g?H=ps(S+$+z/M,s[1][1])*M:H=hs(S+$+(c?P:-P)/M,s[0][1])*M,I=Math.max(I,H)}if(u){let H=0;!c&&!f||c&&!f&&g?H=hs(S+z/M,u[1][1])*M:H=ps(S+(c?P:-P)/M,u[0][1])*M,I=Math.max(I,H)}}if(p){const q=Pg(D*M,b,w)/M;if(U=Math.max(U,q),s){let H=0;!c&&!f||f&&!c&&g?H=ps(E+D*M+N,s[1][0])/M:H=hs(E+(f?R:-R)*M+N,s[0][0])/M,U=Math.max(U,H)}if(u){let H=0;!c&&!f||f&&!c&&g?H=hs(E+D*M,u[1][0])/M:H=ps(E+(f?R:-R)*M,u[0][0])/M,U=Math.max(U,H)}}}R=R+(R<0?U:-U),P=P+(P<0?I:-I),i&&(g?z>D*M?R=(gN(c,f)?-P:P)/M:P=(gN(c,f)?-R:R)*M:h?(R=P/M,f=c):(P=R*M,c=f));const j=c?E+P:E,G=f?S+R:S;return{width:T+(c?-P:P),height:O+(f?-R:R),x:a[0]*P*(c?-1:1)+j,y:a[1]*R*(f?-1:1)+G}}const Cj={width:0,height:0,x:0,y:0},Mne={...Cj,pointerX:0,pointerY:0,aspectRatio:1};function Pne(e){return[[0,0],[e.measured.width,e.measured.height]]}function Nne(e,t,n){const r=t.position.x+e.position.x,i=t.position.y+e.position.y,a=e.measured.width??0,s=e.measured.height??0,u=n[0]*a,c=n[1]*s;return[[r-u,i-c],[r+a-u,i+s-c]]}function Rne({domNode:e,nodeId:t,getStoreItems:n,onChange:r,onEnd:i}){const a=qr(e);let s={controlDirection:mN("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function u({controlPosition:f,boundaries:h,keepAspectRatio:p,resizeDirection:g,onResizeStart:v,onResize:y,onResizeEnd:b,shouldResize:w}){let _={...Cj},C={...Mne};s={boundaries:h,resizeDirection:g,keepAspectRatio:p,controlDirection:mN(f)};let E,S=null,T=[],O,M,P,R=!1;const z=z5().on("start",D=>{const{nodeLookup:N,transform:$,snapGrid:I,snapToGrid:U,nodeOrigin:j,paneDomNode:G}=n();if(E=N.get(t),!E)return;S=(G==null?void 0:G.getBoundingClientRect())??null;const{xSnapped:q,ySnapped:H}=ph(D.sourceEvent,{transform:$,snapGrid:I,snapToGrid:U,containerBounds:S});_={width:E.measured.width??0,height:E.measured.height??0,x:E.position.x??0,y:E.position.y??0},C={..._,pointerX:q,pointerY:H,aspectRatio:_.width/_.height},O=void 0,E.parentId&&(E.extent==="parent"||E.expandParent)&&(O=N.get(E.parentId),M=O&&E.extent==="parent"?Pne(O):void 0),T=[],P=void 0;for(const[V,B]of N)if(B.parentId===t&&(T.push({id:V,position:{...B.position},extent:B.extent}),B.extent==="parent"||B.expandParent)){const K=Nne(B,E,B.origin??j);P?P=[[Math.min(K[0][0],P[0][0]),Math.min(K[0][1],P[0][1])],[Math.max(K[1][0],P[1][0]),Math.max(K[1][1],P[1][1])]]:P=K}v==null||v(D,{..._})}).on("drag",D=>{const{transform:N,snapGrid:$,snapToGrid:I,nodeOrigin:U}=n(),j=ph(D.sourceEvent,{transform:N,snapGrid:$,snapToGrid:I,containerBounds:S}),G=[];if(!E)return;const{x:q,y:H,width:V,height:B}=_,K={},X=E.origin??U,{width:ee,height:ce,x:he,y:de}=Tne(C,s.controlDirection,j,s.boundaries,s.keepAspectRatio,X,M,P),ie=ee!==V,J=ce!==B,pe=he!==q&&ie,ye=de!==H&&J;if(!pe&&!ye&&!ie&&!J)return;if((pe||ye||X[0]===1||X[1]===1)&&(K.x=pe?he:_.x,K.y=ye?de:_.y,_.x=K.x,_.y=K.y,T.length>0)){const Ye=he-q,Ie=de-H;for(const ut of T)ut.position={x:ut.position.x-Ye+X[0]*(ee-V),y:ut.position.y-Ie+X[1]*(ce-B)},G.push(ut)}if((ie||J)&&(K.width=ie&&(!s.resizeDirection||s.resizeDirection==="horizontal")?ee:_.width,K.height=J&&(!s.resizeDirection||s.resizeDirection==="vertical")?ce:_.height,_.width=K.width,_.height=K.height),O&&E.expandParent){const Ye=X[0]*(K.width??0);K.x&&K.x<Ye&&(_.x=Ye,C.x=C.x-(K.x-Ye));const Ie=X[1]*(K.height??0);K.y&&K.y<Ie&&(_.y=Ie,C.y=C.y-(K.y-Ie))}const te=One({width:_.width,prevWidth:V,height:_.height,prevHeight:B,affectsX:s.controlDirection.affectsX,affectsY:s.controlDirection.affectsY}),Ce={..._,direction:te};(w==null?void 0:w(D,Ce))!==!1&&(R=!0,y==null||y(D,Ce),r(K,G))}).on("end",D=>{R&&(b==null||b(D,{..._}),i==null||i({..._}),R=!1)});a.call(z)}function c(){a.on(".drag",null)}return{update:u,destroy:c}}var Lw={exports:{}},zw={},jw={exports:{}},$w={};/**
864
+ * @license React
865
+ * use-sync-external-store-shim.production.js
866
+ *
867
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
868
+ *
869
+ * This source code is licensed under the MIT license found in the
870
+ * LICENSE file in the root directory of this source tree.
871
+ */var vN;function Dne(){if(vN)return $w;vN=1;var e=gf();function t(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function u(p,g){var v=g(),y=r({inst:{value:v,getSnapshot:g}}),b=y[0].inst,w=y[1];return a(function(){b.value=v,b.getSnapshot=g,c(b)&&w({inst:b})},[p,v,g]),i(function(){return c(b)&&w({inst:b}),p(function(){c(b)&&w({inst:b})})},[p]),s(v),v}function c(p){var g=p.getSnapshot;p=p.value;try{var v=g();return!n(p,v)}catch{return!0}}function f(p,g){return g()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return $w.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,$w}var yN;function Ine(){return yN||(yN=1,jw.exports=Dne()),jw.exports}/**
872
+ * @license React
873
+ * use-sync-external-store-shim/with-selector.production.js
874
+ *
875
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
876
+ *
877
+ * This source code is licensed under the MIT license found in the
878
+ * LICENSE file in the root directory of this source tree.
879
+ */var bN;function Lne(){if(bN)return zw;bN=1;var e=gf(),t=Ine();function n(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,a=e.useRef,s=e.useEffect,u=e.useMemo,c=e.useDebugValue;return zw.useSyncExternalStoreWithSelector=function(f,h,p,g,v){var y=a(null);if(y.current===null){var b={hasValue:!1,value:null};y.current=b}else b=y.current;y=u(function(){function _(O){if(!C){if(C=!0,E=O,O=g(O),v!==void 0&&b.hasValue){var M=b.value;if(v(M,O))return S=M}return S=O}if(M=S,r(E,O))return M;var P=g(O);return v!==void 0&&v(M,P)?(E=O,M):(E=O,S=P)}var C=!1,E,S,T=p===void 0?null:p;return[function(){return _(h())},T===null?void 0:function(){return _(T())}]},[h,p,g,v]);var w=i(f,y[0],y[1]);return s(function(){b.hasValue=!0,b.value=w},[w]),c(w),w},zw}var wN;function zne(){return wN||(wN=1,Lw.exports=Lne()),Lw.exports}var Oj=zne();const jne=ti(Oj),$ne={},xN=e=>{let t;const n=new Set,r=(h,p)=>{const g=typeof h=="function"?h(t):h;if(!Object.is(g,t)){const v=t;t=p??(typeof g!="object"||g===null)?g:Object.assign({},t,g),n.forEach(y=>y(t,v))}},i=()=>t,c={setState:r,getState:i,getInitialState:()=>f,subscribe:h=>(n.add(h),()=>n.delete(h)),destroy:()=>{($ne?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},f=t=e(r,i,c);return c},Bne=e=>e?xN(e):xN,{useDebugValue:Une}=cn,{useSyncExternalStoreWithSelector:Fne}=jne,Hne=e=>e;function Tj(e,t=Hne,n){const r=Fne(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Une(r),r}const _N=(e,t)=>{const n=Bne(e),r=(i,a=t)=>Tj(n,i,a);return Object.assign(r,n),r},Gne=(e,t)=>e?_N(e,t):_N;function Kt(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,i]of e)if(!Object.is(i,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}const o0=k.createContext(null),qne=o0.Provider,Mj=ga.error001();function gt(e,t){const n=k.useContext(o0);if(n===null)throw new Error(Mj);return Tj(n,e,t)}function Yt(){const e=k.useContext(o0);if(e===null)throw new Error(Mj);return k.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const SN={display:"none"},Vne={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},Pj="react-flow__node-desc",Nj="react-flow__edge-desc",Kne="react-flow__aria-live",Yne=e=>e.ariaLiveMessage,Wne=e=>e.ariaLabelConfig;function Qne({rfId:e}){const t=gt(Yne);return ge.jsx("div",{id:`${Kne}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:Vne,children:t})}function Zne({rfId:e,disableKeyboardA11y:t}){const n=gt(Wne);return ge.jsxs(ge.Fragment,{children:[ge.jsx("div",{id:`${Pj}-${e}`,style:SN,children:t?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),ge.jsx("div",{id:`${Nj}-${e}`,style:SN,children:n["edge.a11yDescription.default"]}),!t&&ge.jsx(Qne,{rfId:e})]})}const s0=k.forwardRef(({position:e="top-left",children:t,className:n,style:r,...i},a)=>{const s=`${e}`.split("-");return ge.jsx("div",{className:xn(["react-flow__panel",n,...s]),style:r,ref:a,...i,children:t})});s0.displayName="Panel";function Xne({proOptions:e,position:t="bottom-right"}){return e!=null&&e.hideAttribution?null:ge.jsx(s0,{position:t,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:ge.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const Jne=e=>{const t=[],n=[];for(const[,r]of e.nodeLookup)r.selected&&t.push(r.internals.userNode);for(const[,r]of e.edgeLookup)r.selected&&n.push(r);return{selectedNodes:t,selectedEdges:n}},Ng=e=>e.id;function ere(e,t){return Kt(e.selectedNodes.map(Ng),t.selectedNodes.map(Ng))&&Kt(e.selectedEdges.map(Ng),t.selectedEdges.map(Ng))}function tre({onSelectionChange:e}){const t=Yt(),{selectedNodes:n,selectedEdges:r}=gt(Jne,ere);return k.useEffect(()=>{const i={nodes:n,edges:r};e==null||e(i),t.getState().onSelectionChangeHandlers.forEach(a=>a(i))},[n,r,e]),null}const nre=e=>!!e.onSelectionChangeHandlers;function rre({onSelectionChange:e}){const t=gt(nre);return e||t?ge.jsx(tre,{onSelectionChange:e}):null}const FS=typeof window<"u"?k.useLayoutEffect:k.useEffect,Rj=[0,0],ire={x:0,y:0,zoom:1},are=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],EN=[...are,"rfId"],ore=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges}),AN={translateExtent:Ih,nodeOrigin:Rj,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function sre(e){const{setNodes:t,setEdges:n,setMinZoom:r,setMaxZoom:i,setTranslateExtent:a,setNodeExtent:s,reset:u,setDefaultNodesAndEdges:c}=gt(ore,Kt),f=Yt();FS(()=>(c(e.defaultNodes,e.defaultEdges),()=>{h.current=AN,u()}),[]);const h=k.useRef(AN);return FS(()=>{for(const p of EN){const g=e[p],v=h.current[p];g!==v&&(typeof e[p]>"u"||(p==="nodes"?t(g):p==="edges"?n(g):p==="minZoom"?r(g):p==="maxZoom"?i(g):p==="translateExtent"?a(g):p==="nodeExtent"?s(g):p==="ariaLabelConfig"?f.setState({ariaLabelConfig:qte(g)}):p==="fitView"?f.setState({fitViewQueued:g}):p==="fitViewOptions"?f.setState({fitViewOptions:g}):f.setState({[p]:g})))}h.current=e},EN.map(p=>e[p])),null}function kN(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function lre(e){var r;const[t,n]=k.useState(e==="system"?null:e);return k.useEffect(()=>{if(e!=="system"){n(e);return}const i=kN(),a=()=>n(i!=null&&i.matches?"dark":"light");return a(),i==null||i.addEventListener("change",a),()=>{i==null||i.removeEventListener("change",a)}},[e]),t!==null?t:(r=kN())!=null&&r.matches?"dark":"light"}const CN=typeof document<"u"?document:null;function $h(e=null,t={target:CN,actInsideInputWithModifier:!0}){const[n,r]=k.useState(!1),i=k.useRef(!1),a=k.useRef(new Set([])),[s,u]=k.useMemo(()=>{if(e!==null){const f=(Array.isArray(e)?e:[e]).filter(p=>typeof p=="string").map(p=>p.replace("+",`
880
+ `).replace(`
881
+
882
+ `,`
883
+ +`).split(`
884
+ `)),h=f.reduce((p,g)=>p.concat(...g),[]);return[f,h]}return[[],[]]},[e]);return k.useEffect(()=>{const c=(t==null?void 0:t.target)??CN,f=(t==null?void 0:t.actInsideInputWithModifier)??!0;if(e!==null){const h=v=>{var w,_;if(i.current=v.ctrlKey||v.metaKey||v.shiftKey||v.altKey,(!i.current||i.current&&!f)&&fj(v))return!1;const b=TN(v.code,u);if(a.current.add(v[b]),ON(s,a.current,!1)){const C=((_=(w=v.composedPath)==null?void 0:w.call(v))==null?void 0:_[0])||v.target,E=(C==null?void 0:C.nodeName)==="BUTTON"||(C==null?void 0:C.nodeName)==="A";t.preventDefault!==!1&&(i.current||!E)&&v.preventDefault(),r(!0)}},p=v=>{const y=TN(v.code,u);ON(s,a.current,!0)?(r(!1),a.current.clear()):a.current.delete(v[y]),v.key==="Meta"&&a.current.clear(),i.current=!1},g=()=>{a.current.clear(),r(!1)};return c==null||c.addEventListener("keydown",h),c==null||c.addEventListener("keyup",p),window.addEventListener("blur",g),window.addEventListener("contextmenu",g),()=>{c==null||c.removeEventListener("keydown",h),c==null||c.removeEventListener("keyup",p),window.removeEventListener("blur",g),window.removeEventListener("contextmenu",g)}}},[e,r]),n}function ON(e,t,n){return e.filter(r=>n||r.length===t.size).some(r=>r.every(i=>t.has(i)))}function TN(e,t){return t.includes(e)?"code":"key"}const ure=()=>{const e=Yt();return k.useMemo(()=>({zoomIn:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1.2,t):Promise.resolve(!1)},zoomOut:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,t):Promise.resolve(!1)},zoomTo:(t,n)=>{const{panZoom:r}=e.getState();return r?r.scaleTo(t,n):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(t,n)=>{const{transform:[r,i,a],panZoom:s}=e.getState();return s?(await s.setViewport({x:t.x??r,y:t.y??i,zoom:t.zoom??a},n),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[t,n,r]=e.getState().transform;return{x:t,y:n,zoom:r}},setCenter:async(t,n,r)=>e.getState().setCenter(t,n,r),fitBounds:async(t,n)=>{const{width:r,height:i,minZoom:a,maxZoom:s,panZoom:u}=e.getState(),c=SE(t,r,i,a,s,(n==null?void 0:n.padding)??.1);return u?(await u.setViewport(c,{duration:n==null?void 0:n.duration,ease:n==null?void 0:n.ease,interpolate:n==null?void 0:n.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(t,n={})=>{const{transform:r,snapGrid:i,snapToGrid:a,domNode:s}=e.getState();if(!s)return t;const{x:u,y:c}=s.getBoundingClientRect(),f={x:t.x-u,y:t.y-c},h=n.snapGrid??i,p=n.snapToGrid??a;return yp(f,r,p,h)},flowToScreenPosition:t=>{const{transform:n,domNode:r}=e.getState();if(!r)return t;const{x:i,y:a}=r.getBoundingClientRect(),s=Vv(t,n);return{x:s.x+i,y:s.y+a}}}),[])};function Dj(e,t){const n=[],r=new Map,i=[];for(const a of e)if(a.type==="add"){i.push(a);continue}else if(a.type==="remove"||a.type==="replace")r.set(a.id,[a]);else{const s=r.get(a.id);s?s.push(a):r.set(a.id,[a])}for(const a of t){const s=r.get(a.id);if(!s){n.push(a);continue}if(s[0].type==="remove")continue;if(s[0].type==="replace"){n.push({...s[0].item});continue}const u={...a};for(const c of s)cre(c,u);n.push(u)}return i.length&&i.forEach(a=>{a.index!==void 0?n.splice(a.index,0,{...a.item}):n.push({...a.item})}),n}function cre(e,t){switch(e.type){case"select":{t.selected=e.selected;break}case"position":{typeof e.position<"u"&&(t.position=e.position),typeof e.dragging<"u"&&(t.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(t.measured={...e.dimensions},e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(t.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(t.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(t.resizing=e.resizing);break}}}function fre(e,t){return Dj(e,t)}function dre(e,t){return Dj(e,t)}function Al(e,t){return{id:e,type:"select",selected:t}}function Ec(e,t=new Set,n=!1){const r=[];for(const[i,a]of e){const s=t.has(i);!(a.selected===void 0&&!s)&&a.selected!==s&&(n&&(a.selected=s),r.push(Al(a.id,s)))}return r}function MN({items:e=[],lookup:t}){var i;const n=[],r=new Map(e.map(a=>[a.id,a]));for(const[a,s]of e.entries()){const u=t.get(s.id),c=((i=u==null?void 0:u.internals)==null?void 0:i.userNode)??u;c!==void 0&&c!==s&&n.push({id:s.id,item:s,type:"replace"}),c===void 0&&n.push({item:s,type:"add",index:a})}for(const[a]of t)r.get(a)===void 0&&n.push({id:a,type:"remove"});return n}function PN(e){return{id:e.id,type:"remove"}}const NN=e=>Ite(e),hre=e=>rj(e);function Ij(e){return k.forwardRef(e)}function RN(e){const[t,n]=k.useState(BigInt(0)),[r]=k.useState(()=>pre(()=>n(i=>i+BigInt(1))));return FS(()=>{const i=r.get();i.length&&(e(i),r.reset())},[t]),r}function pre(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:n=>{t.push(n),e()}}}const Lj=k.createContext(null);function mre({children:e}){const t=Yt(),n=k.useCallback(u=>{const{nodes:c=[],setNodes:f,hasDefaultNodes:h,onNodesChange:p,nodeLookup:g,fitViewQueued:v,onNodesChangeMiddlewareMap:y}=t.getState();let b=c;for(const _ of u)b=typeof _=="function"?_(b):_;let w=MN({items:b,lookup:g});for(const _ of y.values())w=_(w);h&&f(b),w.length>0?p==null||p(w):v&&window.requestAnimationFrame(()=>{const{fitViewQueued:_,nodes:C,setNodes:E}=t.getState();_&&E(C)})},[]),r=RN(n),i=k.useCallback(u=>{const{edges:c=[],setEdges:f,hasDefaultEdges:h,onEdgesChange:p,edgeLookup:g}=t.getState();let v=c;for(const y of u)v=typeof y=="function"?y(v):y;h?f(v):p&&p(MN({items:v,lookup:g}))},[]),a=RN(i),s=k.useMemo(()=>({nodeQueue:r,edgeQueue:a}),[]);return ge.jsx(Lj.Provider,{value:s,children:e})}function gre(){const e=k.useContext(Lj);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const vre=e=>!!e.panZoom;function ME(){const e=ure(),t=Yt(),n=gre(),r=gt(vre),i=k.useMemo(()=>{const a=p=>t.getState().nodeLookup.get(p),s=p=>{n.nodeQueue.push(p)},u=p=>{n.edgeQueue.push(p)},c=p=>{var _,C;const{nodeLookup:g,nodeOrigin:v}=t.getState(),y=NN(p)?p:g.get(p.id),b=y.parentId?uj(y.position,y.measured,y.parentId,g,v):y.position,w={...y,position:b,width:((_=y.measured)==null?void 0:_.width)??y.width,height:((C=y.measured)==null?void 0:C.height)??y.height};return of(w)},f=(p,g,v={replace:!1})=>{s(y=>y.map(b=>{if(b.id===p){const w=typeof g=="function"?g(b):g;return v.replace&&NN(w)?w:{...b,...w}}return b}))},h=(p,g,v={replace:!1})=>{u(y=>y.map(b=>{if(b.id===p){const w=typeof g=="function"?g(b):g;return v.replace&&hre(w)?w:{...b,...w}}return b}))};return{getNodes:()=>t.getState().nodes.map(p=>({...p})),getNode:p=>{var g;return(g=a(p))==null?void 0:g.internals.userNode},getInternalNode:a,getEdges:()=>{const{edges:p=[]}=t.getState();return p.map(g=>({...g}))},getEdge:p=>t.getState().edgeLookup.get(p),setNodes:s,setEdges:u,addNodes:p=>{const g=Array.isArray(p)?p:[p];n.nodeQueue.push(v=>[...v,...g])},addEdges:p=>{const g=Array.isArray(p)?p:[p];n.edgeQueue.push(v=>[...v,...g])},toObject:()=>{const{nodes:p=[],edges:g=[],transform:v}=t.getState(),[y,b,w]=v;return{nodes:p.map(_=>({..._})),edges:g.map(_=>({..._})),viewport:{x:y,y:b,zoom:w}}},deleteElements:async({nodes:p=[],edges:g=[]})=>{const{nodes:v,edges:y,onNodesDelete:b,onEdgesDelete:w,triggerNodeChanges:_,triggerEdgeChanges:C,onDelete:E,onBeforeDelete:S}=t.getState(),{nodes:T,edges:O}=await Bte({nodesToRemove:p,edgesToRemove:g,nodes:v,edges:y,onBeforeDelete:S}),M=O.length>0,P=T.length>0;if(M){const R=O.map(PN);w==null||w(O),C(R)}if(P){const R=T.map(PN);b==null||b(T),_(R)}return(P||M)&&(E==null||E({nodes:T,edges:O})),{deletedNodes:T,deletedEdges:O}},getIntersectingNodes:(p,g=!0,v)=>{const y=iN(p),b=y?p:c(p),w=v!==void 0;return b?(v||t.getState().nodes).filter(_=>{const C=t.getState().nodeLookup.get(_.id);if(C&&!y&&(_.id===p.id||!C.internals.positionAbsolute))return!1;const E=of(w?_:C),S=zh(E,b);return g&&S>0||S>=E.width*E.height||S>=b.width*b.height}):[]},isNodeIntersecting:(p,g,v=!0)=>{const b=iN(p)?p:c(p);if(!b)return!1;const w=zh(b,g);return v&&w>0||w>=g.width*g.height||w>=b.width*b.height},updateNode:f,updateNodeData:(p,g,v={replace:!1})=>{f(p,y=>{const b=typeof g=="function"?g(y):g;return v.replace?{...y,data:b}:{...y,data:{...y.data,...b}}},v)},updateEdge:h,updateEdgeData:(p,g,v={replace:!1})=>{h(p,y=>{const b=typeof g=="function"?g(y):g;return v.replace?{...y,data:b}:{...y,data:{...y.data,...b}}},v)},getNodesBounds:p=>{const{nodeLookup:g,nodeOrigin:v}=t.getState();return Lte(p,{nodeLookup:g,nodeOrigin:v})},getHandleConnections:({type:p,id:g,nodeId:v})=>{var y;return Array.from(((y=t.getState().connectionLookup.get(`${v}-${p}${g?`-${g}`:""}`))==null?void 0:y.values())??[])},getNodeConnections:({type:p,handleId:g,nodeId:v})=>{var y;return Array.from(((y=t.getState().connectionLookup.get(`${v}${p?g?`-${p}-${g}`:`-${p}`:""}`))==null?void 0:y.values())??[])},fitView:async p=>{const g=t.getState().fitViewResolver??Gte();return t.setState({fitViewQueued:!0,fitViewOptions:p,fitViewResolver:g}),n.nodeQueue.push(v=>[...v]),g.promise}}},[]);return k.useMemo(()=>({...i,...e,viewportInitialized:r}),[r])}const DN=e=>e.selected,yre=typeof window<"u"?window:void 0;function bre({deleteKeyCode:e,multiSelectionKeyCode:t}){const n=Yt(),{deleteElements:r}=ME(),i=$h(e,{actInsideInputWithModifier:!1}),a=$h(t,{target:yre});k.useEffect(()=>{if(i){const{edges:s,nodes:u}=n.getState();r({nodes:u.filter(DN),edges:s.filter(DN)}),n.setState({nodesSelectionActive:!1})}},[i]),k.useEffect(()=>{n.setState({multiSelectionActive:a})},[a])}function wre(e){const t=Yt();k.useEffect(()=>{const n=()=>{var i,a,s,u;if(!e.current||!(((a=(i=e.current).checkVisibility)==null?void 0:a.call(i))??!0))return!1;const r=EE(e.current);(r.height===0||r.width===0)&&((u=(s=t.getState()).onError)==null||u.call(s,"004",ga.error004())),t.setState({width:r.width||500,height:r.height||500})};if(e.current){n(),window.addEventListener("resize",n);const r=new ResizeObserver(()=>n());return r.observe(e.current),()=>{window.removeEventListener("resize",n),r&&e.current&&r.unobserve(e.current)}}},[])}const l0={position:"absolute",width:"100%",height:"100%",top:0,left:0},xre=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function _re({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:n=!0,panOnScroll:r=!1,panOnScrollSpeed:i=.5,panOnScrollMode:a=Kl.Free,zoomOnDoubleClick:s=!0,panOnDrag:u=!0,defaultViewport:c,translateExtent:f,minZoom:h,maxZoom:p,zoomActivationKeyCode:g,preventScrolling:v=!0,children:y,noWheelClassName:b,noPanClassName:w,onViewportChange:_,isControlledViewport:C,paneClickDistance:E,selectionOnDrag:S}){const T=Yt(),O=k.useRef(null),{userSelectionActive:M,lib:P,connectionInProgress:R}=gt(xre,Kt),z=$h(g),D=k.useRef();wre(O);const N=k.useCallback($=>{_==null||_({x:$[0],y:$[1],zoom:$[2]}),C||T.setState({transform:$})},[_,C]);return k.useEffect(()=>{if(O.current){D.current=Cne({domNode:O.current,minZoom:h,maxZoom:p,translateExtent:f,viewport:c,onDraggingChange:j=>T.setState(G=>G.paneDragging===j?G:{paneDragging:j}),onPanZoomStart:(j,G)=>{const{onViewportChangeStart:q,onMoveStart:H}=T.getState();H==null||H(j,G),q==null||q(G)},onPanZoom:(j,G)=>{const{onViewportChange:q,onMove:H}=T.getState();H==null||H(j,G),q==null||q(G)},onPanZoomEnd:(j,G)=>{const{onViewportChangeEnd:q,onMoveEnd:H}=T.getState();H==null||H(j,G),q==null||q(G)}});const{x:$,y:I,zoom:U}=D.current.getViewport();return T.setState({panZoom:D.current,transform:[$,I,U],domNode:O.current.closest(".react-flow")}),()=>{var j;(j=D.current)==null||j.destroy()}}},[]),k.useEffect(()=>{var $;($=D.current)==null||$.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:n,panOnScroll:r,panOnScrollSpeed:i,panOnScrollMode:a,zoomOnDoubleClick:s,panOnDrag:u,zoomActivationKeyPressed:z,preventScrolling:v,noPanClassName:w,userSelectionActive:M,noWheelClassName:b,lib:P,onTransformChange:N,connectionInProgress:R,selectionOnDrag:S,paneClickDistance:E})},[e,t,n,r,i,a,s,u,z,v,w,M,b,P,N,R,S,E]),ge.jsx("div",{className:"react-flow__renderer",ref:O,style:l0,children:y})}const Sre=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function Ere(){const{userSelectionActive:e,userSelectionRect:t}=gt(Sre,Kt);return e&&t?ge.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}const Bw=(e,t)=>n=>{n.target===t.current&&(e==null||e(n))},Are=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function kre({isSelecting:e,selectionKeyPressed:t,selectionMode:n=Lh.Full,panOnDrag:r,paneClickDistance:i,selectionOnDrag:a,onSelectionStart:s,onSelectionEnd:u,onPaneClick:c,onPaneContextMenu:f,onPaneScroll:h,onPaneMouseEnter:p,onPaneMouseMove:g,onPaneMouseLeave:v,children:y}){const b=Yt(),{userSelectionActive:w,elementsSelectable:_,dragging:C,connectionInProgress:E}=gt(Are,Kt),S=_&&(e||w),T=k.useRef(null),O=k.useRef(),M=k.useRef(new Set),P=k.useRef(new Set),R=k.useRef(!1),z=q=>{if(R.current||E){R.current=!1;return}c==null||c(q),b.getState().resetSelectedElements(),b.setState({nodesSelectionActive:!1})},D=q=>{if(Array.isArray(r)&&(r!=null&&r.includes(2))){q.preventDefault();return}f==null||f(q)},N=h?q=>h(q):void 0,$=q=>{R.current&&(q.stopPropagation(),R.current=!1)},I=q=>{var ce,he;const{domNode:H}=b.getState();if(O.current=H==null?void 0:H.getBoundingClientRect(),!O.current)return;const V=q.target===T.current;if(!V&&!!q.target.closest(".nokey")||!e||!(a&&V||t)||q.button!==0||!q.isPrimary)return;(he=(ce=q.target)==null?void 0:ce.setPointerCapture)==null||he.call(ce,q.pointerId),R.current=!1;const{x:X,y:ee}=Gi(q.nativeEvent,O.current);b.setState({userSelectionRect:{width:0,height:0,startX:X,startY:ee,x:X,y:ee}}),V||(q.stopPropagation(),q.preventDefault())},U=q=>{const{userSelectionRect:H,transform:V,nodeLookup:B,edgeLookup:K,connectionLookup:X,triggerNodeChanges:ee,triggerEdgeChanges:ce,defaultEdgeOptions:he,resetSelectedElements:de}=b.getState();if(!O.current||!H)return;const{x:ie,y:J}=Gi(q.nativeEvent,O.current),{startX:pe,startY:ye}=H;if(!R.current){const Ie=t?0:i;if(Math.hypot(ie-pe,J-ye)<=Ie)return;de(),s==null||s(q)}R.current=!0;const te={startX:pe,startY:ye,x:ie<pe?ie:pe,y:J<ye?J:ye,width:Math.abs(ie-pe),height:Math.abs(J-ye)},Ce=M.current,Se=P.current;M.current=new Set(_E(B,te,V,n===Lh.Partial,!0).map(Ie=>Ie.id)),P.current=new Set;const Ye=(he==null?void 0:he.selectable)??!0;for(const Ie of M.current){const ut=X.get(Ie);if(ut)for(const{edgeId:jt}of ut.values()){const Zt=K.get(jt);Zt&&(Zt.selectable??Ye)&&P.current.add(jt)}}if(!aN(Ce,M.current)){const Ie=Ec(B,M.current,!0);ee(Ie)}if(!aN(Se,P.current)){const Ie=Ec(K,P.current);ce(Ie)}b.setState({userSelectionRect:te,userSelectionActive:!0,nodesSelectionActive:!1})},j=q=>{var H,V;q.button===0&&((V=(H=q.target)==null?void 0:H.releasePointerCapture)==null||V.call(H,q.pointerId),!w&&q.target===T.current&&b.getState().userSelectionRect&&(z==null||z(q)),b.setState({userSelectionActive:!1,userSelectionRect:null}),R.current&&(u==null||u(q),b.setState({nodesSelectionActive:M.current.size>0})))},G=r===!0||Array.isArray(r)&&r.includes(0);return ge.jsxs("div",{className:xn(["react-flow__pane",{draggable:G,dragging:C,selection:e}]),onClick:S?void 0:Bw(z,T),onContextMenu:Bw(D,T),onWheel:Bw(N,T),onPointerEnter:S?void 0:p,onPointerMove:S?U:g,onPointerUp:S?j:void 0,onPointerDownCapture:S?I:void 0,onClickCapture:S?$:void 0,onPointerLeave:v,ref:T,style:l0,children:[y,ge.jsx(Ere,{})]})}function HS({id:e,store:t,unselect:n=!1,nodeRef:r}){const{addSelectedNodes:i,unselectNodesAndEdges:a,multiSelectionActive:s,nodeLookup:u,onError:c}=t.getState(),f=u.get(e);if(!f){c==null||c("012",ga.error012(e));return}t.setState({nodesSelectionActive:!1}),f.selected?(n||f.selected&&s)&&(a({nodes:[f],edges:[]}),requestAnimationFrame(()=>{var h;return(h=r==null?void 0:r.current)==null?void 0:h.blur()})):i([e])}function zj({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:r,nodeId:i,isSelectable:a,nodeClickDistance:s}){const u=Yt(),[c,f]=k.useState(!1),h=k.useRef();return k.useEffect(()=>{h.current=hne({getStoreItems:()=>u.getState(),onNodeMouseDown:p=>{HS({id:p,store:u,nodeRef:e})},onDragStart:()=>{f(!0)},onDragStop:()=>{f(!1)}})},[]),k.useEffect(()=>{if(!(t||!e.current||!h.current))return h.current.update({noDragClassName:n,handleSelector:r,domNode:e.current,isSelectable:a,nodeId:i,nodeClickDistance:s}),()=>{var p;(p=h.current)==null||p.destroy()}},[n,r,t,a,e,i,s]),c}const Cre=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function jj(){const e=Yt();return k.useCallback(n=>{const{nodeExtent:r,snapToGrid:i,snapGrid:a,nodesDraggable:s,onError:u,updateNodePositions:c,nodeLookup:f,nodeOrigin:h}=e.getState(),p=new Map,g=Cre(s),v=i?a[0]:5,y=i?a[1]:5,b=n.direction.x*v*n.factor,w=n.direction.y*y*n.factor;for(const[,_]of f){if(!g(_))continue;let C={x:_.internals.positionAbsolute.x+b,y:_.internals.positionAbsolute.y+w};i&&(C=vp(C,a));const{position:E,positionAbsolute:S}=ij({nodeId:_.id,nextPosition:C,nodeLookup:f,nodeExtent:r,nodeOrigin:h,onError:u});_.position=E,_.internals.positionAbsolute=S,p.set(_.id,_)}c(p)},[])}const PE=k.createContext(null),Ore=PE.Provider;PE.Consumer;const $j=()=>k.useContext(PE),Tre=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),Mre=(e,t,n)=>r=>{const{connectionClickStartHandle:i,connectionMode:a,connection:s}=r,{fromHandle:u,toHandle:c,isValid:f}=s,h=(c==null?void 0:c.nodeId)===e&&(c==null?void 0:c.id)===t&&(c==null?void 0:c.type)===n;return{connectingFrom:(u==null?void 0:u.nodeId)===e&&(u==null?void 0:u.id)===t&&(u==null?void 0:u.type)===n,connectingTo:h,clickConnecting:(i==null?void 0:i.nodeId)===e&&(i==null?void 0:i.id)===t&&(i==null?void 0:i.type)===n,isPossibleEndHandle:a===rf.Strict?(u==null?void 0:u.type)!==n:e!==(u==null?void 0:u.nodeId)||t!==(u==null?void 0:u.id),connectionInProcess:!!u,clickConnectionInProcess:!!i,valid:h&&f}};function Pre({type:e="source",position:t=Ke.Top,isValidConnection:n,isConnectable:r=!0,isConnectableStart:i=!0,isConnectableEnd:a=!0,id:s,onConnect:u,children:c,className:f,onMouseDown:h,onTouchStart:p,...g},v){var U,j;const y=s||null,b=e==="target",w=Yt(),_=$j(),{connectOnClick:C,noPanClassName:E,rfId:S}=gt(Tre,Kt),{connectingFrom:T,connectingTo:O,clickConnecting:M,isPossibleEndHandle:P,connectionInProcess:R,clickConnectionInProcess:z,valid:D}=gt(Mre(_,y,e),Kt);_||(j=(U=w.getState()).onError)==null||j.call(U,"010",ga.error010());const N=G=>{const{defaultEdgeOptions:q,onConnect:H,hasDefaultEdges:V}=w.getState(),B={...q,...G};if(V){const{edges:K,setEdges:X}=w.getState();X(Zte(B,K))}H==null||H(B),u==null||u(B)},$=G=>{if(!_)return;const q=dj(G.nativeEvent);if(i&&(q&&G.button===0||!q)){const H=w.getState();US.onPointerDown(G.nativeEvent,{handleDomNode:G.currentTarget,autoPanOnConnect:H.autoPanOnConnect,connectionMode:H.connectionMode,connectionRadius:H.connectionRadius,domNode:H.domNode,nodeLookup:H.nodeLookup,lib:H.lib,isTarget:b,handleId:y,nodeId:_,flowId:H.rfId,panBy:H.panBy,cancelConnection:H.cancelConnection,onConnectStart:H.onConnectStart,onConnectEnd:(...V)=>{var B,K;return(K=(B=w.getState()).onConnectEnd)==null?void 0:K.call(B,...V)},updateConnection:H.updateConnection,onConnect:N,isValidConnection:n||((...V)=>{var B,K;return((K=(B=w.getState()).isValidConnection)==null?void 0:K.call(B,...V))??!0}),getTransform:()=>w.getState().transform,getFromHandle:()=>w.getState().connection.fromHandle,autoPanSpeed:H.autoPanSpeed,dragThreshold:H.connectionDragThreshold})}q?h==null||h(G):p==null||p(G)},I=G=>{const{onClickConnectStart:q,onClickConnectEnd:H,connectionClickStartHandle:V,connectionMode:B,isValidConnection:K,lib:X,rfId:ee,nodeLookup:ce,connection:he}=w.getState();if(!_||!V&&!i)return;if(!V){q==null||q(G.nativeEvent,{nodeId:_,handleId:y,handleType:e}),w.setState({connectionClickStartHandle:{nodeId:_,type:e,id:y}});return}const de=cj(G.target),ie=n||K,{connection:J,isValid:pe}=US.isValid(G.nativeEvent,{handle:{nodeId:_,id:y,type:e},connectionMode:B,fromNodeId:V.nodeId,fromHandleId:V.id||null,fromType:V.type,isValidConnection:ie,flowId:ee,doc:de,lib:X,nodeLookup:ce});pe&&J&&N(J);const ye=structuredClone(he);delete ye.inProgress,ye.toPosition=ye.toHandle?ye.toHandle.position:null,H==null||H(G,ye),w.setState({connectionClickStartHandle:null})};return ge.jsx("div",{"data-handleid":y,"data-nodeid":_,"data-handlepos":t,"data-id":`${S}-${_}-${y}-${e}`,className:xn(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",E,f,{source:!b,target:b,connectable:r,connectablestart:i,connectableend:a,clickconnecting:M,connectingfrom:T,connectingto:O,valid:D,connectionindicator:r&&(!R||P)&&(R||z?a:i)}]),onMouseDown:$,onTouchStart:$,onClick:C?I:void 0,ref:v,...g,children:c})}const Kv=k.memo(Ij(Pre));function Nre({data:e,isConnectable:t,sourcePosition:n=Ke.Bottom}){return ge.jsxs(ge.Fragment,{children:[e==null?void 0:e.label,ge.jsx(Kv,{type:"source",position:n,isConnectable:t})]})}function Rre({data:e,isConnectable:t,targetPosition:n=Ke.Top,sourcePosition:r=Ke.Bottom}){return ge.jsxs(ge.Fragment,{children:[ge.jsx(Kv,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label,ge.jsx(Kv,{type:"source",position:r,isConnectable:t})]})}function Dre(){return null}function Ire({data:e,isConnectable:t,targetPosition:n=Ke.Top}){return ge.jsxs(ge.Fragment,{children:[ge.jsx(Kv,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label]})}const Yv={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},IN={input:Nre,default:Rre,output:Ire,group:Dre};function Lre(e){var t,n,r,i;return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??((t=e.style)==null?void 0:t.width),height:e.height??e.initialHeight??((n=e.style)==null?void 0:n.height)}:{width:e.width??((r=e.style)==null?void 0:r.width),height:e.height??((i=e.style)==null?void 0:i.height)}}const zre=e=>{const{width:t,height:n,x:r,y:i}=gp(e.nodeLookup,{filter:a=>!!a.selected});return{width:Hi(t)?t:null,height:Hi(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${r}px,${i}px)`}};function jre({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){const r=Yt(),{width:i,height:a,transformString:s,userSelectionActive:u}=gt(zre,Kt),c=jj(),f=k.useRef(null);k.useEffect(()=>{var v;n||(v=f.current)==null||v.focus({preventScroll:!0})},[n]);const h=!u&&i!==null&&a!==null;if(zj({nodeRef:f,disabled:!h}),!h)return null;const p=e?v=>{const y=r.getState().nodes.filter(b=>b.selected);e(v,y)}:void 0,g=v=>{Object.prototype.hasOwnProperty.call(Yv,v.key)&&(v.preventDefault(),c({direction:Yv[v.key],factor:v.shiftKey?4:1}))};return ge.jsx("div",{className:xn(["react-flow__nodesselection","react-flow__container",t]),style:{transform:s},children:ge.jsx("div",{ref:f,className:"react-flow__nodesselection-rect",onContextMenu:p,tabIndex:n?void 0:-1,onKeyDown:n?void 0:g,style:{width:i,height:a}})})}const LN=typeof window<"u"?window:void 0,$re=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function Bj({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:a,onPaneScroll:s,paneClickDistance:u,deleteKeyCode:c,selectionKeyCode:f,selectionOnDrag:h,selectionMode:p,onSelectionStart:g,onSelectionEnd:v,multiSelectionKeyCode:y,panActivationKeyCode:b,zoomActivationKeyCode:w,elementsSelectable:_,zoomOnScroll:C,zoomOnPinch:E,panOnScroll:S,panOnScrollSpeed:T,panOnScrollMode:O,zoomOnDoubleClick:M,panOnDrag:P,defaultViewport:R,translateExtent:z,minZoom:D,maxZoom:N,preventScrolling:$,onSelectionContextMenu:I,noWheelClassName:U,noPanClassName:j,disableKeyboardA11y:G,onViewportChange:q,isControlledViewport:H}){const{nodesSelectionActive:V,userSelectionActive:B}=gt($re,Kt),K=$h(f,{target:LN}),X=$h(b,{target:LN}),ee=X||P,ce=X||S,he=h&&ee!==!0,de=K||B||he;return bre({deleteKeyCode:c,multiSelectionKeyCode:y}),ge.jsx(_re,{onPaneContextMenu:a,elementsSelectable:_,zoomOnScroll:C,zoomOnPinch:E,panOnScroll:ce,panOnScrollSpeed:T,panOnScrollMode:O,zoomOnDoubleClick:M,panOnDrag:!K&&ee,defaultViewport:R,translateExtent:z,minZoom:D,maxZoom:N,zoomActivationKeyCode:w,preventScrolling:$,noWheelClassName:U,noPanClassName:j,onViewportChange:q,isControlledViewport:H,paneClickDistance:u,selectionOnDrag:he,children:ge.jsxs(kre,{onSelectionStart:g,onSelectionEnd:v,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:a,onPaneScroll:s,panOnDrag:ee,isSelecting:!!de,selectionMode:p,selectionKeyPressed:K,paneClickDistance:u,selectionOnDrag:he,children:[e,V&&ge.jsx(jre,{onSelectionContextMenu:I,noPanClassName:j,disableKeyboardA11y:G})]})})}Bj.displayName="FlowRenderer";const Bre=k.memo(Bj),Ure=e=>t=>e?_E(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(n=>n.id):Array.from(t.nodeLookup.keys());function Fre(e){return gt(k.useCallback(Ure(e),[e]),Kt)}const Hre=e=>e.updateNodeInternals;function Gre(){const e=gt(Hre),[t]=k.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{const r=new Map;n.forEach(i=>{const a=i.target.getAttribute("data-id");r.set(a,{id:a,nodeElement:i.target,force:!0})}),e(r)}));return k.useEffect(()=>()=>{t==null||t.disconnect()},[t]),t}function qre({node:e,nodeType:t,hasDimensions:n,resizeObserver:r}){const i=Yt(),a=k.useRef(null),s=k.useRef(null),u=k.useRef(e.sourcePosition),c=k.useRef(e.targetPosition),f=k.useRef(t),h=n&&!!e.internals.handleBounds;return k.useEffect(()=>{a.current&&!e.hidden&&(!h||s.current!==a.current)&&(s.current&&(r==null||r.unobserve(s.current)),r==null||r.observe(a.current),s.current=a.current)},[h,e.hidden]),k.useEffect(()=>()=>{s.current&&(r==null||r.unobserve(s.current),s.current=null)},[]),k.useEffect(()=>{if(a.current){const p=f.current!==t,g=u.current!==e.sourcePosition,v=c.current!==e.targetPosition;(p||g||v)&&(f.current=t,u.current=e.sourcePosition,c.current=e.targetPosition,i.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:a.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),a}function Vre({id:e,onClick:t,onMouseEnter:n,onMouseMove:r,onMouseLeave:i,onContextMenu:a,onDoubleClick:s,nodesDraggable:u,elementsSelectable:c,nodesConnectable:f,nodesFocusable:h,resizeObserver:p,noDragClassName:g,noPanClassName:v,disableKeyboardA11y:y,rfId:b,nodeTypes:w,nodeClickDistance:_,onError:C}){const{node:E,internals:S,isParent:T}=gt(ie=>{const J=ie.nodeLookup.get(e),pe=ie.parentLookup.has(e);return{node:J,internals:J.internals,isParent:pe}},Kt);let O=E.type||"default",M=(w==null?void 0:w[O])||IN[O];M===void 0&&(C==null||C("003",ga.error003(O)),O="default",M=(w==null?void 0:w.default)||IN.default);const P=!!(E.draggable||u&&typeof E.draggable>"u"),R=!!(E.selectable||c&&typeof E.selectable>"u"),z=!!(E.connectable||f&&typeof E.connectable>"u"),D=!!(E.focusable||h&&typeof E.focusable>"u"),N=Yt(),$=lj(E),I=qre({node:E,nodeType:O,hasDimensions:$,resizeObserver:p}),U=zj({nodeRef:I,disabled:E.hidden||!P,noDragClassName:g,handleSelector:E.dragHandle,nodeId:e,isSelectable:R,nodeClickDistance:_}),j=jj();if(E.hidden)return null;const G=ko(E),q=Lre(E),H=R||P||t||n||r||i,V=n?ie=>n(ie,{...S.userNode}):void 0,B=r?ie=>r(ie,{...S.userNode}):void 0,K=i?ie=>i(ie,{...S.userNode}):void 0,X=a?ie=>a(ie,{...S.userNode}):void 0,ee=s?ie=>s(ie,{...S.userNode}):void 0,ce=ie=>{const{selectNodesOnDrag:J,nodeDragThreshold:pe}=N.getState();R&&(!J||!P||pe>0)&&HS({id:e,store:N,nodeRef:I}),t&&t(ie,{...S.userNode})},he=ie=>{if(!(fj(ie.nativeEvent)||y)){if(J5.includes(ie.key)&&R){const J=ie.key==="Escape";HS({id:e,store:N,unselect:J,nodeRef:I})}else if(P&&E.selected&&Object.prototype.hasOwnProperty.call(Yv,ie.key)){ie.preventDefault();const{ariaLabelConfig:J}=N.getState();N.setState({ariaLiveMessage:J["node.a11yDescription.ariaLiveMessage"]({direction:ie.key.replace("Arrow","").toLowerCase(),x:~~S.positionAbsolute.x,y:~~S.positionAbsolute.y})}),j({direction:Yv[ie.key],factor:ie.shiftKey?4:1})}}},de=()=>{var Se;if(y||!((Se=I.current)!=null&&Se.matches(":focus-visible")))return;const{transform:ie,width:J,height:pe,autoPanOnNodeFocus:ye,setCenter:te}=N.getState();if(!ye)return;_E(new Map([[e,E]]),{x:0,y:0,width:J,height:pe},ie,!0).length>0||te(E.position.x+G.width/2,E.position.y+G.height/2,{zoom:ie[2]})};return ge.jsx("div",{className:xn(["react-flow__node",`react-flow__node-${O}`,{[v]:P},E.className,{selected:E.selected,selectable:R,parent:T,draggable:P,dragging:U}]),ref:I,style:{zIndex:S.z,transform:`translate(${S.positionAbsolute.x}px,${S.positionAbsolute.y}px)`,pointerEvents:H?"all":"none",visibility:$?"visible":"hidden",...E.style,...q},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:V,onMouseMove:B,onMouseLeave:K,onContextMenu:X,onClick:ce,onDoubleClick:ee,onKeyDown:D?he:void 0,tabIndex:D?0:void 0,onFocus:D?de:void 0,role:E.ariaRole??(D?"group":void 0),"aria-roledescription":"node","aria-describedby":y?void 0:`${Pj}-${b}`,"aria-label":E.ariaLabel,...E.domAttributes,children:ge.jsx(Ore,{value:e,children:ge.jsx(M,{id:e,data:E.data,type:O,positionAbsoluteX:S.positionAbsolute.x,positionAbsoluteY:S.positionAbsolute.y,selected:E.selected??!1,selectable:R,draggable:P,deletable:E.deletable??!0,isConnectable:z,sourcePosition:E.sourcePosition,targetPosition:E.targetPosition,dragging:U,dragHandle:E.dragHandle,zIndex:S.z,parentId:E.parentId,...G})})})}var Kre=k.memo(Vre);const Yre=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function Uj(e){const{nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:i,onError:a}=gt(Yre,Kt),s=Fre(e.onlyRenderVisibleElements),u=Gre();return ge.jsx("div",{className:"react-flow__nodes",style:l0,children:s.map(c=>ge.jsx(Kre,{id:c,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:u,nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:i,nodeClickDistance:e.nodeClickDistance,onError:a},c))})}Uj.displayName="NodeRenderer";const Wre=k.memo(Uj);function Qre(e){return gt(k.useCallback(n=>{if(!e)return n.edges.map(i=>i.id);const r=[];if(n.width&&n.height)for(const i of n.edges){const a=n.nodeLookup.get(i.source),s=n.nodeLookup.get(i.target);a&&s&&Yte({sourceNode:a,targetNode:s,width:n.width,height:n.height,transform:n.transform})&&r.push(i.id)}return r},[e]),Kt)}const Zre=({color:e="none",strokeWidth:t=1})=>{const n={strokeWidth:t,...e&&{stroke:e}};return ge.jsx("polyline",{className:"arrow",style:n,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},Xre=({color:e="none",strokeWidth:t=1})=>{const n={strokeWidth:t,...e&&{stroke:e,fill:e}};return ge.jsx("polyline",{className:"arrowclosed",style:n,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},zN={[Gv.Arrow]:Zre,[Gv.ArrowClosed]:Xre};function Jre(e){const t=Yt();return k.useMemo(()=>{var i,a;return Object.prototype.hasOwnProperty.call(zN,e)?zN[e]:((a=(i=t.getState()).onError)==null||a.call(i,"009",ga.error009(e)),null)},[e])}const eie=({id:e,type:t,color:n,width:r=12.5,height:i=12.5,markerUnits:a="strokeWidth",strokeWidth:s,orient:u="auto-start-reverse"})=>{const c=Jre(t);return c?ge.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${r}`,markerHeight:`${i}`,viewBox:"-10 -10 20 20",markerUnits:a,orient:u,refX:"0",refY:"0",children:ge.jsx(c,{color:n,strokeWidth:s})}):null},Fj=({defaultColor:e,rfId:t})=>{const n=gt(a=>a.edges),r=gt(a=>a.defaultEdgeOptions),i=k.useMemo(()=>nne(n,{id:t,defaultColor:e,defaultMarkerStart:r==null?void 0:r.markerStart,defaultMarkerEnd:r==null?void 0:r.markerEnd}),[n,r,t,e]);return i.length?ge.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:ge.jsx("defs",{children:i.map(a=>ge.jsx(eie,{id:a.id,type:a.type,color:a.color,width:a.width,height:a.height,markerUnits:a.markerUnits,strokeWidth:a.strokeWidth,orient:a.orient},a.id))})}):null};Fj.displayName="MarkerDefinitions";var tie=k.memo(Fj);function Hj({x:e,y:t,label:n,labelStyle:r,labelShowBg:i=!0,labelBgStyle:a,labelBgPadding:s=[2,4],labelBgBorderRadius:u=2,children:c,className:f,...h}){const[p,g]=k.useState({x:1,y:0,width:0,height:0}),v=xn(["react-flow__edge-textwrapper",f]),y=k.useRef(null);return k.useEffect(()=>{if(y.current){const b=y.current.getBBox();g({x:b.x,y:b.y,width:b.width,height:b.height})}},[n]),n?ge.jsxs("g",{transform:`translate(${e-p.width/2} ${t-p.height/2})`,className:v,visibility:p.width?"visible":"hidden",...h,children:[i&&ge.jsx("rect",{width:p.width+2*s[0],x:-s[0],y:-s[1],height:p.height+2*s[1],className:"react-flow__edge-textbg",style:a,rx:u,ry:u}),ge.jsx("text",{className:"react-flow__edge-text",y:p.height/2,dy:"0.3em",ref:y,style:r,children:n}),c]}):null}Hj.displayName="EdgeText";const nie=k.memo(Hj);function u0({path:e,labelX:t,labelY:n,label:r,labelStyle:i,labelShowBg:a,labelBgStyle:s,labelBgPadding:u,labelBgBorderRadius:c,interactionWidth:f=20,...h}){return ge.jsxs(ge.Fragment,{children:[ge.jsx("path",{...h,d:e,fill:"none",className:xn(["react-flow__edge-path",h.className])}),f?ge.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:f,className:"react-flow__edge-interaction"}):null,r&&Hi(t)&&Hi(n)?ge.jsx(nie,{x:t,y:n,label:r,labelStyle:i,labelShowBg:a,labelBgStyle:s,labelBgPadding:u,labelBgBorderRadius:c}):null]})}function jN({pos:e,x1:t,y1:n,x2:r,y2:i}){return e===Ke.Left||e===Ke.Right?[.5*(t+r),n]:[t,.5*(n+i)]}function Gj({sourceX:e,sourceY:t,sourcePosition:n=Ke.Bottom,targetX:r,targetY:i,targetPosition:a=Ke.Top}){const[s,u]=jN({pos:n,x1:e,y1:t,x2:r,y2:i}),[c,f]=jN({pos:a,x1:r,y1:i,x2:e,y2:t}),[h,p,g,v]=hj({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:s,sourceControlY:u,targetControlX:c,targetControlY:f});return[`M${e},${t} C${s},${u} ${c},${f} ${r},${i}`,h,p,g,v]}function qj(e){return k.memo(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:a,sourcePosition:s,targetPosition:u,label:c,labelStyle:f,labelShowBg:h,labelBgStyle:p,labelBgPadding:g,labelBgBorderRadius:v,style:y,markerEnd:b,markerStart:w,interactionWidth:_})=>{const[C,E,S]=Gj({sourceX:n,sourceY:r,sourcePosition:s,targetX:i,targetY:a,targetPosition:u}),T=e.isInternal?void 0:t;return ge.jsx(u0,{id:T,path:C,labelX:E,labelY:S,label:c,labelStyle:f,labelShowBg:h,labelBgStyle:p,labelBgPadding:g,labelBgBorderRadius:v,style:y,markerEnd:b,markerStart:w,interactionWidth:_})})}const rie=qj({isInternal:!1}),Vj=qj({isInternal:!0});rie.displayName="SimpleBezierEdge";Vj.displayName="SimpleBezierEdgeInternal";function Kj(e){return k.memo(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:a,label:s,labelStyle:u,labelShowBg:c,labelBgStyle:f,labelBgPadding:h,labelBgBorderRadius:p,style:g,sourcePosition:v=Ke.Bottom,targetPosition:y=Ke.Top,markerEnd:b,markerStart:w,pathOptions:_,interactionWidth:C})=>{const[E,S,T]=jS({sourceX:n,sourceY:r,sourcePosition:v,targetX:i,targetY:a,targetPosition:y,borderRadius:_==null?void 0:_.borderRadius,offset:_==null?void 0:_.offset,stepPosition:_==null?void 0:_.stepPosition}),O=e.isInternal?void 0:t;return ge.jsx(u0,{id:O,path:E,labelX:S,labelY:T,label:s,labelStyle:u,labelShowBg:c,labelBgStyle:f,labelBgPadding:h,labelBgBorderRadius:p,style:g,markerEnd:b,markerStart:w,interactionWidth:C})})}const Yj=Kj({isInternal:!1}),Wj=Kj({isInternal:!0});Yj.displayName="SmoothStepEdge";Wj.displayName="SmoothStepEdgeInternal";function Qj(e){return k.memo(({id:t,...n})=>{var i;const r=e.isInternal?void 0:t;return ge.jsx(Yj,{...n,id:r,pathOptions:k.useMemo(()=>{var a;return{borderRadius:0,offset:(a=n.pathOptions)==null?void 0:a.offset}},[(i=n.pathOptions)==null?void 0:i.offset])})})}const iie=Qj({isInternal:!1}),Zj=Qj({isInternal:!0});iie.displayName="StepEdge";Zj.displayName="StepEdgeInternal";function Xj(e){return k.memo(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:a,label:s,labelStyle:u,labelShowBg:c,labelBgStyle:f,labelBgPadding:h,labelBgBorderRadius:p,style:g,markerEnd:v,markerStart:y,interactionWidth:b})=>{const[w,_,C]=gj({sourceX:n,sourceY:r,targetX:i,targetY:a}),E=e.isInternal?void 0:t;return ge.jsx(u0,{id:E,path:w,labelX:_,labelY:C,label:s,labelStyle:u,labelShowBg:c,labelBgStyle:f,labelBgPadding:h,labelBgBorderRadius:p,style:g,markerEnd:v,markerStart:y,interactionWidth:b})})}const aie=Xj({isInternal:!1}),Jj=Xj({isInternal:!0});aie.displayName="StraightEdge";Jj.displayName="StraightEdgeInternal";function e6(e){return k.memo(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:a,sourcePosition:s=Ke.Bottom,targetPosition:u=Ke.Top,label:c,labelStyle:f,labelShowBg:h,labelBgStyle:p,labelBgPadding:g,labelBgBorderRadius:v,style:y,markerEnd:b,markerStart:w,pathOptions:_,interactionWidth:C})=>{const[E,S,T]=pj({sourceX:n,sourceY:r,sourcePosition:s,targetX:i,targetY:a,targetPosition:u,curvature:_==null?void 0:_.curvature}),O=e.isInternal?void 0:t;return ge.jsx(u0,{id:O,path:E,labelX:S,labelY:T,label:c,labelStyle:f,labelShowBg:h,labelBgStyle:p,labelBgPadding:g,labelBgBorderRadius:v,style:y,markerEnd:b,markerStart:w,interactionWidth:C})})}const oie=e6({isInternal:!1}),t6=e6({isInternal:!0});oie.displayName="BezierEdge";t6.displayName="BezierEdgeInternal";const $N={default:t6,straight:Jj,step:Zj,smoothstep:Wj,simplebezier:Vj},BN={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},sie=(e,t,n)=>n===Ke.Left?e-t:n===Ke.Right?e+t:e,lie=(e,t,n)=>n===Ke.Top?e-t:n===Ke.Bottom?e+t:e,UN="react-flow__edgeupdater";function FN({position:e,centerX:t,centerY:n,radius:r=10,onMouseDown:i,onMouseEnter:a,onMouseOut:s,type:u}){return ge.jsx("circle",{onMouseDown:i,onMouseEnter:a,onMouseOut:s,className:xn([UN,`${UN}-${u}`]),cx:sie(t,r,e),cy:lie(n,r,e),r,stroke:"transparent",fill:"transparent"})}function uie({isReconnectable:e,reconnectRadius:t,edge:n,sourceX:r,sourceY:i,targetX:a,targetY:s,sourcePosition:u,targetPosition:c,onReconnect:f,onReconnectStart:h,onReconnectEnd:p,setReconnecting:g,setUpdateHover:v}){const y=Yt(),b=(S,T)=>{if(S.button!==0)return;const{autoPanOnConnect:O,domNode:M,connectionMode:P,connectionRadius:R,lib:z,onConnectStart:D,cancelConnection:N,nodeLookup:$,rfId:I,panBy:U,updateConnection:j}=y.getState(),G=T.type==="target",q=(B,K)=>{g(!1),p==null||p(B,n,T.type,K)},H=B=>f==null?void 0:f(n,B),V=(B,K)=>{g(!0),h==null||h(S,n,T.type),D==null||D(B,K)};US.onPointerDown(S.nativeEvent,{autoPanOnConnect:O,connectionMode:P,connectionRadius:R,domNode:M,handleId:T.id,nodeId:T.nodeId,nodeLookup:$,isTarget:G,edgeUpdaterType:T.type,lib:z,flowId:I,cancelConnection:N,panBy:U,isValidConnection:(...B)=>{var K,X;return((X=(K=y.getState()).isValidConnection)==null?void 0:X.call(K,...B))??!0},onConnect:H,onConnectStart:V,onConnectEnd:(...B)=>{var K,X;return(X=(K=y.getState()).onConnectEnd)==null?void 0:X.call(K,...B)},onReconnectEnd:q,updateConnection:j,getTransform:()=>y.getState().transform,getFromHandle:()=>y.getState().connection.fromHandle,dragThreshold:y.getState().connectionDragThreshold,handleDomNode:S.currentTarget})},w=S=>b(S,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),_=S=>b(S,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),C=()=>v(!0),E=()=>v(!1);return ge.jsxs(ge.Fragment,{children:[(e===!0||e==="source")&&ge.jsx(FN,{position:u,centerX:r,centerY:i,radius:t,onMouseDown:w,onMouseEnter:C,onMouseOut:E,type:"source"}),(e===!0||e==="target")&&ge.jsx(FN,{position:c,centerX:a,centerY:s,radius:t,onMouseDown:_,onMouseEnter:C,onMouseOut:E,type:"target"})]})}function cie({id:e,edgesFocusable:t,edgesReconnectable:n,elementsSelectable:r,onClick:i,onDoubleClick:a,onContextMenu:s,onMouseEnter:u,onMouseMove:c,onMouseLeave:f,reconnectRadius:h,onReconnect:p,onReconnectStart:g,onReconnectEnd:v,rfId:y,edgeTypes:b,noPanClassName:w,onError:_,disableKeyboardA11y:C}){let E=gt(te=>te.edgeLookup.get(e));const S=gt(te=>te.defaultEdgeOptions);E=S?{...S,...E}:E;let T=E.type||"default",O=(b==null?void 0:b[T])||$N[T];O===void 0&&(_==null||_("011",ga.error011(T)),T="default",O=(b==null?void 0:b.default)||$N.default);const M=!!(E.focusable||t&&typeof E.focusable>"u"),P=typeof p<"u"&&(E.reconnectable||n&&typeof E.reconnectable>"u"),R=!!(E.selectable||r&&typeof E.selectable>"u"),z=k.useRef(null),[D,N]=k.useState(!1),[$,I]=k.useState(!1),U=Yt(),{zIndex:j,sourceX:G,sourceY:q,targetX:H,targetY:V,sourcePosition:B,targetPosition:K}=gt(k.useCallback(te=>{const Ce=te.nodeLookup.get(E.source),Se=te.nodeLookup.get(E.target);if(!Ce||!Se)return{zIndex:E.zIndex,...BN};const Ye=tne({id:e,sourceNode:Ce,targetNode:Se,sourceHandle:E.sourceHandle||null,targetHandle:E.targetHandle||null,connectionMode:te.connectionMode,onError:_});return{zIndex:Kte({selected:E.selected,zIndex:E.zIndex,sourceNode:Ce,targetNode:Se,elevateOnSelect:te.elevateEdgesOnSelect,zIndexMode:te.zIndexMode}),...Ye||BN}},[E.source,E.target,E.sourceHandle,E.targetHandle,E.selected,E.zIndex]),Kt),X=k.useMemo(()=>E.markerStart?`url('#${$S(E.markerStart,y)}')`:void 0,[E.markerStart,y]),ee=k.useMemo(()=>E.markerEnd?`url('#${$S(E.markerEnd,y)}')`:void 0,[E.markerEnd,y]);if(E.hidden||G===null||q===null||H===null||V===null)return null;const ce=te=>{var Ie;const{addSelectedEdges:Ce,unselectNodesAndEdges:Se,multiSelectionActive:Ye}=U.getState();R&&(U.setState({nodesSelectionActive:!1}),E.selected&&Ye?(Se({nodes:[],edges:[E]}),(Ie=z.current)==null||Ie.blur()):Ce([e])),i&&i(te,E)},he=a?te=>{a(te,{...E})}:void 0,de=s?te=>{s(te,{...E})}:void 0,ie=u?te=>{u(te,{...E})}:void 0,J=c?te=>{c(te,{...E})}:void 0,pe=f?te=>{f(te,{...E})}:void 0,ye=te=>{var Ce;if(!C&&J5.includes(te.key)&&R){const{unselectNodesAndEdges:Se,addSelectedEdges:Ye}=U.getState();te.key==="Escape"?((Ce=z.current)==null||Ce.blur(),Se({edges:[E]})):Ye([e])}};return ge.jsx("svg",{style:{zIndex:j},children:ge.jsxs("g",{className:xn(["react-flow__edge",`react-flow__edge-${T}`,E.className,w,{selected:E.selected,animated:E.animated,inactive:!R&&!i,updating:D,selectable:R}]),onClick:ce,onDoubleClick:he,onContextMenu:de,onMouseEnter:ie,onMouseMove:J,onMouseLeave:pe,onKeyDown:M?ye:void 0,tabIndex:M?0:void 0,role:E.ariaRole??(M?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":E.ariaLabel===null?void 0:E.ariaLabel||`Edge from ${E.source} to ${E.target}`,"aria-describedby":M?`${Nj}-${y}`:void 0,ref:z,...E.domAttributes,children:[!$&&ge.jsx(O,{id:e,source:E.source,target:E.target,type:E.type,selected:E.selected,animated:E.animated,selectable:R,deletable:E.deletable??!0,label:E.label,labelStyle:E.labelStyle,labelShowBg:E.labelShowBg,labelBgStyle:E.labelBgStyle,labelBgPadding:E.labelBgPadding,labelBgBorderRadius:E.labelBgBorderRadius,sourceX:G,sourceY:q,targetX:H,targetY:V,sourcePosition:B,targetPosition:K,data:E.data,style:E.style,sourceHandleId:E.sourceHandle,targetHandleId:E.targetHandle,markerStart:X,markerEnd:ee,pathOptions:"pathOptions"in E?E.pathOptions:void 0,interactionWidth:E.interactionWidth}),P&&ge.jsx(uie,{edge:E,isReconnectable:P,reconnectRadius:h,onReconnect:p,onReconnectStart:g,onReconnectEnd:v,sourceX:G,sourceY:q,targetX:H,targetY:V,sourcePosition:B,targetPosition:K,setUpdateHover:N,setReconnecting:I})]})})}var fie=k.memo(cie);const die=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function n6({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:n,edgeTypes:r,noPanClassName:i,onReconnect:a,onEdgeContextMenu:s,onEdgeMouseEnter:u,onEdgeMouseMove:c,onEdgeMouseLeave:f,onEdgeClick:h,reconnectRadius:p,onEdgeDoubleClick:g,onReconnectStart:v,onReconnectEnd:y,disableKeyboardA11y:b}){const{edgesFocusable:w,edgesReconnectable:_,elementsSelectable:C,onError:E}=gt(die,Kt),S=Qre(t);return ge.jsxs("div",{className:"react-flow__edges",children:[ge.jsx(tie,{defaultColor:e,rfId:n}),S.map(T=>ge.jsx(fie,{id:T,edgesFocusable:w,edgesReconnectable:_,elementsSelectable:C,noPanClassName:i,onReconnect:a,onContextMenu:s,onMouseEnter:u,onMouseMove:c,onMouseLeave:f,onClick:h,reconnectRadius:p,onDoubleClick:g,onReconnectStart:v,onReconnectEnd:y,rfId:n,onError:E,edgeTypes:r,disableKeyboardA11y:b},T))]})}n6.displayName="EdgeRenderer";const hie=k.memo(n6),pie=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function mie({children:e}){const t=gt(pie);return ge.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:t},children:e})}function gie(e){const t=ME(),n=k.useRef(!1);k.useEffect(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}const vie=e=>{var t;return(t=e.panZoom)==null?void 0:t.syncViewport};function yie(e){const t=gt(vie),n=Yt();return k.useEffect(()=>{e&&(t==null||t(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function bie(e){return e.connection.inProgress?{...e.connection,to:yp(e.connection.to,e.transform)}:{...e.connection}}function wie(e){return bie}function xie(e){const t=wie();return gt(t,Kt)}const _ie=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function Sie({containerStyle:e,style:t,type:n,component:r}){const{nodesConnectable:i,width:a,height:s,isValid:u,inProgress:c}=gt(_ie,Kt);return!(a&&i&&c)?null:ge.jsx("svg",{style:e,width:a,height:s,className:"react-flow__connectionline react-flow__container",children:ge.jsx("g",{className:xn(["react-flow__connection",nj(u)]),children:ge.jsx(r6,{style:t,type:n,CustomComponent:r,isValid:u})})})}const r6=({style:e,type:t=_s.Bezier,CustomComponent:n,isValid:r})=>{const{inProgress:i,from:a,fromNode:s,fromHandle:u,fromPosition:c,to:f,toNode:h,toHandle:p,toPosition:g,pointer:v}=xie();if(!i)return;if(n)return ge.jsx(n,{connectionLineType:t,connectionLineStyle:e,fromNode:s,fromHandle:u,fromX:a.x,fromY:a.y,toX:f.x,toY:f.y,fromPosition:c,toPosition:g,connectionStatus:nj(r),toNode:h,toHandle:p,pointer:v});let y="";const b={sourceX:a.x,sourceY:a.y,sourcePosition:c,targetX:f.x,targetY:f.y,targetPosition:g};switch(t){case _s.Bezier:[y]=pj(b);break;case _s.SimpleBezier:[y]=Gj(b);break;case _s.Step:[y]=jS({...b,borderRadius:0});break;case _s.SmoothStep:[y]=jS(b);break;default:[y]=gj(b)}return ge.jsx("path",{d:y,fill:"none",className:"react-flow__connection-path",style:e})};r6.displayName="ConnectionLine";const Eie={};function HN(e=Eie){k.useRef(e),Yt(),k.useEffect(()=>{},[e])}function Aie(){Yt(),k.useRef(!1),k.useEffect(()=>{},[])}function i6({nodeTypes:e,edgeTypes:t,onInit:n,onNodeClick:r,onEdgeClick:i,onNodeDoubleClick:a,onEdgeDoubleClick:s,onNodeMouseEnter:u,onNodeMouseMove:c,onNodeMouseLeave:f,onNodeContextMenu:h,onSelectionContextMenu:p,onSelectionStart:g,onSelectionEnd:v,connectionLineType:y,connectionLineStyle:b,connectionLineComponent:w,connectionLineContainerStyle:_,selectionKeyCode:C,selectionOnDrag:E,selectionMode:S,multiSelectionKeyCode:T,panActivationKeyCode:O,zoomActivationKeyCode:M,deleteKeyCode:P,onlyRenderVisibleElements:R,elementsSelectable:z,defaultViewport:D,translateExtent:N,minZoom:$,maxZoom:I,preventScrolling:U,defaultMarkerColor:j,zoomOnScroll:G,zoomOnPinch:q,panOnScroll:H,panOnScrollSpeed:V,panOnScrollMode:B,zoomOnDoubleClick:K,panOnDrag:X,onPaneClick:ee,onPaneMouseEnter:ce,onPaneMouseMove:he,onPaneMouseLeave:de,onPaneScroll:ie,onPaneContextMenu:J,paneClickDistance:pe,nodeClickDistance:ye,onEdgeContextMenu:te,onEdgeMouseEnter:Ce,onEdgeMouseMove:Se,onEdgeMouseLeave:Ye,reconnectRadius:Ie,onReconnect:ut,onReconnectStart:jt,onReconnectEnd:Zt,noDragClassName:nr,noWheelClassName:rr,noPanClassName:W,disableKeyboardA11y:re,nodeExtent:ae,rfId:Oe,viewport:_e,onViewportChange:Ee}){return HN(e),HN(t),Aie(),gie(n),yie(_e),ge.jsx(Bre,{onPaneClick:ee,onPaneMouseEnter:ce,onPaneMouseMove:he,onPaneMouseLeave:de,onPaneContextMenu:J,onPaneScroll:ie,paneClickDistance:pe,deleteKeyCode:P,selectionKeyCode:C,selectionOnDrag:E,selectionMode:S,onSelectionStart:g,onSelectionEnd:v,multiSelectionKeyCode:T,panActivationKeyCode:O,zoomActivationKeyCode:M,elementsSelectable:z,zoomOnScroll:G,zoomOnPinch:q,zoomOnDoubleClick:K,panOnScroll:H,panOnScrollSpeed:V,panOnScrollMode:B,panOnDrag:X,defaultViewport:D,translateExtent:N,minZoom:$,maxZoom:I,onSelectionContextMenu:p,preventScrolling:U,noDragClassName:nr,noWheelClassName:rr,noPanClassName:W,disableKeyboardA11y:re,onViewportChange:Ee,isControlledViewport:!!_e,children:ge.jsxs(mie,{children:[ge.jsx(hie,{edgeTypes:t,onEdgeClick:i,onEdgeDoubleClick:s,onReconnect:ut,onReconnectStart:jt,onReconnectEnd:Zt,onlyRenderVisibleElements:R,onEdgeContextMenu:te,onEdgeMouseEnter:Ce,onEdgeMouseMove:Se,onEdgeMouseLeave:Ye,reconnectRadius:Ie,defaultMarkerColor:j,noPanClassName:W,disableKeyboardA11y:re,rfId:Oe}),ge.jsx(Sie,{style:b,type:y,component:w,containerStyle:_}),ge.jsx("div",{className:"react-flow__edgelabel-renderer"}),ge.jsx(Wre,{nodeTypes:e,onNodeClick:r,onNodeDoubleClick:a,onNodeMouseEnter:u,onNodeMouseMove:c,onNodeMouseLeave:f,onNodeContextMenu:h,nodeClickDistance:ye,onlyRenderVisibleElements:R,noPanClassName:W,noDragClassName:nr,disableKeyboardA11y:re,nodeExtent:ae,rfId:Oe}),ge.jsx("div",{className:"react-flow__viewport-portal"})]})})}i6.displayName="GraphView";const kie=k.memo(i6),GN=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:i,height:a,fitView:s,fitViewOptions:u,minZoom:c=.5,maxZoom:f=2,nodeOrigin:h,nodeExtent:p,zIndexMode:g="basic"}={})=>{const v=new Map,y=new Map,b=new Map,w=new Map,_=r??t??[],C=n??e??[],E=h??[0,0],S=p??Ih;bj(b,w,_);const{nodesInitialized:T}=BS(C,v,y,{nodeOrigin:E,nodeExtent:S,zIndexMode:g});let O=[0,0,1];if(s&&i&&a){const M=gp(v,{filter:D=>!!((D.width||D.initialWidth)&&(D.height||D.initialHeight))}),{x:P,y:R,zoom:z}=SE(M,i,a,c,f,(u==null?void 0:u.padding)??.1);O=[P,R,z]}return{rfId:"1",width:i??0,height:a??0,transform:O,nodes:C,nodesInitialized:T,nodeLookup:v,parentLookup:y,edges:_,edgeLookup:w,connectionLookup:b,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:r!==void 0,panZoom:null,minZoom:c,maxZoom:f,translateExtent:Ih,nodeExtent:S,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:rf.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:E,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:s??!1,fitViewOptions:u,fitViewResolver:null,connection:{...tj},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:Ute,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:ej,zIndexMode:g,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},Cie=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:i,height:a,fitView:s,fitViewOptions:u,minZoom:c,maxZoom:f,nodeOrigin:h,nodeExtent:p,zIndexMode:g})=>Gne((v,y)=>{async function b(){const{nodeLookup:w,panZoom:_,fitViewOptions:C,fitViewResolver:E,width:S,height:T,minZoom:O,maxZoom:M}=y();_&&(await $te({nodes:w,width:S,height:T,panZoom:_,minZoom:O,maxZoom:M},C),E==null||E.resolve(!0),v({fitViewResolver:null}))}return{...GN({nodes:e,edges:t,width:i,height:a,fitView:s,fitViewOptions:u,minZoom:c,maxZoom:f,nodeOrigin:h,nodeExtent:p,defaultNodes:n,defaultEdges:r,zIndexMode:g}),setNodes:w=>{const{nodeLookup:_,parentLookup:C,nodeOrigin:E,elevateNodesOnSelect:S,fitViewQueued:T,zIndexMode:O,nodesSelectionActive:M}=y(),{nodesInitialized:P,hasSelectedNodes:R}=BS(w,_,C,{nodeOrigin:E,nodeExtent:p,elevateNodesOnSelect:S,checkEquality:!0,zIndexMode:O}),z=M&&R;T&&P?(b(),v({nodes:w,nodesInitialized:P,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:z})):v({nodes:w,nodesInitialized:P,nodesSelectionActive:z})},setEdges:w=>{const{connectionLookup:_,edgeLookup:C}=y();bj(_,C,w),v({edges:w})},setDefaultNodesAndEdges:(w,_)=>{if(w){const{setNodes:C}=y();C(w),v({hasDefaultNodes:!0})}if(_){const{setEdges:C}=y();C(_),v({hasDefaultEdges:!0})}},updateNodeInternals:w=>{const{triggerNodeChanges:_,nodeLookup:C,parentLookup:E,domNode:S,nodeOrigin:T,nodeExtent:O,debug:M,fitViewQueued:P,zIndexMode:R}=y(),{changes:z,updatedInternals:D}=une(w,C,E,S,T,O,R);D&&(ane(C,E,{nodeOrigin:T,nodeExtent:O,zIndexMode:R}),P?(b(),v({fitViewQueued:!1,fitViewOptions:void 0})):v({}),(z==null?void 0:z.length)>0&&(M&&console.log("React Flow: trigger node changes",z),_==null||_(z)))},updateNodePositions:(w,_=!1)=>{const C=[];let E=[];const{nodeLookup:S,triggerNodeChanges:T,connection:O,updateConnection:M,onNodesChangeMiddlewareMap:P}=y();for(const[R,z]of w){const D=S.get(R),N=!!(D!=null&&D.expandParent&&(D!=null&&D.parentId)&&(z!=null&&z.position)),$={id:R,type:"position",position:N?{x:Math.max(0,z.position.x),y:Math.max(0,z.position.y)}:z.position,dragging:_};if(D&&O.inProgress&&O.fromNode.id===D.id){const I=ou(D,O.fromHandle,Ke.Left,!0);M({...O,from:I})}N&&D.parentId&&C.push({id:R,parentId:D.parentId,rect:{...z.internals.positionAbsolute,width:z.measured.width??0,height:z.measured.height??0}}),E.push($)}if(C.length>0){const{parentLookup:R,nodeOrigin:z}=y(),D=TE(C,S,R,z);E.push(...D)}for(const R of P.values())E=R(E);T(E)},triggerNodeChanges:w=>{const{onNodesChange:_,setNodes:C,nodes:E,hasDefaultNodes:S,debug:T}=y();if(w!=null&&w.length){if(S){const O=fre(w,E);C(O)}T&&console.log("React Flow: trigger node changes",w),_==null||_(w)}},triggerEdgeChanges:w=>{const{onEdgesChange:_,setEdges:C,edges:E,hasDefaultEdges:S,debug:T}=y();if(w!=null&&w.length){if(S){const O=dre(w,E);C(O)}T&&console.log("React Flow: trigger edge changes",w),_==null||_(w)}},addSelectedNodes:w=>{const{multiSelectionActive:_,edgeLookup:C,nodeLookup:E,triggerNodeChanges:S,triggerEdgeChanges:T}=y();if(_){const O=w.map(M=>Al(M,!0));S(O);return}S(Ec(E,new Set([...w]),!0)),T(Ec(C))},addSelectedEdges:w=>{const{multiSelectionActive:_,edgeLookup:C,nodeLookup:E,triggerNodeChanges:S,triggerEdgeChanges:T}=y();if(_){const O=w.map(M=>Al(M,!0));T(O);return}T(Ec(C,new Set([...w]))),S(Ec(E,new Set,!0))},unselectNodesAndEdges:({nodes:w,edges:_}={})=>{const{edges:C,nodes:E,nodeLookup:S,triggerNodeChanges:T,triggerEdgeChanges:O}=y(),M=w||E,P=_||C,R=[];for(const D of M){if(!D.selected)continue;const N=S.get(D.id);N&&(N.selected=!1),R.push(Al(D.id,!1))}const z=[];for(const D of P)D.selected&&z.push(Al(D.id,!1));T(R),O(z)},setMinZoom:w=>{const{panZoom:_,maxZoom:C}=y();_==null||_.setScaleExtent([w,C]),v({minZoom:w})},setMaxZoom:w=>{const{panZoom:_,minZoom:C}=y();_==null||_.setScaleExtent([C,w]),v({maxZoom:w})},setTranslateExtent:w=>{var _;(_=y().panZoom)==null||_.setTranslateExtent(w),v({translateExtent:w})},resetSelectedElements:()=>{const{edges:w,nodes:_,triggerNodeChanges:C,triggerEdgeChanges:E,elementsSelectable:S}=y();if(!S)return;const T=_.reduce((M,P)=>P.selected?[...M,Al(P.id,!1)]:M,[]),O=w.reduce((M,P)=>P.selected?[...M,Al(P.id,!1)]:M,[]);C(T),E(O)},setNodeExtent:w=>{const{nodes:_,nodeLookup:C,parentLookup:E,nodeOrigin:S,elevateNodesOnSelect:T,nodeExtent:O,zIndexMode:M}=y();w[0][0]===O[0][0]&&w[0][1]===O[0][1]&&w[1][0]===O[1][0]&&w[1][1]===O[1][1]||(BS(_,C,E,{nodeOrigin:S,nodeExtent:w,elevateNodesOnSelect:T,checkEquality:!1,zIndexMode:M}),v({nodeExtent:w}))},panBy:w=>{const{transform:_,width:C,height:E,panZoom:S,translateExtent:T}=y();return cne({delta:w,panZoom:S,transform:_,translateExtent:T,width:C,height:E})},setCenter:async(w,_,C)=>{const{width:E,height:S,maxZoom:T,panZoom:O}=y();if(!O)return Promise.resolve(!1);const M=typeof(C==null?void 0:C.zoom)<"u"?C.zoom:T;return await O.setViewport({x:E/2-w*M,y:S/2-_*M,zoom:M},{duration:C==null?void 0:C.duration,ease:C==null?void 0:C.ease,interpolate:C==null?void 0:C.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{v({connection:{...tj}})},updateConnection:w=>{v({connection:w})},reset:()=>v({...GN()})}},Object.is);function Oie({initialNodes:e,initialEdges:t,defaultNodes:n,defaultEdges:r,initialWidth:i,initialHeight:a,initialMinZoom:s,initialMaxZoom:u,initialFitViewOptions:c,fitView:f,nodeOrigin:h,nodeExtent:p,zIndexMode:g,children:v}){const[y]=k.useState(()=>Cie({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:i,height:a,fitView:f,minZoom:s,maxZoom:u,fitViewOptions:c,nodeOrigin:h,nodeExtent:p,zIndexMode:g}));return ge.jsx(qne,{value:y,children:ge.jsx(mre,{children:v})})}function Tie({children:e,nodes:t,edges:n,defaultNodes:r,defaultEdges:i,width:a,height:s,fitView:u,fitViewOptions:c,minZoom:f,maxZoom:h,nodeOrigin:p,nodeExtent:g,zIndexMode:v}){return k.useContext(o0)?ge.jsx(ge.Fragment,{children:e}):ge.jsx(Oie,{initialNodes:t,initialEdges:n,defaultNodes:r,defaultEdges:i,initialWidth:a,initialHeight:s,fitView:u,initialFitViewOptions:c,initialMinZoom:f,initialMaxZoom:h,nodeOrigin:p,nodeExtent:g,zIndexMode:v,children:e})}const Mie={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function Pie({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,className:i,nodeTypes:a,edgeTypes:s,onNodeClick:u,onEdgeClick:c,onInit:f,onMove:h,onMoveStart:p,onMoveEnd:g,onConnect:v,onConnectStart:y,onConnectEnd:b,onClickConnectStart:w,onClickConnectEnd:_,onNodeMouseEnter:C,onNodeMouseMove:E,onNodeMouseLeave:S,onNodeContextMenu:T,onNodeDoubleClick:O,onNodeDragStart:M,onNodeDrag:P,onNodeDragStop:R,onNodesDelete:z,onEdgesDelete:D,onDelete:N,onSelectionChange:$,onSelectionDragStart:I,onSelectionDrag:U,onSelectionDragStop:j,onSelectionContextMenu:G,onSelectionStart:q,onSelectionEnd:H,onBeforeDelete:V,connectionMode:B,connectionLineType:K=_s.Bezier,connectionLineStyle:X,connectionLineComponent:ee,connectionLineContainerStyle:ce,deleteKeyCode:he="Backspace",selectionKeyCode:de="Shift",selectionOnDrag:ie=!1,selectionMode:J=Lh.Full,panActivationKeyCode:pe="Space",multiSelectionKeyCode:ye=jh()?"Meta":"Control",zoomActivationKeyCode:te=jh()?"Meta":"Control",snapToGrid:Ce,snapGrid:Se,onlyRenderVisibleElements:Ye=!1,selectNodesOnDrag:Ie,nodesDraggable:ut,autoPanOnNodeFocus:jt,nodesConnectable:Zt,nodesFocusable:nr,nodeOrigin:rr=Rj,edgesFocusable:W,edgesReconnectable:re,elementsSelectable:ae=!0,defaultViewport:Oe=ire,minZoom:_e=.5,maxZoom:Ee=2,translateExtent:Re=Ih,preventScrolling:Ze=!0,nodeExtent:ct,defaultMarkerColor:Hn="#b1b1b7",zoomOnScroll:xr=!0,zoomOnPinch:Xt=!0,panOnScroll:Gn=!1,panOnScrollSpeed:_r=.5,panOnScrollMode:_n=Kl.Free,zoomOnDoubleClick:Df=!0,panOnDrag:bu=!0,onPaneClick:If,onPaneMouseEnter:ka,onPaneMouseMove:wu,onPaneMouseLeave:xu,onPaneScroll:Ca,onPaneContextMenu:_u,paneClickDistance:Qs=1,nodeClickDistance:V0=0,children:Up,onReconnect:Lf,onReconnectStart:Zs,onReconnectEnd:K0,onEdgeContextMenu:Fp,onEdgeDoubleClick:Hp,onEdgeMouseEnter:Gp,onEdgeMouseMove:zf,onEdgeMouseLeave:jf,reconnectRadius:qp=10,onNodesChange:Vp,onEdgesChange:Qi,noDragClassName:Sn="nodrag",noWheelClassName:ir="nowheel",noPanClassName:Oa="nopan",fitView:Su,fitViewOptions:Kp,connectOnClick:Y0,attributionPosition:Yp,proOptions:Xs,defaultEdgeOptions:$f,elevateNodesOnSelect:Lo=!0,elevateEdgesOnSelect:zo=!1,disableKeyboardA11y:jo=!1,autoPanOnConnect:$o,autoPanOnNodeDrag:hn,autoPanSpeed:Wp,connectionRadius:Qp,isValidConnection:Ta,onError:Bo,style:W0,id:Bf,nodeDragThreshold:Zp,connectionDragThreshold:Q0,viewport:Eu,onViewportChange:Au,width:Ci,height:Sr,colorMode:Xp="light",debug:Z0,onScroll:Uo,ariaLabelConfig:Jp,zIndexMode:Js="basic",...X0},Er){const el=Bf||"1",em=lre(Xp),Uf=k.useCallback(Ma=>{Ma.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Uo==null||Uo(Ma)},[Uo]);return ge.jsx("div",{"data-testid":"rf__wrapper",...X0,onScroll:Uf,style:{...W0,...Mie},ref:Er,className:xn(["react-flow",i,em]),id:Bf,role:"application",children:ge.jsxs(Tie,{nodes:e,edges:t,width:Ci,height:Sr,fitView:Su,fitViewOptions:Kp,minZoom:_e,maxZoom:Ee,nodeOrigin:rr,nodeExtent:ct,zIndexMode:Js,children:[ge.jsx(sre,{nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:v,onConnectStart:y,onConnectEnd:b,onClickConnectStart:w,onClickConnectEnd:_,nodesDraggable:ut,autoPanOnNodeFocus:jt,nodesConnectable:Zt,nodesFocusable:nr,edgesFocusable:W,edgesReconnectable:re,elementsSelectable:ae,elevateNodesOnSelect:Lo,elevateEdgesOnSelect:zo,minZoom:_e,maxZoom:Ee,nodeExtent:ct,onNodesChange:Vp,onEdgesChange:Qi,snapToGrid:Ce,snapGrid:Se,connectionMode:B,translateExtent:Re,connectOnClick:Y0,defaultEdgeOptions:$f,fitView:Su,fitViewOptions:Kp,onNodesDelete:z,onEdgesDelete:D,onDelete:N,onNodeDragStart:M,onNodeDrag:P,onNodeDragStop:R,onSelectionDrag:U,onSelectionDragStart:I,onSelectionDragStop:j,onMove:h,onMoveStart:p,onMoveEnd:g,noPanClassName:Oa,nodeOrigin:rr,rfId:el,autoPanOnConnect:$o,autoPanOnNodeDrag:hn,autoPanSpeed:Wp,onError:Bo,connectionRadius:Qp,isValidConnection:Ta,selectNodesOnDrag:Ie,nodeDragThreshold:Zp,connectionDragThreshold:Q0,onBeforeDelete:V,debug:Z0,ariaLabelConfig:Jp,zIndexMode:Js}),ge.jsx(kie,{onInit:f,onNodeClick:u,onEdgeClick:c,onNodeMouseEnter:C,onNodeMouseMove:E,onNodeMouseLeave:S,onNodeContextMenu:T,onNodeDoubleClick:O,nodeTypes:a,edgeTypes:s,connectionLineType:K,connectionLineStyle:X,connectionLineComponent:ee,connectionLineContainerStyle:ce,selectionKeyCode:de,selectionOnDrag:ie,selectionMode:J,deleteKeyCode:he,multiSelectionKeyCode:ye,panActivationKeyCode:pe,zoomActivationKeyCode:te,onlyRenderVisibleElements:Ye,defaultViewport:Oe,translateExtent:Re,minZoom:_e,maxZoom:Ee,preventScrolling:Ze,zoomOnScroll:xr,zoomOnPinch:Xt,zoomOnDoubleClick:Df,panOnScroll:Gn,panOnScrollSpeed:_r,panOnScrollMode:_n,panOnDrag:bu,onPaneClick:If,onPaneMouseEnter:ka,onPaneMouseMove:wu,onPaneMouseLeave:xu,onPaneScroll:Ca,onPaneContextMenu:_u,paneClickDistance:Qs,nodeClickDistance:V0,onSelectionContextMenu:G,onSelectionStart:q,onSelectionEnd:H,onReconnect:Lf,onReconnectStart:Zs,onReconnectEnd:K0,onEdgeContextMenu:Fp,onEdgeDoubleClick:Hp,onEdgeMouseEnter:Gp,onEdgeMouseMove:zf,onEdgeMouseLeave:jf,reconnectRadius:qp,defaultMarkerColor:Hn,noDragClassName:Sn,noWheelClassName:ir,noPanClassName:Oa,rfId:el,disableKeyboardA11y:jo,nodeExtent:ct,viewport:Eu,onViewportChange:Au}),ge.jsx(rre,{onSelectionChange:$}),Up,ge.jsx(Xne,{proOptions:Xs,position:Yp}),ge.jsx(Zne,{rfId:el,disableKeyboardA11y:jo})]})})}var Nke=Ij(Pie);function Nie({dimensions:e,lineWidth:t,variant:n,className:r}){return ge.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:xn(["react-flow__background-pattern",n,r])})}function Rie({radius:e,className:t}){return ge.jsx("circle",{cx:e,cy:e,r:e,className:xn(["react-flow__background-pattern","dots",t])})}var zs;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(zs||(zs={}));const Die={[zs.Dots]:1,[zs.Lines]:1,[zs.Cross]:6},Iie=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function a6({id:e,variant:t=zs.Dots,gap:n=20,size:r,lineWidth:i=1,offset:a=0,color:s,bgColor:u,style:c,className:f,patternClassName:h}){const p=k.useRef(null),{transform:g,patternId:v}=gt(Iie,Kt),y=r||Die[t],b=t===zs.Dots,w=t===zs.Cross,_=Array.isArray(n)?n:[n,n],C=[_[0]*g[2]||1,_[1]*g[2]||1],E=y*g[2],S=Array.isArray(a)?a:[a,a],T=w?[E,E]:C,O=[S[0]*g[2]||1+T[0]/2,S[1]*g[2]||1+T[1]/2],M=`${v}${e||""}`;return ge.jsxs("svg",{className:xn(["react-flow__background",f]),style:{...c,...l0,"--xy-background-color-props":u,"--xy-background-pattern-color-props":s},ref:p,"data-testid":"rf__background",children:[ge.jsx("pattern",{id:M,x:g[0]%C[0],y:g[1]%C[1],width:C[0],height:C[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${O[0]},-${O[1]})`,children:b?ge.jsx(Rie,{radius:E/2,className:h}):ge.jsx(Nie,{dimensions:T,lineWidth:i,variant:t,className:h})}),ge.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${M})`})]})}a6.displayName="Background";const Rke=k.memo(a6);function Lie(){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:ge.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function zie(){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:ge.jsx("path",{d:"M0 0h32v4.2H0z"})})}function jie(){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:ge.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function $ie(){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:ge.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function Bie(){return ge.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:ge.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function Rg({children:e,className:t,...n}){return ge.jsx("button",{type:"button",className:xn(["react-flow__controls-button",t]),...n,children:e})}const Uie=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function o6({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:r=!0,fitViewOptions:i,onZoomIn:a,onZoomOut:s,onFitView:u,onInteractiveChange:c,className:f,children:h,position:p="bottom-left",orientation:g="vertical","aria-label":v}){const y=Yt(),{isInteractive:b,minZoomReached:w,maxZoomReached:_,ariaLabelConfig:C}=gt(Uie,Kt),{zoomIn:E,zoomOut:S,fitView:T}=ME(),O=()=>{E(),a==null||a()},M=()=>{S(),s==null||s()},P=()=>{T(i),u==null||u()},R=()=>{y.setState({nodesDraggable:!b,nodesConnectable:!b,elementsSelectable:!b}),c==null||c(!b)},z=g==="horizontal"?"horizontal":"vertical";return ge.jsxs(s0,{className:xn(["react-flow__controls",z,f]),position:p,style:e,"data-testid":"rf__controls","aria-label":v??C["controls.ariaLabel"],children:[t&&ge.jsxs(ge.Fragment,{children:[ge.jsx(Rg,{onClick:O,className:"react-flow__controls-zoomin",title:C["controls.zoomIn.ariaLabel"],"aria-label":C["controls.zoomIn.ariaLabel"],disabled:_,children:ge.jsx(Lie,{})}),ge.jsx(Rg,{onClick:M,className:"react-flow__controls-zoomout",title:C["controls.zoomOut.ariaLabel"],"aria-label":C["controls.zoomOut.ariaLabel"],disabled:w,children:ge.jsx(zie,{})})]}),n&&ge.jsx(Rg,{className:"react-flow__controls-fitview",onClick:P,title:C["controls.fitView.ariaLabel"],"aria-label":C["controls.fitView.ariaLabel"],children:ge.jsx(jie,{})}),r&&ge.jsx(Rg,{className:"react-flow__controls-interactive",onClick:R,title:C["controls.interactive.ariaLabel"],"aria-label":C["controls.interactive.ariaLabel"],children:b?ge.jsx(Bie,{}):ge.jsx($ie,{})}),h]})}o6.displayName="Controls";const Dke=k.memo(o6);function Fie({id:e,x:t,y:n,width:r,height:i,style:a,color:s,strokeColor:u,strokeWidth:c,className:f,borderRadius:h,shapeRendering:p,selected:g,onClick:v}){const{background:y,backgroundColor:b}=a||{},w=s||y||b;return ge.jsx("rect",{className:xn(["react-flow__minimap-node",{selected:g},f]),x:t,y:n,rx:h,ry:h,width:r,height:i,style:{fill:w,stroke:u,strokeWidth:c},shapeRendering:p,onClick:v?_=>v(_,e):void 0})}const Hie=k.memo(Fie),Gie=e=>e.nodes.map(t=>t.id),Uw=e=>e instanceof Function?e:()=>e;function qie({nodeStrokeColor:e,nodeColor:t,nodeClassName:n="",nodeBorderRadius:r=5,nodeStrokeWidth:i,nodeComponent:a=Hie,onClick:s}){const u=gt(Gie,Kt),c=Uw(t),f=Uw(e),h=Uw(n),p=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return ge.jsx(ge.Fragment,{children:u.map(g=>ge.jsx(Kie,{id:g,nodeColorFunc:c,nodeStrokeColorFunc:f,nodeClassNameFunc:h,nodeBorderRadius:r,nodeStrokeWidth:i,NodeComponent:a,onClick:s,shapeRendering:p},g))})}function Vie({id:e,nodeColorFunc:t,nodeStrokeColorFunc:n,nodeClassNameFunc:r,nodeBorderRadius:i,nodeStrokeWidth:a,shapeRendering:s,NodeComponent:u,onClick:c}){const{node:f,x:h,y:p,width:g,height:v}=gt(y=>{const b=y.nodeLookup.get(e);if(!b)return{node:void 0,x:0,y:0,width:0,height:0};const w=b.internals.userNode,{x:_,y:C}=b.internals.positionAbsolute,{width:E,height:S}=ko(w);return{node:w,x:_,y:C,width:E,height:S}},Kt);return!f||f.hidden||!lj(f)?null:ge.jsx(u,{x:h,y:p,width:g,height:v,style:f.style,selected:!!f.selected,className:r(f),color:t(f),borderRadius:i,strokeColor:n(f),strokeWidth:a,shapeRendering:s,onClick:c,id:f.id})}const Kie=k.memo(Vie);var Yie=k.memo(qie);const Wie=200,Qie=150,Zie=e=>!e.hidden,Xie=e=>{const t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:t,boundingRect:e.nodeLookup.size>0?sj(gp(e.nodeLookup,{filter:Zie}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},Jie="react-flow__minimap-desc";function s6({style:e,className:t,nodeStrokeColor:n,nodeColor:r,nodeClassName:i="",nodeBorderRadius:a=5,nodeStrokeWidth:s,nodeComponent:u,bgColor:c,maskColor:f,maskStrokeColor:h,maskStrokeWidth:p,position:g="bottom-right",onClick:v,onNodeClick:y,pannable:b=!1,zoomable:w=!1,ariaLabel:_,inversePan:C,zoomStep:E=1,offsetScale:S=5}){const T=Yt(),O=k.useRef(null),{boundingRect:M,viewBB:P,rfId:R,panZoom:z,translateExtent:D,flowWidth:N,flowHeight:$,ariaLabelConfig:I}=gt(Xie,Kt),U=(e==null?void 0:e.width)??Wie,j=(e==null?void 0:e.height)??Qie,G=M.width/U,q=M.height/j,H=Math.max(G,q),V=H*U,B=H*j,K=S*H,X=M.x-(V-M.width)/2-K,ee=M.y-(B-M.height)/2-K,ce=V+K*2,he=B+K*2,de=`${Jie}-${R}`,ie=k.useRef(0),J=k.useRef();ie.current=H,k.useEffect(()=>{if(O.current&&z)return J.current=bne({domNode:O.current,panZoom:z,getTransform:()=>T.getState().transform,getViewScale:()=>ie.current}),()=>{var Ce;(Ce=J.current)==null||Ce.destroy()}},[z]),k.useEffect(()=>{var Ce;(Ce=J.current)==null||Ce.update({translateExtent:D,width:N,height:$,inversePan:C,pannable:b,zoomStep:E,zoomable:w})},[b,w,C,E,D,N,$]);const pe=v?Ce=>{var Ie;const[Se,Ye]=((Ie=J.current)==null?void 0:Ie.pointer(Ce))||[0,0];v(Ce,{x:Se,y:Ye})}:void 0,ye=y?k.useCallback((Ce,Se)=>{const Ye=T.getState().nodeLookup.get(Se).internals.userNode;y(Ce,Ye)},[]):void 0,te=_??I["minimap.ariaLabel"];return ge.jsx(s0,{position:g,style:{...e,"--xy-minimap-background-color-props":typeof c=="string"?c:void 0,"--xy-minimap-mask-background-color-props":typeof f=="string"?f:void 0,"--xy-minimap-mask-stroke-color-props":typeof h=="string"?h:void 0,"--xy-minimap-mask-stroke-width-props":typeof p=="number"?p*H:void 0,"--xy-minimap-node-background-color-props":typeof r=="string"?r:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof s=="number"?s:void 0},className:xn(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:ge.jsxs("svg",{width:U,height:j,viewBox:`${X} ${ee} ${ce} ${he}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":de,ref:O,onClick:pe,children:[te&&ge.jsx("title",{id:de,children:te}),ge.jsx(Yie,{onClick:ye,nodeColor:r,nodeStrokeColor:n,nodeBorderRadius:a,nodeClassName:i,nodeStrokeWidth:s,nodeComponent:u}),ge.jsx("path",{className:"react-flow__minimap-mask",d:`M${X-K},${ee-K}h${ce+K*2}v${he+K*2}h${-ce-K*2}z
885
+ M${P.x},${P.y}h${P.width}v${P.height}h${-P.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}s6.displayName="MiniMap";k.memo(s6);const eae=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,tae={[lf.Line]:"right",[lf.Handle]:"bottom-right"};function nae({nodeId:e,position:t,variant:n=lf.Handle,className:r,style:i=void 0,children:a,color:s,minWidth:u=10,minHeight:c=10,maxWidth:f=Number.MAX_VALUE,maxHeight:h=Number.MAX_VALUE,keepAspectRatio:p=!1,resizeDirection:g,autoScale:v=!0,shouldResize:y,onResizeStart:b,onResize:w,onResizeEnd:_}){const C=$j(),E=typeof e=="string"?e:C,S=Yt(),T=k.useRef(null),O=n===lf.Handle,M=gt(k.useCallback(eae(O&&v),[O,v]),Kt),P=k.useRef(null),R=t??tae[n];k.useEffect(()=>{if(!(!T.current||!E))return P.current||(P.current=Rne({domNode:T.current,nodeId:E,getStoreItems:()=>{const{nodeLookup:D,transform:N,snapGrid:$,snapToGrid:I,nodeOrigin:U,domNode:j}=S.getState();return{nodeLookup:D,transform:N,snapGrid:$,snapToGrid:I,nodeOrigin:U,paneDomNode:j}},onChange:(D,N)=>{const{triggerNodeChanges:$,nodeLookup:I,parentLookup:U,nodeOrigin:j}=S.getState(),G=[],q={x:D.x,y:D.y},H=I.get(E);if(H&&H.expandParent&&H.parentId){const V=H.origin??j,B=D.width??H.measured.width??0,K=D.height??H.measured.height??0,X={id:H.id,parentId:H.parentId,rect:{width:B,height:K,...uj({x:D.x??H.position.x,y:D.y??H.position.y},{width:B,height:K},H.parentId,I,V)}},ee=TE([X],I,U,j);G.push(...ee),q.x=D.x?Math.max(V[0]*B,D.x):void 0,q.y=D.y?Math.max(V[1]*K,D.y):void 0}if(q.x!==void 0&&q.y!==void 0){const V={id:E,type:"position",position:{...q}};G.push(V)}if(D.width!==void 0&&D.height!==void 0){const B={id:E,type:"dimensions",resizing:!0,setAttributes:g?g==="horizontal"?"width":"height":!0,dimensions:{width:D.width,height:D.height}};G.push(B)}for(const V of N){const B={...V,type:"position"};G.push(B)}$(G)},onEnd:({width:D,height:N})=>{const $={id:E,type:"dimensions",resizing:!1,dimensions:{width:D,height:N}};S.getState().triggerNodeChanges([$])}})),P.current.update({controlPosition:R,boundaries:{minWidth:u,minHeight:c,maxWidth:f,maxHeight:h},keepAspectRatio:p,resizeDirection:g,onResizeStart:b,onResize:w,onResizeEnd:_,shouldResize:y}),()=>{var D;(D=P.current)==null||D.destroy()}},[R,u,c,f,h,p,b,w,_,y]);const z=R.split("-");return ge.jsx("div",{className:xn(["react-flow__resize-control","nodrag",...z,n,r]),ref:T,style:{...i,scale:M,...s&&{[O?"backgroundColor":"borderColor"]:s}},children:a})}k.memo(nae);const qN=e=>{let t;const n=new Set,r=(f,h)=>{const p=typeof f=="function"?f(t):f;if(!Object.is(p,t)){const g=t;t=h??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(v=>v(t,g))}},i=()=>t,u={setState:r,getState:i,getInitialState:()=>c,subscribe:f=>(n.add(f),()=>n.delete(f))},c=t=e(r,i,u);return u},rae=(e=>e?qN(e):qN),iae=e=>e;function aae(e,t=iae){const n=cn.useSyncExternalStore(e.subscribe,cn.useCallback(()=>t(e.getState()),[e,t]),cn.useCallback(()=>t(e.getInitialState()),[e,t]));return cn.useDebugValue(n),n}const VN=e=>{const t=rae(e),n=r=>aae(t,r);return Object.assign(n,t),n},Ike=(e=>e?VN(e):VN);var oae=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function NE(e){if(typeof e!="string")return!1;var t=oae;return t.includes(e)}var sae=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],lae=new Set(sae);function l6(e){return typeof e!="string"?!1:lae.has(e)}function u6(e){return typeof e=="string"&&e.startsWith("data-")}function Jr(e){if(typeof e!="object"||e===null)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(l6(n)||u6(n))&&(t[n]=e[n]);return t}function bp(e){if(e==null)return null;if(k.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Jr(t)}return typeof e=="object"&&!Array.isArray(e)?Jr(e):null}function ur(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(l6(n)||u6(n)||NE(n))&&(t[n]=e[n]);return t}function uae(e){return e==null?null:k.isValidElement(e)?ur(e.props):typeof e=="object"&&!Array.isArray(e)?ur(e):null}var cae=["children","width","height","viewBox","className","style","title","desc"];function GS(){return GS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GS.apply(null,arguments)}function fae(e,t){if(e==null)return{};var n,r,i=dae(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function dae(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var c6=k.forwardRef((e,t)=>{var{children:n,width:r,height:i,viewBox:a,className:s,style:u,title:c,desc:f}=e,h=fae(e,cae),p=a||{width:r,height:i,x:0,y:0},g=kt("recharts-surface",s);return k.createElement("svg",GS({},ur(h),{className:g,width:r,height:i,style:u,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height),ref:t}),k.createElement("title",null,c),k.createElement("desc",null,f),n)}),hae=["children","className"];function qS(){return qS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qS.apply(null,arguments)}function pae(e,t){if(e==null)return{};var n,r,i=mae(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function mae(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var tr=k.forwardRef((e,t)=>{var{children:n,className:r}=e,i=pae(e,hae),a=kt("recharts-layer",r);return k.createElement("g",qS({className:a},ur(i),{ref:t}),n)}),gae=k.createContext(null);function zt(e){return function(){return e}}const f6=Math.cos,Wv=Math.sin,Yi=Math.sqrt,Qv=Math.PI,c0=2*Qv,VS=Math.PI,KS=2*VS,kl=1e-6,vae=KS-kl;function d6(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function yae(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return d6;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class bae{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?d6:yae(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,s){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+s}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let s=this._x1,u=this._y1,c=r-t,f=i-n,h=s-t,p=u-n,g=h*h+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(g>kl)if(!(Math.abs(p*c-f*h)>kl)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let v=r-s,y=i-u,b=c*c+f*f,w=v*v+y*y,_=Math.sqrt(b),C=Math.sqrt(g),E=a*Math.tan((VS-Math.acos((b+g-w)/(2*_*C)))/2),S=E/C,T=E/_;Math.abs(S-1)>kl&&this._append`L${t+S*h},${n+S*p}`,this._append`A${a},${a},0,0,${+(p*v>h*y)},${this._x1=t+T*c},${this._y1=n+T*f}`}}arc(t,n,r,i,a,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(i),c=r*Math.sin(i),f=t+u,h=n+c,p=1^s,g=s?i-a:a-i;this._x1===null?this._append`M${f},${h}`:(Math.abs(this._x1-f)>kl||Math.abs(this._y1-h)>kl)&&this._append`L${f},${h}`,r&&(g<0&&(g=g%KS+KS),g>vae?this._append`A${r},${r},0,1,${p},${t-u},${n-c}A${r},${r},0,1,${p},${this._x1=f},${this._y1=h}`:g>kl&&this._append`A${r},${r},0,${+(g>=VS)},${p},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function RE(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new bae(t)}function DE(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function h6(e){this._context=e}h6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function f0(e){return new h6(e)}function p6(e){return e[0]}function m6(e){return e[1]}function g6(e,t){var n=zt(!0),r=null,i=f0,a=null,s=RE(u);e=typeof e=="function"?e:e===void 0?p6:zt(e),t=typeof t=="function"?t:t===void 0?m6:zt(t);function u(c){var f,h=(c=DE(c)).length,p,g=!1,v;for(r==null&&(a=i(v=s())),f=0;f<=h;++f)!(f<h&&n(p=c[f],f,c))===g&&((g=!g)?a.lineStart():a.lineEnd()),g&&a.point(+e(p,f,c),+t(p,f,c));if(v)return a=null,v+""||null}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:zt(+c),u):e},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:zt(+c),u):t},u.defined=function(c){return arguments.length?(n=typeof c=="function"?c:zt(!!c),u):n},u.curve=function(c){return arguments.length?(i=c,r!=null&&(a=i(r)),u):i},u.context=function(c){return arguments.length?(c==null?r=a=null:a=i(r=c),u):r},u}function Dg(e,t,n){var r=null,i=zt(!0),a=null,s=f0,u=null,c=RE(f);e=typeof e=="function"?e:e===void 0?p6:zt(+e),t=typeof t=="function"?t:zt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?m6:zt(+n);function f(p){var g,v,y,b=(p=DE(p)).length,w,_=!1,C,E=new Array(b),S=new Array(b);for(a==null&&(u=s(C=c())),g=0;g<=b;++g){if(!(g<b&&i(w=p[g],g,p))===_)if(_=!_)v=g,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=g-1;y>=v;--y)u.point(E[y],S[y]);u.lineEnd(),u.areaEnd()}_&&(E[g]=+e(w,g,p),S[g]=+t(w,g,p),u.point(r?+r(w,g,p):E[g],n?+n(w,g,p):S[g]))}if(C)return u=null,C+""||null}function h(){return g6().defined(i).curve(s).context(a)}return f.x=function(p){return arguments.length?(e=typeof p=="function"?p:zt(+p),r=null,f):e},f.x0=function(p){return arguments.length?(e=typeof p=="function"?p:zt(+p),f):e},f.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:zt(+p),f):r},f.y=function(p){return arguments.length?(t=typeof p=="function"?p:zt(+p),n=null,f):t},f.y0=function(p){return arguments.length?(t=typeof p=="function"?p:zt(+p),f):t},f.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:zt(+p),f):n},f.lineX0=f.lineY0=function(){return h().x(e).y(t)},f.lineY1=function(){return h().x(e).y(n)},f.lineX1=function(){return h().x(r).y(t)},f.defined=function(p){return arguments.length?(i=typeof p=="function"?p:zt(!!p),f):i},f.curve=function(p){return arguments.length?(s=p,a!=null&&(u=s(a)),f):s},f.context=function(p){return arguments.length?(p==null?a=u=null:u=s(a=p),f):a},f}class v6{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function wae(e){return new v6(e,!0)}function xae(e){return new v6(e,!1)}const IE={draw(e,t){const n=Yi(t/Qv);e.moveTo(n,0),e.arc(0,0,n,0,c0)}},_ae={draw(e,t){const n=Yi(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},y6=Yi(1/3),Sae=y6*2,Eae={draw(e,t){const n=Yi(t/Sae),r=n*y6;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Aae={draw(e,t){const n=Yi(t),r=-n/2;e.rect(r,r,n,n)}},kae=.8908130915292852,b6=Wv(Qv/10)/Wv(7*Qv/10),Cae=Wv(c0/10)*b6,Oae=-f6(c0/10)*b6,Tae={draw(e,t){const n=Yi(t*kae),r=Cae*n,i=Oae*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const s=c0*a/5,u=f6(s),c=Wv(s);e.lineTo(c*n,-u*n),e.lineTo(u*r-c*i,c*r+u*i)}e.closePath()}},Fw=Yi(3),Mae={draw(e,t){const n=-Yi(t/(Fw*3));e.moveTo(0,n*2),e.lineTo(-Fw*n,-n),e.lineTo(Fw*n,-n),e.closePath()}},di=-.5,hi=Yi(3)/2,YS=1/Yi(12),Pae=(YS/2+1)*3,Nae={draw(e,t){const n=Yi(t/Pae),r=n/2,i=n*YS,a=r,s=n*YS+n,u=-a,c=s;e.moveTo(r,i),e.lineTo(a,s),e.lineTo(u,c),e.lineTo(di*r-hi*i,hi*r+di*i),e.lineTo(di*a-hi*s,hi*a+di*s),e.lineTo(di*u-hi*c,hi*u+di*c),e.lineTo(di*r+hi*i,di*i-hi*r),e.lineTo(di*a+hi*s,di*s-hi*a),e.lineTo(di*u+hi*c,di*c-hi*u),e.closePath()}};function Rae(e,t){let n=null,r=RE(i);e=typeof e=="function"?e:zt(e||IE),t=typeof t=="function"?t:zt(t===void 0?64:+t);function i(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:zt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:zt(+a),i):t},i.context=function(a){return arguments.length?(n=a??null,i):n},i}function Zv(){}function Xv(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function w6(e){this._context=e}w6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Xv(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Xv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Dae(e){return new w6(e)}function x6(e){this._context=e}x6.prototype={areaStart:Zv,areaEnd:Zv,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Xv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Iae(e){return new x6(e)}function _6(e){this._context=e}_6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Xv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Lae(e){return new _6(e)}function S6(e){this._context=e}S6.prototype={areaStart:Zv,areaEnd:Zv,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function zae(e){return new S6(e)}function KN(e){return e<0?-1:1}function YN(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),u=(a*i+s*r)/(r+i);return(KN(a)+KN(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(u))||0}function WN(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Hw(e,t,n){var r=e._x0,i=e._y0,a=e._x1,s=e._y1,u=(a-r)/3;e._context.bezierCurveTo(r+u,i+u*t,a-u,s-u*n,a,s)}function Jv(e){this._context=e}Jv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Hw(this,this._t0,WN(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Hw(this,WN(this,n=YN(this,e,t)),n);break;default:Hw(this,this._t0,n=YN(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function E6(e){this._context=new A6(e)}(E6.prototype=Object.create(Jv.prototype)).point=function(e,t){Jv.prototype.point.call(this,t,e)};function A6(e){this._context=e}A6.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function jae(e){return new Jv(e)}function $ae(e){return new E6(e)}function k6(e){this._context=e}k6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=QN(e),i=QN(t),a=0,s=1;s<n;++a,++s)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[s],t[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function QN(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),s=new Array(n);for(i[0]=0,a[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,s[t]-=r*s[t-1];for(i[n-1]=s[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(s[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Bae(e){return new k6(e)}function d0(e,t){this._context=e,this._t=t}d0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function Uae(e){return new d0(e,.5)}function Fae(e){return new d0(e,0)}function Hae(e){return new d0(e,1)}function su(e,t){if((s=e.length)>1)for(var n=1,r,i,a=e[t[0]],s,u=a.length;n<s;++n)for(i=a,a=e[t[n]],r=0;r<u;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function WS(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Gae(e,t){return e[t]}function qae(e){const t=[];return t.key=e,t}function Vae(){var e=zt([]),t=WS,n=su,r=Gae;function i(a){var s=Array.from(e.apply(this,arguments),qae),u,c=s.length,f=-1,h;for(const p of a)for(u=0,++f;u<c;++u)(s[u][f]=[0,+r(p,s[u].key,f,a)]).data=p;for(u=0,h=DE(t(s));u<c;++u)s[h[u]].index=u;return n(s,h),s}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:zt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:zt(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?WS:typeof a=="function"?a:zt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??su,i):n},i}function Kae(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,s;i<a;++i){for(s=n=0;n<r;++n)s+=e[n][i][1]||0;if(s)for(n=0;n<r;++n)e[n][i][1]/=s}su(e,t)}}function Yae(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var s=0,u=0;s<i;++s)u+=e[s][n][1]||0;r[n][1]+=r[n][0]=-u/2}su(e,t)}}function Wae(e,t){if(!(!((s=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,s;r<a;++r){for(var u=0,c=0,f=0;u<s;++u){for(var h=e[t[u]],p=h[r][1]||0,g=h[r-1][1]||0,v=(p-g)/2,y=0;y<u;++y){var b=e[t[y]],w=b[r][1]||0,_=b[r-1][1]||0;v+=w-_}c+=p,f+=v*p}i[r-1][1]+=i[r-1][0]=n,c&&(n-=f/c)}i[r-1][1]+=i[r-1][0]=n,su(e,t)}}var Gw={},qw={},ZN;function Qae(){return ZN||(ZN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(qw)),qw}var Vw={},XN;function C6(){return XN||(XN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t})(Vw)),Vw}var Kw={},JN;function LE(){return JN||(JN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var r;return typeof n=="string"||typeof n=="symbol"?n:Object.is((r=n==null?void 0:n.valueOf)==null?void 0:r.call(n),-0)?"-0":String(n)}e.toKey=t})(Kw)),Kw}var Yw={},Ww={},eR;function Zae(){return eR||(eR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(n==null)return"";if(typeof n=="string")return n;if(Array.isArray(n))return n.map(t).join(",");const r=String(n);return r==="0"&&Object.is(Number(n),-0)?"-0":r}e.toString=t})(Ww)),Ww}var tR;function zE(){return tR||(tR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Zae(),n=LE();function r(i){if(Array.isArray(i))return i.map(n.toKey);if(typeof i=="symbol")return[i];i=t.toString(i);const a=[],s=i.length;if(s===0)return a;let u=0,c="",f="",h=!1;for(i.charCodeAt(0)===46&&(a.push(""),u++);u<s;){const p=i[u];f?p==="\\"&&u+1<s?(u++,c+=i[u]):p===f?f="":c+=p:h?p==='"'||p==="'"?f=p:p==="]"?(h=!1,a.push(c),c=""):c+=p:p==="["?(h=!0,c&&(a.push(c),c="")):p==="."?c&&(a.push(c),c=""):c+=p,u++}return c&&a.push(c),a}e.toPath=r})(Yw)),Yw}var nR;function jE(){return nR||(nR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Qae(),n=C6(),r=LE(),i=zE();function a(u,c,f){if(u==null)return f;switch(typeof c){case"string":{if(t.isUnsafeProperty(c))return f;const h=u[c];return h===void 0?n.isDeepKey(c)?a(u,i.toPath(c),f):f:h}case"number":case"symbol":{typeof c=="number"&&(c=r.toKey(c));const h=u[c];return h===void 0?f:h}default:{if(Array.isArray(c))return s(u,c,f);if(Object.is(c==null?void 0:c.valueOf(),-0)?c="-0":c=String(c),t.isUnsafeProperty(c))return f;const h=u[c];return h===void 0?f:h}}}function s(u,c,f){if(c.length===0)return f;let h=u;for(let p=0;p<c.length;p++){if(h==null||t.isUnsafeProperty(c[p]))return f;h=h[c[p]]}return h===void 0?f:h}e.get=a})(Gw)),Gw}var Qw,rR;function Xae(){return rR||(rR=1,Qw=jE().get),Qw}var Jae=Xae();const uf=ti(Jae);var eoe=4;function Ds(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:eoe,n=10**t,r=Math.round(e*n)/n;return Object.is(r,-0)?0:r}function rn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.reduce((i,a,s)=>{var u=n[s-1];return typeof u=="string"?i+u+a:u!==void 0?i+Ds(u)+a:i+a},"")}var Ir=e=>e===0?0:e>0?1:-1,qi=e=>typeof e=="number"&&e!=+e,lu=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,Ne=e=>(typeof e=="number"||e instanceof Number)&&!qi(e),va=e=>Ne(e)||typeof e=="string",toe=0,Bh=e=>{var t=++toe;return"".concat(e||"").concat(t)},Vi=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Ne(t)&&typeof t!="string")return r;var a;if(lu(t)){if(n==null)return r;var s=t.indexOf("%");a=n*parseFloat(t.slice(0,s))/100}else a=+t;return qi(a)&&(a=r),i&&n!=null&&a>n&&(a=n),a},O6=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function Rt(e,t,n){return Ne(e)&&Ne(t)?Ds(e+n*(t-e)):t}function T6(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):uf(r,t))===n)}var Ht=e=>e===null||typeof e>"u",wp=e=>Ht(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Lr(e){return e!=null}function Co(){}var noe=["type","size","sizeType"];function QS(){return QS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QS.apply(null,arguments)}function iR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function aR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iR(Object(n),!0).forEach(function(r){roe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function roe(e,t,n){return(t=ioe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ioe(e){var t=aoe(e,"string");return typeof t=="symbol"?t:t+""}function aoe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ooe(e,t){if(e==null)return{};var n,r,i=soe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function soe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var M6={symbolCircle:IE,symbolCross:_ae,symbolDiamond:Eae,symbolSquare:Aae,symbolStar:Tae,symbolTriangle:Mae,symbolWye:Nae},loe=Math.PI/180,uoe=e=>{var t="symbol".concat(wp(e));return M6[t]||IE},coe=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*loe;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},foe=(e,t)=>{M6["symbol".concat(wp(e))]=t},P6=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,i=ooe(e,noe),a=aR(aR({},i),{},{type:t,size:n,sizeType:r}),s="circle";typeof t=="string"&&(s=t);var u=()=>{var g=uoe(s),v=Rae().type(g).size(coe(n,r,s)),y=v();if(y!==null)return y},{className:c,cx:f,cy:h}=a,p=ur(a);return Ne(f)&&Ne(h)&&Ne(n)?k.createElement("path",QS({},p,{className:kt("recharts-symbols",c),transform:"translate(".concat(f,", ").concat(h,")"),d:u()})):null};P6.registerSymbol=foe;var N6=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,$E=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(k.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(i=>{NE(i)&&typeof n[i]=="function"&&(r[i]=(a=>n[i](n,a)))}),r},doe=(e,t,n)=>r=>(e(t,n,r),null),BE=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];NE(i)&&typeof a=="function"&&(r||(r={}),r[i]=doe(a,t,n))}),r};function oR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hoe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oR(Object(n),!0).forEach(function(r){poe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function poe(e,t,n){return(t=moe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function moe(e){var t=goe(e,"string");return typeof t=="symbol"?t:t+""}function goe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cr(e,t){var n=hoe({},e),r=t,i=Object.keys(t),a=i.reduce((s,u)=>(s[u]===void 0&&r[u]!==void 0&&(s[u]=r[u]),s),n);return a}var Zw={},Xw={},sR;function voe(){return sR||(sR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const i=new Map;for(let a=0;a<n.length;a++){const s=n[a],u=r(s,a,n);i.has(u)||i.set(u,s)}return Array.from(i.values())}e.uniqBy=t})(Xw)),Xw}var Jw={},lR;function yoe(){return lR||(lR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return function(...i){return n.apply(this,i.slice(0,r))}}e.ary=t})(Jw)),Jw}var ex={},uR;function R6(){return uR||(uR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(ex)),ex}var tx={},nx={},rx={},cR;function boe(){return cR||(cR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(rx)),rx}var fR;function D6(){return fR||(fR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=boe();function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n})(nx)),nx}var ix={},dR;function woe(){return dR||(dR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})(ix)),ix}var hR;function xoe(){return hR||(hR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=D6(),n=woe();function r(i){return n.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=r})(tx)),tx}var ax={},ox={},pR;function _oe(){return pR||(pR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=jE();function n(r){return function(i){return t.get(i,r)}}e.property=n})(ox)),ox}var sx={},lx={},ux={},cx={},mR;function I6(){return mR||(mR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t})(cx)),cx}var fx={},gR;function L6(){return gR||(gR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t})(fx)),fx}var dx={},vR;function z6(){return vR||(vR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.isEqualsSameValueZero=t})(dx)),dx}var yR;function Soe(){return yR||(yR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=I6(),n=L6(),r=z6();function i(h,p,g){return typeof g!="function"?i(h,p,()=>{}):a(h,p,function v(y,b,w,_,C,E){const S=g(y,b,w,_,C,E);return S!==void 0?!!S:a(y,b,v,E)},new Map)}function a(h,p,g,v){if(p===h)return!0;switch(typeof p){case"object":return s(h,p,g,v);case"function":return Object.keys(p).length>0?a(h,{...p},g,v):r.isEqualsSameValueZero(h,p);default:return t.isObject(h)?typeof p=="string"?p==="":!0:r.isEqualsSameValueZero(h,p)}}function s(h,p,g,v){if(p==null)return!0;if(Array.isArray(p))return c(h,p,g,v);if(p instanceof Map)return u(h,p,g,v);if(p instanceof Set)return f(h,p,g,v);const y=Object.keys(p);if(h==null||n.isPrimitive(h))return y.length===0;if(y.length===0)return!0;if(v!=null&&v.has(p))return v.get(p)===h;v==null||v.set(p,h);try{for(let b=0;b<y.length;b++){const w=y[b];if(!n.isPrimitive(h)&&!(w in h)||p[w]===void 0&&h[w]!==void 0||p[w]===null&&h[w]!==null||!g(h[w],p[w],w,h,p,v))return!1}return!0}finally{v==null||v.delete(p)}}function u(h,p,g,v){if(p.size===0)return!0;if(!(h instanceof Map))return!1;for(const[y,b]of p.entries()){const w=h.get(y);if(g(w,b,y,h,p,v)===!1)return!1}return!0}function c(h,p,g,v){if(p.length===0)return!0;if(!Array.isArray(h))return!1;const y=new Set;for(let b=0;b<p.length;b++){const w=p[b];let _=!1;for(let C=0;C<h.length;C++){if(y.has(C))continue;const E=h[C];let S=!1;if(g(E,w,b,h,p,v)&&(S=!0),S){y.add(C),_=!0;break}}if(!_)return!1}return!0}function f(h,p,g,v){return p.size===0?!0:h instanceof Set?c([...h],[...p],g,v):!1}e.isMatchWith=i,e.isSetMatch=f})(ux)),ux}var bR;function j6(){return bR||(bR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Soe();function n(r,i){return t.isMatchWith(r,i,()=>{})}e.isMatch=n})(lx)),lx}var hx={},px={},mx={},wR;function Eoe(){return wR||(wR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t})(mx)),mx}var gx={},xR;function UE(){return xR||(xR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t})(gx)),gx}var vx={},_R;function $6(){return _R||(_R=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",i="[object Boolean]",a="[object Arguments]",s="[object Symbol]",u="[object Date]",c="[object Map]",f="[object Set]",h="[object Array]",p="[object Function]",g="[object ArrayBuffer]",v="[object Object]",y="[object Error]",b="[object DataView]",w="[object Uint8Array]",_="[object Uint8ClampedArray]",C="[object Uint16Array]",E="[object Uint32Array]",S="[object BigUint64Array]",T="[object Int8Array]",O="[object Int16Array]",M="[object Int32Array]",P="[object BigInt64Array]",R="[object Float32Array]",z="[object Float64Array]";e.argumentsTag=a,e.arrayBufferTag=g,e.arrayTag=h,e.bigInt64ArrayTag=P,e.bigUint64ArrayTag=S,e.booleanTag=i,e.dataViewTag=b,e.dateTag=u,e.errorTag=y,e.float32ArrayTag=R,e.float64ArrayTag=z,e.functionTag=p,e.int16ArrayTag=O,e.int32ArrayTag=M,e.int8ArrayTag=T,e.mapTag=c,e.numberTag=r,e.objectTag=v,e.regexpTag=t,e.setTag=f,e.stringTag=n,e.symbolTag=s,e.uint16ArrayTag=C,e.uint32ArrayTag=E,e.uint8ArrayTag=w,e.uint8ClampedArrayTag=_})(vx)),vx}var yx={},SR;function Aoe(){return SR||(SR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(yx)),yx}var ER;function B6(){return ER||(ER=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Eoe(),n=UE(),r=$6(),i=L6(),a=Aoe();function s(h,p){return u(h,void 0,h,new Map,p)}function u(h,p,g,v=new Map,y=void 0){const b=y==null?void 0:y(h,p,g,v);if(b!==void 0)return b;if(i.isPrimitive(h))return h;if(v.has(h))return v.get(h);if(Array.isArray(h)){const w=new Array(h.length);v.set(h,w);for(let _=0;_<h.length;_++)w[_]=u(h[_],_,g,v,y);return Object.hasOwn(h,"index")&&(w.index=h.index),Object.hasOwn(h,"input")&&(w.input=h.input),w}if(h instanceof Date)return new Date(h.getTime());if(h instanceof RegExp){const w=new RegExp(h.source,h.flags);return w.lastIndex=h.lastIndex,w}if(h instanceof Map){const w=new Map;v.set(h,w);for(const[_,C]of h)w.set(_,u(C,_,g,v,y));return w}if(h instanceof Set){const w=new Set;v.set(h,w);for(const _ of h)w.add(u(_,void 0,g,v,y));return w}if(typeof Buffer<"u"&&Buffer.isBuffer(h))return h.subarray();if(a.isTypedArray(h)){const w=new(Object.getPrototypeOf(h)).constructor(h.length);v.set(h,w);for(let _=0;_<h.length;_++)w[_]=u(h[_],_,g,v,y);return w}if(h instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&h instanceof SharedArrayBuffer)return h.slice(0);if(h instanceof DataView){const w=new DataView(h.buffer.slice(0),h.byteOffset,h.byteLength);return v.set(h,w),c(w,h,g,v,y),w}if(typeof File<"u"&&h instanceof File){const w=new File([h],h.name,{type:h.type});return v.set(h,w),c(w,h,g,v,y),w}if(typeof Blob<"u"&&h instanceof Blob){const w=new Blob([h],{type:h.type});return v.set(h,w),c(w,h,g,v,y),w}if(h instanceof Error){const w=structuredClone(h);return v.set(h,w),w.message=h.message,w.name=h.name,w.stack=h.stack,w.cause=h.cause,w.constructor=h.constructor,c(w,h,g,v,y),w}if(h instanceof Boolean){const w=new Boolean(h.valueOf());return v.set(h,w),c(w,h,g,v,y),w}if(h instanceof Number){const w=new Number(h.valueOf());return v.set(h,w),c(w,h,g,v,y),w}if(h instanceof String){const w=new String(h.valueOf());return v.set(h,w),c(w,h,g,v,y),w}if(typeof h=="object"&&f(h)){const w=Object.create(Object.getPrototypeOf(h));return v.set(h,w),c(w,h,g,v,y),w}return h}function c(h,p,g=h,v,y){const b=[...Object.keys(p),...t.getSymbols(p)];for(let w=0;w<b.length;w++){const _=b[w],C=Object.getOwnPropertyDescriptor(h,_);(C==null||C.writable)&&(h[_]=u(p[_],_,g,v,y))}}function f(h){switch(n.getTag(h)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=s,e.cloneDeepWithImpl=u,e.copyProperties=c})(px)),px}var AR;function koe(){return AR||(AR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=B6();function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n})(hx)),hx}var kR;function Coe(){return kR||(kR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=j6(),n=koe();function r(i){return i=n.cloneDeep(i),a=>t.isMatch(a,i)}e.matches=r})(sx)),sx}var bx={},wx={},xx={},CR;function Ooe(){return CR||(CR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=B6(),n=UE(),r=$6();function i(a,s){return t.cloneDeepWith(a,(u,c,f,h)=>{const p=s==null?void 0:s(u,c,f,h);if(p!==void 0)return p;if(typeof a=="object"){if(n.getTag(a)===r.objectTag&&typeof a.constructor!="function"){const g={};return h.set(a,g),t.copyProperties(g,a,f,h),g}switch(Object.prototype.toString.call(a)){case r.numberTag:case r.stringTag:case r.booleanTag:{const g=new a.constructor(a==null?void 0:a.valueOf());return t.copyProperties(g,a),g}case r.argumentsTag:{const g={};return t.copyProperties(g,a),g.length=a.length,g[Symbol.iterator]=a[Symbol.iterator],g}default:return}}})}e.cloneDeepWith=i})(xx)),xx}var OR;function Toe(){return OR||(OR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ooe();function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n})(wx)),wx}var _x={},Sx={},TR;function U6(){return TR||(TR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,i=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<i;case"symbol":return!1;case"string":return t.test(r)}}e.isIndex=n})(Sx)),Sx}var Ex={},MR;function Moe(){return MR||(MR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=UE();function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n})(Ex)),Ex}var PR;function Poe(){return PR||(PR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=C6(),n=U6(),r=Moe(),i=zE();function a(s,u){let c;if(Array.isArray(u)?c=u:typeof u=="string"&&t.isDeepKey(u)&&(s==null?void 0:s[u])==null?c=i.toPath(u):c=[u],c.length===0)return!1;let f=s;for(let h=0;h<c.length;h++){const p=c[h];if((f==null||!Object.hasOwn(f,p))&&!((Array.isArray(f)||r.isArguments(f))&&n.isIndex(p)&&p<f.length))return!1;f=f[p]}return!0}e.has=a})(_x)),_x}var NR;function Noe(){return NR||(NR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=j6(),n=LE(),r=Toe(),i=jE(),a=Poe();function s(u,c){switch(typeof u){case"object":{Object.is(u==null?void 0:u.valueOf(),-0)&&(u="-0");break}case"number":{u=n.toKey(u);break}}return c=r.cloneDeep(c),function(f){const h=i.get(f,u);return h===void 0?a.has(f,u):c===void 0?h===void 0:t.isMatch(h,c)}}e.matchesProperty=s})(bx)),bx}var RR;function Roe(){return RR||(RR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=R6(),n=_oe(),r=Coe(),i=Noe();function a(s){if(s==null)return t.identity;switch(typeof s){case"function":return s;case"object":return Array.isArray(s)&&s.length===2?i.matchesProperty(s[0],s[1]):r.matches(s);case"string":case"symbol":case"number":return n.property(s)}}e.iteratee=a})(ax)),ax}var DR;function Doe(){return DR||(DR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=voe(),n=yoe(),r=R6(),i=xoe(),a=Roe();function s(u,c=r.identity){return i.isArrayLikeObject(u)?t.uniqBy(Array.from(u),n.ary(a.iteratee(c),1)):[]}e.uniqBy=s})(Zw)),Zw}var Ax,IR;function Ioe(){return IR||(IR=1,Ax=Doe().uniqBy),Ax}var Loe=Ioe();const LR=ti(Loe);function zoe(e,t,n){return t===!0?LR(e,n):typeof t=="function"?LR(e,t):e}var FE=k.createContext(null),joe=e=>e,Qt=()=>{var e=k.useContext(FE);return e?e.store.dispatch:joe},lv=()=>{},$oe=()=>lv,Boe=(e,t)=>e===t;function Ge(e){var t=k.useContext(FE),n=k.useMemo(()=>t?r=>{if(r!=null)return e(r)}:lv,[t,e]);return Oj.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:$oe,t?t.store.getState:lv,t?t.store.getState:lv,n,Boe)}var kx={},Cx={},Ox={},zR;function Uoe(){return zR||(zR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"?1:r===null?2:r===void 0?3:r!==r?4:0}const n=(r,i,a)=>{if(r!==i){const s=t(r),u=t(i);if(s===u&&s===0){if(r<i)return a==="desc"?1:-1;if(r>i)return a==="desc"?-1:1}return a==="desc"?u-s:s-u}return 0};e.compareValues=n})(Ox)),Ox}var Tx={},Mx={},jR;function F6(){return jR||(jR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t})(Mx)),Mx}var $R;function Foe(){return $R||($R=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=F6(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(a,s){return Array.isArray(a)?!1:typeof a=="number"||typeof a=="boolean"||a==null||t.isSymbol(a)?!0:typeof a=="string"&&(r.test(a)||!n.test(a))||s!=null&&Object.hasOwn(s,a)}e.isKey=i})(Tx)),Tx}var BR;function Hoe(){return BR||(BR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Uoe(),n=Foe(),r=zE();function i(a,s,u,c){if(a==null)return[];u=c?void 0:u,Array.isArray(a)||(a=Object.values(a)),Array.isArray(s)||(s=s==null?[null]:[s]),s.length===0&&(s=[null]),Array.isArray(u)||(u=u==null?[]:[u]),u=u.map(v=>String(v));const f=(v,y)=>{let b=v;for(let w=0;w<y.length&&b!=null;++w)b=b[y[w]];return b},h=(v,y)=>y==null||v==null?y:typeof v=="object"&&"key"in v?Object.hasOwn(y,v.key)?y[v.key]:f(y,v.path):typeof v=="function"?v(y):Array.isArray(v)?f(y,v):typeof y=="object"?y[v]:y,p=s.map(v=>(Array.isArray(v)&&v.length===1&&(v=v[0]),v==null||typeof v=="function"||Array.isArray(v)||n.isKey(v)?v:{key:v,path:r.toPath(v)}));return a.map(v=>({original:v,criteria:p.map(y=>h(y,v))})).slice().sort((v,y)=>{for(let b=0;b<p.length;b++){const w=t.compareValues(v.criteria[b],y.criteria[b],u[b]);if(w!==0)return w}return 0}).map(v=>v.original)}e.orderBy=i})(Cx)),Cx}var Px={},UR;function Goe(){return UR||(UR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=1){const i=[],a=Math.floor(r),s=(u,c)=>{for(let f=0;f<u.length;f++){const h=u[f];Array.isArray(h)&&c<a?s(h,c+1):i.push(h)}};return s(n,0),i}e.flatten=t})(Px)),Px}var Nx={},FR;function H6(){return FR||(FR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=U6(),n=D6(),r=I6(),i=z6();function a(s,u,c){return r.isObject(c)&&(typeof u=="number"&&n.isArrayLike(c)&&t.isIndex(u)&&u<c.length||typeof u=="string"&&u in c)?i.isEqualsSameValueZero(c[u],s):!1}e.isIterateeCall=a})(Nx)),Nx}var HR;function qoe(){return HR||(HR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Hoe(),n=Goe(),r=H6();function i(a,...s){const u=s.length;return u>1&&r.isIterateeCall(a,s[0],s[1])?s=[]:u>2&&r.isIterateeCall(s[0],s[1],s[2])&&(s=[s[0]]),t.orderBy(a,n.flatten(s),["asc"])}e.sortBy=i})(kx)),kx}var Rx,GR;function Voe(){return GR||(GR=1,Rx=qoe().sortBy),Rx}var Koe=Voe();const h0=ti(Koe);var G6=e=>e.legend.settings,Yoe=e=>e.legend.size,Woe=e=>e.legend.payload;le([Woe,G6],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?h0(r,n):r});var Ig=1;function Qoe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=k.useState({height:0,left:0,top:0,width:0}),r=k.useCallback(i=>{if(i!=null){var a=i.getBoundingClientRect(),s={height:a.height,left:a.left,top:a.top,width:a.width};(Math.abs(s.height-t.height)>Ig||Math.abs(s.left-t.left)>Ig||Math.abs(s.top-t.top)>Ig||Math.abs(s.width-t.width)>Ig)&&n({height:s.height,left:s.left,top:s.top,width:s.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,r]}var Zoe={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},q6=an({name:"chartLayout",initialState:Zoe,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var n,r,i,a;e.margin.top=(n=t.payload.top)!==null&&n!==void 0?n:0,e.margin.right=(r=t.payload.right)!==null&&r!==void 0?r:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(a=t.payload.left)!==null&&a!==void 0?a:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:Xoe,setLayout:Joe,setChartSize:ese,setScale:tse}=q6.actions,nse=q6.reducer;function V6(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function at(e){return Number.isFinite(e)}function ya(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function qR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ac(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qR(Object(n),!0).forEach(function(r){rse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rse(e,t,n){return(t=ise(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ise(e){var t=ase(e,"string");return typeof t=="symbol"?t:t+""}function ase(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sn(e,t,n){return Ht(e)||Ht(t)?n:va(t)?uf(e,t,n):typeof t=="function"?t(e):n}var ose=(e,t,n)=>{if(t&&n){var{width:r,height:i}=n,{align:a,verticalAlign:s,layout:u}=t;if((u==="vertical"||u==="horizontal"&&s==="middle")&&a!=="center"&&Ne(e[a]))return Ac(Ac({},e),{},{[a]:e[a]+(r||0)});if((u==="horizontal"||u==="vertical"&&a==="center")&&s!=="middle"&&Ne(e[s]))return Ac(Ac({},e),{},{[s]:e[s]+(i||0)})}return e},Wi=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",K6=(e,t,n,r)=>{if(r)return e.map(u=>u.coordinate);var i,a,s=e.map(u=>(u.coordinate===t&&(i=!0),u.coordinate===n&&(a=!0),u.coordinate));return i||s.push(t),a||s.push(n),s},Y6=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:i,range:a,scale:s,realScaleType:u,isCategorical:c,categoricalDomain:f,tickCount:h,ticks:p,niceTicks:g,axisType:v}=e;if(!s)return null;var y=u==="scaleBand"&&s.bandwidth?s.bandwidth()/2:2,b=i==="category"&&s.bandwidth?s.bandwidth()/y:0;if(b=v==="angleAxis"&&a&&a.length>=2?Ir(a[0]-a[1])*2*b:b,p||g){var w=(p||g||[]).map((_,C)=>{var E=r?r.indexOf(_):_,S=s.map(E);return at(S)?{coordinate:S+b,value:_,offset:b,index:C}:null}).filter(Lr);return w}return c&&f?f.map((_,C)=>{var E=s.map(_);return at(E)?{coordinate:E+b,value:_,index:C,offset:b}:null}).filter(Lr):s.ticks&&h!=null?s.ticks(h).map((_,C)=>{var E=s.map(_);return at(E)?{coordinate:E+b,value:_,index:C,offset:b}:null}).filter(Lr):s.domain().map((_,C)=>{var E=s.map(_);return at(E)?{coordinate:E+b,value:r?r[_]:_,index:C,offset:b}:null}).filter(Lr)},sse=(e,t)=>{if(!t||t.length!==2||!Ne(t[0])||!Ne(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!Ne(e[0])||e[0]<n)&&(i[0]=n),(!Ne(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},lse=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var i=0;i<r;++i)for(var a=0,s=0,u=0;u<n;++u){var c=e[u],f=c==null?void 0:c[i];if(f!=null){var h=f[1],p=f[0],g=qi(h)?p:h;g>=0?(f[0]=a,a+=g,f[1]=a):(f[0]=s,s+=g,f[1]=s)}}}},use=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var i=0;i<r;++i)for(var a=0,s=0;s<n;++s){var u=e[s],c=u==null?void 0:u[i];if(c!=null){var f=qi(c[1])?c[0]:c[1];f>=0?(c[0]=a,a+=f,c[1]=a):(c[0]=0,c[1]=0)}}}},cse={sign:lse,expand:Kae,none:su,silhouette:Yae,wiggle:Wae,positive:use},fse=(e,t,n)=>{var r,i=(r=cse[n])!==null&&r!==void 0?r:su,a=Vae().keys(t).value((u,c)=>Number(sn(u,c,0))).order(WS).offset(i),s=a(e);return s.forEach((u,c)=>{u.forEach((f,h)=>{var p=sn(e[h],t[c],0);Array.isArray(p)&&p.length===2&&Ne(p[0])&&Ne(p[1])&&(f[0]=p[0],f[1]=p[1])})}),s};function W6(e){return e==null?void 0:String(e)}function ey(e){var{axis:t,ticks:n,bandSize:r,entry:i,index:a,dataKey:s}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Ht(i[t.dataKey])){var u=T6(n,"value",i[t.dataKey]);if(u)return u.coordinate+r/2}return n!=null&&n[a]?n[a].coordinate+r/2:null}var c=sn(i,Ht(s)?t.dataKey:s),f=t.scale.map(c);return Ne(f)?f:null}var VR=e=>{var{axis:t,ticks:n,offset:r,bandSize:i,entry:a,index:s}=e;if(t.type==="category")return n[s]?n[s].coordinate+r:null;var u=sn(a,t.dataKey,t.scale.domain()[s]);if(Ht(u))return null;var c=t.scale.map(u);return Ne(c)?c-i/2+r:null},dse=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type==="number"){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},hse=e=>{var t=e.flat(2).filter(Ne);return[Math.min(...t),Math.max(...t)]},pse=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],mse=(e,t,n)=>{if(e!=null)return pse(Object.keys(e).reduce((r,i)=>{var a=e[i];if(!a)return r;var{stackedData:s}=a,u=s.reduce((c,f)=>{var h=V6(f,t,n),p=hse(h);return!at(p[0])||!at(p[1])?c:[Math.min(c[0],p[0]),Math.max(c[1],p[1])]},[1/0,-1/0]);return[Math.min(u[0],r[0]),Math.max(u[1],r[1])]},[1/0,-1/0]))},KR=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,YR=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Gs=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=h0(t,h=>h.coordinate),a=1/0,s=1,u=i.length;s<u;s++){var c=i[s],f=i[s-1];a=Math.min(((c==null?void 0:c.coordinate)||0)-((f==null?void 0:f.coordinate)||0),a)}return a===1/0?0:a}return n?void 0:0};function WR(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:i,name:a}=e;return Ac(Ac({},t),{},{dataKey:n,payload:r,value:i,name:a})}function xf(e,t){if(e)return String(e);if(typeof t=="string")return t}var gse=(e,t)=>{if(t==="horizontal")return e.relativeX;if(t==="vertical")return e.relativeY},vse=(e,t)=>t==="centric"?e.angle:e.radius,Oo=e=>e.layout.width,To=e=>e.layout.height,yse=e=>e.layout.scale,Q6=e=>e.layout.margin,p0=le(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),m0=le(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),bse="data-recharts-item-index",wse="data-recharts-item-id",xp=60;function QR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Lg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QR(Object(n),!0).forEach(function(r){xse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xse(e,t,n){return(t=_se(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _se(e){var t=Sse(e,"string");return typeof t=="symbol"?t:t+""}function Sse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ese=e=>e.brush.height;function Ase(e){var t=m0(e);return t.reduce((n,r)=>{if(r.orientation==="left"&&!r.mirror&&!r.hide){var i=typeof r.width=="number"?r.width:xp;return n+i}return n},0)}function kse(e){var t=m0(e);return t.reduce((n,r)=>{if(r.orientation==="right"&&!r.mirror&&!r.hide){var i=typeof r.width=="number"?r.width:xp;return n+i}return n},0)}function Cse(e){var t=p0(e);return t.reduce((n,r)=>r.orientation==="top"&&!r.mirror&&!r.hide?n+r.height:n,0)}function Ose(e){var t=p0(e);return t.reduce((n,r)=>r.orientation==="bottom"&&!r.mirror&&!r.hide?n+r.height:n,0)}var jn=le([Oo,To,Q6,Ese,Ase,kse,Cse,Ose,G6,Yoe],(e,t,n,r,i,a,s,u,c,f)=>{var h={left:(n.left||0)+i,right:(n.right||0)+a},p={top:(n.top||0)+s,bottom:(n.bottom||0)+u},g=Lg(Lg({},p),h),v=g.bottom;g.bottom+=r,g=ose(g,c,f);var y=e-g.left-g.right,b=t-g.top-g.bottom;return Lg(Lg({brushBottom:v},g),{},{width:Math.max(y,0),height:Math.max(b,0)})}),Tse=le(jn,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),HE=le(Oo,To,(e,t)=>({x:0,y:0,width:e,height:t})),Mse=k.createContext(null),$n=()=>k.useContext(Mse)!=null,g0=e=>e.brush,v0=le([g0,jn,Q6],(e,t,n)=>({height:e.height,x:Ne(e.x)?e.x:t.left,y:Ne(e.y)?e.y:t.top+t.height+t.brushBottom-((n==null?void 0:n.bottom)||0),width:Ne(e.width)?e.width:t.width})),Dx={},Ix={},Lx={},ZR;function Pse(){return ZR||(ZR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r,{signal:i,edges:a}={}){let s,u=null;const c=a!=null&&a.includes("leading"),f=a==null||a.includes("trailing"),h=()=>{u!==null&&(n.apply(s,u),s=void 0,u=null)},p=()=>{f&&h(),b()};let g=null;const v=()=>{g!=null&&clearTimeout(g),g=setTimeout(()=>{g=null,p()},r)},y=()=>{g!==null&&(clearTimeout(g),g=null)},b=()=>{y(),s=void 0,u=null},w=()=>{h()},_=function(...C){if(i!=null&&i.aborted)return;s=this,u=C;const E=g==null;v(),c&&E&&h()};return _.schedule=v,_.cancel=b,_.flush=w,i==null||i.addEventListener("abort",b,{once:!0}),_}e.debounce=t})(Lx)),Lx}var XR;function Nse(){return XR||(XR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Pse();function n(r,i=0,a={}){typeof a!="object"&&(a={});const{leading:s=!1,trailing:u=!0,maxWait:c}=a,f=Array(2);s&&(f[0]="leading"),u&&(f[1]="trailing");let h,p=null;const g=t.debounce(function(...b){h=r.apply(this,b),p=null},i,{edges:f}),v=function(...b){return c!=null&&(p===null&&(p=Date.now()),Date.now()-p>=c)?(h=r.apply(this,b),p=Date.now(),g.cancel(),g.schedule(),h):(g.apply(this,b),h)},y=()=>(g.flush(),h);return v.cancel=g.cancel,v.flush=y,v}e.debounce=n})(Ix)),Ix}var JR;function Rse(){return JR||(JR=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Nse();function n(r,i=0,a={}){const{leading:s=!0,trailing:u=!0}=a;return t.debounce(r,i,{leading:s,maxWait:i,trailing:u})}e.throttle=n})(Dx)),Dx}var zx,eD;function Dse(){return eD||(eD=1,zx=Rse().throttle),zx}var Ise=Dse();const Lse=ti(Ise);var ty=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];if(typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=0;console.warn(n.replace(/%s/g,()=>i[s++]))}},ca={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},Z6=(e,t,n)=>{var{width:r=ca.width,height:i=ca.height,aspect:a,maxHeight:s}=n,u=lu(r)?e:Number(r),c=lu(i)?t:Number(i);return a&&a>0&&(u?c=u/a:c&&(u=c*a),s&&c!=null&&c>s&&(c=s)),{calculatedWidth:u,calculatedHeight:c}},zse={width:0,height:0,overflow:"visible"},jse={width:0,overflowX:"visible"},$se={height:0,overflowY:"visible"},Bse={},Use=e=>{var{width:t,height:n}=e,r=lu(t),i=lu(n);return r&&i?zse:r?jse:i?$se:Bse};function Fse(e){var{width:t,height:n,aspect:r}=e,i=t,a=n;return i===void 0&&a===void 0?(i=ca.width,a=ca.height):i===void 0?i=r&&r>0?void 0:ca.width:a===void 0&&(a=r&&r>0?void 0:ca.height),{width:i,height:a}}function ZS(){return ZS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZS.apply(null,arguments)}function tD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tD(Object(n),!0).forEach(function(r){Hse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hse(e,t,n){return(t=Gse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gse(e){var t=qse(e,"string");return typeof t=="symbol"?t:t+""}function qse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var X6=k.createContext(ca.initialDimension);function Vse(e){return ya(e.width)&&ya(e.height)}function J6(e){var{children:t,width:n,height:r}=e,i=k.useMemo(()=>({width:n,height:r}),[n,r]);return Vse(i)?k.createElement(X6.Provider,{value:i},t):null}var GE=()=>k.useContext(X6),Kse=k.forwardRef((e,t)=>{var{aspect:n,initialDimension:r=ca.initialDimension,width:i,height:a,minWidth:s=ca.minWidth,minHeight:u,maxHeight:c,children:f,debounce:h=ca.debounce,id:p,className:g,onResize:v,style:y={}}=e,b=k.useRef(null),w=k.useRef();w.current=v,k.useImperativeHandle(t,()=>b.current);var[_,C]=k.useState({containerWidth:r.width,containerHeight:r.height}),E=k.useCallback((P,R)=>{C(z=>{var D=Math.round(P),N=Math.round(R);return z.containerWidth===D&&z.containerHeight===N?z:{containerWidth:D,containerHeight:N}})},[]);k.useEffect(()=>{if(b.current==null||typeof ResizeObserver>"u")return Co;var P=N=>{var $,I=N[0];if(I!=null){var{width:U,height:j}=I.contentRect;E(U,j),($=w.current)===null||$===void 0||$.call(w,U,j)}};h>0&&(P=Lse(P,h,{trailing:!0,leading:!1}));var R=new ResizeObserver(P),{width:z,height:D}=b.current.getBoundingClientRect();return E(z,D),R.observe(b.current),()=>{R.disconnect()}},[E,h]);var{containerWidth:S,containerHeight:T}=_;ty(!n||n>0,"The aspect(%s) must be greater than zero.",n);var{calculatedWidth:O,calculatedHeight:M}=Z6(S,T,{width:i,height:a,aspect:n,maxHeight:c});return ty(O!=null&&O>0||M!=null&&M>0,`The width(%s) and height(%s) of chart should be greater than 0,
886
+ please check the style of container, or the props width(%s) and height(%s),
887
+ or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
888
+ height and width.`,O,M,i,a,s,u,n),k.createElement("div",{id:p?"".concat(p):void 0,className:kt("recharts-responsive-container",g),style:nD(nD({},y),{},{width:i,height:a,minWidth:s,minHeight:u,maxHeight:c}),ref:b},k.createElement("div",{style:Use({width:i,height:a})},k.createElement(J6,{width:O,height:M},f)))}),Lke=k.forwardRef((e,t)=>{var n=GE();if(ya(n.width)&&ya(n.height))return e.children;var{width:r,height:i}=Fse({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:s}=Z6(void 0,void 0,{width:r,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return Ne(a)&&Ne(s)?k.createElement(J6,{width:a,height:s},e.children):k.createElement(Kse,ZS({},e,{width:r,height:i,ref:t}))});function qE(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var y0=()=>{var e,t=$n(),n=Ge(Tse),r=Ge(v0),i=(e=Ge(g0))===null||e===void 0?void 0:e.padding;return!t||!r||!i?n:{width:r.width-i.left-i.right,height:r.height-i.top-i.bottom,x:i.left,y:i.top}},Yse={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},e8=()=>{var e;return(e=Ge(jn))!==null&&e!==void 0?e:Yse},t8=()=>Ge(Oo),n8=()=>Ge(To),_t=e=>e.layout.layoutType,Ks=()=>Ge(_t),VE=()=>{var e=Ks();if(e==="horizontal"||e==="vertical")return e},r8=e=>{var t=e.layout.layoutType;if(t==="centric"||t==="radial")return t},Wse=()=>{var e=Ks();return e!==void 0},_p=e=>{var t=Qt(),n=$n(),{width:r,height:i}=e,a=GE(),s=r,u=i;return a&&(s=a.width>0?a.width:r,u=a.height>0?a.height:i),k.useEffect(()=>{!n&&ya(s)&&ya(u)&&t(ese({width:s,height:u}))},[t,n,s,u]),null},i8=Symbol.for("immer-nothing"),rD=Symbol.for("immer-draftable"),ei=Symbol.for("immer-state");function $i(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Uh=Object.getPrototypeOf;function cf(e){return!!e&&!!e[ei]}function uu(e){var t;return e?a8(e)||Array.isArray(e)||!!e[rD]||!!((t=e.constructor)!=null&&t[rD])||Sp(e)||w0(e):!1}var Qse=Object.prototype.constructor.toString(),iD=new WeakMap;function a8(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let r=iD.get(n);return r===void 0&&(r=Function.toString.call(n),iD.set(n,r)),r===Qse}function ny(e,t,n=!0){b0(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function b0(e){const t=e[ei];return t?t.type_:Array.isArray(e)?1:Sp(e)?2:w0(e)?3:0}function XS(e,t){return b0(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function o8(e,t,n){const r=b0(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Zse(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Sp(e){return e instanceof Map}function w0(e){return e instanceof Set}function Cl(e){return e.copy_||e.base_}function JS(e,t){if(Sp(e))return new Map(e);if(w0(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=a8(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[ei];let i=Reflect.ownKeys(r);for(let a=0;a<i.length;a++){const s=i[a],u=r[s];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(r[s]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[s]})}return Object.create(Uh(e),r)}else{const r=Uh(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function KE(e,t=!1){return x0(e)||cf(e)||!uu(e)||(b0(e)>1&&Object.defineProperties(e,{set:zg,add:zg,clear:zg,delete:zg}),Object.freeze(e),t&&Object.values(e).forEach(n=>KE(n,!0))),e}function Xse(){$i(2)}var zg={value:Xse};function x0(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var Jse={};function cu(e){const t=Jse[e];return t||$i(0,e),t}var Fh;function s8(){return Fh}function ele(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function aD(e,t){t&&(cu("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function e2(e){t2(e),e.drafts_.forEach(tle),e.drafts_=null}function t2(e){e===Fh&&(Fh=e.parent_)}function oD(e){return Fh=ele(Fh,e)}function tle(e){const t=e[ei];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function sD(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[ei].modified_&&(e2(t),$i(4)),uu(e)&&(e=ry(t,e),t.parent_||iy(t,e)),t.patches_&&cu("Patches").generateReplacementPatches_(n[ei].base_,e,t.patches_,t.inversePatches_)):e=ry(t,n,[]),e2(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==i8?e:void 0}function ry(e,t,n){if(x0(t))return t;const r=e.immer_.shouldUseStrictIteration(),i=t[ei];if(!i)return ny(t,(a,s)=>lD(e,i,t,a,s,n),r),t;if(i.scope_!==e)return t;if(!i.modified_)return iy(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const a=i.copy_;let s=a,u=!1;i.type_===3&&(s=new Set(a),a.clear(),u=!0),ny(s,(c,f)=>lD(e,i,a,c,f,n,u),r),iy(e,a,!1),n&&e.patches_&&cu("Patches").generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function lD(e,t,n,r,i,a,s){if(i==null||typeof i!="object"&&!s)return;const u=x0(i);if(!(u&&!s)){if(cf(i)){const c=a&&t&&t.type_!==3&&!XS(t.assigned_,r)?a.concat(r):void 0,f=ry(e,i,c);if(o8(n,r,f),cf(f))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(uu(i)&&!u){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===i&&u)return;ry(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(Sp(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&iy(e,i)}}}function iy(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&KE(t,n)}function nle(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:s8(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=YE;n&&(i=[r],a=Hh);const{revoke:s,proxy:u}=Proxy.revocable(i,a);return r.draft_=u,r.revoke_=s,u}var YE={get(e,t){if(t===ei)return e;const n=Cl(e);if(!XS(n,t))return rle(e,n,t);const r=n[t];return e.finalized_||!uu(r)?r:r===jx(e.base_,t)?($x(e),e.copy_[t]=r2(r,e)):r},has(e,t){return t in Cl(e)},ownKeys(e){return Reflect.ownKeys(Cl(e))},set(e,t,n){const r=l8(Cl(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=jx(Cl(e),t),a=i==null?void 0:i[ei];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Zse(n,i)&&(n!==void 0||XS(e.base_,t)))return!0;$x(e),n2(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return jx(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,$x(e),n2(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Cl(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){$i(11)},getPrototypeOf(e){return Uh(e.base_)},setPrototypeOf(){$i(12)}},Hh={};ny(YE,(e,t)=>{Hh[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Hh.deleteProperty=function(e,t){return Hh.set.call(this,e,t,void 0)};Hh.set=function(e,t,n){return YE.set.call(this,e[0],t,n,e[0])};function jx(e,t){const n=e[ei];return(n?Cl(n):e)[t]}function rle(e,t,n){var i;const r=l8(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function l8(e,t){if(!(t in e))return;let n=Uh(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Uh(n)}}function n2(e){e.modified_||(e.modified_=!0,e.parent_&&n2(e.parent_))}function $x(e){e.copy_||(e.copy_=JS(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var ile=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const s=this;return function(c=a,...f){return s.produce(c,h=>n.call(this,h,...f))}}typeof n!="function"&&$i(6),r!==void 0&&typeof r!="function"&&$i(7);let i;if(uu(t)){const a=oD(this),s=r2(t,void 0);let u=!0;try{i=n(s),u=!1}finally{u?e2(a):t2(a)}return aD(a,r),sD(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===i8&&(i=void 0),this.autoFreeze_&&KE(i,!0),r){const a=[],s=[];cu("Patches").generateReplacementPatches_(t,i,a,s),r(a,s)}return i}else $i(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...u)=>this.produceWithPatches(s,c=>t(c,...u));let r,i;return[this.produce(t,n,(s,u)=>{r=s,i=u}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){uu(e)||$i(8),cf(e)&&(e=ale(e));const t=oD(this),n=r2(e,void 0);return n[ei].isManual_=!0,t2(t),n}finishDraft(e,t){const n=e&&e[ei];(!n||!n.isManual_)&&$i(9);const{scope_:r}=n;return aD(r,t),sD(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=cu("Patches").applyPatches_;return cf(e)?r(e,t):this.produce(e,i=>r(i,t))}};function r2(e,t){const n=Sp(e)?cu("MapSet").proxyMap_(e,t):w0(e)?cu("MapSet").proxySet_(e,t):nle(e,t);return(t?t.scope_:s8()).drafts_.push(n),n}function ale(e){return cf(e)||$i(10,e),u8(e)}function u8(e){if(!uu(e)||x0(e))return e;const t=e[ei];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=JS(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=JS(e,!0);return ny(n,(i,a)=>{o8(n,i,u8(a))},r),t&&(t.finalized_=!1),n}var ole=new ile;ole.produce;var sle={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},c8=an({name:"legend",initialState:sle,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:Et()},replaceLegendPayload:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Yr(e).payload.indexOf(n);i>-1&&(e.payload[i]=r)},prepare:Et()},removeLegendPayload:{reducer(e,t){var n=Yr(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)},prepare:Et()}}}),{setLegendSize:zke,setLegendSettings:jke,addLegendPayload:lle,replaceLegendPayload:ule,removeLegendPayload:cle}=c8.actions,fle=c8.reducer,dle=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function hle(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function _f(e,t){var n=new Set([...Object.keys(e),...Object.keys(t)]);for(var r of n)if(dle.has(r)){if(e[r]==null&&t[r]==null)continue;if(!Oc(e[r],t[r]))return!1}else if(!hle(e[r],t[r]))return!1;return!0}function i2(){return i2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i2.apply(null,arguments)}function uD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uD(Object(n),!0).forEach(function(r){ple(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ple(e,t,n){return(t=mle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mle(e){var t=gle(e,"string");return typeof t=="symbol"?t:t+""}function gle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vle(e){return Array.isArray(e)&&va(e[0])&&va(e[1])?e.join(" ~ "):e}var uc={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1};function yle(e,t){return t==null?e:h0(e,t)}var ble=e=>{var{separator:t=uc.separator,contentStyle:n,itemStyle:r,labelStyle:i=uc.labelStyle,payload:a,formatter:s,itemSorter:u,wrapperClassName:c,labelClassName:f,label:h,labelFormatter:p,accessibilityLayer:g=uc.accessibilityLayer}=e,v=()=>{if(a&&a.length){var T={padding:0,margin:0},O=yle(a,u),M=O.map((P,R)=>{if(P.type==="none")return null;var z=P.formatter||s||vle,{value:D,name:N}=P,$=D,I=N;if(z){var U=z(D,N,P,R,a);if(Array.isArray(U))[$,I]=U;else if(U!=null)$=U;else return null}var j=zd(zd({},uc.itemStyle),{},{color:P.color||uc.itemStyle.color},r);return k.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(R),style:j},va(I)?k.createElement("span",{className:"recharts-tooltip-item-name"},I):null,va(I)?k.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,k.createElement("span",{className:"recharts-tooltip-item-value"},$),k.createElement("span",{className:"recharts-tooltip-item-unit"},P.unit||""))});return k.createElement("ul",{className:"recharts-tooltip-item-list",style:T},M)}return null},y=zd(zd({},uc.contentStyle),n),b=zd({margin:0},i),w=!Ht(h),_=w?h:"",C=kt("recharts-default-tooltip",c),E=kt("recharts-tooltip-label",f);w&&p&&a!==void 0&&a!==null&&(_=p(h,a));var S=g?{role:"status","aria-live":"assertive"}:{};return k.createElement("div",i2({className:C,style:y},S),k.createElement("p",{className:E,style:b},k.isValidElement(_)?_:"".concat(_)),v())},jd="recharts-tooltip-wrapper",wle={visibility:"hidden"};function xle(e){var{coordinate:t,translateX:n,translateY:r}=e;return kt(jd,{["".concat(jd,"-right")]:Ne(n)&&t&&Ne(t.x)&&n>=t.x,["".concat(jd,"-left")]:Ne(n)&&t&&Ne(t.x)&&n<t.x,["".concat(jd,"-bottom")]:Ne(r)&&t&&Ne(t.y)&&r>=t.y,["".concat(jd,"-top")]:Ne(r)&&t&&Ne(t.y)&&r<t.y})}function cD(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offset:i,position:a,reverseDirection:s,tooltipDimension:u,viewBox:c,viewBoxDimension:f}=e;if(a&&Ne(a[r]))return a[r];var h=n[r]-u-(i>0?i:0),p=n[r]+i;if(t[r])return s[r]?h:p;var g=c[r];if(g==null)return 0;if(s[r]){var v=h,y=g;return v<y?Math.max(p,g):Math.max(h,g)}if(f==null)return 0;var b=p+u,w=g+f;return b>w?Math.max(h,g):Math.max(p,g)}function _le(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function Sle(e){var{allowEscapeViewBox:t,coordinate:n,offsetTop:r,offsetLeft:i,position:a,reverseDirection:s,tooltipBox:u,useTranslate3d:c,viewBox:f}=e,h,p,g;return u.height>0&&u.width>0&&n?(p=cD({allowEscapeViewBox:t,coordinate:n,key:"x",offset:i,position:a,reverseDirection:s,tooltipDimension:u.width,viewBox:f,viewBoxDimension:f.width}),g=cD({allowEscapeViewBox:t,coordinate:n,key:"y",offset:r,position:a,reverseDirection:s,tooltipDimension:u.height,viewBox:f,viewBoxDimension:f.height}),h=_le({translateX:p,translateY:g,useTranslate3d:c})):h=wle,{cssProperties:h,cssClasses:xle({translateX:p,translateY:g,coordinate:n})}}var Ele=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Ep={isSsr:Ele()};function f8(){var[e,t]=k.useState(()=>Ep.isSsr||!window.matchMedia?!1:window.matchMedia("(prefers-reduced-motion: reduce)").matches);return k.useEffect(()=>{if(window.matchMedia){var n=window.matchMedia("(prefers-reduced-motion: reduce)"),r=()=>{t(n.matches)};return n.addEventListener("change",r),()=>{n.removeEventListener("change",r)}}},[]),e}function fD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fD(Object(n),!0).forEach(function(r){Ale(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ale(e,t,n){return(t=kle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kle(e){var t=Cle(e,"string");return typeof t=="symbol"?t:t+""}function Cle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ole(e){if(!(e.prefersReducedMotion&&e.isAnimationActive==="auto")&&e.isAnimationActive&&e.active)return"transform ".concat(e.animationDuration,"ms ").concat(e.animationEasing)}function Tle(e){var t,n,r,i,a,s,u=f8(),[c,f]=k.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));k.useEffect(()=>{var y=b=>{if(b.key==="Escape"){var w,_,C,E;f({dismissed:!0,dismissedAtCoordinate:{x:(w=(_=e.coordinate)===null||_===void 0?void 0:_.x)!==null&&w!==void 0?w:0,y:(C=(E=e.coordinate)===null||E===void 0?void 0:E.y)!==null&&C!==void 0?C:0}})}};return document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}},[(t=e.coordinate)===null||t===void 0?void 0:t.x,(n=e.coordinate)===null||n===void 0?void 0:n.y]),c.dismissed&&(((r=(i=e.coordinate)===null||i===void 0?void 0:i.x)!==null&&r!==void 0?r:0)!==c.dismissedAtCoordinate.x||((a=(s=e.coordinate)===null||s===void 0?void 0:s.y)!==null&&a!==void 0?a:0)!==c.dismissedAtCoordinate.y)&&f(cc(cc({},c),{},{dismissed:!1}));var{cssClasses:h,cssProperties:p}=Sle({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset=="number"?e.offset:e.offset.x,offsetTop:typeof e.offset=="number"?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),g=e.hasPortalFromProps?{}:cc(cc({transition:Ole({prefersReducedMotion:u,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},p),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),v=cc(cc({},g),{},{visibility:!c.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return k.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:h,style:v,ref:e.innerRef},e.children)}var Mle=k.memo(Tle),d8=()=>{var e;return(e=Ge(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function a2(){return a2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a2.apply(null,arguments)}function dD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dD(Object(n),!0).forEach(function(r){Ple(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ple(e,t,n){return(t=Nle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nle(e){var t=Rle(e,"string");return typeof t=="symbol"?t:t+""}function Rle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pD={curveBasisClosed:Iae,curveBasisOpen:Lae,curveBasis:Dae,curveBumpX:wae,curveBumpY:xae,curveLinearClosed:zae,curveLinear:f0,curveMonotoneX:jae,curveMonotoneY:$ae,curveNatural:Bae,curveStep:Uae,curveStepAfter:Hae,curveStepBefore:Fae},ay=e=>at(e.x)&&at(e.y),mD=e=>e.base!=null&&ay(e.base)&&ay(e),$d=e=>e.x,Bd=e=>e.y,Dle=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(wp(e));if((n==="curveMonotone"||n==="curveBump")&&t){var r=pD["".concat(n).concat(t==="vertical"?"Y":"X")];if(r)return r}return pD[n]||f0},gD={connectNulls:!1,type:"linear"},Ile=e=>{var{type:t=gD.type,points:n=[],baseLine:r,layout:i,connectNulls:a=gD.connectNulls}=e,s=Dle(t,i),u=a?n.filter(ay):n;if(Array.isArray(r)){var c,f=n.map((y,b)=>hD(hD({},y),{},{base:r[b]}));i==="vertical"?c=Dg().y(Bd).x1($d).x0(y=>y.base.x):c=Dg().x($d).y1(Bd).y0(y=>y.base.y);var h=c.defined(mD).curve(s),p=a?f.filter(mD):f;return h(p)}var g;i==="vertical"&&Ne(r)?g=Dg().y(Bd).x1($d).x0(r):Ne(r)?g=Dg().x($d).y1(Bd).y0(r):g=g6().x($d).y(Bd);var v=g.defined(ay).curve(s);return v(u)},mh=e=>{var{className:t,points:n,path:r,pathRef:i}=e,a=Ks();if((!n||!n.length)&&!r)return null;var s={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||a,connectNulls:e.connectNulls},u=n&&n.length?Ile(s):r;return k.createElement("path",a2({},Jr(e),$E(e),{className:kt("recharts-curve",t),d:u===null?void 0:u,ref:i}))},Lle=["x","y","top","left","width","height","className"];function o2(){return o2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o2.apply(null,arguments)}function vD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zle(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vD(Object(n),!0).forEach(function(r){jle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jle(e,t,n){return(t=$le(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $le(e){var t=Ble(e,"string");return typeof t=="symbol"?t:t+""}function Ble(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ule(e,t){if(e==null)return{};var n,r,i=Fle(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Fle(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Hle=(e,t,n,r,i,a)=>"M".concat(e,",").concat(i,"v").concat(r,"M").concat(a,",").concat(t,"h").concat(n),Gle=e=>{var{x:t=0,y:n=0,top:r=0,left:i=0,width:a=0,height:s=0,className:u}=e,c=Ule(e,Lle),f=zle({x:t,y:n,top:r,left:i,width:a,height:s},c);return!Ne(t)||!Ne(n)||!Ne(a)||!Ne(s)||!Ne(r)||!Ne(i)?null:k.createElement("path",o2({},ur(f),{className:kt("recharts-cross",u),d:Hle(t,n,a,s,r,i)}))};function qle(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function yD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yD(Object(n),!0).forEach(function(r){Vle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vle(e,t,n){return(t=Kle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kle(e){var t=Yle(e,"string");return typeof t=="symbol"?t:t+""}function Yle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wle=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),h8=(e,t,n)=>e.map(r=>"".concat(Wle(r)," ").concat(t,"ms ").concat(n)).join(","),Qle=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((n,r)=>n.filter(i=>r.includes(i))),Gh=(e,t)=>Object.keys(t).reduce((n,r)=>bD(bD({},n),{},{[r]:e(r,t[r])}),{});function wD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Tn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wD(Object(n),!0).forEach(function(r){Zle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zle(e,t,n){return(t=Xle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xle(e){var t=Jle(e,"string");return typeof t=="symbol"?t:t+""}function Jle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oy=(e,t,n)=>e+(t-e)*n,s2=e=>{var{from:t,to:n}=e;return t!==n},p8=(e,t,n)=>{var r=Gh((i,a)=>{if(s2(a)){var[s,u]=e(a.from,a.to,a.velocity);return Tn(Tn({},a),{},{from:s,velocity:u})}return a},t);return n<1?Gh((i,a)=>s2(a)&&r[i]!=null?Tn(Tn({},a),{},{velocity:oy(a.velocity,r[i].velocity,n),from:oy(a.from,r[i].from,n)}):a,t):p8(e,r,n-1)};function eue(e,t,n,r,i,a){var s,u=r.reduce((g,v)=>Tn(Tn({},g),{},{[v]:{from:e[v],velocity:0,to:t[v]}}),{}),c=()=>Gh((g,v)=>v.from,u),f=()=>!Object.values(u).filter(s2).length,h=null,p=g=>{s||(s=g);var v=g-s,y=v/n.dt;u=p8(n,u,y),i(Tn(Tn(Tn({},e),t),c())),s=g,f()||(h=a.setTimeout(p))};return()=>(h=a.setTimeout(p),()=>{var g;(g=h)===null||g===void 0||g()})}function tue(e,t,n,r,i,a,s){var u=null,c=i.reduce((p,g)=>{var v=e[g],y=t[g];return v==null||y==null?p:Tn(Tn({},p),{},{[g]:[v,y]})},{}),f,h=p=>{f||(f=p);var g=(p-f)/r,v=Gh((b,w)=>oy(...w,n(g)),c);if(a(Tn(Tn(Tn({},e),t),v)),g<1)u=s.setTimeout(h);else{var y=Gh((b,w)=>oy(...w,n(1)),c);a(Tn(Tn(Tn({},e),t),y))}};return()=>(u=s.setTimeout(h),()=>{var p;(p=u)===null||p===void 0||p()})}const nue=(e,t,n,r,i,a)=>{var s=Qle(e,t);return n==null?()=>(i(Tn(Tn({},e),t)),()=>{}):n.isStepper===!0?eue(e,t,n,s,i,a):tue(e,t,n,r,s,i,a)};var sy=1e-4,m8=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],g8=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),xD=(e,t)=>n=>{var r=m8(e,t);return g8(r,n)},rue=(e,t)=>n=>{var r=m8(e,t),i=[...r.map((a,s)=>a*s).slice(1),0];return g8(i,n)},iue=e=>{var t,n=e.split("(");if(n.length!==2||n[0]!=="cubic-bezier")return null;var r=(t=n[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(r==null||r.length!==4)return null;var i=r.map(a=>parseFloat(a));return[i[0],i[1],i[2],i[3]]},aue=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n.length===1)switch(n[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var i=iue(n[0]);if(i)return i}}return n.length===4?n:[0,0,1,1]},oue=(e,t,n,r)=>{var i=xD(e,n),a=xD(t,r),s=rue(e,n),u=f=>f>1?1:f<0?0:f,c=f=>{for(var h=f>1?1:f,p=h,g=0;g<8;++g){var v=i(p)-h,y=s(p);if(Math.abs(v-h)<sy||y<sy)return a(p);p=u(p-v/y)}return a(p)};return c.isStepper=!1,c},_D=function(){return oue(...aue(...arguments))},sue=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:n=100,damping:r=8,dt:i=17}=t,a=(s,u,c)=>{var f=-(s-u)*n,h=c*r,p=c+(f-h)*i/1e3,g=c*i/1e3+s;return Math.abs(g-u)<sy&&Math.abs(p)<sy?[u,0]:[g,p]};return a.isStepper=!0,a.dt=i,a},lue=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return _D(e);case"spring":return sue();default:if(e.split("(")[0]==="cubic-bezier")return _D(e)}return typeof e=="function"?e:null};function uue(e){var t,n=()=>null,r=!1,i=null,a=s=>{if(!r){if(Array.isArray(s)){if(!s.length)return;var u=s,[c,...f]=u;if(typeof c=="number"){i=e.setTimeout(a.bind(null,f),c);return}a(c),i=e.setTimeout(a.bind(null,f));return}typeof s=="string"&&(t=s,n(t)),typeof s=="object"&&(t=s,n(t)),typeof s=="function"&&s()}};return{stop:()=>{r=!0},start:s=>{r=!1,i&&(i(),i=null),a(s)},subscribe:s=>(n=s,()=>{n=()=>null}),getTimeoutController:()=>e}}class cue{setTimeout(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=performance.now(),i=null,a=s=>{s-r>=n?t(s):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{i!=null&&cancelAnimationFrame(i)}}}function fue(){return uue(new cue)}var due=k.createContext(fue);function hue(e,t){var n=k.useContext(due);return k.useMemo(()=>t??n(e),[e,t,n])}var pue={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},SD={t:0},Bx={t:1};function Ap(e){var t=cr(e,pue),{isActive:n,canBegin:r,duration:i,easing:a,begin:s,onAnimationEnd:u,onAnimationStart:c,children:f}=t,h=f8(),p=n==="auto"?!Ep.isSsr&&!h:n,g=hue(t.animationId,t.animationManager),[v,y]=k.useState(p?SD:Bx),b=k.useRef(null);return k.useEffect(()=>{p||y(Bx)},[p]),k.useEffect(()=>{if(!p||!r)return Co;var w=nue(SD,Bx,lue(a),i,y,g.getTimeoutController()),_=()=>{b.current=w()};return g.start([c,s,_,i,u]),()=>{g.stop(),b.current&&b.current(),u()}},[p,r,i,a,s,c,u,g]),f(v.t)}function kp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=k.useRef(Bh(t)),r=k.useRef(e);return r.current!==e&&(n.current=Bh(t),r.current=e),n.current}var mue=["radius"],gue=["radius"],ED,AD,kD,CD,OD,TD,MD,PD,ND,RD;function DD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ID(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DD(Object(n),!0).forEach(function(r){vue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vue(e,t,n){return(t=yue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yue(e){var t=bue(e,"string");return typeof t=="symbol"?t:t+""}function bue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ly(){return ly=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ly.apply(null,arguments)}function LD(e,t){if(e==null)return{};var n,r,i=wue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ta(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var zD=(e,t,n,r,i)=>{var a=Ds(n),s=Ds(r),u=Math.min(Math.abs(a)/2,Math.abs(s)/2),c=s>=0?1:-1,f=a>=0?1:-1,h=s>=0&&a>=0||s<0&&a<0?1:0,p;if(u>0&&Array.isArray(i)){for(var g=[0,0,0,0],v=0,y=4;v<y;v++){var b,w=(b=i[v])!==null&&b!==void 0?b:0;g[v]=w>u?u:w}p=rn(ED||(ED=ta(["M",",",""])),e,t+c*g[0]),g[0]>0&&(p+=rn(AD||(AD=ta(["A ",",",",0,0,",",",",",""])),g[0],g[0],h,e+f*g[0],t)),p+=rn(kD||(kD=ta(["L ",",",""])),e+n-f*g[1],t),g[1]>0&&(p+=rn(CD||(CD=ta(["A ",",",",0,0,",`,
889
+ `,",",""])),g[1],g[1],h,e+n,t+c*g[1])),p+=rn(OD||(OD=ta(["L ",",",""])),e+n,t+r-c*g[2]),g[2]>0&&(p+=rn(TD||(TD=ta(["A ",",",",0,0,",`,
890
+ `,",",""])),g[2],g[2],h,e+n-f*g[2],t+r)),p+=rn(MD||(MD=ta(["L ",",",""])),e+f*g[3],t+r),g[3]>0&&(p+=rn(PD||(PD=ta(["A ",",",",0,0,",`,
891
+ `,",",""])),g[3],g[3],h,e,t+r-c*g[3])),p+="Z"}else if(u>0&&i===+i&&i>0){var _=Math.min(u,i);p=rn(ND||(ND=ta(["M ",",",`
892
+ A `,",",",0,0,",",",",",`
893
+ L `,",",`
894
+ A `,",",",0,0,",",",",",`
895
+ L `,",",`
896
+ A `,",",",0,0,",",",",",`
897
+ L `,",",`
898
+ A `,",",",0,0,",",",","," Z"])),e,t+c*_,_,_,h,e+f*_,t,e+n-f*_,t,_,_,h,e+n,t+c*_,e+n,t+r-c*_,_,_,h,e+n-f*_,t+r,e+f*_,t+r,_,_,h,e,t+r-c*_)}else p=rn(RD||(RD=ta(["M ",","," h "," v "," h "," Z"])),e,t,n,r,-n);return p},jD={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},v8=e=>{var t=cr(e,jD),n=k.useRef(null),[r,i]=k.useState(-1);k.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var G=n.current.getTotalLength();G&&i(G)}catch{}},[]);var{x:a,y:s,width:u,height:c,radius:f,className:h}=t,{animationEasing:p,animationDuration:g,animationBegin:v,isAnimationActive:y,isUpdateAnimationActive:b}=t,w=k.useRef(u),_=k.useRef(c),C=k.useRef(a),E=k.useRef(s),S=k.useMemo(()=>({x:a,y:s,width:u,height:c,radius:f}),[a,s,u,c,f]),T=kp(S,"rectangle-");if(a!==+a||s!==+s||u!==+u||c!==+c||u===0||c===0)return null;var O=kt("recharts-rectangle",h);if(!b){var M=ur(t),{radius:P}=M,R=LD(M,mue);return k.createElement("path",ly({},R,{x:Ds(a),y:Ds(s),width:Ds(u),height:Ds(c),radius:typeof f=="number"?f:void 0,className:O,d:zD(a,s,u,c,f)}))}var z=w.current,D=_.current,N=C.current,$=E.current,I="0px ".concat(r===-1?1:r,"px"),U="".concat(r,"px ").concat(r,"px"),j=h8(["strokeDasharray"],g,typeof p=="string"?p:jD.animationEasing);return k.createElement(Ap,{animationId:T,key:T,canBegin:r>0,duration:g,easing:p,isActive:b,begin:v},G=>{var q=Rt(z,u,G),H=Rt(D,c,G),V=Rt(N,a,G),B=Rt($,s,G);n.current&&(w.current=q,_.current=H,C.current=V,E.current=B);var K;y?G>0?K={transition:j,strokeDasharray:U}:K={strokeDasharray:I}:K={strokeDasharray:U};var X=ur(t),{radius:ee}=X,ce=LD(X,gue);return k.createElement("path",ly({},ce,{radius:typeof f=="number"?f:void 0,className:O,d:zD(V,B,q,H,f),ref:n,style:ID(ID({},K),t.style)}))})};function $D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function BD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$D(Object(n),!0).forEach(function(r){xue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$D(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xue(e,t,n){return(t=_ue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _ue(e){var t=Sue(e,"string");return typeof t=="symbol"?t:t+""}function Sue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uy=Math.PI/180,Eue=e=>e*180/Math.PI,Jn=(e,t,n,r)=>({x:e+Math.cos(-uy*r)*n,y:t+Math.sin(-uy*r)*n}),Aue=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},kue=(e,t)=>{var{x:n,y:r}=e,{x:i,y:a}=t;return Math.sqrt((n-i)**2+(r-a)**2)},Cue=(e,t)=>{var{x:n,y:r}=e,{cx:i,cy:a}=t,s=kue({x:n,y:r},{x:i,y:a});if(s<=0)return{radius:s,angle:0};var u=(n-i)/s,c=Math.acos(u);return r>a&&(c=2*Math.PI-c),{radius:s,angle:Eue(c),angleInRadian:c}},Oue=e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),i=Math.floor(n/360),a=Math.min(r,i);return{startAngle:t-a*360,endAngle:n-a*360}},Tue=(e,t)=>{var{startAngle:n,endAngle:r}=t,i=Math.floor(n/360),a=Math.floor(r/360),s=Math.min(i,a);return e+s*360},Mue=(e,t)=>{var{relativeX:n,relativeY:r}=e,{radius:i,angle:a}=Cue({x:n,y:r},t),{innerRadius:s,outerRadius:u}=t;if(i<s||i>u||i===0)return null;var{startAngle:c,endAngle:f}=Oue(t),h=a,p;if(c<=f){for(;h>f;)h-=360;for(;h<c;)h+=360;p=h>=c&&h<=f}else{for(;h>c;)h-=360;for(;h<f;)h+=360;p=h>=f&&h<=c}return p?BD(BD({},t),{},{radius:i,angle:Tue(h,t)}):null};function y8(e){var{cx:t,cy:n,radius:r,startAngle:i,endAngle:a}=e,s=Jn(t,n,r,i),u=Jn(t,n,r,a);return{points:[s,u],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}var UD,FD,HD,GD,qD,VD,KD;function l2(){return l2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l2.apply(null,arguments)}function Nl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Pue=(e,t)=>{var n=Ir(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},jg=e=>{var{cx:t,cy:n,radius:r,angle:i,sign:a,isExternal:s,cornerRadius:u,cornerIsExternal:c}=e,f=u*(s?1:-1)+r,h=Math.asin(u/f)/uy,p=c?i:i+a*h,g=Jn(t,n,f,p),v=Jn(t,n,r,p),y=c?i-a*h:i,b=Jn(t,n,f*Math.cos(h*uy),y);return{center:g,circleTangency:v,lineTangency:b,theta:h}},b8=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:a,endAngle:s}=e,u=Pue(a,s),c=a+u,f=Jn(t,n,i,a),h=Jn(t,n,i,c),p=rn(UD||(UD=Nl(["M ",",",`
899
+ A `,",",`,0,
900
+ `,",",`,
901
+ `,",",`
902
+ `])),f.x,f.y,i,i,+(Math.abs(u)>180),+(a>c),h.x,h.y);if(r>0){var g=Jn(t,n,r,a),v=Jn(t,n,r,c);p+=rn(FD||(FD=Nl(["L ",",",`
903
+ A `,",",`,0,
904
+ `,",",`,
905
+ `,","," Z"])),v.x,v.y,r,r,+(Math.abs(u)>180),+(a<=c),g.x,g.y)}else p+=rn(HD||(HD=Nl(["L ",","," Z"])),t,n);return p},Nue=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:a,forceCornerRadius:s,cornerIsExternal:u,startAngle:c,endAngle:f}=e,h=Ir(f-c),{circleTangency:p,lineTangency:g,theta:v}=jg({cx:t,cy:n,radius:i,angle:c,sign:h,cornerRadius:a,cornerIsExternal:u}),{circleTangency:y,lineTangency:b,theta:w}=jg({cx:t,cy:n,radius:i,angle:f,sign:-h,cornerRadius:a,cornerIsExternal:u}),_=u?Math.abs(c-f):Math.abs(c-f)-v-w;if(_<0)return s?rn(GD||(GD=Nl(["M ",",",`
906
+ a`,",",",0,0,1,",`,0
907
+ a`,",",",0,0,1,",`,0
908
+ `])),g.x,g.y,a,a,a*2,a,a,-a*2):b8({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:c,endAngle:f});var C=rn(qD||(qD=Nl(["M ",",",`
909
+ A`,",",",0,0,",",",",",`
910
+ A`,",",",0,",",",",",",",`
911
+ A`,",",",0,0,",",",",",`
912
+ `])),g.x,g.y,a,a,+(h<0),p.x,p.y,i,i,+(_>180),+(h<0),y.x,y.y,a,a,+(h<0),b.x,b.y);if(r>0){var{circleTangency:E,lineTangency:S,theta:T}=jg({cx:t,cy:n,radius:r,angle:c,sign:h,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),{circleTangency:O,lineTangency:M,theta:P}=jg({cx:t,cy:n,radius:r,angle:f,sign:-h,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),R=u?Math.abs(c-f):Math.abs(c-f)-T-P;if(R<0&&a===0)return"".concat(C,"L").concat(t,",").concat(n,"Z");C+=rn(VD||(VD=Nl(["L",",",`
913
+ A`,",",",0,0,",",",",",`
914
+ A`,",",",0,",",",",",",",`
915
+ A`,",",",0,0,",",",",","Z"])),M.x,M.y,a,a,+(h<0),O.x,O.y,r,r,+(R>180),+(h>0),E.x,E.y,a,a,+(h<0),S.x,S.y)}else C+=rn(KD||(KD=Nl(["L",",","Z"])),t,n);return C},Rue={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},w8=e=>{var t=cr(e,Rue),{cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:s,forceCornerRadius:u,cornerIsExternal:c,startAngle:f,endAngle:h,className:p}=t;if(a<i||f===h)return null;var g=kt("recharts-sector",p),v=a-i,y=Vi(s,v,0,!0),b;return y>0&&Math.abs(f-h)<360?b=Nue({cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:Math.min(y,v/2),forceCornerRadius:u,cornerIsExternal:c,startAngle:f,endAngle:h}):b=b8({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:f,endAngle:h}),k.createElement("path",l2({},ur(t),{className:g,d:b}))};function Due(e,t,n){if(e==="horizontal")return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if(e==="vertical")return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(N6(t)){if(e==="centric"){var{cx:r,cy:i,innerRadius:a,outerRadius:s,angle:u}=t,c=Jn(r,i,a,u),f=Jn(r,i,s,u);return[{x:c.x,y:c.y},{x:f.x,y:f.y}]}return y8(t)}}var Ux={},Fx={},Hx={},YD;function Iue(){return YD||(YD=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=F6();function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n})(Hx)),Hx}var WD;function Lue(){return WD||(WD=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Iue();function n(r){return r?(r=t.toNumber(r),r===1/0||r===-1/0?(r<0?-1:1)*Number.MAX_VALUE:r===r?r:0):r===0?r:0}e.toFinite=n})(Fx)),Fx}var QD;function zue(){return QD||(QD=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=H6(),n=Lue();function r(i,a,s){s&&typeof s!="number"&&t.isIterateeCall(i,a,s)&&(a=s=void 0),i=n.toFinite(i),a===void 0?(a=i,i=0):a=n.toFinite(a),s=s===void 0?i<a?1:-1:n.toFinite(s);const u=Math.max(Math.ceil((a-i)/(s||1)),0),c=new Array(u);for(let f=0;f<u;f++)c[f]=i,i+=s;return c}e.range=r})(Ux)),Ux}var Gx,ZD;function jue(){return ZD||(ZD=1,Gx=zue().range),Gx}var $ue=jue();const x8=ti($ue);var Mo=e=>e.chartData,_8=le([Mo],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),WE=(e,t,n,r)=>r?_8(e):Mo(e),S8=(e,t,n)=>n?_8(e):Mo(e);function ma(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(at(t)&&at(n))return!0}return!1}function XD(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function E8(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[n,r]=e,i,a;if(at(n))i=n;else if(typeof n=="function")return;if(at(r))a=r;else if(typeof r=="function")return;var s=[i,a];if(ma(s))return s}}function Bue(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(ma(r))return XD(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,s,u;if(i==="auto")t!=null&&(s=Math.min(...t));else if(Ne(i))s=i;else if(typeof i=="function")try{t!=null&&(s=i(t==null?void 0:t[0]))}catch{}else if(typeof i=="string"&&KR.test(i)){var c=KR.exec(i);if(c==null||c[1]==null||t==null)s=void 0;else{var f=+c[1];s=t[0]-f}}else s=t==null?void 0:t[0];if(a==="auto")t!=null&&(u=Math.max(...t));else if(Ne(a))u=a;else if(typeof a=="function")try{t!=null&&(u=a(t==null?void 0:t[1]))}catch{}else if(typeof a=="string"&&YR.test(a)){var h=YR.exec(a);if(h==null||h[1]==null||t==null)u=void 0;else{var p=+h[1];u=t[1]+p}}else u=t==null?void 0:t[1];var g=[s,u];if(ma(g))return t==null?g:XD(g,t,n)}}}var Sf=1e9,Uue={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},ZE,qt=!0,xi="[DecimalError] ",Yl=xi+"Invalid argument: ",QE=xi+"Exponent out of range: ",Ef=Math.floor,Ol=Math.pow,Fue=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Vr,Ln=1e7,Ft=7,A8=9007199254740991,cy=Ef(A8/Ft),De={};De.absoluteValue=De.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};De.comparedTo=De.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1};De.decimalPlaces=De.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Ft;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};De.dividedBy=De.div=function(e){return ho(this,new this.constructor(e))};De.dividedToIntegerBy=De.idiv=function(e){var t=this,n=t.constructor;return It(ho(t,new n(e),0,1),n.precision)};De.equals=De.eq=function(e){return!this.cmp(e)};De.exponent=function(){return wn(this)};De.greaterThan=De.gt=function(e){return this.cmp(e)>0};De.greaterThanOrEqualTo=De.gte=function(e){return this.cmp(e)>=0};De.isInteger=De.isint=function(){return this.e>this.d.length-2};De.isNegative=De.isneg=function(){return this.s<0};De.isPositive=De.ispos=function(){return this.s>0};De.isZero=function(){return this.s===0};De.lessThan=De.lt=function(e){return this.cmp(e)<0};De.lessThanOrEqualTo=De.lte=function(e){return this.cmp(e)<1};De.logarithm=De.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Vr))throw Error(xi+"NaN");if(n.s<1)throw Error(xi+(n.s?"NaN":"-Infinity"));return n.eq(Vr)?new r(0):(qt=!1,t=ho(qh(n,a),qh(e,a),a),qt=!0,It(t,i))};De.minus=De.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?O8(t,e):k8(t,(e.s=-e.s,e))};De.modulo=De.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(xi+"NaN");return n.s?(qt=!1,t=ho(n,e,0,1).times(e),qt=!0,n.minus(t)):It(new r(n),i)};De.naturalExponential=De.exp=function(){return C8(this)};De.naturalLogarithm=De.ln=function(){return qh(this)};De.negated=De.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};De.plus=De.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?k8(t,e):O8(t,(e.s=-e.s,e))};De.precision=De.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Yl+e);if(t=wn(i)+1,r=i.d.length-1,n=r*Ft+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};De.squareRoot=De.sqrt=function(){var e,t,n,r,i,a,s,u=this,c=u.constructor;if(u.s<1){if(!u.s)return new c(0);throw Error(xi+"NaN")}for(e=wn(u),qt=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=fa(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ef((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new c(t)):r=new c(i.toString()),n=c.precision,i=s=n+3;;)if(a=r,r=a.plus(ho(u,a,s+2)).times(.5),fa(a.d).slice(0,s)===(t=fa(r.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(It(a,n+1,0),a.times(a).eq(u)){r=a;break}}else if(t!="9999")break;s+=4}return qt=!0,It(r,n)};De.times=De.mul=function(e){var t,n,r,i,a,s,u,c,f,h=this,p=h.constructor,g=h.d,v=(e=new p(e)).d;if(!h.s||!e.s)return new p(0);for(e.s*=h.s,n=h.e+e.e,c=g.length,f=v.length,c<f&&(a=g,g=v,v=a,s=c,c=f,f=s),a=[],s=c+f,r=s;r--;)a.push(0);for(r=f;--r>=0;){for(t=0,i=c+r;i>r;)u=a[i]+v[r]*g[i-r-1]+t,a[i--]=u%Ln|0,t=u/Ln|0;a[i]=(a[i]+t)%Ln|0}for(;!a[--s];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,qt?It(e,p.precision):e};De.toDecimalPlaces=De.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(ba(e,0,Sf),t===void 0?t=r.rounding:ba(t,0,8),It(n,e+wn(n)+1,t))};De.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=fu(r,!0):(ba(e,0,Sf),t===void 0?t=i.rounding:ba(t,0,8),r=It(new i(r),e+1,t),n=fu(r,!0,e+1)),n};De.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?fu(i):(ba(e,0,Sf),t===void 0?t=a.rounding:ba(t,0,8),r=It(new a(i),e+wn(i)+1,t),n=fu(r.abs(),!1,e+wn(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};De.toInteger=De.toint=function(){var e=this,t=e.constructor;return It(new t(e),wn(e)+1,t.rounding)};De.toNumber=function(){return+this};De.toPower=De.pow=function(e){var t,n,r,i,a,s,u=this,c=u.constructor,f=12,h=+(e=new c(e));if(!e.s)return new c(Vr);if(u=new c(u),!u.s){if(e.s<1)throw Error(xi+"Infinity");return u}if(u.eq(Vr))return u;if(r=c.precision,e.eq(Vr))return It(u,r);if(t=e.e,n=e.d.length-1,s=t>=n,a=u.s,s){if((n=h<0?-h:h)<=A8){for(i=new c(Vr),t=Math.ceil(r/Ft+4),qt=!1;n%2&&(i=i.times(u),e3(i.d,t)),n=Ef(n/2),n!==0;)u=u.times(u),e3(u.d,t);return qt=!0,e.s<0?new c(Vr).div(i):It(i,r)}}else if(a<0)throw Error(xi+"NaN");return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,qt=!1,i=e.times(qh(u,r+f)),qt=!0,i=C8(i),i.s=a,i};De.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=wn(i),r=fu(i,n<=a.toExpNeg||n>=a.toExpPos)):(ba(e,1,Sf),t===void 0?t=a.rounding:ba(t,0,8),i=It(new a(i),e,t),n=wn(i),r=fu(i,e<=n||n<=a.toExpNeg,e)),r};De.toSignificantDigits=De.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(ba(e,1,Sf),t===void 0?t=r.rounding:ba(t,0,8)),It(new r(n),e,t)};De.toString=De.valueOf=De.val=De.toJSON=De[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=wn(e),n=e.constructor;return fu(e,t<=n.toExpNeg||t>=n.toExpPos)};function k8(e,t){var n,r,i,a,s,u,c,f,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s||(t=new h(e)),qt?It(t,p):t;if(c=e.d,f=t.d,s=e.e,i=t.e,c=c.slice(),a=s-i,a){for(a<0?(r=c,a=-a,u=f.length):(r=f,i=s,u=c.length),s=Math.ceil(p/Ft),u=s>u?s+1:u+1,a>u&&(a=u,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(u=c.length,a=f.length,u-a<0&&(a=u,r=f,f=c,c=r),n=0;a;)n=(c[--a]=c[a]+f[a]+n)/Ln|0,c[a]%=Ln;for(n&&(c.unshift(n),++i),u=c.length;c[--u]==0;)c.pop();return t.d=c,t.e=i,qt?It(t,p):t}function ba(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Yl+e)}function fa(e){var t,n,r,i=e.length-1,a="",s=e[0];if(i>0){for(a+=s,t=1;t<i;t++)r=e[t]+"",n=Ft-r.length,n&&(a+=ws(n)),a+=r;s=e[t],r=s+"",n=Ft-r.length,n&&(a+=ws(n))}else if(s===0)return"0";for(;s%10===0;)s/=10;return a+s}var ho=(function(){function e(r,i){var a,s=0,u=r.length;for(r=r.slice();u--;)a=r[u]*i+s,r[u]=a%Ln|0,s=a/Ln|0;return s&&r.unshift(s),r}function t(r,i,a,s){var u,c;if(a!=s)c=a>s?1:-1;else for(u=c=0;u<a;u++)if(r[u]!=i[u]){c=r[u]>i[u]?1:-1;break}return c}function n(r,i,a){for(var s=0;a--;)r[a]-=s,s=r[a]<i[a]?1:0,r[a]=s*Ln+r[a]-i[a];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,a,s){var u,c,f,h,p,g,v,y,b,w,_,C,E,S,T,O,M,P,R=r.constructor,z=r.s==i.s?1:-1,D=r.d,N=i.d;if(!r.s)return new R(r);if(!i.s)throw Error(xi+"Division by zero");for(c=r.e-i.e,M=N.length,T=D.length,v=new R(z),y=v.d=[],f=0;N[f]==(D[f]||0);)++f;if(N[f]>(D[f]||0)&&--c,a==null?C=a=R.precision:s?C=a+(wn(r)-wn(i))+1:C=a,C<0)return new R(0);if(C=C/Ft+2|0,f=0,M==1)for(h=0,N=N[0],C++;(f<T||h)&&C--;f++)E=h*Ln+(D[f]||0),y[f]=E/N|0,h=E%N|0;else{for(h=Ln/(N[0]+1)|0,h>1&&(N=e(N,h),D=e(D,h),M=N.length,T=D.length),S=M,b=D.slice(0,M),w=b.length;w<M;)b[w++]=0;P=N.slice(),P.unshift(0),O=N[0],N[1]>=Ln/2&&++O;do h=0,u=t(N,b,M,w),u<0?(_=b[0],M!=w&&(_=_*Ln+(b[1]||0)),h=_/O|0,h>1?(h>=Ln&&(h=Ln-1),p=e(N,h),g=p.length,w=b.length,u=t(p,b,g,w),u==1&&(h--,n(p,M<g?P:N,g))):(h==0&&(u=h=1),p=N.slice()),g=p.length,g<w&&p.unshift(0),n(b,p,w),u==-1&&(w=b.length,u=t(N,b,M,w),u<1&&(h++,n(b,M<w?P:N,w))),w=b.length):u===0&&(h++,b=[0]),y[f++]=h,u&&b[0]?b[w++]=D[S]||0:(b=[D[S]],w=1);while((S++<T||b[0]!==void 0)&&C--)}return y[0]||y.shift(),v.e=c,It(v,s?a+wn(v)+1:a)}})();function C8(e,t){var n,r,i,a,s,u,c=0,f=0,h=e.constructor,p=h.precision;if(wn(e)>16)throw Error(QE+wn(e));if(!e.s)return new h(Vr);for(qt=!1,u=p,s=new h(.03125);e.abs().gte(.1);)e=e.times(s),f+=5;for(r=Math.log(Ol(2,f))/Math.LN10*2+5|0,u+=r,n=i=a=new h(Vr),h.precision=u;;){if(i=It(i.times(e),u),n=n.times(++c),s=a.plus(ho(i,n,u)),fa(s.d).slice(0,u)===fa(a.d).slice(0,u)){for(;f--;)a=It(a.times(a),u);return h.precision=p,t==null?(qt=!0,It(a,p)):a}a=s}}function wn(e){for(var t=e.e*Ft,n=e.d[0];n>=10;n/=10)t++;return t}function qx(e,t,n){if(t>e.LN10.sd())throw qt=!0,n&&(e.precision=n),Error(xi+"LN10 precision limit exceeded");return It(new e(e.LN10),t)}function ws(e){for(var t="";e--;)t+="0";return t}function qh(e,t){var n,r,i,a,s,u,c,f,h,p=1,g=10,v=e,y=v.d,b=v.constructor,w=b.precision;if(v.s<1)throw Error(xi+(v.s?"NaN":"-Infinity"));if(v.eq(Vr))return new b(0);if(t==null?(qt=!1,f=w):f=t,v.eq(10))return t==null&&(qt=!0),qx(b,f);if(f+=g,b.precision=f,n=fa(y),r=n.charAt(0),a=wn(v),Math.abs(a)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)v=v.times(e),n=fa(v.d),r=n.charAt(0),p++;a=wn(v),r>1?(v=new b("0."+n),a++):v=new b(r+"."+n.slice(1))}else return c=qx(b,f+2,w).times(a+""),v=qh(new b(r+"."+n.slice(1)),f-g).plus(c),b.precision=w,t==null?(qt=!0,It(v,w)):v;for(u=s=v=ho(v.minus(Vr),v.plus(Vr),f),h=It(v.times(v),f),i=3;;){if(s=It(s.times(h),f),c=u.plus(ho(s,new b(i),f)),fa(c.d).slice(0,f)===fa(u.d).slice(0,f))return u=u.times(2),a!==0&&(u=u.plus(qx(b,f+2,w).times(a+""))),u=ho(u,new b(p),f),b.precision=w,t==null?(qt=!0,It(u,w)):u;u=c,i+=2}}function JD(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=Ef(n/Ft),e.d=[],r=(n+1)%Ft,n<0&&(r+=Ft),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=Ft;r<i;)e.d.push(+t.slice(r,r+=Ft));t=t.slice(r),r=Ft-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),qt&&(e.e>cy||e.e<-cy))throw Error(QE+n)}else e.s=0,e.e=0,e.d=[0];return e}function It(e,t,n){var r,i,a,s,u,c,f,h,p=e.d;for(s=1,a=p[0];a>=10;a/=10)s++;if(r=t-s,r<0)r+=Ft,i=t,f=p[h=0];else{if(h=Math.ceil((r+1)/Ft),a=p.length,h>=a)return e;for(f=a=p[h],s=1;a>=10;a/=10)s++;r%=Ft,i=r-Ft+s}if(n!==void 0&&(a=Ol(10,s-i-1),u=f/a%10|0,c=t<0||p[h+1]!==void 0||f%a,c=n<4?(u||c)&&(n==0||n==(e.s<0?3:2)):u>5||u==5&&(n==4||c||n==6&&(r>0?i>0?f/Ol(10,s-i):0:p[h-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return c?(a=wn(e),p.length=1,t=t-a-1,p[0]=Ol(10,(Ft-t%Ft)%Ft),e.e=Ef(-t/Ft)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(r==0?(p.length=h,a=1,h--):(p.length=h+1,a=Ol(10,Ft-r),p[h]=i>0?(f/Ol(10,s-i)%Ol(10,i)|0)*a:0),c)for(;;)if(h==0){(p[0]+=a)==Ln&&(p[0]=1,++e.e);break}else{if(p[h]+=a,p[h]!=Ln)break;p[h--]=0,a=1}for(r=p.length;p[--r]===0;)p.pop();if(qt&&(e.e>cy||e.e<-cy))throw Error(QE+wn(e));return e}function O8(e,t){var n,r,i,a,s,u,c,f,h,p,g=e.constructor,v=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),qt?It(t,v):t;if(c=e.d,p=t.d,r=t.e,f=e.e,c=c.slice(),s=f-r,s){for(h=s<0,h?(n=c,s=-s,u=p.length):(n=p,r=f,u=c.length),i=Math.max(Math.ceil(v/Ft),u)+2,s>i&&(s=i,n.length=1),n.reverse(),i=s;i--;)n.push(0);n.reverse()}else{for(i=c.length,u=p.length,h=i<u,h&&(u=i),i=0;i<u;i++)if(c[i]!=p[i]){h=c[i]<p[i];break}s=0}for(h&&(n=c,c=p,p=n,t.s=-t.s),u=c.length,i=p.length-u;i>0;--i)c[u++]=0;for(i=p.length;i>s;){if(c[--i]<p[i]){for(a=i;a&&c[--a]===0;)c[a]=Ln-1;--c[a],c[i]+=Ln}c[i]-=p[i]}for(;c[--u]===0;)c.pop();for(;c[0]===0;c.shift())--r;return c[0]?(t.d=c,t.e=r,qt?It(t,v):t):new g(0)}function fu(e,t,n){var r,i=wn(e),a=fa(e.d),s=a.length;return t?(n&&(r=n-s)>0?a=a.charAt(0)+"."+a.slice(1)+ws(r):s>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+ws(-i-1)+a,n&&(r=n-s)>0&&(a+=ws(r))):i>=s?(a+=ws(i+1-s),n&&(r=n-i-1)>0&&(a=a+"."+ws(r))):((r=i+1)<s&&(a=a.slice(0,r)+"."+a.slice(r)),n&&(r=n-s)>0&&(i+1===s&&(a+="."),a+=ws(r))),e.s<0?"-"+a:a}function e3(e,t){if(e.length>t)return e.length=t,!0}function T8(e){var t,n,r;function i(a){var s=this;if(!(s instanceof i))return new i(a);if(s.constructor=i,a instanceof i){s.s=a.s,s.e=a.e,s.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Yl+a);if(a>0)s.s=1;else if(a<0)a=-a,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(a===~~a&&a<1e7){s.e=0,s.d=[a];return}return JD(s,a.toString())}else if(typeof a!="string")throw Error(Yl+a);if(a.charCodeAt(0)===45?(a=a.slice(1),s.s=-1):s.s=1,Fue.test(a))JD(s,a);else throw Error(Yl+a)}if(i.prototype=De,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=T8,i.config=i.set=Hue,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function Hue(e){if(!e||typeof e!="object")throw Error(xi+"Object expected");var t,n,r,i=["precision",1,Sf,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(Ef(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Yl+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Yl+n+": "+r);return this}var ZE=T8(Uue);Vr=new ZE(1);const mt=ZE;function M8(e){var t;return e===0?t=1:t=Math.floor(new mt(e).abs().log(10).toNumber())+1,t}function P8(e,t,n){for(var r=new mt(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}var N8=e=>{var[t,n]=e,[r,i]=[t,n];return t>n&&([r,i]=[n,t]),[r,i]},XE=(e,t,n)=>{if(e.lte(0))return new mt(0);var r=M8(e.toNumber()),i=new mt(10).pow(r),a=e.div(i),s=r!==1?.05:.1,u=new mt(Math.ceil(a.div(s).toNumber())).add(n).mul(s),c=u.mul(i);return t?new mt(c.toNumber()):new mt(Math.ceil(c.toNumber()))},R8=(e,t,n)=>{var r;if(e.lte(0))return new mt(0);var i=[1,2,2.5,5],a=e.toNumber(),s=Math.floor(new mt(a).abs().log(10).toNumber()),u=new mt(10).pow(s),c=e.div(u).toNumber(),f=i.findIndex(v=>v>=c-1e-10);if(f===-1&&(u=u.mul(10),f=0),f+=n,f>=i.length){var h=Math.floor(f/i.length);f%=i.length,u=u.mul(new mt(10).pow(h))}var p=(r=i[f])!==null&&r!==void 0?r:1,g=new mt(p).mul(u);return t?g:new mt(Math.ceil(g.toNumber()))},Gue=(e,t,n)=>{var r=new mt(1),i=new mt(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new mt(10).pow(M8(e)-1),i=new mt(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new mt(Math.floor(e)))}else e===0?i=new mt(Math.floor((t-1)/2)):n||(i=new mt(Math.floor(e)));for(var s=Math.floor((t-1)/2),u=[],c=0;c<t;c++)u.push(i.add(new mt(c-s).mul(r)).toNumber());return u},D8=function(t,n,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:XE;if(!Number.isFinite((n-t)/(r-1)))return{step:new mt(0),tickMin:new mt(0),tickMax:new mt(0)};var u=s(new mt(n).sub(t).div(r-1),i,a),c;t<=0&&n>=0?c=new mt(0):(c=new mt(t).add(n).div(2),c=c.sub(new mt(c).mod(u)));var f=Math.ceil(c.sub(t).div(u).toNumber()),h=Math.ceil(new mt(n).sub(c).div(u).toNumber()),p=f+h+1;return p>r?D8(t,n,r,i,a+1,s):(p<r&&(h=n>0?h+(r-p):h,f=n>0?f:f+(r-p)),{step:u,tickMin:c.sub(new mt(f).mul(u)),tickMax:c.add(new mt(h).mul(u))})},t3=function(t){var[n,r]=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",u=Math.max(i,2),[c,f]=N8([n,r]);if(c===-1/0||f===1/0){var h=f===1/0?[c,...Array(i-1).fill(1/0)]:[...Array(i-1).fill(-1/0),f];return n>r?h.reverse():h}if(c===f)return Gue(c,i,a);var p=s==="snap125"?R8:XE,{step:g,tickMin:v,tickMax:y}=D8(c,f,u,a,0,p),b=P8(v,y.add(new mt(.1).mul(g)),g);return n>r?b.reverse():b},n3=function(t,n){var[r,i]=t,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"auto",[u,c]=N8([r,i]);if(u===-1/0||c===1/0)return[r,i];if(u===c)return[u];var f=s==="snap125"?R8:XE,h=Math.max(n,2),p=f(new mt(c).sub(u).div(h-1),a,0),g=[...P8(new mt(u),new mt(c),p),c];return a===!1&&(g=g.map(v=>Math.round(v))),r>i?g.reverse():g},I8=e=>e.rootProps.maxBarSize,que=e=>e.rootProps.barGap,L8=e=>e.rootProps.barCategoryGap,Vue=e=>e.rootProps.barSize,_0=e=>e.rootProps.stackOffset,z8=e=>e.rootProps.reverseStackOrder,JE=e=>e.options.chartName,eA=e=>e.rootProps.syncId,j8=e=>e.rootProps.syncMethod,tA=e=>e.options.eventEmitter,Kue=e=>e.rootProps.baseValue,Pn={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},wl={allowDecimals:!1,allowDataOverflow:!1,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"auto"},na={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,includeHidden:!1,radiusAxisId:0,reversed:!1,scale:"auto",tick:!0,tickCount:5,type:"auto"},S0=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function E0(e,t,n){if(n!=="auto")return n;if(e!=null)return Wi(e,t)?"category":"number"}function r3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r3(Object(n),!0).forEach(function(r){Yue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yue(e,t,n){return(t=Wue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wue(e){var t=Que(e,"string");return typeof t=="symbol"?t:t+""}function Que(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i3={allowDataOverflow:wl.allowDataOverflow,allowDecimals:wl.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:wl.angleAxisId,includeHidden:!1,name:void 0,reversed:wl.reversed,scale:wl.scale,tick:wl.tick,tickCount:void 0,ticks:void 0,type:wl.type,unit:void 0,niceTicks:"auto"},a3={allowDataOverflow:na.allowDataOverflow,allowDecimals:na.allowDecimals,allowDuplicatedCategory:na.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:na.radiusAxisId,includeHidden:na.includeHidden,name:void 0,reversed:na.reversed,scale:na.scale,tick:na.tick,tickCount:na.tickCount,ticks:void 0,type:na.type,unit:void 0,niceTicks:"auto"},Zue=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},nA=le([Zue,r8],(e,t)=>{var n;if(e!=null)return e;var r=(n=E0(t,"angleAxis",i3.type))!==null&&n!==void 0?n:"category";return fy(fy({},i3),{},{type:r})}),Xue=(e,t)=>e.polarAxis.radiusAxis[t],rA=le([Xue,r8],(e,t)=>{var n;if(e!=null)return e;var r=(n=E0(t,"radiusAxis",a3.type))!==null&&n!==void 0?n:"category";return fy(fy({},a3),{},{type:r})}),A0=e=>e.polarOptions,iA=le([Oo,To,jn],Aue),$8=le([A0,iA],(e,t)=>{if(e!=null)return Vi(e.innerRadius,t,0)}),B8=le([A0,iA],(e,t)=>{if(e!=null)return Vi(e.outerRadius,t,t*.8)}),Jue=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]},U8=le([A0],Jue);le([nA,U8],S0);var F8=le([iA,$8,B8],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});le([rA,F8],S0);var H8=le([_t,A0,$8,B8,Oo,To],(e,t,n,r,i,a)=>{if(!(e!=="centric"&&e!=="radial"||t==null||n==null||r==null)){var{cx:s,cy:u,startAngle:c,endAngle:f}=t;return{cx:Vi(s,i,i/2),cy:Vi(u,a,a/2),innerRadius:n,outerRadius:r,startAngle:c,endAngle:f,clockWise:!1}}}),Bn=(e,t)=>t,k0=(e,t,n)=>n;function C0(e){return e==null?void 0:e.id}function G8(e,t,n){var{chartData:r=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=n,s=new Map;return e.forEach(u=>{var c,f=(c=u.data)!==null&&c!==void 0?c:r;if(!(f==null||f.length===0)){var h=C0(u);f.forEach((p,g)=>{var v=a==null||i?g:String(sn(p,a,null)),y=sn(p,u.dataKey,0),b;s.has(v)?b=s.get(v):b={},Object.assign(b,{[h]:y}),s.set(v,b)})}}),Array.from(s.values())}function O0(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var T0=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function M0(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function ece(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}var Un=e=>{var t=_t(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Af=e=>e.tooltip.settings.axisId;function aA(e){if(e!=null){var t=e.ticks,n=e.bandwidth,r=e.range(),i=[Math.min(...r),Math.max(...r)];return{domain:()=>e.domain(),range:(function(a){function s(){return a.apply(this,arguments)}return s.toString=function(){return a.toString()},s})(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(a){var s=i[0],u=i[1];return s<=u?a>=s&&a<=u:a>=u&&a<=s},bandwidth:n?()=>n.call(e):void 0,ticks:t?a=>t.call(e,a):void 0,map:(a,s)=>{var u=e(a);if(u!=null){if(e.bandwidth&&s!==null&&s!==void 0&&s.position){var c=e.bandwidth();switch(s.position){case"middle":u+=c/2;break;case"end":u+=c;break}}return u}}}}}var tce=(e,t)=>{if(t!=null)switch(e){case"linear":{if(!ma(t)){for(var n,r,i=0;i<t.length;i++){var a=t[i];at(a)&&((n===void 0||a<n)&&(n=a),(r===void 0||a>r)&&(r=a))}return n!==void 0&&r!==void 0?[n,r]:void 0}return t}default:return t}};function js(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function nce(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function oA(e){let t,n,r;e.length!==2?(t=js,n=(u,c)=>js(e(u),c),r=(u,c)=>e(u)-c):(t=e===js||e===nce?e:rce,n=e,r=e);function i(u,c,f=0,h=u.length){if(f<h){if(t(c,c)!==0)return h;do{const p=f+h>>>1;n(u[p],c)<0?f=p+1:h=p}while(f<h)}return f}function a(u,c,f=0,h=u.length){if(f<h){if(t(c,c)!==0)return h;do{const p=f+h>>>1;n(u[p],c)<=0?f=p+1:h=p}while(f<h)}return f}function s(u,c,f=0,h=u.length){const p=i(u,c,f,h-1);return p>f&&r(u[p-1],c)>-r(u[p],c)?p-1:p}return{left:i,center:s,right:a}}function rce(){return 0}function q8(e){return e===null?NaN:+e}function*ice(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const ace=oA(js),Cp=ace.right;oA(q8).center;class o3 extends Map{constructor(t,n=lce){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(s3(this,t))}has(t){return super.has(s3(this,t))}set(t,n){return super.set(oce(this,t),n)}delete(t){return super.delete(sce(this,t))}}function s3({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function oce({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function sce({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function lce(e){return e!==null&&typeof e=="object"?e.valueOf():e}function uce(e=js){if(e===js)return V8;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function V8(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const cce=Math.sqrt(50),fce=Math.sqrt(10),dce=Math.sqrt(2);function dy(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),s=a>=cce?10:a>=fce?5:a>=dce?2:1;let u,c,f;return i<0?(f=Math.pow(10,-i)/s,u=Math.round(e*f),c=Math.round(t*f),u/f<e&&++u,c/f>t&&--c,f=-f):(f=Math.pow(10,i)*s,u=Math.round(e/f),c=Math.round(t/f),u*f<e&&++u,c*f>t&&--c),c<u&&.5<=n&&n<2?dy(e,t,n*2):[u,c,f]}function u2(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,s]=r?dy(t,e,n):dy(e,t,n);if(!(a>=i))return[];const u=a-i+1,c=new Array(u);if(r)if(s<0)for(let f=0;f<u;++f)c[f]=(a-f)/-s;else for(let f=0;f<u;++f)c[f]=(a-f)*s;else if(s<0)for(let f=0;f<u;++f)c[f]=(i+f)/-s;else for(let f=0;f<u;++f)c[f]=(i+f)*s;return c}function c2(e,t,n){return t=+t,e=+e,n=+n,dy(e,t,n)[2]}function f2(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?c2(t,e,n):c2(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function l3(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function u3(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function K8(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?V8:uce(i);r>n;){if(r-n>600){const c=r-n+1,f=t-n+1,h=Math.log(c),p=.5*Math.exp(2*h/3),g=.5*Math.sqrt(h*p*(c-p)/c)*(f-c/2<0?-1:1),v=Math.max(n,Math.floor(t-f*p/c+g)),y=Math.min(r,Math.floor(t+(c-f)*p/c+g));K8(e,t,v,y,i)}const a=e[t];let s=n,u=r;for(Ud(e,n,t),i(e[r],a)>0&&Ud(e,n,r);s<u;){for(Ud(e,s,u),++s,--u;i(e[s],a)<0;)++s;for(;i(e[u],a)>0;)--u}i(e[n],a)===0?Ud(e,n,u):(++u,Ud(e,u,r)),u<=t&&(n=u+1),t<=u&&(r=u-1)}return e}function Ud(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function hce(e,t,n){if(e=Float64Array.from(ice(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return u3(e);if(t>=1)return l3(e);var r,i=(r-1)*t,a=Math.floor(i),s=l3(K8(e,a).subarray(0,a+1)),u=u3(e.subarray(a+1));return s+(u-s)*(i-a)}}function pce(e,t,n=q8){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),s=+n(e[a],a,e),u=+n(e[a+1],a+1,e);return s+(u-s)*(i-a)}}function mce(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function Ei(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Po(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const d2=Symbol("implicit");function sA(){var e=new o3,t=[],n=[],r=d2;function i(a){let s=e.get(a);if(s===void 0){if(r!==d2)return r;e.set(a,s=t.push(a)-1)}return n[s%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new o3;for(const s of a)e.has(s)||e.set(s,t.push(s)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return sA(t,n).unknown(r)},Ei.apply(i,arguments),i}function lA(){var e=sA().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,s,u=!1,c=0,f=0,h=.5;delete e.unknown;function p(){var g=t().length,v=i<r,y=v?i:r,b=v?r:i;a=(b-y)/Math.max(1,g-c+f*2),u&&(a=Math.floor(a)),y+=(b-y-a*(g-c))*h,s=a*(1-c),u&&(y=Math.round(y),s=Math.round(s));var w=mce(g).map(function(_){return y+a*_});return n(v?w.reverse():w)}return e.domain=function(g){return arguments.length?(t(g),p()):t()},e.range=function(g){return arguments.length?([r,i]=g,r=+r,i=+i,p()):[r,i]},e.rangeRound=function(g){return[r,i]=g,r=+r,i=+i,u=!0,p()},e.bandwidth=function(){return s},e.step=function(){return a},e.round=function(g){return arguments.length?(u=!!g,p()):u},e.padding=function(g){return arguments.length?(c=Math.min(1,f=+g),p()):c},e.paddingInner=function(g){return arguments.length?(c=Math.min(1,g),p()):c},e.paddingOuter=function(g){return arguments.length?(f=+g,p()):f},e.align=function(g){return arguments.length?(h=Math.max(0,Math.min(1,g)),p()):h},e.copy=function(){return lA(t(),[r,i]).round(u).paddingInner(c).paddingOuter(f).align(h)},Ei.apply(p(),arguments)}function Y8(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Y8(t())},e}function gce(){return Y8(lA.apply(null,arguments).paddingInner(1))}function vce(e){return function(){return e}}function hy(e){return+e}var c3=[0,1];function br(e){return e}function h2(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:vce(isNaN(t)?NaN:.5)}function yce(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function bce(e,t,n){var r=e[0],i=e[1],a=t[0],s=t[1];return i<r?(r=h2(i,r),a=n(s,a)):(r=h2(r,i),a=n(a,s)),function(u){return a(r(u))}}function wce(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=h2(e[s],e[s+1]),a[s]=n(t[s],t[s+1]);return function(u){var c=Cp(e,u,1,r)-1;return a[c](i[c](u))}}function Op(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function P0(){var e=c3,t=c3,n=fo,r,i,a,s=br,u,c,f;function h(){var g=Math.min(e.length,t.length);return s!==br&&(s=yce(e[0],e[g-1])),u=g>2?wce:bce,c=f=null,p}function p(g){return g==null||isNaN(g=+g)?a:(c||(c=u(e.map(r),t,n)))(r(s(g)))}return p.invert=function(g){return s(i((f||(f=u(t,e.map(r),zi)))(g)))},p.domain=function(g){return arguments.length?(e=Array.from(g,hy),h()):e.slice()},p.range=function(g){return arguments.length?(t=Array.from(g),h()):t.slice()},p.rangeRound=function(g){return t=Array.from(g),n=vE,h()},p.clamp=function(g){return arguments.length?(s=g?!0:br,h()):s!==br},p.interpolate=function(g){return arguments.length?(n=g,h()):n},p.unknown=function(g){return arguments.length?(a=g,p):a},function(g,v){return r=g,i=v,h()}}function uA(){return P0()(br,br)}function xce(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function py(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ff(e){return e=py(Math.abs(e)),e?e[1]:NaN}function _ce(e,t){return function(n,r){for(var i=n.length,a=[],s=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),a.push(n.substring(i-=u,i+u)),!((c+=u+1)>r));)u=e[s=(s+1)%e.length];return a.reverse().join(t)}}function Sce(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Ece=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Vh(e){if(!(t=Ece.exec(e)))throw new Error("invalid format: "+e);var t;return new cA({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Vh.prototype=cA.prototype;function cA(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}cA.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Ace(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var my;function kce(e,t){var n=py(e,t);if(!n)return my=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(my=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return a===s?r:a>s?r+new Array(a-s+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+py(e,Math.max(0,t+a-1))[0]}function f3(e,t){var n=py(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const d3={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:xce,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>f3(e*100,t),r:f3,s:kce,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function h3(e){return e}var p3=Array.prototype.map,m3=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Cce(e){var t=e.grouping===void 0||e.thousands===void 0?h3:_ce(p3.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?h3:Sce(p3.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function f(p,g){p=Vh(p);var v=p.fill,y=p.align,b=p.sign,w=p.symbol,_=p.zero,C=p.width,E=p.comma,S=p.precision,T=p.trim,O=p.type;O==="n"?(E=!0,O="g"):d3[O]||(S===void 0&&(S=12),T=!0,O="g"),(_||v==="0"&&y==="=")&&(_=!0,v="0",y="=");var M=(g&&g.prefix!==void 0?g.prefix:"")+(w==="$"?n:w==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),P=(w==="$"?r:/[%p]/.test(O)?s:"")+(g&&g.suffix!==void 0?g.suffix:""),R=d3[O],z=/[defgprs%]/.test(O);S=S===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function D(N){var $=M,I=P,U,j,G;if(O==="c")I=R(N)+I,N="";else{N=+N;var q=N<0||1/N<0;if(N=isNaN(N)?c:R(Math.abs(N),S),T&&(N=Ace(N)),q&&+N==0&&b!=="+"&&(q=!1),$=(q?b==="("?b:u:b==="-"||b==="("?"":b)+$,I=(O==="s"&&!isNaN(N)&&my!==void 0?m3[8+my/3]:"")+I+(q&&b==="("?")":""),z){for(U=-1,j=N.length;++U<j;)if(G=N.charCodeAt(U),48>G||G>57){I=(G===46?i+N.slice(U+1):N.slice(U))+I,N=N.slice(0,U);break}}}E&&!_&&(N=t(N,1/0));var H=$.length+N.length+I.length,V=H<C?new Array(C-H+1).join(v):"";switch(E&&_&&(N=t(V+N,V.length?C-I.length:1/0),V=""),y){case"<":N=$+N+I+V;break;case"=":N=$+V+N+I;break;case"^":N=V.slice(0,H=V.length>>1)+$+N+I+V.slice(H);break;default:N=V+$+N+I;break}return a(N)}return D.toString=function(){return p+""},D}function h(p,g){var v=Math.max(-8,Math.min(8,Math.floor(ff(g)/3)))*3,y=Math.pow(10,-v),b=f((p=Vh(p),p.type="f",p),{suffix:m3[8+v/3]});return function(w){return b(y*w)}}return{format:f,formatPrefix:h}}var $g,fA,W8;Oce({thousands:",",grouping:[3],currency:["$",""]});function Oce(e){return $g=Cce(e),fA=$g.format,W8=$g.formatPrefix,$g}function Tce(e){return Math.max(0,-ff(Math.abs(e)))}function Mce(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ff(t)/3)))*3-ff(Math.abs(e)))}function Pce(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ff(t)-ff(e))+1}function Q8(e,t,n,r){var i=f2(e,t,n),a;switch(r=Vh(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=Mce(i,s))&&(r.precision=a),W8(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=Pce(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=Tce(i))&&(r.precision=a-(r.type==="%")*2);break}}return fA(r)}function Ys(e){var t=e.domain;return e.ticks=function(n){var r=t();return u2(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return Q8(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,s=r[i],u=r[a],c,f,h=10;for(u<s&&(f=s,s=u,u=f,f=i,i=a,a=f);h-- >0;){if(f=c2(s,u,n),f===c)return r[i]=s,r[a]=u,t(r);if(f>0)s=Math.floor(s/f)*f,u=Math.ceil(u/f)*f;else if(f<0)s=Math.ceil(s*f)/f,u=Math.floor(u*f)/f;else break;c=f}return e},e}function Z8(){var e=uA();return e.copy=function(){return Op(e,Z8())},Ei.apply(e,arguments),Ys(e)}function X8(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,hy),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return X8(e).unknown(t)},e=arguments.length?Array.from(e,hy):[0,1],Ys(n)}function J8(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],s;return a<i&&(s=n,n=r,r=s,s=i,i=a,a=s),e[n]=t.floor(i),e[r]=t.ceil(a),e}function g3(e){return Math.log(e)}function v3(e){return Math.exp(e)}function Nce(e){return-Math.log(-e)}function Rce(e){return-Math.exp(-e)}function Dce(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Ice(e){return e===10?Dce:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Lce(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function y3(e){return(t,n)=>-e(-t,n)}function dA(e){const t=e(g3,v3),n=t.domain;let r=10,i,a;function s(){return i=Lce(r),a=Ice(r),n()[0]<0?(i=y3(i),a=y3(a),e(Nce,Rce)):e(g3,v3),t}return t.base=function(u){return arguments.length?(r=+u,s()):r},t.domain=function(u){return arguments.length?(n(u),s()):n()},t.ticks=u=>{const c=n();let f=c[0],h=c[c.length-1];const p=h<f;p&&([f,h]=[h,f]);let g=i(f),v=i(h),y,b;const w=u==null?10:+u;let _=[];if(!(r%1)&&v-g<w){if(g=Math.floor(g),v=Math.ceil(v),f>0){for(;g<=v;++g)for(y=1;y<r;++y)if(b=g<0?y/a(-g):y*a(g),!(b<f)){if(b>h)break;_.push(b)}}else for(;g<=v;++g)for(y=r-1;y>=1;--y)if(b=g>0?y/a(-g):y*a(g),!(b<f)){if(b>h)break;_.push(b)}_.length*2<w&&(_=u2(f,h,w))}else _=u2(g,v,Math.min(v-g,w)).map(a);return p?_.reverse():_},t.tickFormat=(u,c)=>{if(u==null&&(u=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=Vh(c)).precision==null&&(c.trim=!0),c=fA(c)),u===1/0)return c;const f=Math.max(1,r*u/t.ticks().length);return h=>{let p=h/a(Math.round(i(h)));return p*r<r-.5&&(p*=r),p<=f?c(h):""}},t.nice=()=>n(J8(n(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function e$(){const e=dA(P0()).domain([1,10]);return e.copy=()=>Op(e,e$()).base(e.base()),Ei.apply(e,arguments),e}function b3(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function w3(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function hA(e){var t=1,n=e(b3(t),w3(t));return n.constant=function(r){return arguments.length?e(b3(t=+r),w3(t)):t},Ys(n)}function t$(){var e=hA(P0());return e.copy=function(){return Op(e,t$()).constant(e.constant())},Ei.apply(e,arguments)}function x3(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function zce(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function jce(e){return e<0?-e*e:e*e}function pA(e){var t=e(br,br),n=1;function r(){return n===1?e(br,br):n===.5?e(zce,jce):e(x3(n),x3(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Ys(t)}function mA(){var e=pA(P0());return e.copy=function(){return Op(e,mA()).exponent(e.exponent())},Ei.apply(e,arguments),e}function $ce(){return mA.apply(null,arguments).exponent(.5)}function _3(e){return Math.sign(e)*e*e}function Bce(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function n$(){var e=uA(),t=[0,1],n=!1,r;function i(a){var s=Bce(e(a));return isNaN(s)?r:n?Math.round(s):s}return i.invert=function(a){return e.invert(_3(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,hy)).map(_3)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return n$(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Ei.apply(i,arguments),Ys(i)}function r$(){var e=[],t=[],n=[],r;function i(){var s=0,u=Math.max(1,t.length);for(n=new Array(u-1);++s<u;)n[s-1]=pce(e,s/u);return a}function a(s){return s==null||isNaN(s=+s)?r:t[Cp(n,s)]}return a.invertExtent=function(s){var u=t.indexOf(s);return u<0?[NaN,NaN]:[u>0?n[u-1]:e[0],u<n.length?n[u]:e[e.length-1]]},a.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let u of s)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(js),i()},a.range=function(s){return arguments.length?(t=Array.from(s),i()):t.slice()},a.unknown=function(s){return arguments.length?(r=s,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return r$().domain(e).range(t).unknown(r)},Ei.apply(a,arguments)}function i$(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function s(c){return c!=null&&c<=c?i[Cp(r,c,0,n)]:a}function u(){var c=-1;for(r=new Array(n);++c<n;)r[c]=((c+1)*t-(c-n)*e)/(n+1);return s}return s.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,u()):[e,t]},s.range=function(c){return arguments.length?(n=(i=Array.from(c)).length-1,u()):i.slice()},s.invertExtent=function(c){var f=i.indexOf(c);return f<0?[NaN,NaN]:f<1?[e,r[0]]:f>=n?[r[n-1],t]:[r[f-1],r[f]]},s.unknown=function(c){return arguments.length&&(a=c),s},s.thresholds=function(){return r.slice()},s.copy=function(){return i$().domain([e,t]).range(i).unknown(a)},Ei.apply(Ys(s),arguments)}function a$(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[Cp(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var s=t.indexOf(a);return[e[s-1],e[s]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return a$().domain(e).range(t).unknown(n)},Ei.apply(i,arguments)}const Vx=new Date,Kx=new Date;function Nn(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const s=i(a),u=i.ceil(a);return a-s<u-a?s:u},i.offset=(a,s)=>(t(a=new Date(+a),s==null?1:Math.floor(s)),a),i.range=(a,s,u)=>{const c=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<s)||!(u>0))return c;let f;do c.push(f=new Date(+a)),t(a,u),e(a);while(f<a&&a<s);return c},i.filter=a=>Nn(s=>{if(s>=s)for(;e(s),!a(s);)s.setTime(s-1)},(s,u)=>{if(s>=s)if(u<0)for(;++u<=0;)for(;t(s,-1),!a(s););else for(;--u>=0;)for(;t(s,1),!a(s););}),n&&(i.count=(a,s)=>(Vx.setTime(+a),Kx.setTime(+s),e(Vx),e(Kx),Math.floor(n(Vx,Kx))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?s=>r(s)%a===0:s=>i.count(0,s)%a===0):i)),i}const gy=Nn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);gy.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Nn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):gy);gy.range;const uo=1e3,yi=uo*60,co=yi*60,_o=co*24,gA=_o*7,S3=_o*30,Yx=_o*365,Rl=Nn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*uo)},(e,t)=>(t-e)/uo,e=>e.getUTCSeconds());Rl.range;const vA=Nn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*uo)},(e,t)=>{e.setTime(+e+t*yi)},(e,t)=>(t-e)/yi,e=>e.getMinutes());vA.range;const yA=Nn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*yi)},(e,t)=>(t-e)/yi,e=>e.getUTCMinutes());yA.range;const bA=Nn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*uo-e.getMinutes()*yi)},(e,t)=>{e.setTime(+e+t*co)},(e,t)=>(t-e)/co,e=>e.getHours());bA.range;const wA=Nn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*co)},(e,t)=>(t-e)/co,e=>e.getUTCHours());wA.range;const Tp=Nn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*yi)/_o,e=>e.getDate()-1);Tp.range;const N0=Nn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/_o,e=>e.getUTCDate()-1);N0.range;const o$=Nn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/_o,e=>Math.floor(e/_o));o$.range;function mu(e){return Nn(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*yi)/gA)}const R0=mu(0),vy=mu(1),Uce=mu(2),Fce=mu(3),df=mu(4),Hce=mu(5),Gce=mu(6);R0.range;vy.range;Uce.range;Fce.range;df.range;Hce.range;Gce.range;function gu(e){return Nn(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/gA)}const D0=gu(0),yy=gu(1),qce=gu(2),Vce=gu(3),hf=gu(4),Kce=gu(5),Yce=gu(6);D0.range;yy.range;qce.range;Vce.range;hf.range;Kce.range;Yce.range;const xA=Nn(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());xA.range;const _A=Nn(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());_A.range;const So=Nn(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());So.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Nn(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});So.range;const Eo=Nn(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Eo.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Nn(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Eo.range;function s$(e,t,n,r,i,a){const s=[[Rl,1,uo],[Rl,5,5*uo],[Rl,15,15*uo],[Rl,30,30*uo],[a,1,yi],[a,5,5*yi],[a,15,15*yi],[a,30,30*yi],[i,1,co],[i,3,3*co],[i,6,6*co],[i,12,12*co],[r,1,_o],[r,2,2*_o],[n,1,gA],[t,1,S3],[t,3,3*S3],[e,1,Yx]];function u(f,h,p){const g=h<f;g&&([f,h]=[h,f]);const v=p&&typeof p.range=="function"?p:c(f,h,p),y=v?v.range(f,+h+1):[];return g?y.reverse():y}function c(f,h,p){const g=Math.abs(h-f)/p,v=oA(([,,w])=>w).right(s,g);if(v===s.length)return e.every(f2(f/Yx,h/Yx,p));if(v===0)return gy.every(Math.max(f2(f,h,p),1));const[y,b]=s[g/s[v-1][2]<s[v][2]/g?v-1:v];return y.every(b)}return[u,c]}const[Wce,Qce]=s$(Eo,_A,D0,o$,wA,yA),[Zce,Xce]=s$(So,xA,R0,Tp,bA,vA);function Wx(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Qx(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Fd(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Jce(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,s=e.shortDays,u=e.months,c=e.shortMonths,f=Hd(i),h=Gd(i),p=Hd(a),g=Gd(a),v=Hd(s),y=Gd(s),b=Hd(u),w=Gd(u),_=Hd(c),C=Gd(c),E={a:G,A:q,b:H,B:V,c:null,d:T3,e:T3,f:_fe,g:Nfe,G:Dfe,H:bfe,I:wfe,j:xfe,L:l$,m:Sfe,M:Efe,p:B,q:K,Q:N3,s:R3,S:Afe,u:kfe,U:Cfe,V:Ofe,w:Tfe,W:Mfe,x:null,X:null,y:Pfe,Y:Rfe,Z:Ife,"%":P3},S={a:X,A:ee,b:ce,B:he,c:null,d:M3,e:M3,f:$fe,g:Wfe,G:Zfe,H:Lfe,I:zfe,j:jfe,L:c$,m:Bfe,M:Ufe,p:de,q:ie,Q:N3,s:R3,S:Ffe,u:Hfe,U:Gfe,V:qfe,w:Vfe,W:Kfe,x:null,X:null,y:Yfe,Y:Qfe,Z:Xfe,"%":P3},T={a:z,A:D,b:N,B:$,c:I,d:C3,e:C3,f:mfe,g:k3,G:A3,H:O3,I:O3,j:ffe,L:pfe,m:cfe,M:dfe,p:R,q:ufe,Q:vfe,s:yfe,S:hfe,u:ife,U:afe,V:ofe,w:rfe,W:sfe,x:U,X:j,y:k3,Y:A3,Z:lfe,"%":gfe};E.x=O(n,E),E.X=O(r,E),E.c=O(t,E),S.x=O(n,S),S.X=O(r,S),S.c=O(t,S);function O(J,pe){return function(ye){var te=[],Ce=-1,Se=0,Ye=J.length,Ie,ut,jt;for(ye instanceof Date||(ye=new Date(+ye));++Ce<Ye;)J.charCodeAt(Ce)===37&&(te.push(J.slice(Se,Ce)),(ut=E3[Ie=J.charAt(++Ce)])!=null?Ie=J.charAt(++Ce):ut=Ie==="e"?" ":"0",(jt=pe[Ie])&&(Ie=jt(ye,ut)),te.push(Ie),Se=Ce+1);return te.push(J.slice(Se,Ce)),te.join("")}}function M(J,pe){return function(ye){var te=Fd(1900,void 0,1),Ce=P(te,J,ye+="",0),Se,Ye;if(Ce!=ye.length)return null;if("Q"in te)return new Date(te.Q);if("s"in te)return new Date(te.s*1e3+("L"in te?te.L:0));if(pe&&!("Z"in te)&&(te.Z=0),"p"in te&&(te.H=te.H%12+te.p*12),te.m===void 0&&(te.m="q"in te?te.q:0),"V"in te){if(te.V<1||te.V>53)return null;"w"in te||(te.w=1),"Z"in te?(Se=Qx(Fd(te.y,0,1)),Ye=Se.getUTCDay(),Se=Ye>4||Ye===0?yy.ceil(Se):yy(Se),Se=N0.offset(Se,(te.V-1)*7),te.y=Se.getUTCFullYear(),te.m=Se.getUTCMonth(),te.d=Se.getUTCDate()+(te.w+6)%7):(Se=Wx(Fd(te.y,0,1)),Ye=Se.getDay(),Se=Ye>4||Ye===0?vy.ceil(Se):vy(Se),Se=Tp.offset(Se,(te.V-1)*7),te.y=Se.getFullYear(),te.m=Se.getMonth(),te.d=Se.getDate()+(te.w+6)%7)}else("W"in te||"U"in te)&&("w"in te||(te.w="u"in te?te.u%7:"W"in te?1:0),Ye="Z"in te?Qx(Fd(te.y,0,1)).getUTCDay():Wx(Fd(te.y,0,1)).getDay(),te.m=0,te.d="W"in te?(te.w+6)%7+te.W*7-(Ye+5)%7:te.w+te.U*7-(Ye+6)%7);return"Z"in te?(te.H+=te.Z/100|0,te.M+=te.Z%100,Qx(te)):Wx(te)}}function P(J,pe,ye,te){for(var Ce=0,Se=pe.length,Ye=ye.length,Ie,ut;Ce<Se;){if(te>=Ye)return-1;if(Ie=pe.charCodeAt(Ce++),Ie===37){if(Ie=pe.charAt(Ce++),ut=T[Ie in E3?pe.charAt(Ce++):Ie],!ut||(te=ut(J,ye,te))<0)return-1}else if(Ie!=ye.charCodeAt(te++))return-1}return te}function R(J,pe,ye){var te=f.exec(pe.slice(ye));return te?(J.p=h.get(te[0].toLowerCase()),ye+te[0].length):-1}function z(J,pe,ye){var te=v.exec(pe.slice(ye));return te?(J.w=y.get(te[0].toLowerCase()),ye+te[0].length):-1}function D(J,pe,ye){var te=p.exec(pe.slice(ye));return te?(J.w=g.get(te[0].toLowerCase()),ye+te[0].length):-1}function N(J,pe,ye){var te=_.exec(pe.slice(ye));return te?(J.m=C.get(te[0].toLowerCase()),ye+te[0].length):-1}function $(J,pe,ye){var te=b.exec(pe.slice(ye));return te?(J.m=w.get(te[0].toLowerCase()),ye+te[0].length):-1}function I(J,pe,ye){return P(J,t,pe,ye)}function U(J,pe,ye){return P(J,n,pe,ye)}function j(J,pe,ye){return P(J,r,pe,ye)}function G(J){return s[J.getDay()]}function q(J){return a[J.getDay()]}function H(J){return c[J.getMonth()]}function V(J){return u[J.getMonth()]}function B(J){return i[+(J.getHours()>=12)]}function K(J){return 1+~~(J.getMonth()/3)}function X(J){return s[J.getUTCDay()]}function ee(J){return a[J.getUTCDay()]}function ce(J){return c[J.getUTCMonth()]}function he(J){return u[J.getUTCMonth()]}function de(J){return i[+(J.getUTCHours()>=12)]}function ie(J){return 1+~~(J.getUTCMonth()/3)}return{format:function(J){var pe=O(J+="",E);return pe.toString=function(){return J},pe},parse:function(J){var pe=M(J+="",!1);return pe.toString=function(){return J},pe},utcFormat:function(J){var pe=O(J+="",S);return pe.toString=function(){return J},pe},utcParse:function(J){var pe=M(J+="",!0);return pe.toString=function(){return J},pe}}}var E3={"-":"",_:" ",0:"0"},Fn=/^\s*\d+/,efe=/^%/,tfe=/[\\^$*+?|[\]().{}]/g;function xt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function nfe(e){return e.replace(tfe,"\\$&")}function Hd(e){return new RegExp("^(?:"+e.map(nfe).join("|")+")","i")}function Gd(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function rfe(e,t,n){var r=Fn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ife(e,t,n){var r=Fn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function afe(e,t,n){var r=Fn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function ofe(e,t,n){var r=Fn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function sfe(e,t,n){var r=Fn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function A3(e,t,n){var r=Fn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function k3(e,t,n){var r=Fn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function lfe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ufe(e,t,n){var r=Fn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function cfe(e,t,n){var r=Fn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function C3(e,t,n){var r=Fn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function ffe(e,t,n){var r=Fn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function O3(e,t,n){var r=Fn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function dfe(e,t,n){var r=Fn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function hfe(e,t,n){var r=Fn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function pfe(e,t,n){var r=Fn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function mfe(e,t,n){var r=Fn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function gfe(e,t,n){var r=efe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function vfe(e,t,n){var r=Fn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function yfe(e,t,n){var r=Fn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function T3(e,t){return xt(e.getDate(),t,2)}function bfe(e,t){return xt(e.getHours(),t,2)}function wfe(e,t){return xt(e.getHours()%12||12,t,2)}function xfe(e,t){return xt(1+Tp.count(So(e),e),t,3)}function l$(e,t){return xt(e.getMilliseconds(),t,3)}function _fe(e,t){return l$(e,t)+"000"}function Sfe(e,t){return xt(e.getMonth()+1,t,2)}function Efe(e,t){return xt(e.getMinutes(),t,2)}function Afe(e,t){return xt(e.getSeconds(),t,2)}function kfe(e){var t=e.getDay();return t===0?7:t}function Cfe(e,t){return xt(R0.count(So(e)-1,e),t,2)}function u$(e){var t=e.getDay();return t>=4||t===0?df(e):df.ceil(e)}function Ofe(e,t){return e=u$(e),xt(df.count(So(e),e)+(So(e).getDay()===4),t,2)}function Tfe(e){return e.getDay()}function Mfe(e,t){return xt(vy.count(So(e)-1,e),t,2)}function Pfe(e,t){return xt(e.getFullYear()%100,t,2)}function Nfe(e,t){return e=u$(e),xt(e.getFullYear()%100,t,2)}function Rfe(e,t){return xt(e.getFullYear()%1e4,t,4)}function Dfe(e,t){var n=e.getDay();return e=n>=4||n===0?df(e):df.ceil(e),xt(e.getFullYear()%1e4,t,4)}function Ife(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+xt(t/60|0,"0",2)+xt(t%60,"0",2)}function M3(e,t){return xt(e.getUTCDate(),t,2)}function Lfe(e,t){return xt(e.getUTCHours(),t,2)}function zfe(e,t){return xt(e.getUTCHours()%12||12,t,2)}function jfe(e,t){return xt(1+N0.count(Eo(e),e),t,3)}function c$(e,t){return xt(e.getUTCMilliseconds(),t,3)}function $fe(e,t){return c$(e,t)+"000"}function Bfe(e,t){return xt(e.getUTCMonth()+1,t,2)}function Ufe(e,t){return xt(e.getUTCMinutes(),t,2)}function Ffe(e,t){return xt(e.getUTCSeconds(),t,2)}function Hfe(e){var t=e.getUTCDay();return t===0?7:t}function Gfe(e,t){return xt(D0.count(Eo(e)-1,e),t,2)}function f$(e){var t=e.getUTCDay();return t>=4||t===0?hf(e):hf.ceil(e)}function qfe(e,t){return e=f$(e),xt(hf.count(Eo(e),e)+(Eo(e).getUTCDay()===4),t,2)}function Vfe(e){return e.getUTCDay()}function Kfe(e,t){return xt(yy.count(Eo(e)-1,e),t,2)}function Yfe(e,t){return xt(e.getUTCFullYear()%100,t,2)}function Wfe(e,t){return e=f$(e),xt(e.getUTCFullYear()%100,t,2)}function Qfe(e,t){return xt(e.getUTCFullYear()%1e4,t,4)}function Zfe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?hf(e):hf.ceil(e),xt(e.getUTCFullYear()%1e4,t,4)}function Xfe(){return"+0000"}function P3(){return"%"}function N3(e){return+e}function R3(e){return Math.floor(+e/1e3)}var fc,d$,h$;Jfe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Jfe(e){return fc=Jce(e),d$=fc.format,fc.parse,h$=fc.utcFormat,fc.utcParse,fc}function ede(e){return new Date(e)}function tde(e){return e instanceof Date?+e:+new Date(+e)}function SA(e,t,n,r,i,a,s,u,c,f){var h=uA(),p=h.invert,g=h.domain,v=f(".%L"),y=f(":%S"),b=f("%I:%M"),w=f("%I %p"),_=f("%a %d"),C=f("%b %d"),E=f("%B"),S=f("%Y");function T(O){return(c(O)<O?v:u(O)<O?y:s(O)<O?b:a(O)<O?w:r(O)<O?i(O)<O?_:C:n(O)<O?E:S)(O)}return h.invert=function(O){return new Date(p(O))},h.domain=function(O){return arguments.length?g(Array.from(O,tde)):g().map(ede)},h.ticks=function(O){var M=g();return e(M[0],M[M.length-1],O??10)},h.tickFormat=function(O,M){return M==null?T:f(M)},h.nice=function(O){var M=g();return(!O||typeof O.range!="function")&&(O=t(M[0],M[M.length-1],O??10)),O?g(J8(M,O)):h},h.copy=function(){return Op(h,SA(e,t,n,r,i,a,s,u,c,f))},h}function nde(){return Ei.apply(SA(Zce,Xce,So,xA,R0,Tp,bA,vA,Rl,d$).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function rde(){return Ei.apply(SA(Wce,Qce,Eo,_A,D0,N0,wA,yA,Rl,h$).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function I0(){var e=0,t=1,n,r,i,a,s=br,u=!1,c;function f(p){return p==null||isNaN(p=+p)?c:s(i===0?.5:(p=(a(p)-n)*i,u?Math.max(0,Math.min(1,p)):p))}f.domain=function(p){return arguments.length?([e,t]=p,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),f):[e,t]},f.clamp=function(p){return arguments.length?(u=!!p,f):u},f.interpolator=function(p){return arguments.length?(s=p,f):s};function h(p){return function(g){var v,y;return arguments.length?([v,y]=g,s=p(v,y),f):[s(0),s(1)]}}return f.range=h(fo),f.rangeRound=h(vE),f.unknown=function(p){return arguments.length?(c=p,f):c},function(p){return a=p,n=p(e),r=p(t),i=n===r?0:1/(r-n),f}}function Ws(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function p$(){var e=Ys(I0()(br));return e.copy=function(){return Ws(e,p$())},Po.apply(e,arguments)}function m$(){var e=dA(I0()).domain([1,10]);return e.copy=function(){return Ws(e,m$()).base(e.base())},Po.apply(e,arguments)}function g$(){var e=hA(I0());return e.copy=function(){return Ws(e,g$()).constant(e.constant())},Po.apply(e,arguments)}function EA(){var e=pA(I0());return e.copy=function(){return Ws(e,EA()).exponent(e.exponent())},Po.apply(e,arguments)}function ide(){return EA.apply(null,arguments).exponent(.5)}function v$(){var e=[],t=br;function n(r){if(r!=null&&!isNaN(r=+r))return t((Cp(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(js),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,a)=>hce(e,a/r))},n.copy=function(){return v$(t).domain(e)},Po.apply(n,arguments)}function L0(){var e=0,t=.5,n=1,r=1,i,a,s,u,c,f=br,h,p=!1,g;function v(b){return isNaN(b=+b)?g:(b=.5+((b=+h(b))-a)*(r*b<r*a?u:c),f(p?Math.max(0,Math.min(1,b)):b))}v.domain=function(b){return arguments.length?([e,t,n]=b,i=h(e=+e),a=h(t=+t),s=h(n=+n),u=i===a?0:.5/(a-i),c=a===s?0:.5/(s-a),r=a<i?-1:1,v):[e,t,n]},v.clamp=function(b){return arguments.length?(p=!!b,v):p},v.interpolator=function(b){return arguments.length?(f=b,v):f};function y(b){return function(w){var _,C,E;return arguments.length?([_,C,E]=w,f=vee(b,[_,C,E]),v):[f(0),f(.5),f(1)]}}return v.range=y(fo),v.rangeRound=y(vE),v.unknown=function(b){return arguments.length?(g=b,v):g},function(b){return h=b,i=b(e),a=b(t),s=b(n),u=i===a?0:.5/(a-i),c=a===s?0:.5/(s-a),r=a<i?-1:1,v}}function y$(){var e=Ys(L0()(br));return e.copy=function(){return Ws(e,y$())},Po.apply(e,arguments)}function b$(){var e=dA(L0()).domain([.1,1,10]);return e.copy=function(){return Ws(e,b$()).base(e.base())},Po.apply(e,arguments)}function w$(){var e=hA(L0());return e.copy=function(){return Ws(e,w$()).constant(e.constant())},Po.apply(e,arguments)}function AA(){var e=pA(L0());return e.copy=function(){return Ws(e,AA()).exponent(e.exponent())},Po.apply(e,arguments)}function ade(){return AA.apply(null,arguments).exponent(.5)}const uh=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:lA,scaleDiverging:y$,scaleDivergingLog:b$,scaleDivergingPow:AA,scaleDivergingSqrt:ade,scaleDivergingSymlog:w$,scaleIdentity:X8,scaleImplicit:d2,scaleLinear:Z8,scaleLog:e$,scaleOrdinal:sA,scalePoint:gce,scalePow:mA,scaleQuantile:r$,scaleQuantize:i$,scaleRadial:n$,scaleSequential:p$,scaleSequentialLog:m$,scaleSequentialPow:EA,scaleSequentialQuantile:v$,scaleSequentialSqrt:ide,scaleSequentialSymlog:g$,scaleSqrt:$ce,scaleSymlog:t$,scaleThreshold:a$,scaleTime:nde,scaleUtc:rde,tickFormat:Q8},Symbol.toStringTag,{value:"Module"}));function ode(e){if(e in uh)return uh[e]();var t="scale".concat(wp(e));if(t in uh)return uh[t]()}function D3(e,t,n){if(typeof e=="function")return e.copy().domain(t).range(n);if(e!=null){var r=ode(e);if(r!=null)return r.domain(t).range(n),r}}function kA(e,t,n,r){if(!(n==null||r==null))return typeof e.scale=="function"?D3(e.scale,n,r):D3(t,n,r)}function sde(e){return"scale".concat(wp(e))}function lde(e){return sde(e)in uh}var x$=(e,t,n)=>{if(e!=null){var{scale:r,type:i}=e;if(r==="auto")return i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!t)?"point":i==="category"?"band":"linear";if(typeof r=="string")return lde(r)?r:"point"}};function ude(e,t){for(var n=0,r=e.length,i=e[0]<e[e.length-1];n<r;){var a=Math.floor((n+r)/2);(i?e[a]<t:e[a]>t)?n=a+1:r=a}return n}function _$(e,t){if(e){var n=t??e.domain(),r=n.map(a=>{var s;return(s=e(a))!==null&&s!==void 0?s:0}),i=e.range();if(!(n.length===0||i.length<2))return a=>{var s,u,c=ude(r,a);if(c<=0)return n[0];if(c>=n.length)return n[n.length-1];var f=(s=r[c-1])!==null&&s!==void 0?s:0,h=(u=r[c])!==null&&u!==void 0?u:0;return Math.abs(a-f)<=Math.abs(a-h)?n[c-1]:n[c]}}}function cde(e){if(e!=null)return"invert"in e&&typeof e.invert=="function"?e.invert.bind(e):_$(e,void 0)}function I3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function by(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I3(Object(n),!0).forEach(function(r){fde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fde(e,t,n){return(t=dde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dde(e){var t=hde(e,"string");return typeof t=="symbol"?t:t+""}function hde(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var p2=[0,"auto"],Cn={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0,niceTicks:"auto"},S$=(e,t)=>e.cartesianAxis.xAxis[t],No=(e,t)=>{var n=S$(e,t);return n??Cn},On={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:p2,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:xp},E$=(e,t)=>e.cartesianAxis.yAxis[t],Ro=(e,t)=>{var n=E$(e,t);return n??On},pde={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},CA=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??pde},wr=(e,t,n)=>{switch(t){case"xAxis":return No(e,n);case"yAxis":return Ro(e,n);case"zAxis":return CA(e,n);case"angleAxis":return nA(e,n);case"radiusAxis":return rA(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},mde=(e,t,n)=>{switch(t){case"xAxis":return No(e,n);case"yAxis":return Ro(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Mp=(e,t,n)=>{switch(t){case"xAxis":return No(e,n);case"yAxis":return Ro(e,n);case"angleAxis":return nA(e,n);case"radiusAxis":return rA(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},A$=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function k$(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var Pp=e=>e.graphicalItems.cartesianItems,gde=le([Bn,k0],k$),C$=(e,t,n)=>e.filter(n).filter(r=>(t==null?void 0:t.includeHidden)===!0?!0:!r.hide),Np=le([Pp,wr,gde],C$,{memoizeOptions:{resultEqualityCheck:M0}}),O$=le([Np],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(O0)),T$=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),vde=le([Np],T$),M$=e=>e.map(t=>t.data).filter(Boolean).flat(1),yde=le([Np],M$,{memoizeOptions:{resultEqualityCheck:M0}}),P$=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:i}=t;return e.length>0?e:n.slice(r,i+1)},OA=le([yde,WE],P$),N$=(e,t,n)=>(t==null?void 0:t.dataKey)!=null?e.map(r=>({value:sn(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(i=>({value:sn(i,r)}))):e.map(r=>({value:r})),Rp=le([OA,wr,Np],N$);function Nc(e){if(va(e)||e instanceof Date){var t=Number(e);if(at(t))return t}}function L3(e){if(Array.isArray(e)){var t=[Nc(e[0]),Nc(e[1])];return ma(t)?t:void 0}var n=Nc(e);if(n!=null)return[n,n]}function Ao(e){return e.map(Nc).filter(Lr)}function bde(e,t){var n=Nc(e),r=Nc(t);return n==null&&r==null?0:n==null?-1:r==null?1:n-r}var wde=le([Rp],e=>e==null?void 0:e.map(t=>t.value).sort(bde));function R$(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function xde(e,t,n){return!n||typeof t!="number"||qi(t)?[]:n.length?Ao(n.flatMap(r=>{var i=sn(e,r.dataKey),a,s;if(Array.isArray(i)?[a,s]=i:a=s=i,!(!at(a)||!at(s)))return[t-a,t+s]})):[]}var Rn=e=>{var t=Un(e),n=Af(e);return Mp(e,t,n)},Dp=le([Rn],e=>e==null?void 0:e.dataKey),_de=le([O$,WE,Rn],G8),D$=(e,t,n,r)=>{var i={},a=t.reduce((s,u)=>{if(u.stackId==null)return s;var c=s[u.stackId];return c==null&&(c=[]),c.push(u),s[u.stackId]=c,s},i);return Object.fromEntries(Object.entries(a).map(s=>{var[u,c]=s,f=r?[...c].reverse():c,h=f.map(C0);return[u,{stackedData:fse(e,h,n),graphicalItems:f}]}))},wy=le([_de,O$,_0,z8],D$),I$=(e,t,n,r)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(r==null&&n!=="zAxis"){var s=mse(e,i,a);if(!(s!=null&&s[0]===0&&s[1]===0))return s}},Sde=le([wr],e=>e.allowDataOverflow),TA=e=>{var t;if(e==null||!("domain"in e))return p2;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var n=Ao(e.ticks);return[Math.min(...n),Math.max(...n)]}if(e.type==="category")return e.ticks.map(String)}return(t=e==null?void 0:e.domain)!==null&&t!==void 0?t:p2},L$=le([wr],TA),z$=le([L$,Sde],E8),Ede=le([wy,Mo,Bn,z$],I$,{memoizeOptions:{resultEqualityCheck:T0}}),MA=e=>e.errorBars,Ade=(e,t,n)=>e.flatMap(r=>t[r.id]).filter(Boolean).filter(r=>R$(n,r)),xy=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.filter(Boolean);if(i.length!==0){var a=i.flat(),s=Math.min(...a),u=Math.max(...a);return[s,u]}},j$=(e,t,n,r,i)=>{var a,s;if(n.length>0&&e.forEach(u=>{n.forEach(c=>{var f,h,p=(f=r[c.id])===null||f===void 0?void 0:f.filter(_=>R$(i,_)),g=sn(u,(h=t.dataKey)!==null&&h!==void 0?h:c.dataKey),v=xde(u,g,p);if(v.length>=2){var y=Math.min(...v),b=Math.max(...v);(a==null||y<a)&&(a=y),(s==null||b>s)&&(s=b)}var w=L3(g);w!=null&&(a=a==null?w[0]:Math.min(a,w[0]),s=s==null?w[1]:Math.max(s,w[1]))})}),(t==null?void 0:t.dataKey)!=null&&e.forEach(u=>{var c=L3(sn(u,t.dataKey));c!=null&&(a=a==null?c[0]:Math.min(a,c[0]),s=s==null?c[1]:Math.max(s,c[1]))}),at(a)&&at(s))return[a,s]},kde=le([OA,wr,vde,MA,Bn],j$,{memoizeOptions:{resultEqualityCheck:T0}});function Cde(e){var{value:t}=e;if(va(t)||t instanceof Date)return t}var Ode=(e,t,n)=>{var r=e.map(Cde).filter(i=>i!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&O6(r))?x8(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},$$=e=>e.referenceElements.dots,kf=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),Tde=le([$$,Bn,k0],kf),B$=e=>e.referenceElements.areas,Mde=le([B$,Bn,k0],kf),U$=e=>e.referenceElements.lines,Pde=le([U$,Bn,k0],kf),F$=(e,t)=>{if(e!=null){var n=Ao(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},Nde=le(Tde,Bn,F$),H$=(e,t)=>{if(e!=null){var n=Ao(e.flatMap(r=>[t==="xAxis"?r.x1:r.y1,t==="xAxis"?r.x2:r.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},Rde=le([Mde,Bn],H$);function Dde(e){var t;if(e.x!=null)return Ao([e.x]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.x);return n==null||n.length===0?[]:Ao(n)}function Ide(e){var t;if(e.y!=null)return Ao([e.y]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.y);return n==null||n.length===0?[]:Ao(n)}var G$=(e,t)=>{if(e!=null){var n=e.flatMap(r=>t==="xAxis"?Dde(r):Ide(r));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},Lde=le([Pde,Bn],G$),zde=le(Nde,Lde,Rde,(e,t,n)=>xy(e,n,t)),q$=(e,t,n,r,i,a,s,u)=>{if(n!=null)return n;var c=s==="vertical"&&u==="xAxis"||s==="horizontal"&&u==="yAxis",f=c?xy(r,a,i):xy(a,i);return Bue(t,f,e.allowDataOverflow)},jde=le([wr,L$,z$,Ede,kde,zde,_t,Bn],q$,{memoizeOptions:{resultEqualityCheck:T0}}),$de=[0,1],V$=(e,t,n,r,i,a,s)=>{if(!((e==null||n==null||n.length===0)&&s===void 0)){var{dataKey:u,type:c}=e,f=Wi(t,a);if(f&&u==null){var h;return x8(0,(h=n==null?void 0:n.length)!==null&&h!==void 0?h:0)}return c==="category"?Ode(r,e,f):i==="expand"?$de:s}},PA=le([wr,_t,OA,Rp,_0,Bn,jde],V$),Cf=le([wr,A$,JE],x$),K$=(e,t,n)=>{var{niceTicks:r}=t;if(r!=="none"){var i=TA(t),a=Array.isArray(i)&&(i[0]==="auto"||i[1]==="auto");if((r==="snap125"||r==="adaptive")&&t!=null&&t.tickCount&&ma(e)){if(a)return t3(e,t.tickCount,t.allowDecimals,r);if(t.type==="number")return n3(e,t.tickCount,t.allowDecimals,r)}if(r==="auto"&&n==="linear"&&t!=null&&t.tickCount){if(a&&ma(e))return t3(e,t.tickCount,t.allowDecimals,"adaptive");if(t.type==="number"&&ma(e))return n3(e,t.tickCount,t.allowDecimals,"adaptive")}}},NA=le([PA,Mp,Cf],K$),Y$=(e,t,n,r)=>{if(r!=="angleAxis"&&(e==null?void 0:e.type)==="number"&&ma(t)&&Array.isArray(n)&&n.length>0){var i,a,s=t[0],u=(i=n[0])!==null&&i!==void 0?i:0,c=t[1],f=(a=n[n.length-1])!==null&&a!==void 0?a:0;return[Math.min(s,u),Math.max(c,f)]}return t},Bde=le([wr,PA,NA,Bn],Y$),Ude=le(Rp,wr,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(Ao(e.map(p=>p.value))).sort((p,g)=>p-g),i=r[0],a=r[r.length-1];if(i==null||a==null)return 1/0;var s=a-i;if(s===0)return 1/0;for(var u=0;u<r.length-1;u++){var c=r[u],f=r[u+1];if(!(c==null||f==null)){var h=f-c;n=Math.min(n,h)}}return n/s}}),W$=le(Ude,_t,L8,jn,(e,t,n,r,i)=>i,(e,t,n,r,i)=>{if(!at(e))return 0;var a=t==="vertical"?r.height:r.width;if(i==="gap")return e*a/2;if(i==="no-gap"){var s=Vi(n,e*a),u=e*a/2;return u-s-(u-s)/a*s}return 0}),Fde=(e,t,n)=>{var r=No(e,t);return r==null||typeof r.padding!="string"?0:W$(e,"xAxis",t,n,r.padding)},Hde=(e,t,n)=>{var r=Ro(e,t);return r==null||typeof r.padding!="string"?0:W$(e,"yAxis",t,n,r.padding)},Gde=le(No,Fde,(e,t)=>{var n,r;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((n=i.left)!==null&&n!==void 0?n:0)+t,right:((r=i.right)!==null&&r!==void 0?r:0)+t}}),qde=le(Ro,Hde,(e,t)=>{var n,r;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((n=i.top)!==null&&n!==void 0?n:0)+t,bottom:((r=i.bottom)!==null&&r!==void 0?r:0)+t}}),Vde=le([jn,Gde,v0,g0,(e,t,n)=>n],(e,t,n,r,i)=>{var{padding:a}=r;return i?[a.left,n.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),Kde=le([jn,_t,qde,v0,g0,(e,t,n)=>n],(e,t,n,r,i,a)=>{var{padding:s}=i;return a?[r.height-s.bottom,s.top]:t==="horizontal"?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),Ip=(e,t,n,r)=>{var i;switch(t){case"xAxis":return Vde(e,n,r);case"yAxis":return Kde(e,n,r);case"zAxis":return(i=CA(e,n))===null||i===void 0?void 0:i.range;case"angleAxis":return U8(e);case"radiusAxis":return F8(e,n);default:return}},Q$=le([wr,Ip],S0),Yde=le([Cf,Bde],tce),RA=le([wr,Cf,Yde,Q$],kA),Z$=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:i,scale:a}=n,s=Wi(e,r);if(s&&(i==="number"||a!=="auto"))return t.map(u=>u.value)}},DA=le([_t,Rp,Mp,Bn],Z$),z0=le([RA],aA);le([RA],cde);le([RA,wde],_$);le([Np,MA,Bn],Ade);function X$(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var j0=(e,t)=>t,$0=(e,t,n)=>n,Wde=le(p0,j0,$0,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(X$)),Qde=le(m0,j0,$0,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(X$)),J$=(e,t)=>({width:e.width,height:t.height}),Zde=(e,t)=>{var n=typeof t.width=="number"?t.width:xp;return{width:n,height:e.height}},eB=le(jn,No,J$),Xde=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},Jde=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},ehe=le(To,jn,Wde,j0,$0,(e,t,n,r,i)=>{var a={},s;return n.forEach(u=>{var c=J$(t,u);s==null&&(s=Xde(t,r,e));var f=r==="top"&&!i||r==="bottom"&&i;a[u.id]=s-Number(f)*c.height,s+=(f?-1:1)*c.height}),a}),the=le(Oo,jn,Qde,j0,$0,(e,t,n,r,i)=>{var a={},s;return n.forEach(u=>{var c=Zde(t,u);s==null&&(s=Jde(t,r,e));var f=r==="left"&&!i||r==="right"&&i;a[u.id]=s-Number(f)*c.width,s+=(f?-1:1)*c.width}),a}),nhe=(e,t)=>{var n=No(e,t);if(n!=null)return ehe(e,n.orientation,n.mirror)},rhe=le([jn,No,nhe,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n==null?void 0:n[r];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),ihe=(e,t)=>{var n=Ro(e,t);if(n!=null)return the(e,n.orientation,n.mirror)},ahe=le([jn,Ro,ihe,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n==null?void 0:n[r];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),tB=le(jn,Ro,(e,t)=>{var n=typeof t.width=="number"?t.width:xp;return{width:n,height:e.height}}),z3=(e,t,n)=>{switch(t){case"xAxis":return eB(e,n).width;case"yAxis":return tB(e,n).height;default:return}},nB=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:i,type:a,dataKey:s}=n,u=Wi(e,r),c=t.map(f=>f.value);if(s&&u&&a==="category"&&i&&O6(c))return c}},IA=le([_t,Rp,wr,Bn],nB),j3=le([_t,mde,Cf,z0,IA,DA,Ip,NA,Bn],(e,t,n,r,i,a,s,u,c)=>{if(t!=null){var f=Wi(e,c);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:c,categoricalDomain:a,duplicateDomain:i,isCategorical:f,niceTicks:u,range:s,realScaleType:n,scale:r}}}),ohe=(e,t,n,r,i,a,s,u,c)=>{if(!(t==null||r==null)){var f=Wi(e,c),{type:h,ticks:p,tickCount:g}=t,v=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,y=h==="category"&&r.bandwidth?r.bandwidth()/v:0;y=c==="angleAxis"&&a!=null&&a.length>=2?Ir(a[0]-a[1])*2*y:y;var b=p||i;return b?b.map((w,_)=>{var C=s?s.indexOf(w):w,E=r.map(C);return at(E)?{index:_,coordinate:E+y,value:w,offset:y}:null}).filter(Lr):f&&u?u.map((w,_)=>{var C=r.map(w);return at(C)?{coordinate:C+y,value:w,index:_,offset:y}:null}).filter(Lr):r.ticks?r.ticks(g).map((w,_)=>{var C=r.map(w);return at(C)?{coordinate:C+y,value:w,index:_,offset:y}:null}).filter(Lr):r.domain().map((w,_)=>{var C=r.map(w);return at(C)?{coordinate:C+y,value:s?s[w]:w,index:_,offset:y}:null}).filter(Lr)}},rB=le([_t,Mp,Cf,z0,NA,Ip,IA,DA,Bn],ohe),she=(e,t,n,r,i,a,s)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var u=Wi(e,s),{tickCount:c}=t,f=0;return f=s==="angleAxis"&&(r==null?void 0:r.length)>=2?Ir(r[0]-r[1])*2*f:f,u&&a?a.map((h,p)=>{var g=n.map(h);return at(g)?{coordinate:g+f,value:h,index:p,offset:f}:null}).filter(Lr):n.ticks?n.ticks(c).map((h,p)=>{var g=n.map(h);return at(g)?{coordinate:g+f,value:h,index:p,offset:f}:null}).filter(Lr):n.domain().map((h,p)=>{var g=n.map(h);return at(g)?{coordinate:g+f,value:i?i[h]:h,index:p,offset:f}:null}).filter(Lr)}},wa=le([_t,Mp,z0,Ip,IA,DA,Bn],she),xa=le(wr,z0,(e,t)=>{if(!(e==null||t==null))return by(by({},e),{},{scale:t})}),lhe=le([wr,Cf,PA,Q$],kA),uhe=le([lhe],aA);le((e,t,n)=>CA(e,n),uhe,(e,t)=>{if(!(e==null||t==null))return by(by({},e),{},{scale:t})});var che=le([_t,p0,m0],(e,t,n)=>{switch(e){case"horizontal":return t.some(r=>r.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(r=>r.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),fhe=(e,t,n)=>{var r;return(r=e.renderedTicks[t])===null||r===void 0?void 0:r[n]};le([fhe],e=>{if(!(!e||e.length===0))return t=>{var n,r=1/0,i=e[0];for(var a of e){var s=Math.abs(a.coordinate-t);s<r&&(r=s,i=a)}return(n=i)===null||n===void 0?void 0:n.value}});var iB=e=>e.options.defaultTooltipEventType,aB=e=>e.options.validateTooltipEventTypes;function oB(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function LA(e,t){var n=iB(e),r=aB(e);return oB(t,n,r)}function dhe(e){return Ge(t=>LA(t,e))}var sB=(e,t)=>{var n,r=Number(t);if(!(qi(r)||t==null))return r>=0?e==null||(n=e[r])===null||n===void 0?void 0:n.value:void 0},hhe=e=>e.tooltip.settings,Ss={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},phe={itemInteraction:{click:Ss,hover:Ss},axisInteraction:{click:Ss,hover:Ss},keyboardInteraction:Ss,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},lB=an({name:"tooltip",initialState:phe,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:Et()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Yr(e).tooltipItemPayloads.indexOf(n);i>-1&&(e.tooltipItemPayloads[i]=r)},prepare:Et()},removeTooltipEntrySettings:{reducer(e,t){var n=Yr(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:Et()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:mhe,replaceTooltipEntrySettings:ghe,removeTooltipEntrySettings:vhe,setTooltipSettingsState:yhe,setActiveMouseOverItemIndex:uB,mouseLeaveItem:bhe,mouseLeaveChart:cB,setActiveClickItemIndex:whe,setMouseOverAxisIndex:fB,setMouseClickAxisIndex:xhe,setSyncInteraction:m2,setKeyboardInteraction:_y}=lB.actions,_he=lB.reducer;function $3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Bg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$3(Object(n),!0).forEach(function(r){She(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function She(e,t,n){return(t=Ehe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ehe(e){var t=Ahe(e,"string");return typeof t=="symbol"?t:t+""}function Ahe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function khe(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function Che(e){return e.index!=null}var dB=(e,t,n,r)=>{if(t==null)return Ss;var i=khe(e,t,n);if(i==null)return Ss;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(Che(i)){if(a)return Bg(Bg({},i),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return Bg(Bg({},Ss),{},{coordinate:i.coordinate})};function Ohe(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var n=Number(e);return Number.isFinite(n)?n:void 0}function The(e,t){var n=Ohe(e),r=t[0],i=t[1];if(n===void 0)return!1;var a=Math.min(r,i),s=Math.max(r,i);return n>=a&&n<=s}function Mhe(e,t,n){if(n==null||t==null)return!0;var r=sn(e,t);return r==null||!ma(n)?!0:The(r,n)}var zA=(e,t,n,r)=>{var i=e==null?void 0:e.index;if(i==null)return null;var a=Number(i);if(!at(a))return i;var s=0,u=1/0;t.length>0&&(u=t.length-1);var c=Math.max(s,Math.min(a,u)),f=t[c];return f==null||Mhe(f,n,r)?String(c):null},hB=(e,t,n,r,i,a,s)=>{if(a!=null){var u=s[0],c=u==null?void 0:u.getPosition(a);if(c!=null)return c;var f=i==null?void 0:i[Number(a)];if(f)switch(n){case"horizontal":return{x:f.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:f.coordinate}}}},pB=(e,t,n,r)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;if(n==="hover"?i=e.itemInteraction.hover.graphicalItemId:i=e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&i==null)return e.tooltipItemPayloads;if(i==null&&r!=null){var a=e.tooltipItemPayloads[0];return a!=null?[a]:[]}return e.tooltipItemPayloads.filter(s=>{var u;return((u=s.settings)===null||u===void 0?void 0:u.graphicalItemId)===i})},mB=e=>e.options.tooltipPayloadSearcher,Of=e=>e.tooltip;function B3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function U3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B3(Object(n),!0).forEach(function(r){Phe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Phe(e,t,n){return(t=Nhe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nhe(e){var t=Rhe(e,"string");return typeof t=="symbol"?t:t+""}function Rhe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dhe(e){if(typeof e=="string"||typeof e=="number")return e}function Ihe(e){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e}function Lhe(e){if(typeof e=="string"||typeof e=="number")return e;if(typeof e=="function")return t=>e(t)}function F3(e){if(typeof e=="string")return e}function zhe(e){if(!(e==null||typeof e!="object")){var t="name"in e?Dhe(e.name):void 0,n="unit"in e?Ihe(e.unit):void 0,r="dataKey"in e?Lhe(e.dataKey):void 0,i="payload"in e?e.payload:void 0,a="color"in e?F3(e.color):void 0,s="fill"in e?F3(e.fill):void 0;return{name:t,unit:n,dataKey:r,payload:i,color:a,fill:s}}}function jhe(e,t){return e??t}var gB=(e,t,n,r,i,a,s)=>{if(!(t==null||a==null)){var{chartData:u,computedData:c,dataStartIndex:f,dataEndIndex:h}=n,p=[];return e.reduce((g,v)=>{var y,{dataDefinedOnItem:b,settings:w}=v,_=jhe(b,u),C=Array.isArray(_)?V6(_,f,h):_,E=(y=w==null?void 0:w.dataKey)!==null&&y!==void 0?y:r,S=w==null?void 0:w.nameKey,T;if(r&&Array.isArray(C)&&!Array.isArray(C[0])&&s==="axis"?T=T6(C,r,i):T=a(C,t,c,S),Array.isArray(T))T.forEach(M=>{var P,R,z=zhe(M),D=z==null?void 0:z.name,N=z==null?void 0:z.dataKey,$=z==null?void 0:z.payload,I=U3(U3({},w),{},{name:D,unit:z==null?void 0:z.unit,color:(P=z==null?void 0:z.color)!==null&&P!==void 0?P:w==null?void 0:w.color,fill:(R=z==null?void 0:z.fill)!==null&&R!==void 0?R:w==null?void 0:w.fill});g.push(WR({tooltipEntrySettings:I,dataKey:N,payload:$,value:sn($,N),name:D==null?void 0:String(D)}))});else{var O;g.push(WR({tooltipEntrySettings:w,dataKey:E,payload:T,value:sn(T,E),name:(O=sn(T,S))!==null&&O!==void 0?O:w==null?void 0:w.name}))}return g},p)}},jA=le([Rn,A$,JE],x$),$he=le([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),Bhe=le([Un,Af],k$),Tf=le([$he,Rn,Bhe],C$,{memoizeOptions:{resultEqualityCheck:M0}}),Uhe=le([Tf],e=>e.filter(O0)),Fhe=le([Tf],M$,{memoizeOptions:{resultEqualityCheck:M0}}),Mf=le([Fhe,Mo],P$),Hhe=le([Uhe,Mo,Rn],G8),$A=le([Mf,Rn,Tf],N$),vB=le([Rn],TA),Ghe=le([Rn],e=>e.allowDataOverflow),yB=le([vB,Ghe],E8),qhe=le([Tf],e=>e.filter(O0)),Vhe=le([Hhe,qhe,_0,z8],D$),Khe=le([Vhe,Mo,Un,yB],I$),Yhe=le([Tf],T$),Whe=le([Mf,Rn,Yhe,MA,Un],j$,{memoizeOptions:{resultEqualityCheck:T0}}),Qhe=le([$$,Un,Af],kf),Zhe=le([Qhe,Un],F$),Xhe=le([B$,Un,Af],kf),Jhe=le([Xhe,Un],H$),epe=le([U$,Un,Af],kf),tpe=le([epe,Un],G$),npe=le([Zhe,tpe,Jhe],xy),rpe=le([Rn,vB,yB,Khe,Whe,npe,_t,Un],q$),Lp=le([Rn,_t,Mf,$A,_0,Un,rpe],V$),ipe=le([Lp,Rn,jA],K$),ape=le([Rn,Lp,ipe,Un],Y$),bB=e=>{var t=Un(e),n=Af(e),r=!1;return Ip(e,t,n,r)},wB=le([Rn,bB],S0),ope=le([Rn,jA,ape,wB],kA),xB=le([ope],aA),spe=le([_t,$A,Rn,Un],nB),lpe=le([_t,$A,Rn,Un],Z$),upe=(e,t,n,r,i,a,s,u)=>{if(t){var{type:c}=t,f=Wi(e,u);if(r){var h=n==="scaleBand"&&r.bandwidth?r.bandwidth()/2:2,p=c==="category"&&r.bandwidth?r.bandwidth()/h:0;return p=u==="angleAxis"&&i!=null&&(i==null?void 0:i.length)>=2?Ir(i[0]-i[1])*2*p:p,f&&s?s.map((g,v)=>{var y=r.map(g);return at(y)?{coordinate:y+p,value:g,index:v,offset:p}:null}).filter(Lr):r.domain().map((g,v)=>{var y=r.map(g);return at(y)?{coordinate:y+p,value:a?a[g]:g,index:v,offset:p}:null}).filter(Lr)}}},Do=le([_t,Rn,jA,xB,bB,spe,lpe,Un],upe),BA=le([iB,aB,hhe],(e,t,n)=>oB(n.shared,e,t)),_B=e=>e.tooltip.settings.trigger,UA=e=>e.tooltip.settings.defaultIndex,zp=le([Of,BA,_B,UA],dB),du=le([zp,Mf,Dp,Lp],zA),SB=le([Do,du],sB),EB=le([zp],e=>{if(e)return e.dataKey}),cpe=le([zp],e=>{if(e)return e.graphicalItemId}),AB=le([Of,BA,_B,UA],pB),fpe=le([Oo,To,_t,jn,Do,UA,AB],hB),dpe=le([zp,fpe],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),hpe=le([zp],e=>{var t;return(t=e==null?void 0:e.active)!==null&&t!==void 0?t:!1}),ppe=le([AB,du,Mo,Dp,SB,mB,BA],gB),mpe=le([ppe],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function H3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function G3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H3(Object(n),!0).forEach(function(r){gpe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gpe(e,t,n){return(t=vpe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vpe(e){var t=ype(e,"string");return typeof t=="symbol"?t:t+""}function ype(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bpe=()=>Ge(Rn),wpe=()=>{var e=bpe(),t=Ge(Do),n=Ge(xB);return Gs(!e||!n?void 0:G3(G3({},e),{},{scale:n}),t)};function q3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q3(Object(n),!0).forEach(function(r){xpe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xpe(e,t,n){return(t=_pe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _pe(e){var t=Spe(e,"string");return typeof t=="symbol"?t:t+""}function Spe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Epe=(e,t,n,r)=>{var i=t.find(a=>a&&a.index===n);if(i){if(e==="horizontal")return{x:i.coordinate,y:r.relativeY};if(e==="vertical")return{x:r.relativeX,y:i.coordinate}}return{x:0,y:0}},Ape=(e,t,n,r)=>{var i=t.find(f=>f&&f.index===n);if(i){if(e==="centric"){var a=i.coordinate,{radius:s}=r;return dc(dc(dc({},r),Jn(r.cx,r.cy,s,a)),{},{angle:a,radius:s})}var u=i.coordinate,{angle:c}=r;return dc(dc(dc({},r),Jn(r.cx,r.cy,u,c)),{},{angle:c,radius:u})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function kpe(e,t){var{relativeX:n,relativeY:r}=e;return n>=t.left&&n<=t.left+t.width&&r>=t.top&&r<=t.top+t.height}var kB=(e,t,n,r,i)=>{var a,s=(a=t==null?void 0:t.length)!==null&&a!==void 0?a:0;if(s<=1||e==null)return 0;if(r==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var u=0;u<s;u++){var c,f,h,p,g,v=u>0?(c=n[u-1])===null||c===void 0?void 0:c.coordinate:(f=n[s-1])===null||f===void 0?void 0:f.coordinate,y=(h=n[u])===null||h===void 0?void 0:h.coordinate,b=u>=s-1?(p=n[0])===null||p===void 0?void 0:p.coordinate:(g=n[u+1])===null||g===void 0?void 0:g.coordinate,w=void 0;if(!(v==null||y==null||b==null))if(Ir(y-v)!==Ir(b-y)){var _=[];if(Ir(b-y)===Ir(i[1]-i[0])){w=b;var C=y+i[1]-i[0];_[0]=Math.min(C,(C+v)/2),_[1]=Math.max(C,(C+v)/2)}else{w=v;var E=b+i[1]-i[0];_[0]=Math.min(y,(E+y)/2),_[1]=Math.max(y,(E+y)/2)}var S=[Math.min(y,(w+y)/2),Math.max(y,(w+y)/2)];if(e>S[0]&&e<=S[1]||e>=_[0]&&e<=_[1]){var T;return(T=n[u])===null||T===void 0?void 0:T.index}}else{var O=Math.min(v,b),M=Math.max(v,b);if(e>(O+y)/2&&e<=(M+y)/2){var P;return(P=n[u])===null||P===void 0?void 0:P.index}}}else if(t)for(var R=0;R<s;R++){var z=t[R];if(z!=null){var D=t[R+1],N=t[R-1];if(R===0&&D!=null&&e<=(z.coordinate+D.coordinate)/2||R===s-1&&N!=null&&e>(z.coordinate+N.coordinate)/2||R>0&&R<s-1&&N!=null&&D!=null&&e>(z.coordinate+N.coordinate)/2&&e<=(z.coordinate+D.coordinate)/2)return z.index}}return-1},CB=()=>Ge(JE),FA=(e,t)=>t,OB=(e,t,n)=>n,HA=(e,t,n,r)=>r,Cpe=le(Do,e=>h0(e,t=>t.coordinate)),GA=le([Of,FA,OB,HA],dB),qA=le([GA,Mf,Dp,Lp],zA),Ope=(e,t,n)=>{if(t!=null){var r=Of(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},TB=le([Of,FA,OB,HA],pB),Sy=le([Oo,To,_t,jn,Do,HA,TB],hB),Tpe=le([GA,Sy],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),MB=le([Do,qA],sB),Mpe=le([TB,qA,Mo,Dp,MB,mB,FA],gB),Ppe=le([GA,qA],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),Npe=(e,t,n,r,i,a,s)=>{if(!(!e||!n||!r||!i)&&kpe(e,s)){var u=gse(e,t),c=kB(u,a,i,n,r),f=Epe(t,i,c,e);return{activeIndex:String(c),activeCoordinate:f}}},Rpe=(e,t,n,r,i,a,s)=>{if(!(!e||!r||!i||!a||!n)){var u=Mue(e,n);if(u){var c=vse(u,t),f=kB(c,s,a,r,i),h=Ape(t,a,f,u);return{activeIndex:String(f),activeCoordinate:h}}}},Dpe=(e,t,n,r,i,a,s,u)=>{if(!(!e||!t||!r||!i||!a))return t==="horizontal"||t==="vertical"?Npe(e,t,r,i,a,s,u):Rpe(e,t,n,r,i,a,s)},Ipe=le(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(t!=null){var r=e[t];if(r!=null)return n?r.panoramaElement:r.element}}),Lpe=le(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(r=>parseInt(r,10)).concat(Object.values(Pn)),n=Array.from(new Set(t));return n.sort((r,i)=>r-i)},{memoizeOptions:{resultEqualityCheck:ece}});function V3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function K3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V3(Object(n),!0).forEach(function(r){zpe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zpe(e,t,n){return(t=jpe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jpe(e){var t=$pe(e,"string");return typeof t=="symbol"?t:t+""}function $pe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bpe={},Upe={zIndexMap:Object.values(Pn).reduce((e,t)=>K3(K3({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),Bpe)},Fpe=new Set(Object.values(Pn));function Hpe(e){return Fpe.has(e)}var PB=an({name:"zIndex",initialState:Upe,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:Et()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(e.zIndexMap[n].consumers-=1,e.zIndexMap[n].consumers<=0&&!Hpe(n)&&delete e.zIndexMap[n])},prepare:Et()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n,element:r,isPanorama:i}=t.payload;e.zIndexMap[n]?i?e.zIndexMap[n].panoramaElement=r:e.zIndexMap[n].element=r:e.zIndexMap[n]={consumers:0,element:i?void 0:r,panoramaElement:i?r:void 0}},prepare:Et()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:Et()}}}),{registerZIndexPortal:Gpe,unregisterZIndexPortal:qpe,registerZIndexPortalElement:Vpe,unregisterZIndexPortalElement:Kpe}=PB.actions,Ype=PB.reducer;function ri(e){var{zIndex:t,children:n}=e,r=Wse(),i=r&&t!==void 0&&t!==0,a=$n(),s=Qt();k.useLayoutEffect(()=>i?(s(Gpe({zIndex:t})),()=>{s(qpe({zIndex:t}))}):Co,[s,t,i]);var u=Ge(c=>Ipe(c,t,a));return i?u?jy.createPortal(n,u):null:n}function g2(){return g2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g2.apply(null,arguments)}function Y3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ug(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Y3(Object(n),!0).forEach(function(r){Wpe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wpe(e,t,n){return(t=Qpe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qpe(e){var t=Zpe(e,"string");return typeof t=="symbol"?t:t+""}function Zpe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xpe(e){var{cursor:t,cursorComp:n,cursorProps:r}=e;return k.isValidElement(t)?k.cloneElement(t,r):k.createElement(n,r)}function Jpe(e){var t,{coordinate:n,payload:r,index:i,offset:a,tooltipAxisBandSize:s,layout:u,cursor:c,tooltipEventType:f,chartName:h}=e,p=n,g=r,v=i;if(!c||!p||h!=="ScatterChart"&&f!=="axis")return null;var y,b,w;if(h==="ScatterChart")y=p,b=Gle,w=Pn.cursorLine;else if(h==="BarChart")y=qle(u,p,a,s),b=v8,w=Pn.cursorRectangle;else if(u==="radial"&&N6(p)){var{cx:_,cy:C,radius:E,startAngle:S,endAngle:T}=y8(p);y={cx:_,cy:C,startAngle:S,endAngle:T,innerRadius:E,outerRadius:E},b=w8,w=Pn.cursorLine}else y={points:Due(u,p,a)},b=mh,w=Pn.cursorLine;var O=typeof c=="object"&&"className"in c?c.className:void 0,M=Ug(Ug(Ug(Ug({stroke:"#ccc",pointerEvents:"none"},a),y),bp(c)),{},{payload:g,payloadIndex:v,className:kt("recharts-tooltip-cursor",O)});return k.createElement(ri,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:w},k.createElement(Xpe,{cursor:c,cursorComp:b,cursorProps:M}))}function eme(e){var t=wpe(),n=e8(),r=Ks(),i=CB();return t==null||n==null||r==null||i==null?null:k.createElement(Jpe,g2({},e,{offset:n,layout:r,tooltipAxisBandSize:t,chartName:i}))}var NB=k.createContext(null),tme=()=>k.useContext(NB),Zx={exports:{}},W3;function nme(){return W3||(W3=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(c,f,h){this.fn=c,this.context=f,this.once=h||!1}function a(c,f,h,p,g){if(typeof h!="function")throw new TypeError("The listener must be a function");var v=new i(h,p||c,g),y=n?n+f:f;return c._events[y]?c._events[y].fn?c._events[y]=[c._events[y],v]:c._events[y].push(v):(c._events[y]=v,c._eventsCount++),c}function s(c,f){--c._eventsCount===0?c._events=new r:delete c._events[f]}function u(){this._events=new r,this._eventsCount=0}u.prototype.eventNames=function(){var f=[],h,p;if(this._eventsCount===0)return f;for(p in h=this._events)t.call(h,p)&&f.push(n?p.slice(1):p);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(h)):f},u.prototype.listeners=function(f){var h=n?n+f:f,p=this._events[h];if(!p)return[];if(p.fn)return[p.fn];for(var g=0,v=p.length,y=new Array(v);g<v;g++)y[g]=p[g].fn;return y},u.prototype.listenerCount=function(f){var h=n?n+f:f,p=this._events[h];return p?p.fn?1:p.length:0},u.prototype.emit=function(f,h,p,g,v,y){var b=n?n+f:f;if(!this._events[b])return!1;var w=this._events[b],_=arguments.length,C,E;if(w.fn){switch(w.once&&this.removeListener(f,w.fn,void 0,!0),_){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,h),!0;case 3:return w.fn.call(w.context,h,p),!0;case 4:return w.fn.call(w.context,h,p,g),!0;case 5:return w.fn.call(w.context,h,p,g,v),!0;case 6:return w.fn.call(w.context,h,p,g,v,y),!0}for(E=1,C=new Array(_-1);E<_;E++)C[E-1]=arguments[E];w.fn.apply(w.context,C)}else{var S=w.length,T;for(E=0;E<S;E++)switch(w[E].once&&this.removeListener(f,w[E].fn,void 0,!0),_){case 1:w[E].fn.call(w[E].context);break;case 2:w[E].fn.call(w[E].context,h);break;case 3:w[E].fn.call(w[E].context,h,p);break;case 4:w[E].fn.call(w[E].context,h,p,g);break;default:if(!C)for(T=1,C=new Array(_-1);T<_;T++)C[T-1]=arguments[T];w[E].fn.apply(w[E].context,C)}}return!0},u.prototype.on=function(f,h,p){return a(this,f,h,p,!1)},u.prototype.once=function(f,h,p){return a(this,f,h,p,!0)},u.prototype.removeListener=function(f,h,p,g){var v=n?n+f:f;if(!this._events[v])return this;if(!h)return s(this,v),this;var y=this._events[v];if(y.fn)y.fn===h&&(!g||y.once)&&(!p||y.context===p)&&s(this,v);else{for(var b=0,w=[],_=y.length;b<_;b++)(y[b].fn!==h||g&&!y[b].once||p&&y[b].context!==p)&&w.push(y[b]);w.length?this._events[v]=w.length===1?w[0]:w:s(this,v)}return this},u.prototype.removeAllListeners=function(f){var h;return f?(h=n?n+f:f,this._events[h]&&s(this,h)):(this._events=new r,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=n,u.EventEmitter=u,e.exports=u})(Zx)),Zx.exports}var rme=nme();const ime=ti(rme);var Kh=new ime,v2="recharts.syncEvent.tooltip",Q3="recharts.syncEvent.brush",VA=(e,t)=>{if(t&&Array.isArray(e)){var n=Number.parseInt(t,10);if(!qi(n))return e[n]}},ame={chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},RB=an({name:"options",initialState:ame,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),ome=RB.reducer,{createEventEmitter:sme}=RB.actions;function lme(e){return e.tooltip.syncInteraction}var ume={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},DB=an({name:"chartData",initialState:ume,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:n,endIndex:r}=t.payload;n!=null&&(e.dataStartIndex=n),r!=null&&(e.dataEndIndex=r)}}}),{setChartData:Z3,setDataStartEndIndexes:cme,setComputedData:$ke}=DB.actions,fme=DB.reducer,dme=["x","y"];function X3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X3(Object(n),!0).forEach(function(r){hme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hme(e,t,n){return(t=pme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pme(e){var t=mme(e,"string");return typeof t=="symbol"?t:t+""}function mme(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gme(e,t){if(e==null)return{};var n,r,i=vme(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function vme(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function yme(){var e=Ge(eA),t=Ge(tA),n=Qt(),r=Ge(j8),i=Ge(Do),a=Ks(),s=y0(),u=Ge(c=>c.rootProps.className);k.useEffect(()=>{if(e==null)return Co;var c=(f,h,p)=>{if(t!==p&&e===f){if(r==="index"){var g;if(s&&h!==null&&h!==void 0&&(g=h.payload)!==null&&g!==void 0&&g.coordinate&&h.payload.sourceViewBox){var v=h.payload.coordinate,{x:y,y:b}=v,w=gme(v,dme),{x:_,y:C,width:E,height:S}=h.payload.sourceViewBox,T=hc(hc({},w),{},{x:s.x+(E?(y-_)/E:0)*s.width,y:s.y+(S?(b-C)/S:0)*s.height});n(hc(hc({},h),{},{payload:hc(hc({},h.payload),{},{coordinate:T})}))}else n(h);return}if(i!=null){var O;if(typeof r=="function"){var M={activeTooltipIndex:h.payload.index==null?void 0:Number(h.payload.index),isTooltipActive:h.payload.active,activeIndex:h.payload.index==null?void 0:Number(h.payload.index),activeLabel:h.payload.label,activeDataKey:h.payload.dataKey,activeCoordinate:h.payload.coordinate},P=r(i,M);O=i[P]}else r==="value"&&(O=i.find(j=>String(j.value)===h.payload.label));var{coordinate:R}=h.payload;if(O==null||h.payload.active===!1||R==null||s==null){n(m2({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:z,y:D}=R,N=Math.min(z,s.x+s.width),$=Math.min(D,s.y+s.height),I={x:a==="horizontal"?O.coordinate:N,y:a==="horizontal"?$:O.coordinate},U=m2({active:h.payload.active,coordinate:I,dataKey:h.payload.dataKey,index:String(O.index),label:h.payload.label,sourceViewBox:h.payload.sourceViewBox,graphicalItemId:h.payload.graphicalItemId});n(U)}}};return Kh.on(v2,c),()=>{Kh.off(v2,c)}},[u,n,t,e,r,i,a,s])}function bme(){var e=Ge(eA),t=Ge(tA),n=Qt();k.useEffect(()=>{if(e==null)return Co;var r=(i,a,s)=>{t!==s&&e===i&&n(cme(a))};return Kh.on(Q3,r),()=>{Kh.off(Q3,r)}},[n,t,e])}function wme(){var e=Qt();k.useEffect(()=>{e(sme())},[e]),yme(),bme()}function xme(e,t,n,r,i,a){var s=Ge(y=>Ope(y,e,t)),u=Ge(cpe),c=Ge(tA),f=Ge(eA),h=Ge(j8),p=Ge(lme),g=p==null?void 0:p.active,v=y0();k.useEffect(()=>{if(!g&&f!=null&&c!=null){var y=m2({active:a,coordinate:n,dataKey:s,index:i,label:typeof r=="number"?String(r):r,sourceViewBox:v,graphicalItemId:u});Kh.emit(v2,f,y,c)}},[g,n,s,u,i,r,c,f,h,a,v])}function J3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J3(Object(n),!0).forEach(function(r){_me(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _me(e,t,n){return(t=Sme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sme(e){var t=Eme(e,"string");return typeof t=="symbol"?t:t+""}function Eme(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ame(e){return e.dataKey}function kme(e,t){return k.isValidElement(e)?k.cloneElement(e,t):typeof e=="function"?k.createElement(e,t):k.createElement(ble,t)}var tI=[],Cme={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function Bke(e){var t,n,r=cr(e,Cme),{active:i,allowEscapeViewBox:a,animationDuration:s,animationEasing:u,content:c,filterNull:f,isAnimationActive:h,offset:p,payloadUniqBy:g,position:v,reverseDirection:y,useTranslate3d:b,wrapperStyle:w,cursor:_,shared:C,trigger:E,defaultIndex:S,portal:T,axisId:O}=r,M=Qt(),P=typeof S=="number"?String(S):S;k.useEffect(()=>{M(yhe({shared:C,trigger:E,axisId:O,active:i,defaultIndex:P}))},[M,C,E,O,i,P]);var R=y0(),z=d8(),D=dhe(C),{activeIndex:N,isActive:$}=(t=Ge(ie=>Ppe(ie,D,E,P)))!==null&&t!==void 0?t:{},I=Ge(ie=>Mpe(ie,D,E,P)),U=Ge(ie=>MB(ie,D,E,P)),j=Ge(ie=>Tpe(ie,D,E,P)),G=I,q=tme(),H=(n=i??$)!==null&&n!==void 0?n:!1,[V,B]=Qoe([G,H]),K=D==="axis"?U:void 0;xme(D,E,j,K,N,H);var X=T??q;if(X==null||R==null||D==null)return null;var ee=G??tI;H||(ee=tI),f&&ee.length&&(ee=zoe(ee.filter(ie=>ie.value!=null&&(ie.hide!==!0||r.includeHidden)),g,Ame));var ce=ee.length>0,he=eI(eI({},r),{},{payload:ee,label:K,active:H,activeIndex:N,coordinate:j,accessibilityLayer:z}),de=k.createElement(Mle,{allowEscapeViewBox:a,animationDuration:s,animationEasing:u,isAnimationActive:h,active:H,coordinate:j,hasPayload:ce,offset:p,position:v,reverseDirection:y,useTranslate3d:b,viewBox:R,wrapperStyle:w,lastBoundingBox:V,innerRef:B,hasPortalFromProps:!!T},kme(c,he));return k.createElement(k.Fragment,null,jy.createPortal(de,X),H&&k.createElement(eme,{cursor:_,tooltipEventType:D,coordinate:j,payload:ee,index:N}))}var IB=e=>null;IB.displayName="Cell";function Ome(e,t,n){return(t=Tme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tme(e){var t=Mme(e,"string");return typeof t=="symbol"?t:t+""}function Mme(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Pme{constructor(t){Ome(this,"cache",new Map),this.maxSize=t}get(t){var n=this.cache.get(t);return n!==void 0&&(this.cache.delete(t),this.cache.set(t,n)),n}set(t,n){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;r!=null&&this.cache.delete(r)}this.cache.set(t,n)}clear(){this.cache.clear()}size(){return this.cache.size}}function nI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Nme(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nI(Object(n),!0).forEach(function(r){Rme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rme(e,t,n){return(t=Dme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dme(e){var t=Ime(e,"string");return typeof t=="symbol"?t:t+""}function Ime(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Lme={cacheSize:2e3,enableCache:!0},LB=Nme({},Lme),rI=new Pme(LB.cacheSize),zme={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},iI="recharts_measurement_span";function jme(e,t){var n=t.fontSize||"",r=t.fontFamily||"",i=t.fontWeight||"",a=t.fontStyle||"",s=t.letterSpacing||"",u=t.textTransform||"";return"".concat(e,"|").concat(n,"|").concat(r,"|").concat(i,"|").concat(a,"|").concat(s,"|").concat(u)}var aI=(e,t)=>{try{var n=document.getElementById(iI);n||(n=document.createElement("span"),n.setAttribute("id",iI),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,zme,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},gh=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ep.isSsr)return{width:0,height:0};if(!LB.enableCache)return aI(t,n);var r=jme(t,n),i=rI.get(r);if(i)return i;var a=aI(t,n);return rI.set(r,a),a},zB;function $me(e,t,n){return(t=Bme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bme(e){var t=Ume(e,"string");return typeof t=="symbol"?t:t+""}function Ume(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oI=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,sI=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Fme=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,Hme=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Gme={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},qme=["cm","mm","pt","pc","in","Q","px"];function Vme(e){return qme.includes(e)}var kc="NaN";function Kme(e,t){return e*Gme[t]}class Qn{static parse(t){var n,[,r,i]=(n=Hme.exec(t))!==null&&n!==void 0?n:[];return r==null?Qn.NaN:new Qn(parseFloat(r),i??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,qi(t)&&(this.unit=""),n!==""&&!Fme.test(n)&&(this.num=NaN,this.unit=""),Vme(n)&&(this.num=Kme(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new Qn(NaN,""):new Qn(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new Qn(NaN,""):new Qn(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Qn(NaN,""):new Qn(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Qn(NaN,""):new Qn(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return qi(this.num)}}zB=Qn;$me(Qn,"NaN",new zB(NaN,""));function jB(e){if(e==null||e.includes(kc))return kc;for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,i,a]=(n=oI.exec(t))!==null&&n!==void 0?n:[],s=Qn.parse(r??""),u=Qn.parse(a??""),c=i==="*"?s.multiply(u):s.divide(u);if(c.isNaN())return kc;t=t.replace(oI,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,[,h,p,g]=(f=sI.exec(t))!==null&&f!==void 0?f:[],v=Qn.parse(h??""),y=Qn.parse(g??""),b=p==="+"?v.add(y):v.subtract(y);if(b.isNaN())return kc;t=t.replace(sI,b.toString())}return t}var lI=/\(([^()]*)\)/;function Yme(e){for(var t=e,n;(n=lI.exec(t))!=null;){var[,r]=n;t=t.replace(lI,jB(r))}return t}function Wme(e){var t=e.replace(/\s+/g,"");return t=Yme(t),t=jB(t),t}function Qme(e){try{return Wme(e)}catch{return kc}}function Xx(e){var t=Qme(e.slice(5,-1));return t===kc?"":t}var Zme=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],Xme=["dx","dy","angle","className","breakAll"];function y2(){return y2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y2.apply(null,arguments)}function uI(e,t){if(e==null)return{};var n,r,i=Jme(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Jme(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var $B=/[ \f\n\r\t\v\u2028\u2029]+/,BB=e=>{var{children:t,breakAll:n,style:r}=e;try{var i=[];Ht(t)||(n?i=t.toString().split(""):i=t.toString().split($B));var a=i.map(u=>({word:u,width:gh(u,r).width})),s=n?0:gh(" ",r).width;return{wordsWithComputedWidth:a,spaceWidth:s}}catch{return null}};function UB(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}function ege(e){return Ht(e)||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}var FB=(e,t,n,r)=>e.reduce((i,a)=>{var{word:s,width:u}=a,c=i[i.length-1];if(c&&u!=null&&(t==null||r||c.width+u+n<Number(t)))c.words.push(s),c.width+=u+n;else{var f={words:[s],width:u};i.push(f)}return i},[]),HB=e=>e.reduce((t,n)=>t.width>n.width?t:n),tge="…",cI=(e,t,n,r,i,a,s,u)=>{var c=e.slice(0,t),f=BB({breakAll:n,style:r,children:c+tge});if(!f)return[!1,[]];var h=FB(f.wordsWithComputedWidth,a,s,u),p=h.length>i||HB(h).width>Number(a);return[p,h]},nge=(e,t,n,r,i)=>{var{maxLines:a,children:s,style:u,breakAll:c}=e,f=Ne(a),h=String(s),p=FB(t,r,n,i);if(!f||i)return p;var g=p.length>a||HB(p).width>Number(r);if(!g)return p;for(var v=0,y=h.length-1,b=0,w;v<=y&&b<=h.length-1;){var _=Math.floor((v+y)/2),C=_-1,[E,S]=cI(h,C,c,u,a,r,n,i),[T]=cI(h,_,c,u,a,r,n,i);if(!E&&!T&&(v=_+1),E&&T&&(y=_-1),!E&&T){w=S;break}b++}return w||p},fI=e=>{var t=Ht(e)?[]:e.toString().split($B);return[{words:t,width:void 0}]},rge=e=>{var{width:t,scaleToFit:n,children:r,style:i,breakAll:a,maxLines:s}=e;if((t||n)&&!Ep.isSsr){var u,c,f=BB({breakAll:a,children:r,style:i});if(f){var{wordsWithComputedWidth:h,spaceWidth:p}=f;u=h,c=p}else return fI(r);return nge({breakAll:a,children:r,maxLines:s,style:i},u,c,t,!!n)}return fI(r)},GB="#808080",ige={angle:0,breakAll:!1,capHeight:"0.71em",fill:GB,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},KA=k.forwardRef((e,t)=>{var n=cr(e,ige),{x:r,y:i,lineHeight:a,capHeight:s,fill:u,scaleToFit:c,textAnchor:f,verticalAnchor:h}=n,p=uI(n,Zme),g=k.useMemo(()=>rge({breakAll:p.breakAll,children:p.children,maxLines:p.maxLines,scaleToFit:c,style:p.style,width:p.width}),[p.breakAll,p.children,p.maxLines,c,p.style,p.width]),{dx:v,dy:y,angle:b,className:w,breakAll:_}=p,C=uI(p,Xme);if(!va(r)||!va(i)||g.length===0)return null;var E=Number(r)+(Ne(v)?v:0),S=Number(i)+(Ne(y)?y:0);if(!at(E)||!at(S))return null;var T;switch(h){case"start":T=Xx("calc(".concat(s,")"));break;case"middle":T=Xx("calc(".concat((g.length-1)/2," * -").concat(a," + (").concat(s," / 2))"));break;default:T=Xx("calc(".concat(g.length-1," * -").concat(a,")"));break}var O=[],M=g[0];if(c&&M!=null){var P=M.width,{width:R}=p;O.push("scale(".concat(Ne(R)&&Ne(P)?R/P:1,")"))}return b&&O.push("rotate(".concat(b,", ").concat(E,", ").concat(S,")")),O.length&&(C.transform=O.join(" ")),k.createElement("text",y2({},ur(C),{ref:t,x:E,y:S,className:kt("recharts-text",w),textAnchor:f,fill:u.includes("url")?GB:u}),g.map((z,D)=>{var N=z.words.join(_?"":" ");return k.createElement("tspan",{x:E,dy:D===0?T:a,key:"".concat(N,"-").concat(D)},N)}))});KA.displayName="Text";function dI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ra(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dI(Object(n),!0).forEach(function(r){age(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function age(e,t,n){return(t=oge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oge(e){var t=sge(e,"string");return typeof t=="symbol"?t:t+""}function sge(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lge=e=>{var{viewBox:t,position:n,offset:r=0,parentViewBox:i}=e,{x:a,y:s,height:u,upperWidth:c,lowerWidth:f}=qE(t),h=a,p=a+(c-f)/2,g=(h+p)/2,v=(c+f)/2,y=h+c/2,b=u>=0?1:-1,w=b*r,_=b>0?"end":"start",C=b>0?"start":"end",E=c>=0?1:-1,S=E*r,T=E>0?"end":"start",O=E>0?"start":"end",M=i;if(n==="top"){var P={x:h+c/2,y:s-w,horizontalAnchor:"middle",verticalAnchor:_};return M&&(P.height=Math.max(s-M.y,0),P.width=c),P}if(n==="bottom"){var R={x:p+f/2,y:s+u+w,horizontalAnchor:"middle",verticalAnchor:C};return M&&(R.height=Math.max(M.y+M.height-(s+u),0),R.width=f),R}if(n==="left"){var z={x:g-S,y:s+u/2,horizontalAnchor:T,verticalAnchor:"middle"};return M&&(z.width=Math.max(z.x-M.x,0),z.height=u),z}if(n==="right"){var D={x:g+v+S,y:s+u/2,horizontalAnchor:O,verticalAnchor:"middle"};return M&&(D.width=Math.max(M.x+M.width-D.x,0),D.height=u),D}var N=M?{width:v,height:u}:{};return n==="insideLeft"?ra({x:g+S,y:s+u/2,horizontalAnchor:O,verticalAnchor:"middle"},N):n==="insideRight"?ra({x:g+v-S,y:s+u/2,horizontalAnchor:T,verticalAnchor:"middle"},N):n==="insideTop"?ra({x:h+c/2,y:s+w,horizontalAnchor:"middle",verticalAnchor:C},N):n==="insideBottom"?ra({x:p+f/2,y:s+u-w,horizontalAnchor:"middle",verticalAnchor:_},N):n==="insideTopLeft"?ra({x:h+S,y:s+w,horizontalAnchor:O,verticalAnchor:C},N):n==="insideTopRight"?ra({x:h+c-S,y:s+w,horizontalAnchor:T,verticalAnchor:C},N):n==="insideBottomLeft"?ra({x:p+S,y:s+u-w,horizontalAnchor:O,verticalAnchor:_},N):n==="insideBottomRight"?ra({x:p+f-S,y:s+u-w,horizontalAnchor:T,verticalAnchor:_},N):n&&typeof n=="object"&&(Ne(n.x)||lu(n.x))&&(Ne(n.y)||lu(n.y))?ra({x:a+Vi(n.x,v),y:s+Vi(n.y,u),horizontalAnchor:"end",verticalAnchor:"end"},N):ra({x:y,y:s+u/2,horizontalAnchor:"middle",verticalAnchor:"middle"},N)},uge=["labelRef"],cge=["content"];function hI(e,t){if(e==null)return{};var n,r,i=fge(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function fge(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function pI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ch(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pI(Object(n),!0).forEach(function(r){dge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dge(e,t,n){return(t=hge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hge(e){var t=pge(e,"string");return typeof t=="symbol"?t:t+""}function pge(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ao(){return ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ao.apply(null,arguments)}var qB=k.createContext(null),mge=e=>{var{x:t,y:n,upperWidth:r,lowerWidth:i,width:a,height:s,children:u}=e,c=k.useMemo(()=>({x:t,y:n,upperWidth:r,lowerWidth:i,width:a,height:s}),[t,n,r,i,a,s]);return k.createElement(qB.Provider,{value:c},u)},VB=()=>{var e=k.useContext(qB),t=y0();return e||(t?qE(t):void 0)},gge=k.createContext(null),vge=()=>{var e=k.useContext(gge),t=Ge(H8);return e||t},yge=e=>{var{value:t,formatter:n}=e,r=Ht(e.children)?t:e.children;return typeof n=="function"?n(r):r},YA=e=>e!=null&&typeof e=="function",bge=(e,t)=>{var n=Ir(t-e),r=Math.min(Math.abs(t-e),360);return n*r},wge=(e,t,n,r,i)=>{var{offset:a,className:s}=e,{cx:u,cy:c,innerRadius:f,outerRadius:h,startAngle:p,endAngle:g,clockWise:v}=i,y=(f+h)/2,b=bge(p,g),w=b>=0?1:-1,_,C;switch(t){case"insideStart":_=p+w*a,C=v;break;case"insideEnd":_=g-w*a,C=!v;break;case"end":_=g+w*a,C=v;break;default:throw new Error("Unsupported position ".concat(t))}C=b<=0?C:!C;var E=Jn(u,c,y,_),S=Jn(u,c,y,_+(C?1:-1)*359),T="M".concat(E.x,",").concat(E.y,`
916
+ A`).concat(y,",").concat(y,",0,1,").concat(C?0:1,`,
917
+ `).concat(S.x,",").concat(S.y),O=Ht(e.id)?Bh("recharts-radial-line-"):e.id;return k.createElement("text",ao({},r,{dominantBaseline:"central",className:kt("recharts-radial-bar-label",s)}),k.createElement("defs",null,k.createElement("path",{id:O,d:T})),k.createElement("textPath",{xlinkHref:"#".concat(O)},n))},xge=(e,t,n)=>{var{cx:r,cy:i,innerRadius:a,outerRadius:s,startAngle:u,endAngle:c}=e,f=(u+c)/2;if(n==="outside"){var{x:h,y:p}=Jn(r,i,s+t,f);return{x:h,y:p,textAnchor:h>=r?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"end"};var g=(a+s)/2,{x:v,y}=Jn(r,i,g,f);return{x:v,y,textAnchor:"middle",verticalAnchor:"middle"}},uv=e=>e!=null&&"cx"in e&&Ne(e.cx),_ge={angle:0,offset:5,zIndex:Pn.label,position:"middle",textBreakAll:!1};function Sge(e){if(!uv(e))return e;var{cx:t,cy:n,outerRadius:r}=e,i=r*2;return{x:t-r,y:n-r,width:i,upperWidth:i,lowerWidth:i,height:i}}function xs(e){var t=cr(e,_ge),{viewBox:n,parentViewBox:r,position:i,value:a,children:s,content:u,className:c="",textBreakAll:f,labelRef:h}=t,p=vge(),g=VB(),v=i==="center"?g:p??g,y,b,w;n==null?y=v:uv(n)?y=n:y=qE(n);var _=Sge(y);if(!y||Ht(a)&&Ht(s)&&!k.isValidElement(u)&&typeof u!="function")return null;var C=ch(ch({},t),{},{viewBox:y});if(k.isValidElement(u)){var{labelRef:E}=C,S=hI(C,uge);return k.cloneElement(u,S)}if(typeof u=="function"){var{content:T}=C,O=hI(C,cge);if(b=k.createElement(u,O),k.isValidElement(b))return b}else b=yge(t);var M=ur(t);if(uv(y)){if(i==="insideStart"||i==="insideEnd"||i==="end")return wge(t,i,b,M,y);w=xge(y,t.offset,t.position)}else{if(!_)return null;var P=lge({viewBox:_,position:i,offset:t.offset,parentViewBox:uv(r)?void 0:r});w=ch(ch({x:P.x,y:P.y,textAnchor:P.horizontalAnchor,verticalAnchor:P.verticalAnchor},P.width!==void 0?{width:P.width}:{}),P.height!==void 0?{height:P.height}:{})}return k.createElement(ri,{zIndex:t.zIndex},k.createElement(KA,ao({ref:h,className:kt("recharts-label",c)},M,w,{textAnchor:UB(M.textAnchor)?M.textAnchor:w.textAnchor,breakAll:f}),b))}xs.displayName="Label";var Ege=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?k.createElement(xs,ao({key:"label-implicit"},r)):va(e)?k.createElement(xs,ao({key:"label-implicit",value:e},r)):k.isValidElement(e)?e.type===xs?k.cloneElement(e,ch({key:"label-implicit"},r)):k.createElement(xs,ao({key:"label-implicit",content:e},r)):YA(e)?k.createElement(xs,ao({key:"label-implicit",content:e},r)):e&&typeof e=="object"?k.createElement(xs,ao({},e,{key:"label-implicit"},r)):null};function Age(e){var{label:t,labelRef:n}=e,r=VB();return Ege(t,r,n)||null}var kge=["valueAccessor"],Cge=["dataKey","clockWise","id","textBreakAll","zIndex"];function Ey(){return Ey=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ey.apply(null,arguments)}function mI(e,t){if(e==null)return{};var n,r,i=Oge(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Oge(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Tge=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(ege(t))return t},KB=k.createContext(void 0),WA=KB.Provider,YB=k.createContext(void 0);YB.Provider;function Mge(){return k.useContext(KB)}function Pge(){return k.useContext(YB)}function cv(e){var{valueAccessor:t=Tge}=e,n=mI(e,kge),{dataKey:r,clockWise:i,id:a,textBreakAll:s,zIndex:u}=n,c=mI(n,Cge),f=Mge(),h=Pge(),p=f||h;return!p||!p.length?null:k.createElement(ri,{zIndex:u??Pn.label},k.createElement(tr,{className:"recharts-label-list"},p.map((g,v)=>{var y,b=Ht(r)?t(g,v):sn(g.payload,r),w=Ht(a)?{}:{id:"".concat(a,"-").concat(v)};return k.createElement(xs,Ey({key:"label-".concat(v)},ur(g),c,w,{fill:(y=n.fill)!==null&&y!==void 0?y:g.fill,parentViewBox:g.parentViewBox,value:b,textBreakAll:s,viewBox:g.viewBox,index:v,zIndex:0}))})))}cv.displayName="LabelList";function QA(e){var{label:t}=e;return t?t===!0?k.createElement(cv,{key:"labelList-implicit"}):k.isValidElement(t)||YA(t)?k.createElement(cv,{key:"labelList-implicit",content:t}):typeof t=="object"?k.createElement(cv,Ey({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function b2(){return b2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b2.apply(null,arguments)}var WB=e=>{var{cx:t,cy:n,r,className:i}=e,a=kt("recharts-dot",i);return Ne(t)&&Ne(n)&&Ne(r)?k.createElement("circle",b2({},Jr(e),$E(e),{className:a,cx:t,cy:n,r})):null},Nge={radiusAxis:{},angleAxis:{}},QB=an({name:"polarAxis",initialState:Nge,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:Uke,removeRadiusAxis:Fke,addAngleAxis:Hke,removeAngleAxis:Gke}=QB.actions,Rge=QB.reducer;function Dge(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var Jx={exports:{}},Nt={};/**
918
+ * @license React
919
+ * react-is.production.js
920
+ *
921
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
922
+ *
923
+ * This source code is licensed under the MIT license found in the
924
+ * LICENSE file in the root directory of this source tree.
925
+ */var gI;function Ige(){if(gI)return Nt;gI=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");function y(b){if(typeof b=="object"&&b!==null){var w=b.$$typeof;switch(w){case e:switch(b=b.type,b){case n:case i:case r:case c:case f:case g:return b;default:switch(b=b&&b.$$typeof,b){case s:case u:case p:case h:return b;case a:return b;default:return w}}case t:return w}}}return Nt.ContextConsumer=a,Nt.ContextProvider=s,Nt.Element=e,Nt.ForwardRef=u,Nt.Fragment=n,Nt.Lazy=p,Nt.Memo=h,Nt.Portal=t,Nt.Profiler=i,Nt.StrictMode=r,Nt.Suspense=c,Nt.SuspenseList=f,Nt.isContextConsumer=function(b){return y(b)===a},Nt.isContextProvider=function(b){return y(b)===s},Nt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Nt.isForwardRef=function(b){return y(b)===u},Nt.isFragment=function(b){return y(b)===n},Nt.isLazy=function(b){return y(b)===p},Nt.isMemo=function(b){return y(b)===h},Nt.isPortal=function(b){return y(b)===t},Nt.isProfiler=function(b){return y(b)===i},Nt.isStrictMode=function(b){return y(b)===r},Nt.isSuspense=function(b){return y(b)===c},Nt.isSuspenseList=function(b){return y(b)===f},Nt.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===i||b===r||b===c||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===p||b.$$typeof===h||b.$$typeof===s||b.$$typeof===a||b.$$typeof===u||b.$$typeof===v||b.getModuleId!==void 0)},Nt.typeOf=y,Nt}var vI;function Lge(){return vI||(vI=1,Jx.exports=Ige()),Jx.exports}var zge=Lge(),yI=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",bI=null,e_=null,ZB=e=>{if(e===bI&&Array.isArray(e_))return e_;var t=[];return k.Children.forEach(e,n=>{Ht(n)||(zge.isFragment(n)?t=t.concat(ZB(n.props.children)):t.push(n))}),e_=t,bI=e,t};function jge(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(i=>yI(i)):r=[yI(t)],ZB(e).forEach(i=>{var a=uf(i,"type.displayName")||uf(i,"type.name");a&&r.indexOf(a)!==-1&&n.push(i)}),n}var ZA=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,t_={},wI;function $ge(){return wI||(wI=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var i;if(typeof n!="object"||n==null)return!1;if(Object.getPrototypeOf(n)===null)return!0;if(Object.prototype.toString.call(n)!=="[object Object]"){const a=n[Symbol.toStringTag];return a==null||!((i=Object.getOwnPropertyDescriptor(n,Symbol.toStringTag))!=null&&i.writable)?!1:n.toString()===`[object ${a}]`}let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r}e.isPlainObject=t})(t_)),t_}var n_,xI;function Bge(){return xI||(xI=1,n_=$ge().isPlainObject),n_}var Uge=Bge();const Fge=ti(Uge);var _I,SI,EI,AI,kI;function CI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function OI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CI(Object(n),!0).forEach(function(r){Hge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hge(e,t,n){return(t=Gge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gge(e){var t=qge(e,"string");return typeof t=="symbol"?t:t+""}function qge(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ay(){return Ay=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ay.apply(null,arguments)}function qd(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var TI=(e,t,n,r,i)=>{var a=n-r,s;return s=rn(_I||(_I=qd(["M ",",",""])),e,t),s+=rn(SI||(SI=qd(["L ",",",""])),e+n,t),s+=rn(EI||(EI=qd(["L ",",",""])),e+n-a/2,t+i),s+=rn(AI||(AI=qd(["L ",",",""])),e+n-a/2-r,t+i),s+=rn(kI||(kI=qd(["L ",","," Z"])),e,t),s},Vge={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Kge=e=>{var t=cr(e,Vge),{x:n,y:r,upperWidth:i,lowerWidth:a,height:s,className:u}=t,{animationEasing:c,animationDuration:f,animationBegin:h,isUpdateAnimationActive:p}=t,g=k.useRef(null),[v,y]=k.useState(-1),b=k.useRef(i),w=k.useRef(a),_=k.useRef(s),C=k.useRef(n),E=k.useRef(r),S=kp(e,"trapezoid-");if(k.useEffect(()=>{if(g.current&&g.current.getTotalLength)try{var I=g.current.getTotalLength();I&&y(I)}catch{}},[]),n!==+n||r!==+r||i!==+i||a!==+a||s!==+s||i===0&&a===0||s===0)return null;var T=kt("recharts-trapezoid",u);if(!p)return k.createElement("g",null,k.createElement("path",Ay({},ur(t),{className:T,d:TI(n,r,i,a,s)})));var O=b.current,M=w.current,P=_.current,R=C.current,z=E.current,D="0px ".concat(v===-1?1:v,"px"),N="".concat(v,"px ").concat(v,"px"),$=h8(["strokeDasharray"],f,c);return k.createElement(Ap,{animationId:S,key:S,canBegin:v>0,duration:f,easing:c,isActive:p,begin:h},I=>{var U=Rt(O,i,I),j=Rt(M,a,I),G=Rt(P,s,I),q=Rt(R,n,I),H=Rt(z,r,I);g.current&&(b.current=U,w.current=j,_.current=G,C.current=q,E.current=H);var V=I>0?{transition:$,strokeDasharray:N}:{strokeDasharray:D};return k.createElement("path",Ay({},ur(t),{className:T,d:TI(q,H,U,j,G),ref:g,style:OI(OI({},V),t.style)}))})},Yge=["option","shapeType","activeClassName","inActiveClassName"];function Wge(e,t){if(e==null)return{};var n,r,i=Qge(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Qge(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function MI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ky(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MI(Object(n),!0).forEach(function(r){Zge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zge(e,t,n){return(t=Xge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xge(e){var t=Jge(e,"string");return typeof t=="symbol"?t:t+""}function Jge(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eve(e,t){return ky(ky({},t),e)}function tve(e,t){return e==="symbols"}function PI(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return k.createElement(v8,n);case"trapezoid":return k.createElement(Kge,n);case"sector":return k.createElement(w8,n);case"symbols":if(tve(t))return k.createElement(P6,n);break;case"curve":return k.createElement(mh,n);default:return null}}function nve(e){return k.isValidElement(e)?e.props:e}function XB(e){var{option:t,shapeType:n,activeClassName:r="recharts-active-shape",inActiveClassName:i="recharts-shape"}=e,a=Wge(e,Yge),s;if(k.isValidElement(t))s=k.cloneElement(t,ky(ky({},a),nve(t)));else if(typeof t=="function")s=t(a,a.index);else if(Fge(t)&&typeof t!="boolean"){var u=eve(t,a);s=k.createElement(PI,{shapeType:n,elementProps:u})}else{var c=a;s=k.createElement(PI,{shapeType:n,elementProps:c})}return a.isActive?k.createElement(tr,{className:r},s):k.createElement(tr,{className:i},s)}var JB=(e,t,n)=>{var r=Qt();return(i,a)=>s=>{e==null||e(i,a,s),r(uB({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}},e9=e=>{var t=Qt();return(n,r)=>i=>{e==null||e(n,r,i),t(bhe())}},t9=(e,t,n)=>{var r=Qt();return(i,a)=>s=>{e==null||e(i,a,s),r(whe({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}};function XA(e){var{tooltipEntrySettings:t}=e,n=Qt(),r=$n(),i=k.useRef(null);return k.useLayoutEffect(()=>{r||(i.current===null?n(mhe(t)):i.current!==t&&n(ghe({prev:i.current,next:t})),i.current=t)},[t,n,r]),k.useLayoutEffect(()=>()=>{i.current&&(n(vhe(i.current)),i.current=null)},[n]),null}function JA(e){var{legendPayload:t}=e,n=Qt(),r=$n(),i=k.useRef(null);return k.useLayoutEffect(()=>{r||(i.current===null?n(lle(t)):i.current!==t&&n(ule({prev:i.current,next:t})),i.current=t)},[n,r,t]),k.useLayoutEffect(()=>()=>{i.current&&(n(cle(i.current)),i.current=null)},[n]),null}var r_,rve=()=>{var[e]=k.useState(()=>Bh("uid-"));return e},ive=(r_=ZF.useId)!==null&&r_!==void 0?r_:rve;function ave(e,t){var n=ive();return t||(e?"".concat(e,"-").concat(n):n)}var ove=k.createContext(void 0),ek=e=>{var{id:t,type:n,children:r}=e,i=ave("recharts-".concat(n),t);return k.createElement(ove.Provider,{value:i},r(i))},sve={cartesianItems:[],polarItems:[]},n9=an({name:"graphicalItems",initialState:sve,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:Et()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Yr(e).cartesianItems.indexOf(n);i>-1&&(e.cartesianItems[i]=r)},prepare:Et()},removeCartesianGraphicalItem:{reducer(e,t){var n=Yr(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},prepare:Et()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:Et()},removePolarGraphicalItem:{reducer(e,t){var n=Yr(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)},prepare:Et()},replacePolarGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Yr(e).polarItems.indexOf(n);i>-1&&(e.polarItems[i]=r)},prepare:Et()}}}),{addCartesianGraphicalItem:lve,replaceCartesianGraphicalItem:uve,removeCartesianGraphicalItem:cve,addPolarGraphicalItem:qke,removePolarGraphicalItem:Vke,replacePolarGraphicalItem:Kke}=n9.actions,fve=n9.reducer,dve=e=>{var t=Qt(),n=k.useRef(null);return k.useLayoutEffect(()=>{n.current===null?t(lve(e)):n.current!==e&&t(uve({prev:n.current,next:e})),n.current=e},[t,e]),k.useLayoutEffect(()=>()=>{n.current&&(t(cve(n.current)),n.current=null)},[t]),null},tk=k.memo(dve),hve=["points"];function NI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function i_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NI(Object(n),!0).forEach(function(r){pve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pve(e,t,n){return(t=mve(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mve(e){var t=gve(e,"string");return typeof t=="symbol"?t:t+""}function gve(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cy(){return Cy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cy.apply(null,arguments)}function vve(e,t){if(e==null)return{};var n,r,i=yve(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function yve(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function bve(e){var{option:t,dotProps:n,className:r}=e;if(k.isValidElement(t))return k.cloneElement(t,n);if(typeof t=="function")return t(n);var i=kt(r,typeof t!="boolean"?t.className:""),a=n??{},{points:s}=a,u=vve(a,hve);return k.createElement(WB,Cy({},u,{className:i}))}function wve(e,t){return e==null?!1:t?!0:e.length===1}function r9(e){var{points:t,dot:n,className:r,dotClassName:i,dataKey:a,baseProps:s,needClip:u,clipPathId:c,zIndex:f=Pn.scatter}=e;if(!wve(t,n))return null;var h=ZA(n),p=uae(n),g=t.map((y,b)=>{var w,_,C=i_(i_(i_({r:3},s),p),{},{index:b,cx:(w=y.x)!==null&&w!==void 0?w:void 0,cy:(_=y.y)!==null&&_!==void 0?_:void 0,dataKey:a,value:y.value,payload:y.payload,points:t});return k.createElement(bve,{key:"dot-".concat(b),option:n,dotProps:C,className:i})}),v={};return u&&c!=null&&(v.clipPath="url(#clipPath-".concat(h?"":"dots-").concat(c,")")),k.createElement(ri,{zIndex:f},k.createElement(tr,Cy({className:r},v),g))}function RI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function DI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RI(Object(n),!0).forEach(function(r){xve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xve(e,t,n){return(t=_ve(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _ve(e){var t=Sve(e,"string");return typeof t=="symbol"?t:t+""}function Sve(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i9=0,Eve={xAxis:{},yAxis:{},zAxis:{}},a9=an({name:"cartesianAxis",initialState:Eve,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:Et()},replaceXAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.xAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.xAxis[n.id],e.xAxis[r.id]=r)},prepare:Et()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:Et()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:Et()},replaceYAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.yAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.yAxis[n.id],e.yAxis[r.id]=r)},prepare:Et()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:Et()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:Et()},replaceZAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.zAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.zAxis[n.id],e.zAxis[r.id]=r)},prepare:Et()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:Et()},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload,i=e.yAxis[n];if(i){var a,s=i.widthHistory||[];if(s.length===3&&s[0]===s[2]&&r===s[1]&&r!==i.width&&Math.abs(r-((a=s[0])!==null&&a!==void 0?a:0))<=1)return;var u=[...s,r].slice(-3);e.yAxis[n]=DI(DI({},i),{},{width:r,widthHistory:u})}}}}),{addXAxis:Ave,replaceXAxis:kve,removeXAxis:Cve,addYAxis:Ove,replaceYAxis:Tve,removeYAxis:Mve,addZAxis:Yke,replaceZAxis:Wke,removeZAxis:Qke,updateYAxisWidth:Pve}=a9.actions,Nve=a9.reducer,Rve=le([jn],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),Dve=le([Rve,Oo,To],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),B0=()=>Ge(Dve),Ive=()=>Ge(mpe);function II(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function a_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?II(Object(n),!0).forEach(function(r){Lve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):II(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lve(e,t,n){return(t=zve(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zve(e){var t=jve(e,"string");return typeof t=="symbol"?t:t+""}function jve(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $ve=e=>{var{point:t,childIndex:n,mainColor:r,activeDot:i,dataKey:a,clipPath:s}=e;if(i===!1||t.x==null||t.y==null)return null;var u={index:n,dataKey:a,cx:t.x,cy:t.y,r:4,fill:r??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},c=a_(a_(a_({},u),bp(i)),$E(i)),f;return k.isValidElement(i)?f=k.cloneElement(i,c):typeof i=="function"?f=i(c):f=k.createElement(WB,c),k.createElement(tr,{className:"recharts-active-dot",clipPath:s},f)};function w2(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:i,clipPath:a,zIndex:s=Pn.activeDot}=e,u=Ge(du),c=Ive();if(t==null||c==null)return null;var f=t.find(h=>c.includes(h.payload));return Ht(f)?null:k.createElement(ri,{zIndex:s},k.createElement($ve,{point:f,childIndex:Number(u),mainColor:n,dataKey:i,activeDot:r,clipPath:a}))}var LI=(e,t,n)=>{var r=n??e;if(!Ht(r))return Vi(r,t,0)},Bve=(e,t,n)=>{var r={},i=e.filter(O0),a=e.filter(f=>f.stackId==null),s=i.reduce((f,h)=>{var p=f[h.stackId];return p==null&&(p=[]),p.push(h),f[h.stackId]=p,f},r),u=Object.entries(s).map(f=>{var h,[p,g]=f,v=g.map(b=>b.dataKey),y=LI(t,n,(h=g[0])===null||h===void 0?void 0:h.barSize);return{stackId:p,dataKeys:v,barSize:y}}),c=a.map(f=>{var h=[f.dataKey].filter(g=>g!=null),p=LI(t,n,f.barSize);return{stackId:void 0,dataKeys:h,barSize:p}});return[...u,...c]};function zI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zI(Object(n),!0).forEach(function(r){Uve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uve(e,t,n){return(t=Fve(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fve(e){var t=Hve(e,"string");return typeof t=="symbol"?t:t+""}function Hve(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gve(e,t,n,r,i){var a,s=r.length;if(!(s<1)){var u=Vi(e,n,0,!0),c,f=[];if(at((a=r[0])===null||a===void 0?void 0:a.barSize)){var h=!1,p=n/s,g=r.reduce((C,E)=>C+(E.barSize||0),0);g+=(s-1)*u,g>=n&&(g-=(s-1)*u,u=0),g>=n&&p>0&&(h=!0,p*=.9,g=s*p);var v=(n-g)/2>>0,y={offset:v-u,size:0};c=r.reduce((C,E)=>{var S,T={stackId:E.stackId,dataKeys:E.dataKeys,position:{offset:y.offset+y.size+u,size:h?p:(S=E.barSize)!==null&&S!==void 0?S:0}},O=[...C,T];return y=T.position,O},f)}else{var b=Vi(t,n,0,!0);n-2*b-(s-1)*u<=0&&(u=0);var w=(n-2*b-(s-1)*u)/s;w>1&&(w>>=0);var _=at(i)?Math.min(w,i):w;c=r.reduce((C,E,S)=>[...C,{stackId:E.stackId,dataKeys:E.dataKeys,position:{offset:b+(w+u)*S+(w-_)/2,size:_}}],f)}return c}}var qve=(e,t,n,r,i,a,s)=>{var u=Ht(s)?t:s,c=Gve(n,r,i!==a?i:a,e,u);return i!==a&&c!=null&&(c=c.map(f=>Fg(Fg({},f),{},{position:Fg(Fg({},f.position),{},{offset:f.position.offset-i/2})}))),c},Vve=(e,t)=>{var n=C0(t);if(!(!e||n==null||t==null)){var{stackId:r}=t;if(r!=null){var i=e[r];if(i){var{stackedData:a}=i;if(a)return a.find(s=>s.key===n)}}}},Kve=(e,t)=>{if(!(e==null||t==null)){var n=e.find(r=>r.stackId===t.stackId&&t.dataKey!=null&&r.dataKeys.includes(t.dataKey));if(n!=null)return n.position}};function Yve(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&at(e.zIndex)?e.zIndex:t}var Wve=e=>{var{chartData:t}=e,n=Qt(),r=$n();return k.useEffect(()=>r?()=>{}:(n(Z3(t)),()=>{n(Z3(void 0))}),[t,n,r]),null},jI={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},o9=an({name:"brush",initialState:jI,reducers:{setBrushSettings(e,t){return t.payload==null?jI:t.payload}}}),{setBrushSettings:Zke}=o9.actions,Qve=o9.reducer;function Zve(e){return(e%180+180)%180}var Xve=function(t){var{width:n,height:r}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=Zve(i),s=a*Math.PI/180,u=Math.atan(r/n),c=s>u&&s<Math.PI-u?r/Math.sin(s):n/Math.cos(s);return Math.abs(c)},Jve={dots:[],areas:[],lines:[]},s9=an({name:"referenceElements",initialState:Jve,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=Yr(e).dots.findIndex(r=>r===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=Yr(e).areas.findIndex(r=>r===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=Yr(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:Xke,removeDot:Jke,addArea:eCe,removeArea:tCe,addLine:nCe,removeLine:rCe}=s9.actions,eye=s9.reducer,tye=k.createContext(void 0),nye=e=>{var{children:t}=e,[n]=k.useState("".concat(Bh("recharts"),"-clip")),r=B0();if(r==null)return null;var{x:i,y:a,width:s,height:u}=r;return k.createElement(tye.Provider,{value:n},k.createElement("defs",null,k.createElement("clipPath",{id:n},k.createElement("rect",{x:i,y:a,height:u,width:s}))),t)};function l9(e,t){if(t<1)return[];if(t===1)return e;for(var n=[],r=0;r<e.length;r+=t){var i=e[r];i!==void 0&&n.push(i)}return n}function rye(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Xve(r,n)}function iye(e,t,n){var r=n==="width",{x:i,y:a,width:s,height:u}=e;return t===1?{start:r?i:a,end:r?i+s:a+u}:{start:r?i+s:a+u,end:r?i:a}}function Yh(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function aye(e,t){return l9(e,t+1)}function oye(e,t,n,r,i){for(var a=(r||[]).slice(),{start:s,end:u}=t,c=0,f=1,h=s,p=function(){var y=r==null?void 0:r[c];if(y===void 0)return{v:l9(r,f)};var b=c,w,_=()=>(w===void 0&&(w=n(y,b)),w),C=y.coordinate,E=c===0||Yh(e,C,_,h,u);E||(c=0,h=s,f+=1),E&&(h=C+e*(_()/2+i),c+=f)},g;f<=a.length;)if(g=p(),g)return g.v;return[]}function sye(e,t,n,r,i){var a=(r||[]).slice(),s=a.length;if(s===0)return[];for(var{start:u,end:c}=t,f=1;f<=s;f++){for(var h=(s-1)%f,p=u,g=!0,v=function(){var S=r[b];if(S==null)return 0;var T=b,O,M=()=>(O===void 0&&(O=n(S,T)),O),P=S.coordinate,R=b===h||Yh(e,P,M,p,c);if(!R)return g=!1,1;R&&(p=P+e*(M()/2+i))},y,b=h;b<s&&(y=v(),!(y!==0&&y===1));b+=f);if(g){for(var w=[],_=h;_<s;_+=f){var C=r[_];C!=null&&w.push(C)}return w}}return[]}function $I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$I(Object(n),!0).forEach(function(r){lye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$I(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lye(e,t,n){return(t=uye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uye(e){var t=cye(e,"string");return typeof t=="symbol"?t:t+""}function cye(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fye(e,t,n,r,i){for(var a=(r||[]).slice(),s=a.length,{start:u}=t,{end:c}=t,f=function(g){var v=a[g];if(v==null)return 1;var y=v,b,w=()=>(b===void 0&&(b=n(v,g)),b);if(g===s-1){var _=e*(y.coordinate+e*w()/2-c);a[g]=y=sr(sr({},y),{},{tickCoord:_>0?y.coordinate-_*e:y.coordinate})}else a[g]=y=sr(sr({},y),{},{tickCoord:y.coordinate});if(y.tickCoord!=null){var C=Yh(e,y.tickCoord,w,u,c);C&&(c=y.tickCoord-e*(w()/2+i),a[g]=sr(sr({},y),{},{isShow:!0}))}},h=s-1;h>=0;h--)f(h);return a}function dye(e,t,n,r,i,a){var s=(r||[]).slice(),u=s.length,{start:c,end:f}=t;if(a){var h=r[u-1];if(h!=null){var p=n(h,u-1),g=e*(h.coordinate+e*p/2-f);if(s[u-1]=h=sr(sr({},h),{},{tickCoord:g>0?h.coordinate-g*e:h.coordinate}),h.tickCoord!=null){var v=Yh(e,h.tickCoord,()=>p,c,f);v&&(f=h.tickCoord-e*(p/2+i),s[u-1]=sr(sr({},h),{},{isShow:!0}))}}}for(var y=a?u-1:u,b=function(C){var E=s[C];if(E==null)return 1;var S=E,T,O=()=>(T===void 0&&(T=n(E,C)),T);if(C===0){var M=e*(S.coordinate-e*O()/2-c);s[C]=S=sr(sr({},S),{},{tickCoord:M<0?S.coordinate-M*e:S.coordinate})}else s[C]=S=sr(sr({},S),{},{tickCoord:S.coordinate});if(S.tickCoord!=null){var P=Yh(e,S.tickCoord,O,c,f);P&&(c=S.tickCoord+e*(O()/2+i),s[C]=sr(sr({},S),{},{isShow:!0}))}},w=0;w<y;w++)b(w);return s}function nk(e,t,n){var{tick:r,ticks:i,viewBox:a,minTickGap:s,orientation:u,interval:c,tickFormatter:f,unit:h,angle:p}=e;if(!i||!i.length||!r)return[];if(Ne(c)||Ep.isSsr){var g;return(g=aye(i,Ne(c)?c:0))!==null&&g!==void 0?g:[]}var v=[],y=u==="top"||u==="bottom"?"width":"height",b=h&&y==="width"?gh(h,{fontSize:t,letterSpacing:n}):{width:0,height:0},w=(T,O)=>{var M=typeof f=="function"?f(T.value,O):T.value;return y==="width"?rye(gh(M,{fontSize:t,letterSpacing:n}),b,p):gh(M,{fontSize:t,letterSpacing:n})[y]},_=i[0],C=i[1],E=i.length>=2&&_!=null&&C!=null?Ir(C.coordinate-_.coordinate):1,S=iye(a,E,y);return c==="equidistantPreserveStart"?oye(E,S,w,i,s):c==="equidistantPreserveEnd"?sye(E,S,w,i,s):(c==="preserveStart"||c==="preserveStartEnd"?v=dye(E,S,w,i,s,c==="preserveStartEnd"):v=fye(E,S,w,i,s),v.filter(T=>T.isShow))}var hye=e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:i=0,tickMargin:a=0}=e,s=0;if(t){Array.from(t).forEach(h=>{if(h){var p=h.getBoundingClientRect();p.width>s&&(s=p.width)}});var u=n?n.getBoundingClientRect().width:0,c=i+a,f=s+c+u+(n?r:0);return Math.round(f)}return 0},pye={xAxis:{},yAxis:{}},u9=an({name:"renderedTicks",initialState:pye,reducers:{setRenderedTicks:(e,t)=>{var{axisType:n,axisId:r,ticks:i}=t.payload;e[n][r]=i},removeRenderedTicks:(e,t)=>{var{axisType:n,axisId:r}=t.payload;delete e[n][r]}}}),{setRenderedTicks:mye,removeRenderedTicks:gye}=u9.actions,vye=u9.reducer,yye=["axisLine","width","height","className","hide","ticks","axisType","axisId"];function bye(e,t){if(e==null)return{};var n,r,i=wye(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wye(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function hu(){return hu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hu.apply(null,arguments)}function BI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BI(Object(n),!0).forEach(function(r){xye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xye(e,t,n){return(t=_ye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _ye(e){var t=Sye(e,"string");return typeof t=="symbol"?t:t+""}function Sye(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var po={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:Pn.axis};function Eye(e){var{x:t,y:n,width:r,height:i,orientation:a,mirror:s,axisLine:u,otherSvgProps:c}=e;if(!u)return null;var f=nn(nn(nn({},c),Jr(u)),{},{fill:"none"});if(a==="top"||a==="bottom"){var h=+(a==="top"&&!s||a==="bottom"&&s);f=nn(nn({},f),{},{x1:t,y1:n+h*i,x2:t+r,y2:n+h*i})}else{var p=+(a==="left"&&!s||a==="right"&&s);f=nn(nn({},f),{},{x1:t+p*r,y1:n,x2:t+p*r,y2:n+i})}return k.createElement("line",hu({},f,{className:kt("recharts-cartesian-axis-line",uf(u,"className"))}))}function Aye(e,t,n,r,i,a,s,u,c){var f,h,p,g,v,y,b=u?-1:1,w=e.tickSize||s,_=Ne(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case"top":f=h=e.coordinate,g=n+ +!u*i,p=g-b*w,y=p-b*c,v=_;break;case"left":p=g=e.coordinate,h=t+ +!u*r,f=h-b*w,v=f-b*c,y=_;break;case"right":p=g=e.coordinate,h=t+ +u*r,f=h+b*w,v=f+b*c,y=_;break;default:f=h=e.coordinate,g=n+ +u*i,p=g+b*w,y=p+b*c,v=_;break}return{line:{x1:f,y1:p,x2:h,y2:g},tick:{x:v,y}}}function kye(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function Cye(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function Oye(e){var{option:t,tickProps:n,value:r}=e,i,a=kt(n.className,"recharts-cartesian-axis-tick-value");if(k.isValidElement(t))i=k.cloneElement(t,nn(nn({},n),{},{className:a}));else if(typeof t=="function")i=t(nn(nn({},n),{},{className:a}));else{var s="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(s=kt(s,Dge(t))),i=k.createElement(KA,hu({},n,{className:s}),r)}return i}function Tye(e){var{ticks:t,axisType:n,axisId:r}=e,i=Qt();return k.useEffect(()=>{if(r==null||n==null)return Co;var a=t.map(s=>({value:s.value,coordinate:s.coordinate,offset:s.offset,index:s.index}));return i(mye({ticks:a,axisId:r,axisType:n})),()=>{i(gye({axisId:r,axisType:n}))}},[i,t,r,n]),null}var Mye=k.forwardRef((e,t)=>{var{ticks:n=[],tick:r,tickLine:i,stroke:a,tickFormatter:s,unit:u,padding:c,tickTextProps:f,orientation:h,mirror:p,x:g,y:v,width:y,height:b,tickSize:w,tickMargin:_,fontSize:C,letterSpacing:E,getTicksConfig:S,events:T,axisType:O,axisId:M}=e,P=nk(nn(nn({},S),{},{ticks:n}),C,E),R=Jr(S),z=bp(r),D=UB(R.textAnchor)?R.textAnchor:kye(h,p),N=Cye(h,p),$={};typeof i=="object"&&($=i);var I=nn(nn({},R),{},{fill:"none"},$),U=P.map(q=>nn({entry:q},Aye(q,g,v,y,b,h,w,p,_))),j=U.map(q=>{var{entry:H,line:V}=q;return k.createElement(tr,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(H.value,"-").concat(H.coordinate,"-").concat(H.tickCoord)},i&&k.createElement("line",hu({},I,V,{className:kt("recharts-cartesian-axis-tick-line",uf(i,"className"))})))}),G=U.map((q,H)=>{var V,B,{entry:K,tick:X}=q,ee=nn(nn(nn(nn({verticalAnchor:N},R),{},{textAnchor:D,stroke:"none",fill:a},X),{},{index:H,payload:K,visibleTicksCount:P.length,tickFormatter:s,padding:c},f),{},{angle:(V=(B=f==null?void 0:f.angle)!==null&&B!==void 0?B:R.angle)!==null&&V!==void 0?V:0}),ce=nn(nn({},ee),z);return k.createElement(tr,hu({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(K.value,"-").concat(K.coordinate,"-").concat(K.tickCoord)},BE(T,K,H)),r&&k.createElement(Oye,{option:r,tickProps:ce,value:"".concat(typeof s=="function"?s(K.value,H):K.value).concat(u||"")}))});return k.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(O,"-ticks")},k.createElement(Tye,{ticks:P,axisId:M,axisType:O}),G.length>0&&k.createElement(ri,{zIndex:Pn.label},k.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(O,"-tick-labels"),ref:t},G)),j.length>0&&k.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(O,"-tick-lines")},j))}),Pye=k.forwardRef((e,t)=>{var{axisLine:n,width:r,height:i,className:a,hide:s,ticks:u,axisType:c,axisId:f}=e,h=bye(e,yye),[p,g]=k.useState(""),[v,y]=k.useState(""),b=k.useRef(null);k.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var _;return hye({ticks:b.current,label:(_=e.labelRef)===null||_===void 0?void 0:_.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var w=k.useCallback(_=>{if(_){var C=_.getElementsByClassName("recharts-cartesian-axis-tick-value");b.current=C;var E=C[0];if(E){var S=window.getComputedStyle(E),T=S.fontSize,O=S.letterSpacing;(T!==p||O!==v)&&(g(T),y(O))}}},[p,v]);return s||r!=null&&r<=0||i!=null&&i<=0?null:k.createElement(ri,{zIndex:e.zIndex},k.createElement(tr,{className:kt("recharts-cartesian-axis",a)},k.createElement(Eye,{x:e.x,y:e.y,width:r,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:Jr(e)}),k.createElement(Mye,{ref:w,axisType:c,events:h,fontSize:p,getTicksConfig:e,height:e.height,letterSpacing:v,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:u,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:f}),k.createElement(mge,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},k.createElement(Age,{label:e.label,labelRef:e.labelRef}),e.children)))}),rk=k.forwardRef((e,t)=>{var n=cr(e,po);return k.createElement(Pye,hu({},n,{ref:t}))});rk.displayName="CartesianAxis";var Nye=["x1","y1","x2","y2","key"],Rye=["offset"],Dye=["xAxisId","yAxisId"],Iye=["xAxisId","yAxisId"];function UI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UI(Object(n),!0).forEach(function(r){Lye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lye(e,t,n){return(t=zye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zye(e){var t=jye(e,"string");return typeof t=="symbol"?t:t+""}function jye(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dl(){return Dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dl.apply(null,arguments)}function Oy(e,t){if(e==null)return{};var n,r,i=$ye(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function $ye(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Bye=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:n,x:r,y:i,width:a,height:s,ry:u}=e;return k.createElement("rect",{x:r,y:i,ry:u,width:a,height:s,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function c9(e){var{option:t,lineItemProps:n}=e,r;if(k.isValidElement(t))r=k.cloneElement(t,n);else if(typeof t=="function")r=t(n);else{var i,{x1:a,y1:s,x2:u,y2:c,key:f}=n,h=Oy(n,Nye),p=(i=Jr(h))!==null&&i!==void 0?i:{},{offset:g}=p,v=Oy(p,Rye);r=k.createElement("line",Dl({},v,{x1:a,y1:s,x2:u,y2:c,fill:"none",key:f}))}return r}function Uye(e){var{x:t,width:n,horizontal:r=!0,horizontalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:a,yAxisId:s}=e,u=Oy(e,Dye),c=i.map((f,h)=>{var p=lr(lr({},u),{},{x1:t,y1:f,x2:t+n,y2:f,key:"line-".concat(h),index:h});return k.createElement(c9,{key:"line-".concat(h),option:r,lineItemProps:p})});return k.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}function Fye(e){var{y:t,height:n,vertical:r=!0,verticalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:a,yAxisId:s}=e,u=Oy(e,Iye),c=i.map((f,h)=>{var p=lr(lr({},u),{},{x1:f,y1:t,x2:f,y2:t+n,key:"line-".concat(h),index:h});return k.createElement(c9,{option:r,lineItemProps:p,key:"line-".concat(h)})});return k.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}function Hye(e){var{horizontalFill:t,fillOpacity:n,x:r,y:i,width:a,height:s,horizontalPoints:u,horizontal:c=!0}=e;if(!c||!t||!t.length||u==null)return null;var f=u.map(p=>Math.round(p+i-i)).sort((p,g)=>p-g);i!==f[0]&&f.unshift(0);var h=f.map((p,g)=>{var v=f[g+1],y=v==null,b=y?i+s-p:v-p;if(b<=0)return null;var w=g%t.length;return k.createElement("rect",{key:"react-".concat(g),y:p,x:r,height:b,width:a,stroke:"none",fill:t[w],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return k.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}function Gye(e){var{vertical:t=!0,verticalFill:n,fillOpacity:r,x:i,y:a,width:s,height:u,verticalPoints:c}=e;if(!t||!n||!n.length)return null;var f=c.map(p=>Math.round(p+i-i)).sort((p,g)=>p-g);i!==f[0]&&f.unshift(0);var h=f.map((p,g)=>{var v=f[g+1],y=v==null,b=y?i+s-p:v-p;if(b<=0)return null;var w=g%n.length;return k.createElement("rect",{key:"react-".concat(g),x:p,y:a,width:b,height:u,stroke:"none",fill:n[w],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return k.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}var qye=(e,t)=>{var{xAxis:n,width:r,height:i,offset:a}=e;return K6(nk(lr(lr(lr({},po),n),{},{ticks:Y6(n),viewBox:{x:0,y:0,width:r,height:i}})),a.left,a.left+a.width,t)},Vye=(e,t)=>{var{yAxis:n,width:r,height:i,offset:a}=e;return K6(nk(lr(lr(lr({},po),n),{},{ticks:Y6(n),viewBox:{x:0,y:0,width:r,height:i}})),a.top,a.top+a.height,t)},Kye={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:Pn.grid};function Yye(e){var t=t8(),n=n8(),r=e8(),i=lr(lr({},cr(e,Kye)),{},{x:Ne(e.x)?e.x:r.left,y:Ne(e.y)?e.y:r.top,width:Ne(e.width)?e.width:r.width,height:Ne(e.height)?e.height:r.height}),{xAxisId:a,yAxisId:s,x:u,y:c,width:f,height:h,syncWithTicks:p,horizontalValues:g,verticalValues:v}=i,y=$n(),b=Ge(R=>j3(R,"xAxis",a,y)),w=Ge(R=>j3(R,"yAxis",s,y));if(!ya(f)||!ya(h)||!Ne(u)||!Ne(c))return null;var _=i.verticalCoordinatesGenerator||qye,C=i.horizontalCoordinatesGenerator||Vye,{horizontalPoints:E,verticalPoints:S}=i;if((!E||!E.length)&&typeof C=="function"){var T=g&&g.length,O=C({yAxis:w?lr(lr({},w),{},{ticks:T?g:w.ticks}):void 0,width:t??f,height:n??h,offset:r},T?!0:p);ty(Array.isArray(O),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof O,"]")),Array.isArray(O)&&(E=O)}if((!S||!S.length)&&typeof _=="function"){var M=v&&v.length,P=_({xAxis:b?lr(lr({},b),{},{ticks:M?v:b.ticks}):void 0,width:t??f,height:n??h,offset:r},M?!0:p);ty(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof P,"]")),Array.isArray(P)&&(S=P)}return k.createElement(ri,{zIndex:i.zIndex},k.createElement("g",{className:"recharts-cartesian-grid"},k.createElement(Bye,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),k.createElement(Hye,Dl({},i,{horizontalPoints:E})),k.createElement(Gye,Dl({},i,{verticalPoints:S})),k.createElement(Uye,Dl({},i,{offset:r,horizontalPoints:E,xAxis:b,yAxis:w})),k.createElement(Fye,Dl({},i,{offset:r,verticalPoints:S,xAxis:b,yAxis:w}))))}Yye.displayName="CartesianGrid";var Wye={},f9=an({name:"errorBars",initialState:Wye,reducers:{addErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]||(e[n]=[]),e[n].push(r)},replaceErrorBar:(e,t)=>{var{itemId:n,prev:r,next:i}=t.payload;e[n]&&(e[n]=e[n].map(a=>a.dataKey===r.dataKey&&a.direction===r.direction?i:a))},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]&&(e[n]=e[n].filter(i=>i.dataKey!==r.dataKey||i.direction!==r.direction))}}}),{addErrorBar:iCe,replaceErrorBar:aCe,removeErrorBar:oCe}=f9.actions,Qye=f9.reducer,Zye=["children"];function Xye(e,t){if(e==null)return{};var n,r,i=Jye(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Jye(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var e0e={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},t0e=k.createContext(e0e);function d9(e){var{children:t}=e,n=Xye(e,Zye);return k.createElement(t0e.Provider,{value:n},t)}function U0(e,t){var n,r,i=Ge(f=>No(f,e)),a=Ge(f=>Ro(f,t)),s=(n=i==null?void 0:i.allowDataOverflow)!==null&&n!==void 0?n:Cn.allowDataOverflow,u=(r=a==null?void 0:a.allowDataOverflow)!==null&&r!==void 0?r:On.allowDataOverflow,c=s||u;return{needClip:c,needClipX:s,needClipY:u}}function ik(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,i=B0(),{needClipX:a,needClipY:s,needClip:u}=U0(t,n);if(!u||!i)return null;var{x:c,y:f,width:h,height:p}=i;return k.createElement("clipPath",{id:"clipPath-".concat(r)},k.createElement("rect",{x:a?c:c-h/2,y:s?f:f-p/2,width:a?h:h*2,height:s?p:p*2}))}var h9=(e,t,n,r)=>xa(e,"xAxis",t,r),p9=(e,t,n,r)=>wa(e,"xAxis",t,r),m9=(e,t,n,r)=>xa(e,"yAxis",n,r),g9=(e,t,n,r)=>wa(e,"yAxis",n,r),n0e=le([_t,h9,m9,p9,g9],(e,t,n,r,i)=>Wi(e,"xAxis")?Gs(t,r,!1):Gs(n,i,!1)),r0e=(e,t,n,r,i)=>i;function i0e(e){return e.type==="line"}var a0e=le([Pp,r0e],(e,t)=>e.filter(i0e).find(n=>n.id===t)),o0e=le([_t,h9,m9,p9,g9,a0e,n0e,WE],(e,t,n,r,i,a,s,u)=>{var{chartData:c,dataStartIndex:f,dataEndIndex:h}=u;if(!(a==null||t==null||n==null||r==null||i==null||r.length===0||i.length===0||s==null||e!=="horizontal"&&e!=="vertical")){var{dataKey:p,data:g}=a,v;if(g!=null&&g.length>0?v=g:v=c==null?void 0:c.slice(f,h+1),v!=null)return k0e({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataKey:p,bandSize:s,displayedData:v})}});function v9(e){var t=bp(e),n=3,r=2;if(t!=null){var{r:i,strokeWidth:a}=t,s=Number(i),u=Number(a);return(Number.isNaN(s)||s<0)&&(s=n),(Number.isNaN(u)||u<0)&&(u=r),{r:s,strokeWidth:u}}return{r:n,strokeWidth:r}}var s0e=["id"],l0e=["type","layout","connectNulls","needClip","shape"],u0e=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function Wh(){return Wh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wh.apply(null,arguments)}function FI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ua(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FI(Object(n),!0).forEach(function(r){c0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function c0e(e,t,n){return(t=f0e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f0e(e){var t=d0e(e,"string");return typeof t=="symbol"?t:t+""}function d0e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ak(e,t){if(e==null)return{};var n,r,i=h0e(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function h0e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var p0e=e=>{var{dataKey:t,name:n,stroke:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:xf(n,t),payload:e}]},m0e=k.memo(e=>{var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:a,name:s,hide:u,unit:c,tooltipType:f,id:h}=e,p={dataDefinedOnItem:n,getPosition:Co,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:xf(s,t),hide:u,type:f,color:r,unit:c,graphicalItemId:h}};return k.createElement(XA,{tooltipEntrySettings:p})}),y9=(e,t)=>"".concat(t,"px ").concat(e,"px");function g0e(e,t){for(var n=e.length%2!==0?[...e,0]:e,r=[],i=0;i<t;++i)r.push(...n);return r}var v0e=(e,t,n)=>{var r=n.reduce((g,v)=>g+v,0);if(!r)return y9(t,e);for(var i=Math.floor(e/r),a=e%r,s=[],u=0,c=0;u<n.length;c+=(f=n[u])!==null&&f!==void 0?f:0,++u){var f,h=n[u];if(h!=null&&c+h>a){s=[...n.slice(0,u),a-c];break}}var p=s.length%2===0?[0,t]:[t];return[...g0e(n,i),...s,...p].map(g=>"".concat(g,"px")).join(", ")};function y0e(e){var{clipPathId:t,points:n,props:r}=e,{dot:i,dataKey:a,needClip:s}=r,{id:u}=r,c=ak(r,s0e),f=Jr(c);return k.createElement(r9,{points:n,dot:i,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:a,baseProps:f,needClip:s,clipPathId:t})}function b0e(e){var{showLabels:t,children:n,points:r}=e,i=k.useMemo(()=>r==null?void 0:r.map(a=>{var s,u,c={x:(s=a.x)!==null&&s!==void 0?s:0,y:(u=a.y)!==null&&u!==void 0?u:0,width:0,lowerWidth:0,upperWidth:0,height:0};return ua(ua({},c),{},{value:a.value,payload:a.payload,viewBox:c,parentViewBox:void 0,fill:void 0})}),[r]);return k.createElement(WA,{value:t?i:void 0},n)}function HI(e){var{clipPathId:t,pathRef:n,points:r,strokeDasharray:i,props:a}=e,{type:s,layout:u,connectNulls:c,needClip:f,shape:h}=a,p=ak(a,l0e),g=ua(ua({},ur(p)),{},{fill:"none",className:"recharts-line-curve",clipPath:f?"url(#clipPath-".concat(t,")"):void 0,points:r,type:s,layout:u,connectNulls:c,strokeDasharray:i??a.strokeDasharray});return k.createElement(k.Fragment,null,(r==null?void 0:r.length)>1&&k.createElement(XB,Wh({shapeType:"curve",option:h},g,{pathRef:n})),k.createElement(y0e,{points:r,clipPathId:t,props:a}))}function w0e(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function x0e(e){var{clipPathId:t,props:n,pathRef:r,previousPointsRef:i,longestAnimatedLengthRef:a}=e,{points:s,strokeDasharray:u,isAnimationActive:c,animationBegin:f,animationDuration:h,animationEasing:p,animateNewValues:g,width:v,height:y,onAnimationEnd:b,onAnimationStart:w}=n,_=i.current,C=kp(s,"recharts-line-"),E=k.useRef(C),[S,T]=k.useState(!1),O=!S,M=k.useCallback(()=>{typeof b=="function"&&b(),T(!1)},[b]),P=k.useCallback(()=>{typeof w=="function"&&w(),T(!0)},[w]),R=w0e(r.current),z=k.useRef(0);E.current!==C&&(z.current=a.current,E.current=C);var D=z.current;return k.createElement(b0e,{points:s,showLabels:O},n.children,k.createElement(Ap,{animationId:C,begin:f,duration:h,isActive:c,easing:p,onAnimationEnd:M,onAnimationStart:P,key:C},N=>{var $=Rt(D,R+D,N),I=Math.min($,R),U;if(c)if(u){var j="".concat(u).split(/[,\s]+/gim).map(H=>parseFloat(H));U=v0e(I,R,j)}else U=y9(R,I);else U=u==null?void 0:String(u);if(N>0&&R>0&&(i.current=s,a.current=Math.max(a.current,I)),_){var G=_.length/s.length,q=N===1?s:s.map((H,V)=>{var B=Math.floor(V*G);if(_[B]){var K=_[B];return ua(ua({},H),{},{x:Rt(K.x,H.x,N),y:Rt(K.y,H.y,N)})}return g?ua(ua({},H),{},{x:Rt(v*2,H.x,N),y:Rt(y/2,H.y,N)}):ua(ua({},H),{},{x:H.x,y:H.y})});return i.current=q,k.createElement(HI,{props:n,points:q,clipPathId:t,pathRef:r,strokeDasharray:U})}return k.createElement(HI,{props:n,points:s,clipPathId:t,pathRef:r,strokeDasharray:U})}),k.createElement(QA,{label:n.label}))}function _0e(e){var{clipPathId:t,props:n}=e,r=k.useRef(null),i=k.useRef(0),a=k.useRef(null);return k.createElement(x0e,{props:n,clipPathId:t,previousPointsRef:r,longestAnimatedLengthRef:i,pathRef:a})}var S0e=(e,t)=>{var n,r;return{x:(n=e.x)!==null&&n!==void 0?n:void 0,y:(r=e.y)!==null&&r!==void 0?r:void 0,value:e.value,errorVal:sn(e.payload,t)}};class E0e extends k.Component{render(){var{hide:t,dot:n,points:r,className:i,xAxisId:a,yAxisId:s,top:u,left:c,width:f,height:h,id:p,needClip:g,zIndex:v}=this.props;if(t)return null;var y=kt("recharts-line",i),b=p,{r:w,strokeWidth:_}=v9(n),C=ZA(n),E=w*2+_,S=g?"url(#clipPath-".concat(C?"":"dots-").concat(b,")"):void 0;return k.createElement(ri,{zIndex:v},k.createElement(tr,{className:y},g&&k.createElement("defs",null,k.createElement(ik,{clipPathId:b,xAxisId:a,yAxisId:s}),!C&&k.createElement("clipPath",{id:"clipPath-dots-".concat(b)},k.createElement("rect",{x:c-E/2,y:u-E/2,width:f+E,height:h+E}))),k.createElement(d9,{xAxisId:a,yAxisId:s,data:r,dataPointFormatter:S0e,errorBarOffset:0},k.createElement(_0e,{props:this.props,clipPathId:b}))),k.createElement(w2,{activeDot:this.props.activeDot,points:r,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:S}))}}var b9={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:Pn.line,type:"linear"};function A0e(e){var t=cr(e,b9),{activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:s,connectNulls:u,dot:c,hide:f,isAnimationActive:h,label:p,legendType:g,xAxisId:v,yAxisId:y,id:b}=t,w=ak(t,u0e),{needClip:_}=U0(v,y),C=B0(),E=Ks(),S=$n(),T=Ge(z=>o0e(z,v,y,S,b));if(E!=="horizontal"&&E!=="vertical"||T==null||C==null)return null;var{height:O,width:M,x:P,y:R}=C;return k.createElement(E0e,Wh({},w,{id:b,connectNulls:u,dot:c,activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:s,isAnimationActive:h,hide:f,label:p,legendType:g,xAxisId:v,yAxisId:y,points:T,layout:E,height:O,width:M,left:P,top:R,needClip:_}))}function k0e(e){var{layout:t,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:a,dataKey:s,bandSize:u,displayedData:c}=e;return c.map((f,h)=>{var p=sn(f,s);if(t==="horizontal"){var g=ey({axis:n,ticks:i,bandSize:u,entry:f,index:h}),v=Ht(p)?null:r.scale.map(p);return{x:g,y:v??null,value:p,payload:f}}var y=Ht(p)?null:n.scale.map(p),b=ey({axis:r,ticks:a,bandSize:u,entry:f,index:h});return y==null||b==null?null:{x:y,y:b,value:p,payload:f}}).filter(Boolean)}function C0e(e){var t=cr(e,b9),n=$n();return k.createElement(ek,{id:t.id,type:"line"},r=>k.createElement(k.Fragment,null,k.createElement(JA,{legendPayload:p0e(t)}),k.createElement(m0e,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:r}),k.createElement(tk,{type:"line",id:r,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:n}),k.createElement(A0e,Wh({},t,{id:r}))))}var O0e=k.memo(C0e,_f);O0e.displayName="Line";function Ea(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||r===void 0?void 0:r.xAxisId)!==null&&n!==void 0?n:i9}function Aa(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(i=>i.id===t))===null||r===void 0?void 0:r.yAxisId)!==null&&n!==void 0?n:i9}var w9=(e,t,n)=>xa(e,"xAxis",Ea(e,t),n),x9=(e,t,n)=>wa(e,"xAxis",Ea(e,t),n),_9=(e,t,n)=>xa(e,"yAxis",Aa(e,t),n),S9=(e,t,n)=>wa(e,"yAxis",Aa(e,t),n),T0e=le([_t,w9,_9,x9,S9],(e,t,n,r,i)=>Wi(e,"xAxis")?Gs(t,r,!1):Gs(n,i,!1)),M0e=(e,t)=>t,E9=le([Pp,M0e],(e,t)=>e.filter(n=>n.type==="area").find(n=>n.id===t)),A9=e=>{var t=_t(e),n=Wi(t,"xAxis");return n?"yAxis":"xAxis"},P0e=(e,t)=>{var n=A9(e);return n==="yAxis"?Aa(e,t):Ea(e,t)},N0e=(e,t,n)=>wy(e,A9(e),P0e(e,t),n),R0e=le([E9,N0e],(e,t)=>{var n;if(!(e==null||t==null)){var{stackId:r}=e,i=C0(e);if(!(r==null||i==null)){var a=(n=t[r])===null||n===void 0?void 0:n.stackedData,s=a==null?void 0:a.find(u=>u.key===i);if(s!=null)return s.map(u=>[u[0],u[1]])}}}),D0e=le([_t,w9,_9,x9,S9,R0e,S8,T0e,E9,Kue],(e,t,n,r,i,a,s,u,c,f)=>{var{chartData:h,dataStartIndex:p,dataEndIndex:g}=s;if(!(c==null||e!=="horizontal"&&e!=="vertical"||t==null||n==null||r==null||i==null||r.length===0||i.length===0||u==null)){var{data:v}=c,y;if(v&&v.length>0?y=v:y=h==null?void 0:h.slice(p,g+1),y!=null)return ebe({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataStartIndex:p,areaSettings:c,stackedData:a,displayedData:y,chartBaseValue:f,bandSize:u})}}),I0e=["id"],L0e=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function Wl(){return Wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wl.apply(null,arguments)}function k9(e,t){if(e==null)return{};var n,r,i=z0e(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function z0e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function GI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Cc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GI(Object(n),!0).forEach(function(r){j0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function j0e(e,t,n){return(t=$0e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $0e(e){var t=B0e(e,"string");return typeof t=="symbol"?t:t+""}function B0e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ty(e,t){return e&&e!=="none"?e:t}var U0e=e=>{var{dataKey:t,name:n,stroke:r,fill:i,legendType:a,hide:s}=e;return[{inactive:s,dataKey:t,type:a,color:Ty(r,i),value:xf(n,t),payload:e}]},F0e=k.memo(e=>{var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:a,name:s,hide:u,unit:c,tooltipType:f,id:h}=e,p={dataDefinedOnItem:n,getPosition:Co,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:xf(s,t),hide:u,type:f,color:Ty(r,a),unit:c,graphicalItemId:h}};return k.createElement(XA,{tooltipEntrySettings:p})});function H0e(e){var{clipPathId:t,points:n,props:r}=e,{needClip:i,dot:a,dataKey:s}=r,u=Jr(r);return k.createElement(r9,{points:n,dot:a,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:s,baseProps:u,needClip:i,clipPathId:t})}function G0e(e){var{showLabels:t,children:n,points:r}=e,i=r.map(a=>{var s,u,c={x:(s=a.x)!==null&&s!==void 0?s:0,y:(u=a.y)!==null&&u!==void 0?u:0,width:0,lowerWidth:0,upperWidth:0,height:0};return Cc(Cc({},c),{},{value:a.value,payload:a.payload,parentViewBox:void 0,viewBox:c,fill:void 0})});return k.createElement(WA,{value:t?i:void 0},n)}function qI(e){var{points:t,baseLine:n,needClip:r,clipPathId:i,props:a}=e,{layout:s,type:u,stroke:c,connectNulls:f,isRange:h}=a,{id:p}=a,g=k9(a,I0e),v=Jr(g),y=ur(g);return k.createElement(k.Fragment,null,(t==null?void 0:t.length)>1&&k.createElement(tr,{clipPath:r?"url(#clipPath-".concat(i,")"):void 0},k.createElement(mh,Wl({},y,{id:p,points:t,connectNulls:f,type:u,baseLine:n,layout:s,stroke:"none",className:"recharts-area-area"})),c!=="none"&&k.createElement(mh,Wl({},v,{className:"recharts-area-curve",layout:s,type:u,connectNulls:f,fill:"none",points:t})),c!=="none"&&h&&Array.isArray(n)&&k.createElement(mh,Wl({},v,{className:"recharts-area-curve",layout:s,type:u,connectNulls:f,fill:"none",points:n}))),k.createElement(H0e,{points:t,props:g,clipPathId:i}))}function q0e(e){var t,n,{alpha:r,baseLine:i,points:a,strokeWidth:s}=e,u=(t=a[0])===null||t===void 0?void 0:t.y,c=(n=a[a.length-1])===null||n===void 0?void 0:n.y;if(!at(u)||!at(c))return null;var f=r*Math.abs(u-c),h=Math.max(...a.map(p=>p.x||0));return Ne(i)?h=Math.max(i,h):i&&Array.isArray(i)&&i.length&&(h=Math.max(...i.map(p=>p.x||0),h)),Ne(h)?k.createElement("rect",{x:0,y:u<c?u:u-f,width:h+(s?parseInt("".concat(s),10):1),height:Math.floor(f)}):null}function V0e(e){var t,n,{alpha:r,baseLine:i,points:a,strokeWidth:s}=e,u=(t=a[0])===null||t===void 0?void 0:t.x,c=(n=a[a.length-1])===null||n===void 0?void 0:n.x;if(!at(u)||!at(c))return null;var f=r*Math.abs(u-c),h=Math.max(...a.map(p=>p.y||0));return Ne(i)?h=Math.max(i,h):i&&Array.isArray(i)&&i.length&&(h=Math.max(...i.map(p=>p.y||0),h)),Ne(h)?k.createElement("rect",{x:u<c?u:u-f,y:0,width:f,height:Math.floor(h+(s?parseInt("".concat(s),10):1))}):null}function K0e(e){var{alpha:t,layout:n,points:r,baseLine:i,strokeWidth:a}=e;return n==="vertical"?k.createElement(q0e,{alpha:t,points:r,baseLine:i,strokeWidth:a}):k.createElement(V0e,{alpha:t,points:r,baseLine:i,strokeWidth:a})}function Y0e(e){var{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:a}=e,{points:s,baseLine:u,isAnimationActive:c,animationBegin:f,animationDuration:h,animationEasing:p,onAnimationStart:g,onAnimationEnd:v}=r,y=k.useMemo(()=>({points:s,baseLine:u}),[s,u]),b=kp(y,"recharts-area-"),w=VE(),[_,C]=k.useState(!1),E=!_,S=k.useCallback(()=>{typeof v=="function"&&v(),C(!1)},[v]),T=k.useCallback(()=>{typeof g=="function"&&g(),C(!0)},[g]);if(w==null)return null;var O=i.current,M=a.current;return k.createElement(G0e,{showLabels:E,points:s},r.children,k.createElement(Ap,{animationId:b,begin:f,duration:h,isActive:c,easing:p,onAnimationEnd:S,onAnimationStart:T,key:b},P=>{if(O){var R=O.length/s.length,z=P===1?s:s.map((N,$)=>{var I=Math.floor($*R);if(O[I]){var U=O[I];return Cc(Cc({},N),{},{x:Rt(U.x,N.x,P),y:Rt(U.y,N.y,P)})}return N}),D;return Ne(u)?D=Rt(M,u,P):Ht(u)||qi(u)?D=Rt(M,0,P):D=u.map((N,$)=>{var I=Math.floor($*R);if(Array.isArray(M)&&M[I]){var U=M[I];return Cc(Cc({},N),{},{x:Rt(U.x,N.x,P),y:Rt(U.y,N.y,P)})}return N}),P>0&&(i.current=z,a.current=D),k.createElement(qI,{points:z,baseLine:D,needClip:t,clipPathId:n,props:r})}return P>0&&(i.current=s,a.current=u),k.createElement(tr,null,c&&k.createElement("defs",null,k.createElement("clipPath",{id:"animationClipPath-".concat(n)},k.createElement(K0e,{alpha:P,points:s,baseLine:u,layout:w,strokeWidth:r.strokeWidth}))),k.createElement(tr,{clipPath:"url(#animationClipPath-".concat(n,")")},k.createElement(qI,{points:s,baseLine:u,needClip:t,clipPathId:n,props:r})))}),k.createElement(QA,{label:r.label}))}function W0e(e){var{needClip:t,clipPathId:n,props:r}=e,i=k.useRef(null),a=k.useRef();return k.createElement(Y0e,{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:a})}class Q0e extends k.PureComponent{render(){var{hide:t,dot:n,points:r,className:i,top:a,left:s,needClip:u,xAxisId:c,yAxisId:f,width:h,height:p,id:g,baseLine:v,zIndex:y}=this.props;if(t)return null;var b=kt("recharts-area",i),w=g,{r:_,strokeWidth:C}=v9(n),E=ZA(n),S=_*2+C,T=u?"url(#clipPath-".concat(E?"":"dots-").concat(w,")"):void 0;return k.createElement(ri,{zIndex:y},k.createElement(tr,{className:b},u&&k.createElement("defs",null,k.createElement(ik,{clipPathId:w,xAxisId:c,yAxisId:f}),!E&&k.createElement("clipPath",{id:"clipPath-dots-".concat(w)},k.createElement("rect",{x:s-S/2,y:a-S/2,width:h+S,height:p+S}))),k.createElement(W0e,{needClip:u,clipPathId:w,props:this.props})),k.createElement(w2,{points:r,mainColor:Ty(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:T}),this.props.isRange&&Array.isArray(v)&&k.createElement(w2,{points:v,mainColor:Ty(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:T}))}}var Z0e={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,xAxisId:0,yAxisId:0,zIndex:Pn.area};function X0e(e){var t,{activeDot:n,animationBegin:r,animationDuration:i,animationEasing:a,connectNulls:s,dot:u,fill:c,fillOpacity:f,hide:h,isAnimationActive:p,legendType:g,stroke:v,xAxisId:y,yAxisId:b}=e,w=k9(e,L0e),_=Ks(),C=CB(),{needClip:E}=U0(y,b),S=$n(),{points:T,isRange:O,baseLine:M}=(t=Ge($=>D0e($,e.id,S)))!==null&&t!==void 0?t:{},P=B0();if(_!=="horizontal"&&_!=="vertical"||P==null||C!=="AreaChart"&&C!=="ComposedChart")return null;var{height:R,width:z,x:D,y:N}=P;return!T||!T.length?null:k.createElement(Q0e,Wl({},w,{activeDot:n,animationBegin:r,animationDuration:i,animationEasing:a,baseLine:M,connectNulls:s,dot:u,fill:c,fillOpacity:f,height:R,hide:h,layout:_,isAnimationActive:p,isRange:O,legendType:g,needClip:E,points:T,stroke:v,width:z,left:D,top:N,xAxisId:y,yAxisId:b}))}var J0e=(e,t,n,r,i)=>{var a=n??t;if(Ne(a))return a;var s=e==="horizontal"?i:r,u=s.scale.domain();if(s.type==="number"){var c=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return a==="dataMin"?f:a==="dataMax"||c<0?c:Math.max(Math.min(u[0],u[1]),0)}return a==="dataMin"?u[0]:a==="dataMax"?u[1]:u[0]};function ebe(e){var{areaSettings:{connectNulls:t,baseValue:n,dataKey:r},stackedData:i,layout:a,chartBaseValue:s,xAxis:u,yAxis:c,displayedData:f,dataStartIndex:h,xAxisTicks:p,yAxisTicks:g,bandSize:v}=e,y=i&&i.length,b=J0e(a,s,n,u,c),w=a==="horizontal",_=!1,C=f.map((S,T)=>{var O,M,P,R;if(y)R=i[h+T];else{var z=sn(S,r);Array.isArray(z)?(R=z,_=!0):R=[b,z]}var D=(O=(M=R)===null||M===void 0?void 0:M[1])!==null&&O!==void 0?O:null,N=D==null||y&&!t&&sn(S,r)==null;if(w){var $;return{x:ey({axis:u,ticks:p,bandSize:v,entry:S,index:T}),y:N?null:($=c.scale.map(D))!==null&&$!==void 0?$:null,value:R,payload:S}}return{x:N?null:(P=u.scale.map(D))!==null&&P!==void 0?P:null,y:ey({axis:c,ticks:g,bandSize:v,entry:S,index:T}),value:R,payload:S}}),E;return y||_?E=C.map(S=>{var T,O=Array.isArray(S.value)?S.value[0]:null;if(w){var M;return{x:S.x,y:O!=null&&S.y!=null&&(M=c.scale.map(O))!==null&&M!==void 0?M:null,payload:S.payload}}return{x:O!=null&&(T=u.scale.map(O))!==null&&T!==void 0?T:null,y:S.y,payload:S.payload}}):E=w?c.scale.map(b):u.scale.map(b),{points:C,baseLine:E??0,isRange:_}}function tbe(e){var t=cr(e,Z0e),n=$n();return k.createElement(ek,{id:t.id,type:"area"},r=>k.createElement(k.Fragment,null,k.createElement(JA,{legendPayload:U0e(t)}),k.createElement(F0e,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:r}),k.createElement(tk,{type:"area",id:r,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:W6(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),k.createElement(X0e,Wl({},t,{id:r}))))}var nbe=k.memo(tbe,_f);nbe.displayName="Area";var rbe="Invariant failed";function ibe(e,t){throw new Error(rbe)}function x2(){return x2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x2.apply(null,arguments)}function ok(e){return k.createElement(XB,x2({shapeType:"rectangle",activeClassName:"recharts-active-bar",inActiveClassName:"recharts-inactive-bar"},e))}var abe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(r,i)=>{if(Ne(t))return t;var a=Ne(r)||Ht(r);return a?t(r,i):(a||ibe(),n)}},obe=(e,t,n)=>n,sbe=(e,t)=>t,jp=le([Pp,sbe],(e,t)=>e.filter(n=>n.type==="bar").find(n=>n.id===t)),lbe=le([jp],e=>e==null?void 0:e.maxBarSize),ube=(e,t,n,r)=>r,cbe=le([_t,Pp,Ea,Aa,obe],(e,t,n,r,i)=>t.filter(a=>e==="horizontal"?a.xAxisId===n:a.yAxisId===r).filter(a=>a.isPanorama===i).filter(a=>a.hide===!1).filter(a=>a.type==="bar")),fbe=(e,t,n)=>{var r=_t(e),i=Ea(e,t),a=Aa(e,t);if(!(i==null||a==null))return r==="horizontal"?wy(e,"yAxis",a,n):wy(e,"xAxis",i,n)},dbe=(e,t)=>{var n=_t(e),r=Ea(e,t),i=Aa(e,t);if(!(r==null||i==null))return n==="horizontal"?z3(e,"xAxis",r):z3(e,"yAxis",i)},hbe=le([cbe,Vue,dbe],Bve),pbe=(e,t,n)=>{var r,i,a=jp(e,t);if(a==null)return 0;var s=Ea(e,t),u=Aa(e,t);if(s==null||u==null)return 0;var c=_t(e),f=I8(e),{maxBarSize:h}=a,p=Ht(h)?f:h,g,v;return c==="horizontal"?(g=xa(e,"xAxis",s,n),v=wa(e,"xAxis",s,n)):(g=xa(e,"yAxis",u,n),v=wa(e,"yAxis",u,n)),(r=(i=Gs(g,v,!0))!==null&&i!==void 0?i:p)!==null&&r!==void 0?r:0},C9=(e,t,n)=>{var r=_t(e),i=Ea(e,t),a=Aa(e,t);if(!(i==null||a==null)){var s,u;return r==="horizontal"?(s=xa(e,"xAxis",i,n),u=wa(e,"xAxis",i,n)):(s=xa(e,"yAxis",a,n),u=wa(e,"yAxis",a,n)),Gs(s,u)}},mbe=le([hbe,I8,que,L8,pbe,C9,lbe],qve),gbe=(e,t,n)=>{var r=Ea(e,t);if(r!=null)return xa(e,"xAxis",r,n)},vbe=(e,t,n)=>{var r=Aa(e,t);if(r!=null)return xa(e,"yAxis",r,n)},ybe=(e,t,n)=>{var r=Ea(e,t);if(r!=null)return wa(e,"xAxis",r,n)},bbe=(e,t,n)=>{var r=Aa(e,t);if(r!=null)return wa(e,"yAxis",r,n)},wbe=le([mbe,jp],Kve),xbe=le([fbe,jp],Vve),_be=le([jn,HE,gbe,vbe,ybe,bbe,wbe,_t,S8,C9,xbe,jp,ube],(e,t,n,r,i,a,s,u,c,f,h,p,g)=>{var{chartData:v,dataStartIndex:y,dataEndIndex:b}=c;if(!(p==null||s==null||t==null||u!=="horizontal"&&u!=="vertical"||n==null||r==null||i==null||a==null||f==null)){var{data:w}=p,_;if(w!=null&&w.length>0?_=w:_=v==null?void 0:v.slice(y,b+1),_!=null)return Qbe({layout:u,barSettings:p,pos:s,parentViewBox:t,bandSize:f,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:a,stackedData:h,displayedData:_,offset:e,cells:g,dataStartIndex:y})}}),Sbe=["index"];function _2(){return _2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_2.apply(null,arguments)}function Ebe(e,t){if(e==null)return{};var n,r,i=Abe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Abe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var O9=k.createContext(void 0),kbe=e=>{var t=k.useContext(O9);if(t!=null)return t.stackId;if(e!=null)return W6(e)},Cbe=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),Obe=e=>{var t=k.useContext(O9);if(t!=null){var{stackId:n}=t;return"url(#".concat(Cbe(n,e),")")}},T9=e=>{var{index:t}=e,n=Ebe(e,Sbe),r=Obe(t);return k.createElement(tr,_2({className:"recharts-bar-stack-layer",clipPath:r},n))},Tbe=["onMouseEnter","onMouseLeave","onClick"],Mbe=["value","background","tooltipPosition"],Pbe=["id"],Nbe=["onMouseEnter","onClick","onMouseLeave"];function qs(){return qs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qs.apply(null,arguments)}function VI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VI(Object(n),!0).forEach(function(r){Rbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rbe(e,t,n){return(t=Dbe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dbe(e){var t=Ibe(e,"string");return typeof t=="symbol"?t:t+""}function Ibe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function My(e,t){if(e==null)return{};var n,r,i=Lbe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Lbe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var zbe=e=>{var{dataKey:t,name:n,fill:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:xf(n,t),payload:e}]},jbe=k.memo(e=>{var{dataKey:t,stroke:n,strokeWidth:r,fill:i,name:a,hide:s,unit:u,tooltipType:c,id:f}=e,h={dataDefinedOnItem:void 0,getPosition:Co,settings:{stroke:n,strokeWidth:r,fill:i,dataKey:t,nameKey:void 0,name:xf(a,t),hide:s,type:c,color:i,unit:u,graphicalItemId:f}};return k.createElement(XA,{tooltipEntrySettings:h})});function $be(e){var t=Ge(du),{data:n,dataKey:r,background:i,allOtherBarProps:a}=e,{onMouseEnter:s,onMouseLeave:u,onClick:c}=a,f=My(a,Tbe),h=JB(s,r,a.id),p=e9(u),g=t9(c,r,a.id);if(!i||n==null)return null;var v=bp(i);return k.createElement(ri,{zIndex:Yve(i,Pn.barBackground)},n.map((y,b)=>{var{value:w,background:_,tooltipPosition:C}=y,E=My(y,Mbe);if(!_)return null;var S=h(y,b),T=p(y,b),O=g(y,b),M=vr(vr(vr(vr(vr({option:i,isActive:String(b)===t},E),{},{fill:"#eee"},_),v),BE(f,y,b)),{},{onMouseEnter:S,onMouseLeave:T,onClick:O,dataKey:r,index:b,className:"recharts-bar-background-rectangle"});return k.createElement(ok,qs({key:"background-bar-".concat(b)},M))}))}function Bbe(e){var{showLabels:t,children:n,rects:r}=e,i=r==null?void 0:r.map(a=>{var s={x:a.x,y:a.y,width:a.width,lowerWidth:a.width,upperWidth:a.width,height:a.height};return vr(vr({},s),{},{value:a.value,payload:a.payload,parentViewBox:a.parentViewBox,viewBox:s,fill:a.fill})});return k.createElement(WA,{value:t?i:void 0},n)}function Ube(e){var{shape:t,activeBar:n,baseProps:r,entry:i,index:a,dataKey:s}=e,u=Ge(du),c=Ge(EB),f=n&&String(i.originalDataIndex)===u&&(c==null||s===c),[h,p]=k.useState(!1),[g,v]=k.useState(!1);k.useEffect(()=>{var E;return f?(p(!0),E=requestAnimationFrame(()=>{v(!0)})):v(!1),()=>{cancelAnimationFrame(E)}},[f]);var y=k.useCallback(()=>{f||p(!1)},[f]),b=f&&g,w=f||h,_;f?n===!0?_=t:_=n:_=t;var C=k.createElement(ok,qs({},r,{name:String(r.name)},i,{isActive:b,option:_,index:a,dataKey:s,onTransitionEnd:y}));return w?k.createElement(ri,{zIndex:Pn.activeBar},k.createElement(T9,{index:i.originalDataIndex},C)):C}function Fbe(e){var{shape:t,baseProps:n,entry:r,index:i,dataKey:a}=e;return k.createElement(ok,qs({},n,{name:String(n.name)},r,{isActive:!1,option:t,index:i,dataKey:a}))}function Hbe(e){var t,{data:n,props:r}=e,i=(t=Jr(r))!==null&&t!==void 0?t:{},{id:a}=i,s=My(i,Pbe),{shape:u,dataKey:c,activeBar:f}=r,{onMouseEnter:h,onClick:p,onMouseLeave:g}=r,v=My(r,Nbe),y=JB(h,c,a),b=e9(g),w=t9(p,c,a);return n?k.createElement(k.Fragment,null,n.map((_,C)=>k.createElement(T9,qs({index:_.originalDataIndex,key:"rectangle-".concat(_==null?void 0:_.x,"-").concat(_==null?void 0:_.y,"-").concat(_==null?void 0:_.value,"-").concat(C),className:"recharts-bar-rectangle"},BE(v,_,C),{onMouseEnter:y(_,C),onMouseLeave:b(_,C),onClick:w(_,C)}),f?k.createElement(Ube,{shape:u,activeBar:f,baseProps:s,entry:_,index:C,dataKey:c}):k.createElement(Fbe,{shape:u,baseProps:s,entry:_,index:C,dataKey:c})))):null}function Gbe(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:i,isAnimationActive:a,animationBegin:s,animationDuration:u,animationEasing:c,onAnimationEnd:f,onAnimationStart:h}=t,p=n.current,g=kp(t,"recharts-bar-"),[v,y]=k.useState(!1),b=!v,w=k.useCallback(()=>{typeof f=="function"&&f(),y(!1)},[f]),_=k.useCallback(()=>{typeof h=="function"&&h(),y(!0)},[h]);return k.createElement(Bbe,{showLabels:b,rects:r},k.createElement(Ap,{animationId:g,begin:s,duration:u,isActive:a,easing:c,onAnimationEnd:w,onAnimationStart:_,key:g},C=>{var E=C===1?r:r==null?void 0:r.map((S,T)=>{var O=p&&p[T];if(O)return vr(vr({},S),{},{x:Rt(O.x,S.x,C),y:Rt(O.y,S.y,C),width:Rt(O.width,S.width,C),height:Rt(O.height,S.height,C)});if(i==="horizontal"){var M=Rt(0,S.height,C),P=Rt(S.stackedBarStart,S.y,C);return vr(vr({},S),{},{y:P,height:M})}var R=Rt(0,S.width,C),z=Rt(S.stackedBarStart,S.x,C);return vr(vr({},S),{},{width:R,x:z})});return C>0&&(n.current=E??null),E==null?null:k.createElement(tr,null,k.createElement(Hbe,{props:t,data:E}))}),k.createElement(QA,{label:t.label}),t.children)}function qbe(e){var t=k.useRef(null);return k.createElement(Gbe,{previousRectanglesRef:t,props:e})}var M9=0,Vbe=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:sn(e,t)}};class Kbe extends k.PureComponent{render(){var{hide:t,data:n,dataKey:r,className:i,xAxisId:a,yAxisId:s,needClip:u,background:c,id:f}=this.props;if(t||n==null)return null;var h=kt("recharts-bar",i),p=f;return k.createElement(tr,{className:h,id:f},u&&k.createElement("defs",null,k.createElement(ik,{clipPathId:p,xAxisId:a,yAxisId:s})),k.createElement(tr,{className:"recharts-bar-rectangles",clipPath:u?"url(#clipPath-".concat(p,")"):void 0},k.createElement($be,{data:n,dataKey:r,background:c,allOtherBarProps:this.props}),k.createElement(qbe,this.props)))}}var Ybe={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:M9,xAxisId:0,yAxisId:0,zIndex:Pn.bar};function Wbe(e){var{xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:a,activeBar:s,animationBegin:u,animationDuration:c,animationEasing:f,isAnimationActive:h}=e,{needClip:p}=U0(t,n),g=Ks(),v=$n(),y=jge(e.children,IB),b=Ge(C=>_be(C,e.id,v,y));if(g!=="vertical"&&g!=="horizontal")return null;var w,_=b==null?void 0:b[0];return _==null||_.height==null||_.width==null?w=0:w=g==="vertical"?_.height/2:_.width/2,k.createElement(d9,{xAxisId:t,yAxisId:n,data:b,dataPointFormatter:Vbe,errorBarOffset:w},k.createElement(Kbe,qs({},e,{layout:g,needClip:p,data:b,xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:a,activeBar:s,animationBegin:u,animationDuration:c,animationEasing:f,isAnimationActive:h})))}function Qbe(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r,hasCustomShape:i},pos:a,bandSize:s,xAxis:u,yAxis:c,xAxisTicks:f,yAxisTicks:h,stackedData:p,displayedData:g,offset:v,cells:y,parentViewBox:b,dataStartIndex:w}=e,_=t==="horizontal"?c:u,C=p?_.scale.domain():null,E=dse({numericAxis:_}),S=_.scale.map(E);return g.map((T,O)=>{var M,P,R,z,D,N;if(p){var $=p[O+w];if($==null)return null;M=sse($,C)}else M=sn(T,n),Array.isArray(M)||(M=[E,M]);var I=abe(r,M9)(M[1],O);if(t==="horizontal"){var U,j=c.scale.map(M[0]),G=c.scale.map(M[1]);if(j==null||G==null)return null;P=VR({axis:u,ticks:f,bandSize:s,offset:a.offset,entry:T,index:O}),R=(U=G??j)!==null&&U!==void 0?U:void 0,z=a.size;var q=j-G;if(D=qi(q)?0:q,N={x:P,y:v.top,width:z,height:v.height},Math.abs(I)>0&&Math.abs(D)<Math.abs(I)){var H=Ir(D||I)*(Math.abs(I)-Math.abs(D));R-=H,D+=H}}else{var V=u.scale.map(M[0]),B=u.scale.map(M[1]);if(V==null||B==null)return null;if(P=V,R=VR({axis:c,ticks:h,bandSize:s,offset:a.offset,entry:T,index:O}),z=B-V,D=a.size,N={x:v.left,y:R,width:v.width,height:D},Math.abs(I)>0&&Math.abs(z)<Math.abs(I)){var K=Ir(z||I)*(Math.abs(I)-Math.abs(z));z+=K}}if(P==null||R==null||z==null||D==null||!i&&(z===0||D===0))return null;var X=vr(vr({},T),{},{stackedBarStart:S,x:P,y:R,width:z,height:D,value:p?M:M[1],payload:T,background:N,tooltipPosition:{x:P+z/2,y:R+D/2},parentViewBox:b,originalDataIndex:O},y&&y[O]&&y[O].props);return X}).filter(Boolean)}function Zbe(e){var t=cr(e,Ybe),n=kbe(t.stackId),r=$n();return k.createElement(ek,{id:t.id,type:"bar"},i=>k.createElement(k.Fragment,null,k.createElement(JA,{legendPayload:zbe(t)}),k.createElement(jbe,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:i}),k.createElement(tk,{type:"bar",id:i,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:n,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:r,hasCustomShape:t.shape!=null}),k.createElement(ri,{zIndex:t.zIndex},k.createElement(Wbe,qs({},t,{id:i})))))}var Xbe=k.memo(Zbe,_f);Xbe.displayName="Bar";var Jbe=["domain","range"],e1e=["domain","range"];function KI(e,t){if(e==null)return{};var n,r,i=t1e(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function t1e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function YI(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function P9(e,t){if(e===t)return!0;var{domain:n,range:r}=e,i=KI(e,Jbe),{domain:a,range:s}=t,u=KI(t,e1e);return!YI(n,a)||!YI(r,s)?!1:_f(i,u)}var n1e=["type"],r1e=["dangerouslySetInnerHTML","ticks","scale"],i1e=["id","scale"];function S2(){return S2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S2.apply(null,arguments)}function WI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function QI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WI(Object(n),!0).forEach(function(r){a1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function a1e(e,t,n){return(t=o1e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o1e(e){var t=s1e(e,"string");return typeof t=="symbol"?t:t+""}function s1e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function E2(e,t){if(e==null)return{};var n,r,i=l1e(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function l1e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function u1e(e){var t=Qt(),n=k.useRef(null),r=VE(),{type:i}=e,a=E2(e,n1e),s=E0(r,"xAxis",i),u=k.useMemo(()=>{if(s!=null)return QI(QI({},a),{},{type:s})},[a,s]);return k.useLayoutEffect(()=>{u!=null&&(n.current===null?t(Ave(u)):n.current!==u&&t(kve({prev:n.current,next:u})),n.current=u)},[u,t]),k.useLayoutEffect(()=>()=>{n.current&&(t(Cve(n.current)),n.current=null)},[t]),null}var c1e=e=>{var{xAxisId:t,className:n}=e,r=Ge(HE),i=$n(),a="xAxis",s=Ge(_=>rB(_,a,t,i)),u=Ge(_=>eB(_,t)),c=Ge(_=>rhe(_,t)),f=Ge(_=>S$(_,t));if(u==null||c==null||f==null)return null;var{dangerouslySetInnerHTML:h,ticks:p,scale:g}=e,v=E2(e,r1e),{id:y,scale:b}=f,w=E2(f,i1e);return k.createElement(rk,S2({},v,w,{x:c.x,y:c.y,width:u.width,height:u.height,className:kt("recharts-".concat(a," ").concat(a),n),viewBox:r,ticks:s,axisType:a,axisId:t}))},f1e={allowDataOverflow:Cn.allowDataOverflow,allowDecimals:Cn.allowDecimals,allowDuplicatedCategory:Cn.allowDuplicatedCategory,angle:Cn.angle,axisLine:po.axisLine,height:Cn.height,hide:!1,includeHidden:Cn.includeHidden,interval:Cn.interval,label:!1,minTickGap:Cn.minTickGap,mirror:Cn.mirror,orientation:Cn.orientation,padding:Cn.padding,reversed:Cn.reversed,scale:Cn.scale,tick:Cn.tick,tickCount:Cn.tickCount,tickLine:po.tickLine,tickSize:po.tickSize,type:Cn.type,niceTicks:Cn.niceTicks,xAxisId:0},d1e=e=>{var t=cr(e,f1e);return k.createElement(k.Fragment,null,k.createElement(u1e,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),k.createElement(c1e,t))},h1e=k.memo(d1e,P9);h1e.displayName="XAxis";var p1e=["type"],m1e=["dangerouslySetInnerHTML","ticks","scale"],g1e=["id","scale"];function A2(){return A2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A2.apply(null,arguments)}function ZI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function XI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZI(Object(n),!0).forEach(function(r){v1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function v1e(e,t,n){return(t=y1e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y1e(e){var t=b1e(e,"string");return typeof t=="symbol"?t:t+""}function b1e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function k2(e,t){if(e==null)return{};var n,r,i=w1e(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function w1e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function x1e(e){var t=Qt(),n=k.useRef(null),r=VE(),{type:i}=e,a=k2(e,p1e),s=E0(r,"yAxis",i),u=k.useMemo(()=>{if(s!=null)return XI(XI({},a),{},{type:s})},[s,a]);return k.useLayoutEffect(()=>{u!=null&&(n.current===null?t(Ove(u)):n.current!==u&&t(Tve({prev:n.current,next:u})),n.current=u)},[u,t]),k.useLayoutEffect(()=>()=>{n.current&&(t(Mve(n.current)),n.current=null)},[t]),null}function _1e(e){var{yAxisId:t,className:n,width:r,label:i}=e,a=k.useRef(null),s=k.useRef(null),u=Ge(HE),c=$n(),f=Qt(),h="yAxis",p=Ge(O=>tB(O,t)),g=Ge(O=>ahe(O,t)),v=Ge(O=>rB(O,h,t,c)),y=Ge(O=>E$(O,t));if(k.useLayoutEffect(()=>{if(!(r!=="auto"||!p||YA(i)||k.isValidElement(i)||y==null)){var O=a.current;if(O){var M=O.getCalculatedWidth();Math.round(p.width)!==Math.round(M)&&f(Pve({id:t,width:M}))}}},[v,p,f,i,t,r,y]),p==null||g==null||y==null)return null;var{dangerouslySetInnerHTML:b,ticks:w,scale:_}=e,C=k2(e,m1e),{id:E,scale:S}=y,T=k2(y,g1e);return k.createElement(rk,A2({},C,T,{ref:a,labelRef:s,x:g.x,y:g.y,tickTextProps:r==="auto"?{width:void 0}:{width:r},width:p.width,height:p.height,className:kt("recharts-".concat(h," ").concat(h),n),viewBox:u,ticks:v,axisType:h,axisId:t}))}var S1e={allowDataOverflow:On.allowDataOverflow,allowDecimals:On.allowDecimals,allowDuplicatedCategory:On.allowDuplicatedCategory,angle:On.angle,axisLine:po.axisLine,hide:!1,includeHidden:On.includeHidden,interval:On.interval,label:!1,minTickGap:On.minTickGap,mirror:On.mirror,orientation:On.orientation,padding:On.padding,reversed:On.reversed,scale:On.scale,tick:On.tick,tickCount:On.tickCount,tickLine:po.tickLine,tickSize:po.tickSize,type:On.type,niceTicks:On.niceTicks,width:On.width,yAxisId:0},E1e=e=>{var t=cr(e,S1e);return k.createElement(k.Fragment,null,k.createElement(x1e,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter,niceTicks:t.niceTicks}),k.createElement(_1e,t))},A1e=k.memo(E1e,P9);A1e.displayName="YAxis";var k1e=(e,t)=>t,sk=le([k1e,_t,H8,Un,wB,Do,Cpe,jn],Dpe);function C1e(e){return"getBBox"in e.currentTarget&&typeof e.currentTarget.getBBox=="function"}function lk(e){var t=e.currentTarget.getBoundingClientRect(),n,r;if(C1e(e)){var i=e.currentTarget.getBBox();n=i.width>0?t.width/i.width:1,r=i.height>0?t.height/i.height:1}else{var a=e.currentTarget;n=a.offsetWidth>0?t.width/a.offsetWidth:1,r=a.offsetHeight>0?t.height/a.offsetHeight:1}var s=(u,c)=>({relativeX:Math.round((u-t.left)/n),relativeY:Math.round((c-t.top)/r)});return"touches"in e?Array.from(e.touches).map(u=>s(u.clientX,u.clientY)):s(e.clientX,e.clientY)}var N9=on("mouseClick"),R9=fp();R9.startListening({actionCreator:N9,effect:(e,t)=>{var n=e.payload,r=sk(t.getState(),lk(n));(r==null?void 0:r.activeIndex)!=null&&t.dispatch(xhe({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var C2=on("mouseMove"),D9=fp(),pc=null,xl=null,o_=null;D9.startListening({actionCreator:C2,effect:(e,t)=>{var n=e.payload,r=t.getState(),{throttleDelay:i,throttledEvents:a}=r.eventSettings,s=a==="all"||(a==null?void 0:a.includes("mousemove"));pc!==null&&(cancelAnimationFrame(pc),pc=null),xl!==null&&(typeof i!="number"||!s)&&(clearTimeout(xl),xl=null),o_=lk(n);var u=()=>{var c=t.getState(),f=LA(c,c.tooltip.settings.shared);if(!o_){pc=null,xl=null;return}if(f==="axis"){var h=sk(c,o_);(h==null?void 0:h.activeIndex)!=null?t.dispatch(fB({activeIndex:h.activeIndex,activeDataKey:void 0,activeCoordinate:h.activeCoordinate})):t.dispatch(cB())}pc=null,xl=null};if(!s){u();return}i==="raf"?pc=requestAnimationFrame(u):typeof i=="number"&&xl===null&&(xl=setTimeout(u,i))}});function O1e(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<<CHILDREN>>":t}var JI={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},I9=an({name:"rootProps",initialState:JI,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(n=t.payload.barGap)!==null&&n!==void 0?n:JI.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),T1e=I9.reducer,{updateOptions:M1e}=I9.actions,P1e=null,N1e={updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)},L9=an({name:"polarOptions",initialState:P1e,reducers:N1e}),{updatePolarOptions:sCe}=L9.actions,R1e=L9.reducer,z9=on("keyDown"),j9=on("focus"),$9=on("blur"),F0=fp(),mc=null,_l=null,Hg=null;F0.startListening({actionCreator:z9,effect:(e,t)=>{Hg=e.payload,mc!==null&&(cancelAnimationFrame(mc),mc=null);var n=t.getState(),{throttleDelay:r,throttledEvents:i}=n.eventSettings,a=i==="all"||i.includes("keydown");_l!==null&&(typeof r!="number"||!a)&&(clearTimeout(_l),_l=null);var s=()=>{try{var u=t.getState(),c=u.rootProps.accessibilityLayer!==!1;if(!c)return;var{keyboardInteraction:f}=u.tooltip,h=Hg;if(h!=="ArrowRight"&&h!=="ArrowLeft"&&h!=="Enter")return;var p=zA(f,Mf(u),Dp(u),Lp(u)),g=p==null?-1:Number(p);if(!Number.isFinite(g)||g<0)return;var v=Do(u);if(h==="Enter"){var y=Sy(u,"axis","hover",String(f.index));t.dispatch(_y({active:!f.active,activeIndex:f.index,activeCoordinate:y}));return}var b=che(u),w=b==="left-to-right"?1:-1,_=h==="ArrowRight"?1:-1,C=g+_*w;if(v==null||C>=v.length||C<0)return;var E=Sy(u,"axis","hover",String(C));t.dispatch(_y({active:!0,activeIndex:C.toString(),activeCoordinate:E}))}finally{mc=null,_l=null}};if(!a){s();return}r==="raf"?mc=requestAnimationFrame(s):typeof r=="number"&&_l===null&&(s(),Hg=null,_l=setTimeout(()=>{Hg?s():(_l=null,mc=null)},r))}});F0.startListening({actionCreator:j9,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip;if(!i.active&&i.index==null){var a="0",s=Sy(n,"axis","hover",String(a));t.dispatch(_y({active:!0,activeIndex:a,activeCoordinate:s}))}}}});F0.startListening({actionCreator:$9,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip;i.active&&t.dispatch(_y({active:!1,activeIndex:i.index,activeCoordinate:i.coordinate}))}}});function B9(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(n,r)=>{if(r==="currentTarget")return t;var i=Reflect.get(n,r);return typeof i=="function"?i.bind(n):i}})}var mi=on("externalEvent"),U9=fp(),Gg=new Map,Vd=new Map,s_=new Map;U9.startListening({actionCreator:mi,effect:(e,t)=>{var{handler:n,reactEvent:r}=e.payload;if(n!=null){var i=r.type,a=B9(r);s_.set(i,{handler:n,reactEvent:a});var s=Gg.get(i);s!==void 0&&(cancelAnimationFrame(s),Gg.delete(i));var u=t.getState(),{throttleDelay:c,throttledEvents:f}=u.eventSettings,h=f,p=h==="all"||(h==null?void 0:h.includes(i)),g=Vd.get(i);g!==void 0&&(typeof c!="number"||!p)&&(clearTimeout(g),Vd.delete(i));var v=()=>{var w=s_.get(i);try{if(!w)return;var{handler:_,reactEvent:C}=w,E=t.getState(),S={activeCoordinate:dpe(E),activeDataKey:EB(E),activeIndex:du(E),activeLabel:SB(E),activeTooltipIndex:du(E),isTooltipActive:hpe(E)};_&&_(S,C)}finally{Gg.delete(i),Vd.delete(i),s_.delete(i)}};if(!p){v();return}if(c==="raf"){var y=requestAnimationFrame(v);Gg.set(i,y)}else if(typeof c=="number"){if(!Vd.has(i)){v();var b=setTimeout(v,c);Vd.set(i,b)}}else v()}}});var D1e=le([Of],e=>e.tooltipItemPayloads),I1e=le([D1e,(e,t)=>t,(e,t,n)=>n],(e,t,n)=>{if(t!=null){var r=e.find(a=>a.settings.graphicalItemId===n);if(r!=null){var{getPosition:i}=r;if(i!=null)return i(t)}}}),F9=on("touchMove"),H9=fp(),Sl=null,ms=null,eL=null,Kd=null;H9.startListening({actionCreator:F9,effect:(e,t)=>{var n=e.payload;if(!(n.touches==null||n.touches.length===0)){Kd=B9(n);var r=t.getState(),{throttleDelay:i,throttledEvents:a}=r.eventSettings,s=a==="all"||a.includes("touchmove");Sl!==null&&(cancelAnimationFrame(Sl),Sl=null),ms!==null&&(typeof i!="number"||!s)&&(clearTimeout(ms),ms=null),eL=Array.from(n.touches).map(c=>lk({clientX:c.clientX,clientY:c.clientY,currentTarget:n.currentTarget}));var u=()=>{if(Kd!=null){var c=t.getState(),f=LA(c,c.tooltip.settings.shared);if(f==="axis"){var h,p=(h=eL)===null||h===void 0?void 0:h[0];if(p==null){Sl=null,ms=null;return}var g=sk(c,p);(g==null?void 0:g.activeIndex)!=null&&t.dispatch(fB({activeIndex:g.activeIndex,activeDataKey:void 0,activeCoordinate:g.activeCoordinate}))}else if(f==="item"){var v,y=Kd.touches[0];if(document.elementFromPoint==null||y==null)return;var b=document.elementFromPoint(y.clientX,y.clientY);if(!b||!b.getAttribute)return;var w=b.getAttribute(bse),_=(v=b.getAttribute(wse))!==null&&v!==void 0?v:void 0,C=Tf(c).find(T=>T.id===_);if(w==null||C==null||_==null)return;var{dataKey:E}=C,S=I1e(c,w,_);t.dispatch(uB({activeDataKey:E,activeIndex:w,activeCoordinate:S,activeGraphicalItemId:_}))}Sl=null,ms=null}};if(!s){u();return}i==="raf"?Sl=requestAnimationFrame(u):typeof i=="number"&&ms===null&&(u(),Kd=null,ms=setTimeout(()=>{Kd?u():(ms=null,Sl=null)},i))}}});var G9={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},q9=an({name:"eventSettings",initialState:G9,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=t.payload.throttledEvents)}}}),{setEventSettings:L1e}=q9.actions,z1e=q9.reducer,j1e=eE({brush:Qve,cartesianAxis:Nve,chartData:fme,errorBars:Qye,eventSettings:z1e,graphicalItems:fve,layout:nse,legend:fle,options:ome,polarAxis:Rge,polarOptions:R1e,referenceElements:eye,renderedTicks:vye,rootProps:T1e,tooltip:_he,zIndex:Ype}),$1e=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return VQ({reducer:j1e,preloadedState:t,middleware:r=>{var i;return r({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((i="es6")!==null&&i!==void 0?i:"")}).concat([R9.middleware,D9.middleware,F0.middleware,U9.middleware,H9.middleware])},enhancers:r=>{var i=r;return typeof r=="function"&&(i=r()),i.concat(Qz({type:"raf"}))},devTools:{serialize:{replacer:O1e},name:"recharts-".concat(n)}})};function B1e(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,i=$n(),a=k.useRef(null);if(i)return n;a.current==null&&(a.current=$1e(t,r));var s=FE;return k.createElement(JH,{context:s,store:a.current},n)}function U1e(e){var{layout:t,margin:n}=e,r=Qt(),i=$n();return k.useEffect(()=>{i||(r(Joe(t)),r(Xoe(n)))},[r,i,t,n]),null}var F1e=k.memo(U1e,_f);function H1e(e){var t=Qt();return k.useEffect(()=>{t(M1e(e))},[t,e]),null}var G1e=e=>{var t=Qt();return k.useEffect(()=>{t(L1e(e))},[t,e]),null},q1e=k.memo(G1e,_f);function tL(e){var{zIndex:t,isPanorama:n}=e,r=k.useRef(null),i=Qt();return k.useLayoutEffect(()=>(r.current&&i(Vpe({zIndex:t,element:r.current,isPanorama:n})),()=>{i(Kpe({zIndex:t,isPanorama:n}))}),[i,t,n]),k.createElement("g",{tabIndex:-1,ref:r,className:"recharts-zIndex-layer_".concat(t)})}function nL(e){var{children:t,isPanorama:n}=e,r=Ge(Lpe);if(!r||r.length===0)return t;var i=r.filter(s=>s<0),a=r.filter(s=>s>0);return k.createElement(k.Fragment,null,i.map(s=>k.createElement(tL,{key:s,zIndex:s,isPanorama:n})),t,a.map(s=>k.createElement(tL,{key:s,zIndex:s,isPanorama:n})))}var V1e=["children"];function K1e(e,t){if(e==null)return{};var n,r,i=Y1e(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Y1e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Py(){return Py=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Py.apply(null,arguments)}var W1e={width:"100%",height:"100%",display:"block"},Q1e=k.forwardRef((e,t)=>{var n=t8(),r=n8(),i=d8();if(!ya(n)||!ya(r))return null;var{children:a,otherAttributes:s,title:u,desc:c}=e,f,h;return s!=null&&(typeof s.tabIndex=="number"?f=s.tabIndex:f=i?0:void 0,typeof s.role=="string"?h=s.role:h=i?"application":void 0),k.createElement(c6,Py({},s,{title:u,desc:c,role:h,tabIndex:f,width:n,height:r,style:W1e,ref:t}),a)}),Z1e=e=>{var{children:t}=e,n=Ge(v0);if(!n)return null;var{width:r,height:i,y:a,x:s}=n;return k.createElement(c6,{width:r,height:i,x:s,y:a},t)},rL=k.forwardRef((e,t)=>{var{children:n}=e,r=K1e(e,V1e),i=$n();return i?k.createElement(Z1e,null,k.createElement(nL,{isPanorama:!0},n)):k.createElement(Q1e,Py({ref:t},r),k.createElement(nL,{isPanorama:!1},n))});function X1e(){var e=Qt(),[t,n]=k.useState(null),r=Ge(yse);return k.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;at(a)&&a!==r&&e(tse(a))}},[t,e,r]),n}function iL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function J1e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iL(Object(n),!0).forEach(function(r){ewe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ewe(e,t,n){return(t=twe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function twe(e){var t=nwe(e,"string");return typeof t=="symbol"?t:t+""}function nwe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $s(){return $s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$s.apply(null,arguments)}var rwe=()=>(wme(),null);function Ny(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var iwe=k.forwardRef((e,t)=>{var n,r,i=k.useRef(null),[a,s]=k.useState({containerWidth:Ny((n=e.style)===null||n===void 0?void 0:n.width),containerHeight:Ny((r=e.style)===null||r===void 0?void 0:r.height)}),u=k.useCallback((f,h)=>{s(p=>{var g=Math.round(f),v=Math.round(h);return p.containerWidth===g&&p.containerHeight===v?p:{containerWidth:g,containerHeight:v}})},[]),c=k.useCallback(f=>{if(typeof t=="function"&&t(f),f!=null&&typeof ResizeObserver<"u"){var{width:h,height:p}=f.getBoundingClientRect();u(h,p);var g=y=>{var b=y[0];if(b!=null){var{width:w,height:_}=b.contentRect;u(w,_)}},v=new ResizeObserver(g);v.observe(f),i.current=v}},[t,u]);return k.useEffect(()=>()=>{var f=i.current;f!=null&&f.disconnect()},[u]),k.createElement(k.Fragment,null,k.createElement(_p,{width:a.containerWidth,height:a.containerHeight}),k.createElement("div",$s({ref:c},e)))}),awe=k.forwardRef((e,t)=>{var{width:n,height:r}=e,[i,a]=k.useState({containerWidth:Ny(n),containerHeight:Ny(r)}),s=k.useCallback((c,f)=>{a(h=>{var p=Math.round(c),g=Math.round(f);return h.containerWidth===p&&h.containerHeight===g?h:{containerWidth:p,containerHeight:g}})},[]),u=k.useCallback(c=>{if(typeof t=="function"&&t(c),c!=null){var{width:f,height:h}=c.getBoundingClientRect();s(f,h)}},[t,s]);return k.createElement(k.Fragment,null,k.createElement(_p,{width:i.containerWidth,height:i.containerHeight}),k.createElement("div",$s({ref:u},e)))}),owe=k.forwardRef((e,t)=>{var{width:n,height:r}=e;return k.createElement(k.Fragment,null,k.createElement(_p,{width:n,height:r}),k.createElement("div",$s({ref:t},e)))}),swe=k.forwardRef((e,t)=>{var{width:n,height:r}=e;return typeof n=="string"||typeof r=="string"?k.createElement(awe,$s({},e,{ref:t})):typeof n=="number"&&typeof r=="number"?k.createElement(owe,$s({},e,{width:n,height:r,ref:t})):k.createElement(k.Fragment,null,k.createElement(_p,{width:n,height:r}),k.createElement("div",$s({ref:t},e)))});function lwe(e){return e?iwe:swe}var uwe=k.forwardRef((e,t)=>{var{children:n,className:r,height:i,onClick:a,onContextMenu:s,onDoubleClick:u,onMouseDown:c,onMouseEnter:f,onMouseLeave:h,onMouseMove:p,onMouseUp:g,onTouchEnd:v,onTouchMove:y,onTouchStart:b,style:w,width:_,responsive:C,dispatchTouchEvents:E=!0}=e,S=k.useRef(null),T=Qt(),[O,M]=k.useState(null),[P,R]=k.useState(null),z=X1e(),D=GE(),N=(D==null?void 0:D.width)>0?D.width:_,$=(D==null?void 0:D.height)>0?D.height:i,I=k.useCallback(pe=>{z(pe),typeof t=="function"&&t(pe),M(pe),R(pe),pe!=null&&(S.current=pe)},[z,t,M,R]),U=k.useCallback(pe=>{T(N9(pe)),T(mi({handler:a,reactEvent:pe}))},[T,a]),j=k.useCallback(pe=>{T(C2(pe)),T(mi({handler:f,reactEvent:pe}))},[T,f]),G=k.useCallback(pe=>{T(cB()),T(mi({handler:h,reactEvent:pe}))},[T,h]),q=k.useCallback(pe=>{T(C2(pe)),T(mi({handler:p,reactEvent:pe}))},[T,p]),H=k.useCallback(()=>{T(j9())},[T]),V=k.useCallback(()=>{T($9())},[T]),B=k.useCallback(pe=>{T(z9(pe.key))},[T]),K=k.useCallback(pe=>{T(mi({handler:s,reactEvent:pe}))},[T,s]),X=k.useCallback(pe=>{T(mi({handler:u,reactEvent:pe}))},[T,u]),ee=k.useCallback(pe=>{T(mi({handler:c,reactEvent:pe}))},[T,c]),ce=k.useCallback(pe=>{T(mi({handler:g,reactEvent:pe}))},[T,g]),he=k.useCallback(pe=>{T(mi({handler:b,reactEvent:pe}))},[T,b]),de=k.useCallback(pe=>{E&&T(F9(pe)),T(mi({handler:y,reactEvent:pe}))},[T,E,y]),ie=k.useCallback(pe=>{T(mi({handler:v,reactEvent:pe}))},[T,v]),J=lwe(C);return k.createElement(NB.Provider,{value:O},k.createElement(gae.Provider,{value:P},k.createElement(J,{width:N??(w==null?void 0:w.width),height:$??(w==null?void 0:w.height),className:kt("recharts-wrapper",r),style:J1e({position:"relative",cursor:"default",width:N,height:$},w),onClick:U,onContextMenu:K,onDoubleClick:X,onFocus:H,onBlur:V,onKeyDown:B,onMouseDown:ee,onMouseEnter:j,onMouseLeave:G,onMouseMove:q,onMouseUp:ce,onTouchEnd:ie,onTouchMove:de,onTouchStart:he,ref:I},k.createElement(rwe,null),n)))}),cwe=["width","height","responsive","children","className","style","compact","title","desc"];function fwe(e,t){if(e==null)return{};var n,r,i=dwe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function dwe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var hwe=k.forwardRef((e,t)=>{var{width:n,height:r,responsive:i,children:a,className:s,style:u,compact:c,title:f,desc:h}=e,p=fwe(e,cwe),g=Jr(p);return c?k.createElement(k.Fragment,null,k.createElement(_p,{width:n,height:r}),k.createElement(rL,{otherAttributes:g,title:f,desc:h},a)):k.createElement(uwe,{className:s,style:u,width:n,height:r,responsive:i??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},k.createElement(rL,{otherAttributes:g,title:f,desc:h,ref:t},k.createElement(nye,null,a)))});function O2(){return O2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O2.apply(null,arguments)}function aL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pwe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aL(Object(n),!0).forEach(function(r){mwe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mwe(e,t,n){return(t=gwe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gwe(e){var t=vwe(e,"string");return typeof t=="symbol"?t:t+""}function vwe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ywe={top:5,right:5,bottom:5,left:5},bwe=pwe({accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:ywe,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},G9),uk=k.forwardRef(function(t,n){var r,i=cr(t.categoricalChartProps,bwe),{chartName:a,defaultTooltipEventType:s,validateTooltipEventTypes:u,tooltipPayloadSearcher:c,categoricalChartProps:f}=t,h={chartName:a,defaultTooltipEventType:s,validateTooltipEventTypes:u,tooltipPayloadSearcher:c,eventEmitter:void 0};return k.createElement(B1e,{preloadedState:{options:h},reduxStoreName:(r=f.id)!==null&&r!==void 0?r:a},k.createElement(Wve,{chartData:f.data}),k.createElement(F1e,{layout:i.layout,margin:i.margin}),k.createElement(q1e,{throttleDelay:i.throttleDelay,throttledEvents:i.throttledEvents}),k.createElement(H1e,{baseValue:i.baseValue,accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className,reverseStackOrder:i.reverseStackOrder}),k.createElement(hwe,O2({},i,{ref:n})))}),wwe=["axis"],lCe=k.forwardRef((e,t)=>k.createElement(uk,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:wwe,tooltipPayloadSearcher:VA,categoricalChartProps:e,ref:t})),xwe=["axis","item"],uCe=k.forwardRef((e,t)=>k.createElement(uk,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:xwe,tooltipPayloadSearcher:VA,categoricalChartProps:e,ref:t})),_we=["axis"],cCe=k.forwardRef((e,t)=>k.createElement(uk,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:_we,tooltipPayloadSearcher:VA,categoricalChartProps:e,ref:t})),qg={exports:{}},oL;function Swe(){if(oL)return qg.exports;oL=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(T,O,M){return Function.prototype.apply.call(T,O,M)},n;e&&typeof e.ownKeys=="function"?n=e.ownKeys:Object.getOwnPropertySymbols?n=function(T){return Object.getOwnPropertyNames(T).concat(Object.getOwnPropertySymbols(T))}:n=function(T){return Object.getOwnPropertyNames(T)};function r(S){console&&console.warn&&console.warn(S)}var i=Number.isNaN||function(T){return T!==T};function a(){a.init.call(this)}qg.exports=a,qg.exports.once=_,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function u(S){if(typeof S!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof S)}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(S){if(typeof S!="number"||S<0||i(S))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+S+".");s=S}}),a.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(T){if(typeof T!="number"||T<0||i(T))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+T+".");return this._maxListeners=T,this};function c(S){return S._maxListeners===void 0?a.defaultMaxListeners:S._maxListeners}a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(T){for(var O=[],M=1;M<arguments.length;M++)O.push(arguments[M]);var P=T==="error",R=this._events;if(R!==void 0)P=P&&R.error===void 0;else if(!P)return!1;if(P){var z;if(O.length>0&&(z=O[0]),z instanceof Error)throw z;var D=new Error("Unhandled error."+(z?" ("+z.message+")":""));throw D.context=z,D}var N=R[T];if(N===void 0)return!1;if(typeof N=="function")t(N,this,O);else for(var $=N.length,I=y(N,$),M=0;M<$;++M)t(I[M],this,O);return!0};function f(S,T,O,M){var P,R,z;if(u(O),R=S._events,R===void 0?(R=S._events=Object.create(null),S._eventsCount=0):(R.newListener!==void 0&&(S.emit("newListener",T,O.listener?O.listener:O),R=S._events),z=R[T]),z===void 0)z=R[T]=O,++S._eventsCount;else if(typeof z=="function"?z=R[T]=M?[O,z]:[z,O]:M?z.unshift(O):z.push(O),P=c(S),P>0&&z.length>P&&!z.warned){z.warned=!0;var D=new Error("Possible EventEmitter memory leak detected. "+z.length+" "+String(T)+" listeners added. Use emitter.setMaxListeners() to increase limit");D.name="MaxListenersExceededWarning",D.emitter=S,D.type=T,D.count=z.length,r(D)}return S}a.prototype.addListener=function(T,O){return f(this,T,O,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(T,O){return f(this,T,O,!0)};function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(S,T,O){var M={fired:!1,wrapFn:void 0,target:S,type:T,listener:O},P=h.bind(M);return P.listener=O,M.wrapFn=P,P}a.prototype.once=function(T,O){return u(O),this.on(T,p(this,T,O)),this},a.prototype.prependOnceListener=function(T,O){return u(O),this.prependListener(T,p(this,T,O)),this},a.prototype.removeListener=function(T,O){var M,P,R,z,D;if(u(O),P=this._events,P===void 0)return this;if(M=P[T],M===void 0)return this;if(M===O||M.listener===O)--this._eventsCount===0?this._events=Object.create(null):(delete P[T],P.removeListener&&this.emit("removeListener",T,M.listener||O));else if(typeof M!="function"){for(R=-1,z=M.length-1;z>=0;z--)if(M[z]===O||M[z].listener===O){D=M[z].listener,R=z;break}if(R<0)return this;R===0?M.shift():b(M,R),M.length===1&&(P[T]=M[0]),P.removeListener!==void 0&&this.emit("removeListener",T,D||O)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(T){var O,M,P;if(M=this._events,M===void 0)return this;if(M.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):M[T]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete M[T]),this;if(arguments.length===0){var R=Object.keys(M),z;for(P=0;P<R.length;++P)z=R[P],z!=="removeListener"&&this.removeAllListeners(z);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(O=M[T],typeof O=="function")this.removeListener(T,O);else if(O!==void 0)for(P=O.length-1;P>=0;P--)this.removeListener(T,O[P]);return this};function g(S,T,O){var M=S._events;if(M===void 0)return[];var P=M[T];return P===void 0?[]:typeof P=="function"?O?[P.listener||P]:[P]:O?w(P):y(P,P.length)}a.prototype.listeners=function(T){return g(this,T,!0)},a.prototype.rawListeners=function(T){return g(this,T,!1)},a.listenerCount=function(S,T){return typeof S.listenerCount=="function"?S.listenerCount(T):v.call(S,T)},a.prototype.listenerCount=v;function v(S){var T=this._events;if(T!==void 0){var O=T[S];if(typeof O=="function")return 1;if(O!==void 0)return O.length}return 0}a.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]};function y(S,T){for(var O=new Array(T),M=0;M<T;++M)O[M]=S[M];return O}function b(S,T){for(;T+1<S.length;T++)S[T]=S[T+1];S.pop()}function w(S){for(var T=new Array(S.length),O=0;O<T.length;++O)T[O]=S[O].listener||S[O];return T}function _(S,T){return new Promise(function(O,M){function P(z){S.removeListener(T,R),M(z)}function R(){typeof S.removeListener=="function"&&S.removeListener("error",P),O([].slice.call(arguments))}E(S,T,R,{once:!0}),T!=="error"&&C(S,P,{once:!0})})}function C(S,T,O){typeof S.on=="function"&&E(S,"error",T,O)}function E(S,T,O,M){if(typeof S.on=="function")M.once?S.once(T,O):S.on(T,O);else if(typeof S.addEventListener=="function")S.addEventListener(T,function P(R){M.once&&S.removeEventListener(T,P),O(R)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof S)}return qg.exports}var V9=Swe();function Ewe(){const e=arguments[0];for(let t=1,n=arguments.length;t<n;t++)if(arguments[t])for(const r in arguments[t])e[r]=arguments[t][r];return e}let Mn=Ewe;typeof Object.assign=="function"&&(Mn=Object.assign);function bi(e,t,n,r){const i=e._nodes.get(t);let a=null;return i&&(r==="mixed"?a=i.out&&i.out[n]||i.undirected&&i.undirected[n]:r==="directed"?a=i.out&&i.out[n]:a=i.undirected&&i.undirected[n]),a}function Xn(e){return typeof e=="object"&&e!==null}function K9(e){let t;for(t in e)return!1;return!0}function pi(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!1,writable:!0,value:n})}function Pi(e,t,n){const r={enumerable:!0,configurable:!0};typeof n=="function"?r.get=n:(r.value=n,r.writable=!1),Object.defineProperty(e,t,r)}function sL(e){return!(!Xn(e)||e.attributes&&!Array.isArray(e.attributes))}function Awe(){let e=Math.floor(Math.random()*256)&255;return()=>e++}function mo(){const e=arguments;let t=null,n=-1;return{[Symbol.iterator](){return this},next(){let r=null;do{if(t===null){if(n++,n>=e.length)return{done:!0};t=e[n][Symbol.iterator]()}if(r=t.next(),r.done){t=null;continue}break}while(!0);return r}}}function Pf(){return{[Symbol.iterator](){return this},next(){return{done:!0}}}}class ck extends Error{constructor(t){super(),this.name="GraphError",this.message=t}}class Me extends ck{constructor(t){super(t),this.name="InvalidArgumentsGraphError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Me.prototype.constructor)}}class ke extends ck{constructor(t){super(t),this.name="NotFoundGraphError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,ke.prototype.constructor)}}class Qe extends ck{constructor(t){super(t),this.name="UsageGraphError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Qe.prototype.constructor)}}function Y9(e,t){this.key=e,this.attributes=t,this.clear()}Y9.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.undirectedDegree=0,this.undirectedLoops=0,this.directedLoops=0,this.in={},this.out={},this.undirected={}};function W9(e,t){this.key=e,this.attributes=t,this.clear()}W9.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.directedLoops=0,this.in={},this.out={}};function Q9(e,t){this.key=e,this.attributes=t,this.clear()}Q9.prototype.clear=function(){this.undirectedDegree=0,this.undirectedLoops=0,this.undirected={}};function Nf(e,t,n,r,i){this.key=t,this.attributes=i,this.undirected=e,this.source=n,this.target=r}Nf.prototype.attach=function(){let e="out",t="in";this.undirected&&(e=t="undirected");const n=this.source.key,r=this.target.key;this.source[e][r]=this,!(this.undirected&&n===r)&&(this.target[t][n]=this)};Nf.prototype.attachMulti=function(){let e="out",t="in";const n=this.source.key,r=this.target.key;this.undirected&&(e=t="undirected");const i=this.source[e],a=i[r];if(typeof a>"u"){i[r]=this,this.undirected&&n===r||(this.target[t][n]=this);return}a.previous=this,this.next=a,i[r]=this,this.target[t][n]=this};Nf.prototype.detach=function(){const e=this.source.key,t=this.target.key;let n="out",r="in";this.undirected&&(n=r="undirected"),delete this.source[n][t],delete this.target[r][e]};Nf.prototype.detachMulti=function(){const e=this.source.key,t=this.target.key;let n="out",r="in";this.undirected&&(n=r="undirected"),this.previous===void 0?this.next===void 0?(delete this.source[n][t],delete this.target[r][e]):(this.next.previous=void 0,this.source[n][t]=this.next,this.target[r][e]=this.next):(this.previous.next=this.next,this.next!==void 0&&(this.next.previous=this.previous))};const Z9=0,X9=1,kwe=2,J9=3;function Io(e,t,n,r,i,a,s){let u,c,f,h;if(r=""+r,n===Z9){if(u=e._nodes.get(r),!u)throw new ke(`Graph.${t}: could not find the "${r}" node in the graph.`);f=i,h=a}else if(n===J9){if(i=""+i,c=e._edges.get(i),!c)throw new ke(`Graph.${t}: could not find the "${i}" edge in the graph.`);const p=c.source.key,g=c.target.key;if(r===p)u=c.target;else if(r===g)u=c.source;else throw new ke(`Graph.${t}: the "${r}" node is not attached to the "${i}" edge (${p}, ${g}).`);f=a,h=s}else{if(c=e._edges.get(r),!c)throw new ke(`Graph.${t}: could not find the "${r}" edge in the graph.`);n===X9?u=c.source:u=c.target,f=i,h=a}return[u,f,h]}function Cwe(e,t,n){e.prototype[t]=function(r,i,a){const[s,u]=Io(this,t,n,r,i,a);return s.attributes[u]}}function Owe(e,t,n){e.prototype[t]=function(r,i){const[a]=Io(this,t,n,r,i);return a.attributes}}function Twe(e,t,n){e.prototype[t]=function(r,i,a){const[s,u]=Io(this,t,n,r,i,a);return s.attributes.hasOwnProperty(u)}}function Mwe(e,t,n){e.prototype[t]=function(r,i,a,s){const[u,c,f]=Io(this,t,n,r,i,a,s);return u.attributes[c]=f,this.emit("nodeAttributesUpdated",{key:u.key,type:"set",attributes:u.attributes,name:c}),this}}function Pwe(e,t,n){e.prototype[t]=function(r,i,a,s){const[u,c,f]=Io(this,t,n,r,i,a,s);if(typeof f!="function")throw new Me(`Graph.${t}: updater should be a function.`);const h=u.attributes,p=f(h[c]);return h[c]=p,this.emit("nodeAttributesUpdated",{key:u.key,type:"set",attributes:u.attributes,name:c}),this}}function Nwe(e,t,n){e.prototype[t]=function(r,i,a){const[s,u]=Io(this,t,n,r,i,a);return delete s.attributes[u],this.emit("nodeAttributesUpdated",{key:s.key,type:"remove",attributes:s.attributes,name:u}),this}}function Rwe(e,t,n){e.prototype[t]=function(r,i,a){const[s,u]=Io(this,t,n,r,i,a);if(!Xn(u))throw new Me(`Graph.${t}: provided attributes are not a plain object.`);return s.attributes=u,this.emit("nodeAttributesUpdated",{key:s.key,type:"replace",attributes:s.attributes}),this}}function Dwe(e,t,n){e.prototype[t]=function(r,i,a){const[s,u]=Io(this,t,n,r,i,a);if(!Xn(u))throw new Me(`Graph.${t}: provided attributes are not a plain object.`);return Mn(s.attributes,u),this.emit("nodeAttributesUpdated",{key:s.key,type:"merge",attributes:s.attributes,data:u}),this}}function Iwe(e,t,n){e.prototype[t]=function(r,i,a){const[s,u]=Io(this,t,n,r,i,a);if(typeof u!="function")throw new Me(`Graph.${t}: provided updater is not a function.`);return s.attributes=u(s.attributes),this.emit("nodeAttributesUpdated",{key:s.key,type:"update",attributes:s.attributes}),this}}const Lwe=[{name:e=>`get${e}Attribute`,attacher:Cwe},{name:e=>`get${e}Attributes`,attacher:Owe},{name:e=>`has${e}Attribute`,attacher:Twe},{name:e=>`set${e}Attribute`,attacher:Mwe},{name:e=>`update${e}Attribute`,attacher:Pwe},{name:e=>`remove${e}Attribute`,attacher:Nwe},{name:e=>`replace${e}Attributes`,attacher:Rwe},{name:e=>`merge${e}Attributes`,attacher:Dwe},{name:e=>`update${e}Attributes`,attacher:Iwe}];function zwe(e){Lwe.forEach(function({name:t,attacher:n}){n(e,t("Node"),Z9),n(e,t("Source"),X9),n(e,t("Target"),kwe),n(e,t("Opposite"),J9)})}function jwe(e,t,n){e.prototype[t]=function(r,i){let a;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Qe(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Qe(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const s=""+r,u=""+i;if(i=arguments[2],a=bi(this,s,u,n),!a)throw new ke(`Graph.${t}: could not find an edge for the given path ("${s}" - "${u}").`)}else{if(n!=="mixed")throw new Qe(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,a=this._edges.get(r),!a)throw new ke(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return a.attributes[i]}}function $we(e,t,n){e.prototype[t]=function(r){let i;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Qe(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>1){if(this.multi)throw new Qe(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const a=""+r,s=""+arguments[1];if(i=bi(this,a,s,n),!i)throw new ke(`Graph.${t}: could not find an edge for the given path ("${a}" - "${s}").`)}else{if(n!=="mixed")throw new Qe(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,i=this._edges.get(r),!i)throw new ke(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return i.attributes}}function Bwe(e,t,n){e.prototype[t]=function(r,i){let a;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Qe(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Qe(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const s=""+r,u=""+i;if(i=arguments[2],a=bi(this,s,u,n),!a)throw new ke(`Graph.${t}: could not find an edge for the given path ("${s}" - "${u}").`)}else{if(n!=="mixed")throw new Qe(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,a=this._edges.get(r),!a)throw new ke(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return a.attributes.hasOwnProperty(i)}}function Uwe(e,t,n){e.prototype[t]=function(r,i,a){let s;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Qe(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>3){if(this.multi)throw new Qe(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const u=""+r,c=""+i;if(i=arguments[2],a=arguments[3],s=bi(this,u,c,n),!s)throw new ke(`Graph.${t}: could not find an edge for the given path ("${u}" - "${c}").`)}else{if(n!=="mixed")throw new Qe(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,s=this._edges.get(r),!s)throw new ke(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return s.attributes[i]=a,this.emit("edgeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:i}),this}}function Fwe(e,t,n){e.prototype[t]=function(r,i,a){let s;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Qe(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>3){if(this.multi)throw new Qe(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const u=""+r,c=""+i;if(i=arguments[2],a=arguments[3],s=bi(this,u,c,n),!s)throw new ke(`Graph.${t}: could not find an edge for the given path ("${u}" - "${c}").`)}else{if(n!=="mixed")throw new Qe(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,s=this._edges.get(r),!s)throw new ke(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(typeof a!="function")throw new Me(`Graph.${t}: updater should be a function.`);return s.attributes[i]=a(s.attributes[i]),this.emit("edgeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:i}),this}}function Hwe(e,t,n){e.prototype[t]=function(r,i){let a;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Qe(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Qe(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const s=""+r,u=""+i;if(i=arguments[2],a=bi(this,s,u,n),!a)throw new ke(`Graph.${t}: could not find an edge for the given path ("${s}" - "${u}").`)}else{if(n!=="mixed")throw new Qe(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,a=this._edges.get(r),!a)throw new ke(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return delete a.attributes[i],this.emit("edgeAttributesUpdated",{key:a.key,type:"remove",attributes:a.attributes,name:i}),this}}function Gwe(e,t,n){e.prototype[t]=function(r,i){let a;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Qe(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Qe(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const s=""+r,u=""+i;if(i=arguments[2],a=bi(this,s,u,n),!a)throw new ke(`Graph.${t}: could not find an edge for the given path ("${s}" - "${u}").`)}else{if(n!=="mixed")throw new Qe(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,a=this._edges.get(r),!a)throw new ke(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(!Xn(i))throw new Me(`Graph.${t}: provided attributes are not a plain object.`);return a.attributes=i,this.emit("edgeAttributesUpdated",{key:a.key,type:"replace",attributes:a.attributes}),this}}function qwe(e,t,n){e.prototype[t]=function(r,i){let a;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Qe(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Qe(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const s=""+r,u=""+i;if(i=arguments[2],a=bi(this,s,u,n),!a)throw new ke(`Graph.${t}: could not find an edge for the given path ("${s}" - "${u}").`)}else{if(n!=="mixed")throw new Qe(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,a=this._edges.get(r),!a)throw new ke(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(!Xn(i))throw new Me(`Graph.${t}: provided attributes are not a plain object.`);return Mn(a.attributes,i),this.emit("edgeAttributesUpdated",{key:a.key,type:"merge",attributes:a.attributes,data:i}),this}}function Vwe(e,t,n){e.prototype[t]=function(r,i){let a;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Qe(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Qe(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);const s=""+r,u=""+i;if(i=arguments[2],a=bi(this,s,u,n),!a)throw new ke(`Graph.${t}: could not find an edge for the given path ("${s}" - "${u}").`)}else{if(n!=="mixed")throw new Qe(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,a=this._edges.get(r),!a)throw new ke(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(typeof i!="function")throw new Me(`Graph.${t}: provided updater is not a function.`);return a.attributes=i(a.attributes),this.emit("edgeAttributesUpdated",{key:a.key,type:"update",attributes:a.attributes}),this}}const Kwe=[{name:e=>`get${e}Attribute`,attacher:jwe},{name:e=>`get${e}Attributes`,attacher:$we},{name:e=>`has${e}Attribute`,attacher:Bwe},{name:e=>`set${e}Attribute`,attacher:Uwe},{name:e=>`update${e}Attribute`,attacher:Fwe},{name:e=>`remove${e}Attribute`,attacher:Hwe},{name:e=>`replace${e}Attributes`,attacher:Gwe},{name:e=>`merge${e}Attributes`,attacher:qwe},{name:e=>`update${e}Attributes`,attacher:Vwe}];function Ywe(e){Kwe.forEach(function({name:t,attacher:n}){n(e,t("Edge"),"mixed"),n(e,t("DirectedEdge"),"directed"),n(e,t("UndirectedEdge"),"undirected")})}const Wwe=[{name:"edges",type:"mixed"},{name:"inEdges",type:"directed",direction:"in"},{name:"outEdges",type:"directed",direction:"out"},{name:"inboundEdges",type:"mixed",direction:"in"},{name:"outboundEdges",type:"mixed",direction:"out"},{name:"directedEdges",type:"directed"},{name:"undirectedEdges",type:"undirected"}];function Qwe(e,t,n,r){let i=!1;for(const a in t){if(a===r)continue;const s=t[a];if(i=n(s.key,s.attributes,s.source.key,s.target.key,s.source.attributes,s.target.attributes,s.undirected),e&&i)return s.key}}function Zwe(e,t,n,r){let i,a,s,u=!1;for(const c in t)if(c!==r){i=t[c];do{if(a=i.source,s=i.target,u=n(i.key,i.attributes,a.key,s.key,a.attributes,s.attributes,i.undirected),e&&u)return i.key;i=i.next}while(i!==void 0)}}function l_(e,t){const n=Object.keys(e),r=n.length;let i,a=0;return{[Symbol.iterator](){return this},next(){do if(i)i=i.next;else{if(a>=r)return{done:!0};const s=n[a++];if(s===t){i=void 0;continue}i=e[s]}while(!i);return{done:!1,value:{edge:i.key,attributes:i.attributes,source:i.source.key,target:i.target.key,sourceAttributes:i.source.attributes,targetAttributes:i.target.attributes,undirected:i.undirected}}}}}function Xwe(e,t,n,r){const i=t[n];if(!i)return;const a=i.source,s=i.target;if(r(i.key,i.attributes,a.key,s.key,a.attributes,s.attributes,i.undirected)&&e)return i.key}function Jwe(e,t,n,r){let i=t[n];if(!i)return;let a=!1;do{if(a=r(i.key,i.attributes,i.source.key,i.target.key,i.source.attributes,i.target.attributes,i.undirected),e&&a)return i.key;i=i.next}while(i!==void 0)}function u_(e,t){let n=e[t];if(n.next!==void 0)return{[Symbol.iterator](){return this},next(){if(!n)return{done:!0};const i={edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected};return n=n.next,{done:!1,value:i}}};let r=!1;return{[Symbol.iterator](){return this},next(){return r===!0?{done:!0}:(r=!0,{done:!1,value:{edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected}})}}}function exe(e,t){if(e.size===0)return[];if(t==="mixed"||t===e.type)return Array.from(e._edges.keys());const n=t==="undirected"?e.undirectedSize:e.directedSize,r=new Array(n),i=t==="undirected",a=e._edges.values();let s=0,u,c;for(;u=a.next(),u.done!==!0;)c=u.value,c.undirected===i&&(r[s++]=c.key);return r}function eU(e,t,n,r){if(t.size===0)return;const i=n!=="mixed"&&n!==t.type,a=n==="undirected";let s,u,c=!1;const f=t._edges.values();for(;s=f.next(),s.done!==!0;){if(u=s.value,i&&u.undirected!==a)continue;const{key:h,attributes:p,source:g,target:v}=u;if(c=r(h,p,g.key,v.key,g.attributes,v.attributes,u.undirected),e&&c)return h}}function txe(e,t){if(e.size===0)return Pf();const n=t!=="mixed"&&t!==e.type,r=t==="undirected",i=e._edges.values();return{[Symbol.iterator](){return this},next(){let a,s;for(;;){if(a=i.next(),a.done)return a;if(s=a.value,!(n&&s.undirected!==r))break}return{value:{edge:s.key,attributes:s.attributes,source:s.source.key,target:s.target.key,sourceAttributes:s.source.attributes,targetAttributes:s.target.attributes,undirected:s.undirected},done:!1}}}}function fk(e,t,n,r,i,a){const s=t?Zwe:Qwe;let u;if(n!=="undirected"&&(r!=="out"&&(u=s(e,i.in,a),e&&u)||r!=="in"&&(u=s(e,i.out,a,r?void 0:i.key),e&&u))||n!=="directed"&&(u=s(e,i.undirected,a),e&&u))return u}function nxe(e,t,n,r){const i=[];return fk(!1,e,t,n,r,function(a){i.push(a)}),i}function rxe(e,t,n){let r=Pf();return e!=="undirected"&&(t!=="out"&&typeof n.in<"u"&&(r=mo(r,l_(n.in))),t!=="in"&&typeof n.out<"u"&&(r=mo(r,l_(n.out,t?void 0:n.key)))),e!=="directed"&&typeof n.undirected<"u"&&(r=mo(r,l_(n.undirected))),r}function dk(e,t,n,r,i,a,s){const u=n?Jwe:Xwe;let c;if(t!=="undirected"&&(typeof i.in<"u"&&r!=="out"&&(c=u(e,i.in,a,s),e&&c)||typeof i.out<"u"&&r!=="in"&&(r||i.key!==a)&&(c=u(e,i.out,a,s),e&&c))||t!=="directed"&&typeof i.undirected<"u"&&(c=u(e,i.undirected,a,s),e&&c))return c}function ixe(e,t,n,r,i){const a=[];return dk(!1,e,t,n,r,i,function(s){a.push(s)}),a}function axe(e,t,n,r){let i=Pf();return e!=="undirected"&&(typeof n.in<"u"&&t!=="out"&&r in n.in&&(i=mo(i,u_(n.in,r))),typeof n.out<"u"&&t!=="in"&&r in n.out&&(t||n.key!==r)&&(i=mo(i,u_(n.out,r)))),e!=="directed"&&typeof n.undirected<"u"&&r in n.undirected&&(i=mo(i,u_(n.undirected,r))),i}function oxe(e,t){const{name:n,type:r,direction:i}=t;e.prototype[n]=function(a,s){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return[];if(!arguments.length)return exe(this,r);if(arguments.length===1){a=""+a;const u=this._nodes.get(a);if(typeof u>"u")throw new ke(`Graph.${n}: could not find the "${a}" node in the graph.`);return nxe(this.multi,r==="mixed"?this.type:r,i,u)}if(arguments.length===2){a=""+a,s=""+s;const u=this._nodes.get(a);if(!u)throw new ke(`Graph.${n}: could not find the "${a}" source node in the graph.`);if(!this._nodes.has(s))throw new ke(`Graph.${n}: could not find the "${s}" target node in the graph.`);return ixe(r,this.multi,i,u,s)}throw new Me(`Graph.${n}: too many arguments (expecting 0, 1 or 2 and got ${arguments.length}).`)}}function sxe(e,t){const{name:n,type:r,direction:i}=t,a="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[a]=function(f,h,p){if(!(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)){if(arguments.length===1)return p=f,eU(!1,this,r,p);if(arguments.length===2){f=""+f,p=h;const g=this._nodes.get(f);if(typeof g>"u")throw new ke(`Graph.${a}: could not find the "${f}" node in the graph.`);return fk(!1,this.multi,r==="mixed"?this.type:r,i,g,p)}if(arguments.length===3){f=""+f,h=""+h;const g=this._nodes.get(f);if(!g)throw new ke(`Graph.${a}: could not find the "${f}" source node in the graph.`);if(!this._nodes.has(h))throw new ke(`Graph.${a}: could not find the "${h}" target node in the graph.`);return dk(!1,r,this.multi,i,g,h,p)}throw new Me(`Graph.${a}: too many arguments (expecting 1, 2 or 3 and got ${arguments.length}).`)}};const s="map"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(){const f=Array.prototype.slice.call(arguments),h=f.pop();let p;if(f.length===0){let g=0;r!=="directed"&&(g+=this.undirectedSize),r!=="undirected"&&(g+=this.directedSize),p=new Array(g);let v=0;f.push((y,b,w,_,C,E,S)=>{p[v++]=h(y,b,w,_,C,E,S)})}else p=[],f.push((g,v,y,b,w,_,C)=>{p.push(h(g,v,y,b,w,_,C))});return this[a].apply(this,f),p};const u="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[u]=function(){const f=Array.prototype.slice.call(arguments),h=f.pop(),p=[];return f.push((g,v,y,b,w,_,C)=>{h(g,v,y,b,w,_,C)&&p.push(g)}),this[a].apply(this,f),p};const c="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[c]=function(){let f=Array.prototype.slice.call(arguments);if(f.length<2||f.length>4)throw new Me(`Graph.${c}: invalid number of arguments (expecting 2, 3 or 4 and got ${f.length}).`);if(typeof f[f.length-1]=="function"&&typeof f[f.length-2]!="function")throw new Me(`Graph.${c}: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.`);let h,p;f.length===2?(h=f[0],p=f[1],f=[]):f.length===3?(h=f[1],p=f[2],f=[f[0]]):f.length===4&&(h=f[2],p=f[3],f=[f[0],f[1]]);let g=p;return f.push((v,y,b,w,_,C,E)=>{g=h(g,v,y,b,w,_,C,E)}),this[a].apply(this,f),g}}function lxe(e,t){const{name:n,type:r,direction:i}=t,a="find"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[a]=function(c,f,h){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return!1;if(arguments.length===1)return h=c,eU(!0,this,r,h);if(arguments.length===2){c=""+c,h=f;const p=this._nodes.get(c);if(typeof p>"u")throw new ke(`Graph.${a}: could not find the "${c}" node in the graph.`);return fk(!0,this.multi,r==="mixed"?this.type:r,i,p,h)}if(arguments.length===3){c=""+c,f=""+f;const p=this._nodes.get(c);if(!p)throw new ke(`Graph.${a}: could not find the "${c}" source node in the graph.`);if(!this._nodes.has(f))throw new ke(`Graph.${a}: could not find the "${f}" target node in the graph.`);return dk(!0,r,this.multi,i,p,f,h)}throw new Me(`Graph.${a}: too many arguments (expecting 1, 2 or 3 and got ${arguments.length}).`)};const s="some"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[s]=function(){const c=Array.prototype.slice.call(arguments),f=c.pop();return c.push((p,g,v,y,b,w,_)=>f(p,g,v,y,b,w,_)),!!this[a].apply(this,c)};const u="every"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[u]=function(){const c=Array.prototype.slice.call(arguments),f=c.pop();return c.push((p,g,v,y,b,w,_)=>!f(p,g,v,y,b,w,_)),!this[a].apply(this,c)}}function uxe(e,t){const{name:n,type:r,direction:i}=t,a=n.slice(0,-1)+"Entries";e.prototype[a]=function(s,u){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return Pf();if(!arguments.length)return txe(this,r);if(arguments.length===1){s=""+s;const c=this._nodes.get(s);if(!c)throw new ke(`Graph.${a}: could not find the "${s}" node in the graph.`);return rxe(r,i,c)}if(arguments.length===2){s=""+s,u=""+u;const c=this._nodes.get(s);if(!c)throw new ke(`Graph.${a}: could not find the "${s}" source node in the graph.`);if(!this._nodes.has(u))throw new ke(`Graph.${a}: could not find the "${u}" target node in the graph.`);return axe(r,i,c,u)}throw new Me(`Graph.${a}: too many arguments (expecting 0, 1 or 2 and got ${arguments.length}).`)}}function cxe(e){Wwe.forEach(t=>{oxe(e,t),sxe(e,t),lxe(e,t),uxe(e,t)})}const fxe=[{name:"neighbors",type:"mixed"},{name:"inNeighbors",type:"directed",direction:"in"},{name:"outNeighbors",type:"directed",direction:"out"},{name:"inboundNeighbors",type:"mixed",direction:"in"},{name:"outboundNeighbors",type:"mixed",direction:"out"},{name:"directedNeighbors",type:"directed"},{name:"undirectedNeighbors",type:"undirected"}];function H0(){this.A=null,this.B=null}H0.prototype.wrap=function(e){this.A===null?this.A=e:this.B===null&&(this.B=e)};H0.prototype.has=function(e){return this.A!==null&&e in this.A||this.B!==null&&e in this.B};function Yd(e,t,n,r,i){for(const a in r){const s=r[a],u=s.source,c=s.target,f=u===n?c:u;if(t&&t.has(f.key))continue;const h=i(f.key,f.attributes);if(e&&h)return f.key}}function hk(e,t,n,r,i){if(t!=="mixed"){if(t==="undirected")return Yd(e,null,r,r.undirected,i);if(typeof n=="string")return Yd(e,null,r,r[n],i)}const a=new H0;let s;if(t!=="undirected"){if(n!=="out"){if(s=Yd(e,null,r,r.in,i),e&&s)return s;a.wrap(r.in)}if(n!=="in"){if(s=Yd(e,a,r,r.out,i),e&&s)return s;a.wrap(r.out)}}if(t!=="directed"&&(s=Yd(e,a,r,r.undirected,i),e&&s))return s}function dxe(e,t,n){if(e!=="mixed"){if(e==="undirected")return Object.keys(n.undirected);if(typeof t=="string")return Object.keys(n[t])}const r=[];return hk(!1,e,t,n,function(i){r.push(i)}),r}function Wd(e,t,n){const r=Object.keys(n),i=r.length;let a=0;return{[Symbol.iterator](){return this},next(){let s=null;do{if(a>=i)return e&&e.wrap(n),{done:!0};const u=n[r[a++]],c=u.source,f=u.target;if(s=c===t?f:c,e&&e.has(s.key)){s=null;continue}}while(s===null);return{done:!1,value:{neighbor:s.key,attributes:s.attributes}}}}}function hxe(e,t,n){if(e!=="mixed"){if(e==="undirected")return Wd(null,n,n.undirected);if(typeof t=="string")return Wd(null,n,n[t])}let r=Pf();const i=new H0;return e!=="undirected"&&(t!=="out"&&(r=mo(r,Wd(i,n,n.in))),t!=="in"&&(r=mo(r,Wd(i,n,n.out)))),e!=="directed"&&(r=mo(r,Wd(i,n,n.undirected))),r}function pxe(e,t){const{name:n,type:r,direction:i}=t;e.prototype[n]=function(a){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return[];a=""+a;const s=this._nodes.get(a);if(typeof s>"u")throw new ke(`Graph.${n}: could not find the "${a}" node in the graph.`);return dxe(r==="mixed"?this.type:r,i,s)}}function mxe(e,t){const{name:n,type:r,direction:i}=t,a="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[a]=function(f,h){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return;f=""+f;const p=this._nodes.get(f);if(typeof p>"u")throw new ke(`Graph.${a}: could not find the "${f}" node in the graph.`);hk(!1,r==="mixed"?this.type:r,i,p,h)};const s="map"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(f,h){const p=[];return this[a](f,(g,v)=>{p.push(h(g,v))}),p};const u="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[u]=function(f,h){const p=[];return this[a](f,(g,v)=>{h(g,v)&&p.push(g)}),p};const c="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[c]=function(f,h,p){if(arguments.length<3)throw new Me(`Graph.${c}: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.`);let g=p;return this[a](f,(v,y)=>{g=h(g,v,y)}),g}}function gxe(e,t){const{name:n,type:r,direction:i}=t,a=n[0].toUpperCase()+n.slice(1,-1),s="find"+a;e.prototype[s]=function(f,h){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return;f=""+f;const p=this._nodes.get(f);if(typeof p>"u")throw new ke(`Graph.${s}: could not find the "${f}" node in the graph.`);return hk(!0,r==="mixed"?this.type:r,i,p,h)};const u="some"+a;e.prototype[u]=function(f,h){return!!this[s](f,h)};const c="every"+a;e.prototype[c]=function(f,h){return!this[s](f,(g,v)=>!h(g,v))}}function vxe(e,t){const{name:n,type:r,direction:i}=t,a=n.slice(0,-1)+"Entries";e.prototype[a]=function(s){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return Pf();s=""+s;const u=this._nodes.get(s);if(typeof u>"u")throw new ke(`Graph.${a}: could not find the "${s}" node in the graph.`);return hxe(r==="mixed"?this.type:r,i,u)}}function yxe(e){fxe.forEach(t=>{pxe(e,t),mxe(e,t),gxe(e,t),vxe(e,t)})}function Vg(e,t,n,r,i){const a=r._nodes.values(),s=r.type;let u,c,f,h,p,g;for(;u=a.next(),u.done!==!0;){let v=!1;if(c=u.value,s!=="undirected"){h=c.out;for(f in h){p=h[f];do g=p.target,v=!0,i(c.key,g.key,c.attributes,g.attributes,p.key,p.attributes,p.undirected),p=p.next;while(p)}}if(s!=="directed"){h=c.undirected;for(f in h)if(!(t&&c.key>f)){p=h[f];do g=p.target,g.key!==f&&(g=p.source),v=!0,i(c.key,g.key,c.attributes,g.attributes,p.key,p.attributes,p.undirected),p=p.next;while(p)}}n&&!v&&i(c.key,null,c.attributes,null,null,null,null)}}function bxe(e,t){const n={key:e};return K9(t.attributes)||(n.attributes=Mn({},t.attributes)),n}function wxe(e,t,n){const r={key:t,source:n.source.key,target:n.target.key};return K9(n.attributes)||(r.attributes=Mn({},n.attributes)),e==="mixed"&&n.undirected&&(r.undirected=!0),r}function xxe(e){if(!Xn(e))throw new Me('Graph.import: invalid serialized node. A serialized node should be a plain object with at least a "key" property.');if(!("key"in e))throw new Me("Graph.import: serialized node is missing its key.");if("attributes"in e&&(!Xn(e.attributes)||e.attributes===null))throw new Me("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.")}function _xe(e){if(!Xn(e))throw new Me('Graph.import: invalid serialized edge. A serialized edge should be a plain object with at least a "source" & "target" property.');if(!("source"in e))throw new Me("Graph.import: serialized edge is missing its source.");if(!("target"in e))throw new Me("Graph.import: serialized edge is missing its target.");if("attributes"in e&&(!Xn(e.attributes)||e.attributes===null))throw new Me("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.");if("undirected"in e&&typeof e.undirected!="boolean")throw new Me("Graph.import: invalid undirectedness information. Undirected should be boolean or omitted.")}const Sxe=Awe(),Exe=new Set(["directed","undirected","mixed"]),lL=new Set(["domain","_events","_eventsCount","_maxListeners"]),Axe=[{name:e=>`${e}Edge`,generateKey:!0},{name:e=>`${e}DirectedEdge`,generateKey:!0,type:"directed"},{name:e=>`${e}UndirectedEdge`,generateKey:!0,type:"undirected"},{name:e=>`${e}EdgeWithKey`},{name:e=>`${e}DirectedEdgeWithKey`,type:"directed"},{name:e=>`${e}UndirectedEdgeWithKey`,type:"undirected"}],kxe={allowSelfLoops:!0,multi:!1,type:"mixed"};function Cxe(e,t,n){if(n&&!Xn(n))throw new Me(`Graph.addNode: invalid attributes. Expecting an object but got "${n}"`);if(t=""+t,n=n||{},e._nodes.has(t))throw new Qe(`Graph.addNode: the "${t}" node already exist in the graph.`);const r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}function uL(e,t,n){const r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}function tU(e,t,n,r,i,a,s,u){if(!r&&e.type==="undirected")throw new Qe(`Graph.${t}: you cannot add a directed edge to an undirected graph. Use the #.addEdge or #.addUndirectedEdge instead.`);if(r&&e.type==="directed")throw new Qe(`Graph.${t}: you cannot add an undirected edge to a directed graph. Use the #.addEdge or #.addDirectedEdge instead.`);if(u&&!Xn(u))throw new Me(`Graph.${t}: invalid attributes. Expecting an object but got "${u}"`);if(a=""+a,s=""+s,u=u||{},!e.allowSelfLoops&&a===s)throw new Qe(`Graph.${t}: source & target are the same ("${a}"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false.`);const c=e._nodes.get(a),f=e._nodes.get(s);if(!c)throw new ke(`Graph.${t}: source node "${a}" not found.`);if(!f)throw new ke(`Graph.${t}: target node "${s}" not found.`);const h={key:null,undirected:r,source:a,target:s,attributes:u};if(n)i=e._edgeKeyGenerator();else if(i=""+i,e._edges.has(i))throw new Qe(`Graph.${t}: the "${i}" edge already exists in the graph.`);if(!e.multi&&(r?typeof c.undirected[s]<"u":typeof c.out[s]<"u"))throw new Qe(`Graph.${t}: an edge linking "${a}" to "${s}" already exists. If you really want to add multiple edges linking those nodes, you should create a multi graph by using the 'multi' option.`);const p=new Nf(r,i,c,f,u);e._edges.set(i,p);const g=a===s;return r?(c.undirectedDegree++,f.undirectedDegree++,g&&(c.undirectedLoops++,e._undirectedSelfLoopCount++)):(c.outDegree++,f.inDegree++,g&&(c.directedLoops++,e._directedSelfLoopCount++)),e.multi?p.attachMulti():p.attach(),r?e._undirectedSize++:e._directedSize++,h.key=i,e.emit("edgeAdded",h),i}function Oxe(e,t,n,r,i,a,s,u,c){if(!r&&e.type==="undirected")throw new Qe(`Graph.${t}: you cannot merge/update a directed edge to an undirected graph. Use the #.mergeEdge/#.updateEdge or #.addUndirectedEdge instead.`);if(r&&e.type==="directed")throw new Qe(`Graph.${t}: you cannot merge/update an undirected edge to a directed graph. Use the #.mergeEdge/#.updateEdge or #.addDirectedEdge instead.`);if(u){if(c){if(typeof u!="function")throw new Me(`Graph.${t}: invalid updater function. Expecting a function but got "${u}"`)}else if(!Xn(u))throw new Me(`Graph.${t}: invalid attributes. Expecting an object but got "${u}"`)}a=""+a,s=""+s;let f;if(c&&(f=u,u=void 0),!e.allowSelfLoops&&a===s)throw new Qe(`Graph.${t}: source & target are the same ("${a}"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false.`);let h=e._nodes.get(a),p=e._nodes.get(s),g,v;if(!n&&(g=e._edges.get(i),g)){if((g.source.key!==a||g.target.key!==s)&&(!r||g.source.key!==s||g.target.key!==a))throw new Qe(`Graph.${t}: inconsistency detected when attempting to merge the "${i}" edge with "${a}" source & "${s}" target vs. ("${g.source.key}", "${g.target.key}").`);v=g}if(!v&&!e.multi&&h&&(v=r?h.undirected[s]:h.out[s]),v){const C=[v.key,!1,!1,!1];if(c?!f:!u)return C;if(c){const E=v.attributes;v.attributes=f(E),e.emit("edgeAttributesUpdated",{type:"replace",key:v.key,attributes:v.attributes})}else Mn(v.attributes,u),e.emit("edgeAttributesUpdated",{type:"merge",key:v.key,attributes:v.attributes,data:u});return C}u=u||{},c&&f&&(u=f(u));const y={key:null,undirected:r,source:a,target:s,attributes:u};if(n)i=e._edgeKeyGenerator();else if(i=""+i,e._edges.has(i))throw new Qe(`Graph.${t}: the "${i}" edge already exists in the graph.`);let b=!1,w=!1;h||(h=uL(e,a,{}),b=!0,a===s&&(p=h,w=!0)),p||(p=uL(e,s,{}),w=!0),g=new Nf(r,i,h,p,u),e._edges.set(i,g);const _=a===s;return r?(h.undirectedDegree++,p.undirectedDegree++,_&&(h.undirectedLoops++,e._undirectedSelfLoopCount++)):(h.outDegree++,p.inDegree++,_&&(h.directedLoops++,e._directedSelfLoopCount++)),e.multi?g.attachMulti():g.attach(),r?e._undirectedSize++:e._directedSize++,y.key=i,e.emit("edgeAdded",y),[i,!0,b,w]}function gc(e,t){e._edges.delete(t.key);const{source:n,target:r,attributes:i}=t,a=t.undirected,s=n===r;a?(n.undirectedDegree--,r.undirectedDegree--,s&&(n.undirectedLoops--,e._undirectedSelfLoopCount--)):(n.outDegree--,r.inDegree--,s&&(n.directedLoops--,e._directedSelfLoopCount--)),e.multi?t.detachMulti():t.detach(),a?e._undirectedSize--:e._directedSize--,e.emit("edgeDropped",{key:t.key,attributes:i,source:n.key,target:r.key,undirected:a})}class Lt extends V9.EventEmitter{constructor(t){if(super(),t=Mn({},kxe,t),typeof t.multi!="boolean")throw new Me(`Graph.constructor: invalid 'multi' option. Expecting a boolean but got "${t.multi}".`);if(!Exe.has(t.type))throw new Me(`Graph.constructor: invalid 'type' option. Should be one of "mixed", "directed" or "undirected" but got "${t.type}".`);if(typeof t.allowSelfLoops!="boolean")throw new Me(`Graph.constructor: invalid 'allowSelfLoops' option. Expecting a boolean but got "${t.allowSelfLoops}".`);const n=t.type==="mixed"?Y9:t.type==="directed"?W9:Q9;pi(this,"NodeDataClass",n);const r="geid_"+Sxe()+"_";let i=0;const a=()=>{let s;do s=r+i++;while(this._edges.has(s));return s};pi(this,"_attributes",{}),pi(this,"_nodes",new Map),pi(this,"_edges",new Map),pi(this,"_directedSize",0),pi(this,"_undirectedSize",0),pi(this,"_directedSelfLoopCount",0),pi(this,"_undirectedSelfLoopCount",0),pi(this,"_edgeKeyGenerator",a),pi(this,"_options",t),lL.forEach(s=>pi(this,s,this[s])),Pi(this,"order",()=>this._nodes.size),Pi(this,"size",()=>this._edges.size),Pi(this,"directedSize",()=>this._directedSize),Pi(this,"undirectedSize",()=>this._undirectedSize),Pi(this,"selfLoopCount",()=>this._directedSelfLoopCount+this._undirectedSelfLoopCount),Pi(this,"directedSelfLoopCount",()=>this._directedSelfLoopCount),Pi(this,"undirectedSelfLoopCount",()=>this._undirectedSelfLoopCount),Pi(this,"multi",this._options.multi),Pi(this,"type",this._options.type),Pi(this,"allowSelfLoops",this._options.allowSelfLoops),Pi(this,"implementation",()=>"graphology")}_resetInstanceCounters(){this._directedSize=0,this._undirectedSize=0,this._directedSelfLoopCount=0,this._undirectedSelfLoopCount=0}hasNode(t){return this._nodes.has(""+t)}hasDirectedEdge(t,n){if(this.type==="undirected")return!1;if(arguments.length===1){const r=""+t,i=this._edges.get(r);return!!i&&!i.undirected}else if(arguments.length===2){t=""+t,n=""+n;const r=this._nodes.get(t);return r?r.out.hasOwnProperty(n):!1}throw new Me(`Graph.hasDirectedEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`)}hasUndirectedEdge(t,n){if(this.type==="directed")return!1;if(arguments.length===1){const r=""+t,i=this._edges.get(r);return!!i&&i.undirected}else if(arguments.length===2){t=""+t,n=""+n;const r=this._nodes.get(t);return r?r.undirected.hasOwnProperty(n):!1}throw new Me(`Graph.hasDirectedEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`)}hasEdge(t,n){if(arguments.length===1){const r=""+t;return this._edges.has(r)}else if(arguments.length===2){t=""+t,n=""+n;const r=this._nodes.get(t);return r?typeof r.out<"u"&&r.out.hasOwnProperty(n)||typeof r.undirected<"u"&&r.undirected.hasOwnProperty(n):!1}throw new Me(`Graph.hasEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`)}directedEdge(t,n){if(this.type==="undirected")return;if(t=""+t,n=""+n,this.multi)throw new Qe("Graph.directedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.directedEdges instead.");const r=this._nodes.get(t);if(!r)throw new ke(`Graph.directedEdge: could not find the "${t}" source node in the graph.`);if(!this._nodes.has(n))throw new ke(`Graph.directedEdge: could not find the "${n}" target node in the graph.`);const i=r.out&&r.out[n]||void 0;if(i)return i.key}undirectedEdge(t,n){if(this.type==="directed")return;if(t=""+t,n=""+n,this.multi)throw new Qe("Graph.undirectedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.undirectedEdges instead.");const r=this._nodes.get(t);if(!r)throw new ke(`Graph.undirectedEdge: could not find the "${t}" source node in the graph.`);if(!this._nodes.has(n))throw new ke(`Graph.undirectedEdge: could not find the "${n}" target node in the graph.`);const i=r.undirected&&r.undirected[n]||void 0;if(i)return i.key}edge(t,n){if(this.multi)throw new Qe("Graph.edge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.edges instead.");t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new ke(`Graph.edge: could not find the "${t}" source node in the graph.`);if(!this._nodes.has(n))throw new ke(`Graph.edge: could not find the "${n}" target node in the graph.`);const i=r.out&&r.out[n]||r.undirected&&r.undirected[n]||void 0;if(i)return i.key}areDirectedNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new ke(`Graph.areDirectedNeighbors: could not find the "${t}" node in the graph.`);return this.type==="undirected"?!1:n in r.in||n in r.out}areOutNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new ke(`Graph.areOutNeighbors: could not find the "${t}" node in the graph.`);return this.type==="undirected"?!1:n in r.out}areInNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new ke(`Graph.areInNeighbors: could not find the "${t}" node in the graph.`);return this.type==="undirected"?!1:n in r.in}areUndirectedNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new ke(`Graph.areUndirectedNeighbors: could not find the "${t}" node in the graph.`);return this.type==="directed"?!1:n in r.undirected}areNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new ke(`Graph.areNeighbors: could not find the "${t}" node in the graph.`);return this.type!=="undirected"&&(n in r.in||n in r.out)||this.type!=="directed"&&n in r.undirected}areInboundNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new ke(`Graph.areInboundNeighbors: could not find the "${t}" node in the graph.`);return this.type!=="undirected"&&n in r.in||this.type!=="directed"&&n in r.undirected}areOutboundNeighbors(t,n){t=""+t,n=""+n;const r=this._nodes.get(t);if(!r)throw new ke(`Graph.areOutboundNeighbors: could not find the "${t}" node in the graph.`);return this.type!=="undirected"&&n in r.out||this.type!=="directed"&&n in r.undirected}inDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.inDegree: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree}outDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.outDegree: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.outDegree}directedDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.directedDegree: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree+n.outDegree}undirectedDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.undirectedDegree: could not find the "${t}" node in the graph.`);return this.type==="directed"?0:n.undirectedDegree}inboundDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.inboundDegree: could not find the "${t}" node in the graph.`);let r=0;return this.type!=="directed"&&(r+=n.undirectedDegree),this.type!=="undirected"&&(r+=n.inDegree),r}outboundDegree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.outboundDegree: could not find the "${t}" node in the graph.`);let r=0;return this.type!=="directed"&&(r+=n.undirectedDegree),this.type!=="undirected"&&(r+=n.outDegree),r}degree(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.degree: could not find the "${t}" node in the graph.`);let r=0;return this.type!=="directed"&&(r+=n.undirectedDegree),this.type!=="undirected"&&(r+=n.inDegree+n.outDegree),r}inDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.inDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree-n.directedLoops}outDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.outDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.outDegree-n.directedLoops}directedDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.directedDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree+n.outDegree-n.directedLoops*2}undirectedDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.undirectedDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="directed"?0:n.undirectedDegree-n.undirectedLoops*2}inboundDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.inboundDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);let r=0,i=0;return this.type!=="directed"&&(r+=n.undirectedDegree,i+=n.undirectedLoops*2),this.type!=="undirected"&&(r+=n.inDegree,i+=n.directedLoops),r-i}outboundDegreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.outboundDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);let r=0,i=0;return this.type!=="directed"&&(r+=n.undirectedDegree,i+=n.undirectedLoops*2),this.type!=="undirected"&&(r+=n.outDegree,i+=n.directedLoops),r-i}degreeWithoutSelfLoops(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.degreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);let r=0,i=0;return this.type!=="directed"&&(r+=n.undirectedDegree,i+=n.undirectedLoops*2),this.type!=="undirected"&&(r+=n.inDegree+n.outDegree,i+=n.directedLoops*2),r-i}source(t){t=""+t;const n=this._edges.get(t);if(!n)throw new ke(`Graph.source: could not find the "${t}" edge in the graph.`);return n.source.key}target(t){t=""+t;const n=this._edges.get(t);if(!n)throw new ke(`Graph.target: could not find the "${t}" edge in the graph.`);return n.target.key}extremities(t){t=""+t;const n=this._edges.get(t);if(!n)throw new ke(`Graph.extremities: could not find the "${t}" edge in the graph.`);return[n.source.key,n.target.key]}opposite(t,n){t=""+t,n=""+n;const r=this._edges.get(n);if(!r)throw new ke(`Graph.opposite: could not find the "${n}" edge in the graph.`);const i=r.source.key,a=r.target.key;if(t===i)return a;if(t===a)return i;throw new ke(`Graph.opposite: the "${t}" node is not attached to the "${n}" edge (${i}, ${a}).`)}hasExtremity(t,n){t=""+t,n=""+n;const r=this._edges.get(t);if(!r)throw new ke(`Graph.hasExtremity: could not find the "${t}" edge in the graph.`);return r.source.key===n||r.target.key===n}isUndirected(t){t=""+t;const n=this._edges.get(t);if(!n)throw new ke(`Graph.isUndirected: could not find the "${t}" edge in the graph.`);return n.undirected}isDirected(t){t=""+t;const n=this._edges.get(t);if(!n)throw new ke(`Graph.isDirected: could not find the "${t}" edge in the graph.`);return!n.undirected}isSelfLoop(t){t=""+t;const n=this._edges.get(t);if(!n)throw new ke(`Graph.isSelfLoop: could not find the "${t}" edge in the graph.`);return n.source===n.target}addNode(t,n){return Cxe(this,t,n).key}mergeNode(t,n){if(n&&!Xn(n))throw new Me(`Graph.mergeNode: invalid attributes. Expecting an object but got "${n}"`);t=""+t,n=n||{};let r=this._nodes.get(t);return r?(n&&(Mn(r.attributes,n),this.emit("nodeAttributesUpdated",{type:"merge",key:t,attributes:r.attributes,data:n})),[t,!1]):(r=new this.NodeDataClass(t,n),this._nodes.set(t,r),this.emit("nodeAdded",{key:t,attributes:n}),[t,!0])}updateNode(t,n){if(n&&typeof n!="function")throw new Me(`Graph.updateNode: invalid updater function. Expecting a function but got "${n}"`);t=""+t;let r=this._nodes.get(t);if(r){if(n){const a=r.attributes;r.attributes=n(a),this.emit("nodeAttributesUpdated",{type:"replace",key:t,attributes:r.attributes})}return[t,!1]}const i=n?n({}):{};return r=new this.NodeDataClass(t,i),this._nodes.set(t,r),this.emit("nodeAdded",{key:t,attributes:i}),[t,!0]}dropNode(t){t=""+t;const n=this._nodes.get(t);if(!n)throw new ke(`Graph.dropNode: could not find the "${t}" node in the graph.`);let r;if(this.type!=="undirected"){for(const i in n.out){r=n.out[i];do gc(this,r),r=r.next;while(r)}for(const i in n.in){r=n.in[i];do gc(this,r),r=r.next;while(r)}}if(this.type!=="directed")for(const i in n.undirected){r=n.undirected[i];do gc(this,r),r=r.next;while(r)}this._nodes.delete(t),this.emit("nodeDropped",{key:t,attributes:n.attributes})}dropEdge(t){let n;if(arguments.length>1){const r=""+arguments[0],i=""+arguments[1];if(n=bi(this,r,i,this.type),!n)throw new ke(`Graph.dropEdge: could not find the "${r}" -> "${i}" edge in the graph.`)}else if(t=""+t,n=this._edges.get(t),!n)throw new ke(`Graph.dropEdge: could not find the "${t}" edge in the graph.`);return gc(this,n),this}dropDirectedEdge(t,n){if(arguments.length<2)throw new Qe("Graph.dropDirectedEdge: it does not make sense to try and drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new Qe("Graph.dropDirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");t=""+t,n=""+n;const r=bi(this,t,n,"directed");if(!r)throw new ke(`Graph.dropDirectedEdge: could not find a "${t}" -> "${n}" edge in the graph.`);return gc(this,r),this}dropUndirectedEdge(t,n){if(arguments.length<2)throw new Qe("Graph.dropUndirectedEdge: it does not make sense to drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new Qe("Graph.dropUndirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");const r=bi(this,t,n,"undirected");if(!r)throw new ke(`Graph.dropUndirectedEdge: could not find a "${t}" -> "${n}" edge in the graph.`);return gc(this,r),this}clear(){this._edges.clear(),this._nodes.clear(),this._resetInstanceCounters(),this.emit("cleared")}clearEdges(){const t=this._nodes.values();let n;for(;n=t.next(),n.done!==!0;)n.value.clear();this._edges.clear(),this._resetInstanceCounters(),this.emit("edgesCleared")}getAttribute(t){return this._attributes[t]}getAttributes(){return this._attributes}hasAttribute(t){return this._attributes.hasOwnProperty(t)}setAttribute(t,n){return this._attributes[t]=n,this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:t}),this}updateAttribute(t,n){if(typeof n!="function")throw new Me("Graph.updateAttribute: updater should be a function.");const r=this._attributes[t];return this._attributes[t]=n(r),this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:t}),this}removeAttribute(t){return delete this._attributes[t],this.emit("attributesUpdated",{type:"remove",attributes:this._attributes,name:t}),this}replaceAttributes(t){if(!Xn(t))throw new Me("Graph.replaceAttributes: provided attributes are not a plain object.");return this._attributes=t,this.emit("attributesUpdated",{type:"replace",attributes:this._attributes}),this}mergeAttributes(t){if(!Xn(t))throw new Me("Graph.mergeAttributes: provided attributes are not a plain object.");return Mn(this._attributes,t),this.emit("attributesUpdated",{type:"merge",attributes:this._attributes,data:t}),this}updateAttributes(t){if(typeof t!="function")throw new Me("Graph.updateAttributes: provided updater is not a function.");return this._attributes=t(this._attributes),this.emit("attributesUpdated",{type:"update",attributes:this._attributes}),this}updateEachNodeAttributes(t,n){if(typeof t!="function")throw new Me("Graph.updateEachNodeAttributes: expecting an updater function.");if(n&&!sL(n))throw new Me("Graph.updateEachNodeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");const r=this._nodes.values();let i,a;for(;i=r.next(),i.done!==!0;)a=i.value,a.attributes=t(a.key,a.attributes);this.emit("eachNodeAttributesUpdated",{hints:n||null})}updateEachEdgeAttributes(t,n){if(typeof t!="function")throw new Me("Graph.updateEachEdgeAttributes: expecting an updater function.");if(n&&!sL(n))throw new Me("Graph.updateEachEdgeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");const r=this._edges.values();let i,a,s,u;for(;i=r.next(),i.done!==!0;)a=i.value,s=a.source,u=a.target,a.attributes=t(a.key,a.attributes,s.key,u.key,s.attributes,u.attributes,a.undirected);this.emit("eachEdgeAttributesUpdated",{hints:n||null})}forEachAdjacencyEntry(t){if(typeof t!="function")throw new Me("Graph.forEachAdjacencyEntry: expecting a callback.");Vg(!1,!1,!1,this,t)}forEachAdjacencyEntryWithOrphans(t){if(typeof t!="function")throw new Me("Graph.forEachAdjacencyEntryWithOrphans: expecting a callback.");Vg(!1,!1,!0,this,t)}forEachAssymetricAdjacencyEntry(t){if(typeof t!="function")throw new Me("Graph.forEachAssymetricAdjacencyEntry: expecting a callback.");Vg(!1,!0,!1,this,t)}forEachAssymetricAdjacencyEntryWithOrphans(t){if(typeof t!="function")throw new Me("Graph.forEachAssymetricAdjacencyEntryWithOrphans: expecting a callback.");Vg(!1,!0,!0,this,t)}nodes(){return Array.from(this._nodes.keys())}forEachNode(t){if(typeof t!="function")throw new Me("Graph.forEachNode: expecting a callback.");const n=this._nodes.values();let r,i;for(;r=n.next(),r.done!==!0;)i=r.value,t(i.key,i.attributes)}findNode(t){if(typeof t!="function")throw new Me("Graph.findNode: expecting a callback.");const n=this._nodes.values();let r,i;for(;r=n.next(),r.done!==!0;)if(i=r.value,t(i.key,i.attributes))return i.key}mapNodes(t){if(typeof t!="function")throw new Me("Graph.mapNode: expecting a callback.");const n=this._nodes.values();let r,i;const a=new Array(this.order);let s=0;for(;r=n.next(),r.done!==!0;)i=r.value,a[s++]=t(i.key,i.attributes);return a}someNode(t){if(typeof t!="function")throw new Me("Graph.someNode: expecting a callback.");const n=this._nodes.values();let r,i;for(;r=n.next(),r.done!==!0;)if(i=r.value,t(i.key,i.attributes))return!0;return!1}everyNode(t){if(typeof t!="function")throw new Me("Graph.everyNode: expecting a callback.");const n=this._nodes.values();let r,i;for(;r=n.next(),r.done!==!0;)if(i=r.value,!t(i.key,i.attributes))return!1;return!0}filterNodes(t){if(typeof t!="function")throw new Me("Graph.filterNodes: expecting a callback.");const n=this._nodes.values();let r,i;const a=[];for(;r=n.next(),r.done!==!0;)i=r.value,t(i.key,i.attributes)&&a.push(i.key);return a}reduceNodes(t,n){if(typeof t!="function")throw new Me("Graph.reduceNodes: expecting a callback.");if(arguments.length<2)throw new Me("Graph.reduceNodes: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.");let r=n;const i=this._nodes.values();let a,s;for(;a=i.next(),a.done!==!0;)s=a.value,r=t(r,s.key,s.attributes);return r}nodeEntries(){const t=this._nodes.values();return{[Symbol.iterator](){return this},next(){const n=t.next();if(n.done)return n;const r=n.value;return{value:{node:r.key,attributes:r.attributes},done:!1}}}}export(){const t=new Array(this._nodes.size);let n=0;this._nodes.forEach((i,a)=>{t[n++]=bxe(a,i)});const r=new Array(this._edges.size);return n=0,this._edges.forEach((i,a)=>{r[n++]=wxe(this.type,a,i)}),{options:{type:this.type,multi:this.multi,allowSelfLoops:this.allowSelfLoops},attributes:this.getAttributes(),nodes:t,edges:r}}import(t,n=!1){if(t instanceof Lt)return t.forEachNode((c,f)=>{n?this.mergeNode(c,f):this.addNode(c,f)}),t.forEachEdge((c,f,h,p,g,v,y)=>{n?y?this.mergeUndirectedEdgeWithKey(c,h,p,f):this.mergeDirectedEdgeWithKey(c,h,p,f):y?this.addUndirectedEdgeWithKey(c,h,p,f):this.addDirectedEdgeWithKey(c,h,p,f)}),this;if(!Xn(t))throw new Me("Graph.import: invalid argument. Expecting a serialized graph or, alternatively, a Graph instance.");if(t.attributes){if(!Xn(t.attributes))throw new Me("Graph.import: invalid attributes. Expecting a plain object.");n?this.mergeAttributes(t.attributes):this.replaceAttributes(t.attributes)}let r,i,a,s,u;if(t.nodes){if(a=t.nodes,!Array.isArray(a))throw new Me("Graph.import: invalid nodes. Expecting an array.");for(r=0,i=a.length;r<i;r++){s=a[r],xxe(s);const{key:c,attributes:f}=s;n?this.mergeNode(c,f):this.addNode(c,f)}}if(t.edges){let c=!1;if(this.type==="undirected"&&(c=!0),a=t.edges,!Array.isArray(a))throw new Me("Graph.import: invalid edges. Expecting an array.");for(r=0,i=a.length;r<i;r++){u=a[r],_xe(u);const{source:f,target:h,attributes:p,undirected:g=c}=u;let v;"key"in u?(v=n?g?this.mergeUndirectedEdgeWithKey:this.mergeDirectedEdgeWithKey:g?this.addUndirectedEdgeWithKey:this.addDirectedEdgeWithKey,v.call(this,u.key,f,h,p)):(v=n?g?this.mergeUndirectedEdge:this.mergeDirectedEdge:g?this.addUndirectedEdge:this.addDirectedEdge,v.call(this,f,h,p))}}return this}nullCopy(t){const n=new Lt(Mn({},this._options,t));return n.replaceAttributes(Mn({},this.getAttributes())),n}emptyCopy(t){const n=this.nullCopy(t);return this._nodes.forEach((r,i)=>{const a=Mn({},r.attributes);r=new n.NodeDataClass(i,a),n._nodes.set(i,r)}),n}copy(t){if(t=t||{},typeof t.type=="string"&&t.type!==this.type&&t.type!=="mixed")throw new Qe(`Graph.copy: cannot create an incompatible copy from "${this.type}" type to "${t.type}" because this would mean losing information about the current graph.`);if(typeof t.multi=="boolean"&&t.multi!==this.multi&&t.multi!==!0)throw new Qe("Graph.copy: cannot create an incompatible copy by downgrading a multi graph to a simple one because this would mean losing information about the current graph.");if(typeof t.allowSelfLoops=="boolean"&&t.allowSelfLoops!==this.allowSelfLoops&&t.allowSelfLoops!==!0)throw new Qe("Graph.copy: cannot create an incompatible copy from a graph allowing self loops to one that does not because this would mean losing information about the current graph.");const n=this.emptyCopy(t),r=this._edges.values();let i,a;for(;i=r.next(),i.done!==!0;)a=i.value,tU(n,"copy",!1,a.undirected,a.key,a.source.key,a.target.key,Mn({},a.attributes));return n}toJSON(){return this.export()}toString(){return"[object Graph]"}inspect(){const t={};this._nodes.forEach((a,s)=>{t[s]=a.attributes});const n={},r={};this._edges.forEach((a,s)=>{const u=a.undirected?"--":"->";let c="",f=a.source.key,h=a.target.key,p;a.undirected&&f>h&&(p=f,f=h,h=p);const g=`(${f})${u}(${h})`;s.startsWith("geid_")?this.multi&&(typeof r[g]>"u"?r[g]=0:r[g]++,c+=`${r[g]}. `):c+=`[${s}]: `,c+=g,n[c]=a.attributes});const i={};for(const a in this)this.hasOwnProperty(a)&&!lL.has(a)&&typeof this[a]!="function"&&typeof a!="symbol"&&(i[a]=this[a]);return i.attributes=this._attributes,i.nodes=t,i.edges=n,pi(i,"constructor",this.constructor),i}}typeof Symbol<"u"&&(Lt.prototype[Symbol.for("nodejs.util.inspect.custom")]=Lt.prototype.inspect);Axe.forEach(e=>{["add","merge","update"].forEach(t=>{const n=e.name(t),r=t==="add"?tU:Oxe;e.generateKey?Lt.prototype[n]=function(i,a,s){return r(this,n,!0,(e.type||this.type)==="undirected",null,i,a,s,t==="update")}:Lt.prototype[n]=function(i,a,s,u){return r(this,n,!1,(e.type||this.type)==="undirected",i,a,s,u,t==="update")}})});zwe(Lt);Ywe(Lt);cxe(Lt);yxe(Lt);class nU extends Lt{constructor(t){const n=Mn({type:"directed"},t);if("multi"in n&&n.multi!==!1)throw new Me("DirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if(n.type!=="directed")throw new Me('DirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}}class rU extends Lt{constructor(t){const n=Mn({type:"undirected"},t);if("multi"in n&&n.multi!==!1)throw new Me("UndirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if(n.type!=="undirected")throw new Me('UndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}}class iU extends Lt{constructor(t){const n=Mn({multi:!0},t);if("multi"in n&&n.multi!==!0)throw new Me("MultiGraph.from: inconsistent indication that the graph should be simple in given options!");super(n)}}class aU extends Lt{constructor(t){const n=Mn({type:"directed",multi:!0},t);if("multi"in n&&n.multi!==!0)throw new Me("MultiDirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if(n.type!=="directed")throw new Me('MultiDirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}}class oU extends Lt{constructor(t){const n=Mn({type:"undirected",multi:!0},t);if("multi"in n&&n.multi!==!0)throw new Me("MultiUndirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if(n.type!=="undirected")throw new Me('MultiUndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}}function Rf(e){e.from=function(t,n){const r=Mn({},t.options,n),i=new e(r);return i.import(t),i}}Rf(Lt);Rf(nU);Rf(rU);Rf(iU);Rf(aU);Rf(oU);Lt.Graph=Lt;Lt.DirectedGraph=nU;Lt.UndirectedGraph=rU;Lt.MultiGraph=iU;Lt.MultiDirectedGraph=aU;Lt.MultiUndirectedGraph=oU;Lt.InvalidArgumentsGraphError=Me;Lt.NotFoundGraphError=ke;Lt.UsageGraphError=Qe;function Txe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function vh(e){var t=Txe(e,"string");return typeof t=="symbol"?t:t+""}function fr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vh(r.key),r)}}function dr(e,t,n){return t&&cL(e.prototype,t),n&&cL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pf(e){return pf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pf(e)}function sU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sU=function(){return!!e})()}function Mxe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pxe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mxe(e)}function Ai(e,t,n){return t=pf(t),Pxe(e,sU()?Reflect.construct(t,n||[],pf(e).constructor):t.apply(e,n))}function T2(e,t){return T2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},T2(e,t)}function ki(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T2(e,t)}function Nxe(e){if(Array.isArray(e))return e}function Rxe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,s,u=[],c=!0,f=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(h){f=!0,i=h}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return u}}function M2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lU(e,t){if(e){if(typeof e=="string")return M2(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M2(e,t):void 0}}function Dxe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
926
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mf(e,t){return Nxe(e)||Rxe(e,t)||lU(e,t)||Dxe()}var c_={black:"#000000",silver:"#C0C0C0",gray:"#808080",grey:"#808080",white:"#FFFFFF",maroon:"#800000",red:"#FF0000",purple:"#800080",fuchsia:"#FF00FF",green:"#008000",lime:"#00FF00",olive:"#808000",yellow:"#FFFF00",navy:"#000080",blue:"#0000FF",teal:"#008080",aqua:"#00FFFF",darkblue:"#00008B",mediumblue:"#0000CD",darkgreen:"#006400",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",springgreen:"#00FF7F",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",rebeccapurple:"#663399",mediumaquamarine:"#66CDAA",dimgray:"#696969",dimgrey:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",slategrey:"#708090",lightslategray:"#778899",lightslategrey:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370DB",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",palevioletred:"#DB7093",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",lightyellow:"#FFFFE0",ivory:"#FFFFF0"},uU=new Int8Array(4),f_=new Int32Array(uU.buffer,0,1),Ixe=new Float32Array(uU.buffer,0,1),Lxe=/^\s*rgba?\s*\(/,zxe=/^\s*rgba?\s*\(\s*([0-9]*)\s*,\s*([0-9]*)\s*,\s*([0-9]*)(?:\s*,\s*(.*)?)?\)\s*$/;function jxe(e){var t=0,n=0,r=0,i=1;if(e[0]==="#")e.length===4?(t=parseInt(e.charAt(1)+e.charAt(1),16),n=parseInt(e.charAt(2)+e.charAt(2),16),r=parseInt(e.charAt(3)+e.charAt(3),16)):(t=parseInt(e.charAt(1)+e.charAt(2),16),n=parseInt(e.charAt(3)+e.charAt(4),16),r=parseInt(e.charAt(5)+e.charAt(6),16)),e.length===9&&(i=parseInt(e.charAt(7)+e.charAt(8),16)/255);else if(Lxe.test(e)){var a=e.match(zxe);a&&(t=+a[1],n=+a[2],r=+a[3],a[4]&&(i=+a[4]))}return{r:t,g:n,b:r,a:i}}var Rc={};for(var Kg in c_)Rc[Kg]=$p(c_[Kg]),Rc[c_[Kg]]=Rc[Kg];function cU(e,t,n,r,i){return f_[0]=r<<24|n<<16|t<<8|e,f_[0]=f_[0]&4278190079,Ixe[0]}function $p(e){if(e=e.toLowerCase(),typeof Rc[e]<"u")return Rc[e];var t=jxe(e),n=t.r,r=t.g,i=t.b,a=t.a;a=a*255|0;var s=cU(n,r,i,a);return Rc[e]=s,s}var d_={};function fU(e){if(typeof d_[e]<"u")return d_[e];var t=(e&16711680)>>>16,n=(e&65280)>>>8,r=e&255,i=255,a=cU(t,n,r,i);return d_[e]=a,a}function fL(e,t,n,r){return n+(t<<8)+(e<<16)}function dL(e,t,n,r,i,a){var s=Math.floor(n/a*i),u=Math.floor(e.drawingBufferHeight/a-r/a*i),c=new Uint8Array(4);e.bindFramebuffer(e.FRAMEBUFFER,t),e.readPixels(s,u,1,1,e.RGBA,e.UNSIGNED_BYTE,c);var f=mf(c,4),h=f[0],p=f[1],g=f[2],v=f[3];return[h,p,g,v]}function xe(e,t,n){return(t=vh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hL(Object(n),!0).forEach(function(r){xe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $xe(e,t){for(;!{}.hasOwnProperty.call(e,t)&&(e=pf(e))!==null;);return e}function P2(){return P2=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=$xe(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},P2.apply(null,arguments)}function dU(e,t,n,r){var i=P2(pf(e.prototype),t,n);return typeof i=="function"?function(a){return i.apply(n,a)}:i}function Bxe(e){return e.normalized?1:e.size}function h_(e){var t=0;return e.forEach(function(n){return t+=Bxe(n)}),t}function hU(e,t,n){var r=e==="VERTEX"?t.VERTEX_SHADER:t.FRAGMENT_SHADER,i=t.createShader(r);if(i===null)throw new Error("loadShader: error while creating the shader");t.shaderSource(i,n),t.compileShader(i);var a=t.getShaderParameter(i,t.COMPILE_STATUS);if(!a){var s=t.getShaderInfoLog(i);throw t.deleteShader(i),new Error(`loadShader: error while compiling the shader:
927
+ `.concat(s,`
928
+ `).concat(n))}return i}function Uxe(e,t){return hU("VERTEX",e,t)}function Fxe(e,t){return hU("FRAGMENT",e,t)}function Hxe(e,t){var n=e.createProgram();if(n===null)throw new Error("loadProgram: error while creating the program.");var r,i;for(r=0,i=t.length;r<i;r++)e.attachShader(n,t[r]);e.linkProgram(n);var a=e.getProgramParameter(n,e.LINK_STATUS);if(!a)throw e.deleteProgram(n),new Error("loadProgram: error while linking the program.");return n}function pL(e){var t=e.gl,n=e.buffer,r=e.program,i=e.vertexShader,a=e.fragmentShader;t.deleteShader(i),t.deleteShader(a),t.deleteProgram(r),t.deleteBuffer(n)}var mL=`#define PICKING_MODE
929
+ `,Gxe=xe(xe(xe(xe(xe(xe(xe(xe({},WebGL2RenderingContext.BOOL,1),WebGL2RenderingContext.BYTE,1),WebGL2RenderingContext.UNSIGNED_BYTE,1),WebGL2RenderingContext.SHORT,2),WebGL2RenderingContext.UNSIGNED_SHORT,2),WebGL2RenderingContext.INT,4),WebGL2RenderingContext.UNSIGNED_INT,4),WebGL2RenderingContext.FLOAT,4),pU=(function(){function e(t,n,r){fr(this,e),xe(this,"array",new Float32Array),xe(this,"constantArray",new Float32Array),xe(this,"capacity",0),xe(this,"verticesCount",0);var i=this.getDefinition();if(this.VERTICES=i.VERTICES,this.VERTEX_SHADER_SOURCE=i.VERTEX_SHADER_SOURCE,this.FRAGMENT_SHADER_SOURCE=i.FRAGMENT_SHADER_SOURCE,this.UNIFORMS=i.UNIFORMS,this.ATTRIBUTES=i.ATTRIBUTES,this.METHOD=i.METHOD,this.CONSTANT_ATTRIBUTES="CONSTANT_ATTRIBUTES"in i?i.CONSTANT_ATTRIBUTES:[],this.CONSTANT_DATA="CONSTANT_DATA"in i?i.CONSTANT_DATA:[],this.isInstanced="CONSTANT_ATTRIBUTES"in i,this.ATTRIBUTES_ITEMS_COUNT=h_(this.ATTRIBUTES),this.STRIDE=this.VERTICES*this.ATTRIBUTES_ITEMS_COUNT,this.renderer=r,this.normalProgram=this.getProgramInfo("normal",t,i.VERTEX_SHADER_SOURCE,i.FRAGMENT_SHADER_SOURCE,null),this.pickProgram=n?this.getProgramInfo("pick",t,mL+i.VERTEX_SHADER_SOURCE,mL+i.FRAGMENT_SHADER_SOURCE,n):null,this.isInstanced){var a=h_(this.CONSTANT_ATTRIBUTES);if(this.CONSTANT_DATA.length!==this.VERTICES)throw new Error("Program: error while getting constant data (expected ".concat(this.VERTICES," items, received ").concat(this.CONSTANT_DATA.length," instead)"));this.constantArray=new Float32Array(this.CONSTANT_DATA.length*a);for(var s=0;s<this.CONSTANT_DATA.length;s++){var u=this.CONSTANT_DATA[s];if(u.length!==a)throw new Error("Program: error while getting constant data (one vector has ".concat(u.length," items instead of ").concat(a,")"));for(var c=0;c<u.length;c++)this.constantArray[s*a+c]=u[c]}this.STRIDE=this.ATTRIBUTES_ITEMS_COUNT}}return dr(e,[{key:"kill",value:function(){pL(this.normalProgram),this.pickProgram&&(pL(this.pickProgram),this.pickProgram=null)}},{key:"getProgramInfo",value:function(n,r,i,a,s){var u=this.getDefinition(),c=r.createBuffer();if(c===null)throw new Error("Program: error while creating the WebGL buffer.");var f=Uxe(r,i),h=Fxe(r,a),p=Hxe(r,[f,h]),g={};u.UNIFORMS.forEach(function(b){var w=r.getUniformLocation(p,b);w&&(g[b]=w)});var v={};u.ATTRIBUTES.forEach(function(b){v[b.name]=r.getAttribLocation(p,b.name)});var y;if("CONSTANT_ATTRIBUTES"in u&&(u.CONSTANT_ATTRIBUTES.forEach(function(b){v[b.name]=r.getAttribLocation(p,b.name)}),y=r.createBuffer(),y===null))throw new Error("Program: error while creating the WebGL constant buffer.");return{name:n,program:p,gl:r,frameBuffer:s,buffer:c,constantBuffer:y||{},uniformLocations:g,attributeLocations:v,isPicking:n==="pick",vertexShader:f,fragmentShader:h}}},{key:"bindProgram",value:function(n){var r=this,i=0,a=n.gl,s=n.buffer;this.isInstanced?(a.bindBuffer(a.ARRAY_BUFFER,n.constantBuffer),i=0,this.CONSTANT_ATTRIBUTES.forEach(function(u){return i+=r.bindAttribute(u,n,i,!1)}),a.bufferData(a.ARRAY_BUFFER,this.constantArray,a.STATIC_DRAW),a.bindBuffer(a.ARRAY_BUFFER,n.buffer),i=0,this.ATTRIBUTES.forEach(function(u){return i+=r.bindAttribute(u,n,i,!0)}),a.bufferData(a.ARRAY_BUFFER,this.array,a.DYNAMIC_DRAW)):(a.bindBuffer(a.ARRAY_BUFFER,s),i=0,this.ATTRIBUTES.forEach(function(u){return i+=r.bindAttribute(u,n,i)}),a.bufferData(a.ARRAY_BUFFER,this.array,a.DYNAMIC_DRAW)),a.bindBuffer(a.ARRAY_BUFFER,null)}},{key:"unbindProgram",value:function(n){var r=this;this.isInstanced?(this.CONSTANT_ATTRIBUTES.forEach(function(i){return r.unbindAttribute(i,n,!1)}),this.ATTRIBUTES.forEach(function(i){return r.unbindAttribute(i,n,!0)})):this.ATTRIBUTES.forEach(function(i){return r.unbindAttribute(i,n)})}},{key:"bindAttribute",value:function(n,r,i,a){var s=Gxe[n.type];if(typeof s!="number")throw new Error('Program.bind: yet unsupported attribute type "'.concat(n.type,'"'));var u=r.attributeLocations[n.name],c=r.gl;if(u!==-1){c.enableVertexAttribArray(u);var f=this.isInstanced?(a?this.ATTRIBUTES_ITEMS_COUNT:h_(this.CONSTANT_ATTRIBUTES))*Float32Array.BYTES_PER_ELEMENT:this.ATTRIBUTES_ITEMS_COUNT*Float32Array.BYTES_PER_ELEMENT;if(c.vertexAttribPointer(u,n.size,n.type,n.normalized||!1,f,i),this.isInstanced&&a)if(c instanceof WebGL2RenderingContext)c.vertexAttribDivisor(u,1);else{var h=c.getExtension("ANGLE_instanced_arrays");h&&h.vertexAttribDivisorANGLE(u,1)}}return n.size*s}},{key:"unbindAttribute",value:function(n,r,i){var a=r.attributeLocations[n.name],s=r.gl;if(a!==-1&&(s.disableVertexAttribArray(a),this.isInstanced&&i))if(s instanceof WebGL2RenderingContext)s.vertexAttribDivisor(a,0);else{var u=s.getExtension("ANGLE_instanced_arrays");u&&u.vertexAttribDivisorANGLE(a,0)}}},{key:"reallocate",value:function(n){n!==this.capacity&&(this.capacity=n,this.verticesCount=this.VERTICES*n,this.array=new Float32Array(this.isInstanced?this.capacity*this.ATTRIBUTES_ITEMS_COUNT:this.verticesCount*this.ATTRIBUTES_ITEMS_COUNT))}},{key:"hasNothingToRender",value:function(){return this.verticesCount===0}},{key:"renderProgram",value:function(n,r){var i=r.gl,a=r.program;i.enable(i.BLEND),i.useProgram(a),this.setUniforms(n,r),this.drawWebGL(this.METHOD,r)}},{key:"render",value:function(n){this.hasNothingToRender()||(this.pickProgram&&(this.pickProgram.gl.viewport(0,0,n.width*n.pixelRatio/n.downSizingRatio,n.height*n.pixelRatio/n.downSizingRatio),this.bindProgram(this.pickProgram),this.renderProgram(Fe(Fe({},n),{},{pixelRatio:n.pixelRatio/n.downSizingRatio}),this.pickProgram),this.unbindProgram(this.pickProgram)),this.normalProgram.gl.viewport(0,0,n.width*n.pixelRatio,n.height*n.pixelRatio),this.bindProgram(this.normalProgram),this.renderProgram(n,this.normalProgram),this.unbindProgram(this.normalProgram))}},{key:"drawWebGL",value:function(n,r){var i=r.gl,a=r.frameBuffer;if(i.bindFramebuffer(i.FRAMEBUFFER,a),!this.isInstanced)i.drawArrays(n,0,this.verticesCount);else if(i instanceof WebGL2RenderingContext)i.drawArraysInstanced(n,0,this.VERTICES,this.capacity);else{var s=i.getExtension("ANGLE_instanced_arrays");s&&s.drawArraysInstancedANGLE(n,0,this.VERTICES,this.capacity)}}}])})(),qxe=(function(e){function t(){return fr(this,t),Ai(this,t,arguments)}return ki(t,e),dr(t,[{key:"kill",value:function(){dU(t,"kill",this)([])}},{key:"process",value:function(r,i,a){var s=i*this.STRIDE;if(a.hidden){for(var u=s+this.STRIDE;s<u;s++)this.array[s]=0;return}return this.processVisibleItem(fU(r),s,a)}}])})(pU),pk=(function(e){function t(){var n;fr(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Ai(this,t,[].concat(i)),xe(n,"drawLabel",void 0),n}return ki(t,e),dr(t,[{key:"kill",value:function(){dU(t,"kill",this)([])}},{key:"process",value:function(r,i,a,s,u){var c=i*this.STRIDE;if(u.hidden||a.hidden||s.hidden){for(var f=c+this.STRIDE;c<f;c++)this.array[c]=0;return}return this.processVisibleItem(fU(r),c,a,s,u)}}])})(pU);function Vxe(e,t){return(function(){function n(r,i,a){fr(this,n),xe(this,"drawLabel",t),this.programs=e.map(function(s){return new s(r,i,a)})}return dr(n,[{key:"reallocate",value:function(i){this.programs.forEach(function(a){return a.reallocate(i)})}},{key:"process",value:function(i,a,s,u,c){this.programs.forEach(function(f){return f.process(i,a,s,u,c)})}},{key:"render",value:function(i){this.programs.forEach(function(a){return a.render(i)})}},{key:"kill",value:function(){this.programs.forEach(function(i){return i.kill()})}}])})()}function Kxe(e,t,n,r,i){var a=i.edgeLabelSize,s=i.edgeLabelFont,u=i.edgeLabelWeight,c=i.edgeLabelColor.attribute?t[i.edgeLabelColor.attribute]||i.edgeLabelColor.color||"#000":i.edgeLabelColor.color,f=t.label;if(f){e.fillStyle=c,e.font="".concat(u," ").concat(a,"px ").concat(s);var h=n.size,p=r.size,g=n.x,v=n.y,y=r.x,b=r.y,w=(g+y)/2,_=(v+b)/2,C=y-g,E=b-v,S=Math.sqrt(C*C+E*E);if(!(S<h+p)){g+=C*h/S,v+=E*h/S,y-=C*p/S,b-=E*p/S,w=(g+y)/2,_=(v+b)/2,C=y-g,E=b-v,S=Math.sqrt(C*C+E*E);var T=e.measureText(f).width;if(T>S){var O="…";for(f=f+O,T=e.measureText(f).width;T>S&&f.length>1;)f=f.slice(0,-2)+O,T=e.measureText(f).width;if(f.length<4)return}var M;C>0?E>0?M=Math.acos(C/S):M=Math.asin(E/S):E>0?M=Math.acos(C/S)+Math.PI:M=Math.asin(C/S)+Math.PI/2,e.save(),e.translate(w,_),e.rotate(M),e.fillText(f,-T/2,t.size/2+a),e.restore()}}}function mU(e,t,n){if(t.label){var r=n.labelSize,i=n.labelFont,a=n.labelWeight,s=n.labelColor.attribute?t[n.labelColor.attribute]||n.labelColor.color||"#000":n.labelColor.color;e.fillStyle=s,e.font="".concat(a," ").concat(r,"px ").concat(i),e.fillText(t.label,t.x+t.size+3,t.y+r/3)}}function Yxe(e,t,n){var r=n.labelSize,i=n.labelFont,a=n.labelWeight;e.font="".concat(a," ").concat(r,"px ").concat(i),e.fillStyle="#FFF",e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=8,e.shadowColor="#000";var s=2;if(typeof t.label=="string"){var u=e.measureText(t.label).width,c=Math.round(u+5),f=Math.round(r+2*s),h=Math.max(t.size,r/2)+s,p=Math.asin(f/2/h),g=Math.sqrt(Math.abs(Math.pow(h,2)-Math.pow(f/2,2)));e.beginPath(),e.moveTo(t.x+g,t.y+f/2),e.lineTo(t.x+h+c,t.y+f/2),e.lineTo(t.x+h+c,t.y-f/2),e.lineTo(t.x+g,t.y-f/2),e.arc(t.x,t.y,h,p,-p),e.closePath(),e.fill()}else e.beginPath(),e.arc(t.x,t.y,t.size+s,0,Math.PI*2),e.closePath(),e.fill();e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=0,mU(e,t,n)}var Wxe=`
930
+ precision highp float;
931
+
932
+ varying vec4 v_color;
933
+ varying vec2 v_diffVector;
934
+ varying float v_radius;
935
+
936
+ uniform float u_correctionRatio;
937
+
938
+ const vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);
939
+
940
+ void main(void) {
941
+ float border = u_correctionRatio * 2.0;
942
+ float dist = length(v_diffVector) - v_radius + border;
943
+
944
+ // No antialiasing for picking mode:
945
+ #ifdef PICKING_MODE
946
+ if (dist > border)
947
+ gl_FragColor = transparent;
948
+ else
949
+ gl_FragColor = v_color;
950
+
951
+ #else
952
+ float t = 0.0;
953
+ if (dist > border)
954
+ t = 1.0;
955
+ else if (dist > 0.0)
956
+ t = dist / border;
957
+
958
+ gl_FragColor = mix(v_color, transparent, t);
959
+ #endif
960
+ }
961
+ `,Qxe=Wxe,Zxe=`
962
+ attribute vec4 a_id;
963
+ attribute vec4 a_color;
964
+ attribute vec2 a_position;
965
+ attribute float a_size;
966
+ attribute float a_angle;
967
+
968
+ uniform mat3 u_matrix;
969
+ uniform float u_sizeRatio;
970
+ uniform float u_correctionRatio;
971
+
972
+ varying vec4 v_color;
973
+ varying vec2 v_diffVector;
974
+ varying float v_radius;
975
+ varying float v_border;
976
+
977
+ const float bias = 255.0 / 254.0;
978
+
979
+ void main() {
980
+ float size = a_size * u_correctionRatio / u_sizeRatio * 4.0;
981
+ vec2 diffVector = size * vec2(cos(a_angle), sin(a_angle));
982
+ vec2 position = a_position + diffVector;
983
+ gl_Position = vec4(
984
+ (u_matrix * vec3(position, 1)).xy,
985
+ 0,
986
+ 1
987
+ );
988
+
989
+ v_diffVector = diffVector;
990
+ v_radius = size / 2.0;
991
+
992
+ #ifdef PICKING_MODE
993
+ // For picking mode, we use the ID as the color:
994
+ v_color = a_id;
995
+ #else
996
+ // For normal mode, we use the color:
997
+ v_color = a_color;
998
+ #endif
999
+
1000
+ v_color.a *= bias;
1001
+ }
1002
+ `,Xxe=Zxe,gU=WebGLRenderingContext,gL=gU.UNSIGNED_BYTE,p_=gU.FLOAT,Jxe=["u_sizeRatio","u_correctionRatio","u_matrix"],G0=(function(e){function t(){return fr(this,t),Ai(this,t,arguments)}return ki(t,e),dr(t,[{key:"getDefinition",value:function(){return{VERTICES:3,VERTEX_SHADER_SOURCE:Xxe,FRAGMENT_SHADER_SOURCE:Qxe,METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:Jxe,ATTRIBUTES:[{name:"a_position",size:2,type:p_},{name:"a_size",size:1,type:p_},{name:"a_color",size:4,type:gL,normalized:!0},{name:"a_id",size:4,type:gL,normalized:!0}],CONSTANT_ATTRIBUTES:[{name:"a_angle",size:1,type:p_}],CONSTANT_DATA:[[t.ANGLE_1],[t.ANGLE_2],[t.ANGLE_3]]}}},{key:"processVisibleItem",value:function(r,i,a){var s=this.array,u=$p(a.color);s[i++]=a.x,s[i++]=a.y,s[i++]=a.size,s[i++]=u,s[i++]=r}},{key:"setUniforms",value:function(r,i){var a=i.gl,s=i.uniformLocations,u=s.u_sizeRatio,c=s.u_correctionRatio,f=s.u_matrix;a.uniform1f(c,r.correctionRatio),a.uniform1f(u,r.sizeRatio),a.uniformMatrix3fv(f,!1,r.matrix)}}])})(qxe);xe(G0,"ANGLE_1",0);xe(G0,"ANGLE_2",2*Math.PI/3);xe(G0,"ANGLE_3",4*Math.PI/3);var e_e=`
1003
+ precision mediump float;
1004
+
1005
+ varying vec4 v_color;
1006
+
1007
+ void main(void) {
1008
+ gl_FragColor = v_color;
1009
+ }
1010
+ `,t_e=e_e,n_e=`
1011
+ attribute vec2 a_position;
1012
+ attribute vec2 a_normal;
1013
+ attribute float a_radius;
1014
+ attribute vec3 a_barycentric;
1015
+
1016
+ #ifdef PICKING_MODE
1017
+ attribute vec4 a_id;
1018
+ #else
1019
+ attribute vec4 a_color;
1020
+ #endif
1021
+
1022
+ uniform mat3 u_matrix;
1023
+ uniform float u_sizeRatio;
1024
+ uniform float u_correctionRatio;
1025
+ uniform float u_minEdgeThickness;
1026
+ uniform float u_lengthToThicknessRatio;
1027
+ uniform float u_widenessToThicknessRatio;
1028
+
1029
+ varying vec4 v_color;
1030
+
1031
+ const float bias = 255.0 / 254.0;
1032
+
1033
+ void main() {
1034
+ float minThickness = u_minEdgeThickness;
1035
+
1036
+ float normalLength = length(a_normal);
1037
+ vec2 unitNormal = a_normal / normalLength;
1038
+
1039
+ // These first computations are taken from edge.vert.glsl and
1040
+ // edge.clamped.vert.glsl. Please read it to get better comments on what's
1041
+ // happening:
1042
+ float pixelsThickness = max(normalLength / u_sizeRatio, minThickness);
1043
+ float webGLThickness = pixelsThickness * u_correctionRatio;
1044
+ float webGLNodeRadius = a_radius * 2.0 * u_correctionRatio / u_sizeRatio;
1045
+ float webGLArrowHeadLength = webGLThickness * u_lengthToThicknessRatio * 2.0;
1046
+ float webGLArrowHeadThickness = webGLThickness * u_widenessToThicknessRatio;
1047
+
1048
+ float da = a_barycentric.x;
1049
+ float db = a_barycentric.y;
1050
+ float dc = a_barycentric.z;
1051
+
1052
+ vec2 delta = vec2(
1053
+ da * (webGLNodeRadius * unitNormal.y)
1054
+ + db * ((webGLNodeRadius + webGLArrowHeadLength) * unitNormal.y + webGLArrowHeadThickness * unitNormal.x)
1055
+ + dc * ((webGLNodeRadius + webGLArrowHeadLength) * unitNormal.y - webGLArrowHeadThickness * unitNormal.x),
1056
+
1057
+ da * (-webGLNodeRadius * unitNormal.x)
1058
+ + db * (-(webGLNodeRadius + webGLArrowHeadLength) * unitNormal.x + webGLArrowHeadThickness * unitNormal.y)
1059
+ + dc * (-(webGLNodeRadius + webGLArrowHeadLength) * unitNormal.x - webGLArrowHeadThickness * unitNormal.y)
1060
+ );
1061
+
1062
+ vec2 position = (u_matrix * vec3(a_position + delta, 1)).xy;
1063
+
1064
+ gl_Position = vec4(position, 0, 1);
1065
+
1066
+ #ifdef PICKING_MODE
1067
+ // For picking mode, we use the ID as the color:
1068
+ v_color = a_id;
1069
+ #else
1070
+ // For normal mode, we use the color:
1071
+ v_color = a_color;
1072
+ #endif
1073
+
1074
+ v_color.a *= bias;
1075
+ }
1076
+ `,r_e=n_e,vU=WebGLRenderingContext,vL=vU.UNSIGNED_BYTE,Yg=vU.FLOAT,i_e=["u_matrix","u_sizeRatio","u_correctionRatio","u_minEdgeThickness","u_lengthToThicknessRatio","u_widenessToThicknessRatio"],yU={extremity:"target",lengthToThicknessRatio:2.5,widenessToThicknessRatio:2};function bU(e){var t=Fe(Fe({},yU),{});return(function(n){function r(){return fr(this,r),Ai(this,r,arguments)}return ki(r,n),dr(r,[{key:"getDefinition",value:function(){return{VERTICES:3,VERTEX_SHADER_SOURCE:r_e,FRAGMENT_SHADER_SOURCE:t_e,METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:i_e,ATTRIBUTES:[{name:"a_position",size:2,type:Yg},{name:"a_normal",size:2,type:Yg},{name:"a_radius",size:1,type:Yg},{name:"a_color",size:4,type:vL,normalized:!0},{name:"a_id",size:4,type:vL,normalized:!0}],CONSTANT_ATTRIBUTES:[{name:"a_barycentric",size:3,type:Yg}],CONSTANT_DATA:[[1,0,0],[0,1,0],[0,0,1]]}}},{key:"processVisibleItem",value:function(a,s,u,c,f){if(t.extremity==="source"){var h=[c,u];u=h[0],c=h[1]}var p=f.size||1,g=c.size||1,v=u.x,y=u.y,b=c.x,w=c.y,_=$p(f.color),C=b-v,E=w-y,S=C*C+E*E,T=0,O=0;S&&(S=1/Math.sqrt(S),T=-E*S*p,O=C*S*p);var M=this.array;M[s++]=b,M[s++]=w,M[s++]=-T,M[s++]=-O,M[s++]=g,M[s++]=_,M[s++]=a}},{key:"setUniforms",value:function(a,s){var u=s.gl,c=s.uniformLocations,f=c.u_matrix,h=c.u_sizeRatio,p=c.u_correctionRatio,g=c.u_minEdgeThickness,v=c.u_lengthToThicknessRatio,y=c.u_widenessToThicknessRatio;u.uniformMatrix3fv(f,!1,a.matrix),u.uniform1f(h,a.sizeRatio),u.uniform1f(p,a.correctionRatio),u.uniform1f(g,a.minEdgeThickness),u.uniform1f(v,t.lengthToThicknessRatio),u.uniform1f(y,t.widenessToThicknessRatio)}}])})(pk)}bU();var a_e=`
1077
+ precision mediump float;
1078
+
1079
+ varying vec4 v_color;
1080
+ varying vec2 v_normal;
1081
+ varying float v_thickness;
1082
+ varying float v_feather;
1083
+
1084
+ const vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);
1085
+
1086
+ void main(void) {
1087
+ // We only handle antialiasing for normal mode:
1088
+ #ifdef PICKING_MODE
1089
+ gl_FragColor = v_color;
1090
+ #else
1091
+ float dist = length(v_normal) * v_thickness;
1092
+
1093
+ float t = smoothstep(
1094
+ v_thickness - v_feather,
1095
+ v_thickness,
1096
+ dist
1097
+ );
1098
+
1099
+ gl_FragColor = mix(v_color, transparent, t);
1100
+ #endif
1101
+ }
1102
+ `,wU=a_e,o_e=`
1103
+ attribute vec4 a_id;
1104
+ attribute vec4 a_color;
1105
+ attribute vec2 a_normal;
1106
+ attribute float a_normalCoef;
1107
+ attribute vec2 a_positionStart;
1108
+ attribute vec2 a_positionEnd;
1109
+ attribute float a_positionCoef;
1110
+ attribute float a_radius;
1111
+ attribute float a_radiusCoef;
1112
+
1113
+ uniform mat3 u_matrix;
1114
+ uniform float u_zoomRatio;
1115
+ uniform float u_sizeRatio;
1116
+ uniform float u_pixelRatio;
1117
+ uniform float u_correctionRatio;
1118
+ uniform float u_minEdgeThickness;
1119
+ uniform float u_lengthToThicknessRatio;
1120
+ uniform float u_feather;
1121
+
1122
+ varying vec4 v_color;
1123
+ varying vec2 v_normal;
1124
+ varying float v_thickness;
1125
+ varying float v_feather;
1126
+
1127
+ const float bias = 255.0 / 254.0;
1128
+
1129
+ void main() {
1130
+ float minThickness = u_minEdgeThickness;
1131
+
1132
+ float radius = a_radius * a_radiusCoef;
1133
+ vec2 normal = a_normal * a_normalCoef;
1134
+ vec2 position = a_positionStart * (1.0 - a_positionCoef) + a_positionEnd * a_positionCoef;
1135
+
1136
+ float normalLength = length(normal);
1137
+ vec2 unitNormal = normal / normalLength;
1138
+
1139
+ // These first computations are taken from edge.vert.glsl. Please read it to
1140
+ // get better comments on what's happening:
1141
+ float pixelsThickness = max(normalLength, minThickness * u_sizeRatio);
1142
+ float webGLThickness = pixelsThickness * u_correctionRatio / u_sizeRatio;
1143
+
1144
+ // Here, we move the point to leave space for the arrow head:
1145
+ float direction = sign(radius);
1146
+ float webGLNodeRadius = direction * radius * 2.0 * u_correctionRatio / u_sizeRatio;
1147
+ float webGLArrowHeadLength = webGLThickness * u_lengthToThicknessRatio * 2.0;
1148
+
1149
+ vec2 compensationVector = vec2(-direction * unitNormal.y, direction * unitNormal.x) * (webGLNodeRadius + webGLArrowHeadLength);
1150
+
1151
+ // Here is the proper position of the vertex
1152
+ gl_Position = vec4((u_matrix * vec3(position + unitNormal * webGLThickness + compensationVector, 1)).xy, 0, 1);
1153
+
1154
+ v_thickness = webGLThickness / u_zoomRatio;
1155
+
1156
+ v_normal = unitNormal;
1157
+
1158
+ v_feather = u_feather * u_correctionRatio / u_zoomRatio / u_pixelRatio * 2.0;
1159
+
1160
+ #ifdef PICKING_MODE
1161
+ // For picking mode, we use the ID as the color:
1162
+ v_color = a_id;
1163
+ #else
1164
+ // For normal mode, we use the color:
1165
+ v_color = a_color;
1166
+ #endif
1167
+
1168
+ v_color.a *= bias;
1169
+ }
1170
+ `,s_e=o_e,xU=WebGLRenderingContext,yL=xU.UNSIGNED_BYTE,El=xU.FLOAT,l_e=["u_matrix","u_zoomRatio","u_sizeRatio","u_correctionRatio","u_pixelRatio","u_feather","u_minEdgeThickness","u_lengthToThicknessRatio"],u_e={lengthToThicknessRatio:yU.lengthToThicknessRatio};function _U(e){var t=Fe(Fe({},u_e),{});return(function(n){function r(){return fr(this,r),Ai(this,r,arguments)}return ki(r,n),dr(r,[{key:"getDefinition",value:function(){return{VERTICES:6,VERTEX_SHADER_SOURCE:s_e,FRAGMENT_SHADER_SOURCE:wU,METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:l_e,ATTRIBUTES:[{name:"a_positionStart",size:2,type:El},{name:"a_positionEnd",size:2,type:El},{name:"a_normal",size:2,type:El},{name:"a_color",size:4,type:yL,normalized:!0},{name:"a_id",size:4,type:yL,normalized:!0},{name:"a_radius",size:1,type:El}],CONSTANT_ATTRIBUTES:[{name:"a_positionCoef",size:1,type:El},{name:"a_normalCoef",size:1,type:El},{name:"a_radiusCoef",size:1,type:El}],CONSTANT_DATA:[[0,1,0],[0,-1,0],[1,1,1],[1,1,1],[0,-1,0],[1,-1,-1]]}}},{key:"processVisibleItem",value:function(a,s,u,c,f){var h=f.size||1,p=u.x,g=u.y,v=c.x,y=c.y,b=$p(f.color),w=v-p,_=y-g,C=c.size||1,E=w*w+_*_,S=0,T=0;E&&(E=1/Math.sqrt(E),S=-_*E*h,T=w*E*h);var O=this.array;O[s++]=p,O[s++]=g,O[s++]=v,O[s++]=y,O[s++]=S,O[s++]=T,O[s++]=b,O[s++]=a,O[s++]=C}},{key:"setUniforms",value:function(a,s){var u=s.gl,c=s.uniformLocations,f=c.u_matrix,h=c.u_zoomRatio,p=c.u_feather,g=c.u_pixelRatio,v=c.u_correctionRatio,y=c.u_sizeRatio,b=c.u_minEdgeThickness,w=c.u_lengthToThicknessRatio;u.uniformMatrix3fv(f,!1,a.matrix),u.uniform1f(h,a.zoomRatio),u.uniform1f(y,a.sizeRatio),u.uniform1f(v,a.correctionRatio),u.uniform1f(g,a.pixelRatio),u.uniform1f(p,a.antiAliasingFeather),u.uniform1f(b,a.minEdgeThickness),u.uniform1f(w,t.lengthToThicknessRatio)}}])})(pk)}_U();function c_e(e){return Vxe([_U(),bU()])}var f_e=c_e(),d_e=f_e,h_e=`
1171
+ attribute vec4 a_id;
1172
+ attribute vec4 a_color;
1173
+ attribute vec2 a_normal;
1174
+ attribute float a_normalCoef;
1175
+ attribute vec2 a_positionStart;
1176
+ attribute vec2 a_positionEnd;
1177
+ attribute float a_positionCoef;
1178
+
1179
+ uniform mat3 u_matrix;
1180
+ uniform float u_sizeRatio;
1181
+ uniform float u_zoomRatio;
1182
+ uniform float u_pixelRatio;
1183
+ uniform float u_correctionRatio;
1184
+ uniform float u_minEdgeThickness;
1185
+ uniform float u_feather;
1186
+
1187
+ varying vec4 v_color;
1188
+ varying vec2 v_normal;
1189
+ varying float v_thickness;
1190
+ varying float v_feather;
1191
+
1192
+ const float bias = 255.0 / 254.0;
1193
+
1194
+ void main() {
1195
+ float minThickness = u_minEdgeThickness;
1196
+
1197
+ vec2 normal = a_normal * a_normalCoef;
1198
+ vec2 position = a_positionStart * (1.0 - a_positionCoef) + a_positionEnd * a_positionCoef;
1199
+
1200
+ float normalLength = length(normal);
1201
+ vec2 unitNormal = normal / normalLength;
1202
+
1203
+ // We require edges to be at least "minThickness" pixels thick *on screen*
1204
+ // (so we need to compensate the size ratio):
1205
+ float pixelsThickness = max(normalLength, minThickness * u_sizeRatio);
1206
+
1207
+ // Then, we need to retrieve the normalized thickness of the edge in the WebGL
1208
+ // referential (in a ([0, 1], [0, 1]) space), using our "magic" correction
1209
+ // ratio:
1210
+ float webGLThickness = pixelsThickness * u_correctionRatio / u_sizeRatio;
1211
+
1212
+ // Here is the proper position of the vertex
1213
+ gl_Position = vec4((u_matrix * vec3(position + unitNormal * webGLThickness, 1)).xy, 0, 1);
1214
+
1215
+ // For the fragment shader though, we need a thickness that takes the "magic"
1216
+ // correction ratio into account (as in webGLThickness), but so that the
1217
+ // antialiasing effect does not depend on the zoom level. So here's yet
1218
+ // another thickness version:
1219
+ v_thickness = webGLThickness / u_zoomRatio;
1220
+
1221
+ v_normal = unitNormal;
1222
+
1223
+ v_feather = u_feather * u_correctionRatio / u_zoomRatio / u_pixelRatio * 2.0;
1224
+
1225
+ #ifdef PICKING_MODE
1226
+ // For picking mode, we use the ID as the color:
1227
+ v_color = a_id;
1228
+ #else
1229
+ // For normal mode, we use the color:
1230
+ v_color = a_color;
1231
+ #endif
1232
+
1233
+ v_color.a *= bias;
1234
+ }
1235
+ `,p_e=h_e,SU=WebGLRenderingContext,bL=SU.UNSIGNED_BYTE,Qd=SU.FLOAT,m_e=["u_matrix","u_zoomRatio","u_sizeRatio","u_correctionRatio","u_pixelRatio","u_feather","u_minEdgeThickness"],g_e=(function(e){function t(){return fr(this,t),Ai(this,t,arguments)}return ki(t,e),dr(t,[{key:"getDefinition",value:function(){return{VERTICES:6,VERTEX_SHADER_SOURCE:p_e,FRAGMENT_SHADER_SOURCE:wU,METHOD:WebGLRenderingContext.TRIANGLES,UNIFORMS:m_e,ATTRIBUTES:[{name:"a_positionStart",size:2,type:Qd},{name:"a_positionEnd",size:2,type:Qd},{name:"a_normal",size:2,type:Qd},{name:"a_color",size:4,type:bL,normalized:!0},{name:"a_id",size:4,type:bL,normalized:!0}],CONSTANT_ATTRIBUTES:[{name:"a_positionCoef",size:1,type:Qd},{name:"a_normalCoef",size:1,type:Qd}],CONSTANT_DATA:[[0,1],[0,-1],[1,1],[1,1],[0,-1],[1,-1]]}}},{key:"processVisibleItem",value:function(r,i,a,s,u){var c=u.size||1,f=a.x,h=a.y,p=s.x,g=s.y,v=$p(u.color),y=p-f,b=g-h,w=y*y+b*b,_=0,C=0;w&&(w=1/Math.sqrt(w),_=-b*w*c,C=y*w*c);var E=this.array;E[i++]=f,E[i++]=h,E[i++]=p,E[i++]=g,E[i++]=_,E[i++]=C,E[i++]=v,E[i++]=r}},{key:"setUniforms",value:function(r,i){var a=i.gl,s=i.uniformLocations,u=s.u_matrix,c=s.u_zoomRatio,f=s.u_feather,h=s.u_pixelRatio,p=s.u_correctionRatio,g=s.u_sizeRatio,v=s.u_minEdgeThickness;a.uniformMatrix3fv(u,!1,r.matrix),a.uniform1f(c,r.zoomRatio),a.uniform1f(g,r.sizeRatio),a.uniform1f(p,r.correctionRatio),a.uniform1f(h,r.pixelRatio),a.uniform1f(f,r.antiAliasingFeather),a.uniform1f(v,r.minEdgeThickness)}}])})(pk),mk=(function(e){function t(){var n;return fr(this,t),n=Ai(this,t),n.rawEmitter=n,n}return ki(t,e),dr(t)})(V9.EventEmitter),m_,wL;function v_e(){return wL||(wL=1,m_=function(t){return t!==null&&typeof t=="object"&&typeof t.addUndirectedEdgeWithKey=="function"&&typeof t.dropNode=="function"&&typeof t.multi=="boolean"}),m_}var y_e=v_e();const b_e=ti(y_e);var w_e=function(t){return t},x_e=function(t){return t*t},__e=function(t){return t*(2-t)},S_e=function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},E_e=function(t){return t*t*t},A_e=function(t){return--t*t*t+1},k_e=function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},C_e={linear:w_e,quadraticIn:x_e,quadraticOut:__e,quadraticInOut:S_e,cubicIn:E_e,cubicOut:A_e,cubicInOut:k_e},O_e={easing:"quadraticInOut",duration:150};function Ni(){return Float32Array.of(1,0,0,0,1,0,0,0,1)}function Wg(e,t,n){return e[0]=t,e[4]=typeof n=="number"?n:t,e}function xL(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[3]=-n,e[4]=r,e}function _L(e,t,n){return e[6]=t,e[7]=n,e}function gs(e,t){var n=e[0],r=e[1],i=e[2],a=e[3],s=e[4],u=e[5],c=e[6],f=e[7],h=e[8],p=t[0],g=t[1],v=t[2],y=t[3],b=t[4],w=t[5],_=t[6],C=t[7],E=t[8];return e[0]=p*n+g*a+v*c,e[1]=p*r+g*s+v*f,e[2]=p*i+g*u+v*h,e[3]=y*n+b*a+w*c,e[4]=y*r+b*s+w*f,e[5]=y*i+b*u+w*h,e[6]=_*n+C*a+E*c,e[7]=_*r+C*s+E*f,e[8]=_*i+C*u+E*h,e}function N2(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=e[0],i=e[1],a=e[3],s=e[4],u=e[6],c=e[7],f=t.x,h=t.y;return{x:f*r+h*a+u*n,y:f*i+h*s+c*n}}function T_e(e,t){var n=e.height/e.width,r=t.height/t.width;return n<1&&r>1||n>1&&r<1?1:Math.min(Math.max(r,1/r),Math.max(1/n,n))}function Zd(e,t,n,r,i){var a=e.angle,s=e.ratio,u=e.x,c=e.y,f=t.width,h=t.height,p=Ni(),g=Math.min(f,h)-2*r,v=T_e(t,n);return i?(gs(p,_L(Ni(),u,c)),gs(p,Wg(Ni(),s)),gs(p,xL(Ni(),a)),gs(p,Wg(Ni(),f/g/2/v,h/g/2/v))):(gs(p,Wg(Ni(),2*(g/f)*v,2*(g/h)*v)),gs(p,xL(Ni(),-a)),gs(p,Wg(Ni(),1/s)),gs(p,_L(Ni(),-u,-c))),p}function M_e(e,t,n){var r=N2(e,{x:Math.cos(t.angle),y:Math.sin(t.angle)},0),i=r.x,a=r.y;return 1/Math.sqrt(Math.pow(i,2)+Math.pow(a,2))/n.width}function P_e(e){if(!e.order)return{x:[0,1],y:[0,1]};var t=1/0,n=-1/0,r=1/0,i=-1/0;return e.forEachNode(function(a,s){var u=s.x,c=s.y;u<t&&(t=u),u>n&&(n=u),c<r&&(r=c),c>i&&(i=c)}),{x:[t,n],y:[r,i]}}function N_e(e){if(!b_e(e))throw new Error("Sigma: invalid graph instance.");e.forEachNode(function(t,n){if(!Number.isFinite(n.x)||!Number.isFinite(n.y))throw new Error("Sigma: Coordinates of node ".concat(t," are invalid. A node must have a numeric 'x' and 'y' attribute."))})}function R_e(e,t,n){var r=document.createElement(e);if(t)for(var i in t)r.style[i]=t[i];if(n)for(var a in n)r.setAttribute(a,n[a]);return r}function SL(){return typeof window.devicePixelRatio<"u"?window.devicePixelRatio:1}function EL(e,t,n){return n.sort(function(r,i){var a=t(r)||0,s=t(i)||0;return a<s?-1:a>s?1:0})}function AL(e){var t=mf(e.x,2),n=t[0],r=t[1],i=mf(e.y,2),a=i[0],s=i[1],u=Math.max(r-n,s-a),c=(r+n)/2,f=(s+a)/2;(u===0||Math.abs(u)===1/0||isNaN(u))&&(u=1),isNaN(c)&&(c=0),isNaN(f)&&(f=0);var h=function(g){return{x:.5+(g.x-c)/u,y:.5+(g.y-f)/u}};return h.applyTo=function(p){p.x=.5+(p.x-c)/u,p.y=.5+(p.y-f)/u},h.inverse=function(p){return{x:c+u*(p.x-.5),y:f+u*(p.y-.5)}},h.ratio=u,h}function R2(e){"@babel/helpers - typeof";return R2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R2(e)}function kL(e,t){var n=t.size;if(n!==0){var r=e.length;e.length+=n;var i=0;t.forEach(function(a){e[r+i]=a,i++})}}function g_(e){e=e||{};for(var t=0,n=arguments.length<=1?0:arguments.length-1;t<n;t++){var r=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];r&&Object.assign(e,r)}return e}var gk={hideEdgesOnMove:!1,hideLabelsOnMove:!1,renderLabels:!0,renderEdgeLabels:!1,enableEdgeEvents:!1,defaultNodeColor:"#999",defaultNodeType:"circle",defaultEdgeColor:"#ccc",defaultEdgeType:"line",labelFont:"Arial",labelSize:14,labelWeight:"normal",labelColor:{color:"#000"},edgeLabelFont:"Arial",edgeLabelSize:14,edgeLabelWeight:"normal",edgeLabelColor:{attribute:"color"},stagePadding:30,defaultDrawEdgeLabel:Kxe,defaultDrawNodeLabel:mU,defaultDrawNodeHover:Yxe,minEdgeThickness:1.7,antiAliasingFeather:1,dragTimeout:100,draggedEventsTolerance:3,inertiaDuration:200,inertiaRatio:3,zoomDuration:250,zoomingRatio:1.7,doubleClickTimeout:300,doubleClickZoomingRatio:2.2,doubleClickZoomingDuration:200,tapMoveTolerance:10,zoomToSizeRatioFunction:Math.sqrt,itemSizesReference:"screen",autoRescale:!0,autoCenter:!0,labelDensity:1,labelGridCellSize:100,labelRenderedSizeThreshold:6,nodeReducer:null,edgeReducer:null,zIndex:!1,minCameraRatio:null,maxCameraRatio:null,enableCameraZooming:!0,enableCameraPanning:!0,enableCameraRotation:!0,cameraPanBoundaries:null,allowInvalidContainer:!1,nodeProgramClasses:{},nodeHoverProgramClasses:{},edgeProgramClasses:{}},D_e={circle:G0},I_e={arrow:d_e,line:g_e};function v_(e){if(typeof e.labelDensity!="number"||e.labelDensity<0)throw new Error("Settings: invalid `labelDensity`. Expecting a positive number.");var t=e.minCameraRatio,n=e.maxCameraRatio;if(typeof t=="number"&&typeof n=="number"&&n<t)throw new Error("Settings: invalid camera ratio boundaries. Expecting `maxCameraRatio` to be greater than `minCameraRatio`.")}function L_e(e){var t=g_({},gk,e);return t.nodeProgramClasses=g_({},D_e,t.nodeProgramClasses),t.edgeProgramClasses=g_({},I_e,t.edgeProgramClasses),t}var Qg=1.5,CL=(function(e){function t(){var n;return fr(this,t),n=Ai(this,t),xe(n,"x",.5),xe(n,"y",.5),xe(n,"angle",0),xe(n,"ratio",1),xe(n,"minRatio",null),xe(n,"maxRatio",null),xe(n,"enabledZooming",!0),xe(n,"enabledPanning",!0),xe(n,"enabledRotation",!0),xe(n,"clean",null),xe(n,"nextFrame",null),xe(n,"previousState",null),xe(n,"enabled",!0),n.previousState=n.getState(),n}return ki(t,e),dr(t,[{key:"enable",value:function(){return this.enabled=!0,this}},{key:"disable",value:function(){return this.enabled=!1,this}},{key:"getState",value:function(){return{x:this.x,y:this.y,angle:this.angle,ratio:this.ratio}}},{key:"hasState",value:function(r){return this.x===r.x&&this.y===r.y&&this.ratio===r.ratio&&this.angle===r.angle}},{key:"getPreviousState",value:function(){var r=this.previousState;return r?{x:r.x,y:r.y,angle:r.angle,ratio:r.ratio}:null}},{key:"getBoundedRatio",value:function(r){var i=r;return typeof this.minRatio=="number"&&(i=Math.max(i,this.minRatio)),typeof this.maxRatio=="number"&&(i=Math.min(i,this.maxRatio)),i}},{key:"validateState",value:function(r){var i={};return this.enabledPanning&&typeof r.x=="number"&&(i.x=r.x),this.enabledPanning&&typeof r.y=="number"&&(i.y=r.y),this.enabledZooming&&typeof r.ratio=="number"&&(i.ratio=this.getBoundedRatio(r.ratio)),this.enabledRotation&&typeof r.angle=="number"&&(i.angle=r.angle),this.clean?this.clean(Fe(Fe({},this.getState()),i)):i}},{key:"isAnimated",value:function(){return!!this.nextFrame}},{key:"setState",value:function(r){if(!this.enabled)return this;this.previousState=this.getState();var i=this.validateState(r);return typeof i.x=="number"&&(this.x=i.x),typeof i.y=="number"&&(this.y=i.y),typeof i.ratio=="number"&&(this.ratio=i.ratio),typeof i.angle=="number"&&(this.angle=i.angle),this.hasState(this.previousState)||this.emit("updated",this.getState()),this}},{key:"updateState",value:function(r){return this.setState(r(this.getState())),this}},{key:"animate",value:function(r){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0;if(!s)return new Promise(function(v){return i.animate(r,a,v)});if(this.enabled){var u=Fe(Fe({},O_e),a),c=this.validateState(r),f=typeof u.easing=="function"?u.easing:C_e[u.easing],h=Date.now(),p=this.getState(),g=function(){var y=(Date.now()-h)/u.duration;if(y>=1){i.nextFrame=null,i.setState(c),i.animationCallback&&(i.animationCallback.call(null),i.animationCallback=void 0);return}var b=f(y),w={};typeof c.x=="number"&&(w.x=p.x+(c.x-p.x)*b),typeof c.y=="number"&&(w.y=p.y+(c.y-p.y)*b),i.enabledRotation&&typeof c.angle=="number"&&(w.angle=p.angle+(c.angle-p.angle)*b),typeof c.ratio=="number"&&(w.ratio=p.ratio+(c.ratio-p.ratio)*b),i.setState(w),i.nextFrame=requestAnimationFrame(g)};this.nextFrame?(cancelAnimationFrame(this.nextFrame),this.animationCallback&&this.animationCallback.call(null),this.nextFrame=requestAnimationFrame(g)):g(),this.animationCallback=s}}},{key:"animatedZoom",value:function(r){return r?typeof r=="number"?this.animate({ratio:this.ratio/r}):this.animate({ratio:this.ratio/(r.factor||Qg)},r):this.animate({ratio:this.ratio/Qg})}},{key:"animatedUnzoom",value:function(r){return r?typeof r=="number"?this.animate({ratio:this.ratio*r}):this.animate({ratio:this.ratio*(r.factor||Qg)},r):this.animate({ratio:this.ratio*Qg})}},{key:"animatedReset",value:function(r){return this.animate({x:.5,y:.5,ratio:1,angle:0},r)}},{key:"copy",value:function(){return t.from(this.getState())}}],[{key:"from",value:function(r){var i=new t;return i.setState(r)}}])})(mk);function Bi(e,t){var n=t.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}function Xa(e,t){var n=Fe(Fe({},Bi(e,t)),{},{sigmaDefaultPrevented:!1,preventSigmaDefault:function(){n.sigmaDefaultPrevented=!0},original:e});return n}function Xd(e){var t="x"in e?e:Fe(Fe({},e.touches[0]||e.previousTouches[0]),{},{original:e.original,sigmaDefaultPrevented:e.sigmaDefaultPrevented,preventSigmaDefault:function(){e.sigmaDefaultPrevented=!0,t.sigmaDefaultPrevented=!0}});return t}function z_e(e,t){return Fe(Fe({},Xa(e,t)),{},{delta:EU(e)})}var j_e=2;function fv(e){for(var t=[],n=0,r=Math.min(e.length,j_e);n<r;n++)t.push(e[n]);return t}function Jd(e,t,n){var r={touches:fv(e.touches).map(function(i){return Bi(i,n)}),previousTouches:t.map(function(i){return Bi(i,n)}),sigmaDefaultPrevented:!1,preventSigmaDefault:function(){r.sigmaDefaultPrevented=!0},original:e};return r}function EU(e){if(typeof e.deltaY<"u")return e.deltaY*-3/360;if(typeof e.detail<"u")return e.detail/-9;throw new Error("Captor: could not extract delta from event.")}var AU=(function(e){function t(n,r){var i;return fr(this,t),i=Ai(this,t),i.container=n,i.renderer=r,i}return ki(t,e),dr(t)})(mk),$_e=["doubleClickTimeout","doubleClickZoomingDuration","doubleClickZoomingRatio","dragTimeout","draggedEventsTolerance","inertiaDuration","inertiaRatio","zoomDuration","zoomingRatio"],B_e=$_e.reduce(function(e,t){return Fe(Fe({},e),{},xe({},t,gk[t]))},{}),U_e=(function(e){function t(n,r){var i;return fr(this,t),i=Ai(this,t,[n,r]),xe(i,"enabled",!0),xe(i,"draggedEvents",0),xe(i,"downStartTime",null),xe(i,"lastMouseX",null),xe(i,"lastMouseY",null),xe(i,"isMouseDown",!1),xe(i,"isMoving",!1),xe(i,"movingTimeout",null),xe(i,"startCameraState",null),xe(i,"clicks",0),xe(i,"doubleClickTimeout",null),xe(i,"currentWheelDirection",0),xe(i,"settings",B_e),i.handleClick=i.handleClick.bind(i),i.handleRightClick=i.handleRightClick.bind(i),i.handleDown=i.handleDown.bind(i),i.handleUp=i.handleUp.bind(i),i.handleMove=i.handleMove.bind(i),i.handleWheel=i.handleWheel.bind(i),i.handleLeave=i.handleLeave.bind(i),i.handleEnter=i.handleEnter.bind(i),n.addEventListener("click",i.handleClick,{capture:!1}),n.addEventListener("contextmenu",i.handleRightClick,{capture:!1}),n.addEventListener("mousedown",i.handleDown,{capture:!1}),n.addEventListener("wheel",i.handleWheel,{capture:!1}),n.addEventListener("mouseleave",i.handleLeave,{capture:!1}),n.addEventListener("mouseenter",i.handleEnter,{capture:!1}),document.addEventListener("mousemove",i.handleMove,{capture:!1}),document.addEventListener("mouseup",i.handleUp,{capture:!1}),i}return ki(t,e),dr(t,[{key:"kill",value:function(){var r=this.container;r.removeEventListener("click",this.handleClick),r.removeEventListener("contextmenu",this.handleRightClick),r.removeEventListener("mousedown",this.handleDown),r.removeEventListener("wheel",this.handleWheel),r.removeEventListener("mouseleave",this.handleLeave),r.removeEventListener("mouseenter",this.handleEnter),document.removeEventListener("mousemove",this.handleMove),document.removeEventListener("mouseup",this.handleUp)}},{key:"handleClick",value:function(r){var i=this;if(this.enabled){if(this.clicks++,this.clicks===2)return this.clicks=0,typeof this.doubleClickTimeout=="number"&&(clearTimeout(this.doubleClickTimeout),this.doubleClickTimeout=null),this.handleDoubleClick(r);setTimeout(function(){i.clicks=0,i.doubleClickTimeout=null},this.settings.doubleClickTimeout),this.draggedEvents<this.settings.draggedEventsTolerance&&this.emit("click",Xa(r,this.container))}}},{key:"handleRightClick",value:function(r){this.enabled&&this.emit("rightClick",Xa(r,this.container))}},{key:"handleDoubleClick",value:function(r){if(this.enabled){r.preventDefault(),r.stopPropagation();var i=Xa(r,this.container);if(this.emit("doubleClick",i),!i.sigmaDefaultPrevented){var a=this.renderer.getCamera(),s=a.getBoundedRatio(a.getState().ratio/this.settings.doubleClickZoomingRatio);a.animate(this.renderer.getViewportZoomedState(Bi(r,this.container),s),{easing:"quadraticInOut",duration:this.settings.doubleClickZoomingDuration})}}}},{key:"handleDown",value:function(r){if(this.enabled){if(r.button===0){this.startCameraState=this.renderer.getCamera().getState();var i=Bi(r,this.container),a=i.x,s=i.y;this.lastMouseX=a,this.lastMouseY=s,this.draggedEvents=0,this.downStartTime=Date.now(),this.isMouseDown=!0}this.emit("mousedown",Xa(r,this.container))}}},{key:"handleUp",value:function(r){var i=this;if(!(!this.enabled||!this.isMouseDown)){var a=this.renderer.getCamera();this.isMouseDown=!1,typeof this.movingTimeout=="number"&&(clearTimeout(this.movingTimeout),this.movingTimeout=null);var s=Bi(r,this.container),u=s.x,c=s.y,f=a.getState(),h=a.getPreviousState()||{x:0,y:0};this.isMoving?a.animate({x:f.x+this.settings.inertiaRatio*(f.x-h.x),y:f.y+this.settings.inertiaRatio*(f.y-h.y)},{duration:this.settings.inertiaDuration,easing:"quadraticOut"}):(this.lastMouseX!==u||this.lastMouseY!==c)&&a.setState({x:f.x,y:f.y}),this.isMoving=!1,setTimeout(function(){var p=i.draggedEvents>0;i.draggedEvents=0,p&&i.renderer.getSetting("hideEdgesOnMove")&&i.renderer.refresh()},0),this.emit("mouseup",Xa(r,this.container))}}},{key:"handleMove",value:function(r){var i=this;if(this.enabled){var a=Xa(r,this.container);if(this.emit("mousemovebody",a),(r.target===this.container||r.composedPath()[0]===this.container)&&this.emit("mousemove",a),!a.sigmaDefaultPrevented&&this.isMouseDown){this.isMoving=!0,this.draggedEvents++,typeof this.movingTimeout=="number"&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout(function(){i.movingTimeout=null,i.isMoving=!1},this.settings.dragTimeout);var s=this.renderer.getCamera(),u=Bi(r,this.container),c=u.x,f=u.y,h=this.renderer.viewportToFramedGraph({x:this.lastMouseX,y:this.lastMouseY}),p=this.renderer.viewportToFramedGraph({x:c,y:f}),g=h.x-p.x,v=h.y-p.y,y=s.getState(),b=y.x+g,w=y.y+v;s.setState({x:b,y:w}),this.lastMouseX=c,this.lastMouseY=f,r.preventDefault(),r.stopPropagation()}}}},{key:"handleLeave",value:function(r){this.emit("mouseleave",Xa(r,this.container))}},{key:"handleEnter",value:function(r){this.emit("mouseenter",Xa(r,this.container))}},{key:"handleWheel",value:function(r){var i=this,a=this.renderer.getCamera();if(!(!this.enabled||!a.enabledZooming)){var s=EU(r);if(s){var u=z_e(r,this.container);if(this.emit("wheel",u),u.sigmaDefaultPrevented){r.preventDefault(),r.stopPropagation();return}var c=a.getState().ratio,f=s>0?1/this.settings.zoomingRatio:this.settings.zoomingRatio,h=a.getBoundedRatio(c*f),p=s>0?1:-1,g=Date.now();c!==h&&(r.preventDefault(),r.stopPropagation(),!(this.currentWheelDirection===p&&this.lastWheelTriggerTime&&g-this.lastWheelTriggerTime<this.settings.zoomDuration/5)&&(a.animate(this.renderer.getViewportZoomedState(Bi(r,this.container),h),{easing:"quadraticOut",duration:this.settings.zoomDuration},function(){i.currentWheelDirection=0}),this.currentWheelDirection=p,this.lastWheelTriggerTime=g))}}}},{key:"setSettings",value:function(r){this.settings=r}}])})(AU),F_e=["dragTimeout","inertiaDuration","inertiaRatio","doubleClickTimeout","doubleClickZoomingRatio","doubleClickZoomingDuration","tapMoveTolerance"],H_e=F_e.reduce(function(e,t){return Fe(Fe({},e),{},xe({},t,gk[t]))},{}),G_e=(function(e){function t(n,r){var i;return fr(this,t),i=Ai(this,t,[n,r]),xe(i,"enabled",!0),xe(i,"isMoving",!1),xe(i,"hasMoved",!1),xe(i,"touchMode",0),xe(i,"startTouchesPositions",[]),xe(i,"lastTouches",[]),xe(i,"lastTap",null),xe(i,"settings",H_e),i.handleStart=i.handleStart.bind(i),i.handleLeave=i.handleLeave.bind(i),i.handleMove=i.handleMove.bind(i),n.addEventListener("touchstart",i.handleStart,{capture:!1}),n.addEventListener("touchcancel",i.handleLeave,{capture:!1}),document.addEventListener("touchend",i.handleLeave,{capture:!1,passive:!1}),document.addEventListener("touchmove",i.handleMove,{capture:!1,passive:!1}),i}return ki(t,e),dr(t,[{key:"kill",value:function(){var r=this.container;r.removeEventListener("touchstart",this.handleStart),r.removeEventListener("touchcancel",this.handleLeave),document.removeEventListener("touchend",this.handleLeave),document.removeEventListener("touchmove",this.handleMove)}},{key:"getDimensions",value:function(){return{width:this.container.offsetWidth,height:this.container.offsetHeight}}},{key:"handleStart",value:function(r){var i=this;if(this.enabled){r.preventDefault();var a=fv(r.touches);if(this.touchMode=a.length,this.startCameraState=this.renderer.getCamera().getState(),this.startTouchesPositions=a.map(function(v){return Bi(v,i.container)}),this.touchMode===2){var s=mf(this.startTouchesPositions,2),u=s[0],c=u.x,f=u.y,h=s[1],p=h.x,g=h.y;this.startTouchesAngle=Math.atan2(g-f,p-c),this.startTouchesDistance=Math.sqrt(Math.pow(p-c,2)+Math.pow(g-f,2))}this.emit("touchdown",Jd(r,this.lastTouches,this.container)),this.lastTouches=a,this.lastTouchesPositions=this.startTouchesPositions}}},{key:"handleLeave",value:function(r){if(!(!this.enabled||!this.startTouchesPositions.length)){switch(r.cancelable&&r.preventDefault(),this.movingTimeout&&(this.isMoving=!1,clearTimeout(this.movingTimeout)),this.touchMode){case 2:if(r.touches.length===1){this.handleStart(r),r.preventDefault();break}case 1:if(this.isMoving){var i=this.renderer.getCamera(),a=i.getState(),s=i.getPreviousState()||{x:0,y:0};i.animate({x:a.x+this.settings.inertiaRatio*(a.x-s.x),y:a.y+this.settings.inertiaRatio*(a.y-s.y)},{duration:this.settings.inertiaDuration,easing:"quadraticOut"})}this.hasMoved=!1,this.isMoving=!1,this.touchMode=0;break}if(this.emit("touchup",Jd(r,this.lastTouches,this.container)),!r.touches.length){var u=Bi(this.lastTouches[0],this.container),c=this.startTouchesPositions[0],f=Math.pow(u.x-c.x,2)+Math.pow(u.y-c.y,2);if(!r.touches.length&&f<Math.pow(this.settings.tapMoveTolerance,2))if(this.lastTap&&Date.now()-this.lastTap.time<this.settings.doubleClickTimeout){var h=Jd(r,this.lastTouches,this.container);if(this.emit("doubletap",h),this.lastTap=null,!h.sigmaDefaultPrevented){var p=this.renderer.getCamera(),g=p.getBoundedRatio(p.getState().ratio/this.settings.doubleClickZoomingRatio);p.animate(this.renderer.getViewportZoomedState(u,g),{easing:"quadraticInOut",duration:this.settings.doubleClickZoomingDuration})}}else{var v=Jd(r,this.lastTouches,this.container);this.emit("tap",v),this.lastTap={time:Date.now(),position:v.touches[0]||v.previousTouches[0]}}}this.lastTouches=fv(r.touches),this.startTouchesPositions=[]}}},{key:"handleMove",value:function(r){var i=this;if(!(!this.enabled||!this.startTouchesPositions.length)){r.preventDefault();var a=fv(r.touches),s=a.map(function(B){return Bi(B,i.container)}),u=this.lastTouches;this.lastTouches=a,this.lastTouchesPositions=s;var c=Jd(r,u,this.container);if(this.emit("touchmove",c),!c.sigmaDefaultPrevented&&(this.hasMoved||(this.hasMoved=s.some(function(B,K){var X=i.startTouchesPositions[K];return X&&(B.x!==X.x||B.y!==X.y)})),!!this.hasMoved)){this.isMoving=!0,this.movingTimeout&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout(function(){i.isMoving=!1},this.settings.dragTimeout);var f=this.renderer.getCamera(),h=this.startCameraState,p=this.renderer.getSetting("stagePadding");switch(this.touchMode){case 1:{var g=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0]),v=g.x,y=g.y,b=this.renderer.viewportToFramedGraph(s[0]),w=b.x,_=b.y;f.setState({x:h.x+v-w,y:h.y+y-_});break}case 2:{var C={x:.5,y:.5,angle:0,ratio:1},E=s[0],S=E.x,T=E.y,O=s[1],M=O.x,P=O.y,R=Math.atan2(P-T,M-S)-this.startTouchesAngle,z=Math.hypot(P-T,M-S)/this.startTouchesDistance,D=f.getBoundedRatio(h.ratio/z);C.ratio=D,C.angle=h.angle+R;var N=this.getDimensions(),$=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0],{cameraState:h}),I=Math.min(N.width,N.height)-2*p,U=I/N.width,j=I/N.height,G=D/I,q=S-I/2/U,H=T-I/2/j,V=[q*Math.cos(-C.angle)-H*Math.sin(-C.angle),H*Math.cos(-C.angle)+q*Math.sin(-C.angle)];q=V[0],H=V[1],C.x=$.x-q*G,C.y=$.y+H*G,f.setState(C);break}}}}}},{key:"setSettings",value:function(r){this.settings=r}}])})(AU);function q_e(e){if(Array.isArray(e))return M2(e)}function V_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function K_e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1236
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OL(e){return q_e(e)||V_e(e)||lU(e)||K_e()}function Y_e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function y_(e,t){if(e==null)return{};var n,r,i=Y_e(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var TL=(function(){function e(t,n){fr(this,e),this.key=t,this.size=n}return dr(e,null,[{key:"compare",value:function(n,r){return n.size>r.size?-1:n.size<r.size||n.key>r.key?1:-1}}])})(),ML=(function(){function e(){fr(this,e),xe(this,"width",0),xe(this,"height",0),xe(this,"cellSize",0),xe(this,"columns",0),xe(this,"rows",0),xe(this,"cells",{})}return dr(e,[{key:"resizeAndClear",value:function(n,r){this.width=n.width,this.height=n.height,this.cellSize=r,this.columns=Math.ceil(n.width/r),this.rows=Math.ceil(n.height/r),this.cells={}}},{key:"getIndex",value:function(n){var r=Math.floor(n.x/this.cellSize),i=Math.floor(n.y/this.cellSize);return i*this.columns+r}},{key:"add",value:function(n,r,i){var a=new TL(n,r),s=this.getIndex(i),u=this.cells[s];u||(u=[],this.cells[s]=u),u.push(a)}},{key:"organize",value:function(){for(var n in this.cells){var r=this.cells[n];r.sort(TL.compare)}}},{key:"getLabelsToDisplay",value:function(n,r){var i=this.cellSize*this.cellSize,a=i/n/n,s=a*r/i,u=Math.ceil(s),c=[];for(var f in this.cells)for(var h=this.cells[f],p=0;p<Math.min(u,h.length);p++)c.push(h[p].key);return c}}])})();function W_e(e){var t=e.graph,n=e.hoveredNode,r=e.highlightedNodes,i=e.displayedNodeLabels,a=[];return t.forEachEdge(function(s,u,c,f){(c===n||f===n||r.has(c)||r.has(f)||i.has(c)&&i.has(f))&&a.push(s)}),a}var PL=150,NL=50,oo=Object.prototype.hasOwnProperty;function Q_e(e,t,n){if(!oo.call(n,"x")||!oo.call(n,"y"))throw new Error('Sigma: could not find a valid position (x, y) for node "'.concat(t,'". All your nodes must have a number "x" and "y". Maybe your forgot to apply a layout or your "nodeReducer" is not returning the correct data?'));return n.color||(n.color=e.defaultNodeColor),!n.label&&n.label!==""&&(n.label=null),n.label!==void 0&&n.label!==null?n.label=""+n.label:n.label=null,n.size||(n.size=2),oo.call(n,"hidden")||(n.hidden=!1),oo.call(n,"highlighted")||(n.highlighted=!1),oo.call(n,"forceLabel")||(n.forceLabel=!1),(!n.type||n.type==="")&&(n.type=e.defaultNodeType),n.zIndex||(n.zIndex=0),n}function Z_e(e,t,n){return n.color||(n.color=e.defaultEdgeColor),n.label||(n.label=""),n.size||(n.size=.5),oo.call(n,"hidden")||(n.hidden=!1),oo.call(n,"forceLabel")||(n.forceLabel=!1),(!n.type||n.type==="")&&(n.type=e.defaultEdgeType),n.zIndex||(n.zIndex=0),n}var X_e=(function(e){function t(n,r){var i,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(fr(this,t),i=Ai(this,t),xe(i,"elements",{}),xe(i,"canvasContexts",{}),xe(i,"webGLContexts",{}),xe(i,"pickingLayers",new Set),xe(i,"textures",{}),xe(i,"frameBuffers",{}),xe(i,"activeListeners",{}),xe(i,"labelGrid",new ML),xe(i,"nodeDataCache",{}),xe(i,"edgeDataCache",{}),xe(i,"nodeProgramIndex",{}),xe(i,"edgeProgramIndex",{}),xe(i,"nodesWithForcedLabels",new Set),xe(i,"edgesWithForcedLabels",new Set),xe(i,"nodeExtent",{x:[0,1],y:[0,1]}),xe(i,"nodeZExtent",[1/0,-1/0]),xe(i,"edgeZExtent",[1/0,-1/0]),xe(i,"matrix",Ni()),xe(i,"invMatrix",Ni()),xe(i,"correctionRatio",1),xe(i,"customBBox",null),xe(i,"normalizationFunction",AL({x:[0,1],y:[0,1]})),xe(i,"graphToViewportRatio",1),xe(i,"itemIDsIndex",{}),xe(i,"nodeIndices",{}),xe(i,"edgeIndices",{}),xe(i,"width",0),xe(i,"height",0),xe(i,"pixelRatio",SL()),xe(i,"pickingDownSizingRatio",2*i.pixelRatio),xe(i,"displayedNodeLabels",new Set),xe(i,"displayedEdgeLabels",new Set),xe(i,"highlightedNodes",new Set),xe(i,"hoveredNode",null),xe(i,"hoveredEdge",null),xe(i,"renderFrame",null),xe(i,"renderHighlightedNodesFrame",null),xe(i,"needToProcess",!1),xe(i,"checkEdgesEventsFrame",null),xe(i,"nodePrograms",{}),xe(i,"nodeHoverPrograms",{}),xe(i,"edgePrograms",{}),i.settings=L_e(a),v_(i.settings),N_e(n),!(r instanceof HTMLElement))throw new Error("Sigma: container should be an html element.");i.graph=n,i.container=r,i.createWebGLContext("edges",{picking:a.enableEdgeEvents}),i.createCanvasContext("edgeLabels"),i.createWebGLContext("nodes",{picking:!0}),i.createCanvasContext("labels"),i.createCanvasContext("hovers"),i.createWebGLContext("hoverNodes"),i.createCanvasContext("mouse",{style:{touchAction:"none",userSelect:"none"}}),i.resize();for(var s in i.settings.nodeProgramClasses)i.registerNodeProgram(s,i.settings.nodeProgramClasses[s],i.settings.nodeHoverProgramClasses[s]);for(var u in i.settings.edgeProgramClasses)i.registerEdgeProgram(u,i.settings.edgeProgramClasses[u]);return i.camera=new CL,i.bindCameraHandlers(),i.mouseCaptor=new U_e(i.elements.mouse,i),i.mouseCaptor.setSettings(i.settings),i.touchCaptor=new G_e(i.elements.mouse,i),i.touchCaptor.setSettings(i.settings),i.bindEventHandlers(),i.bindGraphHandlers(),i.handleSettingsUpdate(),i.refresh(),i}return ki(t,e),dr(t,[{key:"registerNodeProgram",value:function(r,i,a){return this.nodePrograms[r]&&this.nodePrograms[r].kill(),this.nodeHoverPrograms[r]&&this.nodeHoverPrograms[r].kill(),this.nodePrograms[r]=new i(this.webGLContexts.nodes,this.frameBuffers.nodes,this),this.nodeHoverPrograms[r]=new(a||i)(this.webGLContexts.hoverNodes,null,this),this}},{key:"registerEdgeProgram",value:function(r,i){return this.edgePrograms[r]&&this.edgePrograms[r].kill(),this.edgePrograms[r]=new i(this.webGLContexts.edges,this.frameBuffers.edges,this),this}},{key:"unregisterNodeProgram",value:function(r){if(this.nodePrograms[r]){var i=this.nodePrograms,a=i[r],s=y_(i,[r].map(vh));a.kill(),this.nodePrograms=s}if(this.nodeHoverPrograms[r]){var u=this.nodeHoverPrograms,c=u[r],f=y_(u,[r].map(vh));c.kill(),this.nodePrograms=f}return this}},{key:"unregisterEdgeProgram",value:function(r){if(this.edgePrograms[r]){var i=this.edgePrograms,a=i[r],s=y_(i,[r].map(vh));a.kill(),this.edgePrograms=s}return this}},{key:"resetWebGLTexture",value:function(r){var i=this.webGLContexts[r],a=this.frameBuffers[r],s=this.textures[r];s&&i.deleteTexture(s);var u=i.createTexture();return i.bindFramebuffer(i.FRAMEBUFFER,a),i.bindTexture(i.TEXTURE_2D,u),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,this.width,this.height,0,i.RGBA,i.UNSIGNED_BYTE,null),i.framebufferTexture2D(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.TEXTURE_2D,u,0),this.textures[r]=u,this}},{key:"bindCameraHandlers",value:function(){var r=this;return this.activeListeners.camera=function(){r.scheduleRender()},this.camera.on("updated",this.activeListeners.camera),this}},{key:"unbindCameraHandlers",value:function(){return this.camera.removeListener("updated",this.activeListeners.camera),this}},{key:"getNodeAtPosition",value:function(r){var i=r.x,a=r.y,s=dL(this.webGLContexts.nodes,this.frameBuffers.nodes,i,a,this.pixelRatio,this.pickingDownSizingRatio),u=fL.apply(void 0,OL(s)),c=this.itemIDsIndex[u];return c&&c.type==="node"?c.id:null}},{key:"bindEventHandlers",value:function(){var r=this;this.activeListeners.handleResize=function(){r.scheduleRefresh()},window.addEventListener("resize",this.activeListeners.handleResize),this.activeListeners.handleMove=function(a){var s=Xd(a),u={event:s,preventSigmaDefault:function(){s.preventSigmaDefault()}},c=r.getNodeAtPosition(s);if(c&&r.hoveredNode!==c&&!r.nodeDataCache[c].hidden){r.hoveredNode&&r.emit("leaveNode",Fe(Fe({},u),{},{node:r.hoveredNode})),r.hoveredNode=c,r.emit("enterNode",Fe(Fe({},u),{},{node:c})),r.scheduleHighlightedNodesRender();return}if(r.hoveredNode&&r.getNodeAtPosition(s)!==r.hoveredNode){var f=r.hoveredNode;r.hoveredNode=null,r.emit("leaveNode",Fe(Fe({},u),{},{node:f})),r.scheduleHighlightedNodesRender();return}if(r.settings.enableEdgeEvents){var h=r.hoveredNode?null:r.getEdgeAtPoint(u.event.x,u.event.y);h!==r.hoveredEdge&&(r.hoveredEdge&&r.emit("leaveEdge",Fe(Fe({},u),{},{edge:r.hoveredEdge})),h&&r.emit("enterEdge",Fe(Fe({},u),{},{edge:h})),r.hoveredEdge=h)}},this.activeListeners.handleMoveBody=function(a){var s=Xd(a);r.emit("moveBody",{event:s,preventSigmaDefault:function(){s.preventSigmaDefault()}})},this.activeListeners.handleLeave=function(a){var s=Xd(a),u={event:s,preventSigmaDefault:function(){s.preventSigmaDefault()}};r.hoveredNode&&(r.emit("leaveNode",Fe(Fe({},u),{},{node:r.hoveredNode})),r.scheduleHighlightedNodesRender()),r.settings.enableEdgeEvents&&r.hoveredEdge&&(r.emit("leaveEdge",Fe(Fe({},u),{},{edge:r.hoveredEdge})),r.scheduleHighlightedNodesRender()),r.emit("leaveStage",Fe({},u))},this.activeListeners.handleEnter=function(a){var s=Xd(a),u={event:s,preventSigmaDefault:function(){s.preventSigmaDefault()}};r.emit("enterStage",Fe({},u))};var i=function(s){return function(u){var c=Xd(u),f={event:c,preventSigmaDefault:function(){c.preventSigmaDefault()}},h=r.getNodeAtPosition(c);if(h)return r.emit("".concat(s,"Node"),Fe(Fe({},f),{},{node:h}));if(r.settings.enableEdgeEvents){var p=r.getEdgeAtPoint(c.x,c.y);if(p)return r.emit("".concat(s,"Edge"),Fe(Fe({},f),{},{edge:p}))}return r.emit("".concat(s,"Stage"),f)}};return this.activeListeners.handleClick=i("click"),this.activeListeners.handleRightClick=i("rightClick"),this.activeListeners.handleDoubleClick=i("doubleClick"),this.activeListeners.handleWheel=i("wheel"),this.activeListeners.handleDown=i("down"),this.activeListeners.handleUp=i("up"),this.mouseCaptor.on("mousemove",this.activeListeners.handleMove),this.mouseCaptor.on("mousemovebody",this.activeListeners.handleMoveBody),this.mouseCaptor.on("click",this.activeListeners.handleClick),this.mouseCaptor.on("rightClick",this.activeListeners.handleRightClick),this.mouseCaptor.on("doubleClick",this.activeListeners.handleDoubleClick),this.mouseCaptor.on("wheel",this.activeListeners.handleWheel),this.mouseCaptor.on("mousedown",this.activeListeners.handleDown),this.mouseCaptor.on("mouseup",this.activeListeners.handleUp),this.mouseCaptor.on("mouseleave",this.activeListeners.handleLeave),this.mouseCaptor.on("mouseenter",this.activeListeners.handleEnter),this.touchCaptor.on("touchdown",this.activeListeners.handleDown),this.touchCaptor.on("touchdown",this.activeListeners.handleMove),this.touchCaptor.on("touchup",this.activeListeners.handleUp),this.touchCaptor.on("touchmove",this.activeListeners.handleMove),this.touchCaptor.on("tap",this.activeListeners.handleClick),this.touchCaptor.on("doubletap",this.activeListeners.handleDoubleClick),this.touchCaptor.on("touchmove",this.activeListeners.handleMoveBody),this}},{key:"bindGraphHandlers",value:function(){var r=this,i=this.graph,a=new Set(["x","y","zIndex","type"]);return this.activeListeners.eachNodeAttributesUpdatedGraphUpdate=function(s){var u,c=(u=s.hints)===null||u===void 0?void 0:u.attributes;r.graph.forEachNode(function(h){return r.updateNode(h)});var f=!c||c.some(function(h){return a.has(h)});r.refresh({partialGraph:{nodes:i.nodes()},skipIndexation:!f,schedule:!0})},this.activeListeners.eachEdgeAttributesUpdatedGraphUpdate=function(s){var u,c=(u=s.hints)===null||u===void 0?void 0:u.attributes;r.graph.forEachEdge(function(h){return r.updateEdge(h)});var f=c&&["zIndex","type"].some(function(h){return c==null?void 0:c.includes(h)});r.refresh({partialGraph:{edges:i.edges()},skipIndexation:!f,schedule:!0})},this.activeListeners.addNodeGraphUpdate=function(s){var u=s.key;r.addNode(u),r.refresh({partialGraph:{nodes:[u]},skipIndexation:!1,schedule:!0})},this.activeListeners.updateNodeGraphUpdate=function(s){var u=s.key;r.refresh({partialGraph:{nodes:[u]},skipIndexation:!1,schedule:!0})},this.activeListeners.dropNodeGraphUpdate=function(s){var u=s.key;r.removeNode(u),r.refresh({schedule:!0})},this.activeListeners.addEdgeGraphUpdate=function(s){var u=s.key;r.addEdge(u),r.refresh({partialGraph:{edges:[u]},schedule:!0})},this.activeListeners.updateEdgeGraphUpdate=function(s){var u=s.key;r.refresh({partialGraph:{edges:[u]},skipIndexation:!1,schedule:!0})},this.activeListeners.dropEdgeGraphUpdate=function(s){var u=s.key;r.removeEdge(u),r.refresh({schedule:!0})},this.activeListeners.clearEdgesGraphUpdate=function(){r.clearEdgeState(),r.clearEdgeIndices(),r.refresh({schedule:!0})},this.activeListeners.clearGraphUpdate=function(){r.clearEdgeState(),r.clearNodeState(),r.clearEdgeIndices(),r.clearNodeIndices(),r.refresh({schedule:!0})},i.on("nodeAdded",this.activeListeners.addNodeGraphUpdate),i.on("nodeDropped",this.activeListeners.dropNodeGraphUpdate),i.on("nodeAttributesUpdated",this.activeListeners.updateNodeGraphUpdate),i.on("eachNodeAttributesUpdated",this.activeListeners.eachNodeAttributesUpdatedGraphUpdate),i.on("edgeAdded",this.activeListeners.addEdgeGraphUpdate),i.on("edgeDropped",this.activeListeners.dropEdgeGraphUpdate),i.on("edgeAttributesUpdated",this.activeListeners.updateEdgeGraphUpdate),i.on("eachEdgeAttributesUpdated",this.activeListeners.eachEdgeAttributesUpdatedGraphUpdate),i.on("edgesCleared",this.activeListeners.clearEdgesGraphUpdate),i.on("cleared",this.activeListeners.clearGraphUpdate),this}},{key:"unbindGraphHandlers",value:function(){var r=this.graph;r.removeListener("nodeAdded",this.activeListeners.addNodeGraphUpdate),r.removeListener("nodeDropped",this.activeListeners.dropNodeGraphUpdate),r.removeListener("nodeAttributesUpdated",this.activeListeners.updateNodeGraphUpdate),r.removeListener("eachNodeAttributesUpdated",this.activeListeners.eachNodeAttributesUpdatedGraphUpdate),r.removeListener("edgeAdded",this.activeListeners.addEdgeGraphUpdate),r.removeListener("edgeDropped",this.activeListeners.dropEdgeGraphUpdate),r.removeListener("edgeAttributesUpdated",this.activeListeners.updateEdgeGraphUpdate),r.removeListener("eachEdgeAttributesUpdated",this.activeListeners.eachEdgeAttributesUpdatedGraphUpdate),r.removeListener("edgesCleared",this.activeListeners.clearEdgesGraphUpdate),r.removeListener("cleared",this.activeListeners.clearGraphUpdate)}},{key:"getEdgeAtPoint",value:function(r,i){var a=dL(this.webGLContexts.edges,this.frameBuffers.edges,r,i,this.pixelRatio,this.pickingDownSizingRatio),s=fL.apply(void 0,OL(a)),u=this.itemIDsIndex[s];return u&&u.type==="edge"?u.id:null}},{key:"process",value:function(){var r=this;this.emit("beforeProcess");var i=this.graph,a=this.settings,s=this.getDimensions();if(this.nodeExtent=P_e(this.graph),!this.settings.autoRescale){var u=s.width,c=s.height,f=this.nodeExtent,h=f.x,p=f.y;this.nodeExtent={x:[(h[0]+h[1])/2-u/2,(h[0]+h[1])/2+u/2],y:[(p[0]+p[1])/2-c/2,(p[0]+p[1])/2+c/2]}}this.normalizationFunction=AL(this.customBBox||this.nodeExtent);var g=new CL,v=Zd(g.getState(),s,this.getGraphDimensions(),this.getStagePadding());this.labelGrid.resizeAndClear(s,a.labelGridCellSize);for(var y={},b={},w={},_={},C=1,E=i.nodes(),S=0,T=E.length;S<T;S++){var O=E[S],M=this.nodeDataCache[O],P=i.getNodeAttributes(O);M.x=P.x,M.y=P.y,this.normalizationFunction.applyTo(M),typeof M.label=="string"&&!M.hidden&&this.labelGrid.add(O,M.size,this.framedGraphToViewport(M,{matrix:v})),y[M.type]=(y[M.type]||0)+1}this.labelGrid.organize();for(var R in this.nodePrograms){if(!oo.call(this.nodePrograms,R))throw new Error('Sigma: could not find a suitable program for node type "'.concat(R,'"!'));this.nodePrograms[R].reallocate(y[R]||0),y[R]=0}this.settings.zIndex&&this.nodeZExtent[0]!==this.nodeZExtent[1]&&(E=EL(this.nodeZExtent,function(ce){return r.nodeDataCache[ce].zIndex},E));for(var z=0,D=E.length;z<D;z++){var N=E[z];b[N]=C,_[b[N]]={type:"node",id:N},C++;var $=this.nodeDataCache[N];this.addNodeToProgram(N,b[N],y[$.type]++)}for(var I={},U=i.edges(),j=0,G=U.length;j<G;j++){var q=U[j],H=this.edgeDataCache[q];I[H.type]=(I[H.type]||0)+1}this.settings.zIndex&&this.edgeZExtent[0]!==this.edgeZExtent[1]&&(U=EL(this.edgeZExtent,function(ce){return r.edgeDataCache[ce].zIndex},U));for(var V in this.edgePrograms){if(!oo.call(this.edgePrograms,V))throw new Error('Sigma: could not find a suitable program for edge type "'.concat(V,'"!'));this.edgePrograms[V].reallocate(I[V]||0),I[V]=0}for(var B=0,K=U.length;B<K;B++){var X=U[B];w[X]=C,_[w[X]]={type:"edge",id:X},C++;var ee=this.edgeDataCache[X];this.addEdgeToProgram(X,w[X],I[ee.type]++)}return this.itemIDsIndex=_,this.nodeIndices=b,this.edgeIndices=w,this.emit("afterProcess"),this}},{key:"handleSettingsUpdate",value:function(r){var i=this,a=this.settings;if(this.camera.minRatio=a.minCameraRatio,this.camera.maxRatio=a.maxCameraRatio,this.camera.enabledZooming=a.enableCameraZooming,this.camera.enabledPanning=a.enableCameraPanning,this.camera.enabledRotation=a.enableCameraRotation,a.cameraPanBoundaries?this.camera.clean=function(h){return i.cleanCameraState(h,a.cameraPanBoundaries&&R2(a.cameraPanBoundaries)==="object"?a.cameraPanBoundaries:{})}:this.camera.clean=null,this.camera.setState(this.camera.validateState(this.camera.getState())),r){if(r.edgeProgramClasses!==a.edgeProgramClasses){for(var s in a.edgeProgramClasses)a.edgeProgramClasses[s]!==r.edgeProgramClasses[s]&&this.registerEdgeProgram(s,a.edgeProgramClasses[s]);for(var u in r.edgeProgramClasses)a.edgeProgramClasses[u]||this.unregisterEdgeProgram(u)}if(r.nodeProgramClasses!==a.nodeProgramClasses||r.nodeHoverProgramClasses!==a.nodeHoverProgramClasses){for(var c in a.nodeProgramClasses)(a.nodeProgramClasses[c]!==r.nodeProgramClasses[c]||a.nodeHoverProgramClasses[c]!==r.nodeHoverProgramClasses[c])&&this.registerNodeProgram(c,a.nodeProgramClasses[c],a.nodeHoverProgramClasses[c]);for(var f in r.nodeProgramClasses)a.nodeProgramClasses[f]||this.unregisterNodeProgram(f)}}return this.mouseCaptor.setSettings(this.settings),this.touchCaptor.setSettings(this.settings),this}},{key:"cleanCameraState",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=i.tolerance,s=a===void 0?0:a,u=i.boundaries,c=Fe({},r),f=u||this.nodeExtent,h=mf(f.x,2),p=h[0],g=h[1],v=mf(f.y,2),y=v[0],b=v[1],w=[this.graphToViewport({x:p,y},{cameraState:r}),this.graphToViewport({x:g,y},{cameraState:r}),this.graphToViewport({x:p,y:b},{cameraState:r}),this.graphToViewport({x:g,y:b},{cameraState:r})],_=1/0,C=-1/0,E=1/0,S=-1/0;w.forEach(function(I){var U=I.x,j=I.y;_=Math.min(_,U),C=Math.max(C,U),E=Math.min(E,j),S=Math.max(S,j)});var T=C-_,O=S-E,M=this.getDimensions(),P=M.width,R=M.height,z=0,D=0;if(T>=P?C<P-s?z=C-(P-s):_>s&&(z=_-s):C>P+s?z=C-(P+s):_<-s&&(z=_+s),O>=R?S<R-s?D=S-(R-s):E>s&&(D=E-s):S>R+s?D=S-(R+s):E<-s&&(D=E+s),z||D){var N=this.viewportToFramedGraph({x:0,y:0},{cameraState:r}),$=this.viewportToFramedGraph({x:z,y:D},{cameraState:r});z=$.x-N.x,D=$.y-N.y,c.x+=z,c.y+=D}return c}},{key:"renderLabels",value:function(){if(!this.settings.renderLabels)return this;var r=this.camera.getState(),i=this.labelGrid.getLabelsToDisplay(r.ratio,this.settings.labelDensity);kL(i,this.nodesWithForcedLabels),this.displayedNodeLabels=new Set;for(var a=this.canvasContexts.labels,s=0,u=i.length;s<u;s++){var c=i[s],f=this.nodeDataCache[c];if(!this.displayedNodeLabels.has(c)&&!f.hidden){var h=this.framedGraphToViewport(f),p=h.x,g=h.y,v=this.scaleSize(f.size);if(!(!f.forceLabel&&v<this.settings.labelRenderedSizeThreshold)&&!(p<-PL||p>this.width+PL||g<-NL||g>this.height+NL)){this.displayedNodeLabels.add(c);var y=this.settings.defaultDrawNodeLabel,b=this.nodePrograms[f.type],w=(b==null?void 0:b.drawLabel)||y;w(a,Fe(Fe({key:c},f),{},{size:v,x:p,y:g}),this.settings)}}}return this}},{key:"renderEdgeLabels",value:function(){if(!this.settings.renderEdgeLabels)return this;var r=this.canvasContexts.edgeLabels;r.clearRect(0,0,this.width,this.height);var i=W_e({graph:this.graph,hoveredNode:this.hoveredNode,displayedNodeLabels:this.displayedNodeLabels,highlightedNodes:this.highlightedNodes});kL(i,this.edgesWithForcedLabels);for(var a=new Set,s=0,u=i.length;s<u;s++){var c=i[s],f=this.graph.extremities(c),h=this.nodeDataCache[f[0]],p=this.nodeDataCache[f[1]],g=this.edgeDataCache[c];if(!a.has(c)&&!(g.hidden||h.hidden||p.hidden)){var v=this.settings.defaultDrawEdgeLabel,y=this.edgePrograms[g.type],b=(y==null?void 0:y.drawLabel)||v;b(r,Fe(Fe({key:c},g),{},{size:this.scaleSize(g.size)}),Fe(Fe(Fe({key:f[0]},h),this.framedGraphToViewport(h)),{},{size:this.scaleSize(h.size)}),Fe(Fe(Fe({key:f[1]},p),this.framedGraphToViewport(p)),{},{size:this.scaleSize(p.size)}),this.settings),a.add(c)}}return this.displayedEdgeLabels=a,this}},{key:"renderHighlightedNodes",value:function(){var r=this,i=this.canvasContexts.hovers;i.clearRect(0,0,this.width,this.height);var a=function(v){var y=r.nodeDataCache[v],b=r.framedGraphToViewport(y),w=b.x,_=b.y,C=r.scaleSize(y.size),E=r.settings.defaultDrawNodeHover,S=r.nodePrograms[y.type],T=(S==null?void 0:S.drawHover)||E;T(i,Fe(Fe({key:v},y),{},{size:C,x:w,y:_}),r.settings)},s=[];this.hoveredNode&&!this.nodeDataCache[this.hoveredNode].hidden&&s.push(this.hoveredNode),this.highlightedNodes.forEach(function(g){g!==r.hoveredNode&&s.push(g)}),s.forEach(function(g){return a(g)});var u={};s.forEach(function(g){var v=r.nodeDataCache[g].type;u[v]=(u[v]||0)+1});for(var c in this.nodeHoverPrograms)this.nodeHoverPrograms[c].reallocate(u[c]||0),u[c]=0;s.forEach(function(g){var v=r.nodeDataCache[g];r.nodeHoverPrograms[v.type].process(0,u[v.type]++,v)}),this.webGLContexts.hoverNodes.clear(this.webGLContexts.hoverNodes.COLOR_BUFFER_BIT);var f=this.getRenderParams();for(var h in this.nodeHoverPrograms){var p=this.nodeHoverPrograms[h];p.render(f)}}},{key:"scheduleHighlightedNodesRender",value:function(){var r=this;this.renderHighlightedNodesFrame||this.renderFrame||(this.renderHighlightedNodesFrame=requestAnimationFrame(function(){r.renderHighlightedNodesFrame=null,r.renderHighlightedNodes(),r.renderEdgeLabels()}))}},{key:"render",value:function(){var r=this;this.emit("beforeRender");var i=function(){return r.emit("afterRender"),r};if(this.renderFrame&&(cancelAnimationFrame(this.renderFrame),this.renderFrame=null),this.resize(),this.needToProcess&&this.process(),this.needToProcess=!1,this.clear(),this.pickingLayers.forEach(function(w){return r.resetWebGLTexture(w)}),!this.graph.order)return i();var a=this.mouseCaptor,s=this.camera.isAnimated()||a.isMoving||a.draggedEvents||a.currentWheelDirection,u=this.camera.getState(),c=this.getDimensions(),f=this.getGraphDimensions(),h=this.getStagePadding();this.matrix=Zd(u,c,f,h),this.invMatrix=Zd(u,c,f,h,!0),this.correctionRatio=M_e(this.matrix,u,c),this.graphToViewportRatio=this.getGraphToViewportRatio();var p=this.getRenderParams();for(var g in this.nodePrograms){var v=this.nodePrograms[g];v.render(p)}if(!this.settings.hideEdgesOnMove||!s)for(var y in this.edgePrograms){var b=this.edgePrograms[y];b.render(p)}return this.settings.hideLabelsOnMove&&s||(this.renderLabels(),this.renderEdgeLabels(),this.renderHighlightedNodes()),i()}},{key:"addNode",value:function(r){var i=Object.assign({},this.graph.getNodeAttributes(r));this.settings.nodeReducer&&(i=this.settings.nodeReducer(r,i));var a=Q_e(this.settings,r,i);this.nodeDataCache[r]=a,this.nodesWithForcedLabels.delete(r),a.forceLabel&&!a.hidden&&this.nodesWithForcedLabels.add(r),this.highlightedNodes.delete(r),a.highlighted&&!a.hidden&&this.highlightedNodes.add(r),this.settings.zIndex&&(a.zIndex<this.nodeZExtent[0]&&(this.nodeZExtent[0]=a.zIndex),a.zIndex>this.nodeZExtent[1]&&(this.nodeZExtent[1]=a.zIndex))}},{key:"updateNode",value:function(r){this.addNode(r);var i=this.nodeDataCache[r];this.normalizationFunction.applyTo(i)}},{key:"removeNode",value:function(r){delete this.nodeDataCache[r],delete this.nodeProgramIndex[r],this.highlightedNodes.delete(r),this.hoveredNode===r&&(this.hoveredNode=null),this.nodesWithForcedLabels.delete(r)}},{key:"addEdge",value:function(r){var i=Object.assign({},this.graph.getEdgeAttributes(r));this.settings.edgeReducer&&(i=this.settings.edgeReducer(r,i));var a=Z_e(this.settings,r,i);this.edgeDataCache[r]=a,this.edgesWithForcedLabels.delete(r),a.forceLabel&&!a.hidden&&this.edgesWithForcedLabels.add(r),this.settings.zIndex&&(a.zIndex<this.edgeZExtent[0]&&(this.edgeZExtent[0]=a.zIndex),a.zIndex>this.edgeZExtent[1]&&(this.edgeZExtent[1]=a.zIndex))}},{key:"updateEdge",value:function(r){this.addEdge(r)}},{key:"removeEdge",value:function(r){delete this.edgeDataCache[r],delete this.edgeProgramIndex[r],this.hoveredEdge===r&&(this.hoveredEdge=null),this.edgesWithForcedLabels.delete(r)}},{key:"clearNodeIndices",value:function(){this.labelGrid=new ML,this.nodeExtent={x:[0,1],y:[0,1]},this.nodeDataCache={},this.edgeProgramIndex={},this.nodesWithForcedLabels=new Set,this.nodeZExtent=[1/0,-1/0],this.highlightedNodes=new Set}},{key:"clearEdgeIndices",value:function(){this.edgeDataCache={},this.edgeProgramIndex={},this.edgesWithForcedLabels=new Set,this.edgeZExtent=[1/0,-1/0]}},{key:"clearIndices",value:function(){this.clearEdgeIndices(),this.clearNodeIndices()}},{key:"clearNodeState",value:function(){this.displayedNodeLabels=new Set,this.highlightedNodes=new Set,this.hoveredNode=null}},{key:"clearEdgeState",value:function(){this.displayedEdgeLabels=new Set,this.highlightedNodes=new Set,this.hoveredEdge=null}},{key:"clearState",value:function(){this.clearEdgeState(),this.clearNodeState()}},{key:"addNodeToProgram",value:function(r,i,a){var s=this.nodeDataCache[r],u=this.nodePrograms[s.type];if(!u)throw new Error('Sigma: could not find a suitable program for node type "'.concat(s.type,'"!'));u.process(i,a,s),this.nodeProgramIndex[r]=a}},{key:"addEdgeToProgram",value:function(r,i,a){var s=this.edgeDataCache[r],u=this.edgePrograms[s.type];if(!u)throw new Error('Sigma: could not find a suitable program for edge type "'.concat(s.type,'"!'));var c=this.graph.extremities(r),f=this.nodeDataCache[c[0]],h=this.nodeDataCache[c[1]];u.process(i,a,f,h,s),this.edgeProgramIndex[r]=a}},{key:"getRenderParams",value:function(){return{matrix:this.matrix,invMatrix:this.invMatrix,width:this.width,height:this.height,pixelRatio:this.pixelRatio,zoomRatio:this.camera.ratio,cameraAngle:this.camera.angle,sizeRatio:1/this.scaleSize(),correctionRatio:this.correctionRatio,downSizingRatio:this.pickingDownSizingRatio,minEdgeThickness:this.settings.minEdgeThickness,antiAliasingFeather:this.settings.antiAliasingFeather}}},{key:"getStagePadding",value:function(){var r=this.settings,i=r.stagePadding,a=r.autoRescale;return a&&i||0}},{key:"createLayer",value:function(r,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.elements[r])throw new Error('Sigma: a layer named "'.concat(r,'" already exists'));var s=R_e(i,{position:"absolute"},{class:"sigma-".concat(r)});return a.style&&Object.assign(s.style,a.style),this.elements[r]=s,"beforeLayer"in a&&a.beforeLayer?this.elements[a.beforeLayer].before(s):"afterLayer"in a&&a.afterLayer?this.elements[a.afterLayer].after(s):this.container.appendChild(s),s}},{key:"createCanvas",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.createLayer(r,"canvas",i)}},{key:"createCanvasContext",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.createCanvas(r,i),s={preserveDrawingBuffer:!1,antialias:!1};return this.canvasContexts[r]=a.getContext("2d",s),this}},{key:"createWebGLContext",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=(i==null?void 0:i.canvas)||this.createCanvas(r,i);i.hidden&&a.remove();var s=Fe({preserveDrawingBuffer:!1,antialias:!1},i),u;u=a.getContext("webgl2",s),u||(u=a.getContext("webgl",s)),u||(u=a.getContext("experimental-webgl",s));var c=u;if(this.webGLContexts[r]=c,c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA),i.picking){this.pickingLayers.add(r);var f=c.createFramebuffer();if(!f)throw new Error("Sigma: cannot create a new frame buffer for layer ".concat(r));this.frameBuffers[r]=f}return c}},{key:"killLayer",value:function(r){var i=this.elements[r];if(!i)throw new Error("Sigma: cannot kill layer ".concat(r,", which does not exist"));if(this.webGLContexts[r]){var a,s=this.webGLContexts[r];(a=s.getExtension("WEBGL_lose_context"))===null||a===void 0||a.loseContext(),delete this.webGLContexts[r]}else this.canvasContexts[r]&&delete this.canvasContexts[r];return i.remove(),delete this.elements[r],this}},{key:"getCamera",value:function(){return this.camera}},{key:"setCamera",value:function(r){this.unbindCameraHandlers(),this.camera=r,this.bindCameraHandlers()}},{key:"getContainer",value:function(){return this.container}},{key:"getGraph",value:function(){return this.graph}},{key:"setGraph",value:function(r){r!==this.graph&&(this.hoveredNode&&!r.hasNode(this.hoveredNode)&&(this.hoveredNode=null),this.hoveredEdge&&!r.hasEdge(this.hoveredEdge)&&(this.hoveredEdge=null),this.unbindGraphHandlers(),this.checkEdgesEventsFrame!==null&&(cancelAnimationFrame(this.checkEdgesEventsFrame),this.checkEdgesEventsFrame=null),this.graph=r,this.bindGraphHandlers(),this.refresh())}},{key:"getMouseCaptor",value:function(){return this.mouseCaptor}},{key:"getTouchCaptor",value:function(){return this.touchCaptor}},{key:"getDimensions",value:function(){return{width:this.width,height:this.height}}},{key:"getGraphDimensions",value:function(){var r=this.customBBox||this.nodeExtent;return{width:r.x[1]-r.x[0]||1,height:r.y[1]-r.y[0]||1}}},{key:"getNodeDisplayData",value:function(r){var i=this.nodeDataCache[r];return i?Object.assign({},i):void 0}},{key:"getEdgeDisplayData",value:function(r){var i=this.edgeDataCache[r];return i?Object.assign({},i):void 0}},{key:"getNodeDisplayedLabels",value:function(){return new Set(this.displayedNodeLabels)}},{key:"getEdgeDisplayedLabels",value:function(){return new Set(this.displayedEdgeLabels)}},{key:"getSettings",value:function(){return Fe({},this.settings)}},{key:"getSetting",value:function(r){return this.settings[r]}},{key:"setSetting",value:function(r,i){var a=Fe({},this.settings);return this.settings[r]=i,v_(this.settings),this.handleSettingsUpdate(a),this.scheduleRefresh(),this}},{key:"updateSetting",value:function(r,i){return this.setSetting(r,i(this.settings[r])),this}},{key:"setSettings",value:function(r){var i=Fe({},this.settings);return this.settings=Fe(Fe({},this.settings),r),v_(this.settings),this.handleSettingsUpdate(i),this.scheduleRefresh(),this}},{key:"resize",value:function(r){var i=this.width,a=this.height;if(this.width=this.container.offsetWidth,this.height=this.container.offsetHeight,this.pixelRatio=SL(),this.width===0)if(this.settings.allowInvalidContainer)this.width=1;else throw new Error("Sigma: Container has no width. You can set the allowInvalidContainer setting to true to stop seeing this error.");if(this.height===0)if(this.settings.allowInvalidContainer)this.height=1;else throw new Error("Sigma: Container has no height. You can set the allowInvalidContainer setting to true to stop seeing this error.");if(!r&&i===this.width&&a===this.height)return this;for(var s in this.elements){var u=this.elements[s];u.style.width=this.width+"px",u.style.height=this.height+"px"}for(var c in this.canvasContexts)this.elements[c].setAttribute("width",this.width*this.pixelRatio+"px"),this.elements[c].setAttribute("height",this.height*this.pixelRatio+"px"),this.pixelRatio!==1&&this.canvasContexts[c].scale(this.pixelRatio,this.pixelRatio);for(var f in this.webGLContexts){this.elements[f].setAttribute("width",this.width*this.pixelRatio+"px"),this.elements[f].setAttribute("height",this.height*this.pixelRatio+"px");var h=this.webGLContexts[f];if(h.viewport(0,0,this.width*this.pixelRatio,this.height*this.pixelRatio),this.pickingLayers.has(f)){var p=this.textures[f];p&&h.deleteTexture(p)}}return this.emit("resize"),this}},{key:"clear",value:function(){return this.emit("beforeClear"),this.webGLContexts.nodes.bindFramebuffer(WebGLRenderingContext.FRAMEBUFFER,null),this.webGLContexts.nodes.clear(WebGLRenderingContext.COLOR_BUFFER_BIT),this.webGLContexts.edges.bindFramebuffer(WebGLRenderingContext.FRAMEBUFFER,null),this.webGLContexts.edges.clear(WebGLRenderingContext.COLOR_BUFFER_BIT),this.webGLContexts.hoverNodes.clear(WebGLRenderingContext.COLOR_BUFFER_BIT),this.canvasContexts.labels.clearRect(0,0,this.width,this.height),this.canvasContexts.hovers.clearRect(0,0,this.width,this.height),this.canvasContexts.edgeLabels.clearRect(0,0,this.width,this.height),this.emit("afterClear"),this}},{key:"refresh",value:function(r){var i=this,a=(r==null?void 0:r.skipIndexation)!==void 0?r==null?void 0:r.skipIndexation:!1,s=(r==null?void 0:r.schedule)!==void 0?r.schedule:!1,u=!r||!r.partialGraph;if(u)this.clearEdgeIndices(),this.clearNodeIndices(),this.graph.forEachNode(function(S){return i.addNode(S)}),this.graph.forEachEdge(function(S){return i.addEdge(S)});else{for(var c,f,h=((c=r.partialGraph)===null||c===void 0?void 0:c.nodes)||[],p=0,g=(h==null?void 0:h.length)||0;p<g;p++){var v=h[p];if(this.updateNode(v),a){var y=this.nodeProgramIndex[v];if(y===void 0)throw new Error('Sigma: node "'.concat(v,`" can't be repaint`));this.addNodeToProgram(v,this.nodeIndices[v],y)}}for(var b=(r==null||(f=r.partialGraph)===null||f===void 0?void 0:f.edges)||[],w=0,_=b.length;w<_;w++){var C=b[w];if(this.updateEdge(C),a){var E=this.edgeProgramIndex[C];if(E===void 0)throw new Error('Sigma: edge "'.concat(C,`" can't be repaint`));this.addEdgeToProgram(C,this.edgeIndices[C],E)}}}return(u||!a)&&(this.needToProcess=!0),s?this.scheduleRender():this.render(),this}},{key:"scheduleRender",value:function(){var r=this;return this.renderFrame||(this.renderFrame=requestAnimationFrame(function(){r.render()})),this}},{key:"scheduleRefresh",value:function(r){return this.refresh(Fe(Fe({},r),{},{schedule:!0}))}},{key:"getViewportZoomedState",value:function(r,i){var a=this.camera.getState(),s=a.ratio,u=a.angle,c=a.x,f=a.y,h=this.settings,p=h.minCameraRatio,g=h.maxCameraRatio;typeof g=="number"&&(i=Math.min(i,g)),typeof p=="number"&&(i=Math.max(i,p));var v=i/s,y={x:this.width/2,y:this.height/2},b=this.viewportToFramedGraph(r),w=this.viewportToFramedGraph(y);return{angle:u,x:(b.x-w.x)*(1-v)+c,y:(b.y-w.y)*(1-v)+f,ratio:i}}},{key:"viewRectangle",value:function(){var r=this.viewportToFramedGraph({x:0,y:0}),i=this.viewportToFramedGraph({x:this.width,y:0}),a=this.viewportToFramedGraph({x:0,y:this.height});return{x1:r.x,y1:r.y,x2:i.x,y2:i.y,height:i.y-a.y}}},{key:"framedGraphToViewport",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=!!i.cameraState||!!i.viewportDimensions||!!i.graphDimensions,s=i.matrix?i.matrix:a?Zd(i.cameraState||this.camera.getState(),i.viewportDimensions||this.getDimensions(),i.graphDimensions||this.getGraphDimensions(),i.padding||this.getStagePadding()):this.matrix,u=N2(s,r);return{x:(1+u.x)*this.width/2,y:(1-u.y)*this.height/2}}},{key:"viewportToFramedGraph",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=!!i.cameraState||!!i.viewportDimensions||!i.graphDimensions,s=i.matrix?i.matrix:a?Zd(i.cameraState||this.camera.getState(),i.viewportDimensions||this.getDimensions(),i.graphDimensions||this.getGraphDimensions(),i.padding||this.getStagePadding(),!0):this.invMatrix,u=N2(s,{x:r.x/this.width*2-1,y:1-r.y/this.height*2});return isNaN(u.x)&&(u.x=0),isNaN(u.y)&&(u.y=0),u}},{key:"viewportToGraph",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.normalizationFunction.inverse(this.viewportToFramedGraph(r,i))}},{key:"graphToViewport",value:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.framedGraphToViewport(this.normalizationFunction(r),i)}},{key:"getGraphToViewportRatio",value:function(){var r={x:0,y:0},i={x:1,y:1},a=Math.sqrt(Math.pow(r.x-i.x,2)+Math.pow(r.y-i.y,2)),s=this.graphToViewport(r),u=this.graphToViewport(i),c=Math.sqrt(Math.pow(s.x-u.x,2)+Math.pow(s.y-u.y,2));return c/a}},{key:"getBBox",value:function(){return this.nodeExtent}},{key:"getCustomBBox",value:function(){return this.customBBox}},{key:"setCustomBBox",value:function(r){return this.customBBox=r,this.scheduleRender(),this}},{key:"kill",value:function(){this.emit("kill"),this.removeAllListeners(),this.unbindCameraHandlers(),window.removeEventListener("resize",this.activeListeners.handleResize),this.mouseCaptor.kill(),this.touchCaptor.kill(),this.unbindGraphHandlers(),this.clearIndices(),this.clearState(),this.nodeDataCache={},this.edgeDataCache={},this.highlightedNodes.clear(),this.renderFrame&&(cancelAnimationFrame(this.renderFrame),this.renderFrame=null),this.renderHighlightedNodesFrame&&(cancelAnimationFrame(this.renderHighlightedNodesFrame),this.renderHighlightedNodesFrame=null);for(var r=this.container;r.firstChild;)r.removeChild(r.firstChild);for(var i in this.nodePrograms)this.nodePrograms[i].kill();for(var a in this.nodeHoverPrograms)this.nodeHoverPrograms[a].kill();for(var s in this.edgePrograms)this.edgePrograms[s].kill();this.nodePrograms={},this.nodeHoverPrograms={},this.edgePrograms={};for(var u in this.elements)this.killLayer(u);this.canvasContexts={},this.webGLContexts={},this.elements={}}},{key:"scaleSize",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.camera.ratio;return r/this.settings.zoomToSizeRatioFunction(i)*(this.getSetting("itemSizesReference")==="positions"?i*this.graphToViewportRatio:1)}},{key:"getCanvases",value:function(){var r={};for(var i in this.elements)this.elements[i]instanceof HTMLCanvasElement&&(r[i]=this.elements[i]);return r}}])})(mk),fCe=X_e;function vc(e,t,n){let r=n.initialDeps??[],i,a=!0;function s(){var u,c,f;let h;n.key&&((u=n.debug)!=null&&u.call(n))&&(h=Date.now());const p=e();if(!(p.length!==r.length||p.some((y,b)=>r[b]!==y)))return i;r=p;let v;if(n.key&&((c=n.debug)!=null&&c.call(n))&&(v=Date.now()),i=t(...p),n.key&&((f=n.debug)!=null&&f.call(n))){const y=Math.round((Date.now()-h)*100)/100,b=Math.round((Date.now()-v)*100)/100,w=b/16,_=(C,E)=>{for(C=String(C);C.length<E;)C=" "+C;return C};console.info(`%c⏱ ${_(b,5)} /${_(y,5)} ms`,`
1237
+ font-size: .6rem;
1238
+ font-weight: bold;
1239
+ color: hsl(${Math.max(0,Math.min(120-120*w,120))}deg 100% 31%);`,n==null?void 0:n.key)}return n!=null&&n.onChange&&!(a&&n.skipInitialOnChange)&&n.onChange(i),a=!1,i}return s.updateDeps=u=>{r=u},s}function RL(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const J_e=(e,t)=>Math.abs(e-t)<1.01,eSe=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},DL=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},tSe=e=>e,nSe=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let i=t;i<=n;i++)r.push(i);return r},rSe=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=s=>{const{width:u,height:c}=s;t({width:Math.round(u),height:Math.round(c)})};if(i(DL(n)),!r.ResizeObserver)return()=>{};const a=new r.ResizeObserver(s=>{const u=()=>{const c=s[0];if(c!=null&&c.borderBoxSize){const f=c.borderBoxSize[0];if(f){i({width:f.inlineSize,height:f.blockSize});return}}i(DL(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(u):u()});return a.observe(n,{box:"border-box"}),()=>{a.unobserve(n)}},IL={passive:!0},LL=typeof window>"u"?!0:"onscrollend"in window,iSe=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const a=e.options.useScrollendEvent&&LL?()=>{}:eSe(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),s=h=>()=>{const{horizontal:p,isRtl:g}=e.options;i=p?n.scrollLeft*(g&&-1||1):n.scrollTop,a(),t(i,h)},u=s(!0),c=s(!1);n.addEventListener("scroll",u,IL);const f=e.options.useScrollendEvent&&LL;return f&&n.addEventListener("scrollend",c,IL),()=>{n.removeEventListener("scroll",u),f&&n.removeEventListener("scrollend",c)}},aSe=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},oSe=(e,{adjustments:t=0,behavior:n},r)=>{var i,a;const s=e+t;(a=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||a.call(i,{[r.options.horizontal?"left":"top"]:s,behavior:n})};class sSe{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var n,r,i;return((i=(r=(n=this.targetWindow)==null?void 0:n.performance)==null?void 0:r.now)==null?void 0:i.call(r))??Date.now()},this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(i=>{i.forEach(a=>{const s=()=>{const u=a.target,c=this.indexFromElement(u);if(!u.isConnected){this.observer.unobserve(u);return}this.shouldMeasureDuringScroll(c)&&this.resizeItem(c,this.options.measureElement(u,a,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),n=null},observe:i=>{var a;return(a=r())==null?void 0:a.observe(i,{box:"border-box"})},unobserve:i=>{var a;return(a=r())==null?void 0:a.unobserve(i)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,i])=>{typeof i>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:tSe,rangeExtractor:nSe,onChange:()=>{},measureElement:aSe,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,n)},this.maybeNotify=vc(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=a,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const i=new Map,a=new Map;for(let s=r-1;s>=0;s--){const u=n[s];if(i.has(u.lane))continue;const c=a.get(u.lane);if(c==null||u.end>c.end?a.set(u.lane,u):u.end<c.end&&i.set(u.lane,!0),i.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,u)=>s.end===u.end?s.index-u.index:s.end-u.end)[0]:void 0},this.getMeasurementOptions=vc(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(n,r,i,a,s,u)=>(this.prevLanes!==void 0&&this.prevLanes!==u&&(this.lanesChangedFlag=!0),this.prevLanes=u,this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:i,getItemKey:a,enabled:s,lanes:u}),{key:!1}),this.getMeasurements=vc(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:i,getItemKey:a,enabled:s,lanes:u},c)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>n)for(const g of this.laneAssignments.keys())g>=n&&this.laneAssignments.delete(g);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(g=>{this.itemSizeCache.set(g.key,g.size)}));const f=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===n&&(this.lanesSettling=!1);const h=this.measurementsCache.slice(0,f),p=new Array(u).fill(void 0);for(let g=0;g<f;g++){const v=h[g];v&&(p[v.lane]=g)}for(let g=f;g<n;g++){const v=a(g),y=this.laneAssignments.get(g);let b,w;if(y!==void 0&&this.options.lanes>1){b=y;const S=p[b],T=S!==void 0?h[S]:void 0;w=T?T.end+this.options.gap:r+i}else{const S=this.options.lanes===1?h[g-1]:this.getFurthestMeasurement(h,g);w=S?S.end+this.options.gap:r+i,b=S?S.lane:g%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(g,b)}const _=c.get(v),C=typeof _=="number"?_:this.options.estimateSize(g),E=w+C;h[g]={index:g,start:w,size:C,end:E,key:v,lane:b},p[b]=g}return this.measurementsCache=h,h},{key:!1,debug:()=>this.options.debug}),this.calculateRange=vc(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,i,a)=>this.range=n.length>0&&r>0?lSe({measurements:n,outerSize:r,scrollOffset:i,lanes:a}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=vc(()=>{let n=null,r=null;const i=this.calculateRange();return i&&(n=i.startIndex,r=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,i,a,s)=>a===null||s===null?[]:n({startIndex:a,endIndex:s,overscan:r,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,i=n.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=n=>{var r;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const i=this.scrollState.index??((r=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:r.index);if(i!==void 0&&this.range){const a=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),s=Math.max(0,i-a),u=Math.min(this.options.count-1,i+a);return n>=s&&n<=u}return!0},this.measureElement=n=>{if(!n){this.elementsCache.forEach((s,u)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(u))});return}const r=this.indexFromElement(n),i=this.options.getItemKey(r),a=this.elementsCache.get(i);a!==n&&(a&&this.observer.unobserve(a),this.observer.observe(n),this.elementsCache.set(i,n)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(r)&&this.resizeItem(r,this.options.measureElement(n,void 0,this))},this.resizeItem=(n,r)=>{var i;const a=this.measurementsCache[n];if(!a)return;const s=this.itemSizeCache.get(a.key)??a.size,u=r-s;u!==0&&(((i=this.scrollState)==null?void 0:i.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(a,u,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=u,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,r)),this.notify(!1))},this.getVirtualItems=vc(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const i=[];for(let a=0,s=n.length;a<s;a++){const u=n[a],c=r[u];i.push(c)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return RL(r[kU(0,r.length-1,i=>RL(r[i]).start,n)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const n=this.scrollElement.document.documentElement;return this.options.horizontal?n.scrollWidth-this.scrollElement.innerWidth:n.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(n,r,i=0)=>{if(!this.scrollElement)return 0;const a=this.getSize(),s=this.getScrollOffset();r==="auto"&&(r=n>=s+a?"end":"start"),r==="center"?n+=(i-a)/2:r==="end"&&(n-=a);const u=this.getMaxScrollOffset();return Math.max(Math.min(u,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const i=this.getSize(),a=this.getScrollOffset(),s=this.measurementsCache[n];if(!s)return;if(r==="auto")if(s.end>=a+i-this.options.scrollPaddingEnd)r="end";else if(s.start<=a+this.options.scrollPaddingStart)r="start";else return[a,r];if(r==="end"&&n===this.options.count-1)return[this.getMaxScrollOffset(),r];const u=r==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(u,r,s.size),r]},this.scrollToOffset=(n,{align:r="start",behavior:i="auto"}={})=>{const a=this.getOffsetForAlignment(n,r),s=this.now();this.scrollState={index:null,align:r,behavior:i,startedAt:s,lastTargetOffset:a,stableFrames:0},this._scrollToOffset(a,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollToIndex=(n,{align:r="auto",behavior:i="auto"}={})=>{n=Math.max(0,Math.min(n,this.options.count-1));const a=this.getOffsetForIndex(n,r);if(!a)return;const[s,u]=a,c=this.now();this.scrollState={index:n,align:u,behavior:i,startedAt:c,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollBy=(n,{behavior:r="auto"}={})=>{const i=this.getScrollOffset()+n,a=this.now();this.scrollState={index:null,align:"start",behavior:r,startedAt:a,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let i;if(r.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=((n=r[r.length-1])==null?void 0:n.end)??0;else{const a=Array(this.options.lanes).fill(null);let s=r.length-1;for(;s>=0&&a.some(u=>u===null);){const u=r[s];a[u.lane]===null&&(a[u.lane]=u.end),s--}i=Math.max(...a.filter(u=>u!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:i})=>{this.options.scrollToFn(n,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const r=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,i=r?r[0]:this.scrollState.lastTargetOffset,a=1,s=i!==this.scrollState.lastTargetOffset;if(!s&&J_e(i,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=a){this.scrollState=null;return}}else this.scrollState.stableFrames=0,s&&(this.scrollState.lastTargetOffset=i,this.scrollState.behavior="auto",this._scrollToOffset(i,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const kU=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,a=n(i);if(a<r)e=i+1;else if(a>r)t=i-1;else return i}return e>0?e-1:0};function lSe({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const i=e.length-1,a=c=>e[c].start;if(e.length<=r)return{startIndex:0,endIndex:i};let s=kU(0,i,a,n),u=s;if(r===1)for(;u<i&&e[u].end<n+t;)u++;else if(r>1){const c=Array(r).fill(0);for(;u<i&&c.some(h=>h<n+t);){const h=e[u];c[h.lane]=h.end,u++}const f=Array(r).fill(n+t);for(;s>=0&&f.some(h=>h>=n);){const h=e[s];f[h.lane]=h.start,s--}s=Math.max(0,s-s%r),u=Math.min(i,u+(r-1-u%r))}return{startIndex:s,endIndex:u}}const zL=typeof document<"u"?k.useLayoutEffect:k.useEffect;function uSe({useFlushSync:e=!0,...t}){const n=k.useReducer(()=>({}),{})[1],r={...t,onChange:(a,s)=>{var u;e&&s?jy.flushSync(n):n(),(u=t.onChange)==null||u.call(t,a,s)}},[i]=k.useState(()=>new sSe(r));return i.setOptions(r),zL(()=>i._didMount(),[]),zL(()=>i._willUpdate()),i}function dCe(e){return uSe({observeElementRect:rSe,observeElementOffset:iSe,scrollToFn:oSe,...e})}var Bp=e=>e.type==="checkbox",Il=e=>e instanceof Date,Rr=e=>e==null;const CU=e=>typeof e=="object";var dn=e=>!Rr(e)&&!Array.isArray(e)&&CU(e)&&!Il(e),cSe=e=>dn(e)&&e.target?Bp(e.target)?e.target.checked:e.target.value:e,OU=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,fSe=(e,t)=>e.has(OU(t)),dSe=e=>{const t=e.constructor&&e.constructor.prototype;return dn(t)&&t.hasOwnProperty("isPrototypeOf")},vk=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function kn(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(vk&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(dn(e)&&dSe(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=kn(e[i]));return r}var q0=e=>/^\w*$/.test(e),Wt=e=>e===void 0,yk=e=>Array.isArray(e)?e.filter(Boolean):[],bk=e=>yk(e.replace(/["|']|\]/g,"").split(/\.|\[/)),$e=(e,t,n)=>{if(!t||!dn(e))return n;const r=(q0(t)?[t]:bk(t)).reduce((i,a)=>Rr(i)?i:i[a],e);return Wt(r)||r===e?Wt(e[t])?n:e[t]:r},aa=e=>typeof e=="boolean",Ui=e=>typeof e=="function",Ut=(e,t,n)=>{let r=-1;const i=q0(t)?[t]:bk(t),a=i.length,s=a-1;for(;++r<a;){const u=i[r];let c=n;if(r!==s){const f=e[u];c=dn(f)||Array.isArray(f)?f:isNaN(+i[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=c,e=e[u]}};const yc={BLUR:"blur",FOCUS_OUT:"focusout",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},Fi={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ri={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},b_="form",TU="root",hSe=cn.createContext(null);hSe.displayName="HookFormControlContext";var pSe=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const s=a;return t._proxyFormState[s]!==Fi.all&&(t._proxyFormState[s]=!r||Fi.all),e[s]}});return i};const mSe=typeof window<"u"?cn.useLayoutEffect:cn.useEffect;var yr=e=>typeof e=="string",gSe=(e,t,n,r,i)=>yr(e)?(r&&t.watch.add(e),$e(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),$e(n,a))):(r&&(t.watchAll=!0),n),D2=e=>Rr(e)||!CU(e);function Es(e,t,n=new WeakSet){if(D2(e)||D2(t))return Object.is(e,t);if(Il(e)&&Il(t))return Object.is(e.getTime(),t.getTime());const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const a of r){const s=e[a];if(!i.includes(a))return!1;if(a!=="ref"){const u=t[a];if(Il(s)&&Il(u)||dn(s)&&dn(u)||Array.isArray(s)&&Array.isArray(u)?!Es(s,u,n):!Object.is(s,u))return!1}}return!0}const vSe=cn.createContext(null);vSe.displayName="HookFormContext";var ySe=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},yh=e=>Array.isArray(e)?e:[e],jL=()=>{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}};function MU(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const i=e[r],a=t[r];if(i&&dn(i)&&a){const s=MU(i,a);dn(s)&&(n[r]=s)}else e[r]&&(n[r]=a)}return n}var mr=e=>dn(e)&&!Object.keys(e).length,wk=e=>e.type==="file",Ry=e=>{if(!vk)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},PU=e=>e.type==="select-multiple",xk=e=>e.type==="radio",bSe=e=>xk(e)||Bp(e),w_=e=>Ry(e)&&e.isConnected;function wSe(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Wt(e)?r++:e[t[r++]];return e}function xSe(e){for(const t in e)if(e.hasOwnProperty(t)&&!Wt(e[t]))return!1;return!0}function yn(e,t){const n=Array.isArray(t)?t:q0(t)?[t]:bk(t),r=n.length===1?e:wSe(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(dn(r)&&mr(r)||Array.isArray(r)&&xSe(r))&&yn(e,n.slice(0,-1)),e}var _Se=e=>{for(const t in e)if(Ui(e[t]))return!0;return!1};function NU(e){return Array.isArray(e)||dn(e)&&!_Se(e)}function I2(e,t={}){for(const n in e){const r=e[n];NU(r)?(t[n]=Array.isArray(r)?[]:{},I2(r,t[n])):Wt(r)||(t[n]=!0)}return t}function _c(e,t,n){n||(n=I2(t));for(const r in e){const i=e[r];if(NU(i))Wt(t)||D2(n[r])?n[r]=I2(i,Array.isArray(i)?[]:{}):_c(i,Rr(t)?{}:t[r],n[r]);else{const a=t[r];n[r]=!Es(i,a)}}return n}const $L={value:!1,isValid:!1},BL={value:!0,isValid:!0};var RU=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Wt(e[0].attributes.value)?Wt(e[0].value)||e[0].value===""?BL:{value:e[0].value,isValid:!0}:BL:$L}return $L},DU=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Wt(e)?e:t?e===""?NaN:e&&+e:n&&yr(e)?new Date(e):r?r(e):e;const UL={isValid:!1,value:null};var IU=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,UL):UL;function FL(e){const t=e.ref;return wk(t)?t.files:xk(t)?IU(e.refs).value:PU(t)?[...t.selectedOptions].map(({value:n})=>n):Bp(t)?RU(e.refs).value:DU(Wt(t.value)?e.ref.value:t.value,e)}var SSe=(e,t,n,r)=>{const i={};for(const a of e){const s=$e(t,a);s&&Ut(i,a,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Dy=e=>e instanceof RegExp,eh=e=>Wt(e)?e:Dy(e)?e.source:dn(e)?Dy(e.value)?e.value.source:e.value:e,HL=e=>({isOnSubmit:!e||e===Fi.onSubmit,isOnBlur:e===Fi.onBlur,isOnChange:e===Fi.onChange,isOnAll:e===Fi.all,isOnTouch:e===Fi.onTouched});const GL="AsyncFunction";var ESe=e=>!!e&&!!e.validate&&!!(Ui(e.validate)&&e.validate.constructor.name===GL||dn(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===GL)),ASe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),qL=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const bh=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const a=$e(e,i);if(a){const{_f:s,...u}=a;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!r)return!0;if(s.ref&&t(s.ref,s.name)&&!r)return!0;if(bh(u,t))break}else if(dn(u)&&bh(u,t))break}}};function VL(e,t,n){const r=$e(e,n);if(r||q0(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),s=$e(t,a),u=$e(e,a);if(s&&!Array.isArray(s)&&n!==a)return{name:n};if(u&&u.type)return{name:a,error:u};if(u&&u.root&&u.root.type)return{name:`${a}.root`,error:u.root};i.pop()}return{name:n}}var kSe=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return mr(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(s=>t[s]===(!r||Fi.all))},CSe=(e,t,n)=>!e||!t||e===t||yh(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),OSe=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,TSe=(e,t)=>!yk($e(e,t)).length&&yn(e,t),MSe=(e,t,n)=>{const r=yh($e(e,n));return Ut(r,TU,t[n]),Ut(e,n,r),e};function KL(e,t,n="validate"){if(yr(e)||Array.isArray(e)&&e.every(yr)||aa(e)&&!e)return{type:n,message:yr(e)?e:"",ref:t}}var bc=e=>dn(e)&&!Dy(e)?e:{value:e,message:""},YL=async(e,t,n,r,i,a)=>{const{ref:s,refs:u,required:c,maxLength:f,minLength:h,min:p,max:g,pattern:v,validate:y,name:b,valueAsNumber:w,mount:_}=e._f,C=$e(n,b);if(!_||t.has(b))return{};const E=u?u[0]:s,S=N=>{i&&E.reportValidity&&(E.setCustomValidity(aa(N)?"":N||""),E.reportValidity())},T={},O=xk(s),M=Bp(s),P=O||M,R=(w||wk(s))&&Wt(s.value)&&Wt(C)||Ry(s)&&s.value===""||C===""||Array.isArray(C)&&!C.length,z=ySe.bind(null,b,r,T),D=(N,$,I,U=Ri.maxLength,j=Ri.minLength)=>{const G=N?$:I;T[b]={type:N?U:j,message:G,ref:s,...z(N?U:j,G)}};if(a?!Array.isArray(C)||!C.length:c&&(!P&&(R||Rr(C))||aa(C)&&!C||M&&!RU(u).isValid||O&&!IU(u).isValid)){const{value:N,message:$}=yr(c)?{value:!!c,message:c}:bc(c);if(N&&(T[b]={type:Ri.required,message:$,ref:E,...z(Ri.required,$)},!r))return S($),T}if(!R&&(!Rr(p)||!Rr(g))){let N,$;const I=bc(g),U=bc(p);if(!Rr(C)&&!isNaN(C)){const j=s.valueAsNumber||C&&+C;Rr(I.value)||(N=j>I.value),Rr(U.value)||($=j<U.value)}else{const j=s.valueAsDate||new Date(C),G=V=>new Date(new Date().toDateString()+" "+V),q=s.type=="time",H=s.type=="week";yr(I.value)&&C&&(N=q?G(C)>G(I.value):H?C>I.value:j>new Date(I.value)),yr(U.value)&&C&&($=q?G(C)<G(U.value):H?C<U.value:j<new Date(U.value))}if((N||$)&&(D(!!N,I.message,U.message,Ri.max,Ri.min),!r))return S(T[b].message),T}if((f||h)&&!R&&(yr(C)||a&&Array.isArray(C))){const N=bc(f),$=bc(h),I=!Rr(N.value)&&C.length>+N.value,U=!Rr($.value)&&C.length<+$.value;if((I||U)&&(D(I,N.message,$.message),!r))return S(T[b].message),T}if(v&&!R&&yr(C)){const{value:N,message:$}=bc(v);if(Dy(N)&&!C.match(N)&&(T[b]={type:Ri.pattern,message:$,ref:s,...z(Ri.pattern,$)},!r))return S($),T}if(y){if(Ui(y)){const N=await y(C,n),$=KL(N,E);if($&&(T[b]={...$,...z(Ri.validate,$.message)},!r))return S($.message),T}else if(dn(y)){let N={};for(const $ in y){if(!mr(N)&&!r)break;const I=KL(await y[$](C,n),E,$);I&&(N={...I,...z($,I.message)},S(I.message),r&&(T[b]=N))}if(!mr(N)&&(T[b]={ref:E,...N},!r))return T}}return S(!0),T};const PSe={mode:Fi.onSubmit,reValidateMode:Fi.onChange,shouldFocusError:!0};function NSe(e={}){let t={...PSe,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Ui(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=dn(t.defaultValues)||dn(t.values)?kn(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:kn(i),s={action:!1,mount:!1,watch:!1,keepIsValid:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,f=0;const h={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={...h};let g={...p};const v={array:jL(),state:jL()},y=t.criteriaMode===Fi.all,b=W=>re=>{clearTimeout(f),f=setTimeout(W,re)},w=async W=>{if(!s.keepIsValid&&!t.disabled&&(p.isValid||g.isValid||W)){let re;t.resolver?(re=mr((await P()).errors),_()):re=await D({fields:r,onlyCheckValid:!0,eventType:yc.VALID}),re!==n.isValid&&v.state.next({isValid:re})}},_=(W,re)=>{!t.disabled&&(p.isValidating||p.validatingFields||g.isValidating||g.validatingFields)&&((W||Array.from(u.mount)).forEach(ae=>{ae&&(re?Ut(n.validatingFields,ae,re):yn(n.validatingFields,ae))}),v.state.next({validatingFields:n.validatingFields,isValidating:!mr(n.validatingFields)}))},C=(W,re=[],ae,Oe,_e=!0,Ee=!0)=>{if(Oe&&ae&&!t.disabled){if(s.action=!0,Ee&&Array.isArray($e(r,W))){const Re=ae($e(r,W),Oe.argA,Oe.argB);_e&&Ut(r,W,Re)}if(Ee&&Array.isArray($e(n.errors,W))){const Re=ae($e(n.errors,W),Oe.argA,Oe.argB);_e&&Ut(n.errors,W,Re),TSe(n.errors,W)}if((p.touchedFields||g.touchedFields)&&Ee&&Array.isArray($e(n.touchedFields,W))){const Re=ae($e(n.touchedFields,W),Oe.argA,Oe.argB);_e&&Ut(n.touchedFields,W,Re)}if(p.dirtyFields||g.dirtyFields){const Re=_c(i,a),Ze=OU(W);Ut(n.dirtyFields,Ze,$e(Re,Ze))}v.state.next({name:W,isDirty:$(W,re),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Ut(a,W,re)},E=(W,re)=>{Ut(n.errors,W,re),v.state.next({errors:n.errors})},S=W=>{n.errors=W,v.state.next({errors:n.errors,isValid:!1})},T=(W,re,ae,Oe)=>{const _e=$e(r,W);if(_e){const Ee=$e(a,W,Wt(ae)?$e(i,W):ae);Wt(Ee)||Oe&&Oe.defaultChecked||re?Ut(a,W,re?Ee:FL(_e._f)):j(W,Ee),s.mount&&!s.action&&w()}},O=(W,re,ae,Oe,_e)=>{let Ee=!1,Re=!1;const Ze={name:W};if(!t.disabled){if(!ae||Oe){(p.isDirty||g.isDirty)&&(Re=n.isDirty,n.isDirty=Ze.isDirty=$(),Ee=Re!==Ze.isDirty);const ct=Es($e(i,W),re);Re=!!$e(n.dirtyFields,W),ct?yn(n.dirtyFields,W):Ut(n.dirtyFields,W,!0),Ze.dirtyFields=n.dirtyFields,Ee=Ee||(p.dirtyFields||g.dirtyFields)&&Re!==!ct}if(ae){const ct=$e(n.touchedFields,W);ct||(Ut(n.touchedFields,W,ae),Ze.touchedFields=n.touchedFields,Ee=Ee||(p.touchedFields||g.touchedFields)&&ct!==ae)}Ee&&_e&&v.state.next(Ze)}return Ee?Ze:{}},M=(W,re,ae,Oe)=>{const _e=$e(n.errors,W),Ee=(p.isValid||g.isValid)&&aa(re)&&n.isValid!==re;if(t.delayError&&ae?(c=b(()=>E(W,ae)),c(t.delayError)):(clearTimeout(f),c=null,ae?Ut(n.errors,W,ae):yn(n.errors,W)),(ae?!Es(_e,ae):_e)||!mr(Oe)||Ee){const Re={...Oe,...Ee&&aa(re)?{isValid:re}:{},errors:n.errors,name:W};n={...n,...Re},v.state.next(Re)}},P=async W=>(_(W,!0),await t.resolver(a,t.context,SSe(W||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),R=async W=>{const{errors:re}=await P(W);if(_(W),W)for(const ae of W){const Oe=$e(re,ae);Oe?Ut(n.errors,ae,Oe):yn(n.errors,ae)}else n.errors=re;return re},z=async({name:W,eventType:re})=>{if(e.validate){const ae=await e.validate({formValues:a,formState:n,name:W,eventType:re});if(dn(ae))for(const Oe in ae)ae[Oe]&&ce(`${b_}.${Oe}`,{message:yr(ae.message)?ae.message:"",type:Ri.validate});else yr(ae)||!ae?ce(b_,{message:ae||"",type:Ri.validate}):ee(b_);return ae}return!0},D=async({fields:W,onlyCheckValid:re,name:ae,eventType:Oe,context:_e={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(_e.runRootValidation=!0,!await z({name:ae,eventType:Oe})&&(_e.valid=!1,re)))return _e.valid;for(const Ee in W){const Re=W[Ee];if(Re){const{_f:Ze,...ct}=Re;if(Ze){const Hn=u.array.has(Ze.name),xr=Re._f&&ESe(Re._f);xr&&p.validatingFields&&_([Ze.name],!0);const Xt=await YL(Re,u.disabled,a,y,t.shouldUseNativeValidation&&!re,Hn);if(xr&&p.validatingFields&&_([Ze.name]),Xt[Ze.name]&&(_e.valid=!1,re)||(!re&&($e(Xt,Ze.name)?Hn?MSe(n.errors,Xt,Ze.name):Ut(n.errors,Ze.name,Xt[Ze.name]):yn(n.errors,Ze.name)),e.shouldUseNativeValidation&&Xt[Ze.name]))break}!mr(ct)&&await D({context:_e,onlyCheckValid:re,fields:ct,name:Ee,eventType:Oe})}}return _e.valid},N=()=>{for(const W of u.unMount){const re=$e(r,W);re&&(re._f.refs?re._f.refs.every(ae=>!w_(ae)):!w_(re._f.ref))&&J(W)}u.unMount=new Set},$=(W,re)=>!t.disabled&&(W&&re&&Ut(a,W,re),!Es(K(),i)),I=(W,re,ae)=>gSe(W,u,{...s.mount?a:Wt(re)?i:yr(W)?{[W]:re}:re},ae,re),U=W=>yk($e(s.mount?a:i,W,t.shouldUnregister?$e(i,W,[]):[])),j=(W,re,ae={})=>{const Oe=$e(r,W);let _e=re;if(Oe){const Ee=Oe._f;Ee&&(!Ee.disabled&&Ut(a,W,DU(re,Ee)),_e=Ry(Ee.ref)&&Rr(re)?"":re,PU(Ee.ref)?[...Ee.ref.options].forEach(Re=>Re.selected=_e.includes(Re.value)):Ee.refs?Bp(Ee.ref)?Ee.refs.forEach(Re=>{(!Re.defaultChecked||!Re.disabled)&&(Array.isArray(_e)?Re.checked=!!_e.find(Ze=>Ze===Re.value):Re.checked=_e===Re.value||!!_e)}):Ee.refs.forEach(Re=>Re.checked=Re.value===_e):wk(Ee.ref)?Ee.ref.value="":(Ee.ref.value=_e,Ee.ref.type||v.state.next({name:W,values:kn(a)})))}(ae.shouldDirty||ae.shouldTouch)&&O(W,_e,ae.shouldTouch,ae.shouldDirty,!0),ae.shouldValidate&&B(W)},G=(W,re,ae)=>{for(const Oe in re){if(!re.hasOwnProperty(Oe))return;const _e=re[Oe],Ee=W+"."+Oe,Re=$e(r,Ee);(u.array.has(W)||dn(_e)||Re&&!Re._f)&&!Il(_e)?G(Ee,_e,ae):j(Ee,_e,ae)}},q=(W,re,ae={})=>{const Oe=$e(r,W),_e=u.array.has(W),Ee=kn(re);Ut(a,W,Ee),_e?(v.array.next({name:W,values:kn(a)}),(p.isDirty||p.dirtyFields||g.isDirty||g.dirtyFields)&&ae.shouldDirty&&v.state.next({name:W,dirtyFields:_c(i,a),isDirty:$(W,Ee)})):Oe&&!Oe._f&&!Rr(Ee)?G(W,Ee,ae):j(W,Ee,ae),qL(W,u)?v.state.next({...n,name:W,values:kn(a)}):v.state.next({name:s.mount?W:void 0,values:kn(a)})},H=async W=>{s.mount=!0;const re=W.target;let ae=re.name,Oe=!0;const _e=$e(r,ae),Ee=ct=>{Oe=Number.isNaN(ct)||Il(ct)&&isNaN(ct.getTime())||Es(ct,$e(a,ae,ct))},Re=HL(t.mode),Ze=HL(t.reValidateMode);if(_e){let ct,Hn;const xr=re.type?FL(_e._f):cSe(W),Xt=W.type===yc.BLUR||W.type===yc.FOCUS_OUT,Gn=!ASe(_e._f)&&!e.validate&&!t.resolver&&!$e(n.errors,ae)&&!_e._f.deps||OSe(Xt,$e(n.touchedFields,ae),n.isSubmitted,Ze,Re),_r=qL(ae,u,Xt);Ut(a,ae,xr),Xt?(!re||!re.readOnly)&&(_e._f.onBlur&&_e._f.onBlur(W),c&&c(0)):_e._f.onChange&&_e._f.onChange(W);const _n=O(ae,xr,Xt),Df=!mr(_n)||_r;if(!Xt&&v.state.next({name:ae,type:W.type,values:kn(a)}),Gn)return(p.isValid||g.isValid)&&(t.mode==="onBlur"?Xt&&w():Xt||w()),Df&&v.state.next({name:ae,..._r?{}:_n});if(!t.resolver&&e.validate&&await z({name:ae,eventType:W.type}),!Xt&&_r&&v.state.next({...n}),t.resolver){const{errors:bu}=await P([ae]);if(_([ae]),Ee(xr),Oe){const If=VL(n.errors,r,ae),ka=VL(bu,r,If.name||ae);ct=ka.error,ae=ka.name,Hn=mr(bu)}}else _([ae],!0),ct=(await YL(_e,u.disabled,a,y,t.shouldUseNativeValidation))[ae],_([ae]),Ee(xr),Oe&&(ct?Hn=!1:(p.isValid||g.isValid)&&(Hn=await D({fields:r,onlyCheckValid:!0,name:ae,eventType:W.type})));Oe&&(_e._f.deps&&(!Array.isArray(_e._f.deps)||_e._f.deps.length>0)&&B(_e._f.deps),M(ae,Hn,ct,_n))}},V=(W,re)=>{if($e(n.errors,re)&&W.focus)return W.focus(),1},B=async(W,re={})=>{let ae,Oe;const _e=yh(W);if(t.resolver){const Ee=await R(Wt(W)?W:_e);ae=mr(Ee),Oe=W?!_e.some(Re=>$e(Ee,Re)):ae}else W?(Oe=(await Promise.all(_e.map(async Ee=>{const Re=$e(r,Ee);return await D({fields:Re&&Re._f?{[Ee]:Re}:Re,eventType:yc.TRIGGER})}))).every(Boolean),!(!Oe&&!n.isValid)&&w()):Oe=ae=await D({fields:r,name:W,eventType:yc.TRIGGER});return v.state.next({...!yr(W)||(p.isValid||g.isValid)&&ae!==n.isValid?{}:{name:W},...t.resolver||!W?{isValid:ae}:{},errors:n.errors}),re.shouldFocus&&!Oe&&bh(r,V,W?_e:u.mount),Oe},K=(W,re)=>{let ae={...s.mount?a:i};return re&&(ae=MU(re.dirtyFields?n.dirtyFields:n.touchedFields,ae)),Wt(W)?ae:yr(W)?$e(ae,W):W.map(Oe=>$e(ae,Oe))},X=(W,re)=>({invalid:!!$e((re||n).errors,W),isDirty:!!$e((re||n).dirtyFields,W),error:$e((re||n).errors,W),isValidating:!!$e(n.validatingFields,W),isTouched:!!$e((re||n).touchedFields,W)}),ee=W=>{const re=W?yh(W):void 0;re==null||re.forEach(ae=>yn(n.errors,ae)),re?re.forEach(ae=>{v.state.next({name:ae,errors:n.errors})}):v.state.next({errors:{}})},ce=(W,re,ae)=>{const Oe=($e(r,W,{_f:{}})._f||{}).ref,_e=$e(n.errors,W)||{},{ref:Ee,message:Re,type:Ze,...ct}=_e;Ut(n.errors,W,{...ct,...re,ref:Oe}),v.state.next({name:W,errors:n.errors,isValid:!1}),ae&&ae.shouldFocus&&Oe&&Oe.focus&&Oe.focus()},he=(W,re)=>Ui(W)?v.state.subscribe({next:ae=>"values"in ae&&W(I(void 0,re),ae)}):I(W,re,!0),de=W=>v.state.subscribe({next:re=>{CSe(W.name,re.name,W.exact)&&kSe(re,W.formState||p,Zt,W.reRenderRoot)&&W.callback({values:{...a},...n,...re,defaultValues:i})}}).unsubscribe,ie=W=>(s.mount=!0,g={...g,...W.formState},de({...W,formState:{...h,...W.formState}})),J=(W,re={})=>{for(const ae of W?yh(W):u.mount)u.mount.delete(ae),u.array.delete(ae),re.keepValue||(yn(r,ae),yn(a,ae)),!re.keepError&&yn(n.errors,ae),!re.keepDirty&&yn(n.dirtyFields,ae),!re.keepTouched&&yn(n.touchedFields,ae),!re.keepIsValidating&&yn(n.validatingFields,ae),!t.shouldUnregister&&!re.keepDefaultValue&&yn(i,ae);v.state.next({values:kn(a)}),v.state.next({...n,...re.keepDirty?{isDirty:$()}:{}}),!re.keepIsValid&&w()},pe=({disabled:W,name:re})=>{if(aa(W)&&s.mount||W||u.disabled.has(re)){const _e=u.disabled.has(re)!==!!W;W?u.disabled.add(re):u.disabled.delete(re),_e&&s.mount&&!s.action&&w()}},ye=(W,re={})=>{let ae=$e(r,W);const Oe=aa(re.disabled)||aa(t.disabled);return Ut(r,W,{...ae||{},_f:{...ae&&ae._f?ae._f:{ref:{name:W}},name:W,mount:!0,...re}}),u.mount.add(W),ae?pe({disabled:aa(re.disabled)?re.disabled:t.disabled,name:W}):T(W,!0,re.value),{...Oe?{disabled:re.disabled||t.disabled}:{},...t.progressive?{required:!!re.required,min:eh(re.min),max:eh(re.max),minLength:eh(re.minLength),maxLength:eh(re.maxLength),pattern:eh(re.pattern)}:{},name:W,onChange:H,onBlur:H,ref:_e=>{if(_e){ye(W,re),ae=$e(r,W);const Ee=Wt(_e.value)&&_e.querySelectorAll&&_e.querySelectorAll("input,select,textarea")[0]||_e,Re=bSe(Ee),Ze=ae._f.refs||[];if(Re?Ze.find(ct=>ct===Ee):Ee===ae._f.ref)return;Ut(r,W,{_f:{...ae._f,...Re?{refs:[...Ze.filter(w_),Ee,...Array.isArray($e(i,W))?[{}]:[]],ref:{type:Ee.type,name:W}}:{ref:Ee}}}),T(W,!1,void 0,Ee)}else ae=$e(r,W,{}),ae._f&&(ae._f.mount=!1),(t.shouldUnregister||re.shouldUnregister)&&!(fSe(u.array,W)&&s.action)&&u.unMount.add(W)}}},te=()=>t.shouldFocusError&&bh(r,V,u.mount),Ce=W=>{aa(W)&&(v.state.next({disabled:W}),bh(r,(re,ae)=>{const Oe=$e(r,ae);Oe&&(re.disabled=Oe._f.disabled||W,Array.isArray(Oe._f.refs)&&Oe._f.refs.forEach(_e=>{_e.disabled=Oe._f.disabled||W}))},0,!1))},Se=(W,re)=>async ae=>{let Oe;ae&&(ae.preventDefault&&ae.preventDefault(),ae.persist&&ae.persist());let _e=kn(a);if(v.state.next({isSubmitting:!0}),t.resolver){const{errors:Ee,values:Re}=await P();_(),n.errors=Ee,_e=kn(Re)}else await D({fields:r,eventType:yc.SUBMIT});if(u.disabled.size)for(const Ee of u.disabled)yn(_e,Ee);if(yn(n.errors,TU),mr(n.errors)){v.state.next({errors:{}});try{await W(_e,ae)}catch(Ee){Oe=Ee}}else re&&await re({...n.errors},ae),te(),setTimeout(te);if(v.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:mr(n.errors)&&!Oe,submitCount:n.submitCount+1,errors:n.errors}),Oe)throw Oe},Ye=(W,re={})=>{$e(r,W)&&(Wt(re.defaultValue)?q(W,kn($e(i,W))):(q(W,re.defaultValue),Ut(i,W,kn(re.defaultValue))),re.keepTouched||yn(n.touchedFields,W),re.keepDirty||(yn(n.dirtyFields,W),n.isDirty=re.defaultValue?$(W,kn($e(i,W))):$()),re.keepError||(yn(n.errors,W),p.isValid&&w()),v.state.next({...n}))},Ie=(W,re={})=>{const ae=W?kn(W):i,Oe=kn(ae),_e=mr(W),Ee=_e?i:Oe;if(re.keepDefaultValues||(i=ae),!re.keepValues){if(re.keepDirtyValues){const Re=new Set([...u.mount,...Object.keys(_c(i,a))]);for(const Ze of Array.from(Re)){const ct=$e(n.dirtyFields,Ze),Hn=$e(a,Ze),xr=$e(Ee,Ze);ct&&!Wt(Hn)?Ut(Ee,Ze,Hn):!ct&&!Wt(xr)&&q(Ze,xr)}}else{if(vk&&Wt(W))for(const Re of u.mount){const Ze=$e(r,Re);if(Ze&&Ze._f){const ct=Array.isArray(Ze._f.refs)?Ze._f.refs[0]:Ze._f.ref;if(Ry(ct)){const Hn=ct.closest("form");if(Hn){Hn.reset();break}}}}if(re.keepFieldsRef)for(const Re of u.mount)q(Re,$e(Ee,Re));else r={}}a=t.shouldUnregister?re.keepDefaultValues?kn(i):{}:kn(Ee),v.array.next({values:{...Ee}}),v.state.next({values:{...Ee}})}u={mount:re.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!p.isValid||!!re.keepIsValid||!!re.keepDirtyValues||!t.shouldUnregister&&!mr(Ee),s.watch=!!t.shouldUnregister,s.keepIsValid=!!re.keepIsValid,s.action=!1,re.keepErrors||(n.errors={}),v.state.next({submitCount:re.keepSubmitCount?n.submitCount:0,isDirty:_e?!1:re.keepDirty?n.isDirty:!!(re.keepDefaultValues&&!Es(W,i)),isSubmitted:re.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:_e?{}:re.keepDirtyValues?re.keepDefaultValues&&a?_c(i,a):n.dirtyFields:re.keepDefaultValues&&W?_c(i,W):re.keepDirty?n.dirtyFields:{},touchedFields:re.keepTouched?n.touchedFields:{},errors:re.keepErrors?n.errors:{},isSubmitSuccessful:re.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},ut=(W,re)=>Ie(Ui(W)?W(a):W,{...t.resetOptions,...re}),jt=(W,re={})=>{const ae=$e(r,W),Oe=ae&&ae._f;if(Oe){const _e=Oe.refs?Oe.refs[0]:Oe.ref;_e.focus&&setTimeout(()=>{_e.focus(),re.shouldSelect&&Ui(_e.select)&&_e.select()})}},Zt=W=>{n={...n,...W}},rr={control:{register:ye,unregister:J,getFieldState:X,handleSubmit:Se,setError:ce,_subscribe:de,_runSchema:P,_updateIsValidating:_,_focusError:te,_getWatch:I,_getDirty:$,_setValid:w,_setFieldArray:C,_setDisabledField:pe,_setErrors:S,_getFieldArray:U,_reset:Ie,_resetDefaultValues:()=>Ui(t.defaultValues)&&t.defaultValues().then(W=>{ut(W,t.resetOptions),v.state.next({isLoading:!1})}),_removeUnmounted:N,_disableForm:Ce,_subjects:v,_proxyFormState:p,get _fields(){return r},get _formValues(){return a},get _state(){return s},set _state(W){s=W},get _defaultValues(){return i},get _names(){return u},set _names(W){u=W},get _formState(){return n},get _options(){return t},set _options(W){t={...t,...W}}},subscribe:ie,trigger:B,register:ye,handleSubmit:Se,watch:he,setValue:q,getValues:K,reset:ut,resetField:Ye,clearErrors:ee,unregister:J,setError:ce,setFocus:jt,getFieldState:X};return{...rr,formControl:rr}}function hCe(e={}){const t=cn.useRef(void 0),n=cn.useRef(void 0),[r,i]=cn.useState({isDirty:!1,isValidating:!1,isLoading:Ui(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Ui(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!Ui(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:s,...u}=NSe(e);t.current={...u,formState:r}}const a=t.current.control;return a._options=e,mSe(()=>{const s=a._subscribe({formState:a._proxyFormState,callback:()=>i({...a._formState}),reRenderRoot:!0});return i(u=>({...u,isReady:!0})),a._formState.isReady=!0,s},[a]),cn.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),cn.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),cn.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),cn.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),cn.useEffect(()=>{if(a._proxyFormState.isDirty){const s=a._getDirty();s!==r.isDirty&&a._subjects.state.next({isDirty:s})}},[a,r.isDirty]),cn.useEffect(()=>{var s;e.values&&!Es(e.values,n.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),!((s=a._options.resetOptions)===null||s===void 0)&&s.keepIsValid||a._setValid(),n.current=e.values,i(u=>({...u}))):a._resetDefaultValues()},[a,e.values]),cn.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=cn.useMemo(()=>pSe(r,a),[a,r]),t.current}var wc={},x_,WL;function RSe(){return WL||(WL=1,x_=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),x_}var __={},vs={},QL;function vu(){if(QL)return vs;QL=1;let e;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return vs.getSymbolSize=function(r){if(!r)throw new Error('"version" cannot be null or undefined');if(r<1||r>40)throw new Error('"version" should be in range from 1 to 40');return r*4+17},vs.getSymbolTotalCodewords=function(r){return t[r]},vs.getBCHDigit=function(n){let r=0;for(;n!==0;)r++,n>>>=1;return r},vs.setToSJISFunction=function(r){if(typeof r!="function")throw new Error('"toSJISFunc" is not a valid function.');e=r},vs.isKanjiModeEnabled=function(){return typeof e<"u"},vs.toSJIS=function(r){return e(r)},vs}var S_={},ZL;function _k(){return ZL||(ZL=1,(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},e.from=function(r,i){if(e.isValid(r))return r;try{return t(r)}catch{return i}}})(S_)),S_}var E_,XL;function DSe(){if(XL)return E_;XL=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(t){const n=Math.floor(t/8);return(this.buffer[n]>>>7-t%8&1)===1},put:function(t,n){for(let r=0;r<n;r++)this.putBit((t>>>n-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),t&&(this.buffer[n]|=128>>>this.length%8),this.length++}},E_=e,E_}var A_,JL;function ISe(){if(JL)return A_;JL=1;function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return e.prototype.set=function(t,n,r,i){const a=t*this.size+n;this.data[a]=r,i&&(this.reservedBit[a]=!0)},e.prototype.get=function(t,n){return this.data[t*this.size+n]},e.prototype.xor=function(t,n,r){this.data[t*this.size+n]^=r},e.prototype.isReserved=function(t,n){return this.reservedBit[t*this.size+n]},A_=e,A_}var k_={},e4;function LSe(){return e4||(e4=1,(function(e){const t=vu().getSymbolSize;e.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,a=t(r),s=a===145?26:Math.ceil((a-13)/(2*i-2))*2,u=[a-7];for(let c=1;c<i-1;c++)u[c]=u[c-1]-s;return u.push(6),u.reverse()},e.getPositions=function(r){const i=[],a=e.getRowColCoords(r),s=a.length;for(let u=0;u<s;u++)for(let c=0;c<s;c++)u===0&&c===0||u===0&&c===s-1||u===s-1&&c===0||i.push([a[u],a[c]]);return i}})(k_)),k_}var C_={},t4;function zSe(){if(t4)return C_;t4=1;const e=vu().getSymbolSize,t=7;return C_.getPositions=function(r){const i=e(r);return[[0,0],[i-t,0],[0,i-t]]},C_}var O_={},n4;function jSe(){return n4||(n4=1,(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},e.from=function(i){return e.isValid(i)?parseInt(i,10):void 0},e.getPenaltyN1=function(i){const a=i.size;let s=0,u=0,c=0,f=null,h=null;for(let p=0;p<a;p++){u=c=0,f=h=null;for(let g=0;g<a;g++){let v=i.get(p,g);v===f?u++:(u>=5&&(s+=t.N1+(u-5)),f=v,u=1),v=i.get(g,p),v===h?c++:(c>=5&&(s+=t.N1+(c-5)),h=v,c=1)}u>=5&&(s+=t.N1+(u-5)),c>=5&&(s+=t.N1+(c-5))}return s},e.getPenaltyN2=function(i){const a=i.size;let s=0;for(let u=0;u<a-1;u++)for(let c=0;c<a-1;c++){const f=i.get(u,c)+i.get(u,c+1)+i.get(u+1,c)+i.get(u+1,c+1);(f===4||f===0)&&s++}return s*t.N2},e.getPenaltyN3=function(i){const a=i.size;let s=0,u=0,c=0;for(let f=0;f<a;f++){u=c=0;for(let h=0;h<a;h++)u=u<<1&2047|i.get(f,h),h>=10&&(u===1488||u===93)&&s++,c=c<<1&2047|i.get(h,f),h>=10&&(c===1488||c===93)&&s++}return s*t.N3},e.getPenaltyN4=function(i){let a=0;const s=i.data.length;for(let c=0;c<s;c++)a+=i.data[c];return Math.abs(Math.ceil(a*100/s/5)-10)*t.N4};function n(r,i,a){switch(r){case e.Patterns.PATTERN000:return(i+a)%2===0;case e.Patterns.PATTERN001:return i%2===0;case e.Patterns.PATTERN010:return a%3===0;case e.Patterns.PATTERN011:return(i+a)%3===0;case e.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(a/3))%2===0;case e.Patterns.PATTERN101:return i*a%2+i*a%3===0;case e.Patterns.PATTERN110:return(i*a%2+i*a%3)%2===0;case e.Patterns.PATTERN111:return(i*a%3+(i+a)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}e.applyMask=function(i,a){const s=a.size;for(let u=0;u<s;u++)for(let c=0;c<s;c++)a.isReserved(c,u)||a.xor(c,u,n(i,c,u))},e.getBestMask=function(i,a){const s=Object.keys(e.Patterns).length;let u=0,c=1/0;for(let f=0;f<s;f++){a(f),e.applyMask(f,i);const h=e.getPenaltyN1(i)+e.getPenaltyN2(i)+e.getPenaltyN3(i)+e.getPenaltyN4(i);e.applyMask(f,i),h<c&&(c=h,u=f)}return u}})(O_)),O_}var Zg={},r4;function LU(){if(r4)return Zg;r4=1;const e=_k(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],n=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Zg.getBlocksCount=function(i,a){switch(a){case e.L:return t[(i-1)*4+0];case e.M:return t[(i-1)*4+1];case e.Q:return t[(i-1)*4+2];case e.H:return t[(i-1)*4+3];default:return}},Zg.getTotalCodewordsCount=function(i,a){switch(a){case e.L:return n[(i-1)*4+0];case e.M:return n[(i-1)*4+1];case e.Q:return n[(i-1)*4+2];case e.H:return n[(i-1)*4+3];default:return}},Zg}var T_={},th={},i4;function $Se(){if(i4)return th;i4=1;const e=new Uint8Array(512),t=new Uint8Array(256);return(function(){let r=1;for(let i=0;i<255;i++)e[i]=r,t[r]=i,r<<=1,r&256&&(r^=285);for(let i=255;i<512;i++)e[i]=e[i-255]})(),th.log=function(r){if(r<1)throw new Error("log("+r+")");return t[r]},th.exp=function(r){return e[r]},th.mul=function(r,i){return r===0||i===0?0:e[t[r]+t[i]]},th}var a4;function BSe(){return a4||(a4=1,(function(e){const t=$Se();e.mul=function(r,i){const a=new Uint8Array(r.length+i.length-1);for(let s=0;s<r.length;s++)for(let u=0;u<i.length;u++)a[s+u]^=t.mul(r[s],i[u]);return a},e.mod=function(r,i){let a=new Uint8Array(r);for(;a.length-i.length>=0;){const s=a[0];for(let c=0;c<i.length;c++)a[c]^=t.mul(i[c],s);let u=0;for(;u<a.length&&a[u]===0;)u++;a=a.slice(u)}return a},e.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let a=0;a<r;a++)i=e.mul(i,new Uint8Array([1,t.exp(a)]));return i}})(T_)),T_}var M_,o4;function USe(){if(o4)return M_;o4=1;const e=BSe();function t(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(r){this.degree=r,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(r){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(r.length+this.degree);i.set(r);const a=e.mod(i,this.genPoly),s=this.degree-a.length;if(s>0){const u=new Uint8Array(this.degree);return u.set(a,s),u}return a},M_=t,M_}var P_={},N_={},R_={},s4;function zU(){return s4||(s4=1,R_.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),R_}var ia={},l4;function jU(){if(l4)return ia;l4=1;const e="[0-9]+",t="[A-Z $%*+\\-./:]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const r="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+`)(?:.|[\r
1240
+ ]))+`;ia.KANJI=new RegExp(n,"g"),ia.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),ia.BYTE=new RegExp(r,"g"),ia.NUMERIC=new RegExp(e,"g"),ia.ALPHANUMERIC=new RegExp(t,"g");const i=new RegExp("^"+n+"$"),a=new RegExp("^"+e+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return ia.testKanji=function(c){return i.test(c)},ia.testNumeric=function(c){return a.test(c)},ia.testAlphanumeric=function(c){return s.test(c)},ia}var u4;function yu(){return u4||(u4=1,(function(e){const t=zU(),n=jU();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(a,s){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?a.ccBits[0]:s<27?a.ccBits[1]:a.ccBits[2]},e.getBestModeForData=function(a){return n.testNumeric(a)?e.NUMERIC:n.testAlphanumeric(a)?e.ALPHANUMERIC:n.testKanji(a)?e.KANJI:e.BYTE},e.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},e.isValid=function(a){return a&&a.bit&&a.ccBits};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+i)}}e.from=function(a,s){if(e.isValid(a))return a;try{return r(a)}catch{return s}}})(N_)),N_}var c4;function FSe(){return c4||(c4=1,(function(e){const t=vu(),n=LU(),r=_k(),i=yu(),a=zU(),s=7973,u=t.getBCHDigit(s);function c(g,v,y){for(let b=1;b<=40;b++)if(v<=e.getCapacity(b,y,g))return b}function f(g,v){return i.getCharCountIndicator(g,v)+4}function h(g,v){let y=0;return g.forEach(function(b){const w=f(b.mode,v);y+=w+b.getBitsLength()}),y}function p(g,v){for(let y=1;y<=40;y++)if(h(g,y)<=e.getCapacity(y,v,i.MIXED))return y}e.from=function(v,y){return a.isValid(v)?parseInt(v,10):y},e.getCapacity=function(v,y,b){if(!a.isValid(v))throw new Error("Invalid QR Code version");typeof b>"u"&&(b=i.BYTE);const w=t.getSymbolTotalCodewords(v),_=n.getTotalCodewordsCount(v,y),C=(w-_)*8;if(b===i.MIXED)return C;const E=C-f(b,v);switch(b){case i.NUMERIC:return Math.floor(E/10*3);case i.ALPHANUMERIC:return Math.floor(E/11*2);case i.KANJI:return Math.floor(E/13);case i.BYTE:default:return Math.floor(E/8)}},e.getBestVersionForData=function(v,y){let b;const w=r.from(y,r.M);if(Array.isArray(v)){if(v.length>1)return p(v,w);if(v.length===0)return 1;b=v[0]}else b=v;return c(b.mode,b.getLength(),w)},e.getEncodedBits=function(v){if(!a.isValid(v)||v<7)throw new Error("Invalid QR Code version");let y=v<<12;for(;t.getBCHDigit(y)-u>=0;)y^=s<<t.getBCHDigit(y)-u;return v<<12|y}})(P_)),P_}var D_={},f4;function HSe(){if(f4)return D_;f4=1;const e=vu(),t=1335,n=21522,r=e.getBCHDigit(t);return D_.getEncodedBits=function(a,s){const u=a.bit<<3|s;let c=u<<10;for(;e.getBCHDigit(c)-r>=0;)c^=t<<e.getBCHDigit(c)-r;return(u<<10|c)^n},D_}var I_={},L_,d4;function GSe(){if(d4)return L_;d4=1;const e=yu();function t(n){this.mode=e.NUMERIC,this.data=n.toString()}return t.getBitsLength=function(r){return 10*Math.floor(r/3)+(r%3?r%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(r){let i,a,s;for(i=0;i+3<=this.data.length;i+=3)a=this.data.substr(i,3),s=parseInt(a,10),r.put(s,10);const u=this.data.length-i;u>0&&(a=this.data.substr(i),s=parseInt(a,10),r.put(s,u*3+1))},L_=t,L_}var z_,h4;function qSe(){if(h4)return z_;h4=1;const e=yu(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function n(r){this.mode=e.ALPHANUMERIC,this.data=r}return n.getBitsLength=function(i){return 11*Math.floor(i/2)+6*(i%2)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(i){let a;for(a=0;a+2<=this.data.length;a+=2){let s=t.indexOf(this.data[a])*45;s+=t.indexOf(this.data[a+1]),i.put(s,11)}this.data.length%2&&i.put(t.indexOf(this.data[a]),6)},z_=n,z_}var j_,p4;function VSe(){if(p4)return j_;p4=1;const e=yu();function t(n){this.mode=e.BYTE,typeof n=="string"?this.data=new TextEncoder().encode(n):this.data=new Uint8Array(n)}return t.getBitsLength=function(r){return r*8},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(n){for(let r=0,i=this.data.length;r<i;r++)n.put(this.data[r],8)},j_=t,j_}var $_,m4;function KSe(){if(m4)return $_;m4=1;const e=yu(),t=vu();function n(r){this.mode=e.KANJI,this.data=r}return n.getBitsLength=function(i){return i*13},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(r){let i;for(i=0;i<this.data.length;i++){let a=t.toSJIS(this.data[i]);if(a>=33088&&a<=40956)a-=33088;else if(a>=57408&&a<=60351)a-=49472;else throw new Error("Invalid SJIS character: "+this.data[i]+`
1241
+ Make sure your charset is UTF-8`);a=(a>>>8&255)*192+(a&255),r.put(a,13)}},$_=n,$_}var B_={exports:{}},g4;function YSe(){return g4||(g4=1,(function(e){var t={single_source_shortest_paths:function(n,r,i){var a={},s={};s[r]=0;var u=t.PriorityQueue.make();u.push(r,0);for(var c,f,h,p,g,v,y,b,w;!u.empty();){c=u.pop(),f=c.value,p=c.cost,g=n[f]||{};for(h in g)g.hasOwnProperty(h)&&(v=g[h],y=p+v,b=s[h],w=typeof s[h]>"u",(w||b>y)&&(s[h]=y,u.push(h,y),a[h]=f))}if(typeof i<"u"&&typeof s[i]>"u"){var _=["Could not find a path from ",r," to ",i,"."].join("");throw new Error(_)}return a},extract_shortest_path_from_predecessor_list:function(n,r){for(var i=[],a=r;a;)i.push(a),n[a],a=n[a];return i.reverse(),i},find_path:function(n,r,i){var a=t.single_source_shortest_paths(n,r,i);return t.extract_shortest_path_from_predecessor_list(a,i)},PriorityQueue:{make:function(n){var r=t.PriorityQueue,i={},a;n=n||{};for(a in r)r.hasOwnProperty(a)&&(i[a]=r[a]);return i.queue=[],i.sorter=n.sorter||r.default_sorter,i},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var i={value:n,cost:r};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(B_)),B_.exports}var v4;function WSe(){return v4||(v4=1,(function(e){const t=yu(),n=GSe(),r=qSe(),i=VSe(),a=KSe(),s=jU(),u=vu(),c=YSe();function f(_){return unescape(encodeURIComponent(_)).length}function h(_,C,E){const S=[];let T;for(;(T=_.exec(E))!==null;)S.push({data:T[0],index:T.index,mode:C,length:T[0].length});return S}function p(_){const C=h(s.NUMERIC,t.NUMERIC,_),E=h(s.ALPHANUMERIC,t.ALPHANUMERIC,_);let S,T;return u.isKanjiModeEnabled()?(S=h(s.BYTE,t.BYTE,_),T=h(s.KANJI,t.KANJI,_)):(S=h(s.BYTE_KANJI,t.BYTE,_),T=[]),C.concat(E,S,T).sort(function(M,P){return M.index-P.index}).map(function(M){return{data:M.data,mode:M.mode,length:M.length}})}function g(_,C){switch(C){case t.NUMERIC:return n.getBitsLength(_);case t.ALPHANUMERIC:return r.getBitsLength(_);case t.KANJI:return a.getBitsLength(_);case t.BYTE:return i.getBitsLength(_)}}function v(_){return _.reduce(function(C,E){const S=C.length-1>=0?C[C.length-1]:null;return S&&S.mode===E.mode?(C[C.length-1].data+=E.data,C):(C.push(E),C)},[])}function y(_){const C=[];for(let E=0;E<_.length;E++){const S=_[E];switch(S.mode){case t.NUMERIC:C.push([S,{data:S.data,mode:t.ALPHANUMERIC,length:S.length},{data:S.data,mode:t.BYTE,length:S.length}]);break;case t.ALPHANUMERIC:C.push([S,{data:S.data,mode:t.BYTE,length:S.length}]);break;case t.KANJI:C.push([S,{data:S.data,mode:t.BYTE,length:f(S.data)}]);break;case t.BYTE:C.push([{data:S.data,mode:t.BYTE,length:f(S.data)}])}}return C}function b(_,C){const E={},S={start:{}};let T=["start"];for(let O=0;O<_.length;O++){const M=_[O],P=[];for(let R=0;R<M.length;R++){const z=M[R],D=""+O+R;P.push(D),E[D]={node:z,lastCount:0},S[D]={};for(let N=0;N<T.length;N++){const $=T[N];E[$]&&E[$].node.mode===z.mode?(S[$][D]=g(E[$].lastCount+z.length,z.mode)-g(E[$].lastCount,z.mode),E[$].lastCount+=z.length):(E[$]&&(E[$].lastCount=z.length),S[$][D]=g(z.length,z.mode)+4+t.getCharCountIndicator(z.mode,C))}}T=P}for(let O=0;O<T.length;O++)S[T[O]].end=0;return{map:S,table:E}}function w(_,C){let E;const S=t.getBestModeForData(_);if(E=t.from(C,S),E!==t.BYTE&&E.bit<S.bit)throw new Error('"'+_+'" cannot be encoded with mode '+t.toString(E)+`.
1242
+ Suggested mode is: `+t.toString(S));switch(E===t.KANJI&&!u.isKanjiModeEnabled()&&(E=t.BYTE),E){case t.NUMERIC:return new n(_);case t.ALPHANUMERIC:return new r(_);case t.KANJI:return new a(_);case t.BYTE:return new i(_)}}e.fromArray=function(C){return C.reduce(function(E,S){return typeof S=="string"?E.push(w(S,null)):S.data&&E.push(w(S.data,S.mode)),E},[])},e.fromString=function(C,E){const S=p(C,u.isKanjiModeEnabled()),T=y(S),O=b(T,E),M=c.find_path(O.map,"start","end"),P=[];for(let R=1;R<M.length-1;R++)P.push(O.table[M[R]].node);return e.fromArray(v(P))},e.rawSplit=function(C){return e.fromArray(p(C,u.isKanjiModeEnabled()))}})(I_)),I_}var y4;function QSe(){if(y4)return __;y4=1;const e=vu(),t=_k(),n=DSe(),r=ISe(),i=LSe(),a=zSe(),s=jSe(),u=LU(),c=USe(),f=FSe(),h=HSe(),p=yu(),g=WSe();function v(O,M){const P=O.size,R=a.getPositions(M);for(let z=0;z<R.length;z++){const D=R[z][0],N=R[z][1];for(let $=-1;$<=7;$++)if(!(D+$<=-1||P<=D+$))for(let I=-1;I<=7;I++)N+I<=-1||P<=N+I||($>=0&&$<=6&&(I===0||I===6)||I>=0&&I<=6&&($===0||$===6)||$>=2&&$<=4&&I>=2&&I<=4?O.set(D+$,N+I,!0,!0):O.set(D+$,N+I,!1,!0))}}function y(O){const M=O.size;for(let P=8;P<M-8;P++){const R=P%2===0;O.set(P,6,R,!0),O.set(6,P,R,!0)}}function b(O,M){const P=i.getPositions(M);for(let R=0;R<P.length;R++){const z=P[R][0],D=P[R][1];for(let N=-2;N<=2;N++)for(let $=-2;$<=2;$++)N===-2||N===2||$===-2||$===2||N===0&&$===0?O.set(z+N,D+$,!0,!0):O.set(z+N,D+$,!1,!0)}}function w(O,M){const P=O.size,R=f.getEncodedBits(M);let z,D,N;for(let $=0;$<18;$++)z=Math.floor($/3),D=$%3+P-8-3,N=(R>>$&1)===1,O.set(z,D,N,!0),O.set(D,z,N,!0)}function _(O,M,P){const R=O.size,z=h.getEncodedBits(M,P);let D,N;for(D=0;D<15;D++)N=(z>>D&1)===1,D<6?O.set(D,8,N,!0):D<8?O.set(D+1,8,N,!0):O.set(R-15+D,8,N,!0),D<8?O.set(8,R-D-1,N,!0):D<9?O.set(8,15-D-1+1,N,!0):O.set(8,15-D-1,N,!0);O.set(R-8,8,1,!0)}function C(O,M){const P=O.size;let R=-1,z=P-1,D=7,N=0;for(let $=P-1;$>0;$-=2)for($===6&&$--;;){for(let I=0;I<2;I++)if(!O.isReserved(z,$-I)){let U=!1;N<M.length&&(U=(M[N]>>>D&1)===1),O.set(z,$-I,U),D--,D===-1&&(N++,D=7)}if(z+=R,z<0||P<=z){z-=R,R=-R;break}}}function E(O,M,P){const R=new n;P.forEach(function(I){R.put(I.mode.bit,4),R.put(I.getLength(),p.getCharCountIndicator(I.mode,O)),I.write(R)});const z=e.getSymbolTotalCodewords(O),D=u.getTotalCodewordsCount(O,M),N=(z-D)*8;for(R.getLengthInBits()+4<=N&&R.put(0,4);R.getLengthInBits()%8!==0;)R.putBit(0);const $=(N-R.getLengthInBits())/8;for(let I=0;I<$;I++)R.put(I%2?17:236,8);return S(R,O,M)}function S(O,M,P){const R=e.getSymbolTotalCodewords(M),z=u.getTotalCodewordsCount(M,P),D=R-z,N=u.getBlocksCount(M,P),$=R%N,I=N-$,U=Math.floor(R/N),j=Math.floor(D/N),G=j+1,q=U-j,H=new c(q);let V=0;const B=new Array(N),K=new Array(N);let X=0;const ee=new Uint8Array(O.buffer);for(let J=0;J<N;J++){const pe=J<I?j:G;B[J]=ee.slice(V,V+pe),K[J]=H.encode(B[J]),V+=pe,X=Math.max(X,pe)}const ce=new Uint8Array(R);let he=0,de,ie;for(de=0;de<X;de++)for(ie=0;ie<N;ie++)de<B[ie].length&&(ce[he++]=B[ie][de]);for(de=0;de<q;de++)for(ie=0;ie<N;ie++)ce[he++]=K[ie][de];return ce}function T(O,M,P,R){let z;if(Array.isArray(O))z=g.fromArray(O);else if(typeof O=="string"){let U=M;if(!U){const j=g.rawSplit(O);U=f.getBestVersionForData(j,P)}z=g.fromString(O,U||40)}else throw new Error("Invalid data");const D=f.getBestVersionForData(z,P);if(!D)throw new Error("The amount of data is too big to be stored in a QR Code");if(!M)M=D;else if(M<D)throw new Error(`
1243
+ The chosen QR Code version cannot contain this amount of data.
1244
+ Minimum version required to store current data is: `+D+`.
1245
+ `);const N=E(M,P,z),$=e.getSymbolSize(M),I=new r($);return v(I,M),y(I),b(I,M),_(I,P,0),M>=7&&w(I,M),C(I,N),isNaN(R)&&(R=s.getBestMask(I,_.bind(null,I,P))),s.applyMask(R,I),_(I,P,R),{modules:I,version:M,errorCorrectionLevel:P,maskPattern:R,segments:z}}return __.create=function(M,P){if(typeof M>"u"||M==="")throw new Error("No input text");let R=t.M,z,D;return typeof P<"u"&&(R=t.from(P.errorCorrectionLevel,t.M),z=f.from(P.version),D=s.from(P.maskPattern),P.toSJISFunc&&e.setToSJISFunction(P.toSJISFunc)),T(M,z,R,D)},__}var U_={},F_={},b4;function $U(){return b4||(b4=1,(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(a){return[a,a]}))),r.length===6&&r.push("F","F");const i=parseInt(r.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const i=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,a=r.width&&r.width>=21?r.width:void 0,s=r.scale||4;return{width:a,scale:a?4:s,margin:i,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,i){return i.width&&i.width>=r+i.margin*2?i.width/(r+i.margin*2):i.scale},e.getImageWidth=function(r,i){const a=e.getScale(r,i);return Math.floor((r+i.margin*2)*a)},e.qrToImageData=function(r,i,a){const s=i.modules.size,u=i.modules.data,c=e.getScale(s,a),f=Math.floor((s+a.margin*2)*c),h=a.margin*c,p=[a.color.light,a.color.dark];for(let g=0;g<f;g++)for(let v=0;v<f;v++){let y=(g*f+v)*4,b=a.color.light;if(g>=h&&v>=h&&g<f-h&&v<f-h){const w=Math.floor((g-h)/c),_=Math.floor((v-h)/c);b=p[u[w*s+_]?1:0]}r[y++]=b.r,r[y++]=b.g,r[y++]=b.b,r[y]=b.a}}})(F_)),F_}var w4;function ZSe(){return w4||(w4=1,(function(e){const t=$U();function n(i,a,s){i.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=s,a.width=s,a.style.height=s+"px",a.style.width=s+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(a,s,u){let c=u,f=s;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),s||(f=r()),c=t.getOptions(c);const h=t.getImageWidth(a.modules.size,c),p=f.getContext("2d"),g=p.createImageData(h,h);return t.qrToImageData(g.data,a,c),n(p,f,h),p.putImageData(g,0,0),f},e.renderToDataURL=function(a,s,u){let c=u;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),c||(c={});const f=e.render(a,s,c),h=c.type||"image/png",p=c.rendererOpts||{};return f.toDataURL(h,p.quality)}})(U_)),U_}var H_={},x4;function XSe(){if(x4)return H_;x4=1;const e=$U();function t(i,a){const s=i.a/255,u=a+'="'+i.hex+'"';return s<1?u+" "+a+'-opacity="'+s.toFixed(2).slice(1)+'"':u}function n(i,a,s){let u=i+a;return typeof s<"u"&&(u+=" "+s),u}function r(i,a,s){let u="",c=0,f=!1,h=0;for(let p=0;p<i.length;p++){const g=Math.floor(p%a),v=Math.floor(p/a);!g&&!f&&(f=!0),i[p]?(h++,p>0&&g>0&&i[p-1]||(u+=f?n("M",g+s,.5+v+s):n("m",c,0),c=0,f=!1),g+1<a&&i[p+1]||(u+=n("h",h),h=0)):c++}return u}return H_.render=function(a,s,u){const c=e.getOptions(s),f=a.modules.size,h=a.modules.data,p=f+c.margin*2,g=c.color.light.a?"<path "+t(c.color.light,"fill")+' d="M0 0h'+p+"v"+p+'H0z"/>':"",v="<path "+t(c.color.dark,"stroke")+' d="'+r(h,f,c.margin)+'"/>',y='viewBox="0 0 '+p+" "+p+'"',w='<svg xmlns="http://www.w3.org/2000/svg" '+(c.width?'width="'+c.width+'" height="'+c.width+'" ':"")+y+' shape-rendering="crispEdges">'+g+v+`</svg>
1246
+ `;return typeof u=="function"&&u(null,w),w},H_}var _4;function JSe(){if(_4)return wc;_4=1;const e=RSe(),t=QSe(),n=ZSe(),r=XSe();function i(a,s,u,c,f){const h=[].slice.call(arguments,1),p=h.length,g=typeof h[p-1]=="function";if(!g&&!e())throw new Error("Callback required as last argument");if(g){if(p<2)throw new Error("Too few arguments provided");p===2?(f=u,u=s,s=c=void 0):p===3&&(s.getContext&&typeof f>"u"?(f=c,c=void 0):(f=c,c=u,u=s,s=void 0))}else{if(p<1)throw new Error("Too few arguments provided");return p===1?(u=s,s=c=void 0):p===2&&!s.getContext&&(c=u,u=s,s=void 0),new Promise(function(v,y){try{const b=t.create(u,c);v(a(b,s,c))}catch(b){y(b)}})}try{const v=t.create(u,c);f(null,a(v,s,c))}catch(v){f(v)}}return wc.create=t.create,wc.toCanvas=i.bind(null,n.render),wc.toDataURL=i.bind(null,n.renderToDataURL),wc.toString=i.bind(null,function(a,s,u){return r.render(a,u)}),wc}var e2e=JSe();const pCe=ti(e2e);export{BAe as $,o2e as A,I2e as B,B2e as C,CEe as D,QEe as E,EEe as F,TEe as G,LEe as H,M2e as I,EAe as J,D2e as K,YEe as L,UEe as M,fAe as N,nEe as O,mAe as P,SAe as Q,cn as R,JAe as S,tke as T,z2e as U,j2e as V,mke as W,gke as X,qAe as Y,vke as Z,Lq as _,jy as a,uAe as a$,bke as a0,P2e as a1,OEe as a2,pAe as a3,X2e as a4,T2e as a5,H2e as a6,kke as a7,wke as a8,Eke as a9,fp as aA,bo as aB,eE as aC,VQ as aD,Tke as aE,tp as aF,le as aG,tG as aH,iG as aI,XEe as aJ,mEe as aK,U2e as aL,np as aM,d2e as aN,s2e as aO,u2e as aP,f2e as aQ,l2e as aR,SEe as aS,A2e as aT,gz as aU,Y2e as aV,K2e as aW,NEe as aX,fke as aY,Kv as aZ,Ke as a_,Ske as aa,Cke as ab,Ake as ac,_ke as ad,Ae as ae,xke as af,cke as ag,dAe as ah,hke as ai,VEe as aj,pke as ak,lke as al,DEe as am,aAe as an,sAe as ao,_a as ap,Cq as aq,nke as ar,bAe as as,XAe as at,Z2e as au,F2e as av,AAe as aw,Pke as ax,Mke as ay,an as az,ZF as b,dEe as b$,vEe as b0,rEe as b1,NAe as b2,v2e as b3,ZEe as b4,Ike as b5,vAe as b6,FAe as b7,tEe as b8,ike as b9,Gv as bA,PAe as bB,$Ae as bC,iAe as bD,fEe as bE,RAe as bF,c2e as bG,dCe as bH,hEe as bI,Yye as bJ,Bke as bK,ske as bL,TAe as bM,FEe as bN,N2e as bO,O2e as bP,rAe as bQ,JEe as bR,yEe as bS,R2e as bT,oEe as bU,VAe as bV,cEe as bW,IAe as bX,oke as bY,k2e as bZ,GEe as b_,uEe as ba,DAe as bb,gEe as bc,qEe as bd,bEe as be,yAe as bf,h2e as bg,G2e as bh,W2e as bi,J2e as bj,ake as bk,gAe as bl,KAe as bm,tAe as bn,kEe as bo,Lke as bp,cCe as bq,h1e as br,A1e as bs,nbe as bt,V2e as bu,fCe as bv,Lt as bw,Nke as bx,Dke as by,Rke as bz,y2e as c,q2e as c0,WAe as c1,BEe as c2,eke as c3,zEe as c4,lAe as c5,eAe as c6,hCe as c7,QAe as c8,HEe as c9,dke as cA,KEe as cB,jEe as cC,uCe as cD,Xbe as cE,Zte as cF,dre as cG,fre as cH,$2e as cI,ZAe as cJ,WEe as cK,MEe as cL,L2e as cM,jAe as cN,nAe as cO,m2e as cP,tq as cQ,p2e as cR,i2e as cS,n2e as cT,JH as cU,a2e as cV,g2e as cW,xEe as ca,OAe as cb,lEe as cc,lCe as cd,O0e as ce,Q2e as cf,LAe as cg,hAe as ch,pEe as ci,AEe as cj,C2e as ck,REe as cl,HAe as cm,$Ee as cn,eEe as co,aEe as cp,pCe as cq,_Ae as cr,GAe as cs,iEe as ct,wAe as cu,oAe as cv,IEe as cw,uke as cx,PEe as cy,wEe as cz,x2e as d,gv as e,b2e as f,_2e as g,E2e as h,kt as i,ge as j,kAe as k,cAe as l,YAe as m,rke as n,CAe as o,MAe as p,UAe as q,k as r,S2e as s,yke as t,w2e as u,sEe as v,_Ee as w,zAe as x,xAe as y,V2 as z};
1247
+ //# sourceMappingURL=vendor-DoNZuFhn.js.map