@sisense/sdk-ui 2.22.0 → 2.23.0

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 (183) hide show
  1. package/dist/ai.cjs +17 -17
  2. package/dist/ai.js +57 -57
  3. package/dist/analytics-composer/node.cjs +1 -1
  4. package/dist/analytics-composer/node.js +2177 -1176
  5. package/dist/analytics-composer.cjs +47 -47
  6. package/dist/analytics-composer.js +135 -131
  7. package/dist/dimensions-2t18RSZC.cjs +1 -0
  8. package/dist/dimensions-C0BmtTH2.js +204 -0
  9. package/dist/execute-query-CHYTupEo.js +5866 -0
  10. package/dist/execute-query-DmAyVFF5.cjs +1 -0
  11. package/dist/{index-kxX21arA.js → index-DCAC0mJe.js} +18 -1
  12. package/dist/{index-NyouhE_A.cjs → index-Dx6wvLd3.cjs} +1 -1
  13. package/dist/index.cjs +335 -322
  14. package/dist/index.js +15230 -15097
  15. package/dist/index.umd.js +687 -634
  16. package/dist/packages/sdk-ui/src/domains/dashboarding/components/editable-layout/const.d.ts +1 -0
  17. package/dist/packages/sdk-ui/src/domains/dashboarding/components/editable-layout/smart-pointer-sensor.d.ts +17 -0
  18. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/get-dashboard-model.d.ts +2 -1
  19. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/types.d.ts +24 -2
  20. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/utils.d.ts +2 -1
  21. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/use-dashboard-persistence.d.ts +2 -1
  22. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/jtd/jtd-types.d.ts +1 -1
  23. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/rename-widget/use-widget-renaming.d.ts +34 -0
  24. package/dist/packages/sdk-ui/src/domains/dashboarding/types.d.ts +23 -1
  25. package/dist/packages/sdk-ui/src/domains/dashboarding/use-dashboard-theme.d.ts +1 -1
  26. package/dist/packages/sdk-ui/src/domains/data-browser/add-filter-popover/add-filter-data-browser.d.ts +2 -1
  27. package/dist/packages/sdk-ui/src/domains/data-browser/data-schema-browser/data-schema-browser.d.ts +2 -1
  28. package/dist/packages/sdk-ui/src/domains/data-browser/dimensions-browser/types.d.ts +9 -1
  29. package/dist/packages/sdk-ui/src/domains/formulas/fetch-formula.d.ts +1 -1
  30. package/dist/packages/sdk-ui/src/domains/query-execution/core/execute-query.d.ts +1 -1
  31. package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-query-by-widget-id/use-execute-query-by-widget-id.d.ts +1 -1
  32. package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-query-cache/use-query-cache.d.ts +2 -1
  33. package/dist/packages/sdk-ui/src/domains/visualizations/components/boxplot-chart/boxplot-utils.d.ts +1 -1
  34. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/helpers/get-load-data-function.d.ts +1 -1
  35. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/helpers/data-loading.d.ts +1 -1
  36. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/types.d.ts +1 -1
  37. package/dist/packages/sdk-ui/src/domains/widgets/change-events.d.ts +73 -0
  38. package/dist/packages/sdk-ui/src/domains/widgets/components/chart-widget/types.d.ts +12 -2
  39. package/dist/packages/sdk-ui/src/domains/widgets/components/pivot-table-widget/types.d.ts +12 -2
  40. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-dashboard-filters.d.ts +3 -1
  41. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-data-options.d.ts +1 -1
  42. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/types.d.ts +1 -1
  43. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/utils.d.ts +3 -2
  44. package/dist/packages/sdk-ui/src/domains/widgets/event-to-delta.d.ts +17 -0
  45. package/dist/packages/sdk-ui/src/domains/widgets/helpers/header-menu-utils.d.ts +14 -4
  46. package/dist/packages/sdk-ui/src/domains/widgets/helpers/index.d.ts +1 -0
  47. package/dist/packages/sdk-ui/src/domains/widgets/hooks/use-title-renaming.d.ts +27 -0
  48. package/dist/packages/sdk-ui/src/domains/widgets/hooks/use-widget-header-management.d.ts +28 -0
  49. package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-container/widget-container.d.ts +3 -1
  50. package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/types.d.ts +31 -0
  51. package/dist/packages/sdk-ui/src/domains/widgets/shared/widget-header/widget-header.d.ts +3 -1
  52. package/dist/packages/sdk-ui/src/infra/api/rest-api.d.ts +4 -0
  53. package/dist/packages/sdk-ui/src/infra/api/types/dashboard-dto.d.ts +1 -1
  54. package/dist/packages/sdk-ui/src/infra/app/client-application.d.ts +5 -231
  55. package/dist/packages/sdk-ui/src/infra/app/helpers.d.ts +16 -0
  56. package/dist/packages/sdk-ui/src/infra/app/settings/settings.d.ts +1 -1
  57. package/dist/packages/sdk-ui/src/infra/app/settings/types/deployment-props.d.ts +3 -0
  58. package/dist/packages/sdk-ui/src/infra/app/settings/types/features.d.ts +2 -1
  59. package/dist/packages/sdk-ui/src/infra/app/types.d.ts +236 -0
  60. package/dist/packages/sdk-ui/src/infra/contexts/sisense-context/sisense-context.d.ts +1 -1
  61. package/dist/packages/sdk-ui/src/infra/contexts/theme-provider/theme-context.d.ts +2 -1
  62. package/dist/packages/sdk-ui/src/infra/decorators/component-decorators/with-tracking/with-tracking.d.ts +1 -1
  63. package/dist/packages/sdk-ui/src/infra/decorators/hook-decorators/with-tracking.d.ts +1 -1
  64. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/de-de.d.ts +17 -0
  65. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/en-us.d.ts +17 -0
  66. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-ar.d.ts +17 -0
  67. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-es.d.ts +17 -0
  68. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/fr-fr.d.ts +17 -0
  69. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/it-it.d.ts +17 -0
  70. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ja-jp.d.ts +17 -0
  71. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ko-kr.d.ts +17 -0
  72. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/nl-nl.d.ts +17 -0
  73. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/pt-br.d.ts +17 -0
  74. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ru-ru.d.ts +17 -0
  75. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/tr-tr.d.ts +17 -0
  76. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/zh-cn.d.ts +17 -0
  77. package/dist/packages/sdk-ui/src/infra/translation/resources/en.d.ts +17 -0
  78. package/dist/packages/sdk-ui/src/infra/translation/resources/index.d.ts +34 -0
  79. package/dist/packages/sdk-ui/src/modules/ai/use-get-nlq-result.d.ts +1 -0
  80. package/dist/packages/sdk-ui/src/modules/ai/use-get-query-recommendations.d.ts +1 -0
  81. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/axis-type-detection.d.ts +17 -0
  82. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/chart-type-schemas.d.ts +37 -0
  83. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/index.d.ts +9 -0
  84. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/translate-data-options.d.ts +9 -0
  85. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/helpers/validate-chart-json.d.ts +19 -0
  86. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/translate-chart-from-json.d.ts +42 -0
  87. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/chart/translate-chart-to-json.d.ts +41 -0
  88. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/dimensions/translate-dimensions-from-json.d.ts +11 -0
  89. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/dimensions/translate-dimensions-to-json.d.ts +22 -0
  90. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-filters-from-json.d.ts → constructs/filters/translate-filters-from-json.d.ts} +2 -2
  91. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-filters-to-json.d.ts → constructs/filters/translate-filters-to-json.d.ts} +1 -1
  92. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-measures-from-json.d.ts → constructs/measures/translate-measures-from-json.d.ts} +4 -4
  93. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/constructs/measures/translate-measures-to-json.d.ts +22 -0
  94. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/index.d.ts +8 -3
  95. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/helpers/index.d.ts +7 -0
  96. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/helpers/translate-data-options.d.ts +14 -0
  97. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/helpers/validate-pivot-table-json.d.ts +19 -0
  98. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/translate-pivot-table-from-json.d.ts +12 -0
  99. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/pivot-table/translate-pivot-table-to-json.d.ts +12 -0
  100. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/constants.d.ts +8 -0
  101. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-query-from-json.d.ts → query/translate-query-from-json.d.ts} +3 -3
  102. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-query-to-jaql.d.ts → query/translate-query-to-jaql.d.ts} +1 -1
  103. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{translate-query-to-json.d.ts → query/translate-query-to-json.d.ts} +2 -2
  104. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/adapters.d.ts +19 -0
  105. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/index.d.ts +9 -0
  106. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/translate-axis-from-json.d.ts +24 -0
  107. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/data-options/translate-axis-to-json.d.ts +18 -0
  108. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/custom-formula/process-custom-formula.d.ts +1 -1
  109. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/custom-formula/validate-custom-formula.d.ts +13 -0
  110. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/execute-function.d.ts +1 -1
  111. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/factory-function-processors.d.ts +1 -1
  112. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/factory-function-schemas.d.ts +1 -1
  113. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/filter-processors.d.ts +1 -1
  114. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/expression/formula-function-schemas.d.ts +25 -0
  115. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/process-arg.d.ts +1 -1
  116. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{process-function → shared/expression}/process-node.d.ts +1 -1
  117. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/attribute-helpers.d.ts +50 -0
  118. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/fuzzy-match.d.ts +16 -0
  119. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/{parse-compose-code.d.ts → shared/utils/parse-compose-code.d.ts} +1 -1
  120. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/schema-index.d.ts +49 -0
  121. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/translation-helpers.d.ts +31 -0
  122. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/types.d.ts +115 -4
  123. package/dist/packages/sdk-ui/src/modules/analytics-composer/types.d.ts +6 -6
  124. package/dist/packages/sdk-ui/src/props.d.ts +1 -1
  125. package/dist/packages/sdk-ui/src/public-api/alpha.d.ts +1 -1
  126. package/dist/packages/sdk-ui/src/public-api/beta.d.ts +1 -1
  127. package/dist/packages/sdk-ui/src/public-api/internal.d.ts +8 -6
  128. package/dist/packages/sdk-ui/src/public-api/public.d.ts +1 -1
  129. package/dist/packages/sdk-ui/src/public-api/sisense-internal.d.ts +12 -5
  130. package/dist/packages/sdk-ui/src/shared/components/grouped-items-browser/types.d.ts +7 -1
  131. package/dist/packages/sdk-ui/src/shared/components/inline-text-editor/inline-text-editor.d.ts +26 -0
  132. package/dist/packages/sdk-ui/src/shared/components/inline-text-editor/use-blur-on-pointer-down-outside.d.ts +11 -0
  133. package/dist/packages/sdk-ui/src/shared/components/loading-indicator.d.ts +2 -1
  134. package/dist/packages/sdk-ui/src/shared/components/quota-notification/quota-notification.d.ts +2 -2
  135. package/dist/packages/sdk-ui/src/shared/hooks/use-app-settings.d.ts +2 -1
  136. package/dist/packages/sdk-ui/src/shared/hooks/use-quota-notification.d.ts +4 -4
  137. package/dist/packages/sdk-ui/src/shared/hooks/use-should-load.d.ts +1 -1
  138. package/dist/packages/sdk-ui/src/shared/hooks/use-with-change-detection.d.ts +5 -5
  139. package/dist/packages/sdk-ui/src/types.d.ts +3 -3
  140. package/dist/{quota-notification-D6oMJal8.js → quota-notification-CVl0isIV.js} +17901 -16770
  141. package/dist/quota-notification-RAaHp-eO.cjs +713 -0
  142. package/dist/translations/de-de.cjs +1 -1
  143. package/dist/translations/de-de.js +19 -2
  144. package/dist/translations/en-us.cjs +1 -1
  145. package/dist/translations/en-us.js +1 -1
  146. package/dist/translations/es-ar.cjs +1 -1
  147. package/dist/translations/es-ar.js +19 -2
  148. package/dist/translations/es-es.cjs +1 -1
  149. package/dist/translations/es-es.js +19 -2
  150. package/dist/translations/fr-fr.cjs +1 -1
  151. package/dist/translations/fr-fr.js +19 -2
  152. package/dist/translations/it-it.cjs +1 -1
  153. package/dist/translations/it-it.js +19 -2
  154. package/dist/translations/ja-jp.cjs +1 -1
  155. package/dist/translations/ja-jp.js +19 -2
  156. package/dist/translations/ko-kr.cjs +1 -1
  157. package/dist/translations/ko-kr.js +19 -2
  158. package/dist/translations/nl-nl.cjs +1 -1
  159. package/dist/translations/nl-nl.js +19 -2
  160. package/dist/translations/pt-br.cjs +1 -1
  161. package/dist/translations/pt-br.js +19 -2
  162. package/dist/translations/ru-ru.cjs +1 -1
  163. package/dist/translations/ru-ru.js +19 -2
  164. package/dist/translations/tr-tr.cjs +1 -1
  165. package/dist/translations/tr-tr.js +19 -2
  166. package/dist/translations/zh-cn.cjs +1 -1
  167. package/dist/translations/zh-cn.js +19 -2
  168. package/dist/{types-ixSwJkxM.js → types-B96nVbgX.js} +1 -1
  169. package/dist/{types-CoY6F8Ma.cjs → types-DZ4vWh8j.cjs} +1 -1
  170. package/dist/{utils-C8YMrOdw.cjs → utils-CgV-jWWQ.cjs} +33 -33
  171. package/dist/{utils-BP-BglHE.js → utils-ChqSLRbz.js} +3742 -3774
  172. package/dist/{widget-composer-DI4sHaNe.cjs → widget-composer-Blul90Zb.cjs} +1 -1
  173. package/dist/{widget-composer-CUUFoCb9.js → widget-composer-Cf_CN3Ux.js} +8 -8
  174. package/package.json +10 -8
  175. package/dist/dimensions-BiLyFpCg.js +0 -202
  176. package/dist/dimensions-X4_igtmO.cjs +0 -1
  177. package/dist/execute-query-BEeqqDl6.js +0 -5795
  178. package/dist/execute-query-DJDE0zRU.cjs +0 -1
  179. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/common.d.ts +0 -84
  180. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-dimensions-from-json.d.ts +0 -12
  181. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-dimensions-to-json.d.ts +0 -13
  182. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/translate-measures-to-json.d.ts +0 -13
  183. package/dist/quota-notification-z3dv2KoH.cjs +0 -672
@@ -0,0 +1,713 @@
1
+ "use strict";var j3=Object.defineProperty,V3=Object.defineProperties;var G3=Object.getOwnPropertyDescriptors;var du=Object.getOwnPropertySymbols;var ry=Object.prototype.hasOwnProperty,ny=Object.prototype.propertyIsEnumerable;var gn=Math.pow,kh=(e,t,r)=>t in e?j3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t)=>{for(var r in t||(t={}))ry.call(t,r)&&kh(e,r,t[r]);if(du)for(var r of du(t))ny.call(t,r)&&kh(e,r,t[r]);return e},$=(e,t)=>V3(e,G3(t));var hu=e=>typeof e=="symbol"?e:e+"",Ce=(e,t)=>{var r={};for(var n in e)ry.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&du)for(var n of du(e))t.indexOf(n)<0&&ny.call(e,n)&&(r[n]=e[n]);return r};var Ze=(e,t,r)=>kh(e,typeof t!="symbol"?t+"":t,r);var Yt=(e,t,r)=>new Promise((n,i)=>{var a=u=>{try{s(r.next(u))}catch(c){i(c)}},o=u=>{try{s(r.throw(u))}catch(c){i(c)}},s=u=>u.done?n(u.value):Promise.resolve(u.value).then(a,o);s((r=r.apply(e,t)).next())});const k=require("react"),I=require("./execute-query-DmAyVFF5.cjs"),_=require("./utils-CgV-jWWQ.cjs"),fe=require("react/jsx-runtime"),Rr=require("react-dom");function O_(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Z=O_(k),U3=O_(Rr);function Fs(){return Fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fs.apply(this,arguments)}function Y3(e){let{i18n:t,defaultNS:r,children:n}=e;const i=k.useMemo(()=>({i18n:t,defaultNS:r}),[t,r]);return k.createElement(_.I18nContext.Provider,{value:i},n)}var Df={exports:{}},Qe={};/** @license React v16.13.1
2
+ * react-is.production.min.js
3
+ *
4
+ * Copyright (c) Facebook, Inc. and its affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */var iy;function q3(){if(iy)return Qe;iy=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function E(P){if(typeof P=="object"&&P!==null){var R=P.$$typeof;switch(R){case t:switch(P=P.type,P){case u:case c:case n:case a:case i:case f:return P;default:switch(P=P&&P.$$typeof,P){case s:case h:case b:case g:case o:return P;default:return R}}case r:return R}}}function S(P){return E(P)===c}return Qe.AsyncMode=u,Qe.ConcurrentMode=c,Qe.ContextConsumer=s,Qe.ContextProvider=o,Qe.Element=t,Qe.ForwardRef=h,Qe.Fragment=n,Qe.Lazy=b,Qe.Memo=g,Qe.Portal=r,Qe.Profiler=a,Qe.StrictMode=i,Qe.Suspense=f,Qe.isAsyncMode=function(P){return S(P)||E(P)===u},Qe.isConcurrentMode=S,Qe.isContextConsumer=function(P){return E(P)===s},Qe.isContextProvider=function(P){return E(P)===o},Qe.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===t},Qe.isForwardRef=function(P){return E(P)===h},Qe.isFragment=function(P){return E(P)===n},Qe.isLazy=function(P){return E(P)===b},Qe.isMemo=function(P){return E(P)===g},Qe.isPortal=function(P){return E(P)===r},Qe.isProfiler=function(P){return E(P)===a},Qe.isStrictMode=function(P){return E(P)===i},Qe.isSuspense=function(P){return E(P)===f},Qe.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===n||P===c||P===a||P===i||P===f||P===p||typeof P=="object"&&P!==null&&(P.$$typeof===b||P.$$typeof===g||P.$$typeof===o||P.$$typeof===s||P.$$typeof===h||P.$$typeof===w||P.$$typeof===C||P.$$typeof===M||P.$$typeof===v)},Qe.typeOf=E,Qe}var Je={};/** @license React v16.13.1
9
+ * react-is.development.js
10
+ *
11
+ * Copyright (c) Facebook, Inc. and its affiliates.
12
+ *
13
+ * This source code is licensed under the MIT license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */var ay;function X3(){return ay||(ay=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function E(J){return typeof J=="string"||typeof J=="function"||J===n||J===c||J===a||J===i||J===f||J===p||typeof J=="object"&&J!==null&&(J.$$typeof===b||J.$$typeof===g||J.$$typeof===o||J.$$typeof===s||J.$$typeof===h||J.$$typeof===w||J.$$typeof===C||J.$$typeof===M||J.$$typeof===v)}function S(J){if(typeof J=="object"&&J!==null){var _e=J.$$typeof;switch(_e){case t:var ve=J.type;switch(ve){case u:case c:case n:case a:case i:case f:return ve;default:var Ee=ve&&ve.$$typeof;switch(Ee){case s:case h:case b:case g:case o:return Ee;default:return _e}}case r:return _e}}}var P=u,R=c,N=s,B=o,U=t,K=h,Q=n,O=b,F=g,q=r,j=a,V=i,W=f,G=!1;function te(J){return G||(G=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(J)||S(J)===u}function z(J){return S(J)===c}function Y(J){return S(J)===s}function ie(J){return S(J)===o}function ne(J){return typeof J=="object"&&J!==null&&J.$$typeof===t}function re(J){return S(J)===h}function oe(J){return S(J)===n}function se(J){return S(J)===b}function de(J){return S(J)===g}function ce(J){return S(J)===r}function ge(J){return S(J)===a}function Te(J){return S(J)===i}function ye(J){return S(J)===f}Je.AsyncMode=P,Je.ConcurrentMode=R,Je.ContextConsumer=N,Je.ContextProvider=B,Je.Element=U,Je.ForwardRef=K,Je.Fragment=Q,Je.Lazy=O,Je.Memo=F,Je.Portal=q,Je.Profiler=j,Je.StrictMode=V,Je.Suspense=W,Je.isAsyncMode=te,Je.isConcurrentMode=z,Je.isContextConsumer=Y,Je.isContextProvider=ie,Je.isElement=ne,Je.isForwardRef=re,Je.isFragment=oe,Je.isLazy=se,Je.isMemo=de,Je.isPortal=ce,Je.isProfiler=ge,Je.isStrictMode=Te,Je.isSuspense=ye,Je.isValidElementType=E,Je.typeOf=S}()),Je}process.env.NODE_ENV==="production"?Df.exports=q3():Df.exports=X3();var k_=Df.exports,Nf={exports:{}};/*
16
+ object-assign
17
+ (c) Sindre Sorhus
18
+ @license MIT
19
+ */var Dh,oy;function Z3(){if(oy)return Dh;oy=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var u=Object.getOwnPropertyNames(o).map(function(h){return o[h]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(h){c[h]=h}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch(h){return!1}}return Dh=i()?Object.assign:function(a,o){for(var s,u=n(a),c,h=1;h<arguments.length;h++){s=Object(arguments[h]);for(var f in s)t.call(s,f)&&(u[f]=s[f]);if(e){c=e(s);for(var p=0;p<c.length;p++)r.call(s,c[p])&&(u[c[p]]=s[c[p]])}}return u},Dh}var Nh,sy;function Ym(){if(sy)return Nh;sy=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Nh=e,Nh}var Lh,ly;function D_(){return ly||(ly=1,Lh=Function.call.bind(Object.prototype.hasOwnProperty)),Lh}var Ih,uy;function K3(){if(uy)return Ih;uy=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ym(),r={},n=D_();e=function(a){var o="Warning: "+a;typeof console!="undefined"&&console.error(o);try{throw new Error(o)}catch(s){}}}function i(a,o,s,u,c){if(process.env.NODE_ENV!=="production"){for(var h in a)if(n(a,h)){var f;try{if(typeof a[h]!="function"){var p=Error((u||"React class")+": "+s+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}f=a[h](o,h,u,s,null,t)}catch(b){f=b}if(f&&!(f instanceof Error)&&e((u||"React class")+": type specification of "+s+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var g=c?c():"";e("Failed "+s+" type: "+f.message+(g!=null?g:""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Ih=i,Ih}var $h,cy;function Q3(){if(cy)return $h;cy=1;var e=k_,t=Z3(),r=Ym(),n=D_(),i=K3(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var u="Warning: "+s;typeof console!="undefined"&&console.error(u);try{throw new Error(u)}catch(c){}});function o(){return null}return $h=function(s,u){var c=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function f(z){var Y=z&&(c&&z[c]||z[h]);if(typeof Y=="function")return Y}var p="<<anonymous>>",g={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:M(),arrayOf:E,element:S(),elementType:P(),instanceOf:R,node:K(),objectOf:B,oneOf:N,oneOfType:U,shape:O,exact:F};function b(z,Y){return z===Y?z!==0||1/z===1/Y:z!==z&&Y!==Y}function v(z,Y){this.message=z,this.data=Y&&typeof Y=="object"?Y:{},this.stack=""}v.prototype=Error.prototype;function w(z){if(process.env.NODE_ENV!=="production")var Y={},ie=0;function ne(oe,se,de,ce,ge,Te,ye){if(ce=ce||p,Te=Te||de,ye!==r){if(u){var J=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw J.name="Invariant Violation",J}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var _e=ce+":"+de;!Y[_e]&&ie<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Te+"` prop on `"+ce+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Y[_e]=!0,ie++)}}return se[de]==null?oe?se[de]===null?new v("The "+ge+" `"+Te+"` is marked as required "+("in `"+ce+"`, but its value is `null`.")):new v("The "+ge+" `"+Te+"` is marked as required in "+("`"+ce+"`, but its value is `undefined`.")):null:z(se,de,ce,ge,Te)}var re=ne.bind(null,!1);return re.isRequired=ne.bind(null,!0),re}function C(z){function Y(ie,ne,re,oe,se,de){var ce=ie[ne],ge=V(ce);if(ge!==z){var Te=W(ce);return new v("Invalid "+oe+" `"+se+"` of type "+("`"+Te+"` supplied to `"+re+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return w(Y)}function M(){return w(o)}function E(z){function Y(ie,ne,re,oe,se){if(typeof z!="function")return new v("Property `"+se+"` of component `"+re+"` has invalid PropType notation inside arrayOf.");var de=ie[ne];if(!Array.isArray(de)){var ce=V(de);return new v("Invalid "+oe+" `"+se+"` of type "+("`"+ce+"` supplied to `"+re+"`, expected an array."))}for(var ge=0;ge<de.length;ge++){var Te=z(de,ge,re,oe,se+"["+ge+"]",r);if(Te instanceof Error)return Te}return null}return w(Y)}function S(){function z(Y,ie,ne,re,oe){var se=Y[ie];if(!s(se)){var de=V(se);return new v("Invalid "+re+" `"+oe+"` of type "+("`"+de+"` supplied to `"+ne+"`, expected a single ReactElement."))}return null}return w(z)}function P(){function z(Y,ie,ne,re,oe){var se=Y[ie];if(!e.isValidElementType(se)){var de=V(se);return new v("Invalid "+re+" `"+oe+"` of type "+("`"+de+"` supplied to `"+ne+"`, expected a single ReactElement type."))}return null}return w(z)}function R(z){function Y(ie,ne,re,oe,se){if(!(ie[ne]instanceof z)){var de=z.name||p,ce=te(ie[ne]);return new v("Invalid "+oe+" `"+se+"` of type "+("`"+ce+"` supplied to `"+re+"`, expected ")+("instance of `"+de+"`."))}return null}return w(Y)}function N(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function Y(ie,ne,re,oe,se){for(var de=ie[ne],ce=0;ce<z.length;ce++)if(b(de,z[ce]))return null;var ge=JSON.stringify(z,function(ye,J){var _e=W(J);return _e==="symbol"?String(J):J});return new v("Invalid "+oe+" `"+se+"` of value `"+String(de)+"` "+("supplied to `"+re+"`, expected one of "+ge+"."))}return w(Y)}function B(z){function Y(ie,ne,re,oe,se){if(typeof z!="function")return new v("Property `"+se+"` of component `"+re+"` has invalid PropType notation inside objectOf.");var de=ie[ne],ce=V(de);if(ce!=="object")return new v("Invalid "+oe+" `"+se+"` of type "+("`"+ce+"` supplied to `"+re+"`, expected an object."));for(var ge in de)if(n(de,ge)){var Te=z(de,ge,re,oe,se+"."+ge,r);if(Te instanceof Error)return Te}return null}return w(Y)}function U(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var Y=0;Y<z.length;Y++){var ie=z[Y];if(typeof ie!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+G(ie)+" at index "+Y+"."),o}function ne(re,oe,se,de,ce){for(var ge=[],Te=0;Te<z.length;Te++){var ye=z[Te],J=ye(re,oe,se,de,ce,r);if(J==null)return null;J.data&&n(J.data,"expectedType")&&ge.push(J.data.expectedType)}var _e=ge.length>0?", expected one of type ["+ge.join(", ")+"]":"";return new v("Invalid "+de+" `"+ce+"` supplied to "+("`"+se+"`"+_e+"."))}return w(ne)}function K(){function z(Y,ie,ne,re,oe){return q(Y[ie])?null:new v("Invalid "+re+" `"+oe+"` supplied to "+("`"+ne+"`, expected a ReactNode."))}return w(z)}function Q(z,Y,ie,ne,re){return new v((z||"React class")+": "+Y+" type `"+ie+"."+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+re+"`.")}function O(z){function Y(ie,ne,re,oe,se){var de=ie[ne],ce=V(de);if(ce!=="object")return new v("Invalid "+oe+" `"+se+"` of type `"+ce+"` "+("supplied to `"+re+"`, expected `object`."));for(var ge in z){var Te=z[ge];if(typeof Te!="function")return Q(re,oe,se,ge,W(Te));var ye=Te(de,ge,re,oe,se+"."+ge,r);if(ye)return ye}return null}return w(Y)}function F(z){function Y(ie,ne,re,oe,se){var de=ie[ne],ce=V(de);if(ce!=="object")return new v("Invalid "+oe+" `"+se+"` of type `"+ce+"` "+("supplied to `"+re+"`, expected `object`."));var ge=t({},ie[ne],z);for(var Te in ge){var ye=z[Te];if(n(z,Te)&&typeof ye!="function")return Q(re,oe,se,Te,W(ye));if(!ye)return new v("Invalid "+oe+" `"+se+"` key `"+Te+"` supplied to `"+re+"`.\nBad object: "+JSON.stringify(ie[ne],null," ")+`
20
+ Valid keys: `+JSON.stringify(Object.keys(z),null," "));var J=ye(de,Te,re,oe,se+"."+Te,r);if(J)return J}return null}return w(Y)}function q(z){switch(typeof z){case"number":case"string":case"undefined":return!0;case"boolean":return!z;case"object":if(Array.isArray(z))return z.every(q);if(z===null||s(z))return!0;var Y=f(z);if(Y){var ie=Y.call(z),ne;if(Y!==z.entries){for(;!(ne=ie.next()).done;)if(!q(ne.value))return!1}else for(;!(ne=ie.next()).done;){var re=ne.value;if(re&&!q(re[1]))return!1}}else return!1;return!0;default:return!1}}function j(z,Y){return z==="symbol"?!0:Y?Y["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Y instanceof Symbol:!1}function V(z){var Y=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":j(Y,z)?"symbol":Y}function W(z){if(typeof z=="undefined"||z===null)return""+z;var Y=V(z);if(Y==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return Y}function G(z){var Y=W(z);switch(Y){case"array":case"object":return"an "+Y;case"boolean":case"date":case"regexp":return"a "+Y;default:return Y}}function te(z){return!z.constructor||!z.constructor.name?p:z.constructor.name}return g.checkPropTypes=i,g.resetWarningCache=i.resetWarningCache,g.PropTypes=g,g},$h}var Fh,dy;function J3(){if(dy)return Fh;dy=1;var e=Ym();function t(){}function r(){}return r.resetWarningCache=t,Fh=function(){function n(o,s,u,c,h,f){if(f!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Fh}if(process.env.NODE_ENV!=="production"){var eP=k_,tP=!0;Nf.exports=Q3()(eP.isElement,tP)}else Nf.exports=J3()();var rP=Nf.exports;const y=_.getDefaultExportFromCjs(rP);function N_(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=N_(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ze(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=N_(e))&&(n&&(n+=" "),n+=t);return n}function Et(e,t,r=void 0){const n={};for(const i in e){const a=e[i];let o="",s=!0;for(let u=0;u<a.length;u+=1){const c=a[u];c&&(o+=(s===!0?"":" ")+t(c),s=!1,r&&r[c]&&(o+=" "+r[c]))}n[i]=o}return n}function nP(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function L_(e,t,r,n){const i=e[t];if(i==null||!Number.isInteger(i)){const a=nP(i);return new RangeError(`Invalid ${n} \`${t}\` of type \`${a}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function I_(e,t,...r){return e[t]===void 0?null:L_(e,t,...r)}function Lf(){return null}I_.isRequired=L_;Lf.isRequired=Lf;const wn=process.env.NODE_ENV==="production"?Lf:I_,hy=e=>e,iP=()=>{let e=hy;return{configure(t){e=t},generate(t){return e(t)},reset(){e=hy}}},aP=iP(),oP={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ht(e,t,r="Mui"){const n=oP[t];return n?`${r}-${n}`:`${aP.generate(e)}-${t}`}function ft(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=ht(e,i,r)}),n}function sP(e){return ht("MuiPagination",e)}ft("MuiPagination",["root","ul","outlined","text"]);function qm({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=Z.useRef(e!==void 0),[a,o]=Z.useState(t),s=i?e:a;if(process.env.NODE_ENV!=="production"){Z.useEffect(()=>{i!==(e!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${n} state of ${r} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
21
+ `))},[n,r,e]);const{current:c}=Z.useRef(t);Z.useEffect(()=>{!i&&!Object.is(c,t)&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
22
+ `))},[JSON.stringify(t)])}const u=Z.useCallback(c=>{i||o(c)},[]);return[s,u]}function lP(e={}){const U=e,{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:i=1,disabled:a=!1,hideNextButton:o=!1,hidePrevButton:s=!1,onChange:u,page:c,showFirstButton:h=!1,showLastButton:f=!1,siblingCount:p=1}=U,g=Ce(U,["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"]),[b,v]=qm({controlled:c,default:i,name:r,state:"page"}),w=(K,Q)=>{c||v(Q),u&&u(K,Q)},C=(K,Q)=>{const O=Q-K+1;return Array.from({length:O},(F,q)=>K+q)},M=C(1,Math.min(t,n)),E=C(Math.max(n-t+1,t+1),n),S=Math.max(Math.min(b-p,n-t-p*2-1),t+2),P=Math.min(Math.max(b+p,t+p*2+2),n-t-1),R=[...h?["first"]:[],...s?[]:["previous"],...M,...S>t+2?["start-ellipsis"]:t+1<n-t?[t+1]:[],...C(S,P),...P<n-t-1?["end-ellipsis"]:n-t>t?[n-t]:[],...E,...o?[]:["next"],...f?["last"]:[]],N=K=>{switch(K){case"first":return 1;case"previous":return b-1;case"next":return b+1;case"last":return n;default:return null}},B=R.map(K=>typeof K=="number"?{onClick:Q=>{w(Q,K)},type:"page",page:K,selected:K===b,disabled:a,"aria-current":K===b?"page":void 0}:{onClick:Q=>{w(Q,N(K))},type:K,page:N(K),selected:!1,disabled:a||!K.includes("ellipsis")&&(K==="next"||K==="last"?b>=n:b<=1)});return T({items:B},g)}function Zn(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}function uP(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Xm(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),uP(e,t,r)}function cP(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function _i(e){if(e.type)return e;if(e.charAt(0)==="#")return _i(cP(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
23
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Zn(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
24
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Zn(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}const dP=e=>{const t=_i(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},fs=(e,t)=>{try{return dP(e)}catch(r){return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function $c(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((i,a)=>a<3?parseInt(i,10):i):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function $_(e){e=_i(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),o=(c,h=(c+r/30)%12)=>i-a*Math.max(Math.min(h-3,9-h,1),-1);let s="rgb";const u=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),$c({type:s,values:u})}function If(e){e=_i(e);let t=e.type==="hsl"||e.type==="hsla"?_i($_(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:gn((r+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function fy(e,t){const r=If(e),n=If(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Tt(e,t){return e=_i(e),t=Xm(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,$c(e)}function fu(e,t,r){try{return Tt(e,t)}catch(n){return e}}function Fc(e,t){if(e=_i(e),t=Xm(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return $c(e)}function ct(e,t,r){try{return Fc(e,t)}catch(n){return e}}function zc(e,t){if(e=_i(e),t=Xm(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return $c(e)}function dt(e,t,r){try{return zc(e,t)}catch(n){return e}}function $f(e,t=.15){return If(e)>.5?Fc(e,t):zc(e,t)}function pu(e,t,r){try{return $f(e,t)}catch(n){return e}}const hP=Z.createContext(),Bc=()=>{const e=Z.useContext(hP);return e!=null?e:!1};function fP(e){return ht("MuiPaginationItem",e)}const hr=ft("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),mo=y.oneOfType([y.func,y.object]);function ni(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function pP(e){const{prototype:t={}}=e;return!!t.isReactComponent}function mP(e,t,r,n,i){const a=e[t],o=i||t;if(a==null||typeof window=="undefined")return null;let s;return typeof a=="function"&&!pP(a)&&(s="Did you accidentally provide a plain function component instead?"),s!==void 0?new Error(`Invalid ${n} \`${o}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Wc=ni(y.elementType,mP);function rc(e){try{return e.matches(":focus-visible")}catch(t){process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
25
+ `))}return!1}function Le(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Zn(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ff={exports:{}},ot={};/**
26
+ * @license React
27
+ * react-is.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var py;function gP(){if(py)return ot;py=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),g=Symbol.for("react.client.reference");function b(v){if(typeof v=="object"&&v!==null){var w=v.$$typeof;switch(w){case e:switch(v=v.type,v){case r:case i:case n:case u:case c:return v;default:switch(v=v&&v.$$typeof,v){case o:case s:case f:case h:return v;case a:return v;default:return w}}case t:return w}}}return ot.ContextConsumer=a,ot.ContextProvider=o,ot.Element=e,ot.ForwardRef=s,ot.Fragment=r,ot.Lazy=f,ot.Memo=h,ot.Portal=t,ot.Profiler=i,ot.StrictMode=n,ot.Suspense=u,ot.SuspenseList=c,ot.isContextConsumer=function(v){return b(v)===a},ot.isContextProvider=function(v){return b(v)===o},ot.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},ot.isForwardRef=function(v){return b(v)===s},ot.isFragment=function(v){return b(v)===r},ot.isLazy=function(v){return b(v)===f},ot.isMemo=function(v){return b(v)===h},ot.isPortal=function(v){return b(v)===t},ot.isProfiler=function(v){return b(v)===i},ot.isStrictMode=function(v){return b(v)===n},ot.isSuspense=function(v){return b(v)===u},ot.isSuspenseList=function(v){return b(v)===c},ot.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===i||v===n||v===u||v===c||v===p||typeof v=="object"&&v!==null&&(v.$$typeof===f||v.$$typeof===h||v.$$typeof===o||v.$$typeof===a||v.$$typeof===s||v.$$typeof===g||v.getModuleId!==void 0)},ot.typeOf=b,ot}var st={};/**
34
+ * @license React
35
+ * react-is.development.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var my;function vP(){return my||(my=1,process.env.NODE_ENV!=="production"&&function(){function e(v){if(typeof v=="object"&&v!==null){var w=v.$$typeof;switch(w){case t:switch(v=v.type,v){case n:case a:case i:case c:case h:return v;default:switch(v=v&&v.$$typeof,v){case s:case u:case p:case f:return v;case o:return v;default:return w}}case r:return w}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),b=Symbol.for("react.client.reference");st.ContextConsumer=o,st.ContextProvider=s,st.Element=t,st.ForwardRef=u,st.Fragment=n,st.Lazy=p,st.Memo=f,st.Portal=r,st.Profiler=a,st.StrictMode=i,st.Suspense=c,st.SuspenseList=h,st.isContextConsumer=function(v){return e(v)===o},st.isContextProvider=function(v){return e(v)===s},st.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},st.isForwardRef=function(v){return e(v)===u},st.isFragment=function(v){return e(v)===n},st.isLazy=function(v){return e(v)===p},st.isMemo=function(v){return e(v)===f},st.isPortal=function(v){return e(v)===r},st.isProfiler=function(v){return e(v)===a},st.isStrictMode=function(v){return e(v)===i},st.isSuspense=function(v){return e(v)===c},st.isSuspenseList=function(v){return e(v)===h},st.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===a||v===i||v===c||v===h||v===g||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===f||v.$$typeof===s||v.$$typeof===o||v.$$typeof===u||v.$$typeof===b||v.getModuleId!==void 0)},st.typeOf=e}()),st}process.env.NODE_ENV==="production"?Ff.exports=gP():Ff.exports=vP();var nc=Ff.exports;function xn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function F_(e){if(Z.isValidElement(e)||nc.isValidElementType(e)||!xn(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=F_(e[r])}),t}function vr(e,t,r={clone:!0}){const n=r.clone?T({},e):e;return xn(e)&&xn(t)&&Object.keys(t).forEach(i=>{Z.isValidElement(t[i])||nc.isValidElementType(t[i])?n[i]=t[i]:xn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&xn(e[i])?n[i]=vr(e[i],t[i],r):r.clone?n[i]=xn(t[i])?F_(t[i]):t[i]:n[i]=t[i]}),n}function Ms(e,t){return t?vr(e,t,{clone:!1}):e}const Ei=process.env.NODE_ENV!=="production"?y.oneOfType([y.number,y.string,y.object,y.array]):{};function yP(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,i)=>{var o,s;const a=/min-width:\s*([0-9.]+)/;return+(((o=n.match(a))==null?void 0:o[1])||0)-+(((s=i.match(a))==null?void 0:s[1])||0)});return r.length?r.reduce((n,i)=>{const a=t[i];return delete n[i],n[i]=a,n},T({},t)):t}function bP(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function _P(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
42
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Zn(18,`(${t})`));return null}const[,n,i]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(i).up(a)}function wP(e){const t=(a,o)=>a.replace("@media",o?`@container ${o}`:"@container");function r(a,o){a.up=(...s)=>t(e.breakpoints.up(...s),o),a.down=(...s)=>t(e.breakpoints.down(...s),o),a.between=(...s)=>t(e.breakpoints.between(...s),o),a.only=(...s)=>t(e.breakpoints.only(...s),o),a.not=(...s)=>{const u=t(e.breakpoints.not(...s),o);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const n={},i=a=>(r(n,a),n);return r(i),$(T({},e),{containerQueries:i})}const Hc={xs:0,sm:600,md:900,lg:1200,xl:1536},gy={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Hc[e]}px)`},xP={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Hc[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Rn(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||gy;return t.reduce((o,s,u)=>(o[a.up(a.keys[u])]=r(t[u]),o),{})}if(typeof t=="object"){const a=n.breakpoints||gy;return Object.keys(t).reduce((o,s)=>{if(bP(a.keys,s)){const u=_P(n.containerQueries?n:xP,s);u&&(o[u]=r(t[s],s))}else if(Object.keys(a.values||Hc).includes(s)){const u=a.up(s);o[u]=r(t[s],s)}else{const u=s;o[u]=t[u]}return o},{})}return r(t)}function z_(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function B_(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function CP(e,...t){const r=z_(e),n=[r,...t].reduce((i,a)=>vr(i,a),{});return B_(Object.keys(r),n)}function TP(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((i,a)=>{a<e.length&&(r[i]=!0)}):n.forEach(i=>{e[i]!=null&&(r[i]=!0)}),r}function MP({values:e,breakpoints:t,base:r}){const n=r||TP(e,t),i=Object.keys(n);if(i.length===0)return e;let a;return i.reduce((o,s,u)=>(Array.isArray(e)?(o[s]=e[u]!=null?e[u]:e[a],a=u):typeof e=="object"?(o[s]=e[s]!=null?e[s]:e[a],a=s):o[s]=e,o),{})}function jc(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function ic(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=jc(e,r)||n,t&&(i=t(i,n,e)),i}function Ht(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=o=>{if(o[t]==null)return null;const s=o[t],u=o.theme,c=jc(u,n)||{};return Rn(o,s,f=>{let p=ic(c,i,f);return f===p&&typeof f=="string"&&(p=ic(c,i,`${t}${f==="default"?"":Le(f)}`,f)),r===!1?p:{[r]:p}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:Ei}:{},a.filterProps=[t],a}function SP(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const EP={m:"margin",p:"padding"},PP={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},AP=SP(e=>{if(e.length>2)if(vy[e])e=vy[e];else return[e];const[t,r]=e.split(""),n=EP[t],i=PP[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),Vc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Gc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],RP=[...Vc,...Gc];function cl(e,t,r,n){var a;const i=(a=jc(e,t,!0))!=null?a:r;return typeof i=="number"||typeof i=="string"?o=>typeof o=="string"?o:(process.env.NODE_ENV!=="production"&&typeof o!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${o}.`),typeof i=="string"?`calc(${o} * ${i})`:i*o):Array.isArray(i)?o=>{if(typeof o=="string")return o;const s=Math.abs(o);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>i.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${s} > ${i.length-1}, you need to add the missing values.`].join(`
43
+ `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
44
+ `)));const u=i[s];return o>=0?u:typeof u=="number"?-u:`-${u}`}:typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
45
+ `)),()=>{})}function Uc(e){return cl(e,"spacing",8,"spacing")}function go(e,t){return typeof t=="string"||t==null?t:e(t)}function OP(e,t){return r=>e.reduce((n,i)=>(n[i]=go(t,r),n),{})}function kP(e,t,r,n){if(!t.includes(r))return null;const i=AP(r),a=OP(i,n),o=e[r];return Rn(e,o,a)}function W_(e,t){const r=Uc(e.theme);return Object.keys(e).map(n=>kP(e,t,n,r)).reduce(Ms,{})}function Nt(e){return W_(e,Vc)}Nt.propTypes=process.env.NODE_ENV!=="production"?Vc.reduce((e,t)=>(e[t]=Ei,e),{}):{};Nt.filterProps=Vc;function Lt(e){return W_(e,Gc)}Lt.propTypes=process.env.NODE_ENV!=="production"?Gc.reduce((e,t)=>(e[t]=Ei,e),{}):{};Lt.filterProps=Gc;process.env.NODE_ENV!=="production"&&RP.reduce((e,t)=>(e[t]=Ei,e),{});function Yc(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?Ms(i,t[a](n)):i,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,i)=>Object.assign(n,i.propTypes),{}):{},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function qr(e){return typeof e!="number"?e:`${e}px solid`}function Jr(e,t){return Ht({prop:e,themeKey:"borders",transform:t})}const DP=Jr("border",qr),NP=Jr("borderTop",qr),LP=Jr("borderRight",qr),IP=Jr("borderBottom",qr),$P=Jr("borderLeft",qr),FP=Jr("borderColor"),zP=Jr("borderTopColor"),BP=Jr("borderRightColor"),WP=Jr("borderBottomColor"),HP=Jr("borderLeftColor"),jP=Jr("outline",qr),VP=Jr("outlineColor"),qc=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=cl(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:go(t,n)});return Rn(e,e.borderRadius,r)}return null};qc.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Ei}:{};qc.filterProps=["borderRadius"];Yc(DP,NP,LP,IP,$P,FP,zP,BP,WP,HP,qc,jP,VP);const Xc=e=>{if(e.gap!==void 0&&e.gap!==null){const t=cl(e.theme,"spacing",8,"gap"),r=n=>({gap:go(t,n)});return Rn(e,e.gap,r)}return null};Xc.propTypes=process.env.NODE_ENV!=="production"?{gap:Ei}:{};Xc.filterProps=["gap"];const Zc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=cl(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:go(t,n)});return Rn(e,e.columnGap,r)}return null};Zc.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Ei}:{};Zc.filterProps=["columnGap"];const Kc=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=cl(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:go(t,n)});return Rn(e,e.rowGap,r)}return null};Kc.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Ei}:{};Kc.filterProps=["rowGap"];const GP=Ht({prop:"gridColumn"}),UP=Ht({prop:"gridRow"}),YP=Ht({prop:"gridAutoFlow"}),qP=Ht({prop:"gridAutoColumns"}),XP=Ht({prop:"gridAutoRows"}),ZP=Ht({prop:"gridTemplateColumns"}),KP=Ht({prop:"gridTemplateRows"}),QP=Ht({prop:"gridTemplateAreas"}),JP=Ht({prop:"gridArea"});Yc(Xc,Zc,Kc,GP,UP,YP,qP,XP,ZP,KP,QP,JP);function Ka(e,t){return t==="grey"?t:e}const eA=Ht({prop:"color",themeKey:"palette",transform:Ka}),tA=Ht({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ka}),rA=Ht({prop:"backgroundColor",themeKey:"palette",transform:Ka});Yc(eA,tA,rA);function Ar(e){return e<=1&&e!==0?`${e*100}%`:e}const nA=Ht({prop:"width",transform:Ar}),Zm=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var i,a,o,s,u;const n=((o=(a=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:a.values)==null?void 0:o[r])||Hc[r];return n?((u=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Ar(r)}};return Rn(e,e.maxWidth,t)}return null};Zm.filterProps=["maxWidth"];const iA=Ht({prop:"minWidth",transform:Ar}),aA=Ht({prop:"height",transform:Ar}),oA=Ht({prop:"maxHeight",transform:Ar}),sA=Ht({prop:"minHeight",transform:Ar});Ht({prop:"size",cssProperty:"width",transform:Ar});Ht({prop:"size",cssProperty:"height",transform:Ar});const lA=Ht({prop:"boxSizing"});Yc(nA,Zm,iA,aA,oA,sA,lA);const dl={border:{themeKey:"borders",transform:qr},borderTop:{themeKey:"borders",transform:qr},borderRight:{themeKey:"borders",transform:qr},borderBottom:{themeKey:"borders",transform:qr},borderLeft:{themeKey:"borders",transform:qr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:qr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:qc},color:{themeKey:"palette",transform:Ka},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ka},backgroundColor:{themeKey:"palette",transform:Ka},p:{style:Lt},pt:{style:Lt},pr:{style:Lt},pb:{style:Lt},pl:{style:Lt},px:{style:Lt},py:{style:Lt},padding:{style:Lt},paddingTop:{style:Lt},paddingRight:{style:Lt},paddingBottom:{style:Lt},paddingLeft:{style:Lt},paddingX:{style:Lt},paddingY:{style:Lt},paddingInline:{style:Lt},paddingInlineStart:{style:Lt},paddingInlineEnd:{style:Lt},paddingBlock:{style:Lt},paddingBlockStart:{style:Lt},paddingBlockEnd:{style:Lt},m:{style:Nt},mt:{style:Nt},mr:{style:Nt},mb:{style:Nt},ml:{style:Nt},mx:{style:Nt},my:{style:Nt},margin:{style:Nt},marginTop:{style:Nt},marginRight:{style:Nt},marginBottom:{style:Nt},marginLeft:{style:Nt},marginX:{style:Nt},marginY:{style:Nt},marginInline:{style:Nt},marginInlineStart:{style:Nt},marginInlineEnd:{style:Nt},marginBlock:{style:Nt},marginBlockStart:{style:Nt},marginBlockEnd:{style:Nt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Xc},rowGap:{style:Kc},columnGap:{style:Zc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ar},maxWidth:{style:Zm},minWidth:{transform:Ar},height:{transform:Ar},maxHeight:{transform:Ar},minHeight:{transform:Ar},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function uA(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function cA(e,t){return typeof e=="function"?e(t):e}function dA(){function e(r,n,i,a){const o={[r]:n,theme:i},s=a[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:c,transform:h,style:f}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const p=jc(i,c)||{};return f?f(o):Rn(o,n,b=>{let v=ic(p,h,b);return b===v&&typeof b=="string"&&(v=ic(p,h,`${r}${b==="default"?"":Le(b)}`,b)),u===!1?v:{[u]:v}})}function t(r){var s;const{sx:n,theme:i={}}=r||{};if(!n)return null;const a=(s=i.unstable_sxConfig)!=null?s:dl;function o(u){let c=u;if(typeof u=="function")c=u(i);else if(typeof u!="object")return u;if(!c)return null;const h=z_(i.breakpoints),f=Object.keys(h);let p=h;return Object.keys(c).forEach(g=>{const b=cA(c[g],i);if(b!=null)if(typeof b=="object")if(a[g])p=Ms(p,e(g,b,i,a));else{const v=Rn({theme:i},b,w=>({[g]:w}));uA(v,b)?p[g]=t({sx:b,theme:i}):p=Ms(p,v)}else p=Ms(p,e(g,b,i,a))}),yP(i,B_(f,p))}return Array.isArray(n)?n.map(o):o(n)}return t}const no=dA();no.filterProps=["sx"];const hA=e=>{var n,i;const t={systemProps:{},otherProps:{}},r=(i=(n=e==null?void 0:e.theme)==null?void 0:n.unstable_sxConfig)!=null?i:dl;return Object.keys(e).forEach(a=>{r[a]?t.systemProps[a]=e[a]:t.otherProps[a]=e[a]}),t};function H_(e){const o=e,{sx:t}=o,r=Ce(o,["sx"]),{systemProps:n,otherProps:i}=hA(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...s)=>{const u=t(...s);return xn(u)?T(T({},n),u):n}:a=T(T({},n),t),$(T({},i),{sx:a})}exports.jsx=function(t,r){var n=arguments;if(r==null||!_.hasOwn.call(r,"css"))return Z.createElement.apply(void 0,n);var i=n.length,a=new Array(i);a[0]=_.Emotion$1,a[1]=_.createEmotionProps(t,r);for(var o=2;o<i;o++)a[o]=n[o];return Z.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(exports.jsx||(exports.jsx={}));var fA=_.withEmotionCache(function(e,t){var r=e.styles,n=_.serializeStyles([r],void 0,Z.useContext(_.ThemeContext)),i=Z.useRef();return _.useInsertionEffectWithLayoutFallback(function(){var a=t.key+"-global",o=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,u=document.querySelector('style[data-emotion="'+a+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),u!==null&&(s=!0,u.setAttribute("data-emotion",a),o.hydrate([u])),i.current=[o,s],function(){o.flush()}},[t]),_.useInsertionEffectWithLayoutFallback(function(){var a=i.current,o=a[0],s=a[1];if(s){a[1]=!1;return}if(n.next!==void 0&&_.insertStyles(t,n.next,!0),o.tags.length){var u=o.tags[o.tags.length-1].nextElementSibling;o.before=u,o.flush()}t.insert("",n,o,!1)},[t,n.name]),null});function Qc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return _.serializeStyles(t)}function hl(){var e=Qc.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var pA=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,j_=_.memoize(function(e){return pA.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),mA=!1,gA=j_,vA=function(t){return t!=="theme"},yy=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?gA:vA},by=function(t,r,n){var i;if(r){var a=r.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},yA=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return _.registerStyles(r,n,i),_.useInsertionEffectAlwaysWithSyncFallback(function(){return _.insertStyles(r,n,i)}),null},bA=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,a,o;r!==void 0&&(a=r.label,o=r.target);var s=by(t,r,n),u=s||yy(i),c=!u("as");return function(){var h=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),h[0]==null||h[0].raw===void 0)f.push.apply(f,h);else{var p=h[0];f.push(p[0]);for(var g=h.length,b=1;b<g;b++)f.push(h[b],p[b])}var v=_.withEmotionCache(function(w,C,M){var E=c&&w.as||i,S="",P=[],R=w;if(w.theme==null){R={};for(var N in w)R[N]=w[N];R.theme=Z.useContext(_.ThemeContext)}typeof w.className=="string"?S=_.getRegisteredStyles(C.registered,P,w.className):w.className!=null&&(S=w.className+" ");var B=_.serializeStyles(f.concat(P),C.registered,R);S+=C.key+"-"+B.name,o!==void 0&&(S+=" "+o);var U=c&&s===void 0?yy(E):u,K={};for(var Q in w)c&&Q==="as"||U(Q)&&(K[Q]=w[Q]);return K.className=S,M&&(K.ref=M),Z.createElement(Z.Fragment,null,Z.createElement(yA,{cache:C,serialized:B,isStringTag:typeof E=="string"}),Z.createElement(E,K))});return v.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=i,v.__emotion_styles=f,v.__emotion_forwardProp=s,Object.defineProperty(v,"toString",{value:function(){return o===void 0&&mA?"NO_COMPONENT_SELECTOR":"."+o}}),v.withComponent=function(w,C){var M=e(w,Fs({},r,C,{shouldForwardProp:by(v,C,!0)}));return M.apply(void 0,f)},v}},_A=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],zs=bA.bind(null);_A.forEach(function(e){zs[e]=zs(e)});function wA(e){return e==null||Object.keys(e).length===0}function V_(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(wA(i)?r:i):t;return fe.jsx(fA,{styles:n})}process.env.NODE_ENV!=="production"&&(V_.propTypes={defaultTheme:y.object,styles:y.oneOfType([y.array,y.string,y.object,y.func])});/**
46
+ * @mui/styled-engine v6.4.11
47
+ *
48
+ * @license MIT
49
+ * This source code is licensed under the MIT license found in the
50
+ * LICENSE file in the root directory of this source tree.
51
+ */function xA(e,t){const r=zs(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const i=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
52
+ `)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),r(...n)}:r}function CA(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const _y=[];function wy(e){return _y[0]=e,_.serializeStyles(_y)}const TA=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>$(T({},r),{[n.key]:n.val}),{})};function MA(e){const p=e,{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=p,i=Ce(p,["values","unit","step"]),a=TA(t),o=Object.keys(a);function s(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${r})`}function u(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-n/100}${r})`}function c(g,b){const v=o.indexOf(b);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${r}) and (max-width:${(v!==-1&&typeof t[o[v]]=="number"?t[o[v]]:b)-n/100}${r})`}function h(g){return o.indexOf(g)+1<o.length?c(g,o[o.indexOf(g)+1]):s(g)}function f(g){const b=o.indexOf(g);return b===0?s(o[1]):b===o.length-1?u(o[b]):c(g,o[o.indexOf(g)+1]).replace("@media","@media not all and")}return T({keys:o,values:a,up:s,down:u,between:c,only:h,not:f,unit:r},i)}const SA={borderRadius:4};function G_(e=8,t=Uc({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(a=>{const o=t(a);return typeof o=="number"?`${o}px`:o}).join(" "));return r.mui=!0,r}function EA(e,t){var n;const r=this;if(r.vars){if(!((n=r.colorSchemes)!=null&&n[e])||typeof r.getColorSchemeSelector!="function")return{};let i=r.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return r.palette.mode===e?t:{}}function Jc(e={},...t){const h=e,{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=h,o=Ce(h,["breakpoints","palette","spacing","shape"]),s=MA(r),u=G_(i);let c=vr({breakpoints:s,direction:"ltr",components:{},palette:T({mode:"light"},n),spacing:u,shape:T(T({},SA),a)},o);return c=wP(c),c.applyStyles=EA,c=t.reduce((f,p)=>vr(f,p),c),c.unstable_sxConfig=T(T({},dl),o==null?void 0:o.unstable_sxConfig),c.unstable_sx=function(p){return no({sx:p,theme:this})},c}function PA(e){return Object.keys(e).length===0}function AA(e=null){const t=Z.useContext(_.ThemeContext);return!t||PA(t)?e:t}const RA=Jc();function Km(e=RA){return AA(e)}function U_({styles:e,themeId:t,defaultTheme:r={}}){const n=Km(r),i=typeof e=="function"?e(t&&n[t]||n):e;return fe.jsx(V_,{styles:i})}process.env.NODE_ENV!=="production"&&(U_.propTypes={defaultTheme:y.object,styles:y.oneOfType([y.array,y.func,y.number,y.object,y.string,y.bool]),themeId:y.string});function Y_(e,t=""){return e.displayName||e.name||t}function xy(e,t,r){const n=Y_(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function OA(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Y_(e,"Component");if(typeof e=="object")switch(e.$$typeof){case nc.ForwardRef:return xy(e,e.render,"ForwardRef");case nc.Memo:return xy(e,e.type,"memo");default:return}}}function q_(e){const i=e,{variants:t}=i,r=Ce(i,["variants"]),n={variants:t,style:wy(r),isProcessed:!0};return n.style===r||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=wy(a.style))}),n}const kA=Jc();function zh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function DA(e){return e?(t,r)=>r[e]:null}function NA(e,t,r){e.theme=$A(e.theme)?r:e.theme[t]||e.theme}function zu(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>zu(e,i));if(Array.isArray(r==null?void 0:r.variants)){let i;if(r.isProcessed)i=r.style;else{const n=r,{variants:a}=n;i=Ce(n,["variants"])}return X_(e,r.variants,[i])}return r!=null&&r.isProcessed?r.style:r}function X_(e,t,r=[]){var i;let n;e:for(let a=0;a<t.length;a+=1){const o=t[a];if(typeof o.props=="function"){if(n!=null||(n=$(T(T({},e),e.ownerState),{ownerState:e.ownerState})),!o.props(n))continue}else for(const s in o.props)if(e[s]!==o.props[s]&&((i=e.ownerState)==null?void 0:i[s])!==o.props[s])continue e;typeof o.style=="function"?(n!=null||(n=$(T(T({},e),e.ownerState),{ownerState:e.ownerState})),r.push(o.style(n))):r.push(o.style)}return r}function Z_(e={}){const{themeId:t,defaultTheme:r=kA,rootShouldForwardProp:n=zh,slotShouldForwardProp:i=zh}=e;function a(s){NA(s,t,r)}return(s,u={})=>{CA(s,R=>R.filter(N=>N!==no));const P=u,{name:c,slot:h,skipVariantsResolver:f,skipSx:p,overridesResolver:g=DA(K_(h))}=P,b=Ce(P,["name","slot","skipVariantsResolver","skipSx","overridesResolver"]),v=f!==void 0?f:h&&h!=="Root"&&h!=="root"||!1,w=p||!1;let C=zh;h==="Root"||h==="root"?C=n:h?C=i:FA(s)&&(C=void 0);const M=xA(s,T({shouldForwardProp:C,label:IA(c,h)},b)),E=R=>{if(R.__emotion_real===R)return R;if(typeof R=="function")return function(B){return zu(B,R)};if(xn(R)){const N=q_(R);return N.variants?function(U){return zu(U,N)}:N.style}return R},S=(...R)=>{const N=[],B=R.map(E),U=[];if(N.push(a),c&&g&&U.push(function(F){var W,G;const j=(G=(W=F.theme.components)==null?void 0:W[c])==null?void 0:G.styleOverrides;if(!j)return null;const V={};for(const te in j)V[te]=zu(F,j[te]);return g(F,V)}),c&&!v&&U.push(function(F){var V,W;const q=F.theme,j=(W=(V=q==null?void 0:q.components)==null?void 0:V[c])==null?void 0:W.variants;return j?X_(F,j):null}),w||U.push(no),Array.isArray(B[0])){const O=B.shift(),F=new Array(N.length).fill(""),q=new Array(U.length).fill("");let j;j=[...F,...O,...q],j.raw=[...F,...O.raw,...q],N.unshift(j)}const K=[...N,...B,...U],Q=M(...K);return s.muiName&&(Q.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(Q.displayName=LA(c,h,s)),Q};return M.withConfig&&(S.withConfig=M.withConfig),S}}function LA(e,t,r){return e?`${e}${Le(t||"")}`:`Styled(${OA(r)})`}function IA(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${K_(t||"Root")}`),r}function $A(e){for(const t in e)return!1;return!0}function FA(e){return typeof e=="string"&&e.charCodeAt(0)>96}function K_(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Bs(e,t){const r=T({},t);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const i=n;if(i==="components"||i==="slots")r[i]=T(T({},e[i]),r[i]);else if(i==="componentsProps"||i==="slotProps"){const a=e[i],o=t[i];if(!o)r[i]=a||{};else if(!a)r[i]=o;else{r[i]=T({},o);for(const s in a)if(Object.prototype.hasOwnProperty.call(a,s)){const u=s;r[i][u]=Bs(a[u],o[u])}}}else r[i]===void 0&&(r[i]=e[i])}return r}const on=typeof window!="undefined"?Z.useLayoutEffect:Z.useEffect;function zA(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Q_(e,t,r,n,i){const a=e[t],o=i||t;if(a==null||typeof window=="undefined")return null;let s;const u=a.type;return typeof u=="function"&&!zA(u)&&(s="Did you accidentally use a plain function component for an element instead?"),s!==void 0?new Error(`Invalid ${n} \`${o}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const oa=ni(y.element,Q_);oa.isRequired=ni(y.element.isRequired,Q_);const BA="exact-prop: ​";function Qm(e){return process.env.NODE_ENV==="production"?e:$(T({},e),{[BA]:t=>{const r=Object.keys(t).filter(n=>!e.hasOwnProperty(n));return r.length>0?new Error(`The following props are not supported: ${r.map(n=>`\`${n}\``).join(", ")}. Please remove them.`):null}})}function Kn(e,t,r,n,i){if(process.env.NODE_ENV==="production")return null;const a=e[t],o=i||t;return a==null?null:a&&a.nodeType!==1?new Error(`Invalid ${n} \`${o}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}function zf(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function J_(e,t=166){let r;function n(...i){const a=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function Dr(e){return e&&e.ownerDocument||document}function Qn(e){return Dr(e).defaultView||window}function Cy(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Ty=0;function WA(e){const[t,r]=Z.useState(e),n=e||t;return Z.useEffect(()=>{t==null&&(Ty+=1,r(`mui-${Ty}`))},[t]),n}const HA=T({},Z),My=HA.useId;function ed(e){if(My!==void 0){const t=My();return e!=null?e:t}return WA(e)}function Sn(e){const t=Z.useRef(e);return on(()=>{t.current=e}),Z.useRef((...r)=>(0,t.current)(...r)).current}function or(...e){const t=Z.useRef(void 0),r=Z.useCallback(n=>{const i=e.map(a=>{if(a==null)return null;if(typeof a=="function"){const o=a,s=o(n);return typeof s=="function"?s:()=>{o(null)}}return a.current=n,()=>{a.current=null}});return()=>{i.forEach(a=>a==null?void 0:a())}},e);return Z.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}const Sy={};function ew(e,t){const r=Z.useRef(Sy);return r.current===Sy&&(r.current=e(t)),r}const jA=[];function VA(e){Z.useEffect(e,jA)}class td{constructor(){Ze(this,"currentId",null);Ze(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Ze(this,"disposeEffect",()=>this.clear)}static create(){return new td}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function ji(){const e=ew(td.create).current;return VA(e.disposeEffect),e}function tw(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function GA(e){return typeof e=="string"}function rw(e,t,r){return e===void 0||GA(e)?t:$(T({},t),{ownerState:T(T({},t.ownerState),r)})}function nw(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function Ey(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function iw(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const g=ze(r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),b=T(T(T({},r==null?void 0:r.style),i==null?void 0:i.style),n==null?void 0:n.style),v=T(T(T({},r),i),n);return g.length>0&&(v.className=g),Object.keys(b).length>0&&(v.style=b),{props:v,internalRef:void 0}}const o=nw(T(T({},i),n)),s=Ey(n),u=Ey(i),c=t(o),h=ze(c==null?void 0:c.className,r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),f=T(T(T(T({},c==null?void 0:c.style),r==null?void 0:r.style),i==null?void 0:i.style),n==null?void 0:n.style),p=T(T(T(T({},c),r),u),s);return h.length>0&&(p.className=h),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:c.ref}}function aw(e,t,r){return typeof e=="function"?e(t,r):e}function Jm(e){var p;const f=e,{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:i=!1}=f,a=Ce(f,["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"]),o=i?{}:aw(r,n),{props:s,internalRef:u}=iw($(T({},a),{externalSlotProps:o})),c=or(u,o==null?void 0:o.ref,(p=e.additionalProps)==null?void 0:p.ref);return rw(t,$(T({},s),{ref:c}),n)}function vo(e){var t;return parseInt(Z.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const UA=Z.createContext(void 0);function YA(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const i=t.components[r];return i.defaultProps?Bs(i.defaultProps,n):!i.styleOverrides&&!i.variants?Bs(i,n):n}function qA({props:e,name:t}){const r=Z.useContext(UA);return YA({props:e,name:t,theme:{components:r}})}const Py={theme:void 0};function XA(e){let t,r;return function(i){let a=t;return(a===void 0||i.theme!==r)&&(Py.theme=i.theme,a=q_(e(Py)),t=a,r=i.theme),a}}function ZA(e=""){function t(...n){if(!n.length)return"";const i=n[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...n.slice(1))})`:`, ${i}`}return(n,...i)=>`var(--${e?`${e}-`:""}${n}${t(...i)})`}const Ay=(e,t,r,n=[])=>{let i=e;t.forEach((a,o)=>{o===t.length-1?Array.isArray(i)?i[Number(a)]=r:i&&typeof i=="object"&&(i[a]=r):i&&typeof i=="object"&&(i[a]||(i[a]=n.includes(a)?[]:{}),i=i[a])})},KA=(e,t,r)=>{function n(i,a=[],o=[]){Object.entries(i).forEach(([s,u])=>{(!r||r&&!r([...a,s]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?n(u,[...a,s],Array.isArray(u)?[...o,s]:o):t([...a,s],u,o))})}n(e)},QA=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Bh(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},i={},a={},o={};return KA(e,(s,u,c)=>{if((typeof u=="string"||typeof u=="number")&&(!n||!n(s,u))){const h=`--${r?`${r}-`:""}${s.join("-")}`,f=QA(s,u);Object.assign(i,{[h]:f}),Ay(a,s,`var(${h})`,c),Ay(o,s,`var(${h}, ${f})`,c)}},s=>s[0]==="vars"),{css:i,vars:a,varsWithDefaults:o}}function JA(e,t={}){const{getSelector:r=w,disableCssColorScheme:n,colorSchemeSelector:i}=t,E=e,{colorSchemes:a={},components:o,defaultColorScheme:s="light"}=E,u=Ce(E,["colorSchemes","components","defaultColorScheme"]),{vars:c,css:h,varsWithDefaults:f}=Bh(u,t);let p=f;const g={},S=a,{[s]:b}=S,v=Ce(S,[hu(s)]);if(Object.entries(v||{}).forEach(([P,R])=>{const{vars:N,css:B,varsWithDefaults:U}=Bh(R,t);p=vr(p,U),g[P]={css:B,vars:N}}),b){const{css:P,vars:R,varsWithDefaults:N}=Bh(b,t);p=vr(p,N),g[s]={css:P,vars:R}}function w(P,R){var B,U;let N=i;if(i==="class"&&(N=".%s"),i==="data"&&(N="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(N=`[${i}="%s"]`),P){if(N==="media")return e.defaultColorScheme===P?":root":{[`@media (prefers-color-scheme: ${((U=(B=a[P])==null?void 0:B.palette)==null?void 0:U.mode)||P})`]:{":root":R}};if(N)return e.defaultColorScheme===P?`:root, ${N.replace("%s",String(P))}`:N.replace("%s",String(P))}return":root"}return{vars:p,generateThemeVars:()=>{let P=T({},c);return Object.entries(g).forEach(([,{vars:R}])=>{P=vr(P,R)}),P},generateStyleSheets:()=>{var Q,O;const P=[],R=e.defaultColorScheme||"light";function N(F,q){Object.keys(q).length&&P.push(typeof F=="string"?{[F]:T({},q)}:F)}N(r(void 0,T({},h)),h);const K=g,{[R]:B}=K,U=Ce(K,[hu(R)]);if(B){const{css:F}=B,q=(O=(Q=a[R])==null?void 0:Q.palette)==null?void 0:O.mode,j=T(!n&&q?{colorScheme:q}:{},F);N(r(R,T({},j)),j)}return Object.entries(U).forEach(([F,{css:q}])=>{var W,G;const j=(G=(W=a[F])==null?void 0:W.palette)==null?void 0:G.mode,V=T(!n&&j?{colorScheme:j}:{},q);N(r(F,T({},V)),V)}),P}}}function eR(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}const Ws={black:"#000",white:"#fff"},tR={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Ma={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Sa={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ko={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Ea={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Pa={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Aa={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function ow(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ws.white,default:Ws.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const rR=ow();function sw(){return{text:{primary:Ws.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ws.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Ry=sw();function Oy(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=zc(e.main,i):t==="dark"&&(e.dark=Fc(e.main,a)))}function nR(e="light"){return e==="dark"?{main:Ea[200],light:Ea[50],dark:Ea[400]}:{main:Ea[700],light:Ea[400],dark:Ea[800]}}function iR(e="light"){return e==="dark"?{main:Ma[200],light:Ma[50],dark:Ma[400]}:{main:Ma[500],light:Ma[300],dark:Ma[700]}}function aR(e="light"){return e==="dark"?{main:Sa[500],light:Sa[300],dark:Sa[700]}:{main:Sa[700],light:Sa[400],dark:Sa[800]}}function oR(e="light"){return e==="dark"?{main:Pa[400],light:Pa[300],dark:Pa[700]}:{main:Pa[700],light:Pa[500],dark:Pa[900]}}function sR(e="light"){return e==="dark"?{main:Aa[400],light:Aa[300],dark:Aa[700]}:{main:Aa[800],light:Aa[500],dark:Aa[900]}}function lR(e="light"){return e==="dark"?{main:Ko[400],light:Ko[300],dark:Ko[700]}:{main:"#ed6c02",light:Ko[500],dark:Ko[900]}}function e0(e){const v=e,{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=v,i=Ce(v,["mode","contrastThreshold","tonalOffset"]),a=e.primary||nR(t),o=e.secondary||iR(t),s=e.error||aR(t),u=e.info||oR(t),c=e.success||sR(t),h=e.warning||lR(t);function f(w){const C=fy(w,Ry.text.primary)>=r?Ry.text.primary:rR.text.primary;if(process.env.NODE_ENV!=="production"){const M=fy(w,C);M<3&&console.error([`MUI: The contrast ratio of ${M}:1 for ${C} on ${w}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
53
+ `))}return C}const p=({color:w,name:C,mainShade:M=500,lightShade:E=300,darkShade:S=700})=>{if(w=T({},w),!w.main&&w[M]&&(w.main=w[M]),!w.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${C?` (${C})`:""} provided to augmentColor(color) is invalid.
54
+ The color object needs to have a \`main\` property or a \`${M}\` property.`:Zn(11,C?` (${C})`:"",M));if(typeof w.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${C?` (${C})`:""} provided to augmentColor(color) is invalid.
55
+ \`color.main\` should be a string, but \`${JSON.stringify(w.main)}\` was provided instead.
56
+
57
+ Did you intend to use one of the following approaches?
58
+
59
+ import { green } from "@mui/material/colors";
60
+
61
+ const theme1 = createTheme({ palette: {
62
+ primary: green,
63
+ } });
64
+
65
+ const theme2 = createTheme({ palette: {
66
+ primary: { main: green[500] },
67
+ } });`:Zn(12,C?` (${C})`:"",JSON.stringify(w.main)));return Oy(w,"light",E,n),Oy(w,"dark",S,n),w.contrastText||(w.contrastText=f(w.main)),w};let g;return t==="light"?g=ow():t==="dark"&&(g=sw()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),vr(T({common:T({},Ws),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:h,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:c,name:"success"}),grey:tR,contrastThreshold:r,getContrastText:f,augmentColor:p,tonalOffset:n},g),i)}function uR(e){const t={};return Object.entries(e).forEach(n=>{const[i,a]=n;typeof a=="object"&&(t[i]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function cR(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}function dR(e){return Math.round(e*1e5)/1e5}const ky={textTransform:"uppercase"},Dy='"Roboto", "Helvetica", "Arial", sans-serif';function hR(e,t){const w=typeof t=="function"?t(e):t,{fontFamily:r=Dy,fontSize:n=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:h}=w,f=Ce(w,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=n/14,g=h||(C=>`${C/u*p}rem`),b=(C,M,E,S,P)=>T(T(T({fontFamily:r,fontWeight:C,fontSize:g(M),lineHeight:E},r===Dy?{letterSpacing:`${dR(S/M)}em`}:{}),P),c),v={h1:b(i,96,1.167,-1.5),h2:b(i,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(o,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(o,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(o,14,1.75,.4,ky),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,ky),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return vr(T({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:n,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s},v),f,{clone:!1})}const fR=.2,pR=.14,mR=.12;function Ct(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${fR})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${pR})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${mR})`].join(",")}const gR=["none",Ct(0,2,1,-1,0,1,1,0,0,1,3,0),Ct(0,3,1,-2,0,2,2,0,0,1,5,0),Ct(0,3,3,-2,0,3,4,0,0,1,8,0),Ct(0,2,4,-1,0,4,5,0,0,1,10,0),Ct(0,3,5,-1,0,5,8,0,0,1,14,0),Ct(0,3,5,-1,0,6,10,0,0,1,18,0),Ct(0,4,5,-2,0,7,10,1,0,2,16,1),Ct(0,5,5,-3,0,8,10,1,0,3,14,2),Ct(0,5,6,-3,0,9,12,1,0,3,16,2),Ct(0,6,6,-3,0,10,14,1,0,4,18,3),Ct(0,6,7,-4,0,11,15,1,0,4,20,3),Ct(0,7,8,-4,0,12,17,2,0,5,22,4),Ct(0,7,8,-4,0,13,19,2,0,5,24,4),Ct(0,7,9,-4,0,14,21,2,0,5,26,4),Ct(0,8,9,-5,0,15,22,2,0,6,28,5),Ct(0,8,10,-5,0,16,24,2,0,6,30,5),Ct(0,8,11,-5,0,17,26,2,0,6,32,5),Ct(0,9,11,-5,0,18,28,2,0,7,34,6),Ct(0,9,12,-6,0,19,29,2,0,7,36,6),Ct(0,10,13,-6,0,20,31,3,0,8,38,7),Ct(0,10,13,-6,0,21,33,3,0,8,40,7),Ct(0,10,14,-6,0,22,35,3,0,8,42,7),Ct(0,11,14,-7,0,23,36,3,0,9,44,8),Ct(0,11,15,-7,0,24,38,3,0,9,46,8)],vR={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},lw={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ny(e){return`${Math.round(e)}ms`}function yR(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*gn(t,.25)+t/5)*10),3e3)}function bR(e){const t=T(T({},vR),e.easing),r=T(T({},lw),e.duration);return $(T({getAutoHeightDuration:yR,create:(i=["all"],a={})=>{const h=a,{duration:o=r.standard,easing:s=t.easeInOut,delay:u=0}=h,c=Ce(h,["duration","easing","delay"]);if(process.env.NODE_ENV!=="production"){const f=g=>typeof g=="string",p=g=>!Number.isNaN(parseFloat(g));!f(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(o)&&!f(o)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),f(s)||console.error('MUI: Argument "easing" must be a string.'),!p(u)&&!f(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
68
+ `)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(f=>`${f} ${typeof o=="string"?o:Ny(o)} ${s} ${typeof u=="string"?u:Ny(u)}`).join(",")}},e),{easing:t,duration:r})}const _R={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function wR(e){return xn(e)||typeof e=="undefined"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function uw(e={}){const t=T({},e);function r(n){const i=Object.entries(n);for(let a=0;a<i.length;a++){const[o,s]=i[a];!wR(s)||o.startsWith("unstable_")?delete n[o]:xn(s)&&(n[o]=T({},s),r(n[o]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
69
+
70
+ const theme = ${JSON.stringify(t,null,2)};
71
+
72
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
73
+ theme.transitions = createTransitions(theme.transitions || {});
74
+
75
+ export default theme;`}function Bf(e={},...t){const g=e,{breakpoints:r,mixins:n={},spacing:i,palette:a={},transitions:o={},typography:s={},shape:u}=g,c=Ce(g,["breakpoints","mixins","spacing","palette","transitions","typography","shape"]);if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Zn(20));const h=e0(a),f=Jc(e);let p=vr(f,{mixins:cR(f.breakpoints,n),palette:h,shadows:gR.slice(),typography:hR(h,s),transitions:bR(o),zIndex:T({},_R)});if(p=vr(p,c),p=t.reduce((b,v)=>vr(b,v),p),process.env.NODE_ENV!=="production"){const b=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],v=(w,C)=>{let M;for(M in w){const E=w[M];if(b.includes(M)&&Object.keys(E).length>0){if(process.env.NODE_ENV!=="production"){const S=ht("",M);console.error([`MUI: The \`${C}\` component increases the CSS specificity of the \`${M}\` internal state.`,"You can not override it like this: ",JSON.stringify(w,null,2),"",`Instead, you need to use the '&.${S}' syntax:`,JSON.stringify({root:{[`&.${S}`]:E}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
76
+ `))}w[M]={}}}};Object.keys(p.components).forEach(w=>{const C=p.components[w].styleOverrides;C&&w.startsWith("Mui")&&v(C,w)})}return p.unstable_sxConfig=T(T({},dl),c==null?void 0:c.unstable_sxConfig),p.unstable_sx=function(v){return no({sx:v,theme:this})},p.toRuntimeSource=uw,p}function Wf(e){let t;return e<1?t=5.11916*gn(e,2):t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const xR=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=Wf(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function cw(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function dw(e){return e==="dark"?xR:[]}function CR(e){const o=e,{palette:t={mode:"light"},opacity:r,overlays:n}=o,i=Ce(o,["palette","opacity","overlays"]),a=e0(t);return T({palette:a,opacity:T(T({},cw(a.mode)),r),overlays:n||dw(a.mode)},i)}function TR(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const MR=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],SR=e=>(t,r)=>{const n=e.rootSelector||":root",i=e.colorSchemeSelector;let a=i;if(i==="class"&&(a=".%s"),i==="data"&&(a="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const o={};return MR(e.cssVarPrefix).forEach(s=>{o[s]=r[s],delete r[s]}),a==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:o}}:a?{[a.replace("%s",t)]:o,[`${n}, ${a.replace("%s",t)}`]:r}:{[n]:T(T({},r),o)}}if(a&&a!=="media")return`${n}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(a)return a.replace("%s",String(t))}return n};function ER(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function le(e,t,r){!e[t]&&r&&(e[t]=r)}function ps(e){return typeof e!="string"||!e.startsWith("hsl")?e:$_(e)}function Vn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=fs(ps(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
77
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function PR(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const vn=e=>{try{return e()}catch(t){}},AR=(e="mui")=>ZA(e);function Wh(e,t,r,n){if(!t)return;t=t===!0?{}:t;const i=n==="dark"?"dark":"light";if(!r){e[n]=CR($(T({},t),{palette:T({mode:i},t==null?void 0:t.palette)}));return}const s=Bf($(T({},r),{palette:T({mode:i},t==null?void 0:t.palette)})),{palette:a}=s,o=Ce(s,["palette"]);return e[n]=$(T({},t),{palette:a,opacity:T(T({},cw(i)),t==null?void 0:t.opacity),overlays:(t==null?void 0:t.overlays)||dw(i)}),o}function RR(e={},...t){const U=e,{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:i=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:o=TR,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,rootSelector:u=":root"}=U,c=Ce(U,["colorSchemes","defaultColorScheme","disableCssColorScheme","cssVarPrefix","shouldSkipGeneratingVar","colorSchemeSelector","rootSelector"]),h=Object.keys(r)[0],f=n||(r.light&&h!=="light"?"light":h),p=AR(a),K=r,{[f]:g,light:b,dark:v}=K,w=Ce(K,[hu(f),"light","dark"]),C=T({},w);let M=g;if((f==="dark"&&!("dark"in r)||f==="light"&&!("light"in r))&&(M=!0),!M)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:Zn(21,f));const E=Wh(C,M,c,f);b&&!C.light&&Wh(C,b,void 0,"light"),v&&!C.dark&&Wh(C,v,void 0,"dark");let S=$(T({defaultColorScheme:f},E),{cssVarPrefix:a,colorSchemeSelector:s,rootSelector:u,getCssVar:p,colorSchemes:C,font:T(T({},uR(E.typography)),E.font),spacing:PR(c.spacing)});Object.keys(S.colorSchemes).forEach(Q=>{const O=S.colorSchemes[Q].palette,F=q=>{const j=q.split("-"),V=j[1],W=j[2];return p(q,O[V][W])};if(O.mode==="light"&&(le(O.common,"background","#fff"),le(O.common,"onBackground","#000")),O.mode==="dark"&&(le(O.common,"background","#000"),le(O.common,"onBackground","#fff")),ER(O,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),O.mode==="light"){le(O.Alert,"errorColor",ct(O.error.light,.6)),le(O.Alert,"infoColor",ct(O.info.light,.6)),le(O.Alert,"successColor",ct(O.success.light,.6)),le(O.Alert,"warningColor",ct(O.warning.light,.6)),le(O.Alert,"errorFilledBg",F("palette-error-main")),le(O.Alert,"infoFilledBg",F("palette-info-main")),le(O.Alert,"successFilledBg",F("palette-success-main")),le(O.Alert,"warningFilledBg",F("palette-warning-main")),le(O.Alert,"errorFilledColor",vn(()=>O.getContrastText(O.error.main))),le(O.Alert,"infoFilledColor",vn(()=>O.getContrastText(O.info.main))),le(O.Alert,"successFilledColor",vn(()=>O.getContrastText(O.success.main))),le(O.Alert,"warningFilledColor",vn(()=>O.getContrastText(O.warning.main))),le(O.Alert,"errorStandardBg",dt(O.error.light,.9)),le(O.Alert,"infoStandardBg",dt(O.info.light,.9)),le(O.Alert,"successStandardBg",dt(O.success.light,.9)),le(O.Alert,"warningStandardBg",dt(O.warning.light,.9)),le(O.Alert,"errorIconColor",F("palette-error-main")),le(O.Alert,"infoIconColor",F("palette-info-main")),le(O.Alert,"successIconColor",F("palette-success-main")),le(O.Alert,"warningIconColor",F("palette-warning-main")),le(O.AppBar,"defaultBg",F("palette-grey-100")),le(O.Avatar,"defaultBg",F("palette-grey-400")),le(O.Button,"inheritContainedBg",F("palette-grey-300")),le(O.Button,"inheritContainedHoverBg",F("palette-grey-A100")),le(O.Chip,"defaultBorder",F("palette-grey-400")),le(O.Chip,"defaultAvatarColor",F("palette-grey-700")),le(O.Chip,"defaultIconColor",F("palette-grey-700")),le(O.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),le(O.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),le(O.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),le(O.LinearProgress,"primaryBg",dt(O.primary.main,.62)),le(O.LinearProgress,"secondaryBg",dt(O.secondary.main,.62)),le(O.LinearProgress,"errorBg",dt(O.error.main,.62)),le(O.LinearProgress,"infoBg",dt(O.info.main,.62)),le(O.LinearProgress,"successBg",dt(O.success.main,.62)),le(O.LinearProgress,"warningBg",dt(O.warning.main,.62)),le(O.Skeleton,"bg",`rgba(${F("palette-text-primaryChannel")} / 0.11)`),le(O.Slider,"primaryTrack",dt(O.primary.main,.62)),le(O.Slider,"secondaryTrack",dt(O.secondary.main,.62)),le(O.Slider,"errorTrack",dt(O.error.main,.62)),le(O.Slider,"infoTrack",dt(O.info.main,.62)),le(O.Slider,"successTrack",dt(O.success.main,.62)),le(O.Slider,"warningTrack",dt(O.warning.main,.62));const q=pu(O.background.default,.8);le(O.SnackbarContent,"bg",q),le(O.SnackbarContent,"color",vn(()=>O.getContrastText(q))),le(O.SpeedDialAction,"fabHoverBg",pu(O.background.paper,.15)),le(O.StepConnector,"border",F("palette-grey-400")),le(O.StepContent,"border",F("palette-grey-400")),le(O.Switch,"defaultColor",F("palette-common-white")),le(O.Switch,"defaultDisabledColor",F("palette-grey-100")),le(O.Switch,"primaryDisabledColor",dt(O.primary.main,.62)),le(O.Switch,"secondaryDisabledColor",dt(O.secondary.main,.62)),le(O.Switch,"errorDisabledColor",dt(O.error.main,.62)),le(O.Switch,"infoDisabledColor",dt(O.info.main,.62)),le(O.Switch,"successDisabledColor",dt(O.success.main,.62)),le(O.Switch,"warningDisabledColor",dt(O.warning.main,.62)),le(O.TableCell,"border",dt(fu(O.divider,1),.88)),le(O.Tooltip,"bg",fu(O.grey[700],.92))}if(O.mode==="dark"){le(O.Alert,"errorColor",dt(O.error.light,.6)),le(O.Alert,"infoColor",dt(O.info.light,.6)),le(O.Alert,"successColor",dt(O.success.light,.6)),le(O.Alert,"warningColor",dt(O.warning.light,.6)),le(O.Alert,"errorFilledBg",F("palette-error-dark")),le(O.Alert,"infoFilledBg",F("palette-info-dark")),le(O.Alert,"successFilledBg",F("palette-success-dark")),le(O.Alert,"warningFilledBg",F("palette-warning-dark")),le(O.Alert,"errorFilledColor",vn(()=>O.getContrastText(O.error.dark))),le(O.Alert,"infoFilledColor",vn(()=>O.getContrastText(O.info.dark))),le(O.Alert,"successFilledColor",vn(()=>O.getContrastText(O.success.dark))),le(O.Alert,"warningFilledColor",vn(()=>O.getContrastText(O.warning.dark))),le(O.Alert,"errorStandardBg",ct(O.error.light,.9)),le(O.Alert,"infoStandardBg",ct(O.info.light,.9)),le(O.Alert,"successStandardBg",ct(O.success.light,.9)),le(O.Alert,"warningStandardBg",ct(O.warning.light,.9)),le(O.Alert,"errorIconColor",F("palette-error-main")),le(O.Alert,"infoIconColor",F("palette-info-main")),le(O.Alert,"successIconColor",F("palette-success-main")),le(O.Alert,"warningIconColor",F("palette-warning-main")),le(O.AppBar,"defaultBg",F("palette-grey-900")),le(O.AppBar,"darkBg",F("palette-background-paper")),le(O.AppBar,"darkColor",F("palette-text-primary")),le(O.Avatar,"defaultBg",F("palette-grey-600")),le(O.Button,"inheritContainedBg",F("palette-grey-800")),le(O.Button,"inheritContainedHoverBg",F("palette-grey-700")),le(O.Chip,"defaultBorder",F("palette-grey-700")),le(O.Chip,"defaultAvatarColor",F("palette-grey-300")),le(O.Chip,"defaultIconColor",F("palette-grey-300")),le(O.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),le(O.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),le(O.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),le(O.LinearProgress,"primaryBg",ct(O.primary.main,.5)),le(O.LinearProgress,"secondaryBg",ct(O.secondary.main,.5)),le(O.LinearProgress,"errorBg",ct(O.error.main,.5)),le(O.LinearProgress,"infoBg",ct(O.info.main,.5)),le(O.LinearProgress,"successBg",ct(O.success.main,.5)),le(O.LinearProgress,"warningBg",ct(O.warning.main,.5)),le(O.Skeleton,"bg",`rgba(${F("palette-text-primaryChannel")} / 0.13)`),le(O.Slider,"primaryTrack",ct(O.primary.main,.5)),le(O.Slider,"secondaryTrack",ct(O.secondary.main,.5)),le(O.Slider,"errorTrack",ct(O.error.main,.5)),le(O.Slider,"infoTrack",ct(O.info.main,.5)),le(O.Slider,"successTrack",ct(O.success.main,.5)),le(O.Slider,"warningTrack",ct(O.warning.main,.5));const q=pu(O.background.default,.98);le(O.SnackbarContent,"bg",q),le(O.SnackbarContent,"color",vn(()=>O.getContrastText(q))),le(O.SpeedDialAction,"fabHoverBg",pu(O.background.paper,.15)),le(O.StepConnector,"border",F("palette-grey-600")),le(O.StepContent,"border",F("palette-grey-600")),le(O.Switch,"defaultColor",F("palette-grey-300")),le(O.Switch,"defaultDisabledColor",F("palette-grey-600")),le(O.Switch,"primaryDisabledColor",ct(O.primary.main,.55)),le(O.Switch,"secondaryDisabledColor",ct(O.secondary.main,.55)),le(O.Switch,"errorDisabledColor",ct(O.error.main,.55)),le(O.Switch,"infoDisabledColor",ct(O.info.main,.55)),le(O.Switch,"successDisabledColor",ct(O.success.main,.55)),le(O.Switch,"warningDisabledColor",ct(O.warning.main,.55)),le(O.TableCell,"border",ct(fu(O.divider,1),.68)),le(O.Tooltip,"bg",fu(O.grey[700],.92))}Vn(O.background,"default"),Vn(O.background,"paper"),Vn(O.common,"background"),Vn(O.common,"onBackground"),Vn(O,"divider"),Object.keys(O).forEach(q=>{const j=O[q];q!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&le(O[q],"mainChannel",fs(ps(j.main))),j.light&&le(O[q],"lightChannel",fs(ps(j.light))),j.dark&&le(O[q],"darkChannel",fs(ps(j.dark))),j.contrastText&&le(O[q],"contrastTextChannel",fs(ps(j.contrastText))),q==="text"&&(Vn(O[q],"primary"),Vn(O[q],"secondary")),q==="action"&&(j.active&&Vn(O[q],"active"),j.selected&&Vn(O[q],"selected")))})}),S=t.reduce((Q,O)=>vr(Q,O),S);const P={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:o,getSelector:SR(S)},{vars:R,generateThemeVars:N,generateStyleSheets:B}=JA(S,P);return S.vars=R,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([Q,O])=>{S[Q]=O}),S.generateThemeVars=N,S.generateStyleSheets=B,S.generateSpacing=function(){return G_(c.spacing,Uc(this))},S.getColorSchemeSelector=eR(s),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=o,S.unstable_sxConfig=T(T({},dl),c==null?void 0:c.unstable_sxConfig),S.unstable_sx=function(O){return no({sx:O,theme:this})},S.toRuntimeSource=uw,S}function Ly(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]=$(T({},r!==!0&&r),{palette:e0($(T({},r===!0?{}:r.palette),{mode:t}))}))}function OR(e={},...t){const h=e,{palette:r,cssVariables:n=!1,colorSchemes:i=r?void 0:{light:!0},defaultColorScheme:a=r==null?void 0:r.mode}=h,o=Ce(h,["palette","cssVariables","colorSchemes","defaultColorScheme"]),s=a||"light",u=i==null?void 0:i[s],c=T(T({},i),r?{[s]:$(T({},typeof u!="boolean"&&u),{palette:r})}:void 0);if(n===!1){if(!("colorSchemes"in e))return Bf(e,...t);let f=r;"palette"in e||c[s]&&(c[s]!==!0?f=c[s].palette:s==="dark"&&(f={mode:"dark"}));const p=Bf($(T({},e),{palette:f}),...t);return p.defaultColorScheme=s,p.colorSchemes=c,p.palette.mode==="light"&&(p.colorSchemes.light=$(T({},c.light!==!0&&c.light),{palette:p.palette}),Ly(p,"dark",c.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark=$(T({},c.dark!==!0&&c.dark),{palette:p.palette}),Ly(p,"light",c.light)),p}return!r&&!("light"in c)&&s==="light"&&(c.light=!0),RR(T($(T({},o),{colorSchemes:c,defaultColorScheme:s}),typeof n!="boolean"&&n),...t)}const t0=OR(),r0="$$material";function fl(){const e=Km(t0);return process.env.NODE_ENV!=="production"&&Z.useDebugValue(e),e[r0]||e}function hw(e){return fe.jsx(U_,$(T({},e),{defaultTheme:t0,themeId:r0}))}process.env.NODE_ENV!=="production"&&(hw.propTypes={styles:y.oneOfType([y.array,y.func,y.number,y.object,y.string,y.bool])});function kR(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const pl=e=>kR(e)&&e!=="classes",De=Z_({themeId:r0,defaultTheme:t0,rootShouldForwardProp:pl});function DR(e){return function(r){return fe.jsx(hw,{styles:typeof e=="function"?n=>e(T({theme:n},r)):e})}}function NR(){return H_}function _t(e){return qA(e)}class ac{constructor(){Ze(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new ac}static use(){const t=ew(ac.create).current,[r,n]=Z.useState(!1);return t.shouldMount=r,t.setShouldMount=n,Z.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=IR(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...t)})}stop(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...t)})}pulsate(...t){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...t)})}}function LR(){return ac.use()}function IR(){let e,t;const r=new Promise((n,i)=>{e=n,t=i});return r.resolve=e,r.reject=t,r}function fw(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Hf(e,t){return Hf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hf(e,t)}function pw(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Hf(e,t)}const Iy={disabled:!1};var $R=process.env.NODE_ENV!=="production"?y.oneOfType([y.number,y.shape({enter:y.number,exit:y.number,appear:y.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&y.oneOfType([y.string,y.shape({enter:y.string,exit:y.string,active:y.string}),y.shape({enter:y.string,enterDone:y.string,enterActive:y.string,exit:y.string,exitDone:y.string,exitActive:y.string})]);const oc=k.createContext(null);var ms="unmounted",zi="exited",Bi="entering",$a="entered",jf="exiting",sn=function(e){pw(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=i,s=o&&!o.isMounting?n.enter:n.appear,u;return a.appearStatus=null,n.in?s?(u=zi,a.appearStatus=Bi):u=$a:n.unmountOnExit||n.mountOnEnter?u=ms:u=zi,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===ms?{status:zi}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==Bi&&o!==$a&&(a=Bi):(o===Bi||o===$a)&&(a=jf)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,o,s;return a=o=s=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,s=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:s}},r.updateStatus=function(i,a){i===void 0&&(i=!1),a!==null?(this.cancelNextCallback(),a===Bi?((this.props.unmountOnExit||this.props.mountOnEnter)&&(this.props.nodeRef?this.props.nodeRef.current:Rr.findDOMNode(this)),this.performEnter(i)):this.performExit()):this.props.unmountOnExit&&this.state.status===zi&&this.setState({status:ms})},r.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,u=this.props.nodeRef?[s]:[Rr.findDOMNode(this),s],c=u[0],h=u[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!i&&!o||Iy.disabled){this.safeSetState({status:$a},function(){a.props.onEntered(c)});return}this.props.onEnter(c,h),this.safeSetState({status:Bi},function(){a.props.onEntering(c,h),a.onTransitionEnd(p,function(){a.safeSetState({status:$a},function(){a.props.onEntered(c,h)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:Rr.findDOMNode(this);if(!a||Iy.disabled){this.safeSetState({status:zi},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:jf},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:zi},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,a.nextCallback=null,i(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:Rr.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],c=u[0],h=u[1];this.props.addEndListener(c,h)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===ms)return null;var a=this.props,o=a.children,s=fw(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return k.createElement(oc.Provider,{value:null},typeof o=="function"?o(i,s):k.cloneElement(k.Children.only(o),s))},t}(k.Component);sn.contextType=oc;sn.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:y.shape({current:typeof Element=="undefined"?y.any:function(e,t,r,n,i,a){var o=e[t];return y.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,r,n,i,a)}}),children:y.oneOfType([y.func.isRequired,y.element.isRequired]).isRequired,in:y.bool,mountOnEnter:y.bool,unmountOnExit:y.bool,appear:y.bool,enter:y.bool,exit:y.bool,timeout:function(t){var r=$R;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return r.apply(void 0,[t].concat(i))},addEndListener:y.func,onEnter:y.func,onEntering:y.func,onEntered:y.func,onExit:y.func,onExiting:y.func,onExited:y.func}:{};function Ra(){}sn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ra,onEntering:Ra,onEntered:Ra,onExit:Ra,onExiting:Ra,onExited:Ra};sn.UNMOUNTED=ms;sn.EXITED=zi;sn.ENTERING=Bi;sn.ENTERED=$a;sn.EXITING=jf;function FR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function n0(e,t){var r=function(a){return t&&k.isValidElement(a)?t(a):a},n=Object.create(null);return e&&k.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function zR(e,t){e=e||{},t=t||{};function r(h){return h in t?t[h]:e[h]}var n=Object.create(null),i=[];for(var a in e)a in t?i.length&&(n[a]=i,i=[]):i.push(a);var o,s={};for(var u in t){if(n[u])for(o=0;o<n[u].length;o++){var c=n[u][o];s[n[u][o]]=r(c)}s[u]=r(u)}for(o=0;o<i.length;o++)s[i[o]]=r(i[o]);return s}function Vi(e,t,r){return r[t]!=null?r[t]:e.props[t]}function BR(e,t){return n0(e.children,function(r){return k.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Vi(r,"appear",e),enter:Vi(r,"enter",e),exit:Vi(r,"exit",e)})})}function WR(e,t,r){var n=n0(e.children),i=zR(t,n);return Object.keys(i).forEach(function(a){var o=i[a];if(k.isValidElement(o)){var s=a in t,u=a in n,c=t[a],h=k.isValidElement(c)&&!c.props.in;u&&(!s||h)?i[a]=k.cloneElement(o,{onExited:r.bind(null,o),in:!0,exit:Vi(o,"exit",e),enter:Vi(o,"enter",e)}):!u&&s&&!h?i[a]=k.cloneElement(o,{in:!1}):u&&s&&k.isValidElement(c)&&(i[a]=k.cloneElement(o,{onExited:r.bind(null,o),in:c.props.in,exit:Vi(o,"exit",e),enter:Vi(o,"enter",e)}))}}),i}var HR=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},jR={component:"div",childFactory:function(t){return t}},i0=function(e){pw(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=a.handleExited.bind(FR(a));return a.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},a}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,a){var o=a.children,s=a.handleExited,u=a.firstRender;return{children:u?BR(i,s):WR(i,o,s),firstRender:!1}},r.handleExited=function(i,a){var o=n0(this.props.children);i.key in o||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(s){var u=Fs({},s.children);return delete u[i.key],{children:u}}))},r.render=function(){var i=this.props,a=i.component,o=i.childFactory,s=fw(i,["component","childFactory"]),u=this.state.contextValue,c=HR(this.state.children).map(o);return delete s.appear,delete s.enter,delete s.exit,a===null?k.createElement(oc.Provider,{value:u},c):k.createElement(oc.Provider,{value:u},k.createElement(a,s,c))},t}(k.Component);i0.propTypes=process.env.NODE_ENV!=="production"?{component:y.any,children:y.node,appear:y.bool,enter:y.bool,exit:y.bool,childFactory:y.func}:{};i0.defaultProps=jR;function mw(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:u,timeout:c}=e,[h,f]=Z.useState(!1),p=ze(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),g={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},b=ze(r.child,h&&r.childLeaving,n&&r.childPulsate);return!s&&!h&&f(!0),Z.useEffect(()=>{if(!s&&u!=null){const v=setTimeout(u,c);return()=>{clearTimeout(v)}}},[u,s,c]),fe.jsx("span",{className:p,style:g,children:fe.jsx("span",{className:b})})}process.env.NODE_ENV!=="production"&&(mw.propTypes={classes:y.object.isRequired,className:y.string,in:y.bool,onExited:y.func,pulsate:y.bool,rippleSize:y.number,rippleX:y.number,rippleY:y.number,timeout:y.number.isRequired});const Yr=ft("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Vf=550,VR=80,GR=hl`
78
+ 0% {
79
+ transform: scale(0);
80
+ opacity: 0.1;
81
+ }
82
+
83
+ 100% {
84
+ transform: scale(1);
85
+ opacity: 0.3;
86
+ }
87
+ `,UR=hl`
88
+ 0% {
89
+ opacity: 1;
90
+ }
91
+
92
+ 100% {
93
+ opacity: 0;
94
+ }
95
+ `,YR=hl`
96
+ 0% {
97
+ transform: scale(1);
98
+ }
99
+
100
+ 50% {
101
+ transform: scale(0.92);
102
+ }
103
+
104
+ 100% {
105
+ transform: scale(1);
106
+ }
107
+ `,qR=De("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),XR=De(mw,{name:"MuiTouchRipple",slot:"Ripple"})`
108
+ opacity: 0;
109
+ position: absolute;
110
+
111
+ &.${Yr.rippleVisible} {
112
+ opacity: 0.3;
113
+ transform: scale(1);
114
+ animation-name: ${GR};
115
+ animation-duration: ${Vf}ms;
116
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
117
+ }
118
+
119
+ &.${Yr.ripplePulsate} {
120
+ animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
121
+ }
122
+
123
+ & .${Yr.child} {
124
+ opacity: 1;
125
+ display: block;
126
+ width: 100%;
127
+ height: 100%;
128
+ border-radius: 50%;
129
+ background-color: currentColor;
130
+ }
131
+
132
+ & .${Yr.childLeaving} {
133
+ opacity: 0;
134
+ animation-name: ${UR};
135
+ animation-duration: ${Vf}ms;
136
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
137
+ }
138
+
139
+ & .${Yr.childPulsate} {
140
+ position: absolute;
141
+ /* @noflip */
142
+ left: 0px;
143
+ top: 0;
144
+ animation-name: ${YR};
145
+ animation-duration: 2500ms;
146
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
147
+ animation-iteration-count: infinite;
148
+ animation-delay: 200ms;
149
+ }
150
+ `,gw=Z.forwardRef(function(t,r){const S=_t({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=S,s=Ce(S,["center","classes","className"]),[u,c]=Z.useState([]),h=Z.useRef(0),f=Z.useRef(null);Z.useEffect(()=>{f.current&&(f.current(),f.current=null)},[u]);const p=Z.useRef(!1),g=ji(),b=Z.useRef(null),v=Z.useRef(null),w=Z.useCallback(P=>{const{pulsate:R,rippleX:N,rippleY:B,rippleSize:U,cb:K}=P;c(Q=>[...Q,fe.jsx(XR,{classes:{ripple:ze(a.ripple,Yr.ripple),rippleVisible:ze(a.rippleVisible,Yr.rippleVisible),ripplePulsate:ze(a.ripplePulsate,Yr.ripplePulsate),child:ze(a.child,Yr.child),childLeaving:ze(a.childLeaving,Yr.childLeaving),childPulsate:ze(a.childPulsate,Yr.childPulsate)},timeout:Vf,pulsate:R,rippleX:N,rippleY:B,rippleSize:U},h.current)]),h.current+=1,f.current=K},[a]),C=Z.useCallback((P={},R={},N=()=>{})=>{const{pulsate:B=!1,center:U=i||R.pulsate,fakeElement:K=!1}=R;if((P==null?void 0:P.type)==="mousedown"&&p.current){p.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(p.current=!0);const Q=K?null:v.current,O=Q?Q.getBoundingClientRect():{width:0,height:0,left:0,top:0};let F,q,j;if(U||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)F=Math.round(O.width/2),q=Math.round(O.height/2);else{const{clientX:V,clientY:W}=P.touches&&P.touches.length>0?P.touches[0]:P;F=Math.round(V-O.left),q=Math.round(W-O.top)}if(U)j=Math.sqrt((2*gn(O.width,2)+gn(O.height,2))/3),j%2===0&&(j+=1);else{const V=Math.max(Math.abs((Q?Q.clientWidth:0)-F),F)*2+2,W=Math.max(Math.abs((Q?Q.clientHeight:0)-q),q)*2+2;j=Math.sqrt(gn(V,2)+gn(W,2))}P!=null&&P.touches?b.current===null&&(b.current=()=>{w({pulsate:B,rippleX:F,rippleY:q,rippleSize:j,cb:N})},g.start(VR,()=>{b.current&&(b.current(),b.current=null)})):w({pulsate:B,rippleX:F,rippleY:q,rippleSize:j,cb:N})},[i,w,g]),M=Z.useCallback(()=>{C({},{pulsate:!0})},[C]),E=Z.useCallback((P,R)=>{if(g.clear(),(P==null?void 0:P.type)==="touchend"&&b.current){b.current(),b.current=null,g.start(0,()=>{E(P,R)});return}b.current=null,c(N=>N.length>0?N.slice(1):N),f.current=R},[g]);return Z.useImperativeHandle(r,()=>({pulsate:M,start:C,stop:E}),[M,C,E]),fe.jsx(qR,$(T({className:ze(Yr.root,a.root,o),ref:v},s),{children:fe.jsx(i0,{component:null,exit:!0,children:u})}))});process.env.NODE_ENV!=="production"&&(gw.propTypes={center:y.bool,classes:y.object,className:y.string});function ZR(e){return ht("MuiButtonBase",e)}const KR=ft("MuiButtonBase",["root","disabled","focusVisible"]),QR=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=Et({root:["root",t&&"disabled",r&&"focusVisible"]},ZR,i);return r&&n&&(o.root+=` ${n}`),o},JR=De("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${KR.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),sa=Z.forwardRef(function(t,r){const n=_t({props:t,name:"MuiButtonBase"}),Pt=n,{action:i,centerRipple:a=!1,children:o,className:s,component:u="button",disabled:c=!1,disableRipple:h=!1,disableTouchRipple:f=!1,focusRipple:p=!1,focusVisibleClassName:g,LinkComponent:b="a",onBlur:v,onClick:w,onContextMenu:C,onDragLeave:M,onFocus:E,onFocusVisible:S,onKeyDown:P,onKeyUp:R,onMouseDown:N,onMouseLeave:B,onMouseUp:U,onTouchEnd:K,onTouchMove:Q,onTouchStart:O,tabIndex:F=0,TouchRippleProps:q,touchRippleRef:j,type:V}=Pt,W=Ce(Pt,["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"]),G=Z.useRef(null),te=LR(),z=or(te.ref,j),[Y,ie]=Z.useState(!1);c&&Y&&ie(!1),Z.useImperativeHandle(i,()=>({focusVisible:()=>{ie(!0),G.current.focus()}}),[]);const ne=te.shouldMount&&!h&&!c;Z.useEffect(()=>{Y&&p&&!h&&te.pulsate()},[h,p,Y,te]);const re=Gn(te,"start",N,f),oe=Gn(te,"stop",C,f),se=Gn(te,"stop",M,f),de=Gn(te,"stop",U,f),ce=Gn(te,"stop",Ae=>{Y&&Ae.preventDefault(),B&&B(Ae)},f),ge=Gn(te,"start",O,f),Te=Gn(te,"stop",K,f),ye=Gn(te,"stop",Q,f),J=Gn(te,"stop",Ae=>{rc(Ae.target)||ie(!1),v&&v(Ae)},!1),_e=Sn(Ae=>{G.current||(G.current=Ae.currentTarget),rc(Ae.target)&&(ie(!0),S&&S(Ae)),E&&E(Ae)}),ve=()=>{const Ae=G.current;return u&&u!=="button"&&!(Ae.tagName==="A"&&Ae.href)},Ee=Sn(Ae=>{p&&!Ae.repeat&&Y&&Ae.key===" "&&te.stop(Ae,()=>{te.start(Ae)}),Ae.target===Ae.currentTarget&&ve()&&Ae.key===" "&&Ae.preventDefault(),P&&P(Ae),Ae.target===Ae.currentTarget&&ve()&&Ae.key==="Enter"&&!c&&(Ae.preventDefault(),w&&w(Ae))}),Ne=Sn(Ae=>{p&&Ae.key===" "&&Y&&!Ae.defaultPrevented&&te.stop(Ae,()=>{te.pulsate(Ae)}),R&&R(Ae),w&&Ae.target===Ae.currentTarget&&ve()&&Ae.key===" "&&!Ae.defaultPrevented&&w(Ae)});let We=u;We==="button"&&(W.href||W.to)&&(We=b);const He={};We==="button"?(He.type=V===void 0?"button":V,He.disabled=c):(!W.href&&!W.to&&(He.role="button"),c&&(He["aria-disabled"]=c));const Zt=or(r,G),xt=$(T({},n),{centerRipple:a,component:u,disabled:c,disableRipple:h,disableTouchRipple:f,focusRipple:p,tabIndex:F,focusVisible:Y}),$t=QR(xt);return fe.jsxs(JR,$(T(T({as:We,className:ze($t.root,s),ownerState:xt,onBlur:J,onClick:w,onContextMenu:oe,onFocus:_e,onKeyDown:Ee,onKeyUp:Ne,onMouseDown:re,onMouseLeave:ce,onMouseUp:de,onDragLeave:se,onTouchEnd:Te,onTouchMove:ye,onTouchStart:ge,ref:Zt,tabIndex:c?-1:F,type:V},He),W),{children:[o,ne?fe.jsx(gw,T({ref:z,center:a},q)):null]}))});function Gn(e,t,r,n=!1){return Sn(i=>(r&&r(i),n||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(sa.propTypes={action:mo,centerRipple:y.bool,children:y.node,classes:y.object,className:y.string,component:Wc,disabled:y.bool,disableRipple:y.bool,disableTouchRipple:y.bool,focusRipple:y.bool,focusVisibleClassName:y.string,href:y.any,LinkComponent:y.elementType,onBlur:y.func,onClick:y.func,onContextMenu:y.func,onDragLeave:y.func,onFocus:y.func,onFocusVisible:y.func,onKeyDown:y.func,onKeyUp:y.func,onMouseDown:y.func,onMouseLeave:y.func,onMouseUp:y.func,onTouchEnd:y.func,onTouchMove:y.func,onTouchStart:y.func,sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object]),tabIndex:y.number,TouchRippleProps:y.object,touchRippleRef:y.oneOfType([y.func,y.shape({current:y.shape({pulsate:y.func.isRequired,start:y.func.isRequired,stop:y.func.isRequired})})]),type:y.oneOfType([y.oneOf(["button","reset","submit"]),y.string])});function eO(e){return typeof e.main=="string"}function tO(e,t=[]){if(!eO(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function wi(e=[]){return([,t])=>t&&tO(t,e)}const kt=XA;function rO(e){return ht("MuiSvgIcon",e)}ft("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const nO=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${Le(t)}`,`fontSize${Le(r)}`]};return Et(i,rO,n)},iO=De("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Le(r.color)}`],t[`fontSize${Le(r.fontSize)}`]]}})(kt(({theme:e})=>{var t,r,n,i,a,o,s,u,c,h,f,p,g,b,v,w,C,M;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(t=e.transitions)==null?void 0:t.create)==null?void 0:a.call(t,"fill",{duration:(i=(n=((r=e.vars)!=null?r:e).transitions)==null?void 0:n.duration)==null?void 0:i.shorter}),variants:[{props:E=>!E.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(o=e.typography)==null?void 0:o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((c=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:c.call(u,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((f=(h=e.typography)==null?void 0:h.pxToRem)==null?void 0:f.call(h,35))||"2.1875rem"}},...Object.entries(((p=e.vars)!=null?p:e).palette).filter(([,E])=>E&&E.main).map(([E])=>{var S,P,R;return{props:{color:E},style:{color:(R=(P=((S=e.vars)!=null?S:e).palette)==null?void 0:P[E])==null?void 0:R.main}}}),{props:{color:"action"},style:{color:(v=(b=((g=e.vars)!=null?g:e).palette)==null?void 0:b.action)==null?void 0:v.active}},{props:{color:"disabled"},style:{color:(M=(C=((w=e.vars)!=null?w:e).palette)==null?void 0:C.action)==null?void 0:M.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),sc=Z.forwardRef(function(t,r){const n=_t({props:t,name:"MuiSvgIcon"}),M=n,{children:i,className:a,color:o="inherit",component:s="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:h=!1,titleAccess:f,viewBox:p="0 0 24 24"}=M,g=Ce(M,["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"]),b=Z.isValidElement(i)&&i.type==="svg",v=$(T({},n),{color:o,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:p,hasSvgAsChild:b}),w={};h||(w.viewBox=p);const C=nO(v);return fe.jsxs(iO,$(T(T(T({as:s,className:ze(C.root,a),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},w),g),b&&i.props),{ownerState:v,children:[b?i.props.children:i,f?fe.jsx("title",{children:f}):null]}))});process.env.NODE_ENV!=="production"&&(sc.propTypes={children:y.node,classes:y.object,className:y.string,color:y.oneOfType([y.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),y.string]),component:y.elementType,fontSize:y.oneOfType([y.oneOf(["inherit","large","medium","small"]),y.string]),htmlColor:y.string,inheritViewBox:y.bool,shapeRendering:y.string,sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object]),titleAccess:y.string,viewBox:y.string});sc.muiName="SvgIcon";function yo(e,t){function r(n,i){return fe.jsx(sc,$(T({"data-testid":`${t}Icon`,ref:i},n),{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=sc.muiName,Z.memo(Z.forwardRef(r))}const aO=yo(fe.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),oO=yo(fe.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),sO=yo(fe.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),lO=yo(fe.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");function er(e,t){const P=t,{className:r,elementType:n,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1}=P,u=Ce(P,["className","elementType","ownerState","externalForwardedProps","internalForwardedProps","shouldForwardComponentProp"]),R=a,{component:c,slots:h={[e]:void 0},slotProps:f={[e]:void 0}}=R,p=Ce(R,["component","slots","slotProps"]),g=h[e]||n,b=aw(f[e],i),N=iw($(T({className:r},u),{externalForwardedProps:e==="root"?p:void 0,externalSlotProps:b})),{props:B}=N,U=B,{component:v}=U,w=Ce(U,["component"]),{internalRef:C}=N,M=or(C,b==null?void 0:b.ref,t.ref),E=e==="root"?v||c:v,S=rw(g,$(T(T(T(T(T({},e==="root"&&!c&&!h[e]&&o),e!=="root"&&!h[e]&&o),w),E&&!s&&{as:E}),E&&s&&{component:E}),{ref:M}),i);return[g,S]}const vw=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Le(r.size)}`],r.variant==="text"&&t[`text${Le(r.color)}`],r.variant==="outlined"&&t[`outlined${Le(r.color)}`],r.shape==="rounded"&&t.rounded,r.type==="page"&&t.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&t.ellipsis,(r.type==="previous"||r.type==="next")&&t.previousNext,(r.type==="first"||r.type==="last")&&t.firstLast]},uO=e=>{const{classes:t,color:r,disabled:n,selected:i,size:a,shape:o,type:s,variant:u}=e,c={root:["root",`size${Le(a)}`,u,o,r!=="standard"&&`color${Le(r)}`,r!=="standard"&&`${u}${Le(r)}`,n&&"disabled",i&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return Et(c,fP,t)},cO=De("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:vw})(kt(({theme:e})=>$(T({},e.typography.body2),{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${hr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}}]}))),dO=De(sa,{name:"MuiPaginationItem",slot:"Root",overridesResolver:vw})(kt(({theme:e})=>$(T({},e.typography.body2),{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${hr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${hr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${hr.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${hr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${hr.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${hr.selected}`]:{[`&.${hr.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${hr.selected}`]:{[`&.${hr.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(wi(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${hr.selected}`]:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}},[`&.${hr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${hr.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(wi(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${hr.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:Tt(e.palette[t].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:Tt(e.palette[t].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${hr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}}}}))]}))),hO=De("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(kt(({theme:e})=>({fontSize:e.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(22)}}]}))),yw=Z.forwardRef(function(t,r){var G,te,z,Y;const n=_t({props:t,name:"MuiPaginationItem"}),W=n,{className:i,color:a="standard",component:o,components:s={},disabled:u=!1,page:c,selected:h=!1,shape:f="circular",size:p="medium",slots:g={},slotProps:b={},type:v="page",variant:w="text"}=W,C=Ce(W,["className","color","component","components","disabled","page","selected","shape","size","slots","slotProps","type","variant"]),M=$(T({},n),{color:a,disabled:u,selected:h,shape:f,size:p,type:v,variant:w}),E=Bc(),S=uO(M),P={slots:{previous:(G=g.previous)!=null?G:s.previous,next:(te=g.next)!=null?te:s.next,first:(z=g.first)!=null?z:s.first,last:(Y=g.last)!=null?Y:s.last},slotProps:b},[R,N]=er("previous",{elementType:sO,externalForwardedProps:P,ownerState:M}),[B,U]=er("next",{elementType:lO,externalForwardedProps:P,ownerState:M}),[K,Q]=er("first",{elementType:aO,externalForwardedProps:P,ownerState:M}),[O,F]=er("last",{elementType:oO,externalForwardedProps:P,ownerState:M}),q=E?{previous:"next",next:"previous",first:"last",last:"first"}[v]:v,j={previous:R,next:B,first:K,last:O}[q],V={previous:N,next:U,first:Q,last:F}[q];return v==="start-ellipsis"||v==="end-ellipsis"?fe.jsx(cO,{ref:r,ownerState:M,className:ze(S.root,i),children:"…"}):fe.jsxs(dO,$(T({ref:r,ownerState:M,component:o,disabled:u,className:ze(S.root,i)},C),{children:[v==="page"&&c,j?fe.jsx(hO,$(T({},V),{className:S.icon,as:j})):null]}))});process.env.NODE_ENV!=="production"&&(yw.propTypes={children:y.node,classes:y.object,className:y.string,color:y.oneOfType([y.oneOf(["primary","secondary","standard"]),y.string]),component:y.elementType,components:y.shape({first:y.elementType,last:y.elementType,next:y.elementType,previous:y.elementType}),disabled:y.bool,page:y.node,selected:y.bool,shape:y.oneOf(["circular","rounded"]),size:y.oneOfType([y.oneOf(["small","medium","large"]),y.string]),slotProps:y.shape({first:y.oneOfType([y.func,y.object]),last:y.oneOfType([y.func,y.object]),next:y.oneOfType([y.func,y.object]),previous:y.oneOfType([y.func,y.object])}),slots:y.shape({first:y.elementType,last:y.elementType,next:y.elementType,previous:y.elementType}),sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object]),type:y.oneOf(["end-ellipsis","first","last","next","page","previous","start-ellipsis"]),variant:y.oneOfType([y.oneOf(["outlined","text"]),y.string])});const fO=e=>{const{classes:t,variant:r}=e;return Et({root:["root",r],ul:["ul"]},sP,t)},pO=De("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),mO=De("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function gO(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const bw=Z.forwardRef(function(t,r){const n=_t({props:t,name:"MuiPagination"}),K=n,{boundaryCount:i=1,className:a,color:o="standard",count:s=1,defaultPage:u=1,disabled:c=!1,getItemAriaLabel:h=gO,hideNextButton:f=!1,hidePrevButton:p=!1,onChange:g,page:b,renderItem:v=Q=>fe.jsx(yw,T({},Q)),shape:w="circular",showFirstButton:C=!1,showLastButton:M=!1,siblingCount:E=1,size:S="medium",variant:P="text"}=K,R=Ce(K,["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"]),{items:N}=lP($(T({},n),{componentName:"Pagination"})),B=$(T({},n),{boundaryCount:i,color:o,count:s,defaultPage:u,disabled:c,getItemAriaLabel:h,hideNextButton:f,hidePrevButton:p,renderItem:v,shape:w,showFirstButton:C,showLastButton:M,siblingCount:E,size:S,variant:P}),U=fO(B);return fe.jsx(pO,$(T({"aria-label":"pagination navigation",className:ze(U.root,a),ownerState:B,ref:r},R),{children:fe.jsx(mO,{className:U.ul,ownerState:B,children:N.map((Q,O)=>fe.jsx("li",{children:v($(T({},Q),{color:o,"aria-label":h(Q.type,Q.page,Q.selected),shape:w,size:S,variant:P}))},O))})}))});process.env.NODE_ENV!=="production"&&(bw.propTypes={boundaryCount:wn,classes:y.object,className:y.string,color:y.oneOfType([y.oneOf(["primary","secondary","standard"]),y.string]),count:wn,defaultPage:wn,disabled:y.bool,getItemAriaLabel:y.func,hideNextButton:y.bool,hidePrevButton:y.bool,onChange:y.func,page:wn,renderItem:y.func,shape:y.oneOf(["circular","rounded"]),showFirstButton:y.bool,showLastButton:y.bool,siblingCount:wn,size:y.oneOfType([y.oneOf(["small","medium","large"]),y.string]),sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object]),variant:y.oneOfType([y.oneOf(["outlined","text"]),y.string])});const vO={table:{columns:[],rows:[]}};function xi(e){return e===void 0||typeof e=="string"||"title"in e&&"type"in e}const yr={BOX_MIN_VALUE_NAME:"Box Min",BOX_MEDIAN_VALUE_NAME:"Box Median",BOX_MAX_VALUE_NAME:"Box Max",WHISKER_MIN_VALUE_NAME:"Whisker Min",WHISKER_MAX_VALUE_NAME:"Whisker Max",OUTLIER_COUNT_VALUE_NAME:"Outlier Count",OUTLIER_MIN_VALUE_NAME:"Outlier Min",OUTLIER_MAX_VALUE_NAME:"Outlier Max"};function a0(e){return[I.customFormula(yr.BOX_MIN_VALUE_NAME,"QUARTILE([Attr], 1)",{Attr:e}),I.customFormula(yr.BOX_MEDIAN_VALUE_NAME,"MEDIAN([Attr])",{Attr:e}),I.customFormula(yr.BOX_MAX_VALUE_NAME,"QUARTILE([Attr], 3)",{Attr:e})]}function yO(e){return[...a0(e),I.customFormula(yr.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_IQR([Attr])",{Attr:e}),I.customFormula(yr.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_IQR([Attr])",{Attr:e}),I.customFormula(yr.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_IQR([Attr])",{Attr:e})]}function bO(e){return[...a0(e),I.customFormula(yr.WHISKER_MIN_VALUE_NAME,"MIN([Attr])",{Attr:e}),I.customFormula(yr.WHISKER_MAX_VALUE_NAME,"MAX([Attr])",{Attr:e})]}function _O(e){return[...a0(e),I.customFormula(yr.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_STDEVP([Attr])",{Attr:e}),I.customFormula(yr.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_STDEVP([Attr])",{Attr:e}),I.customFormula(yr.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_STDEVP([Attr])",{Attr:e})]}const wO=I.withComposeCodeForAnalytics(e=>{const t=I.cloneDeep(e),r=I.customFormula(yr.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_IQR([Attr]), all([Attr]))",{Attr:e}),n=I.customFormula(yr.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_IQR([Attr]), all([Attr]))",{Attr:e});return t.name=`${t.name} (Outliers)`,t.jaql=i=>{const a=Object.assign(Object.assign({},e.jaql(!0)),{filter:{or:[{fromNotEqual:r.jaql(!0)},{toNotEqual:n.jaql(!0)}]}});return i?a:{jaql:a}},t},"boxWhiskerIqrOutliers"),xO=I.withComposeCodeForAnalytics(e=>{const t=I.cloneDeep(e),r=I.customFormula(yr.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_STDEVP([Attr]), all([Attr]))",{Attr:e}),n=I.customFormula(yr.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_STDEVP([Attr]), all([Attr]))",{Attr:e});return t.jaql=i=>{const a=Object.assign(Object.assign({},e.jaql(!0)),{filter:{or:[{fromNotEqual:r.jaql(!0)},{toNotEqual:n.jaql(!0)}]}});return i?a:{jaql:a}},t},"boxWhiskerStdDevOutliers"),CO=(e,t)=>{const r=e.category&&_.getColumnByName(t,e.category.column.name);r&&(r.direction=_.sortDirection(e.category.sortType));const n=_.getOrderedXValues(t,[],r?[r]:[],(r==null?void 0:r.direction)===0?_.rownumColumnName:void 0),i=_.getIndexedRows(t.rows,r?[r]:[]),a=_.getColumnByName(t,e.boxMin.column.name),o=_.getColumnByName(t,e.boxMedian.column.name),s=_.getColumnByName(t,e.boxMax.column.name),u=_.getColumnByName(t,e.whiskerMin.column.name),c=_.getColumnByName(t,e.whiskerMax.column.name),h=e.outliers&&_.getColumnByName(t,e.outliers.column.name),f=[],p=[];n.forEach((b,v)=>{const w=i[b.key],C=w?w[0]:[],M=r&&!!_.isBlurred(C,r);f.push({q1:a?_.getValue(C,a):0,median:o?_.getValue(C,o):0,q3:s?_.getValue(C,s):0,low:u?_.getValue(C,u):0,high:c?_.getValue(C,c):0,blur:M});const E=h?C[h.index].rawValue.split(",").map(S=>parseFloat(S)):[];p.push(...E.map(S=>({x:v,y:S,blur:M})))});const g=[{name:e.valueTitle,title:e.valueTitle,data:f}];return p.length>0&&g.push({name:e.valueTitle,title:e.valueTitle,data:p}),{type:"boxplot",xValues:n,series:g}};function TO(e){return e.type==="boxplot"}const MO=(e,t,r)=>({width:(t==null?void 0:t.width)||(e==null?void 0:e.width)||r.width,height:(t==null?void 0:t.height)||(e==null?void 0:e.height)||r.height}),rd=({children:e,defaultSize:t,size:r,rerenderOnResize:n=!1,useContentSize:i,onSizeChange:a,debounceMs:o=300})=>{const s=k.useRef(null),[u,c]=k.useState(),h=k.useRef(null),f=k.useCallback(()=>{var R,N;const P={width:(R=s.current)==null?void 0:R.offsetWidth,height:(N=s.current)==null?void 0:N.offsetHeight};c(B=>{const U=(B==null?void 0:B.width)===0&&P.width===t.width,K=(B==null?void 0:B.height)===0&&P.height===t.height,Q={width:U?B.width:P.width,height:K?B.height:P.height};return I.isEqual(B,Q)?B:Q})},[t]),p=k.useCallback(()=>{h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{f()},o)},[f,o]);k.useLayoutEffect(()=>{f()},[f]),k.useEffect(()=>{const P=s.current;if(!P)return;const R=new ResizeObserver(()=>{p()});return R.observe(P),()=>{R.disconnect(),h.current&&clearTimeout(h.current)}},[p]);const g=k.useMemo(()=>MO(u,r,t),[u,t,r]),b=!!u;k.useEffect(()=>{b&&a&&a(g)},[g,b,a]);const v={width:r!=null&&r.width&&!(i!=null&&i.width)?`${r.width}px`:"100%",height:r!=null&&r.height&&!(i!=null&&i.height)?`${r.height}px`:"100%"},w=(u==null?void 0:u.width)||(u==null?void 0:u.width)===void 0,C=(u==null?void 0:u.height)||(u==null?void 0:u.width)===void 0,M={width:w||i!=null&&i.width?"100%":`${g.width}px`,height:C||i!=null&&i.height?"100%":`${g.height}px`,position:"relative"},E=i!=null&&i.width||i!=null&&i.height?{position:"static",width:"100%",height:"100%"}:{position:"absolute",top:0,right:0,bottom:0,left:0},S=n?`${g==null?void 0:g.width}${g==null?void 0:g.height}`:"";return _.jsx("div",{style:v,ref:s,children:_.jsx("div",{style:M,children:_.jsx("div",{style:E,children:typeof e=="function"?e(g):e})},S)})},_w=32,ww={width:400,height:500},SO={width:400,height:400},EO={width:400,height:500},PO={width:200,height:200},nd=e=>I.isTable(e)?EO:I.isIndicator(e)?PO:SO,xw=(e,{hasHeader:t}={})=>{const r=e==="pivot"?ww:nd(e);return t?{width:r.width,height:r.height+_w}:r},o0=k.createContext({isInitialized:!1,tracking:{enabled:!0,packageName:"sdk-ui"},errorBoundary:{showErrorBox:!0}}),wt=()=>k.useContext(o0);function AO(){const[e,t]=k.useState(null);return k.useEffect(()=>{I.initializeI18n().initPromise.then(r=>t(r))},[]),e}const Cw=({children:e,userLanguage:t,customTranslations:r=[]})=>{const n=AO();return k.useEffect(()=>{if(t&&(n==null?void 0:n.language)!==t){for(const{language:i,resources:a,namespace:o="sdkUi"}of r.flat())n==null||n.addResourceBundle(i,o,a);n==null||n.changeLanguage(t)}},[n,t,r]),n&&_.jsx(Y3,{i18n:n,children:e})},RO=()=>e=>function(r){const{isInitialized:n}=wt();return n?_.jsx(e,T({},r)):_.jsx(Cw,{children:_.jsx(e,T({},r))})},s0="#F2F2F2",l0=4,u0="#D5D5D5",c0=1,d0="#D5D5D5",h0=1,f0="#DADADA",p0=1,m0="#DADADA",g0=1,v0=15,y0="#1FAFF3",Tw="#1FCCF3",OO={chart:{backgroundColor:"#FFFFFF",textColor:"#000000",secondaryTextColor:"#E4E4E4",animation:{init:{duration:"auto"},redraw:{duration:"auto"}}},typography:{fontFamily:'"Open Sans","Roboto","Helvetica","Arial",sans-serif',primaryTextColor:"#5B6372",secondaryTextColor:"#9EA2AB",hyperlinkColor:y0,hyperlinkHoverColor:Tw},palette:{variantColors:["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c"]},general:{backgroundColor:"#ffffff",brandColor:"#ffcb05",primaryButtonTextColor:"#3a4356",primaryButtonHoverColor:"#f2b900",popover:{cornerRadius:0,shadow:"0 -1px 5px 1px rgba(58, 67, 86, .2)",header:{backgroundColor:"#F4F4F8",textColor:"#5B6372"},footer:{backgroundColor:"#FFFFFF",textColor:"#5B6372"},content:{backgroundColor:"#FFFFFF",textColor:"#5B6372",clickableList:{item:{textColor:"#5B6372",backgroundColor:"#FFFFFF",hover:{textColor:"#000000",backgroundColor:"#F4F4F8"}}}},input:{backgroundColor:"#F4F4F8",textColor:"#5B6372",borderColor:{default:"transparent",focus:"#5B6372",hover:"transparent"},cornerRadius:4,dropdownList:{backgroundColor:"#FFFFFF",textColor:"#5B6372",borderColor:"#9EA2AB",cornerRadius:4,shadow:"0 -1px 5px 1px rgba(58, 67, 86, .2)",item:{backgroundColor:{default:"#FFFFFF",focus:"#FFFFFF",hover:"#F4F4F8"},textColor:"#5B6372"}},datepicker:{backgroundColor:"#FFFFFF",textColor:"#5B6372",cornerRadius:4,shadow:"0 -1px 5px 1px rgba(58, 67, 86, .2)",item:{backgroundColor:{default:"#FFFFFF",focus:"#FFFFFF",hover:"#F4F4F8"},textColor:{default:"#5B6372",focus:"#5B6372",hover:"#5B6372"}}}}},buttons:{primary:{backgroundColor:{default:"#FFCB05",focus:"#F2B900",hover:"#F2B900"},textColor:"#3A4356"},cancel:{backgroundColor:{default:"#EDEEF1",focus:"#D0D3DB",hover:"#D0D3DB"},textColor:"#3A4356"}}},widget:{spaceAround:"None",cornerRadius:"None",shadow:"None",border:!1,borderColor:"#9EA2AB",header:{titleTextColor:"#5B6372",titleFontSize:v0,titleAlignment:"Left",dividerLine:!1,dividerLineColor:"#5B6372",backgroundColor:"#FFFFFF"}},dashboard:{backgroundColor:"#FFFFFF",dividerLineWidth:l0,dividerLineColor:s0,borderColor:u0,borderWidth:c0,toolbar:{primaryTextColor:"#5B6372",secondaryTextColor:"#9EA2AB",backgroundColor:"#FFFFFF",dividerLineColor:d0,dividerLineWidth:h0}},filter:{panel:{titleColor:"#5B6372",backgroundColor:"#F6F6F6",dividerLineColor:f0,dividerLineWidth:p0,borderColor:m0,borderWidth:g0}},aiChat:{backgroundColor:"rgba(244, 244, 248, 1)",primaryTextColor:"rgba(38, 46, 61, 0.8)",secondaryTextColor:"rgba(38, 46, 61, 0.55)",primaryFontSize:["13px","18px"],body:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"16px",paddingBottom:"1px",gapBetweenMessages:"16px"},footer:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"12px",paddingBottom:"16px"},userMessages:{backgroundColor:"rgba(255, 255, 255, 1)"},systemMessages:{backgroundColor:"rgba(255, 255, 255, 1)"},input:{backgroundColor:"rgba(255, 255, 255, 1)",focus:{outlineColor:"rgba(38, 46, 61, 0.5)"}},header:{textColor:"rgba(38, 46, 61, 0.8)",backgroundColor:"rgba(255, 255, 255, 1)"},dropup:{backgroundColor:"rgba(255, 255, 255, 1)",boxShadow:"0px 1px 2px rgba(9, 9, 10, 0.1), 0px 2px 4px rgba(9, 9, 10, 0.1)",borderRadius:"4px",headers:{textColor:"rgba(38, 46, 61, 0.8)",hover:{backgroundColor:"rgba(244, 244, 248, 1)"}},items:{textColor:"rgba(38, 46, 61, 0.8)",hover:{backgroundColor:"rgba(244, 244, 248, 1)"}}},border:"1px solid #c6c9ce",borderRadius:"30px",suggestions:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(244, 244, 248, 1)",border:"1px solid",borderRadius:"16px",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(12, 14, 18, 0.07)"},loadingGradient:["rgba(194, 196, 203, 1)","rgba(236, 236, 239, 1)"],gap:"8px"},clickableMessages:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(244, 244, 248, 1)",border:"1px solid",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(12, 14, 18, 0.07)"}},dataTopics:{backgroundColor:"rgba(255, 255, 255, 1)",items:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(244, 244, 248, 1)"}},icons:{color:"rgba(38, 46, 61, 0.67)",feedbackIcons:{hoverColor:"rgba(12, 14, 18, 0.07)"}},tooltips:{backgroundColor:"rgba(255, 255, 255, 1)",textColor:"rgba(38, 46, 61, 0.8)",boxShadow:"0px 4px 12px 0px rgba(9, 9, 10, 0.20), 0px 1px 4px 0px rgba(9, 9, 10, 0.10)"}}},kO={chart:{backgroundColor:"#313138",textColor:"#FFFFFF",secondaryTextColor:"#C5C8CF",animation:{init:{duration:"auto"},redraw:{duration:"auto"}}},typography:{fontFamily:'"Open Sans","Roboto","Helvetica","Arial",sans-serif',primaryTextColor:"#FFFFFF",secondaryTextColor:"#C5C8CF",hyperlinkColor:y0,hyperlinkHoverColor:Tw},palette:{variantColors:["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c"]},general:{backgroundColor:"#16161C",brandColor:"#FFCB05",primaryButtonTextColor:"#3A4356",primaryButtonHoverColor:"#F2B900",popover:{cornerRadius:0,shadow:"0 -1px 5px 1px rgba(58, 67, 86, .2)",header:{backgroundColor:"#313138",textColor:"#FFFFFF"},footer:{backgroundColor:"#16161C",textColor:"#FFFFFF"},content:{backgroundColor:"#16161C",textColor:"#FFFFFF",clickableList:{item:{textColor:"#FFFFFF",backgroundColor:"#16161C",hover:{textColor:"#FFFFFF",backgroundColor:"#3C3C42"}}}},input:{cornerRadius:4,backgroundColor:"#3C3C42",textColor:"#FFFFFF",borderColor:{default:"transparent",focus:"#FFFFFF",hover:"transparent"},dropdownList:{backgroundColor:"#16161C",textColor:"#FFFFFF",borderColor:"#9EA2AB",cornerRadius:4,shadow:"0 -1px 5px 1px rgba(58, 67, 86, .2)",item:{backgroundColor:{default:"#16161C",focus:"#16161C",hover:"#3C3C42"},textColor:"#FFFFFF"}},datepicker:{backgroundColor:"#FFFFFF",textColor:"#5B6372",cornerRadius:4,shadow:"0 -1px 5px 1px rgba(58, 67, 86, .2)",item:{backgroundColor:{default:"#FFFFFF",focus:"#FFFFFF",hover:"#F4F4F8"},textColor:{default:"#5B6372",focus:"#5B6372",hover:"#5B6372"}}}}},buttons:{primary:{backgroundColor:{default:"#FFCB05",focus:"#F2B900",hover:"#F2B900"},textColor:"#3A4356"},cancel:{backgroundColor:{default:"#EDEEF1",focus:"#D0D3DB",hover:"#D0D3DB"},textColor:"#3A4356"}}},widget:{spaceAround:"None",cornerRadius:"None",shadow:"None",border:!1,borderColor:"#C5C8CF",header:{titleTextColor:"#FFFFFF",titleAlignment:"Left",titleFontSize:v0,dividerLine:!1,dividerLineColor:"#FFFFFF",backgroundColor:"#313138"}},dashboard:{backgroundColor:"#313138",dividerLineWidth:l0,dividerLineColor:s0,borderColor:u0,borderWidth:c0,toolbar:{primaryTextColor:"#FFFFFF",secondaryTextColor:"#C5C8CF",backgroundColor:"#313138",dividerLineColor:d0,dividerLineWidth:h0}},filter:{panel:{titleColor:"#FFFFFF",backgroundColor:"#313138",dividerLineColor:f0,dividerLineWidth:p0,borderColor:m0,borderWidth:g0}},aiChat:{backgroundColor:"rgba(23, 28, 38, 1)",primaryTextColor:"rgba(242, 247, 255, 0.9)",secondaryTextColor:"rgba(242, 247, 255, 0.4)",primaryFontSize:["13px","18px"],body:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"16px",paddingBottom:"1px",gapBetweenMessages:"16px"},footer:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"12px",paddingBottom:"16px"},userMessages:{backgroundColor:"rgba(31, 92, 153, 1)"},systemMessages:{backgroundColor:"rgba(46, 55, 77, 1)"},input:{backgroundColor:"rgba(242, 247, 255, 0.1)",focus:{outlineColor:"rgba(242, 247, 255, 0.5)"}},header:{backgroundColor:"#313138",textColor:"rgba(242, 247, 255, 0.9)"},dropup:{backgroundColor:"rgba(38, 46, 64, 1)",boxShadow:"0px 1px 4px 0px #020203, 0px 2px 12px 2px rgba(2, 2, 3, 0.25)",borderRadius:"8px",headers:{textColor:"rgba(242, 247, 255, 0.6)",hover:{backgroundColor:"rgba(242, 247, 255, 0.1)"}},items:{textColor:"rgba(242, 247, 255, 0.9)",hover:{backgroundColor:"rgba(242, 247, 255, 0.1)"}}},border:!1,borderRadius:"30px",suggestions:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(23, 28, 38, 1)",border:"1px solid",borderRadius:"16px",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(242, 247, 255, 0.1)"},loadingGradient:["rgba(242, 247, 255, 0.1)","rgba(242, 247, 255, 0.3)"],gap:"8px"},clickableMessages:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(23, 28, 38, 1)",border:"1px solid",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(242, 247, 255, 0.1)"}},dataTopics:{backgroundColor:"rgba(23, 28, 38, 1)",items:{textColor:"rgba(242, 247, 255, 0.9)",backgroundColor:"rgba(46, 55, 77, 1)"}},icons:{color:"rgba(242, 247, 255, 0.5)",feedbackIcons:{hoverColor:"rgba(242, 247, 255, 0.1)"}},tooltips:{textColor:"rgba(242, 247, 255, 0.9)",backgroundColor:"rgba(46, 55, 77, 1)",boxShadow:"0px 1px 8px 0px #020203, 0px 4px 24px 4px rgba(2, 2, 3, 0.25)"}}},lc=(e=!1)=>e?I.cloneDeep(kO):I.cloneDeep(OO),b0=k.createContext({themeSettings:lc()}),it=()=>k.useContext(b0);function Mw({color:e="#FFCB05"}){return _.jsx("svg",{width:"53px",height:"53px",viewBox:"0 0 53 53",children:_.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:_.jsxs("g",{children:[_.jsx("polygon",{points:"26.4996 -0.000100000005 -0.000400000001 26.5009 26.4996 52.9999 53.0006 26.5009",fill:e}),_.jsx("path",{d:"M24.5,39.054 L24.5,35.054 L28.5,35.054 L28.5,39.054 L24.5,39.054 Z M28.5,31.0536 L24.5,31.0536 L23.5,13.0536 L29.5,13.0536 L28.5,31.0536 Z",fill:"#FFFFFF"})]})})})}const DO="_container_1wquj_1",NO="_card_1wquj_11",LO="_text_1wquj_19",Hh={container:DO,card:NO,text:LO},_0=({error:e=new I.TranslatableError("errors.componentRenderError")})=>{var p,g,b,v,w,C;const{themeSettings:t}=it(),{app:r}=wt(),{t:n}=_.useTranslation(),[i,a]=k.useState(!1),o=()=>{a(!0)},s=()=>{a(!1)},u=_.jsx("div",{className:"csdk-flex csdk-justify-center csdk-mb-[10px]",children:_.jsx(Mw,{color:(p=t==null?void 0:t.general)==null?void 0:p.brandColor})}),c=e instanceof I.AbstractTranslatableError?n(e.key,T({},e.interpolationOptions)):n(e instanceof Error?e.message:e),h=n("errorBoxText",{errorMessage:c,interpolation:{escapeValue:!1}}),f=(b=(g=r==null?void 0:r.settings)==null?void 0:g.errorBoundaryConfig)==null?void 0:b.alwaysShowErrorText;return _.jsx("div",{onMouseEnter:f?void 0:o,onMouseLeave:f?void 0:s,className:Hh.container,"aria-label":"error-box",children:_.jsxs("div",{className:Hh.card,style:{backgroundColor:((v=t==null?void 0:t.general)==null?void 0:v.backgroundColor)||"rgba(255,255,255,0.5)"},children:[u,(f||i)&&_.jsx("div",{className:Hh.text,style:{color:((w=t==null?void 0:t.typography)==null?void 0:w.primaryTextColor)||_.DEFAULT_TEXT_COLOR,fontFamily:((C=t==null?void 0:t.typography)==null?void 0:C.fontFamily)||"inherit"},children:h})]})})};let Sw=class extends k.Component{constructor(r){super(r);Ze(this,"showErrorBox",!0);Ze(this,"onError");Ze(this,"isContainerComponent");this.onError=r.onError,this.isContainerComponent=r.isContainerComponent||!1,this.state={error:null,customErrorUI:null}}static getDerivedStateFromError(r){return{error:r,customErrorUI:null}}componentDidCatch(r){const n=r instanceof Error?r:new Error(r);if(this.onError){const i=this.onError(n);if(i!==void 0&&k.isValidElement(i)){this.setState({error:r,customErrorUI:i});return}}this.setState({error:r})}componentDidUpdate(r,n){if(n.error!==null&&IO(r.resetKeys,this.props.resetKeys)&&this.setState({error:null,customErrorUI:null}),this.props.error&&!r.error&&!n.error&&!this.state.error&&this.onError){const i=this.props.error instanceof Error?this.props.error:new Error(String(this.props.error)),a=this.onError(i);a!==void 0&&k.isValidElement(a)&&this.setState({customErrorUI:a})}}render(){const{error:r,customErrorUI:n}=this.state,{shouldRenderChildrenWithProvidedError:i,showErrorBox:a,error:o,children:s}=this.props,u=r||o;return!u||o&&!r&&i?s:a?n||_.jsx(_0,{error:u}):null}};function IO(e=[],t=[]){return e.length!==t.length||e.some((r,n)=>!I.isEqual(r,t[n]))}const Ew=({componentName:e})=>t=>function(n){const i=wt(),a=o=>{var s,u;return(u=(s=i.errorBoundary).onError)==null?void 0:u.call(s,o,{componentName:e,componentProps:n})};return _.jsx(Sw,{resetKeys:Object.values(n),showErrorBox:i.errorBoundary.showErrorBox,onError:a,isContainerComponent:!!(n!=null&&n.children),children:_.jsx(t,T({},n))})},w0=k.createContext(null),id=()=>k.useContext(w0),Hs=Z.createContext({});process.env.NODE_ENV!=="production"&&(Hs.displayName="ListContext");function $O(e){return ht("MuiDivider",e)}const $y=ft("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),FO=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:s,variant:u}=e;return Et({root:["root",t&&"absolute",u,a&&"light",o==="vertical"&&"vertical",i&&"flexItem",r&&"withChildren",r&&o==="vertical"&&"withChildrenVertical",s==="right"&&o!=="vertical"&&"textAlignRight",s==="left"&&o!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",o==="vertical"&&"wrapperVertical"]},$O,n)},zO=De("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(kt(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Tt(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),BO=De("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(kt(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Yi=Z.forwardRef(function(t,r){const n=_t({props:t,name:"MuiDivider"}),C=n,{absolute:i=!1,children:a,className:o,orientation:s="horizontal",component:u=a||s==="vertical"?"div":"hr",flexItem:c=!1,light:h=!1,role:f=u!=="hr"?"separator":void 0,textAlign:p="center",variant:g="fullWidth"}=C,b=Ce(C,["absolute","children","className","orientation","component","flexItem","light","role","textAlign","variant"]),v=$(T({},n),{absolute:i,component:u,flexItem:c,light:h,orientation:s,role:f,textAlign:p,variant:g}),w=FO(v);return fe.jsx(zO,$(T({as:u,className:ze(w.root,o),role:f,ref:r,ownerState:v,"aria-orientation":f==="separator"&&(u!=="hr"||s==="vertical")?s:void 0},b),{children:a?fe.jsx(BO,{className:w.wrapper,ownerState:v,children:a}):null}))});Yi&&(Yi.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(Yi.propTypes={absolute:y.bool,children:y.node,classes:y.object,className:y.string,component:y.elementType,flexItem:y.bool,light:y.bool,orientation:y.oneOf(["horizontal","vertical"]),role:y.string,sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object]),textAlign:y.oneOf(["center","left","right"]),variant:y.oneOfType([y.oneOf(["fullWidth","inset","middle"]),y.string])});const Fy=ft("MuiListItemIcon",["root","alignItemsFlexStart"]);function WO(e){return ht("MuiTypography",e)}const HO=ft("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),jO={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},VO=NR(),GO=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:o}=e,s={root:["root",a,e.align!=="inherit"&&`align${Le(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Et(s,WO,o)},UO=De("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Le(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(kt(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([r,n])=>r!=="inherit"&&n&&typeof n=="object").map(([r,n])=>({props:{variant:r},style:n})),...Object.entries(e.palette).filter(wi()).map(([r])=>({props:{color:r},style:{color:(e.vars||e).palette[r].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${Le(r)}`},style:{color:(e.vars||e).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}})),zy={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Pr=Z.forwardRef(function(t,r){const E=_t({props:t,name:"MuiTypography"}),{color:n}=E,i=Ce(E,["color"]),a=!jO[n],o=VO(T(T({},i),a&&{color:n})),S=o,{align:s="inherit",className:u,component:c,gutterBottom:h=!1,noWrap:f=!1,paragraph:p=!1,variant:g="body1",variantMapping:b=zy}=S,v=Ce(S,["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"]),w=$(T({},o),{align:s,color:n,className:u,component:c,gutterBottom:h,noWrap:f,paragraph:p,variant:g,variantMapping:b}),C=c||(p?"p":b[g]||zy[g])||"span",M=GO(w);return fe.jsx(UO,$(T({as:C,ref:r,className:ze(M.root,u)},v),{ownerState:w,style:T(T({},s!=="inherit"&&{"--Typography-textAlign":s}),v.style)}))});process.env.NODE_ENV!=="production"&&(Pr.propTypes={align:y.oneOf(["center","inherit","justify","left","right"]),children:y.node,classes:y.object,className:y.string,color:y.oneOfType([y.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),y.string]),component:y.elementType,gutterBottom:y.bool,noWrap:y.bool,paragraph:y.bool,style:y.object,sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object]),variant:y.oneOfType([y.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),y.string]),variantMapping:y.object});function YO(e){return ht("MuiListItemText",e)}const Gf=ft("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function qO(e){return ht("MuiMenuItem",e)}const Qo=ft("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),XO=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},ZO=e=>{const{disabled:t,dense:r,divider:n,disableGutters:i,selected:a,classes:o}=e,u=Et({root:["root",r&&"dense",t&&"disabled",!i&&"gutters",n&&"divider",a&&"selected"]},qO,o);return T(T({},o),u)},KO=De(sa,{shouldForwardProp:e=>pl(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:XO})(kt(({theme:e})=>$(T({},e.typography.body1),{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Qo.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Qo.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Qo.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Tt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Qo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Qo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${$y.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${$y.inset}`]:{marginLeft:52},[`& .${Gf.root}`]:{marginTop:0,marginBottom:0},[`& .${Gf.inset}`]:{paddingLeft:36},[`& .${Fy.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:$(T({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2),{[`& .${Fy.root} svg`]:{fontSize:"1.25rem"}})}]}))),ad=Z.forwardRef(function(t,r){const n=_t({props:t,name:"MuiMenuItem"}),P=n,{autoFocus:i=!1,component:a="li",dense:o=!1,divider:s=!1,disableGutters:u=!1,focusVisibleClassName:c,role:h="menuitem",tabIndex:f,className:p}=P,g=Ce(P,["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"]),b=Z.useContext(Hs),v=Z.useMemo(()=>({dense:o||b.dense||!1,disableGutters:u}),[b.dense,o,u]),w=Z.useRef(null);on(()=>{i&&(w.current?w.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[i]);const C=$(T({},n),{dense:v.dense,divider:s,disableGutters:u}),M=ZO(n),E=or(w,r);let S;return n.disabled||(S=f!==void 0?f:-1),fe.jsx(Hs.Provider,{value:v,children:fe.jsx(KO,$(T({ref:E,role:h,tabIndex:S,component:a,focusVisibleClassName:ze(M.focusVisible,c),className:ze(M.root,p)},g),{ownerState:C,classes:M}))})});process.env.NODE_ENV!=="production"&&(ad.propTypes={autoFocus:y.bool,children:y.node,classes:y.object,className:y.string,component:y.elementType,dense:y.bool,disabled:y.bool,disableGutters:y.bool,divider:y.bool,focusVisibleClassName:y.string,role:y.string,selected:y.bool,sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object]),tabIndex:y.number});const QO=({children:e,disabled:t,style:r,className:n="",onClick:i})=>{const{themeSettings:a}=it();return _.jsx("div",{className:`csdk-menu-item ${n}`,children:_.jsx(ad,{disabled:t,sx:T({width:"100%",minWidth:"170px",height:"29px",minHeight:"29px",fontFamily:a.typography.fontFamily,fontSize:"13px",paddingLeft:"30px",paddingRight:"15px",color:_.DEFAULT_TEXT_COLOR,"&:hover":{backgroundColor:_.DEFAULT_BACKGROUND_COLOR}},r),onClick:i,children:_.jsx("div",{className:"csdk-menu-item-content",children:e})})})};function JO(e){return ht("MuiListSubheader",e)}ft("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const ek=e=>{const{classes:t,color:r,disableGutters:n,inset:i,disableSticky:a}=e,o={root:["root",r!=="default"&&`color${Le(r)}`,!n&&"gutters",i&&"inset",!a&&"sticky"]};return Et(o,JO,t)},tk=De("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Le(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(kt(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),uc=Z.forwardRef(function(t,r){const n=_t({props:t,name:"MuiListSubheader"}),g=n,{className:i,color:a="default",component:o="li",disableGutters:s=!1,disableSticky:u=!1,inset:c=!1}=g,h=Ce(g,["className","color","component","disableGutters","disableSticky","inset"]),f=$(T({},n),{color:a,component:o,disableGutters:s,disableSticky:u,inset:c}),p=ek(f);return fe.jsx(tk,T({as:o,className:ze(p.root,i),ref:r,ownerState:f},h))});uc&&(uc.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(uc.propTypes={children:y.node,classes:y.object,className:y.string,color:y.oneOf(["default","inherit","primary"]),component:y.elementType,disableGutters:y.bool,disableSticky:y.bool,inset:y.bool,sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object])});const rk=({children:e})=>{const{themeSettings:t}=it();return _.jsx(uc,{sx:{width:"100%",minWidth:"170px",backgroundColor:"#f2f2f2",borderBottom:"1px solid #e6e6e6",height:"29px",lineHeight:"29px",fontFamily:t.typography.fontFamily,fontSize:"13px",paddingLeft:"15px",paddingRight:"15px",color:_.DEFAULT_TEXT_COLOR},children:e})};var Uf={exports:{}},lt={};/**
151
+ * @license React
152
+ * react-is.production.js
153
+ *
154
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
155
+ *
156
+ * This source code is licensed under the MIT license found in the
157
+ * LICENSE file in the root directory of this source tree.
158
+ */var By;function nk(){if(By)return lt;By=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),g=Symbol.for("react.client.reference");function b(v){if(typeof v=="object"&&v!==null){var w=v.$$typeof;switch(w){case e:switch(v=v.type,v){case r:case i:case n:case u:case c:return v;default:switch(v=v&&v.$$typeof,v){case o:case s:case f:case h:return v;case a:return v;default:return w}}case t:return w}}}return lt.ContextConsumer=a,lt.ContextProvider=o,lt.Element=e,lt.ForwardRef=s,lt.Fragment=r,lt.Lazy=f,lt.Memo=h,lt.Portal=t,lt.Profiler=i,lt.StrictMode=n,lt.Suspense=u,lt.SuspenseList=c,lt.isContextConsumer=function(v){return b(v)===a},lt.isContextProvider=function(v){return b(v)===o},lt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},lt.isForwardRef=function(v){return b(v)===s},lt.isFragment=function(v){return b(v)===r},lt.isLazy=function(v){return b(v)===f},lt.isMemo=function(v){return b(v)===h},lt.isPortal=function(v){return b(v)===t},lt.isProfiler=function(v){return b(v)===i},lt.isStrictMode=function(v){return b(v)===n},lt.isSuspense=function(v){return b(v)===u},lt.isSuspenseList=function(v){return b(v)===c},lt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===i||v===n||v===u||v===c||v===p||typeof v=="object"&&v!==null&&(v.$$typeof===f||v.$$typeof===h||v.$$typeof===o||v.$$typeof===a||v.$$typeof===s||v.$$typeof===g||v.getModuleId!==void 0)},lt.typeOf=b,lt}var ut={};/**
159
+ * @license React
160
+ * react-is.development.js
161
+ *
162
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
163
+ *
164
+ * This source code is licensed under the MIT license found in the
165
+ * LICENSE file in the root directory of this source tree.
166
+ */var Wy;function ik(){return Wy||(Wy=1,process.env.NODE_ENV!=="production"&&function(){function e(v){if(typeof v=="object"&&v!==null){var w=v.$$typeof;switch(w){case t:switch(v=v.type,v){case n:case a:case i:case c:case h:return v;default:switch(v=v&&v.$$typeof,v){case s:case u:case p:case f:return v;case o:return v;default:return w}}case r:return w}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),b=Symbol.for("react.client.reference");ut.ContextConsumer=o,ut.ContextProvider=s,ut.Element=t,ut.ForwardRef=u,ut.Fragment=n,ut.Lazy=p,ut.Memo=f,ut.Portal=r,ut.Profiler=a,ut.StrictMode=i,ut.Suspense=c,ut.SuspenseList=h,ut.isContextConsumer=function(v){return e(v)===o},ut.isContextProvider=function(v){return e(v)===s},ut.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},ut.isForwardRef=function(v){return e(v)===u},ut.isFragment=function(v){return e(v)===n},ut.isLazy=function(v){return e(v)===p},ut.isMemo=function(v){return e(v)===f},ut.isPortal=function(v){return e(v)===r},ut.isProfiler=function(v){return e(v)===a},ut.isStrictMode=function(v){return e(v)===i},ut.isSuspense=function(v){return e(v)===c},ut.isSuspenseList=function(v){return e(v)===h},ut.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===a||v===i||v===c||v===h||v===g||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===f||v.$$typeof===s||v.$$typeof===o||v.$$typeof===u||v.$$typeof===b||v.getModuleId!==void 0)},ut.typeOf=e}()),ut}process.env.NODE_ENV==="production"?Uf.exports=nk():Uf.exports=ik();var x0=Uf.exports;function ak(e){return ht("MuiList",e)}ft("MuiList",["root","padding","dense","subheader"]);const ok=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Et({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},ak,t)},sk=De("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),C0=Z.forwardRef(function(t,r){const n=_t({props:t,name:"MuiList"}),b=n,{children:i,className:a,component:o="ul",dense:s=!1,disablePadding:u=!1,subheader:c}=b,h=Ce(b,["children","className","component","dense","disablePadding","subheader"]),f=Z.useMemo(()=>({dense:s}),[s]),p=$(T({},n),{component:o,dense:s,disablePadding:u}),g=ok(p);return fe.jsx(Hs.Provider,{value:f,children:fe.jsxs(sk,$(T({as:o,className:ze(g.root,a),ref:r,ownerState:p},h),{children:[c,i]}))})});process.env.NODE_ENV!=="production"&&(C0.propTypes={children:y.node,classes:y.object,className:y.string,component:y.elementType,dense:y.bool,disablePadding:y.bool,subheader:y.node,sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object])});function lk(e,t){if(!e)return t;if(typeof e=="function"||typeof t=="function")return i=>{const a=typeof t=="function"?t(i):t,o=typeof e=="function"?e(T(T({},i),a)):e,s=ze(i==null?void 0:i.className,a==null?void 0:a.className,o==null?void 0:o.className);return T(T(T(T(T({},a),o),!!s&&{className:s}),(a==null?void 0:a.style)&&(o==null?void 0:o.style)&&{style:T(T({},a.style),o.style)}),(a==null?void 0:a.sx)&&(o==null?void 0:o.sx)&&{sx:[...Array.isArray(a.sx)?a.sx:[a.sx],...Array.isArray(o.sx)?o.sx:[o.sx]]})};const r=t,n=ze(r==null?void 0:r.className,e==null?void 0:e.className);return T(T(T(T(T({},t),e),!!n&&{className:n}),(r==null?void 0:r.style)&&(e==null?void 0:e.style)&&{style:T(T({},r.style),e.style)}),(r==null?void 0:r.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]})}function jh(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Hy(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Pw(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function Jo(e,t,r,n,i,a){let o=!1,s=i(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}const u=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!Pw(s,a)||u)s=i(e,s,r);else return s.focus(),!0}return!1}const T0=Z.forwardRef(function(t,r){const E=t,{actions:n,autoFocus:i=!1,autoFocusItem:a=!1,children:o,className:s,disabledItemsFocusable:u=!1,disableListWrap:c=!1,onKeyDown:h,variant:f="selectedMenu"}=E,p=Ce(E,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),g=Z.useRef(null),b=Z.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});on(()=>{i&&g.current.focus()},[i]),Z.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(S,{direction:P})=>{const R=!g.current.style.width;if(S.clientHeight<g.current.clientHeight&&R){const N=`${tw(Qn(S))}px`;g.current.style[P==="rtl"?"paddingLeft":"paddingRight"]=N,g.current.style.width=`calc(100% + ${N})`}return g.current}}),[]);const v=S=>{const P=g.current,R=S.key;if(S.ctrlKey||S.metaKey||S.altKey){h&&h(S);return}const B=Dr(P).activeElement;if(R==="ArrowDown")S.preventDefault(),Jo(P,B,c,u,jh);else if(R==="ArrowUp")S.preventDefault(),Jo(P,B,c,u,Hy);else if(R==="Home")S.preventDefault(),Jo(P,null,c,u,jh);else if(R==="End")S.preventDefault(),Jo(P,null,c,u,Hy);else if(R.length===1){const U=b.current,K=R.toLowerCase(),Q=performance.now();U.keys.length>0&&(Q-U.lastTime>500?(U.keys=[],U.repeating=!0,U.previousKeyMatched=!0):U.repeating&&K!==U.keys[0]&&(U.repeating=!1)),U.lastTime=Q,U.keys.push(K);const O=B&&!U.repeating&&Pw(B,U);U.previousKeyMatched&&(O||Jo(P,B,!1,u,jh,U))?S.preventDefault():U.previousKeyMatched=!1}h&&h(S)},w=or(g,r);let C=-1;Z.Children.forEach(o,(S,P)=>{if(!Z.isValidElement(S)){C===P&&(C+=1,C>=o.length&&(C=-1));return}process.env.NODE_ENV!=="production"&&x0.isFragment(S)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
167
+ `)),S.props.disabled||(f==="selectedMenu"&&S.props.selected||C===-1)&&(C=P),C===P&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(C+=1,C>=o.length&&(C=-1))});const M=Z.Children.map(o,(S,P)=>{if(P===C){const R={};return a&&(R.autoFocus=!0),S.props.tabIndex===void 0&&f==="selectedMenu"&&(R.tabIndex=0),Z.cloneElement(S,R)}return S});return fe.jsx(C0,$(T({role:"menu",ref:w,className:s,onKeyDown:v,tabIndex:i?0:-1},p),{children:M}))});process.env.NODE_ENV!=="production"&&(T0.propTypes={autoFocus:y.bool,autoFocusItem:y.bool,children:y.node,className:y.string,disabledItemsFocusable:y.bool,disableListWrap:y.bool,onKeyDown:y.func,variant:y.oneOf(["menu","selectedMenu"])});function Yf(e){return typeof e=="string"}function js(e,t){var a,o;const{timeout:r,easing:n,style:i={}}=e;return{duration:(a=i.transitionDuration)!=null?a:typeof r=="number"?r:r[t.mode]||0,easing:(o=i.transitionTimingFunction)!=null?o:typeof n=="object"?n[t.mode]:n,delay:i.transitionDelay}}function qf(e){return`scale(${e}, ${gn(e,2)})`}const uk={entering:{opacity:1,transform:qf(1)},entered:{opacity:1,transform:"none"}},Vh=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Vs=Z.forwardRef(function(t,r){const j=t,{addEndListener:n,appear:i=!0,children:a,easing:o,in:s,onEnter:u,onEntered:c,onEntering:h,onExit:f,onExited:p,onExiting:g,style:b,timeout:v="auto",TransitionComponent:w=sn}=j,C=Ce(j,["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),M=ji(),E=Z.useRef(),S=fl(),P=Z.useRef(null),R=or(P,vo(a),r),N=V=>W=>{if(V){const G=P.current;W===void 0?V(G):V(G,W)}},B=N(h),U=N((V,W)=>{const{duration:G,delay:te,easing:z}=js({style:b,timeout:v,easing:o},{mode:"enter"});let Y;v==="auto"?(Y=S.transitions.getAutoHeightDuration(V.clientHeight),E.current=Y):Y=G,V.style.transition=[S.transitions.create("opacity",{duration:Y,delay:te}),S.transitions.create("transform",{duration:Vh?Y:Y*.666,delay:te,easing:z})].join(","),u&&u(V,W)}),K=N(c),Q=N(g),O=N(V=>{const{duration:W,delay:G,easing:te}=js({style:b,timeout:v,easing:o},{mode:"exit"});let z;v==="auto"?(z=S.transitions.getAutoHeightDuration(V.clientHeight),E.current=z):z=W,V.style.transition=[S.transitions.create("opacity",{duration:z,delay:G}),S.transitions.create("transform",{duration:Vh?z:z*.666,delay:Vh?G:G||z*.333,easing:te})].join(","),V.style.opacity=0,V.style.transform=qf(.75),f&&f(V)}),F=N(p),q=V=>{v==="auto"&&M.start(E.current||0,V),n&&n(P.current,V)};return fe.jsx(w,$(T({appear:i,in:s,nodeRef:P,onEnter:U,onEntered:K,onEntering:B,onExit:O,onExited:F,onExiting:Q,addEndListener:q,timeout:v==="auto"?null:v},C),{children:(V,te)=>{var z=te,{ownerState:W}=z,G=Ce(z,["ownerState"]);return Z.cloneElement(a,T({style:T(T(T({opacity:0,transform:qf(.75),visibility:V==="exited"&&!s?"hidden":void 0},uk[V]),b),a.props.style),ref:R},G))}}))});process.env.NODE_ENV!=="production"&&(Vs.propTypes={addEndListener:y.func,appear:y.bool,children:oa.isRequired,easing:y.oneOfType([y.shape({enter:y.string,exit:y.string}),y.string]),in:y.bool,onEnter:y.func,onEntered:y.func,onEntering:y.func,onExit:y.func,onExited:y.func,onExiting:y.func,style:y.object,timeout:y.oneOfType([y.oneOf(["auto"]),y.number,y.shape({appear:y.number,enter:y.number,exit:y.number})])});Vs&&(Vs.muiSupportAuto=!0);function ck(e){const t=Dr(e);return t.body===e?Qn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ss(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function jy(e){return parseInt(Qn(e).getComputedStyle(e).paddingRight,10)||0}function dk(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function Vy(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,o=>{const s=!a.includes(o),u=!dk(o);s&&u&&Ss(o,i)})}function Gh(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function hk(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(ck(n)){const o=tw(Qn(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${jy(n)+o}px`;const s=Dr(n).querySelectorAll(".mui-fixed");[].forEach.call(s,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${jy(u)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Dr(n).body;else{const o=n.parentElement,s=Qn(n);a=(o==null?void 0:o.nodeName)==="HTML"&&s.getComputedStyle(o).overflowY==="scroll"?o:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:o,property:s})=>{a?o.style.setProperty(s,a):o.style.removeProperty(s)})}}function fk(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class pk{constructor(){this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Ss(t.modalRef,!1);const i=fk(r);Vy(r,t.mount,t.modalRef,i,!0);const a=Gh(this.containers,o=>o.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=Gh(this.containers,a=>a.modals.includes(t)),i=this.containers[n];i.restore||(i.restore=hk(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=Gh(this.containers,o=>o.modals.includes(t)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&Ss(t.modalRef,r),Vy(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=a.modals[a.modals.length-1];o.modalRef&&Ss(o.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const mk=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function gk(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function vk(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function yk(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||vk(e))}function bk(e){const t=[],r=[];return Array.from(e.querySelectorAll(mk)).forEach((n,i)=>{const a=gk(n);a===-1||!yk(n)||(a===0?t.push(n):r.push({documentOrder:i,tabIndex:a,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function _k(){return!0}function cc(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=bk,isEnabled:o=_k,open:s}=e,u=Z.useRef(!1),c=Z.useRef(null),h=Z.useRef(null),f=Z.useRef(null),p=Z.useRef(null),g=Z.useRef(!1),b=Z.useRef(null),v=or(vo(t),b),w=Z.useRef(null);Z.useEffect(()=>{!s||!b.current||(g.current=!r)},[r,s]),Z.useEffect(()=>{if(!s||!b.current)return;const E=Dr(b.current);return b.current.contains(E.activeElement)||(b.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
168
+ `)),b.current.setAttribute("tabIndex","-1")),g.current&&b.current.focus()),()=>{i||(f.current&&f.current.focus&&(u.current=!0,f.current.focus()),f.current=null)}},[s]),Z.useEffect(()=>{if(!s||!b.current)return;const E=Dr(b.current),S=N=>{w.current=N,!(n||!o()||N.key!=="Tab")&&E.activeElement===b.current&&N.shiftKey&&(u.current=!0,h.current&&h.current.focus())},P=()=>{var U,K;const N=b.current;if(N===null)return;if(!E.hasFocus()||!o()||u.current){u.current=!1;return}if(N.contains(E.activeElement)||n&&E.activeElement!==c.current&&E.activeElement!==h.current)return;if(E.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!g.current)return;let B=[];if((E.activeElement===c.current||E.activeElement===h.current)&&(B=a(b.current)),B.length>0){const Q=!!((U=w.current)!=null&&U.shiftKey&&((K=w.current)==null?void 0:K.key)==="Tab"),O=B[0],F=B[B.length-1];typeof O!="string"&&typeof F!="string"&&(Q?F.focus():O.focus())}else N.focus()};E.addEventListener("focusin",P),E.addEventListener("keydown",S,!0);const R=setInterval(()=>{E.activeElement&&E.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(R),E.removeEventListener("focusin",P),E.removeEventListener("keydown",S,!0)}},[r,n,i,o,s,a]);const C=E=>{f.current===null&&(f.current=E.relatedTarget),g.current=!0,p.current=E.target;const S=t.props.onFocus;S&&S(E)},M=E=>{f.current===null&&(f.current=E.relatedTarget),g.current=!0};return fe.jsxs(Z.Fragment,{children:[fe.jsx("div",{tabIndex:s?0:-1,onFocus:M,ref:c,"data-testid":"sentinelStart"}),Z.cloneElement(t,{ref:v,onFocus:C}),fe.jsx("div",{tabIndex:s?0:-1,onFocus:M,ref:h,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(cc.propTypes={children:oa,disableAutoFocus:y.bool,disableEnforceFocus:y.bool,disableRestoreFocus:y.bool,getTabbable:y.func,isEnabled:y.func,open:y.bool.isRequired});process.env.NODE_ENV!=="production"&&(cc.propTypes=Qm(cc.propTypes));function wk(e){return typeof e=="function"?e():e}const Gs=Z.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[o,s]=Z.useState(null),u=or(Z.isValidElement(n)?vo(n):null,r);if(on(()=>{a||s(wk(i)||document.body)},[i,a]),on(()=>{if(o&&!a)return Cy(r,o),()=>{Cy(r,null)}},[r,o,a]),a){if(Z.isValidElement(n)){const c={ref:u};return Z.cloneElement(n,c)}return n}return o&&U3.createPortal(n,o)});process.env.NODE_ENV!=="production"&&(Gs.propTypes={children:y.node,container:y.oneOfType([Kn,y.func]),disablePortal:y.bool});process.env.NODE_ENV!=="production"&&(Gs.propTypes=Qm(Gs.propTypes));const xk={entering:{opacity:1},entered:{opacity:1}},M0=Z.forwardRef(function(t,r){const n=fl(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},q=t,{addEndListener:a,appear:o=!0,children:s,easing:u,in:c,onEnter:h,onEntered:f,onEntering:p,onExit:g,onExited:b,onExiting:v,style:w,timeout:C=i,TransitionComponent:M=sn}=q,E=Ce(q,["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),S=Z.useRef(null),P=or(S,vo(s),r),R=j=>V=>{if(j){const W=S.current;V===void 0?j(W):j(W,V)}},N=R(p),B=R((j,V)=>{const W=js({style:w,timeout:C,easing:u},{mode:"enter"});j.style.webkitTransition=n.transitions.create("opacity",W),j.style.transition=n.transitions.create("opacity",W),h&&h(j,V)}),U=R(f),K=R(v),Q=R(j=>{const V=js({style:w,timeout:C,easing:u},{mode:"exit"});j.style.webkitTransition=n.transitions.create("opacity",V),j.style.transition=n.transitions.create("opacity",V),g&&g(j)}),O=R(b),F=j=>{a&&a(S.current,j)};return fe.jsx(M,$(T({appear:o,in:c,nodeRef:S,onEnter:B,onEntered:U,onEntering:N,onExit:Q,onExited:O,onExiting:K,addEndListener:F,timeout:C},E),{children:(j,G)=>{var te=G,{ownerState:V}=te,W=Ce(te,["ownerState"]);return Z.cloneElement(s,T({style:T(T(T({opacity:0,visibility:j==="exited"&&!c?"hidden":void 0},xk[j]),w),s.props.style),ref:P},W))}}))});process.env.NODE_ENV!=="production"&&(M0.propTypes={addEndListener:y.func,appear:y.bool,children:oa.isRequired,easing:y.oneOfType([y.shape({enter:y.string,exit:y.string}),y.string]),in:y.bool,onEnter:y.func,onEntered:y.func,onEntering:y.func,onExit:y.func,onExited:y.func,onExiting:y.func,style:y.object,timeout:y.oneOfType([y.number,y.shape({appear:y.number,enter:y.number,exit:y.number})])});function Ck(e){return ht("MuiBackdrop",e)}ft("MuiBackdrop",["root","invisible"]);const Tk=e=>{const{classes:t,invisible:r}=e;return Et({root:["root",r&&"invisible"]},Ck,t)},Mk=De("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),S0=Z.forwardRef(function(t,r){const n=_t({props:t,name:"MuiBackdrop"}),U=n,{children:i,className:a,component:o="div",invisible:s=!1,open:u,components:c={},componentsProps:h={},slotProps:f={},slots:p={},TransitionComponent:g,transitionDuration:b}=U,v=Ce(U,["children","className","component","invisible","open","components","componentsProps","slotProps","slots","TransitionComponent","transitionDuration"]),w=$(T({},n),{component:o,invisible:s}),C=Tk(w),M=T({transition:g,root:c.Root},p),E=T(T({},h),f),S={slots:M,slotProps:E},[P,R]=er("root",{elementType:Mk,externalForwardedProps:S,className:ze(C.root,a),ownerState:w}),[N,B]=er("transition",{elementType:M0,externalForwardedProps:S,ownerState:w});return fe.jsx(N,$(T(T({in:u,timeout:b},v),B),{children:fe.jsx(P,$(T({"aria-hidden":!0},R),{classes:C,ref:r,children:i}))}))});process.env.NODE_ENV!=="production"&&(S0.propTypes={children:y.node,classes:y.object,className:y.string,component:y.elementType,components:y.shape({Root:y.elementType}),componentsProps:y.shape({root:y.object}),invisible:y.bool,open:y.bool.isRequired,slotProps:y.shape({root:y.oneOfType([y.func,y.object]),transition:y.oneOfType([y.func,y.object])}),slots:y.shape({root:y.elementType,transition:y.elementType}),sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object]),TransitionComponent:y.elementType,transitionDuration:y.oneOfType([y.number,y.shape({appear:y.number,enter:y.number,exit:y.number})])});function Sk(e){return typeof e=="function"?e():e}function Ek(e){return e?e.props.hasOwnProperty("in"):!1}const Gy=()=>{},mu=new pk;function Pk(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:s,onClose:u,open:c,rootRef:h}=e,f=Z.useRef({}),p=Z.useRef(null),g=Z.useRef(null),b=or(g,h),[v,w]=Z.useState(!c),C=Ek(s);let M=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(M=!1);const E=()=>Dr(p.current),S=()=>(f.current.modalRef=g.current,f.current.mount=p.current,f.current),P=()=>{mu.mount(S(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},R=Sn(()=>{const j=Sk(t)||E().body;mu.add(S(),j),g.current&&P()}),N=()=>mu.isTopModal(S()),B=Sn(j=>{p.current=j,j&&(c&&N()?P():g.current&&Ss(g.current,M))}),U=Z.useCallback(()=>{mu.remove(S(),M)},[M]);Z.useEffect(()=>()=>{U()},[U]),Z.useEffect(()=>{c?R():(!C||!i)&&U()},[c,U,C,i,R]);const K=j=>V=>{var W;(W=j.onKeyDown)==null||W.call(j,V),!(V.key!=="Escape"||V.which===229||!N())&&(r||(V.stopPropagation(),u&&u(V,"escapeKeyDown")))},Q=j=>V=>{var W;(W=j.onClick)==null||W.call(j,V),V.target===V.currentTarget&&u&&u(V,"backdropClick")};return{getRootProps:(j={})=>{const V=nw(e);delete V.onTransitionEnter,delete V.onTransitionExited;const W=T(T({},V),j);return $(T({role:"presentation"},W),{onKeyDown:K(W),ref:b})},getBackdropProps:(j={})=>{const V=j;return $(T({"aria-hidden":!0},V),{onClick:Q(V),open:c})},getTransitionProps:()=>{var W,G;const j=()=>{w(!1),a&&a()},V=()=>{w(!0),o&&o(),i&&U()};return{onEnter:zf(j,(W=s==null?void 0:s.props.onEnter)!=null?W:Gy),onExited:zf(V,(G=s==null?void 0:s.props.onExited)!=null?G:Gy)}},rootRef:b,portalRef:B,isTopModal:N,exited:v,hasTransition:C}}function Ak(e){return ht("MuiModal",e)}ft("MuiModal",["root","hidden","backdrop"]);const Rk=e=>{const{open:t,exited:r,classes:n}=e;return Et({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Ak,n)},Ok=De("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(kt(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),kk=De(S0,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),E0=Z.forwardRef(function(t,r){const n=_t({name:"MuiModal",props:t}),ye=n,{BackdropComponent:i=kk,BackdropProps:a,classes:o,className:s,closeAfterTransition:u=!1,children:c,container:h,component:f,components:p={},componentsProps:g={},disableAutoFocus:b=!1,disableEnforceFocus:v=!1,disableEscapeKeyDown:w=!1,disablePortal:C=!1,disableRestoreFocus:M=!1,disableScrollLock:E=!1,hideBackdrop:S=!1,keepMounted:P=!1,onBackdropClick:R,onClose:N,onTransitionEnter:B,onTransitionExited:U,open:K,slotProps:Q={},slots:O={},theme:F}=ye,q=Ce(ye,["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"]),j=$(T({},n),{closeAfterTransition:u,disableAutoFocus:b,disableEnforceFocus:v,disableEscapeKeyDown:w,disablePortal:C,disableRestoreFocus:M,disableScrollLock:E,hideBackdrop:S,keepMounted:P}),{getRootProps:V,getBackdropProps:W,getTransitionProps:G,portalRef:te,isTopModal:z,exited:Y,hasTransition:ie}=Pk($(T({},j),{rootRef:r})),ne=$(T({},j),{exited:Y}),re=Rk(ne),oe={};if(c.props.tabIndex===void 0&&(oe.tabIndex="-1"),ie){const{onEnter:J,onExited:_e}=G();oe.onEnter=J,oe.onExited=_e}const se={slots:T({root:p.Root,backdrop:p.Backdrop},O),slotProps:T(T({},g),Q)},[de,ce]=er("root",{ref:r,elementType:Ok,externalForwardedProps:$(T(T({},se),q),{component:f}),getSlotProps:V,ownerState:ne,className:ze(s,re==null?void 0:re.root,!ne.open&&ne.exited&&(re==null?void 0:re.hidden))}),[ge,Te]=er("backdrop",{ref:a==null?void 0:a.ref,elementType:i,externalForwardedProps:se,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:J=>W($(T({},J),{onClick:_e=>{R&&R(_e),J!=null&&J.onClick&&J.onClick(_e)}})),className:ze(a==null?void 0:a.className,re==null?void 0:re.backdrop),ownerState:ne});return!P&&!K&&(!ie||Y)?null:fe.jsx(Gs,{ref:te,container:h,disablePortal:C,children:fe.jsxs(de,$(T({},ce),{children:[!S&&i?fe.jsx(ge,T({},Te)):null,fe.jsx(cc,{disableEnforceFocus:v,disableAutoFocus:b,disableRestoreFocus:M,isEnabled:z,open:K,children:Z.cloneElement(c,oe)})]}))})});process.env.NODE_ENV!=="production"&&(E0.propTypes={BackdropComponent:y.elementType,BackdropProps:y.object,children:oa.isRequired,classes:y.object,className:y.string,closeAfterTransition:y.bool,component:y.elementType,components:y.shape({Backdrop:y.elementType,Root:y.elementType}),componentsProps:y.shape({backdrop:y.oneOfType([y.func,y.object]),root:y.oneOfType([y.func,y.object])}),container:y.oneOfType([Kn,y.func]),disableAutoFocus:y.bool,disableEnforceFocus:y.bool,disableEscapeKeyDown:y.bool,disablePortal:y.bool,disableRestoreFocus:y.bool,disableScrollLock:y.bool,hideBackdrop:y.bool,keepMounted:y.bool,onBackdropClick:y.func,onClose:y.func,onTransitionEnter:y.func,onTransitionExited:y.func,open:y.bool.isRequired,slotProps:y.shape({backdrop:y.oneOfType([y.func,y.object]),root:y.oneOfType([y.func,y.object])}),slots:y.shape({backdrop:y.elementType,root:y.elementType}),sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object])});function Dk(e){return ht("MuiPaper",e)}ft("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Nk=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Et(a,Dk,i)},Lk=De("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(kt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),od=Z.forwardRef(function(t,r){var b;const n=_t({props:t,name:"MuiPaper"}),i=fl(),g=n,{className:a,component:o="div",elevation:s=1,square:u=!1,variant:c="elevation"}=g,h=Ce(g,["className","component","elevation","square","variant"]),f=$(T({},n),{component:o,elevation:s,square:u,variant:c}),p=Nk(f);return process.env.NODE_ENV!=="production"&&i.shadows[s]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
169
+ `)),fe.jsx(Lk,$(T({as:o,ownerState:f,className:ze(p.root,a),ref:r},h),{style:T(T({},c==="elevation"&&T(T({"--Paper-shadow":(i.vars||i).shadows[s]},i.vars&&{"--Paper-overlay":(b=i.vars.overlays)==null?void 0:b[s]}),!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Tt("#fff",Wf(s))}, ${Tt("#fff",Wf(s))})`})),h.style)}))});process.env.NODE_ENV!=="production"&&(od.propTypes={children:y.node,classes:y.object,className:y.string,component:y.elementType,elevation:ni(wn,e=>{const{elevation:t,variant:r}=e;return t>0&&r==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:y.bool,style:y.object,sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object]),variant:y.oneOfType([y.oneOf(["elevation","outlined"]),y.string])});function Ik(e){return ht("MuiPopover",e)}ft("MuiPopover",["root","paper"]);function Uy(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Yy(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function qy(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function gs(e){return typeof e=="function"?e():e}const $k=e=>{const{classes:t}=e;return Et({root:["root"],paper:["paper"]},Ik,t)},Fk=De(E0,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Aw=De(od,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),P0=Z.forwardRef(function(t,r){const n=_t({props:t,name:"MuiPopover"}),Te=n,{action:i,anchorEl:a,anchorOrigin:o={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:u="anchorEl",children:c,className:h,container:f,elevation:p=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:w={},slotProps:C={},transformOrigin:M={vertical:"top",horizontal:"left"},TransitionComponent:E,transitionDuration:S="auto",TransitionProps:P={},disableScrollLock:R=!1}=Te,N=Ce(Te,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"]),B=Z.useRef(),U=$(T({},n),{anchorOrigin:o,anchorReference:u,elevation:p,marginThreshold:g,transformOrigin:M,TransitionComponent:E,transitionDuration:S,TransitionProps:P}),K=$k(U),Q=Z.useCallback(()=>{if(u==="anchorPosition")return process.env.NODE_ENV!=="production"&&(s||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),s;const _e=gs(a),ve=_e&&_e.nodeType===1?_e:Dr(B.current).body,Ee=ve.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const Ne=ve.getBoundingClientRect();process.env.NODE_ENV!=="test"&&Ne.top===0&&Ne.left===0&&Ne.right===0&&Ne.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
170
+ `))}return{top:Ee.top+Uy(Ee,o.vertical),left:Ee.left+Yy(Ee,o.horizontal)}},[a,o.horizontal,o.vertical,s,u]),O=Z.useCallback(_e=>({vertical:Uy(_e,M.vertical),horizontal:Yy(_e,M.horizontal)}),[M.horizontal,M.vertical]),F=Z.useCallback(_e=>{const ve={width:_e.offsetWidth,height:_e.offsetHeight},Ee=O(ve);if(u==="none")return{top:null,left:null,transformOrigin:qy(Ee)};const Ne=Q();let We=Ne.top-Ee.vertical,He=Ne.left-Ee.horizontal;const Zt=We+ve.height,xt=He+ve.width,$t=Qn(gs(a)),Pt=$t.innerHeight-g,Ae=$t.innerWidth-g;if(g!==null&&We<g){const rt=We-g;We-=rt,Ee.vertical+=rt}else if(g!==null&&Zt>Pt){const rt=Zt-Pt;We-=rt,Ee.vertical+=rt}if(process.env.NODE_ENV!=="production"&&ve.height>Pt&&ve.height&&Pt&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ve.height-Pt}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
171
+ `)),g!==null&&He<g){const rt=He-g;He-=rt,Ee.horizontal+=rt}else if(xt>Ae){const rt=xt-Ae;He-=rt,Ee.horizontal+=rt}return{top:`${Math.round(We)}px`,left:`${Math.round(He)}px`,transformOrigin:qy(Ee)}},[a,u,Q,O,g]),[q,j]=Z.useState(b),V=Z.useCallback(()=>{const _e=B.current;if(!_e)return;const ve=F(_e);ve.top!==null&&_e.style.setProperty("top",ve.top),ve.left!==null&&(_e.style.left=ve.left),_e.style.transformOrigin=ve.transformOrigin,j(!0)},[F]);Z.useEffect(()=>(R&&window.addEventListener("scroll",V),()=>window.removeEventListener("scroll",V)),[a,R,V]);const W=()=>{V()},G=()=>{j(!1)};Z.useEffect(()=>{b&&V()}),Z.useImperativeHandle(i,()=>b?{updatePosition:()=>{V()}}:null,[b,V]),Z.useEffect(()=>{if(!b)return;const _e=J_(()=>{V()}),ve=Qn(gs(a));return ve.addEventListener("resize",_e),()=>{_e.clear(),ve.removeEventListener("resize",_e)}},[a,b,V]);let te=S;const z={slots:T({transition:E},w),slotProps:T({transition:P,paper:v},C)},[Y,ie]=er("transition",{elementType:Vs,externalForwardedProps:z,ownerState:U,getSlotProps:_e=>$(T({},_e),{onEntering:(ve,Ee)=>{var Ne;(Ne=_e.onEntering)==null||Ne.call(_e,ve,Ee),W()},onExited:ve=>{var Ee;(Ee=_e.onExited)==null||Ee.call(_e,ve),G()}}),additionalProps:{appear:!0,in:b}});S==="auto"&&!Y.muiSupportAuto&&(te=void 0);const ne=f||(a?Dr(gs(a)).body:void 0),[re,ye]=er("root",{ref:r,elementType:Fk,externalForwardedProps:T(T({},z),N),shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:w.backdrop},slotProps:{backdrop:lk(typeof C.backdrop=="function"?C.backdrop(U):C.backdrop,{invisible:!0})},container:ne,open:b},ownerState:U,className:ze(K.root,h)}),J=ye,{slots:oe,slotProps:se}=J,de=Ce(J,["slots","slotProps"]),[ce,ge]=er("paper",{ref:B,className:K.paper,elementType:Aw,externalForwardedProps:z,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:q?void 0:{opacity:0}},ownerState:U});return fe.jsx(re,$(T(T({},de),!Yf(re)&&{slots:oe,slotProps:se,disableScrollLock:R}),{children:fe.jsx(Y,$(T({},ie),{timeout:te,children:fe.jsx(ce,$(T({},ge),{children:c}))}))}))});process.env.NODE_ENV!=="production"&&(P0.propTypes={action:mo,anchorEl:ni(y.oneOfType([Kn,y.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=gs(e.anchorEl);if(t&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
172
+ `))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
173
+ `))}return null}),anchorOrigin:y.shape({horizontal:y.oneOfType([y.oneOf(["center","left","right"]),y.number]).isRequired,vertical:y.oneOfType([y.oneOf(["bottom","center","top"]),y.number]).isRequired}),anchorPosition:y.shape({left:y.number.isRequired,top:y.number.isRequired}),anchorReference:y.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:y.elementType,BackdropProps:y.object,children:y.node,classes:y.object,className:y.string,container:y.oneOfType([Kn,y.func]),disableScrollLock:y.bool,elevation:wn,marginThreshold:y.number,onClose:y.func,open:y.bool.isRequired,PaperProps:y.shape({component:Wc}),slotProps:y.shape({backdrop:y.oneOfType([y.func,y.object]),paper:y.oneOfType([y.func,y.object]),root:y.oneOfType([y.func,y.object]),transition:y.oneOfType([y.func,y.object])}),slots:y.shape({backdrop:y.elementType,paper:y.elementType,root:y.elementType,transition:y.elementType}),sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object]),transformOrigin:y.shape({horizontal:y.oneOfType([y.oneOf(["center","left","right"]),y.number]).isRequired,vertical:y.oneOfType([y.oneOf(["bottom","center","top"]),y.number]).isRequired}),TransitionComponent:y.elementType,transitionDuration:y.oneOfType([y.oneOf(["auto"]),y.number,y.shape({appear:y.number,enter:y.number,exit:y.number})]),TransitionProps:y.object});function zk(e){return ht("MuiMenu",e)}ft("MuiMenu",["root","paper","list"]);const Bk={vertical:"top",horizontal:"right"},Wk={vertical:"top",horizontal:"left"},Hk=e=>{const{classes:t}=e;return Et({root:["root"],paper:["paper"],list:["list"]},zk,t)},jk=De(P0,{shouldForwardProp:e=>pl(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Vk=De(Aw,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Gk=De(T0,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),sd=Z.forwardRef(function(t,r){const n=_t({props:t,name:"MuiMenu"}),te=n,{autoFocus:i=!0,children:a,className:o,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:h,PaperProps:f={},PopoverClasses:p,transitionDuration:g="auto",TransitionProps:z={}}=te,Y=z,{onEntering:b}=Y,v=Ce(Y,["onEntering"]),ie=te,{variant:w="selectedMenu",slots:C={},slotProps:M={}}=ie,E=Ce(ie,["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"]),S=Bc(),P=$(T({},n),{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:b,PaperProps:f,transitionDuration:g,TransitionProps:v,variant:w}),R=Hk(P),N=i&&!s&&h,B=Z.useRef(null),U=(ne,re)=>{B.current&&B.current.adjustStyleForScrollbar(ne,{direction:S?"rtl":"ltr"}),b&&b(ne,re)},K=ne=>{ne.key==="Tab"&&(ne.preventDefault(),c&&c(ne,"tabKeyDown"))};let Q=-1;Z.Children.map(a,(ne,re)=>{Z.isValidElement(ne)&&(process.env.NODE_ENV!=="production"&&x0.isFragment(ne)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
174
+ `)),ne.props.disabled||(w==="selectedMenu"&&ne.props.selected||Q===-1)&&(Q=re))});const O={slots:C,slotProps:T({list:u,transition:v,paper:f},M)},F=Jm({elementType:C.root,externalSlotProps:M.root,ownerState:P,className:[R.root,o]}),[q,j]=er("paper",{className:R.paper,elementType:Vk,externalForwardedProps:O,shouldForwardComponentProp:!0,ownerState:P}),[V,W]=er("list",{className:ze(R.list,u.className),elementType:Gk,shouldForwardComponentProp:!0,externalForwardedProps:O,getSlotProps:ne=>$(T({},ne),{onKeyDown:re=>{var oe;K(re),(oe=ne.onKeyDown)==null||oe.call(ne,re)}}),ownerState:P}),G=typeof O.slotProps.transition=="function"?O.slotProps.transition(P):O.slotProps.transition;return fe.jsx(jk,$(T({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?Bk:Wk,slots:T({root:C.root,paper:q,backdrop:C.backdrop},C.transition&&{transition:C.transition}),slotProps:{root:F,paper:j,backdrop:typeof M.backdrop=="function"?M.backdrop(P):M.backdrop,transition:$(T({},G),{onEntering:(...ne)=>{var re;U(...ne),(re=G==null?void 0:G.onEntering)==null||re.call(G,...ne)}})},open:h,ref:r,transitionDuration:g,ownerState:P},E),{classes:p,children:fe.jsx(V,$(T({actions:B,autoFocus:i&&(Q===-1||s),autoFocusItem:N,variant:w},W),{children:a}))}))});process.env.NODE_ENV!=="production"&&(sd.propTypes={anchorEl:y.oneOfType([Kn,y.func]),autoFocus:y.bool,children:y.node,classes:y.object,className:y.string,disableAutoFocusItem:y.bool,MenuListProps:y.object,onClose:y.func,open:y.bool.isRequired,PaperProps:y.object,PopoverClasses:y.object,slotProps:y.shape({backdrop:y.oneOfType([y.func,y.object]),list:y.oneOfType([y.func,y.object]),paper:y.oneOfType([y.func,y.object]),root:y.oneOfType([y.func,y.object]),transition:y.oneOfType([y.func,y.object])}),slots:y.shape({backdrop:y.elementType,list:y.elementType,paper:y.elementType,root:y.elementType,transition:y.elementType}),sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object]),transitionDuration:y.oneOfType([y.oneOf(["auto"]),y.number,y.shape({appear:y.number,enter:y.number,exit:y.number})]),TransitionProps:y.object,variant:y.oneOf(["menu","selectedMenu"])});const Uk=e=>{const t=(e==null?void 0:e.horizontal)==="right"?"right":"left",r=(e==null?void 0:e.vertical)==="bottom"?"bottom":"top";return{anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:r,horizontal:t}}},Yk=({children:e,open:t,position:r,onClose:n,alignment:i})=>{const{themeSettings:a}=it(),o=k.useMemo(()=>Uk(i),[i]);return _.jsx(sd,{MenuListProps:{dense:!0,sx:{paddingTop:0,paddingBottom:0,fontFamily:a.typography.fontFamily}},anchorReference:"anchorPosition",anchorPosition:r!=null?r:{left:0,top:0},anchorOrigin:o.anchorOrigin,transformOrigin:o.transformOrigin,disableEnforceFocus:!0,disableRestoreFocus:!0,open:t,onClose:n,slotProps:{paper:{sx:{borderRadius:0,border:"1px solid #bababa",boxShadow:"0 2px 4px 0 rgba(0,0,0,0.3)",fontFamily:a.typography.fontFamily}}},children:e})};function qk({color:e=_.DEFAULT_TEXT_COLOR}){return _.jsx("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",children:_.jsx("path",{fill:e,d:"M13.34 12.5l-2.72-3.175a.5.5 0 1 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175z"})})}const Xk=({children:e,label:t,allowOpen:r,disabled:n,style:i,className:a=""})=>{const{themeSettings:o}=it(),s=k.useRef(null),u=k.useRef(null),[c,h]=k.useState(!1),f=k.useCallback(()=>{n||h(!0)},[n]),p=k.useCallback(()=>h(!1),[]),g=k.useCallback(()=>h(!0),[]),b=k.useCallback(()=>h(!1),[]),v=c&&r;return _.jsxs("div",{ref:s,className:`csdk-menu-item ${a}`,children:[_.jsx(ad,{disabled:n,sx:T({width:"100%",minWidth:"170px",height:"29px",minHeight:"29px",fontFamily:o.typography.fontFamily,fontSize:"13px",paddingLeft:"30px",paddingRight:"0px",color:_.DEFAULT_TEXT_COLOR,"&:hover":{backgroundColor:_.DEFAULT_BACKGROUND_COLOR}},i),onMouseEnter:f,onMouseLeave:p,children:_.jsxs("div",{className:"csdk-menu-item-content",style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[t,_.jsx(qk,{})]})}),_.jsx(sd,{ref:u,style:{pointerEvents:"none"},anchorEl:s.current,anchorOrigin:{horizontal:"right",vertical:"top"},transformOrigin:{horizontal:"left",vertical:"top"},open:v,autoFocus:!1,disableAutoFocus:!0,disableEnforceFocus:!0,MenuListProps:{sx:{paddingTop:0,paddingBottom:0}},slotProps:{paper:{sx:{borderRadius:0,border:"1px solid #bababa",boxShadow:"0 2px 4px 0 rgba(0,0,0,0.3)",fontFamily:o.typography.fontFamily}}},onClose:()=>{h(!1)},onMouseEnter:g,onMouseLeave:b,children:_.jsx("div",{style:{pointerEvents:"auto"},children:e})})]})},Zk="csdk-context-menu-selected-with-dot",Rw=({position:e,itemSections:t,children:r,closeContextMenu:n,alignment:i})=>{const[a,o]=k.useState(t),s=!!e;k.useEffect(()=>{t&&o(t)},[t]);const u=k.useCallback((c,h)=>{const{sectionTitle:f,items:p=[]}=c;return _.jsxs("div",{className:"csdk-menu-section",children:[f&&_.jsx(rk,{children:f}),p.map((g,b)=>{const{subItems:v}=g;return v&&v.length?_.jsx(Xk,{label:g.caption,allowOpen:s,style:g.style,className:g.class,children:v.map(u)},b):_.jsx(QO,{disabled:g.disabled,style:g.style,className:g.class,onClick:()=>{var C;n(),(C=g.onClick)==null||C.call(g)},children:g.caption},b)})]},h!=null?h:f)},[n,s]);return _.jsx(_.Fragment,{children:_.jsxs(Yk,{position:e!=null?e:null,open:s,onClose:n,alignment:i,children:[a==null?void 0:a.map(u),r]})})},Kk=({children:e,onBeforeMenuOpen:t})=>{const[r,n]=k.useState(null),i=k.useCallback(u=>{const c=t?t(u):u;c&&n(c)},[t]),a=k.useCallback(()=>{n(null)},[]),o=k.useCallback(()=>{var u;(u=r==null?void 0:r.onClose)==null||u.call(r),a()},[a,r]),s=k.useMemo(()=>({openMenu:i,closeMenu:a}),[i,a]);return _.jsxs(w0.Provider,{value:s,children:[_.jsx(Rw,{position:r==null?void 0:r.position,itemSections:r==null?void 0:r.itemSections,closeContextMenu:o,alignment:r==null?void 0:r.alignment}),e]})},Qk=({children:e,onBeforeMenuOpen:t})=>{const r=id(),n=k.useCallback(o=>{const s=t?t(o):o;s&&(r==null||r.openMenu(s))},[t,r]),i=k.useCallback(()=>{r==null||r.closeMenu()},[r]),a={openMenu:n,closeMenu:i};return _.jsx(w0.Provider,{value:a,children:e})},Ow=({children:e,onBeforeMenuOpen:t})=>id()?t?_.jsx(Qk,{onBeforeMenuOpen:t,children:e}):_.jsx(_.Fragment,{children:e}):_.jsx(Kk,{onBeforeMenuOpen:t,children:e}),Jk=({shouldHaveOwnMenuRoot:e}={})=>t=>function(n){const a=!!id();return e&&!a?_.jsx(Ow,{children:_.jsx(t,T({},n))}):_.jsx(t,T({},n))},A0=k.createContext(null),ld=()=>k.useContext(A0);function eD(e,t){if(!Array.isArray(e))return e;const r=[`${t} & { ${e[0]}`,...e.slice(1,-1),`${e[e.length-1]} }`],n=r;return n.raw=r,n}function Xy(e,t){return function(r,...n){const i=k.forwardRef((a,o)=>{var h,f;const{config:s}=it(),u=(h=s==null?void 0:s.cssSelectorPrefix)!=null&&h.enabled?(f=s==null?void 0:s.cssSelectorPrefix)==null?void 0:f.value:"",c=k.useMemo(()=>{const p=u?eD(r,u):r;return e(t)(p,...n)},[u]);return _.jsx(c,T({ref:o},a))});return e(i,{shouldForwardProp:()=>!0})``}}function tD(e){const t=a=>Xy(e,a),n=Object.keys(e).reduce((a,o)=>(a[o]=Xy(e,o),a),{});return Object.assign(t,n)}const Ke=tD(zs),rD=Ke(P0)`
175
+ // This fixes an issue where the popover appears before its position is calculated, causing it to 'jump' from the top-left corner.
176
+ // Known MUI issue: https://github.com/mui/material-ui/issues/8040
177
+ .MuiPaper-root.MuiPopover-paper:not([style*='top']),
178
+ .MuiPaper-root.MuiPopover-paper:not([style*='left']) {
179
+ opacity: 0 !important;
180
+ }
181
+ `,R0=e=>{var f;const h=e,{children:t,open:r,id:n,position:i,onClose:a,BackdropProps:o,style:s,slotProps:u}=h,c=Ce(h,["children","open","id","position","onClose","BackdropProps","style","slotProps"]);return _.jsx(rD,$(T({id:n,className:"csdk-accessible",anchorEl:i==null?void 0:i.anchorEl,anchorOrigin:i==null?void 0:i.anchorOrigin,transformOrigin:i==null?void 0:i.contentOrigin,transitionDuration:0,open:r,BackdropProps:o,style:s,slotProps:{paper:{sx:T({display:"flex",boxShadow:"-1px -1px 10px rgba(0, 0, 0, 0.2)"},(f=u==null?void 0:u.paper)==null?void 0:f.sx)}},onClose:a},c),{children:t}))};let nD=0;const iD=()=>`modal-${++nD}`,Oa=new Set,aD=({children:e})=>{const[t,r]=k.useState([]),n=k.useRef([]);k.useEffect(()=>()=>{Oa.forEach(f=>{try{f&&f.parentNode&&f.parentNode===document.body&&document.body.contains(f)&&document.body.removeChild(f)}catch(p){}}),Oa.clear()},[]);const i=k.useCallback(f=>new Promise(p=>{const g=iD();let b;try{b=document.createElement("div"),b.style.position="fixed",b.style.top="50%",b.style.left="50%",b.style.transform="translate(-50%, -50%)",b.style.width="1px",b.style.height="1px",b.style.pointerEvents="none",b.style.visibility="hidden",b.setAttribute("data-modal-anchor",g),document.body&&typeof document.body.appendChild=="function"?(document.body.appendChild(b),Oa.add(b)):console.warn("Modal: Unable to append anchor element to document body")}catch(w){console.warn("Modal: Failed to create anchor element:",w),b=document.createElement("div"),b.setAttribute("data-modal-anchor",g)}const v={id:g,options:f,anchorEl:b,resolve:()=>p(g)};r(w=>{const C=[...w,v];return n.current=C,C}),p(g)}),[]),a=k.useCallback(f=>{r(p=>{if(!f){const v=p.slice(0,-1);n.current=v;const w=p[p.length-1];return w!=null&&w.anchorEl&&setTimeout(()=>{try{w.anchorEl&&w.anchorEl.parentNode&&w.anchorEl.parentNode===document.body&&document.body.contains(w.anchorEl)&&(document.body.removeChild(w.anchorEl),Oa.delete(w.anchorEl))}catch(C){}},0),w&&w.resolve(),v}const g=p.find(v=>v.id===f);g!=null&&g.anchorEl&&setTimeout(()=>{try{g.anchorEl&&g.anchorEl.parentNode&&g.anchorEl.parentNode===document.body&&document.body.contains(g.anchorEl)&&(document.body.removeChild(g.anchorEl),Oa.delete(g.anchorEl))}catch(v){}},0),g&&g.resolve();const b=p.filter(v=>v.id!==f);return n.current=b,b})},[]),o=k.useCallback(()=>{r(f=>(f.forEach(p=>{p.anchorEl&&setTimeout(()=>{try{p.anchorEl&&p.anchorEl.parentNode&&p.anchorEl.parentNode===document.body&&document.body.contains(p.anchorEl)&&(document.body.removeChild(p.anchorEl),Oa.delete(p.anchorEl))}catch(g){}},0),p.resolve()}),n.current=[],[]))},[]),s=k.useCallback(()=>n.current,[]),u=k.useCallback(f=>t.some(p=>p.id===f),[t]),c=k.useCallback(f=>{a(f)},[a]),h=k.useMemo(()=>({openModal:i,closeModal:a,closeAllModals:o,getModalStack:s,isModalOpen:u}),[i,a,o,s,u]);return _.jsxs(A0.Provider,{value:h,children:[t.map((f,p)=>{const{options:g}=f,b=g.measurement==="%"?`${g.width||80}%`:`${g.width||1200}px`,v=g.measurement==="%"?`${g.height||80}%`:`${g.height||800}px`;return _.jsx("div",{children:_.jsx("div",{"data-testid":"modal-backdrop",onClick:w=>{w.target.closest(".MuiPaper-root")||c(f.id)},style:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:1200+p},children:_.jsx(R0,{open:!0,position:{anchorEl:f.anchorEl,anchorOrigin:{vertical:"center",horizontal:"center"},contentOrigin:{vertical:"center",horizontal:"center"}},onClose:()=>a(f.id),BackdropProps:{style:{backgroundColor:"rgba(0, 0, 0, 0.5)"}},style:{zIndex:1200+p+10},slotProps:{paper:{sx:{display:"flex",width:b,height:v,maxWidth:"95vw",maxHeight:"95vh",position:"relative",zIndex:1200+p+10}}},children:_.jsx("div",{style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},onClick:w=>w.stopPropagation(),children:_.jsx("div",{style:{flex:1,overflow:"hidden"},children:g.content})})})})},f.id)}),e]})},oD=({children:e})=>{const t=ld(),r=k.useCallback(u=>(t==null?void 0:t.openModal(u))||Promise.resolve(""),[t]),n=k.useCallback(u=>{t==null||t.closeModal(u)},[t]),i=k.useCallback(()=>{t==null||t.closeAllModals()},[t]),a=k.useCallback(()=>(t==null?void 0:t.getModalStack())||[],[t]),o=k.useCallback(u=>(t==null?void 0:t.isModalOpen(u))||!1,[t]),s={openModal:r,closeModal:n,closeAllModals:i,getModalStack:a,isModalOpen:o};return _.jsx(A0.Provider,{value:s,children:e})},kw=({children:e})=>ld()?_.jsx(oD,{children:e}):_.jsx(aD,{children:e}),sD=({shouldHaveOwnModalRoot:e}={})=>t=>function(n){const a=!!ld();return e&&!a?_.jsx(kw,{children:_.jsx(t,T({},n))}):_.jsx(t,T({},n))};var lD="[object Boolean]";function Dw(e){return e===!0||e===!1||I.isObjectLike(e)&&I.baseGetTag(e)==lD}function Nw(){var e,t;return(t=(e=document.head.querySelector('meta[property="csp-nonce"]'))==null?void 0:e.getAttribute("content"))!=null?t:void 0}const Zy=Nw(),Lw=({color:e})=>{const t={backgroundColor:e||"#333333",float:"left",width:"10px",height:"10px",marginRight:"7px",WebkitAnimation:"loading-dots-animation 1.8s infinite ease-in-out",animation:"loading-dots-animation 1.8s infinite ease-in-out",borderRadius:"50%",opacity:.75},r=$(T({},t),{WebkitAnimationDelay:"-0.32s",animationDelay:"-0.32s"}),n=$(T({},t),{WebkitAnimationDelay:"-0.16s",animationDelay:"-0.16s"}),i=$(T({},t),{marginRight:"unset"}),a={"0%, 80%, 100%":{WebkitTransform:"scale(0) rotate(0deg)",transform:"scale(0) rotate(0deg)"},"40%":{WebkitTransform:"scale(1) rotate(0.02deg)",transform:"scale(1) rotate(0.02deg)"}};return _.jsxs("div",{children:[_.jsx("style",$(T({},Zy&&{nonce:Zy}),{children:`
182
+ @keyframes loading-dots-animation {
183
+ ${Object.entries(a).map(([o,s])=>`${o} { ${Object.entries(s).map(([u,c])=>`${u}: ${c};`).join("")} }`).join("")}
184
+ }
185
+ `})),_.jsx("div",{style:r}),_.jsx("div",{style:n}),_.jsx("div",{style:i})]})},uD=Ke.div`
186
+ opacity: 0;
187
+ // z-index is set to 401, which is higher than max z-index of 400 on areamap
188
+ z-index: 401;
189
+ width: 100%;
190
+ height: 100%;
191
+ position: absolute;
192
+ animation: fadeIn 0.3s ease-in-out forwards;
193
+ animation-delay: ${({delay:e})=>e}ms;
194
+
195
+ @keyframes fadeIn {
196
+ from {
197
+ opacity: 0;
198
+ }
199
+ to {
200
+ opacity: 0.8;
201
+ }
202
+ }
203
+ `,mi=({isVisible:e=!0,children:t})=>{var s,u,c,h,f,p;const{app:r}=wt(),i=((c=(u=(s=r==null?void 0:r.settings)==null?void 0:s.loadingIndicatorConfig)==null?void 0:u.enabled)!=null?c:!0)&&e,a=(p=(f=(h=r==null?void 0:r.settings)==null?void 0:h.loadingIndicatorConfig)==null?void 0:f.delay)!=null?p:0,{themeSettings:o}=it();return _.jsxs("div",{id:"overlay",className:"csdk-relative csdk-h-full",children:[i&&_.jsx(uD,{delay:a,"aria-label":"csdk-loading-overlay",children:_.jsx("div",{className:"csdk-h-full csdk-bg-transparent",children:_.jsx("div",{className:"csdk-h-full csdk-flex csdk-flex-col csdk-gap-y-4 csdk-items-center csdk-justify-center csdk-bg-transparent",children:_.jsx("div",{style:{backgroundColor:o.general.backgroundColor},className:"csdk-p-1.5 csdk-bg-background-priority csdk-rounded-full",children:_.jsx(Lw,{color:o==null?void 0:o.chart.textColor})})})})}),t]})},cD=({shouldSkipSisenseContextWaiting:e,customContextErrorMessageKey:t})=>r=>function(i){const{app:a,isInitialized:o}=wt();if(dD(e,i))return _.jsx(r,T({},i));if(!o){const s=t||"errors.noSisenseContext";throw new I.TranslatableError(s)}return a?_.jsx(r,T({},i)):_.jsx(mi,{isVisible:!0})};function dD(e,t){return Dw(e)&&e||I.isFunction(e)&&e(t)}const hD={sdkComponentInit:{internal:!0,external:!0},sdkHookInit:{internal:!0,external:!0},sdkError:{internal:!0,external:!1},sdkCliExec:{internal:!0,external:!1},sdkAngularServiceMethodExecuted:{internal:!0,external:!0}},Ky="composesdk",Iw=(e,t,r,n=!1)=>{const i=Object.assign({action:e,cat:Ky,eventType:"product",direct:!0},t);return n&&(process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test")?(console.debug("DEBUG: event payload to send",i),Promise.resolve()):r.post("api/activities/",[i],{cache:"no-store",redirect:"error",referrerPolicy:"same-origin",priority:"low"}).catch(a=>{console.error(`unable to log action=${e}, category=${Ky}`,a)})},Qy=(e,t,r,n,i)=>{const a=hD[`${e}`];return a.internal&&Iw(e,t,r,i),a.external&&n&&n(T({action:e},t)),Promise.resolve()},O0=()=>{var a,o;const{tracking:e,app:t}=wt(),r=(o=(a=t==null?void 0:t.httpClient)==null?void 0:a.auth)==null?void 0:o.type,n=k.useCallback((s,u={},c=!1)=>t?Qy(s,$(T({},u),{authType:r}),t.httpClient,e.onTrackingEvent,c):Promise.resolve(),[e,t,r]),i=k.useCallback((s,u=!1)=>{if(!t)return Promise.resolve();const{packageName:c,packageVersion:h,component:f,error:p}=s;let g="";return typeof p=="string"?g=p:p instanceof Error&&(g=p.message||p.toString()),Qy("sdkError",$(T({},{packageName:c,packageVersion:h,component:f,error:g}),{authType:r}),t.httpClient,e.onTrackingEvent,u)},[e,t,r]);return{trackEvent:n,trackError:i}};class $w extends k.Component{constructor(r){super(r);Ze(this,"componentName");Ze(this,"context");Ze(this,"handler");Ze(this,"httpClient");Ze(this,"postponedErrors",[]);this.handler=r.handler,this.componentName=r.componentName}componentDidMount(){var r;this.context.isInitialized&&(this.httpClient=(r=this.context.app)==null?void 0:r.httpClient)}componentDidCatch(r){throw this.context.tracking.enabled&&(this.httpClient?this.sendErrorTracking(r):this.postponedErrors.push(r)),r}sendErrorTracking(r){try{this.handler({packageName:"sdk-ui",packageVersion:"2.23.0",component:this.componentName,error:r})}catch(n){console.log("Failed to send tracking error event: ",n)}}render(){return this.httpClient&&this.postponedErrors.length>0&&this.postponedErrors.forEach(r=>this.sendErrorTracking(r)),this.postponedErrors=[],this.props.children}}Ze($w,"contextType",o0);const fD="sdkComponentInit",Fw=k.createContext(!1),pD=({skipNested:e=!0,children:t})=>_.jsx(Fw.Provider,{value:e,children:t}),mD=(e,t)=>{const{componentName:r,config:n}=e,{tracking:i,app:a}=wt(),{trackEvent:o}=O0(),s=k.useContext(Fw),u=k.useRef(!1);k.useEffect(()=>{if(!i||!a)return;if(!u.current&&!s){const h={packageName:n.packageName||i.packageName,packageVersion:n.packageVersion||"2.23.0",componentName:r,attributesUsed:Object.entries(t).filter(([,f])=>!!f).map(([f])=>f).join(", ")};o(fD,h,!i.enabled).finally(()=>u.current=!0)}},[r,t,i,s,o,a,n])},zw=({componentName:e,config:t})=>{const{skip:r,transparent:n}=t||{};return i=>function(o){const{trackError:s}=O0();return Dw(r)&&r||I.isFunction(r)&&r(o)?_.jsx(i,T({},o)):(mD({componentName:e,config:t},o),_.jsx(pD,{skipNested:!n,children:_.jsx($w,{componentName:e,handler:s,children:_.jsx(i,T({},o))})}))}},gD=e=>t=>(t.displayName=e,t),ml=e=>{const{componentName:t,shouldSkipSisenseContextWaiting:r,trackingConfig:n={},customContextErrorMessageKey:i,shouldHaveOwnMenuRoot:a,shouldHaveOwnModalRoot:o}=e;return s=>_.flow(gD(t),cD({shouldSkipSisenseContextWaiting:r,customContextErrorMessageKey:i}),zw({componentName:t,config:n}),Ew({componentName:t}),RO(),Jk({shouldHaveOwnMenuRoot:a}),sD({shouldHaveOwnModalRoot:o}))(s)};function Jy(e){return`${e.fontFamily}|${e.fontWeight}|${e.fontStyle}`}function vD(e,t){const[r,n]=k.useState([]),[i,a]=k.useState(!1),o=k.useMemo(()=>e.filter(s=>!t.includes(Jy(s))),[e,t]);return k.useEffect(()=>{if(o.length===0){a(!0);return}let s=!1;const u=o.map(c=>{const h=c.src.map(p=>Object.entries(p).map(([b,v])=>`${b}('${v}')`).join(" ")).join(", ");return new FontFace(c.fontFamily,h,{style:c.fontStyle,weight:c.fontWeight.toString()}).load().then(p=>(s||document.fonts.add(p),Jy(c)))});return Promise.all(u).then(c=>{s||(n(h=>[...h,...c]),a(!0))}).catch(c=>{console.error("Failed to load fonts:",c),a(!0)}),()=>{s=!0}},[o]),{loadedFonts:r,areAllFontsLoaded:i}}const e1=k.createContext({loadedFonts:[]}),yD=({fonts:e,children:t})=>{var o;const{loadedFonts:r}=k.useContext(e1),{themeSettings:n}=it(),{loadedFonts:i,areAllFontsLoaded:a}=vD(e||((o=n.typography.fontsLoader)==null?void 0:o.fonts)||[],r);return _.jsx(e1.Provider,{value:{loadedFonts:[...r,...i]},children:a&&t})},vs={none:"None",small:"Small",medium:"Medium",large:"Large",left:"Left",center:"Center",right:"Right",light:"Light",dark:"Dark"};function Bw(e,t,r){const n={chart:{textColor:e.dashboards.widgetTextColor,backgroundColor:e.dashboards.widgetBackgroundColor,secondaryTextColor:e.dashboards.widgetSecondaryTextColor,animation:{init:{duration:"auto"},redraw:{duration:"auto"}}},typography:{fontFamily:e.typography.fontFamily,primaryTextColor:e.typography.primaryTextColor,secondaryTextColor:e.typography.secondaryTextColor,hyperlinkColor:e.typography.hyperlinkColor,hyperlinkHoverColor:e.typography.hyperlinkHoverColor,fontsLoader:{fonts:bD(e.typography.fontFamily,r,e.typography.customFontSelected)}},palette:{variantColors:t.colors},general:{brandColor:e.general.brandColor,backgroundColor:e.general.backgroundColor,primaryButtonTextColor:e.general.primaryButtonTextColor,primaryButtonHoverColor:e.general.primaryButtonHoverColor,popover:lc().general.popover,buttons:{primary:{backgroundColor:{default:e.general.brandColor,hover:e.general.primaryButtonHoverColor,focus:e.general.primaryButtonHoverColor},textColor:e.general.primaryButtonTextColor},cancel:{backgroundColor:{default:e.general.secondaryButtonBaseColor,hover:e.general.secondaryButtonHoverColor,focus:e.general.secondaryButtonHoverColor},textColor:e.general.secondaryButtonTextColor}}},widget:{spaceAround:vs[e.dashboards.widgetSpacing],cornerRadius:vs[e.dashboards.widgetCornerRadius],shadow:vs[e.dashboards.widgetShadow],border:e.dashboards.widgetBorderEnabled,borderColor:e.dashboards.widgetBorderColor,header:{titleTextColor:e.dashboards.widgetTitleColor,titleAlignment:vs[e.dashboards.widgetTitleAlignment],titleFontSize:v0,dividerLine:e.dashboards.widgetTitleDividerEnabled,dividerLineColor:e.dashboards.widgetTitleDividerColor,backgroundColor:e.dashboards.widgetTitleBackgroundColor}},dashboard:{backgroundColor:e.dashboards.layoutBackgroundColor,dividerLineWidth:l0,dividerLineColor:s0,borderWidth:c0,borderColor:u0,toolbar:{primaryTextColor:e.dashboards.toolbarTextColor,secondaryTextColor:e.dashboards.toolbarSecondaryTextColor,backgroundColor:e.dashboards.toolbarBackgroundColor,dividerLineColor:d0,dividerLineWidth:h0}},filter:{panel:{titleColor:e.dashboards.panelTitleTextColor,backgroundColor:e.dashboards.panelBackgroundColor,dividerLineColor:f0,dividerLineWidth:p0,borderColor:m0,borderWidth:g0}}};return _.merge.withOptions({mergeArrays:!1},lc(),n)}function Ww(e){return e.dashboards.colorPaletteName}function bD(e,t,r){const a=r?"fonts/":"resources/base/fonts/";return[{fontFamily:e,fontWeight:"normal",fontStyle:"normal",src:[{url:`${t}${a}${e}-Regular.eot`},{local:`${e}-Regular`},{url:`${t}${a}${e}-Regular.eot?#iefix`,format:"embedded-opentype"},{url:`${t}${a}${e}-Regular.ttf`,format:"truetype"}]},{fontFamily:e,fontWeight:600,fontStyle:"normal",src:[{url:`${t}${a}${e}-SemiBold.eot`},{local:`${e}-SemiBold`},{url:`${t}${a}${e}-SemiBold.eot?#iefix`,format:"embedded-opentype"},{url:`${t}${a}${e}-SemiBold.ttf`,format:"truetype"}]},{fontFamily:e,fontWeight:"bold",fontStyle:"normal",src:[{url:`${t}${a}${e}-Bold.eot`},{local:`${e}-Bold`},{url:`${t}${a}${e}-Bold.eot?#iefix`,format:"embedded-opentype"},{url:`${t}${a}${e}-Bold.ttf`,format:"truetype"}]}]}function Hw(e,t){return Yt(this,null,function*(){const r=yield _D(e,t);if(!r)throw new I.TranslatableError("errors.themeNotFound",{themeOid:e});const n=Ww(r),i=yield jw(n,t);return Bw(r,i,t.url)})}function _D(e,t){return Yt(this,null,function*(){return t.get(`api/v1/themes/${e}`).catch(()=>{throw new I.TranslatableError("errors.themeNotFound",{themeOid:e})})})}function jw(e,t){return Yt(this,null,function*(){const r=yield t.get(`api/palettes/${e}`);if(r&&"status"in r&&r.status==="error")throw new I.TranslatableError("errors.paletteNotFound",{paletteName:e});return r})}var Vw=(e=>(e.DEFAULT="default",e.HOVER="hover",e.FOCUS="focus",e))(Vw||{});function Bu(e){return typeof e=="string"}function wD(e){var u;const t=it().themeSettings,[r,n]=k.useState(null),[i,a]=k.useState(null),o=(u=wt().app)==null?void 0:u.httpClient;k.useEffect(()=>{e&&Bu(e)&&o&&Hw(e,o).then(c=>{n(c)}).catch(a)},[o,e]),k.useEffect(()=>{(!e||!Bu(e))&&(n(null),a(null))},[e]);const s=k.useMemo(()=>r?t1(t,r):e&&!Bu(e)?t1(t,e):t,[r,t,e]);return i?[null,i]:[s,null]}function t1(e,t){return _.merge.withOptions({mergeArrays:!1},e,t)}const Gw=ml({componentName:"ThemeProvider",trackingConfig:{skip:e=>!!e.skipTracking,transparent:!0},shouldSkipSisenseContextWaiting:!0})(e=>{const{theme:t,children:r,config:n}=e,[i,a]=wD(t),o=it().config,s=k.useMemo(()=>n&&o?_.merge.withOptions({mergeArrays:!1},o,n):n||o,[o,n]);if(a)throw a;return _.jsx(_.Fragment,{children:i&&_.jsx(b0.Provider,{value:{themeSettings:i,config:s},children:_.jsx(yD,{children:r})})})}),r1="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3crect%20x='50.5'%20y='558.5'%20fill='%23E4E4E4'%20width='466'%20height='2'/%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M487.5,531.5h-410v-68.9l0.3-0.3l144-155.7l104.2,88.1l161.6-179.5V531.5z%20M79.5,529.5h406V220.4%20L326.1,397.5l-104.2-88.2l-142.4,154V529.5z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",xD="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3crect%20x='64.5'%20y='201.5'%20fill='%23E4E4E4'%20width='2'%20height='381'/%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M447.5,560.5h-357v-60h357V560.5z%20M92.5,558.5h353v-56h-353V558.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M292.5,468.5h-202v-60h202V468.5z%20M92.5,466.5h198v-56h-198V466.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M526.5,377.5h-436v-60h436V377.5z%20M92.5,375.5h432v-56h-432V375.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M368.5,285.5h-278v-59h278V285.5z%20M92.5,283.5h274v-55h-274V283.5z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",CD="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='477px'%20height='689px'%20viewBox='0%200%20477%20689'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3c!--%20Generator:%20sketchtool%2040.1%20(33804)%20-%20http://www.bohemiancoding.com/sketch%20--%3e%3ctitle%3eD5222DCB-A5E7-4783-ABD3-E5AAF56D153F%3c/title%3e%3cdesc%3eCreated%20with%20sketchtool.%3c/desc%3e%3cdefs%3e%3crect%20id='path-1'%20x='0.760775862'%20y='88.8671642'%20width='90'%20height='138'%3e%3c/rect%3e%3cmask%20id='mask-2'%20maskContentUnits='userSpaceOnUse'%20maskUnits='objectBoundingBox'%20x='0'%20y='0'%20width='90'%20height='138'%20fill='white'%3e%3cuse%20xlink:href='%23path-1'%3e%3c/use%3e%3c/mask%3e%3c/defs%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='box-and-whiskers-plot'%20transform='translate(-1362.000000,%20-6618.000000)'%20stroke='%23E5E5E5'%3e%3cg%20id='boxplot_small'%20transform='translate(1362.000000,%206618.000000)'%3e%3cg%20id='Group-40'%20transform='translate(193.000000,%20187.000000)'%3e%3cg%20id='Group-39'%20transform='translate(0.239224,%200.132836)'%3e%3cuse%20id='Rectangle-32'%20mask='url(%23mask-2)'%20stroke-width='2'%20xlink:href='%23path-1'%3e%3c/use%3e%3cpath%20d='M0.760775862,185.367164%20L90.7607759,185.367164'%20id='Path-63'%20fill='%23D8D8D8'%3e%3c/path%3e%3cpath%20d='M0.760775862,313.367164%20L90.7607759,313.367164'%20id='Path-63'%20fill='%23D8D8D8'%3e%3c/path%3e%3cpath%20d='M0.760775862,1.36716418%20L90.7607759,1.36716418'%20id='Path-63-Copy'%20fill='%23D8D8D8'%3e%3c/path%3e%3cpath%20d='M46.2607759,0.867164179%20L46.2607759,88.8671642'%20id='Path-64'%20fill='%23D8D8D8'%3e%3c/path%3e%3cpath%20d='M46.2607759,225.867164%20L46.2607759,313.867164'%20id='Path-64'%20fill='%23D8D8D8'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",TD="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3cpath%20fill='%23E4E4E4'%20d='M419,192.5h-2h-88h-2h-88h-2h-92v80H55v246h276v-80h180v-246H419z%20M507,196.5v78h-88v-78H507z%20M327,434.5%20h-88v-78h88V434.5z%20M149,434.5v-78h88v78H149z%20M237,436.5v78h-88v-78H237z%20M147,434.5H59v-78h88V434.5z%20M149,354.5v-78h88v78H149z%20M239,354.5v-78h88v78H239z%20M329,276.5h88v78h-88V276.5z%20M419,276.5h88v78h-88V276.5z%20M417,196.5v78h-88v-78H417z%20M327,196.5v78%20h-88v-78H327z%20M149,196.5h88v78h-88v-2V196.5z%20M145,276.5h2v78H59v-78H145z%20M59,436.5h88v78H59V436.5z%20M327,438.5v76h-88v-78h88%20V438.5z%20M329,434.5v-78h88v78h-86H329z%20M419,434.5v-78h88v78H419z'/%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",MD="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3crect%20x='78'%20y='558.5'%20fill='%23E4E4E4'%20width='410'%20height='2'/%3e%3cg%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M463,533.5h-61v-207h61V533.5z%20M404,531.5h57v-203h-57V531.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M363,533.5h-61v-152h61V533.5z%20M304,531.5h57v-148h-57V531.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M263,533.5h-61v-316h61V533.5z%20M204,531.5h57v-312h-57V531.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M163,533.5h-62v-248h62V533.5z%20M103,531.5h58v-244h-58V531.5z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",SD="data:image/svg+xml,%3csvg%20width='616'%20height='559'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%3e%3cpath%20fill='none'%20stroke='%23E4E4E4'%20id='svg_1'%20stroke-width='2'%20d='m97.44781,156.99998l419.1042,0l-24.42354,59.30477l-370.25707,0l-24.42359,-59.30477zm29.93028,72.6737l359.24347,0l-24.42354,59.30458l-310.39633,0l-24.42361,-59.30458zm54.35357,131.97891l-24.4232,-59.30521l299.38335,0l-24.42422,59.30521l-250.53593,0zm220.60617,72.6737l-190.67573,0l-24.42491,-59.30458l239.52554,0l-24.42491,59.30458zm-3.92305,72.6737l-182.82963,0l1.26325,-59.30458l180.30313,0l1.26325,59.30458z'/%3e%3c/g%3e%3c/svg%3e",ED="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M307.6,337.5h-28.6l-3.4,41.7h28.6L307.6,337.5z%20M278.4,376.7l3-36.7h23.5l-3,36.7H278.4z'/%3e%3cpath%20fill='%23E4E4E4'%20d='M262.9,415.9h12l2.4-28.6h23.5l-2.4,28.6h12l2.4-28.6h18.6v-10.5h-17.5l3-36.7h17.7v-10.5h-16.8l2.4-28.6%20h-12l-2.4,28.6h-23.5l2.4-28.6h-12l-2.4,28.6h-18.5V340h17.5l-3,36.7h-17.7v10.5h16.8L262.9,415.9z%20M251.1,384.7v-5.5h17.5%20l3.4-41.7h-17.8V332h18.3l2.4-28.6h7l-2.4,28.6h28.6l2.4-28.6h7l-2.4,28.6h17v5.5h-17.5l-3.4,41.7H329v5.5h-18.4l-2.4,28.6h-7%20l2.4-28.6h-28.6l-2.4,28.6h-7l2.4-28.6H251.1z'/%3e%3cpath%20fill='%23E4E4E4'%20d='M84,269.1v178.8h396.6V269.1H84z%20M478.2,445.4H86.5V271.6h391.6V445.4z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",PD="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3crect%20x='25.5'%20y='558.5'%20fill='%23E4E4E4'%20width='516'%20height='2'/%3e%3cpath%20fill='%23E4E4E4'%20d='M518.9,188.1c-18.1,0-32.8,14.7-32.8,32.8c0,10,4.5,19,11.7,25.1l-129,162.8c-5.5-4.1-12.2-6.5-19.6-6.5%20c-10.4,0-19.7,4.9-25.7,12.5l-96.4-71.5c3.7-5.3,5.9-11.8,5.9-18.7c0-18.1-14.7-32.8-32.8-32.8c-18.1,0-32.8,14.7-32.8,32.8%20c0,9.2,3.8,17.5,9.9,23.5L69.5,465.4c-5.8-5-13.2-8-21.4-8c-18.1,0-32.8,14.7-32.8,32.8S30,523,48.1,523s32.8-14.7,32.8-32.8%20c0-9.2-3.8-17.5-9.9-23.5l107.8-117.4c5.8,5,13.2,8,21.4,8c10.4,0,19.7-4.9,25.7-12.5l96.4,71.5c-3.7,5.3-5.9,11.8-5.9,18.7%20c0,18.1,14.7,32.8,32.8,32.8s32.8-14.7,32.8-32.8c0-10-4.5-19-11.7-25.1l129-162.8c5.5,4.1,12.2,6.5,19.6,6.5%20c18.1,0,32.8-14.7,32.8-32.8S537,188.1,518.9,188.1z%20M48.1,521c-17,0-30.8-13.8-30.8-30.8s13.8-30.8,30.8-30.8%20c7.7,0,14.7,2.8,20.1,7.5c0.5,0.4,1,0.9,1.5,1.4c5.7,5.6,9.3,13.4,9.3,22C78.9,507.2,65,521,48.1,521z%20M200.2,355.4%20c-7.7,0-14.7-2.8-20.1-7.5c-0.5-0.4-1-0.9-1.5-1.4c-5.7-5.6-9.3-13.4-9.3-22c0-17,13.8-30.8,30.8-30.8c17,0,30.8,13.8,30.8,30.8%20c0,6.5-2,12.5-5.5,17.5c-0.4,0.5-0.8,1.1-1.2,1.6C218.7,350.8,210,355.4,200.2,355.4z%20M349.3,465.9c-17,0-30.8-13.8-30.8-30.8%20c0-6.5,2-12.5,5.5-17.5c0.4-0.5,0.8-1.1,1.2-1.6c5.6-7.1,14.4-11.7,24.1-11.7c6.9,0,13.2,2.3,18.3,6.1c0.5,0.4,1.1,0.8,1.6,1.2%20c6.7,5.7,10.9,14.1,10.9,23.5C380.1,452,366.3,465.9,349.3,465.9z%20M518.9,251.7c-6.9,0-13.2-2.3-18.3-6.1c-0.5-0.4-1.1-0.8-1.6-1.2%20c-6.7-5.7-10.9-14.1-10.9-23.5c0-17,13.8-30.8,30.8-30.8s30.8,13.8,30.8,30.8S535.9,251.7,518.9,251.7z'/%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",AD="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3cg%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M480.4,506.2l-162.3-106L509.4,431l-0.2,1c-4.3,26.5-13.8,51.2-28.4,73.4L480.4,506.2z%20M327,403.7%20l152.7,99.8c13.9-21.5,23.1-45.3,27.3-70.8L327,403.7z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M275.3,586.8C170.9,586.8,86,502,86,397.7c0-50.6,19.6-98.1,55.1-133.8c35.6-35.7,83-55.5,133.5-55.5h1%20v188.7l158.3,103.1l-0.5,0.8C398.1,554.8,339.1,586.8,275.3,586.8z%20M273.5,210.7c-49.6,0.3-96.1,19.7-131.1,54.8%20C107.3,300.7,88,347.7,88,397.7c0,103.2,84,187.1,187.4,187.1c62.7,0,120.9-31.4,155.7-83.9L273.5,398.3V210.7z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M482.8,408.7l-1-0.2l-187.3-30V188.5h1c74.8,0,142.7,44.1,173.1,112.2c15.2,34.1,20.2,71.1,14.4,107%20L482.8,408.7z%20M296.5,376.9l184.6,29.5c5.5-35.2,0.5-71.4-14.4-104.9c-29.9-67.1-96.6-110.5-170.2-110.9V376.9z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",RD="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M298.5,607.2c-12.6,0-25.3-1.1-37.6-3.2l-1-0.2l29.6-198l-27.1,61l-20.3-12.1l45.2-52.6L126.8,524.6%20l-0.6-0.8c-12.1-15.5-21.8-32.7-29-50.9l-0.4-0.9l0.9-0.4l181.4-70.1l-149.6,20.9v-47.1l158.4,22.1L97.5,323.8l0.4-0.9%20c7.3-18,17.1-34.9,29.3-50.4l0.6-0.8L282,389.2l-76.9-89.5l34.5-20.2l49.9,112.2l-29.6-198l1-0.2c12.4-2.1,25-3.2,37.6-3.2%20c8,0,16.1,0.4,23.9,1.3l1,0.1l-0.2,1l-29.7,198.8l83.2-187.1l0.9,0.3c19.5,7.5,37.7,17.7,54.3,30.3l0.8,0.6L301.2,389.2l132.5-101%20l28,44.9l-166,64.2L511.5,367l0.1,1c1.6,10.2,2.4,20.6,2.4,30.8c0,10.2-0.8,20.6-2.4,30.8l-0.1,1l-207.1-29l95.5,36.9l-18.5,28.9%20l-85.5-65.1l108.5,126.3l-45.5,23.8l-65.1-146.5l29.9,199.9l-1,0.1C314.4,606.8,306.4,607.2,298.5,607.2z%20M262.2,602.2%20c12,2,24.2,3,36.3,3c7.4,0,15.1-0.4,22.7-1.2l-29.7-198.5L262.2,602.2z%20M295.3,404.7l64.5,144.9l41.4-21.7L295.3,404.7l0.1,0.1%20L295.3,404.7z%20M99.4,473.1c7,17.4,16.3,33.8,27.8,48.7l158.3-120.6L99.4,473.1z%20M297.8,401.2l83.1,63.3l16-25L297.8,401.2z%20M245.2,454.3l16.3,9.7l26.4-59.4L245.2,454.3z%20M298.8,398.8l211,29.5c1.4-9.8,2.2-19.7,2.2-29.5c0-9.8-0.7-19.7-2.2-29.5%20L298.8,398.8z%20M131.5,377.6V420l152.2-21.2L131.5,377.6z%20M433.2,291.1L297.8,394.2l160.9-62.2L433.2,291.1z%20M100.1,322.6%20l185.2,71.6L128.2,274.5C116.6,289.3,107.2,305.5,100.1,322.6z%20M377.9,207.1L295.3,393l0,0l0,0L430,236.1%20C414,224.1,396.5,214.3,377.9,207.1z%20M287.9,393L287.9,393l-49.2-110.6l-30.5,17.8L287.9,393L287.9,393z%20M262.2,195.3L291.6,392%20l29.6-198.5c-7.5-0.8-15.1-1.2-22.7-1.2C286.4,192.3,274.2,193.4,262.2,195.3z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",OD="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3cpolygon%20fill='%23E4E4E4'%20points='80,575%2080,233%2078,233%2078,575%2078,577%2080,577%20497,577%20497,575%20'/%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M374.7,480.1c-29.7,0-53.9-24.2-53.9-53.9c0-29.7,24.2-53.9,53.9-53.9s53.9,24.2,53.9,53.9%20C428.6,455.9,404.4,480.1,374.7,480.1z%20M374.7,374.3c-28.6,0-51.9,23.3-51.9,51.9s23.3,51.9,51.9,51.9s51.9-23.3,51.9-51.9%20S403.3,374.3,374.7,374.3z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M264.2,395.2c-22,0-40-17.9-40-40c0-22,17.9-40,40-40s40,17.9,40,40C304.2,377.3,286.2,395.2,264.2,395.2z%20M264.2,317.3c-20.9,0-38,17-38,38c0,20.9,17,38,38,38s38-17,38-38C302.2,334.3,285.1,317.3,264.2,317.3z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M413.7,351.2c-38.8,0-70.3-31.6-70.3-70.3c0-38.8,31.6-70.3,70.3-70.3s70.3,31.5,70.3,70.3%20C484,319.6,452.4,351.2,413.7,351.2z%20M413.7,212.5c-37.7,0-68.3,30.7-68.3,68.3c0,37.7,30.7,68.3,68.3,68.3%20c37.7,0,68.3-30.7,68.3-68.3C482,243.2,451.3,212.5,413.7,212.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M228.9,489C228.9,489,228.9,489,228.9,489c-15.8,0-29.7-10.1-34.5-25.2c-3-9.2-2.2-19,2.3-27.7%20c4.4-8.6,11.9-15,21.2-18c3.6-1.2,7.4-1.8,11.1-1.8c15.8,0,29.7,10.1,34.5,25.2c3,9.2,2.2,19.1-2.3,27.7c-4.4,8.6-11.9,15-21.2,18%20C236.4,488.4,232.6,489,228.9,489z%20M228.9,418.4c-3.6,0-7.1,0.6-10.5,1.7c-8.7,2.8-15.8,8.8-20,17c-4.2,8.1-4.9,17.4-2.1,26.1%20c4.6,14.2,17.7,23.8,32.6,23.8c3.6,0,7.1-0.6,10.5-1.7c8.7-2.8,15.8-8.8,20-17c4.2-8.1,4.9-17.4,2.1-26.2%20C256.9,428,243.8,418.4,228.9,418.4z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M147.5,548C147.5,548,147.5,548,147.5,548c-9.4,0-17.6-6-20.4-14.9c-3.6-11.3,2.6-23.4,13.9-27%20c2.1-0.7,4.4-1,6.6-1c9.3,0,17.6,6,20.4,14.9c3.6,11.3-2.6,23.3-13.9,27C152,547.7,149.7,548,147.5,548z%20M147.5,507.1%20c-2,0-4,0.3-6,0.9c-10.2,3.3-15.9,14.2-12.6,24.4c2.6,8.1,10,13.5,18.5,13.5c0,0,0,0,0,0c2,0,4-0.3,6-0.9%20c10.2-3.3,15.8-14.3,12.6-24.5C163.4,512.5,156,507.1,147.5,507.1z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",kD="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M148.3,490.8l-1-1.3c-25.5-31.2-39.6-70.6-39.6-111c0-40.4,14.1-79.8,39.6-111l1-1.3l26.9,26.9l-0.8,1%20c-38.6,49.6-38.6,118.9,0,168.6l0.8,1L148.3,490.8z%20M148.5,270.8c-24.4,30.4-37.9,68.6-37.9,107.8c0,39.1,13.4,77.4,37.9,107.8%20l22.7-22.7c-38.4-50.3-38.4-119.9,0-170.2L148.5,270.8z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M368.3,270.8l-1-0.8c-23.9-18.6-53.9-28.9-84.3-28.9c-30.4,0-60.3,10.2-84.3,28.9l-1,0.8l-26.9-26.9%20l1.3-1c31.2-25.5,70.6-39.6,111-39.6c40.4,0,79.8,14.1,111,39.6l1.3,1L368.3,270.8z%20M283,238.1c30.6,0,60.8,10.2,85.1,28.7%20l22.7-22.7c-30.4-24.4-68.6-37.9-107.8-37.9c-39.2,0-77.4,13.4-107.8,37.9l22.7,22.7C222.2,248.3,252.4,238.1,283,238.1z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M417.7,490.8l-26.9-26.9l0.8-1c38.6-49.6,38.6-118.9,0-168.6l-0.8-1l26.9-26.9l1,1.3%20c25.5,31.2,39.6,70.6,39.6,111c0,40.4-14.1,79.8-39.6,111L417.7,490.8z%20M394.8,463.7l22.7,22.7c24.4-30.4,37.9-68.6,37.9-107.8%20c0-39.1-13.4-77.3-37.9-107.8l-22.7,22.7C433.1,343.8,433.1,413.4,394.8,463.7z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M283,553.9L283,553.9c-40.4,0-79.8-14.1-111-39.6l-1.3-1l26.9-26.9l1,0.8c23.9,18.6,53.9,28.9,84.3,28.9%20c30.4,0,60.4-10.2,84.3-28.9l1-0.8l26.9,26.9l-1.3,1C362.8,539.9,323.4,553.9,283,553.9z%20M175.2,513.1%20c30.4,24.4,68.6,37.9,107.7,37.9h0.1c39.1,0,77.3-13.4,107.8-37.9l-22.7-22.7c-24.3,18.5-54.4,28.7-85.1,28.7%20c-30.6,0-60.8-10.2-85.1-28.7L175.2,513.1z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M283,458c-43.8,0-79.4-35.6-79.4-79.4c0-43.8,35.6-79.4,79.4-79.4c43.8,0,79.4,35.6,79.4,79.4%20C362.4,422.4,326.8,458,283,458z%20M283,302.2c-42.1,0-76.4,34.3-76.4,76.4c0,42.1,34.3,76.4,76.4,76.4c42.1,0,76.4-34.3,76.4-76.4%20C359.4,336.5,325.1,302.2,283,302.2z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M283,493c-63.1,0-114.4-51.3-114.4-114.4S219.9,264.2,283,264.2c63.1,0,114.4,51.3,114.4,114.4%20S346.1,493,283,493z%20M283,267.2c-61.4,0-111.4,50-111.4,111.4S221.6,490,283,490c61.4,0,111.4-50,111.4-111.4%20S344.4,267.2,283,267.2z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",DD="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2018.1.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566.5%20700.5'%20enable-background='new%200%200%20566.5%20700.5'%20xml:space='preserve'%3e%3cg%20id='Layer_2'%3e%3crect%20x='-5057'%20y='-6963'%20fill='transparent'%20stroke='%23000000'%20stroke-miterlimit='10'%20width='16156.4'%20height='16115.1'/%3e%3c/g%3e%3cg%20id='Layer_1'%3e%3cpath%20fill='%23E4E4E4'%20d='M399,207h-2H284h-2H170h-2H53v35v4v31v2v31v2v30v2v31v2v30v2v31v2v31v2v34h115h2h112h2h113h2h116v-34v-2%20v-31v-2v-31v-2v-30v-2v-31v-2v-30v-2v-31v-2v-31v-4v-35H399z%20M397,211v31H284v-31H397z%20M282,279v31H170v-31H282z%20M170,277v-31h112%20v31H170z%20M282,312v30H170v-30H282z%20M282,344v31H170v-31H282z%20M282,377v30H170v-30H282z%20M282,409v31H170v-31H282z%20M282,442v31H170%20v-31H282z%20M284,442h113v31H284V442z%20M284,440v-31h113v31H284z%20M284,407v-30h113v30H284z%20M284,375v-31h113v31H284z%20M284,342v-30h113%20v30H284z%20M284,310v-31h113v31H284z%20M284,277v-31h113v31H284z%20M282,211v31H170v-31H282z%20M57,211h111v31H57V211z%20M57,246h111v31H57%20V246z%20M57,279h111v31H57V279z%20M57,312h111v30H57V312z%20M57,344h111v31H57V344z%20M57,377h111v30H57V377z%20M57,409h111v31H57V409z%20M57,442h111v31H57V442z%20M57,505v-30h111v30H57z%20M170,505v-30h112v30H170z%20M284,505v-30h113v30H284z%20M511,505H399v-30h112V505z%20M511,473H399v-31h112V473z%20M511,440H399v-31h112V440z%20M511,407H399v-30h112V407z%20M511,375H399v-31h112V375z%20M511,342H399v-30h112%20V342z%20M511,310H399v-31h112V310z%20M511,277H399v-31h112V277z%20M399,242v-31h112v31H399z'/%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",ND="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3cpath%20fill='%23E4E4E4'%20d='M52,202.5v200v2v104h462v-306H52z%20M510,402.5H225v-196h285V402.5z%20M56,206.5h167v196H56V206.5z%20M56,404.5%20h298v100H56V404.5z%20M356,504.5v-100h154v100H356z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",n1="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M276.8,521.3c-0.5,0-0.9-0.1-1.3-0.2l-0.3-0.1l-0.2-0.2c-0.5-0.6-1-1.3-0.8-1.9c-1-0.6-2.6-0.6-4-0.6%20c-1,0-1.8,0-2.5-0.2l-0.3-0.1l-0.2-0.2c-0.5-0.6-2.8-1.7-4.5-2.5c-1.9-0.9-3.8-1.7-4.8-2.5l-0.2-0.2l-0.1-0.3c-2-5-2.7-6.5-3-7%20c-0.1-0.3-0.2-0.4-0.2-0.6c-0.1-0.6,0-1.1,0.1-1.4c0.1-0.5,0.2-1-1.2-3.5c-0.4-0.6-2.4-2.7-3.6-3.8l-0.2-0.2l-1.1-3%20c-1.8-1.6-3.5-5.2-5.1-8.3c-0.7-1.4-1.3-2.6-1.8-3.5c-1.1-1.6-2-2.4-2.9-3.2c-1.1-1-2.2-2-3.8-4.3c-2.1-0.3-3.7,0-5.3,0.4%20c-2,0.4-3.9,0.8-6-0.3c-0.4,0.5-1.1,1.8-1.6,2.7c-1.6,2.9-3.4,6.3-5.8,5.3c-12.1-4.7-13.8-9.4-14.9-12.4c-0.1-0.3-0.2-0.6-0.3-0.8%20l-0.1-0.2l0-0.2c0.2-2.3,0.1-2.4-0.3-3.1c-0.4-0.7-1-1.7-1.9-4.2c-4.3-2.4-8.1-7.1-10.8-10.5c-1.1-1.3-2-2.5-2.7-3.2%20c-0.1,0-0.2-0.1-0.4-0.1l0,0.2l-0.9-0.1c-2.4-0.3-7.4-0.9-14.7-1.2l-1,4.1l-0.4,0.2c-2.2,1-6.3,1.8-8.9,0.7l0,0l-9.4-1.9%20c-5.6,0.2-10.8-2.5-14.6-4.5l-0.9-0.5c-4.7-2.3-8.4-4.5-11.4-6.3c-1.2-0.7-2.2-1.3-3.2-1.9c-5.5-3.1-9.2-5.2-15.9-8.5l-0.5-0.2%20l-0.1-0.5c-0.1-0.7-0.1-1.2-0.1-1.6c0-0.1,0-0.3,0-0.4l-5.3-0.6c-6-0.7-12.2-1.3-16.2-1.5l-0.1,0.1l-0.7-0.1l0.1-1.1l-0.5-0.7%20c-0.3,0.2-0.4,0.5-0.4,0.6c0.1-1-1.4-8.7-2.7-10.8c-1.4-2.1-3.1-3.5-5.6-4.5l-0.3-0.1l-0.2-0.2c-0.7-0.9-0.8-2.2-0.8-3.1%20c-0.3-0.1-0.6-0.2-1.1-0.3c-1.8-0.6-6.9-4.8-7.6-6.2c-0.8-0.8-2.2-1.9-3.2-1.9c-2.7,0-4.7-0.8-5.8-2.4c-1.7-2.4-0.9-5.9-0.1-8%20c-1.4-2.2-2.9-5.5-4.2-8.4c-1.2-2.7-2.5-5.4-3.2-6.3l-0.2-0.2l0-0.3c-0.2-1.6-0.5-4.7,2.1-6.5c0.1-0.9-0.3-1.2-1.2-1.8%20c-0.9-0.7-2.2-1.6-2.8-3.6c-0.3-0.9-0.1-3.3,0.1-5.1c0,0-0.1,0-0.1,0c-0.2-0.1-0.5-0.4-0.7-0.9l-0.1-0.3l0.1-0.3%20c0.3-0.8,0.4-1.2,0.4-1.4c-0.1-0.1-0.3-0.4-0.4-0.7l-0.1-0.5l0,0c0,0-0.1-0.1-0.1-0.1c-0.6-0.6-1.3-1.2-1.7-2.2l-0.3-0.5l0.4-0.5%20c0.4-0.6,0.3-1.1-0.1-2.5c-0.2-0.6-0.4-1.3-0.5-2c0,0,0,0,0,0c-1.3-0.9-4-2.8-3.1-9.6c0.4-2.6,0.5-4.7,0.6-6.6%20c0.1-0.8,0.1-1.6,0.2-2.5c-0.8-1-2.8-4.1-2.3-7.1c0.3-1.6,1.2-2.9,2.8-3.9c1.5-2.9,3.3-8.8,3.6-12.7c-0.7-1.2-0.5-2.7-0.2-4.7%20c0.1-0.7,0.2-1.5,0.3-2.4c0.4-4.3,2.4-8.3,5.1-10.4c3.3-8.1,7.8-19.4,11.2-28.6l-0.4-0.3l0.3-0.9c-1-0.6-0.9-2-0.9-2.5%20c0.1-1.4,1.1-2.6,1.8-3.4c0,0,0,0,0.1-0.1c-0.6-1.6-0.6-1.9-0.4-3.7c0.2-1,0.9-1.5,1.4-1.7c0-0.9-0.2-2.8-0.3-4.4%20c-0.3-3.2-0.7-7.2-0.5-10.1c0.1-2.1,0.9-3.4,2.2-3.8c3.8-1.2,10.8,7.2,12.9,9.7l0.5,0.6l-0.4,0.6c-1.2,1.7-0.2,6.3,0.8,8.6%20c0.3-1.3,0.9-3.2,2.7-3.7l0.2-3.6l0.1,0c0-0.4-0.1-1.3-0.2-2c-0.4-2.8-0.5-4.3,0-5.1c0-0.3-0.4-1.1-0.6-1.6%20c-0.6-1.1-1.2-2.4-0.8-3.7l0.3-1.1l1,0.4c2.4,1,29.9,7.4,44.2,10.6c2.8,0.3,7.6,1.6,8.4,1.8c0.4,0,1.5,0.2,4.9,0.8%20c7.5,1.3,23.2,4,42.1,6.6c14.2,2,31.3,3.6,47.7,5.1l54.2,1.4c2.1-0.3,4.4-0.4,14.5-0.4v-1c0-2.1,0.8-2.3,2.8-2.8l0.3-0.1%20c1.4-0.2,3.3,2.6,3.6,4c0.1,0.7,0.7,2.1,1.3,2.6c1.1,0.9,1.9,1,2.7,1.1c0.4,0.1,0.8,0.1,1.2,0.2c0.1,0,0.4,0.1,0.7,0.2%20c0.8,0.2,2.8,0.7,3.3,0.6c8.4-1,8.6-0.5,9.1,0c0.1,0.1,0.1,0.4,0.1,0.9v0.2l-0.1,0.3c-0.2,0.2-0.3,0.5-0.4,0.7%20c3.4,0.4,6.8,2.2,8,3c2.4-1.1,4.4-1.3,7.2-1.6c1-0.1,2.2-0.2,3.5-0.4l5.5-0.3c3-1,6.7-2.1,7.8-1.8l0.2,0.1l0.2,0.2%20c0.6,0.5,1.3,2.4,0.5,4.1c-1,2.2-3.8,3.1-8.4,2.6l-0.2,0l-0.2-0.1c-1-0.6-6.7,1.9-8.1,2.9c-0.8,0.6-6.6,6.7-9.9,10.4%20c1.5-0.3,3.2-1,4.7-1.7c1.3-0.6,2.5-1.1,3.4-1.2l0.6-0.1l0.8,1.4c0.2,0.2,0.3,0.4,0.4,0.5c0.2,0.6-0.2,1-0.4,1.2%20c-0.1,0.1-0.1,0.1-0.2,0.2c1,0.2,1.8,0.4,2.4,0.6c0.5-0.1,2.4-0.4,2.6-1.5c0-0.2,0.1-0.5,0.2-0.7l2.1-2.9l-0.2,2.3%20c2.1-0.8,6.4-2.8,8.6-5.2c0.6-1.8,3.7-3.6,4.4-3.9c0.2-0.1,0.4-0.2,0.5-0.3c0.7-0.4,1.8-1,2.7-0.6c0.6,0.2,1,0.7,1.3,1.4l0.1,0.2%20l0,0.2c-0.2,2.4-2.1,2.5-2.8,2.6c-0.1,0-0.2,0-0.2,0c-0.1,0-0.4,0.3-0.7,0.7c0.2,0.7-0.1,1.5-0.5,2.1c2-0.2,4.5,0.4,8.1,3.9%20c0.5-0.1,1.2-0.2,1.9-0.3l0.3,0l0.3,0.2c1.3,0.9,4.8-1.3,6.3-2.2c0.8-0.5,1.2-0.7,1.6-0.8l0.1,0c0.7-0.1,1.4-0.2,2-0.3%20c1.9-0.3,3.4-0.5,4.4-1.1l1.1-0.6l0.4,1.5c0.2,0.8,0.5,1.7,1,1.9c0.6,0.3,1.8,0,3.3-0.7l1.3-0.6l0.1,1.4c0.1,0.5,1.6,2.4,2.4,3.4%20c0.5,0.7,1.1,1.6,1.4,2l1.1,1.8h-1.9c-1.3,0-3.1-0.1-4.7,0c0,0,0-0.1,0-0.1c-0.1,0.1-0.1,0.1-0.3,0.6l11.1,4.2l0.2,0.2%20c0.1,0.1,1.4,1.6,2.3,3.9l0,0.1c0.6,2.6,1.3,7.7,1.3,7.8l0.1,0.9l-0.9,0.2c-0.3,0.1-0.5,0.1-0.6,0.1c0,0,0,0,0,0%20c-0.6,2.3-1.2,3.9-2.8,4.3c-0.5,1.4-0.2,1.9-0.1,2.1c0.2,0.2,0.5,0.3,0.7,0.3l1.6-1.3c0.2-0.9,0.8-2.9,3.5-4.5l0.3-0.2l0.3,0%20c2.8,0.1,4,2.2,4.5,3.1l0.2,0.5c1.2,5.7,3.2,7.3,3.2,7.3l0.4,0.3l0,0.5c-0.1,1.8-0.3,3.9-0.2,4.4c0.2,0.8,0,2.1-0.2,2.6%20c-0.2,0.6-0.4,1-0.7,1.2c0,0.2,0.2,0.3,0.2,0.6v0.7l-0.8,0.3c-0.2,0.1-0.4,0.1-0.5,0.2c0,0,0,0,0,0l0.1,0.5l-0.3,0.4%20c-0.5,0.6-1.1,0.7-1.5,0.9c-0.4,0.1-0.4,0.1-0.5,0.2c-0.1,0.3-0.1,0.4-0.1,0.4c0,0.1,0.2,0.3,0.3,0.5l0.7,0.9l-0.7,0.6%20c-0.6,0.5-2,2.2-2.6,3.7c2.2,0.5,5.9,1.4,7.4,1.7c1.2-1.3,2.6-1.7,3.5-2c0.1,0,0.2-0.1,0.3-0.1l0-0.2l2.8-1.1l1.8-2.1%20c0.1-0.1,2.4-3.3,5.5-4.1l0.3-0.2l2.1-0.7c0.3-0.1,0.8-0.3,1.3-0.4c0.8-0.2,1.7-0.5,2.2-0.8l0.2-0.1l0.2,0c0,0,1-0.2,2.5-0.2%20c0.2-0.3,0.4-0.7,0.7-1.1c1.1-1.6,3.3-4.9,3.6-5.7l0.3-0.8l0.6,0.1c0-0.1,0.1-0.2,0.1-0.3c0.2-0.4,0.4-0.8,0.7-1.4%20c0-0.7-0.3-1.2-0.7-2c-0.4-0.7-0.9-1.4-1.1-2.4c-0.1-0.2-0.3-0.4-0.3-0.5v0c0-0.1,0.2-0.2,0.2-0.2l-0.1-0.1c0-0.3-0.1-0.5-0.1-0.7%20V291l1.6,5.8c0.1-0.1,0.3-0.1,0.5-0.2c1.3-0.5,5-1,9.2-1.5c1.5-0.2,2.8-0.3,3.4-0.4c1.8-0.4,4.6-1.2,5.3-1.7%20c0.8-0.6,1.7-1.8,2.2-2.3c0.1-1.5,0-3.8-0.6-4.4c-0.1-0.1-0.3-0.2-0.6-0.1l-1.1,0.2l-0.1-1.1c-0.1-1.6,0.9-2.8,1.3-3.1%20c5-7.8,9-11.1,9.2-11.2l0.2-0.1l12-3l0-0.4l0.8-0.2c4.5-0.9,8.2-2,11.2-2.8c1-0.3,1.9-0.6,2.7-0.8c0-0.3,0-0.6,0-0.8%20c0.2-1.4,1.6-2.8,3.3-3.3c0.1,0,0.1-0.1,0.2-0.1l1.3-3v-1.5c-0.4-0.5-0.8-1.3-0.5-2c0.2-0.4,0.6-0.9,1.7-0.8%20c0.5-0.6,1-2.9,1.2-10.6c0-0.8,0-1.5,0.1-1.8l0-0.4l0.3-0.3c0.7-0.6,1.2-2.3,1.7-3.7c0.6-2,1.2-3.9,2.6-4.7l0.8-0.4l0.5,0.8%20c0.2,0.4,1.1,1.4,2,1.3c0.9-0.2,1.5-0.7,2.1-1.3c0.8-0.7,1.7-1.5,3-1.5h0.3l0.3,0.2c3.6,2.8,4.2,3.6,4.9,4.9%20c0.2,0.3,0.4,0.7,0.7,1.1l0.1,0.3c0.2,0.6,0.6,2.1,1.1,4c0.8,2.7,1.8,6.3,2.2,7.5c0.2,0.1,0.7,0.1,1.1,0c2-0.2,2.5,1.3,2.8,2.4%20c0.1,0.4,0.3,0.9,0.6,1.4c0.1,0,0.3,0.1,0.4,0.2c0.9,0.6,1.2,2.1,1.5,3.6c0.1,0.5,0.2,1.2,0.3,1.5l0.5,0.4l-0.3,0.7%20c-0.4,0.9-1.5,2.5-2.5,4c-0.2,0.4-0.4,0.6-0.5,0.8c-0.9,2.3-2.9,4-5.4,4.7c-1.3,0.3-2.4,0.3-3.2-0.1c-0.2,1.2-0.4,2.5-0.3,3.2%20l0,0.8l-1.8,0.6c-0.4,2-2.1,4-3.6,4.9c0.1,0.7,0.4,1.6,0.6,2.5c0.6,2.3,1.3,4.7,0.8,6.3l-0.1,0.4l-0.4,0.2%20c-1.8,0.8-3.9,1.4-5.5,1.6c0.3,0.4,0.9,0.8,2,1.4l0.9,0.4l-0.5,0.9c-0.2,0.4,0.1,2.1,0.2,2.9c0.1,0.5,0.1,0.9,0.2,1.2%20c1.7,2.5,3,3.3,3.6,3.1c0.5-0.1,0.9-0.9,0.9-1.3l0.1-0.7l0.7-0.2c2.2-0.5,3.5,1.3,4.2,2.4c0.1,0.2,0.3,0.4,0.4,0.6%20c1.4,0.2,4,0.4,4.9,0.3l1.1-0.2v1.2c0,0.5,0,1.4-4.1,2.5c-1.4,0.3-2.7,0.1-3.8-0.5c-0.6,0.5-1.3,0.7-1.9,0.6%20c-0.5-0.1-0.8-0.3-1.1-0.5c-0.4,0.3-1,0.7-1.5,0.9l-1.7,0.5l0.2-0.8c-0.9-0.1-2.3-0.2-3.8-0.2c0.6,1.1,1.5,2.5,2.1,3.5l0.4,0.6%20l-0.4,0.6c-2.1,2.8-5.7,4.7-5.9,4.8l-0.2,0.1c-3,0.8-14.2,8-19.4,11.4l1.3,0.1l0.2,0.7c0,0.2,1.1,4.6,0,9%20c-1.1,4.2-3.8,8.9-3.9,9.1l-0.9,1.6l-1.5-3l-2-0.4l-2.3-1.3c0.6,1.2,1.3,2.7,1.6,3.3l0.1,0.2c0.4,3.5,1.5,5.4,1.5,5.4l0.2,0.3%20l-0.3,4.6l0.2,0.1l-0.1,0.9c0,0,0,0.2-0.1,0.4l-0.1,1.6h-0.9c-0.1,0.1-0.4,0.4-0.7,0.8c-1.1,1.2-2.5,0.8-3.4,0.4%20c-0.1,0.2-0.3,0.4-0.6,0.5c-0.3,0.1-0.6,0.1-0.8,0.1c0,0,0,0,0,0c-0.6,0.4-1.5,0.2-2.7-0.6c0.2,0.6,0.1,1.2,0,1.7%20c0,0.2-0.1,0.6-0.1,0.7c0.3,0.4,0.4,0.8,0.5,1c0.1,0.2,0.1,0.3,0.4,0.5c0.5,0.4,0.6,0.8,0.6,1.1c0,0.6-0.4,1-0.7,1.2%20c0,0-0.1,0.1-0.1,0.1c0.1,0.1,0.4,0.4,1,0.8c0.4,0.3,1.3,0.9,1.1,1.8c-0.2,0.9-1.1,1-1.9,1.2c-0.2,0-0.5,0.1-0.8,0.2%20c0.2,0.3,0.6,0.8,1.6,1.6c0.9,0.8,1.5,1.9,1.7,2.8h1.1c0.8,0,1.4,0.4,1.7,0.8c2.3-0.2,6.4-0.4,8.7,5.2c1.3,3.1-2.5,8-2.9,8.6%20l-0.1,0.1c-0.7,0.6-1.8,0.5-3,0.5c-0.1,0-0.2,0-0.3,0l0.4,0.3l-0.1,0.6c0,0.2-0.1,0.5-0.2,0.7c-0.1,0.5-0.2,0.8-0.1,1.1%20c0.1,0,0.2,0,0.2,0c0.5-0.1,1.3-0.3,2,0.2c0.5,0.4,0.7,0.9,0.8,1.8c0.2,1-0.8,2.4-1.2,2.9l-0.7,0.9l-0.7-0.7c-0.2,0-1.2,0-4.3,1.7%20c-3.3,1.4-5.3,5.8-6,9.1l-0.1,0.2l-0.2,0.2c-0.6,0.7-1.8,1.5-2,1.5l-0.2,0.1l-0.2,0c-1.7,0.1-2.5,0.5-3.1,0.9%20c-0.3,0.2-0.7,0.4-1.1,0.4c-0.2,0.4-0.6,0.9-1.1,1.5c-0.4,0.5-0.8,1-1.1,1.5c-2.2,5.6-4.7,9.1-4.8,9.3l-0.1,0.2%20c-0.1,0.1-1.3,1.2-2.8,2.1c-0.4,1.3-0.7,2.4-0.7,2.4l-0.2,0.6l-0.6,0.1c-0.8,0.1-1.9,0.5-2.7,0.8c0.6,1.4,0.2,2.4-0.2,2.9%20c-0.7,0.8-1.8,1.2-2.7,1.2c-0.3,0.8-0.7,1.5-1.1,2.1c-1.8,4-3.6,10.4-3.6,15.2c1.1,1.2,1.8,3.4,2.5,5.6c0.3,0.9,0.6,1.9,0.9,2.7%20c1.3,3.1,6.4,11.1,7.5,12.4c0.5,0.1,1.4,0.3,2.2,1.1c1.4,1.3,2.1,3.6,2.1,6.8c0,0.2,0,0.4-0.1,0.6c1.3,2.8,4.1,8.3,7.1,11.1%20l0.2,0.2l0,0.2c1.1,2.9,2.3,11,2.3,13.3v0.5l-0.4,0.3c-1.5,1-1.5,4.8-1.5,6.6c0,1.4,0,1.8-0.5,2.2l-0.4,0.3l-0.5-0.1%20c-0.7-0.2-1.5,0.3-2.3,0.7c-1,0.6-2.4,1.4-3.6,0.1c-0.4-0.4-0.3-0.9-0.3-1.1c0-0.1,0-0.1,0.1-0.2c0-0.1-0.1-0.1-0.1-0.2%20c-0.1-0.1-0.2-0.3-0.2-0.4c-0.1,0-0.4,0.1-0.8,0.5l-1.1,0.8l-0.5-1.3c-1-2.9-4.9-5.2-8.6-7.1l-0.5-0.2l-0.1-0.5%20c-0.2-1.6-1-2.9-2.1-3.5c-1.1-0.6-1.5-1.9-1.7-3c-0.5,0.1-0.9-0.1-1.1-0.2l-0.7-0.2l0-0.5c-2.6-1.4-3.9-4.2-5.2-7.1l-0.1-0.2%20l0-0.3c0.1-0.7,0.4-1.4,0.7-2.2c-0.1,0.1-0.2,0.2-0.3,0.3c-0.4,0.3-1,0.3-1.6,0.1l-0.3-0.1l-0.2-0.2c-0.3-0.3-0.5-0.4-0.6-0.5%20c-0.4-0.3-0.9-0.7-0.7-1.7c0.2-3.5,0.6-6.1,0.6-6.2c0.3-1.7,0.4-4.6-0.5-5.3l-0.1-0.1l-0.1-0.1c-0.7-1.1-1.3-1.8-2.2-2.1%20c-3.3-1-5.5-2.7-6.7-5c-1.3-0.5-2.5-1.8-3.1-2.9c-1.6-0.3-5.1-0.6-6.2,0.8l-0.1,0.1l-0.1,0.1c-1.1,0.7-1.9,1.4-2.6,2%20c-1.6,1.4-2.8,2.4-6.5,2.3c-2.6-0.2-3.3-0.9-4-2c-0.4-0.7-0.9-1.4-3.5-1.9c-1.1-0.2-1.9-0.4-2.4-0.4c0,0.2,0,0.4-0.1,0.6%20c-0.4,0.8-1.3,0.8-1.6,0.9c-2.1,0.2-2.8-0.8-3.2-1.4c-2.9,1-5.4-0.8-7.1-2c0,0-0.1-0.1-0.1-0.1c0,0,0,0-0.1,0.1l-0.2,0.3%20c0,0.1,0,0.1,0,0.2l0,0.4l-0.2,0.3c-1.1,1.3-3.5,1.8-3.7,1.8l-0.8,0.2l-0.3-0.7c-0.2-0.6-0.8-1.7-1.3-2.7c0,0.2-0.1,0.4-0.1,0.6%20c-0.2,1.2-0.3,2.2-1.1,2.6c-0.1,0.1-0.1,0.3-0.2,0.4c-0.1,0.3-0.4,1-1.1,1c-0.4,0-0.7-0.1-0.9-0.3h-0.4c-0.8,0-1-0.6-1.1-1.4%20c-2.4,0.5-7,1.7-10,3.8c0.1,0.1,0.1,0.3,0.1,0.4c0,0.8-0.6,1.2-1.3,1.5c-0.7,0.4-1.4,0.8-1.3,1.2l0,0.3c0,0.1,0,0.2,0,0.2%20c0.3,0.1,0.7,0.4,1.3,0.8l0.1-0.1l0.6,0.2c6,2.4,6.5,3.4,6.6,3.8c0.1,0.2,0.2,0.5,0.2,0.7v0c0,0.5-0.2,1.8-1.4,2.3%20c-1.3,0.6-3.3-0.3-6.3-2.7c-0.2-0.2-0.4-0.2-0.4-0.2c0,0-0.2,0.1-0.3,0.1c-0.3,0.2-1,0.5-1.7,0.2c-0.1,0.7-0.4,1.5-1.2,2.2%20l-0.5,0.4l-0.6-0.3c-3.4-1.6-4.1-1.2-4.1-1.2c0,0.1-0.1,0.3-0.1,0.4c0,0.1,0,0.3,0,0.4l-0.1,0.7l-0.7,0.1%20c-2.3,0.4-4.2,0.3-6.2-1.1l-0.3-0.2l0-0.2c-0.3-0.4-0.8-1-1.3-2.2c-0.3-0.2-0.7-0.3-1.2-0.5c-0.9-0.2-2-0.3-2.6-1.7%20c-0.3-0.1-0.8-0.1-1.2-0.1h-0.3l-0.2-0.3c-0.4-0.2-1.2-0.4-1.5-0.1c-0.2,0.2-0.1,0.5-0.1,0.8l0.2,0.7l-0.6,0.4%20c-2.9,1.9-6.9,0.5-10.8-0.9c-0.9-0.3-1.8-0.6-2.6-0.9c-2,0.7-4.3,1.2-6,1.2l-0.2,0c-0.1,0-0.1,0-0.2-0.1c-1.4,1-5.1,2.4-6.8,3%20c-0.2,0.8-0.6,2-1.8,2.6l-3.8,3.4l-4.1,2.9l-5,2.2c-0.5,0.5-1.1,0.9-1.6,1.3l0.6,0.4l-1.1,0.8c-0.5,0.3-1,0.7-1.7,1.2%20c-1.6,1.1-4,2.7-4.4,3.9l-0.5,1.9l-0.7-1c0.2,0.9-0.5,1.8-0.9,2.5c-0.1,0.2-0.2,0.3-0.3,0.4l-0.3,0.6l-0.7-0.1l-0.3,1.8%20c-0.1,0.5-0.3,2.1-0.3,2.7c0,0.6,0.3,1.8,0.6,3.1c0.6,2.7,1.4,6,1.2,8.2c0.4,0.1,0.7,0.4,0.9,0.6c0.7,0.9,0.2,2.1,0.1,2.4%20l-0.1,0.1c0,0.1-0.1,0.2-0.1,0.3c-0.1,0.3-0.3,0.8-0.9,1.1c-0.4,0.2-0.8,0.1-1.2,0C278.8,521,277.8,521.3,276.8,521.3z%20M274.9,519.6c0.1,0.2,0.3,0.3,0.4,0.3c0.2,0.1,0.4,0,0.5,0l-0.4-0.5L274.9,519.6z%20M275.5,519.3l0.5,0.4l0.2-0.5c0,0,0,0,0,0%20c0-0.1,0-0.2,0-0.3L275.5,519.3z%20M276.3,519.3c0.9,0.1,2.2-0.3,2.6-0.5l0.4-0.2l0.4,0.2c0-0.1,0.1-0.3,0.2-0.4%20c0-0.1,0-0.1,0.1-0.2c-0.1,0-0.2,0-0.3,0l-1.8,0.3l0.7-1.6c0.6-1.6-0.3-5.6-1-8.3c-0.4-1.5-0.7-2.7-0.7-3.5c0-0.3,0-0.7,0.1-1.1%20l-1.4,0.7l2.7-6.3l1,0.1l0,0c0.2-0.3,0.5-0.8,0.6-1c0,0-0.1,0-0.1-0.1l-0.9-0.4l0.4-0.9c0.3-0.7,1.3-1.3,2.2-1.4%20c0.1,0,0.1,0,0.2,0c0.9-1.5,2.9-2.8,4.8-4.1c0.1-0.1,0.3-0.2,0.4-0.3l-0.4-0.7l0.6-0.6c0.2-0.2,0.4-0.3,0.6-0.3%20c0.5-0.3,1.4-0.9,2.3-1.7l0.1-0.1l5.2-2.3l3.8-2.7l4-3.6c0.7-0.3,0.9-1.5,0.9-1.7l0.1-0.6l0.6-0.2c3-1.1,6.5-2.3,7-2.8l0.5,0.8%20h1.2v-1.1c0-0.1-0.3-0.2-0.4-0.2c0.1,0,0.2,0.1,0.3,0.1c1.5,0,3.7-0.5,5.5-1.2l0.3-0.1l0.3,0.1c1,0.3,2,0.7,3,1%20c3.1,1.1,6.3,2.2,8.5,1.3c-0.1-1.2,0.5-1.8,0.9-2.1c1-0.8,2.5-0.7,3.5-0.3c1.1,0.1,2.1,0.6,2.2,0.6l0.4,0.2l0.1,0.4%20c0.2,0.7,0.5,0.8,1.4,1c0.6,0.2,1.4,0.4,2.1,1l0.2,0.2l0.1,0.2c0.6,1.3,1,1.9,1.2,2.1c0,0,0,0,0,0c1.1,0.7,2.1,0.9,3.8,0.7%20c0.1-0.5,0.4-1.1,1-1.4c1.1-0.6,2.7-0.3,5.3,0.8c0.1-0.3,0.1-0.8,0-1.3c-0.1-0.4-0.2-1.2,0.5-1.6c0.7-0.4,1.4,0.2,1.8,0.6%20c0.2,0.2,0.3,0.2,0.3,0.2c0,0,0.1-0.1,0.2-0.1c0.2-0.1,0.6-0.3,1-0.3c-0.2-0.1-0.3-0.3-0.5-0.5c-0.3-0.2-0.5-0.4-0.6-0.5%20c-0.2,0-0.4-0.1-0.6-0.2c-0.7-0.4-0.8-1.2-0.8-1.9c-0.1-0.6-0.1-1.1,0.1-1.5c-0.3,0-0.6,0-0.9-0.1c-0.9-0.3-1.6-1.1-2.2-2.3%20l-0.2-0.4l0.2-0.4c0.3-0.5,0.6-1,0.8-1.4c0-0.1,0.1-0.1,0.1-0.2l-0.1-0.2l0.5-0.6c0.5-0.5,1.1-0.5,2.6,0.1c0.3,0,0.6,0.1,0.9,0.3%20l0.8,0.3l-0.1,0.4c0.1,0.1,0.2,0.2,0.2,0.3c0.2,0.2,0.4,0.5,0.6,0.7c3.7-2.6,9.3-3.9,11.5-4.3l0.6-0.1l0.1,0.5l0.3-0.6%20c-0.3-0.1-0.6-0.1-0.8,0l0.4-0.2l0.5,0.1c0.2,0.1,0.5,0.2,0.7,0.7l0.2,0.5c0.1-0.1,0.2-0.2,0.4-0.3c0.1-0.2,0.2-0.8,0.2-1.3%20c0.2-1.1,0.3-2.4,1.1-3.2l0.7-0.7l0.7,0.7c0.9,0.9,1.9,2.9,2.4,4c0.6-0.2,1-0.4,1.4-0.8c0-0.4,0.1-0.7,0.1-1v-0.3%20c0-0.1,0.1-0.2,0.1-0.3l0-0.1l0-0.1c0-0.2,0-0.4,0-0.5c-0.2-0.6-0.7-1.4-0.9-1.7l1.6-1.2c0.4,0.4,1,1.2,1.3,2.4%20c0.1,0.2,0.1,0.3,0.1,0.5c0.4,0.2,0.8,0.5,1.3,0.8c1.6,1.1,3.5,2.5,5.5,1.7c0.9-0.4,1.7-0.1,2.2,0.9c0.2,0.3,0.3,0.5,0.9,0.5%20c-0.1-0.3-0.1-0.6,0.1-1c0.5-0.7,1.4-0.7,5,0c3.2,0.7,4.1,1.7,4.8,2.8c0.4,0.6,0.6,0.9,2.4,1c2.9,0.2,3.6-0.4,5.1-1.8%20c0.7-0.6,1.5-1.3,2.6-2.1c2.3-2.7,7.9-1.4,8.6-1.3l0.5,0.1l0.2,0.5c0.4,0.9,1.5,2.2,2.5,2.4l0.5,0.1l0.2,0.4%20c0.8,2,2.7,3.4,5.6,4.3l0.1,0c1.2,0.5,2.2,1.4,3.1,2.8c1.9,1.8,1.2,6.2,1,7l0,0c0,0-0.4,2.6-0.6,6c0.1,0.1,0.2,0.2,0.4,0.3%20c0-0.1,0.1-0.2,0.1-0.3c0.1-0.5,0.4-1.3,1.2-1.7c0.8-0.3,1.6,0.1,2.2,0.5c0.3,0.1,0.5,0.3,0.6,0.6c0.4,0.7-0.1,1.6-0.7,2.8%20c-0.3,0.6-0.6,1.3-0.8,1.8c1.2,2.8,2.5,5.1,4.7,6.1l0.4,0.1l0-0.1l1,0l1,0l0,1c0,1,0.3,2.3,0.9,2.7c1.5,0.8,2.6,2.5,3,4.5%20c3.4,1.8,7,4.1,8.6,6.9c0.4-0.2,0.9-0.3,1.4-0.2c0.8,0.2,1.2,0.9,1.5,1.4c0.1,0.2,0.2,0.3,0.3,0.5c0.1,0.1,0.2,0.3,0.3,0.4%20c0.2-0.1,0.4-0.2,0.6-0.3c0.7-0.4,1.6-0.9,2.6-1c0-0.1,0-0.3,0-0.4c0-2.3,0.1-6,2-7.8c-0.1-2.4-1.2-9.2-2.2-11.9%20c-3.4-3.3-6.4-9.6-7.6-12.2l-2.4-5.1l2.4,2.4c-0.2-2-0.9-3-1.4-3.5c-0.6-0.5-1.1-0.6-1.1-0.6l0,0l-0.1,0l-0.1,0%20c-1.7-0.4-8-11.7-8.8-13.6c-0.4-0.9-0.7-1.9-1-2.9c-0.6-1.8-1.3-3.9-2-4.8l-0.5-0.4l0.4-0.5l-0.5,0c-0.1-5.2,1.9-12.1,3.8-16.6%20l0.1-0.2c0.5-0.7,1-1.5,1.1-2.3l0.2-1.3l1.2,0.5c0.2,0.1,1.2,0,1.5-0.4c0.3-0.4-0.2-1.2-0.5-1.5l-0.8-1.1l1.3-0.4%20c0,0,0.2-0.1,0.3-0.1c0.7-0.3,2-0.8,3.2-1.1c0.2-0.5,0.4-1.3,0.6-2.2l0.1-0.4l0.4-0.2c1.2-0.7,2.4-1.7,2.7-2%20c0.4-0.6,2.5-3.9,4.5-8.9l0.1-0.2c0.3-0.5,0.8-1.1,1.2-1.7c0.3-0.4,0.7-0.9,0.9-1.2c-0.2-0.4-0.2-0.8,0.1-1.2%20c0.5-0.6,1.2-0.3,1.6,0c0.1,0,0.1-0.1,0.2-0.1c0.6-0.4,1.7-1,3.7-1.1c0.4-0.2,0.8-0.6,1.1-0.8c0.4-1.9,2.3-8.2,7.1-10.2%20c2.3-1.3,4.2-2,5.4-1.9c0.2-0.4,0.4-0.7,0.4-0.8c0-0.2,0-0.3,0-0.3c-0.1,0-0.2,0-0.3,0.1c-0.5,0.1-1,0.2-1.6,0l-0.3-0.1l-0.2-0.2%20c-0.9-1.2-0.6-2.4-0.4-3.2c0,0,0,0,0-0.1c-0.4-0.5-0.8-1.2-0.7-1.8c0-0.5,0.3-0.9,0.8-1.1l0.3-0.1c0.5-0.1,1.2-0.1,1.9,0%20c0.5,0,1.3,0,1.6,0c1.7-2.2,3.1-5.1,2.5-6.4c-1.8-4.5-4.9-4.2-6.9-4c-0.1,0-0.3,0-0.4,0c-0.3,0.1-0.5,0.1-0.8,0%20c-0.5,0-1-0.2-1.2-0.8l0.1-0.1l-1,0v-2c-1,0-1.1,0.5-1.1,0.8c0-0.3-0.3-1.4-1.1-2.1c-1.9-1.6-2.7-2.7-2.4-3.8%20c0.2-0.9,1-1.2,1.8-1.4c-0.8-0.7-1.3-1.3-1.3-2c0-0.6,0.2-1,0.5-1.3c-0.3-0.4-0.5-0.7-0.6-1c-0.1-0.2-0.1-0.3-0.2-0.5%20c-0.5-0.8-0.4-1.6-0.3-2.2c0-0.2,0.1-0.4,0.1-0.5c-0.6-0.7-0.9-1.3-1.3-1.9l-0.6-1l1.2-0.5c0.6-0.3,1.7-0.7,2.6,0.1%20c0.5,0.4,0.9,0.7,1.2,0.9l0.4-0.3c0.2-0.1,0.4-0.2,0.7-0.1l0-0.1l0.5-0.4c0.6-0.3,1.1-0.1,1.5,0.2c1,0.6,1.4,0.7,1.7,0.4%20c0.5-0.5,0.7-0.8,0.9-0.9l0,0c0.1-0.2,0.2-0.4,0.3-0.7l0.1-1.8l0.2-3c-0.4-0.7-1.3-2.7-1.6-5.8c-0.4-1-2-4-2.5-5.1l-0.7-1.3%20l2.6-0.3l4.2,2.3l2.5,0.5l0.2,0.5c0.9-1.7,2.2-4.5,2.8-6.9c0.7-2.9,0.4-6,0.1-7.3l-2.7-0.2l0.5-2.5l0.3-0.2%20c0.7-0.5,16.6-11,20.9-12.4c0.5-0.3,3-1.7,4.7-3.7c-1.2-1.9-2.6-4.4-2.7-4.5l-0.8-1.5l1.7,0c4.2,0.1,6,0.3,6.8,0.5%20c0.4-0.2,0.9-0.6,1.2-0.9l0.4-0.4c-0.2,0.1-0.4,0.2-0.7,0.3c-1.9,0.5-3.8-1-5.9-4.2l-0.1-0.2l0-0.3c0-0.3-0.1-0.8-0.2-1.3%20c-0.2-1.3-0.4-2.3-0.3-3.1c-1.5-0.8-2.2-1.6-2.5-2.2l-0.2-0.2c-0.2-0.2-0.4-0.6-0.2-1.2c0,0,0,0,0,0c0,0.1-0.1,0.1-0.1,0.1%20c0,0,0-0.2-0.2-0.5c-0.1-0.1-0.9-1.5-0.4-2.3l0.3-0.5l0.6,0.1c0.6,0.1,0.8,0.5,1.4,2c1.1-0.1,3-0.5,4.9-1.3%20c0.1-1.1-0.5-3.1-0.9-4.7c-0.4-1.3-0.7-2.5-0.8-3.5l-0.1-0.9l0.9-0.2c1-0.2,2.9-2.4,3.1-4.1l0-0.7l1.7-0.5%20c0.1-1.6,0.5-3.9,0.7-4.7c0-0.1,0-0.2,0-0.2l0.1-0.6l0.6-0.2l1.6-0.5l-0.3,1.4c0.1,0.1,0.2,0.3,0.5,0.5c0.1,0,1,0.2,2.3-0.3%20c1-0.3,2.7-1.2,3.5-3.2c0-0.2,0.2-0.4,0.7-1.2c0.6-0.9,1.6-2.3,2.1-3.3c-0.2-0.5-0.3-1.1-0.4-1.9c-0.1-0.6-0.3-1.7-0.5-2.1%20l-0.4,0.1l-0.4-0.6c-0.5-0.8-0.8-1.6-1-2.3c-0.4-1.1-0.4-1.1-0.7-1c-0.7,0.1-2.6,0.2-3.1-1c-0.4-1-1.5-4.7-2.4-7.9%20c-0.5-1.7-0.9-3.1-1.1-3.8c-0.3-0.4-0.5-0.8-0.7-1.1c-0.6-1-0.9-1.5-4.1-4.1c-0.4,0.1-0.8,0.4-1.4,0.9c-0.8,0.7-1.7,1.5-3.1,1.8%20c-1.4,0.2-2.5-0.6-3.2-1.3c-0.4,0.7-0.8,1.9-1.1,2.9c-0.5,1.7-1,3.4-2,4.4c0,0.3,0,0.7,0,1.3c-0.1,6.6-0.5,11-2,12.2%20c-0.2,0.1-0.4,0.2-0.6,0.3l0.1,0.1l0,2.6l-3.9,8.7l0.2-3.8c-0.7,0.4-1.1,0.9-1.2,1.3l0.6-0.2l-0.1,0.8l0.4,0.2l-0.4,0.8%20c0,0,0,0,0,0.1c0,0.1,0,0.3,0,0.4c0,0,0,0,0,0.1l-1.1-0.1c-1,0.3-2.2,0.6-3.5,1c-2.8,0.8-6.3,1.9-10.5,2.7c0,0.1,0,0.2,0,0.2l0,0%20c0,0.7-0.2,1-0.9,1.1c-0.5,0-0.8-0.2-0.9-0.5l-11.3,2.8c-0.8,0.7-4.4,4-8.7,10.7l-0.2,0.2c0,0-0.3,0.3-0.6,0.8%20c0.4,0.1,0.7,0.3,1,0.6c1.7,1.6,1.3,5.6,1.2,6.4l0,0.2l-0.1,0.2c-0.1,0.1-1.4,2-2.7,3c-1.3,1-5.4,1.9-6.2,2.1%20c-0.8,0.1-2,0.3-3.6,0.5c-3,0.4-7.5,0.9-8.7,1.4c-0.4,0.2-0.5,0.3-0.5,0.4c0,0,0,0.1,0,0.2c0,0.1,0.1,0.3,0.1,0.4%20c0.1,0.7,0.4,1.3,0.8,1.9c0.5,0.9,1,1.9,0.9,3.3l0,0.3l-0.1,0.2c-0.4,0.5-0.6,1-0.8,1.4c-0.2,0.5-0.6,1.2-1.2,1.4%20c-0.6,1.1-2,3.2-3.5,5.5c0,0,0,0,0,0h0.3l-1.3,1.6c-0.5,0.6-1,0.5-1.3,0.4c-1,0-1.8,0.1-2.1,0.1c-0.7,0.3-1.6,0.6-2.4,0.9%20c-0.5,0.1-0.9,0.3-1.2,0.4l-1.5,0.5v0.1l-0.8,0.2c-2.1,0.4-4.2,2.6-4.8,3.5l-2.2,2.5l-2.5,1c-0.3,0.3-0.8,0.4-1.2,0.6%20c-0.8,0.3-2,0.6-2.9,1.8l-0.3,0.4l-0.6-0.1c-1.3-0.2-7.7-1.7-8.9-2h-1.1l0.1-1.1c0.2-1.9,1.8-4.1,2.9-5.2%20c-0.4-0.6-0.5-1.2-0.1-2.3c0.4-1,1.3-1.2,1.8-1.4c0,0,0,0,0,0c0-0.2,0-0.3,0.1-0.5c0.2-0.4,0.5-0.7,0.9-0.9c-0.2-0.5,0-1,0.4-1.4%20l0.2-0.2l0.3,0c0.2-0.1,0.4-1,0.4-1.5c-0.2-0.5-0.1-1.5,0.1-4.7c-0.8-0.8-2.4-3-3.5-7.9l0-0.1c-0.4-0.8-1-1.9-2.5-2.1%20c-2.2,1.5-2.3,3.1-2.3,3.1l0,0.5l-0.3,0.3l-2.4,2l-0.3,0c-0.2,0-1.8,0.2-2.8-1c-0.8-1-0.8-2.7,0-4.8l0.2-0.8h0.7%20c0.5,0,0.9,0.2,1.7-3.2l0.1-0.4l0.5-0.2c0.2-0.1,0.4-0.1,0.5-0.2c-0.2-1.8-0.7-4.8-1.1-6.6c-0.6-1.5-1.4-2.6-1.7-3.1l-10.5-4%20l-0.3,0.4l-1.2,1.9c0.1,0.5,0.2,1,0.3,1.3l0.3,0.8l-0.8,0.4c-0.7,0.4-1.1,0.9-1.4,1.2c0.1,0.1,0.2,0.2,0.2,0.4%20c0.6,1.2,0.8,3.8-1.4,5.5l-0.2,0.1c-1.4,0.6-2.3,0.3-2.7-0.1c-0.4-0.3-0.6-0.7-0.7-1c-3.1,4.5-2.7,8.2-2.4,10.7%20c0.1,0.5,0.1,0.9,0.1,1.3l0,0.1l0,0.1c-0.1,1.6-0.4,2.2-0.7,2.6c0,0,0,0.1,0,0.1c0.2,0.7,0.7,2,1.3,3.3c0.8,1.9,1.8,4,2.1,5.8%20c0.9,6.1-0.1,9.9-2.7,16.2l-0.3,0.6h-0.7c-0.2,0-5.4,0.3-8.5-0.4l-0.8-0.2v-0.4c-2.2-1.7-3.3-4.9-3.1-9.9h0l-0.2-0.9l0.4-0.2%20c-0.7-2.8-1.3-6-0.8-11.6l0.8-6.6c0,0,0.3-2.3,1.6-7.5c-0.2,0-0.4,0-0.6,0c-0.5,0.7-0.9,1.3-1.2,1.8c-0.5,0.9-1.1,1.9-2.3,1.6%20c-0.7-0.1-1.2-0.4-1.5-1c-0.4-1,0.2-1.9,1-3.2c0.7-1.1,1.6-2.5,1.6-3.7c0,0,0,0,0,0c0,0,0,0,0,0c0-0.1,0-0.1,0-0.2l0.4,0l0.4-0.4%20l-0.3-0.7c0.4-0.3,1.4-2.1,2-3.4c0.6-1.3,1.3-2.6,1.9-3.5l0.4-0.6l0.7,0.1c0.5,0.1,0.6,0.1,0.6,0.1h0c0,0,0.1-0.1,0.1-0.2%20c0.3-0.4,0.8-1,2-1.5l1.7-0.7l-0.2,1.1c1.1-1.6,3.7-2.2,5.3-2.6c0.3-0.1,0.5-0.1,0.7-0.2c0.1-0.1,0.2,0,0.3-0.2%20c0.3-0.4,0.8-0.9,2-0.9c0,0,0,0,0,0c2.8,0,3.9,0.3,5.2,1.2c0.1-0.2,0.2-0.4,0.3-0.6c0.1-0.1,0.1-0.2,0.2-0.3l0.3-0.4l0.5-0.1%20c1.1-0.1,2.3-0.2,3.4-0.2c-0.1-0.1-0.1-0.1-0.2-0.2c-1.2-1.5-1.9-2.5-2.4-3.3c-1.7,0.6-3,0.7-4,0.2c-1.1-0.5-1.6-1.5-1.9-2.4%20c-1.1,0.4-2.4,0.6-3.9,0.8c-0.6,0.1-1.2,0.2-1.9,0.3c-0.2,0.1-0.7,0.4-1.1,0.6c-2.2,1.3-5.7,3.5-8.1,2.3c-0.9,0.1-1.9,0.3-1.9,0.3%20l-0.5,0.1l-0.4-0.4c-4.5-4.6-6.5-4-8.8-3.2l-1.1,0.3l-0.3-1c-0.3-1.1-0.5-1.9,0-2.5c0.2-0.2,0.4-0.3,0.6-0.4l0.9-1.4%20c0.5-0.9,1-1.4,1.4-1.8c-1.3,0.7-2.7,2-2.8,2.5l-0.1,0.3l-0.2,0.2c-2,2.2-7.7,5.6-10.6,6.2c-0.8,2.2-3.9,2.7-4.6,2.7h-0.2%20l-0.2-0.1c-0.8-0.3-1.7-0.5-3.1-0.8l-0.5-0.1l-0.2-0.5c-0.4-1-0.2-1.8,0.1-2.2c-0.6,0.2-1.4,0.5-2.2,0.9c-2.2,1-4.9,2.2-7.3,1.9%20l-0.5,0.5l-1.5-1.3c0.8-1.1,11.6-12.7,12.7-13.3c0,0,7.2-4.4,10.1-3c3.3,0.3,5.4-0.1,6.1-1.3c0.4-0.6,0.3-1.3,0.1-1.7%20c-1.1,0.2-4,1-6.5,1.8l-0.3,0.1l-5.5,0.3c-1.2,0.2-2.4,0.3-3.4,0.4c-2.8,0.3-4.7,0.5-7,1.6l-0.5,0.2l-0.5-0.3c0,0-4.6-3-8.4-3%20c-0.5,0-0.9-0.2-1.1-0.7c-0.1-0.2-0.4-0.7,0.3-1.9c-1,0-2.9,0.1-6.4,0.6c-0.8,0.2-2.2-0.2-4.1-0.6c-0.3-0.1-0.5-0.1-0.7-0.2%20c-0.3-0.1-0.6-0.1-0.9-0.2c-0.9-0.1-2.2-0.3-3.7-1.6c-1.1-1-1.8-2.9-1.9-3.7c-0.2-0.8-1.1-2-1.6-2.3c-0.5,0.1-1,0.2-1.2,0.3%20c0,0.1,0,0.2,0,0.5v2.8h-1c-10.9,0-13.2,0.1-15.2,0.5l-0.1,0.1l-0.1,0l-54.3-1.4c-16.4-1.5-33.6-3.1-47.8-5.1%20c-19-2.7-34.7-5.3-42.2-6.6c-2.5-0.4-4.5-0.8-4.8-0.8l-0.2,0c-0.1,0-5.4-1.6-8.2-1.8l0.1-0.6l-0.1,0.6c-1.6-0.4-35.1-8-43.1-10.3%20c0.1,0.4,0.3,0.8,0.5,1.2c0.5,1.1,1.1,2.2,0.7,3.2l-0.1,0.3c-0.1,0.6,0.1,2.6,0.3,3.8c0.2,1.7,0.3,2.5,0.1,3.1l-0.2,4.6l-0.9,0.1%20c-1.1,0.1-1.4,0.9-1.8,2.7c-0.1,0.7-0.3,1.3-0.6,1.8c-0.2,0.4-0.6,0.6-1,0.6c-0.8,0-1.3-0.8-1.8-1.7c-1.2-2.4-2.7-7.6-1.3-10.6%20c-3.7-4.6-8.6-9.1-10.3-8.6c-0.4,0.1-0.7,0.9-0.8,2c-0.2,2.7,0.2,6.6,0.5,9.7c0.5,4.7,0.5,5.7-0.2,6.2c-0.2,0.1-0.4,0.2-0.5,0.2%20c-0.1,0.1-0.2,0.2-0.2,0.2c-0.2,1.6-0.2,1.6,0.4,3.1l0,0.1c0.2,0.6-0.2,1-0.7,1.5c-0.5,0.5-1.3,1.4-1.3,2.1c0,0.2,0,0.3,0,0.4%20L61,246l-0.9,3.3l0.5,0.4l-0.2,0.7c-3.4,9.5-8.2,21.3-11.6,29.6l-0.1,0.3l-0.2,0.2c-2.4,1.7-4.2,5.3-4.5,9.1%20c-0.1,0.9-0.2,1.7-0.3,2.4c-0.2,1.7-0.4,2.9,0,3.5l-1,0.6l1.3,0.1c-0.2,4.3-2.2,11-4,14.2l-0.1,0.2l-0.2,0.1%20c-1.2,0.7-1.9,1.6-2.1,2.7c-0.5,2.7,2.1,5.8,2.1,5.8l0.3,0.3l0,0.4c-0.1,1-0.1,1.9-0.2,2.8c-0.1,2-0.3,4.1-0.7,6.8%20c-0.7,5.6,1.2,7,2.3,7.7c0.1,0.1,0.3,0.2,0.4,0.3l0.3,0.2l0.1,0.4c0.1,0.8,0.4,1.6,0.5,2.2c0.4,1.3,0.8,2.5,0.2,3.7%20c0.3,0.4,0.7,0.7,1,1.1c0.4,0.4,0.8,0.7,1.1,1.2l0.2,0.2l0.1,0.8l-0.2,0.2c0,0.3,0,0.6-0.1,1.1l1.2-0.2l-0.6,1.6%20c-0.4,1.2-0.7,4.7-0.4,5.4c0.4,1.4,1.1,2,2,2.5c1.1,0.8,2.5,1.7,1.9,4.2l-0.1,0.5l-0.4,0.2c-1.6,0.8-1.8,2.3-1.6,4.5%20c0.9,1.2,2.1,3.7,3.3,6.5c1.4,3,2.9,6.5,4.4,8.5l0.3,0.4l-0.2,0.5c-1.1,2.8-1.3,5.3-0.3,6.6c0.7,1,2.1,1.5,4.1,1.5%20c2.3,0,4.7,2.6,4.9,2.9l1.6,1.8c1.5,1.4,3.8,3.3,4.9,3.6c0.2,0.1,0.3,0.1,0.4,0.1c0.4-0.2,0.9-0.1,1.3-0.1l1,0.2l-0.2,1%20c-0.1,0.7-0.1,2,0.2,2.7c2.7,1.1,4.7,2.7,6.2,5.1c1.1,1.7,2.8,8.1,3,11.1c4.1,0.2,10.1,0.8,16,1.5l6.9,0.8l0.1,0.8%20c0.1,0.6,0.1,1,0.1,1.5c0,0.3,0,0.5,0,0.9c6.5,3.2,10.1,5.3,15.5,8.4c1,0.5,2,1.2,3.2,1.9c2.9,1.8,6.6,4,11.2,6.2l0.9,0.5%20c3.9,2,8.7,4.5,13.8,4.2l0.1,0l9.9,2.1c1.6,0.8,4.8,0.4,7-0.5l1.1-4.7l0.8,0c6.7,0.2,11.6,0.7,14.7,1.1l0-0.2l1,0.2%20c0.7,0,1.3,0.1,1.9,0.3l0.2,0.1l0.2,0.2c0.8,0.8,1.9,2.1,3.1,3.6c2.7,3.4,6.5,8,10.5,10.2l0.4,0.2l0.1,0.4%20c0.8,2.6,1.4,3.6,1.8,4.2c0.7,1.1,0.8,1.6,0.6,4.1c0.1,0.2,0.2,0.4,0.2,0.7c1,2.9,2.5,6.9,13.7,11.3c0.8,0.3,2.6-3,3.4-4.4%20c1.2-2.3,2-3.8,3.2-3.9l0.4,0l0.3,0.2c1.7,1.1,3.1,0.8,5.1,0.4c1.7-0.4,3.8-0.8,6.4-0.3l0.4,0.1l0.2,0.4c1.6,2.4,2.6,3.3,3.7,4.4%20c0.9,0.9,1.9,1.8,3.2,3.6c0.6,1,1.2,2.3,1.9,3.7c1.4,2.9,3.2,6.6,4.8,7.9l0.2,0.2l1.1,3c0.8,0.8,3.2,3.1,3.7,4.1%20c1.7,2.9,1.7,3.8,1.5,4.9c0,0.2-0.1,0.4-0.1,0.7c0,0,0,0.1,0.1,0.1c0.3,0.6,1,2,3,6.9c1,0.7,2.6,1.4,4.2,2.2%20c2.5,1.2,4.2,2,5.1,2.8c0.4,0.1,1,0,1.6,0c2.1,0,5-0.1,6.4,2.2c0,0.1,0.1,0.1,0.1,0.1l-0.5,0.3C276.2,519,276.3,519.2,276.3,519.3%20z%20M358.2,474.6c0.2,0.1,0.5,0.3,0.8,0.5c3.2,2.7,4.1,2.5,4.1,2.5c0-0.1,0-0.5,0-0.6c0,0,0-0.1,0-0.1c-0.7-0.5-2.8-1.5-4.7-2.3%20C358.4,474.6,358.3,474.6,358.2,474.6z%20M353.7,467.1c0.3,0.5,0.6,0.8,0.8,0.8c0.1,0,0.1,0,0.1,0l0.2-0.1l0.2,0%20c0.2,0,0.5-0.1,0.8-0.2c0.1-0.1,0.3-0.1,0.5-0.2c-0.1-0.2-0.3-0.3-0.4-0.5c-0.1-0.2-0.3-0.4-0.4-0.5c-0.4-0.2-0.8-0.3-1-0.3%20c-0.1,0.1-0.1,0.2-0.2,0.3C354,466.6,353.9,466.9,353.7,467.1z%20M365.3,327.2c2.3,0.4,5.4,0.3,6.7,0.3c2.3-5.7,3.1-9.1,2.3-14.5%20c-0.3-1.5-1.2-3.5-2-5.3c-0.7-1.5-1.2-2.8-1.5-3.7c-0.1-0.8,0-1.2,0.3-1.7c0.1-0.1,0.2-0.3,0.3-1.5c0-0.3-0.1-0.7-0.1-1.1%20c-0.3-2.7-0.8-7.1,3-12.4l0.2-0.2l3.3-2.5l-0.3,2.4c-0.1,0.5,0,1.2,0.2,1.3c0,0,0.2,0.1,0.6-0.1c0.7-0.6,0.9-1.3,1-1.7%20c0-0.4,0-0.7-0.1-1l-1.3,0.4l0.5-1.8c0-0.1,0.4-1.5,2-2.7c-0.1-0.6-0.2-1.1-0.3-1.2l-0.1-0.4l2-3.2l-0.1-0.1%20c-1.3-1-1.9-1.4-4.4-1.4c-0.3,0-0.3,0-0.5,0.3c-0.2,0.2-0.4,0.6-0.9,0.9l-0.2,0.1c-0.3,0.1-0.6,0.2-1.1,0.3%20c-1.2,0.3-3.6,0.8-4.2,1.8c0.1,1.4-0.8,2.6-1.9,3.2c-0.3,0.2-0.6,0.3-0.9,0.3l-0.1,0.2l-0.9-0.3l-0.9-0.4l0.4-0.9%20c0,0,0-0.1,0.1-0.1c-0.3,0.2-0.7,0.2-1.3,0.2c-0.5,0.8-1,1.8-1.5,2.8c-0.9,1.8-1.6,3.2-2.3,3.9c0,0.9-0.3,1.7-0.6,2.5l0.3-0.1%20c0.2,0,1.8-0.3,3,0.5l0.6,0.4l-0.2,0.7c-1.4,5.7-1.7,8.1-1.7,8.1l-0.8,6.5c-0.5,5.9,0.2,8.9,1,11.8l0.3,1l-0.7,0.2%20c-0.1,4.2,0.8,7.1,2.6,8.1L365.3,327.2z%20M517,298.6l0.6,1.2c0.1,0.2,0.3,0.4,0.4,0.4c0.1,0,0.4-0.1,0.8-0.5l0.6-0.6l0.5,0.3%20c-0.1-0.2-0.3-0.4-0.4-0.6c-0.6-0.9-1-1.4-1.5-1.6C517.7,297.8,517.4,298.2,517,298.6z%20M356.1,260.5c-0.2,0-0.8,0.3-1.1,0.5%20c-0.1,0.1-0.2,0.1-0.3,0.1c0,0,0.1,0,0.1,0c0.1,0,0.3,0,0.4,0C355.9,261,356.1,261,356.1,260.5%20C356.2,260.5,356.2,260.5,356.1,260.5C356.2,260.5,356.1,260.5,356.1,260.5z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",i1={area:r1,arearange:r1,line:PD,bar:xD,column:MD,polar:RD,funnel:SD,pie:AD,scatter:OD,indicator:ED,table:DD,treemap:ND,areamap:n1,scattermap:n1,boxplot:CD,sunburst:kD,"calendar-heatmap":TD};function LD(e){var r;return(r=i1[e])!=null?r:i1["bar"]}const ID="_wrapper_g0ngm_1",$D="_title_g0ngm_7",FD="_image_g0ngm_18",Uh={wrapper:ID,title:$D,image:FD},k0=({iconType:e})=>{var s;const{themeSettings:t}=it(),r=k.useRef(null),[n,i]=k.useState({width:null,height:null});k.useEffect(()=>{r.current&&i({width:r.current.offsetWidth,height:r.current.offsetHeight})},[]);const a=LD(e),{t:o}=_.useTranslation();return _.jsxs("div",{ref:r,className:Uh.wrapper,children:[_.jsx("div",{className:Uh.title,style:{fontFamily:(s=t.typography)==null?void 0:s.fontFamily,fontSize:zD(n.width,n.height)},children:o("chartNoData")}),a?_.jsx("img",{className:Uh.image,src:a}):null]})};function zD(e,t){return!e||!t?"18px":e<300?`${Math.max(Math.sqrt(e*e+t*t)*.045,18)}px`:`${Math.min(Math.max(t*.09,18),60)}px`}function Uw(e,t,r,n){if(!I.isObject(e))return e;t=I.castPath(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var u=I.toKey(t[i]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(i!=o){var h=s[u];c=void 0,c===void 0&&(c=I.isObject(h)?h:I.isIndex(t[i+1])?[]:{})}I.assignValue(s,u,c),s=s[u]}return e}function Yw(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var o=t[n],s=I.baseGet(e,o);r(s,o)&&Uw(a,I.castPath(o,e),s)}return a}function BD(e,t){return Yw(e,t,function(r,n){return I.hasIn(e,n)})}var WD=I.flatRest(function(e,t){return e==null?{}:BD(e,t)});const HD={translateDataOptionsToInternal:function(e){return{geo:e.geo&&_.normalizeColumn(e.geo[0]),color:e.color&&_.normalizeMeasureColumn(e.color[0])}},getAttributes:function(e){return[e.geo.column].filter(t=>!_.isMeasureColumn(t))},getMeasures:function(e){var r;const t=(r=e.color)==null?void 0:r.column;return t&&_.isMeasureColumn(t)?[t]:[]},isCorrectDataOptions:function(e){return"geo"in e&&I.isArray(e.geo)},isCorrectDataOptionsInternal:function(e){return"geo"in e&&!!e.geo.column}},jD={ROWS:"rows",COLUMNS:"columns",MEASURES:"measures",SCOPE:"scope"},VD={ASC:"asc",DESC:"desc"},qw={SUB_TOTAL:"subTotal",GRAND_TOTAL:"grandTotal",MEASURE_TOP:"measureTop",MEASURE_BOTTOM:"measureBottom",CORNER:"corner"},GD={COLOR:"color",CONDITION:"condition"},UD={DATETIME:"datetime",TEXT:"text",NUMERIC:"numeric"},YD={MEMBER:"member",VALUE:"value",SUB_TOTAL:"subtotal",GRAND_TOTAL:"grandtotal"},qD={MEMBER:"member",INDEX:"index",TITLE:"title",NAME:"name",AGG:"agg",DIM:"dim"};function ln(e){var o,s;const{app:t,queryDescription:r,executionConfig:n}=e;return(((s=(o=t==null?void 0:t.settings.queryCacheConfig)==null?void 0:o.enabled)!=null?s:!1)?I.executeQueryWithCache:I.executeQuery)(r,t,n)}const XD=(e,t)=>{const r=_.getPaletteColor(t,0),n=_.toGray(r),i=_.scaleBrightness(r,-.2),a=e.minColor===_.DEFAULT_COLOR||e.minColor===n,o=e.maxColor===_.DEFAULT_COLOR||e.maxColor===i;return a&&o?"auto":a?"max":o?"min":"both"},ZD=(e,t)=>{let r={type:"range",steps:e.steps};if(e.rangeMode!=="auto"){const o=parseFloat(`${e.minvalue}`),s=parseFloat(`${e.midvalue}`),u=parseFloat(`${e.maxvalue}`);r=T(T(T(T({},r),o&&{minValue:o}),s&&{midValue:s}),u&&{maxValue:u})}const n=_.getPaletteColor(t,0),i=_.scaleBrightness(n,.2),a=_.scaleBrightness(n,-.2);switch(e.rangeMode){case"auto":return $(T({},r),{minColor:_.toGray(n),maxColor:a});case"both":return $(T({},r),{minColor:e.min||i,maxColor:e.max||a});case"min":return $(T({},r),{minColor:e.min||i,maxColor:_.DEFAULT_COLOR});case"max":return $(T({},r),{minColor:_.DEFAULT_COLOR,maxColor:e.max||a})}},Xw=(e,t)=>{if(e!==void 0)switch(e.type){case"color":return T({type:"uniform",color:e.color||_.getPaletteColor(t,e.colorIndex||0)},e.colorIndex!==void 0&&{colorIndex:e.colorIndex});case"range":return ZD(e,t);case"condition":return{type:"conditional",conditions:e.conditions.filter(r=>typeof r.expression=="string").map(({color:r,expression:n,operator:i})=>({color:r,expression:n,operator:i})),defaultColor:_.getPaletteColor(t,0)};default:return _.getUniformColorOptionsFromString(_.getPaletteColor(t,0))}},Zw=e=>Object.entries(e).reduce((t,[r,{color:n}])=>(t[r]=n,t),{}),KD=(e,t)=>{if(e===void 0)return;const r=_.getPaletteColor(t,0);if(typeof e=="string")return{type:"color",color:e};switch(e.type){case"uniform":return $(T({type:"color",color:e.color},e.colorIndex!==void 0&&{colorIndex:e.colorIndex}),{isHandPickedColor:e.colorIndex===void 0});case"range":{const n=_.getPaletteColor(t,0),i=_.toGray(n),a=_.scaleBrightness(n,-.2),o=XD(e,t),s={type:"range",steps:e.steps||5,rangeMode:o,min:o==="max"?i:e.minColor,max:o==="min"?a:e.maxColor};return s.rangeMode!=="auto"&&(e.minValue!==void 0&&(s.minvalue=e.minValue.toString()),e.midValue!==void 0&&(s.midvalue=e.midValue.toString()),e.maxValue!==void 0&&(s.maxvalue=e.maxValue.toString())),s}case"conditional":return{type:"condition",conditions:(e.conditions||[]).filter(n=>typeof n.expression=="string").map(({color:n,expression:i,operator:a})=>({color:n||r,expression:i,operator:a}))};default:return{type:"color",color:r,colorIndex:0}}},QD=e=>e.reduce((t,r)=>{var n,i;return(n=r.format)!=null&&n.members&&(t[I.normalizeName(r.jaql.title)]=Zw((i=r.format)==null?void 0:i.members)),t},{}),JD=_.createDataColoringFunction({getValueFromDataStructure:e=>e.originalValue,applyColorToDataStructure:(e,t)=>$(T({},e),{color:t})}),eN=Xw({type:"range",steps:5,rangeMode:"auto"}),tN=(e,t)=>{var o,s;const r=_.getColumnByName(t,e.geo.column.name),n=_.getColumnByName(t,(s=(o=e.color)==null?void 0:o.column.name)!=null?s:e.geo.column.name);if(!r||!n)throw new I.TranslatableError("errors.requiredColumnMissing",{hint:"geo or color column is missing for Areamap"});const i=t.rows.map(u=>{var p;const c=_.getValue(u,n),h=_.getCompleteNumberFormatConfig((p=e.color)==null?void 0:p.numberFormatConfig),f=_.applyFormatPlainText(h,c);return{geoName:_.getValue(u,r),originalValue:c,formattedOriginalValue:f}});let a;return e.color&&(a=JD(i,e.color.color||eN)),{type:"areamap",geoData:a||i}},rN={loadData:ln,getChartData:tN},D0=50,nN=1e3,iN=500,dc=1e5,Cr={lineType:"straight",stackType:"classic",legend:{enabled:!0,position:"bottom"},lineWidth:2,marker:{enabled:!1,size:"small",fill:"full"},xAxis:{type:"linear",enabled:!0,titleEnabled:!0,title:"X Axis title",gridLine:!0,labels:!0,min:null,max:null,tickInterval:null},yAxis:{type:"linear",enabled:!0,titleEnabled:!0,title:"Y Axis title",gridLine:!0,labels:!0,min:null,max:null,tickInterval:null},autoZoom:{enabled:!0},pieType:_.DefaultPieType,funnelType:_.DefaultFunnelType,funnelSize:_.DefaultFunnelSize,funnelDirection:_.DefaultFunnelDirection,indicatorType:"numeric",numericSubtype:"numericSimple",skin:"vertical",indicatorComponents:{title:{shouldBeShown:!1,text:""},secondaryTitle:{text:""},ticks:{shouldBeShown:!0},labels:{shouldBeShown:!0}},dataLimits:{seriesCapacity:D0,categoriesCapacity:dc}},aN={translateStyleOptionsToDesignOptions:function(e){return $(T({},Cr),{mapType:e.mapType||"world"})},isCorrectStyleOptions:function(e){return typeof e=="object"&&e!==null}};var Xf={exports:{}};/* @preserve
204
+ * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
205
+ * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
206
+ */(function(e,t){(function(r,n){n(t)})(_.commonjsGlobal,function(r){var n="1.9.4";function i(l){var d,m,x,A;for(m=1,x=arguments.length;m<x;m++){A=arguments[m];for(d in A)l[d]=A[d]}return l}var a=Object.create||function(){function l(){}return function(d){return l.prototype=d,new l}}();function o(l,d){var m=Array.prototype.slice;if(l.bind)return l.bind.apply(l,m.call(arguments,1));var x=m.call(arguments,2);return function(){return l.apply(d,x.length?x.concat(m.call(arguments)):arguments)}}var s=0;function u(l){return"_leaflet_id"in l||(l._leaflet_id=++s),l._leaflet_id}function c(l,d,m){var x,A,D,X;return X=function(){x=!1,A&&(D.apply(m,A),A=!1)},D=function(){x?A=arguments:(l.apply(m,arguments),setTimeout(X,d),x=!0)},D}function h(l,d,m){var x=d[1],A=d[0],D=x-A;return l===x&&m?l:((l-A)%D+D)%D+A}function f(){return!1}function p(l,d){if(d===!1)return l;var m=Math.pow(10,d===void 0?6:d);return Math.round(l*m)/m}function g(l){return l.trim?l.trim():l.replace(/^\s+|\s+$/g,"")}function b(l){return g(l).split(/\s+/)}function v(l,d){Object.prototype.hasOwnProperty.call(l,"options")||(l.options=l.options?a(l.options):{});for(var m in d)l.options[m]=d[m];return l.options}function w(l,d,m){var x=[];for(var A in l)x.push(encodeURIComponent(m?A.toUpperCase():A)+"="+encodeURIComponent(l[A]));return(!d||d.indexOf("?")===-1?"?":"&")+x.join("&")}var C=/\{ *([\w_ -]+) *\}/g;function M(l,d){return l.replace(C,function(m,x){var A=d[x];if(A===void 0)throw new Error("No value provided for variable "+m);return typeof A=="function"&&(A=A(d)),A})}var E=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"};function S(l,d){for(var m=0;m<l.length;m++)if(l[m]===d)return m;return-1}var P="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function R(l){return window["webkit"+l]||window["moz"+l]||window["ms"+l]}var N=0;function B(l){var d=+new Date,m=Math.max(0,16-(d-N));return N=d+m,window.setTimeout(l,m)}var U=window.requestAnimationFrame||R("RequestAnimationFrame")||B,K=window.cancelAnimationFrame||R("CancelAnimationFrame")||R("CancelRequestAnimationFrame")||function(l){window.clearTimeout(l)};function Q(l,d,m){if(m&&U===B)l.call(d);else return U.call(window,o(l,d))}function O(l){l&&K.call(window,l)}var F={__proto__:null,extend:i,create:a,bind:o,get lastId(){return s},stamp:u,throttle:c,wrapNum:h,falseFn:f,formatNum:p,trim:g,splitWords:b,setOptions:v,getParamString:w,template:M,isArray:E,indexOf:S,emptyImageUrl:P,requestFn:U,cancelFn:K,requestAnimFrame:Q,cancelAnimFrame:O};function q(){}q.extend=function(l){var d=function(){v(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},m=d.__super__=this.prototype,x=a(m);x.constructor=d,d.prototype=x;for(var A in this)Object.prototype.hasOwnProperty.call(this,A)&&A!=="prototype"&&A!=="__super__"&&(d[A]=this[A]);return l.statics&&i(d,l.statics),l.includes&&(j(l.includes),i.apply(null,[x].concat(l.includes))),i(x,l),delete x.statics,delete x.includes,x.options&&(x.options=m.options?a(m.options):{},i(x.options,l.options)),x._initHooks=[],x.callInitHooks=function(){if(!this._initHooksCalled){m.callInitHooks&&m.callInitHooks.call(this),this._initHooksCalled=!0;for(var D=0,X=x._initHooks.length;D<X;D++)x._initHooks[D].call(this)}},d},q.include=function(l){var d=this.prototype.options;return i(this.prototype,l),l.options&&(this.prototype.options=d,this.mergeOptions(l.options)),this},q.mergeOptions=function(l){return i(this.prototype.options,l),this},q.addInitHook=function(l){var d=Array.prototype.slice.call(arguments,1),m=typeof l=="function"?l:function(){this[l].apply(this,d)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(m),this};function j(l){if(!(typeof L=="undefined"||!L||!L.Mixin)){l=E(l)?l:[l];for(var d=0;d<l.length;d++)l[d]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var V={on:function(l,d,m){if(typeof l=="object")for(var x in l)this._on(x,l[x],d);else{l=b(l);for(var A=0,D=l.length;A<D;A++)this._on(l[A],d,m)}return this},off:function(l,d,m){if(!arguments.length)delete this._events;else if(typeof l=="object")for(var x in l)this._off(x,l[x],d);else{l=b(l);for(var A=arguments.length===1,D=0,X=l.length;D<X;D++)A?this._off(l[D]):this._off(l[D],d,m)}return this},_on:function(l,d,m,x){if(typeof d!="function"){console.warn("wrong listener type: "+typeof d);return}if(this._listens(l,d,m)===!1){m===this&&(m=void 0);var A={fn:d,ctx:m};x&&(A.once=!0),this._events=this._events||{},this._events[l]=this._events[l]||[],this._events[l].push(A)}},_off:function(l,d,m){var x,A,D;if(this._events&&(x=this._events[l],!!x)){if(arguments.length===1){if(this._firingCount)for(A=0,D=x.length;A<D;A++)x[A].fn=f;delete this._events[l];return}if(typeof d!="function"){console.warn("wrong listener type: "+typeof d);return}var X=this._listens(l,d,m);if(X!==!1){var ee=x[X];this._firingCount&&(ee.fn=f,this._events[l]=x=x.slice()),x.splice(X,1)}}},fire:function(l,d,m){if(!this.listens(l,m))return this;var x=i({},d,{type:l,target:this,sourceTarget:d&&d.sourceTarget||this});if(this._events){var A=this._events[l];if(A){this._firingCount=this._firingCount+1||1;for(var D=0,X=A.length;D<X;D++){var ee=A[D],ae=ee.fn;ee.once&&this.off(l,ae,ee.ctx),ae.call(ee.ctx||this,x)}this._firingCount--}}return m&&this._propagateEvent(x),this},listens:function(l,d,m,x){typeof l!="string"&&console.warn('"string" type argument expected');var A=d;typeof d!="function"&&(x=!!d,A=void 0,m=void 0);var D=this._events&&this._events[l];if(D&&D.length&&this._listens(l,A,m)!==!1)return!0;if(x){for(var X in this._eventParents)if(this._eventParents[X].listens(l,d,m,x))return!0}return!1},_listens:function(l,d,m){if(!this._events)return!1;var x=this._events[l]||[];if(!d)return!!x.length;m===this&&(m=void 0);for(var A=0,D=x.length;A<D;A++)if(x[A].fn===d&&x[A].ctx===m)return A;return!1},once:function(l,d,m){if(typeof l=="object")for(var x in l)this._on(x,l[x],d,!0);else{l=b(l);for(var A=0,D=l.length;A<D;A++)this._on(l[A],d,m,!0)}return this},addEventParent:function(l){return this._eventParents=this._eventParents||{},this._eventParents[u(l)]=l,this},removeEventParent:function(l){return this._eventParents&&delete this._eventParents[u(l)],this},_propagateEvent:function(l){for(var d in this._eventParents)this._eventParents[d].fire(l.type,i({layer:l.target,propagatedFrom:l.target},l),!0)}};V.addEventListener=V.on,V.removeEventListener=V.clearAllEventListeners=V.off,V.addOneTimeEventListener=V.once,V.fireEvent=V.fire,V.hasEventListeners=V.listens;var W=q.extend(V);function G(l,d,m){this.x=m?Math.round(l):l,this.y=m?Math.round(d):d}var te=Math.trunc||function(l){return l>0?Math.floor(l):Math.ceil(l)};G.prototype={clone:function(){return new G(this.x,this.y)},add:function(l){return this.clone()._add(z(l))},_add:function(l){return this.x+=l.x,this.y+=l.y,this},subtract:function(l){return this.clone()._subtract(z(l))},_subtract:function(l){return this.x-=l.x,this.y-=l.y,this},divideBy:function(l){return this.clone()._divideBy(l)},_divideBy:function(l){return this.x/=l,this.y/=l,this},multiplyBy:function(l){return this.clone()._multiplyBy(l)},_multiplyBy:function(l){return this.x*=l,this.y*=l,this},scaleBy:function(l){return new G(this.x*l.x,this.y*l.y)},unscaleBy:function(l){return new G(this.x/l.x,this.y/l.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=te(this.x),this.y=te(this.y),this},distanceTo:function(l){l=z(l);var d=l.x-this.x,m=l.y-this.y;return Math.sqrt(d*d+m*m)},equals:function(l){return l=z(l),l.x===this.x&&l.y===this.y},contains:function(l){return l=z(l),Math.abs(l.x)<=Math.abs(this.x)&&Math.abs(l.y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}};function z(l,d,m){return l instanceof G?l:E(l)?new G(l[0],l[1]):l==null?l:typeof l=="object"&&"x"in l&&"y"in l?new G(l.x,l.y):new G(l,d,m)}function Y(l,d){if(l)for(var m=d?[l,d]:l,x=0,A=m.length;x<A;x++)this.extend(m[x])}Y.prototype={extend:function(l){var d,m;if(!l)return this;if(l instanceof G||typeof l[0]=="number"||"x"in l)d=m=z(l);else if(l=ie(l),d=l.min,m=l.max,!d||!m)return this;return!this.min&&!this.max?(this.min=d.clone(),this.max=m.clone()):(this.min.x=Math.min(d.x,this.min.x),this.max.x=Math.max(m.x,this.max.x),this.min.y=Math.min(d.y,this.min.y),this.max.y=Math.max(m.y,this.max.y)),this},getCenter:function(l){return z((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,l)},getBottomLeft:function(){return z(this.min.x,this.max.y)},getTopRight:function(){return z(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(l){var d,m;return typeof l[0]=="number"||l instanceof G?l=z(l):l=ie(l),l instanceof Y?(d=l.min,m=l.max):d=m=l,d.x>=this.min.x&&m.x<=this.max.x&&d.y>=this.min.y&&m.y<=this.max.y},intersects:function(l){l=ie(l);var d=this.min,m=this.max,x=l.min,A=l.max,D=A.x>=d.x&&x.x<=m.x,X=A.y>=d.y&&x.y<=m.y;return D&&X},overlaps:function(l){l=ie(l);var d=this.min,m=this.max,x=l.min,A=l.max,D=A.x>d.x&&x.x<m.x,X=A.y>d.y&&x.y<m.y;return D&&X},isValid:function(){return!!(this.min&&this.max)},pad:function(l){var d=this.min,m=this.max,x=Math.abs(d.x-m.x)*l,A=Math.abs(d.y-m.y)*l;return ie(z(d.x-x,d.y-A),z(m.x+x,m.y+A))},equals:function(l){return l?(l=ie(l),this.min.equals(l.getTopLeft())&&this.max.equals(l.getBottomRight())):!1}};function ie(l,d){return!l||l instanceof Y?l:new Y(l,d)}function ne(l,d){if(l)for(var m=d?[l,d]:l,x=0,A=m.length;x<A;x++)this.extend(m[x])}ne.prototype={extend:function(l){var d=this._southWest,m=this._northEast,x,A;if(l instanceof oe)x=l,A=l;else if(l instanceof ne){if(x=l._southWest,A=l._northEast,!x||!A)return this}else return l?this.extend(se(l)||re(l)):this;return!d&&!m?(this._southWest=new oe(x.lat,x.lng),this._northEast=new oe(A.lat,A.lng)):(d.lat=Math.min(x.lat,d.lat),d.lng=Math.min(x.lng,d.lng),m.lat=Math.max(A.lat,m.lat),m.lng=Math.max(A.lng,m.lng)),this},pad:function(l){var d=this._southWest,m=this._northEast,x=Math.abs(d.lat-m.lat)*l,A=Math.abs(d.lng-m.lng)*l;return new ne(new oe(d.lat-x,d.lng-A),new oe(m.lat+x,m.lng+A))},getCenter:function(){return new oe((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new oe(this.getNorth(),this.getWest())},getSouthEast:function(){return new oe(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(l){typeof l[0]=="number"||l instanceof oe||"lat"in l?l=se(l):l=re(l);var d=this._southWest,m=this._northEast,x,A;return l instanceof ne?(x=l.getSouthWest(),A=l.getNorthEast()):x=A=l,x.lat>=d.lat&&A.lat<=m.lat&&x.lng>=d.lng&&A.lng<=m.lng},intersects:function(l){l=re(l);var d=this._southWest,m=this._northEast,x=l.getSouthWest(),A=l.getNorthEast(),D=A.lat>=d.lat&&x.lat<=m.lat,X=A.lng>=d.lng&&x.lng<=m.lng;return D&&X},overlaps:function(l){l=re(l);var d=this._southWest,m=this._northEast,x=l.getSouthWest(),A=l.getNorthEast(),D=A.lat>d.lat&&x.lat<m.lat,X=A.lng>d.lng&&x.lng<m.lng;return D&&X},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(l,d){return l?(l=re(l),this._southWest.equals(l.getSouthWest(),d)&&this._northEast.equals(l.getNorthEast(),d)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function re(l,d){return l instanceof ne?l:new ne(l,d)}function oe(l,d,m){if(isNaN(l)||isNaN(d))throw new Error("Invalid LatLng object: ("+l+", "+d+")");this.lat=+l,this.lng=+d,m!==void 0&&(this.alt=+m)}oe.prototype={equals:function(l,d){if(!l)return!1;l=se(l);var m=Math.max(Math.abs(this.lat-l.lat),Math.abs(this.lng-l.lng));return m<=(d===void 0?1e-9:d)},toString:function(l){return"LatLng("+p(this.lat,l)+", "+p(this.lng,l)+")"},distanceTo:function(l){return ce.distance(this,se(l))},wrap:function(){return ce.wrapLatLng(this)},toBounds:function(l){var d=180*l/40075017,m=d/Math.cos(Math.PI/180*this.lat);return re([this.lat-d,this.lng-m],[this.lat+d,this.lng+m])},clone:function(){return new oe(this.lat,this.lng,this.alt)}};function se(l,d,m){return l instanceof oe?l:E(l)&&typeof l[0]!="object"?l.length===3?new oe(l[0],l[1],l[2]):l.length===2?new oe(l[0],l[1]):null:l==null?l:typeof l=="object"&&"lat"in l?new oe(l.lat,"lng"in l?l.lng:l.lon,l.alt):d===void 0?null:new oe(l,d,m)}var de={latLngToPoint:function(l,d){var m=this.projection.project(l),x=this.scale(d);return this.transformation._transform(m,x)},pointToLatLng:function(l,d){var m=this.scale(d),x=this.transformation.untransform(l,m);return this.projection.unproject(x)},project:function(l){return this.projection.project(l)},unproject:function(l){return this.projection.unproject(l)},scale:function(l){return 256*Math.pow(2,l)},zoom:function(l){return Math.log(l/256)/Math.LN2},getProjectedBounds:function(l){if(this.infinite)return null;var d=this.projection.bounds,m=this.scale(l),x=this.transformation.transform(d.min,m),A=this.transformation.transform(d.max,m);return new Y(x,A)},infinite:!1,wrapLatLng:function(l){var d=this.wrapLng?h(l.lng,this.wrapLng,!0):l.lng,m=this.wrapLat?h(l.lat,this.wrapLat,!0):l.lat,x=l.alt;return new oe(m,d,x)},wrapLatLngBounds:function(l){var d=l.getCenter(),m=this.wrapLatLng(d),x=d.lat-m.lat,A=d.lng-m.lng;if(x===0&&A===0)return l;var D=l.getSouthWest(),X=l.getNorthEast(),ee=new oe(D.lat-x,D.lng-A),ae=new oe(X.lat-x,X.lng-A);return new ne(ee,ae)}},ce=i({},de,{wrapLng:[-180,180],R:6371e3,distance:function(l,d){var m=Math.PI/180,x=l.lat*m,A=d.lat*m,D=Math.sin((d.lat-l.lat)*m/2),X=Math.sin((d.lng-l.lng)*m/2),ee=D*D+Math.cos(x)*Math.cos(A)*X*X,ae=2*Math.atan2(Math.sqrt(ee),Math.sqrt(1-ee));return this.R*ae}}),ge=6378137,Te={R:ge,MAX_LATITUDE:85.0511287798,project:function(l){var d=Math.PI/180,m=this.MAX_LATITUDE,x=Math.max(Math.min(m,l.lat),-m),A=Math.sin(x*d);return new G(this.R*l.lng*d,this.R*Math.log((1+A)/(1-A))/2)},unproject:function(l){var d=180/Math.PI;return new oe((2*Math.atan(Math.exp(l.y/this.R))-Math.PI/2)*d,l.x*d/this.R)},bounds:function(){var l=ge*Math.PI;return new Y([-l,-l],[l,l])}()};function ye(l,d,m,x){if(E(l)){this._a=l[0],this._b=l[1],this._c=l[2],this._d=l[3];return}this._a=l,this._b=d,this._c=m,this._d=x}ye.prototype={transform:function(l,d){return this._transform(l.clone(),d)},_transform:function(l,d){return d=d||1,l.x=d*(this._a*l.x+this._b),l.y=d*(this._c*l.y+this._d),l},untransform:function(l,d){return d=d||1,new G((l.x/d-this._b)/this._a,(l.y/d-this._d)/this._c)}};function J(l,d,m,x){return new ye(l,d,m,x)}var _e=i({},ce,{code:"EPSG:3857",projection:Te,transformation:function(){var l=.5/(Math.PI*Te.R);return J(l,.5,-l,.5)}()}),ve=i({},_e,{code:"EPSG:900913"});function Ee(l){return document.createElementNS("http://www.w3.org/2000/svg",l)}function Ne(l,d){var m="",x,A,D,X,ee,ae;for(x=0,D=l.length;x<D;x++){for(ee=l[x],A=0,X=ee.length;A<X;A++)ae=ee[A],m+=(A?"L":"M")+ae.x+" "+ae.y;m+=d?Pe.svg?"z":"x":""}return m||"M0 0"}var We=document.documentElement.style,He="ActiveXObject"in window,Zt=He&&!document.addEventListener,xt="msLaunchUri"in navigator&&!("documentMode"in document),$t=hn("webkit"),Pt=hn("android"),Ae=hn("android 2")||hn("android 3"),rt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),si=Pt&&hn("Google")&&rt<537&&!("AudioNode"in window),Br=!!window.opera,Wr=!xt&&hn("chrome"),cn=hn("gecko")&&!$t&&!Br&&!He,tn=!Wr&&hn("safari"),Fn=hn("phantom"),Kt="OTransition"in We,dn=navigator.platform.indexOf("Win")===0,Ye=He&&"transition"in We,jt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Ae,Oi="MozPerspective"in We,Fo=!window.L_DISABLE_3D&&(Ye||jt||Oi)&&!Kt&&!Fn,zn=typeof orientation!="undefined"||hn("mobile"),pa=zn&&$t,th=zn&&jt,Bl=!window.PointerEvent&&window.MSPointerEvent,Wl=!!(window.PointerEvent||Bl),Hl="ontouchstart"in window||!!window.TouchEvent,rh=!window.L_NO_TOUCH&&(Hl||Wl),nh=zn&&Br,ih=zn&&cn,ah=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,jl=function(){var l=!1;try{var d=Object.defineProperty({},"passive",{get:function(){l=!0}});window.addEventListener("testPassiveEventSupport",f,d),window.removeEventListener("testPassiveEventSupport",f,d)}catch(m){}return l}(),Vl=function(){return!!document.createElement("canvas").getContext}(),ma=!!(document.createElementNS&&Ee("svg").createSVGRect),Gl=!!ma&&function(){var l=document.createElement("div");return l.innerHTML="<svg/>",(l.firstChild&&l.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),$e=!ma&&function(){try{var l=document.createElement("div");l.innerHTML='<v:shape adj="1"/>';var d=l.firstChild;return d.style.behavior="url(#default#VML)",d&&typeof d.adj=="object"}catch(m){return!1}}(),Er=navigator.platform.indexOf("Mac")===0,Ul=navigator.platform.indexOf("Linux")===0;function hn(l){return navigator.userAgent.toLowerCase().indexOf(l)>=0}var Pe={ie:He,ielt9:Zt,edge:xt,webkit:$t,android:Pt,android23:Ae,androidStock:si,opera:Br,chrome:Wr,gecko:cn,safari:tn,phantom:Fn,opera12:Kt,win:dn,ie3d:Ye,webkit3d:jt,gecko3d:Oi,any3d:Fo,mobile:zn,mobileWebkit:pa,mobileWebkit3d:th,msPointer:Bl,pointer:Wl,touch:rh,touchNative:Hl,mobileOpera:nh,mobileGecko:ih,retina:ah,passiveEvents:jl,canvas:Vl,svg:ma,vml:$e,inlineSvg:Gl,mac:Er,linux:Ul},sv=Pe.msPointer?"MSPointerDown":"pointerdown",lv=Pe.msPointer?"MSPointerMove":"pointermove",uv=Pe.msPointer?"MSPointerUp":"pointerup",cv=Pe.msPointer?"MSPointerCancel":"pointercancel",oh={touchstart:sv,touchmove:lv,touchend:uv,touchcancel:cv},dv={touchstart:jE,touchmove:Yl,touchend:Yl,touchcancel:Yl},ga={},hv=!1;function FE(l,d,m){return d==="touchstart"&&HE(),dv[d]?(m=dv[d].bind(this,m),l.addEventListener(oh[d],m,!1),m):(console.warn("wrong event specified:",d),f)}function zE(l,d,m){if(!oh[d]){console.warn("wrong event specified:",d);return}l.removeEventListener(oh[d],m,!1)}function BE(l){ga[l.pointerId]=l}function WE(l){ga[l.pointerId]&&(ga[l.pointerId]=l)}function fv(l){delete ga[l.pointerId]}function HE(){hv||(document.addEventListener(sv,BE,!0),document.addEventListener(lv,WE,!0),document.addEventListener(uv,fv,!0),document.addEventListener(cv,fv,!0),hv=!0)}function Yl(l,d){if(d.pointerType!==(d.MSPOINTER_TYPE_MOUSE||"mouse")){d.touches=[];for(var m in ga)d.touches.push(ga[m]);d.changedTouches=[d],l(d)}}function jE(l,d){d.MSPOINTER_TYPE_TOUCH&&d.pointerType===d.MSPOINTER_TYPE_TOUCH&&nr(d),Yl(l,d)}function VE(l){var d={},m,x;for(x in l)m=l[x],d[x]=m&&m.bind?m.bind(l):m;return l=d,d.type="dblclick",d.detail=2,d.isTrusted=!1,d._simulated=!0,d}var GE=200;function UE(l,d){l.addEventListener("dblclick",d);var m=0,x;function A(D){if(D.detail!==1){x=D.detail;return}if(!(D.pointerType==="mouse"||D.sourceCapabilities&&!D.sourceCapabilities.firesTouchEvents)){var X=yv(D);if(!(X.some(function(ae){return ae instanceof HTMLLabelElement&&ae.attributes.for})&&!X.some(function(ae){return ae instanceof HTMLInputElement||ae instanceof HTMLSelectElement}))){var ee=Date.now();ee-m<=GE?(x++,x===2&&d(VE(D))):x=1,m=ee}}}return l.addEventListener("click",A),{dblclick:d,simDblclick:A}}function YE(l,d){l.removeEventListener("dblclick",d.dblclick),l.removeEventListener("click",d.simDblclick)}var sh=Zl(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),zo=Zl(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),pv=zo==="webkitTransition"||zo==="OTransition"?zo+"End":"transitionend";function mv(l){return typeof l=="string"?document.getElementById(l):l}function Bo(l,d){var m=l.style[d]||l.currentStyle&&l.currentStyle[d];if((!m||m==="auto")&&document.defaultView){var x=document.defaultView.getComputedStyle(l,null);m=x?x[d]:null}return m==="auto"?null:m}function Xe(l,d,m){var x=document.createElement(l);return x.className=d||"",m&&m.appendChild(x),x}function At(l){var d=l.parentNode;d&&d.removeChild(l)}function ql(l){for(;l.firstChild;)l.removeChild(l.firstChild)}function va(l){var d=l.parentNode;d&&d.lastChild!==l&&d.appendChild(l)}function ya(l){var d=l.parentNode;d&&d.firstChild!==l&&d.insertBefore(l,d.firstChild)}function lh(l,d){if(l.classList!==void 0)return l.classList.contains(d);var m=Xl(l);return m.length>0&&new RegExp("(^|\\s)"+d+"(\\s|$)").test(m)}function je(l,d){if(l.classList!==void 0)for(var m=b(d),x=0,A=m.length;x<A;x++)l.classList.add(m[x]);else if(!lh(l,d)){var D=Xl(l);uh(l,(D?D+" ":"")+d)}}function Ft(l,d){l.classList!==void 0?l.classList.remove(d):uh(l,g((" "+Xl(l)+" ").replace(" "+d+" "," ")))}function uh(l,d){l.className.baseVal===void 0?l.className=d:l.className.baseVal=d}function Xl(l){return l.correspondingElement&&(l=l.correspondingElement),l.className.baseVal===void 0?l.className:l.className.baseVal}function Hr(l,d){"opacity"in l.style?l.style.opacity=d:"filter"in l.style&&qE(l,d)}function qE(l,d){var m=!1,x="DXImageTransform.Microsoft.Alpha";try{m=l.filters.item(x)}catch(A){if(d===1)return}d=Math.round(d*100),m?(m.Enabled=d!==100,m.Opacity=d):l.style.filter+=" progid:"+x+"(opacity="+d+")"}function Zl(l){for(var d=document.documentElement.style,m=0;m<l.length;m++)if(l[m]in d)return l[m];return!1}function ki(l,d,m){var x=d||new G(0,0);l.style[sh]=(Pe.ie3d?"translate("+x.x+"px,"+x.y+"px)":"translate3d("+x.x+"px,"+x.y+"px,0)")+(m?" scale("+m+")":"")}function Vt(l,d){l._leaflet_pos=d,Pe.any3d?ki(l,d):(l.style.left=d.x+"px",l.style.top=d.y+"px")}function Di(l){return l._leaflet_pos||new G(0,0)}var Wo,Ho,ch;if("onselectstart"in document)Wo=function(){Fe(window,"selectstart",nr)},Ho=function(){pt(window,"selectstart",nr)};else{var jo=Zl(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Wo=function(){if(jo){var l=document.documentElement.style;ch=l[jo],l[jo]="none"}},Ho=function(){jo&&(document.documentElement.style[jo]=ch,ch=void 0)}}function dh(){Fe(window,"dragstart",nr)}function hh(){pt(window,"dragstart",nr)}var Kl,fh;function ph(l){for(;l.tabIndex===-1;)l=l.parentNode;l.style&&(Ql(),Kl=l,fh=l.style.outlineStyle,l.style.outlineStyle="none",Fe(window,"keydown",Ql))}function Ql(){Kl&&(Kl.style.outlineStyle=fh,Kl=void 0,fh=void 0,pt(window,"keydown",Ql))}function gv(l){do l=l.parentNode;while((!l.offsetWidth||!l.offsetHeight)&&l!==document.body);return l}function mh(l){var d=l.getBoundingClientRect();return{x:d.width/l.offsetWidth||1,y:d.height/l.offsetHeight||1,boundingClientRect:d}}var XE={__proto__:null,TRANSFORM:sh,TRANSITION:zo,TRANSITION_END:pv,get:mv,getStyle:Bo,create:Xe,remove:At,empty:ql,toFront:va,toBack:ya,hasClass:lh,addClass:je,removeClass:Ft,setClass:uh,getClass:Xl,setOpacity:Hr,testProp:Zl,setTransform:ki,setPosition:Vt,getPosition:Di,get disableTextSelection(){return Wo},get enableTextSelection(){return Ho},disableImageDrag:dh,enableImageDrag:hh,preventOutline:ph,restoreOutline:Ql,getSizedParentNode:gv,getScale:mh};function Fe(l,d,m,x){if(d&&typeof d=="object")for(var A in d)vh(l,A,d[A],m);else{d=b(d);for(var D=0,X=d.length;D<X;D++)vh(l,d[D],m,x)}return this}var fn="_leaflet_events";function pt(l,d,m,x){if(arguments.length===1)vv(l),delete l[fn];else if(d&&typeof d=="object")for(var A in d)yh(l,A,d[A],m);else if(d=b(d),arguments.length===2)vv(l,function(ee){return S(d,ee)!==-1});else for(var D=0,X=d.length;D<X;D++)yh(l,d[D],m,x);return this}function vv(l,d){for(var m in l[fn]){var x=m.split(/\d/)[0];(!d||d(x))&&yh(l,x,null,null,m)}}var gh={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function vh(l,d,m,x){var A=d+u(m)+(x?"_"+u(x):"");if(l[fn]&&l[fn][A])return this;var D=function(ee){return m.call(x||l,ee||window.event)},X=D;!Pe.touchNative&&Pe.pointer&&d.indexOf("touch")===0?D=FE(l,d,D):Pe.touch&&d==="dblclick"?D=UE(l,D):"addEventListener"in l?d==="touchstart"||d==="touchmove"||d==="wheel"||d==="mousewheel"?l.addEventListener(gh[d]||d,D,Pe.passiveEvents?{passive:!1}:!1):d==="mouseenter"||d==="mouseleave"?(D=function(ee){ee=ee||window.event,_h(l,ee)&&X(ee)},l.addEventListener(gh[d],D,!1)):l.addEventListener(d,X,!1):l.attachEvent("on"+d,D),l[fn]=l[fn]||{},l[fn][A]=D}function yh(l,d,m,x,A){A=A||d+u(m)+(x?"_"+u(x):"");var D=l[fn]&&l[fn][A];if(!D)return this;!Pe.touchNative&&Pe.pointer&&d.indexOf("touch")===0?zE(l,d,D):Pe.touch&&d==="dblclick"?YE(l,D):"removeEventListener"in l?l.removeEventListener(gh[d]||d,D,!1):l.detachEvent("on"+d,D),l[fn][A]=null}function Ni(l){return l.stopPropagation?l.stopPropagation():l.originalEvent?l.originalEvent._stopped=!0:l.cancelBubble=!0,this}function bh(l){return vh(l,"wheel",Ni),this}function Vo(l){return Fe(l,"mousedown touchstart dblclick contextmenu",Ni),l._leaflet_disable_click=!0,this}function nr(l){return l.preventDefault?l.preventDefault():l.returnValue=!1,this}function Li(l){return nr(l),Ni(l),this}function yv(l){if(l.composedPath)return l.composedPath();for(var d=[],m=l.target;m;)d.push(m),m=m.parentNode;return d}function bv(l,d){if(!d)return new G(l.clientX,l.clientY);var m=mh(d),x=m.boundingClientRect;return new G((l.clientX-x.left)/m.x-d.clientLeft,(l.clientY-x.top)/m.y-d.clientTop)}var ZE=Pe.linux&&Pe.chrome?window.devicePixelRatio:Pe.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function _v(l){return Pe.edge?l.wheelDeltaY/2:l.deltaY&&l.deltaMode===0?-l.deltaY/ZE:l.deltaY&&l.deltaMode===1?-l.deltaY*20:l.deltaY&&l.deltaMode===2?-l.deltaY*60:l.deltaX||l.deltaZ?0:l.wheelDelta?(l.wheelDeltaY||l.wheelDelta)/2:l.detail&&Math.abs(l.detail)<32765?-l.detail*20:l.detail?l.detail/-32765*60:0}function _h(l,d){var m=d.relatedTarget;if(!m)return!0;try{for(;m&&m!==l;)m=m.parentNode}catch(x){return!1}return m!==l}var KE={__proto__:null,on:Fe,off:pt,stopPropagation:Ni,disableScrollPropagation:bh,disableClickPropagation:Vo,preventDefault:nr,stop:Li,getPropagationPath:yv,getMousePosition:bv,getWheelDelta:_v,isExternalTarget:_h,addListener:Fe,removeListener:pt},wv=W.extend({run:function(l,d,m,x){this.stop(),this._el=l,this._inProgress=!0,this._duration=m||.25,this._easeOutPower=1/Math.max(x||.5,.2),this._startPos=Di(l),this._offset=d.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=Q(this._animate,this),this._step()},_step:function(l){var d=+new Date-this._startTime,m=this._duration*1e3;d<m?this._runFrame(this._easeOut(d/m),l):(this._runFrame(1),this._complete())},_runFrame:function(l,d){var m=this._startPos.add(this._offset.multiplyBy(l));d&&m._round(),Vt(this._el,m),this.fire("step")},_complete:function(){O(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(l){return 1-Math.pow(1-l,this._easeOutPower)}}),qe=W.extend({options:{crs:_e,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(l,d){d=v(this,d),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(l),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),d.maxBounds&&this.setMaxBounds(d.maxBounds),d.zoom!==void 0&&(this._zoom=this._limitZoom(d.zoom)),d.center&&d.zoom!==void 0&&this.setView(se(d.center),d.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=zo&&Pe.any3d&&!Pe.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Fe(this._proxy,pv,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(l,d,m){if(d=d===void 0?this._zoom:this._limitZoom(d),l=this._limitCenter(se(l),d,this.options.maxBounds),m=m||{},this._stop(),this._loaded&&!m.reset&&m!==!0){m.animate!==void 0&&(m.zoom=i({animate:m.animate},m.zoom),m.pan=i({animate:m.animate,duration:m.duration},m.pan));var x=this._zoom!==d?this._tryAnimatedZoom&&this._tryAnimatedZoom(l,d,m.zoom):this._tryAnimatedPan(l,m.pan);if(x)return clearTimeout(this._sizeTimer),this}return this._resetView(l,d,m.pan&&m.pan.noMoveStart),this},setZoom:function(l,d){return this._loaded?this.setView(this.getCenter(),l,{zoom:d}):(this._zoom=l,this)},zoomIn:function(l,d){return l=l||(Pe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+l,d)},zoomOut:function(l,d){return l=l||(Pe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-l,d)},setZoomAround:function(l,d,m){var x=this.getZoomScale(d),A=this.getSize().divideBy(2),D=l instanceof G?l:this.latLngToContainerPoint(l),X=D.subtract(A).multiplyBy(1-1/x),ee=this.containerPointToLatLng(A.add(X));return this.setView(ee,d,{zoom:m})},_getBoundsCenterZoom:function(l,d){d=d||{},l=l.getBounds?l.getBounds():re(l);var m=z(d.paddingTopLeft||d.padding||[0,0]),x=z(d.paddingBottomRight||d.padding||[0,0]),A=this.getBoundsZoom(l,!1,m.add(x));if(A=typeof d.maxZoom=="number"?Math.min(d.maxZoom,A):A,A===1/0)return{center:l.getCenter(),zoom:A};var D=x.subtract(m).divideBy(2),X=this.project(l.getSouthWest(),A),ee=this.project(l.getNorthEast(),A),ae=this.unproject(X.add(ee).divideBy(2).add(D),A);return{center:ae,zoom:A}},fitBounds:function(l,d){if(l=re(l),!l.isValid())throw new Error("Bounds are not valid.");var m=this._getBoundsCenterZoom(l,d);return this.setView(m.center,m.zoom,d)},fitWorld:function(l){return this.fitBounds([[-90,-180],[90,180]],l)},panTo:function(l,d){return this.setView(l,this._zoom,{pan:d})},panBy:function(l,d){if(l=z(l).round(),d=d||{},!l.x&&!l.y)return this.fire("moveend");if(d.animate!==!0&&!this.getSize().contains(l))return this._resetView(this.unproject(this.project(this.getCenter()).add(l)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new wv,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),d.noMoveStart||this.fire("movestart"),d.animate!==!1){je(this._mapPane,"leaflet-pan-anim");var m=this._getMapPanePos().subtract(l).round();this._panAnim.run(this._mapPane,m,d.duration||.25,d.easeLinearity)}else this._rawPanBy(l),this.fire("move").fire("moveend");return this},flyTo:function(l,d,m){if(m=m||{},m.animate===!1||!Pe.any3d)return this.setView(l,d,m);this._stop();var x=this.project(this.getCenter()),A=this.project(l),D=this.getSize(),X=this._zoom;l=se(l),d=d===void 0?X:d;var ee=Math.max(D.x,D.y),ae=ee*this.getZoomScale(X,d),he=A.distanceTo(x)||1,we=1.42,Re=we*we;function Ve(Gt){var cu=Gt?-1:1,z3=Gt?ae:ee,B3=ae*ae-ee*ee+cu*Re*Re*he*he,W3=2*z3*Re*he,Oh=B3/W3,ty=Math.sqrt(Oh*Oh+1)-Oh,H3=ty<1e-9?-18:Math.log(ty);return H3}function ur(Gt){return(Math.exp(Gt)-Math.exp(-Gt))/2}function Qt(Gt){return(Math.exp(Gt)+Math.exp(-Gt))/2}function Vr(Gt){return ur(Gt)/Qt(Gt)}var _r=Ve(0);function Ta(Gt){return ee*(Qt(_r)/Qt(_r+we*Gt))}function L3(Gt){return ee*(Qt(_r)*Vr(_r+we*Gt)-ur(_r))/Re}function I3(Gt){return 1-Math.pow(1-Gt,1.5)}var $3=Date.now(),Jv=(Ve(1)-_r)/we,F3=m.duration?1e3*m.duration:1e3*Jv*.8;function ey(){var Gt=(Date.now()-$3)/F3,cu=I3(Gt)*Jv;Gt<=1?(this._flyToFrame=Q(ey,this),this._move(this.unproject(x.add(A.subtract(x).multiplyBy(L3(cu)/he)),X),this.getScaleZoom(ee/Ta(cu),X),{flyTo:!0})):this._move(l,d)._moveEnd(!0)}return this._moveStart(!0,m.noMoveStart),ey.call(this),this},flyToBounds:function(l,d){var m=this._getBoundsCenterZoom(l,d);return this.flyTo(m.center,m.zoom,d)},setMaxBounds:function(l){return l=re(l),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),l.isValid()?(this.options.maxBounds=l,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(l){var d=this.options.minZoom;return this.options.minZoom=l,this._loaded&&d!==l&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(l):this},setMaxZoom:function(l){var d=this.options.maxZoom;return this.options.maxZoom=l,this._loaded&&d!==l&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(l):this},panInsideBounds:function(l,d){this._enforcingBounds=!0;var m=this.getCenter(),x=this._limitCenter(m,this._zoom,re(l));return m.equals(x)||this.panTo(x,d),this._enforcingBounds=!1,this},panInside:function(l,d){d=d||{};var m=z(d.paddingTopLeft||d.padding||[0,0]),x=z(d.paddingBottomRight||d.padding||[0,0]),A=this.project(this.getCenter()),D=this.project(l),X=this.getPixelBounds(),ee=ie([X.min.add(m),X.max.subtract(x)]),ae=ee.getSize();if(!ee.contains(D)){this._enforcingBounds=!0;var he=D.subtract(ee.getCenter()),we=ee.extend(D).getSize().subtract(ae);A.x+=he.x<0?-we.x:we.x,A.y+=he.y<0?-we.y:we.y,this.panTo(this.unproject(A),d),this._enforcingBounds=!1}return this},invalidateSize:function(l){if(!this._loaded)return this;l=i({animate:!1,pan:!0},l===!0?{animate:!0}:l);var d=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var m=this.getSize(),x=d.divideBy(2).round(),A=m.divideBy(2).round(),D=x.subtract(A);return!D.x&&!D.y?this:(l.animate&&l.pan?this.panBy(D):(l.pan&&this._rawPanBy(D),this.fire("move"),l.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:d,newSize:m}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(l){if(l=this._locateOptions=i({timeout:1e4,watch:!1},l),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var d=o(this._handleGeolocationResponse,this),m=o(this._handleGeolocationError,this);return l.watch?this._locationWatchId=navigator.geolocation.watchPosition(d,m,l):navigator.geolocation.getCurrentPosition(d,m,l),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(l){if(this._container._leaflet_id){var d=l.code,m=l.message||(d===1?"permission denied":d===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:d,message:"Geolocation error: "+m+"."})}},_handleGeolocationResponse:function(l){if(this._container._leaflet_id){var d=l.coords.latitude,m=l.coords.longitude,x=new oe(d,m),A=x.toBounds(l.coords.accuracy*2),D=this._locateOptions;if(D.setView){var X=this.getBoundsZoom(A);this.setView(x,D.maxZoom?Math.min(X,D.maxZoom):X)}var ee={latlng:x,bounds:A,timestamp:l.timestamp};for(var ae in l.coords)typeof l.coords[ae]=="number"&&(ee[ae]=l.coords[ae]);this.fire("locationfound",ee)}},addHandler:function(l,d){if(!d)return this;var m=this[l]=new d(this);return this._handlers.push(m),this.options[l]&&m.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(d){this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),At(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(O(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var l;for(l in this._layers)this._layers[l].remove();for(l in this._panes)At(this._panes[l]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(l,d){var m="leaflet-pane"+(l?" leaflet-"+l.replace("Pane","")+"-pane":""),x=Xe("div",m,d||this._mapPane);return l&&(this._panes[l]=x),x},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var l=this.getPixelBounds(),d=this.unproject(l.getBottomLeft()),m=this.unproject(l.getTopRight());return new ne(d,m)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(l,d,m){l=re(l),m=z(m||[0,0]);var x=this.getZoom()||0,A=this.getMinZoom(),D=this.getMaxZoom(),X=l.getNorthWest(),ee=l.getSouthEast(),ae=this.getSize().subtract(m),he=ie(this.project(ee,x),this.project(X,x)).getSize(),we=Pe.any3d?this.options.zoomSnap:1,Re=ae.x/he.x,Ve=ae.y/he.y,ur=d?Math.max(Re,Ve):Math.min(Re,Ve);return x=this.getScaleZoom(ur,x),we&&(x=Math.round(x/(we/100))*(we/100),x=d?Math.ceil(x/we)*we:Math.floor(x/we)*we),Math.max(A,Math.min(D,x))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new G(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(l,d){var m=this._getTopLeftPoint(l,d);return new Y(m,m.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(l){return this.options.crs.getProjectedBounds(l===void 0?this.getZoom():l)},getPane:function(l){return typeof l=="string"?this._panes[l]:l},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(l,d){var m=this.options.crs;return d=d===void 0?this._zoom:d,m.scale(l)/m.scale(d)},getScaleZoom:function(l,d){var m=this.options.crs;d=d===void 0?this._zoom:d;var x=m.zoom(l*m.scale(d));return isNaN(x)?1/0:x},project:function(l,d){return d=d===void 0?this._zoom:d,this.options.crs.latLngToPoint(se(l),d)},unproject:function(l,d){return d=d===void 0?this._zoom:d,this.options.crs.pointToLatLng(z(l),d)},layerPointToLatLng:function(l){var d=z(l).add(this.getPixelOrigin());return this.unproject(d)},latLngToLayerPoint:function(l){var d=this.project(se(l))._round();return d._subtract(this.getPixelOrigin())},wrapLatLng:function(l){return this.options.crs.wrapLatLng(se(l))},wrapLatLngBounds:function(l){return this.options.crs.wrapLatLngBounds(re(l))},distance:function(l,d){return this.options.crs.distance(se(l),se(d))},containerPointToLayerPoint:function(l){return z(l).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(l){return z(l).add(this._getMapPanePos())},containerPointToLatLng:function(l){var d=this.containerPointToLayerPoint(z(l));return this.layerPointToLatLng(d)},latLngToContainerPoint:function(l){return this.layerPointToContainerPoint(this.latLngToLayerPoint(se(l)))},mouseEventToContainerPoint:function(l){return bv(l,this._container)},mouseEventToLayerPoint:function(l){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(l))},mouseEventToLatLng:function(l){return this.layerPointToLatLng(this.mouseEventToLayerPoint(l))},_initContainer:function(l){var d=this._container=mv(l);if(d){if(d._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Fe(d,"scroll",this._onScroll,this),this._containerId=u(d)},_initLayout:function(){var l=this._container;this._fadeAnimated=this.options.fadeAnimation&&Pe.any3d,je(l,"leaflet-container"+(Pe.touch?" leaflet-touch":"")+(Pe.retina?" leaflet-retina":"")+(Pe.ielt9?" leaflet-oldie":"")+(Pe.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var d=Bo(l,"position");d!=="absolute"&&d!=="relative"&&d!=="fixed"&&d!=="sticky"&&(l.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var l=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Vt(this._mapPane,new G(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(je(l.markerPane,"leaflet-zoom-hide"),je(l.shadowPane,"leaflet-zoom-hide"))},_resetView:function(l,d,m){Vt(this._mapPane,new G(0,0));var x=!this._loaded;this._loaded=!0,d=this._limitZoom(d),this.fire("viewprereset");var A=this._zoom!==d;this._moveStart(A,m)._move(l,d)._moveEnd(A),this.fire("viewreset"),x&&this.fire("load")},_moveStart:function(l,d){return l&&this.fire("zoomstart"),d||this.fire("movestart"),this},_move:function(l,d,m,x){d===void 0&&(d=this._zoom);var A=this._zoom!==d;return this._zoom=d,this._lastCenter=l,this._pixelOrigin=this._getNewPixelOrigin(l),x?m&&m.pinch&&this.fire("zoom",m):((A||m&&m.pinch)&&this.fire("zoom",m),this.fire("move",m)),this},_moveEnd:function(l){return l&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return O(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(l){Vt(this._mapPane,this._getMapPanePos().subtract(l))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(l){this._targets={},this._targets[u(this._container)]=this;var d=l?pt:Fe;d(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&d(window,"resize",this._onResize,this),Pe.any3d&&this.options.transform3DLimit&&(l?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){O(this._resizeRequest),this._resizeRequest=Q(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var l=this._getMapPanePos();Math.max(Math.abs(l.x),Math.abs(l.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(l,d){for(var m=[],x,A=d==="mouseout"||d==="mouseover",D=l.target||l.srcElement,X=!1;D;){if(x=this._targets[u(D)],x&&(d==="click"||d==="preclick")&&this._draggableMoved(x)){X=!0;break}if(x&&x.listens(d,!0)&&(A&&!_h(D,l)||(m.push(x),A))||D===this._container)break;D=D.parentNode}return!m.length&&!X&&!A&&this.listens(d,!0)&&(m=[this]),m},_isClickDisabled:function(l){for(;l&&l!==this._container;){if(l._leaflet_disable_click)return!0;l=l.parentNode}},_handleDOMEvent:function(l){var d=l.target||l.srcElement;if(!(!this._loaded||d._leaflet_disable_events||l.type==="click"&&this._isClickDisabled(d))){var m=l.type;m==="mousedown"&&ph(d),this._fireDOMEvent(l,m)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(l,d,m){if(l.type==="click"){var x=i({},l);x.type="preclick",this._fireDOMEvent(x,x.type,m)}var A=this._findEventTargets(l,d);if(m){for(var D=[],X=0;X<m.length;X++)m[X].listens(d,!0)&&D.push(m[X]);A=D.concat(A)}if(A.length){d==="contextmenu"&&nr(l);var ee=A[0],ae={originalEvent:l};if(l.type!=="keypress"&&l.type!=="keydown"&&l.type!=="keyup"){var he=ee.getLatLng&&(!ee._radius||ee._radius<=10);ae.containerPoint=he?this.latLngToContainerPoint(ee.getLatLng()):this.mouseEventToContainerPoint(l),ae.layerPoint=this.containerPointToLayerPoint(ae.containerPoint),ae.latlng=he?ee.getLatLng():this.layerPointToLatLng(ae.layerPoint)}for(X=0;X<A.length;X++)if(A[X].fire(d,ae,!0),ae.originalEvent._stopped||A[X].options.bubblingMouseEvents===!1&&S(this._mouseEvents,d)!==-1)return}},_draggableMoved:function(l){return l=l.dragging&&l.dragging.enabled()?l:this,l.dragging&&l.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var l=0,d=this._handlers.length;l<d;l++)this._handlers[l].disable()},whenReady:function(l,d){return this._loaded?l.call(d||this,{target:this}):this.on("load",l,d),this},_getMapPanePos:function(){return Di(this._mapPane)||new G(0,0)},_moved:function(){var l=this._getMapPanePos();return l&&!l.equals([0,0])},_getTopLeftPoint:function(l,d){var m=l&&d!==void 0?this._getNewPixelOrigin(l,d):this.getPixelOrigin();return m.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(l,d){var m=this.getSize()._divideBy(2);return this.project(l,d)._subtract(m)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(l,d,m){var x=this._getNewPixelOrigin(m,d);return this.project(l,d)._subtract(x)},_latLngBoundsToNewLayerBounds:function(l,d,m){var x=this._getNewPixelOrigin(m,d);return ie([this.project(l.getSouthWest(),d)._subtract(x),this.project(l.getNorthWest(),d)._subtract(x),this.project(l.getSouthEast(),d)._subtract(x),this.project(l.getNorthEast(),d)._subtract(x)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(l){return this.latLngToLayerPoint(l).subtract(this._getCenterLayerPoint())},_limitCenter:function(l,d,m){if(!m)return l;var x=this.project(l,d),A=this.getSize().divideBy(2),D=new Y(x.subtract(A),x.add(A)),X=this._getBoundsOffset(D,m,d);return Math.abs(X.x)<=1&&Math.abs(X.y)<=1?l:this.unproject(x.add(X),d)},_limitOffset:function(l,d){if(!d)return l;var m=this.getPixelBounds(),x=new Y(m.min.add(l),m.max.add(l));return l.add(this._getBoundsOffset(x,d))},_getBoundsOffset:function(l,d,m){var x=ie(this.project(d.getNorthEast(),m),this.project(d.getSouthWest(),m)),A=x.min.subtract(l.min),D=x.max.subtract(l.max),X=this._rebound(A.x,-D.x),ee=this._rebound(A.y,-D.y);return new G(X,ee)},_rebound:function(l,d){return l+d>0?Math.round(l-d)/2:Math.max(0,Math.ceil(l))-Math.max(0,Math.floor(d))},_limitZoom:function(l){var d=this.getMinZoom(),m=this.getMaxZoom(),x=Pe.any3d?this.options.zoomSnap:1;return x&&(l=Math.round(l/x)*x),Math.max(d,Math.min(m,l))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Ft(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(l,d){var m=this._getCenterOffset(l)._trunc();return(d&&d.animate)!==!0&&!this.getSize().contains(m)?!1:(this.panBy(m,d),!0)},_createAnimProxy:function(){var l=this._proxy=Xe("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(l),this.on("zoomanim",function(d){var m=sh,x=this._proxy.style[m];ki(this._proxy,this.project(d.center,d.zoom),this.getZoomScale(d.zoom,1)),x===this._proxy.style[m]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){At(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var l=this.getCenter(),d=this.getZoom();ki(this._proxy,this.project(l,d),this.getZoomScale(d,1))},_catchTransitionEnd:function(l){this._animatingZoom&&l.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(l,d,m){if(this._animatingZoom)return!0;if(m=m||{},!this._zoomAnimated||m.animate===!1||this._nothingToAnimate()||Math.abs(d-this._zoom)>this.options.zoomAnimationThreshold)return!1;var x=this.getZoomScale(d),A=this._getCenterOffset(l)._divideBy(1-1/x);return m.animate!==!0&&!this.getSize().contains(A)?!1:(Q(function(){this._moveStart(!0,m.noMoveStart||!1)._animateZoom(l,d,!0)},this),!0)},_animateZoom:function(l,d,m,x){this._mapPane&&(m&&(this._animatingZoom=!0,this._animateToCenter=l,this._animateToZoom=d,je(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:l,zoom:d,noUpdate:x}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Ft(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function QE(l,d){return new qe(l,d)}var rn=q.extend({options:{position:"topright"},initialize:function(l){v(this,l)},getPosition:function(){return this.options.position},setPosition:function(l){var d=this._map;return d&&d.removeControl(this),this.options.position=l,d&&d.addControl(this),this},getContainer:function(){return this._container},addTo:function(l){this.remove(),this._map=l;var d=this._container=this.onAdd(l),m=this.getPosition(),x=l._controlCorners[m];return je(d,"leaflet-control"),m.indexOf("bottom")!==-1?x.insertBefore(d,x.firstChild):x.appendChild(d),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(At(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(l){this._map&&l&&l.screenX>0&&l.screenY>0&&this._map.getContainer().focus()}}),Go=function(l){return new rn(l)};qe.include({addControl:function(l){return l.addTo(this),this},removeControl:function(l){return l.remove(),this},_initControlPos:function(){var l=this._controlCorners={},d="leaflet-",m=this._controlContainer=Xe("div",d+"control-container",this._container);function x(A,D){var X=d+A+" "+d+D;l[A+D]=Xe("div",X,m)}x("top","left"),x("top","right"),x("bottom","left"),x("bottom","right")},_clearControlPos:function(){for(var l in this._controlCorners)At(this._controlCorners[l]);At(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var xv=rn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(l,d,m,x){return m<x?-1:x<m?1:0}},initialize:function(l,d,m){v(this,m),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var x in l)this._addLayer(l[x],x);for(x in d)this._addLayer(d[x],x,!0)},onAdd:function(l){this._initLayout(),this._update(),this._map=l,l.on("zoomend",this._checkDisabledLayers,this);for(var d=0;d<this._layers.length;d++)this._layers[d].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(l){return rn.prototype.addTo.call(this,l),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var l=0;l<this._layers.length;l++)this._layers[l].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(l,d){return this._addLayer(l,d),this._map?this._update():this},addOverlay:function(l,d){return this._addLayer(l,d,!0),this._map?this._update():this},removeLayer:function(l){l.off("add remove",this._onLayerChange,this);var d=this._getLayer(u(l));return d&&this._layers.splice(this._layers.indexOf(d),1),this._map?this._update():this},expand:function(){je(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var l=this._map.getSize().y-(this._container.offsetTop+50);return l<this._section.clientHeight?(je(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=l+"px"):Ft(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Ft(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var l="leaflet-control-layers",d=this._container=Xe("div",l),m=this.options.collapsed;d.setAttribute("aria-haspopup",!0),Vo(d),bh(d);var x=this._section=Xe("section",l+"-list");m&&(this._map.on("click",this.collapse,this),Fe(d,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var A=this._layersLink=Xe("a",l+"-toggle",d);A.href="#",A.title="Layers",A.setAttribute("role","button"),Fe(A,{keydown:function(D){D.keyCode===13&&this._expandSafely()},click:function(D){nr(D),this._expandSafely()}},this),m||this.expand(),this._baseLayersList=Xe("div",l+"-base",x),this._separator=Xe("div",l+"-separator",x),this._overlaysList=Xe("div",l+"-overlays",x),d.appendChild(x)},_getLayer:function(l){for(var d=0;d<this._layers.length;d++)if(this._layers[d]&&u(this._layers[d].layer)===l)return this._layers[d]},_addLayer:function(l,d,m){this._map&&l.on("add remove",this._onLayerChange,this),this._layers.push({layer:l,name:d,overlay:m}),this.options.sortLayers&&this._layers.sort(o(function(x,A){return this.options.sortFunction(x.layer,A.layer,x.name,A.name)},this)),this.options.autoZIndex&&l.setZIndex&&(this._lastZIndex++,l.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ql(this._baseLayersList),ql(this._overlaysList),this._layerControlInputs=[];var l,d,m,x,A=0;for(m=0;m<this._layers.length;m++)x=this._layers[m],this._addItem(x),d=d||x.overlay,l=l||!x.overlay,A+=x.overlay?0:1;return this.options.hideSingleBase&&(l=l&&A>1,this._baseLayersList.style.display=l?"":"none"),this._separator.style.display=d&&l?"":"none",this},_onLayerChange:function(l){this._handlingClick||this._update();var d=this._getLayer(u(l.target)),m=d.overlay?l.type==="add"?"overlayadd":"overlayremove":l.type==="add"?"baselayerchange":null;m&&this._map.fire(m,d)},_createRadioElement:function(l,d){var m='<input type="radio" class="leaflet-control-layers-selector" name="'+l+'"'+(d?' checked="checked"':"")+"/>",x=document.createElement("div");return x.innerHTML=m,x.firstChild},_addItem:function(l){var d=document.createElement("label"),m=this._map.hasLayer(l.layer),x;l.overlay?(x=document.createElement("input"),x.type="checkbox",x.className="leaflet-control-layers-selector",x.defaultChecked=m):x=this._createRadioElement("leaflet-base-layers_"+u(this),m),this._layerControlInputs.push(x),x.layerId=u(l.layer),Fe(x,"click",this._onInputClick,this);var A=document.createElement("span");A.innerHTML=" "+l.name;var D=document.createElement("span");d.appendChild(D),D.appendChild(x),D.appendChild(A);var X=l.overlay?this._overlaysList:this._baseLayersList;return X.appendChild(d),this._checkDisabledLayers(),d},_onInputClick:function(){if(!this._preventClick){var l=this._layerControlInputs,d,m,x=[],A=[];this._handlingClick=!0;for(var D=l.length-1;D>=0;D--)d=l[D],m=this._getLayer(d.layerId).layer,d.checked?x.push(m):d.checked||A.push(m);for(D=0;D<A.length;D++)this._map.hasLayer(A[D])&&this._map.removeLayer(A[D]);for(D=0;D<x.length;D++)this._map.hasLayer(x[D])||this._map.addLayer(x[D]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var l=this._layerControlInputs,d,m,x=this._map.getZoom(),A=l.length-1;A>=0;A--)d=l[A],m=this._getLayer(d.layerId).layer,d.disabled=m.options.minZoom!==void 0&&x<m.options.minZoom||m.options.maxZoom!==void 0&&x>m.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var l=this._section;this._preventClick=!0,Fe(l,"click",nr),this.expand();var d=this;setTimeout(function(){pt(l,"click",nr),d._preventClick=!1})}}),JE=function(l,d,m){return new xv(l,d,m)},wh=rn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(l){var d="leaflet-control-zoom",m=Xe("div",d+" leaflet-bar"),x=this.options;return this._zoomInButton=this._createButton(x.zoomInText,x.zoomInTitle,d+"-in",m,this._zoomIn),this._zoomOutButton=this._createButton(x.zoomOutText,x.zoomOutTitle,d+"-out",m,this._zoomOut),this._updateDisabled(),l.on("zoomend zoomlevelschange",this._updateDisabled,this),m},onRemove:function(l){l.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(l){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(l.shiftKey?3:1))},_zoomOut:function(l){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(l.shiftKey?3:1))},_createButton:function(l,d,m,x,A){var D=Xe("a",m,x);return D.innerHTML=l,D.href="#",D.title=d,D.setAttribute("role","button"),D.setAttribute("aria-label",d),Vo(D),Fe(D,"click",Li),Fe(D,"click",A,this),Fe(D,"click",this._refocusOnMap,this),D},_updateDisabled:function(){var l=this._map,d="leaflet-disabled";Ft(this._zoomInButton,d),Ft(this._zoomOutButton,d),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||l._zoom===l.getMinZoom())&&(je(this._zoomOutButton,d),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||l._zoom===l.getMaxZoom())&&(je(this._zoomInButton,d),this._zoomInButton.setAttribute("aria-disabled","true"))}});qe.mergeOptions({zoomControl:!0}),qe.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new wh,this.addControl(this.zoomControl))});var e3=function(l){return new wh(l)},Cv=rn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(l){var d="leaflet-control-scale",m=Xe("div",d),x=this.options;return this._addScales(x,d+"-line",m),l.on(x.updateWhenIdle?"moveend":"move",this._update,this),l.whenReady(this._update,this),m},onRemove:function(l){l.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(l,d,m){l.metric&&(this._mScale=Xe("div",d,m)),l.imperial&&(this._iScale=Xe("div",d,m))},_update:function(){var l=this._map,d=l.getSize().y/2,m=l.distance(l.containerPointToLatLng([0,d]),l.containerPointToLatLng([this.options.maxWidth,d]));this._updateScales(m)},_updateScales:function(l){this.options.metric&&l&&this._updateMetric(l),this.options.imperial&&l&&this._updateImperial(l)},_updateMetric:function(l){var d=this._getRoundNum(l),m=d<1e3?d+" m":d/1e3+" km";this._updateScale(this._mScale,m,d/l)},_updateImperial:function(l){var d=l*3.2808399,m,x,A;d>5280?(m=d/5280,x=this._getRoundNum(m),this._updateScale(this._iScale,x+" mi",x/m)):(A=this._getRoundNum(d),this._updateScale(this._iScale,A+" ft",A/d))},_updateScale:function(l,d,m){l.style.width=Math.round(this.options.maxWidth*m)+"px",l.innerHTML=d},_getRoundNum:function(l){var d=Math.pow(10,(Math.floor(l)+"").length-1),m=l/d;return m=m>=10?10:m>=5?5:m>=3?3:m>=2?2:1,d*m}}),t3=function(l){return new Cv(l)},r3='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',xh=rn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Pe.inlineSvg?r3+" ":"")+"Leaflet</a>"},initialize:function(l){v(this,l),this._attributions={}},onAdd:function(l){l.attributionControl=this,this._container=Xe("div","leaflet-control-attribution"),Vo(this._container);for(var d in l._layers)l._layers[d].getAttribution&&this.addAttribution(l._layers[d].getAttribution());return this._update(),l.on("layeradd",this._addAttribution,this),this._container},onRemove:function(l){l.off("layeradd",this._addAttribution,this)},_addAttribution:function(l){l.layer.getAttribution&&(this.addAttribution(l.layer.getAttribution()),l.layer.once("remove",function(){this.removeAttribution(l.layer.getAttribution())},this))},setPrefix:function(l){return this.options.prefix=l,this._update(),this},addAttribution:function(l){return l?(this._attributions[l]||(this._attributions[l]=0),this._attributions[l]++,this._update(),this):this},removeAttribution:function(l){return l?(this._attributions[l]&&(this._attributions[l]--,this._update()),this):this},_update:function(){if(this._map){var l=[];for(var d in this._attributions)this._attributions[d]&&l.push(d);var m=[];this.options.prefix&&m.push(this.options.prefix),l.length&&m.push(l.join(", ")),this._container.innerHTML=m.join(' <span aria-hidden="true">|</span> ')}}});qe.mergeOptions({attributionControl:!0}),qe.addInitHook(function(){this.options.attributionControl&&new xh().addTo(this)});var n3=function(l){return new xh(l)};rn.Layers=xv,rn.Zoom=wh,rn.Scale=Cv,rn.Attribution=xh,Go.layers=JE,Go.zoom=e3,Go.scale=t3,Go.attribution=n3;var pn=q.extend({initialize:function(l){this._map=l},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});pn.addTo=function(l,d){return l.addHandler(d,this),this};var i3={Events:V},Tv=Pe.touch?"touchstart mousedown":"mousedown",li=W.extend({options:{clickTolerance:3},initialize:function(l,d,m,x){v(this,x),this._element=l,this._dragStartTarget=d||l,this._preventOutline=m},enable:function(){this._enabled||(Fe(this._dragStartTarget,Tv,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(li._dragging===this&&this.finishDrag(!0),pt(this._dragStartTarget,Tv,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(l){if(this._enabled&&(this._moved=!1,!lh(this._element,"leaflet-zoom-anim"))){if(l.touches&&l.touches.length!==1){li._dragging===this&&this.finishDrag();return}if(!(li._dragging||l.shiftKey||l.which!==1&&l.button!==1&&!l.touches)&&(li._dragging=this,this._preventOutline&&ph(this._element),dh(),Wo(),!this._moving)){this.fire("down");var d=l.touches?l.touches[0]:l,m=gv(this._element);this._startPoint=new G(d.clientX,d.clientY),this._startPos=Di(this._element),this._parentScale=mh(m);var x=l.type==="mousedown";Fe(document,x?"mousemove":"touchmove",this._onMove,this),Fe(document,x?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(l){if(this._enabled){if(l.touches&&l.touches.length>1){this._moved=!0;return}var d=l.touches&&l.touches.length===1?l.touches[0]:l,m=new G(d.clientX,d.clientY)._subtract(this._startPoint);!m.x&&!m.y||Math.abs(m.x)+Math.abs(m.y)<this.options.clickTolerance||(m.x/=this._parentScale.x,m.y/=this._parentScale.y,nr(l),this._moved||(this.fire("dragstart"),this._moved=!0,je(document.body,"leaflet-dragging"),this._lastTarget=l.target||l.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),je(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(m),this._moving=!0,this._lastEvent=l,this._updatePosition())}},_updatePosition:function(){var l={originalEvent:this._lastEvent};this.fire("predrag",l),Vt(this._element,this._newPos),this.fire("drag",l)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(l){Ft(document.body,"leaflet-dragging"),this._lastTarget&&(Ft(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),pt(document,"mousemove touchmove",this._onMove,this),pt(document,"mouseup touchend touchcancel",this._onUp,this),hh(),Ho();var d=this._moved&&this._moving;this._moving=!1,li._dragging=!1,d&&this.fire("dragend",{noInertia:l,distance:this._newPos.distanceTo(this._startPos)})}});function Mv(l,d,m){var x,A=[1,4,2,8],D,X,ee,ae,he,we,Re,Ve;for(D=0,we=l.length;D<we;D++)l[D]._code=Ii(l[D],d);for(ee=0;ee<4;ee++){for(Re=A[ee],x=[],D=0,we=l.length,X=we-1;D<we;X=D++)ae=l[D],he=l[X],ae._code&Re?he._code&Re||(Ve=Jl(he,ae,Re,d,m),Ve._code=Ii(Ve,d),x.push(Ve)):(he._code&Re&&(Ve=Jl(he,ae,Re,d,m),Ve._code=Ii(Ve,d),x.push(Ve)),x.push(ae));l=x}return l}function Sv(l,d){var m,x,A,D,X,ee,ae,he,we;if(!l||l.length===0)throw new Error("latlngs not passed");jr(l)||(console.warn("latlngs are not flat! Only the first ring will be used"),l=l[0]);var Re=se([0,0]),Ve=re(l),ur=Ve.getNorthWest().distanceTo(Ve.getSouthWest())*Ve.getNorthEast().distanceTo(Ve.getNorthWest());ur<1700&&(Re=Ch(l));var Qt=l.length,Vr=[];for(m=0;m<Qt;m++){var _r=se(l[m]);Vr.push(d.project(se([_r.lat-Re.lat,_r.lng-Re.lng])))}for(ee=ae=he=0,m=0,x=Qt-1;m<Qt;x=m++)A=Vr[m],D=Vr[x],X=A.y*D.x-D.y*A.x,ae+=(A.x+D.x)*X,he+=(A.y+D.y)*X,ee+=X*3;ee===0?we=Vr[0]:we=[ae/ee,he/ee];var Ta=d.unproject(z(we));return se([Ta.lat+Re.lat,Ta.lng+Re.lng])}function Ch(l){for(var d=0,m=0,x=0,A=0;A<l.length;A++){var D=se(l[A]);d+=D.lat,m+=D.lng,x++}return se([d/x,m/x])}var a3={__proto__:null,clipPolygon:Mv,polygonCenter:Sv,centroid:Ch};function Ev(l,d){if(!d||!l.length)return l.slice();var m=d*d;return l=l3(l,m),l=s3(l,m),l}function Pv(l,d,m){return Math.sqrt(Uo(l,d,m,!0))}function o3(l,d,m){return Uo(l,d,m)}function s3(l,d){var m=l.length,x=typeof Uint8Array!="undefined"?Uint8Array:Array,A=new x(m);A[0]=A[m-1]=1,Th(l,A,d,0,m-1);var D,X=[];for(D=0;D<m;D++)A[D]&&X.push(l[D]);return X}function Th(l,d,m,x,A){var D=0,X,ee,ae;for(ee=x+1;ee<=A-1;ee++)ae=Uo(l[ee],l[x],l[A],!0),ae>D&&(X=ee,D=ae);D>m&&(d[X]=1,Th(l,d,m,x,X),Th(l,d,m,X,A))}function l3(l,d){for(var m=[l[0]],x=1,A=0,D=l.length;x<D;x++)u3(l[x],l[A])>d&&(m.push(l[x]),A=x);return A<D-1&&m.push(l[D-1]),m}var Av;function Rv(l,d,m,x,A){var D=x?Av:Ii(l,m),X=Ii(d,m),ee,ae,he;for(Av=X;;){if(!(D|X))return[l,d];if(D&X)return!1;ee=D||X,ae=Jl(l,d,ee,m,A),he=Ii(ae,m),ee===D?(l=ae,D=he):(d=ae,X=he)}}function Jl(l,d,m,x,A){var D=d.x-l.x,X=d.y-l.y,ee=x.min,ae=x.max,he,we;return m&8?(he=l.x+D*(ae.y-l.y)/X,we=ae.y):m&4?(he=l.x+D*(ee.y-l.y)/X,we=ee.y):m&2?(he=ae.x,we=l.y+X*(ae.x-l.x)/D):m&1&&(he=ee.x,we=l.y+X*(ee.x-l.x)/D),new G(he,we,A)}function Ii(l,d){var m=0;return l.x<d.min.x?m|=1:l.x>d.max.x&&(m|=2),l.y<d.min.y?m|=4:l.y>d.max.y&&(m|=8),m}function u3(l,d){var m=d.x-l.x,x=d.y-l.y;return m*m+x*x}function Uo(l,d,m,x){var A=d.x,D=d.y,X=m.x-A,ee=m.y-D,ae=X*X+ee*ee,he;return ae>0&&(he=((l.x-A)*X+(l.y-D)*ee)/ae,he>1?(A=m.x,D=m.y):he>0&&(A+=X*he,D+=ee*he)),X=l.x-A,ee=l.y-D,x?X*X+ee*ee:new G(A,D)}function jr(l){return!E(l[0])||typeof l[0][0]!="object"&&typeof l[0][0]!="undefined"}function Ov(l){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),jr(l)}function kv(l,d){var m,x,A,D,X,ee,ae,he;if(!l||l.length===0)throw new Error("latlngs not passed");jr(l)||(console.warn("latlngs are not flat! Only the first ring will be used"),l=l[0]);var we=se([0,0]),Re=re(l),Ve=Re.getNorthWest().distanceTo(Re.getSouthWest())*Re.getNorthEast().distanceTo(Re.getNorthWest());Ve<1700&&(we=Ch(l));var ur=l.length,Qt=[];for(m=0;m<ur;m++){var Vr=se(l[m]);Qt.push(d.project(se([Vr.lat-we.lat,Vr.lng-we.lng])))}for(m=0,x=0;m<ur-1;m++)x+=Qt[m].distanceTo(Qt[m+1])/2;if(x===0)he=Qt[0];else for(m=0,D=0;m<ur-1;m++)if(X=Qt[m],ee=Qt[m+1],A=X.distanceTo(ee),D+=A,D>x){ae=(D-x)/A,he=[ee.x-ae*(ee.x-X.x),ee.y-ae*(ee.y-X.y)];break}var _r=d.unproject(z(he));return se([_r.lat+we.lat,_r.lng+we.lng])}var c3={__proto__:null,simplify:Ev,pointToSegmentDistance:Pv,closestPointOnSegment:o3,clipSegment:Rv,_getEdgeIntersection:Jl,_getBitCode:Ii,_sqClosestPointOnSegment:Uo,isFlat:jr,_flat:Ov,polylineCenter:kv},Mh={project:function(l){return new G(l.lng,l.lat)},unproject:function(l){return new oe(l.y,l.x)},bounds:new Y([-180,-90],[180,90])},Sh={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Y([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(l){var d=Math.PI/180,m=this.R,x=l.lat*d,A=this.R_MINOR/m,D=Math.sqrt(1-A*A),X=D*Math.sin(x),ee=Math.tan(Math.PI/4-x/2)/Math.pow((1-X)/(1+X),D/2);return x=-m*Math.log(Math.max(ee,1e-10)),new G(l.lng*d*m,x)},unproject:function(l){for(var d=180/Math.PI,m=this.R,x=this.R_MINOR/m,A=Math.sqrt(1-x*x),D=Math.exp(-l.y/m),X=Math.PI/2-2*Math.atan(D),ee=0,ae=.1,he;ee<15&&Math.abs(ae)>1e-7;ee++)he=A*Math.sin(X),he=Math.pow((1-he)/(1+he),A/2),ae=Math.PI/2-2*Math.atan(D*he)-X,X+=ae;return new oe(X*d,l.x*d/m)}},d3={__proto__:null,LonLat:Mh,Mercator:Sh,SphericalMercator:Te},h3=i({},ce,{code:"EPSG:3395",projection:Sh,transformation:function(){var l=.5/(Math.PI*Sh.R);return J(l,.5,-l,.5)}()}),Dv=i({},ce,{code:"EPSG:4326",projection:Mh,transformation:J(1/180,1,-1/180,.5)}),f3=i({},de,{projection:Mh,transformation:J(1,0,-1,0),scale:function(l){return Math.pow(2,l)},zoom:function(l){return Math.log(l)/Math.LN2},distance:function(l,d){var m=d.lng-l.lng,x=d.lat-l.lat;return Math.sqrt(m*m+x*x)},infinite:!0});de.Earth=ce,de.EPSG3395=h3,de.EPSG3857=_e,de.EPSG900913=ve,de.EPSG4326=Dv,de.Simple=f3;var nn=W.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(l){return l.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(l){return l&&l.removeLayer(this),this},getPane:function(l){return this._map.getPane(l?this.options[l]||l:this.options.pane)},addInteractiveTarget:function(l){return this._map._targets[u(l)]=this,this},removeInteractiveTarget:function(l){return delete this._map._targets[u(l)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(l){var d=l.target;if(d.hasLayer(this)){if(this._map=d,this._zoomAnimated=d._zoomAnimated,this.getEvents){var m=this.getEvents();d.on(m,this),this.once("remove",function(){d.off(m,this)},this)}this.onAdd(d),this.fire("add"),d.fire("layeradd",{layer:this})}}});qe.include({addLayer:function(l){if(!l._layerAdd)throw new Error("The provided object is not a Layer.");var d=u(l);return this._layers[d]?this:(this._layers[d]=l,l._mapToAdd=this,l.beforeAdd&&l.beforeAdd(this),this.whenReady(l._layerAdd,l),this)},removeLayer:function(l){var d=u(l);return this._layers[d]?(this._loaded&&l.onRemove(this),delete this._layers[d],this._loaded&&(this.fire("layerremove",{layer:l}),l.fire("remove")),l._map=l._mapToAdd=null,this):this},hasLayer:function(l){return u(l)in this._layers},eachLayer:function(l,d){for(var m in this._layers)l.call(d,this._layers[m]);return this},_addLayers:function(l){l=l?E(l)?l:[l]:[];for(var d=0,m=l.length;d<m;d++)this.addLayer(l[d])},_addZoomLimit:function(l){(!isNaN(l.options.maxZoom)||!isNaN(l.options.minZoom))&&(this._zoomBoundLayers[u(l)]=l,this._updateZoomLevels())},_removeZoomLimit:function(l){var d=u(l);this._zoomBoundLayers[d]&&(delete this._zoomBoundLayers[d],this._updateZoomLevels())},_updateZoomLevels:function(){var l=1/0,d=-1/0,m=this._getZoomSpan();for(var x in this._zoomBoundLayers){var A=this._zoomBoundLayers[x].options;l=A.minZoom===void 0?l:Math.min(l,A.minZoom),d=A.maxZoom===void 0?d:Math.max(d,A.maxZoom)}this._layersMaxZoom=d===-1/0?void 0:d,this._layersMinZoom=l===1/0?void 0:l,m!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ba=nn.extend({initialize:function(l,d){v(this,d),this._layers={};var m,x;if(l)for(m=0,x=l.length;m<x;m++)this.addLayer(l[m])},addLayer:function(l){var d=this.getLayerId(l);return this._layers[d]=l,this._map&&this._map.addLayer(l),this},removeLayer:function(l){var d=l in this._layers?l:this.getLayerId(l);return this._map&&this._layers[d]&&this._map.removeLayer(this._layers[d]),delete this._layers[d],this},hasLayer:function(l){var d=typeof l=="number"?l:this.getLayerId(l);return d in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(l){var d=Array.prototype.slice.call(arguments,1),m,x;for(m in this._layers)x=this._layers[m],x[l]&&x[l].apply(x,d);return this},onAdd:function(l){this.eachLayer(l.addLayer,l)},onRemove:function(l){this.eachLayer(l.removeLayer,l)},eachLayer:function(l,d){for(var m in this._layers)l.call(d,this._layers[m]);return this},getLayer:function(l){return this._layers[l]},getLayers:function(){var l=[];return this.eachLayer(l.push,l),l},setZIndex:function(l){return this.invoke("setZIndex",l)},getLayerId:function(l){return u(l)}}),p3=function(l,d){return new ba(l,d)},Bn=ba.extend({addLayer:function(l){return this.hasLayer(l)?this:(l.addEventParent(this),ba.prototype.addLayer.call(this,l),this.fire("layeradd",{layer:l}))},removeLayer:function(l){return this.hasLayer(l)?(l in this._layers&&(l=this._layers[l]),l.removeEventParent(this),ba.prototype.removeLayer.call(this,l),this.fire("layerremove",{layer:l})):this},setStyle:function(l){return this.invoke("setStyle",l)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var l=new ne;for(var d in this._layers){var m=this._layers[d];l.extend(m.getBounds?m.getBounds():m.getLatLng())}return l}}),m3=function(l,d){return new Bn(l,d)},_a=q.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(l){v(this,l)},createIcon:function(l){return this._createIcon("icon",l)},createShadow:function(l){return this._createIcon("shadow",l)},_createIcon:function(l,d){var m=this._getIconUrl(l);if(!m){if(l==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var x=this._createImg(m,d&&d.tagName==="IMG"?d:null);return this._setIconStyles(x,l),(this.options.crossOrigin||this.options.crossOrigin==="")&&(x.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),x},_setIconStyles:function(l,d){var m=this.options,x=m[d+"Size"];typeof x=="number"&&(x=[x,x]);var A=z(x),D=z(d==="shadow"&&m.shadowAnchor||m.iconAnchor||A&&A.divideBy(2,!0));l.className="leaflet-marker-"+d+" "+(m.className||""),D&&(l.style.marginLeft=-D.x+"px",l.style.marginTop=-D.y+"px"),A&&(l.style.width=A.x+"px",l.style.height=A.y+"px")},_createImg:function(l,d){return d=d||document.createElement("img"),d.src=l,d},_getIconUrl:function(l){return Pe.retina&&this.options[l+"RetinaUrl"]||this.options[l+"Url"]}});function g3(l){return new _a(l)}var Yo=_a.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(l){return typeof Yo.imagePath!="string"&&(Yo.imagePath=this._detectIconPath()),(this.options.imagePath||Yo.imagePath)+_a.prototype._getIconUrl.call(this,l)},_stripUrl:function(l){var d=function(m,x,A){var D=x.exec(m);return D&&D[A]};return l=d(l,/^url\((['"])?(.+)\1\)$/,2),l&&d(l,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var l=Xe("div","leaflet-default-icon-path",document.body),d=Bo(l,"background-image")||Bo(l,"backgroundImage");if(document.body.removeChild(l),d=this._stripUrl(d),d)return d;var m=document.querySelector('link[href$="leaflet.css"]');return m?m.href.substring(0,m.href.length-11-1):""}}),Nv=pn.extend({initialize:function(l){this._marker=l},addHooks:function(){var l=this._marker._icon;this._draggable||(this._draggable=new li(l,l,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),je(l,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Ft(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(l){var d=this._marker,m=d._map,x=this._marker.options.autoPanSpeed,A=this._marker.options.autoPanPadding,D=Di(d._icon),X=m.getPixelBounds(),ee=m.getPixelOrigin(),ae=ie(X.min._subtract(ee).add(A),X.max._subtract(ee).subtract(A));if(!ae.contains(D)){var he=z((Math.max(ae.max.x,D.x)-ae.max.x)/(X.max.x-ae.max.x)-(Math.min(ae.min.x,D.x)-ae.min.x)/(X.min.x-ae.min.x),(Math.max(ae.max.y,D.y)-ae.max.y)/(X.max.y-ae.max.y)-(Math.min(ae.min.y,D.y)-ae.min.y)/(X.min.y-ae.min.y)).multiplyBy(x);m.panBy(he,{animate:!1}),this._draggable._newPos._add(he),this._draggable._startPos._add(he),Vt(d._icon,this._draggable._newPos),this._onDrag(l),this._panRequest=Q(this._adjustPan.bind(this,l))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(l){this._marker.options.autoPan&&(O(this._panRequest),this._panRequest=Q(this._adjustPan.bind(this,l)))},_onDrag:function(l){var d=this._marker,m=d._shadow,x=Di(d._icon),A=d._map.layerPointToLatLng(x);m&&Vt(m,x),d._latlng=A,l.latlng=A,l.oldLatLng=this._oldLatLng,d.fire("move",l).fire("drag",l)},_onDragEnd:function(l){O(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",l)}}),eu=nn.extend({options:{icon:new Yo,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(l,d){v(this,d),this._latlng=se(l)},onAdd:function(l){this._zoomAnimated=this._zoomAnimated&&l.options.markerZoomAnimation,this._zoomAnimated&&l.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(l){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&l.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(l){var d=this._latlng;return this._latlng=se(l),this.update(),this.fire("move",{oldLatLng:d,latlng:this._latlng})},setZIndexOffset:function(l){return this.options.zIndexOffset=l,this.update()},getIcon:function(){return this.options.icon},setIcon:function(l){return this.options.icon=l,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var l=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(l)}return this},_initIcon:function(){var l=this.options,d="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),m=l.icon.createIcon(this._icon),x=!1;m!==this._icon&&(this._icon&&this._removeIcon(),x=!0,l.title&&(m.title=l.title),m.tagName==="IMG"&&(m.alt=l.alt||"")),je(m,d),l.keyboard&&(m.tabIndex="0",m.setAttribute("role","button")),this._icon=m,l.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Fe(m,"focus",this._panOnFocus,this);var A=l.icon.createShadow(this._shadow),D=!1;A!==this._shadow&&(this._removeShadow(),D=!0),A&&(je(A,d),A.alt=""),this._shadow=A,l.opacity<1&&this._updateOpacity(),x&&this.getPane().appendChild(this._icon),this._initInteraction(),A&&D&&this.getPane(l.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&pt(this._icon,"focus",this._panOnFocus,this),At(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&At(this._shadow),this._shadow=null},_setPos:function(l){this._icon&&Vt(this._icon,l),this._shadow&&Vt(this._shadow,l),this._zIndex=l.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(l){this._icon&&(this._icon.style.zIndex=this._zIndex+l)},_animateZoom:function(l){var d=this._map._latLngToNewLayerPoint(this._latlng,l.zoom,l.center).round();this._setPos(d)},_initInteraction:function(){if(this.options.interactive&&(je(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Nv)){var l=this.options.draggable;this.dragging&&(l=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Nv(this),l&&this.dragging.enable()}},setOpacity:function(l){return this.options.opacity=l,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var l=this.options.opacity;this._icon&&Hr(this._icon,l),this._shadow&&Hr(this._shadow,l)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var l=this._map;if(l){var d=this.options.icon.options,m=d.iconSize?z(d.iconSize):z(0,0),x=d.iconAnchor?z(d.iconAnchor):z(0,0);l.panInside(this._latlng,{paddingTopLeft:x,paddingBottomRight:m.subtract(x)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function v3(l,d){return new eu(l,d)}var ui=nn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(l){this._renderer=l.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(l){return v(this,l),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&l&&Object.prototype.hasOwnProperty.call(l,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),tu=ui.extend({options:{fill:!0,radius:10},initialize:function(l,d){v(this,d),this._latlng=se(l),this._radius=this.options.radius},setLatLng:function(l){var d=this._latlng;return this._latlng=se(l),this.redraw(),this.fire("move",{oldLatLng:d,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(l){return this.options.radius=this._radius=l,this.redraw()},getRadius:function(){return this._radius},setStyle:function(l){var d=l&&l.radius||this._radius;return ui.prototype.setStyle.call(this,l),this.setRadius(d),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var l=this._radius,d=this._radiusY||l,m=this._clickTolerance(),x=[l+m,d+m];this._pxBounds=new Y(this._point.subtract(x),this._point.add(x))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(l){return l.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function y3(l,d){return new tu(l,d)}var Eh=tu.extend({initialize:function(l,d,m){if(typeof d=="number"&&(d=i({},m,{radius:d})),v(this,d),this._latlng=se(l),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(l){return this._mRadius=l,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var l=[this._radius,this._radiusY||this._radius];return new ne(this._map.layerPointToLatLng(this._point.subtract(l)),this._map.layerPointToLatLng(this._point.add(l)))},setStyle:ui.prototype.setStyle,_project:function(){var l=this._latlng.lng,d=this._latlng.lat,m=this._map,x=m.options.crs;if(x.distance===ce.distance){var A=Math.PI/180,D=this._mRadius/ce.R/A,X=m.project([d+D,l]),ee=m.project([d-D,l]),ae=X.add(ee).divideBy(2),he=m.unproject(ae).lat,we=Math.acos((Math.cos(D*A)-Math.sin(d*A)*Math.sin(he*A))/(Math.cos(d*A)*Math.cos(he*A)))/A;(isNaN(we)||we===0)&&(we=D/Math.cos(Math.PI/180*d)),this._point=ae.subtract(m.getPixelOrigin()),this._radius=isNaN(we)?0:ae.x-m.project([he,l-we]).x,this._radiusY=ae.y-X.y}else{var Re=x.unproject(x.project(this._latlng).subtract([this._mRadius,0]));this._point=m.latLngToLayerPoint(this._latlng),this._radius=this._point.x-m.latLngToLayerPoint(Re).x}this._updateBounds()}});function b3(l,d,m){return new Eh(l,d,m)}var Wn=ui.extend({options:{smoothFactor:1,noClip:!1},initialize:function(l,d){v(this,d),this._setLatLngs(l)},getLatLngs:function(){return this._latlngs},setLatLngs:function(l){return this._setLatLngs(l),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(l){for(var d=1/0,m=null,x=Uo,A,D,X=0,ee=this._parts.length;X<ee;X++)for(var ae=this._parts[X],he=1,we=ae.length;he<we;he++){A=ae[he-1],D=ae[he];var Re=x(l,A,D,!0);Re<d&&(d=Re,m=x(l,A,D))}return m&&(m.distance=Math.sqrt(d)),m},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return kv(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(l,d){return d=d||this._defaultShape(),l=se(l),d.push(l),this._bounds.extend(l),this.redraw()},_setLatLngs:function(l){this._bounds=new ne,this._latlngs=this._convertLatLngs(l)},_defaultShape:function(){return jr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(l){for(var d=[],m=jr(l),x=0,A=l.length;x<A;x++)m?(d[x]=se(l[x]),this._bounds.extend(d[x])):d[x]=this._convertLatLngs(l[x]);return d},_project:function(){var l=new Y;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,l),this._bounds.isValid()&&l.isValid()&&(this._rawPxBounds=l,this._updateBounds())},_updateBounds:function(){var l=this._clickTolerance(),d=new G(l,l);this._rawPxBounds&&(this._pxBounds=new Y([this._rawPxBounds.min.subtract(d),this._rawPxBounds.max.add(d)]))},_projectLatlngs:function(l,d,m){var x=l[0]instanceof oe,A=l.length,D,X;if(x){for(X=[],D=0;D<A;D++)X[D]=this._map.latLngToLayerPoint(l[D]),m.extend(X[D]);d.push(X)}else for(D=0;D<A;D++)this._projectLatlngs(l[D],d,m)},_clipPoints:function(){var l=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(l))){if(this.options.noClip){this._parts=this._rings;return}var d=this._parts,m,x,A,D,X,ee,ae;for(m=0,A=0,D=this._rings.length;m<D;m++)for(ae=this._rings[m],x=0,X=ae.length;x<X-1;x++)ee=Rv(ae[x],ae[x+1],l,x,!0),ee&&(d[A]=d[A]||[],d[A].push(ee[0]),(ee[1]!==ae[x+1]||x===X-2)&&(d[A].push(ee[1]),A++))}},_simplifyPoints:function(){for(var l=this._parts,d=this.options.smoothFactor,m=0,x=l.length;m<x;m++)l[m]=Ev(l[m],d)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(l,d){var m,x,A,D,X,ee,ae=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(l))return!1;for(m=0,D=this._parts.length;m<D;m++)for(ee=this._parts[m],x=0,X=ee.length,A=X-1;x<X;A=x++)if(!(!d&&x===0)&&Pv(l,ee[A],ee[x])<=ae)return!0;return!1}});function _3(l,d){return new Wn(l,d)}Wn._flat=Ov;var wa=Wn.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Sv(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(l){var d=Wn.prototype._convertLatLngs.call(this,l),m=d.length;return m>=2&&d[0]instanceof oe&&d[0].equals(d[m-1])&&d.pop(),d},_setLatLngs:function(l){Wn.prototype._setLatLngs.call(this,l),jr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return jr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var l=this._renderer._bounds,d=this.options.weight,m=new G(d,d);if(l=new Y(l.min.subtract(m),l.max.add(m)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(l))){if(this.options.noClip){this._parts=this._rings;return}for(var x=0,A=this._rings.length,D;x<A;x++)D=Mv(this._rings[x],l,!0),D.length&&this._parts.push(D)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(l){var d=!1,m,x,A,D,X,ee,ae,he;if(!this._pxBounds||!this._pxBounds.contains(l))return!1;for(D=0,ae=this._parts.length;D<ae;D++)for(m=this._parts[D],X=0,he=m.length,ee=he-1;X<he;ee=X++)x=m[X],A=m[ee],x.y>l.y!=A.y>l.y&&l.x<(A.x-x.x)*(l.y-x.y)/(A.y-x.y)+x.x&&(d=!d);return d||Wn.prototype._containsPoint.call(this,l,!0)}});function w3(l,d){return new wa(l,d)}var Hn=Bn.extend({initialize:function(l,d){v(this,d),this._layers={},l&&this.addData(l)},addData:function(l){var d=E(l)?l:l.features,m,x,A;if(d){for(m=0,x=d.length;m<x;m++)A=d[m],(A.geometries||A.geometry||A.features||A.coordinates)&&this.addData(A);return this}var D=this.options;if(D.filter&&!D.filter(l))return this;var X=ru(l,D);return X?(X.feature=au(l),X.defaultOptions=X.options,this.resetStyle(X),D.onEachFeature&&D.onEachFeature(l,X),this.addLayer(X)):this},resetStyle:function(l){return l===void 0?this.eachLayer(this.resetStyle,this):(l.options=i({},l.defaultOptions),this._setLayerStyle(l,this.options.style),this)},setStyle:function(l){return this.eachLayer(function(d){this._setLayerStyle(d,l)},this)},_setLayerStyle:function(l,d){l.setStyle&&(typeof d=="function"&&(d=d(l.feature)),l.setStyle(d))}});function ru(l,d){var m=l.type==="Feature"?l.geometry:l,x=m?m.coordinates:null,A=[],D=d&&d.pointToLayer,X=d&&d.coordsToLatLng||Ph,ee,ae,he,we;if(!x&&!m)return null;switch(m.type){case"Point":return ee=X(x),Lv(D,l,ee,d);case"MultiPoint":for(he=0,we=x.length;he<we;he++)ee=X(x[he]),A.push(Lv(D,l,ee,d));return new Bn(A);case"LineString":case"MultiLineString":return ae=nu(x,m.type==="LineString"?0:1,X),new Wn(ae,d);case"Polygon":case"MultiPolygon":return ae=nu(x,m.type==="Polygon"?1:2,X),new wa(ae,d);case"GeometryCollection":for(he=0,we=m.geometries.length;he<we;he++){var Re=ru({geometry:m.geometries[he],type:"Feature",properties:l.properties},d);Re&&A.push(Re)}return new Bn(A);case"FeatureCollection":for(he=0,we=m.features.length;he<we;he++){var Ve=ru(m.features[he],d);Ve&&A.push(Ve)}return new Bn(A);default:throw new Error("Invalid GeoJSON object.")}}function Lv(l,d,m,x){return l?l(d,m):new eu(m,x&&x.markersInheritOptions&&x)}function Ph(l){return new oe(l[1],l[0],l[2])}function nu(l,d,m){for(var x=[],A=0,D=l.length,X;A<D;A++)X=d?nu(l[A],d-1,m):(m||Ph)(l[A]),x.push(X);return x}function Ah(l,d){return l=se(l),l.alt!==void 0?[p(l.lng,d),p(l.lat,d),p(l.alt,d)]:[p(l.lng,d),p(l.lat,d)]}function iu(l,d,m,x){for(var A=[],D=0,X=l.length;D<X;D++)A.push(d?iu(l[D],jr(l[D])?0:d-1,m,x):Ah(l[D],x));return!d&&m&&A.length>0&&A.push(A[0].slice()),A}function xa(l,d){return l.feature?i({},l.feature,{geometry:d}):au(d)}function au(l){return l.type==="Feature"||l.type==="FeatureCollection"?l:{type:"Feature",properties:{},geometry:l}}var Rh={toGeoJSON:function(l){return xa(this,{type:"Point",coordinates:Ah(this.getLatLng(),l)})}};eu.include(Rh),Eh.include(Rh),tu.include(Rh),Wn.include({toGeoJSON:function(l){var d=!jr(this._latlngs),m=iu(this._latlngs,d?1:0,!1,l);return xa(this,{type:(d?"Multi":"")+"LineString",coordinates:m})}}),wa.include({toGeoJSON:function(l){var d=!jr(this._latlngs),m=d&&!jr(this._latlngs[0]),x=iu(this._latlngs,m?2:d?1:0,!0,l);return d||(x=[x]),xa(this,{type:(m?"Multi":"")+"Polygon",coordinates:x})}}),ba.include({toMultiPoint:function(l){var d=[];return this.eachLayer(function(m){d.push(m.toGeoJSON(l).geometry.coordinates)}),xa(this,{type:"MultiPoint",coordinates:d})},toGeoJSON:function(l){var d=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(d==="MultiPoint")return this.toMultiPoint(l);var m=d==="GeometryCollection",x=[];return this.eachLayer(function(A){if(A.toGeoJSON){var D=A.toGeoJSON(l);if(m)x.push(D.geometry);else{var X=au(D);X.type==="FeatureCollection"?x.push.apply(x,X.features):x.push(X)}}}),m?xa(this,{geometries:x,type:"GeometryCollection"}):{type:"FeatureCollection",features:x}}});function Iv(l,d){return new Hn(l,d)}var x3=Iv,ou=nn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(l,d,m){this._url=l,this._bounds=re(d),v(this,m)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(je(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){At(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(l){return this.options.opacity=l,this._image&&this._updateOpacity(),this},setStyle:function(l){return l.opacity&&this.setOpacity(l.opacity),this},bringToFront:function(){return this._map&&va(this._image),this},bringToBack:function(){return this._map&&ya(this._image),this},setUrl:function(l){return this._url=l,this._image&&(this._image.src=l),this},setBounds:function(l){return this._bounds=re(l),this._map&&this._reset(),this},getEvents:function(){var l={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(l.zoomanim=this._animateZoom),l},setZIndex:function(l){return this.options.zIndex=l,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var l=this._url.tagName==="IMG",d=this._image=l?this._url:Xe("img");if(je(d,"leaflet-image-layer"),this._zoomAnimated&&je(d,"leaflet-zoom-animated"),this.options.className&&je(d,this.options.className),d.onselectstart=f,d.onmousemove=f,d.onload=o(this.fire,this,"load"),d.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(d.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),l){this._url=d.src;return}d.src=this._url,d.alt=this.options.alt},_animateZoom:function(l){var d=this._map.getZoomScale(l.zoom),m=this._map._latLngBoundsToNewLayerBounds(this._bounds,l.zoom,l.center).min;ki(this._image,m,d)},_reset:function(){var l=this._image,d=new Y(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),m=d.getSize();Vt(l,d.min),l.style.width=m.x+"px",l.style.height=m.y+"px"},_updateOpacity:function(){Hr(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var l=this.options.errorOverlayUrl;l&&this._url!==l&&(this._url=l,this._image.src=l)},getCenter:function(){return this._bounds.getCenter()}}),C3=function(l,d,m){return new ou(l,d,m)},$v=ou.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var l=this._url.tagName==="VIDEO",d=this._image=l?this._url:Xe("video");if(je(d,"leaflet-image-layer"),this._zoomAnimated&&je(d,"leaflet-zoom-animated"),this.options.className&&je(d,this.options.className),d.onselectstart=f,d.onmousemove=f,d.onloadeddata=o(this.fire,this,"load"),l){for(var m=d.getElementsByTagName("source"),x=[],A=0;A<m.length;A++)x.push(m[A].src);this._url=m.length>0?x:[d.src];return}E(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(d.style,"objectFit")&&(d.style.objectFit="fill"),d.autoplay=!!this.options.autoplay,d.loop=!!this.options.loop,d.muted=!!this.options.muted,d.playsInline=!!this.options.playsInline;for(var D=0;D<this._url.length;D++){var X=Xe("source");X.src=this._url[D],d.appendChild(X)}}});function T3(l,d,m){return new $v(l,d,m)}var Fv=ou.extend({_initImage:function(){var l=this._image=this._url;je(l,"leaflet-image-layer"),this._zoomAnimated&&je(l,"leaflet-zoom-animated"),this.options.className&&je(l,this.options.className),l.onselectstart=f,l.onmousemove=f}});function M3(l,d,m){return new Fv(l,d,m)}var mn=nn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(l,d){l&&(l instanceof oe||E(l))?(this._latlng=se(l),v(this,d)):(v(this,l),this._source=d),this.options.content&&(this._content=this.options.content)},openOn:function(l){return l=arguments.length?l:this._source._map,l.hasLayer(this)||l.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(l){return this._map?this.close():(arguments.length?this._source=l:l=this._source,this._prepareOpen(),this.openOn(l._map)),this},onAdd:function(l){this._zoomAnimated=l._zoomAnimated,this._container||this._initLayout(),l._fadeAnimated&&Hr(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),l._fadeAnimated&&Hr(this._container,1),this.bringToFront(),this.options.interactive&&(je(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(l){l._fadeAnimated?(Hr(this._container,0),this._removeTimeout=setTimeout(o(At,void 0,this._container),200)):At(this._container),this.options.interactive&&(Ft(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(l){return this._latlng=se(l),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(l){return this._content=l,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var l={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(l.zoomanim=this._animateZoom),l},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&va(this._container),this},bringToBack:function(){return this._map&&ya(this._container),this},_prepareOpen:function(l){var d=this._source;if(!d._map)return!1;if(d instanceof Bn){d=null;var m=this._source._layers;for(var x in m)if(m[x]._map){d=m[x];break}if(!d)return!1;this._source=d}if(!l)if(d.getCenter)l=d.getCenter();else if(d.getLatLng)l=d.getLatLng();else if(d.getBounds)l=d.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(l),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var l=this._contentNode,d=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof d=="string")l.innerHTML=d;else{for(;l.hasChildNodes();)l.removeChild(l.firstChild);l.appendChild(d)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var l=this._map.latLngToLayerPoint(this._latlng),d=z(this.options.offset),m=this._getAnchor();this._zoomAnimated?Vt(this._container,l.add(m)):d=d.add(l).add(m);var x=this._containerBottom=-d.y,A=this._containerLeft=-Math.round(this._containerWidth/2)+d.x;this._container.style.bottom=x+"px",this._container.style.left=A+"px"}},_getAnchor:function(){return[0,0]}});qe.include({_initOverlay:function(l,d,m,x){var A=d;return A instanceof l||(A=new l(x).setContent(d)),m&&A.setLatLng(m),A}}),nn.include({_initOverlay:function(l,d,m,x){var A=m;return A instanceof l?(v(A,x),A._source=this):(A=d&&!x?d:new l(x,this),A.setContent(m)),A}});var su=mn.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(l){return l=arguments.length?l:this._source._map,!l.hasLayer(this)&&l._popup&&l._popup.options.autoClose&&l.removeLayer(l._popup),l._popup=this,mn.prototype.openOn.call(this,l)},onAdd:function(l){mn.prototype.onAdd.call(this,l),l.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ui||this._source.on("preclick",Ni))},onRemove:function(l){mn.prototype.onRemove.call(this,l),l.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ui||this._source.off("preclick",Ni))},getEvents:function(){var l=mn.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(l.preclick=this.close),this.options.keepInView&&(l.moveend=this._adjustPan),l},_initLayout:function(){var l="leaflet-popup",d=this._container=Xe("div",l+" "+(this.options.className||"")+" leaflet-zoom-animated"),m=this._wrapper=Xe("div",l+"-content-wrapper",d);if(this._contentNode=Xe("div",l+"-content",m),Vo(d),bh(this._contentNode),Fe(d,"contextmenu",Ni),this._tipContainer=Xe("div",l+"-tip-container",d),this._tip=Xe("div",l+"-tip",this._tipContainer),this.options.closeButton){var x=this._closeButton=Xe("a",l+"-close-button",d);x.setAttribute("role","button"),x.setAttribute("aria-label","Close popup"),x.href="#close",x.innerHTML='<span aria-hidden="true">&#215;</span>',Fe(x,"click",function(A){nr(A),this.close()},this)}},_updateLayout:function(){var l=this._contentNode,d=l.style;d.width="",d.whiteSpace="nowrap";var m=l.offsetWidth;m=Math.min(m,this.options.maxWidth),m=Math.max(m,this.options.minWidth),d.width=m+1+"px",d.whiteSpace="",d.height="";var x=l.offsetHeight,A=this.options.maxHeight,D="leaflet-popup-scrolled";A&&x>A?(d.height=A+"px",je(l,D)):Ft(l,D),this._containerWidth=this._container.offsetWidth},_animateZoom:function(l){var d=this._map._latLngToNewLayerPoint(this._latlng,l.zoom,l.center),m=this._getAnchor();Vt(this._container,d.add(m))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var l=this._map,d=parseInt(Bo(this._container,"marginBottom"),10)||0,m=this._container.offsetHeight+d,x=this._containerWidth,A=new G(this._containerLeft,-m-this._containerBottom);A._add(Di(this._container));var D=l.layerPointToContainerPoint(A),X=z(this.options.autoPanPadding),ee=z(this.options.autoPanPaddingTopLeft||X),ae=z(this.options.autoPanPaddingBottomRight||X),he=l.getSize(),we=0,Re=0;D.x+x+ae.x>he.x&&(we=D.x+x-he.x+ae.x),D.x-we-ee.x<0&&(we=D.x-ee.x),D.y+m+ae.y>he.y&&(Re=D.y+m-he.y+ae.y),D.y-Re-ee.y<0&&(Re=D.y-ee.y),(we||Re)&&(this.options.keepInView&&(this._autopanning=!0),l.fire("autopanstart").panBy([we,Re]))}},_getAnchor:function(){return z(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),S3=function(l,d){return new su(l,d)};qe.mergeOptions({closePopupOnClick:!0}),qe.include({openPopup:function(l,d,m){return this._initOverlay(su,l,d,m).openOn(this),this},closePopup:function(l){return l=arguments.length?l:this._popup,l&&l.close(),this}}),nn.include({bindPopup:function(l,d){return this._popup=this._initOverlay(su,this._popup,l,d),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(l){return this._popup&&(this instanceof Bn||(this._popup._source=this),this._popup._prepareOpen(l||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(l){return this._popup&&this._popup.setContent(l),this},getPopup:function(){return this._popup},_openPopup:function(l){if(!(!this._popup||!this._map)){Li(l);var d=l.layer||l.target;if(this._popup._source===d&&!(d instanceof ui)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(l.latlng);return}this._popup._source=d,this.openPopup(l.latlng)}},_movePopup:function(l){this._popup.setLatLng(l.latlng)},_onKeyPress:function(l){l.originalEvent.keyCode===13&&this._openPopup(l)}});var lu=mn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(l){mn.prototype.onAdd.call(this,l),this.setOpacity(this.options.opacity),l.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(l){mn.prototype.onRemove.call(this,l),l.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var l=mn.prototype.getEvents.call(this);return this.options.permanent||(l.preclick=this.close),l},_initLayout:function(){var l="leaflet-tooltip",d=l+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Xe("div",d),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+u(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(l){var d,m,x=this._map,A=this._container,D=x.latLngToContainerPoint(x.getCenter()),X=x.layerPointToContainerPoint(l),ee=this.options.direction,ae=A.offsetWidth,he=A.offsetHeight,we=z(this.options.offset),Re=this._getAnchor();ee==="top"?(d=ae/2,m=he):ee==="bottom"?(d=ae/2,m=0):ee==="center"?(d=ae/2,m=he/2):ee==="right"?(d=0,m=he/2):ee==="left"?(d=ae,m=he/2):X.x<D.x?(ee="right",d=0,m=he/2):(ee="left",d=ae+(we.x+Re.x)*2,m=he/2),l=l.subtract(z(d,m,!0)).add(we).add(Re),Ft(A,"leaflet-tooltip-right"),Ft(A,"leaflet-tooltip-left"),Ft(A,"leaflet-tooltip-top"),Ft(A,"leaflet-tooltip-bottom"),je(A,"leaflet-tooltip-"+ee),Vt(A,l)},_updatePosition:function(){var l=this._map.latLngToLayerPoint(this._latlng);this._setPosition(l)},setOpacity:function(l){this.options.opacity=l,this._container&&Hr(this._container,l)},_animateZoom:function(l){var d=this._map._latLngToNewLayerPoint(this._latlng,l.zoom,l.center);this._setPosition(d)},_getAnchor:function(){return z(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),E3=function(l,d){return new lu(l,d)};qe.include({openTooltip:function(l,d,m){return this._initOverlay(lu,l,d,m).openOn(this),this},closeTooltip:function(l){return l.close(),this}}),nn.include({bindTooltip:function(l,d){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(lu,this._tooltip,l,d),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(l){if(!(!l&&this._tooltipHandlersAdded)){var d=l?"off":"on",m={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?m.add=this._openTooltip:(m.mouseover=this._openTooltip,m.mouseout=this.closeTooltip,m.click=this._openTooltip,this._map?this._addFocusListeners():m.add=this._addFocusListeners),this._tooltip.options.sticky&&(m.mousemove=this._moveTooltip),this[d](m),this._tooltipHandlersAdded=!l}},openTooltip:function(l){return this._tooltip&&(this instanceof Bn||(this._tooltip._source=this),this._tooltip._prepareOpen(l)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(l){return this._tooltip&&this._tooltip.setContent(l),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(l){var d=typeof l.getElement=="function"&&l.getElement();d&&(Fe(d,"focus",function(){this._tooltip._source=l,this.openTooltip()},this),Fe(d,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(l){var d=typeof l.getElement=="function"&&l.getElement();d&&d.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(l){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var d=this;this._map.once("moveend",function(){d._openOnceFlag=!1,d._openTooltip(l)});return}this._tooltip._source=l.layer||l.target,this.openTooltip(this._tooltip.options.sticky?l.latlng:void 0)}},_moveTooltip:function(l){var d=l.latlng,m,x;this._tooltip.options.sticky&&l.originalEvent&&(m=this._map.mouseEventToContainerPoint(l.originalEvent),x=this._map.containerPointToLayerPoint(m),d=this._map.layerPointToLatLng(x)),this._tooltip.setLatLng(d)}});var zv=_a.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(l){var d=l&&l.tagName==="DIV"?l:document.createElement("div"),m=this.options;if(m.html instanceof Element?(ql(d),d.appendChild(m.html)):d.innerHTML=m.html!==!1?m.html:"",m.bgPos){var x=z(m.bgPos);d.style.backgroundPosition=-x.x+"px "+-x.y+"px"}return this._setIconStyles(d,"icon"),d},createShadow:function(){return null}});function P3(l){return new zv(l)}_a.Default=Yo;var qo=nn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Pe.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(l){v(this,l)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(l){l._addZoomLimit(this)},onRemove:function(l){this._removeAllTiles(),At(this._container),l._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(va(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ya(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(l){return this.options.opacity=l,this._updateOpacity(),this},setZIndex:function(l){return this.options.zIndex=l,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var l=this._clampZoom(this._map.getZoom());l!==this._tileZoom&&(this._tileZoom=l,this._updateLevels()),this._update()}return this},getEvents:function(){var l={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=c(this._onMoveEnd,this.options.updateInterval,this)),l.move=this._onMove),this._zoomAnimated&&(l.zoomanim=this._animateZoom),l},createTile:function(){return document.createElement("div")},getTileSize:function(){var l=this.options.tileSize;return l instanceof G?l:new G(l,l)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(l){for(var d=this.getPane().children,m=-l(-1/0,1/0),x=0,A=d.length,D;x<A;x++)D=d[x].style.zIndex,d[x]!==this._container&&D&&(m=l(m,+D));isFinite(m)&&(this.options.zIndex=m+l(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Pe.ielt9){Hr(this._container,this.options.opacity);var l=+new Date,d=!1,m=!1;for(var x in this._tiles){var A=this._tiles[x];if(!(!A.current||!A.loaded)){var D=Math.min(1,(l-A.loaded)/200);Hr(A.el,D),D<1?d=!0:(A.active?m=!0:this._onOpaqueTile(A),A.active=!0)}}m&&!this._noPrune&&this._pruneTiles(),d&&(O(this._fadeFrame),this._fadeFrame=Q(this._updateOpacity,this))}},_onOpaqueTile:f,_initContainer:function(){this._container||(this._container=Xe("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var l=this._tileZoom,d=this.options.maxZoom;if(l!==void 0){for(var m in this._levels)m=Number(m),this._levels[m].el.children.length||m===l?(this._levels[m].el.style.zIndex=d-Math.abs(l-m),this._onUpdateLevel(m)):(At(this._levels[m].el),this._removeTilesAtZoom(m),this._onRemoveLevel(m),delete this._levels[m]);var x=this._levels[l],A=this._map;return x||(x=this._levels[l]={},x.el=Xe("div","leaflet-tile-container leaflet-zoom-animated",this._container),x.el.style.zIndex=d,x.origin=A.project(A.unproject(A.getPixelOrigin()),l).round(),x.zoom=l,this._setZoomTransform(x,A.getCenter(),A.getZoom()),this._onCreateLevel(x)),this._level=x,x}},_onUpdateLevel:f,_onRemoveLevel:f,_onCreateLevel:f,_pruneTiles:function(){if(this._map){var l,d,m=this._map.getZoom();if(m>this.options.maxZoom||m<this.options.minZoom){this._removeAllTiles();return}for(l in this._tiles)d=this._tiles[l],d.retain=d.current;for(l in this._tiles)if(d=this._tiles[l],d.current&&!d.active){var x=d.coords;this._retainParent(x.x,x.y,x.z,x.z-5)||this._retainChildren(x.x,x.y,x.z,x.z+2)}for(l in this._tiles)this._tiles[l].retain||this._removeTile(l)}},_removeTilesAtZoom:function(l){for(var d in this._tiles)this._tiles[d].coords.z===l&&this._removeTile(d)},_removeAllTiles:function(){for(var l in this._tiles)this._removeTile(l)},_invalidateAll:function(){for(var l in this._levels)At(this._levels[l].el),this._onRemoveLevel(Number(l)),delete this._levels[l];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(l,d,m,x){var A=Math.floor(l/2),D=Math.floor(d/2),X=m-1,ee=new G(+A,+D);ee.z=+X;var ae=this._tileCoordsToKey(ee),he=this._tiles[ae];return he&&he.active?(he.retain=!0,!0):(he&&he.loaded&&(he.retain=!0),X>x?this._retainParent(A,D,X,x):!1)},_retainChildren:function(l,d,m,x){for(var A=2*l;A<2*l+2;A++)for(var D=2*d;D<2*d+2;D++){var X=new G(A,D);X.z=m+1;var ee=this._tileCoordsToKey(X),ae=this._tiles[ee];if(ae&&ae.active){ae.retain=!0;continue}else ae&&ae.loaded&&(ae.retain=!0);m+1<x&&this._retainChildren(A,D,m+1,x)}},_resetView:function(l){var d=l&&(l.pinch||l.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),d,d)},_animateZoom:function(l){this._setView(l.center,l.zoom,!0,l.noUpdate)},_clampZoom:function(l){var d=this.options;return d.minNativeZoom!==void 0&&l<d.minNativeZoom?d.minNativeZoom:d.maxNativeZoom!==void 0&&d.maxNativeZoom<l?d.maxNativeZoom:l},_setView:function(l,d,m,x){var A=Math.round(d);this.options.maxZoom!==void 0&&A>this.options.maxZoom||this.options.minZoom!==void 0&&A<this.options.minZoom?A=void 0:A=this._clampZoom(A);var D=this.options.updateWhenZooming&&A!==this._tileZoom;(!x||D)&&(this._tileZoom=A,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),A!==void 0&&this._update(l),m||this._pruneTiles(),this._noPrune=!!m),this._setZoomTransforms(l,d)},_setZoomTransforms:function(l,d){for(var m in this._levels)this._setZoomTransform(this._levels[m],l,d)},_setZoomTransform:function(l,d,m){var x=this._map.getZoomScale(m,l.zoom),A=l.origin.multiplyBy(x).subtract(this._map._getNewPixelOrigin(d,m)).round();Pe.any3d?ki(l.el,A,x):Vt(l.el,A)},_resetGrid:function(){var l=this._map,d=l.options.crs,m=this._tileSize=this.getTileSize(),x=this._tileZoom,A=this._map.getPixelWorldBounds(this._tileZoom);A&&(this._globalTileRange=this._pxBoundsToTileRange(A)),this._wrapX=d.wrapLng&&!this.options.noWrap&&[Math.floor(l.project([0,d.wrapLng[0]],x).x/m.x),Math.ceil(l.project([0,d.wrapLng[1]],x).x/m.y)],this._wrapY=d.wrapLat&&!this.options.noWrap&&[Math.floor(l.project([d.wrapLat[0],0],x).y/m.x),Math.ceil(l.project([d.wrapLat[1],0],x).y/m.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(l){var d=this._map,m=d._animatingZoom?Math.max(d._animateToZoom,d.getZoom()):d.getZoom(),x=d.getZoomScale(m,this._tileZoom),A=d.project(l,this._tileZoom).floor(),D=d.getSize().divideBy(x*2);return new Y(A.subtract(D),A.add(D))},_update:function(l){var d=this._map;if(d){var m=this._clampZoom(d.getZoom());if(l===void 0&&(l=d.getCenter()),this._tileZoom!==void 0){var x=this._getTiledPixelBounds(l),A=this._pxBoundsToTileRange(x),D=A.getCenter(),X=[],ee=this.options.keepBuffer,ae=new Y(A.getBottomLeft().subtract([ee,-ee]),A.getTopRight().add([ee,-ee]));if(!(isFinite(A.min.x)&&isFinite(A.min.y)&&isFinite(A.max.x)&&isFinite(A.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var he in this._tiles){var we=this._tiles[he].coords;(we.z!==this._tileZoom||!ae.contains(new G(we.x,we.y)))&&(this._tiles[he].current=!1)}if(Math.abs(m-this._tileZoom)>1){this._setView(l,m);return}for(var Re=A.min.y;Re<=A.max.y;Re++)for(var Ve=A.min.x;Ve<=A.max.x;Ve++){var ur=new G(Ve,Re);if(ur.z=this._tileZoom,!!this._isValidTile(ur)){var Qt=this._tiles[this._tileCoordsToKey(ur)];Qt?Qt.current=!0:X.push(ur)}}if(X.sort(function(_r,Ta){return _r.distanceTo(D)-Ta.distanceTo(D)}),X.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Vr=document.createDocumentFragment();for(Ve=0;Ve<X.length;Ve++)this._addTile(X[Ve],Vr);this._level.el.appendChild(Vr)}}}},_isValidTile:function(l){var d=this._map.options.crs;if(!d.infinite){var m=this._globalTileRange;if(!d.wrapLng&&(l.x<m.min.x||l.x>m.max.x)||!d.wrapLat&&(l.y<m.min.y||l.y>m.max.y))return!1}if(!this.options.bounds)return!0;var x=this._tileCoordsToBounds(l);return re(this.options.bounds).overlaps(x)},_keyToBounds:function(l){return this._tileCoordsToBounds(this._keyToTileCoords(l))},_tileCoordsToNwSe:function(l){var d=this._map,m=this.getTileSize(),x=l.scaleBy(m),A=x.add(m),D=d.unproject(x,l.z),X=d.unproject(A,l.z);return[D,X]},_tileCoordsToBounds:function(l){var d=this._tileCoordsToNwSe(l),m=new ne(d[0],d[1]);return this.options.noWrap||(m=this._map.wrapLatLngBounds(m)),m},_tileCoordsToKey:function(l){return l.x+":"+l.y+":"+l.z},_keyToTileCoords:function(l){var d=l.split(":"),m=new G(+d[0],+d[1]);return m.z=+d[2],m},_removeTile:function(l){var d=this._tiles[l];d&&(At(d.el),delete this._tiles[l],this.fire("tileunload",{tile:d.el,coords:this._keyToTileCoords(l)}))},_initTile:function(l){je(l,"leaflet-tile");var d=this.getTileSize();l.style.width=d.x+"px",l.style.height=d.y+"px",l.onselectstart=f,l.onmousemove=f,Pe.ielt9&&this.options.opacity<1&&Hr(l,this.options.opacity)},_addTile:function(l,d){var m=this._getTilePos(l),x=this._tileCoordsToKey(l),A=this.createTile(this._wrapCoords(l),o(this._tileReady,this,l));this._initTile(A),this.createTile.length<2&&Q(o(this._tileReady,this,l,null,A)),Vt(A,m),this._tiles[x]={el:A,coords:l,current:!0},d.appendChild(A),this.fire("tileloadstart",{tile:A,coords:l})},_tileReady:function(l,d,m){d&&this.fire("tileerror",{error:d,tile:m,coords:l});var x=this._tileCoordsToKey(l);m=this._tiles[x],m&&(m.loaded=+new Date,this._map._fadeAnimated?(Hr(m.el,0),O(this._fadeFrame),this._fadeFrame=Q(this._updateOpacity,this)):(m.active=!0,this._pruneTiles()),d||(je(m.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:m.el,coords:l})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Pe.ielt9||!this._map._fadeAnimated?Q(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(l){return l.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(l){var d=new G(this._wrapX?h(l.x,this._wrapX):l.x,this._wrapY?h(l.y,this._wrapY):l.y);return d.z=l.z,d},_pxBoundsToTileRange:function(l){var d=this.getTileSize();return new Y(l.min.unscaleBy(d).floor(),l.max.unscaleBy(d).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var l in this._tiles)if(!this._tiles[l].loaded)return!1;return!0}});function A3(l){return new qo(l)}var Ca=qo.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(l,d){this._url=l,d=v(this,d),d.detectRetina&&Pe.retina&&d.maxZoom>0?(d.tileSize=Math.floor(d.tileSize/2),d.zoomReverse?(d.zoomOffset--,d.minZoom=Math.min(d.maxZoom,d.minZoom+1)):(d.zoomOffset++,d.maxZoom=Math.max(d.minZoom,d.maxZoom-1)),d.minZoom=Math.max(0,d.minZoom)):d.zoomReverse?d.minZoom=Math.min(d.maxZoom,d.minZoom):d.maxZoom=Math.max(d.minZoom,d.maxZoom),typeof d.subdomains=="string"&&(d.subdomains=d.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(l,d){return this._url===l&&d===void 0&&(d=!0),this._url=l,d||this.redraw(),this},createTile:function(l,d){var m=document.createElement("img");return Fe(m,"load",o(this._tileOnLoad,this,d,m)),Fe(m,"error",o(this._tileOnError,this,d,m)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(m.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(m.referrerPolicy=this.options.referrerPolicy),m.alt="",m.src=this.getTileUrl(l),m},getTileUrl:function(l){var d={r:Pe.retina?"@2x":"",s:this._getSubdomain(l),x:l.x,y:l.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var m=this._globalTileRange.max.y-l.y;this.options.tms&&(d.y=m),d["-y"]=m}return M(this._url,i(d,this.options))},_tileOnLoad:function(l,d){Pe.ielt9?setTimeout(o(l,this,null,d),0):l(null,d)},_tileOnError:function(l,d,m){var x=this.options.errorTileUrl;x&&d.getAttribute("src")!==x&&(d.src=x),l(m,d)},_onTileRemove:function(l){l.tile.onload=null},_getZoomForUrl:function(){var l=this._tileZoom,d=this.options.maxZoom,m=this.options.zoomReverse,x=this.options.zoomOffset;return m&&(l=d-l),l+x},_getSubdomain:function(l){var d=Math.abs(l.x+l.y)%this.options.subdomains.length;return this.options.subdomains[d]},_abortLoading:function(){var l,d;for(l in this._tiles)if(this._tiles[l].coords.z!==this._tileZoom&&(d=this._tiles[l].el,d.onload=f,d.onerror=f,!d.complete)){d.src=P;var m=this._tiles[l].coords;At(d),delete this._tiles[l],this.fire("tileabort",{tile:d,coords:m})}},_removeTile:function(l){var d=this._tiles[l];if(d)return d.el.setAttribute("src",P),qo.prototype._removeTile.call(this,l)},_tileReady:function(l,d,m){if(!(!this._map||m&&m.getAttribute("src")===P))return qo.prototype._tileReady.call(this,l,d,m)}});function Bv(l,d){return new Ca(l,d)}var Wv=Ca.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(l,d){this._url=l;var m=i({},this.defaultWmsParams);for(var x in d)x in this.options||(m[x]=d[x]);d=v(this,d);var A=d.detectRetina&&Pe.retina?2:1,D=this.getTileSize();m.width=D.x*A,m.height=D.y*A,this.wmsParams=m},onAdd:function(l){this._crs=this.options.crs||l.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var d=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[d]=this._crs.code,Ca.prototype.onAdd.call(this,l)},getTileUrl:function(l){var d=this._tileCoordsToNwSe(l),m=this._crs,x=ie(m.project(d[0]),m.project(d[1])),A=x.min,D=x.max,X=(this._wmsVersion>=1.3&&this._crs===Dv?[A.y,A.x,D.y,D.x]:[A.x,A.y,D.x,D.y]).join(","),ee=Ca.prototype.getTileUrl.call(this,l);return ee+w(this.wmsParams,ee,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+X},setParams:function(l,d){return i(this.wmsParams,l),d||this.redraw(),this}});function R3(l,d){return new Wv(l,d)}Ca.WMS=Wv,Bv.wms=R3;var jn=nn.extend({options:{padding:.1},initialize:function(l){v(this,l),u(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),je(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var l={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(l.zoomanim=this._onAnimZoom),l},_onAnimZoom:function(l){this._updateTransform(l.center,l.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(l,d){var m=this._map.getZoomScale(d,this._zoom),x=this._map.getSize().multiplyBy(.5+this.options.padding),A=this._map.project(this._center,d),D=x.multiplyBy(-m).add(A).subtract(this._map._getNewPixelOrigin(l,d));Pe.any3d?ki(this._container,D,m):Vt(this._container,D)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var l in this._layers)this._layers[l]._reset()},_onZoomEnd:function(){for(var l in this._layers)this._layers[l]._project()},_updatePaths:function(){for(var l in this._layers)this._layers[l]._update()},_update:function(){var l=this.options.padding,d=this._map.getSize(),m=this._map.containerPointToLayerPoint(d.multiplyBy(-l)).round();this._bounds=new Y(m,m.add(d.multiplyBy(1+l*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Hv=jn.extend({options:{tolerance:0},getEvents:function(){var l=jn.prototype.getEvents.call(this);return l.viewprereset=this._onViewPreReset,l},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){jn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var l=this._container=document.createElement("canvas");Fe(l,"mousemove",this._onMouseMove,this),Fe(l,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Fe(l,"mouseout",this._handleMouseOut,this),l._leaflet_disable_events=!0,this._ctx=l.getContext("2d")},_destroyContainer:function(){O(this._redrawRequest),delete this._ctx,At(this._container),pt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var l;this._redrawBounds=null;for(var d in this._layers)l=this._layers[d],l._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){jn.prototype._update.call(this);var l=this._bounds,d=this._container,m=l.getSize(),x=Pe.retina?2:1;Vt(d,l.min),d.width=x*m.x,d.height=x*m.y,d.style.width=m.x+"px",d.style.height=m.y+"px",Pe.retina&&this._ctx.scale(2,2),this._ctx.translate(-l.min.x,-l.min.y),this.fire("update")}},_reset:function(){jn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(l){this._updateDashArray(l),this._layers[u(l)]=l;var d=l._order={layer:l,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=d),this._drawLast=d,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(l){this._requestRedraw(l)},_removePath:function(l){var d=l._order,m=d.next,x=d.prev;m?m.prev=x:this._drawLast=x,x?x.next=m:this._drawFirst=m,delete l._order,delete this._layers[u(l)],this._requestRedraw(l)},_updatePath:function(l){this._extendRedrawBounds(l),l._project(),l._update(),this._requestRedraw(l)},_updateStyle:function(l){this._updateDashArray(l),this._requestRedraw(l)},_updateDashArray:function(l){if(typeof l.options.dashArray=="string"){var d=l.options.dashArray.split(/[, ]+/),m=[],x,A;for(A=0;A<d.length;A++){if(x=Number(d[A]),isNaN(x))return;m.push(x)}l.options._dashArray=m}else l.options._dashArray=l.options.dashArray},_requestRedraw:function(l){this._map&&(this._extendRedrawBounds(l),this._redrawRequest=this._redrawRequest||Q(this._redraw,this))},_extendRedrawBounds:function(l){if(l._pxBounds){var d=(l.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new Y,this._redrawBounds.extend(l._pxBounds.min.subtract([d,d])),this._redrawBounds.extend(l._pxBounds.max.add([d,d]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var l=this._redrawBounds;if(l){var d=l.getSize();this._ctx.clearRect(l.min.x,l.min.y,d.x,d.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var l,d=this._redrawBounds;if(this._ctx.save(),d){var m=d.getSize();this._ctx.beginPath(),this._ctx.rect(d.min.x,d.min.y,m.x,m.y),this._ctx.clip()}this._drawing=!0;for(var x=this._drawFirst;x;x=x.next)l=x.layer,(!d||l._pxBounds&&l._pxBounds.intersects(d))&&l._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(l,d){if(this._drawing){var m,x,A,D,X=l._parts,ee=X.length,ae=this._ctx;if(ee){for(ae.beginPath(),m=0;m<ee;m++){for(x=0,A=X[m].length;x<A;x++)D=X[m][x],ae[x?"lineTo":"moveTo"](D.x,D.y);d&&ae.closePath()}this._fillStroke(ae,l)}}},_updateCircle:function(l){if(!(!this._drawing||l._empty())){var d=l._point,m=this._ctx,x=Math.max(Math.round(l._radius),1),A=(Math.max(Math.round(l._radiusY),1)||x)/x;A!==1&&(m.save(),m.scale(1,A)),m.beginPath(),m.arc(d.x,d.y/A,x,0,Math.PI*2,!1),A!==1&&m.restore(),this._fillStroke(m,l)}},_fillStroke:function(l,d){var m=d.options;m.fill&&(l.globalAlpha=m.fillOpacity,l.fillStyle=m.fillColor||m.color,l.fill(m.fillRule||"evenodd")),m.stroke&&m.weight!==0&&(l.setLineDash&&l.setLineDash(d.options&&d.options._dashArray||[]),l.globalAlpha=m.opacity,l.lineWidth=m.weight,l.strokeStyle=m.color,l.lineCap=m.lineCap,l.lineJoin=m.lineJoin,l.stroke())},_onClick:function(l){for(var d=this._map.mouseEventToLayerPoint(l),m,x,A=this._drawFirst;A;A=A.next)m=A.layer,m.options.interactive&&m._containsPoint(d)&&(!(l.type==="click"||l.type==="preclick")||!this._map._draggableMoved(m))&&(x=m);this._fireEvent(x?[x]:!1,l)},_onMouseMove:function(l){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var d=this._map.mouseEventToLayerPoint(l);this._handleMouseHover(l,d)}},_handleMouseOut:function(l){var d=this._hoveredLayer;d&&(Ft(this._container,"leaflet-interactive"),this._fireEvent([d],l,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(l,d){if(!this._mouseHoverThrottled){for(var m,x,A=this._drawFirst;A;A=A.next)m=A.layer,m.options.interactive&&m._containsPoint(d)&&(x=m);x!==this._hoveredLayer&&(this._handleMouseOut(l),x&&(je(this._container,"leaflet-interactive"),this._fireEvent([x],l,"mouseover"),this._hoveredLayer=x)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,l),this._mouseHoverThrottled=!0,setTimeout(o(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(l,d,m){this._map._fireDOMEvent(d,m||d.type,l)},_bringToFront:function(l){var d=l._order;if(d){var m=d.next,x=d.prev;if(m)m.prev=x;else return;x?x.next=m:m&&(this._drawFirst=m),d.prev=this._drawLast,this._drawLast.next=d,d.next=null,this._drawLast=d,this._requestRedraw(l)}},_bringToBack:function(l){var d=l._order;if(d){var m=d.next,x=d.prev;if(x)x.next=m;else return;m?m.prev=x:x&&(this._drawLast=x),d.prev=null,d.next=this._drawFirst,this._drawFirst.prev=d,this._drawFirst=d,this._requestRedraw(l)}}});function jv(l){return Pe.canvas?new Hv(l):null}var Xo=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(l){return document.createElement("<lvml:"+l+' class="lvml">')}}catch(l){}return function(l){return document.createElement("<"+l+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),O3={_initContainer:function(){this._container=Xe("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(jn.prototype._update.call(this),this.fire("update"))},_initPath:function(l){var d=l._container=Xo("shape");je(d,"leaflet-vml-shape "+(this.options.className||"")),d.coordsize="1 1",l._path=Xo("path"),d.appendChild(l._path),this._updateStyle(l),this._layers[u(l)]=l},_addPath:function(l){var d=l._container;this._container.appendChild(d),l.options.interactive&&l.addInteractiveTarget(d)},_removePath:function(l){var d=l._container;At(d),l.removeInteractiveTarget(d),delete this._layers[u(l)]},_updateStyle:function(l){var d=l._stroke,m=l._fill,x=l.options,A=l._container;A.stroked=!!x.stroke,A.filled=!!x.fill,x.stroke?(d||(d=l._stroke=Xo("stroke")),A.appendChild(d),d.weight=x.weight+"px",d.color=x.color,d.opacity=x.opacity,x.dashArray?d.dashStyle=E(x.dashArray)?x.dashArray.join(" "):x.dashArray.replace(/( *, *)/g," "):d.dashStyle="",d.endcap=x.lineCap.replace("butt","flat"),d.joinstyle=x.lineJoin):d&&(A.removeChild(d),l._stroke=null),x.fill?(m||(m=l._fill=Xo("fill")),A.appendChild(m),m.color=x.fillColor||x.color,m.opacity=x.fillOpacity):m&&(A.removeChild(m),l._fill=null)},_updateCircle:function(l){var d=l._point.round(),m=Math.round(l._radius),x=Math.round(l._radiusY||m);this._setPath(l,l._empty()?"M0 0":"AL "+d.x+","+d.y+" "+m+","+x+" 0,"+65535*360)},_setPath:function(l,d){l._path.v=d},_bringToFront:function(l){va(l._container)},_bringToBack:function(l){ya(l._container)}},uu=Pe.vml?Xo:Ee,Zo=jn.extend({_initContainer:function(){this._container=uu("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=uu("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){At(this._container),pt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){jn.prototype._update.call(this);var l=this._bounds,d=l.getSize(),m=this._container;(!this._svgSize||!this._svgSize.equals(d))&&(this._svgSize=d,m.setAttribute("width",d.x),m.setAttribute("height",d.y)),Vt(m,l.min),m.setAttribute("viewBox",[l.min.x,l.min.y,d.x,d.y].join(" ")),this.fire("update")}},_initPath:function(l){var d=l._path=uu("path");l.options.className&&je(d,l.options.className),l.options.interactive&&je(d,"leaflet-interactive"),this._updateStyle(l),this._layers[u(l)]=l},_addPath:function(l){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(l._path),l.addInteractiveTarget(l._path)},_removePath:function(l){At(l._path),l.removeInteractiveTarget(l._path),delete this._layers[u(l)]},_updatePath:function(l){l._project(),l._update()},_updateStyle:function(l){var d=l._path,m=l.options;d&&(m.stroke?(d.setAttribute("stroke",m.color),d.setAttribute("stroke-opacity",m.opacity),d.setAttribute("stroke-width",m.weight),d.setAttribute("stroke-linecap",m.lineCap),d.setAttribute("stroke-linejoin",m.lineJoin),m.dashArray?d.setAttribute("stroke-dasharray",m.dashArray):d.removeAttribute("stroke-dasharray"),m.dashOffset?d.setAttribute("stroke-dashoffset",m.dashOffset):d.removeAttribute("stroke-dashoffset")):d.setAttribute("stroke","none"),m.fill?(d.setAttribute("fill",m.fillColor||m.color),d.setAttribute("fill-opacity",m.fillOpacity),d.setAttribute("fill-rule",m.fillRule||"evenodd")):d.setAttribute("fill","none"))},_updatePoly:function(l,d){this._setPath(l,Ne(l._parts,d))},_updateCircle:function(l){var d=l._point,m=Math.max(Math.round(l._radius),1),x=Math.max(Math.round(l._radiusY),1)||m,A="a"+m+","+x+" 0 1,0 ",D=l._empty()?"M0 0":"M"+(d.x-m)+","+d.y+A+m*2+",0 "+A+-m*2+",0 ";this._setPath(l,D)},_setPath:function(l,d){l._path.setAttribute("d",d)},_bringToFront:function(l){va(l._path)},_bringToBack:function(l){ya(l._path)}});Pe.vml&&Zo.include(O3);function Vv(l){return Pe.svg||Pe.vml?new Zo(l):null}qe.include({getRenderer:function(l){var d=l.options.renderer||this._getPaneRenderer(l.options.pane)||this.options.renderer||this._renderer;return d||(d=this._renderer=this._createRenderer()),this.hasLayer(d)||this.addLayer(d),d},_getPaneRenderer:function(l){if(l==="overlayPane"||l===void 0)return!1;var d=this._paneRenderers[l];return d===void 0&&(d=this._createRenderer({pane:l}),this._paneRenderers[l]=d),d},_createRenderer:function(l){return this.options.preferCanvas&&jv(l)||Vv(l)}});var Gv=wa.extend({initialize:function(l,d){wa.prototype.initialize.call(this,this._boundsToLatLngs(l),d)},setBounds:function(l){return this.setLatLngs(this._boundsToLatLngs(l))},_boundsToLatLngs:function(l){return l=re(l),[l.getSouthWest(),l.getNorthWest(),l.getNorthEast(),l.getSouthEast()]}});function k3(l,d){return new Gv(l,d)}Zo.create=uu,Zo.pointsToPath=Ne,Hn.geometryToLayer=ru,Hn.coordsToLatLng=Ph,Hn.coordsToLatLngs=nu,Hn.latLngToCoords=Ah,Hn.latLngsToCoords=iu,Hn.getFeature=xa,Hn.asFeature=au,qe.mergeOptions({boxZoom:!0});var Uv=pn.extend({initialize:function(l){this._map=l,this._container=l._container,this._pane=l._panes.overlayPane,this._resetStateTimeout=0,l.on("unload",this._destroy,this)},addHooks:function(){Fe(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){pt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){At(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(l){if(!l.shiftKey||l.which!==1&&l.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Wo(),dh(),this._startPoint=this._map.mouseEventToContainerPoint(l),Fe(document,{contextmenu:Li,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(l){this._moved||(this._moved=!0,this._box=Xe("div","leaflet-zoom-box",this._container),je(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(l);var d=new Y(this._point,this._startPoint),m=d.getSize();Vt(this._box,d.min),this._box.style.width=m.x+"px",this._box.style.height=m.y+"px"},_finish:function(){this._moved&&(At(this._box),Ft(this._container,"leaflet-crosshair")),Ho(),hh(),pt(document,{contextmenu:Li,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(l){if(!(l.which!==1&&l.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var d=new ne(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(d).fire("boxzoomend",{boxZoomBounds:d})}},_onKeyDown:function(l){l.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});qe.addInitHook("addHandler","boxZoom",Uv),qe.mergeOptions({doubleClickZoom:!0});var Yv=pn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(l){var d=this._map,m=d.getZoom(),x=d.options.zoomDelta,A=l.originalEvent.shiftKey?m-x:m+x;d.options.doubleClickZoom==="center"?d.setZoom(A):d.setZoomAround(l.containerPoint,A)}});qe.addInitHook("addHandler","doubleClickZoom",Yv),qe.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var qv=pn.extend({addHooks:function(){if(!this._draggable){var l=this._map;this._draggable=new li(l._mapPane,l._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),l.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),l.on("zoomend",this._onZoomEnd,this),l.whenReady(this._onZoomEnd,this))}je(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Ft(this._map._container,"leaflet-grab"),Ft(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var l=this._map;if(l._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var d=re(this._map.options.maxBounds);this._offsetLimit=ie(this._map.latLngToContainerPoint(d.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(d.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;l.fire("movestart").fire("dragstart"),l.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(l){if(this._map.options.inertia){var d=this._lastTime=+new Date,m=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(m),this._times.push(d),this._prunePositions(d)}this._map.fire("move",l).fire("drag",l)},_prunePositions:function(l){for(;this._positions.length>1&&l-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var l=this._map.getSize().divideBy(2),d=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=d.subtract(l).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(l,d){return l-(l-d)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var l=this._draggable._newPos.subtract(this._draggable._startPos),d=this._offsetLimit;l.x<d.min.x&&(l.x=this._viscousLimit(l.x,d.min.x)),l.y<d.min.y&&(l.y=this._viscousLimit(l.y,d.min.y)),l.x>d.max.x&&(l.x=this._viscousLimit(l.x,d.max.x)),l.y>d.max.y&&(l.y=this._viscousLimit(l.y,d.max.y)),this._draggable._newPos=this._draggable._startPos.add(l)}},_onPreDragWrap:function(){var l=this._worldWidth,d=Math.round(l/2),m=this._initialWorldOffset,x=this._draggable._newPos.x,A=(x-d+m)%l+d-m,D=(x+d+m)%l-d-m,X=Math.abs(A+m)<Math.abs(D+m)?A:D;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=X},_onDragEnd:function(l){var d=this._map,m=d.options,x=!m.inertia||l.noInertia||this._times.length<2;if(d.fire("dragend",l),x)d.fire("moveend");else{this._prunePositions(+new Date);var A=this._lastPos.subtract(this._positions[0]),D=(this._lastTime-this._times[0])/1e3,X=m.easeLinearity,ee=A.multiplyBy(X/D),ae=ee.distanceTo([0,0]),he=Math.min(m.inertiaMaxSpeed,ae),we=ee.multiplyBy(he/ae),Re=he/(m.inertiaDeceleration*X),Ve=we.multiplyBy(-Re/2).round();!Ve.x&&!Ve.y?d.fire("moveend"):(Ve=d._limitOffset(Ve,d.options.maxBounds),Q(function(){d.panBy(Ve,{duration:Re,easeLinearity:X,noMoveStart:!0,animate:!0})}))}}});qe.addInitHook("addHandler","dragging",qv),qe.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Xv=pn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(l){this._map=l,this._setPanDelta(l.options.keyboardPanDelta),this._setZoomDelta(l.options.zoomDelta)},addHooks:function(){var l=this._map._container;l.tabIndex<=0&&(l.tabIndex="0"),Fe(l,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),pt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var l=document.body,d=document.documentElement,m=l.scrollTop||d.scrollTop,x=l.scrollLeft||d.scrollLeft;this._map._container.focus(),window.scrollTo(x,m)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(l){var d=this._panKeys={},m=this.keyCodes,x,A;for(x=0,A=m.left.length;x<A;x++)d[m.left[x]]=[-1*l,0];for(x=0,A=m.right.length;x<A;x++)d[m.right[x]]=[l,0];for(x=0,A=m.down.length;x<A;x++)d[m.down[x]]=[0,l];for(x=0,A=m.up.length;x<A;x++)d[m.up[x]]=[0,-1*l]},_setZoomDelta:function(l){var d=this._zoomKeys={},m=this.keyCodes,x,A;for(x=0,A=m.zoomIn.length;x<A;x++)d[m.zoomIn[x]]=l;for(x=0,A=m.zoomOut.length;x<A;x++)d[m.zoomOut[x]]=-l},_addHooks:function(){Fe(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){pt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(l){if(!(l.altKey||l.ctrlKey||l.metaKey)){var d=l.keyCode,m=this._map,x;if(d in this._panKeys){if(!m._panAnim||!m._panAnim._inProgress)if(x=this._panKeys[d],l.shiftKey&&(x=z(x).multiplyBy(3)),m.options.maxBounds&&(x=m._limitOffset(z(x),m.options.maxBounds)),m.options.worldCopyJump){var A=m.wrapLatLng(m.unproject(m.project(m.getCenter()).add(x)));m.panTo(A)}else m.panBy(x)}else if(d in this._zoomKeys)m.setZoom(m.getZoom()+(l.shiftKey?3:1)*this._zoomKeys[d]);else if(d===27&&m._popup&&m._popup.options.closeOnEscapeKey)m.closePopup();else return;Li(l)}}});qe.addInitHook("addHandler","keyboard",Xv),qe.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Zv=pn.extend({addHooks:function(){Fe(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){pt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(l){var d=_v(l),m=this._map.options.wheelDebounceTime;this._delta+=d,this._lastMousePos=this._map.mouseEventToContainerPoint(l),this._startTime||(this._startTime=+new Date);var x=Math.max(m-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),x),Li(l)},_performZoom:function(){var l=this._map,d=l.getZoom(),m=this._map.options.zoomSnap||0;l._stop();var x=this._delta/(this._map.options.wheelPxPerZoomLevel*4),A=4*Math.log(2/(1+Math.exp(-Math.abs(x))))/Math.LN2,D=m?Math.ceil(A/m)*m:A,X=l._limitZoom(d+(this._delta>0?D:-D))-d;this._delta=0,this._startTime=null,X&&(l.options.scrollWheelZoom==="center"?l.setZoom(d+X):l.setZoomAround(this._lastMousePos,d+X))}});qe.addInitHook("addHandler","scrollWheelZoom",Zv);var D3=600;qe.mergeOptions({tapHold:Pe.touchNative&&Pe.safari&&Pe.mobile,tapTolerance:15});var Kv=pn.extend({addHooks:function(){Fe(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){pt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(l){if(clearTimeout(this._holdTimeout),l.touches.length===1){var d=l.touches[0];this._startPos=this._newPos=new G(d.clientX,d.clientY),this._holdTimeout=setTimeout(o(function(){this._cancel(),this._isTapValid()&&(Fe(document,"touchend",nr),Fe(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",d))},this),D3),Fe(document,"touchend touchcancel contextmenu",this._cancel,this),Fe(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function l(){pt(document,"touchend",nr),pt(document,"touchend touchcancel",l)},_cancel:function(){clearTimeout(this._holdTimeout),pt(document,"touchend touchcancel contextmenu",this._cancel,this),pt(document,"touchmove",this._onMove,this)},_onMove:function(l){var d=l.touches[0];this._newPos=new G(d.clientX,d.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(l,d){var m=new MouseEvent(l,{bubbles:!0,cancelable:!0,view:window,screenX:d.screenX,screenY:d.screenY,clientX:d.clientX,clientY:d.clientY});m._simulated=!0,d.target.dispatchEvent(m)}});qe.addInitHook("addHandler","tapHold",Kv),qe.mergeOptions({touchZoom:Pe.touch,bounceAtZoomLimits:!0});var Qv=pn.extend({addHooks:function(){je(this._map._container,"leaflet-touch-zoom"),Fe(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Ft(this._map._container,"leaflet-touch-zoom"),pt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(l){var d=this._map;if(!(!l.touches||l.touches.length!==2||d._animatingZoom||this._zooming)){var m=d.mouseEventToContainerPoint(l.touches[0]),x=d.mouseEventToContainerPoint(l.touches[1]);this._centerPoint=d.getSize()._divideBy(2),this._startLatLng=d.containerPointToLatLng(this._centerPoint),d.options.touchZoom!=="center"&&(this._pinchStartLatLng=d.containerPointToLatLng(m.add(x)._divideBy(2))),this._startDist=m.distanceTo(x),this._startZoom=d.getZoom(),this._moved=!1,this._zooming=!0,d._stop(),Fe(document,"touchmove",this._onTouchMove,this),Fe(document,"touchend touchcancel",this._onTouchEnd,this),nr(l)}},_onTouchMove:function(l){if(!(!l.touches||l.touches.length!==2||!this._zooming)){var d=this._map,m=d.mouseEventToContainerPoint(l.touches[0]),x=d.mouseEventToContainerPoint(l.touches[1]),A=m.distanceTo(x)/this._startDist;if(this._zoom=d.getScaleZoom(A,this._startZoom),!d.options.bounceAtZoomLimits&&(this._zoom<d.getMinZoom()&&A<1||this._zoom>d.getMaxZoom()&&A>1)&&(this._zoom=d._limitZoom(this._zoom)),d.options.touchZoom==="center"){if(this._center=this._startLatLng,A===1)return}else{var D=m._add(x)._divideBy(2)._subtract(this._centerPoint);if(A===1&&D.x===0&&D.y===0)return;this._center=d.unproject(d.project(this._pinchStartLatLng,this._zoom).subtract(D),this._zoom)}this._moved||(d._moveStart(!0,!1),this._moved=!0),O(this._animRequest);var X=o(d._move,d,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Q(X,this,!0),nr(l)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,O(this._animRequest),pt(document,"touchmove",this._onTouchMove,this),pt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});qe.addInitHook("addHandler","touchZoom",Qv),qe.BoxZoom=Uv,qe.DoubleClickZoom=Yv,qe.Drag=qv,qe.Keyboard=Xv,qe.ScrollWheelZoom=Zv,qe.TapHold=Kv,qe.TouchZoom=Qv,r.Bounds=Y,r.Browser=Pe,r.CRS=de,r.Canvas=Hv,r.Circle=Eh,r.CircleMarker=tu,r.Class=q,r.Control=rn,r.DivIcon=zv,r.DivOverlay=mn,r.DomEvent=KE,r.DomUtil=XE,r.Draggable=li,r.Evented=W,r.FeatureGroup=Bn,r.GeoJSON=Hn,r.GridLayer=qo,r.Handler=pn,r.Icon=_a,r.ImageOverlay=ou,r.LatLng=oe,r.LatLngBounds=ne,r.Layer=nn,r.LayerGroup=ba,r.LineUtil=c3,r.Map=qe,r.Marker=eu,r.Mixin=i3,r.Path=ui,r.Point=G,r.PolyUtil=a3,r.Polygon=wa,r.Polyline=Wn,r.Popup=su,r.PosAnimation=wv,r.Projection=d3,r.Rectangle=Gv,r.Renderer=jn,r.SVG=Zo,r.SVGOverlay=Fv,r.TileLayer=Ca,r.Tooltip=lu,r.Transformation=ye,r.Util=F,r.VideoOverlay=$v,r.bind=o,r.bounds=ie,r.canvas=jv,r.circle=b3,r.circleMarker=y3,r.control=Go,r.divIcon=P3,r.extend=i,r.featureGroup=m3,r.geoJSON=Iv,r.geoJson=x3,r.gridLayer=A3,r.icon=g3,r.imageOverlay=C3,r.latLng=se,r.latLngBounds=re,r.layerGroup=p3,r.map=QE,r.marker=v3,r.point=z,r.polygon=w3,r.polyline=_3,r.popup=S3,r.rectangle=k3,r.setOptions=v,r.stamp=u,r.svg=Vv,r.svgOverlay=M3,r.tileLayer=Bv,r.tooltip=E3,r.transformation=J,r.version=n,r.videoOverlay=T3;var N3=window.L;r.noConflict=function(){return window.L=N3,this},window.L=r})})(Xf,Xf.exports);var Kw=Xf.exports;const qn=_.getDefaultExportFromCjs(Kw);var Qw={exports:{}};function oN(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}var Ki=1,Qi=2,Qa=3,sN=4,Zf=5,a1=6378137,lN=6356752314e-3,o1=.0066943799901413165,Es=484813681109536e-20,me=Math.PI/2,uN=.16666666666666666,cN=.04722222222222222,dN=.022156084656084655,be=1e-10,ar=.017453292519943295,Tn=57.29577951308232,et=Math.PI/4,Us=Math.PI*2,zt=3.14159265359,Sr={};Sr.greenwich=0;Sr.lisbon=-9.131906111111;Sr.paris=2.337229166667;Sr.bogota=-74.080916666667;Sr.madrid=-3.687938888889;Sr.rome=12.452333333333;Sr.bern=7.439583333333;Sr.jakarta=106.807719444444;Sr.ferro=-17.666666666667;Sr.brussels=4.367975;Sr.stockholm=18.058277777778;Sr.athens=23.7163375;Sr.oslo=10.722916666667;const hN={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}};var s1=/[\s_\-\/\(\)]/g;function Ci(e,t){if(e[t])return e[t];for(var r=Object.keys(e),n=t.toLowerCase().replace(s1,""),i=-1,a,o;++i<r.length;)if(a=r[i],o=a.toLowerCase().replace(s1,""),o===n)return e[a]}function Kf(e){var t={},r=e.split("+").map(function(s){return s.trim()}).filter(function(s){return s}).reduce(function(s,u){var c=u.split("=");return c.push(!0),s[c[0].toLowerCase()]=c[1],s},{}),n,i,a,o={proj:"projName",datum:"datumCode",rf:function(s){t.rf=parseFloat(s)},lat_0:function(s){t.lat0=s*ar},lat_1:function(s){t.lat1=s*ar},lat_2:function(s){t.lat2=s*ar},lat_ts:function(s){t.lat_ts=s*ar},lon_0:function(s){t.long0=s*ar},lon_1:function(s){t.long1=s*ar},lon_2:function(s){t.long2=s*ar},alpha:function(s){t.alpha=parseFloat(s)*ar},gamma:function(s){t.rectified_grid_angle=parseFloat(s)},lonc:function(s){t.longc=s*ar},x_0:function(s){t.x0=parseFloat(s)},y_0:function(s){t.y0=parseFloat(s)},k_0:function(s){t.k0=parseFloat(s)},k:function(s){t.k0=parseFloat(s)},a:function(s){t.a=parseFloat(s)},b:function(s){t.b=parseFloat(s)},r:function(s){t.a=t.b=parseFloat(s)},r_a:function(){t.R_A=!0},zone:function(s){t.zone=parseInt(s,10)},south:function(){t.utmSouth=!0},towgs84:function(s){t.datum_params=s.split(",").map(function(u){return parseFloat(u)})},to_meter:function(s){t.to_meter=parseFloat(s)},units:function(s){t.units=s;var u=Ci(hN,s);u&&(t.to_meter=u.to_meter)},from_greenwich:function(s){t.from_greenwich=s*ar},pm:function(s){var u=Ci(Sr,s);t.from_greenwich=(u||parseFloat(s))*ar},nadgrids:function(s){s==="@null"?t.datumCode="none":t.nadgrids=s},axis:function(s){var u="ewnsud";s.length===3&&u.indexOf(s.substr(0,1))!==-1&&u.indexOf(s.substr(1,1))!==-1&&u.indexOf(s.substr(2,1))!==-1&&(t.axis=s)},approx:function(){t.approx=!0}};for(n in r)i=r[n],n in o?(a=o[n],typeof a=="function"?a(i):t[a]=i):t[n]=i;return typeof t.datumCode=="string"&&t.datumCode!=="WGS84"&&(t.datumCode=t.datumCode.toLowerCase()),t}var Ys=1,Jw=2,ex=3,hc=4,tx=5,N0=-1,fN=/\s/,pN=/[A-Za-z]/,mN=/[A-Za-z84_]/,ud=/[,\]]/,rx=/[\d\.E\-\+]/;function ii(e){if(typeof e!="string")throw new Error("not a string");this.text=e.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=Ys}ii.prototype.readCharicter=function(){var e=this.text[this.place++];if(this.state!==hc)for(;fN.test(e);){if(this.place>=this.text.length)return;e=this.text[this.place++]}switch(this.state){case Ys:return this.neutral(e);case Jw:return this.keyword(e);case hc:return this.quoted(e);case tx:return this.afterquote(e);case ex:return this.number(e);case N0:return}};ii.prototype.afterquote=function(e){if(e==='"'){this.word+='"',this.state=hc;return}if(ud.test(e)){this.word=this.word.trim(),this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in afterquote yet, index '+this.place)};ii.prototype.afterItem=function(e){if(e===","){this.word!==null&&this.currentObject.push(this.word),this.word=null,this.state=Ys;return}if(e==="]"){this.level--,this.word!==null&&(this.currentObject.push(this.word),this.word=null),this.state=Ys,this.currentObject=this.stack.pop(),this.currentObject||(this.state=N0);return}};ii.prototype.number=function(e){if(rx.test(e)){this.word+=e;return}if(ud.test(e)){this.word=parseFloat(this.word),this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in number yet, index '+this.place)};ii.prototype.quoted=function(e){if(e==='"'){this.state=tx;return}this.word+=e};ii.prototype.keyword=function(e){if(mN.test(e)){this.word+=e;return}if(e==="["){var t=[];t.push(this.word),this.level++,this.root===null?this.root=t:this.currentObject.push(t),this.stack.push(this.currentObject),this.currentObject=t,this.state=Ys;return}if(ud.test(e)){this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in keyword yet, index '+this.place)};ii.prototype.neutral=function(e){if(pN.test(e)){this.word=e,this.state=Jw;return}if(e==='"'){this.word="",this.state=hc;return}if(rx.test(e)){this.word=e,this.state=ex;return}if(ud.test(e)){this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in neutral yet, index '+this.place)};ii.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(this.state===N0)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};function gN(e){var t=new ii(e);return t.output()}function l1(e,t,r){Array.isArray(t)&&(r.unshift(t),t=null);var n=t?{}:e,i=r.reduce(function(a,o){return Va(o,a),a},n);t&&(e[t]=i)}function Va(e,t){if(!Array.isArray(e)){t[e]=!0;return}var r=e.shift();if(r==="PARAMETER"&&(r=e.shift()),e.length===1){if(Array.isArray(e[0])){t[r]={},Va(e[0],t[r]);return}t[r]=e[0];return}if(!e.length){t[r]=!0;return}if(r==="TOWGS84"){t[r]=e;return}if(r==="AXIS"){r in t||(t[r]=[]),t[r].push(e);return}Array.isArray(r)||(t[r]={});var n;switch(r){case"UNIT":case"PRIMEM":case"VERT_DATUM":t[r]={name:e[0].toLowerCase(),convert:e[1]},e.length===3&&Va(e[2],t[r]);return;case"SPHEROID":case"ELLIPSOID":t[r]={name:e[0],a:e[1],rf:e[2]},e.length===4&&Va(e[3],t[r]);return;case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"EDATUM":case"ENGINEERINGDATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":case"COMPD_CS":case"COMPOUNDCRS":case"ENGINEERINGCRS":case"ENGCRS":case"FITTED_CS":case"LOCAL_DATUM":case"DATUM":e[0]=["name",e[0]],l1(t,r,e);return;default:for(n=-1;++n<e.length;)if(!Array.isArray(e[n]))return Va(e,t[r]);return l1(t,r,e)}}var vN=.017453292519943295;function yN(e,t){var r=t[0],n=t[1];!(r in e)&&n in e&&(e[r]=e[n],t.length===3&&(e[r]=t[2](e[r])))}function yn(e){return e*vN}function bN(e){if(e.type==="GEOGCS"?e.projName="longlat":e.type==="LOCAL_CS"?(e.projName="identity",e.local=!0):typeof e.PROJECTION=="object"?e.projName=Object.keys(e.PROJECTION)[0]:e.projName=e.PROJECTION,e.AXIS){for(var t="",r=0,n=e.AXIS.length;r<n;++r){var i=[e.AXIS[r][0].toLowerCase(),e.AXIS[r][1].toLowerCase()];i[0].indexOf("north")!==-1||(i[0]==="y"||i[0]==="lat")&&i[1]==="north"?t+="n":i[0].indexOf("south")!==-1||(i[0]==="y"||i[0]==="lat")&&i[1]==="south"?t+="s":i[0].indexOf("east")!==-1||(i[0]==="x"||i[0]==="lon")&&i[1]==="east"?t+="e":(i[0].indexOf("west")!==-1||(i[0]==="x"||i[0]==="lon")&&i[1]==="west")&&(t+="w")}t.length===2&&(t+="u"),t.length===3&&(e.axis=t)}e.UNIT&&(e.units=e.UNIT.name.toLowerCase(),e.units==="metre"&&(e.units="meter"),e.UNIT.convert&&(e.type==="GEOGCS"?e.DATUM&&e.DATUM.SPHEROID&&(e.to_meter=e.UNIT.convert*e.DATUM.SPHEROID.a):e.to_meter=e.UNIT.convert));var a=e.GEOGCS;e.type==="GEOGCS"&&(a=e),a&&(a.DATUM?e.datumCode=a.DATUM.name.toLowerCase():e.datumCode=a.name.toLowerCase(),e.datumCode.slice(0,2)==="d_"&&(e.datumCode=e.datumCode.slice(2)),(e.datumCode==="new_zealand_geodetic_datum_1949"||e.datumCode==="new_zealand_1949")&&(e.datumCode="nzgd49"),(e.datumCode==="wgs_1984"||e.datumCode==="world_geodetic_system_1984")&&(e.PROJECTION==="Mercator_Auxiliary_Sphere"&&(e.sphere=!0),e.datumCode="wgs84"),e.datumCode.slice(-6)==="_ferro"&&(e.datumCode=e.datumCode.slice(0,-6)),e.datumCode.slice(-8)==="_jakarta"&&(e.datumCode=e.datumCode.slice(0,-8)),~e.datumCode.indexOf("belge")&&(e.datumCode="rnb72"),a.DATUM&&a.DATUM.SPHEROID&&(e.ellps=a.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),e.ellps.toLowerCase().slice(0,13)==="international"&&(e.ellps="intl"),e.a=a.DATUM.SPHEROID.a,e.rf=parseFloat(a.DATUM.SPHEROID.rf,10)),a.DATUM&&a.DATUM.TOWGS84&&(e.datum_params=a.DATUM.TOWGS84),~e.datumCode.indexOf("osgb_1936")&&(e.datumCode="osgb36"),~e.datumCode.indexOf("osni_1952")&&(e.datumCode="osni52"),(~e.datumCode.indexOf("tm65")||~e.datumCode.indexOf("geodetic_datum_of_1965"))&&(e.datumCode="ire65"),e.datumCode==="ch1903+"&&(e.datumCode="ch1903"),~e.datumCode.indexOf("israel")&&(e.datumCode="isr93")),e.b&&!isFinite(e.b)&&(e.b=e.a);function o(c){var h=e.to_meter||1;return c*h}var s=function(c){return yN(e,c)},u=[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",yn],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",yn],["x0","false_easting",o],["y0","false_northing",o],["long0","central_meridian",yn],["lat0","latitude_of_origin",yn],["lat0","standard_parallel_1",yn],["lat1","standard_parallel_1",yn],["lat2","standard_parallel_2",yn],["azimuth","Azimuth"],["alpha","azimuth",yn],["srsCode","name"]];u.forEach(s),!e.long0&&e.longc&&(e.projName==="Albers_Conic_Equal_Area"||e.projName==="Lambert_Azimuthal_Equal_Area")&&(e.long0=e.longc),!e.lat_ts&&e.lat1&&(e.projName==="Stereographic_South_Pole"||e.projName==="Polar Stereographic (variant B)")?(e.lat0=yn(e.lat1>0?90:-90),e.lat_ts=e.lat1):!e.lat_ts&&e.lat0&&e.projName==="Polar_Stereographic"&&(e.lat_ts=e.lat0,e.lat0=yn(e.lat0>0?90:-90))}function nx(e){var t=gN(e),r=t.shift(),n=t.shift();t.unshift(["name",n]),t.unshift(["type",r]);var i={};return Va(t,i),bN(i),i}function fr(e){var t=this;if(arguments.length===2){var r=arguments[1];typeof r=="string"?r.charAt(0)==="+"?fr[e]=Kf(arguments[1]):fr[e]=nx(arguments[1]):fr[e]=r}else if(arguments.length===1){if(Array.isArray(e))return e.map(function(n){Array.isArray(n)?fr.apply(t,n):fr(n)});if(typeof e=="string"){if(e in fr)return fr[e]}else"EPSG"in e?fr["EPSG:"+e.EPSG]=e:"ESRI"in e?fr["ESRI:"+e.ESRI]=e:"IAU2000"in e?fr["IAU2000:"+e.IAU2000]=e:console.log(e);return}}oN(fr);function _N(e){return typeof e=="string"}function wN(e){return e in fr}var xN=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function CN(e){return xN.some(function(t){return e.indexOf(t)>-1})}var TN=["3857","900913","3785","102113"];function MN(e){var t=Ci(e,"authority");if(t){var r=Ci(t,"epsg");return r&&TN.indexOf(r)>-1}}function SN(e){var t=Ci(e,"extension");if(t)return Ci(t,"proj4")}function EN(e){return e[0]==="+"}function PN(e){if(_N(e)){if(wN(e))return fr[e];if(CN(e)){var t=nx(e);if(MN(t))return fr["EPSG:3857"];var r=SN(t);return r?Kf(r):t}if(EN(e))return Kf(e)}else return e}function u1(e,t){e=e||{};var r,n;if(!t)return e;for(n in t)r=t[n],r!==void 0&&(e[n]=r);return e}function On(e,t,r){var n=e*t;return r/Math.sqrt(1-n*n)}function gl(e){return e<0?-1:1}function xe(e){return Math.abs(e)<=zt?e:e-gl(e)*Us}function an(e,t,r){var n=e*r,i=.5*e;return n=Math.pow((1-n)/(1+n),i),Math.tan(.5*(me-t))/n}function qs(e,t){for(var r=.5*e,n,i,a=me-2*Math.atan(t),o=0;o<=15;o++)if(n=e*Math.sin(a),i=me-2*Math.atan(t*Math.pow((1-n)/(1+n),r))-a,a+=i,Math.abs(i)<=1e-10)return a;return-9999}function AN(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=On(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function RN(e){var t=e.x,r=e.y;if(r*Tn>90&&r*Tn<-90&&t*Tn>180&&t*Tn<-180)return null;var n,i;if(Math.abs(Math.abs(r)-me)<=be)return null;if(this.sphere)n=this.x0+this.a*this.k0*xe(t-this.long0),i=this.y0+this.a*this.k0*Math.log(Math.tan(et+.5*r));else{var a=Math.sin(r),o=an(this.e,r,a);n=this.x0+this.a*this.k0*xe(t-this.long0),i=this.y0-this.a*this.k0*Math.log(o)}return e.x=n,e.y=i,e}function ON(e){var t=e.x-this.x0,r=e.y-this.y0,n,i;if(this.sphere)i=me-2*Math.atan(Math.exp(-r/(this.a*this.k0)));else{var a=Math.exp(-r/(this.a*this.k0));if(i=qs(this.e,a),i===-9999)return null}return n=xe(this.long0+t/(this.a*this.k0)),e.x=n,e.y=i,e}var kN=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"];const DN={init:AN,forward:RN,inverse:ON,names:kN};function NN(){}function c1(e){return e}var LN=["longlat","identity"];const IN={init:NN,forward:c1,inverse:c1,names:LN};var $N=[DN,IN],Wu={},fc=[];function ix(e,t){var r=fc.length;return e.names?(fc[r]=e,e.names.forEach(function(n){Wu[n.toLowerCase()]=r}),this):(console.log(t),!0)}function FN(e){if(!e)return!1;var t=e.toLowerCase();if(typeof Wu[t]!="undefined"&&fc[Wu[t]])return fc[Wu[t]]}function zN(){$N.forEach(ix)}const BN={start:zN,add:ix,get:FN};var Ie={};Ie.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"};Ie.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"};Ie.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"};Ie.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"};Ie.airy={a:6377563396e-3,b:635625691e-2,ellipseName:"Airy 1830"};Ie.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"};Ie.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"};Ie.mod_airy={a:6377340189e-3,b:6356034446e-3,ellipseName:"Modified Airy"};Ie.andrae={a:637710443e-2,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"};Ie.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"};Ie.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"};Ie.bessel={a:6377397155e-3,rf:299.1528128,ellipseName:"Bessel 1841"};Ie.bess_nam={a:6377483865e-3,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"};Ie.clrk66={a:63782064e-1,b:63565838e-1,ellipseName:"Clarke 1866"};Ie.clrk80={a:6378249145e-3,rf:293.4663,ellipseName:"Clarke 1880 mod."};Ie.clrk80ign={a:63782492e-1,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"};Ie.clrk58={a:6378293645208759e-9,rf:294.2606763692654,ellipseName:"Clarke 1858"};Ie.CPM={a:63757387e-1,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"};Ie.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"};Ie.engelis={a:637813605e-2,rf:298.2566,ellipseName:"Engelis 1985"};Ie.evrst30={a:6377276345e-3,rf:300.8017,ellipseName:"Everest 1830"};Ie.evrst48={a:6377304063e-3,rf:300.8017,ellipseName:"Everest 1948"};Ie.evrst56={a:6377301243e-3,rf:300.8017,ellipseName:"Everest 1956"};Ie.evrst69={a:6377295664e-3,rf:300.8017,ellipseName:"Everest 1969"};Ie.evrstSS={a:6377298556e-3,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"};Ie.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"};Ie.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"};Ie.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"};Ie.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"};Ie.hough={a:6378270,rf:297,ellipseName:"Hough"};Ie.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"};Ie.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"};Ie.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"};Ie.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"};Ie.new_intl={a:63781575e-1,b:63567722e-1,ellipseName:"New International 1967"};Ie.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"};Ie.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"};Ie.SEasia={a:6378155,b:63567733205e-4,ellipseName:"Southeast Asia"};Ie.walbeck={a:6376896,b:63558348467e-4,ellipseName:"Walbeck"};Ie.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"};Ie.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"};Ie.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"};var WN=Ie.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};Ie.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};function HN(e,t,r,n){var i=e*e,a=t*t,o=(i-a)/i,s=0;n?(e*=1-o*(uN+o*(cN+o*dN)),i=e*e,o=0):s=Math.sqrt(o);var u=(i-a)/a;return{es:o,e:s,ep2:u}}function jN(e,t,r,n,i){if(!e){var a=Ci(Ie,n);a||(a=WN),e=a.a,t=a.b,r=a.rf}return r&&!t&&(t=(1-1/r)*e),(r===0||Math.abs(e-t)<be)&&(i=!0,t=e),{a:e,b:t,rf:r,sphere:i}}var Xt={};Xt.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"};Xt.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"};Xt.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"};Xt.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"};Xt.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"};Xt.potsdam={towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"};Xt.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"};Xt.hermannskogel={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"};Xt.militargeographische_institut={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"};Xt.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"};Xt.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"};Xt.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"};Xt.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"};Xt.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"};Xt.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"};Xt.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"};Xt.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"};Xt.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};function VN(e,t,r,n,i,a,o){var s={};return e===void 0||e==="none"?s.datum_type=Zf:s.datum_type=sN,t&&(s.datum_params=t.map(parseFloat),(s.datum_params[0]!==0||s.datum_params[1]!==0||s.datum_params[2]!==0)&&(s.datum_type=Ki),s.datum_params.length>3&&(s.datum_params[3]!==0||s.datum_params[4]!==0||s.datum_params[5]!==0||s.datum_params[6]!==0)&&(s.datum_type=Qi,s.datum_params[3]*=Es,s.datum_params[4]*=Es,s.datum_params[5]*=Es,s.datum_params[6]=s.datum_params[6]/1e6+1)),o&&(s.datum_type=Qa,s.grids=o),s.a=r,s.b=n,s.es=i,s.ep2=a,s}var ax={};function GN(e,t){var r=new DataView(t),n=qN(r),i=XN(r,n),a=ZN(r,i,n),o={header:i,subgrids:a};return ax[e]=o,o}function UN(e){if(e===void 0)return null;var t=e.split(",");return t.map(YN)}function YN(e){if(e.length===0)return null;var t=e[0]==="@";return t&&(e=e.slice(1)),e==="null"?{name:"null",mandatory:!t,grid:null,isNull:!0}:{name:e,mandatory:!t,grid:ax[e]||null,isNull:!1}}function Ga(e){return e/3600*Math.PI/180}function qN(e){var t=e.getInt32(8,!1);return t===11?!1:(t=e.getInt32(8,!0),t!==11&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}function XN(e,t){return{nFields:e.getInt32(8,t),nSubgridFields:e.getInt32(24,t),nSubgrids:e.getInt32(40,t),shiftType:Qf(e,56,64).trim(),fromSemiMajorAxis:e.getFloat64(120,t),fromSemiMinorAxis:e.getFloat64(136,t),toSemiMajorAxis:e.getFloat64(152,t),toSemiMinorAxis:e.getFloat64(168,t)}}function Qf(e,t,r){return String.fromCharCode.apply(null,new Uint8Array(e.buffer.slice(t,r)))}function ZN(e,t,r){for(var n=176,i=[],a=0;a<t.nSubgrids;a++){var o=QN(e,n,r),s=JN(e,n,o,r),u=Math.round(1+(o.upperLongitude-o.lowerLongitude)/o.longitudeInterval),c=Math.round(1+(o.upperLatitude-o.lowerLatitude)/o.latitudeInterval);i.push({ll:[Ga(o.lowerLongitude),Ga(o.lowerLatitude)],del:[Ga(o.longitudeInterval),Ga(o.latitudeInterval)],lim:[u,c],count:o.gridNodeCount,cvs:KN(s)}),n+=176+o.gridNodeCount*16}return i}function KN(e){return e.map(function(t){return[Ga(t.longitudeShift),Ga(t.latitudeShift)]})}function QN(e,t,r){return{name:Qf(e,t+8,t+16).trim(),parent:Qf(e,t+24,t+24+8).trim(),lowerLatitude:e.getFloat64(t+72,r),upperLatitude:e.getFloat64(t+88,r),lowerLongitude:e.getFloat64(t+104,r),upperLongitude:e.getFloat64(t+120,r),latitudeInterval:e.getFloat64(t+136,r),longitudeInterval:e.getFloat64(t+152,r),gridNodeCount:e.getInt32(t+168,r)}}function JN(e,t,r,n){for(var i=t+176,a=16,o=[],s=0;s<r.gridNodeCount;s++){var u={latitudeShift:e.getFloat32(i+s*a,n),longitudeShift:e.getFloat32(i+s*a+4,n),latitudeAccuracy:e.getFloat32(i+s*a+8,n),longitudeAccuracy:e.getFloat32(i+s*a+12,n)};o.push(u)}return o}function En(e,t){if(!(this instanceof En))return new En(e);t=t||function(c){if(c)throw c};var r=PN(e);if(typeof r!="object"){t(e);return}var n=En.projections.get(r.projName);if(!n){t(e);return}if(r.datumCode&&r.datumCode!=="none"){var i=Ci(Xt,r.datumCode);i&&(r.datum_params=r.datum_params||(i.towgs84?i.towgs84.split(","):null),r.ellps=i.ellipse,r.datumName=i.datumName?i.datumName:r.datumCode)}r.k0=r.k0||1,r.axis=r.axis||"enu",r.ellps=r.ellps||"wgs84",r.lat1=r.lat1||r.lat0;var a=jN(r.a,r.b,r.rf,r.ellps,r.sphere),o=HN(a.a,a.b,a.rf,r.R_A),s=UN(r.nadgrids),u=r.datum||VN(r.datumCode,r.datum_params,a.a,a.b,o.es,o.ep2,s);u1(this,r),u1(this,n),this.a=a.a,this.b=a.b,this.rf=a.rf,this.sphere=a.sphere,this.es=o.es,this.e=o.e,this.ep2=o.ep2,this.datum=u,this.init(),t(null,this)}En.projections=BN;En.projections.start();function e4(e,t){return e.datum_type!==t.datum_type||e.a!==t.a||Math.abs(e.es-t.es)>5e-11?!1:e.datum_type===Ki?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]:e.datum_type===Qi?e.datum_params[0]===t.datum_params[0]&&e.datum_params[1]===t.datum_params[1]&&e.datum_params[2]===t.datum_params[2]&&e.datum_params[3]===t.datum_params[3]&&e.datum_params[4]===t.datum_params[4]&&e.datum_params[5]===t.datum_params[5]&&e.datum_params[6]===t.datum_params[6]:!0}function ox(e,t,r){var n=e.x,i=e.y,a=e.z?e.z:0,o,s,u,c;if(i<-me&&i>-1.001*me)i=-me;else if(i>me&&i<1.001*me)i=me;else{if(i<-me)return{x:-1/0,y:-1/0,z:e.z};if(i>me)return{x:1/0,y:1/0,z:e.z}}return n>Math.PI&&(n-=2*Math.PI),s=Math.sin(i),c=Math.cos(i),u=s*s,o=r/Math.sqrt(1-t*u),{x:(o+a)*c*Math.cos(n),y:(o+a)*c*Math.sin(n),z:(o*(1-t)+a)*s}}function sx(e,t,r,n){var i=1e-12,a=i*i,o=30,s,u,c,h,f,p,g,b,v,w,C,M,E,S=e.x,P=e.y,R=e.z?e.z:0,N,B,U;if(s=Math.sqrt(S*S+P*P),u=Math.sqrt(S*S+P*P+R*R),s/r<i){if(N=0,u/r<i)return B=me,U=-n,{x:e.x,y:e.y,z:e.z}}else N=Math.atan2(P,S);c=R/u,h=s/u,f=1/Math.sqrt(1-t*(2-t)*h*h),b=h*(1-t)*f,v=c*f,E=0;do E++,g=r/Math.sqrt(1-t*v*v),U=s*b+R*v-g*(1-t*v*v),p=t*g/(g+U),f=1/Math.sqrt(1-p*(2-p)*h*h),w=h*(1-p)*f,C=c*f,M=C*b-w*v,b=w,v=C;while(M*M>a&&E<o);return B=Math.atan(C/Math.abs(w)),{x:N,y:B,z:U}}function t4(e,t,r){if(t===Ki)return{x:e.x+r[0],y:e.y+r[1],z:e.z+r[2]};if(t===Qi){var n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],u=r[5],c=r[6];return{x:c*(e.x-u*e.y+s*e.z)+n,y:c*(u*e.x+e.y-o*e.z)+i,z:c*(-s*e.x+o*e.y+e.z)+a}}}function r4(e,t,r){if(t===Ki)return{x:e.x-r[0],y:e.y-r[1],z:e.z-r[2]};if(t===Qi){var n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],u=r[5],c=r[6],h=(e.x-n)/c,f=(e.y-i)/c,p=(e.z-a)/c;return{x:h+u*f-s*p,y:-u*h+f+o*p,z:s*h-o*f+p}}}function gu(e){return e===Ki||e===Qi}function n4(e,t,r){if(e4(e,t)||e.datum_type===Zf||t.datum_type===Zf)return r;var n=e.a,i=e.es;if(e.datum_type===Qa){var a=d1(e,!1,r);if(a!==0)return;n=a1,i=o1}var o=t.a,s=t.b,u=t.es;if(t.datum_type===Qa&&(o=a1,s=lN,u=o1),i===u&&n===o&&!gu(e.datum_type)&&!gu(t.datum_type))return r;if(r=ox(r,i,n),gu(e.datum_type)&&(r=t4(r,e.datum_type,e.datum_params)),gu(t.datum_type)&&(r=r4(r,t.datum_type,t.datum_params)),r=sx(r,u,o,s),t.datum_type===Qa){var c=d1(t,!0,r);if(c!==0)return}return r}function d1(e,t,r){if(e.grids===null||e.grids.length===0)return console.log("Grid shift grids not found"),-1;var n={x:-r.x,y:r.y},i={x:Number.NaN,y:Number.NaN},a=[];e:for(var o=0;o<e.grids.length;o++){var s=e.grids[o];if(a.push(s.name),s.isNull){i=n;break}if(s.grid===null){if(s.mandatory)return console.log("Unable to find mandatory grid '"+s.name+"'"),-1;continue}for(var u=s.grid.subgrids,c=0,h=u.length;c<h;c++){var f=u[c],p=(Math.abs(f.del[1])+Math.abs(f.del[0]))/1e4,g=f.ll[0]-p,b=f.ll[1]-p,v=f.ll[0]+(f.lim[0]-1)*f.del[0]+p,w=f.ll[1]+(f.lim[1]-1)*f.del[1]+p;if(!(b>n.y||g>n.x||w<n.y||v<n.x)&&(i=i4(n,t,f),!isNaN(i.x)))break e}}return isNaN(i.x)?(console.log("Failed to find a grid shift table for location '"+-n.x*Tn+" "+n.y*Tn+" tried: '"+a+"'"),-1):(r.x=-i.x,r.y=i.y,0)}function i4(e,t,r){var n={x:Number.NaN,y:Number.NaN};if(isNaN(e.x))return n;var i={x:e.x,y:e.y};i.x-=r.ll[0],i.y-=r.ll[1],i.x=xe(i.x-Math.PI)+Math.PI;var a=h1(i,r);if(t){if(isNaN(a.x))return n;a.x=i.x-a.x,a.y=i.y-a.y;var o=9,s=1e-12,u,c;do{if(c=h1(a,r),isNaN(c.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}u={x:i.x-(c.x+a.x),y:i.y-(c.y+a.y)},a.x+=u.x,a.y+=u.y}while(o--&&Math.abs(u.x)>s&&Math.abs(u.y)>s);if(o<0)return console.log("Inverse grid shift iterator failed to converge."),n;n.x=xe(a.x+r.ll[0]),n.y=a.y+r.ll[1]}else isNaN(a.x)||(n.x=e.x+a.x,n.y=e.y+a.y);return n}function h1(e,t){var r={x:e.x/t.del[0],y:e.y/t.del[1]},n={x:Math.floor(r.x),y:Math.floor(r.y)},i={x:r.x-1*n.x,y:r.y-1*n.y},a={x:Number.NaN,y:Number.NaN},o;if(n.x<0||n.x>=t.lim[0]||n.y<0||n.y>=t.lim[1])return a;o=n.y*t.lim[0]+n.x;var s={x:t.cvs[o][0],y:t.cvs[o][1]};o++;var u={x:t.cvs[o][0],y:t.cvs[o][1]};o+=t.lim[0];var c={x:t.cvs[o][0],y:t.cvs[o][1]};o--;var h={x:t.cvs[o][0],y:t.cvs[o][1]},f=i.x*i.y,p=i.x*(1-i.y),g=(1-i.x)*(1-i.y),b=(1-i.x)*i.y;return a.x=g*s.x+p*u.x+b*h.x+f*c.x,a.y=g*s.y+p*u.y+b*h.y+f*c.y,a}function f1(e,t,r){var n=r.x,i=r.y,a=r.z||0,o,s,u,c={};for(u=0;u<3;u++)if(!(t&&u===2&&r.z===void 0))switch(u===0?(o=n,"ew".indexOf(e.axis[u])!==-1?s="x":s="y"):u===1?(o=i,"ns".indexOf(e.axis[u])!==-1?s="y":s="x"):(o=a,s="z"),e.axis[u]){case"e":c[s]=o;break;case"w":c[s]=-o;break;case"n":c[s]=o;break;case"s":c[s]=-o;break;case"u":r[s]!==void 0&&(c.z=o);break;case"d":r[s]!==void 0&&(c.z=-o);break;default:return null}return c}function lx(e){var t={x:e[0],y:e[1]};return e.length>2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t}function a4(e){p1(e.x),p1(e.y)}function p1(e){if(typeof Number.isFinite=="function"){if(Number.isFinite(e))return;throw new TypeError("coordinates must be finite numbers")}if(typeof e!="number"||e!==e||!isFinite(e))throw new TypeError("coordinates must be finite numbers")}function o4(e,t){return(e.datum.datum_type===Ki||e.datum.datum_type===Qi||e.datum.datum_type===Qa)&&t.datumCode!=="WGS84"||(t.datum.datum_type===Ki||t.datum.datum_type===Qi||t.datum.datum_type===Qa)&&e.datumCode!=="WGS84"}function pc(e,t,r,n){var i;Array.isArray(r)?r=lx(r):r={x:r.x,y:r.y,z:r.z,m:r.m};var a=r.z!==void 0;if(a4(r),e.datum&&t.datum&&o4(e,t)&&(i=new En("WGS84"),r=pc(e,i,r,n),e=i),n&&e.axis!=="enu"&&(r=f1(e,!1,r)),e.projName==="longlat")r={x:r.x*ar,y:r.y*ar,z:r.z||0};else if(e.to_meter&&(r={x:r.x*e.to_meter,y:r.y*e.to_meter,z:r.z||0}),r=e.inverse(r),!r)return;if(e.from_greenwich&&(r.x+=e.from_greenwich),r=n4(e.datum,t.datum,r),!!r)return t.from_greenwich&&(r={x:r.x-t.from_greenwich,y:r.y,z:r.z||0}),t.projName==="longlat"?r={x:r.x*Tn,y:r.y*Tn,z:r.z||0}:(r=t.forward(r),t.to_meter&&(r={x:r.x/t.to_meter,y:r.y/t.to_meter,z:r.z||0})),n&&t.axis!=="enu"?f1(t,!0,r):(r&&!a&&delete r.z,r)}var m1=En("WGS84");function Yh(e,t,r,n){var i,a,o;return Array.isArray(r)?(i=pc(e,t,r,n)||{x:NaN,y:NaN},r.length>2?typeof e.name!="undefined"&&e.name==="geocent"||typeof t.name!="undefined"&&t.name==="geocent"?typeof i.z=="number"?[i.x,i.y,i.z].concat(r.splice(3)):[i.x,i.y,r[2]].concat(r.splice(3)):[i.x,i.y].concat(r.splice(2)):[i.x,i.y]):(a=pc(e,t,r,n),o=Object.keys(r),o.length===2||o.forEach(function(s){if(typeof e.name!="undefined"&&e.name==="geocent"||typeof t.name!="undefined"&&t.name==="geocent"){if(s==="x"||s==="y"||s==="z")return}else if(s==="x"||s==="y")return;a[s]=r[s]}),a)}function g1(e){return e instanceof En?e:e.oProj?e.oProj:En(e)}function Nr(e,t,r){e=g1(e);var n=!1,i;return typeof t=="undefined"?(t=e,e=m1,n=!0):(typeof t.x!="undefined"||Array.isArray(t))&&(r=t,t=e,e=m1,n=!0),t=g1(t),r?Yh(e,t,r):(i={forward:function(a,o){return Yh(e,t,a,o)},inverse:function(a,o){return Yh(t,e,a,o)}},n&&(i.oProj=t),i)}var v1=6,ux="AJSAJS",cx="AFAFAF",Ua=65,xr=73,Gr=79,ys=86,bs=90;const s4={forward:dx,inverse:l4,toPoint:hx};function dx(e,t){return t=t||5,d4(u4({lat:e[1],lon:e[0]}),t)}function l4(e){var t=L0(px(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat,t.lon,t.lat]:[t.left,t.bottom,t.right,t.top]}function hx(e){var t=L0(px(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function qh(e){return e*(Math.PI/180)}function y1(e){return 180*(e/Math.PI)}function u4(e){var t=e.lat,r=e.lon,n=6378137,i=.00669438,a=.9996,o,s,u,c,h,f,p,g=qh(t),b=qh(r),v,w;w=Math.floor((r+180)/6)+1,r===180&&(w=60),t>=56&&t<64&&r>=3&&r<12&&(w=32),t>=72&&t<84&&(r>=0&&r<9?w=31:r>=9&&r<21?w=33:r>=21&&r<33?w=35:r>=33&&r<42&&(w=37)),o=(w-1)*6-180+3,v=qh(o),s=i/(1-i),u=n/Math.sqrt(1-i*Math.sin(g)*Math.sin(g)),c=Math.tan(g)*Math.tan(g),h=s*Math.cos(g)*Math.cos(g),f=Math.cos(g)*(b-v),p=n*((1-i/4-3*i*i/64-5*i*i*i/256)*g-(3*i/8+3*i*i/32+45*i*i*i/1024)*Math.sin(2*g)+(15*i*i/256+45*i*i*i/1024)*Math.sin(4*g)-35*i*i*i/3072*Math.sin(6*g));var C=a*u*(f+(1-c+h)*f*f*f/6+(5-18*c+c*c+72*h-58*s)*f*f*f*f*f/120)+5e5,M=a*(p+u*Math.tan(g)*(f*f/2+(5-c+9*h+4*h*h)*f*f*f*f/24+(61-58*c+c*c+600*h-330*s)*f*f*f*f*f*f/720));return t<0&&(M+=1e7),{northing:Math.round(M),easting:Math.round(C),zoneNumber:w,zoneLetter:c4(t)}}function L0(e){var t=e.northing,r=e.easting,n=e.zoneLetter,i=e.zoneNumber;if(i<0||i>60)return null;var a=.9996,o=6378137,s=.00669438,u,c=(1-Math.sqrt(1-s))/(1+Math.sqrt(1-s)),h,f,p,g,b,v,w,C,M,E=r-5e5,S=t;n<"N"&&(S-=1e7),w=(i-1)*6-180+3,u=s/(1-s),v=S/a,C=v/(o*(1-s/4-3*s*s/64-5*s*s*s/256)),M=C+(3*c/2-27*c*c*c/32)*Math.sin(2*C)+(21*c*c/16-55*c*c*c*c/32)*Math.sin(4*C)+151*c*c*c/96*Math.sin(6*C),h=o/Math.sqrt(1-s*Math.sin(M)*Math.sin(M)),f=Math.tan(M)*Math.tan(M),p=u*Math.cos(M)*Math.cos(M),g=o*(1-s)/Math.pow(1-s*Math.sin(M)*Math.sin(M),1.5),b=E/(h*a);var P=M-h*Math.tan(M)/g*(b*b/2-(5+3*f+10*p-4*p*p-9*u)*b*b*b*b/24+(61+90*f+298*p+45*f*f-252*u-3*p*p)*b*b*b*b*b*b/720);P=y1(P);var R=(b-(1+2*f+p)*b*b*b/6+(5-2*p+28*f-3*p*p+8*u+24*f*f)*b*b*b*b*b/120)/Math.cos(M);R=w+y1(R);var N;if(e.accuracy){var B=L0({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});N={top:B.lat,right:B.lon,bottom:P,left:R}}else N={lat:P,lon:R};return N}function c4(e){var t="Z";return 84>=e&&e>=72?t="X":72>e&&e>=64?t="W":64>e&&e>=56?t="V":56>e&&e>=48?t="U":48>e&&e>=40?t="T":40>e&&e>=32?t="S":32>e&&e>=24?t="R":24>e&&e>=16?t="Q":16>e&&e>=8?t="P":8>e&&e>=0?t="N":0>e&&e>=-8?t="M":-8>e&&e>=-16?t="L":-16>e&&e>=-24?t="K":-24>e&&e>=-32?t="J":-32>e&&e>=-40?t="H":-40>e&&e>=-48?t="G":-48>e&&e>=-56?t="F":-56>e&&e>=-64?t="E":-64>e&&e>=-72?t="D":-72>e&&e>=-80&&(t="C"),t}function d4(e,t){var r="00000"+e.easting,n="00000"+e.northing;return e.zoneNumber+e.zoneLetter+h4(e.easting,e.northing,e.zoneNumber)+r.substr(r.length-5,t)+n.substr(n.length-5,t)}function h4(e,t,r){var n=fx(r),i=Math.floor(e/1e5),a=Math.floor(t/1e5)%20;return f4(i,a,n)}function fx(e){var t=e%v1;return t===0&&(t=v1),t}function f4(e,t,r){var n=r-1,i=ux.charCodeAt(n),a=cx.charCodeAt(n),o=i+e-1,s=a+t,u=!1;o>bs&&(o=o-bs+Ua-1,u=!0),(o===xr||i<xr&&o>xr||(o>xr||i<xr)&&u)&&o++,(o===Gr||i<Gr&&o>Gr||(o>Gr||i<Gr)&&u)&&(o++,o===xr&&o++),o>bs&&(o=o-bs+Ua-1),s>ys?(s=s-ys+Ua-1,u=!0):u=!1,(s===xr||a<xr&&s>xr||(s>xr||a<xr)&&u)&&s++,(s===Gr||a<Gr&&s>Gr||(s>Gr||a<Gr)&&u)&&(s++,s===xr&&s++),s>ys&&(s=s-ys+Ua-1);var c=String.fromCharCode(o)+String.fromCharCode(s);return c}function px(e){if(e&&e.length===0)throw"MGRSPoint coverting from nothing";for(var t=e.length,r=null,n="",i,a=0;!/[A-Z]/.test(i=e.charAt(a));){if(a>=2)throw"MGRSPoint bad conversion from: "+e;n+=i,a++}var o=parseInt(n,10);if(a===0||a+3>t)throw"MGRSPoint bad conversion from: "+e;var s=e.charAt(a++);if(s<="A"||s==="B"||s==="Y"||s>="Z"||s==="I"||s==="O")throw"MGRSPoint zone letter "+s+" not handled: "+e;r=e.substring(a,a+=2);for(var u=fx(o),c=p4(r.charAt(0),u),h=m4(r.charAt(1),u);h<g4(s);)h+=2e6;var f=t-a;if(f%2!==0)throw`MGRSPoint has to have an even number
207
+ of digits after the zone letter and two 100km letters - front
208
+ half for easting meters, second half for
209
+ northing meters`+e;var p=f/2,g=0,b=0,v,w,C,M,E;return p>0&&(v=1e5/Math.pow(10,p),w=e.substring(a,a+p),g=parseFloat(w)*v,C=e.substring(a+p),b=parseFloat(C)*v),M=g+c,E=b+h,{easting:M,northing:E,zoneLetter:s,zoneNumber:o,accuracy:v}}function p4(e,t){for(var r=ux.charCodeAt(t-1),n=1e5,i=!1;r!==e.charCodeAt(0);){if(r++,r===xr&&r++,r===Gr&&r++,r>bs){if(i)throw"Bad character: "+e;r=Ua,i=!0}n+=1e5}return n}function m4(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;for(var r=cx.charCodeAt(t-1),n=0,i=!1;r!==e.charCodeAt(0);){if(r++,r===xr&&r++,r===Gr&&r++,r>ys){if(i)throw"Bad character: "+e;r=Ua,i=!0}n+=1e5}return n}function g4(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}function io(e,t,r){if(!(this instanceof io))return new io(e,t,r);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if(typeof e=="object")this.x=e.x,this.y=e.y,this.z=e.z||0;else if(typeof e=="string"&&typeof t=="undefined"){var n=e.split(",");this.x=parseFloat(n[0],10),this.y=parseFloat(n[1],10),this.z=parseFloat(n[2],10)||0}else this.x=e,this.y=t,this.z=r||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}io.fromMGRS=function(e){return new io(hx(e))};io.prototype.toMGRS=function(e){return dx([this.x,this.y],e)};var v4=1,y4=.25,b1=.046875,_1=.01953125,w1=.01068115234375,b4=.75,_4=.46875,w4=.013020833333333334,x4=.007120768229166667,C4=.3645833333333333,T4=.005696614583333333,M4=.3076171875;function mx(e){var t=[];t[0]=v4-e*(y4+e*(b1+e*(_1+e*w1))),t[1]=e*(b4-e*(b1+e*(_1+e*w1)));var r=e*e;return t[2]=r*(_4-e*(w4+e*x4)),r*=e,t[3]=r*(C4-e*T4),t[4]=r*e*M4,t}function cd(e,t,r,n){return r*=t,t*=t,n[0]*e-r*(n[1]+t*(n[2]+t*(n[3]+t*n[4])))}var S4=20;function gx(e,t,r){for(var n=1/(1-t),i=e,a=S4;a;--a){var o=Math.sin(i),s=1-t*o*o;if(s=(cd(i,o,Math.cos(i),r)-e)*(s*Math.sqrt(s))*n,i-=s,Math.abs(s)<be)return i}return i}function E4(){this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.es&&(this.en=mx(this.es),this.ml0=cd(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function P4(e){var t=e.x,r=e.y,n=xe(t-this.long0),i,a,o,s=Math.sin(r),u=Math.cos(r);if(this.es){var h=u*n,f=Math.pow(h,2),p=this.ep2*Math.pow(u,2),g=Math.pow(p,2),b=Math.abs(u)>be?Math.tan(r):0,v=Math.pow(b,2),w=Math.pow(v,2);i=1-this.es*Math.pow(s,2),h=h/Math.sqrt(i);var C=cd(r,s,u,this.en);a=this.a*(this.k0*h*(1+f/6*(1-v+p+f/20*(5-18*v+w+14*p-58*v*p+f/42*(61+179*w-w*v-479*v)))))+this.x0,o=this.a*(this.k0*(C-this.ml0+s*n*h/2*(1+f/12*(5-v+9*p+4*g+f/30*(61+w-58*v+270*p-330*v*p+f/56*(1385+543*w-w*v-3111*v))))))+this.y0}else{var c=u*Math.sin(n);if(Math.abs(Math.abs(c)-1)<be)return 93;if(a=.5*this.a*this.k0*Math.log((1+c)/(1-c))+this.x0,o=u*Math.cos(n)/Math.sqrt(1-Math.pow(c,2)),c=Math.abs(o),c>=1){if(c-1>be)return 93;o=0}else o=Math.acos(o);r<0&&(o=-o),o=this.a*this.k0*(o-this.lat0)+this.y0}return e.x=a,e.y=o,e}function A4(e){var t,r,n,i,a=(e.x-this.x0)*(1/this.a),o=(e.y-this.y0)*(1/this.a);if(this.es)if(t=this.ml0+o/this.k0,r=gx(t,this.es,this.en),Math.abs(r)<me){var f=Math.sin(r),p=Math.cos(r),g=Math.abs(p)>be?Math.tan(r):0,b=this.ep2*Math.pow(p,2),v=Math.pow(b,2),w=Math.pow(g,2),C=Math.pow(w,2);t=1-this.es*Math.pow(f,2);var M=a*Math.sqrt(t)/this.k0,E=Math.pow(M,2);t=t*g,n=r-t*E/(1-this.es)*.5*(1-E/12*(5+3*w-9*b*w+b-4*v-E/30*(61+90*w-252*b*w+45*C+46*b-E/56*(1385+3633*w+4095*C+1574*C*w)))),i=xe(this.long0+M*(1-E/6*(1+2*w+b-E/20*(5+28*w+24*C+8*b*w+6*b-E/42*(61+662*w+1320*C+720*C*w))))/p)}else n=me*gl(o),i=0;else{var s=Math.exp(a/this.k0),u=.5*(s-1/s),c=this.lat0+o/this.k0,h=Math.cos(c);t=Math.sqrt((1-Math.pow(h,2))/(1+Math.pow(u,2))),n=Math.asin(t),o<0&&(n=-n),u===0&&h===0?i=0:i=xe(Math.atan2(u,h)+this.long0)}return e.x=i,e.y=n,e}var R4=["Fast_Transverse_Mercator","Fast Transverse Mercator"];const Hu={init:E4,forward:P4,inverse:A4,names:R4};function vx(e){var t=Math.exp(e);return t=(t-1/t)/2,t}function Xr(e,t){e=Math.abs(e),t=Math.abs(t);var r=Math.max(e,t),n=Math.min(e,t)/(r||1);return r*Math.sqrt(1+Math.pow(n,2))}function O4(e){var t=1+e,r=t-1;return r===0?e:e*Math.log(t)/r}function k4(e){var t=Math.abs(e);return t=O4(t*(1+t/(Xr(1,t)+1))),e<0?-t:t}function I0(e,t){for(var r=2*Math.cos(2*t),n=e.length-1,i=e[n],a=0,o;--n>=0;)o=-a+r*i+e[n],a=i,i=o;return t+o*Math.sin(2*t)}function D4(e,t){for(var r=2*Math.cos(t),n=e.length-1,i=e[n],a=0,o;--n>=0;)o=-a+r*i+e[n],a=i,i=o;return Math.sin(t)*o}function N4(e){var t=Math.exp(e);return t=(t+1/t)/2,t}function yx(e,t,r){for(var n=Math.sin(t),i=Math.cos(t),a=vx(r),o=N4(r),s=2*i*o,u=-2*n*a,c=e.length-1,h=e[c],f=0,p=0,g=0,b,v;--c>=0;)b=p,v=f,p=h,f=g,h=-b+s*p-u*f+e[c],g=-v+u*p+s*f;return s=n*o,u=i*a,[s*h-u*g,s*g+u*h]}function L4(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(Hu.init.apply(this),this.forward=Hu.forward,this.inverse=Hu.inverse),this.x0=this.x0!==void 0?this.x0:0,this.y0=this.y0!==void 0?this.y0:0,this.long0=this.long0!==void 0?this.long0:0,this.lat0=this.lat0!==void 0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var e=this.es/(1+Math.sqrt(1-this.es)),t=e/(2-e),r=t;this.cgb[0]=t*(2+t*(-2/3+t*(-2+t*(116/45+t*(26/45+t*(-2854/675)))))),this.cbg[0]=t*(-2+t*(2/3+t*(4/3+t*(-82/45+t*(32/45+t*(4642/4725)))))),r=r*t,this.cgb[1]=r*(7/3+t*(-8/5+t*(-227/45+t*(2704/315+t*(2323/945))))),this.cbg[1]=r*(5/3+t*(-16/15+t*(-13/9+t*(904/315+t*(-1522/945))))),r=r*t,this.cgb[2]=r*(56/15+t*(-136/35+t*(-1262/105+t*(73814/2835)))),this.cbg[2]=r*(-26/15+t*(34/21+t*(8/5+t*(-12686/2835)))),r=r*t,this.cgb[3]=r*(4279/630+t*(-332/35+t*(-399572/14175))),this.cbg[3]=r*(1237/630+t*(-12/5+t*(-24832/14175))),r=r*t,this.cgb[4]=r*(4174/315+t*(-144838/6237)),this.cbg[4]=r*(-734/315+t*(109598/31185)),r=r*t,this.cgb[5]=r*(601676/22275),this.cbg[5]=r*(444337/155925),r=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+r*(1/4+r*(1/64+r/256))),this.utg[0]=t*(-.5+t*(2/3+t*(-37/96+t*(1/360+t*(81/512+t*(-96199/604800)))))),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+t*(7891/37800)))))),this.utg[1]=r*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+t*(1118711/3870720))))),this.gtu[1]=r*(13/48+t*(-3/5+t*(557/1440+t*(281/630+t*(-1983433/1935360))))),r=r*t,this.utg[2]=r*(-17/480+t*(37/840+t*(209/4480+t*(-5569/90720)))),this.gtu[2]=r*(61/240+t*(-103/140+t*(15061/26880+t*(167603/181440)))),r=r*t,this.utg[3]=r*(-4397/161280+t*(11/504+t*(830251/7257600))),this.gtu[3]=r*(49561/161280+t*(-179/168+t*(6601661/7257600))),r=r*t,this.utg[4]=r*(-4583/161280+t*(108847/3991680)),this.gtu[4]=r*(34729/80640+t*(-3418889/1995840)),r=r*t,this.utg[5]=r*(-20648693/638668800),this.gtu[5]=r*(212378941/319334400);var n=I0(this.cbg,this.lat0);this.Zb=-this.Qn*(n+D4(this.gtu,2*n))}function I4(e){var t=xe(e.x-this.long0),r=e.y;r=I0(this.cbg,r);var n=Math.sin(r),i=Math.cos(r),a=Math.sin(t),o=Math.cos(t);r=Math.atan2(n,o*i),t=Math.atan2(a*i,Xr(n,i*o)),t=k4(Math.tan(t));var s=yx(this.gtu,2*r,2*t);r=r+s[0],t=t+s[1];var u,c;return Math.abs(t)<=2.623395162778?(u=this.a*(this.Qn*t)+this.x0,c=this.a*(this.Qn*r+this.Zb)+this.y0):(u=1/0,c=1/0),e.x=u,e.y=c,e}function $4(e){var t=(e.x-this.x0)*(1/this.a),r=(e.y-this.y0)*(1/this.a);r=(r-this.Zb)/this.Qn,t=t/this.Qn;var n,i;if(Math.abs(t)<=2.623395162778){var a=yx(this.utg,2*r,2*t);r=r+a[0],t=t+a[1],t=Math.atan(vx(t));var o=Math.sin(r),s=Math.cos(r),u=Math.sin(t),c=Math.cos(t);r=Math.atan2(o*c,Xr(u,c*s)),t=Math.atan2(u,c*s),n=xe(t+this.long0),i=I0(this.cgb,r)}else n=1/0,i=1/0;return e.x=n,e.y=i,e}var F4=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"];const ju={init:L4,forward:I4,inverse:$4,names:F4};function z4(e,t){if(e===void 0){if(e=Math.floor((xe(t)+Math.PI)*30/Math.PI)+1,e<0)return 0;if(e>60)return 60}return e}var B4="etmerc";function W4(){var e=z4(this.zone,this.long0);if(e===void 0)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*ar,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,ju.init.apply(this),this.forward=ju.forward,this.inverse=ju.inverse}var H4=["Universal Transverse Mercator System","utm"];const j4={init:W4,names:H4,dependsOn:B4};function $0(e,t){return Math.pow((1-e)/(1+e),t)}var V4=20;function G4(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+et)/(Math.pow(Math.tan(.5*this.lat0+et),this.C)*$0(this.e*e,this.ratexp))}function U4(e){var t=e.x,r=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*r+et),this.C)*$0(this.e*Math.sin(r),this.ratexp))-me,e.x=this.C*t,e}function Y4(e){for(var t=1e-14,r=e.x/this.C,n=e.y,i=Math.pow(Math.tan(.5*n+et)/this.K,1/this.C),a=V4;a>0&&(n=2*Math.atan(i*$0(this.e*Math.sin(e.y),-.5*this.e))-me,!(Math.abs(n-e.y)<t));--a)e.y=n;return a?(e.x=r,e.y=n,e):null}var q4=["gauss"];const F0={init:G4,forward:U4,inverse:Y4,names:q4};function X4(){F0.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))}function Z4(e){var t,r,n,i;return e.x=xe(e.x-this.long0),F0.forward.apply(this,[e]),t=Math.sin(e.y),r=Math.cos(e.y),n=Math.cos(e.x),i=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*r*n),e.x=i*r*Math.sin(e.x),e.y=i*(this.cosc0*t-this.sinc0*r*n),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function K4(e){var t,r,n,i,a;if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,a=Xr(e.x,e.y)){var o=2*Math.atan2(a,this.R2);t=Math.sin(o),r=Math.cos(o),i=Math.asin(r*this.sinc0+e.y*t*this.cosc0/a),n=Math.atan2(e.x*t,a*this.cosc0*r-e.y*this.sinc0*t)}else i=this.phic0,n=0;return e.x=n,e.y=i,F0.inverse.apply(this,[e]),e.x=xe(e.x+this.long0),e}var Q4=["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"];const J4={init:X4,forward:Z4,inverse:K4,names:Q4};function e5(e,t,r){return t*=r,Math.tan(.5*(me+e))*Math.pow((1-t)/(1+t),.5*r)}function t5(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=be&&(this.k0=.5*(1+gl(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=be&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),this.k0===1&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=be&&Math.abs(Math.cos(this.lat_ts))>be&&(this.k0=.5*this.cons*On(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/an(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=On(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-me,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function r5(e){var t=e.x,r=e.y,n=Math.sin(r),i=Math.cos(r),a,o,s,u,c,h,f=xe(t-this.long0);return Math.abs(Math.abs(t-this.long0)-Math.PI)<=be&&Math.abs(r+this.lat0)<=be?(e.x=NaN,e.y=NaN,e):this.sphere?(a=2*this.k0/(1+this.sinlat0*n+this.coslat0*i*Math.cos(f)),e.x=this.a*a*i*Math.sin(f)+this.x0,e.y=this.a*a*(this.coslat0*n-this.sinlat0*i*Math.cos(f))+this.y0,e):(o=2*Math.atan(this.ssfn_(r,n,this.e))-me,u=Math.cos(o),s=Math.sin(o),Math.abs(this.coslat0)<=be?(c=an(this.e,r*this.con,this.con*n),h=2*this.a*this.k0*c/this.cons,e.x=this.x0+h*Math.sin(t-this.long0),e.y=this.y0-this.con*h*Math.cos(t-this.long0),e):(Math.abs(this.sinlat0)<be?(a=2*this.a*this.k0/(1+u*Math.cos(f)),e.y=a*s):(a=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*s+this.cosX0*u*Math.cos(f))),e.y=a*(this.cosX0*s-this.sinX0*u*Math.cos(f))+this.y0),e.x=a*u*Math.sin(f)+this.x0,e))}function n5(e){e.x-=this.x0,e.y-=this.y0;var t,r,n,i,a,o=Math.sqrt(e.x*e.x+e.y*e.y);if(this.sphere){var s=2*Math.atan(o/(2*this.a*this.k0));return t=this.long0,r=this.lat0,o<=be?(e.x=t,e.y=r,e):(r=Math.asin(Math.cos(s)*this.sinlat0+e.y*Math.sin(s)*this.coslat0/o),Math.abs(this.coslat0)<be?this.lat0>0?t=xe(this.long0+Math.atan2(e.x,-1*e.y)):t=xe(this.long0+Math.atan2(e.x,e.y)):t=xe(this.long0+Math.atan2(e.x*Math.sin(s),o*this.coslat0*Math.cos(s)-e.y*this.sinlat0*Math.sin(s))),e.x=t,e.y=r,e)}else if(Math.abs(this.coslat0)<=be){if(o<=be)return r=this.lat0,t=this.long0,e.x=t,e.y=r,e;e.x*=this.con,e.y*=this.con,n=o*this.cons/(2*this.a*this.k0),r=this.con*qs(this.e,n),t=this.con*xe(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else i=2*Math.atan(o*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,o<=be?a=this.X0:(a=Math.asin(Math.cos(i)*this.sinX0+e.y*Math.sin(i)*this.cosX0/o),t=xe(this.long0+Math.atan2(e.x*Math.sin(i),o*this.cosX0*Math.cos(i)-e.y*this.sinX0*Math.sin(i)))),r=-1*qs(this.e,Math.tan(.5*(me+a)));return e.x=t,e.y=r,e}var i5=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)","Polar_Stereographic"];const a5={init:t5,forward:r5,inverse:n5,names:i5,ssfn_:e5};function o5(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e),r=this.a,n=this.rf,i=1/n,a=2*i-Math.pow(i,2),o=this.e=Math.sqrt(a);this.R=this.k0*r*Math.sqrt(1-a)/(1-a*Math.pow(t,2)),this.alpha=Math.sqrt(1+a/(1-a)*Math.pow(Math.cos(e),4)),this.b0=Math.asin(t/this.alpha);var s=Math.log(Math.tan(Math.PI/4+this.b0/2)),u=Math.log(Math.tan(Math.PI/4+e/2)),c=Math.log((1+o*t)/(1-o*t));this.K=s-this.alpha*u+this.alpha*o/2*c}function s5(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2)),r=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y))),n=-this.alpha*(t+r)+this.K,i=2*(Math.atan(Math.exp(n))-Math.PI/4),a=this.alpha*(e.x-this.lambda0),o=Math.atan(Math.sin(a)/(Math.sin(this.b0)*Math.tan(i)+Math.cos(this.b0)*Math.cos(a))),s=Math.asin(Math.cos(this.b0)*Math.sin(i)-Math.sin(this.b0)*Math.cos(i)*Math.cos(a));return e.y=this.R/2*Math.log((1+Math.sin(s))/(1-Math.sin(s)))+this.y0,e.x=this.R*o+this.x0,e}function l5(e){for(var t=e.x-this.x0,r=e.y-this.y0,n=t/this.R,i=2*(Math.atan(Math.exp(r/this.R))-Math.PI/4),a=Math.asin(Math.cos(this.b0)*Math.sin(i)+Math.sin(this.b0)*Math.cos(i)*Math.cos(n)),o=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(i))),s=this.lambda0+o/this.alpha,u=0,c=a,h=-1e3,f=0;Math.abs(c-h)>1e-7;){if(++f>20)return;u=1/this.alpha*(Math.log(Math.tan(Math.PI/4+a/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(c))/2)),h=c,c=2*Math.atan(Math.exp(u))-Math.PI/2}return e.x=s,e.y=c,e}var u5=["somerc"];const c5={init:o5,forward:s5,inverse:l5,names:u5};var Fa=1e-7;function d5(e){var t=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],r=typeof e.PROJECTION=="object"?Object.keys(e.PROJECTION)[0]:e.PROJECTION;return"no_uoff"in e||"no_off"in e||t.indexOf(r)!==-1}function h5(){var e,t,r,n,i,a,o,s,u,c,h=0,f,p=0,g=0,b=0,v=0,w=0,C=0;this.no_off=d5(this),this.no_rot="no_rot"in this;var M=!1;"alpha"in this&&(M=!0);var E=!1;if("rectified_grid_angle"in this&&(E=!0),M&&(C=this.alpha),E&&(h=this.rectified_grid_angle*ar),M||E)p=this.longc;else if(g=this.long1,v=this.lat1,b=this.long2,w=this.lat2,Math.abs(v-w)<=Fa||(e=Math.abs(v))<=Fa||Math.abs(e-me)<=Fa||Math.abs(Math.abs(this.lat0)-me)<=Fa||Math.abs(Math.abs(w)-me)<=Fa)throw new Error;var S=1-this.es;t=Math.sqrt(S),Math.abs(this.lat0)>be?(s=Math.sin(this.lat0),r=Math.cos(this.lat0),e=1-this.es*s*s,this.B=r*r,this.B=Math.sqrt(1+this.es*this.B*this.B/S),this.A=this.B*this.k0*t/e,n=this.B*t/(r*Math.sqrt(e)),i=n*n-1,i<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=n,this.E*=Math.pow(an(this.e,this.lat0,s),this.B)):(this.B=1/t,this.A=this.k0,this.E=n=i=1),M||E?(M?(f=Math.asin(Math.sin(C)/n),E||(h=C)):(f=h,C=Math.asin(n*Math.sin(f))),this.lam0=p-Math.asin(.5*(i-1/i)*Math.tan(f))/this.B):(a=Math.pow(an(this.e,v,Math.sin(v)),this.B),o=Math.pow(an(this.e,w,Math.sin(w)),this.B),i=this.E/a,u=(o-a)/(o+a),c=this.E*this.E,c=(c-o*a)/(c+o*a),e=g-b,e<-Math.pi?b-=Us:e>Math.pi&&(b+=Us),this.lam0=xe(.5*(g+b)-Math.atan(c*Math.tan(.5*this.B*(g-b))/u)/this.B),f=Math.atan(2*Math.sin(this.B*xe(g-this.lam0))/(i-1/i)),h=C=Math.asin(n*Math.sin(f))),this.singam=Math.sin(f),this.cosgam=Math.cos(f),this.sinrot=Math.sin(h),this.cosrot=Math.cos(h),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(n*n-1)/Math.cos(C))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*f,this.v_pole_n=this.ArB*Math.log(Math.tan(et-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(et+i))}function f5(e){var t={},r,n,i,a,o,s,u,c;if(e.x=e.x-this.lam0,Math.abs(Math.abs(e.y)-me)>be){if(o=this.E/Math.pow(an(this.e,e.y,Math.sin(e.y)),this.B),s=1/o,r=.5*(o-s),n=.5*(o+s),a=Math.sin(this.B*e.x),i=(r*this.singam-a*this.cosgam)/n,Math.abs(Math.abs(i)-1)<be)throw new Error;c=.5*this.ArB*Math.log((1-i)/(1+i)),s=Math.cos(this.B*e.x),Math.abs(s)<Fa?u=this.A*e.x:u=this.ArB*Math.atan2(r*this.cosgam+a*this.singam,s)}else c=e.y>0?this.v_pole_n:this.v_pole_s,u=this.ArB*e.y;return this.no_rot?(t.x=u,t.y=c):(u-=this.u_0,t.x=c*this.cosrot+u*this.sinrot,t.y=u*this.cosrot-c*this.sinrot),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t}function p5(e){var t,r,n,i,a,o,s,u={};if(e.x=(e.x-this.x0)*(1/this.a),e.y=(e.y-this.y0)*(1/this.a),this.no_rot?(r=e.y,t=e.x):(r=e.x*this.cosrot-e.y*this.sinrot,t=e.y*this.cosrot+e.x*this.sinrot+this.u_0),n=Math.exp(-this.BrA*r),i=.5*(n-1/n),a=.5*(n+1/n),o=Math.sin(this.BrA*t),s=(o*this.cosgam+i*this.singam)/a,Math.abs(Math.abs(s)-1)<be)u.x=0,u.y=s<0?-me:me;else{if(u.y=this.E/Math.sqrt((1+s)/(1-s)),u.y=qs(this.e,Math.pow(u.y,1/this.B)),u.y===1/0)throw new Error;u.x=-this.rB*Math.atan2(i*this.cosgam-o*this.singam,Math.cos(this.BrA*t))}return u.x+=this.lam0,u}var m5=["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"];const g5={init:h5,forward:f5,inverse:p5,names:m5};function v5(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<be)){var e=this.b/this.a;this.e=Math.sqrt(1-e*e);var t=Math.sin(this.lat1),r=Math.cos(this.lat1),n=On(this.e,t,r),i=an(this.e,this.lat1,t),a=Math.sin(this.lat2),o=Math.cos(this.lat2),s=On(this.e,a,o),u=an(this.e,this.lat2,a),c=an(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>be?this.ns=Math.log(n/s)/Math.log(i/u):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=n/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(c,this.ns),this.title||(this.title="Lambert Conformal Conic")}}function y5(e){var t=e.x,r=e.y;Math.abs(2*Math.abs(r)-Math.PI)<=be&&(r=gl(r)*(me-2*be));var n=Math.abs(Math.abs(r)-me),i,a;if(n>be)i=an(this.e,r,Math.sin(r)),a=this.a*this.f0*Math.pow(i,this.ns);else{if(n=r*this.ns,n<=0)return null;a=0}var o=this.ns*xe(t-this.long0);return e.x=this.k0*(a*Math.sin(o))+this.x0,e.y=this.k0*(this.rh-a*Math.cos(o))+this.y0,e}function b5(e){var t,r,n,i,a,o=(e.x-this.x0)/this.k0,s=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(o*o+s*s),r=1):(t=-Math.sqrt(o*o+s*s),r=-1);var u=0;if(t!==0&&(u=Math.atan2(r*o,r*s)),t!==0||this.ns>0){if(r=1/this.ns,n=Math.pow(t/(this.a*this.f0),r),i=qs(this.e,n),i===-9999)return null}else i=-me;return a=xe(u/this.ns+this.long0),e.x=a,e.y=i,e}var _5=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"];const w5={init:v5,forward:y5,inverse:b5,names:_5};function x5(){this.a=6377397155e-3,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.7417649320975901-.308341501185665),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq}function C5(e){var t,r,n,i,a,o,s,u=e.x,c=e.y,h=xe(u-this.long0);return t=Math.pow((1+this.e*Math.sin(c))/(1-this.e*Math.sin(c)),this.alfa*this.e/2),r=2*(Math.atan(this.k*Math.pow(Math.tan(c/2+this.s45),this.alfa)/t)-this.s45),n=-h*this.alfa,i=Math.asin(Math.cos(this.ad)*Math.sin(r)+Math.sin(this.ad)*Math.cos(r)*Math.cos(n)),a=Math.asin(Math.cos(r)*Math.sin(n)/Math.cos(i)),o=this.n*a,s=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(i/2+this.s45),this.n),e.y=s*Math.cos(o)/1,e.x=s*Math.sin(o)/1,this.czech||(e.y*=-1,e.x*=-1),e}function T5(e){var t,r,n,i,a,o,s,u,c=e.x;e.x=e.y,e.y=c,this.czech||(e.y*=-1,e.x*=-1),o=Math.sqrt(e.x*e.x+e.y*e.y),a=Math.atan2(e.y,e.x),i=a/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(i)),r=Math.asin(Math.cos(n)*Math.sin(i)/Math.cos(t)),e.x=this.long0-r/this.alfa,s=t,u=0;var h=0;do e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(s))/(1-this.e*Math.sin(s)),this.e/2))-this.s45),Math.abs(s-e.y)<1e-10&&(u=1),s=e.y,h+=1;while(u===0&&h<15);return h>=15?null:e}var M5=["Krovak","krovak"];const S5={init:x5,forward:C5,inverse:T5,names:M5};function gr(e,t,r,n,i){return e*i-t*Math.sin(2*i)+r*Math.sin(4*i)-n*Math.sin(6*i)}function vl(e){return 1-.25*e*(1+e/16*(3+1.25*e))}function yl(e){return .375*e*(1+.25*e*(1+.46875*e))}function bl(e){return .05859375*e*e*(1+.75*e)}function _l(e){return e*e*e*(35/3072)}function ao(e,t,r){var n=t*r;return e/Math.sqrt(1-n*n)}function bo(e){return Math.abs(e)<me?e:e-gl(e)*Math.PI}function mc(e,t,r,n,i){var a,o;a=e/t;for(var s=0;s<15;s++)if(o=(e-(t*a-r*Math.sin(2*a)+n*Math.sin(4*a)-i*Math.sin(6*a)))/(t-2*r*Math.cos(2*a)+4*n*Math.cos(4*a)-6*i*Math.cos(6*a)),a+=o,Math.abs(o)<=1e-10)return a;return NaN}function E5(){this.sphere||(this.e0=vl(this.es),this.e1=yl(this.es),this.e2=bl(this.es),this.e3=_l(this.es),this.ml0=this.a*gr(this.e0,this.e1,this.e2,this.e3,this.lat0))}function P5(e){var t,r,n=e.x,i=e.y;if(n=xe(n-this.long0),this.sphere)t=this.a*Math.asin(Math.cos(i)*Math.sin(n)),r=this.a*(Math.atan2(Math.tan(i),Math.cos(n))-this.lat0);else{var a=Math.sin(i),o=Math.cos(i),s=ao(this.a,this.e,a),u=Math.tan(i)*Math.tan(i),c=n*Math.cos(i),h=c*c,f=this.es*o*o/(1-this.es),p=this.a*gr(this.e0,this.e1,this.e2,this.e3,i);t=s*c*(1-h*u*(1/6-(8-u+8*f)*h/120)),r=p-this.ml0+s*a/o*h*(.5+(5-u+6*f)*h/24)}return e.x=t+this.x0,e.y=r+this.y0,e}function A5(e){e.x-=this.x0,e.y-=this.y0;var t=e.x/this.a,r=e.y/this.a,n,i;if(this.sphere){var a=r+this.lat0;n=Math.asin(Math.sin(a)*Math.cos(t)),i=Math.atan2(Math.tan(t),Math.cos(a))}else{var o=this.ml0/this.a+r,s=mc(o,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(s)-me)<=be)return e.x=this.long0,e.y=me,r<0&&(e.y*=-1),e;var u=ao(this.a,this.e,Math.sin(s)),c=u*u*u/this.a/this.a*(1-this.es),h=Math.pow(Math.tan(s),2),f=t*this.a/u,p=f*f;n=s-u*Math.tan(s)/c*f*f*(.5-(1+3*h)*f*f/24),i=f*(1-p*(h/3+(1+3*h)*h*p/15))/Math.cos(s)}return e.x=xe(i+this.long0),e.y=bo(n),e}var R5=["Cassini","Cassini_Soldner","cass"];const O5={init:E5,forward:P5,inverse:A5,names:R5};function yi(e,t){var r;return e>1e-7?(r=e*t,(1-e*e)*(t/(1-r*r)-.5/e*Math.log((1-r)/(1+r)))):2*t}var k5=1,D5=2,N5=3,L5=4;function I5(){var e=Math.abs(this.lat0);if(Math.abs(e-me)<be?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(e)<be?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0){var t;switch(this.qp=yi(this.e,1),this.mmf=.5/(1-this.es),this.apa=G5(this.es),this.mode){case this.N_POLE:this.dd=1;break;case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=yi(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd;break}}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))}function $5(e){var t,r,n,i,a,o,s,u,c,h,f=e.x,p=e.y;if(f=xe(f-this.long0),this.sphere){if(a=Math.sin(p),h=Math.cos(p),n=Math.cos(f),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(r=this.mode===this.EQUIT?1+h*n:1+this.sinph0*a+this.cosph0*h*n,r<=be)return null;r=Math.sqrt(2/r),t=r*h*Math.sin(f),r*=this.mode===this.EQUIT?a:this.cosph0*a-this.sinph0*h*n}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(n=-n),Math.abs(p+this.lat0)<be)return null;r=et-p*.5,r=2*(this.mode===this.S_POLE?Math.cos(r):Math.sin(r)),t=r*Math.sin(f),r*=n}}else{switch(s=0,u=0,c=0,n=Math.cos(f),i=Math.sin(f),a=Math.sin(p),o=yi(this.e,a),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(s=o/this.qp,u=Math.sqrt(1-s*s)),this.mode){case this.OBLIQ:c=1+this.sinb1*s+this.cosb1*u*n;break;case this.EQUIT:c=1+u*n;break;case this.N_POLE:c=me+p,o=this.qp-o;break;case this.S_POLE:c=p-me,o=this.qp+o;break}if(Math.abs(c)<be)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:c=Math.sqrt(2/c),this.mode===this.OBLIQ?r=this.ymf*c*(this.cosb1*s-this.sinb1*u*n):r=(c=Math.sqrt(2/(1+u*n)))*s*this.ymf,t=this.xmf*c*u*i;break;case this.N_POLE:case this.S_POLE:o>=0?(t=(c=Math.sqrt(o))*i,r=n*(this.mode===this.S_POLE?c:-c)):t=r=0;break}}return e.x=this.a*t+this.x0,e.y=this.a*r+this.y0,e}function F5(e){e.x-=this.x0,e.y-=this.y0;var t=e.x/this.a,r=e.y/this.a,n,i,a,o,s,u,c;if(this.sphere){var h=0,f,p=0;if(f=Math.sqrt(t*t+r*r),i=f*.5,i>1)return null;switch(i=2*Math.asin(i),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(p=Math.sin(i),h=Math.cos(i)),this.mode){case this.EQUIT:i=Math.abs(f)<=be?0:Math.asin(r*p/f),t*=p,r=h*f;break;case this.OBLIQ:i=Math.abs(f)<=be?this.lat0:Math.asin(h*this.sinph0+r*p*this.cosph0/f),t*=p*this.cosph0,r=(h-Math.sin(i)*this.sinph0)*f;break;case this.N_POLE:r=-r,i=me-i;break;case this.S_POLE:i-=me;break}n=r===0&&(this.mode===this.EQUIT||this.mode===this.OBLIQ)?0:Math.atan2(t,r)}else{if(c=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(t/=this.dd,r*=this.dd,u=Math.sqrt(t*t+r*r),u<be)return e.x=this.long0,e.y=this.lat0,e;o=2*Math.asin(.5*u/this.rq),a=Math.cos(o),t*=o=Math.sin(o),this.mode===this.OBLIQ?(c=a*this.sinb1+r*o*this.cosb1/u,s=this.qp*c,r=u*this.cosb1*a-r*this.sinb1*o):(c=r*o/u,s=this.qp*c,r=u*a)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(r=-r),s=t*t+r*r,!s)return e.x=this.long0,e.y=this.lat0,e;c=1-s/this.qp,this.mode===this.S_POLE&&(c=-c)}n=Math.atan2(t,r),i=U5(Math.asin(c),this.apa)}return e.x=xe(this.long0+n),e.y=i,e}var z5=.3333333333333333,B5=.17222222222222222,W5=.10257936507936508,H5=.06388888888888888,j5=.0664021164021164,V5=.016415012942191543;function G5(e){var t,r=[];return r[0]=e*z5,t=e*e,r[0]+=t*B5,r[1]=t*H5,t*=e,r[0]+=t*W5,r[1]+=t*j5,r[2]=t*V5,r}function U5(e,t){var r=e+e;return e+t[0]*Math.sin(r)+t[1]*Math.sin(r+r)+t[2]*Math.sin(r+r+r)}var Y5=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"];const q5={init:I5,forward:$5,inverse:F5,names:Y5,S_POLE:k5,N_POLE:D5,EQUIT:N5,OBLIQ:L5};function Ti(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)}function X5(){Math.abs(this.lat1+this.lat2)<be||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=On(this.e3,this.sin_po,this.cos_po),this.qs1=yi(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=On(this.e3,this.sin_po,this.cos_po),this.qs2=yi(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=yi(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>be?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function Z5(e){var t=e.x,r=e.y;this.sin_phi=Math.sin(r),this.cos_phi=Math.cos(r);var n=yi(this.e3,this.sin_phi),i=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,a=this.ns0*xe(t-this.long0),o=i*Math.sin(a)+this.x0,s=this.rh-i*Math.cos(a)+this.y0;return e.x=o,e.y=s,e}function K5(e){var t,r,n,i,a,o;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),n=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),n=-1),i=0,t!==0&&(i=Math.atan2(n*e.x,n*e.y)),n=t*this.ns0/this.a,this.sphere?o=Math.asin((this.c-n*n)/(2*this.ns0)):(r=(this.c-n*n)/this.ns0,o=this.phi1z(this.e3,r)),a=xe(i/this.ns0+this.long0),e.x=a,e.y=o,e}function Q5(e,t){var r,n,i,a,o,s=Ti(.5*t);if(e<be)return s;for(var u=e*e,c=1;c<=25;c++)if(r=Math.sin(s),n=Math.cos(s),i=e*r,a=1-i*i,o=.5*a*a/n*(t/(1-u)-r/a+.5/e*Math.log((1-i)/(1+i))),s=s+o,Math.abs(o)<=1e-7)return s;return null}var J5=["Albers_Conic_Equal_Area","Albers","aea"];const eL={init:X5,forward:Z5,inverse:K5,names:J5,phi1z:Q5};function tL(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function rL(e){var t,r,n,i,a,o,s,u,c=e.x,h=e.y;return n=xe(c-this.long0),t=Math.sin(h),r=Math.cos(h),i=Math.cos(n),o=this.sin_p14*t+this.cos_p14*r*i,a=1,o>0||Math.abs(o)<=be?(s=this.x0+this.a*a*r*Math.sin(n)/o,u=this.y0+this.a*a*(this.cos_p14*t-this.sin_p14*r*i)/o):(s=this.x0+this.infinity_dist*r*Math.sin(n),u=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*r*i)),e.x=s,e.y=u,e}function nL(e){var t,r,n,i,a,o;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(i=Math.atan2(t,this.rc),r=Math.sin(i),n=Math.cos(i),o=Ti(n*this.sin_p14+e.y*r*this.cos_p14/t),a=Math.atan2(e.x*r,t*this.cos_p14*n-e.y*this.sin_p14*r),a=xe(this.long0+a)):(o=this.phic0,a=0),e.x=a,e.y=o,e}var iL=["gnom"];const aL={init:tL,forward:rL,inverse:nL,names:iL};function oL(e,t){var r=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(t)-r)<1e-6)return t<0?-1*me:me;for(var n=Math.asin(.5*t),i,a,o,s,u=0;u<30;u++)if(a=Math.sin(n),o=Math.cos(n),s=e*a,i=Math.pow(1-s*s,2)/(2*o)*(t/(1-e*e)-a/(1-s*s)+.5/e*Math.log((1-s)/(1+s))),n+=i,Math.abs(i)<=1e-10)return n;return NaN}function sL(){this.sphere||(this.k0=On(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function lL(e){var t=e.x,r=e.y,n,i,a=xe(t-this.long0);if(this.sphere)n=this.x0+this.a*a*Math.cos(this.lat_ts),i=this.y0+this.a*Math.sin(r)/Math.cos(this.lat_ts);else{var o=yi(this.e,Math.sin(r));n=this.x0+this.a*this.k0*a,i=this.y0+this.a*o*.5/this.k0}return e.x=n,e.y=i,e}function uL(e){e.x-=this.x0,e.y-=this.y0;var t,r;return this.sphere?(t=xe(this.long0+e.x/this.a/Math.cos(this.lat_ts)),r=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(r=oL(this.e,2*e.y*this.k0/this.a),t=xe(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=r,e}var cL=["cea"];const dL={init:sL,forward:lL,inverse:uL,names:cL};function hL(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)}function fL(e){var t=e.x,r=e.y,n=xe(t-this.long0),i=bo(r-this.lat0);return e.x=this.x0+this.a*n*this.rc,e.y=this.y0+this.a*i,e}function pL(e){var t=e.x,r=e.y;return e.x=xe(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=bo(this.lat0+(r-this.y0)/this.a),e}var mL=["Equirectangular","Equidistant_Cylindrical","eqc"];const gL={init:hL,forward:fL,inverse:pL,names:mL};var x1=20;function vL(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=vl(this.es),this.e1=yl(this.es),this.e2=bl(this.es),this.e3=_l(this.es),this.ml0=this.a*gr(this.e0,this.e1,this.e2,this.e3,this.lat0)}function yL(e){var t=e.x,r=e.y,n,i,a,o=xe(t-this.long0);if(a=o*Math.sin(r),this.sphere)Math.abs(r)<=be?(n=this.a*o,i=-1*this.a*this.lat0):(n=this.a*Math.sin(a)/Math.tan(r),i=this.a*(bo(r-this.lat0)+(1-Math.cos(a))/Math.tan(r)));else if(Math.abs(r)<=be)n=this.a*o,i=-1*this.ml0;else{var s=ao(this.a,this.e,Math.sin(r))/Math.tan(r);n=s*Math.sin(a),i=this.a*gr(this.e0,this.e1,this.e2,this.e3,r)-this.ml0+s*(1-Math.cos(a))}return e.x=n+this.x0,e.y=i+this.y0,e}function bL(e){var t,r,n,i,a,o,s,u,c;if(n=e.x-this.x0,i=e.y-this.y0,this.sphere)if(Math.abs(i+this.a*this.lat0)<=be)t=xe(n/this.a+this.long0),r=0;else{o=this.lat0+i/this.a,s=n*n/this.a/this.a+o*o,u=o;var h;for(a=x1;a;--a)if(h=Math.tan(u),c=-1*(o*(u*h+1)-u-.5*(u*u+s)*h)/((u-o)/h-1),u+=c,Math.abs(c)<=be){r=u;break}t=xe(this.long0+Math.asin(n*Math.tan(u)/this.a)/Math.sin(r))}else if(Math.abs(i+this.ml0)<=be)r=0,t=xe(this.long0+n/this.a);else{o=(this.ml0+i)/this.a,s=n*n/this.a/this.a+o*o,u=o;var f,p,g,b,v;for(a=x1;a;--a)if(v=this.e*Math.sin(u),f=Math.sqrt(1-v*v)*Math.tan(u),p=this.a*gr(this.e0,this.e1,this.e2,this.e3,u),g=this.e0-2*this.e1*Math.cos(2*u)+4*this.e2*Math.cos(4*u)-6*this.e3*Math.cos(6*u),b=p/this.a,c=(o*(f*b+1)-b-.5*f*(b*b+s))/(this.es*Math.sin(2*u)*(b*b+s-2*o*b)/(4*f)+(o-b)*(f*g-2/Math.sin(2*u))-g),u-=c,Math.abs(c)<=be){r=u;break}f=Math.sqrt(1-this.es*Math.pow(Math.sin(r),2))*Math.tan(r),t=xe(this.long0+Math.asin(n*f/this.a)/Math.sin(r))}return e.x=t,e.y=r,e}var _L=["Polyconic","poly"];const wL={init:vL,forward:yL,inverse:bL,names:_L};function xL(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013}function CL(e){var t,r=e.x,n=e.y,i=n-this.lat0,a=r-this.long0,o=i/Es*1e-5,s=a,u=1,c=0;for(t=1;t<=10;t++)u=u*o,c=c+this.A[t]*u;var h=c,f=s,p=1,g=0,b,v,w=0,C=0;for(t=1;t<=6;t++)b=p*h-g*f,v=g*h+p*f,p=b,g=v,w=w+this.B_re[t]*p-this.B_im[t]*g,C=C+this.B_im[t]*p+this.B_re[t]*g;return e.x=C*this.a+this.x0,e.y=w*this.a+this.y0,e}function TL(e){var t,r=e.x,n=e.y,i=r-this.x0,a=n-this.y0,o=a/this.a,s=i/this.a,u=1,c=0,h,f,p=0,g=0;for(t=1;t<=6;t++)h=u*o-c*s,f=c*o+u*s,u=h,c=f,p=p+this.C_re[t]*u-this.C_im[t]*c,g=g+this.C_im[t]*u+this.C_re[t]*c;for(var b=0;b<this.iterations;b++){var v=p,w=g,C,M,E=o,S=s;for(t=2;t<=6;t++)C=v*p-w*g,M=w*p+v*g,v=C,w=M,E=E+(t-1)*(this.B_re[t]*v-this.B_im[t]*w),S=S+(t-1)*(this.B_im[t]*v+this.B_re[t]*w);v=1,w=0;var P=this.B_re[1],R=this.B_im[1];for(t=2;t<=6;t++)C=v*p-w*g,M=w*p+v*g,v=C,w=M,P=P+t*(this.B_re[t]*v-this.B_im[t]*w),R=R+t*(this.B_im[t]*v+this.B_re[t]*w);var N=P*P+R*R;p=(E*P+S*R)/N,g=(S*P-E*R)/N}var B=p,U=g,K=1,Q=0;for(t=1;t<=9;t++)K=K*B,Q=Q+this.D[t]*K;var O=this.lat0+Q*Es*1e5,F=this.long0+U;return e.x=F,e.y=O,e}var ML=["New_Zealand_Map_Grid","nzmg"];const SL={init:xL,forward:CL,inverse:TL,names:ML};function EL(){}function PL(e){var t=e.x,r=e.y,n=xe(t-this.long0),i=this.x0+this.a*n,a=this.y0+this.a*Math.log(Math.tan(Math.PI/4+r/2.5))*1.25;return e.x=i,e.y=a,e}function AL(e){e.x-=this.x0,e.y-=this.y0;var t=xe(this.long0+e.x/this.a),r=2.5*(Math.atan(Math.exp(.8*e.y/this.a))-Math.PI/4);return e.x=t,e.y=r,e}var RL=["Miller_Cylindrical","mill"];const OL={init:EL,forward:PL,inverse:AL,names:RL};var kL=20;function DL(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=mx(this.es)}function NL(e){var t,r,n=e.x,i=e.y;if(n=xe(n-this.long0),this.sphere){if(!this.m)i=this.n!==1?Math.asin(this.n*Math.sin(i)):i;else for(var a=this.n*Math.sin(i),o=kL;o;--o){var s=(this.m*i+Math.sin(i)-a)/(this.m+Math.cos(i));if(i-=s,Math.abs(s)<be)break}t=this.a*this.C_x*n*(this.m+Math.cos(i)),r=this.a*this.C_y*i}else{var u=Math.sin(i),c=Math.cos(i);r=this.a*cd(i,u,c,this.en),t=this.a*n*c/Math.sqrt(1-this.es*u*u)}return e.x=t,e.y=r,e}function LL(e){var t,r,n,i;return e.x-=this.x0,n=e.x/this.a,e.y-=this.y0,t=e.y/this.a,this.sphere?(t/=this.C_y,n=n/(this.C_x*(this.m+Math.cos(t))),this.m?t=Ti((this.m*t+Math.sin(t))/this.n):this.n!==1&&(t=Ti(Math.sin(t)/this.n)),n=xe(n+this.long0),t=bo(t)):(t=gx(e.y/this.a,this.es,this.en),i=Math.abs(t),i<me?(i=Math.sin(t),r=this.long0+e.x*Math.sqrt(1-this.es*i*i)/(this.a*Math.cos(t)),n=xe(r)):i-be<me&&(n=this.long0)),e.x=n,e.y=t,e}var IL=["Sinusoidal","sinu"];const $L={init:DL,forward:NL,inverse:LL,names:IL};function FL(){}function zL(e){for(var t=e.x,r=e.y,n=xe(t-this.long0),i=r,a=Math.PI*Math.sin(r);;){var o=-(i+Math.sin(i)-a)/(1+Math.cos(i));if(i+=o,Math.abs(o)<be)break}i/=2,Math.PI/2-Math.abs(r)<be&&(n=0);var s=.900316316158*this.a*n*Math.cos(i)+this.x0,u=1.4142135623731*this.a*Math.sin(i)+this.y0;return e.x=s,e.y=u,e}function BL(e){var t,r;e.x-=this.x0,e.y-=this.y0,r=e.y/(1.4142135623731*this.a),Math.abs(r)>.999999999999&&(r=.999999999999),t=Math.asin(r);var n=xe(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),r=(2*t+Math.sin(2*t))/Math.PI,Math.abs(r)>1&&(r=1);var i=Math.asin(r);return e.x=n,e.y=i,e}var WL=["Mollweide","moll"];const HL={init:FL,forward:zL,inverse:BL,names:WL};function jL(){Math.abs(this.lat1+this.lat2)<be||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=vl(this.es),this.e1=yl(this.es),this.e2=bl(this.es),this.e3=_l(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=On(this.e,this.sinphi,this.cosphi),this.ml1=gr(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<be?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=On(this.e,this.sinphi,this.cosphi),this.ml2=gr(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=gr(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))}function VL(e){var t=e.x,r=e.y,n;if(this.sphere)n=this.a*(this.g-r);else{var i=gr(this.e0,this.e1,this.e2,this.e3,r);n=this.a*(this.g-i)}var a=this.ns*xe(t-this.long0),o=this.x0+n*Math.sin(a),s=this.y0+this.rh-n*Math.cos(a);return e.x=o,e.y=s,e}function GL(e){e.x-=this.x0,e.y=this.rh-e.y+this.y0;var t,r,n,i;this.ns>=0?(r=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(r=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var a=0;if(r!==0&&(a=Math.atan2(t*e.x,t*e.y)),this.sphere)return i=xe(this.long0+a/this.ns),n=bo(this.g-r/this.a),e.x=i,e.y=n,e;var o=this.g-r/this.a;return n=mc(o,this.e0,this.e1,this.e2,this.e3),i=xe(this.long0+a/this.ns),e.x=i,e.y=n,e}var UL=["Equidistant_Conic","eqdc"];const YL={init:jL,forward:VL,inverse:GL,names:UL};function qL(){this.R=this.a}function XL(e){var t=e.x,r=e.y,n=xe(t-this.long0),i,a;Math.abs(r)<=be&&(i=this.x0+this.R*n,a=this.y0);var o=Ti(2*Math.abs(r/Math.PI));(Math.abs(n)<=be||Math.abs(Math.abs(r)-me)<=be)&&(i=this.x0,r>=0?a=this.y0+Math.PI*this.R*Math.tan(.5*o):a=this.y0+Math.PI*this.R*-Math.tan(.5*o));var s=.5*Math.abs(Math.PI/n-n/Math.PI),u=s*s,c=Math.sin(o),h=Math.cos(o),f=h/(c+h-1),p=f*f,g=f*(2/c-1),b=g*g,v=Math.PI*this.R*(s*(f-b)+Math.sqrt(u*(f-b)*(f-b)-(b+u)*(p-b)))/(b+u);n<0&&(v=-v),i=this.x0+v;var w=u+f;return v=Math.PI*this.R*(g*w-s*Math.sqrt((b+u)*(u+1)-w*w))/(b+u),r>=0?a=this.y0+v:a=this.y0-v,e.x=i,e.y=a,e}function ZL(e){var t,r,n,i,a,o,s,u,c,h,f,p,g;return e.x-=this.x0,e.y-=this.y0,f=Math.PI*this.R,n=e.x/f,i=e.y/f,a=n*n+i*i,o=-Math.abs(i)*(1+a),s=o-2*i*i+n*n,u=-2*o+1+2*i*i+a*a,g=i*i/u+(2*s*s*s/u/u/u-9*o*s/u/u)/27,c=(o-s*s/3/u)/u,h=2*Math.sqrt(-c/3),f=3*g/c/h,Math.abs(f)>1&&(f>=0?f=1:f=-1),p=Math.acos(f)/3,e.y>=0?r=(-h*Math.cos(p+Math.PI/3)-s/3/u)*Math.PI:r=-(-h*Math.cos(p+Math.PI/3)-s/3/u)*Math.PI,Math.abs(n)<be?t=this.long0:t=xe(this.long0+Math.PI*(a-1+Math.sqrt(1+2*(n*n-i*i)+a*a))/2/n),e.x=t,e.y=r,e}var KL=["Van_der_Grinten_I","VanDerGrinten","vandg"];const QL={init:qL,forward:XL,inverse:ZL,names:KL};function JL(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)}function eI(e){var t=e.x,r=e.y,n=Math.sin(e.y),i=Math.cos(e.y),a=xe(t-this.long0),o,s,u,c,h,f,p,g,b,v,w,C,M,E,S,P,R,N,B,U,K,Q,O;return this.sphere?Math.abs(this.sin_p12-1)<=be?(e.x=this.x0+this.a*(me-r)*Math.sin(a),e.y=this.y0-this.a*(me-r)*Math.cos(a),e):Math.abs(this.sin_p12+1)<=be?(e.x=this.x0+this.a*(me+r)*Math.sin(a),e.y=this.y0+this.a*(me+r)*Math.cos(a),e):(N=this.sin_p12*n+this.cos_p12*i*Math.cos(a),P=Math.acos(N),R=P?P/Math.sin(P):1,e.x=this.x0+this.a*R*i*Math.sin(a),e.y=this.y0+this.a*R*(this.cos_p12*n-this.sin_p12*i*Math.cos(a)),e):(o=vl(this.es),s=yl(this.es),u=bl(this.es),c=_l(this.es),Math.abs(this.sin_p12-1)<=be?(h=this.a*gr(o,s,u,c,me),f=this.a*gr(o,s,u,c,r),e.x=this.x0+(h-f)*Math.sin(a),e.y=this.y0-(h-f)*Math.cos(a),e):Math.abs(this.sin_p12+1)<=be?(h=this.a*gr(o,s,u,c,me),f=this.a*gr(o,s,u,c,r),e.x=this.x0+(h+f)*Math.sin(a),e.y=this.y0+(h+f)*Math.cos(a),e):(p=n/i,g=ao(this.a,this.e,this.sin_p12),b=ao(this.a,this.e,n),v=Math.atan((1-this.es)*p+this.es*g*this.sin_p12/(b*i)),w=Math.atan2(Math.sin(a),this.cos_p12*Math.tan(v)-this.sin_p12*Math.cos(a)),w===0?B=Math.asin(this.cos_p12*Math.sin(v)-this.sin_p12*Math.cos(v)):Math.abs(Math.abs(w)-Math.PI)<=be?B=-Math.asin(this.cos_p12*Math.sin(v)-this.sin_p12*Math.cos(v)):B=Math.asin(Math.sin(a)*Math.cos(v)/Math.sin(w)),C=this.e*this.sin_p12/Math.sqrt(1-this.es),M=this.e*this.cos_p12*Math.cos(w)/Math.sqrt(1-this.es),E=C*M,S=M*M,U=B*B,K=U*B,Q=K*B,O=Q*B,P=g*B*(1-U*S*(1-S)/6+K/8*E*(1-2*S)+Q/120*(S*(4-7*S)-3*C*C*(1-7*S))-O/48*E),e.x=this.x0+P*Math.sin(w),e.y=this.y0+P*Math.cos(w),e))}function tI(e){e.x-=this.x0,e.y-=this.y0;var t,r,n,i,a,o,s,u,c,h,f,p,g,b,v,w,C,M,E,S,P,R,N,B;return this.sphere?(t=Math.sqrt(e.x*e.x+e.y*e.y),t>2*me*this.a?void 0:(r=t/this.a,n=Math.sin(r),i=Math.cos(r),a=this.long0,Math.abs(t)<=be?o=this.lat0:(o=Ti(i*this.sin_p12+e.y*n*this.cos_p12/t),s=Math.abs(this.lat0)-me,Math.abs(s)<=be?this.lat0>=0?a=xe(this.long0+Math.atan2(e.x,-e.y)):a=xe(this.long0-Math.atan2(-e.x,e.y)):a=xe(this.long0+Math.atan2(e.x*n,t*this.cos_p12*i-e.y*this.sin_p12*n))),e.x=a,e.y=o,e)):(u=vl(this.es),c=yl(this.es),h=bl(this.es),f=_l(this.es),Math.abs(this.sin_p12-1)<=be?(p=this.a*gr(u,c,h,f,me),t=Math.sqrt(e.x*e.x+e.y*e.y),g=p-t,o=mc(g/this.a,u,c,h,f),a=xe(this.long0+Math.atan2(e.x,-1*e.y)),e.x=a,e.y=o,e):Math.abs(this.sin_p12+1)<=be?(p=this.a*gr(u,c,h,f,me),t=Math.sqrt(e.x*e.x+e.y*e.y),g=t-p,o=mc(g/this.a,u,c,h,f),a=xe(this.long0+Math.atan2(e.x,e.y)),e.x=a,e.y=o,e):(t=Math.sqrt(e.x*e.x+e.y*e.y),w=Math.atan2(e.x,e.y),b=ao(this.a,this.e,this.sin_p12),C=Math.cos(w),M=this.e*this.cos_p12*C,E=-M*M/(1-this.es),S=3*this.es*(1-E)*this.sin_p12*this.cos_p12*C/(1-this.es),P=t/b,R=P-E*(1+E)*Math.pow(P,3)/6-S*(1+3*E)*Math.pow(P,4)/24,N=1-E*R*R/2-P*R*R*R/6,v=Math.asin(this.sin_p12*Math.cos(R)+this.cos_p12*Math.sin(R)*C),a=xe(this.long0+Math.asin(Math.sin(w)*Math.sin(R)/Math.cos(v))),B=Math.sin(v),o=Math.atan2((B-this.es*N*this.sin_p12)*Math.tan(v),B*(1-this.es)),e.x=a,e.y=o,e))}var rI=["Azimuthal_Equidistant","aeqd"];const nI={init:JL,forward:eI,inverse:tI,names:rI};function iI(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function aI(e){var t,r,n,i,a,o,s,u,c=e.x,h=e.y;return n=xe(c-this.long0),t=Math.sin(h),r=Math.cos(h),i=Math.cos(n),o=this.sin_p14*t+this.cos_p14*r*i,a=1,(o>0||Math.abs(o)<=be)&&(s=this.a*a*r*Math.sin(n),u=this.y0+this.a*a*(this.cos_p14*t-this.sin_p14*r*i)),e.x=s,e.y=u,e}function oI(e){var t,r,n,i,a,o,s;return e.x-=this.x0,e.y-=this.y0,t=Math.sqrt(e.x*e.x+e.y*e.y),r=Ti(t/this.a),n=Math.sin(r),i=Math.cos(r),o=this.long0,Math.abs(t)<=be?(s=this.lat0,e.x=o,e.y=s,e):(s=Ti(i*this.sin_p14+e.y*n*this.cos_p14/t),a=Math.abs(this.lat0)-me,Math.abs(a)<=be?(this.lat0>=0?o=xe(this.long0+Math.atan2(e.x,-e.y)):o=xe(this.long0-Math.atan2(-e.x,e.y)),e.x=o,e.y=s,e):(o=xe(this.long0+Math.atan2(e.x*n,t*this.cos_p14*i-e.y*this.sin_p14*n)),e.x=o,e.y=s,e))}var sI=["ortho"];const lI={init:iI,forward:aI,inverse:oI,names:sI};var Ot={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},tt={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function uI(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=me-et/2?this.face=Ot.TOP:this.lat0<=-(me-et/2)?this.face=Ot.BOTTOM:Math.abs(this.long0)<=et?this.face=Ot.FRONT:Math.abs(this.long0)<=me+et?this.face=this.long0>0?Ot.RIGHT:Ot.LEFT:this.face=Ot.BACK,this.es!==0&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)}function cI(e){var t={x:0,y:0},r,n,i,a,o,s,u={value:0};if(e.x-=this.long0,this.es!==0?r=Math.atan(this.one_minus_f_squared*Math.tan(e.y)):r=e.y,n=e.x,this.face===Ot.TOP)a=me-r,n>=et&&n<=me+et?(u.value=tt.AREA_0,i=n-me):n>me+et||n<=-(me+et)?(u.value=tt.AREA_1,i=n>0?n-zt:n+zt):n>-(me+et)&&n<=-et?(u.value=tt.AREA_2,i=n+me):(u.value=tt.AREA_3,i=n);else if(this.face===Ot.BOTTOM)a=me+r,n>=et&&n<=me+et?(u.value=tt.AREA_0,i=-n+me):n<et&&n>=-et?(u.value=tt.AREA_1,i=-n):n<-et&&n>=-(me+et)?(u.value=tt.AREA_2,i=-n-me):(u.value=tt.AREA_3,i=n>0?-n+zt:-n-zt);else{var c,h,f,p,g,b,v;this.face===Ot.RIGHT?n=Ja(n,+me):this.face===Ot.BACK?n=Ja(n,+zt):this.face===Ot.LEFT&&(n=Ja(n,-me)),p=Math.sin(r),g=Math.cos(r),b=Math.sin(n),v=Math.cos(n),c=g*v,h=g*b,f=p,this.face===Ot.FRONT?(a=Math.acos(c),i=vu(a,f,h,u)):this.face===Ot.RIGHT?(a=Math.acos(h),i=vu(a,f,-c,u)):this.face===Ot.BACK?(a=Math.acos(-c),i=vu(a,f,-h,u)):this.face===Ot.LEFT?(a=Math.acos(-h),i=vu(a,f,c,u)):(a=i=0,u.value=tt.AREA_0)}return s=Math.atan(12/zt*(i+Math.acos(Math.sin(i)*Math.cos(et))-me)),o=Math.sqrt((1-Math.cos(a))/(Math.cos(s)*Math.cos(s))/(1-Math.cos(Math.atan(1/Math.cos(i))))),u.value===tt.AREA_1?s+=me:u.value===tt.AREA_2?s+=zt:u.value===tt.AREA_3&&(s+=1.5*zt),t.x=o*Math.cos(s),t.y=o*Math.sin(s),t.x=t.x*this.a+this.x0,t.y=t.y*this.a+this.y0,e.x=t.x,e.y=t.y,e}function dI(e){var t={lam:0,phi:0},r,n,i,a,o,s,u,c,h,f={value:0};if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,n=Math.atan(Math.sqrt(e.x*e.x+e.y*e.y)),r=Math.atan2(e.y,e.x),e.x>=0&&e.x>=Math.abs(e.y)?f.value=tt.AREA_0:e.y>=0&&e.y>=Math.abs(e.x)?(f.value=tt.AREA_1,r-=me):e.x<0&&-e.x>=Math.abs(e.y)?(f.value=tt.AREA_2,r=r<0?r+zt:r-zt):(f.value=tt.AREA_3,r+=me),h=zt/12*Math.tan(r),o=Math.sin(h)/(Math.cos(h)-1/Math.sqrt(2)),s=Math.atan(o),i=Math.cos(r),a=Math.tan(n),u=1-i*i*a*a*(1-Math.cos(Math.atan(1/Math.cos(s)))),u<-1?u=-1:u>1&&(u=1),this.face===Ot.TOP)c=Math.acos(u),t.phi=me-c,f.value===tt.AREA_0?t.lam=s+me:f.value===tt.AREA_1?t.lam=s<0?s+zt:s-zt:f.value===tt.AREA_2?t.lam=s-me:t.lam=s;else if(this.face===Ot.BOTTOM)c=Math.acos(u),t.phi=c-me,f.value===tt.AREA_0?t.lam=-s+me:f.value===tt.AREA_1?t.lam=-s:f.value===tt.AREA_2?t.lam=-s-me:t.lam=s<0?-s-zt:-s+zt;else{var p,g,b;p=u,h=p*p,h>=1?b=0:b=Math.sqrt(1-h)*Math.sin(s),h+=b*b,h>=1?g=0:g=Math.sqrt(1-h),f.value===tt.AREA_1?(h=g,g=-b,b=h):f.value===tt.AREA_2?(g=-g,b=-b):f.value===tt.AREA_3&&(h=g,g=b,b=-h),this.face===Ot.RIGHT?(h=p,p=-g,g=h):this.face===Ot.BACK?(p=-p,g=-g):this.face===Ot.LEFT&&(h=p,p=g,g=-h),t.phi=Math.acos(-b)-me,t.lam=Math.atan2(g,p),this.face===Ot.RIGHT?t.lam=Ja(t.lam,-me):this.face===Ot.BACK?t.lam=Ja(t.lam,-zt):this.face===Ot.LEFT&&(t.lam=Ja(t.lam,+me))}if(this.es!==0){var v,w,C;v=t.phi<0?1:0,w=Math.tan(t.phi),C=this.b/Math.sqrt(w*w+this.one_minus_f_squared),t.phi=Math.atan(Math.sqrt(this.a*this.a-C*C)/(this.one_minus_f*C)),v&&(t.phi=-t.phi)}return t.lam+=this.long0,e.x=t.lam,e.y=t.phi,e}function vu(e,t,r,n){var i;return e<be?(n.value=tt.AREA_0,i=0):(i=Math.atan2(t,r),Math.abs(i)<=et?n.value=tt.AREA_0:i>et&&i<=me+et?(n.value=tt.AREA_1,i-=me):i>me+et||i<=-(me+et)?(n.value=tt.AREA_2,i=i>=0?i-zt:i+zt):(n.value=tt.AREA_3,i+=me)),i}function Ja(e,t){var r=e+t;return r<-zt?r+=Us:r>+zt&&(r-=Us),r}var hI=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"];const fI={init:uI,forward:cI,inverse:dI,names:hI};var Jf=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-986701e-12],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,18736e-12],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,934959e-12],[.7986,-.00755338,-500009e-10,935324e-12],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],_s=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-126793e-14,422642e-15],[.124,.0124,507171e-14,-160604e-14],[.186,.0123999,-190189e-13,600152e-14],[.248,.0124002,710039e-13,-224e-10],[.31,.0123992,-264997e-12,835986e-13],[.372,.0124029,988983e-12,-311994e-12],[.434,.0123893,-369093e-11,-435621e-12],[.4958,.0123198,-102252e-10,-345523e-12],[.5571,.0121916,-154081e-10,-582288e-12],[.6176,.0119938,-241424e-10,-525327e-12],[.6769,.011713,-320223e-10,-516405e-12],[.7346,.0113541,-397684e-10,-609052e-12],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-140374e-14],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],bx=.8487,_x=1.3523,wx=Tn/5,pI=1/wx,Ya=18,gc=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))},mI=function(e,t){return e[1]+t*(2*e[2]+t*3*e[3])};function gI(e,t,r,n){for(var i=t;n;--n){var a=e(i);if(i-=a,Math.abs(a)<r)break}return i}function vI(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"}function yI(e){var t=xe(e.x-this.long0),r=Math.abs(e.y),n=Math.floor(r*wx);n<0?n=0:n>=Ya&&(n=Ya-1),r=Tn*(r-pI*n);var i={x:gc(Jf[n],r)*t,y:gc(_s[n],r)};return e.y<0&&(i.y=-i.y),i.x=i.x*this.a*bx+this.x0,i.y=i.y*this.a*_x+this.y0,i}function bI(e){var t={x:(e.x-this.x0)/(this.a*bx),y:Math.abs(e.y-this.y0)/(this.a*_x)};if(t.y>=1)t.x/=Jf[Ya][0],t.y=e.y<0?-me:me;else{var r=Math.floor(t.y*Ya);for(r<0?r=0:r>=Ya&&(r=Ya-1);;)if(_s[r][0]>t.y)--r;else if(_s[r+1][0]<=t.y)++r;else break;var n=_s[r],i=5*(t.y-n[0])/(_s[r+1][0]-n[0]);i=gI(function(a){return(gc(n,a)-t.y)/mI(n,a)},i,be,100),t.x/=gc(Jf[r],i),t.y=(5*r+i)*ar,e.y<0&&(t.y=-t.y)}return t.x=xe(t.x+this.long0),t}var _I=["Robinson","robin"];const wI={init:vI,forward:yI,inverse:bI,names:_I};function xI(){this.name="geocent"}function CI(e){var t=ox(e,this.es,this.a);return t}function TI(e){var t=sx(e,this.es,this.a,this.b);return t}var MI=["Geocentric","geocentric","geocent","Geocent"];const SI={init:xI,forward:CI,inverse:TI,names:MI};var lr={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},es={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};function EI(){if(Object.keys(es).forEach(function(r){if(typeof this[r]=="undefined")this[r]=es[r].def;else{if(es[r].num&&isNaN(this[r]))throw new Error("Invalid parameter value, must be numeric "+r+" = "+this[r]);es[r].num&&(this[r]=parseFloat(this[r]))}es[r].degrees&&(this[r]=this[r]*ar)}.bind(this)),Math.abs(Math.abs(this.lat0)-me)<be?this.mode=this.lat0<0?lr.S_POLE:lr.N_POLE:Math.abs(this.lat0)<be?this.mode=lr.EQUIT:(this.mode=lr.OBLIQ,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var e=this.tilt,t=this.azi;this.cg=Math.cos(t),this.sg=Math.sin(t),this.cw=Math.cos(e),this.sw=Math.sin(e)}function PI(e){e.x-=this.long0;var t=Math.sin(e.y),r=Math.cos(e.y),n=Math.cos(e.x),i,a;switch(this.mode){case lr.OBLIQ:a=this.sinph0*t+this.cosph0*r*n;break;case lr.EQUIT:a=r*n;break;case lr.S_POLE:a=-t;break;case lr.N_POLE:a=t;break}switch(a=this.pn1/(this.p-a),i=a*r*Math.sin(e.x),this.mode){case lr.OBLIQ:a*=this.cosph0*t-this.sinph0*r*n;break;case lr.EQUIT:a*=t;break;case lr.N_POLE:a*=-(r*n);break;case lr.S_POLE:a*=r*n;break}var o,s;return o=a*this.cg+i*this.sg,s=1/(o*this.sw*this.h1+this.cw),i=(i*this.cg-a*this.sg)*this.cw*s,a=o*s,e.x=i*this.a,e.y=a*this.a,e}function AI(e){e.x/=this.a,e.y/=this.a;var t={x:e.x,y:e.y},r,n,i;i=1/(this.pn1-e.y*this.sw),r=this.pn1*e.x*i,n=this.pn1*e.y*this.cw*i,e.x=r*this.cg+n*this.sg,e.y=n*this.cg-r*this.sg;var a=Xr(e.x,e.y);if(Math.abs(a)<be)t.x=0,t.y=e.y;else{var o,s;switch(s=1-a*a*this.pfact,s=(this.p-Math.sqrt(s))/(this.pn1/a+a/this.pn1),o=Math.sqrt(1-s*s),this.mode){case lr.OBLIQ:t.y=Math.asin(o*this.sinph0+e.y*s*this.cosph0/a),e.y=(o-this.sinph0*Math.sin(t.y))*a,e.x*=s*this.cosph0;break;case lr.EQUIT:t.y=Math.asin(e.y*s/a),e.y=o*a,e.x*=s;break;case lr.N_POLE:t.y=Math.asin(o),e.y=-e.y;break;case lr.S_POLE:t.y=-Math.asin(o);break}t.x=Math.atan2(e.x,e.y)}return e.x=t.x+this.long0,e.y=t.y,e}var RI=["Tilted_Perspective","tpers"];const OI={init:EI,forward:PI,inverse:AI,names:RI};function kI(){if(this.flip_axis=this.sweep==="x"?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,this.es!==0){var e=1-this.es,t=1/e;this.radius_p=Math.sqrt(e),this.radius_p2=e,this.radius_p_inv2=t,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")}function DI(e){var t=e.x,r=e.y,n,i,a,o;if(t=t-this.long0,this.shape==="ellipse"){r=Math.atan(this.radius_p2*Math.tan(r));var s=this.radius_p/Xr(this.radius_p*Math.cos(r),Math.sin(r));if(i=s*Math.cos(t)*Math.cos(r),a=s*Math.sin(t)*Math.cos(r),o=s*Math.sin(r),(this.radius_g-i)*i-a*a-o*o*this.radius_p_inv2<0)return e.x=Number.NaN,e.y=Number.NaN,e;n=this.radius_g-i,this.flip_axis?(e.x=this.radius_g_1*Math.atan(a/Xr(o,n)),e.y=this.radius_g_1*Math.atan(o/n)):(e.x=this.radius_g_1*Math.atan(a/n),e.y=this.radius_g_1*Math.atan(o/Xr(a,n)))}else this.shape==="sphere"&&(n=Math.cos(r),i=Math.cos(t)*n,a=Math.sin(t)*n,o=Math.sin(r),n=this.radius_g-i,this.flip_axis?(e.x=this.radius_g_1*Math.atan(a/Xr(o,n)),e.y=this.radius_g_1*Math.atan(o/n)):(e.x=this.radius_g_1*Math.atan(a/n),e.y=this.radius_g_1*Math.atan(o/Xr(a,n))));return e.x=e.x*this.a,e.y=e.y*this.a,e}function NI(e){var t=-1,r=0,n=0,i,a,o,s;if(e.x=e.x/this.a,e.y=e.y/this.a,this.shape==="ellipse"){this.flip_axis?(n=Math.tan(e.y/this.radius_g_1),r=Math.tan(e.x/this.radius_g_1)*Xr(1,n)):(r=Math.tan(e.x/this.radius_g_1),n=Math.tan(e.y/this.radius_g_1)*Xr(1,r));var u=n/this.radius_p;if(i=r*r+u*u+t*t,a=2*this.radius_g*t,o=a*a-4*i*this.C,o<0)return e.x=Number.NaN,e.y=Number.NaN,e;s=(-a-Math.sqrt(o))/(2*i),t=this.radius_g+s*t,r*=s,n*=s,e.x=Math.atan2(r,t),e.y=Math.atan(n*Math.cos(e.x)/t),e.y=Math.atan(this.radius_p_inv2*Math.tan(e.y))}else if(this.shape==="sphere"){if(this.flip_axis?(n=Math.tan(e.y/this.radius_g_1),r=Math.tan(e.x/this.radius_g_1)*Math.sqrt(1+n*n)):(r=Math.tan(e.x/this.radius_g_1),n=Math.tan(e.y/this.radius_g_1)*Math.sqrt(1+r*r)),i=r*r+n*n+t*t,a=2*this.radius_g*t,o=a*a-4*i*this.C,o<0)return e.x=Number.NaN,e.y=Number.NaN,e;s=(-a-Math.sqrt(o))/(2*i),t=this.radius_g+s*t,r*=s,n*=s,e.x=Math.atan2(r,t),e.y=Math.atan(n*Math.cos(e.x)/t)}return e.x=e.x+this.long0,e}var LI=["Geostationary Satellite View","Geostationary_Satellite","geos"];const II={init:kI,forward:DI,inverse:NI,names:LI};var Ps=1.340264,As=-.081106,Rs=893e-6,Os=.003796,vc=Math.sqrt(3)/2;function $I(){this.es=0,this.long0=this.long0!==void 0?this.long0:0}function FI(e){var t=xe(e.x-this.long0),r=e.y,n=Math.asin(vc*Math.sin(r)),i=n*n,a=i*i*i;return e.x=t*Math.cos(n)/(vc*(Ps+3*As*i+a*(7*Rs+9*Os*i))),e.y=n*(Ps+As*i+a*(Rs+Os*i)),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function zI(e){e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a;var t=1e-9,r=12,n=e.y,i,a,o,s,u,c;for(c=0;c<r&&(i=n*n,a=i*i*i,o=n*(Ps+As*i+a*(Rs+Os*i))-e.y,s=Ps+3*As*i+a*(7*Rs+9*Os*i),n-=u=o/s,!(Math.abs(u)<t));++c);return i=n*n,a=i*i*i,e.x=vc*e.x*(Ps+3*As*i+a*(7*Rs+9*Os*i))/Math.cos(n),e.y=Math.asin(Math.sin(n)/vc),e.x=xe(e.x+this.long0),e}var BI=["eqearth","Equal Earth","Equal_Earth"];const WI={init:$I,forward:FI,inverse:zI,names:BI};function HI(e){e.Proj.projections.add(Hu),e.Proj.projections.add(ju),e.Proj.projections.add(j4),e.Proj.projections.add(J4),e.Proj.projections.add(a5),e.Proj.projections.add(c5),e.Proj.projections.add(g5),e.Proj.projections.add(w5),e.Proj.projections.add(S5),e.Proj.projections.add(O5),e.Proj.projections.add(q5),e.Proj.projections.add(eL),e.Proj.projections.add(aL),e.Proj.projections.add(dL),e.Proj.projections.add(gL),e.Proj.projections.add(wL),e.Proj.projections.add(SL),e.Proj.projections.add(OL),e.Proj.projections.add($L),e.Proj.projections.add(HL),e.Proj.projections.add(YL),e.Proj.projections.add(QL),e.Proj.projections.add(nI),e.Proj.projections.add(lI),e.Proj.projections.add(fI),e.Proj.projections.add(wI),e.Proj.projections.add(SI),e.Proj.projections.add(OI),e.Proj.projections.add(II),e.Proj.projections.add(WI)}Nr.defaultDatum="WGS84";Nr.Proj=En;Nr.WGS84=new Nr.Proj("WGS84");Nr.Point=io;Nr.toPoint=lx;Nr.defs=fr;Nr.nadgrid=GN;Nr.transform=pc;Nr.mgrs=s4;Nr.version="__VERSION__";HI(Nr);const jI=Object.freeze(Object.defineProperty({__proto__:null,default:Nr},Symbol.toStringTag,{value:"Module"})),VI=_.getAugmentedNamespace(jI);(function(e){(function(t){var r,n;r=Kw,n=VI,e.exports=t(r,n)})(function(t,r){return r.__esModule&&r.default&&(r=r.default),t.Proj={},t.Proj._isProj4Obj=function(n){return typeof n.inverse!="undefined"&&typeof n.forward!="undefined"},t.Proj.Projection=t.Class.extend({initialize:function(n,i,a){var o=t.Proj._isProj4Obj(n);this._proj=o?n:this._projFromCodeDef(n,i),this.bounds=o?i:a},project:function(n){var i=this._proj.forward([n.lng,n.lat]);return new t.Point(i[0],i[1])},unproject:function(n,i){var a=this._proj.inverse([n.x,n.y]);return new t.LatLng(a[1],a[0],i)},_projFromCodeDef:function(n,i){if(i)r.defs(n,i);else if(r.defs[n]===void 0){var a=n.split(":");if(a.length>3&&(n=a[a.length-3]+":"+a[a.length-1]),r.defs[n]===void 0)throw"No projection definition for code "+n}return r(n)}}),t.Proj.CRS=t.Class.extend({includes:t.CRS,options:{transformation:new t.Transformation(1,0,-1,0)},initialize:function(n,i,a){var o,s,u,c;if(t.Proj._isProj4Obj(n)?(s=n,o=s.srsCode,c=i||{},this.projection=new t.Proj.Projection(s,c.bounds)):(o=n,u=i,c=a||{},this.projection=new t.Proj.Projection(o,u,c.bounds)),t.Util.setOptions(this,c),this.code=o,this.transformation=this.options.transformation,this.options.origin&&(this.transformation=new t.Transformation(1,-this.options.origin[0],-1,this.options.origin[1])),this.options.scales)this._scales=this.options.scales;else if(this.options.resolutions){this._scales=[];for(var h=this.options.resolutions.length-1;h>=0;h--)this.options.resolutions[h]&&(this._scales[h]=1/this.options.resolutions[h])}this.infinite=!this.options.bounds},scale:function(n){var i=Math.floor(n),a,o,s,u;return n===i?this._scales[n]:(a=this._scales[i],o=this._scales[i+1],s=o-a,u=n-i,a+s*u)},zoom:function(n){var i=this._closestElement(this._scales,n),a=this._scales.indexOf(i),o,s,u;return n===i?a:i===void 0?-1/0:(s=a+1,o=this._scales[s],o===void 0?1/0:(u=o-i,(n-i)/u+a))},distance:t.CRS.Earth.distance,R:t.CRS.Earth.R,_closestElement:function(n,i){for(var a,o=n.length;o--;)n[o]<=i&&(a===void 0||a<n[o])&&(a=n[o]);return a}}),t.Proj.GeoJSON=t.GeoJSON.extend({initialize:function(n,i){this._callLevel=0,t.GeoJSON.prototype.initialize.call(this,n,i)},addData:function(n){var i;n&&(n.crs&&n.crs.type==="name"?i=new t.Proj.CRS(n.crs.properties.name):n.crs&&n.crs.type&&(i=new t.Proj.CRS(n.crs.type+":"+n.crs.properties.code)),i!==void 0&&(this.options.coordsToLatLng=function(a){var o=t.point(a[0],a[1]);return i.projection.unproject(o)})),this._callLevel++;try{t.GeoJSON.prototype.addData.call(this,n)}finally{this._callLevel--,this._callLevel===0&&delete this.options.coordsToLatLng}}}),t.Proj.geoJson=function(n,i){return new t.Proj.GeoJSON(n,i)},t.Proj.ImageOverlay=t.ImageOverlay.extend({initialize:function(n,i,a){t.ImageOverlay.prototype.initialize.call(this,n,null,a),this._projectedBounds=i},_animateZoom:function(n){var i=this._map.getZoomScale(n.zoom),a=t.point(this._projectedBounds.min.x,this._projectedBounds.max.y),o=this._projectedToNewLayerPoint(a,n.zoom,n.center);t.DomUtil.setTransform(this._image,o,i)},_reset:function(){var n=this._map.getZoom(),i=this._map.getPixelOrigin(),a=t.bounds(this._transform(this._projectedBounds.min,n)._subtract(i),this._transform(this._projectedBounds.max,n)._subtract(i)),o=a.getSize();t.DomUtil.setPosition(this._image,a.min),this._image.style.width=o.x+"px",this._image.style.height=o.y+"px"},_projectedToNewLayerPoint:function(n,i,a){var o=this._map.getSize()._divideBy(2),s=this._map.project(a,i)._subtract(o)._round(),u=s.add(this._map._getMapPanePos());return this._transform(n,i)._subtract(u)},_transform:function(n,i){var a=this._map.options.crs,o=a.transformation,s=a.scale(i);return o.transform(n,s)}}),t.Proj.imageOverlay=function(n,i,a){return new t.Proj.ImageOverlay(n,i,a)},t.Proj})})(Qw);var GI=Qw.exports;const UI=250;function xx(e){const t=e.chart.animation.init.duration==="auto"?UI:e.chart.animation.init.duration;return{animate:t!==0,duration:t/1e3}}function YI(e,t,r={}){t.length&&e.fitBounds(t.map(n=>[n.getLatLng().lat,n.getLatLng().lng]),T({maxZoom:4},r))}const qI=[{officialName:"Afghanistan",allNames:["af","afġānistān","afghanistan","afg"],id:"AFG"},{id:"ALA",officialName:"Åland Islands",allNames:["ax","ala","åland islands","aland islands"]},{officialName:"Albania",allNames:["al","shqipëri","shqipëria","shqipnia","albania","alb"],id:"ALB"},{officialName:"Algeria",allNames:["dz","dzayer","algérie","algeria","dza"],id:"DZA"},{officialName:"American Samoa",allNames:["as","amerika sāmoa","amelika sāmoa","sāmoa amelika","american samoa","asm"],id:"ASM"},{id:"AND",officialName:"Andorra",allNames:["ad","and","andorra"]},{officialName:"Angola",allNames:["ao","república de angola","ʁɛpublika de an'ɡɔla","angola","ago"],id:"AGO"},{officialName:"Anguilla",allNames:["ai","anguilla","aia"],id:"AIA"},{id:"ATA",officialName:"Antarctica",allNames:["aq","ata","antarctica"]},{officialName:"Antigua and Barbuda",allNames:["ag","antigua and barbuda","atg"],id:"ATG"},{officialName:"Argentina",allNames:["ar","argentine republic","república argentina","argentina","arg"],id:"ARG"},{officialName:"Armenia",allNames:["am","hayastan","republic of armenia","հայաստանի հանրապետություն","armenia","arm"],id:"ARM"},{officialName:"Aruba",allNames:["aw","aruba","abw"],id:"ABW"},{officialName:"Australia",allNames:["au","australia","aus"],id:"AUS"},{officialName:"Austria",allNames:["at","österreich","osterreich","oesterreich","austria","aut"],id:"AUT"},{officialName:"Azerbaijan",allNames:["az","republic of azerbaijan","azərbaycan respublikası","azerbaijan","aze","azerbaijan republic"],id:"AZE"},{officialName:"Bahrain",allNames:["bh","kingdom of bahrain","mamlakat al-baḥrayn","bahrain","bhr"],id:"BHR"},{officialName:"Bangladesh",allNames:["bd","people's republic of bangladesh","gônôprôjatôntri bangladesh","bangladesh","bgd"],id:"BGD"},{officialName:"Barbados",allNames:["bb","barbados","brb"],id:"BRB"},{officialName:"Belarus",allNames:["by","bielaruś","republic of belarus","белоруссия","республика беларусь","belorussiya","respublika belarus’","belarus","blr"],id:"BLR"},{officialName:"Belgium",allNames:["be","belgië","belgie","belgien","belgique","kingdom of belgium","koninkrijk belgië","royaume de belgique","königreich belgien","belgium","bel"],id:"BEL"},{officialName:"Belize",allNames:["bz","belize","blz"],id:"BLZ"},{officialName:"Benin",allNames:["bj","republic of benin","république du bénin","benin","ben"],id:"BEN"},{officialName:"Bermuda",allNames:["bm","the islands ofbermuda","the bermudas","somers isles","bermuda","bmu"],id:"BMU"},{officialName:"Bhutan",allNames:["bt","kingdom of bhutan","bhutan","btn"],id:"BTN"},{officialName:"Bolivia",allNames:["bo","buliwya","wuliwya","plurinational state of bolivia","estado plurinacional de bolivia","buliwya mamallaqta","wuliwya suyu","tetã volívia","bolivia","bol","plurinational state of"],id:"BOL"},{id:"BES",officialName:"Bonaire",allNames:["bq","bes","bonaire","sint eustatius and saba","caribbean netherlands"]},{officialName:"Bosnia and Herzegovina",allNames:["ba","bosnia-herzegovina","босна и херцеговина","bosnia and herzegovina","bih"],id:"BIH"},{officialName:"Botswana",allNames:["bw","republic of botswana","lefatshe la botswana","botswana","bwa"],id:"BWA"},{id:"BVT",officialName:"Bouvet Island",allNames:["bv","bvt","bouvet island"]},{officialName:"Brazil",allNames:["br","brasil","federative republic of brazil","república federativa do brasil","brazil","bra"],id:"BRA"},{officialName:"British Indian Ocean Territory",allNames:["io","british indian ocean territory","iot"],id:"IOT"},{officialName:"Brunei",allNames:["bn","nation of brunei","the abode of peace","brunei","brn","brunei darussalam"],id:"BRN"},{officialName:"Bulgaria",allNames:["bg","republic of bulgaria","република българия","bulgaria","bgr"],id:"BGR"},{officialName:"Burkina Faso",allNames:["bf","burkina faso","bfa"],id:"BFA"},{officialName:"Burundi",allNames:["bi","republic of burundi","republika y'uburundi","république du burundi","burundi","bdi"],id:"BDI"},{officialName:"Cambodia",allNames:["kh","kingdom of cambodia","cambodia","khm"],id:"KHM"},{officialName:"Cameroon",allNames:["cm","republic of cameroon","république du cameroun","cameroon","cmr"],id:"CMR"},{officialName:"Canada",allNames:["ca","canada","can"],id:"CAN"},{officialName:"Cape Verde",allNames:["cv","republic of cabo verde","república de cabo verde","cape verde","cpv"],id:"CPV"},{officialName:"Cayman Islands",allNames:["ky","cayman islands","cym"],id:"CYM"},{officialName:"Central African Republic",allNames:["cf","central african republic","république centrafricaine","central african republic","caf"],id:"CAF"},{officialName:"Chad",allNames:["td","tchad","republic of chad","république du tchad","chad","tcd"],id:"TCD"},{officialName:"Chile",allNames:["cl","republic of chile","república de chile","chile","chl"],id:"CHL"},{officialName:"China",allNames:["cn","zhōngguó","zhongguo","zhonghua","people's republic of china","中华人民共和国","zhōnghuá rénmín gònghéguó","china","chn"],id:"CHN"},{officialName:"Christmas Island",allNames:["cx","territory of christmas island","christmas island","cxr"],id:"CXR"},{officialName:"Cocos (Keeling) Islands",allNames:["cc","territoryof the cocos (keeling) islands","keeling islands","cocos (keeling) islands","cck","cocos islands","cocos [keeling] islands"],id:"CCK"},{officialName:"Colombia",allNames:["co","republic of colombia","república de colombia","colombia","col"],id:"COL"},{officialName:"Comoros",allNames:["km","union of the comoros","union des comores","udzima wa komori","al-ittiḥād al-qumurī","comoros","com"],id:"COM"},{officialName:"Cook Islands",allNames:["ck","kūki 'āirani","cook islands","cok"],id:"COK"},{officialName:"Costa Rica",allNames:["cr","republic of costa rica","república de costa rica","costa rica","cri"],id:"CRI"},{officialName:"Croatia",allNames:["hr","hrvatska","republic of croatia","republika hrvatska","croatia","hrv","croatia, republic of","croatia democratic republic of the"],id:"HRV"},{officialName:"Cuba",allNames:["cu","republic of cuba","república de cuba","cuba","cub"],id:"CUB"},{id:"CUW",officialName:"Curaçao",allNames:["cw","cuw","curaçao","curacao"]},{officialName:"Cyprus",allNames:["cy","kýpros","kıbrıs","republic of cyprus","κυπριακή δημοκρατία","kıbrıs cumhuriyeti","cyprus","cyp"],id:"CYP"},{officialName:"Czech Republic",allNames:["cz","česká republika","česko","czech republic","cze"],id:"CZE"},{officialName:"Democratic Republic of the Congo",allNames:["cd","dr congo","congo-kinshasa","drc","democratic republic of the congo","cod","congo (kinshasa)","the democratic republic of the congo","congo, the democratic republic of the","congo [drc]","congo, dem. rep."],id:"COD"},{officialName:"Denmark",allNames:["dk","danmark","kingdom of denmark","kongeriget danmark","denmark","dnk"],id:"DNK"},{officialName:"Djibouti",allNames:["dj","jabuuti","gabuuti","republic of djibouti","république de djibouti","gabuutih ummuuno","jamhuuriyadda jabuuti","djibouti","dji"],id:"DJI"},{officialName:"Dominica",allNames:["dm","dominique","wai‘tu kubuli","commonwealth of dominica","dominica","dma"],id:"DMA"},{officialName:"Dominican Republic",allNames:["do","dominican republic","dom"],id:"DOM"},{officialName:"East Timor",allNames:["tl","east timor","democratic republic of timor-leste","república democrática de timor-leste","repúblika demokrátika timór-leste","east timor","tls","timor-leste"],id:"TLS"},{officialName:"Ecuador",allNames:["ec","republic of ecuador","república del ecuador","ecuador","ecu"],id:"ECU"},{officialName:"Egypt",allNames:["eg","arab republic of egypt","egypt","egy"],id:"EGY"},{officialName:"El Salvador",allNames:["sv","republic of el salvador","república de el salvador","el salvador","slv"],id:"SLV"},{officialName:"Equatorial Guinea",allNames:["gq","republic of equatorial guinea","república de guinea ecuatorial","république de guinée équatoriale","república da guiné equatorial","equatorial guinea","gnq"],id:"GNQ"},{officialName:"Eritrea",allNames:["er","state of eritrea","ሃገረ ኤርትራ","dawlatiritriyá","ʾertrā","iritriyā","eritrea","eri"],id:"ERI"},{officialName:"Estonia",allNames:["ee","eesti","republic of estonia","eesti vabariik","estonia","est"],id:"EST"},{officialName:"Ethiopia",allNames:["et","ʾītyōṗṗyā","federal democratic republic of ethiopia","የኢትዮጵያ ፌዴራላዊ ዲሞክራሲያዊ ሪፐብሊክ","ethiopia","eth"],id:"ETH"},{officialName:"Falkland Islands",allNames:["fk","islas malvinas","falkland islands","flk","falkland islands (malvinas)","falkland islands (islas malvinas)","falkland islands [malvinas]","falkland islands [islas malvinas]"],id:"FLK"},{officialName:"Faroe Islands",allNames:["fo","føroyar","færøerne","faroe islands","fro"],id:"FRO"},{officialName:"Federated States of Micronesia",allNames:["fm","federated states of micronesia","federated states of micronesia","fsm","micronesia","federated states of"],id:"FSM"},{officialName:"Fiji",allNames:["fj","viti","republic of fiji","matanitu ko viti","fijī gaṇarājya","fiji","fji"],id:"FJI"},{officialName:"Finland",allNames:["fi","suomi","republic of finland","suomen tasavalta","republiken finland","finland","fin"],id:"FIN"},{officialName:"France",allNames:["fr","french republic","république française","france","fra"],id:"FRA"},{officialName:"French Guiana",allNames:["gf","guiana","guyane","french guiana","guf"],id:"GUF"},{officialName:"French Polynesia",allNames:["pf","polynésie française","french polynesia","pōrīnetia farāni","french polynesia","pyf"],id:"PYF"},{officialName:"French Southern and Antarctic Lands",allNames:["tf","french southern andantarctic lands","atf","french southern territories"],id:"ATF"},{officialName:"Gabon",allNames:["ga","gabonese republic","république gabonaise","gabon","gab","gabon republic"],id:"GAB"},{officialName:"Georgia",allNames:["ge","sakartvelo","georgia","geo"],id:"GEO"},{officialName:"Germany",allNames:["de","federal republic of germany","bundesrepublik deutschland","germany","deu"],id:"DEU"},{officialName:"Ghana",allNames:["gh","ghana","gha"],id:"GHA"},{officialName:"Gibraltar",allNames:["gi","gibraltar","gib"],id:"GIB"},{officialName:"Greece",allNames:["gr","elláda","hellenic republic","ελληνική δημοκρατία","greece","grc"],id:"GRC"},{officialName:"Greenland",allNames:["gl","grønland","greenland","grl"],id:"GRL"},{officialName:"Grenada",allNames:["gd","grenada","grd"],id:"GRD"},{officialName:"Guadeloupe",allNames:["gp","gwadloup","guadeloupe","glp"],id:"GLP"},{officialName:"Guam",allNames:["gu","guåhån","guam","gum"],id:"GUM"},{officialName:"Guatemala",allNames:["gt","guatemala","gtm"],id:"GTM"},{officialName:"Guernsey",allNames:["gg","bailiwick of guernsey","bailliage de guernesey","guernsey","ggy"],id:"GGY"},{officialName:"Guinea",allNames:["gn","republic of guinea","république de guinée","guinea","gin"],id:"GIN"},{officialName:"Guinea-Bissau",allNames:["gw","republic of guinea-bissau","república da guiné-bissau","guinea-bissau","gnb"],id:"GNB"},{officialName:"Guyana",allNames:["gy","co-operative republic of guyana","guyana","guy"],id:"GUY"},{officialName:"Haiti",allNames:["ht","republic of haiti","république d'haïti","repiblik ayiti","haiti","hti"],id:"HTI"},{officialName:"Heard Island and McDonald Islands",allNames:["hm","heard island and mcdonald islands","hmd","heard and mcdonald islands"],id:"HMD"},{officialName:"Honduras",allNames:["hn","republic of honduras","república de honduras","honduras","hnd"],id:"HND"},{officialName:"Hong Kong",allNames:["hk","香港","hongkong","hkg","hong kong","hong kong, china"],id:"HKG"},{officialName:"Hungary",allNames:["hu","hungary","hun"],id:"HUN"},{officialName:"Iceland",allNames:["is","island","republic of iceland","lýðveldið ísland","iceland","isl"],id:"ISL"},{officialName:"India",allNames:["in","bhārat","republic of india","bharat ganrajya","india","ind"],id:"IND"},{officialName:"Indonesia",allNames:["id","republic of indonesia","republik indonesia","indonesia","idn"],id:"IDN"},{officialName:"Iran",allNames:["ir","islamic republic of iran","jomhuri-ye eslāmi-ye irān","iran","irn","islamic republic of"],id:"IRN"},{officialName:"Iraq",allNames:["iq","republic of iraq","jumhūriyyat al-‘irāq","iraq","irq"],id:"IRQ"},{officialName:"Ireland",allNames:["ie","éire","republic of ireland","poblacht na héireann","ireland","irl"],id:"IRL"},{officialName:"Isle of Man",allNames:["im","ellan vannin","mann","mannin","isle of man","imn"],id:"IMN"},{officialName:"Israel",allNames:["il","state of israel","medīnat yisrā'el","israel","isr"],id:"ISR"},{officialName:"Italy",allNames:["it","italian republic","repubblica italiana","italy","ita"],id:"ITA"},{officialName:"Ivory Coast",allNames:["ci","ivory coast","republic of côte d'ivoire","république de côte d'ivoire","ivory coast","civ","côte d'ivoire","cote d'ivoire","cote divoire","cã´te d'ivoire","cote d'lvoire"],id:"CIV"},{officialName:"Jamaica",allNames:["jm","jamaica","jam"],id:"JAM"},{officialName:"Japan",allNames:["jp","nippon","nihon","japan","jpn"],id:"JPN"},{officialName:"Jersey",allNames:["je","bailiwick of jersey","bailliage de jersey","bailliage dé jèrri","jersey","jey"],id:"JEY"},{officialName:"Jordan",allNames:["jo","hashemite kingdomof jordan","al-mamlakah al-urdunīyah al-hāshimīyah","jordan","jor"],id:"JOR"},{officialName:"Kazakhstan",allNames:["kz","qazaqstan","казахстан","republic of kazakhstan","қазақстан республикасы","qazaqstan respublïkası","республика казахстан","respublika kazakhstan","kazakhstan","kaz"],id:"KAZ"},{officialName:"Kenya",allNames:["ke","republic of kenya","jamhuri ya kenya","kenya","ken"],id:"KEN"},{officialName:"Kiribati",allNames:["ki","republic of kiribati","ribaberiki kiribati","kiribati","kir"],id:"KIR"},{officialName:"Kuwait",allNames:["kw","state of kuwait","dawlat al-kuwait","kuwait","kwt"],id:"KWT"},{officialName:"Kyrgyzstan",allNames:["kg","киргизия","kyrgyz republic","кыргыз республикасы","kyrgyz respublikasy","kyrgyzstan","kgz"],id:"KGZ"},{officialName:"Laos",allNames:["la","lao","lao people's democratic republic","sathalanalat paxathipatai paxaxon lao","laos","lao"],id:"LAO"},{officialName:"Latvia",allNames:["lv","republic of latvia","latvijas republika","latvia","lva"],id:"LVA"},{officialName:"Lebanon",allNames:["lb","lebanese republic","al-jumhūrīyah al-libnānīyah","lebanon","lbn"],id:"LBN"},{officialName:"Lesotho",allNames:["ls","kingdom of lesotho","muso oa lesotho","lesotho","lso"],id:"LSO"},{officialName:"Liberia",allNames:["lr","republic of liberia","liberia","lbr"],id:"LBR"},{officialName:"Libya",allNames:["ly","state of libya","dawlat libya","libya","lby"],id:"LBY"},{officialName:"Liechtenstein",allNames:["li","principality of liechtenstein","fürstentum liechtenstein","liechtenstein","lie"],id:"LIE"},{officialName:"Lithuania",allNames:["lt","republic of lithuania","lietuvos respublika","lithuania","ltu"],id:"LTU"},{officialName:"Luxembourg",allNames:["lu","grand duchy of luxembourg","grand-duché de luxembourg","großherzogtum luxemburg","groussherzogtum lëtzebuerg","luxembourg","lux"],id:"LUX"},{officialName:"Macau",allNames:["mo","澳门","macao special administrative region of the people's republic of china","中華人民共和國澳門特別行政區","região administrativa especial de macau da república popular da china","macau","mac","macao","macao, china","macau, china"],id:"MAC"},{officialName:"Madagascar",allNames:["mg","republic of madagascar","repoblikan'i madagasikara","république de madagascar","madagascar","mdg"],id:"MDG"},{officialName:"Malawi",allNames:["mw","republic of malawi","malawi","mwi"],id:"MWI"},{officialName:"Malaysia",allNames:["my","malaysia","mys"],id:"MYS"},{officialName:"Maldives",allNames:["mv","maldive islands","republic of the maldives","dhivehi raajjeyge jumhooriyya","maldives","mdv"],id:"MDV"},{officialName:"Mali",allNames:["ml","republic of mali","république du mali","mali","mli"],id:"MLI"},{officialName:"Malta",allNames:["mt","republic of malta","repubblika ta' malta","malta","mlt"],id:"MLT"},{officialName:"Marshall Islands",allNames:["mh","republic of the marshall islands","aolepān aorōkin m̧ajeļ","marshall islands","mhl"],id:"MHL"},{officialName:"Martinique",allNames:["mq","martinique","mtq"],id:"MTQ"},{officialName:"Mauritania",allNames:["mr","islamic republic of mauritania","al-jumhūriyyah al-ʾislāmiyyah al-mūrītāniyyah","mauritania","mrt"],id:"MRT"},{officialName:"Mauritius",allNames:["mu","republic of mauritius","république de maurice","mauritius","mus"],id:"MUS"},{officialName:"Mayotte",allNames:["yt","department of mayotte","département de mayotte","mayotte","myt"],id:"MYT"},{officialName:"Mexico",allNames:["mx","mexicanos","united mexican states","estados unidos mexicanos","mexico","mex"],id:"MEX"},{officialName:"Moldova",allNames:["md","republic of moldova","republica moldova","moldova","mda","republic of"],id:"MDA"},{officialName:"Monaco",allNames:["mc","principality of monaco","principauté de monaco","monaco","mco"],id:"MCO"},{officialName:"Mongolia",allNames:["mn","mongolia","mng"],id:"MNG"},{id:"MNE",officialName:"Montenegro",allNames:["me","mne","montenegro"]},{officialName:"Montserrat",allNames:["ms","montserrat","msr"],id:"MSR"},{officialName:"Morocco",allNames:["ma","kingdom of morocco","al-mamlakah al-maġribiyah","morocco","mar","morroco"],id:"MAR"},{officialName:"Mozambique",allNames:["mz","republic of mozambique","república de moçambique","mozambique","moz"],id:"MOZ"},{id:"MMR",officialName:"Myanmar",allNames:["mm","mmr","myanmar","myanmar (burma)","myanmar [burma]","burma"]},{officialName:"Namibia",allNames:["na","namibië","republic of namibia","namibia","nam"],id:"NAM"},{officialName:"Nauru",allNames:["nr","naoero","pleasant island","republic of nauru","ripublik naoero","nauru","nru"],id:"NRU"},{officialName:"Nepal",allNames:["np","federal democratic republic of nepal","loktāntrik ganatantra nepāl","nepal","npl"],id:"NPL"},{officialName:"Netherlands",allNames:["nl","holland","nederland","netherlands","nld","the netherlands"],id:"NLD"},{officialName:"New Caledonia",allNames:["nc","new caledonia","ncl"],id:"NCL"},{officialName:"New Zealand",allNames:["nz","aotearoa","new zealand","nzl"],id:"NZL"},{officialName:"Nicaragua",allNames:["ni","republic of nicaragua","república de nicaragua","nicaragua","nic"],id:"NIC"},{officialName:"Niger",allNames:["ne","nijar","republic of niger","république du niger","niger","ner"],id:"NER"},{officialName:"Nigeria",allNames:["ng","nijeriya","naíjíríà","federal republic of nigeria","nigeria","nga"],id:"NGA"},{officialName:"Niue",allNames:["nu","niue","niu"],id:"NIU"},{officialName:"Norfolk Island",allNames:["nf","territory of norfolk island","teratri of norf'k ailen","norfolk island","nfk"],id:"NFK"},{officialName:"North Korea",allNames:["kp","democratic people's republic of korea","조선민주주의인민공화국","chosŏn minjujuŭi inmin konghwaguk","north korea","prk","korea, democratic people's republic of","korea, north"],id:"PRK"},{officialName:"Northern Mariana Islands",allNames:["mp","commonwealth of the northern mariana islands","sankattan siha na islas mariånas","northern mariana islands","mnp"],id:"MNP"},{officialName:"Norway",allNames:["no","norge","noreg","kingdom of norway","kongeriket norge","kongeriket noreg","norway","nor"],id:"NOR"},{officialName:"Oman",allNames:["om","sultanate of oman","salṭanat ʻumān","oman","omn"],id:"OMN"},{officialName:"Pakistan",allNames:["pk","pākistān","islamic republic of pakistan","islāmī jumhūriya'eh pākistān","pakistan","pak"],id:"PAK"},{officialName:"Palau",allNames:["pw","republic of palau","beluuer a belau","palau","plw"],id:"PLW"},{id:"PSE",officialName:"Palestinian Authority",allNames:["ps","pse","palestinian authority","palestinian territory"]},{officialName:"Panama",allNames:["pa","republic of panama","república de panamá","panama","pan"],id:"PAN"},{officialName:"Papua New Guinea",allNames:["pg","independent state of papua new guinea","independen stet bilong papua niugini","papua new guinea","png"],id:"PNG"},{officialName:"Paraguay",allNames:["py","republic of paraguay","república del paraguay","tetã paraguái","paraguay","pry"],id:"PRY"},{officialName:"Peru",allNames:["pe","republic of peru","república del perú","peru","per"],id:"PER"},{officialName:"Philippines",allNames:["ph","republic of the philippines","repúblika ng pilipinas","philippines","phl"],id:"PHL"},{officialName:"Pitcairn Islands",allNames:["pn","pitcairn henderson ducie and oeno islands","pitcairn islands","pcn","pitcairn"],id:"PCN"},{officialName:"Poland",allNames:["pl","republic of poland","rzeczpospolita polska","poland","pol"],id:"POL"},{officialName:"Portugal",allNames:["pt","portuguesa","portuguese republic","república portuguesa","portugal","prt"],id:"PRT"},{officialName:"Puerto Rico",allNames:["pr","commonwealth of puerto rico","estado libre asociado de puerto rico","puerto rico","pri"],id:"PRI"},{officialName:"Qatar",allNames:["qa","state of qatar","dawlat qaṭar","qatar","qat"],id:"QAT"},{officialName:"Republic of Macedonia",allNames:["mk","republic of macedonia","република македонија","republic of macedonia","mkd","macedonia","macedonia (fyrom)","macedonia [fyrom]","the former yugoslav republic of","the former yugoslav republic of macedonia"],id:"MKD"},{officialName:"Republic of the Congo",allNames:["cg","congo-brazzaville","republic of the congo","cog","congo (brazzaville)","congo [republic]","congo","congo, rep."],id:"COG"},{officialName:"Réunion",allNames:["re","reunion","réunion","reu","rã©union"],id:"REU"},{officialName:"Romania",allNames:["ro","rumania","roumania","românia","romania","rou"],id:"ROU"},{officialName:"Russia",allNames:["ru","rossiya","russian federation","российская федерация","rossiyskaya federatsiya","russia","rus"],id:"RUS"},{officialName:"Rwanda",allNames:["rw","republic of rwanda","repubulika y'u rwanda","république du rwanda","rwanda","rwa"],id:"RWA"},{id:"BLM",officialName:"Saint Barthélemy",allNames:["bl","blm","saint barthélemy","saint barthelemy","st barthelemy"]},{officialName:"Saint Helena",allNames:["sh","saint helena","shn","st helena","ascension and tristan da cunha"],id:"SHN"},{officialName:"Saint Kitts and Nevis",allNames:["kn","federation of saint christopher and nevis","saint kitts and nevis","kna","st kitts and nevis","saint kitts-nevis","st kitts-nevis"],id:"KNA"},{officialName:"Saint Lucia",allNames:["lc","saint lucia","lca","st lucia"],id:"LCA"},{officialName:"Saint Pierre and Miquelon",allNames:["pm","collectivité territoriale de saint-pierre-et-miquelon","saint pierre andmiquelon","spm","st pierre and miquelon","saint pierre and miquelon","st. pierre and miquelon"],id:"SPM"},{officialName:"Saint Vincent and the Grenadines",allNames:["vc","saint vincent and the grenadines","vct","st vincent and the grenadines"],id:"VCT"},{officialName:"Samoa",allNames:["ws","independent state of samoa","malo saʻoloto tutoʻatasi o sāmoa","samoa","wsm","western samoa"],id:"WSM"},{officialName:"San Marino",allNames:["sm","republic of san marino","repubblica di san marino","san marino","smr"],id:"SMR"},{officialName:"São Tomé and Príncipe",allNames:["st","democratic republic of são tomé and príncipe","república democrática de são tomé e príncipe","são tomé and príncipe","stp","sao tome and principe","sã£o tomã© and prã­ncipe"],id:"STP"},{officialName:"Saudi Arabia",allNames:["sa","kingdom of saudi arabia","al-mamlakah al-‘arabiyyah as-su‘ūdiyyah","saudi arabia","sau"],id:"SAU"},{officialName:"Senegal",allNames:["sn","republic of senegal","république du sénégal","senegal","sen"],id:"SEN"},{id:"SRB",officialName:"Serbia",allNames:["rs","srb","serbia"]},{officialName:"Seychelles",allNames:["sc","republic of seychelles","repiblik sesel","république des seychelles","seychelles","syc"],id:"SYC"},{officialName:"Sierra Leone",allNames:["sl","republic of sierra leone","sierra leone","sle"],id:"SLE"},{officialName:"Singapore",allNames:["sg","singapura","republik singapura","新加坡共和国","singapore","sgp"],id:"SGP"},{officialName:"Slovakia",allNames:["sk","slovak republic","slovenská republika","slovakia","svk","slovakia (slovak republic)"],id:"SVK"},{officialName:"Slovenia",allNames:["si","republic of slovenia","republika slovenija","slovenia","svn"],id:"SVN"},{officialName:"Solomon Islands",allNames:["sb","solomon islands","slb"],id:"SLB"},{officialName:"Somalia",allNames:["so","aṣ-ṣūmāl","federal republic of somalia","jamhuuriyadda federaalka soomaaliya","jumhūriyyat aṣ-ṣūmāl al-fiderāliyya","somalia","som"],id:"SOM"},{officialName:"South Africa",allNames:["za","rsa","suid-afrika","republic of south africa","south africa","zaf"],id:"ZAF"},{officialName:"South Georgia",allNames:["gs","south georgia and the south sandwich islands","south georgia","sgs"],id:"SGS"},{officialName:"South Korea",allNames:["kr","republic of korea","south korea","kor","korea, republic of","korea, south"],id:"KOR"},{officialName:"South Sudan",allNames:["ss","south sudan","ssd"],id:"SSD"},{officialName:"Spain",allNames:["es","kingdom of spain","reino deespaña","spain","esp"],id:"ESP"},{officialName:"Sri Lanka",allNames:["lk","ilaṅkai","democraticsocialist republic of sri lanka","sri lanka","lka"],id:"LKA"},{id:"SXM",officialName:"St Maarten",allNames:["sx","sxm","st maarten","sint maarten","sint maarten (dutch part)","saint-martin (pays-bas)"]},{id:"MAF",officialName:"St Martin (French part)",allNames:["mf","maf","st martin (french part)","saint martin (french part)","saint-martin (france)"]},{officialName:"Sudan",allNames:["sd","republic of the sudan","jumhūrīyat as-sūdān","sudan","sdn"],id:"SDN"},{officialName:"Suriname",allNames:["sr","sarnam","sranangron","republic of suriname","republiek suriname","suriname","sur"],id:"SUR"},{officialName:"Svalbard and Jan Mayen",allNames:["sj","svalbard and jan mayen islands","svalbard and jan mayen","sjm"],id:"SJM"},{officialName:"Swaziland",allNames:["sz","weswatini","swatini","ngwane","kingdom of swaziland","umbuso waseswatini","swaziland","swz"],id:"SWZ"},{officialName:"Sweden",allNames:["se","kingdom of sweden","konungariket sverige","sweden","swe"],id:"SWE"},{officialName:"Switzerland",allNames:["ch","swiss confederation","schweiz","suisse","svizzera","svizra","switzerland","che"],id:"CHE"},{officialName:"Syria",allNames:["sy","syrian arab republic","al-jumhūrīyah al-ʻarabīyah as-sūrīyah","syria","syr"],id:"SYR"},{officialName:"Taiwan",allNames:["tw","táiwān","republic of china","中華民國","zhōnghuá mínguó","taiwan","twn","taiwan, province of china"],id:"TWN"},{officialName:"Tajikistan",allNames:["tj","toçikiston","republic of tajikistan","ҷумҳурии тоҷикистон","çumhuriyi toçikiston","tajikistan","tjk"],id:"TJK"},{officialName:"Tanzania",allNames:["tz","united republic of tanzania","jamhuri ya muungano wa tanzania","tanzania","tza","united republic of"],id:"TZA"},{officialName:"Thailand",allNames:["th","prathet","thai","kingdom of thailand","ราชอาณาจักรไทย","ratcha anachak thai","thailand","tha"],id:"THA"},{officialName:"The Bahamas",allNames:["bs","commonwealth of the bahamas","the bahamas","bhs","bahamas"],id:"BHS"},{officialName:"The Gambia",allNames:["gm","republic of the gambia","the gambia","gmb","gambia"],id:"GMB"},{officialName:"Togo",allNames:["tg","togolese","togolese republic","république togolaise","togo","tgo"],id:"TGO"},{officialName:"Tokelau",allNames:["tk","tokelau","tkl"],id:"TKL"},{officialName:"Tonga",allNames:["to","tonga","ton"],id:"TON"},{officialName:"Trinidad and Tobago",allNames:["tt","republic of trinidad and tobago","trinidad and tobago","tto"],id:"TTO"},{officialName:"Tunisia",allNames:["tn","republic of tunisia","al-jumhūriyyah at-tūnisiyyah","tunisia","tun"],id:"TUN"},{officialName:"Turkey",allNames:["tr","turkiye","republic of turkey","türkiye cumhuriyeti","turkey","tur"],id:"TUR"},{officialName:"Turkmenistan",allNames:["tm","turkmenistan","tkm"],id:"TKM"},{id:"TCA",officialName:"Turks and Caicos Islands",allNames:["tc","tca","turks and caicos islands"]},{officialName:"Tuvalu",allNames:["tv","tuvalu","tuv"],id:"TUV"},{officialName:"Uganda",allNames:["ug","republic of uganda","jamhuri ya uganda","uganda","uga"],id:"UGA"},{officialName:"Ukraine",allNames:["ua","ukrayina","ukraine","ukr"],id:"UKR"},{officialName:"United Arab Emirates",allNames:["ae","uae","united arab emirates","are"],id:"ARE"},{officialName:"United Kingdom",allNames:["gb","uk","great britain","united kingdom","gbr","britain","england"],id:"GBR"},{officialName:"United States",allNames:["us","usa","united states of america","united states","usa"],id:"USA"},{id:"UMI",officialName:"United States Minor Outlying Islands",allNames:["um","umi","united states minor outlying islands"]},{officialName:"Uruguay",allNames:["uy","oriental republic of uruguay","república oriental del uruguay","uruguay","ury"],id:"URY"},{officialName:"Uzbekistan",allNames:["uz","republic of uzbekistan","o‘zbekiston respublikasi","ўзбекистон республикаси","uzbekistan","uzb"],id:"UZB"},{officialName:"Vanuatu",allNames:["vu","republic of vanuatu","ripablik blong vanuatu","république de vanuatu","vanuatu","vut"],id:"VUT"},{id:"VAT",officialName:"Vatican",allNames:["va","vat","vatican","vatican city","vatican city state","holy see (vatican city state)","holy see [vatican city state]"]},{officialName:"Venezuela",allNames:["ve","bolivarian republic of venezuela","república bolivariana de venezuela","venezuela","ven","bolivarian republic of"],id:"VEN"},{officialName:"Vietnam",allNames:["vn","socialist republic of vietnam","cộng hòa xã hội chủ nghĩa việt nam","vietnam","vnm","viet nam"],id:"VNM"},{id:"VGB",officialName:"Virgin Islands",allNames:["vg","vgb","virgin islands","british","british virgin islands","virgin islands (british)"]},{id:"VIR",officialName:"Virgin Islands",allNames:["vi","vir","virgin islands","u.s.","us virgin islands","u.s. virgin islands","virgin islands (u.s.)"]},{officialName:"Wallis and Futuna",allNames:["wf","territory of the wallis and futuna islands","territoire des îles wallis et futuna","wallis and futuna","wlf","wallis and futuna islands"],id:"WLF"},{officialName:"Western Sahara",allNames:["eh","taneẓroft tutrimt","western sahara","esh"],id:"ESH"},{officialName:"Yemen",allNames:["ye","yemeni republic","al-jumhūriyyah al-yamaniyyah","yemen","yem"],id:"YEM"},{officialName:"Zambia",allNames:["zm","republic of zambia","zambia","zmb"],id:"ZMB"},{officialName:"Zimbabwe",allNames:["zw","republic of zimbabwe","zimbabwe","zwe"],id:"ZWE"}],XI="#d6d9dc",ZI="#FBFAFA";function KI(e,t,r){return e.reduce((i,a)=>{const o=a.id;let s;if(r==="world"){const u=qI.find(c=>c.id===o);u?s=t.find(c=>u.allNames.includes(c.geoName.trim().toLowerCase())):s=t.find(c=>c.geoName.trim().toLowerCase()===a.properties.name.trim().toLowerCase())}else s=t.find(u=>u.geoName.trim().toLowerCase()===a.properties.name.trim().toLowerCase());return i[o]={geoDataElement:s,style:{color:XI,weight:1,opacity:1,fillColor:s&&s.color||ZI,fillOpacity:1},displayName:(s==null?void 0:s.geoName)||a.properties.name},i},{})}const QI=GI.CRS,JI=({geoJson:e,geoData:t,dataOptions:r,mapType:n})=>{const{themeSettings:i}=it(),a=k.useRef(null),o=k.useRef(null),[s]=k.useState(qn.layerGroup()),u=k.useMemo(()=>KI(e.features,t,n),[e,t,n]);return k.useEffect(()=>{a.current&&!o.current&&(o.current=n6(a.current,n),s.addTo(o.current))},[s,n]),k.useEffect(()=>{const c=qn.geoJSON(i6(e,u),{style:h=>u[h.id].style,onEachFeature:(h,f)=>{f.bindTooltip(r6(h,u,r.originalValueTitle),{sticky:!0}),f.on({mouseover:p=>{const g=p.target;e6(g,h.id,u)},mouseout:p=>{const g=p.target;t6(g,h.id,u)}}),r.onAreaClick&&f.on({click:p=>{const g=u[h.id].geoDataElement;g&&r.onAreaClick(g,p.originalEvent)}})}});o.current&&(s.clearLayers(),s.addLayer(c),o.current.fitBounds(c.getBounds(),xx(i)))},[r,u,e,s,i]),_.jsx("div",{ref:a,className:"csdk-map-container",style:{width:"100%",height:"100%",minWidth:"300px",minHeight:"400px",backgroundColor:"#c2dbe9"}})};function e6(e,t,r){if(r[t]){const i=r[t].style.fillColor;e.setStyle({weight:2,color:_.scaleBrightness(i,-.2),fillColor:_.scaleBrightness(i,.05),dashArray:"",fillOpacity:1,opacity:1}),e.bringToFront()}}function t6(e,t,r){e.setStyle(r[t].style)}function r6(e,t,r){const n=t[e.id],{formattedOriginalValue:i}=n.geoDataElement||{};return`
210
+ <div>
211
+ <span>${n.displayName}<span>
212
+ ${n.geoDataElement&&i!==void 0?`<br/>${r}: <span>${i}<span>`:""}
213
+ </div>`}function n6(e,t){return t==="world"?qn.map(e,{attributionControl:!1,scrollWheelZoom:!0,minZoom:1,zoom:1,maxZoom:5,center:[0,0]}):qn.map(e,{crs:new QI("EPSG:5070","+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs",{resolutions:[16384,10240,8192,4096]}),center:[35.96852047262865,-96.96520768859223],zoom:.4,maxZoom:3,attributionControl:!1})}function i6(e,t){if(t.ATA&&t.ATA.geoDataElement)return e;{const r=e.features.filter(n=>n.id!=="ATA");return $(T({},e),{features:r})}}var a6="[object Date]";function o6(e){return I.isObjectLike(e)&&I.baseGetTag(e)==a6}var C1=I.nodeUtil&&I.nodeUtil.isDate,s6=C1?I.baseUnary(C1):o6,ep={exports:{}},Cx={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Cx);var Dt=Cx.exports,tp={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,i){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a]);return n}e.exports=t.default})(tp,tp.exports);var l6=tp.exports;(function(e,t){var r=Dt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(l6);function i(a){return(0,n.default)({},a)}e.exports=t.default})(ep,ep.exports);var u6=ep.exports;const c6=_.getDefaultExportFromCjs(u6);var rp={exports:{}},np={exports:{}},ip={exports:{}},Tx={exports:{}};(function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Tx);var Mx=Tx.exports,ap={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,i){if(i.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+i.length+" present")}e.exports=t.default})(ap,ap.exports);var br=ap.exports;(function(e,t){var r=Dt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Mx),i=r(br);function a(o){return(0,i.default)(1,arguments),o instanceof Date||(0,n.default)(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}e.exports=t.default})(ip,ip.exports);var d6=ip.exports,op={exports:{}};(function(e,t){var r=Dt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Mx),i=r(br);function a(o){(0,i.default)(1,arguments);var s=Object.prototype.toString.call(o);return o instanceof Date||(0,n.default)(o)==="object"&&s==="[object Date]"?new Date(o.getTime()):typeof o=="number"||s==="[object Number]"?new Date(o):((typeof o=="string"||s==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(op,op.exports);var Nn=op.exports;(function(e,t){var r=Dt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(d6),i=r(Nn),a=r(br);function o(s){if((0,a.default)(1,arguments),!(0,n.default)(s)&&typeof s!="number")return!1;var u=(0,i.default)(s);return!isNaN(Number(u))}e.exports=t.default})(np,np.exports);var h6=np.exports,sp={exports:{}},lp={exports:{}},up={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){if(n===null||n===!0||n===!1)return NaN;var i=Number(n);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}e.exports=t.default})(up,up.exports);var la=up.exports;const f6=_.getDefaultExportFromCjs(la);(function(e,t){var r=Dt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(la),i=r(Nn),a=r(br);function o(s,u){(0,a.default)(2,arguments);var c=(0,i.default)(s).getTime(),h=(0,n.default)(u);return new Date(c+h)}e.exports=t.default})(lp,lp.exports);var p6=lp.exports;(function(e,t){var r=Dt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(p6),i=r(br),a=r(la);function o(s,u){(0,i.default)(2,arguments);var c=(0,a.default)(u);return(0,n.default)(s,-c)}e.exports=t.default})(sp,sp.exports);var m6=sp.exports,cp={exports:{}},dp={exports:{}};(function(e,t){var r=Dt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Nn),i=r(br),a=864e5;function o(s){(0,i.default)(1,arguments);var u=(0,n.default)(s),c=u.getTime();u.setUTCMonth(0,1),u.setUTCHours(0,0,0,0);var h=u.getTime(),f=c-h;return Math.floor(f/a)+1}e.exports=t.default})(dp,dp.exports);var g6=dp.exports,hp={exports:{}},fp={exports:{}};(function(e,t){var r=Dt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Nn),i=r(br);function a(o){(0,i.default)(1,arguments);var s=1,u=(0,n.default)(o),c=u.getUTCDay(),h=(c<s?7:0)+c-s;return u.setUTCDate(u.getUTCDate()-h),u.setUTCHours(0,0,0,0),u}e.exports=t.default})(fp,fp.exports);var z0=fp.exports,pp={exports:{}},mp={exports:{}};(function(e,t){var r=Dt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Nn),i=r(br),a=r(z0);function o(s){(0,i.default)(1,arguments);var u=(0,n.default)(s),c=u.getUTCFullYear(),h=new Date(0);h.setUTCFullYear(c+1,0,4),h.setUTCHours(0,0,0,0);var f=(0,a.default)(h),p=new Date(0);p.setUTCFullYear(c,0,4),p.setUTCHours(0,0,0,0);var g=(0,a.default)(p);return u.getTime()>=f.getTime()?c+1:u.getTime()>=g.getTime()?c:c-1}e.exports=t.default})(mp,mp.exports);var Sx=mp.exports;(function(e,t){var r=Dt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Sx),i=r(z0),a=r(br);function o(s){(0,a.default)(1,arguments);var u=(0,n.default)(s),c=new Date(0);c.setUTCFullYear(u,0,4),c.setUTCHours(0,0,0,0);var h=(0,i.default)(c);return h}e.exports=t.default})(pp,pp.exports);var v6=pp.exports;(function(e,t){var r=Dt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(Nn),i=r(z0),a=r(v6),o=r(br),s=6048e5;function u(c){(0,o.default)(1,arguments);var h=(0,n.default)(c),f=(0,i.default)(h).getTime()-(0,a.default)(h).getTime();return Math.round(f/s)+1}e.exports=t.default})(hp,hp.exports);var y6=hp.exports,gp={exports:{}},vp={exports:{}},ua={};Object.defineProperty(ua,"__esModule",{value:!0});ua.getDefaultOptions=b6;ua.setDefaultOptions=_6;var Ex={};function b6(){return Ex}function _6(e){Ex=e}(function(e,t){var r=Dt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=r(Nn),i=r(br),a=r(la),o=ua;function s(u,c){var h,f,p,g,b,v,w,C;(0,i.default)(1,arguments);var M=(0,o.getDefaultOptions)(),E=(0,a.default)((h=(f=(p=(g=c==null?void 0:c.weekStartsOn)!==null&&g!==void 0?g:c==null||(b=c.locale)===null||b===void 0||(v=b.options)===null||v===void 0?void 0:v.weekStartsOn)!==null&&p!==void 0?p:M.weekStartsOn)!==null&&f!==void 0?f:(w=M.locale)===null||w===void 0||(C=w.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&h!==void 0?h:0);if(!(E>=0&&E<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var S=(0,n.default)(u),P=S.getUTCDay(),R=(P<E?7:0)+P-E;return S.setUTCDate(S.getUTCDate()-R),S.setUTCHours(0,0,0,0),S}e.exports=t.default})(vp,vp.exports);var B0=vp.exports,yp={exports:{}},bp={exports:{}};(function(e,t){var r=Dt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(Nn),i=r(br),a=r(B0),o=r(la),s=ua;function u(c,h){var f,p,g,b,v,w,C,M;(0,i.default)(1,arguments);var E=(0,n.default)(c),S=E.getUTCFullYear(),P=(0,s.getDefaultOptions)(),R=(0,o.default)((f=(p=(g=(b=h==null?void 0:h.firstWeekContainsDate)!==null&&b!==void 0?b:h==null||(v=h.locale)===null||v===void 0||(w=v.options)===null||w===void 0?void 0:w.firstWeekContainsDate)!==null&&g!==void 0?g:P.firstWeekContainsDate)!==null&&p!==void 0?p:(C=P.locale)===null||C===void 0||(M=C.options)===null||M===void 0?void 0:M.firstWeekContainsDate)!==null&&f!==void 0?f:1);if(!(R>=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var N=new Date(0);N.setUTCFullYear(S+1,0,R),N.setUTCHours(0,0,0,0);var B=(0,a.default)(N,h),U=new Date(0);U.setUTCFullYear(S,0,R),U.setUTCHours(0,0,0,0);var K=(0,a.default)(U,h);return E.getTime()>=B.getTime()?S+1:E.getTime()>=K.getTime()?S:S-1}e.exports=t.default})(bp,bp.exports);var Px=bp.exports;(function(e,t){var r=Dt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(Px),i=r(br),a=r(B0),o=r(la),s=ua;function u(c,h){var f,p,g,b,v,w,C,M;(0,i.default)(1,arguments);var E=(0,s.getDefaultOptions)(),S=(0,o.default)((f=(p=(g=(b=h==null?void 0:h.firstWeekContainsDate)!==null&&b!==void 0?b:h==null||(v=h.locale)===null||v===void 0||(w=v.options)===null||w===void 0?void 0:w.firstWeekContainsDate)!==null&&g!==void 0?g:E.firstWeekContainsDate)!==null&&p!==void 0?p:(C=E.locale)===null||C===void 0||(M=C.options)===null||M===void 0?void 0:M.firstWeekContainsDate)!==null&&f!==void 0?f:1),P=(0,n.default)(c,h),R=new Date(0);R.setUTCFullYear(P,0,S),R.setUTCHours(0,0,0,0);var N=(0,a.default)(R,h);return N}e.exports=t.default})(yp,yp.exports);var w6=yp.exports;(function(e,t){var r=Dt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(Nn),i=r(B0),a=r(w6),o=r(br),s=6048e5;function u(c,h){(0,o.default)(1,arguments);var f=(0,n.default)(c),p=(0,i.default)(f,h).getTime()-(0,a.default)(f,h).getTime();return Math.round(p/s)+1}e.exports=t.default})(gp,gp.exports);var x6=gp.exports,_p={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,i){for(var a=n<0?"-":"",o=Math.abs(n).toString();o.length<i;)o="0"+o;return a+o}e.exports=t.default})(_p,_p.exports);var Ax=_p.exports,wp={exports:{}};(function(e,t){var r=Dt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(Ax),i={y:function(s,u){var c=s.getUTCFullYear(),h=c>0?c:1-c;return(0,n.default)(u==="yy"?h%100:h,u.length)},M:function(s,u){var c=s.getUTCMonth();return u==="M"?String(c+1):(0,n.default)(c+1,2)},d:function(s,u){return(0,n.default)(s.getUTCDate(),u.length)},a:function(s,u){var c=s.getUTCHours()/12>=1?"pm":"am";switch(u){case"a":case"aa":return c.toUpperCase();case"aaa":return c;case"aaaaa":return c[0];case"aaaa":default:return c==="am"?"a.m.":"p.m."}},h:function(s,u){return(0,n.default)(s.getUTCHours()%12||12,u.length)},H:function(s,u){return(0,n.default)(s.getUTCHours(),u.length)},m:function(s,u){return(0,n.default)(s.getUTCMinutes(),u.length)},s:function(s,u){return(0,n.default)(s.getUTCSeconds(),u.length)},S:function(s,u){var c=u.length,h=s.getUTCMilliseconds(),f=Math.floor(h*Math.pow(10,c-3));return(0,n.default)(f,u.length)}},a=i;t.default=a,e.exports=t.default})(wp,wp.exports);var C6=wp.exports;(function(e,t){var r=Dt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(g6),i=r(y6),a=r(Sx),o=r(x6),s=r(Px),u=r(Ax),c=r(C6),h={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},f={G:function(C,M,E){var S=C.getUTCFullYear()>0?1:0;switch(M){case"G":case"GG":case"GGG":return E.era(S,{width:"abbreviated"});case"GGGGG":return E.era(S,{width:"narrow"});case"GGGG":default:return E.era(S,{width:"wide"})}},y:function(C,M,E){if(M==="yo"){var S=C.getUTCFullYear(),P=S>0?S:1-S;return E.ordinalNumber(P,{unit:"year"})}return c.default.y(C,M)},Y:function(C,M,E,S){var P=(0,s.default)(C,S),R=P>0?P:1-P;if(M==="YY"){var N=R%100;return(0,u.default)(N,2)}return M==="Yo"?E.ordinalNumber(R,{unit:"year"}):(0,u.default)(R,M.length)},R:function(C,M){var E=(0,a.default)(C);return(0,u.default)(E,M.length)},u:function(C,M){var E=C.getUTCFullYear();return(0,u.default)(E,M.length)},Q:function(C,M,E){var S=Math.ceil((C.getUTCMonth()+1)/3);switch(M){case"Q":return String(S);case"QQ":return(0,u.default)(S,2);case"Qo":return E.ordinalNumber(S,{unit:"quarter"});case"QQQ":return E.quarter(S,{width:"abbreviated",context:"formatting"});case"QQQQQ":return E.quarter(S,{width:"narrow",context:"formatting"});case"QQQQ":default:return E.quarter(S,{width:"wide",context:"formatting"})}},q:function(C,M,E){var S=Math.ceil((C.getUTCMonth()+1)/3);switch(M){case"q":return String(S);case"qq":return(0,u.default)(S,2);case"qo":return E.ordinalNumber(S,{unit:"quarter"});case"qqq":return E.quarter(S,{width:"abbreviated",context:"standalone"});case"qqqqq":return E.quarter(S,{width:"narrow",context:"standalone"});case"qqqq":default:return E.quarter(S,{width:"wide",context:"standalone"})}},M:function(C,M,E){var S=C.getUTCMonth();switch(M){case"M":case"MM":return c.default.M(C,M);case"Mo":return E.ordinalNumber(S+1,{unit:"month"});case"MMM":return E.month(S,{width:"abbreviated",context:"formatting"});case"MMMMM":return E.month(S,{width:"narrow",context:"formatting"});case"MMMM":default:return E.month(S,{width:"wide",context:"formatting"})}},L:function(C,M,E){var S=C.getUTCMonth();switch(M){case"L":return String(S+1);case"LL":return(0,u.default)(S+1,2);case"Lo":return E.ordinalNumber(S+1,{unit:"month"});case"LLL":return E.month(S,{width:"abbreviated",context:"standalone"});case"LLLLL":return E.month(S,{width:"narrow",context:"standalone"});case"LLLL":default:return E.month(S,{width:"wide",context:"standalone"})}},w:function(C,M,E,S){var P=(0,o.default)(C,S);return M==="wo"?E.ordinalNumber(P,{unit:"week"}):(0,u.default)(P,M.length)},I:function(C,M,E){var S=(0,i.default)(C);return M==="Io"?E.ordinalNumber(S,{unit:"week"}):(0,u.default)(S,M.length)},d:function(C,M,E){return M==="do"?E.ordinalNumber(C.getUTCDate(),{unit:"date"}):c.default.d(C,M)},D:function(C,M,E){var S=(0,n.default)(C);return M==="Do"?E.ordinalNumber(S,{unit:"dayOfYear"}):(0,u.default)(S,M.length)},E:function(C,M,E){var S=C.getUTCDay();switch(M){case"E":case"EE":case"EEE":return E.day(S,{width:"abbreviated",context:"formatting"});case"EEEEE":return E.day(S,{width:"narrow",context:"formatting"});case"EEEEEE":return E.day(S,{width:"short",context:"formatting"});case"EEEE":default:return E.day(S,{width:"wide",context:"formatting"})}},e:function(C,M,E,S){var P=C.getUTCDay(),R=(P-S.weekStartsOn+8)%7||7;switch(M){case"e":return String(R);case"ee":return(0,u.default)(R,2);case"eo":return E.ordinalNumber(R,{unit:"day"});case"eee":return E.day(P,{width:"abbreviated",context:"formatting"});case"eeeee":return E.day(P,{width:"narrow",context:"formatting"});case"eeeeee":return E.day(P,{width:"short",context:"formatting"});case"eeee":default:return E.day(P,{width:"wide",context:"formatting"})}},c:function(C,M,E,S){var P=C.getUTCDay(),R=(P-S.weekStartsOn+8)%7||7;switch(M){case"c":return String(R);case"cc":return(0,u.default)(R,M.length);case"co":return E.ordinalNumber(R,{unit:"day"});case"ccc":return E.day(P,{width:"abbreviated",context:"standalone"});case"ccccc":return E.day(P,{width:"narrow",context:"standalone"});case"cccccc":return E.day(P,{width:"short",context:"standalone"});case"cccc":default:return E.day(P,{width:"wide",context:"standalone"})}},i:function(C,M,E){var S=C.getUTCDay(),P=S===0?7:S;switch(M){case"i":return String(P);case"ii":return(0,u.default)(P,M.length);case"io":return E.ordinalNumber(P,{unit:"day"});case"iii":return E.day(S,{width:"abbreviated",context:"formatting"});case"iiiii":return E.day(S,{width:"narrow",context:"formatting"});case"iiiiii":return E.day(S,{width:"short",context:"formatting"});case"iiii":default:return E.day(S,{width:"wide",context:"formatting"})}},a:function(C,M,E){var S=C.getUTCHours(),P=S/12>=1?"pm":"am";switch(M){case"a":case"aa":return E.dayPeriod(P,{width:"abbreviated",context:"formatting"});case"aaa":return E.dayPeriod(P,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return E.dayPeriod(P,{width:"narrow",context:"formatting"});case"aaaa":default:return E.dayPeriod(P,{width:"wide",context:"formatting"})}},b:function(C,M,E){var S=C.getUTCHours(),P;switch(S===12?P=h.noon:S===0?P=h.midnight:P=S/12>=1?"pm":"am",M){case"b":case"bb":return E.dayPeriod(P,{width:"abbreviated",context:"formatting"});case"bbb":return E.dayPeriod(P,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return E.dayPeriod(P,{width:"narrow",context:"formatting"});case"bbbb":default:return E.dayPeriod(P,{width:"wide",context:"formatting"})}},B:function(C,M,E){var S=C.getUTCHours(),P;switch(S>=17?P=h.evening:S>=12?P=h.afternoon:S>=4?P=h.morning:P=h.night,M){case"B":case"BB":case"BBB":return E.dayPeriod(P,{width:"abbreviated",context:"formatting"});case"BBBBB":return E.dayPeriod(P,{width:"narrow",context:"formatting"});case"BBBB":default:return E.dayPeriod(P,{width:"wide",context:"formatting"})}},h:function(C,M,E){if(M==="ho"){var S=C.getUTCHours()%12;return S===0&&(S=12),E.ordinalNumber(S,{unit:"hour"})}return c.default.h(C,M)},H:function(C,M,E){return M==="Ho"?E.ordinalNumber(C.getUTCHours(),{unit:"hour"}):c.default.H(C,M)},K:function(C,M,E){var S=C.getUTCHours()%12;return M==="Ko"?E.ordinalNumber(S,{unit:"hour"}):(0,u.default)(S,M.length)},k:function(C,M,E){var S=C.getUTCHours();return S===0&&(S=24),M==="ko"?E.ordinalNumber(S,{unit:"hour"}):(0,u.default)(S,M.length)},m:function(C,M,E){return M==="mo"?E.ordinalNumber(C.getUTCMinutes(),{unit:"minute"}):c.default.m(C,M)},s:function(C,M,E){return M==="so"?E.ordinalNumber(C.getUTCSeconds(),{unit:"second"}):c.default.s(C,M)},S:function(C,M){return c.default.S(C,M)},X:function(C,M,E,S){var P=S._originalDate||C,R=P.getTimezoneOffset();if(R===0)return"Z";switch(M){case"X":return g(R);case"XXXX":case"XX":return b(R);case"XXXXX":case"XXX":default:return b(R,":")}},x:function(C,M,E,S){var P=S._originalDate||C,R=P.getTimezoneOffset();switch(M){case"x":return g(R);case"xxxx":case"xx":return b(R);case"xxxxx":case"xxx":default:return b(R,":")}},O:function(C,M,E,S){var P=S._originalDate||C,R=P.getTimezoneOffset();switch(M){case"O":case"OO":case"OOO":return"GMT"+p(R,":");case"OOOO":default:return"GMT"+b(R,":")}},z:function(C,M,E,S){var P=S._originalDate||C,R=P.getTimezoneOffset();switch(M){case"z":case"zz":case"zzz":return"GMT"+p(R,":");case"zzzz":default:return"GMT"+b(R,":")}},t:function(C,M,E,S){var P=S._originalDate||C,R=Math.floor(P.getTime()/1e3);return(0,u.default)(R,M.length)},T:function(C,M,E,S){var P=S._originalDate||C,R=P.getTime();return(0,u.default)(R,M.length)}};function p(w,C){var M=w>0?"-":"+",E=Math.abs(w),S=Math.floor(E/60),P=E%60;if(P===0)return M+String(S);var R=C;return M+String(S)+R+(0,u.default)(P,2)}function g(w,C){if(w%60===0){var M=w>0?"-":"+";return M+(0,u.default)(Math.abs(w)/60,2)}return b(w,C)}function b(w,C){var M=C||"",E=w>0?"-":"+",S=Math.abs(w),P=(0,u.default)(Math.floor(S/60),2),R=(0,u.default)(S%60,2);return E+P+M+R}var v=f;t.default=v,e.exports=t.default})(cp,cp.exports);var T6=cp.exports,xp={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(u,c){switch(u){case"P":return c.date({width:"short"});case"PP":return c.date({width:"medium"});case"PPP":return c.date({width:"long"});case"PPPP":default:return c.date({width:"full"})}},n=function(u,c){switch(u){case"p":return c.time({width:"short"});case"pp":return c.time({width:"medium"});case"ppp":return c.time({width:"long"});case"pppp":default:return c.time({width:"full"})}},i=function(u,c){var h=u.match(/(P+)(p+)?/)||[],f=h[1],p=h[2];if(!p)return r(u,c);var g;switch(f){case"P":g=c.dateTime({width:"short"});break;case"PP":g=c.dateTime({width:"medium"});break;case"PPP":g=c.dateTime({width:"long"});break;case"PPPP":default:g=c.dateTime({width:"full"});break}return g.replace("{{date}}",r(f,c)).replace("{{time}}",n(p,c))},a={p:n,P:i},o=a;t.default=o,e.exports=t.default})(xp,xp.exports);var M6=xp.exports,Cp={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){var i=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return i.setUTCFullYear(n.getFullYear()),n.getTime()-i.getTime()}e.exports=t.default})(Cp,Cp.exports);var Rx=Cp.exports;const T1=_.getDefaultExportFromCjs(Rx);var wl={};Object.defineProperty(wl,"__esModule",{value:!0});wl.isProtectedDayOfYearToken=P6;wl.isProtectedWeekYearToken=A6;wl.throwProtectedError=R6;var S6=["D","DD"],E6=["YY","YYYY"];function P6(e){return S6.indexOf(e)!==-1}function A6(e){return E6.indexOf(e)!==-1}function R6(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Tp={exports:{}},Mp={exports:{}},Sp={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},n=function(o,s,u){var c,h=r[o];return typeof h=="string"?c=h:s===1?c=h.one:c=h.other.replace("{{count}}",s.toString()),u!=null&&u.addSuffix?u.comparison&&u.comparison>0?"in "+c:c+" ago":c},i=n;t.default=i,e.exports=t.default})(Sp,Sp.exports);var O6=Sp.exports,Ep={exports:{}},Pp={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=i.width?String(i.width):n.defaultWidth,o=n.formats[a]||n.formats[n.defaultWidth];return o}}e.exports=t.default})(Pp,Pp.exports);var k6=Pp.exports;(function(e,t){var r=Dt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(k6),i={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},a={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},o={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s={date:(0,n.default)({formats:i,defaultWidth:"full"}),time:(0,n.default)({formats:a,defaultWidth:"full"}),dateTime:(0,n.default)({formats:o,defaultWidth:"full"})},u=s;t.default=u,e.exports=t.default})(Ep,Ep.exports);var D6=Ep.exports,Ap={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},n=function(o,s,u,c){return r[o]},i=n;t.default=i,e.exports=t.default})(Ap,Ap.exports);var N6=Ap.exports,Rp={exports:{}},Op={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(i,a){var o=a!=null&&a.context?String(a.context):"standalone",s;if(o==="formatting"&&n.formattingValues){var u=n.defaultFormattingWidth||n.defaultWidth,c=a!=null&&a.width?String(a.width):u;s=n.formattingValues[c]||n.formattingValues[u]}else{var h=n.defaultWidth,f=a!=null&&a.width?String(a.width):n.defaultWidth;s=n.values[f]||n.values[h]}var p=n.argumentCallback?n.argumentCallback(i):i;return s[p]}}e.exports=t.default})(Op,Op.exports);var L6=Op.exports;(function(e,t){var r=Dt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(L6),i={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},a={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},o={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},h=function(b,v){var w=Number(b),C=w%100;if(C>20||C<10)switch(C%10){case 1:return w+"st";case 2:return w+"nd";case 3:return w+"rd"}return w+"th"},f={ordinalNumber:h,era:(0,n.default)({values:i,defaultWidth:"wide"}),quarter:(0,n.default)({values:a,defaultWidth:"wide",argumentCallback:function(b){return b-1}}),month:(0,n.default)({values:o,defaultWidth:"wide"}),day:(0,n.default)({values:s,defaultWidth:"wide"}),dayPeriod:(0,n.default)({values:u,defaultWidth:"wide",formattingValues:c,defaultFormattingWidth:"wide"})},p=f;t.default=p,e.exports=t.default})(Rp,Rp.exports);var I6=Rp.exports,kp={exports:{}},Dp={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a){return function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=s.width,c=u&&a.matchPatterns[u]||a.matchPatterns[a.defaultMatchWidth],h=o.match(c);if(!h)return null;var f=h[0],p=u&&a.parsePatterns[u]||a.parsePatterns[a.defaultParseWidth],g=Array.isArray(p)?i(p,function(w){return w.test(f)}):n(p,function(w){return w.test(f)}),b;b=a.valueCallback?a.valueCallback(g):g,b=s.valueCallback?s.valueCallback(b):b;var v=o.slice(f.length);return{value:b,rest:v}}}function n(a,o){for(var s in a)if(a.hasOwnProperty(s)&&o(a[s]))return s}function i(a,o){for(var s=0;s<a.length;s++)if(o(a[s]))return s}e.exports=t.default})(Dp,Dp.exports);var $6=Dp.exports,Np={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.match(n.matchPattern);if(!o)return null;var s=o[0],u=i.match(n.parsePattern);if(!u)return null;var c=n.valueCallback?n.valueCallback(u[0]):u[0];c=a.valueCallback?a.valueCallback(c):c;var h=i.slice(s.length);return{value:c,rest:h}}}e.exports=t.default})(Np,Np.exports);var F6=Np.exports;(function(e,t){var r=Dt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r($6),i=r(F6),a=/^(\d+)(th|st|nd|rd)?/i,o=/\d+/i,s={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},u={any:[/^b/i,/^(a|c)/i]},c={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},h={any:[/1/i,/2/i,/3/i,/4/i]},f={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},p={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},g={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},b={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},v={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},w={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},C={ordinalNumber:(0,i.default)({matchPattern:a,parsePattern:o,valueCallback:function(S){return parseInt(S,10)}}),era:(0,n.default)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:u,defaultParseWidth:"any"}),quarter:(0,n.default)({matchPatterns:c,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any",valueCallback:function(S){return S+1}}),month:(0,n.default)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),day:(0,n.default)({matchPatterns:g,defaultMatchWidth:"wide",parsePatterns:b,defaultParseWidth:"any"}),dayPeriod:(0,n.default)({matchPatterns:v,defaultMatchWidth:"any",parsePatterns:w,defaultParseWidth:"any"})},M=C;t.default=M,e.exports=t.default})(kp,kp.exports);var z6=kp.exports;(function(e,t){var r=Dt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(O6),i=r(D6),a=r(N6),o=r(I6),s=r(z6),u={code:"en-US",formatDistance:n.default,formatLong:i.default,formatRelative:a.default,localize:o.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},c=u;t.default=c,e.exports=t.default})(Mp,Mp.exports);var B6=Mp.exports;(function(e,t){var r=Dt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(B6),i=n.default;t.default=i,e.exports=t.default})(Tp,Tp.exports);var W6=Tp.exports;(function(e,t){var r=Dt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=E;var n=r(h6),i=r(m6),a=r(Nn),o=r(T6),s=r(M6),u=r(Rx),c=wl,h=r(la),f=r(br),p=ua,g=r(W6),b=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,v=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,w=/^'([^]*?)'?$/,C=/''/g,M=/[a-zA-Z]/;function E(P,R,N){var B,U,K,Q,O,F,q,j,V,W,G,te,z,Y,ie,ne,re,oe;(0,f.default)(2,arguments);var se=String(R),de=(0,p.getDefaultOptions)(),ce=(B=(U=N==null?void 0:N.locale)!==null&&U!==void 0?U:de.locale)!==null&&B!==void 0?B:g.default,ge=(0,h.default)((K=(Q=(O=(F=N==null?void 0:N.firstWeekContainsDate)!==null&&F!==void 0?F:N==null||(q=N.locale)===null||q===void 0||(j=q.options)===null||j===void 0?void 0:j.firstWeekContainsDate)!==null&&O!==void 0?O:de.firstWeekContainsDate)!==null&&Q!==void 0?Q:(V=de.locale)===null||V===void 0||(W=V.options)===null||W===void 0?void 0:W.firstWeekContainsDate)!==null&&K!==void 0?K:1);if(!(ge>=1&&ge<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Te=(0,h.default)((G=(te=(z=(Y=N==null?void 0:N.weekStartsOn)!==null&&Y!==void 0?Y:N==null||(ie=N.locale)===null||ie===void 0||(ne=ie.options)===null||ne===void 0?void 0:ne.weekStartsOn)!==null&&z!==void 0?z:de.weekStartsOn)!==null&&te!==void 0?te:(re=de.locale)===null||re===void 0||(oe=re.options)===null||oe===void 0?void 0:oe.weekStartsOn)!==null&&G!==void 0?G:0);if(!(Te>=0&&Te<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!ce.localize)throw new RangeError("locale must contain localize property");if(!ce.formatLong)throw new RangeError("locale must contain formatLong property");var ye=(0,a.default)(P);if(!(0,n.default)(ye))throw new RangeError("Invalid time value");var J=(0,u.default)(ye),_e=(0,i.default)(ye,J),ve={firstWeekContainsDate:ge,weekStartsOn:Te,locale:ce,_originalDate:ye},Ee=se.match(v).map(function(Ne){var We=Ne[0];if(We==="p"||We==="P"){var He=s.default[We];return He(Ne,ce.formatLong)}return Ne}).join("").match(b).map(function(Ne){if(Ne==="''")return"'";var We=Ne[0];if(We==="'")return S(Ne);var He=o.default[We];if(He)return!(N!=null&&N.useAdditionalWeekYearTokens)&&(0,c.isProtectedWeekYearToken)(Ne)&&(0,c.throwProtectedError)(Ne,R,String(P)),!(N!=null&&N.useAdditionalDayOfYearTokens)&&(0,c.isProtectedDayOfYearToken)(Ne)&&(0,c.throwProtectedError)(Ne,R,String(P)),He(_e,Ne,ce.localize,ve);if(We.match(M))throw new RangeError("Format string contains an unescaped latin alphabet character `"+We+"`");return Ne}).join("");return Ee}function S(P){var R=P.match(w);return R?R[1].replace(C,"'"):P}e.exports=t.default})(rp,rp.exports);var H6=rp.exports;const j6=_.getDefaultExportFromCjs(H6);function M1(e,t,r){var n=U6(e,r.timeZone,r.locale);return n.formatToParts?V6(n,t):G6(n,t)}function V6(e,t){for(var r=e.formatToParts(t),n=r.length-1;n>=0;--n)if(r[n].type==="timeZoneName")return r[n].value}function G6(e,t){var r=e.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(r);return n?n[0].substr(1):""}function U6(e,t,r){if(r&&!r.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(r?[r.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function Y6(e,t){var r=K6(t);return r.formatToParts?X6(r,e):Z6(r,e)}var q6={year:0,month:1,day:2,hour:3,minute:4,second:5};function X6(e,t){try{for(var r=e.formatToParts(t),n=[],i=0;i<r.length;i++){var a=q6[r[i].type];a>=0&&(n[a]=parseInt(r[i].value,10))}return n}catch(o){if(o instanceof RangeError)return[NaN];throw o}}function Z6(e,t){var r=e.format(t),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);return[n[3],n[1],n[2],n[4],n[5],n[6]]}var Xh={};function K6(e){if(!Xh[e]){var t=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),r=t==="06/25/2014, 00:00:00"||t==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";Xh[e]=r?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Xh[e]}function Ox(e,t,r,n,i,a,o){var s=new Date(0);return s.setUTCFullYear(e,t,r),s.setUTCHours(n,i,a,o),s}var S1=36e5,Q6=6e4,Zh={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function W0(e,t,r){var n,i;if(!e||(n=Zh.timezoneZ.exec(e),n))return 0;var a;if(n=Zh.timezoneHH.exec(e),n)return a=parseInt(n[1],10),E1(a)?-(a*S1):NaN;if(n=Zh.timezoneHHMM.exec(e),n){a=parseInt(n[2],10);var o=parseInt(n[3],10);return E1(a,o)?(i=Math.abs(a)*S1+o*Q6,n[1]==="+"?-i:i):NaN}if(t8(e)){t=new Date(t||Date.now());var s=r?t:J6(t),u=Lp(s,e),c=r?u:e8(t,u,e);return-c}return NaN}function J6(e){return Ox(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Lp(e,t){var r=Y6(e,t),n=Ox(r[0],r[1]-1,r[2],r[3]%24,r[4],r[5],0).getTime(),i=e.getTime(),a=i%1e3;return i-=a>=0?a:1e3+a,n-i}function e8(e,t,r){var n=e.getTime(),i=n-t,a=Lp(new Date(i),r);if(t===a)return t;i-=a-t;var o=Lp(new Date(i),r);return a===o?a:Math.max(a,o)}function E1(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var P1={};function t8(e){if(P1[e])return!0;try{return P1[e]=!0,!0}catch(t){return!1}}var r8=60*1e3,n8={X:function(e,t,r,n){var i=Kh(n.timeZone,e);if(i===0)return"Z";switch(t){case"X":return A1(i);case"XXXX":case"XX":return za(i);case"XXXXX":case"XXX":default:return za(i,":")}},x:function(e,t,r,n){var i=Kh(n.timeZone,e);switch(t){case"x":return A1(i);case"xxxx":case"xx":return za(i);case"xxxxx":case"xxx":default:return za(i,":")}},O:function(e,t,r,n){var i=Kh(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+i8(i,":");case"OOOO":default:return"GMT"+za(i,":")}},z:function(e,t,r,n){switch(t){case"z":case"zz":case"zzz":return M1("short",e,n);case"zzzz":default:return M1("long",e,n)}}};function Kh(e,t){var r=e?W0(e,t,!0)/r8:t.getTimezoneOffset();if(Number.isNaN(r))throw new RangeError("Invalid time zone specified: "+e);return r}function yc(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}function za(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e),a=yc(Math.floor(i/60),2),o=yc(Math.floor(i%60),2);return n+a+r+o}function A1(e,t){if(e%60===0){var r=e>0?"-":"+";return r+yc(Math.abs(e)/60,2)}return za(e,t)}function i8(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),a=n%60;if(a===0)return r+String(i);var o=t;return r+String(i)+o+yc(a,2)}var a8=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Qh=36e5,R1=6e4,o8=2,mr={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:a8};function kx(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var r=t||{},n=r.additionalDigits==null?o8:f6(r.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var i=s8(e),a=l8(i.date,n),o=a.year,s=a.restDateString,u=u8(s,o);if(isNaN(u))return new Date(NaN);if(u){var c=u.getTime(),h=0,f;if(i.time&&(h=c8(i.time),isNaN(h)))return new Date(NaN);if(i.timeZone||r.timeZone){if(f=W0(i.timeZone||r.timeZone,new Date(c+h)),isNaN(f))return new Date(NaN)}else f=T1(new Date(c+h)),f=T1(new Date(c+h+f));return new Date(c+h+f)}else return new Date(NaN)}function s8(e){var t={},r=mr.dateTimePattern.exec(e),n;if(r?(t.date=r[1],n=r[3]):(r=mr.datePattern.exec(e),r?(t.date=r[1],n=r[2]):(t.date=null,n=e)),n){var i=mr.timeZone.exec(n);i?(t.time=n.replace(i[1],""),t.timeZone=i[1].trim()):t.time=n}return t}function l8(e,t){var r=mr.YYY[t],n=mr.YYYYY[t],i;if(i=mr.YYYY.exec(e)||n.exec(e),i){var a=i[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}if(i=mr.YY.exec(e)||r.exec(e),i){var o=i[1];return{year:parseInt(o,10)*100,restDateString:e.slice(o.length)}}return{year:null}}function u8(e,t){if(t===null)return null;var r,n,i,a;if(e.length===0)return n=new Date(0),n.setUTCFullYear(t),n;if(r=mr.MM.exec(e),r)return n=new Date(0),i=parseInt(r[1],10)-1,k1(t,i)?(n.setUTCFullYear(t,i),n):new Date(NaN);if(r=mr.DDD.exec(e),r){n=new Date(0);var o=parseInt(r[1],10);return f8(t,o)?(n.setUTCFullYear(t,0,o),n):new Date(NaN)}if(r=mr.MMDD.exec(e),r){n=new Date(0),i=parseInt(r[1],10)-1;var s=parseInt(r[2],10);return k1(t,i,s)?(n.setUTCFullYear(t,i,s),n):new Date(NaN)}if(r=mr.Www.exec(e),r)return a=parseInt(r[1],10)-1,D1(t,a)?O1(t,a):new Date(NaN);if(r=mr.WwwD.exec(e),r){a=parseInt(r[1],10)-1;var u=parseInt(r[2],10)-1;return D1(t,a,u)?O1(t,a,u):new Date(NaN)}return null}function c8(e){var t,r,n;if(t=mr.HH.exec(e),t)return r=parseFloat(t[1].replace(",",".")),Jh(r)?r%24*Qh:NaN;if(t=mr.HHMM.exec(e),t)return r=parseInt(t[1],10),n=parseFloat(t[2].replace(",",".")),Jh(r,n)?r%24*Qh+n*R1:NaN;if(t=mr.HHMMSS.exec(e),t){r=parseInt(t[1],10),n=parseInt(t[2],10);var i=parseFloat(t[3].replace(",","."));return Jh(r,n,i)?r%24*Qh+n*R1+i*1e3:NaN}return null}function O1(e,t,r){t=t||0,r=r||0;var n=new Date(0);n.setUTCFullYear(e,0,4);var i=n.getUTCDay()||7,a=t*7+r+1-i;return n.setUTCDate(n.getUTCDate()+a),n}var d8=[31,28,31,30,31,30,31,31,30,31,30,31],h8=[31,29,31,30,31,30,31,31,30,31,30,31];function Dx(e){return e%400===0||e%4===0&&e%100!==0}function k1(e,t,r){if(t<0||t>11)return!1;if(r!=null){if(r<1)return!1;var n=Dx(e);if(n&&r>h8[t]||!n&&r>d8[t])return!1}return!0}function f8(e,t){if(t<1)return!1;var r=Dx(e);return!(r&&t>366||!r&&t>365)}function D1(e,t,r){return!(t<0||t>52||r!=null&&(r<0||r>6))}function Jh(e,t,r){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||r!=null&&(r<0||r>=60))}var p8=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function m8(e,t,r){var n=String(t),i=r||{},a=n.match(p8);if(a){var o=kx(i.originalDate||e,i);n=a.reduce(function(s,u){if(u[0]==="'")return s;var c=s.indexOf(u),h=s[c-1]==="'",f=s.replace(u,"'"+n8[u[0]](o,u,null,i)+"'");return h?f.substring(0,c-1)+f.substring(c+1):f},n)}return j6(e,n,i)}function g8(e,t,r){var n=kx(e,r),i=W0(t,n,!0),a=new Date(n.getTime()-i),o=new Date(0);return o.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),o.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),o}function Ji(e,t,r,n){var i=c6(n);return i.timeZone=t,i.originalDate=e,m8(g8(e,t),r,i)}function bc(e){"@babel/helpers - typeof";return bc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bc(e)}function $r(e){_.requiredArgs(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||bc(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function N1(e,t){_.requiredArgs(2,arguments);var r=$r(e),n=_.toInteger(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function v8(e,t){_.requiredArgs(2,arguments);var r=$r(e),n=_.toInteger(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var i=r.getDate(),a=new Date(r.getTime());a.setMonth(r.getMonth()+n+1,0);var o=a.getDate();return i>=o?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}function Nx(e,t){_.requiredArgs(2,arguments);var r=_.toInteger(t);return v8(e,r*12)}var y8={};function H0(){return y8}function Ip(e,t){var r,n,i,a,o,s,u,c;_.requiredArgs(1,arguments);var h=H0(),f=_.toInteger((r=(n=(i=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:h.weekStartsOn)!==null&&n!==void 0?n:(u=h.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=$r(e),g=p.getUTCDay(),b=(g<f?7:0)+g-f;return p.setUTCDate(p.getUTCDate()-b),p.setUTCHours(0,0,0,0),p}var b8={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Lx=function(t,r,n){var i,a=b8[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function Be(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var _8={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},w8={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},x8={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},C8={date:Be({formats:_8,defaultWidth:"full"}),time:Be({formats:w8,defaultWidth:"full"}),dateTime:Be({formats:x8,defaultWidth:"full"})},T8={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Ix=function(t,r,n,i){return T8[t]};function Me(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",i;if(n==="formatting"&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):a;i=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;i=e.values[u]||e.values[s]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}var M8={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},S8={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},E8={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},P8={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},A8={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},R8={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},O8=function(t,r){var n=Number(t),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},$x={ordinalNumber:O8,era:Me({values:M8,defaultWidth:"wide"}),quarter:Me({values:S8,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Me({values:E8,defaultWidth:"wide"}),day:Me({values:P8,defaultWidth:"wide"}),dayPeriod:Me({values:A8,defaultWidth:"wide",formattingValues:R8,defaultFormattingWidth:"wide"})};function Se(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o=a[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?D8(s,function(f){return f.test(o)}):k8(s,function(f){return f.test(o)}),c;c=e.valueCallback?e.valueCallback(u):u,c=r.valueCallback?r.valueCallback(c):c;var h=t.slice(o.length);return{value:c,rest:h}}}function k8(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function D8(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function Fr(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],a=t.match(e.parsePattern);if(!a)return null;var o=e.valueCallback?e.valueCallback(a[0]):a[0];o=r.valueCallback?r.valueCallback(o):o;var s=t.slice(i.length);return{value:o,rest:s}}}var N8=/^(\d+)(th|st|nd|rd)?/i,L8=/\d+/i,I8={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},$8={any:[/^b/i,/^(a|c)/i]},F8={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},z8={any:[/1/i,/2/i,/3/i,/4/i]},B8={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},W8={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},H8={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},j8={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},V8={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},G8={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Fx={ordinalNumber:Fr({matchPattern:N8,parsePattern:L8,valueCallback:function(t){return parseInt(t,10)}}),era:Se({matchPatterns:I8,defaultMatchWidth:"wide",parsePatterns:$8,defaultParseWidth:"any"}),quarter:Se({matchPatterns:F8,defaultMatchWidth:"wide",parsePatterns:z8,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Se({matchPatterns:B8,defaultMatchWidth:"wide",parsePatterns:W8,defaultParseWidth:"any"}),day:Se({matchPatterns:H8,defaultMatchWidth:"wide",parsePatterns:j8,defaultParseWidth:"any"}),dayPeriod:Se({matchPatterns:V8,defaultMatchWidth:"any",parsePatterns:G8,defaultParseWidth:"any"})},$p={code:"en-US",formatDistance:Lx,formatLong:C8,formatRelative:Ix,localize:$x,match:Fx,options:{weekStartsOn:0,firstWeekContainsDate:1}};function U8(e,t){var r,n,i,a,o,s,u,c;_.requiredArgs(1,arguments);var h=H0(),f=_.toInteger((r=(n=(i=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:h.weekStartsOn)!==null&&n!==void 0?n:(u=h.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=$r(e),g=p.getDay(),b=(g<f?7:0)+g-f;return p.setDate(p.getDate()-b),p.setHours(0,0,0,0),p}function Y8(e){_.requiredArgs(1,arguments);var t=$r(e);return t.setHours(0,0,0,0),t}function q8(e){_.requiredArgs(1,arguments);var t=$r(e),r=t.getMonth(),n=r-r%3;return t.setMonth(n,1),t.setHours(0,0,0,0),t}function X8(e){_.requiredArgs(1,arguments);var t=$r(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Z8(e){_.requiredArgs(1,arguments);var t=$r(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function K8(e){_.requiredArgs(1,arguments);var t=$r(e),r=t.getFullYear(),n=t.getMonth(),i=new Date(0);return i.setFullYear(r,n+1,0),i.setHours(0,0,0,0),i.getDate()}function Q8(e,t){_.requiredArgs(2,arguments);var r=$r(e),n=_.toInteger(t),i=r.getFullYear(),a=r.getDate(),o=new Date(0);o.setFullYear(i,n,15),o.setHours(0,0,0,0);var s=K8(o);return r.setMonth(n,Math.min(a,s)),r}function zx(e,t){_.requiredArgs(2,arguments);var r=_.toInteger(t);return Nx(e,-r)}function ea(e,t,r){_.requiredArgs(2,arguments);var n=Ip(e,r),i=Ip(t,r);return n.getTime()===i.getTime()}var L1={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},J8=function(t,r,n){var i,a=n!=null&&n.addSuffix?L1[t].withPreposition:L1[t].standalone;return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:"vor "+i:i},e$={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},t$={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},r$={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},n$={date:Be({formats:e$,defaultWidth:"full"}),time:Be({formats:t$,defaultWidth:"full"}),dateTime:Be({formats:r$,defaultWidth:"full"})},i$={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},a$=function(t,r,n,i){return i$[t]},o$={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},s$={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},Fp={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},l$={narrow:Fp.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:Fp.wide},u$={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},c$={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},d$={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},h$=function(t){var r=Number(t);return r+"."},f$={ordinalNumber:h$,era:Me({values:o$,defaultWidth:"wide"}),quarter:Me({values:s$,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Me({values:Fp,formattingValues:l$,defaultWidth:"wide"}),day:Me({values:u$,defaultWidth:"wide"}),dayPeriod:Me({values:c$,defaultWidth:"wide",formattingValues:d$,defaultFormattingWidth:"wide"})},p$=/^(\d+)(\.)?/i,m$=/\d+/i,g$={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},v$={any:[/^v/i,/^n/i]},y$={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},b$={any:[/1/i,/2/i,/3/i,/4/i]},_$={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},w$={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},x$={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},C$={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},T$={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},M$={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},S$={ordinalNumber:Fr({matchPattern:p$,parsePattern:m$,valueCallback:function(t){return parseInt(t)}}),era:Se({matchPatterns:g$,defaultMatchWidth:"wide",parsePatterns:v$,defaultParseWidth:"any"}),quarter:Se({matchPatterns:y$,defaultMatchWidth:"wide",parsePatterns:b$,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Se({matchPatterns:_$,defaultMatchWidth:"wide",parsePatterns:w$,defaultParseWidth:"any"}),day:Se({matchPatterns:x$,defaultMatchWidth:"wide",parsePatterns:C$,defaultParseWidth:"any"}),dayPeriod:Se({matchPatterns:T$,defaultMatchWidth:"wide",parsePatterns:M$,defaultParseWidth:"any"})},E$={code:"de",formatDistance:J8,formatLong:n$,formatRelative:a$,localize:f$,match:S$,options:{weekStartsOn:1,firstWeekContainsDate:4}},P$={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},A$={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},R$={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},O$={date:Be({formats:P$,defaultWidth:"full"}),time:Be({formats:A$,defaultWidth:"full"}),dateTime:Be({formats:R$,defaultWidth:"full"})},k$={code:"en-GB",formatDistance:Lx,formatLong:O$,formatRelative:Ix,localize:$x,match:Fx,options:{weekStartsOn:1,firstWeekContainsDate:4}},D$={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},N$=function(t,r,n){var i,a=D$[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+i:"hace "+i:i},L$={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},I$={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},$$={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},F$={date:Be({formats:L$,defaultWidth:"full"}),time:Be({formats:I$,defaultWidth:"full"}),dateTime:Be({formats:$$,defaultWidth:"full"})},z$={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},B$={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},W$=function(t,r,n,i){return r.getUTCHours()!==1?B$[t]:z$[t]},H$={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},j$={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},V$={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},G$={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},U$={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},Y$={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},q$=function(t,r){var n=Number(t);return n+"º"},X$={ordinalNumber:q$,era:Me({values:H$,defaultWidth:"wide"}),quarter:Me({values:j$,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:Me({values:V$,defaultWidth:"wide"}),day:Me({values:G$,defaultWidth:"wide"}),dayPeriod:Me({values:U$,defaultWidth:"wide",formattingValues:Y$,defaultFormattingWidth:"wide"})},Z$=/^(\d+)(º)?/i,K$=/\d+/i,Q$={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},J$={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},e7={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},t7={any:[/1/i,/2/i,/3/i,/4/i]},r7={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},n7={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},i7={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},a7={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},o7={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},s7={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},l7={ordinalNumber:Fr({matchPattern:Z$,parsePattern:K$,valueCallback:function(t){return parseInt(t,10)}}),era:Se({matchPatterns:Q$,defaultMatchWidth:"wide",parsePatterns:J$,defaultParseWidth:"any"}),quarter:Se({matchPatterns:e7,defaultMatchWidth:"wide",parsePatterns:t7,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Se({matchPatterns:r7,defaultMatchWidth:"wide",parsePatterns:n7,defaultParseWidth:"any"}),day:Se({matchPatterns:i7,defaultMatchWidth:"wide",parsePatterns:a7,defaultParseWidth:"any"}),dayPeriod:Se({matchPatterns:o7,defaultMatchWidth:"any",parsePatterns:s7,defaultParseWidth:"any"})},u7={code:"es",formatDistance:N$,formatLong:F$,formatRelative:W$,localize:X$,match:l7,options:{weekStartsOn:1,firstWeekContainsDate:1}},c7={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},d7=function(t,r,n){var i,a=c7[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"dans "+i:"il y a "+i:i},h7={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},f7={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},p7={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},m7={date:Be({formats:h7,defaultWidth:"full"}),time:Be({formats:f7,defaultWidth:"full"}),dateTime:Be({formats:p7,defaultWidth:"full"})},g7={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},v7=function(t,r,n,i){return g7[t]},y7={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},b7={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},_7={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},w7={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},x7={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},C7=function(t,r){var n=Number(t),i=r==null?void 0:r.unit;if(n===0)return"0";var a=["year","week","hour","minute","second"],o;return n===1?o=i&&a.includes(i)?"ère":"er":o="ème",n+o},T7={ordinalNumber:C7,era:Me({values:y7,defaultWidth:"wide"}),quarter:Me({values:b7,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Me({values:_7,defaultWidth:"wide"}),day:Me({values:w7,defaultWidth:"wide"}),dayPeriod:Me({values:x7,defaultWidth:"wide"})},M7=/^(\d+)(ième|ère|ème|er|e)?/i,S7=/\d+/i,E7={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},P7={any:[/^av/i,/^ap/i]},A7={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},R7={any:[/1/i,/2/i,/3/i,/4/i]},O7={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},k7={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},D7={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},N7={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},L7={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},I7={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},$7={ordinalNumber:Fr({matchPattern:M7,parsePattern:S7,valueCallback:function(t){return parseInt(t)}}),era:Se({matchPatterns:E7,defaultMatchWidth:"wide",parsePatterns:P7,defaultParseWidth:"any"}),quarter:Se({matchPatterns:A7,defaultMatchWidth:"wide",parsePatterns:R7,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Se({matchPatterns:O7,defaultMatchWidth:"wide",parsePatterns:k7,defaultParseWidth:"any"}),day:Se({matchPatterns:D7,defaultMatchWidth:"wide",parsePatterns:N7,defaultParseWidth:"any"}),dayPeriod:Se({matchPatterns:L7,defaultMatchWidth:"any",parsePatterns:I7,defaultParseWidth:"any"})},F7={code:"fr",formatDistance:d7,formatLong:m7,formatRelative:v7,localize:T7,match:$7,options:{weekStartsOn:1,firstWeekContainsDate:4}},z7={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},B7=function(t,r,n){var i,a=z7[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"tra "+i:i+" fa":i},W7={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},H7={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},j7={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},V7={date:Be({formats:W7,defaultWidth:"full"}),time:Be({formats:H7,defaultWidth:"full"}),dateTime:Be({formats:j7,defaultWidth:"full"})},j0=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function G7(e){switch(e){case 0:return"'domenica scorsa alle' p";default:return"'"+j0[e]+" scorso alle' p"}}function I1(e){return"'"+j0[e]+" alle' p"}function U7(e){switch(e){case 0:return"'domenica prossima alle' p";default:return"'"+j0[e]+" prossimo alle' p"}}var Y7={lastWeek:function(t,r,n){var i=t.getUTCDay();return ea(t,r,n)?I1(i):G7(i)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(t,r,n){var i=t.getUTCDay();return ea(t,r,n)?I1(i):U7(i)},other:"P"},q7=function(t,r,n,i){var a=Y7[t];return typeof a=="function"?a(r,n,i):a},X7={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},Z7={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},K7={narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},Q7={narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},J7={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},eF={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},tF=function(t,r){var n=Number(t);return String(n)},rF={ordinalNumber:tF,era:Me({values:X7,defaultWidth:"wide"}),quarter:Me({values:Z7,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Me({values:K7,defaultWidth:"wide"}),day:Me({values:Q7,defaultWidth:"wide"}),dayPeriod:Me({values:J7,defaultWidth:"wide",formattingValues:eF,defaultFormattingWidth:"wide"})},nF=/^(\d+)(º)?/i,iF=/\d+/i,aF={narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},oF={any:[/^a/i,/^(d|e)/i]},sF={narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},lF={any:[/1/i,/2/i,/3/i,/4/i]},uF={narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},cF={narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},dF={narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},hF={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},fF={narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},pF={any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},mF={ordinalNumber:Fr({matchPattern:nF,parsePattern:iF,valueCallback:function(t){return parseInt(t,10)}}),era:Se({matchPatterns:aF,defaultMatchWidth:"wide",parsePatterns:oF,defaultParseWidth:"any"}),quarter:Se({matchPatterns:sF,defaultMatchWidth:"wide",parsePatterns:lF,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Se({matchPatterns:uF,defaultMatchWidth:"wide",parsePatterns:cF,defaultParseWidth:"any"}),day:Se({matchPatterns:dF,defaultMatchWidth:"wide",parsePatterns:hF,defaultParseWidth:"any"}),dayPeriod:Se({matchPatterns:fF,defaultMatchWidth:"any",parsePatterns:pF,defaultParseWidth:"any"})},gF={code:"it",formatDistance:B7,formatLong:V7,formatRelative:q7,localize:rF,match:mF,options:{weekStartsOn:1,firstWeekContainsDate:4}},vF={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},yF=function(t,r,n){n=n||{};var i,a=vF[t];return typeof a=="string"?i=a:r===1?n.addSuffix&&a.oneWithSuffix?i=a.oneWithSuffix:i=a.one:n.addSuffix&&a.otherWithSuffix?i=a.otherWithSuffix.replace("{{count}}",String(r)):i=a.other.replace("{{count}}",String(r)),n.addSuffix?n.comparison&&n.comparison>0?i+"後":i+"前":i},bF={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},_F={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},wF={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},xF={date:Be({formats:bF,defaultWidth:"full"}),time:Be({formats:_F,defaultWidth:"full"}),dateTime:Be({formats:wF,defaultWidth:"full"})},CF={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},TF=function(t,r,n,i){return CF[t]},MF={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},SF={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},EF={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},PF={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},AF={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},RF={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},OF=function(t,r){var n=Number(t),i=String(r==null?void 0:r.unit);switch(i){case"year":return"".concat(n,"年");case"quarter":return"第".concat(n,"四半期");case"month":return"".concat(n,"月");case"week":return"第".concat(n,"週");case"date":return"".concat(n,"日");case"hour":return"".concat(n,"時");case"minute":return"".concat(n,"分");case"second":return"".concat(n,"秒");default:return"".concat(n)}},kF={ordinalNumber:OF,era:Me({values:MF,defaultWidth:"wide"}),quarter:Me({values:SF,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:Me({values:EF,defaultWidth:"wide"}),day:Me({values:PF,defaultWidth:"wide"}),dayPeriod:Me({values:AF,defaultWidth:"wide",formattingValues:RF,defaultFormattingWidth:"wide"})},DF=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,NF=/\d+/i,LF={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},IF={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},$F={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},FF={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},zF={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},BF={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},WF={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},HF={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},jF={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},VF={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},GF={ordinalNumber:Fr({matchPattern:DF,parsePattern:NF,valueCallback:function(t){return parseInt(t,10)}}),era:Se({matchPatterns:LF,defaultMatchWidth:"wide",parsePatterns:IF,defaultParseWidth:"any"}),quarter:Se({matchPatterns:$F,defaultMatchWidth:"wide",parsePatterns:FF,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Se({matchPatterns:zF,defaultMatchWidth:"wide",parsePatterns:BF,defaultParseWidth:"any"}),day:Se({matchPatterns:WF,defaultMatchWidth:"wide",parsePatterns:HF,defaultParseWidth:"any"}),dayPeriod:Se({matchPatterns:jF,defaultMatchWidth:"any",parsePatterns:VF,defaultParseWidth:"any"})},UF={code:"ja",formatDistance:yF,formatLong:xF,formatRelative:TF,localize:kF,match:GF,options:{weekStartsOn:0,firstWeekContainsDate:1}},YF={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},qF=function(t,r,n){var i,a=YF[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i+" 후":i+" 전":i},XF={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},ZF={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},KF={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},QF={date:Be({formats:XF,defaultWidth:"full"}),time:Be({formats:ZF,defaultWidth:"full"}),dateTime:Be({formats:KF,defaultWidth:"full"})},JF={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},e9=function(t,r,n,i){return JF[t]},t9={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},r9={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},n9={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},i9={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},a9={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},o9={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},s9=function(t,r){var n=Number(t),i=String(r==null?void 0:r.unit);switch(i){case"minute":case"second":return String(n);case"date":return n+"일";default:return n+"번째"}},l9={ordinalNumber:s9,era:Me({values:t9,defaultWidth:"wide"}),quarter:Me({values:r9,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Me({values:n9,defaultWidth:"wide"}),day:Me({values:i9,defaultWidth:"wide"}),dayPeriod:Me({values:a9,defaultWidth:"wide",formattingValues:o9,defaultFormattingWidth:"wide"})},u9=/^(\d+)(일|번째)?/i,c9=/\d+/i,d9={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},h9={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},f9={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},p9={any:[/1/i,/2/i,/3/i,/4/i]},m9={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},g9={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},v9={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},y9={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},b9={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},_9={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},w9={ordinalNumber:Fr({matchPattern:u9,parsePattern:c9,valueCallback:function(t){return parseInt(t,10)}}),era:Se({matchPatterns:d9,defaultMatchWidth:"wide",parsePatterns:h9,defaultParseWidth:"any"}),quarter:Se({matchPatterns:f9,defaultMatchWidth:"wide",parsePatterns:p9,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Se({matchPatterns:m9,defaultMatchWidth:"wide",parsePatterns:g9,defaultParseWidth:"any"}),day:Se({matchPatterns:v9,defaultMatchWidth:"wide",parsePatterns:y9,defaultParseWidth:"any"}),dayPeriod:Se({matchPatterns:b9,defaultMatchWidth:"any",parsePatterns:_9,defaultParseWidth:"any"})},x9={code:"ko",formatDistance:qF,formatLong:QF,formatRelative:e9,localize:l9,match:w9,options:{weekStartsOn:0,firstWeekContainsDate:1}},C9={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},T9=function(t,r,n){var i,a=C9[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"over "+i:i+" geleden":i},M9={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},S9={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},E9={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},P9={date:Be({formats:M9,defaultWidth:"full"}),time:Be({formats:S9,defaultWidth:"full"}),dateTime:Be({formats:E9,defaultWidth:"full"})},A9={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},R9=function(t,r,n,i){return A9[t]},O9={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},k9={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},D9={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},N9={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},L9={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},I9=function(t,r){var n=Number(t);return n+"e"},$9={ordinalNumber:I9,era:Me({values:O9,defaultWidth:"wide"}),quarter:Me({values:k9,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Me({values:D9,defaultWidth:"wide"}),day:Me({values:N9,defaultWidth:"wide"}),dayPeriod:Me({values:L9,defaultWidth:"wide"})},F9=/^(\d+)e?/i,z9=/\d+/i,B9={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},W9={any:[/^v/,/^n/]},H9={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},j9={any:[/1/i,/2/i,/3/i,/4/i]},V9={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},G9={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},U9={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},Y9={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},q9={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},X9={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},Z9={ordinalNumber:Fr({matchPattern:F9,parsePattern:z9,valueCallback:function(t){return parseInt(t,10)}}),era:Se({matchPatterns:B9,defaultMatchWidth:"wide",parsePatterns:W9,defaultParseWidth:"any"}),quarter:Se({matchPatterns:H9,defaultMatchWidth:"wide",parsePatterns:j9,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Se({matchPatterns:V9,defaultMatchWidth:"wide",parsePatterns:G9,defaultParseWidth:"any"}),day:Se({matchPatterns:U9,defaultMatchWidth:"wide",parsePatterns:Y9,defaultParseWidth:"any"}),dayPeriod:Se({matchPatterns:q9,defaultMatchWidth:"any",parsePatterns:X9,defaultParseWidth:"any"})},K9={code:"nl",formatDistance:T9,formatLong:P9,formatRelative:R9,localize:$9,match:Z9,options:{weekStartsOn:1,firstWeekContainsDate:4}},Q9={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 mês",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},J9=function(t,r,n){var i,a=Q9[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"daqui a "+i:"há "+i:i},ez={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},tz={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},rz={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},nz={date:Be({formats:ez,defaultWidth:"full"}),time:Be({formats:tz,defaultWidth:"full"}),dateTime:Be({formats:rz,defaultWidth:"full"})},iz={lastWeek:function(t){var r=t.getUTCDay(),n=r===0||r===6?"último":"última";return"'"+n+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},az=function(t,r,n,i){var a=iz[t];return typeof a=="function"?a(r):a},oz={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},sz={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},lz={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},uz={narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","sáb"],abbreviated:["dom","seg","ter","qua","qui","sex","sáb"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},cz={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"}},dz={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},hz=function(t,r){var n=Number(t);return n+"º"},fz={ordinalNumber:hz,era:Me({values:oz,defaultWidth:"wide"}),quarter:Me({values:sz,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Me({values:lz,defaultWidth:"wide"}),day:Me({values:uz,defaultWidth:"wide"}),dayPeriod:Me({values:cz,defaultWidth:"wide",formattingValues:dz,defaultFormattingWidth:"wide"})},pz=/^(\d+)(º|ª)?/i,mz=/\d+/i,gz={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},vz={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},yz={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},bz={any:[/1/i,/2/i,/3/i,/4/i]},_z={narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},wz={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},xz={narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},Cz={narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},Tz={narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},Mz={any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},Sz={ordinalNumber:Fr({matchPattern:pz,parsePattern:mz,valueCallback:function(t){return parseInt(t,10)}}),era:Se({matchPatterns:gz,defaultMatchWidth:"wide",parsePatterns:vz,defaultParseWidth:"any"}),quarter:Se({matchPatterns:yz,defaultMatchWidth:"wide",parsePatterns:bz,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Se({matchPatterns:_z,defaultMatchWidth:"wide",parsePatterns:wz,defaultParseWidth:"any"}),day:Se({matchPatterns:xz,defaultMatchWidth:"wide",parsePatterns:Cz,defaultParseWidth:"any"}),dayPeriod:Se({matchPatterns:Tz,defaultMatchWidth:"any",parsePatterns:Mz,defaultParseWidth:"any"})},Ez={code:"pt",formatDistance:J9,formatLong:nz,formatRelative:az,localize:fz,match:Sz,options:{weekStartsOn:1,firstWeekContainsDate:4}};function ts(e,t){if(e.one!==void 0&&t===1)return e.one;var r=t%10,n=t%100;return r===1&&n!==11?e.singularNominative.replace("{{count}}",String(t)):r>=2&&r<=4&&(n<10||n>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function cr(e){return function(t,r){return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?e.future?ts(e.future,t):"через "+ts(e.regular,t):e.past?ts(e.past,t):ts(e.regular,t)+" назад":ts(e.regular,t)}}var Pz={lessThanXSeconds:cr({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:cr({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:function(t,r){return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"через полминуты":"полминуты назад":"полминуты"},lessThanXMinutes:cr({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:cr({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:cr({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:cr({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:cr({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:cr({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:cr({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:cr({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:cr({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:cr({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:cr({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:cr({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:cr({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},Az=function(t,r,n){return Pz[t](r,n)},Rz={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},Oz={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},kz={any:"{{date}}, {{time}}"},Dz={date:Be({formats:Rz,defaultWidth:"full"}),time:Be({formats:Oz,defaultWidth:"full"}),dateTime:Be({formats:kz,defaultWidth:"any"})},V0=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function Nz(e){var t=V0[e];switch(e){case 0:return"'в прошлое "+t+" в' p";case 1:case 2:case 4:return"'в прошлый "+t+" в' p";case 3:case 5:case 6:return"'в прошлую "+t+" в' p"}}function $1(e){var t=V0[e];return e===2?"'во "+t+" в' p":"'в "+t+" в' p"}function Lz(e){var t=V0[e];switch(e){case 0:return"'в следующее "+t+" в' p";case 1:case 2:case 4:return"'в следующий "+t+" в' p";case 3:case 5:case 6:return"'в следующую "+t+" в' p"}}var Iz={lastWeek:function(t,r,n){var i=t.getUTCDay();return ea(t,r,n)?$1(i):Nz(i)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:function(t,r,n){var i=t.getUTCDay();return ea(t,r,n)?$1(i):Lz(i)},other:"P"},$z=function(t,r,n,i){var a=Iz[t];return typeof a=="function"?a(r,n,i):a},Fz={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},zz={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},Bz={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},Wz={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},Hz={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},jz={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},Vz={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},Gz=function(t,r){var n=Number(t),i=r==null?void 0:r.unit,a;return i==="date"?a="-е":i==="week"||i==="minute"||i==="second"?a="-я":a="-й",n+a},Uz={ordinalNumber:Gz,era:Me({values:Fz,defaultWidth:"wide"}),quarter:Me({values:zz,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Me({values:Bz,defaultWidth:"wide",formattingValues:Wz,defaultFormattingWidth:"wide"}),day:Me({values:Hz,defaultWidth:"wide"}),dayPeriod:Me({values:jz,defaultWidth:"any",formattingValues:Vz,defaultFormattingWidth:"wide"})},Yz=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,qz=/\d+/i,Xz={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},Zz={any:[/^д/i,/^н/i]},Kz={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},Qz={any:[/1/i,/2/i,/3/i,/4/i]},Jz={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},eB={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},tB={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},rB={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},nB={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},iB={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},aB={ordinalNumber:Fr({matchPattern:Yz,parsePattern:qz,valueCallback:function(t){return parseInt(t,10)}}),era:Se({matchPatterns:Xz,defaultMatchWidth:"wide",parsePatterns:Zz,defaultParseWidth:"any"}),quarter:Se({matchPatterns:Kz,defaultMatchWidth:"wide",parsePatterns:Qz,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Se({matchPatterns:Jz,defaultMatchWidth:"wide",parsePatterns:eB,defaultParseWidth:"any"}),day:Se({matchPatterns:tB,defaultMatchWidth:"wide",parsePatterns:rB,defaultParseWidth:"any"}),dayPeriod:Se({matchPatterns:nB,defaultMatchWidth:"wide",parsePatterns:iB,defaultParseWidth:"any"})},oB={code:"ru",formatDistance:Az,formatLong:Dz,formatRelative:$z,localize:Uz,match:aB,options:{weekStartsOn:1,firstWeekContainsDate:1}},sB={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yarım dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yaklaşık 1 saat",other:"yaklaşık {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXWeeks:{one:"yaklaşık 1 hafta",other:"yaklaşık {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yaklaşık 1 ay",other:"yaklaşık {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yaklaşık 1 yıl",other:"yaklaşık {{count}} yıl"},xYears:{one:"1 yıl",other:"{{count}} yıl"},overXYears:{one:"1 yıldan fazla",other:"{{count}} yıldan fazla"},almostXYears:{one:"neredeyse 1 yıl",other:"neredeyse {{count}} yıl"}},lB=function(t,r,n){var i,a=sB[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i+" sonra":i+" önce":i},uB={full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},cB={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dB={full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},hB={date:Be({formats:uB,defaultWidth:"full"}),time:Be({formats:cB,defaultWidth:"full"}),dateTime:Be({formats:dB,defaultWidth:"full"})},fB={lastWeek:"'geçen hafta' eeee 'saat' p",yesterday:"'dün saat' p",today:"'bugün saat' p",tomorrow:"'yarın saat' p",nextWeek:"eeee 'saat' p",other:"P"},pB=function(t,r,n,i){return fB[t]},mB={narrow:["MÖ","MS"],abbreviated:["MÖ","MS"],wide:["Milattan Önce","Milattan Sonra"]},gB={narrow:["1","2","3","4"],abbreviated:["1Ç","2Ç","3Ç","4Ç"],wide:["İlk çeyrek","İkinci Çeyrek","Üçüncü çeyrek","Son çeyrek"]},vB={narrow:["O","Ş","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],wide:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},yB={narrow:["P","P","S","Ç","P","C","C"],short:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","Çar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},bB={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"},wide:{am:"Ö.Ö.",pm:"Ö.S.",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"}},_B={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"},wide:{am:"ö.ö.",pm:"ö.s.",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"}},wB=function(t,r){var n=Number(t);return n+"."},xB={ordinalNumber:wB,era:Me({values:mB,defaultWidth:"wide"}),quarter:Me({values:gB,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:Me({values:vB,defaultWidth:"wide"}),day:Me({values:yB,defaultWidth:"wide"}),dayPeriod:Me({values:bB,defaultWidth:"wide",formattingValues:_B,defaultFormattingWidth:"wide"})},CB=/^(\d+)(\.)?/i,TB=/\d+/i,MB={narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},SB={any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},EB={narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},PB={any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},AB={narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},RB={narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},OB={narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},kB={narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},DB={narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},NB={any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},LB={ordinalNumber:Fr({matchPattern:CB,parsePattern:TB,valueCallback:function(t){return parseInt(t,10)}}),era:Se({matchPatterns:MB,defaultMatchWidth:"wide",parsePatterns:SB,defaultParseWidth:"any"}),quarter:Se({matchPatterns:EB,defaultMatchWidth:"wide",parsePatterns:PB,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Se({matchPatterns:AB,defaultMatchWidth:"wide",parsePatterns:RB,defaultParseWidth:"any"}),day:Se({matchPatterns:OB,defaultMatchWidth:"wide",parsePatterns:kB,defaultParseWidth:"any"}),dayPeriod:Se({matchPatterns:DB,defaultMatchWidth:"any",parsePatterns:NB,defaultParseWidth:"any"})},IB={code:"tr",formatDistance:lB,formatLong:hB,formatRelative:pB,localize:xB,match:LB,options:{weekStartsOn:1,firstWeekContainsDate:1}};function rs(e,t){if(e.one!==void 0&&t===1)return e.one;var r=t%10,n=t%100;return r===1&&n!==11?e.singularNominative.replace("{{count}}",String(t)):r>=2&&r<=4&&(n<10||n>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function dr(e){return function(t,r){return r&&r.addSuffix?r.comparison&&r.comparison>0?e.future?rs(e.future,t):"за "+rs(e.regular,t):e.past?rs(e.past,t):rs(e.regular,t)+" тому":rs(e.regular,t)}}var $B=function(t,r){return r&&r.addSuffix?r.comparison&&r.comparison>0?"за півхвилини":"півхвилини тому":"півхвилини"},FB={lessThanXSeconds:dr({regular:{one:"менше секунди",singularNominative:"менше {{count}} секунди",singularGenitive:"менше {{count}} секунд",pluralGenitive:"менше {{count}} секунд"},future:{one:"менше, ніж за секунду",singularNominative:"менше, ніж за {{count}} секунду",singularGenitive:"менше, ніж за {{count}} секунди",pluralGenitive:"менше, ніж за {{count}} секунд"}}),xSeconds:dr({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунди",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду тому",singularGenitive:"{{count}} секунди тому",pluralGenitive:"{{count}} секунд тому"},future:{singularNominative:"за {{count}} секунду",singularGenitive:"за {{count}} секунди",pluralGenitive:"за {{count}} секунд"}}),halfAMinute:$B,lessThanXMinutes:dr({regular:{one:"менше хвилини",singularNominative:"менше {{count}} хвилини",singularGenitive:"менше {{count}} хвилин",pluralGenitive:"менше {{count}} хвилин"},future:{one:"менше, ніж за хвилину",singularNominative:"менше, ніж за {{count}} хвилину",singularGenitive:"менше, ніж за {{count}} хвилини",pluralGenitive:"менше, ніж за {{count}} хвилин"}}),xMinutes:dr({regular:{singularNominative:"{{count}} хвилина",singularGenitive:"{{count}} хвилини",pluralGenitive:"{{count}} хвилин"},past:{singularNominative:"{{count}} хвилину тому",singularGenitive:"{{count}} хвилини тому",pluralGenitive:"{{count}} хвилин тому"},future:{singularNominative:"за {{count}} хвилину",singularGenitive:"за {{count}} хвилини",pluralGenitive:"за {{count}} хвилин"}}),aboutXHours:dr({regular:{singularNominative:"близько {{count}} години",singularGenitive:"близько {{count}} годин",pluralGenitive:"близько {{count}} годин"},future:{singularNominative:"приблизно за {{count}} годину",singularGenitive:"приблизно за {{count}} години",pluralGenitive:"приблизно за {{count}} годин"}}),xHours:dr({regular:{singularNominative:"{{count}} годину",singularGenitive:"{{count}} години",pluralGenitive:"{{count}} годин"}}),xDays:dr({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} днi",pluralGenitive:"{{count}} днів"}}),aboutXWeeks:dr({regular:{singularNominative:"близько {{count}} тижня",singularGenitive:"близько {{count}} тижнів",pluralGenitive:"близько {{count}} тижнів"},future:{singularNominative:"приблизно за {{count}} тиждень",singularGenitive:"приблизно за {{count}} тижні",pluralGenitive:"приблизно за {{count}} тижнів"}}),xWeeks:dr({regular:{singularNominative:"{{count}} тиждень",singularGenitive:"{{count}} тижні",pluralGenitive:"{{count}} тижнів"}}),aboutXMonths:dr({regular:{singularNominative:"близько {{count}} місяця",singularGenitive:"близько {{count}} місяців",pluralGenitive:"близько {{count}} місяців"},future:{singularNominative:"приблизно за {{count}} місяць",singularGenitive:"приблизно за {{count}} місяці",pluralGenitive:"приблизно за {{count}} місяців"}}),xMonths:dr({regular:{singularNominative:"{{count}} місяць",singularGenitive:"{{count}} місяці",pluralGenitive:"{{count}} місяців"}}),aboutXYears:dr({regular:{singularNominative:"близько {{count}} року",singularGenitive:"близько {{count}} років",pluralGenitive:"близько {{count}} років"},future:{singularNominative:"приблизно за {{count}} рік",singularGenitive:"приблизно за {{count}} роки",pluralGenitive:"приблизно за {{count}} років"}}),xYears:dr({regular:{singularNominative:"{{count}} рік",singularGenitive:"{{count}} роки",pluralGenitive:"{{count}} років"}}),overXYears:dr({regular:{singularNominative:"більше {{count}} року",singularGenitive:"більше {{count}} років",pluralGenitive:"більше {{count}} років"},future:{singularNominative:"більше, ніж за {{count}} рік",singularGenitive:"більше, ніж за {{count}} роки",pluralGenitive:"більше, ніж за {{count}} років"}}),almostXYears:dr({regular:{singularNominative:"майже {{count}} рік",singularGenitive:"майже {{count}} роки",pluralGenitive:"майже {{count}} років"},future:{singularNominative:"майже за {{count}} рік",singularGenitive:"майже за {{count}} роки",pluralGenitive:"майже за {{count}} років"}})},zB=function(t,r,n){return n=n||{},FB[t](r,n)},BB={full:"EEEE, do MMMM y 'р.'",long:"do MMMM y 'р.'",medium:"d MMM y 'р.'",short:"dd.MM.y"},WB={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},HB={full:"{{date}} 'о' {{time}}",long:"{{date}} 'о' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},jB={date:Be({formats:BB,defaultWidth:"full"}),time:Be({formats:WB,defaultWidth:"full"}),dateTime:Be({formats:HB,defaultWidth:"full"})},G0=["неділю","понеділок","вівторок","середу","четвер","п’ятницю","суботу"];function VB(e){var t=G0[e];switch(e){case 0:case 3:case 5:case 6:return"'у минулу "+t+" о' p";case 1:case 2:case 4:return"'у минулий "+t+" о' p"}}function Bx(e){var t=G0[e];return"'у "+t+" о' p"}function GB(e){var t=G0[e];switch(e){case 0:case 3:case 5:case 6:return"'у наступну "+t+" о' p";case 1:case 2:case 4:return"'у наступний "+t+" о' p"}}var UB=function(t,r,n){var i=$r(t),a=i.getUTCDay();return ea(i,r,n)?Bx(a):VB(a)},YB=function(t,r,n){var i=$r(t),a=i.getUTCDay();return ea(i,r,n)?Bx(a):GB(a)},qB={lastWeek:UB,yesterday:"'вчора о' p",today:"'сьогодні о' p",tomorrow:"'завтра о' p",nextWeek:YB,other:"P"},XB=function(t,r,n,i){var a=qB[t];return typeof a=="function"?a(r,n,i):a},ZB={narrow:["до н.е.","н.е."],abbreviated:["до н. е.","н. е."],wide:["до нашої ери","нашої ери"]},KB={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},QB={narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},JB={narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січня","лютого","березня","квітня","травня","червня","липня","серпня","вересня","жовтня","листопада","грудня"]},eW={narrow:["Н","П","В","С","Ч","П","С"],short:["нд","пн","вт","ср","чт","пт","сб"],abbreviated:["нед","пон","вів","сер","чтв","птн","суб"],wide:["неділя","понеділок","вівторок","середа","четвер","п’ятниця","субота"]},tW={narrow:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранок",afternoon:"день",evening:"веч.",night:"ніч"},abbreviated:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранок",afternoon:"день",evening:"веч.",night:"ніч"},wide:{am:"ДП",pm:"ПП",midnight:"північ",noon:"полудень",morning:"ранок",afternoon:"день",evening:"вечір",night:"ніч"}},rW={narrow:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"},abbreviated:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"},wide:{am:"ДП",pm:"ПП",midnight:"північ",noon:"полудень",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"}},nW=function(t,r){var n=String(r==null?void 0:r.unit),i=Number(t),a;return n==="date"?i===3||i===23?a="-є":a="-е":n==="minute"||n==="second"||n==="hour"?a="-а":a="-й",i+a},iW={ordinalNumber:nW,era:Me({values:ZB,defaultWidth:"wide"}),quarter:Me({values:KB,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Me({values:QB,defaultWidth:"wide",formattingValues:JB,defaultFormattingWidth:"wide"}),day:Me({values:eW,defaultWidth:"wide"}),dayPeriod:Me({values:tW,defaultWidth:"any",formattingValues:rW,defaultFormattingWidth:"wide"})},aW=/^(\d+)(-?(е|й|є|а|я))?/i,oW=/\d+/i,sW={narrow:/^((до )?н\.?\s?е\.?)/i,abbreviated:/^((до )?н\.?\s?е\.?)/i,wide:/^(до нашої ери|нашої ери|наша ера)/i},lW={any:[/^д/i,/^н/i]},uW={narrow:/^[1234]/i,abbreviated:/^[1234](-?[иі]?й?)? кв.?/i,wide:/^[1234](-?[иі]?й?)? квартал/i},cW={any:[/1/i,/2/i,/3/i,/4/i]},dW={narrow:/^[слбктчвжг]/i,abbreviated:/^(січ|лют|бер(ез)?|квіт|трав|черв|лип|серп|вер(ес)?|жовт|лис(топ)?|груд)\.?/i,wide:/^(січень|січня|лютий|лютого|березень|березня|квітень|квітня|травень|травня|червня|червень|липень|липня|серпень|серпня|вересень|вересня|жовтень|жовтня|листопад[а]?|грудень|грудня)/i},hW={narrow:[/^с/i,/^л/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^л/i,/^с/i,/^в/i,/^ж/i,/^л/i,/^г/i],any:[/^сі/i,/^лю/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^лип/i,/^се/i,/^в/i,/^ж/i,/^лис/i,/^г/i]},fW={narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)\.?/i,abbreviated:/^(нед|пон|вів|сер|че?тв|птн?|суб)\.?/i,wide:/^(неділ[яі]|понеділ[ок][ка]|вівтор[ок][ка]|серед[аи]|четвер(га)?|п\W*?ятниц[яі]|субот[аи])/i},pW={narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[он]/i,/^в/i,/^с[ер]/i,/^ч/i,/^п\W*?[ят]/i,/^с[уб]/i]},mW={narrow:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,abbreviated:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,wide:/^([дп]п|північ|полудень|ранок|ранку|день|дня|вечір|вечора|ніч|ночі)/i},gW={any:{am:/^дп/i,pm:/^пп/i,midnight:/^півн/i,noon:/^пол/i,morning:/^р/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},vW={ordinalNumber:Fr({matchPattern:aW,parsePattern:oW,valueCallback:function(t){return parseInt(t,10)}}),era:Se({matchPatterns:sW,defaultMatchWidth:"wide",parsePatterns:lW,defaultParseWidth:"any"}),quarter:Se({matchPatterns:uW,defaultMatchWidth:"wide",parsePatterns:cW,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Se({matchPatterns:dW,defaultMatchWidth:"wide",parsePatterns:hW,defaultParseWidth:"any"}),day:Se({matchPatterns:fW,defaultMatchWidth:"wide",parsePatterns:pW,defaultParseWidth:"any"}),dayPeriod:Se({matchPatterns:mW,defaultMatchWidth:"wide",parsePatterns:gW,defaultParseWidth:"any"})},yW={code:"uk",formatDistance:zB,formatLong:jB,formatRelative:XB,localize:iW,match:vW,options:{weekStartsOn:1,firstWeekContainsDate:1}},bW={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},_W=function(t,r,n){var i,a=bW[t];return typeof a=="string"?i=a:r===1?i=a.one:i=a.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?i+"内":i+"前":i},wW={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},xW={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},CW={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},TW={date:Be({formats:wW,defaultWidth:"full"}),time:Be({formats:xW,defaultWidth:"full"}),dateTime:Be({formats:CW,defaultWidth:"full"})};function F1(e,t,r){var n="eeee p";return ea(e,t,r)?n:e.getTime()>t.getTime()?"'下个'"+n:"'上个'"+n}var MW={lastWeek:F1,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:F1,other:"PP p"},SW=function(t,r,n,i){var a=MW[t];return typeof a=="function"?a(r,n,i):a},EW={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},PW={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},AW={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},RW={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},OW={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},kW={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},DW=function(t,r){var n=Number(t);switch(r==null?void 0:r.unit){case"date":return n.toString()+"日";case"hour":return n.toString()+"时";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},NW={ordinalNumber:DW,era:Me({values:EW,defaultWidth:"wide"}),quarter:Me({values:PW,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Me({values:AW,defaultWidth:"wide"}),day:Me({values:RW,defaultWidth:"wide"}),dayPeriod:Me({values:OW,defaultWidth:"wide",formattingValues:kW,defaultFormattingWidth:"wide"})},LW=/^(第\s*)?\d+(日|时|分|秒)?/i,IW=/\d+/i,$W={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},FW={any:[/^(前)/i,/^(公元)/i]},zW={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},BW={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},WW={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},HW={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},jW={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},VW={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},GW={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},UW={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},YW={ordinalNumber:Fr({matchPattern:LW,parsePattern:IW,valueCallback:function(t){return parseInt(t,10)}}),era:Se({matchPatterns:$W,defaultMatchWidth:"wide",parsePatterns:FW,defaultParseWidth:"any"}),quarter:Se({matchPatterns:zW,defaultMatchWidth:"wide",parsePatterns:BW,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Se({matchPatterns:WW,defaultMatchWidth:"wide",parsePatterns:HW,defaultParseWidth:"any"}),day:Se({matchPatterns:jW,defaultMatchWidth:"wide",parsePatterns:VW,defaultParseWidth:"any"}),dayPeriod:Se({matchPatterns:GW,defaultMatchWidth:"any",parsePatterns:UW,defaultParseWidth:"any"})},qW={code:"zh-CN",formatDistance:_W,formatLong:TW,formatRelative:SW,localize:NW,match:YW,options:{weekStartsOn:1,firstWeekContainsDate:4}},XW=Math.ceil,ZW=Math.max;function KW(e,t,r,n){for(var i=-1,a=ZW(XW((t-e)/(r||1)),0),o=Array(a);a--;)o[++i]=e,e+=r;return o}function QW(e){return function(t,r,n){return n&&typeof n!="number"&&I.isIterateeCall(t,r,n)&&(r=n=void 0),t=_.toFinite(t),r===void 0?(r=t,t=0):r=_.toFinite(r),n=n===void 0?t<r?1:-1:_.toFinite(n),KW(t,r,n)}}var yu=QW();const xl=e=>{switch(e){case"de":case"de-DE":return E$;case"en":case"en-US":return $p;case"gb":case"en-GB":return k$;case"es":case"es-ES":case"es-AR":return u7;case"fr":case"fr-FR":return F7;case"it":case"it-IT":return gF;case"ja":case"ja-JP":return UF;case"ko":case"ko-KR":return x9;case"nl":case"nl-NL":return K9;case"pt":case"pt-BR":return Ez;case"ru":case"ru-RU":return oB;case"tr":case"tr-TR":return IB;case"zh":case"zh-CN":return qW;case"uk":return yW;default:return $p}};var Wx=(e=>(e.YEAR="years",e.QUARTER="quarters",e.MONTH="months",e.WEEK="weeks",e.DATE="dates",e))(Wx||{});const JW={dates:e=>Y8(e),months:e=>X8(e),quarters:e=>q8(e),weeks:(e,t)=>U8(e,{locale:t}),years:e=>Z8(e)},eH=(e,t,r)=>JW[e](t,r),tH=e=>_.parseISOWithTimezoneCheck(e);yu(4),yu(12),yu(7),yu(24);function Mi(e,t,r){const n=new RegExp("'[^']+'|("+t+")","g");return e.replace(n,function(a,o){return o?r(a):a})}const rH=["shortDate","shortTime","short","mediumDate","mediumTime","medium","longDate","fullDate"],nH=Object.freeze({fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"});function iH(e,t){if(!t.formatLong)return console.warn("Locale does not have formatLong property. Using default date formats."),nH[e];switch(e){case"fullDate":return t.formatLong.date({width:"full"});case"longDate":return t.formatLong.date({width:"long"});case"mediumDate":return t.formatLong.date({width:"medium"});case"shortDate":return t.formatLong.date({width:"short"});case"mediumTime":return t.formatLong.time({width:"medium"});case"shortTime":return t.formatLong.time({width:"short"});case"medium":return t.formatLong.dateTime({width:"medium"}).replace("{{date}}",t.formatLong.date({width:"medium"})).replace("{{time}}",t.formatLong.time({width:"medium"}));case"short":return t.formatLong.dateTime({width:"short"}).replace("{{date}}",t.formatLong.date({width:"short"})).replace("{{time}}",t.formatLong.time({width:"short"}))}}function aH(e,t){if(!(e.includes("short")||e.includes("medium")||e.includes("long")||e.includes("full")))return e;let r=e;return rH.forEach(n=>{const i=iH(n,t);r=Mi(r,n,function(){return i})}),r}const Hx="Etc/GMT-14";function oH(e,t,r){return jx(e,t,r)?zx(e,1):e}function sH(e,t){return t<=e.getMonth()}function jx(e,t,r){const n=![mH,U0].includes(t);return r>Gx&&n&&sH(e,r)}function lH(e,t,r,n){return!n&&jx(e,t,r)?Nx(e,1):e}function uH(e,t){if(t>0){const r=(e.getMonth()+t)%12;return Q8(e,r)}return e}function cH(e,t,r,n,i,a){if(!e.includes("y"))return e;const o=lH(t,n,a,i);let s=e;if(["yyyy","yy","y","yp","yyyp"].some(c=>e.includes(c))&&(r=Hx),e.includes("yp")){const c=zx(o,1);s=Mi(e,"yp|yyyp",function(f){const p="y".repeat(f.length);return Ji(c,r,p)})}return Mi(s,"yyyy|yy|y",function(h){return Ji(o,r,h)})}function dH(e,t,r,n){if(!e.includes("Q"))return e;const i=Ji(t,Hx,"M");let a=parseInt(i,10)-1;n&&[U0,gH,vH,Vx].includes(r)&&(a-=n>a?n-12:n);const o=parseInt(String(a/3))+1;return Mi(e,"QQ|Q",function(c){return`${c.length===2?"'Quarter '":"'Q'"}${o}`})}function hH(e){return e.includes("sss")?Mi(e,"sss",function(){return"SSS"}):e}function fH(e,t,r){if(!(e.includes("a")||e.includes("A")))return e;let n=Mi(e,"a",function(){return`\0${Ji(t,r,"a").toLowerCase()}\0`});return n=Mi(n,"A",function(){return`\0${Ji(t,r,"a").toUpperCase()}\0`}),n=n.replace(/\0\0/g,""),n=n.replace(/\0/g,"'"),n}function pH(e,t,r,n){return e.includes("Z")?Mi(e,"Z",function(){return Ji(t,r,"xx",{locale:n})}):e}const mH="years",U0="quarters",gH="months",vH="weeks",Vx="days",Gx=0,yH=1,Cl=Object.freeze({weekFirstDay:yH,isFiscalOn:!1,fiscalMonth:Gx,selectedDateLevel:Vx,timeZone:"UTC"});function Tl(e,t,r=xl(),n=Cl){if(e===_.NOT_AVAILABLE_DATA_VALUE)return e;const i=e instanceof Date?e:_.parseISOWithTimezoneCheck(e);return bH(i,t,r,n)}function bH(e,t,r=xl(),n=Cl){return e.getFullYear()<100?e=N1(e,1900+e.getFullYear()):e.getFullYear()===1111&&(e=N1(e,1970)),n.isFiscalOn||(e=oH(e,n.selectedDateLevel,n.fiscalMonth)),t=aH(t,r),t=hH(t),t=fH(t,e,n.timeZone),t=pH(t,e,n.timeZone,r),t=cH(t,e,n.timeZone,n.selectedDateLevel,n.isFiscalOn,n.fiscalMonth),!n.isFiscalOn&&n.selectedDateLevel===U0&&(e=uH(e,n.fiscalMonth)),t=dH(t,e,n.selectedDateLevel,n.fiscalMonth),Ji(e,n.timeZone,t,{locale:r,weekStartsOn:n.weekFirstDay})}function _H(e){switch(e){case I.DateLevels.Years:return"yyyy";case I.DateLevels.Quarters:return"Q yyyy";case I.DateLevels.Months:return"MM/yyyy";case I.DateLevels.Weeks:return"ww yyyy";case I.DateLevels.Days:return"shortDate";case I.DateLevels.Hours:case I.DateLevels.Minutes:case I.DateLevels.MinutesRoundTo15:case I.DateLevels.MinutesRoundTo30:case I.DateLevels.AggMinutesRoundTo1:case I.DateLevels.AggMinutesRoundTo15:case I.DateLevels.AggMinutesRoundTo30:case I.DateLevels.AggHours:return"HH:mm";case I.DateLevels.Seconds:return"HH:mm:ss";default:return"fullDate"}}const Ux=(e,t=-1)=>{var n,i,a;return[...(n=e.rows)!=null?n:[],...(i=e.columns)!=null?i:[],...(a=e.values)!=null?a:[]][t]},wH=(e,t=-1)=>{const{rows:r=[],columns:n=[],values:i=[]}=e,a=Number(r.length)||0,o=Number(n.length)||0,s=Number(i.length)||0;if(t!==-1){if(t<a)return`rows.${t}`;if(t<a+o)return`columns.${t-a}`;if(t<a+o+s)return`values.${t-a-o}`}},Yx=e=>{const t=e&&"numberFormatConfig"in e?e.numberFormatConfig:void 0;return _.getCompleteNumberFormatConfig(t)},xH=e=>{const t=_.normalizeColumn(e),r=_.getDataOptionGranularity(t);return(t==null?void 0:t.dateFormat)||_.getDefaultDateFormat(r)},CH=(e,t)=>(r,n)=>{var c,h;const i=(n==null?void 0:n.panel)==="measures",a=r.userType===qw.CORNER,o=Ux(e,(c=n==null?void 0:n.field)==null?void 0:c.index);if(i||a||!o){r.content=r.value;return}const u="type"in o||"column"in o&&"type"in o.column?xH(o):void 0;switch((h=n==null?void 0:n.jaql)==null?void 0:h.datatype){case"numeric":r.content=_.applyFormatPlainText(Yx(o),parseFloat(`${r.value}`));break;case"datetime":r.content=Y0(r.value,t,u);break;default:r.content=r.value}o&&"isHtml"in o&&o.isHtml&&(r.contentType="html"),r.content===""&&(r.content=_.NOT_AVAILABLE_DATA_VALUE)};function Y0(e,t,r){if(e===_.NOT_AVAILABLE_DATA_VALUE)return e;if(!r)return typeof e=="string"?e:e.toISOString();const n=typeof e=="string"?_.parseISOWithTimezoneCheck(e):e;return TH(n)?typeof e=="string"?e:e.toISOString():t(n,r)}function TH(e){return e.toString()==="Invalid Date"}function Bt(e){const t="type"in e.column?e.column.type:"numeric";let r=n=>`${n}`;if(I.isNumber(t)){const n=_.getCompleteNumberFormatConfig(e&&"numberFormatConfig"in e?e.numberFormatConfig:void 0);r=i=>_.applyFormatPlainText(n,parseFloat(`${i}`))}if(I.isDatetime(t)){const n=e.dateFormat||_.getDefaultDateFormat(_.getDataOptionGranularity(e)),i=(a,o)=>Tl(a,o);r=a=>Y0(s6(a)?a.toISOString():a,i,n)}return n=>n===void 0?"":r(n)}function Ge(e,t){return T(T(T({dataOption:e},t&&{dataOptionLocation:t}),I.MetadataTypes.isAttribute(e.column)&&{attribute:e.column}),I.MetadataTypes.isMeasure(e.column)&&{measure:e.column})}const dd=e=>{var t,r,n,i,a,o,s,u;return{value:(t=e.custom)==null?void 0:t.rawValue,categoryValue:(n=(r=e.custom)==null?void 0:r.xValue)==null?void 0:n[0],seriesValue:(s=(o=(a=(i=e.series)==null?void 0:i.options)==null?void 0:a.custom)==null?void 0:o.rawValue)==null?void 0:s[0],categoryDisplayValue:(u=e.name)!=null?u:e.category}},MH=(e,t)=>{const r=t.x.map((s,u)=>{var h,f;const c=(f=(h=e.custom)==null?void 0:h.xValue)==null?void 0:f[u];return $(T({},Ge(s)),{value:c,displayValue:Bt(s)(c)})}),n=t.y.length>=2,i=t.y.filter((s,u)=>!n||e.series.index===u).flatMap(s=>{const u=e.custom.rawValue;return $(T({},Ge(s)),{value:u,displayValue:Bt(s)(u)})}),a=t.breakBy.map(s=>{var c,h,f;const u=(f=(h=(c=e.series)==null?void 0:c.options.custom)==null?void 0:h.rawValue)==null?void 0:f[0];return $(T({},Ge(s)),{value:u,displayValue:Bt(s)(u)})}),o={category:r,value:i,breakBy:a};return $(T({},dd(e)),{entries:o})},SH=(e,t)=>{const r=t.x.map((s,u)=>{var h,f;const c=(f=(h=e.custom)==null?void 0:h.xValue)==null?void 0:f[u];return $(T({},Ge(s)),{value:c,displayValue:Bt(s)(c)})}),n=t.rangeValues.length>=2,i=t.rangeValues.filter((s,u)=>!n||e.series.index===u).flatMap(s=>s.map((u,c)=>{var p,g;const f=c===0?(p=e.options)==null?void 0:p.low:(g=e.options)==null?void 0:g.high;return $(T({},Ge(u)),{value:f,displayValue:Bt(u)(f)})})),a=t.breakBy.map(s=>{var c,h,f;const u=(f=(h=(c=e.series)==null?void 0:c.options.custom)==null?void 0:h.rawValue)==null?void 0:f[0];return $(T({},Ge(s)),{value:u,displayValue:Bt(s)(u)})}),o={category:r,value:i,breakBy:a};return $(T({},dd(e)),{entries:o})},EH=(e,t)=>{var n,i,a,o,s;const r={};if(t.x){const u=e.custom.maskedX;r.x=$(T({},Ge(t.x)),{value:u,displayValue:u})}if(t.y){const u=e.custom.maskedY;r.y=$(T({},Ge(t.y)),{value:u,displayValue:u})}if(t.breakByPoint){const u=(n=e.custom)==null?void 0:n.maskedBreakByPoint;r.breakByPoint=$(T({},Ge(t.breakByPoint)),{value:(i=e.custom)==null?void 0:i.maskedBreakByPoint,displayValue:u})}if(t.breakByColor){const u=(a=e.custom)==null?void 0:a.maskedBreakByColor;r.breakByColor=$(T({},Ge(t.breakByColor)),{value:u,displayValue:u})}if(t.size){const u=e.custom.maskedSize;r.size=$(T({},Ge(t.size)),{value:u,displayValue:u})}return{x:e.x,y:e.y,size:e.z,breakByPoint:(o=e.custom)==null?void 0:o.maskedBreakByPoint,breakByColor:(s=e.custom)==null?void 0:s.maskedBreakByColor,entries:r}},PH=(e,t)=>{const r=t.breakBy.map((a,o)=>{var u,c;const s=(c=(u=e.custom)==null?void 0:u.xValue)==null?void 0:c[o];return $(T({},Ge(a)),{value:s,displayValue:Bt(a)(s)})}),n=t.y.map(a=>{var s;const o=(s=e.custom)==null?void 0:s.rawValue;return $(T({},Ge(a)),{value:o,displayValue:Bt(a)(o)})}),i={category:r,value:n};return{value:e.options.custom.number1,categoryValue:e.options.name,categoryDisplayValue:e.name,entries:i}},AH=(e,t)=>{const r=t.breakBy.map((o,s)=>{var c,h;const u=(h=(c=e.custom)==null?void 0:c.xValue)==null?void 0:h[s];return $(T({},Ge(o)),{value:u,displayValue:Bt(o)(u)})}),n=t.y.length>=2,i=t.y.filter((o,s)=>!n||e.series.index===s).map(o=>{var u;const s=(u=e.custom)==null?void 0:u.rawValue;return $(T({},Ge(o)),{value:s,displayValue:Bt(o)(s)})}),a={category:r,value:i};return $(T({},dd(e)),{entries:a})},RH=(e,t)=>{const r=e.options.custom.level,n=r!==e.options.custom.levelsCount,i=t.breakBy.slice(0,r).map((u,c)=>{var f,p,g,b;const h=n?(p=(f=e.custom)==null?void 0:f.rawValues)==null?void 0:p[c]:(b=(g=e.custom)==null?void 0:g.xValue)==null?void 0:b[c];return $(T({},Ge(u)),{value:h,displayValue:h})}),a=t.y.length>=2,o=t.y.filter((u,c)=>!a||e.series.index===c).map(u=>{var h;const c=n?e.value:(h=e.custom)==null?void 0:h.rawValue;return $(T({},Ge(u)),{value:c,displayValue:Bt(u)(c)})}),s={category:i,value:o};return $(T({},dd(e)),{entries:s})},OH=(e,t)=>{var i;const r=e.series.type==="scatter",n={};if(r){const a=e.options.y;n.value=[$(T({},Ge(t.outliers)),{value:a,displayValue:Bt(t.outliers)(a)})]}else n.value=[$(T({},Ge(t.boxMin)),{value:e.options.q1,displayValue:Bt(t.boxMin)(e.options.q1)}),$(T({},Ge(t.boxMedian)),{value:e.options.median,displayValue:Bt(t.boxMedian)(e.options.median)}),$(T({},Ge(t.boxMax)),{value:e.options.q3,displayValue:Bt(t.boxMax)(e.options.q3)}),$(T({},Ge(t.whiskerMin)),{value:e.options.low,displayValue:Bt(t.whiskerMin)(e.options.low)}),$(T({},Ge(t.whiskerMax)),{value:e.options.high,displayValue:Bt(t.whiskerMax)(e.options.high)})];if(t.category){const a=(i=e.custom.xValue)==null?void 0:i[0];n.category=[$(T({},Ge(t.category)),{value:a,displayValue:Bt(t.category)(a)})]}return{boxMin:e.options.q1,boxMedian:e.options.median,boxMax:e.options.q3,whiskerMin:e.options.low,whiskerMax:e.options.high,outlier:e.options.y,categoryValue:e.category,categoryDisplayValue:e.category,entries:n}},kH=(e,t)=>{const r=new Date(e.options.date),n=e.options.dateString,i=e.options.value,a=$(T({},Ge(t.date)),{value:n,displayValue:Bt(t.date)(r)}),o=typeof i=="number",s=t.value&&o?$(T({},Ge(t.value)),{value:typeof i=="number"?i:0,displayValue:Bt(t.value)(i)}):void 0;return{entries:{date:a,value:s}}};function ef(e,t){switch(e.series.chart.options.chart.type){case"bubble":case"scatter":return EH(e,t);case"funnel":return PH(e,t);case"pie":return AH(e,t);case"treemap":case"sunburst":return RH(e,t);case"boxplot":return OH(e,t);case"arearange":return SH(e,t);case"heatmap":return kH(e,t);default:return MH(e,t)}}function DH(e,t){const r={};return t.geo&&(r.geo=[$(T({},Ge(t.geo)),{value:e.geoName})]),t.color&&(r.color=[$(T({},Ge(t.color)),{value:e.originalValue})]),$(T({},e),{entries:r})}class q0{constructor(t,r){Ze(this,"httpClient");Ze(this,"defaultDataSource");Ze(this,"getDashboards",(...r)=>Yt(this,[...r],function*(t={}){const{fields:n,expand:i,searchByTitle:a}=t,o=new URLSearchParams(T(T(T({},a&&{name:a}),(n==null?void 0:n.length)&&{fields:n==null?void 0:n.join(",")}),(i==null?void 0:i.length)&&{expand:i==null?void 0:i.join(",")})).toString(),s=yield this.httpClient.get(`api/v1/dashboards?${o}`);if(!s)return[];const u=s.map(c=>Yt(this,null,function*(){if(c.oid&&!c.datasource){const h=yield this.getDashboard(c.oid,{fields:["datasource"]});return h!=null&&h.datasource?$(T({},c),{datasource:h.datasource}):c}return c}));return Promise.all(u)}));Ze(this,"getDashboard",(t,r={})=>{const{fields:n,sharedMode:i}=r,a=new URLSearchParams(T(T({},(n==null?void 0:n.length)&&{fields:n==null?void 0:n.join(",")}),i&&{sharedMode:"true"})).toString();return this.httpClient.get(`api/v1/dashboards/${t}?${a}`).catch(()=>{throw new I.TranslatableError("errors.dashboardInvalidIdentifier",{dashboardOid:t})})});Ze(this,"getDashboardLegacy",t=>this.httpClient.get(`api/dashboards/${t}`).catch(()=>{throw new I.TranslatableError("errors.dashboardInvalidIdentifier",{dashboardOid:t})}));Ze(this,"getDashboardWidgets",(t,r)=>{const n=new URLSearchParams(T({},r&&{sharedMode:"true"})).toString();return this.httpClient.get(`api/v1/dashboards/${t}/widgets?${n}`).catch(()=>{throw new I.TranslatableError("errors.dashboardWidgetsInvalidIdentifiers",{dashboardOid:t})})});Ze(this,"getWidget",(t,r,n)=>{const i=new URLSearchParams(T({},n&&{sharedMode:"true"})).toString();return this.httpClient.get(`api/v1/dashboards/${r}/widgets/${t}?${i}`).catch(()=>{throw new I.TranslatableError("errors.widgetByIdInvalidIdentifier",{dashboardOid:r,widgetOid:t})})});Ze(this,"getCountriesGeoJson",()=>this.httpClient.get("api/v1/geo/geojson/world"));Ze(this,"getUsaStatesGeoJson",()=>this.httpClient.get("api/v1/geo/geojson/usa"));Ze(this,"getPalettes",()=>this.httpClient.get("api/palettes"));Ze(this,"getHierarchies",({dataSource:t=this.defaultDataSource,dimension:r,ids:n,alwaysIncluded:i})=>{const a="granularity"in r;let o="";if(!t)throw new I.TranslatableError("errors.missingDataSource");if(a){const{level:u,dateTimeLevel:c}=r.translateGranularityToJaql();o=u!=null?u:c}const s=new URLSearchParams(T(T(T({elasticube:I.getDataSourceName(t),table:I.getTableNameFromAttribute(r),column:I.getColumnNameFromAttribute(r)},o&&{dateLevel:o}),i&&{alwaysIncluded:`${i}`}),(n==null?void 0:n.length)&&{ids:n.join(",")})).toString();return this.httpClient.get(`api/elasticubes/hierarchies?${s}`).then((u=[])=>_.isUndefined(i)&&(n==null?void 0:n.length)?u.filter(({_id:h})=>n.includes(h)):u)});Ze(this,"patchDashboard",(t,r,n)=>{const i=new URLSearchParams(T({},n&&{sharedMode:"true"})).toString();return this.httpClient.patch(`api/v1/dashboards/${t}?${i}`,r)});Ze(this,"addWidgetToDashboard",(t,r,n)=>{const i=new URLSearchParams(T({},n&&{sharedMode:"true"})).toString();return this.httpClient.post(`api/v1/dashboards/${t}/widgets?${i}`,r)});Ze(this,"deleteWidgetFromDashboard",(t,r,n)=>{const i=new URLSearchParams(T({},n&&{sharedMode:"true"})).toString();return this.httpClient.delete(`api/v1/dashboards/${t}/widgets/${r}?${i}`)});Ze(this,"patchWidgetInDashboard",(t,r,n,i)=>{const a=new URLSearchParams(T({},i&&{sharedMode:"true"})).toString();return this.httpClient.patch(`api/v1/dashboards/${t}/widgets/${r}?${a}`,n)});Ze(this,"getSharedFormulas",t=>Yt(this,null,function*(){return(yield Promise.all(t.map(this.getSharedFormula))).filter(NH).reduce((n,i)=>(n[i.oid]=i,n),{})}));Ze(this,"getSharedFormula",t=>Yt(this,null,function*(){return this.httpClient.get(`api/v1/formulas/${t}?flat=true`)}));Ze(this,"getDataSourceFields",(t,r)=>{const{offset:n=0,count:i=9999}=r||{};return this.httpClient.post(`api/datasources/${encodeURIComponent(t)}/fields/search`,{offset:n,count:i,term:r==null?void 0:r.searchValue})});if(!t)throw new I.TranslatableError("errors.httpClientNotFound");this.httpClient=t,this.defaultDataSource=r}}function NH(e){return!!e}const qx=()=>{const{app:e}=wt();return{restApi:k.useMemo(()=>e&&new q0(e.httpClient,e.defaultDataSource),[e]),isReady:!!e}};class LH extends I.TranslatableError{constructor(){super("errors.restApiNotReady")}}const IH=e=>{const{isReady:t,restApi:r}=qx(),[n,i]=k.useState(),[a,o]=k.useState(),s=BH();return k.useEffect(()=>{if(!s||!t||!r)return;Yt(exports,null,function*(){try{const c=WH(e,s),h=$H(c);if(h)i(h);else{HH(e);let f;switch(e){case"world":f=r.getCountriesGeoJson;break;case"usa":f=r.getUsaStatesGeoJson;break;default:throw new I.TranslatableError("errors.unsupportedMapType",{mapType:e})}const p=yield f();if(!p)throw new I.TranslatableError("errors.mapLoadingFailed");const g=e==="world"?zH(p):p;FH(g,c),i(g)}}catch(c){o(c)}})},[r,t,e,s]),{geoJson:n,error:a}};function $H(e){const t=localStorage.getItem(e);if(t)return JSON.parse(t)}function FH(e,t){localStorage.setItem(t,JSON.stringify(e))}function zH(e){const t=I.cloneDeep(e);return t.features.forEach(r=>{var n;r.id==="-99"&&(r.id=(n=r.properties)==null?void 0:n.name)}),t}function BH(){const{app:e}=wt();return e==null?void 0:e.settings.serverVersion}function WH(e,t){return`geoJson_${e}_${t}`}function HH(e){Object.keys(localStorage).forEach(r=>{r.startsWith(`geoJson_${e}`)&&localStorage.removeItem(r)})}const jH=({chartData:e,dataOptions:t,designOptions:r,onDataPointClick:n})=>{const{themeSettings:i}=it(),{geoJson:a}=IH(r.mapType),o=k.useMemo(()=>t.color?e.geoData:e.geoData.map(u=>$(T({},u),{color:_.getPaletteColor(i.palette.variantColors,0)})),[e.geoData,t,i]),s=k.useCallback((u,c)=>{if(!n)return;const h=DH(u,t);n(h,c)},[t,n]);return _.jsx(_.Fragment,{children:a&&_.jsx(JI,{geoJson:a,geoData:o,dataOptions:{originalValueTitle:t.color?_.getDataOptionTitle(t.color):"",onAreaClick:s},mapType:r.mapType})})},Xx=e=>e.type==="areamap"&&"geoData"in e,VH=e=>"geo"in e,GH=e=>"mapType"in e,UH=e=>!!e.chartData&&Xx(e.chartData)&&VH(e.dataOptions)&&GH(e.designOptions),YH={dataOptions:HD,data:rN,designOptions:aN,renderer:{ChartRendererComponent:jH,isCorrectRendererProps:UH}},qH={[I.DateLevels.Years]:"attribute.datetimeName.years",[I.DateLevels.Quarters]:"attribute.datetimeName.quarters",[I.DateLevels.Months]:"attribute.datetimeName.months",[I.DateLevels.Weeks]:"attribute.datetimeName.weeks",[I.DateLevels.Days]:"attribute.datetimeName.days",[I.DateLevels.AggHours]:"attribute.datetimeName.hours",[I.DateLevels.AggMinutesRoundTo15]:"attribute.datetimeName.minutes"};function XH(e,t,r){return r?e(qH[r],{columnName:t}):t}function Zx(e,t,r){const n=I.getColumnNameFromAttribute(e),i=r?XH(r,n,t):n;return new I.DimensionalLevelAttribute(i,e.expression,t,I.DimensionalLevelAttribute.getDefaultFormatForGranularity(t),void 0,void 0,e.dataSource)}const ca=e=>{var t;return{x:e.category.map(r=>_.normalizeColumn(r)),y:e.value.map(r=>_.normalizeMeasureColumn(r)),breakBy:((t=e.breakBy)==null?void 0:t.map(r=>_.normalizeColumn(r)))||[],seriesToColorMap:e.seriesToColorMap}};function _o(e){return[...e.x.map(zp),...e.breakBy.map(zp)].filter(Kx)}function wo(e){return e.y.map(zp).filter(_.isMeasureColumn)}function xo(e){return"category"in e&&I.isArray(e.category)&&"value"in e&&I.isArray(e.value)&&"breakBy"in e&&I.isArray(e.breakBy)}function Co(e){return"x"in e&&I.isArray(e.x)&&e.x.every(_.isStyledColumn)&&"y"in e&&I.isArray(e.y)&&e.y.every(_.isStyledColumn)&&"breakBy"in e&&I.isArray(e.breakBy)&&e.breakBy.every(_.isStyledColumn)}function zp(e){return e.column}function Kx(e){return!_.isMeasureColumn(e)}function hd(e){return e.y.some(t=>t.showOnRightAxis)}function ZH(e){const t=_.normalizeColumn(e.date),r=_.normalizeMeasureColumn(e.value),n=t.column;return I.isDimensionalLevelAttribute(n)&&n.granularity!==I.DateLevels.Days&&(console.warn('The calendar heatmap chart’s "date" data option supports only day level granularity. Converted to day level.'),t.column=Zx(n,I.DateLevels.Days)),{date:t,value:r}}function KH(e){const t=e.date.column;return Kx(t)?[t]:[]}function QH(e){const t=e.value.column;return _.isMeasureColumn(t)?[t]:[]}function JH(e){if(!("date"in e&&e.date&&"value"in e&&e.value))return!1;const r=_.normalizeColumn(e.date);return I.isDatetime(r.column.type)}function Qx(e){return"date"in e&&"value"in e&&typeof e.date=="object"&&typeof e.value=="object"}function ej(e,t){const r=_.getColumnByName(t,e.date.column.name),n=_.getColumnByName(t,e.value.column.name);if(!r||!n)return{type:_.CALENDAR_HEATMAP_DATA_TYPE,values:[]};const i=t.rows.map(a=>{const o=_.getValue(a,r),s=_.getValue(a,n),{compareValue:u,color:c}=_.getValues(a,[n])[0],f=!(u!=null&&u.valueIsNaN)&&!(u!=null&&u.valueUndefined)?s:void 0,p=_.isBlurred(a,n);return{date:new Date(o),value:f,color:c,blur:p}});return{type:_.CALENDAR_HEATMAP_DATA_TYPE,values:i}}function Jx(e){return e.type===_.CALENDAR_HEATMAP_DATA_TYPE}function tj(e){var t,r,n,i,a,o,s,u,c,h,f,p,g,b,v,w,C,M,E,S,P,R,N,B;return $(T({},Cr),{width:e.width,height:e.height,subtype:e.subtype||_.CALENDAR_HEATMAP_DEFAULTS.SUBTYPE,viewType:e.viewType||_.CALENDAR_HEATMAP_DEFAULTS.VIEW_TYPE,startOfWeek:e.startOfWeek||_.CALENDAR_HEATMAP_DEFAULTS.START_OF_WEEK,cellLabels:{enabled:(r=(t=e.cellLabels)==null?void 0:t.enabled)!=null?r:_.CALENDAR_HEATMAP_DEFAULTS.SHOW_CELL_LABEL,style:((n=e.cellLabels)==null?void 0:n.textStyle)||((i=e.cellLabels)==null?void 0:i.style)},dayLabels:{enabled:(o=(a=e.dayLabels)==null?void 0:a.enabled)!=null?o:_.CALENDAR_HEATMAP_DEFAULTS.SHOW_DAY_LABEL,style:((s=e.dayLabels)==null?void 0:s.textStyle)||((u=e.dayLabels)==null?void 0:u.style)},monthLabels:{enabled:(h=(c=e.monthLabels)==null?void 0:c.enabled)!=null?h:_.CALENDAR_HEATMAP_DEFAULTS.SHOW_MONTH_LABEL,style:((f=e.monthLabels)==null?void 0:f.textStyle)||((p=e.monthLabels)==null?void 0:p.style)},weekends:{enabled:(b=(g=e.weekends)==null?void 0:g.enabled)!=null?b:_.CALENDAR_HEATMAP_DEFAULTS.WEEKEND_ENABLED,days:(w=(v=e.weekends)==null?void 0:v.days)!=null?w:[..._.CALENDAR_HEATMAP_DEFAULTS.WEEKEND_DAYS],cellColor:(M=(C=e.weekends)==null?void 0:C.cellColor)!=null?M:_.CALENDAR_HEATMAP_DEFAULTS.WEEKEND_CELL_COLOR,hideValues:(S=(E=e.weekends)==null?void 0:E.hideValues)!=null?S:_.CALENDAR_HEATMAP_DEFAULTS.WEEKEND_HIDE_VALUES},pagination:{enabled:(R=(P=e.pagination)==null?void 0:P.enabled)!=null?R:_.CALENDAR_HEATMAP_DEFAULTS.SHOW_PAGINATION,style:(N=e.pagination)==null?void 0:N.textStyle,startMonth:(B=e.pagination)==null?void 0:B.startMonth}})}function rj(e){return typeof e=="object"&&e!==null}function nj(e=xl(),t=Cl){return(r,n)=>Tl(r,n,e,t)}function eC(){const{app:e}=wt();return k.useCallback((t,r)=>nj(e==null?void 0:e.settings.locale,e==null?void 0:e.settings.dateConfig)(t,r),[e==null?void 0:e.settings.locale,e==null?void 0:e.settings.dateConfig])}var tC={exports:{}};(function(e,t){(function(r,n){e.exports=n(k)})(typeof self!="undefined"?self:_.commonjsGlobal,function(r){return function(n){function i(o){if(a[o])return a[o].exports;var s=a[o]={i:o,l:!1,exports:{}};return n[o].call(s.exports,s,s.exports,i),s.l=!0,s.exports}var a={};return i.m=n,i.c=a,i.d=function(o,s,u){i.o(o,s)||Object.defineProperty(o,s,{configurable:!1,enumerable:!0,get:u})},i.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(s,"a",s),s},i.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},i.p="",i(i.s=0)}([function(n,i,a){function o(){return o=Object.assign?Object.assign.bind():function(M){for(var E=1;E<arguments.length;E++){var S=arguments[E];for(var P in S)Object.prototype.hasOwnProperty.call(S,P)&&(M[P]=S[P])}return M},o.apply(this,arguments)}function s(M){return f(M)||h(M)||c(M)||u()}function u(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
214
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(M,E){if(M){if(typeof M=="string")return p(M,E);var S=Object.prototype.toString.call(M).slice(8,-1);return S==="Object"&&M.constructor&&(S=M.constructor.name),S==="Map"||S==="Set"?Array.from(M):S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S)?p(M,E):void 0}}function h(M){if(typeof Symbol!="undefined"&&M[Symbol.iterator]!=null||M["@@iterator"]!=null)return Array.from(M)}function f(M){if(Array.isArray(M))return p(M)}function p(M,E){(E==null||E>M.length)&&(E=M.length);for(var S=0,P=new Array(E);S<E;S++)P[S]=M[S];return P}function g(M){"@babel/helpers - typeof";return(g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(M)}Object.defineProperty(i,"__esModule",{value:!0}),a.d(i,"HighchartsReact",function(){return C});var b=a(1),v=a.n(b),w=typeof window!="undefined"?b.useLayoutEffect:b.useEffect,C=Object(b.memo)(Object(b.forwardRef)(function(M,E){var S=Object(b.useRef)(),P=Object(b.useRef)(),R=Object(b.useRef)(M.constructorType),N=Object(b.useRef)(M.highcharts);return w(function(){function B(){var K=M.highcharts||(typeof window=="undefined"?"undefined":g(window))==="object"&&window.Highcharts,Q=M.constructorType||"chart";K?K[Q]?M.options?P.current=K[Q](S.current,M.options,M.callback):console.warn('The "options" property was not passed.'):console.warn('The "constructorType" property is incorrect or some required module is not imported.'):console.warn('The "highcharts" property was not passed.')}if(P.current){if(M.allowChartUpdate!==!1)if(M.constructorType!==R.current||M.highcharts!==N.current)R.current=M.constructorType,N.current=M.highcharts,B();else if(!M.immutable&&P.current){var U;(U=P.current).update.apply(U,[M.options].concat(s(M.updateArgs||[!0,!0])))}else B()}else B()},[M.options,M.allowChartUpdate,M.updateArgs,M.containerProps,M.highcharts,M.constructorType]),w(function(){return function(){P.current&&(P.current.destroy(),P.current=null)}},[]),Object(b.useImperativeHandle)(E,function(){return{get chart(){return P.current},container:S}},[]),v.a.createElement("div",o({},M.containerProps,{ref:S}))}));i.default=C},function(n,i){n.exports=r}])})})(tC);var ij=tC.exports;const aj=_.getDefaultExportFromCjs(ij);function fd(e){const t=k.useRef(void 0);return k.useEffect(()=>{t.current=e},[e]),t.current}var rC={exports:{}};(function(e){(function(t){e.exports?e.exports=t:t(Highcharts)})(function(t){var r=t.relativeLength;t.wrap(t.seriesTypes.column.prototype,"translate",function(n){var i=this.options,a=i.topMargin||0,o=i.bottomMargin||0;n.call(this),this.points.forEach(function(s){var u=s.shapeArgs,c=u.width,h=u.height,f=u.x,p=u.y,g=r(i.borderRadiusTopLeft||0,c),b=r(i.borderRadiusTopRight||0,c),v=r(i.borderRadiusBottomRight||0,c),w=r(i.borderRadiusBottomLeft||0,c);if(g||b||v||w){var C=Math.min(c,h)/2;g>C&&(g=C),b>C&&(b=C),v>C&&(v=C),w>C&&(w=C),s.dlBox=s.shapeArgs,s.shapeType="path",s.shapeArgs={d:[["M",f+g,p+a],["L",f+c-b,p+a],["C",f+c-b/2,p,f+c,p+b/2,f+c,p+b],["L",f+c,p+h-v],["C",f+c,p+h-v/2,f+c-v/2,p+h,f+c-v,p+h+o],["L",f+w,p+h+o],["C",f+w/2,p+h,f,p+h-w/2,f,p+h-w],["L",f,p+g],["C",f,p+g/2,f+g/2,p,f+g,p],["Z"]]}}})})})})(rC);var oj=rC.exports;const sj=_.getDefaultExportFromCjs(oj);var nC={exports:{}};(function(e){(function(t){e.exports?(t.default=t,e.exports=t):t(typeof Highcharts!="undefined"?Highcharts:void 0)})(function(t){function r(n,i,a,o){n.hasOwnProperty(i)||(n[i]=o.apply(null,a),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:n[i]}})))}t=t?t._modules:{},r(t,"Extensions/SeriesLabel/SeriesLabelDefaults.js",[],function(){return{enabled:!0,connectorAllowed:!1,connectorNeighbourDistance:24,format:void 0,formatter:void 0,minFontSize:null,maxFontSize:null,onArea:null,style:{fontWeight:"bold"},useHTML:!1,boxesToAvoid:[]}}),r(t,"Extensions/SeriesLabel/SeriesLabelUtilities.js",[],function(){function n(a,o,s,u,c,h){return a=(h-o)*(s-a)-(u-o)*(c-a),0<a?!0:!(0>a)}function i(a,o,s,u,c,h,f,p){return n(a,o,c,h,f,p)!==n(s,u,c,h,f,p)&&n(a,o,s,u,c,h)!==n(a,o,s,u,f,p)}return{boxIntersectLine:function(a,o,s,u,c,h,f,p){return i(a,o,a+s,o,c,h,f,p)||i(a+s,o,a+s,o+u,c,h,f,p)||i(a,o+u,a+s,o+u,c,h,f,p)||i(a,o,a,o+u,c,h,f,p)},intersectRect:function(a,o){return!(o.left>a.right||o.right<a.left||o.top>a.bottom||o.bottom<a.top)}}}),r(t,"Extensions/SeriesLabel/SeriesLabel.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Chart/Chart.js"],t["Core/FormatUtilities.js"],t["Core/Defaults.js"],t["Extensions/SeriesLabel/SeriesLabelDefaults.js"],t["Extensions/SeriesLabel/SeriesLabelUtilities.js"],t["Core/Utilities.js"]],function(n,i,a,o,s,u,c){function h(O,F,q,j,V){var W=O.chart,G=O.options.label||{},te=U(G.onArea,!!O.area),z=te||G.connectorAllowed,Y=W.boxesToAvoid,ie=Number.MAX_VALUE,ne=Number.MAX_VALUE,re,oe,se;for(se=0;Y&&se<Y.length;se+=1)if(S(Y[se],{left:F,right:F+j.width,top:q,bottom:q+j.height}))return!1;for(se=0;se<W.series.length;se+=1){var de=W.series[se];if(Y=de.interpolatedPoints&&v([],de.interpolatedPoints,!0),de.visible&&Y){var ce=W.plotHeight/10;for(oe=W.plotTop;oe<=W.plotTop+W.plotHeight;oe+=ce)Y.unshift({chartX:W.plotLeft,chartY:oe}),Y.push({chartX:W.plotLeft+W.plotWidth,chartY:oe});for(ce=1;ce<Y.length;ce+=1){if(Y[ce].chartX>=F-16&&Y[ce-1].chartX<=F+j.width+16){if(E(F,q,j.width,j.height,Y[ce-1].chartX,Y[ce-1].chartY,Y[ce].chartX,Y[ce].chartY))return!1;O===de&&!re&&V&&(re=E(F-16,q-16,j.width+32,j.height+32,Y[ce-1].chartX,Y[ce-1].chartY,Y[ce].chartX,Y[ce].chartY))}if((z||re)&&(O!==de||te)){oe=F+j.width/2-Y[ce].chartX;var ge=q+j.height/2-Y[ce].chartY;ie=Math.min(ie,oe*oe+ge*ge)}}if(!te&&z&&O===de&&(V&&!re||ie<Math.pow(G.connectorNeighbourDistance||1,2))){for(ce=1;ce<Y.length;ce+=1)if(re=Math.min(Math.pow(F+j.width/2-Y[ce].chartX,2)+Math.pow(q+j.height/2-Y[ce].chartY,2),Math.pow(F-Y[ce].chartX,2)+Math.pow(q-Y[ce].chartY,2),Math.pow(F+j.width-Y[ce].chartX,2)+Math.pow(q-Y[ce].chartY,2),Math.pow(F+j.width-Y[ce].chartX,2)+Math.pow(q+j.height-Y[ce].chartY,2),Math.pow(F-Y[ce].chartX,2)+Math.pow(q+j.height-Y[ce].chartY,2)),re<ne){ne=re;var Te=Y[ce]}re=!0}}}return!V||re?{x:F,y:q,weight:ie-(Te?ne:0),connectorPoint:Te}:!1}function f(O){O.boxesToAvoid=[];var F=O.labelSeries||[],q=O.boxesToAvoid;O.series.forEach(function(j){return(j.points||[]).forEach(function(V){return(V.dataLabels||[]).forEach(function(W){var G=W.getBBox(),te=W.translateX+(j.xAxis?j.xAxis.pos:j.chart.plotLeft);W=W.translateY+(j.yAxis?j.yAxis.pos:j.chart.plotTop),q.push({left:te,top:W,right:te+G.width,bottom:W+G.height})})})}),F.forEach(function(j){var V=j.options.label||{};j.interpolatedPoints=p(j),q.push.apply(q,V.boxesToAvoid||[])}),O.series.forEach(function(j){function V(Ee,Ne,We){var He=Math.max(ne,U(_e,-1/0)),Zt=Math.min(ne+oe,U(ve,1/0));return Ee>He&&Ee<=Zt-We.width&&Ne>=re&&Ne<=re+se-We.height}var W=j.options.label;if(W&&(j.xAxis||j.yAxis)){var G="highcharts-color-"+U(j.colorIndex,"none"),te=!j.labelBySeries,z=W.minFontSize,Y=W.maxFontSize,ie=O.inverted,ne=ie?j.yAxis.pos:j.xAxis.pos,re=ie?j.xAxis.pos:j.yAxis.pos,oe=O.inverted?j.yAxis.len:j.xAxis.len,se=O.inverted?j.xAxis.len:j.yAxis.len,de=j.interpolatedPoints,ce=U(W.onArea,!!j.area),ge=[],Te=j.xData||[],ye,J=j.labelBySeries;if(ce&&!ie){ie=[j.xAxis.toPixels(Te[0]),j.xAxis.toPixels(Te[Te.length-1])];var _e=Math.min.apply(Math,ie),ve=Math.max.apply(Math,ie)}if(j.visible&&!j.boosted&&de){for(J||(J=j.name,typeof W.format=="string"?J=C(W.format,j,O):W.formatter&&(J=W.formatter.call(j)),j.labelBySeries=J=O.renderer.label(J,0,0,"connector",0,0,W.useHTML).addClass("highcharts-series-label highcharts-series-label-"+j.index+" "+(j.options.className||"")+" "+G),O.renderer.styledMode||(G=typeof j.color=="string"?j.color:"#666666",J.css(R({color:ce?O.renderer.getContrast(G):G},W.style||{})),J.attr({opacity:O.renderer.forExport?1:0,stroke:j.color,"stroke-width":1})),z&&Y&&J.css({fontSize:z+(j.sum||0)/(j.chart.labelSeriesMaxSum||0)*(Y-z)+"px"}),J.attr({padding:0,zIndex:3}).add()),z=J.getBBox(),z.width=Math.round(z.width),ie=de.length-1;0<ie;--ie)ce?(Y=de[ie].chartX-z.width/2,G=(de[ie].chartCenterY||0)-z.height/2,V(Y,G,z)&&(ye=h(j,Y,G,z))):(Y=de[ie].chartX+3,G=de[ie].chartY-z.height-3,V(Y,G,z)&&(ye=h(j,Y,G,z,!0)),ye&&ge.push(ye),Y=de[ie].chartX+3,G=de[ie].chartY+3,V(Y,G,z)&&(ye=h(j,Y,G,z,!0)),ye&&ge.push(ye),Y=de[ie].chartX-z.width-3,G=de[ie].chartY+3,V(Y,G,z)&&(ye=h(j,Y,G,z,!0)),ye&&ge.push(ye),Y=de[ie].chartX-z.width-3,G=de[ie].chartY-z.height-3,V(Y,G,z)&&(ye=h(j,Y,G,z,!0))),ye&&ge.push(ye);if(W.connectorAllowed&&!ge.length&&!ce)for(Y=ne+oe-z.width;Y>=ne;Y-=16)for(G=re;G<re+se-z.height;G+=16)(ye=h(j,Y,G,z,!0))&&ge.push(ye);ge.length?(ge.sort(function(Ee,Ne){return Ne.weight-Ee.weight}),ye=ge[0],(O.boxesToAvoid||[]).push({left:ye.x,right:ye.x+z.width,top:ye.y,bottom:ye.y+z.height}),(de=Math.sqrt(Math.pow(Math.abs(ye.x-(J.x||0)),2)+Math.pow(Math.abs(ye.y-(J.y||0)),2)))&&j.labelBySeries&&(ge={opacity:O.renderer.forExport?1:0,x:ye.x,y:ye.y},W={opacity:1},10>=de&&(W={x:ge.x,y:ge.y},ge={}),de=void 0,te&&(de=w(j.options.animation),de.duration*=.2),j.labelBySeries.attr(R(ge,{anchorX:ye.connectorPoint&&(ye.connectorPoint.plotX||0)+ne,anchorY:ye.connectorPoint&&(ye.connectorPoint.plotY||0)+re})).animate(W,de),j.options.kdNow=!0,j.buildKDTree(),j=j.searchPoint({chartX:ye.x,chartY:ye.y},!0))&&(J.closest=[j,ye.x-(j.plotX||0),ye.y-(j.plotY||0)])):J&&(j.labelBySeries=J.destroy())}else J&&(j.labelBySeries=J.destroy())}}),N(O,"afterDrawSeriesLabels")}function p(O){function F(ce){var ge=Math.round((ce.plotX||0)/8)+","+Math.round((ce.plotY||0)/8);ne[ge]||(ne[ge]=1,j.push(ce))}if(O.xAxis||O.yAxis){var q=O.points,j=[],V=O.graph||O.area,W=V&&V.element,G=O.chart.inverted,te=O.xAxis,z=O.yAxis,Y=G?z.pos:te.pos;G=G?te.pos:z.pos,te=U((O.options.label||{}).onArea,!!O.area);var ie=z.getThreshold(O.options.threshold),ne={};if(O.getPointSpline&&W&&W.getPointAtLength&&!te&&q.length<(O.chart.plotSizeX||0)/16){for(te=V.toD&&V.attr("d"),V.toD&&V.attr({d:V.toD}),z=W.getTotalLength(),O=0;O<z;O+=16)ie=W.getPointAtLength(O),F({chartX:Y+ie.x,chartY:G+ie.y,plotX:ie.x,plotY:ie.y});te&&V.attr({d:te});var re=q[q.length-1];F({chartX:Y+(re.plotX||0),chartY:G+(re.plotY||0)})}else for(z=q.length,V=void 0,O=0;O<z;O+=1){re=q[O],W=re.plotX;var oe=re.plotY;if(B(W)&&B(oe)){var se={plotX:W,plotY:oe,chartX:Y+W,chartY:G+oe};if(te&&(se.chartCenterY=G+(oe+U(re.yBottom,ie))/2),V){re=Math.abs(se.chartX-V.chartX);var de=Math.abs(se.chartY-V.chartY);if(re=Math.max(re,de),16<re)for(re=Math.ceil(re/16),de=1;de<re;de+=1)F({chartX:V.chartX+de/re*(se.chartX-V.chartX),chartY:V.chartY+de/re*(se.chartY-V.chartY),chartCenterY:(V.chartCenterY||0)+de/re*((se.chartCenterY||0)-(V.chartCenterY||0)),plotX:(V.plotX||0)+de/re*(W-(V.plotX||0)),plotY:(V.plotY||0)+de/re*(oe-(V.plotY||0))})}F(se),V=se}}return j}}function g(O){if(this.renderer){var F=this,q=w(F.renderer.globalAnimation).duration;F.labelSeries=[],F.labelSeriesMaxSum=0,F.seriesLabelTimer&&c.clearTimeout(F.seriesLabelTimer),F.series.forEach(function(j){var V=j.options.label||{},W=j.labelBySeries,G=W&&W.closest;V.enabled&&j.visible&&(j.graph||j.area)&&!j.boosted&&F.labelSeries&&(F.labelSeries.push(j),V.minFontSize&&V.maxFontSize&&j.yData&&(j.sum=j.yData.reduce(function(te,z){return(te||0)+(z||0)},0),F.labelSeriesMaxSum=Math.max(F.labelSeriesMaxSum||0,j.sum||0)),O.type==="load"&&(q=Math.max(q,w(j.options.animation).duration)),G&&(typeof G[0].plotX!="undefined"?W.animate({x:G[0].plotX+G[1],y:G[0].plotY+G[2]}):W.attr({opacity:0})))}),F.seriesLabelTimer=K(function(){F.series&&F.labelSeries&&f(F)},F.renderer.forExport||!q?0:q)}}function b(O,F,q,j,V){var W=V&&V.anchorX;V=V&&V.anchorY;var G=q/2;if(B(W)&&B(V)){var te=[["M",W,V]],z=F-V;0>z&&(z=-j-z),z<q&&(G=W<O+q/2?z:q-z),V>F+j?te.push(["L",O+G,F+j]):V<F?te.push(["L",O+G,F]):W<O?te.push(["L",O,F+j/2]):W>O+q&&te.push(["L",O+q,F+j/2])}return te||[]}var v=this&&this.__spreadArray||function(O,F,q){if(q||arguments.length===2)for(var j=0,V=F.length,W;j<V;j++)!W&&j in F||(W||(W=Array.prototype.slice.call(F,0,j)),W[j]=F[j]);return O.concat(W||Array.prototype.slice.call(F))},w=n.animObject,C=a.format,M=o.setOptions,E=u.boxIntersectLine,S=u.intersectRect,P=c.addEvent,R=c.extend,N=c.fireEvent,B=c.isNumber,U=c.pick,K=c.syncTimeout,Q=[];return{compose:function(O,F){Q.indexOf(O)===-1&&(Q.push(O),P(i,"load",g),P(i,"redraw",g)),Q.indexOf(F)===-1&&(Q.push(F),F.prototype.symbols.connector=b),Q.indexOf(M)===-1&&(Q.push(M),M({plotOptions:{series:{label:s}}}))}}}),r(t,"masters/modules/series-label.src.js",[t["Core/Globals.js"],t["Extensions/SeriesLabel/SeriesLabel.js"]],function(n,i){i.compose(n.Chart,n.SVGRenderer)})})})(nC);var lj=nC.exports;const uj=_.getDefaultExportFromCjs(lj);var iC={exports:{}};(function(e){(function(t){e.exports?(t.default=t,e.exports=t):t(typeof Highcharts!="undefined"?Highcharts:void 0)})(function(t){function r(n,i,a,o){n.hasOwnProperty(i)||(n[i]=o.apply(null,a),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:n[i]}})))}t=t?t._modules:{},r(t,"Series/Streamgraph/StreamgraphSeries.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(n,i){var a=this&&this.__extends||function(){var c=function(h,f){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,g){p.__proto__=g}||function(p,g){for(var b in g)g.hasOwnProperty(b)&&(p[b]=g[b])},c(h,f)};return function(h,f){function p(){this.constructor=h}c(h,f),h.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}(),o=n.seriesTypes.areaspline,s=i.merge;i=i.extend;var u=function(c){function h(){var f=c!==null&&c.apply(this,arguments)||this;return f.data=void 0,f.points=void 0,f.options=void 0,f}return a(h,c),h.prototype.streamStacker=function(f,p,g){f[0]-=p.total/2,f[1]-=p.total/2,this.stackedYData[g]=f},h.defaultOptions=s(o.defaultOptions,{fillOpacity:1,lineWidth:0,marker:{enabled:!1},stacking:"stream"}),h}(o);return i(u.prototype,{negStacks:!1}),n.registerSeriesType("streamgraph",u),u}),r(t,"masters/modules/streamgraph.src.js",[],function(){})})})(iC);var cj=iC.exports;const dj=_.getDefaultExportFromCjs(cj),hj=()=>{typeof _.Highcharts=="object"&&(uj(_.Highcharts),dj(_.Highcharts)),function(e){e.seriesTypes.line.prototype.drawLegendSymbol=e.seriesTypes.area.prototype.drawLegendSymbol,_.Highcharts.wrap(_.Highcharts.Series.types.treemap.prototype,"pointAttribs",function(t,...r){var a;const n=t.call(this,...r),i=r[0];return(a=i.options.custom)!=null&&a.blur&&(n.fill=_.Highcharts.color(i.color).setOpacity(.2).get("rgba"),n.stroke=_.Highcharts.color(n.stroke).setOpacity(.2).get("rgba")),n})}(_.Highcharts),function(e){e.Point.prototype.importEvents=function(){const t=this;this.importedEvents&&this.importedEvents.forEach(function(i){i()}),this.importedEvents=[];const r=e.merge(t.series.options.point,t.options),n=r.events;t.events=n,e.objectEach(n,function(i,a){e.isFunction(i)&&t.importedEvents.push(e.addEvent(t,a,i))})}}(_.Highcharts),sj(_.Highcharts)};hj();const fj={style:{height:"100%",width:"100%"}},X0=({options:e})=>{var h,f,p,g,b,v;const t=fd(e),r=k.useCallback(w=>{var M,E,S,P,R,N,B,U;const C=e;!((P=(S=(E=(M=C==null?void 0:C.plotOptions)==null?void 0:M.series)==null?void 0:E.point)==null?void 0:S.events)!=null&&P.click)&&!((U=(B=(N=(R=C==null?void 0:C.plotOptions)==null?void 0:R.series)==null?void 0:N.point)==null?void 0:B.events)!=null&&U.contextmenu)&&(w.container.onclick=null)},[e]),n=w=>w==null?void 0:w.some(({data:C})=>C.some(M=>!!M.marker)),i=(t==null?void 0:t.xAxis)&&(e==null?void 0:e.xAxis)&&((h=t==null?void 0:t.xAxis[0])==null?void 0:h.type)!==((f=e==null?void 0:e.xAxis[0])==null?void 0:f.type),a=!!t&&((p=t==null?void 0:t.navigator)==null?void 0:p.enabled)!==((g=e==null?void 0:e.navigator)==null?void 0:g.enabled),o=n(t==null?void 0:t.series)&&!n(e==null?void 0:e.series),s=!!t&&((b=t==null?void 0:t.chart)==null?void 0:b.type)!==((v=e==null?void 0:e.chart)==null?void 0:v.type),u=i||a||s||o,c=k.useMemo(()=>I.cloneDeep(e),[e]);return _.jsx(aj,{highcharts:_.Highcharts,options:c,containerProps:fj,immutable:u,callback:r})};function pj(e,t,r,n){return I.baseForOwn(e,function(i,a,o){t(n,r(i),a,o)}),n}function mj(e,t){return function(r,n){return pj(r,e,t(n),{})}}var gj=Object.prototype,vj=gj.toString,yj=mj(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=vj.call(t)),e[t]=r},I.constant(I.identity)),Z0=(e=>(e.SUNDAY="sunday",e.MONDAY="monday",e.TUESDAY="tuesday",e.WEDNESDAY="wednesday",e.THURSDAY="thursday",e.FRIDAY="friday",e.SATURDAY="saturday",e))(Z0||{});const aC={sunday:0,monday:1,tuesday:2,wednesday:3,thursday:4,friday:5,saturday:6},bj=yj(aC);function Ml(e){return aC[e]}function _j(e){return bj[e]}function K0(e,t,r=_.SINGLE_LETTER_DAY_DATE_FORMAT){const n=new Date(_.REFERENCE_SUNDAY_DATE),i=Ml(e),a=[];for(let o=i;o<i+_.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK;o++){const s=new Date(n);s.setDate(n.getDate()+o);const u=t(s,r);a.push(u)}return a}function wj(e){const t=_.getPaletteColor(e.palette.variantColors,0),r=_.scaleBrightness(t,_.CALENDAR_HEATMAP_COLORS.MIN_COLOR_BRIGHTNESS_PERCENT),n=_.scaleBrightness(r,_.CALENDAR_HEATMAP_COLORS.MAX_COLOR_BRIGHTNESS_PERCENT);return{type:"range",minColor:r,maxColor:n}}function xj(e){if(!e)return r=>r;const t=_.createDataColoringFunction({getValueFromDataStructure:r=>{var n;return(n=r.value)!=null?n:0},applyColorToDataStructure:(r,n)=>$(T({},r),{color:r.color||n})});return r=>$(T({},r),{values:t(r.values,e)})}function oC(e,t){if(e==="calendar-heatmap/continuous"){let r;switch(t){case _.ViewType.MONTH:r=1;break;case _.ViewType.QUARTER:r=3;break;case _.ViewType.HALF_YEAR:r=6;break;case _.ViewType.YEAR:r=6;break;default:r=1}const n=Math.ceil(r*5);return{rows:_.CALENDAR_HEATMAP_SIZING.ROWS,cols:n}}else return{rows:_.CALENDAR_HEATMAP_SIZING.ROWS,cols:_.CALENDAR_HEATMAP_SIZING.COLUMNS}}function sC(e,t,r){if(r==="calendar-heatmap/continuous")return e===_.ViewType.YEAR?{cols:1,rows:2}:{cols:1,rows:1};const n=t.height>t.width;switch(e){case _.ViewType.MONTH:return{cols:1,rows:1};case _.ViewType.QUARTER:return n?{cols:1,rows:3}:{cols:3,rows:1};case _.ViewType.HALF_YEAR:return n?{cols:2,rows:3}:{cols:3,rows:2};case _.ViewType.YEAR:return n?{cols:3,rows:4}:t.width/t.height>2.5?{cols:6,rows:2}:{cols:4,rows:3};default:return{cols:1,rows:1}}}function Cj(e,t,r){const n=sC(t,e,r),i=e.height-_.CALENDAR_HEATMAP_SIZING.PAGINATION_HEIGHT,a=(n.cols-1)*_.CALENDAR_HEATMAP_SIZING.GAP_WIDTH,o=(n.rows-1)*_.CALENDAR_HEATMAP_SIZING.GAP_HEIGHT,s=(e.width-a-_.CALENDAR_HEATMAP_SIZING.MARGINS.LEFT-_.CALENDAR_HEATMAP_SIZING.MARGINS.RIGHT)/n.cols,u=t!==_.ViewType.MONTH?_.CALENDAR_HEATMAP_SIZING.TITLE_HEIGHT:0,c=(i-o-_.CALENDAR_HEATMAP_SIZING.MARGINS.TOP-_.CALENDAR_HEATMAP_SIZING.MARGINS.BOTTOM)/n.rows-u;return{width:s,height:c}}function Tj(e,t,r,n){var h;if(!((h=e.values)!=null&&h.length)){const f=oC(r,n);return{rows:f.rows,cols:f.cols}}const i=e.values.map(f=>new Date(f.date)).sort((f,p)=>f.getTime()-p.getTime()),a=i[0],o=Ml(t),u=(a.getDay()-o+_.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK)%_.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK,c=Math.ceil((i.length+u)/_.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK);return{rows:_.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK,cols:c}}function Mj(e,t){if(e==="calendar-heatmap/split")return{left:0,top:0,right:0};const r=t.width>=_.CALENDAR_HEATMAP_DEFAULTS.SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD;return{left:r?60:0,top:r?30:0,right:10}}function Sj(e,t,r,n){const i=e/r,a=t/n,o=Math.min(i,a);return Math.max(_.CALENDAR_HEATMAP_SIZING.MIN_CELL_SIZE,Math.min(_.CALENDAR_HEATMAP_SIZING.MAX_CELL_SIZE,o))}function Ej(e,t,r,n,i){const a=Cj(e,r,t),o=t==="calendar-heatmap/continuous"?Tj(n,i,t,r):oC(t,r),s=Mj(t,e),u=a.width-s.left-s.right,c=a.height-s.top,h=Sj(u,c,o.cols,o.rows),f=o.cols*h,p=o.rows*h,g=Math.min(u,f)+s.left+s.right,b=Math.min(c,p)+s.top;if(t==="calendar-heatmap/continuous")return{width:Math.floor(g),height:Math.floor(b),cellSize:Math.floor(h)};const v=Math.floor(Math.min(g,b));return{width:v,height:v,cellSize:Math.floor(h)}}function Pj(e){return new Date(e.year,e.month,2)}function tf(e){return{year:e.getFullYear(),month:e.getMonth()}}function Jn(e,t){return e.year!==t.year?e.year-t.year:e.month-t.month}function Aj(e,t,r){const n=Jn(e,t)>=0,i=Jn(e,r)<=0;return n&&i}function ks(e,t){let{year:r,month:n}=e;for(n+=t;n>11;)n-=12,r++;for(;n<0;)n+=12,r--;return{year:r,month:n}}function rf(e,t,r){if(e.length>=t)return e;if(e.length===0){const s=new Date,u={year:s.getFullYear(),month:s.getMonth()},c=ks(u,t-1);return ta(u,c,r)}const n=e[e.length-1],i=t-e.length,a=ks(n,i),o=ta(ks(n,1),a,r);return[...e,...o]}function ta(e,t,r){const n=[],i={year:e.year,month:e.month};for(;Jn(i,t)<=0;){const a=Pj(i);n.push({year:i.year,month:i.month,monthName:r(a,_.FULL_MONTH_DATE_FORMAT),shortMonthName:r(a,_.SHORT_MONTH_DATE_FORMAT)}),i.month++,i.month>11&&(i.month=0,i.year++)}return n}function Rj(e,t,r){if(e.length===0)return ta(t,t,r);const n=e[0];if(Jn(t,n)>=0)return e;const i={year:n.month===0?n.year-1:n.year,month:n.month===0?11:n.month-1};return[...ta(t,i,r),...e]}function Oj(e,t,r){if(e.length===0)return ta(t,t,r);const n=e[e.length-1];if(Jn(t,n)<=0)return e;const i={year:n.month===11?n.year+1:n.year,month:n.month===11?0:n.month+1},a=ta(i,t,r);return[...e,...a]}function kj(e){return e<=_.CALENDAR_HEATMAP_DEFAULTS.SHORT_MONTH_NAME_SPLIT_LAYOUT_WIDTH_THRESHOLD}function Dj(e,t){if(!e.values||e.values.length===0)return[];const r=new Set,n=[];return e.values.forEach(i=>{const a=i.date.getFullYear(),o=i.date.getMonth(),s=`${a}-${o}`;r.has(s)||(r.add(s),n.push({year:a,month:o,monthName:t(i.date,_.FULL_MONTH_DATE_FORMAT),shortMonthName:t(i.date,_.SHORT_MONTH_DATE_FORMAT)}))}),n.sort((i,a)=>Jn(i,a))}function Nj(e,t,r,n){const i=Dj(e,t),a=n?Q0(n):1;if(!r)return rf(i,a,t);if(i.length===0){const c=ks(r,a-1);return ta(r,c,t)}const o=i[0],s=i[i.length-1];if(Aj(r,o,s))return rf(i,a,t);let u;if(Jn(r,o)<0)u=Rj(i,r,t);else{const c=ks(r,a-1);u=Oj(i,c,t)}return rf(u,a,t)}function Q0(e){switch(e){case _.ViewType.MONTH:return 1;case _.ViewType.QUARTER:return 3;case _.ViewType.HALF_YEAR:return 6;case _.ViewType.YEAR:return 12;default:return 1}}function J0(e,t,r){const n=Q0(r),i=e.findIndex(u=>Jn(u,t)===0),a=i>=0?i:0;if(n===1)return e.slice(a,a+1);let o=a,s=Math.min(o+n,e.length);return s-o<n&&e.length>=n&&(o=Math.max(0,e.length-n),s=e.length),e.slice(o,s)}const Lj=Ke.div`
215
+ display: grid;
216
+ column-gap: 30px;
217
+ row-gap: 10px;
218
+ grid-template-columns: repeat(${e=>e.gridCols}, 1fr);
219
+ grid-template-rows: repeat(${e=>e.gridRows}, 1fr);
220
+ background-color: transparent;
221
+ place-items: center; /* Center each grid item horizontally and vertically */
222
+ `,Ij=Ke.div`
223
+ display: flex;
224
+ flex-direction: column;
225
+ align-items: center;
226
+ `,$j=Ke.h3`
227
+ font-size: 13px;
228
+ font-weight: 400;
229
+ color: #333;
230
+ text-align: center;
231
+ text-transform: capitalize;
232
+ margin: 0;
233
+ height: ${_.CALENDAR_HEATMAP_SIZING.TITLE_HEIGHT}px;
234
+ `,Fj=({monthCharts:e,availableMonths:t,currentMonth:r,subtype:n,viewType:i,monthLabels:a,size:o})=>{const{themeSettings:s}=it(),u=k.useMemo(()=>sC(i,o,n),[i,n,o]);if(t.length===0)return null;const c=J0(t,r,i);return _.jsx(Lj,{viewType:i,gridCols:u.cols,gridRows:u.rows,children:e.map((h,f)=>{var b,v,w;if(!h)return null;const p=c[f];if(!p)return null;const g=kj((b=h.chart.width)!=null?b:0);return _.jsxs(Ij,{children:[(a==null?void 0:a.enabled)&&i!==_.ViewType.MONTH&&n==="calendar-heatmap/split"&&_.jsx($j,{style:$(T({},a.style),{color:((v=a.style)==null?void 0:v.color)||(s==null?void 0:s.chart.textColor),fontFamily:((w=a.style)==null?void 0:w.fontFamily)||(s==null?void 0:s.typography.fontFamily)}),children:g?p.shortMonthName:p.monthName}),_.jsx(X0,{options:h})]},`${p.year}-${p.month}`)})})},Bp=e=>{var n;const t=e.direction==="left"?"csdk-scale-x-[-1]":"",r=e.disabled?"csdk-opacity-0":"";return _.jsx("svg",$(T({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),{className:[e.className,t,r].join(" "),children:_.jsx("path",{fill:(n=e.fill)!=null?n:e.theme.typography.primaryTextColor,fillRule:"nonzero",d:"M13.34 12.5l-2.72-3.175a.5.5 0 1 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175z"})}))},Wp=e=>{var n;const t=e.direction==="left"?"csdk-scale-x-[-1]":"",r=e.disabled?"csdk-opacity-0":"";return _.jsx("svg",$(T({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),{className:[e.className,t,r].join(" "),children:_.jsx("path",{fill:(n=e.fill)!=null?n:e.theme.typography.primaryTextColor,fillRule:"nonzero",d:"M11.34 12.5L8.62 9.325a.5.5 0 0 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175zm.279-3.175a.5.5 0 0 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.999 3.5a.5.5 0 1 1-.76-.65l2.72-3.175-2.72-3.175z"})}))},z1=e=>{var n;const t=e.direction==="left"?"csdk-scale-x-[-1]":"",r=e.disabled?"csdk-opacity-0":"";return _.jsx("svg",$(T({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),{className:[e.className,t,r].join(" "),children:_.jsxs("g",{fill:(n=e.fill)!=null?n:e.theme.typography.primaryTextColor,fillRule:"nonzero",children:[_.jsx("path",{d:"M11.61 15.62l2.97-3.33-2.83-3.16a.39.39 0 1 1 .59-.5l3.05 3.42a.39.39 0 0 1 0 .5l-3.19 3.58a.39.39 0 1 1-.59-.5zm-3.87 0l2.97-3.33-2.83-3.16a.39.39 0 1 1 .59-.5l3.05 3.42a.39.39 0 0 1 0 .5l-3.19 3.58a.39.39 0 1 1-.59-.5z"}),_.jsx("path",{d:"M16.26 15.86a.39.39 0 0 1-.77 0v-6.97a.39.39 0 0 1 .77 0v6.97z"})]})}))};function zj(e,t,r){const n=J0(e,t,r);if(n.length===0)return"";if(r==="month"){const o=n[0];return o?`${o.monthName} ${o.year}`:""}const i=n[0].year,a=n[n.length-1].year;return i===a?`${i}`:`${i} - ${a}`}const Bj=Ke.div`
235
+ display: flex;
236
+ justify-content: center;
237
+ align-items: center;
238
+ padding: 10px 20px;
239
+ background-color: transparent;
240
+ height: ${_.CALENDAR_HEATMAP_SIZING.PAGINATION_HEIGHT}px;
241
+ opacity: 1;
242
+ transition: opacity 0.3s ease;
243
+ box-sizing: border-box;
244
+ `,ka=Ke.button`
245
+ padding: 0;
246
+ background-color: transparent;
247
+ border: none;
248
+ border-radius: 4px;
249
+ cursor: ${e=>e.disabled?"not-allowed":"pointer"};
250
+ display: flex;
251
+ align-items: center;
252
+ justify-content: center;
253
+ transition: all 0.2s ease;
254
+ opacity: ${e=>e.disabled?.3:1};
255
+
256
+ &:hover {
257
+ background-color: ${e=>e.disabled?"transparent":"rgba(0, 0, 0, 0.05)"};
258
+ }
259
+ `,Wj=Ke.div`
260
+ font-size: 15px;
261
+ font-weight: 400;
262
+ color: ${({theme:e})=>e.chart.textColor};
263
+ font-family: ${({theme:e})=>e.typography.fontFamily};
264
+ min-width: 110px;
265
+ text-align: center;
266
+ margin: 0 10px;
267
+ text-transform: capitalize;
268
+ `,Hj=({value:e,availableMonths:t,viewType:r,onChange:n,labelStyle:i})=>{const{themeSettings:a}=it(),{t:o}=_.useTranslation(),s=Q0(r),u=t.findIndex(Q=>Jn(Q,e)===0),c=()=>{const Q=t[0];Q&&n({year:Q.year,month:Q.month})},h=()=>{if(u>0){const Q=t[u-1];n({year:Q.year,month:Q.month})}},f=()=>{if(u<t.length-1){const Q=t[u+1];n({year:Q.year,month:Q.month})}},p=()=>{const Q=Math.max(0,t.length-s),O=t[Q];O&&n({year:O.year,month:O.month})},g=()=>{const Q=Math.max(0,u-s),O=t[Q];O&&n({year:O.year,month:O.month})},b=()=>{const Q=Math.min(t.length-s,u+s),O=t[Q];O&&n({year:O.year,month:O.month})},v=u===0,w=s===1?t.length-1:Math.max(0,t.length-s),C=u>=w,M=u>0,E=u<w,S=zj(t,e,r),P=o("calendarHeatmap.navigation.firstMonth"),R=o("calendarHeatmap.navigation.lastMonth"),N=o("calendarHeatmap.navigation.previousMonth"),B=o("calendarHeatmap.navigation.nextMonth"),U=o("calendarHeatmap.navigation.previousGroup"),K=o("calendarHeatmap.navigation.nextGroup");return _.jsxs(Bj,{children:[_.jsx(ka,{disabled:v,onClick:c,title:P,"aria-label":P,theme:a,children:_.jsx(z1,{direction:"left",disabled:v,theme:a,fill:a.chart.secondaryTextColor,width:_.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:_.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})}),r!==_.ViewType.MONTH&&_.jsx(ka,{disabled:v,onClick:g,title:U,"aria-label":U,children:_.jsx(Wp,{direction:"left",disabled:v,theme:a,fill:a.chart.secondaryTextColor,width:_.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:_.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})}),_.jsx(ka,{disabled:r===_.ViewType.MONTH?v:!M,onClick:h,title:N,"aria-label":N,children:_.jsx(Bp,{direction:"left",disabled:r===_.ViewType.MONTH?v:!M,theme:a,fill:a.chart.secondaryTextColor,width:_.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:_.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})}),_.jsx(Wj,{theme:a,style:i,children:S}),_.jsx(ka,{disabled:r===_.ViewType.MONTH?C:!E,onClick:f,title:B,"aria-label":B,children:_.jsx(Bp,{direction:"right",disabled:r===_.ViewType.MONTH?C:!E,theme:a,fill:a.chart.secondaryTextColor,width:_.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:_.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})}),r!==_.ViewType.MONTH&&_.jsx(ka,{disabled:C,onClick:b,title:K,"aria-label":K,children:_.jsx(Wp,{direction:"right",disabled:C,theme:a,fill:a.chart.secondaryTextColor,width:_.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:_.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})}),_.jsx(ka,{disabled:C,onClick:p,title:R,"aria-label":R,children:_.jsx(z1,{direction:"right",disabled:C,theme:a,fill:a.chart.secondaryTextColor,width:_.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:_.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})})]})};function Vu(e){return e===null}const jj=e=>typeof e=="object"&&e!==null,B1=(e,t)=>{if(!jj(e))return;const r=e[t];return typeof r=="string"?r:void 0},Vj=function(){const e=this.name,t=B1(this.options,"id"),r=!this.visible;this.chart.series.filter(i=>{if(i===this)return!1;const a=B1(i.options,"statisticalSeriesRelatesToSeries");return a===void 0?!1:a===e||t!==void 0&&a===t}).forEach(i=>i.setVisible(r,!1))},lC=(e,t,{onDataPointClick:r,onDataPointContextMenu:n,onDataPointsSelected:i}={})=>{var o,s;const a={chart:{events:{drilldown:function(){var u,c;((c=(u=this.options)==null?void 0:u.chart)==null?void 0:c.type)==="pie"&&(this.isDrillingDownAction=!0)},redraw:function(){var u,c;((c=(u=this.options)==null?void 0:u.chart)==null?void 0:c.type)==="pie"&&(this.isDrillingDownAction?delete this.isDrillingDownAction:this.drillUp())}}},plotOptions:{series:{events:{legendItemClick:Vj},point:{events:{click:()=>{}}}}}};return i&&(((o=e.chart)==null?void 0:o.type)!=="heatmap"&&(a.chart.zoomType="x"),["scatter","bubble"].includes((s=e.chart)==null?void 0:s.type)&&(a.chart.zoomType="xy"),a.chart.events.selection=u=>{u.preventDefault();const{xAxis:c,yAxis:h,originalEvent:f}=u,p=Uj(c[0],h[0]);p.forEach(g=>{g.state=""}),i(p.map(g=>ef(g,t)),f)}),r&&(a.plotOptions.series.point.events.click=u=>{!!u.point.options&&(u.point.state="hover",r(ef(u.point,t),u))}),n&&(a.plotOptions.series.point.events.contextmenu=u=>{u.preventDefault(),n(ef(u.point,t),u)}),_.merge$1(e,a)};function Gj(e,{onDataPointClick:t,onDataPointContextMenu:r,onDataPointsSelected:n}={}){return i=>lC(i,e,{onDataPointClick:t,onDataPointContextMenu:r,onDataPointsSelected:n})}const Uj=(e,t)=>{const r=e.axis.series.flatMap(i=>i.points).filter(({x:i,y:a})=>{const o=i>=e.min&&i<=e.max,s=!Vu(a);return o&&s});if(!t)return r;const n=t.axis.series.flatMap(i=>i.points).filter(({y:i})=>i>=t.min&&i<=t.max);return r.filter(i=>n.includes(i))},Yj=600,qj=300,uC=(e,t,r)=>{const n={duration:t.chart.animation.init.duration==="auto"?Yj:t.chart.animation.init.duration},i={duration:t.chart.animation.redraw.duration==="auto"?qj:t.chart.animation.redraw.duration};return _.merge(e,{accessibility:{enabled:r},chart:{animation:i},plotOptions:{series:{animation:n}},boost:{useGPUTranslations:!0,usePreAllocated:!0}})};function Xj(e,t){return r=>uC(r,e,t)}const cC=(e,t)=>{var p;if(!t)return e;const r={backgroundColor:t.chart.backgroundColor},n={style:{fontFamily:t.typography.fontFamily}},i={itemStyle:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}},o={series:{dataLabels:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}}}},s={activeDataLabelStyle:{color:t.chart.textColor},breadcrumbs:{buttonTheme:{fill:t.general.brandColor,stroke:t.general.brandColor,style:{color:t.general.primaryButtonTextColor},states:{hover:{fill:t.general.primaryButtonHoverColor,stroke:t.general.primaryButtonHoverColor}}}}},u={chart:r,tooltip:n,legend:i,plotOptions:o,drilldown:s},c={labels:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}},title:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}}},h={color:t==null?void 0:t.chart.backgroundColor,label:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}}},f=_.merge(u,e);return f.xAxis=(p=f.xAxis)==null?void 0:p.map(g=>{var v;g.plotBands=(v=g.plotBands)==null?void 0:v.map(w=>_.merge(w,$(T({},h),{color:t==null?void 0:t.chart.backgroundColor})));const b=_.merge(g,c);return b.stackLabels&&(b.stackLabels.style=T({color:t.chart.textColor,fontFamily:t.typography.fontFamily},b.stackLabels.style)),b}),f.yAxis&&(f.yAxis=f.yAxis.map(g=>{var v;g.plotBands=(v=g.plotBands)==null?void 0:v.map(w=>_.merge(w,$(T({},h),{color:w.color||(t==null?void 0:t.chart.backgroundColor)})));const b=_.merge(g,c);return b.stackLabels&&(b.stackLabels.style=T({color:t.chart.textColor,fontFamily:t.typography.fontFamily},b.stackLabels.style)),b})),f};function Zj(e){return t=>cC(t,e)}const dC=({highchartsOptionsBuilder:e,chartData:t,dataOptions:r,designOptions:n,extraConfig:i,dataPointsEventHandlers:a,onBeforeRender:o})=>{const s={chartData:t,dataOptions:r,designOptions:n,extraConfig:i};return _.flow(Xj(i.themeSettings,i.accessibilityEnabled),Gj(r,a),Zj(i.themeSettings),Kj(o))(T($(T({chart:e.getChart(s),series:e.getSeries(s)},e.getAxes(s)),{legend:e.getLegend(s),plotOptions:e.getPlotOptions(s),tooltip:e.getTooltip(s)}),e.getExtras(s)))};function Kj(e){return e||(t=>t)}function hC(){var i;const{app:e}=wt(),{t}=_.useTranslation(),{themeSettings:r}=it(),n=eC();return k.useMemo(()=>{var a;return{translate:t,themeSettings:r,dateFormatter:n,accessibilityEnabled:((a=e==null?void 0:e.settings.accessibilityConfig)==null?void 0:a.enabled)||!1}},[t,r,n,(i=e==null?void 0:e.settings.accessibilityConfig)==null?void 0:i.enabled])}function Hp(e){const t=e*_.CALENDAR_TYPOGRAPHY.FONT_SIZE_RATIO;return Math.max(_.CALENDAR_TYPOGRAPHY.MIN_AXIS_FONT_SIZE,Math.min(_.CALENDAR_TYPOGRAPHY.MAX_FONT_SIZE,t))}function Qj(e){return e<30?e*.5:0}function Jj(e,t,r,n=0){if(!e.values||e.values.length===0)return[];const i=e.values.map(g=>new Date(g.date)).sort((g,b)=>g.getTime()-b.getTime()),a=i[0],o=Ml(r),u=(a.getDay()-o+_.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK)%_.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK,c=new Map;i.forEach((g,b)=>{const v=`${g.getFullYear()}-${g.getMonth()}`,w=Math.floor((b+u)/_.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK);if(!c.has(v))c.set(v,{firstDate:g,lastDate:g,firstColumn:w,lastColumn:w});else{const C=c.get(v);C.lastDate=g,C.lastColumn=w}});const h=i.length,f=Math.ceil((h+u)/_.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK),p=new Array(f).fill("");return Array.from(c.entries()).forEach(([g,b])=>{const{firstDate:v,firstColumn:w,lastColumn:C}=b,M=(C-w)*n,E=w+Math.floor((C-w)/2),S=t(v,M>_.CALENDAR_HEATMAP_DEFAULTS.SHORT_MONTH_NAME_CONTINUES_LAYOUT_WIDTH_THRESHOLD?_.FULL_MONTH_DATE_FORMAT:_.SHORT_MONTH_DATE_FORMAT);E>=0&&E<p.length&&(p[E]=S)}),p}function eV(e){var b,v,w,C,M,E,S,P,R,N,B,U,K,Q,O,F,q,j,V,W,G;const t=(b=e.designOptions.cellSize)!=null?b:0,r=e.designOptions.startOfWeek,n=e.designOptions.dayLabels,i=e.designOptions.monthLabels,a=e.designOptions.viewType,o=K0(r,e.extraConfig.dateFormatter,_.THREE_LETTER_DAY_DATE_FORMAT).reverse(),s=((v=n.style)==null?void 0:v.color)||((w=e.extraConfig.themeSettings)==null?void 0:w.chart.textColor),u=((C=n.style)==null?void 0:C.fontFamily)||((M=e.extraConfig.themeSettings)==null?void 0:M.typography.fontFamily),c=(S=(E=n.style)==null?void 0:E.fontSize)!=null?S:`${Hp(t)}px`,h=((P=i.style)==null?void 0:P.color)||((R=e.extraConfig.themeSettings)==null?void 0:R.chart.textColor),f=((N=i.style)==null?void 0:N.fontFamily)||((B=e.extraConfig.themeSettings)==null?void 0:B.typography.fontFamily),p=(K=(U=i.style)==null?void 0:U.fontSize)!=null?K:`${Hp(t)}px`;return{xAxis:[{categories:Jj(e.chartData,e.extraConfig.dateFormatter,r,e.designOptions.cellSize),opposite:!0,lineWidth:0,gridLineWidth:0,offset:0,labels:{enabled:i.enabled&&a!==_.ViewType.MONTH,rotation:0,overflow:"justify",style:T(T({fontSize:p,color:h,fontFamily:f,textOverflow:"none"},((Q=i.style)==null?void 0:Q.fontWeight)&&{fontWeight:i.style.fontWeight}),((O=i.style)==null?void 0:O.fontStyle)&&{fontStyle:i.style.fontStyle})},accessibility:{description:"months",rangeDescription:"X Axis shows months in chronological order."}}],yAxis:[{categories:n.enabled?[...o]:[],opposite:!1,lineWidth:0,gridLineWidth:0,offset:15,title:{text:null},labels:{rotation:0,style:T(T(T(T(T({fontSize:c,color:s,fontFamily:u},((F=n.style)==null?void 0:F.fontWeight)&&{fontWeight:n.style.fontWeight}),((q=n.style)==null?void 0:q.fontStyle)&&{fontStyle:n.style.fontStyle}),((j=n.style)==null?void 0:j.textOutline)&&{textOutline:n.style.textOutline}),((V=n.style)==null?void 0:V.pointerEvents)&&{pointerEvents:n.style.pointerEvents}),((W=n.style)==null?void 0:W.textOverflow)&&{textOverflow:n.style.textOverflow}),enabled:n.enabled&&((G=e.designOptions.height)!=null?G:0)>=_.CALENDAR_HEATMAP_DEFAULTS.SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD},accessibility:{description:"days of week",rangeDescription:`Y Axis shows days of the week, starting with ${r===Z0.MONDAY?"Monday":"Sunday"}.`}}]}}function tV(e){var c,h,f,p,g,b,v,w,C,M,E,S,P;const t=(c=e.designOptions.cellSize)!=null?c:0,r=e.designOptions.startOfWeek,n=e.designOptions.dayLabels,i=Qj(t),a=K0(r,e.extraConfig.dateFormatter,_.SINGLE_LETTER_DAY_DATE_FORMAT),o=((h=n.style)==null?void 0:h.color)||((f=e.extraConfig.themeSettings)==null?void 0:f.chart.textColor),s=((p=n.style)==null?void 0:p.fontFamily)||((g=e.extraConfig.themeSettings)==null?void 0:g.typography.fontFamily),u=(v=(b=n.style)==null?void 0:b.fontSize)!=null?v:`${Hp(t)}px`;return{xAxis:[{categories:n.enabled?[...a]:[],opposite:!0,lineWidth:0,offset:0,labels:{rotation:0,y:i,style:T(T(T(T(T({fontSize:u,color:o,fontFamily:s},((w=n.style)==null?void 0:w.fontWeight)&&{fontWeight:n.style.fontWeight}),((C=n.style)==null?void 0:C.fontStyle)&&{fontStyle:n.style.fontStyle}),((M=n.style)==null?void 0:M.textOutline)&&{textOutline:n.style.textOutline}),((E=n.style)==null?void 0:E.pointerEvents)&&{pointerEvents:n.style.pointerEvents}),((S=n.style)==null?void 0:S.textOverflow)&&{textOverflow:n.style.textOverflow}),enabled:n.enabled&&((P=e.designOptions.width)!=null?P:0)>=_.CALENDAR_HEATMAP_DEFAULTS.SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD},accessibility:{description:"weekdays",rangeDescription:`X Axis is showing all 7 days of the week, starting with ${r===Z0.MONDAY?"Monday":"Sunday"}.`}}],yAxis:[{categories:[],min:0,max:5,tickInterval:1,gridLineWidth:0,title:{text:null},accessibility:{description:"weeks"},visible:!1}]}}function fC(e){var n,i;const t=(n=e.designOptions.width)!=null?n:0,r=(i=e.designOptions.height)!=null?i:0;return{type:"heatmap",plotBorderWidth:_.CALENDAR_HEATMAP_DEFAULTS.BORDER_WIDTH,backgroundColor:"transparent",marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,spacing:[0,0,0,0],width:t,height:r,polar:!1}}function rV(e){var i,a;const t=(i=e.designOptions.cellSize)!=null?i:0,n=((a=e.designOptions.width)!=null?a:0)>=_.CALENDAR_HEATMAP_DEFAULTS.SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD;return $(T({},fC(e)),{marginTop:n?t:0})}function nV(e){var n;const r=((n=e.designOptions.width)!=null?n:0)>=_.CALENDAR_HEATMAP_DEFAULTS.SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD;return $(T({},fC(e)),{marginLeft:r?60:0,marginTop:r?30:0,marginRight:10})}function pC(){return{title:{text:null},accessibility:{landmarkVerbosity:"one"}}}function mC(){return{enabled:!1}}function iV(e){const t=e*_.CALENDAR_TYPOGRAPHY.FONT_SIZE_RATIO;return Math.max(_.CALENDAR_TYPOGRAPHY.MIN_FONT_SIZE,Math.min(_.CALENDAR_TYPOGRAPHY.MAX_FONT_SIZE,t))}function gC(e){var u,c,h,f,p,g,b,v,w,C,M,E,S,P,R,N,B;const t=e.designOptions.cellLabels,r=(c=(u=e.designOptions)==null?void 0:u.cellSize)!=null?c:0,n=((h=t==null?void 0:t.style)==null?void 0:h.fontSize)||`${iV(r)}px`,i=(p=(f=t==null?void 0:t.style)==null?void 0:f.fontWeight)!=null?p:"normal",a=(b=(g=t==null?void 0:t.style)==null?void 0:g.textOutline)!=null?b:"none",o=(C=(v=t==null?void 0:t.style)==null?void 0:v.fontFamily)!=null?C:(w=e.extraConfig.themeSettings)==null?void 0:w.typography.fontFamily,s=((M=t==null?void 0:t.style)==null?void 0:M.color)||((E=e.extraConfig.themeSettings)==null?void 0:E.chart.textColor);return{series:{},heatmap:{dataLabels:{enabled:t.enabled&&((P=(S=e.designOptions)==null?void 0:S.cellSize)!=null?P:0)>=_.CALENDAR_HEATMAP_DEFAULTS.SHOW_CELL_LABEL_SIZE_THRESHOLD,style:T(T(T({color:s,fontSize:n,fontWeight:i,textOutline:a,fontFamily:o},((R=t.style)==null?void 0:R.fontStyle)&&{fontStyle:t.style.fontStyle}),((N=t.style)==null?void 0:N.pointerEvents)&&{pointerEvents:t.style.pointerEvents}),((B=t.style)==null?void 0:B.textOverflow)&&{textOverflow:t.style.textOverflow}),formatter:function(){const U=this.point;return U.custom&&U.custom.monthDay?U.custom.monthDay.toString():""}}}}}const aV="yyyy-MM-dd'T'HH:mm:ss";function oV(e,t){const r=_j(e.getDay());return t.includes(r)}function vC(e,t,r,n){if(e.values.length===0)return[];const i=new Date(e.values[0].date),a=i.getFullYear(),o=i.getMonth(),u=new Date(a,o,1).getDay(),c=Ml(r),h=(u-c+7)%7,f=K0(r,t),p=[];return e.values.forEach(g=>{var B;const b=new Date(g.date),v=b.getDate(),w=t(b,aV),C=(h+v-1)%f.length,M=Math.floor((h+v-1)/f.length),E=(B=g.value)!=null?B:null,S=g.value!==void 0,P=oV(b,n.days);let R;S?n.enabled&&n.days.length>0&&P?R=n.cellColor||_.CALENDAR_HEATMAP_DEFAULTS.WEEKEND_CELL_COLOR:g.color&&(R=g.color):R=_.CALENDAR_HEATMAP_DEFAULTS.NO_DATA_COLOR;const N=n.enabled&&n.hideValues&&P;p.push({x:C,y:5-M,value:E,date:b.getTime(),dateString:w,color:R,custom:{monthDay:v,hasData:!N&&S,blur:g.blur},className:S&&g.blur?"csdk-highcharts-point-blured":""})}),p}function sV(e,t,r,n){if(e.values.length===0)return[];const i=e.values.map(w=>new Date(w.date)).sort((w,C)=>w.getTime()-C.getTime()),a=i[0],o=i[i.length-1],s=new Date(a.getFullYear(),a.getMonth(),1),u=new Date(o.getFullYear(),o.getMonth()+1,0),c=new Map;for(let w=new Date(s);w<=u;w.setMonth(w.getMonth()+1)){const C=`${w.getFullYear()}-${w.getMonth()}`;c.set(C,[])}e.values.forEach(w=>{const C=new Date(w.date),M=`${C.getFullYear()}-${C.getMonth()}`;c.has(M)&&c.get(M).push(w)});const h=[],f=Ml(r),p=new Date(s),g=(s.getDay()-f+7)%7;p.setDate(s.getDate()-g);for(const[w,C]of c){const[M,E]=w.split("-"),S=parseInt(M,10),P=parseInt(E,10),R={type:"calendar-heatmap",values:C.length>0?C:[{date:new Date(S,P,1),value:void 0}]},N=vC(R,t,r,n);h.push(...N)}let b=_.CALENDAR_HEATMAP_SIZING.ROWS-1-h[0].x,v=0;for(let w=0;w<h.length;w++)h[w].y=b,h[w].x=v,b--,b<0&&(b=_.CALENDAR_HEATMAP_SIZING.ROWS-1,v++);return h}function lV(e){const t=e.designOptions.startOfWeek,r=e.designOptions.weekends,n=vC(e.chartData,e.extraConfig.dateFormatter,t,r);return[{name:"Calendar Heatmap",type:"heatmap",keys:["x","y","value","date","color","custom"],data:n,nullColor:_.CALENDAR_HEATMAP_DEFAULTS.NO_DATA_COLOR,borderWidth:_.CALENDAR_HEATMAP_DEFAULTS.BORDER_WIDTH,borderColor:"transparent",colsize:1,rowsize:1}]}function uV(e){const t=e.designOptions.startOfWeek,r=e.designOptions.weekends,n=sV(e.chartData,e.extraConfig.dateFormatter,t,r);return[{name:"Calendar Heatmap",type:"heatmap",keys:["x","y","value","date","color","custom"],data:n,nullColor:_.CALENDAR_HEATMAP_DEFAULTS.NO_DATA_COLOR,borderWidth:1,borderColor:"white",colsize:1,rowsize:1}]}function yC(e){const{dateFormatter:t}=e.extraConfig,r=e.dataOptions.value.column.title||e.dataOptions.value.column.name,n=e.designOptions.width&&e.designOptions.width<_.CALENDAR_HEATMAP_SIZING.MIN_TOOLTIP_WIDTH;return{animation:!1,backgroundColor:_.colorWhite,borderColor:_.colorChineseSilver,borderRadius:10,borderWidth:1,useHTML:!0,style:{width:n?_.CALENDAR_HEATMAP_SIZING.MIN_TOOLTIP_WIDTH:void 0},position:{relativeTo:"chart"},followPointer:!0,outside:!0,formatter:function(){var g;const i=this.point,a=i.date&&new Date(i.date);if(!(a&&!isNaN(a.getTime())))return!1;const s=e.dataOptions.date,u=_.getDataOptionGranularity(s),c=s.dateFormat||_.getDefaultDateFormat(u),h=t(a,c);let f="";if(i.value!==null&&i.value!==void 0&&((g=i.custom)!=null&&g.hasData)){const b=e.dataOptions.value.numberFormatConfig,v=_.getCompleteNumberFormatConfig(b);f=_.applyFormat(v,i.value)}else f="—";const p=i.color&&_.scaleBrightness(i.color,_.CALENDAR_HEATMAP_COLORS.TOOLTIP_COLOR_BRIGHTNESS_PERCENT);return _.tooltipWrapper(`
269
+ ${r}
270
+ <br />
271
+ <span style="color: ${p!=null?p:"inherit"}">${f}</span>
272
+ ${_.tooltipSeparator()}
273
+ ${h}
274
+ `)}}}const cV={getChart:rV,getSeries:lV,getAxes:tV,getLegend:mC,getPlotOptions:gC,getTooltip:yC,getExtras:pC},dV={getChart:nV,getSeries:uV,getAxes:eV,getLegend:mC,getPlotOptions:gC,getTooltip:yC,getExtras:pC};function hV(e){return e==="calendar-heatmap/continuous"?dV:cV}function W1(e,t){const r=new Map;e.values.forEach(a=>{if(a.date.getFullYear()===t.year&&a.date.getMonth()===t.month){const o=`${t.year}-${t.month}-${a.date.getDate()}`;r.set(o,a)}});const n=new Date(t.year,t.month+1,0).getDate(),i=[];for(let a=1;a<=n;a++){const o=`${t.year}-${t.month}-${a}`,s=r.get(o);s?i.push(s):i.push({date:new Date(Date.UTC(t.year,t.month,a))})}return $(T({},e),{values:i})}function H1(e,t){if(!e.values||e.values.length===0){const r=$(T({},e),{values:[]});return W1(r,t)}return W1(e,t)}function fV(e,t,r,n){if(e==="calendar-heatmap/continuous"){let i=[];switch(t){case"month":i=[r.slice(0,1)];break;case"quarter":i=[r.slice(0,3)];break;case"half-year":i=[r.slice(0,6)];break;case"year":i=[r.slice(0,6),r.slice(6,12)].filter(a=>a.length>0);break;default:i=[r]}return i.map(a=>a.reduce((o,s)=>{const u=H1(n,s);return $(T({},o),{values:[...o.values,...u.values]})},{type:"calendar-heatmap",values:[]}))}else return r.map(i=>H1(n,i))}const pV=()=>{const e=hC();return k.useMemo(()=>$(T({},e),{themeSettings:$(T({},e.themeSettings),{chart:$(T({},e.themeSettings.chart),{animation:$(T({},e.themeSettings.chart.animation),{redraw:$(T({},e.themeSettings.chart.animation.redraw),{duration:0})})})})}),[e])};function mV({chartData:e,dataOptions:t,designOptions:r,availableMonths:n,currentMonth:i,subtype:a,viewType:o,containerSize:s,eventHandlers:u,onBeforeRender:c}){const h=pV(),f=k.useMemo(()=>{var g;const p=(g=t.value.color)!=null?g:wj(h.themeSettings);return xj(p)(e)},[e,t.value.color,h.themeSettings]);return k.useMemo(()=>{if(n.length===0)return[];const p=J0(n,i,o);return fV(a,o,p,f).map(b=>{const v=Ej(s,a,o,b,r.startOfWeek),w=hV(a);return dC({highchartsOptionsBuilder:w,chartData:b,dataOptions:t,designOptions:$(T({},r),{width:v.width,height:v.height,cellSize:v.cellSize}),dataPointsEventHandlers:{onDataPointClick:u.onDataPointClick,onDataPointContextMenu:u.onDataPointContextMenu,onDataPointsSelected:u.onDataPointsSelected},extraConfig:h,onBeforeRender:c})})},[n,i,o,a,f,t,r,s,u.onDataPointClick,u.onDataPointContextMenu,u.onDataPointsSelected,h,c])}const gV=e=>{const{chartData:t,startMonth:r}=e,n=fd(r),i=r?tf(r):t.values.length>0?tf(t.values[0].date):{year:new Date().getFullYear(),month:new Date().getMonth()},[a,o]=k.useState(i);return k.useEffect(()=>{r&&(!n||r.getTime()!==n.getTime())&&o(tf(r))},[r,n,o]),{currentMonth:a,setCurrentMonth:o}},vV=Ke.div`
275
+ display: flex;
276
+ flex-direction: column;
277
+ width: 100%;
278
+ height: 100%;
279
+ margin: 0 auto;
280
+ background-color: ${({theme:e})=>e.chart.backgroundColor};
281
+ `,yV=Ke.div`
282
+ display: flex;
283
+ flex-direction: column;
284
+ align-items: center;
285
+ justify-content: center;
286
+ flex: 1;
287
+ `;function bV({chartData:e,dataOptions:t,designOptions:r,onDataPointClick:n,onDataPointContextMenu:i,onDataPointsSelected:a,onBeforeRender:o,size:s}){var w,C,M;const{themeSettings:u}=it(),c=eC(),h=r.subtype,f=r.viewType,{currentMonth:p,setCurrentMonth:g}=gV({chartData:e,startMonth:(w=r.pagination)==null?void 0:w.startMonth}),b=k.useMemo(()=>Nj(e,c,p,f),[e,c,p,f]),v=mV({chartData:e,dataOptions:t,designOptions:r,availableMonths:b,currentMonth:p,subtype:h,viewType:f,containerSize:s,eventHandlers:{onDataPointClick:n,onDataPointContextMenu:i,onDataPointsSelected:a},onBeforeRender:o});return _.jsxs(vV,{theme:u,children:[b.length>0&&((C=r.pagination)==null?void 0:C.enabled)&&_.jsx(Hj,{value:p,availableMonths:b,viewType:f,onChange:g,labelStyle:(M=r.pagination)==null?void 0:M.style}),_.jsx(yV,{children:_.jsx(Fj,{monthCharts:v,availableMonths:b,currentMonth:p,viewType:f,subtype:h,monthLabels:r.monthLabels,size:s})})]})}const _V=e=>!!e.chartData&&Jx(e.chartData)&&Qx(e.dataOptions),wV={dataOptions:{translateDataOptionsToInternal:ZH,getAttributes:KH,getMeasures:QH,isCorrectDataOptions:JH,isCorrectDataOptionsInternal:Qx},data:{loadData:ln,getChartData:ej},designOptions:{translateStyleOptionsToDesignOptions:tj,isCorrectStyleOptions:rj},renderer:{ChartRendererComponent:bV,isCorrectRendererProps:_V}};var bC=_.metaMap?function(e,t){return _.metaMap.set(e,t),e}:I.identity;function Xs(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=I.baseCreate(e.prototype),n=e.apply(r,t);return I.isObject(n)?n:r}}var xV=1;function CV(e,t,r){var n=t&xV,i=Xs(e);function a(){var o=this&&this!==I.root&&this instanceof a?i:e;return o.apply(n?r:this,arguments)}return a}var TV=Math.max;function _C(e,t,r,n){for(var i=-1,a=e.length,o=r.length,s=-1,u=t.length,c=TV(a-o,0),h=Array(u+c),f=!n;++s<u;)h[s]=t[s];for(;++i<o;)(f||i<a)&&(h[r[i]]=e[i]);for(;c--;)h[s++]=e[i++];return h}var MV=Math.max;function wC(e,t,r,n){for(var i=-1,a=e.length,o=-1,s=r.length,u=-1,c=t.length,h=MV(a-s,0),f=Array(h+c),p=!n;++i<h;)f[i]=e[i];for(var g=i;++u<c;)f[g+u]=t[u];for(;++o<s;)(p||i<a)&&(f[g+r[o]]=e[i++]);return f}function SV(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var xC=I.shortOut(bC),EV=/\{\n\/\* \[wrapped with (.+)\] \*/,PV=/,? & /;function AV(e){var t=e.match(EV);return t?t[1].split(PV):[]}var RV=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function OV(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(RV,`{
288
+ /* [wrapped with `+t+`] */
289
+ `)}function kV(e,t,r,n){for(var i=e.length,a=r+-1;++a<i;)if(t(e[a],a,e))return a;return-1}function DV(e){return e!==e}function NV(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}function eg(e,t,r){return t===t?NV(e,t,r):kV(e,DV,r)}function CC(e,t){var r=e==null?0:e.length;return!!r&&eg(e,t,0)>-1}var LV=1,IV=2,$V=8,FV=16,zV=32,BV=64,WV=128,HV=256,jV=512,VV=[["ary",WV],["bind",LV],["bindKey",IV],["curry",$V],["curryRight",FV],["flip",jV],["partial",zV],["partialRight",BV],["rearg",HV]];function GV(e,t){return I.arrayEach(VV,function(r){var n="_."+r[0];t&r[1]&&!CC(e,n)&&e.push(n)}),e.sort()}function TC(e,t,r){var n=t+"";return I.setToString(e,OV(n,GV(AV(n),r)))}var UV=1,YV=2,qV=4,XV=8,j1=32,V1=64;function MC(e,t,r,n,i,a,o,s,u,c){var h=t&XV,f=h?o:void 0,p=h?void 0:o,g=h?a:void 0,b=h?void 0:a;t|=h?j1:V1,t&=~(h?V1:j1),t&qV||(t&=~(UV|YV));var v=[e,t,i,g,f,b,p,s,u,c],w=r.apply(void 0,v);return _.isLaziable(e)&&xC(w,v),w.placeholder=n,TC(w,e,t)}function SC(e){var t=e;return t.placeholder}var ZV=Math.min;function KV(e,t){for(var r=e.length,n=ZV(t.length,r),i=I.copyArray(e);n--;){var a=t[n];e[n]=I.isIndex(a,r)?i[a]:void 0}return e}var G1="__lodash_placeholder__";function _c(e,t){for(var r=-1,n=e.length,i=0,a=[];++r<n;){var o=e[r];(o===t||o===G1)&&(e[r]=G1,a[i++]=r)}return a}var QV=1,JV=2,eG=8,tG=16,rG=128,nG=512;function tg(e,t,r,n,i,a,o,s,u,c){var h=t&rG,f=t&QV,p=t&JV,g=t&(eG|tG),b=t&nG,v=p?void 0:Xs(e);function w(){for(var C=arguments.length,M=Array(C),E=C;E--;)M[E]=arguments[E];if(g)var S=SC(w),P=SV(M,S);if(n&&(M=_C(M,n,i,g)),a&&(M=wC(M,a,o,g)),C-=P,g&&C<c){var R=_c(M,S);return MC(e,t,tg,w.placeholder,r,M,R,s,u,c-C)}var N=f?r:this,B=p?N[e]:e;return C=M.length,s?M=KV(M,s):b&&C>1&&M.reverse(),h&&u<C&&(M.length=u),this&&this!==I.root&&this instanceof w&&(B=v||Xs(B)),B.apply(N,M)}return w}function iG(e,t,r){var n=Xs(e);function i(){for(var a=arguments.length,o=Array(a),s=a,u=SC(i);s--;)o[s]=arguments[s];var c=a<3&&o[0]!==u&&o[a-1]!==u?[]:_c(o,u);if(a-=c.length,a<r)return MC(e,t,tg,i.placeholder,void 0,o,c,void 0,void 0,r-a);var h=this&&this!==I.root&&this instanceof i?n:e;return I.apply(h,this,o)}return i}var aG=1;function oG(e,t,r,n){var i=t&aG,a=Xs(e);function o(){for(var s=-1,u=arguments.length,c=-1,h=n.length,f=Array(h+u),p=this&&this!==I.root&&this instanceof o?a:e;++c<h;)f[c]=n[c];for(;u--;)f[c++]=arguments[++s];return I.apply(p,i?r:this,f)}return o}var U1="__lodash_placeholder__",nf=1,sG=2,lG=4,Y1=8,ns=128,q1=256,uG=Math.min;function cG(e,t){var r=e[1],n=t[1],i=r|n,a=i<(nf|sG|ns),o=n==ns&&r==Y1||n==ns&&r==q1&&e[7].length<=t[8]||n==(ns|q1)&&t[7].length<=t[8]&&r==Y1;if(!(a||o))return e;n&nf&&(e[2]=t[2],i|=r&nf?0:lG);var s=t[3];if(s){var u=e[3];e[3]=u?_C(u,s,t[4]):s,e[4]=u?_c(e[3],U1):t[4]}return s=t[5],s&&(u=e[5],e[5]=u?wC(u,s,t[6]):s,e[6]=u?_c(e[5],U1):t[6]),s=t[7],s&&(e[7]=s),n&ns&&(e[8]=e[8]==null?t[8]:uG(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}var dG="Expected a function",X1=1,hG=2,af=8,of=16,sf=32,Z1=64,K1=Math.max;function fG(e,t,r,n,i,a,o,s){var u=t&hG;if(!u&&typeof e!="function")throw new TypeError(dG);var c=n?n.length:0;if(c||(t&=~(sf|Z1),n=i=void 0),o=o===void 0?o:K1(_.toInteger$1(o),0),s=s===void 0?s:_.toInteger$1(s),c-=i?i.length:0,t&Z1){var h=n,f=i;n=i=void 0}var p=u?void 0:_.getData(e),g=[e,t,r,n,i,h,f,a,o,s];if(p&&cG(g,p),e=g[0],t=g[1],r=g[2],n=g[3],i=g[4],s=g[9]=g[9]===void 0?u?0:e.length:K1(g[9]-c,0),!s&&t&(af|of)&&(t&=~(af|of)),!t||t==X1)var b=CV(e,t,r);else t==af||t==of?b=iG(e,t,s):(t==sf||t==(X1|sf))&&!i.length?b=oG(e,t,r,n):b=tg.apply(void 0,g);var v=p?bC:xC;return TC(v(b,g),e,t)}var pG=8;function Sl(e,t,r){t=r?void 0:t;var n=fG(e,pG,void 0,void 0,void 0,void 0,void 0,t);return n.placeholder=Sl.placeholder,n}Sl.placeholder={};const mG="_alert_box_10ttx_1",gG="_content_10ttx_8",vG="_alert_10ttx_1",lf={alert_box:mG,content:gG,alert:vG},EC=({alerts:e=[]})=>_.jsx("div",{className:lf.alert_box,children:_.jsx("div",{className:lf.content,children:[...new Set(e)].map((t,r)=>_.jsx("div",{className:lf.alert,children:t},`alert-${r}`))})}),yG=e=>["column","bar","line","area","polar","pie","funnel","treemap","calendar-heatmap","sunburst","streamgraph"].includes(e);function Ln({highchartsOptionsBuilder:e,getAlerts:t}){return function({chartData:n,dataOptions:i,designOptions:a,onDataPointClick:o,onDataPointContextMenu:s,onDataPointsSelected:u,onBeforeRender:c,size:h}){const f=hC(),p=k.useMemo(()=>dC({highchartsOptionsBuilder:e,chartData:n,dataOptions:i,designOptions:a,dataPointsEventHandlers:{onDataPointClick:o,onDataPointContextMenu:s,onDataPointsSelected:u},extraConfig:f,onBeforeRender:c}),[n,i,a,o,s,u,f,c]),g=k.useMemo(()=>p?$(T({},p),{chart:T(T(T({},p.chart),(h==null?void 0:h.width)&&{width:h.width}),(h==null?void 0:h.height)&&{height:h.height})}):null,[p,h]),b=t({chartData:n,dataOptions:i,designOptions:a,extraConfig:f});return g&&_.jsxs("div",{"aria-label":"chart-root",style:{display:"flex",justifyContent:"center",height:"100%",width:"100%"},children:[!!b.length&&_.jsx(EC,{alerts:b}),_.jsx(X0,{options:g})]})}}function In(e){return!!e.chartData&&!!e.chartType&&yG(e.chartType)}var bG="[object String]";function rg(e){return typeof e=="string"||!I.isArray(e)&&I.isObjectLike(e)&&I.baseGetTag(e)==bG}const To=e=>{const{chartData:t,designOptions:r}=e,{seriesCapacity:n,categoriesCapacity:i}=r.dataLimits,a=t.xValues.length>i?_.categoriesSliceWarning("x",t.xValues.length,i):null,o=t.series.length>n?_.seriesSliceWarning(t.series.length,n):null;return[a,o].filter(rg)};function Mo(e,t){return _.cartesianData(e,t)}const pd=Object.freeze({"area/basic":{lineType:"straight",stackType:"classic"},"area/stacked":{lineType:"straight",stackType:"stacked"},"area/stacked100":{lineType:"straight",stackType:"stack100"},"area/spline":{lineType:"smooth",stackType:"classic"},"area/stackedspline":{lineType:"smooth",stackType:"stacked"},"area/stackedspline100":{lineType:"smooth",stackType:"stack100"},"arearange/basic":{lineType:"straight",stackType:"classic"},"arearange/spline":{lineType:"smooth",stackType:"classic"},"bar/classic":{stackType:"classic"},"bar/stacked":{stackType:"stacked"},"bar/stacked100":{stackType:"stack100"},"column/classic":{stackType:"classic"},"column/stackedcolumn":{stackType:"stacked"},"column/stackedcolumn100":{stackType:"stack100"},"line/basic":{lineType:"straight"},"line/spline":{lineType:"smooth"},"line/step":{lineType:"straight"},"pie/classic":{pieType:"classic"},"pie/donut":{pieType:"donut"},"pie/ring":{pieType:"ring"},"polar/column":{polarType:"column"},"polar/area":{polarType:"area"},"polar/line":{polarType:"line"},"indicator/numeric":{indicatorType:"numeric"},"indicator/gauge":{indicatorType:"gauge"},treemap:{},sunburst:{},"boxplot/full":{boxplotType:"full"},"boxplot/hollow":{boxplotType:"hollow"},scattermap:{},"areamap/world":{mapType:"world"},"areamap/usa":{mapType:"usa"}}),jp=(e,t)=>{var r,n,i,a,o;return e?{enabled:e.enabled,gridLine:e.gridLines,labels:(r=e.labels)==null?void 0:r.enabled,type:e.logarithmic?"logarithmic":"linear",titleEnabled:(n=e.title)==null?void 0:n.enabled,title:((i=e==null?void 0:e.title)==null?void 0:i.text)||null,min:(a=e.min)!=null?a:null,max:(o=e.max)!=null?o:null,tickInterval:e.isIntervalEnabled&&(e!=null&&e.intervalJumps)?e==null?void 0:e.intervalJumps:null}:t},_G=e=>e!=null&&e.enabled?{enabled:!0,scrollerLocation:e==null?void 0:e.scrollerLocation}:{enabled:!1},wG=e=>{const t=jp(e,Cr.yAxis);return t.gridLine=e.templateMainYHasGridLines||!1,t},ng=e=>{let t=1;switch(e.width){case"thin":t=1;break;case"bold":t=3;break;case"thick":t=5;break}return t},PC="classic",un=(e,t)=>{var u,c,h,f;const r=SG(),n=jp(e.xAxis,Cr.xAxis);let i=null;(c=(u=e==null?void 0:e.xAxis)==null?void 0:u.x2Title)!=null&&c.enabled&&((f=(h=e==null?void 0:e.xAxis)==null?void 0:h.x2Title)!=null&&f.text)&&(i=$(T({},Cr.xAxis),{title:e.xAxis.x2Title.text}));const a=jp(e.yAxis,Cr.yAxis),o=t&&e.y2Axis?T({type:"linear",enabled:!0,titleEnabled:!0,title:"Y2 Axis title",gridLine:!0,labels:!0,min:null,max:null,tickInterval:null},wG(e.y2Axis)):void 0,s=_G(e.navigator);return $(T(T($(T($(T({},Cr),{legend:e.legend,autoZoom:s}),e.seriesLabels&&{seriesLabels:e.seriesLabels}),{xAxis:n,yAxis:a}),o&&{y2Axis:o}),i&&{x2Axis:i}),{dataLimits:r})},md=e=>({enabled:e.enabled,fill:e.fill==="filled"?"full":"hollow",size:e.size==="small"?"small":"large"}),xG=(e,t,r,n)=>{const i=un(e,r),a=kn(e!=null?e:{},_.getDefaultStyleOptions()),o=Pi(t,n,a);return $(T({},i),{designPerSeries:o,stackType:PC,totalLabels:e.totalLabels})},CG=(e,t)=>{var n,i,a,o,s,u,c;const r=un(t,!1);if(e==="line"){const h=t;h.line&&(r.line={width:(a=(n=h.line)==null?void 0:n.width)!=null?a:ng((i=h.lineWidth)!=null?i:{width:"bold"}),dashStyle:(o=h.line)==null?void 0:o.dashStyle,endCap:(s=h.line)==null?void 0:s.endCap,shadow:(u=h.line)==null?void 0:u.shadow}),r.marker=md((c=h==null?void 0:h.markers)!=null?c:{enabled:!0,fill:"filled",size:"small"}),h.subtype==="line/step"&&(r.step=h.stepPosition||"left")}return r},TG=(e,t,r)=>{var s,u,c,h,f,p,g;const n=un(e,r);n.marker=md((s=e==null?void 0:e.markers)!=null?s:{enabled:!0,fill:"filled",size:"small"});const i=kn(e!=null?e:{},_.getDefaultStyleOptions()),a=Pi(t,"line",i),o=$(T({},n),{designPerSeries:a,line:{width:(h=(u=e.line)==null?void 0:u.width)!=null?h:ng((c=e.lineWidth)!=null?c:{width:"bold"}),dashStyle:(f=e.line)==null?void 0:f.dashStyle,endCap:(p=e.line)==null?void 0:p.endCap,shadow:(g=e.line)==null?void 0:g.shadow}});return e.subtype==="line/step"&&(o.step=e.stepPosition||"left"),o},MG=(e,t,r)=>{var n,i,a,o,s,u,c;return $(T({},xG(e,t,r,"area")),{marker:md((n=e==null?void 0:e.markers)!=null?n:{enabled:!0,fill:"filled",size:"small"}),line:{width:(o=(i=e.line)==null?void 0:i.width)!=null?o:ng((a=e.lineWidth)!=null?a:{width:"thin"}),dashStyle:(s=e.line)==null?void 0:s.dashStyle,endCap:(u=e.line)==null?void 0:u.endCap,shadow:(c=e.line)==null?void 0:c.shadow}})},ig=(e,t)=>{var i;const r={seriesCapacity:t==="categorical"?dc:t==="pie"?nN:D0,categoriesCapacity:t==="scatter"?iN:dc},n=(i=e==null?void 0:e.dataLimits)!=null?i:{};return"categoriesCapacity"in n&&(n==null?void 0:n.categoriesCapacity)!==void 0&&(r.categoriesCapacity=n==null?void 0:n.categoriesCapacity),(n==null?void 0:n.seriesCapacity)!==void 0&&(r.seriesCapacity=n==null?void 0:n.seriesCapacity),r};function SG(){return{seriesCapacity:D0,categoriesCapacity:dc}}const Da={enabled:!0,showCategory:!0,showValue:!0,percentageLabels:{enabled:!0,showDecimals:!1}},EG="classic",PG=e=>{var h,f,p,g,b,v,w,C,M,E,S,P,R,N,B,U;const{legend:t,labels:r,subtype:n,seriesLabels:i}=e;let a=Da;(i||r)&&(a=$(T({},i),{enabled:(f=(h=i==null?void 0:i.enabled)!=null?h:r==null?void 0:r.enabled)!=null?f:Da.enabled,showCategory:(g=(p=i==null?void 0:i.showCategory)!=null?p:r==null?void 0:r.categories)!=null?g:Da.showCategory,showValue:(v=(b=i==null?void 0:i.showValue)!=null?b:r==null?void 0:r.value)!=null?v:Da.showValue,percentageLabels:$(T({},i==null?void 0:i.percentageLabels),{enabled:(S=(E=(C=(w=i==null?void 0:i.percentageLabels)==null?void 0:w.enabled)!=null?C:r==null?void 0:r.percent)!=null?E:(M=Da.percentageLabels)==null?void 0:M.enabled)!=null?S:!1,showDecimals:(U=(B=(R=(P=i==null?void 0:i.percentageLabels)==null?void 0:P.showDecimals)!=null?R:r==null?void 0:r.decimals)!=null?B:(N=Da.percentageLabels)==null?void 0:N.showDecimals)!=null?U:!1})}));const o=n?pd[n]:void 0,s=(o==null?void 0:o.pieType)||EG,u=e!=null&&e.convolution?e.convolution:{enabled:!1},c=ig(e,"pie");return $(T({},Cr),{seriesLabels:a,pieType:s,convolution:u,legend:t,dataLimits:c})},AG=e=>{var u,c,h,f,p,g,b,v,w,C;const{funnelType:t=_.DefaultFunnelType,funnelSize:r=_.DefaultFunnelSize,funnelDirection:n=_.DefaultFunnelDirection,legend:i,labels:a,seriesLabels:o}=e,s=ig(e,"categorical");return $(T({},Cr),{funnelSize:r,funnelType:t,funnelDirection:n,legend:i,dataLimits:s,seriesLabels:$(T({},o!=null?o:{}),{enabled:(c=(u=o==null?void 0:o.enabled)!=null?u:a==null?void 0:a.enabled)!=null?c:_.DefaultFunnelSeriesLabels.enabled,showCategory:(f=(h=o==null?void 0:o.showCategory)!=null?h:a==null?void 0:a.categories)!=null?f:_.DefaultFunnelSeriesLabels.showCategory,showValue:(g=(p=o==null?void 0:o.showValue)!=null?p:a==null?void 0:a.value)!=null?g:_.DefaultFunnelSeriesLabels.showValue,showPercentage:(v=(b=o==null?void 0:o.showPercentage)!=null?b:a==null?void 0:a.percent)!=null?v:_.DefaultFunnelSeriesLabels.showPercentage,showPercentDecimals:(C=(w=o==null?void 0:o.showPercentDecimals)!=null?w:a==null?void 0:a.decimals)!=null?C:_.DefaultFunnelSeriesLabels.showPercentDecimals})})},AC=e=>e,RC=e=>e,RG="column",OG=(e,t)=>{const r=un(e,!1),n=kn(e!=null?e:{},_.getDefaultStyleOptions()),i=Pi(t,"polar",n),a=$(T({},r),{polarType:RG,designPerSeries:i});return _.withYAxisNormalizationForPolar(a)},kG=e=>T(T({},_.defaultScatterMarkerSize),e),DG=e=>{var t;return $(T({},un(e,!1)),{lineWidth:0,marker:md((t=e==null?void 0:e.markers)!=null?t:{enabled:!0,fill:"filled",size:"small"}),dataLimits:ig(e,"scatter"),markerSize:kG(e.markerSize),legend:e.legend})},NG=e=>$(T({},un(e,!1)),{boxplotType:e.subtype==="boxplot/hollow"?"hollow":"full"}),LG={fill:"filled",size:{defaultSize:4,minSize:4,maxSize:24}},IG=e=>$(T({},Cr),{markers:_.merge(LG,e.markers||{})}),$G={"line/basic":"straight","line/spline":"smooth","line/step":"straight"},FG=e=>({thin:1,bold:3,thick:5})[e.width],zG=e=>({enabled:e.enabled,fill:e.fill==="filled"?"full":"hollow",size:e.size==="small"?"small":"large"}),BG=(e,t)=>un(e,hd(t)),WG=e=>t=>{var r,n,i,a,o,s;return $(T({},t),{line:{width:(n=(r=e.line)==null?void 0:r.width)!=null?n:FG(e.lineWidth||{width:"bold"}),dashStyle:(i=e.line)==null?void 0:i.dashStyle,endCap:(a=e.line)==null?void 0:a.endCap,shadow:(o=e.line)==null?void 0:o.shadow},marker:zG((s=e==null?void 0:e.markers)!=null?s:{enabled:!0,fill:"filled",size:"small"})})},HG=(e,t)=>r=>{const n=kn(e!=null?e:{},_.getDefaultStyleOptions()),i=Pi(t,"line",n);return $(T({},r),{designPerSeries:i})},jG=e=>t=>{const r=e.subtype||"line/basic",n=$G[r];return n?$(T({},t),{lineType:n}):t},VG=e=>t=>{const r=e.subtype==="line/step"?{step:e.stepPosition||"left"}:{};return T(T({},t),r)};function GG(e,t){const r=BG(e,t);return _.flow(WG(e),HG(e,t),jG(e),VG(e))(r)}const UG=["line/basic","line/spline","line/step"];function YG(e){return"subtype"in e&&e.subtype?UG.includes(e.subtype):!0}const St=(e,t)=>_.getCartesianChartOptions(e.chartData,t,e.designOptions,e.dataOptions,e.extraConfig.translate,e.extraConfig.themeSettings,e.extraConfig.dateFormatter).options,qG={fontSize:"13px",fontWeight:"normal",textOutline:"none",pointerEvents:"auto"},XG=e=>{switch(e){case"bottom":return{enabled:!0,align:"center",verticalAlign:"bottom",layout:"horizontal"};case"left":return{enabled:!0,align:"left",verticalAlign:"middle",layout:"vertical"};case"right":return{enabled:!0,align:"right",verticalAlign:"middle",layout:"vertical"};case"top":return{enabled:!0,align:"center",verticalAlign:"top",layout:"horizontal"};default:return{enabled:!0,align:"center",verticalAlign:"bottom",layout:"horizontal"}}},ZG=e=>{if((e==null?void 0:e.enabled)===!1||!e)return;const{text:t,textStyle:r}=e;return{title:{text:t,style:r}}},KG=e=>{if(!e)return;const{layout:t,textStyle:r,marginBottom:n,marginTop:i,distance:a,width:o,hoverTextStyle:s,hiddenTextStyle:u}=e||{};return{layout:t,itemStyle:r,itemMarginBottom:n,itemMarginTop:i,itemDistance:a,itemWidth:o,itemHoverStyle:s,itemHiddenStyle:u}},QG=e=>{if(!e)return;const{radius:t,height:r,width:n,padding:i,squared:a}=e;return{symbolRadius:t,symbolHeight:r,symbolWidth:n,symbolPadding:i,squareSymbol:a}},JG=e=>{const c=e,{title:t,items:r,symbols:n,xOffset:i,yOffset:a,backgroundColor:o,borderColor:s}=c,u=Ce(c,["title","items","symbols","xOffset","yOffset","backgroundColor","borderColor"]);return _.omitUndefinedAndEmpty($(T(T(T(T({},u),ZG(t)),KG(r)),QG(n)),{x:i,y:a,backgroundColor:_.withGradientConversion(o),borderColor:_.withGradientConversion(s)}))},So=e=>{const t={enabled:!1,symbolRadius:0,backgroundColor:"transparent",borderColor:"transparent",borderWidth:0,align:"center",verticalAlign:"bottom",layout:"horizontal"};if(!e)return t;const o=e,{position:r}=o,n=Ce(o,["position"]),i=XG(r||null),a=JG(n);return _.omitUndefinedAndEmpty($(T(T(T({},t),i),a),{itemStyle:T(T({},qG),a.itemStyle)}))},Eo=e=>_.getCartesianTooltipSettings(e.dataOptions,e.extraConfig.translate),Po=(e,t)=>{const r=_.buildCategoriesMeta(e.chartData,e.dataOptions,e.designOptions,_.isContinuousDatetimeXAxis(e.dataOptions.x));return _.buildXAxisSettings({designOptions:e.designOptions,dataOptions:e.dataOptions,chartData:e.chartData,categoriesMeta:r,orientation:t,isContinuous:_.isContinuousDatetimeXAxis(e.dataOptions.x),dateFormatter:e.extraConfig.dateFormatter})},Ao=(e,t)=>{const r=_.buildYAxisMeta(e.chartData,e.dataOptions),n=_.buildYAxisMinMax(0,t,e.chartData,e.designOptions,r.side,r.treatNullAsZero),i=_.hasSecondaryYAxis(r.side)?_.buildYAxisMinMax(1,t,e.chartData,e.designOptions,r.side,r.treatNullAsZero):void 0;return _.getYAxisSettings(e.designOptions.yAxis,e.designOptions.y2Axis,n,i,e.dataOptions,e.extraConfig.themeSettings)},eU=e=>{const t=Po(e,"horizontal"),r=Ao(e,"line");return{xAxis:t,yAxis:r}},tU={getChart:function(e){return St(e,"line").chart},getSeries:function(e){return St(e,"line").series},getAxes:eU,getLegend:function(e){return So(e.designOptions.legend)},getPlotOptions:function(e){return St(e,"line").plotOptions},getTooltip:Eo,getExtras:function(e){const t=St(e,"line");return I.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},rU={dataOptions:{translateDataOptionsToInternal:ca,getAttributes:_o,getMeasures:wo,isCorrectDataOptions:xo,isCorrectDataOptionsInternal:Co},data:{loadData:ln,getChartData:Mo},designOptions:{translateStyleOptionsToDesignOptions:Sl(GG),isCorrectStyleOptions:YG},renderer:{ChartRendererComponent:Ln({highchartsOptionsBuilder:tU,getAlerts:To}),isCorrectRendererProps:In}},nU={translateDataOptionsToInternal:ca,getAttributes:_o,getMeasures:wo,isCorrectDataOptions:xo,isCorrectDataOptionsInternal:Co},iU={loadData:ln,getChartData:Mo};function aU(e,t){const r=un(e,!1),n=kn(e,_.getDefaultStyleOptions()),i=Pi(t,"polar",n),a=e.subtype||"polar/column",o=pd[a],s=(o==null?void 0:o.polarType)||"column",u=$(T({},r),{polarType:s,designPerSeries:i});return _.withYAxisNormalizationForPolar(u)}function oU(e){return typeof e=="object"&&e!==null&&(!("subtype"in e)||!e.subtype||e.subtype.startsWith("polar/"))}const sU={translateStyleOptionsToDesignOptions:aU,isCorrectStyleOptions:oU};function lU(e){const t=Po(e,"horizontal"),r=Ao(e,"polar");return{xAxis:_.withPolarSpecificAxisSettings(t),yAxis:r}}const uU={getChart:function(e){const t=St(e,"polar");return $(T({},t.chart),{polar:!0})},getSeries:function(e){return St(e,"polar").series},getAxes:lU,getLegend:function(e){return So(e.designOptions.legend)},getPlotOptions:function(e){return St(e,"polar").plotOptions},getTooltip:Eo,getExtras:function(e){const t=St(e,"polar");return I.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},cU={dataOptions:nU,data:iU,designOptions:sU,renderer:{ChartRendererComponent:Ln({highchartsOptionsBuilder:uU,getAlerts:To}),isCorrectRendererProps:In}},dU={"area/basic":{lineType:"straight",stackType:"classic"},"area/stacked":{lineType:"straight",stackType:"stacked"},"area/stacked100":{lineType:"straight",stackType:"stack100"},"area/spline":{lineType:"smooth",stackType:"classic"},"area/stackedspline":{lineType:"smooth",stackType:"stacked"},"area/stackedspline100":{lineType:"smooth",stackType:"stack100"}},hU=e=>({thin:1,bold:3,thick:5})[e.width],fU=e=>({enabled:e.enabled,fill:e.fill==="filled"?"full":"hollow",size:e.size==="small"?"small":"large"}),pU=(e,t)=>un(e,hd(t)),mU=e=>t=>{var r,n,i,a,o,s;return $(T({},t),{line:{width:(n=(r=e.line)==null?void 0:r.width)!=null?n:hU(e.lineWidth||{width:"thin"}),dashStyle:(i=e.line)==null?void 0:i.dashStyle,endCap:(a=e.line)==null?void 0:a.endCap,shadow:(o=e.line)==null?void 0:o.shadow},marker:fU((s=e==null?void 0:e.markers)!=null?s:{enabled:!0,fill:"filled",size:"small"})})},gU=(e,t)=>r=>{const n=kn(e!=null?e:{},_.getDefaultStyleOptions()),i=Pi(t,"area",n);return $(T({},r),{designPerSeries:i})},vU=e=>t=>{const r=e.subtype||"area/basic",n=dU[r];return n?$(T({},t),{lineType:n.lineType,stackType:n.stackType}):t},yU=e=>t=>{var r;return $(T({},t),{totalLabels:(r=e.totalLabels)!=null?r:{enabled:!1,rotation:0}})};function bU(e,t){const r=pU(e,t);return _.flow(mU(e),gU(e,t),vU(e),yU(e))(r)}const _U=["area/basic","area/stacked","area/stacked100","area/spline","area/stackedspline","area/stackedspline100"];function wU(e){return"subtype"in e&&e.subtype?_U.includes(e.subtype):!0}const xU=e=>{var r,n;const t={enabled:!1};switch(e.stackType){case"stacked":return{stacking:"normal",totalLabels:(r=e.totalLabels)!=null?r:t};case"stack100":return{stacking:"percent",totalLabels:(n=e.totalLabels)!=null?n:t};default:return{totalLabels:t}}},ag=e=>t=>{var h,f;const r=e.designOptions,n=xU(r),{stacking:i,totalLabels:a}=n;if(!(a!=null&&a.enabled)&&!i)return t;const o=e.dataOptions,s=_.getCompleteNumberFormatConfig((h=o.y.find(({showOnRightAxis:p})=>!p))==null?void 0:h.numberFormatConfig),u=_.getCompleteNumberFormatConfig((f=o.y.find(({showOnRightAxis:p})=>p))==null?void 0:f.numberFormatConfig);function c(p,g,b=!1){return function(){var E,S;const v=typeof this.value=="number"?this.value:parseFloat(this.value),w=b&&this.total||v,C=_.applyFormatPlainText(p,w),M=g==="percent"?`${C}%`:C;return b?`${(E=a==null?void 0:a.prefix)!=null?E:""}${M}${(S=a==null?void 0:a.suffix)!=null?S:""}`:M}}return t.map((p,g)=>{const v=g===1?u:s;return $(T({},p),{labels:i?$(T({},p.labels),{formatter:c(v,i)}):p.labels,stackLabels:a!=null&&a.enabled?$(T(T({},p.stackLabels),_.prepareStackLabels(a)),{formatter:c(v,"normal",!0),style:T(T(T({},_.stackTotalFontStyleDefault),e.extraConfig.themeSettings?{color:e.extraConfig.themeSettings.typography.primaryTextColor}:null),_.prepareStackLabels(a).style),crop:!0,allowOverlap:!1,labelrank:99999}):p.stackLabels})})},bu={HORIZONTAL:20,DIAGONAL:70,VERTICAL:110,INVERTED_DIAGONAL:160},CU={FULL_ROTATION:180};function OC(e){var n;let r=0;if((n=e.totalLabels)!=null&&n.enabled&&e.stackType==="stack100"){const i=Math.abs(e.totalLabels.rotation||0)%CU.FULL_ROTATION;i<bu.HORIZONTAL?r=10:i<bu.DIAGONAL?r=30:i<bu.VERTICAL?r=40:i<bu.INVERTED_DIAGONAL?r=30:r=10}return{rightSpacing:0,topSpacing:r}}const TU=e=>{const t=Po(e,"horizontal"),r=Ao(e,"area");return{xAxis:MU(e)(t),yAxis:_.flow(ag(e),SU(e))(r)}};function MU(e){const{rightSpacing:t,topSpacing:r}=OC(e.designOptions);return _.withXAxisLabelPositioning({totalLabelRightSpacing:t,totalLabelTopSpacing:r})}function SU(e){const t=EU(e);return _.withYAxisLabelPositioning({rightShift:0,topShift:t})}function EU(e){var i;const t=e.designOptions;if(!(((i=t.totalLabels)==null?void 0:i.enabled)&&t.stackType==="stack100"))return 0;const{topSpacing:n}=OC(e.designOptions);return-1*(n/2)}const PU={getChart:function(e){return St(e,"area").chart},getSeries:function(e){return St(e,"area").series},getAxes:TU,getLegend:function(e){return So(e.designOptions.legend)},getPlotOptions:function(e){return St(e,"area").plotOptions},getTooltip:Eo,getExtras:function(e){const t=St(e,"area");return I.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},AU={dataOptions:{translateDataOptionsToInternal:ca,getAttributes:_o,getMeasures:wo,isCorrectDataOptions:xo,isCorrectDataOptionsInternal:Co},data:{loadData:ln,getChartData:Mo},designOptions:{translateStyleOptionsToDesignOptions:bU,isCorrectStyleOptions:wU},renderer:{ChartRendererComponent:Ln({highchartsOptionsBuilder:PU,getAlerts:To}),isCorrectRendererProps:In}};function kC(e,t,r){var o,s,u,c,h,f;const n=un(t,hd(r)),i=kn(t!=null?t:{},_.getDefaultStyleOptions()),a=Pi(r,e,i);return $(T({},n),{designPerSeries:a,stackType:t.subtype?DC[t.subtype]:PC,totalLabels:t.totalLabels,itemPadding:(s=(o=t.series)==null?void 0:o.padding)!=null?s:.01,groupPadding:(c=(u=t.series)==null?void 0:u.groupPadding)!=null?c:.1,borderRadius:(f=(h=t.series)==null?void 0:h.borderRadius)!=null?f:0})}const DC={"bar/classic":"classic","bar/stacked":"stacked","bar/stacked100":"stack100","column/classic":"classic","column/stackedcolumn":"stacked","column/stackedcolumn100":"stack100"};function NC(e){return"subtype"in e&&e.subtype?Object.keys(DC).includes(e.subtype):!0}const _u={HORIZONTAL:20,DIAGONAL:70,VERTICAL:110,INVERTED_DIAGONAL:160},RU={FULL_ROTATION:180};function OU(e){var n;let t=0;const r=0;if((n=e.totalLabels)!=null&&n.enabled&&e.stackType==="stack100"){const i=Math.abs(e.totalLabels.rotation||0)%RU.FULL_ROTATION;i<_u.HORIZONTAL?t=40:i<_u.DIAGONAL?t=25:i<_u.VERTICAL?t=15:i<_u.INVERTED_DIAGONAL?t=25:t=40}return{rightSpacing:t,topSpacing:r}}const kU=e=>{const t=Po(e,"vertical"),r=Ao(e,"bar");return{xAxis:DU(e)(t),yAxis:_.flow(ag(e),NU(e))(r)}};function DU(e){const{rightSpacing:t,topSpacing:r}=OU(e.designOptions);return _.withXAxisLabelPositioning({totalLabelRightSpacing:t,totalLabelTopSpacing:r})}function NU(e){var a;const t=e.designOptions,n=((a=t.totalLabels)==null?void 0:a.enabled)&&t.stackType==="stack100"?.1:0;return _.withYAxisLabelPositioning({rightShift:n,topShift:0})}const LU=e=>IU(e)(So(e.designOptions.legend));function IU(e){return r=>{var n,i;return e.dataOptions.x.length>1&&_.isLegendOnRight(e.designOptions.legend)?$(T({},r),{margin:(i=(n=e.designOptions.legend)==null?void 0:n.margin)!=null?i:80}):r}}const $U={getChart:function(e){return St(e,"bar").chart},getSeries:function(e){return St(e,"bar").series},getAxes:kU,getLegend:LU,getPlotOptions:function(e){return St(e,"bar").plotOptions},getTooltip:Eo,getExtras:function(e){const t=St(e,"bar");return I.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},FU={dataOptions:{translateDataOptionsToInternal:ca,getAttributes:_o,getMeasures:wo,isCorrectDataOptions:xo,isCorrectDataOptionsInternal:Co},data:{loadData:ln,getChartData:Mo},designOptions:{translateStyleOptionsToDesignOptions:Sl(kC)("bar"),isCorrectStyleOptions:NC},renderer:{ChartRendererComponent:Ln({highchartsOptionsBuilder:$U,getAlerts:To}),isCorrectRendererProps:In}},wu={HORIZONTAL:20,DIAGONAL:70,VERTICAL:110,INVERTED_DIAGONAL:160},zU={FULL_ROTATION:180};function LC(e){var n;let r=0;if((n=e.totalLabels)!=null&&n.enabled&&e.stackType==="stack100"){const i=Math.abs(e.totalLabels.rotation||0)%zU.FULL_ROTATION;i<wu.HORIZONTAL?r=10:i<wu.DIAGONAL?r=30:i<wu.VERTICAL?r=40:i<wu.INVERTED_DIAGONAL?r=30:r=10}return{rightSpacing:0,topSpacing:r}}const BU=e=>{const t=Po(e,"horizontal"),r=Ao(e,"column");return{xAxis:WU(e)(t),yAxis:_.flow(ag(e),HU(e))(r)}};function WU(e){const{rightSpacing:t,topSpacing:r}=LC(e.designOptions);return _.withXAxisLabelPositioning({totalLabelRightSpacing:t,totalLabelTopSpacing:r})}function HU(e){var a;const t=e.designOptions,r=((a=t.totalLabels)==null?void 0:a.enabled)&&t.stackType==="stack100";let n=0;if(r){const{topSpacing:o}=LC(e.designOptions);n=-1*(o/2)}return _.withYAxisLabelPositioning({rightShift:0,topShift:n})}const jU={getChart:function(e){return St(e,"column").chart},getSeries:function(e){return St(e,"column").series},getAxes:BU,getLegend:function(e){return So(e.designOptions.legend)},getPlotOptions:function(e){return St(e,"column").plotOptions},getTooltip:Eo,getExtras:function(e){const t=St(e,"column");return I.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},VU={dataOptions:{translateDataOptionsToInternal:ca,getAttributes:_o,getMeasures:wo,isCorrectDataOptions:xo,isCorrectDataOptionsInternal:Co},data:{loadData:ln,getChartData:Mo},designOptions:{translateStyleOptionsToDesignOptions:Sl(kC)("column"),isCorrectStyleOptions:NC},renderer:{ChartRendererComponent:Ln({highchartsOptionsBuilder:jU,getAlerts:To}),isCorrectRendererProps:In}},GU=e=>{const t=n=>typeof n=="number"&&Number.isNaN(n)||n==null?0:n,r=n=>{const i=t(n.value);return $(T({},n),{value:i})};return $(T({},e),{series:e.series.map(n=>$(T({},n),{data:n.data.map(r)}))})},UU=_.flow(Mo,GU),YU=e=>({thin:1,bold:3,thick:5})[e.width],qU=e=>({enabled:e.enabled,fill:e.fill==="filled"?"full":"hollow",size:e.size==="small"?"small":"large"}),XU=(e,t)=>un(e,hd(t)),ZU=e=>t=>{var r,n,i,a,o,s,u,c,h;return $(T({},t),{seriesTitles:{enabled:(n=(r=e.seriesTitles)==null?void 0:r.enabled)!=null?n:!0,textStyle:(i=e.seriesTitles)==null?void 0:i.textStyle},line:{width:(o=(a=e.line)==null?void 0:a.width)!=null?o:YU(e.lineWidth||{width:"thin"}),dashStyle:(s=e.line)==null?void 0:s.dashStyle,endCap:(u=e.line)==null?void 0:u.endCap,shadow:(c=e.line)==null?void 0:c.shadow},marker:qU((h=e==null?void 0:e.markers)!=null?h:{enabled:!1,fill:"filled",size:"small"})})},KU=(e,t)=>r=>{const n=Pi(t,"area",e);return $(T({},r),{designPerSeries:n})},QU=e=>t=>{var r,n,i,a,o,s,u,c,h,f,p,g;return $(T({},t),{seriesLabels:$(T({},e.seriesLabels),{enabled:(n=(r=e.seriesLabels)==null?void 0:r.enabled)!=null?n:!1,rotation:(a=(i=e.seriesLabels)==null?void 0:i.rotation)!=null?a:0,showValue:(c=(u=(o=e.seriesLabels)==null?void 0:o.showValue)!=null?u:(s=e.seriesLabels)==null?void 0:s.enabled)!=null?c:!1,textStyle:$(T({},(h=e.seriesLabels)==null?void 0:h.textStyle),{color:(g=(p=(f=e.seriesLabels)==null?void 0:f.textStyle)==null?void 0:p.color)!=null?g:"#000000"})})})};function JU(e,t){const r=XU(e,t);return _.flow(ZU(e),KU(e,t),QU(e))(r)}function eY(e){return!0}function tY(){const e=_.getDefaultStyleOptions();return _.merge(e,{yAxis:{enabled:!0,gridLines:!0,labels:{enabled:!1},title:{enabled:!1,text:""}},xAxis:{gridLines:!1},legend:{enabled:!1}})}const rY=e=>{const t=Po(e,"horizontal"),r=Ao(e,"area"),n=t.map(a=>{var o;return $(T({},a),{gridLineWidth:e.designOptions.xAxis.gridLine?1:0,labels:$(T({},a.labels),{enabled:(o=e.designOptions.xAxis.labels)!=null?o:!0})})}),i=r.map(a=>$(T({},a),{visible:e.designOptions.yAxis.enabled,gridLineWidth:e.designOptions.yAxis.gridLine?1:0,labels:$(T({},a.labels),{enabled:e.designOptions.yAxis.labels}),startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.15,min:void 0,max:void 0}));return{xAxis:n,yAxis:i}},nY=e=>{var n,i,a,o,s;const t=St(e,"area").plotOptions,r=(i=(n=e.designOptions.line)==null?void 0:n.width)!=null?i:1;return $(T({},t),{series:$(T({},t.series),{stacking:"stream",lineWidth:r,fillOpacity:1,label:{enabled:(o=(a=e.designOptions.seriesTitles)==null?void 0:a.enabled)!=null?o:!0,minFontSize:5,maxFontSize:15,style:(s=e.designOptions.seriesTitles)==null?void 0:s.textStyle}})})},iY={getChart:function(e){const t=St(e,"area");return $(T({},t.chart),{type:"streamgraph"})},getSeries:function(e){return St(e,"area").series},getAxes:rY,getLegend:function(e){return So(e.designOptions.legend)},getPlotOptions:nY,getTooltip:Eo,getExtras:function(e){const t=St(e,"area");return I.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},aY={dataOptions:{translateDataOptionsToInternal:ca,getAttributes:_o,getMeasures:wo,isCorrectDataOptions:xo,isCorrectDataOptionsInternal:Co},data:{loadData:ln,getChartData:UU},designOptions:{translateStyleOptionsToDesignOptions:JU,isCorrectStyleOptions:eY,getDefaultStyleOptions:tY},renderer:{ChartRendererComponent:Ln({highchartsOptionsBuilder:iY,getAlerts:To}),isCorrectRendererProps:In}},oY=e=>_.getAlerts(e.chartData,e.designOptions);function sY(e,t){const r=lY[e],n=e!=="pie"||t.category.length>0,i=[IC(r.category),n?$C(r.value):a=>a];return _.flow(...i)(t)}const lY={pie:{category:3,value:1},funnel:{category:1,value:1},treemap:{category:3,value:1},sunburst:{category:6,value:1}};function IC(e){return t=>(t.category.length>e&&console.warn(`Maximum 'category' length is limited to ${e}. Taken first ${e} categories`),$(T({},t),{category:t.category.slice(0,e)}))}function $C(e){return t=>(t.value.length>e&&console.warn(`Maximum 'value' length is limited to ${e}. Taken first ${e} values`),$(T({},t),{value:t.value.slice(0,e)}))}function FC(e){return{y:e.value.map(t=>_.normalizeMeasureColumn(t)),breakBy:e.category.map(t=>_.normalizeColumn(t)),seriesToColorMap:e.seriesToColorMap}}function gd(e){return[...e.breakBy.map(zC)].filter(uY)}function vd(e){return e.y.map(zC).filter(_.isMeasureColumn)}function yd(e){return"category"in e&&"value"in e&&Array.isArray(e.category)&&Array.isArray(e.value)}function bd(e){return e&&"y"in e&&Array.isArray(e.y)&&e.y.every(_.isMeasureColumn)&&"breakBy"in e&&Array.isArray(e.breakBy)&&e.breakBy.every(_.isStyledColumn)}function zC(e){return e.column}function uY(e){return!_.isMeasureColumn(e)}function _d({maxCategories:e,maxValues:t}){return _.flow(IC(e),$C(t))}const cY={translateDataOptionsToInternal:e=>{const t=e.category.length>0?_d({maxCategories:1,maxValues:1})(e):e;return FC(t)},getAttributes:e=>gd(e),getMeasures:e=>vd(e),isCorrectDataOptions:e=>yd(e),isCorrectDataOptionsInternal:e=>bd(e)},wd=(e,t)=>{const r=$(T({},e),{x:e.breakBy,breakBy:[]});let n=_.cartesianData(r,t);if(e.breakBy.some(({column:{type:a},numberFormatConfig:o})=>I.isNumber(a)&&o)){const a=n.xValues.map(o=>{const s=[];return e.breakBy.forEach(({column:{type:u},numberFormatConfig:c},h)=>{const f=_.getCompleteNumberFormatConfig(c),p=o.xValues[h];I.isNumber(u)?s.push(_.applyFormatPlainText(f,parseFloat(p))):s.push(o.xValues[h])}),$(T({},o),{xValues:s})});n=$(T({},n),{xValues:a})}return $(T({},n),{type:"categorical"})},BC=ln;function WC(e,t){return wd(e,t)}const Q1=50,dY=e=>(...t)=>{var s;const[r,...n]=t,i=(s=r.queryDescription)==null?void 0:s.count,a=Math.min(i!=null?i:Q1,Q1),o=$(T({},r),{queryDescription:$(T({},r.queryDescription),{count:a})});return e(o,...n)},hY={loadData:dY(BC),getChartData:(e,t)=>WC(e,t)},fY=e=>{var r,n;const{dataLimits:t}=e;return{categoriesCapacity:(r=t==null?void 0:t.categoriesCapacity)!=null?r:5e4,seriesCapacity:(n=t==null?void 0:t.seriesCapacity)!=null?n:5e4}};function pY(e){var s,u,c,h,f;const{funnelType:t=_.DefaultFunnelType,funnelSize:r=_.DefaultFunnelSize,funnelDirection:n=_.DefaultFunnelDirection,legend:i,seriesLabels:a}=e,o=fY(e);return $(T({},Cr),{funnelSize:r,funnelType:t,funnelDirection:n,legend:i,dataLimits:o,seriesLabels:$(T({},a!=null?a:{}),{enabled:(s=a==null?void 0:a.enabled)!=null?s:_.DefaultFunnelSeriesLabels.enabled,showCategory:(u=a==null?void 0:a.showCategory)!=null?u:_.DefaultFunnelSeriesLabels.showCategory,showValue:(c=a==null?void 0:a.showValue)!=null?c:_.DefaultFunnelSeriesLabels.showValue,showPercentage:(h=a==null?void 0:a.showPercentage)!=null?h:_.DefaultFunnelSeriesLabels.showPercentage,showPercentDecimals:(f=a==null?void 0:a.showPercentDecimals)!=null?f:_.DefaultFunnelSeriesLabels.showPercentDecimals})})}function mY(e){return!e||typeof e=="object"}function gY(){return{legend:{enabled:!0,position:"bottom"},funnelType:_.DefaultFunnelType,funnelSize:_.DefaultFunnelSize,funnelDirection:_.DefaultFunnelDirection,seriesLabels:_.DefaultFunnelSeriesLabels}}function vY(e={}){var a,o,s,u,c;const i=e,{labels:t,seriesLabels:r}=i,n=Ce(i,["labels","seriesLabels"]);return _.omitUndefinedAndEmpty($(T({},n),{seriesLabels:$(T({},r!=null?r:{}),{enabled:(a=r==null?void 0:r.enabled)!=null?a:t==null?void 0:t.enabled,showCategory:(o=r==null?void 0:r.showCategory)!=null?o:t==null?void 0:t.categories,showValue:(s=r==null?void 0:r.showValue)!=null?s:t==null?void 0:t.value,showPercentage:(u=r==null?void 0:r.showPercentage)!=null?u:t==null?void 0:t.percent,showPercentDecimals:(c=r==null?void 0:r.showPercentDecimals)!=null?c:t==null?void 0:t.decimals})}))}const yY={translateStyleOptionsToDesignOptions:pY,isCorrectStyleOptions:mY,getDefaultStyleOptions:gY,translateLegacyStyleOptionsToModern:vY},bY={getChart:function(e){return{type:_.determineHighchartsChartType("funnel",e.designOptions),spacing:[30,30,30,30],alignTicks:!1,polar:!1}},getSeries:function(e){const{series:t}=_.formatFunnelChartData(e.chartData,e.dataOptions,e.designOptions,e.extraConfig.themeSettings);return t},getAxes:function(){return{xAxis:[],yAxis:[]}},getLegend:function(e){return _.getLegendSettings(e.designOptions.legend)},getPlotOptions:function(e){return _.getFunnelPlotOptions(e.designOptions,e.dataOptions)},getTooltip:function(e){var t;return _.getCategoryTooltipSettings((t=e.designOptions.seriesLabels)==null?void 0:t.showPercentDecimals,e.dataOptions)},getExtras:function(){return{title:{text:null}}}},_Y={dataOptions:cY,data:hY,designOptions:yY,renderer:{ChartRendererComponent:Ln({highchartsOptionsBuilder:bY,getAlerts:oY}),isCorrectRendererProps:In}},wY=e=>{const{seriesCapacity:t}=e.designOptions.dataLimits;return _.getPieAlerts(e.chartData,t)},xY={translateDataOptionsToInternal:e=>{const t=e.category.length>0?_d({maxCategories:1,maxValues:1})(e):e;return FC(t)},getAttributes:e=>gd(e),getMeasures:e=>vd(e),isCorrectDataOptions:e=>yd(e),isCorrectDataOptionsInternal:e=>bd(e)},CY={loadData:BC,getChartData:(e,t)=>WC(e,t)},TY="classic",is={enabled:!0,showCategory:!0,showValue:!1,percentageLabels:{enabled:!0,showDecimals:!1}},MY=e=>{var r,n;const{dataLimits:t}=e;return{categoriesCapacity:(r=t==null?void 0:t.categoriesCapacity)!=null?r:5e4,seriesCapacity:(n=t==null?void 0:t.seriesCapacity)!=null?n:5e4}};function SY(e){var h,f,p,g,b,v,w,C,M,E,S,P;const{legend:t,labels:r,subtype:n,seriesLabels:i,semiCircle:a}=e,o=n?pd[n]:void 0,s=(o==null?void 0:o.pieType)||TY,u=e!=null&&e.convolution?e.convolution:{enabled:!1},c=MY(e);return $(T({},Cr),{seriesLabels:$(T({},i),{enabled:(f=(h=i==null?void 0:i.enabled)!=null?h:r==null?void 0:r.enabled)!=null?f:is.enabled,showCategory:(g=(p=i==null?void 0:i.showCategory)!=null?p:r==null?void 0:r.categories)!=null?g:is.showCategory,showValue:(v=(b=i==null?void 0:i.showValue)!=null?b:r==null?void 0:r.value)!=null?v:is.showValue,percentageLabels:$(T({},i==null?void 0:i.percentageLabels),{enabled:(M=(C=(w=i==null?void 0:i.percentageLabels)==null?void 0:w.enabled)!=null?C:r==null?void 0:r.percent)!=null?M:is.percentageLabels.enabled,showDecimals:(P=(S=(E=i==null?void 0:i.percentageLabels)==null?void 0:E.showDecimals)!=null?S:r==null?void 0:r.decimals)!=null?P:is.percentageLabels.showDecimals})}),pieType:s,convolution:u,legend:t,dataLimits:c,semiCircle:a})}function EY(e){return!e||typeof e=="object"}function PY(){return{legend:{enabled:!0,position:"bottom"},labels:{enabled:!0,categories:!0,percent:!0,decimals:!1,value:!1}}}const AY={translateStyleOptionsToDesignOptions:SY,isCorrectStyleOptions:EY,getDefaultStyleOptions:PY},RY={getChart:function(e){return{type:_.determineHighchartsChartType("pie",e.designOptions),spacing:[20,20,20,20],alignTicks:!1,polar:!1}},getSeries:function(e){return _.getPieSeries({chartData:e.chartData,dataOptions:e.dataOptions,seriesCapacity:e.designOptions.dataLimits.seriesCapacity,convolution:e.designOptions.convolution,themeSettings:e.extraConfig.themeSettings})},getAxes:function(){return{xAxis:[],yAxis:[]}},getLegend:function(e){return _.getLegendSettings(e.designOptions.legend)},getPlotOptions:function(e){return _.getPiePlotOptions({pieType:e.designOptions.pieType,seriesLabels:e.designOptions.seriesLabels,chartDataOptions:e.dataOptions,themeSettings:e.extraConfig.themeSettings,semiCircle:e.designOptions.semiCircle})},getTooltip:function(e){var t,r;return _.getCategoryTooltipSettings((r=(t=e.designOptions.seriesLabels)==null?void 0:t.percentageLabels)==null?void 0:r.showDecimals,e.dataOptions)},getExtras:function(e){const t=_.getPieConvolutionSeries({chartData:e.chartData,dataOptions:e.dataOptions,seriesCapacity:e.designOptions.dataLimits.seriesCapacity,convolution:e.designOptions.convolution,themeSettings:e.extraConfig.themeSettings});return{title:{text:null},drilldown:{activeDataLabelStyle:{cursor:"pointer",fontWeight:"bold",textDecoration:"none"},series:t}}}},OY={dataOptions:xY,data:CY,designOptions:AY,renderer:{ChartRendererComponent:Ln({highchartsOptionsBuilder:RY,getAlerts:wY}),isCorrectRendererProps:In}};function kY(){return[]}const DY=(e,t)=>{if(_.emptyTable(t))return{rows:[],columns:[]};const r=_.getColumnsByName(t,e);return _.selectColumns(t,r)},Vp=({column:e,sortType:t})=>{switch("getSort"in e?e.getSort():t){case"sortAsc":case I.Sort.Ascending:return 1;case"sortDesc":case I.Sort.Descending:return-1;default:return 0}},NY=(e,t)=>{const r=e.columns.find(n=>Vp(n)!==0);if(r){const n=_.getColumnByName(t,r.column.name);n&&(n.direction=Vp(r))}return t},HC=e=>{if(!("sortType"in e))return e;const t=e.sortType,r=I.convertSortDirectionToSort(t);return $(T({},e),{sortType:t,column:LY(e.column,r)})};function LY(e,t){return $Y(e)?IY(e,t):e}function IY(e,t){const r=e.sort(t);return _.isMeasureColumn(r)&&_.isMeasureColumn(e)&&(r.title=e.title),r}function $Y(e){return"sort"in e&&typeof e.sort=="function"}const FY=(e,t)=>({columns:e.columns.map(r=>{const n=r.column.name===t.name,i=Vp(r),a=n?i===1?"sortDesc":"sortAsc":"sortNone";return r.sortType=a,HC(r)})}),zY=(e,t)=>{const r=DY(e.columns.map(({column:{name:n}})=>n),t);return NY(e,r)},BY=(e,t)=>{switch(t){case"iqr":return yO(e);case"extremums":return bO(e);case"standardDeviation":return _O(e)}},WY=(e,t)=>{switch(t){case"iqr":return wO(e);case"standardDeviation":return xO(e)}},HY=(e,t,r)=>{const{column:n,style:i}=_.splitColumn(e);let a=BY(n,t),o;return i&&(a=a.map(s=>T({column:s},i))),r&&(o=WY(n,t),o&&i&&(o=T({column:o},i))),{values:a,outliers:o}},jY=e=>e.value.length>1,jC=e=>{var f;const{category:t}=e;let r,n,i;if(jY(e))r=e.value,i=e.valueTitle,n=(f=e.outliers)==null?void 0:f[0];else{const{outliersEnabled:p,boxType:g}=e,b=_.normalizeColumn(e.value[0]),{values:v,outliers:w}=HY(b,g,!!p);r=v,n=w,i=_.getDataOptionTitle(b)}const[a,o,s,u,c,h]=r;return{category:t[0]&&_.normalizeColumn(t[0]),boxMin:a&&_.normalizeMeasureColumn(a),boxMedian:o&&_.normalizeMeasureColumn(o),boxMax:s&&_.normalizeMeasureColumn(s),whiskerMin:u&&_.normalizeMeasureColumn(u),whiskerMax:c&&_.normalizeMeasureColumn(c),outliersCount:h&&_.normalizeMeasureColumn(h),outliers:n&&_.normalizeColumn(n),valueTitle:i}};function VY(e){var a;const t=e.value.map(o=>{if(o!=null&&o.chartType)return[_.normalizeMeasureColumn(o)];const f=o,{lowerBound:s,upperBound:u,title:c}=f,h=Ce(f,["lowerBound","upperBound","title"]);return[_.normalizeMeasureColumn(T({column:_.safeMerge(s,{title:c})},h)),_.normalizeMeasureColumn(T({column:_.safeMerge(u,{title:c})},h))]}),r=t.flat(),n=t.filter(o=>o.length===2),i=t.filter(o=>o.length===1).flat();return{x:e.category.map(o=>_.normalizeColumn(o)),breakBy:((a=e.breakBy)==null?void 0:a.map(o=>_.normalizeColumn(o)))||[],y:r,rangeValues:n,seriesValues:i,seriesToColorMap:e.seriesToColorMap}}const J1={city:4,state:3,country:2,auto:1};function GY(e){return e.filter(r=>"geoLevel"in r&&r.geoLevel).map(r=>r.geoLevel).reduce((r,n)=>J1[n]>J1[r]?n:r,"auto")}function UY(e){const{geo:t,size:r,colorBy:n,details:i}=e;return{locations:t.map(a=>_.normalizeColumn(a)),size:r&&_.normalizeMeasureColumn(r),colorBy:n&&_.normalizeMeasureColumn(n),details:i&&_.normalizeAnyColumn(i),locationLevel:GY(t)}}function YY(e,t){if(I.isCartesian(e))return ca(t);if(I.isCategorical(e))return og(t);if(I.isIndicator(e))return qY(t);if(I.isScatter(e))return XY(t);if(I.isBoxplot(e))return jC(t);if(I.isScattermap(e))return UY(t);if(I.isRange(e))return VY(t);throw new I.TranslatableError("errors.unexpectedChartType",{chartType:e})}const og=e=>({y:e.value.map(t=>_.normalizeMeasureColumn(t)),breakBy:e.category.map(t=>_.normalizeColumn(t)),seriesToColorMap:e.seriesToColorMap}),qY=e=>{var t,r,n,i,a,o;return{value:(t=e.value)==null?void 0:t.map(s=>_.normalizeMeasureColumn(s)),secondary:(r=e.secondary)==null?void 0:r.map(s=>_.normalizeMeasureColumn(s)),min:(i=(n=e.min)==null?void 0:n.map(s=>_.normalizeMeasureColumn(s)))==null?void 0:i.map(eb("min")),max:(o=(a=e.max)==null?void 0:a.map(s=>_.normalizeMeasureColumn(s)))==null?void 0:o.map(eb("max"))}},eb=e=>t=>{const{column:r}=t,n="aggregation"in r&&r.aggregation||e;return $(T({},t),{column:_.safeMerge(r,{aggregation:n})})},XY=e=>{const{x:t,y:r,breakByPoint:n,breakByColor:i,size:a,seriesToColorMap:o}=e;return{x:t&&_.normalizeAnyColumn(t),y:r&&_.normalizeAnyColumn(r),breakByPoint:n&&_.normalizeColumn(n),breakByColor:i&&_.normalizeAnyColumn(i),size:a&&_.normalizeMeasureColumn(a),seriesToColorMap:o}};function ZY(e,t){let r=[];return I.isScatter(t)?r=["x","y","breakByPoint","breakByColor"]:I.isCartesian(t)||I.isCategorical(t)||I.isRange(t)?r=["x","breakBy"]:I.isBoxplot(t)?r=["category","outliers"]:I.isScattermap(t)&&(r=["locations"]),r.flatMap(i=>{var a;return(a=e[i])!=null?a:[]}).filter(i=>!_.isMeasureColumn(i)).map(({column:i})=>i)}function KY(e,t){let r=[];return I.isIndicator(t)?r=["value","secondary","min","max"]:I.isScatter(t)?r=["x","y","breakByColor","size"]:I.isCartesian(t)||I.isCategorical(t)||I.isRange(t)?r=["y"]:I.isBoxplot(t)?r=["boxMin","boxMedian","boxMax","whiskerMin","whiskerMax","outliersCount"]:I.isScattermap(t)&&(r=["size","colorBy","details"]),r.flatMap(i=>{var a;return(a=e[i])!=null?a:[]}).filter(_.isMeasureColumn).map(({column:i})=>i)}function VC(e){return{columns:e.columns.map(t=>_.normalizeAnyColumn(t)).map(HC)}}function QY(e){var t,r,n;return{rows:(t=e.rows)==null?void 0:t.map(i=>_.normalizeColumn(i)),columns:(r=e.columns)==null?void 0:r.map(i=>_.normalizeColumn(i)),values:(n=e.values)==null?void 0:n.map(i=>_.normalizeMeasureColumn(i)),grandTotals:e.grandTotals}}const JY={translateDataOptionsToInternal:e=>og(_d({maxCategories:6,maxValues:1})(e)),getAttributes:gd,getMeasures:vd,isCorrectDataOptions:e=>yd(e),isCorrectDataOptionsInternal:e=>bd(e)},eq={loadData:ln,getChartData:(e,t)=>wd(e,t)},tq={translateStyleOptionsToDesignOptions:e=>RC(e),getDefaultStyleOptions:()=>({seriesLabels:{enabled:!1},legend:{enabled:!0}}),translateLegacyStyleOptionsToModern:e=>{var r;const t=e!=null?e:{};return t!=null&&t.labels&&!(t!=null&&t.seriesLabels)?$(T({},t),{seriesLabels:(r=t.labels.category)==null?void 0:r.map(n=>{var i;return{enabled:(i=n==null?void 0:n.enabled)!=null?i:!0}})}):t},isCorrectStyleOptions:e=>!(!e||typeof e!="object")},rq={getChart:()=>({type:"sunburst",spacing:[20,20,20,20],alignTicks:!1,polar:!1,animation:{duration:300}}),getSeries:e=>_.prepareSunburstSeries(e.chartData,e.dataOptions,e.designOptions,e.extraConfig.themeSettings),getAxes:()=>({xAxis:void 0,yAxis:void 0}),getLegend:e=>_.getLegendSettings(e.designOptions.legend),getPlotOptions:()=>({series:{},sunburst:{events:{legendItemClick:function(e){e.preventDefault()}}}}),getTooltip:e=>_.prepareSunburstTooltip(e.dataOptions,e.designOptions,e.extraConfig.translate),getExtras:()=>({title:{text:null}})},nq={dataOptions:JY,data:eq,designOptions:tq,renderer:{ChartRendererComponent:Ln({highchartsOptionsBuilder:rq,getAlerts:kY}),isCorrectRendererProps:In}};function iq(){return[]}const aq={translateDataOptionsToInternal:e=>og(_d({maxCategories:3,maxValues:1})(e)),getAttributes:gd,getMeasures:vd,isCorrectDataOptions:e=>yd(e),isCorrectDataOptionsInternal:e=>bd(e)},oq={loadData:ln,getChartData:(e,t)=>wd(e,t)},sq={translateStyleOptionsToDesignOptions:e=>AC(e),getDefaultStyleOptions:()=>({seriesLabels:{enabled:!0},tooltip:{mode:"value"}}),translateLegacyStyleOptionsToModern:e=>{var r;const t=e!=null?e:{};return t!=null&&t.labels&&!(t!=null&&t.seriesLabels)?$(T({},t),{seriesLabels:(r=t.labels.category)==null?void 0:r.map(n=>{var i;return{enabled:(i=n==null?void 0:n.enabled)!=null?i:!0}})}):t},isCorrectStyleOptions:e=>!(!e||typeof e!="object")},lq="rgb(0, 206, 230)",uq={getChart:()=>({type:"treemap",spacing:[20,20,20,20],alignTicks:!1,polar:!1,animation:{duration:300}}),getSeries:e=>[{type:"treemap",layoutAlgorithm:"strip",layoutStartingDirection:"horizontal",clip:!1,color:lq,name:e.dataOptions.y[0]?_.getDataOptionTitle(e.dataOptions.y[0]):"",data:_.prepareTreemapDataItems(e.chartData,e.dataOptions,e.extraConfig.themeSettings),levels:_.prepareTreemapLevels(e.dataOptions,e.designOptions,e.extraConfig.themeSettings),dataLabels:{style:{textOutline:"none"}}}],getAxes:()=>({xAxis:void 0,yAxis:void 0}),getLegend:()=>({enabled:!1}),getPlotOptions:()=>({series:{}}),getTooltip:e=>_.getTreemapTooltipSettings(e.dataOptions,e.designOptions,e.extraConfig.translate),getExtras:()=>({title:{text:null}})},cq={dataOptions:aq,data:oq,designOptions:sq,renderer:{ChartRendererComponent:Ln({highchartsOptionsBuilder:uq,getAlerts:iq}),isCorrectRendererProps:In}},dq={areamap:YH,area:AU,column:VU,bar:FU,line:rU,polar:cU,streamgraph:aY,pie:OY,funnel:_Y,treemap:cq,sunburst:nq,"calendar-heatmap":wV};function El(e){const t=dq[e];if(t)return t;throw new Error(`Unsupported chart type: ${e}`)}function hq(e,t){return I.isCartesian(t)?e.value.some(n=>(n==null?void 0:n.forecast)!==void 0||(n==null?void 0:n.trend)!==void 0):!1}function Pl(e){return["areamap","area","column","bar","line","polar","pie","funnel","calendar-heatmap","treemap","sunburst","streamgraph"].includes(e)}function fq(e){let t;switch(e.subtype){case"indicator/numeric":t=T({indicatorType:"numeric",numericSubtype:e.numericSubtype},e.numericSubtype==="numericSimple"?{skin:e.skin}:null);break;case"indicator/gauge":t=T({indicatorType:"gauge",skin:e.skin},e.tickerBarHeight?{tickerBarHeight:e.tickerBarHeight}:null);break}return $(T(T({},Cr),t),{indicatorComponents:e.indicatorComponents||Cr.indicatorComponents,forceTickerView:!!e.forceTickerView})}const pq=(e,t,r)=>{const n="y"in r&&Array.isArray(r.y)?r.y.some(s=>s.showOnRightAxis):!1;let i;switch(e){case"area":i=MG(t,r,n);break;case"arearange":case"line":i=TG(t,r,n);break;case"pie":i=PG(t);break;case"funnel":i=AG(t);break;case"treemap":i=AC(t);break;case"sunburst":i=RC(t);break;case"polar":i=OG(t,r);break;case"indicator":i=fq(t);break;case"scatter":i=DG(t);break;case"boxplot":i=NG(t);break;case"scattermap":i=IG(t);break;default:throw new I.TranslatableError("errors.chartTypeNotSupported",{chartType:e})}const a="subtype"in t&&t.subtype?t.subtype:"line/basic",o=pd[a];return T(T({},i),o)};function mq(e,t,r){var n,i,a,o,s,u,c;if(Pl(e)){const h=El(e),f=kn((o=(a=(i=(n=h.designOptions).translateLegacyStyleOptionsToModern)==null?void 0:i.call(n,r))!=null?a:r)!=null?o:{},(c=(u=(s=h.designOptions).getDefaultStyleOptions)==null?void 0:u.call(s))!=null?c:_.getDefaultStyleOptions());if(!h.designOptions.isCorrectStyleOptions(f))throw new I.TranslatableError("errors.optionsTranslation.invalidStyleOptions",{chartType:e});if(!h.dataOptions.isCorrectDataOptionsInternal(t))throw new I.TranslatableError("errors.optionsTranslation.invalidInternalDataOptions",{chartType:e});return h.designOptions.translateStyleOptionsToDesignOptions(f,t)}else{const h=kn(r!=null?r:{},_.getDefaultStyleOptions());return pq(e,h,t)}}function kn(e,t){return _.merge.withOptions({mergeArrays:!1},t,e)}function Pi(e,t,r){return gq(e).map(i=>{const a=i.seriesId,o=i.seriesStyleOptions,s=CG(t,kn(o,r));return{seriesId:a,designOptions:WD(s,["line","marker"])}}).reduce((i,{seriesId:a,designOptions:o})=>$(T({},i),{[a]:o}),{})}function gq(e){return e.y.filter(vq).map(({column:{name:t},seriesStyleOptions:r})=>({seriesId:t,seriesStyleOptions:r}))}function vq(e){return e.seriesStyleOptions!==void 0}const yq=2e4;function as(e,t){if(e&&t){const r=t.column.name,n=e.findIndex(i=>i.name===r);return n===-1?null:n}return null}const GC=(e,t,r)=>{if(!e)return{columns:[],rows:[]};let n=0,i=4,a=5,o=0,s=1;return r&&(n=as(e.columns,r.category),i=as(e.columns,r.whiskerMin),a=as(e.columns,r.whiskerMax),o=as(t.columns,r.category),s=as(t.columns,r.outliers)),Vu(s)?e:{columns:[...e.columns,t.columns[s]],rows:e.rows.map(c=>{const h=Vu(n)?null:c[n].data,f=c[a].data,p=c[i].data,g=t.rows.filter(b=>{const v=Vu(o)?null:b[o].data,w=b[s].data;return v===h&&(w<p||w>f)}).map(b=>b[s].data).join(",");return[...c,{data:g}]})}};function bq(e,t,r){const n=r&&jC(r);return GC(e,t,n)}const _q=(c,h)=>Yt(exports,[c,h],function*({app:e,chartDataOptions:t,dataSource:r,attributes:n,measures:i,filters:a,filterRelations:o,highlights:s},u){var v;const f={dataSource:r,dimensions:t.category?[n[0]]:[],measures:i,filters:a,filterRelations:o,highlights:s},p=yield u(f,e);let g=p;const b=t.outliersCount?wq(p,t.outliersCount.column.name):0;if(t.outliers&&b<yq){const w={dataSource:r,dimensions:n,measures:[],filters:a,filterRelations:o,highlights:s};try{const C=yield u(w,e);g=GC(p,C,t)}catch(C){if((v=C==null?void 0:C.message)!=null&&v.includes("UnsupportedFunctionalityException"))console.warn("Functionality not supported by platform: Boxplot outliers");else throw C}}return g}),wq=(e,t)=>{if(!(e!=null&&e.columns))return 0;const r=e.columns.findIndex(({name:i})=>i===t);let n=0;return e.rows.forEach(i=>{n+=parseInt(i[r].data)}),n};function xq(e,t){return Pl(e)&&!t?El(e).data.loadData:e==="boxplot"?Tq:Cq}const Cq=n=>Yt(exports,[n],function*({app:e,queryDescription:t,executionConfig:r}){var o,s;return(((s=(o=e==null?void 0:e.settings.queryCacheConfig)==null?void 0:o.enabled)!=null?s:!1)?I.executeQueryWithCache:I.executeQuery)(t,e,r)}),Tq=n=>Yt(exports,[n],function*({app:e,chartDataOptionsInternal:t,queryDescription:r}){var o,s,u,c;const a=((s=(o=e==null?void 0:e.settings.queryCacheConfig)==null?void 0:o.enabled)!=null?s:!1)?I.executeQueryWithCache:I.executeQuery;return _q({app:e,chartDataOptions:t,dataSource:r.dataSource,attributes:(u=r.dimensions)!=null?u:[],measures:(c=r.measures)!=null?c:[],filters:r.filters,highlights:r.highlights,filterRelations:r.filterRelations},a)}),xu=(e,t)=>{if(!t||t.length!==1)return[void 0,void 0];const r=_.getColumnByName(e,t[0].column.name);return r?[_.getValue(e.rows[0],r),t[0].column.name]:[void 0,void 0]},Mq=(e,t)=>{var s;const r={type:"indicator"};if(!((s=e.value)!=null&&s.length)||t.rows.length===0)return r;const[n]=xu(t,e.value);if(n===void 0)return r;const[i]=xu(t,e.secondary),[a]=xu(t,e.min),[o]=xu(t,e.max);return{type:"indicator",value:n,secondary:i,min:a,max:o}};function UC(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:I.baseSlice(e,t,r)}function Sq(e,t){for(var r=e.length;r--&&eg(t,e[r],0)>-1;);return r}function Eq(e,t){for(var r=-1,n=e.length;++r<n&&eg(t,e[r],0)>-1;);return r}function Pq(e){return e.split("")}var Aq="\\ud800-\\udfff",Rq="\\u0300-\\u036f",Oq="\\ufe20-\\ufe2f",kq="\\u20d0-\\u20ff",Dq=Rq+Oq+kq,Nq="\\ufe0e\\ufe0f",Lq="\\u200d",Iq=RegExp("["+Lq+Aq+Dq+Nq+"]");function YC(e){return Iq.test(e)}var qC="\\ud800-\\udfff",$q="\\u0300-\\u036f",Fq="\\ufe20-\\ufe2f",zq="\\u20d0-\\u20ff",Bq=$q+Fq+zq,Wq="\\ufe0e\\ufe0f",Hq="["+qC+"]",Gp="["+Bq+"]",Up="\\ud83c[\\udffb-\\udfff]",jq="(?:"+Gp+"|"+Up+")",XC="[^"+qC+"]",ZC="(?:\\ud83c[\\udde6-\\uddff]){2}",KC="[\\ud800-\\udbff][\\udc00-\\udfff]",Vq="\\u200d",QC=jq+"?",JC="["+Wq+"]?",Gq="(?:"+Vq+"(?:"+[XC,ZC,KC].join("|")+")"+JC+QC+")*",Uq=JC+QC+Gq,Yq="(?:"+[XC+Gp+"?",Gp,ZC,KC,Hq].join("|")+")",qq=RegExp(Up+"(?="+Up+")|"+Yq+Uq,"g");function Xq(e){return e.match(qq)||[]}function Yp(e){return YC(e)?Xq(e):Pq(e)}function Zq(e,t,r){if(e=I.toString(e),e&&(r||t===void 0))return _.baseTrim(e);if(!e||!(t=I.baseToString(t)))return e;var n=Yp(e),i=Yp(t),a=Eq(n,i),o=Sq(n,i)+1;return UC(n,a,o).join("")}const eT=",";function Kq(e){return e.join(`${eT} `)}function Qq(e){return e.split(eT).map(Zq)}function Jq(e){switch(e){case"city":return"city";case"state":return"adm";case"country":return"country"}}function eX(e,t){const{name:r,rawName:n,coordinates:i,value:a,colorValue:o,details:s}=e,c={geo:t.locations.map((h,f)=>$(T({},Ge(h)),{value:n[f]}))};if(t.size&&(c.size=$(T({},Ge(t.size)),{value:a})),t.colorBy&&(c.colorBy=$(T({},Ge(t.colorBy)),{value:o})),t.details){const h=Ge(t.details);h.measure&&(c.details=$(T({},h),{value:s}))}return{categories:n,displayName:r,coordinates:{lat:i.lat,lng:i.lng},value:a,entries:c}}const tX=1,rX=(e,t)=>{const r=nX(e),n=e.locations&&_.getColumnsByName(t,e.locations.map(({column:{name:u}})=>u)),i=e.size&&_.getColumnByName(t,e.size.column.name),a=e.colorBy&&_.getColumnByName(t,e.colorBy.column.name),o=e.details&&_.getColumnByName(t,e.details.column.name);return{type:"scattermap",locations:t.rows.filter(u=>n.some(c=>_.getValue(u,c)!==_.NOT_AVAILABLE_DATA_VALUE)).map(u=>{const c=n.map(g=>_.getValue(u,g)),h=Kq(c);let f;r&&(f={lat:_.getValue(u,n[0]),lng:_.getValue(u,n[1])});const p=n[0]&&!!_.isBlurred(u,n[0]);return T($(T(T({name:h,rawName:c,value:i?_.getValue(u,i):tX},a&&{colorValue:_.getValue(u,a)}),o&&{details:_.getValue(u,o)}),{blur:p}),f?{coordinates:f}:null)})}};function nX(e){return e.locations.length===2&&e.locations.filter(({column:{type:t}})=>I.isNumber(t)).length===2}const iX=(e,t,r)=>{if(I.isCartesian(e))return _.isForecastChart(t)?_.advancedAnalyticsData(t,r):_.cartesianData(t,r);if(I.isCategorical(e))return wd(t,r);if(I.isScatter(e))return _.scatterData(t,r);if(I.isScattermap(e))return rX(t,r);if(I.isIndicator(e))return Mq(t,r);if(I.isBoxplot(e))return CO(t,r);if(I.isRange(e))return _.rangeData(t,r);throw new I.TranslatableError("errors.unexpectedChartType",{chartType:e})};var aX=1/0,oX=I.Set&&1/I.setToArray(new I.Set([,-0]))[1]==aX?function(e){return new I.Set(e)}:_.noop,sX=200;function sg(e,t,r){var n=-1,i=CC,a=e.length,o=!0,s=[],u=s;if(a>=sX){var c=t?null:oX(e);if(c)return I.setToArray(c);o=!1,i=I.cacheHas,u=new I.SetCache}else u=t?[]:s;e:for(;++n<a;){var h=e[n],f=t?t(h):h;if(h=h!==0?h:0,o&&f===f){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),s.push(h)}else i(u,f,r)||(u!==s&&u.push(f),s.push(h))}return s}var lX=I.baseRest(function(e){return sg(I.baseFlatten(e,1,I.isArrayLikeObject,!0))});const tT=(e,t,r,n={})=>{if(_.emptyTable(e))return{rows:[],columns:[]};const i=lX(_.getColumnsByName(e,t.map(h=>h.name))),a=e,s=[...r.map(h=>{var f,p;return{column:(f=n[h.name])!=null?f:h.name,title:h.name,agg:(p=h.aggregation)!=null?p:"sum"}}),{column:_.rownumColumnName,title:_.rownumColumnName,agg:"min"}],u=_.groupBy(a,i,s),c=_.getColumnByName(u,_.rownumColumnName);if(!c)throw new I.TranslatableError("errors.noRowNumColumn",{columnName:_.rownumColumnName});return _.orderBy(u,[c])};function uX({dataSet:e,data:t,chartDataOptions:r,chartType:n,isForecastOrTrendChart:i,attributes:a,measures:o,dataColumnNamesMapping:s,onDataReady:u}){return k.useMemo(()=>{if(!t||!r)return null;let c;if(u&&(c=u(t),!fT(c)))throw new I.TranslatableError("errors.incorrectOnDataReadyHandler");const h=c||t;let f=_.createDataTableFromData(h);return xi(e)||(f=tT(f,a,o,s)),cX(n,r,f,i)},[t,n,i])}function cX(e,t,r,n=!1){if(Pl(e)&&!n){const i=El(e);if(i.dataOptions.isCorrectDataOptionsInternal(t))return i.data.getChartData(t,r);throw new Error("Incorrect internal data options for restructured chart")}return iX(e,t,r)}function dX(e){const{dataSet:t,chartType:r,chartData:n,internalDataOptions:i,designOptions:a,onBeforeRender:o,onDataPointClick:s,onDataPointContextMenu:u,onDataPointsSelected:c}=e;return k.useMemo(()=>!i||!a?null:{dataSource:xi(t)?t:null,chartType:r,chartData:n,dataOptions:i,designOptions:a,onBeforeRender:o,onDataPointClick:s,onDataPointContextMenu:u,onDataPointsSelected:c},[t,r,n,i,a,o,s,u,c])}const lg=()=>{const[e,t]=k.useState();if(e)throw e;return t};function qp(e,t,r=xl(),n=Cl){const i=new Map;return[...t.breakBy?t.breakBy:[],...t.x?Array.isArray(t.x)?t.x:[t.x]:[],...t.columns?t.columns:[]].forEach(function(o){if(_.isMeasureColumn(o)||!o.dateFormat||!(e!=null&&e.columns))return;const s=e.columns.findIndex(function(c){return c.name===o.column.name&&I.isDatetime(o.column.type)&&I.isDatetime(c.type)});s!==-1&&i.set(s,o.dateFormat)}),i.size===0||(e.rows=e.rows.map(function(o){return o.map(function(u,c){const h=i.get(c);if(!h||u===_.NOT_AVAILABLE_DATA_VALUE)return u;let f,p;if(_.isCell(u)){if(u.data===_.NOT_AVAILABLE_DATA_VALUE)return u;f=T({},u)}else{const b=_.createCompareValue(`${u}`,"datetime");p=new Date(b.value),f={data:p.toISOString(),text:`${u}`}}if(!f.data)return u;let g=f.text;try{g=Tl(f.data,h,r,n)}catch(b){console.error(b)}return f.text=g,f})})),e}const ug=e=>{const t={},r=n=>`$measure${n}_`;return e.forEach((n,i)=>{const a=n.name,s=`${r(i)}${a}`;n.name=s,t[s]=a}),t},hX=(e,t)=>{if(t==="funnel"){const r=_.merge(e);if(r.breakBy.length>0&&r.breakBy[0].sortType===void 0&&r.y.length>0&&r.y[0].sortType===void 0)return r.y[0].sortType="sortDesc",r}return e},rT=(e,t,r,n,i,a)=>{if(!e)return!0;if(t.length+r.length===0)throw new I.TranslatableError("errors.dataOptions.noDimensionsAndMeasures");return t.forEach(o=>{if(e.columns.findIndex(u=>u.name===o.name)===-1)throw new I.TranslatableError("errors.dataOptions.attributeNotFound",{attributeName:o.name})}),r.forEach(o=>{if(e.columns.findIndex(u=>u.name===o.name||u.name===n[o.name])===-1)throw new I.TranslatableError("errors.dataOptions.measureNotFound",{measureName:n[o.name]})}),i&&i.forEach(o=>{if(e.columns.findIndex(u=>u.name===o.attribute.name)===-1)throw new I.TranslatableError("errors.dataOptions.filterAttributeNotFound",{attributeName:o.attribute.name})}),a&&a.forEach(o=>{if(e.columns.findIndex(u=>u.name===o.attribute.name)===-1)throw new I.TranslatableError("errors.dataOptions.highlightAttributeNotFound",{attributeName:o.attribute.name})}),!0};function fX(e,t){switch(e){case"pie":case"funnel":case"treemap":return sY(e,t);default:return t}}const pX=e=>e==="funnel"?e:_.deriveChartFamily(e),mX=({dataSet:e,chartDataOptions:t,chartType:r,attributes:n,measures:i,dataColumnNamesMapping:a,filters:o,highlights:s,refreshCounter:u,enabled:c=!0,loadData:h})=>{const f=lg(),[p,g]=k.useState(!1),b=k.useMemo(()=>pX(r),[r]),v=k.useMemo(()=>[void 0,t],[t]),[w,C]=k.useState({}),{app:M}=wt();k.useEffect(()=>{if(!c)return;let P=!1;const{filters:R,relations:N}=I.getFilterListAndRelationsJaql(o);if(xi(e)){if(!M)return;g(!0),h({app:M,chartDataOptionsInternal:t,queryDescription:{dataSource:e,dimensions:n,measures:i,filters:R,filterRelations:N,highlights:s,count:M.settings.queryLimit}}).then(U=>{const K=qp(U,t,M==null?void 0:M.settings.locale,M==null?void 0:M.settings.dateConfig);P||C({[b]:[K,t]})}).catch(U=>{f(U)}).finally(()=>{g(!1)})}else{rT(e,n,i,a,R,s);const B=qp(e,t,M==null?void 0:M.settings.locale,M==null?void 0:M.settings.dateConfig);C({[b]:[B,t]})}return()=>{P=!0}},[r,t,e,o,s,M,u,c]);const[E,S]=w[b]||v;return{isLoading:p,data:E,dataOptions:S}};function nT(e,t){{const r=fX(t,e),n=YY(t,r),i=hX(n,t),a=ZY(i,t),o=KY(i,t);return{dataOptions:i,attributes:a,measures:o}}}const gX=(e,t,r)=>k.useMemo(()=>{if(Pl(t)&&!r){const n=El(t);if(!n.dataOptions.isCorrectDataOptions(e))throw new Error("Incorrect data options");return vX(n,e)}else return yX(e,t)},[e,t,r]);function vX(e,t){const r=e.dataOptions.translateDataOptionsToInternal(t),n=e.dataOptions.getAttributes(r),i=e.dataOptions.getMeasures(r),a=ug(i);return{dataOptions:r,attributes:n,measures:i,dataColumnNamesMapping:a}}function yX(e,t){const{dataOptions:r,attributes:n,measures:i}=nT(e,t),a=ug(i);return{dataOptions:r,attributes:n,measures:i,dataColumnNamesMapping:a}}const tb={fontFamily:"opensansregular, sans-serif",title:{color:"rgb(68, 81, 102)",fontSizes:{big:22,medium:18,small:15,micro:12}},value:{color:"rgb(0,206,230)",fontSizes:{big:66,medium:46,small:32,micro:23}},secondaryTitle:{color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},secondaryValue:{fontWeight:800,color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},textKeys:["title","value","secondaryTitle","secondaryValue"],backgroundColor:"rgb(255, 255, 255)",borderColor:"rgb(215, 215, 215)",borderWidth:1,relativeSizes:[{key:"titleSectionHeight",value:.5,decimals:0},{key:"titleSectionMarginTop",value:.13,decimals:0},{key:"titleSectionMinWidth",value:.29,decimals:0},{key:"numericMinWidth",value:4.69,decimals:0},{key:"valueSectionHeight",value:1,decimals:0},{key:"valueSectionMarginRight",value:.14,decimals:0},{key:"valueSectionMarginBottom",value:.07,decimals:0},{key:"secSectionHeight",value:.34,decimals:0},{key:"secSectionMarginTop",value:.14,decimals:0},{key:"secDividerWidth",value:.14,decimals:0},{key:"secTitleMinWidth",value:.29,decimals:0},{key:"indicatorHorizontalMargin",value:.31,decimals:0},{key:"indicatorVerticalMargin",value:.46,decimals:0}],measureKeys:["indicatorMargin","numericMinWidth","titleSectionHeight","secSectionHeight","valueSectionMarginBottom","secSectionMarginTop","indicatorHorizontalMargin","indicatorVerticalMargin"],sizes:[{size:"big",value:70},{size:"medium",value:49},{size:"small",value:34},{size:"micro",value:24}],fitMeasures:[{key:"fitTitleMeasure",prop:"string",dataKey:"title"},{key:"fitValueMeasure",prop:"string",dataKey:"value"},{key:"fitSecondaryMeasure",prop:"titleString",dataKey:"secondaryTitle"},{key:"fitSecondaryMeasure",prop:"valueString",dataKey:"secondary"}]},bX={fontFamily:"opensansregular, sans-serif",title:{color:"rgb(68, 81, 102)",fontSizes:{big:22,medium:18,small:15,micro:12}},value:{color:"rgb(255, 255, 255)",fontSizes:{big:45,medium:31,small:22,micro:15}},secondaryTitle:{color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},secondaryValue:{fontWeight:800,color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},textKeys:["title","value","secondaryTitle","secondaryValue"],backgroundColor:"rgb(255, 255, 255)",bracketColor:"rgb(198, 198, 198)",bracketThickness:1,relativeSizes:[{key:"titleSectionHeight",value:1,decimals:0},{key:"titleHorizontalMargin",value:.16,decimals:0},{key:"numericMinWidth",value:4.69,decimals:0},{key:"valueSectionHeight",value:1,decimals:0},{key:"secSectionHeight",value:1,decimals:0},{key:"secBottomMargin",value:.14,decimals:0},{key:"secDividerWidth",value:.14,decimals:0},{key:"secTitleMinWidth",value:.29,decimals:0},{key:"bracketWidth",value:.21,decimals:0},{key:"indicatorMargin",value:.64,decimals:0}],measureKeys:["indicatorMargin","numericMinWidth","bracketWidth","titleSectionHeight","secSectionHeight"],sizes:[{size:"big",value:70,maxWidth:1261,maxHeight:665},{size:"medium",value:49},{size:"small",value:34},{size:"micro",value:24}]},_X={fontFamily:"opensansregular, sans-serif",title:{color:"rgb(68, 81, 102)",fontSizes:{big:22,medium:18,small:15,micro:12}},value:{color:"rgb(255, 255, 255)",fontSizes:{big:45,medium:31,small:22,micro:15}},secondaryTitle:{color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},secondaryValue:{fontWeight:800,color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},label:{color:"rgb(68, 81, 102)",fontSizes:{big:18,medium:13,small:9,micro:9}},textKeys:["title","value","secondaryTitle","secondaryValue","label"],backgroundColor:"rgb(255, 255, 255)",tickColor:"rgb(0, 0, 0)",needleColor:"rgb(43, 51, 66)",bracketColor:"rgb(198, 198, 198)",defaultDialColor:"rgb(179, 179, 179)",gaugeOpacity:.5,startAngle:20,endAngle:160,overDegrees:5,tickDegreesIncrement:10,bracketThickness:1,relativeSizes:[{key:"titleSectionHeight",value:.26,decimals:0},{key:"titleHorizontalMargin",value:.08,decimals:0},{key:"titleBottomMargin",value:.1,decimals:0},{key:"gaugeWidth",value:1.33,decimals:0},{key:"gaugeBottomMargin",value:.19,decimals:0},{key:"outerArcRadius",value:.63,decimals:0},{key:"innerArcRadius",dataKey:"skin",values:{1:.24,2:.51},decimals:0},{key:"lengthToTick",value:.7,decimals:0},{key:"tickRadius",value:.01,decimals:1},{key:"needleLength",dataKey:"skin",values:{1:.52,2:.58},decimals:0},{key:"needleBaseRadius",value:.04,decimals:0},{key:"labelMargin",value:.26,decimals:0},{key:"valueSectionHeight",value:.36,decimals:0},{key:"secSectionHeight",value:.36,decimals:0},{key:"secBottomMargin",value:.05,decimals:0},{key:"secDividerWidth",value:.05,decimals:0},{key:"secTitleMinWidth",value:.1,decimals:0},{key:"bracketWidth",value:.08,decimals:0},{key:"indicatorMargin",value:.14,decimals:0}],gaugeHeights:[{size:"big",value:192,maxWidth:1297,maxHeight:1075},{size:"medium",value:134},{size:"small",value:94},{size:"micro",value:66}],measureKeys:["indicatorMargin","gaugeWidth","bracketWidth","titleSectionHeight","valueSectionHeight","secSectionHeight"]},wX={fontFamily:"Open Sans",fontSize:15,title:{color:"rgb(68, 81, 102)"},value:{fontWeight:800},secondaryTitle:{color:"rgb(163, 163, 163)"},secondaryValue:{color:"rgb(163, 163, 163)"},textKeys:["title","value","secondaryTitle","secondaryValue"],backgroundColor:"transparent",dividerColor:"rgb(39, 42, 52)",barHandleColor:"rgb(43, 51, 66)",height:35,horizontalMargin:15,barWidth:100,barHeight:11,barOpacity:.5,tickerBarWidth:2,tickerBarHeight:13,horizontalPadding:9,textPadding:6,sectionMinWidth:20,dividerWidth:1,dividerHeight:13,forceTickerView:!1};function xX(e,t){const r=I.cloneDeep(wX);if(r.forceTickerView=t.forceTickerView,r.fontFamily=t.fontFamily,r.backgroundColor=t.backgroundColor,r.value.color=t.value.color,r.title.color=t.title.color,r.secondaryTitle.color=t.secondaryTitle.color,r.secondaryValue.color=t.secondaryTitle.color,t.tickerBarHeight){const n=t.tickerBarHeight;r.barHeight=n,r.tickerBarHeight=n+2}return r.forceTickerView&&(r.height=e.offsetHeight),r}class Al{degToRad(t){return t*Math.PI/180}getFitStringMeasure(t,r,n,i){t.font=i;let a=this.getStringWidth(t,r);const o="…",s=this.getStringWidth(t,o);if(a<=n)return{string:r,width:a};if(s>=n)return{string:o,width:s};do r=r.slice(0,r.length-1),a=this.getStringWidth(t,r);while(a+s>n);return{string:r+o,width:a+s}}getStringWidth(t,r){return Math.ceil(t.measureText(r).width)}floor(t,r){r=typeof r=="number"?r:0;const n=Math.pow(10,r);return Math.round(t*n)/n}setCanvasSizes(t,r,n,i){const a=window.devicePixelRatio||1;t.width=n*a,t.height=i*a,t.style.width=n+"px",t.style.height=i+"px",r.scale(a,a)}}const Rt=new Al,Na=function(e,t){return Rt.floor(e*t.value,t.decimals)};function CX(e,t){const r={};return e.forEach(n=>{t.some(function(i){return i.key===n?(r[n]=i,!0):!1})}),r}function TX(e,t,r){const{maxWidth:n,maxHeight:i,showTitle:a,showSecondary:o}=r;for(let s=0;s<t.length;s++){const u=t[s],c=u.value,h=Na(c,e.valueSectionHeight),f=Na(c,e.indicatorMargin),p=Math.ceil(f*1.5);let g=c+h+p;if(a){const b=Na(c,e.titleSectionHeight);g+=b}if(o){const b=Na(c,e.secSectionHeight);g+=b}if(g<=i){const b=Na(c,e.gaugeWidth),v=Na(c,e.bracketWidth),w=f*2;if(b+v*2+w<=n)return $(T({},u),{maxWidth:n-w,maxHeight:i-p})}}return null}class MX{getBaseMeasure(t,r,n){const i=r,a="gaugeHeights"in i?i.gaugeHeights:void 0;if(!a)return null;const o=i.relativeSizes,s=i.measureKeys.concat(),u=Math.floor(n.clientWidth),c=Math.floor(n.clientHeight),h=CX(s,o);return TX(h,a,{maxWidth:u,maxHeight:c,showTitle:t.showTitle,showSecondary:t.showSecondary})}render(t,r,n,i){const a=t.getContext("2d");let o=0,s;n.gaugeHeight=i.value,n.size=i.size,n.maxWidth=i.maxWidth,n.maxHeight=i.maxHeight,n.offsetY=0,s=n.gaugeHeight+n.valueSectionHeight,r.showTitle&&(n.fitTitleMeasure=this.getFitTitleMeasure(a,r,n),s+=n.titleSectionHeight),n.fitValueMeasure=this.getFitValueMeasure(a,r,n),r.showSecondary&&(n.fitSecondaryMeasure=this.getFitSecondaryMeasure(a,r,n),s+=n.secSectionHeight),o=this.getCanvasWidth(r,n),n.width=o,n.height=s,Rt.setCanvasSizes(t,a,o,s),this.draw(a,r,n)}getFitTitleMeasure(t,r,n){const i=n.bracketWidth*2+n.titleHorizontalMargin*2,a=n.maxWidth-i,o=Rt.getFitStringMeasure(t,r.title.text,a,n.titleFont);return o.width+=i,o.key="title",o}getFitValueMeasure(t,r,n){const i=n.bracketThickness*2,a=n.maxWidth-i,o=Rt.getFitStringMeasure(t,r.value.text,a,n.valueFont);return o.width+=i,o.key="value",o}getFitSecondaryMeasure(t,r,n){const i=n.bracketWidth*2+n.secDividerWidth,a=n.maxWidth-i,o=a-n.secTitleMinWidth,s=Rt.getFitStringMeasure(t,r.secondary.text,o,n.secondaryValueFont),u=a-s.width,c=Rt.getFitStringMeasure(t,r.secondaryTitle.text,u,n.secondaryTitleFont);return{width:c.width+s.width+i,titleString:c.string,valueString:s.string,key:"secondary"}}getCanvasWidth(t,r){let n=r.gaugeWidth+r.bracketWidth*2;const i=r.fitTitleMeasure,a=r.fitValueMeasure;let s=i&&i.width>a.width?i:a;const u=r.fitSecondaryMeasure,c=u&&u.width>s.width;let h;return s=c?u:s,c?h=s.titleString!==t.secondaryTitle.text||s.valueString!==t.secondary.text:h=s.string!==t[s.key].text,h?n=r.maxWidth:s.width>n&&(n=s.width),n}draw(t,r,n){this.clearCanvas(t,n),r.showTitle&&this.drawTitle(t,n),this.drawGauge(t,r,n),this.drawValue(t,r,n),r.showSecondary&&this.drawSecondary(t,n),this.drawBrackets(t,r,n)}clearCanvas(t,r){t.fillStyle=r.backgroundColor,t.fillRect(0,0,r.width,r.height)}drawTitle(t,r){t.font=r.titleFont,t.fillStyle=r.titleColor,t.textAlign="center",t.textBaseline="middle",t.fillText(r.fitTitleMeasure.string,r.width/2,(r.titleSectionHeight-r.titleBottomMargin)/2),r.offsetY+=r.titleSectionHeight}drawGauge(t,r,n){n.gaugeCenterX=n.width/2,n.gaugeCenterY=n.offsetY+n.gaugeHeight-n.gaugeBottomMargin,n.needleAngle=this.getNeedleAngle(r,n),r.skin===2&&r.conditions&&r.conditions.length?this.drawConditionalDial(t,r,n):this.drawSimpleDial(t,r,n),r.showTicks&&n.size!=="micro"&&this.drawTicks(t,r,n),this.drawNeedle(t,n),r.showLabels&&n.size!=="micro"&&this.drawLabels(t,r,n),n.offsetY+=n.gaugeHeight}drawValue(t,r,n){t.fillStyle=n.valueColor,t.fillRect(1,n.offsetY,n.width-n.bracketThickness*2,n.valueSectionHeight),t.font=n.valueFont,t.fillStyle="white",t.textAlign="center",t.textBaseline="middle",t.fillText(n.fitValueMeasure.string,n.width/2,n.offsetY+n.valueSectionHeight/2)}drawSecondary(t,r){const n=r.height-r.secBottomMargin;t.font=r.secondaryTitleFont,t.fillStyle=r.secondaryTitleColor,t.textAlign="left",t.textBaseline="bottom",t.fillText(r.fitSecondaryMeasure.titleString,r.bracketWidth,n),t.font=r.secondaryValueFont,t.fillStyle=r.secondaryValueColor,t.textAlign="right",t.textBaseline="bottom",t.fillText(r.fitSecondaryMeasure.valueString,r.width-r.bracketWidth,n)}drawBrackets(t,r,n){const i=r.showTitle?(n.titleSectionHeight-n.titleBottomMargin)/2:0;t.strokeStyle=n.bracketColor,t.beginPath(),t.moveTo(n.bracketWidth+.5,i+.5),t.lineTo(.5,i+.5),t.lineTo(.5,n.height-.5),r.showSecondary&&t.lineTo(n.bracketWidth+.5,n.height-.5),t.stroke(),t.moveTo(n.width-(n.bracketWidth+.5),i+.5),t.lineTo(n.width-.5,i+.5),t.lineTo(n.width-.5,n.height-.5),r.showSecondary&&t.lineTo(n.width-(n.bracketWidth+.5),n.height-.5),t.stroke(),t.closePath()}getNeedleAngle(t,r){const n=+t.min.data,i=+t.max.data,a=+(t.value.data||0);return a<n?r.startAngle-r.overDegrees:a>i?r.endAngle+r.overDegrees:this.getAngle(r,a,n,i)}getAngle(t,r,n,i){const a=(t.endAngle-t.startAngle)/(i-n);return(r-n)*a+t.startAngle}drawConditionalDial(t,r,n){const i=r.conditions,a=+r.min.data,o=+r.max.data,s=Rt.degToRad(n.startAngle+180),u=Rt.degToRad(n.endAngle+180);let c;const h=f=>this.getAngle(n,f,a,o);for(this.drawArc(t,n,s,u,n.defaultDialColor),c=i.length-1;c>=0;c--){const f=i[c];let p=+f.data,g,b=NaN,v=NaN,w=NaN,C=NaN;const M=.25;switch(f.operator){case"<":if(p<=a)break;p=p>o?o:p,g=h(p),b=s,v=Rt.degToRad(g+180);break;case">":if(p>=o)break;p=p<a?a:p,g=h(p),b=Rt.degToRad(g+180),v=u;break;case"≤":if(p<a)break;p=p>o?o:p,g=h(p),b=s,v=Rt.degToRad(g+(g+M<=n.endAngle?M:0)+180);break;case"≥":if(p>o)break;p=p<a?a:p,g=h(p),b=Rt.degToRad(g-(g-M>=n.startAngle?M:0)+180),v=u;break;case"=":if(p<a||p>o)break;g=h(p),b=Rt.degToRad(g-(g-M>=n.startAngle?M:0)+180),v=Rt.degToRad(g+(g+M<=n.endAngle?M:0)+180);break;case"≠":if(p<a||p>o)b=s,v=u;else if(p===a||p===o){const E=p===a;b=Rt.degToRad(n.startAngle+(E?M:0)+180),v=Rt.degToRad(n.endAngle-(E?0:M)+180)}else g=h(p),b=s,v=Rt.degToRad(g-(g-M>=n.startAngle?M:0)+180),w=Rt.degToRad(g+(g+M<=n.endAngle?M:0)+180),C=u}!isNaN(b)&&!isNaN(v)&&this.drawArc(t,n,b,v,f.color),!isNaN(w)&&!isNaN(C)&&this.drawArc(t,n,w,C,f.color)}}drawSimpleDial(t,r,n){const i=Rt.degToRad(n.startAngle+180),a=Rt.degToRad(n.needleAngle+180),o=Rt.degToRad(n.endAngle+180);n.needleAngle>n.startAngle&&n.needleAngle<n.endAngle?(this.drawArc(t,n,i,a,n.valueColor),t.globalAlpha=n.gaugeOpacity,this.drawArc(t,n,a,o,n.valueColor)):(n.needleAngle<=n.startAngle&&(t.globalAlpha=n.gaugeOpacity),this.drawArc(t,n,i,o,n.valueColor)),t.globalAlpha=1}drawArc(t,r,n,i,a){t.fillStyle=a,t.beginPath(),t.arc(r.gaugeCenterX,r.gaugeCenterY,r.outerArcRadius,n,i),t.arc(r.gaugeCenterX,r.gaugeCenterY,r.innerArcRadius,i,n,!0),t.fill()}drawTicks(t,r,n){const i=n.startAngle,a=n.endAngle,o=n.tickDegreesIncrement,s=n.needleAngle;let u;for(u=i;u<=a;u+=o){const c=Rt.degToRad(u),h=n.gaugeCenterX-n.lengthToTick*Math.cos(c),f=n.gaugeCenterY-n.lengthToTick*Math.sin(c),p=s<i,g=s>=u-o/2&&s<u+o/2,b=u===a&&s>=u;t.fillStyle=!p&&g||b?r.color:n.tickColor,t.beginPath(),t.arc(h,f,n.tickRadius,0,2*Math.PI),t.fill()}}drawNeedle(t,r){const n=Rt.degToRad(r.needleAngle);t.fillStyle=r.needleColor,t.save(),t.translate(r.gaugeCenterX,r.gaugeCenterY),t.rotate(n),t.translate(-r.gaugeCenterX,-r.gaugeCenterY),t.beginPath(),t.arc(r.gaugeCenterX,r.gaugeCenterY,r.needleBaseRadius,.5*Math.PI,1.5*Math.PI,!0),t.lineTo(r.gaugeCenterX-r.needleLength,r.gaugeCenterY),t.fill(),t.restore()}drawLabels(t,r,n){t.font=n.labelFont,t.fillStyle=n.labelColor,t.textAlign="right",t.textBaseline="middle",t.fillText(r.min.text,n.gaugeCenterX-n.labelMargin,n.gaugeCenterY),t.textAlign="left",t.fillText(r.max.text,n.gaugeCenterX+n.labelMargin,n.gaugeCenterY)}}const Ba=new Al,Cu=function(e,t){return Ba.floor(e*t.value,t.decimals)};function SX(e,t){const r={};return e.forEach(n=>{t.some(function(i){return i.key===n?(r[n]=i,!0):!1})}),r}function EX(e,t,r){const{showTitle:n,showSecondary:i,maxHeight:a,maxWidth:o,bracketThickness:s}=r;for(let u=0;u<t.length;u++){const c=t[u],h=c.value,f=Cu(h,e.indicatorMargin);let p=h+f;if(n){const g=Cu(h,e.titleSectionHeight);p+=g}if(i){const g=Cu(h,e.secSectionHeight);p+=g}if(p<=a){const g=Cu(h,e.numericMinWidth),b=f*2;if(g+s*2+b<=o)return $(T({},c),{maxWidth:o-b,maxHeight:a-f})}}return null}class PX{getBaseMeasure(t,r,n){const i=r,a="sizes"in i?i.sizes:[],o=i.relativeSizes,s=i.measureKeys.concat(),u=Math.floor(n.clientWidth),c=Math.floor(n.clientHeight),h=SX(s,o);return EX(h,a,{maxWidth:u,maxHeight:c,showTitle:t.showTitle,showSecondary:t.showSecondary,bracketThickness:i.bracketThickness})}render(t,r,n,i){const a=t.getContext("2d");let o;n.height=i.value,n.maxWidth=i.maxWidth,n.maxHeight=i.maxHeight,n.offsetY=0,o=n.height,r.showTitle&&(n.fitTitleMeasure=this.getFitTitleMeasure(a,r,n),o+=n.titleSectionHeight),n.fitValueMeasure=this.getFitValueMeasure(a,r,n),r.showSecondary&&(n.fitSecondaryMeasure=this.getFitSecondaryMeasure(a,r,n),o+=n.secSectionHeight);const s=this.getCanvasWidth(r,n);n.width=s,n.height=o,Ba.setCanvasSizes(t,a,s,o),this.draw(a,r,n)}getFitTitleMeasure(t,r,n){const i=n.bracketWidth*2+n.titleHorizontalMargin*2,a=n.maxWidth-i,o=Ba.getFitStringMeasure(t,r.title.text,a,n.titleFont);return o.width+=i,o.key="title",o}getFitValueMeasure(t,r,n){const i=n.bracketThickness*2,a=n.maxWidth-i,o=Ba.getFitStringMeasure(t,r.value.text,a,n.valueFont);return o.width+=i,o.key="value",o}getFitSecondaryMeasure(t,r,n){const i=n.bracketWidth*2+n.secDividerWidth,a=n.maxWidth-i,o=a-n.secTitleMinWidth,s=Ba.getFitStringMeasure(t,r.secondary.text,o,n.secondaryValueFont),u=a-s.width,c=Ba.getFitStringMeasure(t,r.secondaryTitle.text,u,n.secondaryTitleFont);return{width:c.width+s.width+i,titleString:c.string,valueString:s.string,key:"secondary"}}getCanvasWidth(t,r){let n=r.numericMinWidth+r.bracketThickness*2;const i=r.fitTitleMeasure,a=r.fitValueMeasure;let s=i&&i.width>a.width?i:a;const u=r.fitSecondaryMeasure,c=u&&u.width>s.width;let h;return s=c?u:s,c?h=s.titleString!==t.secondaryTitle.text||s.valueString!==t.secondary.text:h=s.string!==t[s.key].text,h?n=r.maxWidth:s.width>n&&(n=s.width),n}draw(t,r,n){this.clearCanvas(t,n),r.showTitle&&this.drawTitle(t,n),this.drawValue(t,r,n),r.showSecondary&&this.drawSecondary(t,n),(r.showTitle||r.showSecondary)&&this.drawBrackets(t,r,n)}clearCanvas(t,r){t.fillStyle=r.backgroundColor,t.fillRect(0,0,r.width,r.height)}drawTitle(t,r){t.font=r.titleFont,t.fillStyle=r.titleColor,t.textAlign="center",t.textBaseline="middle",t.fillText(r.fitTitleMeasure.string,r.width/2,r.titleSectionHeight/2),r.offsetY+=r.titleSectionHeight}drawValue(t,r,n){const i=n.offsetY;t.fillStyle=n.valueColor,t.fillRect(1,i,n.width-n.bracketThickness*2,n.valueSectionHeight),t.font=n.valueFont,t.fillStyle="white",t.textAlign="center",t.textBaseline="middle",t.fillText(n.fitValueMeasure.string,n.width/2,i+n.valueSectionHeight/2)}drawSecondary(t,r){const n=r.height-r.secBottomMargin;t.font=r.secondaryTitleFont,t.fillStyle=r.secondaryTitleColor,t.textAlign="left",t.textBaseline="bottom",t.fillText(r.fitSecondaryMeasure.titleString,r.bracketWidth,n),t.font=r.secondaryValueFont,t.fillStyle=r.secondaryValueColor,t.textAlign="right",t.textBaseline="bottom",t.fillText(r.fitSecondaryMeasure.valueString,r.width-r.bracketWidth,n)}drawBrackets(t,r,n){t.strokeStyle=n.bracketColor,t.beginPath(),r.showTitle?(t.moveTo(n.bracketWidth+.5,.5),t.lineTo(.5,.5)):t.moveTo(.5,.5),t.lineTo(.5,n.height-.5),r.showSecondary&&t.lineTo(n.bracketWidth+.5,n.height-.5),t.stroke(),r.showTitle?(t.moveTo(n.width-(n.bracketWidth+.5),.5),t.lineTo(n.width-.5,.5)):t.moveTo(n.width-.5,.5),t.lineTo(n.width-.5,n.height-.5),r.showSecondary&&t.lineTo(n.width-(n.bracketWidth+.5),n.height-.5),t.stroke(),t.closePath()}}const Wa=new Al,$i=function(e,t){return Wa.floor(e*t.value,t.decimals)};function AX(e,t){const r={};return e.forEach(n=>{t.some(function(i){return i.key===n?(r[n]=i,!0):!1})}),r}function RX(e,t,r){const{showTitle:n,showSecondary:i,skin:a,maxHeight:o,maxWidth:s,borderWidth:u}=r;for(let c=0;c<t.length;c++){const h=t[c],f=h.value,p=$i(f,e.valueSectionMarginBottom),b=$i(f,e.indicatorVerticalMargin)*2;let v=f+p+b;if(n&&a==="vertical"){const w=$i(f,e.titleSectionHeight);v+=w}if(i){const w=$i(f,e.secSectionHeight),C=$i(f,e.secSectionMarginTop);v+=w+C+(u||0)}if(v<=o){const w=$i(f,e.numericMinWidth),M=$i(f,e.indicatorHorizontalMargin)*2;if(w+M<=s)return $(T({},h),{maxWidth:s-M,maxHeight:o-b})}}return null}class OX{getBaseMeasure(t,r,n){const i=r,a="sizes"in i?i.sizes:[],o=i.relativeSizes,s=i.measureKeys.concat(),u=Math.floor(n.clientWidth),c=Math.floor(n.clientHeight),h=AX(s,o);return RX(h,a,{maxWidth:u,maxHeight:c,showTitle:t.showTitle,showSecondary:t.showSecondary,skin:t.skin,borderWidth:"borderWidth"in i?i.borderWidth:0})}render(t,r,n,i){const a=t.getContext("2d");let o;n.height=i.value,n.maxWidth=i.maxWidth,n.maxHeight=i.maxHeight,o=n.height,n.fitValueMeasure=this.getFitValueMeasure(a,r,n),r.showTitle&&(n.fitTitleMeasure=this.getFitTitleMeasure(a,r,n),o+=r.skin==="vertical"?n.titleSectionHeight:0),r.showSecondary&&(n.fitSecondaryMeasure=this.getFitSecondaryMeasure(a,r,n),o+=n.valueSectionMarginBottom+n.secSectionHeight+n.secSectionMarginTop+n.borderWidth);const s=this.getCanvasWidth(r,n);n.width=s,n.height=o,Wa.setCanvasSizes(t,a,s,o),this.draw(a,r,n)}getFitTitleMeasure(t,r,n){const i=r.skin==="horizontal",a=n.maxWidth-(i?n.fitValueMeasure.width+n.valueSectionMarginRight:0);if(i&&a+n.titleSectionMinWidth<=0)return;const o=Wa.getFitStringMeasure(t,r.title.text,a,n.titleFont);return o.width+=i?n.valueSectionMarginRight:0,o.key="title",o}getFitValueMeasure(t,r,n){const i=Wa.getFitStringMeasure(t,r.value.text,n.maxWidth,n.valueFont);return i.key="value",i}getFitSecondaryMeasure(t,r,n){const i=n.secDividerWidth,a=n.maxWidth-i,o=a-n.secTitleMinWidth,s=Wa.getFitStringMeasure(t,r.secondary.text,o,n.secondaryValueFont),u=a-s.width,c=Wa.getFitStringMeasure(t,r.secondaryTitle.text,u,n.secondaryTitleFont);return{width:c.width+s.width+i,titleString:c.string,valueString:s.string,key:"secondary"}}getCanvasWidth(t,r){let n;const i=r.fitTitleMeasure,a=r.fitValueMeasure,o=r.fitSecondaryMeasure;if(r.fitMeasures.some(u=>{const c=r[u.key],h=t[u.dataKey];return!!(c&&h&&c[u.prop]!==h.text)}))return r.maxWidth;if(t.skin==="vertical"){let c=i&&i.width>a.width?i:a;c=o&&o.width>c.width?o:c,n=c.width}else n=a.width,i&&(n+=i.width),o&&o.width>n&&(n=o.width);return n}draw(t,r,n){this.clearCanvas(t,n),this.drawValue(t,r,n),r.showTitle&&this.drawTitle(t,r,n),r.showSecondary&&this.drawSecondary(t,n)}clearCanvas(t,r){t.fillStyle=r.backgroundColor,t.fillRect(0,0,r.width,r.height)}drawTitle(t,r,n){!n.fitTitleMeasure||r.skin==="horizontal"&&n.fitValueMeasure.string!==r[n.fitValueMeasure.key].text||(t.font=n.titleFont,t.fillStyle=n.titleColor,r.skin==="vertical"?(t.textAlign="center",t.textBaseline="middle",t.fillText(n.fitTitleMeasure.string,n.width/2,n.titleSectionHeight/2)):(t.textAlign="left",t.textBaseline="top",t.fillText(n.fitTitleMeasure.string,n.fitValueMeasure.width+n.valueSectionMarginRight,n.titleSectionMarginTop)))}drawValue(t,r,n){const i=r.skin==="vertical";t.fillStyle=n.valueColor||r.color,t.font=n.valueFont,t.textAlign=i?"center":"left",t.textBaseline="middle",t.fillText(n.fitValueMeasure.string,i?n.width/2:0,(r.showTitle&&i?n.titleSectionHeight:0)+n.valueSectionHeight/2)}drawSecondary(t,r){let n=r.height-r.secSectionHeight/2;t.font=r.secondaryTitleFont,t.fillStyle=r.secondaryTitleColor,t.textAlign="left",t.textBaseline="middle",t.fillText(r.fitSecondaryMeasure.titleString,0,n),t.font=r.secondaryValueFont,t.fillStyle=r.secondaryValueColor,t.textAlign="right",t.fillText(r.fitSecondaryMeasure.valueString,r.width,n),t.strokeStyle=r.borderColor,t.beginPath(),n=r.height-r.secSectionHeight-r.secSectionMarginTop-r.borderWidth,t.moveTo(0,n),t.lineTo(r.width,n),t.stroke()}}const bn=new Al;class kX{render(t,r,n,i){const a=t.getContext("2d"),o=Math.floor(i.clientWidth)-n.horizontalMargin*2,s=n.sectionMinWidth;let u=0,c=0,h=0,f=0,p=0,g=0,b=0,v=0,w;if(a.font=n.valueFont,w=bn.getStringWidth(a,r.value.text),n.offsetX=0,r.title.text+=":",r.secondaryTitle&&(r.secondaryTitle.text+=":"),r.showTitle&&(a.font=n.titleFont,g=bn.getStringWidth(a,r.value.text),p=bn.getStringWidth(a,r.title.text),c=p<s?p:s,w+=c+n.textPadding),r.showSecondary&&(a.font=n.secondaryValueFont,v=bn.getStringWidth(a,r.secondary.text),f=v<s?v:s,w+=f,a.font=n.secondaryTitleFont||"",b=bn.getStringWidth(a,r.secondaryTitle.text),h=b<s?b:s,w+=h+n.horizontalPadding*2+n.dividerWidth+n.textPadding),r.type==="gauge"){const M=n.horizontalPadding*2+n.dividerWidth;if(n.forceTickerView){const S=g+p+b+v+n.textPadding*4+M,P=o-M-S;n.barWidth=Math.max(P,n.barWidth)}const E=n.barWidth+M;w+=E,n.showTickerBar=w<=o||!0,u+=n.showTickerBar?E:0}u+=r.showTitle?n.textPadding:0,u+=r.showSecondary?n.horizontalPadding*2+n.dividerWidth+n.textPadding:0;const C=o-u-c-h-f;if(n.fitValueMeasure=bn.getFitStringMeasure(a,r.value.text,C,n.valueFont),u+=n.fitValueMeasure.width,r.showSecondary){const M=o-u-c-h;let E;n.fitSecValueMeasure=bn.getFitStringMeasure(a,r.secondary.text,M,n.secondaryValueFont),u+=n.fitSecValueMeasure.width;const S=o-u,P=S/2;r.showTitle?p+b>S?p>P&&b>P?E=P:b>P&&p<=P?E=S-p:E=b:E=b:E=S,n.fitSecTitleMeasure=bn.getFitStringMeasure(a,r.secondaryTitle.text,E,n.secondaryTitleFont),u+=n.fitSecTitleMeasure.width}if(r.showTitle){const M=o-u;n.fitTitleMeasure=bn.getFitStringMeasure(a,r.title.text,M,n.titleFont),u+=n.fitTitleMeasure.width}n.width=u,bn.setCanvasSizes(t,a,u,n.height),this.draw(a,r,n)}draw(t,r,n){this.clearCanvas(t,n),r.type==="gauge"&&n.showTickerBar&&(this.drawTickerBar(t,r,n),this.drawDivider(t,n)),t.textBaseline="middle",r.showTitle&&this.drawTitle(t,n),this.drawValue(t,r,n),r.showSecondary&&(this.drawDivider(t,n),this.drawSecondary(t,n))}clearCanvas(t,r){t.fillStyle=r.backgroundColor,t.fillRect(0,0,r.width,r.height)}drawTickerBar(t,r,n){var c;const i=+r.min.data,a=+r.max.data,o=+(((c=r.value)==null?void 0:c.data)||0),s=Math.round((n.height-n.barHeight)/2);let u;if(t.fillStyle=n.valueColor,o<=i)t.globalAlpha=n.barOpacity,t.fillRect(n.offsetX,s,n.barWidth,n.barHeight),u=0;else if(o>=a)t.fillRect(n.offsetX,s,n.barWidth,n.barHeight),u=n.barWidth-n.tickerBarWidth;else{const h=(o-Math.abs(i))/(a-i),f=n.barWidth*h;t.fillRect(n.offsetX,s,f,n.barHeight),t.globalAlpha=n.barOpacity,t.fillRect(n.offsetX+f,s,n.barWidth-f,n.barHeight),f>n.barWidth-n.tickerBarWidth?u=n.barWidth-n.tickerBarWidth:f<n.tickerBarWidth?u=0:u=f-1}t.globalAlpha=1,t.fillStyle=n.barHandleColor,t.fillRect(n.offsetX+u,Math.round((n.height-n.tickerBarHeight)/2),n.tickerBarWidth,n.tickerBarHeight),n.offsetX+=n.barWidth}drawDivider(t,r){t.fillStyle=r.dividerColor,t.fillRect(r.offsetX+r.horizontalPadding,Math.round((r.height-r.dividerHeight)/2),r.dividerWidth,r.dividerHeight),r.offsetX+=r.horizontalPadding*2+r.dividerWidth}drawTitle(t,r){t.font=r.titleFont,t.fillStyle=r.titleColor,t.fillText(r.fitTitleMeasure.string,r.offsetX,Math.floor(r.height/2)),r.offsetX+=r.fitTitleMeasure.width+r.textPadding}drawValue(t,r,n){t.font=n.valueFont,t.fillStyle=n.valueColor||r.color,t.fillText(n.fitValueMeasure.string,n.offsetX,Math.floor(n.height/2)),n.offsetX+=n.fitValueMeasure.width}drawSecondary(t,r){t.font=r.secondaryTitleFont,t.fillStyle=r.secondaryTitleColor,t.fillText(r.fitSecTitleMeasure.string,r.offsetX,Math.floor(r.height/2)),r.offsetX+=r.fitSecTitleMeasure.width+r.textPadding,t.font=r.secondaryValueFont,t.fillStyle=r.secondaryValueColor,t.fillText(r.fitSecValueMeasure.string,r.offsetX,Math.floor(r.height/2))}}const DX=new Al,NX=new OX,LX=new PX,IX=new MX,$X=new kX;class FX{getService(t){switch(t){case"numericSimple":return NX;case"numericBar":return LX;case"gauge":return IX;case"ticker":return $X}}render(t,r,n,i){let a=this.getService(r.type);const o="getBaseMeasure"in a?a.getBaseMeasure(r,n,i):void 0;if(!o||n.forceTickerView){a=this.getService("ticker");const s=xX(t,n);this.setTextOptions(s),a.render(t,r,s,i);return}this.calculateRelativeSizes(r,n,o.value),this.setTextOptions(n,o.size),a.render(t,r,n,o)}calculateRelativeSizes(t,r,n){const{relativeSizes:i}=r;i.forEach(function(a){let o;if("dataKey"in a&&"values"in a&&a.dataKey in t)o=a.values[t[a.dataKey]];else if("value"in a)o=a.value;else throw new I.TranslatableError("errors.indicatorInvalidRelativeSize");const s=o*n;r[a.key]=DX.floor(s,a.decimals)})}setTextOptions(t,r){t.textKeys.forEach(function(n){const i=t[n],a=i.fontStyle?`${i.fontStyle} `:"",o=i.fontVariant?`${i.fontVariant} `:"",s=i.fontWeight?`${i.fontWeight} `:"",u=`${Number.parseFloat(i.fontSizes&&i.fontSizes[r]||i.fontSize||t.fontSize)}px `,c=i.fontFamily||t.fontFamily,{color:h}=i;t[`${n}Font`]=a+o+s+u+c,t[`${n}Color`]=h})}}function iT(e){var r;const t=(r=e.value)==null?void 0:r[0];if(t&&"color"in t)return t.color}function zX(e,t,r){if(!BX(e))return r;const i=_.getColoringServiceByColorOptions(e).getColor(t);return i?$(T({},r),{value:$(T({},r.value),{color:i})}):r}function BX(e){return typeof e=="string"||e.type==="uniform"||e.type==="conditional"}const WX=(e,t)=>{const r=iT(t);return r&&e.value?_.getColoringServiceByColorOptions(r).getColor(_.isNumber(e.value)?e.value:0):null},HX=(e,t,r)=>{var f,p,g,b,v,w,C,M,E,S,P,R;const n=_.isNumber(e.min)?e.min:0,i=_.isNumber(e.max)?e.max:100,a=Tu(r,"value"),o=Tu(r,"secondary"),s=Tu(r,"min"),u=Tu(r,"max"),c=WX(e,r),h=t.indicatorType==="gauge"?1:"vertical";return $(T(T({},VX),c?{color:c}:null),{type:jX(t.indicatorType,"numericSubtype"in t?t.numericSubtype:void 0)||"numericSimple",skin:t.skin||h,title:{text:(g=(p=(f=t.indicatorComponents)==null?void 0:f.title)==null?void 0:p.text)!=null?g:""},min:{data:n,text:_.applyFormatPlainText(s,n)},max:{data:i,text:_.applyFormatPlainText(u,i)},value:{data:e.value,text:rb(e.value,a)},secondary:{data:e.secondary,text:rb(e.secondary,o)},secondaryTitle:{text:(w=(v=(b=t.indicatorComponents)==null?void 0:b.secondaryTitle)==null?void 0:v.text)!=null?w:""},showSecondary:e.secondary!==void 0,showTitle:!!((M=(C=t.indicatorComponents)==null?void 0:C.title)!=null&&M.shouldBeShown),showLabels:!!((S=(E=t.indicatorComponents)==null?void 0:E.labels)!=null&&S.shouldBeShown),showTicks:!!((R=(P=t.indicatorComponents)==null?void 0:P.ticks)!=null&&R.shouldBeShown)})};function jX(e,t){return e==="numeric"?t:e}function Tu(e,t){var n;const r=(n=e[t])==null?void 0:n[0];return _.getCompleteNumberFormatConfig(r&&"numberFormatConfig"in r?r.numberFormatConfig:{})}const VX={color:"#00cee6",showSecondary:!1};function rb(e,t){return e===void 0?"":isNaN(e)?`#${_.NOT_AVAILABLE_TEXT}`:_.applyFormatPlainText(t,e)}const GX={fontFamily:"typography.fontFamily","title.color":"chart.textColor",backgroundColor:"chart.backgroundColor","label.color":"chart.textColor","secondaryTitle.color":"chart.secondaryTextColor","secondaryValue.color":"chart.secondaryTextColor","value.color":"palette.variantColors.0"};function Xp(e,t,r){const n=I.cloneDeep(r);for(const i in t){const a=t[i],o=UX(e,a);o&&aT(n,i,o)}return n}function aT(e,t,r){const n=t.split(".");if(n.length===1)if(n[0]in e)e[n[0]]=r;else return;else{const[i,...a]=n;if(!(i in e))return;const o=e[i];if(!oT(o))return;aT(o,a.join("."),r)}}function UX(e,t){const r=t.split(".");let n=e;for(const i of r){if(!oT(n)||!(i in n))return;n=n[i]}return n}function oT(e){return typeof e=="object"&&e!==null}function YX(e,t,r){return Xp(e,t,r)}const qX=(e,t)=>{const{chartData:r,dataOptions:n,themeSettings:i}=t,{type:a}=e;let o;switch(a){case"gauge":o=_X;break;case"numeric":e.numericSubtype==="numericBar"?o=bX:o=tb;break;default:o=tb}i&&(o=YX(i,GX,o));const s=iT(n);return s&&r.value&&_.isNumber(r.value)&&(o=zX(s,r.value,o)),T($(T({},o),{forceTickerView:e.forceTickerView}),e.type==="gauge"&&e.tickerBarHeight?{tickerBarHeight:e.tickerBarHeight}:null)};function XX(e,t,r){return e==null?e:Uw(e,t,r)}const sT={"value.data":"value.data","value.text":"value.text","secondary.data":"secondary.data","secondary.text":"secondary.text","title.text":"title.text","secondaryTitle.text":"secondaryTitle.text"},lT={"value.color":"value.color","secondaryValue.color":"secondary.color","secondaryValue.fontWeight":"secondary.fontWeight","title.color":"title.color","secondaryTitle.color":"secondaryTitle.color"};function ZX(e,t){const r={};return _.flow(nb(e,sT),nb(t,lT))(r)}function nb(e,t){return r=>{const n=T({},r);for(const[i,a]of Object.entries(t))XX(n,a,I.get(e,i));return n}}const KX=(e,t,r)=>{const n=Xp(e,sT,t),i=Xp(e,lT,r);return{legacyDataOptions:n,legacyChartOptions:i}},QX=e=>e,JX=(e,t)=>{var i;const r={},n=(a,o)=>{if(a===void 0)return;const s=_.getCompleteNumberFormatConfig(o);return _.applyFormatPlainText(s,a)};return t.value&&t.value.length>0&&(r.value=$(T({},Ge(t.value[0])),{value:(i=e.value)!=null?i:0,displayValue:n(e.value,t.value[0])})),t.secondary&&t.secondary.length>0&&e.secondary!==void 0&&(r.secondary=$(T({},Ge(t.secondary[0])),{value:e.secondary,displayValue:n(e.secondary,t.secondary[0])})),t.min&&t.min.length>0&&e.min!==void 0&&(r.min=$(T({},Ge(t.min[0])),{value:e.min,displayValue:n(e.min,t.min[0])})),t.max&&t.max.length>0&&e.max!==void 0&&(r.max=$(T({},Ge(t.max[0])),{value:e.max,displayValue:n(e.max,t.max[0])})),{entries:r}},eZ=({chartData:e,dataOptions:t,designOptions:r,onBeforeRender:n=QX,onDataPointClick:i})=>{var c;const a=k.useRef(null),o=k.useRef(null),{themeSettings:s}=it();k.useEffect(()=>{if(!o.current||!a.current)return;const h=new FX,f=HX(e,r,t),p=qX({type:r.indicatorType,numericSubtype:"numericSubtype"in r?r.numericSubtype:void 0,forceTickerView:r.forceTickerView,tickerBarHeight:r.tickerBarHeight},{chartData:e,dataOptions:t,themeSettings:s}),g=ZX(f,p),b=n(g),{legacyDataOptions:v,legacyChartOptions:w}=KX(b,f,p);h.render(o.current,v,w,a.current)},[e,t,r,s,n]);const u=h=>{if(i){const f=JX(e,t);i(f,h.nativeEvent)}};return _.jsx("div",{ref:a,style:{display:"flex",justifyContent:"center",width:"100%",height:"100%",alignItems:"center",backgroundColor:(c=s==null?void 0:s.chart)==null?void 0:c.backgroundColor,cursor:i?"pointer":"default"},"aria-label":"indicator-root",onClick:u,children:_.jsx("canvas",{ref:o})})},tZ=e=>e.type==="indicator",rZ=e=>"min"in e,nZ=e=>"indicatorComponents"in e,iZ=e=>!!e.chartData&&tZ(e.chartData)&&rZ(e.dataOptions)&&nZ(e.designOptions),aZ=Object.freeze({usa:"united states",switzerland:"switzerland country",uk:"united kingdom"});function oZ(e,t){const r=aZ[e.toLowerCase()];return r&&(t[r]=e),r||e}function sZ(e,t){return t[e.toLowerCase()]||e}const lZ=(e,t)=>{const{app:r}=wt(),[n,i]=k.useState([]),a=k.useRef(e),o=k.useCallback(()=>Yt(exports,null,function*(){if(!r||!e)return;const s={},u=Jq(t),c=yield r.httpClient.post("api/v1/geo/locations",T({locations:e.map(b=>({name:oZ(b.name,s)}))},u&&{geoLevel:u})),h=a.current!==e;if(!c||h)return;const f=c.reduce((b,v)=>{const w=$(T({},v),{name:sZ(v.name,s)});return b[w.name]=w,b},{}),p=[],g=e.map(b=>(f[b.name]||p.push(b.name),T(T({},b),f[b.name]?{coordinates:f[b.name].latLng}:null)));p.length&&console.warn(`Locations "${p.join(", ")}" coordinates not found`),i(g)}),[r,i,e,t]);return k.useEffect(()=>{e&&(a.current=e,e.some(u=>!!u.coordinates)?i(e):o())},[e,r,o,i]),n},uZ=()=>{const{app:e}=wt(),[t,r]=k.useState(null),n=k.useCallback(()=>Yt(exports,null,function*(){if(!e)return;const i=yield e.httpClient.get("api/v1/settings/system");i&&r(i.geo)}),[r,e]);return k.useEffect(()=>{n()},[e,n]),t};var cZ="Expected a function";function dZ(e,t,r){if(typeof e!="function")throw new TypeError(cZ);return setTimeout(function(){e.apply(void 0,r)},t)}var hZ=I.baseRest(function(e,t,r){return dZ(e,_.toNumber(t)||0,r)}),Gu=(e=>(e[e.YES=0]="YES",e[e.NO=1]="NO",e[e.LOADING=2]="LOADING",e))(Gu||{});const uf=10,fZ=`
290
+ <svg
291
+ xmlns="http://www.w3.org/2000/svg"
292
+ width="24"
293
+ height="24"
294
+ viewBox="0 0 24 24"
295
+ fill="green"
296
+ class="csdk-animate-spin"
297
+ >
298
+ <path
299
+ fillRule="evenodd"
300
+ clipRule="evenodd"
301
+ d="M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z"
302
+ fill="transparent"
303
+ fillOpacity="0.3"
304
+ />
305
+ <path
306
+ fillRule="evenodd"
307
+ clipRule="evenodd"
308
+ d="M20 12C20 16.4183 16.4183 20 12 20C11.2844 20 10.5908 19.906 9.93078 19.7298C9.96227 19.5889 9.97888 19.4423 9.97888 19.2918C9.97888 18.1873 9.08345 17.2918 7.97888 17.2918C6.87431 17.2918 5.97888 18.1873 5.97888 19.2918C5.97888 20.3964 6.87431 21.2918 7.97888 21.2918C8.56576 21.2918 9.0936 21.0391 9.45946 20.6364C10.2652 20.8731 11.1178 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3V4C16.4183 4 20 7.58172 20 12Z"
309
+ fill="#22C3C3"
310
+ />
311
+ </svg>
312
+ `,Yn=e=>`<span class="csdk-scattermap-tooltip-label">${e}</span>`,pZ=e=>{const t=`
313
+ <div>
314
+ <div>${Yn("...")}</div>
315
+ <div>${Yn(`Showing first ${uf} results`)}</div>
316
+ </div>
317
+ `;return`
318
+ <div>
319
+ ${e.slice(0,uf).map(r=>`<div>${Yn(r)}</div>`).join("")}
320
+ ${e.length>uf?t:""}
321
+ </div>
322
+ `},cf=e=>`
323
+ <span class="csdk-scattermap-tooltip-category">
324
+ ${Yn(e)}
325
+ </span>
326
+ `,mZ=()=>Yn(fZ),Mu=(e,t,r=1)=>{const n=_.formatTooltipValue(t.size,e.value,`${e.value}`),i=_.formatTooltipValue(t.colorBy,e.colorValue,`${e.colorValue}`),a=t.details&&_.formatTooltipValue(t.details,e.details,`${e.details}`);return`
327
+ <div class="csdk-scattermap-tooltip-container">
328
+ <div class="csdk-scattermap-tooltip-content">
329
+ <div>${Yn(e.name)}</div>
330
+ <div class="csdk-scattermap-tooltip-row">
331
+ ${t.size?cf(_.getDataOptionTitle(t.size)):""}
332
+ ${t.size?Yn(n):""}
333
+ </div>
334
+ <div class="csdk-scattermap-tooltip-row">
335
+ ${t.colorBy?cf(_.getDataOptionTitle(t.colorBy)):""}
336
+ ${t.colorBy?Yn(i||_.NOT_AVAILABLE_TEXT):""}
337
+ </div>
338
+ <div class="csdk-scattermap-tooltip-row">
339
+ ${(r===2||r===0)&&t.details?cf(_.getDataOptionTitle(t.details)):""}
340
+ ${r===2?mZ():""}
341
+ ${r===0&&t.details&&_.isMeasureColumn(t.details)?Yn(a||_.NOT_AVAILABLE_TEXT):""}
342
+ </div>
343
+ <div>
344
+ ${r===0&&t.details&&!_.isMeasureColumn(t.details)?pZ(e.details):""}
345
+ </div>
346
+ </div>
347
+ </div>
348
+ `},gZ=600,vZ=11,yZ=({dataOptions:e,dataSource:t,filters:r=[]})=>{const{app:n}=wt(),i=k.useCallback(o=>Yt(exports,null,function*(){if(!n||!e.details||_.isMeasureColumn(e.details))return[];const s=e.locations.map((h,f)=>{const p=_.translateColumnToAttribute(h),g=Qq(o)[f];return I.members(p,[g])}),u={dataSource:t,dimensions:[_.translateColumnToAttribute(e.details)],filters:I.mergeFilters(r,s),count:vZ};return(yield I.executeQuery(u,n)).rows.map(([h])=>h.text)}),[n,e,t,r]);return k.useCallback(o=>{if(!e.details||e.details&&!_.isMeasureColumn(e.details)&&!t)return{content:Mu(o,e)};if(_.isMeasureColumn(e.details))return{content:Mu(o,e,Gu.YES)};const s=new Promise(c=>hZ(c,gZ)),u=Promise.all([i(o.name),s]).then(([c])=>Mu($(T({},o),{details:c}),e,Gu.YES));return{content:Mu(o,e,Gu.LOADING),postponedContent:u}},[e,t,i])},bZ="#00cee6",_Z=_.createDataColoringFunction({getValueFromDataStructure:({colorValue:e})=>parseFloat(`${e}`),applyColorToDataStructure:(e,t)=>$(T({},e),{color:t})});function wZ(e,t){return t?_Z(e.map(({colorValue:r})=>({colorValue:r})),t).map(({color:r})=>r):e.map(()=>bZ)}function xZ(e,t){const r=`
349
+ © <a href='https://www.mapbox.com/about/maps/'>Mapbox</a>
350
+ © <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>
351
+ <strong>
352
+ <a href='https://www.mapbox.com/map-feedback/' target='_blank' aria-label='Improve this map (opens in a new tab)'>
353
+ Improve this map
354
+ </a>
355
+ </strong>`,n="© <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>",i=qn.control.attribution();return t.indexOf("mapbox")>-1?i.addAttribution(r).addTo(e):t.indexOf("openstreetmap")>-1&&i.addAttribution(n).addTo(e),i}function uT(e){return{isLight:["hollow","filled-light"].includes(e),isFilled:["filled","filled-light"].includes(e)}}function cT(e){const{color:t,size:r,fill:n,blur:i}=e,{isFilled:a}=uT(n),u=i?{filled:.1,"filled-light":.1,hollow:.2,"hollow-bold":.25}[n]:{filled:.5,"filled-light":.2,hollow:.35,"hollow-bold":.9}[n];return{radius:r,fillOpacity:u,opacity:u,fillColor:a?t:"transparent",color:a?"transparent":t,stroke:!a,weight:a?0:2,customStyle:e}}function CZ({coordinates:e,style:t}){const r=new qn.CircleMarker({lat:e.lat,lng:e.lng},cT(t));return r.on("mouseover",TZ),r.on("mouseout",MZ),r}function TZ(e){const t=e.target,r=t.options.customStyle,{isFilled:n,isLight:i}=uT(r.fill);return t.setStyle(n?{stroke:!0,weight:2,opacity:i?.5:.7,fillOpacity:i?.5:.7}:{weight:3,opacity:i?.6:1}),t}function MZ(e){const t=e.target,r=t.options.customStyle;t.setStyle(cT(r))}function SZ(e){e.forEach(t=>t.remove())}function EZ(e){let t=Number.MAX_VALUE,r=Number.MIN_VALUE;return e.forEach(n=>{isNaN(n)||(t=Math.min(t,n),r=Math.max(r,n))}),{min:t,max:r}}function PZ(e,t=4,r=24){let n=0;const{min:i,max:a}=EZ(e.map(({value:s})=>s)),o=r-t;return n=a-i,e.map(s=>n===0?t:(s.value-i)/n*o+t)}const AZ=({chartData:e,dataOptions:t,dataSource:r,filters:n=[],designOptions:i,onDataPointClick:a})=>{const{locations:o}=e,s=uZ(),{themeSettings:u}=it(),c=lZ(o,t.locationLevel),{filters:h}=I.getFilterListAndRelationsJaql(n),f=yZ({dataOptions:t,dataSource:r,filters:h}),p=k.useRef(null),g=k.useRef(null),b=k.useMemo(()=>PZ(c,t.size?i.markers.size.minSize:i.markers.size.defaultSize,t.size?i.markers.size.maxSize:i.markers.size.defaultSize),[c,t,i]),v=k.useMemo(()=>{var S;return wZ(c,(S=t.colorBy)==null?void 0:S.color)},[c,t]),w=k.useRef([]),C=k.useRef(qn.layerGroup([])),M=k.useRef(null),E=k.useRef(null);return k.useEffect(()=>{p.current&&!g.current&&(g.current=qn.map(p.current,{attributionControl:!1,scrollWheelZoom:!0,minZoom:1,worldCopyJump:!0}),C.current.addTo(g.current),g.current.fitWorld())},[]),k.useEffect(()=>{w.current&&(SZ(w.current),w.current=[]),c&&(c.forEach((S,P)=>{if(!S.coordinates)return;const R=CZ({coordinates:S.coordinates,style:{color:v[P],size:b[P],fill:i.markers.fill,blur:!!S.blur}});w.current.push(R),R.addTo(C.current),a&&R.on("click",N=>{a(eX(S,t),N.originalEvent)}),R.bindTooltip(()=>{const{content:N,postponedContent:B}=f(S);return B==null||B.then(U=>R.setTooltipContent(U)),N})}),YI(g.current,w.current,xx(u)))},[c,v,b,i,u,t,f,a]),k.useEffect(()=>{var S;s&&(M.current&&M.current.remove(),M.current=qn.tileLayer(s.maps_api_provider,{zoomOffset:-1,tileSize:512}),g.current&&(M.current.addTo(g.current),(S=E.current)==null||S.remove(),E.current=xZ(g.current,s.maps_api_provider)))},[s]),_.jsx("div",{className:"csdk-map-container",ref:p,style:{width:"100%",height:"100%"}})},dT=e=>e.type==="scattermap"&&"locations"in e,RZ=e=>"locations"in e,OZ=e=>"markers"in e,kZ=e=>!!e.chartData&&dT(e.chartData)&&RZ(e.dataOptions)&&OZ(e.designOptions),DZ=e=>e,NZ=({chartType:e,chartData:t,dataOptions:r,designOptions:n,onDataPointClick:i,onDataPointContextMenu:a,onDataPointsSelected:o,onBeforeRender:s=DZ,size:u})=>{const{app:c}=wt(),{t:h}=_.useTranslation(),f=[],p=k.useCallback((w,C)=>Tl(w,C,c==null?void 0:c.settings.locale,c==null?void 0:c.settings.dateConfig),[c==null?void 0:c.settings.locale,c==null?void 0:c.settings.dateConfig]),{themeSettings:g}=it(),b=k.useMemo(()=>{var R;const{options:w,alerts:C}=_.highchartsOptionsService(t,e,n,r,h,g,p);f.push(...C);const M=((R=c==null?void 0:c.settings.accessibilityConfig)==null?void 0:R.enabled)||!1,E=uC(w,g,M),S=lC(E,r,{onDataPointClick:i,onDataPointContextMenu:a,onDataPointsSelected:o}),P=cC(S,g);return s(P)},[e,t,r,n,g,i,a,s,h]),v=k.useMemo(()=>b?$(T({},b),{chart:T(T(T({},b.chart),(u==null?void 0:u.width)&&{width:u.width}),(u==null?void 0:u.height)&&{height:u.height})}):null,[b,u]);return v&&_.jsxs("div",{"aria-label":"chart-root",style:{display:"flex",justifyContent:"center",height:"100%",width:"100%"},children:[!!f.length&&_.jsx(EC,{alerts:f}),_.jsx(X0,{options:v})]})},LZ=[...I.CARTESIAN_CHART_TYPES,...I.CATEGORICAL_CHART_TYPES,...I.SCATTER_CHART_TYPES,...I.BOXPLOT_CHART_TYPES,...I.RANGE_CHART_TYPES],hT=e=>LZ.includes(e),IZ=e=>!!e.chartType&&hT(e.chartType)&&!!e.chartData,$Z=e=>e==="indicator",FZ=(e,t)=>e==="scatter"&&"scatterDataTable"in t?t.scatterDataTable.length===0:e==="areamap"&&Xx(t)?t.geoData.length===0:e==="scattermap"&&dT(t)?t.locations.length===0:e==="boxplot"&&TO(t)?t.xValues.length===0:e==="calendar-heatmap"&&Jx(t)?t.values.length===0:"series"in t&&t.series.length===0,Uu=e=>{const{chartType:t,dataSet:r,dataOptions:n,filters:i,highlights:a,styleOptions:o,refreshCounter:s,onDataPointClick:u,onDataPointContextMenu:c,onDataPointsSelected:h,onBeforeRender:f,onDataReady:p}=e,{width:g,height:b}=o||{},v=nd(t),w=k.useMemo(()=>({width:g,height:b}),[g,b]),C=hq(n,t),{dataOptions:M,attributes:E,measures:S,dataColumnNamesMapping:P}=gX(n,t,C),R=E.length===0&&S.length===0,N=k.useMemo(()=>xq(t,C),[t,C]),{data:B,dataOptions:U,isLoading:K}=mX({dataSet:r,chartDataOptions:M,chartType:t,attributes:E,measures:S,dataColumnNamesMapping:P,filters:i,highlights:a,refreshCounter:s,enabled:!R,loadData:N}),Q=k.useMemo(()=>n?mq(t,U,o):null,[n,t,U,o]),O=uX({dataSet:r,data:B,chartDataOptions:M,chartType:t,isForecastOrTrendChart:C,attributes:E,measures:S,dataColumnNamesMapping:P,onDataReady:p}),F=dX({dataSet:r,chartType:t,chartData:O,internalDataOptions:U,designOptions:Q,onBeforeRender:f,onDataPointClick:u,onDataPointContextMenu:c,onDataPointsSelected:h,filters:i}),q=k.useCallback(j=>{if(!F)return null;if(!O&&K)return _.jsx(mi,{});if(O&&FZ(t,O)||R)return _.jsx(k0,{iconType:t});if(Pl(t)&&!C){const W=El(t);return W.renderer.isCorrectRendererProps(F)?_.jsx(mi,{isVisible:K,children:_.jsx(W.renderer.ChartRendererComponent,$(T({},F),{size:j}))}):null}return t==="scattermap"&&kZ(F)?_.jsx(mi,{isVisible:K,children:_.jsx(AZ,T({},F))}):t==="indicator"&&iZ(F)?_.jsx(mi,{isVisible:K,children:_.jsx(eZ,T({},F))}):hT(t)&&IZ(F)?_.jsx(mi,{isVisible:K,children:_.jsx(NZ,$(T({},F),{designOptions:T({},F.designOptions),size:j}))}):null},[O,K,t,R,C,F]);return F?_.jsx(rd,{defaultSize:v,size:w,rerenderOnResize:$Z(t),children:q}):null};function fT(e){return e&&typeof e=="object"&&"columns"in e&&I.isArray(e.columns)&&"rows"in e&&I.isArray(e.rows)}const pT=e=>{const t=[],r=[];for(const n of e.columns)_.isMeasureColumn(n)?r.push(_.translateColumnToMeasure(n)):t.push(_.translateColumnToAttribute(n));return{attributes:t,measures:r}},zZ=({dataSet:e,dataOptions:t,filters:r,filterRelations:n,count:i,offset:a})=>{const o=lg(),[s,u]=k.useState(xi(e)?null:e),[c,h]=k.useState(!1),f=k.useRef(!0),{isInitialized:p,app:g}=wt(),[b,v]=k.useState(t);return k.useEffect(()=>{var E;let w=!1;if(!t)return;const{attributes:C,measures:M}=pT(t);if(xi(e)){if(!p){o(new I.TranslatableError("errors.chartNoSisenseContext"));return}if(!g||!f.current&&a>0)return;h(!0),((E=g.settings.queryCacheConfig)!=null&&E.enabled?I.executeQueryWithCache:I.executeQuery)({dataSource:e,dimensions:C,measures:M,filters:r,filterRelations:n,count:i+1,offset:a,ungroup:!0},g).then(P=>{if(w)return;f.current=P.rows.length>i;const R=f.current?P.rows.slice(0,i):P.rows;a>0?u(N=>{const B=N==null?void 0:N.rows.length,U=B?B>a?N.rows.slice(0,a):N.rows:null;return{columns:P.columns,rows:U?[...U,...R]:R}}):u({columns:P.columns,rows:R}),v(t)}).finally(()=>{h(!1)}).catch(P=>{w||o(P)})}else u(e),v(t);return()=>{w=!0}},[g,e,t,r,n,a,i,p,o]),[c?null:s,b]},BZ=({data:e,innerDataOptions:t,dataColumnNamesMapping:r,needToAggregate:n=!1})=>{const{app:i}=wt();return k.useMemo(()=>{if(!e||!t)return null;let a=_.createDataTableFromData(qp(e,t,i==null?void 0:i.settings.locale,i==null?void 0:i.settings.dateConfig));const o=t.columns.filter(u=>!_.isMeasureColumn(u)).map(_.translateColumnToAttribute),s=t.columns.filter(u=>_.isMeasureColumn(u)).map(_.translateColumnToMeasure);return rT(a,o,s,r),n&&(a=tT(a,o,s,r)),zY(t,a)},[e,t,n,r,i])};var Tr="top",Kr="bottom",Qr="right",Mr="left",cg="auto",Rl=[Tr,Kr,Qr,Mr],oo="start",Zs="end",WZ="clippingParents",mT="viewport",os="popper",HZ="reference",ib=Rl.reduce(function(e,t){return e.concat([t+"-"+oo,t+"-"+Zs])},[]),gT=[].concat(Rl,[cg]).reduce(function(e,t){return e.concat([t,t+"-"+oo,t+"-"+Zs])},[]),jZ="beforeRead",VZ="read",GZ="afterRead",UZ="beforeMain",YZ="main",qZ="afterMain",XZ="beforeWrite",ZZ="write",KZ="afterWrite",QZ=[jZ,VZ,GZ,UZ,YZ,qZ,XZ,ZZ,KZ];function Dn(e){return e?(e.nodeName||"").toLowerCase():null}function Lr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ra(e){var t=Lr(e).Element;return e instanceof t||e instanceof Element}function Zr(e){var t=Lr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function dg(e){if(typeof ShadowRoot=="undefined")return!1;var t=Lr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function JZ(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!Zr(a)||!Dn(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function eK(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],a=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=o.reduce(function(u,c){return u[c]="",u},{});!Zr(i)||!Dn(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(u){i.removeAttribute(u)}))})}}const tK={name:"applyStyles",enabled:!0,phase:"write",fn:JZ,effect:eK,requires:["computeStyles"]};function Pn(e){return e.split("-")[0]}var qi=Math.max,wc=Math.min,so=Math.round;function Zp(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function vT(){return!/^((?!chrome|android).)*safari/i.test(Zp())}function lo(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&Zr(e)&&(i=e.offsetWidth>0&&so(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&so(n.height)/e.offsetHeight||1);var o=ra(e)?Lr(e):window,s=o.visualViewport,u=!vT()&&r,c=(n.left+(u&&s?s.offsetLeft:0))/i,h=(n.top+(u&&s?s.offsetTop:0))/a,f=n.width/i,p=n.height/a;return{width:f,height:p,top:h,right:c+f,bottom:h+p,left:c,x:c,y:h}}function hg(e){var t=lo(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function yT(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&dg(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ei(e){return Lr(e).getComputedStyle(e)}function rK(e){return["table","td","th"].indexOf(Dn(e))>=0}function Ai(e){return((ra(e)?e.ownerDocument:e.document)||window.document).documentElement}function xd(e){return Dn(e)==="html"?e:e.assignedSlot||e.parentNode||(dg(e)?e.host:null)||Ai(e)}function ab(e){return!Zr(e)||ei(e).position==="fixed"?null:e.offsetParent}function nK(e){var t=/firefox/i.test(Zp()),r=/Trident/i.test(Zp());if(r&&Zr(e)){var n=ei(e);if(n.position==="fixed")return null}var i=xd(e);for(dg(i)&&(i=i.host);Zr(i)&&["html","body"].indexOf(Dn(i))<0;){var a=ei(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Ol(e){for(var t=Lr(e),r=ab(e);r&&rK(r)&&ei(r).position==="static";)r=ab(r);return r&&(Dn(r)==="html"||Dn(r)==="body"&&ei(r).position==="static")?t:r||nK(e)||t}function fg(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ds(e,t,r){return qi(e,wc(t,r))}function iK(e,t,r){var n=Ds(e,t,r);return n>r?r:n}function bT(){return{top:0,right:0,bottom:0,left:0}}function _T(e){return Object.assign({},bT(),e)}function wT(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var aK=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,_T(typeof t!="number"?t:wT(t,Rl))};function oK(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,o=r.modifiersData.popperOffsets,s=Pn(r.placement),u=fg(s),c=[Mr,Qr].indexOf(s)>=0,h=c?"height":"width";if(!(!a||!o)){var f=aK(i.padding,r),p=hg(a),g=u==="y"?Tr:Mr,b=u==="y"?Kr:Qr,v=r.rects.reference[h]+r.rects.reference[u]-o[u]-r.rects.popper[h],w=o[u]-r.rects.reference[u],C=Ol(a),M=C?u==="y"?C.clientHeight||0:C.clientWidth||0:0,E=v/2-w/2,S=f[g],P=M-p[h]-f[b],R=M/2-p[h]/2+E,N=Ds(S,R,P),B=u;r.modifiersData[n]=(t={},t[B]=N,t.centerOffset=N-R,t)}}function sK(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||yT(t.elements.popper,i)&&(t.elements.arrow=i))}const lK={name:"arrow",enabled:!0,phase:"main",fn:oK,effect:sK,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function uo(e){return e.split("-")[1]}var uK={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cK(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:so(r*i)/i||0,y:so(n*i)/i||0}}function ob(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,h=e.roundOffsets,f=e.isFixed,p=o.x,g=p===void 0?0:p,b=o.y,v=b===void 0?0:b,w=typeof h=="function"?h({x:g,y:v}):{x:g,y:v};g=w.x,v=w.y;var C=o.hasOwnProperty("x"),M=o.hasOwnProperty("y"),E=Mr,S=Tr,P=window;if(c){var R=Ol(r),N="clientHeight",B="clientWidth";if(R===Lr(r)&&(R=Ai(r),ei(R).position!=="static"&&s==="absolute"&&(N="scrollHeight",B="scrollWidth")),R=R,i===Tr||(i===Mr||i===Qr)&&a===Zs){S=Kr;var U=f&&R===P&&P.visualViewport?P.visualViewport.height:R[N];v-=U-n.height,v*=u?1:-1}if(i===Mr||(i===Tr||i===Kr)&&a===Zs){E=Qr;var K=f&&R===P&&P.visualViewport?P.visualViewport.width:R[B];g-=K-n.width,g*=u?1:-1}}var Q=Object.assign({position:s},c&&uK),O=h===!0?cK({x:g,y:v},Lr(r)):{x:g,y:v};if(g=O.x,v=O.y,u){var F;return Object.assign({},Q,(F={},F[S]=M?"0":"",F[E]=C?"0":"",F.transform=(P.devicePixelRatio||1)<=1?"translate("+g+"px, "+v+"px)":"translate3d("+g+"px, "+v+"px, 0)",F))}return Object.assign({},Q,(t={},t[S]=M?v+"px":"",t[E]=C?g+"px":"",t.transform="",t))}function dK(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,a=r.adaptive,o=a===void 0?!0:a,s=r.roundOffsets,u=s===void 0?!0:s,c={placement:Pn(t.placement),variation:uo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ob(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ob(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const hK={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:dK,data:{}};var Su={passive:!0};function fK(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=i===void 0?!0:i,o=n.resize,s=o===void 0?!0:o,u=Lr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(h){h.addEventListener("scroll",r.update,Su)}),s&&u.addEventListener("resize",r.update,Su),function(){a&&c.forEach(function(h){h.removeEventListener("scroll",r.update,Su)}),s&&u.removeEventListener("resize",r.update,Su)}}const pK={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fK,data:{}};var mK={left:"right",right:"left",bottom:"top",top:"bottom"};function Yu(e){return e.replace(/left|right|bottom|top/g,function(t){return mK[t]})}var gK={start:"end",end:"start"};function sb(e){return e.replace(/start|end/g,function(t){return gK[t]})}function pg(e){var t=Lr(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function mg(e){return lo(Ai(e)).left+pg(e).scrollLeft}function vK(e,t){var r=Lr(e),n=Ai(e),i=r.visualViewport,a=n.clientWidth,o=n.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;var c=vT();(c||!c&&t==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:s+mg(e),y:u}}function yK(e){var t,r=Ai(e),n=pg(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=qi(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=qi(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+mg(e),u=-n.scrollTop;return ei(i||r).direction==="rtl"&&(s+=qi(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:u}}function gg(e){var t=ei(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function xT(e){return["html","body","#document"].indexOf(Dn(e))>=0?e.ownerDocument.body:Zr(e)&&gg(e)?e:xT(xd(e))}function Ns(e,t){var r;t===void 0&&(t=[]);var n=xT(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=Lr(n),o=i?[a].concat(a.visualViewport||[],gg(n)?n:[]):n,s=t.concat(o);return i?s:s.concat(Ns(xd(o)))}function Kp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bK(e,t){var r=lo(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function lb(e,t,r){return t===mT?Kp(vK(e,r)):ra(t)?bK(t,r):Kp(yK(Ai(e)))}function _K(e){var t=Ns(xd(e)),r=["absolute","fixed"].indexOf(ei(e).position)>=0,n=r&&Zr(e)?Ol(e):e;return ra(n)?t.filter(function(i){return ra(i)&&yT(i,n)&&Dn(i)!=="body"}):[]}function wK(e,t,r,n){var i=t==="clippingParents"?_K(e):[].concat(t),a=[].concat(i,[r]),o=a[0],s=a.reduce(function(u,c){var h=lb(e,c,n);return u.top=qi(h.top,u.top),u.right=wc(h.right,u.right),u.bottom=wc(h.bottom,u.bottom),u.left=qi(h.left,u.left),u},lb(e,o,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function CT(e){var t=e.reference,r=e.element,n=e.placement,i=n?Pn(n):null,a=n?uo(n):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(i){case Tr:u={x:o,y:t.y-r.height};break;case Kr:u={x:o,y:t.y+t.height};break;case Qr:u={x:t.x+t.width,y:s};break;case Mr:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var c=i?fg(i):null;if(c!=null){var h=c==="y"?"height":"width";switch(a){case oo:u[c]=u[c]-(t[h]/2-r[h]/2);break;case Zs:u[c]=u[c]+(t[h]/2-r[h]/2);break}}return u}function Ks(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,a=r.strategy,o=a===void 0?e.strategy:a,s=r.boundary,u=s===void 0?WZ:s,c=r.rootBoundary,h=c===void 0?mT:c,f=r.elementContext,p=f===void 0?os:f,g=r.altBoundary,b=g===void 0?!1:g,v=r.padding,w=v===void 0?0:v,C=_T(typeof w!="number"?w:wT(w,Rl)),M=p===os?HZ:os,E=e.rects.popper,S=e.elements[b?M:p],P=wK(ra(S)?S:S.contextElement||Ai(e.elements.popper),u,h,o),R=lo(e.elements.reference),N=CT({reference:R,element:E,strategy:"absolute",placement:i}),B=Kp(Object.assign({},E,N)),U=p===os?B:R,K={top:P.top-U.top+C.top,bottom:U.bottom-P.bottom+C.bottom,left:P.left-U.left+C.left,right:U.right-P.right+C.right},Q=e.modifiersData.offset;if(p===os&&Q){var O=Q[i];Object.keys(K).forEach(function(F){var q=[Qr,Kr].indexOf(F)>=0?1:-1,j=[Tr,Kr].indexOf(F)>=0?"y":"x";K[F]+=O[j]*q})}return K}function xK(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,o=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,c=u===void 0?gT:u,h=uo(n),f=h?s?ib:ib.filter(function(b){return uo(b)===h}):Rl,p=f.filter(function(b){return c.indexOf(b)>=0});p.length===0&&(p=f);var g=p.reduce(function(b,v){return b[v]=Ks(e,{placement:v,boundary:i,rootBoundary:a,padding:o})[Pn(v)],b},{});return Object.keys(g).sort(function(b,v){return g[b]-g[v]})}function CK(e){if(Pn(e)===cg)return[];var t=Yu(e);return[sb(e),t,sb(t)]}function TK(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!0:o,u=r.fallbackPlacements,c=r.padding,h=r.boundary,f=r.rootBoundary,p=r.altBoundary,g=r.flipVariations,b=g===void 0?!0:g,v=r.allowedAutoPlacements,w=t.options.placement,C=Pn(w),M=C===w,E=u||(M||!b?[Yu(w)]:CK(w)),S=[w].concat(E).reduce(function(re,oe){return re.concat(Pn(oe)===cg?xK(t,{placement:oe,boundary:h,rootBoundary:f,padding:c,flipVariations:b,allowedAutoPlacements:v}):oe)},[]),P=t.rects.reference,R=t.rects.popper,N=new Map,B=!0,U=S[0],K=0;K<S.length;K++){var Q=S[K],O=Pn(Q),F=uo(Q)===oo,q=[Tr,Kr].indexOf(O)>=0,j=q?"width":"height",V=Ks(t,{placement:Q,boundary:h,rootBoundary:f,altBoundary:p,padding:c}),W=q?F?Qr:Mr:F?Kr:Tr;P[j]>R[j]&&(W=Yu(W));var G=Yu(W),te=[];if(a&&te.push(V[O]<=0),s&&te.push(V[W]<=0,V[G]<=0),te.every(function(re){return re})){U=Q,B=!1;break}N.set(Q,te)}if(B)for(var z=b?3:1,Y=function(oe){var se=S.find(function(de){var ce=N.get(de);if(ce)return ce.slice(0,oe).every(function(ge){return ge})});if(se)return U=se,"break"},ie=z;ie>0;ie--){var ne=Y(ie);if(ne==="break")break}t.placement!==U&&(t.modifiersData[n]._skip=!0,t.placement=U,t.reset=!0)}}const MK={name:"flip",enabled:!0,phase:"main",fn:TK,requiresIfExists:["offset"],data:{_skip:!1}};function ub(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function cb(e){return[Tr,Qr,Kr,Mr].some(function(t){return e[t]>=0})}function SK(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Ks(t,{elementContext:"reference"}),s=Ks(t,{altBoundary:!0}),u=ub(o,n),c=ub(s,i,a),h=cb(u),f=cb(c);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":f})}const EK={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:SK};function PK(e,t,r){var n=Pn(e),i=[Mr,Tr].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[Mr,Qr].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function AK(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,o=gT.reduce(function(h,f){return h[f]=PK(f,t.rects,a),h},{}),s=o[t.placement],u=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=o}const RK={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:AK};function OK(e){var t=e.state,r=e.name;t.modifiersData[r]=CT({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const kK={name:"popperOffsets",enabled:!0,phase:"read",fn:OK,data:{}};function DK(e){return e==="x"?"y":"x"}function NK(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!1:o,u=r.boundary,c=r.rootBoundary,h=r.altBoundary,f=r.padding,p=r.tether,g=p===void 0?!0:p,b=r.tetherOffset,v=b===void 0?0:b,w=Ks(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:h}),C=Pn(t.placement),M=uo(t.placement),E=!M,S=fg(C),P=DK(S),R=t.modifiersData.popperOffsets,N=t.rects.reference,B=t.rects.popper,U=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,K=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),Q=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(R){if(a){var F,q=S==="y"?Tr:Mr,j=S==="y"?Kr:Qr,V=S==="y"?"height":"width",W=R[S],G=W+w[q],te=W-w[j],z=g?-B[V]/2:0,Y=M===oo?N[V]:B[V],ie=M===oo?-B[V]:-N[V],ne=t.elements.arrow,re=g&&ne?hg(ne):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:bT(),se=oe[q],de=oe[j],ce=Ds(0,N[V],re[V]),ge=E?N[V]/2-z-ce-se-K.mainAxis:Y-ce-se-K.mainAxis,Te=E?-N[V]/2+z+ce+de+K.mainAxis:ie+ce+de+K.mainAxis,ye=t.elements.arrow&&Ol(t.elements.arrow),J=ye?S==="y"?ye.clientTop||0:ye.clientLeft||0:0,_e=(F=Q==null?void 0:Q[S])!=null?F:0,ve=W+ge-_e-J,Ee=W+Te-_e,Ne=Ds(g?wc(G,ve):G,W,g?qi(te,Ee):te);R[S]=Ne,O[S]=Ne-W}if(s){var We,He=S==="x"?Tr:Mr,Zt=S==="x"?Kr:Qr,xt=R[P],$t=P==="y"?"height":"width",Pt=xt+w[He],Ae=xt-w[Zt],rt=[Tr,Mr].indexOf(C)!==-1,si=(We=Q==null?void 0:Q[P])!=null?We:0,Br=rt?Pt:xt-N[$t]-B[$t]-si+K.altAxis,Wr=rt?xt+N[$t]+B[$t]-si-K.altAxis:Ae,cn=g&&rt?iK(Br,xt,Wr):Ds(g?Br:Pt,xt,g?Wr:Ae);R[P]=cn,O[P]=cn-xt}t.modifiersData[n]=O}}const LK={name:"preventOverflow",enabled:!0,phase:"main",fn:NK,requiresIfExists:["offset"]};function IK(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $K(e){return e===Lr(e)||!Zr(e)?pg(e):IK(e)}function FK(e){var t=e.getBoundingClientRect(),r=so(t.width)/e.offsetWidth||1,n=so(t.height)/e.offsetHeight||1;return r!==1||n!==1}function zK(e,t,r){r===void 0&&(r=!1);var n=Zr(t),i=Zr(t)&&FK(t),a=Ai(t),o=lo(e,i,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Dn(t)!=="body"||gg(a))&&(s=$K(t)),Zr(t)?(u=lo(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=mg(a))),{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function BK(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&i(u)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function WK(e){var t=BK(e);return QZ.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function HK(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function jK(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var db={placement:"bottom",modifiers:[],strategy:"absolute"};function hb(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function VK(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?db:i;return function(s,u,c){c===void 0&&(c=a);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},db,a),modifiersData:{},elements:{reference:s,popper:u},attributes:{},styles:{}},f=[],p=!1,g={state:h,setOptions:function(C){var M=typeof C=="function"?C(h.options):C;v(),h.options=Object.assign({},a,h.options,M),h.scrollParents={reference:ra(s)?Ns(s):s.contextElement?Ns(s.contextElement):[],popper:Ns(u)};var E=WK(jK([].concat(n,h.options.modifiers)));return h.orderedModifiers=E.filter(function(S){return S.enabled}),b(),g.update()},forceUpdate:function(){if(!p){var C=h.elements,M=C.reference,E=C.popper;if(hb(M,E)){h.rects={reference:zK(M,Ol(E),h.options.strategy==="fixed"),popper:hg(E)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(K){return h.modifiersData[K.name]=Object.assign({},K.data)});for(var S=0;S<h.orderedModifiers.length;S++){if(h.reset===!0){h.reset=!1,S=-1;continue}var P=h.orderedModifiers[S],R=P.fn,N=P.options,B=N===void 0?{}:N,U=P.name;typeof R=="function"&&(h=R({state:h,options:B,name:U,instance:g})||h)}}}},update:HK(function(){return new Promise(function(w){g.forceUpdate(),w(h)})}),destroy:function(){v(),p=!0}};if(!hb(s,u))return g;g.setOptions(c).then(function(w){!p&&c.onFirstUpdate&&c.onFirstUpdate(w)});function b(){h.orderedModifiers.forEach(function(w){var C=w.name,M=w.options,E=M===void 0?{}:M,S=w.effect;if(typeof S=="function"){var P=S({state:h,name:C,instance:g,options:E}),R=function(){};f.push(P||R)}})}function v(){f.forEach(function(w){return w()}),f=[]}return g}}var GK=[pK,kK,hK,tK,RK,MK,LK,lK,EK],UK=VK({defaultModifiers:GK});function YK(e){return ht("MuiPopper",e)}ft("MuiPopper",["root"]);function qK(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function xc(e){return typeof e=="function"?e():e}function Cd(e){return e.nodeType!==void 0}function XK(e){return!Cd(e)}const ZK=e=>{const{classes:t}=e;return Et({root:["root"]},YK,t)},KK={},QK=Z.forwardRef(function(t,r){var V;const j=t,{anchorEl:n,children:i,direction:a,disablePortal:o,modifiers:s,open:u,placement:c,popperOptions:h,popperRef:f,slotProps:p={},slots:g={},TransitionProps:b,ownerState:v}=j,w=Ce(j,["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"]),C=Z.useRef(null),M=or(C,r),E=Z.useRef(null),S=or(E,f),P=Z.useRef(S);on(()=>{P.current=S},[S]),Z.useImperativeHandle(f,()=>E.current,[]);const R=qK(c,a),[N,B]=Z.useState(R),[U,K]=Z.useState(xc(n));Z.useEffect(()=>{E.current&&E.current.forceUpdate()}),Z.useEffect(()=>{n&&K(xc(n))},[n]),on(()=>{if(!U||!u)return;const W=z=>{B(z.placement)};if(process.env.NODE_ENV!=="production"&&U&&Cd(U)&&U.nodeType===1){const z=U.getBoundingClientRect();process.env.NODE_ENV!=="test"&&z.top===0&&z.left===0&&z.right===0&&z.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
356
+ `))}let G=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{W(z)}}];s!=null&&(G=G.concat(s)),h&&h.modifiers!=null&&(G=G.concat(h.modifiers));const te=UK(U,C.current,$(T({placement:R},h),{modifiers:G}));return P.current(te),()=>{te.destroy(),P.current(null)}},[U,o,s,u,h,R]);const Q={placement:N};b!==null&&(Q.TransitionProps=b);const O=ZK(t),F=(V=g.root)!=null?V:"div",q=Jm({elementType:F,externalSlotProps:p.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:M},ownerState:t,className:O.root});return fe.jsx(F,$(T({},q),{children:typeof i=="function"?i(Q):i}))}),TT=Z.forwardRef(function(t,r){const K=t,{anchorEl:n,children:i,container:a,direction:o="ltr",disablePortal:s=!1,keepMounted:u=!1,modifiers:c,open:h,placement:f="bottom",popperOptions:p=KK,popperRef:g,style:b,transition:v=!1,slotProps:w={},slots:C={}}=K,M=Ce(K,["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"]),[E,S]=Z.useState(!0),P=()=>{S(!1)},R=()=>{S(!0)};if(!u&&!h&&(!v||E))return null;let N;if(a)N=a;else if(n){const Q=xc(n);N=Q&&Cd(Q)?Dr(Q).body:Dr(null).body}const B=!h&&u&&(!v||E)?"none":void 0,U=v?{in:h,onEnter:P,onExited:R}:void 0;return fe.jsx(Gs,{disablePortal:s,container:N,children:fe.jsx(QK,$(T({anchorEl:n,direction:o,disablePortal:s,modifiers:c,ref:r,open:v?!E:h,placement:f,popperOptions:p,popperRef:g,slotProps:w,slots:C},M),{style:T({position:"fixed",top:0,left:0,display:B},b),TransitionProps:U,children:i}))})});process.env.NODE_ENV!=="production"&&(TT.propTypes={anchorEl:ni(y.oneOfType([Kn,y.object,y.func]),e=>{if(e.open){const t=xc(e.anchorEl);if(t&&Cd(t)&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
357
+ `))}else if(!t||typeof t.getBoundingClientRect!="function"||XK(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
358
+ `))}return null}),children:y.oneOfType([y.node,y.func]),container:y.oneOfType([Kn,y.func]),direction:y.oneOf(["ltr","rtl"]),disablePortal:y.bool,keepMounted:y.bool,modifiers:y.arrayOf(y.shape({data:y.object,effect:y.func,enabled:y.bool,fn:y.func,name:y.any,options:y.object,phase:y.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:y.arrayOf(y.string),requiresIfExists:y.arrayOf(y.string)})),open:y.bool.isRequired,placement:y.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:y.shape({modifiers:y.array,onFirstUpdate:y.func,placement:y.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:y.oneOf(["absolute","fixed"])}),popperRef:mo,slotProps:y.shape({root:y.oneOfType([y.func,y.object])}),slots:y.shape({root:y.elementType}),transition:y.bool});const JK=De(TT,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kl=Z.forwardRef(function(t,r){var B;const n=Bc(),N=_t({props:t,name:"MuiPopper"}),{anchorEl:a,component:o,components:s,componentsProps:u,container:c,disablePortal:h,keepMounted:f,modifiers:p,open:g,placement:b,popperOptions:v,popperRef:w,transition:C,slots:M,slotProps:E}=N,S=Ce(N,["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"]),P=(B=M==null?void 0:M.root)!=null?B:s==null?void 0:s.Root,R=T({anchorEl:a,container:c,disablePortal:h,keepMounted:f,modifiers:p,open:g,placement:b,popperOptions:v,popperRef:w,transition:C},S);return fe.jsx(JK,$(T({as:o,direction:n?"rtl":"ltr",slots:{root:P},slotProps:E!=null?E:u},R),{ref:r}))});process.env.NODE_ENV!=="production"&&(kl.propTypes={anchorEl:y.oneOfType([Kn,y.object,y.func]),children:y.oneOfType([y.node,y.func]),component:y.elementType,components:y.shape({Root:y.elementType}),componentsProps:y.shape({root:y.oneOfType([y.func,y.object])}),container:y.oneOfType([Kn,y.func]),disablePortal:y.bool,keepMounted:y.bool,modifiers:y.arrayOf(y.shape({data:y.object,effect:y.func,enabled:y.bool,fn:y.func,name:y.any,options:y.object,phase:y.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:y.arrayOf(y.string),requiresIfExists:y.arrayOf(y.string)})),open:y.bool.isRequired,placement:y.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:y.shape({modifiers:y.array,onFirstUpdate:y.func,placement:y.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:y.oneOf(["absolute","fixed"])}),popperRef:mo,slotProps:y.shape({root:y.oneOfType([y.func,y.object])}),slots:y.shape({root:y.elementType}),sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object]),transition:y.bool});function eQ(e){return ht("MuiTooltip",e)}const It=ft("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function tQ(e){return Math.round(e*1e5)/1e5}const rQ=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:i,placement:a}=e,o={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",i&&"touch",`tooltipPlacement${Le(a.split("-")[0])}`],arrow:["arrow"]};return Et(o,eQ,t)},nQ=De(kl,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(kt(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${It.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${It.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${It.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${It.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${It.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${It.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${It.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${It.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),iQ=De("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${Le(r.placement.split("-")[0])}`]]}})(kt(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${It.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${It.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${It.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${It.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${tQ(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${It.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${It.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${It.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${It.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${It.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${It.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${It.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${It.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${It.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${It.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),aQ=De("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(kt(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Tt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Eu=!1;const fb=new td;let ss={x:0,y:0};function Pu(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Td=Z.forwardRef(function(t,r){var Vl,ma,Gl;const n=_t({props:t,name:"MuiTooltip"}),jl=n,{arrow:i=!1,children:a,classes:o,components:s={},componentsProps:u={},describeChild:c=!1,disableFocusListener:h=!1,disableHoverListener:f=!1,disableInteractive:p=!1,disableTouchListener:g=!1,enterDelay:b=100,enterNextDelay:v=0,enterTouchDelay:w=700,followCursor:C=!1,id:M,leaveDelay:E=0,leaveTouchDelay:S=1500,onClose:P,onOpen:R,open:N,placement:B="bottom",PopperComponent:U,PopperProps:K={},slotProps:Q={},slots:O={},title:F,TransitionComponent:q,TransitionProps:j}=jl,V=Ce(jl,["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"]),W=Z.isValidElement(a)?a:fe.jsx("span",{children:a}),G=fl(),te=Bc(),[z,Y]=Z.useState(),[ie,ne]=Z.useState(null),re=Z.useRef(!1),oe=p||C,se=ji(),de=ji(),ce=ji(),ge=ji(),[Te,ye]=qm({controlled:N,default:!1,name:"Tooltip",state:"open"});let J=Te;if(process.env.NODE_ENV!=="production"){const{current:$e}=Z.useRef(N!==void 0);Z.useEffect(()=>{z&&z.disabled&&!$e&&F!==""&&z.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
359
+ `))},[F,z,$e])}const _e=ed(M),ve=Z.useRef(),Ee=Sn(()=>{ve.current!==void 0&&(document.body.style.WebkitUserSelect=ve.current,ve.current=void 0),ge.clear()});Z.useEffect(()=>Ee,[Ee]);const Ne=$e=>{fb.clear(),Eu=!0,ye(!0),R&&!J&&R($e)},We=Sn($e=>{fb.start(800+E,()=>{Eu=!1}),ye(!1),P&&J&&P($e),se.start(G.transitions.duration.shortest,()=>{re.current=!1})}),He=$e=>{re.current&&$e.type!=="touchstart"||(z&&z.removeAttribute("title"),de.clear(),ce.clear(),b||Eu&&v?de.start(Eu?v:b,()=>{Ne($e)}):Ne($e))},Zt=$e=>{de.clear(),ce.start(E,()=>{We($e)})},[,xt]=Z.useState(!1),$t=$e=>{rc($e.target)||(xt(!1),Zt($e))},Pt=$e=>{z||Y($e.currentTarget),rc($e.target)&&(xt(!0),He($e))},Ae=$e=>{re.current=!0;const Er=W.props;Er.onTouchStart&&Er.onTouchStart($e)},rt=$e=>{Ae($e),ce.clear(),se.clear(),Ee(),ve.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ge.start(w,()=>{document.body.style.WebkitUserSelect=ve.current,He($e)})},si=$e=>{W.props.onTouchEnd&&W.props.onTouchEnd($e),Ee(),ce.start(S,()=>{We($e)})};Z.useEffect(()=>{if(!J)return;function $e(Er){Er.key==="Escape"&&We(Er)}return document.addEventListener("keydown",$e),()=>{document.removeEventListener("keydown",$e)}},[We,J]);const Br=or(vo(W),Y,r);!F&&F!==0&&(J=!1);const Wr=Z.useRef(),cn=$e=>{const Er=W.props;Er.onMouseMove&&Er.onMouseMove($e),ss={x:$e.clientX,y:$e.clientY},Wr.current&&Wr.current.update()},tn={},Fn=typeof F=="string";c?(tn.title=!J&&Fn&&!f?F:null,tn["aria-describedby"]=J?_e:null):(tn["aria-label"]=Fn?F:null,tn["aria-labelledby"]=J&&!Fn?_e:null);const Kt=T($(T(T(T({},tn),V),W.props),{className:ze(V.className,W.props.className),onTouchStart:Ae,ref:Br}),C?{onMouseMove:cn}:{});process.env.NODE_ENV!=="production"&&(Kt["data-mui-internal-clone-element"]=!0,Z.useEffect(()=>{z&&!z.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
360
+ `))},[z]));const dn={};g||(Kt.onTouchStart=rt,Kt.onTouchEnd=si),f||(Kt.onMouseOver=Pu(He,Kt.onMouseOver),Kt.onMouseLeave=Pu(Zt,Kt.onMouseLeave),oe||(dn.onMouseOver=He,dn.onMouseLeave=Zt)),h||(Kt.onFocus=Pu(Pt,Kt.onFocus),Kt.onBlur=Pu($t,Kt.onBlur),oe||(dn.onFocus=Pt,dn.onBlur=$t)),process.env.NODE_ENV!=="production"&&W.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${W.props.title}\` or the Tooltip component.`].join(`
361
+ `));const Ye=$(T({},n),{isRtl:te,arrow:i,disableInteractive:oe,placement:B,PopperComponentProp:U,touch:re.current}),jt=typeof Q.popper=="function"?Q.popper(Ye):Q.popper,Oi=Z.useMemo(()=>{var Er,Ul;let $e=[{name:"arrow",enabled:!!ie,options:{element:ie,padding:4}}];return(Er=K.popperOptions)!=null&&Er.modifiers&&($e=$e.concat(K.popperOptions.modifiers)),(Ul=jt==null?void 0:jt.popperOptions)!=null&&Ul.modifiers&&($e=$e.concat(jt.popperOptions.modifiers)),$(T(T({},K.popperOptions),jt==null?void 0:jt.popperOptions),{modifiers:$e})},[ie,K.popperOptions,jt==null?void 0:jt.popperOptions]),Fo=rQ(Ye),zn=typeof Q.transition=="function"?Q.transition(Ye):Q.transition,pa={slots:T({popper:s.Popper,transition:(Vl=s.Transition)!=null?Vl:q,tooltip:s.Tooltip,arrow:s.Arrow},O),slotProps:{arrow:(ma=Q.arrow)!=null?ma:u.arrow,popper:T(T({},K),jt!=null?jt:u.popper),tooltip:(Gl=Q.tooltip)!=null?Gl:u.tooltip,transition:T(T({},j),zn!=null?zn:u.transition)}},[th,Bl]=er("popper",{elementType:nQ,externalForwardedProps:pa,ownerState:Ye,className:ze(Fo.popper,K==null?void 0:K.className)}),[Wl,Hl]=er("transition",{elementType:Vs,externalForwardedProps:pa,ownerState:Ye}),[rh,nh]=er("tooltip",{elementType:iQ,className:Fo.tooltip,externalForwardedProps:pa,ownerState:Ye}),[ih,ah]=er("arrow",{elementType:aQ,className:Fo.arrow,externalForwardedProps:pa,ownerState:Ye,ref:ne});return fe.jsxs(Z.Fragment,{children:[Z.cloneElement(W,Kt),fe.jsx(th,$(T(T({as:U!=null?U:kl,placement:B,anchorEl:C?{getBoundingClientRect:()=>({top:ss.y,left:ss.x,right:ss.x,bottom:ss.y,width:0,height:0})}:z,popperRef:Wr,open:z?J:!1,id:_e,transition:!0},dn),Bl),{popperOptions:Oi,children:({TransitionProps:$e})=>fe.jsx(Wl,$(T(T({timeout:G.transitions.duration.shorter},$e),Hl),{children:fe.jsxs(rh,$(T({},nh),{children:[F,i?fe.jsx(ih,T({},ah)):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(Td.propTypes={arrow:y.bool,children:oa.isRequired,classes:y.object,className:y.string,components:y.shape({Arrow:y.elementType,Popper:y.elementType,Tooltip:y.elementType,Transition:y.elementType}),componentsProps:y.shape({arrow:y.object,popper:y.object,tooltip:y.object,transition:y.object}),describeChild:y.bool,disableFocusListener:y.bool,disableHoverListener:y.bool,disableInteractive:y.bool,disableTouchListener:y.bool,enterDelay:y.number,enterNextDelay:y.number,enterTouchDelay:y.number,followCursor:y.bool,id:y.string,leaveDelay:y.number,leaveTouchDelay:y.number,onClose:y.func,onOpen:y.func,open:y.bool,placement:y.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:y.elementType,PopperProps:y.object,slotProps:y.shape({arrow:y.oneOfType([y.func,y.object]),popper:y.oneOfType([y.func,y.object]),tooltip:y.oneOfType([y.func,y.object]),transition:y.oneOfType([y.func,y.object])}),slots:y.shape({arrow:y.elementType,popper:y.elementType,tooltip:y.elementType,transition:y.elementType}),sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object]),title:y.node,TransitionComponent:y.elementType,TransitionProps:y.object});var MT={exports:{}};/*!
362
+ Copyright (c) 2018 Jed Watson.
363
+ Licensed under the MIT License (MIT), see
364
+ http://jedwatson.github.io/classnames
365
+ */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(a=i(a,n(s)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var s in a)t.call(a,s)&&a[s]&&(o=i(o,s));return o}function i(a,o){return o?a?a+" "+o:a+o:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(MT);var oQ=MT.exports;const Qs=_.getDefaultExportFromCjs(oQ);function Mt(){return Mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mt.apply(null,arguments)}function gt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ti(e){"@babel/helpers - typeof";return ti=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ti(e)}function sQ(e,t){if(ti(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ti(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ST(e){var t=sQ(e,"string");return ti(t)=="symbol"?t:t+""}function pb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ST(n.key),n)}}function vt(e,t,r){return t&&pb(e.prototype,t),r&&pb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qp(e,t){return Qp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Qp(e,t)}function Ut(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qp(e,t)}function pe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sr(e,t){if(t&&(ti(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pe(e)}function Ue(e){return Ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ue(e)}function ue(e,t,r){return(t=ST(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Cn=function(t,r,n,i,a,o,s,u){if(process.env.NODE_ENV!=="production"&&r===void 0)throw new Error("invariant requires an error message argument");if(!t){var c;if(r===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var h=[n,i,a,o,s,u],f=0;c=new Error("Invariant Violation: "+r.replace(/%s/g,function(){return h[f++]}))}throw c.framesToPop=1,c}},Au=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},lQ=Array.isArray,en=lQ,uQ=typeof Au=="object"&&Au&&Au.Object===Object&&Au,ET=uQ,cQ=ET,dQ=typeof self=="object"&&self&&self.Object===Object&&self,hQ=cQ||dQ||Function("return this")(),$n=hQ,fQ=$n,pQ=fQ.Symbol,Dl=pQ,mb=Dl,PT=Object.prototype,mQ=PT.hasOwnProperty,gQ=PT.toString,ls=mb?mb.toStringTag:void 0;function vQ(e){var t=mQ.call(e,ls),r=e[ls];try{e[ls]=void 0;var n=!0}catch(a){}var i=gQ.call(e);return n&&(t?e[ls]=r:delete e[ls]),i}var yQ=vQ,bQ=Object.prototype,_Q=bQ.toString;function wQ(e){return _Q.call(e)}var xQ=wQ,gb=Dl,CQ=yQ,TQ=xQ,MQ="[object Null]",SQ="[object Undefined]",vb=gb?gb.toStringTag:void 0;function EQ(e){return e==null?e===void 0?SQ:MQ:vb&&vb in Object(e)?CQ(e):TQ(e)}var da=EQ;function PQ(e){return e!=null&&typeof e=="object"}var Ri=PQ,AQ=da,RQ=Ri,OQ="[object Symbol]";function kQ(e){return typeof e=="symbol"||RQ(e)&&AQ(e)==OQ}var Md=kQ,DQ=en,NQ=Md,LQ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,IQ=/^\w*$/;function $Q(e,t){if(DQ(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||NQ(e)?!0:IQ.test(e)||!LQ.test(e)||t!=null&&e in Object(t)}var FQ=$Q;function zQ(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ha=zQ,BQ=da,WQ=ha,HQ="[object AsyncFunction]",jQ="[object Function]",VQ="[object GeneratorFunction]",GQ="[object Proxy]";function UQ(e){if(!WQ(e))return!1;var t=BQ(e);return t==jQ||t==VQ||t==HQ||t==GQ}var AT=UQ,YQ=$n,qQ=YQ["__core-js_shared__"],XQ=qQ,df=XQ,yb=function(){var e=/[^.]+$/.exec(df&&df.keys&&df.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ZQ(e){return!!yb&&yb in e}var KQ=ZQ,QQ=Function.prototype,JQ=QQ.toString;function eJ(e){if(e!=null){try{return JQ.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var RT=eJ,tJ=AT,rJ=KQ,nJ=ha,iJ=RT,aJ=/[\\^$.*+?()[\]{}|]/g,oJ=/^\[object .+?Constructor\]$/,sJ=Function.prototype,lJ=Object.prototype,uJ=sJ.toString,cJ=lJ.hasOwnProperty,dJ=RegExp("^"+uJ.call(cJ).replace(aJ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function hJ(e){if(!nJ(e)||rJ(e))return!1;var t=tJ(e)?dJ:oJ;return t.test(iJ(e))}var fJ=hJ;function pJ(e,t){return e==null?void 0:e[t]}var mJ=pJ,gJ=fJ,vJ=mJ;function yJ(e,t){var r=vJ(e,t);return gJ(r)?r:void 0}var fa=yJ,bJ=fa,_J=bJ(Object,"create"),Sd=_J,bb=Sd;function wJ(){this.__data__=bb?bb(null):{},this.size=0}var xJ=wJ;function CJ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var TJ=CJ,MJ=Sd,SJ="__lodash_hash_undefined__",EJ=Object.prototype,PJ=EJ.hasOwnProperty;function AJ(e){var t=this.__data__;if(MJ){var r=t[e];return r===SJ?void 0:r}return PJ.call(t,e)?t[e]:void 0}var RJ=AJ,OJ=Sd,kJ=Object.prototype,DJ=kJ.hasOwnProperty;function NJ(e){var t=this.__data__;return OJ?t[e]!==void 0:DJ.call(t,e)}var LJ=NJ,IJ=Sd,$J="__lodash_hash_undefined__";function FJ(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=IJ&&t===void 0?$J:t,this}var zJ=FJ,BJ=xJ,WJ=TJ,HJ=RJ,jJ=LJ,VJ=zJ;function Ro(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ro.prototype.clear=BJ;Ro.prototype.delete=WJ;Ro.prototype.get=HJ;Ro.prototype.has=jJ;Ro.prototype.set=VJ;var GJ=Ro;function UJ(){this.__data__=[],this.size=0}var YJ=UJ;function qJ(e,t){return e===t||e!==e&&t!==t}var OT=qJ,XJ=OT;function ZJ(e,t){for(var r=e.length;r--;)if(XJ(e[r][0],t))return r;return-1}var Ed=ZJ,KJ=Ed,QJ=Array.prototype,JJ=QJ.splice;function eee(e){var t=this.__data__,r=KJ(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():JJ.call(t,r,1),--this.size,!0}var tee=eee,ree=Ed;function nee(e){var t=this.__data__,r=ree(t,e);return r<0?void 0:t[r][1]}var iee=nee,aee=Ed;function oee(e){return aee(this.__data__,e)>-1}var see=oee,lee=Ed;function uee(e,t){var r=this.__data__,n=lee(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var cee=uee,dee=YJ,hee=tee,fee=iee,pee=see,mee=cee;function Oo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Oo.prototype.clear=dee;Oo.prototype.delete=hee;Oo.prototype.get=fee;Oo.prototype.has=pee;Oo.prototype.set=mee;var Pd=Oo,gee=fa,vee=$n,yee=gee(vee,"Map"),vg=yee,_b=GJ,bee=Pd,_ee=vg;function wee(){this.size=0,this.__data__={hash:new _b,map:new(_ee||bee),string:new _b}}var xee=wee;function Cee(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Tee=Cee,Mee=Tee;function See(e,t){var r=e.__data__;return Mee(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Ad=See,Eee=Ad;function Pee(e){var t=Eee(this,e).delete(e);return this.size-=t?1:0,t}var Aee=Pee,Ree=Ad;function Oee(e){return Ree(this,e).get(e)}var kee=Oee,Dee=Ad;function Nee(e){return Dee(this,e).has(e)}var Lee=Nee,Iee=Ad;function $ee(e,t){var r=Iee(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Fee=$ee,zee=xee,Bee=Aee,Wee=kee,Hee=Lee,jee=Fee;function ko(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ko.prototype.clear=zee;ko.prototype.delete=Bee;ko.prototype.get=Wee;ko.prototype.has=Hee;ko.prototype.set=jee;var kT=ko,DT=kT,Vee="Expected a function";function yg(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Vee);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(yg.Cache||DT),r}yg.Cache=DT;var Gee=yg,Uee=Gee,Yee=500;function qee(e){var t=Uee(e,function(n){return r.size===Yee&&r.clear(),n}),r=t.cache;return t}var Xee=qee,Zee=Xee,Kee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qee=/\\(\\)?/g,Jee=Zee(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Kee,function(r,n,i,a){t.push(i?a.replace(Qee,"$1"):n||r)}),t}),ete=Jee;function tte(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var rte=tte,wb=Dl,nte=rte,ite=en,ate=Md,ote=1/0,xb=wb?wb.prototype:void 0,Cb=xb?xb.toString:void 0;function NT(e){if(typeof e=="string")return e;if(ite(e))return nte(e,NT)+"";if(ate(e))return Cb?Cb.call(e):"";var t=e+"";return t=="0"&&1/e==-ote?"-0":t}var ste=NT,lte=ste;function ute(e){return e==null?"":lte(e)}var LT=ute,cte=en,dte=FQ,hte=ete,fte=LT;function pte(e,t){return cte(e)?e:dte(e,t)?[e]:hte(fte(e))}var Rd=pte,mte=Md,gte=1/0;function vte(e){if(typeof e=="string"||mte(e))return e;var t=e+"";return t=="0"&&1/e==-gte?"-0":t}var bg=vte,yte=Rd,bte=bg;function _te(e,t){t=yte(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[bte(t[r++])];return r&&r==n?e:void 0}var IT=_te,wte=fa,xte=function(){try{var e=wte(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),$T=xte,Tb=$T;function Cte(e,t,r){t=="__proto__"&&Tb?Tb(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var FT=Cte,Tte=FT,Mte=OT,Ste=Object.prototype,Ete=Ste.hasOwnProperty;function Pte(e,t,r){var n=e[t];(!(Ete.call(e,t)&&Mte(n,r))||r===void 0&&!(t in e))&&Tte(e,t,r)}var _g=Pte,Ate=9007199254740991,Rte=/^(?:0|[1-9]\d*)$/;function Ote(e,t){var r=typeof e;return t=t==null?Ate:t,!!t&&(r=="number"||r!="symbol"&&Rte.test(e))&&e>-1&&e%1==0&&e<t}var wg=Ote,kte=_g,Dte=Rd,Nte=wg,Mb=ha,Lte=bg;function Ite(e,t,r,n){if(!Mb(e))return e;t=Dte(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var u=Lte(t[i]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(i!=o){var h=s[u];c=n?n(h,u,s):void 0,c===void 0&&(c=Mb(h)?h:Nte(t[i+1])?[]:{})}kte(s,u,c),s=s[u]}return e}var $te=Ite,Fte=IT,zte=$te,Bte=Rd;function Wte(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var o=t[n],s=Fte(e,o);r(s,o)&&zte(a,Bte(o,e),s)}return a}var Hte=Wte;function jte(e,t){return e!=null&&t in Object(e)}var Vte=jte,Gte=da,Ute=Ri,Yte="[object Arguments]";function qte(e){return Ute(e)&&Gte(e)==Yte}var Xte=qte,Sb=Xte,Zte=Ri,zT=Object.prototype,Kte=zT.hasOwnProperty,Qte=zT.propertyIsEnumerable,Jte=Sb(function(){return arguments}())?Sb:function(e){return Zte(e)&&Kte.call(e,"callee")&&!Qte.call(e,"callee")},Od=Jte,ere=9007199254740991;function tre(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ere}var xg=tre,rre=Rd,nre=Od,ire=en,are=wg,ore=xg,sre=bg;function lre(e,t,r){t=rre(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=sre(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&ore(i)&&are(o,i)&&(ire(e)||nre(e)))}var ure=lre,cre=Vte,dre=ure;function hre(e,t){return e!=null&&dre(e,t,cre)}var fre=hre,pre=Hte,mre=fre;function gre(e,t){return pre(e,t,function(r,n){return mre(e,n)})}var vre=gre;function yre(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var kd=yre,Eb=Dl,bre=Od,_re=en,Pb=Eb?Eb.isConcatSpreadable:void 0;function wre(e){return _re(e)||bre(e)||!!(Pb&&e&&e[Pb])}var xre=wre,Cre=kd,Tre=xre;function BT(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=Tre),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?BT(s,t-1,r,n,i):Cre(i,s):n||(i[i.length]=s)}return i}var WT=BT,Mre=WT;function Sre(e){var t=e==null?0:e.length;return t?Mre(e,1):[]}var Ere=Sre;function Pre(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Are=Pre,Rre=Are,Ab=Math.max;function Ore(e,t,r){return t=Ab(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Ab(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),Rre(e,this,s)}}var kre=Ore;function Dre(e){return function(){return e}}var Nre=Dre;function Lre(e){return e}var HT=Lre,Ire=Nre,Rb=$T,$re=HT,Fre=Rb?function(e,t){return Rb(e,"toString",{configurable:!0,enumerable:!1,value:Ire(t),writable:!0})}:$re,zre=Fre,Bre=800,Wre=16,Hre=Date.now;function jre(e){var t=0,r=0;return function(){var n=Hre(),i=Wre-(n-r);if(r=n,i>0){if(++t>=Bre)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Vre=jre,Gre=zre,Ure=Vre,Yre=Ure(Gre),qre=Yre,Xre=Ere,Zre=kre,Kre=qre;function Qre(e){return Kre(Zre(e,void 0,Xre),e+"")}var Jre=Qre,ene=vre,tne=Jre,rne=tne(function(e,t){return e==null?{}:ene(e,t)}),ws=rne;function Ob(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ob(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ob(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ir(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Db=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),hf=function(){return Math.random().toString(36).substring(7).split("").join(".")},Xi={INIT:"@@redux/INIT"+hf(),REPLACE:"@@redux/REPLACE"+hf(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+hf()}};function jT(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function nne(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(one(e))return"date";if(ane(e))return"error";var r=ine(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function ine(e){return typeof e.constructor=="function"?e.constructor.name:null}function ane(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function one(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function hi(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=nne(e)),t}function VT(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?ir(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r=="undefined"&&(r=t,t=void 0),typeof r!="undefined"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?ir(1):"Expected the enhancer to be a function. Instead, received: '"+hi(r)+"'");return r(VT)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?ir(2):"Expected the root reducer to be a function. Instead, received: '"+hi(e)+"'");var i=e,a=t,o=[],s=o,u=!1;function c(){s===o&&(s=o.slice())}function h(){if(u)throw new Error(process.env.NODE_ENV==="production"?ir(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function f(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?ir(4):"Expected the listener to be a function. Instead, received: '"+hi(v)+"'");if(u)throw new Error(process.env.NODE_ENV==="production"?ir(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var w=!0;return c(),s.push(v),function(){if(w){if(u)throw new Error(process.env.NODE_ENV==="production"?ir(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");w=!1,c();var M=s.indexOf(v);s.splice(M,1),o=null}}}function p(v){if(!jT(v))throw new Error(process.env.NODE_ENV==="production"?ir(7):"Actions must be plain objects. Instead, the actual type was: '"+hi(v)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof v.type=="undefined")throw new Error(process.env.NODE_ENV==="production"?ir(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(u)throw new Error(process.env.NODE_ENV==="production"?ir(9):"Reducers may not dispatch actions.");try{u=!0,a=i(a,v)}finally{u=!1}for(var w=o=s,C=0;C<w.length;C++){var M=w[C];M()}return v}function g(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?ir(10):"Expected the nextReducer to be a function. Instead, received: '"+hi(v));i=v,p({type:Xi.REPLACE})}function b(){var v,w=f;return v={subscribe:function(M){if(typeof M!="object"||M===null)throw new Error(process.env.NODE_ENV==="production"?ir(11):"Expected the observer to be an object. Instead, received: '"+hi(M)+"'");function E(){M.next&&M.next(h())}E();var S=w(E);return{unsubscribe:S}}},v[Db]=function(){return this},v}return p({type:Xi.INIT}),n={dispatch:p,subscribe:f,getState:h,replaceReducer:g},n[Db]=b,n}function Jp(e){typeof console!="undefined"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch(t){}}function sne(e,t,r,n){var i=Object.keys(t),a=r&&r.type===Xi.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!jT(e))return"The "+a+' has unexpected type of "'+hi(e)+'". Expected argument to be an object with the following '+('keys: "'+i.join('", "')+'"');var o=Object.keys(e).filter(function(s){return!t.hasOwnProperty(s)&&!n[s]});if(o.forEach(function(s){n[s]=!0}),!(r&&r.type===Xi.REPLACE)&&o.length>0)return"Unexpected "+(o.length>1?"keys":"key")+" "+('"'+o.join('", "')+'" found in '+a+". ")+"Expected to find one of the known reducer keys instead: "+('"'+i.join('", "')+'". Unexpected keys will be ignored.')}function lne(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:Xi.INIT});if(typeof n=="undefined")throw new Error(process.env.NODE_ENV==="production"?ir(12):'The slice reducer for key "'+t+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:Xi.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(process.env.NODE_ENV==="production"?ir(13):'The slice reducer for key "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle '"+Xi.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function une(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];process.env.NODE_ENV!=="production"&&typeof e[i]=="undefined"&&Jp('No reducer provided for key "'+i+'"'),typeof e[i]=="function"&&(r[i]=e[i])}var a=Object.keys(r),o;process.env.NODE_ENV!=="production"&&(o={});var s;try{lne(r)}catch(u){s=u}return function(c,h){if(c===void 0&&(c={}),s)throw s;if(process.env.NODE_ENV!=="production"){var f=sne(c,r,h,o);f&&Jp(f)}for(var p=!1,g={},b=0;b<a.length;b++){var v=a[b],w=r[v],C=c[v],M=w(C,h);if(typeof M=="undefined"){var E=h&&h.type;throw new Error(process.env.NODE_ENV==="production"?ir(14):"When called with an action of type "+(E?'"'+String(E)+'"':"(unknown type)")+', the slice reducer for key "'+v+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}g[v]=M,p=p||M!==C}return p=p||a.length!==Object.keys(c).length,p?g:c}}function Nb(e,t){return function(){return t(e.apply(this,arguments))}}function GT(e,t){if(typeof e=="function")return Nb(e,t);if(typeof e!="object"||e===null)throw new Error(process.env.NODE_ENV==="production"?ir(16):"bindActionCreators expected an object or a function, but instead received: '"+hi(e)+`'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);var r={};for(var n in e){var i=e[n];typeof i=="function"&&(r[n]=Nb(i,t))}return r}function Cc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function cne(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(process.env.NODE_ENV==="production"?ir(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},s=t.map(function(u){return u(o)});return a=Cc.apply(void 0,s)(i.dispatch),kb(kb({},i),{},{dispatch:a})}}}function Lb(){}process.env.NODE_ENV!=="production"&&typeof Lb.name=="string"&&Lb.name!=="isCrushed"&&Jp('You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) to ensure you have the correct code for your production build.');var dne=Pd;function hne(){this.__data__=new dne,this.size=0}var fne=hne;function pne(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var mne=pne;function gne(e){return this.__data__.get(e)}var vne=gne;function yne(e){return this.__data__.has(e)}var bne=yne,_ne=Pd,wne=vg,xne=kT,Cne=200;function Tne(e,t){var r=this.__data__;if(r instanceof _ne){var n=r.__data__;if(!wne||n.length<Cne-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new xne(n)}return r.set(e,t),this.size=r.size,this}var Mne=Tne,Sne=Pd,Ene=fne,Pne=mne,Ane=vne,Rne=bne,One=Mne;function Do(e){var t=this.__data__=new Sne(e);this.size=t.size}Do.prototype.clear=Ene;Do.prototype.delete=Pne;Do.prototype.get=Ane;Do.prototype.has=Rne;Do.prototype.set=One;var kne=Do;function Dne(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var UT=Dne,Nne=_g,Lne=FT;function Ine(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++a<o;){var s=t[a],u=n?n(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),i?Lne(r,s,u):Nne(r,s,u)}return r}var Dd=Ine;function $ne(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Fne=$ne,Js={exports:{}};function zne(){return!1}var Bne=zne;(function(e,t){var r=$n,n=Bne,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,u=s?s.isBuffer:void 0,c=u||n;e.exports=c})(Js,Js.exports);var Wne=da,Hne=xg,jne=Ri,Vne="[object Arguments]",Gne="[object Array]",Une="[object Boolean]",Yne="[object Date]",qne="[object Error]",Xne="[object Function]",Zne="[object Map]",Kne="[object Number]",Qne="[object Object]",Jne="[object RegExp]",eie="[object Set]",tie="[object String]",rie="[object WeakMap]",nie="[object ArrayBuffer]",iie="[object DataView]",aie="[object Float32Array]",oie="[object Float64Array]",sie="[object Int8Array]",lie="[object Int16Array]",uie="[object Int32Array]",cie="[object Uint8Array]",die="[object Uint8ClampedArray]",hie="[object Uint16Array]",fie="[object Uint32Array]",yt={};yt[aie]=yt[oie]=yt[sie]=yt[lie]=yt[uie]=yt[cie]=yt[die]=yt[hie]=yt[fie]=!0;yt[Vne]=yt[Gne]=yt[nie]=yt[Une]=yt[iie]=yt[Yne]=yt[qne]=yt[Xne]=yt[Zne]=yt[Kne]=yt[Qne]=yt[Jne]=yt[eie]=yt[tie]=yt[rie]=!1;function pie(e){return jne(e)&&Hne(e.length)&&!!yt[Wne(e)]}var mie=pie;function gie(e){return function(t){return e(t)}}var Cg=gie,el={exports:{}};(function(e,t){var r=ET,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var u=i&&i.require&&i.require("util").types;return u||o&&o.binding&&o.binding("util")}catch(c){}}();e.exports=s})(el,el.exports);var vie=mie,yie=Cg,Ib=el.exports,$b=Ib&&Ib.isTypedArray,bie=$b?yie($b):vie,YT=bie,_ie=Fne,wie=Od,xie=en,Cie=Js.exports,Tie=wg,Mie=YT,Sie=Object.prototype,Eie=Sie.hasOwnProperty;function Pie(e,t){var r=xie(e),n=!r&&wie(e),i=!r&&!n&&Cie(e),a=!r&&!n&&!i&&Mie(e),o=r||n||i||a,s=o?_ie(e.length,String):[],u=s.length;for(var c in e)(t||Eie.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Tie(c,u)))&&s.push(c);return s}var qT=Pie,Aie=Object.prototype;function Rie(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Aie;return e===r}var Nd=Rie;function Oie(e,t){return function(r){return e(t(r))}}var XT=Oie,kie=XT,Die=kie(Object.keys,Object),Nie=Die,Lie=Nd,Iie=Nie,$ie=Object.prototype,Fie=$ie.hasOwnProperty;function zie(e){if(!Lie(e))return Iie(e);var t=[];for(var r in Object(e))Fie.call(e,r)&&r!="constructor"&&t.push(r);return t}var Tg=zie,Bie=AT,Wie=xg;function Hie(e){return e!=null&&Wie(e.length)&&!Bie(e)}var Nl=Hie,jie=qT,Vie=Tg,Gie=Nl;function Uie(e){return Gie(e)?jie(e):Vie(e)}var Ld=Uie,Yie=Dd,qie=Ld;function Xie(e,t){return e&&Yie(t,qie(t),e)}var Zie=Xie;function Kie(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Qie=Kie,Jie=ha,eae=Nd,tae=Qie,rae=Object.prototype,nae=rae.hasOwnProperty;function iae(e){if(!Jie(e))return tae(e);var t=eae(e),r=[];for(var n in e)n=="constructor"&&(t||!nae.call(e,n))||r.push(n);return r}var aae=iae,oae=qT,sae=aae,lae=Nl;function uae(e){return lae(e)?oae(e,!0):sae(e)}var Mg=uae,cae=Dd,dae=Mg;function hae(e,t){return e&&cae(t,dae(t),e)}var fae=hae,em={exports:{}};(function(e,t){var r=$n,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;function u(c,h){if(h)return c.slice();var f=c.length,p=s?s(f):new c.constructor(f);return c.copy(p),p}e.exports=u})(em,em.exports);function pae(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var ZT=pae;function mae(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}var gae=mae;function vae(){return[]}var KT=vae,yae=gae,bae=KT,_ae=Object.prototype,wae=_ae.propertyIsEnumerable,Fb=Object.getOwnPropertySymbols,xae=Fb?function(e){return e==null?[]:(e=Object(e),yae(Fb(e),function(t){return wae.call(e,t)}))}:bae,Sg=xae,Cae=Dd,Tae=Sg;function Mae(e,t){return Cae(e,Tae(e),t)}var Sae=Mae,Eae=XT,Pae=Eae(Object.getPrototypeOf,Object),QT=Pae,Aae=kd,Rae=QT,Oae=Sg,kae=KT,Dae=Object.getOwnPropertySymbols,Nae=Dae?function(e){for(var t=[];e;)Aae(t,Oae(e)),e=Rae(e);return t}:kae,JT=Nae,Lae=Dd,Iae=JT;function $ae(e,t){return Lae(e,Iae(e),t)}var Fae=$ae,zae=kd,Bae=en;function Wae(e,t,r){var n=t(e);return Bae(e)?n:zae(n,r(e))}var eM=Wae,Hae=eM,jae=Sg,Vae=Ld;function Gae(e){return Hae(e,Vae,jae)}var Uae=Gae,Yae=eM,qae=JT,Xae=Mg;function Zae(e){return Yae(e,Xae,qae)}var Kae=Zae,Qae=fa,Jae=$n,eoe=Qae(Jae,"DataView"),toe=eoe,roe=fa,noe=$n,ioe=roe(noe,"Promise"),aoe=ioe,ooe=fa,soe=$n,loe=ooe(soe,"Set"),uoe=loe,coe=fa,doe=$n,hoe=coe(doe,"WeakMap"),foe=hoe,tm=toe,rm=vg,nm=aoe,im=uoe,am=foe,tM=da,No=RT,zb="[object Map]",poe="[object Object]",Bb="[object Promise]",Wb="[object Set]",Hb="[object WeakMap]",jb="[object DataView]",moe=No(tm),goe=No(rm),voe=No(nm),yoe=No(im),boe=No(am),Wi=tM;(tm&&Wi(new tm(new ArrayBuffer(1)))!=jb||rm&&Wi(new rm)!=zb||nm&&Wi(nm.resolve())!=Bb||im&&Wi(new im)!=Wb||am&&Wi(new am)!=Hb)&&(Wi=function(e){var t=tM(e),r=t==poe?e.constructor:void 0,n=r?No(r):"";if(n)switch(n){case moe:return jb;case goe:return zb;case voe:return Bb;case yoe:return Wb;case boe:return Hb}return t});var Ll=Wi,_oe=Object.prototype,woe=_oe.hasOwnProperty;function xoe(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&woe.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Coe=xoe,Toe=$n,Moe=Toe.Uint8Array,Soe=Moe,Vb=Soe;function Eoe(e){var t=new e.constructor(e.byteLength);return new Vb(t).set(new Vb(e)),t}var Eg=Eoe,Poe=Eg;function Aoe(e,t){var r=t?Poe(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Roe=Aoe,Ooe=/\w*$/;function koe(e){var t=new e.constructor(e.source,Ooe.exec(e));return t.lastIndex=e.lastIndex,t}var Doe=koe,Gb=Dl,Ub=Gb?Gb.prototype:void 0,Yb=Ub?Ub.valueOf:void 0;function Noe(e){return Yb?Object(Yb.call(e)):{}}var Loe=Noe,Ioe=Eg;function $oe(e,t){var r=t?Ioe(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Foe=$oe,zoe=Eg,Boe=Roe,Woe=Doe,Hoe=Loe,joe=Foe,Voe="[object Boolean]",Goe="[object Date]",Uoe="[object Map]",Yoe="[object Number]",qoe="[object RegExp]",Xoe="[object Set]",Zoe="[object String]",Koe="[object Symbol]",Qoe="[object ArrayBuffer]",Joe="[object DataView]",ese="[object Float32Array]",tse="[object Float64Array]",rse="[object Int8Array]",nse="[object Int16Array]",ise="[object Int32Array]",ase="[object Uint8Array]",ose="[object Uint8ClampedArray]",sse="[object Uint16Array]",lse="[object Uint32Array]";function use(e,t,r){var n=e.constructor;switch(t){case Qoe:return zoe(e);case Voe:case Goe:return new n(+e);case Joe:return Boe(e,r);case ese:case tse:case rse:case nse:case ise:case ase:case ose:case sse:case lse:return joe(e,r);case Uoe:return new n;case Yoe:case Zoe:return new n(e);case qoe:return Woe(e);case Xoe:return new n;case Koe:return Hoe(e)}}var cse=use,dse=ha,qb=Object.create,hse=function(){function e(){}return function(t){if(!dse(t))return{};if(qb)return qb(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),fse=hse,pse=fse,mse=QT,gse=Nd;function vse(e){return typeof e.constructor=="function"&&!gse(e)?pse(mse(e)):{}}var yse=vse,bse=Ll,_se=Ri,wse="[object Map]";function xse(e){return _se(e)&&bse(e)==wse}var Cse=xse,Tse=Cse,Mse=Cg,Xb=el.exports,Zb=Xb&&Xb.isMap,Sse=Zb?Mse(Zb):Tse,Ese=Sse,Pse=Ll,Ase=Ri,Rse="[object Set]";function Ose(e){return Ase(e)&&Pse(e)==Rse}var kse=Ose,Dse=kse,Nse=Cg,Kb=el.exports,Qb=Kb&&Kb.isSet,Lse=Qb?Nse(Qb):Dse,Ise=Lse,$se=kne,Fse=UT,zse=_g,Bse=Zie,Wse=fae,Hse=em.exports,jse=ZT,Vse=Sae,Gse=Fae,Use=Uae,Yse=Kae,qse=Ll,Xse=Coe,Zse=cse,Kse=yse,Qse=en,Jse=Js.exports,ele=Ese,tle=ha,rle=Ise,nle=Ld,ile=Mg,ale=1,ole=2,sle=4,rM="[object Arguments]",lle="[object Array]",ule="[object Boolean]",cle="[object Date]",dle="[object Error]",nM="[object Function]",hle="[object GeneratorFunction]",fle="[object Map]",ple="[object Number]",iM="[object Object]",mle="[object RegExp]",gle="[object Set]",vle="[object String]",yle="[object Symbol]",ble="[object WeakMap]",_le="[object ArrayBuffer]",wle="[object DataView]",xle="[object Float32Array]",Cle="[object Float64Array]",Tle="[object Int8Array]",Mle="[object Int16Array]",Sle="[object Int32Array]",Ele="[object Uint8Array]",Ple="[object Uint8ClampedArray]",Ale="[object Uint16Array]",Rle="[object Uint32Array]",mt={};mt[rM]=mt[lle]=mt[_le]=mt[wle]=mt[ule]=mt[cle]=mt[xle]=mt[Cle]=mt[Tle]=mt[Mle]=mt[Sle]=mt[fle]=mt[ple]=mt[iM]=mt[mle]=mt[gle]=mt[vle]=mt[yle]=mt[Ele]=mt[Ple]=mt[Ale]=mt[Rle]=!0;mt[dle]=mt[nM]=mt[ble]=!1;function qu(e,t,r,n,i,a){var o,s=t&ale,u=t&ole,c=t&sle;if(r&&(o=i?r(e,n,i,a):r(e)),o!==void 0)return o;if(!tle(e))return e;var h=Qse(e);if(h){if(o=Xse(e),!s)return jse(e,o)}else{var f=qse(e),p=f==nM||f==hle;if(Jse(e))return Hse(e,s);if(f==iM||f==rM||p&&!i){if(o=u||p?{}:Kse(e),!s)return u?Gse(e,Wse(o,e)):Vse(e,Bse(o,e))}else{if(!mt[f])return i?e:{};o=Zse(e,f,s)}}a||(a=new $se);var g=a.get(e);if(g)return g;a.set(e,o),rle(e)?e.forEach(function(w){o.add(qu(w,t,r,w,e,a))}):ele(e)&&e.forEach(function(w,C){o.set(C,qu(w,t,r,C,e,a))});var b=c?u?Yse:Use:u?ile:nle,v=h?void 0:b(e);return Fse(v||e,function(w,C){v&&(C=w,w=e[C]),zse(o,C,qu(w,t,r,C,e,a))}),o}var Ole=qu,kle=Ole,Dle=4;function Nle(e){return kle(e,Dle)}var Lle=Nle;function Ile(e,t){return e<t}var Ru=function(){function e(t,r){gt(this,e),this._items=t||[],this._size=this._items.length,this._comparator=r||Ile,this._heapify()}return vt(e,[{key:"empty",value:function(){return this._size===0}},{key:"pop",value:function(){if(this._size!==0){var r=this._items[0],n=this._items.pop();return this._size--,this._size>0&&(this._items[0]=n,this._sinkDown(0)),r}}},{key:"push",value:function(r){this._items[this._size++]=r,this._bubbleUp(this._size-1)}},{key:"size",value:function(){return this._size}},{key:"peek",value:function(){if(this._size!==0)return this._items[0]}},{key:"_heapify",value:function(){for(var r=Math.floor((this._size+1)/2);r>=0;r--)this._sinkDown(r)}},{key:"_bubbleUp",value:function(r){for(var n=this._items[r];r>0;){var i=Math.floor((r+1)/2)-1,a=this._items[i];if(this._comparator(a,n))return;this._items[i]=n,this._items[r]=a,r=i}}},{key:"_sinkDown",value:function(r){for(var n=this._items[r];;){var i=2*(r+1)-1,a=2*(r+1),o=-1;if(i<this._size){var s=this._items[i];this._comparator(s,n)&&(o=i)}if(a<this._size){var u=this._items[a];this._comparator(u,n)&&(o===-1||this._comparator(u,this._items[o]))&&(o=a)}if(o===-1)return;this._items[r]=this._items[o],this._items[o]=n,r=o}}}]),e}(),aM=function(){function e(){gt(this,e),this._valueToPositionMap={},this._size=0,this._smallValues=new Ru([],this._smallerComparator),this._largeValues=new Ru([],this._greaterComparator),this.getNewPositionForValue=this.getNewPositionForValue.bind(this),this.getValuePosition=this.getValuePosition.bind(this),this.getSize=this.getSize.bind(this),this.replaceFurthestValuePosition=this.replaceFurthestValuePosition.bind(this)}return vt(e,[{key:"getSize",value:function(){return this._size}},{key:"getValuePosition",value:function(r){return this._valueToPositionMap[r]===void 0?null:this._valueToPositionMap[r]}},{key:"getNewPositionForValue",value:function(r){Cn(this._valueToPositionMap[r]===void 0,"Shouldn't try to find new position for value already stored in BufferSet");var n=this._size;return this._size++,this._pushToHeaps(n,r),this._valueToPositionMap[r]=n,n}},{key:"replaceFurthestValuePosition",value:function(r,n,i){if(Cn(this._valueToPositionMap[i]===void 0,"Shouldn't try to replace values with value already stored value in BufferSet"),this._cleanHeaps(),this._smallValues.empty()||this._largeValues.empty())return null;var a=this._smallValues.peek().value,o=this._largeValues.peek().value;if(a>=r&&o<=n)return null;var s;r-a>o-n?(s=a,this._smallValues.pop()):(s=o,this._largeValues.pop());var u=this._valueToPositionMap[s];return delete this._valueToPositionMap[s],this._valueToPositionMap[i]=u,this._pushToHeaps(u,i),u}},{key:"_pushToHeaps",value:function(r,n){var i={position:r,value:n};this._smallValues.push(i),this._largeValues.push(i)}},{key:"_cleanHeaps",value:function(){this._cleanHeap(this._smallValues),this._cleanHeap(this._largeValues);var r=Math.min(this._smallValues.size(),this._largeValues.size()),n=Math.max(this._smallValues.size(),this._largeValues.size());n>10*r&&this._recreateHeaps()}},{key:"_recreateHeaps",value:function(){for(var r=this._smallValues.size()<this._largeValues.size()?this._smallValues:this._largeValues,n=new Ru([],this._smallerComparator),i=new Ru([],this._greaterComparator);!r.empty();){var a=r.pop();this._valueToPositionMap[a.value]!==void 0&&(n.push(a),i.push(a))}this._smallValues=n,this._largeValues=i}},{key:"_cleanHeap",value:function(r){for(;!r.empty()&&this._valueToPositionMap[r.peek().value]===void 0;)r.pop()}},{key:"_smallerComparator",value:function(r,n){return r.value<n.value}},{key:"_greaterComparator",value:function(r,n){return r.value>n.value}}]),e}(),pr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ff=function(t){return Math.floor(t/2)},$le=pr.Int32Array||function(e){for(var t=[],r=e-1;r>=0;--r)t[r]=0;return t};function Fle(e){for(var t=1;t<e;)t*=2;return t}var zle=function(){function e(t){gt(this,e),this._size=t.length,this._half=Fle(this._size),this._heap=new $le(2*this._half);var r;for(r=0;r<this._size;++r)this._heap[this._half+r]=t[r];for(r=this._half-1;r>0;--r)this._heap[r]=this._heap[2*r]+this._heap[2*r+1]}return vt(e,[{key:"set",value:function(r,n){Cn(0<=r&&r<this._size,"Index out of range %s",r);var i=this._half+r;for(this._heap[i]=n,i=ff(i);i!==0;i=ff(i))this._heap[i]=this._heap[2*i]+this._heap[2*i+1]}},{key:"get",value:function(r){Cn(0<=r&&r<this._size,"Index out of range %s",r);var n=this._half+r;return this._heap[n]}},{key:"getSize",value:function(){return this._size}},{key:"sumUntil",value:function(r){if(Cn(0<=r&&r<this._size+1,"Index out of range %s",r),r===0)return 0;for(var n=this._half+r-1,i=this._heap[n];n!==1;n=ff(n))n%2===1&&(i+=this._heap[n-1]);return i}},{key:"sumTo",value:function(r){return Cn(0<=r&&r<this._size,"Index out of range %s",r),this.sumUntil(r+1)}},{key:"sum",value:function(r,n){return Cn(r<=n,"Begin must precede end"),this.sumUntil(n)-this.sumUntil(r)}},{key:"greatestLowerBound",value:function(r){if(r<0)return-1;var n=1;if(this._heap[n]<=r)return this._size;for(;n<this._half;){var i=this._heap[2*n];r<i?n=2*n:(n=2*n+1,r-=i)}return n-this._half}},{key:"greatestStrictLowerBound",value:function(r){if(r<=0)return-1;var n=1;if(this._heap[n]<r)return this._size;for(;n<this._half;){var i=this._heap[2*n];r<=i?n=2*n:(n=2*n+1,r-=i)}return n-this._half}},{key:"leastUpperBound",value:function(r){return this.greatestStrictLowerBound(r)+1}},{key:"leastStrictUpperBound",value:function(r){return this.greatestLowerBound(r)+1}}],[{key:"uniform",value:function(r,n){for(var i=[],a=r-1;a>=0;--a)i[a]=n;return new e(i)}},{key:"empty",value:function(r){return e.uniform(r,0)}}]),e}();function tl(e,t){if(e===t)return!0;if(ti(e)!=="object"||e===null||ti(t)!=="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),a=0;a<r.length;a++)if(!i(r[a])||e[r[a]]!==t[r[a]])return!1;return!0}var ke={FIXED:"fixed",FIXED_RIGHT:"fixedRight",SCROLLABLE:"scrollable"};function om(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Ble(e))||t){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
366
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return a=c.done,c},e:function(c){o=!0,s=c},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(o)throw s}}}}function Ble(e,t){if(e){if(typeof e=="string")return Jb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jb(e,t)}}function Jb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pf(e){var t=e.props,r=t.align,n=t.allowCellsRecycling,i=t.cellClassName,a=t.columnKey,o=t.flexGrow,s=t.fixed,u=t.fixedRight,c=t.maxWidth,h=t.minWidth,f=t.isReorderable,p=t.isResizable,g=t.pureRendering,b=t.width;return{align:r,allowCellsRecycling:n,cellClassName:i,columnKey:a,flexGrow:o,fixed:s,fixedRight:u,maxWidth:c,minWidth:h,isReorderable:f,isResizable:p,pureRendering:g,width:b}}function e2(e,t){e.cell.push(t.props.cell),e.footer.push(t.props.footer),e.header.push(t.props.header)}function sm(e){var t,r;return e!=null&&(t=e.props)!==null&&t!==void 0&&t.fixed?ke.FIXED:e!=null&&(r=e.props)!==null&&r!==void 0&&r.fixedRight?ke.FIXED_RIGHT:ke.SCROLLABLE}function rl(){var e;return e={},ue(e,ke.FIXED,[]),ue(e,ke.SCROLLABLE,[]),ue(e,ke.FIXED_RIGHT,[]),e}function Wle(){return{groupHeader:[],header:[],cell:[],footer:[]}}function t2(e){var t=rl(),r=om(e),n;try{for(r.s();!(n=r.n()).done;){var i=n.value,a=sm(i);t[a].push(i)}}catch(s){r.e(s)}finally{r.f()}var o=[];return o.push.apply(o,t[ke.FIXED]),o.push.apply(o,t[ke.SCROLLABLE]),o.push.apply(o,t[ke.FIXED_RIGHT]),o}function r2(e,t){return t===ke.FIXED?e[ke.FIXED].length:t===ke.SCROLLABLE?e[ke.FIXED].length+e[ke.SCROLLABLE].length:e[ke.FIXED].length+e[ke.SCROLLABLE].length+e[ke.FIXED_RIGHT].length}function Hle(e){var t,r,n=[];k.Children.forEach(e,function(g,b){g!=null&&(Cn(g.type.__TableColumnGroup__||g.type.__TableColumn__,"child type should be <FixedDataTableColumn /> or <FixedDataTableColumnGroup />"),n.push(g))});var i=rl(),a=rl(),o=Wle(),s=(t=(r=n[0])===null||r===void 0?void 0:r.type.__TableColumnGroup__)!==null&&t!==void 0?t:!1;if(s)(function(){var g=0,b=om(t2(n)),v;try{var w=function(){var M=v.value,E=sm(M),S=pf(M);S.index=r2(a,E),a[E].push(S),o.groupHeader.push(M.props.header),k.Children.forEach(M.props.children,function(P){var R=pf(P);R.index=g++,R.groupIdx=S.index,i[E].push(R),e2(o,P)})};for(b.s();!(v=b.n()).done;)w()}catch(C){b.e(C)}finally{b.f()}})();else{var u=om(t2(n)),c;try{for(u.s();!(c=u.n()).done;){var h=c.value,f=sm(h),p=pf(h);p.index=r2(i,f),i[f].push(p),e2(o,h)}}catch(g){u.e(g)}finally{u.f()}}return{columnGroupElements:a,columnElements:i,elementTemplates:o,useGroupHeader:s}}function Id(e,t,r){return e<t?t:e>r?r:e}var Tc="NOT_FOUND";function jle(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:Tc},put:function(n,i){t={key:n,value:i}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Vle(e,t){var r=[];function n(s){var u=r.findIndex(function(h){return t(s,h.key)});if(u>-1){var c=r[u];return u>0&&(r.splice(u,1),r.unshift(c)),c.value}return Tc}function i(s,u){n(s)===Tc&&(r.unshift({key:s,value:u}),r.length>e&&r.pop())}function a(){return r}function o(){r=[]}return{get:n,put:i,getEntries:a,clear:o}}var Gle=function(t,r){return t===r};function Ule(e){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;for(var i=r.length,a=0;a<i;a++)if(!e(r[a],n[a]))return!1;return!0}}function Yle(e,t){var r=typeof t=="object"?t:{equalityCheck:t},n=r.equalityCheck,i=n===void 0?Gle:n,a=r.maxSize,o=a===void 0?1:a,s=r.resultEqualityCheck,u=Ule(i),c=o===1?jle(u):Vle(o,u);function h(){var f=c.get(arguments);if(f===Tc){if(f=e.apply(null,arguments),s){var p=c.getEntries(),g=p.find(function(b){return s(b.value,f)});g&&(f=g.value)}c.put(arguments,f)}return f}return h.clearCache=function(){return c.clear()},h}function qle(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(n){return typeof n=="function"})){var r=t.map(function(n){return typeof n=="function"?"function "+(n.name||"unnamed")+"()":typeof n}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+r+"]")}return t}function Xle(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=function(){for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];var c=0,h,f={memoizeOptions:void 0},p=s.pop();if(typeof p=="object"&&(f=p,p=s.pop()),typeof p!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof p+"]");var g=f,b=g.memoizeOptions,v=b===void 0?r:b,w=Array.isArray(v)?v:[v],C=qle(s),M=e.apply(void 0,[function(){return c++,p.apply(null,arguments)}].concat(w)),E=e(function(){for(var P=[],R=C.length,N=0;N<R;N++)P.push(C[N].apply(null,arguments));return h=M.apply(null,P),h});return Object.assign(E,{resultFunc:p,memoizedResultFunc:M,dependencies:C,lastResult:function(){return h},recomputations:function(){return c},resetRecomputations:function(){return c=0}}),E};return i}var $d=Xle(Yle),ai=$d;function Zle(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Kle(e))||t){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
367
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return a=c.done,c},e:function(c){o=!0,s=c},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(o)throw s}}}}function Kle(e,t){if(e){if(typeof e=="string")return n2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n2(e,t)}}function n2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var oM=[],Qle={},Pg={memoizeOptions:{maxSize:12}},Xu=$d(function(e){return e||oM},function(e){return e.reduce(function(t,r){return t+r.props.width},0)},Pg),eo=$d(function(e){return e||oM},function(e){return e.reduce(function(t,r){return t+r.width},0)},Pg);function sM(e){return eo(e.fixed)+eo(e.fixedRight)+eo(e.scrollable)}var Jle=$d(function(e){return e||Qle},function(e){var t=Array.prototype.concat.call(e.fixed,e.scrollable,e.fixedRight),r=0,n=Zle(t),i;try{for(n.s();!(i=n.n()).done;){var a=i.value;r+=a.flexGrow||0}}catch(o){n.e(o)}finally{n.f()}return r},Pg),eue=1,tue=3,rue=6,vi={HIDDEN:"hidden",JOINT_SCROLLBARS:"JOINT_SCROLLBARS",VISIBLE:"visible"};function nue(e,t,r,n,i,a,o){var s=t.cellGroupWrapperHeight,u=t.footerHeight,c=t.headerHeight,h=t.groupHeaderHeight,f=s?0:2*eue,p=u+c+h+f,g=i.height,b=i.maxHeight,v=i.useMaxHeight,w=i.width,C=Math.round(v?b:g),M=C-p,E=iue(e,n,w,o),S=M,P=M;switch(E){case vi.VISIBLE:{S-=a,P-=a;break}case vi.JOINT_SCROLLBARS:{S-=a;break}}return{bufferRowCount:aue(P,r),minAvailableHeight:Math.max(S,0),maxAvailableHeight:Math.max(P,0),reservedHeight:p,scrollStateX:E}}function iue(e,t,r,n){var i=t.overflowX,a=t.showScrollbarX,o=sM(e);return i==="hidden"||a===!1?vi.HIDDEN:o>r?vi.VISIBLE:o>r-n?vi.JOINT_SCROLLBARS:vi.HIDDEN}function aue(e,t){var r=t.bufferRowCount,n=t.rowHeight,i=t.subRowHeight;if(r!==void 0)return r;var a=n+i,o=Math.ceil(e/a)+1;return Id(Math.floor(o/2),tue,rue)}var Ag=ai([function(e){return e.columnElements},function(e){return e.elementHeights},function(e){return e.rowSettings},function(e){return e.scrollFlags},function(e){return e.tableSize},function(e){return e.scrollbarXHeight},function(e){return e.scrollbarYWidth}],nue);function oue(e,t,r){var n=r.overflowY,i=r.showScrollbarY,a=n!=="hidden"&&i!==!1,o=e.minAvailableHeight,s=e.maxAvailableHeight,u=e.scrollStateX,c=!1,h=!1;u===vi.VISIBLE&&(h=!0),a&&t>s&&(c=!0),c&&u===vi.JOINT_SCROLLBARS&&(h=!0);var f=s;return h&&(f=o),{availableHeight:f,scrollEnabledX:h,scrollEnabledY:c}}var na=ai([Ag,function(e){return e.scrollContentHeight},function(e){return e.scrollFlags}],oue);function Gi(e,t){var r=e.rowSettings,n=e.getInternal(),i=n.storedHeights,a=n.rowOffsetIntervalTree,o=r.rowHeightGetter,s=r.subRowHeightGetter,u=o(t)+s(t),c=i[t];return u!==c&&(a.set(t,u),i[t]=u,e.scrollContentHeight+=u-c),i[t]}function i2(e,t,r){return t.scrollToRow!==void 0&&t.scrollToRow!==null&&(!r||t.scrollToRow!==r.scrollToRow)?sue(e,t.scrollToRow):t.scrollTop!==void 0&&t.scrollTop!==null&&(!r||t.scrollTop!==r.scrollTop)?lm(e,t.scrollTop):{firstIndex:e.firstRowIndex,firstOffset:e.firstRowOffset,lastIndex:void 0,changed:!1}}function lm(e,t){var r=na(e),n=r.availableHeight,i=e.rowSettings,a=e.scrollContentHeight,o=e.getInternal(),s=o.rowOffsetIntervalTree,u=i.rowsCount;if(e.rowSettings.rowHeightGetter!=null&&e.isVerticalScrollExact){for(var c=e.getInternal(),h=c.rowUntilOffsetsAreExact;h<u;)Gi(e,h++);e.getInternal().rowUntilOffsetsAreExact=u}if(u===0)return{firstIndex:0,firstOffset:0,lastIndex:void 0,changed:e.firstRowIndex!==0||e.firstRowOffset!==0};var f=0,p=0,g=void 0;if(!(t<=0))if(t>=a-n)f=void 0,g=u-1;else{var b=s.greatestLowerBound(t);f=Id(b,0,Math.max(u-1,0));var v=s.sumUntil(f);p=v-t}return{firstIndex:f,firstOffset:p,lastIndex:g,changed:!0}}function sue(e,t){var r=na(e),n=r.availableHeight,i=e.rowSettings,a=e.scrollY,o=e.getInternal(),s=o.rowOffsetIntervalTree,u=o.storedHeights,c=i.rowsCount;if(c===0)return{firstIndex:0,firstOffset:0,lastIndex:void 0,changed:e.firstRowIndex!==0||e.firstRowOffset!==0};t=Id(t,0,Math.max(c-1,0)),Gi(e,t);var h=s.sumUntil(t),f=h+u[t],p=t,g=void 0;if(!(h<a))if(a+n<f)p=void 0,g=t;else return{firstIndex:e.firstRowIndex,firstOffset:e.firstRowOffset,lastIndex:void 0,changed:!1};return{firstIndex:p,firstOffset:0,lastIndex:g,changed:!0}}function lue(e){return e==null}var Ls=lue;function uue(e,t,r){return e===e&&(r!==void 0&&(e=e<=r?e:r),t!==void 0&&(e=e>=t?e:t)),e}var cue=uue,due=/\s/;function hue(e){for(var t=e.length;t--&&due.test(e.charAt(t)););return t}var fue=hue,pue=fue,mue=/^\s+/;function gue(e){return e&&e.slice(0,pue(e)+1).replace(mue,"")}var vue=gue,yue=vue,a2=ha,bue=Md,o2=NaN,_ue=/^[-+]0x[0-9a-f]+$/i,wue=/^0b[01]+$/i,xue=/^0o[0-7]+$/i,Cue=parseInt;function Tue(e){if(typeof e=="number")return e;if(bue(e))return o2;if(a2(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=a2(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=yue(e);var r=wue.test(e);return r||xue.test(e)?Cue(e.slice(2),r?2:8):_ue.test(e)?o2:+e}var Rg=Tue,Mue=cue,mf=Rg;function Sue(e,t,r){return r===void 0&&(r=t,t=void 0),r!==void 0&&(r=mf(r),r=r===r?r:0),t!==void 0&&(t=mf(t),t=t===t?t:0),Mue(mf(e),t,r)}var Fd=Sue,Eue=kd,Pue=WT,Aue=ZT,Rue=en;function Oue(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return Eue(Rue(r)?Aue(r):[r],Pue(t,1))}var s2=Oue;function l2(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=kue(e))||t){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
368
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return a=c.done,c},e:function(c){o=!0,s=c},f:function(){try{!a&&r.return!=null&&r.return()}finally{if(o)throw s}}}}function kue(e,t){if(e){if(typeof e=="string")return u2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u2(e,t)}}function u2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Due(e,t,r,n,i){var a=r?i:0,o=n-a,s=Nue(e,t,o),u=s.columnGroupElements,c=s.columnElements,h=c2(c),f=h.fixed,p=h.fixedRight,g=h.scrollable,b=c2(u),v=b.fixed,w=b.fixedRight,C=b.scrollable,M=eo(f),E=eo(p),S=eo(g),P=o-M-E,R=Math.max(0,M+E+S-o);return{columnGroupProps:s2(v,C,w),columnProps:s2(f,g,p),availableScrollWidth:P,fixedColumns:f,fixedRightColumns:p,scrollableColumns:g,fixedColumnGroups:v,fixedRightColumnGroups:w,scrollableColumnGroups:C,maxScrollX:R}}function Nue(e,t,r){var n=rl(),i=rl(),a=sM(t),o=Jle(t),s=Math.max(r-a,0),u=[];for(var c in t){var h=t[c],f=0,p=0,g=l2(h),b;try{for(g.s();!(b=g.n()).done;){var v=b.value,w=v.flexGrow||0,C=0;w&&(C=Math.floor(w*s/o));var M=v.width+C;o-=w,s-=C;var E=Mt({},v,{width:M,offset:f});f+=M,u[v.groupIdx]=M+(u[v.groupIdx]||0),i[c][p]=E,p++}}catch(F){g.e(F)}finally{g.f()}}for(var S in e){var P=e[S],R=0,N=0,B=l2(P),U;try{for(B.s();!(U=B.n()).done;){var K=U.value,Q=u[K.index],O=Mt({},K,{width:Q,offset:R});R+=Q,n[S][N]=O,N++}}catch(F){B.e(F)}finally{B.f()}}return{columnGroupElements:n,columnElements:i}}function c2(e){return{fixed:e.fixed,fixedRight:e.fixedRight,scrollable:e.scrollable}}var Il=ai([function(e){return e.columnGroupElements},function(e){return e.columnElements},function(e){return na(e).scrollEnabledY},function(e){return e.tableSize.width},function(e){return e.scrollbarYWidth}],Due);function Lue(e,t,r){var n=t.scrollLeft,i=e.scrollX;n!==void 0&&(!r||n!==r.scrollLeft)&&(i=n),i=Iue(e,t,r.scrollToColumn,i);var a=Il(e),o=a.maxScrollX;i=Fd(i,0,o),Mt(e,{maxScrollX:o,scrollX:i})}function Iue(e,t,r,n){var i=t.scrollToColumn;if(Ls(i))return n;var a=Il(e),o=a.availableScrollWidth,s=a.fixedColumns,u=a.scrollableColumns,c=s.length,h=u.length,f=h===0,p=i===r,g=i<c,b=i>=c+h;if(p||g||b||f)return n;for(var v=Math.min(i-c,u.length-1),w=0,C=0;C<v;++C)w+=u[C].width;var M=u[v].width,E=w+M-o;return n<E?E:n>w?w:n}var d2={initialize:Lue};function $ue(e,t,r,n,i,a,o){var s=i.availableHeight,u=i.scrollEnabledX,c=r;u&&(c+=o);var h=Math.min(s,n),f=a?h:s,p=f+c,g=f;t<p&&(g=t-c);var b=a?n:Math.max(n,s),v=b+c;t&&(v=Math.max(t,v));var w=e.footerHeight,C=e.groupHeaderHeight,M=e.headerHeight,E=C+M,S=E+g,P=S+w,R=Math.max(0,S-E);return{bodyHeight:h,bodyOffsetTop:E,componentHeight:p,contentHeight:v,footOffsetTop:S,scrollbarXOffsetTop:P,scrollbarYHeight:R,visibleRowsHeight:g}}var qa=ai([function(e){return e.elementHeights},function(e){return e.tableSize.ownerHeight},function(e){return Ag(e).reservedHeight},function(e){return e.scrollContentHeight},na,function(e){return e.tableSize.useMaxHeight},function(e){return e.scrollbarXHeight}],$ue);function us(e,t){var r=h2(e,t),n=e.rowSettings,i=e.scrollContentHeight,a=n.rowsCount,o=qa(e),s=o.bodyHeight,u=i-s,c;u===0?(r.firstViewportIdx>0&&(r=h2(e,{firstOffset:0,lastIndex:a-1})),c=0):c=r.firstOffset;var h=r.firstViewportIdx,f=r.endViewportIdx;Fue(e,r,e.scrolling);var p=0;a>0&&(p=e.rowOffsets[r.firstViewportIdx]-c),p=Fd(p,0,u),Mt(e,{firstRowIndex:h,firstRowOffset:c,endRowIndex:f,maxScrollY:u,scrollY:p})}function h2(e,t){var r=Ag(e),n=r.bufferRowCount,i=r.maxAvailableHeight,a=e.rowSettings.rowsCount;if(a===0)return{endBufferIdx:0,endViewportIdx:0,firstBufferIdx:0,firstOffset:0,firstViewportIdx:0};var o=t.firstIndex,s=t.firstOffset,u=t.lastIndex;(o>=a||u>=a)&&(u=a-1);var c=1,h=o,f=s;u!==void 0&&(c=-1,h=u,f=0);for(var p=h,g=p;p<a&&p>=0&&f<i;)f+=Gi(e,p),g=p,p+=c;var b=!1;if(f<i&&p===a&&u===void 0)for(b=!0,p=o-1;p>=0&&f<i;)f+=Gi(e,p),h=p,--p;var v=Math.min(h,g),w=Math.max(v-n,0);for(p=w;p<v;p++)Gi(e,p);var C=Math.max(h,g)+1,M=Math.min(C+n,a);for(p=C;p<M;p++)Gi(e,p);var E=na(e),S=E.availableHeight;if(u!==void 0||b){s=s+Math.min(S-f,0);var P=e.getInternal(),R=P.storedHeights;-1*s>=R[v]&&(v+=1,s+=R[v])}return{endBufferIdx:M,endViewportIdx:C,firstBufferIdx:w,firstOffset:s,firstViewportIdx:v}}function Fue(e,t,r){var n=e.getInternal(),i=n.rowBufferSet,a=n.rowOffsetIntervalTree,o=n.storedHeights,s=t.endBufferIdx,u=t.endViewportIdx,c=t.firstBufferIdx,h=t.firstViewportIdx,f=s-c;if(f===0){e.rowOffsets={},e.rows=[];return}for(var p=r?h:c,g=r?u:s,b=[],v={},w=a.sumUntil(p),C=p;C<g;C++){v[C]=w,w+=o[C];var M=zue(C,i,p,g,f);b[M]=C}e.rows=b,e.rowOffsets=v}function zue(e,t,r,n,i){var a=t.getValuePosition(e);return a===null&&t.getSize()>=i&&(a=t.replaceFurthestValuePosition(r,n-1,e)),a===null&&(a=t.getNewPositionForValue(e)),a}var um={exports:{}},Mc={exports:{}},at={};/** @license React v16.13.1
369
+ * react-is.production.min.js
370
+ *
371
+ * Copyright (c) Facebook, Inc. and its affiliates.
372
+ *
373
+ * This source code is licensed under the MIT license found in the
374
+ * LICENSE file in the root directory of this source tree.
375
+ */var rr=typeof Symbol=="function"&&Symbol.for,Og=rr?Symbol.for("react.element"):60103,kg=rr?Symbol.for("react.portal"):60106,zd=rr?Symbol.for("react.fragment"):60107,Bd=rr?Symbol.for("react.strict_mode"):60108,Wd=rr?Symbol.for("react.profiler"):60114,Hd=rr?Symbol.for("react.provider"):60109,jd=rr?Symbol.for("react.context"):60110,Dg=rr?Symbol.for("react.async_mode"):60111,Vd=rr?Symbol.for("react.concurrent_mode"):60111,Gd=rr?Symbol.for("react.forward_ref"):60112,Ud=rr?Symbol.for("react.suspense"):60113,Bue=rr?Symbol.for("react.suspense_list"):60120,Yd=rr?Symbol.for("react.memo"):60115,qd=rr?Symbol.for("react.lazy"):60116,Wue=rr?Symbol.for("react.block"):60121,Hue=rr?Symbol.for("react.fundamental"):60117,jue=rr?Symbol.for("react.responder"):60118,Vue=rr?Symbol.for("react.scope"):60119;function zr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Og:switch(e=e.type,e){case Dg:case Vd:case zd:case Wd:case Bd:case Ud:return e;default:switch(e=e&&e.$$typeof,e){case jd:case Gd:case qd:case Yd:case Hd:return e;default:return t}}case kg:return t}}}function lM(e){return zr(e)===Vd}at.AsyncMode=Dg;at.ConcurrentMode=Vd;at.ContextConsumer=jd;at.ContextProvider=Hd;at.Element=Og;at.ForwardRef=Gd;at.Fragment=zd;at.Lazy=qd;at.Memo=Yd;at.Portal=kg;at.Profiler=Wd;at.StrictMode=Bd;at.Suspense=Ud;at.isAsyncMode=function(e){return lM(e)||zr(e)===Dg};at.isConcurrentMode=lM;at.isContextConsumer=function(e){return zr(e)===jd};at.isContextProvider=function(e){return zr(e)===Hd};at.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Og};at.isForwardRef=function(e){return zr(e)===Gd};at.isFragment=function(e){return zr(e)===zd};at.isLazy=function(e){return zr(e)===qd};at.isMemo=function(e){return zr(e)===Yd};at.isPortal=function(e){return zr(e)===kg};at.isProfiler=function(e){return zr(e)===Wd};at.isStrictMode=function(e){return zr(e)===Bd};at.isSuspense=function(e){return zr(e)===Ud};at.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===zd||e===Vd||e===Wd||e===Bd||e===Ud||e===Bue||typeof e=="object"&&e!==null&&(e.$$typeof===qd||e.$$typeof===Yd||e.$$typeof===Hd||e.$$typeof===jd||e.$$typeof===Gd||e.$$typeof===Hue||e.$$typeof===jue||e.$$typeof===Vue||e.$$typeof===Wue)};at.typeOf=zr;var nt={};/** @license React v16.13.1
376
+ * react-is.development.js
377
+ *
378
+ * Copyright (c) Facebook, Inc. and its affiliates.
379
+ *
380
+ * This source code is licensed under the MIT license found in the
381
+ * LICENSE file in the root directory of this source tree.
382
+ */process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function E(J){return typeof J=="string"||typeof J=="function"||J===n||J===c||J===a||J===i||J===f||J===p||typeof J=="object"&&J!==null&&(J.$$typeof===b||J.$$typeof===g||J.$$typeof===o||J.$$typeof===s||J.$$typeof===h||J.$$typeof===w||J.$$typeof===C||J.$$typeof===M||J.$$typeof===v)}function S(J){if(typeof J=="object"&&J!==null){var _e=J.$$typeof;switch(_e){case t:var ve=J.type;switch(ve){case u:case c:case n:case a:case i:case f:return ve;default:var Ee=ve&&ve.$$typeof;switch(Ee){case s:case h:case b:case g:case o:return Ee;default:return _e}}case r:return _e}}}var P=u,R=c,N=s,B=o,U=t,K=h,Q=n,O=b,F=g,q=r,j=a,V=i,W=f,G=!1;function te(J){return G||(G=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(J)||S(J)===u}function z(J){return S(J)===c}function Y(J){return S(J)===s}function ie(J){return S(J)===o}function ne(J){return typeof J=="object"&&J!==null&&J.$$typeof===t}function re(J){return S(J)===h}function oe(J){return S(J)===n}function se(J){return S(J)===b}function de(J){return S(J)===g}function ce(J){return S(J)===r}function ge(J){return S(J)===a}function Te(J){return S(J)===i}function ye(J){return S(J)===f}nt.AsyncMode=P,nt.ConcurrentMode=R,nt.ContextConsumer=N,nt.ContextProvider=B,nt.Element=U,nt.ForwardRef=K,nt.Fragment=Q,nt.Lazy=O,nt.Memo=F,nt.Portal=q,nt.Profiler=j,nt.StrictMode=V,nt.Suspense=W,nt.isAsyncMode=te,nt.isConcurrentMode=z,nt.isContextConsumer=Y,nt.isContextProvider=ie,nt.isElement=ne,nt.isForwardRef=re,nt.isFragment=oe,nt.isLazy=se,nt.isMemo=de,nt.isPortal=ce,nt.isProfiler=ge,nt.isStrictMode=Te,nt.isSuspense=ye,nt.isValidElementType=E,nt.typeOf=S}();process.env.NODE_ENV==="production"?Mc.exports=at:Mc.exports=nt;/*
383
+ object-assign
384
+ (c) Sindre Sorhus
385
+ @license MIT
386
+ */var f2=Object.getOwnPropertySymbols,Gue=Object.prototype.hasOwnProperty,Uue=Object.prototype.propertyIsEnumerable;function Yue(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function que(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}var Xue=que()?Object.assign:function(e,t){for(var r,n=Yue(e),i,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var o in r)Gue.call(r,o)&&(n[o]=r[o]);if(f2){i=f2(r);for(var s=0;s<i.length;s++)Uue.call(r,i[s])&&(n[i[s]]=r[i[s]])}}return n},Zue="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Ng=Zue,uM=Function.call.bind(Object.prototype.hasOwnProperty),cm=function(){};if(process.env.NODE_ENV!=="production"){var Kue=Ng,dm={},Que=uM;cm=function(e){var t="Warning: "+e;typeof console!="undefined"&&console.error(t);try{throw new Error(t)}catch(r){}}}function cM(e,t,r,n,i){if(process.env.NODE_ENV!=="production"){for(var a in e)if(Que(e,a)){var o;try{if(typeof e[a]!="function"){var s=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}o=e[a](t,a,n,r,null,Kue)}catch(c){o=c}if(o&&!(o instanceof Error)&&cm((n||"React class")+": type specification of "+r+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof o+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),o instanceof Error&&!(o.message in dm)){dm[o.message]=!0;var u=i?i():"";cm("Failed "+r+" type: "+o.message+(u!=null?u:""))}}}}cM.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(dm={})};var Jue=cM,ece=Mc.exports,tce=Xue,La=Ng,gf=uM,p2=Jue,Ha=function(){};process.env.NODE_ENV!=="production"&&(Ha=function(e){var t="Warning: "+e;typeof console!="undefined"&&console.error(t);try{throw new Error(t)}catch(r){}});function Ou(){return null}var rce=function(e,t){var r=typeof Symbol=="function"&&Symbol.iterator,n="@@iterator";function i(F){var q=F&&(r&&F[r]||F[n]);if(typeof q=="function")return q}var a="<<anonymous>>",o={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:f(),arrayOf:p,element:g(),elementType:b(),instanceOf:v,node:E(),objectOf:C,oneOf:w,oneOfType:M,shape:P,exact:R};function s(F,q){return F===q?F!==0||1/F===1/q:F!==F&&q!==q}function u(F,q){this.message=F,this.data=q&&typeof q=="object"?q:{},this.stack=""}u.prototype=Error.prototype;function c(F){if(process.env.NODE_ENV!=="production")var q={},j=0;function V(G,te,z,Y,ie,ne,re){if(Y=Y||a,ne=ne||z,re!==La){if(t){var oe=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw oe.name="Invariant Violation",oe}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var se=Y+":"+z;!q[se]&&j<3&&(Ha("You are manually calling a React.PropTypes validation function for the `"+ne+"` prop on `"+Y+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),q[se]=!0,j++)}}return te[z]==null?G?te[z]===null?new u("The "+ie+" `"+ne+"` is marked as required "+("in `"+Y+"`, but its value is `null`.")):new u("The "+ie+" `"+ne+"` is marked as required in "+("`"+Y+"`, but its value is `undefined`.")):null:F(te,z,Y,ie,ne)}var W=V.bind(null,!1);return W.isRequired=V.bind(null,!0),W}function h(F){function q(j,V,W,G,te,z){var Y=j[V],ie=U(Y);if(ie!==F){var ne=K(Y);return new u("Invalid "+G+" `"+te+"` of type "+("`"+ne+"` supplied to `"+W+"`, expected ")+("`"+F+"`."),{expectedType:F})}return null}return c(q)}function f(){return c(Ou)}function p(F){function q(j,V,W,G,te){if(typeof F!="function")return new u("Property `"+te+"` of component `"+W+"` has invalid PropType notation inside arrayOf.");var z=j[V];if(!Array.isArray(z)){var Y=U(z);return new u("Invalid "+G+" `"+te+"` of type "+("`"+Y+"` supplied to `"+W+"`, expected an array."))}for(var ie=0;ie<z.length;ie++){var ne=F(z,ie,W,G,te+"["+ie+"]",La);if(ne instanceof Error)return ne}return null}return c(q)}function g(){function F(q,j,V,W,G){var te=q[j];if(!e(te)){var z=U(te);return new u("Invalid "+W+" `"+G+"` of type "+("`"+z+"` supplied to `"+V+"`, expected a single ReactElement."))}return null}return c(F)}function b(){function F(q,j,V,W,G){var te=q[j];if(!ece.isValidElementType(te)){var z=U(te);return new u("Invalid "+W+" `"+G+"` of type "+("`"+z+"` supplied to `"+V+"`, expected a single ReactElement type."))}return null}return c(F)}function v(F){function q(j,V,W,G,te){if(!(j[V]instanceof F)){var z=F.name||a,Y=O(j[V]);return new u("Invalid "+G+" `"+te+"` of type "+("`"+Y+"` supplied to `"+W+"`, expected ")+("instance of `"+z+"`."))}return null}return c(q)}function w(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&(arguments.length>1?Ha("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):Ha("Invalid argument supplied to oneOf, expected an array.")),Ou;function q(j,V,W,G,te){for(var z=j[V],Y=0;Y<F.length;Y++)if(s(z,F[Y]))return null;var ie=JSON.stringify(F,function(re,oe){var se=K(oe);return se==="symbol"?String(oe):oe});return new u("Invalid "+G+" `"+te+"` of value `"+String(z)+"` "+("supplied to `"+W+"`, expected one of "+ie+"."))}return c(q)}function C(F){function q(j,V,W,G,te){if(typeof F!="function")return new u("Property `"+te+"` of component `"+W+"` has invalid PropType notation inside objectOf.");var z=j[V],Y=U(z);if(Y!=="object")return new u("Invalid "+G+" `"+te+"` of type "+("`"+Y+"` supplied to `"+W+"`, expected an object."));for(var ie in z)if(gf(z,ie)){var ne=F(z,ie,W,G,te+"."+ie,La);if(ne instanceof Error)return ne}return null}return c(q)}function M(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&Ha("Invalid argument supplied to oneOfType, expected an instance of array."),Ou;for(var q=0;q<F.length;q++){var j=F[q];if(typeof j!="function")return Ha("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Q(j)+" at index "+q+"."),Ou}function V(W,G,te,z,Y){for(var ie=[],ne=0;ne<F.length;ne++){var re=F[ne],oe=re(W,G,te,z,Y,La);if(oe==null)return null;oe.data&&gf(oe.data,"expectedType")&&ie.push(oe.data.expectedType)}var se=ie.length>0?", expected one of type ["+ie.join(", ")+"]":"";return new u("Invalid "+z+" `"+Y+"` supplied to "+("`"+te+"`"+se+"."))}return c(V)}function E(){function F(q,j,V,W,G){return N(q[j])?null:new u("Invalid "+W+" `"+G+"` supplied to "+("`"+V+"`, expected a ReactNode."))}return c(F)}function S(F,q,j,V,W){return new u((F||"React class")+": "+q+" type `"+j+"."+V+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+W+"`.")}function P(F){function q(j,V,W,G,te){var z=j[V],Y=U(z);if(Y!=="object")return new u("Invalid "+G+" `"+te+"` of type `"+Y+"` "+("supplied to `"+W+"`, expected `object`."));for(var ie in F){var ne=F[ie];if(typeof ne!="function")return S(W,G,te,ie,K(ne));var re=ne(z,ie,W,G,te+"."+ie,La);if(re)return re}return null}return c(q)}function R(F){function q(j,V,W,G,te){var z=j[V],Y=U(z);if(Y!=="object")return new u("Invalid "+G+" `"+te+"` of type `"+Y+"` "+("supplied to `"+W+"`, expected `object`."));var ie=tce({},j[V],F);for(var ne in ie){var re=F[ne];if(gf(F,ne)&&typeof re!="function")return S(W,G,te,ne,K(re));if(!re)return new u("Invalid "+G+" `"+te+"` key `"+ne+"` supplied to `"+W+"`.\nBad object: "+JSON.stringify(j[V],null," ")+`
387
+ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var oe=re(z,ne,W,G,te+"."+ne,La);if(oe)return oe}return null}return c(q)}function N(F){switch(typeof F){case"number":case"string":case"undefined":return!0;case"boolean":return!F;case"object":if(Array.isArray(F))return F.every(N);if(F===null||e(F))return!0;var q=i(F);if(q){var j=q.call(F),V;if(q!==F.entries){for(;!(V=j.next()).done;)if(!N(V.value))return!1}else for(;!(V=j.next()).done;){var W=V.value;if(W&&!N(W[1]))return!1}}else return!1;return!0;default:return!1}}function B(F,q){return F==="symbol"?!0:q?q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&q instanceof Symbol:!1}function U(F){var q=typeof F;return Array.isArray(F)?"array":F instanceof RegExp?"object":B(q,F)?"symbol":q}function K(F){if(typeof F=="undefined"||F===null)return""+F;var q=U(F);if(q==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return q}function Q(F){var q=K(F);switch(q){case"array":case"object":return"an "+q;case"boolean":case"date":case"regexp":return"a "+q;default:return q}}function O(F){return!F.constructor||!F.constructor.name?a:F.constructor.name}return o.checkPropTypes=p2,o.resetWarningCache=p2.resetWarningCache,o.PropTypes=o,o},nce=Ng;function dM(){}function hM(){}hM.resetWarningCache=dM;var ice=function(){function e(n,i,a,o,s,u){if(u!==nce){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:hM,resetWarningCache:dM};return r.PropTypes=r,r};if(process.env.NODE_ENV!=="production"){var ace=Mc.exports,oce=!0;um.exports=rce(ace.isElement,oce)}else um.exports=ice();var H=um.exports,sce=/\//g,ku={};function lce(e){return ku[e]||(ku[e]=e.replace(sce,"_")),ku[e]}function Oe(e){var t;return ti(e)=="object"?t=Object.keys(e).filter(function(r){return e[r]}):t=Array.prototype.slice.call(arguments),t.map(lce).join(" ")}function Xd(e){return function(){return e}}function tr(){}tr.thatReturns=Xd;tr.thatReturnsFalse=Xd(!1);tr.thatReturnsTrue=Xd(!0);tr.thatReturnsNull=Xd(null);tr.thatReturnsThis=function(){return this};tr.thatReturnsArgument=function(e){return e};var _n={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105},m2=!1,Hi,hm,fm,Zu,Ku,fM,Qu,pm,mm,gm,pM,vm,ym,mM,gM;function wr(){if(!m2){m2=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),r=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(vm=/\b(iPhone|iP[ao]d)/.exec(e),ym=/\b(iP[ao]d)/.exec(e),gm=/Android/i.exec(e),mM=/FBAN\/\w+;/i.exec(e),gM=/Mobile/i.exec(e),pM=!!/Win64/.exec(e),t){Hi=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Hi&&document&&document.documentMode&&(Hi=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);fM=n?parseFloat(n[1])+4:Hi,hm=t[2]?parseFloat(t[2]):NaN,fm=t[3]?parseFloat(t[3]):NaN,Zu=t[4]?parseFloat(t[4]):NaN,Zu?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Ku=t&&t[1]?parseFloat(t[1]):NaN):Ku=NaN}else Hi=hm=fm=Ku=Zu=NaN;if(r){if(r[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Qu=i?parseFloat(i[1].replace("_",".")):!0}else Qu=!1;pm=!!r[2],mm=!!r[3]}else Qu=pm=mm=!1}}var bm={ie:function(){return wr()||Hi},ieCompatibilityMode:function(){return wr()||fM>Hi},ie64:function(){return bm.ie()&&pM},firefox:function(){return wr()||hm},opera:function(){return wr()||fm},webkit:function(){return wr()||Zu},safari:function(){return bm.webkit()},chrome:function(){return wr()||Ku},windows:function(){return wr()||pm},osx:function(){return wr()||Qu},linux:function(){return wr()||mm},iphone:function(){return wr()||vm},mobile:function(){return wr()||vm||ym||gm||gM},nativeApp:function(){return wr()||mM},android:function(){return wr()||gm},ipad:function(){return wr()||ym}},Du=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Lg={canUseDOM:Du,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:Du&&!!(window.addEventListener||window.attachEvent),canUseViewport:Du&&!!window.screen,isInWorker:!Du},vM;Lg.canUseDOM&&(vM=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
388
+ * Checks if an event is supported in the current execution environment.
389
+ *
390
+ * NOTE: This will not work correctly for non-generic events such as `change`,
391
+ * `reset`, `load`, `error`, and `select`.
392
+ *
393
+ * Borrows from Modernizr.
394
+ *
395
+ * @param {string} eventNameSuffix Event name, e.g. "click".
396
+ * @param {?boolean} capture Check if the capture phase is supported.
397
+ * @return {boolean} True if the event is supported.
398
+ * @internal
399
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
400
+ */function uce(e,t){if(!Lg.canUseDOM||t)return!1;var r="on"+e,n=r in document;if(!n){var i=document.createElement("div");i.setAttribute(r,"return;"),n=typeof i[r]=="function"}return!n&&vM&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var g2=10,v2=40,y2=800;function yM(e){var t=0,r=0,n=0,i=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=r,r=0),n=t*g2,i=r*g2,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||i)&&e.deltaMode&&(e.deltaMode==1?(n*=v2,i*=v2):(n*=y2,i*=y2)),n&&!t&&(t=n<1?-1:1),i&&!r&&(r=i<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:i}}yM.getEventType=function(){return bm.firefox()?"DOMMouseScroll":uce("wheel")?"wheel":"mousewheel"};var cce=pr.requestAnimationFrame||pr.webkitRequestAnimationFrame||pr.mozRequestAnimationFrame||pr.oRequestAnimationFrame||pr.msRequestAnimationFrame,b2=0,bi=cce||function(e){var t=Date.now(),r=Math.max(0,16-(t-b2));return b2=t+r,pr.setTimeout(function(){e(Date.now())},r)};bi(tr);var bM=function(){function e(t,r,n,i,a,o){gt(this,e),this._animationFrameID=null,this._deltaX=0,this._deltaY=0,this._didWheel=this._didWheel.bind(this),this._rootRef=null,typeof r!="function"&&(r=r?tr.thatReturnsTrue:tr.thatReturnsFalse),typeof n!="function"&&(n=n?tr.thatReturnsTrue:tr.thatReturnsFalse),this._handleScrollX=r,this._handleScrollY=n,this._preventDefault=a,this._stopPropagation=o,this._onWheelCallback=t,this.onWheel=this.onWheel.bind(this),this._isRTL=i}return vt(e,[{key:"onWheel",value:function(r){this._preventDefault&&r.preventDefault();var n=yM(r);r.shiftKey&&e._allowInternalAxesSwap()?n=e._swapNormalizedWheelAxis(n):r.shiftKey||(n.pixelX*=this._isRTL?-1:1);var i=this._deltaX+n.pixelX,a=this._deltaY+n.pixelY,o=this._handleScrollX(i,a),s=this._handleScrollY(a,i);if(!(!o&&!s)&&!(this._rootRef&&!this._contains(r.target))){this._deltaX+=o?n.pixelX:0,this._deltaY+=s?n.pixelY:0,r.defaultPrevented||r.preventDefault();var u;(this._deltaX!==0||this._deltaY!==0)&&(this._stopPropagation&&r.stopPropagation(),u=!0),u===!0&&this._animationFrameID===null&&(this._animationFrameID=bi(this._didWheel))}}},{key:"setRoot",value:function(r){this._rootRef=r}},{key:"_didWheel",value:function(){this._animationFrameID=null,this._onWheelCallback(this._deltaX,this._deltaY),this._deltaX=0,this._deltaY=0}},{key:"_contains",value:function(r){for(var n=r;n!=document.body;){if(n===this._rootRef)return!0;n=n.parentNode}return!1}}],[{key:"_swapNormalizedWheelAxis",value:function(r){return{spinX:r.spinY,spinY:r.spinX,pixelX:r.pixelY,pixelY:r.pixelX}}},{key:"_allowInternalAxesSwap",value:function(){return navigator.platform!=="MacIntel"}}]),e}(),Ia={listen:function(t,r,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(t.addEventListener)return t.addEventListener(r,n,i||!1),{remove:function(){t.removeEventListener(r,n,i||!1)}};if(t.attachEvent)return t.attachEvent("on"+r,n),{remove:function(){t.detachEvent("on"+r,n)}}},capture:function(t,r,n){return t.addEventListener?(t.addEventListener(r,n,!0),{remove:function(){t.removeEventListener(r,n,!0)}}):(process.env.NODE_ENV!=="production"&&console.error("Attempted to listen to events during the capture phase on a browser that does not support the capture phase. Your application will not receive some events."),{remove:tr})},registerDefault:function(){}},_M=pr.cancelAnimationFrame||pr.webkitCancelAnimationFrame||pr.mozCancelAnimationFrame||pr.oCancelAnimationFrame||pr.msCancelAnimationFrame||pr.clearTimeout;function dce(e){var t=0,r=0;if(!e.clientX||!e.clientY){if(e.touches&&e.touches.length>0){var n=e.touches[0];t=n.clientX,r=n.clientY}}else t=e.clientX,r=e.clientY;return{x:t,y:r}}var _m={getCoordinatesFromEvent:dce},Ig=function(){function e(t,r,n,i){gt(this,e),this._isDragging=!1,this._isTouchEnabled=i,this._animationFrameID=null,this._domNode=n,this._onMove=t,this._onMoveEnd=r,this._onMouseEnd=this._onMouseEnd.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._didMouseMove=this._didMouseMove.bind(this)}return vt(e,[{key:"captureMouseMoves",value:function(r){if(!this._eventMoveToken&&!this._eventUpToken&&!this._eventLeaveToken&&(this._eventMoveToken=Ia.listen(this._domNode,"mousemove",this._onMouseMove),this._eventUpToken=Ia.listen(this._domNode,"mouseup",this._onMouseUp),this._eventLeaveToken=Ia.listen(this._domNode,"mouseleave",this._onMouseEnd)),this._isTouchEnabled&&!this._eventTouchStartToken&&!this._eventTouchMoveToken&&!this._eventTouchEndToken&&(this._eventTouchStartToken=Ia.listen(this._domNode,"touchstart",this._onMouseMove,{passive:!1}),this._eventTouchMoveToken=Ia.listen(r.target,"touchmove",this._onMouseMove,{passive:!1}),this._eventTouchEndToken=Ia.listen(r.target,"touchend",this._onMouseUp,{passive:!1})),!this._isDragging){this._deltaX=0,this._deltaY=0,this._isDragging=!0;var n=_m.getCoordinatesFromEvent(r),i=n.x,a=n.y;this._x=i,this._y=a}r.preventDefault()}},{key:"releaseMouseMoves",value:function(){this._eventMoveToken&&this._eventUpToken&&this._eventLeaveToken&&(this._eventMoveToken.remove(),this._eventMoveToken=null,this._eventUpToken.remove(),this._eventUpToken=null,this._eventLeaveToken.remove(),this._eventLeaveToken=null),this._isTouchEnabled&&this._eventTouchStartToken&&this._eventTouchMoveToken&&this._eventTouchEndToken&&(this._eventTouchStartToken.remove(),this._eventTouchStartToken=null,this._eventTouchMoveToken.remove(),this._eventTouchMoveToken=null,this._eventTouchEndToken.remove(),this._eventTouchEndToken=null),this._animationFrameID!==null&&(_M(this._animationFrameID),this._animationFrameID=null),this._isDragging&&(this._isDragging=!1,this._x=null,this._y=null)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"_onMouseMove",value:function(r){var n=_m.getCoordinatesFromEvent(r),i=n.x,a=n.y;this._deltaX+=i-this._x,this._deltaY+=a-this._y,this._animationFrameID===null&&(this._animationFrameID=bi(this._didMouseMove)),this._x=i,this._y=a,r.preventDefault()}},{key:"_didMouseMove",value:function(){this._animationFrameID=null,this._onMove(this._deltaX,this._deltaY),this._deltaX=0,this._deltaY=0}},{key:"_onMouseUp",value:function(){this._animationFrameID&&this._didMouseMove(),this._onMoveEnd(!1)}},{key:"_onMouseEnd",value:function(){this._onMoveEnd(!0)}}]),e}(),wm={"--scrollbar-face-active-color":"#7d7d7d","--scrollbar-face-color":"#c2c2c2","--scrollbar-face-margin":"4px","--scrollbar-face-radius":"6px","--scrollbar-size":"15px","--scrollbar-track-color":"#fff","--border-color":"#d3d3d3","--fbui-white":"#fff","--fbui-desktop-background-light":"#f6f7f8"};function Zd(e){if(wm.hasOwnProperty(e))return wm[e];throw new Error('cssVar("'+e+'"): Unexpected class transformation.')}Zd.CSS_VARS=wm;var hce=/-(.)/g;function fce(e){return e.replace(hce,function(t,r){return r.toUpperCase()})}var vf={},xm=["Webkit","ms","Moz","O"],pce=new RegExp("^("+xm.join("|")+")"),wM=Lg.canUseDOM?document.createElement("div").style:{};function mce(e){for(var t=0;t<xm.length;t++){var r=xm[t]+e;if(r in wM)return r}return null}function Xa(e){var t=fce(e);if(vf[t]===void 0){var r=t.charAt(0).toUpperCase()+t.slice(1);pce.test(r)&&Cn(!1,"getVendorPrefixedName must only be called with unprefixedCSS property names. It was called with %s",e),vf[t]=t in wM?t:mce(r)}return vf[t]}var Cm={hasCSSAnimations:function(){return!!Xa("animationName")},hasCSSTransforms:function(){return!!Xa("transform")},hasCSS3DTransforms:function(){return!!Xa("perspective")},hasCSSTransitions:function(){return!!Xa("transition")}},_2=Xa("transform");Xa("backfaceVisibility");var gce=function(){if(Cm.hasCSSTransforms()){var e=pr.window?pr.window.navigator.userAgent:"UNKNOWN",t=/Safari\//.test(e)&&!/Chrome\//.test(e);return!t&&Cm.hasCSS3DTransforms()?function(r,n,i){r[_2]="translate3d("+n+"px,"+i+"px,0)"}:function(r,n,i){r[_2]="translate("+n+"px,"+i+"px)"}}else return function(r,n,i){r.left=n+"px",r.top=i+"px"}}();function co(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;e.display!=="none"&&(n?(e.left=t+"px",e.top=r+"px"):(Cm.hasCSSTransforms()&&(t*=i?-1:1),e.left=0,gce(e,t,r)),i&&(e.right=e.left,e.left="auto"))}function vce(e){var t=yce();return function(){var n=Ue(e),i;if(t){var a=Ue(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return sr(this,i)}}function yce(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var bce={position:0,scrollable:!1},xM=parseInt(Zd("--scrollbar-face-margin"),10),w2=xM*2,yf=30,CM=40,Or=function(e){Ut(r,e);var t=vce(r);function r(n){var i;return gt(this,r),i=t.call(this,n),ue(pe(i),"_onRefFace",function(a){return i._faceRef=a}),ue(pe(i),"_onRefRoot",function(a){return i._rootRef=a}),ue(pe(i),"scrollBy",function(a){i._onWheel(a)}),ue(pe(i),"_shouldHandleX",function(a){return i.props.orientation==="horizontal"?i._shouldHandleChange(a):!1}),ue(pe(i),"_shouldHandleY",function(a){return i.props.orientation!=="horizontal"?i._shouldHandleChange(a):!1}),ue(pe(i),"_shouldHandleChange",function(a){var o=i._calculateState(i.state.position+a,i.props.size,i.props.contentSize,i.props.orientation);return o.position!==i.state.position}),ue(pe(i),"_calculateState",function(a,o,s,u){var c=Math.max(1,o);if(s<=c)return bce;var h="".concat(a,"_").concat(c,"_").concat(s,"_").concat(u);if(i._stateKey===h)return i._stateForKey;var f=u==="horizontal",p=c/s,g=c*p;g<yf&&(p=(c-yf)/(s-c),g=yf);var b=!0,v=s-c;a<0?a=0:a>v&&(a=v);var w={faceSize:g,isHorizontal:f,position:a,scale:p,scrollable:b};return i._stateKey=h,i._stateForKey=w,w}),ue(pe(i),"_onWheelY",function(a,o){i._onWheel(o)}),ue(pe(i),"_onWheelX",function(a,o){i._onWheel(a)}),ue(pe(i),"_onWheel",function(a){var o=i.props;i._setNextState(i._calculateState(i.state.position+a,o.size,o.contentSize,o.orientation))}),ue(pe(i),"_onMouseDown",function(a){i.setState({isDragging:!0});var o;if(a.target!==i._faceRef){var s,u,c,h,f=a.nativeEvent,p=i.state.isHorizontal?(s=(u=f.offsetX)!==null&&u!==void 0?u:f.layerX)!==null&&s!==void 0?s:i.getTouchX(f):(c=(h=f.offsetY)!==null&&h!==void 0?h:f.layerY)!==null&&c!==void 0?c:i.getTouchY(f),g=i.props;p/=i.state.scale,o=i._calculateState(p-i.state.faceSize*.5/i.state.scale,g.size,g.contentSize,g.orientation)}else o={};i._setNextState(o),i._mouseMoveTracker.captureMouseMoves(a),i._rootRef.focus()}),ue(pe(i),"_onTouchCancel",function(a){a.stopPropagation()}),ue(pe(i),"_onTouchEnd",function(a){a.stopPropagation()}),ue(pe(i),"_onTouchMove",function(a){a.stopPropagation()}),ue(pe(i),"_onTouchStart",function(a){a.stopPropagation(),i._onMouseDown(a)}),ue(pe(i),"_onMouseMove",function(a,o){var s=i.props,u=i.state.isHorizontal?a*(i.props.isRTL?-1:1):o;u/=i.state.scale;var c=Rr.flushSync||function(h){return h()};c(function(){return i._setNextState(i._calculateState(i.state.position+u,s.size,s.contentSize,s.orientation))})}),ue(pe(i),"_onMouseMoveEnd",function(){i._nextState=null,i._mouseMoveTracker.releaseMouseMoves(),i.setState({isDragging:!1})}),ue(pe(i),"_onKeyDown",function(a){var o=a.keyCode;if(o!==_n.TAB){var s=CM,u=0;if(i.state.isHorizontal)switch(o){case _n.HOME:u=-1,s=i.props.contentSize;break;case _n.LEFT:u=-1;break;case _n.RIGHT:u=1;break;default:return}if(!i.state.isHorizontal)switch(o){case _n.SPACE:a.shiftKey?u=-1:u=1;break;case _n.HOME:u=-1,s=i.props.contentSize;break;case _n.UP:u=-1;break;case _n.DOWN:u=1;break;case _n.PAGE_UP:u=-1,s=i.props.size;break;case _n.PAGE_DOWN:u=1,s=i.props.size;break;default:return}a.preventDefault();var c=i.props;i._setNextState(i._calculateState(i.state.position+s*u,c.size,c.contentSize,c.orientation))}}),ue(pe(i),"getTouchX",function(a){return Math.round(a.targetTouches[0].clientX-a.target.getBoundingClientRect().x)}),ue(pe(i),"getTouchY",function(a){return Math.round(a.targetTouches[0].clientY-a.target.getBoundingClientRect().y)}),ue(pe(i),"_setNextState",function(a,o){o=o||i.props;var s=o.position,u=i.state.position!==a.position;if(s===void 0){var c=u?i._didScroll:void 0;i.setState(a,c)}else if(s===a.position)i.setState(a);else{a.position!==void 0&&a.position!==i.state.position&&i.props.onScroll(a.position);return}}),ue(pe(i),"_didScroll",function(){i.props.onScroll(i.state.position)}),i.state=i._calculateState(n.position||n.defaultPosition||0,n.size,n.contentSize,n.orientation),i._initialRender=!0,i}return vt(r,[{key:"componentDidUpdate",value:function(){var i=this.props.position;i===void 0?this._setNextState(this._calculateState(this.state.position,this.props.size,this.props.contentSize,this.props.orientation)):this._setNextState(this._calculateState(i,this.props.size,this.props.contentSize,this.props.orientation),this.props)}},{key:"render",value:function(){if(!this.state.scrollable)return null;var i=this.props.size,a,o,s=this.state.isHorizontal,u=!s,c=this.state.isDragging,h=this.state.faceSize,f=this.props.isOpaque,p=this.props.verticalTop||0,g=Oe({"ScrollbarLayout/main":!0,"ScrollbarLayout/mainVertical":u,"ScrollbarLayout/mainHorizontal":s,"public/Scrollbar/main":!0,"public/Scrollbar/mainOpaque":f,"public/Scrollbar/mainActive":c}),b=Oe({"ScrollbarLayout/face":!0,"ScrollbarLayout/faceHorizontal":s,"ScrollbarLayout/faceVertical":u,"public/Scrollbar/faceActive":c,"public/Scrollbar/face":!0}),v=this.state.position*this.state.scale+xM;return s?(a={width:i},o={width:h-w2,top:0,bottom:0},co(o,v,0,this._initialRender,this.props.isRTL)):(a={top:p,height:i},this.props.isRTL&&(a.left=a.right||0,a.right="auto"),o={height:h-w2},co(o,0,v,this._initialRender,this.props.isRTL),o.left=0,o.right=0),a.touchAction="none",a.zIndex=this.props.zIndex,this.props.trackColor==="gray"&&(a.backgroundColor=Zd("--fbui-desktop-background-light")),k.createElement("div",{onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,onTouchCancel:this._onTouchCancel,onTouchEnd:this._onTouchEnd,onTouchMove:this._onTouchMove,onTouchStart:this._onTouchStart,className:g,style:a,ref:this._onRefRoot},k.createElement("div",{ref:this._onRefFace,className:b,style:o}))}},{key:"componentDidMount",value:function(){var i=this.props.orientation==="horizontal",a=i?this._onWheelX:this._onWheelY;this._wheelHandler=new bM(a,this._shouldHandleX,this._shouldHandleY,this.props.isRTL),this._rootRef&&this._rootRef.addEventListener("wheel",this._wheelHandler.onWheel,{passive:!1}),this._mouseMoveTracker=new Ig(this._onMouseMove,this._onMouseMoveEnd,document.documentElement,this.props.touchEnabled),this.props.position!==void 0&&this.state.position!==this.props.position&&this._didScroll(),this._initialRender=!1}},{key:"componentWillUnmount",value:function(){this._rootRef&&this._rootRef.removeEventListener("wheel",this._wheelHandler.onWheel,{passive:!1}),this._nextState=null,this._mouseMoveTracker&&(this._mouseMoveTracker.releaseMouseMoves(),this._mouseMoveTracker=null)}}]),r}(k.PureComponent);ue(Or,"propTypes",{contentSize:H.number.isRequired,defaultPosition:H.number,isOpaque:H.bool,orientation:H.oneOf(["vertical","horizontal"]),onScroll:H.func,position:H.number,size:H.number.isRequired,trackColor:H.oneOf(["gray"]),touchEnabled:H.bool,zIndex:H.number,verticalTop:H.number,isRTL:H.bool});ue(Or,"defaultProps",{defaultPosition:0,isOpaque:!1,onScroll:tr,orientation:"vertical",zIndex:99});Or.KEYBOARD_SCROLL_AMOUNT=CM;Or.SIZE=parseInt(Zd("--scrollbar-size"),10);Or.OFFSET=1;function qt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(process.env.NODE_ENV!=="production"){var i=Ace[e],a=i?typeof i=="function"?i.apply(null,r):i:"unknown error nr: "+e;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ri(e){return!!e&&!!e[bt]}function Si(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var r=Object.getPrototypeOf(t);if(r===null)return!0;var n=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Rce}(e)||Array.isArray(e)||!!e[P2]||!!e.constructor[P2]||$g(e)||Fg(e))}function _ce(e){return ri(e)||qt(23,e),e[bt].t}function ia(e,t,r){r===void 0&&(r=!1),Lo(e)===0?(r?Object.keys:ro)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,i){return t(i,n,e)})}function Lo(e){var t=e[bt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:$g(e)?2:Fg(e)?3:0}function to(e,t){return Lo(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function wce(e,t){return Lo(e)===2?e.get(t):e[t]}function TM(e,t,r){var n=Lo(e);n===2?e.set(t,r):n===3?(e.delete(t),e.add(r)):e[t]=r}function MM(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function $g(e){return Ece&&e instanceof Map}function Fg(e){return Pce&&e instanceof Set}function fi(e){return e.o||e.t}function zg(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=EM(e);delete t[bt];for(var r=ro(t),n=0;n<r.length;n++){var i=r[n],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Bg(e,t){return t===void 0&&(t=!1),Wg(e)||ri(e)||!Si(e)||(Lo(e)>1&&(e.set=e.add=e.clear=e.delete=xce),Object.freeze(e),t&&ia(e,function(r,n){return Bg(n,!0)},!0)),e}function xce(){qt(2)}function Wg(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function An(e){var t=Em[e];return t||qt(18,e),t}function Cce(e,t){Em[e]||(Em[e]=t)}function Tm(){return process.env.NODE_ENV==="production"||ho||qt(0),ho}function bf(e,t){t&&(An("Patches"),e.u=[],e.s=[],e.v=t)}function Sc(e){Mm(e),e.p.forEach(Tce),e.p=null}function Mm(e){e===ho&&(ho=e.l)}function x2(e){return ho={p:[],l:ho,h:e,m:!0,_:0}}function Tce(e){var t=e[bt];t.i===0||t.i===1?t.j():t.O=!0}function _f(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.g||An("ES5").S(t,e,n),n?(r[bt].P&&(Sc(t),qt(4)),Si(e)&&(e=Ec(t,e),t.l||Pc(t,e)),t.u&&An("Patches").M(r[bt].t,e,t.u,t.s)):e=Ec(t,r,[]),Sc(t),t.u&&t.v(t.u,t.s),e!==SM?e:void 0}function Ec(e,t,r){if(Wg(t))return t;var n=t[bt];if(!n)return ia(t,function(a,o){return C2(e,n,t,a,o,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Pc(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=zg(n.k):n.o;ia(n.i===3?new Set(i):i,function(a,o){return C2(e,n,i,a,o,r)}),Pc(e,i,!1),r&&e.u&&An("Patches").R(n,r,e.u,e.s)}return n.o}function C2(e,t,r,n,i,a){if(process.env.NODE_ENV!=="production"&&i===r&&qt(5),ri(i)){var o=Ec(e,i,a&&t&&t.i!==3&&!to(t.D,n)?a.concat(n):void 0);if(TM(r,n,o),!ri(o))return;e.m=!1}if(Si(i)&&!Wg(i)){if(!e.h.F&&e._<1)return;Ec(e,i),t&&t.A.l||Pc(e,i)}}function Pc(e,t,r){r===void 0&&(r=!1),e.h.F&&e.m&&Bg(t,r)}function wf(e,t){var r=e[bt];return(r?fi(r):e)[t]}function T2(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function gi(e){e.P||(e.P=!0,e.l&&gi(e.l))}function xf(e){e.o||(e.o=zg(e.t))}function Sm(e,t,r){var n=$g(t)?An("MapSet").N(t,r):Fg(t)?An("MapSet").T(t,r):e.g?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:Tm(),P:!1,I:!1,D:{},l:a,t:i,k:null,o:null,j:null,C:!1},u=s,c=nl;o&&(u=[s],c=xs);var h=Proxy.revocable(u,c),f=h.revoke,p=h.proxy;return s.k=p,s.j=f,p}(t,r):An("ES5").J(t,r);return(r?r.A:Tm()).p.push(n),n}function Mce(e){return ri(e)||qt(22,e),function t(r){if(!Si(r))return r;var n,i=r[bt],a=Lo(r);if(i){if(!i.P&&(i.i<4||!An("ES5").K(i)))return i.t;i.I=!0,n=M2(r,a),i.I=!1}else n=M2(r,a);return ia(n,function(o,s){i&&wce(i.t,o)===s||TM(n,o,t(s))}),a===3?new Set(n):n}(e)}function M2(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return zg(e)}function Sce(){function e(o,s){var u=a[o];return u?u.enumerable=s:a[o]=u={configurable:!0,enumerable:s,get:function(){var c=this[bt];return process.env.NODE_ENV!=="production"&&i(c),nl.get(c,o)},set:function(c){var h=this[bt];process.env.NODE_ENV!=="production"&&i(h),nl.set(h,o,c)}},u}function t(o){for(var s=o.length-1;s>=0;s--){var u=o[s][bt];if(!u.P)switch(u.i){case 5:n(u)&&gi(u);break;case 4:r(u)&&gi(u)}}}function r(o){for(var s=o.t,u=o.k,c=ro(u),h=c.length-1;h>=0;h--){var f=c[h];if(f!==bt){var p=s[f];if(p===void 0&&!to(s,f))return!0;var g=u[f],b=g&&g[bt];if(b?b.t!==p:!MM(g,p))return!0}}var v=!!s[bt];return c.length!==ro(s).length+(v?0:1)}function n(o){var s=o.k;if(s.length!==o.t.length)return!0;var u=Object.getOwnPropertyDescriptor(s,s.length-1);if(u&&!u.get)return!0;for(var c=0;c<s.length;c++)if(!s.hasOwnProperty(c))return!0;return!1}function i(o){o.O&&qt(3,JSON.stringify(fi(o)))}var a={};Cce("ES5",{J:function(o,s){var u=Array.isArray(o),c=function(f,p){if(f){for(var g=Array(p.length),b=0;b<p.length;b++)Object.defineProperty(g,""+b,e(b,!0));return g}var v=EM(p);delete v[bt];for(var w=ro(v),C=0;C<w.length;C++){var M=w[C];v[M]=e(M,f||!!v[M].enumerable)}return Object.create(Object.getPrototypeOf(p),v)}(u,o),h={i:u?5:4,A:s?s.A:Tm(),P:!1,I:!1,D:{},l:s,t:o,k:c,o:null,O:!1,C:!1};return Object.defineProperty(c,bt,{value:h,writable:!0}),c},S:function(o,s,u){u?ri(s)&&s[bt].A===o&&t(o.p):(o.u&&function c(h){if(h&&typeof h=="object"){var f=h[bt];if(f){var p=f.t,g=f.k,b=f.D,v=f.i;if(v===4)ia(g,function(S){S!==bt&&(p[S]!==void 0||to(p,S)?b[S]||c(g[S]):(b[S]=!0,gi(f)))}),ia(p,function(S){g[S]!==void 0||to(g,S)||(b[S]=!1,gi(f))});else if(v===5){if(n(f)&&(gi(f),b.length=!0),g.length<p.length)for(var w=g.length;w<p.length;w++)b[w]=!1;else for(var C=p.length;C<g.length;C++)b[C]=!0;for(var M=Math.min(g.length,p.length),E=0;E<M;E++)g.hasOwnProperty(E)||(b[E]=!0),b[E]===void 0&&c(g[E])}}}}(o.p[0]),t(o.p))},K:function(o){return o.i===4?r(o):n(o)}})}var S2,ho,Hg=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",Ece=typeof Map!="undefined",Pce=typeof Set!="undefined",E2=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",SM=Hg?Symbol.for("immer-nothing"):((S2={})["immer-nothing"]=!0,S2),P2=Hg?Symbol.for("immer-draftable"):"__$immer_draftable",bt=Hg?Symbol.for("immer-state"):"__$immer_state",Ace={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Rce=""+Object.prototype.constructor,ro=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,EM=Object.getOwnPropertyDescriptors||function(e){var t={};return ro(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},Em={},nl={get:function(e,t){if(t===bt)return e;var r=fi(e);if(!to(r,t))return function(i,a,o){var s,u=T2(a,o);return u?"value"in u?u.value:(s=u.get)===null||s===void 0?void 0:s.call(i.k):void 0}(e,r,t);var n=r[t];return e.I||!Si(n)?n:n===wf(e.t,t)?(xf(e),e.o[t]=Sm(e.A.h,n,e)):n},has:function(e,t){return t in fi(e)},ownKeys:function(e){return Reflect.ownKeys(fi(e))},set:function(e,t,r){var n=T2(fi(e),t);if(n!=null&&n.set)return n.set.call(e.k,r),!0;if(!e.P){var i=wf(fi(e),t),a=i==null?void 0:i[bt];if(a&&a.t===r)return e.o[t]=r,e.D[t]=!1,!0;if(MM(r,i)&&(r!==void 0||to(e.t,t)))return!0;xf(e),gi(e)}return e.o[t]===r&&typeof r!="number"&&(r!==void 0||t in e.o)||(e.o[t]=r,e.D[t]=!0,!0)},deleteProperty:function(e,t){return wf(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,xf(e),gi(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=fi(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){qt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){qt(12)}},xs={};ia(nl,function(e,t){xs[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),xs.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&qt(13),xs.set.call(this,e,t,void 0)},xs.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&qt(14),nl.set.call(this,e[0],t,r,e[0])};var Oce=function(){function e(r){var n=this;this.g=E2,this.F=!0,this.produce=function(i,a,o){if(typeof i=="function"&&typeof a!="function"){var s=a;a=i;var u=n;return function(v){var w=this;v===void 0&&(v=s);for(var C=arguments.length,M=Array(C>1?C-1:0),E=1;E<C;E++)M[E-1]=arguments[E];return u.produce(v,function(S){var P;return(P=a).call.apply(P,[w,S].concat(M))})}}var c;if(typeof a!="function"&&qt(6),o!==void 0&&typeof o!="function"&&qt(7),Si(i)){var h=x2(n),f=Sm(n,i,void 0),p=!0;try{c=a(f),p=!1}finally{p?Sc(h):Mm(h)}return typeof Promise!="undefined"&&c instanceof Promise?c.then(function(v){return bf(h,o),_f(v,h)},function(v){throw Sc(h),v}):(bf(h,o),_f(c,h))}if(!i||typeof i!="object"){if((c=a(i))===void 0&&(c=i),c===SM&&(c=void 0),n.F&&Bg(c,!0),o){var g=[],b=[];An("Patches").M(i,c,g,b),o(g,b)}return c}qt(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(c){for(var h=arguments.length,f=Array(h>1?h-1:0),p=1;p<h;p++)f[p-1]=arguments[p];return n.produceWithPatches(c,function(g){return i.apply(void 0,[g].concat(f))})};var o,s,u=n.produce(i,a,function(c,h){o=c,s=h});return typeof Promise!="undefined"&&u instanceof Promise?u.then(function(c){return[c,o,s]}):[u,o,s]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Si(r)||qt(8),ri(r)&&(r=Mce(r));var n=x2(this),i=Sm(this,r,void 0);return i[bt].C=!0,Mm(n),i},t.finishDraft=function(r,n){var i=r&&r[bt];process.env.NODE_ENV!=="production"&&(i&&i.C||qt(9),i.I&&qt(10));var a=i.A;return bf(a,n),_f(void 0,a)},t.setAutoFreeze=function(r){this.F=r},t.setUseProxies=function(r){r&&!E2&&qt(20),this.g=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var o=An("Patches").$;return ri(r)?o(r,n):this.produce(r,function(s){return o(s,n)})},e}(),Ir=new Oce,kce=Ir.produce;Ir.produceWithPatches.bind(Ir);Ir.setAutoFreeze.bind(Ir);Ir.setUseProxies.bind(Ir);Ir.applyPatches.bind(Ir);Ir.createDraft.bind(Ir);Ir.finishDraft.bind(Ir);var Ju=kce;function PM(e){var t=function(n){var i=n.dispatch,a=n.getState;return function(o){return function(s){return typeof s=="function"?s(i,a,e):o(s)}}};return t}var AM=PM();AM.withExtraArgument=PM;var A2=AM,Dce=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ac=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},Nce=Object.defineProperty,R2=Object.getOwnPropertySymbols,Lce=Object.prototype.hasOwnProperty,Ice=Object.prototype.propertyIsEnumerable,O2=function(e,t,r){return t in e?Nce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},il=function(e,t){for(var r in t||(t={}))Lce.call(t,r)&&O2(e,r,t[r]);if(R2)for(var n=0,i=R2(t);n<i.length;n++){var r=i[n];Ice.call(t,r)&&O2(e,r,t[r])}return e},$ce=typeof window!="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Cc:Cc.apply(null,arguments)};function RM(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function OM(e,t){var r=0;return{measureTime:function(n){var i=Date.now();try{return n()}finally{var a=Date.now();r+=a-i}},warnIfExceeded:function(){r>e&&console.warn(t+" took "+r+"ms, which is more than the warning threshold of "+e+`ms.
401
+ If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
402
+ It is disabled in production builds, so you don't need to worry about that.`)}}}var Fce=function(e){Dce(t,e);function t(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=e.apply(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Ac([void 0],r[0].concat(this)))):new(t.bind.apply(t,Ac([void 0],r.concat(this))))},t}(Array),zce=process.env.NODE_ENV==="production",k2="Invariant failed";function D2(e,t){if(!e)throw zce?new Error(k2):new Error(k2+": "+(t||""))}function Bce(e,t,r,n){return JSON.stringify(e,Wce(t,n),r)}function Wce(e,t){var r=[],n=[];return t||(t=function(i,a){return r[0]===a?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(a)).join(".")+"]"}),function(i,a){if(r.length>0){var o=r.indexOf(this);~o?r.splice(o+1):r.push(this),~o?n.splice(o,1/0,i):n.push(i),~r.indexOf(a)&&(a=t.call(this,i,a))}else r.push(a);return e==null?a:e.call(this,i,a)}}function Hce(e){return typeof e!="object"||e===null||typeof e=="undefined"||Object.isFrozen(e)}function jce(e,t,r){var n=kM(e,t,r);return{detectMutations:function(){return DM(e,t,n,r)}}}function kM(e,t,r,n){t===void 0&&(t=[]),n===void 0&&(n="");var i={value:r};if(!e(r)){i.children={};for(var a in r){var o=n?n+"."+a:a;t.length&&t.indexOf(o)!==-1||(i.children[a]=kM(e,t,r[a],o))}}return i}function DM(e,t,r,n,i,a){t===void 0&&(t=[]),i===void 0&&(i=!1),a===void 0&&(a="");var o=r?r.value:void 0,s=o===n;if(i&&!s&&!Number.isNaN(n))return{wasMutated:!0,path:a};if(e(o)||e(n))return{wasMutated:!1};var u={};for(var c in r.children)u[c]=!0;for(var c in n)u[c]=!0;for(var c in u){var h=a?a+"."+c:c;if(!(t.length&&t.indexOf(h)!==-1)){var f=DM(e,t,r.children[c],n[c],s,h);if(f.wasMutated)return f}}return{wasMutated:!1}}function Vce(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(u){return function(c){return u(c)}}};var t=e.isImmutable,r=t===void 0?Hce:t,n=e.ignoredPaths,i=e.warnAfter,a=i===void 0?32:i,o=e.ignore;n=n||o;var s=jce.bind(null,r,n);return function(u){var c=u.getState,h=c(),f=s(h),p;return function(g){return function(b){var v=OM(a,"ImmutableStateInvariantMiddleware");v.measureTime(function(){h=c(),p=f.detectMutations(),f=s(h),D2(!p.wasMutated,"A state mutation was detected between dispatches, in the path '"+(p.path||"")+"'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")});var w=g(b);return v.measureTime(function(){h=c(),p=f.detectMutations(),f=s(h),p.wasMutated&&D2(!p.wasMutated,"A state mutation was detected inside a dispatch, in the path: "+(p.path||"")+". Take a look at the reducer(s) handling the action "+Bce(b)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),v.warnIfExceeded(),w}}}}function NM(e){var t=typeof e;return t==="undefined"||e===null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||RM(e)}function Pm(e,t,r,n,i){t===void 0&&(t=""),r===void 0&&(r=NM),i===void 0&&(i=[]);var a;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null)return!1;for(var o=n!=null?n(e):Object.entries(e),s=i.length>0,u=0,c=o;u<c.length;u++){var h=c[u],f=h[0],p=h[1],g=t?t+"."+f:f;if(!(s&&i.indexOf(g)>=0)){if(!r(p))return{keyPath:g,value:p};if(typeof p=="object"&&(a=Pm(p,g,r,n,i),a))return a}}return!1}function Gce(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(w){return function(C){return w(C)}}};var t=e.isSerializable,r=t===void 0?NM:t,n=e.getEntries,i=e.ignoredActions,a=i===void 0?[]:i,o=e.ignoredActionPaths,s=o===void 0?["meta.arg","meta.baseQueryMeta"]:o,u=e.ignoredPaths,c=u===void 0?[]:u,h=e.warnAfter,f=h===void 0?32:h,p=e.ignoreState,g=p===void 0?!1:p,b=e.ignoreActions,v=b===void 0?!1:b;return function(w){return function(C){return function(M){var E=C(M),S=OM(f,"SerializableStateInvariantMiddleware");return!v&&!(a.length&&a.indexOf(M.type)!==-1)&&S.measureTime(function(){var P=Pm(M,"",r,n,s);if(P){var R=P.keyPath,N=P.value;console.error("A non-serializable value was detected in an action, in the path: `"+R+"`. Value:",N,`
403
+ Take a look at the logic that dispatched this action: `,M,`
404
+ (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
405
+ (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),g||(S.measureTime(function(){var P=w.getState(),R=Pm(P,"",r,n,c);if(R){var N=R.keyPath,B=R.value;console.error("A non-serializable value was detected in the state, in the path: `"+N+"`. Value:",B,`
406
+ Take a look at the reducer(s) handling this action type: `+M.type+`.
407
+ (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),S.warnIfExceeded()),E}}}}function Cf(e){return typeof e=="boolean"}function Uce(){return function(t){return Yce(t)}}function Yce(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,n=e.immutableCheck,i=n===void 0?!0:n,a=e.serializableCheck,o=a===void 0?!0:a,s=new Fce;if(r&&(Cf(r)?s.push(A2):s.push(A2.withExtraArgument(r.extraArgument))),process.env.NODE_ENV!=="production"){if(i){var u={};Cf(i)||(u=i),s.unshift(Vce(u))}if(o){var c={};Cf(o)||(c=o),s.push(Gce(c))}}return s}var Tf=process.env.NODE_ENV==="production";function qce(e){var t=Uce(),r=e||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,o=a===void 0?t():a,s=r.devTools,u=s===void 0?!0:s,c=r.preloadedState,h=c===void 0?void 0:c,f=r.enhancers,p=f===void 0?void 0:f,g;if(typeof i=="function")g=i;else if(RM(i))g=une(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=o;if(typeof b=="function"&&(b=b(t),!Tf&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Tf&&b.some(function(E){return typeof E!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=cne.apply(void 0,b),w=Cc;u&&(w=$ce(il({trace:!Tf},typeof u=="object"&&u)));var C=[v];Array.isArray(p)?C=Ac([v],p):typeof p=="function"&&(C=p(C));var M=w.apply(void 0,C);return VT(g,h,M)}function al(e,t){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(t){var a=t.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return il(il({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:n[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(n){return n.type===e},r}function LM(e){var t={},r=[],n,i={addCase:function(a,o){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`")}var s=typeof a=="string"?a:a.type;if(s in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[s]=o,i},addMatcher:function(a,o){if(process.env.NODE_ENV!=="production"&&n)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:a,reducer:o}),i},addDefaultCase:function(a){if(process.env.NODE_ENV!=="production"&&n)throw new Error("`builder.addDefaultCase` can only be called once");return n=a,i}};return e(i),[t,r,n]}function Xce(e){return typeof e=="function"}function Zce(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?LM(t):[t,r,n],a=i[0],o=i[1],s=i[2],u;if(Xce(e))u=function(){return Ju(e(),function(){})};else{var c=Ju(e,function(){});u=function(){return c}}function h(f,p){f===void 0&&(f=u());var g=Ac([a[p.type]],o.filter(function(b){var v=b.matcher;return v(p)}).map(function(b){var v=b.reducer;return v}));return g.filter(function(b){return!!b}).length===0&&(g=[s]),g.reduce(function(b,v){if(v)if(ri(b)){var w=b,C=v(w,p);return typeof C=="undefined"?b:C}else{if(Si(b))return Ju(b,function(M){return v(M,p)});var C=v(b,p);if(typeof C=="undefined"){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return C}return b},f)}return h.getInitialState=u,h}function Kce(e,t){return e+"/"+t}function Qce(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var r=typeof e.initialState=="function"?e.initialState:Ju(e.initialState,function(){}),n=e.reducers||{},i=Object.keys(n),a={},o={},s={};i.forEach(function(h){var f=n[h],p=Kce(t,h),g,b;"reducer"in f?(g=f.reducer,b=f.prepare):g=f,a[h]=g,o[p]=g,s[h]=b?al(p,b):al(p)});function u(){var h=typeof e.extraReducers=="function"?LM(e.extraReducers):[e.extraReducers],f=h[0],p=f===void 0?{}:f,g=h[1],b=g===void 0?[]:g,v=h[2],w=v===void 0?void 0:v,C=il(il({},p),o);return Zce(r,C,b,w)}var c;return{name:t,reducer:function(h,f){return c||(c=u()),c(h,f)},actions:s,caseReducers:a,getInitialState:function(){return c||(c=u()),c.getInitialState()}}}var jg="listenerMiddleware";al(jg+"/add");al(jg+"/removeAll");al(jg+"/remove");Sce();function Jce(){var e=ede();return{columnElements:[],columnGroupElements:[],elementTemplates:{cell:[],footer:[],groupHeader:[],header:[]},elementHeights:{footerHeight:0,groupHeaderHeight:0,headerHeight:0},propsRevision:null,rowSettings:{bufferRowCount:void 0,rowAttributesGetter:void 0,rowHeight:0,rowHeightGetter:function(){return 0},rowsCount:0,subRowHeight:0,subRowHeightGetter:function(){return 0}},scrollFlags:{overflowX:"auto",overflowY:"auto",showScrollbarX:!0,showScrollbarY:!0},tableSize:{height:void 0,maxHeight:0,ownerHeight:void 0,useMaxHeight:!1,width:0},firstRowIndex:0,firstRowOffset:0,maxScrollX:0,maxScrollY:0,rowOffsets:{},rows:[],scrollContentHeight:0,scrollX:0,scrollbarXHeight:Or.SIZE,scrollY:0,scrollbarYWidth:Or.SIZE,scrolling:!1,getInternal:function(){return e}}}function ede(){return{rowBufferSet:new aM,rowOffsetIntervalTree:null,storedHeights:[],rowUntilOffsetsAreExact:0}}var IM=Qce({name:"FDT",initialState:{},reducers:{initialize:function(t,r){var n=r.payload;Mt(t,Jce()),L2(t,n),N2(t);var i=i2(t,n);us(t,i),d2.initialize(t,n,{})},propChange:function(t,r){var n=r.payload,i=n.newProps,a=n.oldProps,o=Lle(_ce(t));L2(t,i),(a.rowsCount!==i.rowsCount||a.rowHeight!==i.rowHeight||a.subRowHeight!==i.subRowHeight)&&N2(t),a.rowsCount!==i.rowsCount&&(t.getInternal().rowBufferSet=new aM);var s=i2(t,i,a);(!tl(t,o)||s.changed)&&us(t,s),d2.initialize(t,i,a),(t.scrollX!==o.scrollX||t.scrollY!==o.scrollY)&&(t.scrolling=t.scrolling||!0)},scrollEnd:function(t){t.scrolling=!1;var r={firstIndex:t.firstRowIndex,firstOffset:t.firstRowOffset,lastIndex:t.lastIndex};us(t,r)},scrollToY:function(t,r){var n=r.payload;t.scrolling=!0;var i=lm(t,n);us(t,i)},scrollToX:function(t,r){var n=r.payload;t.scrolling=!0,t.scrollX=n},updateRowHeights:function(t,r){var n=r.payload||0;if(!(n>=t.rowSettings.rowsCount)){for(;n<t.rowSettings.rowsCount;)Gi(t,n++);var i=t.getInternal().rowOffsetIntervalTree.sumUntil(t.firstRowIndex)-t.firstRowOffset,a=lm(t,i);us(t,a)}}}});function N2(e){for(var t=e.rowSettings,r=t.rowHeight,n=t.rowsCount,i=t.subRowHeight,a=t.rowHeightGetter,o=t.subRowHeightGetter,s=r+i,u=0,c=new Array(n),h=0;h<n;h++)e.isVerticalScrollExact?c[h]=a(h)+o(h):c[h]=s,u+=c[h];var f=new zle(c);e.scrollContentHeight=u,Mt(e.getInternal(),{rowOffsetIntervalTree:f,storedHeights:c})}function L2(e,t){var r=Hle(t.children),n=r.columnGroupElements,i=r.columnElements,a=r.elementTemplates,o=r.useGroupHeader;Mt(e,{columnGroupElements:n,columnElements:i,elementTemplates:a,propsRevision:e.propsRevision+1,isVerticalScrollExact:t.isVerticalScrollExact}),Object.freeze(e.columnElements),Object.freeze(e.columnGroupElements),Object.freeze(e.elementTemplates),e.elementHeights=Mt({},e.elementHeights,ws(t,["cellGroupWrapperHeight","footerHeight","groupHeaderHeight","headerHeight"])),o||(e.elementHeights.groupHeaderHeight=0),e.rowSettings=Mt({},e.rowSettings,ws(t,["bufferRowCount","rowHeight","rowsCount","subRowHeight"]));var s=e.rowSettings,u=s.rowHeight,c=s.subRowHeight;e.rowSettings.rowHeightGetter=t.rowHeightGetter||function(){return u},e.rowSettings.subRowHeightGetter=t.subRowHeightGetter||function(){return c||0},e.rowSettings.rowAttributesGetter=t.rowAttributesGetter,e.scrollFlags=Mt({},e.scrollFlags,ws(t,["overflowX","overflowY","showScrollbarX","showScrollbarY"])),e.tableSize=Mt({},e.tableSize,ws(t,["height","maxHeight","ownerHeight","width"])),e.tableSize.useMaxHeight=e.tableSize.height===void 0,e.scrollbarXHeight=t.scrollbarXHeight,e.scrollbarYWidth=t.scrollbarYWidth}var tde=IM.reducer,Io=IM.actions,rde=Io.initialize,nde=Io.propChange,ide=Io.scrollEnd,ade=Io.scrollToX,ode=Io.scrollToY,sde=Io.updateRowHeights,lde=function(t,r){var n=GT({scrollToX:ade,scrollToY:ode,scrollEnd:ide},t.dispatch),i=function(s){var u=t.getState(),c=u.scrollX;if(s!==c){var h=Math.round(s),f=r(),p=f.onHorizontalScroll;(!p||p(h))&&n.scrollToX(h)}},a=function(s){var u=t.getState(),c=u.scrollY;if(s!==c){var h=r(),f=h.onVerticalScroll;(!f||f(s))&&n.scrollToY(s)}};return{scrollToX:i,scrollToY:a,stopScroll:n.scrollEnd}},ude=da,cde=Ri,dde="[object Number]";function hde(e){return typeof e=="number"||cde(e)&&ude(e)==dde}var fde=hde,pde=fde;function mde(e){return pde(e)&&e!=+e}var I2=mde;function gde(e,t,r,n,i){n=n||setTimeout,i=i||clearTimeout;var a;function o(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];o.reset();var h=function(){e.apply(r,u)};h.__SMmeta=e.__SMmeta,a=n(h,t)}return o.reset=function(){i(a)},o}function Jt(e){e||(e="");var t,r=arguments.length;if(r>1)for(var n=1;n<r;n++)t=arguments[n],t&&(e=(e?e+" ":"")+t);return e}function vde(e,t,r){var n=1,i=1,a=e+2,o=e+1,s=2;return t&&(i++,o++,a++,s++),r&&o++,{ariaGroupHeaderIndex:n,ariaHeaderIndex:i,ariaFooterIndex:a,ariaRowCount:o,ariaRowIndexOffset:s}}var yde=ai([function(e){return e.rowsCount},function(e){return e.groupHeaderHeight>0},function(e){return e.footerHeight>0}],vde);function bde(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var u=o[e?s:++i];if(r(a[u],u,a)===!1)break}return t}}var _de=bde,wde=_de,xde=wde(),Cde=xde,Tde=Cde,Mde=Ld;function Sde(e,t){return e&&Tde(e,t,Mde)}var Ede=Sde,Pde=Nl;function Ade(e,t){return function(r,n){if(r==null)return r;if(!Pde(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var Rde=Ade,Ode=Ede,kde=Rde,Dde=kde(Ode),Nde=Dde,Lde=HT;function Ide(e){return typeof e=="function"?e:Lde}var $de=Ide,Fde=UT,zde=Nde,Bde=$de,Wde=en;function Hde(e,t){var r=Wde(e)?Fde:zde;return r(e,Bde(t))}var $2=Hde;function jde(e,t){var r=e.columnGroupProps,n=e.columnProps,i=[],a=[],o=[];$2(r,function(h,f){var p={props:h,template:t.groupHeader[f]};h.fixed?i.push(p):h.fixedRight?a.push(p):o.push(p)});var s={cell:[],header:[],footer:[]},u={cell:[],header:[],footer:[]},c={cell:[],header:[],footer:[]};return $2(n,function(h,f){var p=c;h.fixed?p=s:h.fixedRight&&(p=u),p.cell.push({props:h,template:t.cell[f]}),p.header.push({props:h,template:t.header[f]}),p.footer.push({props:h,template:t.footer[f]})}),{fixedColumnGroups:i,fixedColumns:s,fixedRightColumnGroups:a,fixedRightColumns:u,scrollableColumnGroups:o,scrollableColumns:c}}var Vde=ai([function(e){return Il(e)},function(e){return e.elementTemplates}],jde);function Gde(e,t){return e==null||e!==e?t:e}var Ude=Gde,Yde=Math.max,qde=Math.min;function Xde(e,t,r){return e>=qde(t,r)&&e<Yde(t,r)}var Zde=Xde,Kde=Rg,F2=1/0,Qde=17976931348623157e292;function Jde(e){if(!e)return e===0?e:0;if(e=Kde(e),e===F2||e===-F2){var t=e<0?-1:1;return t*Qde}return e===e?e:0}var ehe=Jde,the=Zde,z2=ehe,rhe=Rg;function nhe(e,t,r){return t=z2(t),r===void 0?(r=t,t=0):r=z2(r),e=rhe(e),the(e,t,r)}var Zi=nhe;function ihe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Xn(e,t){if(e==null)return{};var r,n,i=ihe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var ahe=["height","width","isVisible","style","className","children","columnKey","columnIndex","rowIndex","left","cellGroupType","isHeader","isGroupHeader","maxWidth","minWidth","touchEnabled"];function B2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ohe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?B2(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function she(e){var t=lhe();return function(){var n=Ue(e),i;if(t){var a=Ue(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return sr(this,i)}}function lhe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Rc=function(e){Ut(r,e);var t=she(r);function r(){return gt(this,r),t.apply(this,arguments)}return vt(r,[{key:"render",value:function(){var i=this.props,a=i.height,o=i.width,s=i.style,u=i.className,c=i.children,h=Xn(i,ahe),f=ohe({height:a,width:o},s);return k.createElement("div",Mt({},h,{className:Jt(Oe("fixedDataTableCellLayout/wrap1"),Oe("public/fixedDataTableCell/wrap1"),u),style:f}),k.createElement("div",{className:Jt(Oe("fixedDataTableCellLayout/wrap2"),Oe("public/fixedDataTableCell/wrap2"))},k.createElement("div",{className:Jt(Oe("fixedDataTableCellLayout/wrap3"),Oe("public/fixedDataTableCell/wrap3"))},k.createElement("div",{className:Oe("public/fixedDataTableCell/cellContent")},c))))}}]),r}(k.Component);ue(Rc,"propTypes",{height:H.number,width:H.number,columnKey:H.oneOfType([H.string,H.number]),rowIndex:H.number,isVisible:H.bool});function $M(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function FM(e){function t(r){var n=this.constructor.getDerivedStateFromProps(e,r);return n!=null?n:null}this.setState(t.bind(this))}function zM(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}$M.__suppressDeprecationWarning=!0;FM.__suppressDeprecationWarning=!0;zM.__suppressDeprecationWarning=!0;function BM(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var r=null,n=null,i=null;if(typeof t.componentWillMount=="function"?r="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(r="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?n="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(n="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?i="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),r!==null||n!==null||i!==null){var a=e.displayName||e.name,o=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
408
+
409
+ `+a+" uses "+o+" but also contains the following legacy lifecycles:"+(r!==null?`
410
+ `+r:"")+(n!==null?`
411
+ `+n:"")+(i!==null?`
412
+ `+i:"")+`
413
+
414
+ The above lifecycles should be removed. Learn more about this warning here:
415
+ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=$M,t.componentWillReceiveProps=FM),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=zM;var s=t.componentDidUpdate;t.componentDidUpdate=function(c,h,f){var p=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:f;s.call(this,c,h,p)}}return e}var uhe=["height","width","isVisible","style","className","children","columnKey","columnIndex","rowIndex","left","cellGroupType","isHeader","isGroupHeader","maxWidth","minWidth","touchEnabled"];function W2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function che(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?W2(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Vg=k.forwardRef(function(t,r){var n=t.height,i=t.width,a=t.style,o=t.className,s=t.children,u=Xn(t,uhe),c=che({height:n,width:i},a);return k.createElement("div",Mt({},u,{className:Jt(Oe("fixedDataTableCellLayout/wrap"),Oe("public/fixedDataTableCell/wrap"),Oe("public/fixedDataTableCell/cellContent"),o),style:c,ref:r}),s)});Vg.propTypes={height:H.number,width:H.number,columnKey:H.oneOfType([H.string,H.number]),rowIndex:H.number,isVisible:H.bool};var fo=k.createContext({}),dhe=IT;function hhe(e,t,r){var n=e==null?void 0:dhe(e,t);return n===void 0?r:n}var Am=hhe;function fhe(e){var t=phe();return function(){var n=Ue(e),i;if(t){var a=Ue(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return sr(this,i)}}function phe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var H2=15,j2=100,Gg=function(e){Ut(r,e);var t=fhe(r);function r(){var n;gt(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),ue(pe(n),"state",{displacement:0}),ue(pe(n),"containerRef",k.createRef()),ue(pe(n),"onTouchEnd",function(s){n.props.touchEnabled&&s.stopPropagation()}),ue(pe(n),"onTouchMove",function(s){n.props.touchEnabled&&s.stopPropagation()}),ue(pe(n),"onMouseMove",function(s){n.cursorDeltaX+=s*(n.context.isRTL?-1:1)}),ue(pe(n),"onMouseUp",function(){_M(n.frameId),n.setState({displacement:0,isReordering:!1}),n.updateColumnOrder(),n.frameId=null,n.cursorDeltaX=0,n.mouseMoveTracker.releaseMouseMoves()}),ue(pe(n),"initializeDOMMouseMoveTracker",function(s){n.mouseMoveTracker=new Ig(n.onMouseMove,n.onMouseUp,document.body,n.props.touchEnabled),n.mouseMoveTracker.captureMouseMoves(s)}),ue(pe(n),"updateDisplacementPeriodically",function(){n.frameId=bi(n.updateDisplacementPeriodically),n.updateDisplacementWithScroll()}),ue(pe(n),"getBoundedDeltaX",function(s){var u=0,c=0,h=n.props.cellGroupType,f=n.context.groupHeaderHeight>0;if(f&&!n.props.isGroupHeader){var p=n.context.getColumnGroupByChild(n.props.columnIndex);u=p.width,c=p.offset}else u=n.context.getCellGroupWidth(h);var g=u-n.props.width;return Fd(s,-n.originalLeft+c,-n.originalLeft+g+c)}),ue(pe(n),"updateDisplacementWithScroll",function(){var s=n.scrollStart,u=n.props.cellGroupType,c=n.context,h=c.scrollX,f=c.maxScrollX,p=c.availableScrollWidth,g=n.cursorDeltaX;if(u===ke.SCROLLABLE){var b=n.originalLeft-s+g;g+=h-s,b>p-j2?h=Math.min(h+H2,f):b<=j2&&(h=Math.max(h-H2,0)),n.context.scrollToX(h)}g=n.getBoundedDeltaX(g),n.setState({displacement:g})}),ue(pe(n),"isColumnMovedToRight",function(s){return s>0}),ue(pe(n),"isColumnMovedToLeft",function(s){return s<0}),ue(pe(n),"updateColumnOrder",function(){var s=n.props.cellGroupType,u=n.getBoundedDeltaX(n.cursorDeltaX+n.context.scrollX-n.scrollStart),c=u>=0?n.props.width+u+n.props.left:u+n.props.left,h,f;if(n.props.isGroupHeader){var p=n.context.getColumnGroupAtOffset(c,s),g=p.columnGroup,b=p.distanceFromOffset;h=g,f=b}else{var v=n.context.getColumnAtOffset(c,s),w=v.column,C=v.distanceFromOffset;h=w,f=C}var M=null,E=null;h.index<n.props.columnIndex?f<=h.width/2?(M=h.index-1,E=h.index):(M=h.index,E=h.index+1):f>=h.width/2?(M=h.index,E=h.index+1):(M=h.index-1,E=h.index),M===n.props.columnIndex&&--M,E===n.props.columnIndex&&++E;var S=n.props.isGroupHeader?n.context.getColumnGroupCount():n.context.getColumnCount(),P,R;Zi(M,0,S)&&(P=n.props.isGroupHeader?n.context.getColumnGroup(M):n.context.getColumn(M)),Zi(E,0,S)&&(R=n.props.isGroupHeader?n.context.getColumnGroup(E):n.context.getColumn(E)),n.props.onColumnReorderEnd({columnBefore:Am(P,"columnKey"),columnAfter:Am(R,"columnKey"),reorderColumn:n.props.columnKey})}),n}return vt(r,[{key:"componentDidMount",value:function(){var i=this.props.contents.parentNode.cloneNode(!0);i.firstChild.classList.add(Oe("public/fixedDataTableCell/reordering")),this.containerRef.current.appendChild(i),this.startDrag()}},{key:"render",value:function(){var i={position:"absolute"};return co(i,this.state.displacement,0,!0,this.context.isRTL),k.createElement("div",{style:i,ref:this.containerRef})}},{key:"startDrag",value:function(){this.cursorDeltaX=0,this.scrollStart=this.context.scrollX,this.originalLeft=this.props.left,this.initializeDOMMouseMoveTracker(this.props.reorderStartEvent),this.setState({displacement:0,isReordering:!0}),this.frameId=bi(this.updateDisplacementPeriodically)}}]),r}(k.PureComponent);Gg.contextType=fo;Gg.propTypes={columnIndex:H.number.isRequired,columnKey:H.string.isRequired,contents:H.object.isRequired,cellGroupType:H.string,isGroupHeader:H.bool,isRTL:H.bool,left:H.number.isRequired,onColumnReorderStart:H.func.isRequired,reorderStartEvent:H.object.isRequired,touchEnabled:H.bool,width:H.number.isRequired};function mhe(e){var t=ghe();return function(){var n=Ue(e),i;if(t){var a=Ue(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return sr(this,i)}}function ghe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var vhe=function(e){Ut(r,e);var t=mhe(r);function r(n){var i;gt(this,r),i=t.call(this,n);var a=n.value;return i.unsubscribe=a.subscribe(function(o){i.setState({FixedDataTableContextValue:o})}),i.state={FixedDataTableContextValue:a},i}return vt(r,[{key:"componentWillUnmount",value:function(){this.unsubscribe()}},{key:"render",value:function(){var i=this.state.FixedDataTableContextValue;return k.createElement(fo.Provider,{value:i},this.props.children)}}]),r}(k.PureComponent);function yhe(){}var bhe=yhe,_he=["onColumnReorderStart","onColumnReorderEnd","reorderStartEvent","children"];function whe(e){var t=xhe();return function(){var n=Ue(e),i;if(t){var a=Ue(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return sr(this,i)}}function xhe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Che=1,ol=function(e){Ut(r,e);var t=whe(r);function r(){var n;gt(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),ue(pe(n),"state",{isReordering:!1}),ue(pe(n),"dragContainer",null),ue(pe(n),"cellRef",k.createRef()),ue(pe(n),"isMounted",!1),ue(pe(n),"setReorderHandle",function(s){s&&(s.addEventListener("mousedown",n.onMouseDown,{passive:!1}),s.addEventListener("touchstart",n.onTouchStart,{passive:!1}))}),ue(pe(n),"onTouchStart",function(s){n.props.touchEnabled&&n.onMouseDown(s)}),ue(pe(n),"onMouseDown",function(s){n.onDragStart(s)}),ue(pe(n),"onDragStart",function(s){n.createDragContainer(),n.renderDragProxy(s),n.props.onColumnReorderStart(n.props.columnKey)}),ue(pe(n),"onColumnReorderEnd",function(s){n.isMounted&&n.setState({isReordering:!1}),n.removeDragContainer(),n.props.onColumnReorderEnd(s)}),ue(pe(n),"createDragContainer",function(){n.dragContainer=document.createElement("div"),n.dragContainer.dataset.columnKey=n.props.columnKey;var s=n.cellRef.current.closest(".fixedDataTableCellGroupLayout_cellGroup");s.appendChild(n.dragContainer)}),ue(pe(n),"getDragContainer",function(){if(n.dragContainer)return n.dragContainer;var s=n.cellRef.current.closest(".fixedDataTableCellGroupLayout_cellGroup");return n.dragContainer=s.querySelector('[data-column-key="'.concat(n.props.columnKey,'"]')),n.dragContainer}),ue(pe(n),"removeDragContainer",function(){n.props.__react19RootCreator?n.dragContainer.root.unmount():Rr.unmountComponentAtNode(n.dragContainer),n.dragContainer.remove(),n.dragContainer=null}),n}return vt(r,[{key:"componentDidMount",value:function(){this.isMounted=!0;var i=Am(this.getDragContainer(),"dataset.columnKey"),a=LT(this.props.columnKey)===i;a&&(this.renderDragProxy({}),this.setState({isReordering:!0}))}},{key:"componentWillUnmount",value:function(){this.isMounted=!1}},{key:"render",value:function(){if(this.state.isReordering)return null;var i=this.props,a=i.children,o=Xn(i,_he),s=Jt(Oe({"public/fixedDataTableCell/resizeReorderCellContainer":!0}),o.className),u=Jt(s,Oe({"public/fixedDataTableCell/hasReorderHandle":!0})),c={height:o.height,width:o.width-Che},h;return k.isValidElement(a)?h=k.cloneElement(a,o):typeof a=="function"?h=a(o):h=k.createElement(Vg,o,a),k.createElement("div",{className:u,style:c,ref:this.cellRef},this.renderReorderHandle(),h)}},{key:"renderReorderHandle",value:function(){var i={height:this.props.height};return k.createElement("div",{ref:this.setReorderHandle,className:Oe({"fixedDataTableCellLayout/columnReorderContainer":!0,"fixedDataTableCellLayout/columnReorderContainer/active":!1}),style:i})}},{key:"renderDragProxy",value:function(i){var a=this,o={isDragProxy:!0,reorderStartEvent:i,onColumnReorderEnd:this.onColumnReorderEnd,contents:this.cellRef.current},s=k.createElement(vhe,{value:this.context},k.createElement(Gg,Mt({},this.props,o)));if(this.props.__react19RootCreator){var u=Rr.flushSync||function(c){return c()};u(function(){var c=a.props.__react19RootCreator(a.getDragContainer());a.dragContainer.root=c,c.render(s)}),this.setState({isReordering:!0});return}Rr.render(s,this.getDragContainer(),function(){return a.setState({isReordering:!0})})}}]),r}(k.PureComponent);ol.contextType=fo;ol.defaultProps={onColumnReorderStart:bhe};ol.propTypes={height:H.number,width:H.number,columnKey:H.oneOfType([H.string,H.number]),rowIndex:H.number,left:H.number,touchEnabled:H.bool,minWidth:H.number,maxWidth:H.number,onColumnReorderStart:H.func,onColumnReorderEnd:H.func.isRequired,__react19RootCreator:H.func};var The=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Mhe=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function She(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ehe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Phe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var WM=function(e){Phe(t,e);function t(){return She(this,t),Ehe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return Mhe(t,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return The?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),Rr.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),t}(k.Component);WM.propTypes={children:H.node.isRequired,node:H.any};var Ahe=WM,Rhe=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function Ohe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function khe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Dhe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var HM=function(e){Dhe(t,e);function t(){return Ohe(this,t),khe(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return Rhe(t,[{key:"componentDidMount",value:function(){this.renderPortal()}},{key:"componentDidUpdate",value:function(n){this.renderPortal()}},{key:"componentWillUnmount",value:function(){Rr.unmountComponentAtNode(this.defaultNode||this.props.node),this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null,this.portal=null}},{key:"renderPortal",value:function(n){!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode));var i=this.props.children;typeof this.props.children.type=="function"&&(i=k.cloneElement(this.props.children)),this.portal=Rr.unstable_renderSubtreeIntoContainer(this,i,this.props.node||this.defaultNode)}},{key:"render",value:function(){return null}}]),t}(k.Component),Nhe=HM;HM.propTypes={children:H.node.isRequired,node:H.any};var Rm=void 0;Rr.createPortal?Rm=Ahe:Rm=Nhe;var Lhe=Rm;function Ihe(e){var t=$he();return function(){var n=Ue(e),i;if(t){var a=Ue(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return sr(this,i)}}function $he(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var jM=function(e){Ut(r,e);var t=Ihe(r);function r(){return gt(this,r),t.apply(this,arguments)}return vt(r,[{key:"render",value:function(){if(!this.props.visible)return null;var i=this.getTableRef();if(!i)return null;var a={height:this.props.height,top:0,left:this.props.left};return k.createElement(Lhe,{node:i},k.createElement("div",{className:Jt(Oe("fixedDataTableColumnResizerLineLayout/main"),Oe("public/fixedDataTableColumnResizerLine/main")),style:a},k.createElement("div",{className:Oe("fixedDataTableColumnResizerLineLayout/mouseArea"),style:{height:this.props.height}})))}},{key:"getTableRef",value:function(){var i=this.props.parentRef;return i?i.closest(Oe(".fixedDataTableLayout/main")):null}}]),r}(k.PureComponent);ue(jM,"propTypes",{visible:H.bool.isRequired,height:H.number.isRequired,left:H.number.isRequired,parentRef:H.object});function V2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fhe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?V2(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zhe(e){var t=Bhe();return function(){var n=Ue(e),i;if(t){var a=Ue(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return sr(this,i)}}function Bhe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var VM=function(e){Ut(r,e);var t=zhe(r);function r(n){var i;return gt(this,r),i=t.call(this,n),ue(pe(i),"initialState",{isColumnResizing:!1,currentMouseXCoordinate:0,totalDisplacement:0}),ue(pe(i),"state",Fhe({},i.initialState)),ue(pe(i),"resizerKnobRef",null),ue(pe(i),"mouseMoveTracker",null),ue(pe(i),"setResizerKnobRef",function(a){i.resizerKnobRef=a}),ue(pe(i),"initializeDOMMouseMoveTracker",function(a){i.mouseMoveTracker=new Ig(i.onMouseMove,i.onMouseUp,document.body,i.props.touchEnabled),i.mouseMoveTracker.captureMouseMoves(a)}),ue(pe(i),"onTouchStart",function(a){i.props.touchEnabled&&i.onMouseDown(a)}),ue(pe(i),"onMouseDown",function(a){i.initializeDOMMouseMoveTracker(a);var o=_m.getCoordinatesFromEvent(a).x-a.currentTarget.closest(Oe(".fixedDataTableLayout/main")).getBoundingClientRect().left;i.setState({initialMouseXCoordinate:o,isColumnResizing:!0,totalDisplacement:0,currentMouseXCoordinate:o})}),ue(pe(i),"onMouseUp",function(){var a=i.getMinMaxWidth(),o=a.minWidth,s=a.maxWidth,u=Id(i.props.width+i.state.totalDisplacement*(i.props.isRTL?-1:1),o,s);i.mouseMoveTracker.releaseMouseMoves(),i.setState({isColumnResizing:!1,totalDisplacement:0},function(){i.props.onColumnResizeEnd(u,i.props.columnKey)})}),ue(pe(i),"onMouseMove",function(a){var o=i.props,s=o.isRTL,u=o.width,c=i.state,h=c.initialMouseXCoordinate,f=c.totalDisplacement,p=f+a,g=h+p,b=i.getMinMaxWidth(),v=b.minWidth,w=b.maxWidth,C=u+p*(s?-1:1);(C<v||C>w)&&(g=i.state.currentMouseXCoordinate),i.setState({totalDisplacement:p,currentMouseXCoordinate:g})}),ue(pe(i),"getMinMaxWidth",function(){return{minWidth:i.props.minWidth||0,maxWidth:i.props.maxWidth||Number.MAX_SAFE_INTEGER}}),ue(pe(i),"suppressEventIfInTouchMode",function(a){i.props.touchEnabled&&(a.preventDefault(),a.stopPropagation())}),i}return vt(r,[{key:"componentDidMount",value:function(){this.setupHandlers()}},{key:"componentWillUnmount",value:function(){this.cleanupHandlers()}},{key:"render",value:function(){var i={height:this.props.height},a=k.createElement(jM,{height:this.props.resizerLineHeight,visible:!!this.state.isColumnResizing,left:this.state.currentMouseXCoordinate,parentRef:this.resizerKnobRef});return k.createElement("div",{className:Oe("fixedDataTableCellLayout/columnResizerContainer"),ref:this.setResizerKnobRef,style:i},a)}},{key:"setupHandlers",value:function(){this.resizerKnobRef.addEventListener("mousedown",this.onMouseDown,{passive:!1}),this.resizerKnobRef.addEventListener("touchstart",this.onTouchStart,{passive:!1}),this.resizerKnobRef.addEventListener("touchmove",this.suppressEventIfInTouchMode,{passive:!1}),this.resizerKnobRef.addEventListener("touchend",this.suppressEventIfInTouchMode,{passive:!1})}},{key:"cleanupHandlers",value:function(){this.resizerKnobRef.removeEventListener("mousedown",this.onMouseDown,{passive:!1}),this.resizerKnobRef.removeEventListener("touchstart",this.onTouchStart,{passive:!1}),this.resizerKnobRef.removeEventListener("touchmove",this.suppressEventIfInTouchMode,{passive:!1}),this.resizerKnobRef.removeEventListener("touchend",this.suppressEventIfInTouchMode,{passive:!1})}}]),r}(k.PureComponent);VM.propTypes={columnKey:H.oneOfType([H.string,H.number]).isRequired,minWidth:H.number,maxWidth:H.number,width:H.number.isRequired,resizerLineHeight:H.number.isRequired,touchEnabled:H.bool,isRTL:H.bool,onColumnResizeEnd:H.func.isRequired,height:H.number.isRequired};var Whe=["children","minWidth","maxWidth","onColumnResizeEnd","onColumnReorderEnd","rowIndex","left","touchEnabled","cellGroupType","onColumnReorderStart"];function Hhe(e){var t=jhe();return function(){var n=Ue(e),i;if(t){var a=Ue(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return sr(this,i)}}function jhe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Oc=function(e){Ut(r,e);var t=Hhe(r);function r(){return gt(this,r),t.apply(this,arguments)}return vt(r,[{key:"render",value:function(){var i=this.props,a=i.children,o=Xn(i,Whe),s;return k.isValidElement(a)?s=k.cloneElement(a,o):typeof a=="function"?s=a(o):s=k.createElement(Vg,o,a),k.createElement(k.Fragment,null,k.createElement(VM,{height:this.props.height,resizerLineHeight:this.context.tableHeight,onColumnResizeEnd:this.props.onColumnResizeEnd,width:this.props.width,minWidth:this.props.minWidth,maxWidth:this.props.maxWidth,columnKey:this.props.columnKey,touchEnabled:this.props.touchEnabled,isRTL:this.context.isRTL}),s)}}]),r}(k.PureComponent);Oc.contextType=fo;Oc.propTypes={columnKey:H.oneOfType([H.string,H.number]),minWidth:H.number,maxWidth:H.number,width:H.number,touchEnabled:H.bool,isRTL:H.bool,onColumnResizeEnd:H.func.isRequired,height:H.number};var Vhe=["cell"],Ghe=["cell"],Uhe=["height","width","columnIndex","isVisible","columnKey","isHeaderOrFooter","touchEnabled"];function G2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?G2(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yhe(e){var t=qhe();return function(){var n=Ue(e),i;if(t){var a=Ue(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return sr(this,i)}}function qhe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Ug=function(e){Ut(r,e);var t=Yhe(r);function r(){return gt(this,r),t.apply(this,arguments)}return vt(r,[{key:"shouldComponentUpdate",value:function(i){if(i.isScrolling&&this.props.rowIndex===i.rowIndex&&this.props.isVisible===i.isVisible)return!1;if(!i.pureRendering)return!0;var a=this.props,o=a.cell,s=Xn(a,Vhe),u=i.cell,c=Xn(i,Ghe);return!tl(s,c)||!o||!u||o.type!==u.type||!tl(o.props,u.props)}},{key:"render",value:function(){var i=this.props,a=i.height,o=i.width,s=i.isVisible,u=i.isHeaderOrFooter,c=i.touchEnabled,h=Xn(i,Uhe),f={height:a,width:o};this.props.isRTL?f.right=h.left:f.left=h.left;var p=Jt(Oe({"fixedDataTableCellLayout/main":!0,"fixedDataTableCellLayout/lastChild":h.lastChild,"fixedDataTableCellLayout/alignRight":h.align==="right","fixedDataTableCellLayout/alignCenter":h.align==="center","public/fixedDataTableCell/alignRight":h.align==="right","public/fixedDataTableCell/highlighted":h.highlighted,"public/fixedDataTableCell/main":!0}),h.className),g={touchEnabled:c,isVisible:s,isHeader:this.props.isHeader,isGroupHeader:this.props.isGroupHeader,cellGroupType:this.props.cellGroupType,columnIndex:this.props.columnIndex,columnKey:this.props.columnKey,height:this.props.height,width:this.props.width,left:this.props.left};h.rowIndex>=0&&(g.rowIndex=h.rowIndex);var b;this.props.isHeader&&(this.props.onColumnResizeEnd||this.props.onColumnReorderEnd)?this.props.onColumnResizeEnd&&this.props.onColumnReorderEnd?(g=Nu(Nu({},g),{},{minWidth:this.props.minWidth,maxWidth:this.props.maxWidth}),b=k.createElement(ol,Mt({},g,{onColumnReorderEnd:this.props.onColumnReorderEnd}),k.createElement(Oc,{onColumnResizeEnd:this.props.onColumnResizeEnd},h.cell))):this.props.onColumnReorderEnd?b=k.createElement(ol,Mt({},g,{onColumnReorderEnd:this.props.onColumnReorderEnd}),h.cell):(g=Nu(Nu({},g),{},{minWidth:this.props.minWidth,maxWidth:this.props.maxWidth}),b=k.createElement(Oc,Mt({},g,{onColumnResizeEnd:this.props.onColumnResizeEnd}),h.cell)):k.isValidElement(h.cell)?b=k.cloneElement(h.cell,g):typeof h.cell=="function"?b=h.cell(g):b=k.createElement(Rc,g,h.cell);var v=u?"columnheader":"gridcell";return k.createElement("div",{className:p,style:f,role:v},b)}}]),r}(k.Component);ue(Ug,"propTypes_DISABLED_FOR_PERFORMANCE",{isScrolling:H.bool,align:H.oneOf(["left","center","right"]),className:H.string,highlighted:H.bool,width:H.number.isRequired,minWidth:H.number,maxWidth:H.number,height:H.number.isRequired,cell:H.oneOfType([H.string,H.element,H.func]),columnKey:H.oneOfType([H.string,H.number]),rowIndex:H.number.isRequired,left:H.number,pureRendering:H.bool,touchEnabled:H.bool,isHeaderOrFooter:H.bool,isRTL:H.bool,isVisible:H.bool.isRequired,onColumnResizeEnd:H.func,onColumnReorderEnd:H.func,isHeader:H.bool,cellGroupType:H.oneOf([ke.FIXED,ke.FIXED_RIGHT,ke.SCROLLABLE])});ue(Ug,"defaultProps",{align:"left",highlighted:!1});var Xhe=BM(Ug),Zhe=["offsetLeft"];function GM(e){var t=Khe();return function(){var n=Ue(e),i;if(t){var a=Ue(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return sr(this,i)}}function Khe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var UM=function(e){Ut(r,e);var t=GM(r);function r(n){var i;return gt(this,r),i=t.call(this,n),ue(pe(i),"_renderCell",function(a,o,s,u,c,h,f){var p=s.cellClassName,g=s.pureRendering||!1,b=s.isReorderable?i.props.onColumnReorderEndCallback:null,v=s.isResizable?i.props.onColumnResizeEndCallback:null;return k.createElement(Xhe,{columnIndex:s.index,isScrolling:i.props.isScrolling,isHeaderOrFooter:i.props.isHeaderOrFooter,isHeader:i.props.isHeader,isGroupHeader:i.props.isGroupHeader,align:s.align,className:p,height:o,key:h,maxWidth:s.maxWidth,minWidth:s.minWidth,touchEnabled:i.props.touchEnabled,onColumnResizeEnd:v,onColumnReorderEnd:b,rowIndex:a,columnKey:s.columnKey,width:s.width,left:c,cell:u,pureRendering:g,isRTL:i.props.isRTL,cellGroupType:i.props.cellGroupType,isVisible:i.props.isVisible&&f})}),i._initialRender=!0,i}return vt(r,[{key:"componentDidMount",value:function(){this._initialRender=!1}},{key:"render",value:function(){for(var i=this.props,a=i.columns,o=new Array(a.length),s=Xu(a),u=0,c=0,h=a.length;c<h;c++){var f=a[c].props,p=a[c].template,g=f.allowCellsRecycling,b=u-i.left<=i.width&&u-i.left+f.width>=0;if(!g||b){var v=f.columnKey||"cell_"+c;o[c]=this._renderCell(i.rowIndex,i.rowHeight,f,p,u,v,b)}u+=f.width}var w={height:i.height,position:"absolute",width:s,zIndex:i.zIndex};return co(w,-1*i.left,0,this._initialRender,this.props.isRTL),k.createElement("div",{className:Oe("fixedDataTableCellGroupLayout/cellGroup"),style:w},o)}}]),r}(k.Component);ue(UM,"propTypes_DISABLED_FOR_PERFORMANCE",{columns:H.array.isRequired,isScrolling:H.bool,left:H.number,height:H.number.isRequired,cellGroupWrapperHeight:H.number,rowHeight:H.number.isRequired,rowIndex:H.number.isRequired,width:H.number.isRequired,zIndex:H.number.isRequired,touchEnabled:H.bool,isHeaderOrFooter:H.bool,isRTL:H.bool,onColumnResizeEndCallback:H.func,onColumnReorderEndCallback:H.func,isHeader:H.bool,isVisible:H.bool.isRequired});var Is=function(e){Ut(r,e);var t=GM(r);function r(){return gt(this,r),t.apply(this,arguments)}return vt(r,[{key:"shouldComponentUpdate",value:function(i){return!(i.isScrolling&&this.props.rowIndex===i.rowIndex&&this.props.left===i.left&&this.props.offsetLeft===i.offsetLeft&&this.props.isVisible===i.isVisible)}},{key:"render",value:function(){var i=this.props,a=i.offsetLeft,o=Xn(i,Zhe),s={height:o.cellGroupWrapperHeight||o.height,width:o.width};return this.props.isRTL?s.right=a:s.left=a,k.createElement("div",{style:s,className:Oe("fixedDataTableCellGroupLayout/cellGroupWrapper")},k.createElement(UM,o))}}]),r}(k.Component);ue(Is,"propTypes_DISABLED_FOR_PERFORMANCE",{isScrolling:H.bool,height:H.number.isRequired,offsetLeft:H.number,left:H.number,zIndex:H.number.isRequired});ue(Is,"defaultProps",{left:0,offsetLeft:0});var Qhe=["offsetTop","zIndex"];function YM(e){var t=Jhe();return function(){var n=Ue(e),i;if(t){var a=Ue(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return sr(this,i)}}function Jhe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var efe=1,qM=function(e){Ut(r,e);var t=YM(r);function r(){var n;gt(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),ue(pe(n),"mouseLeaveIndex",null),ue(pe(n),"_getRowExpanded",function(s){if(n.props.rowExpanded){var u={rowIndex:n.props.index,height:s,width:n.props.width},c;return k.isValidElement(n.props.rowExpanded)?c=k.cloneElement(n.props.rowExpanded,u):typeof n.props.rowExpanded=="function"&&(c=n.props.rowExpanded(u)),c}}),ue(pe(n),"_renderColumnsLeftShadow",function(s){var u=Oe({"fixedDataTableRowLayout/fixedColumnsDivider":s>0,"fixedDataTableRowLayout/columnsShadow":n.props.scrollLeft>0,"public/fixedDataTableRow/fixedColumnsDivider":s>0,"public/fixedDataTableRow/columnsShadow":n.props.scrollLeft>0}),c=n.props.cellGroupWrapperHeight?n.props.cellGroupWrapperHeight-efe:n.props.height,h={left:s,height:c};return n.props.isRTL&&(h.right=s,h.left="auto"),k.createElement("div",{className:u,style:h})}),ue(pe(n),"_renderFixedRightColumnsShadow",function(s){var u=Oe("fixedDataTableRowLayout/columnsShadow","fixedDataTableRowLayout/columnsRightShadow","fixedDataTableRowLayout/fixedColumnsDivider","public/fixedDataTableRow/columnsShadow","public/fixedDataTableRow/columnsRightShadow","public/fixedDataTableRow/fixedColumnsDivider"),c={height:n.props.height,left:s};return n.props.isRTL&&(c.right=s,c.left="auto"),k.createElement("div",{className:u,style:c})}),ue(pe(n),"_renderColumnsRightShadow",function(s){if(Math.ceil(n.props.scrollLeft+n.props.width)<Math.floor(s)){var u=Oe("fixedDataTableRowLayout/columnsShadow","fixedDataTableRowLayout/columnsRightShadow","public/fixedDataTableRow/columnsShadow","public/fixedDataTableRow/columnsRightShadow"),c={height:n.props.height};return k.createElement("div",{className:u,style:c})}}),ue(pe(n),"_onClick",function(s){n.props.onClick(s,n.props.index)}),ue(pe(n),"_onContextMenu",function(s){n.props.onContextMenu(s,n.props.index)}),ue(pe(n),"_onDoubleClick",function(s){n.props.onDoubleClick(s,n.props.index)}),ue(pe(n),"_onMouseUp",function(s){n.props.onMouseUp(s,n.props.index)}),ue(pe(n),"_onMouseDown",function(s){n.props.onMouseDown(s,n.props.index)}),ue(pe(n),"_onMouseEnter",function(s){n.mouseLeaveIndex=n.props.index,n.props.onMouseEnter&&n.props.onMouseEnter(s,n.props.index)}),ue(pe(n),"_onMouseLeave",function(s){n.mouseLeaveIndex===null&&(n.mouseLeaveIndex=n.props.index),n.props.onMouseLeave(s,n.mouseLeaveIndex),n.mouseLeaveIndex=null}),ue(pe(n),"_onTouchStart",function(s){n.props.onTouchStart(s,n.props.index)}),ue(pe(n),"_onTouchEnd",function(s){n.props.onTouchEnd(s,n.props.index)}),ue(pe(n),"_onTouchMove",function(s){n.props.onTouchMove(s,n.props.index)}),n}return vt(r,[{key:"shouldComponentUpdate",value:function(i){return i.isScrolling?i.visible?this.props.visible!==i.visible?!0:!(this.props.index===i.index&&this.props.scrollLeft===i.scrollLeft):!1:!0}},{key:"render",value:function(){var i=this.props.subRowHeight||0,a={width:this.props.width,height:this.props.height+i},o=Oe({"fixedDataTableRowLayout/main":!0,"public/fixedDataTableRow/main":!0,"public/fixedDataTableRow/highlighted":this.props.index%2===1,"public/fixedDataTableRow/odd":this.props.index%2===1,"public/fixedDataTableRow/even":this.props.index%2===0}),s=Xu(this.props.fixedColumns),u=k.createElement(Is,{key:"fixed_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,left:0,width:s,zIndex:2,columns:this.props.fixedColumns,touchEnabled:this.props.touchEnabled,onColumnResizeEndCallback:this.props.onColumnResizeEndCallback,onColumnReorderEndCallback:this.props.onColumnReorderEndCallback,rowHeight:this.props.height,rowIndex:this.props.index,isHeaderOrFooter:this.props.isHeaderOrFooter,isHeader:this.props.isHeader,isGroupHeader:this.props.isGroupHeader,isRTL:this.props.isRTL,cellGroupType:ke.FIXED,isVisible:this.props.visible}),c=this._renderColumnsLeftShadow(s),h=Xu(this.props.fixedRightColumns),f=this.props.showScrollbarY?this.props.scrollbarYWidth:0,p=k.createElement(Is,{key:"fixed_right_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,offsetLeft:this.props.width-h-f,width:h,zIndex:2,columns:this.props.fixedRightColumns,touchEnabled:this.props.touchEnabled,onColumnResizeEndCallback:this.props.onColumnResizeEndCallback,onColumnReorderEndCallback:this.props.onColumnReorderEndCallback,rowHeight:this.props.height,rowIndex:this.props.index,isHeaderOrFooter:this.props.isHeaderOrFooter,isHeader:this.props.isHeader,isGroupHeader:this.props.isGroupHeader,isRTL:this.props.isRTL,cellGroupType:ke.FIXED_RIGHT,isVisible:this.props.visible}),g=h?this._renderFixedRightColumnsShadow(this.props.width-h-f-5):null,b=k.createElement(Is,{key:"scrollable_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,align:"right",left:this.props.scrollLeft,offsetLeft:s,width:this.props.width-s-h-f,zIndex:0,columns:this.props.scrollableColumns,touchEnabled:this.props.touchEnabled,onColumnResizeEndCallback:this.props.onColumnResizeEndCallback,onColumnReorderEndCallback:this.props.onColumnReorderEndCallback,rowHeight:this.props.height,rowIndex:this.props.index,isHeaderOrFooter:this.props.isHeaderOrFooter,isHeader:this.props.isHeader,isGroupHeader:this.props.isGroupHeader,isRTL:this.props.isRTL,cellGroupType:ke.SCROLLABLE,isVisible:this.props.visible}),v=Xu(this.props.scrollableColumns),w=this._renderColumnsRightShadow(s+v),C=this._getRowExpanded(i),M={height:i,top:this.props.height,width:this.props.width},E=null;if(this.props.showScrollbarY){var S={width:f,height:this.props.height,left:this.props.isRTL?2:this.props.width-f-2};E=k.createElement("div",{style:S,className:Oe("public/fixedDataTable/scrollbarSpacer")})}return k.createElement("div",Mt({className:Jt(o,this.props.className),role:"row","aria-rowindex":this.props.ariaRowIndex},this.props.attributes,{onClick:this.props.onClick?this._onClick:null,onContextMenu:this.props.onContextMenu?this._onContextMenu:null,onDoubleClick:this.props.onDoubleClick?this._onDoubleClick:null,onMouseDown:this.props.onMouseDown?this._onMouseDown:null,onMouseUp:this.props.onMouseUp?this._onMouseUp:null,onMouseEnter:this.props.onMouseEnter||this.props.onMouseLeave?this._onMouseEnter:null,onMouseLeave:this.props.onMouseLeave?this._onMouseLeave:null,onTouchStart:this.props.onTouchStart?this._onTouchStart:null,onTouchEnd:this.props.onTouchEnd?this._onTouchEnd:null,onTouchMove:this.props.onTouchMove?this._onTouchMove:null,style:a}),k.createElement("div",{className:Oe("fixedDataTableRowLayout/body")},u,b,c,p,g,E),C&&k.createElement("div",{className:Oe("fixedDataTableRowLayout/rowExpanded"),style:M},C),w)}}]),r}(k.Component);ue(qM,"propTypes",{isScrolling:H.bool,fixedColumns:H.array.isRequired,fixedRightColumns:H.array.isRequired,height:H.number.isRequired,cellGroupWrapperHeight:H.number,subRowHeight:H.number,rowExpanded:H.oneOfType([H.element,H.func]),index:H.number.isRequired,scrollableColumns:H.array.isRequired,scrollLeft:H.number.isRequired,width:H.number.isRequired,onClick:H.func,onContextMenu:H.func,onDoubleClick:H.func,onColumnReorderEndCallback:H.func,touchEnabled:H.bool,isHeaderOrFooter:H.bool,ariaRowIndex:H.number,isRTL:H.bool,attributes:H.object,onColumnResizeEndCallback:H.func,isHeader:H.bool,isGroupHeader:H.bool,scrollToX:H.func});var $s=function(e){Ut(r,e);var t=YM(r);function r(n){var i;return gt(this,r),i=t.call(this,n),i._initialRender=!0,i}return vt(r,[{key:"componentDidMount",value:function(){this._initialRender=!1}},{key:"shouldComponentUpdate",value:function(i){return!i.isScrolling||this.props.visible!==i.visible?!0:i.visible?!(i.isScrolling&&this.props.index===i.index&&this.props.offsetTop===i.offsetTop&&this.props.scrollLeft===i.scrollLeft):!1}},{key:"render",value:function(){var i=this.props,a=i.offsetTop,o=i.zIndex,s=Xn(i,Qhe),u={width:this.props.width,height:this.props.height,zIndex:o||0,visibility:s.visible?"visible":"hidden"};return co(u,0,a,this._initialRender,this.props.isRTL),k.createElement("div",{style:u,className:Oe("fixedDataTableRowLayout/rowWrapper")},k.createElement(qM,s))}}]),r}(k.Component);ue($s,"propTypes",{isScrolling:H.bool,height:H.number.isRequired,zIndex:H.number,offsetTop:H.number.isRequired,visible:H.bool.isRequired,width:H.number.isRequired});function tfe(e){var t=rfe();return function(){var n=Ue(e),i;if(t){var a=Ue(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return sr(this,i)}}function rfe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var XM=function(e){Ut(r,e);var t=tfe(r);function r(n){var i;return gt(this,r),i=t.call(this,n),i._staticRowArray=[],i._initialRender=!0,i}return vt(r,[{key:"componentDidMount",value:function(){this._initialRender=!1}},{key:"shouldComponentUpdate",value:function(){return!0}},{key:"componentWillUnmount",value:function(){this._staticRowArray.length=0}},{key:"render",value:function(){var i=this.props,a=i.offsetTop,o=i.rowOffsets,s=i.scrollTop,u=i.isScrolling,c=i.rowsToRender;c=c||[],u?this._staticRowArray.length=Math.max(this._staticRowArray.length,c.length):this._staticRowArray.length=c.length;for(var h=1e6,f=a-s%h,p=0;p<this._staticRowArray.length;p++){var g,b=Ude(c[p],(g=this._staticRowArray[p])===null||g===void 0?void 0:g.props.index);if(Ls(b)||!Zi(b,0,this.props.rowSettings.rowsCount)){this._staticRowArray[p]=null;continue}var v=o[b]-Math.floor(s/h)*h;this._staticRowArray[p]=this.renderRow({rowIndex:b,key:p,rowOffsetTop:v})}var w={position:"relative"};co(w,0,f,!1);var C=this._staticRowArray.slice().sort(this.rowSortComparator);return k.createElement("div",{style:w},C)}},{key:"renderRow",value:function(i){var a=i.rowIndex,o=i.key,s=i.rowOffsetTop,u=this.props,c=u.rowClassNameGetter||tr,h={};h.height=this.props.rowSettings.rowHeightGetter(a),h.subRowHeight=this.props.rowSettings.subRowHeightGetter(a),h.offsetTop=s,h.key=u.rowKeyGetter?u.rowKeyGetter(a):o,h.attributes=u.rowSettings.rowAttributesGetter&&u.rowSettings.rowAttributesGetter(a);var f=a===u.rowSettings.rowsCount-1&&u.showLastRowBorder;h.className=Jt(c(a),Oe("public/fixedDataTable/bodyRow"),Oe({"fixedDataTableLayout/hasBottomBorder":f,"public/fixedDataTable/hasBottomBorder":f}));var p=Zi(a,this.props.firstViewportRowIndex,this.props.endViewportRowIndex);return k.createElement($s,Mt({key:o,index:a,ariaRowIndex:a+u.ariaRowIndexOffset,isScrolling:u.isScrolling,width:u.width,rowExpanded:u.rowExpanded,scrollLeft:Math.round(u.scrollLeft),fixedColumns:u.fixedColumns,fixedRightColumns:u.fixedRightColumns,scrollableColumns:u.scrollableColumns,onClick:u.onRowClick,onContextMenu:u.onRowContextMenu,onDoubleClick:u.onRowDoubleClick,onMouseDown:u.onRowMouseDown,onMouseUp:u.onRowMouseUp,onMouseEnter:u.onRowMouseEnter,onMouseLeave:u.onRowMouseLeave,onTouchStart:u.onRowTouchStart,onTouchEnd:u.onRowTouchEnd,onTouchMove:u.onRowTouchMove,showScrollbarY:u.showScrollbarY,scrollbarYWidth:u.scrollbarYWidth,isRTL:u.isRTL,visible:p},h))}},{key:"rowSortComparator",value:function(i,a){var o,s;return((o=i==null?void 0:i.props.ariaRowIndex)!==null&&o!==void 0?o:-1)-((s=a==null?void 0:a.props.ariaRowIndex)!==null&&s!==void 0?s:-1)}}]),r}(k.Component);ue(XM,"propTypes",{ariaRowIndexOffset:H.number,isScrolling:H.bool,firstViewportRowIndex:H.number.isRequired,endViewportRowIndex:H.number.isRequired,fixedColumns:H.array.isRequired,fixedRightColumns:H.array.isRequired,height:H.number.isRequired,offsetTop:H.number.isRequired,onRowClick:H.func,onRowContextMenu:H.func,onRowDoubleClick:H.func,onRowMouseDown:H.func,onRowMouseUp:H.func,onRowMouseEnter:H.func,onRowMouseLeave:H.func,onRowTouchStart:H.func,onRowTouchEnd:H.func,onRowTouchMove:H.func,rowClassNameGetter:H.func,rowExpanded:H.oneOfType([H.element,H.func]),rowOffsets:H.object.isRequired,rowKeyGetter:H.func,rowSettings:H.shape({rowAttributesGetter:H.func,rowHeightGetter:H.func,rowsCount:H.number.isRequired,subRowHeightGetter:H.func}),rowsToRender:H.array.isRequired,scrollLeft:H.number.isRequired,scrollTop:H.number.isRequired,scrollableColumns:H.array.isRequired,showLastRowBorder:H.bool,showScrollbarY:H.bool,width:H.number.isRequired,isRTL:H.bool});var U2=1.6,nfe=1.6,ife=325,cs=100,afe=function(){function e(t,r,n,i,a){gt(this,e),this._dragAnimationId=null,this._trackerId=null,this._deltaX=0,this._deltaY=0,this._lastTouchX=0,this._lastTouchY=0,this._velocityX=0,this._velocityY=0,this._accumulatedDeltaX=0,this._accumulatedDeltaY=0,this._lastFrameTimestamp=Date.now(),this._autoScrollTimestamp=Date.now(),typeof r!="function"&&(r=r?tr.thatReturnsTrue:tr.thatReturnsFalse),typeof n!="function"&&(n=n?tr.thatReturnsTrue:tr.thatReturnsFalse),this._handleScrollX=r,this._handleScrollY=n,this._preventDefault=i,this._stopPropagation=a,this._onTouchScrollCallback=t,this._didTouchMove=this._didTouchMove.bind(this),this._track=this._track.bind(this),this._autoScroll=this._autoScroll.bind(this),this._startAutoScroll=this._startAutoScroll.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchCancel=this.onTouchCancel.bind(this)}return vt(e,[{key:"onTouchStart",value:function(r){this._lastTouchX=r.touches[0].pageX,this._lastTouchY=r.touches[0].pageY,this._velocityX=0,this._velocityY=0,this._accumulatedDeltaX=0,this._accumulatedDeltaY=0,this._lastFrameTimestamp=Date.now(),clearInterval(this._trackerId),this._trackerId=setInterval(this._track,cs),this._stopPropagation&&r.stopPropagation()}},{key:"onTouchEnd",value:function(r){clearInterval(this._trackerId),this._trackerId=null,bi(this._startAutoScroll),this._stopPropagation&&r.stopPropagation()}},{key:"onTouchCancel",value:function(r){clearInterval(this._trackerId),this._trackerId=null,this._stopPropagation&&r.stopPropagation()}},{key:"onTouchMove",value:function(r){this._preventDefault&&r.preventDefault();var n=r.touches[0].pageX,i=r.touches[0].pageY;this._deltaX=U2*(this._lastTouchX-n),this._deltaY=U2*(this._lastTouchY-i);var a=this._handleScrollX(this._deltaX,this._deltaY),o=this._handleScrollY(this._deltaY,this._deltaX);if(!(!a&&!o)){a?this._lastTouchX=n:this._deltaX=0,o?this._lastTouchY=i:this._deltaY=0,r.defaultPrevented||r.preventDefault();var s=!1;(Math.abs(this._deltaX)>2||Math.abs(this._deltaY)>2)&&(this._stopPropagation&&r.stopPropagation(),s=!0),s===!0&&this._dragAnimationId===null&&(this._dragAnimationId=bi(this._didTouchMove))}}},{key:"_didTouchMove",value:function(){this._dragAnimationId=null,this._onTouchScrollCallback(this._deltaX,this._deltaY),this._accumulatedDeltaX+=this._deltaX,this._accumulatedDeltaY+=this._deltaY,this._deltaX=0,this._deltaY=0}},{key:"_track",value:function(){var r=Date.now(),n=r-this._lastFrameTimestamp,i=this._velocityX,a=this._velocityY,o=.8;n<cs&&(o*=n/cs),i===0&&a===0&&(o=1),this._velocityX=o*(cs*this._accumulatedDeltaX/(1+n)),o<1&&(this._velocityX+=(1-o)*i),this._velocityY=o*(cs*this._accumulatedDeltaY/(1+n)),o<1&&(this._velocityY+=(1-o)*a),this._accumulatedDeltaX=0,this._accumulatedDeltaY=0,this._lastFrameTimestamp=r}},{key:"_startAutoScroll",value:function(){this._autoScrollTimestamp=Date.now(),(this._deltaX>0||this.deltaY>0)&&this._didTouchMove(),this._track(),this._autoScroll()}},{key:"_autoScroll",value:function(){var r=Date.now()-this._autoScrollTimestamp,n=nfe*Math.exp(-r/ife),i=n*this._velocityX,a=n*this._velocityY;(Math.abs(i)<=5||!this._handleScrollX(i,a))&&(i=0),(Math.abs(a)<=5||!this._handleScrollY(a,i))&&(a=0),(i!==0||a!==0)&&(this._onTouchScrollCallback(i,a),bi(this._autoScroll))}}]),e}();function ofe(e){var t=sfe();return function(){var n=Ue(e),i;if(t){var a=Ue(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return sr(this,i)}}function sfe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Lu=25,Yg=function(e){Ut(r,e);var t=ofe(r);function r(n){var i;return gt(this,r),i=t.call(this,n),ue(pe(i),"_shouldHandleTouchX",function(a){return i.props.touchScrollEnabled&&i._shouldHandleWheelX(a)}),ue(pe(i),"_shouldHandleTouchY",function(a){return i.props.touchScrollEnabled&&i._shouldHandleWheelY(a)}),ue(pe(i),"_shouldHandleWheelX",function(a){var o=i.props,s=o.maxScrollX,u=o.scrollFlags,c=o.scrollX,h=u.overflowX;return h==="hidden"||(a=Math.round(a),a===0)?!1:a<0&&c>0||a>=0&&c<s}),ue(pe(i),"_shouldHandleWheelY",function(a){var o=i.props,s=o.maxScrollY,u=o.scrollFlags,c=o.scrollY,h=u.overflowY;return h==="hidden"||a===0||(a=Math.round(a),a===0)?!1:a<0&&c>0||a>=0&&c<s}),ue(pe(i),"_reportContentHeight",function(){var a=qa(i.props),o=a.contentHeight,s=i.props.onContentHeightChange;o!==i._contentHeight&&s&&s(o),i._contentHeight=o}),ue(pe(i),"_renderRows",function(a,o,s,u,c,h){var f=na(i.props),p=f.scrollEnabledY,g=i.props;return k.createElement(XM,{ariaRowIndexOffset:h,isScrolling:g.scrolling,fixedColumns:o,fixedRightColumns:s,firstViewportRowIndex:g.firstRowIndex,endViewportRowIndex:g.endRowIndex,height:c,offsetTop:a,onRowClick:g.onRowClick,onRowContextMenu:g.onRowContextMenu,onRowDoubleClick:g.onRowDoubleClick,onRowMouseUp:g.onRowMouseUp,onRowMouseDown:g.onRowMouseDown,onRowMouseEnter:g.onRowMouseEnter,onRowMouseLeave:g.onRowMouseLeave,onRowTouchStart:g.touchScrollEnabled?g.onRowTouchStart:null,onRowTouchEnd:g.touchScrollEnabled?g.onRowTouchEnd:null,onRowTouchMove:g.touchScrollEnabled?g.onRowTouchMove:null,rowClassNameGetter:g.rowClassNameGetter,rowExpanded:g.rowExpanded,rowKeyGetter:g.rowKeyGetter,rowSettings:g.rowSettings,scrollLeft:g.scrollX,scrollTop:g.scrollY,scrollableColumns:u,showLastRowBorder:!0,width:g.tableSize.width,rowsToRender:g.rows,rowOffsets:g.rowOffsets,showScrollbarY:p,scrollbarYWidth:g.scrollbarYWidth,isRTL:g.isRTL})}),ue(pe(i),"_onRef",function(a){i._divRef=a,i._wheelHandler&&(i.props.stopReactWheelPropagation?i._wheelHandler.setRoot(a):i._wheelHandler.setRoot(null))}),ue(pe(i),"_onScroll",function(a,o){var s=i.props,u=s.maxScrollX,c=s.maxScrollY,h=s.onHorizontalScroll,f=s.onVerticalScroll,p=s.scrollActions,g=s.scrollFlags,b=s.scrollX,v=s.scrollY,w=g.overflowX,C=g.overflowY,M=b,E=v;if(Math.abs(o)>Math.abs(a)&&C!=="hidden")E+=o,E=E<0?0:E,E=E>c?c:E,(!f||f(E))&&p.scrollToY(E);else if(a&&w!=="hidden"){M+=a,M=M<0?0:M,M=M>u?u:M;var S=Math.round(M);(!h||h(S))&&p.scrollToX(S)}}),ue(pe(i),"_scrollTo",function(a,o){i.props.scrollActions.scrollToX(a),i.props.scrollActions.scrollToY(o)}),ue(pe(i),"_didScroll",function(a){var o=i.props,s=o.onScrollStart,u=o.scrollX,c=o.scrollY,h=o.onHorizontalScroll,f=o.onVerticalScroll,p=o.tableSize.ownerHeight,g=o.scrolling,b=a.endRowIndex,v=a.firstRowIndex,w=a.scrollX,C=a.scrollY,M=a.tableSize.ownerHeight,E=a.scrolling,S=p!==M&&!(I2(p)&&I2(M)),P=u!==w,R=c!==C;!S&&!P&&!R||(!E&&g&&s&&s(w,C,v,b),P&&h&&h(u),R&&f&&f(c),i._didScrollStop())}),ue(pe(i),"_didScrollStopSync",function(){var a=i.props,o=a.endRowIndex,s=a.firstRowIndex,u=a.onScrollEnd,c=a.scrollActions,h=a.scrollX,f=a.scrollY,p=a.scrolling;p&&(c.stopScroll(),u&&u(h,f,s,o))}),i._didScrollStop=gde(i._didScrollStopSync,200,pe(i)),i._onKeyDown=i._onKeyDown.bind(pe(i)),i._setupHandlers(),i}return vt(r,[{key:"componentWillUnmount",value:function(){this._cleanupHandlers(),this._didScrollStop.reset(),this._didScrollStopSync()}},{key:"_setupHandlers",value:function(){this._wheelHandler||(this._wheelHandler=new bM(this._onScroll,this._shouldHandleWheelX,this._shouldHandleWheelY,this.props.isRTL,this.props.stopScrollDefaultHandling,this.props.stopScrollPropagation)),this._touchHandler||(this._touchHandler=new afe(this._onScroll,this._shouldHandleTouchX,this._shouldHandleTouchY,this.props.stopScrollDefaultHandling,this.props.stopScrollPropagation)),this._divRef&&this._divRef.addEventListener("wheel",this._wheelHandler.onWheel,{passive:!1}),this.props.touchScrollEnabled&&this._divRef&&this._divRef.addEventListener("touchmove",this._touchHandler.onTouchMove,{passive:!1})}},{key:"_cleanupHandlers",value:function(){this._wheelHandler&&(this._divRef&&this._divRef.removeEventListener("wheel",this._wheelHandler.onWheel,{passive:!1}),this._wheelHandler=null),this._touchHandler&&(this._divRef&&this._divRef.removeEventListener("touchmove",this._touchHandler.onTouchMove,{passive:!1}),this._touchHandler=null)}},{key:"_onKeyDown",value:function(i){var a=qa(this.props),o=a.scrollbarYHeight;if(this.props.keyboardPageEnabled)switch(i.key){case"PageDown":this._onScroll(0,o),i.preventDefault();break;case"PageUp":this._onScroll(0,o*-1),i.preventDefault();break}if(this.props.keyboardScrollEnabled)switch(i.key){case"ArrowDown":this._onScroll(0,Lu),i.preventDefault();break;case"ArrowUp":this._onScroll(0,Lu*-1),i.preventDefault();break;case"ArrowRight":this._onScroll(Lu,0),i.preventDefault();break;case"ArrowLeft":this._onScroll(Lu*-1,0),i.preventDefault();break}}},{key:"shouldComponentUpdate",value:function(i){return!tl(this.props,i)}},{key:"componentDidMount",value:function(){this._setupHandlers(),this._reportContentHeight(),this._reportScrollBarsUpdates()}},{key:"componentDidUpdate",value:function(i){this._didScroll(i),this._reportContentHeight(),this._reportScrollBarsUpdates()}},{key:"_reportScrollBarsUpdates",value:function(){var i=qa(this.props),a=i.bodyOffsetTop,o=i.scrollbarXOffsetTop,s=i.visibleRowsHeight,u=this.props,c=u.tableSize.width,h=u.scrollContentHeight,f=u.scrollY,p=u.scrollX,g={viewportHeight:s,contentHeight:h,scrollbarYOffsetTop:a,scrollY:f,viewportWidth:c,contentWidth:c+this.props.maxScrollX,scrollbarXOffsetTop:o,scrollX:p,scrollTo:this._scrollTo,scrollToX:this.props.scrollActions.scrollToX,scrollToY:this.props.scrollActions.scrollToY};tl(this.previousScrollState,g)||(this.props.onScrollBarsUpdate(g),this.previousScrollState=g)}},{key:"render",value:function(){var i=yde(this.props),a=i.ariaGroupHeaderIndex,o=i.ariaHeaderIndex,s=i.ariaFooterIndex,u=i.ariaRowCount,c=i.ariaRowIndexOffset,h=Vde(this.props),f=h.fixedColumnGroups,p=h.fixedColumns,g=h.fixedRightColumnGroups,b=h.fixedRightColumns,v=h.scrollableColumnGroups,w=h.scrollableColumns,C=qa(this.props),M=C.bodyHeight,E=C.bodyOffsetTop,S=C.componentHeight,P=C.footOffsetTop,R=C.scrollbarXOffsetTop,N=C.visibleRowsHeight,B=this.props,U=B.className,K=B.elementHeights,Q=B.gridAttributesGetter,O=B.maxScrollY,F=B.onColumnReorderEndCallback,q=B.onColumnResizeEndCallback,j=B.scrollContentHeight,V=B.scrollX,W=B.scrollY,G=B.scrolling,te=B.tableSize,z=B.touchScrollEnabled,Y=B.scrollbarYWidth,ie=te.ownerHeight,ne=te.width,re=K.cellGroupWrapperHeight,oe=K.footerHeight,se=K.groupHeaderHeight,de=K.headerHeight,ce=na(this.props),ge=ce.scrollEnabledX,Te=ce.scrollEnabledY,ye=Q&&Q(),J;se>0&&(J=k.createElement($s,{key:"group_header",ariaRowIndex:a,isHeaderOrFooter:!0,isScrolling:G,className:Jt(Oe("fixedDataTableLayout/header"),Oe("public/fixedDataTable/header")),width:ne,height:se,cellGroupWrapperHeight:re,index:0,zIndex:1,offsetTop:0,scrollLeft:V,fixedColumns:f,fixedRightColumns:g,scrollableColumns:v,visible:!0,touchEnabled:z,onColumnResizeEndCallback:q,onColumnReorderEndCallback:F,showScrollbarY:Te,scrollbarYWidth:Y,isRTL:this.props.isRTL,isHeader:!0,isGroupHeader:!0}));var _e;Te&&(_e=this.props.scrollbarY);var ve;ge&&(ve=this.props.scrollbarX);var Ee=null;oe&&(Ee=k.createElement($s,{key:"footer",ariaRowIndex:s,isHeaderOrFooter:!0,isScrolling:G,className:Jt(Oe("fixedDataTableLayout/footer"),Oe("public/fixedDataTable/footer")),width:ne,height:oe,index:-1,zIndex:1,offsetTop:P,visible:!0,fixedColumns:p.footer,fixedRightColumns:b.footer,scrollableColumns:w.footer,scrollLeft:V,showScrollbarY:Te,scrollbarYWidth:Y,isRTL:this.props.isRTL}));var Ne=this._renderRows(E,p.cell,b.cell,w.cell,M,c),We=k.createElement($s,{key:"header",ariaRowIndex:o,isHeaderOrFooter:!0,isScrolling:G,className:Jt(Oe("fixedDataTableLayout/header"),Oe("public/fixedDataTable/header")),width:ne,height:de,cellGroupWrapperHeight:re,index:-1,zIndex:1,offsetTop:se,scrollLeft:V,visible:!0,fixedColumns:p.header,fixedRightColumns:b.header,scrollableColumns:w.header,touchEnabled:z,onColumnResizeEndCallback:q,onColumnReorderEndCallback:F,showScrollbarY:Te,scrollbarYWidth:Y,isRTL:this.props.isRTL,isHeader:!0}),He;W&&(He=k.createElement("div",{className:Jt(Oe("fixedDataTableLayout/topShadow"),Oe("public/fixedDataTable/topShadow")),style:{top:E}}));var Zt=ie&&ie<S&&j>N,xt;(Zt||W<O)&&(xt=k.createElement("div",{className:Jt(Oe("fixedDataTableLayout/bottomShadow"),Oe("public/fixedDataTable/bottomShadow")),style:{top:P}}));var $t=null;(this.props.keyboardPageEnabled||this.props.keyboardScrollEnabled)&&($t=0);var Pt=U;return this.props.isRTL&&(Pt=Jt(Pt,"fixedDataTable_isRTL")),k.createElement("div",Mt({className:Jt(Pt,Oe("fixedDataTableLayout/main"),Oe("public/fixedDataTable/main")),role:"grid","aria-rowcount":u},ye,{tabIndex:$t,onKeyDown:this._onKeyDown,onTouchStart:z?this._touchHandler.onTouchStart:null,onTouchEnd:z?this._touchHandler.onTouchEnd:null,onTouchCancel:z?this._touchHandler.onTouchCancel:null,ref:this._onRef,style:{height:S,width:ne}}),k.createElement("div",{className:Oe("fixedDataTableLayout/rowsContainer"),style:{height:R,width:ne}},J,We,Ne,Ee,He,xt),_e,ve)}}]),r}(k.Component);ue(Yg,"propTypes",{width:H.number.isRequired,height:H.number,className:H.string,maxHeight:H.number,ownerHeight:H.number,overflowX:H.oneOf(["hidden","auto"]),overflowY:H.oneOf(["hidden","auto"]),touchScrollEnabled:H.bool,keyboardScrollEnabled:H.bool,keyboardPageEnabled:H.bool,scrollbarX:H.node,scrollbarXHeight:H.number,scrollbarY:H.node,scrollbarYWidth:H.number,onScrollBarsUpdate:H.func,defaultScrollbars:H.bool,showScrollbarX:H.bool,showScrollbarY:H.bool,onHorizontalScroll:H.func,onVerticalScroll:H.func,rowsCount:H.number.isRequired,rowHeight:H.number.isRequired,rowHeightGetter:H.func,subRowHeight:H.number,subRowHeightGetter:H.func,rowExpanded:H.oneOfType([H.element,H.func]),rowClassNameGetter:H.func,rowKeyGetter:H.func,groupHeaderHeight:H.number,headerHeight:H.number.isRequired,cellGroupWrapperHeight:H.number,footerHeight:H.number,scrollLeft:H.number,scrollToColumn:H.number,scrollTop:H.number,isVerticalScrollExact:H.bool,scrollToRow:H.number,onScrollStart:H.func,onScrollEnd:H.func,stopReactWheelPropagation:H.bool,stopScrollDefaultHandling:H.bool,stopScrollPropagation:H.bool,onContentHeightChange:H.func,onRowClick:H.func,onRowContextMenu:H.func,onRowDoubleClick:H.func,onRowMouseDown:H.func,onRowMouseUp:H.func,onRowMouseEnter:H.func,onRowMouseLeave:H.func,onRowTouchStart:H.func,onRowTouchEnd:H.func,onRowTouchMove:H.func,onColumnResizeEndCallback:H.func,onColumnReorderEndCallback:H.func,isRTL:H.bool,bufferRowCount:H.number,elementHeights:H.shape({cellGroupWrapperHeight:H.number,footerHeight:H.number,groupHeaderHeight:H.number,headerHeight:H.number}),gridAttributesGetter:H.func,rowAttributesGetter:H.func});ue(Yg,"defaultProps",{elementHeights:{cellGroupWrapperHeight:void 0,footerHeight:0,groupHeaderHeight:0,headerHeight:0},keyboardScrollEnabled:!1,keyboardPageEnabled:!1,touchScrollEnabled:!1,stopScrollPropagation:!1});var lfe={get:function(){return qce({reducer:tde,devTools:process.env.NODE_ENV!=="production",middleware:function(r){return r({immutableCheck:!1,serializableCheck:!1})}})}},ufe=Tg,cfe=Ll,dfe=Od,hfe=en,ffe=Nl,pfe=Js.exports,mfe=Nd,gfe=YT,vfe="[object Map]",yfe="[object Set]",bfe=Object.prototype,_fe=bfe.hasOwnProperty;function wfe(e){if(e==null)return!0;if(ffe(e)&&(hfe(e)||typeof e=="string"||typeof e.splice=="function"||pfe(e)||gfe(e)||dfe(e)))return!e.length;var t=cfe(e);if(t==vfe||t==yfe)return!e.size;if(mfe(e))return!ufe(e).length;for(var r in e)if(_fe.call(e,r))return!1;return!0}var Y2=wfe;function ZM(e){var t=xfe();return function(){var n=Ue(e),i;if(t){var a=Ue(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return sr(this,i)}}function xfe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Cfe=function(e){Ut(r,e);var t=ZM(r);function r(){var n;gt(this,r);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=t.call.apply(t,[this].concat(a)),ue(pe(n),"state",{}),ue(pe(n),"_onScrollBarsUpdate",function(s){n.setState(s)}),ue(pe(n),"_onVerticalScroll",function(s){n.state.scrollToY!==void 0&&n.state.scrollToY(s)}),ue(pe(n),"_onHorizontalScroll",function(s){n.state.scrollToX!==void 0&&n.state.scrollToX(s)}),n}return vt(r,[{key:"render",value:function(){var i=!Y2(this.state)&&k.createElement(Or,{size:this.state.viewportHeight,contentSize:this.state.contentHeight,onScroll:this._onVerticalScroll,verticalTop:this.state.scrollbarYOffsetTop,position:this.state.scrollY,touchEnabled:this.props.touchScrollEnabled,isRTL:this.props.isRTL}),a=!Y2(this.state)&&k.createElement(KM,{contentSize:this.state.contentWidth,offset:this.state.scrollbarXOffsetTop,onScroll:this._onHorizontalScroll,position:this.state.scrollX,size:this.state.viewportWidth,touchEnabled:this.props.touchScrollEnabled,isRTL:this.props.isRTL});return k.cloneElement(this.props.children,{onScrollBarsUpdate:this._onScrollBarsUpdate,scrollbarX:a,scrollbarY:i})}}]),r}(k.Component),KM=function(e){Ut(r,e);var t=ZM(r);function r(){return gt(this,r),t.apply(this,arguments)}return vt(r,[{key:"render",value:function(){var i=this.props,a=i.offset,o=i.size,s={height:Or.SIZE,width:o},u={height:Or.SIZE,overflow:"hidden",width:o,top:a};return k.createElement("div",{className:Jt(Oe("public/fixedDataTable/horizontalScrollbar")),style:s},k.createElement("div",{style:u},k.createElement(Or,Mt({},this.props,{isOpaque:!0,orientation:"horizontal",offset:void 0}))))}}]),r}(k.PureComponent);ue(KM,"propTypes",{contentSize:H.number.isRequired,offset:H.number.isRequired,onScroll:H.func.isRequired,position:H.number.isRequired,size:H.number.isRequired,isRTL:H.bool});var Tfe=function(){return ai([function(t){return qa(t).componentHeight},function(t){return t.elementHeights.groupHeaderHeight},function(t){return t.scrollX},function(t){return t.maxScrollX},function(t){return Il(t).availableScrollWidth},function(t){return t.isRTL}],function(t,r,n,i,a,o){return{tableHeight:t,groupHeaderHeight:r,scrollX:n,maxScrollX:i,availableScrollWidth:a,isRTL:o}})},Mfe=da,Sfe=en,Efe=Ri,Pfe="[object String]";function Afe(e){return typeof e=="string"||!Sfe(e)&&Efe(e)&&Mfe(e)==Pfe}var Rfe=Afe;function Ofe(e){return function(t){return t==null?void 0:t[e]}}var kfe=Ofe,Dfe=kfe,Nfe=Dfe("length"),Lfe=Nfe,Ife="\\ud800-\\udfff",$fe="\\u0300-\\u036f",Ffe="\\ufe20-\\ufe2f",zfe="\\u20d0-\\u20ff",Bfe=$fe+Ffe+zfe,Wfe="\\ufe0e\\ufe0f",Hfe="\\u200d",jfe=RegExp("["+Hfe+Ife+Bfe+Wfe+"]");function Vfe(e){return jfe.test(e)}var Gfe=Vfe,QM="\\ud800-\\udfff",Ufe="\\u0300-\\u036f",Yfe="\\ufe20-\\ufe2f",qfe="\\u20d0-\\u20ff",Xfe=Ufe+Yfe+qfe,Zfe="\\ufe0e\\ufe0f",Kfe="["+QM+"]",Om="["+Xfe+"]",km="\\ud83c[\\udffb-\\udfff]",Qfe="(?:"+Om+"|"+km+")",JM="[^"+QM+"]",eS="(?:\\ud83c[\\udde6-\\uddff]){2}",tS="[\\ud800-\\udbff][\\udc00-\\udfff]",Jfe="\\u200d",rS=Qfe+"?",nS="["+Zfe+"]?",epe="(?:"+Jfe+"(?:"+[JM,eS,tS].join("|")+")"+nS+rS+")*",tpe=nS+rS+epe,rpe="(?:"+[JM+Om+"?",Om,eS,tS,Kfe].join("|")+")",q2=RegExp(km+"(?="+km+")|"+rpe+tpe,"g");function npe(e){for(var t=q2.lastIndex=0;q2.test(e);)++t;return t}var ipe=npe,ape=Lfe,ope=Gfe,spe=ipe;function lpe(e){return ope(e)?spe(e):ape(e)}var upe=lpe,cpe=Tg,dpe=Ll,hpe=Nl,fpe=Rfe,ppe=upe,mpe="[object Map]",gpe="[object Set]";function vpe(e){if(e==null)return 0;if(hpe(e))return fpe(e)?ppe(e):e.length;var t=dpe(e);return t==mpe||t==gpe?e.size:cpe(e).length}var Mf=vpe,ype=function(t){return{offset:t.offset,width:t.width,index:t.index,columnKey:t.columnKey}},Iu=function(t){return{offset:t.offset,width:t.width,index:t.index,columnKey:t.columnKey}},bpe=function(){return ai([function(t){return Il(t)},function(t,r){return r}],function(t,r){var n=t.fixedColumns,i=t.fixedRightColumns,a=t.scrollableColumns,o=t.fixedColumnGroups,s=t.fixedRightColumnGroups,u=t.scrollableColumnGroups,c=function(W){var G=n.length+a.length+i.length;if(W<0||W>=G||!Number.isInteger(W))throw"columnIndex must be an integer between 0 and ".concat(G-1," inclusive")},h=function(W){var G=o.length+u.length+s.length;if(W<0||W>=G||!Number.isInteger(W))throw"columnGroupIndex must be an integer between 0 and ".concat(G-1," inclusive")},f=function(W){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!(G&&Ls(W))&&W!==ke.FIXED&&W!==ke.FIXED_RIGHT&&W!==ke.SCROLLABLE)throw"Invalid CellGroupType"},p=function(W){return W<n.length?ke.FIXED:W<n.length+a.length?ke.SCROLLABLE:ke.FIXED_RIGHT},g=function(W){return W<o.length?ke.FIXED:W<o.length+u.length?ke.SCROLLABLE:ke.FIXED_RIGHT},b=function(W,G){if(G===ke.FIXED)return W;if(G===ke.SCROLLABLE)return W-n.length;if(G===ke.FIXED_RIGHT)return W-n.length-a.length},v=function(W,G){if(G===ke.FIXED)return W;if(G===ke.SCROLLABLE)return W-o.length;if(G===ke.FIXED_RIGHT)return W-o.length-u.length},w=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ke.SCROLLABLE;f(W);var G=B(W);return G.reduce(function(te,z){return te+z.width},0)},C=function(W,G){var te=B(G),z=b(W,G);return te[z]},M=function(W){c(W);var G=p(W),te=C(W,G);return ype(te)},E=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(f(W,!0),Ls(W))return n.length+a.length+i.length;var G=B(W);return G.length},S=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(f(W,!0),Ls(W))return o.length+u.length+s.length;var G=U(W);return G.length},P=function(W,G){var te=U(G),z=v(W,G);return Iu(te[z])},R=function(W){h(W);var G=g(W);return P(W,G)},N=function(W){c(W);var G=p(W),te=C(W,G).groupIdx,z=K(te);return Iu(z)},B=function(W){if(W===ke.FIXED)return n;if(W===ke.FIXED_RIGHT)return i;if(W===ke.SCROLLABLE)return a;throw"Invalid cell group type"},U=function(W){if(W===ke.FIXED)return o;if(W===ke.FIXED_RIGHT)return s;if(W===ke.SCROLLABLE)return u;throw"Invalid cell group type"},K=function(W){var G=Mf(o),te=Mf(u),z=Mf(s);if(Zi(W,0,G))return o[W];if(Zi(W,G,G+te))return u[W-G];if(Zi(W,G+te,G+te+z))return s[W-G-te];throw"Invalid absolute column group index"},Q=function(W,G){if(W.length===0)return{element:null,distanceFromOffset:null};for(var te=0,z=0;z!==W.length&&!(te>G);)te+=W[z].width,z++;return z=Fd(z-1,0,W.length-1),{element:W[z],distanceFromOffset:W[z].width-(te-G)}},O=function(W){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ke.SCROLLABLE;f(G);var te=B(G),z=Q(te,W),Y=z.element,ie=z.distanceFromOffset;return Y&&(Y=Iu(Y)),{column:Y,distanceFromOffset:ie}},F=function(W){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ke.SCROLLABLE;f(G);var te=U(G),z=Q(te,W),Y=z.element,ie=z.distanceFromOffset;return Y&&(Y=Iu(Y)),{columnGroup:Y,distanceFromOffset:ie}},q=r.scrollToX,j=r.updateRowHeights;return{getColumn:M,getColumnGroup:R,getColumnGroupByChild:N,getColumnAtOffset:O,getColumnGroupAtOffset:F,getCellGroupWidth:w,getColumnCount:E,getColumnGroupCount:S,scrollToX:q,updateRowHeights:j}})};function X2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?X2(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var _pe=function(){var t=[],r=null,n=function(s){return t=t.concat(s),function(){var u=t.indexOf(s);t.splice(u,1)}},i=Tfe(),a=bpe();return{getValue:ai([function(o){return i(o)},function(o,s){return a(o,s)}],function(o,s){return r=Sf(Sf(Sf({},o),s),{},{subscribe:n}),r}),notify:function(){t.forEach(function(s){return s(r)})}}};function Z2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Z2(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wpe(e){var t=xpe();return function(){var n=Ue(e),i;if(t){var a=Ue(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return sr(this,i)}}function xpe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var iS=function(e){Ut(r,e);var t=wpe(r);function r(n){var i;return gt(this,r),i=t.call(this,n),i._initialize(n),i.fixedDataTableApi=_pe(),i.previousApiValue=null,i}return vt(r,[{key:"componentDidMount",value:function(){this._initialize(this.props)}},{key:"componentWillUnmount",value:function(){this._cleanup()}},{key:"componentDidUpdate",value:function(){this.notifyApiValueChanges()}},{key:"_initialize",value:function(i){var a=this;if(!this.reduxStore){this.reduxStore=lfe.get(),this.reduxStore.dispatch(rde(i)),this.scrollActions=lde(this.reduxStore,function(){return a.props}),this.unsubscribe=this.reduxStore.subscribe(this.onStoreUpdate.bind(this));var o={boundState:r.getBoundState(this.reduxStore),reduxStore:this.reduxStore,props:i};this.state?this.setState(o):this.state=o}}},{key:"_cleanup",value:function(){this.reduxStore&&(this.unsubscribe(),this.unsubscribe=null,this.reduxStore=null)}},{key:"getApi",value:function(){var i=this;return this.fixedDataTableApi.getValue($u($u({},this.props),this.reduxStore.getState()),$u($u({},this.scrollActions),{},{updateRowHeights:function(o){return GT({updateRowHeights:sde},i.reduxStore.dispatch).updateRowHeights(o)}}))}},{key:"notifyApiValueChanges",value:function(){var i=this.getApi();this.previousApiValue!==i&&(this.fixedDataTableApi.notify(),this.previousApiValue=i)}},{key:"render",value:function(){var i=this.getApi(),a=k.createElement(Yg,Mt({},this.props,this.state.boundState,{scrollActions:this.scrollActions}));return this.props.defaultScrollbars?k.createElement(fo.Provider,{value:i},k.createElement(Cfe,this.props,a)):k.createElement(fo.Provider,{value:i},a)}},{key:"onStoreUpdate",value:function(){var i=r.getBoundState(this.reduxStore);this.state.boundState.propsRevision===i.propsRevision&&this.setState({boundState:i})}}],[{key:"getDerivedStateFromProps",value:function(i,a){return Cn(i.height!==void 0||i.maxHeight!==void 0,"You must set either a height or a maxHeight"),i===a.props?null:(a.reduxStore.dispatch(nde({newProps:i,oldProps:a.props})),{boundState:r.getBoundState(a.reduxStore),props:i})}},{key:"getBoundState",value:function(i){var a=i.getState(),o=ws(a,["columnGroupElements","columnElements","elementHeights","elementTemplates","firstRowIndex","endRowIndex","maxScrollX","maxScrollY","propsRevision","rows","rowOffsets","rowSettings","scrollContentHeight","scrollFlags","scrollX","scrollY","scrolling","scrollJumpedX","scrollJumpedY","tableSize"]);return o}}]),r}(k.Component);ue(iS,"defaultProps",{defaultScrollbars:!0,scrollbarXHeight:Or.SIZE,scrollbarYWidth:Or.SIZE});var Cpe=BM(iS);function Tpe(e){var t=Mpe();return function(){var n=Ue(e),i;if(t){var a=Ue(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return sr(this,i)}}function Mpe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Kd=function(e){Ut(r,e);var t=Tpe(r);function r(){return gt(this,r),t.apply(this,arguments)}return vt(r,[{key:"render",value:function(){if(process.env.NODE_ENV!=="production")throw new Error("Component <FixedDataTableColumn /> should never render");return null}}]),r}(k.Component);ue(Kd,"__TableColumn__",!0);ue(Kd,"propTypes",{align:H.oneOf(["left","center","right"]),fixed:H.bool,fixedRight:H.bool,header:H.oneOfType([H.node,H.func]),cell:H.oneOfType([H.node,H.func]),footer:H.oneOfType([H.node,H.func]),columnKey:H.oneOfType([H.string,H.number]),width:H.number.isRequired,minWidth:H.number,maxWidth:H.number,flexGrow:H.number,isResizable:H.bool,isReorderable:H.bool,allowCellsRecycling:H.bool,pureRendering:H.bool,cellClassName:H.string});ue(Kd,"defaultProps",{allowCellsRecycling:!1,fixed:!1,fixedRight:!1});function Spe(e){var t=Epe();return function(){var n=Ue(e),i;if(t){var a=Ue(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return sr(this,i)}}function Epe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var qg=function(e){Ut(r,e);var t=Spe(r);function r(){return gt(this,r),t.apply(this,arguments)}return vt(r,[{key:"render",value:function(){if(process.env.NODE_ENV!=="production")throw new Error("Component <FixedDataTableColumnGroup /> should never render");return null}}]),r}(k.Component);ue(qg,"__TableColumnGroup__",!0);ue(qg,"propTypes",{align:H.oneOf(["left","center","right"]),fixed:H.bool,header:H.oneOfType([H.node,H.func])});ue(qg,"defaultProps",{fixed:!1});const Ppe=()=>typeof window=="undefined"||typeof document=="undefined"||!document.body||typeof window.innerWidth!="number"||typeof document.body.clientWidth!="number"?0:Math.max(0,window.innerWidth-document.body.clientWidth),Ape="#f4f4f8",Rpe="#edeef1",Ope="#e3e5ea",kpe="#f9f9fb",Dpe="#ffcb05",Npe="#1faff3",Lpe="#e5e5e5",Ipe="#5b6372",$pe="#3a4356",Fpe="#3c3c42",zpe="#a3a3a3",Bpe="#d0d3db",Wpe="_headerCell_2qf2w_16",Hpe="_noSort_2qf2w_29",jpe="_standard_2qf2w_29",Vpe="_caret_2qf2w_33",Gpe="_headerLabel_2qf2w_38",Upe="_icon_2qf2w_43",Ype="_numberIcon_2qf2w_50",qpe="_dateIcon_2qf2w_54",Xpe="_textIcon_2qf2w_58",Zpe="_booleanIcon_2qf2w_62",Kpe="_sortIcon_2qf2w_66",Qpe="_sortAscending_2qf2w_74",Jpe="_sortDescending_2qf2w_78",ci={athensGray:Ape,athensGrayDark:Rpe,athensGrayDark2:Ope,athensGrayLight:kpe,defaultBrandColor:Dpe,dodgerBlue:Npe,mercury:Lpe,shuttleGrayDark:Ipe,oxfordBlue:$pe,darkModeDefaultBackground:Fpe,indicatorGrey:zpe,secondaryButtonHover:Bpe,headerCell:Wpe,noSort:Hpe,standard:jpe,caret:Vpe,headerLabel:Gpe,icon:Upe,numberIcon:Ype,dateIcon:qpe,textIcon:Xpe,booleanIcon:Zpe,sortIcon:Kpe,sortAscending:Qpe,sortDescending:Jpe},eme="_icon_t30x8_1",tme="_numberIcon_t30x8_11",rme="_dateIcon_t30x8_15",nme="_textIcon_t30x8_19",ime="_booleanIcon_t30x8_23",ds={icon:eme,numberIcon:tme,dateIcon:rme,textIcon:nme,booleanIcon:ime},ame=({columnType:e})=>_.jsx("div",{className:Qs(ds.icon,{[ds.numberIcon]:I.isNumber(e),[ds.dateIcon]:I.isDatetime(e),[ds.textIcon]:I.isText(e),[ds.booleanIcon]:I.isBoolean(e)})}),ome=({column:e,onClick:t,isSelected:r,children:n,showFieldTypeIcon:i,sortIcon:a="standard"})=>_.jsxs("div",{className:ci.headerCell,onClick:()=>{t(e)},children:[i&&_.jsx(ame,{columnType:e.type}),_.jsx("div",{className:ci.headerLabel,children:n}),_.jsx("div",{className:Qs(ci.sortIcon,{[ci.caret]:a==="caret",[ci.standard]:a==="standard",[ci.noSort]:!r||e.direction===0,[ci.sortAscending]:r&&e.direction===1,[ci.sortDescending]:r&&e.direction===-1})})]}),sme=26,lme=26,K2=8,aS=36,oS=29,sS=24,Dm=350,ume=126,cme=38,dme=55,hme=(e,t,r,n)=>{const a=document.createElement("canvas").getContext("2d");if(!a)return[];a.font=`13px ${n||"Open Sans"}`;const o=e.columns.map(f=>a.measureText(f.name).width+aS+(t?oS:0)),s=a.measureText("0").width,u=e.columns.map(f=>({type:I.simpleColumnType(f.type),index:f.index})),{rows:c}=e,h=u.map(f=>{const p=c.reduce((g,b)=>{var M;const v=b[f.index].displayValue,w=(M=r[f.index])!=null&&M.isHtml?fme(v):v,C=f.type==="number"?b[f.index].displayValue.length*s:a.measureText(w).width;return Math.max(g,C)},0);return sS+p});return o.map((f,p)=>{var g;return(g=r[p])!=null&&g.width?r[p].width:Math.ceil(Math.max(ume,Math.min(Dm,Math.max(f,h[p]))))})};function fme(e){const t=document.createElement("div");return t.innerHTML=e,lS(t)}function lS(e){let t,r,n,i;for(r="",t=0;t<e.childNodes.length;t++)i=e.childNodes[t],n=null,i.nodeType===1?n=lS(i):i.nodeType===3&&(n=i.nodeValue),n&&(r+=n);return r}const Q2=e=>e%2===1,J2=({colIndex:e=0,rowIndex:t=0,themeSettings:r,customStyles:n,isHeaderCell:i})=>{var c,h,f,p,g,b,v,w,C,M,E,S,P,R,N,B,U,K;let a=r.chart.textColor;const o=r.typography.fontFamily;let s=r.chart.backgroundColor;const u=_.getSlightlyDifferentColor(s);return i?(h=(c=n==null?void 0:n.header)==null?void 0:c.color)!=null&&h.enabled&&(s=((p=(f=n==null?void 0:n.header)==null?void 0:f.color)==null?void 0:p.backgroundColor)||u,a=((b=(g=n==null?void 0:n.header)==null?void 0:g.color)==null?void 0:b.textColor)||a):((w=(v=n==null?void 0:n.columns)==null?void 0:v.alternatingColor)!=null&&w.enabled&&Q2(e)&&(s=((M=(C=n==null?void 0:n.columns)==null?void 0:C.alternatingColor)==null?void 0:M.backgroundColor)||u,a=((S=(E=n==null?void 0:n.columns)==null?void 0:E.alternatingColor)==null?void 0:S.textColor)||a),(R=(P=n==null?void 0:n.rows)==null?void 0:P.alternatingColor)!=null&&R.enabled&&Q2(t)&&(s=((B=(N=n==null?void 0:n.rows)==null?void 0:N.alternatingColor)==null?void 0:B.backgroundColor)||u,a=((K=(U=n==null?void 0:n.rows)==null?void 0:U.alternatingColor)==null?void 0:K.textColor)||a)),{color:a,backgroundColor:s,fontFamily:o}},pme="#f4f4f8",mme="#edeef1",gme="#e3e5ea",vme="#f9f9fb",yme="#ffcb05",bme="#1faff3",_me="#e5e5e5",wme="#5b6372",xme="#3a4356",Cme="#3c3c42",Tme="#a3a3a3",Mme="#d0d3db",Sme="_tableWrapper_1ode4_16",Eme="_table_1ode4_16",Pme="_tableHeader_1ode4_78",Ame="_tableCell_1ode4_88",Rme="_tableCellContent_1ode4_99",Ome="_headerColor_1ode4_105",kme="_rowColor_1ode4_109",Cs={athensGray:pme,athensGrayDark:mme,athensGrayDark2:gme,athensGrayLight:vme,defaultBrandColor:yme,dodgerBlue:bme,mercury:_me,shuttleGrayDark:wme,oxfordBlue:xme,darkModeDefaultBackground:Cme,indicatorGrey:Tme,secondaryButtonHover:Mme,tableWrapper:Sme,table:Eme,tableHeader:Pme,tableCell:Ame,tableCellContent:Rme,headerColor:Ome,rowColor:kme},Dme=e=>I.isNumber(e)?"right":"left",Nme=new RegExp(`<\\/?[\\w\\s="/.':;#-\\/\\?]+>`),e_=({displayValue:e,width:t,padding:r,ellipsizedLength:n,isHtml:i})=>{var f,p,g,b,v,w,C,M;const{app:a}=wt(),o=(b=(g=(p=(f=a==null?void 0:a.settings)==null?void 0:f.chartConfig)==null?void 0:p.tabular)==null?void 0:g.htmlContent)==null?void 0:b.enabled,s=(M=(C=(w=(v=a==null?void 0:a.settings)==null?void 0:v.chartConfig)==null?void 0:w.tabular)==null?void 0:C.htmlContent)==null?void 0:M.sanitizeContents,{isHtmlValue:u,value:c}=k.useMemo(()=>{let E=i;o&&typeof E=="undefined"&&(E=Nme.test(e));const S=E&&s?_.purify.sanitize(e):e;return{isHtmlValue:E,value:S}},[o,i,e,s]),h=c.length>n;return _.jsx("div",{className:Cs.tableCellContent,style:{maxWidth:`${t-r}px`},children:u?_.jsx("div",{dangerouslySetInnerHTML:{__html:c}}):h?_.jsx(Td,{title:c,children:_.jsx("div",{children:c})}):_.jsx("div",{children:c})})},Lme=({dataTable:e,dataOptions:t,height:r,width:n,customStyles:i,themeSettings:a,onSortUpdate:o})=>{var M,E,S;const s=i&&i.showFieldTypeIcon!==void 0?i.showFieldTypeIcon:!0,u=aS+(s?oS:0),c=(i==null?void 0:i.paddingVertical)||K2,h=(i==null?void 0:i.paddingHorizontal)||K2,f=((M=i==null?void 0:i.columns)==null?void 0:M.width)==="auto"?(n-h*2-Ppe())/t.columns.length:void 0,p=k.useMemo(()=>t.columns.map(P=>({isHtml:"isHtml"in P&&!!P.isHtml,width:f})),[t.columns,f]),[g,b]=k.useState(((E=document.fonts)==null?void 0:E.status)==="loaded"),v=(S=a.typography)==null?void 0:S.fontFamily,w=k.useMemo(()=>hme(e,s,p,v),[e,s,p,v,g]);k.useEffect(()=>{var P;(P=document.fonts)==null||P.ready.then(()=>{b(!0)}).catch(R=>{console.warn("Failed to observe font loading",R)})},[]);const C=k.useMemo(()=>e.columns.map((P,R)=>{const N=w[R],B=t.columns[R],U=J2({isHeaderCell:!0,themeSettings:a,customStyles:i});return N?_.jsx(Kd,{maxWidth:Dm,minWidth:Dm,allowCellsRecycling:!0,width:N,header:_.jsx(Rc,{className:Qs(Cs.tableHeader),style:U,children:_.jsx(ome,{column:P,onClick:o,isSelected:!!Math.abs(P.direction),showFieldTypeIcon:s,sortIcon:(i==null?void 0:i.sortIcon)||"standard",children:_.jsx(e_,{displayValue:_.getDataOptionTitle(B),width:N,padding:u,ellipsizedLength:cme})})}),cell:O=>{var F=O,{rowIndex:K}=F,Q=Ce(F,["rowIndex"]);return _.jsx(Rc,$(T({className:Qs(Cs.tableCell),style:J2({colIndex:R,rowIndex:K,themeSettings:a,customStyles:i})},Q),{children:_.jsx(e_,{displayValue:e.rows[K][R].displayValue,width:N,padding:sS,ellipsizedLength:dme,isHtml:"isHtml"in B?B.isHtml:void 0})}))},align:Dme(P.type)},`col${R}`):null}),[e,w,a,i,o,s,t,u]);return k.useMemo(()=>_.jsx("div",{className:Cs.tableWrapper,style:{padding:`${c}px ${h}px`},children:_.jsx(Cpe,{className:Cs.table,rowHeight:(i==null?void 0:i.rowHeight)||lme,rowsCount:e.rows.length,width:n-h*2,height:r-c*2,headerHeight:(i==null?void 0:i.headerHeight)||sme,children:C})}),[C,i,e,r,h,c,n])},Ime=(e,t)=>{if(!e.columns.some(o=>I.isNumber(o.type)))return e;const r=e.columns,i=e.rows.map(o=>o.map((s,u)=>{const c=r[u].type,h=_.getCompleteNumberFormatConfig(t.columns[u].numberFormatConfig);if(I.isNumber(c)){const f=_.createCompareValue(s.displayValue,c);return{displayValue:_.applyFormatPlainText(h,f.value),compareValue:f}}else return s}));return{columns:r,rows:i}},$me="_component_1rw9b_1",Fme={component:$me},zme=({dataTable:e,dataOptions:t,designOptions:r={},onSortUpdate:n,themeSettings:i,width:a=400,height:o=500})=>{const s=k.useRef(null),u=k.useRef(e),c=k.useMemo(()=>Ime(e,t),[e,t]);k.useLayoutEffect(()=>{u.current=e},[e]);const h=k.useMemo(()=>T({sortIcon:"caret",showFieldTypeIcon:!1},r),[r]);return _.jsx("div",{className:Fme.component,ref:s,children:_.jsx(Lme,{dataTable:c,dataOptions:t,onSortUpdate:n,height:o,width:a,customStyles:h,themeSettings:i})})},Bme=e=>({"& .MuiPaginationItem-circular.Mui-selected":{color:e.chart.textColor},"& .MuiPaginationItem-circular":{color:e.chart.secondaryTextColor,fontFamily:e.typography.fontFamily}}),Wme=e=>({paddingVertical:e.paddingVertical,paddingHorizontal:e.paddingHorizontal,header:e.header,rows:e.rows,columns:e.columns}),uS=25,cS=10,dS=({dataSet:e,dataOptions:t,styleOptions:r={},filters:n,onDataReady:i})=>{const{rowsPerPage:a=uS,width:o,height:s}=r,{themeSettings:u}=it(),[c,h]=k.useState(0),{filters:f,relations:p}=I.getFilterListAndRelationsJaql(n),[g,b]=k.useState(1),v=k.useRef(null),w=k.useMemo(()=>VC(t),[t]),C=k.useMemo(()=>ug(w.columns.filter(_.isMeasureColumn).map(_.translateColumnToMeasure)),[w]),M=k.useMemo(()=>Wme(r),[r]),[E,S]=k.useState(w),[P,R]=k.useState(e),[N,B]=zZ({dataSet:P,dataOptions:E,filters:f,filterRelations:p,count:a*cS,offset:c}),U=k.useMemo(()=>{if(N&&i){const j=i(N);if(!fT(j))throw new I.TranslatableError("errors.incorrectOnDataReadyHandler");return j}return N},[N]),K=BZ({data:U,innerDataOptions:B,dataColumnNamesMapping:C,needToAggregate:!xi(P)});k.useEffect(()=>{S(w),R(e),b(1),h(0)},[e,w]);const Q=k.useCallback(j=>{if(!N)return;Math.floor(N.rows.length/a)===j&&h(N.rows.length),b(j)},[N,a]),O=k.useCallback(j=>{b(1),h(0),E&&S(FY(E,j))},[E]),F=k.useMemo(()=>{if(!K||xi(P))return K;const j=K.columns.find(V=>V.direction!==0);return j?_.orderBy(K,[j]):K},[K,P]),q=k.useMemo(()=>F?{columns:F.columns,rows:F.rows.slice((g-1)*a,g*a)}:void 0,[F,g,a]);return B?_.jsx(rd,{defaultSize:nd("table"),size:{width:o,height:s},children:j=>{if(!K||!q)return _.jsx(mi,{});if(_.isDataTableEmpty(K))return _.jsx(k0,{iconType:"table"});const V=Math.ceil(K.rows.length/a);return _.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",backgroundColor:u.chart.backgroundColor},"aria-label":"table-root",children:[_.jsx(zme,{dataTable:q,dataOptions:B,designOptions:M,themeSettings:u,width:j.width,height:j.height-32,onSortUpdate:O}),_.jsx(bw,{ref:v,page:g,count:V,onChange:(G,te)=>Q(te),sx:Bme(u)})]})}}):null},Hme=k.createContext(null),Ef={didCatch:!1,error:null};class Nm extends k.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Ef}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:a,reason:"imperative-api"}),this.setState(Ef)}}componentDidCatch(t,r){var n,i;(n=(i=this.props).onError)===null||n===void 0||n.call(i,t,r)}componentDidUpdate(t,r){const{didCatch:n}=this.state,{resetKeys:i}=this.props;if(n&&r.error!==null&&jme(t.resetKeys,i)){var a,o;(a=(o=this.props).onReset)===null||a===void 0||a.call(o,{next:i,prev:t.resetKeys,reason:"keys"}),this.setState(Ef)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:i}=this.props,{didCatch:a,error:o}=this.state;let s=t;if(a){const u={error:o,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")s=r(u);else if(n)s=k.createElement(n,u);else if(i===null||k.isValidElement(i))s=i;else throw o}return k.createElement(Hme.Provider,{value:{didCatch:a,error:o,resetErrorBoundary:this.resetErrorBoundary}},s)}}function jme(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}const hS=k.createContext(void 0),Vme=({children:e})=>{const[t,r]=k.useState([]),[n,i]=k.useState([]),a=()=>r([]),o=()=>i([]);return _.jsx(hS.Provider,{value:{errors:t,warnings:n,clearError:a,clearWarning:o,setErrors:r,setWarnings:i},children:e})},fS=()=>{const e=k.useContext(hS);return e||{errors:[],warnings:[],setErrors:()=>{console.warn("setErrors called, but context is not available.")},setWarnings:()=>{console.warn("setWarnings called, but context is not available.")},clearError:()=>{console.warn("clearError called, but context is not available.")},clearWarning:()=>{console.warn("clearWarning called, but context is not available.")}}};function Xg(e,t,r){const n=fd(e);return typeof e!="object"&&e===n?!1:n==null||(t?t.some(a=>!I.isEqual(n[a],e[a])):!I.isEqual(n,e))?!0:r?r(e,n):!1}const Gme="BE#081586",Ume="BE#733473",Yme=e=>{const[t,r]=k.useState(0),{setErrors:n,errors:i}=fS(),a=Xg(e,["dataOptions","filters"]);if(k.useEffect(()=>{a&&i.length>0&&(r(t+1),n([]))},[e.dataOptions,e.filters]),!xi(e.dataSet))throw new I.TranslatableError("errors.missingDataSource");const o=I.cloneDeep(e.dataOptions),s=_.extractTrendMeasures(o);o.value.push(...s);const u=_.extractForecastMeasures(o);o.value.push(...u);const c=k.useCallback(({error:p})=>{console.debug("Unexpected error occurred when rendering advanced chart:",p);const g=I.cloneDeep(o),b=f(p.toString());return g.value=g.value.filter(v=>{const w="column"in v?v.column.name:v.name;return!("column"in v&&"type"in v.column&&v.column.type==="calculatedmeasure"&&[_.TREND_PREFIX,_.FORECAST_PREFIX].some(E=>w.includes(E))&&b.some(E=>E.includes(w)))}),_.jsx(Nm,{fallbackRender:h,onError:v=>{const w=f(v.toString());n(C=>[...new Set([...C,...w])])},children:_.jsx(Uu,$(T({},e),{dataOptions:g}))},`errorboundary_${t}`)},[e,i]),h=k.useCallback(({error:p})=>(console.debug("Error occurred when rendering fallback chart:",p),p.toString().includes(Gme)?_.jsx(Uu,T({},e)):_.jsx(_0,{error:i[0]})),[e,i]),f=p=>{if(p.includes(Ume)){const g=/Error: BE#733473 More than 1 Function failed, aggregated failures:\s*/;if(g.test(p))return p.replace(g,"").split(";").map(v=>v.trim()).filter(Boolean)}return[p.trim()]};return _.jsx(Nm,{fallbackRender:c,onError:p=>{const g=f(p.toString());n(b=>[...new Set([...b,...g])])},children:_.jsx(Uu,$(T({},e),{dataOptions:o}))},`errorboundary_${t}`)},pS=e=>{const{dataSet:t}=e;return!!t&&typeof t!="string"&&"rows"in t&&"columns"in t},mS=ml({componentName:"Chart",shouldSkipSisenseContextWaiting:pS,customContextErrorMessageKey:"errors.chartNoSisenseContext"})(e=>{var t;if(qme(e))return _.jsx(dS,T({},e));if(Xme(e))return _.jsx(Yme,T({},e));if(gS(e))return _.jsx(Uu,T({},e));throw new I.TranslatableError("errors.chartInvalidProps",{chartType:(t=e.chartType)!=null?t:"unknown"})});function qme(e){return e.chartType==="table"&&"columns"in e.dataOptions}function gS(e){return e.chartType!=="table"}function Xme(e){return!gS(e)||!I.isCartesian(e.chartType)?!1:e.dataOptions.value.some(r=>(r==null?void 0:r.forecast)!==void 0||(r==null?void 0:r.trend)!==void 0)}function Zg(e,{onLocalStateChange:t,syncCompareFn:r=I.isEqual}={}){const[n,i]=k.useState(e),a=k.useRef(e);k.useEffect(()=>{r(a.current,e)||i(e),a.current=e},[e,r]);const o=k.useCallback(s=>{i(u=>{const c=I.isFunction(s)?s(u):s;return t==null||t(c),c})},[t]);return[n,o]}function Zme(e,t,r){r=typeof r=="function"?r:void 0;var n=r?r(e,t):void 0;return n===void 0?I.baseIsEqual(e,t,void 0,r):!!n}const Kme=e=>{const t=vS(e);return t.config.disabled=!e.config.disabled,t},vS=e=>{const t=I.cloneDeep(e);return Object.setPrototypeOf(t,e),t};function Qme(e,t,r){const n=T({guid:t},r?{backgroundFilter:r}:{});return I.members(e,[],n)}function Qd(e){if(!I.isMembersFilter(e))throw new I.TranslatableError("errors.notAMembersFilter");const{attribute:t,config:{guid:r,backgroundFilter:n}}=e;return Qme(t,r,n)}function Kg(e){return"members"in e&&e.members.length===0}function kr(e,t){return e.expression===(t==null?void 0:t.expression)&&e.granularity===t.granularity}function yS(e,t){return e===void 0&&t===void 0?!1:[e,t].some(r=>r===void 0)||e.length!==t.length?!0:e.length===0&&t.length===0?!1:e.some((r,n)=>!Zme(r,t[n],bS))}function Qg(e,t){return kr(e.attribute,t.attribute)}function bS(e,t){const r=_.flow(Jme,e0e);return I.isEqual(r(e),r(t))}function Jme(e){return $(T({},e),{name:""})}function e0e(e){return $(T({},e),{config:$(T({},e.config),{guid:""})})}function t0e(e,t,r,n){if(r===void 0&&n===void 0)return!1;if([r,n].some(a=>a===void 0))return!0;function i(a,o){const s=a,u=a,c=o,h=o;return a===void 0&&o===void 0?!0:[a,o].some(f=>f===void 0)||s.operator!==c.operator?!1:u.instanceid&&h.instanceid?!yS(e==null?void 0:e.filter(f=>f.config.guid===u.instanceid),t==null?void 0:t.filter(f=>f.config.guid===h.instanceid)):i(s.left,c.left)&&i(s.right,c.right)||i(s.left,c.right)&&i(s.right,c.left)}return!i(r,n)}const _S="sdkHookInit",r0e=(e,t,r,n)=>{if(!r)return;Iw(_S,{packageName:t,packageVersion:"2.23.0",hookName:e},r.httpClient).finally(n)};function n0e(e){const{tracking:t,app:r}=wt(),{trackEvent:n}=O0(),i=k.useRef(!1);k.useEffect(()=>{if(!(!t||!r)&&!i.current){const a={packageName:t.packageName||"sdk-ui",packageVersion:"2.23.0",hookName:e};n(_S,a,!t.enabled).finally(()=>i.current=!0)}},[t,e,n,r])}const i0e=e=>t=>(...r)=>(n0e(e),t(...r));function wS(e,t){switch(t.type){case"loading":return a0e(e);case"success":return o0e(t.data);case"error":return s0e(t.error)}}function a0e(e){return e.status==="loading"?e:$(T({},e),{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0})}function o0e(e){return{isLoading:!1,isError:!1,isSuccess:!0,data:e,status:"success",error:void 0}}function s0e(e){return{isLoading:!1,isError:!0,isSuccess:!1,data:void 0,status:"error",error:e}}var Pf=function(){return I.root.Date.now()},l0e="Expected a function",u0e=Math.max,c0e=Math.min;function d0e(e,t,r){var n,i,a,o,s,u,c=0,h=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(l0e);t=_.toNumber(t)||0,I.isObject(r)&&(h=!!r.leading,f="maxWait"in r,a=f?u0e(_.toNumber(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p);function g(R){var N=n,B=i;return n=i=void 0,c=R,o=e.apply(B,N),o}function b(R){return c=R,s=setTimeout(C,t),h?g(R):o}function v(R){var N=R-u,B=R-c,U=t-N;return f?c0e(U,a-B):U}function w(R){var N=R-u,B=R-c;return u===void 0||N>=t||N<0||f&&B>=a}function C(){var R=Pf();if(w(R))return M(R);s=setTimeout(C,v(R))}function M(R){return s=void 0,p&&n?g(R):(n=i=void 0,o)}function E(){s!==void 0&&clearTimeout(s),c=0,n=u=i=s=void 0}function S(){return s===void 0?o:M(Pf())}function P(){var R=Pf(),N=w(R);if(n=arguments,i=this,u=R,N){if(s===void 0)return b(u);if(f)return clearTimeout(s),s=setTimeout(C,t),g(u)}return s===void 0&&(s=setTimeout(C,t)),o}return P.cancel=E,P.flush=S,P}const xS=e=>_.jsx("svg",$(T({width:"24",height:"24",viewBox:"0 0 24 24"},e),{children:_.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5 21a8.5 8.5 0 1 1 0-17 8.5 8.5 0 0 1 0 17zM13 8.878c0-1.27-.499-1.896-1.496-1.878C10.501 7.03 10 7.68 10 8.95c0 .737.17 1.647.51 2.731l.318.98c.081.245.14.413.175.503.197.533.376.811.537.835.15.018.314-.248.493-.8.083-.257.161-.512.233-.763.071-.252.146-.503.224-.755.34-1.12.51-2.054.51-2.803zM11.5 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"})}));function CS(e){return function(t){t=I.toString(t);var r=YC(t)?Yp(t):void 0,n=r?r[0]:t.charAt(0),i=r?UC(r,1).join(""):t.slice(1);return n[e]()+i}}var TS=CS("toUpperCase");function h0e(e){return TS(I.toString(e).toLowerCase())}function f0e(e,t,r,n){for(var i=-1,a=e==null?0:e.length;++i<a;)r=t(r,e[i],i,e);return r}function p0e(e){return function(t){return e==null?void 0:e[t]}}var m0e={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},g0e=p0e(m0e),v0e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,y0e="\\u0300-\\u036f",b0e="\\ufe20-\\ufe2f",_0e="\\u20d0-\\u20ff",w0e=y0e+b0e+_0e,x0e="["+w0e+"]",C0e=RegExp(x0e,"g");function T0e(e){return e=I.toString(e),e&&e.replace(v0e,g0e).replace(C0e,"")}var M0e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function S0e(e){return e.match(M0e)||[]}var E0e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function P0e(e){return E0e.test(e)}var MS="\\ud800-\\udfff",A0e="\\u0300-\\u036f",R0e="\\ufe20-\\ufe2f",O0e="\\u20d0-\\u20ff",k0e=A0e+R0e+O0e,SS="\\u2700-\\u27bf",ES="a-z\\xdf-\\xf6\\xf8-\\xff",D0e="\\xac\\xb1\\xd7\\xf7",N0e="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",L0e="\\u2000-\\u206f",I0e=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",PS="A-Z\\xc0-\\xd6\\xd8-\\xde",$0e="\\ufe0e\\ufe0f",AS=D0e+N0e+L0e+I0e,RS="['’]",t_="["+AS+"]",F0e="["+k0e+"]",OS="\\d+",z0e="["+SS+"]",kS="["+ES+"]",DS="[^"+MS+AS+OS+SS+ES+PS+"]",B0e="\\ud83c[\\udffb-\\udfff]",W0e="(?:"+F0e+"|"+B0e+")",H0e="[^"+MS+"]",NS="(?:\\ud83c[\\udde6-\\uddff]){2}",LS="[\\ud800-\\udbff][\\udc00-\\udfff]",ja="["+PS+"]",j0e="\\u200d",r_="(?:"+kS+"|"+DS+")",V0e="(?:"+ja+"|"+DS+")",n_="(?:"+RS+"(?:d|ll|m|re|s|t|ve))?",i_="(?:"+RS+"(?:D|LL|M|RE|S|T|VE))?",IS=W0e+"?",$S="["+$0e+"]?",G0e="(?:"+j0e+"(?:"+[H0e,NS,LS].join("|")+")"+$S+IS+")*",U0e="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Y0e="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",q0e=$S+IS+G0e,X0e="(?:"+[z0e,NS,LS].join("|")+")"+q0e,Z0e=RegExp([ja+"?"+kS+"+"+n_+"(?="+[t_,ja,"$"].join("|")+")",V0e+"+"+i_+"(?="+[t_,ja+r_,"$"].join("|")+")",ja+"?"+r_+"+"+n_,ja+"+"+i_,Y0e,U0e,OS,X0e].join("|"),"g");function K0e(e){return e.match(Z0e)||[]}function Q0e(e,t,r){return e=I.toString(e),t=t,t===void 0?P0e(e)?K0e(e):S0e(e):e.match(t)||[]}var J0e="['’]",ege=RegExp(J0e,"g");function tge(e){return function(t){return f0e(Q0e(T0e(t).replace(ege,"")),e,"")}}var FS=tge(function(e,t,r){return t=t.toLowerCase(),e+(r?h0e(t):t)});function rge(e,t,r,n){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(n,o,r(o),e)}return n}function nge(e,t){return function(r,n){if(r==null)return r;if(!I.isArrayLike(r))return e(r,n);for(var i=r.length,a=-1,o=Object(r);++a<i&&n(o[a],a,o)!==!1;);return r}}var ige=nge(I.baseForOwn);function age(e,t,r,n){return ige(e,function(i,a,o){t(n,i,r(i),o)}),n}function zS(e,t){return function(r,n){var i=I.isArray(r)?rge:age,a=t?t():{};return i(r,e,I.baseIteratee(n),a)}}var $l=zS(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]}),Fl=(e=>(e.HIGHLIGHT="highlight",e.FILTER="filter",e))(Fl||{});function Jg(e){return t=>{var r,n,i,a,o;return $(T({},t),{toolbar:$(T({},t.toolbar),{menu:$(T({},(n=(r=t.toolbar)==null?void 0:r.menu)!=null?n:{}),{items:[...(o=(a=(i=t.toolbar)==null?void 0:i.menu)==null?void 0:a.items)!=null?o:[],e]})})})}}function BS(e){return t=>{var r,n;return $(T({},t),{config:$(T({},t.config),{header:Jg(e)((n=(r=t.config)==null?void 0:r.header)!=null?n:{})})})}}const oge=Object.freeze(Object.defineProperty({__proto__:null,withHeaderMenuItem:BS,withMenuItemInHeaderConfig:Jg},Symbol.toStringTag,{value:"Module"})),a_=(e,t)=>{var r;return I.isCartesian(e)&&((r=t.category)==null?void 0:r.length)===1||I.isScatter(e)};function sge({chartType:e,dataOptions:t,enabled:r}){const[n,i]=k.useState([]),a=k.useRef(r&&a_(e,t));k.useEffect(()=>{a.current=r&&a_(e,t)},[e,t,r]);const o=k.useMemo(()=>{if(n.length===0)return f=>$(T({},f),{series:f.series.map(p=>$(T({},p),{data:p.data.map(g=>$(T({},g),{selected:!1}))}))});if(I.isScatter(e))return f=>$(T({},f),{series:f.series.map(p=>$(T({},p),{data:p.data.map(g=>$(T({},g),{selected:!n.some(b=>{var v,w;return b.x===g.x&&b.y===g.y&&b.size===g.z&&b.breakByPoint===((v=g.custom)==null?void 0:v.maskedBreakByPoint)&&b.breakByColor===((w=g.custom)==null?void 0:w.maskedBreakByColor)})}))}))});{const f=n.reduce((p,{categoryValue:g})=>(g&&(p[`${g}`]=!0),p),{});return p=>$(T({},p),{series:p.series.map(g=>$(T({},g),{data:g.data.map(b=>{var v,w;return f[(w=(v=b.custom)==null?void 0:v.xValue)==null?void 0:w[0]]?b:$(T({},b),{selected:!0})})}))})}},[n,e]),s=k.useMemo(()=>f=>{var p;return $(T({},f),{chart:$(T({},f.chart),{events:$(T({},(p=f.chart)==null?void 0:p.events),{click:()=>{i([])}})})})},[]),u=k.useCallback(f=>(a.current&&(f=o(f),f=s(f)),f),[o,s]),c=k.useCallback(f=>{a.current&&i(f)},[]),h=k.useCallback(f=>{a.current&&i([f])},[]);return{onBeforeRender:u,onDataPointsSelected:c,onDataPointClick:h}}function lge(e){const{enabled:t,onChange:r}=e,{t:n}=_.useTranslation(),[i,a]=k.useState(!1),o=k.useCallback(()=>{a(!0)},[]),s=k.useCallback(()=>{a(!1)},[]),u=k.useCallback(f=>{a(!1),r==null||r({type:"title/changed",payload:{title:f}})},[r]),c=k.useMemo(()=>{if(t)return{id:"rename-widget",caption:n("widgetHeader.menu.renameWidget"),onClick:o}},[t,n,o]),h=k.useMemo(()=>{if(t)return{isEditing:i,onCommit:u,onCancel:s,onEditingChange:f=>{f?o():s()}}},[t,i,u,s,o]);return{renameMenuItem:c,titleEditorConfig:h}}function WS(e){var u,c,h;const{onChange:t,headerConfig:r}=e,n=(h=(c=(u=r==null?void 0:r.title)==null?void 0:u.editing)==null?void 0:c.enabled)!=null?h:!1,{renameMenuItem:i,titleEditorConfig:a}=lge({enabled:n,onChange:t}),o=k.useMemo(()=>!n||!i?r!=null?r:{}:Jg(i)(r!=null?r:{}),[n,r,i]);return{headerConfig:n?o:r!=null?r:{},titleEditor:a}}function Fu(e){return parseInt(e,10)||0}const uge={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function cge(e){for(const t in e)return!1;return!0}function o_(e){return cge(e)||e.outerHeightStyle===0&&!e.overflowing}const HS=Z.forwardRef(function(t,r){const E=t,{onChange:n,maxRows:i,minRows:a=1,style:o,value:s}=E,u=Ce(E,["onChange","maxRows","minRows","style","value"]),{current:c}=Z.useRef(s!=null),h=Z.useRef(null),f=or(r,h),p=Z.useRef(null),g=Z.useRef(null),b=Z.useCallback(()=>{const S=h.current,P=g.current;if(!S||!P)return;const N=Qn(S).getComputedStyle(S);if(N.width==="0px")return{outerHeightStyle:0,overflowing:!1};P.style.width=N.width,P.value=S.value||t.placeholder||"x",P.value.slice(-1)===`
416
+ `&&(P.value+=" ");const B=N.boxSizing,U=Fu(N.paddingBottom)+Fu(N.paddingTop),K=Fu(N.borderBottomWidth)+Fu(N.borderTopWidth),Q=P.scrollHeight;P.value="x";const O=P.scrollHeight;let F=Q;a&&(F=Math.max(Number(a)*O,F)),i&&(F=Math.min(Number(i)*O,F)),F=Math.max(F,O);const q=F+(B==="border-box"?U+K:0),j=Math.abs(F-Q)<=1;return{outerHeightStyle:q,overflowing:j}},[i,a,t.placeholder]),v=Sn(()=>{const S=h.current,P=b();if(!S||!P||o_(P))return!1;const R=P.outerHeightStyle;return p.current!=null&&p.current!==R}),w=Z.useCallback(()=>{const S=h.current,P=b();if(!S||!P||o_(P))return;const R=P.outerHeightStyle;p.current!==R&&(p.current=R,S.style.height=`${R}px`),S.style.overflow=P.overflowing?"hidden":""},[b]),C=Z.useRef(-1);on(()=>{const S=J_(w),P=h==null?void 0:h.current;if(!P)return;const R=Qn(P);R.addEventListener("resize",S);let N;return typeof ResizeObserver!="undefined"&&(N=new ResizeObserver(()=>{v()&&(N.unobserve(P),cancelAnimationFrame(C.current),w(),C.current=requestAnimationFrame(()=>{N.observe(P)}))}),N.observe(P)),()=>{S.clear(),cancelAnimationFrame(C.current),R.removeEventListener("resize",S),N&&N.disconnect()}},[b,w,v]),on(()=>{w()});const M=S=>{c||w(),n&&n(S)};return fe.jsxs(Z.Fragment,{children:[fe.jsx("textarea",T({value:s,onChange:M,ref:f,rows:a,style:o},u)),fe.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:g,tabIndex:-1,style:$(T(T({},uge.shadow),o),{paddingTop:0,paddingBottom:0})})]})});process.env.NODE_ENV!=="production"&&(HS.propTypes={className:y.string,maxRows:y.oneOfType([y.number,y.string]),minRows:y.oneOfType([y.number,y.string]),onChange:y.func,placeholder:y.string,style:y.object,value:y.oneOfType([y.arrayOf(y.string),y.number,y.string])});function dge({props:e,states:t,muiFormControl:r}){return t.reduce((n,i)=>(n[i]=e[i],r&&typeof e[i]=="undefined"&&(n[i]=r[i]),n),{})}const ev=Z.createContext(void 0);process.env.NODE_ENV!=="production"&&(ev.displayName="FormControlContext");function jS(){return Z.useContext(ev)}function s_(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function hge(e,t=!1){return e&&(s_(e.value)&&e.value!==""||t&&s_(e.defaultValue)&&e.defaultValue!=="")}function fge(e){return ht("MuiInputBase",e)}const Lm=ft("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var l_;const pge=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Le(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},mge=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},gge=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:u,hiddenLabel:c,multiline:h,readOnly:f,size:p,startAdornment:g,type:b}=e,v={root:["root",`color${Le(r)}`,n&&"disabled",i&&"error",u&&"fullWidth",o&&"focused",s&&"formControl",p&&p!=="medium"&&`size${Le(p)}`,h&&"multiline",g&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",b==="search"&&"inputTypeSearch",h&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",g&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Et(v,fge,t)},vge=De("div",{name:"MuiInputBase",slot:"Root",overridesResolver:pge})(kt(({theme:e})=>$(T({},e.typography.body1),{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Lm.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),yge=De("input",{name:"MuiInputBase",slot:"Input",overridesResolver:mge})(kt(({theme:e})=>{const t=e.palette.mode==="light",r=$(T({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5}),{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),n={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Lm.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Lm.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),u_=DR({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),VS=Z.forwardRef(function(t,r){var dn;const n=_t({props:t,name:"MuiInputBase"}),Kt=n,{"aria-describedby":i,autoComplete:a,autoFocus:o,className:s,color:u,components:c={},componentsProps:h={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:g,endAdornment:b,error:v,fullWidth:w=!1,id:C,inputComponent:M="input",inputProps:E={},inputRef:S,margin:P,maxRows:R,minRows:N,multiline:B=!1,name:U,onBlur:K,onChange:Q,onClick:O,onFocus:F,onKeyDown:q,onKeyUp:j,placeholder:V,readOnly:W,renderSuffix:G,rows:te,size:z,slotProps:Y={},slots:ie={},startAdornment:ne,type:re="text",value:oe}=Kt,se=Ce(Kt,["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"]),de=E.value!=null?E.value:oe,{current:ce}=Z.useRef(de!=null),ge=Z.useRef(),Te=Z.useCallback(Ye=>{process.env.NODE_ENV!=="production"&&Ye&&Ye.nodeName!=="INPUT"&&!Ye.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
417
+ `))},[]),ye=or(ge,S,E.ref,Te),[J,_e]=Z.useState(!1),ve=jS();process.env.NODE_ENV!=="production"&&Z.useEffect(()=>{if(ve)return ve.registerEffect()},[ve]);const Ee=dge({props:n,muiFormControl:ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ee.focused=ve?ve.focused:J,Z.useEffect(()=>{!ve&&p&&J&&(_e(!1),K&&K())},[ve,p,J,K]);const Ne=ve&&ve.onFilled,We=ve&&ve.onEmpty,He=Z.useCallback(Ye=>{hge(Ye)?Ne&&Ne():We&&We()},[Ne,We]);on(()=>{ce&&He({value:de})},[de,He,ce]);const Zt=Ye=>{F&&F(Ye),E.onFocus&&E.onFocus(Ye),ve&&ve.onFocus?ve.onFocus(Ye):_e(!0)},xt=Ye=>{K&&K(Ye),E.onBlur&&E.onBlur(Ye),ve&&ve.onBlur?ve.onBlur(Ye):_e(!1)},$t=(Ye,...jt)=>{if(!ce){const Oi=Ye.target||ge.current;if(Oi==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":Zn(1));He({value:Oi.value})}E.onChange&&E.onChange(Ye,...jt),Q&&Q(Ye,...jt)};Z.useEffect(()=>{He(ge.current)},[]);const Pt=Ye=>{ge.current&&Ye.currentTarget===Ye.target&&ge.current.focus(),O&&O(Ye)};let Ae=M,rt=E;B&&Ae==="input"&&(te?(process.env.NODE_ENV!=="production"&&(N||R)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),rt=T({type:void 0,minRows:te,maxRows:te},rt)):rt=T({type:void 0,maxRows:R,minRows:N},rt),Ae=HS);const si=Ye=>{He(Ye.animationName==="mui-auto-fill-cancel"?ge.current:{value:"x"})};Z.useEffect(()=>{ve&&ve.setAdornedStart(!!ne)},[ve,ne]);const Br=$(T({},n),{color:Ee.color||"primary",disabled:Ee.disabled,endAdornment:b,error:Ee.error,focused:Ee.focused,formControl:ve,fullWidth:w,hiddenLabel:Ee.hiddenLabel,multiline:B,size:Ee.size,startAdornment:ne,type:re}),Wr=gge(Br),cn=ie.root||c.Root||vge,tn=Y.root||h.root||{},Fn=ie.input||c.Input||yge;return rt=T(T({},rt),(dn=Y.input)!=null?dn:h.input),fe.jsxs(Z.Fragment,{children:[!g&&typeof u_=="function"&&(l_||(l_=fe.jsx(u_,{}))),fe.jsxs(cn,$(T(T($(T({},tn),{ref:r,onClick:Pt}),se),!Yf(cn)&&{ownerState:T(T({},Br),tn.ownerState)}),{className:ze(Wr.root,tn.className,s,W&&"MuiInputBase-readOnly"),children:[ne,fe.jsx(ev.Provider,{value:null,children:fe.jsx(Fn,$(T(T({"aria-invalid":Ee.error,"aria-describedby":i,autoComplete:a,autoFocus:o,defaultValue:f,disabled:Ee.disabled,id:C,onAnimationStart:si,name:U,placeholder:V,readOnly:W,required:Ee.required,rows:te,value:de,onKeyDown:q,onKeyUp:j,type:re},rt),!Yf(Fn)&&{as:Ae,ownerState:T(T({},Br),rt.ownerState)}),{ref:ye,className:ze(Wr.input,rt.className,W&&"MuiInputBase-readOnly"),onBlur:xt,onChange:$t,onFocus:Zt}))}),b,G?G($(T({},Ee),{startAdornment:ne})):null]}))]})});process.env.NODE_ENV!=="production"&&(VS.propTypes={"aria-describedby":y.string,autoComplete:y.string,autoFocus:y.bool,classes:y.object,className:y.string,color:y.oneOfType([y.oneOf(["primary","secondary","error","info","success","warning"]),y.string]),components:y.shape({Input:y.elementType,Root:y.elementType}),componentsProps:y.shape({input:y.object,root:y.object}),defaultValue:y.any,disabled:y.bool,disableInjectingGlobalStyles:y.bool,endAdornment:y.node,error:y.bool,fullWidth:y.bool,id:y.string,inputComponent:Wc,inputProps:y.object,inputRef:mo,margin:y.oneOf(["dense","none"]),maxRows:y.oneOfType([y.number,y.string]),minRows:y.oneOfType([y.number,y.string]),multiline:y.bool,name:y.string,onBlur:y.func,onChange:y.func,onClick:y.func,onFocus:y.func,onInvalid:y.func,onKeyDown:y.func,onKeyUp:y.func,placeholder:y.string,readOnly:y.bool,renderSuffix:y.func,required:y.bool,rows:y.oneOfType([y.number,y.string]),size:y.oneOfType([y.oneOf(["medium","small"]),y.string]),slotProps:y.shape({input:y.object,root:y.object}),slots:y.shape({input:y.elementType,root:y.elementType}),startAdornment:y.node,sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object]),type:y.string,value:y.any});function bge(e,t){k.useEffect(()=>{if(!t)return;const r=n=>{e.current&&!e.current.contains(n.target)&&e.current.blur()};return document.addEventListener("pointerdown",r),()=>{document.removeEventListener("pointerdown",r)}},[e,t])}const _ge=Ke.div`
418
+ display: inline-grid;
419
+ grid-template-columns: 1fr;
420
+ align-items: baseline;
421
+ width: auto;
422
+ min-width: 50px;
423
+ max-width: 100%;
424
+ `,wge=Ke.span`
425
+ // Auto-growing input using a CSS Grid technique with sharing the same grid area as the hidden text
426
+ grid-area: 1 / 1 / 2 / 2;
427
+ visibility: hidden;
428
+ white-space: pre;
429
+ font: inherit;
430
+ padding: 0;
431
+ `,xge=Ke(VS)`
432
+ // Auto-growing input using a CSS Grid technique with sharing the same grid area as the hidden text
433
+ grid-area: 1 / 1 / 2 / 2;
434
+ width: 100%;
435
+ font: inherit;
436
+ color: inherit;
437
+
438
+ & .MuiInputBase-input {
439
+ padding: 0;
440
+ font: inherit;
441
+ color: inherit;
442
+ width: 100%;
443
+
444
+ &::placeholder {
445
+ opacity: 0.5;
446
+ }
447
+
448
+ &:focus {
449
+ outline: none;
450
+ box-shadow: none;
451
+ }
452
+ }
453
+ `,Cge=Ke.span`
454
+ cursor: text;
455
+ color: ${({isPlaceholder:e})=>e?"rgba(0, 0, 0, 0.38)":"inherit"};
456
+ `;function Tge({value:e,isEditing:t,onCommit:r,onEditingChange:n,onCancel:i,placeholder:a}){const o=k.useRef(null),[s,u]=k.useState(e);k.useEffect(()=>{t&&u(e)},[t,e]);const c=k.useCallback(()=>{const w=s.trim(),C=_.purify.sanitize(w,{ALLOWED_TAGS:[]});C!==e&&r(C),n(!1)},[s,r,n,e]),h=k.useCallback(()=>{i==null||i(),n(!1)},[i,n]),f=k.useCallback(w=>{w.key==="Enter"?(w.preventDefault(),c()):w.key==="Escape"&&(w.preventDefault(),h())},[c,h]),p=k.useCallback(()=>{c()},[c]),g=k.useCallback(()=>{n(!0)},[n]),b=k.useCallback(w=>{(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),g())},[g]);if(k.useEffect(()=>{t&&o.current&&(o.current.focus(),o.current.select())},[t]),bge(o,t),t)return _.jsxs(_ge,{children:[_.jsx(wge,{children:s||a||""}),_.jsx(xge,{inputRef:o,inputProps:{"data-component":"inline-text-editor-input"},value:s,placeholder:a,onChange:w=>u(w.target.value),onBlur:p,onKeyDown:f})]});const v=!e&&!!a;return _.jsx(Cge,{role:"button",tabIndex:0,"aria-label":"Editable text. Double-click or press Enter or Space to edit.","data-component":"inline-text-editor-text","data-no-dnd":!0,onDoubleClick:g,onKeyDown:b,isPlaceholder:v,children:e||a||""})}function Mge(e){return ht("MuiCard",e)}ft("MuiCard",["root"]);const Sge=e=>{const{classes:t}=e;return Et({root:["root"]},Mge,t)},Ege=De(od,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),GS=Z.forwardRef(function(t,r){const n=_t({props:t,name:"MuiCard"}),c=n,{className:i,raised:a=!1}=c,o=Ce(c,["className","raised"]),s=$(T({},n),{raised:a}),u=Sge(s);return fe.jsx(Ege,T({className:ze(u.root,i),elevation:a?8:void 0,ref:r,ownerState:s},o))});process.env.NODE_ENV!=="production"&&(GS.propTypes={children:y.node,classes:y.object,className:y.string,raised:ni(y.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object])});function Pge(e){return ht("MuiCardContent",e)}ft("MuiCardContent",["root"]);const Age=e=>{const{classes:t}=e;return Et({root:["root"]},Pge,t)},Rge=De("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),US=Z.forwardRef(function(t,r){const n=_t({props:t,name:"MuiCardContent"}),c=n,{className:i,component:a="div"}=c,o=Ce(c,["className","component"]),s=$(T({},n),{component:a}),u=Age(s);return fe.jsx(Rge,T({as:a,className:ze(u.root,i),ownerState:s,ref:r},o))});process.env.NODE_ENV!=="production"&&(US.propTypes={children:y.node,classes:y.object,className:y.string,component:y.elementType,sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object])});function Oge(e){return ht("MuiCircularProgress",e)}ft("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const di=44,Im=hl`
457
+ 0% {
458
+ transform: rotate(0deg);
459
+ }
460
+
461
+ 100% {
462
+ transform: rotate(360deg);
463
+ }
464
+ `,$m=hl`
465
+ 0% {
466
+ stroke-dasharray: 1px, 200px;
467
+ stroke-dashoffset: 0;
468
+ }
469
+
470
+ 50% {
471
+ stroke-dasharray: 100px, 200px;
472
+ stroke-dashoffset: -15px;
473
+ }
474
+
475
+ 100% {
476
+ stroke-dasharray: 1px, 200px;
477
+ stroke-dashoffset: -126px;
478
+ }
479
+ `,kge=typeof Im!="string"?Qc`
480
+ animation: ${Im} 1.4s linear infinite;
481
+ `:null,Dge=typeof $m!="string"?Qc`
482
+ animation: ${$m} 1.4s ease-in-out infinite;
483
+ `:null,Nge=e=>{const{classes:t,variant:r,color:n,disableShrink:i}=e,a={root:["root",r,`color${Le(n)}`],svg:["svg"],circle:["circle",`circle${Le(r)}`,i&&"circleDisableShrink"]};return Et(a,Oge,t)},Lge=De("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Le(r.color)}`]]}})(kt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:kge||{animation:`${Im} 1.4s linear infinite`}},...Object.entries(e.palette).filter(wi()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Ige=De("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),$ge=De("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Le(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(kt(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:Dge||{animation:`${$m} 1.4s ease-in-out infinite`}}]}))),tv=Z.forwardRef(function(t,r){const n=_t({props:t,name:"MuiCircularProgress"}),M=n,{className:i,color:a="primary",disableShrink:o=!1,size:s=40,style:u,thickness:c=3.6,value:h=0,variant:f="indeterminate"}=M,p=Ce(M,["className","color","disableShrink","size","style","thickness","value","variant"]),g=$(T({},n),{color:a,disableShrink:o,size:s,thickness:c,value:h,variant:f}),b=Nge(g),v={},w={},C={};if(f==="determinate"){const E=2*Math.PI*((di-c)/2);v.strokeDasharray=E.toFixed(3),C["aria-valuenow"]=Math.round(h),v.strokeDashoffset=`${((100-h)/100*E).toFixed(3)}px`,w.transform="rotate(-90deg)"}return fe.jsx(Lge,$(T(T({className:ze(b.root,i),style:T(T({width:s,height:s},w),u),ownerState:g,ref:r,role:"progressbar"},C),p),{children:fe.jsx(Ige,{className:b.svg,ownerState:g,viewBox:`${di/2} ${di/2} ${di} ${di}`,children:fe.jsx($ge,{className:b.circle,style:v,ownerState:g,cx:di,cy:di,r:(di-c)/2,fill:"none",strokeWidth:c})})}))});process.env.NODE_ENV!=="production"&&(tv.propTypes={classes:y.object,className:y.string,color:y.oneOfType([y.oneOf(["inherit","primary","secondary","error","info","success","warning"]),y.string]),disableShrink:ni(y.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),size:y.oneOfType([y.number,y.string]),style:y.object,sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object]),thickness:y.number,value:y.number,variant:y.oneOf(["determinate","indeterminate"])});function Fge(e){return ht("MuiIconButton",e)}const c_=ft("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),zge=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a,loading:o}=e,s={root:["root",o&&"loading",r&&"disabled",n!=="default"&&`color${Le(n)}`,i&&`edge${Le(i)}`,`size${Le(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Et(s,Fge,t)},Bge=De(sa,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${Le(r.color)}`],r.edge&&t[`edge${Le(r.edge)}`],t[`size${Le(r.size)}`]]}})(kt(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),kt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(wi()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(wi()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${c_.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${c_.loading}`]:{color:"transparent"}}))),Wge=De("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),aa=Z.forwardRef(function(t,r){const n=_t({props:t,name:"MuiIconButton"}),E=n,{edge:i=!1,children:a,className:o,color:s="default",disabled:u=!1,disableFocusRipple:c=!1,size:h="medium",id:f,loading:p=null,loadingIndicator:g}=E,b=Ce(E,["edge","children","className","color","disabled","disableFocusRipple","size","id","loading","loadingIndicator"]),v=ed(f),w=g!=null?g:fe.jsx(tv,{"aria-labelledby":v,color:"inherit",size:16}),C=$(T({},n),{edge:i,color:s,disabled:u,disableFocusRipple:c,loading:p,loadingIndicator:w,size:h}),M=zge(C);return fe.jsxs(Bge,$(T({id:p?v:f,className:ze(M.root,o),centerRipple:!0,focusRipple:!c,disabled:u||p,ref:r},b),{ownerState:C,children:[typeof p=="boolean"&&fe.jsx("span",{className:M.loadingWrapper,style:{display:"contents"},children:fe.jsx(Wge,{className:M.loadingIndicator,ownerState:C,children:p&&w})}),a]}))});process.env.NODE_ENV!=="production"&&(aa.propTypes={children:ni(y.node,e=>Z.Children.toArray(e.children).some(r=>Z.isValidElement(r)&&r.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
484
+ `)):null),classes:y.object,className:y.string,color:y.oneOfType([y.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),y.string]),disabled:y.bool,disableFocusRipple:y.bool,disableRipple:y.bool,edge:y.oneOf(["end","start",!1]),id:y.string,loading:y.bool,loadingIndicator:y.node,size:y.oneOfType([y.oneOf(["small","medium","large"]),y.string]),sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object])});function Hge({fill:e="rgba(38, 46, 61, 0.67)"}){return _.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:_.jsx("path",{fill:e,d:"M11.5 21a8.5 8.5 0 1 1 0-17 8.5 8.5 0 0 1 0 17zM13 8.878c0-1.27-.499-1.896-1.496-1.878C10.501 7.03 10 7.68 10 8.95c0 .737.17 1.647.51 2.731l.318.98c.081.245.14.413.175.503.197.533.376.811.537.835.15.018.314-.248.493-.8.083-.257.161-.512.233-.763.071-.252.146-.503.224-.755.34-1.12.51-2.054.51-2.803zM11.5 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"})})}function jge({title:e,description:t,errorMessages:r=[],styleOptions:n,onRefresh:i}){var C,M,E;const[a,o]=k.useState(null),{themeSettings:s}=it(),{typography:{primaryTextColor:u,secondaryTextColor:c,fontFamily:h}}=s,{t:f}=_.useTranslation(),p=S=>{o(S.currentTarget)},g=()=>{o(null)},b=k.useMemo(()=>e?_.jsx(Pr,{variant:"body2",style:{color:u,fontFamily:h,fontSize:13},children:e}):null,[e,u,h]),v=k.useMemo(()=>r.length===0?null:r.map(S=>_.jsxs(_.Fragment,{children:[_.jsx(Yi,{sx:{my:1,borderColor:c,opacity:.3,marginY:"8px"}}),_.jsxs("div",{className:"csdk-flex",children:[_.jsx("div",{className:"csdk-shrink-0 csdk-grow-0",children:_.jsx(Hge,{fill:"#fa5656"})}),_.jsx(Pr,{variant:"body2",className:"csdk-grow-1",style:{color:c,fontFamily:h,fontSize:13,marginLeft:5,lineHeight:"24px",letterSpacing:"normal",overflowWrap:"anywhere"},children:S})]})]})),[r,c,h]),w=k.useMemo(()=>t?_.jsxs(_.Fragment,{children:[_.jsx(Yi,{sx:{my:"8px",borderColor:c,opacity:.3}}),_.jsx(Pr,{variant:"body2",style:{color:c,fontFamily:h,fontSize:13},children:t})]}):null,[t,c,h]);return _.jsxs(_.Fragment,{children:[_.jsx(Td,{title:f("widgetHeader.info.tooltip"),style:{color:(C=s.chart)==null?void 0:C.textColor,fontFamily:(M=s.typography)==null?void 0:M.fontFamily},children:_.jsx(aa,{onClick:p,sx:{p:0},children:_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:_.jsx("path",{fill:(n==null?void 0:n.titleTextColor)||s.widget.header.titleTextColor,d:"M11.5 20a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15zm0-1a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13zm-.5-8h1v5h-1v-5zm0-1v-.998h1V10h-1z"})})})}),_.jsx(R0,{open:!!a,position:a?{anchorEl:a,anchorOrigin:{vertical:"bottom",horizontal:"center"},contentOrigin:{vertical:"top",horizontal:"center"}}:void 0,onClose:g,children:_.jsxs(GS,{raised:!0,className:"csdk-max-w-xs csdk-w-[300px]",children:[_.jsxs("div",{className:"csdk-flex csdk-flex-row csdk-justify-between csdk-items-center csdk-py-[5px] csdk-px-[12px]",style:{backgroundColor:_.getSlightlyDifferentColor(s.general.backgroundColor)},children:[_.jsx(Pr,{variant:"subtitle2",sx:{fontWeight:"bold"},style:{color:s.typography.primaryTextColor,fontFamily:s.typography.fontFamily},children:f("widgetHeader.info.details")}),_.jsx(aa,{onClick:i,sx:{p:0},children:_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:_.jsx("path",{fill:(E=s.chart)==null?void 0:E.textColor,d:"M20 12a8 8 0 0 1-15.259 3.368l1.004-.222a7 7 0 0 0 13.252-2.925L20 12zm0 0a8 8 0 0 1-15.259 3.368l1.004-.222a7 7 0 0 0 13.252-2.925L20 12zm-8-7a7 7 0 0 1 6.267 3.877l1.003-.22A8.001 8.001 0 0 0 4 12l1.003-.22A7 7 0 0 1 12 5zm6.998 3.12A8 8 0 0 0 4 12l1.003-.22a7 7 0 0 1 13.264-2.903l.73-.16v.28l-2.98.016-.017.971h3.985V6h-.987v2.12zm-14.01 9.864H4V14h3.985l-.016.971-2.981.017v2.996z"})})})]}),_.jsx(Yi,{sx:{borderColor:s.typography.secondaryTextColor,opacity:.3}}),_.jsxs(US,{style:{backgroundColor:s.general.backgroundColor,padding:12},children:[b,v,w]})]})})]})}const rv=()=>{const e=id();if(!e)throw new I.TranslatableError("errors.missingMenuRoot");return e};function YS({fill:e="rgba(38, 46, 61, 0.67)"}){return _.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:_.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 7C11 6.44772 11.4477 6 12 6C12.5523 6 13 6.44772 13 7C13 7.55228 12.5523 8 12 8C11.4477 8 11 7.55228 11 7ZM11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12C13 12.5523 12.5523 13 12 13C11.4477 13 11 12.5523 11 12ZM12 16C11.4477 16 11 16.4477 11 17C11 17.5523 11.4477 18 12 18C12.5523 18 13 17.5523 13 17C13 16.4477 12.5523 16 12 16Z",fill:e})})}const d_=28,Vge=zs(aa,{shouldForwardProp:e=>e!=="iconSize"})`
485
+ min-width: ${({iconSize:e})=>e!=null?e:d_}px;
486
+ min-height: ${({iconSize:e})=>e!=null?e:d_}px;
487
+ `,qS=a=>{var o=a,{color:e,onClick:t,ariaLabel:r,size:n}=o,i=Ce(o,["color","onClick","ariaLabel","size"]);const s=k.useCallback(()=>_.getSlightlyDifferentColor(e!=null?e:"",void 0,.1),[e]);return _.jsx(Vge,$(T({iconSize:n,sx:{padding:0,"&:hover":{backgroundColor:s()}},onClick:t,"aria-label":r},i),{children:_.jsx(YS,{fill:e})}))},XS=({menuItems:e})=>{const{themeSettings:t}=it(),{openMenu:r}=rv(),n=k.useCallback(i=>{i.stopPropagation();const a=i.currentTarget.getBoundingClientRect();e.length&&r({position:{left:a.right,top:a.bottom},alignment:{horizontal:"right"},itemSections:[{items:e}]})},[e,r]);return _.jsx(qS,{onClick:n,ariaLabel:"widget header toolbar menu",color:t.widget.header.titleTextColor})};function Gge({infoButtonConfig:e,styleOptions:t,onRefresh:r,config:n}){var o,s,u,c;const i=k.useMemo(()=>{var h,f;return _.isUndefined((h=n==null?void 0:n.menu)==null?void 0:h.enabled)?!0:(f=n==null?void 0:n.menu)==null?void 0:f.enabled},[(o=n==null?void 0:n.menu)==null?void 0:o.enabled]),a=_.jsx(_.Fragment,{children:_.jsx(jge,{title:e.dataSetName,description:e.description,styleOptions:t,errorMessages:e.errorMessages,warningMessages:e.warningMessages,onRefresh:r})});return _.jsxs(_.Fragment,{children:[t!=null&&t.renderToolbar?t.renderToolbar(r,a):a,i&&((s=n==null?void 0:n.menu)==null?void 0:s.items)&&((u=n==null?void 0:n.menu)==null?void 0:u.items.length)>0&&_.jsx(XS,{menuItems:(c=n==null?void 0:n.menu)==null?void 0:c.items})]})}function Uge(e){return e.toLowerCase()}const Yge=({title:e,infoButtonConfig:t,styleOptions:r,onRefresh:n,config:i,titleEditor:a})=>{var h,f;const{themeSettings:o}=it(),{t:s}=_.useTranslation(),u=I.get(r,"dividerLine",o.widget.header.dividerLine),c=a?_.jsx(Tge,{value:e!=null?e:"",isEditing:a.isEditing,onEditingChange:a.onEditingChange,onCommit:a.onCommit,onCancel:a.onCancel,placeholder:s("widgetHeader.addTitle")}):e;return _.jsxs("div",{"data-component":"widget-header",children:[_.jsxs(qge,{styleOptions:r,theme:o,"data-component":"header-container",children:[_.jsx(Xge,{styleOptions:r,theme:o,"data-component":"title",children:(f=(h=r==null?void 0:r.renderTitle)==null?void 0:h.call(r,c))!=null?f:c}),_.jsx(Zge,{"data-component":"toolbar-container",children:_.jsx(Gge,{infoButtonConfig:t,styleOptions:r,onRefresh:n,config:i==null?void 0:i.toolbar})})]}),u&&_.jsx(Kge,{styleOptions:r,theme:o,"data-component":"widget-header-divider"})]})},qge=Ke.div`
488
+ display: flex;
489
+ flex-direction: row;
490
+ align-items: center;
491
+ padding-left: 8px;
492
+ padding-right: 8px;
493
+ min-height: 32px;
494
+ background-color: ${({styleOptions:e,theme:t})=>(e==null?void 0:e.backgroundColor)||t.widget.header.backgroundColor};
495
+ `,Xge=Ke.div`
496
+ width: 100%;
497
+ white-space: nowrap;
498
+ overflow: hidden;
499
+ text-align: ${({styleOptions:e,theme:t})=>Uge((e==null?void 0:e.titleAlignment)||t.widget.header.titleAlignment)};
500
+ color: ${({styleOptions:e,theme:t})=>(e==null?void 0:e.titleTextColor)||t.widget.header.titleTextColor};
501
+ font-family: ${({theme:e})=>{var t,r;return(r=(t=e.typography)==null?void 0:t.fontFamily)!=null?r:"inherit"}};
502
+ font-size: ${({theme:e})=>{const t=e.widget.header.titleFontSize;return typeof t=="number"?`${t}px`:t}};
503
+ `,Zge=Ke.div`
504
+ margin-left: auto;
505
+ display: flex;
506
+ align-items: center;
507
+ `,Kge=Ke(Yi)`
508
+ background-color: ${({styleOptions:e,theme:t})=>(e==null?void 0:e.dividerLineColor)||t.widget.header.dividerLineColor||"#e6e6e6"};
509
+ `;var ZS=(e=>(e.None="",e.Large="30px",e.Medium="20px",e.Small="10px",e))(ZS||{}),Fm=(e=>(e.None="",e.Light="0.15",e.Medium="0.3",e.Dark="0.7",e))(Fm||{}),zm=(e=>(e.None="",e.Large="3px 12px",e.Medium="2px 8px",e.Small="1px 4px",e))(zm||{}),nv=(e=>(e.None="",e.Large="15px",e.Medium="10px",e.Small="5px",e))(nv||{});const Qge=(e,t)=>{const r=I.get(e,"shadow",t.widget.shadow),n=I.get(e,"spaceAround",t.widget.spaceAround);if(r==="None"||n==="None")return"none";if(r in Fm&&n in zm){const i=Fm[`${r}`];return`0px ${zm[`${n}`]} rgba(9, 9, 10, ${i})`}return"none"},KS=e=>_.jsx(Vme,{children:_.jsx(Jge,T({},e))}),Jge=({dataSetName:e,styleOptions:t,headerConfig:r,titleEditor:n,title:i,description:a,topSlot:o,bottomSlot:s,children:u,onRefresh:c=()=>{}})=>{var b,v;const{errors:h,warnings:f}=fS(),{themeSettings:p}=it(),g=k.useMemo(()=>{var w;return{chart:{backgroundColor:(t==null?void 0:t.backgroundColor)||((w=p.chart)==null?void 0:w.backgroundColor)}}},[t==null?void 0:t.backgroundColor,(b=p.chart)==null?void 0:b.backgroundColor]);return _.jsx(eve,{className:"csdk-accessible","data-component":"widget-container-root",children:_.jsx(tve,{styleOptions:t,theme:p,"data-component":"widget-container-layout",children:_.jsxs(rve,{styleOptions:t,theme:p,"data-component":"widget-container-card",children:[!((v=t==null?void 0:t.header)!=null&&v.hidden)&&_.jsx(Yge,{title:i,infoButtonConfig:{dataSetName:e,description:a,errorMessages:h,warningMessages:f},styleOptions:t==null?void 0:t.header,config:r,titleEditor:n,onRefresh:c}),o,_.jsx(Gw,{theme:g,children:_.jsx(nve,{styleOptions:t,theme:p,"data-component":"widget-container-content",children:u})}),s]})})})},eve=Ke.div`
510
+ width: 100%;
511
+ height: 100%;
512
+ overflow: hidden;
513
+ `,tve=Ke.div`
514
+ box-sizing: border-box;
515
+ height: 100%;
516
+ padding: ${({styleOptions:e,theme:t})=>nv[I.get(e,"spaceAround",t.widget.spaceAround)]||"0px"};
517
+ `,rve=Ke.div`
518
+ box-sizing: border-box;
519
+ height: 100%;
520
+ overflow: hidden;
521
+ display: flex;
522
+ flex-direction: column;
523
+ background-color: ${({styleOptions:e})=>(e==null?void 0:e.backgroundColor)||"unset"};
524
+ border-width: ${({styleOptions:e,theme:t})=>I.get(e,"border",t.widget.border)?"1px":"0"};
525
+ border-style: solid;
526
+ border-color: ${({styleOptions:e,theme:t})=>(e==null?void 0:e.borderColor)||t.widget.borderColor};
527
+ border-radius: ${({styleOptions:e,theme:t})=>ZS[(e==null?void 0:e.cornerRadius)||t.widget.cornerRadius]||"0"};
528
+ box-shadow: ${({styleOptions:e,theme:t})=>Qge(e,t)};
529
+ `,nve=Ke.div`
530
+ flex-grow: 1;
531
+ min-width: 0;
532
+ min-height: 0;
533
+ background-color: ${({styleOptions:e,theme:t})=>{var r;return(e==null?void 0:e.backgroundColor)||((r=t.chart)==null?void 0:r.backgroundColor)}};
534
+ `;var ive=Object.prototype,ave=ive.hasOwnProperty,ove=zS(function(e,t,r){ave.call(e,r)?e[r].push(t):I.baseAssignValue(e,r,[t])});function Bm(e){return e&&e.length?sg(e):[]}var sl=(e=>(e.WIDGET_POINTS_DRILLDOWN="widget-points-drilldown",e.WIDGET_POINTS_CROSSFILTERING="widget-points-crossfiltering",e))(sl||{}),po=(e=>(e.DRILLDOWN_CHART_POINTS_SELECTION="drilldown-chart-points-selection",e.DRILLDOWN_DRILL_DIRECTIONS="drilldown-drill-directions",e.CROSSFILTERING_CHART_POINTS_SELECTION="crossfiltering-chart-points-selection",e))(po||{});const sve=["rows","columns","values","category","value","breakBy","x","y","breakByPoint","breakByColor","size","date","geo","color","colorBy","details","outliers","secondary","min","max"];function lve(e){return sve.includes(e)}function uve(e,t){const r=[];for(const[n,i]of Object.entries(e))!lve(n)||i===null||i===void 0||(Array.isArray(i)?i.forEach((a,o)=>{h_(a)&&r.push({location:{dataOptionName:n,dataOptionIndex:o},column:a})}):typeof i=="object"&&!Array.isArray(i)&&h_(i)&&r.push({location:{dataOptionName:n,dataOptionIndex:0},column:i}));for(const{location:n,column:i}of r)if(QS(i,t))return n}function h_(e){if(!e||typeof e!="object")return!1;const t="column"in e?e.column:e;return typeof t=="object"&&t!==null&&"type"in t&&"expression"in t}function QS(e,t){return kr(_.translateColumnToAttribute(e),_.translateColumnToAttribute(t))}function JS(e,t){const{dataOptionName:r,dataOptionIndex:n=0}=t,i=e[r];if(i!=null){if(I.isArray(i))return n>=0&&n<i.length?i[n]:void 0;if(I.isPlainObject(i))return n!==0&&t.dataOptionIndex!==void 0?void 0:i}}function cve(e,t,r){const{dataOptionName:n,dataOptionIndex:i=0}=t,a=r[n];if(a==null)return r;if(I.isArray(a)){if(i>=0&&i<a.length){const o=[...a];return o[i]=e,$(T({},r),{[n]:o})}return r}return I.isPlainObject(a)?i!==0&&t.dataOptionIndex!==void 0?r:$(T({},r),{[n]:e}):r}function eE(e,t,r){return r.length===0||!t?void 0:"dataOptionName"in t?t:uve(e,t)}function dve(e){return Jd("pivot",e).length>0}function tE(e,t,r){const n=JS(e,t);return!n||QS(n,r)?e:cve(r,t,e)}function hve(e,t){return t.all?[]:e.filter(r=>{var n;return!((n=t.ids)!=null&&n.includes(r.config.guid))})}function rE(e,t){return e.find(r=>kr(r.attribute,t))}function nE(e,t,r){const n=rE(r,e);return I.members(e,t.map(i=>`${i}`),{guid:n==null?void 0:n.config.guid,backgroundFilter:n==null?void 0:n.config.backgroundFilter})}function iE(e,t){return Qg(e,t)&&"members"in e&&"members"in t&&I.isEqual(e.members,t.members)}function fve({widgetType:e,chartType:t,dataOptions:r,drilldownOptions:n}){if(e==="pivot"){const i=n,a=r,o=i==null?void 0:i.drilldownSelections,s=i==null?void 0:i.drilldownTarget;if(o&&o.length&&s){const u=eE(a,s,o),c=I.last(o);if(u&&(c!=null&&c.nextDimension))return tE(a,u,c.nextDimension)}}if(t){const i=n,a=r,o=i==null?void 0:i.drilldownSelections;if(o&&o.length){const s=I.last(o);if(s!=null&&s.nextDimension)return oE(t,a,s.nextDimension)}}return r}const aE=2;function pve(e,t){const r=e[t];return r?Array.isArray(r)?r:[r]:[]}function oi(e,t){if(!e.length||!t.length)return[];const r=e.flatMap(({entries:i={}})=>t.flatMap(a=>pve(i,a)).filter(a=>"attribute"in a&&!!a.attribute)),n=ove(r,({attribute:i})=>i==null?void 0:i.expression);return Object.values(n).filter(i=>i.length>0&&!!i[0].attribute).map(i=>{const a=i[0].attribute,o=Bm(i.map(({value:u})=>u).filter(u=>u!=null)),s=Bm(i.map(({displayValue:u})=>u).filter(u=>u!==void 0));return{attribute:a,values:o,displayValues:s}})}function mve(e){return oi(e,["category"])}function gve(e){return oi(e,["category"])}function vve(e,t){const r=oi(e,["category"]),n=r.length-1;return t.category.map((i,a)=>n===a?r[a]:{attribute:_.translateColumnToAttribute(i),values:[],displayValues:[]})}function yve(e){return oi(e,["x","y","breakByPoint","breakByColor"])}function bve(e){return oi(e,["geo"])}function _ve(e){return oi(e,["geo"])}function wve(e){return oi(e,["date"])}function xve(e){const t=e.filter(r=>r.isDataCell&&!r.isTotalCell);return oi(t.map(r=>{var n,i,a,o,s,u;return(i=(n=r.entries)==null?void 0:n.values)!=null&&i.length?r:$(T({},r),{entries:{rows:(o=(a=r.entries.rows)==null?void 0:a.slice(-1))!=null?o:[],columns:(u=(s=r.entries.columns)==null?void 0:s.slice(-1))!=null?u:[],values:[]}})}),["rows","columns","values"])}function Cve(e,t){const r=Object.entries(t).filter(([,n])=>n.some(i=>!_.isMeasureColumn(i))).map(([n])=>n);return oi(e,r)}function ec(e,t,r){return e==="custom"?Cve(r,t):e==="text"?[]:e==="pivot"?xve(r):e==="treemap"||e==="sunburst"?vve(r,t):I.isCartesian(e)||e==="pie"||e==="funnel"?mve(r):I.isBoxplot(e)?gve(r):I.isScatter(e)?yve(r):I.isScattermap(e)?bve(r):I.isAreamap(e)?_ve(r):I.isCalendarHeatmap(e)?wve(r):[]}function Jd(e,t){let r=[];return e==="custom"?r=Tve(t):e==="text"?r=[]:e==="pivot"?r=[...t.rows||[],...t.columns||[]]:I.isCartesian(e)||I.isCategorical(e)||I.isBoxplot(e)||I.isRange(e)?r=[...t.category]:I.isScatter(e)?r=[t.x,t.y,t.breakByPoint,t.breakByColor].filter(n=>!!(n&&!_.isMeasureColumn(n))):I.isScattermap(e)||I.isAreamap(e)?r=[...t.geo]:I.isCalendarHeatmap(e)&&(r=[t.date]),r.map(_.translateColumnToAttribute)}function Tve(e){return Object.values(e).flatMap(t=>t.filter(r=>!_.isMeasureColumn(r)))}function Mve(e,t,r){const n=rE(t,e.attribute);if(!n||Kg(n))return null;if(iE(e,n))return Qd(e);if(I.isMembersFilter(n)&&r){const[i,a]=$l(n.members,s=>e.members.includes(s));if(i.length===e.members.length&&a.length)return nE(e.attribute,a,[n])}return null}function Sve(e,t,r){const n=t.filter(o=>!o.config.disabled),i=e.map(o=>Mve(o,n,r)).filter(o=>!!o),a=e.length!==i.length;return{filters:a?e:i,isSelection:a}}function Af(e,t,r=!1){const n=e.map(({attribute:a,values:o})=>nE(a,o,t)),i=Eve(t,n);return Sve(i,t,r)}function Eve(e,t){const r=e.filter(n=>n.config.locked);return r.length?t.filter(n=>!r.some(i=>Qg(i,n))):t}function Pve(e,t,r){const n=ec(e,t,r).filter(({displayValues:s})=>s.length);if(n.length===0)return"";const[i]=n,a=r.length===1,o=i.displayValues.length>aE;return n.length>1?a?n.map(s=>s.displayValues[0]).join(", "):o?"":i.displayValues.join(", "):o?i.attribute.name:i.displayValues.join(", ")}function f_(e,t,r){const n=Pve(e,t,r);return n?{id:po.CROSSFILTERING_CHART_POINTS_SELECTION,sectionTitle:n}:null}function p_(e,t){return{items:[{caption:e,onClick:t}]}}function Ave(e,t){return Jd(e,t)[0]}function Rve(e){return[...I.CARTESIAN_CHART_TYPES,...I.CATEGORICAL_CHART_TYPES,...I.SCATTER_CHART_TYPES,...I.BOXPLOT_CHART_TYPES,...I.RANGE_CHART_TYPES].includes(e)}function Ove(e,t){return Jd(e,t).length>=1}function kve(e,t){return Ove(e,t)&&Rve(e)}function oE(e,t,r){const n=i=>!!i&&!kr(r,_.translateColumnToAttribute(i));if(I.isCartesian(e)||I.isCategorical(e)||I.isBoxplot(e)||I.isRange(e)){const i=t.category[0];if(n(i))return $(T({},t),{category:[r]})}else if(I.isScatter(e)){const i=t,o=["x","y","breakByPoint","breakByColor"].find(s=>{const u=i[s];return u&&!_.isMeasureColumn(u)});if(o){const s=i[o];if(n(s))return $(T({},i),{[o]:r})}}return t}function m_(e,t,r){return e.map(n=>{const i=["x","y","breakByPoint","breakByColor"],a=[...i,"size"].some(s=>s in n),o=i.find(s=>r[s]&&!_.isMeasureColumn(r[s]));if(a){const s=t,u=s.type==="mouseup";u&&console.warn("No drilldown support for multi-selection in scatter chart");const c=u?n[o]:s.point.options.custom[FS(`{masked ${o}`)];return{categoryValue:c,categoryDisplayValue:c}}return n})}function kc(e,t){return e.filter(r=>{if(I.MetadataTypes.isAttribute(r)){const a=r;return t.every(o=>!kr(o,a))}const i=r;return t.every((a,o)=>i.levels[o]&&kr(a,i.levels[o]))})}function Dc(e,t){return[_.translateColumnToAttribute(e),...t.map(({nextDimension:r})=>r)]}const Dve=yo(fe.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),Nve=De(sa)(kt(({theme:e})=>$(T({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]}),{borderRadius:2,"&:hover, &:focus":T({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":T({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:$f(e.palette.grey[200],.12)}:{backgroundColor:$f(e.palette.grey[600],.12)})}))),Lve=De(Dve)({width:24,height:16});function sE(e){const a=e,{slots:t={},slotProps:r={}}=a,n=Ce(a,["slots","slotProps"]),i=e;return fe.jsx("li",{children:fe.jsx(Nve,$(T({focusRipple:!0},n),{ownerState:i,children:fe.jsx(Lve,T({as:t.CollapsedIcon,ownerState:i},r.collapsedIcon))}))})}process.env.NODE_ENV!=="production"&&(sE.propTypes={slotProps:y.shape({collapsedIcon:y.oneOfType([y.func,y.object])}),slots:y.shape({CollapsedIcon:y.elementType}),sx:y.object});function Ive(e){return ht("MuiBreadcrumbs",e)}const $ve=ft("MuiBreadcrumbs",["root","ol","li","separator"]),Fve=e=>{const{classes:t}=e;return Et({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},Ive,t)},zve=De(Pr,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${$ve.li}`]:t.li},t.root]})({}),Bve=De("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),Wve=De("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function Hve(e,t,r,n){return e.reduce((i,a,o)=>(o<e.length-1?i=i.concat(a,fe.jsx(Wve,{"aria-hidden":!0,className:t,ownerState:n,children:r},`separator-${o}`)):i.push(a),i),[])}const lE=Z.forwardRef(function(t,r){const n=_t({props:t,name:"MuiBreadcrumbs"}),N=n,{children:i,className:a,component:o="nav",slots:s={},slotProps:u={},expandText:c="Show path",itemsAfterCollapse:h=1,itemsBeforeCollapse:f=1,maxItems:p=8,separator:g="/"}=N,b=Ce(N,["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"]),[v,w]=Z.useState(!1),C=$(T({},n),{component:o,expanded:v,expandText:c,itemsAfterCollapse:h,itemsBeforeCollapse:f,maxItems:p,separator:g}),M=Fve(C),E=Jm({elementType:s.CollapsedIcon,externalSlotProps:u.collapsedIcon,ownerState:C}),S=Z.useRef(null),P=B=>{const U=()=>{w(!0);const K=S.current.querySelector("a[href],button,[tabindex]");K&&K.focus()};return f+h>=B.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${h}} + itemsBeforeCollapse={${f}} >= maxItems={${p}}`].join(`
535
+ `)),B):[...B.slice(0,f),fe.jsx(sE,{"aria-label":c,slots:{CollapsedIcon:s.CollapsedIcon},slotProps:{collapsedIcon:E},onClick:U},"ellipsis"),...B.slice(B.length-h,B.length)]},R=Z.Children.toArray(i).filter(B=>(process.env.NODE_ENV!=="production"&&x0.isFragment(B)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
536
+ `)),Z.isValidElement(B))).map((B,U)=>fe.jsx("li",{className:M.li,children:B},`child-${U}`));return fe.jsx(zve,$(T({ref:r,component:o,color:"textSecondary",className:ze(M.root,a),ownerState:C},b),{children:fe.jsx(Bve,{className:M.ol,ref:S,ownerState:C,children:Hve(v||p&&R.length<=p?R:P(R),M.separator,g,C)})}))});process.env.NODE_ENV!=="production"&&(lE.propTypes={children:y.node,classes:y.object,className:y.string,component:y.elementType,expandText:y.string,itemsAfterCollapse:wn,itemsBeforeCollapse:wn,maxItems:wn,separator:y.node,slotProps:y.shape({collapsedIcon:y.oneOfType([y.func,y.object])}),slots:y.shape({CollapsedIcon:y.elementType}),sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object])});function jve(e){return ht("MuiButton",e)}const Fi=ft("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),uE=Z.createContext({});process.env.NODE_ENV!=="production"&&(uE.displayName="ButtonGroupContext");const cE=Z.createContext(void 0);process.env.NODE_ENV!=="production"&&(cE.displayName="ButtonGroupButtonContext");const Vve=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,loading:o,loadingPosition:s,classes:u}=e,c={root:["root",o&&"loading",a,`${a}${Le(t)}`,`size${Le(i)}`,`${a}Size${Le(i)}`,`color${Le(t)}`,r&&"disableElevation",n&&"fullWidth",o&&`loadingPosition${Le(s)}`],startIcon:["icon","startIcon",`iconSize${Le(i)}`],endIcon:["icon","endIcon",`iconSize${Le(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},h=Et(c,jve,u);return T(T({},u),h)},dE=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Gve=De(sa,{shouldForwardProp:e=>pl(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Le(r.color)}`],t[`size${Le(r.size)}`],t[`${r.variant}Size${Le(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(kt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return $(T({},e.typography.button),{minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Fi.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Fi.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Fi.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Fi.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(wi()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(e.vars||e).palette[n].main,"--variant-outlinedColor":(e.vars||e).palette[n].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.5)`:Tt(e.palette[n].main,.5),"--variant-containedColor":(e.vars||e).palette[n].contrastText,"--variant-containedBg":(e.vars||e).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[n].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[n].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette[n].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:r,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Tt(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Fi.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Fi.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Fi.loading}`]:{color:"transparent"}}}]})})),Uve=De("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${Le(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...dE]})),Yve=De("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${Le(r.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...dE]})),qve=De("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>t.loadingIndicator})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),g_=De("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),ll=Z.forwardRef(function(t,r){const n=Z.useContext(uE),i=Z.useContext(cE),a=Bs(n,t),o=_t({props:a,name:"MuiButton"}),G=o,{children:s,color:u="primary",component:c="button",className:h,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:g=!1,endIcon:b,focusVisibleClassName:v,fullWidth:w=!1,id:C,loading:M=null,loadingIndicator:E,loadingPosition:S="center",size:P="medium",startIcon:R,type:N,variant:B="text"}=G,U=Ce(G,["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","id","loading","loadingIndicator","loadingPosition","size","startIcon","type","variant"]),K=ed(C),Q=E!=null?E:fe.jsx(tv,{"aria-labelledby":K,color:"inherit",size:16}),O=$(T({},o),{color:u,component:c,disabled:f,disableElevation:p,disableFocusRipple:g,fullWidth:w,loading:M,loadingIndicator:Q,loadingPosition:S,size:P,type:N,variant:B}),F=Vve(O),q=(R||M&&S==="start")&&fe.jsx(Uve,{className:F.startIcon,ownerState:O,children:R||fe.jsx(g_,{className:F.loadingIconPlaceholder,ownerState:O})}),j=(b||M&&S==="end")&&fe.jsx(Yve,{className:F.endIcon,ownerState:O,children:b||fe.jsx(g_,{className:F.loadingIconPlaceholder,ownerState:O})}),V=i||"",W=typeof M=="boolean"?fe.jsx("span",{className:F.loadingWrapper,style:{display:"contents"},children:M&&fe.jsx(qve,{className:F.loadingIndicator,ownerState:O,children:Q})}):null;return fe.jsxs(Gve,$(T({ownerState:O,className:ze(n.className,F.root,h,V),component:c,disabled:f||M,focusRipple:!g,focusVisibleClassName:ze(F.focusVisible,v),ref:r,type:N,id:M?K:C},U),{classes:F,children:[q,S!=="end"&&W,s,S==="end"&&W,j]}))});process.env.NODE_ENV!=="production"&&(ll.propTypes={children:y.node,classes:y.object,className:y.string,color:y.oneOfType([y.oneOf(["inherit","primary","secondary","success","error","info","warning"]),y.string]),component:y.elementType,disabled:y.bool,disableElevation:y.bool,disableFocusRipple:y.bool,disableRipple:y.bool,endIcon:y.node,focusVisibleClassName:y.string,fullWidth:y.bool,href:y.string,id:y.string,loading:y.bool,loadingIndicator:y.node,loadingPosition:y.oneOf(["center","end","start"]),size:y.oneOfType([y.oneOf(["small","medium","large"]),y.string]),startIcon:y.node,sx:y.oneOfType([y.arrayOf(y.oneOfType([y.func,y.object,y.bool])),y.func,y.object]),type:y.oneOfType([y.oneOf(["button","reset","submit"]),y.string]),variant:y.oneOfType([y.oneOf(["contained","outlined","text"]),y.string])});const Xve=Ke(aa)`
537
+ && {
538
+ position: absolute;
539
+ left: 0;
540
+ right: auto;
541
+ margin: auto;
542
+ bottom: 0;
543
+ top: 0;
544
+ z-index: 10;
545
+ background: linear-gradient(to right, white 30%, rgba(255, 255, 255, 0) 100%);
546
+ display: inline-flex;
547
+
548
+ span[aria-label='prev-item'] {
549
+ width: 0;
550
+ height: 0;
551
+ border-top: 6px solid transparent;
552
+ border-bottom: 6px solid transparent;
553
+ border-right: 5px solid #000;
554
+ color: transparent;
555
+ opacity: 0.3;
556
+
557
+ &:hover {
558
+ opacity: 0.8;
559
+ }
560
+ }
561
+ }
562
+ `,Zve=Ke(aa)`
563
+ && {
564
+ position: absolute;
565
+ left: auto;
566
+ right: 0;
567
+ margin: auto;
568
+ bottom: 0;
569
+ top: 0;
570
+ z-index: 10;
571
+ background: linear-gradient(to right, rgba(255, 255, 255, 0) 0, white 70%);
572
+ display: inline-flex;
573
+
574
+ span[aria-label='next-item'] {
575
+ width: 0;
576
+ height: 0;
577
+ border-top: 6px solid transparent;
578
+ border-bottom: 6px solid transparent;
579
+ border-left: 5px solid #000;
580
+ color: transparent;
581
+ opacity: 0.3;
582
+
583
+ &:hover {
584
+ opacity: 0.8;
585
+ }
586
+ }
587
+ }
588
+ `,Kve=({currentDimension:e,children:t})=>{const{t:r}=_.useTranslation(),n=k.useRef(null),[i,a]=k.useState(0),[o,s]=k.useState(0),[u,c]=k.useState(0),h=()=>{var b;return(b=n.current)==null?void 0:b.querySelector("ol")};k.useEffect(()=>{const b=h();if(b){const v=b.clientWidth,w=b.scrollWidth,C=b.scrollLeft;a(v),s(w),c(C)}},[e]),k.useEffect(()=>{const b=h();function v(){if(b){const M=b.clientWidth;a(M)}}function w(){if(b){const M=b.scrollLeft;c(M)}}const C=new ResizeObserver(v);return b?(C.observe(b),b.addEventListener("scroll",w),()=>{C.disconnect(),b.removeEventListener("scroll",w)}):()=>{}},[]);const f=b=>{const w="smooth",C=h();C&&C.scrollBy({left:b==="right"?200:-200,behavior:w})},p=u!=0,g=Math.floor(o-u)>i;return _.jsxs("div",{style:{position:"relative"},children:[p&&_.jsx(Xve,{onClick:()=>f("left"),children:_.jsx("span",{"aria-label":"prev-item",children:r("drilldown.breadcrumbsPrev")})}),g&&_.jsx(Zve,{onClick:()=>f("right"),children:_.jsx("span",{"aria-label":"next-item",children:r("drilldown.breadcrumbsNext")})}),_.jsx("div",{ref:n,children:t})]})},Qve=({clearDrilldownSelections:e,currentDimension:t,setIsHovered:r,themeProps:n})=>{const{t:i}=_.useTranslation(),a=t.name,o=Ke(ll)`
589
+ && {
590
+ background-color: ${n.activeDrillBackgroundColor};
591
+ color: ${n.primaryButtonTextColor};
592
+ border-radius: 100%;
593
+ border: 2px solid white;
594
+ min-width: 39px;
595
+ width: 39px;
596
+ height: 39px;
597
+ z-index: 10;
598
+ padding: 7px;
599
+ cursor: pointer;
600
+ text-transform: none;
601
+ margin-right: -5px;
602
+
603
+ &:hover {
604
+ background-color: ${n.activeDrillHoverBackgroundColor};
605
+ color: ${n.primaryTextColor};
606
+ }
607
+ }
608
+ `,s=Ke.svg`
609
+ width: 22px;
610
+ height: 22px;
611
+ fill: #9ea2ab;
612
+ `,u=()=>_.jsx(o,{theme:n,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),onClick:e,children:_.jsx(s,{width:22,height:22,viewBox:"0 0 24 24",children:_.jsx("path",{fill:"#9EA2AB",d:"M12 12.293L6.854 7.146a.5.5 0 1 0-.708.708L11.293 13l-5.147 5.146a.5.5 0 0 0 .708.708L12 13.707l5.146 5.147a.5.5 0 0 0 .708-.708L12.707 13l5.147-5.146a.5.5 0 0 0-.708-.708L12 12.293z"})})}),c=Ke(ll)`
613
+ && {
614
+ position: relative;
615
+ font-family: ${f=>f.theme.fontFamily};
616
+ border-radius: 0;
617
+ border: 1px solid ${Mn};
618
+ background-color: ${f=>f.theme.chartBackgroundColor};
619
+ border-right: none;
620
+ border-left: none;
621
+ color: ${f=>f.theme.secondaryTextColor};
622
+ padding-right: 1.25rem;
623
+ padding-left: 1.875rem;
624
+ height: 1.64rem;
625
+ font-size: 13px;
626
+ transition: background-color 0.2s, border-color 0.2s, color 0.2s;
627
+ text-transform: none;
628
+ cursor: auto;
629
+ pointer-events: none;
630
+ white-space: nowrap;
631
+
632
+ &:hover {
633
+ background-color: ${f=>f.theme.chartBackgroundColor};
634
+ border: 1px solid ${Mn};
635
+ border-right: none;
636
+ border-left: none;
637
+ }
638
+ }
639
+ `;return{CancelButton:u,CurrentDrillButton:()=>_.jsxs(c,{theme:n,children:[a," (",i("drilldown.breadcrumbsAllSuffix"),")",_.jsx("span",{className:"flex items-center justify-between",children:_.jsx("span",{className:"csdk-absolute csdk-right-[0px] csdk-top-[3px] csdk-h-[18px] csdk-w-[18px] csdk-transform csdk-translate-x-1/2 csdk-rotate-45",style:{backgroundColor:"transparent",borderTop:`1px solid ${Mn}`,borderRight:`1px solid ${Mn}`}})})]})}},Jve={modifiers:[{name:"offset",options:{offset:[0,12]}}]},eye=({themeProps:e,filterDisplayValues:t,currentTable:r,currentColumn:n})=>{const{t:i}=_.useTranslation();return _.jsxs("div",{className:"csdk-w-50 csdk-px-[12px] csdk-shadow-md csdk-shadow-gray-500 csdk-rounded-md csdk-bg-white",style:{backgroundColor:e.chartBackgroundColor,color:e.primaryTextColor},children:[_.jsxs("div",{className:"csdk-border-b csdk-border-[#e4e4e4] csdk-p-3 csdk-pl-1",children:[_.jsx(Pr,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:i("drilldown.popover.members")}),_.jsx(Pr,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:t.join(", ")})]}),_.jsxs("div",{className:"csdk-border-b csdk-border-[#e4e4e4] csdk-p-3 csdk-pl-1",children:[_.jsx(Pr,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:i("drilldown.popover.table")}),_.jsx(Pr,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:r})]}),_.jsxs("div",{className:"csdk-p-3 csdk-pl-1",children:[_.jsx(Pr,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:i("drilldown.popover.column")}),_.jsx(Pr,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:n})]})]})},tye=({popperParams:e,currentDimension:t,themeProps:r})=>{const n=t.expression.match(/\[(.*?)]/),[i,a]=n?n[1].split("."):["",""],o=!!e;return _.jsx(kl,{open:o,anchorEl:e==null?void 0:e.anchorEl,placement:"bottom",popperOptions:Jve,children:e&&_.jsx(eye,{themeProps:r,filterDisplayValues:e.filterDisplayValues,currentTable:i,currentColumn:a})})},rye=()=>{const{themeSettings:{typography:{primaryTextColor:e,secondaryTextColor:t,fontFamily:r},general:{backgroundColor:n,brandColor:i,primaryButtonTextColor:a},chart:{backgroundColor:o}}}=it(),s=_.scaleBrightness(o,-.02),u=_.scaleBrightness(s,-.05);return{primaryTextColor:e,secondaryTextColor:t,fontFamily:r,backgroundColor:n,brandColor:i,primaryButtonTextColor:a,chartBackgroundColor:o,activeDrillBackgroundColor:s,activeDrillHoverBackgroundColor:u}},Mn="#F2F2F2",nye=Ke(ll)`
640
+ && {
641
+ font-family: ${({theme:e})=>e.fontFamily};
642
+ position: relative;
643
+ border-radius: 0;
644
+ border: 1px solid ${Mn};
645
+ border-right: none;
646
+ color: ${({active:e,theme:t})=>e==="true"?t.primaryTextColor:t.secondaryTextColor};
647
+ background-color: ${({active:e,theme:t})=>e==="true"?t.activeDrillBackgroundColor:t.chartBackgroundColor};
648
+ padding-right: 1.25rem;
649
+ padding-left: 1.875rem;
650
+ height: 1.64rem;
651
+ font-size: 13px;
652
+ text-transform: none;
653
+ transition: background-color 0.2s, border-color 0.2s, color 0.2s;
654
+ white-space: nowrap;
655
+ cursor: ${({active:e})=>e==="true"?"pointer":"auto"};
656
+ margin-right: ${({active:e})=>e==="true"?"5px":"0px"};
657
+
658
+ &:hover {
659
+ background-color: ${({active:e,theme:t})=>e==="true"?t.activeDrillHoverBackgroundColor:t.chartBackgroundColor};
660
+ border: 1px solid ${Mn};
661
+ border-right: none;
662
+ }
663
+
664
+ .MuiTouchRipple-root {
665
+ display: none;
666
+ }
667
+ }
668
+ `,iye=Ke(lE)`
669
+ .MuiBreadcrumbs-ol {
670
+ flex-wrap: nowrap;
671
+ overflow: hidden;
672
+ }
673
+ .MuiBreadcrumbs-separator {
674
+ display: none;
675
+ }
676
+ `,aye=({isActive:e,filterDisplayValue:t,handleMouseEnter:r,handleMouseLeave:n,handleClick:i,themeProps:a,popperParams:o,index:s})=>_.jsx(nye,{theme:a,active:e.toString(),index:s,onMouseEnter:r,onMouseLeave:n,onClick:i,children:_.jsxs("span",{className:"flex items-center justify-between",children:[_.jsxs("span",{className:"mr-2",children:[t.slice(0,2).join(", "),t.length>2&&", ..."]}),e?_.jsx("span",{className:"csdk-absolute csdk-right-0 csdk-h-[18px] csdk-w-[18px] csdk-top-[3px] csdk-translate-x-1/2 csdk-rotate-45",style:{backgroundColor:t===(o==null?void 0:o.filterDisplayValues)?a.activeDrillHoverBackgroundColor:a.activeDrillBackgroundColor,borderTop:`1px solid ${Mn}`,borderRight:`1px solid ${Mn}`,transition:"background-color 0.2s, border-color 0.2s, color 0.2s",zIndex:8}}):void 0,_.jsx("span",{className:`csdk-absolute ${e?"csdk-h-[18px] csdk-w-[18px] csdk-top-[3px] csdk-right-[-15px]":"csdk-h-[10px] csdk-w-[10px] csdk-top-[7px] csdk-right-[-5px]"} csdk-transform translate-x-1/2 csdk-rotate-45`,style:{backgroundColor:a.chartBackgroundColor,borderTop:`1px solid ${Mn}`,borderRight:`1px solid ${Mn}`,zIndex:7,transition:"background-color 0.2s, border-color 0.2s, color 0.2s"}})]})}),hE=ml({componentName:"DrilldownBreadcrumbs",shouldSkipSisenseContextWaiting:!0})(({filtersDisplayValues:e,currentDimension:t,clearDrilldownSelections:r,sliceDrilldownSelections:n})=>{const[i,a]=k.useState(null),[o,s]=k.useState(!1),u=rye(),{CancelButton:c,CurrentDrillButton:h}=Qve({clearDrilldownSelections:r,currentDimension:t,isHovered:o,setIsHovered:s,themeProps:u}),f=v=>w=>{s(!0),a({filterDisplayValues:v,anchorEl:w.currentTarget})},p=()=>{s(!1),a(null)},g=v=>v<e.length-1,b=v=>v===e.length-2;return e.length?_.jsx("div",{"aria-label":"drilldown-breadcrumbs",children:_.jsx(Kve,{currentDimension:t,children:_.jsxs(iye,{separator:null,sx:{backgroundColor:u.chartBackgroundColor,padding:"4px"},children:[_.jsx(c,{}),e.map((v,w)=>{const C=g(w),M=b(w);return _.jsx("div",{children:_.jsx(aye,{isActive:C,isLastActive:M,filterDisplayValue:v,handleMouseEnter:f(v),handleMouseLeave:p,handleClick:()=>n(w+1),themeProps:u,popperParams:i,index:w})},w)}),_.jsx(h,{}),_.jsx(tye,{popperParams:i,currentDimension:t,themeProps:u})]})})}):null}),fE=e=>{const{initialDimension:t,onDrilldownSelectionsChange:r}=e,n=k.useMemo(()=>e.drilldownPaths||[],[e.drilldownPaths]),i=k.useMemo(()=>e.initialDrilldownSelections||[],[e.initialDrilldownSelections]),{t:a}=_.useTranslation();if(!t)throw new I.TranslatableError("errors.drilldownNoInitialDimension");const[o,s]=Zg(i,{onLocalStateChange:r}),u=k.useMemo(()=>Dc(t,o),[t,o]),c=k.useMemo(()=>kc(n,u),[n,u]),h=k.useCallback((w,C,M)=>{s(E=>pE(E,w,C,M))},[s]),f=k.useCallback(w=>{s(C=>C.slice(0,w))},[s]),p=k.useCallback(()=>{s([])},[s]),{drilldownFilters:g,drilldownFiltersDisplayValues:b,drilldownDimension:v}=k.useMemo(()=>mE(o,t,a),[o,t,a]);return{drilldownSelections:o,availableDrilldownPaths:c,drilldownFilters:g,drilldownFiltersDisplayValues:b,drilldownDimension:v,selectDrilldown:h,sliceDrilldownSelections:f,clearDrilldownSelections:p}},pE=(e,t,r,n)=>{var p,g;if(!(n!=null&&n.levels))return[...e,{points:t,nextDimension:r}];if(kr(n.levels[0],r))return[];const a=(p=e==null?void 0:e.findIndex(b=>kr(b.nextDimension,r)))!=null?p:-1;if(a!==-1)return e.slice(0,a+1);const s=(g=I.last(e))==null?void 0:g.nextDimension,u=e.length?n.levels.findIndex(b=>s&&kr(b,s)):0,c=n.levels.indexOf(r),f=n.levels.slice(u+1,c+1).map((b,v)=>({points:v===0?t:[],nextDimension:b}));return[...e,...f]},mE=(e,t,r)=>{let n=t&&_.translateColumnToAttribute(t);const i=[],a=[];return e.forEach(({points:o,nextDimension:s})=>{i.push(I.members(n,o.map(oye)));const u=o.length?o.map(gE):[`${n.name} (${r("drilldown.breadcrumbsAllSuffix")})`];a.push(u),n=s}),{drilldownFilters:i,drilldownFiltersDisplayValues:a,drilldownDimension:n}};function gE(e){return"categoryDisplayValue"in e?`${e.categoryDisplayValue}`:"categoryValue"in e?`${e.categoryValue}`:""}function oye(e){return"categoryValue"in e?`${e.categoryValue}`:""}const vE=({initialDimension:e,initialDrilldownSelections:t,openMenu:r,onDrilldownSelectionsChange:n})=>{const{t:i}=_.useTranslation(),{drilldownFilters:a,drilldownFiltersDisplayValues:o,drilldownDimension:s,drilldownSelections:u,selectDrilldown:c,sliceDrilldownSelections:h,clearDrilldownSelections:f}=fE({initialDimension:e,initialDrilldownSelections:t,onDrilldownSelectionsChange:n}),p=k.useCallback((b,v,w=[],C)=>{const M=[yE(v,s),bE(w,s,(E,S)=>{C==null||C(E,S),c(v,E,S)},i)];r({id:sl.WIDGET_POINTS_DRILLDOWN,position:b,itemSections:M})},[s,i,c,r]),g=k.useMemo(()=>s&&_.jsx(hE,{filtersDisplayValues:o,currentDimension:s,clearDrilldownSelections:f,sliceDrilldownSelections:h}),[f,s,o,h]);return{drilldownDimension:s,drilldownSelections:u,drilldownFilters:a,breadcrumbs:g,openDrilldownMenu:p}};function yE(e,t){const r=Bm(e.map(gE).filter(n=>!!n));return r.length>aE?{id:po.DRILLDOWN_CHART_POINTS_SELECTION,sectionTitle:t.name}:{id:po.DRILLDOWN_CHART_POINTS_SELECTION,sectionTitle:r.join(", ")}}function sye(e){return 30+12*e}function bE(e,t,r,n){const[i,a]=$l(e,I.MetadataTypes.isAttribute.bind(I.MetadataTypes)),o=i.map(u=>({caption:u.name,onClick:()=>r(u)})),s=a.map(u=>({caption:u.title,subItems:[{items:u.levels.map((c,h)=>({caption:c.name,class:h===0?"":"csdk-drilldown-hierarchy-nested-menu-item",style:{paddingLeft:`${sye(h)}px`},disabled:kr(c,t),onClick:()=>r(c,u)}))}]}));return{id:po.DRILLDOWN_DRILL_DIRECTIONS,sectionTitle:n("drilldown.drillMenuItem"),items:[...s,...o]}}function lye(e){const{_id:t,title:r,levels:n}=e;return{id:t,title:r,levels:n.map(i=>I.createDimensionalElementFromJaql(i))}}function _E(e,t,r){return Yt(this,null,function*(){const i=yield new q0(e,r).getHierarchies(t);return i==null?void 0:i.map(a=>lye(a))})}function wE(){const{isInitialized:e,app:t}=wt(),[r,n]=k.useReducer(wS,{isLoading:!1,isError:!1,isSuccess:!0,status:"success",error:void 0,data:[]}),i=k.useCallback(a=>Yt(this,null,function*(){const{attribute:o,dataSource:s,drilldownPaths:u=[]}=a;if(!e||!t){const f=new I.TranslatableError("errors.noSisenseContext");throw n({type:"error",error:f}),f}const[c,h]=$l(u,rg);if(c.length===0)return n({type:"success",data:h}),h;n({type:"loading"});try{const f=yield _E(t.httpClient,{dimension:o,dataSource:s,ids:c,alwaysIncluded:!0},t.defaultDataSource),p=f.length?[...f,...h]:h;return n({type:"success",data:p}),p}catch(f){const p=f instanceof Error?f:new Error(String(f));throw n({type:"error",error:p}),p}}),[e,t]);return $(T({},r),{drilldownPaths:r.data,synchronize:i})}function uye(e){const t=Xg(e,["attribute","dataSource","drilldownPaths","enabled"]),{attribute:r,dataSource:n,drilldownPaths:i,enabled:a}=e,{drilldownPaths:o,synchronize:s}=wE();return k.useEffect(()=>{(a||a===void 0)&&t&&s({attribute:r,dataSource:n,drilldownPaths:i})},[t,a,r,n,i,s]),k.useMemo(()=>o!=null?o:[],[o])}const cye=({propsToExtend:e,onDrilldownSelectionsChange:t})=>{const{chartType:r,dataOptions:n,dataSource:i,drilldownOptions:a}=e,{drilldownSelections:o}=a||{},{openMenu:s}=rv(),u=k.useMemo(()=>kve(r,n),[r,n]),c=k.useMemo(()=>(a==null?void 0:a.drilldownPaths)||[],[a==null?void 0:a.drilldownPaths]),h=k.useMemo(()=>{const U=I.createAttribute({name:"dummy drilldown initial attribute"});return Ave(r,n)||U},[r,n]),f=uye({attribute:h,dataSource:i,drilldownPaths:c,enabled:u}),p=k.useRef(f);k.useEffect(()=>{p.current=f},[f]);const g=k.useMemo(()=>{var K;return(!!((K=a==null?void 0:a.drilldownSelections)!=null&&K.length)||!!(f!=null&&f.length))&&u},[a,u,f]),{drilldownDimension:b,drilldownFilters:v,breadcrumbs:w,openDrilldownMenu:C}=vE({initialDimension:h,initialDrilldownSelections:o,openMenu:s,onDrilldownSelectionsChange:t}),M=k.useCallback((U,K)=>{const Q=m_(U,K,n),O=Dc(h,o||[]),F=kc(p.current,O);C({left:K.clientX,top:K.clientY},Q,F)},[n,h,o,C]),E=k.useCallback((U,K)=>{const Q=m_([U],K,n),O=Dc(h,o||[]),F=kc(p.current,O);C({left:K.clientX,top:K.clientY},Q,F)},[n,h,o,C]),S=k.useMemo(()=>oE(r,n,b),[r,n,b]),P=k.useMemo(()=>v.length?I.mergeFiltersOrFilterRelations(e.filters||[],v):e.filters,[e.filters,v]),R=k.useMemo(()=>_.combineHandlers([M,e.onDataPointsSelected]),[M,e.onDataPointsSelected]),N=k.useMemo(()=>_.combineHandlers([E,e.onDataPointContextMenu]),[E,e.onDataPointContextMenu]);return{propsWithDrilldown:$(T({},e),{dataOptions:S,filters:P,onDataPointsSelected:R,onDataPointContextMenu:N}),isDrilldownEnabled:g,breadcrumbs:w}},dye=ml({componentName:"ChartWidget"})(e=>{var Q,O,F;const{app:t}=wt(),{chartType:r,dataSource:n=t==null?void 0:t.defaultDataSource,dataOptions:i,styleOptions:a,highlightSelectionDisabled:o=!1,highlights:s,description:u,onChange:c}=e,{width:h,height:f}=a||{},p=k.useMemo(()=>{var q;return xw(r,{hasHeader:!((q=a==null?void 0:a.header)!=null&&q.hidden)})},[r,(Q=a==null?void 0:a.header)==null?void 0:Q.hidden]),g=k.useMemo(()=>({width:h,height:f}),[h,f]),[b,v]=k.useState(0),w=k.useMemo(()=>I.omit(a,["width","height"]),[a]),C=k.useCallback(q=>{c==null||c({type:"drilldownSelections/changed",payload:q})},[c]),{headerConfig:M,titleEditor:E}=WS({title:e.title,onChange:e.onChange,headerConfig:(O=e.config)==null?void 0:O.header}),{propsWithDrilldown:S,isDrilldownEnabled:P,breadcrumbs:R}=cye({propsToExtend:e,onDrilldownSelectionsChange:C}),N=sge({chartType:r,dataOptions:i,enabled:!o&&!P&&!(s!=null&&s.length)}),B=(F=t==null?void 0:t.settings.accessibilityConfig)==null?void 0:F.enabled,U=k.useCallback(q=>{var j;return B?$(T({},q),{accessibility:$(T({},q.accessibility),{description:u!=null?u:(j=q.accessibility)==null?void 0:j.description})}):q},[u,B]);if(!r||!i)return null;const K=$(T({},S),{dataSet:n,styleOptions:w,refreshCounter:b,onDataPointClick:k.useMemo(()=>_.combineHandlers([N.onDataPointClick,e.onDataPointClick]),[N.onDataPointClick,e.onDataPointClick]),onDataPointContextMenu:S.onDataPointContextMenu,onDataPointsSelected:k.useMemo(()=>_.combineHandlers([N.onDataPointsSelected,S.onDataPointsSelected]),[N.onDataPointsSelected,S.onDataPointsSelected]),onBeforeRender:k.useMemo(()=>_.combineHandlers([U,N.onBeforeRender,e.onBeforeRender],!0),[U,N.onBeforeRender,e.onBeforeRender])});return _.jsx(rd,{defaultSize:p,size:g,children:_.jsx(KS,$(T({},e),{headerConfig:M,titleEditor:E,topSlot:_.jsxs(_.Fragment,{children:[e.topSlot,R]}),dataSetName:n&&I.getDataSourceName(n),onRefresh:()=>v(b+1),children:_.jsx(mS,T({},K))}))})});class $o{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const r={listener:t};return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const ul=typeof window=="undefined"||"Deno"in window;function Ur(){}function hye(e,t){return typeof e=="function"?e(t):e}function Wm(e){return typeof e=="number"&&e>=0&&e!==1/0}function xE(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ts(e,t,r){return zl(e)?typeof t=="function"?$(T({},r),{queryKey:e,queryFn:t}):$(T({},t),{queryKey:e}):e}function fye(e,t,r){return zl(e)?$(T({},t),{mutationKey:e}):typeof e=="function"?$(T({},t),{mutationFn:e}):T({},e)}function pi(e,t,r){return zl(e)?[$(T({},t),{queryKey:e}),r]:[e||{},t]}function v_(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(zl(o)){if(n){if(t.queryHash!==iv(o,t.options))return!1}else if(!Za(t.queryKey,o))return!1}if(r!=="all"){const u=t.isActive();if(r==="active"&&!u||r==="inactive"&&u)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof i!="undefined"&&i!==t.state.fetchStatus||a&&!a(t))}function y_(e,t){const{exact:r,fetching:n,predicate:i,mutationKey:a}=e;if(zl(a)){if(!t.options.mutationKey)return!1;if(r){if(Ui(t.options.mutationKey)!==Ui(a))return!1}else if(!Za(t.options.mutationKey,a))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||i&&!i(t))}function iv(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ui)(e)}function Ui(e){return JSON.stringify(e,(t,r)=>Hm(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function Za(e,t){return CE(e,t)}function CE(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!CE(e[r],t[r])):!1}function TE(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=b_(e)&&b_(t);if(n||Hm(e)&&Hm(t)){const i=n?e.length:Object.keys(e).length,a=n?t:Object.keys(t),o=a.length,s=n?[]:{};let u=0;for(let c=0;c<o;c++){const h=n?c:a[c];s[h]=TE(e[h],t[h],r+1),s[h]===e[h]&&u++}return i===o&&u===i?e:s}return t}function Nc(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function b_(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Hm(e){if(!__(e))return!1;const t=e.constructor;if(typeof t=="undefined")return!0;const r=t.prototype;return!(!__(r)||!r.hasOwnProperty("isPrototypeOf"))}function __(e){return Object.prototype.toString.call(e)==="[object Object]"}function zl(e){return Array.isArray(e)}function ME(e){return new Promise(t=>{setTimeout(t,e)})}function w_(e){ME(0).then(e)}function pye(){if(typeof AbortController=="function")return new AbortController}function jm(e,t,r){return r.isDataEqual!=null&&r.isDataEqual(e,t)?e:typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?TE(e,t):t}class mye extends $o{constructor(){super(),this.setup=t=>{if(!ul&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),()=>{window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document=="undefined"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Lc=new mye,x_=["online","offline"];class gye extends $o{constructor(){super(),this.setup=t=>{if(!ul&&window.addEventListener){const r=()=>t();return x_.forEach(n=>{window.addEventListener(n,r,!1)}),()=>{x_.forEach(n=>{window.removeEventListener(n,r)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator=="undefined"||typeof navigator.onLine=="undefined"?!0:navigator.onLine}}const Ic=new gye;function vye(e){return Math.min(1e3*gn(2,e),3e4)}function eh(e){return(e!=null?e:"online")==="online"?Ic.isOnline():!0}class SE{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function tc(e){return e instanceof SE}function EE(e){let t=!1,r=0,n=!1,i,a,o;const s=new Promise((w,C)=>{a=w,o=C}),u=w=>{n||(g(new SE(w)),e.abort==null||e.abort())},c=()=>{t=!0},h=()=>{t=!1},f=()=>!Lc.isFocused()||e.networkMode!=="always"&&!Ic.isOnline(),p=w=>{n||(n=!0,e.onSuccess==null||e.onSuccess(w),i==null||i(),a(w))},g=w=>{n||(n=!0,e.onError==null||e.onError(w),i==null||i(),o(w))},b=()=>new Promise(w=>{i=C=>{const M=n||!f();return M&&w(C),M},e.onPause==null||e.onPause()}).then(()=>{i=void 0,n||e.onContinue==null||e.onContinue()}),v=()=>{if(n)return;let w;try{w=e.fn()}catch(C){w=Promise.reject(C)}Promise.resolve(w).then(p).catch(C=>{var M,E;if(n)return;const S=(M=e.retry)!=null?M:3,P=(E=e.retryDelay)!=null?E:vye,R=typeof P=="function"?P(r,C):P,N=S===!0||typeof S=="number"&&r<S||typeof S=="function"&&S(r,C);if(t||!N){g(C);return}r++,e.onFail==null||e.onFail(r,C),ME(R).then(()=>{if(f())return b()}).then(()=>{t?g(C):v()})})};return eh(e.networkMode)?v():b().then(v),{promise:s,cancel:u,continue:()=>(i==null?void 0:i())?s:Promise.resolve(),cancelRetry:c,continueRetry:h}}const av=console;function yye(){let e=[],t=0,r=h=>{h()},n=h=>{h()};const i=h=>{let f;t++;try{f=h()}finally{t--,t||s()}return f},a=h=>{t?e.push(h):w_(()=>{r(h)})},o=h=>(...f)=>{a(()=>{h(...f)})},s=()=>{const h=e;e=[],h.length&&w_(()=>{n(()=>{h.forEach(f=>{r(f)})})})};return{batch:i,batchCalls:o,schedule:a,setNotifyFunction:h=>{r=h},setBatchNotifyFunction:h=>{n=h}}}const Wt=yye();class PE{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Wm(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t!=null?t:ul?1/0:5*60*1e3)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class bye extends PE{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||av,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||_ye(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options=T(T({},this.defaultOptions),t),this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,r){const n=jm(this.state.data,t,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){this.dispatch({type:"setState",state:t,setStateOptions:r})}cancel(t){var r;const n=this.promise;return(r=this.retryer)==null||r.cancel(t),n?n.then(Ur).catch(Ur):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!xE(this.state.dataUpdatedAt,t)}onFocus(){var t;const r=this.observers.find(n=>n.shouldFetchOnWindowFocus());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const r=this.observers.find(n=>n.shouldFetchOnReconnect());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,r){var n,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&r!=null&&r.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var a;return(a=this.retryer)==null||a.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(b=>b.options.queryFn);g&&this.setOptions(g.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||this.logger.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']"));const o=pye(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},u=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};u(s);const c=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),h={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:c};if(u(h),(n=this.options.behavior)==null||n.onFetch(h),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=h.fetchOptions)==null?void 0:i.meta)){var f;this.dispatch({type:"fetch",meta:(f=h.fetchOptions)==null?void 0:f.meta})}const p=g=>{if(tc(g)&&g.silent||this.dispatch({type:"error",error:g}),!tc(g)){var b,v,w,C;(b=(v=this.cache.config).onError)==null||b.call(v,g,this),(w=(C=this.cache.config).onSettled)==null||w.call(C,this.state.data,g,this),process.env.NODE_ENV!=="production"&&this.logger.error(g)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=EE({fn:h.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:g=>{var b,v,w,C;if(typeof g=="undefined"){process.env.NODE_ENV!=="production"&&this.logger.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),p(new Error(this.queryHash+" data is undefined"));return}this.setData(g),(b=(v=this.cache.config).onSuccess)==null||b.call(v,g,this),(w=(C=this.cache.config).onSettled)==null||w.call(C,g,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:(g,b)=>{this.dispatch({type:"failed",failureCount:g,error:b})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const r=n=>{var i,a;switch(t.type){case"failed":return $(T({},n),{fetchFailureCount:t.failureCount,fetchFailureReason:t.error});case"pause":return $(T({},n),{fetchStatus:"paused"});case"continue":return $(T({},n),{fetchStatus:"fetching"});case"fetch":return T($(T({},n),{fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=t.meta)!=null?i:null,fetchStatus:eh(this.options.networkMode)?"fetching":"paused"}),!n.dataUpdatedAt&&{error:null,status:"loading"});case"success":return T($(T({},n),{data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(a=t.dataUpdatedAt)!=null?a:Date.now(),error:null,isInvalidated:!1,status:"success"}),!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":const o=t.error;return tc(o)&&o.revert&&this.revertState?$(T({},this.revertState),{fetchStatus:"idle"}):$(T({},n),{error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"});case"invalidate":return $(T({},n),{isInvalidated:!0});case"setState":return T(T({},n),t.state)}};this.state=r(this.state),Wt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function _ye(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof t!="undefined",n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n!=null?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}class wye extends $o{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,r,n){var i;const a=r.queryKey,o=(i=r.queryHash)!=null?i:iv(a,r);let s=this.get(o);return s||(s=new bye({cache:this,logger:t.getLogger(),queryKey:a,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const r=this.queriesMap[t.queryHash];r&&(t.destroy(),this.queries=this.queries.filter(n=>n!==t),r===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){Wt.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,r){const[n]=pi(t,r);return typeof n.exact=="undefined"&&(n.exact=!0),this.queries.find(i=>v_(n,i))}findAll(t,r){const[n]=pi(t,r);return Object.keys(n).length>0?this.queries.filter(i=>v_(n,i)):this.queries}notify(t){Wt.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}onFocus(){Wt.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){Wt.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class xye extends PE{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||av,this.observers=[],this.state=t.state||AE(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=T(T({},this.defaultOptions),t),this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(r=>r!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,r;return(t=(r=this.retryer)==null?void 0:r.continue())!=null?t:this.execute()}execute(){return Yt(this,null,function*(){const t=()=>{var N;return this.retryer=EE({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(B,U)=>{this.dispatch({type:"failed",failureCount:B,error:U})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(N=this.options.retry)!=null?N:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},r=this.state.status==="loading";try{var n,i,a,o,s,u,c,h;if(!r){var f,p,g,b;this.dispatch({type:"loading",variables:this.options.variables}),yield(f=(p=this.mutationCache.config).onMutate)==null?void 0:f.call(p,this.state.variables,this);const B=yield(g=(b=this.options).onMutate)==null?void 0:g.call(b,this.state.variables);B!==this.state.context&&this.dispatch({type:"loading",context:B,variables:this.state.variables})}const N=yield t();return yield(n=(i=this.mutationCache.config).onSuccess)==null?void 0:n.call(i,N,this.state.variables,this.state.context,this),yield(a=(o=this.options).onSuccess)==null?void 0:a.call(o,N,this.state.variables,this.state.context),yield(s=(u=this.mutationCache.config).onSettled)==null?void 0:s.call(u,N,null,this.state.variables,this.state.context,this),yield(c=(h=this.options).onSettled)==null?void 0:c.call(h,N,null,this.state.variables,this.state.context),this.dispatch({type:"success",data:N}),N}catch(N){try{var v,w,C,M,E,S,P,R;throw yield(v=(w=this.mutationCache.config).onError)==null?void 0:v.call(w,N,this.state.variables,this.state.context,this),process.env.NODE_ENV!=="production"&&this.logger.error(N),yield(C=(M=this.options).onError)==null?void 0:C.call(M,N,this.state.variables,this.state.context),yield(E=(S=this.mutationCache.config).onSettled)==null?void 0:E.call(S,void 0,N,this.state.variables,this.state.context,this),yield(P=(R=this.options).onSettled)==null?void 0:P.call(R,void 0,N,this.state.variables,this.state.context),N}finally{this.dispatch({type:"error",error:N})}}})}dispatch(t){const r=n=>{switch(t.type){case"failed":return $(T({},n),{failureCount:t.failureCount,failureReason:t.error});case"pause":return $(T({},n),{isPaused:!0});case"continue":return $(T({},n),{isPaused:!1});case"loading":return $(T({},n),{context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!eh(this.options.networkMode),status:"loading",variables:t.variables});case"success":return $(T({},n),{data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return $(T({},n),{data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"});case"setState":return T(T({},n),t.state)}};this.state=r(this.state),Wt.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function AE(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class Cye extends $o{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,r,n){const i=new xye({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(r),state:n,defaultOptions:r.mutationKey?t.getMutationDefaults(r.mutationKey):void 0});return this.add(i),i}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(r=>r!==t),this.notify({type:"removed",mutation:t})}clear(){Wt.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact=="undefined"&&(t.exact=!0),this.mutations.find(r=>y_(t,r))}findAll(t){return this.mutations.filter(r=>y_(t,r))}notify(t){Wt.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const r=this.mutations.filter(n=>n.state.isPaused);return Wt.batch(()=>r.reduce((n,i)=>n.then(()=>i.continue().catch(Ur)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function Tye(){return{onFetch:e=>{e.fetchFn=()=>{var t,r,n,i,a,o;const s=(t=e.fetchOptions)==null||(r=t.meta)==null?void 0:r.refetchPage,u=(n=e.fetchOptions)==null||(i=n.meta)==null?void 0:i.fetchMore,c=u==null?void 0:u.pageParam,h=(u==null?void 0:u.direction)==="forward",f=(u==null?void 0:u.direction)==="backward",p=((a=e.state.data)==null?void 0:a.pages)||[],g=((o=e.state.data)==null?void 0:o.pageParams)||[];let b=g,v=!1;const w=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>{var N;if((N=e.signal)!=null&&N.aborted)v=!0;else{var B;(B=e.signal)==null||B.addEventListener("abort",()=>{v=!0})}return e.signal}})},C=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),M=(R,N,B,U)=>(b=U?[N,...b]:[...b,N],U?[B,...R]:[...R,B]),E=(R,N,B,U)=>{if(v)return Promise.reject("Cancelled");if(typeof B=="undefined"&&!N&&R.length)return Promise.resolve(R);const K={queryKey:e.queryKey,pageParam:B,meta:e.options.meta};w(K);const Q=C(K);return Promise.resolve(Q).then(F=>M(R,B,F,U))};let S;if(!p.length)S=E([]);else if(h){const R=typeof c!="undefined",N=R?c:C_(e.options,p);S=E(p,R,N)}else if(f){const R=typeof c!="undefined",N=R?c:Mye(e.options,p);S=E(p,R,N,!0)}else{b=[];const R=typeof e.options.getNextPageParam=="undefined";S=(s&&p[0]?s(p[0],0,p):!0)?E([],R,g[0]):Promise.resolve(M([],g[0],p[0]));for(let B=1;B<p.length;B++)S=S.then(U=>{if(s&&p[B]?s(p[B],B,p):!0){const Q=R?g[B]:C_(e.options,U);return E(U,R,Q)}return Promise.resolve(M(U,g[B],p[B]))})}return S.then(R=>({pages:R,pageParams:b}))}}}}function C_(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function Mye(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class Sye{constructor(t={}){this.queryCache=t.queryCache||new wye,this.mutationCache=t.mutationCache||new Cye,this.logger=t.logger||av,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0,process.env.NODE_ENV!=="production"&&t.logger&&this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version.")}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Lc.subscribe(()=>{Lc.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Ic.subscribe(()=>{Ic.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,r;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(r=this.unsubscribeOnline)==null||r.call(this),this.unsubscribeOnline=void 0)}isFetching(t,r){const[n]=pi(t,r);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(t){return this.mutationCache.findAll($(T({},t),{fetching:!0})).length}getQueryData(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state.data}ensureQueryData(t,r,n){const i=Ts(t,r,n),a=this.getQueryData(i.queryKey);return a?Promise.resolve(a):this.fetchQuery(i)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:r,state:n})=>{const i=n.data;return[r,i]})}setQueryData(t,r,n){const i=this.queryCache.find(t),a=i==null?void 0:i.state.data,o=hye(r,a);if(typeof o=="undefined")return;const s=Ts(t),u=this.defaultQueryOptions(s);return this.queryCache.build(this,u).setData(o,$(T({},n),{manual:!0}))}setQueriesData(t,r,n){return Wt.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,r,n)]))}getQueryState(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state}removeQueries(t,r){const[n]=pi(t,r),i=this.queryCache;Wt.batch(()=>{i.findAll(n).forEach(a=>{i.remove(a)})})}resetQueries(t,r,n){const[i,a]=pi(t,r,n),o=this.queryCache,s=T({type:"active"},i);return Wt.batch(()=>(o.findAll(i).forEach(u=>{u.reset()}),this.refetchQueries(s,a)))}cancelQueries(t,r,n){const[i,a={}]=pi(t,r,n);typeof a.revert=="undefined"&&(a.revert=!0);const o=Wt.batch(()=>this.queryCache.findAll(i).map(s=>s.cancel(a)));return Promise.all(o).then(Ur).catch(Ur)}invalidateQueries(t,r,n){const[i,a]=pi(t,r,n);return Wt.batch(()=>{var o,s;if(this.queryCache.findAll(i).forEach(c=>{c.invalidate()}),i.refetchType==="none")return Promise.resolve();const u=$(T({},i),{type:(o=(s=i.refetchType)!=null?s:i.type)!=null?o:"active"});return this.refetchQueries(u,a)})}refetchQueries(t,r,n){const[i,a]=pi(t,r,n),o=Wt.batch(()=>this.queryCache.findAll(i).filter(u=>!u.isDisabled()).map(u=>{var c;return u.fetch(void 0,$(T({},a),{cancelRefetch:(c=a==null?void 0:a.cancelRefetch)!=null?c:!0,meta:{refetchPage:i.refetchPage}}))}));let s=Promise.all(o).then(Ur);return a!=null&&a.throwOnError||(s=s.catch(Ur)),s}fetchQuery(t,r,n){const i=Ts(t,r,n),a=this.defaultQueryOptions(i);typeof a.retry=="undefined"&&(a.retry=!1);const o=this.queryCache.build(this,a);return o.isStaleByTime(a.staleTime)?o.fetch(a):Promise.resolve(o.state.data)}prefetchQuery(t,r,n){return this.fetchQuery(t,r,n).then(Ur).catch(Ur)}fetchInfiniteQuery(t,r,n){const i=Ts(t,r,n);return i.behavior=Tye(),this.fetchQuery(i)}prefetchInfiniteQuery(t,r,n){return this.fetchInfiniteQuery(t,r,n).then(Ur).catch(Ur)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,r){const n=this.queryDefaults.find(i=>Ui(t)===Ui(i.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:t,defaultOptions:r})}getQueryDefaults(t){if(!t)return;const r=this.queryDefaults.find(n=>Za(t,n.queryKey));return process.env.NODE_ENV!=="production"&&this.queryDefaults.filter(i=>Za(t,i.queryKey)).length>1&&this.logger.error("[QueryClient] Several query defaults match with key '"+JSON.stringify(t)+"'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults."),r==null?void 0:r.defaultOptions}setMutationDefaults(t,r){const n=this.mutationDefaults.find(i=>Ui(t)===Ui(i.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:t,defaultOptions:r})}getMutationDefaults(t){if(!t)return;const r=this.mutationDefaults.find(n=>Za(t,n.mutationKey));return process.env.NODE_ENV!=="production"&&this.mutationDefaults.filter(i=>Za(t,i.mutationKey)).length>1&&this.logger.error("[QueryClient] Several mutation defaults match with key '"+JSON.stringify(t)+"'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults."),r==null?void 0:r.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const r=$(T(T(T({},this.defaultOptions.queries),this.getQueryDefaults(t==null?void 0:t.queryKey)),t),{_defaulted:!0});return!r.queryHash&&r.queryKey&&(r.queryHash=iv(r.queryKey,r)),typeof r.refetchOnReconnect=="undefined"&&(r.refetchOnReconnect=r.networkMode!=="always"),typeof r.useErrorBoundary=="undefined"&&(r.useErrorBoundary=!!r.suspense),r}defaultMutationOptions(t){return t!=null&&t._defaulted?t:$(T(T(T({},this.defaultOptions.mutations),this.getMutationDefaults(t==null?void 0:t.mutationKey)),t),{_defaulted:!0})}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class Eye extends $o{constructor(t,r){super(),this.client=t,this.options=r,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(r)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),T_(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Vm(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Vm(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,r){const n=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),process.env.NODE_ENV!=="production"&&typeof(t==null?void 0:t.isDataEqual)!="undefined"&&this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option"),Nc(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled!="undefined"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const a=this.hasListeners();a&&M_(this.currentQuery,i,this.options,n)&&this.executeFetch(),this.updateResult(r),a&&(this.currentQuery!==i||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();a&&(this.currentQuery!==i||this.options.enabled!==n.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(t){const r=this.client.getQueryCache().build(this.client,t),n=this.createResult(r,t);return Aye(this,n,t)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(t){const r={};return Object.keys(t).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),t[n])})}),r}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch(n={}){var i=n,{refetchPage:t}=i,r=Ce(i,["refetchPage"]);return this.fetch($(T({},r),{meta:{refetchPage:t}}))}fetchOptimistic(t){const r=this.client.defaultQueryOptions(t),n=this.client.getQueryCache().build(this.client,r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){var r;return this.executeFetch($(T({},t),{cancelRefetch:(r=t.cancelRefetch)!=null?r:!0})).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let r=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Ur)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),ul||this.currentResult.isStale||!Wm(this.options.staleTime))return;const r=xE(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},r)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(ul||this.options.enabled===!1||!Wm(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Lc.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,r){const n=this.currentQuery,i=this.options,a=this.currentResult,o=this.currentResultState,s=this.currentResultOptions,u=t!==n,c=u?t.state:this.currentQueryInitialState,h=u?this.currentResult:this.previousQueryResult,{state:f}=t;let{dataUpdatedAt:p,error:g,errorUpdatedAt:b,fetchStatus:v,status:w}=f,C=!1,M=!1,E;if(r._optimisticResults){const B=this.hasListeners(),U=!B&&T_(t,r),K=B&&M_(t,n,r,i);(U||K)&&(v=eh(t.options.networkMode)?"fetching":"paused",p||(w="loading")),r._optimisticResults==="isRestoring"&&(v="idle")}if(r.keepPreviousData&&!f.dataUpdatedAt&&h!=null&&h.isSuccess&&w!=="error")E=h.data,p=h.dataUpdatedAt,w=h.status,C=!0;else if(r.select&&typeof f.data!="undefined")if(a&&f.data===(o==null?void 0:o.data)&&r.select===this.selectFn)E=this.selectResult;else try{this.selectFn=r.select,E=r.select(f.data),E=jm(a==null?void 0:a.data,E,r),this.selectResult=E,this.selectError=null}catch(B){process.env.NODE_ENV!=="production"&&this.client.getLogger().error(B),this.selectError=B}else E=f.data;if(typeof r.placeholderData!="undefined"&&typeof E=="undefined"&&w==="loading"){let B;if(a!=null&&a.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))B=a.data;else if(B=typeof r.placeholderData=="function"?r.placeholderData():r.placeholderData,r.select&&typeof B!="undefined")try{B=r.select(B),this.selectError=null}catch(U){process.env.NODE_ENV!=="production"&&this.client.getLogger().error(U),this.selectError=U}typeof B!="undefined"&&(w="success",E=jm(a==null?void 0:a.data,B,r),M=!0)}this.selectError&&(g=this.selectError,E=this.selectResult,b=Date.now(),w="error");const S=v==="fetching",P=w==="loading",R=w==="error";return{status:w,fetchStatus:v,isLoading:P,isSuccess:w==="success",isError:R,isInitialLoading:P&&S,data:E,dataUpdatedAt:p,error:g,errorUpdatedAt:b,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:S,isRefetching:S&&!P,isLoadingError:R&&f.dataUpdatedAt===0,isPaused:v==="paused",isPlaceholderData:M,isPreviousData:C,isRefetchError:R&&f.dataUpdatedAt!==0,isStale:ov(t,r),refetch:this.refetch,remove:this.remove}}updateResult(t){const r=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Nc(n,r))return;this.currentResult=n;const i={cache:!0},a=()=>{if(!r)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!this.trackedProps.size)return!0;const u=new Set(s!=null?s:this.trackedProps);return this.options.useErrorBoundary&&u.add("error"),Object.keys(this.currentResult).some(c=>{const h=c;return this.currentResult[h]!==r[h]&&u.has(h)})};(t==null?void 0:t.listeners)!==!1&&a()&&(i.listeners=!0),this.notify(T(T({},i),t))}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const r=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const r={};t.type==="success"?r.onSuccess=!t.manual:t.type==="error"&&!tc(t.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(t){Wt.batch(()=>{if(t.onSuccess){var r,n,i,a;(r=(n=this.options).onSuccess)==null||r.call(n,this.currentResult.data),(i=(a=this.options).onSettled)==null||i.call(a,this.currentResult.data,null)}else if(t.onError){var o,s,u,c;(o=(s=this.options).onError)==null||o.call(s,this.currentResult.error),(u=(c=this.options).onSettled)==null||u.call(c,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:h})=>{h(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function Pye(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function T_(e,t){return Pye(e,t)||e.state.dataUpdatedAt>0&&Vm(e,t,t.refetchOnMount)}function Vm(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&ov(e,t)}return!1}function M_(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&ov(e,r)}function ov(e,t){return e.isStaleByTime(t.staleTime)}function Aye(e,t,r){return r.keepPreviousData?!1:r.placeholderData!==void 0?t.isPlaceholderData:!Nc(e.getCurrentResult(),t)}var Gm={exports:{}},Rf={};/**
677
+ * @license React
678
+ * use-sync-external-store-shim.production.js
679
+ *
680
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
681
+ *
682
+ * This source code is licensed under the MIT license found in the
683
+ * LICENSE file in the root directory of this source tree.
684
+ */var S_;function Rye(){if(S_)return Rf;S_=1;var e=k;function t(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function s(f,p){var g=p(),b=n({inst:{value:g,getSnapshot:p}}),v=b[0].inst,w=b[1];return a(function(){v.value=g,v.getSnapshot=p,u(v)&&w({inst:v})},[f,g,p]),i(function(){return u(v)&&w({inst:v}),f(function(){u(v)&&w({inst:v})})},[f]),o(g),g}function u(f){var p=f.getSnapshot;f=f.value;try{var g=p();return!r(f,g)}catch(b){return!0}}function c(f,p){return p()}var h=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?c:s;return Rf.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,Rf}var Of={};/**
685
+ * @license React
686
+ * use-sync-external-store-shim.development.js
687
+ *
688
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
689
+ *
690
+ * This source code is licensed under the MIT license found in the
691
+ * LICENSE file in the root directory of this source tree.
692
+ */var E_;function Oye(){return E_||(E_=1,process.env.NODE_ENV!=="production"&&function(){function e(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}function t(g,b){h||i.startTransition===void 0||(h=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var v=b();if(!f){var w=b();a(v,w)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}w=o({inst:{value:v,getSnapshot:b}});var C=w[0].inst,M=w[1];return u(function(){C.value=v,C.getSnapshot=b,r(C)&&M({inst:C})},[g,v,b]),s(function(){return r(C)&&M({inst:C}),g(function(){r(C)&&M({inst:C})})},[g]),c(v),v}function r(g){var b=g.getSnapshot;g=g.value;try{var v=b();return!a(g,v)}catch(w){return!0}}function n(g,b){return b()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=k,a=typeof Object.is=="function"?Object.is:e,o=i.useState,s=i.useEffect,u=i.useLayoutEffect,c=i.useDebugValue,h=!1,f=!1,p=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?n:t;Of.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Of}process.env.NODE_ENV==="production"?Gm.exports=Rye():Gm.exports=Oye();var kye=Gm.exports;const RE=kye.useSyncExternalStore,P_=Z.createContext(void 0),OE=Z.createContext(!1);function kE(e,t){return e||(t&&typeof window!="undefined"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=P_),window.ReactQueryClientContext):P_)}const DE=({context:e}={})=>{const t=Z.useContext(kE(e,Z.useContext(OE)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Dye=({client:e,children:t,context:r,contextSharing:n=!1})=>{Z.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),process.env.NODE_ENV!=="production"&&n&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const i=kE(r,n);return Z.createElement(OE.Provider,{value:!r&&n},Z.createElement(i.Provider,{value:e},t))},Nye=Z.createContext(!1),Lye=()=>Z.useContext(Nye);function Iye(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const $ye=Z.createContext(Iye()),Fye=()=>Z.useContext($ye);function NE(e,t){return typeof e=="function"?e(...t):!!e}const zye=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},Bye=e=>{Z.useEffect(()=>{e.clearReset()},[e])},Wye=({result:e,errorResetBoundary:t,useErrorBoundary:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&NE(r,[e.error,n]),Hye=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.cacheTime=="number"&&(e.cacheTime=Math.max(e.cacheTime,1e3)))},jye=(e,t)=>e.isLoading&&e.isFetching&&!t,Vye=(e,t,r)=>(e==null?void 0:e.suspense)&&jye(t,r),Gye=(e,t,r)=>t.fetchOptimistic(e).then(({data:n})=>{e.onSuccess==null||e.onSuccess(n),e.onSettled==null||e.onSettled(n,null)}).catch(n=>{r.clearReset(),e.onError==null||e.onError(n),e.onSettled==null||e.onSettled(void 0,n)});function Uye(e,t){const r=DE({context:e.context}),n=Lye(),i=Fye(),a=r.defaultQueryOptions(e);a._optimisticResults=n?"isRestoring":"optimistic",a.onError&&(a.onError=Wt.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=Wt.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=Wt.batchCalls(a.onSettled)),Hye(a),zye(a,i),Bye(i);const[o]=Z.useState(()=>new t(r,a)),s=o.getOptimisticResult(a);if(RE(Z.useCallback(u=>{const c=n?()=>{}:o.subscribe(Wt.batchCalls(u));return o.updateResult(),c},[o,n]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),Z.useEffect(()=>{o.setOptions(a,{listeners:!1})},[a,o]),Vye(a,s,n))throw Gye(a,o,i);if(Wye({result:s,errorResetBoundary:i,useErrorBoundary:a.useErrorBoundary,query:o.getCurrentQuery()}))throw s.error;return a.notifyOnChangeProps?s:o.trackResult(s)}function LE(e,t,r){const n=Ts(e,t,r);return Uye(n,Eye)}const Um=()=>_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:_.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4309 12L6.28445 6.85355C6.08918 6.65829 6.08918 6.34171 6.28445 6.14645C6.47971 5.95118 6.79629 5.95118 6.99155 6.14645L12.138 11.2929L17.2844 6.14645C17.4797 5.95118 17.7963 5.95118 17.9916 6.14645C18.1868 6.34171 18.1868 6.65829 17.9916 6.85355L12.8451 12L17.9916 17.1464C18.1868 17.3417 18.1868 17.6583 17.9916 17.8536C17.7963 18.0488 17.4797 18.0488 17.2844 17.8536L12.138 12.7071L6.99155 17.8536C6.79629 18.0488 6.47971 18.0488 6.28445 17.8536C6.08918 17.6583 6.08918 17.3417 6.28445 17.1464L11.4309 12Z",fill:"#262E3D",fillOpacity:"0.67"})});function Yye(e){const t={};return{flatFilters:e.reduce((n,i)=>(I.isCascadingFilter(i)?(t[i.config.guid]||(t[i.config.guid]=[]),i.filters.forEach(a=>{t[i.config.guid].push(a),n.push(a)})):n.push(i),n),[]),cascadingToPureFiltersMap:t}}function IE(e,t,r){const n=t.filter(I.isCascadingFilter);return Xye(e,n).map(a=>{if(qye(a)){const o=n.find(u=>u.config.guid===a.groupId);if(!o)throw new I.TranslatableError("errors.cascadingFilterOriginalNotFound");const s=r==null?void 0:r.shouldResetFiltersDeeperThanModified;return Zye(a,o,{shouldResetFiltersDeeperThanModified:s})}return a})}function qye(e){return"groupId"in e}function Xye(e,t){const r=[];return e.forEach(n=>{const i=t.find(a=>a.filters.some(o=>I.getFilterCompareId(o)===I.getFilterCompareId(n)));if(i){const a=i.config.guid,o=r.find(s=>"groupId"in s&&s.groupId===a);o?o.filters.push(n):r.push({groupId:a,filters:[n],previousFilters:i.filters})}else r.push(n)}),r}function Zye(e,t,r){const n=r!=null&&r.shouldResetFiltersDeeperThanModified?Jye(e.filters,e.previousFilters):e.filters,i=Kye(n,t.config.disabled);return I.cascading(n,{guid:t.config.guid,disabled:i})}function Kye(e,t){return e.some(n=>n.config.disabled!==t)?!t:t}function Qye(e,t,r){const{flatFilters:n,cascadingToPureFiltersMap:i}=Yye(e);return{pureFilters:n,updateFilters:o=>{const s=IE(o,e,{shouldResetFiltersDeeperThanModified:!0});t(s)},pureFiltersIgnoringRules:e1e(r,i)}}function Jye(e,t){const r=e.reduce((n,i,a)=>{const o=t.find(s=>Qg(s,i));return o&&!iE(i,o)?a:n},-1);return r===-1?e:e.map((n,i)=>i>r?Qd(n):n)}function e1e(e,t){var r;return{all:e.all,ids:((r=e.ids)==null?void 0:r.reduce((n,i)=>{const a=t[i];return a?n.concat(a.map(o=>o.config.guid)):n.concat(i)},[]))||[]}}const t1e=Ke.button`
693
+ color: ${({theme:e})=>{var t;return(t=e.chart)==null?void 0:t.textColor}};
694
+ background: none;
695
+ font-size: 13px;
696
+ border: none;
697
+ height: 26px;
698
+ padding: 0 6px 0 2px;
699
+ margin: 0 4px 0 4px;
700
+ border-radius: 4px;
701
+ cursor: pointer;
702
+ display: flex;
703
+ align-items: center;
704
+ justify-content: center;
705
+ &:hover {
706
+ background-color: rgba(247, 247, 247, 1);
707
+ }
708
+ `,r1e=Ke.span`
709
+ color: ${({theme:e})=>{var t;return(t=e.chart)==null?void 0:t.textColor}};
710
+ display: inline-block;
711
+ padding-top: 3px;
712
+ white-space: nowrap;
713
+ `,n1e=({onClick:e})=>{var n;const{themeSettings:t}=it(),{t:r}=_.useTranslation();return _.jsxs(t1e,{onClick:e,theme:t,children:[_.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:_.jsx("path",{fill:(n=t.chart)==null?void 0:n.textColor,d:"M7.187 7l9.774 10.279A1 1 0 0 0 17 17V8a1 1 0 0 0-1-1H7.187zm9.018 10.979L6.206 7.463l.487-.415A1 1 0 0 0 6 8v9a1 1 0 0 0 1 1h9c.07 0 .139-.007.205-.021zM7 6h9a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z"})}),_.jsx(r1e,{theme:t,children:r("commonFilter.clearSelectionButton")})]})},A_={applyMode:Fl.HIGHLIGHT,shouldAffectFilters:!0,ignoreFilters:{all:!1,ids:[]},forceApplyBackgroundFilters:!0};function i1e(e,t){return e==="table"?{applyMode:Fl.FILTER,shouldAffectFilters:!1,ignoreFilters:_.merge(A_.ignoreFilters,t.ignoreFilters||{})}:_.merge(A_,t)}function a1e(e,t,r,n,i,a,o){const s={},u=i1e(r,i),{pureFilters:c,updateFilters:h,pureFiltersIgnoringRules:f}=Qye(e,t,u.ignoreFilters||{}),p=c.filter(E=>!E.config.disabled),g=hve(p,f),b=Jd(r,n),v=u.shouldAffectFilters&&b.length,[w,C]=s1e(g,b,u.applyMode),M=u.forceApplyBackgroundFilters?I.mergeFilters(o1e(c),w):w;if(s.filters=M,s.highlights=C,s.onDataPointsSelected=(E,S)=>{const P=[];if(v){const R=f_(r,n,E);R&&P.push(R);const N=ec(r,n,E),{filters:B,isSelection:U}=Af(N,c,!0),K=a(U?"commonFilter.selectMenuItem":"commonFilter.unselectMenuItem"),Q=p_(K,()=>{h(I.mergeFilters(c,B))});P.push(Q)}P.length&&(o==null||o({id:sl.WIDGET_POINTS_CROSSFILTERING,position:{left:S.clientX,top:S.clientY},itemSections:P}))},s.onDataPointContextMenu=(E,S)=>{const P=[];if(v){const R=f_(r,n,[E]);R&&P.push(R);const N=ec(r,n,[E]);if(!N.length)return;const{filters:B,isSelection:U}=Af(N,c,!0),K=a(U?"commonFilter.selectMenuItem":"commonFilter.unselectMenuItem"),Q=p_(K,()=>{h(I.mergeFilters(c,B))});P.push(Q)}P.length&&(o==null||o({id:sl.WIDGET_POINTS_CROSSFILTERING,position:{left:S.clientX,top:S.clientY},itemSections:P}))},v){s.onDataPointClick=R=>{const N=ec(r,n,[R]),{filters:B}=Af(N,c);h(I.mergeFilters(c,B))};const E=p.filter(R=>b==null?void 0:b.some(N=>I.isMembersFilter(R)&&kr(R.attribute,N)&&!Kg(R)&&!R.config.locked)),S=!!E.length,P=()=>{const R=E.map(Qd);h(I.mergeFilters(c,R))};S&&(s.renderToolbar=(R,N)=>{const B=b.map(({expression:U})=>U).join(";");return _.jsxs("div",{style:{display:"flex"},children:[_.jsx(n1e,{onClick:P}),N]},B)})}return s}function o1e(e){return e.map(t=>{var r;return(r=t.config)==null?void 0:r.backgroundFilter}).filter(t=>!!t)}function s1e(e,t,r){if(r===Fl.HIGHLIGHT){const[n,i]=$l(e,o=>t.every(s=>!kr(s,o.attribute))),a=i.filter(o=>!Kg(o));return[n,a]}return[e,[]]}function l1e(e,t){const r=k.useRef(void 0),[n,i]=Zg(k.useMemo(()=>I.splitFiltersAndRelations(e),[e]),{onLocalStateChange:k.useCallback(g=>{const{filters:b,relations:v}=g;if(t){const w=I.combineFiltersAndRelations(b,v);I.isEqual(r.current,w)||(r.current=w,t(w))}},[t])}),{filters:a,relations:o}=n,s=k.useMemo(()=>I.combineFiltersAndRelations(a,o),[a,o]),u=k.useCallback(g=>{if(I.isFilterRelations(g)){const{filters:b,relations:v}=I.splitFiltersAndRelations(g);i({filters:b||[],relations:v||null})}else i({filters:g,relations:null})},[i]),c=k.useCallback(g=>{const b=I.mergeFilters(a,[g]);i({filters:b,relations:I.calculateNewRelations(a,o,b)})},[a,o,i]),h=k.useCallback(g=>{i({filters:g,relations:I.calculateNewRelations(a,o,g)})},[a,o,i]),f=k.useMemo(()=>a.some(g=>I.isCascadingFilter(g)),[a]),p=k.useCallback(g=>{if(!o)return g;const b=f?IE(g,a):g,v=I.calculateNewRelations(a,o,b,{shouldReplaceSameAttributeFilters:!0});return I.combineFiltersAndRelations(b,v)},[f,a,o]);return{regularFilters:a,addFilter:c,filtersOrFilterRelations:s,setFiltersOrFilterRelations:u,setFilters:h,applyRelationsToOtherFilters:p}}const u1e=({initialFilters:e=[],openMenu:t,onBeforeMenuOpen:r,onFiltersChange:n}={})=>{const{t:i}=_.useTranslation(),{filtersOrFilterRelations:a,regularFilters:o,addFilter:s,setFiltersOrFilterRelations:u,setFilters:c,applyRelationsToOtherFilters:h}=l1e(e,n),f=k.useCallback((p,g={})=>{if(_.isTextWidgetProps(p))return p;const b=_.getInternalWidgetType(p),v=p,w=I.cloneDeep(p),C=fve(p),M=a1e(o,c,b,C,g,i,t);return w.highlights=I.mergeFilters(M.highlights,v.highlights),w.onBeforeMenuOpen=r,w.filters=h(I.mergeFilters(M.filters,I.getFiltersArray(v.filters))),M.onDataPointClick&&_.registerDataPointClickHandler(w,M.onDataPointClick),M.onDataPointsSelected&&_.registerDataPointsSelectedHandler(w,M.onDataPointsSelected),M.onDataPointContextMenu&&_.registerDataPointContextMenuHandler(w,M.onDataPointContextMenu),M.renderToolbar&&_.registerRenderToolbarHandler(w,M.renderToolbar),w},[o,c,i,t,r,h]);return{filters:a,setFilters:u,addFilter:s,connectToWidgetProps:f}},c1e=e=>_.jsx("svg",$(T({width:"24",height:"24",viewBox:"15 15 18 18",fill:"none"},e),{children:_.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.5 15C28.1944 15 32 18.8056 32 23.5C32 28.1944 28.1944 32 23.5 32C18.8056 32 15 28.1944 15 23.5C15 18.8056 18.8056 15 23.5 15ZM23.5 27C22.9477 27 22.5 27.4477 22.5 28C22.5 28.5523 22.9477 29 23.5 29C24.0523 29 24.5 28.5523 24.5 28C24.5 27.4477 24.0523 27 23.5 27ZM23.5049 18C22.5019 18.0299 22 18.6804 22 19.9502C22 20.6869 22.1705 21.5976 22.5107 22.6816C22.6419 23.0885 22.7476 23.4147 22.8281 23.6602C22.9087 23.9057 22.9671 24.0742 23.0029 24.1641C23.1998 24.6966 23.379 24.9748 23.54 24.999C23.6893 25.017 23.8541 24.7503 24.0332 24.1992C24.1167 23.9418 24.194 23.687 24.2656 23.4355C24.3372 23.1842 24.4117 22.9329 24.4893 22.6816C24.8296 21.5616 25 20.6266 25 19.8779C25 18.6084 24.5016 17.9822 23.5049 18Z",fill:"currentColor"})})),d1e=e=>_.jsx("svg",$(T({width:"24",height:"24",viewBox:"15 20 18 18",fill:"none"},e),{children:_.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.5 20.5C28.1944 20.5 32 24.3056 32 29C32 33.6944 28.1944 37.5 23.5 37.5C18.8056 37.5 15 33.6944 15 29C15 24.3056 18.8056 20.5 23.5 20.5ZM26.707 25.793C26.3165 25.4024 25.6835 25.4024 25.293 25.793L23.5 27.5859L21.707 25.793C21.3165 25.4024 20.6835 25.4024 20.293 25.793C19.9024 26.1835 19.9024 26.8165 20.293 27.207L22.0859 29L20.293 30.793C19.9024 31.1835 19.9024 31.8165 20.293 32.207C20.6835 32.5976 21.3165 32.5976 21.707 32.207L23.5 30.4141L25.293 32.207C25.6835 32.5976 26.3165 32.5976 26.707 32.207C27.0976 31.8165 27.0976 31.1835 26.707 30.793L24.9141 29L26.707 27.207C27.0976 26.8165 27.0976 26.1835 26.707 25.793Z",fill:"currentColor"})})),h1e=6e4,f1e=85,p1e=100,m1e=(e,t)=>e===!0&&t==="sisense_managed";function g1e(e,t,r){const{initialBalance:n,balance:i}=e;if(n===0)return{initialBalance:n,currentBalance:i,usagePercentage:0,isWarning:!1,isExceeded:!0};const a=(n-i)/n*100,o=Math.min(Math.max(a,0),100);return{initialBalance:n,currentBalance:i,usagePercentage:o,isWarning:o>=t&&o<r,isExceeded:o>=r}}const $E=(e={})=>{var g,b;const{enabled:t,warningThreshold:r=f1e,exceededThreshold:n=p1e}=e,{app:i}=wt(),a=i==null?void 0:i.httpClient,o=(b=(g=i==null?void 0:i.settings)==null?void 0:g.serverFeatures)==null?void 0:b.aiAssistant,u=m1e(o==null?void 0:o.quotaNotification,o==null?void 0:o.featureModelType)&&(t!=null?t:!0),{data:c,isLoading:h,error:f}=LE({queryKey:["creditBalance"],queryFn:()=>Yt(exports,null,function*(){if(!a)throw new I.TranslatableError("errors.httpClientNotFound");const v=yield a.call(a.url+"api/v1/credits/get-balance",{method:"GET"});if(!v)throw new I.TranslatableError("ai.errors.failedToFetchCreditBalance");return v}),enabled:!!a&&u,refetchInterval:h1e}),p=k.useMemo(()=>c?g1e(c,r,n):null,[c,r,n]);return{enabled:u,quotaState:p,isLoading:h,error:f}},kf="csdk-quota-warning-dismissed";function v1e(){const[e,t]=k.useState(()=>{if(typeof window=="undefined")return!1;try{return sessionStorage.getItem(kf)==="true"}catch(n){return console.debug("[useQuotaWarningDismissed] sessionStorage.getItem failed:",n),!1}}),r=k.useCallback(n=>{if(t(n),typeof window!="undefined")try{n?sessionStorage.setItem(kf,"true"):sessionStorage.removeItem(kf)}catch(i){console.debug("[useQuotaWarningDismissed] sessionStorage setItem/removeItem failed:",i)}},[]);return[e,r]}const y1e="_alert_31zyt_1",b1e="_hasIcon_31zyt_18",_1e="_error_31zyt_22",w1e="_icon_31zyt_27",x1e="_warning_31zyt_38",C1e="_info_31zyt_54",T1e="_content_31zyt_77",M1e="_title_31zyt_83",S1e="_description_31zyt_89",E1e="_dismissButton_31zyt_95",Un={alert:y1e,hasIcon:b1e,error:_1e,icon:w1e,warning:x1e,info:C1e,content:T1e,title:M1e,description:S1e,dismissButton:E1e},R_=({variant:e="info",title:t,description:r,icon:n,dismissible:i=!1,onDismiss:a,dismissOnClick:o=!1,className:s=""})=>{const u=n||_.jsx(xS,{width:"16",height:"16"}),{themeSettings:c}=it(),h=c.general.backgroundColor,f=_.getDarkFactor(_.toColor(h))>.5,p=()=>{a==null||a()},g=C=>{(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),p())},b=o&&i&&a,v=_.jsxs(_.Fragment,{children:[_.jsx("div",{className:Un.icon,children:u}),_.jsxs("div",$(T({className:Un.content},b&&{role:"alert"}),{children:[t&&_.jsx("div",{className:Un.title,children:t}),r&&_.jsx("div",{className:Un.description,children:r})]})),i&&a&&(b?_.jsx("span",{className:Un.dismissButton,"aria-hidden":!0,children:_.jsx(Um,{})}):_.jsx("button",{type:"button",className:Un.dismissButton,onClick:C=>{C.stopPropagation(),p()},onKeyDown:g,"aria-label":"Dismiss alert",children:_.jsx(Um,{})}))]}),w={"data-dark-mode":f,"data-dismiss-on-click":b?"true":void 0,className:`${Un.alert} ${Un[e]} ${Un.hasIcon} ${s}`};return b?_.jsx("button",$(T({type:"button"},w),{onClick:p,onKeyDown:g,"aria-label":"Dismiss alert",children:v})):_.jsx("div",$(T({role:"alert"},w),{children:v}))},P1e="_container_1cvt1_1",A1e="_containerClickable_1cvt1_8",R1e="_bannerWrapper_1cvt1_12",hs={container:P1e,containerClickable:A1e,bannerWrapper:R1e};function O1e({className:e="",warningDismissed:t,onDismissWarning:r,enabled:n=!0,warningThreshold:i,exceededThreshold:a}={}){const{t:o}=_.useTranslation(),{enabled:s,quotaState:u,isLoading:c}=$E({enabled:n,warningThreshold:i,exceededThreshold:a}),[h,f]=v1e(),p=t!==void 0?t:h,g=()=>{r?(r(),t===void 0&&f(!0)):f(!0)};return!s||c||!u?null:u.isExceeded?_.jsx("div",{className:`${hs.container} ${e}`,children:_.jsx("div",{className:hs.bannerWrapper,"data-variant":"error",children:_.jsx(R_,{variant:"error",icon:_.jsx(d1e,{width:"16",height:"16"}),title:o("ai.quota.exceededErrorTitle"),description:o("ai.quota.exceededErrorDescription"),dismissible:!1})})}):u.isWarning&&!p?_.jsx("div",{className:`${hs.container} ${hs.containerClickable} ${e}`,children:_.jsx("div",{className:hs.bannerWrapper,"data-variant":"warning",children:_.jsx(R_,{variant:"warning",icon:_.jsx(c1e,{width:"16",height:"16"}),description:o("ai.quota.warningDescription",{usagePercentage:Math.round(u.usagePercentage)}),dismissible:!0,dismissOnClick:!0,onDismiss:g})})}):null}exports.AlertIcon=xS;exports.ArrowIcon=Bp;exports.Backdrop=S0;exports.Button=ll;exports.ButtonBase=sa;exports.CONTEXT_MENU_SELECTED_WITH_DOT_CLASS=Zk;exports.Chart=mS;exports.ChartWidget=dye;exports.CloseIcon=Um;exports.ColorFormatType=GD;exports.CommonFiltersApplyMode=Fl;exports.ContextMenu=Rw;exports.DEFAULT_HYPERLINK_COLOR=y0;exports.DEFAULT_PIVOT_TABLE_SIZE=ww;exports.DEFAULT_TABLE_ROWS_PER_PAGE=uS;exports.DEFAULT_WIDGET_HEADER_HEIGHT=_w;exports.DatePeriod=Wx;exports.DoubleArrowIcon=Wp;exports.DrilldownBreadcrumbs=hE;exports.DynamicSizeContainer=rd;exports.EMPTY_PIVOT_QUERY_RESULT_DATA=vO;exports.ElementStates=Vw;exports.ErrorBoundary=Nm;exports.ErrorBoundary$1=Sw;exports.ErrorBoundaryBox=_0;exports.ExclamationMarkIcon=Mw;exports.Fade=M0;exports.I18nProvider=Cw;exports.IconButton=aa;exports.JaqlDataType=UD;exports.LEGACY_DESIGN_TYPES=vs;exports.List=C0;exports.ListContext=Hs;exports.LoadingDots=Lw;exports.LoadingOverlay=mi;exports.Menu=sd;exports.MenuButton=qS;exports.MenuIds=sl;exports.MenuItem=ad;exports.MenuList=T0;exports.MenuProvider=Ow;exports.MenuSectionIds=po;exports.Modal=E0;exports.ModalProvider=kw;exports.NoResultsOverlay=k0;exports.PAGES_BATCH_SIZE=cS;exports.PanelType=jD;exports.Paper=od;exports.PluginsPanelFields=qD;exports.PluginsTypesFields=YD;exports.Popover=R0;exports.Popper=kl;exports.PropTypes=y;exports.QueryClient=Sye;exports.QueryClientProvider=Dye;exports.QuotaNotification=O1e;exports.RestApi=q0;exports.RestApiNotReadyError=LH;exports.SisenseContext=o0;exports.SortingDirection=VD;exports.Subscribable=$o;exports.TableComponent=dS;exports.ThemeContext=b0;exports.ThemeProvider=Gw;exports.ThreeDotsIcon=YS;exports.Tooltip=Td;exports.Transition=sn;exports.Typography=Pr;exports.UserType=qw;exports.WidgetContainer=KS;exports.WidgetMenuButton=XS;exports.WidgetSpaceAround=nv;exports._extends=Fs;exports._typeof=bc;exports.alpha=Tt;exports.applyDrilldownDimensionToPivot=tE;exports.areFiltersEqual=bS;exports.asSisenseComponent=ml;exports.basePickBy=Yw;exports.baseUniq=sg;exports.boxWhiskerProcessResult=bq;exports.camelCase=FS;exports.capitalize=Le;exports.classNames=Qs;exports.clearMembersFilter=Qd;exports.cloneFilter=vS;exports.cloneFilterAndToggleDisabled=Kme;exports.clsx=ze;exports.composeClasses=Et;exports.convertToThemeSettings=Bw;exports.createCaseFirst=CS;exports.createChainedFunction=zf;exports.createFormatter=Bt;exports.createHeaderCellValueFormatter=CH;exports.createLevelAttribute=Zx;exports.createPanelColorFormat=KD;exports.createSimplePaletteValueFilter=wi;exports.createStyled=Z_;exports.createSvgIcon=yo;exports.createTheme=Jc;exports.createUnarySpacing=Uc;exports.createValueColorOptions=Xw;exports.createValueToColorMap=Zw;exports.createValueToColorMultiColumnsMap=QD;exports.css=Qc;exports.darken=Fc;exports.dataLoadStateReducer=wS;exports.debounce=d0e;exports.deepmerge=vr;exports.defaultDateConfig=Cl;exports.duration=lw;exports.elementAcceptingRef=oa;exports.elementTypeAcceptingRef=Wc;exports.exactProp=Qm;exports.extendSxProp=H_;exports.formatDateValue=Tl;exports.formatDatetimeString=Y0;exports.generateUtilityClass=ht;exports.generateUtilityClasses=ft;exports.getAvailableDrilldownPaths=kc;exports.getBaseDateFnsLocale=xl;exports.getChartDefaultSize=nd;exports.getDataOptionByLocation=JS;exports.getDataPointMetadata=Ge;exports.getDefaultDateMask=_H;exports.getDefaultOptions=H0;exports.getDefaultState=AE;exports.getDefaultThemeSettings=lc;exports.getDrilldownMenuItems=bE;exports.getHierarchyModels=_E;exports.getInitialDimensionLocation=eE;exports.getLegacyPalette=jw;exports.getListItemTextUtilityClass=YO;exports.getNonceFromMetaTag=Nw;exports.getNumberFormatConfig=Yx;exports.getPaletteName=Ww;exports.getPivotDataOptionByJaqlIndex=Ux;exports.getPivotDataOptionIdByJaqlIndex=wH;exports.getReactElementRef=vo;exports.getSelectedDrilldownAttributes=Dc;exports.getSelectionTitleMenuItem=yE;exports.getTableAttributesAndMeasures=pT;exports.getThemeSettingsByOid=Hw;exports.getTransitionProps=js;exports.getTranslatedDataOptions=nT;exports.getValue=go;exports.getWidgetDefaultSize=xw;exports.handleBreakpoints=Rn;exports.headerMenuUtils=oge;exports.isDrilldownApplicableToPivot=dve;exports.isFiltersChanged=yS;exports.isPropValid=j_;exports.isRelationsChanged=t0e;exports.isSameAttribute=kr;exports.isString=rg;exports.isThemeOid=Bu;exports.lighten=zc;exports.listItemTextClasses=Gf;exports.locale=$p;exports.memoTheme=kt;exports.mergeBreakpointsInOrder=CP;exports.notifyManager=Wt;exports.ownerDocument=Dr;exports.parseDataTableDateValue=tH;exports.parseMutationArgs=fye;exports.partition=$l;exports.processDrilldownSelections=mE;exports.refType=mo;exports.resolveBreakpointValues=MP;exports.resolveProps=Bs;exports.rootShouldForwardProp=pl;exports.shallowEqualObjects=Nc;exports.shouldSkipSisenseContextWaiting=pS;exports.shouldThrowError=NE;exports.startOfPeriod=eH;exports.startOfUTCWeek=Ip;exports.styled=Ke;exports.styled$1=De;exports.toDate=$r;exports.trackHook=r0e;exports.translatePivotTableDataOptions=QY;exports.translateTableDataOptions=VC;exports.typographyClasses=HO;exports.updateDrilldownSelections=pE;exports.upperFirst=TS;exports.useCommonFilters=u1e;exports.useControlled=qm;exports.useDefaultProps=_t;exports.useDrilldown=vE;exports.useDrilldownCore=fE;exports.useEnhancedEffect=on;exports.useEventCallback=Sn;exports.useForkRef=or;exports.useFormControl=jS;exports.useHasChanged=Xg;exports.useId=ed;exports.useMenu=rv;exports.useModalContext=ld;exports.usePrevious=fd;exports.useQuery=LE;exports.useQueryClient=DE;exports.useQuotaNotification=$E;exports.useRestApi=qx;exports.useSetError=lg;exports.useSisenseContext=wt;exports.useSlot=er;exports.useSyncExternalStore=RE;exports.useSyncedDrilldownPathsManager=wE;exports.useSyncedState=Zg;exports.useTheme=fl;exports.useTheme$1=Km;exports.useThemeContext=it;exports.useTimeout=ji;exports.useWidgetHeaderManagement=WS;exports.withErrorBoundary=Ew;exports.withHeaderMenuItem=BS;exports.withTracking=i0e;exports.withTracking$1=zw;