bstp-agent-widget 0.2.117 → 0.2.118

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 (216) hide show
  1. package/dist/angular.cjs +35 -35
  2. package/dist/angular.css +1 -1
  3. package/dist/angular.mjs +5105 -4817
  4. package/dist/element.cjs +35 -35
  5. package/dist/element.css +1 -1
  6. package/dist/element.mjs +5106 -4818
  7. package/dist/index.cjs +111 -111
  8. package/dist/index.mjs +9950 -9662
  9. package/dist/shadow.cjs +35 -35
  10. package/dist/shadow.css +1 -1
  11. package/dist/shadow.mjs +5099 -4811
  12. package/dist/styles.css +1 -1
  13. package/dist/styles.layer.css +1 -1
  14. package/dist/types/index.d.mts +2 -0
  15. package/dist/types/index.d.ts +2 -0
  16. package/dist/types/internal/components/{AgentChat/AgentChatFab/AgentChatFab.d.mts → AgentFab/AgentFab.d.mts} +2 -2
  17. package/dist/types/internal/components/{AgentChat/AgentChatFab/AgentChatFab.d.ts → AgentFab/AgentFab.d.ts} +2 -2
  18. package/dist/types/internal/components/AgentFab/index.d.mts +1 -0
  19. package/dist/types/internal/components/AgentFab/index.d.ts +1 -0
  20. package/dist/types/internal/components/AgentMarkdownRenderer/AgentMarkdownActionsWidget.d.mts +7 -0
  21. package/dist/types/internal/components/AgentMarkdownRenderer/AgentMarkdownActionsWidget.d.ts +7 -0
  22. package/dist/types/internal/components/AgentMarkdownRenderer/AgentMarkdownChartWidget.d.mts +2 -0
  23. package/dist/types/internal/components/AgentMarkdownRenderer/AgentMarkdownChartWidget.d.ts +2 -0
  24. package/dist/types/internal/components/AgentMarkdownRenderer/AgentMarkdownHighlightBoxWidget.d.mts +2 -0
  25. package/dist/types/internal/components/AgentMarkdownRenderer/AgentMarkdownHighlightBoxWidget.d.ts +2 -0
  26. package/dist/types/internal/components/AgentMarkdownRenderer/AgentMarkdownOfferCardWidget.d.mts +2 -0
  27. package/dist/types/internal/components/AgentMarkdownRenderer/AgentMarkdownOfferCardWidget.d.ts +2 -0
  28. package/dist/types/internal/components/AgentMarkdownRenderer/AgentMarkdownRegistry.d.mts +12 -0
  29. package/dist/types/internal/components/AgentMarkdownRenderer/AgentMarkdownRegistry.d.ts +12 -0
  30. package/dist/types/internal/components/AgentMarkdownRenderer/AgentMarkdownRenderer.d.mts +2 -0
  31. package/dist/types/internal/components/AgentMarkdownRenderer/AgentMarkdownRenderer.d.ts +2 -0
  32. package/dist/types/internal/components/AgentMarkdownRenderer/AgentMarkdownTableWidget.d.mts +2 -0
  33. package/dist/types/internal/components/AgentMarkdownRenderer/AgentMarkdownTableWidget.d.ts +2 -0
  34. package/dist/types/internal/components/AgentMarkdownRenderer/Overview/AgentMarkdownOverviewCardWidget.d.mts +2 -0
  35. package/dist/types/internal/components/AgentMarkdownRenderer/Overview/AgentMarkdownOverviewCardWidget.d.ts +2 -0
  36. package/dist/types/internal/components/{AgentChat/MarkdownRenderer/Overview/AgentChatMdOverviewCardWidgetWrapper.d.mts → AgentMarkdownRenderer/Overview/AgentMarkdownOverviewCardWidgetWrapper.d.mts} +1 -1
  37. package/dist/types/internal/components/{AgentChat/MarkdownRenderer/Overview/AgentChatMdOverviewCardWidgetWrapper.d.ts → AgentMarkdownRenderer/Overview/AgentMarkdownOverviewCardWidgetWrapper.d.ts} +1 -1
  38. package/dist/types/internal/components/{AgentChat/MarkdownRenderer → AgentMarkdownRenderer}/Overview/OverviewAccountCard.d.mts +2 -2
  39. package/dist/types/internal/components/{AgentChat/MarkdownRenderer → AgentMarkdownRenderer}/Overview/OverviewAccountCard.d.ts +2 -2
  40. package/dist/types/internal/components/{AgentChat/MarkdownRenderer → AgentMarkdownRenderer}/adapters/widget-config.adapter.d.mts +7 -6
  41. package/dist/types/internal/components/{AgentChat/MarkdownRenderer → AgentMarkdownRenderer}/adapters/widget-config.adapter.d.ts +7 -6
  42. package/dist/types/internal/components/AgentMarkdownRenderer/index.d.mts +8 -0
  43. package/dist/types/internal/components/AgentMarkdownRenderer/index.d.ts +8 -0
  44. package/dist/types/internal/components/AgentPanel/AgentPanel.d.mts +36 -0
  45. package/dist/types/internal/components/AgentPanel/AgentPanel.d.ts +36 -0
  46. package/dist/types/internal/components/AgentPanel/AgentPanelContentBody.d.mts +10 -0
  47. package/dist/types/internal/components/AgentPanel/AgentPanelContentBody.d.ts +10 -0
  48. package/dist/types/internal/components/AgentPanel/AgentPanelFooter.d.mts +11 -0
  49. package/dist/types/internal/components/AgentPanel/AgentPanelFooter.d.ts +11 -0
  50. package/dist/types/internal/components/AgentPanel/AgentPanelHeader.d.mts +7 -0
  51. package/dist/types/internal/components/AgentPanel/AgentPanelHeader.d.ts +7 -0
  52. package/dist/types/internal/components/AgentPanel/index.d.mts +4 -0
  53. package/dist/types/internal/components/AgentPanel/index.d.ts +4 -0
  54. package/dist/types/internal/components/AgentTextInput/AgentTextInput.d.mts +11 -0
  55. package/dist/types/internal/components/AgentTextInput/AgentTextInput.d.ts +11 -0
  56. package/dist/types/internal/components/AgentTextInput/index.d.mts +1 -0
  57. package/dist/types/internal/components/AgentTextInput/index.d.ts +1 -0
  58. package/dist/types/internal/components/AgentTypingIndicator/AgentTypingIndicator.d.mts +11 -0
  59. package/dist/types/internal/components/AgentTypingIndicator/AgentTypingIndicator.d.ts +11 -0
  60. package/dist/types/internal/components/AgentTypingIndicator/index.d.mts +1 -0
  61. package/dist/types/internal/components/AgentTypingIndicator/index.d.ts +1 -0
  62. package/dist/types/internal/components/AgentVoiceButton/AgentVoiceButton.d.mts +8 -0
  63. package/dist/types/internal/components/AgentVoiceButton/AgentVoiceButton.d.ts +8 -0
  64. package/dist/types/internal/components/AgentVoiceButton/index.d.mts +1 -0
  65. package/dist/types/internal/components/AgentVoiceButton/index.d.ts +1 -0
  66. package/dist/types/internal/context/AgentConfigContext.d.mts +2 -0
  67. package/dist/types/internal/context/AgentConfigContext.d.ts +2 -0
  68. package/dist/types/internal/context/AgentRuntimeContext.d.mts +2 -0
  69. package/dist/types/internal/context/AgentRuntimeContext.d.ts +2 -0
  70. package/dist/types/internal/enums/agent-chat-message-sender.d.mts +1 -1
  71. package/dist/types/internal/enums/agent-chat-message-sender.d.ts +1 -1
  72. package/dist/types/internal/enums/markdown-renderer-visualization-type.d.mts +1 -0
  73. package/dist/types/internal/enums/markdown-renderer-visualization-type.d.ts +1 -0
  74. package/dist/types/internal/enums/markdown-renderer-widget-type.d.mts +12 -0
  75. package/dist/types/internal/enums/markdown-renderer-widget-type.d.ts +12 -0
  76. package/dist/types/internal/features/agent-chat/components/AgentLauncher/AgentLauncher.d.mts +2 -0
  77. package/dist/types/internal/features/agent-chat/components/AgentLauncher/AgentLauncher.d.ts +2 -0
  78. package/dist/types/internal/hooks/{useAgentChat.d.mts → useAgent.d.mts} +4 -4
  79. package/dist/types/internal/hooks/{useAgentChat.d.ts → useAgent.d.ts} +4 -4
  80. package/dist/types/internal/hooks/useAgentActions.d.mts +6 -0
  81. package/dist/types/internal/hooks/useAgentActions.d.ts +6 -0
  82. package/dist/types/internal/hooks/useAgentChartWidgetUtils.d.mts +7 -0
  83. package/dist/types/internal/hooks/useAgentChartWidgetUtils.d.ts +7 -0
  84. package/dist/types/internal/hooks/{useAgentChatConfig.d.mts → useAgentConfig.d.mts} +1 -1
  85. package/dist/types/internal/hooks/{useAgentChatConfig.d.ts → useAgentConfig.d.ts} +1 -1
  86. package/dist/types/internal/hooks/{useAgentChatLayout.d.mts → useAgentLayout.d.mts} +6 -1
  87. package/dist/types/internal/hooks/{useAgentChatLayout.d.ts → useAgentLayout.d.ts} +6 -1
  88. package/dist/types/internal/hooks/{useAgentChatMdRendererElements.d.mts → useAgentMarkdownRendererElements.d.mts} +1 -1
  89. package/dist/types/internal/hooks/{useAgentChatMdRendererElements.d.ts → useAgentMarkdownRendererElements.d.ts} +1 -1
  90. package/dist/types/internal/hooks/{useAgentChatOverviewCardData.d.mts → useAgentOverviewCardData.d.mts} +1 -1
  91. package/dist/types/internal/hooks/{useAgentChatOverviewCardData.d.ts → useAgentOverviewCardData.d.ts} +1 -1
  92. package/dist/types/internal/hooks/{useAgentChatRuntime.d.mts → useAgentRuntime.d.mts} +1 -1
  93. package/dist/types/internal/hooks/{useAgentChatRuntime.d.ts → useAgentRuntime.d.ts} +1 -1
  94. package/dist/types/internal/hooks/{useAgentChatRuntimeInfo.d.mts → useAgentRuntimeInfo.d.mts} +2 -2
  95. package/dist/types/internal/hooks/{useAgentChatRuntimeInfo.d.ts → useAgentRuntimeInfo.d.ts} +2 -2
  96. package/dist/types/internal/hooks/useAgentSpeechLanguage.d.mts +1 -0
  97. package/dist/types/internal/hooks/useAgentSpeechLanguage.d.ts +1 -0
  98. package/dist/types/internal/hooks/{useAgentChatSpeechToText.d.mts → useAgentSpeechToText.d.mts} +1 -1
  99. package/dist/types/internal/hooks/{useAgentChatSpeechToText.d.ts → useAgentSpeechToText.d.ts} +1 -1
  100. package/dist/types/internal/hooks/useAgentTypingIndicator.d.mts +11 -0
  101. package/dist/types/internal/hooks/useAgentTypingIndicator.d.ts +11 -0
  102. package/dist/types/internal/hooks/{useAgentChatUiOptions.d.mts → useAgentUiOptions.d.mts} +1 -2
  103. package/dist/types/internal/hooks/{useAgentChatUiOptions.d.ts → useAgentUiOptions.d.ts} +1 -2
  104. package/dist/types/internal/hooks/{useAgentChatVoiceHandlers.d.mts → useAgentVoiceHandlers.d.mts} +2 -2
  105. package/dist/types/internal/hooks/{useAgentChatVoiceHandlers.d.ts → useAgentVoiceHandlers.d.ts} +2 -2
  106. package/dist/types/internal/mappers/agent-chat-action.mapper.d.mts +2 -2
  107. package/dist/types/internal/mappers/agent-chat-action.mapper.d.ts +2 -2
  108. package/dist/types/internal/providers/{AgentChatProviders.d.mts → AgentProviders.d.mts} +2 -2
  109. package/dist/types/internal/providers/{AgentChatProviders.d.ts → AgentProviders.d.ts} +2 -2
  110. package/dist/types/internal/stores/agent-chat/agent-chat.store.d.mts +7 -7
  111. package/dist/types/internal/stores/agent-chat/agent-chat.store.d.ts +7 -7
  112. package/dist/types/internal/theme/foundations/icon-props.d.mts +4 -0
  113. package/dist/types/internal/theme/foundations/icon-props.d.ts +4 -0
  114. package/dist/types/internal/theme/widget-theme-presets.d.mts +17 -0
  115. package/dist/types/internal/theme/widget-theme-presets.d.ts +17 -0
  116. package/dist/types/internal/types/models/agent-chat-action.d.mts +1 -1
  117. package/dist/types/internal/types/models/agent-chat-action.d.ts +1 -1
  118. package/dist/types/internal/types/models/agent-chat-md-chart-widget.d.mts +3 -3
  119. package/dist/types/internal/types/models/agent-chat-md-chart-widget.d.ts +3 -3
  120. package/dist/types/internal/types/models/agent-chat-md-highlight-box-widget.d.mts +1 -1
  121. package/dist/types/internal/types/models/agent-chat-md-highlight-box-widget.d.ts +1 -1
  122. package/dist/types/internal/types/models/agent-chat-md-offer-card-widget.d.mts +3 -3
  123. package/dist/types/internal/types/models/agent-chat-md-offer-card-widget.d.ts +3 -3
  124. package/dist/types/internal/types/models/agent-chat-md-overview-card-widget.d.mts +6 -6
  125. package/dist/types/internal/types/models/agent-chat-md-overview-card-widget.d.ts +6 -6
  126. package/dist/types/internal/types/models/agent-chat-md-renderer.d.mts +1 -1
  127. package/dist/types/internal/types/models/agent-chat-md-renderer.d.ts +1 -1
  128. package/dist/types/internal/types/models/agent-chat-md-table-widget.d.mts +1 -1
  129. package/dist/types/internal/types/models/agent-chat-md-table-widget.d.ts +1 -1
  130. package/dist/types/internal/types/models/agent-chat-md-widget-config.d.mts +8 -8
  131. package/dist/types/internal/types/models/agent-chat-md-widget-config.d.ts +8 -8
  132. package/dist/types/internal/types/models/agent-chat-message.d.mts +3 -3
  133. package/dist/types/internal/types/models/agent-chat-message.d.ts +3 -3
  134. package/dist/types/internal/types/models/agent-chat-runtime-info.d.mts +1 -1
  135. package/dist/types/internal/types/models/agent-chat-runtime-info.d.ts +1 -1
  136. package/dist/types/internal/types/models/agent-chat-usage-chart-item.d.mts +1 -1
  137. package/dist/types/internal/types/models/agent-chat-usage-chart-item.d.ts +1 -1
  138. package/dist/types/internal/types/models/widget-theme-name.d.mts +2 -0
  139. package/dist/types/internal/types/models/widget-theme-name.d.ts +2 -0
  140. package/dist/types/internal/types/models/widget-ui-options.d.mts +3 -2
  141. package/dist/types/internal/types/models/widget-ui-options.d.ts +3 -2
  142. package/dist/types/internal/utils/agent-chat/widget/chart-data-extractor.d.mts +2 -2
  143. package/dist/types/internal/utils/agent-chat/widget/chart-data-extractor.d.ts +2 -2
  144. package/dist/types/widget/WidgetProvider.d.mts +1 -1
  145. package/dist/types/widget/WidgetProvider.d.ts +1 -1
  146. package/package.json +1 -1
  147. package/dist/types/internal/components/AgentChat/AgentChatFab/index.d.mts +0 -1
  148. package/dist/types/internal/components/AgentChat/AgentChatFab/index.d.ts +0 -1
  149. package/dist/types/internal/components/AgentChat/AgentChatPanel/AgentChatPanel.d.mts +0 -33
  150. package/dist/types/internal/components/AgentChat/AgentChatPanel/AgentChatPanel.d.ts +0 -33
  151. package/dist/types/internal/components/AgentChat/AgentChatPanel/AgentChatPanelContentBody.d.mts +0 -10
  152. package/dist/types/internal/components/AgentChat/AgentChatPanel/AgentChatPanelContentBody.d.ts +0 -10
  153. package/dist/types/internal/components/AgentChat/AgentChatPanel/AgentChatPanelFooter.d.mts +0 -11
  154. package/dist/types/internal/components/AgentChat/AgentChatPanel/AgentChatPanelFooter.d.ts +0 -11
  155. package/dist/types/internal/components/AgentChat/AgentChatPanel/AgentChatPanelHeader.d.mts +0 -7
  156. package/dist/types/internal/components/AgentChat/AgentChatPanel/AgentChatPanelHeader.d.ts +0 -7
  157. package/dist/types/internal/components/AgentChat/AgentChatPanel/index.d.mts +0 -4
  158. package/dist/types/internal/components/AgentChat/AgentChatPanel/index.d.ts +0 -4
  159. package/dist/types/internal/components/AgentChat/AgentChatTextInput/AgentChatTextInput.d.mts +0 -8
  160. package/dist/types/internal/components/AgentChat/AgentChatTextInput/AgentChatTextInput.d.ts +0 -8
  161. package/dist/types/internal/components/AgentChat/AgentChatTextInput/index.d.mts +0 -1
  162. package/dist/types/internal/components/AgentChat/AgentChatTextInput/index.d.ts +0 -1
  163. package/dist/types/internal/components/AgentChat/AgentChatTypingIndicator/AgentChatTypingIndicator.d.mts +0 -11
  164. package/dist/types/internal/components/AgentChat/AgentChatTypingIndicator/AgentChatTypingIndicator.d.ts +0 -11
  165. package/dist/types/internal/components/AgentChat/AgentChatTypingIndicator/index.d.mts +0 -1
  166. package/dist/types/internal/components/AgentChat/AgentChatTypingIndicator/index.d.ts +0 -1
  167. package/dist/types/internal/components/AgentChat/AgentChatVoiceButton/AgentChatVoiceButton.d.mts +0 -7
  168. package/dist/types/internal/components/AgentChat/AgentChatVoiceButton/AgentChatVoiceButton.d.ts +0 -7
  169. package/dist/types/internal/components/AgentChat/AgentChatVoiceButton/index.d.mts +0 -1
  170. package/dist/types/internal/components/AgentChat/AgentChatVoiceButton/index.d.ts +0 -1
  171. package/dist/types/internal/components/AgentChat/AgentChatVoiceRecordingIndicator/AgentChatVoiceRecordingIndicator.d.mts +0 -4
  172. package/dist/types/internal/components/AgentChat/AgentChatVoiceRecordingIndicator/AgentChatVoiceRecordingIndicator.d.ts +0 -4
  173. package/dist/types/internal/components/AgentChat/AgentChatVoiceRecordingIndicator/index.d.mts +0 -1
  174. package/dist/types/internal/components/AgentChat/AgentChatVoiceRecordingIndicator/index.d.ts +0 -1
  175. package/dist/types/internal/components/AgentChat/MarkdownRenderer/AgentChatMdActionsWidget.d.mts +0 -7
  176. package/dist/types/internal/components/AgentChat/MarkdownRenderer/AgentChatMdActionsWidget.d.ts +0 -7
  177. package/dist/types/internal/components/AgentChat/MarkdownRenderer/AgentChatMdChartWidget.d.mts +0 -2
  178. package/dist/types/internal/components/AgentChat/MarkdownRenderer/AgentChatMdChartWidget.d.ts +0 -2
  179. package/dist/types/internal/components/AgentChat/MarkdownRenderer/AgentChatMdHighlightBoxWidget.d.mts +0 -2
  180. package/dist/types/internal/components/AgentChat/MarkdownRenderer/AgentChatMdHighlightBoxWidget.d.ts +0 -2
  181. package/dist/types/internal/components/AgentChat/MarkdownRenderer/AgentChatMdOfferCardWidget.d.mts +0 -2
  182. package/dist/types/internal/components/AgentChat/MarkdownRenderer/AgentChatMdOfferCardWidget.d.ts +0 -2
  183. package/dist/types/internal/components/AgentChat/MarkdownRenderer/AgentChatMdRegistry.d.mts +0 -3
  184. package/dist/types/internal/components/AgentChat/MarkdownRenderer/AgentChatMdRegistry.d.ts +0 -3
  185. package/dist/types/internal/components/AgentChat/MarkdownRenderer/AgentChatMdRenderer.d.mts +0 -2
  186. package/dist/types/internal/components/AgentChat/MarkdownRenderer/AgentChatMdRenderer.d.ts +0 -2
  187. package/dist/types/internal/components/AgentChat/MarkdownRenderer/AgentChatMdTableWidget.d.mts +0 -2
  188. package/dist/types/internal/components/AgentChat/MarkdownRenderer/AgentChatMdTableWidget.d.ts +0 -2
  189. package/dist/types/internal/components/AgentChat/MarkdownRenderer/Overview/AgentChatMdOverviewCardWidget.d.mts +0 -2
  190. package/dist/types/internal/components/AgentChat/MarkdownRenderer/Overview/AgentChatMdOverviewCardWidget.d.ts +0 -2
  191. package/dist/types/internal/components/AgentChat/MarkdownRenderer/index.d.mts +0 -8
  192. package/dist/types/internal/components/AgentChat/MarkdownRenderer/index.d.ts +0 -8
  193. package/dist/types/internal/components/AgentChat/index.d.mts +0 -7
  194. package/dist/types/internal/components/AgentChat/index.d.ts +0 -7
  195. package/dist/types/internal/context/AgentChatConfigContext.d.mts +0 -2
  196. package/dist/types/internal/context/AgentChatConfigContext.d.ts +0 -2
  197. package/dist/types/internal/context/AgentChatRuntimeContext.d.mts +0 -2
  198. package/dist/types/internal/context/AgentChatRuntimeContext.d.ts +0 -2
  199. package/dist/types/internal/features/agent-chat/components/AgentChatLauncher/AgentChatLauncher.d.mts +0 -2
  200. package/dist/types/internal/features/agent-chat/components/AgentChatLauncher/AgentChatLauncher.d.ts +0 -2
  201. package/dist/types/internal/hooks/useAccentColor.d.mts +0 -150
  202. package/dist/types/internal/hooks/useAccentColor.d.ts +0 -150
  203. package/dist/types/internal/hooks/useAgentChatActions.d.mts +0 -6
  204. package/dist/types/internal/hooks/useAgentChatActions.d.ts +0 -6
  205. package/dist/types/internal/hooks/useAgentChatChartWidgetUtils.d.mts +0 -7
  206. package/dist/types/internal/hooks/useAgentChatChartWidgetUtils.d.ts +0 -7
  207. package/dist/types/internal/hooks/useAgentChatSpeechLanguage.d.mts +0 -1
  208. package/dist/types/internal/hooks/useAgentChatSpeechLanguage.d.ts +0 -1
  209. package/dist/types/internal/hooks/useAgentChatTypingIndicator.d.mts +0 -11
  210. package/dist/types/internal/hooks/useAgentChatTypingIndicator.d.ts +0 -11
  211. package/dist/types/internal/utils/color-utils.d.mts +0 -8
  212. package/dist/types/internal/utils/color-utils.d.ts +0 -8
  213. /package/dist/types/internal/components/{AgentChat/MarkdownRenderer → AgentMarkdownRenderer}/Overview/OverviewAdvantageCard.d.mts +0 -0
  214. /package/dist/types/internal/components/{AgentChat/MarkdownRenderer → AgentMarkdownRenderer}/Overview/OverviewAdvantageCard.d.ts +0 -0
  215. /package/dist/types/internal/components/{AgentChat/MarkdownRenderer → AgentMarkdownRenderer}/Overview/OverviewPriceDisplay.d.mts +0 -0
  216. /package/dist/types/internal/components/{AgentChat/MarkdownRenderer → AgentMarkdownRenderer}/Overview/OverviewPriceDisplay.d.ts +0 -0
package/dist/angular.cjs CHANGED
@@ -162,7 +162,7 @@ It looks like you wrote `+a+`(async () => ...) or returned a Promise. Instead, w
162
162
  fetchData();
163
163
  }, [someId]); // Or [] if effect doesn't need props or state
164
164
 
165
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:` You returned: `+r,R(t,function(e,t){console.error(`%s must not return anything besides a function, which is used for clean-up.%s`,e,t)},a,o)}n=n.next}while(n!==i)}}catch(e){wl(t,t.return,e)}}function Bs(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;s!==void 0&&(o.destroy=void 0,(e&gy)!==my&&(rS=!0),i=t,R(i,Pv,i,n,s),(e&gy)!==my&&(rS=!1))}r=r.next}while(r!==a)}}catch(e){wl(t,t.return,e)}}function Vs(e,t){Is(e)?(fi(),zs(t,e),ui()):zs(t,e)}function Hs(e,t,n){Is(e)?(fi(),Bs(n,e,t),ui()):Bs(n,e,t)}function Us(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||`ref`in e.memoizedProps||pb||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",A(e)||`instance`),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",A(e)||`instance`));try{R(e,qi,t,n)}catch(t){wl(e,e.return,t)}}}function Ws(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function Gs(e,t){var n=t.memoizedProps,r=t.memoizedState;t=e.stateNode,e.type.defaultProps||`ref`in e.memoizedProps||pb||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",A(e)||`instance`),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",A(e)||`instance`));try{var i=Ho(e.type,n),a=R(e,Ws,t,i,r);n=vb,a!==void 0||n.has(e.type)||(n.add(e.type),R(e,function(){console.error(`%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.`,A(e))})),t.__reactInternalSnapshotBeforeUpdate=a}catch(t){wl(e,e.return,t)}}function Ks(e,t,n){n.props=Ho(e.type,e.memoizedProps),n.state=e.memoizedState,Is(e)?(fi(),R(e,Av,e,t,n),ui()):R(e,Av,e,t,n)}function qs(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}if(typeof t==`function`)if(Is(e))try{fi(),e.refCleanup=t(n)}finally{ui()}else e.refCleanup=t(n);else typeof t==`string`?console.error(`String refs are no longer supported.`):t.hasOwnProperty(`current`)||console.error(`Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().`,A(e)),t.current=n}}function Js(e,t){try{R(e,qs,e)}catch(n){wl(e,t,n)}}function Ys(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{if(Is(e))try{fi(),R(e,r)}finally{ui(e)}else R(e,r)}catch(n){wl(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{if(Is(e))try{fi(),R(e,n,null)}finally{ui(e)}else R(e,n,null)}catch(n){wl(e,t,n)}else n.current=null}function Xs(e,t,n,r){var i=e.memoizedProps,a=i.id,o=i.onCommit;i=i.onRender,t=t===null?`mount`:`update`,tv&&(t=`nested-update`),typeof i==`function`&&i(a,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof o==`function`&&o(a,t,r,n)}function Zs(e,t,n,r){var i=e.memoizedProps;e=i.id,i=i.onPostCommit,t=t===null?`mount`:`update`,tv&&(t=`nested-update`),typeof i==`function`&&i(e,t,r,n)}function Qs(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{R(e,Ru,r,t,n,e)}catch(t){wl(e,e.return,t)}}function $s(e,t,n){try{R(e,Bu,e.stateNode,e.type,n,t,e)}catch(t){wl(e,e.return,t)}}function ec(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Wu(e.type)||e.tag===4}function tc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||ec(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Wu(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function nc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(Uu(n),(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t)):(Uu(n),t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Jt));else if(r!==4&&(r===27&&Wu(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(nc(e,t,n),e=e.sibling;e!==null;)nc(e,t,n),e=e.sibling}function rc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Wu(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(rc(e,t,n),e=e.sibling;e!==null;)rc(e,t,n),e=e.sibling}function ic(e){for(var t,n=e.return;n!==null;){if(ec(n)){t=n;break}n=n.return}if(t==null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);switch(t.tag){case 27:t=t.stateNode,n=tc(e),rc(e,n,t);break;case 5:n=t.stateNode,t.flags&32&&(Vu(n),t.flags&=-33),t=tc(e),rc(e,t,n);break;case 3:case 4:t=t.stateNode.containerInfo,n=tc(e),nc(e,n,t);break;default:throw Error(`Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.`)}}function ac(e){var t=e.stateNode,n=e.memoizedProps;try{R(e,_d,e.type,n,t,e)}catch(t){wl(e,e.return,t)}}function oc(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)==0:!1}function sc(e,t){if(e=e.containerInfo,XS=BC,e=On(e),kn(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break a}var o=0,s=-1,c=-1,l=0,u=0,d=e,f=null;b:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=o+i),d!==a||r!==0&&d.nodeType!==3||(c=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break b;if(f===n&&++l===i&&(s=o),f===a&&++u===r&&(c=o),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n||={start:0,end:0}}else n=null;for(ZS={focusedElem:e,selectionRange:n},BC=!1,Cb=t;Cb!==null;)if(t=Cb,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Cb=e;else for(;Cb!==null;){switch(e=t=Cb,n=e.alternate,i=e.flags,e.tag){case 0:if(i&4&&(e=e.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:i&1024&&n!==null&&Gs(e,n);break;case 3:if(i&1024){if(e=e.stateNode.containerInfo,n=e.nodeType,n===9)td(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:td(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(i&1024)throw Error(`This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.`)}if(e=t.sibling,e!==null){e.return=t.return,Cb=e;break}Cb=t.return}}function cc(e,t,n){var r=ni(),i=ri(),a=ai(),o=oi(),s=n.flags;switch(n.tag){case 0:case 11:case 15:bc(e,n),s&4&&Ls(n,_y|hy);break;case 1:if(bc(e,n),s&4)if(e=n.stateNode,t===null)n.type.defaultProps||`ref`in n.memoizedProps||pb||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",A(n)||`instance`),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",A(n)||`instance`)),Is(n)?(fi(),R(n,wv,n,e),ui()):R(n,wv,n,e);else{var c=Ho(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||`ref`in n.memoizedProps||pb||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",A(n)||`instance`),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",A(n)||`instance`)),Is(n)?(fi(),R(n,Ev,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate),ui()):R(n,Ev,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate)}s&64&&Us(n),s&512&&Js(n,n.return);break;case 3:if(t=Qr(),bc(e,n),s&64&&(s=n.updateQueue,s!==null)){if(c=null,n.child!==null)switch(n.child.tag){case 27:case 5:c=n.child.stateNode;break;case 1:c=n.child.stateNode}try{R(n,qi,s,c)}catch(e){wl(n,n.return,e)}}e.effectDuration+=$r(t);break;case 27:t===null&&s&4&&ac(n);case 26:case 5:if(bc(e,n),t===null){if(s&4)Qs(n);else if(s&64){e=n.type,t=n.memoizedProps,c=n.stateNode;try{R(n,zu,c,e,t,n)}catch(e){wl(n,n.return,e)}}}s&512&&Js(n,n.return);break;case 12:if(s&4){s=Qr(),bc(e,n),e=n.stateNode,e.effectDuration+=ei(s);try{R(n,Xs,n,t,v_,e.effectDuration)}catch(e){wl(n,n.return,e)}}else bc(e,n);break;case 31:bc(e,n),s&4&&fc(e,n);break;case 13:bc(e,n),s&4&&pc(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=Ol.bind(null,n),sd(e,s))));break;case 22:if(s=n.memoizedState!==null||yb,!s){t=t!==null&&t.memoizedState!==null||bb,c=yb;var l=bb;yb=s,(bb=t)&&!l?(wc(e,n,(n.subtreeFlags&8772)!=0),(n.mode&Ng)!==jg&&0<=w_&&0<=T_&&.05<T_-w_&&Bn(n,w_,T_)):bc(e,n),yb=c,bb=l}break;case 30:break;default:bc(e,n)}(n.mode&Ng)!==jg&&0<=w_&&0<=T_&&((D_||.05<C_)&&Un(n,w_,T_,C_,E_),n.alternate===null&&n.return!==null&&n.return.alternate!==null&&.05<T_-w_&&(oc(n.return.alternate,n.return)||zn(n,w_,T_,`Mount`))),G(r),ii(i),E_=a,D_=o}function lc(e){var t=e.alternate;t!==null&&(e.alternate=null,lc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Re(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function uc(e,t,n){for(n=n.child;n!==null;)dc(e,t,n),n=n.sibling}function dc(e,t,n){if(wp&&typeof wp.onCommitFiberUnmount==`function`)try{wp.onCommitFiberUnmount(Cp,n)}catch(e){Tp||(Tp=!0,console.error(`React instrumentation encountered an error: %o`,e))}var r=ni(),i=ri(),a=ai(),o=oi();switch(n.tag){case 26:bb||Ys(n,t),uc(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(e=n.stateNode,e.parentNode.removeChild(e));break;case 27:bb||Ys(n,t);var s=Eb,c=Db;Wu(n.type)&&(Eb=n.stateNode,Db=!1),uc(e,t,n),R(n,vd,n.stateNode),Eb=s,Db=c;break;case 5:bb||Ys(n,t);case 6:if(s=Eb,c=Db,Eb=null,uc(e,t,n),Eb=s,Db=c,Eb!==null)if(Db)try{R(n,Ku,Eb,n.stateNode)}catch(e){wl(n,t,e)}else try{R(n,Gu,Eb,n.stateNode)}catch(e){wl(n,t,e)}break;case 18:Eb!==null&&(Db?(e=Eb,qu(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),pf(e)):qu(Eb,n.stateNode));break;case 4:s=Eb,c=Db,Eb=n.stateNode.containerInfo,Db=!0,uc(e,t,n),Eb=s,Db=c;break;case 0:case 11:case 14:case 15:Bs(gy,n,t),bb||Rs(n,t,_y),uc(e,t,n);break;case 1:bb||(Ys(n,t),s=n.stateNode,typeof s.componentWillUnmount==`function`&&Ks(n,t,s)),uc(e,t,n);break;case 21:uc(e,t,n);break;case 22:bb=(s=bb)||n.memoizedState!==null,uc(e,t,n),bb=s;break;default:uc(e,t,n)}(n.mode&Ng)!==jg&&0<=w_&&0<=T_&&(D_||.05<C_)&&Un(n,w_,T_,C_,E_),G(r),ii(i),E_=a,D_=o}function fc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{R(t,md,e)}catch(e){wl(t,t.return,e)}}}function pc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{R(t,hd,e)}catch(e){wl(t,t.return,e)}}function mc(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Sb),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Sb),t;default:throw Error(`Unexpected Suspense handler tag (`+e.tag+`). This is a bug in React.`)}}function hc(e,t){var n=mc(e);t.forEach(function(t){if(!n.has(t)){if(n.add(t),Ep)if(wb!==null&&Tb!==null)Pl(Tb,wb);else throw Error(`Expected finished root and lanes to be set. This is a bug in React.`);var r=kl.bind(null,e,t);t.then(r,r)}})}function gc(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=e,a=t,o=n[r],s=ni(),c=a;a:for(;c!==null;){switch(c.tag){case 27:if(Wu(c.type)){Eb=c.stateNode,Db=!1;break a}break;case 5:Eb=c.stateNode,Db=!1;break a;case 3:case 4:Eb=c.stateNode.containerInfo,Db=!0;break a}c=c.return}if(Eb===null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);dc(i,a,o),Eb=null,Db=!1,(o.mode&Ng)!==jg&&0<=w_&&0<=T_&&.05<T_-w_&&zn(o,w_,T_,`Unmount`),G(s),i=o,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)_c(t,e),t=t.sibling}function _c(e,t){var n=ni(),r=ri(),i=ai(),a=oi(),o=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:gc(t,e),vc(e),s&4&&(Bs(gy|hy,e,e.return),zs(gy|hy,e),Rs(e,e.return,_y|hy));break;case 1:if(gc(t,e),vc(e),s&512&&(bb||o===null||Ys(o,o.return)),s&64&&yb&&(s=e.updateQueue,s!==null&&(o=s.callbacks,o!==null))){var c=s.shared.hiddenCallbacks;s.shared.hiddenCallbacks=c===null?o:c.concat(o)}break;case 26:if(c=Ob,gc(t,e),vc(e),s&512&&(bb||o===null||Ys(o,o.return)),s&4){var l=o===null?null:o.memoizedState;if(s=e.memoizedState,o===null)if(s===null)if(e.stateNode===null){a:{s=e.type,o=e.memoizedProps,c=c.ownerDocument||c;b:switch(s){case`title`:l=c.getElementsByTagName(`title`)[0],(!l||l[Gp]||l[Rp]||l.namespaceURI===Om||l.hasAttribute(`itemprop`))&&(l=c.createElement(s),c.head.insertBefore(l,c.querySelector(`head > title`))),gu(l,s,o),l[Rp]=e,Ue(l),s=l;break a;case`link`:var u=Nd(`link`,`href`,c).get(s+(o.href||``));if(u){for(var d=0;d<u.length;d++)if(l=u[d],l.getAttribute(`href`)===(o.href==null||o.href===``?null:o.href)&&l.getAttribute(`rel`)===(o.rel==null?null:o.rel)&&l.getAttribute(`title`)===(o.title==null?null:o.title)&&l.getAttribute(`crossorigin`)===(o.crossOrigin==null?null:o.crossOrigin)){u.splice(d,1);break b}}l=c.createElement(s),gu(l,s,o),c.head.appendChild(l);break;case`meta`:if(u=Nd(`meta`,`content`,c).get(s+(o.content||``))){for(d=0;d<u.length;d++)if(l=u[d],z(o.content,`content`),l.getAttribute(`content`)===(o.content==null?null:``+o.content)&&l.getAttribute(`name`)===(o.name==null?null:o.name)&&l.getAttribute(`property`)===(o.property==null?null:o.property)&&l.getAttribute(`http-equiv`)===(o.httpEquiv==null?null:o.httpEquiv)&&l.getAttribute(`charset`)===(o.charSet==null?null:o.charSet)){u.splice(d,1);break b}}l=c.createElement(s),gu(l,s,o),c.head.appendChild(l);break;default:throw Error(`getNodesForType encountered a type it did not expect: "`+s+`". This is a bug in React.`)}l[Rp]=e,Ue(l),s=l}e.stateNode=s}else Pd(c,e.type,e.stateNode);else e.stateNode=kd(c,s,e.memoizedProps);else l===s?s===null&&e.stateNode!==null&&$s(e,e.memoizedProps,o.memoizedProps):(l===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):l.count--,s===null?Pd(c,e.type,e.stateNode):kd(c,s,e.memoizedProps))}break;case 27:gc(t,e),vc(e),s&512&&(bb||o===null||Ys(o,o.return)),o!==null&&s&4&&$s(e,e.memoizedProps,o.memoizedProps);break;case 5:if(gc(t,e),vc(e),s&512&&(bb||o===null||Ys(o,o.return)),e.flags&32){c=e.stateNode;try{R(e,Vu,c)}catch(t){wl(e,e.return,t)}}s&4&&e.stateNode!=null&&(c=e.memoizedProps,$s(e,c,o===null?c:o.memoizedProps)),s&1024&&(xb=!0,e.type!==`form`&&console.error(`Unexpected host component type. Expected a form. This is a bug in React.`));break;case 6:if(gc(t,e),vc(e),s&4){if(e.stateNode===null)throw Error(`This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.`);s=e.memoizedProps,o=o===null?s:o.memoizedProps,c=e.stateNode;try{R(e,Hu,c,o,s)}catch(t){wl(e,e.return,t)}}break;case 3:if(c=Qr(),gC=null,l=Ob,Ob=yd(t.containerInfo),gc(t,e),Ob=l,vc(e),s&4&&o!==null&&o.memoizedState.isDehydrated)try{R(e,pd,t.containerInfo)}catch(t){wl(e,e.return,t)}xb&&(xb=!1,yc(e)),t.effectDuration+=$r(c);break;case 4:s=Ob,Ob=yd(e.stateNode.containerInfo),gc(t,e),vc(e),Ob=s;break;case 12:s=Qr(),gc(t,e),vc(e),e.stateNode.effectDuration+=ei(s);break;case 31:gc(t,e),vc(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,hc(e,s)));break;case 13:gc(t,e),vc(e),e.child.flags&8192&&e.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(bx=mp()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,hc(e,s)));break;case 22:c=e.memoizedState!==null;var f=o!==null&&o.memoizedState!==null,p=yb,m=bb;if(yb=p||c,bb=m||f,gc(t,e),bb=m,yb=p,f&&!c&&!p&&!m&&(e.mode&Ng)!==jg&&0<=w_&&0<=T_&&.05<T_-w_&&Bn(e,w_,T_),vc(e),s&8192)a:for(t=e.stateNode,t._visibility=c?t._visibility&~Cg:t._visibility|Cg,!c||o===null||f||yb||bb||(Sc(e),(e.mode&Ng)!==jg&&0<=w_&&0<=T_&&.05<T_-w_&&zn(e,w_,T_,`Disconnect`)),o=null,t=e;;){if(t.tag===5||t.tag===26){if(o===null){f=o=t;try{l=f.stateNode,c?R(f,Xu,l):R(f,$u,f.stateNode,f.memoizedProps)}catch(e){wl(f,f.return,e)}}}else if(t.tag===6){if(o===null){f=t;try{u=f.stateNode,c?R(f,Zu,u):R(f,ed,u,f.memoizedProps)}catch(e){wl(f,f.return,e)}}}else if(t.tag===18){if(o===null){f=t;try{d=f.stateNode,c?R(f,Yu,d):R(f,Qu,f.stateNode)}catch(e){wl(f,f.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;o===t&&(o=null),t=t.return}o===t&&(o=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(o=s.retryQueue,o!==null&&(s.retryQueue=null,hc(e,o))));break;case 19:gc(t,e),vc(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,hc(e,s)));break;case 30:break;case 21:break;default:gc(t,e),vc(e)}(e.mode&Ng)!==jg&&0<=w_&&0<=T_&&((D_||.05<C_)&&Un(e,w_,T_,C_,E_),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<T_-w_&&(oc(e.return.alternate,e.return)||zn(e,w_,T_,`Mount`))),G(n),ii(r),E_=i,D_=a}function vc(e){var t=e.flags;if(t&2){try{R(e,ic,e)}catch(t){wl(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yc(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;yc(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function bc(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)cc(e,t.alternate,t),t=t.sibling}function xc(e){var t=ni(),n=ri(),r=ai(),i=oi();switch(e.tag){case 0:case 11:case 14:case 15:Rs(e,e.return,_y),Sc(e);break;case 1:Ys(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount==`function`&&Ks(e,e.return,a),Sc(e);break;case 27:R(e,vd,e.stateNode);case 26:case 5:Ys(e,e.return),Sc(e);break;case 22:e.memoizedState===null&&Sc(e);break;case 30:Sc(e);break;default:Sc(e)}(e.mode&Ng)!==jg&&0<=w_&&0<=T_&&(D_||.05<C_)&&Un(e,w_,T_,C_,E_),G(t),ii(n),E_=r,D_=i}function Sc(e){for(e=e.child;e!==null;)xc(e),e=e.sibling}function Cc(e,t,n,r){var i=ni(),a=ri(),o=ai(),s=oi(),c=n.flags;switch(n.tag){case 0:case 11:case 15:wc(e,n,r),Ls(n,_y);break;case 1:if(wc(e,n,r),t=n.stateNode,typeof t.componentDidMount==`function`&&R(n,wv,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{R(n,Ki,t,e)}catch(e){wl(n,n.return,e)}}r&&c&64&&Us(n),Js(n,n.return);break;case 27:ac(n);case 26:case 5:wc(e,n,r),r&&t===null&&c&4&&Qs(n),Js(n,n.return);break;case 12:if(r&&c&4){c=Qr(),wc(e,n,r),r=n.stateNode,r.effectDuration+=ei(c);try{R(n,Xs,n,t,v_,r.effectDuration)}catch(e){wl(n,n.return,e)}}else wc(e,n,r);break;case 31:wc(e,n,r),r&&c&4&&fc(e,n);break;case 13:wc(e,n,r),r&&c&4&&pc(e,n);break;case 22:n.memoizedState===null&&wc(e,n,r),Js(n,n.return);break;case 30:break;default:wc(e,n,r)}(n.mode&Ng)!==jg&&0<=w_&&0<=T_&&(D_||.05<C_)&&Un(n,w_,T_,C_,E_),G(i),ii(a),E_=o,D_=s}function wc(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;)Cc(e,t.alternate,t,n),t=t.sibling}function Tc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&Jr(e),n!=null&&Yr(n))}function Ec(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Jr(t),e!=null&&Yr(e))}function Dc(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var a=t.sibling;Oc(e,t,n,r,a===null?i:a.actualStartTime),t=a}}function Oc(e,t,n,r,i){var a=ni(),o=ri(),s=ai(),c=oi(),l=_g,u=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&Ng)!==jg&&0<t.actualStartTime&&t.flags&1&&Vn(t,t.actualStartTime,i,kb,n),Dc(e,t,n,r,i),u&2048&&Vs(t,vy|hy);break;case 1:(t.mode&Ng)!==jg&&0<t.actualStartTime&&(t.flags&128?Hn(t,t.actualStartTime,i,[]):t.flags&1&&Vn(t,t.actualStartTime,i,kb,n)),Dc(e,t,n,r,i);break;case 3:var d=Qr(),f=kb;kb=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)==0,Dc(e,t,n,r,i),kb=f,u&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),r=t.memoizedState.cache,r!==n&&(Jr(r),n!=null&&Yr(n))),e.passiveEffectDuration+=$r(d);break;case 12:if(u&2048){u=Qr(),Dc(e,t,n,r,i),e=t.stateNode,e.passiveEffectDuration+=ei(u);try{R(t,Zs,t,t.alternate,v_,e.passiveEffectDuration)}catch(e){wl(t,t.return,e)}}else Dc(e,t,n,r,i);break;case 31:u=kb,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d!==null&&f===null?(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(kb=!1,d=d.hydrationErrors,d!==null&&Hn(t,t.actualStartTime,i,d)):kb=!0):kb=!1,Dc(e,t,n,r,i),kb=u;break;case 13:u=kb,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d===null||d.dehydrated===null||f!==null&&f.dehydrated!==null?kb=!1:(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(kb=!1,d=d.hydrationErrors,d!==null&&Hn(t,t.actualStartTime,i,d)):kb=!0),Dc(e,t,n,r,i),kb=u;break;case 23:break;case 22:f=t.stateNode,d=t.alternate,t.memoizedState===null?f._visibility&wg?Dc(e,t,n,r,i):(f._visibility|=wg,kc(e,t,n,r,(t.subtreeFlags&10256)!=0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),i),(t.mode&Ng)===jg||kb||(e=t.actualStartTime,0<=e&&.05<i-e&&Bn(t,e,i),0<=w_&&0<=T_&&.05<T_-w_&&Bn(t,w_,T_))):f._visibility&wg?Dc(e,t,n,r,i):jc(e,t,n,r,i),u&2048&&Tc(d,t);break;case 24:Dc(e,t,n,r,i),u&2048&&Ec(t.alternate,t);break;default:Dc(e,t,n,r,i)}(t.mode&Ng)!==jg&&((e=!kb&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(n=t.actualStartTime,0<=n&&.05<i-n&&zn(t,n,i,`Mount`)),0<=w_&&0<=T_&&((D_||.05<C_)&&Un(t,w_,T_,C_,E_),e&&.05<T_-w_&&zn(t,w_,T_,`Mount`))),G(a),ii(o),E_=s,D_=c,_g=l}function kc(e,t,n,r,i,a){for(i&&=(t.subtreeFlags&10256)!=0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),t=t.child;t!==null;){var o=t.sibling;Ac(e,t,n,r,i,o===null?a:o.actualStartTime),t=o}}function Ac(e,t,n,r,i,a){var o=ni(),s=ri(),c=ai(),l=oi(),u=_g;i&&(t.mode&Ng)!==jg&&0<t.actualStartTime&&t.flags&1&&Vn(t,t.actualStartTime,a,kb,n);var d=t.flags;switch(t.tag){case 0:case 11:case 15:kc(e,t,n,r,i,a),Vs(t,vy);break;case 23:break;case 22:var f=t.stateNode;t.memoizedState===null?(f._visibility|=wg,kc(e,t,n,r,i,a)):f._visibility&wg?kc(e,t,n,r,i,a):jc(e,t,n,r,a),i&&d&2048&&Tc(t.alternate,t);break;case 24:kc(e,t,n,r,i,a),i&&d&2048&&Ec(t.alternate,t);break;default:kc(e,t,n,r,i,a)}(t.mode&Ng)!==jg&&0<=w_&&0<=T_&&(D_||.05<C_)&&Un(t,w_,T_,C_,E_),G(o),ii(s),E_=c,D_=l,_g=u}function jc(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var a=t.child;a!==null;){t=a.sibling;var o=e,s=n,c=r,l=t===null?i:t.actualStartTime,u=_g;(a.mode&Ng)!==jg&&0<a.actualStartTime&&a.flags&1&&Vn(a,a.actualStartTime,l,kb,s);var d=a.flags;switch(a.tag){case 22:jc(o,a,s,c,l),d&2048&&Tc(a.alternate,a);break;case 24:jc(o,a,s,c,l),d&2048&&Ec(a.alternate,a);break;default:jc(o,a,s,c,l)}_g=u,a=t}}function Mc(e,t,n){if(e.subtreeFlags&Ab)for(e=e.child;e!==null;)Nc(e,t,n),e=e.sibling}function Nc(e,t,n){switch(e.tag){case 26:Mc(e,t,n),e.flags&Ab&&e.memoizedState!==null&&Ld(n,Ob,e.memoizedState,e.memoizedProps);break;case 5:Mc(e,t,n);break;case 3:case 4:var r=Ob;Ob=yd(e.stateNode.containerInfo),Mc(e,t,n),Ob=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ab,Ab=16777216,Mc(e,t,n),Ab=r):Mc(e,t,n));break;default:Mc(e,t,n)}}function Pc(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Fc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=ni();Cb=r,zc(r,e),(r.mode&Ng)!==jg&&0<=w_&&0<=T_&&.05<T_-w_&&zn(r,w_,T_,`Unmount`),G(i)}Pc(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ic(e),e=e.sibling}function Ic(e){var t=ni(),n=ri(),r=ai(),i=oi();switch(e.tag){case 0:case 11:case 15:Fc(e),e.flags&2048&&Hs(e,e.return,vy|hy);break;case 3:var a=Qr();Fc(e),e.stateNode.passiveEffectDuration+=$r(a);break;case 12:a=Qr(),Fc(e),e.stateNode.passiveEffectDuration+=ei(a);break;case 22:a=e.stateNode,e.memoizedState!==null&&a._visibility&wg&&(e.return===null||e.return.tag!==13)?(a._visibility&=~wg,Lc(e),(e.mode&Ng)!==jg&&0<=w_&&0<=T_&&.05<T_-w_&&zn(e,w_,T_,`Disconnect`)):Fc(e);break;default:Fc(e)}(e.mode&Ng)!==jg&&0<=w_&&0<=T_&&(D_||.05<C_)&&Un(e,w_,T_,C_,E_),G(t),ii(n),D_=i,E_=r}function Lc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=ni();Cb=r,zc(r,e),(r.mode&Ng)!==jg&&0<=w_&&0<=T_&&.05<T_-w_&&zn(r,w_,T_,`Unmount`),G(i)}Pc(e)}for(e=e.child;e!==null;)Rc(e),e=e.sibling}function Rc(e){var t=ni(),n=ri(),r=ai(),i=oi();switch(e.tag){case 0:case 11:case 15:Hs(e,e.return,vy),Lc(e);break;case 22:var a=e.stateNode;a._visibility&wg&&(a._visibility&=~wg,Lc(e));break;default:Lc(e)}(e.mode&Ng)!==jg&&0<=w_&&0<=T_&&(D_||.05<C_)&&Un(e,w_,T_,C_,E_),G(t),ii(n),D_=i,E_=r}function zc(e,t){for(;Cb!==null;){var n=Cb,r=n,i=t,a=ni(),o=ri(),s=ai(),c=oi();switch(r.tag){case 0:case 11:case 15:Hs(r,i,vy);break;case 23:case 22:r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool,i!=null&&Jr(i));break;case 24:Yr(r.memoizedState.cache)}if((r.mode&Ng)!==jg&&0<=w_&&0<=T_&&(D_||.05<C_)&&Un(r,w_,T_,C_,E_),G(a),ii(o),D_=c,E_=s,r=n.child,r!==null)r.return=n,Cb=r;else a:for(n=e;Cb!==null;){if(r=Cb,a=r.sibling,o=r.return,lc(r),r===n){Cb=null;break a}if(a!==null){a.return=o,Cb=a;break a}Cb=o}}}function Bc(){Nb.forEach(function(e){return e()})}function Vc(){var e=typeof IS_REACT_ACT_ENVIRONMENT<`u`?IS_REACT_ACT_ENVIRONMENT:void 0;return e||Y.actQueue===null||console.error(`The current testing environment is not configured to support act(...)`),e}function Hc(e){if((Gb&Ib)!==Fb&&Jb!==0)return Jb&-Jb;var t=Y.T;return t===null?Ie():(t._updatedFibers||=new Set,t._updatedFibers.add(e),Kl())}function Uc(){if(hx===0)if(!(Jb&536870912)||Zg){var e=jp;jp<<=1,!(jp&3932160)&&(jp=262144),hx=e}else hx=536870912;return e=ly.current,e!==null&&(e.flags|=32),hx}function Wc(e,t,n){if(rS&&console.error(`useInsertionEffect must not schedule updates.`),Qx&&($x=!0),(e===Kb&&(ax===Zb||ax===ix)||e.cancelPendingCommit!==null)&&(Qc(e,0),Jc(e,Jb,hx,!1)),De(e,n),(Gb&Ib)!==Fb&&e===Kb){if(cp)switch(t.tag){case 0:case 11:case 15:e=qb&&A(qb)||`Unknown`,oS.has(e)||(oS.add(e),t=A(t)||`Unknown`,console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:aS||=(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),!0)}}else Ep&&Ne(e,t,n),Il(t),e===Kb&&((Gb&Ib)===Fb&&(px|=n),dx===Hb&&Jc(e,Jb,hx,!1)),Ll(e)}function Gc(e,t,n){if((Gb&(Ib|Lb))!==Fb)throw Error(`Should not already be working.`);if(Jb!==0&&qb!==null){var r=qb,i=mp();switch($_){case Qb:case Zb:var a=ev;pg&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Suspended`,a,i,mg,void 0,`primary-light`)):console.timeStamp(`Suspended`,a,i,mg,void 0,`primary-light`));break;case ix:a=ev,pg&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Action`,a,i,mg,void 0,`primary-light`)):console.timeStamp(`Action`,a,i,mg,void 0,`primary-light`));break;default:pg&&(r=i-ev,3>r||console.timeStamp(`Blocked`,ev,i,mg,void 0,5>r?`primary-light`:10>r?`primary`:100>r?`primary-dark`:`error`))}}a=(n=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Ce(e,t))?sl(e,t):al(e,t,!0);var o=n;do{if(a===Rb){cx&&!n&&Jc(e,t,0,!1),t=ax,ev=p_(),$_=t;break}else{if(r=mp(),i=e.current.alternate,o&&!qc(i)){Rn(t),i=__,a=r,!pg||a<=i||(Ex?Ex.run(console.timeStamp.bind(console,`Teared Render`,i,a,gg,hg,`error`)):console.timeStamp(`Teared Render`,i,a,gg,hg,`error`)),Zc(t,r),a=al(e,t,!1),o=!1;continue}if(a===Bb){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){Rn(t),Jn(__,r,t,Ex),Zc(t,r),t=s;a:{r=e,a=o,o=_x;var c=r.current.memoizedState.isDehydrated;if(c&&(Qc(r,s).flags|=256),s=al(r,s,!1),s!==Bb){if(lx&&!c){r.errorRecoveryDisabledLanes|=a,px|=a,a=Hb;break a}r=vx,vx=o,r!==null&&(vx===null?vx=r:vx.push.apply(vx,r))}a=s}if(o=!1,a!==Bb)continue;r=mp()}}if(a===zb){Rn(t),Jn(__,r,t,Ex),Zc(t,r),Qc(e,0),Jc(e,t,0,!0);break}a:{switch(n=e,a){case Rb:case zb:throw Error(`Root did not complete. This is a bug in React.`);case Hb:if((t&4194048)!==t)break;case Ub:Rn(t),Gn(__,r,t,Ex),Zc(t,r),i=t,i&127?L_=r:i&4194048&&(J_=r),Jc(n,t,hx,!sx);break a;case Bb:vx=null;break;case Vb:case Wb:break;default:throw Error(`Unknown root exit status.`)}if(Y.actQueue!==null)hl(n,i,t,vx,Tx,yx,hx,px,gx,a,null,null,__,r);else{if((t&62914560)===t&&(o=bx+Sx-mp(),10<o)){if(Jc(n,t,hx,!sx),Se(n,0,!0)!==0)break a;Vx=t,n.timeoutHandle=tC(Kc.bind(null,n,i,vx,Tx,yx,t,hx,px,gx,sx,a,`Throttled`,__,r),o);break a}Kc(n,i,vx,Tx,yx,t,hx,px,gx,sx,a,null,__,r)}}}break}while(1);Ll(e)}function Kc(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=rC;var m=t.subtreeFlags,h=null;if((m&8192||(m&16785408)==16785408)&&(h={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Jt},Nc(t,a,h),m=(a&62914560)===a?bx-mp():(a&4194048)===a?xx-mp():0,m=Rd(h,m),m!==null)){Vx=a,e.cancelPendingCommit=m(hl.bind(null,e,t,a,n,r,i,o,s,c,u,h,h.waitingForViewTransition?`Waiting for the previous Animation`:0<h.count?0<h.imgCount?`Suspended on CSS and Images`:`Suspended on CSS`:h.imgCount===1?`Suspended on an Image`:0<h.imgCount?`Suspended on Images`:null,f,p)),Jc(e,a,o,!l);return}hl(e,t,a,n,r,i,o,s,c,u,h,d,f,p)}function qc(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Ih(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Jc(e,t,n,r){t&=~mx,t&=~px,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Dp(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&ke(e,n,t)}function Yc(){return(Gb&(Ib|Lb))===Fb?(Rl(0,!1),!1):!0}function Xc(){if(qb!==null){if(ax===Yb)var e=qb.return;else e=qb,Lr(),ma(e),Uv=null,Wv=0,e=qb;for(;e!==null;)Fs(e.alternate,e),e=e.return;qb=null}}function Zc(e,t){e&127&&(O_=t),e&4194048&&(R_=t),e&62914560&&(Y_=t),e&2080374784&&(X_=t)}function Qc(e,t){pg&&(console.timeStamp(`Blocking Track`,.003,.003,`Blocking`,hg,`primary-light`),console.timeStamp(`Transition Track`,.003,.003,`Transition`,hg,`primary-light`),console.timeStamp(`Suspense Track`,.003,.003,`Suspense`,hg,`primary-light`),console.timeStamp(`Idle Track`,.003,.003,`Idle`,hg,`primary-light`));var n=__;if(__=p_(),Jb!==0&&0<n){if(Rn(Jb),dx===Vb||dx===Hb)Gn(n,__,t,Ex);else{var r=__,i=Ex;if(pg&&!(r<=n)){var a=(t&738197653)===t?`tertiary-dark`:`primary-dark`,o=(t&536870912)===t?`Prewarm`:(t&201326741)===t?`Interrupted Hydration`:`Interrupted Render`;i?i.run(console.timeStamp.bind(console,o,n,r,gg,hg,a)):console.timeStamp(o,n,r,gg,hg,a)}}Zc(Jb,__)}if(n=Ex,Ex=null,t&127){Ex=A_,i=0<=k_&&k_<O_?O_:k_,r=0<=P_&&P_<O_?O_:P_,a=0<=r?r:0<=i?i:__,0<=L_?(Rn(2),Kn(L_,a,t,n)):Z_&127&&(Rn(2),Zn(O_,a,Q_)),n=i;var s=r,c=F_,l=0<I_,u=j_===h_,d=j_===g_;if(i=__,r=A_,a=M_,o=N_,pg){if(gg=`Blocking`,0<n?n>i&&(n=i):n=i,0<s?s>n&&(s=n):s=n,c!==null&&n>s){var f=l?`secondary-light`:`warning`;r?r.run(console.timeStamp.bind(console,l?`Consecutive`:`Event: `+c,s,n,gg,hg,f)):console.timeStamp(l?`Consecutive`:`Event: `+c,s,n,gg,hg,f)}i>n&&(s=u?`error`:(t&738197653)===t?`tertiary-light`:`primary-light`,u=d?`Promise Resolved`:u?`Cascading Update`:5<i-n?`Update Blocked`:`Update`,d=[],o!=null&&d.push([`Component name`,o]),a!=null&&d.push([`Method name`,a]),n={start:n,end:i,detail:{devtools:{properties:d,track:gg,trackGroup:hg,color:s}}},r?r.run(performance.measure.bind(performance,u,n)):performance.measure(u,n))}k_=-1.1,j_=0,N_=M_=null,L_=-1.1,I_=P_,P_=-1.1,O_=p_()}if(t&4194048&&(Ex=H_,i=0<=z_&&z_<R_?R_:z_,n=0<=B_&&B_<R_?R_:B_,r=0<=G_&&G_<R_?R_:G_,a=0<=r?r:0<=n?n:__,0<=J_?(Rn(256),Kn(J_,a,t,Ex)):Z_&4194048&&(Rn(256),Zn(R_,a,Q_)),d=r,s=K_,c=0<q_,l=V_===g_,a=__,r=H_,o=U_,u=W_,pg&&(gg=`Transition`,0<n?n>a&&(n=a):n=a,0<i?i>n&&(i=n):i=n,0<d?d>i&&(d=i):d=i,i>d&&s!==null&&(f=c?`secondary-light`:`warning`,r?r.run(console.timeStamp.bind(console,c?`Consecutive`:`Event: `+s,d,i,gg,hg,f)):console.timeStamp(c?`Consecutive`:`Event: `+s,d,i,gg,hg,f)),n>i&&(r?r.run(console.timeStamp.bind(console,`Action`,i,n,gg,hg,`primary-dark`)):console.timeStamp(`Action`,i,n,gg,hg,`primary-dark`)),a>n&&(i=l?`Promise Resolved`:5<a-n?`Update Blocked`:`Update`,d=[],u!=null&&d.push([`Component name`,u]),o!=null&&d.push([`Method name`,o]),n={start:n,end:a,detail:{devtools:{properties:d,track:gg,trackGroup:hg,color:`primary-light`}}},r?r.run(performance.measure.bind(performance,i,n)):performance.measure(i,n))),B_=z_=-1.1,V_=0,J_=-1.1,q_=G_,G_=-1.1,R_=p_()),t&62914560&&Z_&62914560&&(Rn(4194304),Zn(Y_,__,Q_)),t&2080374784&&Z_&2080374784&&(Rn(268435456),Zn(X_,__,Q_)),n=e.timeoutHandle,n!==rC&&(e.timeoutHandle=rC,nC(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Vx=0,Xc(),Kb=e,qb=n=dr(e.current,null),Jb=t,ax=Yb,ox=null,sx=!1,cx=Ce(e,t),lx=!1,dx=Rb,gx=hx=mx=px=fx=0,vx=_x=null,yx=!1,t&8&&(t|=t&32),r=e.entangledLanes,r!==0)for(e=e.entanglements,r&=t;0<r;)i=31-Dp(r),a=1<<i,t|=e[i],r&=~a;return ux=t,Qn(),e=ng(),1e3<e-eg&&(Y.recentlyCreatedOwnerStacks=0,eg=e),lv.discardPendingWarnings(),n}function $c(e,t){Ty=null,Y.H=zy,Y.getCurrentStack=null,cp=!1,sp=null,t===Lv||t===zv?(t=wi(),ax=Qb):t===Rv?(t=wi(),ax=$b):ax=t===sb?rx:typeof t==`object`&&t&&typeof t.then==`function`?tx:Xb,ox=t;var n=qb;n===null?(dx=zb,Ko(e,yr(t,e.current))):n.mode&Ng&&ci(n)}function el(){var e=ly.current;return e===null?!0:(Jb&4194048)===Jb?uy===null:(Jb&62914560)===Jb||Jb&536870912?e===uy:!1}function tl(){var e=Y.H;return Y.H=zy,e===null?zy:e}function nl(){var e=Y.A;return Y.A=jb,e}function rl(e){Ex===null&&(Ex=e._debugTask==null?null:e._debugTask)}function il(){dx=Hb,sx||(Jb&4194048)!==Jb&&ly.current!==null||(cx=!0),!(fx&134217727)&&!(px&134217727)||Kb===null||Jc(Kb,Jb,hx,!1)}function al(e,t,n){var r=Gb;Gb|=Ib;var i=tl(),a=nl();if(Kb!==e||Jb!==t){if(Ep){var o=e.memoizedUpdaters;0<o.size&&(Pl(e,Jb),o.clear()),Pe(e,t)}Tx=null,Qc(e,t)}t=!1,o=dx;a:do try{if(ax!==Yb&&qb!==null){var s=qb,c=ox;switch(ax){case rx:Xc(),o=Ub;break a;case Qb:case Zb:case ix:case tx:ly.current===null&&(t=!0);var l=ax;if(ax=Yb,ox=null,fl(e,s,c,l),n&&cx){o=Rb;break a}break;default:l=ax,ax=Yb,ox=null,fl(e,s,c,l)}}ol(),o=dx;break}catch(t){$c(e,t)}while(1);return t&&e.shellSuspendCounter++,Lr(),Gb=r,Y.H=i,Y.A=a,qb===null&&(Kb=null,Jb=0,Qn()),o}function ol(){for(;qb!==null;)ll(qb)}function sl(e,t){var n=Gb;Gb|=Ib;var r=tl(),i=nl();if(Kb!==e||Jb!==t){if(Ep){var a=e.memoizedUpdaters;0<a.size&&(Pl(e,Jb),a.clear()),Pe(e,t)}Tx=null,Cx=mp()+wx,Qc(e,t)}else cx=Ce(e,t);a:do try{if(ax!==Yb&&qb!==null)b:switch(t=qb,a=ox,ax){case Xb:ax=Yb,ox=null,fl(e,t,a,Xb);break;case Zb:case ix:if(xi(a)){ax=Yb,ox=null,ul(t);break}t=function(){ax!==Zb&&ax!==ix||Kb!==e||(ax=nx),Ll(e)},a.then(t,t);break a;case Qb:ax=nx;break a;case $b:ax=ex;break a;case nx:xi(a)?(ax=Yb,ox=null,ul(t)):(ax=Yb,ox=null,fl(e,t,a,nx));break;case ex:var o=null;switch(qb.tag){case 26:o=qb.memoizedState;case 5:case 27:var s=qb;if(o?Id(o):s.stateNode.complete){ax=Yb,ox=null;var c=s.sibling;if(c!==null)qb=c;else{var l=s.return;l===null?qb=null:(qb=l,pl(l))}break b}break;default:console.error(`Unexpected type of fiber triggered a suspensey commit. This is a bug in React.`)}ax=Yb,ox=null,fl(e,t,a,ex);break;case tx:ax=Yb,ox=null,fl(e,t,a,tx);break;case rx:Xc(),dx=Ub;break a;default:throw Error(`Unexpected SuspendedReason. This is a bug in React.`)}Y.actQueue===null?cl():ol();break}catch(t){$c(e,t)}while(1);return Lr(),Y.H=r,Y.A=i,Gb=n,qb===null?(Kb=null,Jb=0,Qn(),dx):Rb}function cl(){for(;qb!==null&&!fp();)ll(qb)}function ll(e){var t=e.alternate;(e.mode&Ng)===jg?t=R(e,Es,t,e,ux):(si(e),t=R(e,Es,t,e,ux),ci(e)),e.memoizedProps=e.pendingProps,t===null?pl(e):qb=t}function ul(e){var t=R(e,dl,e);e.memoizedProps=e.pendingProps,t===null?pl(e):qb=t}function dl(e){var t=e.alternate,n=(e.mode&Ng)!==jg;switch(n&&si(e),e.tag){case 15:case 0:t=us(t,e,e.pendingProps,e.type,void 0,Jb);break;case 11:t=us(t,e,e.pendingProps,e.type.render,e.ref,Jb);break;case 5:ma(e);default:Fs(t,e),e=qb=fr(e,ux),t=Es(t,e,ux)}return n&&ci(e),t}function fl(e,t,n,r){Lr(),ma(t),Uv=null,Wv=0;var i=t.return;try{if(Zo(e,i,t,n,Jb)){dx=zb,Ko(e,yr(n,e.current)),qb=null;return}}catch(t){if(i!==null)throw qb=i,t;dx=zb,Ko(e,yr(n,e.current)),qb=null;return}t.flags&32768?(Zg||r===Xb?e=!0:cx||Jb&536870912?e=!1:(sx=e=!0,(r===Zb||r===ix||r===Qb||r===tx)&&(r=ly.current,r!==null&&r.tag===13&&(r.flags|=16384))),ml(t,e)):pl(t)}function pl(e){var t=e;do{if(t.flags&32768){ml(t,sx);return}var n=t.alternate;if(e=t.return,si(t),n=R(t,Ns,n,t,ux),(t.mode&Ng)!==jg&&li(t),n!==null){qb=n;return}if(t=t.sibling,t!==null){qb=t;return}qb=t=e}while(t!==null);dx===Rb&&(dx=Wb)}function ml(e,t){do{var n=Ps(e.alternate,e);if(n!==null){n.flags&=32767,qb=n;return}if((e.mode&Ng)!==jg){li(e),n=e.actualDuration;for(var r=e.child;r!==null;)n+=r.actualDuration,r=r.sibling;e.actualDuration=n}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){qb=e;return}qb=e=n}while(e!==null);dx=Ub,qb=null}function hl(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.cancelPendingCommit=null;do xl();while(Rx!==Mx);if(lv.flushLegacyContextWarning(),lv.flushPendingUnsafeLifecycleWarnings(),(Gb&(Ib|Lb))!==Fb)throw Error(`Should not already be working.`);if(Rn(n),l===Bb?Jn(f,p,n,Ex):r===null?Wn(f,p,n,Ex):qn(f,p,n,r,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!=0,Ex),t!==null){if(n===0&&console.error(`finishedLanes should not be empty during a commit. This is a bug in React.`),t===e.current)throw Error(`Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.`);if(a=t.lanes|t.childLanes,a|=Dg,Oe(e,n,a,o,s,c),e===Kb&&(qb=Kb=null,Jb=0),Bx=t,zx=e,Vx=n,Hx=a,Wx=i,Gx=r,Ux=p,Kx=d,qx=Ox,Jx=null,t.actualDuration!==0||t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Fl(vp,function(){return eC=window.event,qx===Ox&&(qx=Ax),Sl(),null})):(e.callbackNode=null,e.callbackPriority=0),b_=null,v_=p_(),d!==null&&Yn(p,v_,d,Ex),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=Y.T,Y.T=null,i=Bf.p,Bf.p=Np,o=Gb,Gb|=Lb;try{sc(e,t,n)}finally{Gb=o,Bf.p=i,Y.T=r}}Rx=Nx,gl(),_l(),vl()}}function gl(){if(Rx===Nx){Rx=Mx;var e=zx,t=Bx,n=Vx,r=(t.flags&13878)!=0;if(t.subtreeFlags&13878||r){r=Y.T,Y.T=null;var i=Bf.p;Bf.p=Np;var a=Gb;Gb|=Lb;try{wb=n,Tb=e,ti(),_c(t,e),Tb=wb=null,n=ZS;var o=On(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Dn(s.ownerDocument.documentElement,s)){if(c!==null&&kn(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=En(s,h),v=En(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}BC=!!XS,ZS=XS=null}finally{Gb=a,Bf.p=i,Y.T=r}}e.current=t,Rx=Px}}function _l(){if(Rx===Px){Rx=Mx;var e=Jx;if(e!==null){v_=p_();var t=y_,n=v_;!pg||n<=t||(Q_?Q_.run(console.timeStamp.bind(console,e,t,n,gg,hg,`secondary-light`)):console.timeStamp(e,t,n,gg,hg,`secondary-light`))}e=zx,t=Bx,n=Vx;var r=(t.flags&8772)!=0;if(t.subtreeFlags&8772||r){r=Y.T,Y.T=null;var i=Bf.p;Bf.p=Np;var a=Gb;Gb|=Lb;try{wb=n,Tb=e,ti(),cc(e,t.alternate,t),Tb=wb=null}finally{Gb=a,Bf.p=i,Y.T=r}}e=Ux,t=Kx,y_=p_(),e=t===null?e:v_,t=y_,n=qx===kx,r=Ex,b_===null?!pg||t<=e||(r?r.run(console.timeStamp.bind(console,n?`Commit Interrupted View Transition`:`Commit`,e,t,gg,hg,n?`error`:`secondary-dark`)):console.timeStamp(n?`Commit Interrupted View Transition`:`Commit`,e,t,gg,hg,n?`error`:`secondary-dark`)):Xn(e,t,b_,!1,r),Rx=Fx}}function vl(){if(Rx===Ix||Rx===Fx){if(Rx===Ix){var e=y_;y_=p_();var t=y_,n=qx===kx;!pg||t<=e||(Q_?Q_.run(console.timeStamp.bind(console,n?`Interrupted View Transition`:`Starting Animation`,e,t,gg,hg,n?`error`:`secondary-light`)):console.timeStamp(n?`Interrupted View Transition`:`Starting Animation`,e,t,gg,hg,n?` error`:`secondary-light`)),qx!==kx&&(qx=jx)}Rx=Mx,pp(),e=zx;var r=Bx;t=Vx,n=Gx;var i=r.actualDuration!==0||(r.subtreeFlags&10256)!=0||(r.flags&10256)!=0;i?Rx=Lx:(Rx=Mx,Bx=zx=null,bl(e,e.pendingLanes),tS=0,nS=null);var a=e.pendingLanes;if(a===0&&(Dx=null),i||Ml(e),a=Fe(t),r=r.stateNode,wp&&typeof wp.onCommitFiberRoot==`function`)try{var o=(r.current.flags&128)==128;switch(a){case Np:var s=gp;break;case Pp:s=_p;break;case Fp:s=vp;break;case Ip:s=bp;break;default:s=vp}wp.onCommitFiberRoot(Cp,r,s,o)}catch(e){Tp||(Tp=!0,console.error(`React instrumentation encountered an error: %o`,e))}if(Ep&&e.memoizedUpdaters.clear(),Bc(),n!==null){o=Y.T,s=Bf.p,Bf.p=Np,Y.T=null;try{var c=e.onRecoverableError;for(r=0;r<n.length;r++){var l=n[r],u=yl(l.stack);R(l.source,c,l.value,u)}}finally{Y.T=o,Bf.p=s}}Vx&3&&xl(),Ll(e),a=e.pendingLanes,t&261930&&a&42?(nv=!0,e===Zx?Xx++:(Xx=0,Zx=e)):Xx=0,i||Zc(t,y_),Rl(0,!1)}}function yl(e){return e={componentStack:e},Object.defineProperty(e,`digest`,{get:function(){console.error(`You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.`)}}),e}function bl(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Yr(t)))}function xl(){return gl(),_l(),vl(),Sl()}function Sl(){if(Rx!==Lx)return!1;var e=zx,t=Hx;Hx=0;var n=Fe(Vx),r=Fp===0||Fp>n?Fp:n;n=Y.T;var i=Bf.p;try{Bf.p=r,Y.T=null;var a=Wx;Wx=null,r=zx;var o=Vx;if(Rx=Mx,Bx=zx=null,Vx=0,(Gb&(Ib|Lb))!==Fb)throw Error(`Cannot flush passive effects while already rendering.`);Rn(o),Qx=!0,$x=!1;var s=0;if(b_=null,s=mp(),qx===jx)Zn(y_,s,Q_);else{var c=y_,l=s,u=qx===Ax;!pg||l<=c||(Ex?Ex.run(console.timeStamp.bind(console,u?`Waiting for Paint`:`Waiting`,c,l,gg,hg,`secondary-light`)):console.timeStamp(u?`Waiting for Paint`:`Waiting`,c,l,gg,hg,`secondary-light`))}c=Gb,Gb|=Lb;var d=r.current;ti(),Ic(d);var f=r.current;d=Ux,ti(),Oc(r,f,o,a,d),Ml(r),Gb=c;var p=mp();if(f=s,d=Ex,b_===null?!pg||p<=f||(d?d.run(console.timeStamp.bind(console,`Remaining Effects`,f,p,gg,hg,`secondary-dark`)):console.timeStamp(`Remaining Effects`,f,p,gg,hg,`secondary-dark`)):Xn(f,p,b_,!0,d),Zc(o,p),Rl(0,!1),$x?r===nS?tS++:(tS=0,nS=r):tS=0,$x=Qx=!1,wp&&typeof wp.onPostCommitFiberRoot==`function`)try{wp.onPostCommitFiberRoot(Cp,r)}catch(e){Tp||(Tp=!0,console.error(`React instrumentation encountered an error: %o`,e))}var m=r.current.stateNode;return m.effectDuration=0,m.passiveEffectDuration=0,!0}finally{Bf.p=i,Y.T=n,bl(e,t)}}function Cl(e,t,n){t=yr(n,t),di(t),t=Jo(e.stateNode,t,2),e=Vi(e,t,2),e!==null&&(De(e,2),Ll(e))}function wl(e,t,n){if(rS=!1,e.tag===3)Cl(e,e,n);else{for(;t!==null;){if(t.tag===3){Cl(t,e,n);return}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Dx===null||!Dx.has(r))){e=yr(n,e),di(e),n=Yo(2),r=Vi(t,n,2),r!==null&&(Xo(n,r,t,e),De(r,2),Ll(r));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
165
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:` You returned: `+r,R(t,function(e,t){console.error(`%s must not return anything besides a function, which is used for clean-up.%s`,e,t)},a,o)}n=n.next}while(n!==i)}}catch(e){wl(t,t.return,e)}}function Bs(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;s!==void 0&&(o.destroy=void 0,(e&gy)!==my&&(rS=!0),i=t,R(i,Pv,i,n,s),(e&gy)!==my&&(rS=!1))}r=r.next}while(r!==a)}}catch(e){wl(t,t.return,e)}}function Vs(e,t){Is(e)?(fi(),zs(t,e),ui()):zs(t,e)}function Hs(e,t,n){Is(e)?(fi(),Bs(n,e,t),ui()):Bs(n,e,t)}function Us(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||`ref`in e.memoizedProps||pb||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",A(e)||`instance`),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",A(e)||`instance`));try{R(e,qi,t,n)}catch(t){wl(e,e.return,t)}}}function Ws(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function Gs(e,t){var n=t.memoizedProps,r=t.memoizedState;t=e.stateNode,e.type.defaultProps||`ref`in e.memoizedProps||pb||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",A(e)||`instance`),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",A(e)||`instance`));try{var i=Ho(e.type,n),a=R(e,Ws,t,i,r);n=vb,a!==void 0||n.has(e.type)||(n.add(e.type),R(e,function(){console.error(`%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.`,A(e))})),t.__reactInternalSnapshotBeforeUpdate=a}catch(t){wl(e,e.return,t)}}function Ks(e,t,n){n.props=Ho(e.type,e.memoizedProps),n.state=e.memoizedState,Is(e)?(fi(),R(e,Av,e,t,n),ui()):R(e,Av,e,t,n)}function qs(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}if(typeof t==`function`)if(Is(e))try{fi(),e.refCleanup=t(n)}finally{ui()}else e.refCleanup=t(n);else typeof t==`string`?console.error(`String refs are no longer supported.`):t.hasOwnProperty(`current`)||console.error(`Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().`,A(e)),t.current=n}}function Js(e,t){try{R(e,qs,e)}catch(n){wl(e,t,n)}}function Ys(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{if(Is(e))try{fi(),R(e,r)}finally{ui(e)}else R(e,r)}catch(n){wl(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{if(Is(e))try{fi(),R(e,n,null)}finally{ui(e)}else R(e,n,null)}catch(n){wl(e,t,n)}else n.current=null}function Xs(e,t,n,r){var i=e.memoizedProps,a=i.id,o=i.onCommit;i=i.onRender,t=t===null?`mount`:`update`,tv&&(t=`nested-update`),typeof i==`function`&&i(a,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof o==`function`&&o(a,t,r,n)}function Zs(e,t,n,r){var i=e.memoizedProps;e=i.id,i=i.onPostCommit,t=t===null?`mount`:`update`,tv&&(t=`nested-update`),typeof i==`function`&&i(e,t,r,n)}function Qs(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{R(e,Ru,r,t,n,e)}catch(t){wl(e,e.return,t)}}function $s(e,t,n){try{R(e,Bu,e.stateNode,e.type,n,t,e)}catch(t){wl(e,e.return,t)}}function ec(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Wu(e.type)||e.tag===4}function tc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||ec(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Wu(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function nc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(Uu(n),(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t)):(Uu(n),t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Jt));else if(r!==4&&(r===27&&Wu(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(nc(e,t,n),e=e.sibling;e!==null;)nc(e,t,n),e=e.sibling}function rc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Wu(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(rc(e,t,n),e=e.sibling;e!==null;)rc(e,t,n),e=e.sibling}function ic(e){for(var t,n=e.return;n!==null;){if(ec(n)){t=n;break}n=n.return}if(t==null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);switch(t.tag){case 27:t=t.stateNode,n=tc(e),rc(e,n,t);break;case 5:n=t.stateNode,t.flags&32&&(Vu(n),t.flags&=-33),t=tc(e),rc(e,t,n);break;case 3:case 4:t=t.stateNode.containerInfo,n=tc(e),nc(e,n,t);break;default:throw Error(`Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.`)}}function ac(e){var t=e.stateNode,n=e.memoizedProps;try{R(e,_d,e.type,n,t,e)}catch(t){wl(e,e.return,t)}}function oc(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)==0:!1}function sc(e,t){if(e=e.containerInfo,XS=BC,e=On(e),kn(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break a}var o=0,s=-1,c=-1,l=0,u=0,d=e,f=null;b:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=o+i),d!==a||r!==0&&d.nodeType!==3||(c=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break b;if(f===n&&++l===i&&(s=o),f===a&&++u===r&&(c=o),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n||={start:0,end:0}}else n=null;for(ZS={focusedElem:e,selectionRange:n},BC=!1,Cb=t;Cb!==null;)if(t=Cb,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Cb=e;else for(;Cb!==null;){switch(e=t=Cb,n=e.alternate,i=e.flags,e.tag){case 0:if(i&4&&(e=e.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:i&1024&&n!==null&&Gs(e,n);break;case 3:if(i&1024){if(e=e.stateNode.containerInfo,n=e.nodeType,n===9)td(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:td(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(i&1024)throw Error(`This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.`)}if(e=t.sibling,e!==null){e.return=t.return,Cb=e;break}Cb=t.return}}function cc(e,t,n){var r=ni(),i=ri(),a=ai(),o=oi(),s=n.flags;switch(n.tag){case 0:case 11:case 15:bc(e,n),s&4&&Ls(n,_y|hy);break;case 1:if(bc(e,n),s&4)if(e=n.stateNode,t===null)n.type.defaultProps||`ref`in n.memoizedProps||pb||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",A(n)||`instance`),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",A(n)||`instance`)),Is(n)?(fi(),R(n,wv,n,e),ui()):R(n,wv,n,e);else{var c=Ho(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||`ref`in n.memoizedProps||pb||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",A(n)||`instance`),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",A(n)||`instance`)),Is(n)?(fi(),R(n,Ev,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate),ui()):R(n,Ev,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate)}s&64&&Us(n),s&512&&Js(n,n.return);break;case 3:if(t=Qr(),bc(e,n),s&64&&(s=n.updateQueue,s!==null)){if(c=null,n.child!==null)switch(n.child.tag){case 27:case 5:c=n.child.stateNode;break;case 1:c=n.child.stateNode}try{R(n,qi,s,c)}catch(e){wl(n,n.return,e)}}e.effectDuration+=$r(t);break;case 27:t===null&&s&4&&ac(n);case 26:case 5:if(bc(e,n),t===null){if(s&4)Qs(n);else if(s&64){e=n.type,t=n.memoizedProps,c=n.stateNode;try{R(n,zu,c,e,t,n)}catch(e){wl(n,n.return,e)}}}s&512&&Js(n,n.return);break;case 12:if(s&4){s=Qr(),bc(e,n),e=n.stateNode,e.effectDuration+=ei(s);try{R(n,Xs,n,t,v_,e.effectDuration)}catch(e){wl(n,n.return,e)}}else bc(e,n);break;case 31:bc(e,n),s&4&&fc(e,n);break;case 13:bc(e,n),s&4&&pc(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=Ol.bind(null,n),sd(e,s))));break;case 22:if(s=n.memoizedState!==null||yb,!s){t=t!==null&&t.memoizedState!==null||bb,c=yb;var l=bb;yb=s,(bb=t)&&!l?(wc(e,n,(n.subtreeFlags&8772)!=0),(n.mode&Ng)!==jg&&0<=w_&&0<=T_&&.05<T_-w_&&Bn(n,w_,T_)):bc(e,n),yb=c,bb=l}break;case 30:break;default:bc(e,n)}(n.mode&Ng)!==jg&&0<=w_&&0<=T_&&((D_||.05<C_)&&Un(n,w_,T_,C_,E_),n.alternate===null&&n.return!==null&&n.return.alternate!==null&&.05<T_-w_&&(oc(n.return.alternate,n.return)||zn(n,w_,T_,`Mount`))),G(r),ii(i),E_=a,D_=o}function lc(e){var t=e.alternate;t!==null&&(e.alternate=null,lc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Re(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function uc(e,t,n){for(n=n.child;n!==null;)dc(e,t,n),n=n.sibling}function dc(e,t,n){if(wp&&typeof wp.onCommitFiberUnmount==`function`)try{wp.onCommitFiberUnmount(Cp,n)}catch(e){Tp||(Tp=!0,console.error(`React instrumentation encountered an error: %o`,e))}var r=ni(),i=ri(),a=ai(),o=oi();switch(n.tag){case 26:bb||Ys(n,t),uc(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(e=n.stateNode,e.parentNode.removeChild(e));break;case 27:bb||Ys(n,t);var s=Eb,c=Db;Wu(n.type)&&(Eb=n.stateNode,Db=!1),uc(e,t,n),R(n,vd,n.stateNode),Eb=s,Db=c;break;case 5:bb||Ys(n,t);case 6:if(s=Eb,c=Db,Eb=null,uc(e,t,n),Eb=s,Db=c,Eb!==null)if(Db)try{R(n,Ku,Eb,n.stateNode)}catch(e){wl(n,t,e)}else try{R(n,Gu,Eb,n.stateNode)}catch(e){wl(n,t,e)}break;case 18:Eb!==null&&(Db?(e=Eb,qu(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),pf(e)):qu(Eb,n.stateNode));break;case 4:s=Eb,c=Db,Eb=n.stateNode.containerInfo,Db=!0,uc(e,t,n),Eb=s,Db=c;break;case 0:case 11:case 14:case 15:Bs(gy,n,t),bb||Rs(n,t,_y),uc(e,t,n);break;case 1:bb||(Ys(n,t),s=n.stateNode,typeof s.componentWillUnmount==`function`&&Ks(n,t,s)),uc(e,t,n);break;case 21:uc(e,t,n);break;case 22:bb=(s=bb)||n.memoizedState!==null,uc(e,t,n),bb=s;break;default:uc(e,t,n)}(n.mode&Ng)!==jg&&0<=w_&&0<=T_&&(D_||.05<C_)&&Un(n,w_,T_,C_,E_),G(r),ii(i),E_=a,D_=o}function fc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{R(t,md,e)}catch(e){wl(t,t.return,e)}}}function pc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{R(t,hd,e)}catch(e){wl(t,t.return,e)}}function mc(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Sb),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Sb),t;default:throw Error(`Unexpected Suspense handler tag (`+e.tag+`). This is a bug in React.`)}}function hc(e,t){var n=mc(e);t.forEach(function(t){if(!n.has(t)){if(n.add(t),Ep)if(wb!==null&&Tb!==null)Pl(Tb,wb);else throw Error(`Expected finished root and lanes to be set. This is a bug in React.`);var r=kl.bind(null,e,t);t.then(r,r)}})}function gc(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=e,a=t,o=n[r],s=ni(),c=a;a:for(;c!==null;){switch(c.tag){case 27:if(Wu(c.type)){Eb=c.stateNode,Db=!1;break a}break;case 5:Eb=c.stateNode,Db=!1;break a;case 3:case 4:Eb=c.stateNode.containerInfo,Db=!0;break a}c=c.return}if(Eb===null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);dc(i,a,o),Eb=null,Db=!1,(o.mode&Ng)!==jg&&0<=w_&&0<=T_&&.05<T_-w_&&zn(o,w_,T_,`Unmount`),G(s),i=o,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)_c(t,e),t=t.sibling}function _c(e,t){var n=ni(),r=ri(),i=ai(),a=oi(),o=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:gc(t,e),vc(e),s&4&&(Bs(gy|hy,e,e.return),zs(gy|hy,e),Rs(e,e.return,_y|hy));break;case 1:if(gc(t,e),vc(e),s&512&&(bb||o===null||Ys(o,o.return)),s&64&&yb&&(s=e.updateQueue,s!==null&&(o=s.callbacks,o!==null))){var c=s.shared.hiddenCallbacks;s.shared.hiddenCallbacks=c===null?o:c.concat(o)}break;case 26:if(c=Ob,gc(t,e),vc(e),s&512&&(bb||o===null||Ys(o,o.return)),s&4){var l=o===null?null:o.memoizedState;if(s=e.memoizedState,o===null)if(s===null)if(e.stateNode===null){a:{s=e.type,o=e.memoizedProps,c=c.ownerDocument||c;b:switch(s){case`title`:l=c.getElementsByTagName(`title`)[0],(!l||l[Gp]||l[Rp]||l.namespaceURI===Om||l.hasAttribute(`itemprop`))&&(l=c.createElement(s),c.head.insertBefore(l,c.querySelector(`head > title`))),gu(l,s,o),l[Rp]=e,Ue(l),s=l;break a;case`link`:var u=Nd(`link`,`href`,c).get(s+(o.href||``));if(u){for(var d=0;d<u.length;d++)if(l=u[d],l.getAttribute(`href`)===(o.href==null||o.href===``?null:o.href)&&l.getAttribute(`rel`)===(o.rel==null?null:o.rel)&&l.getAttribute(`title`)===(o.title==null?null:o.title)&&l.getAttribute(`crossorigin`)===(o.crossOrigin==null?null:o.crossOrigin)){u.splice(d,1);break b}}l=c.createElement(s),gu(l,s,o),c.head.appendChild(l);break;case`meta`:if(u=Nd(`meta`,`content`,c).get(s+(o.content||``))){for(d=0;d<u.length;d++)if(l=u[d],z(o.content,`content`),l.getAttribute(`content`)===(o.content==null?null:``+o.content)&&l.getAttribute(`name`)===(o.name==null?null:o.name)&&l.getAttribute(`property`)===(o.property==null?null:o.property)&&l.getAttribute(`http-equiv`)===(o.httpEquiv==null?null:o.httpEquiv)&&l.getAttribute(`charset`)===(o.charSet==null?null:o.charSet)){u.splice(d,1);break b}}l=c.createElement(s),gu(l,s,o),c.head.appendChild(l);break;default:throw Error(`getNodesForType encountered a type it did not expect: "`+s+`". This is a bug in React.`)}l[Rp]=e,Ue(l),s=l}e.stateNode=s}else Pd(c,e.type,e.stateNode);else e.stateNode=kd(c,s,e.memoizedProps);else l===s?s===null&&e.stateNode!==null&&$s(e,e.memoizedProps,o.memoizedProps):(l===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):l.count--,s===null?Pd(c,e.type,e.stateNode):kd(c,s,e.memoizedProps))}break;case 27:gc(t,e),vc(e),s&512&&(bb||o===null||Ys(o,o.return)),o!==null&&s&4&&$s(e,e.memoizedProps,o.memoizedProps);break;case 5:if(gc(t,e),vc(e),s&512&&(bb||o===null||Ys(o,o.return)),e.flags&32){c=e.stateNode;try{R(e,Vu,c)}catch(t){wl(e,e.return,t)}}s&4&&e.stateNode!=null&&(c=e.memoizedProps,$s(e,c,o===null?c:o.memoizedProps)),s&1024&&(xb=!0,e.type!==`form`&&console.error(`Unexpected host component type. Expected a form. This is a bug in React.`));break;case 6:if(gc(t,e),vc(e),s&4){if(e.stateNode===null)throw Error(`This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.`);s=e.memoizedProps,o=o===null?s:o.memoizedProps,c=e.stateNode;try{R(e,Hu,c,o,s)}catch(t){wl(e,e.return,t)}}break;case 3:if(c=Qr(),hC=null,l=Ob,Ob=yd(t.containerInfo),gc(t,e),Ob=l,vc(e),s&4&&o!==null&&o.memoizedState.isDehydrated)try{R(e,pd,t.containerInfo)}catch(t){wl(e,e.return,t)}xb&&(xb=!1,yc(e)),t.effectDuration+=$r(c);break;case 4:s=Ob,Ob=yd(e.stateNode.containerInfo),gc(t,e),vc(e),Ob=s;break;case 12:s=Qr(),gc(t,e),vc(e),e.stateNode.effectDuration+=ei(s);break;case 31:gc(t,e),vc(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,hc(e,s)));break;case 13:gc(t,e),vc(e),e.child.flags&8192&&e.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(bx=mp()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,hc(e,s)));break;case 22:c=e.memoizedState!==null;var f=o!==null&&o.memoizedState!==null,p=yb,m=bb;if(yb=p||c,bb=m||f,gc(t,e),bb=m,yb=p,f&&!c&&!p&&!m&&(e.mode&Ng)!==jg&&0<=w_&&0<=T_&&.05<T_-w_&&Bn(e,w_,T_),vc(e),s&8192)a:for(t=e.stateNode,t._visibility=c?t._visibility&~Cg:t._visibility|Cg,!c||o===null||f||yb||bb||(Sc(e),(e.mode&Ng)!==jg&&0<=w_&&0<=T_&&.05<T_-w_&&zn(e,w_,T_,`Disconnect`)),o=null,t=e;;){if(t.tag===5||t.tag===26){if(o===null){f=o=t;try{l=f.stateNode,c?R(f,Xu,l):R(f,$u,f.stateNode,f.memoizedProps)}catch(e){wl(f,f.return,e)}}}else if(t.tag===6){if(o===null){f=t;try{u=f.stateNode,c?R(f,Zu,u):R(f,ed,u,f.memoizedProps)}catch(e){wl(f,f.return,e)}}}else if(t.tag===18){if(o===null){f=t;try{d=f.stateNode,c?R(f,Yu,d):R(f,Qu,f.stateNode)}catch(e){wl(f,f.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;o===t&&(o=null),t=t.return}o===t&&(o=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(o=s.retryQueue,o!==null&&(s.retryQueue=null,hc(e,o))));break;case 19:gc(t,e),vc(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,hc(e,s)));break;case 30:break;case 21:break;default:gc(t,e),vc(e)}(e.mode&Ng)!==jg&&0<=w_&&0<=T_&&((D_||.05<C_)&&Un(e,w_,T_,C_,E_),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<T_-w_&&(oc(e.return.alternate,e.return)||zn(e,w_,T_,`Mount`))),G(n),ii(r),E_=i,D_=a}function vc(e){var t=e.flags;if(t&2){try{R(e,ic,e)}catch(t){wl(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yc(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;yc(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function bc(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)cc(e,t.alternate,t),t=t.sibling}function xc(e){var t=ni(),n=ri(),r=ai(),i=oi();switch(e.tag){case 0:case 11:case 14:case 15:Rs(e,e.return,_y),Sc(e);break;case 1:Ys(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount==`function`&&Ks(e,e.return,a),Sc(e);break;case 27:R(e,vd,e.stateNode);case 26:case 5:Ys(e,e.return),Sc(e);break;case 22:e.memoizedState===null&&Sc(e);break;case 30:Sc(e);break;default:Sc(e)}(e.mode&Ng)!==jg&&0<=w_&&0<=T_&&(D_||.05<C_)&&Un(e,w_,T_,C_,E_),G(t),ii(n),E_=r,D_=i}function Sc(e){for(e=e.child;e!==null;)xc(e),e=e.sibling}function Cc(e,t,n,r){var i=ni(),a=ri(),o=ai(),s=oi(),c=n.flags;switch(n.tag){case 0:case 11:case 15:wc(e,n,r),Ls(n,_y);break;case 1:if(wc(e,n,r),t=n.stateNode,typeof t.componentDidMount==`function`&&R(n,wv,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{R(n,Ki,t,e)}catch(e){wl(n,n.return,e)}}r&&c&64&&Us(n),Js(n,n.return);break;case 27:ac(n);case 26:case 5:wc(e,n,r),r&&t===null&&c&4&&Qs(n),Js(n,n.return);break;case 12:if(r&&c&4){c=Qr(),wc(e,n,r),r=n.stateNode,r.effectDuration+=ei(c);try{R(n,Xs,n,t,v_,r.effectDuration)}catch(e){wl(n,n.return,e)}}else wc(e,n,r);break;case 31:wc(e,n,r),r&&c&4&&fc(e,n);break;case 13:wc(e,n,r),r&&c&4&&pc(e,n);break;case 22:n.memoizedState===null&&wc(e,n,r),Js(n,n.return);break;case 30:break;default:wc(e,n,r)}(n.mode&Ng)!==jg&&0<=w_&&0<=T_&&(D_||.05<C_)&&Un(n,w_,T_,C_,E_),G(i),ii(a),E_=o,D_=s}function wc(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;)Cc(e,t.alternate,t,n),t=t.sibling}function Tc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&Jr(e),n!=null&&Yr(n))}function Ec(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Jr(t),e!=null&&Yr(e))}function Dc(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var a=t.sibling;Oc(e,t,n,r,a===null?i:a.actualStartTime),t=a}}function Oc(e,t,n,r,i){var a=ni(),o=ri(),s=ai(),c=oi(),l=_g,u=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&Ng)!==jg&&0<t.actualStartTime&&t.flags&1&&Vn(t,t.actualStartTime,i,kb,n),Dc(e,t,n,r,i),u&2048&&Vs(t,vy|hy);break;case 1:(t.mode&Ng)!==jg&&0<t.actualStartTime&&(t.flags&128?Hn(t,t.actualStartTime,i,[]):t.flags&1&&Vn(t,t.actualStartTime,i,kb,n)),Dc(e,t,n,r,i);break;case 3:var d=Qr(),f=kb;kb=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)==0,Dc(e,t,n,r,i),kb=f,u&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),r=t.memoizedState.cache,r!==n&&(Jr(r),n!=null&&Yr(n))),e.passiveEffectDuration+=$r(d);break;case 12:if(u&2048){u=Qr(),Dc(e,t,n,r,i),e=t.stateNode,e.passiveEffectDuration+=ei(u);try{R(t,Zs,t,t.alternate,v_,e.passiveEffectDuration)}catch(e){wl(t,t.return,e)}}else Dc(e,t,n,r,i);break;case 31:u=kb,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d!==null&&f===null?(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(kb=!1,d=d.hydrationErrors,d!==null&&Hn(t,t.actualStartTime,i,d)):kb=!0):kb=!1,Dc(e,t,n,r,i),kb=u;break;case 13:u=kb,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d===null||d.dehydrated===null||f!==null&&f.dehydrated!==null?kb=!1:(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(kb=!1,d=d.hydrationErrors,d!==null&&Hn(t,t.actualStartTime,i,d)):kb=!0),Dc(e,t,n,r,i),kb=u;break;case 23:break;case 22:f=t.stateNode,d=t.alternate,t.memoizedState===null?f._visibility&wg?Dc(e,t,n,r,i):(f._visibility|=wg,kc(e,t,n,r,(t.subtreeFlags&10256)!=0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),i),(t.mode&Ng)===jg||kb||(e=t.actualStartTime,0<=e&&.05<i-e&&Bn(t,e,i),0<=w_&&0<=T_&&.05<T_-w_&&Bn(t,w_,T_))):f._visibility&wg?Dc(e,t,n,r,i):jc(e,t,n,r,i),u&2048&&Tc(d,t);break;case 24:Dc(e,t,n,r,i),u&2048&&Ec(t.alternate,t);break;default:Dc(e,t,n,r,i)}(t.mode&Ng)!==jg&&((e=!kb&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(n=t.actualStartTime,0<=n&&.05<i-n&&zn(t,n,i,`Mount`)),0<=w_&&0<=T_&&((D_||.05<C_)&&Un(t,w_,T_,C_,E_),e&&.05<T_-w_&&zn(t,w_,T_,`Mount`))),G(a),ii(o),E_=s,D_=c,_g=l}function kc(e,t,n,r,i,a){for(i&&=(t.subtreeFlags&10256)!=0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),t=t.child;t!==null;){var o=t.sibling;Ac(e,t,n,r,i,o===null?a:o.actualStartTime),t=o}}function Ac(e,t,n,r,i,a){var o=ni(),s=ri(),c=ai(),l=oi(),u=_g;i&&(t.mode&Ng)!==jg&&0<t.actualStartTime&&t.flags&1&&Vn(t,t.actualStartTime,a,kb,n);var d=t.flags;switch(t.tag){case 0:case 11:case 15:kc(e,t,n,r,i,a),Vs(t,vy);break;case 23:break;case 22:var f=t.stateNode;t.memoizedState===null?(f._visibility|=wg,kc(e,t,n,r,i,a)):f._visibility&wg?kc(e,t,n,r,i,a):jc(e,t,n,r,a),i&&d&2048&&Tc(t.alternate,t);break;case 24:kc(e,t,n,r,i,a),i&&d&2048&&Ec(t.alternate,t);break;default:kc(e,t,n,r,i,a)}(t.mode&Ng)!==jg&&0<=w_&&0<=T_&&(D_||.05<C_)&&Un(t,w_,T_,C_,E_),G(o),ii(s),E_=c,D_=l,_g=u}function jc(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var a=t.child;a!==null;){t=a.sibling;var o=e,s=n,c=r,l=t===null?i:t.actualStartTime,u=_g;(a.mode&Ng)!==jg&&0<a.actualStartTime&&a.flags&1&&Vn(a,a.actualStartTime,l,kb,s);var d=a.flags;switch(a.tag){case 22:jc(o,a,s,c,l),d&2048&&Tc(a.alternate,a);break;case 24:jc(o,a,s,c,l),d&2048&&Ec(a.alternate,a);break;default:jc(o,a,s,c,l)}_g=u,a=t}}function Mc(e,t,n){if(e.subtreeFlags&Ab)for(e=e.child;e!==null;)Nc(e,t,n),e=e.sibling}function Nc(e,t,n){switch(e.tag){case 26:Mc(e,t,n),e.flags&Ab&&e.memoizedState!==null&&Ld(n,Ob,e.memoizedState,e.memoizedProps);break;case 5:Mc(e,t,n);break;case 3:case 4:var r=Ob;Ob=yd(e.stateNode.containerInfo),Mc(e,t,n),Ob=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ab,Ab=16777216,Mc(e,t,n),Ab=r):Mc(e,t,n));break;default:Mc(e,t,n)}}function Pc(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Fc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=ni();Cb=r,zc(r,e),(r.mode&Ng)!==jg&&0<=w_&&0<=T_&&.05<T_-w_&&zn(r,w_,T_,`Unmount`),G(i)}Pc(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ic(e),e=e.sibling}function Ic(e){var t=ni(),n=ri(),r=ai(),i=oi();switch(e.tag){case 0:case 11:case 15:Fc(e),e.flags&2048&&Hs(e,e.return,vy|hy);break;case 3:var a=Qr();Fc(e),e.stateNode.passiveEffectDuration+=$r(a);break;case 12:a=Qr(),Fc(e),e.stateNode.passiveEffectDuration+=ei(a);break;case 22:a=e.stateNode,e.memoizedState!==null&&a._visibility&wg&&(e.return===null||e.return.tag!==13)?(a._visibility&=~wg,Lc(e),(e.mode&Ng)!==jg&&0<=w_&&0<=T_&&.05<T_-w_&&zn(e,w_,T_,`Disconnect`)):Fc(e);break;default:Fc(e)}(e.mode&Ng)!==jg&&0<=w_&&0<=T_&&(D_||.05<C_)&&Un(e,w_,T_,C_,E_),G(t),ii(n),D_=i,E_=r}function Lc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=ni();Cb=r,zc(r,e),(r.mode&Ng)!==jg&&0<=w_&&0<=T_&&.05<T_-w_&&zn(r,w_,T_,`Unmount`),G(i)}Pc(e)}for(e=e.child;e!==null;)Rc(e),e=e.sibling}function Rc(e){var t=ni(),n=ri(),r=ai(),i=oi();switch(e.tag){case 0:case 11:case 15:Hs(e,e.return,vy),Lc(e);break;case 22:var a=e.stateNode;a._visibility&wg&&(a._visibility&=~wg,Lc(e));break;default:Lc(e)}(e.mode&Ng)!==jg&&0<=w_&&0<=T_&&(D_||.05<C_)&&Un(e,w_,T_,C_,E_),G(t),ii(n),D_=i,E_=r}function zc(e,t){for(;Cb!==null;){var n=Cb,r=n,i=t,a=ni(),o=ri(),s=ai(),c=oi();switch(r.tag){case 0:case 11:case 15:Hs(r,i,vy);break;case 23:case 22:r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool,i!=null&&Jr(i));break;case 24:Yr(r.memoizedState.cache)}if((r.mode&Ng)!==jg&&0<=w_&&0<=T_&&(D_||.05<C_)&&Un(r,w_,T_,C_,E_),G(a),ii(o),D_=c,E_=s,r=n.child,r!==null)r.return=n,Cb=r;else a:for(n=e;Cb!==null;){if(r=Cb,a=r.sibling,o=r.return,lc(r),r===n){Cb=null;break a}if(a!==null){a.return=o,Cb=a;break a}Cb=o}}}function Bc(){Nb.forEach(function(e){return e()})}function Vc(){var e=typeof IS_REACT_ACT_ENVIRONMENT<`u`?IS_REACT_ACT_ENVIRONMENT:void 0;return e||Y.actQueue===null||console.error(`The current testing environment is not configured to support act(...)`),e}function Hc(e){if((Gb&Ib)!==Fb&&Jb!==0)return Jb&-Jb;var t=Y.T;return t===null?Ie():(t._updatedFibers||=new Set,t._updatedFibers.add(e),Kl())}function Uc(){if(hx===0)if(!(Jb&536870912)||Zg){var e=jp;jp<<=1,!(jp&3932160)&&(jp=262144),hx=e}else hx=536870912;return e=ly.current,e!==null&&(e.flags|=32),hx}function Wc(e,t,n){if(rS&&console.error(`useInsertionEffect must not schedule updates.`),Qx&&($x=!0),(e===Kb&&(ax===Zb||ax===ix)||e.cancelPendingCommit!==null)&&(Qc(e,0),Jc(e,Jb,hx,!1)),De(e,n),(Gb&Ib)!==Fb&&e===Kb){if(cp)switch(t.tag){case 0:case 11:case 15:e=qb&&A(qb)||`Unknown`,oS.has(e)||(oS.add(e),t=A(t)||`Unknown`,console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:aS||=(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),!0)}}else Ep&&Ne(e,t,n),Il(t),e===Kb&&((Gb&Ib)===Fb&&(px|=n),dx===Hb&&Jc(e,Jb,hx,!1)),Ll(e)}function Gc(e,t,n){if((Gb&(Ib|Lb))!==Fb)throw Error(`Should not already be working.`);if(Jb!==0&&qb!==null){var r=qb,i=mp();switch($_){case Qb:case Zb:var a=ev;pg&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Suspended`,a,i,mg,void 0,`primary-light`)):console.timeStamp(`Suspended`,a,i,mg,void 0,`primary-light`));break;case ix:a=ev,pg&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Action`,a,i,mg,void 0,`primary-light`)):console.timeStamp(`Action`,a,i,mg,void 0,`primary-light`));break;default:pg&&(r=i-ev,3>r||console.timeStamp(`Blocked`,ev,i,mg,void 0,5>r?`primary-light`:10>r?`primary`:100>r?`primary-dark`:`error`))}}a=(n=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Ce(e,t))?sl(e,t):al(e,t,!0);var o=n;do{if(a===Rb){cx&&!n&&Jc(e,t,0,!1),t=ax,ev=p_(),$_=t;break}else{if(r=mp(),i=e.current.alternate,o&&!qc(i)){Rn(t),i=__,a=r,!pg||a<=i||(Ex?Ex.run(console.timeStamp.bind(console,`Teared Render`,i,a,gg,hg,`error`)):console.timeStamp(`Teared Render`,i,a,gg,hg,`error`)),Zc(t,r),a=al(e,t,!1),o=!1;continue}if(a===Bb){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){Rn(t),Jn(__,r,t,Ex),Zc(t,r),t=s;a:{r=e,a=o,o=_x;var c=r.current.memoizedState.isDehydrated;if(c&&(Qc(r,s).flags|=256),s=al(r,s,!1),s!==Bb){if(lx&&!c){r.errorRecoveryDisabledLanes|=a,px|=a,a=Hb;break a}r=vx,vx=o,r!==null&&(vx===null?vx=r:vx.push.apply(vx,r))}a=s}if(o=!1,a!==Bb)continue;r=mp()}}if(a===zb){Rn(t),Jn(__,r,t,Ex),Zc(t,r),Qc(e,0),Jc(e,t,0,!0);break}a:{switch(n=e,a){case Rb:case zb:throw Error(`Root did not complete. This is a bug in React.`);case Hb:if((t&4194048)!==t)break;case Ub:Rn(t),Gn(__,r,t,Ex),Zc(t,r),i=t,i&127?L_=r:i&4194048&&(J_=r),Jc(n,t,hx,!sx);break a;case Bb:vx=null;break;case Vb:case Wb:break;default:throw Error(`Unknown root exit status.`)}if(Y.actQueue!==null)hl(n,i,t,vx,Tx,yx,hx,px,gx,a,null,null,__,r);else{if((t&62914560)===t&&(o=bx+Sx-mp(),10<o)){if(Jc(n,t,hx,!sx),Se(n,0,!0)!==0)break a;Vx=t,n.timeoutHandle=tC(Kc.bind(null,n,i,vx,Tx,yx,t,hx,px,gx,sx,a,`Throttled`,__,r),o);break a}Kc(n,i,vx,Tx,yx,t,hx,px,gx,sx,a,null,__,r)}}}break}while(1);Ll(e)}function Kc(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=rC;var m=t.subtreeFlags,h=null;if((m&8192||(m&16785408)==16785408)&&(h={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Jt},Nc(t,a,h),m=(a&62914560)===a?bx-mp():(a&4194048)===a?xx-mp():0,m=Rd(h,m),m!==null)){Vx=a,e.cancelPendingCommit=m(hl.bind(null,e,t,a,n,r,i,o,s,c,u,h,h.waitingForViewTransition?`Waiting for the previous Animation`:0<h.count?0<h.imgCount?`Suspended on CSS and Images`:`Suspended on CSS`:h.imgCount===1?`Suspended on an Image`:0<h.imgCount?`Suspended on Images`:null,f,p)),Jc(e,a,o,!l);return}hl(e,t,a,n,r,i,o,s,c,u,h,d,f,p)}function qc(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Ih(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Jc(e,t,n,r){t&=~mx,t&=~px,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Dp(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&ke(e,n,t)}function Yc(){return(Gb&(Ib|Lb))===Fb?(Rl(0,!1),!1):!0}function Xc(){if(qb!==null){if(ax===Yb)var e=qb.return;else e=qb,Lr(),ma(e),Uv=null,Wv=0,e=qb;for(;e!==null;)Fs(e.alternate,e),e=e.return;qb=null}}function Zc(e,t){e&127&&(O_=t),e&4194048&&(R_=t),e&62914560&&(Y_=t),e&2080374784&&(X_=t)}function Qc(e,t){pg&&(console.timeStamp(`Blocking Track`,.003,.003,`Blocking`,hg,`primary-light`),console.timeStamp(`Transition Track`,.003,.003,`Transition`,hg,`primary-light`),console.timeStamp(`Suspense Track`,.003,.003,`Suspense`,hg,`primary-light`),console.timeStamp(`Idle Track`,.003,.003,`Idle`,hg,`primary-light`));var n=__;if(__=p_(),Jb!==0&&0<n){if(Rn(Jb),dx===Vb||dx===Hb)Gn(n,__,t,Ex);else{var r=__,i=Ex;if(pg&&!(r<=n)){var a=(t&738197653)===t?`tertiary-dark`:`primary-dark`,o=(t&536870912)===t?`Prewarm`:(t&201326741)===t?`Interrupted Hydration`:`Interrupted Render`;i?i.run(console.timeStamp.bind(console,o,n,r,gg,hg,a)):console.timeStamp(o,n,r,gg,hg,a)}}Zc(Jb,__)}if(n=Ex,Ex=null,t&127){Ex=A_,i=0<=k_&&k_<O_?O_:k_,r=0<=P_&&P_<O_?O_:P_,a=0<=r?r:0<=i?i:__,0<=L_?(Rn(2),Kn(L_,a,t,n)):Z_&127&&(Rn(2),Zn(O_,a,Q_)),n=i;var s=r,c=F_,l=0<I_,u=j_===h_,d=j_===g_;if(i=__,r=A_,a=M_,o=N_,pg){if(gg=`Blocking`,0<n?n>i&&(n=i):n=i,0<s?s>n&&(s=n):s=n,c!==null&&n>s){var f=l?`secondary-light`:`warning`;r?r.run(console.timeStamp.bind(console,l?`Consecutive`:`Event: `+c,s,n,gg,hg,f)):console.timeStamp(l?`Consecutive`:`Event: `+c,s,n,gg,hg,f)}i>n&&(s=u?`error`:(t&738197653)===t?`tertiary-light`:`primary-light`,u=d?`Promise Resolved`:u?`Cascading Update`:5<i-n?`Update Blocked`:`Update`,d=[],o!=null&&d.push([`Component name`,o]),a!=null&&d.push([`Method name`,a]),n={start:n,end:i,detail:{devtools:{properties:d,track:gg,trackGroup:hg,color:s}}},r?r.run(performance.measure.bind(performance,u,n)):performance.measure(u,n))}k_=-1.1,j_=0,N_=M_=null,L_=-1.1,I_=P_,P_=-1.1,O_=p_()}if(t&4194048&&(Ex=H_,i=0<=z_&&z_<R_?R_:z_,n=0<=B_&&B_<R_?R_:B_,r=0<=G_&&G_<R_?R_:G_,a=0<=r?r:0<=n?n:__,0<=J_?(Rn(256),Kn(J_,a,t,Ex)):Z_&4194048&&(Rn(256),Zn(R_,a,Q_)),d=r,s=K_,c=0<q_,l=V_===g_,a=__,r=H_,o=U_,u=W_,pg&&(gg=`Transition`,0<n?n>a&&(n=a):n=a,0<i?i>n&&(i=n):i=n,0<d?d>i&&(d=i):d=i,i>d&&s!==null&&(f=c?`secondary-light`:`warning`,r?r.run(console.timeStamp.bind(console,c?`Consecutive`:`Event: `+s,d,i,gg,hg,f)):console.timeStamp(c?`Consecutive`:`Event: `+s,d,i,gg,hg,f)),n>i&&(r?r.run(console.timeStamp.bind(console,`Action`,i,n,gg,hg,`primary-dark`)):console.timeStamp(`Action`,i,n,gg,hg,`primary-dark`)),a>n&&(i=l?`Promise Resolved`:5<a-n?`Update Blocked`:`Update`,d=[],u!=null&&d.push([`Component name`,u]),o!=null&&d.push([`Method name`,o]),n={start:n,end:a,detail:{devtools:{properties:d,track:gg,trackGroup:hg,color:`primary-light`}}},r?r.run(performance.measure.bind(performance,i,n)):performance.measure(i,n))),B_=z_=-1.1,V_=0,J_=-1.1,q_=G_,G_=-1.1,R_=p_()),t&62914560&&Z_&62914560&&(Rn(4194304),Zn(Y_,__,Q_)),t&2080374784&&Z_&2080374784&&(Rn(268435456),Zn(X_,__,Q_)),n=e.timeoutHandle,n!==rC&&(e.timeoutHandle=rC,nC(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Vx=0,Xc(),Kb=e,qb=n=dr(e.current,null),Jb=t,ax=Yb,ox=null,sx=!1,cx=Ce(e,t),lx=!1,dx=Rb,gx=hx=mx=px=fx=0,vx=_x=null,yx=!1,t&8&&(t|=t&32),r=e.entangledLanes,r!==0)for(e=e.entanglements,r&=t;0<r;)i=31-Dp(r),a=1<<i,t|=e[i],r&=~a;return ux=t,Qn(),e=ng(),1e3<e-eg&&(Y.recentlyCreatedOwnerStacks=0,eg=e),lv.discardPendingWarnings(),n}function $c(e,t){Ty=null,Y.H=zy,Y.getCurrentStack=null,cp=!1,sp=null,t===Lv||t===zv?(t=wi(),ax=Qb):t===Rv?(t=wi(),ax=$b):ax=t===sb?rx:typeof t==`object`&&t&&typeof t.then==`function`?tx:Xb,ox=t;var n=qb;n===null?(dx=zb,Ko(e,yr(t,e.current))):n.mode&Ng&&ci(n)}function el(){var e=ly.current;return e===null?!0:(Jb&4194048)===Jb?uy===null:(Jb&62914560)===Jb||Jb&536870912?e===uy:!1}function tl(){var e=Y.H;return Y.H=zy,e===null?zy:e}function nl(){var e=Y.A;return Y.A=jb,e}function rl(e){Ex===null&&(Ex=e._debugTask==null?null:e._debugTask)}function il(){dx=Hb,sx||(Jb&4194048)!==Jb&&ly.current!==null||(cx=!0),!(fx&134217727)&&!(px&134217727)||Kb===null||Jc(Kb,Jb,hx,!1)}function al(e,t,n){var r=Gb;Gb|=Ib;var i=tl(),a=nl();if(Kb!==e||Jb!==t){if(Ep){var o=e.memoizedUpdaters;0<o.size&&(Pl(e,Jb),o.clear()),Pe(e,t)}Tx=null,Qc(e,t)}t=!1,o=dx;a:do try{if(ax!==Yb&&qb!==null){var s=qb,c=ox;switch(ax){case rx:Xc(),o=Ub;break a;case Qb:case Zb:case ix:case tx:ly.current===null&&(t=!0);var l=ax;if(ax=Yb,ox=null,fl(e,s,c,l),n&&cx){o=Rb;break a}break;default:l=ax,ax=Yb,ox=null,fl(e,s,c,l)}}ol(),o=dx;break}catch(t){$c(e,t)}while(1);return t&&e.shellSuspendCounter++,Lr(),Gb=r,Y.H=i,Y.A=a,qb===null&&(Kb=null,Jb=0,Qn()),o}function ol(){for(;qb!==null;)ll(qb)}function sl(e,t){var n=Gb;Gb|=Ib;var r=tl(),i=nl();if(Kb!==e||Jb!==t){if(Ep){var a=e.memoizedUpdaters;0<a.size&&(Pl(e,Jb),a.clear()),Pe(e,t)}Tx=null,Cx=mp()+wx,Qc(e,t)}else cx=Ce(e,t);a:do try{if(ax!==Yb&&qb!==null)b:switch(t=qb,a=ox,ax){case Xb:ax=Yb,ox=null,fl(e,t,a,Xb);break;case Zb:case ix:if(xi(a)){ax=Yb,ox=null,ul(t);break}t=function(){ax!==Zb&&ax!==ix||Kb!==e||(ax=nx),Ll(e)},a.then(t,t);break a;case Qb:ax=nx;break a;case $b:ax=ex;break a;case nx:xi(a)?(ax=Yb,ox=null,ul(t)):(ax=Yb,ox=null,fl(e,t,a,nx));break;case ex:var o=null;switch(qb.tag){case 26:o=qb.memoizedState;case 5:case 27:var s=qb;if(o?Id(o):s.stateNode.complete){ax=Yb,ox=null;var c=s.sibling;if(c!==null)qb=c;else{var l=s.return;l===null?qb=null:(qb=l,pl(l))}break b}break;default:console.error(`Unexpected type of fiber triggered a suspensey commit. This is a bug in React.`)}ax=Yb,ox=null,fl(e,t,a,ex);break;case tx:ax=Yb,ox=null,fl(e,t,a,tx);break;case rx:Xc(),dx=Ub;break a;default:throw Error(`Unexpected SuspendedReason. This is a bug in React.`)}Y.actQueue===null?cl():ol();break}catch(t){$c(e,t)}while(1);return Lr(),Y.H=r,Y.A=i,Gb=n,qb===null?(Kb=null,Jb=0,Qn(),dx):Rb}function cl(){for(;qb!==null&&!fp();)ll(qb)}function ll(e){var t=e.alternate;(e.mode&Ng)===jg?t=R(e,Es,t,e,ux):(si(e),t=R(e,Es,t,e,ux),ci(e)),e.memoizedProps=e.pendingProps,t===null?pl(e):qb=t}function ul(e){var t=R(e,dl,e);e.memoizedProps=e.pendingProps,t===null?pl(e):qb=t}function dl(e){var t=e.alternate,n=(e.mode&Ng)!==jg;switch(n&&si(e),e.tag){case 15:case 0:t=us(t,e,e.pendingProps,e.type,void 0,Jb);break;case 11:t=us(t,e,e.pendingProps,e.type.render,e.ref,Jb);break;case 5:ma(e);default:Fs(t,e),e=qb=fr(e,ux),t=Es(t,e,ux)}return n&&ci(e),t}function fl(e,t,n,r){Lr(),ma(t),Uv=null,Wv=0;var i=t.return;try{if(Zo(e,i,t,n,Jb)){dx=zb,Ko(e,yr(n,e.current)),qb=null;return}}catch(t){if(i!==null)throw qb=i,t;dx=zb,Ko(e,yr(n,e.current)),qb=null;return}t.flags&32768?(Zg||r===Xb?e=!0:cx||Jb&536870912?e=!1:(sx=e=!0,(r===Zb||r===ix||r===Qb||r===tx)&&(r=ly.current,r!==null&&r.tag===13&&(r.flags|=16384))),ml(t,e)):pl(t)}function pl(e){var t=e;do{if(t.flags&32768){ml(t,sx);return}var n=t.alternate;if(e=t.return,si(t),n=R(t,Ns,n,t,ux),(t.mode&Ng)!==jg&&li(t),n!==null){qb=n;return}if(t=t.sibling,t!==null){qb=t;return}qb=t=e}while(t!==null);dx===Rb&&(dx=Wb)}function ml(e,t){do{var n=Ps(e.alternate,e);if(n!==null){n.flags&=32767,qb=n;return}if((e.mode&Ng)!==jg){li(e),n=e.actualDuration;for(var r=e.child;r!==null;)n+=r.actualDuration,r=r.sibling;e.actualDuration=n}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){qb=e;return}qb=e=n}while(e!==null);dx=Ub,qb=null}function hl(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.cancelPendingCommit=null;do xl();while(Rx!==Mx);if(lv.flushLegacyContextWarning(),lv.flushPendingUnsafeLifecycleWarnings(),(Gb&(Ib|Lb))!==Fb)throw Error(`Should not already be working.`);if(Rn(n),l===Bb?Jn(f,p,n,Ex):r===null?Wn(f,p,n,Ex):qn(f,p,n,r,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!=0,Ex),t!==null){if(n===0&&console.error(`finishedLanes should not be empty during a commit. This is a bug in React.`),t===e.current)throw Error(`Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.`);if(a=t.lanes|t.childLanes,a|=Dg,Oe(e,n,a,o,s,c),e===Kb&&(qb=Kb=null,Jb=0),Bx=t,zx=e,Vx=n,Hx=a,Wx=i,Gx=r,Ux=p,Kx=d,qx=Ox,Jx=null,t.actualDuration!==0||t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Fl(vp,function(){return eC=window.event,qx===Ox&&(qx=Ax),Sl(),null})):(e.callbackNode=null,e.callbackPriority=0),b_=null,v_=p_(),d!==null&&Yn(p,v_,d,Ex),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=Y.T,Y.T=null,i=Bf.p,Bf.p=Np,o=Gb,Gb|=Lb;try{sc(e,t,n)}finally{Gb=o,Bf.p=i,Y.T=r}}Rx=Nx,gl(),_l(),vl()}}function gl(){if(Rx===Nx){Rx=Mx;var e=zx,t=Bx,n=Vx,r=(t.flags&13878)!=0;if(t.subtreeFlags&13878||r){r=Y.T,Y.T=null;var i=Bf.p;Bf.p=Np;var a=Gb;Gb|=Lb;try{wb=n,Tb=e,ti(),_c(t,e),Tb=wb=null,n=ZS;var o=On(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Dn(s.ownerDocument.documentElement,s)){if(c!==null&&kn(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=En(s,h),v=En(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}BC=!!XS,ZS=XS=null}finally{Gb=a,Bf.p=i,Y.T=r}}e.current=t,Rx=Px}}function _l(){if(Rx===Px){Rx=Mx;var e=Jx;if(e!==null){v_=p_();var t=y_,n=v_;!pg||n<=t||(Q_?Q_.run(console.timeStamp.bind(console,e,t,n,gg,hg,`secondary-light`)):console.timeStamp(e,t,n,gg,hg,`secondary-light`))}e=zx,t=Bx,n=Vx;var r=(t.flags&8772)!=0;if(t.subtreeFlags&8772||r){r=Y.T,Y.T=null;var i=Bf.p;Bf.p=Np;var a=Gb;Gb|=Lb;try{wb=n,Tb=e,ti(),cc(e,t.alternate,t),Tb=wb=null}finally{Gb=a,Bf.p=i,Y.T=r}}e=Ux,t=Kx,y_=p_(),e=t===null?e:v_,t=y_,n=qx===kx,r=Ex,b_===null?!pg||t<=e||(r?r.run(console.timeStamp.bind(console,n?`Commit Interrupted View Transition`:`Commit`,e,t,gg,hg,n?`error`:`secondary-dark`)):console.timeStamp(n?`Commit Interrupted View Transition`:`Commit`,e,t,gg,hg,n?`error`:`secondary-dark`)):Xn(e,t,b_,!1,r),Rx=Fx}}function vl(){if(Rx===Ix||Rx===Fx){if(Rx===Ix){var e=y_;y_=p_();var t=y_,n=qx===kx;!pg||t<=e||(Q_?Q_.run(console.timeStamp.bind(console,n?`Interrupted View Transition`:`Starting Animation`,e,t,gg,hg,n?`error`:`secondary-light`)):console.timeStamp(n?`Interrupted View Transition`:`Starting Animation`,e,t,gg,hg,n?` error`:`secondary-light`)),qx!==kx&&(qx=jx)}Rx=Mx,pp(),e=zx;var r=Bx;t=Vx,n=Gx;var i=r.actualDuration!==0||(r.subtreeFlags&10256)!=0||(r.flags&10256)!=0;i?Rx=Lx:(Rx=Mx,Bx=zx=null,bl(e,e.pendingLanes),tS=0,nS=null);var a=e.pendingLanes;if(a===0&&(Dx=null),i||Ml(e),a=Fe(t),r=r.stateNode,wp&&typeof wp.onCommitFiberRoot==`function`)try{var o=(r.current.flags&128)==128;switch(a){case Np:var s=gp;break;case Pp:s=_p;break;case Fp:s=vp;break;case Ip:s=bp;break;default:s=vp}wp.onCommitFiberRoot(Cp,r,s,o)}catch(e){Tp||(Tp=!0,console.error(`React instrumentation encountered an error: %o`,e))}if(Ep&&e.memoizedUpdaters.clear(),Bc(),n!==null){o=Y.T,s=Bf.p,Bf.p=Np,Y.T=null;try{var c=e.onRecoverableError;for(r=0;r<n.length;r++){var l=n[r],u=yl(l.stack);R(l.source,c,l.value,u)}}finally{Y.T=o,Bf.p=s}}Vx&3&&xl(),Ll(e),a=e.pendingLanes,t&261930&&a&42?(nv=!0,e===Zx?Xx++:(Xx=0,Zx=e)):Xx=0,i||Zc(t,y_),Rl(0,!1)}}function yl(e){return e={componentStack:e},Object.defineProperty(e,`digest`,{get:function(){console.error(`You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.`)}}),e}function bl(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Yr(t)))}function xl(){return gl(),_l(),vl(),Sl()}function Sl(){if(Rx!==Lx)return!1;var e=zx,t=Hx;Hx=0;var n=Fe(Vx),r=Fp===0||Fp>n?Fp:n;n=Y.T;var i=Bf.p;try{Bf.p=r,Y.T=null;var a=Wx;Wx=null,r=zx;var o=Vx;if(Rx=Mx,Bx=zx=null,Vx=0,(Gb&(Ib|Lb))!==Fb)throw Error(`Cannot flush passive effects while already rendering.`);Rn(o),Qx=!0,$x=!1;var s=0;if(b_=null,s=mp(),qx===jx)Zn(y_,s,Q_);else{var c=y_,l=s,u=qx===Ax;!pg||l<=c||(Ex?Ex.run(console.timeStamp.bind(console,u?`Waiting for Paint`:`Waiting`,c,l,gg,hg,`secondary-light`)):console.timeStamp(u?`Waiting for Paint`:`Waiting`,c,l,gg,hg,`secondary-light`))}c=Gb,Gb|=Lb;var d=r.current;ti(),Ic(d);var f=r.current;d=Ux,ti(),Oc(r,f,o,a,d),Ml(r),Gb=c;var p=mp();if(f=s,d=Ex,b_===null?!pg||p<=f||(d?d.run(console.timeStamp.bind(console,`Remaining Effects`,f,p,gg,hg,`secondary-dark`)):console.timeStamp(`Remaining Effects`,f,p,gg,hg,`secondary-dark`)):Xn(f,p,b_,!0,d),Zc(o,p),Rl(0,!1),$x?r===nS?tS++:(tS=0,nS=r):tS=0,$x=Qx=!1,wp&&typeof wp.onPostCommitFiberRoot==`function`)try{wp.onPostCommitFiberRoot(Cp,r)}catch(e){Tp||(Tp=!0,console.error(`React instrumentation encountered an error: %o`,e))}var m=r.current.stateNode;return m.effectDuration=0,m.passiveEffectDuration=0,!0}finally{Bf.p=i,Y.T=n,bl(e,t)}}function Cl(e,t,n){t=yr(n,t),di(t),t=Jo(e.stateNode,t,2),e=Vi(e,t,2),e!==null&&(De(e,2),Ll(e))}function wl(e,t,n){if(rS=!1,e.tag===3)Cl(e,e,n);else{for(;t!==null;){if(t.tag===3){Cl(t,e,n);return}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Dx===null||!Dx.has(r))){e=yr(n,e),di(e),n=Yo(2),r=Vi(t,n,2),r!==null&&(Xo(n,r,t,e),De(r,2),Ll(r));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
166
166
 
167
167
  Error message:
168
168
 
@@ -185,13 +185,13 @@ act(() => {
185
185
  /* assert on the output */
186
186
 
187
187
  This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,A(e))})}function Ll(e){e!==lS&&e.next===null&&(lS===null?cS=lS=e:lS=lS.next=e),fS=!0,Y.actQueue===null?uS||(uS=!0,Gl()):dS||(dS=!0,Gl())}function Rl(e,t){if(!pS&&fS){pS=!0;do for(var n=!1,r=cS;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Dp(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Ul(r,a))}else a=Jb,a=Se(r,r===Kb?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==rC),!(a&3)||Ce(r,a)||(n=!0,Ul(r,a));r=r.next}while(n);pS=!1}}function zl(){eC=window.event,Bl()}function Bl(){fS=dS=uS=!1;var e=0;mS!==0&&Pu()&&(e=mS);for(var t=mp(),n=null,r=cS;r!==null;){var i=r.next,a=Vl(r,t);a===0?(r.next=null,n===null?cS=i:n.next=i,i===null&&(lS=n)):(n=r,(e!==0||a&3)&&(fS=!0)),r=i}Rx!==Mx&&Rx!==Lx||Rl(e,!1),mS!==0&&(mS=0)}function Vl(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Dp(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=we(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Kb,n=Jb,n=Se(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==rC),r=e.callbackNode,n===0||e===t&&(ax===Zb||ax===ix)||e.cancelPendingCommit!==null)return r!==null&&Wl(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ce(e,n)){if(t=n&-n,t!==e.callbackPriority||Y.actQueue!==null&&r!==hS)Wl(r);else return t;switch(Fe(n)){case Np:case Pp:n=_p;break;case Fp:n=vp;break;case Ip:n=bp;break;default:n=vp}return r=Hl.bind(null,e),Y.actQueue===null?n=up(n,r):(Y.actQueue.push(r),n=hS),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&Wl(r),e.callbackPriority=2,e.callbackNode=null,2}function Hl(e,t){if(nv=tv=!1,eC=window.event,Rx!==Mx&&Rx!==Lx)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(qx===Ox&&(qx=Ax),xl()&&e.callbackNode!==n)return null;var r=Jb;return r=Se(e,e===Kb?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==rC),r===0?null:(Gc(e,r,t),Vl(e,mp()),e.callbackNode!=null&&e.callbackNode===n?Hl.bind(null,e):null)}function Ul(e,t){if(xl())return null;tv=nv,nv=!1,Gc(e,t,!0)}function Wl(e){e!==hS&&e!==null&&dp(e)}function Gl(){Y.actQueue!==null&&Y.actQueue.push(function(){return Bl(),null}),aC(function(){(Gb&(Ib|Lb))===Fb?Bl():up(gp,zl)})}function Kl(){if(mS===0){var e=av;e===0&&(e=Ap,Ap<<=1,!(Ap&261888)&&(Ap=256)),mS=e}return mS}function ql(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:(z(e,`action`),qt(``+e))}function Jl(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Yl(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=ql((i[zp]||null).action),o=r.submitter;o&&(t=(t=o[zp]||null)?ql(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new $m(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(mS!==0){var e=o?Jl(i,o):new FormData(i),t={pending:!0,data:e,method:i.method,action:a};Object.freeze(t),xo(n,t,null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?Jl(i,o):new FormData(i),t={pending:!0,data:e,method:i.method,action:a},Object.freeze(t),xo(n,t,a,e))},currentTarget:i}]})}}function Xl(e,t,n){e.currentTarget=n;try{t(e)}catch(e){ig(e)}e.currentTarget=null}function Zl(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n];a:{var i=void 0,a=r.event;if(r=r.listeners,t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==i&&a.isPropagationStopped())break a;c===null?Xl(a,s,l):R(c,Xl,a,s,l),i=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==i&&a.isPropagationStopped())break a;c===null?Xl(a,s,l):R(c,Xl,a,s,l),i=c}}}}function Ql(e,t){_S.has(e)||console.error(`Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.`,e);var n=t[Vp];n===void 0&&(n=t[Vp]=new Set);var r=e+`__bubble`;n.has(r)||(tu(t,e,2,!1),n.add(r))}function $l(e,t,n){_S.has(e)&&!t&&console.error(`Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.`,e);var r=0;t&&(r|=4),tu(n,e,r,t)}function eu(e){if(!e[vS]){e[vS]=!0,Kp.forEach(function(t){t!==`selectionchange`&&(_S.has(t)||$l(t,!1,e),$l(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vS]||(t[vS]=!0,$l(`selectionchange`,!1,t))}}function tu(e,t,n,r){switch(nf(t)){case Np:var i=Zd;break;case Pp:i=Qd;break;default:i=$d}n=i.bind(null,t,n,e),i=void 0,!qm||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function nu(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=ze(s),o===null)return;if(c=o.tag,c===5||c===6||c===26||c===27){r=a=o;continue a}s=s.parentNode}}r=r.return}Zt(function(){var r=a,i=Yt(n),o=[];a:{var s=Qh.get(e);if(s!==void 0){var c=$m,l=e;switch(e){case`keypress`:if(en(n)===0)break a;case`keydown`:case`keyup`:c=gh;break;case`focusin`:l=`focus`,c=ch;break;case`focusout`:l=`blur`,c=ch;break;case`beforeblur`:case`afterblur`:c=ch;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=oh;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=sh;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=vh;break;case Gh:case Kh:case qh:c=lh;break;case Zh:c=yh;break;case`scroll`:case`scrollend`:c=th;break;case`wheel`:c=bh;break;case`copy`:case`cut`:case`paste`:c=uh;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=_h;break;case`toggle`:case`beforetoggle`:c=xh}var u=(t&4)!=0,d=!u&&(e===`scroll`||e===`scrollend`),f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){var h=p;if(m=h.stateNode,h=h.tag,h!==5&&h!==26&&h!==27||m===null||f===null||(h=Qt(p,f),h!=null&&u.push(ru(p,h,m))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==Hm&&(l=n.relatedTarget||n.fromElement)&&(ze(l)||l[Bp]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?ze(l):null,l!==null&&(d=x(l),u=l.tag,l!==d||u!==5&&u!==27&&u!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=oh,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=_h,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Ve(c),m=l==null?s:Ve(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,ze(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=au,f=c,p=l,m=0,h=f;h;h=u(h))m++;h=0;for(var g=p;g;g=u(g))h++;for(;0<m-h;)f=u(f),m--;for(;0<h-m;)p=u(p),h--;for(;m--;){if(f===p||p!==null&&f===p.alternate){u=f;break b}f=u(f),p=u(p)}u=null}else u=null;c!==null&&ou(o,s,c,u,!1),l!==null&&d!==null&&ou(o,d,l,u,!0)}}a:{if(s=r?Ve(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var _=gn;else if(dn(s))if(Fh)_=Sn;else{_=bn;var v=yn}else c=s.nodeName,!c||c.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&Vt(r.elementType)&&(_=gn):_=xn;if(_&&=_(e,r)){pn(o,_,n,i);break a}v&&v(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&ot(s,`number`,s.value)}switch(v=r?Ve(r):window,e){case`focusin`:(dn(v)||v.contentEditable===`true`)&&(Rh=v,zh=r,Bh=null);break;case`focusout`:Bh=zh=Rh=null;break;case`mousedown`:Vh=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Vh=!1,An(o,n,i);break;case`selectionchange`:if(Lh)break;case`keydown`:case`keyup`:An(o,n,i)}var y;if(wh)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else jh?sn(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===Ch&&(b=`onCompositionStart`);b&&(Dh&&n.locale!==`ko`&&(jh||b!==`onCompositionStart`?b===`onCompositionEnd`&&jh&&(y=$t()):(Ym=i,Xm=`value`in Ym?Ym.value:Ym.textContent,jh=!0)),v=iu(r,b),0<v.length&&(b=new dh(b,e,null,n,i),o.push({event:b,listeners:v}),y?b.data=y:(y=cn(n),y!==null&&(b.data=y)))),(y=Eh?ln(e,n):un(e,n))&&(b=iu(r,`onBeforeInput`),0<b.length&&(v=new fh(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:v,listeners:b}),v.data=y)),Yl(o,e,r,n,i)}Zl(o,t)})}function ru(e,t,n){return{instance:e,listener:t,currentTarget:n}}function iu(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Qt(e,n),i!=null&&r.unshift(ru(e,i,a)),i=Qt(e,t),i!=null&&r.push(ru(e,i,a))),e.tag===3)return r;e=e.return}return[]}function au(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ou(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=Qt(n,a),l!=null&&o.unshift(ru(n,l,c))):i||(l=Qt(n,a),l!=null&&o.push(ru(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}function su(e,t){Wt(e,t),e!==`input`&&e!==`textarea`&&e!==`select`||t==null||t.value!==null||Fm||(Fm=!0,e===`select`&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var n={registrationNameDependencies:qp,possibleRegistrationNames:Jp};Vt(e)||typeof t.is==`string`||Kt(e,t,n),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function cu(e,t,n,r){t!==n&&(n=fu(n),fu(t)!==n&&(r[e]=t))}function lu(e,t,n){t.forEach(function(t){n[vu(t)]=t===`style`?yu(e):e.getAttribute(t)})}function uu(e,t){!1===t?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function du(e,t){return e=e.namespaceURI===Dm||e.namespaceURI===Om?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function fu(e){return he(e)&&(console.error(`The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.`,me(e)),ge(e)),(typeof e==`string`?e:``+e).replace(DS,`
188
- `).replace(OS,``)}function pu(e,t){return t=fu(t),fu(e)===t}function mu(e,t,n,r,i,a){switch(n){case`children`:typeof r==`string`?(It(r,t,!1),t===`body`||t===`textarea`&&r===``||Lt(e,r)):(typeof r==`number`||typeof r==`bigint`)&&(It(``+r,t,!1),t!==`body`&&Lt(e,``+r));break;case`className`:Je(e,`class`,r);break;case`tabIndex`:Je(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Je(e,n,r);break;case`style`:Bt(e,r,a);break;case`data`:if(t!==`object`){Je(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){console.error(n===`src`?`An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`:`An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`,n,n),e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}z(r,n),r=qt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(r!=null&&(t===`form`?n===`formAction`?console.error(`You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>.`):typeof r==`function`&&(i.encType==null&&i.method==null||wS||(wS=!0,console.error(`Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.`)),i.target==null||CS||(CS=!0,console.error(`Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window.`))):t===`input`||t===`button`?n===`action`?console.error(`You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>.`):t!==`input`||i.type===`submit`||i.type===`image`||xS?t!==`button`||i.type==null||i.type===`submit`||xS?typeof r==`function`&&(i.name==null||SS||(SS=!0,console.error(`Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.`)),i.formEncType==null&&i.formMethod==null||wS||(wS=!0,console.error(`Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.`)),i.formTarget==null||CS||(CS=!0,console.error(`Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window.`))):(xS=!0,console.error(`A button can only specify a formAction along with type="submit" or no type.`)):(xS=!0,console.error(`An input can only specify a formAction along with type="submit" or type="image".`)):console.error(n===`action`?`You can only pass the action prop to <form>.`:`You can only pass the formAction prop to <input> or <button>.`)),typeof r==`function`){e.setAttribute(n,`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`&&(n===`formAction`?(t!==`input`&&mu(e,t,`name`,i.name,i,null),mu(e,t,`formEncType`,i.formEncType,i,null),mu(e,t,`formMethod`,i.formMethod,i,null),mu(e,t,`formTarget`,i.formTarget,i,null)):(mu(e,t,`encType`,i.encType,i,null),mu(e,t,`method`,i.method,i,null),mu(e,t,`target`,i.target,i,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}z(r,n),r=qt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(typeof r!=`function`&&uu(n,r),e.onclick=Jt);break;case`onScroll`:r!=null&&(typeof r!=`function`&&uu(n,r),Ql(`scroll`,e));break;case`onScrollEnd`:r!=null&&(typeof r!=`function`&&uu(n,r),Ql(`scrollend`,e));break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=r.__html,n!=null){if(i.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}z(r,n),n=qt(``+r),e.setAttributeNS(kS,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?(z(r,n),e.setAttribute(n,``+r)):e.removeAttribute(n);break;case`inert`:r!==``||ES[n]||(ES[n]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",n));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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?(z(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?(z(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):(z(r,n),e.setAttribute(n,r));break;case`popover`:Ql(`beforetoggle`,e),Ql(`toggle`,e),qe(e,`popover`,r);break;case`xlinkActuate`:Ye(e,kS,`xlink:actuate`,r);break;case`xlinkArcrole`:Ye(e,kS,`xlink:arcrole`,r);break;case`xlinkRole`:Ye(e,kS,`xlink:role`,r);break;case`xlinkShow`:Ye(e,kS,`xlink:show`,r);break;case`xlinkTitle`:Ye(e,kS,`xlink:title`,r);break;case`xlinkType`:Ye(e,kS,`xlink:type`,r);break;case`xmlBase`:Ye(e,AS,`xml:base`,r);break;case`xmlLang`:Ye(e,AS,`xml:lang`,r);break;case`xmlSpace`:Ye(e,AS,`xml:space`,r);break;case`is`:a!=null&&console.error(`Cannot update the "is" prop after it has been initialized.`),qe(e,`is`,r);break;case`innerText`:case`textContent`:break;case`popoverTarget`:TS||typeof r!=`object`||!r||(TS=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",r));default:!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`?(n=Ht(n),qe(e,n,r)):qp.hasOwnProperty(n)&&r!=null&&typeof r!=`function`&&uu(n,r)}}function hu(e,t,n,r,i,a){switch(n){case`style`:Bt(e,r,a);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=r.__html,n!=null){if(i.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case`children`:typeof r==`string`?Lt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Lt(e,``+r);break;case`onScroll`:r!=null&&(typeof r!=`function`&&uu(n,r),Ql(`scroll`,e));break;case`onScrollEnd`:r!=null&&(typeof r!=`function`&&uu(n,r),Ql(`scrollend`,e));break;case`onClick`:r!=null&&(typeof r!=`function`&&uu(n,r),e.onclick=Jt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(qp.hasOwnProperty(n))r!=null&&typeof r!=`function`&&uu(n,r);else a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),a=e[zp]||null,a=a==null?null:a[n],typeof a==`function`&&e.removeEventListener(t,a,i),typeof r==`function`)){typeof a!=`function`&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):qe(e,n,r)}}}function gu(e,t,n){switch(su(t,n),t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Ql(`error`,e),Ql(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:mu(e,t,a,o,n,null)}}i&&mu(e,t,`srcSet`,n.srcSet,n,null),r&&mu(e,t,`src`,n.src,n,null);return;case`input`:Ge(`input`,n),Ql(`invalid`,e);var s=a=o=i=null,c=null,l=null;for(r in n)if(n.hasOwnProperty(r)){var u=n[r];if(u!=null)switch(r){case`name`:i=u;break;case`type`:o=u;break;case`checked`:c=u;break;case`defaultChecked`:l=u;break;case`value`:a=u;break;case`defaultValue`:s=u;break;case`children`:case`dangerouslySetInnerHTML`:if(u!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:mu(e,t,r,u,n,null)}}rt(e,n),at(e,a,s,c,l,o,i,!1);return;case`select`:for(i in Ge(`select`,n),Ql(`invalid`,e),r=o=a=null,n)if(n.hasOwnProperty(i)&&(s=n[i],s!=null))switch(i){case`value`:a=s;break;case`defaultValue`:o=s;break;case`multiple`:r=s;default:mu(e,t,i,s,n,null)}ut(e,n),t=a,n=o,e.multiple=!!r,t==null?n!=null&&lt(e,!!r,n,!0):lt(e,!!r,t,!1);return;case`textarea`:for(o in Ge(`textarea`,n),Ql(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(o)&&(s=n[o],s!=null))switch(o){case`value`:r=s;break;case`defaultValue`:i=s;break;case`children`:a=s;break;case`dangerouslySetInnerHTML`:if(s!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:mu(e,t,o,s,n,null)}dt(e,n),pt(e,r,i,a);return;case`option`:for(c in st(e,n),n)if(n.hasOwnProperty(c)&&(r=n[c],r!=null))switch(c){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:mu(e,t,c,r,n,null)}return;case`dialog`:Ql(`beforetoggle`,e),Ql(`toggle`,e),Ql(`cancel`,e),Ql(`close`,e);break;case`iframe`:case`object`:Ql(`load`,e);break;case`video`:case`audio`:for(r=0;r<gS.length;r++)Ql(gS[r],e);break;case`image`:Ql(`error`,e),Ql(`load`,e);break;case`details`:Ql(`toggle`,e);break;case`embed`:case`source`:case`link`:Ql(`error`,e),Ql(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`children`:case`dangerouslySetInnerHTML`:throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:mu(e,t,l,r,n,null)}return;default:if(Vt(t)){for(u in n)n.hasOwnProperty(u)&&(r=n[u],r!==void 0&&hu(e,t,u,r,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(r=n[s],r!=null&&mu(e,t,s,r,n,null))}function _u(e,t,n,r){switch(su(t,r),t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,a=null,o=null,s=null,c=null,l=null,u=null;for(p in n){var d=n[p];if(n.hasOwnProperty(p)&&d!=null)switch(p){case`checked`:break;case`value`:break;case`defaultValue`:c=d;default:r.hasOwnProperty(p)||mu(e,t,p,null,r,d)}}for(var f in r){var p=r[f];if(d=n[f],r.hasOwnProperty(f)&&(p!=null||d!=null))switch(f){case`type`:a=p;break;case`name`:i=p;break;case`checked`:l=p;break;case`defaultChecked`:u=p;break;case`value`:o=p;break;case`defaultValue`:s=p;break;case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:p!==d&&mu(e,t,f,p,r,d)}}t=n.type===`checkbox`||n.type===`radio`?n.checked!=null:n.value!=null,r=r.type===`checkbox`||r.type===`radio`?r.checked!=null:r.value!=null,t||!r||bS||(console.error(`A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components`),bS=!0),!t||r||yS||(console.error(`A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components`),yS=!0),it(e,o,s,c,l,u,a,i);return;case`select`:for(a in p=o=s=f=null,n)if(c=n[a],n.hasOwnProperty(a)&&c!=null)switch(a){case`value`:break;case`multiple`:p=c;default:r.hasOwnProperty(a)||mu(e,t,a,null,r,c)}for(i in r)if(a=r[i],c=n[i],r.hasOwnProperty(i)&&(a!=null||c!=null))switch(i){case`value`:f=a;break;case`defaultValue`:s=a;break;case`multiple`:o=a;default:a!==c&&mu(e,t,i,a,r,c)}r=s,t=o,n=p,f==null?!!n!=!!t&&(r==null?lt(e,!!t,t?[]:``,!1):lt(e,!!t,r,!0)):lt(e,!!t,f,!1);return;case`textarea`:for(s in p=f=null,n)if(i=n[s],n.hasOwnProperty(s)&&i!=null&&!r.hasOwnProperty(s))switch(s){case`value`:break;case`children`:break;default:mu(e,t,s,null,r,i)}for(o in r)if(i=r[o],a=n[o],r.hasOwnProperty(o)&&(i!=null||a!=null))switch(o){case`value`:f=i;break;case`defaultValue`:p=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:i!==a&&mu(e,t,o,i,r,a)}ft(e,f,p);return;case`option`:for(var m in n)if(f=n[m],n.hasOwnProperty(m)&&f!=null&&!r.hasOwnProperty(m))switch(m){case`selected`:e.selected=!1;break;default:mu(e,t,m,null,r,f)}for(c in r)if(f=r[c],p=n[c],r.hasOwnProperty(c)&&f!==p&&(f!=null||p!=null))switch(c){case`selected`:e.selected=f&&typeof f!=`function`&&typeof f!=`symbol`;break;default:mu(e,t,c,f,r,p)}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 h in n)f=n[h],n.hasOwnProperty(h)&&f!=null&&!r.hasOwnProperty(h)&&mu(e,t,h,null,r,f);for(l in r)if(f=r[l],p=n[l],r.hasOwnProperty(l)&&f!==p&&(f!=null||p!=null))switch(l){case`children`:case`dangerouslySetInnerHTML`:if(f!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:mu(e,t,l,f,r,p)}return;default:if(Vt(t)){for(var g in n)f=n[g],n.hasOwnProperty(g)&&f!==void 0&&!r.hasOwnProperty(g)&&hu(e,t,g,void 0,r,f);for(u in r)f=r[u],p=n[u],!r.hasOwnProperty(u)||f===p||f===void 0&&p===void 0||hu(e,t,u,f,r,p);return}}for(var _ in n)f=n[_],n.hasOwnProperty(_)&&f!=null&&!r.hasOwnProperty(_)&&mu(e,t,_,null,r,f);for(d in r)f=r[d],p=n[d],!r.hasOwnProperty(d)||f===p||f==null&&p==null||mu(e,t,d,f,r,p)}function vu(e){switch(e){case`class`:return`className`;case`for`:return`htmlFor`;default:return e}}function yu(e){var t={};e=e.style;for(var n=0;n<e.length;n++){var r=e[n];t[r]=e.getPropertyValue(r)}return t}function bu(e,t,n){if(t!=null&&typeof t!=`object`)console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var r,i=r=``,a;for(a in t)if(t.hasOwnProperty(a)){var o=t[a];o!=null&&typeof o!=`boolean`&&o!==``&&(a.indexOf(`--`)===0?(_e(o,a),r+=i+a+`:`+(``+o).trim()):typeof o!=`number`||o===0||Em.has(a)?(_e(o,a),r+=i+a.replace(gm,`-$1`).toLowerCase().replace(_m,`-ms-`)+`:`+(``+o).trim()):r+=i+a.replace(gm,`-$1`).toLowerCase().replace(_m,`-ms-`)+`:`+o+`px`,i=`;`)}r||=null,t=e.getAttribute(`style`),t!==r&&(r=fu(r),fu(t)!==r&&(n.style=yu(e)))}}function xu(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(z(r,t),e===``+r)return}cu(t,e,r,a)}function Su(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null){switch(typeof r){case`function`:case`symbol`:return}if(!r)return}else switch(typeof r){case`function`:case`symbol`:break;default:if(r)return}cu(t,e,r,a)}function Cu(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:break;default:if(z(r,n),e===``+r)return}cu(t,e,r,a)}function wu(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return;default:if(isNaN(r))return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(!isNaN(r)&&(z(r,t),e===``+r))return}cu(t,e,r,a)}function Tu(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(z(r,t),n=qt(``+r),e===n)return}cu(t,e,r,a)}function Eu(e,t,n,r){for(var i={},a=new Set,o=e.attributes,s=0;s<o.length;s++)switch(o[s].name.toLowerCase()){case`value`:break;case`checked`:break;case`selected`:break;default:a.add(o[s].name)}if(Vt(t)){for(var c in n)if(n.hasOwnProperty(c)){var l=n[c];if(l!=null){if(qp.hasOwnProperty(c))typeof l!=`function`&&uu(c,l);else if(!0!==n.suppressHydrationWarning)switch(c){case`children`:typeof l!=`string`&&typeof l!=`number`||cu(`children`,e.textContent,l,i);continue;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:continue;case`dangerouslySetInnerHTML`:o=e.innerHTML,l=l?l.__html:void 0,l!=null&&(l=du(e,l),cu(c,o,l,i));continue;case`style`:a.delete(c),bu(e,l,i);continue;case`offsetParent`:case`offsetTop`:case`offsetLeft`:case`offsetWidth`:case`offsetHeight`:case`isContentEditable`:case`outerText`:case`outerHTML`:a.delete(c.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",c);continue;case`className`:a.delete(`class`),o=H(e,`class`,l),cu(`className`,o,l,i);continue;default:r.context===qS&&t!==`svg`&&t!==`math`?a.delete(c.toLowerCase()):a.delete(c),o=H(e,c,l),cu(c,o,l,i)}}}}else for(l in n)if(n.hasOwnProperty(l)&&(c=n[l],c!=null)){if(qp.hasOwnProperty(l))typeof c!=`function`&&uu(l,c);else if(!0!==n.suppressHydrationWarning)switch(l){case`children`:typeof c!=`string`&&typeof c!=`number`||cu(`children`,e.textContent,c,i);continue;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`value`:case`checked`:case`selected`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:continue;case`dangerouslySetInnerHTML`:o=e.innerHTML,c=c?c.__html:void 0,c!=null&&(c=du(e,c),o!==c&&(i[l]={__html:o}));continue;case`className`:xu(e,l,`class`,c,a,i);continue;case`tabIndex`:xu(e,l,`tabindex`,c,a,i);continue;case`style`:a.delete(l),bu(e,c,i);continue;case`multiple`:a.delete(l),cu(l,e.multiple,c,i);continue;case`muted`:a.delete(l),cu(l,e.muted,c,i);continue;case`autoFocus`:a.delete(`autofocus`),cu(l,e.autofocus,c,i);continue;case`data`:if(t!==`object`){a.delete(l),o=e.getAttribute(`data`),cu(l,o,c,i);continue}case`src`:case`href`:if(!(c!==``||t===`a`&&l===`href`||t===`object`&&l===`data`)){console.error(l===`src`?`An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`:`An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`,l,l);continue}Tu(e,l,l,c,a,i);continue;case`action`:case`formAction`:if(o=e.getAttribute(l),typeof c==`function`){a.delete(l.toLowerCase()),l===`formAction`?(a.delete(`name`),a.delete(`formenctype`),a.delete(`formmethod`),a.delete(`formtarget`)):(a.delete(`enctype`),a.delete(`method`),a.delete(`target`));continue}else if(o===jS){a.delete(l.toLowerCase()),cu(l,`function`,c,i);continue}Tu(e,l,l.toLowerCase(),c,a,i);continue;case`xlinkHref`:Tu(e,l,`xlink:href`,c,a,i);continue;case`contentEditable`:Cu(e,l,`contenteditable`,c,a,i);continue;case`spellCheck`:Cu(e,l,`spellcheck`,c,a,i);continue;case`draggable`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:Cu(e,l,l,c,a,i);continue;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`:Su(e,l,l.toLowerCase(),c,a,i);continue;case`capture`:case`download`:a:{s=e;var u=o=l,d=i;if(a.delete(u),s=s.getAttribute(u),s===null)switch(typeof c){case`undefined`:case`function`:case`symbol`:break a;default:if(!1===c)break a}else if(c!=null)switch(typeof c){case`function`:case`symbol`:break;case`boolean`:if(!0===c&&s===``)break a;break;default:if(z(c,o),s===``+c)break a}cu(o,s,c,d)}continue;case`cols`:case`rows`:case`size`:case`span`:a:{if(s=e,u=o=l,d=i,a.delete(u),s=s.getAttribute(u),s===null)switch(typeof c){case`undefined`:case`function`:case`symbol`:case`boolean`:break a;default:if(isNaN(c)||1>c)break a}else if(c!=null)switch(typeof c){case`function`:case`symbol`:case`boolean`:break;default:if(!(isNaN(c)||1>c)&&(z(c,o),s===``+c))break a}cu(o,s,c,d)}continue;case`rowSpan`:wu(e,l,`rowspan`,c,a,i);continue;case`start`:wu(e,l,l,c,a,i);continue;case`xHeight`:xu(e,l,`x-height`,c,a,i);continue;case`xlinkActuate`:xu(e,l,`xlink:actuate`,c,a,i);continue;case`xlinkArcrole`:xu(e,l,`xlink:arcrole`,c,a,i);continue;case`xlinkRole`:xu(e,l,`xlink:role`,c,a,i);continue;case`xlinkShow`:xu(e,l,`xlink:show`,c,a,i);continue;case`xlinkTitle`:xu(e,l,`xlink:title`,c,a,i);continue;case`xlinkType`:xu(e,l,`xlink:type`,c,a,i);continue;case`xmlBase`:xu(e,l,`xml:base`,c,a,i);continue;case`xmlLang`:xu(e,l,`xml:lang`,c,a,i);continue;case`xmlSpace`:xu(e,l,`xml:space`,c,a,i);continue;case`inert`:c!==``||ES[l]||(ES[l]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",l)),Su(e,l,l,c,a,i);continue;default:if(!(2<l.length)||l[0]!==`o`&&l[0]!==`O`||l[1]!==`n`&&l[1]!==`N`){s=Ht(l),o=!1,r.context===qS&&t!==`svg`&&t!==`math`?a.delete(s.toLowerCase()):(u=l.toLowerCase(),u=Am.hasOwnProperty(u)&&Am[u]||null,u!==null&&u!==l&&(o=!0,a.delete(u)),a.delete(s));a:if(u=e,d=s,s=c,Ke(d))if(u.hasAttribute(d))u=u.getAttribute(d),z(s,d),s=u===``+s?s:u;else{switch(typeof s){case`function`:case`symbol`:break a;case`boolean`:if(u=d.toLowerCase().slice(0,5),u!==`data-`&&u!==`aria-`)break a}s=s===void 0?void 0:null}else s=void 0;o||cu(l,s,c,i)}}}return 0<a.size&&!0!==n.suppressHydrationWarning&&lu(e,a,i),Object.keys(i).length===0?null:i}function Du(e,t){switch(e.length){case 0:return``;case 1:return e[0];case 2:return e[0]+` `+t+` `+e[1];default:return e.slice(0,-1).join(`, `)+`, `+t+` `+e[e.length-1]}}function Ou(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function ku(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Ou(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Ou(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}function Au(e){return e.nodeType===9?e:e.ownerDocument}function ju(e){switch(e){case Om:return JS;case Dm:return YS;default:return qS}}function Mu(e,t){if(e===qS)switch(t){case`svg`:return JS;case`math`:return YS;default:return qS}return e===JS&&t===`foreignObject`?qS:e}function Nu(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function Pu(){var e=window.event;return e&&e.type===`popstate`?e===$S?!1:($S=e,!0):($S=null,!1)}function Fu(){var e=window.event;return e&&e!==eC?e.type:null}function Iu(){var e=window.event;return e&&e!==eC?e.timeStamp:-1.1}function Lu(e){setTimeout(function(){throw e})}function Ru(e,t,n){switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&e.focus();break;case`img`:n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}function zu(){}function Bu(e,t,n,r){_u(e,t,n,r),e[zp]=r}function Vu(e){Lt(e,``)}function Hu(e,t,n){e.nodeValue=n}function Uu(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[zp]||null;if(t!==null){var n=Be(e);n!==null&&(typeof t.children==`string`||typeof t.children==`number`?(e.__reactWarnedAboutChildrenConflict=!0,R(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,R(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Wu(e){return e===`head`}function Gu(e,t){e.removeChild(t)}function Ku(e,t){(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e).removeChild(t)}function qu(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===IS||n===PS){if(r===0){e.removeChild(i),pf(t);return}r--}else if(n===FS||n===LS||n===RS||n===zS||n===NS)r++;else if(n===BS)vd(e.ownerDocument.documentElement);else if(n===HS){n=e.ownerDocument.head,vd(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Gp]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===VS&&vd(e.ownerDocument.body);n=i}while(n);pf(t)}function Ju(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===IS){if(e===0)break;e--}else n!==FS&&n!==LS&&n!==RS&&n!==zS||e++;n=r}while(n)}function Yu(e){Ju(e,!0)}function Xu(e){e=e.style,typeof e.setProperty==`function`?e.setProperty(`display`,`none`,`important`):e.display=`none`}function Zu(e){e.nodeValue=``}function Qu(e){Ju(e,!1)}function $u(e,t){t=t[KS],t=t!=null&&t.hasOwnProperty(`display`)?t.display:null,e.style.display=t==null||typeof t==`boolean`?``:(``+t).trim()}function ed(e,t){e.nodeValue=t}function td(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:td(n),Re(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function nd(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){z(i.name,`name`);var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[Gp])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=cd(e.nextSibling),e===null)break}return null}function rd(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cd(e.nextSibling),e===null))return null;return e}function id(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cd(e.nextSibling),e===null))return null;return e}function ad(e){return e.data===LS||e.data===RS}function od(e){return e.data===zS||e.data===LS&&e.ownerDocument.readyState!==GS}function sd(e,t){var n=e.ownerDocument;if(e.data===RS)e._reactRetry=t;else if(e.data!==LS||n.readyState!==GS)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function cd(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===FS||t===zS||t===LS||t===RS||t===NS||t===US||t===WS)break;if(t===IS||t===PS)return null}}return e}function ld(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),n={},r=e.attributes,i=0;i<r.length;i++){var a=r[i];n[vu(a.name)]=a.name.toLowerCase()===`style`?yu(e):a.value}return{type:t,props:n}}return e.nodeType===8?e.data===NS?{type:`Activity`,props:{}}:{type:`Suspense`,props:{}}:e.nodeValue}function ud(e,t,n){return n===null||!0!==n[MS]?(e.nodeValue===t?e=null:(t=fu(t),e=fu(e.nodeValue)===t?null:e.nodeValue),e):null}function dd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===IS||n===PS){if(t===0)return cd(e.nextSibling);t--}else n!==FS&&n!==zS&&n!==LS&&n!==RS&&n!==NS||t++}e=e.nextSibling}return null}function fd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===FS||n===zS||n===LS||n===RS||n===NS){if(t===0)return e;t--}else n!==IS&&n!==PS||t++}e=e.previousSibling}return null}function pd(e){pf(e)}function md(e){pf(e)}function hd(e){pf(e)}function gd(e,t,n,r,i){switch(i&&Ft(e,r.ancestorInfo),t=Au(n),e){case`html`:if(e=t.documentElement,!e)throw Error(`React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.`);return e;case`head`:if(e=t.head,!e)throw Error(`React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.`);return e;case`body`:if(e=t.body,!e)throw Error(`React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.`);return e;default:throw Error(`resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.`)}}function _d(e,t,n,r){if(!n[Bp]&&Be(n)){var i=n.tagName.toLowerCase();console.error(`You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.`,i,i,i)}switch(e){case`html`:case`head`:case`body`:break;default:console.error(`acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.`)}for(i=n.attributes;i.length;)n.removeAttributeNode(i[0]);gu(n,e,t),n[Rp]=r,n[zp]=t}function vd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Re(e)}function yd(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function bd(e,t,n){var r=hC;if(r&&typeof t==`string`&&t){var i=nt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),pC.has(i)||(pC.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),gu(t,`link`,e),Ue(t),r.head.appendChild(t)))}}function xd(e,t,n,r){var i=(i=qf.current)?yd(i):null;if(!i)throw Error(`"resourceRoot" was expected to exist. This is a bug in React.`);switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Cd(n.href),t=He(i).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Cd(n.href);var a=He(i).hoistableStyles,o=a.get(e);if(!o&&(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:sC,preload:null}},a.set(e,o),(a=i.querySelector(wd(e)))&&!a._p&&(o.instance=a,o.state.loading=cC|dC),!fC.has(e))){var s={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy};fC.set(e,s),a||Ed(i,e,s,o.state)}if(t&&r===null)throw n=`
188
+ `).replace(OS,``)}function pu(e,t){return t=fu(t),fu(e)===t}function mu(e,t,n,r,i,a){switch(n){case`children`:typeof r==`string`?(It(r,t,!1),t===`body`||t===`textarea`&&r===``||Lt(e,r)):(typeof r==`number`||typeof r==`bigint`)&&(It(``+r,t,!1),t!==`body`&&Lt(e,``+r));break;case`className`:Je(e,`class`,r);break;case`tabIndex`:Je(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Je(e,n,r);break;case`style`:Bt(e,r,a);break;case`data`:if(t!==`object`){Je(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){console.error(n===`src`?`An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`:`An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`,n,n),e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}z(r,n),r=qt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(r!=null&&(t===`form`?n===`formAction`?console.error(`You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>.`):typeof r==`function`&&(i.encType==null&&i.method==null||wS||(wS=!0,console.error(`Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.`)),i.target==null||CS||(CS=!0,console.error(`Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window.`))):t===`input`||t===`button`?n===`action`?console.error(`You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>.`):t!==`input`||i.type===`submit`||i.type===`image`||xS?t!==`button`||i.type==null||i.type===`submit`||xS?typeof r==`function`&&(i.name==null||SS||(SS=!0,console.error(`Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.`)),i.formEncType==null&&i.formMethod==null||wS||(wS=!0,console.error(`Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.`)),i.formTarget==null||CS||(CS=!0,console.error(`Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window.`))):(xS=!0,console.error(`A button can only specify a formAction along with type="submit" or no type.`)):(xS=!0,console.error(`An input can only specify a formAction along with type="submit" or type="image".`)):console.error(n===`action`?`You can only pass the action prop to <form>.`:`You can only pass the formAction prop to <input> or <button>.`)),typeof r==`function`){e.setAttribute(n,`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`&&(n===`formAction`?(t!==`input`&&mu(e,t,`name`,i.name,i,null),mu(e,t,`formEncType`,i.formEncType,i,null),mu(e,t,`formMethod`,i.formMethod,i,null),mu(e,t,`formTarget`,i.formTarget,i,null)):(mu(e,t,`encType`,i.encType,i,null),mu(e,t,`method`,i.method,i,null),mu(e,t,`target`,i.target,i,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}z(r,n),r=qt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(typeof r!=`function`&&uu(n,r),e.onclick=Jt);break;case`onScroll`:r!=null&&(typeof r!=`function`&&uu(n,r),Ql(`scroll`,e));break;case`onScrollEnd`:r!=null&&(typeof r!=`function`&&uu(n,r),Ql(`scrollend`,e));break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=r.__html,n!=null){if(i.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}z(r,n),n=qt(``+r),e.setAttributeNS(kS,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?(z(r,n),e.setAttribute(n,``+r)):e.removeAttribute(n);break;case`inert`:r!==``||ES[n]||(ES[n]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",n));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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?(z(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?(z(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):(z(r,n),e.setAttribute(n,r));break;case`popover`:Ql(`beforetoggle`,e),Ql(`toggle`,e),qe(e,`popover`,r);break;case`xlinkActuate`:Ye(e,kS,`xlink:actuate`,r);break;case`xlinkArcrole`:Ye(e,kS,`xlink:arcrole`,r);break;case`xlinkRole`:Ye(e,kS,`xlink:role`,r);break;case`xlinkShow`:Ye(e,kS,`xlink:show`,r);break;case`xlinkTitle`:Ye(e,kS,`xlink:title`,r);break;case`xlinkType`:Ye(e,kS,`xlink:type`,r);break;case`xmlBase`:Ye(e,AS,`xml:base`,r);break;case`xmlLang`:Ye(e,AS,`xml:lang`,r);break;case`xmlSpace`:Ye(e,AS,`xml:space`,r);break;case`is`:a!=null&&console.error(`Cannot update the "is" prop after it has been initialized.`),qe(e,`is`,r);break;case`innerText`:case`textContent`:break;case`popoverTarget`:TS||typeof r!=`object`||!r||(TS=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",r));default:!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`?(n=Ht(n),qe(e,n,r)):qp.hasOwnProperty(n)&&r!=null&&typeof r!=`function`&&uu(n,r)}}function hu(e,t,n,r,i,a){switch(n){case`style`:Bt(e,r,a);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=r.__html,n!=null){if(i.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case`children`:typeof r==`string`?Lt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Lt(e,``+r);break;case`onScroll`:r!=null&&(typeof r!=`function`&&uu(n,r),Ql(`scroll`,e));break;case`onScrollEnd`:r!=null&&(typeof r!=`function`&&uu(n,r),Ql(`scrollend`,e));break;case`onClick`:r!=null&&(typeof r!=`function`&&uu(n,r),e.onclick=Jt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(qp.hasOwnProperty(n))r!=null&&typeof r!=`function`&&uu(n,r);else a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),a=e[zp]||null,a=a==null?null:a[n],typeof a==`function`&&e.removeEventListener(t,a,i),typeof r==`function`)){typeof a!=`function`&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):qe(e,n,r)}}}function gu(e,t,n){switch(su(t,n),t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Ql(`error`,e),Ql(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:mu(e,t,a,o,n,null)}}i&&mu(e,t,`srcSet`,n.srcSet,n,null),r&&mu(e,t,`src`,n.src,n,null);return;case`input`:Ge(`input`,n),Ql(`invalid`,e);var s=a=o=i=null,c=null,l=null;for(r in n)if(n.hasOwnProperty(r)){var u=n[r];if(u!=null)switch(r){case`name`:i=u;break;case`type`:o=u;break;case`checked`:c=u;break;case`defaultChecked`:l=u;break;case`value`:a=u;break;case`defaultValue`:s=u;break;case`children`:case`dangerouslySetInnerHTML`:if(u!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:mu(e,t,r,u,n,null)}}rt(e,n),at(e,a,s,c,l,o,i,!1);return;case`select`:for(i in Ge(`select`,n),Ql(`invalid`,e),r=o=a=null,n)if(n.hasOwnProperty(i)&&(s=n[i],s!=null))switch(i){case`value`:a=s;break;case`defaultValue`:o=s;break;case`multiple`:r=s;default:mu(e,t,i,s,n,null)}ut(e,n),t=a,n=o,e.multiple=!!r,t==null?n!=null&&lt(e,!!r,n,!0):lt(e,!!r,t,!1);return;case`textarea`:for(o in Ge(`textarea`,n),Ql(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(o)&&(s=n[o],s!=null))switch(o){case`value`:r=s;break;case`defaultValue`:i=s;break;case`children`:a=s;break;case`dangerouslySetInnerHTML`:if(s!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:mu(e,t,o,s,n,null)}dt(e,n),pt(e,r,i,a);return;case`option`:for(c in st(e,n),n)if(n.hasOwnProperty(c)&&(r=n[c],r!=null))switch(c){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:mu(e,t,c,r,n,null)}return;case`dialog`:Ql(`beforetoggle`,e),Ql(`toggle`,e),Ql(`cancel`,e),Ql(`close`,e);break;case`iframe`:case`object`:Ql(`load`,e);break;case`video`:case`audio`:for(r=0;r<gS.length;r++)Ql(gS[r],e);break;case`image`:Ql(`error`,e),Ql(`load`,e);break;case`details`:Ql(`toggle`,e);break;case`embed`:case`source`:case`link`:Ql(`error`,e),Ql(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`children`:case`dangerouslySetInnerHTML`:throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:mu(e,t,l,r,n,null)}return;default:if(Vt(t)){for(u in n)n.hasOwnProperty(u)&&(r=n[u],r!==void 0&&hu(e,t,u,r,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(r=n[s],r!=null&&mu(e,t,s,r,n,null))}function _u(e,t,n,r){switch(su(t,r),t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,a=null,o=null,s=null,c=null,l=null,u=null;for(p in n){var d=n[p];if(n.hasOwnProperty(p)&&d!=null)switch(p){case`checked`:break;case`value`:break;case`defaultValue`:c=d;default:r.hasOwnProperty(p)||mu(e,t,p,null,r,d)}}for(var f in r){var p=r[f];if(d=n[f],r.hasOwnProperty(f)&&(p!=null||d!=null))switch(f){case`type`:a=p;break;case`name`:i=p;break;case`checked`:l=p;break;case`defaultChecked`:u=p;break;case`value`:o=p;break;case`defaultValue`:s=p;break;case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:p!==d&&mu(e,t,f,p,r,d)}}t=n.type===`checkbox`||n.type===`radio`?n.checked!=null:n.value!=null,r=r.type===`checkbox`||r.type===`radio`?r.checked!=null:r.value!=null,t||!r||bS||(console.error(`A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components`),bS=!0),!t||r||yS||(console.error(`A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components`),yS=!0),it(e,o,s,c,l,u,a,i);return;case`select`:for(a in p=o=s=f=null,n)if(c=n[a],n.hasOwnProperty(a)&&c!=null)switch(a){case`value`:break;case`multiple`:p=c;default:r.hasOwnProperty(a)||mu(e,t,a,null,r,c)}for(i in r)if(a=r[i],c=n[i],r.hasOwnProperty(i)&&(a!=null||c!=null))switch(i){case`value`:f=a;break;case`defaultValue`:s=a;break;case`multiple`:o=a;default:a!==c&&mu(e,t,i,a,r,c)}r=s,t=o,n=p,f==null?!!n!=!!t&&(r==null?lt(e,!!t,t?[]:``,!1):lt(e,!!t,r,!0)):lt(e,!!t,f,!1);return;case`textarea`:for(s in p=f=null,n)if(i=n[s],n.hasOwnProperty(s)&&i!=null&&!r.hasOwnProperty(s))switch(s){case`value`:break;case`children`:break;default:mu(e,t,s,null,r,i)}for(o in r)if(i=r[o],a=n[o],r.hasOwnProperty(o)&&(i!=null||a!=null))switch(o){case`value`:f=i;break;case`defaultValue`:p=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:i!==a&&mu(e,t,o,i,r,a)}ft(e,f,p);return;case`option`:for(var m in n)if(f=n[m],n.hasOwnProperty(m)&&f!=null&&!r.hasOwnProperty(m))switch(m){case`selected`:e.selected=!1;break;default:mu(e,t,m,null,r,f)}for(c in r)if(f=r[c],p=n[c],r.hasOwnProperty(c)&&f!==p&&(f!=null||p!=null))switch(c){case`selected`:e.selected=f&&typeof f!=`function`&&typeof f!=`symbol`;break;default:mu(e,t,c,f,r,p)}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 h in n)f=n[h],n.hasOwnProperty(h)&&f!=null&&!r.hasOwnProperty(h)&&mu(e,t,h,null,r,f);for(l in r)if(f=r[l],p=n[l],r.hasOwnProperty(l)&&f!==p&&(f!=null||p!=null))switch(l){case`children`:case`dangerouslySetInnerHTML`:if(f!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:mu(e,t,l,f,r,p)}return;default:if(Vt(t)){for(var g in n)f=n[g],n.hasOwnProperty(g)&&f!==void 0&&!r.hasOwnProperty(g)&&hu(e,t,g,void 0,r,f);for(u in r)f=r[u],p=n[u],!r.hasOwnProperty(u)||f===p||f===void 0&&p===void 0||hu(e,t,u,f,r,p);return}}for(var _ in n)f=n[_],n.hasOwnProperty(_)&&f!=null&&!r.hasOwnProperty(_)&&mu(e,t,_,null,r,f);for(d in r)f=r[d],p=n[d],!r.hasOwnProperty(d)||f===p||f==null&&p==null||mu(e,t,d,f,r,p)}function vu(e){switch(e){case`class`:return`className`;case`for`:return`htmlFor`;default:return e}}function yu(e){var t={};e=e.style;for(var n=0;n<e.length;n++){var r=e[n];t[r]=e.getPropertyValue(r)}return t}function bu(e,t,n){if(t!=null&&typeof t!=`object`)console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var r,i=r=``,a;for(a in t)if(t.hasOwnProperty(a)){var o=t[a];o!=null&&typeof o!=`boolean`&&o!==``&&(a.indexOf(`--`)===0?(_e(o,a),r+=i+a+`:`+(``+o).trim()):typeof o!=`number`||o===0||Em.has(a)?(_e(o,a),r+=i+a.replace(gm,`-$1`).toLowerCase().replace(_m,`-ms-`)+`:`+(``+o).trim()):r+=i+a.replace(gm,`-$1`).toLowerCase().replace(_m,`-ms-`)+`:`+o+`px`,i=`;`)}r||=null,t=e.getAttribute(`style`),t!==r&&(r=fu(r),fu(t)!==r&&(n.style=yu(e)))}}function xu(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(z(r,t),e===``+r)return}cu(t,e,r,a)}function Su(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null){switch(typeof r){case`function`:case`symbol`:return}if(!r)return}else switch(typeof r){case`function`:case`symbol`:break;default:if(r)return}cu(t,e,r,a)}function Cu(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:break;default:if(z(r,n),e===``+r)return}cu(t,e,r,a)}function wu(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return;default:if(isNaN(r))return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(!isNaN(r)&&(z(r,t),e===``+r))return}cu(t,e,r,a)}function Tu(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(z(r,t),n=qt(``+r),e===n)return}cu(t,e,r,a)}function Eu(e,t,n,r){for(var i={},a=new Set,o=e.attributes,s=0;s<o.length;s++)switch(o[s].name.toLowerCase()){case`value`:break;case`checked`:break;case`selected`:break;default:a.add(o[s].name)}if(Vt(t)){for(var c in n)if(n.hasOwnProperty(c)){var l=n[c];if(l!=null){if(qp.hasOwnProperty(c))typeof l!=`function`&&uu(c,l);else if(!0!==n.suppressHydrationWarning)switch(c){case`children`:typeof l!=`string`&&typeof l!=`number`||cu(`children`,e.textContent,l,i);continue;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:continue;case`dangerouslySetInnerHTML`:o=e.innerHTML,l=l?l.__html:void 0,l!=null&&(l=du(e,l),cu(c,o,l,i));continue;case`style`:a.delete(c),bu(e,l,i);continue;case`offsetParent`:case`offsetTop`:case`offsetLeft`:case`offsetWidth`:case`offsetHeight`:case`isContentEditable`:case`outerText`:case`outerHTML`:a.delete(c.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",c);continue;case`className`:a.delete(`class`),o=H(e,`class`,l),cu(`className`,o,l,i);continue;default:r.context===qS&&t!==`svg`&&t!==`math`?a.delete(c.toLowerCase()):a.delete(c),o=H(e,c,l),cu(c,o,l,i)}}}}else for(l in n)if(n.hasOwnProperty(l)&&(c=n[l],c!=null)){if(qp.hasOwnProperty(l))typeof c!=`function`&&uu(l,c);else if(!0!==n.suppressHydrationWarning)switch(l){case`children`:typeof c!=`string`&&typeof c!=`number`||cu(`children`,e.textContent,c,i);continue;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`value`:case`checked`:case`selected`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:continue;case`dangerouslySetInnerHTML`:o=e.innerHTML,c=c?c.__html:void 0,c!=null&&(c=du(e,c),o!==c&&(i[l]={__html:o}));continue;case`className`:xu(e,l,`class`,c,a,i);continue;case`tabIndex`:xu(e,l,`tabindex`,c,a,i);continue;case`style`:a.delete(l),bu(e,c,i);continue;case`multiple`:a.delete(l),cu(l,e.multiple,c,i);continue;case`muted`:a.delete(l),cu(l,e.muted,c,i);continue;case`autoFocus`:a.delete(`autofocus`),cu(l,e.autofocus,c,i);continue;case`data`:if(t!==`object`){a.delete(l),o=e.getAttribute(`data`),cu(l,o,c,i);continue}case`src`:case`href`:if(!(c!==``||t===`a`&&l===`href`||t===`object`&&l===`data`)){console.error(l===`src`?`An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`:`An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`,l,l);continue}Tu(e,l,l,c,a,i);continue;case`action`:case`formAction`:if(o=e.getAttribute(l),typeof c==`function`){a.delete(l.toLowerCase()),l===`formAction`?(a.delete(`name`),a.delete(`formenctype`),a.delete(`formmethod`),a.delete(`formtarget`)):(a.delete(`enctype`),a.delete(`method`),a.delete(`target`));continue}else if(o===jS){a.delete(l.toLowerCase()),cu(l,`function`,c,i);continue}Tu(e,l,l.toLowerCase(),c,a,i);continue;case`xlinkHref`:Tu(e,l,`xlink:href`,c,a,i);continue;case`contentEditable`:Cu(e,l,`contenteditable`,c,a,i);continue;case`spellCheck`:Cu(e,l,`spellcheck`,c,a,i);continue;case`draggable`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:Cu(e,l,l,c,a,i);continue;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`:Su(e,l,l.toLowerCase(),c,a,i);continue;case`capture`:case`download`:a:{s=e;var u=o=l,d=i;if(a.delete(u),s=s.getAttribute(u),s===null)switch(typeof c){case`undefined`:case`function`:case`symbol`:break a;default:if(!1===c)break a}else if(c!=null)switch(typeof c){case`function`:case`symbol`:break;case`boolean`:if(!0===c&&s===``)break a;break;default:if(z(c,o),s===``+c)break a}cu(o,s,c,d)}continue;case`cols`:case`rows`:case`size`:case`span`:a:{if(s=e,u=o=l,d=i,a.delete(u),s=s.getAttribute(u),s===null)switch(typeof c){case`undefined`:case`function`:case`symbol`:case`boolean`:break a;default:if(isNaN(c)||1>c)break a}else if(c!=null)switch(typeof c){case`function`:case`symbol`:case`boolean`:break;default:if(!(isNaN(c)||1>c)&&(z(c,o),s===``+c))break a}cu(o,s,c,d)}continue;case`rowSpan`:wu(e,l,`rowspan`,c,a,i);continue;case`start`:wu(e,l,l,c,a,i);continue;case`xHeight`:xu(e,l,`x-height`,c,a,i);continue;case`xlinkActuate`:xu(e,l,`xlink:actuate`,c,a,i);continue;case`xlinkArcrole`:xu(e,l,`xlink:arcrole`,c,a,i);continue;case`xlinkRole`:xu(e,l,`xlink:role`,c,a,i);continue;case`xlinkShow`:xu(e,l,`xlink:show`,c,a,i);continue;case`xlinkTitle`:xu(e,l,`xlink:title`,c,a,i);continue;case`xlinkType`:xu(e,l,`xlink:type`,c,a,i);continue;case`xmlBase`:xu(e,l,`xml:base`,c,a,i);continue;case`xmlLang`:xu(e,l,`xml:lang`,c,a,i);continue;case`xmlSpace`:xu(e,l,`xml:space`,c,a,i);continue;case`inert`:c!==``||ES[l]||(ES[l]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",l)),Su(e,l,l,c,a,i);continue;default:if(!(2<l.length)||l[0]!==`o`&&l[0]!==`O`||l[1]!==`n`&&l[1]!==`N`){s=Ht(l),o=!1,r.context===qS&&t!==`svg`&&t!==`math`?a.delete(s.toLowerCase()):(u=l.toLowerCase(),u=Am.hasOwnProperty(u)&&Am[u]||null,u!==null&&u!==l&&(o=!0,a.delete(u)),a.delete(s));a:if(u=e,d=s,s=c,Ke(d))if(u.hasAttribute(d))u=u.getAttribute(d),z(s,d),s=u===``+s?s:u;else{switch(typeof s){case`function`:case`symbol`:break a;case`boolean`:if(u=d.toLowerCase().slice(0,5),u!==`data-`&&u!==`aria-`)break a}s=s===void 0?void 0:null}else s=void 0;o||cu(l,s,c,i)}}}return 0<a.size&&!0!==n.suppressHydrationWarning&&lu(e,a,i),Object.keys(i).length===0?null:i}function Du(e,t){switch(e.length){case 0:return``;case 1:return e[0];case 2:return e[0]+` `+t+` `+e[1];default:return e.slice(0,-1).join(`, `)+`, `+t+` `+e[e.length-1]}}function Ou(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function ku(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Ou(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Ou(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}function Au(e){return e.nodeType===9?e:e.ownerDocument}function ju(e){switch(e){case Om:return JS;case Dm:return YS;default:return qS}}function Mu(e,t){if(e===qS)switch(t){case`svg`:return JS;case`math`:return YS;default:return qS}return e===JS&&t===`foreignObject`?qS:e}function Nu(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function Pu(){var e=window.event;return e&&e.type===`popstate`?e===$S?!1:($S=e,!0):($S=null,!1)}function Fu(){var e=window.event;return e&&e!==eC?e.type:null}function Iu(){var e=window.event;return e&&e!==eC?e.timeStamp:-1.1}function Lu(e){setTimeout(function(){throw e})}function Ru(e,t,n){switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&e.focus();break;case`img`:n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}function zu(){}function Bu(e,t,n,r){_u(e,t,n,r),e[zp]=r}function Vu(e){Lt(e,``)}function Hu(e,t,n){e.nodeValue=n}function Uu(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[zp]||null;if(t!==null){var n=Be(e);n!==null&&(typeof t.children==`string`||typeof t.children==`number`?(e.__reactWarnedAboutChildrenConflict=!0,R(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,R(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Wu(e){return e===`head`}function Gu(e,t){e.removeChild(t)}function Ku(e,t){(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e).removeChild(t)}function qu(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===IS||n===PS){if(r===0){e.removeChild(i),pf(t);return}r--}else if(n===FS||n===LS||n===RS||n===zS||n===NS)r++;else if(n===BS)vd(e.ownerDocument.documentElement);else if(n===HS){n=e.ownerDocument.head,vd(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Gp]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===VS&&vd(e.ownerDocument.body);n=i}while(n);pf(t)}function Ju(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===IS){if(e===0)break;e--}else n!==FS&&n!==LS&&n!==RS&&n!==zS||e++;n=r}while(n)}function Yu(e){Ju(e,!0)}function Xu(e){e=e.style,typeof e.setProperty==`function`?e.setProperty(`display`,`none`,`important`):e.display=`none`}function Zu(e){e.nodeValue=``}function Qu(e){Ju(e,!1)}function $u(e,t){t=t[KS],t=t!=null&&t.hasOwnProperty(`display`)?t.display:null,e.style.display=t==null||typeof t==`boolean`?``:(``+t).trim()}function ed(e,t){e.nodeValue=t}function td(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:td(n),Re(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function nd(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){z(i.name,`name`);var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[Gp])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=cd(e.nextSibling),e===null)break}return null}function rd(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cd(e.nextSibling),e===null))return null;return e}function id(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cd(e.nextSibling),e===null))return null;return e}function ad(e){return e.data===LS||e.data===RS}function od(e){return e.data===zS||e.data===LS&&e.ownerDocument.readyState!==GS}function sd(e,t){var n=e.ownerDocument;if(e.data===RS)e._reactRetry=t;else if(e.data!==LS||n.readyState!==GS)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function cd(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===FS||t===zS||t===LS||t===RS||t===NS||t===US||t===WS)break;if(t===IS||t===PS)return null}}return e}function ld(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),n={},r=e.attributes,i=0;i<r.length;i++){var a=r[i];n[vu(a.name)]=a.name.toLowerCase()===`style`?yu(e):a.value}return{type:t,props:n}}return e.nodeType===8?e.data===NS?{type:`Activity`,props:{}}:{type:`Suspense`,props:{}}:e.nodeValue}function ud(e,t,n){return n===null||!0!==n[MS]?(e.nodeValue===t?e=null:(t=fu(t),e=fu(e.nodeValue)===t?null:e.nodeValue),e):null}function dd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===IS||n===PS){if(t===0)return cd(e.nextSibling);t--}else n!==FS&&n!==zS&&n!==LS&&n!==RS&&n!==NS||t++}e=e.nextSibling}return null}function fd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===FS||n===zS||n===LS||n===RS||n===NS){if(t===0)return e;t--}else n!==IS&&n!==PS||t++}e=e.previousSibling}return null}function pd(e){pf(e)}function md(e){pf(e)}function hd(e){pf(e)}function gd(e,t,n,r,i){switch(i&&Ft(e,r.ancestorInfo),t=Au(n),e){case`html`:if(e=t.documentElement,!e)throw Error(`React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.`);return e;case`head`:if(e=t.head,!e)throw Error(`React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.`);return e;case`body`:if(e=t.body,!e)throw Error(`React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.`);return e;default:throw Error(`resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.`)}}function _d(e,t,n,r){if(!n[Bp]&&Be(n)){var i=n.tagName.toLowerCase();console.error(`You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.`,i,i,i)}switch(e){case`html`:case`head`:case`body`:break;default:console.error(`acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.`)}for(i=n.attributes;i.length;)n.removeAttributeNode(i[0]);gu(n,e,t),n[Rp]=r,n[zp]=t}function vd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Re(e)}function yd(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function bd(e,t,n){var r=mC;if(r&&typeof t==`string`&&t){var i=nt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Z.has(i)||(Z.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),gu(t,`link`,e),Ue(t),r.head.appendChild(t)))}}function xd(e,t,n,r){var i=(i=qf.current)?yd(i):null;if(!i)throw Error(`"resourceRoot" was expected to exist. This is a bug in React.`);switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Cd(n.href),t=He(i).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Cd(n.href);var a=He(i).hoistableStyles,o=a.get(e);if(!o&&(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:sC,preload:null}},a.set(e,o),(a=i.querySelector(wd(e)))&&!a._p&&(o.instance=a,o.state.loading=cC|dC),!fC.has(e))){var s={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy};fC.set(e,s),a||Ed(i,e,s,o.state)}if(t&&r===null)throw n=`
189
189
 
190
190
  - `+Sd(t)+`
191
191
  + `+Sd(n),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return o}if(t&&r!==null)throw n=`
192
192
 
193
193
  - `+Sd(t)+`
194
- + `+Sd(n),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Dd(n),t=He(i).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(`getResource encountered a type it did not expect: "`+e+`". this is a bug in React.`)}}function Sd(e){var t=0,n=`<link`;return typeof e.rel==`string`?(t++,n+=` rel="`+e.rel+`"`):lp.call(e,`rel`)&&(t++,n+=` rel="`+(e.rel===null?`null`:`invalid type `+typeof e.rel)+`"`),typeof e.href==`string`?(t++,n+=` href="`+e.href+`"`):lp.call(e,`href`)&&(t++,n+=` href="`+(e.href===null?`null`:`invalid type `+typeof e.href)+`"`),typeof e.precedence==`string`?(t++,n+=` precedence="`+e.precedence+`"`):lp.call(e,`precedence`)&&(t++,n+=` precedence={`+(e.precedence===null?`null`:`invalid type `+typeof e.precedence)+`}`),Object.getOwnPropertyNames(e).length>t&&(n+=` ...`),n+` />`}function Cd(e){return`href="`+nt(e)+`"`}function wd(e){return`link[rel="stylesheet"][`+e+`]`}function Td(e){return xf({},e,{"data-precedence":e.precedence,precedence:null})}function Ed(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=cC:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=cC}),t.addEventListener(`error`,function(){return r.loading|=lC}),gu(t,`link`,n),Ue(t),e.head.appendChild(t))}function Dd(e){return`[src="`+nt(e)+`"]`}function Od(e){return`script[async]`+e}function kd(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+nt(n.href)+`"]`);if(r)return t.instance=r,Ue(r),r;var i=xf({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ue(r),gu(r,`style`,i),Ad(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Cd(n.href);var a=e.querySelector(wd(i));if(a)return t.state.loading|=dC,t.instance=a,Ue(a),a;r=Td(n),(i=fC.get(i))&&jd(r,i),a=(e.ownerDocument||e).createElement(`link`),Ue(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),gu(a,`link`,r),t.state.loading|=dC,Ad(a,n.precedence,e),t.instance=a;case`script`:return a=Dd(n.src),(i=e.querySelector(Od(a)))?(t.instance=i,Ue(i),i):(r=n,(i=fC.get(a))&&(r=xf({},n),Md(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),Ue(i),gu(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(`acquireResource encountered a resource type it did not expect: "`+t.type+`". this is a bug in React.`)}else t.type===`stylesheet`&&(t.state.loading&dC)===sC&&(r=t.instance,t.state.loading|=dC,Ad(r,n.precedence,e));return t.instance}function Ad(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function jd(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Md(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}function Nd(e,t,n){if(gC===null){var r=new Map,i=gC=new Map;i.set(n,r)}else i=gC,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Gp]||a[Rp]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==Om){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Pd(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Fd(e,t,n){var r=!n.ancestorInfo.containerTagInScope;if(n.context===JS||t.itemProp!=null)return!r||t.itemProp==null||e!==`meta`&&e!==`title`&&e!==`style`&&e!==`link`&&e!==`script`||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``){r&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError){if(t.rel===`stylesheet`&&typeof t.precedence==`string`){e=t.href;var i=t.onError,a=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),i&&n.push("`onError`"),a!=null&&n.push("`disabled`"),i=Du(n,`and`),i+=n.length===1?` prop`:` props`,a=n.length===1?`an `+i:`the `+i,n.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,a,i)}r&&(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error(`Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.`));break}switch(t.rel){case`stylesheet`:return e=t.precedence,t=t.disabled,typeof e!=`string`&&r&&console.error(`Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.`),typeof e==`string`&&t==null;default:return!0}case`script`:if(e=t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`,!e||t.onLoad||t.onError||!t.src||typeof t.src!=`string`){r&&(e?t.onLoad||t.onError?console.error(`Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.`):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error(`Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.`));break}return!0;case`noscript`:case`template`:r&&console.error(`Cannot render <%s> outside the main document. Try moving it into the root <head> tag.`,e)}return!1}function Id(e){return!(e.type===`stylesheet`&&(e.state.loading&uC)===sC)}function Ld(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&(n.state.loading&dC)===sC){if(n.instance===null){var i=Cd(r.href),a=t.querySelector(wd(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=zd.bind(e),t.then(e,e)),n.state.loading|=dC,n.instance=a,Ue(a);return}a=t.ownerDocument||t,r=Td(r),(i=fC.get(i))&&jd(r,i),a=a.createElement(`link`),Ue(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),gu(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&uC)===sC&&(e.count++,n=zd.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}function Rd(e,t){return e.stylesheets&&e.count===0&&Bd(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Bd(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},_C+t);0<e.imgBytes&&yC===0&&(yC=125*ku()*vC);var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Bd(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>yC?50:Z)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function zd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Bd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Bd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,xC=new Map,t.forEach(Vd,e),xC=null,zd.call(e))}function Vd(e,t){if(!(t.state.loading&dC)){var n=xC.get(e);if(n)var r=n.get(bC);else{n=new Map,xC.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(bC,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(bC,i),n.set(o,i),this.count++,r=zd.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=dC}}function Hd(e,t,n,r,i,a,o,s,c){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=rC,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ee(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ee(0),this.hiddenUpdates=Ee(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=n?`hydrateRoot()`:`createRoot()`}function Ud(e,t,n,r,i,a,o,s,c,l,u,d){return e=new Hd(e,t,n,o,c,l,u,d,s),t=Mg,!0===a&&(t|=Pg|Fg),t|=Ng,a=m(3,null,null,t),e.current=a,a.stateNode=e,t=qr(),Jr(t),e.pooledCache=t,Jr(t),a.memoizedState={element:r,isDehydrated:n,cache:t},Ri(a),e}function Wd(e){return e?(e=Og,e):Og}function Gd(e,t,n,r,i,a){if(wp&&typeof wp.onScheduleFiberRoot==`function`)try{wp.onScheduleFiberRoot(Cp,r,n)}catch(e){Tp||(Tp=!0,console.error(`React instrumentation encountered an error: %o`,e))}i=Wd(i),r.context===null?r.context=i:r.pendingContext=i,cp&&sp!==null&&!kC&&(kC=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
194
+ + `+Sd(n),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Dd(n),t=He(i).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(`getResource encountered a type it did not expect: "`+e+`". this is a bug in React.`)}}function Sd(e){var t=0,n=`<link`;return typeof e.rel==`string`?(t++,n+=` rel="`+e.rel+`"`):lp.call(e,`rel`)&&(t++,n+=` rel="`+(e.rel===null?`null`:`invalid type `+typeof e.rel)+`"`),typeof e.href==`string`?(t++,n+=` href="`+e.href+`"`):lp.call(e,`href`)&&(t++,n+=` href="`+(e.href===null?`null`:`invalid type `+typeof e.href)+`"`),typeof e.precedence==`string`?(t++,n+=` precedence="`+e.precedence+`"`):lp.call(e,`precedence`)&&(t++,n+=` precedence={`+(e.precedence===null?`null`:`invalid type `+typeof e.precedence)+`}`),Object.getOwnPropertyNames(e).length>t&&(n+=` ...`),n+` />`}function Cd(e){return`href="`+nt(e)+`"`}function wd(e){return`link[rel="stylesheet"][`+e+`]`}function Td(e){return xf({},e,{"data-precedence":e.precedence,precedence:null})}function Ed(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=cC:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=cC}),t.addEventListener(`error`,function(){return r.loading|=lC}),gu(t,`link`,n),Ue(t),e.head.appendChild(t))}function Dd(e){return`[src="`+nt(e)+`"]`}function Od(e){return`script[async]`+e}function kd(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+nt(n.href)+`"]`);if(r)return t.instance=r,Ue(r),r;var i=xf({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ue(r),gu(r,`style`,i),Ad(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Cd(n.href);var a=e.querySelector(wd(i));if(a)return t.state.loading|=dC,t.instance=a,Ue(a),a;r=Td(n),(i=fC.get(i))&&jd(r,i),a=(e.ownerDocument||e).createElement(`link`),Ue(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),gu(a,`link`,r),t.state.loading|=dC,Ad(a,n.precedence,e),t.instance=a;case`script`:return a=Dd(n.src),(i=e.querySelector(Od(a)))?(t.instance=i,Ue(i),i):(r=n,(i=fC.get(a))&&(r=xf({},n),Md(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),Ue(i),gu(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(`acquireResource encountered a resource type it did not expect: "`+t.type+`". this is a bug in React.`)}else t.type===`stylesheet`&&(t.state.loading&dC)===sC&&(r=t.instance,t.state.loading|=dC,Ad(r,n.precedence,e));return t.instance}function Ad(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function jd(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Md(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}function Nd(e,t,n){if(hC===null){var r=new Map,i=hC=new Map;i.set(n,r)}else i=hC,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Gp]||a[Rp]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==Om){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Pd(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Fd(e,t,n){var r=!n.ancestorInfo.containerTagInScope;if(n.context===JS||t.itemProp!=null)return!r||t.itemProp==null||e!==`meta`&&e!==`title`&&e!==`style`&&e!==`link`&&e!==`script`||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``){r&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError){if(t.rel===`stylesheet`&&typeof t.precedence==`string`){e=t.href;var i=t.onError,a=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),i&&n.push("`onError`"),a!=null&&n.push("`disabled`"),i=Du(n,`and`),i+=n.length===1?` prop`:` props`,a=n.length===1?`an `+i:`the `+i,n.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,a,i)}r&&(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error(`Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.`));break}switch(t.rel){case`stylesheet`:return e=t.precedence,t=t.disabled,typeof e!=`string`&&r&&console.error(`Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.`),typeof e==`string`&&t==null;default:return!0}case`script`:if(e=t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`,!e||t.onLoad||t.onError||!t.src||typeof t.src!=`string`){r&&(e?t.onLoad||t.onError?console.error(`Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.`):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error(`Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.`));break}return!0;case`noscript`:case`template`:r&&console.error(`Cannot render <%s> outside the main document. Try moving it into the root <head> tag.`,e)}return!1}function Id(e){return!(e.type===`stylesheet`&&(e.state.loading&uC)===sC)}function Ld(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&(n.state.loading&dC)===sC){if(n.instance===null){var i=Cd(r.href),a=t.querySelector(wd(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=zd.bind(e),t.then(e,e)),n.state.loading|=dC,n.instance=a,Ue(a);return}a=t.ownerDocument||t,r=Td(r),(i=fC.get(i))&&jd(r,i),a=a.createElement(`link`),Ue(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),gu(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&uC)===sC&&(e.count++,n=zd.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}function Rd(e,t){return e.stylesheets&&e.count===0&&Bd(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Bd(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},gC+t);0<e.imgBytes&&yC===0&&(yC=125*ku()*vC);var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Bd(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>yC?50:_C)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function zd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Bd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Bd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,xC=new Map,t.forEach(Vd,e),xC=null,zd.call(e))}function Vd(e,t){if(!(t.state.loading&dC)){var n=xC.get(e);if(n)var r=n.get(bC);else{n=new Map,xC.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(bC,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(bC,i),n.set(o,i),this.count++,r=zd.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=dC}}function Hd(e,t,n,r,i,a,o,s,c){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=rC,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ee(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ee(0),this.hiddenUpdates=Ee(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=n?`hydrateRoot()`:`createRoot()`}function Ud(e,t,n,r,i,a,o,s,c,l,u,d){return e=new Hd(e,t,n,o,c,l,u,d,s),t=Mg,!0===a&&(t|=Pg|Fg),t|=Ng,a=m(3,null,null,t),e.current=a,a.stateNode=e,t=qr(),Jr(t),e.pooledCache=t,Jr(t),a.memoizedState={element:r,isDehydrated:n,cache:t},Ri(a),e}function Wd(e){return e?(e=Og,e):Og}function Gd(e,t,n,r,i,a){if(wp&&typeof wp.onScheduleFiberRoot==`function`)try{wp.onScheduleFiberRoot(Cp,r,n)}catch(e){Tp||(Tp=!0,console.error(`React instrumentation encountered an error: %o`,e))}i=Wd(i),r.context===null?r.context=i:r.pendingContext=i,cp&&sp!==null&&!kC&&(kC=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
195
195
 
196
196
  Check the render method of %s.`,A(sp)||`Unknown`)),r=Bi(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(typeof a!=`function`&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a),r.callback=a),n=Vi(e,r,t),n!==null&&(Xr(t,`root.render()`,null),Wc(n,e,t),Hi(n,e,t))}function Kd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function qd(e,t){Kd(e,t),(e=e.alternate)&&Kd(e,t)}function Jd(e){if(e.tag===13||e.tag===31){var t=tr(e,67108864);t!==null&&Wc(t,e,67108864),qd(e,67108864)}}function Yd(e){if(e.tag===13||e.tag===31){var t=Hc(e);t=Me(t);var n=tr(e,t);n!==null&&Wc(n,e,t),qd(e,t)}}function Xd(){return sp}function Zd(e,t,n,r){var i=Y.T;Y.T=null;var a=Bf.p;try{Bf.p=Np,$d(e,t,n,r)}finally{Bf.p=a,Y.T=i}}function Qd(e,t,n,r){var i=Y.T;Y.T=null;var a=Bf.p;try{Bf.p=Pp,$d(e,t,n,r)}finally{Bf.p=a,Y.T=i}}function $d(e,t,n,r){if(BC){var i=ef(r);if(i===null)nu(e,t,r,VC,n),rf(e,r);else if(of(i,e,t,n,r))r.stopPropagation();else if(rf(e,r),t&4&&-1<YC.indexOf(e)){for(;i!==null;){var a=Be(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=xe(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Dp(o);s.entanglements[1]|=c,o&=~c}Ll(a),(Gb&(Ib|Lb))===Fb&&(Cx=mp()+wx,Rl(0,!1))}}break;case 31:case 13:s=tr(a,2),s!==null&&Wc(s,a,2),Yc(),qd(a,2)}if(a=ef(r),a===null&&nu(e,t,r,VC,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else nu(e,t,r,null,n)}}function ef(e){return e=Yt(e),tf(e)}function tf(e){if(VC=null,e=ze(e),e!==null){var t=x(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=S(t),e!==null)return e;e=null}else if(n===31){if(e=C(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return VC=e,null}function nf(e){switch(e){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 Np;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 Pp;case`message`:switch(hp()){case gp:return Np;case _p:return Pp;case vp:case yp:return Fp;case bp:return Ip;default:return Fp}default:return Fp}}function rf(e,t){switch(e){case`focusin`:case`focusout`:UC=null;break;case`dragenter`:case`dragleave`:WC=null;break;case`mouseover`:case`mouseout`:GC=null;break;case`pointerover`:case`pointerout`:KC.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:qC.delete(t.pointerId)}}function af(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Be(t),t!==null&&Jd(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function of(e,t,n,r,i){switch(t){case`focusin`:return UC=af(UC,e,t,n,r,i),!0;case`dragenter`:return WC=af(WC,e,t,n,r,i),!0;case`mouseover`:return GC=af(GC,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return KC.set(a,af(KC.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,qC.set(a,af(qC.get(a)||null,e,t,n,r,i)),!0}return!1}function sf(e){var t=ze(e.target);if(t!==null){var n=x(t);if(n!==null){if(t=n.tag,t===13){if(t=S(n),t!==null){e.blockedOn=t,Le(e.priority,function(){Yd(n)});return}}else if(t===31){if(t=C(n),t!==null){e.blockedOn=t,Le(e.priority,function(){Yd(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function cf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ef(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n),i=r;Hm!==null&&console.error(`Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue.`),Hm=i,n.target.dispatchEvent(r),Hm===null&&console.error(`Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue.`),Hm=null}else return t=Be(n),t!==null&&Jd(t),e.blockedOn=n,!1;t.shift()}return!0}function lf(e,t,n){cf(e)&&n.delete(t)}function uf(){HC=!1,UC!==null&&cf(UC)&&(UC=null),WC!==null&&cf(WC)&&(WC=null),GC!==null&&cf(GC)&&(GC=null),KC.forEach(lf),qC.forEach(lf)}function df(e,t){e.blockedOn===t&&(e.blockedOn=null,HC||(HC=!0,vf.unstable_scheduleCallback(vf.unstable_NormalPriority,uf)))}function ff(e){XC!==e&&(XC=e,vf.unstable_scheduleCallback(vf.unstable_NormalPriority,function(){XC===e&&(XC=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(tf(r||n)===null)continue;break}var a=Be(n);a!==null&&(e.splice(t,3),t-=3,n={pending:!0,data:i,method:n.method,action:r},Object.freeze(n),xo(a,n,r,i))}}))}function pf(e){function t(t){return df(t,e)}UC!==null&&df(UC,e),WC!==null&&df(WC,e),GC!==null&&df(GC,e),KC.forEach(t),qC.forEach(t);for(var n=0;n<JC.length;n++){var r=JC[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<JC.length&&(n=JC[0],n.blockedOn===null);)sf(n),n.blockedOn===null&&JC.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[zp]||null;if(typeof a==`function`)o||ff(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[zp]||null)s=o.formAction;else if(tf(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),ff(n)}}}function mf(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function hf(e){this._internalRoot=e}function gf(e){this._internalRoot=e}function _f(e){e[Bp]&&(e._reactRootContainer?console.error(`You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.`):console.error(`You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it.`))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var vf=p(),yf=g(),bf=y(),xf=Object.assign,Sf=Symbol.for(`react.element`),Cf=Symbol.for(`react.transitional.element`),wf=Symbol.for(`react.portal`),Tf=Symbol.for(`react.fragment`),Ef=Symbol.for(`react.strict_mode`),Df=Symbol.for(`react.profiler`),Of=Symbol.for(`react.consumer`),kf=Symbol.for(`react.context`),Af=Symbol.for(`react.forward_ref`),jf=Symbol.for(`react.suspense`),Mf=Symbol.for(`react.suspense_list`),Nf=Symbol.for(`react.memo`),Pf=Symbol.for(`react.lazy`),Ff=Symbol.for(`react.activity`),If=Symbol.for(`react.memo_cache_sentinel`),Lf=Symbol.iterator,Rf=Symbol.for(`react.client.reference`),zf=Array.isArray,Y=yf.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Bf=bf.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Vf=Object.freeze({pending:!1,data:null,method:null,action:null}),Hf=[],Uf=[],Wf=-1,Gf=j(null),Kf=j(null),qf=j(null),Jf=j(null),Yf=0,Xf,Zf,Qf,$f,ep,tp,np;re.__reactDisabledLog=!0;var rp,ip,ap=!1,op=new(typeof WeakMap==`function`?WeakMap:Map),sp=null,cp=!1,lp=Object.prototype.hasOwnProperty,up=vf.unstable_scheduleCallback,dp=vf.unstable_cancelCallback,fp=vf.unstable_shouldYield,pp=vf.unstable_requestPaint,mp=vf.unstable_now,hp=vf.unstable_getCurrentPriorityLevel,gp=vf.unstable_ImmediatePriority,_p=vf.unstable_UserBlockingPriority,vp=vf.unstable_NormalPriority,yp=vf.unstable_LowPriority,bp=vf.unstable_IdlePriority,xp=vf.log,Sp=vf.unstable_setDisableYieldValue,Cp=null,wp=null,Tp=!1,Ep=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`,Dp=Math.clz32?Math.clz32:be,Op=Math.log,kp=Math.LN2,Ap=256,jp=262144,Mp=4194304,Np=2,Pp=8,Fp=32,Ip=268435456,Lp=Math.random().toString(36).slice(2),Rp=`__reactFiber$`+Lp,zp=`__reactProps$`+Lp,Bp=`__reactContainer$`+Lp,Vp=`__reactEvents$`+Lp,Hp=`__reactListeners$`+Lp,Up=`__reactHandles$`+Lp,Wp=`__reactResources$`+Lp,Gp=`__reactMarker$`+Lp,Kp=new Set,qp={},Jp={},Yp={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Xp=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]*$`),Zp={},Qp={},$p=/[\n"\\]/g,em=!1,tm=!1,nm=!1,rm=!1,im=!1,am=!1,om=[`value`,`defaultValue`],sm=!1,cm=/["'&<>\n\t]|^\s|\s$/,lm=`address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp`.split(` `),um=`applet caption html table td th marquee object template foreignObject desc title`.split(` `),dm=um.concat([`button`]),fm=`dd dt li option optgroup p rp rt`.split(` `),pm={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},mm={},hm={animation:`animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction`.split(` `),background:`backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize`.split(` `),backgroundPosition:[`backgroundPositionX`,`backgroundPositionY`],border:`borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth`.split(` `),borderBlockEnd:[`borderBlockEndColor`,`borderBlockEndStyle`,`borderBlockEndWidth`],borderBlockStart:[`borderBlockStartColor`,`borderBlockStartStyle`,`borderBlockStartWidth`],borderBottom:[`borderBottomColor`,`borderBottomStyle`,`borderBottomWidth`],borderColor:[`borderBottomColor`,`borderLeftColor`,`borderRightColor`,`borderTopColor`],borderImage:[`borderImageOutset`,`borderImageRepeat`,`borderImageSlice`,`borderImageSource`,`borderImageWidth`],borderInlineEnd:[`borderInlineEndColor`,`borderInlineEndStyle`,`borderInlineEndWidth`],borderInlineStart:[`borderInlineStartColor`,`borderInlineStartStyle`,`borderInlineStartWidth`],borderLeft:[`borderLeftColor`,`borderLeftStyle`,`borderLeftWidth`],borderRadius:[`borderBottomLeftRadius`,`borderBottomRightRadius`,`borderTopLeftRadius`,`borderTopRightRadius`],borderRight:[`borderRightColor`,`borderRightStyle`,`borderRightWidth`],borderStyle:[`borderBottomStyle`,`borderLeftStyle`,`borderRightStyle`,`borderTopStyle`],borderTop:[`borderTopColor`,`borderTopStyle`,`borderTopWidth`],borderWidth:[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`],columnRule:[`columnRuleColor`,`columnRuleStyle`,`columnRuleWidth`],columns:[`columnCount`,`columnWidth`],flex:[`flexBasis`,`flexGrow`,`flexShrink`],flexFlow:[`flexDirection`,`flexWrap`],font:`fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight`.split(` `),fontVariant:`fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition`.split(` `),gap:[`columnGap`,`rowGap`],grid:`gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows`.split(` `),gridArea:[`gridColumnEnd`,`gridColumnStart`,`gridRowEnd`,`gridRowStart`],gridColumn:[`gridColumnEnd`,`gridColumnStart`],gridColumnGap:[`columnGap`],gridGap:[`columnGap`,`rowGap`],gridRow:[`gridRowEnd`,`gridRowStart`],gridRowGap:[`rowGap`],gridTemplate:[`gridTemplateAreas`,`gridTemplateColumns`,`gridTemplateRows`],listStyle:[`listStyleImage`,`listStylePosition`,`listStyleType`],margin:[`marginBottom`,`marginLeft`,`marginRight`,`marginTop`],marker:[`markerEnd`,`markerMid`,`markerStart`],mask:`maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize`.split(` `),maskPosition:[`maskPositionX`,`maskPositionY`],outline:[`outlineColor`,`outlineStyle`,`outlineWidth`],overflow:[`overflowX`,`overflowY`],padding:[`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`],placeContent:[`alignContent`,`justifyContent`],placeItems:[`alignItems`,`justifyItems`],placeSelf:[`alignSelf`,`justifySelf`],textDecoration:[`textDecorationColor`,`textDecorationLine`,`textDecorationStyle`],textEmphasis:[`textEmphasisColor`,`textEmphasisStyle`],transition:[`transitionDelay`,`transitionDuration`,`transitionProperty`,`transitionTimingFunction`],wordWrap:[`overflowWrap`]},gm=/([A-Z])/g,_m=/^ms-/,vm=/^(?:webkit|moz|o)[A-Z]/,ym=/^-ms-/,bm=/-(.)/g,xm=/;\s*$/,Sm={},Cm={},wm=!1,Tm=!1,Em=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(` `)),Dm=`http://www.w3.org/1998/Math/MathML`,Om=`http://www.w3.org/2000/svg`,km=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`]]),Am={accept:`accept`,acceptcharset:`acceptCharset`,"accept-charset":`acceptCharset`,accesskey:`accessKey`,action:`action`,allowfullscreen:`allowFullScreen`,alt:`alt`,as:`as`,async:`async`,autocapitalize:`autoCapitalize`,autocomplete:`autoComplete`,autocorrect:`autoCorrect`,autofocus:`autoFocus`,autoplay:`autoPlay`,autosave:`autoSave`,capture:`capture`,cellpadding:`cellPadding`,cellspacing:`cellSpacing`,challenge:`challenge`,charset:`charSet`,checked:`checked`,children:`children`,cite:`cite`,class:`className`,classid:`classID`,classname:`className`,cols:`cols`,colspan:`colSpan`,content:`content`,contenteditable:`contentEditable`,contextmenu:`contextMenu`,controls:`controls`,controlslist:`controlsList`,coords:`coords`,crossorigin:`crossOrigin`,dangerouslysetinnerhtml:`dangerouslySetInnerHTML`,data:`data`,datetime:`dateTime`,default:`default`,defaultchecked:`defaultChecked`,defaultvalue:`defaultValue`,defer:`defer`,dir:`dir`,disabled:`disabled`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`,download:`download`,draggable:`draggable`,enctype:`encType`,enterkeyhint:`enterKeyHint`,fetchpriority:`fetchPriority`,for:`htmlFor`,form:`form`,formmethod:`formMethod`,formaction:`formAction`,formenctype:`formEncType`,formnovalidate:`formNoValidate`,formtarget:`formTarget`,frameborder:`frameBorder`,headers:`headers`,height:`height`,hidden:`hidden`,high:`high`,href:`href`,hreflang:`hrefLang`,htmlfor:`htmlFor`,httpequiv:`httpEquiv`,"http-equiv":`httpEquiv`,icon:`icon`,id:`id`,imagesizes:`imageSizes`,imagesrcset:`imageSrcSet`,inert:`inert`,innerhtml:`innerHTML`,inputmode:`inputMode`,integrity:`integrity`,is:`is`,itemid:`itemID`,itemprop:`itemProp`,itemref:`itemRef`,itemscope:`itemScope`,itemtype:`itemType`,keyparams:`keyParams`,keytype:`keyType`,kind:`kind`,label:`label`,lang:`lang`,list:`list`,loop:`loop`,low:`low`,manifest:`manifest`,marginwidth:`marginWidth`,marginheight:`marginHeight`,max:`max`,maxlength:`maxLength`,media:`media`,mediagroup:`mediaGroup`,method:`method`,min:`min`,minlength:`minLength`,multiple:`multiple`,muted:`muted`,name:`name`,nomodule:`noModule`,nonce:`nonce`,novalidate:`noValidate`,open:`open`,optimum:`optimum`,pattern:`pattern`,placeholder:`placeholder`,playsinline:`playsInline`,poster:`poster`,preload:`preload`,profile:`profile`,radiogroup:`radioGroup`,readonly:`readOnly`,referrerpolicy:`referrerPolicy`,rel:`rel`,required:`required`,reversed:`reversed`,role:`role`,rows:`rows`,rowspan:`rowSpan`,sandbox:`sandbox`,scope:`scope`,scoped:`scoped`,scrolling:`scrolling`,seamless:`seamless`,selected:`selected`,shape:`shape`,size:`size`,sizes:`sizes`,span:`span`,spellcheck:`spellCheck`,src:`src`,srcdoc:`srcDoc`,srclang:`srcLang`,srcset:`srcSet`,start:`start`,step:`step`,style:`style`,summary:`summary`,tabindex:`tabIndex`,target:`target`,title:`title`,type:`type`,usemap:`useMap`,value:`value`,width:`width`,wmode:`wmode`,wrap:`wrap`,about:`about`,accentheight:`accentHeight`,"accent-height":`accentHeight`,accumulate:`accumulate`,additive:`additive`,alignmentbaseline:`alignmentBaseline`,"alignment-baseline":`alignmentBaseline`,allowreorder:`allowReorder`,alphabetic:`alphabetic`,amplitude:`amplitude`,arabicform:`arabicForm`,"arabic-form":`arabicForm`,ascent:`ascent`,attributename:`attributeName`,attributetype:`attributeType`,autoreverse:`autoReverse`,azimuth:`azimuth`,basefrequency:`baseFrequency`,baselineshift:`baselineShift`,"baseline-shift":`baselineShift`,baseprofile:`baseProfile`,bbox:`bbox`,begin:`begin`,bias:`bias`,by:`by`,calcmode:`calcMode`,capheight:`capHeight`,"cap-height":`capHeight`,clip:`clip`,clippath:`clipPath`,"clip-path":`clipPath`,clippathunits:`clipPathUnits`,cliprule:`clipRule`,"clip-rule":`clipRule`,color:`color`,colorinterpolation:`colorInterpolation`,"color-interpolation":`colorInterpolation`,colorinterpolationfilters:`colorInterpolationFilters`,"color-interpolation-filters":`colorInterpolationFilters`,colorprofile:`colorProfile`,"color-profile":`colorProfile`,colorrendering:`colorRendering`,"color-rendering":`colorRendering`,contentscripttype:`contentScriptType`,contentstyletype:`contentStyleType`,cursor:`cursor`,cx:`cx`,cy:`cy`,d:`d`,datatype:`datatype`,decelerate:`decelerate`,descent:`descent`,diffuseconstant:`diffuseConstant`,direction:`direction`,display:`display`,divisor:`divisor`,dominantbaseline:`dominantBaseline`,"dominant-baseline":`dominantBaseline`,dur:`dur`,dx:`dx`,dy:`dy`,edgemode:`edgeMode`,elevation:`elevation`,enablebackground:`enableBackground`,"enable-background":`enableBackground`,end:`end`,exponent:`exponent`,externalresourcesrequired:`externalResourcesRequired`,fill:`fill`,fillopacity:`fillOpacity`,"fill-opacity":`fillOpacity`,fillrule:`fillRule`,"fill-rule":`fillRule`,filter:`filter`,filterres:`filterRes`,filterunits:`filterUnits`,floodopacity:`floodOpacity`,"flood-opacity":`floodOpacity`,floodcolor:`floodColor`,"flood-color":`floodColor`,focusable:`focusable`,fontfamily:`fontFamily`,"font-family":`fontFamily`,fontsize:`fontSize`,"font-size":`fontSize`,fontsizeadjust:`fontSizeAdjust`,"font-size-adjust":`fontSizeAdjust`,fontstretch:`fontStretch`,"font-stretch":`fontStretch`,fontstyle:`fontStyle`,"font-style":`fontStyle`,fontvariant:`fontVariant`,"font-variant":`fontVariant`,fontweight:`fontWeight`,"font-weight":`fontWeight`,format:`format`,from:`from`,fx:`fx`,fy:`fy`,g1:`g1`,g2:`g2`,glyphname:`glyphName`,"glyph-name":`glyphName`,glyphorientationhorizontal:`glyphOrientationHorizontal`,"glyph-orientation-horizontal":`glyphOrientationHorizontal`,glyphorientationvertical:`glyphOrientationVertical`,"glyph-orientation-vertical":`glyphOrientationVertical`,glyphref:`glyphRef`,gradienttransform:`gradientTransform`,gradientunits:`gradientUnits`,hanging:`hanging`,horizadvx:`horizAdvX`,"horiz-adv-x":`horizAdvX`,horizoriginx:`horizOriginX`,"horiz-origin-x":`horizOriginX`,ideographic:`ideographic`,imagerendering:`imageRendering`,"image-rendering":`imageRendering`,in2:`in2`,in:`in`,inlist:`inlist`,intercept:`intercept`,k1:`k1`,k2:`k2`,k3:`k3`,k4:`k4`,k:`k`,kernelmatrix:`kernelMatrix`,kernelunitlength:`kernelUnitLength`,kerning:`kerning`,keypoints:`keyPoints`,keysplines:`keySplines`,keytimes:`keyTimes`,lengthadjust:`lengthAdjust`,letterspacing:`letterSpacing`,"letter-spacing":`letterSpacing`,lightingcolor:`lightingColor`,"lighting-color":`lightingColor`,limitingconeangle:`limitingConeAngle`,local:`local`,markerend:`markerEnd`,"marker-end":`markerEnd`,markerheight:`markerHeight`,markermid:`markerMid`,"marker-mid":`markerMid`,markerstart:`markerStart`,"marker-start":`markerStart`,markerunits:`markerUnits`,markerwidth:`markerWidth`,mask:`mask`,maskcontentunits:`maskContentUnits`,maskunits:`maskUnits`,mathematical:`mathematical`,mode:`mode`,numoctaves:`numOctaves`,offset:`offset`,opacity:`opacity`,operator:`operator`,order:`order`,orient:`orient`,orientation:`orientation`,origin:`origin`,overflow:`overflow`,overlineposition:`overlinePosition`,"overline-position":`overlinePosition`,overlinethickness:`overlineThickness`,"overline-thickness":`overlineThickness`,paintorder:`paintOrder`,"paint-order":`paintOrder`,panose1:`panose1`,"panose-1":`panose1`,pathlength:`pathLength`,patterncontentunits:`patternContentUnits`,patterntransform:`patternTransform`,patternunits:`patternUnits`,pointerevents:`pointerEvents`,"pointer-events":`pointerEvents`,points:`points`,pointsatx:`pointsAtX`,pointsaty:`pointsAtY`,pointsatz:`pointsAtZ`,popover:`popover`,popovertarget:`popoverTarget`,popovertargetaction:`popoverTargetAction`,prefix:`prefix`,preservealpha:`preserveAlpha`,preserveaspectratio:`preserveAspectRatio`,primitiveunits:`primitiveUnits`,property:`property`,r:`r`,radius:`radius`,refx:`refX`,refy:`refY`,renderingintent:`renderingIntent`,"rendering-intent":`renderingIntent`,repeatcount:`repeatCount`,repeatdur:`repeatDur`,requiredextensions:`requiredExtensions`,requiredfeatures:`requiredFeatures`,resource:`resource`,restart:`restart`,result:`result`,results:`results`,rotate:`rotate`,rx:`rx`,ry:`ry`,scale:`scale`,security:`security`,seed:`seed`,shaperendering:`shapeRendering`,"shape-rendering":`shapeRendering`,slope:`slope`,spacing:`spacing`,specularconstant:`specularConstant`,specularexponent:`specularExponent`,speed:`speed`,spreadmethod:`spreadMethod`,startoffset:`startOffset`,stddeviation:`stdDeviation`,stemh:`stemh`,stemv:`stemv`,stitchtiles:`stitchTiles`,stopcolor:`stopColor`,"stop-color":`stopColor`,stopopacity:`stopOpacity`,"stop-opacity":`stopOpacity`,strikethroughposition:`strikethroughPosition`,"strikethrough-position":`strikethroughPosition`,strikethroughthickness:`strikethroughThickness`,"strikethrough-thickness":`strikethroughThickness`,string:`string`,stroke:`stroke`,strokedasharray:`strokeDasharray`,"stroke-dasharray":`strokeDasharray`,strokedashoffset:`strokeDashoffset`,"stroke-dashoffset":`strokeDashoffset`,strokelinecap:`strokeLinecap`,"stroke-linecap":`strokeLinecap`,strokelinejoin:`strokeLinejoin`,"stroke-linejoin":`strokeLinejoin`,strokemiterlimit:`strokeMiterlimit`,"stroke-miterlimit":`strokeMiterlimit`,strokewidth:`strokeWidth`,"stroke-width":`strokeWidth`,strokeopacity:`strokeOpacity`,"stroke-opacity":`strokeOpacity`,suppresscontenteditablewarning:`suppressContentEditableWarning`,suppresshydrationwarning:`suppressHydrationWarning`,surfacescale:`surfaceScale`,systemlanguage:`systemLanguage`,tablevalues:`tableValues`,targetx:`targetX`,targety:`targetY`,textanchor:`textAnchor`,"text-anchor":`textAnchor`,textdecoration:`textDecoration`,"text-decoration":`textDecoration`,textlength:`textLength`,textrendering:`textRendering`,"text-rendering":`textRendering`,to:`to`,transform:`transform`,transformorigin:`transformOrigin`,"transform-origin":`transformOrigin`,typeof:`typeof`,u1:`u1`,u2:`u2`,underlineposition:`underlinePosition`,"underline-position":`underlinePosition`,underlinethickness:`underlineThickness`,"underline-thickness":`underlineThickness`,unicode:`unicode`,unicodebidi:`unicodeBidi`,"unicode-bidi":`unicodeBidi`,unicoderange:`unicodeRange`,"unicode-range":`unicodeRange`,unitsperem:`unitsPerEm`,"units-per-em":`unitsPerEm`,unselectable:`unselectable`,valphabetic:`vAlphabetic`,"v-alphabetic":`vAlphabetic`,values:`values`,vectoreffect:`vectorEffect`,"vector-effect":`vectorEffect`,version:`version`,vertadvy:`vertAdvY`,"vert-adv-y":`vertAdvY`,vertoriginx:`vertOriginX`,"vert-origin-x":`vertOriginX`,vertoriginy:`vertOriginY`,"vert-origin-y":`vertOriginY`,vhanging:`vHanging`,"v-hanging":`vHanging`,videographic:`vIdeographic`,"v-ideographic":`vIdeographic`,viewbox:`viewBox`,viewtarget:`viewTarget`,visibility:`visibility`,vmathematical:`vMathematical`,"v-mathematical":`vMathematical`,vocab:`vocab`,widths:`widths`,wordspacing:`wordSpacing`,"word-spacing":`wordSpacing`,writingmode:`writingMode`,"writing-mode":`writingMode`,x1:`x1`,x2:`x2`,x:`x`,xchannelselector:`xChannelSelector`,xheight:`xHeight`,"x-height":`xHeight`,xlinkactuate:`xlinkActuate`,"xlink:actuate":`xlinkActuate`,xlinkarcrole:`xlinkArcrole`,"xlink:arcrole":`xlinkArcrole`,xlinkhref:`xlinkHref`,"xlink:href":`xlinkHref`,xlinkrole:`xlinkRole`,"xlink:role":`xlinkRole`,xlinkshow:`xlinkShow`,"xlink:show":`xlinkShow`,xlinktitle:`xlinkTitle`,"xlink:title":`xlinkTitle`,xlinktype:`xlinkType`,"xlink:type":`xlinkType`,xmlbase:`xmlBase`,"xml:base":`xmlBase`,xmllang:`xmlLang`,"xml:lang":`xmlLang`,xmlns:`xmlns`,"xml:space":`xmlSpace`,xmlnsxlink:`xmlnsXlink`,"xmlns:xlink":`xmlnsXlink`,xmlspace:`xmlSpace`,y1:`y1`,y2:`y2`,y:`y`,ychannelselector:`yChannelSelector`,z:`z`,zoomandpan:`zoomAndPan`},jm={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Mm={},Nm=RegExp(`^(aria)-[: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]*$`),Pm=RegExp(`^(aria)[A-Z][: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]*$`),Fm=!1,Im={},Lm=/^on./,Rm=/^on[^A-Z]/,zm=RegExp(`^(aria)-[: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]*$`),Bm=RegExp(`^(aria)[A-Z][: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]*$`),Vm=/^[\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,Hm=null,Um=null,Wm=null,Gm=!1,Km=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),qm=!1;if(Km)try{var Jm={};Object.defineProperty(Jm,`passive`,{get:function(){qm=!0}}),window.addEventListener(`test`,Jm,Jm),window.removeEventListener(`test`,Jm,Jm)}catch{qm=!1}var Ym=null,Xm=null,Zm=null,Qm={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$m=rn(Qm),eh=xf({},Qm,{view:0,detail:0}),th=rn(eh),nh,rh,ih,ah=xf({},eh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:on,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==ih&&(ih&&e.type===`mousemove`?(nh=e.screenX-ih.screenX,rh=e.screenY-ih.screenY):rh=nh=0,ih=e),nh)},movementY:function(e){return`movementY`in e?e.movementY:rh}}),oh=rn(ah),sh=rn(xf({},ah,{dataTransfer:0})),ch=rn(xf({},eh,{relatedTarget:0})),lh=rn(xf({},Qm,{animationName:0,elapsedTime:0,pseudoElement:0})),uh=rn(xf({},Qm,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),dh=rn(xf({},Qm,{data:0})),fh=dh,ph={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},mh={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`},hh={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`},gh=rn(xf({},eh,{key:function(e){if(e.key){var t=ph[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=en(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?mh[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:on,charCode:function(e){return e.type===`keypress`?en(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?en(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),_h=rn(xf({},ah,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),vh=rn(xf({},eh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:on})),yh=rn(xf({},Qm,{propertyName:0,elapsedTime:0,pseudoElement:0})),bh=rn(xf({},ah,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),xh=rn(xf({},Qm,{newState:0,oldState:0})),Sh=[9,13,27,32],Ch=229,wh=Km&&`CompositionEvent`in window,Th=null;Km&&`documentMode`in document&&(Th=document.documentMode);var Eh=Km&&`TextEvent`in window&&!Th,Dh=Km&&(!wh||Th&&8<Th&&11>=Th),Oh=32,kh=String.fromCharCode(Oh),Ah=!1,jh=!1,Mh={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},Nh=null,Ph=null,Fh=!1;Km&&(Fh=fn(`input`)&&(!document.documentMode||9<document.documentMode));var Ih=typeof Object.is==`function`?Object.is:Cn,Lh=Km&&`documentMode`in document&&11>=document.documentMode,Rh=null,zh=null,Bh=null,Vh=!1,Hh={animationend:jn(`Animation`,`AnimationEnd`),animationiteration:jn(`Animation`,`AnimationIteration`),animationstart:jn(`Animation`,`AnimationStart`),transitionrun:jn(`Transition`,`TransitionRun`),transitionstart:jn(`Transition`,`TransitionStart`),transitioncancel:jn(`Transition`,`TransitionCancel`),transitionend:jn(`Transition`,`TransitionEnd`)},Uh={},Wh={};Km&&(Wh=document.createElement(`div`).style,`AnimationEvent`in window||(delete Hh.animationend.animation,delete Hh.animationiteration.animation,delete Hh.animationstart.animation),`TransitionEvent`in window||delete Hh.transitionend.transition);var Gh=Mn(`animationend`),Kh=Mn(`animationiteration`),qh=Mn(`animationstart`),Jh=Mn(`transitionrun`),Yh=Mn(`transitionstart`),Xh=Mn(`transitioncancel`),Zh=Mn(`transitionend`),Qh=new Map,$h=`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(` `);$h.push(`scrollEnd`);var eg=0;if(typeof performance==`object`&&typeof performance.now==`function`)var tg=performance,ng=function(){return tg.now()};else{var rg=Date;ng=function(){return rg.now()}}var ig=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ag=`This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.`,og=0,sg=1,cg=2,lg=3,ug=`–\xA0`,dg=`+\xA0`,fg=` \xA0`,pg=typeof console<`u`&&typeof console.timeStamp==`function`&&typeof performance<`u`&&typeof performance.measure==`function`,mg=`Components ⚛`,hg=`Scheduler ⚛`,gg=`Blocking`,_g=!1,vg={color:`primary`,properties:null,tooltipText:``,track:mg},yg={start:-0,end:-0,detail:{devtools:vg}},bg=[`Changed Props`,``],xg=`This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.`,Sg=[`Changed Props`,xg],Cg=1,wg=2,Tg=[],Eg=0,Dg=0,Og={};Object.freeze(Og);var kg=null,Ag=null,jg=0,Mg=1,Ng=2,Pg=8,Fg=16,Ig=32,Lg=!1;try{var Rg=Object.preventExtensions({});new Map([[Rg,null]]),new Set([Rg])}catch{Lg=!0}var zg=new WeakMap,Bg=[],Vg=0,Hg=null,Ug=0,Wg=[],Gg=0,Kg=null,qg=1,Jg=``,Yg=null,Xg=null,Zg=!1,Qg=!1,$g=null,e_=null,t_=!1,n_=Error(`Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React.`),r_=j(null),i_=j(null),a_={},o_=null,s_=null,c_=!1,l_=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},u_=vf.unstable_scheduleCallback,d_=vf.unstable_NormalPriority,f_={$$typeof:kf,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},p_=vf.unstable_now,m_=console.createTask?console.createTask:function(){return null},h_=1,g_=2,__=-0,v_=-0,y_=-0,b_=null,x_=-1.1,S_=-0,C_=-0,w_=-1.1,T_=-1.1,E_=null,D_=!1,O_=-0,k_=-1.1,A_=null,j_=0,M_=null,N_=null,P_=-1.1,F_=null,I_=-1.1,L_=-1.1,R_=-0,z_=-1.1,B_=-1.1,V_=0,H_=null,U_=null,W_=null,G_=-1.1,K_=null,q_=-1.1,J_=-1.1,Y_=-0,X_=-0,Z_=0,Q_=null,$_=0,ev=-1.1,tv=!1,nv=!1,rv=null,iv=0,av=0,ov=null,sv=Y.S;Y.S=function(e,t){if(xx=mp(),typeof t==`object`&&t&&typeof t.then==`function`){if(0>z_&&0>B_){z_=p_();var n=Iu(),r=Fu();(n!==q_||r!==K_)&&(q_=-1.1),G_=n,K_=r}mi(e,t)}sv!==null&&sv(e,t)};var cv=j(null),lv={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},uv=[],dv=[],fv=[],pv=[],mv=[],hv=[],gv=new Set;lv.recordUnsafeLifecycleWarnings=function(e,t){gv.has(e.type)||(typeof t.componentWillMount==`function`&&!0!==t.componentWillMount.__suppressDeprecationWarning&&uv.push(e),e.mode&Pg&&typeof t.UNSAFE_componentWillMount==`function`&&dv.push(e),typeof t.componentWillReceiveProps==`function`&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&fv.push(e),e.mode&Pg&&typeof t.UNSAFE_componentWillReceiveProps==`function`&&pv.push(e),typeof t.componentWillUpdate==`function`&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&mv.push(e),e.mode&Pg&&typeof t.UNSAFE_componentWillUpdate==`function`&&hv.push(e))},lv.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<uv.length&&(uv.forEach(function(t){e.add(A(t)||`Component`),gv.add(t.type)}),uv=[]);var t=new Set;0<dv.length&&(dv.forEach(function(e){t.add(A(e)||`Component`),gv.add(e.type)}),dv=[]);var n=new Set;0<fv.length&&(fv.forEach(function(e){n.add(A(e)||`Component`),gv.add(e.type)}),fv=[]);var r=new Set;0<pv.length&&(pv.forEach(function(e){r.add(A(e)||`Component`),gv.add(e.type)}),pv=[]);var i=new Set;0<mv.length&&(mv.forEach(function(e){i.add(A(e)||`Component`),gv.add(e.type)}),mv=[]);var a=new Set;if(0<hv.length&&(hv.forEach(function(e){a.add(A(e)||`Component`),gv.add(e.type)}),hv=[]),0<t.size){var o=f(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
197
197
 
@@ -232,7 +232,7 @@ Learn more about this warning here: https://react.dev/link/legacy-context`,r)})}
232
232
 
233
233
  Check the render method of \``+i+"`."),a||r&&(a=`
234
234
 
235
- Check the top-level render call using <`+r+`>.`);var o=``;n!=null&&e!==n&&(r=null,typeof n.tag==`number`?r=A(n):typeof n.name==`string`&&(r=n.name),r&&(o=` It was passed a child from `+r+`.`)),R(t,function(){console.error(`Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.`,a,o)})}}};var Zv=K(!0),Qv=K(!1),$v=0,ey=1,ty=2,ny=3,ry=!1,iy=!1,ay=null,oy=!1,sy=j(null),cy=j(0),ly=j(null),uy=null,dy=1,fy=2,py=j(0),my=0,hy=1,gy=2,_y=4,vy=8,yy,by=new Set,xy=new Set,Sy=new Set,Cy=new Set,wy=0,Ty=null,Ey=null,Dy=null,Oy=!1,ky=!1,Ay=!1,jy=0,My=0,Ny=null,Py=0,Fy=25,X=null,Iy=null,Ly=-1,Ry=!1,zy={readContext:Wr,use:ya,useCallback:oa,useContext:oa,useEffect:oa,useImperativeHandle:oa,useLayoutEffect:oa,useInsertionEffect:oa,useMemo:oa,useReducer:oa,useRef:oa,useState:oa,useDebugValue:oa,useDeferredValue:oa,useTransition:oa,useSyncExternalStore:oa,useId:oa,useHostTransitionStatus:oa,useFormState:oa,useActionState:oa,useOptimistic:oa,useMemoCache:oa,useCacheRefresh:oa};zy.useEffectEvent=oa;var By=null,Vy=null,Hy=null,Uy=null,Wy=null,Gy=null,Ky=null;By={readContext:function(e){return Wr(e)},use:ya,useCallback:function(e,t){return X=`useCallback`,ra(),ia(t),lo(e,t)},useContext:function(e){return X=`useContext`,ra(),Wr(e)},useEffect:function(e,t){return X=`useEffect`,ra(),ia(t),to(e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,ra(),ia(n),so(e,t,n)},useInsertionEffect:function(e,t){X=`useInsertionEffect`,ra(),ia(t),$a(4,gy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,ra(),ia(t),ao(e,t)},useMemo:function(e,t){X=`useMemo`,ra(),ia(t);var n=Y.H;Y.H=Wy;try{return fo(e,t)}finally{Y.H=n}},useReducer:function(e,t,n){X=`useReducer`,ra();var r=Y.H;Y.H=Wy;try{return Sa(e,t,n)}finally{Y.H=r}},useRef:function(e){return X=`useRef`,ra(),Qa(e)},useState:function(e){X=`useState`,ra();var t=Y.H;Y.H=Wy;try{return Pa(e)}finally{Y.H=t}},useDebugValue:function(){X=`useDebugValue`,ra()},useDeferredValue:function(e,t){return X=`useDeferredValue`,ra(),mo(e,t)},useTransition:function(){return X=`useTransition`,ra(),wo()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,ra(),Ea(e,t,n)},useId:function(){return X=`useId`,ra(),Oo()},useFormState:function(e,t){return X=`useFormState`,ra(),aa(),Ka(e,t)},useActionState:function(e,t){return X=`useActionState`,ra(),Ka(e,t)},useOptimistic:function(e){return X=`useOptimistic`,ra(),Fa(e)},useHostTransitionStatus:Do,useMemoCache:ba,useCacheRefresh:function(){return X=`useCacheRefresh`,ra(),ko()},useEffectEvent:function(e){return X=`useEffectEvent`,ra(),ro(e)}},Vy={readContext:function(e){return Wr(e)},use:ya,useCallback:function(e,t){return X=`useCallback`,J(),lo(e,t)},useContext:function(e){return X=`useContext`,J(),Wr(e)},useEffect:function(e,t){return X=`useEffect`,J(),to(e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,J(),so(e,t,n)},useInsertionEffect:function(e,t){X=`useInsertionEffect`,J(),$a(4,gy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,J(),ao(e,t)},useMemo:function(e,t){X=`useMemo`,J();var n=Y.H;Y.H=Wy;try{return fo(e,t)}finally{Y.H=n}},useReducer:function(e,t,n){X=`useReducer`,J();var r=Y.H;Y.H=Wy;try{return Sa(e,t,n)}finally{Y.H=r}},useRef:function(e){return X=`useRef`,J(),Qa(e)},useState:function(e){X=`useState`,J();var t=Y.H;Y.H=Wy;try{return Pa(e)}finally{Y.H=t}},useDebugValue:function(){X=`useDebugValue`,J()},useDeferredValue:function(e,t){return X=`useDeferredValue`,J(),mo(e,t)},useTransition:function(){return X=`useTransition`,J(),wo()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,J(),Ea(e,t,n)},useId:function(){return X=`useId`,J(),Oo()},useActionState:function(e,t){return X=`useActionState`,J(),Ka(e,t)},useFormState:function(e,t){return X=`useFormState`,J(),aa(),Ka(e,t)},useOptimistic:function(e){return X=`useOptimistic`,J(),Fa(e)},useHostTransitionStatus:Do,useMemoCache:ba,useCacheRefresh:function(){return X=`useCacheRefresh`,J(),ko()},useEffectEvent:function(e){return X=`useEffectEvent`,J(),ro(e)}},Hy={readContext:function(e){return Wr(e)},use:ya,useCallback:function(e,t){return X=`useCallback`,J(),uo(e,t)},useContext:function(e){return X=`useContext`,J(),Wr(e)},useEffect:function(e,t){X=`useEffect`,J(),eo(2048,vy,e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,J(),co(e,t,n)},useInsertionEffect:function(e,t){return X=`useInsertionEffect`,J(),eo(4,gy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,J(),eo(4,_y,e,t)},useMemo:function(e,t){X=`useMemo`,J();var n=Y.H;Y.H=Gy;try{return po(e,t)}finally{Y.H=n}},useReducer:function(e,t,n){X=`useReducer`,J();var r=Y.H;Y.H=Gy;try{return Ca(e,t,n)}finally{Y.H=r}},useRef:function(){return X=`useRef`,J(),ga().memoizedState},useState:function(){X=`useState`,J();var e=Y.H;Y.H=Gy;try{return Ca(xa)}finally{Y.H=e}},useDebugValue:function(){X=`useDebugValue`,J()},useDeferredValue:function(e,t){return X=`useDeferredValue`,J(),ho(e,t)},useTransition:function(){return X=`useTransition`,J(),To()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,J(),Da(e,t,n)},useId:function(){return X=`useId`,J(),ga().memoizedState},useFormState:function(e){return X=`useFormState`,J(),aa(),qa(e)},useActionState:function(e){return X=`useActionState`,J(),qa(e)},useOptimistic:function(e,t){return X=`useOptimistic`,J(),Ia(e,t)},useHostTransitionStatus:Do,useMemoCache:ba,useCacheRefresh:function(){return X=`useCacheRefresh`,J(),ga().memoizedState},useEffectEvent:function(e){return X=`useEffectEvent`,J(),io(e)}},Uy={readContext:function(e){return Wr(e)},use:ya,useCallback:function(e,t){return X=`useCallback`,J(),uo(e,t)},useContext:function(e){return X=`useContext`,J(),Wr(e)},useEffect:function(e,t){X=`useEffect`,J(),eo(2048,vy,e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,J(),co(e,t,n)},useInsertionEffect:function(e,t){return X=`useInsertionEffect`,J(),eo(4,gy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,J(),eo(4,_y,e,t)},useMemo:function(e,t){X=`useMemo`,J();var n=Y.H;Y.H=Ky;try{return po(e,t)}finally{Y.H=n}},useReducer:function(e,t,n){X=`useReducer`,J();var r=Y.H;Y.H=Ky;try{return Ta(e,t,n)}finally{Y.H=r}},useRef:function(){return X=`useRef`,J(),ga().memoizedState},useState:function(){X=`useState`,J();var e=Y.H;Y.H=Ky;try{return Ta(xa)}finally{Y.H=e}},useDebugValue:function(){X=`useDebugValue`,J()},useDeferredValue:function(e,t){return X=`useDeferredValue`,J(),go(e,t)},useTransition:function(){return X=`useTransition`,J(),Eo()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,J(),Da(e,t,n)},useId:function(){return X=`useId`,J(),ga().memoizedState},useFormState:function(e){return X=`useFormState`,J(),aa(),Xa(e)},useActionState:function(e){return X=`useActionState`,J(),Xa(e)},useOptimistic:function(e,t){return X=`useOptimistic`,J(),Ra(e,t)},useHostTransitionStatus:Do,useMemoCache:ba,useCacheRefresh:function(){return X=`useCacheRefresh`,J(),ga().memoizedState},useEffectEvent:function(e){return X=`useEffectEvent`,J(),io(e)}},Wy={readContext:function(e){return l(),Wr(e)},use:function(e){return c(),ya(e)},useCallback:function(e,t){return X=`useCallback`,c(),ra(),lo(e,t)},useContext:function(e){return X=`useContext`,c(),ra(),Wr(e)},useEffect:function(e,t){return X=`useEffect`,c(),ra(),to(e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,c(),ra(),so(e,t,n)},useInsertionEffect:function(e,t){X=`useInsertionEffect`,c(),ra(),$a(4,gy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,c(),ra(),ao(e,t)},useMemo:function(e,t){X=`useMemo`,c(),ra();var n=Y.H;Y.H=Wy;try{return fo(e,t)}finally{Y.H=n}},useReducer:function(e,t,n){X=`useReducer`,c(),ra();var r=Y.H;Y.H=Wy;try{return Sa(e,t,n)}finally{Y.H=r}},useRef:function(e){return X=`useRef`,c(),ra(),Qa(e)},useState:function(e){X=`useState`,c(),ra();var t=Y.H;Y.H=Wy;try{return Pa(e)}finally{Y.H=t}},useDebugValue:function(){X=`useDebugValue`,c(),ra()},useDeferredValue:function(e,t){return X=`useDeferredValue`,c(),ra(),mo(e,t)},useTransition:function(){return X=`useTransition`,c(),ra(),wo()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,c(),ra(),Ea(e,t,n)},useId:function(){return X=`useId`,c(),ra(),Oo()},useFormState:function(e,t){return X=`useFormState`,c(),ra(),Ka(e,t)},useActionState:function(e,t){return X=`useActionState`,c(),ra(),Ka(e,t)},useOptimistic:function(e){return X=`useOptimistic`,c(),ra(),Fa(e)},useMemoCache:function(e){return c(),ba(e)},useHostTransitionStatus:Do,useCacheRefresh:function(){return X=`useCacheRefresh`,ra(),ko()},useEffectEvent:function(e){return X=`useEffectEvent`,c(),ra(),ro(e)}},Gy={readContext:function(e){return l(),Wr(e)},use:function(e){return c(),ya(e)},useCallback:function(e,t){return X=`useCallback`,c(),J(),uo(e,t)},useContext:function(e){return X=`useContext`,c(),J(),Wr(e)},useEffect:function(e,t){X=`useEffect`,c(),J(),eo(2048,vy,e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,c(),J(),co(e,t,n)},useInsertionEffect:function(e,t){return X=`useInsertionEffect`,c(),J(),eo(4,gy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,c(),J(),eo(4,_y,e,t)},useMemo:function(e,t){X=`useMemo`,c(),J();var n=Y.H;Y.H=Gy;try{return po(e,t)}finally{Y.H=n}},useReducer:function(e,t,n){X=`useReducer`,c(),J();var r=Y.H;Y.H=Gy;try{return Ca(e,t,n)}finally{Y.H=r}},useRef:function(){return X=`useRef`,c(),J(),ga().memoizedState},useState:function(){X=`useState`,c(),J();var e=Y.H;Y.H=Gy;try{return Ca(xa)}finally{Y.H=e}},useDebugValue:function(){X=`useDebugValue`,c(),J()},useDeferredValue:function(e,t){return X=`useDeferredValue`,c(),J(),ho(e,t)},useTransition:function(){return X=`useTransition`,c(),J(),To()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,c(),J(),Da(e,t,n)},useId:function(){return X=`useId`,c(),J(),ga().memoizedState},useFormState:function(e){return X=`useFormState`,c(),J(),qa(e)},useActionState:function(e){return X=`useActionState`,c(),J(),qa(e)},useOptimistic:function(e,t){return X=`useOptimistic`,c(),J(),Ia(e,t)},useMemoCache:function(e){return c(),ba(e)},useHostTransitionStatus:Do,useCacheRefresh:function(){return X=`useCacheRefresh`,J(),ga().memoizedState},useEffectEvent:function(e){return X=`useEffectEvent`,c(),J(),io(e)}},Ky={readContext:function(e){return l(),Wr(e)},use:function(e){return c(),ya(e)},useCallback:function(e,t){return X=`useCallback`,c(),J(),uo(e,t)},useContext:function(e){return X=`useContext`,c(),J(),Wr(e)},useEffect:function(e,t){X=`useEffect`,c(),J(),eo(2048,vy,e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,c(),J(),co(e,t,n)},useInsertionEffect:function(e,t){return X=`useInsertionEffect`,c(),J(),eo(4,gy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,c(),J(),eo(4,_y,e,t)},useMemo:function(e,t){X=`useMemo`,c(),J();var n=Y.H;Y.H=Gy;try{return po(e,t)}finally{Y.H=n}},useReducer:function(e,t,n){X=`useReducer`,c(),J();var r=Y.H;Y.H=Gy;try{return Ta(e,t,n)}finally{Y.H=r}},useRef:function(){return X=`useRef`,c(),J(),ga().memoizedState},useState:function(){X=`useState`,c(),J();var e=Y.H;Y.H=Gy;try{return Ta(xa)}finally{Y.H=e}},useDebugValue:function(){X=`useDebugValue`,c(),J()},useDeferredValue:function(e,t){return X=`useDeferredValue`,c(),J(),go(e,t)},useTransition:function(){return X=`useTransition`,c(),J(),Eo()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,c(),J(),Da(e,t,n)},useId:function(){return X=`useId`,c(),J(),ga().memoizedState},useFormState:function(e){return X=`useFormState`,c(),J(),Xa(e)},useActionState:function(e){return X=`useActionState`,c(),J(),Xa(e)},useOptimistic:function(e,t){return X=`useOptimistic`,c(),J(),Ra(e,t)},useMemoCache:function(e){return c(),ba(e)},useHostTransitionStatus:Do,useCacheRefresh:function(){return X=`useCacheRefresh`,J(),ga().memoizedState},useEffectEvent:function(e){return X=`useEffectEvent`,c(),J(),io(e)}};var qy={},Jy=new Set,Yy=new Set,Xy=new Set,Zy=new Set,Qy=new Set,$y=new Set,eb=new Set,tb=new Set,nb=new Set,rb=new Set;Object.freeze(qy);var ib={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Hc(e),i=Bi(r);i.payload=t,n!=null&&(Ro(n),i.callback=n),t=Vi(e,i,r),t!==null&&(Xr(r,`this.setState()`,e),Wc(t,e,r),Hi(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Hc(e),i=Bi(r);i.tag=ey,i.payload=t,n!=null&&(Ro(n),i.callback=n),t=Vi(e,i,r),t!==null&&(Xr(r,`this.replaceState()`,e),Wc(t,e,r),Hi(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Hc(e),r=Bi(n);r.tag=ty,t!=null&&(Ro(t),r.callback=t),t=Vi(e,r,n),t!==null&&(Xr(n,`this.forceUpdate()`,e),Wc(t,e,n),Hi(t,e,n))}},ab=null,ob=null,sb=Error(`This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue.`),cb=!1,lb={},ub={},db={},fb={},pb=!1,mb={},hb={},gb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},_b=!1,vb=null;vb=new Set;var yb=!1,bb=!1,xb=!1,Sb=typeof WeakSet==`function`?WeakSet:Set,Cb=null,wb=null,Tb=null,Eb=null,Db=!1,Ob=null,kb=!1,Ab=8192,jb={getCacheForType:function(e){var t=Wr(f_),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Wr(f_).controller.signal},getOwner:function(){return sp}};if(typeof Symbol==`function`&&Symbol.for){var Mb=Symbol.for;Mb(`selector.component`),Mb(`selector.has_pseudo_class`),Mb(`selector.role`),Mb(`selector.test_id`),Mb(`selector.text`)}var Nb=[],Pb=typeof WeakMap==`function`?WeakMap:Map,Fb=0,Ib=2,Lb=4,Rb=0,zb=1,Bb=2,Vb=3,Hb=4,Ub=6,Wb=5,Gb=Fb,Kb=null,qb=null,Jb=0,Yb=0,Xb=1,Zb=2,Qb=3,$b=4,ex=5,tx=6,nx=7,rx=8,ix=9,ax=Yb,ox=null,sx=!1,cx=!1,lx=!1,ux=0,dx=Rb,fx=0,px=0,mx=0,hx=0,gx=0,_x=null,vx=null,yx=!1,bx=0,xx=0,Sx=300,Cx=1/0,wx=500,Tx=null,Ex=null,Dx=null,Ox=0,kx=1,Ax=2,jx=3,Mx=0,Nx=1,Px=2,Fx=3,Ix=4,Lx=5,Rx=0,zx=null,Bx=null,Vx=0,Hx=0,Ux=-0,Wx=null,Gx=null,Kx=null,qx=Ox,Jx=null,Yx=50,Xx=0,Zx=null,Qx=!1,$x=!1,eS=50,tS=0,nS=null,rS=!1,iS=null,aS=!1,oS=new Set,sS={},cS=null,lS=null,uS=!1,dS=!1,fS=!1,pS=!1,mS=0,hS={};(function(){for(var e=0;e<$h.length;e++){var t=$h[e],n=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Nn(n,`on`+t)}Nn(Gh,`onAnimationEnd`),Nn(Kh,`onAnimationIteration`),Nn(qh,`onAnimationStart`),Nn(`dblclick`,`onDoubleClick`),Nn(`focusin`,`onFocus`),Nn(`focusout`,`onBlur`),Nn(Jh,`onTransitionRun`),Nn(Yh,`onTransitionStart`),Nn(Xh,`onTransitionCancel`),Nn(Zh,`onTransitionEnd`)})(),We(`onMouseEnter`,[`mouseout`,`mouseover`]),We(`onMouseLeave`,[`mouseout`,`mouseover`]),We(`onPointerEnter`,[`pointerout`,`pointerover`]),We(`onPointerLeave`,[`pointerout`,`pointerover`]),V(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),V(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),V(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),V(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),V(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),V(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var gS=`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(` `),_S=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(gS)),vS=`_reactListening`+Math.random().toString(36).slice(2),yS=!1,bS=!1,xS=!1,SS=!1,CS=!1,wS=!1,TS=!1,ES={},DS=/\r\n?/g,OS=/\u0000|\uFFFD/g,kS=`http://www.w3.org/1999/xlink`,AS=`http://www.w3.org/XML/1998/namespace`,jS=`javascript:throw new Error('React form unexpectedly submitted.')`,MS=`suppressHydrationWarning`,NS=`&`,PS=`/&`,FS=`$`,IS=`/$`,LS=`$?`,RS=`$~`,zS=`$!`,BS=`html`,VS=`body`,HS=`head`,US=`F!`,WS=`F`,GS=`loading`,KS=`style`,qS=0,JS=1,YS=2,XS=null,ZS=null,QS={dialog:!0,webview:!0},$S=null,eC=void 0,tC=typeof setTimeout==`function`?setTimeout:void 0,nC=typeof clearTimeout==`function`?clearTimeout:void 0,rC=-1,iC=typeof Promise==`function`?Promise:void 0,aC=typeof queueMicrotask==`function`?queueMicrotask:iC===void 0?tC:function(e){return iC.resolve(null).then(e).catch(Lu)},oC=null,sC=0,cC=1,lC=2,uC=3,dC=4,fC=new Map,pC=new Set,mC=Bf.d;Bf.d={f:function(){var e=mC.f(),t=Yc();return e||t},r:function(e){var t=Be(e);t!==null&&t.tag===5&&t.type===`form`?Co(t):mC.r(e)},D:function(e){mC.D(e),bd(`dns-prefetch`,e,null)},C:function(e,t){mC.C(e,t),bd(`preconnect`,e,t)},L:function(e,t,n){mC.L(e,t,n);var r=hC;if(r&&e&&t){var i=`link[rel="preload"][as="`+nt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+nt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+nt(n.imageSizes)+`"]`)):i+=`[href="`+nt(e)+`"]`;var a=i;switch(t){case`style`:a=Cd(e);break;case`script`:a=Dd(e)}fC.has(a)||(e=xf({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),fC.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(wd(a))||t===`script`&&r.querySelector(Od(a))||(t=r.createElement(`link`),gu(t,`link`,e),Ue(t),r.head.appendChild(t)))}},m:function(e,t){mC.m(e,t);var n=hC;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+nt(r)+`"][href="`+nt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Dd(e)}if(!fC.has(a)&&(e=xf({rel:`modulepreload`,href:e},t),fC.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Od(a)))return}r=n.createElement(`link`),gu(r,`link`,e),Ue(r),n.head.appendChild(r)}}},X:function(e,t){mC.X(e,t);var n=hC;if(n&&e){var r=He(n).hoistableScripts,i=Dd(e),a=r.get(i);a||(a=n.querySelector(Od(i)),a||(e=xf({src:e,async:!0},t),(t=fC.get(i))&&Md(e,t),a=n.createElement(`script`),Ue(a),gu(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}},S:function(e,t,n){mC.S(e,t,n);var r=hC;if(r&&e){var i=He(r).hoistableStyles,a=Cd(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:sC,preload:null};if(o=r.querySelector(wd(a)))s.loading=cC|dC;else{e=xf({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=fC.get(a))&&jd(e,n);var c=o=r.createElement(`link`);Ue(c),gu(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=cC}),c.addEventListener(`error`,function(){s.loading|=lC}),s.loading|=dC,Ad(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}},M:function(e,t){mC.M(e,t);var n=hC;if(n&&e){var r=He(n).hoistableScripts,i=Dd(e),a=r.get(i);a||(a=n.querySelector(Od(i)),a||(e=xf({src:e,async:!0,type:`module`},t),(t=fC.get(i))&&Md(e,t),a=n.createElement(`script`),Ue(a),gu(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}};var hC=typeof document>`u`?null:document,gC=null,_C=6e4,Z=800,vC=500,yC=0,bC=null,xC=null,SC=Vf,CC={$$typeof:kf,Provider:null,Consumer:null,_currentValue:SC,_currentValue2:SC,_threadCount:0},wC=`%c%s%c`,TC=`background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px`,EC=``,DC=` `,OC=Function.prototype.bind,kC=!1,AC=null,jC=null,MC=null,NC=null,PC=null,FC=null,IC=null,LC=null,RC=null,zC=null;AC=function(e,r,i,a){r=t(e,r),r!==null&&(i=n(r.memoizedState,i,0,a),r.memoizedState=i,r.baseState=i,e.memoizedProps=xf({},e.memoizedProps),i=tr(e,2),i!==null&&Wc(i,e,2))},jC=function(e,n,r){n=t(e,n),n!==null&&(r=a(n.memoizedState,r,0),n.memoizedState=r,n.baseState=r,e.memoizedProps=xf({},e.memoizedProps),r=tr(e,2),r!==null&&Wc(r,e,2))},MC=function(e,n,i,a){n=t(e,n),n!==null&&(i=r(n.memoizedState,i,a),n.memoizedState=i,n.baseState=i,e.memoizedProps=xf({},e.memoizedProps),i=tr(e,2),i!==null&&Wc(i,e,2))},NC=function(e,t,r){e.pendingProps=n(e.memoizedProps,t,0,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=tr(e,2),t!==null&&Wc(t,e,2)},PC=function(e,t){e.pendingProps=a(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=tr(e,2),t!==null&&Wc(t,e,2)},FC=function(e,t,n){e.pendingProps=r(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=tr(e,2),t!==null&&Wc(t,e,2)},IC=function(e){var t=tr(e,2);t!==null&&Wc(t,e,2)},LC=function(e){var t=Te(),n=tr(e,t);n!==null&&Wc(n,e,t)},RC=function(e){s=e},zC=function(e){o=e};var BC=!0,VC=null,HC=!1,UC=null,WC=null,GC=null,KC=new Map,qC=new Map,JC=[],YC=`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(` `),XC=null;if(gf.prototype.render=hf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(`Cannot update an unmounted root.`);var n=arguments;typeof n[1]==`function`?console.error(`does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().`):b(n[1])?console.error(`You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root.`):n[1]!==void 0&&console.error(`You passed a second argument to root.render(...) but it only accepts one argument.`),n=e;var r=t.current;Gd(r,Hc(r),n,t,null,null)},gf.prototype.unmount=hf.prototype.unmount=function(){var e=arguments;if(typeof e[0]==`function`&&console.error(`does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().`),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(Gb&(Ib|Lb))!==Fb&&console.error(`Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition.`),Gd(e.current,2,null,e,null,null),Yc(),t[Bp]=null}},gf.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ie();e={blockedOn:null,target:e,priority:t};for(var n=0;n<JC.length&&t!==0&&t<JC[n].priority;n++);JC.splice(n,0,e),n===0&&sf(e)}},(function(){var e=yf.version;if(e!==`19.2.6`)throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
235
+ Check the top-level render call using <`+r+`>.`);var o=``;n!=null&&e!==n&&(r=null,typeof n.tag==`number`?r=A(n):typeof n.name==`string`&&(r=n.name),r&&(o=` It was passed a child from `+r+`.`)),R(t,function(){console.error(`Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.`,a,o)})}}};var Zv=K(!0),Qv=K(!1),$v=0,ey=1,ty=2,ny=3,ry=!1,iy=!1,ay=null,oy=!1,sy=j(null),cy=j(0),ly=j(null),uy=null,dy=1,fy=2,py=j(0),my=0,hy=1,gy=2,_y=4,vy=8,yy,by=new Set,xy=new Set,Sy=new Set,Cy=new Set,wy=0,Ty=null,Ey=null,Dy=null,Oy=!1,ky=!1,Ay=!1,jy=0,My=0,Ny=null,Py=0,Fy=25,X=null,Iy=null,Ly=-1,Ry=!1,zy={readContext:Wr,use:ya,useCallback:oa,useContext:oa,useEffect:oa,useImperativeHandle:oa,useLayoutEffect:oa,useInsertionEffect:oa,useMemo:oa,useReducer:oa,useRef:oa,useState:oa,useDebugValue:oa,useDeferredValue:oa,useTransition:oa,useSyncExternalStore:oa,useId:oa,useHostTransitionStatus:oa,useFormState:oa,useActionState:oa,useOptimistic:oa,useMemoCache:oa,useCacheRefresh:oa};zy.useEffectEvent=oa;var By=null,Vy=null,Hy=null,Uy=null,Wy=null,Gy=null,Ky=null;By={readContext:function(e){return Wr(e)},use:ya,useCallback:function(e,t){return X=`useCallback`,ra(),ia(t),lo(e,t)},useContext:function(e){return X=`useContext`,ra(),Wr(e)},useEffect:function(e,t){return X=`useEffect`,ra(),ia(t),to(e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,ra(),ia(n),so(e,t,n)},useInsertionEffect:function(e,t){X=`useInsertionEffect`,ra(),ia(t),$a(4,gy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,ra(),ia(t),ao(e,t)},useMemo:function(e,t){X=`useMemo`,ra(),ia(t);var n=Y.H;Y.H=Wy;try{return fo(e,t)}finally{Y.H=n}},useReducer:function(e,t,n){X=`useReducer`,ra();var r=Y.H;Y.H=Wy;try{return Sa(e,t,n)}finally{Y.H=r}},useRef:function(e){return X=`useRef`,ra(),Qa(e)},useState:function(e){X=`useState`,ra();var t=Y.H;Y.H=Wy;try{return Pa(e)}finally{Y.H=t}},useDebugValue:function(){X=`useDebugValue`,ra()},useDeferredValue:function(e,t){return X=`useDeferredValue`,ra(),mo(e,t)},useTransition:function(){return X=`useTransition`,ra(),wo()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,ra(),Ea(e,t,n)},useId:function(){return X=`useId`,ra(),Oo()},useFormState:function(e,t){return X=`useFormState`,ra(),aa(),Ka(e,t)},useActionState:function(e,t){return X=`useActionState`,ra(),Ka(e,t)},useOptimistic:function(e){return X=`useOptimistic`,ra(),Fa(e)},useHostTransitionStatus:Do,useMemoCache:ba,useCacheRefresh:function(){return X=`useCacheRefresh`,ra(),ko()},useEffectEvent:function(e){return X=`useEffectEvent`,ra(),ro(e)}},Vy={readContext:function(e){return Wr(e)},use:ya,useCallback:function(e,t){return X=`useCallback`,J(),lo(e,t)},useContext:function(e){return X=`useContext`,J(),Wr(e)},useEffect:function(e,t){return X=`useEffect`,J(),to(e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,J(),so(e,t,n)},useInsertionEffect:function(e,t){X=`useInsertionEffect`,J(),$a(4,gy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,J(),ao(e,t)},useMemo:function(e,t){X=`useMemo`,J();var n=Y.H;Y.H=Wy;try{return fo(e,t)}finally{Y.H=n}},useReducer:function(e,t,n){X=`useReducer`,J();var r=Y.H;Y.H=Wy;try{return Sa(e,t,n)}finally{Y.H=r}},useRef:function(e){return X=`useRef`,J(),Qa(e)},useState:function(e){X=`useState`,J();var t=Y.H;Y.H=Wy;try{return Pa(e)}finally{Y.H=t}},useDebugValue:function(){X=`useDebugValue`,J()},useDeferredValue:function(e,t){return X=`useDeferredValue`,J(),mo(e,t)},useTransition:function(){return X=`useTransition`,J(),wo()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,J(),Ea(e,t,n)},useId:function(){return X=`useId`,J(),Oo()},useActionState:function(e,t){return X=`useActionState`,J(),Ka(e,t)},useFormState:function(e,t){return X=`useFormState`,J(),aa(),Ka(e,t)},useOptimistic:function(e){return X=`useOptimistic`,J(),Fa(e)},useHostTransitionStatus:Do,useMemoCache:ba,useCacheRefresh:function(){return X=`useCacheRefresh`,J(),ko()},useEffectEvent:function(e){return X=`useEffectEvent`,J(),ro(e)}},Hy={readContext:function(e){return Wr(e)},use:ya,useCallback:function(e,t){return X=`useCallback`,J(),uo(e,t)},useContext:function(e){return X=`useContext`,J(),Wr(e)},useEffect:function(e,t){X=`useEffect`,J(),eo(2048,vy,e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,J(),co(e,t,n)},useInsertionEffect:function(e,t){return X=`useInsertionEffect`,J(),eo(4,gy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,J(),eo(4,_y,e,t)},useMemo:function(e,t){X=`useMemo`,J();var n=Y.H;Y.H=Gy;try{return po(e,t)}finally{Y.H=n}},useReducer:function(e,t,n){X=`useReducer`,J();var r=Y.H;Y.H=Gy;try{return Ca(e,t,n)}finally{Y.H=r}},useRef:function(){return X=`useRef`,J(),ga().memoizedState},useState:function(){X=`useState`,J();var e=Y.H;Y.H=Gy;try{return Ca(xa)}finally{Y.H=e}},useDebugValue:function(){X=`useDebugValue`,J()},useDeferredValue:function(e,t){return X=`useDeferredValue`,J(),ho(e,t)},useTransition:function(){return X=`useTransition`,J(),To()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,J(),Da(e,t,n)},useId:function(){return X=`useId`,J(),ga().memoizedState},useFormState:function(e){return X=`useFormState`,J(),aa(),qa(e)},useActionState:function(e){return X=`useActionState`,J(),qa(e)},useOptimistic:function(e,t){return X=`useOptimistic`,J(),Ia(e,t)},useHostTransitionStatus:Do,useMemoCache:ba,useCacheRefresh:function(){return X=`useCacheRefresh`,J(),ga().memoizedState},useEffectEvent:function(e){return X=`useEffectEvent`,J(),io(e)}},Uy={readContext:function(e){return Wr(e)},use:ya,useCallback:function(e,t){return X=`useCallback`,J(),uo(e,t)},useContext:function(e){return X=`useContext`,J(),Wr(e)},useEffect:function(e,t){X=`useEffect`,J(),eo(2048,vy,e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,J(),co(e,t,n)},useInsertionEffect:function(e,t){return X=`useInsertionEffect`,J(),eo(4,gy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,J(),eo(4,_y,e,t)},useMemo:function(e,t){X=`useMemo`,J();var n=Y.H;Y.H=Ky;try{return po(e,t)}finally{Y.H=n}},useReducer:function(e,t,n){X=`useReducer`,J();var r=Y.H;Y.H=Ky;try{return Ta(e,t,n)}finally{Y.H=r}},useRef:function(){return X=`useRef`,J(),ga().memoizedState},useState:function(){X=`useState`,J();var e=Y.H;Y.H=Ky;try{return Ta(xa)}finally{Y.H=e}},useDebugValue:function(){X=`useDebugValue`,J()},useDeferredValue:function(e,t){return X=`useDeferredValue`,J(),go(e,t)},useTransition:function(){return X=`useTransition`,J(),Eo()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,J(),Da(e,t,n)},useId:function(){return X=`useId`,J(),ga().memoizedState},useFormState:function(e){return X=`useFormState`,J(),aa(),Xa(e)},useActionState:function(e){return X=`useActionState`,J(),Xa(e)},useOptimistic:function(e,t){return X=`useOptimistic`,J(),Ra(e,t)},useHostTransitionStatus:Do,useMemoCache:ba,useCacheRefresh:function(){return X=`useCacheRefresh`,J(),ga().memoizedState},useEffectEvent:function(e){return X=`useEffectEvent`,J(),io(e)}},Wy={readContext:function(e){return l(),Wr(e)},use:function(e){return c(),ya(e)},useCallback:function(e,t){return X=`useCallback`,c(),ra(),lo(e,t)},useContext:function(e){return X=`useContext`,c(),ra(),Wr(e)},useEffect:function(e,t){return X=`useEffect`,c(),ra(),to(e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,c(),ra(),so(e,t,n)},useInsertionEffect:function(e,t){X=`useInsertionEffect`,c(),ra(),$a(4,gy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,c(),ra(),ao(e,t)},useMemo:function(e,t){X=`useMemo`,c(),ra();var n=Y.H;Y.H=Wy;try{return fo(e,t)}finally{Y.H=n}},useReducer:function(e,t,n){X=`useReducer`,c(),ra();var r=Y.H;Y.H=Wy;try{return Sa(e,t,n)}finally{Y.H=r}},useRef:function(e){return X=`useRef`,c(),ra(),Qa(e)},useState:function(e){X=`useState`,c(),ra();var t=Y.H;Y.H=Wy;try{return Pa(e)}finally{Y.H=t}},useDebugValue:function(){X=`useDebugValue`,c(),ra()},useDeferredValue:function(e,t){return X=`useDeferredValue`,c(),ra(),mo(e,t)},useTransition:function(){return X=`useTransition`,c(),ra(),wo()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,c(),ra(),Ea(e,t,n)},useId:function(){return X=`useId`,c(),ra(),Oo()},useFormState:function(e,t){return X=`useFormState`,c(),ra(),Ka(e,t)},useActionState:function(e,t){return X=`useActionState`,c(),ra(),Ka(e,t)},useOptimistic:function(e){return X=`useOptimistic`,c(),ra(),Fa(e)},useMemoCache:function(e){return c(),ba(e)},useHostTransitionStatus:Do,useCacheRefresh:function(){return X=`useCacheRefresh`,ra(),ko()},useEffectEvent:function(e){return X=`useEffectEvent`,c(),ra(),ro(e)}},Gy={readContext:function(e){return l(),Wr(e)},use:function(e){return c(),ya(e)},useCallback:function(e,t){return X=`useCallback`,c(),J(),uo(e,t)},useContext:function(e){return X=`useContext`,c(),J(),Wr(e)},useEffect:function(e,t){X=`useEffect`,c(),J(),eo(2048,vy,e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,c(),J(),co(e,t,n)},useInsertionEffect:function(e,t){return X=`useInsertionEffect`,c(),J(),eo(4,gy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,c(),J(),eo(4,_y,e,t)},useMemo:function(e,t){X=`useMemo`,c(),J();var n=Y.H;Y.H=Gy;try{return po(e,t)}finally{Y.H=n}},useReducer:function(e,t,n){X=`useReducer`,c(),J();var r=Y.H;Y.H=Gy;try{return Ca(e,t,n)}finally{Y.H=r}},useRef:function(){return X=`useRef`,c(),J(),ga().memoizedState},useState:function(){X=`useState`,c(),J();var e=Y.H;Y.H=Gy;try{return Ca(xa)}finally{Y.H=e}},useDebugValue:function(){X=`useDebugValue`,c(),J()},useDeferredValue:function(e,t){return X=`useDeferredValue`,c(),J(),ho(e,t)},useTransition:function(){return X=`useTransition`,c(),J(),To()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,c(),J(),Da(e,t,n)},useId:function(){return X=`useId`,c(),J(),ga().memoizedState},useFormState:function(e){return X=`useFormState`,c(),J(),qa(e)},useActionState:function(e){return X=`useActionState`,c(),J(),qa(e)},useOptimistic:function(e,t){return X=`useOptimistic`,c(),J(),Ia(e,t)},useMemoCache:function(e){return c(),ba(e)},useHostTransitionStatus:Do,useCacheRefresh:function(){return X=`useCacheRefresh`,J(),ga().memoizedState},useEffectEvent:function(e){return X=`useEffectEvent`,c(),J(),io(e)}},Ky={readContext:function(e){return l(),Wr(e)},use:function(e){return c(),ya(e)},useCallback:function(e,t){return X=`useCallback`,c(),J(),uo(e,t)},useContext:function(e){return X=`useContext`,c(),J(),Wr(e)},useEffect:function(e,t){X=`useEffect`,c(),J(),eo(2048,vy,e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,c(),J(),co(e,t,n)},useInsertionEffect:function(e,t){return X=`useInsertionEffect`,c(),J(),eo(4,gy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,c(),J(),eo(4,_y,e,t)},useMemo:function(e,t){X=`useMemo`,c(),J();var n=Y.H;Y.H=Gy;try{return po(e,t)}finally{Y.H=n}},useReducer:function(e,t,n){X=`useReducer`,c(),J();var r=Y.H;Y.H=Gy;try{return Ta(e,t,n)}finally{Y.H=r}},useRef:function(){return X=`useRef`,c(),J(),ga().memoizedState},useState:function(){X=`useState`,c(),J();var e=Y.H;Y.H=Gy;try{return Ta(xa)}finally{Y.H=e}},useDebugValue:function(){X=`useDebugValue`,c(),J()},useDeferredValue:function(e,t){return X=`useDeferredValue`,c(),J(),go(e,t)},useTransition:function(){return X=`useTransition`,c(),J(),Eo()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,c(),J(),Da(e,t,n)},useId:function(){return X=`useId`,c(),J(),ga().memoizedState},useFormState:function(e){return X=`useFormState`,c(),J(),Xa(e)},useActionState:function(e){return X=`useActionState`,c(),J(),Xa(e)},useOptimistic:function(e,t){return X=`useOptimistic`,c(),J(),Ra(e,t)},useMemoCache:function(e){return c(),ba(e)},useHostTransitionStatus:Do,useCacheRefresh:function(){return X=`useCacheRefresh`,J(),ga().memoizedState},useEffectEvent:function(e){return X=`useEffectEvent`,c(),J(),io(e)}};var qy={},Jy=new Set,Yy=new Set,Xy=new Set,Zy=new Set,Qy=new Set,$y=new Set,eb=new Set,tb=new Set,nb=new Set,rb=new Set;Object.freeze(qy);var ib={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Hc(e),i=Bi(r);i.payload=t,n!=null&&(Ro(n),i.callback=n),t=Vi(e,i,r),t!==null&&(Xr(r,`this.setState()`,e),Wc(t,e,r),Hi(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Hc(e),i=Bi(r);i.tag=ey,i.payload=t,n!=null&&(Ro(n),i.callback=n),t=Vi(e,i,r),t!==null&&(Xr(r,`this.replaceState()`,e),Wc(t,e,r),Hi(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Hc(e),r=Bi(n);r.tag=ty,t!=null&&(Ro(t),r.callback=t),t=Vi(e,r,n),t!==null&&(Xr(n,`this.forceUpdate()`,e),Wc(t,e,n),Hi(t,e,n))}},ab=null,ob=null,sb=Error(`This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue.`),cb=!1,lb={},ub={},db={},fb={},pb=!1,mb={},hb={},gb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},_b=!1,vb=null;vb=new Set;var yb=!1,bb=!1,xb=!1,Sb=typeof WeakSet==`function`?WeakSet:Set,Cb=null,wb=null,Tb=null,Eb=null,Db=!1,Ob=null,kb=!1,Ab=8192,jb={getCacheForType:function(e){var t=Wr(f_),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Wr(f_).controller.signal},getOwner:function(){return sp}};if(typeof Symbol==`function`&&Symbol.for){var Mb=Symbol.for;Mb(`selector.component`),Mb(`selector.has_pseudo_class`),Mb(`selector.role`),Mb(`selector.test_id`),Mb(`selector.text`)}var Nb=[],Pb=typeof WeakMap==`function`?WeakMap:Map,Fb=0,Ib=2,Lb=4,Rb=0,zb=1,Bb=2,Vb=3,Hb=4,Ub=6,Wb=5,Gb=Fb,Kb=null,qb=null,Jb=0,Yb=0,Xb=1,Zb=2,Qb=3,$b=4,ex=5,tx=6,nx=7,rx=8,ix=9,ax=Yb,ox=null,sx=!1,cx=!1,lx=!1,ux=0,dx=Rb,fx=0,px=0,mx=0,hx=0,gx=0,_x=null,vx=null,yx=!1,bx=0,xx=0,Sx=300,Cx=1/0,wx=500,Tx=null,Ex=null,Dx=null,Ox=0,kx=1,Ax=2,jx=3,Mx=0,Nx=1,Px=2,Fx=3,Ix=4,Lx=5,Rx=0,zx=null,Bx=null,Vx=0,Hx=0,Ux=-0,Wx=null,Gx=null,Kx=null,qx=Ox,Jx=null,Yx=50,Xx=0,Zx=null,Qx=!1,$x=!1,eS=50,tS=0,nS=null,rS=!1,iS=null,aS=!1,oS=new Set,sS={},cS=null,lS=null,uS=!1,dS=!1,fS=!1,pS=!1,mS=0,hS={};(function(){for(var e=0;e<$h.length;e++){var t=$h[e],n=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Nn(n,`on`+t)}Nn(Gh,`onAnimationEnd`),Nn(Kh,`onAnimationIteration`),Nn(qh,`onAnimationStart`),Nn(`dblclick`,`onDoubleClick`),Nn(`focusin`,`onFocus`),Nn(`focusout`,`onBlur`),Nn(Jh,`onTransitionRun`),Nn(Yh,`onTransitionStart`),Nn(Xh,`onTransitionCancel`),Nn(Zh,`onTransitionEnd`)})(),We(`onMouseEnter`,[`mouseout`,`mouseover`]),We(`onMouseLeave`,[`mouseout`,`mouseover`]),We(`onPointerEnter`,[`pointerout`,`pointerover`]),We(`onPointerLeave`,[`pointerout`,`pointerover`]),V(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),V(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),V(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),V(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),V(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),V(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var gS=`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(` `),_S=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(gS)),vS=`_reactListening`+Math.random().toString(36).slice(2),yS=!1,bS=!1,xS=!1,SS=!1,CS=!1,wS=!1,TS=!1,ES={},DS=/\r\n?/g,OS=/\u0000|\uFFFD/g,kS=`http://www.w3.org/1999/xlink`,AS=`http://www.w3.org/XML/1998/namespace`,jS=`javascript:throw new Error('React form unexpectedly submitted.')`,MS=`suppressHydrationWarning`,NS=`&`,PS=`/&`,FS=`$`,IS=`/$`,LS=`$?`,RS=`$~`,zS=`$!`,BS=`html`,VS=`body`,HS=`head`,US=`F!`,WS=`F`,GS=`loading`,KS=`style`,qS=0,JS=1,YS=2,XS=null,ZS=null,QS={dialog:!0,webview:!0},$S=null,eC=void 0,tC=typeof setTimeout==`function`?setTimeout:void 0,nC=typeof clearTimeout==`function`?clearTimeout:void 0,rC=-1,iC=typeof Promise==`function`?Promise:void 0,aC=typeof queueMicrotask==`function`?queueMicrotask:iC===void 0?tC:function(e){return iC.resolve(null).then(e).catch(Lu)},oC=null,sC=0,cC=1,lC=2,uC=3,dC=4,fC=new Map,Z=new Set,pC=Bf.d;Bf.d={f:function(){var e=pC.f(),t=Yc();return e||t},r:function(e){var t=Be(e);t!==null&&t.tag===5&&t.type===`form`?Co(t):pC.r(e)},D:function(e){pC.D(e),bd(`dns-prefetch`,e,null)},C:function(e,t){pC.C(e,t),bd(`preconnect`,e,t)},L:function(e,t,n){pC.L(e,t,n);var r=mC;if(r&&e&&t){var i=`link[rel="preload"][as="`+nt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+nt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+nt(n.imageSizes)+`"]`)):i+=`[href="`+nt(e)+`"]`;var a=i;switch(t){case`style`:a=Cd(e);break;case`script`:a=Dd(e)}fC.has(a)||(e=xf({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),fC.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(wd(a))||t===`script`&&r.querySelector(Od(a))||(t=r.createElement(`link`),gu(t,`link`,e),Ue(t),r.head.appendChild(t)))}},m:function(e,t){pC.m(e,t);var n=mC;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+nt(r)+`"][href="`+nt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Dd(e)}if(!fC.has(a)&&(e=xf({rel:`modulepreload`,href:e},t),fC.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Od(a)))return}r=n.createElement(`link`),gu(r,`link`,e),Ue(r),n.head.appendChild(r)}}},X:function(e,t){pC.X(e,t);var n=mC;if(n&&e){var r=He(n).hoistableScripts,i=Dd(e),a=r.get(i);a||(a=n.querySelector(Od(i)),a||(e=xf({src:e,async:!0},t),(t=fC.get(i))&&Md(e,t),a=n.createElement(`script`),Ue(a),gu(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}},S:function(e,t,n){pC.S(e,t,n);var r=mC;if(r&&e){var i=He(r).hoistableStyles,a=Cd(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:sC,preload:null};if(o=r.querySelector(wd(a)))s.loading=cC|dC;else{e=xf({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=fC.get(a))&&jd(e,n);var c=o=r.createElement(`link`);Ue(c),gu(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=cC}),c.addEventListener(`error`,function(){s.loading|=lC}),s.loading|=dC,Ad(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}},M:function(e,t){pC.M(e,t);var n=mC;if(n&&e){var r=He(n).hoistableScripts,i=Dd(e),a=r.get(i);a||(a=n.querySelector(Od(i)),a||(e=xf({src:e,async:!0,type:`module`},t),(t=fC.get(i))&&Md(e,t),a=n.createElement(`script`),Ue(a),gu(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}};var mC=typeof document>`u`?null:document,hC=null,gC=6e4,_C=800,vC=500,yC=0,bC=null,xC=null,SC=Vf,CC={$$typeof:kf,Provider:null,Consumer:null,_currentValue:SC,_currentValue2:SC,_threadCount:0},wC=`%c%s%c`,TC=`background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px`,EC=``,DC=` `,OC=Function.prototype.bind,kC=!1,AC=null,jC=null,MC=null,NC=null,PC=null,FC=null,IC=null,LC=null,RC=null,zC=null;AC=function(e,r,i,a){r=t(e,r),r!==null&&(i=n(r.memoizedState,i,0,a),r.memoizedState=i,r.baseState=i,e.memoizedProps=xf({},e.memoizedProps),i=tr(e,2),i!==null&&Wc(i,e,2))},jC=function(e,n,r){n=t(e,n),n!==null&&(r=a(n.memoizedState,r,0),n.memoizedState=r,n.baseState=r,e.memoizedProps=xf({},e.memoizedProps),r=tr(e,2),r!==null&&Wc(r,e,2))},MC=function(e,n,i,a){n=t(e,n),n!==null&&(i=r(n.memoizedState,i,a),n.memoizedState=i,n.baseState=i,e.memoizedProps=xf({},e.memoizedProps),i=tr(e,2),i!==null&&Wc(i,e,2))},NC=function(e,t,r){e.pendingProps=n(e.memoizedProps,t,0,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=tr(e,2),t!==null&&Wc(t,e,2)},PC=function(e,t){e.pendingProps=a(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=tr(e,2),t!==null&&Wc(t,e,2)},FC=function(e,t,n){e.pendingProps=r(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=tr(e,2),t!==null&&Wc(t,e,2)},IC=function(e){var t=tr(e,2);t!==null&&Wc(t,e,2)},LC=function(e){var t=Te(),n=tr(e,t);n!==null&&Wc(n,e,t)},RC=function(e){s=e},zC=function(e){o=e};var BC=!0,VC=null,HC=!1,UC=null,WC=null,GC=null,KC=new Map,qC=new Map,JC=[],YC=`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(` `),XC=null;if(gf.prototype.render=hf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(`Cannot update an unmounted root.`);var n=arguments;typeof n[1]==`function`?console.error(`does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().`):b(n[1])?console.error(`You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root.`):n[1]!==void 0&&console.error(`You passed a second argument to root.render(...) but it only accepts one argument.`),n=e;var r=t.current;Gd(r,Hc(r),n,t,null,null)},gf.prototype.unmount=hf.prototype.unmount=function(){var e=arguments;if(typeof e[0]==`function`&&console.error(`does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().`),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(Gb&(Ib|Lb))!==Fb&&console.error(`Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition.`),Gd(e.current,2,null,e,null,null),Yc(),t[Bp]=null}},gf.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ie();e={blockedOn:null,target:e,priority:t};for(var n=0;n<JC.length&&t!==0&&t<JC[n].priority;n++);JC.splice(n,0,e),n===0&&sf(e)}},(function(){var e=yf.version;if(e!==`19.2.6`)throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
236
236
  - react: `+(e+`
237
237
  - react-dom: 19.2.6
238
238
  Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map==`function`&&Map.prototype!=null&&typeof Map.prototype.forEach==`function`&&typeof Set==`function`&&Set.prototype!=null&&typeof Set.prototype.clear==`function`&&typeof Set.prototype.forEach==`function`||console.error(`React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills`),Bf.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(`Unable to find node on an unmounted component.`):(e=Object.keys(e).join(`,`),Error(`Argument appears to not be a ReactComponent. Keys: `+e));return e=T(t),e=e===null?null:E(e),e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:`19.2.6`,rendererPackageName:`react-dom`,currentDispatcherRef:Y,reconcilerVersion:`19.2.6`};return e.overrideHookState=AC,e.overrideHookStateDeletePath=jC,e.overrideHookStateRenamePath=MC,e.overrideProps=NC,e.overridePropsDeletePath=PC,e.overridePropsRenamePath=FC,e.scheduleUpdate=IC,e.scheduleRetry=LC,e.setErrorHandler=RC,e.setSuspenseHandler=zC,e.scheduleRefresh=_,e.scheduleRoot=h,e.setRefreshHandler=v,e.getCurrentFiber=Xd,B(e)})()&&Km&&window.top===window.self&&(-1<navigator.userAgent.indexOf(`Chrome`)&&navigator.userAgent.indexOf(`Edge`)===-1||-1<navigator.userAgent.indexOf(`Firefox`))){var ZC=window.location.protocol;/^(https?|file):$/.test(ZC)&&console.info(`%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools`+(ZC===`file:`?`
@@ -303,7 +303,7 @@ React keys must be passed directly to JSX without using spread:
303
303
  `},fd=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},pd=function(){H.useEffect(function(){return document.body.setAttribute(ud,(fd()+1).toString()),function(){var e=fd()-1;e<=0?document.body.removeAttribute(ud):document.body.setAttribute(ud,e.toString())}},[])},md=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;pd();var a=H.useMemo(function(){return cd(i)},[i]);return H.createElement(ld,{styles:dd(a,!t,i,n?``:`!important`)})},hd=!1;if(typeof window<`u`)try{var gd=Object.defineProperty({},`passive`,{get:function(){return hd=!0,!0}});window.addEventListener(`test`,gd,gd),window.removeEventListener(`test`,gd,gd)}catch{hd=!1}var _d=hd?{passive:!1}:!1,vd=function(e){return e.tagName===`TEXTAREA`},yd=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!vd(e)&&n[t]===`visible`)},bd=function(e){return yd(e,`overflowY`)},xd=function(e){return yd(e,`overflowX`)},Sd=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Td(e,r)){var i=Ed(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Cd=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},wd=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Td=function(e,t){return e===`v`?bd(t):xd(t)},Ed=function(e,t){return e===`v`?Cd(t):wd(t)},Dd=function(e,t){return e===`h`&&t===`rtl`?-1:1},Od=function(e,t,n,r,i){var a=Dd(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Ed(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Td(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},kd=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ad=function(e){return[e.deltaX,e.deltaY]},jd=function(e){return e&&`current`in e?e.current:e},Md=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Nd=function(e){return`
304
304
  .block-interactivity-${e} {pointer-events: none;}
305
305
  .allow-interactivity-${e} {pointer-events: all;}
306
- `},Pd=0,Fd=[];function Id(e){var t=H.useRef([]),n=H.useRef([0,0]),r=H.useRef(),i=H.useState(Pd++)[0],a=H.useState(id)[0],o=H.useRef(e);H.useEffect(function(){o.current=e},[e]),H.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Nu([e.lockRef.current],(e.shards||[]).map(jd),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=H.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=kd(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Sd(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Sd(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Od(h,t,e,h===`h`?s:c,!0)},[]),c=H.useCallback(function(e){var n=e;if(!(!Fd.length||Fd[Fd.length-1]!==a)){var r=`deltaY`in n?Ad(n):kd(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Md(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(jd).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=H.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Ld(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=H.useCallback(function(e){n.current=kd(e),r.current=void 0},[]),d=H.useCallback(function(t){l(t.type,Ad(t),t.target,s(t,e.lockRef.current))},[]),f=H.useCallback(function(t){l(t.type,kd(t),t.target,s(t,e.lockRef.current))},[]);H.useEffect(function(){return Fd.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,_d),document.addEventListener(`touchmove`,c,_d),document.addEventListener(`touchstart`,u,_d),function(){Fd=Fd.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,_d),document.removeEventListener(`touchmove`,c,_d),document.removeEventListener(`touchstart`,u,_d)}},[]);var p=e.removeScrollBar,m=e.inert;return H.createElement(H.Fragment,null,m?H.createElement(a,{styles:Nd(i)}):null,p?H.createElement(md,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ld(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Rd=qu(Ju,Id),zd=H.forwardRef(function(e,t){return H.createElement(Xu,ju({},e,{ref:t,sideCar:Rd}))});zd.classNames=Xu.classNames;function Bd({keepMounted:e,opened:t,onClose:n,id:r,transitionProps:i,onExitTransitionEnd:a,onEnterTransitionEnd:o,trapFocus:s,closeOnEscape:c,returnFocus:l,closeOnClickOutside:u,withinPortal:d,portalProps:f,lockScroll:p,children:m,zIndex:h,shadow:g,padding:_,__vars:v,unstyled:y,removeScrollProps:b,...x}){let{_id:S,titleMounted:C,bodyMounted:w,shouldLockScroll:T,setTitleMounted:E,setBodyMounted:D}=Au({id:r,transitionProps:i,opened:t,trapFocus:s,closeOnEscape:c,onClose:n,returnFocus:l}),{key:O,...k}=b||{};return(0,U.jsx)(Ml,{...f,withinPortal:d,children:(0,U.jsx)(Du,{value:{opened:t,onClose:n,closeOnClickOutside:u,onExitTransitionEnd:a,onEnterTransitionEnd:o,transitionProps:{...i,keepMounted:e},getTitleId:()=>`${S}-title`,getBodyId:()=>`${S}-body`,titleMounted:C,bodyMounted:w,setTitleMounted:E,setBodyMounted:D,trapFocus:s,closeOnEscape:c,zIndex:h,unstyled:y},children:(0,U.jsx)(zd,{enabled:T&&p,...k,children:(0,U.jsx)(q,{...x,id:S,__vars:{...v,"--mb-z-index":(h||nt(`modal`)).toString(),"--mb-shadow":ut(g),"--mb-padding":ot(_)},children:m})},O)})})}Bd.displayName=`@mantine/core/ModalBase`;function Vd(){let e=Ou();return(0,H.useEffect)(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var Hd={title:`m_615af6c9`,header:`m_b5489c3c`,inner:`m_60c222c7`,content:`m_fd1ab0aa`,close:`m_606cb269`,body:`m_5df29311`};function Ud({className:e,...t}){let n=Vd(),r=Ou();return(0,U.jsx)(q,{id:n,className:Tn({[Hd.body]:!r.unstyled},e),...t})}Ud.displayName=`@mantine/core/ModalBaseBody`;function Wd({className:e,onClick:t,...n}){let r=Ou();return(0,U.jsx)(xu,{...n,onClick:e=>{r.onClose(),t?.(e)},className:Tn({[Hd.close]:!r.unstyled},e),unstyled:r.unstyled})}Wd.displayName=`@mantine/core/ModalBaseCloseButton`;function Gd({transitionProps:e,className:t,innerProps:n,onKeyDown:r,style:i,ref:a,...o}){let s=Ou();return(0,U.jsx)(Rl,{mounted:s.opened,transition:`pop`,...s.transitionProps,onExited:()=>{s.onExitTransitionEnd?.(),s.transitionProps?.onExited?.()},onEntered:()=>{s.onEnterTransitionEnd?.(),s.transitionProps?.onEntered?.()},...e,children:e=>(0,U.jsx)(`div`,{...n,className:Tn({[Hd.inner]:!s.unstyled},n.className),children:(0,U.jsx)(Ul,{active:s.opened&&s.trapFocus,innerRef:a,children:(0,U.jsx)(gl,{...o,component:`section`,role:`dialog`,tabIndex:-1,"aria-modal":!0,"aria-describedby":s.bodyMounted?s.getBodyId():void 0,"aria-labelledby":s.titleMounted?s.getTitleId():void 0,style:[i,e],className:Tn({[Hd.content]:!s.unstyled},t),unstyled:s.unstyled,children:o.children})})})})}Gd.displayName=`@mantine/core/ModalBaseContent`;function Kd({className:e,...t}){let n=Ou();return(0,U.jsx)(q,{component:`header`,className:Tn({[Hd.header]:!n.unstyled},e),...t})}Kd.displayName=`@mantine/core/ModalBaseHeader`;var qd={duration:200,timingFunction:`ease`,transition:`fade`};function Jd(e){let t=Ou();return{...qd,...t.transitionProps,...e}}function Yd({onClick:e,transitionProps:t,style:n,visible:r,...i}){let a=Ou(),o=Jd(t);return(0,U.jsx)(Rl,{mounted:r===void 0?a.opened:r,...o,transition:`fade`,children:t=>(0,U.jsx)(Dl,{fixed:!0,style:[n,t],zIndex:a.zIndex,unstyled:a.unstyled,onClick:t=>{e?.(t),a.closeOnClickOutside&&a.onClose()},...i})})}Yd.displayName=`@mantine/core/ModalBaseOverlay`;function Xd(){let e=Ou();return(0,H.useEffect)(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}function Zd({className:e,...t}){let n=Xd(),r=Ou();return(0,U.jsx)(q,{component:`h2`,className:Tn({[Hd.title]:!r.unstyled},e),id:n,...t})}Zd.displayName=`@mantine/core/ModalBaseTitle`;function Qd({children:e}){return(0,U.jsx)(U.Fragment,{children:e})}var $d=(0,H.createContext)({size:`sm`}),ef=K(e=>{let t=W(`InputClearButton`,null,e),{size:n,variant:r,vars:i,classNames:a,styles:o,...s}=t,c=(0,H.use)($d),{resolvedClassNames:l,resolvedStyles:u}=Ur({classNames:a,styles:o,props:t});return(0,U.jsx)(xu,{variant:r||`transparent`,size:n||c?.size||`sm`,classNames:l,styles:u,__staticSelector:`InputClearButton`,style:{pointerEvents:`all`,background:`var(--input-bg)`,...s.style},...s})});ef.displayName=`@mantine/core/InputClearButton`;var tf={xs:7,sm:8,md:10,lg:12,xl:15};function nf({__clearable:e,__clearSection:t,rightSection:n,__defaultRightSection:r,size:i=`sm`,__clearSectionMode:a=`both`}){let o=e&&t;return a===`rightSection`?n===null?null:n||r:a===`clear`?n===null?null:o||r:o&&(n||r)?(0,U.jsxs)(`div`,{"data-combined-clear-section":!0,style:{display:`flex`,gap:2,alignItems:`center`,paddingInlineEnd:tf[i]},children:[o,n||r]}):n===null?null:n||o||r}var rf=(0,H.createContext)({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),af={wrapper:`m_6c018570`,input:`m_8fb7ebe7`,section:`m_82577fc2`,placeholder:`m_88bacfd0`,root:`m_46b77525`,label:`m_8fdc1311`,required:`m_78a94662`,error:`m_8f816625`,description:`m_fe47ce59`},of=Cn((e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${ct(t)} - ${V(2)})`}})),sf=K(e=>{let t=W(`InputDescription`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,__inheritStyles:l=!0,attributes:u,...d}=W(`InputDescription`,null,t),f=(0,H.use)(rf),p=G({name:[`InputWrapper`,c],props:t,classes:af,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,rootSelector:`description`,vars:s,varsResolver:of});return(0,U.jsx)(q,{component:`p`,...(l&&f?.getStyles||p)(`description`,f?.getStyles?{className:r,style:i}:void 0),...d})});sf.classes=af,sf.varsResolver=of,sf.displayName=`@mantine/core/InputDescription`;var cf=Cn((e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${ct(t)} - ${V(2)})`}})),lf=K(e=>{let t=W(`InputError`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,__staticSelector:l,__inheritStyles:u=!0,...d}=t,f=G({name:[`InputWrapper`,l],props:t,classes:af,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`error`,vars:s,varsResolver:cf}),p=(0,H.use)(rf);return(0,U.jsx)(q,{component:`p`,...(u&&p?.getStyles||f)(`error`,p?.getStyles?{className:r,style:i}:void 0),...d})});lf.classes=af,lf.varsResolver=cf,lf.displayName=`@mantine/core/InputError`;var uf={labelElement:`label`},df=Cn((e,{size:t})=>({label:{"--input-label-size":ct(t),"--input-asterisk-color":void 0}})),ff=K(e=>{let t=W(`InputLabel`,uf,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,labelElement:c,required:l,htmlFor:u,onMouseDown:d,children:f,__staticSelector:p,mod:m,attributes:h,...g}=t,_=G({name:[`InputWrapper`,p],props:t,classes:af,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,rootSelector:`label`,vars:s,varsResolver:df}),v=(0,H.use)(rf),y=v?.getStyles||_;return(0,U.jsxs)(q,{...y(`label`,v?.getStyles?{className:r,style:i}:void 0),component:c,htmlFor:c===`label`?u:void 0,mod:[{required:l},m],onMouseDown:e=>{d?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},...g,children:[f,l&&(0,U.jsx)(`span`,{...y(`required`),"aria-hidden":!0,children:` *`})]})});ff.classes=af,ff.varsResolver=df,ff.displayName=`@mantine/core/InputLabel`;var pf=K(e=>{let t=W(`InputPlaceholder`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,error:l,mod:u,attributes:d,...f}=t;return(0,U.jsx)(q,{...G({name:[`InputPlaceholder`,c],props:t,classes:af,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,rootSelector:`placeholder`})(`placeholder`),mod:[{error:!!l},u],component:`span`,...f})});pf.classes=af,pf.displayName=`@mantine/core/InputPlaceholder`;function mf(e,{hasDescription:t,hasError:n}){let r=e.findIndex(e=>e===`input`),i=e.slice(0,r),a=e.slice(r+1),o=t&&i.includes(`description`)||n&&i.includes(`error`);return{offsetBottom:t&&a.includes(`description`)||n&&a.includes(`error`),offsetTop:o}}var hf={labelElement:`label`,inputContainer:e=>e,inputWrapperOrder:[`label`,`description`,`input`,`error`]},gf=Cn((e,{size:t})=>({label:{"--input-label-size":ct(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${ct(t)} - ${V(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${ct(t)} - ${V(2)})`}})),_f=K(e=>{let t=W(`InputWrapper`,hf,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,variant:l,__staticSelector:u,inputContainer:d,inputWrapperOrder:f,label:p,error:m,description:h,labelProps:g,descriptionProps:_,errorProps:v,labelElement:y,children:b,withAsterisk:x,id:S,required:C,__stylesApiProps:w,mod:T,attributes:E,...D}=t,O=G({name:[`InputWrapper`,u],props:w||t,classes:af,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:E,vars:s,varsResolver:gf}),k={size:c,variant:l,__staticSelector:u},A=Rt(S),j=typeof x==`boolean`?x:C,M=v?.id||`${A}-error`,N=_?.id||`${A}-description`,P=A,ee=!!m&&typeof m!=`boolean`,F=!!h,I=`${ee?M:``} ${F?N:``}`,te=I.trim().length>0?I.trim():void 0,ne=g?.id||`${A}-label`,re=p&&(0,U.jsx)(ff,{labelElement:y,id:ne,htmlFor:P,required:j,...k,...g,children:p},`label`),ie=F&&(0,U.jsx)(sf,{..._,...k,size:_?.size||k.size,id:_?.id||N,children:h},`description`),L=(0,U.jsx)(H.Fragment,{children:d(b)},`input`),ae=ee&&(0,H.createElement)(lf,{...v,...k,size:v?.size||k.size,key:`error`,id:v?.id||M},m),oe=f.map(e=>{switch(e){case`label`:return re;case`input`:return L;case`description`:return ie;case`error`:return ae;default:return null}});return(0,U.jsx)(rf,{value:{getStyles:O,describedBy:te,inputId:P,labelId:ne,...mf(f,{hasDescription:F,hasError:ee})},children:(0,U.jsx)(q,{variant:l,size:c,mod:[{error:!!m},T],id:y===`label`?void 0:S,...O(`root`),...D,children:oe})})});_f.classes=af,_f.varsResolver=gf,_f.displayName=`@mantine/core/InputWrapper`;var vf={variant:`default`,leftSectionPointerEvents:`none`,rightSectionPointerEvents:`none`,withAria:!0,withErrorStyles:!0,size:`sm`,loading:!1,loadingPosition:`right`},yf=Cn((e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-margin-bottom":n.offsetBottom?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-height":at(t.size,`input-height`),"--input-fz":ct(t.size),"--input-radius":t.radius===void 0?void 0:st(t.radius),"--input-left-section-width":t.leftSectionWidth===void 0?void 0:V(t.leftSectionWidth),"--input-right-section-width":t.rightSectionWidth===void 0?void 0:V(t.rightSectionWidth),"--input-padding-y":t.multiline?at(t.size,`input-padding-y`):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}})),bf=Ri(e=>{let t=W(`Input`,vf,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,required:s,__staticSelector:c,__stylesApiProps:l,size:u,wrapperProps:d,error:f,disabled:p,leftSection:m,leftSectionProps:h,leftSectionWidth:g,rightSection:_,rightSectionProps:v,rightSectionWidth:y,rightSectionPointerEvents:b,leftSectionPointerEvents:x,variant:S,vars:C,pointer:w,multiline:T,radius:E,id:D,withAria:O,withErrorStyles:k,mod:A,inputSize:j,attributes:M,__clearSection:N,__clearable:P,__clearSectionMode:ee,__defaultRightSection:F,loading:I,loadingPosition:te,rootRef:ne,...re}=t,{styleProps:ie,rest:L}=li(re),ae=(0,H.use)(rf),oe={offsetBottom:ae?.offsetBottom,offsetTop:ae?.offsetTop},se=G({name:[`Input`,c],props:l||t,classes:af,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:M,stylesCtx:oe,rootSelector:`wrapper`,vars:C,varsResolver:yf}),ce=O?{required:s,disabled:p,"aria-invalid":f?!0:void 0,"aria-describedby":ae?.describedBy,id:ae?.inputId||D}:{},le=I?(0,U.jsx)(cu,{size:te===`left`?`calc(var(--input-left-section-size) / 2)`:`calc(var(--input-right-section-size) / 2)`}):null,ue=I&&te===`left`?le:m,de=nf({__clearable:P,__clearSection:N,rightSection:I&&te===`right`?le:_,__defaultRightSection:F,size:u,__clearSectionMode:ee});return(0,U.jsx)($d,{value:{size:u||`sm`},children:(0,U.jsxs)(q,{ref:ne,...se(`wrapper`),...ie,...d,mod:[{error:!!f&&k,pointer:w,disabled:p,multiline:T,"data-with-right-section":!!de,"data-with-left-section":!!ue},A],variant:S,size:u,children:[ue&&(0,U.jsx)(`div`,{...h,"data-position":`left`,...se(`section`,{className:h?.className,style:h?.style}),children:ue}),(0,U.jsx)(q,{component:`input`,...L,...ce,required:s,mod:{disabled:p,error:!!f&&k},variant:S,__size:j,...se(`input`)}),de&&(0,U.jsx)(`div`,{...v,"data-position":`right`,...se(`section`,{className:v?.className,style:v?.style}),children:de})]})})});bf.classes=af,bf.varsResolver=yf,bf.Wrapper=_f,bf.Label=ff,bf.Error=lf,bf.Description=sf,bf.Placeholder=pf,bf.ClearButton=ef,bf.displayName=`@mantine/core/Input`;function xf(e,t,n){let r=W(e,t,n),{label:i,description:a,error:o,required:s,classNames:c,styles:l,className:u,unstyled:d,__staticSelector:f,__stylesApiProps:p,errorProps:m,labelProps:h,descriptionProps:g,wrapperProps:_,id:v,size:y,style:b,inputContainer:x,inputWrapperOrder:S,withAsterisk:C,variant:w,vars:T,mod:E,attributes:D,...O}=r,{styleProps:k,rest:A}=li(O),j={label:i,description:a,error:o,required:s,classNames:c,className:u,__staticSelector:f,__stylesApiProps:p||r,errorProps:m,labelProps:h,descriptionProps:g,unstyled:d,styles:l,size:y,style:b,inputContainer:x,inputWrapperOrder:S,withAsterisk:C,variant:w,id:v,mod:E,attributes:D,..._};return{...A,classNames:c,styles:l,unstyled:d,wrapperProps:{...j,...k},inputProps:{required:s,classNames:c,styles:l,unstyled:d,size:y,__staticSelector:f,__stylesApiProps:p||r,error:o,variant:w,id:v,attributes:D}}}var Sf={__staticSelector:`InputBase`,withAria:!0,size:`sm`},Cf=Ri(e=>{let{inputProps:t,wrapperProps:n,...r}=xf(`InputBase`,Sf,e);return(0,U.jsx)(bf.Wrapper,{...n,children:(0,U.jsx)(bf,{...t,...r})})});Cf.classes={...bf.classes,...bf.Wrapper.classes},Cf.displayName=`@mantine/core/InputBase`;var wf={gap:{type:`spacing`,property:`gap`},rowGap:{type:`spacing`,property:`rowGap`},columnGap:{type:`spacing`,property:`columnGap`},align:{type:`identity`,property:`alignItems`},justify:{type:`identity`,property:`justifyContent`},wrap:{type:`identity`,property:`flexWrap`},direction:{type:`identity`,property:`flexDirection`}},Tf={root:`m_8bffd616`},Ef=Ri(e=>{let t=W(`Flex`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,gap:c,rowGap:l,columnGap:u,align:d,justify:f,wrap:p,direction:m,attributes:h,...g}=t,_=G({name:`Flex`,classes:Tf,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s}),v=wr(),y=Mi(),b=ji({styleProps:{gap:c,rowGap:l,columnGap:u,align:d,justify:f,wrap:p,direction:m},theme:v,data:wf}),x=cr(),S=x&&b.hasResponsiveStyles?ci(b.styles,b.media):y;return(0,U.jsxs)(U.Fragment,{children:[b.hasResponsiveStyles&&(0,U.jsx)(oi,{selector:`.${S}`,styles:b.styles,media:b.media,deduplicate:x}),(0,U.jsx)(q,{..._(`root`,{className:S,style:Ge(b.inlineStyles)}),...g})]})});Ef.classes=Tf,Ef.displayName=`@mantine/core/Flex`;function Df(e,t){if(!t||!e)return!1;let n=t.parentNode;for(;n!=null;){if(n===e)return!0;n=n.parentNode}return!1}function Of({target:e,parent:t,ref:n,displayAfterTransitionEnd:r,onTransitionStart:i,onTransitionEnd:a}){let o=(0,H.useRef)(-1),s=(0,H.useRef)(e),[c,l]=(0,H.useState)(!1),[u,d]=(0,H.useState)(typeof r==`boolean`?r:!1),f=()=>{if(!e||!t||!n.current)return;let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=window.getComputedStyle(e),o=window.getComputedStyle(t),s=ca(a.borderTopWidth)+ca(o.borderTopWidth),c=ca(a.borderLeftWidth)+ca(o.borderLeftWidth),l={top:r.top-i.top-s,left:r.left-i.left-c,width:r.width,height:r.height};n.current.style.transform=`translateY(${l.top}px) translateX(${l.left}px)`,n.current.style.width=`${l.width}px`,n.current.style.height=`${l.height}px`},p=()=>{window.clearTimeout(o.current),n.current&&(n.current.style.transitionDuration=`0ms`),f(),o.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration=``)},30)},m=(0,H.useRef)(null),h=(0,H.useRef)(null);return(0,H.useEffect)(()=>{if(c&&s.current!==e&&i&&i(),s.current=e,f(),e)return m.current=new ResizeObserver(p),m.current.observe(e),t&&(h.current=new ResizeObserver(p),h.current.observe(t)),()=>{m.current?.disconnect(),h.current?.disconnect()}},[t,e]),(0,H.useEffect)(()=>{if(t){let e=e=>{Df(e.target,t)&&(p(),d(!1))};return t.addEventListener(`transitionend`,e),()=>{t.removeEventListener(`transitionend`,e)}}},[t]),(0,H.useEffect)(()=>{if(n.current&&a){let e=e=>{e.propertyName===`transform`&&a()};return n.current.addEventListener(`transitionend`,e),()=>{n.current?.removeEventListener(`transitionend`,e)}}},[a]),an(()=>{gn()!==`test`&&l(!0)},20,{autoInvoke:!0}),sn(e=>{e.forEach(e=>{e.type===`attributes`&&e.attributeName===`dir`&&p()})},{attributes:!0,attributeFilter:[`dir`]},()=>document.documentElement),{initialized:c,hidden:u}}var kf={root:`m_96b553a6`},Af=Cn((e,{transitionDuration:t},{shouldReduceMotion:n})=>({root:{"--transition-duration":e.respectReducedMotion&&n?`0ms`:typeof t==`number`?`${t}ms`:t||`150ms`}})),jf=K(e=>{let t=W(`FloatingIndicator`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,target:c,parent:l,transitionDuration:u,mod:d,displayAfterTransitionEnd:f,onTransitionStart:p,onTransitionEnd:m,attributes:h,ref:g,..._}=t,v=G({name:`FloatingIndicator`,classes:kf,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:Af,stylesCtx:{shouldReduceMotion:$t()}}),y=(0,H.useRef)(null),{initialized:b,hidden:x}=Of({target:c,parent:l,ref:y,displayAfterTransitionEnd:f,onTransitionStart:p,onTransitionEnd:m}),S=Jt(g,y);return!c||!l?null:(0,U.jsx)(q,{ref:S,mod:[{initialized:b,hidden:x},d],...v(`root`),..._})});jf.displayName=`@mantine/core/FloatingIndicator`,jf.classes=kf,jf.varsResolver=Af;var[Mf,Nf]=Je(`Accordion component was not found in the tree`);function Pf({style:e,size:t=16,...n}){return(0,U.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...e,width:V(t),height:V(t),display:`block`},...n,children:(0,U.jsx)(`path`,{d:`M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}Pf.displayName=`@mantine/core/AccordionChevron`;var[Ff,If]=Je(`Accordion.Item component was not found in the tree`),Lf={root:`m_9bdbb667`,panel:`m_df78851f`,content:`m_4ba554d4`,itemTitle:`m_8fa820a0`,control:`m_4ba585b8`,"control--default":`m_6939a5e9`,"control--contained":`m_4271d21b`,label:`m_df3ffa0f`,chevron:`m_3f35ae96`,icon:`m_9bd771fe`,item:`m_9bd7b098`,"item--default":`m_fe19b709`,"item--contained":`m_1f921b3b`,"item--filled":`m_2cdf939a`,"item--separated":`m_9f59b069`},Rf=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,chevron:o,icon:s,onClick:c,onKeyDown:l,children:u,disabled:d,mod:f,...p}=W(`AccordionControl`,null,e),{value:m}=If(),h=Nf(),g=h.isItemActive(m),_=typeof h.order==`number`,v=`h${h.order}`,y=(0,U.jsxs)(dl,{...h.getStyles(`control`,{className:n,classNames:t,style:r,styles:i,variant:h.variant}),unstyled:h.unstyled,mod:[`accordion-control`,{active:g,"chevron-position":h.chevronPosition,disabled:d},f],onClick:e=>{c?.(e),h.onChange(m)},type:`button`,disabled:d,"aria-expanded":g,"aria-controls":h.getRegionId(m),id:h.getControlId(m),onKeyDown:et({siblingSelector:`[data-accordion-control]`,parentSelector:`[data-accordion]`,activateOnFocus:!1,loop:h.loop,orientation:`vertical`,onKeyDown:l}),...p,children:[(0,U.jsx)(q,{component:`span`,mod:{rotate:!h.disableChevronRotation&&g,position:h.chevronPosition},...h.getStyles(`chevron`,{classNames:t,styles:i}),children:o||h.chevron}),(0,U.jsx)(`span`,{...h.getStyles(`label`,{classNames:t,styles:i}),children:u}),s&&(0,U.jsx)(q,{component:`span`,mod:{"chevron-position":h.chevronPosition},...h.getStyles(`icon`,{classNames:t,styles:i}),children:s})]});return _?(0,U.jsx)(v,{...h.getStyles(`itemTitle`,{classNames:t,styles:i}),children:y}):y});Rf.displayName=`@mantine/core/AccordionControl`,Rf.classes=Lf;var zf=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,value:o,mod:s,...c}=W(`AccordionItem`,null,e),l=Nf();return(0,U.jsx)(Ff,{value:{value:o},children:(0,U.jsx)(q,{mod:[{active:l.isItemActive(o)},s],...l.getStyles(`item`,{className:n,classNames:t,styles:i,style:r,variant:l.variant}),...c})})});zf.displayName=`@mantine/core/AccordionItem`,zf.classes=Lf;var Y=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,keepMounted:s,...c}=W(`AccordionPanel`,null,e),{value:l}=If(),u=Nf();return(0,U.jsx)(Ji,{...u.getStyles(`panel`,{className:n,classNames:t,style:r,styles:i}),expanded:u.isItemActive(l),transitionDuration:u.transitionDuration??200,role:`region`,id:u.getRegionId(l),"aria-labelledby":u.getControlId(l),keepMounted:s??u.keepMounted,...c,children:(0,U.jsx)(`div`,{...u.getStyles(`content`,{classNames:t,styles:i}),children:o})})});Y.displayName=`@mantine/core/AccordionPanel`,Y.classes=Lf;var Bf={multiple:!1,disableChevronRotation:!1,chevronPosition:`right`,variant:`default`,chevronSize:`auto`,chevronIconSize:16},Vf=Cn((e,{transitionDuration:t,chevronSize:n,radius:r})=>({root:{"--accordion-transition-duration":t===void 0?void 0:`${t}ms`,"--accordion-chevron-size":n===void 0?void 0:V(n),"--accordion-radius":r===void 0?void 0:st(r)}})),Hf=Li(e=>{let t=W(`Accordion`,Bf,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,multiple:l,value:u,defaultValue:d,onChange:f,id:p,loop:m,transitionDuration:h,disableChevronRotation:g,chevronPosition:_,chevronSize:v,order:y,chevron:b,variant:x,radius:S,chevronIconSize:C,attributes:w,keepMounted:T,...E}=t,D=Rt(p),[O,k]=Yt({value:u,defaultValue:d,finalValue:l?[]:null,onChange:f}),A=e=>Array.isArray(O)?O.includes(e):e===O,j=e=>{k(Array.isArray(O)?O.includes(e)?O.filter(t=>t!==e):[...O,e]:e===O?null:e)},M=G({name:`Accordion`,classes:Lf,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:w,vars:s,varsResolver:Vf});return(0,U.jsx)(Mf,{value:{isItemActive:A,onChange:j,getControlId:Ye(`${D}-control`,`Accordion.Item component was rendered with invalid value or without value`),getRegionId:Ye(`${D}-panel`,`Accordion.Item component was rendered with invalid value or without value`),chevron:b===null?null:b||(0,U.jsx)(Pf,{size:C}),transitionDuration:h,disableChevronRotation:g,chevronPosition:_,order:y,loop:m,getStyles:M,variant:x,unstyled:o,keepMounted:T},children:(0,U.jsx)(q,{...M(`root`),id:D,...E,variant:x,"data-accordion":!0,children:c})})});Hf.classes=Lf,Hf.varsResolver=Vf,Hf.displayName=`@mantine/core/Accordion`,Hf.Item=zf,Hf.Panel=Y,Hf.Control=Rf,Hf.Chevron=Pf;var Uf={root:`m_66836ed3`,wrapper:`m_a5d60502`,body:`m_667c2793`,title:`m_6a03f287`,label:`m_698f4f23`,icon:`m_667f2a6a`,message:`m_7fa78076`,closeButton:`m_87f54839`},Wf=Cn((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||`light`,autoContrast:i});return{root:{"--alert-radius":t===void 0?void 0:st(t),"--alert-bg":n||r?a.background:void 0,"--alert-color":a.color,"--alert-bd":n||r?a.border:void 0}}}),Gf=K(e=>{let t=W(`Alert`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,title:u,children:d,id:f,icon:p,withCloseButton:m,onClose:h,closeButtonLabel:g,variant:_,autoContrast:v,role:y,attributes:b,...x}=t,S=G({name:`Alert`,classes:Uf,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:b,vars:s,varsResolver:Wf}),C=Rt(f),w=u&&`${C}-title`||void 0,T=`${C}-body`;return(0,U.jsx)(q,{id:C,...S(`root`,{variant:_}),variant:_,...x,role:y||`alert`,"aria-describedby":d?T:void 0,"aria-labelledby":u?w:void 0,children:(0,U.jsxs)(`div`,{...S(`wrapper`),children:[p&&(0,U.jsx)(`div`,{...S(`icon`),children:p}),(0,U.jsxs)(`div`,{...S(`body`),children:[u&&(0,U.jsx)(`div`,{...S(`title`),"data-with-close-button":m||void 0,children:(0,U.jsx)(`span`,{id:w,...S(`label`),children:u})}),d&&(0,U.jsx)(`div`,{id:T,...S(`message`),"data-variant":_,children:d})]}),m&&(0,U.jsx)(xu,{...S(`closeButton`),onClick:h,variant:`transparent`,size:16,iconSize:16,"aria-label":g,unstyled:o})]})})});Gf.classes=Uf,Gf.varsResolver=Wf,Gf.displayName=`@mantine/core/Alert`;var Kf={root:`m_b6d8b162`};function qf(e){if(e===`start`)return`start`;if(e===`end`||e)return`end`}var Jf={inherit:!1},Yf=Cn((e,{variant:t,lineClamp:n,gradient:r,size:i})=>({root:{"--text-fz":ct(i),"--text-lh":lt(i),"--text-gradient":t===`gradient`?Gn(r,e):void 0,"--text-line-clamp":typeof n==`number`?n.toString():void 0}})),Xf=Ri(e=>{let t=W(`Text`,Jf,e),{lineClamp:n,truncate:r,inline:i,inherit:a,gradient:o,span:s,__staticSelector:c,vars:l,className:u,style:d,classNames:f,styles:p,unstyled:m,variant:h,mod:g,size:_,attributes:v,...y}=t;return(0,U.jsx)(q,{...G({name:[`Text`,c],props:t,classes:Kf,className:u,style:d,classNames:f,styles:p,unstyled:m,attributes:v,vars:l,varsResolver:Yf})(`root`,{focusable:!0}),component:s?`span`:`p`,variant:h,mod:[{"data-truncate":qf(r),"data-line-clamp":typeof n==`number`,"data-inline":i,"data-inherit":a},g],size:_,...y})});Xf.classes=Kf,Xf.varsResolver=Yf,Xf.displayName=`@mantine/core/Text`;var Zf={root:`m_849cf0da`},Qf={underline:`hover`},$f=Ri(e=>{let{underline:t,className:n,unstyled:r,mod:i,...a}=W(`Anchor`,Qf,e);return(0,U.jsx)(Xf,{component:`a`,className:Tn({[Zf.root]:!r},n),...a,mod:[{underline:t},i],__staticSelector:`Anchor`,unstyled:r})});$f.classes=Zf,$f.displayName=`@mantine/core/Anchor`;function ep(e){return typeof e==`string`?{value:e,label:e}:typeof e==`object`&&`value`in e&&!(`label`in e)?{value:e.value,label:`${e.value}`,disabled:e.disabled}:typeof e==`object`&&`group`in e?{group:e.group,items:e.items.map(e=>ep(e))}:typeof e==`number`||typeof e==`bigint`||typeof e==`boolean`?{value:e,label:`${e}`}:e}function tp(e){return e?e.map(e=>ep(e)):[]}function np(e){return e.reduce((e,t)=>`group`in t?{...e,...np(t.items)}:(e[`${t.value}`]=t,e),{})}var rp={dropdown:`m_88b62a41`,search:`m_985517d8`,options:`m_b2821a6e`,option:`m_92253aa5`,empty:`m_2530cd1d`,header:`m_858f94bd`,footer:`m_82b967cb`,group:`m_254f3e4f`,groupLabel:`m_2bb2e9e5`,chevron:`m_2943220b`,optionsDropdownOption:`m_390b5f4`,optionsDropdownCheckIcon:`m_8ee53fc2`,optionsDropdownCheckPlaceholder:`m_a530ee0a`},ip={error:null},ap=Cn((e,{size:t,color:n})=>({chevron:{"--combobox-chevron-size":at(t,`combobox-chevron-size`),"--combobox-chevron-color":n?Un(n,e):void 0}})),op=K(e=>{let t=W(`ComboboxChevron`,ip,e),{size:n,error:r,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:l,attributes:u,mod:d,...f}=t,p=G({name:`ComboboxChevron`,classes:rp,props:t,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:l,varsResolver:ap,attributes:u,rootSelector:`chevron`});return(0,U.jsx)(q,{component:`svg`,...f,...p(`chevron`),size:n,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,mod:[`combobox-chevron`,{error:r},d],children:(0,U.jsx)(`path`,{d:`M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})});op.classes=rp,op.varsResolver=ap,op.displayName=`@mantine/core/ComboboxChevron`;var[sp,cp]=Je(`Combobox component was not found in tree`);function lp({onMouseDown:e,onClick:t,onClear:n,...r}){return(0,U.jsx)(bf.ClearButton,{tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:t=>{t.preventDefault(),e?.(t)},onClick:e=>{n(),t?.(e)}})}lp.displayName=`@mantine/core/ComboboxClearButton`;var up=K(e=>{let{classNames:t,styles:n,className:r,style:i,hidden:a,...o}=W(`ComboboxDropdown`,null,e),s=cp();return(0,U.jsx)(eu.Dropdown,{...o,role:`presentation`,"data-hidden":a||void 0,...s.getStyles(`dropdown`,{className:r,style:i,classNames:t,styles:n})})});up.classes=rp,up.displayName=`@mantine/core/ComboboxDropdown`;var dp={refProp:`ref`},fp=K(e=>{let{children:t,refProp:n,ref:r}=W(`ComboboxDropdownTarget`,dp,e);if(cp(),!qe(t))throw Error(`Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);return(0,U.jsx)(eu.Target,{ref:r,refProp:n,children:t})});fp.displayName=`@mantine/core/ComboboxDropdownTarget`;var pp=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ComboboxEmpty`,null,e);return(0,U.jsx)(q,{...cp().getStyles(`empty`,{className:n,classNames:t,styles:i,style:r}),...o})});pp.classes=rp,pp.displayName=`@mantine/core/ComboboxEmpty`;function mp({onKeyDown:e,onClick:t,withKeyboardNavigation:n,withAriaAttributes:r,withExpandedAttribute:i,targetType:a,autoComplete:o}){let s=cp(),[c,l]=(0,H.useState)(null),u=t=>{if(e?.(t),!s.readOnly&&n){if(t.nativeEvent.isComposing)return;if(t.nativeEvent.code===`ArrowDown`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectNextOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`ArrowUp`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectPreviousOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`Enter`||t.nativeEvent.code===`NumpadEnter`){if(t.nativeEvent.keyCode===229)return;let e=s.store.getSelectedOptionIndex();s.store.dropdownOpened&&e!==-1?(t.preventDefault(),s.store.clickSelectedOption()):a===`button`&&(t.preventDefault(),s.store.openDropdown(`keyboard`))}t.key===`Escape`&&s.store.closeDropdown(`keyboard`),t.nativeEvent.code===`Space`&&a===`button`&&(t.preventDefault(),s.store.toggleDropdown(`keyboard`))}},d=r?{...i?{role:`combobox`}:{},"aria-haspopup":`listbox`,"aria-expanded":i?!!(s.store.listId&&s.store.dropdownOpened):void 0,"aria-controls":s.store.dropdownOpened&&s.store.listId?s.store.listId:void 0,"aria-activedescendant":s.store.dropdownOpened&&c||void 0,autoComplete:o,"data-expanded":s.store.dropdownOpened||void 0,"data-mantine-stop-propagation":s.store.dropdownOpened||void 0}:{},f=e=>{a===`button`&&e.currentTarget.focus(),t?.(e)};return{...d,onKeyDown:u,onClick:f}}var hp={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},gp=K(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=W(`ComboboxEventsTarget`,hp,e),u=Sn(t);if(!u)throw Error(`Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let d=cp();return(0,H.cloneElement)(u,{...mp({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s}),...l,[n]:Jt(c,d.store.targetRef,_n(u))})});gp.displayName=`@mantine/core/ComboboxEventsTarget`;var _p=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ComboboxFooter`,null,e);return(0,U.jsx)(q,{...cp().getStyles(`footer`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});_p.classes=rp,_p.displayName=`@mantine/core/ComboboxFooter`;var vp=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,label:s,id:c,...l}=W(`ComboboxGroup`,null,e),u=cp(),d=Rt(c);return(0,U.jsxs)(q,{role:`group`,"aria-labelledby":s?d:void 0,...u.getStyles(`group`,{className:n,classNames:t,style:r,styles:i}),...l,children:[s&&(0,U.jsx)(`div`,{id:d,...u.getStyles(`groupLabel`,{classNames:t,styles:i}),children:s}),o]})});vp.classes=rp,vp.displayName=`@mantine/core/ComboboxGroup`;var yp=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ComboboxHeader`,null,e);return(0,U.jsx)(q,{...cp().getStyles(`header`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});yp.classes=rp,yp.displayName=`@mantine/core/ComboboxHeader`;function bp({value:e,valuesDivider:t=`,`,...n}){return(0,U.jsx)(`input`,{type:`hidden`,value:Array.isArray(e)?e.join(t):e?`${e}`:``,...n})}bp.displayName=`@mantine/core/ComboboxHiddenInput`;var xp=K(e=>{let t=W(`ComboboxOption`,null,e),{classNames:n,className:r,style:i,styles:a,vars:o,onClick:s,id:c,active:l,onMouseDown:u,onMouseOver:d,disabled:f,selected:p,mod:m,...h}=t,g=cp(),_=(0,H.useId)(),v=c||_;return(0,U.jsx)(q,{...g.getStyles(`option`,{className:r,classNames:n,styles:a,style:i}),...h,id:v,mod:[`combobox-option`,{"combobox-active":l,"combobox-disabled":f,"combobox-selected":p},m],role:`option`,onClick:e=>{f?e.preventDefault():(g.onOptionSubmit?.(t.value,t),s?.(e))},onMouseDown:e=>{e.preventDefault(),u?.(e)},onMouseOver:e=>{g.resetSelectionOnOptionHover&&g.store.resetSelectedOption(),d?.(e)}})});xp.classes=rp,xp.displayName=`@mantine/core/ComboboxOption`;var Sp=K(e=>{let{classNames:t,className:n,style:r,styles:i,id:a,onMouseDown:o,labelledBy:s,...c}=W(`ComboboxOptions`,null,e),l=cp(),u=Rt(a);return(0,H.useEffect)(()=>{l.store.setListId(u)},[u]),(0,U.jsx)(q,{...l.getStyles(`options`,{className:n,style:r,classNames:t,styles:i}),...c,id:u,role:`listbox`,"aria-labelledby":s,onMouseDown:e=>{e.preventDefault(),o?.(e)}})});Sp.classes=rp,Sp.displayName=`@mantine/core/ComboboxOptions`;var Cp={withAriaAttributes:!0,withKeyboardNavigation:!0},wp=K(e=>{let{classNames:t,styles:n,unstyled:r,vars:i,withAriaAttributes:a,onKeyDown:o,onClick:s,withKeyboardNavigation:c,size:l,ref:u,...d}=W(`ComboboxSearch`,Cp,e),f=cp(),p=f.getStyles(`search`),m=mp({targetType:`input`,withAriaAttributes:a,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:o,onClick:s,autoComplete:`off`});return(0,U.jsx)(bf,{ref:Jt(u,f.store.searchRef),classNames:[{input:p.className},t],styles:[{input:p.style},n],size:l||f.size,...m,...d,__staticSelector:`Combobox`})});wp.classes=rp,wp.displayName=`@mantine/core/ComboboxSearch`;var Tp={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},Ep=K(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=W(`ComboboxTarget`,Tp,e),u=Sn(t);if(!u)throw Error(`Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let d=cp(),f=(0,H.cloneElement)(u,{...mp({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s}),...l});return(0,U.jsx)(eu.Target,{refProp:n,ref:Jt(c,d.store.targetRef),children:f})});Ep.displayName=`@mantine/core/ComboboxTarget`;function Dp(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].hasAttribute(`data-combobox-disabled`))return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].hasAttribute(`data-combobox-disabled`))return e}return e}function Op(e,t,n){for(let n=e+1;n<t.length;n+=1)if(!t[n].hasAttribute(`data-combobox-disabled`))return n;if(n){for(let e=0;e<t.length;e+=1)if(!t[e].hasAttribute(`data-combobox-disabled`))return e}return e}function kp(e){for(let t=0;t<e.length;t+=1)if(!e[t].hasAttribute(`data-combobox-disabled`))return t;return-1}function Ap({defaultOpened:e,opened:t,onOpenedChange:n,onDropdownClose:r,onDropdownOpen:i,loop:a=!0,scrollBehavior:o=`instant`}={}){let[s,c]=Yt({value:t,defaultValue:e,finalValue:!1,onChange:n}),l=(0,H.useRef)(null),u=(0,H.useRef)(-1),d=(0,H.useRef)(null),f=(0,H.useRef)(null),p=(0,H.useRef)(-1),m=(0,H.useRef)(-1),h=(0,H.useRef)(-1),g=(0,H.useCallback)((e=`unknown`)=>{s||(c(!0),i?.(e))},[c,i,s]),_=(0,H.useCallback)((e=`unknown`)=>{s&&(c(!1),r?.(e))},[c,r,s]),v=(0,H.useCallback)((e=`unknown`)=>{s?_(e):g(e)},[_,g,s]),y=(0,H.useCallback)(()=>{let e=xn(f.current),t=yn(`#${l.current} [data-combobox-selected]`,e);t?.removeAttribute(`data-combobox-selected`),t?.removeAttribute(`aria-selected`)},[]),b=(0,H.useCallback)(e=>{let t=xn(f.current),n=yn(`#${l.current}`,t),r=n?bn(`[data-combobox-option]`,n):null;if(!r)return null;let i=e>=r.length?0:e<0?r.length-1:e;return u.current=i,r?.[i]&&!r[i].hasAttribute(`data-combobox-disabled`)?(y(),r[i].setAttribute(`data-combobox-selected`,`true`),r[i].setAttribute(`aria-selected`,`true`),r[i].scrollIntoView({block:`nearest`,behavior:o}),r[i].id):null},[o,y]),x=(0,H.useCallback)(()=>{let e=xn(f.current),t=yn(`#${l.current} [data-combobox-active]`,e);return b(t?bn(`#${l.current} [data-combobox-option]`,e).findIndex(e=>e===t):0)},[b]),S=(0,H.useCallback)(()=>{let e=xn(f.current),t=bn(`#${l.current} [data-combobox-option]`,e);return b(Op(u.current,t,a))},[b,a]),C=(0,H.useCallback)(()=>{let e=xn(f.current),t=bn(`#${l.current} [data-combobox-option]`,e);return b(Dp(u.current,t,a))},[b,a]),w=(0,H.useCallback)(()=>{let e=xn(f.current);return b(kp(bn(`#${l.current} [data-combobox-option]`,e)))},[b]),T=(0,H.useCallback)((e=`selected`,t)=>{if(typeof e==`number`){u.current=e;let n=xn(f.current),r=bn(`#${l.current} [data-combobox-option]`,n);t?.scrollIntoView&&r[e]?.scrollIntoView({block:`nearest`,behavior:o});return}h.current=window.setTimeout(()=>{let n=xn(f.current),r=bn(`#${l.current} [data-combobox-option]`,n),i=r.findIndex(t=>t.hasAttribute(`data-combobox-${e}`));u.current=i,t?.scrollIntoView&&r[i]?.scrollIntoView({block:`nearest`,behavior:o})},0)},[]),E=(0,H.useCallback)(()=>{u.current=-1,y()},[y]),D=(0,H.useCallback)(()=>{let e=xn(f.current);(bn(`#${l.current} [data-combobox-option]`,e)?.[u.current])?.click()},[]),O=(0,H.useCallback)(e=>{l.current=e},[]),k=(0,H.useCallback)(()=>{p.current=window.setTimeout(()=>d.current?.focus(),0)},[]),A=(0,H.useCallback)(()=>{m.current=window.setTimeout(()=>f.current?.focus(),0)},[]),j=(0,H.useCallback)(()=>u.current,[]);return(0,H.useEffect)(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(m.current),window.clearTimeout(h.current)},[]),{dropdownOpened:s,openDropdown:g,closeDropdown:_,toggleDropdown:v,selectedOptionIndex:u.current,getSelectedOptionIndex:j,selectOption:b,selectFirstOption:w,selectActiveOption:x,selectNextOption:S,selectPreviousOption:C,resetSelectedOption:E,updateSelectedOptionIndex:T,listId:l.current,setListId:O,clickSelectedOption:D,searchRef:d,focusSearchInput:k,targetRef:f,focusTarget:A}}var jp={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:`target`,transitionProps:{transition:`fade`,duration:0},size:`sm`},Mp=Cn((e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":ct(t),"--combobox-option-padding":at(t,`combobox-option-padding`)},dropdown:{"--combobox-padding":n===void 0?void 0:V(n),"--combobox-option-fz":ct(t),"--combobox-option-padding":at(t,`combobox-option-padding`)}})),Np=e=>{let t=W(`Combobox`,jp,e),{classNames:n,styles:r,unstyled:i,children:a,store:o,vars:s,onOptionSubmit:c,onClose:l,size:u,dropdownPadding:d,resetSelectionOnOptionHover:f,__staticSelector:p,readOnly:m,attributes:h,...g}=t,_=Ap(),v=o||_,y=G({name:p||`Combobox`,classes:rp,props:t,classNames:n,styles:r,unstyled:i,attributes:h,vars:s,varsResolver:Mp}),b=()=>{l?.(),v.closeDropdown()};return(0,U.jsx)(sp,{value:{getStyles:y,store:v,onOptionSubmit:c,size:u,resetSelectionOnOptionHover:f,readOnly:m},children:(0,U.jsx)(eu,{opened:v.dropdownOpened,preventPositionChangeWhenVisible:!1,...g,onChange:e=>!e&&b(),withRoles:!1,unstyled:i,children:a})})};Np.extend=e=>e,Np.classes=rp,Np.varsResolver=Mp,Np.displayName=`@mantine/core/Combobox`,Np.Target=Ep,Np.Dropdown=up,Np.Options=Sp,Np.Option=xp,Np.Search=wp,Np.Empty=pp,Np.Chevron=op,Np.Footer=_p,Np.Header=yp,Np.EventsTarget=gp,Np.DropdownTarget=fp,Np.Group=vp,Np.ClearButton=lp,Np.HiddenInput=bp;function Pp({children:e,role:t}){let n=(0,H.use)(rf);return n?(0,U.jsx)(`div`,{role:t,"aria-labelledby":n.labelId,"aria-describedby":n.describedBy,children:e}):(0,U.jsx)(U.Fragment,{children:e})}var Fp=(0,H.createContext)(null),Ip={hiddenInputValuesSeparator:`,`},Lp=Li((e=>{let{value:t,defaultValue:n,onChange:r,size:i,wrapperProps:a,children:o,readOnly:s,name:c,hiddenInputValuesSeparator:l,hiddenInputProps:u,maxSelectedValues:d,disabled:f,...p}=W(`CheckboxGroup`,Ip,e),[m,h]=Yt({value:t,defaultValue:n,finalValue:[],onChange:r}),g=e=>{let t=typeof e==`string`?e:e.currentTarget.value;if(s)return;let n=m.includes(t);!n&&d&&m.length>=d||h(n?m.filter(e=>e!==t):[...m,t])},_=e=>{if(f)return!0;if(!d)return!1;let t=m.includes(e),n=m.length>=d;return!t&&n},v=m.join(l);return(0,U.jsx)(Fp,{value:{value:m,onChange:g,size:i,isDisabled:_},children:(0,U.jsxs)(bf.Wrapper,{size:i,...a,...p,labelElement:`div`,__staticSelector:`CheckboxGroup`,children:[(0,U.jsx)(Pp,{role:`group`,children:o}),(0,U.jsx)(`input`,{type:`hidden`,name:c,value:v,...u})]})})}));Lp.classes=bf.Wrapper.classes,Lp.displayName=`@mantine/core/CheckboxGroup`;var Rp={card:`m_26775b0a`},zp=(0,H.createContext)(null),Bp={withBorder:!0},Vp=Cn((e,{radius:t})=>({card:{"--card-radius":st(t)}})),Hp=K(e=>{let t=W(`CheckboxCard`,Bp,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,checked:c,mod:l,withBorder:u,value:d,onClick:f,defaultChecked:p,onChange:m,attributes:h,...g}=t,_=G({name:`CheckboxCard`,classes:Rp,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:Vp,rootSelector:`card`}),v=(0,H.use)(Fp),[y,b]=Yt({value:typeof c==`boolean`?c:v?v.value.includes(d||``):void 0,defaultValue:p,finalValue:!1,onChange:m});return(0,U.jsx)(zp,{value:{checked:y},children:(0,U.jsx)(dl,{mod:[{"with-border":u,checked:y},l],..._(`card`),...g,role:`checkbox`,"aria-checked":y,onClick:e=>{f?.(e),v?.onChange(d||``),b(!y)}})})});Hp.displayName=`@mantine/core/CheckboxCard`,Hp.classes=Rp,Hp.varsResolver=Vp;function Up({size:e,style:t,...n}){return(0,U.jsx)(`svg`,{viewBox:`0 0 10 7`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:e===void 0?t:{width:V(e),height:V(e),...t},"aria-hidden":!0,...n,children:(0,U.jsx)(`path`,{d:`M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}function Wp({indeterminate:e,...t}){return e?(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 32 6`,"aria-hidden":!0,...t,children:(0,U.jsx)(`rect`,{width:`32`,height:`6`,fill:`currentColor`,rx:`3`})}):(0,U.jsx)(Up,{...t})}var Gp={indicator:`m_5e5256ee`,icon:`m_1b1c543a`,"indicator--outline":`m_76e20374`},Kp={icon:Wp,variant:`filled`,radius:`sm`},qp=Cn((e,{radius:t,color:n,size:r,iconColor:i,variant:a,autoContrast:o})=>{let s=Hn({color:n||e.primaryColor,theme:e}),c=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{indicator:{"--checkbox-size":at(r,`checkbox-size`),"--checkbox-radius":t===void 0?void 0:st(t),"--checkbox-color":a===`outline`?c:Un(n,e),"--checkbox-icon-color":i?Un(i,e):Zn(o,e)?Yn({color:n,theme:e,autoContrast:o}):void 0}}}),Jp=K(e=>{let t=W(`CheckboxIndicator`,Kp,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,icon:c,indeterminate:l,radius:u,color:d,iconColor:f,autoContrast:p,checked:m,mod:h,variant:g,disabled:_,attributes:v,...y}=t,b=G({name:`CheckboxIndicator`,classes:Gp,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:qp,rootSelector:`indicator`}),x=(0,H.use)(zp),S=typeof m==`boolean`||typeof l==`boolean`?m||l:x?.checked||!1;return(0,U.jsx)(q,{...b(`indicator`,{variant:g}),variant:g,mod:[{checked:S,disabled:_},h],...y,children:(0,U.jsx)(c,{indeterminate:l,...b(`icon`)})})});Jp.displayName=`@mantine/core/CheckboxIndicator`,Jp.classes=Gp,Jp.varsResolver=qp;var Yp={root:`m_5f75b09e`,body:`m_5f6e695e`,labelWrapper:`m_d3ea56bb`,label:`m_8ee546b8`,description:`m_328f68c0`,error:`m_8e8a99cc`},Xp=Yp;function Zp({__staticSelector:e,__stylesApiProps:t,className:n,classNames:r,styles:i,unstyled:a,children:o,label:s,description:c,id:l,disabled:u,error:d,size:f,labelPosition:p=`left`,bodyElement:m=`div`,labelElement:h=`label`,variant:g,style:_,vars:v,mod:y,attributes:b,...x}){let S=G({name:e,props:t,className:n,style:_,classes:Yp,classNames:r,styles:i,unstyled:a,attributes:b});return(0,U.jsx)(q,{...S(`root`),__vars:{"--label-fz":ct(f),"--label-lh":at(f,`label-lh`)},mod:[{"label-position":p},y],variant:g,size:f,...x,children:(0,U.jsxs)(q,{component:m,htmlFor:m===`label`?l:void 0,...S(`body`),children:[o,(0,U.jsxs)(`div`,{...S(`labelWrapper`),"data-disabled":u||void 0,children:[s&&(0,U.jsx)(q,{component:h,htmlFor:h===`label`?l:void 0,...S(`label`),"data-disabled":u||void 0,children:s}),c&&(0,U.jsx)(bf.Description,{size:f,__inheritStyles:!1,...S(`description`),children:c}),d&&typeof d!=`boolean`&&(0,U.jsx)(bf.Error,{size:f,__inheritStyles:!1,...S(`error`),children:d})]})]})})}Zp.displayName=`@mantine/core/InlineInput`;var Qp={root:`m_bf2d988c`,inner:`m_26062bec`,input:`m_26063560`,icon:`m_bf295423`,"input--outline":`m_215c4542`},$p={labelPosition:`right`,icon:Wp,withErrorStyles:!0,variant:`filled`,radius:`sm`},em=Cn((e,{radius:t,color:n,size:r,iconColor:i,variant:a,autoContrast:o})=>{let s=Hn({color:n||e.primaryColor,theme:e}),c=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{root:{"--checkbox-size":at(r,`checkbox-size`),"--checkbox-radius":t===void 0?void 0:st(t),"--checkbox-color":a===`outline`?c:Un(n,e),"--checkbox-icon-color":i?Un(i,e):Zn(o,e)?Yn({color:n,theme:e,autoContrast:o}):void 0}}}),tm=K(e=>{let t=W(`Checkbox`,$p,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,label:l,id:u,size:d,radius:f,wrapperProps:p,checked:m,labelPosition:h,description:g,error:_,disabled:v,variant:y,indeterminate:b,icon:x,rootRef:S,iconColor:C,onChange:w,autoContrast:T,mod:E,attributes:D,readOnly:O,onClick:k,withErrorStyles:A,ref:j,...M}=t,N=(0,H.useRef)(null),P=(0,H.use)(Fp),ee=d||P?.size,F=G({name:`Checkbox`,props:t,classes:Qp,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:D,vars:s,varsResolver:em}),{styleProps:I,rest:te}=li(M),ne=Rt(u),re={checked:P?.value.includes(te.value)??m,onChange:e=>{P?.onChange(e),w?.(e)}},ie=P?.isDisabled?.(te.value)??!1,L=v||ie;return(0,H.useEffect)(()=>{N.current&&(N.current.indeterminate=b||!1,b?N.current.setAttribute(`data-indeterminate`,`true`):N.current.removeAttribute(`data-indeterminate`))},[b]),(0,U.jsx)(Zp,{...F(`root`),__staticSelector:`Checkbox`,__stylesApiProps:t,id:ne,size:ee,labelPosition:h,label:l,description:g,error:_,disabled:L,classNames:n,styles:a,unstyled:o,"data-checked":re.checked||m||void 0,variant:y,ref:S,mod:E,attributes:D,inert:te.inert,...I,...p,children:(0,U.jsxs)(q,{...F(`inner`),mod:{"data-label-position":h},children:[(0,U.jsx)(q,{component:`input`,id:ne,ref:Jt(N,j),mod:{error:!!_},...F(`input`,{focusable:!0,variant:y}),...te,...re,disabled:L,inert:te.inert,type:`checkbox`,onClick:e=>{O&&e.preventDefault(),k?.(e)}}),(0,U.jsx)(x,{indeterminate:b,...F(`icon`)})]})})});tm.classes={...Qp,...Xp},tm.varsResolver=em,tm.displayName=`@mantine/core/Checkbox`,tm.Group=Lp,tm.Indicator=Jp,tm.Card=Hp;function nm(e){return`group`in e}function rm({options:e,search:t,limit:n}){let r=t.trim().toLowerCase(),i=[];for(let a=0;a<e.length;a+=1){let o=e[a];if(i.length===n)return i;nm(o)&&i.push({group:o.group,items:rm({options:o.items,search:t,limit:n-i.length})}),nm(o)||o.label.toLowerCase().includes(r)&&i.push(o)}return i}function im(e){if(e.length===0)return!0;for(let t of e)if(!(`group`in t)||t.items.length>0)return!1;return!0}function am(e,t=new Set){if(Array.isArray(e))for(let n of e)if(nm(n))am(n.items,t);else{if(n.value===void 0)throw Error(`[@mantine/core] Each option must have value property`);if(t.has(n.value))throw Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);t.add(n.value)}}function om(e,t){return Array.isArray(e)?e.includes(t):e===t}function sm({data:e,withCheckIcon:t,withAlignedLabels:n,value:r,checkIconPosition:i,unstyled:a,renderOption:o}){if(!nm(e)){let s=om(r,e.value),c=t&&(s?(0,U.jsx)(Up,{className:rp.optionsDropdownCheckIcon}):n?(0,U.jsx)(`div`,{className:rp.optionsDropdownCheckPlaceholder}):null),l=(0,U.jsxs)(U.Fragment,{children:[i===`left`&&c,(0,U.jsx)(`span`,{children:e.label}),i===`right`&&c]});return(0,U.jsx)(Np.Option,{value:e.value,disabled:e.disabled,className:Tn({[rp.optionsDropdownOption]:!a}),"data-reverse":i===`right`||void 0,"data-checked":s||void 0,"aria-selected":s,active:s,children:typeof o==`function`?o({option:e,checked:s}):l})}let s=e.items.map(e=>(0,U.jsx)(sm,{data:e,value:r,unstyled:a,withCheckIcon:t,withAlignedLabels:n,checkIconPosition:i,renderOption:o},`${e.value}`));return(0,U.jsx)(Np.Group,{label:e.group,children:s})}function cm({data:e,hidden:t,hiddenWhenEmpty:n,filter:r,search:i,limit:a,maxDropdownHeight:o,withScrollArea:s=!0,filterOptions:c=!0,withCheckIcon:l=!1,withAlignedLabels:u=!1,value:d,checkIconPosition:f,nothingFoundMessage:p,unstyled:m,labelId:h,renderOption:g,scrollAreaProps:_,"aria-label":v}){am(e);let y=typeof i==`string`?(r||rm)({options:e,search:c?i:``,limit:a??1/0}):e,b=im(y),x=y.map(e=>(0,U.jsx)(sm,{data:e,withCheckIcon:l,withAlignedLabels:u,value:d,checkIconPosition:f,unstyled:m,renderOption:g},nm(e)?e.group:`${e.value}`));return(0,U.jsx)(Np.Dropdown,{hidden:t||n&&b,"data-composed":!0,children:(0,U.jsxs)(Np.Options,{labelledBy:h,"aria-label":v,children:[s?(0,U.jsx)(sl.Autosize,{mah:o??220,type:`scroll`,scrollbarSize:`var(--combobox-padding)`,offsetScrollbars:`y`,..._,children:x}):x,b&&p&&(0,U.jsx)(Np.Empty,{children:p})]})})}var lm={group:`m_11def92b`,root:`m_f85678b6`,image:`m_11f8ac07`,placeholder:`m_104cd71f`},um=(0,H.createContext)({withinGroup:!1}),dm=Cn((e,{spacing:t})=>({group:{"--ag-spacing":ot(t)}})),fm=K(e=>{let t=W(`AvatarGroup`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,spacing:c,attributes:l,...u}=t;return(0,U.jsx)(um,{value:{withinGroup:!0},children:(0,U.jsx)(q,{...G({name:`AvatarGroup`,classes:lm,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:l,vars:s,varsResolver:dm,rootSelector:`group`})(`group`),...u})})});fm.classes=lm,fm.varsResolver=dm,fm.displayName=`@mantine/core/AvatarGroup`;function pm(e){return(0,U.jsx)(`svg`,{...e,"data-avatar-placeholder-icon":!0,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,U.jsx)(`path`,{d:`M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}function mm(e){let t=0;for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);t=(t<<5)-t+r,t|=0}return t}var hm=[`blue`,`cyan`,`grape`,`green`,`indigo`,`lime`,`orange`,`pink`,`red`,`teal`,`violet`];function gm(e,t=hm){let n=mm(e);return t[Math.abs(n)%t.length]}function _m(e,t=2){let n=e.split(` `);return n.length===1?e.slice(0,t).toUpperCase():n.map(e=>e[0]).slice(0,t).join(``).toUpperCase()}var vm=Cn((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o,name:s,allowedInitialsColors:c})=>{let l=a===`initials`&&typeof s==`string`?gm(s,c):a,u=e.variantColorResolver({color:l||`gray`,theme:e,gradient:i,variant:r||`light`,autoContrast:o});return{root:{"--avatar-size":at(t,`avatar-size`),"--avatar-radius":n===void 0?void 0:st(n),"--avatar-bg":l||r?u.background:void 0,"--avatar-color":l||r?u.color:void 0,"--avatar-bd":l||r?u.border:void 0}}}),ym=Ri(e=>{let t=W(`Avatar`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,src:c,alt:l,radius:u,color:d,gradient:f,imageProps:p,children:m,autoContrast:h,mod:g,name:_,allowedInitialsColors:v,attributes:y,...b}=t,x=(0,H.use)(um),[S,C]=(0,H.useState)(!c),w=G({name:`Avatar`,props:t,classes:lm,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:y,vars:s,varsResolver:vm});return(0,H.useEffect)(()=>C(!c),[c]),(0,U.jsx)(q,{...w(`root`),mod:[{"within-group":x.withinGroup},g],...b,children:S||!c?(0,U.jsx)(`span`,{...w(`placeholder`),title:l,children:m||typeof _==`string`&&_m(_)||(0,U.jsx)(pm,{})}):(0,U.jsx)(`img`,{...p,...w(`image`),src:c,alt:l,onError:e=>{C(!0),p?.onError?.(e)}})})});ym.classes=lm,ym.varsResolver=vm,ym.displayName=`@mantine/core/Avatar`,ym.Group=fm;var bm={root:`m_347db0ec`,"root--dot":`m_fbd81e3d`,label:`m_5add502a`,section:`m_91fdda9b`},xm=Cn((e,{radius:t,color:n,gradient:r,variant:i,size:a,autoContrast:o,circle:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:o});return{root:{"--badge-height":at(a,`badge-height`),"--badge-padding-x":at(a,`badge-padding-x`),"--badge-fz":at(a,`badge-fz`),"--badge-radius":s||t===void 0?void 0:st(t),"--badge-bg":n||i?c.background:void 0,"--badge-color":n||i?c.color:void 0,"--badge-bd":n||i?c.border:void 0,"--badge-dot-color":i===`dot`?Un(n,e):void 0}}}),Sm=Ri(e=>{let t=W(`Badge`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,gradient:u,leftSection:d,rightSection:f,children:p,variant:m,fullWidth:h,autoContrast:g,circle:_,mod:v,attributes:y,...b}=t,x=G({name:`Badge`,props:t,classes:bm,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:y,vars:s,varsResolver:xm});return(0,U.jsxs)(q,{variant:m,mod:[{block:h,circle:_,"with-right-section":!!f,"with-left-section":!!d},v],...x(`root`,{variant:m}),...b,children:[d&&(0,U.jsx)(`span`,{...x(`section`),"data-position":`left`,children:d}),(0,U.jsx)(`span`,{...x(`label`),children:p}),f&&(0,U.jsx)(`span`,{...x(`section`),"data-position":`right`,children:f})]})});Sm.classes=bm,Sm.varsResolver=xm,Sm.displayName=`@mantine/core/Badge`;var Cm={root:`m_77c9d27d`,inner:`m_80f1301b`,label:`m_811560b9`,section:`m_a74036a`,loader:`m_a25b86ee`,group:`m_80d6d844`,groupSection:`m_70be2a01`},wm={orientation:`horizontal`},Tm=Cn((e,{borderWidth:t})=>({group:{"--button-border-width":V(t)}})),Em=K(e=>{let t=W(`ButtonGroup`,wm,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,mod:u,attributes:d,...f}=W(`ButtonGroup`,wm,e);return(0,U.jsx)(q,{...G({name:`ButtonGroup`,props:t,classes:Cm,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:c,varsResolver:Tm,rootSelector:`group`})(`group`),mod:[{"data-orientation":s},u],role:`group`,...f})});Em.classes=Cm,Em.varsResolver=Tm,Em.displayName=`@mantine/core/ButtonGroup`;var Dm=Cn((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":at(o,`section-height`),"--section-padding-x":at(o,`section-padding-x`),"--section-fz":o?.includes(`compact`)?ct(o.replace(`compact-`,``)):ct(o),"--section-radius":t===void 0?void 0:st(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),Om=K(e=>{let t=W(`ButtonGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,gradient:c,radius:l,autoContrast:u,attributes:d,...f}=t;return(0,U.jsx)(q,{...G({name:`ButtonGroupSection`,props:t,classes:Cm,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:Dm,rootSelector:`groupSection`})(`groupSection`),...f})});Om.classes=Cm,Om.varsResolver=Dm,Om.displayName=`@mantine/core/ButtonGroupSection`;var km={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${V(1)}))`},out:{opacity:0,transform:`translate(-50%, -200%)`},common:{transformOrigin:`center`},transitionProperty:`transform, opacity`},Am=Cn((e,{radius:t,color:n,gradient:r,variant:i,size:a,justify:o,autoContrast:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:s});return{root:{"--button-justify":o,"--button-height":at(a,`button-height`),"--button-padding-x":at(a,`button-padding-x`),"--button-fz":a?.includes(`compact`)?ct(a.replace(`compact-`,``)):ct(a),"--button-radius":t===void 0?void 0:st(t),"--button-bg":n||i?c.background:void 0,"--button-hover":n||i?c.hover:void 0,"--button-color":c.color,"--button-bd":n||i?c.border:void 0,"--button-hover-color":n||i?c.hoverColor:void 0}}}),jm=Ri(e=>{let t=W(`Button`,null,e),{style:n,vars:r,className:i,color:a,disabled:o,children:s,leftSection:c,rightSection:l,fullWidth:u,variant:d,radius:f,loading:p,loaderProps:m,gradient:h,classNames:g,styles:_,unstyled:v,"data-disabled":y,autoContrast:b,mod:x,attributes:S,...C}=t,w=G({name:`Button`,props:t,classes:Cm,className:i,style:n,classNames:g,styles:_,unstyled:v,attributes:S,vars:r,varsResolver:Am}),T=!!c,E=!!l;return(0,U.jsxs)(dl,{...w(`root`,{active:!o&&!p&&!y}),unstyled:v,variant:d,disabled:o||p,mod:[{disabled:o||y,loading:p,block:u,"with-left-section":T,"with-right-section":E},x],...C,children:[typeof p==`boolean`&&(0,U.jsx)(Rl,{mounted:p,transition:km,duration:150,children:e=>(0,U.jsx)(q,{component:`span`,...w(`loader`,{style:e}),"aria-hidden":!0,children:(0,U.jsx)(cu,{color:`var(--button-color)`,size:`calc(var(--button-height) / 1.8)`,...m})})}),(0,U.jsxs)(`span`,{...w(`inner`),children:[c&&(0,U.jsx)(q,{component:`span`,...w(`section`),mod:{position:`left`},children:c}),(0,U.jsx)(q,{component:`span`,mod:{loading:p},...w(`label`),children:s}),l&&(0,U.jsx)(q,{component:`span`,...w(`section`),mod:{position:`right`},children:l})]})]})});jm.classes=Cm,jm.varsResolver=Am,jm.displayName=`@mantine/core/Button`,jm.Group=Em,jm.GroupSection=Om;var Mm={root:`m_4451eb3a`},Nm=Ri(e=>{let t=W(`Center`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,inline:c,mod:l,attributes:u,...d}=t,f=G({name:`Center`,props:t,classes:Mm,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s});return(0,U.jsx)(q,{mod:[{inline:c},l],...f(`root`),...d})});Nm.classes=Mm,Nm.displayName=`@mantine/core/Center`;var Pm={root:`m_b183c0a2`},Fm=Cn((e,{color:t})=>({root:{"--code-bg":t?Un(t,e):void 0}})),Im=K(e=>{let t=W(`Code`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,block:l,mod:u,attributes:d,...f}=t,p=G({name:`Code`,props:t,classes:Pm,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:Fm});return(0,U.jsx)(q,{component:l?`pre`:`code`,mod:[{block:l},u],...p(`root`),...f,dir:`ltr`})});Im.classes=Pm,Im.varsResolver=Fm,Im.displayName=`@mantine/core/Code`;var Lm={root:`m_de3d2490`,colorOverlay:`m_862f3d1b`,shadowOverlay:`m_98ae7f22`,alphaOverlay:`m_95709ac0`,childrenOverlay:`m_93e74e3`},Rm={withShadow:!0},zm=Cn((e,{radius:t,size:n})=>({root:{"--cs-radius":t===void 0?void 0:st(t),"--cs-size":V(n)}})),Bm=Ri(e=>{let t=W(`ColorSwatch`,Rm,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,radius:l,withShadow:u,children:d,attributes:f,...p}=W(`ColorSwatch`,Rm,t),m=G({name:`ColorSwatch`,props:t,classes:Lm,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:zm});return(0,U.jsxs)(q,{...m(`root`,{focusable:!0}),...p,children:[(0,U.jsx)(`span`,{...m(`alphaOverlay`)}),u&&(0,U.jsx)(`span`,{...m(`shadowOverlay`)}),(0,U.jsx)(`span`,{...m(`colorOverlay`,{style:{backgroundColor:c}})}),(0,U.jsx)(`span`,{...m(`childrenOverlay`),children:d})]})});Bm.classes=Lm,Bm.varsResolver=zm,Bm.displayName=`@mantine/core/ColorSwatch`;var Vm={root:`m_7485cace`},Hm={strategy:`block`},Um=Cn((e,{size:t,fluid:n})=>({root:{"--container-size":n?void 0:at(t,`container-size`)}})),Wm=K(e=>{let t=W(`Container`,Hm,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,fluid:c,mod:l,attributes:u,strategy:d,...f}=t,p=G({name:`Container`,classes:Vm,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:Um});return(0,U.jsx)(q,{mod:[{fluid:c,strategy:d},l],...p(`root`),...f})});Wm.classes=Vm,Wm.varsResolver=Um,Wm.displayName=`@mantine/core/Container`;var Gm={root:`m_3eebeb36`,label:`m_9e365f20`},Km={orientation:`horizontal`},qm=Cn((e,{color:t,variant:n,size:r})=>({root:{"--divider-color":t?Un(t,e):void 0,"--divider-border-style":n,"--divider-size":at(r,`divider-size`)}})),Jm=K(e=>{let t=W(`Divider`,Km,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,orientation:l,label:u,labelPosition:d,mod:f,attributes:p,...m}=t,h=G({name:`Divider`,classes:Gm,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:qm});return(0,U.jsx)(q,{mod:[{orientation:l,withLabel:!!u},f],role:`separator`,...h(`root`),...m,children:u&&(0,U.jsx)(q,{component:`span`,mod:{position:d},...h(`label`),children:u})})});Jm.classes=Gm,Jm.varsResolver=qm,Jm.displayName=`@mantine/core/Divider`;var[Ym,Xm]=Je(`Drawer component was not found in tree`),Zm={root:`m_f11b401e`,header:`m_5a7c2c9`,content:`m_b8a05bbd`,inner:`m_31cd769a`},Qm=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`DrawerBody`,null,e);return(0,U.jsx)(Ud,{...Xm().getStyles(`body`,{classNames:t,style:r,styles:i,className:n}),...o})});Qm.classes=Zm,Qm.displayName=`@mantine/core/DrawerBody`;var $m=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`DrawerCloseButton`,null,e);return(0,U.jsx)(Wd,{...Xm().getStyles(`close`,{classNames:t,style:r,styles:i,className:n}),...o})});$m.classes=Zm,$m.displayName=`@mantine/core/DrawerCloseButton`;var eh=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,radius:s,__hidden:c,...l}=W(`DrawerContent`,null,e),u=Xm(),d=u.scrollAreaComponent||Qd;return(0,U.jsx)(Gd,{...u.getStyles(`content`,{className:n,style:r,styles:i,classNames:t}),innerProps:u.getStyles(`inner`,{className:n,style:r,styles:i,classNames:t}),...l,radius:s||u.radius||0,"data-hidden":c||void 0,children:(0,U.jsx)(d,{style:{height:`calc(100vh - var(--drawer-offset) * 2)`},children:o})})});eh.classes=Zm,eh.displayName=`@mantine/core/DrawerContent`;var th=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`DrawerHeader`,null,e);return(0,U.jsx)(Kd,{...Xm().getStyles(`header`,{classNames:t,style:r,styles:i,className:n}),...o})});th.classes=Zm,th.displayName=`@mantine/core/DrawerHeader`;var nh=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`DrawerOverlay`,null,e);return(0,U.jsx)(Yd,{...Xm().getStyles(`overlay`,{classNames:t,style:r,styles:i,className:n}),...o})});nh.classes=Zm,nh.displayName=`@mantine/core/DrawerOverlay`;function rh(e){switch(e){case`top`:return`flex-start`;case`bottom`:return`flex-end`;default:return}}function ih(e){if(e===`top`||e===`bottom`)return`0 0 calc(100% - var(--drawer-offset, 0rem) * 2)`}var ah={top:`slide-down`,bottom:`slide-up`,left:`slide-right`,right:`slide-left`},oh={top:`slide-down`,bottom:`slide-up`,right:`slide-right`,left:`slide-left`},sh={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:nt(`modal`),position:`left`},ch=Cn((e,{position:t,size:n,offset:r})=>({root:{"--drawer-size":at(n,`drawer-size`),"--drawer-flex":ih(t),"--drawer-height":t===`left`||t===`right`?void 0:`var(--drawer-size)`,"--drawer-align":rh(t),"--drawer-justify":t===`right`?`flex-end`:void 0,"--drawer-offset":V(r)}})),lh=K(e=>{let t=W(`DrawerRoot`,sh,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,scrollAreaComponent:c,position:l,transitionProps:u,radius:d,attributes:f,...p}=t,{dir:m}=Ki(),h=G({name:`Drawer`,classes:Zm,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:ch}),g=(m===`rtl`?oh:ah)[l];return(0,U.jsx)(Ym,{value:{scrollAreaComponent:c,getStyles:h,radius:d},children:(0,U.jsx)(Bd,{...h(`root`),transitionProps:{transition:g,...u},"data-offset-scrollbars":c===sl.Autosize||void 0,unstyled:o,...p})})});lh.classes=Zm,lh.varsResolver=ch,lh.displayName=`@mantine/core/DrawerRoot`;var uh=(0,H.createContext)(null);function dh({children:e}){let[t,n]=(0,H.useState)([]),[r,i]=(0,H.useState)(nt(`modal`));return(0,U.jsx)(uh,{value:{stack:t,addModal:(e,t)=>{n(t=>[...new Set([...t,e])]),i(e=>typeof t==`number`&&typeof e==`number`?Math.max(e,t):e)},removeModal:e=>n(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${r} + ${t.indexOf(e)} + 1)`,currentId:t[t.length-1],maxZIndex:r},children:e})}dh.displayName=`@mantine/core/DrawerStack`;var fh=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`DrawerTitle`,null,e);return(0,U.jsx)(Zd,{...Xm().getStyles(`title`,{classNames:t,style:r,styles:i,className:n}),...o})});fh.classes=Zm,fh.displayName=`@mantine/core/DrawerTitle`;var ph={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:nt(`modal`),withOverlay:!0,withCloseButton:!0},mh=K(e=>{let{title:t,withOverlay:n,overlayProps:r,withCloseButton:i,closeButtonProps:a,children:o,opened:s,stackId:c,zIndex:l,...u}=W(`Drawer`,ph,e),d=(0,H.use)(uh),f=!!t||i,p=d&&c?{closeOnEscape:d.currentId===c,trapFocus:d.currentId===c,zIndex:d.getZIndex(c)}:{},m=n===!1?!1:c&&d?d.currentId===c:s;return(0,H.useEffect)(()=>{d&&c&&(s?d.addModal(c,l||nt(`modal`)):d.removeModal(c))},[s,c,l]),(0,U.jsxs)(lh,{opened:s,zIndex:d&&c?d.getZIndex(c):l,...u,...p,children:[n&&(0,U.jsx)(nh,{visible:m,transitionProps:d&&c?{duration:0}:void 0,...r}),(0,U.jsxs)(eh,{__hidden:d&&c&&s?c!==d.currentId:!1,children:[f&&(0,U.jsxs)(th,{children:[t&&(0,U.jsx)(fh,{children:t}),i&&(0,U.jsx)($m,{...a})]}),(0,U.jsx)(Qm,{children:o})]})]})});mh.classes=Zm,mh.displayName=`@mantine/core/Drawer`,mh.Root=lh,mh.Overlay=nh,mh.Content=eh,mh.Body=Qm,mh.Header=th,mh.Title=fh,mh.CloseButton=$m,mh.Stack=dh;var[hh,gh]=Je(`Grid component was not found in tree`),_h=(e,t)=>{if(e===`content`)return`auto`;if(e===`auto`)return`0rem`;if(e)return e===t?`100%`:`calc(${100*e/t}% - ${(t-e)/t} * var(--grid-column-gap))`},vh=(e,t,n)=>n||e===`auto`?`100%`:e===`content`?`unset`:_h(e,t),yh=(e,t)=>{if(e)return e===`auto`||t?`1`:`auto`},bh=(e,t)=>{if(e===0)return`0`;if(e)return`calc(${100*e/t}% + ${e/t} * var(--grid-column-gap))`};function xh({span:e,order:t,offset:n,align:r,selector:i}){let a=wr(),o=gh(),s=o.breakpoints||a.breakpoints,c=mt(e),l=c===void 0?12:c,u=Ge({"--col-order":mt(t)?.toString(),"--col-flex-grow":yh(l,o.grow),"--col-flex-basis":_h(l,o.columns),"--col-width":l===`content`?`auto`:void 0,"--col-max-width":vh(l,o.columns,o.grow),"--col-offset":bh(mt(n),o.columns),"--col-align-self":mt(r)}),d=Ie(s).reduce((i,a)=>(i[a]||(i[a]={}),typeof t==`object`&&t[a]!==void 0&&(i[a][`--col-order`]=t[a]?.toString()),typeof e==`object`&&e[a]!==void 0&&(i[a][`--col-flex-grow`]=yh(e[a],o.grow),i[a][`--col-flex-basis`]=_h(e[a],o.columns),i[a][`--col-width`]=e[a]===`content`?`auto`:void 0,i[a][`--col-max-width`]=vh(e[a],o.columns,o.grow)),typeof n==`object`&&n[a]!==void 0&&(i[a][`--col-offset`]=bh(n[a],o.columns)),typeof r==`object`&&r[a]!==void 0&&(i[a][`--col-align-self`]=r[a]),i),{}),f=pt(Ie(d),s).filter(e=>Ie(d[e.value]).length>0).map(e=>({query:o.type===`container`?`mantine-grid (min-width: ${s[e.value]})`:`(min-width: ${s[e.value]})`,styles:d[e.value]}));return(0,U.jsx)(oi,{styles:u,media:o.type===`container`?void 0:f,container:o.type===`container`?f:void 0,selector:i})}var Sh={container:`m_8478a6da`,root:`m_410352e9`,inner:`m_dee7bd2f`,col:`m_96bdd299`},Ch={span:12},wh=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,span:o,order:s,offset:c,align:l,...u}=W(`GridCol`,Ch,e),d=gh(),f=Mi();return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(xh,{selector:`.${f}`,span:o,order:s,offset:c,align:l}),(0,U.jsx)(q,{...d.getStyles(`col`,{className:Tn(n,f),style:r,classNames:t,styles:i}),...u})]})});wh.classes=Sh,wh.displayName=`@mantine/core/GridCol`;function Th({gap:e,rowGap:t,columnGap:n,selector:r,breakpoints:i,type:a}){let o=wr(),s=i||o.breakpoints,c=Ge({"--grid-gap":ot(mt(e)),"--grid-row-gap":ot(mt(t)),"--grid-column-gap":ot(mt(n))}),l=Ie(s).reduce((r,i)=>(r[i]||(r[i]={}),typeof e==`object`&&e[i]!==void 0&&(r[i][`--grid-gap`]=ot(e[i])),typeof t==`object`&&t[i]!==void 0&&(r[i][`--grid-row-gap`]=ot(t[i])),typeof n==`object`&&n[i]!==void 0&&(r[i][`--grid-column-gap`]=ot(n[i])),r),{}),u=pt(Ie(l),s).filter(e=>Ie(l[e.value]).length>0).map(e=>({query:a===`container`?`mantine-grid (min-width: ${s[e.value]})`:`(min-width: ${s[e.value]})`,styles:l[e.value]}));return(0,U.jsx)(oi,{styles:c,media:a===`container`?void 0:u,container:a===`container`?u:void 0,selector:r})}var Eh={gap:`md`,columns:12},Dh=Cn((e,{justify:t,align:n,overflow:r})=>({root:{"--grid-justify":t,"--grid-align":n,"--grid-overflow":r}})),Oh=K(e=>{let t=W(`Grid`,Eh,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,grow:c,gap:l,rowGap:u,columnGap:d,columns:f,align:p,justify:m,children:h,breakpoints:g,type:_,attributes:v,...y}=t,b=G({name:`Grid`,classes:Sh,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:Dh}),x=Mi();return _===`container`&&g?(0,U.jsxs)(hh,{value:{getStyles:b,grow:c,columns:f,breakpoints:g,type:_},children:[(0,U.jsx)(Th,{selector:`.${x}`,...t}),(0,U.jsx)(`div`,{...b(`container`),children:(0,U.jsx)(q,{...b(`root`,{className:x}),...y,children:(0,U.jsx)(`div`,{...b(`inner`),children:h})})})]}):(0,U.jsxs)(hh,{value:{getStyles:b,grow:c,columns:f,breakpoints:g,type:_},children:[(0,U.jsx)(Th,{selector:`.${x}`,...t}),(0,U.jsx)(q,{...b(`root`,{className:x}),...y,children:(0,U.jsx)(`div`,{...b(`inner`),children:h})})]})});Oh.classes=Sh,Oh.varsResolver=Dh,Oh.displayName=`@mantine/core/Grid`,Oh.Col=wh;function kh(e=`top-end`,t=0){let n={"--indicator-top":void 0,"--indicator-bottom":void 0,"--indicator-left":void 0,"--indicator-right":void 0,"--indicator-translate-x":void 0,"--indicator-translate-y":void 0},r=typeof t==`number`?t:t.x,i=typeof t==`number`?t:t.y,a=V(r),o=V(i),[s,c]=e.split(`-`);return s===`top`&&(n[`--indicator-top`]=o,n[`--indicator-translate-y`]=`-50%`),s===`middle`&&(n[`--indicator-top`]=`50%`,n[`--indicator-translate-y`]=`-50%`),s===`bottom`&&(n[`--indicator-bottom`]=o,n[`--indicator-translate-y`]=`50%`),c===`start`&&(n[`--indicator-left`]=a,n[`--indicator-translate-x`]=`-50%`),c===`center`&&(n[`--indicator-left`]=`50%`,n[`--indicator-translate-x`]=`-50%`),c===`end`&&(n[`--indicator-right`]=a,n[`--indicator-translate-x`]=`50%`),n}var Ah={root:`m_e5262200`,indicator:`m_760d1fb1`,processing:`m_885901b1`},jh={position:`top-end`,offset:0,showZero:!0},Mh=Cn((e,{color:t,position:n,offset:r,size:i,radius:a,zIndex:o,autoContrast:s})=>({root:{"--indicator-color":t?Un(t,e):void 0,"--indicator-text-color":Zn(s,e)?Yn({color:t,theme:e,autoContrast:s}):void 0,"--indicator-size":V(i),"--indicator-radius":a===void 0?void 0:st(a),"--indicator-z-index":o?.toString(),...kh(n,r)}})),Nh=K(e=>{let t=W(`Indicator`,jh,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,position:l,offset:u,inline:d,label:f,radius:p,color:m,withBorder:h,disabled:g,processing:_,zIndex:v,autoContrast:y,maxValue:b,showZero:x,mod:S,attributes:C,...w}=t,T=G({name:`Indicator`,classes:Ah,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:C,vars:s,varsResolver:Mh}),E=!x&&(f===0||f===`0`),D=b!==void 0&&typeof f==`number`&&f>b?`${b}+`:f;return(0,U.jsxs)(q,{...T(`root`),mod:[{inline:d},S],...w,children:[!g&&!E&&(0,U.jsx)(q,{mod:{"with-label":!!f,"with-border":h,processing:_},...T(`indicator`),children:D}),c]})});Nh.classes=Ah,Nh.varsResolver=Mh,Nh.displayName=`@mantine/core/Indicator`;var Ph=[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`,`boxSizing`,`fontFamily`,`fontSize`,`fontStyle`,`fontWeight`,`letterSpacing`,`lineHeight`,`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`,`tabSize`,`textIndent`,`textRendering`,`textTransform`,`width`,`wordBreak`,`wordSpacing`,`scrollbarGutter`],Fh={"min-height":`0`,"max-height":`none`,height:`0`,visibility:`hidden`,overflow:`hidden`,position:`absolute`,"z-index":`-1000`,top:`0`,right:`0`,display:`block`};function Ih(e){Object.keys(Fh).forEach(t=>{e.style.setProperty(t,Fh[t],`important`)})}function Lh(e){let t=window.getComputedStyle(e);if(t===null)return null;let n={};for(let e of Ph)n[e]=t[e];return n.boxSizing===``?null:{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)}}var Rh=null;function zh(e,t,n=1,r=1/0){Rh||(Rh=document.createElement(`textarea`),Rh.setAttribute(`tabindex`,`-1`),Rh.setAttribute(`aria-hidden`,`true`),Rh.setAttribute(`aria-label`,`autosize measurement`),Ih(Rh)),Rh.parentNode===null&&document.body.appendChild(Rh);let{paddingSize:i,borderSize:a,sizingStyle:o}=e,{boxSizing:s}=o;Object.keys(o).forEach(e=>{Rh.style[e]=o[e]}),Ih(Rh),Rh.value=t;let c=s===`border-box`?Rh.scrollHeight+a:Rh.scrollHeight-i;Rh.value=t,c=s===`border-box`?Rh.scrollHeight+a:Rh.scrollHeight-i,Rh.value=`x`;let l=Rh.scrollHeight-i,u=l*n;s===`border-box`&&(u=u+i+a),c=Math.max(u,c);let d=l*r;return s===`border-box`&&(d=d+i+a),c=Math.min(d,c),[c,l]}function Bh({maxRows:e,minRows:t,onChange:n,ref:r,...i}){let a=i.value!==void 0,o=(0,H.useRef)(null),s=Jt(o,r),c=(0,H.useRef)(0),l=()=>{let n=o.current;if(!n)return;let r=Lh(n);if(!r)return;let[i]=zh(r,n.value||n.placeholder||`x`,t,e);c.current!==i&&(c.current=i,n.style.setProperty(`height`,`${i}px`,`important`))},u=e=>{a||l(),n?.(e)};return(0,H.useLayoutEffect)(l),(0,H.useEffect)(()=>{let e=()=>l();return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),(0,H.useEffect)(()=>{let e=()=>l();return document.fonts.addEventListener(`loadingdone`,e),()=>document.fonts.removeEventListener(`loadingdone`,e)},[]),(0,H.useEffect)(()=>{let e=e=>{if(o.current?.form===e.target&&!a){let e=o.current.value;requestAnimationFrame(()=>{o.current&&e!==o.current.value&&l()})}};return document.body.addEventListener(`reset`,e),()=>document.body.removeEventListener(`reset`,e)},[a]),(0,U.jsx)(`textarea`,{...i,onChange:u,ref:s})}var Vh={size:`sm`},Hh=K(e=>{let{autosize:t,maxRows:n,minRows:r,__staticSelector:i,resize:a,...o}=W(`Textarea`,Vh,e),s=t&&gn()!==`test`,c=s?{maxRows:n,minRows:r}:{};return(0,U.jsx)(Cf,{component:s?Bh:`textarea`,...o,__staticSelector:i||`Textarea`,multiline:!0,"data-no-overflow":t&&n===void 0||void 0,__vars:{"--input-resize":a},...c})});Hh.classes=Cf.classes,Hh.displayName=`@mantine/core/Textarea`;var[Uh,Wh]=Je(`Menu component was not found in the tree`),Gh={dropdown:`m_dc9b7c9f`,label:`m_9bfac126`,divider:`m_efdf90cb`,item:`m_99ac2aa1`,itemLabel:`m_5476e0d3`,itemSection:`m_8b75e504`,chevron:`m_b85b0bed`},Kh=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`MenuDivider`,null,e);return(0,U.jsx)(q,{...Wh().getStyles(`divider`,{className:n,style:r,styles:i,classNames:t}),...o})});Kh.classes=Gh,Kh.displayName=`@mantine/core/MenuDivider`;var qh=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,onMouseEnter:o,onMouseLeave:s,onKeyDown:c,children:l,ref:u,...d}=W(`MenuDropdown`,null,e),f=(0,H.useRef)(null),p=Wh(),m=dt(c,e=>{(e.key===`ArrowUp`||e.key===`ArrowDown`)&&(e.preventDefault(),f.current?.querySelectorAll(`[data-menu-item]:not(:disabled)`)[0]?.focus())}),h=dt(o,()=>(p.trigger===`hover`||p.trigger===`click-hover`)&&p.openDropdown()),g=dt(s,()=>(p.trigger===`hover`||p.trigger===`click-hover`)&&p.closeDropdown());return(0,U.jsxs)(eu.Dropdown,{...d,onMouseEnter:h,onMouseLeave:g,role:`menu`,"aria-orientation":`vertical`,ref:Jt(u,f),...p.getStyles(`dropdown`,{className:n,style:r,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:m,children:[p.withInitialFocusPlaceholder&&(0,U.jsx)(`div`,{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),l]})});qh.classes=Gh,qh.displayName=`@mantine/core/MenuDropdown`;var Jh=(0,H.createContext)(null),Yh=Ri(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,closeMenuOnClick:s,leftSection:c,rightSection:l,children:u,disabled:d,"data-disabled":f,ref:p,...m}=W(`MenuItem`,null,e),h=Wh(),g=(0,H.use)(Jh),_=wr(),{dir:v}=Ki(),y=(0,H.useRef)(null),b=m,x=dt(b.onClick,()=>{f||(typeof s==`boolean`?s&&h.closeDropdownImmediately():h.closeOnItemClick&&h.closeDropdownImmediately())}),S=o?_.variantColorResolver({color:o,theme:_,variant:`light`}):void 0,C=o?Hn({color:o,theme:_}):null,w=dt(b.onKeyDown,e=>{e.key===`ArrowLeft`&&g&&(g.close(),g.focusParentItem())});return(0,U.jsxs)(dl,{onMouseDown:e=>e.preventDefault(),...m,unstyled:h.unstyled,tabIndex:h.menuItemTabIndex,...h.getStyles(`item`,{className:n,style:r,styles:i,classNames:t}),ref:Jt(y,p),role:`menuitem`,disabled:d,"data-menu-item":!0,"data-disabled":d||f||void 0,"data-mantine-stop-propagation":!0,onClick:x,onKeyDown:et({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:h.loop,dir:v,orientation:`vertical`,onKeyDown:w}),__vars:{"--menu-item-color":C?.isThemeColor&&C?.shade===void 0?`var(--mantine-color-${C.color}-6)`:S?.color,"--menu-item-hover":S?.hover},children:[c&&(0,U.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`left`,children:c}),u&&(0,U.jsx)(`div`,{...h.getStyles(`itemLabel`,{styles:i,classNames:t}),children:u}),l&&(0,U.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`right`,children:l})]})});Yh.classes=Gh,Yh.displayName=`@mantine/core/MenuItem`;var Xh=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`MenuLabel`,null,e);return(0,U.jsx)(q,{...Wh().getStyles(`label`,{className:n,style:r,styles:i,classNames:t}),...o})});Xh.classes=Gh,Xh.displayName=`@mantine/core/MenuLabel`;var Zh=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,onMouseEnter:o,onMouseLeave:s,onKeyDown:c,children:l,ref:u,...d}=W(`MenuSubDropdown`,null,e),f=(0,H.useRef)(null),p=Wh(),m=(0,H.use)(Jh),h=dt(o,m?.open),g=dt(s,m?.close);return(0,U.jsx)(eu.Dropdown,{...d,onMouseEnter:h,onMouseLeave:g,role:`menu`,"aria-orientation":`vertical`,ref:Jt(u,f),...p.getStyles(`dropdown`,{className:n,style:r,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:l})});Zh.classes=Gh,Zh.displayName=`@mantine/core/MenuSubDropdown`;var Qh=Ri(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,leftSection:s,rightSection:c,children:l,disabled:u,"data-disabled":d,closeMenuOnClick:f,ref:p,...m}=W(`MenuSubItem`,null,e),h=Wh(),g=(0,H.use)(Jh),_=wr(),{dir:v}=Ki(),y=(0,H.useRef)(null),b=m,x=o?_.variantColorResolver({color:o,theme:_,variant:`light`}):void 0,S=o?Hn({color:o,theme:_}):null,C=dt(b.onKeyDown,e=>{e.key===`ArrowRight`&&(g?.open(),g?.focusFirstItem()),e.key===`ArrowLeft`&&g?.parentContext&&(g.parentContext.close(),g.parentContext.focusParentItem())}),w=dt(b.onClick,()=>{!d&&f&&h.closeDropdownImmediately()}),T=dt(b.onMouseEnter,g?.open),E=dt(b.onMouseLeave,g?.close);return(0,U.jsxs)(dl,{onMouseDown:e=>e.preventDefault(),...m,unstyled:h.unstyled,tabIndex:h.menuItemTabIndex,...h.getStyles(`item`,{className:n,style:r,styles:i,classNames:t}),ref:Jt(y,p),role:`menuitem`,disabled:u,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":u||d||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:T,onMouseLeave:E,onClick:w,onKeyDown:et({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:h.loop,dir:v,orientation:`vertical`,onKeyDown:C}),__vars:{"--menu-item-color":S?.isThemeColor&&S?.shade===void 0?`var(--mantine-color-${S.color}-6)`:x?.color,"--menu-item-hover":x?.hover},children:[s&&(0,U.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`left`,children:s}),l&&(0,U.jsx)(`div`,{...h.getStyles(`itemLabel`,{styles:i,classNames:t}),children:l}),(0,U.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`right`,children:c||(0,U.jsx)(Pf,{...h.getStyles(`chevron`),size:14})})]})});Qh.classes=Gh,Qh.displayName=`@mantine/core/MenuSubItem`;function $h({children:e,refProp:t}){if(!qe(e))throw Error(`Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);return Wh(),(0,U.jsx)(eu.Target,{refProp:t,popupType:`menu`,children:e})}$h.displayName=`@mantine/core/MenuSubTarget`;var eg={offset:0,position:`right-start`,transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function tg(e){let{children:t,closeDelay:n,openDelay:r,...i}=W(`MenuSub`,eg,e),a=Rt(),[o,{open:s,close:c}]=rn(!1),l=(0,H.use)(Jh),{openDropdown:u,closeDropdown:d}=Cl({open:s,close:c,closeDelay:n,openDelay:r});return(0,U.jsx)(Jh,{value:{opened:o,close:d,open:u,focusFirstItem:()=>window.setTimeout(()=>{document.getElementById(`${a}-dropdown`)?.querySelectorAll(`[data-menu-item]:not([data-disabled])`)[0]?.focus()},16),focusParentItem:()=>window.setTimeout(()=>{document.getElementById(`${a}-target`)?.focus()},16),parentContext:l},children:(0,U.jsx)(eu,{opened:o,withinPortal:!1,withArrow:!1,id:a,...i,children:t})})}tg.extend=e=>e,tg.displayName=`@mantine/core/MenuSub`,tg.Target=$h,tg.Dropdown=Zh,tg.Item=Qh;var ng={refProp:`ref`};function rg(e){let{children:t,refProp:n,...r}=W(`MenuTarget`,ng,e),i=Sn(t);if(!i)throw Error(`Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let a=Wh(),o=i.props,s=dt(o.onClick,()=>{a.trigger===`click`?a.toggleDropdown():a.trigger===`click-hover`&&(a.setOpenedViaClick(!0),a.opened||a.openDropdown())}),c=dt(o.onMouseEnter,()=>(a.trigger===`hover`||a.trigger===`click-hover`)&&a.openDropdown()),l=dt(o.onMouseLeave,()=>{(a.trigger===`hover`||a.trigger===`click-hover`&&!a.openedViaClick)&&a.closeDropdown()});return(0,U.jsx)(eu.Target,{refProp:n,popupType:`menu`,...r,children:(0,H.cloneElement)(i,{onClick:s,onMouseEnter:c,onMouseLeave:l,"data-expanded":a.opened?!0:void 0})})}rg.displayName=`@mantine/core/MenuTarget`;var ig={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:[`mousedown`,`touchstart`,`keydown`],loop:!0,trigger:`click`,openDelay:0,closeDelay:100,menuItemTabIndex:-1},ag=K(e=>{let t=W(`Menu`,ig,e),{children:n,onOpen:r,onClose:i,opened:a,defaultOpened:o,trapFocus:s,onChange:c,closeOnItemClick:l,loop:u,closeOnEscape:d,trigger:f,openDelay:p,closeDelay:m,classNames:h,styles:g,unstyled:_,variant:v,vars:y,menuItemTabIndex:b,keepMounted:x,withInitialFocusPlaceholder:S,attributes:C,...w}=t,T=G({name:`Menu`,classes:Gh,props:t,classNames:h,styles:g,unstyled:_,attributes:C}),[E,D]=Yt({value:a,defaultValue:o,finalValue:!1,onChange:c}),[O,k]=(0,H.useState)(!1),A=()=>{D(!1),k(!1),E&&i?.()},j=()=>{D(!0),!E&&r?.()},M=()=>{E?A():j()},{openDropdown:N,closeDropdown:P}=Cl({open:j,close:A,closeDelay:m,openDelay:p}),ee=e=>ht(`[data-menu-item]`,`[data-menu-dropdown]`,e),{resolvedClassNames:F,resolvedStyles:I}=Ur({classNames:h,styles:g,props:t});return(0,U.jsx)(Uh,{value:{getStyles:T,opened:E,toggleDropdown:M,getItemIndex:ee,openedViaClick:O,setOpenedViaClick:k,closeOnItemClick:l,closeDropdown:f===`click`?A:P,openDropdown:f===`click`?j:N,closeDropdownImmediately:A,loop:u,trigger:f,unstyled:_,menuItemTabIndex:b,withInitialFocusPlaceholder:S},children:(0,U.jsx)(eu,{returnFocus:!0,...w,opened:E,onChange:M,defaultOpened:o,trapFocus:x?!1:s,closeOnEscape:d,__staticSelector:`Menu`,classNames:F,styles:I,unstyled:_,variant:v,keepMounted:x,children:n})})});ag.displayName=`@mantine/core/Menu`,ag.classes=Gh,ag.Item=Yh,ag.Label=Xh,ag.Dropdown=qh,ag.Target=rg,ag.Divider=Kh,ag.Sub=tg;var[og,sg]=Je(`Modal component was not found in tree`),cg={root:`m_9df02822`,content:`m_54c44539`,inner:`m_1f958f16`,header:`m_d0e2b9cd`},lg=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ModalBody`,null,e);return(0,U.jsx)(Ud,{...sg().getStyles(`body`,{classNames:t,style:r,styles:i,className:n}),...o})});lg.classes=cg,lg.displayName=`@mantine/core/ModalBody`;var ug=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ModalCloseButton`,null,e);return(0,U.jsx)(Wd,{...sg().getStyles(`close`,{classNames:t,style:r,styles:i,className:n}),...o})});ug.classes=cg,ug.displayName=`@mantine/core/ModalCloseButton`;var dg=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,__hidden:s,...c}=W(`ModalContent`,null,e),l=sg(),u=l.scrollAreaComponent||Qd;return(0,U.jsx)(Gd,{...l.getStyles(`content`,{className:n,style:r,styles:i,classNames:t}),innerProps:l.getStyles(`inner`,{className:n,style:r,styles:i,classNames:t}),"data-full-screen":l.fullScreen||void 0,"data-modal-content":!0,"data-hidden":s||void 0,...c,children:(0,U.jsx)(u,{style:{maxHeight:l.fullScreen?`100dvh`:`calc(100dvh - (${V(l.yOffset)} * 2))`},children:o})})});dg.classes=cg,dg.displayName=`@mantine/core/ModalContent`;var fg=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ModalHeader`,null,e);return(0,U.jsx)(Kd,{...sg().getStyles(`header`,{classNames:t,style:r,styles:i,className:n}),...o})});fg.classes=cg,fg.displayName=`@mantine/core/ModalHeader`;var pg=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ModalOverlay`,null,e);return(0,U.jsx)(Yd,{...sg().getStyles(`overlay`,{classNames:t,style:r,styles:i,className:n}),...o})});pg.classes=cg,pg.displayName=`@mantine/core/ModalOverlay`;var mg={__staticSelector:`Modal`,closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:nt(`modal`),transitionProps:{duration:200,transition:`fade-down`},yOffset:`5dvh`},hg=Cn((e,{radius:t,size:n,yOffset:r,xOffset:i})=>({root:{"--modal-radius":t===void 0?void 0:st(t),"--modal-size":at(n,`modal-size`),"--modal-y-offset":V(r),"--modal-x-offset":V(i)}})),gg=K(e=>{let t=W(`ModalRoot`,mg,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,yOffset:c,scrollAreaComponent:l,radius:u,fullScreen:d,centered:f,xOffset:p,__staticSelector:m,attributes:h,...g}=t,_=G({name:m,classes:cg,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:hg});return(0,U.jsx)(og,{value:{yOffset:c,scrollAreaComponent:l,getStyles:_,fullScreen:d},children:(0,U.jsx)(Bd,{..._(`root`),"data-full-screen":d||void 0,"data-centered":f||void 0,"data-offset-scrollbars":l===sl.Autosize||void 0,unstyled:o,...g})})});gg.classes=cg,gg.varsResolver=hg,gg.displayName=`@mantine/core/ModalRoot`;var _g=(0,H.createContext)(null);function vg({children:e}){let[t,n]=(0,H.useState)([]),[r,i]=(0,H.useState)(nt(`modal`));return(0,U.jsx)(_g,{value:{stack:t,addModal:(e,t)=>{n(t=>[...new Set([...t,e])]),i(e=>typeof t==`number`&&typeof e==`number`?Math.max(e,t):e)},removeModal:e=>n(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${r} + ${t.indexOf(e)} + 1)`,currentId:t[t.length-1],maxZIndex:r},children:e})}vg.displayName=`@mantine/core/ModalStack`;var yg=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ModalTitle`,null,e);return(0,U.jsx)(Zd,{...sg().getStyles(`title`,{classNames:t,style:r,styles:i,className:n}),...o})});yg.classes=cg,yg.displayName=`@mantine/core/ModalTitle`;var bg={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:nt(`modal`),transitionProps:{duration:200,transition:`fade-down`},withOverlay:!0,withCloseButton:!0},xg=K(e=>{let{title:t,withOverlay:n,overlayProps:r,withCloseButton:i,closeButtonProps:a,children:o,radius:s,opened:c,stackId:l,zIndex:u,...d}=W(`Modal`,bg,e),f=(0,H.use)(_g),p=!!t||i,m=f&&l?{closeOnEscape:f.currentId===l,trapFocus:f.currentId===l,zIndex:f.getZIndex(l)}:{},h=n===!1?!1:l&&f?f.currentId===l:c;return(0,H.useEffect)(()=>{f&&l&&(c?f.addModal(l,u||nt(`modal`)):f.removeModal(l))},[c,l,u]),(0,U.jsxs)(gg,{radius:s,opened:c,zIndex:f&&l?f.getZIndex(l):u,...d,...m,children:[n&&(0,U.jsx)(pg,{visible:h,transitionProps:f&&l?{duration:0}:void 0,...r}),(0,U.jsxs)(dg,{radius:s,__hidden:f&&l&&c?l!==f.currentId:!1,children:[p&&(0,U.jsxs)(fg,{children:[t&&(0,U.jsx)(yg,{children:t}),i&&(0,U.jsx)(ug,{...a})]}),(0,U.jsx)(lg,{children:o})]})]})});xg.classes=cg,xg.displayName=`@mantine/core/Modal`,xg.Root=gg,xg.Overlay=pg,xg.Content=dg,xg.Body=lg,xg.Header=fg,xg.Title=yg,xg.CloseButton=ug,xg.Stack=vg;var Sg=(0,H.createContext)(null),Cg={root:`m_7cda1cd6`,"root--default":`m_44da308b`,"root--contrast":`m_e3a01f8`,label:`m_1e0e6180`,remove:`m_ae386778`,group:`m_1dcfd90b`},wg=(0,H.createContext)(null),Tg=Cn((e,{gap:t},{size:n})=>({group:{"--pg-gap":t===void 0?at(n,`pg-gap`):at(t)}})),Eg=K(e=>{let t=W(`PillGroup`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,disabled:l,attributes:u,...d}=t,f=(0,H.use)(Sg)?.size||c||void 0,p=G({name:`PillGroup`,classes:Cg,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:Tg,stylesCtx:{size:f},rootSelector:`group`});return(0,U.jsx)(wg,{value:{size:f,disabled:l},children:(0,U.jsx)(q,{size:f,...p(`group`),...d})})});Eg.classes=Cg,Eg.varsResolver=Tg,Eg.displayName=`@mantine/core/PillGroup`;var Dg={variant:`default`},Og=Cn((e,{radius:t},{size:n})=>({root:{"--pill-fz":at(n,`pill-fz`),"--pill-height":at(n,`pill-height`),"--pill-radius":t===void 0?void 0:st(t)}})),kg=K(e=>{let t=W(`Pill`,Dg,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,variant:c,children:l,withRemoveButton:u,onRemove:d,removeButtonProps:f,radius:p,size:m,disabled:h,mod:g,attributes:_,...v}=t,y=(0,H.use)(wg),b=(0,H.use)(Sg),x=m||y?.size||void 0,S=b?.variant===`filled`?`contrast`:c||`default`,C=G({name:`Pill`,classes:Cg,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:_,vars:s,varsResolver:Og,stylesCtx:{size:x}});return(0,U.jsxs)(q,{component:`span`,variant:S,size:x,...C(`root`,{variant:S}),mod:[{"with-remove":u&&!h,disabled:h||y?.disabled},g],...v,children:[(0,U.jsx)(`span`,{...C(`label`),children:l}),u&&(0,U.jsx)(xu,{variant:`transparent`,radius:p,tabIndex:-1,"aria-hidden":!0,unstyled:o,...f,...C(`remove`,{className:f?.className,style:f?.style}),onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),f?.onMouseDown?.(e)},onClick:e=>{e.stopPropagation(),d?.(),f?.onClick?.(e)}})]})});kg.classes=Cg,kg.varsResolver=Og,kg.displayName=`@mantine/core/Pill`,kg.Group=Eg;var Ag={field:`m_45c4369d`},jg={type:`visible`},Mg=K(e=>{let t=W(`PillsInputField`,jg,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,type:c,disabled:l,id:u,pointer:d,mod:f,attributes:p,ref:m,...h}=t,g=(0,H.use)(Sg),_=(0,H.use)(rf),v=G({name:`PillsInputField`,classes:Ag,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,rootSelector:`field`}),y=l||g?.disabled;return(0,U.jsx)(q,{component:`input`,ref:Jt(m,g?.fieldRef),"data-type":c,disabled:y,mod:[{disabled:y,pointer:d},f],...v(`field`),...h,id:_?.inputId||u,"aria-invalid":g?.hasError,"aria-describedby":_?.describedBy,type:`text`,onMouseDown:e=>!d&&e.stopPropagation()})});Mg.classes=Ag,Mg.displayName=`@mantine/core/PillsInputField`;var Ng={size:`sm`},Pg=K(e=>{let{children:t,onMouseDown:n,onClick:r,size:i,disabled:a,__staticSelector:o,error:s,variant:c,...l}=W(`PillsInput`,Ng,e),u=(0,H.useRef)(null);return(0,U.jsx)(Sg,{value:{fieldRef:u,size:i,disabled:a,hasError:!!s,variant:c},children:(0,U.jsx)(Cf,{size:i,error:s,variant:c,component:`div`,"data-no-overflow":!0,onMouseDown:e=>{e.preventDefault(),n?.(e),u.current?.focus()},onClick:e=>{e.preventDefault(),e.currentTarget.closest(`fieldset`)?.disabled||(u.current?.focus(),r?.(e))},...l,multiline:!0,disabled:a,__staticSelector:o||`PillsInput`,withAria:!1,children:t})})});Pg.displayName=`@mantine/core/PillsInput`,Pg.classes=Cf.classes,Pg.Field=Mg;function Fg(e){return typeof e==`string`?e.trim().toLowerCase():e}function Ig({data:e,value:t}){let n=t.map(Fg);return e.reduce((e,t)=>(nm(t)?e.push({group:t.group,items:t.items.filter(e=>n.indexOf(Fg(e.value))===-1)}):n.indexOf(Fg(t.value))===-1&&e.push(t),e),[])}var Lg={xs:41,sm:50,md:60,lg:72,xl:89},Rg={maxValues:1/0,withCheckIcon:!0,checkIconPosition:`left`,hiddenInputValuesDivider:`,`,clearSearchOnChange:!0,openOnFocus:!0,size:`sm`},zg=Li(e=>{let t=W(`MultiSelect`,Rg,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,value:l,defaultValue:u,onChange:d,onKeyDown:f,variant:p,data:m,dropdownOpened:h,defaultDropdownOpened:g,onDropdownOpen:_,onDropdownClose:v,selectFirstOptionOnChange:y,selectFirstOptionOnDropdownOpen:b,onOptionSubmit:x,comboboxProps:S,filter:C,limit:w,withScrollArea:T,maxDropdownHeight:E,searchValue:D,defaultSearchValue:O,onSearchChange:k,readOnly:A,disabled:j,onFocus:M,onBlur:N,radius:P,rightSection:ee,rightSectionWidth:F,rightSectionPointerEvents:I,rightSectionProps:te,leftSection:ne,leftSectionWidth:re,leftSectionPointerEvents:ie,leftSectionProps:L,inputContainer:ae,inputWrapperOrder:oe,withAsterisk:se,labelProps:ce,descriptionProps:le,errorProps:ue,wrapperProps:de,description:fe,label:R,error:pe,maxValues:me,searchable:he,nothingFoundMessage:ge,withCheckIcon:z,withAlignedLabels:_e,checkIconPosition:ve,hidePickedOptions:B,withErrorStyles:ye,name:be,form:xe,id:Se,clearable:Ce,clearSectionMode:we,clearButtonProps:Te,hiddenInputProps:Ee,placeholder:De,hiddenInputValuesDivider:Oe,required:ke,mod:Ae,renderOption:je,renderPill:Me,onRemove:Ne,onClear:Pe,onMaxValues:Fe,scrollAreaProps:Ie,chevronColor:Le,attributes:Re,clearSearchOnChange:ze,openOnFocus:Be,loading:Ve,loadingPosition:He,...Ue}=t,V=Rt(Se),We=tp(m),Ge=np(We),Ke=(0,H.useRef)({}),qe=Ap({opened:h,defaultOpened:g,onDropdownOpen:()=>{_?.(),b&&qe.selectFirstOption()},onDropdownClose:()=>{v?.(),qe.resetSelectedOption()}}),{styleProps:Je,rest:{type:Ye,autoComplete:Xe,...Ze}}=li(Ue),[Qe,$e]=Yt({value:l,defaultValue:u,finalValue:[],onChange:d}),[et,tt]=Yt({value:D,defaultValue:O,finalValue:``,onChange:k}),nt=e=>{tt(e),qe.resetSelectedOption()},rt=G({name:`MultiSelect`,classes:{},props:t,classNames:n,styles:a,unstyled:o,attributes:Re}),{resolvedClassNames:it,resolvedStyles:at}=Ur({props:t,styles:a,classNames:n}),ot=e=>{f?.(e),e.key===` `&&!he&&(e.preventDefault(),qe.toggleDropdown()),e.key===`Backspace`&&et.length===0&&Qe.length>0&&(Ne?.(Qe[Qe.length-1]),$e(Qe.slice(0,Qe.length-1)))},st=Qe.map((e,t)=>{let n=Ge[`${e}`]||Ke.current[`${e}`];return Me?(0,U.jsx)(H.Fragment,{children:Me({option:n,value:e,onRemove:()=>{$e(Qe.filter(t=>e!==t)),Ne?.(e)},disabled:j})},`${e}-${t}`):(0,U.jsx)(kg,{withRemoveButton:!A&&!Ge[`${e}`]?.disabled,onRemove:()=>{$e(Qe.filter(t=>e!==t)),Ne?.(e)},unstyled:o,disabled:j,...rt(`pill`),children:n?.label||e},`${e}-${t}`)});(0,H.useEffect)(()=>{y&&qe.selectFirstOption()},[y,et]),(0,H.useEffect)(()=>{Qe.forEach(e=>{`${e}`in Ge&&(Ke.current[`${e}`]=Ge[`${e}`])})},[Ge,Qe]);let ct=(0,U.jsx)(Np.ClearButton,{...Te,onClear:()=>{Pe?.(),$e([]),nt(``)}}),lt=Ig({data:We,value:Qe}),ut=Ce&&Qe.length>0&&!j&&!A,dt=ut?{paddingInlineEnd:Lg[c]??Lg.sm}:void 0;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(Np,{store:qe,classNames:it,styles:at,unstyled:o,size:c,readOnly:A,__staticSelector:`MultiSelect`,attributes:Re,onOptionSubmit:e=>{x?.(e),ze&&nt(``),qe.updateSelectedOptionIndex(`selected`),Qe.includes(Ge[`${e}`].value)?($e(Qe.filter(t=>t!==Ge[`${e}`].value)),Ne?.(Ge[`${e}`].value)):Qe.length<me?$e([...Qe,Ge[`${e}`].value]):Fe?.()},...S,children:[(0,U.jsx)(Np.DropdownTarget,{children:(0,U.jsx)(Pg,{...Je,__staticSelector:`MultiSelect`,classNames:it,styles:at,unstyled:o,size:c,className:r,style:i,variant:p,disabled:j,radius:P,__defaultRightSection:(0,U.jsx)(Np.Chevron,{size:c,error:pe,unstyled:o,color:Le}),__clearSection:ct,__clearable:ut,__clearSectionMode:we,rightSection:ee,rightSectionPointerEvents:I||`none`,rightSectionWidth:F,rightSectionProps:te,leftSection:ne,leftSectionWidth:re,leftSectionPointerEvents:ie,leftSectionProps:L,loading:Ve,loadingPosition:He,inputContainer:ae,inputWrapperOrder:oe,withAsterisk:se,labelProps:ce,descriptionProps:le,errorProps:ue,wrapperProps:de,description:fe,label:R,error:pe,withErrorStyles:ye,__stylesApiProps:{...t,rightSectionPointerEvents:I||`none`,multiline:!0},pointer:!he,onClick:()=>he?qe.openDropdown():qe.toggleDropdown(),"data-expanded":qe.dropdownOpened||void 0,id:V,required:ke,mod:Ae,attributes:Re,children:(0,U.jsxs)(kg.Group,{attributes:Re,disabled:j,unstyled:o,...rt(`pillsList`,{style:dt}),children:[st,(0,U.jsx)(Np.EventsTarget,{autoComplete:Xe,withExpandedAttribute:!0,children:(0,U.jsx)(Pg.Field,{...Ze,id:V,placeholder:De,type:!he&&!De?`hidden`:`visible`,...rt(`inputField`),unstyled:o,onFocus:e=>{M?.(e),Be&&he&&qe.openDropdown()},onBlur:e=>{N?.(e),qe.closeDropdown(),nt(``)},onKeyDown:ot,value:et,onChange:e=>{nt(e.currentTarget.value),he&&qe.openDropdown(),y&&qe.selectFirstOption()},disabled:j,readOnly:A||!he,pointer:!he})})]})})}),(0,U.jsx)(cm,{data:B?lt:We,hidden:A||j,filter:C,search:et,limit:w,hiddenWhenEmpty:!ge,withScrollArea:T,maxDropdownHeight:E,filterOptions:he,value:Qe,checkIconPosition:ve,withCheckIcon:z,withAlignedLabels:_e,nothingFoundMessage:ge,unstyled:o,labelId:R?`${V}-label`:void 0,"aria-label":R?void 0:Ue[`aria-label`],renderOption:je,scrollAreaProps:Ie})]}),(0,U.jsx)(Np.HiddenInput,{name:be,valuesDivider:Oe,value:Qe,form:xe,disabled:j,...Ee})]})});zg.classes={...Cf.classes,...Np.classes},zg.displayName=`@mantine/core/MultiSelect`;var Bg={root:`m_f0824112`,description:`m_57492dcc`,section:`m_690090b5`,label:`m_1f6ac4c4`,body:`m_f07af9d2`,children:`m_e17b862f`,chevron:`m_1fd8a00b`},Vg=Cn((e,{variant:t,color:n,childrenOffset:r,autoContrast:i})=>{let a=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:t||`light`,autoContrast:i});return{root:{"--nl-bg":n||t?a.background:void 0,"--nl-hover":n||t?a.hover:void 0,"--nl-color":n||t?a.color:void 0},children:{"--nl-offset":ot(r)}}}),Hg=Ri(e=>{let t=W(`NavLink`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,opened:c,defaultOpened:l,onChange:u,children:d,active:f,disabled:p,leftSection:m,rightSection:h,label:g,description:_,disableRightSectionRotation:v,noWrap:y,childrenOffset:b,autoContrast:x,mod:S,attributes:C,onClick:w,onKeyDown:T,keepMounted:E,...D}=t,O=G({name:`NavLink`,props:t,classes:Bg,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:C,vars:s,varsResolver:Vg}),[k,A]=Yt({value:c,defaultValue:l,finalValue:!1,onChange:u}),j=!!d,M=e=>{w?.(e),j&&(e.preventDefault(),A(!k))};return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(dl,{...O(`root`),component:`a`,onClick:M,onKeyDown:e=>{T?.(e),e.nativeEvent.code===`Space`&&j&&(e.preventDefault(),A(!k))},unstyled:o,mod:[{disabled:p,active:f,expanded:k},S],...D,children:[m&&(0,U.jsx)(q,{component:`span`,...O(`section`),mod:{position:`left`},children:m}),(0,U.jsxs)(q,{...O(`body`),mod:{"no-wrap":y},children:[(0,U.jsx)(q,{component:`span`,...O(`label`),children:g}),(0,U.jsx)(q,{component:`span`,mod:{active:f},...O(`description`),children:_})]}),(j||h!==void 0)&&(0,U.jsx)(q,{...O(`section`),component:`span`,mod:{rotate:k&&!v,position:`right`},children:j&&h===void 0?(0,U.jsx)(Pf,{...O(`chevron`)}):h})]}),j&&(0,U.jsx)(Ji,{expanded:k,keepMounted:E,...O(`collapse`),children:(0,U.jsx)(`div`,{...O(`children`),children:d})})]})});Hg.classes=Bg,Hg.varsResolver=Vg,Hg.displayName=`@mantine/core/NavLink`;var Ug={root:`m_a513464`,icon:`m_a4ceffb`,loader:`m_b0920b15`,body:`m_a49ed24`,title:`m_3feedf16`,description:`m_3d733a3a`,closeButton:`m_919a4d88`},Wg={withCloseButton:!0},Gg=Cn((e,{radius:t,color:n})=>({root:{"--notification-radius":t===void 0?void 0:st(t),"--notification-color":n?Un(n,e):void 0}})),Kg=K(e=>{let t=W(`Notification`,Wg,e),{className:n,color:r,radius:i,loading:a,withCloseButton:o,withBorder:s,title:c,icon:l,children:u,onClose:d,closeButtonProps:f,classNames:p,style:m,styles:h,unstyled:g,vars:_,mod:v,loaderProps:y,role:b,attributes:x,...S}=t,C=G({name:`Notification`,classes:Ug,props:t,className:n,style:m,classNames:p,styles:h,unstyled:g,attributes:x,vars:_,varsResolver:Gg});return(0,U.jsxs)(q,{...C(`root`),mod:[{"data-with-icon":!!l||a,"data-with-border":s},v],role:b||`alert`,...S,children:[l&&!a&&(0,U.jsx)(`div`,{...C(`icon`),children:l}),a&&(0,U.jsx)(cu,{size:28,color:r,...C(`loader`),...y}),(0,U.jsxs)(`div`,{...C(`body`),children:[c&&(0,U.jsx)(`div`,{...C(`title`),children:c}),(0,U.jsx)(q,{...C(`description`),mod:{"data-with-title":!!c},children:u})]}),o&&(0,U.jsx)(xu,{iconSize:16,color:`gray`,...f,unstyled:g,onClick:e=>{f?.onClick?.(e),d?.()},...C(`closeButton`)})]})});Kg.classes=Ug,Kg.varsResolver=Gg,Kg.displayName=`@mantine/core/Notification`;function qg(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}var Jg;(function(e){e.event=`event`,e.props=`prop`})(Jg||={});function Yg(){}function Xg(e){var t,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t&&r.length===t.length&&r.every(function(e,n){return e===t[n]})?n:(t=r,n=e.apply(void 0,r),n)}}function Zg(e){return!!(e||``).match(/\d/)}function Qg(e){return e==null}function $g(e){return typeof e==`number`&&isNaN(e)}function e_(e){return Qg(e)||$g(e)||typeof e==`number`&&!isFinite(e)}function t_(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,`\\$&`)}function n_(e){switch(e){case`lakh`:return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case`wan`:return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}function r_(e,t,n){var r=n_(n),i=e.search(/[1-9]/);return i=i===-1?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(r,`$1`+t)}function i_(e){var t=(0,H.useRef)(e);return t.current=e,(0,H.useRef)(function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}).current}function a_(e,t){t===void 0&&(t=!0);var n=e[0]===`-`,r=n&&t;e=e.replace(`-`,``);var i=e.split(`.`);return{beforeDecimal:i[0],afterDecimal:i[1]||``,hasNegation:n,addNegation:r}}function o_(e){if(!e)return e;var t=e[0]===`-`;t&&(e=e.substring(1,e.length));var n=e.split(`.`),r=n[0].replace(/^0+/,``)||`0`,i=n[1]||``;return(t?`-`:``)+r+(i?`.`+i:``)}function s_(e,t,n){for(var r=``,i=n?`0`:``,a=0;a<=t-1;a++)r+=e[a]||i;return r}function c_(e,t){return Array(t+1).join(e)}function l_(e){var t=e+``,n=t[0]===`-`?`-`:``;n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(a=Number(a),!a)return n+i;i=i.replace(`.`,``);var o=1+a,s=i.length;return o<0?i=`0.`+c_(`0`,Math.abs(o))+i:o>=s?i+=c_(`0`,o-s):i=(i.substring(0,o)||`0`)+`.`+i.substring(o),n+i}function u_(e,t,n){if([``,`-`].indexOf(e)!==-1)return e;var r=(e.indexOf(`.`)!==-1||n)&&t,i=a_(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,c=parseFloat(`0.`+(o||`0`)),l=(o.length<=t?`0.`+o:c.toFixed(t)).split(`.`),u=a;a&&Number(l[0])&&(u=a.split(``).reverse().reduce(function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},l[0]));var d=s_(l[1]||``,t,n),f=s?`-`:``,p=r?`.`:``;return``+f+u+p+d}function d_(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move(`character`,t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var f_=Xg(function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[a-1-r]&&a-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),p_=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function m_(e,t,n){return Math.min(Math.max(e,t),n)}function h_(e){return Math.max(e.selectionStart,e.selectionEnd)}function g_(){return typeof navigator<`u`&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function __(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:``}}function v_(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function y_(e,t,n,r,i,a,o){o===void 0&&(o=v_);var s=i.findIndex(function(e){return e}),c=e.slice(0,s);!t&&!n.startsWith(c)&&(t=c,n=c+n,r+=c.length);for(var l=n.length,u=e.length,d={},f=Array(l),p=0;p<l;p++){f[p]=-1;for(var m=0,h=u;m<h;m++)if(o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:m})&&d[m]!==!0){f[p]=m,d[m]=!0;break}}for(var g=r;g<l&&(f[g]===-1||!a(n[g]));)g++;var _=g===l||f[g]===-1?u:f[g];for(g=r-1;g>0&&f[g]===-1;)g--;var v=g===-1||f[g]===-1?0:f[g]+1;return v>_?_:r-v<_-r?v:_}function b_(e,t,n,r){var i=e.length;if(t=m_(t,0,i),r===`left`){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return t===-1&&(t=i),t}function x_(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Zg(e[n])||Zg(e[n-1]));return t}function S_(e,t,n,r,i,a){a===void 0&&(a=Yg);var o=i_(function(e,t){var n,a;return e_(e)?(a=``,n=``):typeof e==`number`||t?(a=typeof e==`number`?l_(e):e,n=r(a)):(a=i(e,void 0),n=r(a)),{formattedValue:n,numAsString:a}}),s=(0,H.useState)(function(){return o(Qg(e)?t:e,n)}),c=s[0],l=s[1],u=i_(function(e,t){e.formattedValue!==c.formattedValue&&l({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}),d=e,f=n;Qg(e)&&(d=c.numAsString,f=!0);var p=o(d,f);return(0,H.useMemo)(function(){l(p)},[p.formattedValue]),(0,H.useEffect)(function(){if(!Qg(t)&&Qg(e)&&c.formattedValue!==``){var n=parseFloat(c.numAsString);u({formattedValue:c.formattedValue,value:c.numAsString,floatValue:isNaN(n)?void 0:n},{event:void 0,source:Jg.props})}},[]),[c,u]}function C_(e){return e.replace(/[^0-9]/g,``)}function w_(e){return e}function T_(e){var t=e.type;t===void 0&&(t=`text`);var n=e.displayType;n===void 0&&(n=`input`);var r=e.customInput,i=e.renderText,a=e.getInputRef,o=e.format;o===void 0&&(o=w_);var s=e.removeFormatting;s===void 0&&(s=C_);var c=e.defaultValue,l=e.valueIsNumericString,u=e.onValueChange,d=e.isAllowed,f=e.onChange;f===void 0&&(f=Yg);var p=e.onKeyDown;p===void 0&&(p=Yg);var m=e.onMouseUp;m===void 0&&(m=Yg);var h=e.onFocus;h===void 0&&(h=Yg);var g=e.onBlur;g===void 0&&(g=Yg);var _=e.value,v=e.getCaretBoundary;v===void 0&&(v=x_);var y=e.isValidInputCharacter;y===void 0&&(y=Zg);var b=e.isCharacterSame,x=qg(e,[`type`,`displayType`,`customInput`,`renderText`,`getInputRef`,`format`,`removeFormatting`,`defaultValue`,`valueIsNumericString`,`onValueChange`,`isAllowed`,`onChange`,`onKeyDown`,`onMouseUp`,`onFocus`,`onBlur`,`value`,`getCaretBoundary`,`isValidInputCharacter`,`isCharacterSame`]),S=S_(_,c,!!l,o,s,u),C=S[0],w=C.formattedValue,T=C.numAsString,E=S[1],D=(0,H.useRef)(),O=(0,H.useRef)({formattedValue:w,numAsString:T}),k=function(e,t){O.current={formattedValue:e.formattedValue,numAsString:e.value},E(e,t)},A=(0,H.useState)(!1),j=A[0],M=A[1],N=(0,H.useRef)(null),P=(0,H.useRef)({setCaretTimeout:null,focusTimeout:null});(0,H.useEffect)(function(){return M(!0),function(){clearTimeout(P.current.setCaretTimeout),clearTimeout(P.current.focusTimeout)}},[]);var ee=o,F=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},I=function(e,t,n){e.selectionStart===0&&e.selectionEnd===e.value.length||(d_(e,t),P.current.setCaretTimeout=setTimeout(function(){e.value===n&&e.selectionStart!==t&&d_(e,t)},0))},te=function(e,t,n){return b_(e,t,v(e),n)},ne=function(e,t,n){var r=v(t),i=y_(t,w,e,n,r,y,b);return i=b_(t,i,r),i},re=function(e){var t=e.formattedValue;t===void 0&&(t=``);var n=e.input,r=e.source,i=e.event,a=e.numAsString,o;if(n){var s=e.inputValue||n.value,c=h_(n);n.value=t,o=ne(s,t,c),o!==void 0&&I(n,o,t)}t!==w&&k(F(t,a),{event:i,source:r})};(0,H.useEffect)(function(){var e=O.current,t=e.formattedValue,n=e.numAsString;(w!==t||T!==n)&&k(F(w,T),{event:void 0,source:Jg.props})},[w,T]);var ie=N.current?h_(N.current):void 0;(typeof window<`u`?H.useLayoutEffect:H.useEffect)(function(){var e=N.current;if(w!==O.current.formattedValue&&e){var t=ne(O.current.formattedValue,w,ie);e.value=w,I(e,t,w)}},[w]);var L=function(e,t,n){var r=t.target,i=D.current?p_(D.current,r.selectionEnd):f_(w,e),a=Object.assign(Object.assign({},i),{lastValue:w}),o=s(e,a),c=ee(o);if(o=s(c,void 0),d&&!d(F(c,o))){var l=t.target,u=ne(e,w,h_(l));return l.value=w,I(l,u,w),!1}return re({formattedValue:c,numAsString:o,inputValue:e,event:t,source:n,input:t.target}),!0},ae=function(e,t){t===void 0&&(t=0),D.current={selectionStart:e.selectionStart,selectionEnd:e.selectionEnd+t}},oe=function(e){var t=e.target.value;L(t,e,Jg.event)&&f(e),D.current=void 0},se=function(e){var t=e.target,n=e.key,r=t.selectionStart,i=t.selectionEnd,a=t.value;a===void 0&&(a=``);var o;n===`ArrowLeft`||n===`Backspace`?o=Math.max(r-1,0):n===`ArrowRight`?o=Math.min(r+1,a.length):n===`Delete`&&(o=r);var s=0;n===`Delete`&&r===i&&(s=1);var c=n===`ArrowLeft`||n===`ArrowRight`;if(o===void 0||r!==i&&!c){p(e),ae(t,s);return}var l=o;c?(l=te(a,o,n===`ArrowLeft`?`left`:`right`),l!==o&&e.preventDefault()):n===`Delete`&&!y(a[o])?l=te(a,o,`right`):n===`Backspace`&&!y(a[o])&&(l=te(a,o,`left`)),l!==o&&I(t,l,a),p(e),ae(t,s)},ce=function(e){var t=e.target,n=function(){var e=t.selectionStart,n=t.selectionEnd,r=t.value;if(r===void 0&&(r=``),e===n){var i=te(r,e);i!==e&&I(t,i,r)}};n(),requestAnimationFrame(function(){n()}),m(e),ae(t)},le=function(e){e.persist&&e.persist();var t=e.target,n=e.currentTarget;N.current=t,P.current.focusTimeout=setTimeout(function(){var r=t.selectionStart,i=t.selectionEnd,a=t.value;a===void 0&&(a=``);var o=te(a,r);o!==r&&!(r===0&&i===a.length)&&I(t,o,a),h(Object.assign(Object.assign({},e),{currentTarget:n}))},0)},ue=function(e){N.current=null,clearTimeout(P.current.focusTimeout),clearTimeout(P.current.setCaretTimeout),g(e)},de=j&&g_()?`numeric`:void 0,fe=Object.assign({inputMode:de},x,{type:t,value:w,onChange:oe,onKeyDown:se,onMouseUp:ce,onFocus:le,onBlur:ue});if(n===`text`)return i?H.createElement(H.Fragment,null,i(w,x)||null):H.createElement(`span`,Object.assign({},x,{ref:a}),w);if(r){var R=r;return H.createElement(R,Object.assign({},fe,{ref:a}))}return H.createElement(`input`,Object.assign({},fe,{ref:a}))}function E_(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i=``);var a=t.suffix;a===void 0&&(a=``);var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s=`thousand`),e===``||e===`-`)return e;var c=D_(t),l=c.thousandSeparator,u=c.decimalSeparator,d=n!==0&&e.indexOf(`.`)!==-1||n&&r,f=a_(e,o),p=f.beforeDecimal,m=f.afterDecimal,h=f.addNegation;return n!==void 0&&(m=s_(m,n,!!r)),l&&(p=r_(p,l,s)),i&&(p=i+p),a&&(m+=a),h&&(p=`-`+p),e=p+(d&&u||``)+m,e}function D_(e){var t=e.decimalSeparator;t===void 0&&(t=`.`);var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=`,`),r||=[t,`.`],{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function O_(e,t){e===void 0&&(e=``);var n=RegExp(`(-)`),r=RegExp(`(-)(.)*(-)`),i=n.test(e),a=r.test(e);return e=e.replace(/-/g,``),i&&!a&&t&&(e=`-`+e),e}function k_(e,t){return RegExp(`(^-)|[0-9]|`+t_(e),t?`g`:void 0)}function A_(e,t,n){return e===``?!0:!t?.match(/\d/)&&!n?.match(/\d/)&&typeof e==`string`&&!isNaN(Number(e))}function j_(e,t,n){var r;t===void 0&&(t=__(e));var i=n.allowNegative,a=n.prefix;a===void 0&&(a=``);var o=n.suffix;o===void 0&&(o=``);var s=n.decimalScale,c=t.from,l=t.to,u=l.start,d=l.end,f=D_(n),p=f.allowedDecimalSeparators,m=f.decimalSeparator,h=e[d]===m;if(Zg(e)&&(e===a||e===o)&&t.lastValue===``)return e;if(d-u===1&&p.indexOf(e[u])!==-1){var g=s===0?``:m;e=e.substring(0,u)+g+e.substring(u+1,e.length)}var _=function(e,t,n){var r=!1,i=!1;a.startsWith(`-`)?r=!1:e.startsWith(`--`)?(r=!1,i=!0):o.startsWith(`-`)&&e.length===o.length?r=!1:e[0]===`-`&&(r=!0);var s=+!!r;return i&&(s=2),s&&(e=e.substring(s),t-=s,n-=s),{value:e,start:t,end:n,hasNegation:r}},v=_(e,u,d),y=v.hasNegation;r=v,e=r.value,u=r.start,d=r.end;var b=_(t.lastValue,c.start,c.end),x=b.start,S=b.end,C=b.value,w=e.substring(u,d);e.length&&C.length&&(x>C.length-o.length||S<a.length)&&!(w&&o.startsWith(w))&&(e=C);var T=0;e.startsWith(a)?T+=a.length:u<a.length&&(T=u),e=e.substring(T),d-=T;var E=e.length,D=e.length-o.length;e.endsWith(o)?E=D:(d>D||d>e.length-o.length)&&(E=d),e=e.substring(0,E),e=O_(y?`-`+e:e,i),e=(e.match(k_(m,!0))||[]).join(``);var O=e.indexOf(m);e=e.replace(new RegExp(t_(m),`g`),function(e,t){return t===O?`.`:``});var k=a_(e,i),A=k.beforeDecimal,j=k.afterDecimal,M=k.addNegation;return l.end-l.start<c.end-c.start&&A===``&&h&&!parseFloat(j)&&(e=M?`-`:``),e}function M_(e,t){var n=t.prefix;n===void 0&&(n=``);var r=t.suffix;r===void 0&&(r=``);var i=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]===`-`;i.fill(!1,0,Math.min(n.length+ +!!a,e.length));var o=e.length;return i.fill(!1,o-r.length+1,o+1),i}function N_(e){var t=D_(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i=``);var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw Error(`
306
+ `},Pd=0,Fd=[];function Id(e){var t=H.useRef([]),n=H.useRef([0,0]),r=H.useRef(),i=H.useState(Pd++)[0],a=H.useState(id)[0],o=H.useRef(e);H.useEffect(function(){o.current=e},[e]),H.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Nu([e.lockRef.current],(e.shards||[]).map(jd),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=H.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=kd(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Sd(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Sd(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Od(h,t,e,h===`h`?s:c,!0)},[]),c=H.useCallback(function(e){var n=e;if(!(!Fd.length||Fd[Fd.length-1]!==a)){var r=`deltaY`in n?Ad(n):kd(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Md(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(jd).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=H.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Ld(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=H.useCallback(function(e){n.current=kd(e),r.current=void 0},[]),d=H.useCallback(function(t){l(t.type,Ad(t),t.target,s(t,e.lockRef.current))},[]),f=H.useCallback(function(t){l(t.type,kd(t),t.target,s(t,e.lockRef.current))},[]);H.useEffect(function(){return Fd.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,_d),document.addEventListener(`touchmove`,c,_d),document.addEventListener(`touchstart`,u,_d),function(){Fd=Fd.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,_d),document.removeEventListener(`touchmove`,c,_d),document.removeEventListener(`touchstart`,u,_d)}},[]);var p=e.removeScrollBar,m=e.inert;return H.createElement(H.Fragment,null,m?H.createElement(a,{styles:Nd(i)}):null,p?H.createElement(md,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ld(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Rd=qu(Ju,Id),zd=H.forwardRef(function(e,t){return H.createElement(Xu,ju({},e,{ref:t,sideCar:Rd}))});zd.classNames=Xu.classNames;function Bd({keepMounted:e,opened:t,onClose:n,id:r,transitionProps:i,onExitTransitionEnd:a,onEnterTransitionEnd:o,trapFocus:s,closeOnEscape:c,returnFocus:l,closeOnClickOutside:u,withinPortal:d,portalProps:f,lockScroll:p,children:m,zIndex:h,shadow:g,padding:_,__vars:v,unstyled:y,removeScrollProps:b,...x}){let{_id:S,titleMounted:C,bodyMounted:w,shouldLockScroll:T,setTitleMounted:E,setBodyMounted:D}=Au({id:r,transitionProps:i,opened:t,trapFocus:s,closeOnEscape:c,onClose:n,returnFocus:l}),{key:O,...k}=b||{};return(0,U.jsx)(Ml,{...f,withinPortal:d,children:(0,U.jsx)(Du,{value:{opened:t,onClose:n,closeOnClickOutside:u,onExitTransitionEnd:a,onEnterTransitionEnd:o,transitionProps:{...i,keepMounted:e},getTitleId:()=>`${S}-title`,getBodyId:()=>`${S}-body`,titleMounted:C,bodyMounted:w,setTitleMounted:E,setBodyMounted:D,trapFocus:s,closeOnEscape:c,zIndex:h,unstyled:y},children:(0,U.jsx)(zd,{enabled:T&&p,...k,children:(0,U.jsx)(q,{...x,id:S,__vars:{...v,"--mb-z-index":(h||nt(`modal`)).toString(),"--mb-shadow":ut(g),"--mb-padding":ot(_)},children:m})},O)})})}Bd.displayName=`@mantine/core/ModalBase`;function Vd(){let e=Ou();return(0,H.useEffect)(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var Hd={title:`m_615af6c9`,header:`m_b5489c3c`,inner:`m_60c222c7`,content:`m_fd1ab0aa`,close:`m_606cb269`,body:`m_5df29311`};function Ud({className:e,...t}){let n=Vd(),r=Ou();return(0,U.jsx)(q,{id:n,className:Tn({[Hd.body]:!r.unstyled},e),...t})}Ud.displayName=`@mantine/core/ModalBaseBody`;function Wd({className:e,onClick:t,...n}){let r=Ou();return(0,U.jsx)(xu,{...n,onClick:e=>{r.onClose(),t?.(e)},className:Tn({[Hd.close]:!r.unstyled},e),unstyled:r.unstyled})}Wd.displayName=`@mantine/core/ModalBaseCloseButton`;function Gd({transitionProps:e,className:t,innerProps:n,onKeyDown:r,style:i,ref:a,...o}){let s=Ou();return(0,U.jsx)(Rl,{mounted:s.opened,transition:`pop`,...s.transitionProps,onExited:()=>{s.onExitTransitionEnd?.(),s.transitionProps?.onExited?.()},onEntered:()=>{s.onEnterTransitionEnd?.(),s.transitionProps?.onEntered?.()},...e,children:e=>(0,U.jsx)(`div`,{...n,className:Tn({[Hd.inner]:!s.unstyled},n.className),children:(0,U.jsx)(Ul,{active:s.opened&&s.trapFocus,innerRef:a,children:(0,U.jsx)(gl,{...o,component:`section`,role:`dialog`,tabIndex:-1,"aria-modal":!0,"aria-describedby":s.bodyMounted?s.getBodyId():void 0,"aria-labelledby":s.titleMounted?s.getTitleId():void 0,style:[i,e],className:Tn({[Hd.content]:!s.unstyled},t),unstyled:s.unstyled,children:o.children})})})})}Gd.displayName=`@mantine/core/ModalBaseContent`;function Kd({className:e,...t}){let n=Ou();return(0,U.jsx)(q,{component:`header`,className:Tn({[Hd.header]:!n.unstyled},e),...t})}Kd.displayName=`@mantine/core/ModalBaseHeader`;var qd={duration:200,timingFunction:`ease`,transition:`fade`};function Jd(e){let t=Ou();return{...qd,...t.transitionProps,...e}}function Yd({onClick:e,transitionProps:t,style:n,visible:r,...i}){let a=Ou(),o=Jd(t);return(0,U.jsx)(Rl,{mounted:r===void 0?a.opened:r,...o,transition:`fade`,children:t=>(0,U.jsx)(Dl,{fixed:!0,style:[n,t],zIndex:a.zIndex,unstyled:a.unstyled,onClick:t=>{e?.(t),a.closeOnClickOutside&&a.onClose()},...i})})}Yd.displayName=`@mantine/core/ModalBaseOverlay`;function Xd(){let e=Ou();return(0,H.useEffect)(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}function Zd({className:e,...t}){let n=Xd(),r=Ou();return(0,U.jsx)(q,{component:`h2`,className:Tn({[Hd.title]:!r.unstyled},e),id:n,...t})}Zd.displayName=`@mantine/core/ModalBaseTitle`;function Qd({children:e}){return(0,U.jsx)(U.Fragment,{children:e})}var $d=(0,H.createContext)({size:`sm`}),ef=K(e=>{let t=W(`InputClearButton`,null,e),{size:n,variant:r,vars:i,classNames:a,styles:o,...s}=t,c=(0,H.use)($d),{resolvedClassNames:l,resolvedStyles:u}=Ur({classNames:a,styles:o,props:t});return(0,U.jsx)(xu,{variant:r||`transparent`,size:n||c?.size||`sm`,classNames:l,styles:u,__staticSelector:`InputClearButton`,style:{pointerEvents:`all`,background:`var(--input-bg)`,...s.style},...s})});ef.displayName=`@mantine/core/InputClearButton`;var tf={xs:7,sm:8,md:10,lg:12,xl:15};function nf({__clearable:e,__clearSection:t,rightSection:n,__defaultRightSection:r,size:i=`sm`,__clearSectionMode:a=`both`}){let o=e&&t;return a===`rightSection`?n===null?null:n||r:a===`clear`?n===null?null:o||r:o&&(n||r)?(0,U.jsxs)(`div`,{"data-combined-clear-section":!0,style:{display:`flex`,gap:2,alignItems:`center`,paddingInlineEnd:tf[i]},children:[o,n||r]}):n===null?null:n||o||r}var rf=(0,H.createContext)({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),af={wrapper:`m_6c018570`,input:`m_8fb7ebe7`,section:`m_82577fc2`,placeholder:`m_88bacfd0`,root:`m_46b77525`,label:`m_8fdc1311`,required:`m_78a94662`,error:`m_8f816625`,description:`m_fe47ce59`},of=Cn((e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${ct(t)} - ${V(2)})`}})),sf=K(e=>{let t=W(`InputDescription`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,__inheritStyles:l=!0,attributes:u,...d}=W(`InputDescription`,null,t),f=(0,H.use)(rf),p=G({name:[`InputWrapper`,c],props:t,classes:af,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,rootSelector:`description`,vars:s,varsResolver:of});return(0,U.jsx)(q,{component:`p`,...(l&&f?.getStyles||p)(`description`,f?.getStyles?{className:r,style:i}:void 0),...d})});sf.classes=af,sf.varsResolver=of,sf.displayName=`@mantine/core/InputDescription`;var cf=Cn((e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${ct(t)} - ${V(2)})`}})),lf=K(e=>{let t=W(`InputError`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,__staticSelector:l,__inheritStyles:u=!0,...d}=t,f=G({name:[`InputWrapper`,l],props:t,classes:af,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`error`,vars:s,varsResolver:cf}),p=(0,H.use)(rf);return(0,U.jsx)(q,{component:`p`,...(u&&p?.getStyles||f)(`error`,p?.getStyles?{className:r,style:i}:void 0),...d})});lf.classes=af,lf.varsResolver=cf,lf.displayName=`@mantine/core/InputError`;var uf={labelElement:`label`},df=Cn((e,{size:t})=>({label:{"--input-label-size":ct(t),"--input-asterisk-color":void 0}})),ff=K(e=>{let t=W(`InputLabel`,uf,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,labelElement:c,required:l,htmlFor:u,onMouseDown:d,children:f,__staticSelector:p,mod:m,attributes:h,...g}=t,_=G({name:[`InputWrapper`,p],props:t,classes:af,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,rootSelector:`label`,vars:s,varsResolver:df}),v=(0,H.use)(rf),y=v?.getStyles||_;return(0,U.jsxs)(q,{...y(`label`,v?.getStyles?{className:r,style:i}:void 0),component:c,htmlFor:c===`label`?u:void 0,mod:[{required:l},m],onMouseDown:e=>{d?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},...g,children:[f,l&&(0,U.jsx)(`span`,{...y(`required`),"aria-hidden":!0,children:` *`})]})});ff.classes=af,ff.varsResolver=df,ff.displayName=`@mantine/core/InputLabel`;var pf=K(e=>{let t=W(`InputPlaceholder`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,error:l,mod:u,attributes:d,...f}=t;return(0,U.jsx)(q,{...G({name:[`InputPlaceholder`,c],props:t,classes:af,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,rootSelector:`placeholder`})(`placeholder`),mod:[{error:!!l},u],component:`span`,...f})});pf.classes=af,pf.displayName=`@mantine/core/InputPlaceholder`;function mf(e,{hasDescription:t,hasError:n}){let r=e.findIndex(e=>e===`input`),i=e.slice(0,r),a=e.slice(r+1),o=t&&i.includes(`description`)||n&&i.includes(`error`);return{offsetBottom:t&&a.includes(`description`)||n&&a.includes(`error`),offsetTop:o}}var hf={labelElement:`label`,inputContainer:e=>e,inputWrapperOrder:[`label`,`description`,`input`,`error`]},gf=Cn((e,{size:t})=>({label:{"--input-label-size":ct(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${ct(t)} - ${V(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${ct(t)} - ${V(2)})`}})),_f=K(e=>{let t=W(`InputWrapper`,hf,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,variant:l,__staticSelector:u,inputContainer:d,inputWrapperOrder:f,label:p,error:m,description:h,labelProps:g,descriptionProps:_,errorProps:v,labelElement:y,children:b,withAsterisk:x,id:S,required:C,__stylesApiProps:w,mod:T,attributes:E,...D}=t,O=G({name:[`InputWrapper`,u],props:w||t,classes:af,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:E,vars:s,varsResolver:gf}),k={size:c,variant:l,__staticSelector:u},A=Rt(S),j=typeof x==`boolean`?x:C,M=v?.id||`${A}-error`,N=_?.id||`${A}-description`,P=A,ee=!!m&&typeof m!=`boolean`,F=!!h,I=`${ee?M:``} ${F?N:``}`,te=I.trim().length>0?I.trim():void 0,ne=g?.id||`${A}-label`,re=p&&(0,U.jsx)(ff,{labelElement:y,id:ne,htmlFor:P,required:j,...k,...g,children:p},`label`),ie=F&&(0,U.jsx)(sf,{..._,...k,size:_?.size||k.size,id:_?.id||N,children:h},`description`),L=(0,U.jsx)(H.Fragment,{children:d(b)},`input`),ae=ee&&(0,H.createElement)(lf,{...v,...k,size:v?.size||k.size,key:`error`,id:v?.id||M},m),oe=f.map(e=>{switch(e){case`label`:return re;case`input`:return L;case`description`:return ie;case`error`:return ae;default:return null}});return(0,U.jsx)(rf,{value:{getStyles:O,describedBy:te,inputId:P,labelId:ne,...mf(f,{hasDescription:F,hasError:ee})},children:(0,U.jsx)(q,{variant:l,size:c,mod:[{error:!!m},T],id:y===`label`?void 0:S,...O(`root`),...D,children:oe})})});_f.classes=af,_f.varsResolver=gf,_f.displayName=`@mantine/core/InputWrapper`;var vf={variant:`default`,leftSectionPointerEvents:`none`,rightSectionPointerEvents:`none`,withAria:!0,withErrorStyles:!0,size:`sm`,loading:!1,loadingPosition:`right`},yf=Cn((e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-margin-bottom":n.offsetBottom?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-height":at(t.size,`input-height`),"--input-fz":ct(t.size),"--input-radius":t.radius===void 0?void 0:st(t.radius),"--input-left-section-width":t.leftSectionWidth===void 0?void 0:V(t.leftSectionWidth),"--input-right-section-width":t.rightSectionWidth===void 0?void 0:V(t.rightSectionWidth),"--input-padding-y":t.multiline?at(t.size,`input-padding-y`):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}})),bf=Ri(e=>{let t=W(`Input`,vf,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,required:s,__staticSelector:c,__stylesApiProps:l,size:u,wrapperProps:d,error:f,disabled:p,leftSection:m,leftSectionProps:h,leftSectionWidth:g,rightSection:_,rightSectionProps:v,rightSectionWidth:y,rightSectionPointerEvents:b,leftSectionPointerEvents:x,variant:S,vars:C,pointer:w,multiline:T,radius:E,id:D,withAria:O,withErrorStyles:k,mod:A,inputSize:j,attributes:M,__clearSection:N,__clearable:P,__clearSectionMode:ee,__defaultRightSection:F,loading:I,loadingPosition:te,rootRef:ne,...re}=t,{styleProps:ie,rest:L}=li(re),ae=(0,H.use)(rf),oe={offsetBottom:ae?.offsetBottom,offsetTop:ae?.offsetTop},se=G({name:[`Input`,c],props:l||t,classes:af,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:M,stylesCtx:oe,rootSelector:`wrapper`,vars:C,varsResolver:yf}),ce=O?{required:s,disabled:p,"aria-invalid":f?!0:void 0,"aria-describedby":ae?.describedBy,id:ae?.inputId||D}:{},le=I?(0,U.jsx)(cu,{size:te===`left`?`calc(var(--input-left-section-size) / 2)`:`calc(var(--input-right-section-size) / 2)`}):null,ue=I&&te===`left`?le:m,de=nf({__clearable:P,__clearSection:N,rightSection:I&&te===`right`?le:_,__defaultRightSection:F,size:u,__clearSectionMode:ee});return(0,U.jsx)($d,{value:{size:u||`sm`},children:(0,U.jsxs)(q,{ref:ne,...se(`wrapper`),...ie,...d,mod:[{error:!!f&&k,pointer:w,disabled:p,multiline:T,"data-with-right-section":!!de,"data-with-left-section":!!ue},A],variant:S,size:u,children:[ue&&(0,U.jsx)(`div`,{...h,"data-position":`left`,...se(`section`,{className:h?.className,style:h?.style}),children:ue}),(0,U.jsx)(q,{component:`input`,...L,...ce,required:s,mod:{disabled:p,error:!!f&&k},variant:S,__size:j,...se(`input`)}),de&&(0,U.jsx)(`div`,{...v,"data-position":`right`,...se(`section`,{className:v?.className,style:v?.style}),children:de})]})})});bf.classes=af,bf.varsResolver=yf,bf.Wrapper=_f,bf.Label=ff,bf.Error=lf,bf.Description=sf,bf.Placeholder=pf,bf.ClearButton=ef,bf.displayName=`@mantine/core/Input`;function xf(e,t,n){let r=W(e,t,n),{label:i,description:a,error:o,required:s,classNames:c,styles:l,className:u,unstyled:d,__staticSelector:f,__stylesApiProps:p,errorProps:m,labelProps:h,descriptionProps:g,wrapperProps:_,id:v,size:y,style:b,inputContainer:x,inputWrapperOrder:S,withAsterisk:C,variant:w,vars:T,mod:E,attributes:D,...O}=r,{styleProps:k,rest:A}=li(O),j={label:i,description:a,error:o,required:s,classNames:c,className:u,__staticSelector:f,__stylesApiProps:p||r,errorProps:m,labelProps:h,descriptionProps:g,unstyled:d,styles:l,size:y,style:b,inputContainer:x,inputWrapperOrder:S,withAsterisk:C,variant:w,id:v,mod:E,attributes:D,..._};return{...A,classNames:c,styles:l,unstyled:d,wrapperProps:{...j,...k},inputProps:{required:s,classNames:c,styles:l,unstyled:d,size:y,__staticSelector:f,__stylesApiProps:p||r,error:o,variant:w,id:v,attributes:D}}}var Sf={__staticSelector:`InputBase`,withAria:!0,size:`sm`},Cf=Ri(e=>{let{inputProps:t,wrapperProps:n,...r}=xf(`InputBase`,Sf,e);return(0,U.jsx)(bf.Wrapper,{...n,children:(0,U.jsx)(bf,{...t,...r})})});Cf.classes={...bf.classes,...bf.Wrapper.classes},Cf.displayName=`@mantine/core/InputBase`;var wf={gap:{type:`spacing`,property:`gap`},rowGap:{type:`spacing`,property:`rowGap`},columnGap:{type:`spacing`,property:`columnGap`},align:{type:`identity`,property:`alignItems`},justify:{type:`identity`,property:`justifyContent`},wrap:{type:`identity`,property:`flexWrap`},direction:{type:`identity`,property:`flexDirection`}},Tf={root:`m_8bffd616`},Ef=Ri(e=>{let t=W(`Flex`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,gap:c,rowGap:l,columnGap:u,align:d,justify:f,wrap:p,direction:m,attributes:h,...g}=t,_=G({name:`Flex`,classes:Tf,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s}),v=wr(),y=Mi(),b=ji({styleProps:{gap:c,rowGap:l,columnGap:u,align:d,justify:f,wrap:p,direction:m},theme:v,data:wf}),x=cr(),S=x&&b.hasResponsiveStyles?ci(b.styles,b.media):y;return(0,U.jsxs)(U.Fragment,{children:[b.hasResponsiveStyles&&(0,U.jsx)(oi,{selector:`.${S}`,styles:b.styles,media:b.media,deduplicate:x}),(0,U.jsx)(q,{..._(`root`,{className:S,style:Ge(b.inlineStyles)}),...g})]})});Ef.classes=Tf,Ef.displayName=`@mantine/core/Flex`;function Df(e,t){if(!t||!e)return!1;let n=t.parentNode;for(;n!=null;){if(n===e)return!0;n=n.parentNode}return!1}function Of({target:e,parent:t,ref:n,displayAfterTransitionEnd:r,onTransitionStart:i,onTransitionEnd:a}){let o=(0,H.useRef)(-1),s=(0,H.useRef)(e),[c,l]=(0,H.useState)(!1),[u,d]=(0,H.useState)(typeof r==`boolean`?r:!1),f=()=>{if(!e||!t||!n.current)return;let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=window.getComputedStyle(e),o=window.getComputedStyle(t),s=ca(a.borderTopWidth)+ca(o.borderTopWidth),c=ca(a.borderLeftWidth)+ca(o.borderLeftWidth),l={top:r.top-i.top-s,left:r.left-i.left-c,width:r.width,height:r.height};n.current.style.transform=`translateY(${l.top}px) translateX(${l.left}px)`,n.current.style.width=`${l.width}px`,n.current.style.height=`${l.height}px`},p=()=>{window.clearTimeout(o.current),n.current&&(n.current.style.transitionDuration=`0ms`),f(),o.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration=``)},30)},m=(0,H.useRef)(null),h=(0,H.useRef)(null);return(0,H.useEffect)(()=>{if(c&&s.current!==e&&i&&i(),s.current=e,f(),e)return m.current=new ResizeObserver(p),m.current.observe(e),t&&(h.current=new ResizeObserver(p),h.current.observe(t)),()=>{m.current?.disconnect(),h.current?.disconnect()}},[t,e]),(0,H.useEffect)(()=>{if(t){let e=e=>{Df(e.target,t)&&(p(),d(!1))};return t.addEventListener(`transitionend`,e),()=>{t.removeEventListener(`transitionend`,e)}}},[t]),(0,H.useEffect)(()=>{if(n.current&&a){let e=e=>{e.propertyName===`transform`&&a()};return n.current.addEventListener(`transitionend`,e),()=>{n.current?.removeEventListener(`transitionend`,e)}}},[a]),an(()=>{gn()!==`test`&&l(!0)},20,{autoInvoke:!0}),sn(e=>{e.forEach(e=>{e.type===`attributes`&&e.attributeName===`dir`&&p()})},{attributes:!0,attributeFilter:[`dir`]},()=>document.documentElement),{initialized:c,hidden:u}}var kf={root:`m_96b553a6`},Af=Cn((e,{transitionDuration:t},{shouldReduceMotion:n})=>({root:{"--transition-duration":e.respectReducedMotion&&n?`0ms`:typeof t==`number`?`${t}ms`:t||`150ms`}})),jf=K(e=>{let t=W(`FloatingIndicator`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,target:c,parent:l,transitionDuration:u,mod:d,displayAfterTransitionEnd:f,onTransitionStart:p,onTransitionEnd:m,attributes:h,ref:g,..._}=t,v=G({name:`FloatingIndicator`,classes:kf,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:Af,stylesCtx:{shouldReduceMotion:$t()}}),y=(0,H.useRef)(null),{initialized:b,hidden:x}=Of({target:c,parent:l,ref:y,displayAfterTransitionEnd:f,onTransitionStart:p,onTransitionEnd:m}),S=Jt(g,y);return!c||!l?null:(0,U.jsx)(q,{ref:S,mod:[{initialized:b,hidden:x},d],...v(`root`),..._})});jf.displayName=`@mantine/core/FloatingIndicator`,jf.classes=kf,jf.varsResolver=Af;var[Mf,Nf]=Je(`Accordion component was not found in the tree`);function Pf({style:e,size:t=16,...n}){return(0,U.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...e,width:V(t),height:V(t),display:`block`},...n,children:(0,U.jsx)(`path`,{d:`M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}Pf.displayName=`@mantine/core/AccordionChevron`;var[Ff,If]=Je(`Accordion.Item component was not found in the tree`),Lf={root:`m_9bdbb667`,panel:`m_df78851f`,content:`m_4ba554d4`,itemTitle:`m_8fa820a0`,control:`m_4ba585b8`,"control--default":`m_6939a5e9`,"control--contained":`m_4271d21b`,label:`m_df3ffa0f`,chevron:`m_3f35ae96`,icon:`m_9bd771fe`,item:`m_9bd7b098`,"item--default":`m_fe19b709`,"item--contained":`m_1f921b3b`,"item--filled":`m_2cdf939a`,"item--separated":`m_9f59b069`},Rf=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,chevron:o,icon:s,onClick:c,onKeyDown:l,children:u,disabled:d,mod:f,...p}=W(`AccordionControl`,null,e),{value:m}=If(),h=Nf(),g=h.isItemActive(m),_=typeof h.order==`number`,v=`h${h.order}`,y=(0,U.jsxs)(dl,{...h.getStyles(`control`,{className:n,classNames:t,style:r,styles:i,variant:h.variant}),unstyled:h.unstyled,mod:[`accordion-control`,{active:g,"chevron-position":h.chevronPosition,disabled:d},f],onClick:e=>{c?.(e),h.onChange(m)},type:`button`,disabled:d,"aria-expanded":g,"aria-controls":h.getRegionId(m),id:h.getControlId(m),onKeyDown:et({siblingSelector:`[data-accordion-control]`,parentSelector:`[data-accordion]`,activateOnFocus:!1,loop:h.loop,orientation:`vertical`,onKeyDown:l}),...p,children:[(0,U.jsx)(q,{component:`span`,mod:{rotate:!h.disableChevronRotation&&g,position:h.chevronPosition},...h.getStyles(`chevron`,{classNames:t,styles:i}),children:o||h.chevron}),(0,U.jsx)(`span`,{...h.getStyles(`label`,{classNames:t,styles:i}),children:u}),s&&(0,U.jsx)(q,{component:`span`,mod:{"chevron-position":h.chevronPosition},...h.getStyles(`icon`,{classNames:t,styles:i}),children:s})]});return _?(0,U.jsx)(v,{...h.getStyles(`itemTitle`,{classNames:t,styles:i}),children:y}):y});Rf.displayName=`@mantine/core/AccordionControl`,Rf.classes=Lf;var zf=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,value:o,mod:s,...c}=W(`AccordionItem`,null,e),l=Nf();return(0,U.jsx)(Ff,{value:{value:o},children:(0,U.jsx)(q,{mod:[{active:l.isItemActive(o)},s],...l.getStyles(`item`,{className:n,classNames:t,styles:i,style:r,variant:l.variant}),...c})})});zf.displayName=`@mantine/core/AccordionItem`,zf.classes=Lf;var Y=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,keepMounted:s,...c}=W(`AccordionPanel`,null,e),{value:l}=If(),u=Nf();return(0,U.jsx)(Ji,{...u.getStyles(`panel`,{className:n,classNames:t,style:r,styles:i}),expanded:u.isItemActive(l),transitionDuration:u.transitionDuration??200,role:`region`,id:u.getRegionId(l),"aria-labelledby":u.getControlId(l),keepMounted:s??u.keepMounted,...c,children:(0,U.jsx)(`div`,{...u.getStyles(`content`,{classNames:t,styles:i}),children:o})})});Y.displayName=`@mantine/core/AccordionPanel`,Y.classes=Lf;var Bf={multiple:!1,disableChevronRotation:!1,chevronPosition:`right`,variant:`default`,chevronSize:`auto`,chevronIconSize:16},Vf=Cn((e,{transitionDuration:t,chevronSize:n,radius:r})=>({root:{"--accordion-transition-duration":t===void 0?void 0:`${t}ms`,"--accordion-chevron-size":n===void 0?void 0:V(n),"--accordion-radius":r===void 0?void 0:st(r)}})),Hf=Li(e=>{let t=W(`Accordion`,Bf,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,multiple:l,value:u,defaultValue:d,onChange:f,id:p,loop:m,transitionDuration:h,disableChevronRotation:g,chevronPosition:_,chevronSize:v,order:y,chevron:b,variant:x,radius:S,chevronIconSize:C,attributes:w,keepMounted:T,...E}=t,D=Rt(p),[O,k]=Yt({value:u,defaultValue:d,finalValue:l?[]:null,onChange:f}),A=e=>Array.isArray(O)?O.includes(e):e===O,j=e=>{k(Array.isArray(O)?O.includes(e)?O.filter(t=>t!==e):[...O,e]:e===O?null:e)},M=G({name:`Accordion`,classes:Lf,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:w,vars:s,varsResolver:Vf});return(0,U.jsx)(Mf,{value:{isItemActive:A,onChange:j,getControlId:Ye(`${D}-control`,`Accordion.Item component was rendered with invalid value or without value`),getRegionId:Ye(`${D}-panel`,`Accordion.Item component was rendered with invalid value or without value`),chevron:b===null?null:b||(0,U.jsx)(Pf,{size:C}),transitionDuration:h,disableChevronRotation:g,chevronPosition:_,order:y,loop:m,getStyles:M,variant:x,unstyled:o,keepMounted:T},children:(0,U.jsx)(q,{...M(`root`),id:D,...E,variant:x,"data-accordion":!0,children:c})})});Hf.classes=Lf,Hf.varsResolver=Vf,Hf.displayName=`@mantine/core/Accordion`,Hf.Item=zf,Hf.Panel=Y,Hf.Control=Rf,Hf.Chevron=Pf;var Uf={root:`m_66836ed3`,wrapper:`m_a5d60502`,body:`m_667c2793`,title:`m_6a03f287`,label:`m_698f4f23`,icon:`m_667f2a6a`,message:`m_7fa78076`,closeButton:`m_87f54839`},Wf=Cn((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||`light`,autoContrast:i});return{root:{"--alert-radius":t===void 0?void 0:st(t),"--alert-bg":n||r?a.background:void 0,"--alert-color":a.color,"--alert-bd":n||r?a.border:void 0}}}),Gf=K(e=>{let t=W(`Alert`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,title:u,children:d,id:f,icon:p,withCloseButton:m,onClose:h,closeButtonLabel:g,variant:_,autoContrast:v,role:y,attributes:b,...x}=t,S=G({name:`Alert`,classes:Uf,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:b,vars:s,varsResolver:Wf}),C=Rt(f),w=u&&`${C}-title`||void 0,T=`${C}-body`;return(0,U.jsx)(q,{id:C,...S(`root`,{variant:_}),variant:_,...x,role:y||`alert`,"aria-describedby":d?T:void 0,"aria-labelledby":u?w:void 0,children:(0,U.jsxs)(`div`,{...S(`wrapper`),children:[p&&(0,U.jsx)(`div`,{...S(`icon`),children:p}),(0,U.jsxs)(`div`,{...S(`body`),children:[u&&(0,U.jsx)(`div`,{...S(`title`),"data-with-close-button":m||void 0,children:(0,U.jsx)(`span`,{id:w,...S(`label`),children:u})}),d&&(0,U.jsx)(`div`,{id:T,...S(`message`),"data-variant":_,children:d})]}),m&&(0,U.jsx)(xu,{...S(`closeButton`),onClick:h,variant:`transparent`,size:16,iconSize:16,"aria-label":g,unstyled:o})]})})});Gf.classes=Uf,Gf.varsResolver=Wf,Gf.displayName=`@mantine/core/Alert`;var Kf={root:`m_b6d8b162`};function qf(e){if(e===`start`)return`start`;if(e===`end`||e)return`end`}var Jf={inherit:!1},Yf=Cn((e,{variant:t,lineClamp:n,gradient:r,size:i})=>({root:{"--text-fz":ct(i),"--text-lh":lt(i),"--text-gradient":t===`gradient`?Gn(r,e):void 0,"--text-line-clamp":typeof n==`number`?n.toString():void 0}})),Xf=Ri(e=>{let t=W(`Text`,Jf,e),{lineClamp:n,truncate:r,inline:i,inherit:a,gradient:o,span:s,__staticSelector:c,vars:l,className:u,style:d,classNames:f,styles:p,unstyled:m,variant:h,mod:g,size:_,attributes:v,...y}=t;return(0,U.jsx)(q,{...G({name:[`Text`,c],props:t,classes:Kf,className:u,style:d,classNames:f,styles:p,unstyled:m,attributes:v,vars:l,varsResolver:Yf})(`root`,{focusable:!0}),component:s?`span`:`p`,variant:h,mod:[{"data-truncate":qf(r),"data-line-clamp":typeof n==`number`,"data-inline":i,"data-inherit":a},g],size:_,...y})});Xf.classes=Kf,Xf.varsResolver=Yf,Xf.displayName=`@mantine/core/Text`;var Zf={root:`m_849cf0da`},Qf={underline:`hover`},$f=Ri(e=>{let{underline:t,className:n,unstyled:r,mod:i,...a}=W(`Anchor`,Qf,e);return(0,U.jsx)(Xf,{component:`a`,className:Tn({[Zf.root]:!r},n),...a,mod:[{underline:t},i],__staticSelector:`Anchor`,unstyled:r})});$f.classes=Zf,$f.displayName=`@mantine/core/Anchor`;function ep(e){return typeof e==`string`?{value:e,label:e}:typeof e==`object`&&`value`in e&&!(`label`in e)?{value:e.value,label:`${e.value}`,disabled:e.disabled}:typeof e==`object`&&`group`in e?{group:e.group,items:e.items.map(e=>ep(e))}:typeof e==`number`||typeof e==`bigint`||typeof e==`boolean`?{value:e,label:`${e}`}:e}function tp(e){return e?e.map(e=>ep(e)):[]}function np(e){return e.reduce((e,t)=>`group`in t?{...e,...np(t.items)}:(e[`${t.value}`]=t,e),{})}var rp={dropdown:`m_88b62a41`,search:`m_985517d8`,options:`m_b2821a6e`,option:`m_92253aa5`,empty:`m_2530cd1d`,header:`m_858f94bd`,footer:`m_82b967cb`,group:`m_254f3e4f`,groupLabel:`m_2bb2e9e5`,chevron:`m_2943220b`,optionsDropdownOption:`m_390b5f4`,optionsDropdownCheckIcon:`m_8ee53fc2`,optionsDropdownCheckPlaceholder:`m_a530ee0a`},ip={error:null},ap=Cn((e,{size:t,color:n})=>({chevron:{"--combobox-chevron-size":at(t,`combobox-chevron-size`),"--combobox-chevron-color":n?Un(n,e):void 0}})),op=K(e=>{let t=W(`ComboboxChevron`,ip,e),{size:n,error:r,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:l,attributes:u,mod:d,...f}=t,p=G({name:`ComboboxChevron`,classes:rp,props:t,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:l,varsResolver:ap,attributes:u,rootSelector:`chevron`});return(0,U.jsx)(q,{component:`svg`,...f,...p(`chevron`),size:n,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,mod:[`combobox-chevron`,{error:r},d],children:(0,U.jsx)(`path`,{d:`M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})});op.classes=rp,op.varsResolver=ap,op.displayName=`@mantine/core/ComboboxChevron`;var[sp,cp]=Je(`Combobox component was not found in tree`);function lp({onMouseDown:e,onClick:t,onClear:n,...r}){return(0,U.jsx)(bf.ClearButton,{tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:t=>{t.preventDefault(),e?.(t)},onClick:e=>{n(),t?.(e)}})}lp.displayName=`@mantine/core/ComboboxClearButton`;var up=K(e=>{let{classNames:t,styles:n,className:r,style:i,hidden:a,...o}=W(`ComboboxDropdown`,null,e),s=cp();return(0,U.jsx)(eu.Dropdown,{...o,role:`presentation`,"data-hidden":a||void 0,...s.getStyles(`dropdown`,{className:r,style:i,classNames:t,styles:n})})});up.classes=rp,up.displayName=`@mantine/core/ComboboxDropdown`;var dp={refProp:`ref`},fp=K(e=>{let{children:t,refProp:n,ref:r}=W(`ComboboxDropdownTarget`,dp,e);if(cp(),!qe(t))throw Error(`Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);return(0,U.jsx)(eu.Target,{ref:r,refProp:n,children:t})});fp.displayName=`@mantine/core/ComboboxDropdownTarget`;var pp=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ComboboxEmpty`,null,e);return(0,U.jsx)(q,{...cp().getStyles(`empty`,{className:n,classNames:t,styles:i,style:r}),...o})});pp.classes=rp,pp.displayName=`@mantine/core/ComboboxEmpty`;function mp({onKeyDown:e,onClick:t,withKeyboardNavigation:n,withAriaAttributes:r,withExpandedAttribute:i,targetType:a,autoComplete:o}){let s=cp(),[c,l]=(0,H.useState)(null),u=t=>{if(e?.(t),!s.readOnly&&n){if(t.nativeEvent.isComposing)return;if(t.nativeEvent.code===`ArrowDown`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectNextOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`ArrowUp`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectPreviousOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`Enter`||t.nativeEvent.code===`NumpadEnter`){if(t.nativeEvent.keyCode===229)return;let e=s.store.getSelectedOptionIndex();s.store.dropdownOpened&&e!==-1?(t.preventDefault(),s.store.clickSelectedOption()):a===`button`&&(t.preventDefault(),s.store.openDropdown(`keyboard`))}t.key===`Escape`&&s.store.closeDropdown(`keyboard`),t.nativeEvent.code===`Space`&&a===`button`&&(t.preventDefault(),s.store.toggleDropdown(`keyboard`))}},d=r?{...i?{role:`combobox`}:{},"aria-haspopup":`listbox`,"aria-expanded":i?!!(s.store.listId&&s.store.dropdownOpened):void 0,"aria-controls":s.store.dropdownOpened&&s.store.listId?s.store.listId:void 0,"aria-activedescendant":s.store.dropdownOpened&&c||void 0,autoComplete:o,"data-expanded":s.store.dropdownOpened||void 0,"data-mantine-stop-propagation":s.store.dropdownOpened||void 0}:{},f=e=>{a===`button`&&e.currentTarget.focus(),t?.(e)};return{...d,onKeyDown:u,onClick:f}}var hp={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},gp=K(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=W(`ComboboxEventsTarget`,hp,e),u=Sn(t);if(!u)throw Error(`Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let d=cp();return(0,H.cloneElement)(u,{...mp({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s}),...l,[n]:Jt(c,d.store.targetRef,_n(u))})});gp.displayName=`@mantine/core/ComboboxEventsTarget`;var _p=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ComboboxFooter`,null,e);return(0,U.jsx)(q,{...cp().getStyles(`footer`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});_p.classes=rp,_p.displayName=`@mantine/core/ComboboxFooter`;var vp=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,label:s,id:c,...l}=W(`ComboboxGroup`,null,e),u=cp(),d=Rt(c);return(0,U.jsxs)(q,{role:`group`,"aria-labelledby":s?d:void 0,...u.getStyles(`group`,{className:n,classNames:t,style:r,styles:i}),...l,children:[s&&(0,U.jsx)(`div`,{id:d,...u.getStyles(`groupLabel`,{classNames:t,styles:i}),children:s}),o]})});vp.classes=rp,vp.displayName=`@mantine/core/ComboboxGroup`;var yp=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ComboboxHeader`,null,e);return(0,U.jsx)(q,{...cp().getStyles(`header`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});yp.classes=rp,yp.displayName=`@mantine/core/ComboboxHeader`;function bp({value:e,valuesDivider:t=`,`,...n}){return(0,U.jsx)(`input`,{type:`hidden`,value:Array.isArray(e)?e.join(t):e?`${e}`:``,...n})}bp.displayName=`@mantine/core/ComboboxHiddenInput`;var xp=K(e=>{let t=W(`ComboboxOption`,null,e),{classNames:n,className:r,style:i,styles:a,vars:o,onClick:s,id:c,active:l,onMouseDown:u,onMouseOver:d,disabled:f,selected:p,mod:m,...h}=t,g=cp(),_=(0,H.useId)(),v=c||_;return(0,U.jsx)(q,{...g.getStyles(`option`,{className:r,classNames:n,styles:a,style:i}),...h,id:v,mod:[`combobox-option`,{"combobox-active":l,"combobox-disabled":f,"combobox-selected":p},m],role:`option`,onClick:e=>{f?e.preventDefault():(g.onOptionSubmit?.(t.value,t),s?.(e))},onMouseDown:e=>{e.preventDefault(),u?.(e)},onMouseOver:e=>{g.resetSelectionOnOptionHover&&g.store.resetSelectedOption(),d?.(e)}})});xp.classes=rp,xp.displayName=`@mantine/core/ComboboxOption`;var Sp=K(e=>{let{classNames:t,className:n,style:r,styles:i,id:a,onMouseDown:o,labelledBy:s,...c}=W(`ComboboxOptions`,null,e),l=cp(),u=Rt(a);return(0,H.useEffect)(()=>{l.store.setListId(u)},[u]),(0,U.jsx)(q,{...l.getStyles(`options`,{className:n,style:r,classNames:t,styles:i}),...c,id:u,role:`listbox`,"aria-labelledby":s,onMouseDown:e=>{e.preventDefault(),o?.(e)}})});Sp.classes=rp,Sp.displayName=`@mantine/core/ComboboxOptions`;var Cp={withAriaAttributes:!0,withKeyboardNavigation:!0},wp=K(e=>{let{classNames:t,styles:n,unstyled:r,vars:i,withAriaAttributes:a,onKeyDown:o,onClick:s,withKeyboardNavigation:c,size:l,ref:u,...d}=W(`ComboboxSearch`,Cp,e),f=cp(),p=f.getStyles(`search`),m=mp({targetType:`input`,withAriaAttributes:a,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:o,onClick:s,autoComplete:`off`});return(0,U.jsx)(bf,{ref:Jt(u,f.store.searchRef),classNames:[{input:p.className},t],styles:[{input:p.style},n],size:l||f.size,...m,...d,__staticSelector:`Combobox`})});wp.classes=rp,wp.displayName=`@mantine/core/ComboboxSearch`;var Tp={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},Ep=K(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=W(`ComboboxTarget`,Tp,e),u=Sn(t);if(!u)throw Error(`Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let d=cp(),f=(0,H.cloneElement)(u,{...mp({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s}),...l});return(0,U.jsx)(eu.Target,{refProp:n,ref:Jt(c,d.store.targetRef),children:f})});Ep.displayName=`@mantine/core/ComboboxTarget`;function Dp(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].hasAttribute(`data-combobox-disabled`))return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].hasAttribute(`data-combobox-disabled`))return e}return e}function Op(e,t,n){for(let n=e+1;n<t.length;n+=1)if(!t[n].hasAttribute(`data-combobox-disabled`))return n;if(n){for(let e=0;e<t.length;e+=1)if(!t[e].hasAttribute(`data-combobox-disabled`))return e}return e}function kp(e){for(let t=0;t<e.length;t+=1)if(!e[t].hasAttribute(`data-combobox-disabled`))return t;return-1}function Ap({defaultOpened:e,opened:t,onOpenedChange:n,onDropdownClose:r,onDropdownOpen:i,loop:a=!0,scrollBehavior:o=`instant`}={}){let[s,c]=Yt({value:t,defaultValue:e,finalValue:!1,onChange:n}),l=(0,H.useRef)(null),u=(0,H.useRef)(-1),d=(0,H.useRef)(null),f=(0,H.useRef)(null),p=(0,H.useRef)(-1),m=(0,H.useRef)(-1),h=(0,H.useRef)(-1),g=(0,H.useCallback)((e=`unknown`)=>{s||(c(!0),i?.(e))},[c,i,s]),_=(0,H.useCallback)((e=`unknown`)=>{s&&(c(!1),r?.(e))},[c,r,s]),v=(0,H.useCallback)((e=`unknown`)=>{s?_(e):g(e)},[_,g,s]),y=(0,H.useCallback)(()=>{let e=xn(f.current),t=yn(`#${l.current} [data-combobox-selected]`,e);t?.removeAttribute(`data-combobox-selected`),t?.removeAttribute(`aria-selected`)},[]),b=(0,H.useCallback)(e=>{let t=xn(f.current),n=yn(`#${l.current}`,t),r=n?bn(`[data-combobox-option]`,n):null;if(!r)return null;let i=e>=r.length?0:e<0?r.length-1:e;return u.current=i,r?.[i]&&!r[i].hasAttribute(`data-combobox-disabled`)?(y(),r[i].setAttribute(`data-combobox-selected`,`true`),r[i].setAttribute(`aria-selected`,`true`),r[i].scrollIntoView({block:`nearest`,behavior:o}),r[i].id):null},[o,y]),x=(0,H.useCallback)(()=>{let e=xn(f.current),t=yn(`#${l.current} [data-combobox-active]`,e);return b(t?bn(`#${l.current} [data-combobox-option]`,e).findIndex(e=>e===t):0)},[b]),S=(0,H.useCallback)(()=>{let e=xn(f.current),t=bn(`#${l.current} [data-combobox-option]`,e);return b(Op(u.current,t,a))},[b,a]),C=(0,H.useCallback)(()=>{let e=xn(f.current),t=bn(`#${l.current} [data-combobox-option]`,e);return b(Dp(u.current,t,a))},[b,a]),w=(0,H.useCallback)(()=>{let e=xn(f.current);return b(kp(bn(`#${l.current} [data-combobox-option]`,e)))},[b]),T=(0,H.useCallback)((e=`selected`,t)=>{if(typeof e==`number`){u.current=e;let n=xn(f.current),r=bn(`#${l.current} [data-combobox-option]`,n);t?.scrollIntoView&&r[e]?.scrollIntoView({block:`nearest`,behavior:o});return}h.current=window.setTimeout(()=>{let n=xn(f.current),r=bn(`#${l.current} [data-combobox-option]`,n),i=r.findIndex(t=>t.hasAttribute(`data-combobox-${e}`));u.current=i,t?.scrollIntoView&&r[i]?.scrollIntoView({block:`nearest`,behavior:o})},0)},[]),E=(0,H.useCallback)(()=>{u.current=-1,y()},[y]),D=(0,H.useCallback)(()=>{let e=xn(f.current);(bn(`#${l.current} [data-combobox-option]`,e)?.[u.current])?.click()},[]),O=(0,H.useCallback)(e=>{l.current=e},[]),k=(0,H.useCallback)(()=>{p.current=window.setTimeout(()=>d.current?.focus(),0)},[]),A=(0,H.useCallback)(()=>{m.current=window.setTimeout(()=>f.current?.focus(),0)},[]),j=(0,H.useCallback)(()=>u.current,[]);return(0,H.useEffect)(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(m.current),window.clearTimeout(h.current)},[]),{dropdownOpened:s,openDropdown:g,closeDropdown:_,toggleDropdown:v,selectedOptionIndex:u.current,getSelectedOptionIndex:j,selectOption:b,selectFirstOption:w,selectActiveOption:x,selectNextOption:S,selectPreviousOption:C,resetSelectedOption:E,updateSelectedOptionIndex:T,listId:l.current,setListId:O,clickSelectedOption:D,searchRef:d,focusSearchInput:k,targetRef:f,focusTarget:A}}var jp={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:`target`,transitionProps:{transition:`fade`,duration:0},size:`sm`},Mp=Cn((e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":ct(t),"--combobox-option-padding":at(t,`combobox-option-padding`)},dropdown:{"--combobox-padding":n===void 0?void 0:V(n),"--combobox-option-fz":ct(t),"--combobox-option-padding":at(t,`combobox-option-padding`)}})),Np=e=>{let t=W(`Combobox`,jp,e),{classNames:n,styles:r,unstyled:i,children:a,store:o,vars:s,onOptionSubmit:c,onClose:l,size:u,dropdownPadding:d,resetSelectionOnOptionHover:f,__staticSelector:p,readOnly:m,attributes:h,...g}=t,_=Ap(),v=o||_,y=G({name:p||`Combobox`,classes:rp,props:t,classNames:n,styles:r,unstyled:i,attributes:h,vars:s,varsResolver:Mp}),b=()=>{l?.(),v.closeDropdown()};return(0,U.jsx)(sp,{value:{getStyles:y,store:v,onOptionSubmit:c,size:u,resetSelectionOnOptionHover:f,readOnly:m},children:(0,U.jsx)(eu,{opened:v.dropdownOpened,preventPositionChangeWhenVisible:!1,...g,onChange:e=>!e&&b(),withRoles:!1,unstyled:i,children:a})})};Np.extend=e=>e,Np.classes=rp,Np.varsResolver=Mp,Np.displayName=`@mantine/core/Combobox`,Np.Target=Ep,Np.Dropdown=up,Np.Options=Sp,Np.Option=xp,Np.Search=wp,Np.Empty=pp,Np.Chevron=op,Np.Footer=_p,Np.Header=yp,Np.EventsTarget=gp,Np.DropdownTarget=fp,Np.Group=vp,Np.ClearButton=lp,Np.HiddenInput=bp;function Pp({children:e,role:t}){let n=(0,H.use)(rf);return n?(0,U.jsx)(`div`,{role:t,"aria-labelledby":n.labelId,"aria-describedby":n.describedBy,children:e}):(0,U.jsx)(U.Fragment,{children:e})}var Fp=(0,H.createContext)(null),Ip={hiddenInputValuesSeparator:`,`},Lp=Li((e=>{let{value:t,defaultValue:n,onChange:r,size:i,wrapperProps:a,children:o,readOnly:s,name:c,hiddenInputValuesSeparator:l,hiddenInputProps:u,maxSelectedValues:d,disabled:f,...p}=W(`CheckboxGroup`,Ip,e),[m,h]=Yt({value:t,defaultValue:n,finalValue:[],onChange:r}),g=e=>{let t=typeof e==`string`?e:e.currentTarget.value;if(s)return;let n=m.includes(t);!n&&d&&m.length>=d||h(n?m.filter(e=>e!==t):[...m,t])},_=e=>{if(f)return!0;if(!d)return!1;let t=m.includes(e),n=m.length>=d;return!t&&n},v=m.join(l);return(0,U.jsx)(Fp,{value:{value:m,onChange:g,size:i,isDisabled:_},children:(0,U.jsxs)(bf.Wrapper,{size:i,...a,...p,labelElement:`div`,__staticSelector:`CheckboxGroup`,children:[(0,U.jsx)(Pp,{role:`group`,children:o}),(0,U.jsx)(`input`,{type:`hidden`,name:c,value:v,...u})]})})}));Lp.classes=bf.Wrapper.classes,Lp.displayName=`@mantine/core/CheckboxGroup`;var Rp={card:`m_26775b0a`},zp=(0,H.createContext)(null),Bp={withBorder:!0},Vp=Cn((e,{radius:t})=>({card:{"--card-radius":st(t)}})),Hp=K(e=>{let t=W(`CheckboxCard`,Bp,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,checked:c,mod:l,withBorder:u,value:d,onClick:f,defaultChecked:p,onChange:m,attributes:h,...g}=t,_=G({name:`CheckboxCard`,classes:Rp,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:Vp,rootSelector:`card`}),v=(0,H.use)(Fp),[y,b]=Yt({value:typeof c==`boolean`?c:v?v.value.includes(d||``):void 0,defaultValue:p,finalValue:!1,onChange:m});return(0,U.jsx)(zp,{value:{checked:y},children:(0,U.jsx)(dl,{mod:[{"with-border":u,checked:y},l],..._(`card`),...g,role:`checkbox`,"aria-checked":y,onClick:e=>{f?.(e),v?.onChange(d||``),b(!y)}})})});Hp.displayName=`@mantine/core/CheckboxCard`,Hp.classes=Rp,Hp.varsResolver=Vp;function Up({size:e,style:t,...n}){return(0,U.jsx)(`svg`,{viewBox:`0 0 10 7`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:e===void 0?t:{width:V(e),height:V(e),...t},"aria-hidden":!0,...n,children:(0,U.jsx)(`path`,{d:`M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}function Wp({indeterminate:e,...t}){return e?(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 32 6`,"aria-hidden":!0,...t,children:(0,U.jsx)(`rect`,{width:`32`,height:`6`,fill:`currentColor`,rx:`3`})}):(0,U.jsx)(Up,{...t})}var Gp={indicator:`m_5e5256ee`,icon:`m_1b1c543a`,"indicator--outline":`m_76e20374`},Kp={icon:Wp,variant:`filled`,radius:`sm`},qp=Cn((e,{radius:t,color:n,size:r,iconColor:i,variant:a,autoContrast:o})=>{let s=Hn({color:n||e.primaryColor,theme:e}),c=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{indicator:{"--checkbox-size":at(r,`checkbox-size`),"--checkbox-radius":t===void 0?void 0:st(t),"--checkbox-color":a===`outline`?c:Un(n,e),"--checkbox-icon-color":i?Un(i,e):Zn(o,e)?Yn({color:n,theme:e,autoContrast:o}):void 0}}}),Jp=K(e=>{let t=W(`CheckboxIndicator`,Kp,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,icon:c,indeterminate:l,radius:u,color:d,iconColor:f,autoContrast:p,checked:m,mod:h,variant:g,disabled:_,attributes:v,...y}=t,b=G({name:`CheckboxIndicator`,classes:Gp,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:qp,rootSelector:`indicator`}),x=(0,H.use)(zp),S=typeof m==`boolean`||typeof l==`boolean`?m||l:x?.checked||!1;return(0,U.jsx)(q,{...b(`indicator`,{variant:g}),variant:g,mod:[{checked:S,disabled:_},h],...y,children:(0,U.jsx)(c,{indeterminate:l,...b(`icon`)})})});Jp.displayName=`@mantine/core/CheckboxIndicator`,Jp.classes=Gp,Jp.varsResolver=qp;var Yp={root:`m_5f75b09e`,body:`m_5f6e695e`,labelWrapper:`m_d3ea56bb`,label:`m_8ee546b8`,description:`m_328f68c0`,error:`m_8e8a99cc`},Xp=Yp;function Zp({__staticSelector:e,__stylesApiProps:t,className:n,classNames:r,styles:i,unstyled:a,children:o,label:s,description:c,id:l,disabled:u,error:d,size:f,labelPosition:p=`left`,bodyElement:m=`div`,labelElement:h=`label`,variant:g,style:_,vars:v,mod:y,attributes:b,...x}){let S=G({name:e,props:t,className:n,style:_,classes:Yp,classNames:r,styles:i,unstyled:a,attributes:b});return(0,U.jsx)(q,{...S(`root`),__vars:{"--label-fz":ct(f),"--label-lh":at(f,`label-lh`)},mod:[{"label-position":p},y],variant:g,size:f,...x,children:(0,U.jsxs)(q,{component:m,htmlFor:m===`label`?l:void 0,...S(`body`),children:[o,(0,U.jsxs)(`div`,{...S(`labelWrapper`),"data-disabled":u||void 0,children:[s&&(0,U.jsx)(q,{component:h,htmlFor:h===`label`?l:void 0,...S(`label`),"data-disabled":u||void 0,children:s}),c&&(0,U.jsx)(bf.Description,{size:f,__inheritStyles:!1,...S(`description`),children:c}),d&&typeof d!=`boolean`&&(0,U.jsx)(bf.Error,{size:f,__inheritStyles:!1,...S(`error`),children:d})]})]})})}Zp.displayName=`@mantine/core/InlineInput`;var Qp={root:`m_bf2d988c`,inner:`m_26062bec`,input:`m_26063560`,icon:`m_bf295423`,"input--outline":`m_215c4542`},$p={labelPosition:`right`,icon:Wp,withErrorStyles:!0,variant:`filled`,radius:`sm`},em=Cn((e,{radius:t,color:n,size:r,iconColor:i,variant:a,autoContrast:o})=>{let s=Hn({color:n||e.primaryColor,theme:e}),c=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{root:{"--checkbox-size":at(r,`checkbox-size`),"--checkbox-radius":t===void 0?void 0:st(t),"--checkbox-color":a===`outline`?c:Un(n,e),"--checkbox-icon-color":i?Un(i,e):Zn(o,e)?Yn({color:n,theme:e,autoContrast:o}):void 0}}}),tm=K(e=>{let t=W(`Checkbox`,$p,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,label:l,id:u,size:d,radius:f,wrapperProps:p,checked:m,labelPosition:h,description:g,error:_,disabled:v,variant:y,indeterminate:b,icon:x,rootRef:S,iconColor:C,onChange:w,autoContrast:T,mod:E,attributes:D,readOnly:O,onClick:k,withErrorStyles:A,ref:j,...M}=t,N=(0,H.useRef)(null),P=(0,H.use)(Fp),ee=d||P?.size,F=G({name:`Checkbox`,props:t,classes:Qp,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:D,vars:s,varsResolver:em}),{styleProps:I,rest:te}=li(M),ne=Rt(u),re={checked:P?.value.includes(te.value)??m,onChange:e=>{P?.onChange(e),w?.(e)}},ie=P?.isDisabled?.(te.value)??!1,L=v||ie;return(0,H.useEffect)(()=>{N.current&&(N.current.indeterminate=b||!1,b?N.current.setAttribute(`data-indeterminate`,`true`):N.current.removeAttribute(`data-indeterminate`))},[b]),(0,U.jsx)(Zp,{...F(`root`),__staticSelector:`Checkbox`,__stylesApiProps:t,id:ne,size:ee,labelPosition:h,label:l,description:g,error:_,disabled:L,classNames:n,styles:a,unstyled:o,"data-checked":re.checked||m||void 0,variant:y,ref:S,mod:E,attributes:D,inert:te.inert,...I,...p,children:(0,U.jsxs)(q,{...F(`inner`),mod:{"data-label-position":h},children:[(0,U.jsx)(q,{component:`input`,id:ne,ref:Jt(N,j),mod:{error:!!_},...F(`input`,{focusable:!0,variant:y}),...te,...re,disabled:L,inert:te.inert,type:`checkbox`,onClick:e=>{O&&e.preventDefault(),k?.(e)}}),(0,U.jsx)(x,{indeterminate:b,...F(`icon`)})]})})});tm.classes={...Qp,...Xp},tm.varsResolver=em,tm.displayName=`@mantine/core/Checkbox`,tm.Group=Lp,tm.Indicator=Jp,tm.Card=Hp;function nm(e){return`group`in e}function rm({options:e,search:t,limit:n}){let r=t.trim().toLowerCase(),i=[];for(let a=0;a<e.length;a+=1){let o=e[a];if(i.length===n)return i;nm(o)&&i.push({group:o.group,items:rm({options:o.items,search:t,limit:n-i.length})}),nm(o)||o.label.toLowerCase().includes(r)&&i.push(o)}return i}function im(e){if(e.length===0)return!0;for(let t of e)if(!(`group`in t)||t.items.length>0)return!1;return!0}function am(e,t=new Set){if(Array.isArray(e))for(let n of e)if(nm(n))am(n.items,t);else{if(n.value===void 0)throw Error(`[@mantine/core] Each option must have value property`);if(t.has(n.value))throw Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);t.add(n.value)}}function om(e,t){return Array.isArray(e)?e.includes(t):e===t}function sm({data:e,withCheckIcon:t,withAlignedLabels:n,value:r,checkIconPosition:i,unstyled:a,renderOption:o}){if(!nm(e)){let s=om(r,e.value),c=t&&(s?(0,U.jsx)(Up,{className:rp.optionsDropdownCheckIcon}):n?(0,U.jsx)(`div`,{className:rp.optionsDropdownCheckPlaceholder}):null),l=(0,U.jsxs)(U.Fragment,{children:[i===`left`&&c,(0,U.jsx)(`span`,{children:e.label}),i===`right`&&c]});return(0,U.jsx)(Np.Option,{value:e.value,disabled:e.disabled,className:Tn({[rp.optionsDropdownOption]:!a}),"data-reverse":i===`right`||void 0,"data-checked":s||void 0,"aria-selected":s,active:s,children:typeof o==`function`?o({option:e,checked:s}):l})}let s=e.items.map(e=>(0,U.jsx)(sm,{data:e,value:r,unstyled:a,withCheckIcon:t,withAlignedLabels:n,checkIconPosition:i,renderOption:o},`${e.value}`));return(0,U.jsx)(Np.Group,{label:e.group,children:s})}function cm({data:e,hidden:t,hiddenWhenEmpty:n,filter:r,search:i,limit:a,maxDropdownHeight:o,withScrollArea:s=!0,filterOptions:c=!0,withCheckIcon:l=!1,withAlignedLabels:u=!1,value:d,checkIconPosition:f,nothingFoundMessage:p,unstyled:m,labelId:h,renderOption:g,scrollAreaProps:_,"aria-label":v}){am(e);let y=typeof i==`string`?(r||rm)({options:e,search:c?i:``,limit:a??1/0}):e,b=im(y),x=y.map(e=>(0,U.jsx)(sm,{data:e,withCheckIcon:l,withAlignedLabels:u,value:d,checkIconPosition:f,unstyled:m,renderOption:g},nm(e)?e.group:`${e.value}`));return(0,U.jsx)(Np.Dropdown,{hidden:t||n&&b,"data-composed":!0,children:(0,U.jsxs)(Np.Options,{labelledBy:h,"aria-label":v,children:[s?(0,U.jsx)(sl.Autosize,{mah:o??220,type:`scroll`,scrollbarSize:`var(--combobox-padding)`,offsetScrollbars:`y`,..._,children:x}):x,b&&p&&(0,U.jsx)(Np.Empty,{children:p})]})})}var lm={group:`m_11def92b`,root:`m_f85678b6`,image:`m_11f8ac07`,placeholder:`m_104cd71f`},um=(0,H.createContext)({withinGroup:!1}),dm=Cn((e,{spacing:t})=>({group:{"--ag-spacing":ot(t)}})),fm=K(e=>{let t=W(`AvatarGroup`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,spacing:c,attributes:l,...u}=t;return(0,U.jsx)(um,{value:{withinGroup:!0},children:(0,U.jsx)(q,{...G({name:`AvatarGroup`,classes:lm,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:l,vars:s,varsResolver:dm,rootSelector:`group`})(`group`),...u})})});fm.classes=lm,fm.varsResolver=dm,fm.displayName=`@mantine/core/AvatarGroup`;function pm(e){return(0,U.jsx)(`svg`,{...e,"data-avatar-placeholder-icon":!0,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,U.jsx)(`path`,{d:`M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}function mm(e){let t=0;for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);t=(t<<5)-t+r,t|=0}return t}var hm=[`blue`,`cyan`,`grape`,`green`,`indigo`,`lime`,`orange`,`pink`,`red`,`teal`,`violet`];function gm(e,t=hm){let n=mm(e);return t[Math.abs(n)%t.length]}function _m(e,t=2){let n=e.split(` `);return n.length===1?e.slice(0,t).toUpperCase():n.map(e=>e[0]).slice(0,t).join(``).toUpperCase()}var vm=Cn((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o,name:s,allowedInitialsColors:c})=>{let l=a===`initials`&&typeof s==`string`?gm(s,c):a,u=e.variantColorResolver({color:l||`gray`,theme:e,gradient:i,variant:r||`light`,autoContrast:o});return{root:{"--avatar-size":at(t,`avatar-size`),"--avatar-radius":n===void 0?void 0:st(n),"--avatar-bg":l||r?u.background:void 0,"--avatar-color":l||r?u.color:void 0,"--avatar-bd":l||r?u.border:void 0}}}),ym=Ri(e=>{let t=W(`Avatar`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,src:c,alt:l,radius:u,color:d,gradient:f,imageProps:p,children:m,autoContrast:h,mod:g,name:_,allowedInitialsColors:v,attributes:y,...b}=t,x=(0,H.use)(um),[S,C]=(0,H.useState)(!c),w=G({name:`Avatar`,props:t,classes:lm,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:y,vars:s,varsResolver:vm});return(0,H.useEffect)(()=>C(!c),[c]),(0,U.jsx)(q,{...w(`root`),mod:[{"within-group":x.withinGroup},g],...b,children:S||!c?(0,U.jsx)(`span`,{...w(`placeholder`),title:l,children:m||typeof _==`string`&&_m(_)||(0,U.jsx)(pm,{})}):(0,U.jsx)(`img`,{...p,...w(`image`),src:c,alt:l,onError:e=>{C(!0),p?.onError?.(e)}})})});ym.classes=lm,ym.varsResolver=vm,ym.displayName=`@mantine/core/Avatar`,ym.Group=fm;var bm={root:`m_347db0ec`,"root--dot":`m_fbd81e3d`,label:`m_5add502a`,section:`m_91fdda9b`},xm=Cn((e,{radius:t,color:n,gradient:r,variant:i,size:a,autoContrast:o,circle:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:o});return{root:{"--badge-height":at(a,`badge-height`),"--badge-padding-x":at(a,`badge-padding-x`),"--badge-fz":at(a,`badge-fz`),"--badge-radius":s||t===void 0?void 0:st(t),"--badge-bg":n||i?c.background:void 0,"--badge-color":n||i?c.color:void 0,"--badge-bd":n||i?c.border:void 0,"--badge-dot-color":i===`dot`?Un(n,e):void 0}}}),Sm=Ri(e=>{let t=W(`Badge`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,gradient:u,leftSection:d,rightSection:f,children:p,variant:m,fullWidth:h,autoContrast:g,circle:_,mod:v,attributes:y,...b}=t,x=G({name:`Badge`,props:t,classes:bm,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:y,vars:s,varsResolver:xm});return(0,U.jsxs)(q,{variant:m,mod:[{block:h,circle:_,"with-right-section":!!f,"with-left-section":!!d},v],...x(`root`,{variant:m}),...b,children:[d&&(0,U.jsx)(`span`,{...x(`section`),"data-position":`left`,children:d}),(0,U.jsx)(`span`,{...x(`label`),children:p}),f&&(0,U.jsx)(`span`,{...x(`section`),"data-position":`right`,children:f})]})});Sm.classes=bm,Sm.varsResolver=xm,Sm.displayName=`@mantine/core/Badge`;var Cm={root:`m_77c9d27d`,inner:`m_80f1301b`,label:`m_811560b9`,section:`m_a74036a`,loader:`m_a25b86ee`,group:`m_80d6d844`,groupSection:`m_70be2a01`},wm={orientation:`horizontal`},Tm=Cn((e,{borderWidth:t})=>({group:{"--button-border-width":V(t)}})),Em=K(e=>{let t=W(`ButtonGroup`,wm,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,mod:u,attributes:d,...f}=W(`ButtonGroup`,wm,e);return(0,U.jsx)(q,{...G({name:`ButtonGroup`,props:t,classes:Cm,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:c,varsResolver:Tm,rootSelector:`group`})(`group`),mod:[{"data-orientation":s},u],role:`group`,...f})});Em.classes=Cm,Em.varsResolver=Tm,Em.displayName=`@mantine/core/ButtonGroup`;var Dm=Cn((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":at(o,`section-height`),"--section-padding-x":at(o,`section-padding-x`),"--section-fz":o?.includes(`compact`)?ct(o.replace(`compact-`,``)):ct(o),"--section-radius":t===void 0?void 0:st(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),Om=K(e=>{let t=W(`ButtonGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,gradient:c,radius:l,autoContrast:u,attributes:d,...f}=t;return(0,U.jsx)(q,{...G({name:`ButtonGroupSection`,props:t,classes:Cm,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:Dm,rootSelector:`groupSection`})(`groupSection`),...f})});Om.classes=Cm,Om.varsResolver=Dm,Om.displayName=`@mantine/core/ButtonGroupSection`;var km={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${V(1)}))`},out:{opacity:0,transform:`translate(-50%, -200%)`},common:{transformOrigin:`center`},transitionProperty:`transform, opacity`},Am=Cn((e,{radius:t,color:n,gradient:r,variant:i,size:a,justify:o,autoContrast:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:s});return{root:{"--button-justify":o,"--button-height":at(a,`button-height`),"--button-padding-x":at(a,`button-padding-x`),"--button-fz":a?.includes(`compact`)?ct(a.replace(`compact-`,``)):ct(a),"--button-radius":t===void 0?void 0:st(t),"--button-bg":n||i?c.background:void 0,"--button-hover":n||i?c.hover:void 0,"--button-color":c.color,"--button-bd":n||i?c.border:void 0,"--button-hover-color":n||i?c.hoverColor:void 0}}}),jm=Ri(e=>{let t=W(`Button`,null,e),{style:n,vars:r,className:i,color:a,disabled:o,children:s,leftSection:c,rightSection:l,fullWidth:u,variant:d,radius:f,loading:p,loaderProps:m,gradient:h,classNames:g,styles:_,unstyled:v,"data-disabled":y,autoContrast:b,mod:x,attributes:S,...C}=t,w=G({name:`Button`,props:t,classes:Cm,className:i,style:n,classNames:g,styles:_,unstyled:v,attributes:S,vars:r,varsResolver:Am}),T=!!c,E=!!l;return(0,U.jsxs)(dl,{...w(`root`,{active:!o&&!p&&!y}),unstyled:v,variant:d,disabled:o||p,mod:[{disabled:o||y,loading:p,block:u,"with-left-section":T,"with-right-section":E},x],...C,children:[typeof p==`boolean`&&(0,U.jsx)(Rl,{mounted:p,transition:km,duration:150,children:e=>(0,U.jsx)(q,{component:`span`,...w(`loader`,{style:e}),"aria-hidden":!0,children:(0,U.jsx)(cu,{color:`var(--button-color)`,size:`calc(var(--button-height) / 1.8)`,...m})})}),(0,U.jsxs)(`span`,{...w(`inner`),children:[c&&(0,U.jsx)(q,{component:`span`,...w(`section`),mod:{position:`left`},children:c}),(0,U.jsx)(q,{component:`span`,mod:{loading:p},...w(`label`),children:s}),l&&(0,U.jsx)(q,{component:`span`,...w(`section`),mod:{position:`right`},children:l})]})]})});jm.classes=Cm,jm.varsResolver=Am,jm.displayName=`@mantine/core/Button`,jm.Group=Em,jm.GroupSection=Om;var Mm={root:`m_4451eb3a`},Nm=Ri(e=>{let t=W(`Center`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,inline:c,mod:l,attributes:u,...d}=t,f=G({name:`Center`,props:t,classes:Mm,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s});return(0,U.jsx)(q,{mod:[{inline:c},l],...f(`root`),...d})});Nm.classes=Mm,Nm.displayName=`@mantine/core/Center`;var Pm={root:`m_b183c0a2`},Fm=Cn((e,{color:t})=>({root:{"--code-bg":t?Un(t,e):void 0}})),Im=K(e=>{let t=W(`Code`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,block:l,mod:u,attributes:d,...f}=t,p=G({name:`Code`,props:t,classes:Pm,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:Fm});return(0,U.jsx)(q,{component:l?`pre`:`code`,mod:[{block:l},u],...p(`root`),...f,dir:`ltr`})});Im.classes=Pm,Im.varsResolver=Fm,Im.displayName=`@mantine/core/Code`;var Lm={root:`m_de3d2490`,colorOverlay:`m_862f3d1b`,shadowOverlay:`m_98ae7f22`,alphaOverlay:`m_95709ac0`,childrenOverlay:`m_93e74e3`},Rm={withShadow:!0},zm=Cn((e,{radius:t,size:n})=>({root:{"--cs-radius":t===void 0?void 0:st(t),"--cs-size":V(n)}})),Bm=Ri(e=>{let t=W(`ColorSwatch`,Rm,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,radius:l,withShadow:u,children:d,attributes:f,...p}=W(`ColorSwatch`,Rm,t),m=G({name:`ColorSwatch`,props:t,classes:Lm,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:zm});return(0,U.jsxs)(q,{...m(`root`,{focusable:!0}),...p,children:[(0,U.jsx)(`span`,{...m(`alphaOverlay`)}),u&&(0,U.jsx)(`span`,{...m(`shadowOverlay`)}),(0,U.jsx)(`span`,{...m(`colorOverlay`,{style:{backgroundColor:c}})}),(0,U.jsx)(`span`,{...m(`childrenOverlay`),children:d})]})});Bm.classes=Lm,Bm.varsResolver=zm,Bm.displayName=`@mantine/core/ColorSwatch`;var Vm={root:`m_7485cace`},Hm={strategy:`block`},Um=Cn((e,{size:t,fluid:n})=>({root:{"--container-size":n?void 0:at(t,`container-size`)}})),Wm=K(e=>{let t=W(`Container`,Hm,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,fluid:c,mod:l,attributes:u,strategy:d,...f}=t,p=G({name:`Container`,classes:Vm,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:Um});return(0,U.jsx)(q,{mod:[{fluid:c,strategy:d},l],...p(`root`),...f})});Wm.classes=Vm,Wm.varsResolver=Um,Wm.displayName=`@mantine/core/Container`;var Gm={root:`m_3eebeb36`,label:`m_9e365f20`},Km={orientation:`horizontal`},qm=Cn((e,{color:t,variant:n,size:r})=>({root:{"--divider-color":t?Un(t,e):void 0,"--divider-border-style":n,"--divider-size":at(r,`divider-size`)}})),Jm=K(e=>{let t=W(`Divider`,Km,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,orientation:l,label:u,labelPosition:d,mod:f,attributes:p,...m}=t,h=G({name:`Divider`,classes:Gm,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:qm});return(0,U.jsx)(q,{mod:[{orientation:l,withLabel:!!u},f],role:`separator`,...h(`root`),...m,children:u&&(0,U.jsx)(q,{component:`span`,mod:{position:d},...h(`label`),children:u})})});Jm.classes=Gm,Jm.varsResolver=qm,Jm.displayName=`@mantine/core/Divider`;var[Ym,Xm]=Je(`Drawer component was not found in tree`),Zm={root:`m_f11b401e`,header:`m_5a7c2c9`,content:`m_b8a05bbd`,inner:`m_31cd769a`},Qm=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`DrawerBody`,null,e);return(0,U.jsx)(Ud,{...Xm().getStyles(`body`,{classNames:t,style:r,styles:i,className:n}),...o})});Qm.classes=Zm,Qm.displayName=`@mantine/core/DrawerBody`;var $m=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`DrawerCloseButton`,null,e);return(0,U.jsx)(Wd,{...Xm().getStyles(`close`,{classNames:t,style:r,styles:i,className:n}),...o})});$m.classes=Zm,$m.displayName=`@mantine/core/DrawerCloseButton`;var eh=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,radius:s,__hidden:c,...l}=W(`DrawerContent`,null,e),u=Xm(),d=u.scrollAreaComponent||Qd;return(0,U.jsx)(Gd,{...u.getStyles(`content`,{className:n,style:r,styles:i,classNames:t}),innerProps:u.getStyles(`inner`,{className:n,style:r,styles:i,classNames:t}),...l,radius:s||u.radius||0,"data-hidden":c||void 0,children:(0,U.jsx)(d,{style:{height:`calc(100vh - var(--drawer-offset) * 2)`},children:o})})});eh.classes=Zm,eh.displayName=`@mantine/core/DrawerContent`;var th=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`DrawerHeader`,null,e);return(0,U.jsx)(Kd,{...Xm().getStyles(`header`,{classNames:t,style:r,styles:i,className:n}),...o})});th.classes=Zm,th.displayName=`@mantine/core/DrawerHeader`;var nh=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`DrawerOverlay`,null,e);return(0,U.jsx)(Yd,{...Xm().getStyles(`overlay`,{classNames:t,style:r,styles:i,className:n}),...o})});nh.classes=Zm,nh.displayName=`@mantine/core/DrawerOverlay`;function rh(e){switch(e){case`top`:return`flex-start`;case`bottom`:return`flex-end`;default:return}}function ih(e){if(e===`top`||e===`bottom`)return`0 0 calc(100% - var(--drawer-offset, 0rem) * 2)`}var ah={top:`slide-down`,bottom:`slide-up`,left:`slide-right`,right:`slide-left`},oh={top:`slide-down`,bottom:`slide-up`,right:`slide-right`,left:`slide-left`},sh={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:nt(`modal`),position:`left`},ch=Cn((e,{position:t,size:n,offset:r})=>({root:{"--drawer-size":at(n,`drawer-size`),"--drawer-flex":ih(t),"--drawer-height":t===`left`||t===`right`?void 0:`var(--drawer-size)`,"--drawer-align":rh(t),"--drawer-justify":t===`right`?`flex-end`:void 0,"--drawer-offset":V(r)}})),lh=K(e=>{let t=W(`DrawerRoot`,sh,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,scrollAreaComponent:c,position:l,transitionProps:u,radius:d,attributes:f,...p}=t,{dir:m}=Ki(),h=G({name:`Drawer`,classes:Zm,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:ch}),g=(m===`rtl`?oh:ah)[l];return(0,U.jsx)(Ym,{value:{scrollAreaComponent:c,getStyles:h,radius:d},children:(0,U.jsx)(Bd,{...h(`root`),transitionProps:{transition:g,...u},"data-offset-scrollbars":c===sl.Autosize||void 0,unstyled:o,...p})})});lh.classes=Zm,lh.varsResolver=ch,lh.displayName=`@mantine/core/DrawerRoot`;var uh=(0,H.createContext)(null);function dh({children:e}){let[t,n]=(0,H.useState)([]),[r,i]=(0,H.useState)(nt(`modal`));return(0,U.jsx)(uh,{value:{stack:t,addModal:(e,t)=>{n(t=>[...new Set([...t,e])]),i(e=>typeof t==`number`&&typeof e==`number`?Math.max(e,t):e)},removeModal:e=>n(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${r} + ${t.indexOf(e)} + 1)`,currentId:t[t.length-1],maxZIndex:r},children:e})}dh.displayName=`@mantine/core/DrawerStack`;var fh=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`DrawerTitle`,null,e);return(0,U.jsx)(Zd,{...Xm().getStyles(`title`,{classNames:t,style:r,styles:i,className:n}),...o})});fh.classes=Zm,fh.displayName=`@mantine/core/DrawerTitle`;var ph={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:nt(`modal`),withOverlay:!0,withCloseButton:!0},mh=K(e=>{let{title:t,withOverlay:n,overlayProps:r,withCloseButton:i,closeButtonProps:a,children:o,opened:s,stackId:c,zIndex:l,...u}=W(`Drawer`,ph,e),d=(0,H.use)(uh),f=!!t||i,p=d&&c?{closeOnEscape:d.currentId===c,trapFocus:d.currentId===c,zIndex:d.getZIndex(c)}:{},m=n===!1?!1:c&&d?d.currentId===c:s;return(0,H.useEffect)(()=>{d&&c&&(s?d.addModal(c,l||nt(`modal`)):d.removeModal(c))},[s,c,l]),(0,U.jsxs)(lh,{opened:s,zIndex:d&&c?d.getZIndex(c):l,...u,...p,children:[n&&(0,U.jsx)(nh,{visible:m,transitionProps:d&&c?{duration:0}:void 0,...r}),(0,U.jsxs)(eh,{__hidden:d&&c&&s?c!==d.currentId:!1,children:[f&&(0,U.jsxs)(th,{children:[t&&(0,U.jsx)(fh,{children:t}),i&&(0,U.jsx)($m,{...a})]}),(0,U.jsx)(Qm,{children:o})]})]})});mh.classes=Zm,mh.displayName=`@mantine/core/Drawer`,mh.Root=lh,mh.Overlay=nh,mh.Content=eh,mh.Body=Qm,mh.Header=th,mh.Title=fh,mh.CloseButton=$m,mh.Stack=dh;var[hh,gh]=Je(`Grid component was not found in tree`),_h=(e,t)=>{if(e===`content`)return`auto`;if(e===`auto`)return`0rem`;if(e)return e===t?`100%`:`calc(${100*e/t}% - ${(t-e)/t} * var(--grid-column-gap))`},vh=(e,t,n)=>n||e===`auto`?`100%`:e===`content`?`unset`:_h(e,t),yh=(e,t)=>{if(e)return e===`auto`||t?`1`:`auto`},bh=(e,t)=>{if(e===0)return`0`;if(e)return`calc(${100*e/t}% + ${e/t} * var(--grid-column-gap))`};function xh({span:e,order:t,offset:n,align:r,selector:i}){let a=wr(),o=gh(),s=o.breakpoints||a.breakpoints,c=mt(e),l=c===void 0?12:c,u=Ge({"--col-order":mt(t)?.toString(),"--col-flex-grow":yh(l,o.grow),"--col-flex-basis":_h(l,o.columns),"--col-width":l===`content`?`auto`:void 0,"--col-max-width":vh(l,o.columns,o.grow),"--col-offset":bh(mt(n),o.columns),"--col-align-self":mt(r)}),d=Ie(s).reduce((i,a)=>(i[a]||(i[a]={}),typeof t==`object`&&t[a]!==void 0&&(i[a][`--col-order`]=t[a]?.toString()),typeof e==`object`&&e[a]!==void 0&&(i[a][`--col-flex-grow`]=yh(e[a],o.grow),i[a][`--col-flex-basis`]=_h(e[a],o.columns),i[a][`--col-width`]=e[a]===`content`?`auto`:void 0,i[a][`--col-max-width`]=vh(e[a],o.columns,o.grow)),typeof n==`object`&&n[a]!==void 0&&(i[a][`--col-offset`]=bh(n[a],o.columns)),typeof r==`object`&&r[a]!==void 0&&(i[a][`--col-align-self`]=r[a]),i),{}),f=pt(Ie(d),s).filter(e=>Ie(d[e.value]).length>0).map(e=>({query:o.type===`container`?`mantine-grid (min-width: ${s[e.value]})`:`(min-width: ${s[e.value]})`,styles:d[e.value]}));return(0,U.jsx)(oi,{styles:u,media:o.type===`container`?void 0:f,container:o.type===`container`?f:void 0,selector:i})}var Sh={container:`m_8478a6da`,root:`m_410352e9`,inner:`m_dee7bd2f`,col:`m_96bdd299`},Ch={span:12},wh=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,span:o,order:s,offset:c,align:l,...u}=W(`GridCol`,Ch,e),d=gh(),f=Mi();return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(xh,{selector:`.${f}`,span:o,order:s,offset:c,align:l}),(0,U.jsx)(q,{...d.getStyles(`col`,{className:Tn(n,f),style:r,classNames:t,styles:i}),...u})]})});wh.classes=Sh,wh.displayName=`@mantine/core/GridCol`;function Th({gap:e,rowGap:t,columnGap:n,selector:r,breakpoints:i,type:a}){let o=wr(),s=i||o.breakpoints,c=Ge({"--grid-gap":ot(mt(e)),"--grid-row-gap":ot(mt(t)),"--grid-column-gap":ot(mt(n))}),l=Ie(s).reduce((r,i)=>(r[i]||(r[i]={}),typeof e==`object`&&e[i]!==void 0&&(r[i][`--grid-gap`]=ot(e[i])),typeof t==`object`&&t[i]!==void 0&&(r[i][`--grid-row-gap`]=ot(t[i])),typeof n==`object`&&n[i]!==void 0&&(r[i][`--grid-column-gap`]=ot(n[i])),r),{}),u=pt(Ie(l),s).filter(e=>Ie(l[e.value]).length>0).map(e=>({query:a===`container`?`mantine-grid (min-width: ${s[e.value]})`:`(min-width: ${s[e.value]})`,styles:l[e.value]}));return(0,U.jsx)(oi,{styles:c,media:a===`container`?void 0:u,container:a===`container`?u:void 0,selector:r})}var Eh={gap:`md`,columns:12},Dh=Cn((e,{justify:t,align:n,overflow:r})=>({root:{"--grid-justify":t,"--grid-align":n,"--grid-overflow":r}})),Oh=K(e=>{let t=W(`Grid`,Eh,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,grow:c,gap:l,rowGap:u,columnGap:d,columns:f,align:p,justify:m,children:h,breakpoints:g,type:_,attributes:v,...y}=t,b=G({name:`Grid`,classes:Sh,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:Dh}),x=Mi();return _===`container`&&g?(0,U.jsxs)(hh,{value:{getStyles:b,grow:c,columns:f,breakpoints:g,type:_},children:[(0,U.jsx)(Th,{selector:`.${x}`,...t}),(0,U.jsx)(`div`,{...b(`container`),children:(0,U.jsx)(q,{...b(`root`,{className:x}),...y,children:(0,U.jsx)(`div`,{...b(`inner`),children:h})})})]}):(0,U.jsxs)(hh,{value:{getStyles:b,grow:c,columns:f,breakpoints:g,type:_},children:[(0,U.jsx)(Th,{selector:`.${x}`,...t}),(0,U.jsx)(q,{...b(`root`,{className:x}),...y,children:(0,U.jsx)(`div`,{...b(`inner`),children:h})})]})});Oh.classes=Sh,Oh.varsResolver=Dh,Oh.displayName=`@mantine/core/Grid`,Oh.Col=wh;var kh=[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`,`boxSizing`,`fontFamily`,`fontSize`,`fontStyle`,`fontWeight`,`letterSpacing`,`lineHeight`,`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`,`tabSize`,`textIndent`,`textRendering`,`textTransform`,`width`,`wordBreak`,`wordSpacing`,`scrollbarGutter`],Ah={"min-height":`0`,"max-height":`none`,height:`0`,visibility:`hidden`,overflow:`hidden`,position:`absolute`,"z-index":`-1000`,top:`0`,right:`0`,display:`block`};function jh(e){Object.keys(Ah).forEach(t=>{e.style.setProperty(t,Ah[t],`important`)})}function Mh(e){let t=window.getComputedStyle(e);if(t===null)return null;let n={};for(let e of kh)n[e]=t[e];return n.boxSizing===``?null:{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)}}var Nh=null;function Ph(e,t,n=1,r=1/0){Nh||(Nh=document.createElement(`textarea`),Nh.setAttribute(`tabindex`,`-1`),Nh.setAttribute(`aria-hidden`,`true`),Nh.setAttribute(`aria-label`,`autosize measurement`),jh(Nh)),Nh.parentNode===null&&document.body.appendChild(Nh);let{paddingSize:i,borderSize:a,sizingStyle:o}=e,{boxSizing:s}=o;Object.keys(o).forEach(e=>{Nh.style[e]=o[e]}),jh(Nh),Nh.value=t;let c=s===`border-box`?Nh.scrollHeight+a:Nh.scrollHeight-i;Nh.value=t,c=s===`border-box`?Nh.scrollHeight+a:Nh.scrollHeight-i,Nh.value=`x`;let l=Nh.scrollHeight-i,u=l*n;s===`border-box`&&(u=u+i+a),c=Math.max(u,c);let d=l*r;return s===`border-box`&&(d=d+i+a),c=Math.min(d,c),[c,l]}function Fh({maxRows:e,minRows:t,onChange:n,ref:r,...i}){let a=i.value!==void 0,o=(0,H.useRef)(null),s=Jt(o,r),c=(0,H.useRef)(0),l=()=>{let n=o.current;if(!n)return;let r=Mh(n);if(!r)return;let[i]=Ph(r,n.value||n.placeholder||`x`,t,e);c.current!==i&&(c.current=i,n.style.setProperty(`height`,`${i}px`,`important`))},u=e=>{a||l(),n?.(e)};return(0,H.useLayoutEffect)(l),(0,H.useEffect)(()=>{let e=()=>l();return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),(0,H.useEffect)(()=>{let e=()=>l();return document.fonts.addEventListener(`loadingdone`,e),()=>document.fonts.removeEventListener(`loadingdone`,e)},[]),(0,H.useEffect)(()=>{let e=e=>{if(o.current?.form===e.target&&!a){let e=o.current.value;requestAnimationFrame(()=>{o.current&&e!==o.current.value&&l()})}};return document.body.addEventListener(`reset`,e),()=>document.body.removeEventListener(`reset`,e)},[a]),(0,U.jsx)(`textarea`,{...i,onChange:u,ref:s})}var Ih={size:`sm`},Lh=K(e=>{let{autosize:t,maxRows:n,minRows:r,__staticSelector:i,resize:a,...o}=W(`Textarea`,Ih,e),s=t&&gn()!==`test`,c=s?{maxRows:n,minRows:r}:{};return(0,U.jsx)(Cf,{component:s?Fh:`textarea`,...o,__staticSelector:i||`Textarea`,multiline:!0,"data-no-overflow":t&&n===void 0||void 0,__vars:{"--input-resize":a},...c})});Lh.classes=Cf.classes,Lh.displayName=`@mantine/core/Textarea`;var[Rh,zh]=Je(`Menu component was not found in the tree`),Bh={dropdown:`m_dc9b7c9f`,label:`m_9bfac126`,divider:`m_efdf90cb`,item:`m_99ac2aa1`,itemLabel:`m_5476e0d3`,itemSection:`m_8b75e504`,chevron:`m_b85b0bed`},Vh=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`MenuDivider`,null,e);return(0,U.jsx)(q,{...zh().getStyles(`divider`,{className:n,style:r,styles:i,classNames:t}),...o})});Vh.classes=Bh,Vh.displayName=`@mantine/core/MenuDivider`;var Hh=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,onMouseEnter:o,onMouseLeave:s,onKeyDown:c,children:l,ref:u,...d}=W(`MenuDropdown`,null,e),f=(0,H.useRef)(null),p=zh(),m=dt(c,e=>{(e.key===`ArrowUp`||e.key===`ArrowDown`)&&(e.preventDefault(),f.current?.querySelectorAll(`[data-menu-item]:not(:disabled)`)[0]?.focus())}),h=dt(o,()=>(p.trigger===`hover`||p.trigger===`click-hover`)&&p.openDropdown()),g=dt(s,()=>(p.trigger===`hover`||p.trigger===`click-hover`)&&p.closeDropdown());return(0,U.jsxs)(eu.Dropdown,{...d,onMouseEnter:h,onMouseLeave:g,role:`menu`,"aria-orientation":`vertical`,ref:Jt(u,f),...p.getStyles(`dropdown`,{className:n,style:r,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:m,children:[p.withInitialFocusPlaceholder&&(0,U.jsx)(`div`,{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),l]})});Hh.classes=Bh,Hh.displayName=`@mantine/core/MenuDropdown`;var Uh=(0,H.createContext)(null),Wh=Ri(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,closeMenuOnClick:s,leftSection:c,rightSection:l,children:u,disabled:d,"data-disabled":f,ref:p,...m}=W(`MenuItem`,null,e),h=zh(),g=(0,H.use)(Uh),_=wr(),{dir:v}=Ki(),y=(0,H.useRef)(null),b=m,x=dt(b.onClick,()=>{f||(typeof s==`boolean`?s&&h.closeDropdownImmediately():h.closeOnItemClick&&h.closeDropdownImmediately())}),S=o?_.variantColorResolver({color:o,theme:_,variant:`light`}):void 0,C=o?Hn({color:o,theme:_}):null,w=dt(b.onKeyDown,e=>{e.key===`ArrowLeft`&&g&&(g.close(),g.focusParentItem())});return(0,U.jsxs)(dl,{onMouseDown:e=>e.preventDefault(),...m,unstyled:h.unstyled,tabIndex:h.menuItemTabIndex,...h.getStyles(`item`,{className:n,style:r,styles:i,classNames:t}),ref:Jt(y,p),role:`menuitem`,disabled:d,"data-menu-item":!0,"data-disabled":d||f||void 0,"data-mantine-stop-propagation":!0,onClick:x,onKeyDown:et({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:h.loop,dir:v,orientation:`vertical`,onKeyDown:w}),__vars:{"--menu-item-color":C?.isThemeColor&&C?.shade===void 0?`var(--mantine-color-${C.color}-6)`:S?.color,"--menu-item-hover":S?.hover},children:[c&&(0,U.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`left`,children:c}),u&&(0,U.jsx)(`div`,{...h.getStyles(`itemLabel`,{styles:i,classNames:t}),children:u}),l&&(0,U.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`right`,children:l})]})});Wh.classes=Bh,Wh.displayName=`@mantine/core/MenuItem`;var Gh=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`MenuLabel`,null,e);return(0,U.jsx)(q,{...zh().getStyles(`label`,{className:n,style:r,styles:i,classNames:t}),...o})});Gh.classes=Bh,Gh.displayName=`@mantine/core/MenuLabel`;var Kh=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,onMouseEnter:o,onMouseLeave:s,onKeyDown:c,children:l,ref:u,...d}=W(`MenuSubDropdown`,null,e),f=(0,H.useRef)(null),p=zh(),m=(0,H.use)(Uh),h=dt(o,m?.open),g=dt(s,m?.close);return(0,U.jsx)(eu.Dropdown,{...d,onMouseEnter:h,onMouseLeave:g,role:`menu`,"aria-orientation":`vertical`,ref:Jt(u,f),...p.getStyles(`dropdown`,{className:n,style:r,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:l})});Kh.classes=Bh,Kh.displayName=`@mantine/core/MenuSubDropdown`;var qh=Ri(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,leftSection:s,rightSection:c,children:l,disabled:u,"data-disabled":d,closeMenuOnClick:f,ref:p,...m}=W(`MenuSubItem`,null,e),h=zh(),g=(0,H.use)(Uh),_=wr(),{dir:v}=Ki(),y=(0,H.useRef)(null),b=m,x=o?_.variantColorResolver({color:o,theme:_,variant:`light`}):void 0,S=o?Hn({color:o,theme:_}):null,C=dt(b.onKeyDown,e=>{e.key===`ArrowRight`&&(g?.open(),g?.focusFirstItem()),e.key===`ArrowLeft`&&g?.parentContext&&(g.parentContext.close(),g.parentContext.focusParentItem())}),w=dt(b.onClick,()=>{!d&&f&&h.closeDropdownImmediately()}),T=dt(b.onMouseEnter,g?.open),E=dt(b.onMouseLeave,g?.close);return(0,U.jsxs)(dl,{onMouseDown:e=>e.preventDefault(),...m,unstyled:h.unstyled,tabIndex:h.menuItemTabIndex,...h.getStyles(`item`,{className:n,style:r,styles:i,classNames:t}),ref:Jt(y,p),role:`menuitem`,disabled:u,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":u||d||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:T,onMouseLeave:E,onClick:w,onKeyDown:et({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:h.loop,dir:v,orientation:`vertical`,onKeyDown:C}),__vars:{"--menu-item-color":S?.isThemeColor&&S?.shade===void 0?`var(--mantine-color-${S.color}-6)`:x?.color,"--menu-item-hover":x?.hover},children:[s&&(0,U.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`left`,children:s}),l&&(0,U.jsx)(`div`,{...h.getStyles(`itemLabel`,{styles:i,classNames:t}),children:l}),(0,U.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`right`,children:c||(0,U.jsx)(Pf,{...h.getStyles(`chevron`),size:14})})]})});qh.classes=Bh,qh.displayName=`@mantine/core/MenuSubItem`;function Jh({children:e,refProp:t}){if(!qe(e))throw Error(`Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);return zh(),(0,U.jsx)(eu.Target,{refProp:t,popupType:`menu`,children:e})}Jh.displayName=`@mantine/core/MenuSubTarget`;var Yh={offset:0,position:`right-start`,transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function Xh(e){let{children:t,closeDelay:n,openDelay:r,...i}=W(`MenuSub`,Yh,e),a=Rt(),[o,{open:s,close:c}]=rn(!1),l=(0,H.use)(Uh),{openDropdown:u,closeDropdown:d}=Cl({open:s,close:c,closeDelay:n,openDelay:r});return(0,U.jsx)(Uh,{value:{opened:o,close:d,open:u,focusFirstItem:()=>window.setTimeout(()=>{document.getElementById(`${a}-dropdown`)?.querySelectorAll(`[data-menu-item]:not([data-disabled])`)[0]?.focus()},16),focusParentItem:()=>window.setTimeout(()=>{document.getElementById(`${a}-target`)?.focus()},16),parentContext:l},children:(0,U.jsx)(eu,{opened:o,withinPortal:!1,withArrow:!1,id:a,...i,children:t})})}Xh.extend=e=>e,Xh.displayName=`@mantine/core/MenuSub`,Xh.Target=Jh,Xh.Dropdown=Kh,Xh.Item=qh;var Zh={refProp:`ref`};function Qh(e){let{children:t,refProp:n,...r}=W(`MenuTarget`,Zh,e),i=Sn(t);if(!i)throw Error(`Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let a=zh(),o=i.props,s=dt(o.onClick,()=>{a.trigger===`click`?a.toggleDropdown():a.trigger===`click-hover`&&(a.setOpenedViaClick(!0),a.opened||a.openDropdown())}),c=dt(o.onMouseEnter,()=>(a.trigger===`hover`||a.trigger===`click-hover`)&&a.openDropdown()),l=dt(o.onMouseLeave,()=>{(a.trigger===`hover`||a.trigger===`click-hover`&&!a.openedViaClick)&&a.closeDropdown()});return(0,U.jsx)(eu.Target,{refProp:n,popupType:`menu`,...r,children:(0,H.cloneElement)(i,{onClick:s,onMouseEnter:c,onMouseLeave:l,"data-expanded":a.opened?!0:void 0})})}Qh.displayName=`@mantine/core/MenuTarget`;var $h={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:[`mousedown`,`touchstart`,`keydown`],loop:!0,trigger:`click`,openDelay:0,closeDelay:100,menuItemTabIndex:-1},eg=K(e=>{let t=W(`Menu`,$h,e),{children:n,onOpen:r,onClose:i,opened:a,defaultOpened:o,trapFocus:s,onChange:c,closeOnItemClick:l,loop:u,closeOnEscape:d,trigger:f,openDelay:p,closeDelay:m,classNames:h,styles:g,unstyled:_,variant:v,vars:y,menuItemTabIndex:b,keepMounted:x,withInitialFocusPlaceholder:S,attributes:C,...w}=t,T=G({name:`Menu`,classes:Bh,props:t,classNames:h,styles:g,unstyled:_,attributes:C}),[E,D]=Yt({value:a,defaultValue:o,finalValue:!1,onChange:c}),[O,k]=(0,H.useState)(!1),A=()=>{D(!1),k(!1),E&&i?.()},j=()=>{D(!0),!E&&r?.()},M=()=>{E?A():j()},{openDropdown:N,closeDropdown:P}=Cl({open:j,close:A,closeDelay:m,openDelay:p}),ee=e=>ht(`[data-menu-item]`,`[data-menu-dropdown]`,e),{resolvedClassNames:F,resolvedStyles:I}=Ur({classNames:h,styles:g,props:t});return(0,U.jsx)(Rh,{value:{getStyles:T,opened:E,toggleDropdown:M,getItemIndex:ee,openedViaClick:O,setOpenedViaClick:k,closeOnItemClick:l,closeDropdown:f===`click`?A:P,openDropdown:f===`click`?j:N,closeDropdownImmediately:A,loop:u,trigger:f,unstyled:_,menuItemTabIndex:b,withInitialFocusPlaceholder:S},children:(0,U.jsx)(eu,{returnFocus:!0,...w,opened:E,onChange:M,defaultOpened:o,trapFocus:x?!1:s,closeOnEscape:d,__staticSelector:`Menu`,classNames:F,styles:I,unstyled:_,variant:v,keepMounted:x,children:n})})});eg.displayName=`@mantine/core/Menu`,eg.classes=Bh,eg.Item=Wh,eg.Label=Gh,eg.Dropdown=Hh,eg.Target=Qh,eg.Divider=Vh,eg.Sub=Xh;var[tg,ng]=Je(`Modal component was not found in tree`),rg={root:`m_9df02822`,content:`m_54c44539`,inner:`m_1f958f16`,header:`m_d0e2b9cd`},ig=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ModalBody`,null,e);return(0,U.jsx)(Ud,{...ng().getStyles(`body`,{classNames:t,style:r,styles:i,className:n}),...o})});ig.classes=rg,ig.displayName=`@mantine/core/ModalBody`;var ag=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ModalCloseButton`,null,e);return(0,U.jsx)(Wd,{...ng().getStyles(`close`,{classNames:t,style:r,styles:i,className:n}),...o})});ag.classes=rg,ag.displayName=`@mantine/core/ModalCloseButton`;var og=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,__hidden:s,...c}=W(`ModalContent`,null,e),l=ng(),u=l.scrollAreaComponent||Qd;return(0,U.jsx)(Gd,{...l.getStyles(`content`,{className:n,style:r,styles:i,classNames:t}),innerProps:l.getStyles(`inner`,{className:n,style:r,styles:i,classNames:t}),"data-full-screen":l.fullScreen||void 0,"data-modal-content":!0,"data-hidden":s||void 0,...c,children:(0,U.jsx)(u,{style:{maxHeight:l.fullScreen?`100dvh`:`calc(100dvh - (${V(l.yOffset)} * 2))`},children:o})})});og.classes=rg,og.displayName=`@mantine/core/ModalContent`;var sg=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ModalHeader`,null,e);return(0,U.jsx)(Kd,{...ng().getStyles(`header`,{classNames:t,style:r,styles:i,className:n}),...o})});sg.classes=rg,sg.displayName=`@mantine/core/ModalHeader`;var cg=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ModalOverlay`,null,e);return(0,U.jsx)(Yd,{...ng().getStyles(`overlay`,{classNames:t,style:r,styles:i,className:n}),...o})});cg.classes=rg,cg.displayName=`@mantine/core/ModalOverlay`;var lg={__staticSelector:`Modal`,closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:nt(`modal`),transitionProps:{duration:200,transition:`fade-down`},yOffset:`5dvh`},ug=Cn((e,{radius:t,size:n,yOffset:r,xOffset:i})=>({root:{"--modal-radius":t===void 0?void 0:st(t),"--modal-size":at(n,`modal-size`),"--modal-y-offset":V(r),"--modal-x-offset":V(i)}})),dg=K(e=>{let t=W(`ModalRoot`,lg,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,yOffset:c,scrollAreaComponent:l,radius:u,fullScreen:d,centered:f,xOffset:p,__staticSelector:m,attributes:h,...g}=t,_=G({name:m,classes:rg,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:ug});return(0,U.jsx)(tg,{value:{yOffset:c,scrollAreaComponent:l,getStyles:_,fullScreen:d},children:(0,U.jsx)(Bd,{..._(`root`),"data-full-screen":d||void 0,"data-centered":f||void 0,"data-offset-scrollbars":l===sl.Autosize||void 0,unstyled:o,...g})})});dg.classes=rg,dg.varsResolver=ug,dg.displayName=`@mantine/core/ModalRoot`;var fg=(0,H.createContext)(null);function pg({children:e}){let[t,n]=(0,H.useState)([]),[r,i]=(0,H.useState)(nt(`modal`));return(0,U.jsx)(fg,{value:{stack:t,addModal:(e,t)=>{n(t=>[...new Set([...t,e])]),i(e=>typeof t==`number`&&typeof e==`number`?Math.max(e,t):e)},removeModal:e=>n(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${r} + ${t.indexOf(e)} + 1)`,currentId:t[t.length-1],maxZIndex:r},children:e})}pg.displayName=`@mantine/core/ModalStack`;var mg=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ModalTitle`,null,e);return(0,U.jsx)(Zd,{...ng().getStyles(`title`,{classNames:t,style:r,styles:i,className:n}),...o})});mg.classes=rg,mg.displayName=`@mantine/core/ModalTitle`;var hg={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:nt(`modal`),transitionProps:{duration:200,transition:`fade-down`},withOverlay:!0,withCloseButton:!0},gg=K(e=>{let{title:t,withOverlay:n,overlayProps:r,withCloseButton:i,closeButtonProps:a,children:o,radius:s,opened:c,stackId:l,zIndex:u,...d}=W(`Modal`,hg,e),f=(0,H.use)(fg),p=!!t||i,m=f&&l?{closeOnEscape:f.currentId===l,trapFocus:f.currentId===l,zIndex:f.getZIndex(l)}:{},h=n===!1?!1:l&&f?f.currentId===l:c;return(0,H.useEffect)(()=>{f&&l&&(c?f.addModal(l,u||nt(`modal`)):f.removeModal(l))},[c,l,u]),(0,U.jsxs)(dg,{radius:s,opened:c,zIndex:f&&l?f.getZIndex(l):u,...d,...m,children:[n&&(0,U.jsx)(cg,{visible:h,transitionProps:f&&l?{duration:0}:void 0,...r}),(0,U.jsxs)(og,{radius:s,__hidden:f&&l&&c?l!==f.currentId:!1,children:[p&&(0,U.jsxs)(sg,{children:[t&&(0,U.jsx)(mg,{children:t}),i&&(0,U.jsx)(ag,{...a})]}),(0,U.jsx)(ig,{children:o})]})]})});gg.classes=rg,gg.displayName=`@mantine/core/Modal`,gg.Root=dg,gg.Overlay=cg,gg.Content=og,gg.Body=ig,gg.Header=sg,gg.Title=mg,gg.CloseButton=ag,gg.Stack=pg;var _g=(0,H.createContext)(null),vg={root:`m_7cda1cd6`,"root--default":`m_44da308b`,"root--contrast":`m_e3a01f8`,label:`m_1e0e6180`,remove:`m_ae386778`,group:`m_1dcfd90b`},yg=(0,H.createContext)(null),bg=Cn((e,{gap:t},{size:n})=>({group:{"--pg-gap":t===void 0?at(n,`pg-gap`):at(t)}})),xg=K(e=>{let t=W(`PillGroup`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,disabled:l,attributes:u,...d}=t,f=(0,H.use)(_g)?.size||c||void 0,p=G({name:`PillGroup`,classes:vg,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:bg,stylesCtx:{size:f},rootSelector:`group`});return(0,U.jsx)(yg,{value:{size:f,disabled:l},children:(0,U.jsx)(q,{size:f,...p(`group`),...d})})});xg.classes=vg,xg.varsResolver=bg,xg.displayName=`@mantine/core/PillGroup`;var Sg={variant:`default`},Cg=Cn((e,{radius:t},{size:n})=>({root:{"--pill-fz":at(n,`pill-fz`),"--pill-height":at(n,`pill-height`),"--pill-radius":t===void 0?void 0:st(t)}})),wg=K(e=>{let t=W(`Pill`,Sg,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,variant:c,children:l,withRemoveButton:u,onRemove:d,removeButtonProps:f,radius:p,size:m,disabled:h,mod:g,attributes:_,...v}=t,y=(0,H.use)(yg),b=(0,H.use)(_g),x=m||y?.size||void 0,S=b?.variant===`filled`?`contrast`:c||`default`,C=G({name:`Pill`,classes:vg,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:_,vars:s,varsResolver:Cg,stylesCtx:{size:x}});return(0,U.jsxs)(q,{component:`span`,variant:S,size:x,...C(`root`,{variant:S}),mod:[{"with-remove":u&&!h,disabled:h||y?.disabled},g],...v,children:[(0,U.jsx)(`span`,{...C(`label`),children:l}),u&&(0,U.jsx)(xu,{variant:`transparent`,radius:p,tabIndex:-1,"aria-hidden":!0,unstyled:o,...f,...C(`remove`,{className:f?.className,style:f?.style}),onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),f?.onMouseDown?.(e)},onClick:e=>{e.stopPropagation(),d?.(),f?.onClick?.(e)}})]})});wg.classes=vg,wg.varsResolver=Cg,wg.displayName=`@mantine/core/Pill`,wg.Group=xg;var Tg={field:`m_45c4369d`},Eg={type:`visible`},Dg=K(e=>{let t=W(`PillsInputField`,Eg,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,type:c,disabled:l,id:u,pointer:d,mod:f,attributes:p,ref:m,...h}=t,g=(0,H.use)(_g),_=(0,H.use)(rf),v=G({name:`PillsInputField`,classes:Tg,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,rootSelector:`field`}),y=l||g?.disabled;return(0,U.jsx)(q,{component:`input`,ref:Jt(m,g?.fieldRef),"data-type":c,disabled:y,mod:[{disabled:y,pointer:d},f],...v(`field`),...h,id:_?.inputId||u,"aria-invalid":g?.hasError,"aria-describedby":_?.describedBy,type:`text`,onMouseDown:e=>!d&&e.stopPropagation()})});Dg.classes=Tg,Dg.displayName=`@mantine/core/PillsInputField`;var Og={size:`sm`},kg=K(e=>{let{children:t,onMouseDown:n,onClick:r,size:i,disabled:a,__staticSelector:o,error:s,variant:c,...l}=W(`PillsInput`,Og,e),u=(0,H.useRef)(null);return(0,U.jsx)(_g,{value:{fieldRef:u,size:i,disabled:a,hasError:!!s,variant:c},children:(0,U.jsx)(Cf,{size:i,error:s,variant:c,component:`div`,"data-no-overflow":!0,onMouseDown:e=>{e.preventDefault(),n?.(e),u.current?.focus()},onClick:e=>{e.preventDefault(),e.currentTarget.closest(`fieldset`)?.disabled||(u.current?.focus(),r?.(e))},...l,multiline:!0,disabled:a,__staticSelector:o||`PillsInput`,withAria:!1,children:t})})});kg.displayName=`@mantine/core/PillsInput`,kg.classes=Cf.classes,kg.Field=Dg;function Ag(e){return typeof e==`string`?e.trim().toLowerCase():e}function jg({data:e,value:t}){let n=t.map(Ag);return e.reduce((e,t)=>(nm(t)?e.push({group:t.group,items:t.items.filter(e=>n.indexOf(Ag(e.value))===-1)}):n.indexOf(Ag(t.value))===-1&&e.push(t),e),[])}var Mg={xs:41,sm:50,md:60,lg:72,xl:89},Ng={maxValues:1/0,withCheckIcon:!0,checkIconPosition:`left`,hiddenInputValuesDivider:`,`,clearSearchOnChange:!0,openOnFocus:!0,size:`sm`},Pg=Li(e=>{let t=W(`MultiSelect`,Ng,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,value:l,defaultValue:u,onChange:d,onKeyDown:f,variant:p,data:m,dropdownOpened:h,defaultDropdownOpened:g,onDropdownOpen:_,onDropdownClose:v,selectFirstOptionOnChange:y,selectFirstOptionOnDropdownOpen:b,onOptionSubmit:x,comboboxProps:S,filter:C,limit:w,withScrollArea:T,maxDropdownHeight:E,searchValue:D,defaultSearchValue:O,onSearchChange:k,readOnly:A,disabled:j,onFocus:M,onBlur:N,radius:P,rightSection:ee,rightSectionWidth:F,rightSectionPointerEvents:I,rightSectionProps:te,leftSection:ne,leftSectionWidth:re,leftSectionPointerEvents:ie,leftSectionProps:L,inputContainer:ae,inputWrapperOrder:oe,withAsterisk:se,labelProps:ce,descriptionProps:le,errorProps:ue,wrapperProps:de,description:fe,label:R,error:pe,maxValues:me,searchable:he,nothingFoundMessage:ge,withCheckIcon:z,withAlignedLabels:_e,checkIconPosition:ve,hidePickedOptions:B,withErrorStyles:ye,name:be,form:xe,id:Se,clearable:Ce,clearSectionMode:we,clearButtonProps:Te,hiddenInputProps:Ee,placeholder:De,hiddenInputValuesDivider:Oe,required:ke,mod:Ae,renderOption:je,renderPill:Me,onRemove:Ne,onClear:Pe,onMaxValues:Fe,scrollAreaProps:Ie,chevronColor:Le,attributes:Re,clearSearchOnChange:ze,openOnFocus:Be,loading:Ve,loadingPosition:He,...Ue}=t,V=Rt(Se),We=tp(m),Ge=np(We),Ke=(0,H.useRef)({}),qe=Ap({opened:h,defaultOpened:g,onDropdownOpen:()=>{_?.(),b&&qe.selectFirstOption()},onDropdownClose:()=>{v?.(),qe.resetSelectedOption()}}),{styleProps:Je,rest:{type:Ye,autoComplete:Xe,...Ze}}=li(Ue),[Qe,$e]=Yt({value:l,defaultValue:u,finalValue:[],onChange:d}),[et,tt]=Yt({value:D,defaultValue:O,finalValue:``,onChange:k}),nt=e=>{tt(e),qe.resetSelectedOption()},rt=G({name:`MultiSelect`,classes:{},props:t,classNames:n,styles:a,unstyled:o,attributes:Re}),{resolvedClassNames:it,resolvedStyles:at}=Ur({props:t,styles:a,classNames:n}),ot=e=>{f?.(e),e.key===` `&&!he&&(e.preventDefault(),qe.toggleDropdown()),e.key===`Backspace`&&et.length===0&&Qe.length>0&&(Ne?.(Qe[Qe.length-1]),$e(Qe.slice(0,Qe.length-1)))},st=Qe.map((e,t)=>{let n=Ge[`${e}`]||Ke.current[`${e}`];return Me?(0,U.jsx)(H.Fragment,{children:Me({option:n,value:e,onRemove:()=>{$e(Qe.filter(t=>e!==t)),Ne?.(e)},disabled:j})},`${e}-${t}`):(0,U.jsx)(wg,{withRemoveButton:!A&&!Ge[`${e}`]?.disabled,onRemove:()=>{$e(Qe.filter(t=>e!==t)),Ne?.(e)},unstyled:o,disabled:j,...rt(`pill`),children:n?.label||e},`${e}-${t}`)});(0,H.useEffect)(()=>{y&&qe.selectFirstOption()},[y,et]),(0,H.useEffect)(()=>{Qe.forEach(e=>{`${e}`in Ge&&(Ke.current[`${e}`]=Ge[`${e}`])})},[Ge,Qe]);let ct=(0,U.jsx)(Np.ClearButton,{...Te,onClear:()=>{Pe?.(),$e([]),nt(``)}}),lt=jg({data:We,value:Qe}),ut=Ce&&Qe.length>0&&!j&&!A,dt=ut?{paddingInlineEnd:Mg[c]??Mg.sm}:void 0;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(Np,{store:qe,classNames:it,styles:at,unstyled:o,size:c,readOnly:A,__staticSelector:`MultiSelect`,attributes:Re,onOptionSubmit:e=>{x?.(e),ze&&nt(``),qe.updateSelectedOptionIndex(`selected`),Qe.includes(Ge[`${e}`].value)?($e(Qe.filter(t=>t!==Ge[`${e}`].value)),Ne?.(Ge[`${e}`].value)):Qe.length<me?$e([...Qe,Ge[`${e}`].value]):Fe?.()},...S,children:[(0,U.jsx)(Np.DropdownTarget,{children:(0,U.jsx)(kg,{...Je,__staticSelector:`MultiSelect`,classNames:it,styles:at,unstyled:o,size:c,className:r,style:i,variant:p,disabled:j,radius:P,__defaultRightSection:(0,U.jsx)(Np.Chevron,{size:c,error:pe,unstyled:o,color:Le}),__clearSection:ct,__clearable:ut,__clearSectionMode:we,rightSection:ee,rightSectionPointerEvents:I||`none`,rightSectionWidth:F,rightSectionProps:te,leftSection:ne,leftSectionWidth:re,leftSectionPointerEvents:ie,leftSectionProps:L,loading:Ve,loadingPosition:He,inputContainer:ae,inputWrapperOrder:oe,withAsterisk:se,labelProps:ce,descriptionProps:le,errorProps:ue,wrapperProps:de,description:fe,label:R,error:pe,withErrorStyles:ye,__stylesApiProps:{...t,rightSectionPointerEvents:I||`none`,multiline:!0},pointer:!he,onClick:()=>he?qe.openDropdown():qe.toggleDropdown(),"data-expanded":qe.dropdownOpened||void 0,id:V,required:ke,mod:Ae,attributes:Re,children:(0,U.jsxs)(wg.Group,{attributes:Re,disabled:j,unstyled:o,...rt(`pillsList`,{style:dt}),children:[st,(0,U.jsx)(Np.EventsTarget,{autoComplete:Xe,withExpandedAttribute:!0,children:(0,U.jsx)(kg.Field,{...Ze,id:V,placeholder:De,type:!he&&!De?`hidden`:`visible`,...rt(`inputField`),unstyled:o,onFocus:e=>{M?.(e),Be&&he&&qe.openDropdown()},onBlur:e=>{N?.(e),qe.closeDropdown(),nt(``)},onKeyDown:ot,value:et,onChange:e=>{nt(e.currentTarget.value),he&&qe.openDropdown(),y&&qe.selectFirstOption()},disabled:j,readOnly:A||!he,pointer:!he})})]})})}),(0,U.jsx)(cm,{data:B?lt:We,hidden:A||j,filter:C,search:et,limit:w,hiddenWhenEmpty:!ge,withScrollArea:T,maxDropdownHeight:E,filterOptions:he,value:Qe,checkIconPosition:ve,withCheckIcon:z,withAlignedLabels:_e,nothingFoundMessage:ge,unstyled:o,labelId:R?`${V}-label`:void 0,"aria-label":R?void 0:Ue[`aria-label`],renderOption:je,scrollAreaProps:Ie})]}),(0,U.jsx)(Np.HiddenInput,{name:be,valuesDivider:Oe,value:Qe,form:xe,disabled:j,...Ee})]})});Pg.classes={...Cf.classes,...Np.classes},Pg.displayName=`@mantine/core/MultiSelect`;var Fg={root:`m_f0824112`,description:`m_57492dcc`,section:`m_690090b5`,label:`m_1f6ac4c4`,body:`m_f07af9d2`,children:`m_e17b862f`,chevron:`m_1fd8a00b`},Ig=Cn((e,{variant:t,color:n,childrenOffset:r,autoContrast:i})=>{let a=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:t||`light`,autoContrast:i});return{root:{"--nl-bg":n||t?a.background:void 0,"--nl-hover":n||t?a.hover:void 0,"--nl-color":n||t?a.color:void 0},children:{"--nl-offset":ot(r)}}}),Lg=Ri(e=>{let t=W(`NavLink`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,opened:c,defaultOpened:l,onChange:u,children:d,active:f,disabled:p,leftSection:m,rightSection:h,label:g,description:_,disableRightSectionRotation:v,noWrap:y,childrenOffset:b,autoContrast:x,mod:S,attributes:C,onClick:w,onKeyDown:T,keepMounted:E,...D}=t,O=G({name:`NavLink`,props:t,classes:Fg,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:C,vars:s,varsResolver:Ig}),[k,A]=Yt({value:c,defaultValue:l,finalValue:!1,onChange:u}),j=!!d,M=e=>{w?.(e),j&&(e.preventDefault(),A(!k))};return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(dl,{...O(`root`),component:`a`,onClick:M,onKeyDown:e=>{T?.(e),e.nativeEvent.code===`Space`&&j&&(e.preventDefault(),A(!k))},unstyled:o,mod:[{disabled:p,active:f,expanded:k},S],...D,children:[m&&(0,U.jsx)(q,{component:`span`,...O(`section`),mod:{position:`left`},children:m}),(0,U.jsxs)(q,{...O(`body`),mod:{"no-wrap":y},children:[(0,U.jsx)(q,{component:`span`,...O(`label`),children:g}),(0,U.jsx)(q,{component:`span`,mod:{active:f},...O(`description`),children:_})]}),(j||h!==void 0)&&(0,U.jsx)(q,{...O(`section`),component:`span`,mod:{rotate:k&&!v,position:`right`},children:j&&h===void 0?(0,U.jsx)(Pf,{...O(`chevron`)}):h})]}),j&&(0,U.jsx)(Ji,{expanded:k,keepMounted:E,...O(`collapse`),children:(0,U.jsx)(`div`,{...O(`children`),children:d})})]})});Lg.classes=Fg,Lg.varsResolver=Ig,Lg.displayName=`@mantine/core/NavLink`;var Rg={root:`m_a513464`,icon:`m_a4ceffb`,loader:`m_b0920b15`,body:`m_a49ed24`,title:`m_3feedf16`,description:`m_3d733a3a`,closeButton:`m_919a4d88`},zg={withCloseButton:!0},Bg=Cn((e,{radius:t,color:n})=>({root:{"--notification-radius":t===void 0?void 0:st(t),"--notification-color":n?Un(n,e):void 0}})),Vg=K(e=>{let t=W(`Notification`,zg,e),{className:n,color:r,radius:i,loading:a,withCloseButton:o,withBorder:s,title:c,icon:l,children:u,onClose:d,closeButtonProps:f,classNames:p,style:m,styles:h,unstyled:g,vars:_,mod:v,loaderProps:y,role:b,attributes:x,...S}=t,C=G({name:`Notification`,classes:Rg,props:t,className:n,style:m,classNames:p,styles:h,unstyled:g,attributes:x,vars:_,varsResolver:Bg});return(0,U.jsxs)(q,{...C(`root`),mod:[{"data-with-icon":!!l||a,"data-with-border":s},v],role:b||`alert`,...S,children:[l&&!a&&(0,U.jsx)(`div`,{...C(`icon`),children:l}),a&&(0,U.jsx)(cu,{size:28,color:r,...C(`loader`),...y}),(0,U.jsxs)(`div`,{...C(`body`),children:[c&&(0,U.jsx)(`div`,{...C(`title`),children:c}),(0,U.jsx)(q,{...C(`description`),mod:{"data-with-title":!!c},children:u})]}),o&&(0,U.jsx)(xu,{iconSize:16,color:`gray`,...f,unstyled:g,onClick:e=>{f?.onClick?.(e),d?.()},...C(`closeButton`)})]})});Vg.classes=Rg,Vg.varsResolver=Bg,Vg.displayName=`@mantine/core/Notification`;function Hg(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}var Ug;(function(e){e.event=`event`,e.props=`prop`})(Ug||={});function Wg(){}function Gg(e){var t,n=void 0;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return t&&r.length===t.length&&r.every(function(e,n){return e===t[n]})?n:(t=r,n=e.apply(void 0,r),n)}}function Kg(e){return!!(e||``).match(/\d/)}function qg(e){return e==null}function Jg(e){return typeof e==`number`&&isNaN(e)}function Yg(e){return qg(e)||Jg(e)||typeof e==`number`&&!isFinite(e)}function Xg(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,`\\$&`)}function Zg(e){switch(e){case`lakh`:return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case`wan`:return/(\d)(?=(\d{4})+(?!\d))/g;default:return/(\d)(?=(\d{3})+(?!\d))/g}}function Qg(e,t,n){var r=Zg(n),i=e.search(/[1-9]/);return i=i===-1?e.length:i,e.substring(0,i)+e.substring(i,e.length).replace(r,`$1`+t)}function $g(e){var t=(0,H.useRef)(e);return t.current=e,(0,H.useRef)(function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return t.current.apply(t,e)}).current}function e_(e,t){t===void 0&&(t=!0);var n=e[0]===`-`,r=n&&t;e=e.replace(`-`,``);var i=e.split(`.`);return{beforeDecimal:i[0],afterDecimal:i[1]||``,hasNegation:n,addNegation:r}}function t_(e){if(!e)return e;var t=e[0]===`-`;t&&(e=e.substring(1,e.length));var n=e.split(`.`),r=n[0].replace(/^0+/,``)||`0`,i=n[1]||``;return(t?`-`:``)+r+(i?`.`+i:``)}function n_(e,t,n){for(var r=``,i=n?`0`:``,a=0;a<=t-1;a++)r+=e[a]||i;return r}function r_(e,t){return Array(t+1).join(e)}function i_(e){var t=e+``,n=t[0]===`-`?`-`:``;n&&(t=t.substring(1));var r=t.split(/[eE]/g),i=r[0],a=r[1];if(a=Number(a),!a)return n+i;i=i.replace(`.`,``);var o=1+a,s=i.length;return o<0?i=`0.`+r_(`0`,Math.abs(o))+i:o>=s?i+=r_(`0`,o-s):i=(i.substring(0,o)||`0`)+`.`+i.substring(o),n+i}function a_(e,t,n){if([``,`-`].indexOf(e)!==-1)return e;var r=(e.indexOf(`.`)!==-1||n)&&t,i=e_(e),a=i.beforeDecimal,o=i.afterDecimal,s=i.hasNegation,c=parseFloat(`0.`+(o||`0`)),l=(o.length<=t?`0.`+o:c.toFixed(t)).split(`.`),u=a;a&&Number(l[0])&&(u=a.split(``).reverse().reduce(function(e,t,n){return e.length>n?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e},l[0]));var d=n_(l[1]||``,t,n),f=s?`-`:``,p=r?`.`:``;return``+f+u+p+d}function o_(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move(`character`,t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var s_=Gg(function(e,t){for(var n=0,r=0,i=e.length,a=t.length;e[n]===t[n]&&n<i;)n++;for(;e[i-1-r]===t[a-1-r]&&a-r>n&&i-r>n;)r++;return{from:{start:n,end:i-r},to:{start:n,end:a-r}}}),c_=function(e,t){var n=Math.min(e.selectionStart,t);return{from:{start:n,end:e.selectionEnd},to:{start:n,end:t}}};function l_(e,t,n){return Math.min(Math.max(e,t),n)}function u_(e){return Math.max(e.selectionStart,e.selectionEnd)}function d_(){return typeof navigator<`u`&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function f_(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:``}}function p_(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,i=e.formattedValueIndex;return t[r]===n[i]}function m_(e,t,n,r,i,a,o){o===void 0&&(o=p_);var s=i.findIndex(function(e){return e}),c=e.slice(0,s);!t&&!n.startsWith(c)&&(t=c,n=c+n,r+=c.length);for(var l=n.length,u=e.length,d={},f=Array(l),p=0;p<l;p++){f[p]=-1;for(var m=0,h=u;m<h;m++)if(o({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:p,formattedValueIndex:m})&&d[m]!==!0){f[p]=m,d[m]=!0;break}}for(var g=r;g<l&&(f[g]===-1||!a(n[g]));)g++;var _=g===l||f[g]===-1?u:f[g];for(g=r-1;g>0&&f[g]===-1;)g--;var v=g===-1||f[g]===-1?0:f[g]+1;return v>_?_:r-v<_-r?v:_}function h_(e,t,n,r){var i=e.length;if(t=l_(t,0,i),r===`left`){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=i&&!n[t];)t++;t>i&&(t=n.lastIndexOf(!0))}return t===-1&&(t=i),t}function g_(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Kg(e[n])||Kg(e[n-1]));return t}function __(e,t,n,r,i,a){a===void 0&&(a=Wg);var o=$g(function(e,t){var n,a;return Yg(e)?(a=``,n=``):typeof e==`number`||t?(a=typeof e==`number`?i_(e):e,n=r(a)):(a=i(e,void 0),n=r(a)),{formattedValue:n,numAsString:a}}),s=(0,H.useState)(function(){return o(qg(e)?t:e,n)}),c=s[0],l=s[1],u=$g(function(e,t){e.formattedValue!==c.formattedValue&&l({formattedValue:e.formattedValue,numAsString:e.value}),a(e,t)}),d=e,f=n;qg(e)&&(d=c.numAsString,f=!0);var p=o(d,f);return(0,H.useMemo)(function(){l(p)},[p.formattedValue]),(0,H.useEffect)(function(){if(!qg(t)&&qg(e)&&c.formattedValue!==``){var n=parseFloat(c.numAsString);u({formattedValue:c.formattedValue,value:c.numAsString,floatValue:isNaN(n)?void 0:n},{event:void 0,source:Ug.props})}},[]),[c,u]}function v_(e){return e.replace(/[^0-9]/g,``)}function y_(e){return e}function b_(e){var t=e.type;t===void 0&&(t=`text`);var n=e.displayType;n===void 0&&(n=`input`);var r=e.customInput,i=e.renderText,a=e.getInputRef,o=e.format;o===void 0&&(o=y_);var s=e.removeFormatting;s===void 0&&(s=v_);var c=e.defaultValue,l=e.valueIsNumericString,u=e.onValueChange,d=e.isAllowed,f=e.onChange;f===void 0&&(f=Wg);var p=e.onKeyDown;p===void 0&&(p=Wg);var m=e.onMouseUp;m===void 0&&(m=Wg);var h=e.onFocus;h===void 0&&(h=Wg);var g=e.onBlur;g===void 0&&(g=Wg);var _=e.value,v=e.getCaretBoundary;v===void 0&&(v=g_);var y=e.isValidInputCharacter;y===void 0&&(y=Kg);var b=e.isCharacterSame,x=Hg(e,[`type`,`displayType`,`customInput`,`renderText`,`getInputRef`,`format`,`removeFormatting`,`defaultValue`,`valueIsNumericString`,`onValueChange`,`isAllowed`,`onChange`,`onKeyDown`,`onMouseUp`,`onFocus`,`onBlur`,`value`,`getCaretBoundary`,`isValidInputCharacter`,`isCharacterSame`]),S=__(_,c,!!l,o,s,u),C=S[0],w=C.formattedValue,T=C.numAsString,E=S[1],D=(0,H.useRef)(),O=(0,H.useRef)({formattedValue:w,numAsString:T}),k=function(e,t){O.current={formattedValue:e.formattedValue,numAsString:e.value},E(e,t)},A=(0,H.useState)(!1),j=A[0],M=A[1],N=(0,H.useRef)(null),P=(0,H.useRef)({setCaretTimeout:null,focusTimeout:null});(0,H.useEffect)(function(){return M(!0),function(){clearTimeout(P.current.setCaretTimeout),clearTimeout(P.current.focusTimeout)}},[]);var ee=o,F=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},I=function(e,t,n){e.selectionStart===0&&e.selectionEnd===e.value.length||(o_(e,t),P.current.setCaretTimeout=setTimeout(function(){e.value===n&&e.selectionStart!==t&&o_(e,t)},0))},te=function(e,t,n){return h_(e,t,v(e),n)},ne=function(e,t,n){var r=v(t),i=m_(t,w,e,n,r,y,b);return i=h_(t,i,r),i},re=function(e){var t=e.formattedValue;t===void 0&&(t=``);var n=e.input,r=e.source,i=e.event,a=e.numAsString,o;if(n){var s=e.inputValue||n.value,c=u_(n);n.value=t,o=ne(s,t,c),o!==void 0&&I(n,o,t)}t!==w&&k(F(t,a),{event:i,source:r})};(0,H.useEffect)(function(){var e=O.current,t=e.formattedValue,n=e.numAsString;(w!==t||T!==n)&&k(F(w,T),{event:void 0,source:Ug.props})},[w,T]);var ie=N.current?u_(N.current):void 0;(typeof window<`u`?H.useLayoutEffect:H.useEffect)(function(){var e=N.current;if(w!==O.current.formattedValue&&e){var t=ne(O.current.formattedValue,w,ie);e.value=w,I(e,t,w)}},[w]);var L=function(e,t,n){var r=t.target,i=D.current?c_(D.current,r.selectionEnd):s_(w,e),a=Object.assign(Object.assign({},i),{lastValue:w}),o=s(e,a),c=ee(o);if(o=s(c,void 0),d&&!d(F(c,o))){var l=t.target,u=ne(e,w,u_(l));return l.value=w,I(l,u,w),!1}return re({formattedValue:c,numAsString:o,inputValue:e,event:t,source:n,input:t.target}),!0},ae=function(e,t){t===void 0&&(t=0),D.current={selectionStart:e.selectionStart,selectionEnd:e.selectionEnd+t}},oe=function(e){var t=e.target.value;L(t,e,Ug.event)&&f(e),D.current=void 0},se=function(e){var t=e.target,n=e.key,r=t.selectionStart,i=t.selectionEnd,a=t.value;a===void 0&&(a=``);var o;n===`ArrowLeft`||n===`Backspace`?o=Math.max(r-1,0):n===`ArrowRight`?o=Math.min(r+1,a.length):n===`Delete`&&(o=r);var s=0;n===`Delete`&&r===i&&(s=1);var c=n===`ArrowLeft`||n===`ArrowRight`;if(o===void 0||r!==i&&!c){p(e),ae(t,s);return}var l=o;c?(l=te(a,o,n===`ArrowLeft`?`left`:`right`),l!==o&&e.preventDefault()):n===`Delete`&&!y(a[o])?l=te(a,o,`right`):n===`Backspace`&&!y(a[o])&&(l=te(a,o,`left`)),l!==o&&I(t,l,a),p(e),ae(t,s)},ce=function(e){var t=e.target,n=function(){var e=t.selectionStart,n=t.selectionEnd,r=t.value;if(r===void 0&&(r=``),e===n){var i=te(r,e);i!==e&&I(t,i,r)}};n(),requestAnimationFrame(function(){n()}),m(e),ae(t)},le=function(e){e.persist&&e.persist();var t=e.target,n=e.currentTarget;N.current=t,P.current.focusTimeout=setTimeout(function(){var r=t.selectionStart,i=t.selectionEnd,a=t.value;a===void 0&&(a=``);var o=te(a,r);o!==r&&!(r===0&&i===a.length)&&I(t,o,a),h(Object.assign(Object.assign({},e),{currentTarget:n}))},0)},ue=function(e){N.current=null,clearTimeout(P.current.focusTimeout),clearTimeout(P.current.setCaretTimeout),g(e)},de=j&&d_()?`numeric`:void 0,fe=Object.assign({inputMode:de},x,{type:t,value:w,onChange:oe,onKeyDown:se,onMouseUp:ce,onFocus:le,onBlur:ue});if(n===`text`)return i?H.createElement(H.Fragment,null,i(w,x)||null):H.createElement(`span`,Object.assign({},x,{ref:a}),w);if(r){var R=r;return H.createElement(R,Object.assign({},fe,{ref:a}))}return H.createElement(`input`,Object.assign({},fe,{ref:a}))}function x_(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,i=t.prefix;i===void 0&&(i=``);var a=t.suffix;a===void 0&&(a=``);var o=t.allowNegative,s=t.thousandsGroupStyle;if(s===void 0&&(s=`thousand`),e===``||e===`-`)return e;var c=S_(t),l=c.thousandSeparator,u=c.decimalSeparator,d=n!==0&&e.indexOf(`.`)!==-1||n&&r,f=e_(e,o),p=f.beforeDecimal,m=f.afterDecimal,h=f.addNegation;return n!==void 0&&(m=n_(m,n,!!r)),l&&(p=Qg(p,l,s)),i&&(p=i+p),a&&(m+=a),h&&(p=`-`+p),e=p+(d&&u||``)+m,e}function S_(e){var t=e.decimalSeparator;t===void 0&&(t=`.`);var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=`,`),r||=[t,`.`],{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function C_(e,t){e===void 0&&(e=``);var n=RegExp(`(-)`),r=RegExp(`(-)(.)*(-)`),i=n.test(e),a=r.test(e);return e=e.replace(/-/g,``),i&&!a&&t&&(e=`-`+e),e}function w_(e,t){return RegExp(`(^-)|[0-9]|`+Xg(e),t?`g`:void 0)}function T_(e,t,n){return e===``?!0:!t?.match(/\d/)&&!n?.match(/\d/)&&typeof e==`string`&&!isNaN(Number(e))}function E_(e,t,n){var r;t===void 0&&(t=f_(e));var i=n.allowNegative,a=n.prefix;a===void 0&&(a=``);var o=n.suffix;o===void 0&&(o=``);var s=n.decimalScale,c=t.from,l=t.to,u=l.start,d=l.end,f=S_(n),p=f.allowedDecimalSeparators,m=f.decimalSeparator,h=e[d]===m;if(Kg(e)&&(e===a||e===o)&&t.lastValue===``)return e;if(d-u===1&&p.indexOf(e[u])!==-1){var g=s===0?``:m;e=e.substring(0,u)+g+e.substring(u+1,e.length)}var _=function(e,t,n){var r=!1,i=!1;a.startsWith(`-`)?r=!1:e.startsWith(`--`)?(r=!1,i=!0):o.startsWith(`-`)&&e.length===o.length?r=!1:e[0]===`-`&&(r=!0);var s=+!!r;return i&&(s=2),s&&(e=e.substring(s),t-=s,n-=s),{value:e,start:t,end:n,hasNegation:r}},v=_(e,u,d),y=v.hasNegation;r=v,e=r.value,u=r.start,d=r.end;var b=_(t.lastValue,c.start,c.end),x=b.start,S=b.end,C=b.value,w=e.substring(u,d);e.length&&C.length&&(x>C.length-o.length||S<a.length)&&!(w&&o.startsWith(w))&&(e=C);var T=0;e.startsWith(a)?T+=a.length:u<a.length&&(T=u),e=e.substring(T),d-=T;var E=e.length,D=e.length-o.length;e.endsWith(o)?E=D:(d>D||d>e.length-o.length)&&(E=d),e=e.substring(0,E),e=C_(y?`-`+e:e,i),e=(e.match(w_(m,!0))||[]).join(``);var O=e.indexOf(m);e=e.replace(new RegExp(Xg(m),`g`),function(e,t){return t===O?`.`:``});var k=e_(e,i),A=k.beforeDecimal,j=k.afterDecimal,M=k.addNegation;return l.end-l.start<c.end-c.start&&A===``&&h&&!parseFloat(j)&&(e=M?`-`:``),e}function D_(e,t){var n=t.prefix;n===void 0&&(n=``);var r=t.suffix;r===void 0&&(r=``);var i=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]===`-`;i.fill(!1,0,Math.min(n.length+ +!!a,e.length));var o=e.length;return i.fill(!1,o-r.length+1,o+1),i}function O_(e){var t=S_(e),n=t.thousandSeparator,r=t.decimalSeparator,i=e.prefix;i===void 0&&(i=``);var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw Error(`
307
307
  Decimal separator can't be same as thousand separator.
308
308
  thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
309
309
  decimalSeparator: `+r+` (default value for decimalSeparator is .)
@@ -311,18 +311,18 @@ React keys must be passed directly to JSX without using spread:
311
311
  Prefix can't start with '-' when allowNegative is true.
312
312
  prefix: `+i+`
313
313
  allowNegative: `+a+`
314
- `),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function P_(e){e=N_(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=Yg);var a=e.onBlur;a===void 0&&(a=Yg);var o=e.thousandSeparator,s=e.decimalScale,c=e.fixedDecimalScale,l=e.prefix;l===void 0&&(l=``);var u=e.defaultValue,d=e.value,f=e.valueIsNumericString,p=e.onValueChange,m=qg(e,[`decimalSeparator`,`allowedDecimalSeparators`,`thousandsGroupStyle`,`suffix`,`allowNegative`,`allowLeadingZeros`,`onKeyDown`,`onBlur`,`thousandSeparator`,`decimalScale`,`fixedDecimalScale`,`prefix`,`defaultValue`,`value`,`valueIsNumericString`,`onValueChange`]),h=D_(e),g=h.decimalSeparator,_=h.allowedDecimalSeparators,v=function(t){return E_(t,e)},y=function(t,n){return j_(t,n,e)},b=Qg(d)?u:d,x=f??A_(b,l,t);Qg(d)?Qg(u)||(x||=typeof u==`number`):x||=typeof d==`number`;var S=function(e){return e_(e)?e:(typeof e==`number`&&(e=l_(e)),x&&typeof s==`number`?u_(e,s,!!c):e)},C=S_(S(d),S(u),!!x,v,y,p),w=C[0],T=w.numAsString,E=w.formattedValue,D=C[1];return Object.assign(Object.assign({},m),{value:E,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===g?!0:Zg(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,i=e.currentValueIndex,a=e.formattedValueIndex,o=t[i],u=r[a],f=f_(n,t).to,p=function(e){return y(e).indexOf(`.`)+l.length};return d===0&&c&&s&&t[f.start]===g&&p(t)<i&&p(r)>a?!1:i>=f.start&&i<f.end&&_&&_.includes(o)&&u===g?!0:o===u},onValueChange:D,format:v,removeFormatting:y,getCaretBoundary:function(t){return M_(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,a=t.selectionStart,u=t.selectionEnd,d=t.value;if(d===void 0&&(d=``),(r===`Backspace`||r===`Delete`)&&u<l.length&&d!==`-`){e.preventDefault();return}if(a!==u){i(e);return}r===`Backspace`&&d[0]===`-`&&a===l.length+1&&n&&d_(t,1),s&&c&&(r===`Backspace`&&d[a-1]===g?(d_(t,a-1),e.preventDefault()):r===`Delete`&&d[a]===g&&e.preventDefault()),_?.includes(r)&&d[a]===g&&d_(t,a+1);var f=o===!0?`,`:o;r===`Backspace`&&d[a-1]===f&&d_(t,a-1),r===`Delete`&&d[a]===f&&d_(t,a+1),i(e)},onBlur:function(t){var n=T;n.match(/\d/g)||(n=``),r||(n=o_(n)),c&&s&&(n=u_(n,s,c)),n!==T&&D({formattedValue:E_(n,e),value:n,floatValue:parseFloat(n)},{event:t,source:Jg.event}),a(t)}})}function F_(e){var t=P_(e);return H.createElement(T_,Object.assign({},t))}function I_({direction:e,style:t,...n}){return(0,U.jsx)(`svg`,{style:{width:`var(--ni-chevron-size)`,height:`var(--ni-chevron-size)`,transform:e===`up`?`rotate(180deg)`:void 0,...t},viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...n,children:(0,U.jsx)(`path`,{d:`M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}var L_={root:`m_e2f5cd4e`,controls:`m_95e17d22`,control:`m_80b4b171`},R_=/^(0\.0*|-0(\.0*)?)$/,z_=/^-?0\d+(\.\d+)?\.?$/,B_=/\.\d*0$/,V_=/^-?\d+\.$/;function H_(e){return typeof e==`string`&&e!==``&&!Number.isNaN(Number(e))}function U_(e){return typeof e==`bigint`}function W_(e){return typeof e==`number`?e<2**53-1:e===``||H_(e)&&Number(e)<2**53-1}function G_(e,t){return e===``||e===`-`||!t&&e.startsWith(`-`)?!1:/^-?\d+$/.test(e)}function K_(e,t){return typeof e==`bigint`?!0:e===``||G_(e,t)}function q_(e){if(!/^-?\d+$/.test(e))return null;try{return BigInt(e)}catch{return null}}function J_(e){if(typeof e==`bigint`)return e;if(typeof e==`number`&&Number.isFinite(e)&&Number.isInteger(e))return BigInt(e)}function Y_(e,t,n){return t!==void 0&&e<t?t:n!==void 0&&e>n?n:e}function X_(e){return e.toString().replace(`.`,``).length}function Z_(e,t){return(typeof e==`number`?e<2**53-1:!Number.isNaN(Number(e)))&&!Number.isNaN(e)&&X_(t)<14&&t!==``}function Q_(e,t,n){return e===void 0?!0:(t===void 0||e>=t)&&(n===void 0||e<=n)}var $_={size:`sm`,step:1,clampBehavior:`blur`,allowDecimal:!0,allowNegative:!0,withKeyboardEvents:!0,allowLeadingZeros:!0,trimLeadingZeroesOnBlur:!0,startValue:0,allowedDecimalSeparators:[`.`,`,`]},ev=Cn((e,{size:t})=>({controls:{"--ni-chevron-size":at(t,`ni-chevron-size`)}}));function tv(e,t,n){let r=e.toString(),i=V_.test(r),a=r.replace(/^0+(?=\d)/,``),o=parseFloat(a);if(Number.isNaN(o))return a;if(o>2**53-1)return t===void 0?a:t;let s=gt(o,n,t);return i?`${s.toString().replace(/^0+(?=\d)/,``)}.`:s}function nv(e,t){if(e===``||e===`-`)return e;let n=q_(e);return n===null?e:t.clampBehavior===`blur`?Y_(n,t.min,t.max):n}var rv=Li(e=>{let t=W(`NumberInput`,$_,e),{className:n,classNames:r,styles:i,unstyled:a,vars:o,onChange:s,onValueChange:c,value:l,defaultValue:u,max:d,min:f,step:p,hideControls:m,rightSection:h,isAllowed:g,clampBehavior:_,onBlur:v,allowDecimal:y,decimalScale:b,onKeyDown:x,onKeyDownCapture:S,handlersRef:C,startValue:w,disabled:T,rightSectionPointerEvents:E,allowNegative:D,readOnly:O,size:k,rightSectionWidth:A,stepHoldInterval:j,stepHoldDelay:M,allowLeadingZeros:N,withKeyboardEvents:P,trimLeadingZeroesOnBlur:ee,allowedDecimalSeparators:F,selectAllOnFocus:I,onMinReached:te,onMaxReached:ne,onFocus:re,attributes:ie,ref:L,...ae}=t,oe=D??!0,se=N??!0,ce=G({name:`NumberInput`,classes:L_,props:t,classNames:r,styles:i,unstyled:a,attributes:ie,vars:o,varsResolver:ev}),{resolvedClassNames:le,resolvedStyles:ue}=Ur({classNames:r,styles:i,props:t}),de=(0,H.useRef)(U_(l)||U_(u)?`bigint`:`number`);U_(l)?de.current=`bigint`:typeof l==`number`&&(de.current=`number`);let fe=de.current===`bigint`,[R,pe]=Yt({value:l,defaultValue:u,finalValue:``,onChange:s}),me=M!==void 0&&j!==void 0,he=(0,H.useRef)(null),ge=(0,H.useRef)(null),z=(0,H.useRef)(0),_e=typeof f==`number`?f:void 0,ve=typeof d==`number`?d:void 0,B=typeof p==`number`?p:$_.step,ye=typeof w==`number`?w:$_.startValue,be=J_(f),xe=J_(d),Se=J_(p)??BigInt(1),Ce=J_(w)??BigInt(0),we=e=>!G_(e,oe)||se&&z_.test(e)?e:q_(e)??e,Te=e=>{let t=Number(e);return Number.isSafeInteger(t)?t:void 0},Ee=(e,t)=>{t.source===`event`&&pe(fe?we(e.value):Z_(e.floatValue,e.value)&&!R_.test(e.value)&&!(se&&z_.test(e.value))&&!B_.test(e.value)&&!V_.test(e.value)?e.floatValue:e.value),c?.(e,t)},De=e=>{let t=String(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},Oe=e=>{he.current&&e!==void 0&&he.current.setSelectionRange(e,e)},ke=(0,H.useRef)(rt);ke.current=()=>{if(fe){if(!K_(R,oe))return;let e,t=R;if(typeof t==`bigint`){let n=t+Se;xe!==void 0&&n>xe&&ne?.(),e=xe!==void 0&&n>xe?xe:n}else if(typeof t==`string`&&t!==``){let n=q_(t);if(n===null)return;let r=n+Se;xe!==void 0&&r>xe&&ne?.(),e=xe!==void 0&&r>xe?xe:r}else e=Y_(Ce,be,xe);let n=e.toString();pe(e),c?.({floatValue:Te(e),formattedValue:n,value:n},{source:`increment`}),setTimeout(()=>Oe(he.current?.value.length),0);return}if(!W_(R))return;let e,t=De(R),n=De(B),r=Math.max(t,n),i=10**r;if(!H_(R)&&(typeof R!=`number`||Number.isNaN(R)))e=gt(ye,_e,ve);else if(ve!==void 0){let t=(Math.round(Number(R)*i)+Math.round(B*i))/i;t>ve&&ne?.(),e=t<=ve?t:ve}else e=(Math.round(Number(R)*i)+Math.round(B*i))/i;let a=e.toFixed(r);pe(parseFloat(a)),c?.({floatValue:parseFloat(a),formattedValue:a,value:a},{source:`increment`}),setTimeout(()=>Oe(he.current?.value.length),0)};let Ae=(0,H.useRef)(rt);Ae.current=()=>{if(fe){if(!K_(R,oe))return;let e,t=be===void 0?oe?void 0:BigInt(0):be,n=R;if(typeof n==`bigint`){let r=n-Se;t!==void 0&&r<t&&te?.(),e=t!==void 0&&r<t?t:r}else if(typeof n==`string`&&n!==``){let r=q_(n);if(r===null)return;let i=r-Se;t!==void 0&&i<t&&te?.(),e=t!==void 0&&i<t?t:i}else e=Y_(Ce,t,xe);let r=e.toString();pe(e),c?.({floatValue:Te(e),formattedValue:r,value:r},{source:`decrement`}),setTimeout(()=>Oe(he.current?.value.length),0);return}if(!W_(R))return;let e,t=_e===void 0?oe?-(2**53-1):0:_e,n=De(R),r=De(B),i=Math.max(n,r),a=10**i;if(!H_(R)&&typeof R!=`number`||Number.isNaN(R))e=gt(ye,t,ve);else{let n=(Math.round(Number(R)*a)-Math.round(B*a))/a;t!==void 0&&n<t&&te?.(),e=t!==void 0&&n<t?t:n}let o=e.toFixed(i);pe(parseFloat(o)),c?.({floatValue:parseFloat(o),formattedValue:o,value:o},{source:`decrement`}),setTimeout(()=>Oe(he.current?.value.length),0)};let je=e=>{let t=e.clipboardData.getData(`text`),n=ae.decimalSeparator||`.`,r=(F||[`.`,`,`]).filter(e=>e!==n);if(r.some(e=>t.includes(e))){e.preventDefault();let i=t;r.forEach(e=>{i=i.split(e).join(n)});let a=he.current;if(a){let e=a.selectionStart??0,t=a.selectionEnd??0,n=a.value,r=n.substring(0,e)+i+n.substring(t);(Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,`value`)?.set)?.call(a,r),a.dispatchEvent(new Event(`change`,{bubbles:!0}));let o=e+i.length;setTimeout(()=>Oe(o),0)}}ae.onPaste?.(e)},Me=e=>{x?.(e),!(O||!P)&&(e.key===`ArrowUp`&&(e.preventDefault(),ke.current?.()),e.key===`ArrowDown`&&(e.preventDefault(),Ae.current?.()))},Ne=e=>{if(S?.(e),e.key===`Backspace`){let t=he.current;t&&t.selectionStart===0&&t.selectionStart===t.selectionEnd&&(e.preventDefault(),window.setTimeout(()=>Oe(0),0))}},Pe=e=>{I&&setTimeout(()=>e.currentTarget.select(),0),re?.(e)},Fe=e=>{let t=R;fe?(_===`blur`&&typeof t==`bigint`&&(t=Y_(t,be,xe)),ee&&typeof t==`string`&&(t=nv(t,{min:be,max:xe,clampBehavior:_}))):(_===`blur`&&typeof t==`number`&&(t=gt(t,_e,ve)),ee&&typeof t==`string`&&De(t)<15&&(t=tv(t,ve,_e))),R!==t&&pe(t),v?.(e)};Kt(C,{increment:ke.current,decrement:Ae.current});let Ie=e=>{e?ke.current?.():Ae.current?.(),z.current+=1},Le=e=>{if(Ie(e),me){let t=typeof j==`number`?j:j(z.current);ge.current=window.setTimeout(()=>Le(e),t)}},Re=(e,t)=>{e.preventDefault(),he.current?.focus(),Ie(t),me&&(ge.current=window.setTimeout(()=>Le(t),M))},ze=()=>{ge.current&&window.clearTimeout(ge.current),ge.current=null,z.current=0},Be=(0,U.jsxs)(`div`,{...ce(`controls`),children:[(0,U.jsx)(dl,{...ce(`control`),tabIndex:-1,"aria-hidden":!0,disabled:T||typeof R==`number`&&ve!==void 0&&R>=ve||typeof R==`bigint`&&xe!==void 0&&R>=xe,mod:{direction:`up`},onMouseDown:e=>e.preventDefault(),onPointerDown:e=>{Re(e,!0)},onPointerUp:ze,onPointerLeave:ze,children:(0,U.jsx)(I_,{direction:`up`})}),(0,U.jsx)(dl,{...ce(`control`),tabIndex:-1,"aria-hidden":!0,disabled:T||typeof R==`number`&&_e!==void 0&&R<=_e||typeof R==`bigint`&&be!==void 0&&R<=be,mod:{direction:`down`},onMouseDown:e=>e.preventDefault(),onPointerDown:e=>{Re(e,!1)},onPointerUp:ze,onPointerLeave:ze,children:(0,U.jsx)(I_,{direction:`down`})})]});return(0,U.jsx)(Cf,{component:F_,allowNegative:D,className:Tn(L_.root,n),size:k,...ae,inputMode:fe?`numeric`:`decimal`,readOnly:O,disabled:T,value:typeof R==`bigint`?R.toString():R,getInputRef:Jt(L,he),onValueChange:Ee,rightSection:m||O||!(fe?K_(R,oe):W_(R))?h:h||Be,classNames:le,styles:ue,unstyled:a,__staticSelector:`NumberInput`,decimalScale:fe?0:y?b:0,onPaste:je,onFocus:Pe,onKeyDown:Me,onKeyDownCapture:Ne,rightSectionPointerEvents:E??(T?`none`:void 0),rightSectionWidth:A??`var(--ni-right-section-width-${k||`sm`})`,allowLeadingZeros:N,allowedDecimalSeparators:F,onBlur:Fe,attributes:ie,isAllowed:e=>{if(!(!g||g(e)))return!1;if(_!==`strict`)return!0;if(!fe)return Q_(e.floatValue,_e,ve);if(e.value===``||e.value===`-`)return!0;let t=q_(e.value);return t===null?!0:(be===void 0||t>=be)&&(xe===void 0||t<=xe)}})});rv.classes={...Cf.classes,...L_},rv.varsResolver=ev,rv.displayName=`@mantine/core/NumberInput`;var[iv,av]=Je(`Pagination.Root component was not found in tree`),ov={root:`m_4addd315`,control:`m_326d024a`,dots:`m_4ad7767d`},sv={withPadding:!0},cv=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,active:o,disabled:s,withPadding:c,mod:l,...u}=W(`PaginationControl`,sv,e),d=av(),f=s||d.disabled;return(0,U.jsx)(dl,{disabled:f,mod:[{active:o,disabled:f,"with-padding":c},l],...d.getStyles(`control`,{className:n,style:r,classNames:t,styles:i,active:!f}),...u})});cv.classes=ov,cv.displayName=`@mantine/core/PaginationControl`;function lv({style:e,children:t,path:n,...r}){return(0,U.jsx)(`svg`,{viewBox:`0 0 16 16`,xmlns:`http://www.w3.org/2000/svg`,style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`,...e},...r,children:(0,U.jsx)(`path`,{d:n,fill:`currentColor`})})}var uv=e=>(0,U.jsx)(lv,{...e,path:`M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z`}),dv=e=>(0,U.jsx)(lv,{...e,path:`M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z`}),fv=e=>(0,U.jsx)(lv,{...e,path:`M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z`}),pv=e=>(0,U.jsx)(lv,{...e,path:`M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z`}),mv={icon:e=>(0,U.jsx)(lv,{...e,path:`M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z`})},hv=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,icon:o,...s}=W(`PaginationDots`,mv,e);return(0,U.jsx)(q,{...av().getStyles(`dots`,{className:n,style:r,styles:i,classNames:t}),...s,children:(0,U.jsx)(o,{style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`}})})});hv.classes=ov,hv.displayName=`@mantine/core/PaginationDots`;function gv({icon:e,name:t,action:n,type:r}){let i={icon:e},a=e=>{let{icon:a,...o}=W(t,i,e),s=av(),c=r===`next`?s.active===s.total:s.active===1;return(0,U.jsx)(cv,{disabled:s.disabled||c,onClick:s[n],withPadding:!1,...o,children:(0,U.jsx)(a,{className:`mantine-rotate-rtl`,style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`}})})};return a.displayName=`@mantine/core/${t}`,Fi(a)}var _v=gv({icon:uv,name:`PaginationNext`,action:`onNext`,type:`next`}),vv=gv({icon:dv,name:`PaginationPrevious`,action:`onPrevious`,type:`previous`}),yv=gv({icon:fv,name:`PaginationFirst`,action:`onFirst`,type:`previous`}),bv=gv({icon:pv,name:`PaginationLast`,action:`onLast`,type:`next`});function xv({dotsIcon:e}){let t=av();return(0,U.jsx)(U.Fragment,{children:t.range.map((n,r)=>n===`dots`?(0,U.jsx)(hv,{icon:e},r):(0,U.jsx)(cv,{active:n===t.active,"aria-current":n===t.active?`page`:void 0,onClick:()=>t.onChange(n),disabled:t.disabled,...t.getItemProps?.(n),children:t.getItemProps?.(n)?.children??n},r))})}xv.displayName=`@mantine/core/PaginationItems`;var Sv={siblings:1,boundaries:1},Cv=Cn((e,{size:t,radius:n,color:r,autoContrast:i})=>({root:{"--pagination-control-radius":n===void 0?void 0:st(n),"--pagination-control-size":at(t,`pagination-control-size`),"--pagination-control-fz":ct(t),"--pagination-active-bg":r?Un(r,e):void 0,"--pagination-active-color":Zn(i,e)?Yn({color:r,theme:e,autoContrast:i}):void 0}})),wv=K(e=>{let t=W(`PaginationRoot`,Sv,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,total:c,value:l,defaultValue:u,onChange:d,disabled:f,siblings:p,boundaries:m,color:h,radius:g,onNextPage:_,onPreviousPage:v,onFirstPage:y,onLastPage:b,getItemProps:x,autoContrast:S,startValue:C,attributes:w,...T}=t,E=G({name:`Pagination`,classes:ov,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:w,vars:s,varsResolver:Cv}),{range:D,setPage:O,next:k,previous:A,active:j,first:M,last:N}=Qt({page:l,initialPage:u,onChange:d,total:c,siblings:p,boundaries:m,startValue:C});return(0,U.jsx)(iv,{value:{total:c,range:D,active:j,disabled:f,getItemProps:x,onChange:O,onNext:dt(_,k),onPrevious:dt(v,A),onFirst:dt(y,M),onLast:dt(b,N),getStyles:E},children:(0,U.jsx)(q,{...E(`root`),...T})})});wv.classes=ov,wv.varsResolver=Cv,wv.displayName=`@mantine/core/PaginationRoot`;var Tv={withControls:!0,withPages:!0,siblings:1,boundaries:1,gap:8},Ev=K(e=>{let{withEdges:t,withControls:n,getControlProps:r,nextIcon:i,previousIcon:a,lastIcon:o,firstIcon:s,dotsIcon:c,total:l,gap:u,hideWithOnePage:d,withPages:f,...p}=W(`Pagination`,Tv,e);return l<=0||d&&l===1?null:(0,U.jsx)(wv,{total:l,...p,children:(0,U.jsxs)(Eu,{gap:u,children:[t&&(0,U.jsx)(yv,{icon:s,...r?.(`first`)}),n&&(0,U.jsx)(vv,{icon:a,...r?.(`previous`)}),f&&(0,U.jsx)(xv,{dotsIcon:c}),n&&(0,U.jsx)(_v,{icon:i,...r?.(`next`)}),t&&(0,U.jsx)(bv,{icon:o,...r?.(`last`)})]})})});Ev.classes=ov,Ev.displayName=`@mantine/core/Pagination`,Ev.Root=wv,Ev.Control=cv,Ev.Dots=hv,Ev.First=yv,Ev.Last=bv,Ev.Next=_v,Ev.Previous=vv,Ev.Items=xv;function Dv({reveal:e}){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,style:{width:`var(--psi-icon-size)`,height:`var(--psi-icon-size)`},children:e?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{fill:`none`,d:`M0 0h256v256H0z`}),(0,U.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`16`,d:`M48 40l160 176M154.91 157.6a40 40 0 01-53.82-59.2M135.53 88.71a40 40 0 0132.3 35.53`}),(0,U.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`16`,d:`M208.61 169.1C230.41 149.58 240 128 240 128s-32-72-112-72a126 126 0 00-20.68 1.68M74 68.6C33.23 89.24 16 128 16 128s32 72 112 72a118.05 118.05 0 0054-12.6`})]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{fill:`none`,d:`M0 0h256v256H0z`}),(0,U.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`16`,d:`M128 56c-80 0-112 72-112 72s32 72 112 72 112-72 112-72-32-72-112-72z`}),(0,U.jsx)(`circle`,{cx:`128`,cy:`128`,r:`40`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`16`})]})})}var Ov={root:`m_f61ca620`,input:`m_ccf8da4c`,innerInput:`m_f2d85dd2`,visibilityToggle:`m_b1072d44`},kv={visibilityToggleIcon:Dv,size:`sm`},Av=Cn((e,{size:t})=>({root:{"--psi-icon-size":at(t,`psi-icon-size`),"--psi-button-size":at(t,`psi-button-size`)}})),jv=K(e=>{let t=W(`PasswordInput`,kv,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,required:c,error:l,leftSection:u,disabled:d,id:f,variant:p,inputContainer:m,description:h,label:g,size:_,errorProps:v,descriptionProps:y,labelProps:b,withAsterisk:x,inputWrapperOrder:S,wrapperProps:C,radius:w,rightSection:T,rightSectionWidth:E,rightSectionPointerEvents:D,leftSectionWidth:O,visible:k,defaultVisible:A,onVisibilityChange:j,visibilityToggleIcon:M,visibilityToggleButtonProps:N,rightSectionProps:P,leftSectionProps:ee,leftSectionPointerEvents:F,withErrorStyles:I,mod:te,attributes:ne,...re}=t,ie=Rt(f),[L,ae]=Yt({value:k,defaultValue:A,finalValue:!1,onChange:j}),oe=()=>ae(!L),se=G({name:`PasswordInput`,classes:Ov,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:ne,vars:s,varsResolver:Av}),{resolvedClassNames:ce,resolvedStyles:le}=Ur({classNames:n,styles:a,props:t}),{styleProps:ue,rest:de}=li(re),fe=v?.id||`${ie}-error`,R=y?.id||`${ie}-description`,pe=`${l&&typeof l!=`boolean`?fe:``} ${h?R:``}`,me=pe.trim().length>0?pe.trim():void 0,he=(0,U.jsx)(gu,{...se(`visibilityToggle`),disabled:d,radius:w,"aria-pressed":L,tabIndex:-1,"aria-label":`Toggle password visibility`,...N,variant:N?.variant??`subtle`,color:`gray`,unstyled:o,onTouchEnd:e=>{e.preventDefault(),N?.onTouchEnd?.(e),oe()},onMouseDown:e=>{e.preventDefault(),N?.onMouseDown?.(e),oe()},onKeyDown:e=>{N?.onKeyDown?.(e),e.key===` `&&(e.preventDefault(),oe())},children:(0,U.jsx)(M,{reveal:L})});return(0,U.jsx)(bf.Wrapper,{required:c,id:ie,label:g,error:l,description:h,size:_,classNames:ce,styles:le,__staticSelector:`PasswordInput`,__stylesApiProps:t,unstyled:o,withAsterisk:x,inputWrapperOrder:S,inputContainer:m,variant:p,labelProps:{...b,htmlFor:ie},descriptionProps:{...y,id:R},errorProps:{...v,id:fe},mod:te,attributes:ne,...se(`root`),...ue,...C,children:(0,U.jsx)(bf,{component:`div`,error:l,leftSection:u,size:_,classNames:{...ce,input:Tn(Ov.input,ce?.input)},styles:le,radius:w,disabled:d,__staticSelector:`PasswordInput`,__stylesApiProps:t,rightSectionWidth:E,rightSection:T??he,variant:p,unstyled:o,leftSectionWidth:O,rightSectionPointerEvents:D||`all`,rightSectionProps:P,leftSectionProps:ee,leftSectionPointerEvents:F,withAria:!1,withErrorStyles:I,attributes:ne,children:(0,U.jsx)(`input`,{required:c,"data-invalid":!!l||void 0,"data-with-left-section":!!u||void 0,...se(`innerInput`),disabled:d,id:ie,...de,"aria-describedby":me,autoComplete:de.autoComplete||`off`,type:L?`text`:`password`})})})});jv.classes={...Cf.classes,...Ov},jv.varsResolver=Av,jv.displayName=`@mantine/core/PasswordInput`;var[Mv,Nv]=Je(`Progress.Root component was not found in tree`),Pv={root:`m_db6d6462`,section:`m_2242eb65`,"stripes-animation":`m_81a374bd`,"stripes-animation-vertical":`m_e0fb7a86`,label:`m_91e40b74`},Fv=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ProgressLabel`,null,e);return(0,U.jsx)(q,{...Nv().getStyles(`label`,{className:n,style:r,classNames:t,styles:i}),...o})});Fv.classes=Pv,Fv.displayName=`@mantine/core/ProgressLabel`;var Iv=Cn((e,{size:t,radius:n,transitionDuration:r})=>({root:{"--progress-size":at(t,`progress-size`),"--progress-radius":n===void 0?void 0:st(n),"--progress-transition-duration":typeof r==`number`?`${r}ms`:void 0}})),Lv=K(e=>{let t=W(`ProgressRoot`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,autoContrast:c,transitionDuration:l,orientation:u,attributes:d,mod:f,...p}=t,m=G({name:`Progress`,classes:Pv,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:Iv});return(0,U.jsx)(Mv,{value:{getStyles:m,autoContrast:c},children:(0,U.jsx)(q,{mod:[{orientation:u},f],...m(`root`),...p})})});Lv.classes=Pv,Lv.varsResolver=Iv,Lv.displayName=`@mantine/core/ProgressRoot`;var Rv={withAria:!0},zv=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,value:o,withAria:s,color:c,striped:l,animated:u,mod:d,...f}=W(`ProgressSection`,Rv,e),p=Nv(),m=wr(),h=s?{role:`progressbar`,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o,"aria-valuetext":`${o}%`}:{};return(0,U.jsx)(q,{...p.getStyles(`section`,{className:n,classNames:t,styles:i,style:r}),...f,...h,mod:[{striped:l||u,animated:u},d],__vars:{"--progress-section-size":`${o}%`,"--progress-section-color":Un(c,m),"--progress-label-color":Zn(p.autoContrast,m)?Yn({color:c,theme:m,autoContrast:p.autoContrast}):void 0}})});zv.classes=Pv,zv.displayName=`@mantine/core/ProgressSection`;var Bv=K(e=>{let t=W(`Progress`,null,e),{value:n,classNames:r,styles:i,vars:a,color:o,striped:s,animated:c,"aria-label":l,...u}=t,{resolvedClassNames:d,resolvedStyles:f}=Ur({classNames:r,styles:i,props:t});return(0,U.jsx)(Lv,{classNames:d,styles:f,vars:a,...u,children:(0,U.jsx)(zv,{value:n,color:o,striped:s,animated:c,"aria-label":l})})});Bv.classes=Pv,Bv.displayName=`@mantine/core/Progress`,Bv.Section=zv,Bv.Root=Lv,Bv.Label=Fv;var Vv=(0,H.createContext)(null),Hv=Li((e=>{let{value:t,defaultValue:n,onChange:r,size:i,wrapperProps:a,children:o,name:s,readOnly:c,disabled:l,...u}=W(`RadioGroup`,null,e),d=Rt(s),[f,p]=Yt({value:t,defaultValue:n,finalValue:``,onChange:r});return(0,U.jsx)(Vv,{value:{value:f,onChange:e=>!c&&p(typeof e==`string`?e:e.currentTarget.value),size:i,name:d,disabled:l},children:(0,U.jsx)(bf.Wrapper,{size:i,...a,...u,labelElement:`div`,__staticSelector:`RadioGroup`,children:(0,U.jsx)(Pp,{role:`radiogroup`,children:o})})})}));Hv.classes=bf.Wrapper.classes,Hv.displayName=`@mantine/core/RadioGroup`;var Uv={card:`m_9dc8ae12`},Wv=(0,H.createContext)(null),Gv={withBorder:!0},Kv=Cn((e,{radius:t})=>({card:{"--card-radius":st(t)}})),qv=K(e=>{let t=W(`RadioCard`,Gv,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,checked:c,mod:l,withBorder:u,value:d,onClick:f,name:p,onKeyDown:m,attributes:h,...g}=t,_=G({name:`RadioCard`,classes:Uv,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:Kv,rootSelector:`card`}),{dir:v}=Ki(),y=(0,H.use)(Vv),b=typeof c==`boolean`?c:y?.value===d||!1,x=p||y?.name,S=e=>{if(m?.(e),x&&[`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`].includes(e.nativeEvent.code)){e.preventDefault();let t=Array.from(document.querySelectorAll(`[role="radio"][name="${x}"]`)),n=t.findIndex(t=>t===e.target),r=n+1>=t.length?0:n+1,i=n-1<0?t.length-1:n-1;e.nativeEvent.code===`ArrowDown`&&(t[r].focus(),t[r].click()),e.nativeEvent.code===`ArrowUp`&&(t[i].focus(),t[i].click()),e.nativeEvent.code===`ArrowLeft`&&(t[v===`ltr`?i:r].focus(),t[v===`ltr`?i:r].click()),e.nativeEvent.code===`ArrowRight`&&(t[v===`ltr`?r:i].focus(),t[v===`ltr`?r:i].click())}};return(0,U.jsx)(Wv,{value:{checked:b},children:(0,U.jsx)(dl,{mod:[{"with-border":u,checked:b},l],..._(`card`),...g,role:`radio`,"aria-checked":b,name:x,onClick:e=>{f?.(e),y?.onChange(d||``)},onKeyDown:S})})});qv.displayName=`@mantine/core/RadioCard`,qv.classes=Uv,qv.varsResolver=Kv;function Jv({size:e,style:t,...n}){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 5 5`,style:{width:V(e),height:V(e),...t},"aria-hidden":!0,...n,children:(0,U.jsx)(`circle`,{cx:`2.5`,cy:`2.5`,r:`2.5`,fill:`currentColor`})})}var Yv={indicator:`m_717d7ff6`,icon:`m_3e4da632`,"indicator--outline":`m_2980836c`},Xv={icon:Jv},Zv=Cn((e,{radius:t,color:n,size:r,iconColor:i,variant:a,autoContrast:o})=>{let s=Hn({color:n||e.primaryColor,theme:e}),c=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{indicator:{"--radio-size":at(r,`radio-size`),"--radio-radius":t===void 0?void 0:st(t),"--radio-color":a===`outline`?c:Un(n,e),"--radio-icon-size":at(r,`radio-icon-size`),"--radio-icon-color":i?Un(i,e):Zn(o,e)?Yn({color:n,theme:e,autoContrast:o}):void 0}}}),Qv=K(e=>{let t=W(`RadioIndicator`,Xv,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,icon:c,radius:l,color:u,iconColor:d,autoContrast:f,checked:p,mod:m,variant:h,disabled:g,attributes:_,...v}=t,y=G({name:`RadioIndicator`,classes:Yv,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:_,vars:s,varsResolver:Zv,rootSelector:`indicator`}),b=(0,H.use)(Wv),x=typeof p==`boolean`?p:b?.checked||!1;return(0,U.jsx)(q,{...y(`indicator`,{variant:h}),variant:h,mod:[{checked:x,disabled:g},m],...v,children:(0,U.jsx)(c,{...y(`icon`)})})});Qv.displayName=`@mantine/core/RadioIndicator`,Qv.classes=Yv,Qv.varsResolver=Zv;var $v={root:`m_f3f1af94`,inner:`m_89c4f5e4`,icon:`m_f3ed6b2b`,radio:`m_8a3dbb89`,"radio--outline":`m_1bfe9d39`},ey={labelPosition:`right`,withErrorStyles:!0},ty=Cn((e,{size:t,radius:n,color:r,iconColor:i,variant:a,autoContrast:o})=>{let s=Hn({color:r||e.primaryColor,theme:e}),c=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{root:{"--radio-size":at(t,`radio-size`),"--radio-radius":n===void 0?void 0:st(n),"--radio-color":a===`outline`?c:Un(r,e),"--radio-icon-color":i?Un(i,e):Zn(o,e)?Yn({color:r,theme:e,autoContrast:o}):void 0,"--radio-icon-size":at(t,`radio-icon-size`)}}}),ny=K(e=>{let t=W(`Radio`,ey,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,id:c,size:l,label:u,labelPosition:d,description:f,error:p,radius:m,color:h,variant:g,disabled:_,wrapperProps:v,icon:y=Jv,rootRef:b,iconColor:x,onChange:S,mod:C,attributes:w,withErrorStyles:T,checked:E,...D}=t,O=G({name:`Radio`,classes:$v,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:w,vars:s,varsResolver:ty}),k=(0,H.use)(Vv),A=k?.size??l,j=t.size?l:A,{styleProps:M,rest:N}=li(D),P=Rt(c),ee=k?k.value===N.value:void 0,F={checked:ee??E,name:N.name??k?.name,onChange:e=>{k?.onChange(e),S?.(e)},disabled:k?.disabled??_};return(0,U.jsx)(Zp,{...O(`root`),__staticSelector:`Radio`,__stylesApiProps:t,id:P,size:j,labelPosition:d,label:u,description:f,error:p,disabled:F.disabled,classNames:n,styles:a,unstyled:o,"data-checked":(ee??E)||void 0,variant:g,ref:b,mod:C,attributes:w,...M,...v,children:(0,U.jsxs)(q,{...O(`inner`),mod:{"label-position":d},children:[(0,U.jsx)(q,{...O(`radio`,{focusable:!0,variant:g}),...N,...F,component:`input`,mod:{error:!!p,"with-error-styles":T},id:P,type:`radio`}),(0,U.jsx)(y,{...O(`icon`),"aria-hidden":!0})]})})});ny.classes=$v,ny.varsResolver=ty,ny.displayName=`@mantine/core/Radio`,ny.Group=Hv,ny.Card=qv,ny.Indicator=Qv;function ry({offset:e,position:t,defaultOpened:n}){let[r,i]=(0,H.useState)(n),a=(0,H.useRef)(null),{x:o,y:s,elements:c,refs:l,update:u,placement:d}=Qc({placement:t,middleware:[oc({crossAxis:!0,padding:5,rootBoundary:`document`})]}),f=d.includes(`right`)?e:t.includes(`left`)?e*-1:0,p=d.includes(`bottom`)?e:t.includes(`top`)?e*-1:0,m=(0,H.useCallback)(({clientX:e,clientY:t})=>{l.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e+f,top:t+p,right:e,bottom:t}}})},[c.reference]);return(0,H.useEffect)(()=>{if(l.floating.current){let e=a.current;e.addEventListener(`mousemove`,m);let t=Ja(l.floating.current);return t.forEach(e=>{e.addEventListener(`scroll`,u)}),()=>{e.removeEventListener(`mousemove`,m),t.forEach(e=>{e.removeEventListener(`scroll`,u)})}}},[c.reference,l.floating.current,u,m,r]),{handleMouseMove:m,x:o,y:s,opened:r,setOpened:i,boundaryRef:a,floating:l.setFloating}}var iy={tooltip:`m_1b3c8819`,arrow:`m_f898399f`},ay={refProp:`ref`,withinPortal:!0,offset:10,position:`right`,zIndex:nt(`popover`)},oy=Cn((e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:st(t),"--tooltip-bg":n?Un(n,e):void 0,"--tooltip-color":n?`var(--mantine-color-white)`:void 0}})),sy=K(e=>{let t=W(`TooltipFloating`,ay,e),{children:n,refProp:r,withinPortal:i,style:a,className:o,classNames:s,styles:c,unstyled:l,radius:u,color:d,label:f,offset:p,position:m,multiline:h,zIndex:g,disabled:_,defaultOpened:v,variant:y,vars:b,portalProps:x,attributes:S,ref:C,...w}=t,T=wr(),E=G({name:`TooltipFloating`,props:t,classes:iy,className:o,style:a,classNames:s,styles:c,unstyled:l,attributes:S,rootSelector:`tooltip`,vars:b,varsResolver:oy}),{handleMouseMove:D,x:O,y:k,opened:A,boundaryRef:j,floating:M,setOpened:N}=ry({offset:p,position:m,defaultOpened:v}),P=Sn(n);if(!P)throw Error(`[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let ee=Jt(j,_n(P),C),F=P.props,I=e=>{F.onMouseEnter?.(e),D(e),N(!0)},te=e=>{F.onMouseLeave?.(e),N(!1)};return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ml,{...x,withinPortal:i,children:(0,U.jsx)(q,{...w,...E(`tooltip`,{style:{...Ni(a,T),zIndex:g,display:!_&&A?`block`:`none`,top:(k&&Math.round(k))??``,left:(O&&Math.round(O))??``}}),variant:y,ref:M,mod:{multiline:h},children:f})}),(0,H.cloneElement)(P,{...F,[r]:ee,onMouseEnter:I,onMouseLeave:te})]})});sy.classes=iy,sy.varsResolver=oy,sy.displayName=`@mantine/core/TooltipFloating`;var cy=(0,H.createContext)({withinGroup:!1}),ly={openDelay:0,closeDelay:0};function uy(e){let{openDelay:t,closeDelay:n,children:r}=W(`TooltipGroup`,ly,e);return(0,U.jsx)(cy,{value:{withinGroup:!0},children:(0,U.jsx)(Gc,{delay:{open:t,close:n},children:r})})}uy.displayName=`@mantine/core/TooltipGroup`,uy.extend=e=>e;function dy(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function fy(e){let t=dy(e.middlewares),n=[ac(e.offset)];return t.shift&&n.push(oc(typeof t.shift==`boolean`?{padding:8}:{padding:8,...t.shift})),t.flip&&n.push(typeof t.flip==`boolean`?cc():cc(t.flip)),n.push(fc({element:e.arrowRef,padding:e.arrowOffset})),t.inline?n.push(typeof t.inline==`boolean`?dc():dc(t.inline)):e.inline&&n.push(dc()),n}function py(e){let[t,n]=(0,H.useState)(e.defaultOpened),r=typeof e.opened==`boolean`?e.opened:t,i=(0,H.use)(cy).withinGroup,a=Rt(),o=(0,H.useCallback)(e=>{n(e),e&&g(a)},[a]),{x:s,y:c,context:l,refs:u,placement:d,middlewareData:{arrow:{x:f,y:p}={}}}=Qc({strategy:e.strategy,placement:e.position,open:r,onOpenChange:o,middleware:fy(e),whileElementsMounted:Hs}),{delay:m,currentId:h,setCurrentId:g}=Kc(l,{id:a}),{getReferenceProps:_,getFloatingProps:v}=nl([Vc(l,{enabled:e.events?.hover,delay:i?m:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch}),el(l,{enabled:e.events?.focus,visibleOnly:!0}),il(l,{role:`tooltip`}),Xc(l,{enabled:e.opened===void 0})]);Et(()=>{e.onPositionChange?.(d)},[d]);let y=r&&h&&h!==a;return{x:s,y:c,arrowX:f,arrowY:p,reference:u.setReference,floating:u.setFloating,getFloatingProps:v,getReferenceProps:_,isGroupPhase:y,opened:r,placement:d}}var my={position:`top`,refProp:`ref`,withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,offset:5,transitionProps:{duration:100,transition:`fade`},events:{hover:!0,focus:!1,touch:!1},zIndex:nt(`popover`),middlewares:{flip:!0,shift:!0,inline:!1}},hy=Cn((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:i,variant:r||`filled`});return{tooltip:{"--tooltip-radius":t===void 0?void 0:st(t),"--tooltip-bg":n?a.background:void 0,"--tooltip-color":n?a.color:void 0}}}),gy=K(e=>{let t=W(`Tooltip`,my,e),{children:n,position:r,refProp:i,label:a,openDelay:o,closeDelay:s,onPositionChange:c,opened:l,defaultOpened:u,withinPortal:d,radius:f,color:p,classNames:m,styles:h,unstyled:g,style:_,className:v,withArrow:y,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,offset:w,transitionProps:T,multiline:E,events:D,zIndex:O,disabled:k,onClick:A,onMouseEnter:j,onMouseLeave:M,inline:N,variant:P,keepMounted:ee,vars:F,portalProps:I,mod:te,floatingStrategy:ne,middlewares:re,autoContrast:ie,attributes:L,target:ae,ref:oe,...se}=t,{dir:ce}=Ki(),le=(0,H.useRef)(null),ue=py({position:Sl(ce,r),closeDelay:s,openDelay:o,onPositionChange:c,opened:l,defaultOpened:u,events:D,arrowRef:le,arrowOffset:x,offset:typeof w==`number`?w+(y?b/2:0):w,inline:N,strategy:ne,middlewares:re});(0,H.useEffect)(()=>{let e=ae instanceof HTMLElement?ae:typeof ae==`string`?document.querySelector(ae):ae?.current||null;e&&ue.reference(e)},[ae,ue]);let de=G({name:`Tooltip`,props:t,classes:iy,className:v,style:_,classNames:m,styles:h,unstyled:g,attributes:L,rootSelector:`tooltip`,vars:F,varsResolver:hy}),fe=Sn(n);if(!ae&&!fe)throw Error(`[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let R=de(`tooltip`);if(ae){let e=Bl(T,{duration:100,transition:`fade`});return(0,U.jsx)(U.Fragment,{children:(0,U.jsx)(Ml,{...I,withinPortal:d,children:(0,U.jsx)(Rl,{...e,keepMounted:ee,mounted:!k&&!!ue.opened,duration:ue.isGroupPhase?10:e.duration,children:e=>(0,U.jsxs)(q,{...se,"data-fixed":ne===`fixed`||void 0,variant:P,mod:[{multiline:E},te],...R,...ue.getFloatingProps({ref:ue.floating,className:R.className,style:{...R.style,...e,zIndex:O,top:ue.y??0,left:ue.x??0}}),children:[a,(0,U.jsx)(xl,{ref:le,arrowX:ue.arrowX,arrowY:ue.arrowY,visible:y,position:ue.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,...de(`arrow`)})]})})})})}let pe=fe.props,me=Jt(ue.reference,_n(fe),oe),he=Bl(T,{duration:100,transition:`fade`});return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ml,{...I,withinPortal:d,children:(0,U.jsx)(Rl,{...he,keepMounted:ee,mounted:!k&&!!ue.opened,duration:ue.isGroupPhase?10:he.duration,children:e=>(0,U.jsxs)(q,{...se,"data-fixed":ne===`fixed`||void 0,variant:P,mod:[{multiline:E},te],...ue.getFloatingProps({ref:ue.floating,className:de(`tooltip`).className,style:{...de(`tooltip`).style,...e,zIndex:O,top:ue.y??0,left:ue.x??0}}),children:[a,(0,U.jsx)(xl,{ref:le,arrowX:ue.arrowX,arrowY:ue.arrowY,visible:y,position:ue.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,...de(`arrow`)})]})})}),(0,H.cloneElement)(fe,ue.getReferenceProps({onClick:A,onMouseEnter:j,onMouseLeave:M,onMouseMove:t.onMouseMove,onPointerDown:t.onPointerDown,onPointerEnter:t.onPointerEnter,...pe,className:Tn(v,pe.className),[i]:me}))]})});gy.classes=iy,gy.varsResolver=hy,gy.displayName=`@mantine/core/Tooltip`,gy.Floating=sy,gy.Group=uy;function _y({size:e,thickness:t,sum:n,value:r,root:i,offset:a}){let o=(e*.9-t*2)/2,s=Math.PI*o*2/100,c=i||r===void 0?`${(100-n)*s}, ${n*s}`:`${r*s}, ${(100-r)*s}`;return{strokeWidth:Number.isNaN(t)?12:t,cx:e/2||0,cy:e/2||0,r:o||0,transform:i?`scale(1, -1) translate(0, -${e})`:void 0,strokeDasharray:c,strokeDashoffset:i?0:a||0}}function vy({size:e,value:t,offset:n,sum:r,thickness:i,root:a,color:o,lineRoundCaps:s,tooltip:c,getStyles:l,display:u,...d}){let f=wr();return(0,U.jsx)(gy.Floating,{disabled:!c,label:c,children:(0,U.jsx)(q,{component:`circle`,...d,...l(`curve`),__vars:{"--curve-color":o?Un(o,f):void 0},fill:`none`,strokeLinecap:s?`round`:`butt`,..._y({sum:r,size:e,thickness:i,value:t,offset:n,root:a})})})}vy.displayName=`@mantine/core/Curve`;function yy({size:e,thickness:t,sections:n,renderRoundedLineCaps:r,rootColor:i,sectionGap:a=0}){let o=n.reduce((e,t)=>e+t.value,0),s=Math.PI*((e*.9-t*2)/2)*2,c=s,l=[],u=[],d=a/360*100;for(let e=0;e<n.length;e+=1){let t=Math.max(0,n[e].value-d);l.push({sum:o,offset:c,data:{...n[e],value:t},root:!1}),c-=n[e].value/100*s}if(l.push({sum:o,offset:c,data:{color:i},root:!0}),u.push({...l[l.length-1],lineRoundCaps:!1}),l.length>2){u.push({...l[0],lineRoundCaps:r}),u.push({...l[l.length-2],lineRoundCaps:r});for(let e=1;e<=l.length-3;e+=1)u.push({...l[e],lineRoundCaps:!1})}else u.push({...l[0],lineRoundCaps:r});return u}var by={root:`m_b32e4812`,svg:`m_d43b5134`,curve:`m_b1ca1fbf`,label:`m_b23f9dc4`};function xy(e,t){return Math.min(e||12,(t||120)/4)}var Sy={size:120,thickness:12,startAngle:270},Cy=Cn((e,{size:t,thickness:n,transitionDuration:r,startAngle:i})=>({root:{"--rp-size":V(t),"--rp-label-offset":V(n*2),"--rp-transition-duration":r?`${r}ms`:void 0},svg:{"--rp-start-angle":`${i}deg`}})),wy=K(e=>{let t=W(`RingProgress`,Sy,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,label:c,sections:l,size:u,thickness:d,roundCaps:f,rootColor:p,transitionDuration:m,sectionGap:h,startAngle:g,attributes:_,...v}=t,y=G({name:`RingProgress`,classes:by,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:_,vars:s,varsResolver:Cy}),b=xy(d,u),x=yy({size:u,thickness:b,sections:l,renderRoundedLineCaps:f,rootColor:p,sectionGap:h}).map(({data:e,sum:t,root:n,lineRoundCaps:r,offset:i},a)=>(0,H.createElement)(vy,{...e,key:a,size:u,thickness:b,sum:t,offset:i,color:e?.color,root:n,lineRoundCaps:r,getStyles:y}));return(0,U.jsxs)(q,{...y(`root`),size:u,...v,children:[(0,U.jsx)(`svg`,{...y(`svg`),viewBox:`0 0 ${u} ${u}`,children:x}),c&&(0,U.jsx)(`div`,{...y(`label`),children:c})]})});wy.classes=by,wy.varsResolver=Cy,wy.displayName=`@mantine/core/RingProgress`;var Ty={root:`m_cf365364`,indicator:`m_9e182ccd`,label:`m_1738fcb2`,input:`m_1714d588`,control:`m_69686b9b`,innerLabel:`m_78882f40`},Ey={withItemsBorders:!0},Dy=Cn((e,{radius:t,color:n,transitionDuration:r,size:i,transitionTimingFunction:a})=>({root:{"--sc-radius":t===void 0?void 0:st(t),"--sc-color":n?Un(n,e):void 0,"--sc-shadow":n?void 0:`var(--mantine-shadow-xs)`,"--sc-transition-duration":r===void 0?void 0:`${r}ms`,"--sc-transition-timing-function":a,"--sc-padding":at(i,`sc-padding`),"--sc-font-size":ct(i)}})),Oy=Li(e=>{let t=W(`SegmentedControl`,Ey,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,data:c,value:l,defaultValue:u,onChange:d,size:f,name:p,disabled:m,readOnly:h,fullWidth:g,orientation:_,radius:v,color:y,transitionDuration:b,transitionTimingFunction:x,variant:S,autoContrast:C,withItemsBorders:w,mod:T,attributes:E,ref:D,...O}=t,k=G({name:`SegmentedControl`,props:t,classes:Ty,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:E,vars:s,varsResolver:Dy}),A=wr(),j=c.map(e=>vn(e)?{label:`${e}`,value:e}:e),M=cn(),[N,P]=(0,H.useState)(_t()),[ee,F]=(0,H.useState)(null),[I,te]=(0,H.useState)({}),ne=(e,t)=>{I[t]=e,te(I)},[re,ie]=Yt({value:l,defaultValue:u,finalValue:Array.isArray(c)?j.find(e=>!e.disabled)?.value??c[0]?.value??null:null,onChange:d}),L=Rt(p),ae=j.map(e=>(0,H.createElement)(q,{...k(`control`),mod:{active:re===e.value,orientation:_},key:`${e.value}`},(0,H.createElement)(`input`,{...k(`input`),disabled:m||e.disabled,type:`radio`,name:L,value:`${e.value}`,id:`${L}-${e.value}`,checked:re===e.value,onChange:()=>!h&&ie(e.value),"data-focus-ring":A.focusRing,key:`${e.value}-input`}),(0,H.createElement)(q,{component:`label`,...k(`label`),mod:{active:re===e.value&&!(m||e.disabled),disabled:m||e.disabled,"read-only":h},htmlFor:`${L}-${e.value}`,ref:t=>ne(t,`${e.value}`),__vars:{"--sc-label-color":y===void 0?void 0:Yn({color:y,theme:A,autoContrast:C})},key:`${e.value}-label`},(0,U.jsx)(`span`,{...k(`innerLabel`),children:e.label})))),oe=Jt(D,e=>F(e));return nn(()=>{P(_t())},[c.length]),c.length===0?null:(0,U.jsxs)(q,{...k(`root`),variant:S,size:f,ref:oe,mod:[{"full-width":g,orientation:_,initialized:M,"with-items-borders":w},T],...O,role:`radiogroup`,"data-disabled":m,children:[re!==void 0&&(0,U.jsx)(jf,{target:I[`${re}`],parent:ee,component:`span`,transitionDuration:`var(--sc-transition-duration)`,...k(`indicator`)},N),ae]})});Oy.classes=Ty,Oy.varsResolver=Dy,Oy.displayName=`@mantine/core/SegmentedControl`;var ky={size:`sm`,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:`left`,openOnFocus:!0},Ay=Li(e=>{let t=W(`Select`,ky,e),{classNames:n,styles:r,unstyled:i,vars:a,dropdownOpened:o,defaultDropdownOpened:s,onDropdownClose:c,onDropdownOpen:l,onFocus:u,onBlur:d,onClick:f,onChange:p,data:m,value:h,defaultValue:g,selectFirstOptionOnChange:_,selectFirstOptionOnDropdownOpen:v,onOptionSubmit:y,comboboxProps:b,readOnly:x,disabled:S,filter:C,limit:w,withScrollArea:T,maxDropdownHeight:E,size:D,searchable:O,rightSection:k,checkIconPosition:A,withCheckIcon:j,withAlignedLabels:M,nothingFoundMessage:N,name:P,form:ee,searchValue:F,defaultSearchValue:I,onSearchChange:te,allowDeselect:ne,error:re,rightSectionPointerEvents:ie,id:L,clearable:ae,clearSectionMode:oe,clearButtonProps:se,hiddenInputProps:ce,renderOption:le,onClear:ue,autoComplete:de,scrollAreaProps:fe,__defaultRightSection:R,__clearSection:pe,__clearable:me,chevronColor:he,autoSelectOnBlur:ge,openOnFocus:z,attributes:_e,...ve}=t,B=(0,H.useMemo)(()=>tp(m),[m]),ye=(0,H.useRef)({}),be=(0,H.useMemo)(()=>np(B),[B]),xe=Rt(L),[Se,Ce,we]=Yt({value:h,defaultValue:g,finalValue:null,onChange:p}),Te=Se==null?void 0:`${Se}`in be?be[`${Se}`]:ye.current[`${Se}`],Ee=on(Te),[De,Oe,ke]=Yt({value:F,defaultValue:I,finalValue:Te?Te.label:``,onChange:te}),Ae=Ap({opened:o,defaultOpened:s,onDropdownOpen:()=>{l?.(),v?Ae.selectFirstOption():Ae.updateSelectedOptionIndex(`active`,{scrollIntoView:!0})},onDropdownClose:()=>{c?.(),setTimeout(Ae.resetSelectedOption,0)}}),je=e=>{Oe(e),Ae.resetSelectedOption()},{resolvedClassNames:Me,resolvedStyles:Ne}=Ur({props:t,styles:r,classNames:n});(0,H.useEffect)(()=>{_&&Ae.selectFirstOption()},[_,De]),(0,H.useEffect)(()=>{h===null&&je(``),h!=null&&Te&&(Ee?.value!==Te.value||Ee?.label!==Te.label)&&je(Te.label)},[h,Te]),(0,H.useEffect)(()=>{!we&&!ke&&je(Se==null?``:`${Se}`in be?be[`${Se}`]?.label:ye.current[`${Se}`]?.label||``)},[be,Se]),(0,H.useEffect)(()=>{Se&&`${Se}`in be&&(ye.current[`${Se}`]=be[`${Se}`])},[be,Se]);let Pe=(0,U.jsx)(Np.ClearButton,{...se,onClear:()=>{Ce(null,null),je(``),ue?.()}}),Fe=ae&&!!Se&&!S&&!x;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(Np,{store:Ae,__staticSelector:`Select`,classNames:Me,styles:Ne,unstyled:i,readOnly:x,size:D,attributes:_e,keepMounted:ge,onOptionSubmit:e=>{y?.(e);let t=ne&&`${be[e].value}`==`${Se}`?null:be[e],n=t?t.value:null;n!==Se&&Ce(n,t),!we&&je(n==null?``:t?.label||``),Ae.closeDropdown()},...b,children:[(0,U.jsx)(Np.Target,{targetType:O?`input`:`button`,autoComplete:de,withExpandedAttribute:!0,children:(0,U.jsx)(Cf,{id:xe,__defaultRightSection:(0,U.jsx)(Np.Chevron,{size:D,error:re,unstyled:i,color:he}),__clearSection:Pe,__clearable:Fe,__clearSectionMode:oe,rightSection:k,rightSectionPointerEvents:ie||`none`,...ve,size:D,__staticSelector:`Select`,disabled:S,readOnly:x||!O,value:De,onChange:e=>{je(e.currentTarget.value),Ae.openDropdown(),_&&Ae.selectFirstOption()},onFocus:e=>{z&&O&&Ae.openDropdown(),u?.(e)},onBlur:e=>{ge&&Ae.clickSelectedOption(),O&&Ae.closeDropdown();let t=Se!=null&&(`${Se}`in be?be[`${Se}`]:ye.current[`${Se}`]);je(t&&t.label||``),d?.(e)},onClick:e=>{O?Ae.openDropdown():Ae.toggleDropdown(),f?.(e)},classNames:Me,styles:Ne,unstyled:i,pointer:!O,error:re,attributes:_e})}),(0,U.jsx)(cm,{data:B,hidden:x||S,filter:C,search:De,limit:w,hiddenWhenEmpty:!N,withScrollArea:T,maxDropdownHeight:E,filterOptions:!!O&&Te?.label!==De,value:Se,checkIconPosition:A,withCheckIcon:j,withAlignedLabels:M,nothingFoundMessage:N,unstyled:i,labelId:ve.label?`${xe}-label`:void 0,"aria-label":ve.label?void 0:ve[`aria-label`],renderOption:le,scrollAreaProps:fe})]}),(0,U.jsx)(Np.HiddenInput,{value:Se,name:P,form:ee,disabled:S,...ce})]})});Ay.classes={...Cf.classes,...Np.classes},Ay.displayName=`@mantine/core/Select`;function jy(e){if(e!==void 0)return typeof e==`number`?V(e):e}function My({spacing:e,verticalSpacing:t,cols:n,minColWidth:r,autoRows:i,selector:a}){let o=wr(),s=t===void 0?e:t,c=r!==void 0,l=Ge({"--sg-spacing-x":ot(mt(e)),"--sg-spacing-y":ot(mt(s)),"--sg-auto-rows":i,...c?{"--sg-min-col-width":jy(r)}:{"--sg-cols":mt(n)?.toString()}}),u=Ie(o.breakpoints).reduce((t,r)=>(t[r]||(t[r]={}),typeof e==`object`&&e[r]!==void 0&&(t[r][`--sg-spacing-x`]=ot(e[r])),typeof s==`object`&&s[r]!==void 0&&(t[r][`--sg-spacing-y`]=ot(s[r])),!c&&typeof n==`object`&&n[r]!==void 0&&(t[r][`--sg-cols`]=n[r]),t),{});return(0,U.jsx)(oi,{styles:l,media:pt(Ie(u),o.breakpoints).filter(e=>Ie(u[e.value]).length>0).map(e=>({query:`(min-width: ${o.breakpoints[e.value]})`,styles:u[e.value]})),selector:a})}function Ny(e){return typeof e==`object`&&e?Ie(e):[]}function Py(e){return e.sort((e,t)=>Ve(e)-Ve(t))}function Fy({spacing:e,verticalSpacing:t,cols:n,minColWidth:r}){return Py(Array.from(new Set([...Ny(e),...Ny(t),...r===void 0?Ny(n):[]])))}function X({spacing:e,verticalSpacing:t,cols:n,minColWidth:r,autoRows:i,selector:a}){let o=t===void 0?e:t,s=r!==void 0,c=Ge({"--sg-spacing-x":ot(mt(e)),"--sg-spacing-y":ot(mt(o)),"--sg-auto-rows":i,...s?{"--sg-min-col-width":jy(r)}:{"--sg-cols":mt(n)?.toString()}}),l=Fy({spacing:e,verticalSpacing:t,cols:n,minColWidth:r}),u=l.reduce((t,r)=>(t[r]||(t[r]={}),typeof e==`object`&&e[r]!==void 0&&(t[r][`--sg-spacing-x`]=ot(e[r])),typeof o==`object`&&o[r]!==void 0&&(t[r][`--sg-spacing-y`]=ot(o[r])),!s&&typeof n==`object`&&n[r]!==void 0&&(t[r][`--sg-cols`]=n[r]),t),{});return(0,U.jsx)(oi,{styles:c,container:l.map(e=>({query:`simple-grid (min-width: ${e})`,styles:u[e]})),selector:a})}var Iy={container:`m_925c2d2c`,root:`m_2415a157`},Ly={cols:1,spacing:`md`,type:`media`},Ry=K(e=>{let t=W(`SimpleGrid`,Ly,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,cols:c,verticalSpacing:l,spacing:u,type:d,minColWidth:f,autoFlow:p,autoRows:m,attributes:h,...g}=t,_=G({name:`SimpleGrid`,classes:Iy,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s}),v=Mi(),y=f===void 0?void 0:p||`auto-fill`;return d===`container`?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(X,{...t,selector:`.${v}`}),(0,U.jsx)(`div`,{..._(`container`),children:(0,U.jsx)(q,{..._(`root`,{className:v}),...g,"data-auto-cols":y})})]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(My,{...t,selector:`.${v}`}),(0,U.jsx)(q,{..._(`root`,{className:v}),...g,"data-auto-cols":y})]})});Ry.classes=Iy,Ry.displayName=`@mantine/core/SimpleGrid`;var zy={root:`m_18320242`,"skeleton-fade":`m_299c329c`},By={visible:!0,animate:!0},Vy=Cn((e,{width:t,height:n,radius:r,circle:i})=>({root:{"--skeleton-height":V(n),"--skeleton-width":V(i?n:t),"--skeleton-radius":i?`1000px`:r===void 0?void 0:st(r)}})),Hy=K(e=>{let t=W(`Skeleton`,By,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,width:c,height:l,circle:u,visible:d,radius:f,animate:p,mod:m,attributes:h,...g}=t;return(0,U.jsx)(q,{...G({name:`Skeleton`,classes:zy,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:Vy})(`root`),mod:[{visible:d,animate:p},m],...g})});Hy.classes=zy,Hy.varsResolver=Vy,Hy.displayName=`@mantine/core/Skeleton`;var Uy={root:`m_6d731127`},Wy={gap:`md`,align:`stretch`,justify:`flex-start`},Gy=Cn((e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":ot(t),"--stack-align":n,"--stack-justify":r}})),Ky=K(e=>{let t=W(`Stack`,Wy,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,align:c,justify:l,gap:u,variant:d,attributes:f,...p}=t;return(0,U.jsx)(q,{...G({name:`Stack`,props:t,classes:Uy,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:Gy})(`root`),variant:d,...p})});Ky.classes=Uy,Ky.varsResolver=Gy,Ky.displayName=`@mantine/core/Stack`;var[qy,Jy]=Je(`Stepper component was not found in tree`),Yy=()=>null;Yy.displayName=`@mantine/core/StepperCompleted`;var Xy={root:`m_cbb4ea7e`,steps:`m_aaf89d0b`,separator:`m_2a371ac9`,content:`m_78da155d`,step:`m_cbb57068`,"step--horizontal":`m_f56b1e2c`,"step--vertical":`m_833edb7e`,verticalSeparator:`m_6496b3f3`,stepWrapper:`m_818e70b`,stepIcon:`m_1959ad01`,stepIconContent:`m_8faaac38`,stepCompletedIcon:`m_a79331dc`,stepBody:`m_1956aa2a`,stepLabel:`m_12051f6c`,stepDescription:`m_164eea74`},Zy=(e,t)=>typeof e==`function`?(0,U.jsx)(e,{step:t||0}):e,Qy={withIcon:!0,allowStepClick:!0,iconPosition:`left`},$y=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,step:o,state:s,color:c,icon:l,completedIcon:u,progressIcon:d,label:f,description:p,withIcon:m,iconSize:h,loading:g,allowStepClick:_,allowStepSelect:v,iconPosition:y,orientation:b,mod:x,...S}=W(`StepperStep`,Qy,e),C=Jy(),w=wr(),T={classNames:t,styles:i},E=s===`stepCompleted`?null:s===`stepProgress`?d:l,D={"data-progress":s===`stepProgress`||void 0,"data-completed":s===`stepCompleted`||void 0};return(0,U.jsxs)(dl,{...C.getStyles(`step`,{className:n,style:r,variant:C.orientation,...T}),mod:[{"icon-position":y||C.iconPosition,"allow-click":_},x],...D,...S,__vars:{"--step-color":c?Un(c,w):void 0},tabIndex:_?0:-1,children:[m&&(0,U.jsxs)(`span`,{...C.getStyles(`stepWrapper`,T),children:[(0,U.jsxs)(`span`,{...C.getStyles(`stepIcon`,T),...D,children:[(0,U.jsx)(Rl,{mounted:s===`stepCompleted`,transition:`pop`,duration:200,children:e=>(0,U.jsx)(`span`,{...C.getStyles(`stepCompletedIcon`,{style:e,...T}),children:g?(0,U.jsx)(cu,{color:`var(--mantine-color-white)`,size:`calc(var(--stepper-icon-size) / 2)`,...C.getStyles(`stepLoader`,T)}):Zy(u,o)||(0,U.jsx)(Up,{size:`60%`})})}),s===`stepCompleted`?null:(0,U.jsx)(`span`,{...C.getStyles(`stepIconContent`,T),children:g?(0,U.jsx)(cu,{...C.getStyles(`stepLoader`,T),size:`calc(var(--stepper-icon-size) / 2)`,color:c}):Zy(E||l,o)})]}),b===`vertical`&&(0,U.jsx)(`span`,{...C.getStyles(`verticalSeparator`,T),"data-active":s===`stepCompleted`||void 0})]}),(f||p)&&(0,U.jsxs)(`span`,{...C.getStyles(`stepBody`,T),"data-orientation":C.orientation,"data-icon-position":y||C.iconPosition,children:[f&&(0,U.jsx)(`span`,{...C.getStyles(`stepLabel`,T),children:Zy(f,o)}),p&&(0,U.jsx)(`span`,{...C.getStyles(`stepDescription`,T),children:Zy(p,o)})]})]})});$y.classes=Xy,$y.displayName=`@mantine/core/StepperStep`;var eb={orientation:`horizontal`,iconPosition:`left`,allowNextStepsSelect:!0,wrap:!0},tb=Cn((e,{color:t,iconSize:n,size:r,contentPadding:i,radius:a,autoContrast:o})=>({root:{"--stepper-color":t?Un(t,e):void 0,"--stepper-icon-color":Zn(o,e)?Yn({color:t,theme:e,autoContrast:o}):void 0,"--stepper-icon-size":n===void 0?at(r,`stepper-icon-size`):V(n),"--stepper-content-padding":ot(i),"--stepper-radius":a===void 0?void 0:st(a),"--stepper-fz":ct(r),"--stepper-spacing":ot(r)}})),nb=K(e=>{let t=W(`Stepper`,eb,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,onStepClick:l,active:u,icon:d,completedIcon:f,progressIcon:p,color:m,iconSize:h,contentPadding:g,orientation:_,iconPosition:v,size:y,radius:b,allowNextStepsSelect:x,wrap:S,autoContrast:C,keepMounted:w,attributes:T,...E}=t,D=G({name:`Stepper`,classes:Xy,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:T,vars:s,varsResolver:tb}),O=H.Children.toArray(c),k=O.filter(e=>e.type!==Yy),A=O.find(e=>e.type===Yy),j=k.reduce((e,t,n)=>{let r=u===n?`stepProgress`:u>n?`stepCompleted`:`stepInactive`,i=typeof l==`function`?typeof t.props.allowStepSelect==`boolean`?t.props.allowStepSelect:r===`stepCompleted`||x:!1;return e.push((0,H.cloneElement)(t,{icon:t.props.icon||d||n+1,key:n,step:n,state:r,onClick:()=>i&&l?.(n),allowStepClick:i,completedIcon:t.props.completedIcon||f,progressIcon:t.props.progressIcon||p,color:t.props.color||m,iconSize:h,iconPosition:t.props.iconPosition||v,orientation:_})),_===`horizontal`&&n!==k.length-1&&e.push((0,H.createElement)(`div`,{...D(`separator`),"data-active":n<u||void 0,"data-orientation":_,key:`separator-${n}`})),e},[]),M=k[u]?.props?.children,N=A?.props?.children,P=u>k.length-1?N:M,ee=w?(0,U.jsxs)(U.Fragment,{children:[k.map((e,t)=>(0,U.jsx)(H.Activity,{mode:u===t?`visible`:`hidden`,children:(0,U.jsx)(`div`,{...D(`content`),children:e.props.children})},t)),A&&(0,U.jsx)(H.Activity,{mode:u>k.length-1?`visible`:`hidden`,children:(0,U.jsx)(`div`,{...D(`content`),children:A.props.children})})]}):P&&(0,U.jsx)(`div`,{...D(`content`),children:P});return(0,U.jsx)(qy,{value:{getStyles:D,orientation:_,iconPosition:v},children:(0,U.jsxs)(q,{...D(`root`),size:y,...E,children:[(0,U.jsx)(q,{...D(`steps`),mod:{orientation:_,"icon-position":v,wrap:S&&_!==`vertical`},children:j}),ee]})})});nb.classes=Xy,nb.varsResolver=tb,nb.displayName=`@mantine/core/Stepper`,nb.Completed=Yy,nb.Step=$y;var rb=(0,H.createContext)(null),ib={hiddenInputValuesSeparator:`,`},ab=Li((e=>{let{value:t,defaultValue:n,onChange:r,size:i,wrapperProps:a,children:o,readOnly:s,name:c,hiddenInputValuesSeparator:l,hiddenInputProps:u,maxSelectedValues:d,disabled:f,...p}=W(`SwitchGroup`,ib,e),[m,h]=Yt({value:t,defaultValue:n,finalValue:[],onChange:r}),g=e=>{let t=e.currentTarget.value;if(s)return;let n=m.includes(t);!n&&d&&m.length>=d||h(n?m.filter(e=>e!==t):[...m,t])},_=e=>{if(f)return!0;if(!d)return!1;let t=m.includes(e),n=m.length>=d;return!t&&n},v=m.join(l);return(0,U.jsx)(rb,{value:{value:m,onChange:g,size:i,isDisabled:_},children:(0,U.jsxs)(bf.Wrapper,{size:i,...a,...p,labelElement:`div`,__staticSelector:`SwitchGroup`,children:[(0,U.jsx)(Pp,{role:`group`,children:o}),(0,U.jsx)(`input`,{type:`hidden`,name:c,value:v,...u})]})})}));ab.classes=bf.Wrapper.classes,ab.displayName=`@mantine/core/SwitchGroup`;var ob={root:`m_5f93f3bb`,input:`m_926b4011`,track:`m_9307d992`,thumb:`m_93039a1d`,trackLabel:`m_8277e082`},sb={labelPosition:`right`,withThumbIndicator:!0},cb=Cn((e,{radius:t,color:n,size:r})=>({root:{"--switch-radius":t===void 0?void 0:st(t),"--switch-height":at(r,`switch-height`),"--switch-width":at(r,`switch-width`),"--switch-thumb-size":at(r,`switch-thumb-size`),"--switch-label-font-size":at(r,`switch-label-font-size`),"--switch-track-label-padding":at(r,`switch-track-label-padding`),"--switch-color":n?Un(n,e):void 0}})),lb=K(e=>{let t=W(`Switch`,sb,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,label:l,offLabel:u,onLabel:d,id:f,size:p,radius:m,wrapperProps:h,thumbIcon:g,checked:_,defaultChecked:v,onChange:y,labelPosition:b,description:x,error:S,disabled:C,variant:w,rootRef:T,mod:E,withThumbIndicator:D,attributes:O,...k}=t,A=(0,H.use)(rb),j=p||A?.size,M=G({name:`Switch`,props:t,classes:ob,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:O,vars:s,varsResolver:cb}),{styleProps:N,rest:P}=li(k),ee=Rt(f),F={checked:A?.value.includes(P.value)??_,onChange:e=>{A?.onChange(e),y?.(e)}},I=C||A?.isDisabled?.(P.value),[te,ne]=Yt({value:F.checked??_,defaultValue:v,finalValue:!1});return(0,U.jsxs)(Zp,{...M(`root`),__staticSelector:`Switch`,__stylesApiProps:t,id:ee,size:j,labelPosition:b,label:l,description:x,error:S,disabled:I,bodyElement:`label`,labelElement:`span`,classNames:n,styles:a,unstyled:o,"data-checked":F.checked,variant:w,ref:T,mod:E,attributes:O,inert:P.inert,...N,...h,children:[(0,U.jsx)(`input`,{...P,...F,disabled:I,checked:te,"data-checked":F.checked,onChange:e=>{F.onChange?.(e),ne(e.currentTarget.checked)},id:ee,type:`checkbox`,role:`switch`,inert:P.inert,...M(`input`)}),(0,U.jsxs)(q,{"aria-hidden":`true`,component:`span`,mod:{error:S,"label-position":b,"without-labels":!d&&!u},...M(`track`),children:[(0,U.jsx)(q,{component:`span`,mod:{"reduce-motion":!0,"with-thumb-indicator":D&&!g},...M(`thumb`),children:g}),(0,U.jsx)(`span`,{...M(`trackLabel`),children:te?d:u})]})]})});lb.classes={...ob,...Xp},lb.varsResolver=cb,lb.displayName=`@mantine/core/Switch`,lb.Group=ab;var[ub,db]=Je(`Table component was not found in the tree`),fb={table:`m_b23fa0ef`,th:`m_4e7aa4f3`,tr:`m_4e7aa4fd`,td:`m_4e7aa4ef`,tbody:`m_b2404537`,thead:`m_b242d975`,caption:`m_9e5a3ac7`,scrollContainer:`m_a100c15`,scrollContainerInner:`m_62259741`};function pb(e,t){if(!t)return;let n={};return t.columnBorder&&e.withColumnBorders&&(n[`data-with-column-border`]=!0),t.rowBorder&&e.withRowBorders&&(n[`data-with-row-border`]=!0),t.striped&&e.striped&&(n[`data-striped`]=e.striped),t.highlightOnHover&&e.highlightOnHover&&(n[`data-hover`]=!0),t.captionSide&&e.captionSide&&(n[`data-side`]=e.captionSide),t.stickyHeader&&e.stickyHeader&&(n[`data-sticky`]=!0),n}function mb(e,t){let n=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,r=K(r=>{let i=W(n,{},r),{classNames:a,className:o,style:s,styles:c,...l}=i,u=db();return(0,U.jsx)(q,{component:e,...pb(u,t),...u.getStyles(e,{className:o,classNames:a,style:s,styles:c,props:i}),...l})});return r.displayName=`@mantine/core/${n}`,r.classes=fb,r}var hb=mb(`th`,{columnBorder:!0}),gb=mb(`td`,{columnBorder:!0}),_b=mb(`tr`,{rowBorder:!0,striped:!0,highlightOnHover:!0}),vb=mb(`thead`,{stickyHeader:!0}),yb=mb(`tbody`),bb=mb(`tfoot`),xb=mb(`caption`,{captionSide:!0}),Sb={type:`scrollarea`},Cb=Cn((e,{minWidth:t,maxHeight:n,type:r})=>({scrollContainer:{"--table-min-width":V(t),"--table-max-height":V(n),"--table-overflow":r===`native`?`auto`:void 0}})),wb=K(e=>{let t=W(`TableScrollContainer`,Sb,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,minWidth:l,maxHeight:u,type:d,scrollAreaProps:f,attributes:p,...m}=t,h=G({name:`TableScrollContainer`,classes:fb,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:Cb,rootSelector:`scrollContainer`});return(0,U.jsx)(q,{component:d===`scrollarea`?sl:`div`,...d===`scrollarea`?u?{offsetScrollbars:`xy`,...f}:{offsetScrollbars:`x`,...f}:{},...h(`scrollContainer`),...m,children:(0,U.jsx)(`div`,{...h(`scrollContainerInner`),children:c})})});wb.classes=fb,wb.varsResolver=Cb,wb.displayName=`@mantine/core/TableScrollContainer`;function Tb({data:e}){return(0,U.jsxs)(U.Fragment,{children:[e.caption&&(0,U.jsx)(xb,{children:e.caption}),e.head&&(0,U.jsx)(vb,{children:(0,U.jsx)(_b,{children:e.head.map((e,t)=>(0,U.jsx)(hb,{children:e},t))})}),e.body&&(0,U.jsx)(yb,{children:e.body.map((e,t)=>(0,U.jsx)(_b,{children:e.map((e,t)=>(0,U.jsx)(gb,{children:e},t))},t))}),e.foot&&(0,U.jsx)(bb,{children:(0,U.jsx)(_b,{children:e.foot.map((e,t)=>(0,U.jsx)(hb,{children:e},t))})})]})}Tb.displayName=`@mantine/core/TableDataRenderer`;var Eb={withRowBorders:!0,verticalSpacing:7},Db=Cn((e,{layout:t,captionSide:n,horizontalSpacing:r,verticalSpacing:i,borderColor:a,stripedColor:o,highlightOnHoverColor:s,striped:c,highlightOnHover:l,stickyHeaderOffset:u,stickyHeader:d})=>({table:{"--table-layout":t,"--table-caption-side":n,"--table-horizontal-spacing":ot(r),"--table-vertical-spacing":ot(i),"--table-border-color":a?Un(a,e):void 0,"--table-striped-color":c&&o?Un(o,e):void 0,"--table-highlight-on-hover-color":l&&s?Un(s,e):void 0,"--table-sticky-header-offset":d?V(u):void 0}})),Ob=K(e=>{let t=W(`Table`,Eb,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,horizontalSpacing:c,verticalSpacing:l,captionSide:u,stripedColor:d,highlightOnHoverColor:f,striped:p,highlightOnHover:m,withColumnBorders:h,withRowBorders:g,withTableBorder:_,borderColor:v,layout:y,data:b,children:x,stickyHeader:S,stickyHeaderOffset:C,mod:w,tabularNums:T,attributes:E,...D}=t,O=G({name:`Table`,props:t,className:r,style:i,classes:fb,classNames:n,styles:a,unstyled:o,attributes:E,rootSelector:`table`,vars:s,varsResolver:Db});return(0,U.jsx)(ub,{value:{getStyles:O,stickyHeader:S,striped:p===!0?`odd`:p||void 0,highlightOnHover:m,withColumnBorders:h,withRowBorders:g,captionSide:u||`bottom`},children:(0,U.jsx)(q,{component:`table`,mod:[{"data-with-table-border":_,"data-tabular-nums":T},w],...O(`table`),...D,children:x||!!b&&(0,U.jsx)(Tb,{data:b})})})});Ob.classes=fb,Ob.varsResolver=Db,Ob.displayName=`@mantine/core/Table`,Ob.Td=gb,Ob.Th=hb,Ob.Tr=_b,Ob.Thead=vb,Ob.Tbody=yb,Ob.Tfoot=bb,Ob.Caption=xb,Ob.ScrollContainer=wb,Ob.DataRenderer=Tb;var[kb,Ab]=Je(`Tabs component was not found in the tree`),jb={root:`m_89d60db1`,"list--default":`m_576c9d4`,list:`m_89d33d6d`,tab:`m_4ec4dce6`,panel:`m_b0c91715`,tabSection:`m_fc420b1f`,tabLabel:`m_42bbd1ae`,"tab--default":`m_539e827b`,"list--outline":`m_6772fbd5`,"tab--outline":`m_b59ab47c`,"tab--pills":`m_c3381914`},Mb=K(e=>{let t=W(`TabsList`,null,e),{children:n,className:r,grow:i,justify:a,classNames:o,styles:s,style:c,mod:l,...u}=t,d=Ab();return(0,U.jsx)(q,{...d.getStyles(`list`,{className:r,style:c,classNames:o,styles:s,props:t,variant:d.variant}),role:`tablist`,variant:d.variant,mod:[{grow:i,orientation:d.orientation,placement:d.orientation===`vertical`&&d.placement,inverted:d.inverted},l],"aria-orientation":d.orientation,__vars:{"--tabs-justify":a},...u,children:n})});Mb.classes=jb,Mb.displayName=`@mantine/core/TabsList`;var Nb=K(e=>{let t=W(`TabsPanel`,null,e),{children:n,className:r,value:i,classNames:a,styles:o,style:s,mod:c,keepMounted:l,...u}=t,d=sr(),f=Ab(),p=f.value===i,m=f.keepMounted||l,h=f.keepMountedMode!==`display-none`,g=m&&h&&d!==`test`?(0,U.jsx)(H.Activity,{mode:p?`visible`:`hidden`,children:n}):m||p?n:null;return(0,U.jsx)(q,{...f.getStyles(`panel`,{className:r,classNames:a,styles:o,style:[s,p?void 0:{display:`none`}],props:t}),mod:[{orientation:f.orientation},c],role:`tabpanel`,id:f.getPanelId(i),"aria-labelledby":f.getTabId(i),...u,children:g})});Nb.classes=jb,Nb.displayName=`@mantine/core/TabsPanel`;var Pb=K(e=>{let t=W(`TabsTab`,null,e),{className:n,children:r,rightSection:i,leftSection:a,value:o,onClick:s,onKeyDown:c,disabled:l,color:u,style:d,classNames:f,styles:p,vars:m,mod:h,tabIndex:g,..._}=t,v=wr(),{dir:y}=Ki(),b=Ab(),x=o===b.value,S=e=>{b.onChange(b.allowTabDeactivation&&o===b.value?null:o),s?.(e)},C={classNames:f,styles:p,props:t};return(0,U.jsxs)(dl,{...b.getStyles(`tab`,{className:n,style:d,variant:b.variant,...C}),disabled:l,unstyled:b.unstyled,variant:b.variant,mod:[{active:x,disabled:l,orientation:b.orientation,inverted:b.inverted,placement:b.orientation===`vertical`&&b.placement},h],role:`tab`,id:b.getTabId(o),"aria-selected":x,tabIndex:g===void 0?x||b.value===null?0:-1:g,"aria-controls":b.getPanelId(o),onClick:S,__vars:{"--tabs-color":u?Un(u,v):void 0},onKeyDown:et({siblingSelector:`[role="tab"]`,parentSelector:`[role="tablist"]`,activateOnFocus:b.activateTabWithKeyboard,loop:b.loop,orientation:b.orientation||`horizontal`,dir:y,onKeyDown:c}),..._,children:[a&&(0,U.jsx)(`span`,{...b.getStyles(`tabSection`,C),"data-position":`left`,children:a}),r&&(0,U.jsx)(`span`,{...b.getStyles(`tabLabel`,C),children:r}),i&&(0,U.jsx)(`span`,{...b.getStyles(`tabSection`,C),"data-position":`right`,children:i})]})});Pb.classes=jb,Pb.displayName=`@mantine/core/TabsTab`;var Fb=`Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value`,Ib={keepMounted:!0,keepMountedMode:`activity`,orientation:`horizontal`,loop:!0,activateTabWithKeyboard:!0,variant:`default`,placement:`left`},Lb=Cn((e,{radius:t,color:n,autoContrast:r})=>({root:{"--tabs-radius":st(t),"--tabs-color":Un(n,e),"--tabs-text-color":Zn(r,e)?Yn({color:n,theme:e,autoContrast:r}):void 0}})),Rb=K(e=>{let t=W(`Tabs`,Ib,e),{defaultValue:n,value:r,onChange:i,orientation:a,children:o,loop:s,id:c,activateTabWithKeyboard:l,allowTabDeactivation:u,variant:d,color:f,radius:p,inverted:m,placement:h,keepMounted:g,keepMountedMode:_,classNames:v,styles:y,unstyled:b,className:x,style:S,vars:C,autoContrast:w,mod:T,attributes:E,...D}=t,O=Rt(c),[k,A]=Yt({value:r,defaultValue:n,finalValue:null,onChange:i}),j=G({name:`Tabs`,props:t,classes:jb,className:x,style:S,classNames:v,styles:y,unstyled:b,attributes:E,vars:C,varsResolver:Lb});return(0,U.jsx)(kb,{value:{placement:h,value:k,orientation:a,id:O,loop:s,activateTabWithKeyboard:l,getTabId:Ye(`${O}-tab`,Fb),getPanelId:Ye(`${O}-panel`,Fb),onChange:A,allowTabDeactivation:u,variant:d,color:f,radius:p,inverted:m,keepMounted:g,keepMountedMode:_,unstyled:b,getStyles:j},children:(0,U.jsx)(q,{id:O,variant:d,mod:[{orientation:a,inverted:a===`horizontal`&&m,placement:a===`vertical`&&h},T],...j(`root`),...D,children:o})})});Rb.classes=jb,Rb.varsResolver=Lb,Rb.displayName=`@mantine/core/Tabs`,Rb.Tab=Pb,Rb.Panel=Nb,Rb.List=Mb;function zb({data:e,value:t}){let n=t.map(e=>e.trim().toLowerCase());return e.reduce((e,t)=>(nm(t)?e.push({group:t.group,items:t.items.filter(e=>n.indexOf(e.label.toLowerCase().trim())===-1)}):n.indexOf(t.label.toLowerCase().trim())===-1&&e.push(t),e),[])}function Bb(e,t){return e?t.split(RegExp(`[${e.join(``)}]`)).map(e=>e.trim()).filter(e=>e!==``):[t]}function Vb({splitChars:e,allowDuplicates:t,maxTags:n,value:r,currentTags:i,isDuplicate:a,onDuplicate:o}){let s=Bb(e,r),c=[];if(t)c.push(...i,...s);else{c.push(...i);for(let e of s)(a?e=>a(e,c):e=>c.some(t=>t.toLowerCase()===e.toLowerCase()))(e)?o?.(e):c.push(e)}return n?c.slice(0,n):c}var Hb={maxTags:1/0,acceptValueOnBlur:!0,splitChars:[`,`],hiddenInputValuesDivider:`,`,openOnFocus:!0,size:`sm`},Ub=K(e=>{let t=W(`TagsInput`,Hb,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,value:l,defaultValue:u,onChange:d,onKeyDown:f,maxTags:p,allowDuplicates:m,onDuplicate:h,variant:g,data:_,dropdownOpened:v,defaultDropdownOpened:y,onDropdownOpen:b,onDropdownClose:x,selectFirstOptionOnChange:S,selectFirstOptionOnDropdownOpen:C,onOptionSubmit:w,comboboxProps:T,filter:E,limit:D,withScrollArea:O,maxDropdownHeight:k,searchValue:A,defaultSearchValue:j,onSearchChange:M,readOnly:N,disabled:P,splitChars:ee,onFocus:F,onBlur:I,onPaste:te,radius:ne,rightSection:re,rightSectionWidth:ie,rightSectionPointerEvents:L,rightSectionProps:ae,leftSection:oe,leftSectionWidth:se,leftSectionPointerEvents:ce,leftSectionProps:le,inputContainer:ue,inputWrapperOrder:de,withAsterisk:fe,required:R,labelProps:pe,descriptionProps:me,errorProps:he,wrapperProps:ge,description:z,label:_e,error:ve,withErrorStyles:B,name:ye,form:be,id:xe,clearable:Se,clearSectionMode:Ce,clearButtonProps:we,hiddenInputProps:Te,hiddenInputValuesDivider:Ee,mod:De,renderOption:Oe,renderPill:ke,onRemove:Ae,onClear:je,onMaxTags:Me,scrollAreaProps:Ne,acceptValueOnBlur:Pe,isDuplicate:Fe,openOnFocus:Ie,attributes:Le,ref:Re,loading:ze,loadingPosition:Be,...Ve}=t,He=Rt(xe),Ue=tp(_),V=np(Ue),We=(0,H.useRef)(null),Ge=Jt(We,Re),Ke=Ap({opened:v,defaultOpened:y,onDropdownOpen:()=>{b?.(),C&&Ke.selectFirstOption()},onDropdownClose:()=>{x?.(),Ke.resetSelectedOption()}}),{styleProps:qe,rest:{type:Je,autoComplete:Ye,...Xe}}=li(Ve),[Ze,Qe]=Yt({value:l,defaultValue:u,finalValue:[],onChange:d}),[$e,et]=Yt({value:A,defaultValue:j,finalValue:``,onChange:M}),tt=e=>{et(e),Ke.resetSelectedOption()},nt=G({name:`TagsInput`,classes:{},props:t,classNames:n,styles:a,unstyled:o}),{resolvedClassNames:rt,resolvedStyles:it}=Ur({props:t,styles:a,classNames:n}),at=e=>{if((Fe?Fe(e,Ze):Ze.some(t=>t.toLowerCase()===e.toLowerCase()))&&(h?.(e),!m)){tt(``);return}if(Ze.length>=p){Me?.(e);return}w?.(e),tt(``),e.length>0&&Qe([...Ze,e])},ot=e=>{if(f?.(e),e.isPropagationStopped())return;let t=$e.trim(),{length:n}=t;if(ee.includes(e.key)&&n>0&&(Qe(Vb({splitChars:ee,allowDuplicates:m,maxTags:p,value:$e,currentTags:Ze,isDuplicate:Fe,onDuplicate:h})),tt(``),e.preventDefault()),e.key===`Enter`&&n>0&&!e.nativeEvent.isComposing){if(e.preventDefault(),document.querySelector(`#${Ke.listId} [data-combobox-option][data-combobox-selected]`))return;at(t)}e.key===`Backspace`&&n===0&&Ze.length>0&&!e.nativeEvent.isComposing&&!N&&(Ae?.(Ze[Ze.length-1]),Qe(Ze.slice(0,Ze.length-1)))},st=e=>{te?.(e),e.preventDefault(),e.clipboardData&&(Qe(Vb({splitChars:ee,allowDuplicates:m,maxTags:p,value:`${$e}${e.clipboardData.getData(`text/plain`)}`,currentTags:Ze,isDuplicate:Fe,onDuplicate:h})),tt(``))},ct=Ze.map((e,t)=>{let n=()=>{let n=Ze.slice();n.splice(t,1),Qe(n),Ae?.(e)};return ke?(0,U.jsx)(H.Fragment,{children:ke({option:V[e]||{value:e,label:e,disabled:!1},value:e,onRemove:n,disabled:P||N})},`${e}-${t}`):(0,U.jsx)(kg,{withRemoveButton:!N,onRemove:n,unstyled:o,disabled:P,attributes:Le,...nt(`pill`),children:e},`${e}-${t}`)});(0,H.useEffect)(()=>{S&&Ke.selectFirstOption()},[S,Ze,$e]);let lt=(0,U.jsx)(Np.ClearButton,{...we,onClear:()=>{Qe([]),tt(``),We.current?.focus(),Ke.openDropdown(),je?.()}});return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(Np,{store:Ke,classNames:rt,styles:it,unstyled:o,size:c,readOnly:N,__staticSelector:`TagsInput`,attributes:Le,onOptionSubmit:e=>{w?.(e),tt(``),Ze.length>=p?Me?.(e):Qe([...Ze,V[e].value]),Ke.resetSelectedOption()},...T,children:[(0,U.jsx)(Np.DropdownTarget,{children:(0,U.jsx)(Pg,{...qe,__staticSelector:`TagsInput`,classNames:rt,styles:it,unstyled:o,size:c,className:r,style:i,variant:g,disabled:P,radius:ne,rightSection:re,__clearSection:lt,__clearable:Se&&Ze.length>0&&!P&&!N,__clearSectionMode:Ce,rightSectionWidth:ie,rightSectionPointerEvents:L,rightSectionProps:ae,leftSection:oe,leftSectionWidth:se,leftSectionPointerEvents:ce,leftSectionProps:le,loading:ze,loadingPosition:Be,inputContainer:ue,inputWrapperOrder:de,withAsterisk:fe,required:R,labelProps:pe,descriptionProps:me,errorProps:he,wrapperProps:ge,description:z,label:_e,error:ve,withErrorStyles:B,__stylesApiProps:{...t,multiline:!0},id:He,mod:De,attributes:Le,children:(0,U.jsxs)(kg.Group,{disabled:P,unstyled:o,...nt(`pillsList`),children:[ct,(0,U.jsx)(Np.EventsTarget,{autoComplete:Ye,withExpandedAttribute:!0,children:(0,U.jsx)(Pg.Field,{...Xe,ref:Ge,...nt(`inputField`),unstyled:o,onKeyDown:ot,onFocus:e=>{F?.(e),Ie&&Ke.openDropdown()},onBlur:e=>{I?.(e),Pe&&at($e),Ke.closeDropdown()},onPaste:st,value:$e,onChange:e=>tt(e.currentTarget.value),required:R&&Ze.length===0,disabled:P,readOnly:N,id:He})})]})})}),(0,U.jsx)(cm,{data:zb({data:Ue,value:Ze}),hidden:N||P,filter:E,search:$e,limit:D,hiddenWhenEmpty:!0,withScrollArea:O,maxDropdownHeight:k,unstyled:o,labelId:_e?`${He}-label`:void 0,"aria-label":_e?void 0:Ve[`aria-label`],renderOption:Oe,scrollAreaProps:Ne})]}),(0,U.jsx)(Np.HiddenInput,{name:ye,form:be,value:Ze,valuesDivider:Ee,disabled:P,...Te})]})});Ub.classes={...Cf.classes,...Np.classes},Ub.displayName=`@mantine/core/TagsInput`;var Wb=K(e=>(0,U.jsx)(Cf,{component:`input`,...W(`TextInput`,null,e),__staticSelector:`TextInput`}));Wb.classes=Cf.classes,Wb.displayName=`@mantine/core/TextInput`;var Gb={root:`m_7341320d`},Kb=Cn((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ti-size":at(t,`ti-size`),"--ti-radius":n===void 0?void 0:st(n),"--ti-bg":a||r?s.background:void 0,"--ti-color":a||r?s.color:void 0,"--ti-bd":a||r?s.border:void 0}}}),qb=K(e=>{let t=W(`ThemeIcon`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,autoContrast:c,attributes:l,...u}=t;return(0,U.jsx)(q,{...G({name:`ThemeIcon`,classes:Gb,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:l,vars:s,varsResolver:Kb})(`root`),...u})});qb.classes=Gb,qb.varsResolver=Kb,qb.displayName=`@mantine/core/ThemeIcon`;var Jb=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],Yb=[`xs`,`sm`,`md`,`lg`,`xl`];function Xb(e,t){let n=t===void 0?`h${e}`:t;return Jb.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:Yb.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:V(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var Zb={root:`m_8a5d1357`},Qb={order:1},$b=Cn((e,{order:t,size:n,lineClamp:r,textWrap:i})=>{let a=Xb(t||1,n);return{root:{"--title-fw":a.fontWeight,"--title-lh":a.lineHeight,"--title-fz":a.fontSize,"--title-line-clamp":typeof r==`number`?r.toString():void 0,"--title-text-wrap":i}}}),ex=K(e=>{let t=W(`Title`,Qb,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,order:s,vars:c,size:l,variant:u,lineClamp:d,textWrap:f,mod:p,attributes:m,...h}=t,g=G({name:`Title`,props:t,classes:Zb,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:m,vars:c,varsResolver:$b});return[1,2,3,4,5,6].includes(s)?(0,U.jsx)(q,{...g(`root`),component:`h${s}`,variant:u,mod:[{order:s,"data-line-clamp":typeof d==`number`},p],size:l,...h}):null});ex.classes=Zb,ex.varsResolver=$b,ex.displayName=`@mantine/core/Title`;var tx=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(){}},nx=new class extends tx{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},rx={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},ix=new class{#e=rx;#t=!1;setTimeoutProvider(e){process.env.NODE_ENV!==`production`&&this.#t&&e!==this.#e&&console.error(`[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.`,{previous:this.#e,provider:e}),this.#e=e,process.env.NODE_ENV!==`production`&&(this.#t=!1)}setTimeout(e,t){return process.env.NODE_ENV!==`production`&&(this.#t=!0),this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return process.env.NODE_ENV!==`production`&&(this.#t=!0),this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function ax(e){setTimeout(e,0)}var ox=typeof window>`u`||`Deno`in globalThis;function sx(){}function cx(e,t){return typeof e==`function`?e(t):e}function lx(e){return typeof e==`number`&&e>=0&&e!==1/0}function ux(e,t){return Math.max(e+(t||0)-Date.now(),0)}function dx(e,t){return typeof e==`function`?e(t):e}function fx(e,t){return typeof e==`function`?e(t):e}function px(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==hx(o,t.options))return!1}else if(!_x(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function mx(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(gx(t.options.mutationKey)!==gx(a))return!1}else if(!_x(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function hx(e,t){return(t?.queryKeyHashFn||gx)(e)}function gx(e){return JSON.stringify(e,(e,t)=>Sx(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function _x(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>_x(e[n],t[n])):!1}var vx=Object.prototype.hasOwnProperty;function yx(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=xx(e)&&xx(t);if(!r&&!(Sx(e)&&Sx(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:vx.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=yx(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function bx(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function xx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Sx(e){if(!Cx(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!Cx(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function Cx(e){return Object.prototype.toString.call(e)===`[object Object]`}function wx(e){return new Promise(t=>{ix.setTimeout(t,e)})}function Tx(e,t,n){if(typeof n.structuralSharing==`function`)return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!==`production`)try{return yx(e,t)}catch(e){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${e}`),e}return yx(e,t)}return t}function Ex(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Dx(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ox=Symbol();function kx(e,t){return process.env.NODE_ENV!==`production`&&e.queryFn===Ox&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Ox?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Ax(e,t){return typeof e==`function`?e(...t):!!e}function jx(e,t,n){let r=!1,i;return Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var Mx=(()=>{let e=()=>ox;return{isServer(){return e()},setIsServer(t){e=t}}})();function Nx(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var Px=ax;function Fx(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Px,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Ix=Fx(),Lx=new class extends tx{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Rx(e){return Math.min(1e3*2**e,3e4)}function zx(e){return(e??`online`)===`online`?Lx.isOnline():!0}var Bx=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Vx(e){let t=!1,n=0,r,i=Nx(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Bx(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>nx.isFocused()&&(e.networkMode===`always`||Lx.isOnline())&&e.canRun(),u=()=>zx(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(Mx.isServer()?0:3),o=e.retryDelay??Rx,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),wx(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var Hx=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),lx(this.gcTime)&&(this.#e=ix.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Mx.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e&&=(ix.clearTimeout(this.#e),void 0)}},Ux=class extends Hx{#e;#t;#n;#r;#i;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Kx(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Kx(this.options);e.data!==void 0&&(this.setState(Gx(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#n.remove(this)}setData(e,t){let n=Tx(this.state.data,e,this.options);return this.#c({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#c({type:`setState`,state:e,setStateOptions:t})}cancel(e){let t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(sx).catch(sx):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>fx(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ox||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>dx(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!ux(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#o||this.#s()?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#s(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#c({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#i?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}process.env.NODE_ENV!==`production`&&(Array.isArray(this.options.queryKey)||console.error(`As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']`));let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},i=()=>{let e=kx(this.options,t),n=(()=>{let e={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#o=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(e),e})();this.options.behavior?.onFetch(a,this),this.#t=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#c({type:`fetch`,meta:a.fetchOptions?.meta}),this.#i=Vx({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Bx&&e.revert&&this.setState({...this.#t,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#c({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#c({type:`pause`})},onContinue:()=>{this.#c({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#i.start();if(e===void 0)throw process.env.NODE_ENV!==`production`&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#n.config.onSuccess?.(e,this),this.#n.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Bx){if(e.silent)return this.#i.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#c({type:`error`,error:e}),this.#n.config.onError?.(e,this),this.#n.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#c(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Wx(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Gx(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Ix.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#n.notify({query:this,type:`updated`,action:e})})}};function Wx(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:zx(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Gx(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Kx(e){let 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`}}function qx(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{jx(e,()=>t.signal,()=>n=!0)},u=kx(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?Dx:Ex;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?Yx:Jx,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Jx(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Jx(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Yx(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Xx=class extends Hx{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Zx(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Vx({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),Ix.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Zx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Qx=class extends tx{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Xx({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=$x(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=$x(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=$x(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=$x(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Ix.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>mx(t,e))}findAll(e={}){return this.getAll().filter(t=>mx(e,t))}notify(e){Ix.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Ix.batch(()=>Promise.all(e.map(e=>e.continue().catch(sx))))}};function $x(e){return e.options.scope?.id}var eS=class extends tx{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),bx(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&gx(t.mutationKey)!==gx(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Zx();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){Ix.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},tS=class extends tx{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??hx(r,t),a=this.get(i);return a||(a=new Ux({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Ix.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>px(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>px(e,t)):t}notify(e){Ix.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Ix.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ix.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},nS=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new tS,this.#t=e.mutationCache||new Qx,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=nx.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Lx.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(dx(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=cx(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Ix.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Ix.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Ix.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Ix.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(sx).catch(sx)}invalidateQueries(e,t={}){return Ix.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Ix.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(sx)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(sx)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(dx(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(sx).catch(sx)}fetchInfiniteQuery(e){return e.behavior=qx(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(sx).catch(sx)}ensureInfiniteQueryData(e){return e.behavior=qx(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Lx.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(gx(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{_x(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(gx(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{_x(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=hx(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===Ox&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},rS=H.createContext(void 0),iS=e=>{let t=H.useContext(rS);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},aS=({client:e,children:t})=>(H.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,U.jsx)(rS.Provider,{value:e,children:t}));function oS(e,t){let n=iS(t),[r]=H.useState(()=>new eS(n,e));H.useEffect(()=>{r.setOptions(e)},[r,e]);let i=H.useSyncExternalStore(H.useCallback(e=>r.subscribe(Ix.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=H.useCallback((e,t)=>{r.mutate(e,t).catch(sx)},[r]);if(i.error&&Ax(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function sS(e,t){return function(){return e.apply(t,arguments)}}var{toString:cS}=Object.prototype,{getPrototypeOf:lS}=Object,{iterator:uS,toStringTag:dS}=Symbol,fS=(e=>t=>{let n=cS.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),pS=e=>(e=e.toLowerCase(),t=>fS(t)===e),mS=e=>t=>typeof t===e,{isArray:hS}=Array,gS=mS(`undefined`);function _S(e){return e!==null&&!gS(e)&&e.constructor!==null&&!gS(e.constructor)&&xS(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var vS=pS(`ArrayBuffer`);function yS(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&vS(e.buffer),t}var bS=mS(`string`),xS=mS(`function`),SS=mS(`number`),CS=e=>typeof e==`object`&&!!e,wS=e=>e===!0||e===!1,TS=e=>{if(fS(e)!==`object`)return!1;let t=lS(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(dS in e)&&!(uS in e)},ES=e=>{if(!CS(e)||_S(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},DS=pS(`Date`),OS=pS(`File`),kS=e=>!!(e&&e.uri!==void 0),AS=e=>e&&e.getParts!==void 0,jS=pS(`Blob`),MS=pS(`FileList`),NS=e=>CS(e)&&xS(e.pipe);function PS(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var FS=PS(),IS=FS.FormData===void 0?void 0:FS.FormData,LS=e=>{let t;return e&&(IS&&e instanceof IS||xS(e.append)&&((t=fS(e))===`formdata`||t===`object`&&xS(e.toString)&&e.toString()===`[object FormData]`))},RS=pS(`URLSearchParams`),[zS,BS,VS,HS]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(pS),US=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function WS(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),hS(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(_S(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function GS(e,t){if(_S(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}var KS=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,qS=e=>!gS(e)&&e!==KS;function JS(){let{caseless:e,skipUndefined:t}=qS(this)&&this||{},n={},r=(r,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=e&&GS(n,i)||i;TS(n[a])&&TS(r)?n[a]=JS(n[a],r):TS(r)?n[a]=JS({},r):hS(r)?n[a]=r.slice():(!t||!gS(r))&&(n[a]=r)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&WS(arguments[e],r);return n}var YS=(e,t,n,{allOwnKeys:r}={})=>(WS(t,(t,r)=>{n&&xS(t)?Object.defineProperty(e,r,{value:sS(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),XS=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ZS=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,`constructor`,{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,`super`,{value:t.prototype}),n&&Object.assign(e.prototype,n)},QS=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&lS(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},$S=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},eC=e=>{if(!e)return null;if(hS(e))return e;let t=e.length;if(!SS(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},tC=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&lS(Uint8Array)),nC=(e,t)=>{let n=(e&&e[uS]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},rC=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},iC=pS(`HTMLFormElement`),aC=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),oC=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sC=pS(`RegExp`),cC=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};WS(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},lC=e=>{cC(e,(t,n)=>{if(xS(e)&&[`arguments`,`caller`,`callee`].indexOf(n)!==-1)return!1;let r=e[n];if(xS(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},uC=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return hS(e)?r(e):r(String(e).split(t)),n},dC=()=>{},fC=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function pC(e){return!!(e&&xS(e.append)&&e[dS]===`FormData`&&e[uS])}var mC=e=>{let t=Array(10),n=(e,r)=>{if(CS(e)){if(t.indexOf(e)>=0)return;if(_S(e))return e;if(!(`toJSON`in e)){t[r]=e;let i=hS(e)?[]:{};return WS(e,(e,t)=>{let a=n(e,r+1);!gS(a)&&(i[t]=a)}),t[r]=void 0,i}}return e};return n(e,0)},hC=pS(`AsyncFunction`),gC=e=>e&&(CS(e)||xS(e))&&xS(e.then)&&xS(e.catch),_C=((e,t)=>e?setImmediate:t?((e,t)=>(KS.addEventListener(`message`,({source:n,data:r})=>{n===KS&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),KS.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,xS(KS.postMessage)),Z={isArray:hS,isArrayBuffer:vS,isBuffer:_S,isFormData:LS,isArrayBufferView:yS,isString:bS,isNumber:SS,isBoolean:wS,isObject:CS,isPlainObject:TS,isEmptyObject:ES,isReadableStream:zS,isRequest:BS,isResponse:VS,isHeaders:HS,isUndefined:gS,isDate:DS,isFile:OS,isReactNativeBlob:kS,isReactNative:AS,isBlob:jS,isRegExp:sC,isFunction:xS,isStream:NS,isURLSearchParams:RS,isTypedArray:tC,isFileList:MS,forEach:WS,merge:JS,extend:YS,trim:US,stripBOM:XS,inherits:ZS,toFlatObject:QS,kindOf:fS,kindOfTest:pS,endsWith:$S,toArray:eC,forEachEntry:nC,matchAll:rC,isHTMLForm:iC,hasOwnProperty:oC,hasOwnProp:oC,reduceDescriptors:cC,freezeMethods:lC,toObjectSet:uC,toCamelCase:aC,noop:dC,toFiniteNumber:fC,findKey:GS,global:KS,isContextDefined:qS,isSpecCompliantForm:pC,toJSONObject:mC,isAsyncFn:hC,isThenable:gC,setImmediate:_C,asap:typeof queueMicrotask<`u`?queueMicrotask.bind(KS):typeof process<`u`&&process.nextTick||_C,isIterable:e=>e!=null&&xS(e[uS])},vC=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,`message`,{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Z.toJSONObject(this.config),code:this.code,status:this.status}}};vC.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,vC.ERR_BAD_OPTION=`ERR_BAD_OPTION`,vC.ECONNABORTED=`ECONNABORTED`,vC.ETIMEDOUT=`ETIMEDOUT`,vC.ERR_NETWORK=`ERR_NETWORK`,vC.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,vC.ERR_DEPRECATED=`ERR_DEPRECATED`,vC.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,vC.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,vC.ERR_CANCELED=`ERR_CANCELED`,vC.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,vC.ERR_INVALID_URL=`ERR_INVALID_URL`;function yC(e){return Z.isPlainObject(e)||Z.isArray(e)}function bC(e){return Z.endsWith(e,`[]`)?e.slice(0,-2):e}function xC(e,t,n){return e?e.concat(t).map(function(e,t){return e=bC(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function SC(e){return Z.isArray(e)&&!e.some(yC)}var CC=Z.toFlatObject(Z,{},null,function(e){return/^is[A-Z]/.test(e)});function wC(e,t,n){if(!Z.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=Z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Z.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||l,a=n.dots,o=n.indexes,s=(n.Blob||typeof Blob<`u`&&Blob)&&Z.isSpecCompliantForm(t);if(!Z.isFunction(i))throw TypeError(`visitor must be a function`);function c(e){if(e===null)return``;if(Z.isDate(e))return e.toISOString();if(Z.isBoolean(e))return e.toString();if(!s&&Z.isBlob(e))throw new vC(`Blob is not supported. Use a Buffer instead.`);return Z.isArrayBuffer(e)||Z.isTypedArray(e)?s&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function l(e,n,i){let s=e;if(Z.isReactNative(t)&&Z.isReactNativeBlob(e))return t.append(xC(i,n,a),c(e)),!1;if(e&&!i&&typeof e==`object`){if(Z.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Z.isArray(e)&&SC(e)||(Z.isFileList(e)||Z.endsWith(n,`[]`))&&(s=Z.toArray(e)))return n=bC(n),s.forEach(function(e,r){!(Z.isUndefined(e)||e===null)&&t.append(o===!0?xC([n],r,a):o===null?n:n+`[]`,c(e))}),!1}return yC(e)?!0:(t.append(xC(i,n,a),c(e)),!1)}let u=[],d=Object.assign(CC,{defaultVisitor:l,convertValue:c,isVisitable:yC});function f(e,n){if(!Z.isUndefined(e)){if(u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),Z.forEach(e,function(e,r){(!(Z.isUndefined(e)||e===null)&&i.call(t,e,Z.isString(r)?r.trim():r,n,d))===!0&&f(e,n?n.concat(r):[r])}),u.pop()}}if(!Z.isObject(e))throw TypeError(`data must be an object`);return f(e),t}function TC(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`,"%00":`\0`};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function EC(e,t){this._pairs=[],e&&wC(e,this,t)}var DC=EC.prototype;DC.append=function(e,t){this._pairs.push([e,t])},DC.toString=function(e){let t=e?function(t){return e.call(this,t,TC)}:TC;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function OC(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function kC(e,t,n){if(!t)return e;let r=n&&n.encode||OC,i=Z.isFunction(n)?{serialize:n}:n,a=i&&i.serialize,o;if(o=a?a(t,i):Z.isURLSearchParams(t)?t.toString():new EC(t,i).toString(r),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var AC=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){Z.forEach(this.handlers,function(t){t!==null&&e(t)})}},jC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},MC={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:EC,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},NC=s({hasBrowserEnv:()=>PC,hasStandardBrowserEnv:()=>IC,hasStandardBrowserWebWorkerEnv:()=>LC,navigator:()=>FC,origin:()=>RC}),PC=typeof window<`u`&&typeof document<`u`,FC=typeof navigator==`object`&&navigator||void 0,IC=PC&&(!FC||[`ReactNative`,`NativeScript`,`NS`].indexOf(FC.product)<0),LC=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,RC=PC&&window.location.href||`http://localhost`,zC={...NC,...MC};function BC(e,t){return wC(e,new zC.classes.URLSearchParams,{visitor:function(e,t,n,r){return zC.isNode&&Z.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}function VC(e){return Z.matchAll(/\w+|\[(\w*)]/g,e).map(e=>e[0]===`[]`?``:e[1]||e[0])}function HC(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function UC(e){function t(e,n,r,i){let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&Z.isArray(r)?r.length:a,s?(Z.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!o):((!r[a]||!Z.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&Z.isArray(r[a])&&(r[a]=HC(r[a])),!o)}if(Z.isFormData(e)&&Z.isFunction(e.entries)){let n={};return Z.forEachEntry(e,(e,r)=>{t(VC(e),r,n,0)}),n}return null}function WC(e,t,n){if(Z.isString(e))try{return(t||JSON.parse)(e),Z.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var GC={transitional:jC,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=Z.isObject(e);if(i&&Z.isHTMLForm(e)&&(e=new FormData(e)),Z.isFormData(e))return r?JSON.stringify(UC(e)):e;if(Z.isArrayBuffer(e)||Z.isBuffer(e)||Z.isStream(e)||Z.isFile(e)||Z.isBlob(e)||Z.isReadableStream(e))return e;if(Z.isArrayBufferView(e))return e.buffer;if(Z.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return BC(e,this.formSerializer).toString();if((a=Z.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let t=this.env&&this.env.FormData;return wC(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType(`application/json`,!1),WC(e)):e}],transformResponse:[function(e){let t=this.transitional||GC.transitional,n=t&&t.forcedJSONParsing,r=this.responseType===`json`;if(Z.isResponse(e)||Z.isReadableStream(e))return e;if(e&&Z.isString(e)&&(n&&!this.responseType||r)){let n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n)throw e.name===`SyntaxError`?vC.from(e,vC.ERR_BAD_RESPONSE,this,null,this.response):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:zC.classes.FormData,Blob:zC.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};Z.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`],e=>{GC.headers[e]={}});var KC=Z.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),qC=e=>{let t={},n,r,i;return e&&e.split(`
315
- `).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&&KC[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t},JC=Symbol(`internals`);function YC(e){return e&&String(e).trim().toLowerCase()}function XC(e){return e===!1||e==null?e:Z.isArray(e)?e.map(XC):String(e).replace(/[\r\n]+$/,``)}function ZC(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var QC=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function $C(e,t,n,r,i){if(Z.isFunction(r))return r.call(this,t,n);if(i&&(t=n),Z.isString(t)){if(Z.isString(r))return t.indexOf(r)!==-1;if(Z.isRegExp(r))return r.test(t)}}function ew(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function tw(e,t){let n=Z.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var nw=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=YC(t);if(!i)throw Error(`header name must be a non-empty string`);let a=Z.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=XC(e))}let a=(e,t)=>Z.forEach(e,(e,n)=>i(e,n,t));if(Z.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(Z.isString(e)&&(e=e.trim())&&!QC(e))a(qC(e),t);else if(Z.isObject(e)&&Z.isIterable(e)){let n={},r,i;for(let t of e){if(!Z.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);n[i=t[0]]=(r=n[i])?Z.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=YC(e),e){let n=Z.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return ZC(e);if(Z.isFunction(t))return t.call(this,e,n);if(Z.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=YC(e),e){let n=Z.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||$C(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=YC(e),e){let i=Z.findKey(n,e);i&&(!t||$C(n,n[i],i,t))&&(delete n[i],r=!0)}}return Z.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||$C(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return Z.forEach(this,(r,i)=>{let a=Z.findKey(n,i);if(a){t[a]=XC(r),delete t[i];return}let o=e?ew(i):String(i).trim();o!==i&&delete t[i],t[o]=XC(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return Z.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&Z.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
316
- `)}getSetCookie(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[JC]=this[JC]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=YC(e);t[r]||(tw(n,e),t[r]=!0)}return Z.isArray(e)?e.forEach(r):r(e),this}};nw.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),Z.reduceDescriptors(nw.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Z.freezeMethods(nw);function rw(e,t){let n=this||GC,r=t||n,i=nw.from(r.headers),a=r.data;return Z.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function iw(e){return!!(e&&e.__CANCEL__)}var aw=class extends vC{constructor(e,t,n){super(e??`canceled`,vC.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function ow(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new vC(`Request failed with status code `+n.status,[vC.ERR_BAD_REQUEST,vC.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function sw(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||``}function cw(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function lw(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var uw=(e,t,n=3)=>{let r=0,i=cw(50,250);return lw(n=>{let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=a-r,c=i(s),l=a<=o;r=a,e({loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:c||void 0,estimated:c&&o&&l?(o-a)/c:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},dw=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},fw=e=>(...t)=>Z.asap(()=>e(...t)),pw=zC.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,zC.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(zC.origin),zC.navigator&&/(msie|trident)/i.test(zC.navigator.userAgent)):()=>!0,mw=zC.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];Z.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Z.isString(r)&&s.push(`path=${r}`),Z.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),Z.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.match(RegExp(`(?:^|; )`+e+`=([^;]*)`));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function hw(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function gw(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}function _w(e,t,n){let r=!hw(t);return e&&(r||n==0)?gw(e,t):t}var vw=e=>e instanceof nw?{...e}:e;function yw(e,t){t||={};let n={};function r(e,t,n,r){return Z.isPlainObject(e)&&Z.isPlainObject(t)?Z.merge.call({caseless:r},e,t):Z.isPlainObject(t)?Z.merge({},t):Z.isArray(t)?t.slice():t}function i(e,t,n,i){if(!Z.isUndefined(t))return r(e,t,n,i);if(!Z.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!Z.isUndefined(t))return r(void 0,t)}function o(e,t){if(!Z.isUndefined(t))return r(void 0,t);if(!Z.isUndefined(e))return r(void 0,e)}function s(n,i,a){if(a in t)return r(n,i);if(a in e)return r(void 0,n)}let c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>i(vw(e),vw(t),n,!0)};return Z.forEach(Object.keys({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=Z.hasOwnProp(c,r)?c[r]:i,o=a(e[r],t[r],r);Z.isUndefined(o)&&a!==s||(n[r]=o)}),n}var bw=e=>{let t=yw({},e),{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=nw.from(o),t.url=kC(_w(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set(`Authorization`,`Basic `+btoa((s.username||``)+`:`+(s.password?unescape(encodeURIComponent(s.password)):``))),Z.isFormData(n)){if(zC.hasStandardBrowserEnv||zC.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(Z.isFunction(n.getHeaders)){let e=n.getHeaders(),t=[`content-type`,`content-length`];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&o.set(e,n)})}}if(zC.hasStandardBrowserEnv&&(r&&Z.isFunction(r)&&(r=r(t)),r||r!==!1&&pw(t.url))){let e=i&&a&&mw.read(a);e&&o.set(i,e)}return t},xw=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=bw(e),i=r.data,a=nw.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=nw.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());ow(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf(`file:`)===0)||setTimeout(g)},h.onabort=function(){h&&=(n(new vC(`Request aborted`,vC.ECONNABORTED,e,h)),null)},h.onerror=function(t){let r=new vC(t&&t.message?t.message:`Network Error`,vC.ERR_NETWORK,e,h);r.event=t||null,n(r),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||jC;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new vC(t,i.clarifyTimeoutError?vC.ETIMEDOUT:vC.ECONNABORTED,e,h)),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&Z.forEach(a.toJSON(),function(e,t){h.setRequestHeader(t,e)}),Z.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=uw(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=uw(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new aw(null,e,h):t),h.abort(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=sw(r.url);if(_&&zC.protocols.indexOf(_)===-1){n(new vC(`Unsupported protocol `+_+`:`,vC.ERR_BAD_REQUEST,e));return}h.send(i||null)})},Sw=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n=new AbortController,r,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof vC?t:new aw(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new vC(`timeout of ${t}ms exceeded`,vC.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>e.addEventListener(`abort`,i));let{signal:s}=n;return s.unsubscribe=()=>Z.asap(o),s}},Cw=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},ww=async function*(e,t){for await(let n of Tw(e))yield*Cw(n,t)},Tw=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Ew=(e,t,n,r)=>{let i=ww(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},Dw=64*1024,{isFunction:Ow}=Z,kw=(({Request:e,Response:t})=>({Request:e,Response:t}))(Z.global),{ReadableStream:Aw,TextEncoder:jw}=Z.global,Mw=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Nw=e=>{e=Z.merge.call({skipUndefined:!0},kw,e);let{fetch:t,Request:n,Response:r}=e,i=t?Ow(t):typeof fetch==`function`,a=Ow(n),o=Ow(r);if(!i)return!1;let s=i&&Ow(Aw),c=i&&(typeof jw==`function`?(e=>t=>e.encode(t))(new jw):async e=>new Uint8Array(await new n(e).arrayBuffer())),l=a&&s&&Mw(()=>{let e=!1,t=new Aw,r=new n(zC.origin,{body:t,method:`POST`,get duplex(){return e=!0,`half`}}).headers.has(`Content-Type`);return t.cancel(),e&&!r}),u=o&&s&&Mw(()=>Z.isReadableStream(new r(``).body)),d={stream:u&&(e=>e.body)};i&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new vC(`Response type '${e}' is not supported`,vC.ERR_NOT_SUPPORT,n)})});let f=async e=>{if(e==null)return 0;if(Z.isBlob(e))return e.size;if(Z.isSpecCompliantForm(e))return(await new n(zC.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(Z.isArrayBufferView(e)||Z.isArrayBuffer(e))return e.byteLength;if(Z.isURLSearchParams(e)&&(e+=``),Z.isString(e))return(await c(e)).byteLength},p=async(e,t)=>Z.toFiniteNumber(e.getContentLength())??f(t);return async e=>{let{url:i,method:o,data:s,signal:c,cancelToken:f,timeout:m,onDownloadProgress:h,onUploadProgress:g,responseType:_,headers:v,withCredentials:y=`same-origin`,fetchOptions:b}=bw(e),x=t||fetch;_=_?(_+``).toLowerCase():`text`;let S=Sw([c,f&&f.toAbortSignal()],m),C=null,w=S&&S.unsubscribe&&(()=>{S.unsubscribe()}),T;try{if(g&&l&&o!==`get`&&o!==`head`&&(T=await p(v,s))!==0){let e=new n(i,{method:`POST`,body:s,duplex:`half`}),t;if(Z.isFormData(s)&&(t=e.headers.get(`content-type`))&&v.setContentType(t),e.body){let[t,n]=dw(T,uw(fw(g)));s=Ew(e.body,Dw,t,n)}}Z.isString(y)||(y=y?`include`:`omit`);let t=a&&`credentials`in n.prototype,c={...b,signal:S,method:o.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:`half`,credentials:t?y:void 0};C=a&&new n(i,c);let f=await(a?x(C,b):x(i,c)),m=u&&(_===`stream`||_===`response`);if(u&&(h||m&&w)){let e={};[`status`,`statusText`,`headers`].forEach(t=>{e[t]=f[t]});let t=Z.toFiniteNumber(f.headers.get(`content-length`)),[n,i]=h&&dw(t,uw(fw(h),!0))||[];f=new r(Ew(f.body,Dw,n,()=>{i&&i(),w&&w()}),e)}_||=`text`;let E=await d[Z.findKey(d,_)||`text`](f,e);return!m&&w&&w(),await new Promise((t,n)=>{ow(t,n,{data:E,headers:nw.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:C})})}catch(t){throw w&&w(),t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new vC(`Network Error`,vC.ERR_NETWORK,e,C,t&&t.response),{cause:t.cause||t}):vC.from(t,t&&t.code,e,C,t&&t.response)}}},Pw=new Map,Fw=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=Pw;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:Nw(t)),l=c;return c};Fw();var Iw={http:null,xhr:xw,fetch:{get:Fw}};Z.forEach(Iw,(e,t)=>{if(e){try{Object.defineProperty(e,`name`,{value:t})}catch{}Object.defineProperty(e,`adapterName`,{value:t})}});var Lw=e=>`- ${e}`,Rw=e=>Z.isFunction(e)||e===null||e===!1;function zw(e,t){e=Z.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!Rw(r)&&(i=Iw[(n=String(r)).toLowerCase()],i===void 0))throw new vC(`Unknown adapter '${n}'`);if(i&&(Z.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new vC(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
317
- `+e.map(Lw).join(`
318
- `):` `+Lw(e[0]):`as no adapter specified`),`ERR_NOT_SUPPORT`)}return i}var Bw={getAdapter:zw,adapters:Iw};function Vw(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new aw(null,e)}function Hw(e){return Vw(e),e.headers=nw.from(e.headers),e.data=rw.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),Bw.getAdapter(e.adapter||GC.adapter,e)(e).then(function(t){return Vw(e),t.data=rw.call(e,e.transformResponse,t),t.headers=nw.from(t.headers),t},function(t){return iw(t)||(Vw(e),t&&t.response&&(t.response.data=rw.call(e,e.transformResponse,t.response),t.response.headers=nw.from(t.response.headers))),Promise.reject(t)})}var Uw=`1.14.0`,Ww={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{Ww[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var Gw={};Ww.transitional=function(e,t,n){function r(e,t){return`[Axios v`+Uw+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new vC(r(i,` has been removed`+(t?` in `+t:``)),vC.ERR_DEPRECATED);return t&&!Gw[i]&&(Gw[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),e?e(n,i,a):!0}},Ww.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Kw(e,t,n){if(typeof e!=`object`)throw new vC(`options must be an object`,vC.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let a=r[i],o=t[a];if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new vC(`option `+a+` must be `+n,vC.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new vC(`Unknown option `+a,vC.ERR_BAD_OPTION)}}var qw={assertOptions:Kw,validators:Ww},Jw=qw.validators,Yw=class{constructor(e){this.defaults=e||{},this.interceptors={request:new AC,response:new AC}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,``):``;try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,``))&&(e.stack+=`
319
- `+n):e.stack=n}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=yw(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&qw.assertOptions(n,{silentJSONParsing:Jw.transitional(Jw.boolean),forcedJSONParsing:Jw.transitional(Jw.boolean),clarifyTimeoutError:Jw.transitional(Jw.boolean),legacyInterceptorReqResOrdering:Jw.transitional(Jw.boolean)},!1),r!=null&&(Z.isFunction(r)?t.paramsSerializer={serialize:r}:qw.assertOptions(r,{encode:Jw.function,serialize:Jw.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),qw.assertOptions(t,{baseUrl:Jw.spelling(`baseURL`),withXsrfToken:Jw.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&Z.merge(i.common,i[t.method]);i&&Z.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`common`],e=>{delete i[e]}),t.headers=nw.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||jC;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[Hw.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=Hw.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=yw(this.defaults,e),kC(_w(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Z.forEach([`delete`,`get`,`head`,`options`],function(e){Yw.prototype[e]=function(t,n){return this.request(yw(n||{},{method:e,url:t,data:(n||{}).data}))}}),Z.forEach([`post`,`put`,`patch`],function(e){function t(t){return function(n,r,i){return this.request(yw(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}Yw.prototype[e]=t(),Yw.prototype[e+`Form`]=t(!0)});var Xw=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new aw(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function Zw(e){return function(t){return e.apply(null,t)}}function Qw(e){return Z.isObject(e)&&e.isAxiosError===!0}var $w={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries($w).forEach(([e,t])=>{$w[t]=e});function eT(e){let t=new Yw(e),n=sS(Yw.prototype.request,t);return Z.extend(n,Yw.prototype,t,{allOwnKeys:!0}),Z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return eT(yw(e,t))},n}var tT=eT(GC);tT.Axios=Yw,tT.CanceledError=aw,tT.CancelToken=Xw,tT.isCancel=iw,tT.VERSION=Uw,tT.toFormData=wC,tT.AxiosError=vC,tT.Cancel=tT.CanceledError,tT.all=function(e){return Promise.all(e)},tT.spread=Zw,tT.isAxiosError=Qw,tT.mergeConfig=yw,tT.AxiosHeaders=nw,tT.formToJSON=e=>UC(Z.isHTMLForm(e)?new FormData(e):e),tT.getAdapter=Bw.getAdapter,tT.HttpStatusCode=$w,tT.default=tT;var{Axios:nT,AxiosError:rT,CanceledError:iT,isCancel:aT,CancelToken:oT,VERSION:sT,all:cT,Cancel:lT,isAxiosError:uT,spread:dT,toFormData:fT,AxiosHeaders:pT,HttpStatusCode:mT,formToJSON:hT,getAdapter:gT,mergeConfig:_T}=tT,vT=`genai_access_token`,yT=`genai_tenant_id`;function bT(e){try{let t=JSON.parse(atob(e.split(`.`)[1]));return t.exp?t.exp*1e3<Date.now():!1}catch{return!0}}function xT(){if(typeof sessionStorage<`u`){let e=sessionStorage.getItem(vT);return e&&bT(e)?(sessionStorage.removeItem(vT),null):e}return null}function ST(e){typeof sessionStorage<`u`&&sessionStorage.setItem(vT,e)}function CT(){return typeof sessionStorage<`u`?sessionStorage.getItem(yT):null}function wT(e){typeof sessionStorage<`u`&&sessionStorage.setItem(yT,String(e))}function TT(e){let t=e,n=!1,r=new Set;return{getState(){return t},updateState(e){t=typeof e==`function`?e(t):e},setState(e){this.updateState(e),r.forEach(e=>e(t))},initialize(e){n||=(t=e,!0)},subscribe(e){return r.add(e),()=>r.delete(e)}}}function ET(e,t,n){let r=[],i=[],a={};for(let o of e){let e=o.position||t;a[e]=a[e]||0,a[e]+=1,a[e]<=n?i.push(o):r.push(o)}return{notifications:i,queue:r}}var DT=TT({notifications:[],queue:[],defaultPosition:`bottom-right`,limit:5});function OT(e,t){let n=e.getState(),r=ET(t([...n.notifications,...n.queue]),n.defaultPosition,n.limit);e.setState({notifications:r.notifications,queue:r.queue,limit:n.limit,defaultPosition:n.defaultPosition})}function kT(e,t=DT){let n=e.id||_t();return OT(t,t=>e.id&&t.some(t=>t.id===e.id)?t:[...t,{...e,id:n}]),n}function AT({...e}){return(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,U.jsx)(`path`,{d:`M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M11.992 15H12.001`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M12 12V8`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]})}function jT({...e}){return(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,U.jsx)(`path`,{d:`M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M8 12.5L10.5 15L16 9`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]})}function MT({...e}){return(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,U.jsx)(`path`,{d:`M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M12.2422 17V12C12.2422 11.5286 12.2422 11.2929 12.0957 11.1464C11.9493 11 11.7136 11 11.2422 11`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M11.992 8H12.001`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})]})}function NT({...e}){return(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,U.jsx)(`path`,{d:`M5.32171 9.68293C7.73539 5.41199 8.94222 3.27651 10.5983 2.72681C11.5093 2.4244 12.4907 2.4244 13.4017 2.72681C15.0578 3.27651 16.2646 5.41199 18.6783 9.68293C21.092 13.9538 22.2988 16.0893 21.9368 17.8293C21.7376 18.7866 21.2469 19.6548 20.535 20.3097C19.241 21.5 16.8274 21.5 12 21.5C7.17265 21.5 4.75897 21.5 3.46496 20.3097C2.75308 19.6548 2.26239 18.7866 2.06322 17.8293C1.70119 16.0893 2.90803 13.9538 5.32171 9.68293Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M11.992 16H12.001`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M12 13V9`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]})}var PT={danger:(0,U.jsx)(AT,{}),info:(0,U.jsx)(MT,{}),success:(0,U.jsx)(jT,{}),warning:(0,U.jsx)(NT,{})};function FT(e,t){let n=PT[e];kT({...t,variant:e,icon:n})}function IT(e){FT(`danger`,{title:Fe._({id:`SlfejT`}),...e})}function LT(){return Fe._({id:`Qlh+W2`})}function RT(e,t){return{}[e]}function zT(e){return e?{401:Fe._({id:`9cOLBO`}),403:Fe._({id:`qriaXz`}),404:Fe._({id:`373i3G`}),500:Fe._({id:`lkE00/`}),502:Fe._({id:`9dPdtH`}),503:Fe._({id:`Vw36Gt`}),504:Fe._({id:`3R0fAs`})}[e]:``}var BT=`react-starter-kit-`,VT=Object.entries({BUILD_META_DATA_INSPECTOR:`buildMetaDataInspector`,COLOR_SCHEME:`colorScheme`,DEBUG:`debug`,ENVIRONMENT_INSPECTOR:`environmentInspector`,INCLUDE_BEARER:`includeBearer`,KEYCLOAK_ERROR:`keycloakError`,LANGUAGE:`language`,LOCAL_STORAGE_INSPECTOR:`localStorageInspector`,LOGGER_LOG_LEVEL:`loggerLogLevel`,LOGGER:`logger`,SHOW_HTTP_ERROR_DEBUG_TOASTER:`showHttpErrorDebugToaster`,TABLE_VIEW:`tableView`,DRAWER_EXPANDED:`drawerExpanded`,PANEL_OPEN:`panelOpen`,PERMISSION_GOD_MODE:`permissionGodMode`}).reduce((e,[t,n])=>({...e,[t]:`${BT}${n}`}),{});function HT(e,t=null){let n=localStorage.getItem(e);if(n===null)return t;try{let e=JSON.parse(n);return typeof t==`boolean`?typeof e==`boolean`?e:t:typeof t==`number`?typeof e==`number`&&!Number.isNaN(e)?e:t:e}catch{return typeof t==`string`?n:t}}function UT(){return HT(VT.DEBUG,!1),!0}function WT(){return UT()?HT(VT.SHOW_HTTP_ERROR_DEBUG_TOASTER,!1):!1}function GT(e){return e?.operationResultCode!==void 0}function KT(e){return e?.error!==void 0}function qT(e){let t=e.response?.headers;if(!t)return!1;let n=`application/problem+json`,r=`Content-Type`;return typeof t.get==`function`?t.get(r)===n:t[r]===n}function JT(e){return GT(e)?e.description:KT(e)?e.error:e?.message||e?.errorCode||LT()}function YT(e){return e.code?RT(e.code)||LT():``}function XT(e){return{url:e.config?.url,method:e.config?.method?.toUpperCase(),status:e.response?.status,response:e.response?.data}}function ZT(e){try{return JSON.stringify(e,null,2)}catch{return String(e)}}function QT({url:e,method:t,status:n,response:r}){let i=r!=null&&Object.keys(r).length>0;return(0,U.jsxs)(Ky,{children:[[{label:Fe._({id:`IagCbF`}),value:e},{label:Fe._({id:`fiPesM`}),value:t},{label:Fe._({id:`uAQUqI`}),value:n}].filter(e=>!!e.value).map(({label:e,value:t},n)=>(0,U.jsxs)(Eu,{gap:4,children:[(0,U.jsxs)(Xf,{size:`xs`,fw:500,children:[e,`:`]}),(0,U.jsx)(Xf,{size:`xs`,children:t})]},n)),i&&(0,U.jsx)(Im,{block:!0,lh:1.2,children:ZT(r)})]})}function $T(e){let t=e.response?.data;return GT(t)?t.operationResultCode:KT(t)?t.error:t?.errorCode||t?.code||t?.message||``}function eE(e){return e.response?.data?.status||e.response?.status||e.status}function tE(e){let t=e.response?.data,n=$T(e);if(n){let e=RT(n);if(e)return e}return JT(t)}function nE(e){let t=e.response?.data;return YT(t)||zT(eE(e))}function rE(e){return e.response?.data?qT(e)?nE(e):tE(e):e.message}function iE(e){return e.response?.data?.errorId}function aE(e){let t=rE(e),n=qT(e)?iE(e):void 0;return n?(0,U.jsxs)(Ky,{gap:8,children:[(0,U.jsx)(Xf,{c:`var(--mantine-custom-color-danger-dark)`,size:`sm`,children:t}),(0,U.jsxs)(Xf,{c:`var(--mantine-custom-color-danger-dark)`,size:`sm`,children:[Fe._({id:`jf+o1U`}),`: `,n]})]}):t}function oE(e){if(!e)return LT();if(WT()){let t=XT(e);return Object.values(t).some(Boolean)?(0,U.jsx)(Ky,{children:QT(t)}):aE(e)}return aE(e)}function sE(){return WT()?Fe._({id:`J5ej6L`}):Fe._({id:`SlfejT`})}function cE(e){IT({title:sE(),message:oE(e),autoClose:WT()?!1:5e3})}var lE=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},uE=(e=>e?lE(e):lE),dE=e=>e;function fE(e,t=dE){let n=H.useSyncExternalStore(e.subscribe,H.useCallback(()=>t(e.getState()),[e,t]),H.useCallback(()=>t(e.getInitialState()),[e,t]));return H.useDebugValue(n),n}var pE=e=>{let t=uE(e),n=e=>fE(t,e);return Object.assign(n,t),n},mE=(e=>e?pE(e):pE),hE={DEBUG:1e4,INFO:2e4,WARN:3e4,ERROR:4e4};function gE(){let e=crypto.getRandomValues(new Uint8Array(16));return Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``)}var _E=class e{constructor(){this.contextMap=new Map}static getInstance(){return e.instance||=new e,e.instance}startTrace(e){let t={traceId:gE(),spanId:gE().substring(0,16)};return this.contextMap.set(e,t),t}startSpan(e){let t=this.contextMap.get(e);if(!t)return this.startTrace(e);let n=gE().substring(0,16),r={traceId:t.traceId,spanId:n,parentSpanId:t.spanId};return this.contextMap.set(e,r),r}getCurrentContext(e){return this.contextMap.get(e)}clearContext(e){this.contextMap.delete(e)}}.getInstance(),vE=class e{static{this.globalConfig={enabled:!0,minLogLevel:`INFO`,applicationName:`frontend`}}constructor(t,n={}){this.name=t,this.additionalFields=n.additionalFields??{},this.config={enabled:n.enabled??UT(),minLogLevel:n.minLogLevel??e.globalConfig.minLogLevel}}createLogEntry(t,n,r){let i=_E.getCurrentContext(this.name)??_E.startTrace(this.name);return{"@timestamp":new Date().toISOString(),message:n,logger_name:this.name,level:t,level_value:hE[t],applicationName:e.globalConfig.applicationName,traceId:i.traceId,spanId:i.spanId,...i.parentSpanId&&{parentSpanId:i.parentSpanId},...this.additionalFields,...r}}log(t,n,r){if(!(!this.config.enabled||!e.globalConfig.enabled||hE[t]<hE[this.config.minLogLevel])){let e=Object.fromEntries(Object.entries(r??{}).map(([e,t])=>[e,t?.toString()??t]));Object.keys(e).length>0?console.log(n,e):console.log(n)}}debug(e,t){this.log(`DEBUG`,e,t)}info(e,t){this.log(`INFO`,e,t)}warn(e,t){this.log(`WARN`,e,t)}error(e,t){this.log(`ERROR`,e,t)}startSpan(){_E.startSpan(this.name)}clearTraceContext(){_E.clearContext(this.name)}setEnabled(e){this.config.enabled=e}setMinLogLevel(e){this.config.minLogLevel=e}static setGlobalEnabled(t){e.globalConfig.enabled=t}static getGlobalEnabled(){return e.globalConfig.enabled}static setGlobalMinLogLevel(t){e.globalConfig.minLogLevel=t}static getGlobalMinLogLevel(){return e.globalConfig.minLogLevel}static setGlobalApplicationName(t){e.globalConfig.applicationName=t}};new vE(`KeycloakService`);var yE=null;function bE(){return yE?.token?`Bearer ${yE.token}`:void 0}function xE(){return yE}var SE=new nS({queryCache:new tS({onError:(e,t)=>{(t.meta?.handleGlobalError??!0)&&e instanceof rT&&cE(e)}}),mutationCache:new Qx({onError:(e,t,n,r)=>{(r.meta?.handleGlobalError??!0)&&e instanceof rT&&cE(e)}}),defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1,staleTime:600*1e3},mutations:{retry:!1}}});function CE(e,t,n){let r=e.startsWith(`/`)?e:`/${e}`;return t?t===`public`?wE(r):t===`private`||n?TE(r):wE(r):r}function wE(e){return e.startsWith(`/public/`)?e:`/public${e}`}function TE(e){return e.startsWith(`/public/`)?e.replace(/^\/public/,``):e}function EE(e,t=``){return`${e.replace(/\/+$/,``)}${t?`/${t.replace(/^\/+/,``)}`:``}`}function DE({baseUrl:e,prefix:t=``,withCollation:n=!0}){let r=tT.create({baseURL:EE(e,t),paramsSerializer:{indexes:null}});return r.interceptors.request.use(e=>{let t=xE()?.authenticated??!1,r=e.anonymous??!1;e.accessScope&&(e.url=CE(e.url||``,e.accessScope,t));let i=xT(),a=CT();i&&(e.headers.Authorization=`Bearer ${i}`),a&&(e.headers[`x-tenant-id`]=a);let o=bE();return o&&!r&&(e.headers.Authorization=o),n&&(e.headers.Collation=Fe.locale),!e.headers.has(`Content-Type`)&&!(e.data instanceof FormData)&&(e.headers[`Content-Type`]=`application/json`),e.method?.toLowerCase()===`get`&&(e.data={}),e},e=>Promise.reject(e)),r}var OE;function kE(e,t){let n=e.url.api,r=e.url.apiPaths,i=t?.api??n;DE({baseUrl:n,prefix:r.crm}),DE({baseUrl:n,prefix:r.uiAuthz}),OE=DE({baseUrl:i,prefix:``})}var Q=l(o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))}))(),1);function AE({type:e,date:t,locale:n,format:r,labelSeparator:i}){let a=e=>(0,Q.default)(e).locale(n).format(r);return e===`default`?t===null?``:a(t):e===`multiple`?t.map(a).join(`, `):e===`range`&&Array.isArray(t)?t[0]&&t[1]?`${a(t[0])} ${i} ${a(t[1])}`:t[0]?`${a(t[0])} ${i} `:``:``}function jE({formatter:e,...t}){return(e||AE)(t)}function ME({direction:e,levelIndex:t,rowIndex:n,cellIndex:r,size:i}){switch(e){case`up`:return t===0&&n===0?null:n===0?{levelIndex:t-1,rowIndex:r<=i[t-1][i[t-1].length-1]-1?i[t-1].length-1:i[t-1].length-2,cellIndex:r}:{levelIndex:t,rowIndex:n-1,cellIndex:r};case`down`:return n===i[t].length-1||n===i[t].length-2&&r>=i[t][i[t].length-1]?{levelIndex:t+1,rowIndex:0,cellIndex:r}:{levelIndex:t,rowIndex:n+1,cellIndex:r};case`left`:return t===0&&n===0&&r===0?null:n===0&&r===0?{levelIndex:t-1,rowIndex:i[t-1].length-1,cellIndex:i[t-1][i[t-1].length-1]-1}:r===0?{levelIndex:t,rowIndex:n-1,cellIndex:i[t][n-1]-1}:{levelIndex:t,rowIndex:n,cellIndex:r-1};case`right`:return n===i[t].length-1&&r===i[t][n]-1?{levelIndex:t+1,rowIndex:0,cellIndex:0}:r===i[t][n]-1?{levelIndex:t,rowIndex:n+1,cellIndex:0}:{levelIndex:t,rowIndex:n,cellIndex:r+1};default:return{levelIndex:t,rowIndex:n,cellIndex:r}}}function NE({controlsRef:e,direction:t,levelIndex:n,rowIndex:r,cellIndex:i,size:a}){let o=ME({direction:t,size:a,rowIndex:r,cellIndex:i,levelIndex:n});if(!o)return;let s=e.current?.[o.levelIndex]?.[o.rowIndex]?.[o.cellIndex];s&&(s.disabled||s.getAttribute(`data-hidden`)||s.getAttribute(`data-outside`)?NE({controlsRef:e,direction:t,levelIndex:o.levelIndex,cellIndex:o.cellIndex,rowIndex:o.rowIndex,size:a}):s.focus())}function PE(e){switch(e){case`ArrowDown`:return`down`;case`ArrowUp`:return`up`;case`ArrowRight`:return`right`;case`ArrowLeft`:return`left`;default:return null}}function FE(e){return e.current?.map(e=>e.map(e=>e.length))}function IE({controlsRef:e,levelIndex:t,rowIndex:n,cellIndex:r,event:i}){let a=PE(i.key);a&&(i.preventDefault(),NE({controlsRef:e,direction:a,levelIndex:t,rowIndex:n,cellIndex:r,size:FE(e)}))}function LE(e){return e==null||e===``?e:(0,Q.default)(e).format(`YYYY-MM-DD`)}function RE(e){return e==null||e===``?e:(0,Q.default)(e).format(`YYYY-MM-DD HH:mm:ss`)}function zE({minDate:e,maxDate:t}){let n=(0,Q.default)();return!e&&!t?LE(n):e&&(0,Q.default)(n).isBefore(e)?LE(e):t&&(0,Q.default)(n).isAfter(t)?LE(t):LE(n)}var BE=(0,H.createContext)({locale:`en`,firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:`–`,consistentWeeks:!1});function VE(){let e=(0,H.use)(BE),t=(0,H.useCallback)(t=>t||e.locale,[e.locale]),n=(0,H.useCallback)(t=>typeof t==`number`?t:e.firstDayOfWeek,[e.firstDayOfWeek]),r=(0,H.useCallback)(t=>Array.isArray(t)?t:e.weekendDays,[e.weekendDays]),i=(0,H.useCallback)(t=>typeof t==`string`?t:e.labelSeparator,[e.labelSeparator]);return{...e,getLocale:t,getFirstDayOfWeek:n,getWeekendDays:r,getLabelSeparator:i}}function HE({value:e,type:t,withTime:n}){let r=n?RE:LE;if(t===`range`&&Array.isArray(e)){let t=r(e[0]),n=r(e[1]);return t?n?`${t} – ${n}`:`${t} –`:``}return t===`multiple`&&Array.isArray(e)?e.filter(Boolean).join(`, `):!Array.isArray(e)&&e?r(e):``}function UE({value:e,type:t,name:n,form:r,withTime:i=!1}){return(0,U.jsx)(`input`,{type:`hidden`,value:HE({value:e,type:t,withTime:i}),name:n,form:r})}UE.displayName=`@mantine/dates/HiddenDatesInput`;var WE={day:`m_396ce5cb`},GE=Cn((e,{size:t})=>({day:{"--day-size":at(t,`day-size`)}})),KE=K(e=>{let t=W(`Day`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,date:c,disabled:l,__staticSelector:u,weekend:d,outside:f,selected:p,renderDay:m,inRange:h,firstInRange:g,lastInRange:_,hidden:v,static:y,highlightToday:b,fullWidth:x,attributes:S,...C}=t;return(0,U.jsx)(dl,{...G({name:u||`Day`,classes:WE,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:S,vars:s,varsResolver:GE,rootSelector:`day`})(`day`,{style:v?{display:`none`}:void 0}),component:y?`div`:`button`,disabled:l,"data-today":(0,Q.default)(c).isSame(new Date,`day`)||void 0,"data-hidden":v||void 0,"data-highlight-today":b||void 0,"data-disabled":l||void 0,"data-weekend":!l&&!f&&d||void 0,"data-outside":!l&&f||void 0,"data-selected":!l&&p||void 0,"data-in-range":h&&!l||void 0,"data-first-in-range":g&&!l||void 0,"data-last-in-range":_&&!l||void 0,"data-static":y||void 0,"data-full-width":x||void 0,unstyled:o,...C,children:m?.(c)||(0,Q.default)(c).date()})});KE.classes=WE,KE.varsResolver=GE,KE.displayName=`@mantine/dates/Day`;function qE({locale:e,format:t=`dd`,firstDayOfWeek:n=1}){let r=(0,Q.default)().day(n),i=[];for(let n=0;n<7;n+=1)typeof t==`string`?i.push((0,Q.default)(r).add(n,`days`).locale(e).format(t)):i.push(t((0,Q.default)(r).add(n,`days`).format(`YYYY-MM-DD`)));return i}var JE={weekday:`m_18a3eca`},YE=Cn((e,{size:t})=>({weekdaysRow:{"--wr-fz":ct(t),"--wr-spacing":ot(t)}})),XE=K(e=>{let t=W(`WeekdaysRow`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,locale:c,firstDayOfWeek:l,weekdayFormat:u,cellComponent:d=`th`,__staticSelector:f,withWeekNumbers:p,attributes:m,...h}=t,g=G({name:f||`WeekdaysRow`,classes:JE,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:m,vars:s,varsResolver:YE,rootSelector:`weekdaysRow`}),_=VE(),v=qE({locale:_.getLocale(c),format:u,firstDayOfWeek:_.getFirstDayOfWeek(l)}).map((e,t)=>(0,U.jsx)(d,{...g(`weekday`),children:e},t));return(0,U.jsxs)(q,{component:`tr`,...g(`weekdaysRow`),...h,children:[p&&(0,U.jsx)(d,{...g(`weekday`),children:`#`}),v]})});XE.classes=JE,XE.varsResolver=YE,XE.displayName=`@mantine/dates/WeekdaysRow`;function ZE(e,t=1){let n=(0,Q.default)(e);if(!n.isValid())return n;let r=t===0?6:t-1;for(;n.day()!==r;)n=n.add(1,`day`);return n.format(`YYYY-MM-DD`)}function QE(e,t=1){let n=(0,Q.default)(e);for(;n.day()!==t;)n=n.subtract(1,`day`);return n.format(`YYYY-MM-DD`)}function $E({month:e,firstDayOfWeek:t=1,consistentWeeks:n}){let r=(0,Q.default)((0,Q.default)(e).subtract((0,Q.default)(e).date()-1,`day`).format(`YYYY-M-D`)),i=r.format(`YYYY-MM-DD`),a=ZE(r.add(r.daysInMonth()-1,`day`).format(`YYYY-MM-DD`),t),o=[],s=(0,Q.default)(QE(i,t));for(;(0,Q.default)(s).isBefore(a,`day`);){let e=[];for(let t=0;t<7;t+=1)e.push(s.format(`YYYY-MM-DD`)),s=s.add(1,`day`);o.push(e)}if(n&&o.length<6){let e=o[o.length-1],t=e[e.length-1],n=(0,Q.default)(t).add(1,`day`);for(;o.length<6;){let e=[];for(let t=0;t<7;t+=1)e.push(n.format(`YYYY-MM-DD`)),n=n.add(1,`day`);o.push(e)}}return o}function eD(e,t){return(0,Q.default)(e).format(`YYYY-MM`)===(0,Q.default)(t).format(`YYYY-MM`)}function tD(e,t){return t?(0,Q.default)(e).isAfter((0,Q.default)(t).subtract(1,`day`),`day`):!0}function nD(e,t){return t?(0,Q.default)(e).isBefore((0,Q.default)(t).add(1,`day`),`day`):!0}function rD({dates:e,minDate:t,maxDate:n,getDayProps:r,excludeDate:i,hideOutsideDates:a,month:o}){let s=e.flat().filter(e=>nD(e,n)&&tD(e,t)&&!i?.(e)&&!r?.(e)?.disabled&&(!a||eD(e,o)));return s.find(e=>r?.(e)?.selected)||s.find(e=>(0,Q.default)().isSame(e,`date`))||s[0]}var iD=l(o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isoWeek=r()})(e,(function(){"use strict";var e=`day`;return function(t,n,r){var i=function(t){return t.add(4-t.isoWeekday(),e)},a=n.prototype;a.isoWeekYear=function(){return i(this).year()},a.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e);var n,a,o,s,c=i(this),l=(n=this.isoWeekYear(),a=this.$u,o=(a?r.utc:r)().year(n).startOf(`year`),s=4-o.isoWeekday(),o.isoWeekday()>4&&(s+=7),o.add(s,e));return c.diff(l,`week`)+1},a.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var o=a.startOf;a.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return n.p(e)===`isoweek`?r?this.date(this.date()-(this.isoWeekday()-1)).startOf(`day`):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf(`day`):o.bind(this)(e,t)}}}))}))(),1);Q.default.extend(iD.default);function aD(e){return(0,Q.default)(e.find(e=>(0,Q.default)(e).day()===1)).isoWeek()}var oD={month:`m_cc9820d3`,monthCell:`m_8f457cd5`,weekNumber:`m_6cff9dea`},sD={withCellSpacing:!0},cD=Cn((e,{size:t})=>({weekNumber:{"--wn-fz":ct(t),"--wn-size":at(t,`wn-size`)}})),lD=K(e=>{let t=W(`Month`,sD,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,locale:l,firstDayOfWeek:u,weekdayFormat:d,month:f,weekendDays:p,getDayProps:m,excludeDate:h,minDate:g,maxDate:_,renderDay:v,hideOutsideDates:y,hideWeekdays:b,getDayAriaLabel:x,static:S,__getDayRef:C,__onDayKeyDown:w,__onDayClick:T,__onDayMouseEnter:E,__preventFocus:D,__stopPropagation:O,withCellSpacing:k,size:A,highlightToday:j,withWeekNumbers:M,fullWidth:N,attributes:P,...ee}=t,F=G({name:c||`Month`,classes:oD,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:P,vars:s,varsResolver:cD,rootSelector:`month`}),I=VE(),te=$E({month:f,firstDayOfWeek:I.getFirstDayOfWeek(u),consistentWeeks:I.consistentWeeks}),ne=rD({dates:te,minDate:LE(g),maxDate:LE(_),getDayProps:m,excludeDate:h,hideOutsideDates:y,month:f}),{resolvedClassNames:re,resolvedStyles:ie}=Ur({classNames:n,styles:a,props:t}),L=te.map((e,t)=>{let n=e.map((e,n)=>{let r=!eD(e,f),i=x?.(e)||(0,Q.default)(e).locale(l||I.locale).format(`D MMMM YYYY`),a=m?.(e),s=(0,Q.default)(e).isSame(ne,`date`);return(0,U.jsx)(`td`,{...F(`monthCell`),"data-with-spacing":k||void 0,children:(0,U.jsx)(KE,{__staticSelector:c||`Month`,classNames:re,styles:ie,attributes:P,unstyled:o,"data-mantine-stop-propagation":O||void 0,highlightToday:j,renderDay:v,date:e,size:A,weekend:I.getWeekendDays(p).includes((0,Q.default)(e).get(`day`)),outside:r,hidden:y?r:!1,"aria-label":i,static:S,fullWidth:N,disabled:h?.(e)||!nD(e,LE(_))||!tD(e,LE(g)),ref:e=>{e&&C?.(t,n,e)},...a,onKeyDown:r=>{a?.onKeyDown?.(r),w?.(r,{rowIndex:t,cellIndex:n,date:e})},onMouseEnter:t=>{a?.onMouseEnter?.(t),E?.(t,e)},onClick:t=>{a?.onClick?.(t),T?.(t,e)},onMouseDown:e=>{a?.onMouseDown?.(e),D&&e.preventDefault()},tabIndex:D||!s?-1:0})},e.toString())});return(0,U.jsxs)(`tr`,{...F(`monthRow`),children:[M&&(0,U.jsx)(`td`,{...F(`weekNumber`),children:aD(e)}),n]},t)});return(0,U.jsxs)(q,{component:`table`,...F(`month`),size:A,"data-full-width":N||void 0,...ee,children:[!b&&(0,U.jsx)(`thead`,{...F(`monthThead`),children:(0,U.jsx)(XE,{__staticSelector:c||`Month`,locale:l,firstDayOfWeek:u,weekdayFormat:d,withWeekNumbers:M,size:A,classNames:re,styles:ie,unstyled:o,attributes:P})}),(0,U.jsx)(`tbody`,{...F(`monthTbody`),children:L})]})});lD.classes=oD,lD.varsResolver=cD,lD.displayName=`@mantine/dates/Month`;var uD={pickerControl:`m_dc6a3c71`},dD=Cn((e,{size:t})=>({pickerControl:{"--dpc-fz":ct(t),"--dpc-size":at(t,`dpc-size`)}})),fD=K(e=>{let t=W(`PickerControl`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,firstInRange:c,lastInRange:l,inRange:u,__staticSelector:d,selected:f,disabled:p,fullWidth:m,attributes:h,...g}=t;return(0,U.jsx)(dl,{...G({name:d||`PickerControl`,classes:uD,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:dD,rootSelector:`pickerControl`})(`pickerControl`),unstyled:o,"data-picker-control":!0,"data-full-width":m||void 0,"data-selected":f&&!p||void 0,"data-disabled":p||void 0,"data-in-range":u&&!p&&!f||void 0,"data-first-in-range":c&&!p||void 0,"data-last-in-range":l&&!p||void 0,disabled:p,...g})});fD.classes=uD,fD.varsResolver=dD,fD.displayName=`@mantine/dates/PickerControl`;function pD({year:e,minDate:t,maxDate:n}){return!t&&!n?!1:!!(t&&(0,Q.default)(e).isBefore(t,`year`)||n&&(0,Q.default)(e).isAfter(n,`year`))}function mD({years:e,minDate:t,maxDate:n,getYearControlProps:r}){let i=e.flat().filter(e=>!pD({year:e,minDate:t,maxDate:n})&&!r?.(e)?.disabled);return i.find(e=>r?.(e)?.selected)||i.find(e=>(0,Q.default)().isSame(e,`year`))||i[0]}function hD(e){let t=(0,Q.default)(e).year(),n=t-t%10,r=0,i=[[],[],[],[]];for(let e=0;e<4;e+=1){let t=e===3?1:3;for(let a=0;a<t;a+=1)i[e].push((0,Q.default)(new Date(n+r,0)).format(`YYYY-MM-DD`)),r+=1}return i}var gD={yearsList:`m_9206547b`,yearsListCell:`m_c5a19c7d`},_D={yearsListFormat:`YYYY`,withCellSpacing:!0},vD=K(e=>{let t=W(`YearsList`,_D,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,decade:c,yearsListFormat:l,locale:u,minDate:d,maxDate:f,getYearControlProps:p,__staticSelector:m,__getControlRef:h,__onControlKeyDown:g,__onControlClick:_,__onControlMouseEnter:v,__preventFocus:y,__stopPropagation:b,withCellSpacing:x,fullWidth:S,size:C,attributes:w,...T}=t,E=G({name:m||`YearsList`,classes:gD,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:w,vars:s,rootSelector:`yearsList`}),D=VE(),O=hD(c),k=mD({years:O,minDate:d,maxDate:f,getYearControlProps:p}),A=O.map((e,t)=>{let n=e.map((e,n)=>{let r=p?.(e),i=(0,Q.default)(e).isSame(k,`year`);return(0,U.jsx)(`td`,{...E(`yearsListCell`),"data-with-spacing":x||void 0,children:(0,U.jsx)(fD,{...E(`yearsListControl`),size:C,unstyled:o,fullWidth:S,"data-mantine-stop-propagation":b||void 0,disabled:pD({year:e,minDate:d,maxDate:f}),ref:e=>{e&&h?.(t,n,e)},...r,onKeyDown:i=>{r?.onKeyDown?.(i),g?.(i,{rowIndex:t,cellIndex:n,date:e})},onClick:t=>{r?.onClick?.(t),_?.(t,e)},onMouseEnter:t=>{r?.onMouseEnter?.(t),v?.(t,e)},onMouseDown:e=>{r?.onMouseDown?.(e),y&&e.preventDefault()},tabIndex:y||!i?-1:0,children:r?.children??(0,Q.default)(e).locale(D.getLocale(u)).format(l)})},n)});return(0,U.jsx)(`tr`,{...E(`yearsListRow`),children:n},t)});return(0,U.jsx)(q,{component:`table`,size:C,...E(`yearsList`),"data-full-width":S||void 0,...T,children:(0,U.jsx)(`tbody`,{children:A})})});vD.classes=gD,vD.displayName=`@mantine/dates/YearsList`;function yD({month:e,minDate:t,maxDate:n}){return!t&&!n?!1:!!(t&&(0,Q.default)(e).isBefore(t,`month`)||n&&(0,Q.default)(e).isAfter(n,`month`))}function bD({months:e,minDate:t,maxDate:n,getMonthControlProps:r}){let i=e.flat().filter(e=>!yD({month:e,minDate:t,maxDate:n})&&!r?.(e)?.disabled);return i.find(e=>r?.(e)?.selected)||i.find(e=>(0,Q.default)().isSame(e,`month`))||i[0]}function xD(e){let t=(0,Q.default)(e).startOf(`year`).toDate(),n=[[],[],[],[]],r=0;for(let e=0;e<4;e+=1)for(let i=0;i<3;i+=1)n[e].push((0,Q.default)(t).add(r,`months`).format(`YYYY-MM-DD`)),r+=1;return n}var SD={monthsList:`m_2a6c32d`,monthsListCell:`m_fe27622f`},CD={monthsListFormat:`MMM`,withCellSpacing:!0},wD=K(e=>{let t=W(`MonthsList`,CD,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,year:l,monthsListFormat:u,locale:d,minDate:f,maxDate:p,getMonthControlProps:m,__getControlRef:h,__onControlKeyDown:g,__onControlClick:_,__onControlMouseEnter:v,__preventFocus:y,__stopPropagation:b,withCellSpacing:x,fullWidth:S,size:C,attributes:w,...T}=t,E=G({name:c||`MonthsList`,classes:SD,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:w,vars:s,rootSelector:`monthsList`}),D=VE(),O=xD(l),k=bD({months:O,minDate:LE(f),maxDate:LE(p),getMonthControlProps:m}),A=O.map((e,t)=>{let n=e.map((e,n)=>{let r=m?.(e),i=(0,Q.default)(e).isSame(k,`month`);return(0,U.jsx)(`td`,{...E(`monthsListCell`),"data-with-spacing":x||void 0,children:(0,U.jsx)(fD,{...E(`monthsListControl`),size:C,unstyled:o,fullWidth:S,__staticSelector:c||`MonthsList`,"data-mantine-stop-propagation":b||void 0,disabled:yD({month:e,minDate:LE(f),maxDate:LE(p)}),ref:e=>{e&&h?.(t,n,e)},...r,onKeyDown:i=>{r?.onKeyDown?.(i),g?.(i,{rowIndex:t,cellIndex:n,date:e})},onClick:t=>{r?.onClick?.(t),_?.(t,e)},onMouseEnter:t=>{r?.onMouseEnter?.(t),v?.(t,e)},onMouseDown:e=>{r?.onMouseDown?.(e),y&&e.preventDefault()},tabIndex:y||!i?-1:0,children:r?.children??(0,Q.default)(e).locale(D.getLocale(d)).format(u)})},n)});return(0,U.jsx)(`tr`,{...E(`monthsListRow`),children:n},t)});return(0,U.jsx)(q,{component:`table`,size:C,...E(`monthsList`),"data-full-width":S||void 0,...T,children:(0,U.jsx)(`tbody`,{children:A})})});wD.classes=SD,wD.displayName=`@mantine/dates/MonthsList`;var TD={calendarHeader:`m_730a79ed`,calendarHeaderLevel:`m_f6645d97`,calendarHeaderControl:`m_2351eeb0`,calendarHeaderControlIcon:`m_367dc749`},ED={hasNextLevel:!0,withNext:!0,withPrevious:!0,headerControlsOrder:[`previous`,`level`,`next`]},DD=Cn((e,{size:t})=>({calendarHeader:{"--dch-control-size":at(t,`dch-control-size`),"--dch-fz":ct(t)}})),OD=K(e=>{let t=W(`CalendarHeader`,ED,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,nextIcon:c,previousIcon:l,nextLabel:u,previousLabel:d,onNext:f,onPrevious:p,onLevelClick:m,label:h,nextDisabled:g,previousDisabled:_,hasNextLevel:v,levelControlAriaLabel:y,withNext:b,withPrevious:x,headerControlsOrder:S,fullWidth:C,__staticSelector:w,__preventFocus:T,__stopPropagation:E,attributes:D,...O}=t,k=G({name:w||`CalendarHeader`,classes:TD,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:D,vars:s,varsResolver:DD,rootSelector:`calendarHeader`}),A=T?e=>e.preventDefault():void 0,j=x&&(0,H.createElement)(dl,{...k(`calendarHeaderControl`),key:`previous`,"data-direction":`previous`,"aria-label":d,onClick:p,unstyled:o,onMouseDown:A,disabled:_,"data-disabled":_||void 0,tabIndex:T||_?-1:0,"data-mantine-stop-propagation":E||void 0},l||(0,U.jsx)(Pf,{...k(`calendarHeaderControlIcon`),"data-direction":`previous`,size:`45%`})),M=(0,H.createElement)(dl,{component:v?`button`:`div`,...k(`calendarHeaderLevel`),key:`level`,onClick:v?m:void 0,unstyled:o,onMouseDown:v?A:void 0,disabled:!v,"data-static":!v||void 0,"aria-label":y,tabIndex:T||!v?-1:0,"data-mantine-stop-propagation":E||void 0},h),N=b&&(0,H.createElement)(dl,{...k(`calendarHeaderControl`),key:`next`,"data-direction":`next`,"aria-label":u,onClick:f,unstyled:o,onMouseDown:A,disabled:g,"data-disabled":g||void 0,tabIndex:T||g?-1:0,"data-mantine-stop-propagation":E||void 0},c||(0,U.jsx)(Pf,{...k(`calendarHeaderControlIcon`),"data-direction":`next`,size:`45%`})),P=S.map(e=>e===`previous`?j:e===`level`?M:e===`next`?N:null);return(0,U.jsx)(q,{...k(`calendarHeader`),"data-full-width":C||void 0,...O,children:P})});OD.classes=TD,OD.varsResolver=DD,OD.displayName=`@mantine/dates/CalendarHeader`;function kD(e){let t=hD(e);return[t[0][0],t[3][0]]}var AD={decadeLabelFormat:`YYYY`},jD=K(e=>{let{decade:t,locale:n,minDate:r,maxDate:i,yearsListFormat:a,getYearControlProps:o,__getControlRef:s,__onControlKeyDown:c,__onControlClick:l,__onControlMouseEnter:u,withCellSpacing:d,__preventFocus:f,nextIcon:p,previousIcon:m,nextLabel:h,previousLabel:g,onNext:_,onPrevious:v,nextDisabled:y,previousDisabled:b,levelControlAriaLabel:x,withNext:S,withPrevious:C,headerControlsOrder:w,decadeLabelFormat:T,classNames:E,styles:D,unstyled:O,__staticSelector:k,__stopPropagation:A,size:j,fullWidth:M,attributes:N,...P}=W(`DecadeLevel`,AD,e),ee=VE(),[F,I]=kD(t),te={__staticSelector:k||`DecadeLevel`,classNames:E,styles:D,unstyled:O,size:j,attributes:N},ne=typeof y==`boolean`?y:i?!(0,Q.default)(I).endOf(`year`).isBefore(i):!1,re=typeof b==`boolean`?b:r?!(0,Q.default)(F).startOf(`year`).isAfter(r):!1,ie=(e,t)=>(0,Q.default)(e).locale(n||ee.locale).format(t);return(0,U.jsxs)(q,{"data-decade-level":!0,size:j,...P,children:[(0,U.jsx)(OD,{label:typeof T==`function`?T(F,I):`${ie(F,T)} – ${ie(I,T)}`,__preventFocus:f,__stopPropagation:A,nextIcon:p,previousIcon:m,nextLabel:h,previousLabel:g,onNext:_,onPrevious:v,nextDisabled:ne,previousDisabled:re,hasNextLevel:!1,levelControlAriaLabel:x,withNext:S,withPrevious:C,headerControlsOrder:w,fullWidth:M,...te}),(0,U.jsx)(vD,{decade:t,locale:n,minDate:r,maxDate:i,yearsListFormat:a,getYearControlProps:o,__getControlRef:s,__onControlKeyDown:c,__onControlClick:l,__onControlMouseEnter:u,__preventFocus:f,__stopPropagation:A,withCellSpacing:d,fullWidth:M,...te})]})});jD.classes={...vD.classes,...OD.classes},jD.displayName=`@mantine/dates/DecadeLevel`;var MD={yearLabelFormat:`YYYY`},ND=K(e=>{let{year:t,locale:n,minDate:r,maxDate:i,monthsListFormat:a,getMonthControlProps:o,__getControlRef:s,__onControlKeyDown:c,__onControlClick:l,__onControlMouseEnter:u,withCellSpacing:d,__preventFocus:f,nextIcon:p,previousIcon:m,nextLabel:h,previousLabel:g,onNext:_,onPrevious:v,onLevelClick:y,nextDisabled:b,previousDisabled:x,hasNextLevel:S,levelControlAriaLabel:C,withNext:w,withPrevious:T,headerControlsOrder:E,yearLabelFormat:D,__staticSelector:O,__stopPropagation:k,size:A,classNames:j,styles:M,unstyled:N,fullWidth:P,attributes:ee,...F}=W(`YearLevel`,MD,e),I=VE(),te={__staticSelector:O||`YearLevel`,classNames:j,styles:M,unstyled:N,size:A,attributes:ee},ne=typeof b==`boolean`?b:i?!(0,Q.default)(t).endOf(`year`).isBefore(i):!1,re=typeof x==`boolean`?x:r?!(0,Q.default)(t).startOf(`year`).isAfter(r):!1;return(0,U.jsxs)(q,{"data-year-level":!0,size:A,...F,children:[(0,U.jsx)(OD,{label:typeof D==`function`?D(t):(0,Q.default)(t).locale(n||I.locale).format(D),__preventFocus:f,__stopPropagation:k,nextIcon:p,previousIcon:m,nextLabel:h,previousLabel:g,onNext:_,onPrevious:v,onLevelClick:y,nextDisabled:ne,previousDisabled:re,hasNextLevel:S,levelControlAriaLabel:C,withNext:w,withPrevious:T,headerControlsOrder:E,fullWidth:P,...te}),(0,U.jsx)(wD,{year:t,locale:n,minDate:r,maxDate:i,monthsListFormat:a,getMonthControlProps:o,__getControlRef:s,__onControlKeyDown:c,__onControlClick:l,__onControlMouseEnter:u,__preventFocus:f,__stopPropagation:k,withCellSpacing:d,fullWidth:P,...te})]})});ND.classes={...OD.classes,...wD.classes},ND.displayName=`@mantine/dates/YearLevel`;var PD={monthLabelFormat:`MMMM YYYY`},FD=K(e=>{let{month:t,locale:n,firstDayOfWeek:r,weekdayFormat:i,weekendDays:a,getDayProps:o,excludeDate:s,minDate:c,maxDate:l,renderDay:u,hideOutsideDates:d,hideWeekdays:f,getDayAriaLabel:p,__getDayRef:m,__onDayKeyDown:h,__onDayClick:g,__onDayMouseEnter:_,withCellSpacing:v,highlightToday:y,withWeekNumbers:b,__preventFocus:x,__stopPropagation:S,nextIcon:C,previousIcon:w,nextLabel:T,previousLabel:E,onNext:D,onPrevious:O,onLevelClick:k,nextDisabled:A,previousDisabled:j,hasNextLevel:M,levelControlAriaLabel:N,withNext:P,withPrevious:ee,headerControlsOrder:F,monthLabelFormat:I,classNames:te,styles:ne,unstyled:re,__staticSelector:ie,size:L,static:ae,fullWidth:oe,attributes:se,...ce}=W(`MonthLevel`,PD,e),le=VE(),ue={__staticSelector:ie||`MonthLevel`,classNames:te,styles:ne,unstyled:re,size:L,attributes:se},de=typeof A==`boolean`?A:l?!(0,Q.default)(t).endOf(`month`).isBefore(l):!1,fe=typeof j==`boolean`?j:c?!(0,Q.default)(t).startOf(`month`).isAfter(c):!1;return(0,U.jsxs)(q,{"data-month-level":!0,size:L,...ce,children:[(0,U.jsx)(OD,{label:typeof I==`function`?I(t):(0,Q.default)(t).locale(n||le.locale).format(I),__preventFocus:x,__stopPropagation:S,nextIcon:C,previousIcon:w,nextLabel:T,previousLabel:E,onNext:D,onPrevious:O,onLevelClick:k,nextDisabled:de,previousDisabled:fe,hasNextLevel:M,levelControlAriaLabel:N,withNext:P,withPrevious:ee,headerControlsOrder:F,fullWidth:oe,...ue}),(0,U.jsx)(lD,{month:t,locale:n,firstDayOfWeek:r,weekdayFormat:i,weekendDays:a,getDayProps:o,excludeDate:s,minDate:c,maxDate:l,renderDay:u,hideOutsideDates:d,hideWeekdays:f,getDayAriaLabel:p,__getDayRef:m,__onDayKeyDown:h,__onDayClick:g,__onDayMouseEnter:_,__preventFocus:x,__stopPropagation:S,static:ae,withCellSpacing:v,highlightToday:y,withWeekNumbers:b,fullWidth:oe,...ue})]})});FD.classes={...lD.classes,...OD.classes},FD.displayName=`@mantine/dates/MonthLevel`;var ID={levelsGroup:`m_30b26e33`},LD=K(e=>{let t=W(`LevelsGroup`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,fullWidth:l,attributes:u,...d}=t;return(0,U.jsx)(q,{...G({name:c||`LevelsGroup`,classes:ID,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,rootSelector:`levelsGroup`})(`levelsGroup`),"data-full-width":l||void 0,...d})});LD.classes=ID,LD.displayName=`@mantine/dates/LevelsGroup`;var RD={numberOfColumns:1},zD=K(e=>{let{decade:t,locale:n,minDate:r,maxDate:i,yearsListFormat:a,getYearControlProps:o,__onControlClick:s,__onControlMouseEnter:c,withCellSpacing:l,__preventFocus:u,nextIcon:d,previousIcon:f,nextLabel:p,previousLabel:m,onNext:h,onPrevious:g,nextDisabled:_,previousDisabled:v,headerControlsOrder:y,classNames:b,styles:x,unstyled:S,__staticSelector:C,__stopPropagation:w,numberOfColumns:T,levelControlAriaLabel:E,decadeLabelFormat:D,size:O,fullWidth:k,vars:A,attributes:j,...M}=W(`DecadeLevelGroup`,RD,e),N=(0,H.useRef)([]),P=Array(T).fill(0).map((e,A)=>{let M=(0,Q.default)(t).add(A*10,`years`).format(`YYYY-MM-DD`);return(0,U.jsx)(jD,{size:O,yearsListFormat:a,decade:M,withNext:A===T-1,withPrevious:A===0,decadeLabelFormat:D,__onControlClick:s,__onControlMouseEnter:c,__onControlKeyDown:(e,t)=>IE({levelIndex:A,rowIndex:t.rowIndex,cellIndex:t.cellIndex,event:e,controlsRef:N}),__getControlRef:(e,t,n)=>{Array.isArray(N.current[A])||(N.current[A]=[]),Array.isArray(N.current[A][e])||(N.current[A][e]=[]),N.current[A][e][t]=n},levelControlAriaLabel:typeof E==`function`?E(M):E,locale:n,minDate:r,maxDate:i,__preventFocus:u,__stopPropagation:w,nextIcon:d,previousIcon:f,nextLabel:p,previousLabel:m,onNext:h,onPrevious:g,nextDisabled:_,previousDisabled:v,getYearControlProps:o,__staticSelector:C||`DecadeLevelGroup`,classNames:b,styles:x,unstyled:S,withCellSpacing:l,headerControlsOrder:y,fullWidth:k,attributes:j},A)});return(0,U.jsx)(LD,{classNames:b,styles:x,__staticSelector:C||`DecadeLevelGroup`,size:O,unstyled:S,fullWidth:k,attributes:j,...M,children:P})});zD.classes={...LD.classes,...jD.classes},zD.displayName=`@mantine/dates/DecadeLevelGroup`;var BD={numberOfColumns:1},VD=K(e=>{let{year:t,locale:n,minDate:r,maxDate:i,monthsListFormat:a,getMonthControlProps:o,__onControlClick:s,__onControlMouseEnter:c,withCellSpacing:l,__preventFocus:u,nextIcon:d,previousIcon:f,nextLabel:p,previousLabel:m,onNext:h,onPrevious:g,onLevelClick:_,nextDisabled:v,previousDisabled:y,hasNextLevel:b,headerControlsOrder:x,classNames:S,styles:C,unstyled:w,__staticSelector:T,__stopPropagation:E,numberOfColumns:D,levelControlAriaLabel:O,yearLabelFormat:k,size:A,fullWidth:j,vars:M,attributes:N,...P}=W(`YearLevelGroup`,BD,e),ee=(0,H.useRef)([]),F=Array(D).fill(0).map((e,M)=>{let P=(0,Q.default)(t).add(M,`years`).format(`YYYY-MM-DD`);return(0,U.jsx)(ND,{size:A,monthsListFormat:a,year:P,withNext:M===D-1,withPrevious:M===0,yearLabelFormat:k,__stopPropagation:E,__onControlClick:s,__onControlMouseEnter:c,__onControlKeyDown:(e,t)=>IE({levelIndex:M,rowIndex:t.rowIndex,cellIndex:t.cellIndex,event:e,controlsRef:ee}),__getControlRef:(e,t,n)=>{Array.isArray(ee.current[M])||(ee.current[M]=[]),Array.isArray(ee.current[M][e])||(ee.current[M][e]=[]),ee.current[M][e][t]=n},levelControlAriaLabel:typeof O==`function`?O(P):O,locale:n,minDate:r,maxDate:i,__preventFocus:u,nextIcon:d,previousIcon:f,nextLabel:p,previousLabel:m,onNext:h,onPrevious:g,onLevelClick:_,nextDisabled:v,previousDisabled:y,hasNextLevel:b,getMonthControlProps:o,classNames:S,styles:C,unstyled:w,__staticSelector:T||`YearLevelGroup`,withCellSpacing:l,headerControlsOrder:x,fullWidth:j,attributes:N},M)});return(0,U.jsx)(LD,{classNames:S,styles:C,__staticSelector:T||`YearLevelGroup`,size:A,unstyled:w,fullWidth:j,attributes:N,...P,children:F})});VD.classes={...ND.classes,...LD.classes},VD.displayName=`@mantine/dates/YearLevelGroup`;var HD={numberOfColumns:1},UD=K(e=>{let{month:t,locale:n,firstDayOfWeek:r,weekdayFormat:i,weekendDays:a,getDayProps:o,excludeDate:s,minDate:c,maxDate:l,renderDay:u,hideOutsideDates:d,hideWeekdays:f,getDayAriaLabel:p,__onDayClick:m,__onDayMouseEnter:h,withCellSpacing:g,highlightToday:_,withWeekNumbers:v,__preventFocus:y,nextIcon:b,previousIcon:x,nextLabel:S,previousLabel:C,onNext:w,onPrevious:T,onLevelClick:E,nextDisabled:D,previousDisabled:O,hasNextLevel:k,headerControlsOrder:A,classNames:j,styles:M,unstyled:N,numberOfColumns:P,levelControlAriaLabel:ee,monthLabelFormat:F,__staticSelector:I,__stopPropagation:te,size:ne,static:re,fullWidth:ie,vars:L,attributes:ae,...oe}=W(`MonthLevelGroup`,HD,e),se=(0,H.useRef)([]),ce=Array(P).fill(0).map((e,L)=>{let oe=(0,Q.default)(t).add(L,`months`).format(`YYYY-MM-DD`);return(0,U.jsx)(FD,{month:oe,withNext:L===P-1,withPrevious:L===0,monthLabelFormat:F,__stopPropagation:te,__onDayClick:m,__onDayMouseEnter:h,__onDayKeyDown:(e,t)=>IE({levelIndex:L,rowIndex:t.rowIndex,cellIndex:t.cellIndex,event:e,controlsRef:se}),__getDayRef:(e,t,n)=>{Array.isArray(se.current[L])||(se.current[L]=[]),Array.isArray(se.current[L][e])||(se.current[L][e]=[]),se.current[L][e][t]=n},levelControlAriaLabel:typeof ee==`function`?ee(oe):ee,locale:n,firstDayOfWeek:r,weekdayFormat:i,weekendDays:a,getDayProps:o,excludeDate:s,minDate:c,maxDate:l,renderDay:u,hideOutsideDates:d,hideWeekdays:f,getDayAriaLabel:p,__preventFocus:y,nextIcon:b,previousIcon:x,nextLabel:S,previousLabel:C,onNext:w,onPrevious:T,onLevelClick:E,nextDisabled:D,previousDisabled:O,hasNextLevel:k,classNames:j,styles:M,unstyled:N,__staticSelector:I||`MonthLevelGroup`,size:ne,static:re,withCellSpacing:g,highlightToday:_,withWeekNumbers:v,headerControlsOrder:A,fullWidth:ie,attributes:ae},L)});return(0,U.jsx)(LD,{classNames:j,styles:M,__staticSelector:I||`MonthLevelGroup`,size:ne,fullWidth:ie,attributes:ae,...oe,children:ce})});UD.classes={...LD.classes,...FD.classes},UD.displayName=`@mantine/dates/MonthLevelGroup`;var WD={input:`m_6fa5e2aa`},GD=K(e=>{let{inputProps:t,wrapperProps:n,placeholder:r,classNames:i,styles:a,unstyled:o,popoverProps:s,modalProps:c,dropdownType:l,children:u,formattedValue:d,dropdownHandlers:f,dropdownOpened:p,onClick:m,clearable:h,clearSectionMode:g,onClear:_,clearButtonProps:v,rightSection:y,shouldClear:b,readOnly:x,disabled:S,value:C,name:w,form:T,type:E,onDropdownClose:D,withTime:O,...k}=xf(`PickerInputBase`,{size:`sm`},e),A=(0,U.jsx)(bf.ClearButton,{onClick:_,unstyled:o,...v}),j=()=>{E===`range`&&Array.isArray(C)&&C[0]&&!C[1]&&_(),f.close()};return(0,U.jsxs)(U.Fragment,{children:[l===`modal`&&!x&&(0,U.jsx)(xg,{opened:p,onClose:j,withCloseButton:!1,size:`auto`,"data-dates-modal":!0,unstyled:o,...c,children:u}),(0,U.jsx)(bf.Wrapper,{...n,children:(0,U.jsxs)(eu,{position:`bottom-start`,opened:p,trapFocus:!0,returnFocus:!1,unstyled:o,onClose:D,...s,disabled:s?.disabled||l===`modal`||x,onChange:e=>{e||(s?.onClose?.(),j())},children:[(0,U.jsx)(eu.Target,{children:(0,U.jsx)(bf,{"data-dates-input":!0,"data-read-only":x||void 0,disabled:S,component:`button`,type:`button`,multiline:!0,onClick:e=>{m?.(e),f.toggle()},__clearSection:A,__clearable:h&&b&&!x&&!S,__clearSectionMode:g,rightSection:y,...t,classNames:{...i,input:Tn(WD.input,i?.input)},...k,children:d||(0,U.jsx)(bf.Placeholder,{error:t.error,unstyled:o,classNames:i,styles:a,__staticSelector:t.__staticSelector,children:r})})}),(0,U.jsx)(eu.Dropdown,{"data-dates-dropdown":!0,children:u})]})}),(0,U.jsx)(UE,{value:C,name:w,form:T,type:E,withTime:O})]})});GD.classes=WD,GD.displayName=`@mantine/dates/PickerInputBase`;var KD=e=>e===`range`?[null,null]:e===`multiple`?[]:null,qD=(e,t)=>{let n=t?RE:LE;return Array.isArray(e)?e.map(n):n(e)};function JD({type:e,value:t,defaultValue:n,onChange:r,withTime:i=!1}){let a=(0,H.useRef)(e),[o,s,c]=Yt({value:qD(t,i),defaultValue:qD(n,i),finalValue:KD(e),onChange:r}),l=o;return a.current!==e&&(a.current=e,t===void 0&&(l=n===void 0?KD(e):n,s(l))),[l,s,c]}function YD(e,t){return e?e===`month`?0:e===`year`?1:2:t||0}function XD(e){return e===0?`month`:e===1?`year`:`decade`}function ZD(e,t,n){return XD(gt(YD(e,0),YD(t,0),YD(n,2)))}var QD={maxLevel:`decade`,minLevel:`month`,__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0,enableKeyboardNavigation:!0},$D=K(e=>{let t=W(`Calendar`,QD,e),{vars:n,maxLevel:r,minLevel:i,defaultLevel:a,level:o,onLevelChange:s,date:c,defaultDate:l,onDateChange:u,numberOfColumns:d,columnsToScroll:f,ariaLabels:p,nextLabel:m,previousLabel:h,onYearSelect:g,onMonthSelect:_,onYearMouseEnter:v,onMonthMouseEnter:y,headerControlsOrder:b,__updateDateOnYearSelect:x,__updateDateOnMonthSelect:S,__setDateRef:C,__setLevelRef:w,firstDayOfWeek:T,weekdayFormat:E,weekendDays:D,getDayProps:O,excludeDate:k,renderDay:A,hideOutsideDates:j,hideWeekdays:M,getDayAriaLabel:N,monthLabelFormat:P,nextIcon:ee,previousIcon:F,__onDayClick:I,__onDayMouseEnter:te,withCellSpacing:ne,highlightToday:re,withWeekNumbers:ie,monthsListFormat:L,getMonthControlProps:ae,yearLabelFormat:oe,yearsListFormat:se,getYearControlProps:ce,decadeLabelFormat:le,classNames:ue,styles:de,unstyled:fe,minDate:R,maxDate:pe,locale:me,__staticSelector:he,size:ge,__preventFocus:z,__stopPropagation:_e,onNextDecade:ve,onPreviousDecade:B,onNextYear:ye,onPreviousYear:be,onNextMonth:xe,onPreviousMonth:Se,static:Ce,enableKeyboardNavigation:we,fullWidth:Te,attributes:Ee,ref:De,...Oe}=t,{resolvedClassNames:ke,resolvedStyles:Ae}=Ur({classNames:ue,styles:de,props:t}),[je,Me]=Yt({value:o?ZD(o,i,r):void 0,defaultValue:a?ZD(a,i,r):void 0,finalValue:ZD(void 0,i,r),onChange:s}),[Ne,Pe]=JD({type:`default`,value:LE(c),defaultValue:LE(l),onChange:u});(0,H.useImperativeHandle)(C,()=>e=>{Pe(e)}),(0,H.useImperativeHandle)(w,()=>e=>{Me(e)});let Fe={__staticSelector:he||`Calendar`,styles:Ae,classNames:ke,unstyled:fe,size:ge,attributes:Ee},Ie=f||d||1,Le=(0,H.useRef)(null);if(Le.current===null){let e=new Date;Le.current=R&&(0,Q.default)(e).isAfter(R)?R:(0,Q.default)(e).format(`YYYY-MM-DD`)}let Re=Ne||Le.current,ze=()=>{let e=(0,Q.default)(Re).add(Ie,`month`).format(`YYYY-MM-DD`);xe?.(e),Pe(e)},Be=()=>{let e=(0,Q.default)(Re).subtract(Ie,`month`).format(`YYYY-MM-DD`);Se?.(e),Pe(e)},Ve=()=>{let e=(0,Q.default)(Re).add(Ie,`year`).format(`YYYY-MM-DD`);ye?.(e),Pe(e)},He=()=>{let e=(0,Q.default)(Re).subtract(Ie,`year`).format(`YYYY-MM-DD`);be?.(e),Pe(e)},Ue=()=>{let e=(0,Q.default)(Re).add(10*Ie,`year`).format(`YYYY-MM-DD`);ve?.(e),Pe(e)},V=()=>{let e=(0,Q.default)(Re).subtract(10*Ie,`year`).format(`YYYY-MM-DD`);B?.(e),Pe(e)},We=(0,H.useRef)(null);return(0,H.useEffect)(()=>{if(!we||Ce)return;let e=e=>{if(!We.current?.contains(document.activeElement))return;let t=e.ctrlKey||e.metaKey,n=e.shiftKey;switch(e.key){case`ArrowUp`:t&&n?(e.preventDefault(),V()):t&&(e.preventDefault(),He());break;case`ArrowDown`:t&&n?(e.preventDefault(),Ue()):t&&(e.preventDefault(),Ve());break;case`y`:case`Y`:je===`month`&&(e.preventDefault(),Me(`year`));break}};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[we,Ce,je,Ve,He,Ue,V]),(0,U.jsxs)(q,{ref:Jt(We,De),size:ge,"data-calendar":!0,"data-full-width":Te||void 0,...Oe,children:[je===`month`&&(0,U.jsx)(UD,{month:Re,minDate:R,maxDate:pe,firstDayOfWeek:T,weekdayFormat:E,weekendDays:D,getDayProps:O,excludeDate:k,renderDay:A,hideOutsideDates:j,hideWeekdays:M,getDayAriaLabel:N,onNext:ze,onPrevious:Be,hasNextLevel:r!==`month`,onLevelClick:()=>Me(`year`),numberOfColumns:d,locale:me,levelControlAriaLabel:p?.monthLevelControl,nextLabel:p?.nextMonth??m,nextIcon:ee,previousLabel:p?.previousMonth??h,previousIcon:F,monthLabelFormat:P,__onDayClick:I,__onDayMouseEnter:te,__preventFocus:z,__stopPropagation:_e,static:Ce,withCellSpacing:ne,highlightToday:re,withWeekNumbers:ie,headerControlsOrder:b,fullWidth:Te,...Fe}),je===`year`&&(0,U.jsx)(VD,{year:Re,numberOfColumns:d,minDate:R,maxDate:pe,monthsListFormat:L,getMonthControlProps:ae,locale:me,onNext:Ve,onPrevious:He,hasNextLevel:r!==`month`&&r!==`year`,onLevelClick:()=>Me(`decade`),levelControlAriaLabel:p?.yearLevelControl,nextLabel:p?.nextYear??m,nextIcon:ee,previousLabel:p?.previousYear??h,previousIcon:F,yearLabelFormat:oe,__onControlMouseEnter:y,__onControlClick:(e,t)=>{S&&Pe(t),Me(ZD(`month`,i,r)),_?.(t)},__preventFocus:z,__stopPropagation:_e,withCellSpacing:ne,headerControlsOrder:b,fullWidth:Te,...Fe}),je===`decade`&&(0,U.jsx)(zD,{decade:Re,minDate:R,maxDate:pe,yearsListFormat:se,getYearControlProps:ce,locale:me,onNext:Ue,onPrevious:V,numberOfColumns:d,nextLabel:p?.nextDecade??m,nextIcon:ee,previousLabel:p?.previousDecade??h,previousIcon:F,decadeLabelFormat:le,__onControlMouseEnter:v,__onControlClick:(e,t)=>{x&&Pe(t),Me(ZD(`year`,i,r)),g?.(t)},__preventFocus:z,__stopPropagation:_e,withCellSpacing:ne,headerControlsOrder:b,fullWidth:Te,...Fe})]})});$D.classes={...zD.classes,...VD.classes,...UD.classes},$D.displayName=`@mantine/dates/Calendar`;function eO(e){let{maxLevel:t,minLevel:n,defaultLevel:r,level:i,onLevelChange:a,nextIcon:o,previousIcon:s,date:c,defaultDate:l,onDateChange:u,numberOfColumns:d,columnsToScroll:f,ariaLabels:p,nextLabel:m,previousLabel:h,onYearSelect:g,onMonthSelect:_,onYearMouseEnter:v,onMonthMouseEnter:y,onNextMonth:b,onPreviousMonth:x,onNextYear:S,onPreviousYear:C,onNextDecade:w,onPreviousDecade:T,withCellSpacing:E,highlightToday:D,__updateDateOnYearSelect:O,__updateDateOnMonthSelect:k,__setDateRef:A,__setLevelRef:j,withWeekNumbers:M,headerControlsOrder:N,firstDayOfWeek:P,weekdayFormat:ee,weekendDays:F,getDayProps:I,excludeDate:te,renderDay:ne,hideOutsideDates:re,hideWeekdays:ie,getDayAriaLabel:L,monthLabelFormat:ae,monthsListFormat:oe,getMonthControlProps:se,yearLabelFormat:ce,yearsListFormat:le,getYearControlProps:ue,decadeLabelFormat:de,allowSingleDateInRange:fe,allowDeselect:R,minDate:pe,maxDate:me,locale:he,...ge}=e;return{calendarProps:{maxLevel:t,minLevel:n,defaultLevel:r,level:i,onLevelChange:a,nextIcon:o,previousIcon:s,date:c,defaultDate:l,onDateChange:u,numberOfColumns:d,columnsToScroll:f,ariaLabels:p,nextLabel:m,previousLabel:h,onYearSelect:g,onMonthSelect:_,onYearMouseEnter:v,onMonthMouseEnter:y,onNextMonth:b,onPreviousMonth:x,onNextYear:S,onPreviousYear:C,onNextDecade:w,onPreviousDecade:T,withCellSpacing:E,highlightToday:D,__updateDateOnYearSelect:O,__updateDateOnMonthSelect:k,__setDateRef:A,withWeekNumbers:M,headerControlsOrder:N,firstDayOfWeek:P,weekdayFormat:ee,weekendDays:F,getDayProps:I,excludeDate:te,renderDay:ne,hideOutsideDates:re,hideWeekdays:ie,getDayAriaLabel:L,monthLabelFormat:ae,monthsListFormat:oe,getMonthControlProps:se,yearLabelFormat:ce,yearsListFormat:le,getYearControlProps:ue,decadeLabelFormat:de,allowSingleDateInRange:fe,allowDeselect:R,minDate:pe,maxDate:me,locale:he},others:ge}}function tO(e,t){let n=[...t].sort((e,t)=>(0,Q.default)(e).isAfter((0,Q.default)(t))?1:-1);return(0,Q.default)(n[0]).startOf(`day`).subtract(1,`ms`).isBefore(e)&&(0,Q.default)(n[1]).endOf(`day`).add(1,`ms`).isAfter(e)}function nO({type:e,level:t,value:n,defaultValue:r,onChange:i,allowSingleDateInRange:a,allowDeselect:o,onMouseLeave:s}){let[c,l]=JD({type:e,value:n,defaultValue:r,onChange:i}),[u,d]=(0,H.useState)(e===`range`&&c[0]&&!c[1]?c[0]:null),[f,p]=(0,H.useState)(null),m=n=>{if(e===`range`){if(u&&!c[1]){if((0,Q.default)(n).isSame(u,t)&&!a){d(null),p(null),l([null,null]);return}let e=[n,u];e.sort((e,t)=>(0,Q.default)(e).isAfter((0,Q.default)(t))?1:-1),l(e),p(null),d(null);return}if(c[0]&&!c[1]&&(0,Q.default)(n).isSame(c[0],t)&&!a){d(null),p(null),l([null,null]);return}l([n,null]),p(null),d(n);return}if(e===`multiple`){c.some(e=>(0,Q.default)(e).isSame(n,t))?l(c.filter(e=>!(0,Q.default)(e).isSame(n,t))):l([...c,n]);return}c&&o&&(0,Q.default)(n).isSame(c,t)?l(null):l(n)},h=e=>u&&f?tO(e,[f,u]):c[0]&&c[1]?tO(e,c):!1,g=e===`range`?e=>{s?.(e),p(null)}:s,_=e=>c[0]&&(0,Q.default)(e).isSame(c[0],t)?!(f&&(0,Q.default)(f).isBefore(c[0])):!1,v=e=>c[1]?(0,Q.default)(e).isSame(c[1],t):!c[0]||!f?!1:(0,Q.default)(f).isBefore(c[0])&&(0,Q.default)(e).isSame(c[0],t),y=n=>{if(e===`range`)return{selected:c.some(e=>e&&(0,Q.default)(e).isSame(n,t)),inRange:h(n),firstInRange:_(n),lastInRange:v(n),"data-autofocus":!!c[0]&&(0,Q.default)(c[0]).isSame(n,t)||void 0};if(e===`multiple`)return{selected:c.some(e=>e&&(0,Q.default)(e).isSame(n,t)),"data-autofocus":!!c[0]&&(0,Q.default)(c[0]).isSame(n,t)||void 0};let r=(0,Q.default)(c).isSame(n,t);return{selected:r,"data-autofocus":r||void 0}},b=e===`range`&&u?p:()=>{};return(0,H.useEffect)(()=>{if(e===`range`)if(c[0]&&!c[1])d(c[0]);else{let e=c[0]==null&&c[1]==null,t=c[0]!=null&&c[1]!=null;(e||t)&&(d(null),p(null))}},[c]),{onDateChange:m,onRootMouseLeave:g,onHoveredDateChange:b,getControlProps:y,_value:c,setValue:l}}var rO={yearPickerRoot:`m_d01e596f`,presetsList:`m_52a6b4b0`,presetButton:`m_b0d93233`},iO=Cn((e,{size:t})=>({yearPickerRoot:{"--preset-font-size":ct(t)}})),aO={type:`default`},oO=K(e=>{let t=W(`YearPicker`,aO,e),{classNames:n,styles:r,vars:i,type:a,defaultValue:o,value:s,onChange:c,__staticSelector:l,getYearControlProps:u,allowSingleDateInRange:d,allowDeselect:f,onMouseLeave:p,onYearSelect:m,__updateDateOnYearSelect:h,__onPresetSelect:g,__stopPropagation:_,presets:v,className:y,style:b,unstyled:x,size:S,attributes:C,...w}=t,{calendarProps:T,others:E}=eO(w),D=(0,H.useRef)(null),O=(0,H.useRef)(null),k=G({name:l||`YearPicker`,classes:rO,props:t,className:y,style:b,classNames:n,styles:r,unstyled:x,attributes:C,rootSelector:v?`yearPickerRoot`:void 0,varsResolver:iO,vars:i}),{onDateChange:A,onRootMouseLeave:j,onHoveredDateChange:M,getControlProps:N,setValue:P}=nO({type:a,level:`year`,allowDeselect:f,allowSingleDateInRange:d,value:s,defaultValue:o,onChange:c,onMouseLeave:p}),{resolvedClassNames:ee,resolvedStyles:F}=Ur({classNames:n,styles:r,props:t}),I=(0,U.jsx)($D,{classNames:ee,styles:F,size:S,...T,...v?{}:E,minLevel:`decade`,__updateDateOnYearSelect:h??!1,__staticSelector:l||`YearPicker`,onMouseLeave:j,onYearMouseEnter:(e,t)=>M(t),onYearSelect:e=>{A(e),m?.(e)},getYearControlProps:e=>({...N(e),...u?.(e)}),__setDateRef:D,__setLevelRef:O,__stopPropagation:_,attributes:C,...v?{}:{className:y,style:b}});if(!v)return I;let te=e=>{let t=Array.isArray(e)?e[0]:e;t!==void 0&&(D.current?.(t),O.current?.(`decade`),g?g(t):P(e))},ne=v.map((e,t)=>(0,U.jsx)(dl,{...k(`presetButton`),onClick:()=>te(e.value),onMouseDown:e=>e.preventDefault(),"data-mantine-stop-propagation":_||void 0,children:e.label},t));return(0,U.jsxs)(q,{...k(`yearPickerRoot`),size:S,...E,children:[(0,U.jsx)(`div`,{...k(`presetsList`),children:ne}),I]})});oO.classes={...$D.classes,...rO},oO.varsResolver=iO,oO.displayName=`@mantine/dates/YearPicker`;var sO={monthPickerRoot:`m_53c9e871`,presetsList:`m_cccb8ff3`,presetButton:`m_7b4fbf50`},cO=Cn((e,{size:t})=>({monthPickerRoot:{"--preset-font-size":ct(t)}})),lO={type:`default`},uO=K(e=>{let t=W(`MonthPicker`,lO,e),{classNames:n,styles:r,vars:i,type:a,defaultValue:o,value:s,onChange:c,__staticSelector:l,getMonthControlProps:u,allowSingleDateInRange:d,allowDeselect:f,onMouseLeave:p,onMonthSelect:m,__updateDateOnMonthSelect:h,__onPresetSelect:g,__stopPropagation:_,presets:v,className:y,style:b,unstyled:x,size:S,attributes:C,onLevelChange:w,...T}=t,{calendarProps:E,others:D}=eO(T),O=(0,H.useRef)(null),k=(0,H.useRef)(null),A=G({name:l||`MonthPicker`,classes:sO,props:t,className:y,style:b,classNames:n,styles:r,unstyled:x,attributes:C,rootSelector:v?`monthPickerRoot`:void 0,varsResolver:cO,vars:i}),{onDateChange:j,onRootMouseLeave:M,onHoveredDateChange:N,getControlProps:P,setValue:ee}=nO({type:a,level:`month`,allowDeselect:f,allowSingleDateInRange:d,value:s,defaultValue:o,onChange:c,onMouseLeave:p}),{resolvedClassNames:F,resolvedStyles:I}=Ur({classNames:n,styles:r,props:t}),te=(0,U.jsx)($D,{classNames:F,styles:I,size:S,...E,...v?{}:D,minLevel:`year`,__updateDateOnMonthSelect:h??!1,__staticSelector:l||`MonthPicker`,onMouseLeave:M,onMonthMouseEnter:(e,t)=>N(t),onMonthSelect:e=>{j(e),m?.(e)},getMonthControlProps:e=>({...P(e),...u?.(e)}),onLevelChange:w,__setDateRef:O,__setLevelRef:k,__stopPropagation:_,attributes:C,...v?{}:{className:y,style:b}});if(!v)return te;let ne=e=>{let t=Array.isArray(e)?e[0]:e;t!==void 0&&(O.current?.(t),k.current?.(`year`),g?g(t):ee(e))},re=v.map((e,t)=>(0,U.jsx)(dl,{...A(`presetButton`),onClick:()=>ne(e.value),onMouseDown:e=>e.preventDefault(),"data-mantine-stop-propagation":_||void 0,children:e.label},t));return(0,U.jsxs)(q,{...A(`monthPickerRoot`),size:S,...D,children:[(0,U.jsx)(`div`,{...A(`presetsList`),children:re}),te]})});uO.classes={...$D.classes,...sO},uO.varsResolver=cO,uO.displayName=`@mantine/dates/MonthPicker`;var dO={datePickerRoot:`m_765a40cf`,presetsList:`m_d6a681e1`,presetButton:`m_acd30b22`},fO=Cn((e,{size:t})=>({datePickerRoot:{"--preset-font-size":ct(t)}})),pO={type:`default`,defaultLevel:`month`,numberOfColumns:1,size:`sm`},mO=K(e=>{let t=W(`DatePicker`,pO,e),{allowDeselect:n,allowSingleDateInRange:r,value:i,defaultValue:a,onChange:o,onMouseLeave:s,classNames:c,styles:l,__staticSelector:u,__onDayClick:d,__onDayMouseEnter:f,__onPresetSelect:p,__stopPropagation:m,presets:h,className:g,style:_,unstyled:v,size:y,vars:b,attributes:x,...S}=t,{calendarProps:C,others:w}=eO(S),T=(0,H.useRef)(null),E=(0,H.useRef)(null),D=G({name:u||`DatePicker`,classes:dO,props:t,className:g,style:_,classNames:c,styles:l,unstyled:v,attributes:x,rootSelector:h?`datePickerRoot`:void 0,varsResolver:fO,vars:b}),{onDateChange:O,onRootMouseLeave:k,onHoveredDateChange:A,getControlProps:j,_value:M,setValue:N}=nO({type:w.type,level:`day`,allowDeselect:n,allowSingleDateInRange:r,value:i,defaultValue:a,onChange:o,onMouseLeave:s}),{resolvedClassNames:P,resolvedStyles:ee}=Ur({classNames:c,styles:l,props:t}),F=(0,U.jsx)($D,{classNames:P,styles:ee,__staticSelector:u||`DatePicker`,onMouseLeave:k,size:y,...C,...h?{}:w,__stopPropagation:m,__setDateRef:T,__setLevelRef:E,minLevel:C.minLevel||`month`,__onDayMouseEnter:(e,t)=>{A(t),f?.(e,t)},__onDayClick:(e,t)=>{O(t),d?.(e,t)},getDayProps:e=>({...j(e),...C.getDayProps?.(e)}),getMonthControlProps:e=>({selected:typeof M==`string`?eD(e,M):!1,...C.getMonthControlProps?.(e)}),getYearControlProps:e=>({selected:typeof M==`string`?(0,Q.default)(e).isSame(M,`year`):!1,...C.getYearControlProps?.(e)}),hideOutsideDates:C.hideOutsideDates??C.numberOfColumns!==1,attributes:x,...h?{}:{className:g,style:_}});if(!h)return F;let I=e=>{let t=Array.isArray(e)?e[0]:e;t!==void 0&&(T.current?.(t),E.current?.(`month`),p?p(t):N(e))},te=h.map((e,t)=>(0,U.jsx)(dl,{...D(`presetButton`),onClick:()=>I(e.value),onMouseDown:e=>e.preventDefault(),"data-mantine-stop-propagation":m||void 0,children:e.label},t));return(0,U.jsxs)(q,{...D(`datePickerRoot`),size:y,...w,children:[(0,U.jsx)(`div`,{...D(`presetsList`),children:te}),F]})});mO.classes=$D.classes,mO.varsResolver=fO,mO.displayName=`@mantine/dates/DatePicker`;function hO(e){if(e===null)return null;let t=new Date(e);return Number.isNaN(t.getTime())||!e?null:(0,Q.default)(t).format(`YYYY-MM-DD`)}function gO({date:e,maxDate:t,minDate:n}){return!(e==null||Number.isNaN(new Date(e).getTime())||t&&(0,Q.default)(e).isAfter(t,`date`)||n&&(0,Q.default)(e).isBefore(n,`date`))}var _O={valueFormat:`MMMM D, YYYY`,fixOnBlur:!0,size:`sm`},vO=K(e=>{let{inputProps:t,wrapperProps:n,value:r,defaultValue:i,onChange:a,clearable:o,clearSectionMode:s,clearButtonProps:c,popoverProps:l,getDayProps:u,locale:d,valueFormat:f,withTime:p,dateParser:m,minDate:h,maxDate:g,fixOnBlur:_,onFocus:v,onBlur:y,onClick:b,onKeyDown:x,readOnly:S,name:C,form:w,rightSection:T,unstyled:E,classNames:D,styles:O,allowDeselect:k,date:A,defaultDate:j,onDateChange:M,getMonthControlProps:N,getYearControlProps:P,disabled:ee,...F}=xf(`DateInput`,_O,e),I=(0,H.useRef)(null),te=(0,H.useRef)(null),[ne,re]=(0,H.useState)(!1),{calendarProps:ie,others:L}=eO(F),ae=VE(),oe=m||(e=>{let t=(0,Q.default)(e,f,ae.getLocale(d)).toDate();return Number.isNaN(t.getTime())?hO(e):(0,Q.default)(t).format(p?`YYYY-MM-DD HH:mm:ss`:`YYYY-MM-DD`)}),se=k===void 0?o:k,ce=e=>e?(0,Q.default)(e).locale(ae.getLocale(d)).format(f):``,[le,ue,de]=JD({type:`default`,value:r,defaultValue:i,onChange:a,withTime:p}),[fe,R]=JD({type:`default`,value:A,defaultValue:i||j,onChange:M});(0,H.useEffect)(()=>{de&&r!==null&&R(r)},[de,r]);let[pe,me]=(0,H.useState)(ce(le));(0,H.useEffect)(()=>{me(ce(le))},[ae.getLocale(d)]);let he=e=>{let t=e.currentTarget.value;if(me(t),re(!0),t.trim()===``&&(k||o))ue(null);else{let e=oe(t);e&&gO({date:e,minDate:h,maxDate:g})&&(ue(e),R(e))}},ge=e=>{y?.(e),re(!1),_&&me(ce(le))},z=e=>{v?.(e),re(!0)},_e=e=>{b?.(e),re(!0)},ve=e=>{e.key===`Escape`&&re(!1),x?.(e)},B=e=>({...u?.(e),selected:(0,Q.default)(le).isSame(e,`day`),onClick:t=>{u?.(e).onClick?.(t);let n=se&&(0,Q.default)(le).isSame(e,`day`)?null:e;ue(n),!de&&n&&me(ce(n)),re(!1)}}),ye=(0,U.jsx)(bf.ClearButton,{onClick:()=>{ue(null),!de&&me(``),re(!1)},unstyled:E,...c}),be=o&&!!le&&!S&&!ee;return Et(()=>{le!==void 0&&!ne&&me(ce(le))},[le]),St(()=>re(!1),void 0,[I.current,te.current]),(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(bf.Wrapper,{...n,__staticSelector:`DateInput`,ref:I,children:(0,U.jsxs)(eu,{opened:ne,trapFocus:!1,position:`bottom-start`,disabled:S||ee,withRoles:!1,unstyled:E,...l,children:[(0,U.jsx)(eu.Target,{children:(0,U.jsx)(bf,{"data-dates-input":!0,"data-read-only":S||void 0,autoComplete:`off`,value:pe,onChange:he,onBlur:ge,onFocus:z,onClick:_e,onKeyDown:ve,readOnly:S,rightSection:T,__clearSection:ye,__clearable:be,__clearSectionMode:s,...t,...L,disabled:ee,__staticSelector:`DateInput`})}),(0,U.jsx)(eu.Dropdown,{onMouseDown:e=>e.preventDefault(),"data-dates-dropdown":!0,ref:te,children:(0,U.jsx)($D,{__staticSelector:`DateInput`,...ie,classNames:D,styles:O,unstyled:E,__preventFocus:!0,minDate:h,maxDate:g,locale:d,getDayProps:B,size:t.size,date:fe,onDateChange:R,getMonthControlProps:e=>({selected:typeof le==`string`?eD(e,le):!1,...N?.(e)}),getYearControlProps:e=>({selected:typeof le==`string`?(0,Q.default)(e).isSame(le,`year`):!1,...P?.(e)}),attributes:n.attributes})})]})}),(0,U.jsx)(UE,{name:C,form:w,value:le,type:`default`,withTime:p})]})});vO.classes={...bf.classes,...$D.classes},vO.displayName=`@mantine/dates/DateInput`;function yO({type:e,value:t,defaultValue:n,onChange:r,locale:i,format:a,closeOnChange:o,sortDates:s,labelSeparator:c,valueFormatter:l}){let u=VE(),[d,f]=rn(!1),[p,m]=JD({type:e,value:t,defaultValue:n,onChange:r}),h=jE({type:e,date:p,locale:u.getLocale(i),format:a,labelSeparator:u.getLabelSeparator(c),formatter:l}),g=t=>{o&&(e===`default`&&f.close(),e===`range`&&t[0]&&t[1]&&f.close()),m(s&&e===`multiple`?[...t].sort((e,t)=>(0,Q.default)(e).isAfter((0,Q.default)(t))?1:-1):t)};return{_value:p,setValue:g,onClear:()=>g(e===`range`?[null,null]:e===`multiple`?[]:null),shouldClear:e===`range`?!!p[0]:e===`multiple`?p.length>0:p!==null,formattedValue:h,dropdownOpened:d,dropdownHandlers:f}}var bO={type:`default`,size:`sm`,valueFormat:`YYYY`,closeOnChange:!0,sortDates:!0,dropdownType:`popover`},xO=K(e=>{let t=W(`YearPickerInput`,bO,e),{type:n,value:r,defaultValue:i,onChange:a,valueFormat:o,labelSeparator:s,locale:c,classNames:l,styles:u,unstyled:d,closeOnChange:f,size:p,variant:m,dropdownType:h,sortDates:g,minDate:_,maxDate:v,vars:y,valueFormatter:b,presets:x,attributes:S,...C}=t,{resolvedClassNames:w,resolvedStyles:T}=Ur({classNames:l,styles:u,props:t}),{calendarProps:E,others:D}=eO(C),{_value:O,setValue:k,formattedValue:A,dropdownHandlers:j,dropdownOpened:M,onClear:N,shouldClear:P}=yO({type:n,value:r,defaultValue:i,onChange:a,locale:c,format:o,labelSeparator:s,closeOnChange:f,sortDates:g,valueFormatter:b});return(0,U.jsx)(GD,{formattedValue:A,dropdownOpened:M,dropdownHandlers:j,classNames:w,styles:T,unstyled:d,onClear:N,shouldClear:P,value:O,size:p,variant:m,dropdownType:h,...D,type:n,__staticSelector:`YearPickerInput`,attributes:S,children:(0,U.jsx)(oO,{...E,size:p,variant:m,type:n,value:O,defaultDate:E.defaultDate||(Array.isArray(O)?O[0]||zE({maxDate:v,minDate:_}):O||zE({maxDate:v,minDate:_})),onChange:k,locale:c,classNames:w,styles:T,unstyled:d,__staticSelector:`YearPickerInput`,__stopPropagation:h===`popover`,minDate:_,maxDate:v,presets:x,attributes:S})})});xO.classes={...GD.classes,...oO.classes},xO.displayName=`@mantine/dates/YearPickerInput`;var SO={type:`default`,size:`sm`,valueFormat:`MMMM YYYY`,closeOnChange:!0,sortDates:!0,dropdownType:`popover`},CO=K(e=>{let t=W(`MonthPickerInput`,SO,e),{type:n,value:r,defaultValue:i,onChange:a,valueFormat:o,labelSeparator:s,locale:c,classNames:l,styles:u,unstyled:d,closeOnChange:f,size:p,variant:m,dropdownType:h,sortDates:g,minDate:_,maxDate:v,vars:y,valueFormatter:b,presets:x,attributes:S,...C}=t,{resolvedClassNames:w,resolvedStyles:T}=Ur({classNames:l,styles:u,props:t}),{calendarProps:E,others:D}=eO(C),{_value:O,setValue:k,formattedValue:A,dropdownHandlers:j,dropdownOpened:M,onClear:N,shouldClear:P}=yO({type:n,value:r,defaultValue:i,onChange:a,locale:c,format:o,labelSeparator:s,closeOnChange:f,sortDates:g,valueFormatter:b});return(0,U.jsx)(GD,{formattedValue:A,dropdownOpened:M,dropdownHandlers:j,classNames:w,styles:T,unstyled:d,onClear:N,shouldClear:P,value:O,size:p,variant:m,dropdownType:h,...D,attributes:S,type:n,__staticSelector:`MonthPickerInput`,children:(0,U.jsx)(uO,{...E,size:p,variant:m,type:n,value:O,defaultDate:E.defaultDate||(Array.isArray(O)?O[0]||zE({maxDate:v,minDate:_}):O||zE({maxDate:v,minDate:_})),onChange:k,locale:c,classNames:w,styles:T,unstyled:d,__staticSelector:`MonthPickerInput`,__stopPropagation:h===`popover`,minDate:_,maxDate:v,presets:x,attributes:S})})});CO.classes={...GD.classes,...uO.classes},CO.displayName=`@mantine/dates/MonthPickerInput`;var wO={type:`default`,size:`sm`,valueFormat:`MMMM D, YYYY`,closeOnChange:!0,sortDates:!0,dropdownType:`popover`},TO=K(e=>{let t=W(`DatePickerInput`,wO,e),{type:n,value:r,defaultValue:i,onChange:a,valueFormat:o,labelSeparator:s,locale:c,classNames:l,styles:u,unstyled:d,closeOnChange:f,size:p,variant:m,dropdownType:h,sortDates:g,minDate:_,maxDate:v,vars:y,defaultDate:b,valueFormatter:x,presets:S,attributes:C,...w}=t,{resolvedClassNames:T,resolvedStyles:E}=Ur({classNames:l,styles:u,props:t}),{calendarProps:D,others:O}=eO(w),{_value:k,setValue:A,formattedValue:j,dropdownHandlers:M,dropdownOpened:N,onClear:P,shouldClear:ee}=yO({type:n,value:r,defaultValue:i,onChange:a,locale:c,format:o,labelSeparator:s,closeOnChange:f,sortDates:g,valueFormatter:x}),F=Array.isArray(k)?k[0]||b:k||b;return(0,U.jsx)(GD,{formattedValue:j,dropdownOpened:N,dropdownHandlers:M,classNames:T,styles:E,unstyled:d,onClear:P,shouldClear:ee,value:k,size:p,variant:m,dropdownType:h,...O,type:n,__staticSelector:`DatePickerInput`,attributes:C,children:(0,U.jsx)(mO,{...D,size:p,variant:m,type:n,value:k,defaultDate:F||zE({maxDate:v,minDate:_}),onChange:A,locale:c,classNames:T,styles:E,unstyled:d,__staticSelector:`DatePickerInput`,__stopPropagation:h===`popover`,minDate:_,maxDate:v,presets:S,attributes:C})})});TO.classes={...GD.classes,...mO.classes},TO.displayName=`@mantine/dates/DatePickerInput`;var EO=`DD/MM/YYYY`,DO=vO.extend({defaultProps:{placeholder:EO,valueFormat:EO}});function OO({...e}){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,U.jsx)(`path`,{d:`M18 9.00005L12 15L6 9`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})})}var kO=Hf.extend({classNames:{item:`_item_wy8vo_1`,control:`_control_wy8vo_10`,chevron:`_chevron_wy8vo_20`,label:`_label_wy8vo_21`,content:`_content_wy8vo_43`},defaultProps:{chevron:(0,U.jsx)(OO,{}),variant:`separated`}}),AO=gu.extend({classNames:{root:`_root_8921i_1`},defaultProps:{size:`md`,variant:`primary`}}),jO=Gf.extend({classNames:{root:`_root_nrydo_1`,icon:`_icon_nrydo_10`,title:`_title_nrydo_38`,message:`_message_nrydo_42`},styles:{root:{overflow:`initial`},message:{overflow:`initial`}}}),MO=$f.extend({classNames:{root:`_root_1q1iz_1`},defaultProps:{underline:`never`}}),NO=ym.extend({classNames:{root:`_root_ja0yt_1`,placeholder:`_placeholder_ja0yt_5`},defaultProps:{radius:`xl`}}),PO=Sm.extend({classNames:{root:`_root_c4e34_1`},defaultProps:{size:`md`,radius:`md`,variant:`default`}}),FO=jm.extend({classNames:{root:`_root_d2yo7_1`,section:`_section_d2yo7_204`},defaultProps:{size:`md`,variant:`primary`}}),[IO,LO]=Je(`Carousel component was not found in tree`),RO={root:`m_17884d0f`,viewport:`m_a2dae653`,container:`m_fcd81474`,controls:`m_39bc3463`,control:`m_64f58e10`,indicators:`m_71ea3ab1`,indicator:`m_eae68602`,slide:`m_d98df724`},zO=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,mod:o,...s}=W(`CarouselSlide`,null,e),c=LO();return(0,U.jsx)(q,{mod:[{orientation:c.orientation},o],role:`group`,"aria-roledescription":`slide`,"aria-label":`Carousel slide`,...c.getStyles(`slide`,{className:n,style:r,classNames:t,styles:i}),...s})});zO.classes=RO,zO.displayName=`@mantine/carousel/CarouselSlide`;function BO({slideGap:e,slideSize:t,selector:n}){let r=wr(),i=Ge({"--carousel-slide-gap":ot(mt(e)),"--carousel-slide-size":V(mt(t))}),a=Ie(r.breakpoints).reduce((n,r)=>(n[r]||(n[r]={}),typeof e==`object`&&e[r]!==void 0&&(n[r][`--carousel-slide-gap`]=ot(e[r])),typeof t==`object`&&t[r]!==void 0&&(n[r][`--carousel-slide-size`]=ot(t[r])),n),{});return(0,U.jsx)(oi,{styles:i,media:pt(Ie(a),r.breakpoints).filter(e=>Ie(a[e.value]).length>0).map(e=>({query:`(min-width: ${r.breakpoints[e.value]})`,styles:a[e.value]})),selector:n})}function VO(e){return typeof e==`object`&&e?Ie(e):[]}function HO(e){return e.sort((e,t)=>Ve(e)-Ve(t))}function UO({slideGap:e,slideSize:t}){return HO(Array.from(new Set([...VO(e),...VO(t)])))}function WO({slideGap:e,slideSize:t,selector:n}){let r=Ge({"--carousel-slide-gap":ot(mt(e)),"--carousel-slide-size":V(mt(t))}),i=UO({slideGap:e,slideSize:t}).reduce((n,r)=>(n[r]||(n[r]={}),typeof e==`object`&&e[r]!==void 0&&(n[r][`--carousel-slide-gap`]=ot(e[r])),typeof t==`object`&&t[r]!==void 0&&(n[r][`--carousel-slide-size`]=ot(t[r])),n),{});return(0,U.jsx)(oi,{styles:r,container:Object.keys(i).map(e=>({query:`carousel (min-width: ${e})`,styles:i[e]})),selector:n})}function GO({dir:e,orientation:t,direction:n}){return n===`previous`?t===`horizontal`?90*(e===`ltr`?1:-1):-180:t===`horizontal`?90*(e===`ltr`?-1:1):0}function KO(e){return Object.prototype.toString.call(e)===`[object Object]`}function qO(e){return KO(e)||Array.isArray(e)}function JO(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}function YO(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||JSON.stringify(Object.keys(e.breakpoints||{}))!==JSON.stringify(Object.keys(t.breakpoints||{}))?!1:n.every(n=>{let r=e[n],i=t[n];return typeof r==`function`?`${r}`==`${i}`:!qO(r)||!qO(i)?r===i:YO(r,i)})}function XO(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function ZO(e,t){if(e.length!==t.length)return!1;let n=XO(e),r=XO(t);return n.every((e,t)=>{let n=r[t];return YO(e,n)})}function QO(e){return typeof e==`number`}function $O(e){return typeof e==`string`}function ek(e){return typeof e==`boolean`}function tk(e){return Object.prototype.toString.call(e)===`[object Object]`}function nk(e){return Math.abs(e)}function rk(e){return Math.sign(e)}function ik(e,t){return nk(e-t)}function ak(e,t){return e===0||t===0||nk(e)<=nk(t)?0:nk(ik(nk(e),nk(t))/e)}function ok(e){return Math.round(e*100)/100}function sk(e){return fk(e).map(Number)}function ck(e){return e[lk(e)]}function lk(e){return Math.max(0,e.length-1)}function uk(e,t){return t===lk(e)}function dk(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function fk(e){return Object.keys(e)}function pk(e,t){return[e,t].reduce((e,t)=>(fk(t).forEach(n=>{let r=e[n],i=t[n];e[n]=tk(r)&&tk(i)?pk(r,i):i}),e),{})}function mk(e,t){return t.MouseEvent!==void 0&&e instanceof t.MouseEvent}function hk(e,t){let n={start:r,center:i,end:a};function r(){return 0}function i(e){return a(e)/2}function a(e){return t-e}function o(r,i){return $O(e)?n[e](r):e(t,r,i)}return{measure:o}}function gk(){let e=[];function t(t,n,i,a={passive:!0}){let o;if(`addEventListener`in t)t.addEventListener(n,i,a),o=()=>t.removeEventListener(n,i,a);else{let e=t;e.addListener(i),o=()=>e.removeListener(i)}return e.push(o),r}function n(){e=e.filter(e=>e())}let r={add:t,clear:n};return r}function _k(e,t,n,r){let i=gk(),a=1e3/60,o=null,s=0,c=0;function l(){i.add(e,`visibilitychange`,()=>{e.hidden&&m()})}function u(){p(),i.clear()}function d(e){if(!c)return;o||(o=e,n(),n());let i=e-o;for(o=e,s+=i;s>=a;)n(),s-=a;r(s/a),c&&=t.requestAnimationFrame(d)}function f(){c||=t.requestAnimationFrame(d)}function p(){t.cancelAnimationFrame(c),o=null,s=0,c=0}function m(){o=null,s=0}return{init:l,destroy:u,start:f,stop:p,update:n,render:r}}function vk(e,t){let n=t===`rtl`,r=e===`y`,i=r?`y`:`x`,a=r?`x`:`y`,o=!r&&n?-1:1,s=u(),c=d();function l(e){let{height:t,width:n}=e;return r?t:n}function u(){return r?`top`:n?`right`:`left`}function d(){return r?`bottom`:n?`left`:`right`}function f(e){return e*o}return{scroll:i,cross:a,startEdge:s,endEdge:c,measureSize:l,direction:f}}function yk(e=0,t=0){let n=nk(e-t);function r(t){return t<e}function i(e){return e>t}function a(e){return r(e)||i(e)}function o(n){return a(n)?r(n)?e:t:n}function s(e){return n?e-n*Math.ceil((e-t)/n):e}return{length:n,max:t,min:e,constrain:o,reachedAny:a,reachedMax:i,reachedMin:r,removeOffset:s}}function bk(e,t,n){let{constrain:r}=yk(0,e),i=e+1,a=o(t);function o(e){return n?nk((i+e)%i):r(e)}function s(){return a}function c(e){return a=o(e),d}function l(e){return u().set(s()+e)}function u(){return bk(e,s(),n)}let d={get:s,set:c,add:l,clone:u};return d}function xk(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v){let{cross:y,direction:b}=e,x=[`INPUT`,`SELECT`,`TEXTAREA`],S={passive:!1},C=gk(),w=gk(),T=yk(50,225).constrain(p.measure(20)),E={mouse:300,touch:400},D={mouse:500,touch:600},O=m?43:25,k=!1,A=0,j=0,M=!1,N=!1,P=!1,ee=!1;function F(e){if(!v)return;function n(t){(ek(v)||v(e,t))&&L(t)}let r=t;C.add(r,`dragstart`,e=>e.preventDefault(),S).add(r,`touchmove`,()=>void 0,S).add(r,`touchend`,()=>void 0).add(r,`touchstart`,n).add(r,`mousedown`,n).add(r,`touchcancel`,oe).add(r,`contextmenu`,oe).add(r,`click`,se,!0)}function I(){C.clear(),w.clear()}function te(){let e=ee?n:t;w.add(e,`touchmove`,ae,S).add(e,`touchend`,oe).add(e,`mousemove`,ae,S).add(e,`mouseup`,oe)}function ne(e){let t=e.nodeName||``;return x.includes(t)}function re(){return(m?D:E)[ee?`mouse`:`touch`]}function ie(e,t){let n=d.add(rk(e)*-1),r=u.byDistance(e,!m).distance;return m||nk(e)<T?r:g&&t?r*.5:u.byIndex(n.get(),0).distance}function L(e){let t=mk(e,r);ee=t,P=m&&t&&!e.buttons&&k,k=ik(i.get(),o.get())>=2,!(t&&e.button!==0)&&(ne(e.target)||(M=!0,a.pointerDown(e),l.useFriction(0).useDuration(0),i.set(o),te(),A=a.readPoint(e),j=a.readPoint(e,y),f.emit(`pointerDown`)))}function ae(e){if(!mk(e,r)&&e.touches.length>=2)return oe(e);let t=a.readPoint(e),n=a.readPoint(e,y),o=ik(t,A),c=ik(n,j);if(!N&&!ee&&(!e.cancelable||(N=o>c,!N)))return oe(e);let u=a.pointerMove(e);o>h&&(P=!0),l.useFriction(.3).useDuration(.75),s.start(),i.add(b(u)),e.preventDefault()}function oe(e){let t=u.byDistance(0,!1).index!==d.get(),n=a.pointerUp(e)*re(),r=ie(b(n),t),i=ak(n,r),o=O-10*i,s=_+i/50;N=!1,M=!1,w.clear(),l.useDuration(o).useFriction(s),c.distance(r,!m),ee=!1,f.emit(`pointerUp`)}function se(e){P&&=(e.stopPropagation(),e.preventDefault(),!1)}function ce(){return M}return{init:F,destroy:I,pointerDown:ce}}function Sk(e,t){let n,r;function i(e){return e.timeStamp}function a(n,r){let i=`client${(r||e.scroll)===`x`?`X`:`Y`}`;return(mk(n,t)?n:n.touches[0])[i]}function o(e){return n=e,r=e,a(e)}function s(e){let t=a(e)-a(r),o=i(e)-i(n)>170;return r=e,o&&(n=e),t}function c(e){if(!n||!r)return 0;let t=a(r)-a(n),o=i(e)-i(n),s=i(e)-i(r)>170,c=t/o;return o&&!s&&nk(c)>.1?c:0}return{pointerDown:o,pointerMove:s,pointerUp:c,readPoint:a}}function Ck(){function e(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}return{measure:e}}function wk(e){function t(t){return t/100*e}return{measure:t}}function Tk(e,t,n,r,i,a,o){let s=[e].concat(r),c,l,u=[],d=!1;function f(e){return i.measureSize(o.measure(e))}function p(i){if(!a)return;l=f(e),u=r.map(f);function o(n){for(let a of n){if(d)return;let n=a.target===e,o=r.indexOf(a.target),s=n?l:u[o];if(nk(f(n?e:r[o])-s)>=.5){i.reInit(),t.emit(`resize`);break}}}c=new ResizeObserver(e=>{(ek(a)||a(i,e))&&o(e)}),n.requestAnimationFrame(()=>{s.forEach(e=>c.observe(e))})}function m(){d=!0,c&&c.disconnect()}return{init:p,destroy:m}}function Ek(e,t,n,r,i,a){let o=0,s=0,c=i,l=a,u=e.get(),d=0;function f(){let t=r.get()-e.get(),i=!c,a=0;return i?(o=0,n.set(r),e.set(r),a=t):(n.set(e),o+=t/c,o*=l,u+=o,e.add(o),a=u-d),s=rk(a),d=u,x}function p(){return nk(r.get()-t.get())<.001}function m(){return c}function h(){return s}function g(){return o}function _(){return y(i)}function v(){return b(a)}function y(e){return c=e,x}function b(e){return l=e,x}let x={direction:h,duration:m,velocity:g,seek:f,settled:p,useBaseFriction:v,useBaseDuration:_,useFriction:b,useDuration:y};return x}function Dk(e,t,n,r,i){let a=i.measure(10),o=i.measure(50),s=yk(.1,.99),c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(i){if(!l())return;let c=nk(e[e.reachedMin(t.get())?`min`:`max`]-t.get()),u=n.get()-t.get(),d=s.constrain(c/o);n.subtract(u*d),!i&&nk(u)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function d(e){c=!e}return{shouldConstrain:l,constrain:u,toggleActive:d}}function Ok(e,t,n,r,i){let a=yk(-t+e,0),o=d(),s=u(),c=f();function l(e,t){return ik(e,t)<=1}function u(){let e=o[0],t=ck(o);return yk(o.lastIndexOf(e),o.indexOf(t)+1)}function d(){return n.map((e,t)=>{let{min:r,max:i}=a,o=a.constrain(e),s=!t,c=uk(n,t);return s?i:c||l(r,o)?r:l(i,o)?i:o}).map(e=>parseFloat(e.toFixed(3)))}function f(){if(t<=e+i)return[a.max];if(r===`keepSnaps`)return o;let{min:n,max:c}=s;return o.slice(n,c)}return{snapsContained:c,scrollContainLimit:s}}function kk(e,t,n){let r=t[0];return{limit:yk(n?r-e:ck(t),r)}}function Ak(e,t,n,r){let i=.1,{reachedMin:a,reachedMax:o}=yk(t.min+i,t.max+i);function s(e){return e===1?o(n.get()):e===-1?a(n.get()):!1}function c(t){if(!s(t))return;let n=t*-1*e;r.forEach(e=>e.add(n))}return{loop:c}}function jk(e){let{max:t,length:n}=e;function r(e){let r=e-t;return n?r/-n:0}return{get:r}}function Mk(e,t,n,r,i){let{startEdge:a,endEdge:o}=e,{groupSlides:s}=i,c=d().map(t.measure),l=f(),u=p();function d(){return s(r).map(e=>ck(e)[o]-e[0][a]).map(nk)}function f(){return r.map(e=>n[a]-e[a]).map(e=>-nk(e))}function p(){return s(l).map(e=>e[0]).map((e,t)=>e+c[t])}return{snaps:l,snapsAligned:u}}function Nk(e,t,n,r,i,a){let{groupSlides:o}=i,{min:s,max:c}=r,l=u();function u(){let r=o(a),i=!e||t===`keepSnaps`;return n.length===1?[a]:i?r:r.slice(s,c).map((e,t,n)=>{let r=!t,i=uk(n,t);return r?dk(ck(n[0])+1):i?dk(lk(a)-ck(n)[0]+1,ck(n)[0]):e})}return{slideRegistry:l}}function Pk(e,t,n,r,i){let{reachedAny:a,removeOffset:o,constrain:s}=r;function c(e){return e.concat().sort((e,t)=>nk(e)-nk(t))[0]}function l(n){let r=e?o(n):s(n),{index:i}=t.map((e,t)=>({diff:u(e-r,0),index:t})).sort((e,t)=>nk(e.diff)-nk(t.diff))[0];return{index:i,distance:r}}function u(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return c(i);let a=i.filter(e=>rk(e)===r);return a.length?c(a):ck(i)-n}function d(e,n){return{index:e,distance:u(t[e]-i.get(),n)}}function f(n,r){let o=i.get()+n,{index:s,distance:c}=l(o),d=!e&&a(o);return!r||d?{index:s,distance:n}:{index:s,distance:n+u(t[s]-c,0)}}return{byDistance:f,byIndex:d,shortcut:u}}function Fk(e,t,n,r,i,a,o){function s(i){let s=i.distance,c=i.index!==t.get();a.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),c&&(n.set(t.get()),t.set(i.index),o.emit(`select`))}function c(e,t){s(i.byDistance(e,t))}function l(e,n){let r=t.clone().set(e);s(i.byIndex(r.get(),n))}return{distance:c,index:l}}function Ik(e,t,n,r,i,a,o,s){let c={passive:!0,capture:!0},l=0;function u(u){if(!s)return;function f(t){if(new Date().getTime()-l>10)return;o.emit(`slideFocusStart`),e.scrollLeft=0;let a=n.findIndex(e=>e.includes(t));QO(a)&&(i.useDuration(0),r.index(a,0),o.emit(`slideFocus`))}a.add(document,`keydown`,d,!1),t.forEach((e,t)=>{a.add(e,`focus`,e=>{(ek(s)||s(u,e))&&f(t)},c)})}function d(e){e.code===`Tab`&&(l=new Date().getTime())}return{init:u}}function Lk(e){let t=e;function n(){return t}function r(e){t=o(e)}function i(e){t+=o(e)}function a(e){t-=o(e)}function o(e){return QO(e)?e:e.get()}return{get:n,set:r,add:i,subtract:a}}function Rk(e,t){let n=e.scroll===`x`?o:s,r=t.style,i=null,a=!1;function o(e){return`translate3d(${e}px,0px,0px)`}function s(e){return`translate3d(0px,${e}px,0px)`}function c(t){if(a)return;let o=ok(e.direction(t));o!==i&&(r.transform=n(o),i=o)}function l(e){a=!e}function u(){a||(r.transform=``,t.getAttribute(`style`)||t.removeAttribute(`style`))}return{clear:u,to:c,toggleActive:l}}function zk(e,t,n,r,i,a,o,s,c){let l=.5,u=sk(i),d=sk(i).reverse(),f=_().concat(v());function p(e,t){return e.reduce((e,t)=>e-i[t],t)}function m(e,t){return e.reduce((e,n)=>p(e,t)>0?e.concat([n]):e,[])}function h(e){return a.map((n,i)=>({start:n-r[i]+l+e,end:n+t-l+e}))}function g(t,r,i){let a=h(r);return t.map(t=>{let r=i?0:-n,o=i?n:0,l=i?`end`:`start`,u=a[t][l];return{index:t,loopPoint:u,slideLocation:Lk(-1),translate:Rk(e,c[t]),target:()=>s.get()>u?r:o}})}function _(){let e=o[0];return g(m(d,e),n,!1)}function v(){return g(m(u,t-o[0]-1),-n,!0)}function y(){return f.every(({index:e})=>p(u.filter(t=>t!==e),t)<=.1)}function b(){f.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})}function x(){f.forEach(e=>e.translate.clear())}return{canLoop:y,clear:x,loop:b,loopPoints:f}}function Bk(e,t,n){let r,i=!1;function a(a){if(!n)return;function o(e){for(let n of e)if(n.type===`childList`){a.reInit(),t.emit(`slidesChanged`);break}}r=new MutationObserver(e=>{i||(ek(n)||n(a,e))&&o(e)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),i=!0}return{init:a,destroy:o}}function Vk(e,t,n,r){let i={},a=null,o=null,s,c=!1;function l(){s=new IntersectionObserver(e=>{c||(e.forEach(e=>{let n=t.indexOf(e.target);i[n]=e}),a=null,o=null,n.emit(`slidesInView`))},{root:e.parentElement,threshold:r}),t.forEach(e=>s.observe(e))}function u(){s&&s.disconnect(),c=!0}function d(e){return fk(i).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:a}=i[r];return(e&&a||!e&&!a)&&t.push(r),t},[])}function f(e=!0){if(e&&a)return a;if(!e&&o)return o;let t=d(e);return e&&(a=t),e||(o=t),t}return{init:l,destroy:u,get:f}}function Hk(e,t,n,r,i,a){let{measureSize:o,startEdge:s,endEdge:c}=e,l=n[0]&&i,u=m(),d=h(),f=n.map(o),p=g();function m(){if(!l)return 0;let e=n[0];return nk(t[s]-e[s])}function h(){if(!l)return 0;let e=a.getComputedStyle(ck(r));return parseFloat(e.getPropertyValue(`margin-${c}`))}function g(){return n.map((e,t,n)=>{let r=!t,i=uk(n,t);return r?f[t]+u:i?f[t]+d:n[t+1][s]-e[s]}).map(nk)}return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:d}}function Uk(e,t,n,r,i,a,o,s,c){let{startEdge:l,endEdge:u,direction:d}=e,f=QO(n);function p(e,t){return sk(e).filter(e=>e%t===0).map(n=>e.slice(n,n+t))}function m(e){return e.length?sk(e).reduce((n,f,p)=>{let m=ck(n)||0,h=m===0,g=f===lk(e),_=i[l]-a[m][l],v=i[l]-a[f][u],y=!r&&h?d(o):0,b=nk(v-(!r&&g?d(s):0)-(_+y));return p&&b>t+c&&n.push(f),g&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}function h(e){return f?p(e,n):m(e)}return{groupSlides:h}}function Wk(e,t,n,r,i,a,o){let{align:s,axis:c,direction:l,startIndex:u,loop:d,duration:f,dragFree:p,dragThreshold:m,inViewThreshold:h,slidesToScroll:g,skipSnaps:_,containScroll:v,watchResize:y,watchSlides:b,watchDrag:x,watchFocus:S}=a,C=Ck(),w=C.measure(t),T=n.map(C.measure),E=vk(c,l),D=E.measureSize(w),O=wk(D),k=hk(s,D),A=!d&&!!v,{slideSizes:j,slideSizesWithGaps:M,startGap:N,endGap:P}=Hk(E,w,T,n,d||!!v,i),ee=Uk(E,D,g,d,w,T,N,P,2),{snaps:F,snapsAligned:I}=Mk(E,k,w,T,ee),te=-ck(F)+ck(M),{snapsContained:ne,scrollContainLimit:re}=Ok(D,te,I,v,2),ie=A?ne:I,{limit:L}=kk(te,ie,d),ae=bk(lk(ie),u,d),oe=ae.clone(),se=sk(n),ce=({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()},le=({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:i,scrollLooper:a,slideLooper:o,dragHandler:s,animation:c,eventHandler:l,scrollBounds:u,options:{loop:d}},f)=>{let p=e.settled(),m=!u.shouldConstrain(),h=d?p:p&&m,g=h&&!s.pointerDown();g&&c.stop();let _=n.get()*f+i.get()*(1-f);r.set(_),d&&(a.loop(e.direction()),o.loop()),t.to(r.get()),g&&l.emit(`settle`),h||l.emit(`scroll`)},ue=_k(r,i,()=>ce(Se),e=>le(Se,e)),de=.68,fe=ie[ae.get()],R=Lk(fe),pe=Lk(fe),me=Lk(fe),he=Lk(fe),ge=Ek(R,me,pe,he,f,de),z=Pk(d,ie,te,L,he),_e=Fk(ue,ae,oe,ge,z,he,o),ve=jk(L),B=gk(),ye=Vk(t,n,o,h),{slideRegistry:be}=Nk(A,v,ie,re,ee,se),xe=Ik(e,n,be,_e,ge,B,o,S),Se={ownerDocument:r,ownerWindow:i,eventHandler:o,containerRect:w,slideRects:T,animation:ue,axis:E,dragHandler:xk(E,e,r,i,he,Sk(E,i),R,ue,_e,ge,z,ae,o,O,p,m,_,de,x),eventStore:B,percentOfView:O,index:ae,indexPrevious:oe,limit:L,location:R,offsetLocation:me,previousLocation:pe,options:a,resizeHandler:Tk(t,o,i,n,E,y,C),scrollBody:ge,scrollBounds:Dk(L,me,he,ge,O),scrollLooper:Ak(te,L,me,[R,me,pe,he]),scrollProgress:ve,scrollSnapList:ie.map(ve.get),scrollSnaps:ie,scrollTarget:z,scrollTo:_e,slideLooper:zk(E,D,te,j,M,F,ie,me,n),slideFocus:xe,slidesHandler:Bk(t,o,b),slidesInView:ye,slideIndexes:se,slideRegistry:be,slidesToScroll:ee,target:he,translate:Rk(E,t)};return Se}function Gk(){let e={},t;function n(e){t=e}function r(t){return e[t]||[]}function i(e){return r(e).forEach(n=>n(t,e)),c}function a(t,n){return e[t]=r(t).concat([n]),c}function o(t,n){return e[t]=r(t).filter(e=>e!==n),c}function s(){e={}}let c={init:n,emit:i,off:o,on:a,clear:s};return c}var Kk={align:`center`,axis:`x`,container:null,slides:null,containScroll:`trimSnaps`,direction:`ltr`,slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function qk(e){function t(e,t){return pk(e,t||{})}function n(n){let r=n.breakpoints||{};return t(n,fk(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{}))}function r(t){return t.map(e=>fk(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function Jk(e){let t=[];function n(n,r){return t=r.filter(({options:t})=>e.optionsAtMedia(t).active!==!1),t.forEach(t=>t.init(n,e)),r.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})}function r(){t=t.filter(e=>e.destroy())}return{init:n,destroy:r}}function Yk(e,t,n){let r=e.ownerDocument,i=r.defaultView,a=qk(i),o=Jk(a),s=gk(),c=Gk(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=a,{on:f,off:p,emit:m}=c,h=D,g=!1,_,v=l(Kk,Yk.globalOptions),y=l(v),b=[],x,S,C;function w(){let{container:t,slides:n}=y;S=($O(t)?e.querySelector(t):t)||e.children[0];let r=$O(n)?S.querySelectorAll(n):n;C=[].slice.call(r||S.children)}function T(t){let n=Wk(e,S,C,r,i,t,c);return t.loop&&!n.slideLooper.canLoop()?T(Object.assign({},t,{loop:!1})):n}function E(e,t){g||(v=l(v,e),y=u(v),b=t||b,w(),_=T(y),d([v,...b.map(({options:e})=>e)]).forEach(e=>s.add(e,`change`,D)),y.active&&(_.translate.to(_.location.get()),_.animation.init(),_.slidesInView.init(),_.slideFocus.init(ce),_.eventHandler.init(ce),_.resizeHandler.init(ce),_.slidesHandler.init(ce),_.options.loop&&_.slideLooper.loop(),S.offsetParent&&C.length&&_.dragHandler.init(ce),x=o.init(ce,b)))}function D(e,t){let n=I();O(),E(l({startIndex:n},e),t),c.emit(`reInit`)}function O(){_.dragHandler.destroy(),_.eventStore.clear(),_.translate.clear(),_.slideLooper.clear(),_.resizeHandler.destroy(),_.slidesHandler.destroy(),_.slidesInView.destroy(),_.animation.destroy(),o.destroy(),s.clear()}function k(){g||(g=!0,s.clear(),O(),c.emit(`destroy`),c.clear())}function A(e,t,n){!y.active||g||(_.scrollBody.useBaseFriction().useDuration(t===!0?0:y.duration),_.scrollTo.index(e,n||0))}function j(e){A(_.index.add(1).get(),e,-1)}function M(e){A(_.index.add(-1).get(),e,1)}function N(){return _.index.add(1).get()!==I()}function P(){return _.index.add(-1).get()!==I()}function ee(){return _.scrollSnapList}function F(){return _.scrollProgress.get(_.offsetLocation.get())}function I(){return _.index.get()}function te(){return _.indexPrevious.get()}function ne(){return _.slidesInView.get()}function re(){return _.slidesInView.get(!1)}function ie(){return x}function L(){return _}function ae(){return e}function oe(){return S}function se(){return C}let ce={canScrollNext:N,canScrollPrev:P,containerNode:oe,internalEngine:L,destroy:k,off:p,on:f,emit:m,plugins:ie,previousScrollSnap:te,reInit:h,rootNode:ae,scrollNext:j,scrollPrev:M,scrollProgress:F,scrollSnapList:ee,scrollTo:A,selectedScrollSnap:I,slideNodes:se,slidesInView:ne,slidesNotInView:re};return E(t,n),setTimeout(()=>c.emit(`init`),0),ce}Yk.globalOptions=void 0;function Xk(e={},t=[]){let n=(0,H.useRef)(e),r=(0,H.useRef)(t),[i,a]=(0,H.useState)(),[o,s]=(0,H.useState)(),c=(0,H.useCallback)(()=>{i&&i.reInit(n.current,r.current)},[i]);return(0,H.useEffect)(()=>{YO(n.current,e)||(n.current=e,c())},[e,c]),(0,H.useEffect)(()=>{ZO(r.current,t)||(r.current=t,c())},[t,c]),(0,H.useEffect)(()=>{if(JO()&&o){Yk.globalOptions=Xk.globalOptions;let e=Yk(o,n.current,r.current);return a(e),()=>e.destroy()}else a(void 0)},[o,a]),[s,i]}Xk.globalOptions=void 0;var Zk={controlSize:26,controlsOffset:`sm`,slideSize:`100%`,slideGap:0,orientation:`horizontal`,includeGapInSize:!0,initialSlide:0,withControls:!0,withIndicators:!1,withKeyboardEvents:!0,type:`media`},Qk={align:`center`,loop:!1,slidesToScroll:1,dragFree:!1,inViewThreshold:0,skipSnaps:!1,containScroll:`trimSnaps`},$k=Cn((e,{height:t,controlSize:n,controlsOffset:r})=>({root:{"--carousel-height":V(t),"--carousel-control-size":V(n),"--carousel-controls-offset":ot(r)}})),eA=K(e=>{let t=W(`Carousel`,Zk,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,getEmblaApi:l,onNextSlide:u,onPreviousSlide:d,onSlideChange:f,nextControlProps:p,previousControlProps:m,controlSize:h,controlsOffset:g,slideSize:_,slideGap:v,orientation:y,height:b,includeGapInSize:x,draggable:S,initialSlide:C,withControls:w,withIndicators:T,plugins:E,nextControlIcon:D,previousControlIcon:O,withKeyboardEvents:k,mod:A,type:j,emblaOptions:M,attributes:N,getIndicatorProps:P,id:ee,...F}=t,I=G({name:`Carousel`,classes:RO,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:N,vars:s,varsResolver:$k}),te=Rt(ee),ne=Mi(),{dir:re}=Ki(),[ie,L]=Xk({axis:y===`horizontal`?`x`:`y`,direction:y===`horizontal`?re:void 0,startIndex:C,...Qk,...M},E),[ae,oe]=(0,H.useState)(0),[se,ce]=(0,H.useState)(0),le=(0,H.useCallback)(e=>L&&L.scrollTo(e),[L]),ue=(0,H.useCallback)(()=>{if(!L)return;let e=L.selectedScrollSnap();oe(e),e!==ae&&f?.(e)},[L,oe,f,ae]),de=(0,H.useCallback)(()=>{L?.scrollPrev(),d?.()},[L]),fe=(0,H.useCallback)(()=>{L?.scrollNext(),u?.()},[L]),R=(0,H.useCallback)(e=>{k&&(e.key===`ArrowRight`&&(e.preventDefault(),fe()),e.key===`ArrowLeft`&&(e.preventDefault(),de()),e.key===`Home`&&(e.preventDefault(),L?.scrollTo(0)),e.key===`End`&&(e.preventDefault(),L?.scrollTo(L.scrollSnapList().length-1)))},[L,fe,de]);(0,H.useEffect)(()=>{if(L)return l?.(L),ue(),ce(L.scrollSnapList().length),L.on(`select`,ue),()=>{L.off(`select`,ue)}},[L,M?.slidesToScroll,ue]),(0,H.useEffect)(()=>{L&&(L.reInit(),ce(L.scrollSnapList().length),oe(e=>gt(e,0,H.Children.toArray(c).length-1)))},[H.Children.toArray(c).length,M?.slidesToScroll]);let pe=L?.canScrollPrev()||!1,me=L?.canScrollNext()||!1,he=(0,H.useCallback)((e,t)=>{let n=y===`horizontal`,r=n?`ArrowRight`:`ArrowDown`,i=n?`ArrowLeft`:`ArrowUp`;if(e.key===r){e.preventDefault();let n=t<se-1?t+1:0;le(n),(e.currentTarget.parentElement?.children[n])?.focus()}if(e.key===i){e.preventDefault();let n=t>0?t-1:se-1;le(n),(e.currentTarget.parentElement?.children[n])?.focus()}e.key===`Home`&&(e.preventDefault(),le(0),(e.currentTarget.parentElement?.children[0])?.focus()),e.key===`End`&&(e.preventDefault(),le(se-1),(e.currentTarget.parentElement?.children[se-1])?.focus())},[y,se,le]),ge=Array(se).fill(0).map((e,t)=>(0,H.createElement)(dl,{...I(`indicator`),key:t,role:`tab`,"aria-label":`Go to slide ${t+1}`,"aria-selected":t===ae,tabIndex:t===ae?0:-1,"data-active":t===ae||void 0,onClick:()=>le(t),onKeyDown:e=>he(e,t),"data-orientation":y,onMouseDown:e=>e.preventDefault(),...P?.(t)}));return(0,U.jsxs)(IO,{value:{getStyles:I,orientation:y},children:[j===`container`?(0,U.jsx)(WO,{...t,selector:`.${ne}`}):(0,U.jsx)(BO,{...t,selector:`.${ne}`}),(0,U.jsxs)(q,{role:`region`,"aria-roledescription":`carousel`,...I(`root`,{className:ne}),...F,id:te,mod:[{orientation:y,"include-gap-in-size":x},A],onKeyDownCapture:R,children:[(0,U.jsx)(pl,{role:`status`,"aria-live":`polite`,"aria-atomic":`true`,children:se>0&&`Slide ${ae+1} of ${se}`}),w&&(0,U.jsxs)(`div`,{...I(`controls`),"data-orientation":y,children:[(0,U.jsx)(dl,{"aria-controls":te,"aria-label":`Previous slide`,"aria-disabled":!pe,"data-inactive":!pe||void 0,"data-type":`previous`,tabIndex:pe?0:-1,...m,...I(`control`,{className:m?.className,style:m?.style}),onClick:e=>{de(),m?.onClick?.(e)},children:O===void 0?(0,U.jsx)(Pf,{style:{transform:`rotate(${GO({dir:re,orientation:y,direction:`previous`})}deg)`}}):O}),(0,U.jsx)(dl,{"aria-controls":te,"aria-label":`Next slide`,"aria-disabled":!me,"data-inactive":!me||void 0,"data-type":`next`,tabIndex:me?0:-1,...I(`control`,{className:p?.className,style:p?.style}),...p,onClick:e=>{fe(),p?.onClick?.(e)},children:D===void 0?(0,U.jsx)(Pf,{style:{transform:`rotate(${GO({dir:re,orientation:y,direction:`next`})}deg)`}}):D})]}),(0,U.jsx)(`div`,{...I(`viewport`),ref:ie,"data-type":j,children:(0,U.jsx)(`div`,{...I(`container`,{className:ne}),"data-orientation":y,children:c})}),T&&(0,U.jsx)(`div`,{...I(`indicators`),role:`tablist`,"aria-label":`Slides`,"data-orientation":y,children:ge})]})]})});eA.classes=RO,eA.varsResolver=$k,eA.displayName=`@mantine/carousel/Carousel`,eA.Slide=zO;function tA({...e}){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,U.jsx)(`path`,{d:`M15 18L9 12L15 6`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})})}function nA({...e}){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,U.jsx)(`path`,{d:`M9.00005 6L15 12L9 18`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})})}var rA={"space-0":`0`,"space-025":`1px`,"space-050":`2px`,"space-100":`4px`,"space-150":`6px`,"space-200":`8px`,"space-300":`12px`,"space-400":`16px`,"space-500":`20px`,"space-600":`24px`,"space-700":`32px`,"space-800":`40px`,"space-900":`48px`},iA=eA.extend({classNames:{root:`_root_nuq5f_1`,control:`_control_nuq5f_1`,indicators:`_indicators_nuq5f_10`,indicator:`_indicator_nuq5f_10`,slide:`_slide_nuq5f_26`,controls:`_controls_nuq5f_34`},defaultProps:{controlSize:32,nextControlIcon:(0,U.jsx)(nA,{height:16,width:16}),previousControlIcon:(0,U.jsx)(tA,{height:16,width:16}),slideGap:V(rA[`space-400`]),slideSize:{base:`90%`,sm:`47%`},withControls:!0,withIndicators:!1,emblaOptions:{align:`start`}}}),aA={root:`_root_1edmf_1`,input:`_input_1edmf_8`,label:`_label_1edmf_26`,icon:`_icon_1edmf_47`,inner:`_inner_1edmf_54`,error:`_error_1edmf_58`};function oA({...e}){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`10`,height:`8`,viewBox:`0 0 10 8`,fill:`none`,...e,children:(0,U.jsx)(`path`,{d:`M1.5 5L3.25 6.75L8.5 1.25`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})}function sA({...e}){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`10`,height:`8`,viewBox:`0 0 10 8`,fill:`none`,...e,children:(0,U.jsx)(`path`,{d:`M2.5 4L7.5 4`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})}var cA=tm.extend({classNames:aA,defaultProps:{icon:({indeterminate:e,...t})=>e?(0,U.jsx)(sA,{...t}):(0,U.jsx)(oA,{...t})}}),lA=Bm.extend({classNames:{alphaOverlay:`_alphaOverlay_1uog6_1`,shadowOverlay:`_shadowOverlay_1uog6_2`}}),uA={XS:352,SM:584,MD:800,LG:1160,XL:1160},dA=Object.entries(uA).reduce((e,[t,n])=>({...e,[t.toLowerCase()]:V(n)}),{}),fA={fluidContainer:`_fluidContainer_34o23_1`,responsiveContainer:`_responsiveContainer_34o23_5`,miniContainer:`_miniContainer_34o23_24`},pA=Wm.extend({defaultProps:{size:`responsive`},classNames:(e,{size:t,fluid:n})=>({root:Tn({[fA.fluidContainer]:n,[fA.miniContainer]:t===`mini`,[fA.responsiveContainer]:!n&&t===`responsive`})}),vars:(e,{size:t,fluid:n})=>({root:{"--container-size":n?`100%`:t!==void 0&&t in dA?dA[t]:V(t)}})}),mA={placeholder:EO,getYearControlProps:e=>({mod:{...(0,Q.default)().isSame(e,`year`)&&{"current-year":!0}}}),getMonthControlProps:e=>({mod:{...(0,Q.default)().isSame(e,`month`)&&{"current-month":!0}}})},hA={day:`_day_1i329_1`,dayToday:`_dayToday_1i329_30`,month:`_month_1i329_35`,calendarHeaderLevel:`_calendarHeaderLevel_1i329_40`,calendarHeaderControl:`_calendarHeaderControl_1i329_45`,weekday:`_weekday_1i329_49`,monthsListControl:`_monthsListControl_1i329_54`,yearsListControl:`_yearsListControl_1i329_55`},gA=mO.extend({classNames:hA,defaultProps:{withCellSpacing:!1,weekdayFormat:`ddd`,renderDay:e=>{let t=(0,Q.default)(e),n=(0,Q.default)().isSame(t,`day`);return(0,U.jsx)(Xf,{span:!0,className:Tn({[hA.dayToday]:n}),children:t.format(`D`)})},...mA}}),_A=TO.extend({classNames:{day:`_day_1i329_1`,dayToday:`_dayToday_1i329_30`,month:`_month_1i329_35`,calendarHeaderLevel:`_calendarHeaderLevel_1i329_40`,calendarHeaderControl:`_calendarHeaderControl_1i329_45`,weekday:`_weekday_1i329_49`,monthsListControl:`_monthsListControl_1i329_54`,yearsListControl:`_yearsListControl_1i329_55`},defaultProps:{...mA,valueFormat:EO}}),vA=Jm.extend({classNames:{root:`_root_uz5je_1`},defaultProps:{size:1}}),yA={xs:.08,sm:.16,md:.24,lg:.4,xl:.56},bA=mh.extend({classNames:{root:`_root_dlog2_1`,title:`_title_dlog2_9`,content:`_content_dlog2_17`,header:`_header_dlog2_30`,body:`_body_dlog2_38`,close:`_close_dlog2_48`},defaultProps:{size:`md`,position:`right`,overlayProps:{backgroundOpacity:yA.xl,blur:6}}}),xA=Oh.extend({defaultProps:{columnGap:24,rowGap:16}}),SA=Eu.extend({defaultProps:{gap:0,align:`flex-start`}}),CA={wrapper:`_wrapper_4biwb_1`,input:`_input_4biwb_9`,section:`_section_4biwb_42`},wA={placeholder:`_placeholder_1o876_1`},TA={root:`_root_n7rgq_1`,label:`_label_n7rgq_7`,error:`_error_n7rgq_11`,description:`_description_n7rgq_18`,required:`_required_n7rgq_23`},EA=bf.extend({classNames:CA}),DA=bf.Wrapper.extend({classNames:TA,defaultProps:{inputWrapperOrder:[`label`,`input`,`description`,`error`]}}),OA=bf.Placeholder.extend({classNames:wA}),kA=cu.extend({defaultProps:{size:`xs`}}),AA=ag.extend({classNames:{dropdown:`_dropdown_wis3q_1`,item:`_item_wis3q_12`},defaultProps:{offset:4,position:`bottom-end`}}),jA=xg.extend({classNames:{root:`_root_ax69a_1`,header:`_header_ax69a_8`,title:`_title_ax69a_12`,content:`_content_ax69a_19`,body:`_body_ax69a_29`,close:`_close_ax69a_35`},defaultProps:{size:`md`,yOffset:`5vh`,transitionProps:{duration:300,transition:`fade-down`},closeButtonProps:{size:24},overlayProps:{backgroundOpacity:yA.xl,blur:6},scrollAreaComponent:sl.Autosize}}),MA=uO.extend({classNames:{day:`_day_1i329_1`,dayToday:`_dayToday_1i329_30`,month:`_month_1i329_35`,calendarHeaderLevel:`_calendarHeaderLevel_1i329_40`,calendarHeaderControl:`_calendarHeaderControl_1i329_45`,weekday:`_weekday_1i329_49`,monthsListControl:`_monthsListControl_1i329_54`,yearsListControl:`_yearsListControl_1i329_55`},defaultProps:{...mA}}),NA=CO.extend({classNames:{day:`_day_1i329_1`,dayToday:`_dayToday_1i329_30`,month:`_month_1i329_35`,calendarHeaderLevel:`_calendarHeaderLevel_1i329_40`,calendarHeaderControl:`_calendarHeaderControl_1i329_45`,weekday:`_weekday_1i329_49`,monthsListControl:`_monthsListControl_1i329_54`,yearsListControl:`_yearsListControl_1i329_55`},defaultProps:{...mA}}),PA=zg.extend({classNames:{input:`_input_z7ary_1`,section:`_section_z7ary_6`,inputField:`_inputField_z7ary_28`,dropdown:`_dropdown_z7ary_41`,option:`_option_z7ary_47`,pillsList:`_pillsList_z7ary_60`,pill:`_pill_z7ary_60`},defaultProps:{renderOption:({checked:e,option:t})=>(0,U.jsxs)(Eu,{gap:8,children:[(0,U.jsx)(tm,{checked:e,onChange:()=>{},styles:{root:{pointerEvents:`none`}},tabIndex:-1,"aria-hidden":!0}),(0,U.jsx)(Xf,{span:!0,children:t.label})]}),searchable:!0}}),FA=Hg.extend({classNames:{root:`_root_1s2hi_1`,section:`_section_1s2hi_37`},defaultProps:{rightSection:null,childrenOffset:26}}),IA=Kg.extend({classNames:{root:`_root_1xfa4_1`,icon:`_icon_1xfa4_11`,description:`_description_1xfa4_15`,title:`_title_1xfa4_18`,closeButton:`_closeButton_1xfa4_22`}}),LA=rv.extend({defaultProps:{allowNegative:!1,thousandSeparator:`,`}}),RA=Ev.extend({classNames:{root:`_root_1fw4a_1`,control:`_control_1fw4a_9`,dots:`_dots_1fw4a_22`},defaultProps:{nextIcon:nA,previousIcon:tA,size:`lg`}}),zA=gl.extend({defaultProps:{shadow:`none`}});function BA({...e}){return(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,U.jsx)(`path`,{d:`M22 8C22 8 18 14 12 14C6 14 2 8 2 8`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,U.jsx)(`path`,{d:`M15 13.5L16.5 16`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M20 11L22 13`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M2 13L4 11`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M9 13.5L7.5 16`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]})}function VA({...e}){return(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,U.jsx)(`path`,{d:`M21.544 11.045C21.848 11.4713 22 11.6845 22 12C22 12.3155 21.848 12.5287 21.544 12.955C20.1779 14.8706 16.6892 19 12 19C7.31078 19 3.8221 14.8706 2.45604 12.955C2.15201 12.5287 2 12.3155 2 12C2 11.6845 2.15201 11.4713 2.45604 11.045C3.8221 9.12944 7.31078 5 12 5C16.6892 5 20.1779 9.12944 21.544 11.045Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15C13.6569 15 15 13.6569 15 12Z`,stroke:`currentColor`,strokeWidth:`1.5`})]})}var HA=jv.extend({classNames:{visibilityToggle:`_visibilityToggle_rqask_1`,input:`_input_rqask_12`,innerInput:`_innerInput_rqask_12`},defaultProps:{visibilityToggleIcon:({reveal:e})=>e?(0,U.jsx)(BA,{}):(0,U.jsx)(VA,{})}}),UA=kg.extend({classNames:{root:`_root_1us9a_1`,label:`_label_1us9a_21`,remove:`_remove_1us9a_42`}}),WA=eu.extend({classNames:{dropdown:`_dropdown_145m5_1`}}),GA=Bv.extend({classNames:{root:`_root_1lid3_1`},defaultProps:{color:`brand-orange.5`,size:4}}),KA=ny.extend({classNames:{root:`_root_1njtj_1`,radio:`_radio_1njtj_9`,label:`_label_1njtj_22`,icon:`_icon_1njtj_40`,error:`_error_1njtj_58`,inner:`_inner_1njtj_62`}}),qA=ny.Card.extend({classNames:{card:`_card_11cie_1`}}),JA=ny.Indicator.extend({classNames:{indicator:`_indicator_yh8fo_1`,icon:`_icon_yh8fo_17`}}),YA=Oy.extend({classNames:{root:`_root_nz2l8_1`,indicator:`_indicator_nz2l8_5`},defaultProps:{withItemsBorders:!1,radius:`md`}});function XA({...e}){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,U.jsx)(`path`,{d:`M5 14L8.5 17.5L19 6.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})}var ZA=({checked:e,option:t})=>(0,U.jsxs)(Eu,{gap:8,children:[e&&(0,U.jsx)(XA,{width:16,height:16}),(0,U.jsx)(Xf,{span:!0,children:t.label})]}),QA=Ay.extend({classNames:{input:`_input_xmuz2_1`,section:`_section_xmuz2_6`,dropdown:`_dropdown_xmuz2_35`,option:`_option_xmuz2_41`},defaultProps:{allowDeselect:!1,renderOption:ZA}}),$A=Ky.extend({defaultProps:{gap:0}}),ej=nb.extend({classNames:{root:`_root_bk7hc_1`,stepIcon:`_stepIcon_bk7hc_6`,separator:`_separator_bk7hc_22`,step:`_step_bk7hc_6`,stepLabel:`_stepLabel_bk7hc_29`},defaultProps:{allowNextStepsSelect:!1,iconSize:30}}),tj=lb.extend({classNames:{root:`_root_1xr8m_1`,track:`_track_1xr8m_6`,input:`_input_1xr8m_10`,thumb:`_thumb_1xr8m_22`,label:`_label_1xr8m_29`},defaultProps:{withThumbIndicator:!1}}),nj=Ob.extend({classNames:{table:`_table_1nke6_1`,thead:`_thead_1nke6_8`,th:`_th_1nke6_8`,tbody:`_tbody_1nke6_41`,td:`_td_1nke6_44`},defaultProps:{withTableBorder:!0}}),rj=Rb.extend({classNames:{root:`_root_1x595_1`,list:`_list_1x595_1`,tab:`_tab_1x595_11`,tabLabel:`_tabLabel_1x595_18`,tabSection:`_tabSection_1x595_44`}}),ij=Ub.extend({classNames:{input:`_input_1lws5_1`,pill:`_pill_1lws5_6`},defaultProps:{splitChars:[`,`,` `,`|`]}}),aj=Xf.extend({classNames:{root:`_root_15h2k_1`},defaultProps:{size:`md`}}),oj=Hh.extend({classNames:{input:`_input_11t2a_1`},defaultProps:{autosize:!0,maxRows:5,minRows:2,resize:`vertical`}}),sj=ex.extend({classNames:{root:`_root_6pd11_1`}}),cj=gy.extend({classNames:{tooltip:`_tooltip_17xpf_1`},defaultProps:{multiline:!0,maw:300}}),lj=oO.extend({classNames:{day:`_day_u2w4x_1`,dayToday:`_dayToday_u2w4x_30`,month:`_month_u2w4x_35`,calendarHeaderLevel:`_calendarHeaderLevel_u2w4x_40`,calendarHeaderControl:`_calendarHeaderControl_u2w4x_45`,weekday:`_weekday_u2w4x_49`,yearsListControl:`_yearsListControl_u2w4x_54`},defaultProps:{...mA}}),uj=xO.extend({classNames:{day:`_day_u2w4x_1`,dayToday:`_dayToday_u2w4x_30`,month:`_month_u2w4x_35`,calendarHeaderLevel:`_calendarHeaderLevel_u2w4x_40`,calendarHeaderControl:`_calendarHeaderControl_u2w4x_45`,weekday:`_weekday_u2w4x_49`,yearsListControl:`_yearsListControl_u2w4x_54`},defaultProps:{...mA}}),dj=[`#F8F8FB`,`#EFEFF6`,`#DEDEED`,`#CACAE2`,`#B3B3D5`,`#9696C5`,`#7575B3`,`#414275`,`#35355F`,`#242442`,`#18182B`],fj=[`#FFF7F0`,`#FFEDDB`,`#FFDAB8`,`#FFC085`,`#FFA34D`,`#FF7A00`,`#E66F00`,`#C76000`,`#A85100`,`#7A3B00`,`#5C2C00`],pj=[`#EAF3FE`,`#DFEEFD`,`#BEDBFB`,`#2C8BF3`,`#287DDB`,`#236FC2`,`#2168B6`,`#1A5392`,`#143F6D`,`#0F3155`],mj=[`#FEF3E9`,`#FEEDDE`,`#FCD9BB`,`#F68623`,`#DD7920`,`#C56B1C`,`#B9651A`,`#C76000`,`#6F3C10`,`#562F0C`],hj=[`#FDEBEA`,`#FCE1DF`,`#F8C1BD`,`#EA3829`,`#D33225`,`#BB2D21`,`#B02A1F`,`#8C2219`,`#691912`,`#52140E`],gj=[`#E8F5EF`,`#DDF0E7`,`#B9E1CD`,`#1C9E5D`,`#198E54`,`#167E4A`,`#157746`,`#115F38`,`#0D472A`,`#0A3721`],_j={xs:V(10),sm:V(12),md:V(14),lg:V(16),xl:V(20)},vj={xs:V(12),sm:V(16),md:V(20),lg:V(24),xl:V(28)},yj={fontWeight:`500`,sizes:{h1:{fontSize:V(32),lineHeight:V(36)},h2:{fontSize:V(24),lineHeight:V(28)},h3:{fontSize:V(20),lineHeight:V(24)},h4:{fontSize:V(18),lineHeight:V(20)},h5:{fontSize:V(12),lineHeight:V(16)},h6:{fontSize:V(12),lineHeight:V(16)}}},bj=Object.entries(uA).reduce((e,[t,n])=>({...e,[t.toLowerCase()]:We(n)}),{});function xj(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Sj(e,t){let n={...e};for(let r of Object.keys(t)){let i=t[r],a=e[r];i!==void 0&&(xj(a)&&xj(i)?n[r]=Sj(a,i):n[r]=i)}return n}var Cj={"brand-dark-blue":dj,"brand-orange":fj,accent:fj,blue:pj,orange:mj,red:hj,green:gj},wj={Accordion:kO,ActionIcon:AO,Alert:jO,Anchor:MO,Avatar:NO,Badge:PO,Button:FO,Carousel:iA,Checkbox:cA,ColorSwatch:lA,Container:pA,DateInput:DO,DatePicker:gA,DatePickerInput:_A,Divider:vA,Drawer:bA,Grid:xA,Group:SA,Input:EA,InputPlaceholder:OA,InputWrapper:DA,Loader:kA,Menu:AA,Modal:jA,MonthPicker:MA,MonthPickerInput:NA,MultiSelect:PA,NavLink:FA,Notification:IA,NumberInput:LA,Paper:zA,Pagination:RA,PasswordInput:HA,Pill:UA,Popover:WA,Progress:GA,Radio:KA,RadioCard:qA,RadioIndicator:JA,SegmentedControl:YA,Select:QA,Stack:$A,Stepper:ej,Switch:tj,Table:nj,Tabs:rj,TagsInput:ij,Text:aj,Textarea:oj,Title:sj,Tooltip:cj,YearPicker:lj,YearPickerInput:uj};function Tj(e={}){let t={..._j,...e.fontSizes},n={...vj,...e.lineHeights},r=Sj(yj,e.headings??{}),i={...bj,...e.breakpoints},a={...Cj,...e.colors};return Vr({components:wj,cursorType:e.cursorType??`pointer`,defaultRadius:`sm`,primaryColor:e.primaryColor??`brand-dark-blue`,primaryShade:e.primaryShade??6,breakpoints:i,fontFamily:e.fontFamily??`Geist`,fontSizes:t,fontWeights:{medium:`500`},lineHeights:n,headings:r,black:e.black??`#000000`,white:e.white??`#FFFFFF`,colors:a})}var Ej=Tj();function Dj(e){let t=0,n=0,r=0;if(e.startsWith(`rgb`)){let i=e.match(/\d+/g);i&&i.length>=3&&([t,n,r]=i.slice(0,3).map(Number))}else if(e.startsWith(`#`)){let i=e.slice(1);i.length===3?(t=parseInt(i[0]+i[0],16),n=parseInt(i[1]+i[1],16),r=parseInt(i[2]+i[2],16)):i.length===6&&(t=parseInt(i.slice(0,2),16),n=parseInt(i.slice(2,4),16),r=parseInt(i.slice(4,6),16))}return t=Math.max(0,Math.min(255,t)),n=Math.max(0,Math.min(255,n)),r=Math.max(0,Math.min(255,r)),{r:t,g:n,b:r}}function Oj(e,t){let{r:n,g:r,b:i}=Dj(e),a=t/100;return`rgb(${Math.min(255,n+(255-n)*a)}, ${Math.min(255,r+(255-r)*a)}, ${Math.min(255,i+(255-i)*a)})`}function kj(e,t){let{r:n,g:r,b:i}=Dj(e),a=t/100;return`rgb(${Math.max(0,n-n*a)}, ${Math.max(0,r-r*a)}, ${Math.max(0,i-i*a)})`}function Aj(e){let{r:t,g:n,b:r}=Dj(e);return[`rgb(${t+50}, ${n+50}, ${r+50})`,`rgb(${t+40}, ${n+40}, ${r+40})`,`rgb(${t+30}, ${n+30}, ${r+30})`,`rgb(${t+20}, ${n+20}, ${r+20})`,`rgb(${t+10}, ${n+10}, ${r+10})`,e,`rgb(${t-10}, ${n-10}, ${r-10})`,`rgb(${t-20}, ${n-20}, ${r-20})`,`rgb(${t-30}, ${n-30}, ${r-30})`,`rgb(${t-40}, ${n-40}, ${r-40})`,`rgb(${t-50}, ${n-50}, ${r-50})`]}var jj=new vE(`useAccentColor`);function Mj(e){let t=(0,H.useMemo)(()=>{if(e)try{let t=Aj(e);if(t&&t.length===11)return Tj({colors:{accent:t},primaryColor:`accent`})}catch(e){jj.error(`Failed to create theme with accent color`,{error:e instanceof Error?e.message:String(e)})}return Ej},[e]);return(0,H.useEffect)(()=>{try{let t=document.documentElement,n=e||`#414275`,r=Oj(n,40),i=kj(n,15);t.style.setProperty(`--agent-accent-color`,n),t.style.setProperty(`--agent-accent-color-light`,Oj(n,40)),t.style.setProperty(`--agent-accent-color-dark`,i),t.style.setProperty(`--agent-accent-bg`,n),t.style.setProperty(`--agent-accent-bg-light`,r),t.style.setProperty(`--agent-accent-border`,n),t.style.setProperty(`--agent-accent-text`,`#ffffff`),t.style.setProperty(`--agent-accent-text-muted`,`rgba(255, 255, 255, 0.8)`)}catch(e){jj.error(`Failed to set accent color CSS properties`,{error:e instanceof Error?e.message:String(e)})}},[e]),t}var Nj=(0,H.createContext)(null),Pj=e=>{let t=(0,H.useContext)(Nj);if(process.env.NODE_ENV!==`production`&&t==null)throw Error(e??`useLingui hook was used without I18nProvider.`);return t};function Fj(){return Pj()}var Ij=({i18n:e,defaultComponent:t,children:n})=>{let r=(0,H.useRef)(e.locale),i=(0,H.useCallback)(()=>({i18n:e,defaultComponent:t,_:e.t.bind(e)}),[e,t]),[a,o]=(0,H.useState)(i());return(0,H.useEffect)(()=>{let t=()=>{r.current=e.locale,o(i())},n=e.on(`change`,t);return r.current!==e.locale&&t(),n},[e,i]),r.current?(0,U.jsx)(Nj.Provider,{value:a,children:n}):(process.env.NODE_ENV===`development`&&console.log("I18nProvider rendered `null`. A call to `i18n.activate` needs to happen in order for translations to be activated and for the I18nProvider to render.This is not an error but an informational message logged only in development."),null)},Lj=(0,H.createContext)(null),Rj=(0,H.createContext)({customerId:``,customerToken:``,language:`en`,forceReAuth:!1});function zj({runtime:e,children:t}){return(0,U.jsx)(Rj.Provider,{value:e,children:t})}function Bj({config:e,children:t}){return(0,U.jsx)(Lj.Provider,{value:e,children:t})}var Vj=(0,H.createContext)({keycloak:{url:``,realm:``,clientId:``},url:{app:``,api:``,apiPaths:{crm:``,uiAuthz:``}},features:{enableThemeManager:!0},growthBook:{apiHost:``,clientKey:``,enabled:!1}}),Hj=({children:e,config:t})=>(0,U.jsx)(Vj.Provider,{value:t,children:e});function Uj({children:e,appConfig:t,config:n,runtime:r,theme:i,rootElement:a}){let o=typeof document>`u`?void 0:document.documentElement,s=!!a?.shadowRoot,c=s?`:host`:`:root`,l=s?a??void 0:o;return(0,U.jsx)(Ij,{i18n:Fe,children:(0,U.jsx)(zr,{theme:i,cssVariablesSelector:c,getRootElement:()=>l,defaultColorScheme:`auto`,children:(0,U.jsx)(aS,{client:SE,children:(0,U.jsx)(Hj,{config:t,children:(0,U.jsx)(Bj,{config:n,children:(0,U.jsx)(zj,{runtime:r,children:e})})})})})})}var{entries:Wj,setPrototypeOf:Gj,isFrozen:Kj,getPrototypeOf:qj,getOwnPropertyDescriptor:Jj}=Object,{freeze:Yj,seal:Xj,create:Zj}=Object,{apply:Qj,construct:$j}=typeof Reflect<`u`&&Reflect;Yj||=function(e){return e},Xj||=function(e){return e},Qj||=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)},$j||=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)};var eM=mM(Array.prototype.forEach),tM=mM(Array.prototype.lastIndexOf),nM=mM(Array.prototype.pop),rM=mM(Array.prototype.push),iM=mM(Array.prototype.splice),aM=mM(String.prototype.toLowerCase),oM=mM(String.prototype.toString),sM=mM(String.prototype.match),cM=mM(String.prototype.replace),lM=mM(String.prototype.indexOf),uM=mM(String.prototype.trim),dM=mM(Object.prototype.hasOwnProperty),fM=mM(RegExp.prototype.test),pM=hM(TypeError);function mM(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Qj(e,t,r)}}function hM(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return $j(e,n)}}function gM(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:aM;Gj&&Gj(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Kj(t)||(t[r]=e),i=e)}e[i]=!0}return e}function _M(e){for(let t=0;t<e.length;t++)dM(e,t)||(e[t]=null);return e}function vM(e){let t=Zj(null);for(let[n,r]of Wj(e))dM(e,n)&&(Array.isArray(r)?t[n]=_M(r):r&&typeof r==`object`&&r.constructor===Object?t[n]=vM(r):t[n]=r);return t}function yM(e,t){for(;e!==null;){let n=Jj(e,t);if(n){if(n.get)return mM(n.get);if(typeof n.value==`function`)return mM(n.value)}e=qj(e)}function n(){return null}return n}var bM=Yj(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),xM=Yj(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),SM=Yj([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),CM=Yj([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),wM=Yj(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),TM=Yj([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),EM=Yj([`#text`]),DM=Yj(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot`.split(`.`)),OM=Yj(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),kM=Yj(`accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),AM=Yj([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),jM=Xj(/\{\{[\w\W]*|[\w\W]*\}\}/gm),MM=Xj(/<%[\w\W]*|[\w\W]*%>/gm),NM=Xj(/\$\{[\w\W]*/gm),PM=Xj(/^data-[\-\w.\u00B7-\uFFFF]+$/),FM=Xj(/^aria-[\-\w]+$/),IM=Xj(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),LM=Xj(/^(?:\w+script|data):/i),RM=Xj(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),zM=Xj(/^html$/i),BM=Xj(/^[a-z][.\w]*(-[.\w]+)+$/i),VM=Object.freeze({__proto__:null,ARIA_ATTR:FM,ATTR_WHITESPACE:RM,CUSTOM_ELEMENT:BM,DATA_ATTR:PM,DOCTYPE_NAME:zM,ERB_EXPR:MM,IS_ALLOWED_URI:IM,IS_SCRIPT_OR_DATA:LM,MUSTACHE_EXPR:jM,TMPLIT_EXPR:NM}),HM={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},UM=function(){return typeof window>`u`?null:window},WM=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},GM=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function KM(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:UM(),t=e=>KM(e);if(t.version=`3.3.3`,t.removed=[],!e||!e.document||e.document.nodeType!==HM.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:c,NodeFilter:l,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,m=c.prototype,h=yM(m,`cloneNode`),g=yM(m,`remove`),_=yM(m,`nextSibling`),v=yM(m,`childNodes`),y=yM(m,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let b,x=``,{implementation:S,createNodeIterator:C,createDocumentFragment:w,getElementsByTagName:T}=n,{importNode:E}=r,D=GM();t.isSupported=typeof Wj==`function`&&typeof y==`function`&&S&&S.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:O,ERB_EXPR:k,TMPLIT_EXPR:A,DATA_ATTR:j,ARIA_ATTR:M,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:P,CUSTOM_ELEMENT:ee}=VM,{IS_ALLOWED_URI:F}=VM,I=null,te=gM({},[...bM,...xM,...SM,...wM,...EM]),ne=null,re=gM({},[...DM,...OM,...kM,...AM]),ie=Object.seal(Zj(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),L=null,ae=null,oe=Object.seal(Zj(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),se=!0,ce=!0,le=!1,ue=!0,de=!1,fe=!0,R=!1,pe=!1,me=!1,he=!1,ge=!1,z=!1,_e=!0,ve=!1,B=!0,ye=!1,be={},xe=null,Se=gM({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),Ce=null,we=gM({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Te=null,Ee=gM({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),De=`http://www.w3.org/1998/Math/MathML`,Oe=`http://www.w3.org/2000/svg`,ke=`http://www.w3.org/1999/xhtml`,Ae=ke,je=!1,Me=null,Ne=gM({},[De,Oe,ke],oM),Pe=gM({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Fe=gM({},[`annotation-xml`]),Ie=gM({},[`title`,`style`,`font`,`a`,`script`]),Le=null,Re=[`application/xhtml+xml`,`text/html`],ze=null,Be=null,Ve=n.createElement(`form`),He=function(e){return e instanceof RegExp||e instanceof Function},Ue=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Be&&Be===e)){if((!e||typeof e!=`object`)&&(e={}),e=vM(e),Le=Re.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,ze=Le===`application/xhtml+xml`?oM:aM,I=dM(e,`ALLOWED_TAGS`)?gM({},e.ALLOWED_TAGS,ze):te,ne=dM(e,`ALLOWED_ATTR`)?gM({},e.ALLOWED_ATTR,ze):re,Me=dM(e,`ALLOWED_NAMESPACES`)?gM({},e.ALLOWED_NAMESPACES,oM):Ne,Te=dM(e,`ADD_URI_SAFE_ATTR`)?gM(vM(Ee),e.ADD_URI_SAFE_ATTR,ze):Ee,Ce=dM(e,`ADD_DATA_URI_TAGS`)?gM(vM(we),e.ADD_DATA_URI_TAGS,ze):we,xe=dM(e,`FORBID_CONTENTS`)?gM({},e.FORBID_CONTENTS,ze):Se,L=dM(e,`FORBID_TAGS`)?gM({},e.FORBID_TAGS,ze):vM({}),ae=dM(e,`FORBID_ATTR`)?gM({},e.FORBID_ATTR,ze):vM({}),be=dM(e,`USE_PROFILES`)?e.USE_PROFILES:!1,se=e.ALLOW_ARIA_ATTR!==!1,ce=e.ALLOW_DATA_ATTR!==!1,le=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ue=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,de=e.SAFE_FOR_TEMPLATES||!1,fe=e.SAFE_FOR_XML!==!1,R=e.WHOLE_DOCUMENT||!1,he=e.RETURN_DOM||!1,ge=e.RETURN_DOM_FRAGMENT||!1,z=e.RETURN_TRUSTED_TYPE||!1,me=e.FORCE_BODY||!1,_e=e.SANITIZE_DOM!==!1,ve=e.SANITIZE_NAMED_PROPS||!1,B=e.KEEP_CONTENT!==!1,ye=e.IN_PLACE||!1,F=e.ALLOWED_URI_REGEXP||IM,Ae=e.NAMESPACE||ke,Pe=e.MATHML_TEXT_INTEGRATION_POINTS||Pe,Fe=e.HTML_INTEGRATION_POINTS||Fe,ie=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&He(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ie.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&He(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ie.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(ie.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),de&&(ce=!1),ge&&(he=!0),be&&(I=gM({},EM),ne=Zj(null),be.html===!0&&(gM(I,bM),gM(ne,DM)),be.svg===!0&&(gM(I,xM),gM(ne,OM),gM(ne,AM)),be.svgFilters===!0&&(gM(I,SM),gM(ne,OM),gM(ne,AM)),be.mathMl===!0&&(gM(I,wM),gM(ne,kM),gM(ne,AM))),dM(e,`ADD_TAGS`)||(oe.tagCheck=null),dM(e,`ADD_ATTR`)||(oe.attributeCheck=null),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?oe.tagCheck=e.ADD_TAGS:(I===te&&(I=vM(I)),gM(I,e.ADD_TAGS,ze))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?oe.attributeCheck=e.ADD_ATTR:(ne===re&&(ne=vM(ne)),gM(ne,e.ADD_ATTR,ze))),e.ADD_URI_SAFE_ATTR&&gM(Te,e.ADD_URI_SAFE_ATTR,ze),e.FORBID_CONTENTS&&(xe===Se&&(xe=vM(xe)),gM(xe,e.FORBID_CONTENTS,ze)),e.ADD_FORBID_CONTENTS&&(xe===Se&&(xe=vM(xe)),gM(xe,e.ADD_FORBID_CONTENTS,ze)),B&&(I[`#text`]=!0),R&&gM(I,[`html`,`head`,`body`]),I.table&&(gM(I,[`tbody`]),delete L.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw pM(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw pM(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);b=e.TRUSTED_TYPES_POLICY,x=b.createHTML(``)}else b===void 0&&(b=WM(p,i)),b!==null&&typeof x==`string`&&(x=b.createHTML(``));Yj&&Yj(e),Be=e}},V=gM({},[...xM,...SM,...CM]),We=gM({},[...wM,...TM]),Ge=function(e){let t=y(e);(!t||!t.tagName)&&(t={namespaceURI:Ae,tagName:`template`});let n=aM(e.tagName),r=aM(t.tagName);return Me[e.namespaceURI]?e.namespaceURI===Oe?t.namespaceURI===ke?n===`svg`:t.namespaceURI===De?n===`svg`&&(r===`annotation-xml`||Pe[r]):!!V[n]:e.namespaceURI===De?t.namespaceURI===ke?n===`math`:t.namespaceURI===Oe?n===`math`&&Fe[r]:!!We[n]:e.namespaceURI===ke?t.namespaceURI===Oe&&!Fe[r]||t.namespaceURI===De&&!Pe[r]?!1:!We[n]&&(Ie[n]||!V[n]):!!(Le===`application/xhtml+xml`&&Me[e.namespaceURI]):!1},Ke=function(e){rM(t.removed,{element:e});try{y(e).removeChild(e)}catch{g(e)}},H=function(e,n){try{rM(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{rM(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(he||ge)try{Ke(n)}catch{}else try{n.setAttribute(e,``)}catch{}},qe=function(e){let t=null,r=null;if(me)e=`<remove></remove>`+e;else{let t=sM(e,/^[\r\n\t ]+/);r=t&&t[0]}Le===`application/xhtml+xml`&&Ae===ke&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=b?b.createHTML(e):e;if(Ae===ke)try{t=new f().parseFromString(i,Le)}catch{}if(!t||!t.documentElement){t=S.createDocument(Ae,`template`,null);try{t.documentElement.innerHTML=je?x:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Ae===ke?T.call(t,R?`html`:`body`)[0]:R?t.documentElement:a},Je=function(e){return C.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Ye=function(e){return e instanceof d&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof u)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},Xe=function(e){return typeof s==`function`&&e instanceof s};function Ze(e,n,r){eM(e,e=>{e.call(t,n,r,Be)})}let Qe=function(e){let n=null;if(Ze(D.beforeSanitizeElements,e,null),Ye(e))return Ke(e),!0;let r=ze(e.nodeName);if(Ze(D.uponSanitizeElement,e,{tagName:r,allowedTags:I}),fe&&e.hasChildNodes()&&!Xe(e.firstElementChild)&&fM(/<[/\w!]/g,e.innerHTML)&&fM(/<[/\w!]/g,e.textContent)||e.nodeType===HM.progressingInstruction||fe&&e.nodeType===HM.comment&&fM(/<[/\w]/g,e.data))return Ke(e),!0;if(!(oe.tagCheck instanceof Function&&oe.tagCheck(r))&&(!I[r]||L[r])){if(!L[r]&&et(r)&&(ie.tagNameCheck instanceof RegExp&&fM(ie.tagNameCheck,r)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(r)))return!1;if(B&&!xe[r]){let t=y(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=h(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,_(e))}}}return Ke(e),!0}return e instanceof c&&!Ge(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&fM(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ke(e),!0):(de&&e.nodeType===HM.text&&(n=e.textContent,eM([O,k,A],e=>{n=cM(n,e,` `)}),e.textContent!==n&&(rM(t.removed,{element:e.cloneNode()}),e.textContent=n)),Ze(D.afterSanitizeElements,e,null),!1)},$e=function(e,t,r){if(ae[t]||_e&&(t===`id`||t===`name`)&&(r in n||r in Ve))return!1;if(!(ce&&!ae[t]&&fM(j,t))&&!(se&&fM(M,t))&&!(oe.attributeCheck instanceof Function&&oe.attributeCheck(t,e))){if(!ne[t]||ae[t]){if(!(et(e)&&(ie.tagNameCheck instanceof RegExp&&fM(ie.tagNameCheck,e)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(e))&&(ie.attributeNameCheck instanceof RegExp&&fM(ie.attributeNameCheck,t)||ie.attributeNameCheck instanceof Function&&ie.attributeNameCheck(t,e))||t===`is`&&ie.allowCustomizedBuiltInElements&&(ie.tagNameCheck instanceof RegExp&&fM(ie.tagNameCheck,r)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(r))))return!1}else if(!Te[t]&&!fM(F,cM(r,P,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&lM(r,`data:`)===0&&Ce[e])&&!(le&&!fM(N,cM(r,P,``)))&&r)return!1}return!0},et=function(e){return e!==`annotation-xml`&&sM(e,ee)},tt=function(e){Ze(D.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||Ye(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=ze(a),l=s,u=a===`value`?l:uM(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,Ze(D.uponSanitizeAttribute,e,r),u=r.attrValue,ve&&(c===`id`||c===`name`)&&(H(a,e),u=`user-content-`+u),fe&&fM(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){H(a,e);continue}if(c===`attributename`&&sM(u,`href`)){H(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){H(a,e);continue}if(!ue&&fM(/\/>/i,u)){H(a,e);continue}de&&eM([O,k,A],e=>{u=cM(u,e,` `)});let d=ze(e.nodeName);if(!$e(d,c,u)){H(a,e);continue}if(b&&typeof p==`object`&&typeof p.getAttributeType==`function`&&!o)switch(p.getAttributeType(d,c)){case`TrustedHTML`:u=b.createHTML(u);break;case`TrustedScriptURL`:u=b.createScriptURL(u);break}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),Ye(e)?Ke(e):nM(t.removed)}catch{H(a,e)}}Ze(D.afterSanitizeAttributes,e,null)},nt=function e(t){let n=null,r=Je(t);for(Ze(D.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Ze(D.uponSanitizeShadowNode,n,null),Qe(n),tt(n),n.content instanceof a&&e(n.content);Ze(D.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(je=!e,je&&(e=`<!-->`),typeof e!=`string`&&!Xe(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw pM(`dirty is not a string, aborting`)}else throw pM(`toString is not a function`);if(!t.isSupported)return e;if(pe||Ue(n),t.removed=[],typeof e==`string`&&(ye=!1),ye){if(e.nodeName){let t=ze(e.nodeName);if(!I[t]||L[t])throw pM(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof s)i=qe(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===HM.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o);else{if(!he&&!de&&!R&&e.indexOf(`<`)===-1)return b&&z?b.createHTML(e):e;if(i=qe(e),!i)return he?null:z?x:``}i&&me&&Ke(i.firstChild);let u=Je(ye?e:i);for(;c=u.nextNode();)Qe(c),tt(c),c.content instanceof a&&nt(c.content);if(ye)return e;if(he){if(ge)for(l=w.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(ne.shadowroot||ne.shadowrootmode)&&(l=E.call(r,l,!0)),l}let d=R?i.outerHTML:i.innerHTML;return R&&I[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&fM(zM,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
320
- `+d),de&&eM([O,k,A],e=>{d=cM(d,e,` `)}),b&&z?b.createHTML(d):d},t.setConfig=function(){Ue(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),pe=!0},t.clearConfig=function(){Be=null,pe=!1},t.isValidAttribute=function(e,t,n){return Be||Ue({}),$e(ze(e),ze(t),n)},t.addHook=function(e,t){typeof t==`function`&&rM(D[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=tM(D[e],t);return n===-1?void 0:iM(D[e],n,1)[0]}return nM(D[e])},t.removeHooks=function(e){D[e]=[]},t.removeAllHooks=function(){D=GM()},t}var qM=KM(),JM=[`script`,`style`,`iframe`,`object`,`embed`,`link`,`meta`,`base`,`form`,`input`,`button`,`textarea`,`select`],YM=[`style`,`srcdoc`];function XM(e){return e?qM.sanitize(e,{USE_PROFILES:{html:!0},FORBID_TAGS:JM,FORBID_ATTR:YM,ALLOW_DATA_ATTR:!1,ALLOW_UNKNOWN_PROTOCOLS:!1}):``}function ZM({html:e,fallback:t=null,...n}){let r=(0,H.useMemo)(()=>XM(e??``),[e]);return r?(0,U.jsx)(q,{...n,dangerouslySetInnerHTML:{__html:r}}):(0,U.jsx)(U.Fragment,{children:t})}function QM(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var $M=QM();function eN(e){$M=e}var tN={exec:()=>null};function nN(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(iN.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var rN=(()=>{try{return!0}catch{return!1}})(),iN={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`),blockquoteBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}>`)},aN=/^(?:[ \t]*(?:\n|$))+/,oN=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,sN=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,cN=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,lN=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,uN=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,dN=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,fN=nN(dN).replace(/bull/g,uN).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),pN=nN(dN).replace(/bull/g,uN).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),mN=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,hN=/^[^\n]+/,gN=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,_N=nN(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,gN).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),vN=nN(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,uN).getRegex(),yN=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,bN=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,xN=nN(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,bN).replace(`tag`,yN).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),SN=nN(mN).replace(`hr`,cN).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,yN).getRegex(),CN={blockquote:nN(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,SN).getRegex(),code:oN,def:_N,fences:sN,heading:lN,hr:cN,html:xN,lheading:fN,list:vN,newline:aN,paragraph:SN,table:tN,text:hN},wN=nN(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,cN).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,yN).getRegex(),TN={...CN,lheading:pN,table:wN,paragraph:nN(mN).replace(`hr`,cN).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,wN).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,yN).getRegex()},EN={...CN,html:nN(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,bN).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:tN,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:nN(mN).replace(`hr`,cN).replace(`heading`,` *#{1,6} *[^
321
- ]`).replace(`lheading`,fN).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},DN=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ON=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,kN=/^( {2,}|\\)\n(?!\s*$)/,AN=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,jN=/[\p{P}\p{S}]/u,MN=/[\s\p{P}\p{S}]/u,NN=/[^\s\p{P}\p{S}]/u,PN=nN(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,MN).getRegex(),FN=/(?!~)[\p{P}\p{S}]/u,IN=/(?!~)[\s\p{P}\p{S}]/u,LN=/(?:[^\s\p{P}\p{S}]|~)/u,RN=/(?![*_])[\p{P}\p{S}]/u,zN=/(?![*_])[\s\p{P}\p{S}]/u,BN=/(?:[^\s\p{P}\p{S}]|[*_])/u,VN=nN(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,rN?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),HN=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,UN=nN(HN,`u`).replace(/punct/g,jN).getRegex(),WN=nN(HN,`u`).replace(/punct/g,FN).getRegex(),GN=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,KN=nN(GN,`gu`).replace(/notPunctSpace/g,NN).replace(/punctSpace/g,MN).replace(/punct/g,jN).getRegex(),qN=nN(GN,`gu`).replace(/notPunctSpace/g,LN).replace(/punctSpace/g,IN).replace(/punct/g,FN).getRegex(),JN=nN(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,NN).replace(/punctSpace/g,MN).replace(/punct/g,jN).getRegex(),YN=nN(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,RN).getRegex(),XN=nN(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,BN).replace(/punctSpace/g,zN).replace(/punct/g,RN).getRegex(),ZN=nN(/\\(punct)/,`gu`).replace(/punct/g,jN).getRegex(),QN=nN(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),$N=nN(bN).replace(`(?:-->|$)`,`-->`).getRegex(),eP=nN(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,$N).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),tP=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,nP=nN(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,tP).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),rP=nN(/^!?\[(label)\]\[(ref)\]/).replace(`label`,tP).replace(`ref`,gN).getRegex(),iP=nN(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,gN).getRegex(),aP=nN(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,rP).replace(`nolink`,iP).getRegex(),oP=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,sP={_backpedal:tN,anyPunctuation:ZN,autolink:QN,blockSkip:VN,br:kN,code:ON,del:tN,delLDelim:tN,delRDelim:tN,emStrongLDelim:UN,emStrongRDelimAst:KN,emStrongRDelimUnd:JN,escape:DN,link:nP,nolink:iP,punctuation:PN,reflink:rP,reflinkSearch:aP,tag:eP,text:AN,url:tN},cP={...sP,link:nN(/^!?\[(label)\]\((.*?)\)/).replace(`label`,tP).getRegex(),reflink:nN(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,tP).getRegex()},lP={...sP,emStrongRDelimAst:qN,emStrongLDelim:WN,delLDelim:YN,delRDelim:XN,url:nN(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,oP).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:nN(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,oP).getRegex()},uP={...lP,br:nN(kN).replace(`{2,}`,`*`).getRegex(),text:nN(lP.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},dP={normal:CN,gfm:TN,pedantic:EN},fP={normal:sP,gfm:lP,breaks:uP,pedantic:cP},pP={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},mP=e=>pP[e];function hP(e,t){if(t){if(iN.escapeTest.test(e))return e.replace(iN.escapeReplace,mP)}else if(iN.escapeTestNoEncode.test(e))return e.replace(iN.escapeReplaceNoEncode,mP);return e}function gP(e){try{e=encodeURI(e).replace(iN.percentDecode,`%`)}catch{return null}return e}function _P(e,t){let n=e.replace(iN.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(iN.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(iN.slashPipe,`|`);return n}function vP(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function yP(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function bP(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function xP(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function SP(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
314
+ `),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function k_(e){e=O_(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,i=e.onKeyDown;i===void 0&&(i=Wg);var a=e.onBlur;a===void 0&&(a=Wg);var o=e.thousandSeparator,s=e.decimalScale,c=e.fixedDecimalScale,l=e.prefix;l===void 0&&(l=``);var u=e.defaultValue,d=e.value,f=e.valueIsNumericString,p=e.onValueChange,m=Hg(e,[`decimalSeparator`,`allowedDecimalSeparators`,`thousandsGroupStyle`,`suffix`,`allowNegative`,`allowLeadingZeros`,`onKeyDown`,`onBlur`,`thousandSeparator`,`decimalScale`,`fixedDecimalScale`,`prefix`,`defaultValue`,`value`,`valueIsNumericString`,`onValueChange`]),h=S_(e),g=h.decimalSeparator,_=h.allowedDecimalSeparators,v=function(t){return x_(t,e)},y=function(t,n){return E_(t,n,e)},b=qg(d)?u:d,x=f??T_(b,l,t);qg(d)?qg(u)||(x||=typeof u==`number`):x||=typeof d==`number`;var S=function(e){return Yg(e)?e:(typeof e==`number`&&(e=i_(e)),x&&typeof s==`number`?a_(e,s,!!c):e)},C=__(S(d),S(u),!!x,v,y,p),w=C[0],T=w.numAsString,E=w.formattedValue,D=C[1];return Object.assign(Object.assign({},m),{value:E,valueIsNumericString:!1,isValidInputCharacter:function(e){return e===g?!0:Kg(e)},isCharacterSame:function(e){var t=e.currentValue,n=e.lastValue,r=e.formattedValue,i=e.currentValueIndex,a=e.formattedValueIndex,o=t[i],u=r[a],f=s_(n,t).to,p=function(e){return y(e).indexOf(`.`)+l.length};return d===0&&c&&s&&t[f.start]===g&&p(t)<i&&p(r)>a?!1:i>=f.start&&i<f.end&&_&&_.includes(o)&&u===g?!0:o===u},onValueChange:D,format:v,removeFormatting:y,getCaretBoundary:function(t){return D_(t,e)},onKeyDown:function(e){var t=e.target,r=e.key,a=t.selectionStart,u=t.selectionEnd,d=t.value;if(d===void 0&&(d=``),(r===`Backspace`||r===`Delete`)&&u<l.length&&d!==`-`){e.preventDefault();return}if(a!==u){i(e);return}r===`Backspace`&&d[0]===`-`&&a===l.length+1&&n&&o_(t,1),s&&c&&(r===`Backspace`&&d[a-1]===g?(o_(t,a-1),e.preventDefault()):r===`Delete`&&d[a]===g&&e.preventDefault()),_?.includes(r)&&d[a]===g&&o_(t,a+1);var f=o===!0?`,`:o;r===`Backspace`&&d[a-1]===f&&o_(t,a-1),r===`Delete`&&d[a]===f&&o_(t,a+1),i(e)},onBlur:function(t){var n=T;n.match(/\d/g)||(n=``),r||(n=t_(n)),c&&s&&(n=a_(n,s,c)),n!==T&&D({formattedValue:x_(n,e),value:n,floatValue:parseFloat(n)},{event:t,source:Ug.event}),a(t)}})}function A_(e){var t=k_(e);return H.createElement(b_,Object.assign({},t))}function j_({direction:e,style:t,...n}){return(0,U.jsx)(`svg`,{style:{width:`var(--ni-chevron-size)`,height:`var(--ni-chevron-size)`,transform:e===`up`?`rotate(180deg)`:void 0,...t},viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...n,children:(0,U.jsx)(`path`,{d:`M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}var M_={root:`m_e2f5cd4e`,controls:`m_95e17d22`,control:`m_80b4b171`},N_=/^(0\.0*|-0(\.0*)?)$/,P_=/^-?0\d+(\.\d+)?\.?$/,F_=/\.\d*0$/,I_=/^-?\d+\.$/;function L_(e){return typeof e==`string`&&e!==``&&!Number.isNaN(Number(e))}function R_(e){return typeof e==`bigint`}function z_(e){return typeof e==`number`?e<2**53-1:e===``||L_(e)&&Number(e)<2**53-1}function B_(e,t){return e===``||e===`-`||!t&&e.startsWith(`-`)?!1:/^-?\d+$/.test(e)}function V_(e,t){return typeof e==`bigint`?!0:e===``||B_(e,t)}function H_(e){if(!/^-?\d+$/.test(e))return null;try{return BigInt(e)}catch{return null}}function U_(e){if(typeof e==`bigint`)return e;if(typeof e==`number`&&Number.isFinite(e)&&Number.isInteger(e))return BigInt(e)}function W_(e,t,n){return t!==void 0&&e<t?t:n!==void 0&&e>n?n:e}function G_(e){return e.toString().replace(`.`,``).length}function K_(e,t){return(typeof e==`number`?e<2**53-1:!Number.isNaN(Number(e)))&&!Number.isNaN(e)&&G_(t)<14&&t!==``}function q_(e,t,n){return e===void 0?!0:(t===void 0||e>=t)&&(n===void 0||e<=n)}var J_={size:`sm`,step:1,clampBehavior:`blur`,allowDecimal:!0,allowNegative:!0,withKeyboardEvents:!0,allowLeadingZeros:!0,trimLeadingZeroesOnBlur:!0,startValue:0,allowedDecimalSeparators:[`.`,`,`]},Y_=Cn((e,{size:t})=>({controls:{"--ni-chevron-size":at(t,`ni-chevron-size`)}}));function X_(e,t,n){let r=e.toString(),i=I_.test(r),a=r.replace(/^0+(?=\d)/,``),o=parseFloat(a);if(Number.isNaN(o))return a;if(o>2**53-1)return t===void 0?a:t;let s=gt(o,n,t);return i?`${s.toString().replace(/^0+(?=\d)/,``)}.`:s}function Z_(e,t){if(e===``||e===`-`)return e;let n=H_(e);return n===null?e:t.clampBehavior===`blur`?W_(n,t.min,t.max):n}var Q_=Li(e=>{let t=W(`NumberInput`,J_,e),{className:n,classNames:r,styles:i,unstyled:a,vars:o,onChange:s,onValueChange:c,value:l,defaultValue:u,max:d,min:f,step:p,hideControls:m,rightSection:h,isAllowed:g,clampBehavior:_,onBlur:v,allowDecimal:y,decimalScale:b,onKeyDown:x,onKeyDownCapture:S,handlersRef:C,startValue:w,disabled:T,rightSectionPointerEvents:E,allowNegative:D,readOnly:O,size:k,rightSectionWidth:A,stepHoldInterval:j,stepHoldDelay:M,allowLeadingZeros:N,withKeyboardEvents:P,trimLeadingZeroesOnBlur:ee,allowedDecimalSeparators:F,selectAllOnFocus:I,onMinReached:te,onMaxReached:ne,onFocus:re,attributes:ie,ref:L,...ae}=t,oe=D??!0,se=N??!0,ce=G({name:`NumberInput`,classes:M_,props:t,classNames:r,styles:i,unstyled:a,attributes:ie,vars:o,varsResolver:Y_}),{resolvedClassNames:le,resolvedStyles:ue}=Ur({classNames:r,styles:i,props:t}),de=(0,H.useRef)(R_(l)||R_(u)?`bigint`:`number`);R_(l)?de.current=`bigint`:typeof l==`number`&&(de.current=`number`);let fe=de.current===`bigint`,[R,pe]=Yt({value:l,defaultValue:u,finalValue:``,onChange:s}),me=M!==void 0&&j!==void 0,he=(0,H.useRef)(null),ge=(0,H.useRef)(null),z=(0,H.useRef)(0),_e=typeof f==`number`?f:void 0,ve=typeof d==`number`?d:void 0,B=typeof p==`number`?p:J_.step,ye=typeof w==`number`?w:J_.startValue,be=U_(f),xe=U_(d),Se=U_(p)??BigInt(1),Ce=U_(w)??BigInt(0),we=e=>!B_(e,oe)||se&&P_.test(e)?e:H_(e)??e,Te=e=>{let t=Number(e);return Number.isSafeInteger(t)?t:void 0},Ee=(e,t)=>{t.source===`event`&&pe(fe?we(e.value):K_(e.floatValue,e.value)&&!N_.test(e.value)&&!(se&&P_.test(e.value))&&!F_.test(e.value)&&!I_.test(e.value)?e.floatValue:e.value),c?.(e,t)},De=e=>{let t=String(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},Oe=e=>{he.current&&e!==void 0&&he.current.setSelectionRange(e,e)},ke=(0,H.useRef)(rt);ke.current=()=>{if(fe){if(!V_(R,oe))return;let e,t=R;if(typeof t==`bigint`){let n=t+Se;xe!==void 0&&n>xe&&ne?.(),e=xe!==void 0&&n>xe?xe:n}else if(typeof t==`string`&&t!==``){let n=H_(t);if(n===null)return;let r=n+Se;xe!==void 0&&r>xe&&ne?.(),e=xe!==void 0&&r>xe?xe:r}else e=W_(Ce,be,xe);let n=e.toString();pe(e),c?.({floatValue:Te(e),formattedValue:n,value:n},{source:`increment`}),setTimeout(()=>Oe(he.current?.value.length),0);return}if(!z_(R))return;let e,t=De(R),n=De(B),r=Math.max(t,n),i=10**r;if(!L_(R)&&(typeof R!=`number`||Number.isNaN(R)))e=gt(ye,_e,ve);else if(ve!==void 0){let t=(Math.round(Number(R)*i)+Math.round(B*i))/i;t>ve&&ne?.(),e=t<=ve?t:ve}else e=(Math.round(Number(R)*i)+Math.round(B*i))/i;let a=e.toFixed(r);pe(parseFloat(a)),c?.({floatValue:parseFloat(a),formattedValue:a,value:a},{source:`increment`}),setTimeout(()=>Oe(he.current?.value.length),0)};let Ae=(0,H.useRef)(rt);Ae.current=()=>{if(fe){if(!V_(R,oe))return;let e,t=be===void 0?oe?void 0:BigInt(0):be,n=R;if(typeof n==`bigint`){let r=n-Se;t!==void 0&&r<t&&te?.(),e=t!==void 0&&r<t?t:r}else if(typeof n==`string`&&n!==``){let r=H_(n);if(r===null)return;let i=r-Se;t!==void 0&&i<t&&te?.(),e=t!==void 0&&i<t?t:i}else e=W_(Ce,t,xe);let r=e.toString();pe(e),c?.({floatValue:Te(e),formattedValue:r,value:r},{source:`decrement`}),setTimeout(()=>Oe(he.current?.value.length),0);return}if(!z_(R))return;let e,t=_e===void 0?oe?-(2**53-1):0:_e,n=De(R),r=De(B),i=Math.max(n,r),a=10**i;if(!L_(R)&&typeof R!=`number`||Number.isNaN(R))e=gt(ye,t,ve);else{let n=(Math.round(Number(R)*a)-Math.round(B*a))/a;t!==void 0&&n<t&&te?.(),e=t!==void 0&&n<t?t:n}let o=e.toFixed(i);pe(parseFloat(o)),c?.({floatValue:parseFloat(o),formattedValue:o,value:o},{source:`decrement`}),setTimeout(()=>Oe(he.current?.value.length),0)};let je=e=>{let t=e.clipboardData.getData(`text`),n=ae.decimalSeparator||`.`,r=(F||[`.`,`,`]).filter(e=>e!==n);if(r.some(e=>t.includes(e))){e.preventDefault();let i=t;r.forEach(e=>{i=i.split(e).join(n)});let a=he.current;if(a){let e=a.selectionStart??0,t=a.selectionEnd??0,n=a.value,r=n.substring(0,e)+i+n.substring(t);(Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,`value`)?.set)?.call(a,r),a.dispatchEvent(new Event(`change`,{bubbles:!0}));let o=e+i.length;setTimeout(()=>Oe(o),0)}}ae.onPaste?.(e)},Me=e=>{x?.(e),!(O||!P)&&(e.key===`ArrowUp`&&(e.preventDefault(),ke.current?.()),e.key===`ArrowDown`&&(e.preventDefault(),Ae.current?.()))},Ne=e=>{if(S?.(e),e.key===`Backspace`){let t=he.current;t&&t.selectionStart===0&&t.selectionStart===t.selectionEnd&&(e.preventDefault(),window.setTimeout(()=>Oe(0),0))}},Pe=e=>{I&&setTimeout(()=>e.currentTarget.select(),0),re?.(e)},Fe=e=>{let t=R;fe?(_===`blur`&&typeof t==`bigint`&&(t=W_(t,be,xe)),ee&&typeof t==`string`&&(t=Z_(t,{min:be,max:xe,clampBehavior:_}))):(_===`blur`&&typeof t==`number`&&(t=gt(t,_e,ve)),ee&&typeof t==`string`&&De(t)<15&&(t=X_(t,ve,_e))),R!==t&&pe(t),v?.(e)};Kt(C,{increment:ke.current,decrement:Ae.current});let Ie=e=>{e?ke.current?.():Ae.current?.(),z.current+=1},Le=e=>{if(Ie(e),me){let t=typeof j==`number`?j:j(z.current);ge.current=window.setTimeout(()=>Le(e),t)}},Re=(e,t)=>{e.preventDefault(),he.current?.focus(),Ie(t),me&&(ge.current=window.setTimeout(()=>Le(t),M))},ze=()=>{ge.current&&window.clearTimeout(ge.current),ge.current=null,z.current=0},Be=(0,U.jsxs)(`div`,{...ce(`controls`),children:[(0,U.jsx)(dl,{...ce(`control`),tabIndex:-1,"aria-hidden":!0,disabled:T||typeof R==`number`&&ve!==void 0&&R>=ve||typeof R==`bigint`&&xe!==void 0&&R>=xe,mod:{direction:`up`},onMouseDown:e=>e.preventDefault(),onPointerDown:e=>{Re(e,!0)},onPointerUp:ze,onPointerLeave:ze,children:(0,U.jsx)(j_,{direction:`up`})}),(0,U.jsx)(dl,{...ce(`control`),tabIndex:-1,"aria-hidden":!0,disabled:T||typeof R==`number`&&_e!==void 0&&R<=_e||typeof R==`bigint`&&be!==void 0&&R<=be,mod:{direction:`down`},onMouseDown:e=>e.preventDefault(),onPointerDown:e=>{Re(e,!1)},onPointerUp:ze,onPointerLeave:ze,children:(0,U.jsx)(j_,{direction:`down`})})]});return(0,U.jsx)(Cf,{component:A_,allowNegative:D,className:Tn(M_.root,n),size:k,...ae,inputMode:fe?`numeric`:`decimal`,readOnly:O,disabled:T,value:typeof R==`bigint`?R.toString():R,getInputRef:Jt(L,he),onValueChange:Ee,rightSection:m||O||!(fe?V_(R,oe):z_(R))?h:h||Be,classNames:le,styles:ue,unstyled:a,__staticSelector:`NumberInput`,decimalScale:fe?0:y?b:0,onPaste:je,onFocus:Pe,onKeyDown:Me,onKeyDownCapture:Ne,rightSectionPointerEvents:E??(T?`none`:void 0),rightSectionWidth:A??`var(--ni-right-section-width-${k||`sm`})`,allowLeadingZeros:N,allowedDecimalSeparators:F,onBlur:Fe,attributes:ie,isAllowed:e=>{if(!(!g||g(e)))return!1;if(_!==`strict`)return!0;if(!fe)return q_(e.floatValue,_e,ve);if(e.value===``||e.value===`-`)return!0;let t=H_(e.value);return t===null?!0:(be===void 0||t>=be)&&(xe===void 0||t<=xe)}})});Q_.classes={...Cf.classes,...M_},Q_.varsResolver=Y_,Q_.displayName=`@mantine/core/NumberInput`;var[$_,ev]=Je(`Pagination.Root component was not found in tree`),tv={root:`m_4addd315`,control:`m_326d024a`,dots:`m_4ad7767d`},nv={withPadding:!0},rv=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,active:o,disabled:s,withPadding:c,mod:l,...u}=W(`PaginationControl`,nv,e),d=ev(),f=s||d.disabled;return(0,U.jsx)(dl,{disabled:f,mod:[{active:o,disabled:f,"with-padding":c},l],...d.getStyles(`control`,{className:n,style:r,classNames:t,styles:i,active:!f}),...u})});rv.classes=tv,rv.displayName=`@mantine/core/PaginationControl`;function iv({style:e,children:t,path:n,...r}){return(0,U.jsx)(`svg`,{viewBox:`0 0 16 16`,xmlns:`http://www.w3.org/2000/svg`,style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`,...e},...r,children:(0,U.jsx)(`path`,{d:n,fill:`currentColor`})})}var av=e=>(0,U.jsx)(iv,{...e,path:`M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z`}),ov=e=>(0,U.jsx)(iv,{...e,path:`M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z`}),sv=e=>(0,U.jsx)(iv,{...e,path:`M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z`}),cv=e=>(0,U.jsx)(iv,{...e,path:`M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z`}),lv={icon:e=>(0,U.jsx)(iv,{...e,path:`M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z`})},uv=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,icon:o,...s}=W(`PaginationDots`,lv,e);return(0,U.jsx)(q,{...ev().getStyles(`dots`,{className:n,style:r,styles:i,classNames:t}),...s,children:(0,U.jsx)(o,{style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`}})})});uv.classes=tv,uv.displayName=`@mantine/core/PaginationDots`;function dv({icon:e,name:t,action:n,type:r}){let i={icon:e},a=e=>{let{icon:a,...o}=W(t,i,e),s=ev(),c=r===`next`?s.active===s.total:s.active===1;return(0,U.jsx)(rv,{disabled:s.disabled||c,onClick:s[n],withPadding:!1,...o,children:(0,U.jsx)(a,{className:`mantine-rotate-rtl`,style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`}})})};return a.displayName=`@mantine/core/${t}`,Fi(a)}var fv=dv({icon:av,name:`PaginationNext`,action:`onNext`,type:`next`}),pv=dv({icon:ov,name:`PaginationPrevious`,action:`onPrevious`,type:`previous`}),mv=dv({icon:sv,name:`PaginationFirst`,action:`onFirst`,type:`previous`}),hv=dv({icon:cv,name:`PaginationLast`,action:`onLast`,type:`next`});function gv({dotsIcon:e}){let t=ev();return(0,U.jsx)(U.Fragment,{children:t.range.map((n,r)=>n===`dots`?(0,U.jsx)(uv,{icon:e},r):(0,U.jsx)(rv,{active:n===t.active,"aria-current":n===t.active?`page`:void 0,onClick:()=>t.onChange(n),disabled:t.disabled,...t.getItemProps?.(n),children:t.getItemProps?.(n)?.children??n},r))})}gv.displayName=`@mantine/core/PaginationItems`;var _v={siblings:1,boundaries:1},vv=Cn((e,{size:t,radius:n,color:r,autoContrast:i})=>({root:{"--pagination-control-radius":n===void 0?void 0:st(n),"--pagination-control-size":at(t,`pagination-control-size`),"--pagination-control-fz":ct(t),"--pagination-active-bg":r?Un(r,e):void 0,"--pagination-active-color":Zn(i,e)?Yn({color:r,theme:e,autoContrast:i}):void 0}})),yv=K(e=>{let t=W(`PaginationRoot`,_v,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,total:c,value:l,defaultValue:u,onChange:d,disabled:f,siblings:p,boundaries:m,color:h,radius:g,onNextPage:_,onPreviousPage:v,onFirstPage:y,onLastPage:b,getItemProps:x,autoContrast:S,startValue:C,attributes:w,...T}=t,E=G({name:`Pagination`,classes:tv,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:w,vars:s,varsResolver:vv}),{range:D,setPage:O,next:k,previous:A,active:j,first:M,last:N}=Qt({page:l,initialPage:u,onChange:d,total:c,siblings:p,boundaries:m,startValue:C});return(0,U.jsx)($_,{value:{total:c,range:D,active:j,disabled:f,getItemProps:x,onChange:O,onNext:dt(_,k),onPrevious:dt(v,A),onFirst:dt(y,M),onLast:dt(b,N),getStyles:E},children:(0,U.jsx)(q,{...E(`root`),...T})})});yv.classes=tv,yv.varsResolver=vv,yv.displayName=`@mantine/core/PaginationRoot`;var bv={withControls:!0,withPages:!0,siblings:1,boundaries:1,gap:8},xv=K(e=>{let{withEdges:t,withControls:n,getControlProps:r,nextIcon:i,previousIcon:a,lastIcon:o,firstIcon:s,dotsIcon:c,total:l,gap:u,hideWithOnePage:d,withPages:f,...p}=W(`Pagination`,bv,e);return l<=0||d&&l===1?null:(0,U.jsx)(yv,{total:l,...p,children:(0,U.jsxs)(Eu,{gap:u,children:[t&&(0,U.jsx)(mv,{icon:s,...r?.(`first`)}),n&&(0,U.jsx)(pv,{icon:a,...r?.(`previous`)}),f&&(0,U.jsx)(gv,{dotsIcon:c}),n&&(0,U.jsx)(fv,{icon:i,...r?.(`next`)}),t&&(0,U.jsx)(hv,{icon:o,...r?.(`last`)})]})})});xv.classes=tv,xv.displayName=`@mantine/core/Pagination`,xv.Root=yv,xv.Control=rv,xv.Dots=uv,xv.First=mv,xv.Last=hv,xv.Next=fv,xv.Previous=pv,xv.Items=gv;function Sv({reveal:e}){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,style:{width:`var(--psi-icon-size)`,height:`var(--psi-icon-size)`},children:e?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{fill:`none`,d:`M0 0h256v256H0z`}),(0,U.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`16`,d:`M48 40l160 176M154.91 157.6a40 40 0 01-53.82-59.2M135.53 88.71a40 40 0 0132.3 35.53`}),(0,U.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`16`,d:`M208.61 169.1C230.41 149.58 240 128 240 128s-32-72-112-72a126 126 0 00-20.68 1.68M74 68.6C33.23 89.24 16 128 16 128s32 72 112 72a118.05 118.05 0 0054-12.6`})]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{fill:`none`,d:`M0 0h256v256H0z`}),(0,U.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`16`,d:`M128 56c-80 0-112 72-112 72s32 72 112 72 112-72 112-72-32-72-112-72z`}),(0,U.jsx)(`circle`,{cx:`128`,cy:`128`,r:`40`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`16`})]})})}var Cv={root:`m_f61ca620`,input:`m_ccf8da4c`,innerInput:`m_f2d85dd2`,visibilityToggle:`m_b1072d44`},wv={visibilityToggleIcon:Sv,size:`sm`},Tv=Cn((e,{size:t})=>({root:{"--psi-icon-size":at(t,`psi-icon-size`),"--psi-button-size":at(t,`psi-button-size`)}})),Ev=K(e=>{let t=W(`PasswordInput`,wv,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,required:c,error:l,leftSection:u,disabled:d,id:f,variant:p,inputContainer:m,description:h,label:g,size:_,errorProps:v,descriptionProps:y,labelProps:b,withAsterisk:x,inputWrapperOrder:S,wrapperProps:C,radius:w,rightSection:T,rightSectionWidth:E,rightSectionPointerEvents:D,leftSectionWidth:O,visible:k,defaultVisible:A,onVisibilityChange:j,visibilityToggleIcon:M,visibilityToggleButtonProps:N,rightSectionProps:P,leftSectionProps:ee,leftSectionPointerEvents:F,withErrorStyles:I,mod:te,attributes:ne,...re}=t,ie=Rt(f),[L,ae]=Yt({value:k,defaultValue:A,finalValue:!1,onChange:j}),oe=()=>ae(!L),se=G({name:`PasswordInput`,classes:Cv,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:ne,vars:s,varsResolver:Tv}),{resolvedClassNames:ce,resolvedStyles:le}=Ur({classNames:n,styles:a,props:t}),{styleProps:ue,rest:de}=li(re),fe=v?.id||`${ie}-error`,R=y?.id||`${ie}-description`,pe=`${l&&typeof l!=`boolean`?fe:``} ${h?R:``}`,me=pe.trim().length>0?pe.trim():void 0,he=(0,U.jsx)(gu,{...se(`visibilityToggle`),disabled:d,radius:w,"aria-pressed":L,tabIndex:-1,"aria-label":`Toggle password visibility`,...N,variant:N?.variant??`subtle`,color:`gray`,unstyled:o,onTouchEnd:e=>{e.preventDefault(),N?.onTouchEnd?.(e),oe()},onMouseDown:e=>{e.preventDefault(),N?.onMouseDown?.(e),oe()},onKeyDown:e=>{N?.onKeyDown?.(e),e.key===` `&&(e.preventDefault(),oe())},children:(0,U.jsx)(M,{reveal:L})});return(0,U.jsx)(bf.Wrapper,{required:c,id:ie,label:g,error:l,description:h,size:_,classNames:ce,styles:le,__staticSelector:`PasswordInput`,__stylesApiProps:t,unstyled:o,withAsterisk:x,inputWrapperOrder:S,inputContainer:m,variant:p,labelProps:{...b,htmlFor:ie},descriptionProps:{...y,id:R},errorProps:{...v,id:fe},mod:te,attributes:ne,...se(`root`),...ue,...C,children:(0,U.jsx)(bf,{component:`div`,error:l,leftSection:u,size:_,classNames:{...ce,input:Tn(Cv.input,ce?.input)},styles:le,radius:w,disabled:d,__staticSelector:`PasswordInput`,__stylesApiProps:t,rightSectionWidth:E,rightSection:T??he,variant:p,unstyled:o,leftSectionWidth:O,rightSectionPointerEvents:D||`all`,rightSectionProps:P,leftSectionProps:ee,leftSectionPointerEvents:F,withAria:!1,withErrorStyles:I,attributes:ne,children:(0,U.jsx)(`input`,{required:c,"data-invalid":!!l||void 0,"data-with-left-section":!!u||void 0,...se(`innerInput`),disabled:d,id:ie,...de,"aria-describedby":me,autoComplete:de.autoComplete||`off`,type:L?`text`:`password`})})})});Ev.classes={...Cf.classes,...Cv},Ev.varsResolver=Tv,Ev.displayName=`@mantine/core/PasswordInput`;var[Dv,Ov]=Je(`Progress.Root component was not found in tree`),kv={root:`m_db6d6462`,section:`m_2242eb65`,"stripes-animation":`m_81a374bd`,"stripes-animation-vertical":`m_e0fb7a86`,label:`m_91e40b74`},Av=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=W(`ProgressLabel`,null,e);return(0,U.jsx)(q,{...Ov().getStyles(`label`,{className:n,style:r,classNames:t,styles:i}),...o})});Av.classes=kv,Av.displayName=`@mantine/core/ProgressLabel`;var jv=Cn((e,{size:t,radius:n,transitionDuration:r})=>({root:{"--progress-size":at(t,`progress-size`),"--progress-radius":n===void 0?void 0:st(n),"--progress-transition-duration":typeof r==`number`?`${r}ms`:void 0}})),Mv=K(e=>{let t=W(`ProgressRoot`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,autoContrast:c,transitionDuration:l,orientation:u,attributes:d,mod:f,...p}=t,m=G({name:`Progress`,classes:kv,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:jv});return(0,U.jsx)(Dv,{value:{getStyles:m,autoContrast:c},children:(0,U.jsx)(q,{mod:[{orientation:u},f],...m(`root`),...p})})});Mv.classes=kv,Mv.varsResolver=jv,Mv.displayName=`@mantine/core/ProgressRoot`;var Nv={withAria:!0},Pv=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,value:o,withAria:s,color:c,striped:l,animated:u,mod:d,...f}=W(`ProgressSection`,Nv,e),p=Ov(),m=wr(),h=s?{role:`progressbar`,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":o,"aria-valuetext":`${o}%`}:{};return(0,U.jsx)(q,{...p.getStyles(`section`,{className:n,classNames:t,styles:i,style:r}),...f,...h,mod:[{striped:l||u,animated:u},d],__vars:{"--progress-section-size":`${o}%`,"--progress-section-color":Un(c,m),"--progress-label-color":Zn(p.autoContrast,m)?Yn({color:c,theme:m,autoContrast:p.autoContrast}):void 0}})});Pv.classes=kv,Pv.displayName=`@mantine/core/ProgressSection`;var Fv=K(e=>{let t=W(`Progress`,null,e),{value:n,classNames:r,styles:i,vars:a,color:o,striped:s,animated:c,"aria-label":l,...u}=t,{resolvedClassNames:d,resolvedStyles:f}=Ur({classNames:r,styles:i,props:t});return(0,U.jsx)(Mv,{classNames:d,styles:f,vars:a,...u,children:(0,U.jsx)(Pv,{value:n,color:o,striped:s,animated:c,"aria-label":l})})});Fv.classes=kv,Fv.displayName=`@mantine/core/Progress`,Fv.Section=Pv,Fv.Root=Mv,Fv.Label=Av;var Iv=(0,H.createContext)(null),Lv=Li((e=>{let{value:t,defaultValue:n,onChange:r,size:i,wrapperProps:a,children:o,name:s,readOnly:c,disabled:l,...u}=W(`RadioGroup`,null,e),d=Rt(s),[f,p]=Yt({value:t,defaultValue:n,finalValue:``,onChange:r});return(0,U.jsx)(Iv,{value:{value:f,onChange:e=>!c&&p(typeof e==`string`?e:e.currentTarget.value),size:i,name:d,disabled:l},children:(0,U.jsx)(bf.Wrapper,{size:i,...a,...u,labelElement:`div`,__staticSelector:`RadioGroup`,children:(0,U.jsx)(Pp,{role:`radiogroup`,children:o})})})}));Lv.classes=bf.Wrapper.classes,Lv.displayName=`@mantine/core/RadioGroup`;var Rv={card:`m_9dc8ae12`},zv=(0,H.createContext)(null),Bv={withBorder:!0},Vv=Cn((e,{radius:t})=>({card:{"--card-radius":st(t)}})),Hv=K(e=>{let t=W(`RadioCard`,Bv,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,checked:c,mod:l,withBorder:u,value:d,onClick:f,name:p,onKeyDown:m,attributes:h,...g}=t,_=G({name:`RadioCard`,classes:Rv,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:Vv,rootSelector:`card`}),{dir:v}=Ki(),y=(0,H.use)(Iv),b=typeof c==`boolean`?c:y?.value===d||!1,x=p||y?.name,S=e=>{if(m?.(e),x&&[`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`].includes(e.nativeEvent.code)){e.preventDefault();let t=Array.from(document.querySelectorAll(`[role="radio"][name="${x}"]`)),n=t.findIndex(t=>t===e.target),r=n+1>=t.length?0:n+1,i=n-1<0?t.length-1:n-1;e.nativeEvent.code===`ArrowDown`&&(t[r].focus(),t[r].click()),e.nativeEvent.code===`ArrowUp`&&(t[i].focus(),t[i].click()),e.nativeEvent.code===`ArrowLeft`&&(t[v===`ltr`?i:r].focus(),t[v===`ltr`?i:r].click()),e.nativeEvent.code===`ArrowRight`&&(t[v===`ltr`?r:i].focus(),t[v===`ltr`?r:i].click())}};return(0,U.jsx)(zv,{value:{checked:b},children:(0,U.jsx)(dl,{mod:[{"with-border":u,checked:b},l],..._(`card`),...g,role:`radio`,"aria-checked":b,name:x,onClick:e=>{f?.(e),y?.onChange(d||``)},onKeyDown:S})})});Hv.displayName=`@mantine/core/RadioCard`,Hv.classes=Rv,Hv.varsResolver=Vv;function Uv({size:e,style:t,...n}){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 5 5`,style:{width:V(e),height:V(e),...t},"aria-hidden":!0,...n,children:(0,U.jsx)(`circle`,{cx:`2.5`,cy:`2.5`,r:`2.5`,fill:`currentColor`})})}var Wv={indicator:`m_717d7ff6`,icon:`m_3e4da632`,"indicator--outline":`m_2980836c`},Gv={icon:Uv},Kv=Cn((e,{radius:t,color:n,size:r,iconColor:i,variant:a,autoContrast:o})=>{let s=Hn({color:n||e.primaryColor,theme:e}),c=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{indicator:{"--radio-size":at(r,`radio-size`),"--radio-radius":t===void 0?void 0:st(t),"--radio-color":a===`outline`?c:Un(n,e),"--radio-icon-size":at(r,`radio-icon-size`),"--radio-icon-color":i?Un(i,e):Zn(o,e)?Yn({color:n,theme:e,autoContrast:o}):void 0}}}),qv=K(e=>{let t=W(`RadioIndicator`,Gv,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,icon:c,radius:l,color:u,iconColor:d,autoContrast:f,checked:p,mod:m,variant:h,disabled:g,attributes:_,...v}=t,y=G({name:`RadioIndicator`,classes:Wv,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:_,vars:s,varsResolver:Kv,rootSelector:`indicator`}),b=(0,H.use)(zv),x=typeof p==`boolean`?p:b?.checked||!1;return(0,U.jsx)(q,{...y(`indicator`,{variant:h}),variant:h,mod:[{checked:x,disabled:g},m],...v,children:(0,U.jsx)(c,{...y(`icon`)})})});qv.displayName=`@mantine/core/RadioIndicator`,qv.classes=Wv,qv.varsResolver=Kv;var Jv={root:`m_f3f1af94`,inner:`m_89c4f5e4`,icon:`m_f3ed6b2b`,radio:`m_8a3dbb89`,"radio--outline":`m_1bfe9d39`},Yv={labelPosition:`right`,withErrorStyles:!0},Xv=Cn((e,{size:t,radius:n,color:r,iconColor:i,variant:a,autoContrast:o})=>{let s=Hn({color:r||e.primaryColor,theme:e}),c=s.isThemeColor&&s.shade===void 0?`var(--mantine-color-${s.color}-outline)`:s.color;return{root:{"--radio-size":at(t,`radio-size`),"--radio-radius":n===void 0?void 0:st(n),"--radio-color":a===`outline`?c:Un(r,e),"--radio-icon-color":i?Un(i,e):Zn(o,e)?Yn({color:r,theme:e,autoContrast:o}):void 0,"--radio-icon-size":at(t,`radio-icon-size`)}}}),Zv=K(e=>{let t=W(`Radio`,Yv,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,id:c,size:l,label:u,labelPosition:d,description:f,error:p,radius:m,color:h,variant:g,disabled:_,wrapperProps:v,icon:y=Uv,rootRef:b,iconColor:x,onChange:S,mod:C,attributes:w,withErrorStyles:T,checked:E,...D}=t,O=G({name:`Radio`,classes:Jv,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:w,vars:s,varsResolver:Xv}),k=(0,H.use)(Iv),A=k?.size??l,j=t.size?l:A,{styleProps:M,rest:N}=li(D),P=Rt(c),ee=k?k.value===N.value:void 0,F={checked:ee??E,name:N.name??k?.name,onChange:e=>{k?.onChange(e),S?.(e)},disabled:k?.disabled??_};return(0,U.jsx)(Zp,{...O(`root`),__staticSelector:`Radio`,__stylesApiProps:t,id:P,size:j,labelPosition:d,label:u,description:f,error:p,disabled:F.disabled,classNames:n,styles:a,unstyled:o,"data-checked":(ee??E)||void 0,variant:g,ref:b,mod:C,attributes:w,...M,...v,children:(0,U.jsxs)(q,{...O(`inner`),mod:{"label-position":d},children:[(0,U.jsx)(q,{...O(`radio`,{focusable:!0,variant:g}),...N,...F,component:`input`,mod:{error:!!p,"with-error-styles":T},id:P,type:`radio`}),(0,U.jsx)(y,{...O(`icon`),"aria-hidden":!0})]})})});Zv.classes=Jv,Zv.varsResolver=Xv,Zv.displayName=`@mantine/core/Radio`,Zv.Group=Lv,Zv.Card=Hv,Zv.Indicator=qv;function Qv({offset:e,position:t,defaultOpened:n}){let[r,i]=(0,H.useState)(n),a=(0,H.useRef)(null),{x:o,y:s,elements:c,refs:l,update:u,placement:d}=Qc({placement:t,middleware:[oc({crossAxis:!0,padding:5,rootBoundary:`document`})]}),f=d.includes(`right`)?e:t.includes(`left`)?e*-1:0,p=d.includes(`bottom`)?e:t.includes(`top`)?e*-1:0,m=(0,H.useCallback)(({clientX:e,clientY:t})=>{l.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e+f,top:t+p,right:e,bottom:t}}})},[c.reference]);return(0,H.useEffect)(()=>{if(l.floating.current){let e=a.current;e.addEventListener(`mousemove`,m);let t=Ja(l.floating.current);return t.forEach(e=>{e.addEventListener(`scroll`,u)}),()=>{e.removeEventListener(`mousemove`,m),t.forEach(e=>{e.removeEventListener(`scroll`,u)})}}},[c.reference,l.floating.current,u,m,r]),{handleMouseMove:m,x:o,y:s,opened:r,setOpened:i,boundaryRef:a,floating:l.setFloating}}var $v={tooltip:`m_1b3c8819`,arrow:`m_f898399f`},ey={refProp:`ref`,withinPortal:!0,offset:10,position:`right`,zIndex:nt(`popover`)},ty=Cn((e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:st(t),"--tooltip-bg":n?Un(n,e):void 0,"--tooltip-color":n?`var(--mantine-color-white)`:void 0}})),ny=K(e=>{let t=W(`TooltipFloating`,ey,e),{children:n,refProp:r,withinPortal:i,style:a,className:o,classNames:s,styles:c,unstyled:l,radius:u,color:d,label:f,offset:p,position:m,multiline:h,zIndex:g,disabled:_,defaultOpened:v,variant:y,vars:b,portalProps:x,attributes:S,ref:C,...w}=t,T=wr(),E=G({name:`TooltipFloating`,props:t,classes:$v,className:o,style:a,classNames:s,styles:c,unstyled:l,attributes:S,rootSelector:`tooltip`,vars:b,varsResolver:ty}),{handleMouseMove:D,x:O,y:k,opened:A,boundaryRef:j,floating:M,setOpened:N}=Qv({offset:p,position:m,defaultOpened:v}),P=Sn(n);if(!P)throw Error(`[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let ee=Jt(j,_n(P),C),F=P.props,I=e=>{F.onMouseEnter?.(e),D(e),N(!0)},te=e=>{F.onMouseLeave?.(e),N(!1)};return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ml,{...x,withinPortal:i,children:(0,U.jsx)(q,{...w,...E(`tooltip`,{style:{...Ni(a,T),zIndex:g,display:!_&&A?`block`:`none`,top:(k&&Math.round(k))??``,left:(O&&Math.round(O))??``}}),variant:y,ref:M,mod:{multiline:h},children:f})}),(0,H.cloneElement)(P,{...F,[r]:ee,onMouseEnter:I,onMouseLeave:te})]})});ny.classes=$v,ny.varsResolver=ty,ny.displayName=`@mantine/core/TooltipFloating`;var ry=(0,H.createContext)({withinGroup:!1}),iy={openDelay:0,closeDelay:0};function ay(e){let{openDelay:t,closeDelay:n,children:r}=W(`TooltipGroup`,iy,e);return(0,U.jsx)(ry,{value:{withinGroup:!0},children:(0,U.jsx)(Gc,{delay:{open:t,close:n},children:r})})}ay.displayName=`@mantine/core/TooltipGroup`,ay.extend=e=>e;function oy(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function sy(e){let t=oy(e.middlewares),n=[ac(e.offset)];return t.shift&&n.push(oc(typeof t.shift==`boolean`?{padding:8}:{padding:8,...t.shift})),t.flip&&n.push(typeof t.flip==`boolean`?cc():cc(t.flip)),n.push(fc({element:e.arrowRef,padding:e.arrowOffset})),t.inline?n.push(typeof t.inline==`boolean`?dc():dc(t.inline)):e.inline&&n.push(dc()),n}function cy(e){let[t,n]=(0,H.useState)(e.defaultOpened),r=typeof e.opened==`boolean`?e.opened:t,i=(0,H.use)(ry).withinGroup,a=Rt(),o=(0,H.useCallback)(e=>{n(e),e&&g(a)},[a]),{x:s,y:c,context:l,refs:u,placement:d,middlewareData:{arrow:{x:f,y:p}={}}}=Qc({strategy:e.strategy,placement:e.position,open:r,onOpenChange:o,middleware:sy(e),whileElementsMounted:Hs}),{delay:m,currentId:h,setCurrentId:g}=Kc(l,{id:a}),{getReferenceProps:_,getFloatingProps:v}=nl([Vc(l,{enabled:e.events?.hover,delay:i?m:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch}),el(l,{enabled:e.events?.focus,visibleOnly:!0}),il(l,{role:`tooltip`}),Xc(l,{enabled:e.opened===void 0})]);Et(()=>{e.onPositionChange?.(d)},[d]);let y=r&&h&&h!==a;return{x:s,y:c,arrowX:f,arrowY:p,reference:u.setReference,floating:u.setFloating,getFloatingProps:v,getReferenceProps:_,isGroupPhase:y,opened:r,placement:d}}var ly={position:`top`,refProp:`ref`,withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,offset:5,transitionProps:{duration:100,transition:`fade`},events:{hover:!0,focus:!1,touch:!1},zIndex:nt(`popover`),middlewares:{flip:!0,shift:!0,inline:!1}},uy=Cn((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:i,variant:r||`filled`});return{tooltip:{"--tooltip-radius":t===void 0?void 0:st(t),"--tooltip-bg":n?a.background:void 0,"--tooltip-color":n?a.color:void 0}}}),dy=K(e=>{let t=W(`Tooltip`,ly,e),{children:n,position:r,refProp:i,label:a,openDelay:o,closeDelay:s,onPositionChange:c,opened:l,defaultOpened:u,withinPortal:d,radius:f,color:p,classNames:m,styles:h,unstyled:g,style:_,className:v,withArrow:y,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,offset:w,transitionProps:T,multiline:E,events:D,zIndex:O,disabled:k,onClick:A,onMouseEnter:j,onMouseLeave:M,inline:N,variant:P,keepMounted:ee,vars:F,portalProps:I,mod:te,floatingStrategy:ne,middlewares:re,autoContrast:ie,attributes:L,target:ae,ref:oe,...se}=t,{dir:ce}=Ki(),le=(0,H.useRef)(null),ue=cy({position:Sl(ce,r),closeDelay:s,openDelay:o,onPositionChange:c,opened:l,defaultOpened:u,events:D,arrowRef:le,arrowOffset:x,offset:typeof w==`number`?w+(y?b/2:0):w,inline:N,strategy:ne,middlewares:re});(0,H.useEffect)(()=>{let e=ae instanceof HTMLElement?ae:typeof ae==`string`?document.querySelector(ae):ae?.current||null;e&&ue.reference(e)},[ae,ue]);let de=G({name:`Tooltip`,props:t,classes:$v,className:v,style:_,classNames:m,styles:h,unstyled:g,attributes:L,rootSelector:`tooltip`,vars:F,varsResolver:uy}),fe=Sn(n);if(!ae&&!fe)throw Error(`[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let R=de(`tooltip`);if(ae){let e=Bl(T,{duration:100,transition:`fade`});return(0,U.jsx)(U.Fragment,{children:(0,U.jsx)(Ml,{...I,withinPortal:d,children:(0,U.jsx)(Rl,{...e,keepMounted:ee,mounted:!k&&!!ue.opened,duration:ue.isGroupPhase?10:e.duration,children:e=>(0,U.jsxs)(q,{...se,"data-fixed":ne===`fixed`||void 0,variant:P,mod:[{multiline:E},te],...R,...ue.getFloatingProps({ref:ue.floating,className:R.className,style:{...R.style,...e,zIndex:O,top:ue.y??0,left:ue.x??0}}),children:[a,(0,U.jsx)(xl,{ref:le,arrowX:ue.arrowX,arrowY:ue.arrowY,visible:y,position:ue.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,...de(`arrow`)})]})})})})}let pe=fe.props,me=Jt(ue.reference,_n(fe),oe),he=Bl(T,{duration:100,transition:`fade`});return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ml,{...I,withinPortal:d,children:(0,U.jsx)(Rl,{...he,keepMounted:ee,mounted:!k&&!!ue.opened,duration:ue.isGroupPhase?10:he.duration,children:e=>(0,U.jsxs)(q,{...se,"data-fixed":ne===`fixed`||void 0,variant:P,mod:[{multiline:E},te],...ue.getFloatingProps({ref:ue.floating,className:de(`tooltip`).className,style:{...de(`tooltip`).style,...e,zIndex:O,top:ue.y??0,left:ue.x??0}}),children:[a,(0,U.jsx)(xl,{ref:le,arrowX:ue.arrowX,arrowY:ue.arrowY,visible:y,position:ue.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,...de(`arrow`)})]})})}),(0,H.cloneElement)(fe,ue.getReferenceProps({onClick:A,onMouseEnter:j,onMouseLeave:M,onMouseMove:t.onMouseMove,onPointerDown:t.onPointerDown,onPointerEnter:t.onPointerEnter,...pe,className:Tn(v,pe.className),[i]:me}))]})});dy.classes=$v,dy.varsResolver=uy,dy.displayName=`@mantine/core/Tooltip`,dy.Floating=ny,dy.Group=ay;function fy({size:e,thickness:t,sum:n,value:r,root:i,offset:a}){let o=(e*.9-t*2)/2,s=Math.PI*o*2/100,c=i||r===void 0?`${(100-n)*s}, ${n*s}`:`${r*s}, ${(100-r)*s}`;return{strokeWidth:Number.isNaN(t)?12:t,cx:e/2||0,cy:e/2||0,r:o||0,transform:i?`scale(1, -1) translate(0, -${e})`:void 0,strokeDasharray:c,strokeDashoffset:i?0:a||0}}function py({size:e,value:t,offset:n,sum:r,thickness:i,root:a,color:o,lineRoundCaps:s,tooltip:c,getStyles:l,display:u,...d}){let f=wr();return(0,U.jsx)(dy.Floating,{disabled:!c,label:c,children:(0,U.jsx)(q,{component:`circle`,...d,...l(`curve`),__vars:{"--curve-color":o?Un(o,f):void 0},fill:`none`,strokeLinecap:s?`round`:`butt`,...fy({sum:r,size:e,thickness:i,value:t,offset:n,root:a})})})}py.displayName=`@mantine/core/Curve`;function my({size:e,thickness:t,sections:n,renderRoundedLineCaps:r,rootColor:i,sectionGap:a=0}){let o=n.reduce((e,t)=>e+t.value,0),s=Math.PI*((e*.9-t*2)/2)*2,c=s,l=[],u=[],d=a/360*100;for(let e=0;e<n.length;e+=1){let t=Math.max(0,n[e].value-d);l.push({sum:o,offset:c,data:{...n[e],value:t},root:!1}),c-=n[e].value/100*s}if(l.push({sum:o,offset:c,data:{color:i},root:!0}),u.push({...l[l.length-1],lineRoundCaps:!1}),l.length>2){u.push({...l[0],lineRoundCaps:r}),u.push({...l[l.length-2],lineRoundCaps:r});for(let e=1;e<=l.length-3;e+=1)u.push({...l[e],lineRoundCaps:!1})}else u.push({...l[0],lineRoundCaps:r});return u}var hy={root:`m_b32e4812`,svg:`m_d43b5134`,curve:`m_b1ca1fbf`,label:`m_b23f9dc4`};function gy(e,t){return Math.min(e||12,(t||120)/4)}var _y={size:120,thickness:12,startAngle:270},vy=Cn((e,{size:t,thickness:n,transitionDuration:r,startAngle:i})=>({root:{"--rp-size":V(t),"--rp-label-offset":V(n*2),"--rp-transition-duration":r?`${r}ms`:void 0},svg:{"--rp-start-angle":`${i}deg`}})),yy=K(e=>{let t=W(`RingProgress`,_y,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,label:c,sections:l,size:u,thickness:d,roundCaps:f,rootColor:p,transitionDuration:m,sectionGap:h,startAngle:g,attributes:_,...v}=t,y=G({name:`RingProgress`,classes:hy,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:_,vars:s,varsResolver:vy}),b=gy(d,u),x=my({size:u,thickness:b,sections:l,renderRoundedLineCaps:f,rootColor:p,sectionGap:h}).map(({data:e,sum:t,root:n,lineRoundCaps:r,offset:i},a)=>(0,H.createElement)(py,{...e,key:a,size:u,thickness:b,sum:t,offset:i,color:e?.color,root:n,lineRoundCaps:r,getStyles:y}));return(0,U.jsxs)(q,{...y(`root`),size:u,...v,children:[(0,U.jsx)(`svg`,{...y(`svg`),viewBox:`0 0 ${u} ${u}`,children:x}),c&&(0,U.jsx)(`div`,{...y(`label`),children:c})]})});yy.classes=hy,yy.varsResolver=vy,yy.displayName=`@mantine/core/RingProgress`;var by={root:`m_cf365364`,indicator:`m_9e182ccd`,label:`m_1738fcb2`,input:`m_1714d588`,control:`m_69686b9b`,innerLabel:`m_78882f40`},xy={withItemsBorders:!0},Sy=Cn((e,{radius:t,color:n,transitionDuration:r,size:i,transitionTimingFunction:a})=>({root:{"--sc-radius":t===void 0?void 0:st(t),"--sc-color":n?Un(n,e):void 0,"--sc-shadow":n?void 0:`var(--mantine-shadow-xs)`,"--sc-transition-duration":r===void 0?void 0:`${r}ms`,"--sc-transition-timing-function":a,"--sc-padding":at(i,`sc-padding`),"--sc-font-size":ct(i)}})),Cy=Li(e=>{let t=W(`SegmentedControl`,xy,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,data:c,value:l,defaultValue:u,onChange:d,size:f,name:p,disabled:m,readOnly:h,fullWidth:g,orientation:_,radius:v,color:y,transitionDuration:b,transitionTimingFunction:x,variant:S,autoContrast:C,withItemsBorders:w,mod:T,attributes:E,ref:D,...O}=t,k=G({name:`SegmentedControl`,props:t,classes:by,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:E,vars:s,varsResolver:Sy}),A=wr(),j=c.map(e=>vn(e)?{label:`${e}`,value:e}:e),M=cn(),[N,P]=(0,H.useState)(_t()),[ee,F]=(0,H.useState)(null),[I,te]=(0,H.useState)({}),ne=(e,t)=>{I[t]=e,te(I)},[re,ie]=Yt({value:l,defaultValue:u,finalValue:Array.isArray(c)?j.find(e=>!e.disabled)?.value??c[0]?.value??null:null,onChange:d}),L=Rt(p),ae=j.map(e=>(0,H.createElement)(q,{...k(`control`),mod:{active:re===e.value,orientation:_},key:`${e.value}`},(0,H.createElement)(`input`,{...k(`input`),disabled:m||e.disabled,type:`radio`,name:L,value:`${e.value}`,id:`${L}-${e.value}`,checked:re===e.value,onChange:()=>!h&&ie(e.value),"data-focus-ring":A.focusRing,key:`${e.value}-input`}),(0,H.createElement)(q,{component:`label`,...k(`label`),mod:{active:re===e.value&&!(m||e.disabled),disabled:m||e.disabled,"read-only":h},htmlFor:`${L}-${e.value}`,ref:t=>ne(t,`${e.value}`),__vars:{"--sc-label-color":y===void 0?void 0:Yn({color:y,theme:A,autoContrast:C})},key:`${e.value}-label`},(0,U.jsx)(`span`,{...k(`innerLabel`),children:e.label})))),oe=Jt(D,e=>F(e));return nn(()=>{P(_t())},[c.length]),c.length===0?null:(0,U.jsxs)(q,{...k(`root`),variant:S,size:f,ref:oe,mod:[{"full-width":g,orientation:_,initialized:M,"with-items-borders":w},T],...O,role:`radiogroup`,"data-disabled":m,children:[re!==void 0&&(0,U.jsx)(jf,{target:I[`${re}`],parent:ee,component:`span`,transitionDuration:`var(--sc-transition-duration)`,...k(`indicator`)},N),ae]})});Cy.classes=by,Cy.varsResolver=Sy,Cy.displayName=`@mantine/core/SegmentedControl`;var wy={size:`sm`,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:`left`,openOnFocus:!0},Ty=Li(e=>{let t=W(`Select`,wy,e),{classNames:n,styles:r,unstyled:i,vars:a,dropdownOpened:o,defaultDropdownOpened:s,onDropdownClose:c,onDropdownOpen:l,onFocus:u,onBlur:d,onClick:f,onChange:p,data:m,value:h,defaultValue:g,selectFirstOptionOnChange:_,selectFirstOptionOnDropdownOpen:v,onOptionSubmit:y,comboboxProps:b,readOnly:x,disabled:S,filter:C,limit:w,withScrollArea:T,maxDropdownHeight:E,size:D,searchable:O,rightSection:k,checkIconPosition:A,withCheckIcon:j,withAlignedLabels:M,nothingFoundMessage:N,name:P,form:ee,searchValue:F,defaultSearchValue:I,onSearchChange:te,allowDeselect:ne,error:re,rightSectionPointerEvents:ie,id:L,clearable:ae,clearSectionMode:oe,clearButtonProps:se,hiddenInputProps:ce,renderOption:le,onClear:ue,autoComplete:de,scrollAreaProps:fe,__defaultRightSection:R,__clearSection:pe,__clearable:me,chevronColor:he,autoSelectOnBlur:ge,openOnFocus:z,attributes:_e,...ve}=t,B=(0,H.useMemo)(()=>tp(m),[m]),ye=(0,H.useRef)({}),be=(0,H.useMemo)(()=>np(B),[B]),xe=Rt(L),[Se,Ce,we]=Yt({value:h,defaultValue:g,finalValue:null,onChange:p}),Te=Se==null?void 0:`${Se}`in be?be[`${Se}`]:ye.current[`${Se}`],Ee=on(Te),[De,Oe,ke]=Yt({value:F,defaultValue:I,finalValue:Te?Te.label:``,onChange:te}),Ae=Ap({opened:o,defaultOpened:s,onDropdownOpen:()=>{l?.(),v?Ae.selectFirstOption():Ae.updateSelectedOptionIndex(`active`,{scrollIntoView:!0})},onDropdownClose:()=>{c?.(),setTimeout(Ae.resetSelectedOption,0)}}),je=e=>{Oe(e),Ae.resetSelectedOption()},{resolvedClassNames:Me,resolvedStyles:Ne}=Ur({props:t,styles:r,classNames:n});(0,H.useEffect)(()=>{_&&Ae.selectFirstOption()},[_,De]),(0,H.useEffect)(()=>{h===null&&je(``),h!=null&&Te&&(Ee?.value!==Te.value||Ee?.label!==Te.label)&&je(Te.label)},[h,Te]),(0,H.useEffect)(()=>{!we&&!ke&&je(Se==null?``:`${Se}`in be?be[`${Se}`]?.label:ye.current[`${Se}`]?.label||``)},[be,Se]),(0,H.useEffect)(()=>{Se&&`${Se}`in be&&(ye.current[`${Se}`]=be[`${Se}`])},[be,Se]);let Pe=(0,U.jsx)(Np.ClearButton,{...se,onClear:()=>{Ce(null,null),je(``),ue?.()}}),Fe=ae&&!!Se&&!S&&!x;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(Np,{store:Ae,__staticSelector:`Select`,classNames:Me,styles:Ne,unstyled:i,readOnly:x,size:D,attributes:_e,keepMounted:ge,onOptionSubmit:e=>{y?.(e);let t=ne&&`${be[e].value}`==`${Se}`?null:be[e],n=t?t.value:null;n!==Se&&Ce(n,t),!we&&je(n==null?``:t?.label||``),Ae.closeDropdown()},...b,children:[(0,U.jsx)(Np.Target,{targetType:O?`input`:`button`,autoComplete:de,withExpandedAttribute:!0,children:(0,U.jsx)(Cf,{id:xe,__defaultRightSection:(0,U.jsx)(Np.Chevron,{size:D,error:re,unstyled:i,color:he}),__clearSection:Pe,__clearable:Fe,__clearSectionMode:oe,rightSection:k,rightSectionPointerEvents:ie||`none`,...ve,size:D,__staticSelector:`Select`,disabled:S,readOnly:x||!O,value:De,onChange:e=>{je(e.currentTarget.value),Ae.openDropdown(),_&&Ae.selectFirstOption()},onFocus:e=>{z&&O&&Ae.openDropdown(),u?.(e)},onBlur:e=>{ge&&Ae.clickSelectedOption(),O&&Ae.closeDropdown();let t=Se!=null&&(`${Se}`in be?be[`${Se}`]:ye.current[`${Se}`]);je(t&&t.label||``),d?.(e)},onClick:e=>{O?Ae.openDropdown():Ae.toggleDropdown(),f?.(e)},classNames:Me,styles:Ne,unstyled:i,pointer:!O,error:re,attributes:_e})}),(0,U.jsx)(cm,{data:B,hidden:x||S,filter:C,search:De,limit:w,hiddenWhenEmpty:!N,withScrollArea:T,maxDropdownHeight:E,filterOptions:!!O&&Te?.label!==De,value:Se,checkIconPosition:A,withCheckIcon:j,withAlignedLabels:M,nothingFoundMessage:N,unstyled:i,labelId:ve.label?`${xe}-label`:void 0,"aria-label":ve.label?void 0:ve[`aria-label`],renderOption:le,scrollAreaProps:fe})]}),(0,U.jsx)(Np.HiddenInput,{value:Se,name:P,form:ee,disabled:S,...ce})]})});Ty.classes={...Cf.classes,...Np.classes},Ty.displayName=`@mantine/core/Select`;function Ey(e){if(e!==void 0)return typeof e==`number`?V(e):e}function Dy({spacing:e,verticalSpacing:t,cols:n,minColWidth:r,autoRows:i,selector:a}){let o=wr(),s=t===void 0?e:t,c=r!==void 0,l=Ge({"--sg-spacing-x":ot(mt(e)),"--sg-spacing-y":ot(mt(s)),"--sg-auto-rows":i,...c?{"--sg-min-col-width":Ey(r)}:{"--sg-cols":mt(n)?.toString()}}),u=Ie(o.breakpoints).reduce((t,r)=>(t[r]||(t[r]={}),typeof e==`object`&&e[r]!==void 0&&(t[r][`--sg-spacing-x`]=ot(e[r])),typeof s==`object`&&s[r]!==void 0&&(t[r][`--sg-spacing-y`]=ot(s[r])),!c&&typeof n==`object`&&n[r]!==void 0&&(t[r][`--sg-cols`]=n[r]),t),{});return(0,U.jsx)(oi,{styles:l,media:pt(Ie(u),o.breakpoints).filter(e=>Ie(u[e.value]).length>0).map(e=>({query:`(min-width: ${o.breakpoints[e.value]})`,styles:u[e.value]})),selector:a})}function Oy(e){return typeof e==`object`&&e?Ie(e):[]}function ky(e){return e.sort((e,t)=>Ve(e)-Ve(t))}function Ay({spacing:e,verticalSpacing:t,cols:n,minColWidth:r}){return ky(Array.from(new Set([...Oy(e),...Oy(t),...r===void 0?Oy(n):[]])))}function jy({spacing:e,verticalSpacing:t,cols:n,minColWidth:r,autoRows:i,selector:a}){let o=t===void 0?e:t,s=r!==void 0,c=Ge({"--sg-spacing-x":ot(mt(e)),"--sg-spacing-y":ot(mt(o)),"--sg-auto-rows":i,...s?{"--sg-min-col-width":Ey(r)}:{"--sg-cols":mt(n)?.toString()}}),l=Ay({spacing:e,verticalSpacing:t,cols:n,minColWidth:r}),u=l.reduce((t,r)=>(t[r]||(t[r]={}),typeof e==`object`&&e[r]!==void 0&&(t[r][`--sg-spacing-x`]=ot(e[r])),typeof o==`object`&&o[r]!==void 0&&(t[r][`--sg-spacing-y`]=ot(o[r])),!s&&typeof n==`object`&&n[r]!==void 0&&(t[r][`--sg-cols`]=n[r]),t),{});return(0,U.jsx)(oi,{styles:c,container:l.map(e=>({query:`simple-grid (min-width: ${e})`,styles:u[e]})),selector:a})}var My={container:`m_925c2d2c`,root:`m_2415a157`},Ny={cols:1,spacing:`md`,type:`media`},Py=K(e=>{let t=W(`SimpleGrid`,Ny,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,cols:c,verticalSpacing:l,spacing:u,type:d,minColWidth:f,autoFlow:p,autoRows:m,attributes:h,...g}=t,_=G({name:`SimpleGrid`,classes:My,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s}),v=Mi(),y=f===void 0?void 0:p||`auto-fill`;return d===`container`?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(jy,{...t,selector:`.${v}`}),(0,U.jsx)(`div`,{..._(`container`),children:(0,U.jsx)(q,{..._(`root`,{className:v}),...g,"data-auto-cols":y})})]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Dy,{...t,selector:`.${v}`}),(0,U.jsx)(q,{..._(`root`,{className:v}),...g,"data-auto-cols":y})]})});Py.classes=My,Py.displayName=`@mantine/core/SimpleGrid`;var Fy={root:`m_18320242`,"skeleton-fade":`m_299c329c`},X={visible:!0,animate:!0},Iy=Cn((e,{width:t,height:n,radius:r,circle:i})=>({root:{"--skeleton-height":V(n),"--skeleton-width":V(i?n:t),"--skeleton-radius":i?`1000px`:r===void 0?void 0:st(r)}})),Ly=K(e=>{let t=W(`Skeleton`,X,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,width:c,height:l,circle:u,visible:d,radius:f,animate:p,mod:m,attributes:h,...g}=t;return(0,U.jsx)(q,{...G({name:`Skeleton`,classes:Fy,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:Iy})(`root`),mod:[{visible:d,animate:p},m],...g})});Ly.classes=Fy,Ly.varsResolver=Iy,Ly.displayName=`@mantine/core/Skeleton`;var Ry={root:`m_6d731127`},zy={gap:`md`,align:`stretch`,justify:`flex-start`},By=Cn((e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":ot(t),"--stack-align":n,"--stack-justify":r}})),Vy=K(e=>{let t=W(`Stack`,zy,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,align:c,justify:l,gap:u,variant:d,attributes:f,...p}=t;return(0,U.jsx)(q,{...G({name:`Stack`,props:t,classes:Ry,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:By})(`root`),variant:d,...p})});Vy.classes=Ry,Vy.varsResolver=By,Vy.displayName=`@mantine/core/Stack`;var[Hy,Uy]=Je(`Stepper component was not found in tree`),Wy=()=>null;Wy.displayName=`@mantine/core/StepperCompleted`;var Gy={root:`m_cbb4ea7e`,steps:`m_aaf89d0b`,separator:`m_2a371ac9`,content:`m_78da155d`,step:`m_cbb57068`,"step--horizontal":`m_f56b1e2c`,"step--vertical":`m_833edb7e`,verticalSeparator:`m_6496b3f3`,stepWrapper:`m_818e70b`,stepIcon:`m_1959ad01`,stepIconContent:`m_8faaac38`,stepCompletedIcon:`m_a79331dc`,stepBody:`m_1956aa2a`,stepLabel:`m_12051f6c`,stepDescription:`m_164eea74`},Ky=(e,t)=>typeof e==`function`?(0,U.jsx)(e,{step:t||0}):e,qy={withIcon:!0,allowStepClick:!0,iconPosition:`left`},Jy=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,step:o,state:s,color:c,icon:l,completedIcon:u,progressIcon:d,label:f,description:p,withIcon:m,iconSize:h,loading:g,allowStepClick:_,allowStepSelect:v,iconPosition:y,orientation:b,mod:x,...S}=W(`StepperStep`,qy,e),C=Uy(),w=wr(),T={classNames:t,styles:i},E=s===`stepCompleted`?null:s===`stepProgress`?d:l,D={"data-progress":s===`stepProgress`||void 0,"data-completed":s===`stepCompleted`||void 0};return(0,U.jsxs)(dl,{...C.getStyles(`step`,{className:n,style:r,variant:C.orientation,...T}),mod:[{"icon-position":y||C.iconPosition,"allow-click":_},x],...D,...S,__vars:{"--step-color":c?Un(c,w):void 0},tabIndex:_?0:-1,children:[m&&(0,U.jsxs)(`span`,{...C.getStyles(`stepWrapper`,T),children:[(0,U.jsxs)(`span`,{...C.getStyles(`stepIcon`,T),...D,children:[(0,U.jsx)(Rl,{mounted:s===`stepCompleted`,transition:`pop`,duration:200,children:e=>(0,U.jsx)(`span`,{...C.getStyles(`stepCompletedIcon`,{style:e,...T}),children:g?(0,U.jsx)(cu,{color:`var(--mantine-color-white)`,size:`calc(var(--stepper-icon-size) / 2)`,...C.getStyles(`stepLoader`,T)}):Ky(u,o)||(0,U.jsx)(Up,{size:`60%`})})}),s===`stepCompleted`?null:(0,U.jsx)(`span`,{...C.getStyles(`stepIconContent`,T),children:g?(0,U.jsx)(cu,{...C.getStyles(`stepLoader`,T),size:`calc(var(--stepper-icon-size) / 2)`,color:c}):Ky(E||l,o)})]}),b===`vertical`&&(0,U.jsx)(`span`,{...C.getStyles(`verticalSeparator`,T),"data-active":s===`stepCompleted`||void 0})]}),(f||p)&&(0,U.jsxs)(`span`,{...C.getStyles(`stepBody`,T),"data-orientation":C.orientation,"data-icon-position":y||C.iconPosition,children:[f&&(0,U.jsx)(`span`,{...C.getStyles(`stepLabel`,T),children:Ky(f,o)}),p&&(0,U.jsx)(`span`,{...C.getStyles(`stepDescription`,T),children:Ky(p,o)})]})]})});Jy.classes=Gy,Jy.displayName=`@mantine/core/StepperStep`;var Yy={orientation:`horizontal`,iconPosition:`left`,allowNextStepsSelect:!0,wrap:!0},Xy=Cn((e,{color:t,iconSize:n,size:r,contentPadding:i,radius:a,autoContrast:o})=>({root:{"--stepper-color":t?Un(t,e):void 0,"--stepper-icon-color":Zn(o,e)?Yn({color:t,theme:e,autoContrast:o}):void 0,"--stepper-icon-size":n===void 0?at(r,`stepper-icon-size`):V(n),"--stepper-content-padding":ot(i),"--stepper-radius":a===void 0?void 0:st(a),"--stepper-fz":ct(r),"--stepper-spacing":ot(r)}})),Zy=K(e=>{let t=W(`Stepper`,Yy,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,onStepClick:l,active:u,icon:d,completedIcon:f,progressIcon:p,color:m,iconSize:h,contentPadding:g,orientation:_,iconPosition:v,size:y,radius:b,allowNextStepsSelect:x,wrap:S,autoContrast:C,keepMounted:w,attributes:T,...E}=t,D=G({name:`Stepper`,classes:Gy,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:T,vars:s,varsResolver:Xy}),O=H.Children.toArray(c),k=O.filter(e=>e.type!==Wy),A=O.find(e=>e.type===Wy),j=k.reduce((e,t,n)=>{let r=u===n?`stepProgress`:u>n?`stepCompleted`:`stepInactive`,i=typeof l==`function`?typeof t.props.allowStepSelect==`boolean`?t.props.allowStepSelect:r===`stepCompleted`||x:!1;return e.push((0,H.cloneElement)(t,{icon:t.props.icon||d||n+1,key:n,step:n,state:r,onClick:()=>i&&l?.(n),allowStepClick:i,completedIcon:t.props.completedIcon||f,progressIcon:t.props.progressIcon||p,color:t.props.color||m,iconSize:h,iconPosition:t.props.iconPosition||v,orientation:_})),_===`horizontal`&&n!==k.length-1&&e.push((0,H.createElement)(`div`,{...D(`separator`),"data-active":n<u||void 0,"data-orientation":_,key:`separator-${n}`})),e},[]),M=k[u]?.props?.children,N=A?.props?.children,P=u>k.length-1?N:M,ee=w?(0,U.jsxs)(U.Fragment,{children:[k.map((e,t)=>(0,U.jsx)(H.Activity,{mode:u===t?`visible`:`hidden`,children:(0,U.jsx)(`div`,{...D(`content`),children:e.props.children})},t)),A&&(0,U.jsx)(H.Activity,{mode:u>k.length-1?`visible`:`hidden`,children:(0,U.jsx)(`div`,{...D(`content`),children:A.props.children})})]}):P&&(0,U.jsx)(`div`,{...D(`content`),children:P});return(0,U.jsx)(Hy,{value:{getStyles:D,orientation:_,iconPosition:v},children:(0,U.jsxs)(q,{...D(`root`),size:y,...E,children:[(0,U.jsx)(q,{...D(`steps`),mod:{orientation:_,"icon-position":v,wrap:S&&_!==`vertical`},children:j}),ee]})})});Zy.classes=Gy,Zy.varsResolver=Xy,Zy.displayName=`@mantine/core/Stepper`,Zy.Completed=Wy,Zy.Step=Jy;var Qy=(0,H.createContext)(null),$y={hiddenInputValuesSeparator:`,`},eb=Li((e=>{let{value:t,defaultValue:n,onChange:r,size:i,wrapperProps:a,children:o,readOnly:s,name:c,hiddenInputValuesSeparator:l,hiddenInputProps:u,maxSelectedValues:d,disabled:f,...p}=W(`SwitchGroup`,$y,e),[m,h]=Yt({value:t,defaultValue:n,finalValue:[],onChange:r}),g=e=>{let t=e.currentTarget.value;if(s)return;let n=m.includes(t);!n&&d&&m.length>=d||h(n?m.filter(e=>e!==t):[...m,t])},_=e=>{if(f)return!0;if(!d)return!1;let t=m.includes(e),n=m.length>=d;return!t&&n},v=m.join(l);return(0,U.jsx)(Qy,{value:{value:m,onChange:g,size:i,isDisabled:_},children:(0,U.jsxs)(bf.Wrapper,{size:i,...a,...p,labelElement:`div`,__staticSelector:`SwitchGroup`,children:[(0,U.jsx)(Pp,{role:`group`,children:o}),(0,U.jsx)(`input`,{type:`hidden`,name:c,value:v,...u})]})})}));eb.classes=bf.Wrapper.classes,eb.displayName=`@mantine/core/SwitchGroup`;var tb={root:`m_5f93f3bb`,input:`m_926b4011`,track:`m_9307d992`,thumb:`m_93039a1d`,trackLabel:`m_8277e082`},nb={labelPosition:`right`,withThumbIndicator:!0},rb=Cn((e,{radius:t,color:n,size:r})=>({root:{"--switch-radius":t===void 0?void 0:st(t),"--switch-height":at(r,`switch-height`),"--switch-width":at(r,`switch-width`),"--switch-thumb-size":at(r,`switch-thumb-size`),"--switch-label-font-size":at(r,`switch-label-font-size`),"--switch-track-label-padding":at(r,`switch-track-label-padding`),"--switch-color":n?Un(n,e):void 0}})),ib=K(e=>{let t=W(`Switch`,nb,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,label:l,offLabel:u,onLabel:d,id:f,size:p,radius:m,wrapperProps:h,thumbIcon:g,checked:_,defaultChecked:v,onChange:y,labelPosition:b,description:x,error:S,disabled:C,variant:w,rootRef:T,mod:E,withThumbIndicator:D,attributes:O,...k}=t,A=(0,H.use)(Qy),j=p||A?.size,M=G({name:`Switch`,props:t,classes:tb,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:O,vars:s,varsResolver:rb}),{styleProps:N,rest:P}=li(k),ee=Rt(f),F={checked:A?.value.includes(P.value)??_,onChange:e=>{A?.onChange(e),y?.(e)}},I=C||A?.isDisabled?.(P.value),[te,ne]=Yt({value:F.checked??_,defaultValue:v,finalValue:!1});return(0,U.jsxs)(Zp,{...M(`root`),__staticSelector:`Switch`,__stylesApiProps:t,id:ee,size:j,labelPosition:b,label:l,description:x,error:S,disabled:I,bodyElement:`label`,labelElement:`span`,classNames:n,styles:a,unstyled:o,"data-checked":F.checked,variant:w,ref:T,mod:E,attributes:O,inert:P.inert,...N,...h,children:[(0,U.jsx)(`input`,{...P,...F,disabled:I,checked:te,"data-checked":F.checked,onChange:e=>{F.onChange?.(e),ne(e.currentTarget.checked)},id:ee,type:`checkbox`,role:`switch`,inert:P.inert,...M(`input`)}),(0,U.jsxs)(q,{"aria-hidden":`true`,component:`span`,mod:{error:S,"label-position":b,"without-labels":!d&&!u},...M(`track`),children:[(0,U.jsx)(q,{component:`span`,mod:{"reduce-motion":!0,"with-thumb-indicator":D&&!g},...M(`thumb`),children:g}),(0,U.jsx)(`span`,{...M(`trackLabel`),children:te?d:u})]})]})});ib.classes={...tb,...Xp},ib.varsResolver=rb,ib.displayName=`@mantine/core/Switch`,ib.Group=eb;var[ab,ob]=Je(`Table component was not found in the tree`),sb={table:`m_b23fa0ef`,th:`m_4e7aa4f3`,tr:`m_4e7aa4fd`,td:`m_4e7aa4ef`,tbody:`m_b2404537`,thead:`m_b242d975`,caption:`m_9e5a3ac7`,scrollContainer:`m_a100c15`,scrollContainerInner:`m_62259741`};function cb(e,t){if(!t)return;let n={};return t.columnBorder&&e.withColumnBorders&&(n[`data-with-column-border`]=!0),t.rowBorder&&e.withRowBorders&&(n[`data-with-row-border`]=!0),t.striped&&e.striped&&(n[`data-striped`]=e.striped),t.highlightOnHover&&e.highlightOnHover&&(n[`data-hover`]=!0),t.captionSide&&e.captionSide&&(n[`data-side`]=e.captionSide),t.stickyHeader&&e.stickyHeader&&(n[`data-sticky`]=!0),n}function lb(e,t){let n=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,r=K(r=>{let i=W(n,{},r),{classNames:a,className:o,style:s,styles:c,...l}=i,u=ob();return(0,U.jsx)(q,{component:e,...cb(u,t),...u.getStyles(e,{className:o,classNames:a,style:s,styles:c,props:i}),...l})});return r.displayName=`@mantine/core/${n}`,r.classes=sb,r}var ub=lb(`th`,{columnBorder:!0}),db=lb(`td`,{columnBorder:!0}),fb=lb(`tr`,{rowBorder:!0,striped:!0,highlightOnHover:!0}),pb=lb(`thead`,{stickyHeader:!0}),mb=lb(`tbody`),hb=lb(`tfoot`),gb=lb(`caption`,{captionSide:!0}),_b={type:`scrollarea`},vb=Cn((e,{minWidth:t,maxHeight:n,type:r})=>({scrollContainer:{"--table-min-width":V(t),"--table-max-height":V(n),"--table-overflow":r===`native`?`auto`:void 0}})),yb=K(e=>{let t=W(`TableScrollContainer`,_b,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,minWidth:l,maxHeight:u,type:d,scrollAreaProps:f,attributes:p,...m}=t,h=G({name:`TableScrollContainer`,classes:sb,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:vb,rootSelector:`scrollContainer`});return(0,U.jsx)(q,{component:d===`scrollarea`?sl:`div`,...d===`scrollarea`?u?{offsetScrollbars:`xy`,...f}:{offsetScrollbars:`x`,...f}:{},...h(`scrollContainer`),...m,children:(0,U.jsx)(`div`,{...h(`scrollContainerInner`),children:c})})});yb.classes=sb,yb.varsResolver=vb,yb.displayName=`@mantine/core/TableScrollContainer`;function bb({data:e}){return(0,U.jsxs)(U.Fragment,{children:[e.caption&&(0,U.jsx)(gb,{children:e.caption}),e.head&&(0,U.jsx)(pb,{children:(0,U.jsx)(fb,{children:e.head.map((e,t)=>(0,U.jsx)(ub,{children:e},t))})}),e.body&&(0,U.jsx)(mb,{children:e.body.map((e,t)=>(0,U.jsx)(fb,{children:e.map((e,t)=>(0,U.jsx)(db,{children:e},t))},t))}),e.foot&&(0,U.jsx)(hb,{children:(0,U.jsx)(fb,{children:e.foot.map((e,t)=>(0,U.jsx)(ub,{children:e},t))})})]})}bb.displayName=`@mantine/core/TableDataRenderer`;var xb={withRowBorders:!0,verticalSpacing:7},Sb=Cn((e,{layout:t,captionSide:n,horizontalSpacing:r,verticalSpacing:i,borderColor:a,stripedColor:o,highlightOnHoverColor:s,striped:c,highlightOnHover:l,stickyHeaderOffset:u,stickyHeader:d})=>({table:{"--table-layout":t,"--table-caption-side":n,"--table-horizontal-spacing":ot(r),"--table-vertical-spacing":ot(i),"--table-border-color":a?Un(a,e):void 0,"--table-striped-color":c&&o?Un(o,e):void 0,"--table-highlight-on-hover-color":l&&s?Un(s,e):void 0,"--table-sticky-header-offset":d?V(u):void 0}})),Cb=K(e=>{let t=W(`Table`,xb,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,horizontalSpacing:c,verticalSpacing:l,captionSide:u,stripedColor:d,highlightOnHoverColor:f,striped:p,highlightOnHover:m,withColumnBorders:h,withRowBorders:g,withTableBorder:_,borderColor:v,layout:y,data:b,children:x,stickyHeader:S,stickyHeaderOffset:C,mod:w,tabularNums:T,attributes:E,...D}=t,O=G({name:`Table`,props:t,className:r,style:i,classes:sb,classNames:n,styles:a,unstyled:o,attributes:E,rootSelector:`table`,vars:s,varsResolver:Sb});return(0,U.jsx)(ab,{value:{getStyles:O,stickyHeader:S,striped:p===!0?`odd`:p||void 0,highlightOnHover:m,withColumnBorders:h,withRowBorders:g,captionSide:u||`bottom`},children:(0,U.jsx)(q,{component:`table`,mod:[{"data-with-table-border":_,"data-tabular-nums":T},w],...O(`table`),...D,children:x||!!b&&(0,U.jsx)(bb,{data:b})})})});Cb.classes=sb,Cb.varsResolver=Sb,Cb.displayName=`@mantine/core/Table`,Cb.Td=db,Cb.Th=ub,Cb.Tr=fb,Cb.Thead=pb,Cb.Tbody=mb,Cb.Tfoot=hb,Cb.Caption=gb,Cb.ScrollContainer=yb,Cb.DataRenderer=bb;var[wb,Tb]=Je(`Tabs component was not found in the tree`),Eb={root:`m_89d60db1`,"list--default":`m_576c9d4`,list:`m_89d33d6d`,tab:`m_4ec4dce6`,panel:`m_b0c91715`,tabSection:`m_fc420b1f`,tabLabel:`m_42bbd1ae`,"tab--default":`m_539e827b`,"list--outline":`m_6772fbd5`,"tab--outline":`m_b59ab47c`,"tab--pills":`m_c3381914`},Db=K(e=>{let t=W(`TabsList`,null,e),{children:n,className:r,grow:i,justify:a,classNames:o,styles:s,style:c,mod:l,...u}=t,d=Tb();return(0,U.jsx)(q,{...d.getStyles(`list`,{className:r,style:c,classNames:o,styles:s,props:t,variant:d.variant}),role:`tablist`,variant:d.variant,mod:[{grow:i,orientation:d.orientation,placement:d.orientation===`vertical`&&d.placement,inverted:d.inverted},l],"aria-orientation":d.orientation,__vars:{"--tabs-justify":a},...u,children:n})});Db.classes=Eb,Db.displayName=`@mantine/core/TabsList`;var Ob=K(e=>{let t=W(`TabsPanel`,null,e),{children:n,className:r,value:i,classNames:a,styles:o,style:s,mod:c,keepMounted:l,...u}=t,d=sr(),f=Tb(),p=f.value===i,m=f.keepMounted||l,h=f.keepMountedMode!==`display-none`,g=m&&h&&d!==`test`?(0,U.jsx)(H.Activity,{mode:p?`visible`:`hidden`,children:n}):m||p?n:null;return(0,U.jsx)(q,{...f.getStyles(`panel`,{className:r,classNames:a,styles:o,style:[s,p?void 0:{display:`none`}],props:t}),mod:[{orientation:f.orientation},c],role:`tabpanel`,id:f.getPanelId(i),"aria-labelledby":f.getTabId(i),...u,children:g})});Ob.classes=Eb,Ob.displayName=`@mantine/core/TabsPanel`;var kb=K(e=>{let t=W(`TabsTab`,null,e),{className:n,children:r,rightSection:i,leftSection:a,value:o,onClick:s,onKeyDown:c,disabled:l,color:u,style:d,classNames:f,styles:p,vars:m,mod:h,tabIndex:g,..._}=t,v=wr(),{dir:y}=Ki(),b=Tb(),x=o===b.value,S=e=>{b.onChange(b.allowTabDeactivation&&o===b.value?null:o),s?.(e)},C={classNames:f,styles:p,props:t};return(0,U.jsxs)(dl,{...b.getStyles(`tab`,{className:n,style:d,variant:b.variant,...C}),disabled:l,unstyled:b.unstyled,variant:b.variant,mod:[{active:x,disabled:l,orientation:b.orientation,inverted:b.inverted,placement:b.orientation===`vertical`&&b.placement},h],role:`tab`,id:b.getTabId(o),"aria-selected":x,tabIndex:g===void 0?x||b.value===null?0:-1:g,"aria-controls":b.getPanelId(o),onClick:S,__vars:{"--tabs-color":u?Un(u,v):void 0},onKeyDown:et({siblingSelector:`[role="tab"]`,parentSelector:`[role="tablist"]`,activateOnFocus:b.activateTabWithKeyboard,loop:b.loop,orientation:b.orientation||`horizontal`,dir:y,onKeyDown:c}),..._,children:[a&&(0,U.jsx)(`span`,{...b.getStyles(`tabSection`,C),"data-position":`left`,children:a}),r&&(0,U.jsx)(`span`,{...b.getStyles(`tabLabel`,C),children:r}),i&&(0,U.jsx)(`span`,{...b.getStyles(`tabSection`,C),"data-position":`right`,children:i})]})});kb.classes=Eb,kb.displayName=`@mantine/core/TabsTab`;var Ab=`Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value`,jb={keepMounted:!0,keepMountedMode:`activity`,orientation:`horizontal`,loop:!0,activateTabWithKeyboard:!0,variant:`default`,placement:`left`},Mb=Cn((e,{radius:t,color:n,autoContrast:r})=>({root:{"--tabs-radius":st(t),"--tabs-color":Un(n,e),"--tabs-text-color":Zn(r,e)?Yn({color:n,theme:e,autoContrast:r}):void 0}})),Nb=K(e=>{let t=W(`Tabs`,jb,e),{defaultValue:n,value:r,onChange:i,orientation:a,children:o,loop:s,id:c,activateTabWithKeyboard:l,allowTabDeactivation:u,variant:d,color:f,radius:p,inverted:m,placement:h,keepMounted:g,keepMountedMode:_,classNames:v,styles:y,unstyled:b,className:x,style:S,vars:C,autoContrast:w,mod:T,attributes:E,...D}=t,O=Rt(c),[k,A]=Yt({value:r,defaultValue:n,finalValue:null,onChange:i}),j=G({name:`Tabs`,props:t,classes:Eb,className:x,style:S,classNames:v,styles:y,unstyled:b,attributes:E,vars:C,varsResolver:Mb});return(0,U.jsx)(wb,{value:{placement:h,value:k,orientation:a,id:O,loop:s,activateTabWithKeyboard:l,getTabId:Ye(`${O}-tab`,Ab),getPanelId:Ye(`${O}-panel`,Ab),onChange:A,allowTabDeactivation:u,variant:d,color:f,radius:p,inverted:m,keepMounted:g,keepMountedMode:_,unstyled:b,getStyles:j},children:(0,U.jsx)(q,{id:O,variant:d,mod:[{orientation:a,inverted:a===`horizontal`&&m,placement:a===`vertical`&&h},T],...j(`root`),...D,children:o})})});Nb.classes=Eb,Nb.varsResolver=Mb,Nb.displayName=`@mantine/core/Tabs`,Nb.Tab=kb,Nb.Panel=Ob,Nb.List=Db;function Pb({data:e,value:t}){let n=t.map(e=>e.trim().toLowerCase());return e.reduce((e,t)=>(nm(t)?e.push({group:t.group,items:t.items.filter(e=>n.indexOf(e.label.toLowerCase().trim())===-1)}):n.indexOf(t.label.toLowerCase().trim())===-1&&e.push(t),e),[])}function Fb(e,t){return e?t.split(RegExp(`[${e.join(``)}]`)).map(e=>e.trim()).filter(e=>e!==``):[t]}function Ib({splitChars:e,allowDuplicates:t,maxTags:n,value:r,currentTags:i,isDuplicate:a,onDuplicate:o}){let s=Fb(e,r),c=[];if(t)c.push(...i,...s);else{c.push(...i);for(let e of s)(a?e=>a(e,c):e=>c.some(t=>t.toLowerCase()===e.toLowerCase()))(e)?o?.(e):c.push(e)}return n?c.slice(0,n):c}var Lb={maxTags:1/0,acceptValueOnBlur:!0,splitChars:[`,`],hiddenInputValuesDivider:`,`,openOnFocus:!0,size:`sm`},Rb=K(e=>{let t=W(`TagsInput`,Lb,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,value:l,defaultValue:u,onChange:d,onKeyDown:f,maxTags:p,allowDuplicates:m,onDuplicate:h,variant:g,data:_,dropdownOpened:v,defaultDropdownOpened:y,onDropdownOpen:b,onDropdownClose:x,selectFirstOptionOnChange:S,selectFirstOptionOnDropdownOpen:C,onOptionSubmit:w,comboboxProps:T,filter:E,limit:D,withScrollArea:O,maxDropdownHeight:k,searchValue:A,defaultSearchValue:j,onSearchChange:M,readOnly:N,disabled:P,splitChars:ee,onFocus:F,onBlur:I,onPaste:te,radius:ne,rightSection:re,rightSectionWidth:ie,rightSectionPointerEvents:L,rightSectionProps:ae,leftSection:oe,leftSectionWidth:se,leftSectionPointerEvents:ce,leftSectionProps:le,inputContainer:ue,inputWrapperOrder:de,withAsterisk:fe,required:R,labelProps:pe,descriptionProps:me,errorProps:he,wrapperProps:ge,description:z,label:_e,error:ve,withErrorStyles:B,name:ye,form:be,id:xe,clearable:Se,clearSectionMode:Ce,clearButtonProps:we,hiddenInputProps:Te,hiddenInputValuesDivider:Ee,mod:De,renderOption:Oe,renderPill:ke,onRemove:Ae,onClear:je,onMaxTags:Me,scrollAreaProps:Ne,acceptValueOnBlur:Pe,isDuplicate:Fe,openOnFocus:Ie,attributes:Le,ref:Re,loading:ze,loadingPosition:Be,...Ve}=t,He=Rt(xe),Ue=tp(_),V=np(Ue),We=(0,H.useRef)(null),Ge=Jt(We,Re),Ke=Ap({opened:v,defaultOpened:y,onDropdownOpen:()=>{b?.(),C&&Ke.selectFirstOption()},onDropdownClose:()=>{x?.(),Ke.resetSelectedOption()}}),{styleProps:qe,rest:{type:Je,autoComplete:Ye,...Xe}}=li(Ve),[Ze,Qe]=Yt({value:l,defaultValue:u,finalValue:[],onChange:d}),[$e,et]=Yt({value:A,defaultValue:j,finalValue:``,onChange:M}),tt=e=>{et(e),Ke.resetSelectedOption()},nt=G({name:`TagsInput`,classes:{},props:t,classNames:n,styles:a,unstyled:o}),{resolvedClassNames:rt,resolvedStyles:it}=Ur({props:t,styles:a,classNames:n}),at=e=>{if((Fe?Fe(e,Ze):Ze.some(t=>t.toLowerCase()===e.toLowerCase()))&&(h?.(e),!m)){tt(``);return}if(Ze.length>=p){Me?.(e);return}w?.(e),tt(``),e.length>0&&Qe([...Ze,e])},ot=e=>{if(f?.(e),e.isPropagationStopped())return;let t=$e.trim(),{length:n}=t;if(ee.includes(e.key)&&n>0&&(Qe(Ib({splitChars:ee,allowDuplicates:m,maxTags:p,value:$e,currentTags:Ze,isDuplicate:Fe,onDuplicate:h})),tt(``),e.preventDefault()),e.key===`Enter`&&n>0&&!e.nativeEvent.isComposing){if(e.preventDefault(),document.querySelector(`#${Ke.listId} [data-combobox-option][data-combobox-selected]`))return;at(t)}e.key===`Backspace`&&n===0&&Ze.length>0&&!e.nativeEvent.isComposing&&!N&&(Ae?.(Ze[Ze.length-1]),Qe(Ze.slice(0,Ze.length-1)))},st=e=>{te?.(e),e.preventDefault(),e.clipboardData&&(Qe(Ib({splitChars:ee,allowDuplicates:m,maxTags:p,value:`${$e}${e.clipboardData.getData(`text/plain`)}`,currentTags:Ze,isDuplicate:Fe,onDuplicate:h})),tt(``))},ct=Ze.map((e,t)=>{let n=()=>{let n=Ze.slice();n.splice(t,1),Qe(n),Ae?.(e)};return ke?(0,U.jsx)(H.Fragment,{children:ke({option:V[e]||{value:e,label:e,disabled:!1},value:e,onRemove:n,disabled:P||N})},`${e}-${t}`):(0,U.jsx)(wg,{withRemoveButton:!N,onRemove:n,unstyled:o,disabled:P,attributes:Le,...nt(`pill`),children:e},`${e}-${t}`)});(0,H.useEffect)(()=>{S&&Ke.selectFirstOption()},[S,Ze,$e]);let lt=(0,U.jsx)(Np.ClearButton,{...we,onClear:()=>{Qe([]),tt(``),We.current?.focus(),Ke.openDropdown(),je?.()}});return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(Np,{store:Ke,classNames:rt,styles:it,unstyled:o,size:c,readOnly:N,__staticSelector:`TagsInput`,attributes:Le,onOptionSubmit:e=>{w?.(e),tt(``),Ze.length>=p?Me?.(e):Qe([...Ze,V[e].value]),Ke.resetSelectedOption()},...T,children:[(0,U.jsx)(Np.DropdownTarget,{children:(0,U.jsx)(kg,{...qe,__staticSelector:`TagsInput`,classNames:rt,styles:it,unstyled:o,size:c,className:r,style:i,variant:g,disabled:P,radius:ne,rightSection:re,__clearSection:lt,__clearable:Se&&Ze.length>0&&!P&&!N,__clearSectionMode:Ce,rightSectionWidth:ie,rightSectionPointerEvents:L,rightSectionProps:ae,leftSection:oe,leftSectionWidth:se,leftSectionPointerEvents:ce,leftSectionProps:le,loading:ze,loadingPosition:Be,inputContainer:ue,inputWrapperOrder:de,withAsterisk:fe,required:R,labelProps:pe,descriptionProps:me,errorProps:he,wrapperProps:ge,description:z,label:_e,error:ve,withErrorStyles:B,__stylesApiProps:{...t,multiline:!0},id:He,mod:De,attributes:Le,children:(0,U.jsxs)(wg.Group,{disabled:P,unstyled:o,...nt(`pillsList`),children:[ct,(0,U.jsx)(Np.EventsTarget,{autoComplete:Ye,withExpandedAttribute:!0,children:(0,U.jsx)(kg.Field,{...Xe,ref:Ge,...nt(`inputField`),unstyled:o,onKeyDown:ot,onFocus:e=>{F?.(e),Ie&&Ke.openDropdown()},onBlur:e=>{I?.(e),Pe&&at($e),Ke.closeDropdown()},onPaste:st,value:$e,onChange:e=>tt(e.currentTarget.value),required:R&&Ze.length===0,disabled:P,readOnly:N,id:He})})]})})}),(0,U.jsx)(cm,{data:Pb({data:Ue,value:Ze}),hidden:N||P,filter:E,search:$e,limit:D,hiddenWhenEmpty:!0,withScrollArea:O,maxDropdownHeight:k,unstyled:o,labelId:_e?`${He}-label`:void 0,"aria-label":_e?void 0:Ve[`aria-label`],renderOption:Oe,scrollAreaProps:Ne})]}),(0,U.jsx)(Np.HiddenInput,{name:ye,form:be,value:Ze,valuesDivider:Ee,disabled:P,...Te})]})});Rb.classes={...Cf.classes,...Np.classes},Rb.displayName=`@mantine/core/TagsInput`;var zb=K(e=>(0,U.jsx)(Cf,{component:`input`,...W(`TextInput`,null,e),__staticSelector:`TextInput`}));zb.classes=Cf.classes,zb.displayName=`@mantine/core/TextInput`;var Bb={root:`m_7341320d`},Vb=Cn((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ti-size":at(t,`ti-size`),"--ti-radius":n===void 0?void 0:st(n),"--ti-bg":a||r?s.background:void 0,"--ti-color":a||r?s.color:void 0,"--ti-bd":a||r?s.border:void 0}}}),Hb=K(e=>{let t=W(`ThemeIcon`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,autoContrast:c,attributes:l,...u}=t;return(0,U.jsx)(q,{...G({name:`ThemeIcon`,classes:Bb,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:l,vars:s,varsResolver:Vb})(`root`),...u})});Hb.classes=Bb,Hb.varsResolver=Vb,Hb.displayName=`@mantine/core/ThemeIcon`;var Ub=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],Wb=[`xs`,`sm`,`md`,`lg`,`xl`];function Gb(e,t){let n=t===void 0?`h${e}`:t;return Ub.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:Wb.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:V(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var Kb={root:`m_8a5d1357`},qb={order:1},Jb=Cn((e,{order:t,size:n,lineClamp:r,textWrap:i})=>{let a=Gb(t||1,n);return{root:{"--title-fw":a.fontWeight,"--title-lh":a.lineHeight,"--title-fz":a.fontSize,"--title-line-clamp":typeof r==`number`?r.toString():void 0,"--title-text-wrap":i}}}),Yb=K(e=>{let t=W(`Title`,qb,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,order:s,vars:c,size:l,variant:u,lineClamp:d,textWrap:f,mod:p,attributes:m,...h}=t,g=G({name:`Title`,props:t,classes:Kb,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:m,vars:c,varsResolver:Jb});return[1,2,3,4,5,6].includes(s)?(0,U.jsx)(q,{...g(`root`),component:`h${s}`,variant:u,mod:[{order:s,"data-line-clamp":typeof d==`number`},p],size:l,...h}):null});Yb.classes=Kb,Yb.varsResolver=Jb,Yb.displayName=`@mantine/core/Title`;var Xb=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(){}},Zb=new class extends Xb{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},Qb={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},$b=new class{#e=Qb;#t=!1;setTimeoutProvider(e){process.env.NODE_ENV!==`production`&&this.#t&&e!==this.#e&&console.error(`[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.`,{previous:this.#e,provider:e}),this.#e=e,process.env.NODE_ENV!==`production`&&(this.#t=!1)}setTimeout(e,t){return process.env.NODE_ENV!==`production`&&(this.#t=!0),this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return process.env.NODE_ENV!==`production`&&(this.#t=!0),this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function ex(e){setTimeout(e,0)}var tx=typeof window>`u`||`Deno`in globalThis;function nx(){}function rx(e,t){return typeof e==`function`?e(t):e}function ix(e){return typeof e==`number`&&e>=0&&e!==1/0}function ax(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ox(e,t){return typeof e==`function`?e(t):e}function sx(e,t){return typeof e==`function`?e(t):e}function cx(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==ux(o,t.options))return!1}else if(!fx(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function lx(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(dx(t.options.mutationKey)!==dx(a))return!1}else if(!fx(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function ux(e,t){return(t?.queryKeyHashFn||dx)(e)}function dx(e){return JSON.stringify(e,(e,t)=>_x(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function fx(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>fx(e[n],t[n])):!1}var px=Object.prototype.hasOwnProperty;function mx(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=gx(e)&&gx(t);if(!r&&!(_x(e)&&_x(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:px.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=mx(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function hx(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function gx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _x(e){if(!vx(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!vx(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function vx(e){return Object.prototype.toString.call(e)===`[object Object]`}function yx(e){return new Promise(t=>{$b.setTimeout(t,e)})}function bx(e,t,n){if(typeof n.structuralSharing==`function`)return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!==`production`)try{return mx(e,t)}catch(e){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${e}`),e}return mx(e,t)}return t}function xx(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Sx(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Cx=Symbol();function wx(e,t){return process.env.NODE_ENV!==`production`&&e.queryFn===Cx&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Cx?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Tx(e,t){return typeof e==`function`?e(...t):!!e}function Ex(e,t,n){let r=!1,i;return Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var Dx=(()=>{let e=()=>tx;return{isServer(){return e()},setIsServer(t){e=t}}})();function Ox(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var kx=ex;function Ax(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=kx,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var jx=Ax(),Mx=new class extends Xb{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Nx(e){return Math.min(1e3*2**e,3e4)}function Px(e){return(e??`online`)===`online`?Mx.isOnline():!0}var Fx=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Ix(e){let t=!1,n=0,r,i=Ox(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Fx(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>Zb.isFocused()&&(e.networkMode===`always`||Mx.isOnline())&&e.canRun(),u=()=>Px(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(Dx.isServer()?0:3),o=e.retryDelay??Nx,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),yx(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var Lx=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ix(this.gcTime)&&(this.#e=$b.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Dx.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e&&=($b.clearTimeout(this.#e),void 0)}},Rx=class extends Lx{#e;#t;#n;#r;#i;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Vx(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Vx(this.options);e.data!==void 0&&(this.setState(Bx(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#n.remove(this)}setData(e,t){let n=bx(this.state.data,e,this.options);return this.#c({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#c({type:`setState`,state:e,setStateOptions:t})}cancel(e){let t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(nx).catch(nx):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>sx(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Cx||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ox(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!ax(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#o||this.#s()?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#s(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#c({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#i?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}process.env.NODE_ENV!==`production`&&(Array.isArray(this.options.queryKey)||console.error(`As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']`));let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},i=()=>{let e=wx(this.options,t),n=(()=>{let e={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#o=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(e),e})();this.options.behavior?.onFetch(a,this),this.#t=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#c({type:`fetch`,meta:a.fetchOptions?.meta}),this.#i=Ix({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Fx&&e.revert&&this.setState({...this.#t,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#c({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#c({type:`pause`})},onContinue:()=>{this.#c({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#i.start();if(e===void 0)throw process.env.NODE_ENV!==`production`&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#n.config.onSuccess?.(e,this),this.#n.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Fx){if(e.silent)return this.#i.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#c({type:`error`,error:e}),this.#n.config.onError?.(e,this),this.#n.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#c(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...zx(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Bx(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),jx.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#n.notify({query:this,type:`updated`,action:e})})}};function zx(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Px(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Bx(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Vx(e){let 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`}}function Hx(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Ex(e,()=>t.signal,()=>n=!0)},u=wx(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?Sx:xx;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?Wx:Ux,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Ux(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Ux(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Wx(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Gx=class extends Lx{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Kx(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Ix({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),jx.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Kx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var qx=class extends Xb{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Gx({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Jx(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Jx(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Jx(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=Jx(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){jx.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>lx(t,e))}findAll(e={}){return this.getAll().filter(t=>lx(e,t))}notify(e){jx.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return jx.batch(()=>Promise.all(e.map(e=>e.continue().catch(nx))))}};function Jx(e){return e.options.scope?.id}var Yx=class extends Xb{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),hx(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&dx(t.mutationKey)!==dx(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Kx();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){jx.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},Xx=class extends Xb{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??ux(r,t),a=this.get(i);return a||(a=new Rx({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){jx.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>cx(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>cx(e,t)):t}notify(e){jx.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){jx.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){jx.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Zx=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Xx,this.#t=e.mutationCache||new qx,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Zb.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Mx.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ox(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=rx(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return jx.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;jx.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return jx.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=jx.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(nx).catch(nx)}invalidateQueries(e,t={}){return jx.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=jx.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(nx)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(nx)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(ox(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(nx).catch(nx)}fetchInfiniteQuery(e){return e.behavior=Hx(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(nx).catch(nx)}ensureInfiniteQueryData(e){return e.behavior=Hx(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Mx.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(dx(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{fx(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(dx(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{fx(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=ux(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===Cx&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Qx=H.createContext(void 0),$x=e=>{let t=H.useContext(Qx);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},eS=({client:e,children:t})=>(H.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,U.jsx)(Qx.Provider,{value:e,children:t}));function tS(e,t){let n=$x(t),[r]=H.useState(()=>new Yx(n,e));H.useEffect(()=>{r.setOptions(e)},[r,e]);let i=H.useSyncExternalStore(H.useCallback(e=>r.subscribe(jx.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=H.useCallback((e,t)=>{r.mutate(e,t).catch(nx)},[r]);if(i.error&&Tx(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function nS(e,t){return function(){return e.apply(t,arguments)}}var{toString:rS}=Object.prototype,{getPrototypeOf:iS}=Object,{iterator:aS,toStringTag:oS}=Symbol,sS=(e=>t=>{let n=rS.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),cS=e=>(e=e.toLowerCase(),t=>sS(t)===e),lS=e=>t=>typeof t===e,{isArray:uS}=Array,dS=lS(`undefined`);function fS(e){return e!==null&&!dS(e)&&e.constructor!==null&&!dS(e.constructor)&&gS(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var pS=cS(`ArrayBuffer`);function mS(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&pS(e.buffer),t}var hS=lS(`string`),gS=lS(`function`),_S=lS(`number`),vS=e=>typeof e==`object`&&!!e,yS=e=>e===!0||e===!1,bS=e=>{if(sS(e)!==`object`)return!1;let t=iS(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(oS in e)&&!(aS in e)},xS=e=>{if(!vS(e)||fS(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},SS=cS(`Date`),CS=cS(`File`),wS=e=>!!(e&&e.uri!==void 0),TS=e=>e&&e.getParts!==void 0,ES=cS(`Blob`),DS=cS(`FileList`),OS=e=>vS(e)&&gS(e.pipe);function kS(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var AS=kS(),jS=AS.FormData===void 0?void 0:AS.FormData,MS=e=>{let t;return e&&(jS&&e instanceof jS||gS(e.append)&&((t=sS(e))===`formdata`||t===`object`&&gS(e.toString)&&e.toString()===`[object FormData]`))},NS=cS(`URLSearchParams`),[PS,FS,IS,LS]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(cS),RS=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function zS(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),uS(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(fS(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function BS(e,t){if(fS(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}var VS=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,HS=e=>!dS(e)&&e!==VS;function US(){let{caseless:e,skipUndefined:t}=HS(this)&&this||{},n={},r=(r,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=e&&BS(n,i)||i;bS(n[a])&&bS(r)?n[a]=US(n[a],r):bS(r)?n[a]=US({},r):uS(r)?n[a]=r.slice():(!t||!dS(r))&&(n[a]=r)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&zS(arguments[e],r);return n}var WS=(e,t,n,{allOwnKeys:r}={})=>(zS(t,(t,r)=>{n&&gS(t)?Object.defineProperty(e,r,{value:nS(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),GS=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),KS=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,`constructor`,{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,`super`,{value:t.prototype}),n&&Object.assign(e.prototype,n)},qS=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&iS(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},JS=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},YS=e=>{if(!e)return null;if(uS(e))return e;let t=e.length;if(!_S(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},XS=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&iS(Uint8Array)),ZS=(e,t)=>{let n=(e&&e[aS]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},QS=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},$S=cS(`HTMLFormElement`),eC=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),tC=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),nC=cS(`RegExp`),rC=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};zS(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},iC=e=>{rC(e,(t,n)=>{if(gS(e)&&[`arguments`,`caller`,`callee`].indexOf(n)!==-1)return!1;let r=e[n];if(gS(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},aC=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return uS(e)?r(e):r(String(e).split(t)),n},oC=()=>{},sC=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function cC(e){return!!(e&&gS(e.append)&&e[oS]===`FormData`&&e[aS])}var lC=e=>{let t=Array(10),n=(e,r)=>{if(vS(e)){if(t.indexOf(e)>=0)return;if(fS(e))return e;if(!(`toJSON`in e)){t[r]=e;let i=uS(e)?[]:{};return zS(e,(e,t)=>{let a=n(e,r+1);!dS(a)&&(i[t]=a)}),t[r]=void 0,i}}return e};return n(e,0)},uC=cS(`AsyncFunction`),dC=e=>e&&(vS(e)||gS(e))&&gS(e.then)&&gS(e.catch),fC=((e,t)=>e?setImmediate:t?((e,t)=>(VS.addEventListener(`message`,({source:n,data:r})=>{n===VS&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),VS.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,gS(VS.postMessage)),Z={isArray:uS,isArrayBuffer:pS,isBuffer:fS,isFormData:MS,isArrayBufferView:mS,isString:hS,isNumber:_S,isBoolean:yS,isObject:vS,isPlainObject:bS,isEmptyObject:xS,isReadableStream:PS,isRequest:FS,isResponse:IS,isHeaders:LS,isUndefined:dS,isDate:SS,isFile:CS,isReactNativeBlob:wS,isReactNative:TS,isBlob:ES,isRegExp:nC,isFunction:gS,isStream:OS,isURLSearchParams:NS,isTypedArray:XS,isFileList:DS,forEach:zS,merge:US,extend:WS,trim:RS,stripBOM:GS,inherits:KS,toFlatObject:qS,kindOf:sS,kindOfTest:cS,endsWith:JS,toArray:YS,forEachEntry:ZS,matchAll:QS,isHTMLForm:$S,hasOwnProperty:tC,hasOwnProp:tC,reduceDescriptors:rC,freezeMethods:iC,toObjectSet:aC,toCamelCase:eC,noop:oC,toFiniteNumber:sC,findKey:BS,global:VS,isContextDefined:HS,isSpecCompliantForm:cC,toJSONObject:lC,isAsyncFn:uC,isThenable:dC,setImmediate:fC,asap:typeof queueMicrotask<`u`?queueMicrotask.bind(VS):typeof process<`u`&&process.nextTick||fC,isIterable:e=>e!=null&&gS(e[aS])},pC=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,`message`,{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Z.toJSONObject(this.config),code:this.code,status:this.status}}};pC.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,pC.ERR_BAD_OPTION=`ERR_BAD_OPTION`,pC.ECONNABORTED=`ECONNABORTED`,pC.ETIMEDOUT=`ETIMEDOUT`,pC.ERR_NETWORK=`ERR_NETWORK`,pC.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,pC.ERR_DEPRECATED=`ERR_DEPRECATED`,pC.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,pC.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,pC.ERR_CANCELED=`ERR_CANCELED`,pC.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,pC.ERR_INVALID_URL=`ERR_INVALID_URL`;function mC(e){return Z.isPlainObject(e)||Z.isArray(e)}function hC(e){return Z.endsWith(e,`[]`)?e.slice(0,-2):e}function gC(e,t,n){return e?e.concat(t).map(function(e,t){return e=hC(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function _C(e){return Z.isArray(e)&&!e.some(mC)}var vC=Z.toFlatObject(Z,{},null,function(e){return/^is[A-Z]/.test(e)});function yC(e,t,n){if(!Z.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=Z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Z.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||l,a=n.dots,o=n.indexes,s=(n.Blob||typeof Blob<`u`&&Blob)&&Z.isSpecCompliantForm(t);if(!Z.isFunction(i))throw TypeError(`visitor must be a function`);function c(e){if(e===null)return``;if(Z.isDate(e))return e.toISOString();if(Z.isBoolean(e))return e.toString();if(!s&&Z.isBlob(e))throw new pC(`Blob is not supported. Use a Buffer instead.`);return Z.isArrayBuffer(e)||Z.isTypedArray(e)?s&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function l(e,n,i){let s=e;if(Z.isReactNative(t)&&Z.isReactNativeBlob(e))return t.append(gC(i,n,a),c(e)),!1;if(e&&!i&&typeof e==`object`){if(Z.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Z.isArray(e)&&_C(e)||(Z.isFileList(e)||Z.endsWith(n,`[]`))&&(s=Z.toArray(e)))return n=hC(n),s.forEach(function(e,r){!(Z.isUndefined(e)||e===null)&&t.append(o===!0?gC([n],r,a):o===null?n:n+`[]`,c(e))}),!1}return mC(e)?!0:(t.append(gC(i,n,a),c(e)),!1)}let u=[],d=Object.assign(vC,{defaultVisitor:l,convertValue:c,isVisitable:mC});function f(e,n){if(!Z.isUndefined(e)){if(u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),Z.forEach(e,function(e,r){(!(Z.isUndefined(e)||e===null)&&i.call(t,e,Z.isString(r)?r.trim():r,n,d))===!0&&f(e,n?n.concat(r):[r])}),u.pop()}}if(!Z.isObject(e))throw TypeError(`data must be an object`);return f(e),t}function bC(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`,"%00":`\0`};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function xC(e,t){this._pairs=[],e&&yC(e,this,t)}var SC=xC.prototype;SC.append=function(e,t){this._pairs.push([e,t])},SC.toString=function(e){let t=e?function(t){return e.call(this,t,bC)}:bC;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function CC(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function wC(e,t,n){if(!t)return e;let r=n&&n.encode||CC,i=Z.isFunction(n)?{serialize:n}:n,a=i&&i.serialize,o;if(o=a?a(t,i):Z.isURLSearchParams(t)?t.toString():new xC(t,i).toString(r),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var TC=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){Z.forEach(this.handlers,function(t){t!==null&&e(t)})}},EC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},DC={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:xC,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},OC=s({hasBrowserEnv:()=>kC,hasStandardBrowserEnv:()=>jC,hasStandardBrowserWebWorkerEnv:()=>MC,navigator:()=>AC,origin:()=>NC}),kC=typeof window<`u`&&typeof document<`u`,AC=typeof navigator==`object`&&navigator||void 0,jC=kC&&(!AC||[`ReactNative`,`NativeScript`,`NS`].indexOf(AC.product)<0),MC=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,NC=kC&&window.location.href||`http://localhost`,PC={...OC,...DC};function FC(e,t){return yC(e,new PC.classes.URLSearchParams,{visitor:function(e,t,n,r){return PC.isNode&&Z.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}function IC(e){return Z.matchAll(/\w+|\[(\w*)]/g,e).map(e=>e[0]===`[]`?``:e[1]||e[0])}function LC(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function RC(e){function t(e,n,r,i){let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&Z.isArray(r)?r.length:a,s?(Z.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!o):((!r[a]||!Z.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&Z.isArray(r[a])&&(r[a]=LC(r[a])),!o)}if(Z.isFormData(e)&&Z.isFunction(e.entries)){let n={};return Z.forEachEntry(e,(e,r)=>{t(IC(e),r,n,0)}),n}return null}function zC(e,t,n){if(Z.isString(e))try{return(t||JSON.parse)(e),Z.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var BC={transitional:EC,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=Z.isObject(e);if(i&&Z.isHTMLForm(e)&&(e=new FormData(e)),Z.isFormData(e))return r?JSON.stringify(RC(e)):e;if(Z.isArrayBuffer(e)||Z.isBuffer(e)||Z.isStream(e)||Z.isFile(e)||Z.isBlob(e)||Z.isReadableStream(e))return e;if(Z.isArrayBufferView(e))return e.buffer;if(Z.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return FC(e,this.formSerializer).toString();if((a=Z.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let t=this.env&&this.env.FormData;return yC(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType(`application/json`,!1),zC(e)):e}],transformResponse:[function(e){let t=this.transitional||BC.transitional,n=t&&t.forcedJSONParsing,r=this.responseType===`json`;if(Z.isResponse(e)||Z.isReadableStream(e))return e;if(e&&Z.isString(e)&&(n&&!this.responseType||r)){let n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n)throw e.name===`SyntaxError`?pC.from(e,pC.ERR_BAD_RESPONSE,this,null,this.response):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:PC.classes.FormData,Blob:PC.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};Z.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`],e=>{BC.headers[e]={}});var VC=Z.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),HC=e=>{let t={},n,r,i;return e&&e.split(`
315
+ `).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&&VC[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t},UC=Symbol(`internals`);function WC(e){return e&&String(e).trim().toLowerCase()}function GC(e){return e===!1||e==null?e:Z.isArray(e)?e.map(GC):String(e).replace(/[\r\n]+$/,``)}function KC(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var qC=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function JC(e,t,n,r,i){if(Z.isFunction(r))return r.call(this,t,n);if(i&&(t=n),Z.isString(t)){if(Z.isString(r))return t.indexOf(r)!==-1;if(Z.isRegExp(r))return r.test(t)}}function YC(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function XC(e,t){let n=Z.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var ZC=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=WC(t);if(!i)throw Error(`header name must be a non-empty string`);let a=Z.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=GC(e))}let a=(e,t)=>Z.forEach(e,(e,n)=>i(e,n,t));if(Z.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(Z.isString(e)&&(e=e.trim())&&!qC(e))a(HC(e),t);else if(Z.isObject(e)&&Z.isIterable(e)){let n={},r,i;for(let t of e){if(!Z.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);n[i=t[0]]=(r=n[i])?Z.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=WC(e),e){let n=Z.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return KC(e);if(Z.isFunction(t))return t.call(this,e,n);if(Z.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=WC(e),e){let n=Z.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||JC(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=WC(e),e){let i=Z.findKey(n,e);i&&(!t||JC(n,n[i],i,t))&&(delete n[i],r=!0)}}return Z.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||JC(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return Z.forEach(this,(r,i)=>{let a=Z.findKey(n,i);if(a){t[a]=GC(r),delete t[i];return}let o=e?YC(i):String(i).trim();o!==i&&delete t[i],t[o]=GC(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return Z.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&Z.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
316
+ `)}getSetCookie(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[UC]=this[UC]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=WC(e);t[r]||(XC(n,e),t[r]=!0)}return Z.isArray(e)?e.forEach(r):r(e),this}};ZC.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),Z.reduceDescriptors(ZC.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Z.freezeMethods(ZC);function QC(e,t){let n=this||BC,r=t||n,i=ZC.from(r.headers),a=r.data;return Z.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function $C(e){return!!(e&&e.__CANCEL__)}var ew=class extends pC{constructor(e,t,n){super(e??`canceled`,pC.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function tw(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new pC(`Request failed with status code `+n.status,[pC.ERR_BAD_REQUEST,pC.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function nw(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||``}function rw(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function iw(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var aw=(e,t,n=3)=>{let r=0,i=rw(50,250);return iw(n=>{let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=a-r,c=i(s),l=a<=o;r=a,e({loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:c||void 0,estimated:c&&o&&l?(o-a)/c:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},ow=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},sw=e=>(...t)=>Z.asap(()=>e(...t)),cw=PC.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,PC.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(PC.origin),PC.navigator&&/(msie|trident)/i.test(PC.navigator.userAgent)):()=>!0,lw=PC.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];Z.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Z.isString(r)&&s.push(`path=${r}`),Z.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),Z.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.match(RegExp(`(?:^|; )`+e+`=([^;]*)`));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function uw(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function dw(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}function fw(e,t,n){let r=!uw(t);return e&&(r||n==0)?dw(e,t):t}var pw=e=>e instanceof ZC?{...e}:e;function mw(e,t){t||={};let n={};function r(e,t,n,r){return Z.isPlainObject(e)&&Z.isPlainObject(t)?Z.merge.call({caseless:r},e,t):Z.isPlainObject(t)?Z.merge({},t):Z.isArray(t)?t.slice():t}function i(e,t,n,i){if(!Z.isUndefined(t))return r(e,t,n,i);if(!Z.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!Z.isUndefined(t))return r(void 0,t)}function o(e,t){if(!Z.isUndefined(t))return r(void 0,t);if(!Z.isUndefined(e))return r(void 0,e)}function s(n,i,a){if(a in t)return r(n,i);if(a in e)return r(void 0,n)}let c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>i(pw(e),pw(t),n,!0)};return Z.forEach(Object.keys({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=Z.hasOwnProp(c,r)?c[r]:i,o=a(e[r],t[r],r);Z.isUndefined(o)&&a!==s||(n[r]=o)}),n}var hw=e=>{let t=mw({},e),{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=ZC.from(o),t.url=wC(fw(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set(`Authorization`,`Basic `+btoa((s.username||``)+`:`+(s.password?unescape(encodeURIComponent(s.password)):``))),Z.isFormData(n)){if(PC.hasStandardBrowserEnv||PC.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(Z.isFunction(n.getHeaders)){let e=n.getHeaders(),t=[`content-type`,`content-length`];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&o.set(e,n)})}}if(PC.hasStandardBrowserEnv&&(r&&Z.isFunction(r)&&(r=r(t)),r||r!==!1&&cw(t.url))){let e=i&&a&&lw.read(a);e&&o.set(i,e)}return t},gw=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=hw(e),i=r.data,a=ZC.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=ZC.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());tw(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf(`file:`)===0)||setTimeout(g)},h.onabort=function(){h&&=(n(new pC(`Request aborted`,pC.ECONNABORTED,e,h)),null)},h.onerror=function(t){let r=new pC(t&&t.message?t.message:`Network Error`,pC.ERR_NETWORK,e,h);r.event=t||null,n(r),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||EC;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new pC(t,i.clarifyTimeoutError?pC.ETIMEDOUT:pC.ECONNABORTED,e,h)),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&Z.forEach(a.toJSON(),function(e,t){h.setRequestHeader(t,e)}),Z.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=aw(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=aw(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new ew(null,e,h):t),h.abort(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=nw(r.url);if(_&&PC.protocols.indexOf(_)===-1){n(new pC(`Unsupported protocol `+_+`:`,pC.ERR_BAD_REQUEST,e));return}h.send(i||null)})},_w=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n=new AbortController,r,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof pC?t:new ew(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new pC(`timeout of ${t}ms exceeded`,pC.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>e.addEventListener(`abort`,i));let{signal:s}=n;return s.unsubscribe=()=>Z.asap(o),s}},vw=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},yw=async function*(e,t){for await(let n of bw(e))yield*vw(n,t)},bw=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},xw=(e,t,n,r)=>{let i=yw(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},Sw=64*1024,{isFunction:Cw}=Z,ww=(({Request:e,Response:t})=>({Request:e,Response:t}))(Z.global),{ReadableStream:Tw,TextEncoder:Ew}=Z.global,Dw=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Ow=e=>{e=Z.merge.call({skipUndefined:!0},ww,e);let{fetch:t,Request:n,Response:r}=e,i=t?Cw(t):typeof fetch==`function`,a=Cw(n),o=Cw(r);if(!i)return!1;let s=i&&Cw(Tw),c=i&&(typeof Ew==`function`?(e=>t=>e.encode(t))(new Ew):async e=>new Uint8Array(await new n(e).arrayBuffer())),l=a&&s&&Dw(()=>{let e=!1,t=new Tw,r=new n(PC.origin,{body:t,method:`POST`,get duplex(){return e=!0,`half`}}).headers.has(`Content-Type`);return t.cancel(),e&&!r}),u=o&&s&&Dw(()=>Z.isReadableStream(new r(``).body)),d={stream:u&&(e=>e.body)};i&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new pC(`Response type '${e}' is not supported`,pC.ERR_NOT_SUPPORT,n)})});let f=async e=>{if(e==null)return 0;if(Z.isBlob(e))return e.size;if(Z.isSpecCompliantForm(e))return(await new n(PC.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(Z.isArrayBufferView(e)||Z.isArrayBuffer(e))return e.byteLength;if(Z.isURLSearchParams(e)&&(e+=``),Z.isString(e))return(await c(e)).byteLength},p=async(e,t)=>Z.toFiniteNumber(e.getContentLength())??f(t);return async e=>{let{url:i,method:o,data:s,signal:c,cancelToken:f,timeout:m,onDownloadProgress:h,onUploadProgress:g,responseType:_,headers:v,withCredentials:y=`same-origin`,fetchOptions:b}=hw(e),x=t||fetch;_=_?(_+``).toLowerCase():`text`;let S=_w([c,f&&f.toAbortSignal()],m),C=null,w=S&&S.unsubscribe&&(()=>{S.unsubscribe()}),T;try{if(g&&l&&o!==`get`&&o!==`head`&&(T=await p(v,s))!==0){let e=new n(i,{method:`POST`,body:s,duplex:`half`}),t;if(Z.isFormData(s)&&(t=e.headers.get(`content-type`))&&v.setContentType(t),e.body){let[t,n]=ow(T,aw(sw(g)));s=xw(e.body,Sw,t,n)}}Z.isString(y)||(y=y?`include`:`omit`);let t=a&&`credentials`in n.prototype,c={...b,signal:S,method:o.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:`half`,credentials:t?y:void 0};C=a&&new n(i,c);let f=await(a?x(C,b):x(i,c)),m=u&&(_===`stream`||_===`response`);if(u&&(h||m&&w)){let e={};[`status`,`statusText`,`headers`].forEach(t=>{e[t]=f[t]});let t=Z.toFiniteNumber(f.headers.get(`content-length`)),[n,i]=h&&ow(t,aw(sw(h),!0))||[];f=new r(xw(f.body,Sw,n,()=>{i&&i(),w&&w()}),e)}_||=`text`;let E=await d[Z.findKey(d,_)||`text`](f,e);return!m&&w&&w(),await new Promise((t,n)=>{tw(t,n,{data:E,headers:ZC.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:C})})}catch(t){throw w&&w(),t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new pC(`Network Error`,pC.ERR_NETWORK,e,C,t&&t.response),{cause:t.cause||t}):pC.from(t,t&&t.code,e,C,t&&t.response)}}},kw=new Map,Aw=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=kw;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:Ow(t)),l=c;return c};Aw();var jw={http:null,xhr:gw,fetch:{get:Aw}};Z.forEach(jw,(e,t)=>{if(e){try{Object.defineProperty(e,`name`,{value:t})}catch{}Object.defineProperty(e,`adapterName`,{value:t})}});var Mw=e=>`- ${e}`,Nw=e=>Z.isFunction(e)||e===null||e===!1;function Pw(e,t){e=Z.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!Nw(r)&&(i=jw[(n=String(r)).toLowerCase()],i===void 0))throw new pC(`Unknown adapter '${n}'`);if(i&&(Z.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new pC(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
317
+ `+e.map(Mw).join(`
318
+ `):` `+Mw(e[0]):`as no adapter specified`),`ERR_NOT_SUPPORT`)}return i}var Fw={getAdapter:Pw,adapters:jw};function Iw(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ew(null,e)}function Lw(e){return Iw(e),e.headers=ZC.from(e.headers),e.data=QC.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),Fw.getAdapter(e.adapter||BC.adapter,e)(e).then(function(t){return Iw(e),t.data=QC.call(e,e.transformResponse,t),t.headers=ZC.from(t.headers),t},function(t){return $C(t)||(Iw(e),t&&t.response&&(t.response.data=QC.call(e,e.transformResponse,t.response),t.response.headers=ZC.from(t.response.headers))),Promise.reject(t)})}var Rw=`1.14.0`,zw={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{zw[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var Bw={};zw.transitional=function(e,t,n){function r(e,t){return`[Axios v`+Rw+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new pC(r(i,` has been removed`+(t?` in `+t:``)),pC.ERR_DEPRECATED);return t&&!Bw[i]&&(Bw[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),e?e(n,i,a):!0}},zw.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Vw(e,t,n){if(typeof e!=`object`)throw new pC(`options must be an object`,pC.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let a=r[i],o=t[a];if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new pC(`option `+a+` must be `+n,pC.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new pC(`Unknown option `+a,pC.ERR_BAD_OPTION)}}var Hw={assertOptions:Vw,validators:zw},Uw=Hw.validators,Ww=class{constructor(e){this.defaults=e||{},this.interceptors={request:new TC,response:new TC}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,``):``;try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,``))&&(e.stack+=`
319
+ `+n):e.stack=n}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=mw(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Hw.assertOptions(n,{silentJSONParsing:Uw.transitional(Uw.boolean),forcedJSONParsing:Uw.transitional(Uw.boolean),clarifyTimeoutError:Uw.transitional(Uw.boolean),legacyInterceptorReqResOrdering:Uw.transitional(Uw.boolean)},!1),r!=null&&(Z.isFunction(r)?t.paramsSerializer={serialize:r}:Hw.assertOptions(r,{encode:Uw.function,serialize:Uw.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),Hw.assertOptions(t,{baseUrl:Uw.spelling(`baseURL`),withXsrfToken:Uw.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&Z.merge(i.common,i[t.method]);i&&Z.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`common`],e=>{delete i[e]}),t.headers=ZC.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||EC;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[Lw.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=Lw.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=mw(this.defaults,e),wC(fw(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Z.forEach([`delete`,`get`,`head`,`options`],function(e){Ww.prototype[e]=function(t,n){return this.request(mw(n||{},{method:e,url:t,data:(n||{}).data}))}}),Z.forEach([`post`,`put`,`patch`],function(e){function t(t){return function(n,r,i){return this.request(mw(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}Ww.prototype[e]=t(),Ww.prototype[e+`Form`]=t(!0)});var Gw=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new ew(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function Kw(e){return function(t){return e.apply(null,t)}}function qw(e){return Z.isObject(e)&&e.isAxiosError===!0}var Jw={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Jw).forEach(([e,t])=>{Jw[t]=e});function Yw(e){let t=new Ww(e),n=nS(Ww.prototype.request,t);return Z.extend(n,Ww.prototype,t,{allOwnKeys:!0}),Z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return Yw(mw(e,t))},n}var Xw=Yw(BC);Xw.Axios=Ww,Xw.CanceledError=ew,Xw.CancelToken=Gw,Xw.isCancel=$C,Xw.VERSION=Rw,Xw.toFormData=yC,Xw.AxiosError=pC,Xw.Cancel=Xw.CanceledError,Xw.all=function(e){return Promise.all(e)},Xw.spread=Kw,Xw.isAxiosError=qw,Xw.mergeConfig=mw,Xw.AxiosHeaders=ZC,Xw.formToJSON=e=>RC(Z.isHTMLForm(e)?new FormData(e):e),Xw.getAdapter=Fw.getAdapter,Xw.HttpStatusCode=Jw,Xw.default=Xw;var{Axios:Zw,AxiosError:Qw,CanceledError:$w,isCancel:eT,CancelToken:tT,VERSION:nT,all:rT,Cancel:iT,isAxiosError:aT,spread:oT,toFormData:sT,AxiosHeaders:cT,HttpStatusCode:lT,formToJSON:uT,getAdapter:dT,mergeConfig:fT}=Xw,pT=`genai_access_token`,mT=`genai_tenant_id`;function hT(e){try{let t=JSON.parse(atob(e.split(`.`)[1]));return t.exp?t.exp*1e3<Date.now():!1}catch{return!0}}function gT(){if(typeof sessionStorage<`u`){let e=sessionStorage.getItem(pT);return e&&hT(e)?(sessionStorage.removeItem(pT),null):e}return null}function _T(e){typeof sessionStorage<`u`&&sessionStorage.setItem(pT,e)}function vT(){return typeof sessionStorage<`u`?sessionStorage.getItem(mT):null}function yT(e){typeof sessionStorage<`u`&&sessionStorage.setItem(mT,String(e))}function bT(e){let t=e,n=!1,r=new Set;return{getState(){return t},updateState(e){t=typeof e==`function`?e(t):e},setState(e){this.updateState(e),r.forEach(e=>e(t))},initialize(e){n||=(t=e,!0)},subscribe(e){return r.add(e),()=>r.delete(e)}}}function xT(e,t,n){let r=[],i=[],a={};for(let o of e){let e=o.position||t;a[e]=a[e]||0,a[e]+=1,a[e]<=n?i.push(o):r.push(o)}return{notifications:i,queue:r}}var ST=bT({notifications:[],queue:[],defaultPosition:`bottom-right`,limit:5});function CT(e,t){let n=e.getState(),r=xT(t([...n.notifications,...n.queue]),n.defaultPosition,n.limit);e.setState({notifications:r.notifications,queue:r.queue,limit:n.limit,defaultPosition:n.defaultPosition})}function wT(e,t=ST){let n=e.id||_t();return CT(t,t=>e.id&&t.some(t=>t.id===e.id)?t:[...t,{...e,id:n}]),n}function TT({...e}){return(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,U.jsx)(`path`,{d:`M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M11.992 15H12.001`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M12 12V8`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]})}function ET({...e}){return(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,U.jsx)(`path`,{d:`M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M8 12.5L10.5 15L16 9`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]})}function DT({...e}){return(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,U.jsx)(`path`,{d:`M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M12.2422 17V12C12.2422 11.5286 12.2422 11.2929 12.0957 11.1464C11.9493 11 11.7136 11 11.2422 11`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M11.992 8H12.001`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})]})}function OT({...e}){return(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,U.jsx)(`path`,{d:`M5.32171 9.68293C7.73539 5.41199 8.94222 3.27651 10.5983 2.72681C11.5093 2.4244 12.4907 2.4244 13.4017 2.72681C15.0578 3.27651 16.2646 5.41199 18.6783 9.68293C21.092 13.9538 22.2988 16.0893 21.9368 17.8293C21.7376 18.7866 21.2469 19.6548 20.535 20.3097C19.241 21.5 16.8274 21.5 12 21.5C7.17265 21.5 4.75897 21.5 3.46496 20.3097C2.75308 19.6548 2.26239 18.7866 2.06322 17.8293C1.70119 16.0893 2.90803 13.9538 5.32171 9.68293Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M11.992 16H12.001`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M12 13V9`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]})}var kT={danger:(0,U.jsx)(TT,{}),info:(0,U.jsx)(DT,{}),success:(0,U.jsx)(ET,{}),warning:(0,U.jsx)(OT,{})};function AT(e,t){let n=kT[e];wT({...t,variant:e,icon:n})}function jT(e){AT(`danger`,{title:Fe._({id:`SlfejT`}),...e})}function MT(){return Fe._({id:`Qlh+W2`})}function NT(e,t){return{}[e]}function PT(e){return e?{401:Fe._({id:`9cOLBO`}),403:Fe._({id:`qriaXz`}),404:Fe._({id:`373i3G`}),500:Fe._({id:`lkE00/`}),502:Fe._({id:`9dPdtH`}),503:Fe._({id:`Vw36Gt`}),504:Fe._({id:`3R0fAs`})}[e]:``}var FT=`react-starter-kit-`,IT=Object.entries({BUILD_META_DATA_INSPECTOR:`buildMetaDataInspector`,COLOR_SCHEME:`colorScheme`,DEBUG:`debug`,ENVIRONMENT_INSPECTOR:`environmentInspector`,INCLUDE_BEARER:`includeBearer`,KEYCLOAK_ERROR:`keycloakError`,LANGUAGE:`language`,LOCAL_STORAGE_INSPECTOR:`localStorageInspector`,LOGGER_LOG_LEVEL:`loggerLogLevel`,LOGGER:`logger`,SHOW_HTTP_ERROR_DEBUG_TOASTER:`showHttpErrorDebugToaster`,TABLE_VIEW:`tableView`,DRAWER_EXPANDED:`drawerExpanded`,PANEL_OPEN:`panelOpen`,PERMISSION_GOD_MODE:`permissionGodMode`}).reduce((e,[t,n])=>({...e,[t]:`${FT}${n}`}),{});function LT(e,t=null){let n=localStorage.getItem(e);if(n===null)return t;try{let e=JSON.parse(n);return typeof t==`boolean`?typeof e==`boolean`?e:t:typeof t==`number`?typeof e==`number`&&!Number.isNaN(e)?e:t:e}catch{return typeof t==`string`?n:t}}function RT(){return LT(IT.DEBUG,!1),!0}function zT(){return RT()?LT(IT.SHOW_HTTP_ERROR_DEBUG_TOASTER,!1):!1}function BT(e){return e?.operationResultCode!==void 0}function VT(e){return e?.error!==void 0}function HT(e){let t=e.response?.headers;if(!t)return!1;let n=`application/problem+json`,r=`Content-Type`;return typeof t.get==`function`?t.get(r)===n:t[r]===n}function UT(e){return BT(e)?e.description:VT(e)?e.error:e?.message||e?.errorCode||MT()}function WT(e){return e.code?NT(e.code)||MT():``}function GT(e){return{url:e.config?.url,method:e.config?.method?.toUpperCase(),status:e.response?.status,response:e.response?.data}}function KT(e){try{return JSON.stringify(e,null,2)}catch{return String(e)}}function qT({url:e,method:t,status:n,response:r}){let i=r!=null&&Object.keys(r).length>0;return(0,U.jsxs)(Vy,{children:[[{label:Fe._({id:`IagCbF`}),value:e},{label:Fe._({id:`fiPesM`}),value:t},{label:Fe._({id:`uAQUqI`}),value:n}].filter(e=>!!e.value).map(({label:e,value:t},n)=>(0,U.jsxs)(Eu,{gap:4,children:[(0,U.jsxs)(Xf,{size:`xs`,fw:500,children:[e,`:`]}),(0,U.jsx)(Xf,{size:`xs`,children:t})]},n)),i&&(0,U.jsx)(Im,{block:!0,lh:1.2,children:KT(r)})]})}function JT(e){let t=e.response?.data;return BT(t)?t.operationResultCode:VT(t)?t.error:t?.errorCode||t?.code||t?.message||``}function YT(e){return e.response?.data?.status||e.response?.status||e.status}function XT(e){let t=e.response?.data,n=JT(e);if(n){let e=NT(n);if(e)return e}return UT(t)}function ZT(e){let t=e.response?.data;return WT(t)||PT(YT(e))}function QT(e){return e.response?.data?HT(e)?ZT(e):XT(e):e.message}function $T(e){return e.response?.data?.errorId}function eE(e){let t=QT(e),n=HT(e)?$T(e):void 0;return n?(0,U.jsxs)(Vy,{gap:8,children:[(0,U.jsx)(Xf,{c:`var(--mantine-custom-color-danger-dark)`,size:`sm`,children:t}),(0,U.jsxs)(Xf,{c:`var(--mantine-custom-color-danger-dark)`,size:`sm`,children:[Fe._({id:`jf+o1U`}),`: `,n]})]}):t}function tE(e){if(!e)return MT();if(zT()){let t=GT(e);return Object.values(t).some(Boolean)?(0,U.jsx)(Vy,{children:qT(t)}):eE(e)}return eE(e)}function nE(){return zT()?Fe._({id:`J5ej6L`}):Fe._({id:`SlfejT`})}function rE(e){jT({title:nE(),message:tE(e),autoClose:zT()?!1:5e3})}var iE=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},aE=(e=>e?iE(e):iE),oE=e=>e;function sE(e,t=oE){let n=H.useSyncExternalStore(e.subscribe,H.useCallback(()=>t(e.getState()),[e,t]),H.useCallback(()=>t(e.getInitialState()),[e,t]));return H.useDebugValue(n),n}var cE=e=>{let t=aE(e),n=e=>sE(t,e);return Object.assign(n,t),n},lE=(e=>e?cE(e):cE),uE={DEBUG:1e4,INFO:2e4,WARN:3e4,ERROR:4e4};function dE(){let e=crypto.getRandomValues(new Uint8Array(16));return Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``)}var fE=class e{constructor(){this.contextMap=new Map}static getInstance(){return e.instance||=new e,e.instance}startTrace(e){let t={traceId:dE(),spanId:dE().substring(0,16)};return this.contextMap.set(e,t),t}startSpan(e){let t=this.contextMap.get(e);if(!t)return this.startTrace(e);let n=dE().substring(0,16),r={traceId:t.traceId,spanId:n,parentSpanId:t.spanId};return this.contextMap.set(e,r),r}getCurrentContext(e){return this.contextMap.get(e)}clearContext(e){this.contextMap.delete(e)}}.getInstance(),pE=class e{static{this.globalConfig={enabled:!0,minLogLevel:`INFO`,applicationName:`frontend`}}constructor(t,n={}){this.name=t,this.additionalFields=n.additionalFields??{},this.config={enabled:n.enabled??RT(),minLogLevel:n.minLogLevel??e.globalConfig.minLogLevel}}createLogEntry(t,n,r){let i=fE.getCurrentContext(this.name)??fE.startTrace(this.name);return{"@timestamp":new Date().toISOString(),message:n,logger_name:this.name,level:t,level_value:uE[t],applicationName:e.globalConfig.applicationName,traceId:i.traceId,spanId:i.spanId,...i.parentSpanId&&{parentSpanId:i.parentSpanId},...this.additionalFields,...r}}log(t,n,r){if(!(!this.config.enabled||!e.globalConfig.enabled||uE[t]<uE[this.config.minLogLevel])){let e=Object.fromEntries(Object.entries(r??{}).map(([e,t])=>[e,t?.toString()??t]));Object.keys(e).length>0?console.log(n,e):console.log(n)}}debug(e,t){this.log(`DEBUG`,e,t)}info(e,t){this.log(`INFO`,e,t)}warn(e,t){this.log(`WARN`,e,t)}error(e,t){this.log(`ERROR`,e,t)}startSpan(){fE.startSpan(this.name)}clearTraceContext(){fE.clearContext(this.name)}setEnabled(e){this.config.enabled=e}setMinLogLevel(e){this.config.minLogLevel=e}static setGlobalEnabled(t){e.globalConfig.enabled=t}static getGlobalEnabled(){return e.globalConfig.enabled}static setGlobalMinLogLevel(t){e.globalConfig.minLogLevel=t}static getGlobalMinLogLevel(){return e.globalConfig.minLogLevel}static setGlobalApplicationName(t){e.globalConfig.applicationName=t}};new pE(`KeycloakService`);var mE=null;function hE(){return mE?.token?`Bearer ${mE.token}`:void 0}function gE(){return mE}var _E=new Zx({queryCache:new Xx({onError:(e,t)=>{(t.meta?.handleGlobalError??!0)&&e instanceof Qw&&rE(e)}}),mutationCache:new qx({onError:(e,t,n,r)=>{(r.meta?.handleGlobalError??!0)&&e instanceof Qw&&rE(e)}}),defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1,staleTime:600*1e3},mutations:{retry:!1}}});function vE(e,t,n){let r=e.startsWith(`/`)?e:`/${e}`;return t?t===`public`?yE(r):t===`private`||n?bE(r):yE(r):r}function yE(e){return e.startsWith(`/public/`)?e:`/public${e}`}function bE(e){return e.startsWith(`/public/`)?e.replace(/^\/public/,``):e}function xE(e,t=``){return`${e.replace(/\/+$/,``)}${t?`/${t.replace(/^\/+/,``)}`:``}`}function SE({baseUrl:e,prefix:t=``,withCollation:n=!0}){let r=Xw.create({baseURL:xE(e,t),paramsSerializer:{indexes:null}});return r.interceptors.request.use(e=>{let t=gE()?.authenticated??!1,r=e.anonymous??!1;e.accessScope&&(e.url=vE(e.url||``,e.accessScope,t));let i=gT(),a=vT();i&&(e.headers.Authorization=`Bearer ${i}`),a&&(e.headers[`x-tenant-id`]=a);let o=hE();return o&&!r&&(e.headers.Authorization=o),n&&(e.headers.Collation=Fe.locale),!e.headers.has(`Content-Type`)&&!(e.data instanceof FormData)&&(e.headers[`Content-Type`]=`application/json`),e.method?.toLowerCase()===`get`&&(e.data={}),e},e=>Promise.reject(e)),r}var CE;function wE(e,t){let n=e.url.api,r=e.url.apiPaths,i=t?.api??n;SE({baseUrl:n,prefix:r.crm}),SE({baseUrl:n,prefix:r.uiAuthz}),CE=SE({baseUrl:i,prefix:``})}var Q=l(o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))}))(),1);function TE({type:e,date:t,locale:n,format:r,labelSeparator:i}){let a=e=>(0,Q.default)(e).locale(n).format(r);return e===`default`?t===null?``:a(t):e===`multiple`?t.map(a).join(`, `):e===`range`&&Array.isArray(t)?t[0]&&t[1]?`${a(t[0])} ${i} ${a(t[1])}`:t[0]?`${a(t[0])} ${i} `:``:``}function EE({formatter:e,...t}){return(e||TE)(t)}function DE({direction:e,levelIndex:t,rowIndex:n,cellIndex:r,size:i}){switch(e){case`up`:return t===0&&n===0?null:n===0?{levelIndex:t-1,rowIndex:r<=i[t-1][i[t-1].length-1]-1?i[t-1].length-1:i[t-1].length-2,cellIndex:r}:{levelIndex:t,rowIndex:n-1,cellIndex:r};case`down`:return n===i[t].length-1||n===i[t].length-2&&r>=i[t][i[t].length-1]?{levelIndex:t+1,rowIndex:0,cellIndex:r}:{levelIndex:t,rowIndex:n+1,cellIndex:r};case`left`:return t===0&&n===0&&r===0?null:n===0&&r===0?{levelIndex:t-1,rowIndex:i[t-1].length-1,cellIndex:i[t-1][i[t-1].length-1]-1}:r===0?{levelIndex:t,rowIndex:n-1,cellIndex:i[t][n-1]-1}:{levelIndex:t,rowIndex:n,cellIndex:r-1};case`right`:return n===i[t].length-1&&r===i[t][n]-1?{levelIndex:t+1,rowIndex:0,cellIndex:0}:r===i[t][n]-1?{levelIndex:t,rowIndex:n+1,cellIndex:0}:{levelIndex:t,rowIndex:n,cellIndex:r+1};default:return{levelIndex:t,rowIndex:n,cellIndex:r}}}function OE({controlsRef:e,direction:t,levelIndex:n,rowIndex:r,cellIndex:i,size:a}){let o=DE({direction:t,size:a,rowIndex:r,cellIndex:i,levelIndex:n});if(!o)return;let s=e.current?.[o.levelIndex]?.[o.rowIndex]?.[o.cellIndex];s&&(s.disabled||s.getAttribute(`data-hidden`)||s.getAttribute(`data-outside`)?OE({controlsRef:e,direction:t,levelIndex:o.levelIndex,cellIndex:o.cellIndex,rowIndex:o.rowIndex,size:a}):s.focus())}function kE(e){switch(e){case`ArrowDown`:return`down`;case`ArrowUp`:return`up`;case`ArrowRight`:return`right`;case`ArrowLeft`:return`left`;default:return null}}function AE(e){return e.current?.map(e=>e.map(e=>e.length))}function jE({controlsRef:e,levelIndex:t,rowIndex:n,cellIndex:r,event:i}){let a=kE(i.key);a&&(i.preventDefault(),OE({controlsRef:e,direction:a,levelIndex:t,rowIndex:n,cellIndex:r,size:AE(e)}))}function ME(e){return e==null||e===``?e:(0,Q.default)(e).format(`YYYY-MM-DD`)}function NE(e){return e==null||e===``?e:(0,Q.default)(e).format(`YYYY-MM-DD HH:mm:ss`)}function PE({minDate:e,maxDate:t}){let n=(0,Q.default)();return!e&&!t?ME(n):e&&(0,Q.default)(n).isBefore(e)?ME(e):t&&(0,Q.default)(n).isAfter(t)?ME(t):ME(n)}var FE=(0,H.createContext)({locale:`en`,firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:`–`,consistentWeeks:!1});function IE(){let e=(0,H.use)(FE),t=(0,H.useCallback)(t=>t||e.locale,[e.locale]),n=(0,H.useCallback)(t=>typeof t==`number`?t:e.firstDayOfWeek,[e.firstDayOfWeek]),r=(0,H.useCallback)(t=>Array.isArray(t)?t:e.weekendDays,[e.weekendDays]),i=(0,H.useCallback)(t=>typeof t==`string`?t:e.labelSeparator,[e.labelSeparator]);return{...e,getLocale:t,getFirstDayOfWeek:n,getWeekendDays:r,getLabelSeparator:i}}function LE({value:e,type:t,withTime:n}){let r=n?NE:ME;if(t===`range`&&Array.isArray(e)){let t=r(e[0]),n=r(e[1]);return t?n?`${t} – ${n}`:`${t} –`:``}return t===`multiple`&&Array.isArray(e)?e.filter(Boolean).join(`, `):!Array.isArray(e)&&e?r(e):``}function RE({value:e,type:t,name:n,form:r,withTime:i=!1}){return(0,U.jsx)(`input`,{type:`hidden`,value:LE({value:e,type:t,withTime:i}),name:n,form:r})}RE.displayName=`@mantine/dates/HiddenDatesInput`;var zE={day:`m_396ce5cb`},BE=Cn((e,{size:t})=>({day:{"--day-size":at(t,`day-size`)}})),VE=K(e=>{let t=W(`Day`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,date:c,disabled:l,__staticSelector:u,weekend:d,outside:f,selected:p,renderDay:m,inRange:h,firstInRange:g,lastInRange:_,hidden:v,static:y,highlightToday:b,fullWidth:x,attributes:S,...C}=t;return(0,U.jsx)(dl,{...G({name:u||`Day`,classes:zE,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:S,vars:s,varsResolver:BE,rootSelector:`day`})(`day`,{style:v?{display:`none`}:void 0}),component:y?`div`:`button`,disabled:l,"data-today":(0,Q.default)(c).isSame(new Date,`day`)||void 0,"data-hidden":v||void 0,"data-highlight-today":b||void 0,"data-disabled":l||void 0,"data-weekend":!l&&!f&&d||void 0,"data-outside":!l&&f||void 0,"data-selected":!l&&p||void 0,"data-in-range":h&&!l||void 0,"data-first-in-range":g&&!l||void 0,"data-last-in-range":_&&!l||void 0,"data-static":y||void 0,"data-full-width":x||void 0,unstyled:o,...C,children:m?.(c)||(0,Q.default)(c).date()})});VE.classes=zE,VE.varsResolver=BE,VE.displayName=`@mantine/dates/Day`;function HE({locale:e,format:t=`dd`,firstDayOfWeek:n=1}){let r=(0,Q.default)().day(n),i=[];for(let n=0;n<7;n+=1)typeof t==`string`?i.push((0,Q.default)(r).add(n,`days`).locale(e).format(t)):i.push(t((0,Q.default)(r).add(n,`days`).format(`YYYY-MM-DD`)));return i}var UE={weekday:`m_18a3eca`},WE=Cn((e,{size:t})=>({weekdaysRow:{"--wr-fz":ct(t),"--wr-spacing":ot(t)}})),GE=K(e=>{let t=W(`WeekdaysRow`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,locale:c,firstDayOfWeek:l,weekdayFormat:u,cellComponent:d=`th`,__staticSelector:f,withWeekNumbers:p,attributes:m,...h}=t,g=G({name:f||`WeekdaysRow`,classes:UE,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:m,vars:s,varsResolver:WE,rootSelector:`weekdaysRow`}),_=IE(),v=HE({locale:_.getLocale(c),format:u,firstDayOfWeek:_.getFirstDayOfWeek(l)}).map((e,t)=>(0,U.jsx)(d,{...g(`weekday`),children:e},t));return(0,U.jsxs)(q,{component:`tr`,...g(`weekdaysRow`),...h,children:[p&&(0,U.jsx)(d,{...g(`weekday`),children:`#`}),v]})});GE.classes=UE,GE.varsResolver=WE,GE.displayName=`@mantine/dates/WeekdaysRow`;function KE(e,t=1){let n=(0,Q.default)(e);if(!n.isValid())return n;let r=t===0?6:t-1;for(;n.day()!==r;)n=n.add(1,`day`);return n.format(`YYYY-MM-DD`)}function qE(e,t=1){let n=(0,Q.default)(e);for(;n.day()!==t;)n=n.subtract(1,`day`);return n.format(`YYYY-MM-DD`)}function JE({month:e,firstDayOfWeek:t=1,consistentWeeks:n}){let r=(0,Q.default)((0,Q.default)(e).subtract((0,Q.default)(e).date()-1,`day`).format(`YYYY-M-D`)),i=r.format(`YYYY-MM-DD`),a=KE(r.add(r.daysInMonth()-1,`day`).format(`YYYY-MM-DD`),t),o=[],s=(0,Q.default)(qE(i,t));for(;(0,Q.default)(s).isBefore(a,`day`);){let e=[];for(let t=0;t<7;t+=1)e.push(s.format(`YYYY-MM-DD`)),s=s.add(1,`day`);o.push(e)}if(n&&o.length<6){let e=o[o.length-1],t=e[e.length-1],n=(0,Q.default)(t).add(1,`day`);for(;o.length<6;){let e=[];for(let t=0;t<7;t+=1)e.push(n.format(`YYYY-MM-DD`)),n=n.add(1,`day`);o.push(e)}}return o}function YE(e,t){return(0,Q.default)(e).format(`YYYY-MM`)===(0,Q.default)(t).format(`YYYY-MM`)}function XE(e,t){return t?(0,Q.default)(e).isAfter((0,Q.default)(t).subtract(1,`day`),`day`):!0}function ZE(e,t){return t?(0,Q.default)(e).isBefore((0,Q.default)(t).add(1,`day`),`day`):!0}function QE({dates:e,minDate:t,maxDate:n,getDayProps:r,excludeDate:i,hideOutsideDates:a,month:o}){let s=e.flat().filter(e=>ZE(e,n)&&XE(e,t)&&!i?.(e)&&!r?.(e)?.disabled&&(!a||YE(e,o)));return s.find(e=>r?.(e)?.selected)||s.find(e=>(0,Q.default)().isSame(e,`date`))||s[0]}var $E=l(o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isoWeek=r()})(e,(function(){"use strict";var e=`day`;return function(t,n,r){var i=function(t){return t.add(4-t.isoWeekday(),e)},a=n.prototype;a.isoWeekYear=function(){return i(this).year()},a.isoWeek=function(t){if(!this.$utils().u(t))return this.add(7*(t-this.isoWeek()),e);var n,a,o,s,c=i(this),l=(n=this.isoWeekYear(),a=this.$u,o=(a?r.utc:r)().year(n).startOf(`year`),s=4-o.isoWeekday(),o.isoWeekday()>4&&(s+=7),o.add(s,e));return c.diff(l,`week`)+1},a.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var o=a.startOf;a.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return n.p(e)===`isoweek`?r?this.date(this.date()-(this.isoWeekday()-1)).startOf(`day`):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf(`day`):o.bind(this)(e,t)}}}))}))(),1);Q.default.extend($E.default);function eD(e){return(0,Q.default)(e.find(e=>(0,Q.default)(e).day()===1)).isoWeek()}var tD={month:`m_cc9820d3`,monthCell:`m_8f457cd5`,weekNumber:`m_6cff9dea`},nD={withCellSpacing:!0},rD=Cn((e,{size:t})=>({weekNumber:{"--wn-fz":ct(t),"--wn-size":at(t,`wn-size`)}})),iD=K(e=>{let t=W(`Month`,nD,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,locale:l,firstDayOfWeek:u,weekdayFormat:d,month:f,weekendDays:p,getDayProps:m,excludeDate:h,minDate:g,maxDate:_,renderDay:v,hideOutsideDates:y,hideWeekdays:b,getDayAriaLabel:x,static:S,__getDayRef:C,__onDayKeyDown:w,__onDayClick:T,__onDayMouseEnter:E,__preventFocus:D,__stopPropagation:O,withCellSpacing:k,size:A,highlightToday:j,withWeekNumbers:M,fullWidth:N,attributes:P,...ee}=t,F=G({name:c||`Month`,classes:tD,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:P,vars:s,varsResolver:rD,rootSelector:`month`}),I=IE(),te=JE({month:f,firstDayOfWeek:I.getFirstDayOfWeek(u),consistentWeeks:I.consistentWeeks}),ne=QE({dates:te,minDate:ME(g),maxDate:ME(_),getDayProps:m,excludeDate:h,hideOutsideDates:y,month:f}),{resolvedClassNames:re,resolvedStyles:ie}=Ur({classNames:n,styles:a,props:t}),L=te.map((e,t)=>{let n=e.map((e,n)=>{let r=!YE(e,f),i=x?.(e)||(0,Q.default)(e).locale(l||I.locale).format(`D MMMM YYYY`),a=m?.(e),s=(0,Q.default)(e).isSame(ne,`date`);return(0,U.jsx)(`td`,{...F(`monthCell`),"data-with-spacing":k||void 0,children:(0,U.jsx)(VE,{__staticSelector:c||`Month`,classNames:re,styles:ie,attributes:P,unstyled:o,"data-mantine-stop-propagation":O||void 0,highlightToday:j,renderDay:v,date:e,size:A,weekend:I.getWeekendDays(p).includes((0,Q.default)(e).get(`day`)),outside:r,hidden:y?r:!1,"aria-label":i,static:S,fullWidth:N,disabled:h?.(e)||!ZE(e,ME(_))||!XE(e,ME(g)),ref:e=>{e&&C?.(t,n,e)},...a,onKeyDown:r=>{a?.onKeyDown?.(r),w?.(r,{rowIndex:t,cellIndex:n,date:e})},onMouseEnter:t=>{a?.onMouseEnter?.(t),E?.(t,e)},onClick:t=>{a?.onClick?.(t),T?.(t,e)},onMouseDown:e=>{a?.onMouseDown?.(e),D&&e.preventDefault()},tabIndex:D||!s?-1:0})},e.toString())});return(0,U.jsxs)(`tr`,{...F(`monthRow`),children:[M&&(0,U.jsx)(`td`,{...F(`weekNumber`),children:eD(e)}),n]},t)});return(0,U.jsxs)(q,{component:`table`,...F(`month`),size:A,"data-full-width":N||void 0,...ee,children:[!b&&(0,U.jsx)(`thead`,{...F(`monthThead`),children:(0,U.jsx)(GE,{__staticSelector:c||`Month`,locale:l,firstDayOfWeek:u,weekdayFormat:d,withWeekNumbers:M,size:A,classNames:re,styles:ie,unstyled:o,attributes:P})}),(0,U.jsx)(`tbody`,{...F(`monthTbody`),children:L})]})});iD.classes=tD,iD.varsResolver=rD,iD.displayName=`@mantine/dates/Month`;var aD={pickerControl:`m_dc6a3c71`},oD=Cn((e,{size:t})=>({pickerControl:{"--dpc-fz":ct(t),"--dpc-size":at(t,`dpc-size`)}})),sD=K(e=>{let t=W(`PickerControl`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,firstInRange:c,lastInRange:l,inRange:u,__staticSelector:d,selected:f,disabled:p,fullWidth:m,attributes:h,...g}=t;return(0,U.jsx)(dl,{...G({name:d||`PickerControl`,classes:aD,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:oD,rootSelector:`pickerControl`})(`pickerControl`),unstyled:o,"data-picker-control":!0,"data-full-width":m||void 0,"data-selected":f&&!p||void 0,"data-disabled":p||void 0,"data-in-range":u&&!p&&!f||void 0,"data-first-in-range":c&&!p||void 0,"data-last-in-range":l&&!p||void 0,disabled:p,...g})});sD.classes=aD,sD.varsResolver=oD,sD.displayName=`@mantine/dates/PickerControl`;function cD({year:e,minDate:t,maxDate:n}){return!t&&!n?!1:!!(t&&(0,Q.default)(e).isBefore(t,`year`)||n&&(0,Q.default)(e).isAfter(n,`year`))}function lD({years:e,minDate:t,maxDate:n,getYearControlProps:r}){let i=e.flat().filter(e=>!cD({year:e,minDate:t,maxDate:n})&&!r?.(e)?.disabled);return i.find(e=>r?.(e)?.selected)||i.find(e=>(0,Q.default)().isSame(e,`year`))||i[0]}function uD(e){let t=(0,Q.default)(e).year(),n=t-t%10,r=0,i=[[],[],[],[]];for(let e=0;e<4;e+=1){let t=e===3?1:3;for(let a=0;a<t;a+=1)i[e].push((0,Q.default)(new Date(n+r,0)).format(`YYYY-MM-DD`)),r+=1}return i}var dD={yearsList:`m_9206547b`,yearsListCell:`m_c5a19c7d`},fD={yearsListFormat:`YYYY`,withCellSpacing:!0},pD=K(e=>{let t=W(`YearsList`,fD,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,decade:c,yearsListFormat:l,locale:u,minDate:d,maxDate:f,getYearControlProps:p,__staticSelector:m,__getControlRef:h,__onControlKeyDown:g,__onControlClick:_,__onControlMouseEnter:v,__preventFocus:y,__stopPropagation:b,withCellSpacing:x,fullWidth:S,size:C,attributes:w,...T}=t,E=G({name:m||`YearsList`,classes:dD,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:w,vars:s,rootSelector:`yearsList`}),D=IE(),O=uD(c),k=lD({years:O,minDate:d,maxDate:f,getYearControlProps:p}),A=O.map((e,t)=>{let n=e.map((e,n)=>{let r=p?.(e),i=(0,Q.default)(e).isSame(k,`year`);return(0,U.jsx)(`td`,{...E(`yearsListCell`),"data-with-spacing":x||void 0,children:(0,U.jsx)(sD,{...E(`yearsListControl`),size:C,unstyled:o,fullWidth:S,"data-mantine-stop-propagation":b||void 0,disabled:cD({year:e,minDate:d,maxDate:f}),ref:e=>{e&&h?.(t,n,e)},...r,onKeyDown:i=>{r?.onKeyDown?.(i),g?.(i,{rowIndex:t,cellIndex:n,date:e})},onClick:t=>{r?.onClick?.(t),_?.(t,e)},onMouseEnter:t=>{r?.onMouseEnter?.(t),v?.(t,e)},onMouseDown:e=>{r?.onMouseDown?.(e),y&&e.preventDefault()},tabIndex:y||!i?-1:0,children:r?.children??(0,Q.default)(e).locale(D.getLocale(u)).format(l)})},n)});return(0,U.jsx)(`tr`,{...E(`yearsListRow`),children:n},t)});return(0,U.jsx)(q,{component:`table`,size:C,...E(`yearsList`),"data-full-width":S||void 0,...T,children:(0,U.jsx)(`tbody`,{children:A})})});pD.classes=dD,pD.displayName=`@mantine/dates/YearsList`;function mD({month:e,minDate:t,maxDate:n}){return!t&&!n?!1:!!(t&&(0,Q.default)(e).isBefore(t,`month`)||n&&(0,Q.default)(e).isAfter(n,`month`))}function hD({months:e,minDate:t,maxDate:n,getMonthControlProps:r}){let i=e.flat().filter(e=>!mD({month:e,minDate:t,maxDate:n})&&!r?.(e)?.disabled);return i.find(e=>r?.(e)?.selected)||i.find(e=>(0,Q.default)().isSame(e,`month`))||i[0]}function gD(e){let t=(0,Q.default)(e).startOf(`year`).toDate(),n=[[],[],[],[]],r=0;for(let e=0;e<4;e+=1)for(let i=0;i<3;i+=1)n[e].push((0,Q.default)(t).add(r,`months`).format(`YYYY-MM-DD`)),r+=1;return n}var _D={monthsList:`m_2a6c32d`,monthsListCell:`m_fe27622f`},vD={monthsListFormat:`MMM`,withCellSpacing:!0},yD=K(e=>{let t=W(`MonthsList`,vD,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,year:l,monthsListFormat:u,locale:d,minDate:f,maxDate:p,getMonthControlProps:m,__getControlRef:h,__onControlKeyDown:g,__onControlClick:_,__onControlMouseEnter:v,__preventFocus:y,__stopPropagation:b,withCellSpacing:x,fullWidth:S,size:C,attributes:w,...T}=t,E=G({name:c||`MonthsList`,classes:_D,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:w,vars:s,rootSelector:`monthsList`}),D=IE(),O=gD(l),k=hD({months:O,minDate:ME(f),maxDate:ME(p),getMonthControlProps:m}),A=O.map((e,t)=>{let n=e.map((e,n)=>{let r=m?.(e),i=(0,Q.default)(e).isSame(k,`month`);return(0,U.jsx)(`td`,{...E(`monthsListCell`),"data-with-spacing":x||void 0,children:(0,U.jsx)(sD,{...E(`monthsListControl`),size:C,unstyled:o,fullWidth:S,__staticSelector:c||`MonthsList`,"data-mantine-stop-propagation":b||void 0,disabled:mD({month:e,minDate:ME(f),maxDate:ME(p)}),ref:e=>{e&&h?.(t,n,e)},...r,onKeyDown:i=>{r?.onKeyDown?.(i),g?.(i,{rowIndex:t,cellIndex:n,date:e})},onClick:t=>{r?.onClick?.(t),_?.(t,e)},onMouseEnter:t=>{r?.onMouseEnter?.(t),v?.(t,e)},onMouseDown:e=>{r?.onMouseDown?.(e),y&&e.preventDefault()},tabIndex:y||!i?-1:0,children:r?.children??(0,Q.default)(e).locale(D.getLocale(d)).format(u)})},n)});return(0,U.jsx)(`tr`,{...E(`monthsListRow`),children:n},t)});return(0,U.jsx)(q,{component:`table`,size:C,...E(`monthsList`),"data-full-width":S||void 0,...T,children:(0,U.jsx)(`tbody`,{children:A})})});yD.classes=_D,yD.displayName=`@mantine/dates/MonthsList`;var bD={calendarHeader:`m_730a79ed`,calendarHeaderLevel:`m_f6645d97`,calendarHeaderControl:`m_2351eeb0`,calendarHeaderControlIcon:`m_367dc749`},xD={hasNextLevel:!0,withNext:!0,withPrevious:!0,headerControlsOrder:[`previous`,`level`,`next`]},SD=Cn((e,{size:t})=>({calendarHeader:{"--dch-control-size":at(t,`dch-control-size`),"--dch-fz":ct(t)}})),CD=K(e=>{let t=W(`CalendarHeader`,xD,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,nextIcon:c,previousIcon:l,nextLabel:u,previousLabel:d,onNext:f,onPrevious:p,onLevelClick:m,label:h,nextDisabled:g,previousDisabled:_,hasNextLevel:v,levelControlAriaLabel:y,withNext:b,withPrevious:x,headerControlsOrder:S,fullWidth:C,__staticSelector:w,__preventFocus:T,__stopPropagation:E,attributes:D,...O}=t,k=G({name:w||`CalendarHeader`,classes:bD,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:D,vars:s,varsResolver:SD,rootSelector:`calendarHeader`}),A=T?e=>e.preventDefault():void 0,j=x&&(0,H.createElement)(dl,{...k(`calendarHeaderControl`),key:`previous`,"data-direction":`previous`,"aria-label":d,onClick:p,unstyled:o,onMouseDown:A,disabled:_,"data-disabled":_||void 0,tabIndex:T||_?-1:0,"data-mantine-stop-propagation":E||void 0},l||(0,U.jsx)(Pf,{...k(`calendarHeaderControlIcon`),"data-direction":`previous`,size:`45%`})),M=(0,H.createElement)(dl,{component:v?`button`:`div`,...k(`calendarHeaderLevel`),key:`level`,onClick:v?m:void 0,unstyled:o,onMouseDown:v?A:void 0,disabled:!v,"data-static":!v||void 0,"aria-label":y,tabIndex:T||!v?-1:0,"data-mantine-stop-propagation":E||void 0},h),N=b&&(0,H.createElement)(dl,{...k(`calendarHeaderControl`),key:`next`,"data-direction":`next`,"aria-label":u,onClick:f,unstyled:o,onMouseDown:A,disabled:g,"data-disabled":g||void 0,tabIndex:T||g?-1:0,"data-mantine-stop-propagation":E||void 0},c||(0,U.jsx)(Pf,{...k(`calendarHeaderControlIcon`),"data-direction":`next`,size:`45%`})),P=S.map(e=>e===`previous`?j:e===`level`?M:e===`next`?N:null);return(0,U.jsx)(q,{...k(`calendarHeader`),"data-full-width":C||void 0,...O,children:P})});CD.classes=bD,CD.varsResolver=SD,CD.displayName=`@mantine/dates/CalendarHeader`;function wD(e){let t=uD(e);return[t[0][0],t[3][0]]}var TD={decadeLabelFormat:`YYYY`},ED=K(e=>{let{decade:t,locale:n,minDate:r,maxDate:i,yearsListFormat:a,getYearControlProps:o,__getControlRef:s,__onControlKeyDown:c,__onControlClick:l,__onControlMouseEnter:u,withCellSpacing:d,__preventFocus:f,nextIcon:p,previousIcon:m,nextLabel:h,previousLabel:g,onNext:_,onPrevious:v,nextDisabled:y,previousDisabled:b,levelControlAriaLabel:x,withNext:S,withPrevious:C,headerControlsOrder:w,decadeLabelFormat:T,classNames:E,styles:D,unstyled:O,__staticSelector:k,__stopPropagation:A,size:j,fullWidth:M,attributes:N,...P}=W(`DecadeLevel`,TD,e),ee=IE(),[F,I]=wD(t),te={__staticSelector:k||`DecadeLevel`,classNames:E,styles:D,unstyled:O,size:j,attributes:N},ne=typeof y==`boolean`?y:i?!(0,Q.default)(I).endOf(`year`).isBefore(i):!1,re=typeof b==`boolean`?b:r?!(0,Q.default)(F).startOf(`year`).isAfter(r):!1,ie=(e,t)=>(0,Q.default)(e).locale(n||ee.locale).format(t);return(0,U.jsxs)(q,{"data-decade-level":!0,size:j,...P,children:[(0,U.jsx)(CD,{label:typeof T==`function`?T(F,I):`${ie(F,T)} – ${ie(I,T)}`,__preventFocus:f,__stopPropagation:A,nextIcon:p,previousIcon:m,nextLabel:h,previousLabel:g,onNext:_,onPrevious:v,nextDisabled:ne,previousDisabled:re,hasNextLevel:!1,levelControlAriaLabel:x,withNext:S,withPrevious:C,headerControlsOrder:w,fullWidth:M,...te}),(0,U.jsx)(pD,{decade:t,locale:n,minDate:r,maxDate:i,yearsListFormat:a,getYearControlProps:o,__getControlRef:s,__onControlKeyDown:c,__onControlClick:l,__onControlMouseEnter:u,__preventFocus:f,__stopPropagation:A,withCellSpacing:d,fullWidth:M,...te})]})});ED.classes={...pD.classes,...CD.classes},ED.displayName=`@mantine/dates/DecadeLevel`;var DD={yearLabelFormat:`YYYY`},OD=K(e=>{let{year:t,locale:n,minDate:r,maxDate:i,monthsListFormat:a,getMonthControlProps:o,__getControlRef:s,__onControlKeyDown:c,__onControlClick:l,__onControlMouseEnter:u,withCellSpacing:d,__preventFocus:f,nextIcon:p,previousIcon:m,nextLabel:h,previousLabel:g,onNext:_,onPrevious:v,onLevelClick:y,nextDisabled:b,previousDisabled:x,hasNextLevel:S,levelControlAriaLabel:C,withNext:w,withPrevious:T,headerControlsOrder:E,yearLabelFormat:D,__staticSelector:O,__stopPropagation:k,size:A,classNames:j,styles:M,unstyled:N,fullWidth:P,attributes:ee,...F}=W(`YearLevel`,DD,e),I=IE(),te={__staticSelector:O||`YearLevel`,classNames:j,styles:M,unstyled:N,size:A,attributes:ee},ne=typeof b==`boolean`?b:i?!(0,Q.default)(t).endOf(`year`).isBefore(i):!1,re=typeof x==`boolean`?x:r?!(0,Q.default)(t).startOf(`year`).isAfter(r):!1;return(0,U.jsxs)(q,{"data-year-level":!0,size:A,...F,children:[(0,U.jsx)(CD,{label:typeof D==`function`?D(t):(0,Q.default)(t).locale(n||I.locale).format(D),__preventFocus:f,__stopPropagation:k,nextIcon:p,previousIcon:m,nextLabel:h,previousLabel:g,onNext:_,onPrevious:v,onLevelClick:y,nextDisabled:ne,previousDisabled:re,hasNextLevel:S,levelControlAriaLabel:C,withNext:w,withPrevious:T,headerControlsOrder:E,fullWidth:P,...te}),(0,U.jsx)(yD,{year:t,locale:n,minDate:r,maxDate:i,monthsListFormat:a,getMonthControlProps:o,__getControlRef:s,__onControlKeyDown:c,__onControlClick:l,__onControlMouseEnter:u,__preventFocus:f,__stopPropagation:k,withCellSpacing:d,fullWidth:P,...te})]})});OD.classes={...CD.classes,...yD.classes},OD.displayName=`@mantine/dates/YearLevel`;var kD={monthLabelFormat:`MMMM YYYY`},AD=K(e=>{let{month:t,locale:n,firstDayOfWeek:r,weekdayFormat:i,weekendDays:a,getDayProps:o,excludeDate:s,minDate:c,maxDate:l,renderDay:u,hideOutsideDates:d,hideWeekdays:f,getDayAriaLabel:p,__getDayRef:m,__onDayKeyDown:h,__onDayClick:g,__onDayMouseEnter:_,withCellSpacing:v,highlightToday:y,withWeekNumbers:b,__preventFocus:x,__stopPropagation:S,nextIcon:C,previousIcon:w,nextLabel:T,previousLabel:E,onNext:D,onPrevious:O,onLevelClick:k,nextDisabled:A,previousDisabled:j,hasNextLevel:M,levelControlAriaLabel:N,withNext:P,withPrevious:ee,headerControlsOrder:F,monthLabelFormat:I,classNames:te,styles:ne,unstyled:re,__staticSelector:ie,size:L,static:ae,fullWidth:oe,attributes:se,...ce}=W(`MonthLevel`,kD,e),le=IE(),ue={__staticSelector:ie||`MonthLevel`,classNames:te,styles:ne,unstyled:re,size:L,attributes:se},de=typeof A==`boolean`?A:l?!(0,Q.default)(t).endOf(`month`).isBefore(l):!1,fe=typeof j==`boolean`?j:c?!(0,Q.default)(t).startOf(`month`).isAfter(c):!1;return(0,U.jsxs)(q,{"data-month-level":!0,size:L,...ce,children:[(0,U.jsx)(CD,{label:typeof I==`function`?I(t):(0,Q.default)(t).locale(n||le.locale).format(I),__preventFocus:x,__stopPropagation:S,nextIcon:C,previousIcon:w,nextLabel:T,previousLabel:E,onNext:D,onPrevious:O,onLevelClick:k,nextDisabled:de,previousDisabled:fe,hasNextLevel:M,levelControlAriaLabel:N,withNext:P,withPrevious:ee,headerControlsOrder:F,fullWidth:oe,...ue}),(0,U.jsx)(iD,{month:t,locale:n,firstDayOfWeek:r,weekdayFormat:i,weekendDays:a,getDayProps:o,excludeDate:s,minDate:c,maxDate:l,renderDay:u,hideOutsideDates:d,hideWeekdays:f,getDayAriaLabel:p,__getDayRef:m,__onDayKeyDown:h,__onDayClick:g,__onDayMouseEnter:_,__preventFocus:x,__stopPropagation:S,static:ae,withCellSpacing:v,highlightToday:y,withWeekNumbers:b,fullWidth:oe,...ue})]})});AD.classes={...iD.classes,...CD.classes},AD.displayName=`@mantine/dates/MonthLevel`;var jD={levelsGroup:`m_30b26e33`},MD=K(e=>{let t=W(`LevelsGroup`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,fullWidth:l,attributes:u,...d}=t;return(0,U.jsx)(q,{...G({name:c||`LevelsGroup`,classes:jD,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,rootSelector:`levelsGroup`})(`levelsGroup`),"data-full-width":l||void 0,...d})});MD.classes=jD,MD.displayName=`@mantine/dates/LevelsGroup`;var ND={numberOfColumns:1},PD=K(e=>{let{decade:t,locale:n,minDate:r,maxDate:i,yearsListFormat:a,getYearControlProps:o,__onControlClick:s,__onControlMouseEnter:c,withCellSpacing:l,__preventFocus:u,nextIcon:d,previousIcon:f,nextLabel:p,previousLabel:m,onNext:h,onPrevious:g,nextDisabled:_,previousDisabled:v,headerControlsOrder:y,classNames:b,styles:x,unstyled:S,__staticSelector:C,__stopPropagation:w,numberOfColumns:T,levelControlAriaLabel:E,decadeLabelFormat:D,size:O,fullWidth:k,vars:A,attributes:j,...M}=W(`DecadeLevelGroup`,ND,e),N=(0,H.useRef)([]),P=Array(T).fill(0).map((e,A)=>{let M=(0,Q.default)(t).add(A*10,`years`).format(`YYYY-MM-DD`);return(0,U.jsx)(ED,{size:O,yearsListFormat:a,decade:M,withNext:A===T-1,withPrevious:A===0,decadeLabelFormat:D,__onControlClick:s,__onControlMouseEnter:c,__onControlKeyDown:(e,t)=>jE({levelIndex:A,rowIndex:t.rowIndex,cellIndex:t.cellIndex,event:e,controlsRef:N}),__getControlRef:(e,t,n)=>{Array.isArray(N.current[A])||(N.current[A]=[]),Array.isArray(N.current[A][e])||(N.current[A][e]=[]),N.current[A][e][t]=n},levelControlAriaLabel:typeof E==`function`?E(M):E,locale:n,minDate:r,maxDate:i,__preventFocus:u,__stopPropagation:w,nextIcon:d,previousIcon:f,nextLabel:p,previousLabel:m,onNext:h,onPrevious:g,nextDisabled:_,previousDisabled:v,getYearControlProps:o,__staticSelector:C||`DecadeLevelGroup`,classNames:b,styles:x,unstyled:S,withCellSpacing:l,headerControlsOrder:y,fullWidth:k,attributes:j},A)});return(0,U.jsx)(MD,{classNames:b,styles:x,__staticSelector:C||`DecadeLevelGroup`,size:O,unstyled:S,fullWidth:k,attributes:j,...M,children:P})});PD.classes={...MD.classes,...ED.classes},PD.displayName=`@mantine/dates/DecadeLevelGroup`;var FD={numberOfColumns:1},ID=K(e=>{let{year:t,locale:n,minDate:r,maxDate:i,monthsListFormat:a,getMonthControlProps:o,__onControlClick:s,__onControlMouseEnter:c,withCellSpacing:l,__preventFocus:u,nextIcon:d,previousIcon:f,nextLabel:p,previousLabel:m,onNext:h,onPrevious:g,onLevelClick:_,nextDisabled:v,previousDisabled:y,hasNextLevel:b,headerControlsOrder:x,classNames:S,styles:C,unstyled:w,__staticSelector:T,__stopPropagation:E,numberOfColumns:D,levelControlAriaLabel:O,yearLabelFormat:k,size:A,fullWidth:j,vars:M,attributes:N,...P}=W(`YearLevelGroup`,FD,e),ee=(0,H.useRef)([]),F=Array(D).fill(0).map((e,M)=>{let P=(0,Q.default)(t).add(M,`years`).format(`YYYY-MM-DD`);return(0,U.jsx)(OD,{size:A,monthsListFormat:a,year:P,withNext:M===D-1,withPrevious:M===0,yearLabelFormat:k,__stopPropagation:E,__onControlClick:s,__onControlMouseEnter:c,__onControlKeyDown:(e,t)=>jE({levelIndex:M,rowIndex:t.rowIndex,cellIndex:t.cellIndex,event:e,controlsRef:ee}),__getControlRef:(e,t,n)=>{Array.isArray(ee.current[M])||(ee.current[M]=[]),Array.isArray(ee.current[M][e])||(ee.current[M][e]=[]),ee.current[M][e][t]=n},levelControlAriaLabel:typeof O==`function`?O(P):O,locale:n,minDate:r,maxDate:i,__preventFocus:u,nextIcon:d,previousIcon:f,nextLabel:p,previousLabel:m,onNext:h,onPrevious:g,onLevelClick:_,nextDisabled:v,previousDisabled:y,hasNextLevel:b,getMonthControlProps:o,classNames:S,styles:C,unstyled:w,__staticSelector:T||`YearLevelGroup`,withCellSpacing:l,headerControlsOrder:x,fullWidth:j,attributes:N},M)});return(0,U.jsx)(MD,{classNames:S,styles:C,__staticSelector:T||`YearLevelGroup`,size:A,unstyled:w,fullWidth:j,attributes:N,...P,children:F})});ID.classes={...OD.classes,...MD.classes},ID.displayName=`@mantine/dates/YearLevelGroup`;var LD={numberOfColumns:1},RD=K(e=>{let{month:t,locale:n,firstDayOfWeek:r,weekdayFormat:i,weekendDays:a,getDayProps:o,excludeDate:s,minDate:c,maxDate:l,renderDay:u,hideOutsideDates:d,hideWeekdays:f,getDayAriaLabel:p,__onDayClick:m,__onDayMouseEnter:h,withCellSpacing:g,highlightToday:_,withWeekNumbers:v,__preventFocus:y,nextIcon:b,previousIcon:x,nextLabel:S,previousLabel:C,onNext:w,onPrevious:T,onLevelClick:E,nextDisabled:D,previousDisabled:O,hasNextLevel:k,headerControlsOrder:A,classNames:j,styles:M,unstyled:N,numberOfColumns:P,levelControlAriaLabel:ee,monthLabelFormat:F,__staticSelector:I,__stopPropagation:te,size:ne,static:re,fullWidth:ie,vars:L,attributes:ae,...oe}=W(`MonthLevelGroup`,LD,e),se=(0,H.useRef)([]),ce=Array(P).fill(0).map((e,L)=>{let oe=(0,Q.default)(t).add(L,`months`).format(`YYYY-MM-DD`);return(0,U.jsx)(AD,{month:oe,withNext:L===P-1,withPrevious:L===0,monthLabelFormat:F,__stopPropagation:te,__onDayClick:m,__onDayMouseEnter:h,__onDayKeyDown:(e,t)=>jE({levelIndex:L,rowIndex:t.rowIndex,cellIndex:t.cellIndex,event:e,controlsRef:se}),__getDayRef:(e,t,n)=>{Array.isArray(se.current[L])||(se.current[L]=[]),Array.isArray(se.current[L][e])||(se.current[L][e]=[]),se.current[L][e][t]=n},levelControlAriaLabel:typeof ee==`function`?ee(oe):ee,locale:n,firstDayOfWeek:r,weekdayFormat:i,weekendDays:a,getDayProps:o,excludeDate:s,minDate:c,maxDate:l,renderDay:u,hideOutsideDates:d,hideWeekdays:f,getDayAriaLabel:p,__preventFocus:y,nextIcon:b,previousIcon:x,nextLabel:S,previousLabel:C,onNext:w,onPrevious:T,onLevelClick:E,nextDisabled:D,previousDisabled:O,hasNextLevel:k,classNames:j,styles:M,unstyled:N,__staticSelector:I||`MonthLevelGroup`,size:ne,static:re,withCellSpacing:g,highlightToday:_,withWeekNumbers:v,headerControlsOrder:A,fullWidth:ie,attributes:ae},L)});return(0,U.jsx)(MD,{classNames:j,styles:M,__staticSelector:I||`MonthLevelGroup`,size:ne,fullWidth:ie,attributes:ae,...oe,children:ce})});RD.classes={...MD.classes,...AD.classes},RD.displayName=`@mantine/dates/MonthLevelGroup`;var zD={input:`m_6fa5e2aa`},BD=K(e=>{let{inputProps:t,wrapperProps:n,placeholder:r,classNames:i,styles:a,unstyled:o,popoverProps:s,modalProps:c,dropdownType:l,children:u,formattedValue:d,dropdownHandlers:f,dropdownOpened:p,onClick:m,clearable:h,clearSectionMode:g,onClear:_,clearButtonProps:v,rightSection:y,shouldClear:b,readOnly:x,disabled:S,value:C,name:w,form:T,type:E,onDropdownClose:D,withTime:O,...k}=xf(`PickerInputBase`,{size:`sm`},e),A=(0,U.jsx)(bf.ClearButton,{onClick:_,unstyled:o,...v}),j=()=>{E===`range`&&Array.isArray(C)&&C[0]&&!C[1]&&_(),f.close()};return(0,U.jsxs)(U.Fragment,{children:[l===`modal`&&!x&&(0,U.jsx)(gg,{opened:p,onClose:j,withCloseButton:!1,size:`auto`,"data-dates-modal":!0,unstyled:o,...c,children:u}),(0,U.jsx)(bf.Wrapper,{...n,children:(0,U.jsxs)(eu,{position:`bottom-start`,opened:p,trapFocus:!0,returnFocus:!1,unstyled:o,onClose:D,...s,disabled:s?.disabled||l===`modal`||x,onChange:e=>{e||(s?.onClose?.(),j())},children:[(0,U.jsx)(eu.Target,{children:(0,U.jsx)(bf,{"data-dates-input":!0,"data-read-only":x||void 0,disabled:S,component:`button`,type:`button`,multiline:!0,onClick:e=>{m?.(e),f.toggle()},__clearSection:A,__clearable:h&&b&&!x&&!S,__clearSectionMode:g,rightSection:y,...t,classNames:{...i,input:Tn(zD.input,i?.input)},...k,children:d||(0,U.jsx)(bf.Placeholder,{error:t.error,unstyled:o,classNames:i,styles:a,__staticSelector:t.__staticSelector,children:r})})}),(0,U.jsx)(eu.Dropdown,{"data-dates-dropdown":!0,children:u})]})}),(0,U.jsx)(RE,{value:C,name:w,form:T,type:E,withTime:O})]})});BD.classes=zD,BD.displayName=`@mantine/dates/PickerInputBase`;var VD=e=>e===`range`?[null,null]:e===`multiple`?[]:null,HD=(e,t)=>{let n=t?NE:ME;return Array.isArray(e)?e.map(n):n(e)};function UD({type:e,value:t,defaultValue:n,onChange:r,withTime:i=!1}){let a=(0,H.useRef)(e),[o,s,c]=Yt({value:HD(t,i),defaultValue:HD(n,i),finalValue:VD(e),onChange:r}),l=o;return a.current!==e&&(a.current=e,t===void 0&&(l=n===void 0?VD(e):n,s(l))),[l,s,c]}function WD(e,t){return e?e===`month`?0:e===`year`?1:2:t||0}function GD(e){return e===0?`month`:e===1?`year`:`decade`}function KD(e,t,n){return GD(gt(WD(e,0),WD(t,0),WD(n,2)))}var qD={maxLevel:`decade`,minLevel:`month`,__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0,enableKeyboardNavigation:!0},JD=K(e=>{let t=W(`Calendar`,qD,e),{vars:n,maxLevel:r,minLevel:i,defaultLevel:a,level:o,onLevelChange:s,date:c,defaultDate:l,onDateChange:u,numberOfColumns:d,columnsToScroll:f,ariaLabels:p,nextLabel:m,previousLabel:h,onYearSelect:g,onMonthSelect:_,onYearMouseEnter:v,onMonthMouseEnter:y,headerControlsOrder:b,__updateDateOnYearSelect:x,__updateDateOnMonthSelect:S,__setDateRef:C,__setLevelRef:w,firstDayOfWeek:T,weekdayFormat:E,weekendDays:D,getDayProps:O,excludeDate:k,renderDay:A,hideOutsideDates:j,hideWeekdays:M,getDayAriaLabel:N,monthLabelFormat:P,nextIcon:ee,previousIcon:F,__onDayClick:I,__onDayMouseEnter:te,withCellSpacing:ne,highlightToday:re,withWeekNumbers:ie,monthsListFormat:L,getMonthControlProps:ae,yearLabelFormat:oe,yearsListFormat:se,getYearControlProps:ce,decadeLabelFormat:le,classNames:ue,styles:de,unstyled:fe,minDate:R,maxDate:pe,locale:me,__staticSelector:he,size:ge,__preventFocus:z,__stopPropagation:_e,onNextDecade:ve,onPreviousDecade:B,onNextYear:ye,onPreviousYear:be,onNextMonth:xe,onPreviousMonth:Se,static:Ce,enableKeyboardNavigation:we,fullWidth:Te,attributes:Ee,ref:De,...Oe}=t,{resolvedClassNames:ke,resolvedStyles:Ae}=Ur({classNames:ue,styles:de,props:t}),[je,Me]=Yt({value:o?KD(o,i,r):void 0,defaultValue:a?KD(a,i,r):void 0,finalValue:KD(void 0,i,r),onChange:s}),[Ne,Pe]=UD({type:`default`,value:ME(c),defaultValue:ME(l),onChange:u});(0,H.useImperativeHandle)(C,()=>e=>{Pe(e)}),(0,H.useImperativeHandle)(w,()=>e=>{Me(e)});let Fe={__staticSelector:he||`Calendar`,styles:Ae,classNames:ke,unstyled:fe,size:ge,attributes:Ee},Ie=f||d||1,Le=(0,H.useRef)(null);if(Le.current===null){let e=new Date;Le.current=R&&(0,Q.default)(e).isAfter(R)?R:(0,Q.default)(e).format(`YYYY-MM-DD`)}let Re=Ne||Le.current,ze=()=>{let e=(0,Q.default)(Re).add(Ie,`month`).format(`YYYY-MM-DD`);xe?.(e),Pe(e)},Be=()=>{let e=(0,Q.default)(Re).subtract(Ie,`month`).format(`YYYY-MM-DD`);Se?.(e),Pe(e)},Ve=()=>{let e=(0,Q.default)(Re).add(Ie,`year`).format(`YYYY-MM-DD`);ye?.(e),Pe(e)},He=()=>{let e=(0,Q.default)(Re).subtract(Ie,`year`).format(`YYYY-MM-DD`);be?.(e),Pe(e)},Ue=()=>{let e=(0,Q.default)(Re).add(10*Ie,`year`).format(`YYYY-MM-DD`);ve?.(e),Pe(e)},V=()=>{let e=(0,Q.default)(Re).subtract(10*Ie,`year`).format(`YYYY-MM-DD`);B?.(e),Pe(e)},We=(0,H.useRef)(null);return(0,H.useEffect)(()=>{if(!we||Ce)return;let e=e=>{if(!We.current?.contains(document.activeElement))return;let t=e.ctrlKey||e.metaKey,n=e.shiftKey;switch(e.key){case`ArrowUp`:t&&n?(e.preventDefault(),V()):t&&(e.preventDefault(),He());break;case`ArrowDown`:t&&n?(e.preventDefault(),Ue()):t&&(e.preventDefault(),Ve());break;case`y`:case`Y`:je===`month`&&(e.preventDefault(),Me(`year`));break}};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[we,Ce,je,Ve,He,Ue,V]),(0,U.jsxs)(q,{ref:Jt(We,De),size:ge,"data-calendar":!0,"data-full-width":Te||void 0,...Oe,children:[je===`month`&&(0,U.jsx)(RD,{month:Re,minDate:R,maxDate:pe,firstDayOfWeek:T,weekdayFormat:E,weekendDays:D,getDayProps:O,excludeDate:k,renderDay:A,hideOutsideDates:j,hideWeekdays:M,getDayAriaLabel:N,onNext:ze,onPrevious:Be,hasNextLevel:r!==`month`,onLevelClick:()=>Me(`year`),numberOfColumns:d,locale:me,levelControlAriaLabel:p?.monthLevelControl,nextLabel:p?.nextMonth??m,nextIcon:ee,previousLabel:p?.previousMonth??h,previousIcon:F,monthLabelFormat:P,__onDayClick:I,__onDayMouseEnter:te,__preventFocus:z,__stopPropagation:_e,static:Ce,withCellSpacing:ne,highlightToday:re,withWeekNumbers:ie,headerControlsOrder:b,fullWidth:Te,...Fe}),je===`year`&&(0,U.jsx)(ID,{year:Re,numberOfColumns:d,minDate:R,maxDate:pe,monthsListFormat:L,getMonthControlProps:ae,locale:me,onNext:Ve,onPrevious:He,hasNextLevel:r!==`month`&&r!==`year`,onLevelClick:()=>Me(`decade`),levelControlAriaLabel:p?.yearLevelControl,nextLabel:p?.nextYear??m,nextIcon:ee,previousLabel:p?.previousYear??h,previousIcon:F,yearLabelFormat:oe,__onControlMouseEnter:y,__onControlClick:(e,t)=>{S&&Pe(t),Me(KD(`month`,i,r)),_?.(t)},__preventFocus:z,__stopPropagation:_e,withCellSpacing:ne,headerControlsOrder:b,fullWidth:Te,...Fe}),je===`decade`&&(0,U.jsx)(PD,{decade:Re,minDate:R,maxDate:pe,yearsListFormat:se,getYearControlProps:ce,locale:me,onNext:Ue,onPrevious:V,numberOfColumns:d,nextLabel:p?.nextDecade??m,nextIcon:ee,previousLabel:p?.previousDecade??h,previousIcon:F,decadeLabelFormat:le,__onControlMouseEnter:v,__onControlClick:(e,t)=>{x&&Pe(t),Me(KD(`year`,i,r)),g?.(t)},__preventFocus:z,__stopPropagation:_e,withCellSpacing:ne,headerControlsOrder:b,fullWidth:Te,...Fe})]})});JD.classes={...PD.classes,...ID.classes,...RD.classes},JD.displayName=`@mantine/dates/Calendar`;function YD(e){let{maxLevel:t,minLevel:n,defaultLevel:r,level:i,onLevelChange:a,nextIcon:o,previousIcon:s,date:c,defaultDate:l,onDateChange:u,numberOfColumns:d,columnsToScroll:f,ariaLabels:p,nextLabel:m,previousLabel:h,onYearSelect:g,onMonthSelect:_,onYearMouseEnter:v,onMonthMouseEnter:y,onNextMonth:b,onPreviousMonth:x,onNextYear:S,onPreviousYear:C,onNextDecade:w,onPreviousDecade:T,withCellSpacing:E,highlightToday:D,__updateDateOnYearSelect:O,__updateDateOnMonthSelect:k,__setDateRef:A,__setLevelRef:j,withWeekNumbers:M,headerControlsOrder:N,firstDayOfWeek:P,weekdayFormat:ee,weekendDays:F,getDayProps:I,excludeDate:te,renderDay:ne,hideOutsideDates:re,hideWeekdays:ie,getDayAriaLabel:L,monthLabelFormat:ae,monthsListFormat:oe,getMonthControlProps:se,yearLabelFormat:ce,yearsListFormat:le,getYearControlProps:ue,decadeLabelFormat:de,allowSingleDateInRange:fe,allowDeselect:R,minDate:pe,maxDate:me,locale:he,...ge}=e;return{calendarProps:{maxLevel:t,minLevel:n,defaultLevel:r,level:i,onLevelChange:a,nextIcon:o,previousIcon:s,date:c,defaultDate:l,onDateChange:u,numberOfColumns:d,columnsToScroll:f,ariaLabels:p,nextLabel:m,previousLabel:h,onYearSelect:g,onMonthSelect:_,onYearMouseEnter:v,onMonthMouseEnter:y,onNextMonth:b,onPreviousMonth:x,onNextYear:S,onPreviousYear:C,onNextDecade:w,onPreviousDecade:T,withCellSpacing:E,highlightToday:D,__updateDateOnYearSelect:O,__updateDateOnMonthSelect:k,__setDateRef:A,withWeekNumbers:M,headerControlsOrder:N,firstDayOfWeek:P,weekdayFormat:ee,weekendDays:F,getDayProps:I,excludeDate:te,renderDay:ne,hideOutsideDates:re,hideWeekdays:ie,getDayAriaLabel:L,monthLabelFormat:ae,monthsListFormat:oe,getMonthControlProps:se,yearLabelFormat:ce,yearsListFormat:le,getYearControlProps:ue,decadeLabelFormat:de,allowSingleDateInRange:fe,allowDeselect:R,minDate:pe,maxDate:me,locale:he},others:ge}}function XD(e,t){let n=[...t].sort((e,t)=>(0,Q.default)(e).isAfter((0,Q.default)(t))?1:-1);return(0,Q.default)(n[0]).startOf(`day`).subtract(1,`ms`).isBefore(e)&&(0,Q.default)(n[1]).endOf(`day`).add(1,`ms`).isAfter(e)}function ZD({type:e,level:t,value:n,defaultValue:r,onChange:i,allowSingleDateInRange:a,allowDeselect:o,onMouseLeave:s}){let[c,l]=UD({type:e,value:n,defaultValue:r,onChange:i}),[u,d]=(0,H.useState)(e===`range`&&c[0]&&!c[1]?c[0]:null),[f,p]=(0,H.useState)(null),m=n=>{if(e===`range`){if(u&&!c[1]){if((0,Q.default)(n).isSame(u,t)&&!a){d(null),p(null),l([null,null]);return}let e=[n,u];e.sort((e,t)=>(0,Q.default)(e).isAfter((0,Q.default)(t))?1:-1),l(e),p(null),d(null);return}if(c[0]&&!c[1]&&(0,Q.default)(n).isSame(c[0],t)&&!a){d(null),p(null),l([null,null]);return}l([n,null]),p(null),d(n);return}if(e===`multiple`){c.some(e=>(0,Q.default)(e).isSame(n,t))?l(c.filter(e=>!(0,Q.default)(e).isSame(n,t))):l([...c,n]);return}c&&o&&(0,Q.default)(n).isSame(c,t)?l(null):l(n)},h=e=>u&&f?XD(e,[f,u]):c[0]&&c[1]?XD(e,c):!1,g=e===`range`?e=>{s?.(e),p(null)}:s,_=e=>c[0]&&(0,Q.default)(e).isSame(c[0],t)?!(f&&(0,Q.default)(f).isBefore(c[0])):!1,v=e=>c[1]?(0,Q.default)(e).isSame(c[1],t):!c[0]||!f?!1:(0,Q.default)(f).isBefore(c[0])&&(0,Q.default)(e).isSame(c[0],t),y=n=>{if(e===`range`)return{selected:c.some(e=>e&&(0,Q.default)(e).isSame(n,t)),inRange:h(n),firstInRange:_(n),lastInRange:v(n),"data-autofocus":!!c[0]&&(0,Q.default)(c[0]).isSame(n,t)||void 0};if(e===`multiple`)return{selected:c.some(e=>e&&(0,Q.default)(e).isSame(n,t)),"data-autofocus":!!c[0]&&(0,Q.default)(c[0]).isSame(n,t)||void 0};let r=(0,Q.default)(c).isSame(n,t);return{selected:r,"data-autofocus":r||void 0}},b=e===`range`&&u?p:()=>{};return(0,H.useEffect)(()=>{if(e===`range`)if(c[0]&&!c[1])d(c[0]);else{let e=c[0]==null&&c[1]==null,t=c[0]!=null&&c[1]!=null;(e||t)&&(d(null),p(null))}},[c]),{onDateChange:m,onRootMouseLeave:g,onHoveredDateChange:b,getControlProps:y,_value:c,setValue:l}}var QD={yearPickerRoot:`m_d01e596f`,presetsList:`m_52a6b4b0`,presetButton:`m_b0d93233`},$D=Cn((e,{size:t})=>({yearPickerRoot:{"--preset-font-size":ct(t)}})),eO={type:`default`},tO=K(e=>{let t=W(`YearPicker`,eO,e),{classNames:n,styles:r,vars:i,type:a,defaultValue:o,value:s,onChange:c,__staticSelector:l,getYearControlProps:u,allowSingleDateInRange:d,allowDeselect:f,onMouseLeave:p,onYearSelect:m,__updateDateOnYearSelect:h,__onPresetSelect:g,__stopPropagation:_,presets:v,className:y,style:b,unstyled:x,size:S,attributes:C,...w}=t,{calendarProps:T,others:E}=YD(w),D=(0,H.useRef)(null),O=(0,H.useRef)(null),k=G({name:l||`YearPicker`,classes:QD,props:t,className:y,style:b,classNames:n,styles:r,unstyled:x,attributes:C,rootSelector:v?`yearPickerRoot`:void 0,varsResolver:$D,vars:i}),{onDateChange:A,onRootMouseLeave:j,onHoveredDateChange:M,getControlProps:N,setValue:P}=ZD({type:a,level:`year`,allowDeselect:f,allowSingleDateInRange:d,value:s,defaultValue:o,onChange:c,onMouseLeave:p}),{resolvedClassNames:ee,resolvedStyles:F}=Ur({classNames:n,styles:r,props:t}),I=(0,U.jsx)(JD,{classNames:ee,styles:F,size:S,...T,...v?{}:E,minLevel:`decade`,__updateDateOnYearSelect:h??!1,__staticSelector:l||`YearPicker`,onMouseLeave:j,onYearMouseEnter:(e,t)=>M(t),onYearSelect:e=>{A(e),m?.(e)},getYearControlProps:e=>({...N(e),...u?.(e)}),__setDateRef:D,__setLevelRef:O,__stopPropagation:_,attributes:C,...v?{}:{className:y,style:b}});if(!v)return I;let te=e=>{let t=Array.isArray(e)?e[0]:e;t!==void 0&&(D.current?.(t),O.current?.(`decade`),g?g(t):P(e))},ne=v.map((e,t)=>(0,U.jsx)(dl,{...k(`presetButton`),onClick:()=>te(e.value),onMouseDown:e=>e.preventDefault(),"data-mantine-stop-propagation":_||void 0,children:e.label},t));return(0,U.jsxs)(q,{...k(`yearPickerRoot`),size:S,...E,children:[(0,U.jsx)(`div`,{...k(`presetsList`),children:ne}),I]})});tO.classes={...JD.classes,...QD},tO.varsResolver=$D,tO.displayName=`@mantine/dates/YearPicker`;var nO={monthPickerRoot:`m_53c9e871`,presetsList:`m_cccb8ff3`,presetButton:`m_7b4fbf50`},rO=Cn((e,{size:t})=>({monthPickerRoot:{"--preset-font-size":ct(t)}})),iO={type:`default`},aO=K(e=>{let t=W(`MonthPicker`,iO,e),{classNames:n,styles:r,vars:i,type:a,defaultValue:o,value:s,onChange:c,__staticSelector:l,getMonthControlProps:u,allowSingleDateInRange:d,allowDeselect:f,onMouseLeave:p,onMonthSelect:m,__updateDateOnMonthSelect:h,__onPresetSelect:g,__stopPropagation:_,presets:v,className:y,style:b,unstyled:x,size:S,attributes:C,onLevelChange:w,...T}=t,{calendarProps:E,others:D}=YD(T),O=(0,H.useRef)(null),k=(0,H.useRef)(null),A=G({name:l||`MonthPicker`,classes:nO,props:t,className:y,style:b,classNames:n,styles:r,unstyled:x,attributes:C,rootSelector:v?`monthPickerRoot`:void 0,varsResolver:rO,vars:i}),{onDateChange:j,onRootMouseLeave:M,onHoveredDateChange:N,getControlProps:P,setValue:ee}=ZD({type:a,level:`month`,allowDeselect:f,allowSingleDateInRange:d,value:s,defaultValue:o,onChange:c,onMouseLeave:p}),{resolvedClassNames:F,resolvedStyles:I}=Ur({classNames:n,styles:r,props:t}),te=(0,U.jsx)(JD,{classNames:F,styles:I,size:S,...E,...v?{}:D,minLevel:`year`,__updateDateOnMonthSelect:h??!1,__staticSelector:l||`MonthPicker`,onMouseLeave:M,onMonthMouseEnter:(e,t)=>N(t),onMonthSelect:e=>{j(e),m?.(e)},getMonthControlProps:e=>({...P(e),...u?.(e)}),onLevelChange:w,__setDateRef:O,__setLevelRef:k,__stopPropagation:_,attributes:C,...v?{}:{className:y,style:b}});if(!v)return te;let ne=e=>{let t=Array.isArray(e)?e[0]:e;t!==void 0&&(O.current?.(t),k.current?.(`year`),g?g(t):ee(e))},re=v.map((e,t)=>(0,U.jsx)(dl,{...A(`presetButton`),onClick:()=>ne(e.value),onMouseDown:e=>e.preventDefault(),"data-mantine-stop-propagation":_||void 0,children:e.label},t));return(0,U.jsxs)(q,{...A(`monthPickerRoot`),size:S,...D,children:[(0,U.jsx)(`div`,{...A(`presetsList`),children:re}),te]})});aO.classes={...JD.classes,...nO},aO.varsResolver=rO,aO.displayName=`@mantine/dates/MonthPicker`;var oO={datePickerRoot:`m_765a40cf`,presetsList:`m_d6a681e1`,presetButton:`m_acd30b22`},sO=Cn((e,{size:t})=>({datePickerRoot:{"--preset-font-size":ct(t)}})),cO={type:`default`,defaultLevel:`month`,numberOfColumns:1,size:`sm`},lO=K(e=>{let t=W(`DatePicker`,cO,e),{allowDeselect:n,allowSingleDateInRange:r,value:i,defaultValue:a,onChange:o,onMouseLeave:s,classNames:c,styles:l,__staticSelector:u,__onDayClick:d,__onDayMouseEnter:f,__onPresetSelect:p,__stopPropagation:m,presets:h,className:g,style:_,unstyled:v,size:y,vars:b,attributes:x,...S}=t,{calendarProps:C,others:w}=YD(S),T=(0,H.useRef)(null),E=(0,H.useRef)(null),D=G({name:u||`DatePicker`,classes:oO,props:t,className:g,style:_,classNames:c,styles:l,unstyled:v,attributes:x,rootSelector:h?`datePickerRoot`:void 0,varsResolver:sO,vars:b}),{onDateChange:O,onRootMouseLeave:k,onHoveredDateChange:A,getControlProps:j,_value:M,setValue:N}=ZD({type:w.type,level:`day`,allowDeselect:n,allowSingleDateInRange:r,value:i,defaultValue:a,onChange:o,onMouseLeave:s}),{resolvedClassNames:P,resolvedStyles:ee}=Ur({classNames:c,styles:l,props:t}),F=(0,U.jsx)(JD,{classNames:P,styles:ee,__staticSelector:u||`DatePicker`,onMouseLeave:k,size:y,...C,...h?{}:w,__stopPropagation:m,__setDateRef:T,__setLevelRef:E,minLevel:C.minLevel||`month`,__onDayMouseEnter:(e,t)=>{A(t),f?.(e,t)},__onDayClick:(e,t)=>{O(t),d?.(e,t)},getDayProps:e=>({...j(e),...C.getDayProps?.(e)}),getMonthControlProps:e=>({selected:typeof M==`string`?YE(e,M):!1,...C.getMonthControlProps?.(e)}),getYearControlProps:e=>({selected:typeof M==`string`?(0,Q.default)(e).isSame(M,`year`):!1,...C.getYearControlProps?.(e)}),hideOutsideDates:C.hideOutsideDates??C.numberOfColumns!==1,attributes:x,...h?{}:{className:g,style:_}});if(!h)return F;let I=e=>{let t=Array.isArray(e)?e[0]:e;t!==void 0&&(T.current?.(t),E.current?.(`month`),p?p(t):N(e))},te=h.map((e,t)=>(0,U.jsx)(dl,{...D(`presetButton`),onClick:()=>I(e.value),onMouseDown:e=>e.preventDefault(),"data-mantine-stop-propagation":m||void 0,children:e.label},t));return(0,U.jsxs)(q,{...D(`datePickerRoot`),size:y,...w,children:[(0,U.jsx)(`div`,{...D(`presetsList`),children:te}),F]})});lO.classes=JD.classes,lO.varsResolver=sO,lO.displayName=`@mantine/dates/DatePicker`;function uO(e){if(e===null)return null;let t=new Date(e);return Number.isNaN(t.getTime())||!e?null:(0,Q.default)(t).format(`YYYY-MM-DD`)}function dO({date:e,maxDate:t,minDate:n}){return!(e==null||Number.isNaN(new Date(e).getTime())||t&&(0,Q.default)(e).isAfter(t,`date`)||n&&(0,Q.default)(e).isBefore(n,`date`))}var fO={valueFormat:`MMMM D, YYYY`,fixOnBlur:!0,size:`sm`},pO=K(e=>{let{inputProps:t,wrapperProps:n,value:r,defaultValue:i,onChange:a,clearable:o,clearSectionMode:s,clearButtonProps:c,popoverProps:l,getDayProps:u,locale:d,valueFormat:f,withTime:p,dateParser:m,minDate:h,maxDate:g,fixOnBlur:_,onFocus:v,onBlur:y,onClick:b,onKeyDown:x,readOnly:S,name:C,form:w,rightSection:T,unstyled:E,classNames:D,styles:O,allowDeselect:k,date:A,defaultDate:j,onDateChange:M,getMonthControlProps:N,getYearControlProps:P,disabled:ee,...F}=xf(`DateInput`,fO,e),I=(0,H.useRef)(null),te=(0,H.useRef)(null),[ne,re]=(0,H.useState)(!1),{calendarProps:ie,others:L}=YD(F),ae=IE(),oe=m||(e=>{let t=(0,Q.default)(e,f,ae.getLocale(d)).toDate();return Number.isNaN(t.getTime())?uO(e):(0,Q.default)(t).format(p?`YYYY-MM-DD HH:mm:ss`:`YYYY-MM-DD`)}),se=k===void 0?o:k,ce=e=>e?(0,Q.default)(e).locale(ae.getLocale(d)).format(f):``,[le,ue,de]=UD({type:`default`,value:r,defaultValue:i,onChange:a,withTime:p}),[fe,R]=UD({type:`default`,value:A,defaultValue:i||j,onChange:M});(0,H.useEffect)(()=>{de&&r!==null&&R(r)},[de,r]);let[pe,me]=(0,H.useState)(ce(le));(0,H.useEffect)(()=>{me(ce(le))},[ae.getLocale(d)]);let he=e=>{let t=e.currentTarget.value;if(me(t),re(!0),t.trim()===``&&(k||o))ue(null);else{let e=oe(t);e&&dO({date:e,minDate:h,maxDate:g})&&(ue(e),R(e))}},ge=e=>{y?.(e),re(!1),_&&me(ce(le))},z=e=>{v?.(e),re(!0)},_e=e=>{b?.(e),re(!0)},ve=e=>{e.key===`Escape`&&re(!1),x?.(e)},B=e=>({...u?.(e),selected:(0,Q.default)(le).isSame(e,`day`),onClick:t=>{u?.(e).onClick?.(t);let n=se&&(0,Q.default)(le).isSame(e,`day`)?null:e;ue(n),!de&&n&&me(ce(n)),re(!1)}}),ye=(0,U.jsx)(bf.ClearButton,{onClick:()=>{ue(null),!de&&me(``),re(!1)},unstyled:E,...c}),be=o&&!!le&&!S&&!ee;return Et(()=>{le!==void 0&&!ne&&me(ce(le))},[le]),St(()=>re(!1),void 0,[I.current,te.current]),(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(bf.Wrapper,{...n,__staticSelector:`DateInput`,ref:I,children:(0,U.jsxs)(eu,{opened:ne,trapFocus:!1,position:`bottom-start`,disabled:S||ee,withRoles:!1,unstyled:E,...l,children:[(0,U.jsx)(eu.Target,{children:(0,U.jsx)(bf,{"data-dates-input":!0,"data-read-only":S||void 0,autoComplete:`off`,value:pe,onChange:he,onBlur:ge,onFocus:z,onClick:_e,onKeyDown:ve,readOnly:S,rightSection:T,__clearSection:ye,__clearable:be,__clearSectionMode:s,...t,...L,disabled:ee,__staticSelector:`DateInput`})}),(0,U.jsx)(eu.Dropdown,{onMouseDown:e=>e.preventDefault(),"data-dates-dropdown":!0,ref:te,children:(0,U.jsx)(JD,{__staticSelector:`DateInput`,...ie,classNames:D,styles:O,unstyled:E,__preventFocus:!0,minDate:h,maxDate:g,locale:d,getDayProps:B,size:t.size,date:fe,onDateChange:R,getMonthControlProps:e=>({selected:typeof le==`string`?YE(e,le):!1,...N?.(e)}),getYearControlProps:e=>({selected:typeof le==`string`?(0,Q.default)(e).isSame(le,`year`):!1,...P?.(e)}),attributes:n.attributes})})]})}),(0,U.jsx)(RE,{name:C,form:w,value:le,type:`default`,withTime:p})]})});pO.classes={...bf.classes,...JD.classes},pO.displayName=`@mantine/dates/DateInput`;function mO({type:e,value:t,defaultValue:n,onChange:r,locale:i,format:a,closeOnChange:o,sortDates:s,labelSeparator:c,valueFormatter:l}){let u=IE(),[d,f]=rn(!1),[p,m]=UD({type:e,value:t,defaultValue:n,onChange:r}),h=EE({type:e,date:p,locale:u.getLocale(i),format:a,labelSeparator:u.getLabelSeparator(c),formatter:l}),g=t=>{o&&(e===`default`&&f.close(),e===`range`&&t[0]&&t[1]&&f.close()),m(s&&e===`multiple`?[...t].sort((e,t)=>(0,Q.default)(e).isAfter((0,Q.default)(t))?1:-1):t)};return{_value:p,setValue:g,onClear:()=>g(e===`range`?[null,null]:e===`multiple`?[]:null),shouldClear:e===`range`?!!p[0]:e===`multiple`?p.length>0:p!==null,formattedValue:h,dropdownOpened:d,dropdownHandlers:f}}var hO={type:`default`,size:`sm`,valueFormat:`YYYY`,closeOnChange:!0,sortDates:!0,dropdownType:`popover`},gO=K(e=>{let t=W(`YearPickerInput`,hO,e),{type:n,value:r,defaultValue:i,onChange:a,valueFormat:o,labelSeparator:s,locale:c,classNames:l,styles:u,unstyled:d,closeOnChange:f,size:p,variant:m,dropdownType:h,sortDates:g,minDate:_,maxDate:v,vars:y,valueFormatter:b,presets:x,attributes:S,...C}=t,{resolvedClassNames:w,resolvedStyles:T}=Ur({classNames:l,styles:u,props:t}),{calendarProps:E,others:D}=YD(C),{_value:O,setValue:k,formattedValue:A,dropdownHandlers:j,dropdownOpened:M,onClear:N,shouldClear:P}=mO({type:n,value:r,defaultValue:i,onChange:a,locale:c,format:o,labelSeparator:s,closeOnChange:f,sortDates:g,valueFormatter:b});return(0,U.jsx)(BD,{formattedValue:A,dropdownOpened:M,dropdownHandlers:j,classNames:w,styles:T,unstyled:d,onClear:N,shouldClear:P,value:O,size:p,variant:m,dropdownType:h,...D,type:n,__staticSelector:`YearPickerInput`,attributes:S,children:(0,U.jsx)(tO,{...E,size:p,variant:m,type:n,value:O,defaultDate:E.defaultDate||(Array.isArray(O)?O[0]||PE({maxDate:v,minDate:_}):O||PE({maxDate:v,minDate:_})),onChange:k,locale:c,classNames:w,styles:T,unstyled:d,__staticSelector:`YearPickerInput`,__stopPropagation:h===`popover`,minDate:_,maxDate:v,presets:x,attributes:S})})});gO.classes={...BD.classes,...tO.classes},gO.displayName=`@mantine/dates/YearPickerInput`;var _O={type:`default`,size:`sm`,valueFormat:`MMMM YYYY`,closeOnChange:!0,sortDates:!0,dropdownType:`popover`},vO=K(e=>{let t=W(`MonthPickerInput`,_O,e),{type:n,value:r,defaultValue:i,onChange:a,valueFormat:o,labelSeparator:s,locale:c,classNames:l,styles:u,unstyled:d,closeOnChange:f,size:p,variant:m,dropdownType:h,sortDates:g,minDate:_,maxDate:v,vars:y,valueFormatter:b,presets:x,attributes:S,...C}=t,{resolvedClassNames:w,resolvedStyles:T}=Ur({classNames:l,styles:u,props:t}),{calendarProps:E,others:D}=YD(C),{_value:O,setValue:k,formattedValue:A,dropdownHandlers:j,dropdownOpened:M,onClear:N,shouldClear:P}=mO({type:n,value:r,defaultValue:i,onChange:a,locale:c,format:o,labelSeparator:s,closeOnChange:f,sortDates:g,valueFormatter:b});return(0,U.jsx)(BD,{formattedValue:A,dropdownOpened:M,dropdownHandlers:j,classNames:w,styles:T,unstyled:d,onClear:N,shouldClear:P,value:O,size:p,variant:m,dropdownType:h,...D,attributes:S,type:n,__staticSelector:`MonthPickerInput`,children:(0,U.jsx)(aO,{...E,size:p,variant:m,type:n,value:O,defaultDate:E.defaultDate||(Array.isArray(O)?O[0]||PE({maxDate:v,minDate:_}):O||PE({maxDate:v,minDate:_})),onChange:k,locale:c,classNames:w,styles:T,unstyled:d,__staticSelector:`MonthPickerInput`,__stopPropagation:h===`popover`,minDate:_,maxDate:v,presets:x,attributes:S})})});vO.classes={...BD.classes,...aO.classes},vO.displayName=`@mantine/dates/MonthPickerInput`;var yO={type:`default`,size:`sm`,valueFormat:`MMMM D, YYYY`,closeOnChange:!0,sortDates:!0,dropdownType:`popover`},bO=K(e=>{let t=W(`DatePickerInput`,yO,e),{type:n,value:r,defaultValue:i,onChange:a,valueFormat:o,labelSeparator:s,locale:c,classNames:l,styles:u,unstyled:d,closeOnChange:f,size:p,variant:m,dropdownType:h,sortDates:g,minDate:_,maxDate:v,vars:y,defaultDate:b,valueFormatter:x,presets:S,attributes:C,...w}=t,{resolvedClassNames:T,resolvedStyles:E}=Ur({classNames:l,styles:u,props:t}),{calendarProps:D,others:O}=YD(w),{_value:k,setValue:A,formattedValue:j,dropdownHandlers:M,dropdownOpened:N,onClear:P,shouldClear:ee}=mO({type:n,value:r,defaultValue:i,onChange:a,locale:c,format:o,labelSeparator:s,closeOnChange:f,sortDates:g,valueFormatter:x}),F=Array.isArray(k)?k[0]||b:k||b;return(0,U.jsx)(BD,{formattedValue:j,dropdownOpened:N,dropdownHandlers:M,classNames:T,styles:E,unstyled:d,onClear:P,shouldClear:ee,value:k,size:p,variant:m,dropdownType:h,...O,type:n,__staticSelector:`DatePickerInput`,attributes:C,children:(0,U.jsx)(lO,{...D,size:p,variant:m,type:n,value:k,defaultDate:F||PE({maxDate:v,minDate:_}),onChange:A,locale:c,classNames:T,styles:E,unstyled:d,__staticSelector:`DatePickerInput`,__stopPropagation:h===`popover`,minDate:_,maxDate:v,presets:S,attributes:C})})});bO.classes={...BD.classes,...lO.classes},bO.displayName=`@mantine/dates/DatePickerInput`;var xO=`DD/MM/YYYY`,SO=pO.extend({defaultProps:{placeholder:xO,valueFormat:xO}});function CO({...e}){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,U.jsx)(`path`,{d:`M18 9.00005L12 15L6 9`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})})}var wO=Hf.extend({classNames:{item:`_item_wy8vo_1`,control:`_control_wy8vo_10`,chevron:`_chevron_wy8vo_20`,label:`_label_wy8vo_21`,content:`_content_wy8vo_43`},defaultProps:{chevron:(0,U.jsx)(CO,{}),variant:`separated`}}),TO=gu.extend({classNames:{root:`_root_8921i_1`},defaultProps:{size:`md`,variant:`primary`}}),EO=Gf.extend({classNames:{root:`_root_nrydo_1`,icon:`_icon_nrydo_10`,title:`_title_nrydo_38`,message:`_message_nrydo_42`},styles:{root:{overflow:`initial`},message:{overflow:`initial`}}}),DO=$f.extend({classNames:{root:`_root_1q1iz_1`},defaultProps:{underline:`never`}}),OO=ym.extend({classNames:{root:`_root_ja0yt_1`,placeholder:`_placeholder_ja0yt_5`},defaultProps:{radius:`xl`}}),kO=Sm.extend({classNames:{root:`_root_c4e34_1`},defaultProps:{size:`md`,radius:`md`,variant:`default`}}),AO=jm.extend({classNames:{root:`_root_d2yo7_1`,section:`_section_d2yo7_204`},defaultProps:{size:`md`,variant:`primary`}}),[jO,MO]=Je(`Carousel component was not found in tree`),NO={root:`m_17884d0f`,viewport:`m_a2dae653`,container:`m_fcd81474`,controls:`m_39bc3463`,control:`m_64f58e10`,indicators:`m_71ea3ab1`,indicator:`m_eae68602`,slide:`m_d98df724`},PO=K(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,mod:o,...s}=W(`CarouselSlide`,null,e),c=MO();return(0,U.jsx)(q,{mod:[{orientation:c.orientation},o],role:`group`,"aria-roledescription":`slide`,"aria-label":`Carousel slide`,...c.getStyles(`slide`,{className:n,style:r,classNames:t,styles:i}),...s})});PO.classes=NO,PO.displayName=`@mantine/carousel/CarouselSlide`;function FO({slideGap:e,slideSize:t,selector:n}){let r=wr(),i=Ge({"--carousel-slide-gap":ot(mt(e)),"--carousel-slide-size":V(mt(t))}),a=Ie(r.breakpoints).reduce((n,r)=>(n[r]||(n[r]={}),typeof e==`object`&&e[r]!==void 0&&(n[r][`--carousel-slide-gap`]=ot(e[r])),typeof t==`object`&&t[r]!==void 0&&(n[r][`--carousel-slide-size`]=ot(t[r])),n),{});return(0,U.jsx)(oi,{styles:i,media:pt(Ie(a),r.breakpoints).filter(e=>Ie(a[e.value]).length>0).map(e=>({query:`(min-width: ${r.breakpoints[e.value]})`,styles:a[e.value]})),selector:n})}function IO(e){return typeof e==`object`&&e?Ie(e):[]}function LO(e){return e.sort((e,t)=>Ve(e)-Ve(t))}function RO({slideGap:e,slideSize:t}){return LO(Array.from(new Set([...IO(e),...IO(t)])))}function zO({slideGap:e,slideSize:t,selector:n}){let r=Ge({"--carousel-slide-gap":ot(mt(e)),"--carousel-slide-size":V(mt(t))}),i=RO({slideGap:e,slideSize:t}).reduce((n,r)=>(n[r]||(n[r]={}),typeof e==`object`&&e[r]!==void 0&&(n[r][`--carousel-slide-gap`]=ot(e[r])),typeof t==`object`&&t[r]!==void 0&&(n[r][`--carousel-slide-size`]=ot(t[r])),n),{});return(0,U.jsx)(oi,{styles:r,container:Object.keys(i).map(e=>({query:`carousel (min-width: ${e})`,styles:i[e]})),selector:n})}function BO({dir:e,orientation:t,direction:n}){return n===`previous`?t===`horizontal`?90*(e===`ltr`?1:-1):-180:t===`horizontal`?90*(e===`ltr`?-1:1):0}function VO(e){return Object.prototype.toString.call(e)===`[object Object]`}function HO(e){return VO(e)||Array.isArray(e)}function UO(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}function WO(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||JSON.stringify(Object.keys(e.breakpoints||{}))!==JSON.stringify(Object.keys(t.breakpoints||{}))?!1:n.every(n=>{let r=e[n],i=t[n];return typeof r==`function`?`${r}`==`${i}`:!HO(r)||!HO(i)?r===i:WO(r,i)})}function GO(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function KO(e,t){if(e.length!==t.length)return!1;let n=GO(e),r=GO(t);return n.every((e,t)=>{let n=r[t];return WO(e,n)})}function qO(e){return typeof e==`number`}function JO(e){return typeof e==`string`}function YO(e){return typeof e==`boolean`}function XO(e){return Object.prototype.toString.call(e)===`[object Object]`}function ZO(e){return Math.abs(e)}function QO(e){return Math.sign(e)}function $O(e,t){return ZO(e-t)}function ek(e,t){return e===0||t===0||ZO(e)<=ZO(t)?0:ZO($O(ZO(e),ZO(t))/e)}function tk(e){return Math.round(e*100)/100}function nk(e){return sk(e).map(Number)}function rk(e){return e[ik(e)]}function ik(e){return Math.max(0,e.length-1)}function ak(e,t){return t===ik(e)}function ok(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function sk(e){return Object.keys(e)}function ck(e,t){return[e,t].reduce((e,t)=>(sk(t).forEach(n=>{let r=e[n],i=t[n];e[n]=XO(r)&&XO(i)?ck(r,i):i}),e),{})}function lk(e,t){return t.MouseEvent!==void 0&&e instanceof t.MouseEvent}function uk(e,t){let n={start:r,center:i,end:a};function r(){return 0}function i(e){return a(e)/2}function a(e){return t-e}function o(r,i){return JO(e)?n[e](r):e(t,r,i)}return{measure:o}}function dk(){let e=[];function t(t,n,i,a={passive:!0}){let o;if(`addEventListener`in t)t.addEventListener(n,i,a),o=()=>t.removeEventListener(n,i,a);else{let e=t;e.addListener(i),o=()=>e.removeListener(i)}return e.push(o),r}function n(){e=e.filter(e=>e())}let r={add:t,clear:n};return r}function fk(e,t,n,r){let i=dk(),a=1e3/60,o=null,s=0,c=0;function l(){i.add(e,`visibilitychange`,()=>{e.hidden&&m()})}function u(){p(),i.clear()}function d(e){if(!c)return;o||(o=e,n(),n());let i=e-o;for(o=e,s+=i;s>=a;)n(),s-=a;r(s/a),c&&=t.requestAnimationFrame(d)}function f(){c||=t.requestAnimationFrame(d)}function p(){t.cancelAnimationFrame(c),o=null,s=0,c=0}function m(){o=null,s=0}return{init:l,destroy:u,start:f,stop:p,update:n,render:r}}function pk(e,t){let n=t===`rtl`,r=e===`y`,i=r?`y`:`x`,a=r?`x`:`y`,o=!r&&n?-1:1,s=u(),c=d();function l(e){let{height:t,width:n}=e;return r?t:n}function u(){return r?`top`:n?`right`:`left`}function d(){return r?`bottom`:n?`left`:`right`}function f(e){return e*o}return{scroll:i,cross:a,startEdge:s,endEdge:c,measureSize:l,direction:f}}function mk(e=0,t=0){let n=ZO(e-t);function r(t){return t<e}function i(e){return e>t}function a(e){return r(e)||i(e)}function o(n){return a(n)?r(n)?e:t:n}function s(e){return n?e-n*Math.ceil((e-t)/n):e}return{length:n,max:t,min:e,constrain:o,reachedAny:a,reachedMax:i,reachedMin:r,removeOffset:s}}function hk(e,t,n){let{constrain:r}=mk(0,e),i=e+1,a=o(t);function o(e){return n?ZO((i+e)%i):r(e)}function s(){return a}function c(e){return a=o(e),d}function l(e){return u().set(s()+e)}function u(){return hk(e,s(),n)}let d={get:s,set:c,add:l,clone:u};return d}function gk(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v){let{cross:y,direction:b}=e,x=[`INPUT`,`SELECT`,`TEXTAREA`],S={passive:!1},C=dk(),w=dk(),T=mk(50,225).constrain(p.measure(20)),E={mouse:300,touch:400},D={mouse:500,touch:600},O=m?43:25,k=!1,A=0,j=0,M=!1,N=!1,P=!1,ee=!1;function F(e){if(!v)return;function n(t){(YO(v)||v(e,t))&&L(t)}let r=t;C.add(r,`dragstart`,e=>e.preventDefault(),S).add(r,`touchmove`,()=>void 0,S).add(r,`touchend`,()=>void 0).add(r,`touchstart`,n).add(r,`mousedown`,n).add(r,`touchcancel`,oe).add(r,`contextmenu`,oe).add(r,`click`,se,!0)}function I(){C.clear(),w.clear()}function te(){let e=ee?n:t;w.add(e,`touchmove`,ae,S).add(e,`touchend`,oe).add(e,`mousemove`,ae,S).add(e,`mouseup`,oe)}function ne(e){let t=e.nodeName||``;return x.includes(t)}function re(){return(m?D:E)[ee?`mouse`:`touch`]}function ie(e,t){let n=d.add(QO(e)*-1),r=u.byDistance(e,!m).distance;return m||ZO(e)<T?r:g&&t?r*.5:u.byIndex(n.get(),0).distance}function L(e){let t=lk(e,r);ee=t,P=m&&t&&!e.buttons&&k,k=$O(i.get(),o.get())>=2,!(t&&e.button!==0)&&(ne(e.target)||(M=!0,a.pointerDown(e),l.useFriction(0).useDuration(0),i.set(o),te(),A=a.readPoint(e),j=a.readPoint(e,y),f.emit(`pointerDown`)))}function ae(e){if(!lk(e,r)&&e.touches.length>=2)return oe(e);let t=a.readPoint(e),n=a.readPoint(e,y),o=$O(t,A),c=$O(n,j);if(!N&&!ee&&(!e.cancelable||(N=o>c,!N)))return oe(e);let u=a.pointerMove(e);o>h&&(P=!0),l.useFriction(.3).useDuration(.75),s.start(),i.add(b(u)),e.preventDefault()}function oe(e){let t=u.byDistance(0,!1).index!==d.get(),n=a.pointerUp(e)*re(),r=ie(b(n),t),i=ek(n,r),o=O-10*i,s=_+i/50;N=!1,M=!1,w.clear(),l.useDuration(o).useFriction(s),c.distance(r,!m),ee=!1,f.emit(`pointerUp`)}function se(e){P&&=(e.stopPropagation(),e.preventDefault(),!1)}function ce(){return M}return{init:F,destroy:I,pointerDown:ce}}function _k(e,t){let n,r;function i(e){return e.timeStamp}function a(n,r){let i=`client${(r||e.scroll)===`x`?`X`:`Y`}`;return(lk(n,t)?n:n.touches[0])[i]}function o(e){return n=e,r=e,a(e)}function s(e){let t=a(e)-a(r),o=i(e)-i(n)>170;return r=e,o&&(n=e),t}function c(e){if(!n||!r)return 0;let t=a(r)-a(n),o=i(e)-i(n),s=i(e)-i(r)>170,c=t/o;return o&&!s&&ZO(c)>.1?c:0}return{pointerDown:o,pointerMove:s,pointerUp:c,readPoint:a}}function vk(){function e(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}return{measure:e}}function yk(e){function t(t){return t/100*e}return{measure:t}}function bk(e,t,n,r,i,a,o){let s=[e].concat(r),c,l,u=[],d=!1;function f(e){return i.measureSize(o.measure(e))}function p(i){if(!a)return;l=f(e),u=r.map(f);function o(n){for(let a of n){if(d)return;let n=a.target===e,o=r.indexOf(a.target),s=n?l:u[o];if(ZO(f(n?e:r[o])-s)>=.5){i.reInit(),t.emit(`resize`);break}}}c=new ResizeObserver(e=>{(YO(a)||a(i,e))&&o(e)}),n.requestAnimationFrame(()=>{s.forEach(e=>c.observe(e))})}function m(){d=!0,c&&c.disconnect()}return{init:p,destroy:m}}function xk(e,t,n,r,i,a){let o=0,s=0,c=i,l=a,u=e.get(),d=0;function f(){let t=r.get()-e.get(),i=!c,a=0;return i?(o=0,n.set(r),e.set(r),a=t):(n.set(e),o+=t/c,o*=l,u+=o,e.add(o),a=u-d),s=QO(a),d=u,x}function p(){return ZO(r.get()-t.get())<.001}function m(){return c}function h(){return s}function g(){return o}function _(){return y(i)}function v(){return b(a)}function y(e){return c=e,x}function b(e){return l=e,x}let x={direction:h,duration:m,velocity:g,seek:f,settled:p,useBaseFriction:v,useBaseDuration:_,useFriction:b,useDuration:y};return x}function Sk(e,t,n,r,i){let a=i.measure(10),o=i.measure(50),s=mk(.1,.99),c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(i){if(!l())return;let c=ZO(e[e.reachedMin(t.get())?`min`:`max`]-t.get()),u=n.get()-t.get(),d=s.constrain(c/o);n.subtract(u*d),!i&&ZO(u)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function d(e){c=!e}return{shouldConstrain:l,constrain:u,toggleActive:d}}function Ck(e,t,n,r,i){let a=mk(-t+e,0),o=d(),s=u(),c=f();function l(e,t){return $O(e,t)<=1}function u(){let e=o[0],t=rk(o);return mk(o.lastIndexOf(e),o.indexOf(t)+1)}function d(){return n.map((e,t)=>{let{min:r,max:i}=a,o=a.constrain(e),s=!t,c=ak(n,t);return s?i:c||l(r,o)?r:l(i,o)?i:o}).map(e=>parseFloat(e.toFixed(3)))}function f(){if(t<=e+i)return[a.max];if(r===`keepSnaps`)return o;let{min:n,max:c}=s;return o.slice(n,c)}return{snapsContained:c,scrollContainLimit:s}}function wk(e,t,n){let r=t[0];return{limit:mk(n?r-e:rk(t),r)}}function Tk(e,t,n,r){let i=.1,{reachedMin:a,reachedMax:o}=mk(t.min+i,t.max+i);function s(e){return e===1?o(n.get()):e===-1?a(n.get()):!1}function c(t){if(!s(t))return;let n=t*-1*e;r.forEach(e=>e.add(n))}return{loop:c}}function Ek(e){let{max:t,length:n}=e;function r(e){let r=e-t;return n?r/-n:0}return{get:r}}function Dk(e,t,n,r,i){let{startEdge:a,endEdge:o}=e,{groupSlides:s}=i,c=d().map(t.measure),l=f(),u=p();function d(){return s(r).map(e=>rk(e)[o]-e[0][a]).map(ZO)}function f(){return r.map(e=>n[a]-e[a]).map(e=>-ZO(e))}function p(){return s(l).map(e=>e[0]).map((e,t)=>e+c[t])}return{snaps:l,snapsAligned:u}}function Ok(e,t,n,r,i,a){let{groupSlides:o}=i,{min:s,max:c}=r,l=u();function u(){let r=o(a),i=!e||t===`keepSnaps`;return n.length===1?[a]:i?r:r.slice(s,c).map((e,t,n)=>{let r=!t,i=ak(n,t);return r?ok(rk(n[0])+1):i?ok(ik(a)-rk(n)[0]+1,rk(n)[0]):e})}return{slideRegistry:l}}function kk(e,t,n,r,i){let{reachedAny:a,removeOffset:o,constrain:s}=r;function c(e){return e.concat().sort((e,t)=>ZO(e)-ZO(t))[0]}function l(n){let r=e?o(n):s(n),{index:i}=t.map((e,t)=>({diff:u(e-r,0),index:t})).sort((e,t)=>ZO(e.diff)-ZO(t.diff))[0];return{index:i,distance:r}}function u(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return c(i);let a=i.filter(e=>QO(e)===r);return a.length?c(a):rk(i)-n}function d(e,n){return{index:e,distance:u(t[e]-i.get(),n)}}function f(n,r){let o=i.get()+n,{index:s,distance:c}=l(o),d=!e&&a(o);return!r||d?{index:s,distance:n}:{index:s,distance:n+u(t[s]-c,0)}}return{byDistance:f,byIndex:d,shortcut:u}}function Ak(e,t,n,r,i,a,o){function s(i){let s=i.distance,c=i.index!==t.get();a.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),c&&(n.set(t.get()),t.set(i.index),o.emit(`select`))}function c(e,t){s(i.byDistance(e,t))}function l(e,n){let r=t.clone().set(e);s(i.byIndex(r.get(),n))}return{distance:c,index:l}}function jk(e,t,n,r,i,a,o,s){let c={passive:!0,capture:!0},l=0;function u(u){if(!s)return;function f(t){if(new Date().getTime()-l>10)return;o.emit(`slideFocusStart`),e.scrollLeft=0;let a=n.findIndex(e=>e.includes(t));qO(a)&&(i.useDuration(0),r.index(a,0),o.emit(`slideFocus`))}a.add(document,`keydown`,d,!1),t.forEach((e,t)=>{a.add(e,`focus`,e=>{(YO(s)||s(u,e))&&f(t)},c)})}function d(e){e.code===`Tab`&&(l=new Date().getTime())}return{init:u}}function Mk(e){let t=e;function n(){return t}function r(e){t=o(e)}function i(e){t+=o(e)}function a(e){t-=o(e)}function o(e){return qO(e)?e:e.get()}return{get:n,set:r,add:i,subtract:a}}function Nk(e,t){let n=e.scroll===`x`?o:s,r=t.style,i=null,a=!1;function o(e){return`translate3d(${e}px,0px,0px)`}function s(e){return`translate3d(0px,${e}px,0px)`}function c(t){if(a)return;let o=tk(e.direction(t));o!==i&&(r.transform=n(o),i=o)}function l(e){a=!e}function u(){a||(r.transform=``,t.getAttribute(`style`)||t.removeAttribute(`style`))}return{clear:u,to:c,toggleActive:l}}function Pk(e,t,n,r,i,a,o,s,c){let l=.5,u=nk(i),d=nk(i).reverse(),f=_().concat(v());function p(e,t){return e.reduce((e,t)=>e-i[t],t)}function m(e,t){return e.reduce((e,n)=>p(e,t)>0?e.concat([n]):e,[])}function h(e){return a.map((n,i)=>({start:n-r[i]+l+e,end:n+t-l+e}))}function g(t,r,i){let a=h(r);return t.map(t=>{let r=i?0:-n,o=i?n:0,l=i?`end`:`start`,u=a[t][l];return{index:t,loopPoint:u,slideLocation:Mk(-1),translate:Nk(e,c[t]),target:()=>s.get()>u?r:o}})}function _(){let e=o[0];return g(m(d,e),n,!1)}function v(){return g(m(u,t-o[0]-1),-n,!0)}function y(){return f.every(({index:e})=>p(u.filter(t=>t!==e),t)<=.1)}function b(){f.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})}function x(){f.forEach(e=>e.translate.clear())}return{canLoop:y,clear:x,loop:b,loopPoints:f}}function Fk(e,t,n){let r,i=!1;function a(a){if(!n)return;function o(e){for(let n of e)if(n.type===`childList`){a.reInit(),t.emit(`slidesChanged`);break}}r=new MutationObserver(e=>{i||(YO(n)||n(a,e))&&o(e)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),i=!0}return{init:a,destroy:o}}function Ik(e,t,n,r){let i={},a=null,o=null,s,c=!1;function l(){s=new IntersectionObserver(e=>{c||(e.forEach(e=>{let n=t.indexOf(e.target);i[n]=e}),a=null,o=null,n.emit(`slidesInView`))},{root:e.parentElement,threshold:r}),t.forEach(e=>s.observe(e))}function u(){s&&s.disconnect(),c=!0}function d(e){return sk(i).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:a}=i[r];return(e&&a||!e&&!a)&&t.push(r),t},[])}function f(e=!0){if(e&&a)return a;if(!e&&o)return o;let t=d(e);return e&&(a=t),e||(o=t),t}return{init:l,destroy:u,get:f}}function Lk(e,t,n,r,i,a){let{measureSize:o,startEdge:s,endEdge:c}=e,l=n[0]&&i,u=m(),d=h(),f=n.map(o),p=g();function m(){if(!l)return 0;let e=n[0];return ZO(t[s]-e[s])}function h(){if(!l)return 0;let e=a.getComputedStyle(rk(r));return parseFloat(e.getPropertyValue(`margin-${c}`))}function g(){return n.map((e,t,n)=>{let r=!t,i=ak(n,t);return r?f[t]+u:i?f[t]+d:n[t+1][s]-e[s]}).map(ZO)}return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:d}}function Rk(e,t,n,r,i,a,o,s,c){let{startEdge:l,endEdge:u,direction:d}=e,f=qO(n);function p(e,t){return nk(e).filter(e=>e%t===0).map(n=>e.slice(n,n+t))}function m(e){return e.length?nk(e).reduce((n,f,p)=>{let m=rk(n)||0,h=m===0,g=f===ik(e),_=i[l]-a[m][l],v=i[l]-a[f][u],y=!r&&h?d(o):0,b=ZO(v-(!r&&g?d(s):0)-(_+y));return p&&b>t+c&&n.push(f),g&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}function h(e){return f?p(e,n):m(e)}return{groupSlides:h}}function zk(e,t,n,r,i,a,o){let{align:s,axis:c,direction:l,startIndex:u,loop:d,duration:f,dragFree:p,dragThreshold:m,inViewThreshold:h,slidesToScroll:g,skipSnaps:_,containScroll:v,watchResize:y,watchSlides:b,watchDrag:x,watchFocus:S}=a,C=vk(),w=C.measure(t),T=n.map(C.measure),E=pk(c,l),D=E.measureSize(w),O=yk(D),k=uk(s,D),A=!d&&!!v,{slideSizes:j,slideSizesWithGaps:M,startGap:N,endGap:P}=Lk(E,w,T,n,d||!!v,i),ee=Rk(E,D,g,d,w,T,N,P,2),{snaps:F,snapsAligned:I}=Dk(E,k,w,T,ee),te=-rk(F)+rk(M),{snapsContained:ne,scrollContainLimit:re}=Ck(D,te,I,v,2),ie=A?ne:I,{limit:L}=wk(te,ie,d),ae=hk(ik(ie),u,d),oe=ae.clone(),se=nk(n),ce=({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()},le=({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:i,scrollLooper:a,slideLooper:o,dragHandler:s,animation:c,eventHandler:l,scrollBounds:u,options:{loop:d}},f)=>{let p=e.settled(),m=!u.shouldConstrain(),h=d?p:p&&m,g=h&&!s.pointerDown();g&&c.stop();let _=n.get()*f+i.get()*(1-f);r.set(_),d&&(a.loop(e.direction()),o.loop()),t.to(r.get()),g&&l.emit(`settle`),h||l.emit(`scroll`)},ue=fk(r,i,()=>ce(Se),e=>le(Se,e)),de=.68,fe=ie[ae.get()],R=Mk(fe),pe=Mk(fe),me=Mk(fe),he=Mk(fe),ge=xk(R,me,pe,he,f,de),z=kk(d,ie,te,L,he),_e=Ak(ue,ae,oe,ge,z,he,o),ve=Ek(L),B=dk(),ye=Ik(t,n,o,h),{slideRegistry:be}=Ok(A,v,ie,re,ee,se),xe=jk(e,n,be,_e,ge,B,o,S),Se={ownerDocument:r,ownerWindow:i,eventHandler:o,containerRect:w,slideRects:T,animation:ue,axis:E,dragHandler:gk(E,e,r,i,he,_k(E,i),R,ue,_e,ge,z,ae,o,O,p,m,_,de,x),eventStore:B,percentOfView:O,index:ae,indexPrevious:oe,limit:L,location:R,offsetLocation:me,previousLocation:pe,options:a,resizeHandler:bk(t,o,i,n,E,y,C),scrollBody:ge,scrollBounds:Sk(L,me,he,ge,O),scrollLooper:Tk(te,L,me,[R,me,pe,he]),scrollProgress:ve,scrollSnapList:ie.map(ve.get),scrollSnaps:ie,scrollTarget:z,scrollTo:_e,slideLooper:Pk(E,D,te,j,M,F,ie,me,n),slideFocus:xe,slidesHandler:Fk(t,o,b),slidesInView:ye,slideIndexes:se,slideRegistry:be,slidesToScroll:ee,target:he,translate:Nk(E,t)};return Se}function Bk(){let e={},t;function n(e){t=e}function r(t){return e[t]||[]}function i(e){return r(e).forEach(n=>n(t,e)),c}function a(t,n){return e[t]=r(t).concat([n]),c}function o(t,n){return e[t]=r(t).filter(e=>e!==n),c}function s(){e={}}let c={init:n,emit:i,off:o,on:a,clear:s};return c}var Vk={align:`center`,axis:`x`,container:null,slides:null,containScroll:`trimSnaps`,direction:`ltr`,slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Hk(e){function t(e,t){return ck(e,t||{})}function n(n){let r=n.breakpoints||{};return t(n,sk(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{}))}function r(t){return t.map(e=>sk(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function Uk(e){let t=[];function n(n,r){return t=r.filter(({options:t})=>e.optionsAtMedia(t).active!==!1),t.forEach(t=>t.init(n,e)),r.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})}function r(){t=t.filter(e=>e.destroy())}return{init:n,destroy:r}}function Wk(e,t,n){let r=e.ownerDocument,i=r.defaultView,a=Hk(i),o=Uk(a),s=dk(),c=Bk(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=a,{on:f,off:p,emit:m}=c,h=D,g=!1,_,v=l(Vk,Wk.globalOptions),y=l(v),b=[],x,S,C;function w(){let{container:t,slides:n}=y;S=(JO(t)?e.querySelector(t):t)||e.children[0];let r=JO(n)?S.querySelectorAll(n):n;C=[].slice.call(r||S.children)}function T(t){let n=zk(e,S,C,r,i,t,c);return t.loop&&!n.slideLooper.canLoop()?T(Object.assign({},t,{loop:!1})):n}function E(e,t){g||(v=l(v,e),y=u(v),b=t||b,w(),_=T(y),d([v,...b.map(({options:e})=>e)]).forEach(e=>s.add(e,`change`,D)),y.active&&(_.translate.to(_.location.get()),_.animation.init(),_.slidesInView.init(),_.slideFocus.init(ce),_.eventHandler.init(ce),_.resizeHandler.init(ce),_.slidesHandler.init(ce),_.options.loop&&_.slideLooper.loop(),S.offsetParent&&C.length&&_.dragHandler.init(ce),x=o.init(ce,b)))}function D(e,t){let n=I();O(),E(l({startIndex:n},e),t),c.emit(`reInit`)}function O(){_.dragHandler.destroy(),_.eventStore.clear(),_.translate.clear(),_.slideLooper.clear(),_.resizeHandler.destroy(),_.slidesHandler.destroy(),_.slidesInView.destroy(),_.animation.destroy(),o.destroy(),s.clear()}function k(){g||(g=!0,s.clear(),O(),c.emit(`destroy`),c.clear())}function A(e,t,n){!y.active||g||(_.scrollBody.useBaseFriction().useDuration(t===!0?0:y.duration),_.scrollTo.index(e,n||0))}function j(e){A(_.index.add(1).get(),e,-1)}function M(e){A(_.index.add(-1).get(),e,1)}function N(){return _.index.add(1).get()!==I()}function P(){return _.index.add(-1).get()!==I()}function ee(){return _.scrollSnapList}function F(){return _.scrollProgress.get(_.offsetLocation.get())}function I(){return _.index.get()}function te(){return _.indexPrevious.get()}function ne(){return _.slidesInView.get()}function re(){return _.slidesInView.get(!1)}function ie(){return x}function L(){return _}function ae(){return e}function oe(){return S}function se(){return C}let ce={canScrollNext:N,canScrollPrev:P,containerNode:oe,internalEngine:L,destroy:k,off:p,on:f,emit:m,plugins:ie,previousScrollSnap:te,reInit:h,rootNode:ae,scrollNext:j,scrollPrev:M,scrollProgress:F,scrollSnapList:ee,scrollTo:A,selectedScrollSnap:I,slideNodes:se,slidesInView:ne,slidesNotInView:re};return E(t,n),setTimeout(()=>c.emit(`init`),0),ce}Wk.globalOptions=void 0;function Gk(e={},t=[]){let n=(0,H.useRef)(e),r=(0,H.useRef)(t),[i,a]=(0,H.useState)(),[o,s]=(0,H.useState)(),c=(0,H.useCallback)(()=>{i&&i.reInit(n.current,r.current)},[i]);return(0,H.useEffect)(()=>{WO(n.current,e)||(n.current=e,c())},[e,c]),(0,H.useEffect)(()=>{KO(r.current,t)||(r.current=t,c())},[t,c]),(0,H.useEffect)(()=>{if(UO()&&o){Wk.globalOptions=Gk.globalOptions;let e=Wk(o,n.current,r.current);return a(e),()=>e.destroy()}else a(void 0)},[o,a]),[s,i]}Gk.globalOptions=void 0;var Kk={controlSize:26,controlsOffset:`sm`,slideSize:`100%`,slideGap:0,orientation:`horizontal`,includeGapInSize:!0,initialSlide:0,withControls:!0,withIndicators:!1,withKeyboardEvents:!0,type:`media`},qk={align:`center`,loop:!1,slidesToScroll:1,dragFree:!1,inViewThreshold:0,skipSnaps:!1,containScroll:`trimSnaps`},Jk=Cn((e,{height:t,controlSize:n,controlsOffset:r})=>({root:{"--carousel-height":V(t),"--carousel-control-size":V(n),"--carousel-controls-offset":ot(r)}})),Yk=K(e=>{let t=W(`Carousel`,Kk,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,getEmblaApi:l,onNextSlide:u,onPreviousSlide:d,onSlideChange:f,nextControlProps:p,previousControlProps:m,controlSize:h,controlsOffset:g,slideSize:_,slideGap:v,orientation:y,height:b,includeGapInSize:x,draggable:S,initialSlide:C,withControls:w,withIndicators:T,plugins:E,nextControlIcon:D,previousControlIcon:O,withKeyboardEvents:k,mod:A,type:j,emblaOptions:M,attributes:N,getIndicatorProps:P,id:ee,...F}=t,I=G({name:`Carousel`,classes:NO,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:N,vars:s,varsResolver:Jk}),te=Rt(ee),ne=Mi(),{dir:re}=Ki(),[ie,L]=Gk({axis:y===`horizontal`?`x`:`y`,direction:y===`horizontal`?re:void 0,startIndex:C,...qk,...M},E),[ae,oe]=(0,H.useState)(0),[se,ce]=(0,H.useState)(0),le=(0,H.useCallback)(e=>L&&L.scrollTo(e),[L]),ue=(0,H.useCallback)(()=>{if(!L)return;let e=L.selectedScrollSnap();oe(e),e!==ae&&f?.(e)},[L,oe,f,ae]),de=(0,H.useCallback)(()=>{L?.scrollPrev(),d?.()},[L]),fe=(0,H.useCallback)(()=>{L?.scrollNext(),u?.()},[L]),R=(0,H.useCallback)(e=>{k&&(e.key===`ArrowRight`&&(e.preventDefault(),fe()),e.key===`ArrowLeft`&&(e.preventDefault(),de()),e.key===`Home`&&(e.preventDefault(),L?.scrollTo(0)),e.key===`End`&&(e.preventDefault(),L?.scrollTo(L.scrollSnapList().length-1)))},[L,fe,de]);(0,H.useEffect)(()=>{if(L)return l?.(L),ue(),ce(L.scrollSnapList().length),L.on(`select`,ue),()=>{L.off(`select`,ue)}},[L,M?.slidesToScroll,ue]),(0,H.useEffect)(()=>{L&&(L.reInit(),ce(L.scrollSnapList().length),oe(e=>gt(e,0,H.Children.toArray(c).length-1)))},[H.Children.toArray(c).length,M?.slidesToScroll]);let pe=L?.canScrollPrev()||!1,me=L?.canScrollNext()||!1,he=(0,H.useCallback)((e,t)=>{let n=y===`horizontal`,r=n?`ArrowRight`:`ArrowDown`,i=n?`ArrowLeft`:`ArrowUp`;if(e.key===r){e.preventDefault();let n=t<se-1?t+1:0;le(n),(e.currentTarget.parentElement?.children[n])?.focus()}if(e.key===i){e.preventDefault();let n=t>0?t-1:se-1;le(n),(e.currentTarget.parentElement?.children[n])?.focus()}e.key===`Home`&&(e.preventDefault(),le(0),(e.currentTarget.parentElement?.children[0])?.focus()),e.key===`End`&&(e.preventDefault(),le(se-1),(e.currentTarget.parentElement?.children[se-1])?.focus())},[y,se,le]),ge=Array(se).fill(0).map((e,t)=>(0,H.createElement)(dl,{...I(`indicator`),key:t,role:`tab`,"aria-label":`Go to slide ${t+1}`,"aria-selected":t===ae,tabIndex:t===ae?0:-1,"data-active":t===ae||void 0,onClick:()=>le(t),onKeyDown:e=>he(e,t),"data-orientation":y,onMouseDown:e=>e.preventDefault(),...P?.(t)}));return(0,U.jsxs)(jO,{value:{getStyles:I,orientation:y},children:[j===`container`?(0,U.jsx)(zO,{...t,selector:`.${ne}`}):(0,U.jsx)(FO,{...t,selector:`.${ne}`}),(0,U.jsxs)(q,{role:`region`,"aria-roledescription":`carousel`,...I(`root`,{className:ne}),...F,id:te,mod:[{orientation:y,"include-gap-in-size":x},A],onKeyDownCapture:R,children:[(0,U.jsx)(pl,{role:`status`,"aria-live":`polite`,"aria-atomic":`true`,children:se>0&&`Slide ${ae+1} of ${se}`}),w&&(0,U.jsxs)(`div`,{...I(`controls`),"data-orientation":y,children:[(0,U.jsx)(dl,{"aria-controls":te,"aria-label":`Previous slide`,"aria-disabled":!pe,"data-inactive":!pe||void 0,"data-type":`previous`,tabIndex:pe?0:-1,...m,...I(`control`,{className:m?.className,style:m?.style}),onClick:e=>{de(),m?.onClick?.(e)},children:O===void 0?(0,U.jsx)(Pf,{style:{transform:`rotate(${BO({dir:re,orientation:y,direction:`previous`})}deg)`}}):O}),(0,U.jsx)(dl,{"aria-controls":te,"aria-label":`Next slide`,"aria-disabled":!me,"data-inactive":!me||void 0,"data-type":`next`,tabIndex:me?0:-1,...I(`control`,{className:p?.className,style:p?.style}),...p,onClick:e=>{fe(),p?.onClick?.(e)},children:D===void 0?(0,U.jsx)(Pf,{style:{transform:`rotate(${BO({dir:re,orientation:y,direction:`next`})}deg)`}}):D})]}),(0,U.jsx)(`div`,{...I(`viewport`),ref:ie,"data-type":j,children:(0,U.jsx)(`div`,{...I(`container`,{className:ne}),"data-orientation":y,children:c})}),T&&(0,U.jsx)(`div`,{...I(`indicators`),role:`tablist`,"aria-label":`Slides`,"data-orientation":y,children:ge})]})]})});Yk.classes=NO,Yk.varsResolver=Jk,Yk.displayName=`@mantine/carousel/Carousel`,Yk.Slide=PO;function Xk({...e}){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,U.jsx)(`path`,{d:`M15 18L9 12L15 6`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})})}function Zk({...e}){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,U.jsx)(`path`,{d:`M9.00005 6L15 12L9 18`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})})}var Qk={"space-0":`0`,"space-025":`1px`,"space-050":`2px`,"space-100":`4px`,"space-150":`6px`,"space-200":`8px`,"space-300":`12px`,"space-400":`16px`,"space-500":`20px`,"space-600":`24px`,"space-700":`32px`,"space-800":`40px`,"space-900":`48px`},$k=Yk.extend({classNames:{root:`_root_nuq5f_1`,control:`_control_nuq5f_1`,indicators:`_indicators_nuq5f_10`,indicator:`_indicator_nuq5f_10`,slide:`_slide_nuq5f_26`,controls:`_controls_nuq5f_34`},defaultProps:{controlSize:32,nextControlIcon:(0,U.jsx)(Zk,{height:16,width:16}),previousControlIcon:(0,U.jsx)(Xk,{height:16,width:16}),slideGap:V(Qk[`space-400`]),slideSize:{base:`90%`,sm:`47%`},withControls:!0,withIndicators:!1,emblaOptions:{align:`start`}}}),eA={root:`_root_1edmf_1`,input:`_input_1edmf_8`,label:`_label_1edmf_26`,icon:`_icon_1edmf_47`,inner:`_inner_1edmf_54`,error:`_error_1edmf_58`};function tA({...e}){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`10`,height:`8`,viewBox:`0 0 10 8`,fill:`none`,...e,children:(0,U.jsx)(`path`,{d:`M1.5 5L3.25 6.75L8.5 1.25`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})}function nA({...e}){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`10`,height:`8`,viewBox:`0 0 10 8`,fill:`none`,...e,children:(0,U.jsx)(`path`,{d:`M2.5 4L7.5 4`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})}var rA=tm.extend({classNames:eA,defaultProps:{icon:({indeterminate:e,...t})=>e?(0,U.jsx)(nA,{...t}):(0,U.jsx)(tA,{...t})}}),iA=Bm.extend({classNames:{alphaOverlay:`_alphaOverlay_1uog6_1`,shadowOverlay:`_shadowOverlay_1uog6_2`}}),aA={XS:352,SM:584,MD:800,LG:1160,XL:1160},oA=Object.entries(aA).reduce((e,[t,n])=>({...e,[t.toLowerCase()]:V(n)}),{}),sA={fluidContainer:`_fluidContainer_34o23_1`,responsiveContainer:`_responsiveContainer_34o23_5`,miniContainer:`_miniContainer_34o23_24`},cA=Wm.extend({defaultProps:{size:`responsive`},classNames:(e,{size:t,fluid:n})=>({root:Tn({[sA.fluidContainer]:n,[sA.miniContainer]:t===`mini`,[sA.responsiveContainer]:!n&&t===`responsive`})}),vars:(e,{size:t,fluid:n})=>({root:{"--container-size":n?`100%`:t!==void 0&&t in oA?oA[t]:V(t)}})}),lA={placeholder:xO,getYearControlProps:e=>({mod:{...(0,Q.default)().isSame(e,`year`)&&{"current-year":!0}}}),getMonthControlProps:e=>({mod:{...(0,Q.default)().isSame(e,`month`)&&{"current-month":!0}}})},uA={day:`_day_1i329_1`,dayToday:`_dayToday_1i329_30`,month:`_month_1i329_35`,calendarHeaderLevel:`_calendarHeaderLevel_1i329_40`,calendarHeaderControl:`_calendarHeaderControl_1i329_45`,weekday:`_weekday_1i329_49`,monthsListControl:`_monthsListControl_1i329_54`,yearsListControl:`_yearsListControl_1i329_55`},dA=lO.extend({classNames:uA,defaultProps:{withCellSpacing:!1,weekdayFormat:`ddd`,renderDay:e=>{let t=(0,Q.default)(e),n=(0,Q.default)().isSame(t,`day`);return(0,U.jsx)(Xf,{span:!0,className:Tn({[uA.dayToday]:n}),children:t.format(`D`)})},...lA}}),fA=bO.extend({classNames:{day:`_day_1i329_1`,dayToday:`_dayToday_1i329_30`,month:`_month_1i329_35`,calendarHeaderLevel:`_calendarHeaderLevel_1i329_40`,calendarHeaderControl:`_calendarHeaderControl_1i329_45`,weekday:`_weekday_1i329_49`,monthsListControl:`_monthsListControl_1i329_54`,yearsListControl:`_yearsListControl_1i329_55`},defaultProps:{...lA,valueFormat:xO}}),pA=Jm.extend({classNames:{root:`_root_uz5je_1`},defaultProps:{size:1}}),mA={xs:.08,sm:.16,md:.24,lg:.4,xl:.56},hA=mh.extend({classNames:{root:`_root_dlog2_1`,title:`_title_dlog2_9`,content:`_content_dlog2_17`,header:`_header_dlog2_30`,body:`_body_dlog2_38`,close:`_close_dlog2_48`},defaultProps:{size:`md`,position:`right`,overlayProps:{backgroundOpacity:mA.xl,blur:6}}}),gA=Oh.extend({defaultProps:{columnGap:24,rowGap:16}}),_A=Eu.extend({defaultProps:{gap:0,align:`flex-start`}}),vA={wrapper:`_wrapper_4biwb_1`,input:`_input_4biwb_9`,section:`_section_4biwb_42`},yA={placeholder:`_placeholder_1o876_1`},bA={root:`_root_n7rgq_1`,label:`_label_n7rgq_7`,error:`_error_n7rgq_11`,description:`_description_n7rgq_18`,required:`_required_n7rgq_23`},xA=bf.extend({classNames:vA}),SA=bf.Wrapper.extend({classNames:bA,defaultProps:{inputWrapperOrder:[`label`,`input`,`description`,`error`]}}),CA=bf.Placeholder.extend({classNames:yA}),wA=cu.extend({defaultProps:{size:`xs`}}),TA=eg.extend({classNames:{dropdown:`_dropdown_wis3q_1`,item:`_item_wis3q_12`},defaultProps:{offset:4,position:`bottom-end`}}),EA=gg.extend({classNames:{root:`_root_ax69a_1`,header:`_header_ax69a_8`,title:`_title_ax69a_12`,content:`_content_ax69a_19`,body:`_body_ax69a_29`,close:`_close_ax69a_35`},defaultProps:{size:`md`,yOffset:`5vh`,transitionProps:{duration:300,transition:`fade-down`},closeButtonProps:{size:24},overlayProps:{backgroundOpacity:mA.xl,blur:6},scrollAreaComponent:sl.Autosize}}),DA=aO.extend({classNames:{day:`_day_1i329_1`,dayToday:`_dayToday_1i329_30`,month:`_month_1i329_35`,calendarHeaderLevel:`_calendarHeaderLevel_1i329_40`,calendarHeaderControl:`_calendarHeaderControl_1i329_45`,weekday:`_weekday_1i329_49`,monthsListControl:`_monthsListControl_1i329_54`,yearsListControl:`_yearsListControl_1i329_55`},defaultProps:{...lA}}),OA=vO.extend({classNames:{day:`_day_1i329_1`,dayToday:`_dayToday_1i329_30`,month:`_month_1i329_35`,calendarHeaderLevel:`_calendarHeaderLevel_1i329_40`,calendarHeaderControl:`_calendarHeaderControl_1i329_45`,weekday:`_weekday_1i329_49`,monthsListControl:`_monthsListControl_1i329_54`,yearsListControl:`_yearsListControl_1i329_55`},defaultProps:{...lA}}),kA=Pg.extend({classNames:{input:`_input_z7ary_1`,section:`_section_z7ary_6`,inputField:`_inputField_z7ary_28`,dropdown:`_dropdown_z7ary_41`,option:`_option_z7ary_47`,pillsList:`_pillsList_z7ary_60`,pill:`_pill_z7ary_60`},defaultProps:{renderOption:({checked:e,option:t})=>(0,U.jsxs)(Eu,{gap:8,children:[(0,U.jsx)(tm,{checked:e,onChange:()=>{},styles:{root:{pointerEvents:`none`}},tabIndex:-1,"aria-hidden":!0}),(0,U.jsx)(Xf,{span:!0,children:t.label})]}),searchable:!0}}),AA=Lg.extend({classNames:{root:`_root_1s2hi_1`,section:`_section_1s2hi_37`},defaultProps:{rightSection:null,childrenOffset:26}}),jA=Vg.extend({classNames:{root:`_root_1xfa4_1`,icon:`_icon_1xfa4_11`,description:`_description_1xfa4_15`,title:`_title_1xfa4_18`,closeButton:`_closeButton_1xfa4_22`}}),MA=Q_.extend({defaultProps:{allowNegative:!1,thousandSeparator:`,`}}),NA=xv.extend({classNames:{root:`_root_1fw4a_1`,control:`_control_1fw4a_9`,dots:`_dots_1fw4a_22`},defaultProps:{nextIcon:Zk,previousIcon:Xk,size:`lg`}}),PA=gl.extend({defaultProps:{shadow:`none`}});function FA({...e}){return(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,U.jsx)(`path`,{d:`M22 8C22 8 18 14 12 14C6 14 2 8 2 8`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`}),(0,U.jsx)(`path`,{d:`M15 13.5L16.5 16`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M20 11L22 13`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M2 13L4 11`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M9 13.5L7.5 16`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]})}function IA({...e}){return(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,U.jsx)(`path`,{d:`M21.544 11.045C21.848 11.4713 22 11.6845 22 12C22 12.3155 21.848 12.5287 21.544 12.955C20.1779 14.8706 16.6892 19 12 19C7.31078 19 3.8221 14.8706 2.45604 12.955C2.15201 12.5287 2 12.3155 2 12C2 11.6845 2.15201 11.4713 2.45604 11.045C3.8221 9.12944 7.31078 5 12 5C16.6892 5 20.1779 9.12944 21.544 11.045Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15C13.6569 15 15 13.6569 15 12Z`,stroke:`currentColor`,strokeWidth:`1.5`})]})}var LA=Ev.extend({classNames:{visibilityToggle:`_visibilityToggle_rqask_1`,input:`_input_rqask_12`,innerInput:`_innerInput_rqask_12`},defaultProps:{visibilityToggleIcon:({reveal:e})=>e?(0,U.jsx)(FA,{}):(0,U.jsx)(IA,{})}}),RA=wg.extend({classNames:{root:`_root_1us9a_1`,label:`_label_1us9a_21`,remove:`_remove_1us9a_42`}}),zA=eu.extend({classNames:{dropdown:`_dropdown_145m5_1`}}),BA=Fv.extend({classNames:{root:`_root_1lid3_1`},defaultProps:{color:`brand-orange.5`,size:4}}),VA=Zv.extend({classNames:{root:`_root_1njtj_1`,radio:`_radio_1njtj_9`,label:`_label_1njtj_22`,icon:`_icon_1njtj_40`,error:`_error_1njtj_58`,inner:`_inner_1njtj_62`}}),HA=Zv.Card.extend({classNames:{card:`_card_11cie_1`}}),UA=Zv.Indicator.extend({classNames:{indicator:`_indicator_yh8fo_1`,icon:`_icon_yh8fo_17`}}),WA=Cy.extend({classNames:{root:`_root_nz2l8_1`,indicator:`_indicator_nz2l8_5`},defaultProps:{withItemsBorders:!1,radius:`md`}});function GA({...e}){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,U.jsx)(`path`,{d:`M5 14L8.5 17.5L19 6.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})}var KA=({checked:e,option:t})=>(0,U.jsxs)(Eu,{gap:8,children:[e&&(0,U.jsx)(GA,{width:16,height:16}),(0,U.jsx)(Xf,{span:!0,children:t.label})]}),qA=Ty.extend({classNames:{input:`_input_xmuz2_1`,section:`_section_xmuz2_6`,dropdown:`_dropdown_xmuz2_35`,option:`_option_xmuz2_41`},defaultProps:{allowDeselect:!1,renderOption:KA}}),JA=Vy.extend({defaultProps:{gap:0}}),YA=Zy.extend({classNames:{root:`_root_bk7hc_1`,stepIcon:`_stepIcon_bk7hc_6`,separator:`_separator_bk7hc_22`,step:`_step_bk7hc_6`,stepLabel:`_stepLabel_bk7hc_29`},defaultProps:{allowNextStepsSelect:!1,iconSize:30}}),XA=ib.extend({classNames:{root:`_root_1xr8m_1`,track:`_track_1xr8m_6`,input:`_input_1xr8m_10`,thumb:`_thumb_1xr8m_22`,label:`_label_1xr8m_29`},defaultProps:{withThumbIndicator:!1}}),ZA=Cb.extend({classNames:{table:`_table_1nke6_1`,thead:`_thead_1nke6_8`,th:`_th_1nke6_8`,tbody:`_tbody_1nke6_41`,td:`_td_1nke6_44`},defaultProps:{withTableBorder:!0}}),QA=Nb.extend({classNames:{root:`_root_1x595_1`,list:`_list_1x595_1`,tab:`_tab_1x595_11`,tabLabel:`_tabLabel_1x595_18`,tabSection:`_tabSection_1x595_44`}}),$A=Rb.extend({classNames:{input:`_input_1lws5_1`,pill:`_pill_1lws5_6`},defaultProps:{splitChars:[`,`,` `,`|`]}}),ej=Xf.extend({classNames:{root:`_root_15h2k_1`},defaultProps:{size:`md`}}),tj=Lh.extend({classNames:{input:`_input_11t2a_1`},defaultProps:{autosize:!0,maxRows:5,minRows:2,resize:`vertical`}}),nj=Yb.extend({classNames:{root:`_root_6pd11_1`}}),rj=dy.extend({classNames:{tooltip:`_tooltip_17xpf_1`},defaultProps:{multiline:!0,maw:300}}),ij=tO.extend({classNames:{day:`_day_u2w4x_1`,dayToday:`_dayToday_u2w4x_30`,month:`_month_u2w4x_35`,calendarHeaderLevel:`_calendarHeaderLevel_u2w4x_40`,calendarHeaderControl:`_calendarHeaderControl_u2w4x_45`,weekday:`_weekday_u2w4x_49`,yearsListControl:`_yearsListControl_u2w4x_54`},defaultProps:{...lA}}),aj=gO.extend({classNames:{day:`_day_u2w4x_1`,dayToday:`_dayToday_u2w4x_30`,month:`_month_u2w4x_35`,calendarHeaderLevel:`_calendarHeaderLevel_u2w4x_40`,calendarHeaderControl:`_calendarHeaderControl_u2w4x_45`,weekday:`_weekday_u2w4x_49`,yearsListControl:`_yearsListControl_u2w4x_54`},defaultProps:{...lA}}),oj=[`#F8F8FB`,`#EFEFF6`,`#DEDEED`,`#CACAE2`,`#B3B3D5`,`#9696C5`,`#7575B3`,`#414275`,`#35355F`,`#242442`,`#18182B`],sj=[`#FFF7F0`,`#FFEDDB`,`#FFDAB8`,`#FFC085`,`#FFA34D`,`#FF7A00`,`#E66F00`,`#C76000`,`#A85100`,`#7A3B00`,`#5C2C00`],cj=[`#EAF3FE`,`#DFEEFD`,`#BEDBFB`,`#2C8BF3`,`#287DDB`,`#236FC2`,`#2168B6`,`#1A5392`,`#143F6D`,`#0F3155`],lj=[`#FEF3E9`,`#FEEDDE`,`#FCD9BB`,`#F68623`,`#DD7920`,`#C56B1C`,`#B9651A`,`#C76000`,`#6F3C10`,`#562F0C`],uj=[`#FDEBEA`,`#FCE1DF`,`#F8C1BD`,`#EA3829`,`#D33225`,`#BB2D21`,`#B02A1F`,`#8C2219`,`#691912`,`#52140E`],dj=[`#E8F5EF`,`#DDF0E7`,`#B9E1CD`,`#1C9E5D`,`#198E54`,`#167E4A`,`#157746`,`#115F38`,`#0D472A`,`#0A3721`],fj={xs:V(10),sm:V(12),md:V(14),lg:V(16),xl:V(20)},pj={xs:V(12),sm:V(16),md:V(20),lg:V(24),xl:V(28)},mj={fontWeight:`500`,sizes:{h1:{fontSize:V(32),lineHeight:V(36)},h2:{fontSize:V(24),lineHeight:V(28)},h3:{fontSize:V(20),lineHeight:V(24)},h4:{fontSize:V(18),lineHeight:V(20)},h5:{fontSize:V(12),lineHeight:V(16)},h6:{fontSize:V(12),lineHeight:V(16)}}},hj=Object.entries(aA).reduce((e,[t,n])=>({...e,[t.toLowerCase()]:We(n)}),{});function gj(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function _j(e,t){let n={...e};for(let r of Object.keys(t)){let i=t[r],a=e[r];i!==void 0&&(gj(a)&&gj(i)?n[r]=_j(a,i):n[r]=i)}return n}var vj={"brand-dark-blue":oj,"brand-orange":sj,accent:sj,blue:cj,orange:lj,red:uj,green:dj},yj={Accordion:wO,ActionIcon:TO,Alert:EO,Anchor:DO,Avatar:OO,Badge:kO,Button:AO,Carousel:$k,Checkbox:rA,ColorSwatch:iA,Container:cA,DateInput:SO,DatePicker:dA,DatePickerInput:fA,Divider:pA,Drawer:hA,Grid:gA,Group:_A,Input:xA,InputPlaceholder:CA,InputWrapper:SA,Loader:wA,Menu:TA,Modal:EA,MonthPicker:DA,MonthPickerInput:OA,MultiSelect:kA,NavLink:AA,Notification:jA,NumberInput:MA,Paper:PA,Pagination:NA,PasswordInput:LA,Pill:RA,Popover:zA,Progress:BA,Radio:VA,RadioCard:HA,RadioIndicator:UA,SegmentedControl:WA,Select:qA,Stack:JA,Stepper:YA,Switch:XA,Table:ZA,Tabs:QA,TagsInput:$A,Text:ej,Textarea:tj,Title:nj,Tooltip:rj,YearPicker:ij,YearPickerInput:aj};function bj(e={}){let t={...fj,...e.fontSizes},n={...pj,...e.lineHeights},r=_j(mj,e.headings??{}),i={...hj,...e.breakpoints},a={...vj,...e.colors};return Vr({components:yj,cursorType:e.cursorType??`pointer`,defaultRadius:`sm`,primaryColor:e.primaryColor??`brand-dark-blue`,primaryShade:e.primaryShade??6,breakpoints:i,fontFamily:e.fontFamily??`Geist`,fontSizes:t,fontWeights:{medium:`500`},lineHeights:n,headings:r,black:e.black??`#000000`,white:e.white??`#FFFFFF`,colors:a})}bj();var xj={"border-025":`1px`,"border-050":`2px`},Sj={"surface-body-bg":`#F8F8FB`,"surface-default":`#FFFFFF`,"surface-disable":`#EFEFF6`,"surface-level-1":`#F8F8FB`,"surface-level-2":`#EFEFF6`},Cj={"primary-lighter":`#F8F8FB`,"primary-light":`#EFEFF6`,"primary-default":`#414275`,"primary-dark":`#35355F`,"primary-darker":`#18182B`},wj={"secondary-lighter":`#FFF7F0`,"secondary-light":`#FFA34D`,"secondary-default":`#FF7A00`,"secondary-dark":`#A85100`,"secondary-darker":`#7A3B00`},Tj={"success-lighter":`#E8F5EF`,"success-light":`#B9E1CD`,"success-default":`#167E4A`,"success-dark":`#115F38`,"success-darker":`#0A3721`},Ej={"danger-lighter":`#FDEBEA`,"danger-light":`#F8C1BD`,"danger-default":`#BB2D21`,"danger-dark":`#8C2219`,"danger-darker":`#52140E`,"danger-contrast":`#FF6F61`},Dj={"info-lighter":`#EAF3FE`,"info-light":`#BEDBFB`,"info-default":`#2C8BF3`,"info-dark":`#236FC2`,"info-darker":`#0F3155`},Oj={"warning-lighter":`#FEF3E9`,"warning-light":`#FCD9BB`,"warning-default":`#C56B1C`,"warning-dark":`#B9651A`,"warning-darker":`#562F0C`},kj={"text-white":`#FFFFFF`,"text-light":`#B3B3D5`,"text-default":`#414275`,"text-dark":`#242442`,"text-disable":`#B3B3D5`},Aj={"border-light":`#EFEFF6`,"border-default":`#DEDEED`,"border-dark":`#CACAE2`},jj={"icon-white":`#FFFFFF`,"icon-light":`#B3B3D5`,"icon-default":`#414275`,"icon-dark":`#242442`,"icon-disable":`#B3B3D5`},Mj={"header-bg":`#F8F8FB`,"header-font":`#242442`,"header-icon":`#242442`,"header-border-color":`#DEDEED`},Nj={"icon-xs":12,"icon-sm":16,"icon-md":18,"icon-lg":20,"icon-xl":24},Pj={"radius-0":`0`,"radius-050":`2px`,"radius-100":`4px`,"radius-150":`6px`,"radius-200":`8px`,"radius-300":`12px`,"radius-400":`16px`,"radius-500":`20px`,"radius-600":`24px`,"radius-full":`50%`},Fj={"shadow-xs":`0 1px 2px 0 rgba(0, 0, 0, 0.16)`,"shadow-above-sm":`0 3px 0 0 rgba(0, 0, 0, 0.04)`,"shadow-below-sm":`0 -2px 2px 0 rgba(65, 66, 117, 0.12)`},Ij={...Sj,...Cj,...wj,...Tj,...Ej,...Dj,...Oj,...kj,...Aj,...jj,...Mj},Lj=mA;function Rj(e={}){let{tokens:t={},theme:n={}}=e;return Hr(bj(n),Vr({other:{border:{...xj,...t.border},color:{...Ij,...t.color},iconSize:{...Nj,...t.iconSize},opacity:{...Lj,...t.opacity},radius:{...Pj,...t.radius},space:{...Qk,...t.space},shadow:{...Fj,...t.shadow}}}))}Rj();function zj(){return wr()}var Bj=[`bstp`,`ocean`,`forest`,`sunset`],Vj=`bstp`;function Hj(e,t,n,r,i){return[e,e,t,t,n,n,r,r,i,i]}var Uj={bstp:{label:`BSTP`,options:{theme:{fontFamily:`Geist, Segoe UI, sans-serif`,primaryColor:`accent`,colors:{accent:Hj(`#FFF0E5`,`#FF8C00`,`#FF6600`,`#E55C00`,`#8C3800`),"brand-dark-blue":Hj(`#EAF0F8`,`#CCDAEC`,`#1B3E73`,`#15325C`,`#0D213F`)},fontSizes:{xs:`11px`,sm:`13px`,md:`15px`,lg:`17px`,xl:`21px`}},tokens:{color:{"surface-body-bg":`#F5F7FB`,"surface-default":`#FFFFFF`,"surface-level-1":`#F7F9FC`,"surface-level-2":`#EEF3F8`,"primary-lighter":`#EAF0F8`,"primary-light":`#CCDAEC`,"primary-default":`#1B3E73`,"primary-dark":`#15325C`,"primary-darker":`#0D213F`,"secondary-lighter":`#FFF0E5`,"secondary-light":`#FF8C00`,"secondary-default":`#FF6600`,"secondary-dark":`#E55C00`,"secondary-darker":`#8C3800`,"text-light":`#7B8CA9`,"text-default":`#27456B`,"text-dark":`#18304F`,"border-light":`#E8EDF4`,"border-default":`#D9E0EB`,"border-dark":`#C1CCD9`,"icon-light":`#95A4BB`,"icon-default":`#27456B`,"icon-dark":`#18304F`,"header-bg":`#FFF4EC`,"header-font":`#18304F`,"header-icon":`#6E7F99`,"header-border-color":`#E8EDF4`},radius:{"radius-150":`6px`,"radius-200":`8px`,"radius-300":`12px`,"radius-400":`16px`,"radius-500":`20px`,"radius-600":`24px`},space:{"space-150":`7px`,"space-200":`10px`,"space-300":`14px`,"space-400":`18px`,"space-500":`22px`,"space-600":`28px`,"space-700":`36px`,"space-800":`44px`,"space-900":`56px`},iconSize:{"icon-sm":18,"icon-md":20,"icon-lg":22,"icon-xl":26}}}},ocean:{label:`Ocean`,options:{theme:{fontFamily:`"Avenir Next", "Segoe UI", sans-serif`,primaryColor:`accent`,colors:{accent:Hj(`#E8FBFB`,`#7FD8DA`,`#1BA6A6`,`#137979`,`#0D5656`),"brand-dark-blue":Hj(`#EAF5FE`,`#BFDFFF`,`#2A6F97`,`#205A7B`,`#163F56`)},fontSizes:{sm:`13px`,md:`15px`,lg:`17px`}},tokens:{color:{"surface-body-bg":`#F1F7FB`,"surface-default":`#FFFFFF`,"surface-level-1":`#E7F0F8`,"surface-level-2":`#D9E8F4`,"primary-lighter":`#EAF5FE`,"primary-light":`#BFDFFF`,"primary-default":`#2A6F97`,"primary-dark":`#205A7B`,"primary-darker":`#163F56`,"secondary-lighter":`#E8FBFB`,"secondary-light":`#7FD8DA`,"secondary-default":`#1BA6A6`,"secondary-dark":`#137979`,"secondary-darker":`#0D5656`,"text-light":`#6F8CA6`,"text-default":`#23425D`,"text-dark":`#183043`,"border-light":`#DCEAF3`,"border-default":`#BDD3E3`,"border-dark":`#98B8CF`,"icon-light":`#6F8CA6`,"icon-default":`#23425D`,"icon-dark":`#183043`,"header-bg":`#F6FBFE`,"header-font":`#183043`,"header-icon":`#205A7B`,"header-border-color":`#DCEAF3`},radius:{"radius-300":`14px`,"radius-400":`18px`,"radius-500":`24px`},space:{"space-300":`14px`,"space-400":`18px`,"space-500":`22px`,"space-600":`28px`,"space-700":`36px`,"space-800":`44px`,"space-900":`52px`},iconSize:{"icon-sm":18,"icon-md":20,"icon-lg":22,"icon-xl":26}}}},forest:{label:`Forest`,options:{theme:{fontFamily:`"Trebuchet MS", "Segoe UI", sans-serif`,primaryColor:`accent`,colors:{accent:Hj(`#F3FAEE`,`#C5E2AE`,`#7BAA4A`,`#5F8438`,`#3E5725`),"brand-dark-blue":Hj(`#EDF7ED`,`#BBDABD`,`#3C6E47`,`#2E5637`,`#1F3824`)},fontSizes:{sm:`12px`,md:`14px`,lg:`16px`}},tokens:{color:{"surface-body-bg":`#F4F8F3`,"surface-default":`#FFFFFF`,"surface-level-1":`#E8F0E5`,"surface-level-2":`#D8E6D2`,"primary-lighter":`#EDF7ED`,"primary-light":`#BBDABD`,"primary-default":`#3C6E47`,"primary-dark":`#2E5637`,"primary-darker":`#1F3824`,"secondary-lighter":`#F3FAEE`,"secondary-light":`#C5E2AE`,"secondary-default":`#7BAA4A`,"secondary-dark":`#5F8438`,"secondary-darker":`#3E5725`,"text-light":`#6D8770`,"text-default":`#36553A`,"text-dark":`#243726`,"border-light":`#DDE8DB`,"border-default":`#BDD0BB`,"border-dark":`#9EB59D`,"icon-light":`#6D8770`,"icon-default":`#36553A`,"icon-dark":`#243726`,"header-bg":`#F7FBF6`,"header-font":`#243726`,"header-icon":`#2E5637`,"header-border-color":`#DDE8DB`},radius:{"radius-150":`8px`,"radius-300":`10px`,"radius-400":`14px`,"radius-500":`18px`},space:{"space-150":`8px`,"space-200":`10px`,"space-300":`14px`,"space-400":`18px`,"space-500":`22px`,"space-600":`26px`},iconSize:{"icon-xs":13,"icon-sm":17,"icon-md":19,"icon-lg":21,"icon-xl":24}}}},sunset:{label:`Sunset`,options:{theme:{fontFamily:`"Nunito Sans", "Segoe UI", sans-serif`,primaryColor:`accent`,colors:{accent:Hj(`#FFF8E8`,`#FFD18A`,`#F2A93B`,`#CB861F`,`#7A4D0D`),"brand-dark-blue":Hj(`#FFF1EA`,`#FFCCB8`,`#D96C47`,`#B45435`,`#7A3520`)},fontSizes:{sm:`13px`,md:`15px`,lg:`17px`}},tokens:{color:{"surface-body-bg":`#FFF6F1`,"surface-default":`#FFFFFF`,"surface-level-1":`#FFF0E7`,"surface-level-2":`#FFE2D3`,"primary-lighter":`#FFF1EA`,"primary-light":`#FFCCB8`,"primary-default":`#D96C47`,"primary-dark":`#B45435`,"primary-darker":`#7A3520`,"secondary-lighter":`#FFF8E8`,"secondary-light":`#FFD18A`,"secondary-default":`#F2A93B`,"secondary-dark":`#CB861F`,"secondary-darker":`#7A4D0D`,"text-light":`#A57B6B`,"text-default":`#7A4331`,"text-dark":`#52291D`,"border-light":`#FFE2D3`,"border-default":`#F2C7B2`,"border-dark":`#E0A88B`,"icon-light":`#A57B6B`,"icon-default":`#7A4331`,"icon-dark":`#52291D`,"header-bg":`#FFF9F4`,"header-font":`#52291D`,"header-icon":`#B45435`,"header-border-color":`#FFE2D3`},radius:{"radius-300":`16px`,"radius-400":`20px`,"radius-500":`24px`,"radius-600":`28px`},space:{"space-150":`7px`,"space-200":`10px`,"space-300":`14px`,"space-400":`18px`,"space-500":`24px`,"space-600":`30px`,"space-700":`38px`},iconSize:{"icon-sm":17,"icon-md":20,"icon-lg":22,"icon-xl":26}}}}};function Wj(e){return typeof e==`string`&&Bj.includes(e)}function Gj(e){return Uj[Wj(e)?e:Vj]}function Kj({themeName:e}={}){return Rj(Gj(e).options)}var qj=(0,H.createContext)(null),Jj=e=>{let t=(0,H.useContext)(qj);if(process.env.NODE_ENV!==`production`&&t==null)throw Error(e??`useLingui hook was used without I18nProvider.`);return t};function Yj(){return Jj()}var Xj=({i18n:e,defaultComponent:t,children:n})=>{let r=(0,H.useRef)(e.locale),i=(0,H.useCallback)(()=>({i18n:e,defaultComponent:t,_:e.t.bind(e)}),[e,t]),[a,o]=(0,H.useState)(i());return(0,H.useEffect)(()=>{let t=()=>{r.current=e.locale,o(i())},n=e.on(`change`,t);return r.current!==e.locale&&t(),n},[e,i]),r.current?(0,U.jsx)(qj.Provider,{value:a,children:n}):(process.env.NODE_ENV===`development`&&console.log("I18nProvider rendered `null`. A call to `i18n.activate` needs to happen in order for translations to be activated and for the I18nProvider to render.This is not an error but an informational message logged only in development."),null)},Zj=(0,H.createContext)(null),Qj=(0,H.createContext)({customerId:``,customerToken:``,language:`en`,forceReAuth:!1});function $j({runtime:e,children:t}){return(0,U.jsx)(Qj.Provider,{value:e,children:t})}function eM({config:e,children:t}){return(0,U.jsx)(Zj.Provider,{value:e,children:t})}var tM=(0,H.createContext)({keycloak:{url:``,realm:``,clientId:``},url:{app:``,api:``,apiPaths:{crm:``,uiAuthz:``}},features:{enableThemeManager:!0},growthBook:{apiHost:``,clientKey:``,enabled:!1}}),nM=({children:e,config:t})=>(0,U.jsx)(tM.Provider,{value:t,children:e});function rM({children:e,appConfig:t,config:n,runtime:r,theme:i,rootElement:a}){let o=typeof document>`u`?void 0:document.documentElement,s=!!a?.shadowRoot,c=s?`:host`:`:root`,l=s?a??void 0:o;return(0,H.useEffect)(()=>{if(!a)return;let e=a.style,t=i,n=t.other??{},r=t.colors??{},o=t.fontSizes??{},s=t.lineHeights??{};t.fontFamily&&e.setProperty(`--mantine-font-family`,String(t.fontFamily)),Object.entries(o).forEach(([t,n])=>{e.setProperty(`--mantine-font-size-${t}`,String(n))}),Object.entries(s).forEach(([t,n])=>{e.setProperty(`--mantine-line-height-${t}`,String(n))}),Object.entries(n).forEach(([t,n])=>{Object.entries(n).forEach(([n,r])=>{e.setProperty(`--mantine-custom-${t}-${n}`,String(r))})}),Object.entries(r).forEach(([t,n])=>{n.forEach((n,r)=>{e.setProperty(`--mantine-color-${t}-${r}`,n)})})},[a,i]),(0,U.jsx)(Xj,{i18n:Fe,children:(0,U.jsx)(zr,{theme:i,cssVariablesSelector:c,getRootElement:()=>l,defaultColorScheme:`auto`,children:(0,U.jsx)(eS,{client:_E,children:(0,U.jsx)(nM,{config:t,children:(0,U.jsx)(eM,{config:n,children:(0,U.jsx)($j,{runtime:r,children:e})})})})})})}function iM(){let e=(0,H.useRef)(null);return{startInteraction:(0,H.useCallback)(t=>{let{cursor:n,onMove:r,onEnd:i}=t;document.body.style.cursor=n,document.body.style.userSelect=`none`;let a=()=>{document.body.style.cursor=``,document.body.style.userSelect=``,document.removeEventListener(`pointermove`,r),document.removeEventListener(`pointerup`,a),i?.(),e.current=null};document.addEventListener(`pointermove`,r),document.addEventListener(`pointerup`,a),e.current=a},[]),cleanup:(0,H.useCallback)(()=>{e.current?.()},[])}}var aM=4;function oM(e={}){let{skipSelector:t=`button, [role="button"], a, input, textarea`,onDragChange:n}=e,[r,i]=(0,H.useState)({x:0,y:0}),[a,o]=(0,H.useState)(!1),s=(0,H.useRef)({startX:0,startY:0,startOffset:{x:0,y:0}}),{startInteraction:c}=iM();return{offset:r,isDragging:a,handlePointerDown:(0,H.useCallback)(e=>{let a=e.target;if(t&&a?.closest(t))return;let l=e.clientX,u=e.clientY,d={...r},f=0,p=!1;s.current={startX:l,startY:u,startOffset:d},c({cursor:`grab`,onMove:e=>{let t=e.clientX-l,r=e.clientY-u;if(f=Math.abs(t)+Math.abs(r),!p&&f>=aM&&(p=!0,o(!0),document.body.style.cursor=`grabbing`,document.body.style.userSelect=`none`),p){let e={x:d.x+t,y:d.y+r};i(e),n?.(e)}},onEnd:()=>{p&&o(!1)}})},[r,t,n,c]),style:{transform:`translate(${r.x}px, ${r.y}px)`,cursor:a?`grabbing`:`grab`,touchAction:`none`}}}function sM(e){return(0,U.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,...e,children:[(0,U.jsx)(`path`,{d:`M12 8V4H8`}),(0,U.jsx)(`rect`,{x:`4`,y:`8`,width:`16`,height:`12`,rx:`2`}),(0,U.jsx)(`path`,{d:`M2 14h2`}),(0,U.jsx)(`path`,{d:`M20 14h2`}),(0,U.jsx)(`path`,{d:`M15 13v2`}),(0,U.jsx)(`path`,{d:`M9 13v2`})]})}var cM={root:`_root_677yy_1`,button:`_button_677yy_5`,buttonInner:`_buttonInner_677yy_30`,iconSection:`_iconSection_677yy_35`,label:`_label_677yy_39`};function lM({onClick:e,zIndex:t,position:n,label:r}){let i=zj(),{handlePointerDown:a,style:o}=oM({skipSelector:``}),s=Math.min(i.other.iconSize[`icon-sm`],16),{transform:c,cursor:l,touchAction:u}=o,d=(0,H.useMemo)(()=>({transform:c,touchAction:u,zIndex:t,...n}),[n,u,c,t]),f=(0,H.useMemo)(()=>({cursor:l??`pointer`}),[l]);return(0,U.jsx)(`div`,{className:cM.root,style:d,children:(0,U.jsx)(dy,{label:`Open agent widget`,position:`left`,children:(0,U.jsx)(jm,{onClick:e,onPointerDown:a,style:f,classNames:{root:cM.button,inner:cM.buttonInner,section:cM.iconSection,label:cM.label},leftSection:(0,U.jsx)(sM,{width:s,height:s}),radius:20,variant:`filled`,color:`accent`,"aria-label":`Open ${r??`agent widget`}`,title:r??`Assistant`,children:r??`Assistant`})})})}function uM({mode:e=`thinking`,autoCycle:t=!0,cycleMs:n=2e3,exploringAfterMs:r=2e3,writingAfterMs:i=8e3,messages:a}){let[o,s]=(0,H.useState)(0);(0,H.useEffect)(()=>{if(!t)return;s(0);let e=setInterval(()=>{s(e=>e+1)},n);return()=>clearInterval(e)},[t,n]);let c=(0,H.useMemo)(()=>{if(!t)return e;let a=o*n;return a>=i?`writing`:a<r||o%2==0?`thinking`:`exploring`},[t,e,o,n,r,i]);return{label:(0,H.useMemo)(()=>{if(a&&a.length>0)return a[o%a.length];switch(c){case`exploring`:return`Exploring`;case`writing`:return`Writing`;default:return`Thinking`}},[a,o,c])}}function dM({size:e=`large`,mode:t=`thinking`,showLabel:n=!0,autoCycle:r=!0,cycleMs:i=2e3,exploringAfterMs:a=2e3,writingAfterMs:o=8e3,messages:s}){let{label:c}=uM({mode:t,autoCycle:r,cycleMs:i,exploringAfterMs:a,writingAfterMs:o,messages:s});return(0,U.jsxs)(Eu,{gap:`sm`,wrap:`nowrap`,children:[n&&(0,U.jsx)(Xf,{size:e===`large`?`sm`:`xs`,c:`dimmed`,children:c}),(0,U.jsx)(cu,{size:e===`large`?`sm`:`xs`,type:`dots`,color:`gray`}),(0,U.jsx)(Xf,{component:`span`,style:{position:`absolute`,left:-1e4},role:`status`,"aria-live":`polite`,children:c})]})}var{entries:fM,setPrototypeOf:pM,isFrozen:mM,getPrototypeOf:hM,getOwnPropertyDescriptor:gM}=Object,{freeze:_M,seal:vM,create:yM}=Object,{apply:bM,construct:xM}=typeof Reflect<`u`&&Reflect;_M||=function(e){return e},vM||=function(e){return e},bM||=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)},xM||=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)};var SM=IM(Array.prototype.forEach),CM=IM(Array.prototype.lastIndexOf),wM=IM(Array.prototype.pop),TM=IM(Array.prototype.push),EM=IM(Array.prototype.splice),DM=IM(String.prototype.toLowerCase),OM=IM(String.prototype.toString),kM=IM(String.prototype.match),AM=IM(String.prototype.replace),jM=IM(String.prototype.indexOf),MM=IM(String.prototype.trim),NM=IM(Object.prototype.hasOwnProperty),PM=IM(RegExp.prototype.test),FM=LM(TypeError);function IM(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return bM(e,t,r)}}function LM(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return xM(e,n)}}function RM(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:DM;pM&&pM(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(mM(t)||(t[r]=e),i=e)}e[i]=!0}return e}function zM(e){for(let t=0;t<e.length;t++)NM(e,t)||(e[t]=null);return e}function BM(e){let t=yM(null);for(let[n,r]of fM(e))NM(e,n)&&(Array.isArray(r)?t[n]=zM(r):r&&typeof r==`object`&&r.constructor===Object?t[n]=BM(r):t[n]=r);return t}function VM(e,t){for(;e!==null;){let n=gM(e,t);if(n){if(n.get)return IM(n.get);if(typeof n.value==`function`)return IM(n.value)}e=hM(e)}function n(){return null}return n}var HM=_M(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),UM=_M(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),WM=_M([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),GM=_M([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),KM=_M(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),qM=_M([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),JM=_M([`#text`]),YM=_M(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot`.split(`.`)),XM=_M(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),ZM=_M(`accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),QM=_M([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),$M=vM(/\{\{[\w\W]*|[\w\W]*\}\}/gm),eN=vM(/<%[\w\W]*|[\w\W]*%>/gm),tN=vM(/\$\{[\w\W]*/gm),nN=vM(/^data-[\-\w.\u00B7-\uFFFF]+$/),rN=vM(/^aria-[\-\w]+$/),iN=vM(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),aN=vM(/^(?:\w+script|data):/i),oN=vM(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),sN=vM(/^html$/i),cN=vM(/^[a-z][.\w]*(-[.\w]+)+$/i),lN=Object.freeze({__proto__:null,ARIA_ATTR:rN,ATTR_WHITESPACE:oN,CUSTOM_ELEMENT:cN,DATA_ATTR:nN,DOCTYPE_NAME:sN,ERB_EXPR:eN,IS_ALLOWED_URI:iN,IS_SCRIPT_OR_DATA:aN,MUSTACHE_EXPR:$M,TMPLIT_EXPR:tN}),uN={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},dN=function(){return typeof window>`u`?null:window},fN=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},pN=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function mN(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dN(),t=e=>mN(e);if(t.version=`3.3.3`,t.removed=[],!e||!e.document||e.document.nodeType!==uN.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:c,NodeFilter:l,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,m=c.prototype,h=VM(m,`cloneNode`),g=VM(m,`remove`),_=VM(m,`nextSibling`),v=VM(m,`childNodes`),y=VM(m,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let b,x=``,{implementation:S,createNodeIterator:C,createDocumentFragment:w,getElementsByTagName:T}=n,{importNode:E}=r,D=pN();t.isSupported=typeof fM==`function`&&typeof y==`function`&&S&&S.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:O,ERB_EXPR:k,TMPLIT_EXPR:A,DATA_ATTR:j,ARIA_ATTR:M,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:P,CUSTOM_ELEMENT:ee}=lN,{IS_ALLOWED_URI:F}=lN,I=null,te=RM({},[...HM,...UM,...WM,...KM,...JM]),ne=null,re=RM({},[...YM,...XM,...ZM,...QM]),ie=Object.seal(yM(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),L=null,ae=null,oe=Object.seal(yM(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),se=!0,ce=!0,le=!1,ue=!0,de=!1,fe=!0,R=!1,pe=!1,me=!1,he=!1,ge=!1,z=!1,_e=!0,ve=!1,B=!0,ye=!1,be={},xe=null,Se=RM({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),Ce=null,we=RM({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Te=null,Ee=RM({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),De=`http://www.w3.org/1998/Math/MathML`,Oe=`http://www.w3.org/2000/svg`,ke=`http://www.w3.org/1999/xhtml`,Ae=ke,je=!1,Me=null,Ne=RM({},[De,Oe,ke],OM),Pe=RM({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Fe=RM({},[`annotation-xml`]),Ie=RM({},[`title`,`style`,`font`,`a`,`script`]),Le=null,Re=[`application/xhtml+xml`,`text/html`],ze=null,Be=null,Ve=n.createElement(`form`),He=function(e){return e instanceof RegExp||e instanceof Function},Ue=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Be&&Be===e)){if((!e||typeof e!=`object`)&&(e={}),e=BM(e),Le=Re.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,ze=Le===`application/xhtml+xml`?OM:DM,I=NM(e,`ALLOWED_TAGS`)?RM({},e.ALLOWED_TAGS,ze):te,ne=NM(e,`ALLOWED_ATTR`)?RM({},e.ALLOWED_ATTR,ze):re,Me=NM(e,`ALLOWED_NAMESPACES`)?RM({},e.ALLOWED_NAMESPACES,OM):Ne,Te=NM(e,`ADD_URI_SAFE_ATTR`)?RM(BM(Ee),e.ADD_URI_SAFE_ATTR,ze):Ee,Ce=NM(e,`ADD_DATA_URI_TAGS`)?RM(BM(we),e.ADD_DATA_URI_TAGS,ze):we,xe=NM(e,`FORBID_CONTENTS`)?RM({},e.FORBID_CONTENTS,ze):Se,L=NM(e,`FORBID_TAGS`)?RM({},e.FORBID_TAGS,ze):BM({}),ae=NM(e,`FORBID_ATTR`)?RM({},e.FORBID_ATTR,ze):BM({}),be=NM(e,`USE_PROFILES`)?e.USE_PROFILES:!1,se=e.ALLOW_ARIA_ATTR!==!1,ce=e.ALLOW_DATA_ATTR!==!1,le=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ue=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,de=e.SAFE_FOR_TEMPLATES||!1,fe=e.SAFE_FOR_XML!==!1,R=e.WHOLE_DOCUMENT||!1,he=e.RETURN_DOM||!1,ge=e.RETURN_DOM_FRAGMENT||!1,z=e.RETURN_TRUSTED_TYPE||!1,me=e.FORCE_BODY||!1,_e=e.SANITIZE_DOM!==!1,ve=e.SANITIZE_NAMED_PROPS||!1,B=e.KEEP_CONTENT!==!1,ye=e.IN_PLACE||!1,F=e.ALLOWED_URI_REGEXP||iN,Ae=e.NAMESPACE||ke,Pe=e.MATHML_TEXT_INTEGRATION_POINTS||Pe,Fe=e.HTML_INTEGRATION_POINTS||Fe,ie=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&He(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ie.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&He(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ie.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(ie.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),de&&(ce=!1),ge&&(he=!0),be&&(I=RM({},JM),ne=yM(null),be.html===!0&&(RM(I,HM),RM(ne,YM)),be.svg===!0&&(RM(I,UM),RM(ne,XM),RM(ne,QM)),be.svgFilters===!0&&(RM(I,WM),RM(ne,XM),RM(ne,QM)),be.mathMl===!0&&(RM(I,KM),RM(ne,ZM),RM(ne,QM))),NM(e,`ADD_TAGS`)||(oe.tagCheck=null),NM(e,`ADD_ATTR`)||(oe.attributeCheck=null),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?oe.tagCheck=e.ADD_TAGS:(I===te&&(I=BM(I)),RM(I,e.ADD_TAGS,ze))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?oe.attributeCheck=e.ADD_ATTR:(ne===re&&(ne=BM(ne)),RM(ne,e.ADD_ATTR,ze))),e.ADD_URI_SAFE_ATTR&&RM(Te,e.ADD_URI_SAFE_ATTR,ze),e.FORBID_CONTENTS&&(xe===Se&&(xe=BM(xe)),RM(xe,e.FORBID_CONTENTS,ze)),e.ADD_FORBID_CONTENTS&&(xe===Se&&(xe=BM(xe)),RM(xe,e.ADD_FORBID_CONTENTS,ze)),B&&(I[`#text`]=!0),R&&RM(I,[`html`,`head`,`body`]),I.table&&(RM(I,[`tbody`]),delete L.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw FM(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw FM(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);b=e.TRUSTED_TYPES_POLICY,x=b.createHTML(``)}else b===void 0&&(b=fN(p,i)),b!==null&&typeof x==`string`&&(x=b.createHTML(``));_M&&_M(e),Be=e}},V=RM({},[...UM,...WM,...GM]),We=RM({},[...KM,...qM]),Ge=function(e){let t=y(e);(!t||!t.tagName)&&(t={namespaceURI:Ae,tagName:`template`});let n=DM(e.tagName),r=DM(t.tagName);return Me[e.namespaceURI]?e.namespaceURI===Oe?t.namespaceURI===ke?n===`svg`:t.namespaceURI===De?n===`svg`&&(r===`annotation-xml`||Pe[r]):!!V[n]:e.namespaceURI===De?t.namespaceURI===ke?n===`math`:t.namespaceURI===Oe?n===`math`&&Fe[r]:!!We[n]:e.namespaceURI===ke?t.namespaceURI===Oe&&!Fe[r]||t.namespaceURI===De&&!Pe[r]?!1:!We[n]&&(Ie[n]||!V[n]):!!(Le===`application/xhtml+xml`&&Me[e.namespaceURI]):!1},Ke=function(e){TM(t.removed,{element:e});try{y(e).removeChild(e)}catch{g(e)}},H=function(e,n){try{TM(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{TM(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(he||ge)try{Ke(n)}catch{}else try{n.setAttribute(e,``)}catch{}},qe=function(e){let t=null,r=null;if(me)e=`<remove></remove>`+e;else{let t=kM(e,/^[\r\n\t ]+/);r=t&&t[0]}Le===`application/xhtml+xml`&&Ae===ke&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=b?b.createHTML(e):e;if(Ae===ke)try{t=new f().parseFromString(i,Le)}catch{}if(!t||!t.documentElement){t=S.createDocument(Ae,`template`,null);try{t.documentElement.innerHTML=je?x:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Ae===ke?T.call(t,R?`html`:`body`)[0]:R?t.documentElement:a},Je=function(e){return C.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Ye=function(e){return e instanceof d&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof u)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},Xe=function(e){return typeof s==`function`&&e instanceof s};function Ze(e,n,r){SM(e,e=>{e.call(t,n,r,Be)})}let Qe=function(e){let n=null;if(Ze(D.beforeSanitizeElements,e,null),Ye(e))return Ke(e),!0;let r=ze(e.nodeName);if(Ze(D.uponSanitizeElement,e,{tagName:r,allowedTags:I}),fe&&e.hasChildNodes()&&!Xe(e.firstElementChild)&&PM(/<[/\w!]/g,e.innerHTML)&&PM(/<[/\w!]/g,e.textContent)||e.nodeType===uN.progressingInstruction||fe&&e.nodeType===uN.comment&&PM(/<[/\w]/g,e.data))return Ke(e),!0;if(!(oe.tagCheck instanceof Function&&oe.tagCheck(r))&&(!I[r]||L[r])){if(!L[r]&&et(r)&&(ie.tagNameCheck instanceof RegExp&&PM(ie.tagNameCheck,r)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(r)))return!1;if(B&&!xe[r]){let t=y(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=h(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,_(e))}}}return Ke(e),!0}return e instanceof c&&!Ge(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&PM(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ke(e),!0):(de&&e.nodeType===uN.text&&(n=e.textContent,SM([O,k,A],e=>{n=AM(n,e,` `)}),e.textContent!==n&&(TM(t.removed,{element:e.cloneNode()}),e.textContent=n)),Ze(D.afterSanitizeElements,e,null),!1)},$e=function(e,t,r){if(ae[t]||_e&&(t===`id`||t===`name`)&&(r in n||r in Ve))return!1;if(!(ce&&!ae[t]&&PM(j,t))&&!(se&&PM(M,t))&&!(oe.attributeCheck instanceof Function&&oe.attributeCheck(t,e))){if(!ne[t]||ae[t]){if(!(et(e)&&(ie.tagNameCheck instanceof RegExp&&PM(ie.tagNameCheck,e)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(e))&&(ie.attributeNameCheck instanceof RegExp&&PM(ie.attributeNameCheck,t)||ie.attributeNameCheck instanceof Function&&ie.attributeNameCheck(t,e))||t===`is`&&ie.allowCustomizedBuiltInElements&&(ie.tagNameCheck instanceof RegExp&&PM(ie.tagNameCheck,r)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(r))))return!1}else if(!Te[t]&&!PM(F,AM(r,P,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&jM(r,`data:`)===0&&Ce[e])&&!(le&&!PM(N,AM(r,P,``)))&&r)return!1}return!0},et=function(e){return e!==`annotation-xml`&&kM(e,ee)},tt=function(e){Ze(D.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||Ye(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=ze(a),l=s,u=a===`value`?l:MM(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,Ze(D.uponSanitizeAttribute,e,r),u=r.attrValue,ve&&(c===`id`||c===`name`)&&(H(a,e),u=`user-content-`+u),fe&&PM(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){H(a,e);continue}if(c===`attributename`&&kM(u,`href`)){H(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){H(a,e);continue}if(!ue&&PM(/\/>/i,u)){H(a,e);continue}de&&SM([O,k,A],e=>{u=AM(u,e,` `)});let d=ze(e.nodeName);if(!$e(d,c,u)){H(a,e);continue}if(b&&typeof p==`object`&&typeof p.getAttributeType==`function`&&!o)switch(p.getAttributeType(d,c)){case`TrustedHTML`:u=b.createHTML(u);break;case`TrustedScriptURL`:u=b.createScriptURL(u);break}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),Ye(e)?Ke(e):wM(t.removed)}catch{H(a,e)}}Ze(D.afterSanitizeAttributes,e,null)},nt=function e(t){let n=null,r=Je(t);for(Ze(D.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Ze(D.uponSanitizeShadowNode,n,null),Qe(n),tt(n),n.content instanceof a&&e(n.content);Ze(D.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(je=!e,je&&(e=`<!-->`),typeof e!=`string`&&!Xe(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw FM(`dirty is not a string, aborting`)}else throw FM(`toString is not a function`);if(!t.isSupported)return e;if(pe||Ue(n),t.removed=[],typeof e==`string`&&(ye=!1),ye){if(e.nodeName){let t=ze(e.nodeName);if(!I[t]||L[t])throw FM(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof s)i=qe(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===uN.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o);else{if(!he&&!de&&!R&&e.indexOf(`<`)===-1)return b&&z?b.createHTML(e):e;if(i=qe(e),!i)return he?null:z?x:``}i&&me&&Ke(i.firstChild);let u=Je(ye?e:i);for(;c=u.nextNode();)Qe(c),tt(c),c.content instanceof a&&nt(c.content);if(ye)return e;if(he){if(ge)for(l=w.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(ne.shadowroot||ne.shadowrootmode)&&(l=E.call(r,l,!0)),l}let d=R?i.outerHTML:i.innerHTML;return R&&I[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&PM(sN,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
320
+ `+d),de&&SM([O,k,A],e=>{d=AM(d,e,` `)}),b&&z?b.createHTML(d):d},t.setConfig=function(){Ue(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),pe=!0},t.clearConfig=function(){Be=null,pe=!1},t.isValidAttribute=function(e,t,n){return Be||Ue({}),$e(ze(e),ze(t),n)},t.addHook=function(e,t){typeof t==`function`&&TM(D[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=CM(D[e],t);return n===-1?void 0:EM(D[e],n,1)[0]}return wM(D[e])},t.removeHooks=function(e){D[e]=[]},t.removeAllHooks=function(){D=pN()},t}var hN=mN(),gN=[`script`,`style`,`iframe`,`object`,`embed`,`link`,`meta`,`base`,`form`,`input`,`button`,`textarea`,`select`],_N=[`style`,`srcdoc`];function vN(e){return e?hN.sanitize(e,{USE_PROFILES:{html:!0},FORBID_TAGS:gN,FORBID_ATTR:_N,ALLOW_DATA_ATTR:!1,ALLOW_UNKNOWN_PROTOCOLS:!1}):``}function yN({html:e,fallback:t=null,...n}){let r=(0,H.useMemo)(()=>vN(e??``),[e]);return r?(0,U.jsx)(q,{...n,dangerouslySetInnerHTML:{__html:r}}):(0,U.jsx)(U.Fragment,{children:t})}function bN(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var xN=bN();function SN(e){xN=e}var CN={exec:()=>null};function wN(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(EN.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var TN=(()=>{try{return!0}catch{return!1}})(),EN={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`),blockquoteBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}>`)},DN=/^(?:[ \t]*(?:\n|$))+/,ON=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,kN=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,AN=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,jN=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,MN=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,NN=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,PN=wN(NN).replace(/bull/g,MN).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),FN=wN(NN).replace(/bull/g,MN).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),IN=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,LN=/^[^\n]+/,RN=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,zN=wN(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,RN).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),BN=wN(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,MN).getRegex(),VN=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,HN=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,UN=wN(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,HN).replace(`tag`,VN).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),WN=wN(IN).replace(`hr`,AN).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,VN).getRegex(),GN={blockquote:wN(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,WN).getRegex(),code:ON,def:zN,fences:kN,heading:jN,hr:AN,html:UN,lheading:PN,list:BN,newline:DN,paragraph:WN,table:CN,text:LN},KN=wN(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,AN).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,VN).getRegex(),qN={...GN,lheading:FN,table:KN,paragraph:wN(IN).replace(`hr`,AN).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,KN).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,VN).getRegex()},JN={...GN,html:wN(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,HN).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:CN,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:wN(IN).replace(`hr`,AN).replace(`heading`,` *#{1,6} *[^
321
+ ]`).replace(`lheading`,PN).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},YN=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,XN=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ZN=/^( {2,}|\\)\n(?!\s*$)/,QN=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,$N=/[\p{P}\p{S}]/u,eP=/[\s\p{P}\p{S}]/u,tP=/[^\s\p{P}\p{S}]/u,nP=wN(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,eP).getRegex(),rP=/(?!~)[\p{P}\p{S}]/u,iP=/(?!~)[\s\p{P}\p{S}]/u,aP=/(?:[^\s\p{P}\p{S}]|~)/u,oP=/(?![*_])[\p{P}\p{S}]/u,sP=/(?![*_])[\s\p{P}\p{S}]/u,cP=/(?:[^\s\p{P}\p{S}]|[*_])/u,lP=wN(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,TN?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),uP=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,dP=wN(uP,`u`).replace(/punct/g,$N).getRegex(),fP=wN(uP,`u`).replace(/punct/g,rP).getRegex(),pP=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,mP=wN(pP,`gu`).replace(/notPunctSpace/g,tP).replace(/punctSpace/g,eP).replace(/punct/g,$N).getRegex(),hP=wN(pP,`gu`).replace(/notPunctSpace/g,aP).replace(/punctSpace/g,iP).replace(/punct/g,rP).getRegex(),gP=wN(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,tP).replace(/punctSpace/g,eP).replace(/punct/g,$N).getRegex(),_P=wN(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,oP).getRegex(),vP=wN(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,cP).replace(/punctSpace/g,sP).replace(/punct/g,oP).getRegex(),yP=wN(/\\(punct)/,`gu`).replace(/punct/g,$N).getRegex(),bP=wN(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),xP=wN(HN).replace(`(?:-->|$)`,`-->`).getRegex(),SP=wN(`^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,xP).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),CP=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,wP=wN(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace(`label`,CP).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),TP=wN(/^!?\[(label)\]\[(ref)\]/).replace(`label`,CP).replace(`ref`,RN).getRegex(),EP=wN(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,RN).getRegex(),DP=wN(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,TP).replace(`nolink`,EP).getRegex(),OP=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,kP={_backpedal:CN,anyPunctuation:yP,autolink:bP,blockSkip:lP,br:ZN,code:XN,del:CN,delLDelim:CN,delRDelim:CN,emStrongLDelim:dP,emStrongRDelimAst:mP,emStrongRDelimUnd:gP,escape:YN,link:wP,nolink:EP,punctuation:nP,reflink:TP,reflinkSearch:DP,tag:SP,text:QN,url:CN},AP={...kP,link:wN(/^!?\[(label)\]\((.*?)\)/).replace(`label`,CP).getRegex(),reflink:wN(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,CP).getRegex()},jP={...kP,emStrongRDelimAst:hP,emStrongLDelim:fP,delLDelim:_P,delRDelim:vP,url:wN(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,OP).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:wN(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,OP).getRegex()},MP={...jP,br:wN(ZN).replace(`{2,}`,`*`).getRegex(),text:wN(jP.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},NP={normal:GN,gfm:qN,pedantic:JN},PP={normal:kP,gfm:jP,breaks:MP,pedantic:AP},FP={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},IP=e=>FP[e];function LP(e,t){if(t){if(EN.escapeTest.test(e))return e.replace(EN.escapeReplace,IP)}else if(EN.escapeTestNoEncode.test(e))return e.replace(EN.escapeReplaceNoEncode,IP);return e}function RP(e){try{e=encodeURI(e).replace(EN.percentDecode,`%`)}catch{return null}return e}function zP(e,t){let n=e.replace(EN.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(EN.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(EN.slashPipe,`|`);return n}function BP(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function VP(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function HP(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function UP(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function WP(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
322
322
  `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
323
- `)}var CP=class{options;rules;lexer;constructor(e){this.options=e||$M}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:vP(e,`
324
- `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=SP(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=vP(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:vP(t[0],`
325
- `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=vP(t[0],`
323
+ `)}var GP=class{options;rules;lexer;constructor(e){this.options=e||xN}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:BP(e,`
324
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=WP(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=BP(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:BP(t[0],`
325
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=BP(t[0],`
326
326
  `).split(`
327
327
  `),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
328
328
  `),c=s.replace(this.rules.other.blockquoteSetextReplace,`
@@ -333,17 +333,17 @@ ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
333
333
  `),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}else if(u?.type===`list`){let t=u,a=t.raw+`
334
334
  `+e.join(`
335
335
  `),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
336
- `);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=bP(t[2].split(`
336
+ `);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=HP(t[2].split(`
337
337
  `,1)[0],t[1].length),l=e.split(`
338
338
  `,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=c.search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
339
339
  `,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d),f=this.rules.other.blockquoteBeginRegex(d);for(;e;){let p=e.split(`
340
340
  `,1)[0],m;if(l=p,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),m=l):m=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||f.test(l)||t.test(l)||n.test(l))break;if(m.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
341
341
  `+m.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
342
342
  `+l}u=!l.trim(),r+=p+`
343
- `,e=e.substring(p.length+1),c=m.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,``),e.tokens[0]?.type===`text`||e.tokens[0]?.type===`paragraph`){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,``),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let n={type:`checkbox`,raw:t[0]+` `,checked:t[0]!==`[ ]`};e.checked=n.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:`paragraph`,raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}if(!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:`html`,block:!0,raw:t[0],pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=_P(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
344
- `):[],a={type:`table`,raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(_P(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:`heading`,raw:t[0],depth:t[2].charAt(0)===`=`?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
345
- `?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=vP(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=yP(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),xP(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return xP(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}else if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},wP=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||$M,this.options.tokenizer=this.options.tokenizer||new CP,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:iN,block:dP.normal,inline:fP.normal};this.options.pedantic?(t.block=dP.pedantic,t.inline=fP.pedantic):this.options.gfm&&(t.block=dP.gfm,this.options.breaks?t.inline=fP.breaks:t.inline=fP.gfm),this.tokenizer.rules=t}static get rules(){return{block:dP,inline:fP}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(iN.carriageReturn,`
346
- `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(iN.tabCharGlobal,` `).replace(iN.spaceLine,``));e;){let r;if(this.options.extensions?.block?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=`
343
+ `,e=e.substring(p.length+1),c=m.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0)),i.items.push({type:`list_item`,raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(s),loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e of i.items){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,``),e.tokens[0]?.type===`text`||e.tokens[0]?.type===`paragraph`){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,``),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let n={type:`checkbox`,raw:t[0]+` `,checked:t[0]!==`[ ]`};e.checked=n.checked,i.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:`paragraph`,raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}if(!i.loose){let t=e.tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:`html`,block:!0,raw:t[0],pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=zP(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
344
+ `):[],a={type:`table`,raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(zP(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:`heading`,raw:t[0],depth:t[2].charAt(0)===`=`?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
345
+ `?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=BP(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=VP(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),UP(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return UP(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}else if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},KP=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||xN,this.options.tokenizer=this.options.tokenizer||new GP,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:EN,block:NP.normal,inline:PP.normal};this.options.pedantic?(t.block=NP.pedantic,t.inline=PP.pedantic):this.options.gfm&&(t.block=NP.gfm,this.options.breaks?t.inline=PP.breaks:t.inline=PP.gfm),this.tokenizer.rules=t}static get rules(){return{block:NP,inline:PP}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(EN.carriageReturn,`
346
+ `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(EN.tabCharGlobal,` `).replace(EN.spaceLine,``));e;){let r;if(this.options.extensions?.block?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=`
347
347
  `:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
348
348
  `)?``:`
349
349
  `)+r.raw,n.text+=`
@@ -356,9 +356,9 @@ ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
356
356
  `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
357
357
  `)?``:`
358
358
  `)+r.raw,n.text+=`
359
- `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``;for(;e;){a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return t}},TP=class{options;parser;constructor(e){this.options=e||$M}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(iN.notSpaceStart)?.[0],i=e.replace(iN.endingNewline,``)+`
360
- `;return r?`<pre><code class="language-`+hP(r)+`">`+(n?i:hP(i,!0))+`</code></pre>
361
- `:`<pre><code>`+(n?i:hP(i,!0))+`</code></pre>
359
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``;for(;e;){a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw Error(t)}}return t}},qP=class{options;parser;constructor(e){this.options=e||xN}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(EN.notSpaceStart)?.[0],i=e.replace(EN.endingNewline,``)+`
360
+ `;return r?`<pre><code class="language-`+LP(r)+`">`+(n?i:LP(i,!0))+`</code></pre>
361
+ `:`<pre><code>`+(n?i:LP(i,!0))+`</code></pre>
362
362
  `}blockquote({tokens:e}){return`<blockquote>
363
363
  ${this.parser.parse(e)}</blockquote>
364
364
  `}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
@@ -374,16 +374,16 @@ ${this.parser.parse(e)}</blockquote>
374
374
  `}tablerow({text:e}){return`<tr>
375
375
  ${e}</tr>
376
376
  `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
377
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${hP(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=gP(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+hP(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=gP(e);if(i===null)return hP(n);e=i;let a=`<img src="${e}" alt="${hP(n)}"`;return t&&(a+=` title="${hP(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:hP(e.text)}},EP=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},DP=class e{options;renderer;textRenderer;constructor(e){this.options=e||$M,this.options.renderer=this.options.renderer||new TP,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new EP}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},OP=class{options;block;constructor(e){this.options=e||$M}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?wP.lex:wP.lexInline}provideParser(){return this.block?DP.parse:DP.parseInline}},kP=new class{defaults=QM();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=DP;Renderer=TP;TextRenderer=EP;Lexer=wP;Tokenizer=CP;Hooks=OP;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new TP(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new CP(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new OP;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];OP.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&OP.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return wP.lex(e,t??this.defaults)}parser(e,t){return DP.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer():e?wP.lex:wP.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser():e?DP.parse:DP.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?wP.lex:wP.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():e?DP.parse:DP.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
378
- Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+hP(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function AP(e,t){return kP.parse(e,t)}AP.options=AP.setOptions=function(e){return kP.setOptions(e),AP.defaults=kP.defaults,eN(AP.defaults),AP},AP.getDefaults=QM,AP.defaults=$M,AP.use=function(...e){return kP.use(...e),AP.defaults=kP.defaults,eN(AP.defaults),AP},AP.walkTokens=function(e,t){return kP.walkTokens(e,t)},AP.parseInline=kP.parseInline,AP.Parser=DP,AP.parser=DP.parse,AP.Renderer=TP,AP.TextRenderer=EP,AP.Lexer=wP,AP.lexer=wP.lex,AP.Tokenizer=CP,AP.Hooks=OP,AP.parse=AP,AP.options,AP.setOptions,AP.use,AP.walkTokens,AP.parseInline,DP.parse,wP.lex;function jP(e){return typeof e==`object`&&!!e}function MP(e){return typeof e==`object`&&!!e&&`responseList`in e}function NP(e){if(typeof e!=`object`||!e)return[];let t=e;if(!t?.activePlan?.details)return[];let n=t.activePlan.details,r={data:`Data`,voice:`Min`,sms:`SMS`};return[`data`,`voice`,`sms`].map(e=>{let t=n[e],i=typeof t==`string`?t:typeof t==`number`?String(t):`-`,a=i.trim().split(/\s+/),o=a.length>1?a.slice(0,-1).join(` `):i,s=a.length>1?a[a.length-1]:null;return{key:e,type:r[e]||e,amount:o,unit:s}})}function PP(e){if(!e)return{price:void 0,suffix:void 0};let t=e.price;if(!t)return{price:void 0,suffix:void 0};let n=t.discount??t.price;return{price:typeof n==`number`?`$${n.toFixed(2)}`:n,suffix:t.showMonthly===!1?void 0:`/mth`}}function FP(e,t){let n=MP(e)?e.responseList:void 0,r=PP(t);if(n&&n.length>1)return{overviewItems:n.map(e=>{let t=NP(e),n=jP(e)?e:void 0;return{billingAccountId:n?.billingAccountId,title:n?.activePlan?.planName,advantages:t,price:r.price,priceSuffix:r.suffix}}),isMultipleAccounts:!0};let i=n?.[0],a=NP(i),o=jP(i)?i:void 0;return{advantages:a,price:r.price,priceSuffix:r.suffix,accountData:o,isMultipleAccounts:!1}}function IP({config:e,onWidgetEvent:t}){let n=FP(e.data,e.visualizationConfig);return n.isMultipleAccounts?(0,U.jsx)(NH,{items:n.overviewItems,title:e.visualizationConfig?.title||`Select Account`,onSelectAccount:e=>{t?.({type:`select-account`,data:{billingAccountId:e}})}}):(0,U.jsx)(NH,{title:n.accountData?.activePlan?.planName||e.visualizationConfig?.title,advantages:n.advantages,price:n.price,priceSuffix:n.priceSuffix,ctaLabel:e.visualizationConfig?.cta?.label,onCtaClick:()=>{t?.({type:`cta-click`,data:{}})}})}function LP(e){let t=e.trim().toLowerCase();switch(t){case`usage-chart`:return`usage-chart`;case`chart`:return`chart`;case`offer-card`:case`addon-card`:return t;case`overview-card`:case`account-overview`:return t;case`card`:return`overview-card`;case`table`:return`table`;case`highlightbox`:case`highlight-box`:return`highlight-box`;case`info-box`:return`info-box`;case`actions`:return`actions`;default:return null}}function RP(e){let t=LP(e.type);if(!t)return null;switch(t){case`chart`:case`usage-chart`:return{type:t,config:e};case`offer-card`:case`addon-card`:return{type:t,config:e};case`overview-card`:case`account-overview`:return{type:t,config:e};case`table`:return{type:t,config:e};case`highlight-box`:case`info-box`:return{type:t,config:e};case`actions`:return{type:t,config:e};default:return null}}var zP={actionButton:`_actionButton_1j6mo_1`};function BP({actions:e,onActionClick:t}){return!e||e.length===0?null:(0,U.jsx)(Eu,{gap:`xs`,wrap:`wrap`,mt:`xs`,children:e.map(e=>(0,U.jsx)(jm,{variant:`outline`,size:`sm`,radius:`xl`,className:zP.actionButton,onClick:()=>t?.({type:`action-click`,data:{agentMessage:e.agentMessage,targetAgent:e.targetAgent}}),children:e.buttonText},e.buttonText))})}var VP={root:`_root_1o6c0_1`,header:`_header_1o6c0_17`};function HP({children:e,className:t,...n}){return(0,U.jsx)(q,{className:Tn(VP.header,t),...n,children:e})}function UP({children:e,withBorder:t=!0,withShadow:n=!0,className:r,mod:i,variant:a=`default`,...o}){let s=i;return(0,U.jsx)(q,{className:Tn(VP.root,r),p:24,mod:{...s,bordered:t,shadow:n,variant:a},...o,children:e})}UP.Header=HP;function WP({...e}){return(0,U.jsxs)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,U.jsx)(`path`,{d:`M3.77762 11.9424C2.8296 10.2893 2.37185 8.93948 2.09584 7.57121C1.68762 5.54758 2.62181 3.57081 4.16938 2.30947C4.82345 1.77638 5.57323 1.95852 5.96 2.6524L6.83318 4.21891C7.52529 5.46057 7.87134 6.08139 7.8027 6.73959C7.73407 7.39779 7.26737 7.93386 6.33397 9.00601L3.77762 11.9424ZM3.77762 11.9424C5.69651 15.2883 8.70784 18.3013 12.0576 20.2224M12.0576 20.2224C13.7107 21.1704 15.0605 21.6282 16.4288 21.9042C18.4524 22.3124 20.4292 21.3782 21.6905 19.8306C22.2236 19.1766 22.0415 18.4268 21.3476 18.04L19.7811 17.1668C18.5394 16.4747 17.9186 16.1287 17.2604 16.1973C16.6022 16.2659 16.0661 16.7326 14.994 17.666L12.0576 20.2224Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M14 6.83185C15.4232 7.43624 16.5638 8.57677 17.1682 10M14.654 2C18.1912 3.02076 20.9791 5.80852 22 9.34563`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})]})}function GP({...e}){return(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,U.jsx)(`path`,{d:`M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M12 22C14.2091 22 16 17.5228 16 12C16 6.47715 14.2091 2 12 2C9.79086 2 8 6.47715 8 12C8 17.5228 9.79086 22 12 22Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M2 12H22`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]})}function KP({...e}){return(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,U.jsx)(`path`,{d:`M8 13.5H16M8 8.5H12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M6.09881 19C4.7987 18.8721 3.82475 18.4816 3.17157 17.8284C2 16.6569 2 14.7712 2 11V10.5C2 6.72876 2 4.84315 3.17157 3.67157C4.34315 2.5 6.22876 2.5 10 2.5H14C17.7712 2.5 19.6569 2.5 20.8284 3.67157C22 4.84315 22 6.72876 22 10.5V11C22 14.7712 22 16.6569 20.8284 17.8284C19.6569 19 17.7712 19 14 19C13.4395 19.0125 12.9931 19.0551 12.5546 19.155C11.3562 19.4309 10.2465 20.0441 9.14987 20.5789C7.58729 21.3408 6.806 21.7218 6.31569 21.3651C5.37769 20.6665 6.29454 18.5019 6.5 17.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})]})}var qP={data:GP,voice:WP,sms:KP},JP=e=>qP[e.toLowerCase()]||qP.data;function YP(){return{getPercent:e=>{if(e.percentUsed!=null&&Number.isFinite(e.percentUsed))return Math.max(0,Math.min(100,Math.round(e.percentUsed)));if(!Number.isFinite(e.total)||e.total<=0)return 0;let t=e.used/e.total*100;return Number.isFinite(t)?Math.max(0,Math.min(100,Math.round(t))):0},getColor:e=>{switch(e.toLowerCase()){case`data`:return`blue`;case`voice`:return`violet`;case`sms`:return`green`;default:return`blue`}},getShortLabel:e=>{let t=(e.key??``).toLowerCase();return t===`data`?`Data`:t===`voice`?`Voice`:t===`sms`?`SMS`:e.label?.trim()?e.label.trim():e.key?e.key.charAt(0).toUpperCase()+e.key.slice(1):`Usage`},getIcon:JP}}function XP({items:e=[],title:t}){let{getPercent:n,getColor:r,getShortLabel:i,getIcon:a}=YP();return(0,U.jsx)(UP,{withBorder:!0,withShadow:!0,children:(0,U.jsxs)(Ky,{gap:`md`,children:[t&&(0,U.jsx)(Xf,{size:`lg`,fw:600,children:t}),(0,U.jsx)(Ry,{cols:{base:1,sm:2},spacing:`md`,children:e.map(e=>{let t=n(e),o=r(e.key),s=i(e);return(0,U.jsxs)(Eu,{gap:`md`,wrap:`nowrap`,children:[(0,U.jsx)(wy,{size:80,thickness:10,sections:[{value:t,color:o}],label:(0,U.jsxs)(Xf,{size:`sm`,ta:`center`,fw:600,children:[t,`%`]})}),(0,U.jsxs)(Ky,{gap:4,style:{flex:1},children:[(0,U.jsxs)(Eu,{gap:`xs`,children:[(0,U.jsx)(qb,{color:o,variant:`light`,size:`sm`,children:H.createElement(a(e.key))}),(0,U.jsx)(Xf,{size:`sm`,fw:500,children:s})]}),(0,U.jsxs)(Eu,{gap:4,children:[(0,U.jsx)(Xf,{size:`sm`,children:e.used}),(0,U.jsxs)(Xf,{size:`sm`,c:`dimmed`,children:[`/ `,e.total,` `,e.unit]})]})]})]},e.key)})})]})})}function ZP({title:e,content:t,variant:n=`info`}){return(0,U.jsx)(Gf,{icon:(0,H.useMemo)(()=>{switch(n){case`success`:return(0,U.jsx)(jT,{});case`warning`:return(0,U.jsx)(NT,{});case`error`:return(0,U.jsx)(AT,{});default:return(0,U.jsx)(MT,{})}},[n]),title:e,color:{info:`blue`,success:`green`,warning:`yellow`,error:`red`}[n],radius:`md`,children:t})}var QP={offerCardButton:`_offerCardButton_1og3p_1`,"offerCardButton--clickable":`_offerCardButton--clickable_1og3p_6`};function $P({item:e,index:t,showPricing:n,onSelect:r}){let i=!!e.offerId;return(0,U.jsx)(dl,{className:`${QP.offerCardButton} ${i?QP.offerCardButtonClickable:``}`,onClick:()=>r(e.offerId),disabled:!i,children:(0,U.jsx)(UP,{withBorder:!0,withShadow:!0,p:16,h:`100%`,children:(0,U.jsxs)(Ky,{gap:`sm`,h:`100%`,children:[(0,U.jsx)(Xf,{size:`md`,fw:600,lineClamp:2,children:e.name||`Addon`}),e.description&&(0,U.jsx)(Xf,{size:`sm`,c:`dimmed`,lineClamp:2,children:e.description}),e.dataAmount&&(0,U.jsx)(Xf,{size:`sm`,fw:500,children:e.dataAmount}),n&&e.price&&(0,U.jsx)(Xf,{size:`lg`,fw:600,c:`blue`,children:e.price}),e.chargeType&&(0,U.jsx)(Xf,{size:`xs`,c:`dimmed`,children:e.chargeType})]})})},e.offerId||t)}function eF({items:e=[],title:t=`Available Addons`,showPricing:n=!0,onSelectOffer:r}){let i=e=>{e&&r?.(e)};return(0,U.jsx)(UP,{withBorder:!0,withShadow:!0,children:(0,U.jsxs)(Ky,{gap:`md`,children:[(0,U.jsx)(Xf,{size:`lg`,fw:600,children:t}),(0,U.jsx)(Ry,{cols:{base:1,sm:2},spacing:`md`,children:e.map((e,t)=>(0,U.jsx)($P,{item:e,index:t,showPricing:n,onSelect:i},e.offerId||t))})]})})}var tF=(0,H.createContext)(void 0);function nF(){let e=(0,H.useContext)(tF);if(!e)throw Error(`VTableContext must be used within a VTable component`);return e}function rF({...e}){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,U.jsx)(`path`,{d:`M6 15L12 9L18 15`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})})}function iF(e,t,n){return{handleClick:n=>{let r=window.getSelection(),i=r&&r.toString().trim().length>0;n.button===0&&t&&!i&&t(e)},handleMouseDown:t=>{if(t.button===1&&n){t.preventDefault();let r=n(e);r&&window.open(``+r,`_blank`)}}}}var aF={row:`_row_ze3zx_1`,arrow:`_arrow_ze3zx_26`,header:`_header_ze3zx_36`};function oF({column:e,row:t}){let n=(e,t)=>{if(t.render)return t.render(e,0);if(Array.isArray(t.accessor))return t.accessor.map(t=>e[t]).join(` `);if(t.accessor){let n=e[t.accessor];return n?String(n):`-`}return`-`},r=!!e.header,i=n(t,e),a=typeof i==`string`;return(0,U.jsxs)(U.Fragment,{children:[r&&(0,U.jsxs)(Xf,{className:aF.header,children:[e.header,`:`]}),(0,U.jsx)(Xf,{component:`span`,lineClamp:1,fw:500,truncate:!0,title:a?i:void 0,children:i})]})}function sF({row:e,columns:t}){let{onRowClick:n}=nF();return(0,U.jsxs)(q,{className:aF.row,mod:{clickable:!!n},children:[t.map((t,n)=>(0,U.jsx)(Ky,{justify:t.header?`flex-start`:`center`,flex:1,children:(0,U.jsx)(oF,{column:t,row:e})},n)),n&&(0,U.jsx)(q,{className:aF.arrow,children:(0,U.jsx)(gu,{variant:`transparent`,children:(0,U.jsx)(nA,{})})})]})}var cF={row:`_row_1jau4_1`,box:`_box_1jau4_10`,checkboxWrapper:`_checkboxWrapper_1jau4_38`,collapseWrapper:`_collapseWrapper_1jau4_52`,collapse:`_collapse_1jau4_52`,collapseContent:`_collapseContent_1jau4_75`};function lF(){let{idKey:e,paginatedData:t=[],columns:n=[],withSelection:r,selection:i=[],loading:a,toggleRow:o,withCollapsible:s,isRowCollapsible:c,withMultipleCollapse:l=!0,renderCollapsed:u,onRowClick:d,getRowUrl:f}=nF(),[p,m]=H.useState({}),[h,g]=H.useState({}),_=e=>{g(t=>({...t,[e]:!0})),m(t=>l?{...t,[e]:!t[e]}:{[e]:!t[e]})};return a&&t.length===0?(0,U.jsx)(Ky,{gap:16,children:Array.from({length:3}).map((e,t)=>(0,U.jsx)(Hy,{height:64,radius:`md`},`loading-${t}`))}):(0,U.jsx)(Ky,{className:cF.row,children:t.map((t,a)=>{let l=i.some(n=>n[e]===t[e]),m=t[e],g=typeof m==`string`||typeof m==`number`?m:a,v=p[g]||!1,y=v||h[g],b=s&&(c?c(t,a):!0),{handleClick:x,handleMouseDown:S}=iF(t,d,f);return(0,U.jsxs)(q,{className:cF.box,mod:{"with-selection":r,"with-collapse":b,"is-expanded":v,selected:l},onClick:x,onMouseDown:S,children:[b&&(0,U.jsx)(dl,{className:cF.collapseWrapper,onMouseDown:e=>{e.stopPropagation()},onClick:e=>{e.stopPropagation(),_(g)},children:v?(0,U.jsx)(rF,{width:20,height:20}):(0,U.jsx)(OO,{width:20,height:20})}),r&&(0,U.jsx)(Eu,{className:cF.checkboxWrapper,onClick:e=>{e.stopPropagation(),o(t,a,e)},align:`center`,children:(0,U.jsx)(tm,{checked:l,readOnly:!0})}),(0,U.jsx)(sF,{row:t,columns:n}),b&&u&&(0,U.jsx)(Ji,{expanded:v,className:cF.collapse,children:y?(0,U.jsx)(q,{className:cF.collapseContent,onMouseDown:e=>{e.stopPropagation()},onClick:e=>{e.stopPropagation()},children:u(t,a,{view:`card`})}):null})]},a)})})}var uF={DEFAULT_ALL_DATA_PAGE_SIZE:200,DEFAULT_INITIAL_PAGE:1,DEFAULT_PAGE_SIZE:10},dF=[5,10,20,50,100,200];function fF(e,t){return Array.isArray(e)?e.includes(t):e===t}function pF(e){if(!e.length)return!0;for(let t of e)if(!(`group`in t)||t.items.length>0)return!1;return!0}function mF(e,t=new Set){if(Array.isArray(e))for(let n of e)if(nm(n))mF(n.items,t);else{if(n.value===void 0)throw Error(`Each option must have value property`);if(typeof n.value!=`string`)throw Error(`Option value must be a string, other data formats are not supported, got ${typeof n.value}`);if(t.has(n.value))throw Error(`Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);t.add(n.value)}}var hF=0,gF=1,_F=2,vF=4;function yF(e){return()=>e}function bF(e){e()}function xF(e,t){return n=>e(t(n))}function SF(e,t){return()=>e(t)}function CF(e,t){return n=>e(t,n)}function wF(e){return e!==void 0}function TF(...e){return()=>{e.map(bF)}}function EF(){}function DF(e,t){return t(e),e}function OF(e,t){return t(e)}function kF(...e){return e}function AF(e,t){return e(gF,t)}function jF(e,t){e(hF,t)}function MF(e){e(_F)}function NF(e){return e(vF)}function PF(e,t){return AF(e,CF(t,hF))}function FF(e,t){let n=e(gF,e=>{n(),t(e)});return n}function IF(e){let t,n;return r=>i=>{t=i,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function LF(e,t){return e===t}function RF(e=LF){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function zF(e){return t=>n=>{e(n)&&t(n)}}function BF(e){return t=>xF(t,e)}function VF(e){return t=>()=>{t(e)}}function $(e,...t){let n=KF(...t);return((t,r)=>{switch(t){case _F:MF(e);return;case gF:return AF(e,n(r))}})}function HF(e,t){return n=>r=>{n(t=e(t,r))}}function UF(e){return t=>n=>{e>0?e--:t(n)}}function WF(e){let t=null,n;return r=>i=>{t=i,!n&&(n=setTimeout(()=>{n=void 0,r(t)},e))}}function GF(...e){let t=Array(e.length),n=0,r=null,i=2**e.length-1;return e.forEach((e,a)=>{let o=2**a;AF(e,e=>{let s=n;n|=o,t[a]=e,s!==i&&n===i&&r&&(r(),r=null)})}),e=>a=>{let o=()=>{e([a].concat(t))};n===i?o():r=o}}function KF(...e){return t=>e.reduceRight(OF,t)}function qF(e){let t,n,r=()=>t?.();return function(i,a){switch(i){case gF:return a?n===a?void 0:(r(),n=a,t=AF(e,a),t):(r(),EF);case _F:r(),n=null;return}}}function JF(e){let t=e,n=XF();return((e,r)=>{switch(e){case hF:t=r;break;case gF:r(t);break;case vF:return t}return n(e,r)})}function YF(e,t){return DF(JF(t),t=>PF(e,t))}function XF(){let e=[];return((t,n)=>{switch(t){case hF:e.slice().forEach(e=>{e(n)});return;case _F:e.splice(0,e.length);return;case gF:return e.push(n),()=>{let t=e.indexOf(n);t>-1&&e.splice(t,1)}}})}function ZF(e){return DF(XF(),t=>PF(e,t))}function QF(e,t=[],{singleton:n}={singleton:!0}){return{constructor:e,dependencies:t,id:$F(),singleton:n}}var $F=()=>Symbol();function eI(e){let t=new Map,n=({constructor:e,dependencies:r,id:i,singleton:a})=>{if(a&&t.has(i))return t.get(i);let o=e(r.map(e=>n(e)));return a&&t.set(i,o),o};return n(e)}function tI(...e){let t=XF(),n=Array(e.length),r=0,i=2**e.length-1;return e.forEach((e,a)=>{let o=2**a;AF(e,e=>{n[a]=e,r|=o,r===i&&jF(t,n)})}),function(e,a){switch(e){case _F:MF(t);return;case gF:return r===i&&a(n),AF(t,a)}}}function nI(e,t=LF){return $(e,RF(t))}function rI(...e){return function(t,n){switch(t){case _F:return;case gF:return TF(...e.map(e=>AF(e,n)))}}}var iI={DEBUG:0,INFO:1,WARN:2,ERROR:3},aI={[iI.DEBUG]:`debug`,[iI.ERROR]:`error`,[iI.INFO]:`log`,[iI.WARN]:`warn`},oI=()=>typeof globalThis>`u`?window:globalThis,sI=QF(()=>{let e=JF(iI.ERROR);return{log:JF((t,n,r=iI.INFO)=>{r>=(oI().VIRTUOSO_LOG_LEVEL??NF(e))&&console[aI[r]](`%creact-virtuoso: %c%s %o`,`color: #0253b3; font-weight: bold`,`color: initial`,t,n)}),logLevel:e}},[],{singleton:!0});function cI(e,t,n){return lI(e,t,n).callbackRef}function lI(e,t,n){let r=H.useRef(null),i=e=>{},a=H.useMemo(()=>typeof ResizeObserver<`u`?new ResizeObserver(t=>{let r=()=>{let n=t[0].target;n.offsetParent!==null&&e(n)};n?r():requestAnimationFrame(r)}):null,[e,n]);return i=e=>{e&&t?(a?.observe(e),r.current=e):(r.current&&a?.unobserve(r.current),r.current=null)},{callbackRef:i,ref:r}}function uI(e,t,n,r,i,a,o,s,c){return lI(H.useCallback(n=>{let c=dI(n.children,t,s?`offsetWidth`:`offsetHeight`,i),l=n.parentElement;for(;l.dataset.virtuosoScroller===void 0;)l=l.parentElement;let u=l.lastElementChild.dataset.viewportType===`window`,d;u&&(d=l.ownerDocument.defaultView);let f=o?s?o.scrollLeft:o.scrollTop:u?s?d.scrollX||d.document.documentElement.scrollLeft:d.scrollY||d.document.documentElement.scrollTop:s?l.scrollLeft:l.scrollTop,p=o?s?o.scrollWidth:o.scrollHeight:u?s?d.document.documentElement.scrollWidth:d.document.documentElement.scrollHeight:s?l.scrollWidth:l.scrollHeight,m=o?s?o.offsetWidth:o.offsetHeight:u?s?d.innerWidth:d.innerHeight:s?l.offsetWidth:l.offsetHeight;r({scrollHeight:p,scrollTop:Math.max(f,0),viewportHeight:m}),a?.(s?fI(`column-gap`,getComputedStyle(n).columnGap,i):fI(`row-gap`,getComputedStyle(n).rowGap,i)),c!==null&&e(c)},[e,t,i,a,o,r,s]),n,c)}function dI(e,t,n,r){let i=e.length;if(i===0)return null;let a=[];for(let o=0;o<i;o++){let i=e.item(o);if(i.dataset.index===void 0)continue;let s=parseInt(i.dataset.index),c=parseFloat(i.dataset.knownSize),l=t(i,n);if(l===0&&r(`Zero-sized element, this should not happen`,{child:i},iI.ERROR),l===c)continue;let u=a[a.length-1];a.length===0||u.size!==l||u.endIndex!==s-1?a.push({endIndex:s,size:l,startIndex:s}):a[a.length-1].endIndex++}return a}function fI(e,t,n){return t!==`normal`&&t?.endsWith(`px`)!==!0&&n(`${e} was not resolved to pixel value correctly`,t,iI.WARN),t===`normal`?0:parseInt(t??`0`,10)}function pI(e,t,n){let r=H.useRef(null),i=H.useCallback(n=>{if(!n?.offsetParent)return;let i=n.getBoundingClientRect(),a=i.width,s,c;if(t){let e=t.getBoundingClientRect(),n=i.top-e.top;c=e.height-Math.max(0,n),s=n+t.scrollTop}else{let e=o.current.ownerDocument.defaultView;c=e.innerHeight-Math.max(0,i.top),s=i.top+e.scrollY}r.current={listHeight:i.height,offsetTop:s,visibleHeight:c,visibleWidth:a},e(r.current)},[e,t]),{callbackRef:a,ref:o}=lI(i,!0,n),s=H.useCallback(()=>{i(o.current)},[i,o]);return H.useEffect(()=>{if(t){t.addEventListener(`scroll`,s);let e=new ResizeObserver(()=>{requestAnimationFrame(s)});return e.observe(t),()=>{t.removeEventListener(`scroll`,s),e.unobserve(t)}}let e=o.current?.ownerDocument.defaultView;return e?.addEventListener(`scroll`,s),e?.addEventListener(`resize`,s),()=>{e?.removeEventListener(`scroll`,s),e?.removeEventListener(`resize`,s)}},[s,t,o]),a}var mI=QF(()=>{let e=XF(),t=XF(),n=JF(0),r=XF(),i=JF(0),a=XF(),o=XF(),s=JF(0),c=JF(0),l=JF(0),u=JF(0),d=XF(),f=XF(),p=JF(!1),m=JF(!1),h=JF(!1);return PF($(e,BF(({scrollTop:e})=>e)),t),PF($(e,BF(({scrollHeight:e})=>e)),o),PF(t,i),{deviation:n,fixedFooterHeight:l,fixedHeaderHeight:c,footerHeight:u,headerHeight:s,horizontalDirection:m,scrollBy:f,scrollContainerState:e,scrollHeight:o,scrollingInProgress:p,scrollTo:d,scrollTop:t,skipAnimationFrameInResizeObserver:h,smoothScrollTargetReached:r,statefulScrollTop:i,viewportHeight:a}},[],{singleton:!0}),hI={lvl:0};function gI(e,t){let n=e.length;if(n===0)return[];let{index:r,value:i}=t(e[0]),a=[];for(let o=1;o<n;o++){let{index:n,value:s}=t(e[o]);a.push({end:n-1,start:r,value:i}),r=n,i=s}return a.push({end:1/0,start:r,value:i}),a}function _I(e){return e===hI}function vI(e,t){if(!_I(e))return t===e.k?e.v:t<e.k?vI(e.l,t):vI(e.r,t)}function yI(e,t,n=`k`){if(_I(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])<t){let r=yI(e.r,t,n);return r[0]===-1/0?[e.k,e.v]:r}return yI(e.l,t,n)}function bI(e,t,n){return _I(e)?jI(t,n,1):t===e.k?DI(e,{k:t,v:n}):t<e.k?MI(DI(e,{l:bI(e.l,t,n)})):MI(DI(e,{r:bI(e.r,t,n)}))}function xI(){return hI}function SI(e,t,n){if(_I(e))return[];let r=yI(e,t)[0];return FI(TI(e,r,n))}function CI(e,t){if(_I(e))return hI;let{k:n,l:r,r:i}=e;if(t===n){if(_I(r))return i;if(_I(i))return r;let[t,n]=AI(r);return EI(DI(e,{k:t,l:OI(r),v:n}))}return EI(t<n?DI(e,{l:CI(r,t)}):DI(e,{r:CI(i,t)}))}function wI(e){return _I(e)?[]:[...wI(e.l),{k:e.k,v:e.v},...wI(e.r)]}function TI(e,t,n){if(_I(e))return[];let{k:r,l:i,r:a,v:o}=e,s=[];return r>t&&(s=s.concat(TI(i,t,n))),r>=t&&r<=n&&s.push({k:r,v:o}),r<=n&&(s=s.concat(TI(a,t,n))),s}function EI(e){let{l:t,lvl:n,r}=e;if(r.lvl>=n-1&&t.lvl>=n-1)return e;if(n>r.lvl+1){if(kI(t))return NI(DI(e,{lvl:n-1}));if(!_I(t)&&!_I(t.r))return DI(t.r,{l:DI(t,{r:t.r.l}),lvl:n,r:DI(e,{l:t.r.r,lvl:n-1})});throw Error(`Unexpected empty nodes`)}if(kI(e))return PI(DI(e,{lvl:n-1}));if(!_I(r)&&!_I(r.l)){let t=r.l,i=kI(t)?r.lvl-1:r.lvl;return DI(t,{l:DI(e,{lvl:n-1,r:t.l}),lvl:t.lvl+1,r:PI(DI(r,{l:t.r,lvl:i}))})}throw Error(`Unexpected empty nodes`)}function DI(e,t){return jI(t.k===void 0?e.k:t.k,t.v===void 0?e.v:t.v,t.lvl===void 0?e.lvl:t.lvl,t.l===void 0?e.l:t.l,t.r===void 0?e.r:t.r)}function OI(e){return _I(e.r)?e.l:EI(DI(e,{r:OI(e.r)}))}function kI(e){return _I(e)||e.lvl>e.r.lvl}function AI(e){return _I(e.r)?[e.k,e.v]:AI(e.r)}function jI(e,t,n,r=hI,i=hI){return{k:e,l:r,lvl:n,r:i,v:t}}function MI(e){return PI(NI(e))}function NI(e){let{l:t}=e;return!_I(t)&&t.lvl===e.lvl?DI(t,{r:DI(e,{l:t.r})}):e}function PI(e){let{lvl:t,r:n}=e;return!_I(n)&&!_I(n.r)&&n.lvl===t&&n.r.lvl===t?DI(n,{l:DI(e,{r:n.l}),lvl:t+1}):e}function FI(e){return gI(e,({k:e,v:t})=>({index:e,value:t}))}function II(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}function LI(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}var RI=QF(()=>({recalcInProgress:JF(!1)}),[],{singleton:!0});function zI(e,t,n){return e[BI(e,t,n)]}function BI(e,t,n,r=0){let i=e.length-1;for(;r<=i;){let a=Math.floor((r+i)/2),o=e[a],s=n(o,t);if(s===0)return a;if(s===-1){if(i-r<2)return a-1;i=a-1}else{if(i===r)return a;r=a+1}}throw Error(`Failed binary finding record in array - ${e.join(`,`)}, searched for ${t}`)}function VI(e,t,n,r){let i=BI(e,t,r),a=BI(e,n,r,i);return e.slice(i,a+1)}function HI(e,t){return Math.round(e.getBoundingClientRect()[t])}function UI(e){return!_I(e.groupOffsetTree)}function WI({index:e},t){return t===e?0:t<e?-1:1}function GI(){return{groupIndices:[],groupOffsetTree:xI(),lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:xI()}}function KI(e,t){let n=_I(e)?0:1/0;for(let r of t){let{endIndex:t,size:i,startIndex:a}=r;if(n=Math.min(n,a),_I(e)){e=bI(e,0,i);continue}let o=SI(e,a-1,t+1);if(o.some(iL(r)))continue;let s=!1,c=!1;for(let{end:n,start:r,value:a}of o)s?(t>=r||i===a)&&(e=CI(e,r)):(c=a!==i,s=!0),n>t&&t>=r&&a!==i&&(e=bI(e,t+1,a));c&&(e=bI(e,a,i))}return[e,n]}function qI(e){return typeof e.groupIndex<`u`}function JI({offset:e},t){return t===e?0:t<e?-1:1}function YI(e,t,n){if(t.length===0)return 0;let{index:r,offset:i,size:a}=zI(t,e,WI),o=e-r,s=a*o+(o-1)*n+i;return s>0?s+n:s}function XI(e,t){if(!UI(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function ZI(e,t,n){if(qI(e))return t.groupIndices[e.groupIndex]+1;let r=XI(e.index===`LAST`?n:e.index,t);return r=Math.max(0,r,Math.min(n,r)),r}function QI(e,t,n,r=0){return r>0&&(t=Math.max(t,zI(e,r,WI).offset)),gI(VI(e,t,n,JI),rL)}function $I(e,[t,n,r,i]){t.length>0&&r(`received item sizes`,t,iI.DEBUG);let a=e.sizeTree,o=a,s=0;if(n.length>0&&_I(a)&&t.length===2){let e=t[0].size,r=t[1].size;o=n.reduce((t,n)=>bI(bI(t,n,e),n+1,r),o)}else [o,s]=KI(o,t);if(o===a)return e;let{lastIndex:c,lastOffset:l,lastSize:u,offsetTree:d}=nL(e.offsetTree,s,o,i);return{groupIndices:n,groupOffsetTree:n.reduce((e,t)=>bI(e,t,YI(t,d,i)),xI()),lastIndex:c,lastOffset:l,lastSize:u,offsetTree:d,sizeTree:o}}function eL(e){return wI(e).map(({k:e,v:t},n,r)=>{let i=r[n+1];return{endIndex:i===void 0?1/0:i.k-1,size:t,startIndex:e}})}function tL(e,t){let n=0,r=0;for(;n<e;)n+=t[r+1]-t[r]-1,r++;return r-(n===e?0:1)}function nL(e,t,n,r){let i=e,a=0,o=0,s=0,c=0;if(t!==0){c=BI(i,t-1,WI),s=i[c].offset;let e=yI(n,t-1);a=e[0],o=e[1],i.length&&i[c].size===yI(n,t)[1]&&--c,i=i.slice(0,c+1)}else i=[];for(let{start:e,value:c}of SI(n,t,1/0)){let t=e-a,n=t*o+s+t*r;i.push({index:e,offset:n,size:c}),a=e,s=n,o=c}return{lastIndex:a,lastOffset:s,lastSize:o,offsetTree:i}}function rL(e){return{index:e.index,value:e}}function iL(e){let{endIndex:t,size:n,startIndex:r}=e;return e=>e.start===r&&(e.end===t||e.end===1/0)&&e.value===n}var aL={offsetHeight:`height`,offsetWidth:`width`},oL=QF(([{log:e},{recalcInProgress:t}])=>{let n=XF(),r=XF(),i=YF(r,0),a=XF(),o=XF(),s=JF(0),c=JF([]),l=JF(void 0),u=JF(void 0),d=JF(void 0),f=JF(void 0),p=JF((e,t)=>HI(e,aL[t])),m=JF(void 0),h=JF(0),g=GI(),_=YF($(n,GF(c,e,h),HF($I,g),RF()),g),v=YF($(c,RF(),HF((e,t)=>({current:t,prev:e.current}),{current:[],prev:[]}),BF(({prev:e})=>e)),[]);PF($(c,zF(e=>e.length>0),GF(_,h),BF(([e,t,n])=>{let r=e.reduce((e,r,i)=>bI(e,r,YI(r,t.offsetTree,n)||i),xI());return{...t,groupIndices:e,groupOffsetTree:r}})),_),PF($(r,GF(_),zF(([e,{lastIndex:t}])=>e<t),BF(([e,{lastIndex:t,lastSize:n}])=>[{endIndex:t,size:n,startIndex:e}])),n),PF(l,u);let y=YF($(l,BF(e=>e===void 0)),!0);PF($(u,zF(e=>e!==void 0&&_I(NF(_).sizeTree)),BF(e=>{let t=NF(d),n=NF(c).length>0;return t!==void 0&&t!==0?n?[{endIndex:0,size:t,startIndex:0},{endIndex:1,size:e,startIndex:1}]:[]:[{endIndex:0,size:e,startIndex:0}]})),n),PF($(f,zF(e=>e!==void 0&&e.length>0&&_I(NF(_).sizeTree)),BF(e=>{let t=[],n=e[0],r=0;for(let i=1;i<e.length;i++){let a=e[i];a!==n&&(t.push({endIndex:i-1,size:n,startIndex:r}),n=a,r=i)}return t.push({endIndex:e.length-1,size:n,startIndex:r}),t})),n),PF($(c,GF(d,u),zF(([,e,t])=>e!==void 0&&t!==void 0),BF(([e,t,n])=>{let r=[];for(let i=0;i<e.length;i++){let a=e[i],o=e[i+1];r.push({startIndex:a,endIndex:a,size:t}),o!==void 0&&r.push({startIndex:a+1,endIndex:o-1,size:n})}return r})),n);let b=ZF($(n,GF(_),HF(({sizes:e},[t,n])=>({changed:n!==e,sizes:n}),{changed:!1,sizes:g}),BF(e=>e.changed)));AF($(s,HF((e,t)=>({diff:e.prev-t,prev:t}),{diff:0,prev:0}),BF(e=>e.diff)),e=>{let{groupIndices:n}=NF(_);if(e>0)jF(t,!0),jF(a,e+tL(e,n));else if(e<0){let t=NF(v);t.length>0&&(e-=tL(-e,t)),jF(o,e)}}),AF($(s,GF(e)),([e,t])=>{e<0&&t("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:s},iI.ERROR)});let x=ZF(a);PF($(a,GF(_),BF(([e,t])=>{let n=t.groupIndices.length>0,r=[],i=t.lastSize;if(n){let n=vI(t.sizeTree,0),a=0,o=0;for(;a<e;){let e=t.groupIndices[o],s=t.groupIndices.length===o+1?1/0:t.groupIndices[o+1]-e-1;r.push({endIndex:e,size:n,startIndex:e}),r.push({endIndex:e+1+s-1,size:i,startIndex:e+1}),o++,a+=s+1}let s=wI(t.sizeTree);return a!==e&&s.shift(),s.reduce((t,{k:n,v:r})=>{let i=t.ranges;return t.prevSize!==0&&(i=[...t.ranges,{endIndex:n+e-1,size:t.prevSize,startIndex:t.prevIndex}]),{prevIndex:n+e,prevSize:r,ranges:i}},{prevIndex:e,prevSize:0,ranges:r}).ranges}return wI(t.sizeTree).reduce((t,{k:n,v:r})=>({prevIndex:n+e,prevSize:r,ranges:[...t.ranges,{endIndex:n+e-1,size:t.prevSize,startIndex:t.prevIndex}]}),{prevIndex:0,prevSize:i,ranges:[]}).ranges})),n);let S=ZF($(o,GF(_,h),BF(([e,{offsetTree:t},n])=>YI(-e,t,n))));return PF($(o,GF(_,h),BF(([e,t,n])=>{if(t.groupIndices.length>0){if(_I(t.sizeTree))return t;let r=xI(),i=NF(v),a=0,o=0,s=0;for(;a<-e;){s=i[o];let e=i[o+1]-s-1;o++,a+=e+1}if(r=wI(t.sizeTree).reduce((t,{k:n,v:r})=>bI(t,Math.max(0,n+e),r),r),a!==-e){let n=vI(t.sizeTree,s);r=bI(r,0,n);let i=yI(t.sizeTree,-e+1)[1];r=bI(r,1,i)}return{...t,sizeTree:r,...nL(t.offsetTree,0,r,n)}}let r=wI(t.sizeTree).reduce((t,{k:n,v:r})=>bI(t,Math.max(0,n+e),r),xI());return{...t,sizeTree:r,...nL(t.offsetTree,0,r,n)}})),_),{beforeUnshiftWith:x,data:m,defaultItemSize:u,firstItemIndex:s,fixedItemSize:l,fixedGroupSize:d,gap:h,groupIndices:c,heightEstimates:f,itemSize:p,listRefresh:b,shiftWith:o,shiftWithOffset:S,sizeRanges:n,sizes:_,statefulTotalCount:i,totalCount:r,trackItemSizes:y,unshiftWith:a}},kF(sI,RI),{singleton:!0});function sL(e){return e.reduce((e,t)=>(e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e),{groupIndices:[],totalCount:0})}var cL=QF(([{groupIndices:e,sizes:t,totalCount:n},{headerHeight:r,scrollTop:i}])=>{let a=XF(),o=XF(),s=ZF($(a,BF(sL)));return PF($(s,BF(e=>e.totalCount)),n),PF($(s,BF(e=>e.groupIndices)),e),PF($(tI(i,t,r),zF(([e,t])=>UI(t)),BF(([e,t,n])=>yI(t.groupOffsetTree,Math.max(e-n,0),`v`)[0]),RF(),BF(e=>[e])),o),{groupCounts:a,topItemsIndexes:o}},kF(oL,mI)),lL=QF(([{log:e}])=>{let t=JF(!1),n=ZF($(t,zF(e=>e),RF()));return AF(t,t=>{t&&NF(e)(`props updated`,{},iI.DEBUG)}),{didMount:n,propsReady:t}},kF(sI),{singleton:!0}),uL=typeof document<`u`&&`scrollBehavior`in document.documentElement.style;function dL(e){let t=typeof e==`number`?{index:e}:e;return t.align||=`start`,(!t.behavior||!uL)&&(t.behavior=`auto`),t.offset===void 0&&(t.offset=0),t}var fL=QF(([{gap:e,listRefresh:t,sizes:n,totalCount:r},{fixedFooterHeight:i,fixedHeaderHeight:a,footerHeight:o,headerHeight:s,scrollingInProgress:c,scrollTo:l,smoothScrollTargetReached:u,viewportHeight:d},{log:f}])=>{let p=XF(),m=XF(),h=JF(0),g=null,_=null,v=null;function y(){g!==null&&(g(),g=null),v!==null&&(v(),v=null),_&&=(clearTimeout(_),null),jF(c,!1)}return PF($(p,GF(n,d,r,h,s,o,f),GF(e,a,i),BF(([[e,n,r,i,a,o,s,l],d,f,h])=>{let b=dL(e),{align:x,behavior:S,offset:C}=b,w=i-1,T=ZI(b,n,w),E=YI(T,n.offsetTree,d)+o;x===`end`?(E+=f+yI(n.sizeTree,T)[1]-r+h,T===w&&(E+=s)):x===`center`?E+=(f+yI(n.sizeTree,T)[1]-r+h)/2:E-=a,C!==void 0&&C!==0&&(E+=C);let D=t=>{y(),t?(l(`retrying to scroll to`,{location:e},iI.DEBUG),jF(p,e)):(jF(m,!0),l(`list did not change, scroll successful`,{},iI.DEBUG))};if(y(),S===`smooth`){let e=!1;v=AF(t,t=>{e||=t}),g=FF(u,()=>{D(e)})}else g=FF($(t,pL(150)),D);return _=setTimeout(()=>{y()},1200),jF(c,!0),l(`scrolling from index to`,{behavior:S,index:T,top:E},iI.DEBUG),{behavior:S,top:E}})),l),{scrollTargetReached:m,scrollToIndex:p,topListHeight:h}},kF(oL,mI,sI),{singleton:!0});function pL(e){return t=>{let n=setTimeout(()=>{t(!1)},e);return e=>{e&&(t(!0),clearTimeout(n))}}}function mL(e,t){e===0?t():requestAnimationFrame(()=>{mL(e-1,t)})}function hL(e,t){let n=t-1;return typeof e==`number`?e:e.index===`LAST`?n:e.index}var gL=QF(([{defaultItemSize:e,listRefresh:t,sizes:n},{scrollTop:r},{scrollTargetReached:i,scrollToIndex:a},{didMount:o}])=>{let s=JF(!0),c=JF(0),l=JF(!0);return PF($(o,GF(c),zF(([e,t])=>t!==0),VF(!1)),s),PF($(o,GF(c),zF(([e,t])=>t!==0),VF(!1)),l),AF($(tI(t,o),GF(s,n,e,l),zF(([[,e],t,{sizeTree:n},r,i])=>e&&(!_I(n)||wF(r))&&!t&&!i),GF(c)),([,e])=>{FF(i,()=>{jF(l,!0)}),mL(4,()=>{FF(r,()=>{jF(s,!0)}),jF(a,e)})}),{initialItemFinalLocationReached:l,initialTopMostItemIndex:c,scrolledToInitialItem:s}},kF(oL,mI,fL,lL),{singleton:!0});function _L(e,t){return Math.abs(e-t)<1.01}var vL=`up`,yL=`down`,bL=`none`,xL={atBottom:!1,notAtBottomBecause:`NOT_SHOWING_LAST_ITEM`,state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},SL=0,CL=QF(([{footerHeight:e,headerHeight:t,scrollBy:n,scrollContainerState:r,scrollTop:i,viewportHeight:a}])=>{let o=JF(!1),s=JF(!0),c=XF(),l=XF(),u=JF(4),d=JF(SL),f=YF($(rI($(nI(i),UF(1),VF(!0)),$(nI(i),UF(1),VF(!1),IF(100))),RF()),!1),p=YF($(rI($(n,VF(!0)),$(n,VF(!1),IF(200))),RF()),!1);PF($(tI(nI(i),nI(d)),BF(([e,t])=>e<=t),RF()),s),PF($(s,WF(50)),l);let m=ZF($(tI(r,nI(a),nI(t),nI(e),nI(u)),HF((e,[{scrollHeight:t,scrollTop:n},r,i,a,o])=>{let s=n+r-t>-o,c={scrollHeight:t,scrollTop:n,viewportHeight:r};if(s){let t,r;return n>e.state.scrollTop?(t=`SCROLLED_DOWN`,r=e.state.scrollTop-n):(t=`SIZE_DECREASED`,r=e.state.scrollTop-n||e.scrollTopDelta),{atBottom:!0,atBottomBecause:t,scrollTopDelta:r,state:c}}let l;return l=c.scrollHeight>e.state.scrollHeight?`SIZE_INCREASED`:r<e.state.viewportHeight?`VIEWPORT_HEIGHT_DECREASING`:n<e.state.scrollTop?`SCROLLING_UPWARDS`:`NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM`,{atBottom:!1,notAtBottomBecause:l,state:c}},xL),RF((e,t)=>e!==void 0&&e.atBottom===t.atBottom))),h=YF($(r,HF((e,{scrollHeight:t,scrollTop:n,viewportHeight:r})=>{if(!_L(e.scrollHeight,t)){let i=t-(n+r)<1;return e.scrollTop!==n&&i?{changed:!0,jump:e.scrollTop-n,scrollHeight:t,scrollTop:n}:{changed:!0,jump:0,scrollHeight:t,scrollTop:n}}return{changed:!1,jump:0,scrollHeight:t,scrollTop:n}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),zF(e=>e.changed),BF(e=>e.jump)),0);PF($(m,BF(e=>e.atBottom)),o),PF($(o,WF(50)),c);let g=JF(yL);PF($(r,BF(({scrollTop:e})=>e),RF(),HF((e,t)=>NF(p)?{direction:e.direction,prevScrollTop:t}:{direction:t<e.prevScrollTop?vL:yL,prevScrollTop:t},{direction:yL,prevScrollTop:0}),BF(e=>e.direction)),g),PF($(r,WF(50),VF(bL)),g);let _=JF(0);return PF($(f,zF(e=>!e),VF(0)),_),PF($(i,WF(100),GF(f),zF(([e,t])=>t),HF(([e,t],[n])=>[t,n],[0,0]),BF(([e,t])=>t-e)),_),{atBottomState:m,atBottomStateChange:c,atBottomThreshold:u,atTopStateChange:l,atTopThreshold:d,isAtBottom:o,isAtTop:s,isScrolling:f,lastJumpDueToItemResize:h,scrollDirection:g,scrollVelocity:_}},kF(mI)),wL=`top`,TL=`bottom`,EL=`none`;function DL(e,t,n){return typeof e==`number`?n===vL&&t===wL||n===yL&&t===TL?e:0:n===vL?t===wL?e.main:e.reverse:t===TL?e.main:e.reverse}function OL(e,t){return typeof e==`number`?e:e[t]??0}var kL=QF(([{deviation:e,fixedHeaderHeight:t,headerHeight:n,scrollTop:r,viewportHeight:i}])=>{let a=XF(),o=JF(0),s=JF(0),c=JF(0);return{increaseViewportBy:s,listBoundary:a,overscan:c,topListHeight:o,visibleRange:YF($(tI(nI(r),nI(i),nI(n),nI(a,LI),nI(c),nI(o),nI(t),nI(e),nI(s)),BF(([e,t,n,[r,i],a,o,s,c,l])=>{let u=e-c,d=o+s,f=Math.max(n-u,0),p=EL,m=OL(l,wL),h=OL(l,TL);return r-=c,r+=n+s,i+=n+s,i-=c,r>e+d-m&&(p=vL),i<e-f+t+h&&(p=yL),p===EL?null:[Math.max(u-n-DL(a,wL,p)-m,0),u-f-s+t+DL(a,TL,p)+h]}),zF(e=>e!==null),RF(LI)),[0,0])}},kF(mI),{singleton:!0});function AL(e,t,n){if(UI(t)){let r=XI(e,t);return[{index:yI(t.groupOffsetTree,r)[0],offset:0,size:0},{data:n?.[0],index:r,offset:0,size:0}]}return[{data:n?.[0],index:e,offset:0,size:0}]}var jL={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function ML(e,t,n,r,i,a){let{lastIndex:o,lastOffset:s,lastSize:c}=i,l=0,u=0;if(e.length>0){l=e[0].offset;let t=e[e.length-1];u=t.offset+t.size}let d=n-o,f=s+d*c+(d-1)*r,p=l,m=f-u;return{bottom:u,firstItemIndex:a,items:PL(e,i,a),offsetBottom:m,offsetTop:l,top:p,topItems:PL(t,i,a),topListHeight:t.reduce((e,t)=>t.size+e,0),totalCount:n}}function NL(e,t,n,r,i,a){let o=0;if(n.groupIndices.length>0)for(let t of n.groupIndices){if(t-o>=e)break;o++}let s=e+o,c=hL(t,s);return ML(Array.from({length:s}).map((e,t)=>({data:a[t+c],index:t+c,offset:0,size:0})),[],s,i,n,r)}function PL(e,t,n){if(e.length===0)return[];if(!UI(t))return e.map(e=>({...e,index:e.index+n,originalIndex:e.index}));let r=e[0].index,i=e[e.length-1].index,a=[],o=SI(t.groupOffsetTree,r,i),s,c=0;for(let r of e){(!s||s.end<r.index)&&(s=o.shift(),c=t.groupIndices.indexOf(s.start));let e;e=r.index===s.start?{index:c,type:`group`}:{groupIndex:c,index:r.index-(c+1)+n},a.push({...e,data:r.data,offset:r.offset,originalIndex:r.index,size:r.size})}return a}function FL(e,t){return e===void 0?0:typeof e==`number`?e:e[t]??0}var IL=QF(([{data:e,firstItemIndex:t,gap:n,sizes:r,totalCount:i},a,{listBoundary:o,topListHeight:s,visibleRange:c},{initialTopMostItemIndex:l,scrolledToInitialItem:u},{topListHeight:d},f,{didMount:p},{recalcInProgress:m}])=>{let h=JF([]),g=JF(0),_=XF(),v=JF(0);PF(a.topItemsIndexes,h);let y=YF($(tI(p,m,nI(c,LI),nI(i),nI(r),nI(l),u,nI(h),nI(t),nI(n),nI(v),e),zF(([e,t,,n,,,,,,,,r])=>{let i=r!==void 0&&r.length!==n;return e&&!t&&!i}),BF(([,,[e,t],n,r,i,a,o,s,c,l,u])=>{let d=r,{offsetTree:f,sizeTree:p}=d,m=NF(g);if(n===0)return{...jL,totalCount:n};if(e===0&&t===0)return m===0?{...jL,totalCount:n}:NL(m,i,r,s,c,u||[]);if(_I(p))return m>0?null:ML(AL(hL(i,n),d,u),[],n,c,d,s);let h=[];if(o.length>0){let e=o[0],t=o[o.length-1],n=0;for(let r of SI(p,e,t)){let i=r.value,a=Math.max(r.start,e),o=Math.min(r.end,t);for(let e=a;e<=o;e++)h.push({data:u?.[e],index:e,offset:n,size:i}),n+=i}}if(!a)return ML([],h,n,c,d,s);let _=o.length>0?o[o.length-1]+1:0,v=QI(f,e,t,_);if(v.length===0)return null;let y=n-1,b=DF([],n=>{for(let r of v){let i=r.value,a=i.offset,o=r.start,s=i.size;if(i.offset<e){o+=Math.floor((e-i.offset+c)/(s+c));let t=o-r.start;a+=t*s+t*c}o<_&&(a+=(_-o)*s,o=_);let l=Math.min(r.end,y);for(let e=o;e<=l&&!(a>=t);e++)n.push({data:u?.[e],index:e,offset:a,size:s}),a+=s+c}}),x=FL(l,wL),S=FL(l,TL);if(b.length>0&&(x>0||S>0)){let e=b[0],t=b[b.length-1];if(x>0&&e.index>_){let t=Math.min(x,e.index-_),n=[],r=e.offset;for(let i=e.index-1;i>=e.index-t;i--){let t=SI(p,i,i)[0]?.value??e.size;r-=t+c,n.unshift({data:u?.[i],index:i,offset:r,size:t})}b.unshift(...n)}if(S>0&&t.index<y){let e=Math.min(S,y-t.index),n=t.offset+t.size+c;for(let r=t.index+1;r<=t.index+e;r++){let e=SI(p,r,r)[0]?.value??t.size;b.push({data:u?.[r],index:r,offset:n,size:e}),n+=e+c}}}return ML(b,h,n,c,d,s)}),zF(e=>e!==null),RF()),jL);PF($(e,zF(wF),BF(e=>e?.length)),i),PF($(y,BF(e=>e.topListHeight)),d),PF(d,s),PF($(y,BF(e=>[e.top,e.bottom])),o),PF($(y,BF(e=>e.items)),_);let b=ZF($(y,zF(({items:e})=>e.length>0),GF(i,e),zF(([{items:e},t])=>e[e.length-1].originalIndex===t-1),BF(([,e,t])=>[e-1,t]),RF(LI),BF(([e])=>e))),x=ZF($(y,WF(200),zF(({items:e,topItems:t})=>e.length>0&&e[0].originalIndex===t.length),BF(({items:e})=>e[0].index),RF()));return{endReached:b,initialItemCount:g,itemsRendered:_,listState:y,minOverscanItemCount:v,rangeChanged:ZF($(y,zF(({items:e})=>e.length>0),BF(({items:e})=>{let t=0,n=e.length-1;for(;e[t].type===`group`&&t<n;)t++;for(;e[n].type===`group`&&n>t;)n--;return{endIndex:e[n].index,startIndex:e[t].index}}),RF(II))),startReached:x,topItemsIndexes:h,...f}},kF(oL,cL,kL,gL,fL,CL,lL,RI),{singleton:!0}),LL=QF(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:n,headerHeight:r},{listState:i}])=>{let a=XF(),o=YF($(tI(n,e,r,t,i),BF(([e,t,n,r,i])=>e+t+n+r+i.offsetBottom+i.bottom)),0);return PF(nI(o),a),{totalListHeight:o,totalListHeightChanged:a}},kF(mI,IL),{singleton:!0}),RL=QF(([{viewportHeight:e},{totalListHeight:t}])=>{let n=JF(!1);return{alignToBottom:n,paddingTopAddition:YF($(tI(n,e,t),zF(([e])=>e),BF(([,e,t])=>Math.max(0,e-t)),WF(0),RF()),0)}},kF(mI,LL),{singleton:!0}),zL=QF(()=>({context:JF(null)})),BL=({itemBottom:e,itemTop:t,locationParams:{align:n,behavior:r,...i},viewportBottom:a,viewportTop:o})=>t<o?{...i,align:n??`start`,...r===void 0?{}:{behavior:r}}:e>a?{...i,align:n??`end`,...r===void 0?{}:{behavior:r}}:null,VL=QF(([{gap:e,sizes:t,totalCount:n},{fixedFooterHeight:r,fixedHeaderHeight:i,headerHeight:a,scrollingInProgress:o,scrollTop:s,viewportHeight:c},{scrollToIndex:l}])=>{let u=XF();return PF($(u,GF(t,c,n,a,i,r,s),GF(e),BF(([[e,t,n,r,i,a,s,c],l])=>{let{calculateViewLocation:u=BL,done:d,...f}=e,p=ZI(e,t,r-1),m=YI(p,t.offsetTree,l)+i+a,h=m+yI(t.sizeTree,p)[1],g=c+a,_=u({itemBottom:h,itemTop:m,locationParams:f,viewportBottom:c+n-s,viewportTop:g});return _===null?d?.():d&&FF($(o,zF(e=>!e),UF(NF(o)?1:2)),d),_}),zF(e=>e!==null)),l),{scrollIntoView:u}},kF(oL,mI,fL,IL,sI),{singleton:!0});function HL(e){return e===!1?!1:e===`smooth`?`smooth`:`auto`}var UL=(e,t)=>typeof e==`function`?HL(e(t)):t&&HL(e),WL=QF(([{listRefresh:e,totalCount:t,fixedItemSize:n,data:r},{atBottomState:i,isAtBottom:a},{scrollToIndex:o},{scrolledToInitialItem:s},{didMount:c,propsReady:l},{log:u},{scrollingInProgress:d},{context:f},{scrollIntoView:p}])=>{let m=JF(!1),h=XF(),g=null;function _(e){jF(o,{align:`end`,behavior:e,index:`LAST`})}AF($(tI($(nI(t),UF(1)),c),GF(nI(m),a,s,d),BF(([[e,t],n,r,i,a])=>{let o=t&&i,s=`auto`;return o&&(s=UL(n,r||a),o&&=s!==!1),{followOutputBehavior:s,shouldFollow:o,totalCount:e}}),zF(({shouldFollow:e})=>e)),({followOutputBehavior:t,totalCount:r})=>{g!==null&&(g(),g=null),NF(n)===void 0?g=FF(e,()=>{NF(u)(`following output to `,{totalCount:r},iI.DEBUG),_(t),g=null}):requestAnimationFrame(()=>{NF(u)(`following output to `,{totalCount:r},iI.DEBUG),_(t)})});function v(e){let t=FF(i,t=>{e&&!t.atBottom&&t.notAtBottomBecause===`SIZE_INCREASED`&&g===null&&(NF(u)(`scrolling to bottom due to increased size`,{},iI.DEBUG),_(`auto`))});setTimeout(t,100)}AF($(tI(nI(m),t,l),zF(([e,,t])=>e!==!1&&t),HF(({value:e},[,t])=>({refreshed:e===t,value:t}),{refreshed:!1,value:0}),zF(({refreshed:e})=>e),GF(m,t)),([,e])=>{NF(s)&&v(e!==!1)}),AF(h,()=>{v(NF(m)!==!1)}),AF(tI(nI(m),i),([e,t])=>{e!==!1&&!t.atBottom&&t.notAtBottomBecause===`VIEWPORT_HEIGHT_DECREASING`&&_(`auto`)});let y=JF(null),b=XF();return PF(rI($(nI(r),BF(e=>e?.length??0)),$(nI(t))),b),AF($(tI($(b,UF(1)),c),GF(nI(y),s,d,f),BF(([[e,t],n,r,i,a])=>t&&r&&n?.({context:a,totalCount:e,scrollingInProgress:i})),zF(e=>!!e),WF(0)),t=>{g!==null&&(g(),g=null),NF(n)===void 0?g=FF(e,()=>{NF(u)(`scrolling into view`,{}),jF(p,t),g=null}):requestAnimationFrame(()=>{NF(u)(`scrolling into view`,{}),jF(p,t)})}),{autoscrollToBottom:h,followOutput:m,scrollIntoViewOnChange:y}},kF(oL,CL,fL,gL,lL,sI,mI,zL,VL)),GL=QF(([{data:e,firstItemIndex:t,gap:n,sizes:r},{initialTopMostItemIndex:i},{initialItemCount:a,listState:o},{didMount:s}])=>(PF($(s,GF(a),zF(([,e])=>e!==0),GF(i,r,t,n,e),BF(([[,e],t,n,r,i,a=[]])=>NL(e,t,n,r,i,a))),o),{}),kF(oL,gL,IL,lL),{singleton:!0}),KL=QF(([{didMount:e},{scrollTo:t},{listState:n}])=>{let r=JF(0);return AF($(e,GF(r),zF(([,e])=>e!==0),BF(([,e])=>({top:e}))),e=>{FF($(n,UF(1),zF(e=>e.items.length>1)),()=>{requestAnimationFrame(()=>{jF(t,e)})})}),{initialScrollTop:r}},kF(lL,mI,IL),{singleton:!0}),qL=QF(([{scrollVelocity:e}])=>{let t=JF(!1),n=XF(),r=JF(!1);return PF($(e,GF(r,t,n),zF(([e,t])=>t!==!1&&t!==void 0),BF(([e,t,n,r])=>{let{enter:i,exit:a}=t;if(n){if(a(e,r))return!1}else if(i(e,r))return!0;return n}),RF()),t),AF($(tI(t,e,n),GF(r)),([[e,t,n],r])=>{e&&r!==!1&&r!==void 0&&r.change&&r.change(t,n)}),{isSeeking:t,scrollSeekConfiguration:r,scrollSeekRangeChanged:n,scrollVelocity:e}},kF(CL),{singleton:!0}),JL=QF(([{scrollContainerState:e,scrollTo:t}])=>{let n=XF(),r=XF(),i=XF(),a=JF(!1),o=JF(void 0);return PF($(tI(n,r),BF(([{scrollTop:e,viewportHeight:t},{offsetTop:n,listHeight:r}])=>({scrollHeight:r,scrollTop:Math.max(0,e-n),viewportHeight:t}))),e),PF($(t,GF(r),BF(([e,{offsetTop:t}])=>({...e,top:e.top+t}))),i),{customScrollParent:o,useWindowScroll:a,windowScrollContainerState:n,windowScrollTo:i,windowViewportRect:r}},kF(mI)),YL=QF(([{sizeRanges:e,sizes:t},{headerHeight:n,scrollTop:r},{initialTopMostItemIndex:i},{didMount:a},{useWindowScroll:o,windowScrollContainerState:s,windowViewportRect:c}])=>{let l=XF(),u=JF(void 0),d=JF(null),f=JF(null);return PF(s,d),PF(c,f),AF($(l,GF(t,r,o,d,f,n)),([e,t,n,r,i,a,o])=>{let s=eL(t.sizeTree);r&&i!==null&&a!==null&&(n=i.scrollTop-a.offsetTop),n-=o,e({ranges:s,scrollTop:n})}),PF($(u,zF(wF),BF(XL)),i),PF($(a,GF(u),zF(([,e])=>e!==void 0),RF(),BF(([,e])=>e.ranges)),e),{getState:l,restoreStateFrom:u}},kF(oL,mI,gL,lL,JL));function XL(e){return{align:`start`,index:0,offset:e.scrollTop}}var ZL=QF(([{topItemsIndexes:e}])=>{let t=JF(0);return PF($(t,zF(e=>e>=0),BF(e=>Array.from({length:e}).map((e,t)=>t))),e),{topItemCount:t}},kF(IL));function QL(e){let t=!1,n;return(()=>(t||(t=!0,n=e()),n))}var $L=QL(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),eR=QF(([{data:e,defaultItemSize:t,firstItemIndex:n,fixedItemSize:r,fixedGroupSize:i,gap:a,groupIndices:o,heightEstimates:s,itemSize:c,sizeRanges:l,sizes:u,statefulTotalCount:d,totalCount:f,trackItemSizes:p},{initialItemFinalLocationReached:m,initialTopMostItemIndex:h,scrolledToInitialItem:g},_,v,y,b,{scrollToIndex:x},S,{topItemCount:C},{groupCounts:w},T])=>{let{listState:E,minOverscanItemCount:D,topItemsIndexes:O,rangeChanged:k,...A}=b;return PF(k,T.scrollSeekRangeChanged),PF($(T.windowViewportRect,BF(e=>e.visibleHeight)),_.viewportHeight),{data:e,defaultItemHeight:t,firstItemIndex:n,fixedItemHeight:r,fixedGroupHeight:i,gap:a,groupCounts:w,heightEstimates:s,initialItemFinalLocationReached:m,initialTopMostItemIndex:h,scrolledToInitialItem:g,sizeRanges:l,topItemCount:C,topItemsIndexes:O,totalCount:f,...y,groupIndices:o,itemSize:c,listState:E,minOverscanItemCount:D,scrollToIndex:x,statefulTotalCount:d,trackItemSizes:p,rangeChanged:k,...A,...T,..._,sizes:u,...v}},kF(oL,gL,mI,YL,WL,IL,fL,QF(([{deviation:e,scrollBy:t,scrollingInProgress:n,scrollTop:r},{isAtBottom:i,isScrolling:a,lastJumpDueToItemResize:o,scrollDirection:s},{listState:c},{beforeUnshiftWith:l,gap:u,shiftWithOffset:d,sizes:f},{log:p},{recalcInProgress:m}])=>{let h=ZF($(c,GF(o),HF(([,e,t,n],[{bottom:r,items:i,offsetBottom:a,totalCount:o},s])=>{let c=r+a,l=0;return t===o&&e.length>0&&i.length>0&&(i[0].originalIndex===0&&e[0].originalIndex===0||(l=c-n,l!==0&&(l+=s))),[l,i,o,c]},[0,[],0,0]),zF(([e])=>e!==0),GF(r,s,n,i,p,m),zF(([,e,t,n,,,r])=>!r&&!n&&e!==0&&t===vL),BF(([[e],,,,,t])=>(t(`Upward scrolling compensation`,{amount:e},iI.DEBUG),e))));function g(n){n>0?(jF(t,{behavior:`auto`,top:-n}),jF(e,0)):(jF(e,0),jF(t,{behavior:`auto`,top:-n}))}return AF($(h,GF(e,a)),([t,n,r])=>{r&&$L()?jF(e,n-t):g(-t)}),AF($(tI(YF(a,!1),e,m),zF(([e,t,n])=>!e&&!n&&t!==0),BF(([e,t])=>t),WF(1)),g),PF($(d,BF(e=>({top:-e}))),t),AF($(l,GF(f,u),BF(([e,{groupIndices:t,lastSize:n,sizeTree:r},i])=>{function a(e){return e*(n+i)}if(t.length===0)return a(e);let o=0,s=vI(r,0),c=0,l=0;for(;c<e;){c++,o+=s;let n=t.length===l+1?1/0:t[l+1]-t[l]-1;c+n>e&&(o-=s,n=e-c+1),c+=n,o+=a(n),l++}return o})),n=>{jF(e,n),requestAnimationFrame(()=>{jF(t,{top:n}),requestAnimationFrame(()=>{jF(e,0),jF(m,!1)})})}),{deviation:e}},kF(mI,CL,IL,oL,sI,RI)),ZL,cL,QF(([e,t,n,r,i,a,o,s,c,l,u])=>({...e,...t,...n,...r,...i,...a,...o,...s,...c,...l,...u}),kF(kL,GL,lL,qL,LL,KL,RL,JL,VL,sI,zL))));function tR(e,t){let n={},r={},i=0,a=e.length;for(;i<a;)r[e[i]]=1,i+=1;for(let e in t)Object.hasOwn(r,e)||(n[e]=t[e]);return n}var nR=typeof document<`u`?H.useLayoutEffect:H.useEffect;function rR(e,t,n){let r=Object.keys(t.required||{}),i=Object.keys(t.optional||{}),a=Object.keys(t.methods||{}),o=Object.keys(t.events||{}),s=H.createContext({});function c(e,n){e.propsReady!==void 0&&jF(e.propsReady,!1);for(let i of r){let r=e[t.required[i]];jF(r,n[i])}for(let r of i)if(r in n){let i=e[t.optional[r]];jF(i,n[r])}e.propsReady!==void 0&&jF(e.propsReady,!0)}function l(e){return a.reduce((n,r)=>(n[r]=n=>{let i=e[t.methods[r]];jF(i,n)},n),{})}function u(e){return o.reduce((n,r)=>(n[r]=qF(e[t.events[r]]),n),{})}return{Component:H.forwardRef(function(t,a){let{children:d,...f}=t,[p]=H.useState(()=>DF(eI(e),e=>{c(e,f)})),[m]=H.useState(SF(u,p));nR(()=>{for(let e of o)e in f&&AF(m[e],f[e]);return()=>{Object.values(m).map(MF)}},[f,m,p]),nR(()=>{c(p,f)}),H.useImperativeHandle(a,yF(l(p)));let h=n;return(0,U.jsx)(s.Provider,{value:p,children:n===void 0?d:(0,U.jsx)(h,{...tR([...r,...i,...o],f),children:d})})}),useEmitter:(e,t)=>{let n=H.useContext(s)[e];nR(()=>AF(n,t),[t,n])},useEmitterValue:e=>{let t=H.useContext(s)[e],[n,r]=H.useState(SF(NF,t));return nR(()=>AF(t,e=>{e!==n&&r(yF(e))}),[t,n]),n},usePublisher:e=>{let t=H.useContext(s);return H.useCallback(n=>{jF(t[e],n)},[t,e])}}}var iR=H.createContext(void 0),aR=H.createContext(void 0),oR=`-webkit-sticky`,sR=`sticky`,cR=QL(()=>{if(typeof document>`u`)return sR;let e=document.createElement(`div`);return e.style.position=oR,e.style.position===oR?oR:sR}),lR=typeof document<`u`?H.useLayoutEffect:H.useEffect;function uR(e){return`self`in e}function dR(e){return`body`in e}function fR(e,t,n,r=EF,i,a){let o=H.useRef(null),s=H.useRef(null),c=H.useRef(null),l=H.useCallback(n=>{let r,i,o,l=n.target;if(dR(l)||uR(l)){let e=uR(l)?l:l.defaultView;o=a===!0?e.scrollX:e.scrollY,r=a===!0?e.document.documentElement.scrollWidth:e.document.documentElement.scrollHeight,i=a===!0?e.innerWidth:e.innerHeight}else o=a===!0?l.scrollLeft:l.scrollTop,r=a===!0?l.scrollWidth:l.scrollHeight,i=a===!0?l.offsetWidth:l.offsetHeight;let u=()=>{e({scrollHeight:r,scrollTop:Math.max(o,0),viewportHeight:i})};n.suppressFlushSync===!0?u():ln.flushSync(u),s.current!==null&&(o===s.current||o<=0||o===r-i)&&(s.current=null,t(!0),c.current&&=(clearTimeout(c.current),null))},[e,t,a]);H.useEffect(()=>{let e=i||o.current;return r(i||o.current),l({suppressFlushSync:!0,target:e}),e.addEventListener(`scroll`,l,{passive:!0}),()=>{r(null),e.removeEventListener(`scroll`,l)}},[o,l,n,r,i]);function u(n){let r=o.current;if(!r||(a===!0?`offsetWidth`in r&&r.offsetWidth===0:`offsetHeight`in r&&r.offsetHeight===0))return;let i=n.behavior===`smooth`,l,u,d;uR(r)?(u=Math.max(HI(r.document.documentElement,a===!0?`width`:`height`),a===!0?r.document.documentElement.scrollWidth:r.document.documentElement.scrollHeight),l=a===!0?r.innerWidth:r.innerHeight,d=a===!0?window.scrollX:window.scrollY):(u=r[a===!0?`scrollWidth`:`scrollHeight`],l=HI(r,a===!0?`width`:`height`),d=r[a===!0?`scrollLeft`:`scrollTop`]);let f=u-l;if(n.top=Math.ceil(Math.max(Math.min(f,n.top),0)),_L(l,u)||n.top===d){e({scrollHeight:u,scrollTop:d,viewportHeight:l}),i&&t(!0);return}i?(s.current=n.top,c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{c.current=null,s.current=null,t(!0)},1e3)):s.current=null,a===!0&&(n={...n.behavior===void 0?{}:{behavior:n.behavior},left:n.top}),r.scrollTo(n)}function d(e){a===!0&&(e={...e.behavior===void 0?{}:{behavior:e.behavior},...e.top===void 0?{}:{left:e.top}}),o.current.scrollBy(e)}return{scrollByCallback:d,scrollerRef:o,scrollToCallback:u}}function pR(e){return e}var mR=QF(([e,t])=>({...e,...t}),kF(eR,QF(()=>{let e=JF(e=>`Item ${e}`),t=JF(e=>`Group ${e}`),n=JF({}),r=JF(pR),i=JF(`div`),a=JF(EF),o=(e,t=null)=>YF($(n,BF(t=>t[e]),RF()),t);return{components:n,computeItemKey:r,EmptyPlaceholder:o(`EmptyPlaceholder`),FooterComponent:o(`Footer`),GroupComponent:o(`Group`,`div`),groupContent:t,HeaderComponent:o(`Header`),HeaderFooterTag:i,ItemComponent:o(`Item`,`div`),itemContent:e,ListComponent:o(`List`,`div`),ScrollerComponent:o(`Scroller`,`div`),scrollerRef:a,ScrollSeekPlaceholder:o(`ScrollSeekPlaceholder`),TopItemListComponent:o(`TopItemList`)}}))),hR=({height:e})=>(0,U.jsx)(`div`,{style:{height:e}}),gR={overflowAnchor:`none`,position:cR(),zIndex:1},_R={overflowAnchor:`none`},vR={..._R,display:`inline-block`,height:`100%`},yR=H.memo(function({showTopList:e=!1}){let t=FR(`listState`),n=IR(`sizeRanges`),r=FR(`useWindowScroll`),i=FR(`customScrollParent`),a=IR(`windowScrollContainerState`),o=IR(`scrollContainerState`),s=i||r?a:o,c=FR(`itemContent`),l=FR(`context`),u=FR(`groupContent`),d=FR(`trackItemSizes`),f=FR(`itemSize`),p=FR(`log`),m=IR(`gap`),h=FR(`horizontalDirection`),{callbackRef:g}=uI(n,f,d,e?EF:s,p,m,i,h,FR(`skipAnimationFrameInResizeObserver`)),[_,v]=H.useState(0);PR(`deviation`,e=>{_!==e&&v(e)});let y=FR(`EmptyPlaceholder`),b=FR(`ScrollSeekPlaceholder`)??hR,x=FR(`ListComponent`),S=FR(`ItemComponent`),C=FR(`GroupComponent`),w=FR(`computeItemKey`),T=FR(`isSeeking`),E=FR(`groupIndices`).length>0,D=FR(`alignToBottom`),O=FR(`initialItemFinalLocationReached`),k=e?{}:{boxSizing:`border-box`,...h?{display:`inline-block`,height:`100%`,marginLeft:_===0?D?`auto`:0:_,paddingLeft:t.offsetTop,paddingRight:t.offsetBottom,whiteSpace:`nowrap`}:{marginTop:_===0?D?`auto`:0:_,paddingBottom:t.offsetBottom,paddingTop:t.offsetTop},...O?{}:{visibility:`hidden`}};return!e&&t.totalCount===0&&y!=null?(0,U.jsx)(y,{...wR(y,l)}):(0,U.jsx)(x,{...wR(x,l),"data-testid":e?`virtuoso-top-item-list`:`virtuoso-item-list`,ref:g,style:k,children:(e?t.topItems:t.items).map(e=>{let n=e.originalIndex,r=w(n+t.firstItemIndex,e.data,l);return T?(0,H.createElement)(b,{...wR(b,l),height:e.size,index:e.index,key:r,type:e.type||`item`,...e.type===`group`?{}:{groupIndex:e.groupIndex}}):e.type===`group`?(0,H.createElement)(C,{...wR(C,l),"data-index":n,"data-item-index":e.index,"data-known-size":e.size,key:r,style:gR},u(e.index,l)):(0,H.createElement)(S,{...wR(S,l),...TR(S,e.data),"data-index":n,"data-item-group-index":e.groupIndex,"data-item-index":e.index,"data-known-size":e.size,key:r,style:h?vR:_R},E?c(e.index,e.groupIndex,e.data,l):c(e.index,e.data,l))})})}),bR={height:`100%`,outline:`none`,overflowY:`auto`,position:`relative`,WebkitOverflowScrolling:`touch`},xR={outline:`none`,overflowX:`auto`,position:`relative`},SR=e=>({height:`100%`,position:`absolute`,top:0,width:`100%`,...e?{display:`flex`,flexDirection:`column`}:void 0}),CR={position:cR(),top:0,width:`100%`,zIndex:1};function wR(e,t){if(typeof e!=`string`)return{context:t}}function TR(e,t){return{item:typeof e==`string`?void 0:t}}var ER=H.memo(function(){let e=FR(`HeaderComponent`),t=IR(`headerHeight`),n=FR(`HeaderFooterTag`),r=cI(H.useMemo(()=>e=>{t(HI(e,`height`))},[t]),!0,FR(`skipAnimationFrameInResizeObserver`)),i=FR(`context`);return e==null?null:(0,U.jsx)(n,{ref:r,children:(0,U.jsx)(e,{...wR(e,i)})})}),DR=H.memo(function(){let e=FR(`FooterComponent`),t=IR(`footerHeight`),n=FR(`HeaderFooterTag`),r=cI(H.useMemo(()=>e=>{t(HI(e,`height`))},[t]),!0,FR(`skipAnimationFrameInResizeObserver`)),i=FR(`context`);return e==null?null:(0,U.jsx)(n,{ref:r,children:(0,U.jsx)(e,{...wR(e,i)})})});function OR({useEmitter:e,useEmitterValue:t,usePublisher:n}){return H.memo(function({children:r,style:i,context:a,...o}){let s=n(`scrollContainerState`),c=t(`ScrollerComponent`),l=n(`smoothScrollTargetReached`),u=t(`scrollerRef`),d=t(`horizontalDirection`)||!1,{scrollByCallback:f,scrollerRef:p,scrollToCallback:m}=fR(s,l,c,u,void 0,d);return e(`scrollTo`,m),e(`scrollBy`,f),(0,U.jsx)(c,{"data-testid":`virtuoso-scroller`,"data-virtuoso-scroller":!0,ref:p,style:{...d?xR:bR,...i},tabIndex:0,...o,...wR(c,a),children:r})})}function kR({useEmitter:e,useEmitterValue:t,usePublisher:n}){return H.memo(function({children:r,style:i,context:a,...o}){let s=n(`windowScrollContainerState`),c=t(`ScrollerComponent`),l=n(`smoothScrollTargetReached`),u=t(`totalListHeight`),d=t(`deviation`),f=t(`customScrollParent`),p=H.useRef(null),{scrollByCallback:m,scrollerRef:h,scrollToCallback:g}=fR(s,l,c,t(`scrollerRef`),f);return lR(()=>(h.current=f||p.current?.ownerDocument.defaultView,()=>{h.current=null}),[h,f]),e(`windowScrollTo`,g),e(`scrollBy`,m),(0,U.jsx)(c,{ref:p,"data-virtuoso-scroller":!0,style:{position:`relative`,...i,...u===0?void 0:{height:u+d}},...o,...wR(c,a),children:r})})}var AR=({children:e})=>{let t=H.useContext(iR),n=IR(`viewportHeight`),r=IR(`fixedItemHeight`),i=FR(`alignToBottom`),a=FR(`horizontalDirection`),o=cI(H.useMemo(()=>xF(n,e=>HI(e,a?`width`:`height`)),[n,a]),!0,FR(`skipAnimationFrameInResizeObserver`));return H.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),(0,U.jsx)(`div`,{"data-viewport-type":`element`,ref:o,style:SR(i),children:e})},jR=({children:e})=>{let t=H.useContext(iR),n=IR(`windowViewportRect`),r=IR(`fixedItemHeight`),i=pI(n,FR(`customScrollParent`),FR(`skipAnimationFrameInResizeObserver`)),a=FR(`alignToBottom`);return H.useEffect(()=>{t&&(r(t.itemHeight),n({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),(0,U.jsx)(`div`,{"data-viewport-type":`window`,ref:i,style:SR(a),children:e})},MR=({children:e})=>{let t=FR(`TopItemListComponent`)??`div`,n=FR(`headerHeight`);return(0,U.jsx)(t,{style:{...CR,marginTop:`${n}px`},...wR(t,FR(`context`)),children:e})},{Component:NR,useEmitter:PR,useEmitterValue:FR,usePublisher:IR}=rR(mR,{optional:{restoreStateFrom:`restoreStateFrom`,context:`context`,followOutput:`followOutput`,scrollIntoViewOnChange:`scrollIntoViewOnChange`,itemContent:`itemContent`,groupContent:`groupContent`,overscan:`overscan`,increaseViewportBy:`increaseViewportBy`,minOverscanItemCount:`minOverscanItemCount`,totalCount:`totalCount`,groupCounts:`groupCounts`,topItemCount:`topItemCount`,firstItemIndex:`firstItemIndex`,initialTopMostItemIndex:`initialTopMostItemIndex`,components:`components`,atBottomThreshold:`atBottomThreshold`,atTopThreshold:`atTopThreshold`,computeItemKey:`computeItemKey`,defaultItemHeight:`defaultItemHeight`,fixedGroupHeight:`fixedGroupHeight`,fixedItemHeight:`fixedItemHeight`,heightEstimates:`heightEstimates`,itemSize:`itemSize`,scrollSeekConfiguration:`scrollSeekConfiguration`,headerFooterTag:`HeaderFooterTag`,data:`data`,initialItemCount:`initialItemCount`,initialScrollTop:`initialScrollTop`,alignToBottom:`alignToBottom`,useWindowScroll:`useWindowScroll`,customScrollParent:`customScrollParent`,scrollerRef:`scrollerRef`,logLevel:`logLevel`,horizontalDirection:`horizontalDirection`,skipAnimationFrameInResizeObserver:`skipAnimationFrameInResizeObserver`},methods:{scrollToIndex:`scrollToIndex`,scrollIntoView:`scrollIntoView`,scrollTo:`scrollTo`,scrollBy:`scrollBy`,autoscrollToBottom:`autoscrollToBottom`,getState:`getState`},events:{isScrolling:`isScrolling`,endReached:`endReached`,startReached:`startReached`,rangeChanged:`rangeChanged`,atBottomStateChange:`atBottomStateChange`,atTopStateChange:`atTopStateChange`,totalListHeightChanged:`totalListHeightChanged`,itemsRendered:`itemsRendered`,groupIndices:`groupIndices`}},H.memo(function(e){let t=FR(`useWindowScroll`),n=FR(`topItemsIndexes`).length>0,r=FR(`customScrollParent`),i=FR(`context`);return(0,U.jsxs)(r||t?RR:LR,{...e,context:i,children:[n&&(0,U.jsx)(MR,{children:(0,U.jsx)(yR,{showTopList:!0})}),(0,U.jsxs)(r||t?jR:AR,{children:[(0,U.jsx)(ER,{}),(0,U.jsx)(yR,{}),(0,U.jsx)(DR,{})]})]})})),LR=OR({useEmitter:PR,useEmitterValue:FR,usePublisher:IR}),RR=kR({useEmitter:PR,useEmitterValue:FR,usePublisher:IR}),zR=NR,BR=QF(([e,t])=>({...e,...t}),kF(eR,QF(()=>{let e=JF(e=>(0,U.jsxs)(`td`,{children:[`Item $`,e]})),t=JF(null),n=JF(e=>(0,U.jsxs)(`td`,{colSpan:1e3,children:[`Group `,e]})),r=JF(null),i=JF(null),a=JF({}),o=JF(pR),s=JF(EF),c=(e,t=null)=>YF($(a,BF(t=>t[e]),RF()),t);return{components:a,computeItemKey:o,context:t,EmptyPlaceholder:c(`EmptyPlaceholder`),FillerRow:c(`FillerRow`),fixedFooterContent:i,fixedHeaderContent:r,itemContent:e,groupContent:n,ScrollerComponent:c(`Scroller`,`div`),scrollerRef:s,ScrollSeekPlaceholder:c(`ScrollSeekPlaceholder`),TableBodyComponent:c(`TableBody`,`tbody`),TableComponent:c(`Table`,`table`),TableFooterComponent:c(`TableFoot`,`tfoot`),TableHeadComponent:c(`TableHead`,`thead`),TableRowComponent:c(`TableRow`,`tr`),GroupComponent:c(`Group`,`tr`)}}))),VR=({height:e})=>(0,U.jsx)(`tr`,{children:(0,U.jsx)(`td`,{style:{height:e}})}),HR=({height:e})=>(0,U.jsx)(`tr`,{children:(0,U.jsx)(`td`,{style:{border:0,height:e,padding:0}})}),UR={overflowAnchor:`none`},WR={position:cR(),zIndex:2,overflowAnchor:`none`},GR=H.memo(function({showTopList:e=!1}){let t=ZR(`listState`),n=ZR(`computeItemKey`),r=ZR(`firstItemIndex`),i=ZR(`context`),a=ZR(`isSeeking`),o=ZR(`fixedHeaderHeight`),s=ZR(`groupIndices`).length>0,c=ZR(`itemContent`),l=ZR(`groupContent`),u=ZR(`ScrollSeekPlaceholder`)??VR,d=ZR(`GroupComponent`),f=ZR(`TableRowComponent`),p=(e?t.topItems:[]).reduce((e,t,n)=>(n===0?e.push(t.size):e.push(e[n-1]+t.size),e),[]);return(e?t.topItems:t.items).map(t=>{let m=t.originalIndex,h=n(m+r,t.data,i),g=e?m===0?0:p[m-1]:0;return a?(0,H.createElement)(u,{...wR(u,i),height:t.size,index:t.index,key:h,type:t.type||`item`}):t.type===`group`?(0,H.createElement)(d,{...wR(d,i),"data-index":m,"data-item-index":t.index,"data-known-size":t.size,key:h,style:{...WR,top:o}},l(t.index,i)):(0,H.createElement)(f,{...wR(f,i),...TR(f,t.data),"data-index":m,"data-item-index":t.index,"data-known-size":t.size,"data-item-group-index":t.groupIndex,key:h,style:e?{...WR,top:o+g}:UR},s?c(t.index,t.groupIndex,t.data,i):c(t.index,t.data,i))})}),KR=H.memo(function(){let e=ZR(`listState`),t=ZR(`topItemsIndexes`).length>0,n=QR(`sizeRanges`),r=ZR(`useWindowScroll`),i=ZR(`customScrollParent`),a=QR(`windowScrollContainerState`),o=QR(`scrollContainerState`),s=i||r?a:o,c=ZR(`trackItemSizes`),{callbackRef:l,ref:u}=uI(n,ZR(`itemSize`),c,s,ZR(`log`),void 0,i,!1,ZR(`skipAnimationFrameInResizeObserver`)),[d,f]=H.useState(0);XR(`deviation`,e=>{d!==e&&(u.current.style.marginTop=`${e}px`,f(e))});let p=ZR(`EmptyPlaceholder`),m=ZR(`FillerRow`)??HR,h=ZR(`TableBodyComponent`),g=ZR(`paddingTopAddition`),_=ZR(`statefulTotalCount`),v=ZR(`context`);if(_===0&&p!=null)return(0,U.jsx)(p,{...wR(p,v)});let y=(t?e.topItems:[]).reduce((e,t)=>e+t.size,0),b=e.offsetTop+g+d-y,x=e.offsetBottom,S=b>0?(0,U.jsx)(m,{context:v,height:b},`padding-top`):null,C=x>0?(0,U.jsx)(m,{context:v,height:x},`padding-bottom`):null;return(0,U.jsxs)(h,{"data-testid":`virtuoso-item-list`,ref:l,...wR(h,v),children:[S,t&&(0,U.jsx)(GR,{showTopList:!0}),(0,U.jsx)(GR,{}),C]})}),qR=({children:e})=>{let t=H.useContext(iR),n=QR(`viewportHeight`),r=QR(`fixedItemHeight`),i=cI(H.useMemo(()=>xF(n,e=>HI(e,`height`)),[n]),!0,ZR(`skipAnimationFrameInResizeObserver`));return H.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),(0,U.jsx)(`div`,{"data-viewport-type":`element`,ref:i,style:SR(!1),children:e})},JR=({children:e})=>{let t=H.useContext(iR),n=QR(`windowViewportRect`),r=QR(`fixedItemHeight`),i=pI(n,ZR(`customScrollParent`),ZR(`skipAnimationFrameInResizeObserver`));return H.useEffect(()=>{t&&(r(t.itemHeight),n({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),(0,U.jsx)(`div`,{"data-viewport-type":`window`,ref:i,style:SR(!1),children:e})},{Component:YR,useEmitter:XR,useEmitterValue:ZR,usePublisher:QR}=rR(BR,{optional:{restoreStateFrom:`restoreStateFrom`,context:`context`,followOutput:`followOutput`,firstItemIndex:`firstItemIndex`,itemContent:`itemContent`,groupContent:`groupContent`,fixedHeaderContent:`fixedHeaderContent`,fixedFooterContent:`fixedFooterContent`,overscan:`overscan`,increaseViewportBy:`increaseViewportBy`,minOverscanItemCount:`minOverscanItemCount`,totalCount:`totalCount`,topItemCount:`topItemCount`,initialTopMostItemIndex:`initialTopMostItemIndex`,components:`components`,groupCounts:`groupCounts`,atBottomThreshold:`atBottomThreshold`,atTopThreshold:`atTopThreshold`,computeItemKey:`computeItemKey`,defaultItemHeight:`defaultItemHeight`,fixedGroupHeight:`fixedGroupHeight`,fixedItemHeight:`fixedItemHeight`,itemSize:`itemSize`,scrollSeekConfiguration:`scrollSeekConfiguration`,data:`data`,initialItemCount:`initialItemCount`,initialScrollTop:`initialScrollTop`,alignToBottom:`alignToBottom`,useWindowScroll:`useWindowScroll`,customScrollParent:`customScrollParent`,scrollerRef:`scrollerRef`,logLevel:`logLevel`},methods:{scrollToIndex:`scrollToIndex`,scrollIntoView:`scrollIntoView`,scrollTo:`scrollTo`,scrollBy:`scrollBy`,getState:`getState`},events:{isScrolling:`isScrolling`,endReached:`endReached`,startReached:`startReached`,rangeChanged:`rangeChanged`,atBottomStateChange:`atBottomStateChange`,atTopStateChange:`atTopStateChange`,totalListHeightChanged:`totalListHeightChanged`,itemsRendered:`itemsRendered`,groupIndices:`groupIndices`}},H.memo(function(e){let t=ZR(`useWindowScroll`),n=ZR(`customScrollParent`),r=QR(`fixedHeaderHeight`),i=QR(`fixedFooterHeight`),a=ZR(`fixedHeaderContent`),o=ZR(`fixedFooterContent`),s=ZR(`context`),c=cI(H.useMemo(()=>xF(r,e=>HI(e,`height`)),[r]),!0,ZR(`skipAnimationFrameInResizeObserver`)),l=cI(H.useMemo(()=>xF(i,e=>HI(e,`height`)),[i]),!0,ZR(`skipAnimationFrameInResizeObserver`)),u=n||t?ez:$R,d=n||t?JR:qR,f=ZR(`TableComponent`),p=ZR(`TableHeadComponent`),m=ZR(`TableFooterComponent`),h=a?(0,U.jsx)(p,{ref:c,style:{position:`sticky`,top:0,zIndex:2},...wR(p,s),children:a()},`TableHead`):null,g=o?(0,U.jsx)(m,{ref:l,style:{bottom:0,position:`sticky`,zIndex:1},...wR(m,s),children:o()},`TableFoot`):null;return(0,U.jsx)(u,{...e,...wR(u,s),children:(0,U.jsx)(d,{children:(0,U.jsxs)(f,{style:{borderSpacing:0,overflowAnchor:`none`},...wR(f,s),children:[h,(0,U.jsx)(KR,{},`TableBody`),g]})})})})),$R=OR({useEmitter:XR,useEmitterValue:ZR,usePublisher:QR}),ez=kR({useEmitter:XR,useEmitterValue:ZR,usePublisher:QR}),tz={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},nz={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:rz,floor:iz,max:az,min:oz,round:sz}=Math;function cz(e,t,n){return Array.from({length:t-e+1}).map((t,r)=>({data:n===null?null:n[r+e],index:r+e}))}function lz(e){return{...nz,items:e}}function uz(e,t){return e!==void 0&&e.width===t.width&&e.height===t.height}function dz(e,t){return e!==void 0&&e.column===t.column&&e.row===t.row}var fz=QF(([{increaseViewportBy:e,listBoundary:t,overscan:n,visibleRange:r},{footerHeight:i,headerHeight:a,scrollBy:o,scrollContainerState:s,scrollTo:c,scrollTop:l,smoothScrollTargetReached:u,viewportHeight:d},f,p,{didMount:m,propsReady:h},{customScrollParent:g,useWindowScroll:_,windowScrollContainerState:v,windowScrollTo:y,windowViewportRect:b},x])=>{let S=JF(0),C=JF(0),w=JF(tz),T=JF({height:0,width:0}),E=JF({height:0,width:0}),D=XF(),O=XF(),k=JF(0),A=JF(null),j=JF({column:0,row:0}),M=XF(),N=XF(),P=JF(!1),ee=JF(0),F=JF(!0),I=JF(!1),te=JF(!1);AF($(m,GF(ee),zF(([e,t])=>t!==0)),()=>{jF(F,!1)}),AF($(tI(m,F,E,T,ee,I),zF(([e,t,n,r,,i])=>e&&!t&&n.height!==0&&r.height!==0&&!i)),([,,,,e])=>{jF(I,!0),mL(1,()=>{jF(D,e)}),FF($(l),()=>{jF(t,[0,0]),jF(F,!0)})}),PF($(N,zF(e=>e!=null&&e.scrollTop>0),VF(0)),C),AF($(m,GF(N),zF(([,e])=>e!=null)),([,e])=>{e&&(jF(T,e.viewport),jF(E,e.item),jF(j,e.gap),e.scrollTop>0&&(jF(P,!0),FF($(l,UF(1)),e=>{jF(P,!1)}),jF(c,{top:e.scrollTop})))}),PF($(T,BF(({height:e})=>e)),d),PF($(tI(nI(T,uz),nI(E,uz),nI(j,(e,t)=>e!==void 0&&e.column===t.column&&e.row===t.row),nI(l)),BF(([e,t,n,r])=>({gap:n,item:t,scrollTop:r,viewport:e}))),M),PF($(tI(nI(S),r,nI(j,dz),nI(E,uz),nI(T,uz),nI(A),nI(C),nI(P),nI(F),nI(ee)),zF(([,,,,,,,e])=>!e),BF(([e,[t,n],r,i,a,o,s,,c,l])=>{let{column:u,row:d}=r,{height:f,width:p}=i,{width:m}=a;if(s===0&&(e===0||m===0))return tz;if(p===0){let t=hL(l,e);return lz(cz(t,t+Math.max(s-1,0),o))}let h=pz(m,p,u),g,_;c?t===0&&n===0&&s>0?(g=0,_=s-1):(g=h*iz((t+d)/(f+d)),_=h*rz((n+d)/(f+d))-1,_=oz(e-1,az(_,h-1)),g=oz(_,az(0,g))):(g=0,_=-1);let v=cz(g,_,o),{bottom:y,top:b}=mz(a,r,i,v),x=rz(e/h);return{bottom:y,itemHeight:f,items:v,itemWidth:p,offsetBottom:x*f+(x-1)*d-y,offsetTop:b,top:b}})),w),PF($(A,zF(e=>e!==null),BF(e=>e.length)),S),PF($(tI(T,E,w,j),zF(([e,t,{items:n}])=>n.length>0&&t.height!==0&&e.height!==0),BF(([e,t,{items:n},r])=>{let{bottom:i,top:a}=mz(e,r,t,n);return[a,i]}),RF(LI)),t);let ne=JF(!1);PF($(l,GF(ne),BF(([e,t])=>t||e!==0)),ne);let re=ZF($(tI(w,S),zF(([{items:e}])=>e.length>0),GF(ne),zF(([[e,t],n])=>{let r=e.items[e.items.length-1].index===t-1;return(n||e.bottom>0&&e.itemHeight>0&&e.offsetBottom===0&&e.items.length===t)&&r}),BF(([[,e]])=>e-1),RF())),ie=ZF($(nI(w),zF(({items:e})=>e.length>0&&e[0].index===0),VF(0),RF())),L=ZF($(nI(w),GF(P),zF(([{items:e},t])=>e.length>0&&!t),BF(([{items:e}])=>({endIndex:e[e.length-1].index,startIndex:e[0].index})),RF(II),WF(0)));PF(L,p.scrollSeekRangeChanged),PF($(D,GF(T,E,S,j),BF(([e,t,n,r,i])=>{let a=dL(e),{align:o,behavior:s,offset:c}=a,l=a.index;l===`LAST`&&(l=r-1),l=az(0,l,oz(r-1,l));let u=hz(t,i,n,l);return o===`end`?u=sz(u-t.height+n.height):o===`center`&&(u=sz(u-t.height/2+n.height/2)),c!==void 0&&c!==0&&(u+=c),{behavior:s,top:u}})),c);let ae=YF($(w,BF(e=>e.offsetBottom+e.bottom)),0);return PF($(b,BF(e=>({height:e.visibleHeight,width:e.visibleWidth}))),T),{customScrollParent:g,data:A,deviation:k,footerHeight:i,gap:j,headerHeight:a,increaseViewportBy:e,initialItemCount:C,itemDimensions:E,overscan:n,restoreStateFrom:N,scrollBy:o,scrollContainerState:s,scrollHeight:O,scrollTo:c,scrollToIndex:D,scrollTop:l,smoothScrollTargetReached:u,totalCount:S,useWindowScroll:_,viewportDimensions:T,windowScrollContainerState:v,windowScrollTo:y,windowViewportRect:b,...p,gridState:w,horizontalDirection:te,initialTopMostItemIndex:ee,totalListHeight:ae,...f,endReached:re,propsReady:h,rangeChanged:L,startReached:ie,stateChanged:M,stateRestoreInProgress:P,...x}},kF(kL,mI,CL,qL,lL,JL,sI));function pz(e,t,n){return az(1,iz((e+n)/(iz(t)+n)))}function mz(e,t,n,r){let{height:i}=n;if(i===void 0||r.length===0)return{bottom:0,top:0};let a=hz(e,t,n,r[0].index);return{bottom:hz(e,t,n,r[r.length-1].index)+i,top:a}}function hz(e,t,n,r){let i=iz(r/pz(e.width,n.width,t.column)),a=i*n.height+az(0,i-1)*t.row;return a>0?a+t.row:a}var gz=QF(([e,t])=>({...e,...t}),kF(fz,QF(()=>{let e=JF(e=>`Item ${e}`),t=JF({}),n=JF(null),r=JF(`virtuoso-grid-item`),i=JF(`virtuoso-grid-list`),a=JF(pR),o=JF(`div`),s=JF(EF),c=(e,n=null)=>YF($(t,BF(t=>t[e]),RF()),n),l=JF(!1),u=JF(!1);return PF(nI(u),l),{components:t,computeItemKey:a,context:n,FooterComponent:c(`Footer`),HeaderComponent:c(`Header`),headerFooterTag:o,itemClassName:r,ItemComponent:c(`Item`,`div`),itemContent:e,listClassName:i,ListComponent:c(`List`,`div`),readyStateChanged:l,reportReadyState:u,ScrollerComponent:c(`Scroller`,`div`),scrollerRef:s,ScrollSeekPlaceholder:c(`ScrollSeekPlaceholder`,`div`)}}))),_z=H.memo(function(){let e=wz(`gridState`),t=wz(`listClassName`),n=wz(`itemClassName`),r=wz(`itemContent`),i=wz(`computeItemKey`),a=wz(`isSeeking`),o=Tz(`scrollHeight`),s=wz(`ItemComponent`),c=wz(`ListComponent`),l=wz(`ScrollSeekPlaceholder`),u=wz(`context`),d=Tz(`itemDimensions`),f=Tz(`gap`),p=wz(`log`),m=wz(`stateRestoreInProgress`),h=Tz(`reportReadyState`),g=cI(H.useMemo(()=>e=>{let t=e.parentElement.parentElement.scrollHeight;o(t);let n=e.firstChild;if(n!==null){let{height:e,width:t}=n.getBoundingClientRect();d({height:e,width:t})}f({column:Oz(`column-gap`,getComputedStyle(e).columnGap,p),row:Oz(`row-gap`,getComputedStyle(e).rowGap,p)})},[o,d,f,p]),!0,!1);return lR(()=>{e.itemHeight>0&&e.itemWidth>0&&h(!0)},[e]),m?null:(0,U.jsx)(c,{className:t,ref:g,...wR(c,u),"data-testid":`virtuoso-item-list`,style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(t=>{let o=i(t.index,t.data,u);return a?(0,U.jsx)(l,{...wR(l,u),height:e.itemHeight,index:t.index,width:e.itemWidth},o):(0,H.createElement)(s,{...wR(s,u),className:n,"data-index":t.index,key:o},r(t.index,t.data,u))})})}),vz=H.memo(function(){let e=wz(`HeaderComponent`),t=Tz(`headerHeight`),n=wz(`headerFooterTag`),r=cI(H.useMemo(()=>e=>{t(HI(e,`height`))},[t]),!0,!1),i=wz(`context`);return e==null?null:(0,U.jsx)(n,{ref:r,children:(0,U.jsx)(e,{...wR(e,i)})})}),yz=H.memo(function(){let e=wz(`FooterComponent`),t=Tz(`footerHeight`),n=wz(`headerFooterTag`),r=cI(H.useMemo(()=>e=>{t(HI(e,`height`))},[t]),!0,!1),i=wz(`context`);return e==null?null:(0,U.jsx)(n,{ref:r,children:(0,U.jsx)(e,{...wR(e,i)})})}),bz=({children:e})=>{let t=H.useContext(aR),n=Tz(`itemDimensions`),r=Tz(`viewportDimensions`),i=cI(H.useMemo(()=>e=>{r(e.getBoundingClientRect())},[r]),!0,!1);return H.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),(0,U.jsx)(`div`,{ref:i,style:SR(!1),children:e})},xz=({children:e})=>{let t=H.useContext(aR),n=Tz(`windowViewportRect`),r=Tz(`itemDimensions`),i=pI(n,wz(`customScrollParent`),!1);return H.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),(0,U.jsx)(`div`,{ref:i,style:SR(!1),children:e})},{Component:Sz,useEmitter:Cz,useEmitterValue:wz,usePublisher:Tz}=rR(gz,{optional:{context:`context`,totalCount:`totalCount`,overscan:`overscan`,itemContent:`itemContent`,components:`components`,computeItemKey:`computeItemKey`,data:`data`,initialItemCount:`initialItemCount`,scrollSeekConfiguration:`scrollSeekConfiguration`,headerFooterTag:`headerFooterTag`,listClassName:`listClassName`,itemClassName:`itemClassName`,useWindowScroll:`useWindowScroll`,customScrollParent:`customScrollParent`,scrollerRef:`scrollerRef`,logLevel:`logLevel`,restoreStateFrom:`restoreStateFrom`,initialTopMostItemIndex:`initialTopMostItemIndex`,increaseViewportBy:`increaseViewportBy`},methods:{scrollTo:`scrollTo`,scrollBy:`scrollBy`,scrollToIndex:`scrollToIndex`},events:{isScrolling:`isScrolling`,endReached:`endReached`,startReached:`startReached`,rangeChanged:`rangeChanged`,atBottomStateChange:`atBottomStateChange`,atTopStateChange:`atTopStateChange`,stateChanged:`stateChanged`,readyStateChanged:`readyStateChanged`}},H.memo(function({...e}){let t=wz(`useWindowScroll`),n=wz(`customScrollParent`),r=n||t?Dz:Ez,i=n||t?xz:bz,a=wz(`context`);return(0,U.jsx)(r,{...e,...wR(r,a),children:(0,U.jsxs)(i,{children:[(0,U.jsx)(vz,{}),(0,U.jsx)(_z,{}),(0,U.jsx)(yz,{})]})})})),Ez=OR({useEmitter:Cz,useEmitterValue:wz,usePublisher:Tz}),Dz=kR({useEmitter:Cz,useEmitterValue:wz,usePublisher:Tz});function Oz(e,t,n){return t!==`normal`&&t?.endsWith(`px`)!==!0&&n(`${e} was not resolved to pixel value correctly`,t,iI.WARN),t===`normal`?0:parseInt(t??`0`,10)}function kz({data:e,value:t,renderOption:n}){if(!nm(e)){let r=fF(t,e.value);return(0,U.jsx)(Np.Option,{value:e.value,disabled:e.disabled,"data-checked":r||void 0,"aria-selected":r,active:r,children:n?.({option:e,checked:r})})}let r=e.items.map(e=>(0,U.jsx)(kz,{data:e,value:t,renderOption:n},e.value));return(0,U.jsx)(Np.Group,{label:e.group,children:r})}var Az={dropdownHeightTransition:`_dropdownHeightTransition_1kps7_1`};function jz(e,t,n){return n?e&&e<=t?e:t:0}function Mz({data:e,maxDropdownHeight:t,opened:n,renderOption:r,scrollAreaProps:i,value:a,withScrollArea:o=!0,withVirtualization:s}){let c=(0,H.useRef)(null),[l,u]=(0,H.useState)(0),d=on(n),f=t??220,p=e.map(e=>(0,U.jsx)(kz,{data:e,value:a,renderOption:r},nm(e)?e.group:e.value)),m=e=>{c.current?.scrollToIndex({index:e,align:`start`})},h=(e,t)=>{if(t==null)return-1;let n=Array.isArray(t);return e.findIndex(e=>n?nm(e)?t.some(t=>e.group.includes(t)):t.includes(e.value):nm(e)?e.group.includes(t):e.value===t)},g=(0,H.useCallback)((e,t,n,r,i)=>{if(e&&t&&n){let t=h(r,n);t>-1&&!i&&e&&m(t)}else e&&!n&&m(0)},[]);if((0,H.useEffect)(()=>{g(n,s,a,e,d)},[n,s,a,e,d,g]),s){let t=jz(l,f,e.length);return(0,U.jsx)(q,{className:Az.dropdownHeightTransition,style:{height:t},children:(0,U.jsx)(zR,{ref:c,style:{height:`100%`},totalCount:e.length,totalListHeightChanged:u,itemContent:t=>(0,U.jsx)(kz,{data:e[t],value:a,renderOption:r},nm(e[t])?e[t].group:e[t].value)})})}return o?(0,U.jsx)(sl.Autosize,{mah:f,type:`scroll`,scrollbarSize:`var(--combobox-padding)`,offsetScrollbars:`y`,...i,children:p}):(0,U.jsx)(U.Fragment,{children:p})}var Nz={selectAll:`_selectAll_158re_1`};function Pz({opened:e,data:t,filter:n,filterOptions:r=!0,hidden:i,hiddenWhenEmpty:a,limit:o,maxDropdownHeight:s,nothingFoundMessage:c,renderOption:l,onSelectAllToggle:u,scrollAreaProps:d,search:f,value:p,withScrollArea:m=!0,withSelectAll:h,withVirtualization:g}){mF(t);let{_}=Fj(),v=typeof f==`string`&&t.every(e=>nm(e)?!0:e.label!==f)?(n||rm)({options:t,search:r?f:``,limit:o??1/0}):t,y=pF(v),b=v.filter(e=>nm(e)?!1:!e.disabled).map(e=>{if(!nm(e))return e.value}).filter(e=>typeof e==`string`),x=Array.isArray(p)?p:[],S=b.length>0&&b.every(e=>x.includes(e)),C=b.some(e=>x.includes(e))&&!S;return(0,U.jsx)(Np.Dropdown,{hidden:i||a&&y,children:(0,U.jsxs)(Np.Options,{children:[h&&(0,U.jsxs)(Eu,{gap:8,className:Nz.selectAll,onClick:()=>u?.(!S),children:[(0,U.jsx)(tm,{checked:S,indeterminate:C,onChange:e=>{e.preventDefault(),u?.(!S)}}),(0,U.jsx)(Xf,{span:!0,children:_({id:`mCB6Je`})})]}),(0,U.jsx)(Mz,{opened:e,data:v,maxDropdownHeight:s,renderOption:l,scrollAreaProps:d,value:p,withScrollArea:m,withVirtualization:g}),y&&c&&(0,U.jsx)(Np.Empty,{children:c})]})})}var Fz=(0,H.memo)(function({allowDeselect:e=!0,autoComplete:t,chevronColor:n,classNames:r,clearable:i,clearButtonProps:a,comboboxProps:o,data:s,defaultDropdownOpened:c,defaultSearchValue:l,defaultValue:u,disabled:d,dropdownOpened:f,error:p,filter:m,form:h,hiddenInputProps:g,id:_,limit:v,loading:y,maxDropdownHeight:b,name:x,nothingFoundMessage:S,onBlur:C,onChange:w,onClear:T,onClick:E,onDropdownClose:D,onDropdownOpen:O,onFocus:k,onOptionSubmit:A,onSearchChange:j,placeholder:M,readOnly:N,rightSection:P,rightSectionPointerEvents:ee,scrollAreaProps:F,searchable:I,searchValue:te,selectFirstOptionOnChange:ne,size:re,styles:ie,unstyled:L,value:ae,withScrollArea:oe,withVirtualization:se,...ce}){let le=(0,H.useMemo)(()=>tp(s),[s]),ue=(0,H.useMemo)(()=>np(le),[le]),de=Rt(_),{_:fe}=Fj(),[R,pe,me]=Yt({value:ae,defaultValue:u,finalValue:null,onChange:w}),he=typeof R==`string`?ue[R]:void 0,ge=on(he),[z,_e,ve]=Yt({value:te,defaultValue:l,finalValue:he?he.label:``,onChange:j}),B=Ap({opened:f,defaultOpened:c,onDropdownOpen:()=>{O?.(),B.updateSelectedOptionIndex(`active`,{scrollIntoView:!0})},onDropdownClose:()=>{D?.(),B.resetSelectedOption()}}),ye=e=>{_e(e),B.resetSelectedOption()},be=()=>y?(0,U.jsx)(cu,{size:`xs`}):P??(0,U.jsx)(OO,{width:20,height:20}),{resolvedClassNames:xe,resolvedStyles:Se}=Ur({props:ce,styles:ie,classNames:r});(0,H.useEffect)(()=>{ne&&B.selectFirstOption()},[ne,z]),(0,H.useEffect)(()=>{ae===null&&ye(``),typeof ae==`string`&&he&&(ge?.value!==he.value||ge?.label!==he.label)&&ye(he.label)},[ae,he]),(0,H.useEffect)(()=>{!me&&!ve&&ye(typeof R==`string`&&ue[R]?.label||``)},[s,R]);let Ce=(0,U.jsx)(Np.ClearButton,{...a,onClear:()=>{pe(null,null),ye(``),T?.()}}),we=i&&!!R&&!d&&!N,Te=be(),Ee=ee,De=S??fe({id:`Hz+sxK`}),Oe=M??fe({id:`rG3WVm`});return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(Np,{store:B,__staticSelector:`Select`,classNames:xe,styles:Se,unstyled:L,readOnly:N,onOptionSubmit:t=>{A?.(t);let n=e&&ue[t].value===R?null:ue[t],r=n?n.value:null;r!==R&&pe(r,n),me||ye(typeof r==`string`&&n?.label||``),B.closeDropdown()},size:re,...o,children:[(0,U.jsx)(Np.Target,{targetType:I?`input`:`button`,autoComplete:t,children:(0,U.jsx)(Cf,{id:de,__defaultRightSection:(0,U.jsx)(Np.Chevron,{size:re,error:p,unstyled:L,color:n}),__clearSection:Ce,__clearable:we,rightSection:Te,rightSectionPointerEvents:Ee||(we?`all`:`none`),...ce,placeholder:Oe,size:re,__staticSelector:`Select`,disabled:d,readOnly:N||!I,value:z,onChange:e=>{ye(e.currentTarget.value),B.openDropdown(),ne&&B.selectFirstOption()},onFocus:e=>{I&&B.openDropdown(),k?.(e)},onBlur:e=>{I&&B.closeDropdown(),ye(R==null?``:ue[R]?.label||``),C?.(e)},onClick:e=>{I?B.openDropdown():B.toggleDropdown(),E?.(e)},classNames:xe,styles:Se,unstyled:L,pointer:!I,error:p})}),(0,U.jsx)(Pz,{opened:B.dropdownOpened,data:le,renderOption:ZA,value:R,search:I?z:void 0,limit:v,maxDropdownHeight:b,filter:m,hidden:N||d,nothingFoundMessage:De,withScrollArea:oe,scrollAreaProps:F,withVirtualization:se})]}),(0,U.jsx)(Np.HiddenInput,{value:R,name:x,form:h,disabled:d,...g})]})}),Iz={root:`_root_185o8_1`,input:`_input_185o8_5`,dropdown:`_dropdown_185o8_12`,section:`_section_185o8_16`,text:`_text_185o8_20`};function Lz({currentPage:e,pageSize:t,totalElements:n,paginationSizes:r,loading:i,onPageSizeChange:a}){let{_:o}=Fj(),s=t*(e-1)+1,c=Math.min(n,t*e);return(0,U.jsxs)(Eu,{justify:`space-between`,align:`center`,gap:24,children:[(0,U.jsxs)(Eu,{align:`center`,gap:6,children:[(0,U.jsx)(Xf,{size:`sm`,className:Iz.text,children:o({id:`0ZU/fh`})}),(0,U.jsx)(Fz,{classNames:{root:Iz.root,input:Iz.input,section:Iz.section,dropdown:Iz.dropdown},data:r.map(String),value:t.toString(),onChange:(e,t)=>a(Number(t.value)),disabled:i})]}),(0,U.jsx)(Xf,{size:`sm`,className:Iz.text,children:o({id:`5PgX/3`,values:{startItem:s,endItem:c,totalElements:n}})})]})}var Rz={root:`_root_19e85_1`};function zz(){let{isCardView:e,currentPage:t,currentPageSize:n,totalElements:r,totalPages:i,loading:a,withServerPagination:o,handlePageChange:s,handlePageSizeChange:c}=nF(),l=dF.some(e=>e===n)?dF:[...dF,n].sort((e,t)=>e-t),u=Math.max(1,Math.ceil(r/n));return r===0?null:(0,U.jsxs)(Eu,{justify:`space-between`,align:`center`,gap:16,className:Rz.root,mod:{"card-view":e},children:[(0,U.jsx)(Lz,{currentPage:t,pageSize:n,totalElements:r,paginationSizes:l,loading:a,onPageSizeChange:c}),(0,U.jsx)(Ev,{total:o&&i||u,value:t,onChange:s,disabled:a})]})}function Bz(){let{loading:e,isEmpty:t,withPagination:n}=nF();return(0,U.jsxs)(H.Activity,{mode:t&&!e?`hidden`:`visible`,children:[(0,U.jsx)(lF,{}),n&&(0,U.jsx)(zz,{})]})}var Vz={loadingCell:`_loadingCell_vzo9s_1`,clickableRow:`_clickableRow_vzo9s_5`,actionCell:`_actionCell_vzo9s_9`,selectedRow:`_selectedRow_vzo9s_15`,firstCellContent:`_firstCellContent_vzo9s_19`,collapseButton:`_collapseButton_vzo9s_25`,checkbox:`_checkbox_vzo9s_37`,checkboxInner:`_checkboxInner_vzo9s_41`,expandedRows:`_expandedRows_vzo9s_45`,expandedContent:`_expandedContent_vzo9s_52`};function Hz(){let{idKey:e,paginatedData:t=[],columns:n=[],withSelection:r,selection:i=[],loading:a,withCollapsible:o,isRowCollapsible:s,withMultipleCollapse:c=!0,toggleRow:l,renderCollapsed:u,collapsedViewType:d,onRowClick:f,getRowUrl:p}=nF(),[m,h]=(0,H.useState)({}),g=e=>{h(t=>c?{...t,[e]:!t[e]}:{[e]:!t[e]})},_=(e,t)=>{let n=t[e];return n?n.toString():`-`},v=(e,t,n)=>{if(!t.accessor&&!t.render)throw Error(`Column accessor or render function is required`);return t.render?t.render(e,n):Array.isArray(t.accessor)?t.accessor.map(t=>_(t,e)).join(` `):_(t.accessor,e)};return a?(0,U.jsx)(Ob.Tbody,{children:Array.from({length:3}).map((e,t)=>(0,U.jsxs)(Ob.Tr,{children:[n.map((e,n)=>(0,U.jsx)(Ob.Td,{children:n===0&&(o||r)?(0,U.jsxs)(q,{className:Vz.firstCellContent,children:[o&&(0,U.jsx)(Hy,{height:16,width:16}),r&&(0,U.jsx)(Hy,{height:20,width:20,circle:!0}),(0,U.jsx)(Hy,{height:20,style:{flex:1}})]}):(0,U.jsx)(Hy,{height:20})},`loading-${t}-${n}`)),f&&(0,U.jsx)(Ob.Td,{children:(0,U.jsx)(Hy,{height:20})})]},`loading-${t}`))}):(0,U.jsx)(Ob.Tbody,{children:t.map((t,a)=>{let c=String(t[e]),h=m[c]||!1,_=i.some(n=>n[e]===t[e]),y=o&&(s?s(t,a):!0),b=d??`table`,{handleClick:x,handleMouseDown:S}=iF(t,f,p);return(0,U.jsxs)(H.Fragment,{children:[(0,U.jsxs)(Ob.Tr,{className:Tn(f&&Vz.clickableRow,_&&Vz.selectedRow,h&&Vz.expandedRows),onClick:x,onMouseDown:S,children:[n.map((n,i)=>(0,U.jsx)(Ob.Td,{fz:`md`,lh:`md`,fw:500,children:i===0&&(y||r)?(0,U.jsxs)(q,{className:Vz.firstCellContent,children:[y&&(0,U.jsx)(dl,{className:Vz.collapseButton,onMouseDown:e=>{e.stopPropagation()},onClick:e=>{e.stopPropagation(),g(c)},children:h?(0,U.jsx)(rF,{width:20,height:20}):(0,U.jsx)(OO,{width:20,height:20})}),r&&(0,U.jsx)(tm,{classNames:{root:Vz.checkbox,inner:Vz.checkboxInner},checked:_,readOnly:!0,onClick:e=>{e.stopPropagation(),l(t,a,e)}}),v(t,n,a)]}):v(t,n,a)},`${e?String(t[e]):a}-${i}-${String(n.accessor)}`)),f&&(0,U.jsx)(Ob.Td,{className:Vz.actionCell,children:(0,U.jsx)(Nm,{children:(0,U.jsx)(gu,{variant:`transparent`,children:(0,U.jsx)(nA,{})})})})]}),y&&h&&u&&b===`table`?(0,U.jsx)(H.Fragment,{children:u(t,a,{view:`table`})},`${a}-expanded`):null,y&&u&&b===`card`?(0,U.jsx)(Ob.Tr,{children:(0,U.jsx)(Ob.Td,{colSpan:n.length+ +!!f,p:0,children:(0,U.jsx)(Ji,{expanded:h,children:(0,U.jsx)(q,{className:Vz.expandedContent,children:h?u(t,a,{view:`card`}):null})})})},`${a}-expanded`):null]},a)})})}var Uz={checkbox:`_checkbox_oawpz_1`,textLight:`_textLight_oawpz_6`,firstHeaderContent:`_firstHeaderContent_oawpz_10`,checkboxInner:`_checkboxInner_oawpz_20`};function Wz(){let{_:e}=Fj(),{columns:t=[],withSelection:n,isCurrentPageSelected:r,isCurrentPageIndeterminate:i,loading:a,paginatedData:o=[],withSingleSelection:s,onRowClick:c,toggleCurrentPage:l}=nF(),u=a||!o.length,d=!!c;return(0,U.jsx)(Ob.Thead,{children:(0,U.jsxs)(Ob.Tr,{children:[t.map((e,t)=>(0,U.jsx)(Ob.Th,{className:Uz.textLight,children:t===0&&n?(0,U.jsxs)(q,{className:Uz.firstHeaderContent,children:[n&&!s&&(0,U.jsx)(tm,{classNames:{root:Uz.checkbox,inner:Uz.checkboxInner},checked:r,indeterminate:i,onChange:l,disabled:u}),e.header]}):e.header},`${String(e.accessor)}-${t}`)),d&&(0,U.jsx)(Ob.Th,{className:Uz.textLight,w:80,children:e({id:`URmyfc`})})]})})}var Gz={container:`_container_1xqco_1`,scrollContainer:`_scrollContainer_1xqco_5`};function Kz(){let{loading:e,isEmpty:t,paginatedData:n=[],withPagination:r}=nF();return(0,U.jsxs)(H.Activity,{mode:t&&!e?`hidden`:`visible`,children:[(0,U.jsx)(Ob.ScrollContainer,{minWidth:320,classNames:{scrollContainer:Gz.scrollContainer},children:(0,U.jsxs)(Ob,{highlightOnHover:n.length>0,classNames:{th:Gz.th},children:[(0,U.jsx)(Wz,{}),(0,U.jsx)(Hz,{})]})}),r&&(0,U.jsx)(zz,{})]})}var qz={root:`_root_1yqhv_1`,rootWithBorder:`_rootWithBorder_1yqhv_5`,title:`_title_1yqhv_10`,description:`_description_1yqhv_14`};function Jz({className:e,icon:t,title:n,description:r,children:i,titleClassName:a,descriptionClassName:o,withBorder:s=!0,...c}){return(0,U.jsxs)(Ky,{align:`center`,gap:16,className:Tn(e,qz.root,{[qz.rootWithBorder]:s}),...c,children:[t,(0,U.jsxs)(Ky,{align:`center`,gap:4,children:[n&&(0,U.jsx)(Xf,{fw:500,size:`lg`,className:Tn(qz.title,a),children:n}),r&&(0,U.jsx)(Xf,{size:`lg`,className:Tn(qz.description,o),children:r})]}),i]})}var Yz={root:`_root_je6aq_1`,title:`_title_je6aq_5`};function Xz({title:e,description:t}){let{_:n}=Fj();return(0,U.jsx)(Jz,{title:e??n({id:`jGE4vv`}),description:t,h:72,className:Yz.root,titleClassName:Yz.title})}function Zz({...e}){return(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,U.jsx)(`path`,{d:`M7 4V20`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M17 19V4`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M10 6.99998C10 6.99998 7.79053 4.00001 6.99998 4C6.20942 3.99999 4 7 4 7`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M20 17C20 17 17.7905 20 17 20C16.2094 20 14 17 14 17`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]})}function Qz({...e}){return(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,...e,children:[(0,U.jsx)(`path`,{d:`M2 4.66669H4`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M2 11.3333H6`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M12 11.3333H14`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M10 4.66669H14`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M4 4.66669C4 4.04543 4 3.73481 4.10149 3.48977C4.23682 3.16307 4.49639 2.90351 4.82309 2.76818C5.06812 2.66669 5.37875 2.66669 6 2.66669C6.62125 2.66669 6.93187 2.66669 7.17693 2.76818C7.5036 2.90351 7.7632 3.16307 7.89853 3.48977C8 3.73481 8 4.04543 8 4.66669C8 5.28794 8 5.59857 7.89853 5.8436C7.7632 6.1703 7.5036 6.42987 7.17693 6.56519C6.93187 6.66669 6.62125 6.66669 6 6.66669C5.37875 6.66669 5.06812 6.66669 4.82309 6.56519C4.49639 6.42987 4.23682 6.1703 4.10149 5.8436C4 5.59857 4 5.28794 4 4.66669Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M8 11.3333C8 10.712 8 10.4014 8.10147 10.1564C8.2368 9.82971 8.4964 9.57011 8.82307 9.43478C9.06813 9.33331 9.37873 9.33331 10 9.33331C10.6213 9.33331 10.9319 9.33331 11.1769 9.43478C11.5036 9.57011 11.7632 9.82971 11.8985 10.1564C12 10.4014 12 10.712 12 11.3333C12 11.9546 12 12.2652 11.8985 12.5102C11.7632 12.8369 11.5036 13.0965 11.1769 13.2318C10.9319 13.3333 10.6213 13.3333 10 13.3333C9.37873 13.3333 9.06813 13.3333 8.82307 13.2318C8.4964 13.0965 8.2368 12.8369 8.10147 12.5102C8 12.2652 8 11.9546 8 11.3333Z`,stroke:`currentColor`,strokeWidth:`1.5`})]})}function $z({...e}){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 640 640`,width:24,height:24,fill:`currentColor`,...e,children:(0,U.jsx)(`path`,{d:`M278.6 438.6L182.6 534.6C170.1 547.1 149.8 547.1 137.3 534.6L41.3 438.6C28.8 426.1 28.8 405.8 41.3 393.3C53.8 380.8 74.1 380.8 86.6 393.3L128 434.7L128 128C128 110.3 142.3 96 160 96C177.7 96 192 110.3 192 128L192 434.7L233.4 393.3C245.9 380.8 266.2 380.8 278.7 393.3C291.2 405.8 291.2 426.1 278.7 438.6zM352 96L384 96C401.7 96 416 110.3 416 128C416 145.7 401.7 160 384 160L352 160C334.3 160 320 145.7 320 128C320 110.3 334.3 96 352 96zM352 224L448 224C465.7 224 480 238.3 480 256C480 273.7 465.7 288 448 288L352 288C334.3 288 320 273.7 320 256C320 238.3 334.3 224 352 224zM352 352L512 352C529.7 352 544 366.3 544 384C544 401.7 529.7 416 512 416L352 416C334.3 416 320 401.7 320 384C320 366.3 334.3 352 352 352zM352 480L576 480C593.7 480 608 494.3 608 512C608 529.7 593.7 544 576 544L352 544C334.3 544 320 529.7 320 512C320 494.3 334.3 480 352 480z`})})}function eB({...e}){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 640 640`,width:24,height:24,fill:`currentColor`,...e,children:(0,U.jsx)(`path`,{stroke:`currentColor`,d:`M278.6 438.6L182.6 534.6C170.1 547.1 149.8 547.1 137.3 534.6L41.3 438.6C28.8 426.1 28.8 405.8 41.3 393.3C53.8 380.8 74.1 380.8 86.6 393.3L128 434.7L128 128C128 110.3 142.3 96 160 96C177.7 96 192 110.3 192 128L192 434.7L233.4 393.3C245.9 380.8 266.2 380.8 278.7 393.3C291.2 405.8 291.2 426.1 278.7 438.6zM352 544C334.3 544 320 529.7 320 512C320 494.3 334.3 480 352 480L384 480C401.7 480 416 494.3 416 512C416 529.7 401.7 544 384 544L352 544zM352 416C334.3 416 320 401.7 320 384C320 366.3 334.3 352 352 352L448 352C465.7 352 480 366.3 480 384C480 401.7 465.7 416 448 416L352 416zM352 288C334.3 288 320 273.7 320 256C320 238.3 334.3 224 352 224L512 224C529.7 224 544 238.3 544 256C544 273.7 529.7 288 512 288L352 288zM352 160C334.3 160 320 145.7 320 128C320 110.3 334.3 96 352 96L576 96C593.7 96 608 110.3 608 128C608 145.7 593.7 160 576 160L352 160z`})})}var tB={selected:`_selected_gzoet_1`};function nB({value:e,onChange:t,options:n}){return(0,U.jsx)(Eu,{gap:16,children:n.map(n=>(0,U.jsx)(gy,{label:n.label,children:(0,U.jsx)(gu,{size:32,p:0,variant:`subtle`,className:Tn({[tB.selected]:e===n.value}),onClick:()=>t(n.value),children:n.icon})},String(n.value)))})}function rB({...e}){return(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,U.jsx)(`path`,{d:`M2 18C2 16.4596 2 15.6893 2.34673 15.1235C2.54074 14.8069 2.80693 14.5407 3.12353 14.3467C3.68934 14 4.45956 14 6 14C7.54044 14 8.31066 14 8.87647 14.3467C9.19307 14.5407 9.45926 14.8069 9.65327 15.1235C10 15.6893 10 16.4596 10 18C10 19.5404 10 20.3107 9.65327 20.8765C9.45926 21.1931 9.19307 21.4593 8.87647 21.6533C8.31066 22 7.54044 22 6 22C4.45956 22 3.68934 22 3.12353 21.6533C2.80693 21.4593 2.54074 21.1931 2.34673 20.8765C2 20.3107 2 19.5404 2 18Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M14 18C14 16.4596 14 15.6893 14.3467 15.1235C14.5407 14.8069 14.8069 14.5407 15.1235 14.3467C15.6893 14 16.4596 14 18 14C19.5404 14 20.3107 14 20.8765 14.3467C21.1931 14.5407 21.4593 14.8069 21.6533 15.1235C22 15.6893 22 16.4596 22 18C22 19.5404 22 20.3107 21.6533 20.8765C21.4593 21.1931 21.1931 21.4593 20.8765 21.6533C20.3107 22 19.5404 22 18 22C16.4596 22 15.6893 22 15.1235 21.6533C14.8069 21.4593 14.5407 21.1931 14.3467 20.8765C14 20.3107 14 19.5404 14 18Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M2 6C2 4.45956 2 3.68934 2.34673 3.12353C2.54074 2.80693 2.80693 2.54074 3.12353 2.34673C3.68934 2 4.45956 2 6 2C7.54044 2 8.31066 2 8.87647 2.34673C9.19307 2.54074 9.45926 2.80693 9.65327 3.12353C10 3.68934 10 4.45956 10 6C10 7.54044 10 8.31066 9.65327 8.87647C9.45926 9.19307 9.19307 9.45926 8.87647 9.65327C8.31066 10 7.54044 10 6 10C4.45956 10 3.68934 10 3.12353 9.65327C2.80693 9.45926 2.54074 9.19307 2.34673 8.87647C2 8.31066 2 7.54044 2 6Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M14 6C14 4.45956 14 3.68934 14.3467 3.12353C14.5407 2.80693 14.8069 2.54074 15.1235 2.34673C15.6893 2 16.4596 2 18 2C19.5404 2 20.3107 2 20.8765 2.34673C21.1931 2.54074 21.4593 2.80693 21.6533 3.12353C22 3.68934 22 4.45956 22 6C22 7.54044 22 8.31066 21.6533 8.87647C21.4593 9.19307 21.1931 9.45926 20.8765 9.65327C20.3107 10 19.5404 10 18 10C16.4596 10 15.6893 10 15.1235 9.65327C14.8069 9.45926 14.5407 9.19307 14.3467 8.87647C14 8.31066 14 7.54044 14 6Z`,stroke:`currentColor`,strokeWidth:`1.5`})]})}function iB({...e}){return(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,U.jsx)(`path`,{d:`M3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M2.5 9H21.5`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M2.5 13H21.5`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M2.5 17H21.5`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M12 21.5V9`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})]})}function aB(){let[e,t]=Gt({key:VT.TABLE_VIEW,defaultValue:`list`,getInitialValueInEffect:!1});return{viewType:e,isCardView:e===`grid`,setViewType:t}}function oB(){let{viewType:e,setViewType:t}=aB(),{_:n}=Fj();return(0,U.jsx)(nB,{value:e,onChange:t,options:[{value:`list`,label:n({id:`mbM6E8`}),icon:(0,U.jsx)(iB,{})},{value:`grid`,label:n({id:`APYQPm`}),icon:(0,U.jsx)(rB,{})}]})}var sB={menuItem:`_menuItem_16isq_1`,menuItemSelected:`_menuItemSelected_16isq_5`,selectedSorting:`_selectedSorting_16isq_9`,cellWithCheckbox:`_cellWithCheckbox_16isq_13`,checkbox:`_checkbox_16isq_20`,checkboxInner:`_checkboxInner_16isq_24`};function cB({children:e,withSwitchActions:t=!0,...n}){let{_:r}=Fj(),{title:i,isCardView:a,withSelection:o,withSingleSelection:s,loading:c,paginatedData:l=[],isCurrentPageSelected:u,isCurrentPageIndeterminate:d,renderFilterSection:f,sortState:p,sortOptions:m,toggleCurrentPage:h,handleSort:g}=nF(),[_,v]=(0,H.useState)(!1),[y,{toggle:b}]=rn(!1),x=p?.field??null,S=p?.direction??null,C=m&&m.length>0,w=m?.find(e=>e.value===x)?.label??null??r({id:`m1SiNS`}),T=e=>e===`asc`?(0,U.jsx)($z,{width:20,height:20}):e===`desc`?(0,U.jsx)(eB,{width:20,height:20}):(0,U.jsx)(Zz,{width:20,height:20}),E=e=>{if(!g)return;let t=`desc`;x===e&&(S===`desc`?t=`asc`:S===`asc`&&(t=`unsorted`)),g({field:e,direction:t})},D=()=>{v(e=>!e)},O=e=>{e.stopPropagation(),h()},k=y||x&&x!==`unsorted`,A=o&&!s&&a;return(0,U.jsxs)(Ky,{gap:16,mb:16,...n,children:[A&&i&&(0,U.jsx)(ex,{order:3,children:i}),(0,U.jsxs)(Eu,{justify:A||i?`space-between`:`flex-end`,align:`flex-end`,children:[A?(0,U.jsxs)(q,{className:sB.cellWithCheckbox,onClick:O,children:[(0,U.jsx)(tm,{classNames:{root:sB.checkbox,inner:sB.checkboxInner},disabled:c||!l.length,checked:u,indeterminate:d,onChange:h}),(0,U.jsxs)(Xf,{fw:500,children:[r({id:`mCB6Je`}),` `]})]}):i&&(0,U.jsx)(ex,{order:3,children:i}),(0,U.jsxs)(Eu,{gap:8,children:[e,f&&(0,U.jsx)(jm,{variant:`subtle`,size:`compact-md`,className:Tn({[sB.selectedSorting]:_}),leftSection:(0,U.jsx)(Qz,{}),onClick:D,children:r({id:`cSev+j`})}),C&&(0,U.jsxs)(ag,{position:`bottom-end`,width:175,onOpen:b,onClose:b,children:[(0,U.jsx)(ag.Target,{children:(0,U.jsx)(jm,{className:Tn({[sB.selectedSorting]:k}),variant:`subtle`,size:`compact-md`,leftSection:T(S),children:w})}),(0,U.jsx)(ag.Dropdown,{p:2,children:m?.map(e=>{let t=x===e.value;return(0,U.jsx)(ag.Item,{classNames:{item:Tn(sB.menuItem,{[sB.menuItemSelected]:t})},rightSection:t?T(S):null,onClick:()=>E(e.value),children:e.label},e.value)})})]}),t&&(0,U.jsx)(oB,{})]})]}),(0,U.jsx)(Ji,{expanded:_,children:f})]})}function lB({data:e,withClientPagination:t=!0,withServerPagination:n,page:r,pageSize:i,onPageChange:a,onPageSizeChange:o,totalPages:s,totalElements:c}){let[l,u]=(0,H.useState)(1),[d,f]=(0,H.useState)(uF.DEFAULT_PAGE_SIZE),p=a!==void 0||o!==void 0,m=n||p?r??1:l,h=n||p?i??uF.DEFAULT_PAGE_SIZE:d,g=dF.includes(h)?h:uF.DEFAULT_PAGE_SIZE,_=!n&&t,v=Math.max(1,Math.ceil(e.length/g)),y=n?s??1:v,b=Math.max(1,Math.min(m,y)),x=n?c??0:e.length;return{paginatedData:(0,H.useMemo)(()=>{if(n||!_)return e;let t=(b-1)*g,r=t+g;return e.slice(t,Math.min(r,e.length))},[e,b,g,_,n]),currentPage:b,totalPages:y,totalElements:x,handlePageChange:e=>{a?a(e):u(e)},handlePageSizeChange:e=>{o?o(e):(f(e),u(1))},pageSize:g}}var uB=/^\d{4}-\d{2}-\d{2}|^\d{2}[/.-]\d{2}[/.-]\d{4}|^\d{2}[/.-]\d{2}[/.-]\d{2}/,dB=/[^0-9.-]/g;function fB(e){return e instanceof Date?!0:typeof e==`string`?(0,Q.default)(e).isValid()&&uB.test(e):!1}function pB(e,t){return e-t}function mB(e,t){return(0,Q.default)(e).valueOf()-(0,Q.default)(t).valueOf()}function hB(e,t){let n=parseFloat(e.replace(dB,``)),r=parseFloat(t.replace(dB,``));return!isNaN(n)&&!isNaN(r)?n-r:e.localeCompare(t,void 0,{numeric:!0,sensitivity:`base`})}function gB(e,t){return e==null&&t==null?0:e==null?1:t==null?-1:typeof e==`number`&&typeof t==`number`?pB(e,t):fB(e)&&fB(t)?mB(e,t):typeof e==`string`&&typeof t==`string`?hB(e,t):e<t?-1:+(e>t)}function _B(e,t){return t.split(`.`).reduce((e,t)=>{if(typeof e==`object`&&e&&t in e)return e[t]},e)}function vB({data:e,sorting:t,withServerSorting:n,onPageChange:r}){let[i,a]=(0,H.useState)(null),o=t?.sortState,s=t?.onServerSort,c=s===void 0?i:o??null,l=(0,H.useMemo)(()=>(t?.sortOptions??[]).map(e=>e.value),[t?.sortOptions]);return{sortedData:(0,H.useMemo)(()=>{if(n||!c)return e;let{field:t,direction:r}=c;return r===`unsorted`||l.length>0&&!l.includes(t)?e:[...e].sort((e,n)=>{let i=gB(t.includes(`.`)?_B(e,t):e[t],t.includes(`.`)?_B(n,t):n[t]);return r===`desc`?-i:i})},[e,c,l,n]),currentSortState:c,handleSortChange:e=>{let{field:t,direction:n}=e;l.length>0&&!l.includes(t)||(r?.(1),s?s(e):a(n===`unsorted`?null:e))}}}function yB({title:e,columns:t=[],containerProps:n,data:r=[],emptyStateDescription:i,emptyStateTitle:a,idKey:o,loading:s,onSelectionChange:c,withSelection:l,selection:u=[],withSingleSelection:d,externalViewType:f,onPageChange:p,onPageSizeChange:m,page:h,pageSize:g,totalElements:_,totalPages:v,withPagination:y=!0,withServerPagination:b,withCollapsible:x,isRowCollapsible:S,renderCollapsed:C,collapsedViewType:w,withMultipleCollapse:T=!0,withinModal:E,renderHeaderActions:D,withSwitchActions:O=!0,onRowClick:k,getRowUrl:A,renderFilterSection:j,sorting:M}){let{isCardView:N}=aB(),P=f?f===`grid`:N,ee=O&&f==null,[F,I]=(0,H.useState)(null),{sortedData:te,currentSortState:ne,handleSortChange:re}=vB({data:r,sorting:M,withServerSorting:b,onPageChange:p}),{paginatedData:ie,currentPage:L,totalPages:ae,totalElements:oe,handlePageChange:se,handlePageSizeChange:ce,pageSize:le}=lB({data:te,withClientPagination:!b,withServerPagination:b,page:h,pageSize:g,onPageChange:p,onPageSizeChange:m,totalPages:v,totalElements:_}),ue=(e,t,n)=>{if(d){let n=u.some(t=>t[o]===e[o]);c?.(n?[]:[e]),I(n?null:t);return}if(n.shiftKey&&F!==null){let e=Math.min(F,t),n=Math.max(F,t),r=ie.slice(e,n+1),i=[...u.filter(e=>!r.some(t=>t[o]===e[o])),...r];c?.(i);return}let r=u.some(t=>t[o]===e[o])?u.filter(t=>t[o]!==e[o]):[...u,e];I(t),c?.(r)},de=()=>{if(d)return;let e=ie.every(e=>u.some(t=>t[o]===e[o]))?u.filter(e=>!ie.some(t=>e[o]===t[o])):[...u,...ie.filter(e=>!u.some(t=>t[o]===e[o]))];c?.(e)},fe=ie.length>0&&ie.every(e=>u.some(t=>t[o]===e[o])),R=u.length>0&&ie.some(e=>u.some(t=>t[o]===e[o]))&&!fe,pe={title:e,columns:t,data:ie,emptyStateDescription:i,emptyStateTitle:a,idKey:o,loading:s,onRowClick:k,getRowUrl:A,renderCollapsed:C,collapsedViewType:w,renderHeaderActions:D,selection:u,isRowCollapsible:S,withCollapsible:x,withMultipleCollapse:T,withPagination:y,withSelection:l,withServerPagination:b,withSingleSelection:d,withinModal:E,isCardView:P,isEmpty:!ie.length,checked:fe,indeterminate:R,onChange:de,disabled:s||!ie.length,sortState:ne,sortOptions:M?.sortOptions,handleSort:re,paginatedData:ie,currentPage:L,totalPages:ae,totalElements:oe,currentPageSize:le,handlePageChange:se,handlePageSizeChange:ce,toggleRow:ue,toggleCurrentPage:de,isCurrentPageSelected:fe,isCurrentPageIndeterminate:R,renderFilterSection:j};return(0,U.jsx)(tF.Provider,{value:pe,children:(0,U.jsxs)(q,{...n,className:Tn(Gz.container,n?.className),mod:{"within-modal":E},children:[(0,U.jsx)(cB,{withSwitchActions:ee,children:D?D({selection:u}):null}),(0,U.jsx)(H.Activity,{mode:pe.isEmpty&&!s?`visible`:`hidden`,children:(0,U.jsx)(Xz,{title:a,description:i})}),P?(0,U.jsx)(Bz,{}):(0,U.jsx)(Kz,{})]})})}var bB=yB;function xB({headers:e=[],rows:t=[]}){let n=t.map((e,t)=>{let n={id:t};return e.forEach((e,t)=>{n[`col${t}`]=e}),n}),r=e.map((e,t)=>({header:e,accessor:`col${t}`}));return n.length===0?null:(0,U.jsx)(bB,{idKey:`id`,data:n,columns:r,withPagination:!1,withSwitchActions:!1})}function SB(e){return typeof e==`object`&&!!e&&`responseList`in e}function CB(e,t){let n=RP(e);if(!n)return null;switch(n.type){case`chart`:case`usage-chart`:return(0,U.jsx)(XP,{items:n.config.items,title:n.config.visualizationConfig?.title});case`offer-card`:case`addon-card`:return(0,U.jsx)(eF,{items:SB(n.config.data)?n.config.data.responseList:n.config.items,title:n.config.visualizationConfig?.title,showPricing:n.config.visualizationConfig?.showPricing,onSelectOffer:e=>{t?.({type:`select-offer`,data:{offerId:e}})}});case`overview-card`:case`account-overview`:return(0,U.jsx)(IP,{config:n.config,onWidgetEvent:t});case`table`:return(0,U.jsx)(xB,{headers:n.config.visualizationConfig?.headers,rows:n.config.items});case`highlight-box`:case`info-box`:return(0,U.jsx)(ZP,{title:n.config.visualizationConfig?.title,content:n.config.visualizationConfig?.content,variant:n.config.visualizationConfig?.variant});case`actions`:return(0,U.jsx)(BP,{actions:n.config.actions,onActionClick:t});default:return null}}var wB=e=>e!=null&&(typeof e!=`string`||e.trim()!==``);function TB(e){if(typeof e!=`object`||!e)return!1;let t=Object.values(e);return t.length===0?!1:t.some(wB)}function EB(e){return e.replace(/(?:\r?\n)?\s*(?:'{3}|"{3}|`{3})\s*$/i,``).replace(/(?:\r?\n)?\s*(?:'{3}|"{3}|`{3})\s*json\s*(?:'{3}|"{3}|`{3})?\s*$/i,``).trimEnd()}function DB(e){return e.replace(/\s*"structuredData"\s*:\s*$/i,``).replace(/\s*\\"structuredData\\"\s*:\s*$/i,``).trimEnd()}function OB(e){return e.replace(/\\r\\n/g,`
377
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${LP(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=RP(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+LP(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=RP(e);if(i===null)return LP(n);e=i;let a=`<img src="${e}" alt="${LP(n)}"`;return t&&(a+=` title="${LP(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:LP(e.text)}},JP=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},YP=class e{options;renderer;textRenderer;constructor(e){this.options=e||xN,this.options.renderer=this.options.renderer||new qP,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new JP}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},XP=class{options;block;constructor(e){this.options=e||xN}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?KP.lex:KP.lexInline}provideParser(){return this.block?YP.parse:YP.parseInline}},ZP=new class{defaults=bN();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=YP;Renderer=qP;TextRenderer=JP;Lexer=KP;Tokenizer=GP;Hooks=XP;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new qP(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new GP(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new XP;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];XP.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&XP.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return KP.lex(e,t??this.defaults)}parser(e,t){return YP.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer():e?KP.lex:KP.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser():e?YP.parse:YP.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?KP.lex:KP.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():e?YP.parse:YP.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
378
+ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+LP(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function QP(e,t){return ZP.parse(e,t)}QP.options=QP.setOptions=function(e){return ZP.setOptions(e),QP.defaults=ZP.defaults,SN(QP.defaults),QP},QP.getDefaults=bN,QP.defaults=xN,QP.use=function(...e){return ZP.use(...e),QP.defaults=ZP.defaults,SN(QP.defaults),QP},QP.walkTokens=function(e,t){return ZP.walkTokens(e,t)},QP.parseInline=ZP.parseInline,QP.Parser=YP,QP.parser=YP.parse,QP.Renderer=qP,QP.TextRenderer=JP,QP.Lexer=KP,QP.lexer=KP.lex,QP.Tokenizer=GP,QP.Hooks=XP,QP.parse=QP,QP.options,QP.setOptions,QP.use,QP.walkTokens,QP.parseInline,YP.parse,KP.lex;var $P={root:`_root_1o6c0_1`,header:`_header_1o6c0_17`};function eF({children:e,className:t,...n}){return(0,U.jsx)(q,{className:Tn($P.header,t),...n,children:e})}function tF({children:e,withBorder:t=!0,withShadow:n=!0,className:r,mod:i,variant:a=`default`,...o}){let s=i;return(0,U.jsx)(q,{className:Tn($P.root,r),p:24,mod:{...s,bordered:t,shadow:n,variant:a},...o,children:e})}tF.Header=eF;function nF({...e}){return(0,U.jsxs)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,U.jsx)(`path`,{d:`M3.77762 11.9424C2.8296 10.2893 2.37185 8.93948 2.09584 7.57121C1.68762 5.54758 2.62181 3.57081 4.16938 2.30947C4.82345 1.77638 5.57323 1.95852 5.96 2.6524L6.83318 4.21891C7.52529 5.46057 7.87134 6.08139 7.8027 6.73959C7.73407 7.39779 7.26737 7.93386 6.33397 9.00601L3.77762 11.9424ZM3.77762 11.9424C5.69651 15.2883 8.70784 18.3013 12.0576 20.2224M12.0576 20.2224C13.7107 21.1704 15.0605 21.6282 16.4288 21.9042C18.4524 22.3124 20.4292 21.3782 21.6905 19.8306C22.2236 19.1766 22.0415 18.4268 21.3476 18.04L19.7811 17.1668C18.5394 16.4747 17.9186 16.1287 17.2604 16.1973C16.6022 16.2659 16.0661 16.7326 14.994 17.666L12.0576 20.2224Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M14 6.83185C15.4232 7.43624 16.5638 8.57677 17.1682 10M14.654 2C18.1912 3.02076 20.9791 5.80852 22 9.34563`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})]})}function rF({...e}){return(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,U.jsx)(`path`,{d:`M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M12 22C14.2091 22 16 17.5228 16 12C16 6.47715 14.2091 2 12 2C9.79086 2 8 6.47715 8 12C8 17.5228 9.79086 22 12 22Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M2 12H22`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]})}function iF({...e}){return(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,U.jsx)(`path`,{d:`M8 13.5H16M8 8.5H12`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M6.09881 19C4.7987 18.8721 3.82475 18.4816 3.17157 17.8284C2 16.6569 2 14.7712 2 11V10.5C2 6.72876 2 4.84315 3.17157 3.67157C4.34315 2.5 6.22876 2.5 10 2.5H14C17.7712 2.5 19.6569 2.5 20.8284 3.67157C22 4.84315 22 6.72876 22 10.5V11C22 14.7712 22 16.6569 20.8284 17.8284C19.6569 19 17.7712 19 14 19C13.4395 19.0125 12.9931 19.0551 12.5546 19.155C11.3562 19.4309 10.2465 20.0441 9.14987 20.5789C7.58729 21.3408 6.806 21.7218 6.31569 21.3651C5.37769 20.6665 6.29454 18.5019 6.5 17.5`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})]})}var aF={data:rF,voice:nF,sms:iF},oF=e=>aF[e.toLowerCase()]||aF.data;function sF(){return{getPercent:e=>{if(e.percentUsed!=null&&Number.isFinite(e.percentUsed))return Math.max(0,Math.min(100,Math.round(e.percentUsed)));if(!Number.isFinite(e.total)||e.total<=0)return 0;let t=e.used/e.total*100;return Number.isFinite(t)?Math.max(0,Math.min(100,Math.round(t))):0},getColor:e=>{switch(e.toLowerCase()){case`data`:return`blue`;case`voice`:return`violet`;case`sms`:return`green`;default:return`blue`}},getShortLabel:e=>{let t=(e.key??``).toLowerCase();return t===`data`?`Data`:t===`voice`?`Voice`:t===`sms`?`SMS`:e.label?.trim()?e.label.trim():e.key?e.key.charAt(0).toUpperCase()+e.key.slice(1):`Usage`},getIcon:oF}}function cF({items:e=[],title:t}){let{getPercent:n,getColor:r,getShortLabel:i,getIcon:a}=sF();return(0,U.jsx)(tF,{withBorder:!0,withShadow:!0,children:(0,U.jsxs)(Vy,{gap:`md`,children:[t&&(0,U.jsx)(Xf,{size:`lg`,fw:600,children:t}),(0,U.jsx)(Py,{cols:{base:1,sm:2},spacing:`md`,children:e.map(e=>{let t=n(e),o=r(e.key),s=i(e);return(0,U.jsxs)(Eu,{gap:`md`,wrap:`nowrap`,children:[(0,U.jsx)(yy,{size:80,thickness:10,sections:[{value:t,color:o}],label:(0,U.jsxs)(Xf,{size:`sm`,ta:`center`,fw:600,children:[t,`%`]})}),(0,U.jsxs)(Vy,{gap:4,style:{flex:1},children:[(0,U.jsxs)(Eu,{gap:`xs`,children:[(0,U.jsx)(Hb,{color:o,variant:`light`,size:`sm`,children:H.createElement(a(e.key))}),(0,U.jsx)(Xf,{size:`sm`,fw:500,children:s})]}),(0,U.jsxs)(Eu,{gap:4,children:[(0,U.jsx)(Xf,{size:`sm`,children:e.used}),(0,U.jsxs)(Xf,{size:`sm`,c:`dimmed`,children:[`/ `,e.total,` `,e.unit]})]})]})]},e.key)})})]})})}var lF={offerCardButton:`_offerCardButton_1og3p_1`,"offerCardButton--clickable":`_offerCardButton--clickable_1og3p_6`};function uF({item:e,index:t,showPricing:n,onSelect:r}){let i=!!e.offerId;return(0,U.jsx)(dl,{className:`${lF.offerCardButton} ${i?lF.offerCardButtonClickable:``}`,onClick:()=>r(e.offerId),disabled:!i,children:(0,U.jsx)(tF,{withBorder:!0,withShadow:!0,p:16,h:`100%`,children:(0,U.jsxs)(Vy,{gap:`sm`,h:`100%`,children:[(0,U.jsx)(Xf,{size:`md`,fw:600,lineClamp:2,children:e.name||`Addon`}),e.description&&(0,U.jsx)(Xf,{size:`sm`,c:`dimmed`,lineClamp:2,children:e.description}),e.dataAmount&&(0,U.jsx)(Xf,{size:`sm`,fw:500,children:e.dataAmount}),n&&e.price&&(0,U.jsx)(Xf,{size:`lg`,fw:600,c:`blue`,children:e.price}),e.chargeType&&(0,U.jsx)(Xf,{size:`xs`,c:`dimmed`,children:e.chargeType})]})})},e.offerId||t)}function dF({items:e=[],title:t=`Available Addons`,showPricing:n=!0,onSelectOffer:r}){let i=e=>{e&&r?.(e)};return(0,U.jsx)(tF,{withBorder:!0,withShadow:!0,children:(0,U.jsxs)(Vy,{gap:`md`,children:[(0,U.jsx)(Xf,{size:`lg`,fw:600,children:t}),(0,U.jsx)(Py,{cols:{base:1,sm:2},spacing:`md`,children:e.map((e,t)=>(0,U.jsx)(uF,{item:e,index:t,showPricing:n,onSelect:i},e.offerId||t))})]})})}function fF({advantage:e}){let{getIcon:t}=sF();return(0,U.jsx)(tF,{withBorder:!0,withShadow:!0,p:16,children:(0,U.jsxs)(Eu,{gap:`sm`,wrap:`nowrap`,children:[(0,U.jsx)(Hb,{variant:`light`,size:`sm`,children:(0,H.createElement)(t(e.key))}),(0,U.jsxs)(Vy,{gap:4,style:{flex:1,minWidth:0},children:[(0,U.jsx)(Xf,{size:`sm`,c:`dimmed`,truncate:!0,children:e.type}),(0,U.jsxs)(Eu,{gap:4,wrap:`nowrap`,children:[(0,U.jsx)(Xf,{size:`md`,fw:600,truncate:!0,children:e.amount}),e.unit&&(0,U.jsx)(Xf,{size:`sm`,c:`dimmed`,truncate:!0,children:e.unit})]})]})]})})}function pF({price:e,priceSuffix:t,withCta:n,ctaLabel:r,onCtaClick:i}){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Jm,{}),(0,U.jsxs)(Eu,{justify:n?`space-between`:`flex-start`,align:`center`,children:[(0,U.jsxs)(Eu,{gap:`xs`,children:[(0,U.jsx)(Xf,{size:`xl`,fw:600,c:`primary`,children:e}),t&&(0,U.jsx)(Xf,{size:`sm`,c:`dimmed`,children:t})]}),n&&i&&(0,U.jsx)(Xf,{size:`md`,fw:600,c:`primary`,style:{cursor:`pointer`},onClick:i,children:r})]})]})}function mF({item:e,onSelectAccount:t}){let n=!!e.billingAccountId;return(0,U.jsx)(dl,{style:{cursor:n?`pointer`:`default`,transition:`all 0.15s ease`,height:`100%`},onClick:()=>t(e.billingAccountId),onMouseEnter:e=>{n&&(e.currentTarget.style.transform=`translateY(-2px)`)},onMouseLeave:e=>{n&&(e.currentTarget.style.transform=``)},children:(0,U.jsx)(tF,{withBorder:!0,withShadow:!0,p:24,style:{height:`100%`},children:(0,U.jsxs)(Vy,{gap:`md`,children:[(0,U.jsx)(Xf,{size:`lg`,fw:600,c:`primary`,children:e.title||`Account Details`}),(0,U.jsx)(Py,{cols:{base:1,sm:2},spacing:`sm`,children:e.advantages?.map(e=>(0,U.jsx)(fF,{advantage:e},e.key))}),e.price&&(0,U.jsx)(pF,{price:e.price,priceSuffix:e.priceSuffix})]})})})}function hF({items:e,title:t=`Details`,advantages:n=[],price:r,priceSuffix:i,ctaLabel:a=`Order Now`,onCtaClick:o,onSelectAccount:s}){let c=e=>{e&&s?.(e)};return e&&e.length>0?(0,U.jsx)(tF,{withBorder:!0,withShadow:!0,children:(0,U.jsxs)(Vy,{gap:`md`,children:[(0,U.jsx)(Xf,{size:`lg`,fw:600,children:t}),(0,U.jsx)(Py,{cols:{base:1,md:2},spacing:`md`,children:e.map((e,t)=>(0,U.jsx)(mF,{item:e,onSelectAccount:c},e.billingAccountId||t))})]})}):(0,U.jsx)(tF,{withBorder:!0,withShadow:!0,p:24,children:(0,U.jsxs)(Vy,{gap:`md`,children:[(0,U.jsx)(Xf,{size:`lg`,fw:600,c:`primary`,children:t}),(0,U.jsx)(Py,{cols:{base:1,sm:2},spacing:`sm`,children:n.map(e=>(0,U.jsx)(fF,{advantage:e},e.key))}),r&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Jm,{}),(0,U.jsxs)(Eu,{justify:`space-between`,align:`center`,children:[(0,U.jsxs)(Eu,{gap:`xs`,children:[(0,U.jsx)(Xf,{size:`xl`,fw:600,c:`primary`,children:r}),i&&(0,U.jsx)(Xf,{size:`sm`,c:`dimmed`,children:i})]}),o&&(0,U.jsx)(jm,{onClick:o,size:`md`,children:a})]})]})]})})}var gF=(0,H.createContext)(void 0);function _F(){let e=(0,H.useContext)(gF);if(!e)throw Error(`VTableContext must be used within a VTable component`);return e}function vF({...e}){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,U.jsx)(`path`,{d:`M6 15L12 9L18 15`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`})})}function yF(e,t,n){return{handleClick:n=>{let r=window.getSelection(),i=r&&r.toString().trim().length>0;n.button===0&&t&&!i&&t(e)},handleMouseDown:t=>{if(t.button===1&&n){t.preventDefault();let r=n(e);r&&window.open(``+r,`_blank`)}}}}var bF={row:`_row_ze3zx_1`,arrow:`_arrow_ze3zx_26`,header:`_header_ze3zx_36`};function xF({column:e,row:t}){let n=(e,t)=>{if(t.render)return t.render(e,0);if(Array.isArray(t.accessor))return t.accessor.map(t=>e[t]).join(` `);if(t.accessor){let n=e[t.accessor];return n?String(n):`-`}return`-`},r=!!e.header,i=n(t,e),a=typeof i==`string`;return(0,U.jsxs)(U.Fragment,{children:[r&&(0,U.jsxs)(Xf,{className:bF.header,children:[e.header,`:`]}),(0,U.jsx)(Xf,{component:`span`,lineClamp:1,fw:500,truncate:!0,title:a?i:void 0,children:i})]})}function SF({row:e,columns:t}){let{onRowClick:n}=_F();return(0,U.jsxs)(q,{className:bF.row,mod:{clickable:!!n},children:[t.map((t,n)=>(0,U.jsx)(Vy,{justify:t.header?`flex-start`:`center`,flex:1,children:(0,U.jsx)(xF,{column:t,row:e})},n)),n&&(0,U.jsx)(q,{className:bF.arrow,children:(0,U.jsx)(gu,{variant:`transparent`,children:(0,U.jsx)(Zk,{})})})]})}var CF={row:`_row_1jau4_1`,box:`_box_1jau4_10`,checkboxWrapper:`_checkboxWrapper_1jau4_38`,collapseWrapper:`_collapseWrapper_1jau4_52`,collapse:`_collapse_1jau4_52`,collapseContent:`_collapseContent_1jau4_75`};function wF(){let{idKey:e,paginatedData:t=[],columns:n=[],withSelection:r,selection:i=[],loading:a,toggleRow:o,withCollapsible:s,isRowCollapsible:c,withMultipleCollapse:l=!0,renderCollapsed:u,onRowClick:d,getRowUrl:f}=_F(),[p,m]=H.useState({}),[h,g]=H.useState({}),_=e=>{g(t=>({...t,[e]:!0})),m(t=>l?{...t,[e]:!t[e]}:{[e]:!t[e]})};return a&&t.length===0?(0,U.jsx)(Vy,{gap:16,children:Array.from({length:3}).map((e,t)=>(0,U.jsx)(Ly,{height:64,radius:`md`},`loading-${t}`))}):(0,U.jsx)(Vy,{className:CF.row,children:t.map((t,a)=>{let l=i.some(n=>n[e]===t[e]),m=t[e],g=typeof m==`string`||typeof m==`number`?m:a,v=p[g]||!1,y=v||h[g],b=s&&(c?c(t,a):!0),{handleClick:x,handleMouseDown:S}=yF(t,d,f);return(0,U.jsxs)(q,{className:CF.box,mod:{"with-selection":r,"with-collapse":b,"is-expanded":v,selected:l},onClick:x,onMouseDown:S,children:[b&&(0,U.jsx)(dl,{className:CF.collapseWrapper,onMouseDown:e=>{e.stopPropagation()},onClick:e=>{e.stopPropagation(),_(g)},children:v?(0,U.jsx)(vF,{width:20,height:20}):(0,U.jsx)(CO,{width:20,height:20})}),r&&(0,U.jsx)(Eu,{className:CF.checkboxWrapper,onClick:e=>{e.stopPropagation(),o(t,a,e)},align:`center`,children:(0,U.jsx)(tm,{checked:l,readOnly:!0})}),(0,U.jsx)(SF,{row:t,columns:n}),b&&u&&(0,U.jsx)(Ji,{expanded:v,className:CF.collapse,children:y?(0,U.jsx)(q,{className:CF.collapseContent,onMouseDown:e=>{e.stopPropagation()},onClick:e=>{e.stopPropagation()},children:u(t,a,{view:`card`})}):null})]},a)})})}var TF={DEFAULT_ALL_DATA_PAGE_SIZE:200,DEFAULT_INITIAL_PAGE:1,DEFAULT_PAGE_SIZE:10},EF=[5,10,20,50,100,200];function DF(e,t){return Array.isArray(e)?e.includes(t):e===t}function OF(e){if(!e.length)return!0;for(let t of e)if(!(`group`in t)||t.items.length>0)return!1;return!0}function kF(e,t=new Set){if(Array.isArray(e))for(let n of e)if(nm(n))kF(n.items,t);else{if(n.value===void 0)throw Error(`Each option must have value property`);if(typeof n.value!=`string`)throw Error(`Option value must be a string, other data formats are not supported, got ${typeof n.value}`);if(t.has(n.value))throw Error(`Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);t.add(n.value)}}var AF=0,jF=1,MF=2,NF=4;function PF(e){return()=>e}function FF(e){e()}function IF(e,t){return n=>e(t(n))}function LF(e,t){return()=>e(t)}function RF(e,t){return n=>e(t,n)}function zF(e){return e!==void 0}function BF(...e){return()=>{e.map(FF)}}function VF(){}function HF(e,t){return t(e),e}function UF(e,t){return t(e)}function WF(...e){return e}function GF(e,t){return e(jF,t)}function KF(e,t){e(AF,t)}function qF(e){e(MF)}function JF(e){return e(NF)}function YF(e,t){return GF(e,RF(t,AF))}function XF(e,t){let n=e(jF,e=>{n(),t(e)});return n}function ZF(e){let t,n;return r=>i=>{t=i,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function QF(e,t){return e===t}function $F(e=QF){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function eI(e){return t=>n=>{e(n)&&t(n)}}function tI(e){return t=>IF(t,e)}function nI(e){return t=>()=>{t(e)}}function $(e,...t){let n=sI(...t);return((t,r)=>{switch(t){case MF:qF(e);return;case jF:return GF(e,n(r))}})}function rI(e,t){return n=>r=>{n(t=e(t,r))}}function iI(e){return t=>n=>{e>0?e--:t(n)}}function aI(e){let t=null,n;return r=>i=>{t=i,!n&&(n=setTimeout(()=>{n=void 0,r(t)},e))}}function oI(...e){let t=Array(e.length),n=0,r=null,i=2**e.length-1;return e.forEach((e,a)=>{let o=2**a;GF(e,e=>{let s=n;n|=o,t[a]=e,s!==i&&n===i&&r&&(r(),r=null)})}),e=>a=>{let o=()=>{e([a].concat(t))};n===i?o():r=o}}function sI(...e){return t=>e.reduceRight(UF,t)}function cI(e){let t,n,r=()=>t?.();return function(i,a){switch(i){case jF:return a?n===a?void 0:(r(),n=a,t=GF(e,a),t):(r(),VF);case MF:r(),n=null;return}}}function lI(e){let t=e,n=dI();return((e,r)=>{switch(e){case AF:t=r;break;case jF:r(t);break;case NF:return t}return n(e,r)})}function uI(e,t){return HF(lI(t),t=>YF(e,t))}function dI(){let e=[];return((t,n)=>{switch(t){case AF:e.slice().forEach(e=>{e(n)});return;case MF:e.splice(0,e.length);return;case jF:return e.push(n),()=>{let t=e.indexOf(n);t>-1&&e.splice(t,1)}}})}function fI(e){return HF(dI(),t=>YF(e,t))}function pI(e,t=[],{singleton:n}={singleton:!0}){return{constructor:e,dependencies:t,id:mI(),singleton:n}}var mI=()=>Symbol();function hI(e){let t=new Map,n=({constructor:e,dependencies:r,id:i,singleton:a})=>{if(a&&t.has(i))return t.get(i);let o=e(r.map(e=>n(e)));return a&&t.set(i,o),o};return n(e)}function gI(...e){let t=dI(),n=Array(e.length),r=0,i=2**e.length-1;return e.forEach((e,a)=>{let o=2**a;GF(e,e=>{n[a]=e,r|=o,r===i&&KF(t,n)})}),function(e,a){switch(e){case MF:qF(t);return;case jF:return r===i&&a(n),GF(t,a)}}}function _I(e,t=QF){return $(e,$F(t))}function vI(...e){return function(t,n){switch(t){case MF:return;case jF:return BF(...e.map(e=>GF(e,n)))}}}var yI={DEBUG:0,INFO:1,WARN:2,ERROR:3},bI={[yI.DEBUG]:`debug`,[yI.ERROR]:`error`,[yI.INFO]:`log`,[yI.WARN]:`warn`},xI=()=>typeof globalThis>`u`?window:globalThis,SI=pI(()=>{let e=lI(yI.ERROR);return{log:lI((t,n,r=yI.INFO)=>{r>=(xI().VIRTUOSO_LOG_LEVEL??JF(e))&&console[bI[r]](`%creact-virtuoso: %c%s %o`,`color: #0253b3; font-weight: bold`,`color: initial`,t,n)}),logLevel:e}},[],{singleton:!0});function CI(e,t,n){return wI(e,t,n).callbackRef}function wI(e,t,n){let r=H.useRef(null),i=e=>{},a=H.useMemo(()=>typeof ResizeObserver<`u`?new ResizeObserver(t=>{let r=()=>{let n=t[0].target;n.offsetParent!==null&&e(n)};n?r():requestAnimationFrame(r)}):null,[e,n]);return i=e=>{e&&t?(a?.observe(e),r.current=e):(r.current&&a?.unobserve(r.current),r.current=null)},{callbackRef:i,ref:r}}function TI(e,t,n,r,i,a,o,s,c){return wI(H.useCallback(n=>{let c=EI(n.children,t,s?`offsetWidth`:`offsetHeight`,i),l=n.parentElement;for(;l.dataset.virtuosoScroller===void 0;)l=l.parentElement;let u=l.lastElementChild.dataset.viewportType===`window`,d;u&&(d=l.ownerDocument.defaultView);let f=o?s?o.scrollLeft:o.scrollTop:u?s?d.scrollX||d.document.documentElement.scrollLeft:d.scrollY||d.document.documentElement.scrollTop:s?l.scrollLeft:l.scrollTop,p=o?s?o.scrollWidth:o.scrollHeight:u?s?d.document.documentElement.scrollWidth:d.document.documentElement.scrollHeight:s?l.scrollWidth:l.scrollHeight,m=o?s?o.offsetWidth:o.offsetHeight:u?s?d.innerWidth:d.innerHeight:s?l.offsetWidth:l.offsetHeight;r({scrollHeight:p,scrollTop:Math.max(f,0),viewportHeight:m}),a?.(s?DI(`column-gap`,getComputedStyle(n).columnGap,i):DI(`row-gap`,getComputedStyle(n).rowGap,i)),c!==null&&e(c)},[e,t,i,a,o,r,s]),n,c)}function EI(e,t,n,r){let i=e.length;if(i===0)return null;let a=[];for(let o=0;o<i;o++){let i=e.item(o);if(i.dataset.index===void 0)continue;let s=parseInt(i.dataset.index),c=parseFloat(i.dataset.knownSize),l=t(i,n);if(l===0&&r(`Zero-sized element, this should not happen`,{child:i},yI.ERROR),l===c)continue;let u=a[a.length-1];a.length===0||u.size!==l||u.endIndex!==s-1?a.push({endIndex:s,size:l,startIndex:s}):a[a.length-1].endIndex++}return a}function DI(e,t,n){return t!==`normal`&&t?.endsWith(`px`)!==!0&&n(`${e} was not resolved to pixel value correctly`,t,yI.WARN),t===`normal`?0:parseInt(t??`0`,10)}function OI(e,t,n){let r=H.useRef(null),i=H.useCallback(n=>{if(!n?.offsetParent)return;let i=n.getBoundingClientRect(),a=i.width,s,c;if(t){let e=t.getBoundingClientRect(),n=i.top-e.top;c=e.height-Math.max(0,n),s=n+t.scrollTop}else{let e=o.current.ownerDocument.defaultView;c=e.innerHeight-Math.max(0,i.top),s=i.top+e.scrollY}r.current={listHeight:i.height,offsetTop:s,visibleHeight:c,visibleWidth:a},e(r.current)},[e,t]),{callbackRef:a,ref:o}=wI(i,!0,n),s=H.useCallback(()=>{i(o.current)},[i,o]);return H.useEffect(()=>{if(t){t.addEventListener(`scroll`,s);let e=new ResizeObserver(()=>{requestAnimationFrame(s)});return e.observe(t),()=>{t.removeEventListener(`scroll`,s),e.unobserve(t)}}let e=o.current?.ownerDocument.defaultView;return e?.addEventListener(`scroll`,s),e?.addEventListener(`resize`,s),()=>{e?.removeEventListener(`scroll`,s),e?.removeEventListener(`resize`,s)}},[s,t,o]),a}var kI=pI(()=>{let e=dI(),t=dI(),n=lI(0),r=dI(),i=lI(0),a=dI(),o=dI(),s=lI(0),c=lI(0),l=lI(0),u=lI(0),d=dI(),f=dI(),p=lI(!1),m=lI(!1),h=lI(!1);return YF($(e,tI(({scrollTop:e})=>e)),t),YF($(e,tI(({scrollHeight:e})=>e)),o),YF(t,i),{deviation:n,fixedFooterHeight:l,fixedHeaderHeight:c,footerHeight:u,headerHeight:s,horizontalDirection:m,scrollBy:f,scrollContainerState:e,scrollHeight:o,scrollingInProgress:p,scrollTo:d,scrollTop:t,skipAnimationFrameInResizeObserver:h,smoothScrollTargetReached:r,statefulScrollTop:i,viewportHeight:a}},[],{singleton:!0}),AI={lvl:0};function jI(e,t){let n=e.length;if(n===0)return[];let{index:r,value:i}=t(e[0]),a=[];for(let o=1;o<n;o++){let{index:n,value:s}=t(e[o]);a.push({end:n-1,start:r,value:i}),r=n,i=s}return a.push({end:1/0,start:r,value:i}),a}function MI(e){return e===AI}function NI(e,t){if(!MI(e))return t===e.k?e.v:t<e.k?NI(e.l,t):NI(e.r,t)}function PI(e,t,n=`k`){if(MI(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])<t){let r=PI(e.r,t,n);return r[0]===-1/0?[e.k,e.v]:r}return PI(e.l,t,n)}function FI(e,t,n){return MI(e)?KI(t,n,1):t===e.k?HI(e,{k:t,v:n}):t<e.k?qI(HI(e,{l:FI(e.l,t,n)})):qI(HI(e,{r:FI(e.r,t,n)}))}function II(){return AI}function LI(e,t,n){if(MI(e))return[];let r=PI(e,t)[0];return XI(BI(e,r,n))}function RI(e,t){if(MI(e))return AI;let{k:n,l:r,r:i}=e;if(t===n){if(MI(r))return i;if(MI(i))return r;let[t,n]=GI(r);return VI(HI(e,{k:t,l:UI(r),v:n}))}return VI(t<n?HI(e,{l:RI(r,t)}):HI(e,{r:RI(i,t)}))}function zI(e){return MI(e)?[]:[...zI(e.l),{k:e.k,v:e.v},...zI(e.r)]}function BI(e,t,n){if(MI(e))return[];let{k:r,l:i,r:a,v:o}=e,s=[];return r>t&&(s=s.concat(BI(i,t,n))),r>=t&&r<=n&&s.push({k:r,v:o}),r<=n&&(s=s.concat(BI(a,t,n))),s}function VI(e){let{l:t,lvl:n,r}=e;if(r.lvl>=n-1&&t.lvl>=n-1)return e;if(n>r.lvl+1){if(WI(t))return JI(HI(e,{lvl:n-1}));if(!MI(t)&&!MI(t.r))return HI(t.r,{l:HI(t,{r:t.r.l}),lvl:n,r:HI(e,{l:t.r.r,lvl:n-1})});throw Error(`Unexpected empty nodes`)}if(WI(e))return YI(HI(e,{lvl:n-1}));if(!MI(r)&&!MI(r.l)){let t=r.l,i=WI(t)?r.lvl-1:r.lvl;return HI(t,{l:HI(e,{lvl:n-1,r:t.l}),lvl:t.lvl+1,r:YI(HI(r,{l:t.r,lvl:i}))})}throw Error(`Unexpected empty nodes`)}function HI(e,t){return KI(t.k===void 0?e.k:t.k,t.v===void 0?e.v:t.v,t.lvl===void 0?e.lvl:t.lvl,t.l===void 0?e.l:t.l,t.r===void 0?e.r:t.r)}function UI(e){return MI(e.r)?e.l:VI(HI(e,{r:UI(e.r)}))}function WI(e){return MI(e)||e.lvl>e.r.lvl}function GI(e){return MI(e.r)?[e.k,e.v]:GI(e.r)}function KI(e,t,n,r=AI,i=AI){return{k:e,l:r,lvl:n,r:i,v:t}}function qI(e){return YI(JI(e))}function JI(e){let{l:t}=e;return!MI(t)&&t.lvl===e.lvl?HI(t,{r:HI(e,{l:t.r})}):e}function YI(e){let{lvl:t,r:n}=e;return!MI(n)&&!MI(n.r)&&n.lvl===t&&n.r.lvl===t?HI(n,{l:HI(e,{r:n.l}),lvl:t+1}):e}function XI(e){return jI(e,({k:e,v:t})=>({index:e,value:t}))}function ZI(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}function QI(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}var $I=pI(()=>({recalcInProgress:lI(!1)}),[],{singleton:!0});function eL(e,t,n){return e[tL(e,t,n)]}function tL(e,t,n,r=0){let i=e.length-1;for(;r<=i;){let a=Math.floor((r+i)/2),o=e[a],s=n(o,t);if(s===0)return a;if(s===-1){if(i-r<2)return a-1;i=a-1}else{if(i===r)return a;r=a+1}}throw Error(`Failed binary finding record in array - ${e.join(`,`)}, searched for ${t}`)}function nL(e,t,n,r){let i=tL(e,t,r),a=tL(e,n,r,i);return e.slice(i,a+1)}function rL(e,t){return Math.round(e.getBoundingClientRect()[t])}function iL(e){return!MI(e.groupOffsetTree)}function aL({index:e},t){return t===e?0:t<e?-1:1}function oL(){return{groupIndices:[],groupOffsetTree:II(),lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:II()}}function sL(e,t){let n=MI(e)?0:1/0;for(let r of t){let{endIndex:t,size:i,startIndex:a}=r;if(n=Math.min(n,a),MI(e)){e=FI(e,0,i);continue}let o=LI(e,a-1,t+1);if(o.some(yL(r)))continue;let s=!1,c=!1;for(let{end:n,start:r,value:a}of o)s?(t>=r||i===a)&&(e=RI(e,r)):(c=a!==i,s=!0),n>t&&t>=r&&a!==i&&(e=FI(e,t+1,a));c&&(e=FI(e,a,i))}return[e,n]}function cL(e){return typeof e.groupIndex<`u`}function lL({offset:e},t){return t===e?0:t<e?-1:1}function uL(e,t,n){if(t.length===0)return 0;let{index:r,offset:i,size:a}=eL(t,e,aL),o=e-r,s=a*o+(o-1)*n+i;return s>0?s+n:s}function dL(e,t){if(!iL(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function fL(e,t,n){if(cL(e))return t.groupIndices[e.groupIndex]+1;let r=dL(e.index===`LAST`?n:e.index,t);return r=Math.max(0,r,Math.min(n,r)),r}function pL(e,t,n,r=0){return r>0&&(t=Math.max(t,eL(e,r,aL).offset)),jI(nL(e,t,n,lL),vL)}function mL(e,[t,n,r,i]){t.length>0&&r(`received item sizes`,t,yI.DEBUG);let a=e.sizeTree,o=a,s=0;if(n.length>0&&MI(a)&&t.length===2){let e=t[0].size,r=t[1].size;o=n.reduce((t,n)=>FI(FI(t,n,e),n+1,r),o)}else [o,s]=sL(o,t);if(o===a)return e;let{lastIndex:c,lastOffset:l,lastSize:u,offsetTree:d}=_L(e.offsetTree,s,o,i);return{groupIndices:n,groupOffsetTree:n.reduce((e,t)=>FI(e,t,uL(t,d,i)),II()),lastIndex:c,lastOffset:l,lastSize:u,offsetTree:d,sizeTree:o}}function hL(e){return zI(e).map(({k:e,v:t},n,r)=>{let i=r[n+1];return{endIndex:i===void 0?1/0:i.k-1,size:t,startIndex:e}})}function gL(e,t){let n=0,r=0;for(;n<e;)n+=t[r+1]-t[r]-1,r++;return r-(n===e?0:1)}function _L(e,t,n,r){let i=e,a=0,o=0,s=0,c=0;if(t!==0){c=tL(i,t-1,aL),s=i[c].offset;let e=PI(n,t-1);a=e[0],o=e[1],i.length&&i[c].size===PI(n,t)[1]&&--c,i=i.slice(0,c+1)}else i=[];for(let{start:e,value:c}of LI(n,t,1/0)){let t=e-a,n=t*o+s+t*r;i.push({index:e,offset:n,size:c}),a=e,s=n,o=c}return{lastIndex:a,lastOffset:s,lastSize:o,offsetTree:i}}function vL(e){return{index:e.index,value:e}}function yL(e){let{endIndex:t,size:n,startIndex:r}=e;return e=>e.start===r&&(e.end===t||e.end===1/0)&&e.value===n}var bL={offsetHeight:`height`,offsetWidth:`width`},xL=pI(([{log:e},{recalcInProgress:t}])=>{let n=dI(),r=dI(),i=uI(r,0),a=dI(),o=dI(),s=lI(0),c=lI([]),l=lI(void 0),u=lI(void 0),d=lI(void 0),f=lI(void 0),p=lI((e,t)=>rL(e,bL[t])),m=lI(void 0),h=lI(0),g=oL(),_=uI($(n,oI(c,e,h),rI(mL,g),$F()),g),v=uI($(c,$F(),rI((e,t)=>({current:t,prev:e.current}),{current:[],prev:[]}),tI(({prev:e})=>e)),[]);YF($(c,eI(e=>e.length>0),oI(_,h),tI(([e,t,n])=>{let r=e.reduce((e,r,i)=>FI(e,r,uL(r,t.offsetTree,n)||i),II());return{...t,groupIndices:e,groupOffsetTree:r}})),_),YF($(r,oI(_),eI(([e,{lastIndex:t}])=>e<t),tI(([e,{lastIndex:t,lastSize:n}])=>[{endIndex:t,size:n,startIndex:e}])),n),YF(l,u);let y=uI($(l,tI(e=>e===void 0)),!0);YF($(u,eI(e=>e!==void 0&&MI(JF(_).sizeTree)),tI(e=>{let t=JF(d),n=JF(c).length>0;return t!==void 0&&t!==0?n?[{endIndex:0,size:t,startIndex:0},{endIndex:1,size:e,startIndex:1}]:[]:[{endIndex:0,size:e,startIndex:0}]})),n),YF($(f,eI(e=>e!==void 0&&e.length>0&&MI(JF(_).sizeTree)),tI(e=>{let t=[],n=e[0],r=0;for(let i=1;i<e.length;i++){let a=e[i];a!==n&&(t.push({endIndex:i-1,size:n,startIndex:r}),n=a,r=i)}return t.push({endIndex:e.length-1,size:n,startIndex:r}),t})),n),YF($(c,oI(d,u),eI(([,e,t])=>e!==void 0&&t!==void 0),tI(([e,t,n])=>{let r=[];for(let i=0;i<e.length;i++){let a=e[i],o=e[i+1];r.push({startIndex:a,endIndex:a,size:t}),o!==void 0&&r.push({startIndex:a+1,endIndex:o-1,size:n})}return r})),n);let b=fI($(n,oI(_),rI(({sizes:e},[t,n])=>({changed:n!==e,sizes:n}),{changed:!1,sizes:g}),tI(e=>e.changed)));GF($(s,rI((e,t)=>({diff:e.prev-t,prev:t}),{diff:0,prev:0}),tI(e=>e.diff)),e=>{let{groupIndices:n}=JF(_);if(e>0)KF(t,!0),KF(a,e+gL(e,n));else if(e<0){let t=JF(v);t.length>0&&(e-=gL(-e,t)),KF(o,e)}}),GF($(s,oI(e)),([e,t])=>{e<0&&t("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:s},yI.ERROR)});let x=fI(a);YF($(a,oI(_),tI(([e,t])=>{let n=t.groupIndices.length>0,r=[],i=t.lastSize;if(n){let n=NI(t.sizeTree,0),a=0,o=0;for(;a<e;){let e=t.groupIndices[o],s=t.groupIndices.length===o+1?1/0:t.groupIndices[o+1]-e-1;r.push({endIndex:e,size:n,startIndex:e}),r.push({endIndex:e+1+s-1,size:i,startIndex:e+1}),o++,a+=s+1}let s=zI(t.sizeTree);return a!==e&&s.shift(),s.reduce((t,{k:n,v:r})=>{let i=t.ranges;return t.prevSize!==0&&(i=[...t.ranges,{endIndex:n+e-1,size:t.prevSize,startIndex:t.prevIndex}]),{prevIndex:n+e,prevSize:r,ranges:i}},{prevIndex:e,prevSize:0,ranges:r}).ranges}return zI(t.sizeTree).reduce((t,{k:n,v:r})=>({prevIndex:n+e,prevSize:r,ranges:[...t.ranges,{endIndex:n+e-1,size:t.prevSize,startIndex:t.prevIndex}]}),{prevIndex:0,prevSize:i,ranges:[]}).ranges})),n);let S=fI($(o,oI(_,h),tI(([e,{offsetTree:t},n])=>uL(-e,t,n))));return YF($(o,oI(_,h),tI(([e,t,n])=>{if(t.groupIndices.length>0){if(MI(t.sizeTree))return t;let r=II(),i=JF(v),a=0,o=0,s=0;for(;a<-e;){s=i[o];let e=i[o+1]-s-1;o++,a+=e+1}if(r=zI(t.sizeTree).reduce((t,{k:n,v:r})=>FI(t,Math.max(0,n+e),r),r),a!==-e){let n=NI(t.sizeTree,s);r=FI(r,0,n);let i=PI(t.sizeTree,-e+1)[1];r=FI(r,1,i)}return{...t,sizeTree:r,..._L(t.offsetTree,0,r,n)}}let r=zI(t.sizeTree).reduce((t,{k:n,v:r})=>FI(t,Math.max(0,n+e),r),II());return{...t,sizeTree:r,..._L(t.offsetTree,0,r,n)}})),_),{beforeUnshiftWith:x,data:m,defaultItemSize:u,firstItemIndex:s,fixedItemSize:l,fixedGroupSize:d,gap:h,groupIndices:c,heightEstimates:f,itemSize:p,listRefresh:b,shiftWith:o,shiftWithOffset:S,sizeRanges:n,sizes:_,statefulTotalCount:i,totalCount:r,trackItemSizes:y,unshiftWith:a}},WF(SI,$I),{singleton:!0});function SL(e){return e.reduce((e,t)=>(e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e),{groupIndices:[],totalCount:0})}var CL=pI(([{groupIndices:e,sizes:t,totalCount:n},{headerHeight:r,scrollTop:i}])=>{let a=dI(),o=dI(),s=fI($(a,tI(SL)));return YF($(s,tI(e=>e.totalCount)),n),YF($(s,tI(e=>e.groupIndices)),e),YF($(gI(i,t,r),eI(([e,t])=>iL(t)),tI(([e,t,n])=>PI(t.groupOffsetTree,Math.max(e-n,0),`v`)[0]),$F(),tI(e=>[e])),o),{groupCounts:a,topItemsIndexes:o}},WF(xL,kI)),wL=pI(([{log:e}])=>{let t=lI(!1),n=fI($(t,eI(e=>e),$F()));return GF(t,t=>{t&&JF(e)(`props updated`,{},yI.DEBUG)}),{didMount:n,propsReady:t}},WF(SI),{singleton:!0}),TL=typeof document<`u`&&`scrollBehavior`in document.documentElement.style;function EL(e){let t=typeof e==`number`?{index:e}:e;return t.align||=`start`,(!t.behavior||!TL)&&(t.behavior=`auto`),t.offset===void 0&&(t.offset=0),t}var DL=pI(([{gap:e,listRefresh:t,sizes:n,totalCount:r},{fixedFooterHeight:i,fixedHeaderHeight:a,footerHeight:o,headerHeight:s,scrollingInProgress:c,scrollTo:l,smoothScrollTargetReached:u,viewportHeight:d},{log:f}])=>{let p=dI(),m=dI(),h=lI(0),g=null,_=null,v=null;function y(){g!==null&&(g(),g=null),v!==null&&(v(),v=null),_&&=(clearTimeout(_),null),KF(c,!1)}return YF($(p,oI(n,d,r,h,s,o,f),oI(e,a,i),tI(([[e,n,r,i,a,o,s,l],d,f,h])=>{let b=EL(e),{align:x,behavior:S,offset:C}=b,w=i-1,T=fL(b,n,w),E=uL(T,n.offsetTree,d)+o;x===`end`?(E+=f+PI(n.sizeTree,T)[1]-r+h,T===w&&(E+=s)):x===`center`?E+=(f+PI(n.sizeTree,T)[1]-r+h)/2:E-=a,C!==void 0&&C!==0&&(E+=C);let D=t=>{y(),t?(l(`retrying to scroll to`,{location:e},yI.DEBUG),KF(p,e)):(KF(m,!0),l(`list did not change, scroll successful`,{},yI.DEBUG))};if(y(),S===`smooth`){let e=!1;v=GF(t,t=>{e||=t}),g=XF(u,()=>{D(e)})}else g=XF($(t,OL(150)),D);return _=setTimeout(()=>{y()},1200),KF(c,!0),l(`scrolling from index to`,{behavior:S,index:T,top:E},yI.DEBUG),{behavior:S,top:E}})),l),{scrollTargetReached:m,scrollToIndex:p,topListHeight:h}},WF(xL,kI,SI),{singleton:!0});function OL(e){return t=>{let n=setTimeout(()=>{t(!1)},e);return e=>{e&&(t(!0),clearTimeout(n))}}}function kL(e,t){e===0?t():requestAnimationFrame(()=>{kL(e-1,t)})}function AL(e,t){let n=t-1;return typeof e==`number`?e:e.index===`LAST`?n:e.index}var jL=pI(([{defaultItemSize:e,listRefresh:t,sizes:n},{scrollTop:r},{scrollTargetReached:i,scrollToIndex:a},{didMount:o}])=>{let s=lI(!0),c=lI(0),l=lI(!0);return YF($(o,oI(c),eI(([e,t])=>t!==0),nI(!1)),s),YF($(o,oI(c),eI(([e,t])=>t!==0),nI(!1)),l),GF($(gI(t,o),oI(s,n,e,l),eI(([[,e],t,{sizeTree:n},r,i])=>e&&(!MI(n)||zF(r))&&!t&&!i),oI(c)),([,e])=>{XF(i,()=>{KF(l,!0)}),kL(4,()=>{XF(r,()=>{KF(s,!0)}),KF(a,e)})}),{initialItemFinalLocationReached:l,initialTopMostItemIndex:c,scrolledToInitialItem:s}},WF(xL,kI,DL,wL),{singleton:!0});function ML(e,t){return Math.abs(e-t)<1.01}var NL=`up`,PL=`down`,FL=`none`,IL={atBottom:!1,notAtBottomBecause:`NOT_SHOWING_LAST_ITEM`,state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},LL=0,RL=pI(([{footerHeight:e,headerHeight:t,scrollBy:n,scrollContainerState:r,scrollTop:i,viewportHeight:a}])=>{let o=lI(!1),s=lI(!0),c=dI(),l=dI(),u=lI(4),d=lI(LL),f=uI($(vI($(_I(i),iI(1),nI(!0)),$(_I(i),iI(1),nI(!1),ZF(100))),$F()),!1),p=uI($(vI($(n,nI(!0)),$(n,nI(!1),ZF(200))),$F()),!1);YF($(gI(_I(i),_I(d)),tI(([e,t])=>e<=t),$F()),s),YF($(s,aI(50)),l);let m=fI($(gI(r,_I(a),_I(t),_I(e),_I(u)),rI((e,[{scrollHeight:t,scrollTop:n},r,i,a,o])=>{let s=n+r-t>-o,c={scrollHeight:t,scrollTop:n,viewportHeight:r};if(s){let t,r;return n>e.state.scrollTop?(t=`SCROLLED_DOWN`,r=e.state.scrollTop-n):(t=`SIZE_DECREASED`,r=e.state.scrollTop-n||e.scrollTopDelta),{atBottom:!0,atBottomBecause:t,scrollTopDelta:r,state:c}}let l;return l=c.scrollHeight>e.state.scrollHeight?`SIZE_INCREASED`:r<e.state.viewportHeight?`VIEWPORT_HEIGHT_DECREASING`:n<e.state.scrollTop?`SCROLLING_UPWARDS`:`NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM`,{atBottom:!1,notAtBottomBecause:l,state:c}},IL),$F((e,t)=>e!==void 0&&e.atBottom===t.atBottom))),h=uI($(r,rI((e,{scrollHeight:t,scrollTop:n,viewportHeight:r})=>{if(!ML(e.scrollHeight,t)){let i=t-(n+r)<1;return e.scrollTop!==n&&i?{changed:!0,jump:e.scrollTop-n,scrollHeight:t,scrollTop:n}:{changed:!0,jump:0,scrollHeight:t,scrollTop:n}}return{changed:!1,jump:0,scrollHeight:t,scrollTop:n}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),eI(e=>e.changed),tI(e=>e.jump)),0);YF($(m,tI(e=>e.atBottom)),o),YF($(o,aI(50)),c);let g=lI(PL);YF($(r,tI(({scrollTop:e})=>e),$F(),rI((e,t)=>JF(p)?{direction:e.direction,prevScrollTop:t}:{direction:t<e.prevScrollTop?NL:PL,prevScrollTop:t},{direction:PL,prevScrollTop:0}),tI(e=>e.direction)),g),YF($(r,aI(50),nI(FL)),g);let _=lI(0);return YF($(f,eI(e=>!e),nI(0)),_),YF($(i,aI(100),oI(f),eI(([e,t])=>t),rI(([e,t],[n])=>[t,n],[0,0]),tI(([e,t])=>t-e)),_),{atBottomState:m,atBottomStateChange:c,atBottomThreshold:u,atTopStateChange:l,atTopThreshold:d,isAtBottom:o,isAtTop:s,isScrolling:f,lastJumpDueToItemResize:h,scrollDirection:g,scrollVelocity:_}},WF(kI)),zL=`top`,BL=`bottom`,VL=`none`;function HL(e,t,n){return typeof e==`number`?n===NL&&t===zL||n===PL&&t===BL?e:0:n===NL?t===zL?e.main:e.reverse:t===BL?e.main:e.reverse}function UL(e,t){return typeof e==`number`?e:e[t]??0}var WL=pI(([{deviation:e,fixedHeaderHeight:t,headerHeight:n,scrollTop:r,viewportHeight:i}])=>{let a=dI(),o=lI(0),s=lI(0),c=lI(0);return{increaseViewportBy:s,listBoundary:a,overscan:c,topListHeight:o,visibleRange:uI($(gI(_I(r),_I(i),_I(n),_I(a,QI),_I(c),_I(o),_I(t),_I(e),_I(s)),tI(([e,t,n,[r,i],a,o,s,c,l])=>{let u=e-c,d=o+s,f=Math.max(n-u,0),p=VL,m=UL(l,zL),h=UL(l,BL);return r-=c,r+=n+s,i+=n+s,i-=c,r>e+d-m&&(p=NL),i<e-f+t+h&&(p=PL),p===VL?null:[Math.max(u-n-HL(a,zL,p)-m,0),u-f-s+t+HL(a,BL,p)+h]}),eI(e=>e!==null),$F(QI)),[0,0])}},WF(kI),{singleton:!0});function GL(e,t,n){if(iL(t)){let r=dL(e,t);return[{index:PI(t.groupOffsetTree,r)[0],offset:0,size:0},{data:n?.[0],index:r,offset:0,size:0}]}return[{data:n?.[0],index:e,offset:0,size:0}]}var KL={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function qL(e,t,n,r,i,a){let{lastIndex:o,lastOffset:s,lastSize:c}=i,l=0,u=0;if(e.length>0){l=e[0].offset;let t=e[e.length-1];u=t.offset+t.size}let d=n-o,f=s+d*c+(d-1)*r,p=l,m=f-u;return{bottom:u,firstItemIndex:a,items:YL(e,i,a),offsetBottom:m,offsetTop:l,top:p,topItems:YL(t,i,a),topListHeight:t.reduce((e,t)=>t.size+e,0),totalCount:n}}function JL(e,t,n,r,i,a){let o=0;if(n.groupIndices.length>0)for(let t of n.groupIndices){if(t-o>=e)break;o++}let s=e+o,c=AL(t,s);return qL(Array.from({length:s}).map((e,t)=>({data:a[t+c],index:t+c,offset:0,size:0})),[],s,i,n,r)}function YL(e,t,n){if(e.length===0)return[];if(!iL(t))return e.map(e=>({...e,index:e.index+n,originalIndex:e.index}));let r=e[0].index,i=e[e.length-1].index,a=[],o=LI(t.groupOffsetTree,r,i),s,c=0;for(let r of e){(!s||s.end<r.index)&&(s=o.shift(),c=t.groupIndices.indexOf(s.start));let e;e=r.index===s.start?{index:c,type:`group`}:{groupIndex:c,index:r.index-(c+1)+n},a.push({...e,data:r.data,offset:r.offset,originalIndex:r.index,size:r.size})}return a}function XL(e,t){return e===void 0?0:typeof e==`number`?e:e[t]??0}var ZL=pI(([{data:e,firstItemIndex:t,gap:n,sizes:r,totalCount:i},a,{listBoundary:o,topListHeight:s,visibleRange:c},{initialTopMostItemIndex:l,scrolledToInitialItem:u},{topListHeight:d},f,{didMount:p},{recalcInProgress:m}])=>{let h=lI([]),g=lI(0),_=dI(),v=lI(0);YF(a.topItemsIndexes,h);let y=uI($(gI(p,m,_I(c,QI),_I(i),_I(r),_I(l),u,_I(h),_I(t),_I(n),_I(v),e),eI(([e,t,,n,,,,,,,,r])=>{let i=r!==void 0&&r.length!==n;return e&&!t&&!i}),tI(([,,[e,t],n,r,i,a,o,s,c,l,u])=>{let d=r,{offsetTree:f,sizeTree:p}=d,m=JF(g);if(n===0)return{...KL,totalCount:n};if(e===0&&t===0)return m===0?{...KL,totalCount:n}:JL(m,i,r,s,c,u||[]);if(MI(p))return m>0?null:qL(GL(AL(i,n),d,u),[],n,c,d,s);let h=[];if(o.length>0){let e=o[0],t=o[o.length-1],n=0;for(let r of LI(p,e,t)){let i=r.value,a=Math.max(r.start,e),o=Math.min(r.end,t);for(let e=a;e<=o;e++)h.push({data:u?.[e],index:e,offset:n,size:i}),n+=i}}if(!a)return qL([],h,n,c,d,s);let _=o.length>0?o[o.length-1]+1:0,v=pL(f,e,t,_);if(v.length===0)return null;let y=n-1,b=HF([],n=>{for(let r of v){let i=r.value,a=i.offset,o=r.start,s=i.size;if(i.offset<e){o+=Math.floor((e-i.offset+c)/(s+c));let t=o-r.start;a+=t*s+t*c}o<_&&(a+=(_-o)*s,o=_);let l=Math.min(r.end,y);for(let e=o;e<=l&&!(a>=t);e++)n.push({data:u?.[e],index:e,offset:a,size:s}),a+=s+c}}),x=XL(l,zL),S=XL(l,BL);if(b.length>0&&(x>0||S>0)){let e=b[0],t=b[b.length-1];if(x>0&&e.index>_){let t=Math.min(x,e.index-_),n=[],r=e.offset;for(let i=e.index-1;i>=e.index-t;i--){let t=LI(p,i,i)[0]?.value??e.size;r-=t+c,n.unshift({data:u?.[i],index:i,offset:r,size:t})}b.unshift(...n)}if(S>0&&t.index<y){let e=Math.min(S,y-t.index),n=t.offset+t.size+c;for(let r=t.index+1;r<=t.index+e;r++){let e=LI(p,r,r)[0]?.value??t.size;b.push({data:u?.[r],index:r,offset:n,size:e}),n+=e+c}}}return qL(b,h,n,c,d,s)}),eI(e=>e!==null),$F()),KL);YF($(e,eI(zF),tI(e=>e?.length)),i),YF($(y,tI(e=>e.topListHeight)),d),YF(d,s),YF($(y,tI(e=>[e.top,e.bottom])),o),YF($(y,tI(e=>e.items)),_);let b=fI($(y,eI(({items:e})=>e.length>0),oI(i,e),eI(([{items:e},t])=>e[e.length-1].originalIndex===t-1),tI(([,e,t])=>[e-1,t]),$F(QI),tI(([e])=>e))),x=fI($(y,aI(200),eI(({items:e,topItems:t})=>e.length>0&&e[0].originalIndex===t.length),tI(({items:e})=>e[0].index),$F()));return{endReached:b,initialItemCount:g,itemsRendered:_,listState:y,minOverscanItemCount:v,rangeChanged:fI($(y,eI(({items:e})=>e.length>0),tI(({items:e})=>{let t=0,n=e.length-1;for(;e[t].type===`group`&&t<n;)t++;for(;e[n].type===`group`&&n>t;)n--;return{endIndex:e[n].index,startIndex:e[t].index}}),$F(ZI))),startReached:x,topItemsIndexes:h,...f}},WF(xL,CL,WL,jL,DL,RL,wL,$I),{singleton:!0}),QL=pI(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:n,headerHeight:r},{listState:i}])=>{let a=dI(),o=uI($(gI(n,e,r,t,i),tI(([e,t,n,r,i])=>e+t+n+r+i.offsetBottom+i.bottom)),0);return YF(_I(o),a),{totalListHeight:o,totalListHeightChanged:a}},WF(kI,ZL),{singleton:!0}),$L=pI(([{viewportHeight:e},{totalListHeight:t}])=>{let n=lI(!1);return{alignToBottom:n,paddingTopAddition:uI($(gI(n,e,t),eI(([e])=>e),tI(([,e,t])=>Math.max(0,e-t)),aI(0),$F()),0)}},WF(kI,QL),{singleton:!0}),eR=pI(()=>({context:lI(null)})),tR=({itemBottom:e,itemTop:t,locationParams:{align:n,behavior:r,...i},viewportBottom:a,viewportTop:o})=>t<o?{...i,align:n??`start`,...r===void 0?{}:{behavior:r}}:e>a?{...i,align:n??`end`,...r===void 0?{}:{behavior:r}}:null,nR=pI(([{gap:e,sizes:t,totalCount:n},{fixedFooterHeight:r,fixedHeaderHeight:i,headerHeight:a,scrollingInProgress:o,scrollTop:s,viewportHeight:c},{scrollToIndex:l}])=>{let u=dI();return YF($(u,oI(t,c,n,a,i,r,s),oI(e),tI(([[e,t,n,r,i,a,s,c],l])=>{let{calculateViewLocation:u=tR,done:d,...f}=e,p=fL(e,t,r-1),m=uL(p,t.offsetTree,l)+i+a,h=m+PI(t.sizeTree,p)[1],g=c+a,_=u({itemBottom:h,itemTop:m,locationParams:f,viewportBottom:c+n-s,viewportTop:g});return _===null?d?.():d&&XF($(o,eI(e=>!e),iI(JF(o)?1:2)),d),_}),eI(e=>e!==null)),l),{scrollIntoView:u}},WF(xL,kI,DL,ZL,SI),{singleton:!0});function rR(e){return e===!1?!1:e===`smooth`?`smooth`:`auto`}var iR=(e,t)=>typeof e==`function`?rR(e(t)):t&&rR(e),aR=pI(([{listRefresh:e,totalCount:t,fixedItemSize:n,data:r},{atBottomState:i,isAtBottom:a},{scrollToIndex:o},{scrolledToInitialItem:s},{didMount:c,propsReady:l},{log:u},{scrollingInProgress:d},{context:f},{scrollIntoView:p}])=>{let m=lI(!1),h=dI(),g=null;function _(e){KF(o,{align:`end`,behavior:e,index:`LAST`})}GF($(gI($(_I(t),iI(1)),c),oI(_I(m),a,s,d),tI(([[e,t],n,r,i,a])=>{let o=t&&i,s=`auto`;return o&&(s=iR(n,r||a),o&&=s!==!1),{followOutputBehavior:s,shouldFollow:o,totalCount:e}}),eI(({shouldFollow:e})=>e)),({followOutputBehavior:t,totalCount:r})=>{g!==null&&(g(),g=null),JF(n)===void 0?g=XF(e,()=>{JF(u)(`following output to `,{totalCount:r},yI.DEBUG),_(t),g=null}):requestAnimationFrame(()=>{JF(u)(`following output to `,{totalCount:r},yI.DEBUG),_(t)})});function v(e){let t=XF(i,t=>{e&&!t.atBottom&&t.notAtBottomBecause===`SIZE_INCREASED`&&g===null&&(JF(u)(`scrolling to bottom due to increased size`,{},yI.DEBUG),_(`auto`))});setTimeout(t,100)}GF($(gI(_I(m),t,l),eI(([e,,t])=>e!==!1&&t),rI(({value:e},[,t])=>({refreshed:e===t,value:t}),{refreshed:!1,value:0}),eI(({refreshed:e})=>e),oI(m,t)),([,e])=>{JF(s)&&v(e!==!1)}),GF(h,()=>{v(JF(m)!==!1)}),GF(gI(_I(m),i),([e,t])=>{e!==!1&&!t.atBottom&&t.notAtBottomBecause===`VIEWPORT_HEIGHT_DECREASING`&&_(`auto`)});let y=lI(null),b=dI();return YF(vI($(_I(r),tI(e=>e?.length??0)),$(_I(t))),b),GF($(gI($(b,iI(1)),c),oI(_I(y),s,d,f),tI(([[e,t],n,r,i,a])=>t&&r&&n?.({context:a,totalCount:e,scrollingInProgress:i})),eI(e=>!!e),aI(0)),t=>{g!==null&&(g(),g=null),JF(n)===void 0?g=XF(e,()=>{JF(u)(`scrolling into view`,{}),KF(p,t),g=null}):requestAnimationFrame(()=>{JF(u)(`scrolling into view`,{}),KF(p,t)})}),{autoscrollToBottom:h,followOutput:m,scrollIntoViewOnChange:y}},WF(xL,RL,DL,jL,wL,SI,kI,eR,nR)),oR=pI(([{data:e,firstItemIndex:t,gap:n,sizes:r},{initialTopMostItemIndex:i},{initialItemCount:a,listState:o},{didMount:s}])=>(YF($(s,oI(a),eI(([,e])=>e!==0),oI(i,r,t,n,e),tI(([[,e],t,n,r,i,a=[]])=>JL(e,t,n,r,i,a))),o),{}),WF(xL,jL,ZL,wL),{singleton:!0}),sR=pI(([{didMount:e},{scrollTo:t},{listState:n}])=>{let r=lI(0);return GF($(e,oI(r),eI(([,e])=>e!==0),tI(([,e])=>({top:e}))),e=>{XF($(n,iI(1),eI(e=>e.items.length>1)),()=>{requestAnimationFrame(()=>{KF(t,e)})})}),{initialScrollTop:r}},WF(wL,kI,ZL),{singleton:!0}),cR=pI(([{scrollVelocity:e}])=>{let t=lI(!1),n=dI(),r=lI(!1);return YF($(e,oI(r,t,n),eI(([e,t])=>t!==!1&&t!==void 0),tI(([e,t,n,r])=>{let{enter:i,exit:a}=t;if(n){if(a(e,r))return!1}else if(i(e,r))return!0;return n}),$F()),t),GF($(gI(t,e,n),oI(r)),([[e,t,n],r])=>{e&&r!==!1&&r!==void 0&&r.change&&r.change(t,n)}),{isSeeking:t,scrollSeekConfiguration:r,scrollSeekRangeChanged:n,scrollVelocity:e}},WF(RL),{singleton:!0}),lR=pI(([{scrollContainerState:e,scrollTo:t}])=>{let n=dI(),r=dI(),i=dI(),a=lI(!1),o=lI(void 0);return YF($(gI(n,r),tI(([{scrollTop:e,viewportHeight:t},{offsetTop:n,listHeight:r}])=>({scrollHeight:r,scrollTop:Math.max(0,e-n),viewportHeight:t}))),e),YF($(t,oI(r),tI(([e,{offsetTop:t}])=>({...e,top:e.top+t}))),i),{customScrollParent:o,useWindowScroll:a,windowScrollContainerState:n,windowScrollTo:i,windowViewportRect:r}},WF(kI)),uR=pI(([{sizeRanges:e,sizes:t},{headerHeight:n,scrollTop:r},{initialTopMostItemIndex:i},{didMount:a},{useWindowScroll:o,windowScrollContainerState:s,windowViewportRect:c}])=>{let l=dI(),u=lI(void 0),d=lI(null),f=lI(null);return YF(s,d),YF(c,f),GF($(l,oI(t,r,o,d,f,n)),([e,t,n,r,i,a,o])=>{let s=hL(t.sizeTree);r&&i!==null&&a!==null&&(n=i.scrollTop-a.offsetTop),n-=o,e({ranges:s,scrollTop:n})}),YF($(u,eI(zF),tI(dR)),i),YF($(a,oI(u),eI(([,e])=>e!==void 0),$F(),tI(([,e])=>e.ranges)),e),{getState:l,restoreStateFrom:u}},WF(xL,kI,jL,wL,lR));function dR(e){return{align:`start`,index:0,offset:e.scrollTop}}var fR=pI(([{topItemsIndexes:e}])=>{let t=lI(0);return YF($(t,eI(e=>e>=0),tI(e=>Array.from({length:e}).map((e,t)=>t))),e),{topItemCount:t}},WF(ZL));function pR(e){let t=!1,n;return(()=>(t||(t=!0,n=e()),n))}var mR=pR(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),hR=pI(([{data:e,defaultItemSize:t,firstItemIndex:n,fixedItemSize:r,fixedGroupSize:i,gap:a,groupIndices:o,heightEstimates:s,itemSize:c,sizeRanges:l,sizes:u,statefulTotalCount:d,totalCount:f,trackItemSizes:p},{initialItemFinalLocationReached:m,initialTopMostItemIndex:h,scrolledToInitialItem:g},_,v,y,b,{scrollToIndex:x},S,{topItemCount:C},{groupCounts:w},T])=>{let{listState:E,minOverscanItemCount:D,topItemsIndexes:O,rangeChanged:k,...A}=b;return YF(k,T.scrollSeekRangeChanged),YF($(T.windowViewportRect,tI(e=>e.visibleHeight)),_.viewportHeight),{data:e,defaultItemHeight:t,firstItemIndex:n,fixedItemHeight:r,fixedGroupHeight:i,gap:a,groupCounts:w,heightEstimates:s,initialItemFinalLocationReached:m,initialTopMostItemIndex:h,scrolledToInitialItem:g,sizeRanges:l,topItemCount:C,topItemsIndexes:O,totalCount:f,...y,groupIndices:o,itemSize:c,listState:E,minOverscanItemCount:D,scrollToIndex:x,statefulTotalCount:d,trackItemSizes:p,rangeChanged:k,...A,...T,..._,sizes:u,...v}},WF(xL,jL,kI,uR,aR,ZL,DL,pI(([{deviation:e,scrollBy:t,scrollingInProgress:n,scrollTop:r},{isAtBottom:i,isScrolling:a,lastJumpDueToItemResize:o,scrollDirection:s},{listState:c},{beforeUnshiftWith:l,gap:u,shiftWithOffset:d,sizes:f},{log:p},{recalcInProgress:m}])=>{let h=fI($(c,oI(o),rI(([,e,t,n],[{bottom:r,items:i,offsetBottom:a,totalCount:o},s])=>{let c=r+a,l=0;return t===o&&e.length>0&&i.length>0&&(i[0].originalIndex===0&&e[0].originalIndex===0||(l=c-n,l!==0&&(l+=s))),[l,i,o,c]},[0,[],0,0]),eI(([e])=>e!==0),oI(r,s,n,i,p,m),eI(([,e,t,n,,,r])=>!r&&!n&&e!==0&&t===NL),tI(([[e],,,,,t])=>(t(`Upward scrolling compensation`,{amount:e},yI.DEBUG),e))));function g(n){n>0?(KF(t,{behavior:`auto`,top:-n}),KF(e,0)):(KF(e,0),KF(t,{behavior:`auto`,top:-n}))}return GF($(h,oI(e,a)),([t,n,r])=>{r&&mR()?KF(e,n-t):g(-t)}),GF($(gI(uI(a,!1),e,m),eI(([e,t,n])=>!e&&!n&&t!==0),tI(([e,t])=>t),aI(1)),g),YF($(d,tI(e=>({top:-e}))),t),GF($(l,oI(f,u),tI(([e,{groupIndices:t,lastSize:n,sizeTree:r},i])=>{function a(e){return e*(n+i)}if(t.length===0)return a(e);let o=0,s=NI(r,0),c=0,l=0;for(;c<e;){c++,o+=s;let n=t.length===l+1?1/0:t[l+1]-t[l]-1;c+n>e&&(o-=s,n=e-c+1),c+=n,o+=a(n),l++}return o})),n=>{KF(e,n),requestAnimationFrame(()=>{KF(t,{top:n}),requestAnimationFrame(()=>{KF(e,0),KF(m,!1)})})}),{deviation:e}},WF(kI,RL,ZL,xL,SI,$I)),fR,CL,pI(([e,t,n,r,i,a,o,s,c,l,u])=>({...e,...t,...n,...r,...i,...a,...o,...s,...c,...l,...u}),WF(WL,oR,wL,cR,QL,sR,$L,lR,nR,SI,eR))));function gR(e,t){let n={},r={},i=0,a=e.length;for(;i<a;)r[e[i]]=1,i+=1;for(let e in t)Object.hasOwn(r,e)||(n[e]=t[e]);return n}var _R=typeof document<`u`?H.useLayoutEffect:H.useEffect;function vR(e,t,n){let r=Object.keys(t.required||{}),i=Object.keys(t.optional||{}),a=Object.keys(t.methods||{}),o=Object.keys(t.events||{}),s=H.createContext({});function c(e,n){e.propsReady!==void 0&&KF(e.propsReady,!1);for(let i of r){let r=e[t.required[i]];KF(r,n[i])}for(let r of i)if(r in n){let i=e[t.optional[r]];KF(i,n[r])}e.propsReady!==void 0&&KF(e.propsReady,!0)}function l(e){return a.reduce((n,r)=>(n[r]=n=>{let i=e[t.methods[r]];KF(i,n)},n),{})}function u(e){return o.reduce((n,r)=>(n[r]=cI(e[t.events[r]]),n),{})}return{Component:H.forwardRef(function(t,a){let{children:d,...f}=t,[p]=H.useState(()=>HF(hI(e),e=>{c(e,f)})),[m]=H.useState(LF(u,p));_R(()=>{for(let e of o)e in f&&GF(m[e],f[e]);return()=>{Object.values(m).map(qF)}},[f,m,p]),_R(()=>{c(p,f)}),H.useImperativeHandle(a,PF(l(p)));let h=n;return(0,U.jsx)(s.Provider,{value:p,children:n===void 0?d:(0,U.jsx)(h,{...gR([...r,...i,...o],f),children:d})})}),useEmitter:(e,t)=>{let n=H.useContext(s)[e];_R(()=>GF(n,t),[t,n])},useEmitterValue:e=>{let t=H.useContext(s)[e],[n,r]=H.useState(LF(JF,t));return _R(()=>GF(t,e=>{e!==n&&r(PF(e))}),[t,n]),n},usePublisher:e=>{let t=H.useContext(s);return H.useCallback(n=>{KF(t[e],n)},[t,e])}}}var yR=H.createContext(void 0),bR=H.createContext(void 0),xR=`-webkit-sticky`,SR=`sticky`,CR=pR(()=>{if(typeof document>`u`)return SR;let e=document.createElement(`div`);return e.style.position=xR,e.style.position===xR?xR:SR}),wR=typeof document<`u`?H.useLayoutEffect:H.useEffect;function TR(e){return`self`in e}function ER(e){return`body`in e}function DR(e,t,n,r=VF,i,a){let o=H.useRef(null),s=H.useRef(null),c=H.useRef(null),l=H.useCallback(n=>{let r,i,o,l=n.target;if(ER(l)||TR(l)){let e=TR(l)?l:l.defaultView;o=a===!0?e.scrollX:e.scrollY,r=a===!0?e.document.documentElement.scrollWidth:e.document.documentElement.scrollHeight,i=a===!0?e.innerWidth:e.innerHeight}else o=a===!0?l.scrollLeft:l.scrollTop,r=a===!0?l.scrollWidth:l.scrollHeight,i=a===!0?l.offsetWidth:l.offsetHeight;let u=()=>{e({scrollHeight:r,scrollTop:Math.max(o,0),viewportHeight:i})};n.suppressFlushSync===!0?u():ln.flushSync(u),s.current!==null&&(o===s.current||o<=0||o===r-i)&&(s.current=null,t(!0),c.current&&=(clearTimeout(c.current),null))},[e,t,a]);H.useEffect(()=>{let e=i||o.current;return r(i||o.current),l({suppressFlushSync:!0,target:e}),e.addEventListener(`scroll`,l,{passive:!0}),()=>{r(null),e.removeEventListener(`scroll`,l)}},[o,l,n,r,i]);function u(n){let r=o.current;if(!r||(a===!0?`offsetWidth`in r&&r.offsetWidth===0:`offsetHeight`in r&&r.offsetHeight===0))return;let i=n.behavior===`smooth`,l,u,d;TR(r)?(u=Math.max(rL(r.document.documentElement,a===!0?`width`:`height`),a===!0?r.document.documentElement.scrollWidth:r.document.documentElement.scrollHeight),l=a===!0?r.innerWidth:r.innerHeight,d=a===!0?window.scrollX:window.scrollY):(u=r[a===!0?`scrollWidth`:`scrollHeight`],l=rL(r,a===!0?`width`:`height`),d=r[a===!0?`scrollLeft`:`scrollTop`]);let f=u-l;if(n.top=Math.ceil(Math.max(Math.min(f,n.top),0)),ML(l,u)||n.top===d){e({scrollHeight:u,scrollTop:d,viewportHeight:l}),i&&t(!0);return}i?(s.current=n.top,c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{c.current=null,s.current=null,t(!0)},1e3)):s.current=null,a===!0&&(n={...n.behavior===void 0?{}:{behavior:n.behavior},left:n.top}),r.scrollTo(n)}function d(e){a===!0&&(e={...e.behavior===void 0?{}:{behavior:e.behavior},...e.top===void 0?{}:{left:e.top}}),o.current.scrollBy(e)}return{scrollByCallback:d,scrollerRef:o,scrollToCallback:u}}function OR(e){return e}var kR=pI(([e,t])=>({...e,...t}),WF(hR,pI(()=>{let e=lI(e=>`Item ${e}`),t=lI(e=>`Group ${e}`),n=lI({}),r=lI(OR),i=lI(`div`),a=lI(VF),o=(e,t=null)=>uI($(n,tI(t=>t[e]),$F()),t);return{components:n,computeItemKey:r,EmptyPlaceholder:o(`EmptyPlaceholder`),FooterComponent:o(`Footer`),GroupComponent:o(`Group`,`div`),groupContent:t,HeaderComponent:o(`Header`),HeaderFooterTag:i,ItemComponent:o(`Item`,`div`),itemContent:e,ListComponent:o(`List`,`div`),ScrollerComponent:o(`Scroller`,`div`),scrollerRef:a,ScrollSeekPlaceholder:o(`ScrollSeekPlaceholder`),TopItemListComponent:o(`TopItemList`)}}))),AR=({height:e})=>(0,U.jsx)(`div`,{style:{height:e}}),jR={overflowAnchor:`none`,position:CR(),zIndex:1},MR={overflowAnchor:`none`},NR={...MR,display:`inline-block`,height:`100%`},PR=H.memo(function({showTopList:e=!1}){let t=XR(`listState`),n=ZR(`sizeRanges`),r=XR(`useWindowScroll`),i=XR(`customScrollParent`),a=ZR(`windowScrollContainerState`),o=ZR(`scrollContainerState`),s=i||r?a:o,c=XR(`itemContent`),l=XR(`context`),u=XR(`groupContent`),d=XR(`trackItemSizes`),f=XR(`itemSize`),p=XR(`log`),m=ZR(`gap`),h=XR(`horizontalDirection`),{callbackRef:g}=TI(n,f,d,e?VF:s,p,m,i,h,XR(`skipAnimationFrameInResizeObserver`)),[_,v]=H.useState(0);YR(`deviation`,e=>{_!==e&&v(e)});let y=XR(`EmptyPlaceholder`),b=XR(`ScrollSeekPlaceholder`)??AR,x=XR(`ListComponent`),S=XR(`ItemComponent`),C=XR(`GroupComponent`),w=XR(`computeItemKey`),T=XR(`isSeeking`),E=XR(`groupIndices`).length>0,D=XR(`alignToBottom`),O=XR(`initialItemFinalLocationReached`),k=e?{}:{boxSizing:`border-box`,...h?{display:`inline-block`,height:`100%`,marginLeft:_===0?D?`auto`:0:_,paddingLeft:t.offsetTop,paddingRight:t.offsetBottom,whiteSpace:`nowrap`}:{marginTop:_===0?D?`auto`:0:_,paddingBottom:t.offsetBottom,paddingTop:t.offsetTop},...O?{}:{visibility:`hidden`}};return!e&&t.totalCount===0&&y!=null?(0,U.jsx)(y,{...zR(y,l)}):(0,U.jsx)(x,{...zR(x,l),"data-testid":e?`virtuoso-top-item-list`:`virtuoso-item-list`,ref:g,style:k,children:(e?t.topItems:t.items).map(e=>{let n=e.originalIndex,r=w(n+t.firstItemIndex,e.data,l);return T?(0,H.createElement)(b,{...zR(b,l),height:e.size,index:e.index,key:r,type:e.type||`item`,...e.type===`group`?{}:{groupIndex:e.groupIndex}}):e.type===`group`?(0,H.createElement)(C,{...zR(C,l),"data-index":n,"data-item-index":e.index,"data-known-size":e.size,key:r,style:jR},u(e.index,l)):(0,H.createElement)(S,{...zR(S,l),...BR(S,e.data),"data-index":n,"data-item-group-index":e.groupIndex,"data-item-index":e.index,"data-known-size":e.size,key:r,style:h?NR:MR},E?c(e.index,e.groupIndex,e.data,l):c(e.index,e.data,l))})})}),FR={height:`100%`,outline:`none`,overflowY:`auto`,position:`relative`,WebkitOverflowScrolling:`touch`},IR={outline:`none`,overflowX:`auto`,position:`relative`},LR=e=>({height:`100%`,position:`absolute`,top:0,width:`100%`,...e?{display:`flex`,flexDirection:`column`}:void 0}),RR={position:CR(),top:0,width:`100%`,zIndex:1};function zR(e,t){if(typeof e!=`string`)return{context:t}}function BR(e,t){return{item:typeof e==`string`?void 0:t}}var VR=H.memo(function(){let e=XR(`HeaderComponent`),t=ZR(`headerHeight`),n=XR(`HeaderFooterTag`),r=CI(H.useMemo(()=>e=>{t(rL(e,`height`))},[t]),!0,XR(`skipAnimationFrameInResizeObserver`)),i=XR(`context`);return e==null?null:(0,U.jsx)(n,{ref:r,children:(0,U.jsx)(e,{...zR(e,i)})})}),HR=H.memo(function(){let e=XR(`FooterComponent`),t=ZR(`footerHeight`),n=XR(`HeaderFooterTag`),r=CI(H.useMemo(()=>e=>{t(rL(e,`height`))},[t]),!0,XR(`skipAnimationFrameInResizeObserver`)),i=XR(`context`);return e==null?null:(0,U.jsx)(n,{ref:r,children:(0,U.jsx)(e,{...zR(e,i)})})});function UR({useEmitter:e,useEmitterValue:t,usePublisher:n}){return H.memo(function({children:r,style:i,context:a,...o}){let s=n(`scrollContainerState`),c=t(`ScrollerComponent`),l=n(`smoothScrollTargetReached`),u=t(`scrollerRef`),d=t(`horizontalDirection`)||!1,{scrollByCallback:f,scrollerRef:p,scrollToCallback:m}=DR(s,l,c,u,void 0,d);return e(`scrollTo`,m),e(`scrollBy`,f),(0,U.jsx)(c,{"data-testid":`virtuoso-scroller`,"data-virtuoso-scroller":!0,ref:p,style:{...d?IR:FR,...i},tabIndex:0,...o,...zR(c,a),children:r})})}function WR({useEmitter:e,useEmitterValue:t,usePublisher:n}){return H.memo(function({children:r,style:i,context:a,...o}){let s=n(`windowScrollContainerState`),c=t(`ScrollerComponent`),l=n(`smoothScrollTargetReached`),u=t(`totalListHeight`),d=t(`deviation`),f=t(`customScrollParent`),p=H.useRef(null),{scrollByCallback:m,scrollerRef:h,scrollToCallback:g}=DR(s,l,c,t(`scrollerRef`),f);return wR(()=>(h.current=f||p.current?.ownerDocument.defaultView,()=>{h.current=null}),[h,f]),e(`windowScrollTo`,g),e(`scrollBy`,m),(0,U.jsx)(c,{ref:p,"data-virtuoso-scroller":!0,style:{position:`relative`,...i,...u===0?void 0:{height:u+d}},...o,...zR(c,a),children:r})})}var GR=({children:e})=>{let t=H.useContext(yR),n=ZR(`viewportHeight`),r=ZR(`fixedItemHeight`),i=XR(`alignToBottom`),a=XR(`horizontalDirection`),o=CI(H.useMemo(()=>IF(n,e=>rL(e,a?`width`:`height`)),[n,a]),!0,XR(`skipAnimationFrameInResizeObserver`));return H.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),(0,U.jsx)(`div`,{"data-viewport-type":`element`,ref:o,style:LR(i),children:e})},KR=({children:e})=>{let t=H.useContext(yR),n=ZR(`windowViewportRect`),r=ZR(`fixedItemHeight`),i=OI(n,XR(`customScrollParent`),XR(`skipAnimationFrameInResizeObserver`)),a=XR(`alignToBottom`);return H.useEffect(()=>{t&&(r(t.itemHeight),n({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),(0,U.jsx)(`div`,{"data-viewport-type":`window`,ref:i,style:LR(a),children:e})},qR=({children:e})=>{let t=XR(`TopItemListComponent`)??`div`,n=XR(`headerHeight`);return(0,U.jsx)(t,{style:{...RR,marginTop:`${n}px`},...zR(t,XR(`context`)),children:e})},{Component:JR,useEmitter:YR,useEmitterValue:XR,usePublisher:ZR}=vR(kR,{optional:{restoreStateFrom:`restoreStateFrom`,context:`context`,followOutput:`followOutput`,scrollIntoViewOnChange:`scrollIntoViewOnChange`,itemContent:`itemContent`,groupContent:`groupContent`,overscan:`overscan`,increaseViewportBy:`increaseViewportBy`,minOverscanItemCount:`minOverscanItemCount`,totalCount:`totalCount`,groupCounts:`groupCounts`,topItemCount:`topItemCount`,firstItemIndex:`firstItemIndex`,initialTopMostItemIndex:`initialTopMostItemIndex`,components:`components`,atBottomThreshold:`atBottomThreshold`,atTopThreshold:`atTopThreshold`,computeItemKey:`computeItemKey`,defaultItemHeight:`defaultItemHeight`,fixedGroupHeight:`fixedGroupHeight`,fixedItemHeight:`fixedItemHeight`,heightEstimates:`heightEstimates`,itemSize:`itemSize`,scrollSeekConfiguration:`scrollSeekConfiguration`,headerFooterTag:`HeaderFooterTag`,data:`data`,initialItemCount:`initialItemCount`,initialScrollTop:`initialScrollTop`,alignToBottom:`alignToBottom`,useWindowScroll:`useWindowScroll`,customScrollParent:`customScrollParent`,scrollerRef:`scrollerRef`,logLevel:`logLevel`,horizontalDirection:`horizontalDirection`,skipAnimationFrameInResizeObserver:`skipAnimationFrameInResizeObserver`},methods:{scrollToIndex:`scrollToIndex`,scrollIntoView:`scrollIntoView`,scrollTo:`scrollTo`,scrollBy:`scrollBy`,autoscrollToBottom:`autoscrollToBottom`,getState:`getState`},events:{isScrolling:`isScrolling`,endReached:`endReached`,startReached:`startReached`,rangeChanged:`rangeChanged`,atBottomStateChange:`atBottomStateChange`,atTopStateChange:`atTopStateChange`,totalListHeightChanged:`totalListHeightChanged`,itemsRendered:`itemsRendered`,groupIndices:`groupIndices`}},H.memo(function(e){let t=XR(`useWindowScroll`),n=XR(`topItemsIndexes`).length>0,r=XR(`customScrollParent`),i=XR(`context`);return(0,U.jsxs)(r||t?$R:QR,{...e,context:i,children:[n&&(0,U.jsx)(qR,{children:(0,U.jsx)(PR,{showTopList:!0})}),(0,U.jsxs)(r||t?KR:GR,{children:[(0,U.jsx)(VR,{}),(0,U.jsx)(PR,{}),(0,U.jsx)(HR,{})]})]})})),QR=UR({useEmitter:YR,useEmitterValue:XR,usePublisher:ZR}),$R=WR({useEmitter:YR,useEmitterValue:XR,usePublisher:ZR}),ez=JR,tz=pI(([e,t])=>({...e,...t}),WF(hR,pI(()=>{let e=lI(e=>(0,U.jsxs)(`td`,{children:[`Item $`,e]})),t=lI(null),n=lI(e=>(0,U.jsxs)(`td`,{colSpan:1e3,children:[`Group `,e]})),r=lI(null),i=lI(null),a=lI({}),o=lI(OR),s=lI(VF),c=(e,t=null)=>uI($(a,tI(t=>t[e]),$F()),t);return{components:a,computeItemKey:o,context:t,EmptyPlaceholder:c(`EmptyPlaceholder`),FillerRow:c(`FillerRow`),fixedFooterContent:i,fixedHeaderContent:r,itemContent:e,groupContent:n,ScrollerComponent:c(`Scroller`,`div`),scrollerRef:s,ScrollSeekPlaceholder:c(`ScrollSeekPlaceholder`),TableBodyComponent:c(`TableBody`,`tbody`),TableComponent:c(`Table`,`table`),TableFooterComponent:c(`TableFoot`,`tfoot`),TableHeadComponent:c(`TableHead`,`thead`),TableRowComponent:c(`TableRow`,`tr`),GroupComponent:c(`Group`,`tr`)}}))),nz=({height:e})=>(0,U.jsx)(`tr`,{children:(0,U.jsx)(`td`,{style:{height:e}})}),rz=({height:e})=>(0,U.jsx)(`tr`,{children:(0,U.jsx)(`td`,{style:{border:0,height:e,padding:0}})}),iz={overflowAnchor:`none`},az={position:CR(),zIndex:2,overflowAnchor:`none`},oz=H.memo(function({showTopList:e=!1}){let t=fz(`listState`),n=fz(`computeItemKey`),r=fz(`firstItemIndex`),i=fz(`context`),a=fz(`isSeeking`),o=fz(`fixedHeaderHeight`),s=fz(`groupIndices`).length>0,c=fz(`itemContent`),l=fz(`groupContent`),u=fz(`ScrollSeekPlaceholder`)??nz,d=fz(`GroupComponent`),f=fz(`TableRowComponent`),p=(e?t.topItems:[]).reduce((e,t,n)=>(n===0?e.push(t.size):e.push(e[n-1]+t.size),e),[]);return(e?t.topItems:t.items).map(t=>{let m=t.originalIndex,h=n(m+r,t.data,i),g=e?m===0?0:p[m-1]:0;return a?(0,H.createElement)(u,{...zR(u,i),height:t.size,index:t.index,key:h,type:t.type||`item`}):t.type===`group`?(0,H.createElement)(d,{...zR(d,i),"data-index":m,"data-item-index":t.index,"data-known-size":t.size,key:h,style:{...az,top:o}},l(t.index,i)):(0,H.createElement)(f,{...zR(f,i),...BR(f,t.data),"data-index":m,"data-item-index":t.index,"data-known-size":t.size,"data-item-group-index":t.groupIndex,key:h,style:e?{...az,top:o+g}:iz},s?c(t.index,t.groupIndex,t.data,i):c(t.index,t.data,i))})}),sz=H.memo(function(){let e=fz(`listState`),t=fz(`topItemsIndexes`).length>0,n=pz(`sizeRanges`),r=fz(`useWindowScroll`),i=fz(`customScrollParent`),a=pz(`windowScrollContainerState`),o=pz(`scrollContainerState`),s=i||r?a:o,c=fz(`trackItemSizes`),{callbackRef:l,ref:u}=TI(n,fz(`itemSize`),c,s,fz(`log`),void 0,i,!1,fz(`skipAnimationFrameInResizeObserver`)),[d,f]=H.useState(0);dz(`deviation`,e=>{d!==e&&(u.current.style.marginTop=`${e}px`,f(e))});let p=fz(`EmptyPlaceholder`),m=fz(`FillerRow`)??rz,h=fz(`TableBodyComponent`),g=fz(`paddingTopAddition`),_=fz(`statefulTotalCount`),v=fz(`context`);if(_===0&&p!=null)return(0,U.jsx)(p,{...zR(p,v)});let y=(t?e.topItems:[]).reduce((e,t)=>e+t.size,0),b=e.offsetTop+g+d-y,x=e.offsetBottom,S=b>0?(0,U.jsx)(m,{context:v,height:b},`padding-top`):null,C=x>0?(0,U.jsx)(m,{context:v,height:x},`padding-bottom`):null;return(0,U.jsxs)(h,{"data-testid":`virtuoso-item-list`,ref:l,...zR(h,v),children:[S,t&&(0,U.jsx)(oz,{showTopList:!0}),(0,U.jsx)(oz,{}),C]})}),cz=({children:e})=>{let t=H.useContext(yR),n=pz(`viewportHeight`),r=pz(`fixedItemHeight`),i=CI(H.useMemo(()=>IF(n,e=>rL(e,`height`)),[n]),!0,fz(`skipAnimationFrameInResizeObserver`));return H.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),(0,U.jsx)(`div`,{"data-viewport-type":`element`,ref:i,style:LR(!1),children:e})},lz=({children:e})=>{let t=H.useContext(yR),n=pz(`windowViewportRect`),r=pz(`fixedItemHeight`),i=OI(n,fz(`customScrollParent`),fz(`skipAnimationFrameInResizeObserver`));return H.useEffect(()=>{t&&(r(t.itemHeight),n({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),(0,U.jsx)(`div`,{"data-viewport-type":`window`,ref:i,style:LR(!1),children:e})},{Component:uz,useEmitter:dz,useEmitterValue:fz,usePublisher:pz}=vR(tz,{optional:{restoreStateFrom:`restoreStateFrom`,context:`context`,followOutput:`followOutput`,firstItemIndex:`firstItemIndex`,itemContent:`itemContent`,groupContent:`groupContent`,fixedHeaderContent:`fixedHeaderContent`,fixedFooterContent:`fixedFooterContent`,overscan:`overscan`,increaseViewportBy:`increaseViewportBy`,minOverscanItemCount:`minOverscanItemCount`,totalCount:`totalCount`,topItemCount:`topItemCount`,initialTopMostItemIndex:`initialTopMostItemIndex`,components:`components`,groupCounts:`groupCounts`,atBottomThreshold:`atBottomThreshold`,atTopThreshold:`atTopThreshold`,computeItemKey:`computeItemKey`,defaultItemHeight:`defaultItemHeight`,fixedGroupHeight:`fixedGroupHeight`,fixedItemHeight:`fixedItemHeight`,itemSize:`itemSize`,scrollSeekConfiguration:`scrollSeekConfiguration`,data:`data`,initialItemCount:`initialItemCount`,initialScrollTop:`initialScrollTop`,alignToBottom:`alignToBottom`,useWindowScroll:`useWindowScroll`,customScrollParent:`customScrollParent`,scrollerRef:`scrollerRef`,logLevel:`logLevel`},methods:{scrollToIndex:`scrollToIndex`,scrollIntoView:`scrollIntoView`,scrollTo:`scrollTo`,scrollBy:`scrollBy`,getState:`getState`},events:{isScrolling:`isScrolling`,endReached:`endReached`,startReached:`startReached`,rangeChanged:`rangeChanged`,atBottomStateChange:`atBottomStateChange`,atTopStateChange:`atTopStateChange`,totalListHeightChanged:`totalListHeightChanged`,itemsRendered:`itemsRendered`,groupIndices:`groupIndices`}},H.memo(function(e){let t=fz(`useWindowScroll`),n=fz(`customScrollParent`),r=pz(`fixedHeaderHeight`),i=pz(`fixedFooterHeight`),a=fz(`fixedHeaderContent`),o=fz(`fixedFooterContent`),s=fz(`context`),c=CI(H.useMemo(()=>IF(r,e=>rL(e,`height`)),[r]),!0,fz(`skipAnimationFrameInResizeObserver`)),l=CI(H.useMemo(()=>IF(i,e=>rL(e,`height`)),[i]),!0,fz(`skipAnimationFrameInResizeObserver`)),u=n||t?hz:mz,d=n||t?lz:cz,f=fz(`TableComponent`),p=fz(`TableHeadComponent`),m=fz(`TableFooterComponent`),h=a?(0,U.jsx)(p,{ref:c,style:{position:`sticky`,top:0,zIndex:2},...zR(p,s),children:a()},`TableHead`):null,g=o?(0,U.jsx)(m,{ref:l,style:{bottom:0,position:`sticky`,zIndex:1},...zR(m,s),children:o()},`TableFoot`):null;return(0,U.jsx)(u,{...e,...zR(u,s),children:(0,U.jsx)(d,{children:(0,U.jsxs)(f,{style:{borderSpacing:0,overflowAnchor:`none`},...zR(f,s),children:[h,(0,U.jsx)(sz,{},`TableBody`),g]})})})})),mz=UR({useEmitter:dz,useEmitterValue:fz,usePublisher:pz}),hz=WR({useEmitter:dz,useEmitterValue:fz,usePublisher:pz}),gz={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},_z={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:vz,floor:yz,max:bz,min:xz,round:Sz}=Math;function Cz(e,t,n){return Array.from({length:t-e+1}).map((t,r)=>({data:n===null?null:n[r+e],index:r+e}))}function wz(e){return{..._z,items:e}}function Tz(e,t){return e!==void 0&&e.width===t.width&&e.height===t.height}function Ez(e,t){return e!==void 0&&e.column===t.column&&e.row===t.row}var Dz=pI(([{increaseViewportBy:e,listBoundary:t,overscan:n,visibleRange:r},{footerHeight:i,headerHeight:a,scrollBy:o,scrollContainerState:s,scrollTo:c,scrollTop:l,smoothScrollTargetReached:u,viewportHeight:d},f,p,{didMount:m,propsReady:h},{customScrollParent:g,useWindowScroll:_,windowScrollContainerState:v,windowScrollTo:y,windowViewportRect:b},x])=>{let S=lI(0),C=lI(0),w=lI(gz),T=lI({height:0,width:0}),E=lI({height:0,width:0}),D=dI(),O=dI(),k=lI(0),A=lI(null),j=lI({column:0,row:0}),M=dI(),N=dI(),P=lI(!1),ee=lI(0),F=lI(!0),I=lI(!1),te=lI(!1);GF($(m,oI(ee),eI(([e,t])=>t!==0)),()=>{KF(F,!1)}),GF($(gI(m,F,E,T,ee,I),eI(([e,t,n,r,,i])=>e&&!t&&n.height!==0&&r.height!==0&&!i)),([,,,,e])=>{KF(I,!0),kL(1,()=>{KF(D,e)}),XF($(l),()=>{KF(t,[0,0]),KF(F,!0)})}),YF($(N,eI(e=>e!=null&&e.scrollTop>0),nI(0)),C),GF($(m,oI(N),eI(([,e])=>e!=null)),([,e])=>{e&&(KF(T,e.viewport),KF(E,e.item),KF(j,e.gap),e.scrollTop>0&&(KF(P,!0),XF($(l,iI(1)),e=>{KF(P,!1)}),KF(c,{top:e.scrollTop})))}),YF($(T,tI(({height:e})=>e)),d),YF($(gI(_I(T,Tz),_I(E,Tz),_I(j,(e,t)=>e!==void 0&&e.column===t.column&&e.row===t.row),_I(l)),tI(([e,t,n,r])=>({gap:n,item:t,scrollTop:r,viewport:e}))),M),YF($(gI(_I(S),r,_I(j,Ez),_I(E,Tz),_I(T,Tz),_I(A),_I(C),_I(P),_I(F),_I(ee)),eI(([,,,,,,,e])=>!e),tI(([e,[t,n],r,i,a,o,s,,c,l])=>{let{column:u,row:d}=r,{height:f,width:p}=i,{width:m}=a;if(s===0&&(e===0||m===0))return gz;if(p===0){let t=AL(l,e);return wz(Cz(t,t+Math.max(s-1,0),o))}let h=Oz(m,p,u),g,_;c?t===0&&n===0&&s>0?(g=0,_=s-1):(g=h*yz((t+d)/(f+d)),_=h*vz((n+d)/(f+d))-1,_=xz(e-1,bz(_,h-1)),g=xz(_,bz(0,g))):(g=0,_=-1);let v=Cz(g,_,o),{bottom:y,top:b}=kz(a,r,i,v),x=vz(e/h);return{bottom:y,itemHeight:f,items:v,itemWidth:p,offsetBottom:x*f+(x-1)*d-y,offsetTop:b,top:b}})),w),YF($(A,eI(e=>e!==null),tI(e=>e.length)),S),YF($(gI(T,E,w,j),eI(([e,t,{items:n}])=>n.length>0&&t.height!==0&&e.height!==0),tI(([e,t,{items:n},r])=>{let{bottom:i,top:a}=kz(e,r,t,n);return[a,i]}),$F(QI)),t);let ne=lI(!1);YF($(l,oI(ne),tI(([e,t])=>t||e!==0)),ne);let re=fI($(gI(w,S),eI(([{items:e}])=>e.length>0),oI(ne),eI(([[e,t],n])=>{let r=e.items[e.items.length-1].index===t-1;return(n||e.bottom>0&&e.itemHeight>0&&e.offsetBottom===0&&e.items.length===t)&&r}),tI(([[,e]])=>e-1),$F())),ie=fI($(_I(w),eI(({items:e})=>e.length>0&&e[0].index===0),nI(0),$F())),L=fI($(_I(w),oI(P),eI(([{items:e},t])=>e.length>0&&!t),tI(([{items:e}])=>({endIndex:e[e.length-1].index,startIndex:e[0].index})),$F(ZI),aI(0)));YF(L,p.scrollSeekRangeChanged),YF($(D,oI(T,E,S,j),tI(([e,t,n,r,i])=>{let a=EL(e),{align:o,behavior:s,offset:c}=a,l=a.index;l===`LAST`&&(l=r-1),l=bz(0,l,xz(r-1,l));let u=Az(t,i,n,l);return o===`end`?u=Sz(u-t.height+n.height):o===`center`&&(u=Sz(u-t.height/2+n.height/2)),c!==void 0&&c!==0&&(u+=c),{behavior:s,top:u}})),c);let ae=uI($(w,tI(e=>e.offsetBottom+e.bottom)),0);return YF($(b,tI(e=>({height:e.visibleHeight,width:e.visibleWidth}))),T),{customScrollParent:g,data:A,deviation:k,footerHeight:i,gap:j,headerHeight:a,increaseViewportBy:e,initialItemCount:C,itemDimensions:E,overscan:n,restoreStateFrom:N,scrollBy:o,scrollContainerState:s,scrollHeight:O,scrollTo:c,scrollToIndex:D,scrollTop:l,smoothScrollTargetReached:u,totalCount:S,useWindowScroll:_,viewportDimensions:T,windowScrollContainerState:v,windowScrollTo:y,windowViewportRect:b,...p,gridState:w,horizontalDirection:te,initialTopMostItemIndex:ee,totalListHeight:ae,...f,endReached:re,propsReady:h,rangeChanged:L,startReached:ie,stateChanged:M,stateRestoreInProgress:P,...x}},WF(WL,kI,RL,cR,wL,lR,SI));function Oz(e,t,n){return bz(1,yz((e+n)/(yz(t)+n)))}function kz(e,t,n,r){let{height:i}=n;if(i===void 0||r.length===0)return{bottom:0,top:0};let a=Az(e,t,n,r[0].index);return{bottom:Az(e,t,n,r[r.length-1].index)+i,top:a}}function Az(e,t,n,r){let i=yz(r/Oz(e.width,n.width,t.column)),a=i*n.height+bz(0,i-1)*t.row;return a>0?a+t.row:a}var jz=pI(([e,t])=>({...e,...t}),WF(Dz,pI(()=>{let e=lI(e=>`Item ${e}`),t=lI({}),n=lI(null),r=lI(`virtuoso-grid-item`),i=lI(`virtuoso-grid-list`),a=lI(OR),o=lI(`div`),s=lI(VF),c=(e,n=null)=>uI($(t,tI(t=>t[e]),$F()),n),l=lI(!1),u=lI(!1);return YF(_I(u),l),{components:t,computeItemKey:a,context:n,FooterComponent:c(`Footer`),HeaderComponent:c(`Header`),headerFooterTag:o,itemClassName:r,ItemComponent:c(`Item`,`div`),itemContent:e,listClassName:i,ListComponent:c(`List`,`div`),readyStateChanged:l,reportReadyState:u,ScrollerComponent:c(`Scroller`,`div`),scrollerRef:s,ScrollSeekPlaceholder:c(`ScrollSeekPlaceholder`,`div`)}}))),Mz=H.memo(function(){let e=zz(`gridState`),t=zz(`listClassName`),n=zz(`itemClassName`),r=zz(`itemContent`),i=zz(`computeItemKey`),a=zz(`isSeeking`),o=Bz(`scrollHeight`),s=zz(`ItemComponent`),c=zz(`ListComponent`),l=zz(`ScrollSeekPlaceholder`),u=zz(`context`),d=Bz(`itemDimensions`),f=Bz(`gap`),p=zz(`log`),m=zz(`stateRestoreInProgress`),h=Bz(`reportReadyState`),g=CI(H.useMemo(()=>e=>{let t=e.parentElement.parentElement.scrollHeight;o(t);let n=e.firstChild;if(n!==null){let{height:e,width:t}=n.getBoundingClientRect();d({height:e,width:t})}f({column:Uz(`column-gap`,getComputedStyle(e).columnGap,p),row:Uz(`row-gap`,getComputedStyle(e).rowGap,p)})},[o,d,f,p]),!0,!1);return wR(()=>{e.itemHeight>0&&e.itemWidth>0&&h(!0)},[e]),m?null:(0,U.jsx)(c,{className:t,ref:g,...zR(c,u),"data-testid":`virtuoso-item-list`,style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(t=>{let o=i(t.index,t.data,u);return a?(0,U.jsx)(l,{...zR(l,u),height:e.itemHeight,index:t.index,width:e.itemWidth},o):(0,H.createElement)(s,{...zR(s,u),className:n,"data-index":t.index,key:o},r(t.index,t.data,u))})})}),Nz=H.memo(function(){let e=zz(`HeaderComponent`),t=Bz(`headerHeight`),n=zz(`headerFooterTag`),r=CI(H.useMemo(()=>e=>{t(rL(e,`height`))},[t]),!0,!1),i=zz(`context`);return e==null?null:(0,U.jsx)(n,{ref:r,children:(0,U.jsx)(e,{...zR(e,i)})})}),Pz=H.memo(function(){let e=zz(`FooterComponent`),t=Bz(`footerHeight`),n=zz(`headerFooterTag`),r=CI(H.useMemo(()=>e=>{t(rL(e,`height`))},[t]),!0,!1),i=zz(`context`);return e==null?null:(0,U.jsx)(n,{ref:r,children:(0,U.jsx)(e,{...zR(e,i)})})}),Fz=({children:e})=>{let t=H.useContext(bR),n=Bz(`itemDimensions`),r=Bz(`viewportDimensions`),i=CI(H.useMemo(()=>e=>{r(e.getBoundingClientRect())},[r]),!0,!1);return H.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),(0,U.jsx)(`div`,{ref:i,style:LR(!1),children:e})},Iz=({children:e})=>{let t=H.useContext(bR),n=Bz(`windowViewportRect`),r=Bz(`itemDimensions`),i=OI(n,zz(`customScrollParent`),!1);return H.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),(0,U.jsx)(`div`,{ref:i,style:LR(!1),children:e})},{Component:Lz,useEmitter:Rz,useEmitterValue:zz,usePublisher:Bz}=vR(jz,{optional:{context:`context`,totalCount:`totalCount`,overscan:`overscan`,itemContent:`itemContent`,components:`components`,computeItemKey:`computeItemKey`,data:`data`,initialItemCount:`initialItemCount`,scrollSeekConfiguration:`scrollSeekConfiguration`,headerFooterTag:`headerFooterTag`,listClassName:`listClassName`,itemClassName:`itemClassName`,useWindowScroll:`useWindowScroll`,customScrollParent:`customScrollParent`,scrollerRef:`scrollerRef`,logLevel:`logLevel`,restoreStateFrom:`restoreStateFrom`,initialTopMostItemIndex:`initialTopMostItemIndex`,increaseViewportBy:`increaseViewportBy`},methods:{scrollTo:`scrollTo`,scrollBy:`scrollBy`,scrollToIndex:`scrollToIndex`},events:{isScrolling:`isScrolling`,endReached:`endReached`,startReached:`startReached`,rangeChanged:`rangeChanged`,atBottomStateChange:`atBottomStateChange`,atTopStateChange:`atTopStateChange`,stateChanged:`stateChanged`,readyStateChanged:`readyStateChanged`}},H.memo(function({...e}){let t=zz(`useWindowScroll`),n=zz(`customScrollParent`),r=n||t?Hz:Vz,i=n||t?Iz:Fz,a=zz(`context`);return(0,U.jsx)(r,{...e,...zR(r,a),children:(0,U.jsxs)(i,{children:[(0,U.jsx)(Nz,{}),(0,U.jsx)(Mz,{}),(0,U.jsx)(Pz,{})]})})})),Vz=UR({useEmitter:Rz,useEmitterValue:zz,usePublisher:Bz}),Hz=WR({useEmitter:Rz,useEmitterValue:zz,usePublisher:Bz});function Uz(e,t,n){return t!==`normal`&&t?.endsWith(`px`)!==!0&&n(`${e} was not resolved to pixel value correctly`,t,yI.WARN),t===`normal`?0:parseInt(t??`0`,10)}function Wz({data:e,value:t,renderOption:n}){if(!nm(e)){let r=DF(t,e.value);return(0,U.jsx)(Np.Option,{value:e.value,disabled:e.disabled,"data-checked":r||void 0,"aria-selected":r,active:r,children:n?.({option:e,checked:r})})}let r=e.items.map(e=>(0,U.jsx)(Wz,{data:e,value:t,renderOption:n},e.value));return(0,U.jsx)(Np.Group,{label:e.group,children:r})}var Gz={dropdownHeightTransition:`_dropdownHeightTransition_1kps7_1`};function Kz(e,t,n){return n?e&&e<=t?e:t:0}function qz({data:e,maxDropdownHeight:t,opened:n,renderOption:r,scrollAreaProps:i,value:a,withScrollArea:o=!0,withVirtualization:s}){let c=(0,H.useRef)(null),[l,u]=(0,H.useState)(0),d=on(n),f=t??220,p=e.map(e=>(0,U.jsx)(Wz,{data:e,value:a,renderOption:r},nm(e)?e.group:e.value)),m=e=>{c.current?.scrollToIndex({index:e,align:`start`})},h=(e,t)=>{if(t==null)return-1;let n=Array.isArray(t);return e.findIndex(e=>n?nm(e)?t.some(t=>e.group.includes(t)):t.includes(e.value):nm(e)?e.group.includes(t):e.value===t)},g=(0,H.useCallback)((e,t,n,r,i)=>{if(e&&t&&n){let t=h(r,n);t>-1&&!i&&e&&m(t)}else e&&!n&&m(0)},[]);if((0,H.useEffect)(()=>{g(n,s,a,e,d)},[n,s,a,e,d,g]),s){let t=Kz(l,f,e.length);return(0,U.jsx)(q,{className:Gz.dropdownHeightTransition,style:{height:t},children:(0,U.jsx)(ez,{ref:c,style:{height:`100%`},totalCount:e.length,totalListHeightChanged:u,itemContent:t=>(0,U.jsx)(Wz,{data:e[t],value:a,renderOption:r},nm(e[t])?e[t].group:e[t].value)})})}return o?(0,U.jsx)(sl.Autosize,{mah:f,type:`scroll`,scrollbarSize:`var(--combobox-padding)`,offsetScrollbars:`y`,...i,children:p}):(0,U.jsx)(U.Fragment,{children:p})}var Jz={selectAll:`_selectAll_158re_1`};function Yz({opened:e,data:t,filter:n,filterOptions:r=!0,hidden:i,hiddenWhenEmpty:a,limit:o,maxDropdownHeight:s,nothingFoundMessage:c,renderOption:l,onSelectAllToggle:u,scrollAreaProps:d,search:f,value:p,withScrollArea:m=!0,withSelectAll:h,withVirtualization:g}){kF(t);let{_}=Yj(),v=typeof f==`string`&&t.every(e=>nm(e)?!0:e.label!==f)?(n||rm)({options:t,search:r?f:``,limit:o??1/0}):t,y=OF(v),b=v.filter(e=>nm(e)?!1:!e.disabled).map(e=>{if(!nm(e))return e.value}).filter(e=>typeof e==`string`),x=Array.isArray(p)?p:[],S=b.length>0&&b.every(e=>x.includes(e)),C=b.some(e=>x.includes(e))&&!S;return(0,U.jsx)(Np.Dropdown,{hidden:i||a&&y,children:(0,U.jsxs)(Np.Options,{children:[h&&(0,U.jsxs)(Eu,{gap:8,className:Jz.selectAll,onClick:()=>u?.(!S),children:[(0,U.jsx)(tm,{checked:S,indeterminate:C,onChange:e=>{e.preventDefault(),u?.(!S)}}),(0,U.jsx)(Xf,{span:!0,children:_({id:`mCB6Je`})})]}),(0,U.jsx)(qz,{opened:e,data:v,maxDropdownHeight:s,renderOption:l,scrollAreaProps:d,value:p,withScrollArea:m,withVirtualization:g}),y&&c&&(0,U.jsx)(Np.Empty,{children:c})]})})}var Xz=(0,H.memo)(function({allowDeselect:e=!0,autoComplete:t,chevronColor:n,classNames:r,clearable:i,clearButtonProps:a,comboboxProps:o,data:s,defaultDropdownOpened:c,defaultSearchValue:l,defaultValue:u,disabled:d,dropdownOpened:f,error:p,filter:m,form:h,hiddenInputProps:g,id:_,limit:v,loading:y,maxDropdownHeight:b,name:x,nothingFoundMessage:S,onBlur:C,onChange:w,onClear:T,onClick:E,onDropdownClose:D,onDropdownOpen:O,onFocus:k,onOptionSubmit:A,onSearchChange:j,placeholder:M,readOnly:N,rightSection:P,rightSectionPointerEvents:ee,scrollAreaProps:F,searchable:I,searchValue:te,selectFirstOptionOnChange:ne,size:re,styles:ie,unstyled:L,value:ae,withScrollArea:oe,withVirtualization:se,...ce}){let le=(0,H.useMemo)(()=>tp(s),[s]),ue=(0,H.useMemo)(()=>np(le),[le]),de=Rt(_),{_:fe}=Yj(),[R,pe,me]=Yt({value:ae,defaultValue:u,finalValue:null,onChange:w}),he=typeof R==`string`?ue[R]:void 0,ge=on(he),[z,_e,ve]=Yt({value:te,defaultValue:l,finalValue:he?he.label:``,onChange:j}),B=Ap({opened:f,defaultOpened:c,onDropdownOpen:()=>{O?.(),B.updateSelectedOptionIndex(`active`,{scrollIntoView:!0})},onDropdownClose:()=>{D?.(),B.resetSelectedOption()}}),ye=e=>{_e(e),B.resetSelectedOption()},be=()=>y?(0,U.jsx)(cu,{size:`xs`}):P??(0,U.jsx)(CO,{width:20,height:20}),{resolvedClassNames:xe,resolvedStyles:Se}=Ur({props:ce,styles:ie,classNames:r});(0,H.useEffect)(()=>{ne&&B.selectFirstOption()},[ne,z]),(0,H.useEffect)(()=>{ae===null&&ye(``),typeof ae==`string`&&he&&(ge?.value!==he.value||ge?.label!==he.label)&&ye(he.label)},[ae,he]),(0,H.useEffect)(()=>{!me&&!ve&&ye(typeof R==`string`&&ue[R]?.label||``)},[s,R]);let Ce=(0,U.jsx)(Np.ClearButton,{...a,onClear:()=>{pe(null,null),ye(``),T?.()}}),we=i&&!!R&&!d&&!N,Te=be(),Ee=ee,De=S??fe({id:`Hz+sxK`}),Oe=M??fe({id:`rG3WVm`});return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(Np,{store:B,__staticSelector:`Select`,classNames:xe,styles:Se,unstyled:L,readOnly:N,onOptionSubmit:t=>{A?.(t);let n=e&&ue[t].value===R?null:ue[t],r=n?n.value:null;r!==R&&pe(r,n),me||ye(typeof r==`string`&&n?.label||``),B.closeDropdown()},size:re,...o,children:[(0,U.jsx)(Np.Target,{targetType:I?`input`:`button`,autoComplete:t,children:(0,U.jsx)(Cf,{id:de,__defaultRightSection:(0,U.jsx)(Np.Chevron,{size:re,error:p,unstyled:L,color:n}),__clearSection:Ce,__clearable:we,rightSection:Te,rightSectionPointerEvents:Ee||(we?`all`:`none`),...ce,placeholder:Oe,size:re,__staticSelector:`Select`,disabled:d,readOnly:N||!I,value:z,onChange:e=>{ye(e.currentTarget.value),B.openDropdown(),ne&&B.selectFirstOption()},onFocus:e=>{I&&B.openDropdown(),k?.(e)},onBlur:e=>{I&&B.closeDropdown(),ye(R==null?``:ue[R]?.label||``),C?.(e)},onClick:e=>{I?B.openDropdown():B.toggleDropdown(),E?.(e)},classNames:xe,styles:Se,unstyled:L,pointer:!I,error:p})}),(0,U.jsx)(Yz,{opened:B.dropdownOpened,data:le,renderOption:KA,value:R,search:I?z:void 0,limit:v,maxDropdownHeight:b,filter:m,hidden:N||d,nothingFoundMessage:De,withScrollArea:oe,scrollAreaProps:F,withVirtualization:se})]}),(0,U.jsx)(Np.HiddenInput,{value:R,name:x,form:h,disabled:d,...g})]})}),Zz={root:`_root_185o8_1`,input:`_input_185o8_5`,dropdown:`_dropdown_185o8_12`,section:`_section_185o8_16`,text:`_text_185o8_20`};function Qz({currentPage:e,pageSize:t,totalElements:n,paginationSizes:r,loading:i,onPageSizeChange:a}){let{_:o}=Yj(),s=t*(e-1)+1,c=Math.min(n,t*e);return(0,U.jsxs)(Eu,{justify:`space-between`,align:`center`,gap:24,children:[(0,U.jsxs)(Eu,{align:`center`,gap:6,children:[(0,U.jsx)(Xf,{size:`sm`,className:Zz.text,children:o({id:`0ZU/fh`})}),(0,U.jsx)(Xz,{classNames:{root:Zz.root,input:Zz.input,section:Zz.section,dropdown:Zz.dropdown},data:r.map(String),value:t.toString(),onChange:(e,t)=>a(Number(t.value)),disabled:i})]}),(0,U.jsx)(Xf,{size:`sm`,className:Zz.text,children:o({id:`5PgX/3`,values:{startItem:s,endItem:c,totalElements:n}})})]})}var $z={root:`_root_19e85_1`};function eB(){let{isCardView:e,currentPage:t,currentPageSize:n,totalElements:r,totalPages:i,loading:a,withServerPagination:o,handlePageChange:s,handlePageSizeChange:c}=_F(),l=EF.some(e=>e===n)?EF:[...EF,n].sort((e,t)=>e-t),u=Math.max(1,Math.ceil(r/n));return r===0?null:(0,U.jsxs)(Eu,{justify:`space-between`,align:`center`,gap:16,className:$z.root,mod:{"card-view":e},children:[(0,U.jsx)(Qz,{currentPage:t,pageSize:n,totalElements:r,paginationSizes:l,loading:a,onPageSizeChange:c}),(0,U.jsx)(xv,{total:o&&i||u,value:t,onChange:s,disabled:a})]})}function tB(){let{loading:e,isEmpty:t,withPagination:n}=_F();return(0,U.jsxs)(H.Activity,{mode:t&&!e?`hidden`:`visible`,children:[(0,U.jsx)(wF,{}),n&&(0,U.jsx)(eB,{})]})}var nB={loadingCell:`_loadingCell_vzo9s_1`,clickableRow:`_clickableRow_vzo9s_5`,actionCell:`_actionCell_vzo9s_9`,selectedRow:`_selectedRow_vzo9s_15`,firstCellContent:`_firstCellContent_vzo9s_19`,collapseButton:`_collapseButton_vzo9s_25`,checkbox:`_checkbox_vzo9s_37`,checkboxInner:`_checkboxInner_vzo9s_41`,expandedRows:`_expandedRows_vzo9s_45`,expandedContent:`_expandedContent_vzo9s_52`};function rB(){let{idKey:e,paginatedData:t=[],columns:n=[],withSelection:r,selection:i=[],loading:a,withCollapsible:o,isRowCollapsible:s,withMultipleCollapse:c=!0,toggleRow:l,renderCollapsed:u,collapsedViewType:d,onRowClick:f,getRowUrl:p}=_F(),[m,h]=(0,H.useState)({}),g=e=>{h(t=>c?{...t,[e]:!t[e]}:{[e]:!t[e]})},_=(e,t)=>{let n=t[e];return n?n.toString():`-`},v=(e,t,n)=>{if(!t.accessor&&!t.render)throw Error(`Column accessor or render function is required`);return t.render?t.render(e,n):Array.isArray(t.accessor)?t.accessor.map(t=>_(t,e)).join(` `):_(t.accessor,e)};return a?(0,U.jsx)(Cb.Tbody,{children:Array.from({length:3}).map((e,t)=>(0,U.jsxs)(Cb.Tr,{children:[n.map((e,n)=>(0,U.jsx)(Cb.Td,{children:n===0&&(o||r)?(0,U.jsxs)(q,{className:nB.firstCellContent,children:[o&&(0,U.jsx)(Ly,{height:16,width:16}),r&&(0,U.jsx)(Ly,{height:20,width:20,circle:!0}),(0,U.jsx)(Ly,{height:20,style:{flex:1}})]}):(0,U.jsx)(Ly,{height:20})},`loading-${t}-${n}`)),f&&(0,U.jsx)(Cb.Td,{children:(0,U.jsx)(Ly,{height:20})})]},`loading-${t}`))}):(0,U.jsx)(Cb.Tbody,{children:t.map((t,a)=>{let c=String(t[e]),h=m[c]||!1,_=i.some(n=>n[e]===t[e]),y=o&&(s?s(t,a):!0),b=d??`table`,{handleClick:x,handleMouseDown:S}=yF(t,f,p);return(0,U.jsxs)(H.Fragment,{children:[(0,U.jsxs)(Cb.Tr,{className:Tn(f&&nB.clickableRow,_&&nB.selectedRow,h&&nB.expandedRows),onClick:x,onMouseDown:S,children:[n.map((n,i)=>(0,U.jsx)(Cb.Td,{fz:`md`,lh:`md`,fw:500,children:i===0&&(y||r)?(0,U.jsxs)(q,{className:nB.firstCellContent,children:[y&&(0,U.jsx)(dl,{className:nB.collapseButton,onMouseDown:e=>{e.stopPropagation()},onClick:e=>{e.stopPropagation(),g(c)},children:h?(0,U.jsx)(vF,{width:20,height:20}):(0,U.jsx)(CO,{width:20,height:20})}),r&&(0,U.jsx)(tm,{classNames:{root:nB.checkbox,inner:nB.checkboxInner},checked:_,readOnly:!0,onClick:e=>{e.stopPropagation(),l(t,a,e)}}),v(t,n,a)]}):v(t,n,a)},`${e?String(t[e]):a}-${i}-${String(n.accessor)}`)),f&&(0,U.jsx)(Cb.Td,{className:nB.actionCell,children:(0,U.jsx)(Nm,{children:(0,U.jsx)(gu,{variant:`transparent`,children:(0,U.jsx)(Zk,{})})})})]}),y&&h&&u&&b===`table`?(0,U.jsx)(H.Fragment,{children:u(t,a,{view:`table`})},`${a}-expanded`):null,y&&u&&b===`card`?(0,U.jsx)(Cb.Tr,{children:(0,U.jsx)(Cb.Td,{colSpan:n.length+ +!!f,p:0,children:(0,U.jsx)(Ji,{expanded:h,children:(0,U.jsx)(q,{className:nB.expandedContent,children:h?u(t,a,{view:`card`}):null})})})},`${a}-expanded`):null]},a)})})}var iB={checkbox:`_checkbox_oawpz_1`,textLight:`_textLight_oawpz_6`,firstHeaderContent:`_firstHeaderContent_oawpz_10`,checkboxInner:`_checkboxInner_oawpz_20`};function aB(){let{_:e}=Yj(),{columns:t=[],withSelection:n,isCurrentPageSelected:r,isCurrentPageIndeterminate:i,loading:a,paginatedData:o=[],withSingleSelection:s,onRowClick:c,toggleCurrentPage:l}=_F(),u=a||!o.length,d=!!c;return(0,U.jsx)(Cb.Thead,{children:(0,U.jsxs)(Cb.Tr,{children:[t.map((e,t)=>(0,U.jsx)(Cb.Th,{className:iB.textLight,children:t===0&&n?(0,U.jsxs)(q,{className:iB.firstHeaderContent,children:[n&&!s&&(0,U.jsx)(tm,{classNames:{root:iB.checkbox,inner:iB.checkboxInner},checked:r,indeterminate:i,onChange:l,disabled:u}),e.header]}):e.header},`${String(e.accessor)}-${t}`)),d&&(0,U.jsx)(Cb.Th,{className:iB.textLight,w:80,children:e({id:`URmyfc`})})]})})}var oB={container:`_container_1xqco_1`,scrollContainer:`_scrollContainer_1xqco_5`};function sB(){let{loading:e,isEmpty:t,paginatedData:n=[],withPagination:r}=_F();return(0,U.jsxs)(H.Activity,{mode:t&&!e?`hidden`:`visible`,children:[(0,U.jsx)(Cb.ScrollContainer,{minWidth:320,classNames:{scrollContainer:oB.scrollContainer},children:(0,U.jsxs)(Cb,{highlightOnHover:n.length>0,classNames:{th:oB.th},children:[(0,U.jsx)(aB,{}),(0,U.jsx)(rB,{})]})}),r&&(0,U.jsx)(eB,{})]})}var cB={root:`_root_1yqhv_1`,rootWithBorder:`_rootWithBorder_1yqhv_5`,title:`_title_1yqhv_10`,description:`_description_1yqhv_14`};function lB({className:e,icon:t,title:n,description:r,children:i,titleClassName:a,descriptionClassName:o,withBorder:s=!0,...c}){return(0,U.jsxs)(Vy,{align:`center`,gap:16,className:Tn(e,cB.root,{[cB.rootWithBorder]:s}),...c,children:[t,(0,U.jsxs)(Vy,{align:`center`,gap:4,children:[n&&(0,U.jsx)(Xf,{fw:500,size:`lg`,className:Tn(cB.title,a),children:n}),r&&(0,U.jsx)(Xf,{size:`lg`,className:Tn(cB.description,o),children:r})]}),i]})}var uB={root:`_root_je6aq_1`,title:`_title_je6aq_5`};function dB({title:e,description:t}){let{_:n}=Yj();return(0,U.jsx)(lB,{title:e??n({id:`jGE4vv`}),description:t,h:72,className:uB.root,titleClassName:uB.title})}function fB({...e}){return(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,U.jsx)(`path`,{d:`M7 4V20`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M17 19V4`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M10 6.99998C10 6.99998 7.79053 4.00001 6.99998 4C6.20942 3.99999 4 7 4 7`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M20 17C20 17 17.7905 20 17 20C16.2094 20 14 17 14 17`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})]})}function pB({...e}){return(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,...e,children:[(0,U.jsx)(`path`,{d:`M2 4.66669H4`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M2 11.3333H6`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M12 11.3333H14`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M10 4.66669H14`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M4 4.66669C4 4.04543 4 3.73481 4.10149 3.48977C4.23682 3.16307 4.49639 2.90351 4.82309 2.76818C5.06812 2.66669 5.37875 2.66669 6 2.66669C6.62125 2.66669 6.93187 2.66669 7.17693 2.76818C7.5036 2.90351 7.7632 3.16307 7.89853 3.48977C8 3.73481 8 4.04543 8 4.66669C8 5.28794 8 5.59857 7.89853 5.8436C7.7632 6.1703 7.5036 6.42987 7.17693 6.56519C6.93187 6.66669 6.62125 6.66669 6 6.66669C5.37875 6.66669 5.06812 6.66669 4.82309 6.56519C4.49639 6.42987 4.23682 6.1703 4.10149 5.8436C4 5.59857 4 5.28794 4 4.66669Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M8 11.3333C8 10.712 8 10.4014 8.10147 10.1564C8.2368 9.82971 8.4964 9.57011 8.82307 9.43478C9.06813 9.33331 9.37873 9.33331 10 9.33331C10.6213 9.33331 10.9319 9.33331 11.1769 9.43478C11.5036 9.57011 11.7632 9.82971 11.8985 10.1564C12 10.4014 12 10.712 12 11.3333C12 11.9546 12 12.2652 11.8985 12.5102C11.7632 12.8369 11.5036 13.0965 11.1769 13.2318C10.9319 13.3333 10.6213 13.3333 10 13.3333C9.37873 13.3333 9.06813 13.3333 8.82307 13.2318C8.4964 13.0965 8.2368 12.8369 8.10147 12.5102C8 12.2652 8 11.9546 8 11.3333Z`,stroke:`currentColor`,strokeWidth:`1.5`})]})}function mB({...e}){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 640 640`,width:24,height:24,fill:`currentColor`,...e,children:(0,U.jsx)(`path`,{d:`M278.6 438.6L182.6 534.6C170.1 547.1 149.8 547.1 137.3 534.6L41.3 438.6C28.8 426.1 28.8 405.8 41.3 393.3C53.8 380.8 74.1 380.8 86.6 393.3L128 434.7L128 128C128 110.3 142.3 96 160 96C177.7 96 192 110.3 192 128L192 434.7L233.4 393.3C245.9 380.8 266.2 380.8 278.7 393.3C291.2 405.8 291.2 426.1 278.7 438.6zM352 96L384 96C401.7 96 416 110.3 416 128C416 145.7 401.7 160 384 160L352 160C334.3 160 320 145.7 320 128C320 110.3 334.3 96 352 96zM352 224L448 224C465.7 224 480 238.3 480 256C480 273.7 465.7 288 448 288L352 288C334.3 288 320 273.7 320 256C320 238.3 334.3 224 352 224zM352 352L512 352C529.7 352 544 366.3 544 384C544 401.7 529.7 416 512 416L352 416C334.3 416 320 401.7 320 384C320 366.3 334.3 352 352 352zM352 480L576 480C593.7 480 608 494.3 608 512C608 529.7 593.7 544 576 544L352 544C334.3 544 320 529.7 320 512C320 494.3 334.3 480 352 480z`})})}function hB({...e}){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 640 640`,width:24,height:24,fill:`currentColor`,...e,children:(0,U.jsx)(`path`,{stroke:`currentColor`,d:`M278.6 438.6L182.6 534.6C170.1 547.1 149.8 547.1 137.3 534.6L41.3 438.6C28.8 426.1 28.8 405.8 41.3 393.3C53.8 380.8 74.1 380.8 86.6 393.3L128 434.7L128 128C128 110.3 142.3 96 160 96C177.7 96 192 110.3 192 128L192 434.7L233.4 393.3C245.9 380.8 266.2 380.8 278.7 393.3C291.2 405.8 291.2 426.1 278.7 438.6zM352 544C334.3 544 320 529.7 320 512C320 494.3 334.3 480 352 480L384 480C401.7 480 416 494.3 416 512C416 529.7 401.7 544 384 544L352 544zM352 416C334.3 416 320 401.7 320 384C320 366.3 334.3 352 352 352L448 352C465.7 352 480 366.3 480 384C480 401.7 465.7 416 448 416L352 416zM352 288C334.3 288 320 273.7 320 256C320 238.3 334.3 224 352 224L512 224C529.7 224 544 238.3 544 256C544 273.7 529.7 288 512 288L352 288zM352 160C334.3 160 320 145.7 320 128C320 110.3 334.3 96 352 96L576 96C593.7 96 608 110.3 608 128C608 145.7 593.7 160 576 160L352 160z`})})}var gB={selected:`_selected_gzoet_1`};function _B({value:e,onChange:t,options:n}){return(0,U.jsx)(Eu,{gap:16,children:n.map(n=>(0,U.jsx)(dy,{label:n.label,children:(0,U.jsx)(gu,{size:32,p:0,variant:`subtle`,className:Tn({[gB.selected]:e===n.value}),onClick:()=>t(n.value),children:n.icon})},String(n.value)))})}function vB({...e}){return(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,U.jsx)(`path`,{d:`M2 18C2 16.4596 2 15.6893 2.34673 15.1235C2.54074 14.8069 2.80693 14.5407 3.12353 14.3467C3.68934 14 4.45956 14 6 14C7.54044 14 8.31066 14 8.87647 14.3467C9.19307 14.5407 9.45926 14.8069 9.65327 15.1235C10 15.6893 10 16.4596 10 18C10 19.5404 10 20.3107 9.65327 20.8765C9.45926 21.1931 9.19307 21.4593 8.87647 21.6533C8.31066 22 7.54044 22 6 22C4.45956 22 3.68934 22 3.12353 21.6533C2.80693 21.4593 2.54074 21.1931 2.34673 20.8765C2 20.3107 2 19.5404 2 18Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M14 18C14 16.4596 14 15.6893 14.3467 15.1235C14.5407 14.8069 14.8069 14.5407 15.1235 14.3467C15.6893 14 16.4596 14 18 14C19.5404 14 20.3107 14 20.8765 14.3467C21.1931 14.5407 21.4593 14.8069 21.6533 15.1235C22 15.6893 22 16.4596 22 18C22 19.5404 22 20.3107 21.6533 20.8765C21.4593 21.1931 21.1931 21.4593 20.8765 21.6533C20.3107 22 19.5404 22 18 22C16.4596 22 15.6893 22 15.1235 21.6533C14.8069 21.4593 14.5407 21.1931 14.3467 20.8765C14 20.3107 14 19.5404 14 18Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M2 6C2 4.45956 2 3.68934 2.34673 3.12353C2.54074 2.80693 2.80693 2.54074 3.12353 2.34673C3.68934 2 4.45956 2 6 2C7.54044 2 8.31066 2 8.87647 2.34673C9.19307 2.54074 9.45926 2.80693 9.65327 3.12353C10 3.68934 10 4.45956 10 6C10 7.54044 10 8.31066 9.65327 8.87647C9.45926 9.19307 9.19307 9.45926 8.87647 9.65327C8.31066 10 7.54044 10 6 10C4.45956 10 3.68934 10 3.12353 9.65327C2.80693 9.45926 2.54074 9.19307 2.34673 8.87647C2 8.31066 2 7.54044 2 6Z`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M14 6C14 4.45956 14 3.68934 14.3467 3.12353C14.5407 2.80693 14.8069 2.54074 15.1235 2.34673C15.6893 2 16.4596 2 18 2C19.5404 2 20.3107 2 20.8765 2.34673C21.1931 2.54074 21.4593 2.80693 21.6533 3.12353C22 3.68934 22 4.45956 22 6C22 7.54044 22 8.31066 21.6533 8.87647C21.4593 9.19307 21.1931 9.45926 20.8765 9.65327C20.3107 10 19.5404 10 18 10C16.4596 10 15.6893 10 15.1235 9.65327C14.8069 9.45926 14.5407 9.19307 14.3467 8.87647C14 8.31066 14 7.54044 14 6Z`,stroke:`currentColor`,strokeWidth:`1.5`})]})}function yB({...e}){return(0,U.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,U.jsx)(`path`,{d:`M3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088Z`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,U.jsx)(`path`,{d:`M2.5 9H21.5`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M2.5 13H21.5`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M2.5 17H21.5`,stroke:`currentColor`,strokeWidth:`1.5`}),(0,U.jsx)(`path`,{d:`M12 21.5V9`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`})]})}function bB(){let[e,t]=Gt({key:IT.TABLE_VIEW,defaultValue:`list`,getInitialValueInEffect:!1});return{viewType:e,isCardView:e===`grid`,setViewType:t}}function xB(){let{viewType:e,setViewType:t}=bB(),{_:n}=Yj();return(0,U.jsx)(_B,{value:e,onChange:t,options:[{value:`list`,label:n({id:`mbM6E8`}),icon:(0,U.jsx)(yB,{})},{value:`grid`,label:n({id:`APYQPm`}),icon:(0,U.jsx)(vB,{})}]})}var SB={menuItem:`_menuItem_16isq_1`,menuItemSelected:`_menuItemSelected_16isq_5`,selectedSorting:`_selectedSorting_16isq_9`,cellWithCheckbox:`_cellWithCheckbox_16isq_13`,checkbox:`_checkbox_16isq_20`,checkboxInner:`_checkboxInner_16isq_24`};function CB({children:e,withSwitchActions:t=!0,...n}){let{_:r}=Yj(),{title:i,isCardView:a,withSelection:o,withSingleSelection:s,loading:c,paginatedData:l=[],isCurrentPageSelected:u,isCurrentPageIndeterminate:d,renderFilterSection:f,sortState:p,sortOptions:m,toggleCurrentPage:h,handleSort:g}=_F(),[_,v]=(0,H.useState)(!1),[y,{toggle:b}]=rn(!1),x=p?.field??null,S=p?.direction??null,C=m&&m.length>0,w=m?.find(e=>e.value===x)?.label??null??r({id:`m1SiNS`}),T=e=>e===`asc`?(0,U.jsx)(mB,{width:20,height:20}):e===`desc`?(0,U.jsx)(hB,{width:20,height:20}):(0,U.jsx)(fB,{width:20,height:20}),E=e=>{if(!g)return;let t=`desc`;x===e&&(S===`desc`?t=`asc`:S===`asc`&&(t=`unsorted`)),g({field:e,direction:t})},D=()=>{v(e=>!e)},O=e=>{e.stopPropagation(),h()},k=y||x&&x!==`unsorted`,A=o&&!s&&a;return(0,U.jsxs)(Vy,{gap:16,mb:16,...n,children:[A&&i&&(0,U.jsx)(Yb,{order:3,children:i}),(0,U.jsxs)(Eu,{justify:A||i?`space-between`:`flex-end`,align:`flex-end`,children:[A?(0,U.jsxs)(q,{className:SB.cellWithCheckbox,onClick:O,children:[(0,U.jsx)(tm,{classNames:{root:SB.checkbox,inner:SB.checkboxInner},disabled:c||!l.length,checked:u,indeterminate:d,onChange:h}),(0,U.jsxs)(Xf,{fw:500,children:[r({id:`mCB6Je`}),` `]})]}):i&&(0,U.jsx)(Yb,{order:3,children:i}),(0,U.jsxs)(Eu,{gap:8,children:[e,f&&(0,U.jsx)(jm,{variant:`subtle`,size:`compact-md`,className:Tn({[SB.selectedSorting]:_}),leftSection:(0,U.jsx)(pB,{}),onClick:D,children:r({id:`cSev+j`})}),C&&(0,U.jsxs)(eg,{position:`bottom-end`,width:175,onOpen:b,onClose:b,children:[(0,U.jsx)(eg.Target,{children:(0,U.jsx)(jm,{className:Tn({[SB.selectedSorting]:k}),variant:`subtle`,size:`compact-md`,leftSection:T(S),children:w})}),(0,U.jsx)(eg.Dropdown,{p:2,children:m?.map(e=>{let t=x===e.value;return(0,U.jsx)(eg.Item,{classNames:{item:Tn(SB.menuItem,{[SB.menuItemSelected]:t})},rightSection:t?T(S):null,onClick:()=>E(e.value),children:e.label},e.value)})})]}),t&&(0,U.jsx)(xB,{})]})]}),(0,U.jsx)(Ji,{expanded:_,children:f})]})}function wB({data:e,withClientPagination:t=!0,withServerPagination:n,page:r,pageSize:i,onPageChange:a,onPageSizeChange:o,totalPages:s,totalElements:c}){let[l,u]=(0,H.useState)(1),[d,f]=(0,H.useState)(TF.DEFAULT_PAGE_SIZE),p=a!==void 0||o!==void 0,m=n||p?r??1:l,h=n||p?i??TF.DEFAULT_PAGE_SIZE:d,g=EF.includes(h)?h:TF.DEFAULT_PAGE_SIZE,_=!n&&t,v=Math.max(1,Math.ceil(e.length/g)),y=n?s??1:v,b=Math.max(1,Math.min(m,y)),x=n?c??0:e.length;return{paginatedData:(0,H.useMemo)(()=>{if(n||!_)return e;let t=(b-1)*g,r=t+g;return e.slice(t,Math.min(r,e.length))},[e,b,g,_,n]),currentPage:b,totalPages:y,totalElements:x,handlePageChange:e=>{a?a(e):u(e)},handlePageSizeChange:e=>{o?o(e):(f(e),u(1))},pageSize:g}}var TB=/^\d{4}-\d{2}-\d{2}|^\d{2}[/.-]\d{2}[/.-]\d{4}|^\d{2}[/.-]\d{2}[/.-]\d{2}/,EB=/[^0-9.-]/g;function DB(e){return e instanceof Date?!0:typeof e==`string`?(0,Q.default)(e).isValid()&&TB.test(e):!1}function OB(e,t){return e-t}function kB(e,t){return(0,Q.default)(e).valueOf()-(0,Q.default)(t).valueOf()}function AB(e,t){let n=parseFloat(e.replace(EB,``)),r=parseFloat(t.replace(EB,``));return!isNaN(n)&&!isNaN(r)?n-r:e.localeCompare(t,void 0,{numeric:!0,sensitivity:`base`})}function jB(e,t){return e==null&&t==null?0:e==null?1:t==null?-1:typeof e==`number`&&typeof t==`number`?OB(e,t):DB(e)&&DB(t)?kB(e,t):typeof e==`string`&&typeof t==`string`?AB(e,t):e<t?-1:+(e>t)}function MB(e,t){return t.split(`.`).reduce((e,t)=>{if(typeof e==`object`&&e&&t in e)return e[t]},e)}function NB({data:e,sorting:t,withServerSorting:n,onPageChange:r}){let[i,a]=(0,H.useState)(null),o=t?.sortState,s=t?.onServerSort,c=s===void 0?i:o??null,l=(0,H.useMemo)(()=>(t?.sortOptions??[]).map(e=>e.value),[t?.sortOptions]);return{sortedData:(0,H.useMemo)(()=>{if(n||!c)return e;let{field:t,direction:r}=c;return r===`unsorted`||l.length>0&&!l.includes(t)?e:[...e].sort((e,n)=>{let i=jB(t.includes(`.`)?MB(e,t):e[t],t.includes(`.`)?MB(n,t):n[t]);return r===`desc`?-i:i})},[e,c,l,n]),currentSortState:c,handleSortChange:e=>{let{field:t,direction:n}=e;l.length>0&&!l.includes(t)||(r?.(1),s?s(e):a(n===`unsorted`?null:e))}}}function PB({title:e,columns:t=[],containerProps:n,data:r=[],emptyStateDescription:i,emptyStateTitle:a,idKey:o,loading:s,onSelectionChange:c,withSelection:l,selection:u=[],withSingleSelection:d,externalViewType:f,onPageChange:p,onPageSizeChange:m,page:h,pageSize:g,totalElements:_,totalPages:v,withPagination:y=!0,withServerPagination:b,withCollapsible:x,isRowCollapsible:S,renderCollapsed:C,collapsedViewType:w,withMultipleCollapse:T=!0,withinModal:E,renderHeaderActions:D,withSwitchActions:O=!0,onRowClick:k,getRowUrl:A,renderFilterSection:j,sorting:M}){let{isCardView:N}=bB(),P=f?f===`grid`:N,ee=O&&f==null,[F,I]=(0,H.useState)(null),{sortedData:te,currentSortState:ne,handleSortChange:re}=NB({data:r,sorting:M,withServerSorting:b,onPageChange:p}),{paginatedData:ie,currentPage:L,totalPages:ae,totalElements:oe,handlePageChange:se,handlePageSizeChange:ce,pageSize:le}=wB({data:te,withClientPagination:!b,withServerPagination:b,page:h,pageSize:g,onPageChange:p,onPageSizeChange:m,totalPages:v,totalElements:_}),ue=(e,t,n)=>{if(d){let n=u.some(t=>t[o]===e[o]);c?.(n?[]:[e]),I(n?null:t);return}if(n.shiftKey&&F!==null){let e=Math.min(F,t),n=Math.max(F,t),r=ie.slice(e,n+1),i=[...u.filter(e=>!r.some(t=>t[o]===e[o])),...r];c?.(i);return}let r=u.some(t=>t[o]===e[o])?u.filter(t=>t[o]!==e[o]):[...u,e];I(t),c?.(r)},de=()=>{if(d)return;let e=ie.every(e=>u.some(t=>t[o]===e[o]))?u.filter(e=>!ie.some(t=>e[o]===t[o])):[...u,...ie.filter(e=>!u.some(t=>t[o]===e[o]))];c?.(e)},fe=ie.length>0&&ie.every(e=>u.some(t=>t[o]===e[o])),R=u.length>0&&ie.some(e=>u.some(t=>t[o]===e[o]))&&!fe,pe={title:e,columns:t,data:ie,emptyStateDescription:i,emptyStateTitle:a,idKey:o,loading:s,onRowClick:k,getRowUrl:A,renderCollapsed:C,collapsedViewType:w,renderHeaderActions:D,selection:u,isRowCollapsible:S,withCollapsible:x,withMultipleCollapse:T,withPagination:y,withSelection:l,withServerPagination:b,withSingleSelection:d,withinModal:E,isCardView:P,isEmpty:!ie.length,checked:fe,indeterminate:R,onChange:de,disabled:s||!ie.length,sortState:ne,sortOptions:M?.sortOptions,handleSort:re,paginatedData:ie,currentPage:L,totalPages:ae,totalElements:oe,currentPageSize:le,handlePageChange:se,handlePageSizeChange:ce,toggleRow:ue,toggleCurrentPage:de,isCurrentPageSelected:fe,isCurrentPageIndeterminate:R,renderFilterSection:j};return(0,U.jsx)(gF.Provider,{value:pe,children:(0,U.jsxs)(q,{...n,className:Tn(oB.container,n?.className),mod:{"within-modal":E},children:[(0,U.jsx)(CB,{withSwitchActions:ee,children:D?D({selection:u}):null}),(0,U.jsx)(H.Activity,{mode:pe.isEmpty&&!s?`visible`:`hidden`,children:(0,U.jsx)(dB,{title:a,description:i})}),P?(0,U.jsx)(tB,{}):(0,U.jsx)(sB,{})]})})}var FB=PB;function IB({headers:e=[],rows:t=[]}){let n=t.map((e,t)=>{let n={id:t};return e.forEach((e,t)=>{n[`col${t}`]=e}),n}),r=e.map((e,t)=>({header:e,accessor:`col${t}`}));return n.length===0?null:(0,U.jsx)(FB,{idKey:`id`,data:n,columns:r,withPagination:!1,withSwitchActions:!1})}function LB({title:e,content:t,variant:n=`info`}){return(0,U.jsx)(Gf,{icon:(0,H.useMemo)(()=>{switch(n){case`success`:return(0,U.jsx)(ET,{});case`warning`:return(0,U.jsx)(OT,{});case`error`:return(0,U.jsx)(TT,{});default:return(0,U.jsx)(DT,{})}},[n]),title:e,color:{info:`blue`,success:`green`,warning:`yellow`,error:`red`}[n],radius:`md`,children:t})}var RB={actionButton:`_actionButton_1bbt8_1`};function zB({actions:e,onActionClick:t}){return!e||e.length===0?null:(0,U.jsx)(Eu,{gap:`xs`,wrap:`wrap`,mt:`xs`,children:e.map(e=>(0,U.jsx)(jm,{variant:`outline`,size:`sm`,radius:`sm`,className:RB.actionButton,onClick:()=>t?.({type:`action-click`,data:{agentMessage:e.agentMessage,targetAgent:e.targetAgent}}),children:e.buttonText},e.buttonText))})}function BB(e){return typeof e==`object`&&!!e}function VB(e){return typeof e==`object`&&!!e&&`responseList`in e}function HB(e){if(typeof e!=`object`||!e)return[];let t=e;if(!t?.activePlan?.details)return[];let n=t.activePlan.details,r={data:`Data`,voice:`Min`,sms:`SMS`};return[`data`,`voice`,`sms`].map(e=>{let t=n[e],i=typeof t==`string`?t:typeof t==`number`?String(t):`-`,a=i.trim().split(/\s+/),o=a.length>1?a.slice(0,-1).join(` `):i,s=a.length>1?a[a.length-1]:null;return{key:e,type:r[e]||e,amount:o,unit:s}})}function UB(e){if(!e)return{price:void 0,suffix:void 0};let t=e.price;if(!t)return{price:void 0,suffix:void 0};let n=t.discount??t.price;return{price:typeof n==`number`?`$${n.toFixed(2)}`:n,suffix:t.showMonthly===!1?void 0:`/mth`}}function WB(e,t){let n=VB(e)?e.responseList:void 0,r=UB(t);if(n&&n.length>1)return{overviewItems:n.map(e=>{let t=HB(e),n=BB(e)?e:void 0;return{billingAccountId:n?.billingAccountId,title:n?.activePlan?.planName,advantages:t,price:r.price,priceSuffix:r.suffix}}),isMultipleAccounts:!0};let i=n?.[0],a=HB(i),o=BB(i)?i:void 0;return{advantages:a,price:r.price,priceSuffix:r.suffix,accountData:o,isMultipleAccounts:!1}}function GB({config:e,onWidgetEvent:t}){let n=WB(e.data,e.visualizationConfig);return n.isMultipleAccounts?(0,U.jsx)(hF,{items:n.overviewItems,title:e.visualizationConfig?.title||`Select Account`,onSelectAccount:e=>{t?.({type:`select-account`,data:{billingAccountId:e}})}}):(0,U.jsx)(hF,{title:n.accountData?.activePlan?.planName||e.visualizationConfig?.title,advantages:n.advantages,price:n.price,priceSuffix:n.priceSuffix,ctaLabel:e.visualizationConfig?.cta?.label,onCtaClick:()=>{t?.({type:`cta-click`,data:{}})}})}function KB(e){let t=e.trim().toLowerCase();switch(t){case`usage-chart`:return`usage-chart`;case`chart`:return`chart`;case`offer-card`:case`addon-card`:return t;case`overview-card`:case`account-overview`:return t;case`card`:return`overview-card`;case`table`:return`table`;case`highlightbox`:case`highlight-box`:return`highlight-box`;case`info-box`:return`info-box`;case`actions`:return`actions`;default:return null}}function qB(e){let t=KB(e.type);if(!t)return null;switch(t){case`chart`:case`usage-chart`:return{type:t,config:e};case`offer-card`:case`addon-card`:return{type:t,config:e};case`overview-card`:case`account-overview`:return{type:t,config:e};case`table`:return{type:t,config:e};case`highlight-box`:case`info-box`:return{type:t,config:e};case`actions`:return{type:t,config:e};default:return null}}function JB(e){return typeof e==`object`&&!!e&&`responseList`in e}function YB(e){return Array.isArray(e)&&e.length>0}function XB(e){switch(e.type){case`actions`:return YB(e.config.actions);case`chart`:case`usage-chart`:return YB(e.config.items);case`offer-card`:case`addon-card`:return YB(e.config.items)||JB(e.config.data);case`table`:return YB(e.config.items);case`highlight-box`:case`info-box`:return!!(e.config.visualizationConfig?.title||e.config.visualizationConfig?.content);case`overview-card`:case`account-overview`:return!!(JB(e.config.data)||e.config.visualizationConfig?.price||e.config.visualizationConfig?.cta||e.config.visualizationConfig?.title);default:return!0}}function ZB(e,t){let n=qB(e);if(!n||!XB(n))return{kind:`fallback`,payload:e};switch(n.type){case`chart`:case`usage-chart`:return{kind:`widget`,widget:(0,U.jsx)(cF,{items:n.config.items,title:n.config.visualizationConfig?.title})};case`offer-card`:case`addon-card`:return{kind:`widget`,widget:(0,U.jsx)(dF,{items:JB(n.config.data)?n.config.data.responseList:n.config.items,title:n.config.visualizationConfig?.title,showPricing:n.config.visualizationConfig?.showPricing,onSelectOffer:e=>{t?.({type:`select-offer`,data:{offerId:e}})}})};case`overview-card`:case`account-overview`:return{kind:`widget`,widget:(0,U.jsx)(GB,{config:n.config,onWidgetEvent:t})};case`table`:return{kind:`widget`,widget:(0,U.jsx)(IB,{headers:n.config.visualizationConfig?.headers,rows:n.config.items})};case`highlight-box`:case`info-box`:return{kind:`widget`,widget:(0,U.jsx)(LB,{title:n.config.visualizationConfig?.title,content:n.config.visualizationConfig?.content,variant:n.config.visualizationConfig?.variant})};case`actions`:return{kind:`widget`,widget:(0,U.jsx)(zB,{actions:n.config.actions,onActionClick:t})};default:return{kind:`fallback`,payload:e}}}var QB=e=>e!=null&&(typeof e!=`string`||e.trim()!==``);function $B(e){if(typeof e!=`object`||!e)return!1;let t=Object.values(e);return t.length===0?!1:t.some(QB)}function eV(e){return e.replace(/(?:\r?\n)?\s*(?:'{3}|"{3}|`{3})\s*$/i,``).replace(/(?:\r?\n)?\s*(?:'{3}|"{3}|`{3})\s*json\s*(?:'{3}|"{3}|`{3})?\s*$/i,``).trimEnd()}function tV(e){return e.replace(/\s*"structuredData"\s*:\s*$/i,``).replace(/\s*\\"structuredData\\"\s*:\s*$/i,``).trimEnd()}function nV(e){return e.replace(/\\r\\n/g,`
379
379
  `).replace(/\\n/g,`
380
- `)}function kB(e){let t=e.trim();if(t.startsWith(`"`)&&t.endsWith(`"`)){let e=tV(t);if(typeof e==`string`)return e}return e}function AB(e){let t=e=>e.replace(/\\\\/g,`\\`).replace(/\\r\\n/g,`\r
380
+ `)}function rV(e){let t=e.trim();if(t.startsWith(`"`)&&t.endsWith(`"`)){let e=kV(t);if(typeof e==`string`)return e}return e}function iV(e){let t=e=>e.replace(/\\\\/g,`\\`).replace(/\\r\\n/g,`\r
381
381
  `).replace(/\\n/g,`
382
- `).replace(/\\t/g,` `).replace(/\\'/g,`'`).replace(/\\"/g,`"`).replace(/\\`/g,"`"),n=e;for(let e=0;e<3;e++){let e=t(n);if(e===n)break;n=e}return n.replace(/('{3})/g,"```").replace(/("{3})/g,"```").replace(/(`{3})/g,"```")}function jB(e){return e.split(`|`).map(e=>e.trim()).filter(e=>e!==``)}function MB(e){return e.every(e=>/^:?-+:?$/.test(e)||/^-+$/.test(e))}function NB(e){return e.replace(/\*\*([^*]+)\*\*/g,`$1`).replace(/\*([^*]+)\*/g,`$1`).replace(/`([^`]+)`/g,`$1`).replace(/~~([^~]+)~~/g,`$1`).trim()}function PB(e){let t=[],n=e.split(/\r?\n/),r=[],i=()=>{if(r.length){let e=r.join(`
383
- `).trim();e&&t.push({type:`markdown`,content:e}),r.length=0}},a=0;for(;a<n.length;){let e=n[a]??``,o=e.trim(),s=jB(e);if(!(o.startsWith(`|`)&&o.endsWith(`|`)&&s.length>=1)){r.push(e),a++;continue}let c=s;if(a++,a>=n.length){r.push(e);continue}let l=n[a]??``,u=jB(l),d=l.trim();if(!(d.startsWith(`|`)&&d.endsWith(`|`)&&u.length>=1)||!MB(u)){r.push(e);continue}a++;let f=[];for(;a<n.length;){let e=n[a]??``,t=e.trim(),r=jB(e);if(!(t.startsWith(`|`)&&t.endsWith(`|`)&&r.length>=1))break;f.push(r.map(NB)),a++}i(),t.push({type:`table`,config:{type:`table`,columns:c.map(NB),rows:f}})}return i(),t}var FB=/```\s*markdown-ui-widget\s*\n([\s\S]*?)```/g;function IB(e){if(!e?.trim())return[];let t=[],n=0,r;for(FB.lastIndex=0;(r=FB.exec(e))!==null;){let i=e.slice(n,r.index).trim();i&&t.push({type:`markdown`,content:i});let a=r[0],o=r[1].trim();t.push({type:`widget`,dsl:o,raw:a}),n=FB.lastIndex}let i=e.slice(n).trim();return i&&t.push({type:`markdown`,content:i}),t.length>0?t:[{type:`markdown`,content:e}]}function LB(e){let t=e.trim();if(!t||!t.startsWith(`{`))return null;let n=oV(t);if(!n||typeof n!=`object`)return null;let r=n;if(typeof r.type==`string`)return r;let i=DV(n);if(!OV(i))return null;let a=AV(i);return!a||a.type!==`widget`?null:a.config}var RB=new vE(`markdown-json-splitter`);function zB(e,t){let n=DB(t.trim());n&&e.push({type:`markdown`,content:n})}function BB(e,t){let n=VB(t);n&&e.push(n)}function VB(e){let t=oV(e),n=t?DV(t):null;return n&&OV(n)?AV(n):null}function HB(e){let t=[],n=0;for(;;){let r=e.slice(n),i=sV(r);if(!i)break;zB(t,EB(r.slice(0,i.start))),BB(t,i.json);let a=r.slice(i.start+i.consumed),o=pV(a),s=fV(a.slice(o)),c=i.start+i.consumed+o+s;n+=c}let r=e.slice(n).trim();for(;r;){let e=uV(r);if(!e){dV(r)||t.push({type:`markdown`,content:r});break}zB(t,r.slice(0,e.start)),BB(t,e.fullJson),r=r.slice(e.start+e.consumed).trim()}return t}function UB(e){if(!e?.trim())return[];let t=kB(e),n=HB(AB(t));return RB.debug(`Expanded result`,{chunks:n}),n.length>0?n:[{type:`markdown`,content:t}]}function WB(e){return["```markdown-ui-widget",JSON.stringify(e),"```"].join(`
384
- `)}function GB(e){let t=IB(OB(e??``)),n=[];for(let e of t){if(e.type===`widget`){let t=LB(e.dsl);t?n.push(WB(t)):e.raw.trim()&&n.push(e.raw.trim());continue}let t=UB(e.content);for(let e of t){if(e.type===`widget`){let t=WB(e.config);n.push(t);continue}let t=PB(e.content);for(let e of t)e.type===`markdown`?e.content.trim()&&n.push(e.content.trim()):n.push(WB(e.config))}}return n.join(`
382
+ `).replace(/\\t/g,` `).replace(/\\'/g,`'`).replace(/\\"/g,`"`).replace(/\\`/g,"`"),n=e;for(let e=0;e<3;e++){let e=t(n);if(e===n)break;n=e}return n.replace(/('{3})/g,"```").replace(/("{3})/g,"```").replace(/(`{3})/g,"```")}function aV(e){return e.split(`|`).map(e=>e.trim()).filter(e=>e!==``)}function oV(e){return e.every(e=>/^:?-+:?$/.test(e)||/^-+$/.test(e))}function sV(e){return e.replace(/\*\*([^*]+)\*\*/g,`$1`).replace(/\*([^*]+)\*/g,`$1`).replace(/`([^`]+)`/g,`$1`).replace(/~~([^~]+)~~/g,`$1`).trim()}function cV(e){let t=[],n=e.split(/\r?\n/),r=[],i=()=>{if(r.length){let e=r.join(`
383
+ `).trim();e&&t.push({type:`markdown`,content:e}),r.length=0}},a=0;for(;a<n.length;){let e=n[a]??``,o=e.trim(),s=aV(e);if(!(o.startsWith(`|`)&&o.endsWith(`|`)&&s.length>=1)){r.push(e),a++;continue}let c=s;if(a++,a>=n.length){r.push(e);continue}let l=n[a]??``,u=aV(l),d=l.trim();if(!(d.startsWith(`|`)&&d.endsWith(`|`)&&u.length>=1)||!oV(u)){r.push(e);continue}a++;let f=[];for(;a<n.length;){let e=n[a]??``,t=e.trim(),r=aV(e);if(!(t.startsWith(`|`)&&t.endsWith(`|`)&&r.length>=1))break;f.push(r.map(sV)),a++}i(),t.push({type:`table`,config:{type:`table`,columns:c.map(sV),rows:f}})}return i(),t}var lV=/```\s*markdown-ui-widget\s*\n([\s\S]*?)```/g;function uV(e){if(!e?.trim())return[];let t=[],n=0,r;for(lV.lastIndex=0;(r=lV.exec(e))!==null;){let i=e.slice(n,r.index).trim();i&&t.push({type:`markdown`,content:i});let a=r[0],o=r[1].trim();t.push({type:`widget`,dsl:o,raw:a}),n=lV.lastIndex}let i=e.slice(n).trim();return i&&t.push({type:`markdown`,content:i}),t.length>0?t:[{type:`markdown`,content:e}]}function dV(e){let t=e.trim();if(!t||!t.startsWith(`{`))return null;let n=PV(t);if(!n||typeof n!=`object`)return null;let r=n;if(typeof r.type==`string`)return r;let i=tH(n);if(!nH(i))return null;let a=iH(i);return!a||a.type!==`widget`?null:a.config}var fV=new pE(`markdown-json-splitter`);function pV(e,t){let n=tV(t.trim());n&&e.push({type:`markdown`,content:n})}function mV(e,t){let n=hV(t);n&&e.push(n)}function hV(e){let t=PV(e),n=t?tH(t):null;return n&&nH(n)?iH(n):null}function gV(e){let t=[],n=0;for(;;){let r=e.slice(n),i=FV(r);if(!i)break;pV(t,eV(r.slice(0,i.start))),mV(t,i.json);let a=r.slice(i.start+i.consumed),o=VV(a),s=BV(a.slice(o)),c=i.start+i.consumed+o+s;n+=c}let r=e.slice(n).trim();for(;r;){let e=RV(r);if(!e){zV(r)||t.push({type:`markdown`,content:r});break}pV(t,r.slice(0,e.start)),mV(t,e.fullJson),r=r.slice(e.start+e.consumed).trim()}return t}function _V(e){if(!e?.trim())return[];let t=rV(e),n=gV(iV(t));return fV.debug(`Expanded result`,{chunks:n}),n.length>0?n:[{type:`markdown`,content:t}]}function vV(e){return["```markdown-ui-widget",JSON.stringify(e),"```"].join(`
384
+ `)}function yV(e){let t=uV(nV(e??``)),n=[];for(let e of t){if(e.type===`widget`){let t=dV(e.dsl);t?n.push(vV(t)):e.raw.trim()&&n.push(e.raw.trim());continue}let t=_V(e.content);for(let e of t){if(e.type===`widget`){let t=vV(e.config);n.push(t);continue}let t=cV(e.content);for(let e of t)e.type===`markdown`?e.content.trim()&&n.push(e.content.trim()):n.push(vV(e.config))}}return n.join(`
385
385
 
386
- `).trim()}var KB=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):n.JSON5=r()})(e,(function(){"use strict";function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}var t=e(function(e){var t=e.exports=typeof window<`u`&&window.Math==Math?window:typeof self<`u`&&self.Math==Math?self:Function(`return this`)();typeof __g==`number`&&(__g=t)}),n=e(function(e){var t=e.exports={version:`2.6.5`};typeof __e==`number`&&(__e=t)});n.version;var r=function(e){return typeof e==`object`?e!==null:typeof e==`function`},i=function(e){if(!r(e))throw TypeError(e+` is not an object!`);return e},a=function(e){try{return!!e()}catch{return!0}},o=!a(function(){return Object.defineProperty({},`a`,{get:function(){return 7}}).a!=7}),s=t.document,c=r(s)&&r(s.createElement),l=function(e){return c?s.createElement(e):{}},u=!o&&!a(function(){return Object.defineProperty(l(`div`),`a`,{get:function(){return 7}}).a!=7}),d=function(e,t){if(!r(e))return e;var n,i;if(t&&typeof(n=e.toString)==`function`&&!r(i=n.call(e))||typeof(n=e.valueOf)==`function`&&!r(i=n.call(e))||!t&&typeof(n=e.toString)==`function`&&!r(i=n.call(e)))return i;throw TypeError(`Can't convert object to primitive value`)},f=Object.defineProperty,p={f:o?Object.defineProperty:function(e,t,n){if(i(e),t=d(t,!0),i(n),u)try{return f(e,t,n)}catch{}if(`get`in n||`set`in n)throw TypeError(`Accessors not supported!`);return`value`in n&&(e[t]=n.value),e}},m=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},h=o?function(e,t,n){return p.f(e,t,m(1,n))}:function(e,t,n){return e[t]=n,e},g={}.hasOwnProperty,_=function(e,t){return g.call(e,t)},v=0,y=Math.random(),b=function(e){return`Symbol(${e===void 0?``:e})_${(++v+y).toString(36)}`},x=!1,S=e(function(e){var r=`__core-js_shared__`,i=t[r]||(t[r]={});(e.exports=function(e,t){return i[e]||(i[e]=t===void 0?{}:t)})(`versions`,[]).push({version:n.version,mode:x?`pure`:`global`,copyright:`© 2019 Denis Pushkarev (zloirock.ru)`})})(`native-function-to-string`,Function.toString),C=e(function(e){var r=b(`src`),i=`toString`,a=(``+S).split(i);n.inspectSource=function(e){return S.call(e)},(e.exports=function(e,n,i,o){var s=typeof i==`function`;s&&(_(i,`name`)||h(i,`name`,n)),e[n]!==i&&(s&&(_(i,r)||h(i,r,e[n]?``+e[n]:a.join(String(n)))),e===t?e[n]=i:o?e[n]?e[n]=i:h(e,n,i):(delete e[n],h(e,n,i)))})(Function.prototype,i,function(){return typeof this==`function`&&this[r]||S.call(this)})}),w=function(e){if(typeof e!=`function`)throw TypeError(e+` is not a function!`);return e},T=function(e,t,n){if(w(e),t===void 0)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},E=`prototype`,D=function(e,r,i){var a=e&D.F,o=e&D.G,s=e&D.S,c=e&D.P,l=e&D.B,u=o?t:s?t[r]||(t[r]={}):(t[r]||{})[E],d=o?n:n[r]||(n[r]={}),f=d[E]||(d[E]={}),p,m,g,_;for(p in o&&(i=r),i)m=!a&&u&&u[p]!==void 0,g=(m?u:i)[p],_=l&&m?T(g,t):c&&typeof g==`function`?T(Function.call,g):g,u&&C(u,p,g,e&D.U),d[p]!=g&&h(d,p,_),c&&f[p]!=g&&(f[p]=g)};t.core=n,D.F=1,D.G=2,D.S=4,D.P=8,D.B=16,D.W=32,D.U=64,D.R=128;var O=D,k=Math.ceil,A=Math.floor,j=function(e){return isNaN(e=+e)?0:(e>0?A:k)(e)},M=function(e){if(e==null)throw TypeError(`Can't call method on `+e);return e},N=function(e){return function(t,n){var r=String(M(t)),i=j(n),a=r.length,o,s;return i<0||i>=a?e?``:void 0:(o=r.charCodeAt(i),o<55296||o>56319||i+1===a||(s=r.charCodeAt(i+1))<56320||s>57343?e?r.charAt(i):o:e?r.slice(i,i+2):(o-55296<<10)+(s-56320)+65536)}}(!1);O(O.P,`String`,{codePointAt:function(e){return N(this,e)}}),n.String.codePointAt;var P=Math.max,ee=Math.min,F=function(e,t){return e=j(e),e<0?P(e+t,0):ee(e,t)},I=String.fromCharCode,te=String.fromCodePoint;O(O.S+O.F*(!!te&&te.length!=1),`String`,{fromCodePoint:function(e){for(var t=arguments,n=[],r=arguments.length,i=0,a;r>i;){if(a=+t[i++],F(a,1114111)!==a)throw RangeError(a+` is not a valid code point`);n.push(a<65536?I(a):I(((a-=65536)>>10)+55296,a%1024+56320))}return n.join(``)}}),n.String.fromCodePoint;var ne={Space_Separator:/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ID_Start:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},re={isSpaceSeparator:function(e){return typeof e==`string`&&ne.Space_Separator.test(e)},isIdStartChar:function(e){return typeof e==`string`&&(e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`||e===`$`||e===`_`||ne.ID_Start.test(e))},isIdContinueChar:function(e){return typeof e==`string`&&(e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`||e>=`0`&&e<=`9`||e===`$`||e===`_`||e===`‌`||e===`‍`||ne.ID_Continue.test(e))},isDigit:function(e){return typeof e==`string`&&/[0-9]/.test(e)},isHexDigit:function(e){return typeof e==`string`&&/[0-9A-Fa-f]/.test(e)}},ie,L,ae,oe,se,ce,le,ue,de,fe=function(e,t){ie=String(e),L=`start`,ae=[],oe=0,se=1,ce=0,le=void 0,ue=void 0,de=void 0;do le=_e(),Te[L]();while(le.type!==`eof`);return typeof t==`function`?R({"":de},``,t):de};function R(e,t,n){var r=e[t];if(typeof r==`object`&&r)if(Array.isArray(r))for(var i=0;i<r.length;i++){var a=String(i),o=R(r,a,n);o===void 0?delete r[a]:Object.defineProperty(r,a,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(var s in r){var c=R(r,s,n);c===void 0?delete r[s]:Object.defineProperty(r,s,{value:c,writable:!0,enumerable:!0,configurable:!0})}return n.call(e,t,r)}var pe,me,he,ge,z;function _e(){for(pe=`default`,me=``,he=!1,ge=1;;){z=ve();var e=ye[pe]();if(e)return e}}function ve(){if(ie[oe])return String.fromCodePoint(ie.codePointAt(oe))}function B(){var e=ve();return e===`
386
+ `).trim()}var bV=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):n.JSON5=r()})(e,(function(){"use strict";function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}var t=e(function(e){var t=e.exports=typeof window<`u`&&window.Math==Math?window:typeof self<`u`&&self.Math==Math?self:Function(`return this`)();typeof __g==`number`&&(__g=t)}),n=e(function(e){var t=e.exports={version:`2.6.5`};typeof __e==`number`&&(__e=t)});n.version;var r=function(e){return typeof e==`object`?e!==null:typeof e==`function`},i=function(e){if(!r(e))throw TypeError(e+` is not an object!`);return e},a=function(e){try{return!!e()}catch{return!0}},o=!a(function(){return Object.defineProperty({},`a`,{get:function(){return 7}}).a!=7}),s=t.document,c=r(s)&&r(s.createElement),l=function(e){return c?s.createElement(e):{}},u=!o&&!a(function(){return Object.defineProperty(l(`div`),`a`,{get:function(){return 7}}).a!=7}),d=function(e,t){if(!r(e))return e;var n,i;if(t&&typeof(n=e.toString)==`function`&&!r(i=n.call(e))||typeof(n=e.valueOf)==`function`&&!r(i=n.call(e))||!t&&typeof(n=e.toString)==`function`&&!r(i=n.call(e)))return i;throw TypeError(`Can't convert object to primitive value`)},f=Object.defineProperty,p={f:o?Object.defineProperty:function(e,t,n){if(i(e),t=d(t,!0),i(n),u)try{return f(e,t,n)}catch{}if(`get`in n||`set`in n)throw TypeError(`Accessors not supported!`);return`value`in n&&(e[t]=n.value),e}},m=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},h=o?function(e,t,n){return p.f(e,t,m(1,n))}:function(e,t,n){return e[t]=n,e},g={}.hasOwnProperty,_=function(e,t){return g.call(e,t)},v=0,y=Math.random(),b=function(e){return`Symbol(${e===void 0?``:e})_${(++v+y).toString(36)}`},x=!1,S=e(function(e){var r=`__core-js_shared__`,i=t[r]||(t[r]={});(e.exports=function(e,t){return i[e]||(i[e]=t===void 0?{}:t)})(`versions`,[]).push({version:n.version,mode:x?`pure`:`global`,copyright:`© 2019 Denis Pushkarev (zloirock.ru)`})})(`native-function-to-string`,Function.toString),C=e(function(e){var r=b(`src`),i=`toString`,a=(``+S).split(i);n.inspectSource=function(e){return S.call(e)},(e.exports=function(e,n,i,o){var s=typeof i==`function`;s&&(_(i,`name`)||h(i,`name`,n)),e[n]!==i&&(s&&(_(i,r)||h(i,r,e[n]?``+e[n]:a.join(String(n)))),e===t?e[n]=i:o?e[n]?e[n]=i:h(e,n,i):(delete e[n],h(e,n,i)))})(Function.prototype,i,function(){return typeof this==`function`&&this[r]||S.call(this)})}),w=function(e){if(typeof e!=`function`)throw TypeError(e+` is not a function!`);return e},T=function(e,t,n){if(w(e),t===void 0)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},E=`prototype`,D=function(e,r,i){var a=e&D.F,o=e&D.G,s=e&D.S,c=e&D.P,l=e&D.B,u=o?t:s?t[r]||(t[r]={}):(t[r]||{})[E],d=o?n:n[r]||(n[r]={}),f=d[E]||(d[E]={}),p,m,g,_;for(p in o&&(i=r),i)m=!a&&u&&u[p]!==void 0,g=(m?u:i)[p],_=l&&m?T(g,t):c&&typeof g==`function`?T(Function.call,g):g,u&&C(u,p,g,e&D.U),d[p]!=g&&h(d,p,_),c&&f[p]!=g&&(f[p]=g)};t.core=n,D.F=1,D.G=2,D.S=4,D.P=8,D.B=16,D.W=32,D.U=64,D.R=128;var O=D,k=Math.ceil,A=Math.floor,j=function(e){return isNaN(e=+e)?0:(e>0?A:k)(e)},M=function(e){if(e==null)throw TypeError(`Can't call method on `+e);return e},N=function(e){return function(t,n){var r=String(M(t)),i=j(n),a=r.length,o,s;return i<0||i>=a?e?``:void 0:(o=r.charCodeAt(i),o<55296||o>56319||i+1===a||(s=r.charCodeAt(i+1))<56320||s>57343?e?r.charAt(i):o:e?r.slice(i,i+2):(o-55296<<10)+(s-56320)+65536)}}(!1);O(O.P,`String`,{codePointAt:function(e){return N(this,e)}}),n.String.codePointAt;var P=Math.max,ee=Math.min,F=function(e,t){return e=j(e),e<0?P(e+t,0):ee(e,t)},I=String.fromCharCode,te=String.fromCodePoint;O(O.S+O.F*(!!te&&te.length!=1),`String`,{fromCodePoint:function(e){for(var t=arguments,n=[],r=arguments.length,i=0,a;r>i;){if(a=+t[i++],F(a,1114111)!==a)throw RangeError(a+` is not a valid code point`);n.push(a<65536?I(a):I(((a-=65536)>>10)+55296,a%1024+56320))}return n.join(``)}}),n.String.fromCodePoint;var ne={Space_Separator:/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ID_Start:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,ID_Continue:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},re={isSpaceSeparator:function(e){return typeof e==`string`&&ne.Space_Separator.test(e)},isIdStartChar:function(e){return typeof e==`string`&&(e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`||e===`$`||e===`_`||ne.ID_Start.test(e))},isIdContinueChar:function(e){return typeof e==`string`&&(e>=`a`&&e<=`z`||e>=`A`&&e<=`Z`||e>=`0`&&e<=`9`||e===`$`||e===`_`||e===`‌`||e===`‍`||ne.ID_Continue.test(e))},isDigit:function(e){return typeof e==`string`&&/[0-9]/.test(e)},isHexDigit:function(e){return typeof e==`string`&&/[0-9A-Fa-f]/.test(e)}},ie,L,ae,oe,se,ce,le,ue,de,fe=function(e,t){ie=String(e),L=`start`,ae=[],oe=0,se=1,ce=0,le=void 0,ue=void 0,de=void 0;do le=_e(),Te[L]();while(le.type!==`eof`);return typeof t==`function`?R({"":de},``,t):de};function R(e,t,n){var r=e[t];if(typeof r==`object`&&r)if(Array.isArray(r))for(var i=0;i<r.length;i++){var a=String(i),o=R(r,a,n);o===void 0?delete r[a]:Object.defineProperty(r,a,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(var s in r){var c=R(r,s,n);c===void 0?delete r[s]:Object.defineProperty(r,s,{value:c,writable:!0,enumerable:!0,configurable:!0})}return n.call(e,t,r)}var pe,me,he,ge,z;function _e(){for(pe=`default`,me=``,he=!1,ge=1;;){z=ve();var e=ye[pe]();if(e)return e}}function ve(){if(ie[oe])return String.fromCodePoint(ie.codePointAt(oe))}function B(){var e=ve();return e===`
387
387
  `?(se++,ce=0):e?ce+=e.length:ce++,e&&(oe+=e.length),e}var ye={default:function(){switch(z){case` `:case`\v`:case`\f`:case` `:case`\xA0`:case``:case`
388
388
  `:case`\r`:case`\u2028`:case`\u2029`:B();return;case`/`:B(),pe=`comment`;return;case void 0:return B(),be(`eof`)}if(re.isSpaceSeparator(z)){B();return}return ye[L]()},comment:function(){switch(z){case`*`:B(),pe=`multiLineComment`;return;case`/`:B(),pe=`singleLineComment`;return}throw Oe(B())},multiLineComment:function(){switch(z){case`*`:B(),pe=`multiLineCommentAsterisk`;return;case void 0:throw Oe(B())}B()},multiLineCommentAsterisk:function(){switch(z){case`*`:B();return;case`/`:B(),pe=`default`;return;case void 0:throw Oe(B())}B(),pe=`multiLineComment`},singleLineComment:function(){switch(z){case`
389
389
  `:case`\r`:case`\u2028`:case`\u2029`:B(),pe=`default`;return;case void 0:return B(),be(`eof`)}B()},value:function(){switch(z){case`{`:case`[`:return be(`punctuator`,B());case`n`:return B(),xe(`ull`),be(`null`,null);case`t`:return B(),xe(`rue`),be(`boolean`,!0);case`f`:return B(),xe(`alse`),be(`boolean`,!1);case`-`:case`+`:B()===`-`&&(ge=-1),pe=`sign`;return;case`.`:me=B(),pe=`decimalPointLeading`;return;case`0`:me=B(),pe=`zero`;return;case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:me=B(),pe=`decimalInteger`;return;case`I`:return B(),xe(`nfinity`),be(`numeric`,1/0);case`N`:return B(),xe(`aN`),be(`numeric`,NaN);case`"`:case`'`:he=B()===`"`,me=``,pe=`string`;return}throw Oe(B())},identifierNameStartEscape:function(){if(z!==`u`)throw Oe(B());B();var e=we();switch(e){case`$`:case`_`:break;default:if(!re.isIdStartChar(e))throw Ae();break}me+=e,pe=`identifierName`},identifierName:function(){switch(z){case`$`:case`_`:case`‌`:case`‍`:me+=B();return;case`\\`:B(),pe=`identifierNameEscape`;return}if(re.isIdContinueChar(z)){me+=B();return}return be(`identifier`,me)},identifierNameEscape:function(){if(z!==`u`)throw Oe(B());B();var e=we();switch(e){case`$`:case`_`:case`‌`:case`‍`:break;default:if(!re.isIdContinueChar(e))throw Ae();break}me+=e,pe=`identifierName`},sign:function(){switch(z){case`.`:me=B(),pe=`decimalPointLeading`;return;case`0`:me=B(),pe=`zero`;return;case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:me=B(),pe=`decimalInteger`;return;case`I`:return B(),xe(`nfinity`),be(`numeric`,ge*(1/0));case`N`:return B(),xe(`aN`),be(`numeric`,NaN)}throw Oe(B())},zero:function(){switch(z){case`.`:me+=B(),pe=`decimalPoint`;return;case`e`:case`E`:me+=B(),pe=`decimalExponent`;return;case`x`:case`X`:me+=B(),pe=`hexadecimal`;return}return be(`numeric`,ge*0)},decimalInteger:function(){switch(z){case`.`:me+=B(),pe=`decimalPoint`;return;case`e`:case`E`:me+=B(),pe=`decimalExponent`;return}if(re.isDigit(z)){me+=B();return}return be(`numeric`,ge*Number(me))},decimalPointLeading:function(){if(re.isDigit(z)){me+=B(),pe=`decimalFraction`;return}throw Oe(B())},decimalPoint:function(){switch(z){case`e`:case`E`:me+=B(),pe=`decimalExponent`;return}if(re.isDigit(z)){me+=B(),pe=`decimalFraction`;return}return be(`numeric`,ge*Number(me))},decimalFraction:function(){switch(z){case`e`:case`E`:me+=B(),pe=`decimalExponent`;return}if(re.isDigit(z)){me+=B();return}return be(`numeric`,ge*Number(me))},decimalExponent:function(){switch(z){case`+`:case`-`:me+=B(),pe=`decimalExponentSign`;return}if(re.isDigit(z)){me+=B(),pe=`decimalExponentInteger`;return}throw Oe(B())},decimalExponentSign:function(){if(re.isDigit(z)){me+=B(),pe=`decimalExponentInteger`;return}throw Oe(B())},decimalExponentInteger:function(){if(re.isDigit(z)){me+=B();return}return be(`numeric`,ge*Number(me))},hexadecimal:function(){if(re.isHexDigit(z)){me+=B(),pe=`hexadecimalInteger`;return}throw Oe(B())},hexadecimalInteger:function(){if(re.isHexDigit(z)){me+=B();return}return be(`numeric`,ge*Number(me))},string:function(){switch(z){case`\\`:B(),me+=Se();return;case`"`:if(he)return B(),be(`string`,me);me+=B();return;case`'`:if(!he)return B(),be(`string`,me);me+=B();return;case`
@@ -396,10 +396,10 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
396
396
  `+t+`}`}}return r.pop(),i=t,m}function g(e){if(e.length===0)return m(e,!0);var t=String.fromCodePoint(e.codePointAt(0));if(!re.isIdStartChar(t))return m(e,!0);for(var n=t.length;n<e.length;n++)if(!re.isIdContinueChar(String.fromCodePoint(e.codePointAt(n))))return m(e,!0);return e}function _(e){if(r.indexOf(e)>=0)throw TypeError(`Converting circular structure to JSON5`);r.push(e);var t=i;i+=s;for(var n=[],a=0;a<e.length;a++){var o=p(String(a),e);n.push(o===void 0?`null`:o)}var c;if(n.length===0)c=`[]`;else if(s===``)c=`[`+n.join(`,`)+`]`;else{var l=`,
397
397
  `+i,u=n.join(l);c=`[
398
398
  `+i+u+`,
399
- `+t+`]`}return r.pop(),i=t,c}}}}))}));function qB(e){let t=e.indexOf(`{`),n=e.indexOf(`[`);return t===-1?n:n===-1?t:Math.min(t,n)}function JB(e){return e===`{`||e===`[`}function YB(e){return e===`}`||e===`]`}function XB(e){return e===`}`?`{`:`[`}function ZB(e,t){let n=[],r=!1,i=!1;for(let a=t;a<e.length;a++){let t=e[a]??``;if(r){if(i){i=!1;continue}if(t===`\\`){i=!0;continue}if(t===`"`){r=!1;continue}continue}if(!(t===`"`&&e[a-1]===`\\`)){if(t===`"`){r=!0;continue}if(JB(t)){n.push(t);continue}if(YB(t)&&(n[n.length-1]===XB(t)&&n.pop(),n.length===0))return{end:a+1,openStack:[],inString:!1}}}return{end:null,openStack:n,inString:r}}function QB(e){let t=qB(e);if(t<0)return e;let{end:n,openStack:r,inString:i}=ZB(e,t);if(n!==null)return e;let a=``;return i&&(a+=`"`),r.length>0&&(a+=r.reverse().map(e=>e===`{`?`}`:`]`).join(``)),a?`${e}${a}`:e}function $B(e,t){return ZB(e,t).end}var eV=l(KB());function tV(e){try{return JSON.parse(e)}catch{return null}}function nV(e){return tV(e)??(()=>{try{return eV.default.parse(e)}catch{return null}})()}function rV(e){return e.replace(/\\r\\n/g,`
399
+ `+t+`]`}return r.pop(),i=t,c}}}}))}));function xV(e){let t=e.indexOf(`{`),n=e.indexOf(`[`);return t===-1?n:n===-1?t:Math.min(t,n)}function SV(e){return e===`{`||e===`[`}function CV(e){return e===`}`||e===`]`}function wV(e){return e===`}`?`{`:`[`}function TV(e,t){let n=[],r=!1,i=!1;for(let a=t;a<e.length;a++){let t=e[a]??``;if(r){if(i){i=!1;continue}if(t===`\\`){i=!0;continue}if(t===`"`){r=!1;continue}continue}if(!(t===`"`&&e[a-1]===`\\`)){if(t===`"`){r=!0;continue}if(SV(t)){n.push(t);continue}if(CV(t)&&(n[n.length-1]===wV(t)&&n.pop(),n.length===0))return{end:a+1,openStack:[],inString:!1}}}return{end:null,openStack:n,inString:r}}function EV(e){let t=xV(e);if(t<0)return e;let{end:n,openStack:r,inString:i}=TV(e,t);if(n!==null)return e;let a=``;return i&&(a+=`"`),r.length>0&&(a+=r.reverse().map(e=>e===`{`?`}`:`]`).join(``)),a?`${e}${a}`:e}function DV(e,t){return TV(e,t).end}var OV=l(bV());function kV(e){try{return JSON.parse(e)}catch{return null}}function AV(e){return kV(e)??(()=>{try{return OV.default.parse(e)}catch{return null}})()}function jV(e){return e.replace(/\\r\\n/g,`
400
400
  `).replace(/\\n/g,`
401
- `).replace(/\\t/g,` `).replace(/\\"/g,`"`).replace(/\\\//g,`/`).replace(/\\\\/g,`\\`)}function iV(e){return e&&e.replace(/([{\s,])([A-Za-z0-9_@$-]+)\s*:/g,(e,t,n)=>`${t}"${n}":`)}function aV(e){let t=e.trim();t=t.replace(/[""]/g,`"`).replace(/['']/g,`'`),t=t.replace(/,\s*([}\]])/g,`$1`);try{t=iV(t)}catch{}return t=QB(t),nV(t)}function oV(e){if(!e||typeof e!=`string`)return null;let t=tV(e);if(t!=null)return t;try{let t=eV.default.parse(e);if(t!=null)return t}catch{}if(e.includes(`\\"`)||e.includes(`\\n`)||e.includes(`\\r`)||e.includes(`\\\\`)){let t=nV(rV(e));if(t!=null)return t}try{return aV(e)}catch{return null}}function sV(e){let t=qB(e);if(t<0)return null;let n=$B(e,t);if(n!==null)return{start:t,json:e.slice(t,n).trim(),consumed:n-t};let r=e.slice(t),i=r.search(/\r?\n\r?\n/);return i>20&&(r=r.slice(0,i).trimEnd()),{start:t,json:QB(r).trim(),consumed:r.length}}var cV=`"structuredData":`,lV=`\\"structuredData\\":`;function uV(e){let t=e.indexOf(cV);if(t<0&&(t=e.indexOf(lV)),t<0)return null;let n=t+17,r=e.indexOf(`{`,n);if(r<0||r>n+10)return null;let i=$B(e,r),a,o;i===null?(a=e.slice(t,r).trim()+QB(e.slice(r)).trim(),o=e.length-t):(a=e.slice(t,i).trim(),o=i-t),t===e.indexOf(lV)&&(a=a.replace(/\\"/g,`"`));let s=`{`+a+`}`;return{start:t,fullJson:s,consumed:o}}function dV(e){let t=e.trim();if(!t||t.length<10)return!1;let n=qB(t);return n>=0&&$B(t,n)===null&&t.length-n>10}function fV(e){let t=/^\s*(?:\r?\n)?\s*(?:'{3}|"{3}|`{3})(?:\s*json\s*)?(?:'{3}|"{3}|`{3})?\s*(?:\r?\n)?/i.exec(e);return!t||!/'{3}|"{3}|`{3}/i.test(t[0])?0:t[0].length}function pV(e){return/^\s*(?:[\]}]+\s*)+/.exec(e)?.[0].length??0}function mV(e){return e&&typeof e==`object`?e:null}function hV(e){return Array.isArray(e)?e:[]}function gV(e){if(typeof e==`number`)return Number.isFinite(e)?e:null;if(typeof e==`string`){let t=Number(e);return Number.isFinite(t)?t:null}return null}function _V(e,t,n){let r=gV(e.used)??gV(e.currentValueRaw)??0,i=gV(e.allowance),a=gV(e.remaining),o=i??gV(e.total)??(r!=null&&a!=null?r+a:null)??gV(e.valueRaw)??(r>0?r:0),s=typeof e.unit==`string`?e.unit:``,c=typeof e.name==`string`?e.name:t.toUpperCase();if(o<=0)return null;let l=n?gV(e.percentUsed)??void 0:void 0,u={key:t,label:c,used:r,total:o,unit:s};return l!=null&&(u.percentUsed=l),u}function vV(e){let t=[],n=hV(e?.responseList);for(let e of n){let n=_V(e,typeof e.type==`string`?e.type:`usage`,!0);n&&t.push(n)}return t.length>0?t:null}function yV(e){let t=e.items;if(Array.isArray(t)&&t.length>0){let e=mV(t[0]);if(e)return e}return e}function bV(e){let t=mV(e),n=mV(mV(t?.structuredData)?.data??t?.data);if(!n)return null;let r=vV(n);if(r)return r;let i=hV(n?.usageTypes);if(i.length===0)return null;let a=[];for(let e of i){let t=typeof e.type==`string`?e.type:`usage`,n=yV(e);if(!n)continue;let r=_V(n,t);r&&a.push(r)}return a.length>0?a:null}function xV(e){if(!e||typeof e!=`object`)return!1;let t=e;return Array.isArray(t.actions)?t.actions.every(e=>typeof e==`object`&&!!e&&typeof e.buttonText==`string`&&typeof e.agentMessage==`string`):!1}function SV(e){return e&&typeof e==`object`?e:null}function CV(e){if(typeof e!=`string`)return null;switch(e){case`card`:case`link`:case`chart`:case`highlightBox`:return e;default:return null}}function wV(e){let t=SV(e);if(!t)return null;let n=SV(t.structuredData),r=[SV(n?.visualization)?.type,SV(n?.visualizationConfig)?.visualizationType,n?.visualizationType,SV(t.visualization)?.type,SV(t.visualizationConfig)?.visualizationType,t.visualizationType];for(let e of r)if(typeof e==`string`)return CV(e)??e;return null}function TV(e){if(typeof e!=`string`)return null;let t=e.trim();switch(t){case`accountOverview`:case`customerProfile`:case`offerRecommendation`:case`basket`:case`usageAnalysis`:case`twinInsight`:return t;default:return`unknown`}}function EV(e){let t=SV(e);if(!t)return null;let n=SV(t.structuredData),r=n?.data??t.data,i=SV(n?.visualization),a=SV(t.visualization);return{data:r,visualizationConfig:i?.config??a?.config??t.visualizationConfig,responseType:TV(n?.responseType??t.responseType)}}function DV(e){let t=SV(e);return!t||SV(t.structuredData)?e:typeof t.responseType==`string`||SV(t.visualization)||SV(t.visualizationConfig)||typeof t.visualizationType==`string`||t.data!==void 0?{structuredData:t}:e}function OV(e){let t=SV(e);return t?SV(t.structuredData)||SV(t.visualization)||SV(t.visualizationConfig)||Array.isArray(t.actions)?!0:typeof t.visualizationType==`string`||typeof t.responseType==`string`:!1}var kV=new vE(`widget-config-builder`);function AV(e){if(xV(e))return{type:`widget`,config:{type:`actions`,actions:e.actions}};let t=wV(e),n=EV(e),r={visualizationConfig:n?.visualizationConfig,responseType:n?.responseType??void 0};if(!t){let t=n?.data??e;return TB(t)?{type:`widget`,config:{type:`card`,data:t,...r}}:null}if(t===`chart`){let n=e?bV(e):null;return!n||n.length===0?null:{type:`widget`,config:{type:t,items:n,...r}}}if(t===`card`||t===`link`||t===`highlightBox`){let e=n?.data;if(!TB(e))return null;let i=t;if(t===`card`){let e=n?.responseType;e===`accountOverview`?i=`account-overview`:e===`offerRecommendation`&&(i=`offer-card`)}let a={type:i,data:e,...r};return kV.debug(`Creating widget`,{visualizationType:t,responseType:n?.responseType,widgetType:i,config:a}),{type:`widget`,config:a}}return{type:`widget`,config:{type:t}}}var jV=new vE(`useAgentChatMdRendererElements`),MV={async:!1,breaks:!0,gfm:!0};function NV(e){return AP.parse(e,MV)}function PV(e,t,n){let r=NV(t);return r.trim()?(e.push({type:`markdown`,key:`md-${n}`,content:r}),n+1):n}function FV(e){return["```json",JSON.stringify(e,null,2),"```"].join(`
402
- `)}function IV(e,t){return(0,H.useMemo)(()=>{let n=IB(GB(e)),r=[],i=0;for(let e of n){if(e.type===`markdown`){i=PV(r,e.content,i);continue}try{let n=LB(e.dsl);if(!n){i=PV(r,e.raw,i);continue}let a=CB(n,t);if(a){r.push({type:`widget`,key:`widget-${i++}`,widget:a});continue}i=PV(r,FV(n),i)}catch(t){jV.error(`Failed to parse widget`,{error:t instanceof Error?t.message:String(t)}),i=PV(r,e.raw,i)}}return r},[e,t])}var LV={agentChatMdRenderer:`_agentChatMdRenderer_1ymtf_1`},RV=(0,H.memo)(({content:e,onWidgetEvent:t})=>{let n=IV(e,t);return(0,U.jsx)(q,{className:LV.agentChatMdRenderer,children:n.map(e=>e.type===`markdown`?(0,U.jsx)(ZM,{html:e.content},e.key):(0,U.jsx)(q,{children:e.widget},e.key))})});RV.displayName=`AgentChatMdRenderer`;var zV={body:`_body_1pk0s_1`,messageBubble:`_messageBubble_1pk0s_9`,messageBubbleUser:`_messageBubbleUser_1pk0s_15`,userText:`_userText_1pk0s_20`,messageBubbleAssistant:`_messageBubbleAssistant_1pk0s_27`,messageList:`_messageList_1pk0s_33`};function BV({messages:e,isLoading:t,error:n,scrollViewportRef:r,onWidgetEvent:i}){return(0,U.jsx)(Ky,{className:zV.body,children:(0,U.jsx)(sl,{h:`100%`,type:`auto`,offsetScrollbars:!0,viewportRef:r,children:(0,U.jsxs)(Ky,{gap:`sm`,className:zV.messageList,children:[n&&(0,U.jsx)(Gf,{color:`red`,variant:`light`,children:n}),e.map(e=>(0,U.jsx)(q,{className:`${zV.messageBubble} ${e.sentBy===`user`?zV.messageBubbleUser:zV.messageBubbleAssistant}`,children:e.sentBy===`assistant`?(0,U.jsx)(RV,{content:e.text,onWidgetEvent:i}):(0,U.jsx)(Xf,{className:zV.userText,children:e.text})},e.id)),t&&(0,U.jsx)(q,{className:`${zV.messageBubble} ${zV.messageBubbleAssistant}`,children:(0,U.jsx)(CH,{messages:[`Thinking`,`Analyzing your request`,`Searching for information`,`Processing data`,`Preparing response`,`Almost there`]})})]})})})}function VV({...e}){return(0,U.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,U.jsx)(`path`,{d:`m22 2-7 20-4-9-9-4Z`}),(0,U.jsx)(`path`,{d:`M22 2 11 13`})]})}var HV={"border-025":`1px`,"border-050":`2px`},UV={"surface-body-bg":`#F8F8FB`,"surface-default":`#FFFFFF`,"surface-disable":`#EFEFF6`,"surface-level-1":`#F8F8FB`,"surface-level-2":`#EFEFF6`},WV={"primary-lighter":`#F8F8FB`,"primary-light":`#EFEFF6`,"primary-default":`#414275`,"primary-dark":`#35355F`,"primary-darker":`#18182B`},GV={"secondary-lighter":`#FFF7F0`,"secondary-light":`#FFA34D`,"secondary-default":`#FF7A00`,"secondary-dark":`#A85100`,"secondary-darker":`#7A3B00`},KV={"success-lighter":`#E8F5EF`,"success-light":`#B9E1CD`,"success-default":`#167E4A`,"success-dark":`#115F38`,"success-darker":`#0A3721`},qV={"danger-lighter":`#FDEBEA`,"danger-light":`#F8C1BD`,"danger-default":`#BB2D21`,"danger-dark":`#8C2219`,"danger-darker":`#52140E`,"danger-contrast":`#FF6F61`},JV={"info-lighter":`#EAF3FE`,"info-light":`#BEDBFB`,"info-default":`#2C8BF3`,"info-dark":`#236FC2`,"info-darker":`#0F3155`},YV={"warning-lighter":`#FEF3E9`,"warning-light":`#FCD9BB`,"warning-default":`#C56B1C`,"warning-dark":`#B9651A`,"warning-darker":`#562F0C`},XV={"text-white":`#FFFFFF`,"text-light":`#B3B3D5`,"text-default":`#414275`,"text-dark":`#242442`,"text-disable":`#B3B3D5`},ZV={"border-light":`#EFEFF6`,"border-default":`#DEDEED`,"border-dark":`#CACAE2`},QV={"icon-white":`#FFFFFF`,"icon-light":`#B3B3D5`,"icon-default":`#414275`,"icon-dark":`#242442`,"icon-disable":`#B3B3D5`},$V={"header-bg":`#F8F8FB`,"header-font":`#242442`,"header-icon":`#242442`,"header-border-color":`#DEDEED`},eH={"icon-xs":12,"icon-sm":16,"icon-md":18,"icon-lg":20,"icon-xl":24},tH={"radius-0":`0`,"radius-050":`2px`,"radius-100":`4px`,"radius-150":`6px`,"radius-200":`8px`,"radius-300":`12px`,"radius-400":`16px`,"radius-500":`20px`,"radius-600":`24px`,"radius-full":`50%`},nH={"shadow-xs":`0 1px 2px 0 rgba(0, 0, 0, 0.16)`,"shadow-above-sm":`0 3px 0 0 rgba(0, 0, 0, 0.04)`,"shadow-below-sm":`0 -2px 2px 0 rgba(65, 66, 117, 0.12)`},rH={...UV,...WV,...GV,...KV,...qV,...JV,...YV,...XV,...ZV,...QV,...$V},iH=yA;function aH(e={}){let{tokens:t={},theme:n={}}=e;return Hr(Tj(n),Vr({other:{border:{...HV,...t.border},color:{...rH,...t.color},iconSize:{...eH,...t.iconSize},opacity:{...iH,...t.opacity},radius:{...tH,...t.radius},space:{...rA,...t.space},shadow:{...nH,...t.shadow}}}))}var oH=aH();function sH(){return oH}var cH={footer:`_footer_nlyhc_1`,inputWrapper:`_inputWrapper_nlyhc_10`,actionGroup:`_actionGroup_nlyhc_16`,poweredBy:`_poweredBy_nlyhc_35`,sendButton:`_sendButton_nlyhc_40`};function lH({composerText:e,onComposerTextChange:t,isLoading:n,isListening:r,isVoiceSupported:i,canSend:a,onSubmit:o,onToggleVoice:s}){let c=sH();return(0,U.jsxs)(`div`,{className:cH.footer,children:[(0,U.jsxs)(`div`,{className:cH.inputWrapper,children:[(0,U.jsx)(kH,{composerText:e,onComposerTextChange:t,isLoading:n,isListening:r,onSubmit:o}),(0,U.jsxs)(`div`,{className:cH.actionGroup,children:[i&&(0,U.jsx)(DH,{isListening:r,isLoading:n,onToggleVoice:s}),(0,U.jsx)(gu,{onClick:o,disabled:!a||n,size:32,radius:`xl`,variant:`filled`,className:cH.sendButton,children:(0,U.jsx)(VV,{width:c.other.iconSize[`icon-md`],height:c.other.iconSize[`icon-md`]})})]})]}),(0,U.jsx)(Xf,{ta:`center`,size:`xs`,c:`dimmed`,className:cH.poweredBy,children:`Powered by Exceeder · Etiya`})]})}function uH({...e}){return(0,U.jsxs)(`svg`,{viewBox:`0 0 22 22`,fill:`none`,...e,children:[(0,U.jsx)(`rect`,{x:`4`,y:`4`,width:`14`,height:`2.5`,rx:`1.2`,fill:`currentColor`}),(0,U.jsx)(`rect`,{x:`4`,y:`9.75`,width:`10`,height:`2.5`,rx:`1.2`,fill:`currentColor`,opacity:`0.88`}),(0,U.jsx)(`rect`,{x:`4`,y:`15.5`,width:`14`,height:`2.5`,rx:`1.2`,fill:`currentColor`})]})}function dH({...e}){return(0,U.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,U.jsx)(`path`,{d:`M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}var fH={header:`_header_o740z_26`,headerLeft:`_headerLeft_o740z_37`,headerInfo:`_headerInfo_o740z_45`,orbContainer:`_orbContainer_o740z_53`,orbOuter:`_orbOuter_o740z_63`,orbPulse:`_orbPulse_o740z_1`,orbMiddle:`_orbMiddle_o740z_72`,orbInner:`_orbInner_o740z_81`,orbFloat:`_orbFloat_o740z_1`,headerMeta:`_headerMeta_o740z_93`,statusDot:`_statusDot_o740z_99`,statusText:`_statusText_o740z_113`,closeButton:`_closeButton_o740z_121`,title:`_title_o740z_125`,topSubHeader:`_topSubHeader_o740z_137`,subHeaderLeft:`_subHeaderLeft_o740z_147`,subHeaderIcon:`_subHeaderIcon_o740z_153`,subHeaderTitle:`_subHeaderTitle_o740z_164`,subHeaderStatus:`_subHeaderStatus_o740z_170`};function pH({panelTitle:e,isLoading:t,isOnline:n,onClose:r}){let i=sH();return(0,U.jsxs)(Ef,{className:fH.header,align:`center`,justify:`space-between`,children:[(0,U.jsxs)(`div`,{className:fH.headerLeft,children:[(0,U.jsxs)(`div`,{className:fH.orbContainer,children:[(0,U.jsx)(`div`,{className:fH.orbOuter}),(0,U.jsx)(`div`,{className:fH.orbMiddle}),(0,U.jsx)(`div`,{className:fH.orbInner,children:(0,U.jsx)(uH,{width:i.other.iconSize[`icon-sm`],height:i.other.iconSize[`icon-sm`],color:`white`})})]}),(0,U.jsxs)(`div`,{className:fH.headerInfo,children:[(0,U.jsx)(Xf,{className:fH.title,fw:800,children:e}),(0,U.jsxs)(`div`,{className:fH.headerMeta,children:[(0,U.jsx)(`div`,{className:fH.statusDot,"data-loading":t||void 0,"data-online":n||void 0}),(0,U.jsx)(Xf,{className:fH.statusText,children:t?`Typing…`:n?`Online`:`Offline`})]})]})]}),(0,U.jsx)(gu,{variant:`subtle`,size:28,radius:`xl`,onClick:r,className:fH.closeButton,children:(0,U.jsx)(dH,{width:i.other.iconSize[`icon-sm`],height:i.other.iconSize[`icon-sm`]})})]})}var mH={root:`_root_gud67_1`,resizeHandle:`_resizeHandle_gud67_13`};function hH({visible:e,onClose:t,messages:n,composerText:r,onComposerTextChange:i,isLoading:a,error:o,canSend:s,onSubmit:c,isListening:l,isVoiceSupported:u,onToggleVoice:d,actions:f,onActionClick:p,panelTitle:m,runtimeInfo:h,scrollViewportRef:g,panelWidth:_=420,panelHeight:v=`100%`,panelHeaderHeight:y=56,panelResizableWidth:b,zIndex:x,panelTopOffset:S}){let C=b?Math.max(280,_+b.offset):_,w=h.hasCustomerToken&&h.hasGenaiToken;return e?(0,U.jsxs)(q,{className:mH.root,style:{width:C,height:S?`calc(${typeof v==`number`?`${v}px`:v} - ${S}px)`:v,top:S??0,zIndex:x,"--agent-widget-panel-header-height":`${y}px`},children:[b&&(0,U.jsx)(q,{onPointerDown:b.handlePointerDown,className:mH.resizeHandle,style:b.style}),(0,U.jsx)(pH,{panelTitle:m,isLoading:a,isOnline:w,onClose:t}),(0,U.jsx)(BV,{messages:n,isLoading:a,error:o,scrollViewportRef:g,onWidgetEvent:e=>{if(e.type===`action-click`&&e.data){let t=f.find(t=>t.agentMessage===e.data?.agentMessage);t&&p(t)}}}),(0,U.jsx)(lH,{composerText:r,onComposerTextChange:i,isLoading:a,isListening:l,isVoiceSupported:u,canSend:s,onSubmit:c,onToggleVoice:d})]}):null}function gH(){let e=(0,H.useRef)(null);return{startInteraction:(0,H.useCallback)(t=>{let{cursor:n,onMove:r,onEnd:i}=t;document.body.style.cursor=n,document.body.style.userSelect=`none`;let a=()=>{document.body.style.cursor=``,document.body.style.userSelect=``,document.removeEventListener(`pointermove`,r),document.removeEventListener(`pointerup`,a),i?.(),e.current=null};document.addEventListener(`pointermove`,r),document.addEventListener(`pointerup`,a),e.current=a},[]),cleanup:(0,H.useCallback)(()=>{e.current?.()},[])}}var _H=4;function vH(e={}){let{skipSelector:t=`button, [role="button"], a, input, textarea`,onDragChange:n}=e,[r,i]=(0,H.useState)({x:0,y:0}),[a,o]=(0,H.useState)(!1),s=(0,H.useRef)({startX:0,startY:0,startOffset:{x:0,y:0}}),{startInteraction:c}=gH();return{offset:r,isDragging:a,handlePointerDown:(0,H.useCallback)(e=>{let a=e.target;if(t&&a?.closest(t))return;let l=e.clientX,u=e.clientY,d={...r},f=0,p=!1;s.current={startX:l,startY:u,startOffset:d},c({cursor:`grab`,onMove:e=>{let t=e.clientX-l,r=e.clientY-u;if(f=Math.abs(t)+Math.abs(r),!p&&f>=_H&&(p=!0,o(!0),document.body.style.cursor=`grabbing`,document.body.style.userSelect=`none`),p){let e={x:d.x+t,y:d.y+r};i(e),n?.(e)}},onEnd:()=>{p&&o(!1)}})},[r,t,n,c]),style:{transform:`translate(${r.x}px, ${r.y}px)`,cursor:a?`grabbing`:`grab`,touchAction:`none`}}}function yH(e){return(0,U.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,...e,children:[(0,U.jsx)(`path`,{d:`M12 8V4H8`}),(0,U.jsx)(`rect`,{x:`4`,y:`8`,width:`16`,height:`12`,rx:`2`}),(0,U.jsx)(`path`,{d:`M2 14h2`}),(0,U.jsx)(`path`,{d:`M20 14h2`}),(0,U.jsx)(`path`,{d:`M15 13v2`}),(0,U.jsx)(`path`,{d:`M9 13v2`})]})}var bH={root:`_root_zqs5y_1`,button:`_button_zqs5y_5`,icon:`_icon_zqs5y_22`,label:`_label_zqs5y_28`};function xH({onClick:e,zIndex:t,position:n,label:r}){let i=sH(),{handlePointerDown:a,style:o}=vH({skipSelector:``}),{transform:s,cursor:c,touchAction:l}=o,u=(0,H.useMemo)(()=>({transform:s,touchAction:l,zIndex:t,...n}),[n,l,s,t]),d=(0,H.useMemo)(()=>({cursor:c??`pointer`}),[c]);return(0,U.jsx)(`div`,{className:bH.root,style:u,children:(0,U.jsx)(gy,{label:`Open agent widget`,position:`left`,children:(0,U.jsxs)(dl,{onClick:e,onPointerDown:a,style:d,className:bH.button,"aria-label":`Open agent widget`,children:[(0,U.jsx)(`span`,{className:bH.icon,children:(0,U.jsx)(yH,{width:i.other.iconSize[`icon-md`],height:i.other.iconSize[`icon-md`]})}),(0,U.jsx)(`span`,{className:bH.label,children:r??`Assistant`})]})})})}function SH({mode:e=`thinking`,autoCycle:t=!0,cycleMs:n=2e3,exploringAfterMs:r=2e3,writingAfterMs:i=8e3,messages:a}){let[o,s]=(0,H.useState)(0);(0,H.useEffect)(()=>{if(!t)return;s(0);let e=setInterval(()=>{s(e=>e+1)},n);return()=>clearInterval(e)},[t,n]);let c=(0,H.useMemo)(()=>{if(!t)return e;let a=o*n;return a>=i?`writing`:a<r||o%2==0?`thinking`:`exploring`},[t,e,o,n,r,i]);return{label:(0,H.useMemo)(()=>{if(a&&a.length>0)return a[o%a.length];switch(c){case`exploring`:return`Exploring`;case`writing`:return`Writing`;default:return`Thinking`}},[a,o,c])}}function CH({size:e=`large`,mode:t=`thinking`,showLabel:n=!0,autoCycle:r=!0,cycleMs:i=2e3,exploringAfterMs:a=2e3,writingAfterMs:o=8e3,messages:s}){let{label:c}=SH({mode:t,autoCycle:r,cycleMs:i,exploringAfterMs:a,writingAfterMs:o,messages:s});return(0,U.jsxs)(Eu,{gap:`sm`,wrap:`nowrap`,children:[n&&(0,U.jsx)(Xf,{size:e===`large`?`sm`:`xs`,c:`dimmed`,children:c}),(0,U.jsx)(cu,{size:e===`large`?`sm`:`xs`,type:`dots`,color:`gray`}),(0,U.jsx)(Xf,{component:`span`,style:{position:`absolute`,left:-1e4},role:`status`,"aria-live":`polite`,children:c})]})}function wH({active:e=!1}){return e?(0,U.jsxs)(Eu,{gap:`xs`,wrap:`nowrap`,align:`center`,mr:`sm`,children:[(0,U.jsx)(Nh,{processing:!0,color:`red`,size:8}),(0,U.jsx)(Xf,{size:`xs`,c:`dimmed`,children:`Recording`}),(0,U.jsx)(cu,{size:12,type:`bars`,color:`red`})]}):null}function TH({...e}){return(0,U.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,U.jsx)(`path`,{d:`M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z`}),(0,U.jsx)(`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`}),(0,U.jsx)(`line`,{x1:`12`,x2:`12`,y1:`19`,y2:`22`})]})}function EH({...e}){return(0,U.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:(0,U.jsx)(`rect`,{x:`6`,y:`6`,width:`12`,height:`12`,rx:`2`})})}function DH({isListening:e,isLoading:t,onToggleVoice:n}){let r=sH();return(0,U.jsxs)(U.Fragment,{children:[e&&(0,U.jsx)(wH,{active:e}),(0,U.jsx)(gy,{label:e?`Stop recording`:`Voice input`,children:(0,U.jsx)(gu,{onClick:n,disabled:t,size:32,radius:`xl`,variant:e?`filled`:`subtle`,color:e?`red`:`gray`,children:e?(0,U.jsx)(EH,{width:r.other.iconSize[`icon-md`],height:r.other.iconSize[`icon-md`]}):(0,U.jsx)(TH,{width:r.other.iconSize[`icon-md`],height:r.other.iconSize[`icon-md`]})})})]})}var OH={input:`_input_1eq4q_1`};function kH({composerText:e,onComposerTextChange:t,isLoading:n,isListening:r,onSubmit:i}){return(0,U.jsx)(Wb,{placeholder:r?`Listening...`:`Ask me anything...`,value:e,onChange:e=>t(e.currentTarget.value),disabled:n,radius:`md`,size:`md`,classNames:{input:OH.input},styles:{input:{flex:1},root:{flex:1}},onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),i())}})}function AH({advantage:e}){let{getIcon:t}=YP();return(0,U.jsx)(UP,{withBorder:!0,withShadow:!0,p:16,children:(0,U.jsxs)(Eu,{gap:`sm`,wrap:`nowrap`,children:[(0,U.jsx)(qb,{variant:`light`,size:`sm`,children:(0,H.createElement)(t(e.key))}),(0,U.jsxs)(Ky,{gap:4,style:{flex:1,minWidth:0},children:[(0,U.jsx)(Xf,{size:`sm`,c:`dimmed`,truncate:!0,children:e.type}),(0,U.jsxs)(Eu,{gap:4,wrap:`nowrap`,children:[(0,U.jsx)(Xf,{size:`md`,fw:600,truncate:!0,children:e.amount}),e.unit&&(0,U.jsx)(Xf,{size:`sm`,c:`dimmed`,truncate:!0,children:e.unit})]})]})]})})}function jH({price:e,priceSuffix:t,withCta:n,ctaLabel:r,onCtaClick:i}){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Jm,{}),(0,U.jsxs)(Eu,{justify:n?`space-between`:`flex-start`,align:`center`,children:[(0,U.jsxs)(Eu,{gap:`xs`,children:[(0,U.jsx)(Xf,{size:`xl`,fw:600,c:`primary`,children:e}),t&&(0,U.jsx)(Xf,{size:`sm`,c:`dimmed`,children:t})]}),n&&i&&(0,U.jsx)(Xf,{size:`md`,fw:600,c:`primary`,style:{cursor:`pointer`},onClick:i,children:r})]})]})}function MH({item:e,onSelectAccount:t}){let n=!!e.billingAccountId;return(0,U.jsx)(dl,{style:{cursor:n?`pointer`:`default`,transition:`all 0.15s ease`,height:`100%`},onClick:()=>t(e.billingAccountId),onMouseEnter:e=>{n&&(e.currentTarget.style.transform=`translateY(-2px)`)},onMouseLeave:e=>{n&&(e.currentTarget.style.transform=``)},children:(0,U.jsx)(UP,{withBorder:!0,withShadow:!0,p:24,style:{height:`100%`},children:(0,U.jsxs)(Ky,{gap:`md`,children:[(0,U.jsx)(Xf,{size:`lg`,fw:600,c:`primary`,children:e.title||`Account Details`}),(0,U.jsx)(Ry,{cols:{base:1,sm:2},spacing:`sm`,children:e.advantages?.map(e=>(0,U.jsx)(AH,{advantage:e},e.key))}),e.price&&(0,U.jsx)(jH,{price:e.price,priceSuffix:e.priceSuffix})]})})})}function NH({items:e,title:t=`Details`,advantages:n=[],price:r,priceSuffix:i,ctaLabel:a=`Order Now`,onCtaClick:o,onSelectAccount:s}){let c=e=>{e&&s?.(e)};return e&&e.length>0?(0,U.jsx)(UP,{withBorder:!0,withShadow:!0,children:(0,U.jsxs)(Ky,{gap:`md`,children:[(0,U.jsx)(Xf,{size:`lg`,fw:600,children:t}),(0,U.jsx)(Ry,{cols:{base:1,md:2},spacing:`md`,children:e.map((e,t)=>(0,U.jsx)(MH,{item:e,onSelectAccount:c},e.billingAccountId||t))})]})}):(0,U.jsx)(UP,{withBorder:!0,withShadow:!0,p:24,children:(0,U.jsxs)(Ky,{gap:`md`,children:[(0,U.jsx)(Xf,{size:`lg`,fw:600,c:`primary`,children:t}),(0,U.jsx)(Ry,{cols:{base:1,sm:2},spacing:`sm`,children:n.map(e=>(0,U.jsx)(AH,{advantage:e},e.key))}),r&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Jm,{}),(0,U.jsxs)(Eu,{justify:`space-between`,align:`center`,children:[(0,U.jsxs)(Eu,{gap:`xs`,children:[(0,U.jsx)(Xf,{size:`xl`,fw:600,c:`primary`,children:r}),i&&(0,U.jsx)(Xf,{size:`sm`,c:`dimmed`,children:i})]}),o&&(0,U.jsx)(jm,{onClick:o,size:`md`,children:a})]})]})]})})}function PH(){let e=(0,H.useContext)(Lj);if(!e)throw Error(`AgentChatConfigContext is missing.`);return e}function FH(){let e=(0,H.useContext)(Rj);if(!e)throw Error(`AgentChatRuntimeContext is missing.`);return e}function IH(e){return e.assistantId??null}function LH(e){return e.agents??[]}function RH(e){let t=IH(e);return t?LH(e).find(e=>e.assistantId===t)?.initialMessage??null:null}function zH(e){return e.customerId}function BH(e){return e.customerToken}function VH(e){return e.language??null}function HH(e){if(!e||typeof e!=`object`)return null;let t=e,n=t.message??(Array.isArray(t.messages)?t.messages[0]:null);if(!n||typeof n!=`object`)return null;let r=n.chat_id,i=typeof r==`number`&&Number.isFinite(r)?r:null,a=typeof n.message==`string`?n.message:``,o=typeof n.created_at==`string`?n.created_at:new Date().toISOString();return a?{chatId:i,text:a,createdAt:o}:null}var UH={runtimeInfo:{customerId:null,hasCustomerToken:!1,hasGenaiToken:!1}},WH=mE(e=>({...UH,setRuntimeInfo:t=>e({runtimeInfo:t}),updateCustomerId:t=>e(e=>({runtimeInfo:{...e.runtimeInfo,customerId:t}})),updateCustomerToken:t=>e(e=>({runtimeInfo:{...e.runtimeInfo,hasCustomerToken:t}})),updateGenaiToken:t=>e(e=>({runtimeInfo:{...e.runtimeInfo,hasGenaiToken:t}})),resetRuntimeInfo:()=>e({runtimeInfo:UH.runtimeInfo})})),GH=new vE(`GenaiService`);async function KH(e,t){try{let n=new URLSearchParams;n.set(`username`,atob(e)),n.set(`password`,atob(t));let r=await OE.post(`/login`,n,{anonymous:!0,headers:{"Content-Type":`application/x-www-form-urlencoded`}});return r.data?.access_token&&ST(r.data.access_token),r.data}catch(e){let t={message:e instanceof Error?e.message:String(e),...e&&typeof e==`object`&&`response`in e?{status:e.response?.status,statusText:e.response?.statusText,data:e.response?.data}:{}};throw GH.error(`Error logging in to GenAI: `,t),e}}async function qH(e,t){try{let n=await OE.post(`/tenants/switch`,{tenant_id:e},{anonymous:!0,headers:{Authorization:`Bearer ${t}`}});return n.data?.data?.access_token&&ST(n.data.data.access_token),n.data?.data?.tenant_id&&wT(n.data.data.tenant_id),n.data}catch(e){let t={message:e instanceof Error?e.message:String(e),...e&&typeof e==`object`&&`response`in e?{status:e.response?.status,statusText:e.response?.statusText,data:e.response?.data}:{}};throw GH.error(`Error switching tenant: `,t),e}}async function JH(e){try{return(await OE.post(`/agent-message`,e,{anonymous:!0})).data}catch(e){let t={message:e instanceof Error?e.message:String(e),...e&&typeof e==`object`&&`response`in e?{status:e.response?.status,statusText:e.response?.statusText,data:e.response?.data}:{}};throw GH.error(`Error sending agent message: `,t),e}}var YH={loginToGenai:KH,switchTenant:qH,sendAgentMessage:JH};function XH({mutationKey:e,mutationFn:t,defaultOptions:n={}}){return function(r){return oS({...n,...r,meta:{...n?.meta,...r?.meta},mutationKey:e,mutationFn:t})}}var ZH=XH({mutationKey:[`genai`,`agent-message`],mutationFn:async({payload:e})=>YH.sendAgentMessage(e)});function QH(){let e=globalThis.crypto;return e?.randomUUID?e.randomUUID():`${Date.now()}-${Math.random().toString(16).slice(2)}`}function $H(){let e=FH(),t=PH(),n=ZH(),[r,i]=(0,H.useState)([]),[a,o]=(0,H.useState)(``),[s,c]=(0,H.useState)(null),[l,u]=(0,H.useState)(!1),[d,f]=(0,H.useState)(null),p=(0,H.useRef)(!1),m=(0,H.useCallback)(e=>{let t={id:QH(),sentBy:`user`,text:e};i(e=>[...e,t])},[]),h=(0,H.useCallback)((e,t)=>{let n={id:QH(),sentBy:`assistant`,text:e,createdAt:t};i(e=>[...e,n])},[]),g=(0,H.useCallback)(async(r,i)=>{if(!r.trim())return;if(o(``),i?.showUserBubble!==!1&&m(r),!e||!t){f(`Chat is not configured.`);return}let a=IH(t);if(!a){f(`Chat configuration is missing.`);return}let l=zH(e),d=await BH(e);if(!d){f(`Missing customer token.`);return}u(!0),f(null);try{let e=HH(await n.mutateAsync({payload:{message:r,chat_id:s,assistant_id:a,is_sync:!0,...l?{unique_user_id:l}:{},tool_headers:{_default:{Authorization:`Bearer ${d}`}}}}));if(!e)return;e.chatId!==null&&c(e.chatId),h(e.text,e.createdAt)}catch{f(`Something went wrong. Please try again.`)}finally{u(!1)}},[e,t,s,m,h,n]);return{messages:r,composerText:a,setComposerText:o,isLoading:l,error:d,sendMessage:g,sendInitialMessage:(0,H.useCallback)(async()=>{if(p.current||l||r.length>0||!e||!t)return;let n=zH(e),i=RH(t)?.trim(),a=null;a=i?n?`${i} ${n}`.trim():i:n?`Hello, my customer id is ${n}`:`Hello`,a.trim()&&(p.current=!0,await g(a,{showUserBubble:!1}))},[e,t,l,r.length,g]),resetChat:(0,H.useCallback)(()=>{i([]),o(``),c(null),f(null),p.current=!1},[]),canSend:a.trim().length>0}}function eU(e,t){let n=(0,H.useRef)([]);return{actions:(0,H.useMemo)(()=>{let t=[...e].reverse().find(e=>e.sentBy===`assistant`);if(!t)return n.current;let r=UB(t.text).find(e=>e.type===`widget`&&e.config.type===`actions`),i=r?.type===`widget`?r.config.actions??[]:[];return i.length>0&&(n.current=i),n.current},[e]),handleActionClick:(0,H.useCallback)(e=>{t(e.agentMessage)},[t])}}function tU(e={}){let{axis:t=`y`,direction:n=1,onResizeChange:r}=e,[i,a]=(0,H.useState)(0),o=(0,H.useRef)({startPos:0,startOffset:0}),{startInteraction:s}=gH(),c=t===`y`?`ns-resize`:t===`x`?`ew-resize`:`nwse-resize`;return{offset:i,handlePointerDown:(0,H.useCallback)(e=>{e.preventDefault(),e.stopPropagation();let l=t===`y`?e.clientY:e.clientX,u=i;o.current={startPos:l,startOffset:u},s({cursor:c,onMove:e=>{let i;i=t===`y`?-(e.clientY-l):(e.clientX-l)*n;let o=u+i;a(o),r?.(o)}})},[i,t,n,c,r,s]),style:{cursor:c,touchAction:`none`}}}var nU=[`#root main`,`#root`,`main`,`.main-content`,`#app`,`body`];function rU(e,t,n){let r=(0,H.useRef)(Math.max(280,t??420)),i=(0,H.useRef)(n??!1),a=(0,H.useRef)(null),o=(0,H.useCallback)(()=>{let t=e?.hostContainerSelector,n=[...t?t.split(`,`).map(e=>e.trim()).filter(Boolean):[],...nU];for(let e of n){let t=document.querySelector(e);if(t)return t}return document.body},[e?.hostContainerSelector]),s=(0,H.useCallback)(e=>{let t=document.documentElement;if(e===null?t.style.removeProperty(`--agent-widget-panel-width`):t.style.setProperty(`--agent-widget-panel-width`,`${e}px`),e===null){if(a.current){let{element:e,inlinePaddingBefore:t}=a.current;e.style.paddingRight=t,a.current=null}return}if(!a.current||!document.contains(a.current.element)){let e=o();if(!e)return;a.current={element:e,inlinePaddingBefore:e.style.paddingRight,widthApplied:0}}let{element:n,inlinePaddingBefore:r,widthApplied:i}=a.current;e!==i&&(n.style.paddingRight=r,n.style.paddingRight=`calc(${r||`0px`} + ${e}px)`,a.current.widthApplied=e)},[o]),c=tU({axis:`x`,direction:-1,onResizeChange:(0,H.useCallback)(e=>{let n=Math.max(280,(t??420)+e);r.current=n,s(n)},[t,s])});return(0,H.useEffect)(()=>{i.current=n??!1},[n]),(0,H.useEffect)(()=>{let e=Math.max(280,t??420);r.current=e,i.current&&s(e)},[t,s]),(0,H.useEffect)(()=>{if(!n){s(null),document.documentElement.removeAttribute(`data-agent-widget-open`);return}return s(r.current),document.documentElement.setAttribute(`data-agent-widget-open`,`true`),()=>{s(null),document.documentElement.removeAttribute(`data-agent-widget-open`)}},[n,s]),{panelResizableWidth:c}}function iU(){let e=FH(),{runtimeInfo:t,setRuntimeInfo:n}=WH(),r=(0,H.useCallback)(async()=>{if(!e){n({customerId:null,hasCustomerToken:!1,hasGenaiToken:!1});return}let t=zH(e),r=await BH(e),i=xT();n({customerId:t,hasCustomerToken:!!r,hasGenaiToken:!!i})},[e,n]);return(0,H.useEffect)(()=>{r()},[e,r]),{runtimeInfo:t,refreshRuntimeInfo:r}}function aU(){let e=FH();return(0,H.useMemo)(()=>e&&VH(e)||`en-US`,[e])}function oU(e={}){let{lang:t=`en-EN`,continuous:n=!0,interimResults:r=!0,onResult:i,onError:a,onTextChange:o,pauseOnSubmit:s=!1}=e,[c,l]=(0,H.useState)(!1),[u,d]=(0,H.useState)(``),[f,p]=(0,H.useState)(!1),m=(0,H.useRef)(null),h=(0,H.useRef)(``),g=(0,H.useRef)(!1),_=(0,H.useRef)(!1),v=(0,H.useRef)(``),y=(0,H.useRef)(``),b=(0,H.useRef)(null),x=(0,H.useRef)(!1),S=(0,H.useRef)(o),C=(0,H.useRef)(c);(0,H.useEffect)(()=>{S.current=o,C.current=c}),(0,H.useEffect)(()=>{let e=window.SpeechRecognition||window.webkitSpeechRecognition;if(typeof e!=`function`){p(!1);return}let o;try{o=new e,p(!0)}catch(e){console.log(`useAgentChatSpeechToText: Speech recognition is present but not constructable`,e),p(!1);return}return o.lang=t,o.continuous=n,o.interimResults=r,o.onresult=e=>{if(x.current)return;_.current=!0;let t=``,n=``;for(let r=e.resultIndex;r<e.results.length;r++){let i=e.results[r],a=i[0].transcript;i.isFinal?t+=a+` `:n+=a}t&&(h.current=(h.current+` `+t).trim());let r=(h.current+` `+n).trim();if(d(r),i?.(r,!!t),S.current)if(t){b.current!=null&&(cancelAnimationFrame(b.current),b.current=null);let e=v.current.trim(),t=[e,r.replace(e,``).trim()].filter(Boolean).join(` `).trim();v.current=t,S.current(t)}else y.current=r,b.current??=requestAnimationFrame(()=>{b.current=null;let e=y.current;S.current?.(e)})},o.onerror=e=>{console.log(`useAgentChatSpeechToText: Speech recognition error`,e.error),l(!1),a?.(e.error)},o.onend=()=>{if(g.current||!C.current){l(!1);return}queueMicrotask(()=>{if(!g.current)try{m.current?.start()}catch{l(!1)}})},m.current=o,()=>{m.current&&m.current.stop()}},[t,n,r,i,a]);let w=(0,H.useCallback)(()=>{if(!(!m.current||!f))try{d(``),h.current=``,g.current=!1,_.current=!1,x.current=!1,v.current=``,y.current=``,b.current!=null&&(cancelAnimationFrame(b.current),b.current=null),m.current.start(),l(!0)}catch(e){console.log(`useAgentChatSpeechToText: Failed to start speech recognition`,e),a?.(`Failed to start speech recognition`)}},[f,a]),T=(0,H.useCallback)(()=>{if(m.current)try{g.current=!0,m.current.stop(),l(!1)}catch(e){console.log(`useAgentChatSpeechToText: Failed to stop speech recognition`,e)}},[]);return{isListening:c,transcript:u,isSupported:f,startListening:w,stopListening:T,toggleListening:(0,H.useCallback)(()=>{c?T():w()},[c,w,T]),reset:(0,H.useCallback)(()=>{x.current=!0,v.current=``,y.current=``,b.current!=null&&(cancelAnimationFrame(b.current),b.current=null),s&&setTimeout(()=>{x.current=!1},500)},[s])}}var sU={bottom:24,right:24},cU=1e4;function lU(e){let t=e?.panelWidth??420,n=e?.panelHeight??`100%`,r=e?.panelHeaderHeight??56,i=e?.panelTopOffset,a=e?.zIndex??cU,o={...typeof e?.fabTopOffset==`number`?{top:e.fabTopOffset}:{bottom:e?.fabBottomOffset??sU.bottom},...typeof e?.fabLeftOffset==`number`?{left:e.fabLeftOffset}:{right:e?.fabRightOffset??sU.right}},s=e?.panelTitle??`Agent Chat`;return{panelWidth:t,panelHeight:n,panelHeaderHeight:r,panelTopOffset:i,zIndex:a,fabPosition:o,fabButtonLabel:e?.fabButtonLabel,panelTitle:s,accentColor:e?.accentColor}}function uU({isListening:e,stopListening:t,reset:n,sendMessage:r,composerText:i,setComposerText:a,startListening:o,close:s}){return{handleSubmit:()=>{e&&t(),n(),r(i)},handleToggleVoice:()=>{e?t():(a(``),o())},handleClose:()=>{e&&t(),s()}}}var dU=64;function fU(e,t={}){let{enabled:n=!0,behavior:r=`smooth`}=t,i=(0,H.useRef)(null),a=(0,H.useRef)(!0);return(0,H.useEffect)(()=>{let e=i.current;if(!e)return;let t=()=>{a.current=e.scrollHeight-e.scrollTop-e.clientHeight<=dU},n=()=>{t()};return e.addEventListener(`scroll`,n),()=>e.removeEventListener(`scroll`,n)},[]),(0,H.useEffect)(()=>{if(!n||!a.current)return;let e=i.current;if(!e)return;let t=()=>{let t=globalThis.matchMedia?.(`(prefers-reduced-motion: reduce)`)?.matches?`auto`:r;requestAnimationFrame(()=>{let n=Math.max(0,e.scrollHeight-e.clientHeight);e.scrollTo({top:n,behavior:t})})};requestAnimationFrame(()=>requestAnimationFrame(t))},e),i}var pU=XH({mutationKey:[`genai`,`login`],mutationFn:async({serviceAccount:e,serviceKey:t})=>YH.loginToGenai(e,t)}),mU=new vE(`useGenaiLogin`),hU=null,gU=null;function _U(e=!1){let t=PH(),{mutateAsync:n}=pU(),[r,i]=(0,H.useState)(!1),[a,o]=(0,H.useState)(null),[s,c]=(0,H.useState)(null),[l,u]=(0,H.useState)(null);return(0,H.useEffect)(()=>{(async()=>{let r=xT();if(r&&!e){c(r);return}let a=t.serviceAccount&&t.serviceKey&&t.tenantId?{serviceAccount:t.serviceAccount,serviceKey:t.serviceKey,tenantId:t.tenantId}:null;if(!a)return;u(a);let s=`${a.serviceAccount}::${a.serviceKey}`;if(hU===s&&!e){gU&&c(await gU);return}e&&(hU=null,gU=null),hU=s,i(!0),o(null),gU=(async()=>(await n({serviceAccount:a.serviceAccount,serviceKey:a.serviceKey})).access_token??null)();try{c(await gU)}catch(e){mU.error(`GenAI login failed`,{error:e instanceof Error?e.message:String(e)}),o(`Failed to authenticate with GenAI service`)}finally{gU=null,i(!1)}})()},[t,n,e]),{isLoggingIn:r,loginError:a,loginToken:s,genaiInit:l}}var vU=XH({mutationKey:[`genai`,`tenant-switch`],mutationFn:async({tenant_id:e,token:t})=>YH.switchTenant(e,t)}),yU=new vE(`useGenaiTenantSwitch`),bU=null,xU=null;function SU(e,t,n=!1){let{mutateAsync:r}=vU(),[i,a]=(0,H.useState)(!1),[o,s]=(0,H.useState)(null),[c,l]=(0,H.useState)(!1);return(0,H.useEffect)(()=>{(async()=>{if(!e||!t)return;let i=xT();if(i&&i!==e&&!n){l(!0);return}if(xU===e&&!n){bU&&(await bU,l(!!xT()));return}n&&(xU=null,bU=null),xU=e,a(!0),s(null),bU=(async()=>{await r({tenant_id:t,token:e})})();try{await bU,l(!0)}catch(e){yU.error(`GenAI tenant switch failed`,{error:e instanceof Error?e.message:String(e)}),s(`Failed to switch tenant`)}finally{bU=null,a(!1)}})()},[e,t,r,n]),{isSwitching:i,switchError:o,hasToken:c}}function CU(e=!1){let{isLoggingIn:t,loginError:n,loginToken:r,genaiInit:i}=_U(e),{isSwitching:a,switchError:o,hasToken:s}=SU(r,i?.tenantId,e);return{isAuthenticating:t||a,authError:n??o,hasToken:s}}function wU(e={}){let{defaultOpen:t=!1,persist:n=!0}=e,[r,i]=Gt({key:n?VT.PANEL_OPEN:`panel-state-${Date.now()}`,defaultValue:t,getInitialValueInEffect:!1}),a=(0,H.useRef)(!1);return(0,H.useEffect)(()=>{r&&!a.current&&e.onOpen&&(a.current=!0,e.onOpen())},[r,e.onOpen]),(0,H.useEffect)(()=>{let e=document.querySelector(`main`)||document.querySelector(`.main-content`)||document.body;return r?e?.classList.add(`panel-open`):(e?.classList.remove(`panel-open`),e?.style.removeProperty(`margin-right`)),()=>{e?.classList.remove(`panel-open`),e?.style.removeProperty(`margin-right`)}},[r]),{isOpen:r,open:(0,H.useCallback)(async()=>{i(!0),e.onOpen&&!a.current&&(a.current=!0,await e.onOpen())},[i,e.onOpen]),close:(0,H.useCallback)(()=>{i(!1)},[i]),toggle:(0,H.useCallback)(()=>{i(e=>!e)},[i]),setOpen:(0,H.useCallback)(e=>{i(e)},[i])}}function TU({runtime:e,uiOptions:t}){let n=e.forceReAuth,{isAuthenticating:r,hasToken:i}=CU(n),{panelWidth:a,panelHeight:o,panelHeaderHeight:s,panelTopOffset:c,zIndex:l,fabPosition:u,fabButtonLabel:d,panelTitle:f,accentColor:p}=lU(t);Mj(p);let m=(0,H.useRef)(!1),{messages:h,composerText:g,setComposerText:_,isLoading:v,error:y,sendMessage:b,sendInitialMessage:x,canSend:S}=$H(),{actions:C,handleActionClick:w}=eU(h,b),{runtimeInfo:T,refreshRuntimeInfo:E}=iU(),{isOpen:D,open:O,close:k}=wU({defaultOpen:!1,persist:!0,onOpen:async()=>{m.current||(m.current=!0,await E())}});(0,H.useEffect)(()=>{(async()=>{m.current&&D&&!r&&i&&(await x(),m.current=!1)})()},[D,r,i,x]);let A=fU([h.length,v]),{isListening:j,isSupported:M,startListening:N,stopListening:P,reset:ee}=oU({lang:aU(),continuous:!0,pauseOnSubmit:!0,onTextChange:_}),{panelResizableWidth:F}=rU(t,a,D),{handleSubmit:I,handleToggleVoice:te,handleClose:ne}=uU({isListening:j,stopListening:P,reset:ee,sendMessage:b,composerText:g,setComposerText:_,startListening:N,close:k});return(0,U.jsxs)(U.Fragment,{children:[!D&&(0,U.jsx)(xH,{onClick:()=>void O(),zIndex:l,position:u,label:d}),D&&(0,U.jsx)(hH,{visible:!0,onClose:ne,messages:h,composerText:g,onComposerTextChange:_,isLoading:v,error:y,canSend:S,onSubmit:I,actions:C,onActionClick:w,isListening:j,isVoiceSupported:M,onToggleVoice:te,panelTitle:f,runtimeInfo:T,scrollViewportRef:A,panelWidth:a,panelHeight:o,panelHeaderHeight:s,panelResizableWidth:F,zIndex:l,panelTopOffset:c})]})}function EU(e){return(0,U.jsx)(TU,{...e})}function DU(e,t){if(typeof e==`function`){e(t);return}e&&(e.current=t)}function OU(e){return{url:{app:e.app??``,api:e.api??``,apiPaths:{crm:``,uiAuthz:``}},keycloak:{url:``,realm:``,clientId:``},features:{enableThemeManager:!0}}}var kU=(0,H.forwardRef)((e,t)=>{let{config:n,runtime:r,uiOptions:i,className:a,style:o,rootElement:s}=e,c=(0,H.useRef)(null),l=OU(n);Fe.locale||Fe.activate(`en`),kE(l,n);let u=Mj(i?.accentColor);return(0,U.jsx)(Uj,{appConfig:l,config:n,runtime:r,theme:i?.theme?Hr(u,i.theme):u,rootElement:s??c.current,children:(0,U.jsx)(`div`,{className:a,ref:e=>{c.current=e,DU(t,e)},style:o,children:(0,U.jsx)(EU,{config:n,runtime:r,uiOptions:i})})})});kU.displayName=`Widget`;var AU=`:root,
401
+ `).replace(/\\t/g,` `).replace(/\\"/g,`"`).replace(/\\\//g,`/`).replace(/\\\\/g,`\\`)}function MV(e){return e&&e.replace(/([{\s,])([A-Za-z0-9_@$-]+)\s*:/g,(e,t,n)=>`${t}"${n}":`)}function NV(e){let t=e.trim();t=t.replace(/[""]/g,`"`).replace(/['']/g,`'`),t=t.replace(/,\s*([}\]])/g,`$1`);try{t=MV(t)}catch{}return t=EV(t),AV(t)}function PV(e){if(!e||typeof e!=`string`)return null;let t=kV(e);if(t!=null)return t;try{let t=OV.default.parse(e);if(t!=null)return t}catch{}if(e.includes(`\\"`)||e.includes(`\\n`)||e.includes(`\\r`)||e.includes(`\\\\`)){let t=AV(jV(e));if(t!=null)return t}try{return NV(e)}catch{return null}}function FV(e){let t=xV(e);if(t<0)return null;let n=DV(e,t);if(n!==null)return{start:t,json:e.slice(t,n).trim(),consumed:n-t};let r=e.slice(t),i=r.search(/\r?\n\r?\n/);return i>20&&(r=r.slice(0,i).trimEnd()),{start:t,json:EV(r).trim(),consumed:r.length}}var IV=`"structuredData":`,LV=`\\"structuredData\\":`;function RV(e){let t=e.indexOf(IV);if(t<0&&(t=e.indexOf(LV)),t<0)return null;let n=t+17,r=e.indexOf(`{`,n);if(r<0||r>n+10)return null;let i=DV(e,r),a,o;i===null?(a=e.slice(t,r).trim()+EV(e.slice(r)).trim(),o=e.length-t):(a=e.slice(t,i).trim(),o=i-t),t===e.indexOf(LV)&&(a=a.replace(/\\"/g,`"`));let s=`{`+a+`}`;return{start:t,fullJson:s,consumed:o}}function zV(e){let t=e.trim();if(!t||t.length<10)return!1;let n=xV(t);return n>=0&&DV(t,n)===null&&t.length-n>10}function BV(e){let t=/^\s*(?:\r?\n)?\s*(?:'{3}|"{3}|`{3})(?:\s*json\s*)?(?:'{3}|"{3}|`{3})?\s*(?:\r?\n)?/i.exec(e);return!t||!/'{3}|"{3}|`{3}/i.test(t[0])?0:t[0].length}function VV(e){return/^\s*(?:[\]}]+\s*)+/.exec(e)?.[0].length??0}function HV(e){return e&&typeof e==`object`?e:null}function UV(e){return Array.isArray(e)?e:[]}function WV(e){if(typeof e==`number`)return Number.isFinite(e)?e:null;if(typeof e==`string`){let t=Number(e);return Number.isFinite(t)?t:null}return null}function GV(e,t,n){let r=WV(e.used)??WV(e.currentValueRaw)??0,i=WV(e.allowance),a=WV(e.remaining),o=i??WV(e.total)??(r!=null&&a!=null?r+a:null)??WV(e.valueRaw)??(r>0?r:0),s=typeof e.unit==`string`?e.unit:``,c=typeof e.name==`string`?e.name:t.toUpperCase();if(o<=0)return null;let l=n?WV(e.percentUsed)??void 0:void 0,u={key:t,label:c,used:r,total:o,unit:s};return l!=null&&(u.percentUsed=l),u}function KV(e){let t=[],n=UV(e?.responseList);for(let e of n){let n=GV(e,typeof e.type==`string`?e.type:`usage`,!0);n&&t.push(n)}return t.length>0?t:null}function qV(e){let t=e.items;if(Array.isArray(t)&&t.length>0){let e=HV(t[0]);if(e)return e}return e}function JV(e){let t=HV(e),n=HV(HV(t?.structuredData)?.data??t?.data);if(!n)return null;let r=KV(n);if(r)return r;let i=UV(n?.usageTypes);if(i.length===0)return null;let a=[];for(let e of i){let t=typeof e.type==`string`?e.type:`usage`,n=qV(e);if(!n)continue;let r=GV(n,t);r&&a.push(r)}return a.length>0?a:null}function YV(e){if(!e||typeof e!=`object`)return!1;let t=e;return Array.isArray(t.actions)?t.actions.every(e=>typeof e==`object`&&!!e&&typeof e.buttonText==`string`&&typeof e.agentMessage==`string`):!1}function XV(e){return e&&typeof e==`object`?e:null}function ZV(e){if(typeof e!=`string`)return null;switch(e){case`card`:case`link`:case`chart`:case`highlightBox`:return e;default:return null}}function QV(e){let t=XV(e);if(!t)return null;let n=XV(t.structuredData),r=[XV(n?.visualization)?.type,XV(n?.visualizationConfig)?.visualizationType,n?.visualizationType,XV(t.visualization)?.type,XV(t.visualizationConfig)?.visualizationType,t.visualizationType];for(let e of r)if(typeof e==`string`)return ZV(e)??e;return null}function $V(e){if(typeof e!=`string`)return null;let t=e.trim();switch(t){case`accountOverview`:case`customerProfile`:case`offerRecommendation`:case`basket`:case`usageAnalysis`:case`twinInsight`:return t;default:return`unknown`}}function eH(e){let t=XV(e);if(!t)return null;let n=XV(t.structuredData),r=n?.data??t.data,i=XV(n?.visualization),a=XV(t.visualization);return{data:r,visualizationConfig:i?.config??a?.config??t.visualizationConfig,responseType:$V(n?.responseType??t.responseType)}}function tH(e){let t=XV(e);return!t||XV(t.structuredData)?e:typeof t.responseType==`string`||XV(t.visualization)||XV(t.visualizationConfig)||typeof t.visualizationType==`string`||t.data!==void 0?{structuredData:t}:e}function nH(e){let t=XV(e);return t?XV(t.structuredData)||XV(t.visualization)||XV(t.visualizationConfig)||Array.isArray(t.actions)?!0:typeof t.visualizationType==`string`||typeof t.responseType==`string`:!1}var rH=new pE(`widget-config-builder`);function iH(e){if(YV(e))return{type:`widget`,config:{type:`actions`,actions:e.actions}};let t=QV(e),n=eH(e),r={visualizationConfig:n?.visualizationConfig,responseType:n?.responseType??void 0};if(!t){let t=n?.data??e;return $B(t)?{type:`widget`,config:{type:`card`,data:t,...r}}:null}if(t===`chart`){let n=e?JV(e):null;return!n||n.length===0?null:{type:`widget`,config:{type:t,items:n,...r}}}if(t===`card`||t===`link`||t===`highlightBox`){let e=n?.data;if(!$B(e))return null;let i=t;if(t===`card`){let e=n?.responseType;e===`accountOverview`?i=`account-overview`:e===`offerRecommendation`&&(i=`offer-card`)}let a={type:i,data:e,...r};return rH.debug(`Creating widget`,{visualizationType:t,responseType:n?.responseType,widgetType:i,config:a}),{type:`widget`,config:a}}return{type:`widget`,config:{type:t}}}var aH=new pE(`useAgentMarkdownRendererElements`),oH={async:!1,breaks:!0,gfm:!0};function sH(e){return QP.parse(e,oH)}function cH(e,t,n){let r=sH(t);return r.trim()?(e.push({type:`markdown`,key:`md-${n}`,content:r}),n+1):n}function lH(e){return["```json",JSON.stringify(e,null,2),"```"].join(`
402
+ `)}function uH(e){let t=e.trim();return!t||!/^[{\[]/.test(t)?null:PV(t)}function dH(e,t){return(0,H.useMemo)(()=>{let n=yV(e),r=uH(n);if(r)return[{type:`markdown`,key:`json-0`,content:sH(lH(r))}];let i=uV(n),a=[],o=0;for(let e of i){if(e.type===`markdown`){o=cH(a,e.content,o);continue}try{let n=dV(e.dsl);if(!n){let t=uH(e.dsl);o=cH(a,t?lH(t):e.raw,o);continue}let r=ZB(n,t);if(r.kind===`widget`){a.push({type:`widget`,key:`widget-${o++}`,widget:r.widget});continue}o=cH(a,lH(r.payload),o)}catch(t){aH.error(`Failed to parse widget`,{error:t instanceof Error?t.message:String(t)}),o=cH(a,e.raw,o)}}return a},[e,t])}var fH={agentChatMdRenderer:`_agentChatMdRenderer_5jigp_1`},pH=(0,H.memo)(({content:e,onWidgetEvent:t})=>{let n=dH(e,t);return(0,U.jsx)(q,{className:fH.agentChatMdRenderer,children:n.map(e=>e.type===`markdown`?(0,U.jsx)(yN,{html:e.content},e.key):(0,U.jsx)(q,{children:e.widget},e.key))})});pH.displayName=`AgentMarkdownRenderer`;var mH={body:`_body_1vtnd_1`,messageBubble:`_messageBubble_1vtnd_21`,messageBubbleUser:`_messageBubbleUser_1vtnd_33`,userText:`_userText_1vtnd_54`,messageBubbleAssistant:`_messageBubbleAssistant_1vtnd_62`,messageList:`_messageList_1vtnd_84`};function hH({messages:e,isLoading:t,error:n,scrollViewportRef:r,onWidgetEvent:i}){return(0,U.jsx)(Vy,{className:mH.body,gap:0,children:(0,U.jsx)(sl,{h:`100%`,type:`always`,scrollbarSize:8,offsetScrollbars:!0,viewportRef:r,children:(0,U.jsxs)(Vy,{className:mH.messageList,gap:0,children:[n&&(0,U.jsx)(Gf,{color:`red`,variant:`light`,radius:`md`,children:n}),e.map(e=>(0,U.jsx)(q,{className:`${mH.messageBubble} ${e.sentBy===`user`?mH.messageBubbleUser:mH.messageBubbleAssistant}`,children:e.sentBy===`assistant`?(0,U.jsx)(pH,{content:e.text,onWidgetEvent:i}):(0,U.jsx)(Xf,{className:mH.userText,children:e.text})},e.id)),t&&(0,U.jsx)(q,{className:`${mH.messageBubble} ${mH.messageBubbleAssistant}`,children:(0,U.jsx)(dM,{messages:[`Thinking`,`Analyzing your request`,`Searching for information`,`Processing data`,`Preparing response`,`Almost there`]})})]})})})}var gH={root:`_root_h7hgt_1`,input:`_input_h7hgt_6`,section:`_section_h7hgt_34`};function _H({composerText:e,onComposerTextChange:t,isLoading:n,isListening:r,onSubmit:i,rightSection:a,rightSectionWidth:o}){return(0,U.jsx)(zb,{placeholder:r?`Listening...`:`Ask me anything...`,value:e,onChange:e=>t(e.currentTarget.value),disabled:n,radius:`md`,size:`md`,rightSection:a,rightSectionWidth:o,rightSectionPointerEvents:`all`,classNames:{root:gH.root,input:gH.input,section:gH.section},styles:{input:{minHeight:`100%`}},onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),i())}})}function vH({...e}){return(0,U.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,U.jsx)(`path`,{d:`M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z`}),(0,U.jsx)(`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`}),(0,U.jsx)(`line`,{x1:`12`,x2:`12`,y1:`19`,y2:`22`})]})}function yH({...e}){return(0,U.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:(0,U.jsx)(`rect`,{x:`6`,y:`6`,width:`12`,height:`12`,rx:`2`})})}function bH(e,t){return e.other.iconSize[t]}function xH(e,t){let n=bH(e,t);return{width:n,height:n}}function SH({isListening:e,isLoading:t,onToggleVoice:n,size:r}){let i=zj(),a=r??i.other.iconSize[`icon-lg`]+14;return(0,U.jsx)(dy,{label:e?`Stop recording`:`Voice input`,children:(0,U.jsx)(gu,{onClick:n,disabled:t,size:a,radius:`md`,variant:e?`filled`:`subtle`,color:e?`red`:`accent`,"aria-label":e?`Stop voice recording`:`Start voice recording`,styles:{root:e?void 0:{color:i.other.color[`secondary-default`],backgroundColor:`transparent`,boxShadow:`inset 0 0 0 1px ${i.other.color[`secondary-light`]}33`}},children:e?(0,U.jsx)(yH,{...xH(i,`icon-sm`)}):(0,U.jsx)(vH,{...xH(i,`icon-sm`)})})})}function CH({...e}){return(0,U.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,U.jsx)(`path`,{d:`m22 2-7 20-4-9-9-4Z`}),(0,U.jsx)(`path`,{d:`M22 2 11 13`})]})}var wH={footer:`_footer_zlzuq_1`,actionGroup:`_actionGroup_zlzuq_8`,poweredBy:`_poweredBy_zlzuq_12`,sendButton:`_sendButton_zlzuq_18`};function TH({composerText:e,onComposerTextChange:t,isLoading:n,isListening:r,isVoiceSupported:i,canSend:a,onSubmit:o,onToggleVoice:s}){let c=zj(),l=i?74:40;return(0,U.jsxs)(Vy,{className:wH.footer,gap:`sm`,children:[(0,U.jsx)(_H,{composerText:e,onComposerTextChange:t,isLoading:n,isListening:r,onSubmit:o,rightSectionWidth:l,rightSection:(0,U.jsxs)(Eu,{className:wH.actionGroup,wrap:`nowrap`,gap:4,align:`center`,children:[i&&(0,U.jsx)(SH,{isListening:r,isLoading:n,onToggleVoice:s,size:30}),(0,U.jsx)(gu,{onClick:o,disabled:!a||n,size:30,radius:`md`,variant:`filled`,color:`accent`,className:wH.sendButton,"aria-label":`Send message`,children:(0,U.jsx)(CH,{...xH(c,`icon-sm`)})})]})}),(0,U.jsx)(Xf,{ta:`center`,size:`xs`,c:`dimmed`,className:wH.poweredBy,pt:2,children:`Powered by Exceeder · Etiya`})]})}function EH({...e}){return(0,U.jsxs)(`svg`,{viewBox:`0 0 22 22`,fill:`none`,...e,children:[(0,U.jsx)(`rect`,{x:`4`,y:`4`,width:`14`,height:`2.5`,rx:`1.2`,fill:`currentColor`}),(0,U.jsx)(`rect`,{x:`4`,y:`9.75`,width:`10`,height:`2.5`,rx:`1.2`,fill:`currentColor`,opacity:`0.88`}),(0,U.jsx)(`rect`,{x:`4`,y:`15.5`,width:`14`,height:`2.5`,rx:`1.2`,fill:`currentColor`})]})}function DH({...e}){return(0,U.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,U.jsx)(`path`,{d:`M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}var OH={header:`_header_5x292_19`,headerLeft:`_headerLeft_5x292_31`,headerInfo:`_headerInfo_5x292_36`,orbContainer:`_orbContainer_5x292_40`,orbOuter:`_orbOuter_5x292_54`,orbPulse:`_orbPulse_5x292_1`,orbMiddle:`_orbMiddle_5x292_63`,orbInner:`_orbInner_5x292_72`,orbFloat:`_orbFloat_5x292_1`,headerMeta:`_headerMeta_5x292_85`,statusDot:`_statusDot_5x292_89`,statusText:`_statusText_5x292_103`,closeButton:`_closeButton_5x292_112`,title:`_title_5x292_123`,topSubHeader:`_topSubHeader_5x292_135`,subHeaderLeft:`_subHeaderLeft_5x292_145`,subHeaderIcon:`_subHeaderIcon_5x292_151`,subHeaderTitle:`_subHeaderTitle_5x292_162`,subHeaderStatus:`_subHeaderStatus_5x292_168`};function kH({panelTitle:e,isLoading:t,isOnline:n,onClose:r}){let i=zj(),a=i.other.iconSize[`icon-lg`]+14;return(0,U.jsxs)(Ef,{className:OH.header,align:`center`,justify:`space-between`,children:[(0,U.jsxs)(Eu,{className:OH.headerLeft,wrap:`nowrap`,gap:`sm`,align:`center`,children:[(0,U.jsxs)(q,{className:OH.orbContainer,"data-loading":t||void 0,children:[(0,U.jsx)(q,{className:OH.orbOuter}),(0,U.jsx)(q,{className:OH.orbMiddle}),(0,U.jsx)(q,{className:OH.orbInner,children:(0,U.jsx)(EH,{...xH(i,`icon-sm`),color:i.other.color[`text-white`]})})]}),(0,U.jsxs)(Vy,{className:OH.headerInfo,gap:2,justify:`center`,children:[(0,U.jsx)(Xf,{className:OH.title,fw:800,children:e}),(0,U.jsxs)(Eu,{className:OH.headerMeta,wrap:`nowrap`,gap:6,align:`center`,children:[(0,U.jsx)(q,{className:OH.statusDot,"data-loading":t||void 0,"data-online":n||void 0}),(0,U.jsx)(Xf,{className:OH.statusText,span:!0,children:t?`Typing…`:n?`Online`:`Offline`})]})]})]}),(0,U.jsx)(gu,{variant:`subtle`,size:a,radius:`md`,onClick:r,className:OH.closeButton,"aria-label":`Close agent chat`,children:(0,U.jsx)(DH,{...xH(i,`icon-sm`)})})]})}var AH={root:`_root_98si9_1`,surface:`_surface_98si9_9`,resizeHandle:`_resizeHandle_98si9_22`};function jH({visible:e,onClose:t,messages:n,composerText:r,onComposerTextChange:i,isLoading:a,error:o,canSend:s,onSubmit:c,isListening:l,isVoiceSupported:u,onToggleVoice:d,actions:f,onActionClick:p,panelTitle:m,runtimeInfo:h,scrollViewportRef:g,actualWidth:_=420,floatingTop:v=`var(--mantine-custom-space-150)`,floatingHeight:y=`100%`,floatingMaxHeight:b=`calc(100vh - var(--mantine-custom-space-150) - var(--mantine-custom-space-150))`,shellGap:x=`var(--mantine-custom-space-150)`,panelHeaderHeight:S=56,panelResizableWidth:C,zIndex:w}){let T=h.hasCustomerToken&&h.hasGenaiToken;return e?(0,U.jsxs)(q,{className:AH.root,style:{width:_,maxWidth:`calc(100vw - var(--mantine-custom-space-400) - var(--mantine-custom-space-400))`,height:y,maxHeight:b,top:v,right:x,zIndex:w,"--agent-widget-panel-header-height":`${S}px`,"--agent-widget-shell-gap":x},children:[C&&(0,U.jsx)(q,{onPointerDown:C.handlePointerDown,className:AH.resizeHandle,style:C.style}),(0,U.jsxs)(q,{className:AH.surface,children:[(0,U.jsx)(kH,{panelTitle:m,isLoading:a,isOnline:T,onClose:t}),(0,U.jsx)(hH,{messages:n,isLoading:a,error:o,scrollViewportRef:g,onWidgetEvent:e=>{if(e.type===`action-click`&&e.data){let t=f.find(t=>t.agentMessage===e.data?.agentMessage);t&&p(t)}}}),(0,U.jsx)(TH,{composerText:r,onComposerTextChange:i,isLoading:a,isListening:l,isVoiceSupported:u,canSend:s,onSubmit:c,onToggleVoice:d})]})]}):null}function MH(){let e=(0,H.useContext)(Zj);if(!e)throw Error(`AgentConfigContext is missing.`);return e}function NH(){let e=(0,H.useContext)(Qj);if(!e)throw Error(`AgentRuntimeContext is missing.`);return e}function PH(e){return e.assistantId??null}function FH(e){return e.agents??[]}function IH(e){let t=PH(e);return t?FH(e).find(e=>e.assistantId===t)?.initialMessage??null:null}function LH(e){return e.customerId}function RH(e){return e.customerToken}function zH(e){return e.language??null}function BH(e){if(!e||typeof e!=`object`)return null;let t=e,n=t.message??(Array.isArray(t.messages)?t.messages[0]:null);if(!n||typeof n!=`object`)return null;let r=n.chat_id,i=typeof r==`number`&&Number.isFinite(r)?r:null,a=typeof n.message==`string`?n.message:``,o=typeof n.created_at==`string`?n.created_at:new Date().toISOString();return a?{chatId:i,text:a,createdAt:o}:null}var VH={runtimeInfo:{customerId:null,hasCustomerToken:!1,hasGenaiToken:!1}},HH=lE(e=>({...VH,setRuntimeInfo:t=>e({runtimeInfo:t}),updateCustomerId:t=>e(e=>({runtimeInfo:{...e.runtimeInfo,customerId:t}})),updateCustomerToken:t=>e(e=>({runtimeInfo:{...e.runtimeInfo,hasCustomerToken:t}})),updateGenaiToken:t=>e(e=>({runtimeInfo:{...e.runtimeInfo,hasGenaiToken:t}})),resetRuntimeInfo:()=>e({runtimeInfo:VH.runtimeInfo})})),UH=new pE(`GenaiService`);async function WH(e,t){try{let n=new URLSearchParams;n.set(`username`,atob(e)),n.set(`password`,atob(t));let r=await CE.post(`/login`,n,{anonymous:!0,headers:{"Content-Type":`application/x-www-form-urlencoded`}});return r.data?.access_token&&_T(r.data.access_token),r.data}catch(e){let t={message:e instanceof Error?e.message:String(e),...e&&typeof e==`object`&&`response`in e?{status:e.response?.status,statusText:e.response?.statusText,data:e.response?.data}:{}};throw UH.error(`Error logging in to GenAI: `,t),e}}async function GH(e,t){try{let n=await CE.post(`/tenants/switch`,{tenant_id:e},{anonymous:!0,headers:{Authorization:`Bearer ${t}`}});return n.data?.data?.access_token&&_T(n.data.data.access_token),n.data?.data?.tenant_id&&yT(n.data.data.tenant_id),n.data}catch(e){let t={message:e instanceof Error?e.message:String(e),...e&&typeof e==`object`&&`response`in e?{status:e.response?.status,statusText:e.response?.statusText,data:e.response?.data}:{}};throw UH.error(`Error switching tenant: `,t),e}}async function KH(e){try{return(await CE.post(`/agent-message`,e,{anonymous:!0})).data}catch(e){let t={message:e instanceof Error?e.message:String(e),...e&&typeof e==`object`&&`response`in e?{status:e.response?.status,statusText:e.response?.statusText,data:e.response?.data}:{}};throw UH.error(`Error sending agent message: `,t),e}}var qH={loginToGenai:WH,switchTenant:GH,sendAgentMessage:KH};function JH({mutationKey:e,mutationFn:t,defaultOptions:n={}}){return function(r){return tS({...n,...r,meta:{...n?.meta,...r?.meta},mutationKey:e,mutationFn:t})}}var YH=JH({mutationKey:[`genai`,`agent-message`],mutationFn:async({payload:e})=>qH.sendAgentMessage(e)});function XH(){let e=globalThis.crypto;return e?.randomUUID?e.randomUUID():`${Date.now()}-${Math.random().toString(16).slice(2)}`}function ZH(){let e=NH(),t=MH(),n=YH(),[r,i]=(0,H.useState)([]),[a,o]=(0,H.useState)(``),[s,c]=(0,H.useState)(null),[l,u]=(0,H.useState)(!1),[d,f]=(0,H.useState)(null),p=(0,H.useRef)(!1),m=(0,H.useCallback)(e=>{let t={id:XH(),sentBy:`user`,text:e};i(e=>[...e,t])},[]),h=(0,H.useCallback)((e,t)=>{let n={id:XH(),sentBy:`assistant`,text:e,createdAt:t};i(e=>[...e,n])},[]),g=(0,H.useCallback)(async(r,i)=>{if(!r.trim())return;if(o(``),i?.showUserBubble!==!1&&m(r),!e||!t){f(`Chat is not configured.`);return}let a=PH(t);if(!a){f(`Chat configuration is missing.`);return}let l=LH(e),d=await RH(e);if(!d){f(`Missing customer token.`);return}u(!0),f(null);try{let e=BH(await n.mutateAsync({payload:{message:r,chat_id:s,assistant_id:a,is_sync:!0,...l?{unique_user_id:l}:{},tool_headers:{_default:{Authorization:`Bearer ${d}`}}}}));if(!e)return;e.chatId!==null&&c(e.chatId),h(e.text,e.createdAt)}catch{f(`Something went wrong. Please try again.`)}finally{u(!1)}},[e,t,s,m,h,n]);return{messages:r,composerText:a,setComposerText:o,isLoading:l,error:d,sendMessage:g,sendInitialMessage:(0,H.useCallback)(async()=>{if(p.current||l||r.length>0||!e||!t)return;let n=LH(e),i=IH(t)?.trim(),a=null;a=i?n?`${i} ${n}`.trim():i:n?`Hello, my customer id is ${n}`:`Hello`,a.trim()&&(p.current=!0,await g(a,{showUserBubble:!1}))},[e,t,l,r.length,g]),resetChat:(0,H.useCallback)(()=>{i([]),o(``),c(null),f(null),p.current=!1},[]),canSend:a.trim().length>0}}function QH(e,t){let n=(0,H.useRef)([]);return{actions:(0,H.useMemo)(()=>{let t=[...e].reverse().find(e=>e.sentBy===`assistant`);if(!t)return n.current;let r=_V(t.text).find(e=>e.type===`widget`&&e.config.type===`actions`),i=r?.type===`widget`?r.config.actions??[]:[];return i.length>0&&(n.current=i),n.current},[e]),handleActionClick:(0,H.useCallback)(e=>{t(e.agentMessage)},[t])}}function $H(e={}){let{axis:t=`y`,direction:n=1,onResizeChange:r}=e,[i,a]=(0,H.useState)(0),o=(0,H.useRef)({startPos:0,startOffset:0}),{startInteraction:s}=iM(),c=t===`y`?`ns-resize`:t===`x`?`ew-resize`:`nwse-resize`;return{offset:i,handlePointerDown:(0,H.useCallback)(e=>{e.preventDefault(),e.stopPropagation();let l=t===`y`?e.clientY:e.clientX,u=i;o.current={startPos:l,startOffset:u},s({cursor:c,onMove:e=>{let i;i=t===`y`?-(e.clientY-l):(e.clientX-l)*n;let o=u+i;a(o),r?.(o)}})},[i,t,n,c,r,s]),style:{cursor:c,touchAction:`none`}}}var eU=[`#root main`,`#root`,`main`,`.main-content`,`#app`,`body`];function tU(e,t,n,r,i){let a=(0,H.useRef)(Math.max(280,t??420)),o=(0,H.useRef)(n??!1),s=(0,H.useRef)(null),c=(0,H.useCallback)(()=>{let t=e?.hostContainerSelector,n=[...t?t.split(`,`).map(e=>e.trim()).filter(Boolean):[],...eU];for(let e of n){let t=document.querySelector(e);if(t)return t}return document.body},[e?.hostContainerSelector]),l=(0,H.useCallback)(e=>{let t=document.documentElement;if(e===null?t.style.removeProperty(`--agent-widget-panel-width`):t.style.setProperty(`--agent-widget-panel-width`,`${e}px`),e===null){if(s.current){let{element:e,inlinePaddingBefore:t}=s.current;e.style.paddingRight=t,s.current=null}return}if(!s.current||!document.contains(s.current.element)){let e=c();if(!e)return;s.current={element:e,inlinePaddingBefore:e.style.paddingRight,widthApplied:0}}let{element:n,inlinePaddingBefore:r,widthApplied:i}=s.current;e!==i&&(n.style.paddingRight=r,n.style.paddingRight=`calc(${r||`0px`} + ${e}px)`,s.current.widthApplied=e)},[c]),u=$H({axis:`x`,direction:-1,onResizeChange:(0,H.useCallback)(e=>{let n=Math.max(280,(t??420)+e);a.current=n,l(n)},[t,l])});(0,H.useEffect)(()=>{o.current=n??!1},[n]),(0,H.useEffect)(()=>{let e=Math.max(280,t??420);a.current=e,o.current&&l(e)},[t,l]),(0,H.useEffect)(()=>{if(!n){l(null),document.documentElement.removeAttribute(`data-agent-widget-open`);return}return l(a.current),document.documentElement.setAttribute(`data-agent-widget-open`,`true`),()=>{l(null),document.documentElement.removeAttribute(`data-agent-widget-open`)}},[n,l]);let d=u?Math.max(280,(t??420)+u.offset):t??420,f=r===`100%`||r===`100vh`,p=`var(--mantine-custom-space-150)`,m=i??0;return{panelResizableWidth:u,actualWidth:d,shellGap:p,floatingTop:m?`calc(${m}px + ${p})`:p,floatingHeight:f?`calc(100vh - ${m}px - ${p} - ${p})`:typeof r==`number`?`${r}px`:r??`100%`,floatingMaxHeight:`calc(100vh - ${m}px - ${p} - ${p})`}}function nU(){let e=NH(),{runtimeInfo:t,setRuntimeInfo:n}=HH(),r=(0,H.useCallback)(async()=>{if(!e){n({customerId:null,hasCustomerToken:!1,hasGenaiToken:!1});return}let t=LH(e),r=await RH(e),i=gT();n({customerId:t,hasCustomerToken:!!r,hasGenaiToken:!!i})},[e,n]);return(0,H.useEffect)(()=>{r()},[e,r]),{runtimeInfo:t,refreshRuntimeInfo:r}}function rU(){let e=NH();return(0,H.useMemo)(()=>e&&zH(e)||`en-US`,[e])}function iU(e={}){let{lang:t=`en-EN`,continuous:n=!0,interimResults:r=!0,onResult:i,onError:a,onTextChange:o,pauseOnSubmit:s=!1}=e,[c,l]=(0,H.useState)(!1),[u,d]=(0,H.useState)(``),[f,p]=(0,H.useState)(!1),m=(0,H.useRef)(null),h=(0,H.useRef)(``),g=(0,H.useRef)(!1),_=(0,H.useRef)(!1),v=(0,H.useRef)(``),y=(0,H.useRef)(``),b=(0,H.useRef)(null),x=(0,H.useRef)(!1),S=(0,H.useRef)(o),C=(0,H.useRef)(c);(0,H.useEffect)(()=>{S.current=o,C.current=c}),(0,H.useEffect)(()=>{let e=window.SpeechRecognition||window.webkitSpeechRecognition;if(typeof e!=`function`){p(!1);return}let o;try{o=new e,p(!0)}catch(e){console.log(`useAgentSpeechToText: Speech recognition is present but not constructable`,e),p(!1);return}return o.lang=t,o.continuous=n,o.interimResults=r,o.onresult=e=>{if(x.current)return;_.current=!0;let t=``,n=``;for(let r=e.resultIndex;r<e.results.length;r++){let i=e.results[r],a=i[0].transcript;i.isFinal?t+=a+` `:n+=a}t&&(h.current=(h.current+` `+t).trim());let r=(h.current+` `+n).trim();if(d(r),i?.(r,!!t),S.current)if(t){b.current!=null&&(cancelAnimationFrame(b.current),b.current=null);let e=v.current.trim(),t=[e,r.replace(e,``).trim()].filter(Boolean).join(` `).trim();v.current=t,S.current(t)}else y.current=r,b.current??=requestAnimationFrame(()=>{b.current=null;let e=y.current;S.current?.(e)})},o.onerror=e=>{console.log(`useAgentSpeechToText: Speech recognition error`,e.error),l(!1),a?.(e.error)},o.onend=()=>{if(g.current||!C.current){l(!1);return}queueMicrotask(()=>{if(!g.current)try{m.current?.start()}catch{l(!1)}})},m.current=o,()=>{m.current&&m.current.stop()}},[t,n,r,i,a]);let w=(0,H.useCallback)(()=>{if(!(!m.current||!f))try{d(``),h.current=``,g.current=!1,_.current=!1,x.current=!1,v.current=``,y.current=``,b.current!=null&&(cancelAnimationFrame(b.current),b.current=null),m.current.start(),l(!0)}catch(e){console.log(`useAgentSpeechToText: Failed to start speech recognition`,e),a?.(`Failed to start speech recognition`)}},[f,a]),T=(0,H.useCallback)(()=>{if(m.current)try{g.current=!0,m.current.stop(),l(!1)}catch(e){console.log(`useAgentSpeechToText: Failed to stop speech recognition`,e)}},[]);return{isListening:c,transcript:u,isSupported:f,startListening:w,stopListening:T,toggleListening:(0,H.useCallback)(()=>{c?T():w()},[c,w,T]),reset:(0,H.useCallback)(()=>{x.current=!0,v.current=``,y.current=``,b.current!=null&&(cancelAnimationFrame(b.current),b.current=null),s&&setTimeout(()=>{x.current=!1},500)},[s])}}var aU={bottom:24,right:24},oU=1e4;function sU(e){let t=e?.panelWidth??420,n=e?.panelHeight??`100%`,r=e?.panelHeaderHeight??56,i=e?.panelTopOffset,a=e?.zIndex??oU,o={...typeof e?.fabTopOffset==`number`?{top:e.fabTopOffset}:{bottom:e?.fabBottomOffset??aU.bottom},...typeof e?.fabLeftOffset==`number`?{left:e.fabLeftOffset}:{right:e?.fabRightOffset??aU.right}},s=e?.panelTitle??`Agent Chat`;return{panelWidth:t,panelHeight:n,panelHeaderHeight:r,panelTopOffset:i,zIndex:a,fabPosition:o,fabButtonLabel:e?.fabButtonLabel,panelTitle:s}}function cU({isListening:e,stopListening:t,reset:n,sendMessage:r,composerText:i,setComposerText:a,startListening:o,close:s}){return{handleSubmit:()=>{e&&t(),n(),r(i)},handleToggleVoice:()=>{e?t():(a(``),o())},handleClose:()=>{e&&t(),s()}}}var lU=64;function uU(e,t={}){let{enabled:n=!0,behavior:r=`smooth`}=t,i=(0,H.useRef)(null),a=(0,H.useRef)(!0);return(0,H.useEffect)(()=>{let e=i.current;if(!e)return;let t=()=>{a.current=e.scrollHeight-e.scrollTop-e.clientHeight<=lU},n=()=>{t()};return e.addEventListener(`scroll`,n),()=>e.removeEventListener(`scroll`,n)},[]),(0,H.useEffect)(()=>{if(!n||!a.current)return;let e=i.current;if(!e)return;let t=()=>{let t=globalThis.matchMedia?.(`(prefers-reduced-motion: reduce)`)?.matches?`auto`:r;requestAnimationFrame(()=>{let n=Math.max(0,e.scrollHeight-e.clientHeight);e.scrollTo({top:n,behavior:t})})};requestAnimationFrame(()=>requestAnimationFrame(t))},e),i}var dU=JH({mutationKey:[`genai`,`login`],mutationFn:async({serviceAccount:e,serviceKey:t})=>qH.loginToGenai(e,t)}),fU=new pE(`useGenaiLogin`),pU=null,mU=null;function hU(e=!1){let t=MH(),{mutateAsync:n}=dU(),[r,i]=(0,H.useState)(!1),[a,o]=(0,H.useState)(null),[s,c]=(0,H.useState)(null),[l,u]=(0,H.useState)(null);return(0,H.useEffect)(()=>{(async()=>{let r=gT();if(r&&!e){c(r);return}let a=t.serviceAccount&&t.serviceKey&&t.tenantId?{serviceAccount:t.serviceAccount,serviceKey:t.serviceKey,tenantId:t.tenantId}:null;if(!a)return;u(a);let s=`${a.serviceAccount}::${a.serviceKey}`;if(pU===s&&!e){mU&&c(await mU);return}e&&(pU=null,mU=null),pU=s,i(!0),o(null),mU=(async()=>(await n({serviceAccount:a.serviceAccount,serviceKey:a.serviceKey})).access_token??null)();try{c(await mU)}catch(e){fU.error(`GenAI login failed`,{error:e instanceof Error?e.message:String(e)}),o(`Failed to authenticate with GenAI service`)}finally{mU=null,i(!1)}})()},[t,n,e]),{isLoggingIn:r,loginError:a,loginToken:s,genaiInit:l}}var gU=JH({mutationKey:[`genai`,`tenant-switch`],mutationFn:async({tenant_id:e,token:t})=>qH.switchTenant(e,t)}),_U=new pE(`useGenaiTenantSwitch`),vU=null,yU=null;function bU(e,t,n=!1){let{mutateAsync:r}=gU(),[i,a]=(0,H.useState)(!1),[o,s]=(0,H.useState)(null),[c,l]=(0,H.useState)(!1);return(0,H.useEffect)(()=>{(async()=>{if(!e||!t)return;let i=gT();if(i&&i!==e&&!n){l(!0);return}if(yU===e&&!n){vU&&(await vU,l(!!gT()));return}n&&(yU=null,vU=null),yU=e,a(!0),s(null),vU=(async()=>{await r({tenant_id:t,token:e})})();try{await vU,l(!0)}catch(e){_U.error(`GenAI tenant switch failed`,{error:e instanceof Error?e.message:String(e)}),s(`Failed to switch tenant`)}finally{vU=null,a(!1)}})()},[e,t,r,n]),{isSwitching:i,switchError:o,hasToken:c}}function xU(e=!1){let{isLoggingIn:t,loginError:n,loginToken:r,genaiInit:i}=hU(e),{isSwitching:a,switchError:o,hasToken:s}=bU(r,i?.tenantId,e);return{isAuthenticating:t||a,authError:n??o,hasToken:s}}function SU(e={}){let{defaultOpen:t=!1,persist:n=!0}=e,[r,i]=Gt({key:n?IT.PANEL_OPEN:`panel-state-${Date.now()}`,defaultValue:t,getInitialValueInEffect:!1}),a=(0,H.useRef)(!1);return(0,H.useEffect)(()=>{r&&!a.current&&e.onOpen&&(a.current=!0,e.onOpen())},[r,e.onOpen]),(0,H.useEffect)(()=>{let e=document.querySelector(`main`)||document.querySelector(`.main-content`)||document.body;return r?e?.classList.add(`panel-open`):(e?.classList.remove(`panel-open`),e?.style.removeProperty(`margin-right`)),()=>{e?.classList.remove(`panel-open`),e?.style.removeProperty(`margin-right`)}},[r]),{isOpen:r,open:(0,H.useCallback)(async()=>{i(!0),e.onOpen&&!a.current&&(a.current=!0,await e.onOpen())},[i,e.onOpen]),close:(0,H.useCallback)(()=>{i(!1)},[i]),toggle:(0,H.useCallback)(()=>{i(e=>!e)},[i]),setOpen:(0,H.useCallback)(e=>{i(e)},[i])}}function CU({runtime:e,uiOptions:t}){let n=e.forceReAuth,{isAuthenticating:r,hasToken:i}=xU(n),{panelWidth:a,panelHeight:o,panelHeaderHeight:s,panelTopOffset:c,zIndex:l,fabPosition:u,fabButtonLabel:d,panelTitle:f}=sU(t),p=(0,H.useRef)(!1),{messages:m,composerText:h,setComposerText:g,isLoading:_,error:v,sendMessage:y,sendInitialMessage:b,canSend:x}=ZH(),{actions:S,handleActionClick:C}=QH(m,y),{runtimeInfo:w,refreshRuntimeInfo:T}=nU(),{isOpen:E,open:D,close:O}=SU({defaultOpen:!1,persist:!0,onOpen:async()=>{p.current||(p.current=!0,await T())}});(0,H.useEffect)(()=>{(async()=>{p.current&&E&&!r&&i&&(await b(),p.current=!1)})()},[E,r,i,b]);let k=uU([m.length,_]),{isListening:A,isSupported:j,startListening:M,stopListening:N,reset:P}=iU({lang:rU(),continuous:!0,pauseOnSubmit:!0,onTextChange:g}),{panelResizableWidth:ee,actualWidth:F,shellGap:I,floatingTop:te,floatingHeight:ne,floatingMaxHeight:re}=tU(t,a,E,o,c),{handleSubmit:ie,handleToggleVoice:L,handleClose:ae}=cU({isListening:A,stopListening:N,reset:P,sendMessage:y,composerText:h,setComposerText:g,startListening:M,close:O});return(0,U.jsxs)(U.Fragment,{children:[!E&&(0,U.jsx)(lM,{onClick:()=>void D(),zIndex:l,position:u,label:d}),E&&(0,U.jsx)(jH,{visible:!0,onClose:ae,messages:m,composerText:h,onComposerTextChange:g,isLoading:_,error:v,canSend:x,onSubmit:ie,actions:S,onActionClick:C,isListening:A,isVoiceSupported:j,onToggleVoice:L,panelTitle:f,runtimeInfo:w,scrollViewportRef:k,actualWidth:F,floatingTop:te,floatingHeight:ne,floatingMaxHeight:re,shellGap:I,panelHeaderHeight:s,panelResizableWidth:ee,zIndex:l})]})}function wU(e){return(0,U.jsx)(CU,{...e})}function TU(e,t){if(typeof e==`function`){e(t);return}e&&(e.current=t)}function EU(e){return{url:{app:e.app??``,api:e.api??``,apiPaths:{crm:``,uiAuthz:``}},keycloak:{url:``,realm:``,clientId:``},features:{enableThemeManager:!0}}}var DU=(0,H.forwardRef)((e,t)=>{let{config:n,runtime:r,uiOptions:i,className:a,style:o,rootElement:s}=e,c=(0,H.useRef)(null),l=EU(n);Fe.locale||Fe.activate(`en`),wE(l,n);let u=(0,H.useMemo)(()=>Kj({themeName:i?.themeName}),[i?.themeName]);return(0,U.jsx)(rM,{appConfig:l,config:n,runtime:r,theme:(0,H.useMemo)(()=>i?.theme?Hr(u,i.theme):u,[i?.theme,u]),rootElement:s??c.current,children:(0,U.jsx)(`div`,{className:a,ref:e=>{c.current=e,TU(t,e)},style:o,children:(0,U.jsx)(wU,{config:n,runtime:r,uiOptions:i})})})});DU.displayName=`Widget`;var OU=`:root,
403
403
  :host {
404
404
  color-scheme: var(--mantine-color-scheme);
405
405
  }
@@ -8688,4 +8688,4 @@ fieldset:disabled .m_38aeed47:where(:not([data-inverted])),
8688
8688
  @use '../internal/styles/font' as *;\r
8689
8689
  @use '../internal/styles/variables' as *;\r
8690
8690
  @use '../internal/styles/_mantine.scss' as *;\r
8691
- `,jU=`data-widget-mount-root`,MU=`data-widget-style-root`,NU=`data-widget-adopted-style-root`;function PU(e){if(typeof e!=`string`)return e;let t=document.querySelector(e);if(!t)throw Error(`Unable to find widget mount target: ${e}`);return t}function FU(e,t){return e.shadowRoot??e.attachShadow({mode:t})}function IU(e,t){let n=e.querySelector(`style[${MU}]`);return n||(n=document.createElement(`style`),n.setAttribute(MU,`true`)),n.textContent!==t&&(n.textContent=t),e.append(n),n}function LU(e,t){if(e instanceof HTMLLinkElement)return e.href;let n=e.getAttribute(`data-vite-dev-id`);if(n)return n;let r=e.getAttribute(`nonce`);return r?`nonce:${r}:${t}`:`style-index:${t}`}function RU(e){let t=Array.from(document.querySelectorAll(`style, link[rel="stylesheet"]`)),n=new Set;t.forEach((t,r)=>{let i=LU(t,r);n.add(i);let a=`${t.tagName.toLowerCase()}[${NU}="${i}"]`,o=e.querySelector(a);if(t instanceof HTMLLinkElement){let n=o instanceof HTMLLinkElement?o:document.createElement(`link`);n.setAttribute(NU,i),n.rel=`stylesheet`,n.href=t.href,o||e.append(n);return}let s=o instanceof HTMLStyleElement?o:document.createElement(`style`);s.setAttribute(NU,i),s.textContent!==t.textContent&&(s.textContent=t.textContent),o||e.append(s)}),e.querySelectorAll(`style[${NU}], link[${NU}]`).forEach(e=>{let t=e.getAttribute(NU);(!t||!n.has(t))&&e.remove()})}function zU(e){let t=e.querySelector(`div[${jU}]`);return t||(t=document.createElement(`div`),t.setAttribute(jU,`true`),e.append(t)),t}function BU(e,t,n){let{target:r,mode:i,styles:a,...o}=n;e.render((0,U.jsx)(kU,{...o,rootElement:t}))}function VU(e){let t=PU(e.target),n=FU(t,e.mode??`open`),r=zU(n),i=(0,S.createRoot)(r),a=e;return RU(n),IU(n,a.styles??AU),BU(i,t,a),T(t,C,{runtime:a.runtime}),{host:t,shadowRoot:n,update(e){a={...a,...e},RU(n),IU(n,a.styles??AU),BU(i,t,a)},unmount(){i.unmount(),r.remove(),T(t,w,{runtime:a.runtime})}}}var HU=`bstp-agent-widget`;function UU(e={}){return class extends HTMLElement{constructor(...t){super(...t),this.mountedWidget=null,this.propertyOptions={...e}}get options(){return this.propertyOptions}set options(e){this.propertyOptions={...this.propertyOptions,...e},this.syncWidget()}connectedCallback(){this.syncWidget()}disconnectedCallback(){this.mountedWidget?.unmount(),this.mountedWidget=null}update(e){this.propertyOptions={...this.propertyOptions,...e},this.syncWidget()}syncWidget(){if(!this.isConnected)return;let t={...e,...this.propertyOptions};if(!(!t.config||!t.runtime)){if(!this.mountedWidget){this.mountedWidget=VU({target:this,config:t.config,runtime:t.runtime,uiOptions:t.uiOptions,mode:t.mode,styles:t.styles});return}this.mountedWidget.update(t)}}}}function WU(e={}){let{tagName:t=HU,...n}=e,r=customElements.get(t);if(r)return r;let i=UU(n);return customElements.define(t,i),i}var{APP_INITIALIZER:GU,InjectionToken:KU,makeEnvironmentProviders:qU}=u,JU=new KU(`WIDGET_ELEMENT_CONFIG`);function YU(e={}){typeof customElements>`u`||WU(e)}function XU(){let e=u.provideAppInitializer;return typeof e==`function`?e(()=>{YU(u.inject(JU,{optional:!0})??{})}):{provide:GU,multi:!0,useFactory:e=>()=>{YU(e??{})},deps:[JU]}}function ZU(e={}){return qU([{provide:JU,useValue:e},XU()])}function QU(e){return e?.tagName??`bstp-agent-widget`}exports.WIDGET_ELEMENT_CONFIG=JU,exports.getWidgetElementTagName=QU,exports.provideWidgetElement=ZU;
8691
+ `,kU=`data-widget-mount-root`,AU=`data-widget-style-root`,jU=`data-widget-adopted-style-root`;function MU(e){if(typeof e!=`string`)return e;let t=document.querySelector(e);if(!t)throw Error(`Unable to find widget mount target: ${e}`);return t}function NU(e,t){return e.shadowRoot??e.attachShadow({mode:t})}function PU(e,t){let n=e.querySelector(`style[${AU}]`);return n||(n=document.createElement(`style`),n.setAttribute(AU,`true`)),n.textContent!==t&&(n.textContent=t),e.append(n),n}function FU(e,t){if(e instanceof HTMLLinkElement)return e.href;let n=e.getAttribute(`data-vite-dev-id`);if(n)return n;let r=e.getAttribute(`nonce`);return r?`nonce:${r}:${t}`:`style-index:${t}`}function IU(e){let t=Array.from(document.querySelectorAll(`style, link[rel="stylesheet"]`)),n=new Set;t.forEach((t,r)=>{let i=FU(t,r);n.add(i);let a=`${t.tagName.toLowerCase()}[${jU}="${i}"]`,o=e.querySelector(a);if(t instanceof HTMLLinkElement){let n=o instanceof HTMLLinkElement?o:document.createElement(`link`);n.setAttribute(jU,i),n.rel=`stylesheet`,n.href=t.href,o||e.append(n);return}let s=o instanceof HTMLStyleElement?o:document.createElement(`style`);s.setAttribute(jU,i),s.textContent!==t.textContent&&(s.textContent=t.textContent),o||e.append(s)}),e.querySelectorAll(`style[${jU}], link[${jU}]`).forEach(e=>{let t=e.getAttribute(jU);(!t||!n.has(t))&&e.remove()})}function LU(e){let t=e.querySelector(`div[${kU}]`);return t||(t=document.createElement(`div`),t.setAttribute(kU,`true`),e.append(t)),t}function RU(e,t,n){let{target:r,mode:i,styles:a,...o}=n;e.render((0,U.jsx)(DU,{...o,rootElement:t}))}function zU(e){queueMicrotask(()=>{e.host.isConnected&&IU(e)})}function BU(e){let t=MU(e.target),n=NU(t,e.mode??`open`),r=LU(n),i=(0,S.createRoot)(r),a=e;return IU(n),PU(n,a.styles??OU),RU(i,t,a),zU(n),T(t,C,{runtime:a.runtime}),{host:t,shadowRoot:n,update(e){a={...a,...e},IU(n),PU(n,a.styles??OU),RU(i,t,a),zU(n)},unmount(){i.unmount(),r.remove(),T(t,w,{runtime:a.runtime})}}}var VU=`bstp-agent-widget`;function HU(e={}){return class extends HTMLElement{constructor(...t){super(...t),this.mountedWidget=null,this.propertyOptions={...e}}get options(){return this.propertyOptions}set options(e){this.propertyOptions={...this.propertyOptions,...e},this.syncWidget()}connectedCallback(){this.syncWidget()}disconnectedCallback(){this.mountedWidget?.unmount(),this.mountedWidget=null}update(e){this.propertyOptions={...this.propertyOptions,...e},this.syncWidget()}syncWidget(){if(!this.isConnected)return;let t={...e,...this.propertyOptions};if(!(!t.config||!t.runtime)){if(!this.mountedWidget){this.mountedWidget=BU({target:this,config:t.config,runtime:t.runtime,uiOptions:t.uiOptions,mode:t.mode,styles:t.styles});return}this.mountedWidget.update(t)}}}}function UU(e={}){let{tagName:t=VU,...n}=e,r=customElements.get(t);if(r)return r;let i=HU(n);return customElements.define(t,i),i}var{APP_INITIALIZER:WU,InjectionToken:GU,makeEnvironmentProviders:KU}=u,qU=new GU(`WIDGET_ELEMENT_CONFIG`);function JU(e={}){typeof customElements>`u`||UU(e)}function YU(){let e=u.provideAppInitializer;return typeof e==`function`?e(()=>{JU(u.inject(qU,{optional:!0})??{})}):{provide:WU,multi:!0,useFactory:e=>()=>{JU(e??{})},deps:[qU]}}function XU(e={}){return KU([{provide:qU,useValue:e},YU()])}function ZU(e){return e?.tagName??`bstp-agent-widget`}exports.WIDGET_ELEMENT_CONFIG=qU,exports.getWidgetElementTagName=ZU,exports.provideWidgetElement=XU;