@sisense/sdk-ui 2.24.0 → 2.26.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 (173) hide show
  1. package/dist/ai.cjs +59 -59
  2. package/dist/ai.js +1097 -1171
  3. package/dist/analytics-composer/node.cjs +1 -1
  4. package/dist/analytics-composer/node.js +587 -616
  5. package/dist/analytics-composer.cjs +1 -1
  6. package/dist/analytics-composer.js +6 -6
  7. package/dist/{execute-query-b9oy2Egy.js → apply-styled-options-to-query-Bzt2GrgO.js} +1635 -1530
  8. package/dist/apply-styled-options-to-query-COD9fRYD.cjs +1 -0
  9. package/dist/{dimensions-C1R5YRt-.js → dimensions-Ce2zWFrs.js} +1 -1
  10. package/dist/dimensions-u3w5qNF0.cjs +1 -0
  11. package/dist/{index-Ck-0gJC9.cjs → index-BX9p-XrU.cjs} +1 -1
  12. package/dist/{index-r66Tjiqj.js → index-D7mHzfx0.js} +9 -0
  13. package/dist/index.cjs +467 -452
  14. package/dist/index.js +27214 -34168
  15. package/dist/index.umd.js +718 -706
  16. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/translate-dashboard-utils.d.ts +2 -0
  17. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/types.d.ts +12 -1
  18. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/persist-dashboard-model-middleware.d.ts +17 -5
  19. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/types.d.ts +16 -1
  20. package/dist/packages/sdk-ui/src/domains/dashboarding/dashboard-model/use-dashboard-model/dashboard-model-reducer/utils.d.ts +5 -2
  21. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/duplicate-widget/use-duplicate-widget-menu-item.d.ts +1 -1
  22. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/rename-widget/use-widget-renaming.d.ts +1 -1
  23. package/dist/packages/sdk-ui/src/domains/dashboarding/hooks/use-widget-scroll-persistence.d.ts +16 -0
  24. package/dist/packages/sdk-ui/src/domains/dashboarding/index.d.ts +2 -0
  25. package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/persistence-manager.d.ts +11 -0
  26. package/dist/packages/sdk-ui/src/domains/dashboarding/persistence/types.d.ts +52 -0
  27. package/dist/packages/sdk-ui/src/domains/dashboarding/types.d.ts +5 -28
  28. package/dist/packages/sdk-ui/src/domains/dashboarding/use-composed-dashboard.d.ts +6 -5
  29. package/dist/packages/sdk-ui/src/domains/data-browser/data-source-dimensional-model/hooks/use-get-data-source-dimensions.d.ts +10 -0
  30. package/dist/packages/sdk-ui/src/domains/data-browser/data-source-dimensional-model/hooks/use-get-data-source-fields.d.ts +2 -0
  31. package/dist/packages/sdk-ui/src/domains/drilldown/components/drilldown-widget/drilldown-widget.d.ts +2 -2
  32. package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-collapsible.d.ts +13 -0
  33. package/dist/packages/sdk-ui/src/domains/narrative/components/narrative-top-slot-shell.d.ts +21 -0
  34. package/dist/packages/sdk-ui/src/domains/narrative/components/widget-narrative-interactive.d.ts +11 -0
  35. package/dist/packages/sdk-ui/src/domains/narrative/components/widget-narrative.d.ts +40 -0
  36. package/dist/packages/sdk-ui/src/domains/narrative/core/build-narrative-request.d.ts +36 -0
  37. package/dist/packages/sdk-ui/src/domains/narrative/core/get-narrative-dimensions-and-measures.d.ts +22 -0
  38. package/dist/packages/sdk-ui/src/domains/narrative/core/widget-narrative-options.d.ts +29 -0
  39. package/dist/packages/sdk-ui/src/domains/narrative/core/widget-props-to-narrative-params.d.ts +36 -0
  40. package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-get-widget-narrative.d.ts +62 -0
  41. package/dist/packages/sdk-ui/src/domains/narrative/hooks/use-widget-narrative-state.d.ts +39 -0
  42. package/dist/packages/sdk-ui/src/domains/query-execution/core/date-formats/simple-date-format-replacers.d.ts +13 -0
  43. package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-pivot-query/use-execute-pivot-query.d.ts +2 -2
  44. package/dist/packages/sdk-ui/src/domains/query-execution/hooks/use-execute-query/use-execute-query.d.ts +2 -2
  45. package/dist/packages/sdk-ui/src/domains/visualizations/components/area-chart.d.ts +2 -2
  46. package/dist/packages/sdk-ui/src/domains/visualizations/components/areamap-chart.d.ts +2 -2
  47. package/dist/packages/sdk-ui/src/domains/visualizations/components/bar-chart.d.ts +2 -2
  48. package/dist/packages/sdk-ui/src/domains/visualizations/components/boxplot-chart/boxplot-chart.d.ts +2 -2
  49. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/chart.d.ts +2 -2
  50. package/dist/packages/sdk-ui/src/domains/visualizations/components/chart/restructured-charts/highchart-based-charts/cartesians/helpers/highchart-options/axis.d.ts +1 -1
  51. package/dist/packages/sdk-ui/src/domains/visualizations/components/column-chart.d.ts +2 -2
  52. package/dist/packages/sdk-ui/src/domains/visualizations/components/funnel-chart.d.ts +2 -2
  53. package/dist/packages/sdk-ui/src/domains/visualizations/components/line-chart.d.ts +2 -2
  54. package/dist/packages/sdk-ui/src/domains/visualizations/components/pie-chart/pie-chart.d.ts +2 -2
  55. package/dist/packages/sdk-ui/src/domains/visualizations/components/polar-chart.d.ts +2 -2
  56. package/dist/packages/sdk-ui/src/domains/visualizations/components/scatter-chart.d.ts +2 -2
  57. package/dist/packages/sdk-ui/src/domains/visualizations/components/scattermap-chart.d.ts +2 -2
  58. package/dist/packages/sdk-ui/src/domains/visualizations/components/sunburst-chart/sunburst-chart.d.ts +2 -2
  59. package/dist/packages/sdk-ui/src/domains/visualizations/components/table/table.d.ts +2 -2
  60. package/dist/packages/sdk-ui/src/domains/visualizations/components/treemap-chart/treemap-chart.d.ts +2 -2
  61. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/apply-styled-options-to-query.d.ts +87 -0
  62. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/translate-data-options.d.ts +13 -1
  63. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-data-options/types.d.ts +6 -6
  64. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/cartesian/utils/axis/axis-builders.d.ts +6 -1
  65. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/plot-bands.d.ts +2 -1
  66. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/axis-section.d.ts +29 -1
  67. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/design-options.d.ts +1 -0
  68. package/dist/packages/sdk-ui/src/domains/visualizations/core/chart-options-processor/translations/tooltip-utils.d.ts +1 -1
  69. package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/compose-code-to-readable.d.ts +32 -0
  70. package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/index.d.ts +9 -0
  71. package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-definition.d.ts +26 -0
  72. package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-params-to-view-model.d.ts +16 -0
  73. package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-pill-bubble-tooltip.d.ts +12 -0
  74. package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/query-pill.d.ts +18 -0
  75. package/dist/packages/sdk-ui/src/domains/visualizations/core/query-definition/types.d.ts +51 -0
  76. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/translate-widget-style-options/to-widget-dto-style.d.ts +166 -2
  77. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/types.d.ts +18 -0
  78. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/use-scroller-location-save.d.ts +8 -0
  79. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/utils.d.ts +9 -0
  80. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/widget-by-id.d.ts +2 -2
  81. package/dist/packages/sdk-ui/src/domains/widgets/components/widget-by-id/with-navigator-scroll-save.d.ts +10 -0
  82. package/dist/packages/sdk-ui/src/domains/widgets/widget-model/use-get-widget-model.d.ts +2 -2
  83. package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model-translator/to-widget-dto-panels.d.ts +170 -0
  84. package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model-translator/utils.d.ts +9 -0
  85. package/dist/packages/sdk-ui/src/domains/widgets/widget-model/widget-model-translator/widget-model-translator.d.ts +13 -16
  86. package/dist/packages/sdk-ui/src/infra/api/narrative/narrative-api-types.d.ts +32 -0
  87. package/dist/packages/sdk-ui/src/infra/api/narrative/narrative-constants.d.ts +6 -0
  88. package/dist/packages/sdk-ui/src/infra/api/narrative/narrative-endpoints.d.ts +26 -0
  89. package/dist/packages/sdk-ui/src/infra/api/narrative/send-ai-feedback.d.ts +8 -0
  90. package/dist/packages/sdk-ui/src/infra/api/rest-api.d.ts +12 -1
  91. package/dist/packages/sdk-ui/src/infra/app/settings/settings.d.ts +10 -2
  92. package/dist/packages/sdk-ui/src/infra/contexts/custom-widgets-provider/use-custom-widgets.d.ts +10 -3
  93. package/dist/packages/sdk-ui/src/infra/contexts/emotion-cache-provider/emotion-cache-provider.d.ts +31 -3
  94. package/dist/packages/sdk-ui/src/infra/contexts/emotion-cache-provider/stylis-plugins/css-selector-prefix-plugin.d.ts +18 -0
  95. package/dist/packages/sdk-ui/src/infra/plugins/plugin-context.d.ts +2 -2
  96. package/dist/packages/sdk-ui/src/infra/plugins/types.d.ts +2 -2
  97. package/dist/packages/sdk-ui/src/infra/plugins/widget-plugins/types.d.ts +9 -0
  98. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/de-de.d.ts +9 -0
  99. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/en-us.d.ts +9 -0
  100. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-ar.d.ts +9 -0
  101. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/es-es.d.ts +9 -0
  102. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/fr-fr.d.ts +9 -0
  103. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/it-it.d.ts +9 -0
  104. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ja-jp.d.ts +9 -0
  105. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ko-kr.d.ts +9 -0
  106. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/nl-nl.d.ts +9 -0
  107. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/pt-br.d.ts +9 -0
  108. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/ru-ru.d.ts +9 -0
  109. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/tr-tr.d.ts +9 -0
  110. package/dist/packages/sdk-ui/src/infra/translation/resources/__external__/zh-cn.d.ts +9 -0
  111. package/dist/packages/sdk-ui/src/infra/translation/resources/en.d.ts +9 -0
  112. package/dist/packages/sdk-ui/src/infra/translation/resources/index.d.ts +18 -0
  113. package/dist/packages/sdk-ui/src/modules/ai/api/chat-rest-api.d.ts +3 -4
  114. package/dist/packages/sdk-ui/src/modules/ai/api/types.d.ts +5 -18
  115. package/dist/packages/sdk-ui/src/modules/ai/chart/nlq-chart-widget.d.ts +2 -0
  116. package/dist/packages/sdk-ui/src/modules/ai/common/collapsible.d.ts +3 -0
  117. package/dist/packages/sdk-ui/src/modules/ai/get-nlg-insights-from-widget.d.ts +5 -13
  118. package/dist/packages/sdk-ui/src/modules/ai/index.d.ts +2 -1
  119. package/dist/packages/sdk-ui/src/modules/ai/use-get-nlg-insights.d.ts +4 -26
  120. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/types.d.ts +3 -7
  121. package/dist/packages/sdk-ui/src/props.d.ts +1 -1
  122. package/dist/packages/sdk-ui/src/public-api/internal.d.ts +1 -1
  123. package/dist/packages/sdk-ui/src/public-api/sisense-internal.d.ts +7 -1
  124. package/dist/packages/sdk-ui/src/shared/utils/filter-relations.d.ts +2 -0
  125. package/dist/packages/sdk-ui/src/types.d.ts +8 -8
  126. package/dist/translations/de-de.cjs +1 -1
  127. package/dist/translations/de-de.js +10 -1
  128. package/dist/translations/en-us.cjs +1 -1
  129. package/dist/translations/en-us.js +1 -1
  130. package/dist/translations/es-ar.cjs +1 -1
  131. package/dist/translations/es-ar.js +10 -1
  132. package/dist/translations/es-es.cjs +1 -1
  133. package/dist/translations/es-es.js +10 -1
  134. package/dist/translations/fr-fr.cjs +1 -1
  135. package/dist/translations/fr-fr.js +10 -1
  136. package/dist/translations/it-it.cjs +1 -1
  137. package/dist/translations/it-it.js +12 -3
  138. package/dist/translations/ja-jp.cjs +1 -1
  139. package/dist/translations/ja-jp.js +12 -3
  140. package/dist/translations/ko-kr.cjs +1 -1
  141. package/dist/translations/ko-kr.js +12 -3
  142. package/dist/translations/nl-nl.cjs +1 -1
  143. package/dist/translations/nl-nl.js +12 -3
  144. package/dist/translations/pt-br.cjs +1 -1
  145. package/dist/translations/pt-br.js +10 -1
  146. package/dist/translations/ru-ru.cjs +1 -1
  147. package/dist/translations/ru-ru.js +12 -3
  148. package/dist/translations/tr-tr.cjs +1 -1
  149. package/dist/translations/tr-tr.js +10 -1
  150. package/dist/translations/zh-cn.cjs +1 -1
  151. package/dist/translations/zh-cn.js +12 -3
  152. package/dist/types-COBvZZm_.cjs +1 -0
  153. package/dist/{types-DJtC8_5_.js → types-D6jCGncV.js} +1 -1
  154. package/dist/{quota-notification-CeKnEyQG.js → use-hover-B1HPf4hF.js} +27827 -19390
  155. package/dist/use-hover-CaQrW_gv.cjs +721 -0
  156. package/dist/{utils-BCp2ISWh.js → utils-BQtueE3Z.js} +13632 -13251
  157. package/dist/utils-CAubp1g1.cjs +179 -0
  158. package/dist/{widget-composer-CDNL9_XF.js → widget-composer-BAJFWk3t.js} +3 -3
  159. package/dist/{widget-composer-BkHZISs7.cjs → widget-composer-C75b-E6W.cjs} +1 -1
  160. package/package.json +11 -10
  161. package/dist/dimensions-C7yXAoZs.cjs +0 -1
  162. package/dist/execute-query-0Y9Fn9Pf.cjs +0 -1
  163. package/dist/packages/sdk-ui/src/domains/widgets/components/table-widget/index.d.ts +0 -2
  164. package/dist/packages/sdk-ui/src/domains/widgets/components/table-widget/table-widget.d.ts +0 -22
  165. package/dist/packages/sdk-ui/src/domains/widgets/components/table-widget/types.d.ts +0 -61
  166. package/dist/packages/sdk-ui/src/infra/styled/index.d.ts +0 -4
  167. package/dist/packages/sdk-ui/src/infra/styled/with-css-selector-prefix.d.ts +0 -2
  168. package/dist/packages/sdk-ui/src/modules/ai/api/narration-endpoints.d.ts +0 -25
  169. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/query/constants.d.ts +0 -8
  170. package/dist/packages/sdk-ui/src/modules/analytics-composer/nlq-v3-translator/shared/utils/parse-compose-code.d.ts +0 -34
  171. package/dist/quota-notification-BqRYSJ7r.cjs +0 -713
  172. package/dist/types-C0QU2tsE.cjs +0 -1
  173. package/dist/utils-D8O1_kl3.cjs +0 -190
@@ -0,0 +1,721 @@
1
+ "use strict";var pD=Object.defineProperty,mD=Object.defineProperties;var gD=Object.getOwnPropertyDescriptors;var Mc=Object.getOwnPropertySymbols;var r_=Object.prototype.hasOwnProperty,n_=Object.prototype.propertyIsEnumerable;var Bn=Math.pow,kp=(e,t,r)=>t in e?pD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M=(e,t)=>{for(var r in t||(t={}))r_.call(t,r)&&kp(e,r,t[r]);if(Mc)for(var r of Mc(t))n_.call(t,r)&&kp(e,r,t[r]);return e},B=(e,t)=>mD(e,gD(t));var Ac=e=>typeof e=="symbol"?e:e+"",xe=(e,t)=>{var r={};for(var n in e)r_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Mc)for(var n of Mc(e))t.indexOf(n)<0&&n_.call(e,n)&&(r[n]=e[n]);return r};var tt=(e,t,r)=>kp(e,typeof t!="symbol"?t+"":t,r);var Vt=(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 w=require("./utils-CAubp1g1.cjs"),k=require("react"),N=require("./apply-styled-options-to-query-COD9fRYD.cjs"),fe=require("react/jsx-runtime"),Xr=require("react-dom");function mT(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 Q=mT(k),vD=mT(Xr);function Hl(){return Hl=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},Hl.apply(this,arguments)}function yD(e){let{i18n:t,defaultNS:r,children:n}=e;const i=k.useMemo(()=>({i18n:t,defaultNS:r}),[t,r]);return k.createElement(w.I18nContext.Provider,{value:i},n)}function ja(e,t){if(typeof e!="string")throw new Error("URL must be a string");if(!e.trim())throw new Error("URL cannot be empty");try{const r=new URL(e);return r.origin+(r.pathname.endsWith("/")?r.pathname:r.pathname+"/")+(t&&r.search?r.search:"")}catch(r){throw new Error(`Connection string ${e} is not a valid URL`)}}function i_(e,t){if(!e)throw new Error("Base URL is required");let r;try{r=new URL(e)}catch(u){throw new Error("Base URL is not valid")}if(!t||t==="/")return r.toString();try{return new URL(t).toString()}catch(u){}const n=new URL(r.toString()),[i="",a=""]=t.split(/\?(.+)/),o=r.pathname.replace(/\/$/,""),s=i.replace(/^\/+/,"").replace(/\/+$/,"").replace(/\/+/g,"/");if(n.pathname=s?`${o}/${s}`:o,a){const u=new URLSearchParams(a);for(const[c,d]of u.entries())n.searchParams.set(c,d)}return ja(n.toString(),!0)}var Vm={exports:{}},nt={};/** @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 a_;function bD(){if(a_)return nt;a_=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,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function E(A){if(typeof A=="object"&&A!==null){var R=A.$$typeof;switch(R){case t:switch(A=A.type,A){case u:case c:case n:case a:case i:case h:return A;default:switch(A=A&&A.$$typeof,A){case s:case d:case v:case m:case o:return A;default:return R}}case r:return R}}}function T(A){return E(A)===c}return nt.AsyncMode=u,nt.ConcurrentMode=c,nt.ContextConsumer=s,nt.ContextProvider=o,nt.Element=t,nt.ForwardRef=d,nt.Fragment=n,nt.Lazy=v,nt.Memo=m,nt.Portal=r,nt.Profiler=a,nt.StrictMode=i,nt.Suspense=h,nt.isAsyncMode=function(A){return T(A)||E(A)===u},nt.isConcurrentMode=T,nt.isContextConsumer=function(A){return E(A)===s},nt.isContextProvider=function(A){return E(A)===o},nt.isElement=function(A){return typeof A=="object"&&A!==null&&A.$$typeof===t},nt.isForwardRef=function(A){return E(A)===d},nt.isFragment=function(A){return E(A)===n},nt.isLazy=function(A){return E(A)===v},nt.isMemo=function(A){return E(A)===m},nt.isPortal=function(A){return E(A)===r},nt.isProfiler=function(A){return E(A)===a},nt.isStrictMode=function(A){return E(A)===i},nt.isSuspense=function(A){return E(A)===h},nt.isValidElementType=function(A){return typeof A=="string"||typeof A=="function"||A===n||A===c||A===a||A===i||A===h||A===p||typeof A=="object"&&A!==null&&(A.$$typeof===v||A.$$typeof===m||A.$$typeof===o||A.$$typeof===s||A.$$typeof===d||A.$$typeof===b||A.$$typeof===C||A.$$typeof===x||A.$$typeof===g)},nt.typeOf=E,nt}var it={};/** @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 o_;function _D(){return o_||(o_=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,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,x=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===h||J===p||typeof J=="object"&&J!==null&&(J.$$typeof===v||J.$$typeof===m||J.$$typeof===o||J.$$typeof===s||J.$$typeof===d||J.$$typeof===b||J.$$typeof===C||J.$$typeof===x||J.$$typeof===g)}function T(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 h:return ve;default:var Ae=ve&&ve.$$typeof;switch(Ae){case s:case d:case v:case m:case o:return Ae;default:return _e}}case r:return _e}}}var A=u,R=c,D=s,I=o,H=t,G=d,q=n,O=v,$=m,X=r,j=a,V=i,z=h,Y=!1;function re(J){return Y||(Y=!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.")),W(J)||T(J)===u}function W(J){return T(J)===c}function K(J){return T(J)===s}function ie(J){return T(J)===o}function ne(J){return typeof J=="object"&&J!==null&&J.$$typeof===t}function te(J){return T(J)===d}function oe(J){return T(J)===n}function se(J){return T(J)===v}function de(J){return T(J)===m}function ce(J){return T(J)===r}function ge(J){return T(J)===a}function Se(J){return T(J)===i}function ye(J){return T(J)===h}it.AsyncMode=A,it.ConcurrentMode=R,it.ContextConsumer=D,it.ContextProvider=I,it.Element=H,it.ForwardRef=G,it.Fragment=q,it.Lazy=O,it.Memo=$,it.Portal=X,it.Profiler=j,it.StrictMode=V,it.Suspense=z,it.isAsyncMode=re,it.isConcurrentMode=W,it.isContextConsumer=K,it.isContextProvider=ie,it.isElement=ne,it.isForwardRef=te,it.isFragment=oe,it.isLazy=se,it.isMemo=de,it.isPortal=ce,it.isProfiler=ge,it.isStrictMode=Se,it.isSuspense=ye,it.isValidElementType=E,it.typeOf=T}()),it}process.env.NODE_ENV==="production"?Vm.exports=bD():Vm.exports=_D();var gT=Vm.exports,Gm={exports:{}};/*
16
+ object-assign
17
+ (c) Sindre Sorhus
18
+ @license MIT
19
+ */var Dp,s_;function wD(){if(s_)return Dp;s_=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(d){return o[d]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch(d){return!1}}return Dp=i()?Object.assign:function(a,o){for(var s,u=n(a),c,d=1;d<arguments.length;d++){s=Object(arguments[d]);for(var h in s)t.call(s,h)&&(u[h]=s[h]);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},Dp}var Np,l_;function Cv(){if(l_)return Np;l_=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Np=e,Np}var Ip,u_;function vT(){return u_||(u_=1,Ip=Function.call.bind(Object.prototype.hasOwnProperty)),Ip}var Lp,c_;function CD(){if(c_)return Lp;c_=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Cv(),r={},n=vT();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 d in a)if(n(a,d)){var h;try{if(typeof a[d]!="function"){var p=Error((u||"React class")+": "+s+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}h=a[d](o,d,u,s,null,t)}catch(v){h=v}if(h&&!(h instanceof Error)&&e((u||"React class")+": type specification of "+s+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r)){r[h.message]=!0;var m=c?c():"";e("Failed "+s+" type: "+h.message+(m!=null?m:""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Lp=i,Lp}var Fp,d_;function xD(){if(d_)return Fp;d_=1;var e=gT,t=wD(),r=Cv(),n=vT(),i=CD(),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 Fp=function(s,u){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function h(W){var K=W&&(c&&W[c]||W[d]);if(typeof K=="function")return K}var p="<<anonymous>>",m={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:x(),arrayOf:E,element:T(),elementType:A(),instanceOf:R,node:G(),objectOf:I,oneOf:D,oneOfType:H,shape:O,exact:$};function v(W,K){return W===K?W!==0||1/W===1/K:W!==W&&K!==K}function g(W,K){this.message=W,this.data=K&&typeof K=="object"?K:{},this.stack=""}g.prototype=Error.prototype;function b(W){if(process.env.NODE_ENV!=="production")var K={},ie=0;function ne(oe,se,de,ce,ge,Se,ye){if(ce=ce||p,Se=Se||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;!K[_e]&&ie<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Se+"` 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."),K[_e]=!0,ie++)}}return se[de]==null?oe?se[de]===null?new g("The "+ge+" `"+Se+"` is marked as required "+("in `"+ce+"`, but its value is `null`.")):new g("The "+ge+" `"+Se+"` is marked as required in "+("`"+ce+"`, but its value is `undefined`.")):null:W(se,de,ce,ge,Se)}var te=ne.bind(null,!1);return te.isRequired=ne.bind(null,!0),te}function C(W){function K(ie,ne,te,oe,se,de){var ce=ie[ne],ge=V(ce);if(ge!==W){var Se=z(ce);return new g("Invalid "+oe+" `"+se+"` of type "+("`"+Se+"` supplied to `"+te+"`, expected ")+("`"+W+"`."),{expectedType:W})}return null}return b(K)}function x(){return b(o)}function E(W){function K(ie,ne,te,oe,se){if(typeof W!="function")return new g("Property `"+se+"` of component `"+te+"` has invalid PropType notation inside arrayOf.");var de=ie[ne];if(!Array.isArray(de)){var ce=V(de);return new g("Invalid "+oe+" `"+se+"` of type "+("`"+ce+"` supplied to `"+te+"`, expected an array."))}for(var ge=0;ge<de.length;ge++){var Se=W(de,ge,te,oe,se+"["+ge+"]",r);if(Se instanceof Error)return Se}return null}return b(K)}function T(){function W(K,ie,ne,te,oe){var se=K[ie];if(!s(se)){var de=V(se);return new g("Invalid "+te+" `"+oe+"` of type "+("`"+de+"` supplied to `"+ne+"`, expected a single ReactElement."))}return null}return b(W)}function A(){function W(K,ie,ne,te,oe){var se=K[ie];if(!e.isValidElementType(se)){var de=V(se);return new g("Invalid "+te+" `"+oe+"` of type "+("`"+de+"` supplied to `"+ne+"`, expected a single ReactElement type."))}return null}return b(W)}function R(W){function K(ie,ne,te,oe,se){if(!(ie[ne]instanceof W)){var de=W.name||p,ce=re(ie[ne]);return new g("Invalid "+oe+" `"+se+"` of type "+("`"+ce+"` supplied to `"+te+"`, expected ")+("instance of `"+de+"`."))}return null}return b(K)}function D(W){if(!Array.isArray(W))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 K(ie,ne,te,oe,se){for(var de=ie[ne],ce=0;ce<W.length;ce++)if(v(de,W[ce]))return null;var ge=JSON.stringify(W,function(ye,J){var _e=z(J);return _e==="symbol"?String(J):J});return new g("Invalid "+oe+" `"+se+"` of value `"+String(de)+"` "+("supplied to `"+te+"`, expected one of "+ge+"."))}return b(K)}function I(W){function K(ie,ne,te,oe,se){if(typeof W!="function")return new g("Property `"+se+"` of component `"+te+"` has invalid PropType notation inside objectOf.");var de=ie[ne],ce=V(de);if(ce!=="object")return new g("Invalid "+oe+" `"+se+"` of type "+("`"+ce+"` supplied to `"+te+"`, expected an object."));for(var ge in de)if(n(de,ge)){var Se=W(de,ge,te,oe,se+"."+ge,r);if(Se instanceof Error)return Se}return null}return b(K)}function H(W){if(!Array.isArray(W))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var K=0;K<W.length;K++){var ie=W[K];if(typeof ie!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(ie)+" at index "+K+"."),o}function ne(te,oe,se,de,ce){for(var ge=[],Se=0;Se<W.length;Se++){var ye=W[Se],J=ye(te,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 g("Invalid "+de+" `"+ce+"` supplied to "+("`"+se+"`"+_e+"."))}return b(ne)}function G(){function W(K,ie,ne,te,oe){return X(K[ie])?null:new g("Invalid "+te+" `"+oe+"` supplied to "+("`"+ne+"`, expected a ReactNode."))}return b(W)}function q(W,K,ie,ne,te){return new g((W||"React class")+": "+K+" type `"+ie+"."+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+te+"`.")}function O(W){function K(ie,ne,te,oe,se){var de=ie[ne],ce=V(de);if(ce!=="object")return new g("Invalid "+oe+" `"+se+"` of type `"+ce+"` "+("supplied to `"+te+"`, expected `object`."));for(var ge in W){var Se=W[ge];if(typeof Se!="function")return q(te,oe,se,ge,z(Se));var ye=Se(de,ge,te,oe,se+"."+ge,r);if(ye)return ye}return null}return b(K)}function $(W){function K(ie,ne,te,oe,se){var de=ie[ne],ce=V(de);if(ce!=="object")return new g("Invalid "+oe+" `"+se+"` of type `"+ce+"` "+("supplied to `"+te+"`, expected `object`."));var ge=t({},ie[ne],W);for(var Se in ge){var ye=W[Se];if(n(W,Se)&&typeof ye!="function")return q(te,oe,se,Se,z(ye));if(!ye)return new g("Invalid "+oe+" `"+se+"` key `"+Se+"` supplied to `"+te+"`.\nBad object: "+JSON.stringify(ie[ne],null," ")+`
20
+ Valid keys: `+JSON.stringify(Object.keys(W),null," "));var J=ye(de,Se,te,oe,se+"."+Se,r);if(J)return J}return null}return b(K)}function X(W){switch(typeof W){case"number":case"string":case"undefined":return!0;case"boolean":return!W;case"object":if(Array.isArray(W))return W.every(X);if(W===null||s(W))return!0;var K=h(W);if(K){var ie=K.call(W),ne;if(K!==W.entries){for(;!(ne=ie.next()).done;)if(!X(ne.value))return!1}else for(;!(ne=ie.next()).done;){var te=ne.value;if(te&&!X(te[1]))return!1}}else return!1;return!0;default:return!1}}function j(W,K){return W==="symbol"?!0:K?K["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&K instanceof Symbol:!1}function V(W){var K=typeof W;return Array.isArray(W)?"array":W instanceof RegExp?"object":j(K,W)?"symbol":K}function z(W){if(typeof W=="undefined"||W===null)return""+W;var K=V(W);if(K==="object"){if(W instanceof Date)return"date";if(W instanceof RegExp)return"regexp"}return K}function Y(W){var K=z(W);switch(K){case"array":case"object":return"an "+K;case"boolean":case"date":case"regexp":return"a "+K;default:return K}}function re(W){return!W.constructor||!W.constructor.name?p:W.constructor.name}return m.checkPropTypes=i,m.resetWarningCache=i.resetWarningCache,m.PropTypes=m,m},Fp}var $p,h_;function TD(){if(h_)return $p;h_=1;var e=Cv();function t(){}function r(){}return r.resetWarningCache=t,$p=function(){function n(o,s,u,c,d,h){if(h!==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},$p}if(process.env.NODE_ENV!=="production"){var SD=gT,ED=!0;Gm.exports=xD()(SD.isElement,ED)}else Gm.exports=TD()();var MD=Gm.exports;const _=w.getDefaultExportFromCjs(MD);function yT(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=yT(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function je(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=yT(e))&&(n&&(n+=" "),n+=t);return n}function Dt(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 AD(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 bT(e,t,r,n){const i=e[t];if(i==null||!Number.isInteger(i)){const a=AD(i);return new RangeError(`Invalid ${n} \`${t}\` of type \`${a}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function _T(e,t,...r){return e[t]===void 0?null:bT(e,t,...r)}function qm(){return null}_T.isRequired=bT;qm.isRequired=qm;const Vn=process.env.NODE_ENV==="production"?qm:_T,f_=e=>e,PD=()=>{let e=f_;return{configure(t){e=t},generate(t){return e(t)},reset(){e=f_}}},RD=PD(),OD={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 yt(e,t,r="Mui"){const n=OD[t];return n?`${r}-${n}`:`${RD.generate(e)}-${t}`}function bt(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=yt(e,i,r)}),n}function kD(e){return yt("MuiPagination",e)}bt("MuiPagination",["root","ul","outlined","text"]);function xv({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=Q.useRef(e!==void 0),[a,o]=Q.useState(t),s=i?e:a;if(process.env.NODE_ENV!=="production"){Q.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}=Q.useRef(t);Q.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=Q.useCallback(c=>{i||o(c)},[]);return[s,u]}function DD(e={}){const H=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:d=!1,showLastButton:h=!1,siblingCount:p=1}=H,m=xe(H,["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"]),[v,g]=xv({controlled:c,default:i,name:r,state:"page"}),b=(G,q)=>{c||g(q),u&&u(G,q)},C=(G,q)=>{const O=q-G+1;return Array.from({length:O},($,X)=>G+X)},x=C(1,Math.min(t,n)),E=C(Math.max(n-t+1,t+1),n),T=Math.max(Math.min(v-p,n-t-p*2-1),t+2),A=Math.min(Math.max(v+p,t+p*2+2),n-t-1),R=[...d?["first"]:[],...s?[]:["previous"],...x,...T>t+2?["start-ellipsis"]:t+1<n-t?[t+1]:[],...C(T,A),...A<n-t-1?["end-ellipsis"]:n-t>t?[n-t]:[],...E,...o?[]:["next"],...h?["last"]:[]],D=G=>{switch(G){case"first":return 1;case"previous":return v-1;case"next":return v+1;case"last":return n;default:return null}},I=R.map(G=>typeof G=="number"?{onClick:q=>{b(q,G)},type:"page",page:G,selected:G===v,disabled:a,"aria-current":G===v?"page":void 0}:{onClick:q=>{b(q,D(G))},type:G,page:D(G),selected:!1,disabled:a||!G.includes("ellipsis")&&(G==="next"||G==="last"?v>=n:v<=1)});return M({items:I},m)}function xi(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 ND(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Tv(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}].`),ND(e,t,r)}function ID(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 Ji(e){if(e.type)return e;if(e.charAt(0)==="#")return Ji(ID(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().`:xi(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.`:xi(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}const LD=e=>{const t=Ji(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},pl=(e,t)=>{try{return LD(e)}catch(r){return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function mh(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 wT(e){e=Ji(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,d=(c+r/30)%12)=>i-a*Math.max(Math.min(d-3,9-d,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])),mh({type:s,values:u})}function Ym(e){e=Ji(e);let t=e.type==="hsl"||e.type==="hsla"?Ji(wT(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:Bn((r+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function p_(e,t){const r=Ym(e),n=Ym(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Rt(e,t){return e=Ji(e),t=Tv(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,mh(e)}function Pc(e,t,r){try{return Rt(e,t)}catch(n){return e}}function gh(e,t){if(e=Ji(e),t=Tv(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 mh(e)}function gt(e,t,r){try{return gh(e,t)}catch(n){return e}}function vh(e,t){if(e=Ji(e),t=Tv(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 mh(e)}function vt(e,t,r){try{return vh(e,t)}catch(n){return e}}function Xm(e,t=.15){return Ym(e)>.5?gh(e,t):vh(e,t)}function Rc(e,t,r){try{return Xm(e,t)}catch(n){return e}}const FD=Q.createContext(),yh=()=>{const e=Q.useContext(FD);return e!=null?e:!1};function $D(e){return yt("MuiPaginationItem",e)}const Ar=bt("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),cs=_.oneOfType([_.func,_.object]);function Ri(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function BD(e){const{prototype:t={}}=e;return!!t.isReactComponent}function HD(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"&&!BD(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 bh=Ri(_.elementType,HD);function Pd(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.":xi(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Km={exports:{}},ct={};/**
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 m_;function zD(){if(m_)return ct;m_=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"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=Symbol.for("react.client.reference");function v(g){if(typeof g=="object"&&g!==null){var b=g.$$typeof;switch(b){case e:switch(g=g.type,g){case r:case i:case n:case u:case c:return g;default:switch(g=g&&g.$$typeof,g){case o:case s:case h:case d:return g;case a:return g;default:return b}}case t:return b}}}return ct.ContextConsumer=a,ct.ContextProvider=o,ct.Element=e,ct.ForwardRef=s,ct.Fragment=r,ct.Lazy=h,ct.Memo=d,ct.Portal=t,ct.Profiler=i,ct.StrictMode=n,ct.Suspense=u,ct.SuspenseList=c,ct.isContextConsumer=function(g){return v(g)===a},ct.isContextProvider=function(g){return v(g)===o},ct.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},ct.isForwardRef=function(g){return v(g)===s},ct.isFragment=function(g){return v(g)===r},ct.isLazy=function(g){return v(g)===h},ct.isMemo=function(g){return v(g)===d},ct.isPortal=function(g){return v(g)===t},ct.isProfiler=function(g){return v(g)===i},ct.isStrictMode=function(g){return v(g)===n},ct.isSuspense=function(g){return v(g)===u},ct.isSuspenseList=function(g){return v(g)===c},ct.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===i||g===n||g===u||g===c||g===p||typeof g=="object"&&g!==null&&(g.$$typeof===h||g.$$typeof===d||g.$$typeof===o||g.$$typeof===a||g.$$typeof===s||g.$$typeof===m||g.getModuleId!==void 0)},ct.typeOf=v,ct}var dt={};/**
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 g_;function jD(){return g_||(g_=1,process.env.NODE_ENV!=="production"&&function(){function e(g){if(typeof g=="object"&&g!==null){var b=g.$$typeof;switch(b){case t:switch(g=g.type,g){case n:case a:case i:case c:case d:return g;default:switch(g=g&&g.$$typeof,g){case s:case u:case p:case h:return g;case o:return g;default:return b}}case r:return b}}}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"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),v=Symbol.for("react.client.reference");dt.ContextConsumer=o,dt.ContextProvider=s,dt.Element=t,dt.ForwardRef=u,dt.Fragment=n,dt.Lazy=p,dt.Memo=h,dt.Portal=r,dt.Profiler=a,dt.StrictMode=i,dt.Suspense=c,dt.SuspenseList=d,dt.isContextConsumer=function(g){return e(g)===o},dt.isContextProvider=function(g){return e(g)===s},dt.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},dt.isForwardRef=function(g){return e(g)===u},dt.isFragment=function(g){return e(g)===n},dt.isLazy=function(g){return e(g)===p},dt.isMemo=function(g){return e(g)===h},dt.isPortal=function(g){return e(g)===r},dt.isProfiler=function(g){return e(g)===a},dt.isStrictMode=function(g){return e(g)===i},dt.isSuspense=function(g){return e(g)===c},dt.isSuspenseList=function(g){return e(g)===d},dt.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===a||g===i||g===c||g===d||g===m||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===h||g.$$typeof===s||g.$$typeof===o||g.$$typeof===u||g.$$typeof===v||g.getModuleId!==void 0)},dt.typeOf=e}()),dt}process.env.NODE_ENV==="production"?Km.exports=zD():Km.exports=jD();var Rd=Km.exports;function Gn(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 CT(e){if(Q.isValidElement(e)||Rd.isValidElementType(e)||!Gn(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=CT(e[r])}),t}function Dr(e,t,r={clone:!0}){const n=r.clone?M({},e):e;return Gn(e)&&Gn(t)&&Object.keys(t).forEach(i=>{Q.isValidElement(t[i])||Rd.isValidElementType(t[i])?n[i]=t[i]:Gn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Gn(e[i])?n[i]=Dr(e[i],t[i],r):r.clone?n[i]=Gn(t[i])?CT(t[i]):t[i]:n[i]=t[i]}),n}function El(e,t){return t?Dr(e,t,{clone:!1}):e}const oa=process.env.NODE_ENV!=="production"?_.oneOfType([_.number,_.string,_.object,_.array]):{};function WD(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},M({},t)):t}function UD(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function VD(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\`.`:xi(18,`(${t})`));return null}const[,n,i]=r,a=Number.isNaN(+n)?n||0:+n;return e.containerQueries(i).up(a)}function GD(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),B(M({},e),{containerQueries:i})}const _h={xs:0,sm:600,md:900,lg:1200,xl:1536},v_={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${_h[e]}px)`},qD={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:_h[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function ti(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||v_;return t.reduce((o,s,u)=>(o[a.up(a.keys[u])]=r(t[u]),o),{})}if(typeof t=="object"){const a=n.breakpoints||v_;return Object.keys(t).reduce((o,s)=>{if(UD(a.keys,s)){const u=VD(n.containerQueries?n:qD,s);u&&(o[u]=r(t[s],s))}else if(Object.keys(a.values||_h).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 xT(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function TT(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function YD(e,...t){const r=xT(e),n=[r,...t].reduce((i,a)=>Dr(i,a),{});return TT(Object.keys(r),n)}function XD(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 KD({values:e,breakpoints:t,base:r}){const n=r||XD(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 wh(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 Od(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=wh(e,r)||n,t&&(i=t(i,n,e)),i}function Yt(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=wh(u,n)||{};return ti(o,s,h=>{let p=Od(c,i,h);return h===p&&typeof h=="string"&&(p=Od(c,i,`${t}${h==="default"?"":Le(h)}`,h)),r===!1?p:{[r]:p}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:oa}:{},a.filterProps=[t],a}function ZD(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const QD={m:"margin",p:"padding"},JD={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},y_={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},eN=ZD(e=>{if(e.length>2)if(y_[e])e=y_[e];else return[e];const[t,r]=e.split(""),n=QD[t],i=JD[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),Ch=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],xh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],tN=[...Ch,...xh];function wu(e,t,r,n){var a;const i=(a=wh(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 Th(e){return wu(e,"spacing",8,"spacing")}function ds(e,t){return typeof t=="string"||t==null?t:e(t)}function rN(e,t){return r=>e.reduce((n,i)=>(n[i]=ds(t,r),n),{})}function nN(e,t,r,n){if(!t.includes(r))return null;const i=eN(r),a=rN(i,n),o=e[r];return ti(e,o,a)}function ST(e,t){const r=Th(e.theme);return Object.keys(e).map(n=>nN(e,t,n,r)).reduce(El,{})}function Ht(e){return ST(e,Ch)}Ht.propTypes=process.env.NODE_ENV!=="production"?Ch.reduce((e,t)=>(e[t]=oa,e),{}):{};Ht.filterProps=Ch;function zt(e){return ST(e,xh)}zt.propTypes=process.env.NODE_ENV!=="production"?xh.reduce((e,t)=>(e[t]=oa,e),{}):{};zt.filterProps=xh;process.env.NODE_ENV!=="production"&&tN.reduce((e,t)=>(e[t]=oa,e),{});function Sh(...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]?El(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 pn(e){return typeof e!="number"?e:`${e}px solid`}function _n(e,t){return Yt({prop:e,themeKey:"borders",transform:t})}const iN=_n("border",pn),aN=_n("borderTop",pn),oN=_n("borderRight",pn),sN=_n("borderBottom",pn),lN=_n("borderLeft",pn),uN=_n("borderColor"),cN=_n("borderTopColor"),dN=_n("borderRightColor"),hN=_n("borderBottomColor"),fN=_n("borderLeftColor"),pN=_n("outline",pn),mN=_n("outlineColor"),Eh=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=wu(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:ds(t,n)});return ti(e,e.borderRadius,r)}return null};Eh.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:oa}:{};Eh.filterProps=["borderRadius"];Sh(iN,aN,oN,sN,lN,uN,cN,dN,hN,fN,Eh,pN,mN);const Mh=e=>{if(e.gap!==void 0&&e.gap!==null){const t=wu(e.theme,"spacing",8,"gap"),r=n=>({gap:ds(t,n)});return ti(e,e.gap,r)}return null};Mh.propTypes=process.env.NODE_ENV!=="production"?{gap:oa}:{};Mh.filterProps=["gap"];const Ah=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=wu(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:ds(t,n)});return ti(e,e.columnGap,r)}return null};Ah.propTypes=process.env.NODE_ENV!=="production"?{columnGap:oa}:{};Ah.filterProps=["columnGap"];const Ph=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=wu(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:ds(t,n)});return ti(e,e.rowGap,r)}return null};Ph.propTypes=process.env.NODE_ENV!=="production"?{rowGap:oa}:{};Ph.filterProps=["rowGap"];const gN=Yt({prop:"gridColumn"}),vN=Yt({prop:"gridRow"}),yN=Yt({prop:"gridAutoFlow"}),bN=Yt({prop:"gridAutoColumns"}),_N=Yt({prop:"gridAutoRows"}),wN=Yt({prop:"gridTemplateColumns"}),CN=Yt({prop:"gridTemplateRows"}),xN=Yt({prop:"gridTemplateAreas"}),TN=Yt({prop:"gridArea"});Sh(Mh,Ah,Ph,gN,vN,yN,bN,_N,wN,CN,xN,TN);function Wo(e,t){return t==="grey"?t:e}const SN=Yt({prop:"color",themeKey:"palette",transform:Wo}),EN=Yt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Wo}),MN=Yt({prop:"backgroundColor",themeKey:"palette",transform:Wo});Sh(SN,EN,MN);function Yr(e){return e<=1&&e!==0?`${e*100}%`:e}const AN=Yt({prop:"width",transform:Yr}),Sv=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])||_h[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:Yr(r)}};return ti(e,e.maxWidth,t)}return null};Sv.filterProps=["maxWidth"];const PN=Yt({prop:"minWidth",transform:Yr}),RN=Yt({prop:"height",transform:Yr}),ON=Yt({prop:"maxHeight",transform:Yr}),kN=Yt({prop:"minHeight",transform:Yr});Yt({prop:"size",cssProperty:"width",transform:Yr});Yt({prop:"size",cssProperty:"height",transform:Yr});const DN=Yt({prop:"boxSizing"});Sh(AN,Sv,PN,RN,ON,kN,DN);const Cu={border:{themeKey:"borders",transform:pn},borderTop:{themeKey:"borders",transform:pn},borderRight:{themeKey:"borders",transform:pn},borderBottom:{themeKey:"borders",transform:pn},borderLeft:{themeKey:"borders",transform:pn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:pn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Eh},color:{themeKey:"palette",transform:Wo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Wo},backgroundColor:{themeKey:"palette",transform:Wo},p:{style:zt},pt:{style:zt},pr:{style:zt},pb:{style:zt},pl:{style:zt},px:{style:zt},py:{style:zt},padding:{style:zt},paddingTop:{style:zt},paddingRight:{style:zt},paddingBottom:{style:zt},paddingLeft:{style:zt},paddingX:{style:zt},paddingY:{style:zt},paddingInline:{style:zt},paddingInlineStart:{style:zt},paddingInlineEnd:{style:zt},paddingBlock:{style:zt},paddingBlockStart:{style:zt},paddingBlockEnd:{style:zt},m:{style:Ht},mt:{style:Ht},mr:{style:Ht},mb:{style:Ht},ml:{style:Ht},mx:{style:Ht},my:{style:Ht},margin:{style:Ht},marginTop:{style:Ht},marginRight:{style:Ht},marginBottom:{style:Ht},marginLeft:{style:Ht},marginX:{style:Ht},marginY:{style:Ht},marginInline:{style:Ht},marginInlineStart:{style:Ht},marginInlineEnd:{style:Ht},marginBlock:{style:Ht},marginBlockStart:{style:Ht},marginBlockEnd:{style:Ht},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:Mh},rowGap:{style:Ph},columnGap:{style:Ah},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Yr},maxWidth:{style:Sv},minWidth:{transform:Yr},height:{transform:Yr},maxHeight:{transform:Yr},minHeight:{transform:Yr},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 NN(...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 IN(e,t){return typeof e=="function"?e(t):e}function LN(){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:d,style:h}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const p=wh(i,c)||{};return h?h(o):ti(o,n,v=>{let g=Od(p,d,v);return v===g&&typeof v=="string"&&(g=Od(p,d,`${r}${v==="default"?"":Le(v)}`,v)),u===!1?g:{[u]:g}})}function t(r){var s;const{sx:n,theme:i={}}=r||{};if(!n)return null;const a=(s=i.unstable_sxConfig)!=null?s:Cu;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 d=xT(i.breakpoints),h=Object.keys(d);let p=d;return Object.keys(c).forEach(m=>{const v=IN(c[m],i);if(v!=null)if(typeof v=="object")if(a[m])p=El(p,e(m,v,i,a));else{const g=ti({theme:i},v,b=>({[m]:b}));NN(g,v)?p[m]=t({sx:v,theme:i}):p=El(p,g)}else p=El(p,e(m,v,i,a))}),WD(i,TT(h,p))}return Array.isArray(n)?n.map(o):o(n)}return t}const Qo=LN();Qo.filterProps=["sx"];const FN=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:Cu;return Object.keys(e).forEach(a=>{r[a]?t.systemProps[a]=e[a]:t.otherProps[a]=e[a]}),t};function ET(e){const o=e,{sx:t}=o,r=xe(o,["sx"]),{systemProps:n,otherProps:i}=FN(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...s)=>{const u=t(...s);return Gn(u)?M(M({},n),u):n}:a=M(M({},n),t),B(M({},i),{sx:a})}exports.jsx=function(t,r){var n=arguments;if(r==null||!w.hasOwn.call(r,"css"))return Q.createElement.apply(void 0,n);var i=n.length,a=new Array(i);a[0]=w.Emotion$1,a[1]=w.createEmotionProps(t,r);for(var o=2;o<i;o++)a[o]=n[o];return Q.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(exports.jsx||(exports.jsx={}));var $N=w.withEmotionCache(function(e,t){var r=e.styles,n=w.serializeStyles([r],void 0,Q.useContext(w.ThemeContext)),i=Q.useRef();return w.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]),w.useInsertionEffectWithLayoutFallback(function(){var a=i.current,o=a[0],s=a[1];if(s){a[1]=!1;return}if(n.next!==void 0&&w.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 Rh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return w.serializeStyles(t)}function xu(){var e=Rh.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 BN=/^((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)-.*))$/,MT=w.memoize(function(e){return BN.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),HN=!1,zN=MT,jN=function(t){return t!=="theme"},b_=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?zN:jN},__=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},WN=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return w.registerStyles(r,n,i),w.useInsertionEffectAlwaysWithSyncFallback(function(){return w.insertStyles(r,n,i)}),null},UN=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=__(t,r,n),u=s||b_(i),c=!u("as");return function(){var d=arguments,h=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&h.push("label:"+a+";"),d[0]==null||d[0].raw===void 0)h.push.apply(h,d);else{var p=d[0];h.push(p[0]);for(var m=d.length,v=1;v<m;v++)h.push(d[v],p[v])}var g=w.withEmotionCache(function(b,C,x){var E=c&&b.as||i,T="",A=[],R=b;if(b.theme==null){R={};for(var D in b)R[D]=b[D];R.theme=Q.useContext(w.ThemeContext)}typeof b.className=="string"?T=w.getRegisteredStyles(C.registered,A,b.className):b.className!=null&&(T=b.className+" ");var I=w.serializeStyles(h.concat(A),C.registered,R);T+=C.key+"-"+I.name,o!==void 0&&(T+=" "+o);var H=c&&s===void 0?b_(E):u,G={};for(var q in b)c&&q==="as"||H(q)&&(G[q]=b[q]);return G.className=T,x&&(G.ref=x),Q.createElement(Q.Fragment,null,Q.createElement(WN,{cache:C,serialized:I,isStringTag:typeof E=="string"}),Q.createElement(E,G))});return g.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=i,g.__emotion_styles=h,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return o===void 0&&HN?"NO_COMPONENT_SELECTOR":"."+o}}),g.withComponent=function(b,C){var x=e(b,Hl({},r,C,{shouldForwardProp:__(g,C,!0)}));return x.apply(void 0,h)},g}},VN=["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"],Ye=UN.bind(null);VN.forEach(function(e){Ye[e]=Ye(e)});function GN(e){return e==null||Object.keys(e).length===0}function AT(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(GN(i)?r:i):t;return fe.jsx($N,{styles:n})}process.env.NODE_ENV!=="production"&&(AT.propTypes={defaultTheme:_.object,styles:_.oneOfType([_.array,_.string,_.object,_.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 qN(e,t){const r=Ye(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 YN(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const w_=[];function C_(e){return w_[0]=e,w.serializeStyles(w_)}const XN=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)=>B(M({},r),{[n.key]:n.val}),{})};function KN(e){const p=e,{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=p,i=xe(p,["values","unit","step"]),a=XN(t),o=Object.keys(a);function s(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r})`}function u(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-n/100}${r})`}function c(m,v){const g=o.indexOf(v);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${r}) and (max-width:${(g!==-1&&typeof t[o[g]]=="number"?t[o[g]]:v)-n/100}${r})`}function d(m){return o.indexOf(m)+1<o.length?c(m,o[o.indexOf(m)+1]):s(m)}function h(m){const v=o.indexOf(m);return v===0?s(o[1]):v===o.length-1?u(o[v]):c(m,o[o.indexOf(m)+1]).replace("@media","@media not all and")}return M({keys:o,values:a,up:s,down:u,between:c,only:d,not:h,unit:r},i)}const ZN={borderRadius:4};function PT(e=8,t=Th({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 QN(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 Oh(e={},...t){const d=e,{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=d,o=xe(d,["breakpoints","palette","spacing","shape"]),s=KN(r),u=PT(i);let c=Dr({breakpoints:s,direction:"ltr",components:{},palette:M({mode:"light"},n),spacing:u,shape:M(M({},ZN),a)},o);return c=GD(c),c.applyStyles=QN,c=t.reduce((h,p)=>Dr(h,p),c),c.unstable_sxConfig=M(M({},Cu),o==null?void 0:o.unstable_sxConfig),c.unstable_sx=function(p){return Qo({sx:p,theme:this})},c}function JN(e){return Object.keys(e).length===0}function eI(e=null){const t=Q.useContext(w.ThemeContext);return!t||JN(t)?e:t}const tI=Oh();function Ev(e=tI){return eI(e)}function RT({styles:e,themeId:t,defaultTheme:r={}}){const n=Ev(r),i=typeof e=="function"?e(t&&n[t]||n):e;return fe.jsx(AT,{styles:i})}process.env.NODE_ENV!=="production"&&(RT.propTypes={defaultTheme:_.object,styles:_.oneOfType([_.array,_.func,_.number,_.object,_.string,_.bool]),themeId:_.string});function OT(e,t=""){return e.displayName||e.name||t}function x_(e,t,r){const n=OT(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function rI(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return OT(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Rd.ForwardRef:return x_(e,e.render,"ForwardRef");case Rd.Memo:return x_(e,e.type,"memo");default:return}}}function kT(e){const i=e,{variants:t}=i,r=xe(i,["variants"]),n={variants:t,style:C_(r),isProcessed:!0};return n.style===r||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=C_(a.style))}),n}const nI=Oh();function Bp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function iI(e){return e?(t,r)=>r[e]:null}function aI(e,t,r){e.theme=lI(e.theme)?r:e.theme[t]||e.theme}function ud(e,t){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>ud(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=xe(n,["variants"])}return DT(e,r.variants,[i])}return r!=null&&r.isProcessed?r.style:r}function DT(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=B(M(M({},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=B(M(M({},e),e.ownerState),{ownerState:e.ownerState})),r.push(o.style(n))):r.push(o.style)}return r}function NT(e={}){const{themeId:t,defaultTheme:r=nI,rootShouldForwardProp:n=Bp,slotShouldForwardProp:i=Bp}=e;function a(s){aI(s,t,r)}return(s,u={})=>{YN(s,R=>R.filter(D=>D!==Qo));const A=u,{name:c,slot:d,skipVariantsResolver:h,skipSx:p,overridesResolver:m=iI(IT(d))}=A,v=xe(A,["name","slot","skipVariantsResolver","skipSx","overridesResolver"]),g=h!==void 0?h:d&&d!=="Root"&&d!=="root"||!1,b=p||!1;let C=Bp;d==="Root"||d==="root"?C=n:d?C=i:uI(s)&&(C=void 0);const x=qN(s,M({shouldForwardProp:C,label:sI(c,d)},v)),E=R=>{if(R.__emotion_real===R)return R;if(typeof R=="function")return function(I){return ud(I,R)};if(Gn(R)){const D=kT(R);return D.variants?function(H){return ud(H,D)}:D.style}return R},T=(...R)=>{const D=[],I=R.map(E),H=[];if(D.push(a),c&&m&&H.push(function($){var z,Y;const j=(Y=(z=$.theme.components)==null?void 0:z[c])==null?void 0:Y.styleOverrides;if(!j)return null;const V={};for(const re in j)V[re]=ud($,j[re]);return m($,V)}),c&&!g&&H.push(function($){var V,z;const X=$.theme,j=(z=(V=X==null?void 0:X.components)==null?void 0:V[c])==null?void 0:z.variants;return j?DT($,j):null}),b||H.push(Qo),Array.isArray(I[0])){const O=I.shift(),$=new Array(D.length).fill(""),X=new Array(H.length).fill("");let j;j=[...$,...O,...X],j.raw=[...$,...O.raw,...X],D.unshift(j)}const G=[...D,...I,...H],q=x(...G);return s.muiName&&(q.muiName=s.muiName),process.env.NODE_ENV!=="production"&&(q.displayName=oI(c,d,s)),q};return x.withConfig&&(T.withConfig=x.withConfig),T}}function oI(e,t,r){return e?`${e}${Le(t||"")}`:`Styled(${rI(r)})`}function sI(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${IT(t||"Root")}`),r}function lI(e){for(const t in e)return!1;return!0}function uI(e){return typeof e=="string"&&e.charCodeAt(0)>96}function IT(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function zl(e,t){const r=M({},t);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const i=n;if(i==="components"||i==="slots")r[i]=M(M({},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]=M({},o);for(const s in a)if(Object.prototype.hasOwnProperty.call(a,s)){const u=s;r[i][u]=zl(a[u],o[u])}}}else r[i]===void 0&&(r[i]=e[i])}return r}const Mn=typeof window!="undefined"?Q.useLayoutEffect:Q.useEffect;function cI(e){const{prototype:t={}}=e;return!!t.isReactComponent}function LT(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"&&!cI(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 Wa=Ri(_.element,LT);Wa.isRequired=Ri(_.element.isRequired,LT);const dI="exact-prop: ​";function Mv(e){return process.env.NODE_ENV==="production"?e:B(M({},e),{[dI]: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 Ti(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 Zm(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function FT(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 Qr(e){return e&&e.ownerDocument||document}function Si(e){return Qr(e).defaultView||window}function T_(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let S_=0;function hI(e){const[t,r]=Q.useState(e),n=e||t;return Q.useEffect(()=>{t==null&&(S_+=1,r(`mui-${S_}`))},[t]),n}const fI=M({},Q),E_=fI.useId;function kh(e){if(E_!==void 0){const t=E_();return e!=null?e:t}return hI(e)}function Kn(e){const t=Q.useRef(e);return Mn(()=>{t.current=e}),Q.useRef((...r)=>(0,t.current)(...r)).current}function gr(...e){const t=Q.useRef(void 0),r=Q.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 Q.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}const M_={};function $T(e,t){const r=Q.useRef(M_);return r.current===M_&&(r.current=e(t)),r}const pI=[];function mI(e){Q.useEffect(e,pI)}class Dh{constructor(){tt(this,"currentId",null);tt(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});tt(this,"disposeEffect",()=>this.clear)}static create(){return new Dh}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Ta(){const e=$T(Dh.create).current;return mI(e.disposeEffect),e}function BT(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function gI(e){return typeof e=="string"}function HT(e,t,r){return e===void 0||gI(e)?t:B(M({},t),{ownerState:M(M({},t.ownerState),r)})}function zT(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 A_(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 jT(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const m=je(r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),v=M(M(M({},r==null?void 0:r.style),i==null?void 0:i.style),n==null?void 0:n.style),g=M(M(M({},r),i),n);return m.length>0&&(g.className=m),Object.keys(v).length>0&&(g.style=v),{props:g,internalRef:void 0}}const o=zT(M(M({},i),n)),s=A_(n),u=A_(i),c=t(o),d=je(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),h=M(M(M(M({},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=M(M(M(M({},c),r),u),s);return d.length>0&&(p.className=d),Object.keys(h).length>0&&(p.style=h),{props:p,internalRef:c.ref}}function WT(e,t,r){return typeof e=="function"?e(t,r):e}function Av(e){var p;const h=e,{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:i=!1}=h,a=xe(h,["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"]),o=i?{}:WT(r,n),{props:s,internalRef:u}=jT(B(M({},a),{externalSlotProps:o})),c=gr(u,o==null?void 0:o.ref,(p=e.additionalProps)==null?void 0:p.ref);return HT(t,B(M({},s),{ref:c}),n)}function hs(e){var t;return parseInt(Q.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const vI=Q.createContext(void 0);function yI(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?zl(i.defaultProps,n):!i.styleOverrides&&!i.variants?zl(i,n):n}function bI({props:e,name:t}){const r=Q.useContext(vI);return yI({props:e,name:t,theme:{components:r}})}const P_={theme:void 0};function _I(e){let t,r;return function(i){let a=t;return(a===void 0||i.theme!==r)&&(P_.theme=i.theme,a=kT(e(P_)),t=a,r=i.theme),a}}function wI(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 R_=(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])})},CI=(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)},xI=(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 Hp(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},i={},a={},o={};return CI(e,(s,u,c)=>{if((typeof u=="string"||typeof u=="number")&&(!n||!n(s,u))){const d=`--${r?`${r}-`:""}${s.join("-")}`,h=xI(s,u);Object.assign(i,{[d]:h}),R_(a,s,`var(${d})`,c),R_(o,s,`var(${d}, ${h})`,c)}},s=>s[0]==="vars"),{css:i,vars:a,varsWithDefaults:o}}function TI(e,t={}){const{getSelector:r=b,disableCssColorScheme:n,colorSchemeSelector:i}=t,E=e,{colorSchemes:a={},components:o,defaultColorScheme:s="light"}=E,u=xe(E,["colorSchemes","components","defaultColorScheme"]),{vars:c,css:d,varsWithDefaults:h}=Hp(u,t);let p=h;const m={},T=a,{[s]:v}=T,g=xe(T,[Ac(s)]);if(Object.entries(g||{}).forEach(([A,R])=>{const{vars:D,css:I,varsWithDefaults:H}=Hp(R,t);p=Dr(p,H),m[A]={css:I,vars:D}}),v){const{css:A,vars:R,varsWithDefaults:D}=Hp(v,t);p=Dr(p,D),m[s]={css:A,vars:R}}function b(A,R){var I,H;let D=i;if(i==="class"&&(D=".%s"),i==="data"&&(D="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(D=`[${i}="%s"]`),A){if(D==="media")return e.defaultColorScheme===A?":root":{[`@media (prefers-color-scheme: ${((H=(I=a[A])==null?void 0:I.palette)==null?void 0:H.mode)||A})`]:{":root":R}};if(D)return e.defaultColorScheme===A?`:root, ${D.replace("%s",String(A))}`:D.replace("%s",String(A))}return":root"}return{vars:p,generateThemeVars:()=>{let A=M({},c);return Object.entries(m).forEach(([,{vars:R}])=>{A=Dr(A,R)}),A},generateStyleSheets:()=>{var q,O;const A=[],R=e.defaultColorScheme||"light";function D($,X){Object.keys(X).length&&A.push(typeof $=="string"?{[$]:M({},X)}:$)}D(r(void 0,M({},d)),d);const G=m,{[R]:I}=G,H=xe(G,[Ac(R)]);if(I){const{css:$}=I,X=(O=(q=a[R])==null?void 0:q.palette)==null?void 0:O.mode,j=M(!n&&X?{colorScheme:X}:{},$);D(r(R,M({},j)),j)}return Object.entries(H).forEach(([$,{css:X}])=>{var z,Y;const j=(Y=(z=a[$])==null?void 0:z.palette)==null?void 0:Y.mode,V=M(!n&&j?{colorScheme:j}:{},X);D(r($,M({},V)),V)}),A}}}function SI(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 jl={black:"#000",white:"#fff"},EI={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"},co={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"},ho={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"},Ks={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"},fo={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"},po={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"},mo={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 UT(){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:jl.white,default:jl.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 MI=UT();function VT(){return{text:{primary:jl.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:jl.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 O_=VT();function k_(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=vh(e.main,i):t==="dark"&&(e.dark=gh(e.main,a)))}function AI(e="light"){return e==="dark"?{main:fo[200],light:fo[50],dark:fo[400]}:{main:fo[700],light:fo[400],dark:fo[800]}}function PI(e="light"){return e==="dark"?{main:co[200],light:co[50],dark:co[400]}:{main:co[500],light:co[300],dark:co[700]}}function RI(e="light"){return e==="dark"?{main:ho[500],light:ho[300],dark:ho[700]}:{main:ho[700],light:ho[400],dark:ho[800]}}function OI(e="light"){return e==="dark"?{main:po[400],light:po[300],dark:po[700]}:{main:po[700],light:po[500],dark:po[900]}}function kI(e="light"){return e==="dark"?{main:mo[400],light:mo[300],dark:mo[700]}:{main:mo[800],light:mo[500],dark:mo[900]}}function DI(e="light"){return e==="dark"?{main:Ks[400],light:Ks[300],dark:Ks[700]}:{main:"#ed6c02",light:Ks[500],dark:Ks[900]}}function Pv(e){const g=e,{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=g,i=xe(g,["mode","contrastThreshold","tonalOffset"]),a=e.primary||AI(t),o=e.secondary||PI(t),s=e.error||RI(t),u=e.info||OI(t),c=e.success||kI(t),d=e.warning||DI(t);function h(b){const C=p_(b,O_.text.primary)>=r?O_.text.primary:MI.text.primary;if(process.env.NODE_ENV!=="production"){const x=p_(b,C);x<3&&console.error([`MUI: The contrast ratio of ${x}:1 for ${C} on ${b}`,"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:b,name:C,mainShade:x=500,lightShade:E=300,darkShade:T=700})=>{if(b=M({},b),!b.main&&b[x]&&(b.main=b[x]),!b.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 \`${x}\` property.`:xi(11,C?` (${C})`:"",x));if(typeof b.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(b.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
+ } });`:xi(12,C?` (${C})`:"",JSON.stringify(b.main)));return k_(b,"light",E,n),k_(b,"dark",T,n),b.contrastText||(b.contrastText=h(b.main)),b};let m;return t==="light"?m=UT():t==="dark"&&(m=VT()),process.env.NODE_ENV!=="production"&&(m||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Dr(M({common:M({},jl),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:d,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:c,name:"success"}),grey:EI,contrastThreshold:r,getContrastText:h,augmentColor:p,tonalOffset:n},m),i)}function NI(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 II(e,t){return M({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}function LI(e){return Math.round(e*1e5)/1e5}const D_={textTransform:"uppercase"},N_='"Roboto", "Helvetica", "Arial", sans-serif';function FI(e,t){const b=typeof t=="function"?t(e):t,{fontFamily:r=N_,fontSize:n=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=b,h=xe(b,["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,m=d||(C=>`${C/u*p}rem`),v=(C,x,E,T,A)=>M(M(M({fontFamily:r,fontWeight:C,fontSize:m(x),lineHeight:E},r===N_?{letterSpacing:`${LI(T/x)}em`}:{}),A),c),g={h1:v(i,96,1.167,-1.5),h2:v(i,60,1.2,-.5),h3:v(a,48,1.167,0),h4:v(a,34,1.235,.25),h5:v(a,24,1.334,0),h6:v(o,20,1.6,.15),subtitle1:v(a,16,1.75,.15),subtitle2:v(o,14,1.57,.1),body1:v(a,16,1.5,.15),body2:v(a,14,1.43,.15),button:v(o,14,1.75,.4,D_),caption:v(a,12,1.66,.4),overline:v(a,12,2.66,1,D_),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Dr(M({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:n,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s},g),h,{clone:!1})}const $I=.2,BI=.14,HI=.12;function Pt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${$I})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${BI})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${HI})`].join(",")}const zI=["none",Pt(0,2,1,-1,0,1,1,0,0,1,3,0),Pt(0,3,1,-2,0,2,2,0,0,1,5,0),Pt(0,3,3,-2,0,3,4,0,0,1,8,0),Pt(0,2,4,-1,0,4,5,0,0,1,10,0),Pt(0,3,5,-1,0,5,8,0,0,1,14,0),Pt(0,3,5,-1,0,6,10,0,0,1,18,0),Pt(0,4,5,-2,0,7,10,1,0,2,16,1),Pt(0,5,5,-3,0,8,10,1,0,3,14,2),Pt(0,5,6,-3,0,9,12,1,0,3,16,2),Pt(0,6,6,-3,0,10,14,1,0,4,18,3),Pt(0,6,7,-4,0,11,15,1,0,4,20,3),Pt(0,7,8,-4,0,12,17,2,0,5,22,4),Pt(0,7,8,-4,0,13,19,2,0,5,24,4),Pt(0,7,9,-4,0,14,21,2,0,5,26,4),Pt(0,8,9,-5,0,15,22,2,0,6,28,5),Pt(0,8,10,-5,0,16,24,2,0,6,30,5),Pt(0,8,11,-5,0,17,26,2,0,6,32,5),Pt(0,9,11,-5,0,18,28,2,0,7,34,6),Pt(0,9,12,-6,0,19,29,2,0,7,36,6),Pt(0,10,13,-6,0,20,31,3,0,8,38,7),Pt(0,10,13,-6,0,21,33,3,0,8,40,7),Pt(0,10,14,-6,0,22,35,3,0,8,42,7),Pt(0,11,14,-7,0,23,36,3,0,9,44,8),Pt(0,11,15,-7,0,24,38,3,0,9,46,8)],jI={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)"},GT={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function I_(e){return`${Math.round(e)}ms`}function WI(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*Bn(t,.25)+t/5)*10),3e3)}function UI(e){const t=M(M({},jI),e.easing),r=M(M({},GT),e.duration);return B(M({getAutoHeightDuration:WI,create:(i=["all"],a={})=>{const d=a,{duration:o=r.standard,easing:s=t.easeInOut,delay:u=0}=d,c=xe(d,["duration","easing","delay"]);if(process.env.NODE_ENV!=="production"){const h=m=>typeof m=="string",p=m=>!Number.isNaN(parseFloat(m));!h(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(o)&&!h(o)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),h(s)||console.error('MUI: Argument "easing" must be a string.'),!p(u)&&!h(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(h=>`${h} ${typeof o=="string"?o:I_(o)} ${s} ${typeof u=="string"?u:I_(u)}`).join(",")}},e),{easing:t,duration:r})}const VI={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function GI(e){return Gn(e)||typeof e=="undefined"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function qT(e={}){const t=M({},e);function r(n){const i=Object.entries(n);for(let a=0;a<i.length;a++){const[o,s]=i[a];!GI(s)||o.startsWith("unstable_")?delete n[o]:Gn(s)&&(n[o]=M({},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 Qm(e={},...t){const m=e,{breakpoints:r,mixins:n={},spacing:i,palette:a={},transitions:o={},typography:s={},shape:u}=m,c=xe(m,["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.":xi(20));const d=Pv(a),h=Oh(e);let p=Dr(h,{mixins:II(h.breakpoints,n),palette:d,shadows:zI.slice(),typography:FI(d,s),transitions:UI(o),zIndex:M({},VI)});if(p=Dr(p,c),p=t.reduce((v,g)=>Dr(v,g),p),process.env.NODE_ENV!=="production"){const v=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(b,C)=>{let x;for(x in b){const E=b[x];if(v.includes(x)&&Object.keys(E).length>0){if(process.env.NODE_ENV!=="production"){const T=yt("",x);console.error([`MUI: The \`${C}\` component increases the CSS specificity of the \`${x}\` internal state.`,"You can not override it like this: ",JSON.stringify(b,null,2),"",`Instead, you need to use the '&.${T}' syntax:`,JSON.stringify({root:{[`&.${T}`]:E}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
76
+ `))}b[x]={}}}};Object.keys(p.components).forEach(b=>{const C=p.components[b].styleOverrides;C&&b.startsWith("Mui")&&g(C,b)})}return p.unstable_sxConfig=M(M({},Cu),c==null?void 0:c.unstable_sxConfig),p.unstable_sx=function(g){return Qo({sx:g,theme:this})},p.toRuntimeSource=qT,p}function Jm(e){let t;return e<1?t=5.11916*Bn(e,2):t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const qI=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=Jm(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function YT(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function XT(e){return e==="dark"?qI:[]}function YI(e){const o=e,{palette:t={mode:"light"},opacity:r,overlays:n}=o,i=xe(o,["palette","opacity","overlays"]),a=Pv(t);return M({palette:a,opacity:M(M({},YT(a.mode)),r),overlays:n||XT(a.mode)},i)}function XI(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 KI=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],ZI=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 KI(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]:M(M({},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 QI(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function le(e,t,r){!e[t]&&r&&(e[t]=r)}function ml(e){return typeof e!="string"||!e.startsWith("hsl")?e:wT(e)}function gi(e,t){`${t}Channel`in e||(e[`${t}Channel`]=pl(ml(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 JI(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Hn=e=>{try{return e()}catch(t){}},eL=(e="mui")=>wI(e);function zp(e,t,r,n){if(!t)return;t=t===!0?{}:t;const i=n==="dark"?"dark":"light";if(!r){e[n]=YI(B(M({},t),{palette:M({mode:i},t==null?void 0:t.palette)}));return}const s=Qm(B(M({},r),{palette:M({mode:i},t==null?void 0:t.palette)})),{palette:a}=s,o=xe(s,["palette"]);return e[n]=B(M({},t),{palette:a,opacity:M(M({},YT(i)),t==null?void 0:t.opacity),overlays:(t==null?void 0:t.overlays)||XT(i)}),o}function tL(e={},...t){const H=e,{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:i=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:o=XI,colorSchemeSelector:s=r.light&&r.dark?"media":void 0,rootSelector:u=":root"}=H,c=xe(H,["colorSchemes","defaultColorScheme","disableCssColorScheme","cssVarPrefix","shouldSkipGeneratingVar","colorSchemeSelector","rootSelector"]),d=Object.keys(r)[0],h=n||(r.light&&d!=="light"?"light":d),p=eL(a),G=r,{[h]:m,light:v,dark:g}=G,b=xe(G,[Ac(h),"light","dark"]),C=M({},b);let x=m;if((h==="dark"&&!("dark"in r)||h==="light"&&!("light"in r))&&(x=!0),!x)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${h}\` option is either missing or invalid.`:xi(21,h));const E=zp(C,x,c,h);v&&!C.light&&zp(C,v,void 0,"light"),g&&!C.dark&&zp(C,g,void 0,"dark");let T=B(M({defaultColorScheme:h},E),{cssVarPrefix:a,colorSchemeSelector:s,rootSelector:u,getCssVar:p,colorSchemes:C,font:M(M({},NI(E.typography)),E.font),spacing:JI(c.spacing)});Object.keys(T.colorSchemes).forEach(q=>{const O=T.colorSchemes[q].palette,$=X=>{const j=X.split("-"),V=j[1],z=j[2];return p(X,O[V][z])};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")),QI(O,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),O.mode==="light"){le(O.Alert,"errorColor",gt(O.error.light,.6)),le(O.Alert,"infoColor",gt(O.info.light,.6)),le(O.Alert,"successColor",gt(O.success.light,.6)),le(O.Alert,"warningColor",gt(O.warning.light,.6)),le(O.Alert,"errorFilledBg",$("palette-error-main")),le(O.Alert,"infoFilledBg",$("palette-info-main")),le(O.Alert,"successFilledBg",$("palette-success-main")),le(O.Alert,"warningFilledBg",$("palette-warning-main")),le(O.Alert,"errorFilledColor",Hn(()=>O.getContrastText(O.error.main))),le(O.Alert,"infoFilledColor",Hn(()=>O.getContrastText(O.info.main))),le(O.Alert,"successFilledColor",Hn(()=>O.getContrastText(O.success.main))),le(O.Alert,"warningFilledColor",Hn(()=>O.getContrastText(O.warning.main))),le(O.Alert,"errorStandardBg",vt(O.error.light,.9)),le(O.Alert,"infoStandardBg",vt(O.info.light,.9)),le(O.Alert,"successStandardBg",vt(O.success.light,.9)),le(O.Alert,"warningStandardBg",vt(O.warning.light,.9)),le(O.Alert,"errorIconColor",$("palette-error-main")),le(O.Alert,"infoIconColor",$("palette-info-main")),le(O.Alert,"successIconColor",$("palette-success-main")),le(O.Alert,"warningIconColor",$("palette-warning-main")),le(O.AppBar,"defaultBg",$("palette-grey-100")),le(O.Avatar,"defaultBg",$("palette-grey-400")),le(O.Button,"inheritContainedBg",$("palette-grey-300")),le(O.Button,"inheritContainedHoverBg",$("palette-grey-A100")),le(O.Chip,"defaultBorder",$("palette-grey-400")),le(O.Chip,"defaultAvatarColor",$("palette-grey-700")),le(O.Chip,"defaultIconColor",$("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",vt(O.primary.main,.62)),le(O.LinearProgress,"secondaryBg",vt(O.secondary.main,.62)),le(O.LinearProgress,"errorBg",vt(O.error.main,.62)),le(O.LinearProgress,"infoBg",vt(O.info.main,.62)),le(O.LinearProgress,"successBg",vt(O.success.main,.62)),le(O.LinearProgress,"warningBg",vt(O.warning.main,.62)),le(O.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),le(O.Slider,"primaryTrack",vt(O.primary.main,.62)),le(O.Slider,"secondaryTrack",vt(O.secondary.main,.62)),le(O.Slider,"errorTrack",vt(O.error.main,.62)),le(O.Slider,"infoTrack",vt(O.info.main,.62)),le(O.Slider,"successTrack",vt(O.success.main,.62)),le(O.Slider,"warningTrack",vt(O.warning.main,.62));const X=Rc(O.background.default,.8);le(O.SnackbarContent,"bg",X),le(O.SnackbarContent,"color",Hn(()=>O.getContrastText(X))),le(O.SpeedDialAction,"fabHoverBg",Rc(O.background.paper,.15)),le(O.StepConnector,"border",$("palette-grey-400")),le(O.StepContent,"border",$("palette-grey-400")),le(O.Switch,"defaultColor",$("palette-common-white")),le(O.Switch,"defaultDisabledColor",$("palette-grey-100")),le(O.Switch,"primaryDisabledColor",vt(O.primary.main,.62)),le(O.Switch,"secondaryDisabledColor",vt(O.secondary.main,.62)),le(O.Switch,"errorDisabledColor",vt(O.error.main,.62)),le(O.Switch,"infoDisabledColor",vt(O.info.main,.62)),le(O.Switch,"successDisabledColor",vt(O.success.main,.62)),le(O.Switch,"warningDisabledColor",vt(O.warning.main,.62)),le(O.TableCell,"border",vt(Pc(O.divider,1),.88)),le(O.Tooltip,"bg",Pc(O.grey[700],.92))}if(O.mode==="dark"){le(O.Alert,"errorColor",vt(O.error.light,.6)),le(O.Alert,"infoColor",vt(O.info.light,.6)),le(O.Alert,"successColor",vt(O.success.light,.6)),le(O.Alert,"warningColor",vt(O.warning.light,.6)),le(O.Alert,"errorFilledBg",$("palette-error-dark")),le(O.Alert,"infoFilledBg",$("palette-info-dark")),le(O.Alert,"successFilledBg",$("palette-success-dark")),le(O.Alert,"warningFilledBg",$("palette-warning-dark")),le(O.Alert,"errorFilledColor",Hn(()=>O.getContrastText(O.error.dark))),le(O.Alert,"infoFilledColor",Hn(()=>O.getContrastText(O.info.dark))),le(O.Alert,"successFilledColor",Hn(()=>O.getContrastText(O.success.dark))),le(O.Alert,"warningFilledColor",Hn(()=>O.getContrastText(O.warning.dark))),le(O.Alert,"errorStandardBg",gt(O.error.light,.9)),le(O.Alert,"infoStandardBg",gt(O.info.light,.9)),le(O.Alert,"successStandardBg",gt(O.success.light,.9)),le(O.Alert,"warningStandardBg",gt(O.warning.light,.9)),le(O.Alert,"errorIconColor",$("palette-error-main")),le(O.Alert,"infoIconColor",$("palette-info-main")),le(O.Alert,"successIconColor",$("palette-success-main")),le(O.Alert,"warningIconColor",$("palette-warning-main")),le(O.AppBar,"defaultBg",$("palette-grey-900")),le(O.AppBar,"darkBg",$("palette-background-paper")),le(O.AppBar,"darkColor",$("palette-text-primary")),le(O.Avatar,"defaultBg",$("palette-grey-600")),le(O.Button,"inheritContainedBg",$("palette-grey-800")),le(O.Button,"inheritContainedHoverBg",$("palette-grey-700")),le(O.Chip,"defaultBorder",$("palette-grey-700")),le(O.Chip,"defaultAvatarColor",$("palette-grey-300")),le(O.Chip,"defaultIconColor",$("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",gt(O.primary.main,.5)),le(O.LinearProgress,"secondaryBg",gt(O.secondary.main,.5)),le(O.LinearProgress,"errorBg",gt(O.error.main,.5)),le(O.LinearProgress,"infoBg",gt(O.info.main,.5)),le(O.LinearProgress,"successBg",gt(O.success.main,.5)),le(O.LinearProgress,"warningBg",gt(O.warning.main,.5)),le(O.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),le(O.Slider,"primaryTrack",gt(O.primary.main,.5)),le(O.Slider,"secondaryTrack",gt(O.secondary.main,.5)),le(O.Slider,"errorTrack",gt(O.error.main,.5)),le(O.Slider,"infoTrack",gt(O.info.main,.5)),le(O.Slider,"successTrack",gt(O.success.main,.5)),le(O.Slider,"warningTrack",gt(O.warning.main,.5));const X=Rc(O.background.default,.98);le(O.SnackbarContent,"bg",X),le(O.SnackbarContent,"color",Hn(()=>O.getContrastText(X))),le(O.SpeedDialAction,"fabHoverBg",Rc(O.background.paper,.15)),le(O.StepConnector,"border",$("palette-grey-600")),le(O.StepContent,"border",$("palette-grey-600")),le(O.Switch,"defaultColor",$("palette-grey-300")),le(O.Switch,"defaultDisabledColor",$("palette-grey-600")),le(O.Switch,"primaryDisabledColor",gt(O.primary.main,.55)),le(O.Switch,"secondaryDisabledColor",gt(O.secondary.main,.55)),le(O.Switch,"errorDisabledColor",gt(O.error.main,.55)),le(O.Switch,"infoDisabledColor",gt(O.info.main,.55)),le(O.Switch,"successDisabledColor",gt(O.success.main,.55)),le(O.Switch,"warningDisabledColor",gt(O.warning.main,.55)),le(O.TableCell,"border",gt(Pc(O.divider,1),.68)),le(O.Tooltip,"bg",Pc(O.grey[700],.92))}gi(O.background,"default"),gi(O.background,"paper"),gi(O.common,"background"),gi(O.common,"onBackground"),gi(O,"divider"),Object.keys(O).forEach(X=>{const j=O[X];X!=="tonalOffset"&&j&&typeof j=="object"&&(j.main&&le(O[X],"mainChannel",pl(ml(j.main))),j.light&&le(O[X],"lightChannel",pl(ml(j.light))),j.dark&&le(O[X],"darkChannel",pl(ml(j.dark))),j.contrastText&&le(O[X],"contrastTextChannel",pl(ml(j.contrastText))),X==="text"&&(gi(O[X],"primary"),gi(O[X],"secondary")),X==="action"&&(j.active&&gi(O[X],"active"),j.selected&&gi(O[X],"selected")))})}),T=t.reduce((q,O)=>Dr(q,O),T);const A={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:o,getSelector:ZI(T)},{vars:R,generateThemeVars:D,generateStyleSheets:I}=TI(T,A);return T.vars=R,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([q,O])=>{T[q]=O}),T.generateThemeVars=D,T.generateStyleSheets=I,T.generateSpacing=function(){return PT(c.spacing,Th(this))},T.getColorSchemeSelector=SI(s),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=o,T.unstable_sxConfig=M(M({},Cu),c==null?void 0:c.unstable_sxConfig),T.unstable_sx=function(O){return Qo({sx:O,theme:this})},T.toRuntimeSource=qT,T}function L_(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]=B(M({},r!==!0&&r),{palette:Pv(B(M({},r===!0?{}:r.palette),{mode:t}))}))}function rL(e={},...t){const d=e,{palette:r,cssVariables:n=!1,colorSchemes:i=r?void 0:{light:!0},defaultColorScheme:a=r==null?void 0:r.mode}=d,o=xe(d,["palette","cssVariables","colorSchemes","defaultColorScheme"]),s=a||"light",u=i==null?void 0:i[s],c=M(M({},i),r?{[s]:B(M({},typeof u!="boolean"&&u),{palette:r})}:void 0);if(n===!1){if(!("colorSchemes"in e))return Qm(e,...t);let h=r;"palette"in e||c[s]&&(c[s]!==!0?h=c[s].palette:s==="dark"&&(h={mode:"dark"}));const p=Qm(B(M({},e),{palette:h}),...t);return p.defaultColorScheme=s,p.colorSchemes=c,p.palette.mode==="light"&&(p.colorSchemes.light=B(M({},c.light!==!0&&c.light),{palette:p.palette}),L_(p,"dark",c.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark=B(M({},c.dark!==!0&&c.dark),{palette:p.palette}),L_(p,"light",c.light)),p}return!r&&!("light"in c)&&s==="light"&&(c.light=!0),tL(M(B(M({},o),{colorSchemes:c,defaultColorScheme:s}),typeof n!="boolean"&&n),...t)}const Rv=rL(),Ov="$$material";function Tu(){const e=Ev(Rv);return process.env.NODE_ENV!=="production"&&Q.useDebugValue(e),e[Ov]||e}function KT(e){return fe.jsx(RT,B(M({},e),{defaultTheme:Rv,themeId:Ov}))}process.env.NODE_ENV!=="production"&&(KT.propTypes={styles:_.oneOfType([_.array,_.func,_.number,_.object,_.string,_.bool])});function nL(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Su=e=>nL(e)&&e!=="classes",Ne=NT({themeId:Ov,defaultTheme:Rv,rootShouldForwardProp:Su});function iL(e){return function(r){return fe.jsx(KT,{styles:typeof e=="function"?n=>e(M({theme:n},r)):e})}}function aL(){return ET}function Mt(e){return bI(e)}class kd{constructor(){tt(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 kd}static use(){const t=$T(kd.create).current,[r,n]=Q.useState(!1);return t.shouldMount=r,t.setShouldMount=n,Q.useEffect(t.mountEffect,[r]),t}mount(){return this.mounted||(this.mounted=sL(),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 oL(){return kd.use()}function sL(){let e,t;const r=new Promise((n,i)=>{e=n,t=i});return r.resolve=e,r.reject=t,r}function ZT(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 e0(e,t){return e0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},e0(e,t)}function QT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e0(e,t)}const F_={disabled:!1};var lL=process.env.NODE_ENV!=="production"?_.oneOfType([_.number,_.shape({enter:_.number,exit:_.number,appear:_.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&_.oneOfType([_.string,_.shape({enter:_.string,exit:_.string,active:_.string}),_.shape({enter:_.string,enterDone:_.string,enterActive:_.string,exit:_.string,exitDone:_.string,exitActive:_.string})]);const Dd=k.createContext(null);var gl="unmounted",_a="exited",wa="entering",Ao="entered",t0="exiting",Rn=function(e){QT(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=_a,a.appearStatus=wa):u=Ao:n.unmountOnExit||n.mountOnEnter?u=gl:u=_a,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===gl?{status:_a}: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!==wa&&o!==Ao&&(a=wa):(o===wa||o===Ao)&&(a=t0)}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===wa?((this.props.unmountOnExit||this.props.mountOnEnter)&&(this.props.nodeRef?this.props.nodeRef.current:Xr.findDOMNode(this)),this.performEnter(i)):this.performExit()):this.props.unmountOnExit&&this.state.status===_a&&this.setState({status:gl})},r.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,u=this.props.nodeRef?[s]:[Xr.findDOMNode(this),s],c=u[0],d=u[1],h=this.getTimeouts(),p=s?h.appear:h.enter;if(!i&&!o||F_.disabled){this.safeSetState({status:Ao},function(){a.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:wa},function(){a.props.onEntering(c,d),a.onTransitionEnd(p,function(){a.safeSetState({status:Ao},function(){a.props.onEntered(c,d)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:Xr.findDOMNode(this);if(!a||F_.disabled){this.safeSetState({status:_a},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:t0},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:_a},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:Xr.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],d=u[1];this.props.addEndListener(c,d)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===gl)return null;var a=this.props,o=a.children,s=ZT(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return k.createElement(Dd.Provider,{value:null},typeof o=="function"?o(i,s):k.cloneElement(k.Children.only(o),s))},t}(k.Component);Rn.contextType=Dd;Rn.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:_.shape({current:typeof Element=="undefined"?_.any:function(e,t,r,n,i,a){var o=e[t];return _.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,r,n,i,a)}}),children:_.oneOfType([_.func.isRequired,_.element.isRequired]).isRequired,in:_.bool,mountOnEnter:_.bool,unmountOnExit:_.bool,appear:_.bool,enter:_.bool,exit:_.bool,timeout:function(t){var r=lL;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:_.func,onEnter:_.func,onEntering:_.func,onEntered:_.func,onExit:_.func,onExiting:_.func,onExited:_.func}:{};function go(){}Rn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:go,onEntering:go,onEntered:go,onExit:go,onExiting:go,onExited:go};Rn.UNMOUNTED=gl;Rn.EXITED=_a;Rn.ENTERING=wa;Rn.ENTERED=Ao;Rn.EXITING=t0;function uL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kv(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 cL(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}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 Sa(e,t,r){return r[t]!=null?r[t]:e.props[t]}function dL(e,t){return kv(e.children,function(r){return k.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Sa(r,"appear",e),enter:Sa(r,"enter",e),exit:Sa(r,"exit",e)})})}function hL(e,t,r){var n=kv(e.children),i=cL(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],d=k.isValidElement(c)&&!c.props.in;u&&(!s||d)?i[a]=k.cloneElement(o,{onExited:r.bind(null,o),in:!0,exit:Sa(o,"exit",e),enter:Sa(o,"enter",e)}):!u&&s&&!d?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:Sa(o,"exit",e),enter:Sa(o,"enter",e)}))}}),i}var fL=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},pL={component:"div",childFactory:function(t){return t}},Dv=function(e){QT(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=a.handleExited.bind(uL(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?dL(i,s):hL(i,o,s),firstRender:!1}},r.handleExited=function(i,a){var o=kv(this.props.children);i.key in o||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(s){var u=Hl({},s.children);return delete u[i.key],{children:u}}))},r.render=function(){var i=this.props,a=i.component,o=i.childFactory,s=ZT(i,["component","childFactory"]),u=this.state.contextValue,c=fL(this.state.children).map(o);return delete s.appear,delete s.enter,delete s.exit,a===null?k.createElement(Dd.Provider,{value:u},c):k.createElement(Dd.Provider,{value:u},k.createElement(a,s,c))},t}(k.Component);Dv.propTypes=process.env.NODE_ENV!=="production"?{component:_.any,children:_.node,appear:_.bool,enter:_.bool,exit:_.bool,childFactory:_.func}:{};Dv.defaultProps=pL;function JT(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:u,timeout:c}=e,[d,h]=Q.useState(!1),p=je(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),m={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},v=je(r.child,d&&r.childLeaving,n&&r.childPulsate);return!s&&!d&&h(!0),Q.useEffect(()=>{if(!s&&u!=null){const g=setTimeout(u,c);return()=>{clearTimeout(g)}}},[u,s,c]),fe.jsx("span",{className:p,style:m,children:fe.jsx("span",{className:v})})}process.env.NODE_ENV!=="production"&&(JT.propTypes={classes:_.object.isRequired,className:_.string,in:_.bool,onExited:_.func,pulsate:_.bool,rippleSize:_.number,rippleX:_.number,rippleY:_.number,timeout:_.number.isRequired});const fn=bt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),r0=550,mL=80,gL=xu`
78
+ 0% {
79
+ transform: scale(0);
80
+ opacity: 0.1;
81
+ }
82
+
83
+ 100% {
84
+ transform: scale(1);
85
+ opacity: 0.3;
86
+ }
87
+ `,vL=xu`
88
+ 0% {
89
+ opacity: 1;
90
+ }
91
+
92
+ 100% {
93
+ opacity: 0;
94
+ }
95
+ `,yL=xu`
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
+ `,bL=Ne("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),_L=Ne(JT,{name:"MuiTouchRipple",slot:"Ripple"})`
108
+ opacity: 0;
109
+ position: absolute;
110
+
111
+ &.${fn.rippleVisible} {
112
+ opacity: 0.3;
113
+ transform: scale(1);
114
+ animation-name: ${gL};
115
+ animation-duration: ${r0}ms;
116
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
117
+ }
118
+
119
+ &.${fn.ripplePulsate} {
120
+ animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
121
+ }
122
+
123
+ & .${fn.child} {
124
+ opacity: 1;
125
+ display: block;
126
+ width: 100%;
127
+ height: 100%;
128
+ border-radius: 50%;
129
+ background-color: currentColor;
130
+ }
131
+
132
+ & .${fn.childLeaving} {
133
+ opacity: 0;
134
+ animation-name: ${vL};
135
+ animation-duration: ${r0}ms;
136
+ animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
137
+ }
138
+
139
+ & .${fn.childPulsate} {
140
+ position: absolute;
141
+ /* @noflip */
142
+ left: 0px;
143
+ top: 0;
144
+ animation-name: ${yL};
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
+ `,eS=Q.forwardRef(function(t,r){const T=Mt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=T,s=xe(T,["center","classes","className"]),[u,c]=Q.useState([]),d=Q.useRef(0),h=Q.useRef(null);Q.useEffect(()=>{h.current&&(h.current(),h.current=null)},[u]);const p=Q.useRef(!1),m=Ta(),v=Q.useRef(null),g=Q.useRef(null),b=Q.useCallback(A=>{const{pulsate:R,rippleX:D,rippleY:I,rippleSize:H,cb:G}=A;c(q=>[...q,fe.jsx(_L,{classes:{ripple:je(a.ripple,fn.ripple),rippleVisible:je(a.rippleVisible,fn.rippleVisible),ripplePulsate:je(a.ripplePulsate,fn.ripplePulsate),child:je(a.child,fn.child),childLeaving:je(a.childLeaving,fn.childLeaving),childPulsate:je(a.childPulsate,fn.childPulsate)},timeout:r0,pulsate:R,rippleX:D,rippleY:I,rippleSize:H},d.current)]),d.current+=1,h.current=G},[a]),C=Q.useCallback((A={},R={},D=()=>{})=>{const{pulsate:I=!1,center:H=i||R.pulsate,fakeElement:G=!1}=R;if((A==null?void 0:A.type)==="mousedown"&&p.current){p.current=!1;return}(A==null?void 0:A.type)==="touchstart"&&(p.current=!0);const q=G?null:g.current,O=q?q.getBoundingClientRect():{width:0,height:0,left:0,top:0};let $,X,j;if(H||A===void 0||A.clientX===0&&A.clientY===0||!A.clientX&&!A.touches)$=Math.round(O.width/2),X=Math.round(O.height/2);else{const{clientX:V,clientY:z}=A.touches&&A.touches.length>0?A.touches[0]:A;$=Math.round(V-O.left),X=Math.round(z-O.top)}if(H)j=Math.sqrt((2*Bn(O.width,2)+Bn(O.height,2))/3),j%2===0&&(j+=1);else{const V=Math.max(Math.abs((q?q.clientWidth:0)-$),$)*2+2,z=Math.max(Math.abs((q?q.clientHeight:0)-X),X)*2+2;j=Math.sqrt(Bn(V,2)+Bn(z,2))}A!=null&&A.touches?v.current===null&&(v.current=()=>{b({pulsate:I,rippleX:$,rippleY:X,rippleSize:j,cb:D})},m.start(mL,()=>{v.current&&(v.current(),v.current=null)})):b({pulsate:I,rippleX:$,rippleY:X,rippleSize:j,cb:D})},[i,b,m]),x=Q.useCallback(()=>{C({},{pulsate:!0})},[C]),E=Q.useCallback((A,R)=>{if(m.clear(),(A==null?void 0:A.type)==="touchend"&&v.current){v.current(),v.current=null,m.start(0,()=>{E(A,R)});return}v.current=null,c(D=>D.length>0?D.slice(1):D),h.current=R},[m]);return Q.useImperativeHandle(r,()=>({pulsate:x,start:C,stop:E}),[x,C,E]),fe.jsx(bL,B(M({className:je(fn.root,a.root,o),ref:g},s),{children:fe.jsx(Dv,{component:null,exit:!0,children:u})}))});process.env.NODE_ENV!=="production"&&(eS.propTypes={center:_.bool,classes:_.object,className:_.string});function wL(e){return yt("MuiButtonBase",e)}const CL=bt("MuiButtonBase",["root","disabled","focusVisible"]),xL=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=Dt({root:["root",t&&"disabled",r&&"focusVisible"]},wL,i);return r&&n&&(o.root+=` ${n}`),o},TL=Ne("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"},[`&.${CL.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ua=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiButtonBase"}),Nt=n,{action:i,centerRipple:a=!1,children:o,className:s,component:u="button",disabled:c=!1,disableRipple:d=!1,disableTouchRipple:h=!1,focusRipple:p=!1,focusVisibleClassName:m,LinkComponent:v="a",onBlur:g,onClick:b,onContextMenu:C,onDragLeave:x,onFocus:E,onFocusVisible:T,onKeyDown:A,onKeyUp:R,onMouseDown:D,onMouseLeave:I,onMouseUp:H,onTouchEnd:G,onTouchMove:q,onTouchStart:O,tabIndex:$=0,TouchRippleProps:X,touchRippleRef:j,type:V}=Nt,z=xe(Nt,["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"]),Y=Q.useRef(null),re=oL(),W=gr(re.ref,j),[K,ie]=Q.useState(!1);c&&K&&ie(!1),Q.useImperativeHandle(i,()=>({focusVisible:()=>{ie(!0),Y.current.focus()}}),[]);const ne=re.shouldMount&&!d&&!c;Q.useEffect(()=>{K&&p&&!d&&re.pulsate()},[d,p,K,re]);const te=vi(re,"start",D,h),oe=vi(re,"stop",C,h),se=vi(re,"stop",x,h),de=vi(re,"stop",H,h),ce=vi(re,"stop",Re=>{K&&Re.preventDefault(),I&&I(Re)},h),ge=vi(re,"start",O,h),Se=vi(re,"stop",G,h),ye=vi(re,"stop",q,h),J=vi(re,"stop",Re=>{Pd(Re.target)||ie(!1),g&&g(Re)},!1),_e=Kn(Re=>{Y.current||(Y.current=Re.currentTarget),Pd(Re.target)&&(ie(!0),T&&T(Re)),E&&E(Re)}),ve=()=>{const Re=Y.current;return u&&u!=="button"&&!(Re.tagName==="A"&&Re.href)},Ae=Kn(Re=>{p&&!Re.repeat&&K&&Re.key===" "&&re.stop(Re,()=>{re.start(Re)}),Re.target===Re.currentTarget&&ve()&&Re.key===" "&&Re.preventDefault(),A&&A(Re),Re.target===Re.currentTarget&&ve()&&Re.key==="Enter"&&!c&&(Re.preventDefault(),b&&b(Re))}),Ie=Kn(Re=>{p&&Re.key===" "&&K&&!Re.defaultPrevented&&re.stop(Re,()=>{re.pulsate(Re)}),R&&R(Re),b&&Re.target===Re.currentTarget&&ve()&&Re.key===" "&&!Re.defaultPrevented&&b(Re)});let Ue=u;Ue==="button"&&(z.href||z.to)&&(Ue=v);const Ve={};Ue==="button"?(Ve.type=V===void 0?"button":V,Ve.disabled=c):(!z.href&&!z.to&&(Ve.role="button"),c&&(Ve["aria-disabled"]=c));const ir=gr(r,Y),At=B(M({},n),{centerRipple:a,component:u,disabled:c,disableRipple:d,disableTouchRipple:h,focusRipple:p,tabIndex:$,focusVisible:K}),Wt=xL(At);return fe.jsxs(TL,B(M(M({as:Ue,className:je(Wt.root,s),ownerState:At,onBlur:J,onClick:b,onContextMenu:oe,onFocus:_e,onKeyDown:Ae,onKeyUp:Ie,onMouseDown:te,onMouseLeave:ce,onMouseUp:de,onDragLeave:se,onTouchEnd:Se,onTouchMove:ye,onTouchStart:ge,ref:ir,tabIndex:c?-1:$,type:V},Ve),z),{children:[o,ne?fe.jsx(eS,M({ref:W,center:a},X)):null]}))});function vi(e,t,r,n=!1){return Kn(i=>(r&&r(i),n||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(Ua.propTypes={action:cs,centerRipple:_.bool,children:_.node,classes:_.object,className:_.string,component:bh,disabled:_.bool,disableRipple:_.bool,disableTouchRipple:_.bool,focusRipple:_.bool,focusVisibleClassName:_.string,href:_.any,LinkComponent:_.elementType,onBlur:_.func,onClick:_.func,onContextMenu:_.func,onDragLeave:_.func,onFocus:_.func,onFocusVisible:_.func,onKeyDown:_.func,onKeyUp:_.func,onMouseDown:_.func,onMouseLeave:_.func,onMouseUp:_.func,onTouchEnd:_.func,onTouchMove:_.func,onTouchStart:_.func,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),tabIndex:_.number,TouchRippleProps:_.object,touchRippleRef:_.oneOfType([_.func,_.shape({current:_.shape({pulsate:_.func.isRequired,start:_.func.isRequired,stop:_.func.isRequired})})]),type:_.oneOfType([_.oneOf(["button","reset","submit"]),_.string])});function SL(e){return typeof e.main=="string"}function EL(e,t=[]){if(!SL(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function ea(e=[]){return([,t])=>t&&EL(t,e)}const $t=_I;function ML(e){return yt("MuiSvgIcon",e)}bt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const AL=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${Le(t)}`,`fontSize${Le(r)}`]};return Dt(i,ML,n)},PL=Ne("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)}`]]}})($t(({theme:e})=>{var t,r,n,i,a,o,s,u,c,d,h,p,m,v,g,b,C,x;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:((h=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:h.call(d,35))||"2.1875rem"}},...Object.entries(((p=e.vars)!=null?p:e).palette).filter(([,E])=>E&&E.main).map(([E])=>{var T,A,R;return{props:{color:E},style:{color:(R=(A=((T=e.vars)!=null?T:e).palette)==null?void 0:A[E])==null?void 0:R.main}}}),{props:{color:"action"},style:{color:(g=(v=((m=e.vars)!=null?m:e).palette)==null?void 0:v.action)==null?void 0:g.active}},{props:{color:"disabled"},style:{color:(x=(C=((b=e.vars)!=null?b:e).palette)==null?void 0:C.action)==null?void 0:x.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Nd=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiSvgIcon"}),x=n,{children:i,className:a,color:o="inherit",component:s="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:d=!1,titleAccess:h,viewBox:p="0 0 24 24"}=x,m=xe(x,["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"]),v=Q.isValidElement(i)&&i.type==="svg",g=B(M({},n),{color:o,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:v}),b={};d||(b.viewBox=p);const C=AL(g);return fe.jsxs(PL,B(M(M(M({as:s,className:je(C.root,a),focusable:"false",color:c,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r},b),m),v&&i.props),{ownerState:g,children:[v?i.props.children:i,h?fe.jsx("title",{children:h}):null]}))});process.env.NODE_ENV!=="production"&&(Nd.propTypes={children:_.node,classes:_.object,className:_.string,color:_.oneOfType([_.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),_.string]),component:_.elementType,fontSize:_.oneOfType([_.oneOf(["inherit","large","medium","small"]),_.string]),htmlColor:_.string,inheritViewBox:_.bool,shapeRendering:_.string,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),titleAccess:_.string,viewBox:_.string});Nd.muiName="SvgIcon";function fs(e,t){function r(n,i){return fe.jsx(Nd,B(M({"data-testid":`${t}Icon`,ref:i},n),{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Nd.muiName,Q.memo(Q.forwardRef(r))}const RL=fs(fe.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),OL=fs(fe.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),kL=fs(fe.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),DL=fs(fe.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");function lr(e,t){const A=t,{className:r,elementType:n,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1}=A,u=xe(A,["className","elementType","ownerState","externalForwardedProps","internalForwardedProps","shouldForwardComponentProp"]),R=a,{component:c,slots:d={[e]:void 0},slotProps:h={[e]:void 0}}=R,p=xe(R,["component","slots","slotProps"]),m=d[e]||n,v=WT(h[e],i),D=jT(B(M({className:r},u),{externalForwardedProps:e==="root"?p:void 0,externalSlotProps:v})),{props:I}=D,H=I,{component:g}=H,b=xe(H,["component"]),{internalRef:C}=D,x=gr(C,v==null?void 0:v.ref,t.ref),E=e==="root"?g||c:g,T=HT(m,B(M(M(M(M(M({},e==="root"&&!c&&!d[e]&&o),e!=="root"&&!d[e]&&o),b),E&&!s&&{as:E}),E&&s&&{component:E}),{ref:x}),i);return[m,T]}const tS=(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]},NL=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 Dt(c,$D,t)},IL=Ne("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:tS})($t(({theme:e})=>B(M({},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",[`&.${Ar.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)}}]}))),LL=Ne(Ua,{name:"MuiPaginationItem",slot:"Root",overridesResolver:tS})($t(({theme:e})=>B(M({},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,[`&.${Ar.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ar.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"}},[`&.${Ar.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}))`:Rt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ar.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${Ar.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)"}`,[`&.${Ar.selected}`]:{[`&.${Ar.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${Ar.selected}`]:{[`&.${Ar.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(ea(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${Ar.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}},[`&.${Ar.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${Ar.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(ea(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${Ar.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:Rt(e.palette[t].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:Rt(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}))`:Rt(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ar.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rt(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}}}}))]}))),FL=Ne("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})($t(({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)}}]}))),rS=Q.forwardRef(function(t,r){var Y,re,W,K;const n=Mt({props:t,name:"MuiPaginationItem"}),z=n,{className:i,color:a="standard",component:o,components:s={},disabled:u=!1,page:c,selected:d=!1,shape:h="circular",size:p="medium",slots:m={},slotProps:v={},type:g="page",variant:b="text"}=z,C=xe(z,["className","color","component","components","disabled","page","selected","shape","size","slots","slotProps","type","variant"]),x=B(M({},n),{color:a,disabled:u,selected:d,shape:h,size:p,type:g,variant:b}),E=yh(),T=NL(x),A={slots:{previous:(Y=m.previous)!=null?Y:s.previous,next:(re=m.next)!=null?re:s.next,first:(W=m.first)!=null?W:s.first,last:(K=m.last)!=null?K:s.last},slotProps:v},[R,D]=lr("previous",{elementType:kL,externalForwardedProps:A,ownerState:x}),[I,H]=lr("next",{elementType:DL,externalForwardedProps:A,ownerState:x}),[G,q]=lr("first",{elementType:RL,externalForwardedProps:A,ownerState:x}),[O,$]=lr("last",{elementType:OL,externalForwardedProps:A,ownerState:x}),X=E?{previous:"next",next:"previous",first:"last",last:"first"}[g]:g,j={previous:R,next:I,first:G,last:O}[X],V={previous:D,next:H,first:q,last:$}[X];return g==="start-ellipsis"||g==="end-ellipsis"?fe.jsx(IL,{ref:r,ownerState:x,className:je(T.root,i),children:"…"}):fe.jsxs(LL,B(M({ref:r,ownerState:x,component:o,disabled:u,className:je(T.root,i)},C),{children:[g==="page"&&c,j?fe.jsx(FL,B(M({},V),{className:T.icon,as:j})):null]}))});process.env.NODE_ENV!=="production"&&(rS.propTypes={children:_.node,classes:_.object,className:_.string,color:_.oneOfType([_.oneOf(["primary","secondary","standard"]),_.string]),component:_.elementType,components:_.shape({first:_.elementType,last:_.elementType,next:_.elementType,previous:_.elementType}),disabled:_.bool,page:_.node,selected:_.bool,shape:_.oneOf(["circular","rounded"]),size:_.oneOfType([_.oneOf(["small","medium","large"]),_.string]),slotProps:_.shape({first:_.oneOfType([_.func,_.object]),last:_.oneOfType([_.func,_.object]),next:_.oneOfType([_.func,_.object]),previous:_.oneOfType([_.func,_.object])}),slots:_.shape({first:_.elementType,last:_.elementType,next:_.elementType,previous:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),type:_.oneOf(["end-ellipsis","first","last","next","page","previous","start-ellipsis"]),variant:_.oneOfType([_.oneOf(["outlined","text"]),_.string])});const $L=e=>{const{classes:t,variant:r}=e;return Dt({root:["root",r],ul:["ul"]},kD,t)},BL=Ne("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),HL=Ne("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function zL(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const nS=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiPagination"}),G=n,{boundaryCount:i=1,className:a,color:o="standard",count:s=1,defaultPage:u=1,disabled:c=!1,getItemAriaLabel:d=zL,hideNextButton:h=!1,hidePrevButton:p=!1,onChange:m,page:v,renderItem:g=q=>fe.jsx(rS,M({},q)),shape:b="circular",showFirstButton:C=!1,showLastButton:x=!1,siblingCount:E=1,size:T="medium",variant:A="text"}=G,R=xe(G,["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"]),{items:D}=DD(B(M({},n),{componentName:"Pagination"})),I=B(M({},n),{boundaryCount:i,color:o,count:s,defaultPage:u,disabled:c,getItemAriaLabel:d,hideNextButton:h,hidePrevButton:p,renderItem:g,shape:b,showFirstButton:C,showLastButton:x,siblingCount:E,size:T,variant:A}),H=$L(I);return fe.jsx(BL,B(M({"aria-label":"pagination navigation",className:je(H.root,a),ownerState:I,ref:r},R),{children:fe.jsx(HL,{className:H.ul,ownerState:I,children:D.map((q,O)=>fe.jsx("li",{children:g(B(M({},q),{color:o,"aria-label":d(q.type,q.page,q.selected),shape:b,size:T,variant:A}))},O))})}))});process.env.NODE_ENV!=="production"&&(nS.propTypes={boundaryCount:Vn,classes:_.object,className:_.string,color:_.oneOfType([_.oneOf(["primary","secondary","standard"]),_.string]),count:Vn,defaultPage:Vn,disabled:_.bool,getItemAriaLabel:_.func,hideNextButton:_.bool,hidePrevButton:_.bool,onChange:_.func,page:Vn,renderItem:_.func,shape:_.oneOf(["circular","rounded"]),showFirstButton:_.bool,showLastButton:_.bool,siblingCount:Vn,size:_.oneOfType([_.oneOf(["small","medium","large"]),_.string]),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),variant:_.oneOfType([_.oneOf(["outlined","text"]),_.string])});const $_={table:{columns:[],rows:[]}};function ta(e){return e===void 0||typeof e=="string"||"title"in e&&"type"in e}const Nr={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 Nv(e){return[N.customFormula(Nr.BOX_MIN_VALUE_NAME,"QUARTILE([Attr], 1)",{Attr:e}),N.customFormula(Nr.BOX_MEDIAN_VALUE_NAME,"MEDIAN([Attr])",{Attr:e}),N.customFormula(Nr.BOX_MAX_VALUE_NAME,"QUARTILE([Attr], 3)",{Attr:e})]}function jL(e){return[...Nv(e),N.customFormula(Nr.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_IQR([Attr])",{Attr:e}),N.customFormula(Nr.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_IQR([Attr])",{Attr:e}),N.customFormula(Nr.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_IQR([Attr])",{Attr:e})]}function WL(e){return[...Nv(e),N.customFormula(Nr.WHISKER_MIN_VALUE_NAME,"MIN([Attr])",{Attr:e}),N.customFormula(Nr.WHISKER_MAX_VALUE_NAME,"MAX([Attr])",{Attr:e})]}function UL(e){return[...Nv(e),N.customFormula(Nr.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_STDEVP([Attr])",{Attr:e}),N.customFormula(Nr.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_STDEVP([Attr])",{Attr:e}),N.customFormula(Nr.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_STDEVP([Attr])",{Attr:e})]}const VL=N.withComposeCodeForAnalytics(e=>{const t=N.cloneDeep(e),r=N.customFormula(Nr.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_IQR([Attr]), all([Attr]))",{Attr:e}),n=N.customFormula(Nr.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"),GL=N.withComposeCodeForAnalytics(e=>{const t=N.cloneDeep(e),r=N.customFormula(Nr.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_STDEVP([Attr]), all([Attr]))",{Attr:e}),n=N.customFormula(Nr.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"),qL=e=>({type:"boxplot",xValues:[],series:[{name:e,title:e,data:[]}]}),YL=(e,t)=>{const{valueTitle:r}=e,n=e.boxMin&&w.getColumnByName(t,e.boxMin.column.name),i=e.boxMedian&&w.getColumnByName(t,e.boxMedian.column.name),a=e.boxMax&&w.getColumnByName(t,e.boxMax.column.name),o=e.whiskerMin&&w.getColumnByName(t,e.whiskerMin.column.name),s=e.whiskerMax&&w.getColumnByName(t,e.whiskerMax.column.name);if(!n||!i||!a||!o||!s)return qL(r);const u=e.category&&w.getColumnByName(t,e.category.column.name);u&&(u.direction=w.sortDirection(e.category.sortType));const c=w.getOrderedXValues(t,[],u?[u]:[],(u==null?void 0:u.direction)===0?w.rownumColumnName:void 0),d=w.getIndexedRows(t.rows,u?[u]:[]),h=e.outliers&&w.getColumnByName(t,e.outliers.column.name),p=[],m=[];c.forEach((g,b)=>{const C=d[g.key],x=C?C[0]:[],E=u&&!!w.isBlurred(x,u);p.push({q1:n?w.getValue(x,n):0,median:i?w.getValue(x,i):0,q3:a?w.getValue(x,a):0,low:o?w.getValue(x,o):0,high:s?w.getValue(x,s):0,blur:E});const T=h?x[h.index].rawValue.split(",").map(A=>parseFloat(A)):[];m.push(...T.map(A=>({x:b,y:A,blur:E})))});const v=[{name:e.valueTitle,title:e.valueTitle,data:p}];return m.length>0&&v.push({name:e.valueTitle,title:e.valueTitle,data:m}),{type:"boxplot",xValues:c,series:v}};function XL(e){return e.type==="boxplot"}const KL=(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}),Nh=({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(),d=k.useRef(null),h=k.useCallback(()=>{var R,D;const A={width:(R=s.current)==null?void 0:R.offsetWidth,height:(D=s.current)==null?void 0:D.offsetHeight};c(I=>{const H=(I==null?void 0:I.width)===0&&A.width===t.width,G=(I==null?void 0:I.height)===0&&A.height===t.height,q={width:H?I.width:A.width,height:G?I.height:A.height};return N.isEqual(I,q)?I:q})},[t]),p=k.useCallback(()=>{d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{h()},o)},[h,o]);k.useLayoutEffect(()=>{h()},[h]),k.useEffect(()=>{const A=s.current;if(!A)return;const R=new ResizeObserver(()=>{p()});return R.observe(A),()=>{R.disconnect(),d.current&&clearTimeout(d.current)}},[p]);const m=k.useMemo(()=>KL(u,r,t),[u,t,r]),v=!!u;k.useEffect(()=>{v&&a&&a(m)},[m,v,a]);const g={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%"},b=(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,x={width:b||i!=null&&i.width?"100%":`${m.width}px`,height:C||i!=null&&i.height?"100%":`${m.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},T=n?`${m==null?void 0:m.width}${m==null?void 0:m.height}`:"";return w.jsx("div",{style:g,ref:s,children:w.jsx("div",{style:x,children:w.jsx("div",{style:E,children:typeof e=="function"?e(m):e})},T)})},iS=32,aS={width:400,height:500},ZL={width:400,height:400},QL={width:400,height:500},JL={width:200,height:200},Ih=e=>N.isTable(e)?QL:N.isIndicator(e)?JL:ZL,oS=(e,{hasHeader:t}={})=>{const r=e==="pivot"?aS:Ih(e);return t?{width:r.width,height:r.height+iS}:r},Iv=k.createContext({isInitialized:!1,tracking:{enabled:!0,packageName:"sdk-ui"},errorBoundary:{showErrorBox:!0}}),_t=()=>k.useContext(Iv);function e4(){const[e,t]=k.useState(null);return k.useEffect(()=>{N.initializeI18n().initPromise.then(r=>t(r))},[]),e}const sS=({children:e,userLanguage:t,customTranslations:r=[]})=>{const n=e4();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&&w.jsx(yD,{i18n:n,children:e})},t4=()=>e=>function(r){const{isInitialized:n}=_t();return n?w.jsx(e,M({},r)):w.jsx(sS,{children:w.jsx(e,M({},r))})},Lv="#F2F2F2",Fv=4,$v="#D5D5D5",Bv=1,Hv="#D5D5D5",zv=1,jv="#DADADA",Wv=1,Uv="#DADADA",Vv=1,Gv=15,qv="#1FAFF3",lS="#1FCCF3",r4={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:"#70747D",hyperlinkColor:qv,hyperlinkHoverColor:lS},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:Gv,titleAlignment:"Left",dividerLine:!1,dividerLineColor:"#5B6372",backgroundColor:"#FFFFFF"}},dashboard:{backgroundColor:"#FFFFFF",dividerLineWidth:Fv,dividerLineColor:Lv,borderColor:$v,borderWidth:Bv,toolbar:{primaryTextColor:"#5B6372",secondaryTextColor:"#9EA2AB",backgroundColor:"#FFFFFF",dividerLineColor:Hv,dividerLineWidth:zv}},filter:{panel:{titleColor:"#5B6372",backgroundColor:"#F6F6F6",dividerLineColor:jv,dividerLineWidth:Wv,borderColor:Uv,borderWidth:Vv}},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)"}}},n4={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:qv,hyperlinkHoverColor:lS},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:Gv,dividerLine:!1,dividerLineColor:"#FFFFFF",backgroundColor:"#313138"}},dashboard:{backgroundColor:"#313138",dividerLineWidth:Fv,dividerLineColor:Lv,borderColor:$v,borderWidth:Bv,toolbar:{primaryTextColor:"#FFFFFF",secondaryTextColor:"#C5C8CF",backgroundColor:"#313138",dividerLineColor:Hv,dividerLineWidth:zv}},filter:{panel:{titleColor:"#FFFFFF",backgroundColor:"#313138",dividerLineColor:jv,dividerLineWidth:Wv,borderColor:Uv,borderWidth:Vv}},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)"}}},Id=(e=!1)=>e?N.cloneDeep(n4):N.cloneDeep(r4),Yv=k.createContext({themeSettings:Id()}),mt=()=>k.useContext(Yv);function uS({color:e="#FFCB05"}){return w.jsx("svg",{width:"53px",height:"53px",viewBox:"0 0 53 53",children:w.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:w.jsxs("g",{children:[w.jsx("polygon",{points:"26.4996 -0.000100000005 -0.000400000001 26.5009 26.4996 52.9999 53.0006 26.5009",fill:e}),w.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 i4="_container_1wquj_1",a4="_card_1wquj_11",o4="_text_1wquj_19",jp={container:i4,card:a4,text:o4},Xv=({error:e=new N.TranslatableError("errors.componentRenderError")})=>{var p,m,v,g,b,C;const{themeSettings:t}=mt(),{app:r}=_t(),{t:n}=w.useTranslation(),[i,a]=k.useState(!1),o=()=>{a(!0)},s=()=>{a(!1)},u=w.jsx("div",{className:"csdk-flex csdk-justify-center csdk-mb-[10px]",children:w.jsx(uS,{color:(p=t==null?void 0:t.general)==null?void 0:p.brandColor})}),c=e instanceof N.AbstractTranslatableError?n(e.key,M({},e.interpolationOptions)):n(e instanceof Error?e.message:e),d=n("errorBoxText",{errorMessage:c,interpolation:{escapeValue:!1}}),h=(v=(m=r==null?void 0:r.settings)==null?void 0:m.errorBoundaryConfig)==null?void 0:v.alwaysShowErrorText;return w.jsx("div",{onMouseEnter:h?void 0:o,onMouseLeave:h?void 0:s,className:jp.container,"aria-label":"error-box",children:w.jsxs("div",{className:jp.card,style:{backgroundColor:((g=t==null?void 0:t.general)==null?void 0:g.backgroundColor)||"rgba(255,255,255,0.5)"},children:[u,(h||i)&&w.jsx("div",{className:jp.text,style:{color:((b=t==null?void 0:t.typography)==null?void 0:b.primaryTextColor)||w.DEFAULT_TEXT_COLOR,fontFamily:((C=t==null?void 0:t.typography)==null?void 0:C.fontFamily)||"inherit"},children:d})]})})};let cS=class extends k.Component{constructor(r){super(r);tt(this,"showErrorBox",!0);tt(this,"onError");tt(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&&s4(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||w.jsx(Xv,{error:u}):null}};function s4(e=[],t=[]){return e.length!==t.length||e.some((r,n)=>!N.isEqual(r,t[n]))}const dS=({componentName:e})=>t=>function(n){const i=_t(),a=o=>{var s,u;return(u=(s=i.errorBoundary).onError)==null?void 0:u.call(s,o,{componentName:e,componentProps:n})};return w.jsx(cS,{resetKeys:Object.values(n),showErrorBox:i.errorBoundary.showErrorBox,onError:a,isContainerComponent:!!(n!=null&&n.children),children:w.jsx(t,M({},n))})},Kv=k.createContext(null),Lh=()=>k.useContext(Kv),Wl=Q.createContext({});process.env.NODE_ENV!=="production"&&(Wl.displayName="ListContext");function l4(e){return yt("MuiDivider",e)}const B_=bt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),u4=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:s,variant:u}=e;return Dt({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"]},l4,n)},c4=Ne("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]}})($t(({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)`:Rt(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%"}}}]}))),d4=Ne("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})($t(({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)`}}]}))),Aa=Q.forwardRef(function(t,r){const n=Mt({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:d=!1,role:h=u!=="hr"?"separator":void 0,textAlign:p="center",variant:m="fullWidth"}=C,v=xe(C,["absolute","children","className","orientation","component","flexItem","light","role","textAlign","variant"]),g=B(M({},n),{absolute:i,component:u,flexItem:c,light:d,orientation:s,role:h,textAlign:p,variant:m}),b=u4(g);return fe.jsx(c4,B(M({as:u,className:je(b.root,o),role:h,ref:r,ownerState:g,"aria-orientation":h==="separator"&&(u!=="hr"||s==="vertical")?s:void 0},v),{children:a?fe.jsx(d4,{className:b.wrapper,ownerState:g,children:a}):null}))});Aa&&(Aa.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(Aa.propTypes={absolute:_.bool,children:_.node,classes:_.object,className:_.string,component:_.elementType,flexItem:_.bool,light:_.bool,orientation:_.oneOf(["horizontal","vertical"]),role:_.string,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),textAlign:_.oneOf(["center","left","right"]),variant:_.oneOfType([_.oneOf(["fullWidth","inset","middle"]),_.string])});const H_=bt("MuiListItemIcon",["root","alignItemsFlexStart"]);function h4(e){return yt("MuiTypography",e)}const f4=bt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),p4={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},m4=aL(),g4=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 Dt(s,h4,o)},v4=Ne("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]}})($t(({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(ea()).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}}]}})),z_={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},qr=Q.forwardRef(function(t,r){const E=Mt({props:t,name:"MuiTypography"}),{color:n}=E,i=xe(E,["color"]),a=!p4[n],o=m4(M(M({},i),a&&{color:n})),T=o,{align:s="inherit",className:u,component:c,gutterBottom:d=!1,noWrap:h=!1,paragraph:p=!1,variant:m="body1",variantMapping:v=z_}=T,g=xe(T,["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"]),b=B(M({},o),{align:s,color:n,className:u,component:c,gutterBottom:d,noWrap:h,paragraph:p,variant:m,variantMapping:v}),C=c||(p?"p":v[m]||z_[m])||"span",x=g4(b);return fe.jsx(v4,B(M({as:C,ref:r,className:je(x.root,u)},g),{ownerState:b,style:M(M({},s!=="inherit"&&{"--Typography-textAlign":s}),g.style)}))});process.env.NODE_ENV!=="production"&&(qr.propTypes={align:_.oneOf(["center","inherit","justify","left","right"]),children:_.node,classes:_.object,className:_.string,color:_.oneOfType([_.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),_.string]),component:_.elementType,gutterBottom:_.bool,noWrap:_.bool,paragraph:_.bool,style:_.object,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),variant:_.oneOfType([_.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),_.string]),variantMapping:_.object});function y4(e){return yt("MuiListItemText",e)}const n0=bt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function b4(e){return yt("MuiMenuItem",e)}const Zs=bt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),_4=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},w4=e=>{const{disabled:t,dense:r,divider:n,disableGutters:i,selected:a,classes:o}=e,u=Dt({root:["root",r&&"dense",t&&"disabled",!i&&"gutters",n&&"divider",a&&"selected"]},b4,o);return M(M({},o),u)},C4=Ne(Ua,{shouldForwardProp:e=>Su(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:_4})($t(({theme:e})=>B(M({},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"}},[`&.${Zs.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Zs.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Zs.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rt(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})`:Rt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Zs.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Zs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${B_.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${B_.inset}`]:{marginLeft:52},[`& .${n0.root}`]:{marginTop:0,marginBottom:0},[`& .${n0.inset}`]:{paddingLeft:36},[`& .${H_.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:B(M({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2),{[`& .${H_.root} svg`]:{fontSize:"1.25rem"}})}]}))),Fh=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiMenuItem"}),A=n,{autoFocus:i=!1,component:a="li",dense:o=!1,divider:s=!1,disableGutters:u=!1,focusVisibleClassName:c,role:d="menuitem",tabIndex:h,className:p}=A,m=xe(A,["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"]),v=Q.useContext(Wl),g=Q.useMemo(()=>({dense:o||v.dense||!1,disableGutters:u}),[v.dense,o,u]),b=Q.useRef(null);Mn(()=>{i&&(b.current?b.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=B(M({},n),{dense:g.dense,divider:s,disableGutters:u}),x=w4(n),E=gr(b,r);let T;return n.disabled||(T=h!==void 0?h:-1),fe.jsx(Wl.Provider,{value:g,children:fe.jsx(C4,B(M({ref:E,role:d,tabIndex:T,component:a,focusVisibleClassName:je(x.focusVisible,c),className:je(x.root,p)},m),{ownerState:C,classes:x}))})});process.env.NODE_ENV!=="production"&&(Fh.propTypes={autoFocus:_.bool,children:_.node,classes:_.object,className:_.string,component:_.elementType,dense:_.bool,disabled:_.bool,disableGutters:_.bool,divider:_.bool,focusVisibleClassName:_.string,role:_.string,selected:_.bool,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),tabIndex:_.number});const x4=({children:e,disabled:t,style:r,className:n="",onClick:i})=>{const{themeSettings:a}=mt();return w.jsx("div",{className:`csdk-menu-item ${n}`,children:w.jsx(Fh,{disabled:t,sx:M({width:"100%",minWidth:"170px",height:"29px",minHeight:"29px",fontFamily:a.typography.fontFamily,fontSize:"13px",paddingLeft:"30px",paddingRight:"15px",color:w.DEFAULT_TEXT_COLOR,"&:hover":{backgroundColor:w.DEFAULT_BACKGROUND_COLOR}},r),onClick:i,children:w.jsx("div",{className:"csdk-menu-item-content",children:e})})})};function T4(e){return yt("MuiListSubheader",e)}bt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const S4=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 Dt(o,T4,t)},E4=Ne("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]}})($t(({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}}]}))),Ld=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiListSubheader"}),m=n,{className:i,color:a="default",component:o="li",disableGutters:s=!1,disableSticky:u=!1,inset:c=!1}=m,d=xe(m,["className","color","component","disableGutters","disableSticky","inset"]),h=B(M({},n),{color:a,component:o,disableGutters:s,disableSticky:u,inset:c}),p=S4(h);return fe.jsx(E4,M({as:o,className:je(p.root,i),ref:r,ownerState:h},d))});Ld&&(Ld.muiSkipListHighlight=!0);process.env.NODE_ENV!=="production"&&(Ld.propTypes={children:_.node,classes:_.object,className:_.string,color:_.oneOf(["default","inherit","primary"]),component:_.elementType,disableGutters:_.bool,disableSticky:_.bool,inset:_.bool,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object])});const M4=({children:e})=>{const{themeSettings:t}=mt();return w.jsx(Ld,{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:w.DEFAULT_TEXT_COLOR},children:e})};var i0={exports:{}},ht={};/**
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 j_;function A4(){if(j_)return ht;j_=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"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=Symbol.for("react.client.reference");function v(g){if(typeof g=="object"&&g!==null){var b=g.$$typeof;switch(b){case e:switch(g=g.type,g){case r:case i:case n:case u:case c:return g;default:switch(g=g&&g.$$typeof,g){case o:case s:case h:case d:return g;case a:return g;default:return b}}case t:return b}}}return ht.ContextConsumer=a,ht.ContextProvider=o,ht.Element=e,ht.ForwardRef=s,ht.Fragment=r,ht.Lazy=h,ht.Memo=d,ht.Portal=t,ht.Profiler=i,ht.StrictMode=n,ht.Suspense=u,ht.SuspenseList=c,ht.isContextConsumer=function(g){return v(g)===a},ht.isContextProvider=function(g){return v(g)===o},ht.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},ht.isForwardRef=function(g){return v(g)===s},ht.isFragment=function(g){return v(g)===r},ht.isLazy=function(g){return v(g)===h},ht.isMemo=function(g){return v(g)===d},ht.isPortal=function(g){return v(g)===t},ht.isProfiler=function(g){return v(g)===i},ht.isStrictMode=function(g){return v(g)===n},ht.isSuspense=function(g){return v(g)===u},ht.isSuspenseList=function(g){return v(g)===c},ht.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===i||g===n||g===u||g===c||g===p||typeof g=="object"&&g!==null&&(g.$$typeof===h||g.$$typeof===d||g.$$typeof===o||g.$$typeof===a||g.$$typeof===s||g.$$typeof===m||g.getModuleId!==void 0)},ht.typeOf=v,ht}var ft={};/**
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 W_;function P4(){return W_||(W_=1,process.env.NODE_ENV!=="production"&&function(){function e(g){if(typeof g=="object"&&g!==null){var b=g.$$typeof;switch(b){case t:switch(g=g.type,g){case n:case a:case i:case c:case d:return g;default:switch(g=g&&g.$$typeof,g){case s:case u:case p:case h:return g;case o:return g;default:return b}}case r:return b}}}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"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),v=Symbol.for("react.client.reference");ft.ContextConsumer=o,ft.ContextProvider=s,ft.Element=t,ft.ForwardRef=u,ft.Fragment=n,ft.Lazy=p,ft.Memo=h,ft.Portal=r,ft.Profiler=a,ft.StrictMode=i,ft.Suspense=c,ft.SuspenseList=d,ft.isContextConsumer=function(g){return e(g)===o},ft.isContextProvider=function(g){return e(g)===s},ft.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},ft.isForwardRef=function(g){return e(g)===u},ft.isFragment=function(g){return e(g)===n},ft.isLazy=function(g){return e(g)===p},ft.isMemo=function(g){return e(g)===h},ft.isPortal=function(g){return e(g)===r},ft.isProfiler=function(g){return e(g)===a},ft.isStrictMode=function(g){return e(g)===i},ft.isSuspense=function(g){return e(g)===c},ft.isSuspenseList=function(g){return e(g)===d},ft.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===a||g===i||g===c||g===d||g===m||typeof g=="object"&&g!==null&&(g.$$typeof===p||g.$$typeof===h||g.$$typeof===s||g.$$typeof===o||g.$$typeof===u||g.$$typeof===v||g.getModuleId!==void 0)},ft.typeOf=e}()),ft}process.env.NODE_ENV==="production"?i0.exports=A4():i0.exports=P4();var Zv=i0.exports;function R4(e){return yt("MuiList",e)}bt("MuiList",["root","padding","dense","subheader"]);const O4=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Dt({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},R4,t)},k4=Ne("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}}]}),Qv=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiList"}),v=n,{children:i,className:a,component:o="ul",dense:s=!1,disablePadding:u=!1,subheader:c}=v,d=xe(v,["children","className","component","dense","disablePadding","subheader"]),h=Q.useMemo(()=>({dense:s}),[s]),p=B(M({},n),{component:o,dense:s,disablePadding:u}),m=O4(p);return fe.jsx(Wl.Provider,{value:h,children:fe.jsxs(k4,B(M({as:o,className:je(m.root,a),ref:r,ownerState:p},d),{children:[c,i]}))})});process.env.NODE_ENV!=="production"&&(Qv.propTypes={children:_.node,classes:_.object,className:_.string,component:_.elementType,dense:_.bool,disablePadding:_.bool,subheader:_.node,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object])});function D4(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(M(M({},i),a)):e,s=je(i==null?void 0:i.className,a==null?void 0:a.className,o==null?void 0:o.className);return M(M(M(M(M({},a),o),!!s&&{className:s}),(a==null?void 0:a.style)&&(o==null?void 0:o.style)&&{style:M(M({},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=je(r==null?void 0:r.className,e==null?void 0:e.className);return M(M(M(M(M({},t),e),!!n&&{className:n}),(r==null?void 0:r.style)&&(e==null?void 0:e.style)&&{style:M(M({},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 Wp(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function U_(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function hS(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 Qs(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")||!hS(s,a)||u)s=i(e,s,r);else return s.focus(),!0}return!1}const Jv=Q.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:d,variant:h="selectedMenu"}=E,p=xe(E,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),m=Q.useRef(null),v=Q.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Mn(()=>{i&&m.current.focus()},[i]),Q.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(T,{direction:A})=>{const R=!m.current.style.width;if(T.clientHeight<m.current.clientHeight&&R){const D=`${BT(Si(T))}px`;m.current.style[A==="rtl"?"paddingLeft":"paddingRight"]=D,m.current.style.width=`calc(100% + ${D})`}return m.current}}),[]);const g=T=>{const A=m.current,R=T.key;if(T.ctrlKey||T.metaKey||T.altKey){d&&d(T);return}const I=Qr(A).activeElement;if(R==="ArrowDown")T.preventDefault(),Qs(A,I,c,u,Wp);else if(R==="ArrowUp")T.preventDefault(),Qs(A,I,c,u,U_);else if(R==="Home")T.preventDefault(),Qs(A,null,c,u,Wp);else if(R==="End")T.preventDefault(),Qs(A,null,c,u,U_);else if(R.length===1){const H=v.current,G=R.toLowerCase(),q=performance.now();H.keys.length>0&&(q-H.lastTime>500?(H.keys=[],H.repeating=!0,H.previousKeyMatched=!0):H.repeating&&G!==H.keys[0]&&(H.repeating=!1)),H.lastTime=q,H.keys.push(G);const O=I&&!H.repeating&&hS(I,H);H.previousKeyMatched&&(O||Qs(A,I,!1,u,Wp,H))?T.preventDefault():H.previousKeyMatched=!1}d&&d(T)},b=gr(m,r);let C=-1;Q.Children.forEach(o,(T,A)=>{if(!Q.isValidElement(T)){C===A&&(C+=1,C>=o.length&&(C=-1));return}process.env.NODE_ENV!=="production"&&Zv.isFragment(T)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
167
+ `)),T.props.disabled||(h==="selectedMenu"&&T.props.selected||C===-1)&&(C=A),C===A&&(T.props.disabled||T.props.muiSkipListHighlight||T.type.muiSkipListHighlight)&&(C+=1,C>=o.length&&(C=-1))});const x=Q.Children.map(o,(T,A)=>{if(A===C){const R={};return a&&(R.autoFocus=!0),T.props.tabIndex===void 0&&h==="selectedMenu"&&(R.tabIndex=0),Q.cloneElement(T,R)}return T});return fe.jsx(Qv,B(M({role:"menu",ref:b,className:s,onKeyDown:g,tabIndex:i?0:-1},p),{children:x}))});process.env.NODE_ENV!=="production"&&(Jv.propTypes={autoFocus:_.bool,autoFocusItem:_.bool,children:_.node,className:_.string,disabledItemsFocusable:_.bool,disableListWrap:_.bool,onKeyDown:_.func,variant:_.oneOf(["menu","selectedMenu"])});function a0(e){return typeof e=="string"}function Ul(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 o0(e){return`scale(${e}, ${Bn(e,2)})`}const N4={entering:{opacity:1,transform:o0(1)},entered:{opacity:1,transform:"none"}},Up=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Vl=Q.forwardRef(function(t,r){const j=t,{addEndListener:n,appear:i=!0,children:a,easing:o,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:h,onExited:p,onExiting:m,style:v,timeout:g="auto",TransitionComponent:b=Rn}=j,C=xe(j,["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),x=Ta(),E=Q.useRef(),T=Tu(),A=Q.useRef(null),R=gr(A,hs(a),r),D=V=>z=>{if(V){const Y=A.current;z===void 0?V(Y):V(Y,z)}},I=D(d),H=D((V,z)=>{const{duration:Y,delay:re,easing:W}=Ul({style:v,timeout:g,easing:o},{mode:"enter"});let K;g==="auto"?(K=T.transitions.getAutoHeightDuration(V.clientHeight),E.current=K):K=Y,V.style.transition=[T.transitions.create("opacity",{duration:K,delay:re}),T.transitions.create("transform",{duration:Up?K:K*.666,delay:re,easing:W})].join(","),u&&u(V,z)}),G=D(c),q=D(m),O=D(V=>{const{duration:z,delay:Y,easing:re}=Ul({style:v,timeout:g,easing:o},{mode:"exit"});let W;g==="auto"?(W=T.transitions.getAutoHeightDuration(V.clientHeight),E.current=W):W=z,V.style.transition=[T.transitions.create("opacity",{duration:W,delay:Y}),T.transitions.create("transform",{duration:Up?W:W*.666,delay:Up?Y:Y||W*.333,easing:re})].join(","),V.style.opacity=0,V.style.transform=o0(.75),h&&h(V)}),$=D(p),X=V=>{g==="auto"&&x.start(E.current||0,V),n&&n(A.current,V)};return fe.jsx(b,B(M({appear:i,in:s,nodeRef:A,onEnter:H,onEntered:G,onEntering:I,onExit:O,onExited:$,onExiting:q,addEndListener:X,timeout:g==="auto"?null:g},C),{children:(V,re)=>{var W=re,{ownerState:z}=W,Y=xe(W,["ownerState"]);return Q.cloneElement(a,M({style:M(M(M({opacity:0,transform:o0(.75),visibility:V==="exited"&&!s?"hidden":void 0},N4[V]),v),a.props.style),ref:R},Y))}}))});process.env.NODE_ENV!=="production"&&(Vl.propTypes={addEndListener:_.func,appear:_.bool,children:Wa.isRequired,easing:_.oneOfType([_.shape({enter:_.string,exit:_.string}),_.string]),in:_.bool,onEnter:_.func,onEntered:_.func,onEntering:_.func,onExit:_.func,onExited:_.func,onExiting:_.func,style:_.object,timeout:_.oneOfType([_.oneOf(["auto"]),_.number,_.shape({appear:_.number,enter:_.number,exit:_.number})])});Vl&&(Vl.muiSupportAuto=!0);function I4(e){const t=Qr(e);return t.body===e?Si(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ml(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function V_(e){return parseInt(Si(e).getComputedStyle(e).paddingRight,10)||0}function L4(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 G_(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,o=>{const s=!a.includes(o),u=!L4(o);s&&u&&Ml(o,i)})}function Vp(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function F4(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(I4(n)){const o=BT(Si(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${V_(n)+o}px`;const s=Qr(n).querySelectorAll(".mui-fixed");[].forEach.call(s,u=>{r.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${V_(u)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Qr(n).body;else{const o=n.parentElement,s=Si(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 $4(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class B4{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&&Ml(t.modalRef,!1);const i=$4(r);G_(r,t.mount,t.modalRef,i,!0);const a=Vp(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=Vp(this.containers,a=>a.modals.includes(t)),i=this.containers[n];i.restore||(i.restore=F4(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=Vp(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&&Ml(t.modalRef,r),G_(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&&Ml(o.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const H4=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function z4(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 j4(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 W4(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||j4(e))}function U4(e){const t=[],r=[];return Array.from(e.querySelectorAll(H4)).forEach((n,i)=>{const a=z4(n);a===-1||!W4(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 V4(){return!0}function Fd(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=U4,isEnabled:o=V4,open:s}=e,u=Q.useRef(!1),c=Q.useRef(null),d=Q.useRef(null),h=Q.useRef(null),p=Q.useRef(null),m=Q.useRef(!1),v=Q.useRef(null),g=gr(hs(t),v),b=Q.useRef(null);Q.useEffect(()=>{!s||!v.current||(m.current=!r)},[r,s]),Q.useEffect(()=>{if(!s||!v.current)return;const E=Qr(v.current);return v.current.contains(E.activeElement)||(v.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
+ `)),v.current.setAttribute("tabIndex","-1")),m.current&&v.current.focus()),()=>{i||(h.current&&h.current.focus&&(u.current=!0,h.current.focus()),h.current=null)}},[s]),Q.useEffect(()=>{if(!s||!v.current)return;const E=Qr(v.current),T=D=>{b.current=D,!(n||!o()||D.key!=="Tab")&&E.activeElement===v.current&&D.shiftKey&&(u.current=!0,d.current&&d.current.focus())},A=()=>{var H,G;const D=v.current;if(D===null)return;if(!E.hasFocus()||!o()||u.current){u.current=!1;return}if(D.contains(E.activeElement)||n&&E.activeElement!==c.current&&E.activeElement!==d.current)return;if(E.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!m.current)return;let I=[];if((E.activeElement===c.current||E.activeElement===d.current)&&(I=a(v.current)),I.length>0){const q=!!((H=b.current)!=null&&H.shiftKey&&((G=b.current)==null?void 0:G.key)==="Tab"),O=I[0],$=I[I.length-1];typeof O!="string"&&typeof $!="string"&&(q?$.focus():O.focus())}else D.focus()};E.addEventListener("focusin",A),E.addEventListener("keydown",T,!0);const R=setInterval(()=>{E.activeElement&&E.activeElement.tagName==="BODY"&&A()},50);return()=>{clearInterval(R),E.removeEventListener("focusin",A),E.removeEventListener("keydown",T,!0)}},[r,n,i,o,s,a]);const C=E=>{h.current===null&&(h.current=E.relatedTarget),m.current=!0,p.current=E.target;const T=t.props.onFocus;T&&T(E)},x=E=>{h.current===null&&(h.current=E.relatedTarget),m.current=!0};return fe.jsxs(Q.Fragment,{children:[fe.jsx("div",{tabIndex:s?0:-1,onFocus:x,ref:c,"data-testid":"sentinelStart"}),Q.cloneElement(t,{ref:g,onFocus:C}),fe.jsx("div",{tabIndex:s?0:-1,onFocus:x,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Fd.propTypes={children:Wa,disableAutoFocus:_.bool,disableEnforceFocus:_.bool,disableRestoreFocus:_.bool,getTabbable:_.func,isEnabled:_.func,open:_.bool.isRequired});process.env.NODE_ENV!=="production"&&(Fd.propTypes=Mv(Fd.propTypes));function G4(e){return typeof e=="function"?e():e}const Gl=Q.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[o,s]=Q.useState(null),u=gr(Q.isValidElement(n)?hs(n):null,r);if(Mn(()=>{a||s(G4(i)||document.body)},[i,a]),Mn(()=>{if(o&&!a)return T_(r,o),()=>{T_(r,null)}},[r,o,a]),a){if(Q.isValidElement(n)){const c={ref:u};return Q.cloneElement(n,c)}return n}return o&&vD.createPortal(n,o)});process.env.NODE_ENV!=="production"&&(Gl.propTypes={children:_.node,container:_.oneOfType([Ti,_.func]),disablePortal:_.bool});process.env.NODE_ENV!=="production"&&(Gl.propTypes=Mv(Gl.propTypes));const q4={entering:{opacity:1},entered:{opacity:1}},ey=Q.forwardRef(function(t,r){const n=Tu(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},X=t,{addEndListener:a,appear:o=!0,children:s,easing:u,in:c,onEnter:d,onEntered:h,onEntering:p,onExit:m,onExited:v,onExiting:g,style:b,timeout:C=i,TransitionComponent:x=Rn}=X,E=xe(X,["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),T=Q.useRef(null),A=gr(T,hs(s),r),R=j=>V=>{if(j){const z=T.current;V===void 0?j(z):j(z,V)}},D=R(p),I=R((j,V)=>{const z=Ul({style:b,timeout:C,easing:u},{mode:"enter"});j.style.webkitTransition=n.transitions.create("opacity",z),j.style.transition=n.transitions.create("opacity",z),d&&d(j,V)}),H=R(h),G=R(g),q=R(j=>{const V=Ul({style:b,timeout:C,easing:u},{mode:"exit"});j.style.webkitTransition=n.transitions.create("opacity",V),j.style.transition=n.transitions.create("opacity",V),m&&m(j)}),O=R(v),$=j=>{a&&a(T.current,j)};return fe.jsx(x,B(M({appear:o,in:c,nodeRef:T,onEnter:I,onEntered:H,onEntering:D,onExit:q,onExited:O,onExiting:G,addEndListener:$,timeout:C},E),{children:(j,Y)=>{var re=Y,{ownerState:V}=re,z=xe(re,["ownerState"]);return Q.cloneElement(s,M({style:M(M(M({opacity:0,visibility:j==="exited"&&!c?"hidden":void 0},q4[j]),b),s.props.style),ref:A},z))}}))});process.env.NODE_ENV!=="production"&&(ey.propTypes={addEndListener:_.func,appear:_.bool,children:Wa.isRequired,easing:_.oneOfType([_.shape({enter:_.string,exit:_.string}),_.string]),in:_.bool,onEnter:_.func,onEntered:_.func,onEntering:_.func,onExit:_.func,onExited:_.func,onExiting:_.func,style:_.object,timeout:_.oneOfType([_.number,_.shape({appear:_.number,enter:_.number,exit:_.number})])});function Y4(e){return yt("MuiBackdrop",e)}bt("MuiBackdrop",["root","invisible"]);const X4=e=>{const{classes:t,invisible:r}=e;return Dt({root:["root",r&&"invisible"]},Y4,t)},K4=Ne("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"}}]}),ty=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiBackdrop"}),H=n,{children:i,className:a,component:o="div",invisible:s=!1,open:u,components:c={},componentsProps:d={},slotProps:h={},slots:p={},TransitionComponent:m,transitionDuration:v}=H,g=xe(H,["children","className","component","invisible","open","components","componentsProps","slotProps","slots","TransitionComponent","transitionDuration"]),b=B(M({},n),{component:o,invisible:s}),C=X4(b),x=M({transition:m,root:c.Root},p),E=M(M({},d),h),T={slots:x,slotProps:E},[A,R]=lr("root",{elementType:K4,externalForwardedProps:T,className:je(C.root,a),ownerState:b}),[D,I]=lr("transition",{elementType:ey,externalForwardedProps:T,ownerState:b});return fe.jsx(D,B(M(M({in:u,timeout:v},g),I),{children:fe.jsx(A,B(M({"aria-hidden":!0},R),{classes:C,ref:r,children:i}))}))});process.env.NODE_ENV!=="production"&&(ty.propTypes={children:_.node,classes:_.object,className:_.string,component:_.elementType,components:_.shape({Root:_.elementType}),componentsProps:_.shape({root:_.object}),invisible:_.bool,open:_.bool.isRequired,slotProps:_.shape({root:_.oneOfType([_.func,_.object]),transition:_.oneOfType([_.func,_.object])}),slots:_.shape({root:_.elementType,transition:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),TransitionComponent:_.elementType,transitionDuration:_.oneOfType([_.number,_.shape({appear:_.number,enter:_.number,exit:_.number})])});function Z4(e){return typeof e=="function"?e():e}function Q4(e){return e?e.props.hasOwnProperty("in"):!1}const q_=()=>{},Oc=new B4;function J4(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:s,onClose:u,open:c,rootRef:d}=e,h=Q.useRef({}),p=Q.useRef(null),m=Q.useRef(null),v=gr(m,d),[g,b]=Q.useState(!c),C=Q4(s);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const E=()=>Qr(p.current),T=()=>(h.current.modalRef=m.current,h.current.mount=p.current,h.current),A=()=>{Oc.mount(T(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},R=Kn(()=>{const j=Z4(t)||E().body;Oc.add(T(),j),m.current&&A()}),D=()=>Oc.isTopModal(T()),I=Kn(j=>{p.current=j,j&&(c&&D()?A():m.current&&Ml(m.current,x))}),H=Q.useCallback(()=>{Oc.remove(T(),x)},[x]);Q.useEffect(()=>()=>{H()},[H]),Q.useEffect(()=>{c?R():(!C||!i)&&H()},[c,H,C,i,R]);const G=j=>V=>{var z;(z=j.onKeyDown)==null||z.call(j,V),!(V.key!=="Escape"||V.which===229||!D())&&(r||(V.stopPropagation(),u&&u(V,"escapeKeyDown")))},q=j=>V=>{var z;(z=j.onClick)==null||z.call(j,V),V.target===V.currentTarget&&u&&u(V,"backdropClick")};return{getRootProps:(j={})=>{const V=zT(e);delete V.onTransitionEnter,delete V.onTransitionExited;const z=M(M({},V),j);return B(M({role:"presentation"},z),{onKeyDown:G(z),ref:v})},getBackdropProps:(j={})=>{const V=j;return B(M({"aria-hidden":!0},V),{onClick:q(V),open:c})},getTransitionProps:()=>{var z,Y;const j=()=>{b(!1),a&&a()},V=()=>{b(!0),o&&o(),i&&H()};return{onEnter:Zm(j,(z=s==null?void 0:s.props.onEnter)!=null?z:q_),onExited:Zm(V,(Y=s==null?void 0:s.props.onExited)!=null?Y:q_)}},rootRef:v,portalRef:I,isTopModal:D,exited:g,hasTransition:C}}function e5(e){return yt("MuiModal",e)}bt("MuiModal",["root","hidden","backdrop"]);const t5=e=>{const{open:t,exited:r,classes:n}=e;return Dt({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},e5,n)},r5=Ne("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})($t(({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"}}]}))),n5=Ne(ty,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),ry=Q.forwardRef(function(t,r){const n=Mt({name:"MuiModal",props:t}),ye=n,{BackdropComponent:i=n5,BackdropProps:a,classes:o,className:s,closeAfterTransition:u=!1,children:c,container:d,component:h,components:p={},componentsProps:m={},disableAutoFocus:v=!1,disableEnforceFocus:g=!1,disableEscapeKeyDown:b=!1,disablePortal:C=!1,disableRestoreFocus:x=!1,disableScrollLock:E=!1,hideBackdrop:T=!1,keepMounted:A=!1,onBackdropClick:R,onClose:D,onTransitionEnter:I,onTransitionExited:H,open:G,slotProps:q={},slots:O={},theme:$}=ye,X=xe(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=B(M({},n),{closeAfterTransition:u,disableAutoFocus:v,disableEnforceFocus:g,disableEscapeKeyDown:b,disablePortal:C,disableRestoreFocus:x,disableScrollLock:E,hideBackdrop:T,keepMounted:A}),{getRootProps:V,getBackdropProps:z,getTransitionProps:Y,portalRef:re,isTopModal:W,exited:K,hasTransition:ie}=J4(B(M({},j),{rootRef:r})),ne=B(M({},j),{exited:K}),te=t5(ne),oe={};if(c.props.tabIndex===void 0&&(oe.tabIndex="-1"),ie){const{onEnter:J,onExited:_e}=Y();oe.onEnter=J,oe.onExited=_e}const se={slots:M({root:p.Root,backdrop:p.Backdrop},O),slotProps:M(M({},m),q)},[de,ce]=lr("root",{ref:r,elementType:r5,externalForwardedProps:B(M(M({},se),X),{component:h}),getSlotProps:V,ownerState:ne,className:je(s,te==null?void 0:te.root,!ne.open&&ne.exited&&(te==null?void 0:te.hidden))}),[ge,Se]=lr("backdrop",{ref:a==null?void 0:a.ref,elementType:i,externalForwardedProps:se,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:J=>z(B(M({},J),{onClick:_e=>{R&&R(_e),J!=null&&J.onClick&&J.onClick(_e)}})),className:je(a==null?void 0:a.className,te==null?void 0:te.backdrop),ownerState:ne});return!A&&!G&&(!ie||K)?null:fe.jsx(Gl,{ref:re,container:d,disablePortal:C,children:fe.jsxs(de,B(M({},ce),{children:[!T&&i?fe.jsx(ge,M({},Se)):null,fe.jsx(Fd,{disableEnforceFocus:g,disableAutoFocus:v,disableRestoreFocus:x,isEnabled:W,open:G,children:Q.cloneElement(c,oe)})]}))})});process.env.NODE_ENV!=="production"&&(ry.propTypes={BackdropComponent:_.elementType,BackdropProps:_.object,children:Wa.isRequired,classes:_.object,className:_.string,closeAfterTransition:_.bool,component:_.elementType,components:_.shape({Backdrop:_.elementType,Root:_.elementType}),componentsProps:_.shape({backdrop:_.oneOfType([_.func,_.object]),root:_.oneOfType([_.func,_.object])}),container:_.oneOfType([Ti,_.func]),disableAutoFocus:_.bool,disableEnforceFocus:_.bool,disableEscapeKeyDown:_.bool,disablePortal:_.bool,disableRestoreFocus:_.bool,disableScrollLock:_.bool,hideBackdrop:_.bool,keepMounted:_.bool,onBackdropClick:_.func,onClose:_.func,onTransitionEnter:_.func,onTransitionExited:_.func,open:_.bool.isRequired,slotProps:_.shape({backdrop:_.oneOfType([_.func,_.object]),root:_.oneOfType([_.func,_.object])}),slots:_.shape({backdrop:_.elementType,root:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object])});function i5(e){return yt("MuiPaper",e)}bt("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 a5=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Dt(a,i5,i)},o5=Ne("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}`]]}})($t(({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)"}}]}))),$h=Q.forwardRef(function(t,r){var v;const n=Mt({props:t,name:"MuiPaper"}),i=Tu(),m=n,{className:a,component:o="div",elevation:s=1,square:u=!1,variant:c="elevation"}=m,d=xe(m,["className","component","elevation","square","variant"]),h=B(M({},n),{component:o,elevation:s,square:u,variant:c}),p=a5(h);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(o5,B(M({as:o,ownerState:h,className:je(p.root,a),ref:r},d),{style:M(M({},c==="elevation"&&M(M({"--Paper-shadow":(i.vars||i).shadows[s]},i.vars&&{"--Paper-overlay":(v=i.vars.overlays)==null?void 0:v[s]}),!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Rt("#fff",Jm(s))}, ${Rt("#fff",Jm(s))})`})),d.style)}))});process.env.NODE_ENV!=="production"&&($h.propTypes={children:_.node,classes:_.object,className:_.string,component:_.elementType,elevation:Ri(Vn,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:_.bool,style:_.object,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),variant:_.oneOfType([_.oneOf(["elevation","outlined"]),_.string])});function s5(e){return yt("MuiPopover",e)}bt("MuiPopover",["root","paper"]);function Y_(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function X_(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function K_(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function vl(e){return typeof e=="function"?e():e}const l5=e=>{const{classes:t}=e;return Dt({root:["root"],paper:["paper"]},s5,t)},u5=Ne(ry,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fS=Ne($h,{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}),ny=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiPopover"}),Se=n,{action:i,anchorEl:a,anchorOrigin:o={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:u="anchorEl",children:c,className:d,container:h,elevation:p=8,marginThreshold:m=16,open:v,PaperProps:g={},slots:b={},slotProps:C={},transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:E,transitionDuration:T="auto",TransitionProps:A={},disableScrollLock:R=!1}=Se,D=xe(Se,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"]),I=Q.useRef(),H=B(M({},n),{anchorOrigin:o,anchorReference:u,elevation:p,marginThreshold:m,transformOrigin:x,TransitionComponent:E,transitionDuration:T,TransitionProps:A}),G=l5(H),q=Q.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=vl(a),ve=_e&&_e.nodeType===1?_e:Qr(I.current).body,Ae=ve.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const Ie=ve.getBoundingClientRect();process.env.NODE_ENV!=="test"&&Ie.top===0&&Ie.left===0&&Ie.right===0&&Ie.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:Ae.top+Y_(Ae,o.vertical),left:Ae.left+X_(Ae,o.horizontal)}},[a,o.horizontal,o.vertical,s,u]),O=Q.useCallback(_e=>({vertical:Y_(_e,x.vertical),horizontal:X_(_e,x.horizontal)}),[x.horizontal,x.vertical]),$=Q.useCallback(_e=>{const ve={width:_e.offsetWidth,height:_e.offsetHeight},Ae=O(ve);if(u==="none")return{top:null,left:null,transformOrigin:K_(Ae)};const Ie=q();let Ue=Ie.top-Ae.vertical,Ve=Ie.left-Ae.horizontal;const ir=Ue+ve.height,At=Ve+ve.width,Wt=Si(vl(a)),Nt=Wt.innerHeight-m,Re=Wt.innerWidth-m;if(m!==null&&Ue<m){const st=Ue-m;Ue-=st,Ae.vertical+=st}else if(m!==null&&ir>Nt){const st=ir-Nt;Ue-=st,Ae.vertical+=st}if(process.env.NODE_ENV!=="production"&&ve.height>Nt&&ve.height&&Nt&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ve.height-Nt}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
171
+ `)),m!==null&&Ve<m){const st=Ve-m;Ve-=st,Ae.horizontal+=st}else if(At>Re){const st=At-Re;Ve-=st,Ae.horizontal+=st}return{top:`${Math.round(Ue)}px`,left:`${Math.round(Ve)}px`,transformOrigin:K_(Ae)}},[a,u,q,O,m]),[X,j]=Q.useState(v),V=Q.useCallback(()=>{const _e=I.current;if(!_e)return;const ve=$(_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)},[$]);Q.useEffect(()=>(R&&window.addEventListener("scroll",V),()=>window.removeEventListener("scroll",V)),[a,R,V]);const z=()=>{V()},Y=()=>{j(!1)};Q.useEffect(()=>{v&&V()}),Q.useImperativeHandle(i,()=>v?{updatePosition:()=>{V()}}:null,[v,V]),Q.useEffect(()=>{if(!v)return;const _e=FT(()=>{V()}),ve=Si(vl(a));return ve.addEventListener("resize",_e),()=>{_e.clear(),ve.removeEventListener("resize",_e)}},[a,v,V]);let re=T;const W={slots:M({transition:E},b),slotProps:M({transition:A,paper:g},C)},[K,ie]=lr("transition",{elementType:Vl,externalForwardedProps:W,ownerState:H,getSlotProps:_e=>B(M({},_e),{onEntering:(ve,Ae)=>{var Ie;(Ie=_e.onEntering)==null||Ie.call(_e,ve,Ae),z()},onExited:ve=>{var Ae;(Ae=_e.onExited)==null||Ae.call(_e,ve),Y()}}),additionalProps:{appear:!0,in:v}});T==="auto"&&!K.muiSupportAuto&&(re=void 0);const ne=h||(a?Qr(vl(a)).body:void 0),[te,ye]=lr("root",{ref:r,elementType:u5,externalForwardedProps:M(M({},W),D),shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:D4(typeof C.backdrop=="function"?C.backdrop(H):C.backdrop,{invisible:!0})},container:ne,open:v},ownerState:H,className:je(G.root,d)}),J=ye,{slots:oe,slotProps:se}=J,de=xe(J,["slots","slotProps"]),[ce,ge]=lr("paper",{ref:I,className:G.paper,elementType:fS,externalForwardedProps:W,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:X?void 0:{opacity:0}},ownerState:H});return fe.jsx(te,B(M(M({},de),!a0(te)&&{slots:oe,slotProps:se,disableScrollLock:R}),{children:fe.jsx(K,B(M({},ie),{timeout:re,children:fe.jsx(ce,B(M({},ge),{children:c}))}))}))});process.env.NODE_ENV!=="production"&&(ny.propTypes={action:cs,anchorEl:Ri(_.oneOfType([Ti,_.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=vl(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:_.shape({horizontal:_.oneOfType([_.oneOf(["center","left","right"]),_.number]).isRequired,vertical:_.oneOfType([_.oneOf(["bottom","center","top"]),_.number]).isRequired}),anchorPosition:_.shape({left:_.number.isRequired,top:_.number.isRequired}),anchorReference:_.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:_.elementType,BackdropProps:_.object,children:_.node,classes:_.object,className:_.string,container:_.oneOfType([Ti,_.func]),disableScrollLock:_.bool,elevation:Vn,marginThreshold:_.number,onClose:_.func,open:_.bool.isRequired,PaperProps:_.shape({component:bh}),slotProps:_.shape({backdrop:_.oneOfType([_.func,_.object]),paper:_.oneOfType([_.func,_.object]),root:_.oneOfType([_.func,_.object]),transition:_.oneOfType([_.func,_.object])}),slots:_.shape({backdrop:_.elementType,paper:_.elementType,root:_.elementType,transition:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),transformOrigin:_.shape({horizontal:_.oneOfType([_.oneOf(["center","left","right"]),_.number]).isRequired,vertical:_.oneOfType([_.oneOf(["bottom","center","top"]),_.number]).isRequired}),TransitionComponent:_.elementType,transitionDuration:_.oneOfType([_.oneOf(["auto"]),_.number,_.shape({appear:_.number,enter:_.number,exit:_.number})]),TransitionProps:_.object});function c5(e){return yt("MuiMenu",e)}bt("MuiMenu",["root","paper","list"]);const d5={vertical:"top",horizontal:"right"},h5={vertical:"top",horizontal:"left"},f5=e=>{const{classes:t}=e;return Dt({root:["root"],paper:["paper"],list:["list"]},c5,t)},p5=Ne(ny,{shouldForwardProp:e=>Su(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),m5=Ne(fS,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),g5=Ne(Jv,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Bh=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiMenu"}),re=n,{autoFocus:i=!0,children:a,className:o,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:h={},PopoverClasses:p,transitionDuration:m="auto",TransitionProps:W={}}=re,K=W,{onEntering:v}=K,g=xe(K,["onEntering"]),ie=re,{variant:b="selectedMenu",slots:C={},slotProps:x={}}=ie,E=xe(ie,["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"]),T=yh(),A=B(M({},n),{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:v,PaperProps:h,transitionDuration:m,TransitionProps:g,variant:b}),R=f5(A),D=i&&!s&&d,I=Q.useRef(null),H=(ne,te)=>{I.current&&I.current.adjustStyleForScrollbar(ne,{direction:T?"rtl":"ltr"}),v&&v(ne,te)},G=ne=>{ne.key==="Tab"&&(ne.preventDefault(),c&&c(ne,"tabKeyDown"))};let q=-1;Q.Children.map(a,(ne,te)=>{Q.isValidElement(ne)&&(process.env.NODE_ENV!=="production"&&Zv.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||(b==="selectedMenu"&&ne.props.selected||q===-1)&&(q=te))});const O={slots:C,slotProps:M({list:u,transition:g,paper:h},x)},$=Av({elementType:C.root,externalSlotProps:x.root,ownerState:A,className:[R.root,o]}),[X,j]=lr("paper",{className:R.paper,elementType:m5,externalForwardedProps:O,shouldForwardComponentProp:!0,ownerState:A}),[V,z]=lr("list",{className:je(R.list,u.className),elementType:g5,shouldForwardComponentProp:!0,externalForwardedProps:O,getSlotProps:ne=>B(M({},ne),{onKeyDown:te=>{var oe;G(te),(oe=ne.onKeyDown)==null||oe.call(ne,te)}}),ownerState:A}),Y=typeof O.slotProps.transition=="function"?O.slotProps.transition(A):O.slotProps.transition;return fe.jsx(p5,B(M({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?d5:h5,slots:M({root:C.root,paper:X,backdrop:C.backdrop},C.transition&&{transition:C.transition}),slotProps:{root:$,paper:j,backdrop:typeof x.backdrop=="function"?x.backdrop(A):x.backdrop,transition:B(M({},Y),{onEntering:(...ne)=>{var te;H(...ne),(te=Y==null?void 0:Y.onEntering)==null||te.call(Y,...ne)}})},open:d,ref:r,transitionDuration:m,ownerState:A},E),{classes:p,children:fe.jsx(V,B(M({actions:I,autoFocus:i&&(q===-1||s),autoFocusItem:D,variant:b},z),{children:a}))}))});process.env.NODE_ENV!=="production"&&(Bh.propTypes={anchorEl:_.oneOfType([Ti,_.func]),autoFocus:_.bool,children:_.node,classes:_.object,className:_.string,disableAutoFocusItem:_.bool,MenuListProps:_.object,onClose:_.func,open:_.bool.isRequired,PaperProps:_.object,PopoverClasses:_.object,slotProps:_.shape({backdrop:_.oneOfType([_.func,_.object]),list:_.oneOfType([_.func,_.object]),paper:_.oneOfType([_.func,_.object]),root:_.oneOfType([_.func,_.object]),transition:_.oneOfType([_.func,_.object])}),slots:_.shape({backdrop:_.elementType,list:_.elementType,paper:_.elementType,root:_.elementType,transition:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),transitionDuration:_.oneOfType([_.oneOf(["auto"]),_.number,_.shape({appear:_.number,enter:_.number,exit:_.number})]),TransitionProps:_.object,variant:_.oneOf(["menu","selectedMenu"])});const v5=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}}},y5=({children:e,open:t,position:r,onClose:n,alignment:i})=>{const{themeSettings:a}=mt(),o=k.useMemo(()=>v5(i),[i]);return w.jsx(Bh,{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 b5({color:e=w.DEFAULT_TEXT_COLOR}){return w.jsx("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",children:w.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 _5=({children:e,label:t,allowOpen:r,disabled:n,style:i,className:a=""})=>{const{themeSettings:o}=mt(),s=k.useRef(null),u=k.useRef(null),[c,d]=k.useState(!1),h=k.useCallback(()=>{n||d(!0)},[n]),p=k.useCallback(()=>d(!1),[]),m=k.useCallback(()=>d(!0),[]),v=k.useCallback(()=>d(!1),[]),g=c&&r;return w.jsxs("div",{ref:s,className:`csdk-menu-item ${a}`,children:[w.jsx(Fh,{disabled:n,sx:M({width:"100%",minWidth:"170px",height:"29px",minHeight:"29px",fontFamily:o.typography.fontFamily,fontSize:"13px",paddingLeft:"30px",paddingRight:"0px",color:w.DEFAULT_TEXT_COLOR,"&:hover":{backgroundColor:w.DEFAULT_BACKGROUND_COLOR}},i),onMouseEnter:h,onMouseLeave:p,children:w.jsxs("div",{className:"csdk-menu-item-content",style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[t,w.jsx(b5,{})]})}),w.jsx(Bh,{ref:u,style:{pointerEvents:"none"},anchorEl:s.current,anchorOrigin:{horizontal:"right",vertical:"top"},transformOrigin:{horizontal:"left",vertical:"top"},open:g,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:()=>{d(!1)},onMouseEnter:m,onMouseLeave:v,children:w.jsx("div",{style:{pointerEvents:"auto"},children:e})})]})},w5="csdk-context-menu-selected-with-dot",pS=({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,d)=>{const{sectionTitle:h,items:p=[]}=c;return w.jsxs("div",{className:"csdk-menu-section",children:[h&&w.jsx(M4,{children:h}),p.map((m,v)=>{const{subItems:g}=m;return g&&g.length?w.jsx(_5,{label:m.caption,allowOpen:s,style:m.style,className:m.class,children:g.map(u)},v):w.jsx(x4,{disabled:m.disabled,style:m.style,className:m.class,onClick:()=>{var C;n(),(C=m.onClick)==null||C.call(m)},children:m.caption},v)})]},d!=null?d:h)},[n,s]);return w.jsx(w.Fragment,{children:w.jsxs(y5,{position:e!=null?e:null,open:s,onClose:n,alignment:i,children:[a==null?void 0:a.map(u),r]})})},C5=({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 w.jsxs(Kv.Provider,{value:s,children:[w.jsx(pS,{position:r==null?void 0:r.position,itemSections:r==null?void 0:r.itemSections,closeContextMenu:o,alignment:r==null?void 0:r.alignment}),e]})},x5=({children:e,onBeforeMenuOpen:t})=>{const r=Lh(),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 w.jsx(Kv.Provider,{value:a,children:e})},mS=({children:e,onBeforeMenuOpen:t})=>Lh()?t?w.jsx(x5,{onBeforeMenuOpen:t,children:e}):w.jsx(w.Fragment,{children:e}):w.jsx(C5,{onBeforeMenuOpen:t,children:e}),T5=({shouldHaveOwnMenuRoot:e}={})=>t=>function(n){const a=!!Lh();return e&&!a?w.jsx(mS,{children:w.jsx(t,M({},n))}):w.jsx(t,M({},n))},iy=k.createContext(null),Hh=()=>k.useContext(iy),S5=Ye(ny)`
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
+ `,ay=e=>{var h;const d=e,{children:t,open:r,id:n,position:i,onClose:a,BackdropProps:o,style:s,slotProps:u}=d,c=xe(d,["children","open","id","position","onClose","BackdropProps","style","slotProps"]);return w.jsx(S5,B(M({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:M({display:"flex",boxShadow:"-1px -1px 10px rgba(0, 0, 0, 0.2)"},(h=u==null?void 0:u.paper)==null?void 0:h.sx)}},onClose:a},c),{children:t}))};let E5=0;const M5=()=>`modal-${++E5}`,vo=new Set,A5=({children:e})=>{const[t,r]=k.useState([]),n=k.useRef([]);k.useEffect(()=>()=>{vo.forEach(h=>{try{h&&h.parentNode&&h.parentNode===document.body&&document.body.contains(h)&&document.body.removeChild(h)}catch(p){}}),vo.clear()},[]);const i=k.useCallback(h=>new Promise(p=>{const m=M5();let v;try{v=document.createElement("div"),v.style.position="fixed",v.style.top="50%",v.style.left="50%",v.style.transform="translate(-50%, -50%)",v.style.width="1px",v.style.height="1px",v.style.pointerEvents="none",v.style.visibility="hidden",v.setAttribute("data-modal-anchor",m),document.body&&typeof document.body.appendChild=="function"?(document.body.appendChild(v),vo.add(v)):console.warn("Modal: Unable to append anchor element to document body")}catch(b){console.warn("Modal: Failed to create anchor element:",b),v=document.createElement("div"),v.setAttribute("data-modal-anchor",m)}const g={id:m,options:h,anchorEl:v,resolve:()=>p(m)};r(b=>{const C=[...b,g];return n.current=C,C}),p(m)}),[]),a=k.useCallback(h=>{r(p=>{if(!h){const g=p.slice(0,-1);n.current=g;const b=p[p.length-1];return b!=null&&b.anchorEl&&setTimeout(()=>{try{b.anchorEl&&b.anchorEl.parentNode&&b.anchorEl.parentNode===document.body&&document.body.contains(b.anchorEl)&&(document.body.removeChild(b.anchorEl),vo.delete(b.anchorEl))}catch(C){}},0),b&&b.resolve(),g}const m=p.find(g=>g.id===h);m!=null&&m.anchorEl&&setTimeout(()=>{try{m.anchorEl&&m.anchorEl.parentNode&&m.anchorEl.parentNode===document.body&&document.body.contains(m.anchorEl)&&(document.body.removeChild(m.anchorEl),vo.delete(m.anchorEl))}catch(g){}},0),m&&m.resolve();const v=p.filter(g=>g.id!==h);return n.current=v,v})},[]),o=k.useCallback(()=>{r(h=>(h.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),vo.delete(p.anchorEl))}catch(m){}},0),p.resolve()}),n.current=[],[]))},[]),s=k.useCallback(()=>n.current,[]),u=k.useCallback(h=>t.some(p=>p.id===h),[t]),c=k.useCallback(h=>{a(h)},[a]),d=k.useMemo(()=>({openModal:i,closeModal:a,closeAllModals:o,getModalStack:s,isModalOpen:u}),[i,a,o,s,u]);return w.jsxs(iy.Provider,{value:d,children:[t.map((h,p)=>{const{options:m}=h,v=m.measurement==="%"?`${m.width||80}%`:`${m.width||1200}px`,g=m.measurement==="%"?`${m.height||80}%`:`${m.height||800}px`;return w.jsx("div",{children:w.jsx("div",{"data-testid":"modal-backdrop",onClick:b=>{b.target.closest(".MuiPaper-root")||c(h.id)},style:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:1200+p},children:w.jsx(ay,{open:!0,position:{anchorEl:h.anchorEl,anchorOrigin:{vertical:"center",horizontal:"center"},contentOrigin:{vertical:"center",horizontal:"center"}},onClose:()=>a(h.id),BackdropProps:{style:{backgroundColor:"rgba(0, 0, 0, 0.5)"}},style:{zIndex:1200+p+10},slotProps:{paper:{sx:{display:"flex",width:v,height:g,maxWidth:"95vw",maxHeight:"95vh",position:"relative",zIndex:1200+p+10}}},children:w.jsx("div",{style:{width:"100%",height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},onClick:b=>b.stopPropagation(),children:w.jsx("div",{style:{flex:1,overflow:"hidden"},children:m.content})})})})},h.id)}),e]})},P5=({children:e})=>{const t=Hh(),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 w.jsx(iy.Provider,{value:s,children:e})},gS=({children:e})=>Hh()?w.jsx(P5,{children:e}):w.jsx(A5,{children:e}),R5=({shouldHaveOwnModalRoot:e}={})=>t=>function(n){const a=!!Hh();return e&&!a?w.jsx(gS,{children:w.jsx(t,M({},n))}):w.jsx(t,M({},n))};var O5="[object Boolean]";function vS(e){return e===!0||e===!1||N.isObjectLike(e)&&N.baseGetTag(e)==O5}function k5(e){return t=>{var r;t.type==="rule"&&((r=t.root)==null?void 0:r.type)!==w.KEYFRAMES&&(t.props=t.props.map(n=>`${e} ${n}`))}}function yS(){var e,t;return(t=(e=document.head.querySelector('meta[property="csp-nonce"]'))==null?void 0:e.getAttribute("content"))!=null?t:void 0}const Z_=k.createContext(void 0),bS=({children:e,cssSelectorPrefix:t})=>{const r=k.useMemo(()=>yS(),[]),n=k.useContext(Z_),i=!n,a=n==null?void 0:n.cssSelectorPrefix,o=k.useMemo(()=>i&&r||t!==a?w.createCache(M(M({key:"css"},r&&{nonce:r}),t&&{stylisPlugins:[w.prefixer,k5(t)]})):null,[i,t,a,r]);return i||o?w.jsx(Z_.Provider,{value:{cssSelectorPrefix:t},children:o?w.jsx(w.CacheProvider,{value:o,children:e}):w.jsx(w.Fragment,{children:e})}):w.jsx(w.Fragment,{children:e})},Q_=yS(),_S=({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=B(M({},t),{WebkitAnimationDelay:"-0.32s",animationDelay:"-0.32s"}),n=B(M({},t),{WebkitAnimationDelay:"-0.16s",animationDelay:"-0.16s"}),i=B(M({},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 w.jsxs("div",{children:[w.jsx("style",B(M({},Q_&&{nonce:Q_}),{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
+ `})),w.jsx("div",{style:r}),w.jsx("div",{style:n}),w.jsx("div",{style:i})]})},D5=Ye.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
+ `,Wi=({isVisible:e=!0,children:t})=>{var u,c,d,h,p,m;const{app:r}=_t(),{t:n}=w.useTranslation(),a=((d=(c=(u=r==null?void 0:r.settings)==null?void 0:u.loadingIndicatorConfig)==null?void 0:c.enabled)!=null?d:!0)&&e,o=(m=(p=(h=r==null?void 0:r.settings)==null?void 0:h.loadingIndicatorConfig)==null?void 0:p.delay)!=null?m:0,{themeSettings:s}=mt();return w.jsxs("div",{id:"overlay",className:"csdk-relative csdk-h-full",children:[a&&w.jsx(D5,{delay:o,role:"status","aria-label":n("loadingOverlay.label"),"data-testid":"csdk-loading-overlay",children:w.jsx("div",{className:"csdk-h-full csdk-bg-transparent",children:w.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:w.jsx("div",{style:{backgroundColor:s.general.backgroundColor},className:"csdk-p-1.5 csdk-bg-background-priority csdk-rounded-full",children:w.jsx(_S,{color:s==null?void 0:s.chart.textColor})})})})}),t]})},N5=({shouldSkipSisenseContextWaiting:e,customContextErrorMessageKey:t})=>r=>function(i){const{app:a,isInitialized:o}=_t();if(I5(e,i))return w.jsx(r,M({},i));if(!o){const s=t||"errors.noSisenseContext";throw new N.TranslatableError(s)}return a?w.jsx(r,M({},i)):w.jsx(Wi,{isVisible:!0})};function I5(e,t){return vS(e)&&e||N.isFunction(e)&&e(t)}const L5={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}},J_="composesdk",wS=(e,t,r,n=!1)=>{const i=Object.assign({action:e,cat:J_,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=${J_}`,a)})},ew=(e,t,r,n,i)=>{const a=L5[`${e}`];return a.internal&&wS(e,t,r,i),a.external&&n&&n(M({action:e},t)),Promise.resolve()},oy=()=>{var a,o;const{tracking:e,app:t}=_t(),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?ew(s,B(M({},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:d,component:h,error:p}=s;let m="";return typeof p=="string"?m=p:p instanceof Error&&(m=p.message||p.toString()),ew("sdkError",B(M({},{packageName:c,packageVersion:d,component:h,error:m}),{authType:r}),t.httpClient,e.onTrackingEvent,u)},[e,t,r]);return{trackEvent:n,trackError:i}};class CS extends k.Component{constructor(r){super(r);tt(this,"componentName");tt(this,"context");tt(this,"handler");tt(this,"httpClient");tt(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.26.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}}tt(CS,"contextType",Iv);const F5="sdkComponentInit",xS=k.createContext(!1),$5=({skipNested:e=!0,children:t})=>w.jsx(xS.Provider,{value:e,children:t}),B5=(e,t)=>{const{componentName:r,config:n}=e,{tracking:i,app:a}=_t(),{trackEvent:o}=oy(),s=k.useContext(xS),u=k.useRef(!1);k.useEffect(()=>{if(!i||!a)return;if(!u.current&&!s){const d={packageName:n.packageName||i.packageName,packageVersion:n.packageVersion||"2.26.0",componentName:r,attributesUsed:Object.entries(t).filter(([,h])=>!!h).map(([h])=>h).join(", ")};o(F5,d,!i.enabled).finally(()=>u.current=!0)}},[r,t,i,s,o,a,n])},TS=({componentName:e,config:t})=>{const{skip:r,transparent:n}=t||{};return i=>function(o){const{trackError:s}=oy();return vS(r)&&r||N.isFunction(r)&&r(o)?w.jsx(i,M({},o)):(B5({componentName:e,config:t},o),w.jsx($5,{skipNested:!n,children:w.jsx(CS,{componentName:e,handler:s,children:w.jsx(i,M({},o))})}))}},H5=e=>t=>(t.displayName=e,t),Eu=e=>{const{componentName:t,shouldSkipSisenseContextWaiting:r,trackingConfig:n={},customContextErrorMessageKey:i,shouldHaveOwnMenuRoot:a,shouldHaveOwnModalRoot:o}=e;return s=>w.flow(H5(t),N5({shouldSkipSisenseContextWaiting:r,customContextErrorMessageKey:i}),TS({componentName:t,config:n}),dS({componentName:t}),t4(),T5({shouldHaveOwnMenuRoot:a}),R5({shouldHaveOwnModalRoot:o}))(s)};function tw(e){return`${e.fontFamily}|${e.fontWeight}|${e.fontStyle}`}function z5(e,t){const[r,n]=k.useState([]),[i,a]=k.useState(!1),o=k.useMemo(()=>e.filter(s=>!t.includes(tw(s))),[e,t]);return k.useEffect(()=>{if(o.length===0){a(!0);return}let s=!1;const u=o.map(c=>{const d=c.src.map(p=>Object.entries(p).map(([v,g])=>`${v}('${g}')`).join(" ")).join(", ");return new FontFace(c.fontFamily,d,{style:c.fontStyle,weight:c.fontWeight.toString()}).load().then(p=>(s||document.fonts.add(p),tw(c)))});return Promise.all(u).then(c=>{s||(n(d=>[...d,...c]),a(!0))}).catch(c=>{console.error("Failed to load fonts:",c),a(!0)}),()=>{s=!0}},[o]),{loadedFonts:r,areAllFontsLoaded:i}}const rw=k.createContext({loadedFonts:[]}),j5=({fonts:e,children:t})=>{var o;const{loadedFonts:r}=k.useContext(rw),{themeSettings:n}=mt(),{loadedFonts:i,areAllFontsLoaded:a}=z5(e||((o=n.typography.fontsLoader)==null?void 0:o.fonts)||[],r);return w.jsx(rw.Provider,{value:{loadedFonts:[...r,...i]},children:a&&t})},yl={none:"None",small:"Small",medium:"Medium",large:"Large",left:"Left",center:"Center",right:"Right",light:"Light",dark:"Dark"};function SS(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:W5(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:Id().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:yl[e.dashboards.widgetSpacing],cornerRadius:yl[e.dashboards.widgetCornerRadius],shadow:yl[e.dashboards.widgetShadow],border:e.dashboards.widgetBorderEnabled,borderColor:e.dashboards.widgetBorderColor,header:{titleTextColor:e.dashboards.widgetTitleColor,titleAlignment:yl[e.dashboards.widgetTitleAlignment],titleFontSize:Gv,dividerLine:e.dashboards.widgetTitleDividerEnabled,dividerLineColor:e.dashboards.widgetTitleDividerColor,backgroundColor:e.dashboards.widgetTitleBackgroundColor}},dashboard:{backgroundColor:e.dashboards.layoutBackgroundColor,dividerLineWidth:Fv,dividerLineColor:Lv,borderWidth:Bv,borderColor:$v,toolbar:{primaryTextColor:e.dashboards.toolbarTextColor,secondaryTextColor:e.dashboards.toolbarSecondaryTextColor,backgroundColor:e.dashboards.toolbarBackgroundColor,dividerLineColor:Hv,dividerLineWidth:zv}},filter:{panel:{titleColor:e.dashboards.panelTitleTextColor,backgroundColor:e.dashboards.panelBackgroundColor,dividerLineColor:jv,dividerLineWidth:Wv,borderColor:Uv,borderWidth:Vv}}};return w.merge.withOptions({mergeArrays:!1},Id(),n)}function ES(e){return e.dashboards.colorPaletteName}function W5(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 MS(e,t){return Vt(this,null,function*(){const r=yield U5(e,t);if(!r)throw new N.TranslatableError("errors.themeNotFound",{themeOid:e});const n=ES(r),i=yield AS(n,t);return SS(r,i,t.url)})}function U5(e,t){return Vt(this,null,function*(){return t.get(`api/v1/themes/${e}`).catch(()=>{throw new N.TranslatableError("errors.themeNotFound",{themeOid:e})})})}function AS(e,t){return Vt(this,null,function*(){const r=yield t.get(`api/palettes/${e}`);if(r&&"status"in r&&r.status==="error")throw new N.TranslatableError("errors.paletteNotFound",{paletteName:e});return r})}var PS=(e=>(e.DEFAULT="default",e.HOVER="hover",e.FOCUS="focus",e))(PS||{});function cd(e){return typeof e=="string"}function V5(e){var u;const t=mt().themeSettings,[r,n]=k.useState(null),[i,a]=k.useState(null),o=(u=_t().app)==null?void 0:u.httpClient;k.useEffect(()=>{e&&cd(e)&&o&&MS(e,o).then(c=>{n(c)}).catch(a)},[o,e]),k.useEffect(()=>{(!e||!cd(e))&&(n(null),a(null))},[e]);const s=k.useMemo(()=>r?nw(t,r):e&&!cd(e)?nw(t,e):t,[r,t,e]);return i?[null,i]:[s,null]}function nw(e,t){return w.merge.withOptions({mergeArrays:!1},e,t)}const RS=Eu({componentName:"ThemeProvider",trackingConfig:{skip:e=>!!e.skipTracking,transparent:!0},shouldSkipSisenseContextWaiting:!0})(e=>{var c;const{theme:t,children:r,config:n}=e,[i,a]=V5(t),o=mt().config,s=k.useMemo(()=>n&&o?w.merge.withOptions({mergeArrays:!1},o,n):n||o,[o,n]),u=(c=s==null?void 0:s.cssSelectorPrefix)!=null&&c.enabled?s.cssSelectorPrefix.value:void 0;if(a)throw a;return i?w.jsx(bS,{cssSelectorPrefix:u,children:w.jsx(Yv.Provider,{value:{themeSettings:i,config:s},children:w.jsx(j5,{children:r})})}):null}),iw="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",G5="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",q5="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",Y5="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",X5="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",K5="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",Z5="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",Q5="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",J5="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",e6="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",t6="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",r6="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",n6="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",i6="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",aw="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",ow={area:iw,arearange:iw,line:Q5,bar:G5,column:X5,polar:e6,funnel:K5,pie:J5,scatter:t6,indicator:Z5,table:n6,treemap:i6,areamap:aw,scattermap:aw,boxplot:q5,sunburst:r6,"calendar-heatmap":Y5};function a6(e){var r;return(r=ow[e])!=null?r:ow["bar"]}const o6="_wrapper_1lpzp_1",s6="_title_1lpzp_7",l6="_image_1lpzp_17",Gp={wrapper:o6,title:s6,image:l6},sy=({iconType:e})=>{var s,u;const{themeSettings:t}=mt(),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=a6(e),{t:o}=w.useTranslation();return w.jsxs("div",{ref:r,className:Gp.wrapper,children:[w.jsx("div",{className:Gp.title,style:{fontFamily:(s=t.typography)==null?void 0:s.fontFamily,fontSize:u6(n.width,n.height),color:(u=t.typography)==null?void 0:u.secondaryTextColor},children:o("chartNoData")}),a?w.jsx("img",{className:Gp.image,src:a,alt:o("chartNoData")}):null]})};function u6(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 OS(e,t,r,n){if(!N.isObject(e))return e;t=N.castPath(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var u=N.toKey(t[i]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(i!=o){var d=s[u];c=void 0,c===void 0&&(c=N.isObject(d)?d:N.isIndex(t[i+1])?[]:{})}N.assignValue(s,u,c),s=s[u]}return e}function kS(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var o=t[n],s=N.baseGet(e,o);r(s,o)&&OS(a,N.castPath(o,e),s)}return a}function c6(e,t){return kS(e,t,function(r,n){return N.hasIn(e,n)})}var d6=N.flatRest(function(e,t){return e==null?{}:c6(e,t)});const h6={translateDataOptionsToInternal:function(e){return{geo:e.geo&&w.normalizeColumn(e.geo[0]),color:e.color&&w.normalizeMeasureColumn(e.color[0])}},getAttributes:function(e){return[e.geo.column].filter(t=>!w.isMeasureColumn(t))},getMeasures:function(e){var r;const t=(r=e.color)==null?void 0:r.column;return t&&w.isMeasureColumn(t)?[t]:[]},isCorrectDataOptions:function(e){return"geo"in e&&N.isArray(e.geo)},isCorrectDataOptionsInternal:function(e){return"geo"in e&&!!e.geo.column}},f6={errors:{invalidAttribute:"Invalid attribute {{attributeName}}. Hint: attributes for query should be extracted from the data model generated by the CLI tool.",noDimensionsOrMeasures:"Neither dimensions nor measures found. Query should have at least one dimension or measure.",invalidMeasure:'Invalid measure "{{measureName}}". Hint: measures for the query can be constructed using the "measureFactory" functions.',invalidFilter:'Invalid filter "{{filterName}}". Hint: filters for the query can be constructed using the "filterFactory" functions.',invalidHighlight:'Invalid highlight "{{highlightName}}". Hint: highlights for the query can be constructed using the "filterFactory" functions.',invalidCountNegative:'Invalid count "{{count}}" in query. Count should be non-negative.',invalidOffset:'Invalid offset "{{offset}}" in query. Offset should be non-negative.',missingHttpClient:"Query was unable to load httpClient.",missingPostMethod:'httpClient must provide "post" method.',noJaqlResponse:"No jaql response received from the server",dataSourceNotFound:'Failed to get fields for data source "{{dataSource}}". Please make sure the data source exists and is accessible.'}},p6={errors:{invalidAttribute:"Недійсний атрибут {{attributeName}}. Підказка: атрибути для запиту повинні бути витягнуті з моделі даних, створеної за допомогою CLI-інструменту.",noDimensionsOrMeasures:"Не знайдено ні вимірів, ні показників. Запит повинен мати щонайменше один вимір або показник.",invalidMeasure:'Недійсний показник "{{measureName}}". Підказка: показники для запиту можна створити за допомогою функцій "measureFactory".',invalidFilter:'Недійсний фільтр "{{filterName}}". Підказка: фільтри для запиту можна створити за допомогою функцій "filterFactory".',invalidHighlight:'Недійсне виділення "{{highlightName}}". Підказка: виділення для запиту можна створити за допомогою функцій "filterFactory".',invalidCountNegative:`Недійсний count "{{count}}". Count повинен бути не від'ємним.`,invalidOffset:`Недійсний offset "{{offset}}". Offset повинен бути не від'ємним.`,missingHttpClient:"Для запиту потрібен httpClient, щоб працювати належним чином.",missingPostMethod:'httpClient повинен мати метод "post".',noJaqlResponse:"Відповіді, що містить jaql, від сервера не отримано",dataSourceNotFound:'Не вдалося отримати поля для джерела даних "{{dataSource}}". Переконайтесь що джерело існує і доступне.'}},DS="sdkQueryClient",m6={en:f6,uk:p6};function g6(){return N.initI18next({resource:m6,language:"en",namespace:DS})}const{i18nextInstance:v6}=g6();var ly={exports:{}},Uo=typeof Reflect=="object"?Reflect:null,sw=Uo&&typeof Uo.apply=="function"?Uo.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},dd;Uo&&typeof Uo.ownKeys=="function"?dd=Uo.ownKeys:Object.getOwnPropertySymbols?dd=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:dd=function(t){return Object.getOwnPropertyNames(t)};function y6(e){console&&console.warn&&console.warn(e)}var NS=Number.isNaN||function(t){return t!==t};function pt(){pt.init.call(this)}ly.exports=pt;ly.exports.once=C6;pt.EventEmitter=pt;pt.prototype._events=void 0;pt.prototype._eventsCount=0;pt.prototype._maxListeners=void 0;var lw=10;function zh(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(pt,"defaultMaxListeners",{enumerable:!0,get:function(){return lw},set:function(e){if(typeof e!="number"||e<0||NS(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");lw=e}});pt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};pt.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||NS(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function IS(e){return e._maxListeners===void 0?pt.defaultMaxListeners:e._maxListeners}pt.prototype.getMaxListeners=function(){return IS(this)};pt.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",a=this._events;if(a!==void 0)i=i&&a.error===void 0;else if(!i)return!1;if(i){var o;if(r.length>0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var u=a[t];if(u===void 0)return!1;if(typeof u=="function")sw(u,this,r);else for(var c=u.length,d=HS(u,c),n=0;n<c;++n)sw(d[n],this,r);return!0};function LS(e,t,r,n){var i,a,o;if(zh(r),a=e._events,a===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]),o===void 0)o=a[t]=r,++e._eventsCount;else if(typeof o=="function"?o=a[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),i=IS(e),i>0&&o.length>i&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,y6(s)}return e}pt.prototype.addListener=function(t,r){return LS(this,t,r,!1)};pt.prototype.on=pt.prototype.addListener;pt.prototype.prependListener=function(t,r){return LS(this,t,r,!0)};function b6(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function FS(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=b6.bind(n);return i.listener=r,n.wrapFn=i,i}pt.prototype.once=function(t,r){return zh(r),this.on(t,FS(this,t,r)),this};pt.prototype.prependOnceListener=function(t,r){return zh(r),this.prependListener(t,FS(this,t,r)),this};pt.prototype.removeListener=function(t,r){var n,i,a,o,s;if(zh(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){s=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():_6(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};pt.prototype.off=pt.prototype.removeListener;pt.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i<a.length;++i)o=a[i],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function $S(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?w6(i):HS(i,i.length)}pt.prototype.listeners=function(t){return $S(this,t,!0)};pt.prototype.rawListeners=function(t){return $S(this,t,!1)};pt.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):BS.call(e,t)};pt.prototype.listenerCount=BS;function BS(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}pt.prototype.eventNames=function(){return this._eventsCount>0?dd(this._events):[]};function HS(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function _6(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function w6(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function C6(e,t){return new Promise(function(r,n){function i(o){e.removeListener(t,a),n(o)}function a(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}zS(e,t,a,{once:!0}),t!=="error"&&x6(e,i,{once:!0})})}function x6(e,t,r){typeof e.on=="function"&&zS(e,"error",t,r)}function zS(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(a){n.once&&e.removeEventListener(t,i),r(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var T6=ly.exports;const uy=w.getDefaultExportFromCjs(T6),Be={HEADERS:"headers",METADATA:"metadata",DATA:"data",GRAND:"grand",FINISH:"finish",ERROR:"error",TOTAL_ROWS:"totalRows",DATA_FINISH:"dataFinish",DATABARS:"dataBars",RANGE_MIN_MAX:"rangeMinMax"},S6=[Be.ERROR,Be.HEADERS,Be.GRAND,Be.METADATA,Be.DATA,Be.DATA_FINISH,Be.TOTAL_ROWS,Be.DATABARS,Be.RANGE_MIN_MAX,Be.FINISH];class kc extends Error{constructor(t="Loading canceled"){super(t),this.name="LoadingCanceledError";const r=new.target.prototype;Object.setPrototypeOf&&Object.setPrototypeOf(this,r)}}class E6{constructor(t,r,n,i){this.childColCells=[],this.childRowCells=[],this.indexInParent=-1,this.siblingCount=0,this.rowIndex=t,this.colIndex=r,this.node=n,this.parent=i}isChild(){return!this.node}hasChildren(){return!!(this.childColCells.length||this.childRowCells.length)}hasColCell(){return this.childColCells.length>0}addColCell(t){this.childColCells.push(t)}getColCell(){return this.childColCells||[]}hasRowCell(){return this.childRowCells.length>0}addRowCell(t){this.childRowCells.push(t)}getRowCell(){return this.childRowCells||[]}getStopRowIndex(){return this.hasRowCell()?this.rowIndex+this.getRowCell().length:this.rowIndex}getStopColIndex(){return this.hasColCell()?this.colIndex+this.getColCell().length:this.colIndex}setIndexInParent(t,r){this.indexInParent=t,this.siblingCount=r}getIndexInParent(){return{indexInParent:this.indexInParent,siblingCount:this.siblingCount}}getParenPosition(){if(!this.parent)return;const t=(this.parent||"").match(/\d+/g)||[];return[Number(t[0]),Number(t[1])]}}const zn={FIRST:"first",LAST:"last",EVEN:"even",ODD:"odd"};var M6=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const jS=[Date,Error,RegExp,Promise];function WS(e,t=jS){return t.some(r=>e instanceof r)}function uw(e,t=[]){let r=!1;return t.forEach(n=>{e.includes(n)&&(r=!0)}),r}function US(e=[],t,r){const n=[];return r&&e.forEach(i=>{n.push(`${i}.$`)}),e.length?e.forEach(i=>{n.push(`${i}.${t}`)}):n.push(t),n}function Al(e){return!(e===null||typeof e=="undefined"||typeof e!="object")}function A6(e,t){return Al(e)&&e?Array.isArray(e)?!e.length:WS(e,t)?!1:!Object.keys(e).length:e==null}function P6(e=""){const t=e.split(".");return t.length>1?(t.pop(),t.join(".")):t[0]}function cw(e,t,r){return e.length?uw(e,r):t.length?!uw(t,r):!0}function VS(e,t=[],r=[],n=[],i={},a={},o=[],s=[]){if(!Al(e))return{commonIncludeKeys:[],commonExcludeKeys:[]};const u=o.indexOf(e);if(u!==-1)return s[u];o.push(e);const c=Object.keys(e),d=Array.isArray(e);let h=[],p=[];const m=[],v=[];if(c.forEach(g=>{const b=e[g],C=US(n,g,d),x=n[0]||"&";i[x]=i[x]||[],a[x]=a[x]||[],C.forEach(E=>{(t||[]).includes(E)&&(i[x].push(E),h.push(E)),(t||[]).forEach(T=>{const A=P6(T);(`${A}.$`===x||A===x)&&(i[x].includes(T)||i[x].push(T),h.includes(T)||h.push(T))}),(r||[]).includes(E)&&(a[x].push(E),p.push(E))}),Al(b)&&VS(b,t,r,C,i,a,o,s)}),Al(e)){let g=n[0]||"&";Array.isArray(e)&&(g=`${g}.$`),i[g]=(i[g]||[]).concat(m),h=h.concat(m),a[g]=(a[g]||[]).concat(v),p=h.concat(v)}return s.push({commonIncludeKeys:h,commonExcludeKeys:p}),{commonIncludeKeys:h,commonExcludeKeys:p}}function GS(e,t,r=new WeakMap){const{includeKeys:n,includeKeysObj:i,excludeKeys:a,excludeKeysObj:o,parentKeys:s=[],excludeEmpty:u,referenceClone:c}=t||{};if(!Al(e)||WS(e,c))return e;if(r.has(e))return r.get(e);const d=Object.keys(e),h=Array.isArray(e),p=h?[]:{};r.set(e,p);const m=s[0]||"&",v=(i||{})[m]||[],g=(o||{})[m]||[];return d.forEach(b=>{const C=e[b];let x=[],E=!0;if(n||a?E=cw(n||[],a||[],[b]):(i||o)&&(x=US(s,b,h),E=cw(v,g,x)),E){const T=GS(C,Object.assign(Object.assign({},t),{parentKeys:x}),r);(!u||!A6(T,c))&&(h?p.push(T):p[b]=T)}}),p}function Br(e,t){const r=t||{},{include:n,exclude:i}=r,a=M6(r,["include","exclude"]);let o,s;(n||i)&&(o={},s={},VS(e,n,i,[],o,s));const u=Object.assign(Object.assign({},a),{includeKeysObj:o,excludeKeysObj:s});return GS(e,u)}Br.REFERENCE_CLONE_TYPES=jS;function dw(e,t,r=0){for(let n=r;n<e.length;n+=1){const i=e[n];if(!!t(i,n,e))return n}return-1}const R6=(e,t)=>{let r,n,i=null;const a=(...o)=>{r?i=o:(e(...o),r=!0,i=null,n=setTimeout(()=>{r=!1,i&&(e(...i),i=null)},t))};return a.cancel=()=>{clearTimeout(n),r=!1},a},ql="$*$root$*$";function O6(e,t,r,n){const i={value:e};return t&&(i.children=t),r&&(i.data=r),typeof n!="undefined"&&(i.index=n),i}function jh(e){return!!(e&&e.children&&e.children.length)}function An(e){return e&&e.children||[]}function s0(e,t){e&&t&&Array.isArray(t)&&(e.children=t)}function k6(e,t){e&&(e.level=t)}function D6(e){return e&&typeof e.level!="undefined"?e.level||0:-1}function Po(e){if(!e)return;if(e&&!Array.isArray(e)&&e.value===ql)return e;const t={value:ql,children:[]};return Array.isArray(e)?t.children=e:(t.children||[])[0]=e,t}function qS(e,t,r=0){let n;if(!e||!t)return n;if(t(e,r)&&(n=e),jh(e)){const i=An(e),a=i.length;for(let o=0;o<a;o+=1){const s=qS(i[o],t,r+1);if(s){n=s;break}}}return n}function N6(e,t){if(!e&&!t)return;if(!e&&t)return Po(t);if(e&&!t)return Po(e);const r=Po(e),n=Po(t),i=r&&r.children||[],a=n&&n.children||[],o=i.concat(a);return Po(o)}const YS=(e,t=0)=>{if(!e||!e.isPart)return;e.level=t;const r=An(e),n=r[r.length-1];return n&&YS(n,t+1)||e},XS=(e,t,r=0)=>{if(!e||!e.isPart)return;if(e.level=r,e&&t&&e.value===t.value&&e.level===t.level)return e;const i=An(e)[0];return i&&XS(i,t,r+1)||e};function I6(e,t){let r=YS(e),n=XS(t,r);r&&r.children&&Array.isArray(r.children)&&n&&n.children&&Array.isArray(n.children)&&n.children.length>0&&(r.children=r.children.concat(n.children),n.isHandled=!0);let i=!1;for(r=e,n=t;r&&r.children&&Array.isArray(r.children)&&n&&n.children&&Array.isArray(n.children)&&!n.isHandled;){const a=r.children;r=r.children[r.children.length-1];let o=0;for(n.children[0]&&!i&&(i=!An(n.children[0]).some(s=>s.isPart),o=1);o<n.children.length;)a.push(n.children[o]),o+=1;n=n.children[0]}return e}function KS(e,t,r){!e||!t||e.forEach(n=>{t(n,r),jh(n)&&KS(An(n),t,n)})}function ZS(e,t=[],r=0,n={maxLevel:0}){return e.forEach(i=>{n.maxLevel<r&&(n.maxLevel=r),jh(i)?ZS(An(i),t,r+1,n):t.push(i)}),t}function Wh(e,t={}){if(t||(t={}),typeof t.callCount!="number"?t.callCount=1:t.callCount+=1,!e)return 0;let r=t.clearCache||!1;!Array.isArray(e)&&e.value===ql&&(r=!0);let n=1,i=[];return Array.isArray(e)?(n=0,i=e):e.children&&(i=An(e)),i&&i.length&&(!r&&!Array.isArray(e)&&typeof e.childCount=="number"?n=e.childCount:(n=0,i.forEach(a=>{n+=Wh(a,t)}),Array.isArray(e)||(e.childCount=n))),n}function QS(e,t={}){if(t||(t={}),typeof t.callCount!="number"?t.callCount=1:t.callCount+=1,!e)return 0;let r=t.clearCache||!1;!Array.isArray(e)&&e.value===ql&&(r=!0);let n=0,i=[];if(e&&!Array.isArray(e)&&typeof e.value!="undefined"&&(n=1),Array.isArray(e)?(n=0,i=e):e.children&&(i=An(e)),i&&i.length)if(!r&&!Array.isArray(e)&&typeof e.childDeep=="number")n+=e.childDeep;else{let a=0;i.forEach(o=>{const s=QS(o,t);s>a&&(a=s)}),n+=a,Array.isArray(e)||(e.childDeep=a)}return n}function JS(e=[],t=0,r){const n=[];let i=0,a=-1,o=-1;const s=e.length;if(typeof t=="number"&&typeof r=="number"&&t>r)throw new Error('Wrong "getNodesByChildCount" diapason');if(typeof t=="number"&&t<0)throw new Error('Wrong "from" index for "getNodesByChildCount"');for(let u=0;u<s;u+=1){const c=e[u],d=Wh(c);if(i+d>t&&(a<0&&(a=i),n.push(c),typeof r=="number"&&i+d>=r)){o=i+d;break}o=i+d,i+=d}return{nodes:n,start:a,stop:o}}function L6(e){e.isMapped!==void 0&&(e.isMapped=void 0),e.minLevel!==void 0&&(e.minLevel=void 0),e.childCount!==void 0&&(e.childCount=void 0),e.childDeep!==void 0&&(e.childDeep=void 0)}function l0(e=[],t=0,r,n){const{cloneFn:i=Br}=n||{},a=[],{nodes:o,start:s,stop:u}=JS(e,t,r),c=o.length;let d,h,p=!0;if(s<t){const m=o[0]||{},v=t-s;let g;c===1&&typeof r=="number"&&(g=r-s,p=!1),d=i(m,!0);const b=l0(An(m),v,g,n);s0(d,b)}if(typeof r=="number"&&u>r&&p){const m=o[c-1]||{},v=0,g=Wh(m)-(u-r);h=i(m,!0);const b=l0(An(m),v,g,n);s0(h,b)}return o.forEach((m,v)=>{if(d&&v===0)a.push(d);else if(h&&v===c-1)a.push(h);else{const g=i(m);a.push(g)}}),a}const we={ROOT:ql,create:O6,hasChildren:jh,getChildren:An,setChildren:s0,setLevel:k6,getLevel:D6,getLastLevelNodes:ZS,iterateThroughTree:KS,wrapInRootNode:Po,findNode:qS,merge:N6,deepMerge:I6,getChildLength:Wh,getDeepLength:QS,getNodesByChildCount:JS,getCutNodesByChildCount:l0,clearNodeCache:L6},yo=(e,t)=>`${e}-${t}`;class F6{constructor(t,r=!1,n){this.hasGrandTotals=!1,this.isVertical=!1,this.columns=[],this.lastLevel=[],this.map={},this.metadataCache={},this.isVertical=r,this.deep=n,t&&(this.tree=t,this.columns=this.cacheLevels(we.getChildren(this.tree)))}destroy(){this.tree=void 0,this.columns=[],this.lastLevel=[],this.map={},this.metadataCache={},this.valueNode=void 0,this.grid=void 0}getMainCellWidth(t,r,n,i,a={offsetTop:-1,columnsOffset:0}){const{columnsOffset:o=0}=a,s=this.getItem(t,r),u=s&&s.hasChildren()&&s.hasColCell();let c=Number.NaN,d=!0;if(s&&u){const h=s.getColCell(),p=n({index:r+o});c=h.reduce((m,v)=>{const g=n({index:v.colIndex+o});return g||(d=!1),m+g},p),c-=i,c=Math.ceil(c)}return d?c:Number.NaN}extend(t){t&&(this.grid=void 0,this.tree=we.merge(this.tree,t),this.columns=this.cacheLevels(we.getChildren(t),this.columns))}getGrid(){if(this.grid)return this.grid;let t=this.getTreeDeepsLength(),r=this.getTreeChildLength();return this.isVertical?([t,r]=[r,t],this.map=this.fillMapVertical(we.getChildren(this.tree),r,this.map)):this.map=this.fillMap(we.getChildren(this.tree),t,this.map),this.grid=Array.from(Array(t)).map((n,i)=>Array.from(Array(r)).map((a,o)=>{const s=yo(i,o),u=this.map[s];if(!u)throw new Error(`Key "${s}" does not found in TreeService`);return u.node?u.node:u.parent})),this.grid}getPartialGrid(t,r){if(!this.isVertical)throw new Error('"getPartialGrid" can only be used for "vertical" tree');const n=this.getTreeDeepsLength(),i=we.getChildren(this.tree),{nodes:a,start:o,stop:s}=we.getNodesByChildCount(i,t,r);this.fillMapVertical(a,n,this.map,{parentRowIndex:o,parentColIndex:0,prevChildren:0,parentKey:""});const u=Math.max(o,t),c=Math.min(s,r),d=Math.max(0,c-t);return Array.from(Array(d)).map((h,p)=>Array.from(Array(n)).map((m,v)=>{const g=u+p,b=yo(g,v),C=this.map[b];if(!C)throw new Error(`Key "${b}" does not found in TreeService`);return C.node?C.node:C.parent||""}))}getPartialTree(t,r,n){const i=we.getChildren(this.tree);return we.getCutNodesByChildCount(i,t,r,n)}getTreeNode(t,r){const n=this.getItem(t,r);if(n&&n.node)return n.node}isChildren(t,r){const n=this.getItem(t,r);if(n)return n.isChild();if(typeof this.deep=="number"&&(this.isVertical?r:t)<this.deep)return!0;throw new Error(`Item "${t}-${r}" does not found in TreeService`)}hasChildren(t,r){const n=this.getItem(t,r);if(n)return n.hasChildren();throw new Error(`Item "${t}-${r}" does not found in TreeService`)}getMainCellSpans(t,r){const n={},i=this.getItem(t,r);return i&&i.hasColCell()&&(n.colSpan=i.getColCell().length+1),i&&i.hasRowCell()&&(n.rowSpan=i.getRowCell().length+1),n}alignStartIndex(t,r=!1){let n=0,i=t;if(r&&(n=t,i=0),this.isVertical===r){let a=this.getItem(n,i);if(a&&a.isChild()&&(a=this.getItemByKey(a.parent||"")),a)return r?a.rowIndex:a.colIndex}return t}alignStopIndex(t,r=!1){let n=0,i=t;if(r&&(n=t,i=0),this.isVertical===r){let a=this.getItem(n,i);if(a&&a.isChild()&&(a=this.getItemByKey(a.parent||"")),a)return r?a.getStopRowIndex():a.getStopColIndex()}return t}getTreeChildLength(t=we.getChildren(this.tree),r){return we.getChildLength(t,r)}getTreeDeepsLength(t=we.getChildren(this.tree),r){return typeof this.deep!="undefined"&&this.deep!==void 0?this.deep:we.getDeepLength(t,r)}getLastLevelNodes(){return this.lastLevel}extractData(t){if(!t)return[];const n=t.getLastLevelNodes().map(i=>i.index);return this.getLastLevelNodes().map(i=>typeof i.data=="undefined"?[i.data]:n?n.map(a=>{let o;return typeof a!="undefined"&&i.data&&(o=i.data[a]),o}):i.data)}getMetadata(t,r,n){const i=this.getTreeDeepsLength();t===1/0&&(t=i&&i-1),r===1/0&&(r=i&&i-1);const a=`${t}-${r}`;if(this.metadataCache[a])return this.metadataCache[a];let o=this.getItemByKey(a);if(!o)throw new Error(`Can not find metadata info for ${a} cell`);let s=o?o.node:void 0;if(s||(o=this.getItemByKey(o.parent||"")),!o)throw new Error(`Can not find metadata info for parent ${a} cell`);s=o?o.node:void 0;const u=this.getItemByKey(`${t+1}-${r}`),c=u?u.node:void 0,d=s&&s.level||0,h=this.isVertical?o.getStopColIndex():o.getStopRowIndex();let{indexInParent:p,siblingCount:m}=o.getIndexInParent(),v=p;if(d===0&&(m=this.getTreeChildLength(),p=this.isVertical?o.rowIndex:o.colIndex,v=p+(this.isVertical?o.getRowCell().length:o.getColCell().length)),n){const x=n.to-n.from;m<=x&&v>x-1&&(v=x-1)}const g={levels:[],siblings:[],root:void 0,parent:void 0,valueNode:this.valueNode,nextNode:c},{indexDivergence:b}=s||{};if(typeof b=="number"){const x=b===0?zn.EVEN:zn.ODD;g.siblings.push(x)}if(d===0&&g.levels.push(zn.FIRST),h===i-1&&g.levels.push(zn.LAST),p===0&&g.siblings.push(zn.FIRST),v===m-1&&g.siblings.push(zn.LAST),s&&d!==0){const x=this.isVertical?t:0,E=this.isVertical?0:r;g.root=this.getMetadata(x,E,n)}const C=this.getItemByKey(o.parent||"");if(C&&d!==0&&(g.parent=this.getMetadata(C.rowIndex,C.colIndex,n)),n){const x=this.isVertical?o.rowIndex:o.colIndex,E=this.isVertical?o.getStopRowIndex():o.getStopColIndex();let T;C&&(T=this.isVertical?C.getStopRowIndex():C.getStopColIndex()),T!==void 0&&T>=n.to-n.from&&E>=n.to-n.from-1&&!g.siblings.includes(zn.LAST)&&g.siblings.push(zn.LAST),x===0&&!g.siblings.includes(zn.FIRST)&&g.siblings.push(zn.FIRST)}return this.metadataCache[a]=g,g}setValueNode(t){typeof t=="object"&&(this.valueNode=t)}cacheLevels(t,r=[],n={level:0}){const{level:i}=n;return t.forEach(a=>{if(r[i]||(r[i]=[]),we.setLevel(a,i),r[i].push(a),we.hasChildren(a)){const o=i+1;this.cacheLevels(we.getChildren(a),r,{level:o})}else this.lastLevel.push(a)}),r}fillMap(t,r,n={},i){const a=i||{parentRowIndex:0,parentColIndex:0,prevChildren:0,parentKey:""},o=t.length;return t.forEach((s,u)=>{const{parentRowIndex:c,parentColIndex:d,prevChildren:h,parentKey:p}=a,v=we.getLevel(s)+c,g=u+d+h,b=yo(v,g),C=this.createTreeCellMap({rowIndex:v,colIndex:g,node:s,parent:p});C.setIndexInParent(u,o),n[b]=C;let x=0,E=0;if(we.hasChildren(s)?(x=this.getTreeChildLength(s),typeof s.minLevel=="number"&&(E=s.minLevel+1-v||0)):E=(r||0)-(v||0),(x>1||E>1)&&this.fillChildMap(n,b,v,g,E,x),we.hasChildren(s)){const T=Object.assign(Object.assign({},a),{parentRowIndex:E>1?E-1:0,parentColIndex:u+d,parentKey:b});this.fillMap(we.getChildren(s),r,n,T),x>1&&(a.prevChildren+=x-1)}}),n}fillMapVertical(t,r,n={},i){const a=i||{parentRowIndex:0,parentColIndex:0,prevChildren:0,parentKey:""},o=t.length;return t.forEach((s,u)=>{if(s.isMapped){a.parentRowIndex+=we.getChildLength(s)-1;return}s.isMapped=!0;const{parentRowIndex:c,prevChildren:d,parentKey:h}=a,p=we.getLevel(s),m=u+c+d,v=yo(m,p),g=this.createTreeCellMap({rowIndex:m,colIndex:p,node:s,parent:h});g.setIndexInParent(u,o),n[v]=g;let b=0,C=0;if(we.hasChildren(s)?C=this.getTreeChildLength(s):b=(r||0)-(p||0),(b>1||C>1)&&this.fillChildMap(n,v,m,p,C,b),we.hasChildren(s)){const x=Object.assign(Object.assign({},a),{parentRowIndex:u+c,parentKey:v});this.fillMapVertical(we.getChildren(s),r,n,x),C>1&&(a.prevChildren+=C-1)}}),n}fillChildMap(t,r,n,i,a,o){const s=t[r],u=Math.max(1,a),c=Math.max(1,o);Array.from(Array(u)).forEach((d,h)=>{Array.from(Array(c)).forEach((p,m)=>{if(h===0&&m===0)return;const v=n+h,g=i+m,b=yo(v,g),C=this.createTreeCellMap({rowIndex:v,colIndex:g,parent:r});t[b]=C,!(h!==0&&m!==0)&&(m===0&&s.addRowCell(C),h===0&&s.addColCell(C))})})}createTreeCellMap({rowIndex:t,colIndex:r,node:n,parent:i}){return new E6(t,r,n,i)}getItemByKey(t){return this.map[t]}getItem(t,r){const n=yo(t,r);return this.getItemByKey(n)}}class ga extends F6{}const He={ROWS:"rows",COLUMNS:"columns",MEASURES:"measures",SCOPE:"scope"},Dc={ASC:"asc",DESC:"desc"},tr={SUB_TOTAL:"subTotal",GRAND_TOTAL:"grandTotal",MEASURE_TOP:"measureTop",MEASURE_BOTTOM:"measureBottom",CORNER:"corner"},hw={COLOR:"color",CONDITION:"condition"},cy={DATETIME:"datetime",TEXT:"text",NUMERIC:"numeric"},bo={MEMBER:"member",VALUE:"value",SUB_TOTAL:"subtotal",GRAND_TOTAL:"grandtotal"},Gi={MEMBER:"member",INDEX:"index",TITLE:"title",NAME:"name",AGG:"agg",DIM:"dim"};class fw{constructor(t=[],r){this.divergence=0;const n=r?r.getDivergence():0,i=we.getLastLevelNodes(t);this.divergence=(n+i.length)%2;for(let a=0;a<i.length;a+=1)i[a].indexDivergence=(a+n)%2}getDivergence(){return this.divergence}}const Zn=(e,t)=>{const r=e;return t&&(r.metadataType=t),r};function Mu(e=[]){const t={};return e.forEach(r=>{const{index:n=1/0}=r.field||{},i=`${n}`;t[i]=r.jaql.datatype||cy.TEXT}),t}function u0(e,t){if(e&&t===cy.DATETIME)try{return new Date(e).toISOString()}catch(r){return e}return e}function pw(e){if(e!==null&&!N.isEqual(e,{}))return e}function ka(e,t,r={}){const n=pw(e),i=pw(t);let a=!1;if(typeof n=="object"&&n!==null&&typeof i=="object"&&i!==null){a=!0;const o=Object.keys(n),s=Object.keys(i);o.length!==s.length?a=!1:o.forEach(u=>{const c=r[u]||"";let d=(n||{})[u],h=(i||{})[u];if(typeof d=="undefined"||typeof h=="undefined"){a=!1;return}c===cy.DATETIME&&(d=u0(d,c),h=u0(h,c)),d!==h&&(a=!1)})}else a=n===i;return a}function eE(e,t,r=u0){if(!e||typeof e!="object")return e;const n={};return Object.keys(e).forEach(i=>{const a=t[i],o=(e||{})[i],s=r(o,a);n[i]=s}),n}const Pn=(e,t)=>{let r=e&&e.metadata||[];return t&&(r=r.filter(n=>n.panel===t)),r.sort((n,i)=>{const a={index:1/0},o=n.field||a,s=i.field||a;return o.index-s.index}),r},Va=(e,t,r)=>typeof t=="undefined"?void 0:Pn(e,r).filter(a=>(a.field||{index:1/0}).index===t)[0],$6=(e,t)=>{const r=e.field||{index:1/0};if(e.panel===He.MEASURES)return!0;if(e.panel===He.ROWS){const n=Pn(t,He.ROWS),a=(n[n.length-1]||{}).field||{index:1/0};if(n.length&&a.index===r.index)return!0;n.length||console.error("Missing rows panel in jaql!")}return!1};function B6(e,t){return!e||typeof e.field!="number"?!1:e.field!==t}const dy=(e,t=He.ROWS)=>{const n=Pn(e,t).map((i,a)=>{const o=we.create(i.jaql.title,void 0,void 0,a),s=Zn(o,t);switch(s.jaqlIndex=i.field?i.field.index:void 0,t){case He.ROWS:{s.measurePath=void 0;const u=B6(i.jaql.sortDetails,s.jaqlIndex);i.jaql.sort&&!u?s.dir=i.jaql.sort:s.dir=null;break}case He.MEASURES:s.databars=i.format?i.format.databars:!1,s.measureJaqlIndex=s.jaqlIndex,Pn(e,He.COLUMNS).length||(s.measurePath=void 0,i.jaql.sortDetails&&i.jaql.sortDetails.measurePath===null?s.dir=i.jaql.sortDetails.dir:s.dir=null);break}return s});return we.wrapInRootNode(n)},tE=e=>{(e&&e.metadata?e.metadata:[]).forEach(r=>{r&&r.jaql&&r.jaql.sort&&r.jaql.sortDetails&&r.jaql.sortDetails.sortingLastDimension&&(r.jaql.sort=null,delete r.jaql.sortDetails)})},rE=e=>{e&&e.jaql&&(e.jaql.sort=null,delete e.jaql.sortDetails)},nE=e=>{(e&&e.metadata?e.metadata:[]).forEach(r=>rE(r))},H6=e=>(e.metadata||[]).reverse().find(t=>!!t.jaql.sortDetails),z6=e=>(e.metadata||[]).find(t=>!!(t.jaql.sortDetails&&t.jaql.sortDetails.isLastApplied)),j6=e=>{const t=z6(e)||H6(e);if(!t)return;const r=t.field&&t.field.index;(e.metadata||[]).forEach(n=>{(n.field&&n.field.index)!==r&&rE(n)})},iE=(e,t)=>{e.metadata.forEach(r=>{const n=r.field&&r.field.index;if(t.field===n){r.jaql.sortDetails=r.jaql.sortDetails||t,r.jaql.sortDetails.isLastApplied=!0;return}r.jaql.sortDetails&&r.jaql.sortDetails&&delete r.jaql.sortDetails.isLastApplied})},W6=(e,t,r)=>{const{isSingleRowTree:n=!1,formatter:i}=r||{};if(!t){console.warn("jaql is undefined or null!");return}const a=Va(t,e.field);if(a&&a.panel===He.COLUMNS){console.warn('Should not be sorted by "COLUMN" type panels!');return}if(!a)return;const o=$6(a,t);switch(n?nE(t):o&&tE(t),e.dir){case Dc.DESC:case null:a.jaql.sort=Dc.ASC;break;case Dc.ASC:a.jaql.sort=Dc.DESC;break;default:a.jaql.sort=void 0}const s=a.field||{index:1/0};if(a.jaql.sort){let{measurePath:u}=e;if(u){const c=Pn(t),d=Mu(c);u=eE(u,d,i)}a.jaql.sortDetails={field:s.index,dir:a.jaql.sort,sortingLastDimension:o,measurePath:u,initialized:!0}}else a.jaql.sortDetails=void 0;t&&t.metadata&&s.index!==void 0&&(t.metadata[s.index]=a),iE(t,e)},U6=(e,t,r)=>{if(!e)return;const n=Va(e,t);n&&(n.format=n.format||{},n.format.width=r)},V6=e=>{const t={};return e&&Pn(e).forEach(n=>{const i=n.field||{index:1/0};n.format&&typeof n.format.width!="undefined"&&typeof i.index!="undefined"&&(t[i.index]=n.format.width)}),t},aE=(e,t)=>{if(typeof t.measureJaqlIndex!="undefined"){const r=Pn(e),n=Mu(r),i=r.filter(o=>o.panel===He.ROWS).find(o=>{const s=o.jaql.sortDetails;return!s||!(s.field===t.measureJaqlIndex)?!1:!!ka(t.measurePath,s.measurePath,n)});if(i){t.dir=i.jaql.sort?i.jaql.sort:null;return}const a=Va(e,t.measureJaqlIndex);if(a&&a.jaql.sortDetails){const o=a.jaql.sortDetails.measurePath,s=t.measurePath;if(ka(o,s,n)){t.dir=a.jaql.sort||null;return}}}t.dir=null};function G6(e,t,r,n){const{isSingleRowTree:i,formatter:a}=n;i&&nE(e),e.metadata.forEach(o=>{o.jaql.sortDetails&&delete o.jaql.sortDetails.isLastApplied}),t.forEach((o,s)=>{let u;s===t.length-1?(o.selected&&tE(e),u=r.field):u=o.indexInJaql;const c=Va(e,u);if(!c){console.warn(new Error("Panel not found"));return}o.selected&&!o.direction&&console.warn(new Error("Direction should be defined and equal to 'asc' or 'desc'"));const d=Pn(e),h=Mu(d);if(!o.direction||!o.selected){const{sortDetails:p}=c.jaql;!!(p&&r.field===p.field&&ka(r.measurePath,p.measurePath,h))&&(delete c.jaql.sort,delete c.jaql.sortDetails)}if(o.selected&&o.direction){c.jaql.sort=o.direction;let{measurePath:p}=r;p&&(p=eE(p,h,a)),r.measurePath===void 0&&c.field&&c.panel==="rows"&&r.field!==c.field.index&&(p={}),c.jaql.sortDetails={field:r.field,dir:o.direction,sortingLastDimension:!1,measurePath:p,isLastApplied:!0,initialized:!0}}})}function q6(e,t,r,n){return e.jaql.sortDetails?!1:r?ka(t.measurePath,r.measurePath,n):!1}function c0(e){const t=e&&e.dir;switch(t){case"asc":case"desc":return t;default:return null}}function Y6(e,t){var r,n;const i=e.metadata.filter(v=>v.panel==="rows"),a=Va(e,t.field),o=a.jaql.datatype,s=a.jaql.sortDetails,u=Mu(Pn(e)),c=[];for(let v=0;v<i.length-1;v+=1){const g=i[v],b=!!(g.jaql.sortDetails&&g.jaql.sortDetails.field===t.field&&ka(t.measurePath,g.jaql.sortDetails.measurePath,u)),C=c0(g.jaql.sortDetails);c.push({title:g.jaql.title,datatype:o,selected:b,direction:C,indexInJaql:(r=g.field)===null||r===void 0?void 0:r.index})}const d=i[i.length-1],h=q6(d,t,s,u),p=c0(s),m={title:d.jaql.title,datatype:o,selected:h,direction:p,indexInJaql:(n=a.field)===null||n===void 0?void 0:n.index};return c.push(m),c}function X6(e,t,r){return e.filter(i=>i.field&&t.field===i.field.index).map(i=>{const{sortDetails:a}=i.jaql,o=!!(a&&ka(t.measurePath,a.measurePath,r)),s=o?c0(a):null;return{title:i.jaql.title,datatype:i.jaql.datatype,selected:o,direction:s}})[0]}const _o={isMeasurePathEqual:ka,getDataTypes:Mu,updatePanelsSortingMetadata:W6,getMetadataTree:dy,getMetadataPanels:Pn,getMetadataPanelByIndex:Va,setResizeWidthToJaql:U6,getResizeWidthFromJaql:V6,markSortedNode:aE,normalizeSingleBranchTreeSortDetails:j6,updateLastAppliedSortingFlag:iE,handleComplexSortingSettingsUpdate:G6,mapWidgetJaqlToSimpleSortingSettings:X6,mapWidgetJaqlToComplexSortingSettings:Y6};function oE(e,t){if(!we.hasChildren(e))return!1;let r=!1;t===He.COLUMNS&&e&&e.isPart&&(r=!0);const n=we.getChildren(e);if(n.length>1||r)return!0;const[i]=n;return oE(i)}function K6(e){return e==null}const hy=(e,t,r,n,i)=>{const a=[];return e.forEach(o=>{if(a.push(o),we.hasChildren(o)){const s=we.getChildren(o),u=hy(s,t,r,n,i);we.setChildren(o,u);let c=!1;if((i||oE(o,r))&&(r===He.COLUMNS?typeof o.index!="undefined"&&o.index>-1&&(c=!0):r===He.ROWS&&typeof o.data!="undefined"&&(c=!0)),c){const{value:d,index:h,data:p,jaqlIndex:m,measurePath:v}=o;let g;if(r===He.COLUMNS?g=we.create(d,void 0,void 0,h):r===He.ROWS&&(g=we.create(d,void 0,p)),g){const b=Zn(g,r);b.userType=tr.SUB_TOTAL,b.jaqlIndex=m,b.measurePath=v,b.master=o,a.push(b)}}}}),a},sE=(e,t)=>{e.userType===tr.SUB_TOTAL&&e.master&&(e.measurePath=e.master.measurePath)},lE=(e,t,r,n)=>{const i=e;if(r===He.COLUMNS&&t){const a=Zn(t);if(typeof a.index=="number"){const s=dy(n,He.MEASURES);we.getChildren(s).forEach((u,c)=>{const d=Object.assign(Object.assign({},u),{index:(a.index||0)+c}),h=Zn(d,r);h.userType=tr.GRAND_TOTAL,h.measureJaqlIndex=h.jaqlIndex,i.push(h)})}}return i},uE=(e,t)=>{e.userType===tr.GRAND_TOTAL&&(e.measurePath=void 0,e.metadataType===He.ROWS&&(e.parent=void 0,e.jaqlIndex=0))},cE=(e,t,r,n)=>{let i=e;if(r===He.COLUMNS){const a=dy(n,He.MEASURES),o=we.getChildLength(a),s={maxLevel:0},u=we.getLastLevelNodes(i,[],0,s);if(o>1)u.forEach(c=>{if(c.userType===tr.GRAND_TOTAL)return;const d=we.getChildren(a),h=[];for(let p=0;p<d.length;p+=1){if(typeof c.maxChilds=="number"&&p>=c.maxChilds)continue;const m=Object.assign(Object.assign({},d[p]),{index:(c.index||0)+p,measurePath:c.measurePath}),v=Zn(m,He.MEASURES);v.userType=tr.MEASURE_BOTTOM,v.measureJaqlIndex=v.jaqlIndex,h.push(v)}c.minLevel=s.maxLevel,we.setChildren(c,h)});else if(o===1){const c=we.getChildren(a)[0];if(c){const d=Object.assign({},c),h=Zn(d,He.MEASURES);h.userType=tr.MEASURE_TOP,we.setChildren(h,i),i=[h],u.forEach(p=>{p.measureJaqlIndex=c.jaqlIndex})}}}return i},dE=(e,t)=>{!we.hasChildren(e)&&typeof e.measureJaqlIndex!="undefined"&&aE(t,e)},Z6=(e,t,r,n)=>{let i={};if(t.userType===tr.SUB_TOTAL||t.userType===tr.GRAND_TOTAL||r.userType===tr.SUB_TOTAL||r.userType===tr.GRAND_TOTAL||r.parent&&r.parent.userType===tr.SUB_TOTAL||r.parent&&r.parent.userType===tr.GRAND_TOTAL)return;const a=n&&n.format&&n.format.color||null;if(!a)return;const{value:o,cf:s=-1}=e;if(a.type===hw.COLOR&&a.color&&a.color!=="transparent"&&(i.backgroundColor=a.color),a.type===hw.CONDITION&&a.conditions&&a.conditions.length)for(let u=0,c=a.conditions.length;u<c&&!K6(o);u+=1){const d=a.conditions||[],{color:h}=d[u]||{};if(h&&s===u){i.backgroundColor=h;break}}Object.keys(i).length>0&&(e.style=e.style||{},Object.assign(e.style,i)),i=void 0},hE=(e,t,r,n)=>{const i=[],{level:a=0,measurePath:o={}}=n||{};let s;Array.isArray(e)?s=e:s=we.getChildren(e);const c=Pn(r,t)[a],d=c?(c.field||{index:1/0}).index:void 0;return s.forEach(h=>{const p=Zn(h,t);if(p.jaqlIndex=d,typeof d!="undefined"&&(p.measurePath=Object.assign(Object.assign({},o),{[d]:p.value})),i.push(p),we.hasChildren(p)){const m=we.getChildren(p),v={level:a+1,measurePath:p.measurePath},g=hE(m,t,r,v);we.setChildren(p,g)}}),i},fE=(e,t,r)=>{const{skipFormatEvent:n=!1,onlyFormatEvents:i=!1,iterateFn:a,emitFn:o}=r||{};e.forEach(s=>{if(a&&a(s),(n||!i)&&(sE(s),uE(s),dE(s,t)),o&&(i||!n)){const u=Va(t,s.jaqlIndex,s.metadataType||"");o(s,u,t)}if(we.hasChildren(s)){const u=we.getChildren(s);fE(u,t,r)}})},Q6=(e,t,r,n)=>{const{originalData:i,applyIndexDivergence:a,subtotalsForSingleRow:o}=n||{};a&&a(e);let s=hy(e,i,t,r,o);return s=lE(s,i,t,r),s=cE(s,i,t,r),we.iterateThroughTree(s,(u,c)=>{u.parent=c}),s},Js={insertSubTotals:hy,postProcessSubTotal:sE,insertGrandTotals:lE,postProcessGrandTotal:uE,insertMeasureNodes:cE,postProcessMeasureNode:dE,applyColorFormatting:Z6,preProcessTree:hE,modifyTree:Q6,postProcessTree:fE};var J6=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const eF=(e,t)=>e.metadata.find(r=>r.field&&r.field.index===t),hd=(e,t,r=[],n=[])=>{if(!t||!e||typeof e.jaqlIndex=="undefined")return{dimensionsMeta:r,type:n};const i=eF(t,e.jaqlIndex);if(i&&i.jaql&&e.metadataType!==He.MEASURES&&r.unshift({title:i.jaql.title,name:i.jaql.dim,member:e.value,index:e.jaqlIndex}),e&&e.userType&&(e.userType===tr.SUB_TOTAL||e.userType===tr.GRAND_TOTAL)){const a=e.userType.toLowerCase();n.push(a)}return e.parent&&e.parent.metadataType!==He.MEASURES?hd(e.parent,t,r,n):{dimensionsMeta:r,type:n}},mw=e=>{let t={};if(e){const r=e.jaql;t=J6(r,["type","datatype","table","column"]),e.field&&(t.index=e.field.index)}return t};function Vo(e,t,r){return!t||!t.length?!1:t.some(n=>{let i=!0;return r&&r.fields&&r.fields.length&&r.fields.forEach(a=>{e[a]!==void 0&&n[a]===void 0?i=!1:e[a]!==void 0&&n[a]!==void 0&&(Array.isArray(e[a])?i=i&&e[a].indexOf(n[a])!==-1:i=i&&e[a]===n[a])}),i})}const tF=(e,t=[])=>{let r=!1;return!t||!t.length?!1:e.length===0?!0:(e.forEach(n=>{t.includes(n)&&(r=!0)}),r)},gw=(e,t)=>{let r=!0;return!t||!t.length?r=!1:e.forEach(n=>{if(n.index){const i=t[t.length-1];r=r&&Vo(n,[i],{fields:[Gi.INDEX]})}if(n.dim&&(n.name=n.dim,n.members&&(n.member=n.members),r=r&&Vo(n,t,{fields:[Gi.NAME,Gi.MEMBER]})),n.title){const i=t[t.length-1];r=r&&Vo(n,[i],{fields:[Gi.TITLE]})}}),r},rF=(e,t)=>{let r=!0;return!t||!t.length?r=!1:e.forEach(n=>{n.index&&(r=r&&Vo(n,t,{fields:[Gi.INDEX]})),n.dim&&(n.name=n.dim,r=r&&Vo(n,t,{fields:[Gi.DIM,Gi.AGG]})),n.title&&(r=r&&Vo(n,t,{fields:[Gi.TITLE]}))}),r},nF=(e,t)=>{let r=!0;if(e.type&&r&&(r=r&&tF(e.type,t.type)),e.rows&&e.rows.length&&r){const n=t.rows?t.rows:[];r=r&&gw(e.rows,n)}if(e.columns&&r){const n=t.columns?t.columns:[];r=r&&gw(e.columns,n)}if(e.values&&r){const n=t.measure?[t.measure]:[];r=r&&rF(e.values,n)}return r},iF=e=>{const t={};return Object.keys(e).forEach(r=>{(!r.startsWith("border")||r==="borderColor")&&(t[r]=e[r])}),t},el="text";class fy{constructor(t,r,n){this.plugins=[],this.columnsMetadata=[],this.metadataCache=new Map,this.plugins=t,this.jaql=r,this.globalStyles=n,this.indexHelper={measuresLevel:this.getMeasuresLevel(),columnStartFrom:0,rowStartFrom:0},this.globalStyles&&(this.globalStyles=iF(this.globalStyles))}getJaqlPanels(t){if(!this.jaql)throw new Error("No Jaql in Plugin service!");return this.jaql.metadata.filter(r=>r.panel===t)}getMeasuresLevel(){const t=this.getJaqlPanels(He.COLUMNS);return this.getJaqlPanels(He.MEASURES).length>1?t.length:0}getRowsColumnLength(){return this.getJaqlPanels(He.ROWS).length}getTotalTypes(t){const r=t.filter(n=>n===bo.SUB_TOTAL||n===bo.GRAND_TOTAL);return r&&r.length?r.filter((n,i,a)=>a.indexOf(n)===i):[]}getMeasureMetaByIndex(t){const r=this.getJaqlPanels(He.MEASURES);if(r.length===1)return mw(r[0]);const n=t%r.length;return mw(r[n])}resetRowStartFrom(){this.indexHelper.rowStartFrom=1}applyToColumns(t){t.length!==0&&(this.indexHelper.columnStartFrom===0&&(this.indexHelper.columnStartFrom=this.getRowsColumnLength()),this._applyToColumns(t,{row:-1}))}_applyToColumns(t,r){t.forEach((n,i)=>{const{dimensionsMeta:a,type:o}=hd(n,this.jaql);o.push(bo.MEMBER);let s=r.row>=0?r.row+1:0;s>=this.indexHelper.rowStartFrom&&(this.indexHelper.rowStartFrom=s+1),n.metadataType===He.MEASURES&&(s=this.indexHelper.measuresLevel);let u=i===0?0:1;u+=this.indexHelper.columnStartFrom;const c={type:o,rowIndex:s,colIndex:u,index:n.jaqlIndex,columns:a};n.metadataType===He.MEASURES&&(c.measure=this.getMeasureMetaByIndex(n.index||0));const d={value:n.value||"",content:n.content||"",contentType:n.contentType||el,style:n.style||{},store:n.store||{},state:n.state};if(this.applyGlobal(d),this.apply(c,d),this.addToMetadata(c,d,c.rowIndex,c.colIndex),Object.assign(n,d),this.indexHelper.columnStartFrom=u,n.children){const h={row:s,column:u};this._applyToColumns(n.children,h)}else this.columnsMetadata.push({type:o,metadata:a});return!0})}applyToHeaders(t){!t||!t.children||t.children.length===0||t.children.forEach(r=>{const{dimensionsMeta:n}=hd(r,this.jaql),i={type:[bo.MEMBER],rowIndex:0,colIndex:r.index||0,index:r.jaqlIndex,rows:n},a={value:r.value,content:r.content||"",contentType:r.contentType||el,style:r.style?r.style:{},store:r.store||{},state:r.state};this.applyGlobal(a),this.apply(i,a),this.addToMetadata(i,a,i.rowIndex,i.colIndex),Object.assign(r,a)})}applyToRows(t){if(t.length===0)return;const r=this.getJaqlPanels(He.ROWS),n=this.getJaqlPanels(He.MEASURES),i=this.getJaqlPanels(He.COLUMNS);this.indexHelper.rowStartFrom=fy.getRowStartFromForPage(r.length,n.length,i.length),this._applyToRows(t)}static getRowStartFromForPage(t,r,n){if(t===0&&n===0)return 0;const i=n+(r===0?0:1);return i===0?1:i}_applyToRows(t){t.forEach((r,n)=>{const{dimensionsMeta:i,type:a}=hd(r,this.jaql);a.push(bo.MEMBER);const o=r.level?r.level:0,s=n===0?this.indexHelper.rowStartFrom:this.indexHelper.rowStartFrom+1,u={type:a,rowIndex:s,colIndex:o,index:r.jaqlIndex,rows:i},c={value:r.value,content:r.content||"",contentType:r.contentType||el,style:r.style||{},store:r.store||{},state:r.state};return this.applyGlobal(c),this.apply(u,c),this.addToMetadata(u,c,u.rowIndex,u.colIndex),this.indexHelper.rowStartFrom=s,r.children?this._applyToRows(r.children):r.data&&r.data.length&&this.applyToValues(r.data,{type:a,metadata:i},{rowIndex:s,colIndex:this.getRowsColumnLength()}),Object.assign(r,c),!0})}applyToValues(t,r,n){t.length&&t.forEach((i,a)=>{const o=[bo.VALUE],s=this.columnsMetadata[a];if(!s)return;const u=this.getTotalTypes([...r.type,...s.type]),c=this.getMeasureMetaByIndex(a),d={type:o.concat(u),rows:r.metadata,columns:s.metadata,measure:c,colIndex:a+n.colIndex,rowIndex:n.rowIndex,index:c&&c.index?c.index:0};let h={value:i,content:i,contentType:el,style:{},store:i&&i.store||{},state:i&&i.state||void 0};i!=null&&typeof i=="object"&&(h={value:i.value?i.value:null,content:i.content||"",contentType:i.contentType||el,style:i.style||{},store:i.store||{},state:i.state}),this.applyGlobal(h),this.apply(d,h),this.addToMetadata(d,h,d.rowIndex,d.colIndex),t[a]=h})}addToMetadata(t,r,n,i){const a=Object.assign({cellData:{value:r.value,content:r.content}},t);this.metadataCache.set(`${n}-${i}`,a)}applyGlobal(t){const{globalStyles:r}=this;r&&(t.style=Object.assign(Object.assign({},t.style),r))}apply(t,r){this.plugins&&this.plugins.length&&this.plugins.forEach(n=>{if(nF(n.target,t)){const a=n.handler;a(t,r)}})}}var aF=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const qp=(e,t)=>{const r=e||{metadata:[],grandTotals:null};let{metadata:n}=r;return n=n.map(i=>{const a=i.field||{},o=t.find(({field:u})=>u&&u.index===a.index),s=o?o.format:null;return s?Object.assign(Object.assign({},i),{format:s}):i}),Object.assign(Object.assign({},r),{metadata:n})},vw=100,oF="dataLoad",sF="dataChunkLoaded",lF="dataBarChunkLoaded",uF="rangeMinMaxChunkLoaded",cF="grandChunkLoaded",dF="dataFinishChunkLoaded",hF="finishChunkLoaded",fF="progressError",d0="headerCellFormat",pE="dataCellFormat",pF="totalRowsCountLoaded",mF="totalColumnsCountLoaded",yw=1e3,gF=0,vF={throttle:R6,throttleTime:gF,PluginService:fy,skipInternalColorFormatting:!1,subtotalsForSingleRow:!1};class Vr{constructor(t,r,n){this.tempDataChunks=[],this.lastNotHandledChunkIndex=0,this.lastReadyNotHandledChunkIndex=0,this.rowsGrand=void 0,this.rowsTreeService=void 0,this.columnsTreeService=void 0,this.cornerTreeService=void 0,this.pageSize=vw,this.isPaginated=!1,this.loadedPagesCount=0,this.isLoadInProgress=!1,this.loadAllPromise=void 0,this.loadAllPromiseResolve=void 0,this.loadAllPromiseReject=void 0,this.isWholeDataLoaded=!1,this.hasDataFinishEvent=!1,this.isDataHandlerThrottled=!1,this.metadata=[],this.divergenceComparator=new fw,this.rawJaql=void 0,this.triggeredEventsData={},this.callPlugins=[],this.onMetadataHandler=()=>{const i={metadata:this.getMetadata()};this.isSingleRowTree()&&_o.normalizeSingleBranchTreeSortDetails(i)},this.onHeadersHandler=i=>{const a=this.getJaql.bind(this),o=this.getRawJaql.bind(this),s=this.applyIndexDivergence.bind(this),u=(m,v,g)=>this.emit(d0,m,v,g,this.options),d=Vr.createColumnsTreeServiceBuilder({getJaql:a,getRawJaql:o,pluginService:this.pluginService,applyIndexDivergence:s},{emitHeaderCellFormatEvent:u})(i);this.columnsTreeService=d.columnsTreeService,this.columnsCount=d.columnsCount,this.totalColumnsCount=d.totalColumnsCount,this.emit(mF,{columnsCount:this.columnsCount||0,totalColumnsCount:this.totalColumnsCount||0});const h=Vr.createCornerTreeServiceBuilder({getJaql:a,getRawJaql:o,pluginService:this.pluginService,columnsTreeService:this.columnsTreeService},{emitHeaderCellFormatEvent:u}),{cornerTreeService:p}=h();this.cornerTreeService=p},this.onDataHandler=i=>{this.tempDataChunks=this.tempDataChunks||[],Array.isArray(i)?(i||[]).forEach(a=>{Vr.fillDataChunks(this.tempDataChunks,a,this.pageSize)}):Vr.fillDataChunks(this.tempDataChunks,i,this.pageSize),this.tempDataChunks.length&&(this.isDataHandlerThrottled=!0,this.onDataHandlerThrottle())},this.onGrandHandler=i=>{const o=this.preProcessTree([i],He.ROWS)[0],s="Rows grand total",u=o?o.data:[],c=we.create(s,void 0,u),d=Zn(c,He.ROWS);d.userType=tr.GRAND_TOTAL,this.postProcessTree([d]),this.postProcessData([d]),this.rowsGrand=d,this.emit(cF,we.wrapInRootNode(this.rowsGrand))},this.onFinishHandler=()=>{this.emit(hF,{totalRows:typeof this.totalRowsCount=="number"?this.totalRowsCount:this.getTotalItemsCount(),totalColumns:typeof this.totalColumnsCount=="number"?this.totalColumnsCount:this.getLoadedColumnsCount()})},this.onTotalRowsHandler=i=>{const{rowsCount:a,queryRowsCount:o,limitReached:s}=i||{};this.totalRowsCount=a,this.totalRecordsCount=o,this.limitReached=s,this.emit(pF,i)},this.onDataBarsHandler=i=>{const{data:a=[]}=i;let o=0;this.cornerTreeService&&(o=this.cornerTreeService.getTreeChildLength()),this.dataBars=[...Array(o),...a],this.emit(lF,this.dataBars)},this.onRangeMinMaxHandler=i=>{const{data:a=[]}=i,o=this.getJaql(),s=_o.getMetadataTree(o,He.MEASURES),u=we.getChildren(s),c=[];u.forEach((d,h)=>{c[d.measureJaqlIndex||0]=a[h]}),this.rangeMinMax=c,this.emit(uF,this.rangeMinMax)},this.onDataFinishHandler=({rowsCount:i}={})=>{if(this.finishRequest(),this.rowsCount=i,this.tempDataChunks.length){const a=this.tempDataChunks[this.tempDataChunks.length-1];a.ready=!0}this.onDataHandlerThrottle(),this.checkLoadPromise(),this.emit(dF,{limitedRows:this.rowsCount,limitedColumns:this.columnsCount})},this.onErrorHandler=i=>{process.env.NODE_ENV!=="production"&&console.warn(`DataService data loading error "${JSON.stringify(i)}"`),!this.isLoadInProgress&&!this.isWholeDataLoaded&&!(i instanceof kc)&&this.emit(fF,i)},this.loadService=t,this.events=r||new uy,this.options=Object.assign(Object.assign({},vF),n),this.attachEvent(),this.onDataHandlerThrottle=this.options.throttle(()=>{const i=dw(this.tempDataChunks,d=>d.ready&&!d.handled,this.lastReadyNotHandledChunkIndex);if(i===-1)return;this.lastReadyNotHandledChunkIndex=i;const a=this.tempDataChunks[i],o=this.preProcessTree(a.list,He.ROWS),s=this.modifyTree(o,He.ROWS);this.postProcessTree(s,{skipFormatEvent:!0}),this.postProcessData(s,{skipFormatEvent:!0});const u=we.wrapInRootNode(s);this.rowsTreeService?this.rowsTreeService.extend(u):this.rowsTreeService=new ga(u,!0),this.emit(sF,this.getLoadedElementsCount()),a.handled=!0;const c=dw(this.tempDataChunks,d=>!d.handled,this.lastNotHandledChunkIndex);if(c!==-1?(this.lastNotHandledChunkIndex=c,this.onDataHandlerThrottle()):this.isDataHandlerThrottled=!1,this.hasDataFinishEvent&&this.tempDataChunks.length){const d=this.tempDataChunks[this.tempDataChunks.length-1];d.ready=!0}this.hasDataFinishEvent&&c===-1?(this.finishRequest(),this.checkLoadPromise()):this.checkLoadPromise()},this.options.throttleTime)}destroy(){this.detachEvent(),this.rowsGrand=void 0,this.rowsTreeService=void 0,this.columnsTreeService=void 0,this.cornerTreeService=void 0,this.tempDataChunks=[],this.lastNotHandledChunkIndex=0,this.lastReadyNotHandledChunkIndex=0,this.events.removeAllListeners()}on(t,r){this.events.on(t,r),this.triggeredEventsData[t]&&(this.triggeredEventsData[t].forEach(n=>{this.events.emit(t,...n)}),delete this.triggeredEventsData[t])}emit(t,...r){this.events.listeners(t).length===0?(this.triggeredEventsData[t]=this.triggeredEventsData[t]||[],this.triggeredEventsData[t].push(r)):this.events.emit(t,...r)}off(t,r){this.events.removeListener(t,r),this.triggeredEventsData[t]&&delete this.triggeredEventsData[t]}loadData(t,r){const{pageSize:n=vw,isPaginated:i=!1,cacheResult:a=!1,metadata:o}=r||{},s=this.pageSize===n;if(this.clearLoadAllPromise(),t&&this.clearCache(),this.pageSize=n,this.isPaginated=i,this.emit(oF),this.loadPromiseCache&&s){const c=Promise.resolve(this.loadPromiseCache);return this.loadPromiseCache=void 0,c}this.isLoadInProgress=!0,t&&(this.metadata=o||[],this.rawJaql=qp(t,this.metadata),this.initPluginService(this.rawJaql),this.loadService.load(t).then(c=>{if(c==null)return;const d=!("data"in c);if(c.dataFinish[0]&&d)throw{error:{error:!0,details:"metadata undefined."}}}).catch(c=>{this.loadPromiseReject&&this.loadPromiseReject(c.error)}));const u=new Promise((c,d)=>{this.loadPromiseResolve=c,this.loadPromiseReject=d}).then(c=>this.sendInitPage(c)).then(c=>(a&&(this.loadPromiseCache=c),this.loadedPagesCount=1,c)).catch(c=>{throw c instanceof kc&&this.clearLoadPromise(),c});return this.checkLoadPromise(),u}loadAllData(){if(this.isWholeDataLoaded){const t={loadedRowsCount:this.getLoadedElementsCount(),totalItemsCount:typeof this.totalRowsCount=="number"?this.totalRowsCount:this.getTotalItemsCount(),totalRecordsCount:this.totalRecordsCount,limitReached:this.limitReached,dataBars:this.dataBars,rangeMinMax:this.rangeMinMax};return this.columnsCount!==0&&this.totalColumnsCount!==0&&(t.columnsCount=this.columnsCount,t.totalColumnsCount=this.totalColumnsCount),Promise.resolve(t)}return this.loadAllPromise||(this.loadAllPromise=new Promise((t,r)=>{this.loadAllPromiseResolve=t,this.loadAllPromiseReject=r}).then(()=>({loadedRowsCount:this.getLoadedElementsCount(),totalItemsCount:typeof this.totalRowsCount=="number"?this.totalRowsCount:this.getTotalItemsCount(),totalRecordsCount:this.totalRecordsCount,limitReached:this.limitReached,dataBars:this.dataBars,rangeMinMax:this.rangeMinMax})).catch(t=>{throw t instanceof kc&&this.clearLoadAllPromise(),t})),this.loadAllPromise}getSelectedPageData(t,r){return Promise.resolve(this.sendPaginatedPage(t,r))}getIndexedPageData(t,r,n=!1){return Promise.resolve(this.sendPartialPage(t,r,n))}getJaql(){return this.loadService.getJaql()||{metadata:[],grandTotals:null}}isSingleRowTree(){return this.loadService.isSingleRowTree()}setPluginHandlers(t){this.callPlugins=t}setGlobalStyles(t){this.globalStyles=t}getRawJaql(){return this.rawJaql||this.getJaql()}getMetadata(){return this.metadata.length>0?this.metadata:this.getJaql().metadata}preProcessTree(t,r,n){return Js.preProcessTree(t,r,this.getJaql(),n)}postProcessTree(t,r){const n=(a,o,s)=>this.emit(d0,a,o,s,this.options),i=Object.assign(Object.assign({},r||{}),{emitFn:n});return Js.postProcessTree(t,this.getRawJaql(),i)}postProcessData(t,r){const{skipFormatEvent:n=!1,onlyFormatEvents:i=!1}=r||{},a=this.columnsTreeService?this.columnsTreeService.getLastLevelNodes():[],o=we.getLastLevelNodes(t),s=this.getRawJaql();n||o.forEach(u=>{const c=Zn(u);a.forEach(d=>{const h=Zn(d),p=_o.getMetadataPanelByIndex(s,h.measureJaqlIndex,He.MEASURES);if(typeof c.data!="undefined"&&typeof h.index!="undefined"){const{data:m=[]}=c,{index:v}=h,g=m[v],b=typeof g=="object"&&g!==null&&g!==void 0?g:{value:g};if(m[v]=b,i||!n){const{skipInternalColorFormatting:C=!1}=this.options;C||Js.applyColorFormatting(b,c,h,p),this.emit(pE,b,c,h,p,s,this.options)}}})})}modifyTree(t,r,n){const i=this.getJaql();return Js.modifyTree(t,r,i,{originalData:n,applyIndexDivergence:this.applyIndexDivergence.bind(this),subtotalsForSingleRow:this.options.subtotalsForSingleRow})}applyIndexDivergence(t){this.divergenceComparator=new fw(t,this.divergenceComparator)}initPluginService(t){this.pluginService=new this.options.PluginService(this.callPlugins,t,this.globalStyles)}cancelLoading(){const t=new kc;this.loadPromiseReject&&typeof this.loadPromiseReject=="function"&&this.loadPromiseReject(t),this.loadAllPromiseReject&&typeof this.loadAllPromiseReject=="function"&&this.loadAllPromiseReject(t),this.detachEvent()}getPageSize(){return this.pageSize}sendInitPage(t){if(this.loadService.hasError()||!this.loadService.hasData())return Vr.getEmptyPage();let r,n;const i=this.getPageSize();if(this.rowsTreeService){const s=i>t?t:i,u=Vr.cloneTreeNode,c=this.rowsTreeService.getPartialTree(0,s,{cloneFn:u});this.rowsGrand&&c.push(Br(this.rowsGrand)),this.postProcessTree(c,{onlyFormatEvents:!0,iterateFn:we.clearNodeCache}),this.postProcessData(c,{onlyFormatEvents:!0});const d=this.rowsTreeService?this.rowsTreeService.getTreeDeepsLength():0,h=we.wrapInRootNode(c);this.pluginService&&h&&h.children&&(this.pluginService.applyToRows(h.children),n=this.pluginService.metadataCache),r=new ga(h,!0,d),r.hasGrandTotals=!!this.rowsGrand}const a=this.isWholeDataLoaded&&i>=t;return{rowsTreeService:r,columnsTreeService:this.columnsTreeService,cornerTreeService:this.cornerTreeService,isLastPage:a,cellsMetadata:n}}sendPaginatedPage(t,r){if(this.loadService.hasError()||!this.loadService.hasData())return Vr.getEmptyPage();r&&(this.pageSize=r);const n=this.getPageSize(),i=this.getLoadedElementsCount();if(t*n>=i)throw new Error("Selected page is out of elements range!");if(t<0)throw new Error("Selected page must be >= 0");let a,o;if(this.rowsTreeService){const s=t>=0?t*n:0,u=(t+1)*n>i?i:(t+1)*n,c=Vr.cloneTreeNode,d=this.rowsTreeService.getPartialTree(s,u,{cloneFn:c});this.rowsGrand&&d.push(Br(this.rowsGrand)),this.postProcessTree(d,{onlyFormatEvents:!0,iterateFn:we.clearNodeCache}),this.postProcessData(d,{onlyFormatEvents:!0});const h=this.rowsTreeService?this.rowsTreeService.getTreeDeepsLength():0,p=we.wrapInRootNode(d);this.pluginService&&p&&p.children&&(this.pluginService.applyToRows(p.children),o=this.pluginService.metadataCache),a=new ga(p,!0,h),a.hasGrandTotals=!!this.rowsGrand}return{rowsTreeService:a,columnsTreeService:this.columnsTreeService,cornerTreeService:this.cornerTreeService,isLastPage:!0,cellsMetadata:o}}sendPartialPage(t,r,n){if(this.loadService.hasError()||!this.loadService.hasData())return Vr.getEmptyPage();const i=this.getLoadedElementsCount();let[a,o]=[Math.min(t,r),Math.max(t,r)];a=a>=0?a:0,o=o>=0?o:0,o=o<i?o:i;let s,u;if(a>i)s=void 0;else{let c;if(this.rowsTreeService){const p=Vr.cloneTreeNode;c=this.rowsTreeService.getPartialTree(a,o,{cloneFn:p}),n&&this.rowsGrand&&c.push(Br(this.rowsGrand)),this.postProcessTree(c,{onlyFormatEvents:!0,iterateFn:we.clearNodeCache}),this.postProcessData(c,{onlyFormatEvents:!0})}const d=this.rowsTreeService?this.rowsTreeService.getTreeDeepsLength():0,h=we.wrapInRootNode(c);this.pluginService&&h&&h.children&&(this.pluginService.applyToRows(h.children),u=this.pluginService.metadataCache),s=new ga(h,!0,d),s.hasGrandTotals=!!(n&&this.rowsGrand)}return{rowsTreeService:s,columnsTreeService:this.columnsTreeService,cornerTreeService:this.cornerTreeService,isLastPage:!0,cellsMetadata:u}}getLoadedElementsCount(){return this.rowsTreeService?this.rowsTreeService.getTreeChildLength():0}getTotalItemsCount(){return this.loadService.getTotalItemsCount()}getLoadedColumnsCount(){return this.columnsTreeService?this.columnsTreeService.getTreeChildLength():0}attachEvent(){this.loadService.listenerCount(Be.HEADERS)&&this.loadService.offAll(Be.HEADERS),this.loadService.on(Be.HEADERS,this.onHeadersHandler),this.loadService.on(Be.METADATA,this.onMetadataHandler),this.loadService.on(Be.DATA,this.onDataHandler),this.loadService.on(Be.GRAND,this.onGrandHandler),this.loadService.on(Be.DATA_FINISH,this.onDataFinishHandler),this.loadService.on(Be.TOTAL_ROWS,this.onTotalRowsHandler),this.loadService.on(Be.DATABARS,this.onDataBarsHandler),this.loadService.on(Be.RANGE_MIN_MAX,this.onRangeMinMaxHandler),this.loadService.on(Be.FINISH,this.onFinishHandler),this.loadService.on(Be.ERROR,this.onErrorHandler)}detachEvent(){this.loadService.off(Be.HEADERS,this.onHeadersHandler),this.loadService.off(Be.METADATA,this.onMetadataHandler),this.loadService.off(Be.DATA,this.onDataHandler),this.loadService.off(Be.GRAND,this.onGrandHandler),this.loadService.off(Be.DATA_FINISH,this.onDataFinishHandler),this.loadService.off(Be.TOTAL_ROWS,this.onTotalRowsHandler),this.loadService.off(Be.DATABARS,this.onDataBarsHandler),this.loadService.off(Be.RANGE_MIN_MAX,this.onRangeMinMaxHandler),this.loadService.off(Be.FINISH,this.onFinishHandler),this.loadService.off(Be.ERROR,this.onErrorHandler)}checkLoadPromise(){if(!this.isLoadInProgress)return;const t=this.getLoadedElementsCount();(t>=this.getPageSize()||this.isWholeDataLoaded)&&(this.isLoadInProgress=!1,typeof this.loadPromiseResolve=="function"&&(this.loadPromiseResolve(t),this.clearLoadPromise()))}clearLoadAllPromise(){this.loadAllPromise=void 0,this.loadAllPromiseReject=void 0,this.loadAllPromiseResolve=void 0}clearLoadPromise(){this.loadPromiseReject=void 0,this.loadPromiseResolve=void 0}finishRequest(){this.hasDataFinishEvent=!0,!this.isDataHandlerThrottled&&(this.isWholeDataLoaded=!0,this.loadAllPromiseResolve&&typeof this.loadAllPromiseResolve=="function"&&(this.loadAllPromiseResolve(),this.clearLoadAllPromise()))}clearCache(){this.rowsGrand=void 0,this.rowsTreeService=void 0,this.columnsTreeService=void 0,this.loadedPagesCount=0,this.hasDataFinishEvent=!1,this.isWholeDataLoaded=!1,this.isLoadInProgress=!1,this.tempDataChunks=[],this.lastNotHandledChunkIndex=0,this.lastReadyNotHandledChunkIndex=0,this.isDataHandlerThrottled=!1}static getEmptyPage(){return{isLastPage:!0}}static fillDataChunks(t,r,n=yw,i=yw){const o=t.length<2?n:i;let s=t[Math.max(0,t.length-1)],u,c=!s;if(!r||typeof r.children=="undefined"&&typeof r.value=="undefined"&&r.data&&!r.data.length){s&&(s.ready=!0);return}if(s){const d=Math.max(0,s.list.length-1);u=s.list[d];const h=s.size?`${s.size}`:"0",m=parseInt(h,10)+(r.size||1);(s.handled||m>o&&!(u.isPart&&u.value===r.value))&&(c=!0)}r&&r.isPart&&u&&(!u.isPart||u.value!==r.value)&&(c=!0,u.value!==r.value&&(u=void 0)),c&&(s&&(s.ready=!0),s={list:[],size:0,ready:!1,handled:!1},t.push(s)),s&&(u&&u.isPart&&r&&r.isPart?(we.deepMerge(u,r),s.size+=r.size||1):(s.list.push(r),s.size+=r.size||1))}static cloneTreeNode(t,r){const n=t,{children:i,isMapped:a,minLevel:o,childCount:s,childDeep:u,parent:c,master:d,data:h,state:p,style:m,store:v}=n,g=aF(n,["children","isMapped","minLevel","childCount","childDeep","parent","master","data","state","style","store"]),b=Br(g);return c&&(b.parent=c),d&&(b.master=d),h&&(b.data=Br(h)),p&&(b.state=Br(p)),m&&(b.style=Br(m)),v&&(b.store=Br(v)),!r&&i&&(b.children=i.map(C=>{const x=Vr.cloneTreeNode(C);return x.parent=b,x})),b}static createColumnsTreeServiceBuilder(t,r){return n=>{const i=t.getJaql(),a=t.getRawJaql?t.getRawJaql():qp(i,i.metadata||[]),o=_o.getMetadataTree(i,He.MEASURES),s=we.getChildren(o),{preProcessTree:u,modifyTree:c,postProcessTree:d}=Js;let h,p,m=0,v=0;if(we.hasChildren(n)){n.columnsCount&&n.totalColumnsCount&&(m=n.columnsCount,v=n.totalColumnsCount);const g=u(n,He.COLUMNS,i),b=c(g,He.COLUMNS,i,{originalData:n,applyIndexDivergence:t.applyIndexDivergence});d(b,a,{emitFn:r&&r.emitHeaderCellFormatEvent});const C=we.wrapInRootNode(b);t.pluginService&&C&&C.children&&t.pluginService.applyToColumns(C.children),h=C,p=new ga(C),s.length===1&&p.setValueNode(s[0])}else we.hasChildren(o)?(n.columnsCount&&n.totalColumnsCount&&(m=n.columnsCount,v=n.totalColumnsCount),typeof n.maxChilds=="number"&&(m=n.maxChilds,o.children=we.getChildren(o).filter((g,b)=>b<n.maxChilds)),t.pluginService&&o.children&&t.pluginService.applyToColumns(o.children),d(we.getChildren(o),a,{emitFn:r&&r.emitHeaderCellFormatEvent}),h=o,p=new ga(o)):(t.pluginService&&t.pluginService.resetRowStartFrom(),h=void 0,p=void 0,m=0,v=0);return{columnsTree:h,columnsTreeService:p,columnsCount:m,totalColumnsCount:v}}}static createCornerTreeServiceBuilder(t,r){return()=>{const n=t.getJaql(),i=t.getRawJaql?t.getRawJaql():qp(n,n.metadata||[]),a=_o.getMetadataTree(n,He.ROWS);let o;if(we.hasChildren(a)){we.iterateThroughTree(we.getChildren(a),u=>{u.userType=tr.CORNER;const c=_o.getMetadataPanelByIndex(i,u.jaqlIndex,u.metadataType||"");r&&r.emitHeaderCellFormatEvent&&r.emitHeaderCellFormatEvent(u,c,i)});let s;t.columnsTreeService&&(s=t.columnsTreeService.getTreeDeepsLength()),t.pluginService&&t.pluginService.applyToHeaders(a),o=new ga(a,!1,s)}return{cornerTree:a,cornerTreeService:o}}}}const Nc={INCLUDE:["metadata.$.jaql","metadata.$.field","metadata.$.panel","metadata.$.hierarchies","metadata.$.format","metadata.$.disabled","metadata.$.distinctTotals"],EXCLUDE:["metadata.$.jaql.title","metadata.$.format.mask","metadata.$.format.width","queryGuid","widget","dashboard","grandTotals.title"]};class yF{constructor(t){this.jaql=void 0,this.data=void 0,this.isLoadInProgress=!1,this.loadPromiseResolve=void 0,this.loadPromiseReject=void 0,this.loadFromCacheState=void 0,this.loadFromCacheInitialTimer=void 0,this.loadFromCacheTimer=void 0,this.isSingleBranchTree=!1,this.loadedItemsCount=0,this.totalItemsCount=0,this.isLimited=!1,this.isFinishEventReceived=!1,this.events=t||new uy}destroy(){this.data=void 0,this.events.removeAllListeners()}clone(){throw new Error('"AbstractDataLoadService.clone" should be overridden in subclass')}load(t){if(!t)throw new Error('AbstractDataLoadService "jaql" is not defined for "load" method');const r=!!this.data,n=this.jaql;this.jaql=t,r&&n&&(this.jaql.queryGuid=n.queryGuid),this.isLoadInProgress=!0;const i=new Promise((a,o)=>{this.loadPromiseResolve=a,this.loadPromiseReject=o});this.loadFromCacheInitialTimer&&clearTimeout(this.loadFromCacheInitialTimer);try{r?this.loadFromCache():this.loadFromServer()}catch(a){this.notifyAboutDataError(a)}return i}clear(){this.data=void 0}getJaql(){return this.jaql}isSingleRowTree(){return this.isSingleBranchTree}getTotalItemsCount(){return this.totalItemsCount}isFormattingChanges(t){const r=Br(this.jaql,{include:Nc.INCLUDE,exclude:Nc.EXCLUDE,excludeEmpty:!0}),n=Br(t,{include:Nc.INCLUDE,exclude:Nc.EXCLUDE,excludeEmpty:!0});return[...(r==null?void 0:r.metadata)||[],...(n==null?void 0:n.metadata)||[]].forEach(i=>{i&&i.panel===He.SCOPE&&delete i.field}),JSON.stringify(r)===JSON.stringify(n)}hasData(){return!!(this.data&&this.data[Be.DATA])}hasError(){return this.data?!!this.data[Be.ERROR]:!1}loadFromServer(){throw new Error('"AbstractDataLoadService.loadFromServer" should be overridden in subclass')}cancelQuery(){const t=new Error('"AbstractDataLoadService.cancelQuery" should be overridden in subclass.');return Promise.reject(t)}isCancelQueryNeeded(){return!this.isFinishEventReceived}loadFromCache(){return Promise.resolve().then(()=>(this.loadFromCacheInitialTimer&&clearTimeout(this.loadFromCacheInitialTimer),new Promise(t=>{this.loadFromCacheInitialTimer=setTimeout(t)}))).then(()=>new Promise(t=>{this.loadFromCacheTimer&&clearImmediate(this.loadFromCacheTimer),this.loadFromCacheState=void 0,this.loadMessageFromCache(()=>{this.loadFromCacheState=void 0,this.loadFromCacheTimer&&clearImmediate(this.loadFromCacheTimer),t()})}))}loadMessageFromCache(t){this.loadFromCacheState=this.loadFromCacheState||{};const r=this.loadFromCacheState;let n="",i=0;if(S6.forEach(a=>{if(n)return;r[a]=r[a]||0,r[a]<((this.data||{})[a]||[]).length&&(n=a,i=r[a])}),n){const a=((this.data||{})[n]||[])[i];this.notifyAboutDataChunk(n||"",a,!0),r[n]=i+1,this.loadMessageFromCache(t)}else t&&t()}cacheData(t,r){this.data=this.data||{};const n=this.data;n&&(n[t]=n[t]||[],n[t].push(r||!0))}notifyAboutDataChunk(t,r,n=!1){const i=r&&r.data&&t===Be.DATA?r.data:r;if(n||this.cacheData(t,r),!n&&this.loadFromCacheState)return;t===Be.METADATA&&(this.isSingleBranchTree=!!(i&&i.isSingleBranchTree)),t===Be.ERROR&&this.notifyAboutDataError(i),t===Be.DATA_FINISH&&(this.loadedItemsCount=i?i.rowsCount:0,this.notifyAboutDataLoaded(this.data)),t===Be.TOTAL_ROWS&&(this.totalItemsCount=i?i.rowsCount:0,this.totalItemsCount!==this.loadedItemsCount&&(this.isLimited=!0)),t===Be.FINISH&&(this.isFinishEventReceived=!0);const a=Br(i);this.events.emit(t,a)}notifyAboutDataLoaded(t){this.isLoadInProgress&&(this.isLoadInProgress=!1,typeof this.loadPromiseResolve=="function"&&this.loadPromiseResolve(t),this.loadPromiseReject=void 0,this.loadPromiseResolve=void 0)}notifyAboutDataError(t){this.isLoadInProgress&&(this.isLoadInProgress=!1,typeof this.loadPromiseReject=="function"&&this.loadPromiseReject(t),this.loadPromiseReject=void 0,this.loadPromiseResolve=void 0)}on(t,r){this.events.on(t,r)}off(t,r){this.events.removeListener(t,r)}offAll(t){this.events.removeAllListeners(t)}listenerCount(t){return this.events.listenerCount(t)}emit(t,...r){this.events.emit(t,...r)}}class py extends yF{constructor(t,r){if(super(r),this.initPromise=void 0,this.isInitInProgress=!1,this.onMessageCancel=void 0,this.onSocketError=n=>{this.emit("error",{error:!0,type:500,details:`Socket error: ${n.message}`})},this.onSocketDisconnect=()=>{this.emit("error",{error:!0,type:500,details:"Socket disconnected"})},!t)throw new Error('DataLoadService "socket" not defined.');this.socket=t,this.socket.on("error",this.onSocketError),this.socket.on("disconnect",this.onSocketDisconnect),this.on(Be.ERROR,n=>{const i=JSON.stringify(n,null,4);process.env.NODE_ENV!=="production"&&console.warn(`DataLoadService error message:
204
+ ${i}`)})}destroy(){super.destroy(),this.onMessageCancel&&(this.onMessageCancel(),this.onMessageCancel=void 0),this.socket.off("error",this.onSocketError),this.socket.off("disconnect",this.onSocketDisconnect)}clone(){const t=Br(this.data);t[Be.HEADERS]||(t[Be.HEADERS]=[{}]);const r=new py(this.socket);return r.data=t,r.jaql=this.jaql,r.isFinishEventReceived=this.isFinishEventReceived,r.isSingleBranchTree=this.isSingleBranchTree,r.loadedItemsCount=this.loadedItemsCount,r.totalItemsCount=this.totalItemsCount,r.isLimited=this.isLimited,r}loadFromServer(){this.waitForSocketReady().then(()=>{this.onMessageCancel&&this.onMessageCancel(),this.onMessageCancel=this.socket.onMessage(void 0,void 0,(t,r)=>{this.notifyAboutDataChunk(t,r)}),this.socket.send("pivot",this.jaql)})}cancelQuery(){return this.isCancelQueryNeeded()?this.waitForSocketReady().then(()=>{this.socket.send("pivot/cancel-query",{queryGuid:this.jaql&&this.jaql.queryGuid})}):Promise.resolve()}waitForSocketReady(){return this.socket.isReady()?Promise.resolve():this.isInitInProgress&&this.initPromise?this.initPromise:(this.isInitInProgress=!0,this.initPromise=new Promise((t,r)=>{this.socket.on("open",()=>{this.socket&&this.socket.isReady()?t():r(new Error("Can not open WebSocket connection"))})}),this.initPromise)}}class bF extends py{constructor(t,r,n={}){super(t,r),this.onMessageCancels=[],this.options=n}destroy(){super.destroy(),this.onMessageCancels.length&&(this.onMessageCancels.forEach(t=>{t&&t()}),this.onMessageCancels.length=0)}loadFromServer(){this.waitForSocketReady().then(()=>{const t=Object.assign({queryGuid:N.v4()},this.jaql),{queryGuid:r}=t;this.onMessageCancels.length&&(this.onMessageCancels.forEach(n=>{n&&n()}),this.onMessageCancels.length=0),Object.values(Be).forEach(n=>{const i=this.socket.onMessage(n,r,(a,o)=>{this.notifyAboutDataChunk(a,o)});this.onMessageCancels.push(i)}),this.socket.send("pivot",t)})}waitForSocketReady(){return this.socket.isReady()?Promise.resolve():new Promise(t=>{const{socketRegisterCheckInterval:r=100}=this.options;this.registrationWaitTimer&&clearInterval(this.registrationWaitTimer);const n=()=>{this.socket.isReady()&&(clearInterval(this.registrationWaitTimer),t())};this.registrationWaitTimer=setInterval(n,r)})}}var h0={exports:{}},_F=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,wF=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],mE=function(t){var r=t,n=t.indexOf("["),i=t.indexOf("]");n!=-1&&i!=-1&&(t=t.substring(0,n)+t.substring(n,i).replace(/:/g,";")+t.substring(i,t.length));for(var a=_F.exec(t||""),o={},s=14;s--;)o[wF[s]]=a[s]||"";return n!=-1&&i!=-1&&(o.source=r,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=CF(o,o.path),o.queryKey=xF(o,o.query),o};function CF(e,t){var r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.substr(0,1)=="/"||t.length===0)&&n.splice(0,1),t.substr(t.length-1,1)=="/"&&n.splice(n.length-1,1),n}function xF(e,t){var r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,i,a){i&&(r[i]=a)}),r}var f0={exports:{}},p0={exports:{}},Yl=1e3,Xl=Yl*60,Kl=Xl*60,Zl=Kl*24,TF=Zl*365.25,SF=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return EF(e);if(r==="number"&&isNaN(e)===!1)return t.long?AF(e):MF(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function EF(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*TF;case"days":case"day":case"d":return r*Zl;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Kl;case"minutes":case"minute":case"mins":case"min":case"m":return r*Xl;case"seconds":case"second":case"secs":case"sec":case"s":return r*Yl;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function MF(e){return e>=Zl?Math.round(e/Zl)+"d":e>=Kl?Math.round(e/Kl)+"h":e>=Xl?Math.round(e/Xl)+"m":e>=Yl?Math.round(e/Yl)+"s":e+"ms"}function AF(e){return Ic(e,Zl,"day")||Ic(e,Kl,"hour")||Ic(e,Xl,"minute")||Ic(e,Yl,"second")||e+" ms"}function Ic(e,t,r){if(!(e<t))return e<t*1.5?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}(function(e,t){t=e.exports=n.debug=n.default=n,t.coerce=u,t.disable=o,t.enable=a,t.enabled=s,t.humanize=SF,t.instances=[],t.names=[],t.skips=[],t.formatters={};function r(c){var d=0,h;for(h in c)d=(d<<5)-d+c.charCodeAt(h),d|=0;return t.colors[Math.abs(d)%t.colors.length]}function n(c){var d;function h(){if(h.enabled){var p=h,m=+new Date,v=m-(d||m);p.diff=v,p.prev=d,p.curr=m,d=m;for(var g=new Array(arguments.length),b=0;b<g.length;b++)g[b]=arguments[b];g[0]=t.coerce(g[0]),typeof g[0]!="string"&&g.unshift("%O");var C=0;g[0]=g[0].replace(/%([a-zA-Z%])/g,function(E,T){if(E==="%%")return E;C++;var A=t.formatters[T];if(typeof A=="function"){var R=g[C];E=A.call(p,R),g.splice(C,1),C--}return E}),t.formatArgs.call(p,g);var x=h.log||t.log||console.log.bind(console);x.apply(p,g)}}return h.namespace=c,h.enabled=t.enabled(c),h.useColors=t.useColors(),h.color=r(c),h.destroy=i,typeof t.init=="function"&&t.init(h),t.instances.push(h),h}function i(){var c=t.instances.indexOf(this);return c!==-1?(t.instances.splice(c,1),!0):!1}function a(c){t.save(c),t.names=[],t.skips=[];var d,h=(typeof c=="string"?c:"").split(/[\s,]+/),p=h.length;for(d=0;d<p;d++)h[d]&&(c=h[d].replace(/\*/g,".*?"),c[0]==="-"?t.skips.push(new RegExp("^"+c.substr(1)+"$")):t.names.push(new RegExp("^"+c+"$")));for(d=0;d<t.instances.length;d++){var m=t.instances[d];m.enabled=t.enabled(m.namespace)}}function o(){t.enable("")}function s(c){if(c[c.length-1]==="*")return!0;var d,h;for(d=0,h=t.skips.length;d<h;d++)if(t.skips[d].test(c))return!1;for(d=0,h=t.names.length;d<h;d++)if(t.names[d].test(c))return!0;return!1}function u(c){return c instanceof Error?c.stack||c.message:c}})(p0,p0.exports);var PF=p0.exports;(function(e,t){t=e.exports=PF,t.log=i,t.formatArgs=n,t.save=a,t.load=o,t.useColors=r,t.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:s(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(u){try{return JSON.stringify(u)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}};function n(u){var c=this.useColors;if(u[0]=(c?"%c":"")+this.namespace+(c?" %c":" ")+u[0]+(c?"%c ":" ")+"+"+t.humanize(this.diff),!!c){var d="color: "+this.color;u.splice(1,0,d,"color: inherit");var h=0,p=0;u[0].replace(/%[a-zA-Z%]/g,function(m){m!=="%%"&&(h++,m==="%c"&&(p=h))}),u.splice(p,0,d)}}function i(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(u){try{u==null?t.storage.removeItem("debug"):t.storage.debug=u}catch(c){}}function o(){var u;try{u=t.storage.debug}catch(c){}return!u&&typeof process!="undefined"&&"env"in process&&(u=process.env.DEBUG),u}t.enable(o());function s(){try{return window.localStorage}catch(u){}}})(f0,f0.exports);var Uh=f0.exports,RF=mE,bw=Uh("socket.io-client:url"),OF=kF;function kF(e,t){var r=e;t=t||typeof location!="undefined"&&location,e==null&&(e=t.protocol+"//"+t.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=t.protocol+e:e=t.host+e),/^(https?|wss?):\/\//.test(e)||(bw("protocol-less url %s",e),typeof t!="undefined"?e=t.protocol+"//"+e:e="https://"+e),bw("parse %s",e),r=RF(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";var n=r.host.indexOf(":")!==-1,i=n?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port,r.href=r.protocol+"://"+i+(t&&t.port===r.port?"":":"+r.port),r}var Vh={},m0={exports:{}},Yp,_w;function DF(){if(_w)return Yp;_w=1;var e=1e3,t=e*60,r=t*60,n=r*24,i=n*7,a=n*365.25;Yp=function(d,h){h=h||{};var p=typeof d;if(p==="string"&&d.length>0)return o(d);if(p==="number"&&isFinite(d))return h.long?u(d):s(d);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(d))};function o(d){if(d=String(d),!(d.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(d);if(h){var p=parseFloat(h[1]),m=(h[2]||"ms").toLowerCase();switch(m){case"years":case"year":case"yrs":case"yr":case"y":return p*a;case"weeks":case"week":case"w":return p*i;case"days":case"day":case"d":return p*n;case"hours":case"hour":case"hrs":case"hr":case"h":return p*r;case"minutes":case"minute":case"mins":case"min":case"m":return p*t;case"seconds":case"second":case"secs":case"sec":case"s":return p*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function s(d){var h=Math.abs(d);return h>=n?Math.round(d/n)+"d":h>=r?Math.round(d/r)+"h":h>=t?Math.round(d/t)+"m":h>=e?Math.round(d/e)+"s":d+"ms"}function u(d){var h=Math.abs(d);return h>=n?c(d,h,n,"day"):h>=r?c(d,h,r,"hour"):h>=t?c(d,h,t,"minute"):h>=e?c(d,h,e,"second"):d+" ms"}function c(d,h,p,m){var v=h>=p*1.5;return Math.round(d/p)+" "+m+(v?"s":"")}return Yp}function NF(e){r.debug=r,r.default=r,r.coerce=c,r.disable=o,r.enable=a,r.enabled=s,r.humanize=DF(),Object.keys(e).forEach(d=>{r[d]=e[d]}),r.instances=[],r.names=[],r.skips=[],r.formatters={};function t(d){let h=0;for(let p=0;p<d.length;p++)h=(h<<5)-h+d.charCodeAt(p),h|=0;return r.colors[Math.abs(h)%r.colors.length]}r.selectColor=t;function r(d){let h;function p(...m){if(!p.enabled)return;const v=p,g=Number(new Date),b=g-(h||g);v.diff=b,v.prev=h,v.curr=g,h=g,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let C=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(E,T)=>{if(E==="%%")return E;C++;const A=r.formatters[T];if(typeof A=="function"){const R=m[C];E=A.call(v,R),m.splice(C,1),C--}return E}),r.formatArgs.call(v,m),(v.log||r.log).apply(v,m)}return p.namespace=d,p.enabled=r.enabled(d),p.useColors=r.useColors(),p.color=t(d),p.destroy=n,p.extend=i,typeof r.init=="function"&&r.init(p),r.instances.push(p),p}function n(){const d=r.instances.indexOf(this);return d!==-1?(r.instances.splice(d,1),!0):!1}function i(d,h){const p=r(this.namespace+(typeof h=="undefined"?":":h)+d);return p.log=this.log,p}function a(d){r.save(d),r.names=[],r.skips=[];let h;const p=(typeof d=="string"?d:"").split(/[\s,]+/),m=p.length;for(h=0;h<m;h++)p[h]&&(d=p[h].replace(/\*/g,".*?"),d[0]==="-"?r.skips.push(new RegExp("^"+d.substr(1)+"$")):r.names.push(new RegExp("^"+d+"$")));for(h=0;h<r.instances.length;h++){const v=r.instances[h];v.enabled=r.enabled(v.namespace)}}function o(){const d=[...r.names.map(u),...r.skips.map(u).map(h=>"-"+h)].join(",");return r.enable(""),d}function s(d){if(d[d.length-1]==="*")return!0;let h,p;for(h=0,p=r.skips.length;h<p;h++)if(r.skips[h].test(d))return!1;for(h=0,p=r.names.length;h<p;h++)if(r.names[h].test(d))return!0;return!1}function u(d){return d.toString().substring(2,d.toString().length-2).replace(/\.\*\?$/,"*")}function c(d){return d instanceof Error?d.stack||d.message:d}return r.enable(r.load()),r}var IF=NF;(function(e,t){t.log=i,t.formatArgs=n,t.save=a,t.load=o,t.useColors=r,t.storage=s(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window!="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const d="color: "+this.color;c.splice(1,0,d,"color: inherit");let h=0,p=0;c[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(h++,m==="%c"&&(p=h))}),c.splice(p,0,d)}function i(...c){return typeof console=="object"&&console.log&&console.log(...c)}function a(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug")}catch(d){}}function o(){let c;try{c=t.storage.getItem("debug")}catch(d){}return!c&&typeof process!="undefined"&&"env"in process&&(c=process.env.DEBUG),c}function s(){try{return localStorage}catch(c){}}e.exports=IF(t);const{formatters:u}=e.exports;u.j=function(c){try{return JSON.stringify(c)}catch(d){return"[UnexpectedJSONParseError]: "+d.message}}})(m0,m0.exports);var LF=m0.exports,gE={exports:{}};(function(e){e.exports=t;function t(n){if(n)return r(n)}function r(n){for(var i in t.prototype)n[i]=t.prototype[i];return n}t.prototype.on=t.prototype.addEventListener=function(n,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(i),this},t.prototype.once=function(n,i){function a(){this.off(n,a),i.apply(this,arguments)}return a.fn=i,this.on(n,a),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(n,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var a=this._callbacks["$"+n];if(!a)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var o,s=0;s<a.length;s++)if(o=a[s],o===i||o.fn===i){a.splice(s,1);break}return this},t.prototype.emit=function(n){this._callbacks=this._callbacks||{};var i=[].slice.call(arguments,1),a=this._callbacks["$"+n];if(a){a=a.slice(0);for(var o=0,s=a.length;o<s;++o)a[o].apply(this,i)}return this},t.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]},t.prototype.hasListeners=function(n){return!!this.listeners(n).length}})(gE);var FF=gE.exports,Gh={},$F={}.toString,vE=Array.isArray||function(e){return $F.call(e)=="[object Array]"},yE=jF,BF=typeof Buffer=="function"&&typeof Buffer.isBuffer=="function",HF=typeof ArrayBuffer=="function",zF=function(e){return typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer};function jF(e){return BF&&Buffer.isBuffer(e)||HF&&(e instanceof ArrayBuffer||zF(e))}var my=vE,bE=yE,_E=Object.prototype.toString,WF=typeof Blob=="function"||typeof Blob!="undefined"&&_E.call(Blob)==="[object BlobConstructor]",UF=typeof File=="function"||typeof File!="undefined"&&_E.call(File)==="[object FileConstructor]";Gh.deconstructPacket=function(e){var t=[],r=e.data,n=e;return n.data=g0(r,t),n.attachments=t.length,{packet:n,buffers:t}};function g0(e,t){if(!e)return e;if(bE(e)){var r={_placeholder:!0,num:t.length};return t.push(e),r}else if(my(e)){for(var n=new Array(e.length),i=0;i<e.length;i++)n[i]=g0(e[i],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){var n={};for(var a in e)n[a]=g0(e[a],t);return n}return e}Gh.reconstructPacket=function(e,t){return e.data=v0(e.data,t),e.attachments=void 0,e};function v0(e,t){if(!e)return e;if(e&&e._placeholder)return t[e.num];if(my(e))for(var r=0;r<e.length;r++)e[r]=v0(e[r],t);else if(typeof e=="object")for(var n in e)e[n]=v0(e[n],t);return e}Gh.removeBlobs=function(e,t){function r(a,o,s){if(!a)return a;if(WF&&a instanceof Blob||UF&&a instanceof File){n++;var u=new FileReader;u.onload=function(){s?s[o]=this.result:i=this.result,--n||t(i)},u.readAsArrayBuffer(a)}else if(my(a))for(var c=0;c<a.length;c++)r(a[c],c,a);else if(typeof a=="object"&&!bE(a))for(var d in a)r(a[d],d,a)}var n=0,i=e;r(i),n||t(i)};(function(e){var t=LF("socket.io-parser"),r=FF,n=Gh,i=vE,a=yE;e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=o,e.Decoder=h;function o(){}var s=e.ERROR+'"encode error"';o.prototype.encode=function(b,C){if(t("encoding packet %j",b),e.BINARY_EVENT===b.type||e.BINARY_ACK===b.type)d(b,C);else{var x=u(b);C([x])}};function u(b){var C=""+b.type;if((e.BINARY_EVENT===b.type||e.BINARY_ACK===b.type)&&(C+=b.attachments+"-"),b.nsp&&b.nsp!=="/"&&(C+=b.nsp+","),b.id!=null&&(C+=b.id),b.data!=null){var x=c(b.data);if(x!==!1)C+=x;else return s}return t("encoded %j as %s",b,C),C}function c(b){try{return JSON.stringify(b)}catch(C){return!1}}function d(b,C){function x(E){var T=n.deconstructPacket(E),A=u(T.packet),R=T.buffers;R.unshift(A),C(R)}n.removeBlobs(b,x)}function h(){this.reconstructor=null}r(h.prototype),h.prototype.add=function(b){var C;if(typeof b=="string")C=p(b),e.BINARY_EVENT===C.type||e.BINARY_ACK===C.type?(this.reconstructor=new v(C),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",C)):this.emit("decoded",C);else if(a(b)||b.base64)if(this.reconstructor)C=this.reconstructor.takeBinaryData(b),C&&(this.reconstructor=null,this.emit("decoded",C));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+b)};function p(b){var C=0,x={type:Number(b.charAt(0))};if(e.types[x.type]==null)return g("unknown packet type "+x.type);if(e.BINARY_EVENT===x.type||e.BINARY_ACK===x.type){for(var E=C+1;b.charAt(++C)!=="-"&&C!=b.length;);var T=b.substring(E,C);if(T!=Number(T)||b.charAt(C)!=="-")throw new Error("Illegal attachments");x.attachments=Number(T)}if(b.charAt(C+1)==="/"){for(var E=C+1;++C;){var A=b.charAt(C);if(A===","||C===b.length)break}x.nsp=b.substring(E,C)}else x.nsp="/";var R=b.charAt(C+1);if(R!==""&&Number(R)==R){for(var E=C+1;++C;){var A=b.charAt(C);if(A==null||Number(A)!=A){--C;break}if(C===b.length)break}x.id=Number(b.substring(E,C+1))}if(b.charAt(++C)){var D=m(b.substr(C)),I=D!==!1&&(x.type===e.ERROR||i(D));if(I)x.data=D;else return g("invalid payload")}return t("decoded %s as %j",b,x),x}function m(b){try{return JSON.parse(b)}catch(C){return!1}}h.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()};function v(b){this.reconPack=b,this.buffers=[]}v.prototype.takeBinaryData=function(b){if(this.buffers.push(b),this.buffers.length===this.reconPack.attachments){var C=n.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),C}return null},v.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]};function g(b){return{type:e.ERROR,data:"parser error: "+b}}})(Vh);var gy={exports:{}},qh={},y0={exports:{}};try{y0.exports=typeof XMLHttpRequest!="undefined"&&"withCredentials"in new XMLHttpRequest}catch(e){y0.exports=!1}var VF=y0.exports,vy=function(){return typeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")()}(),GF=VF,qF=vy,yy=function(e){var t=e.xdomain,r=e.xscheme,n=e.enablesXDR;try{if(typeof XMLHttpRequest!="undefined"&&(!t||GF))return new XMLHttpRequest}catch(i){}try{if(typeof XDomainRequest!="undefined"&&!r&&n)return new XDomainRequest}catch(i){}if(!t)try{return new qF[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(i){}},by={exports:{}},Ga={},YF=Object.keys||function(t){var r=[],n=Object.prototype.hasOwnProperty;for(var i in t)n.call(t,i)&&r.push(i);return r},XF={}.toString,KF=Array.isArray||function(e){return XF.call(e)=="[object Array]"},ZF=KF,wE=Object.prototype.toString,QF=typeof Blob=="function"||typeof Blob!="undefined"&&wE.call(Blob)==="[object BlobConstructor]",JF=typeof File=="function"||typeof File!="undefined"&&wE.call(File)==="[object FileConstructor]",CE=fd;function fd(e){if(!e||typeof e!="object")return!1;if(ZF(e)){for(var t=0,r=e.length;t<r;t++)if(fd(e[t]))return!0;return!1}if(typeof Buffer=="function"&&Buffer.isBuffer&&Buffer.isBuffer(e)||typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||QF&&e instanceof Blob||JF&&e instanceof File)return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return fd(e.toJSON(),!0);for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&fd(e[n]))return!0;return!1}var e$=function(e,t,r){var n=e.byteLength;if(t=t||0,r=r||n,e.slice)return e.slice(t,r);if(t<0&&(t+=n),r<0&&(r+=n),r>n&&(r=n),t>=n||t>=r||n===0)return new ArrayBuffer(0);for(var i=new Uint8Array(e),a=new Uint8Array(r-t),o=t,s=0;o<r;o++,s++)a[s]=i[o];return a.buffer},t$=r$;function r$(e,t,r){var n=!1;return r=r||n$,i.count=e,e===0?t():i;function i(a,o){if(i.count<=0)throw new Error("after called too many times");--i.count,a?(n=!0,t(a),t=r):i.count===0&&!n&&t(null,o)}}function n$(){}/*! https://mths.be/utf8js v2.1.2 by @mathias */var Ui=String.fromCharCode;function xE(e){for(var t=[],r=0,n=e.length,i,a;r<n;)i=e.charCodeAt(r++),i>=55296&&i<=56319&&r<n?(a=e.charCodeAt(r++),(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),r--)):t.push(i);return t}function i$(e){for(var t=e.length,r=-1,n,i="";++r<t;)n=e[r],n>65535&&(n-=65536,i+=Ui(n>>>10&1023|55296),n=56320|n&1023),i+=Ui(n);return i}function TE(e,t){if(e>=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function Xp(e,t){return Ui(e>>t&63|128)}function a$(e,t){if(!(e&4294967168))return Ui(e);var r="";return e&4294965248?e&4294901760?e&4292870144||(r=Ui(e>>18&7|240),r+=Xp(e,12),r+=Xp(e,6)):(TE(e,t)||(e=65533),r=Ui(e>>12&15|224),r+=Xp(e,6)):r=Ui(e>>6&31|192),r+=Ui(e&63|128),r}function o$(e,t){t=t||{};for(var r=t.strict!==!1,n=xE(e),i=n.length,a=-1,o,s="";++a<i;)o=n[a],s+=a$(o,r);return s}function wo(){if(qi>=Bd)throw Error("Invalid byte index");var e=$d[qi]&255;if(qi++,(e&192)==128)return e&63;throw Error("Invalid continuation byte")}function s$(e){var t,r,n,i,a;if(qi>Bd)throw Error("Invalid byte index");if(qi==Bd)return!1;if(t=$d[qi]&255,qi++,!(t&128))return t;if((t&224)==192){if(r=wo(),a=(t&31)<<6|r,a>=128)return a;throw Error("Invalid continuation byte")}if((t&240)==224){if(r=wo(),n=wo(),a=(t&15)<<12|r<<6|n,a>=2048)return TE(a,e)?a:65533;throw Error("Invalid continuation byte")}if((t&248)==240&&(r=wo(),n=wo(),i=wo(),a=(t&7)<<18|r<<12|n<<6|i,a>=65536&&a<=1114111))return a;throw Error("Invalid UTF-8 detected")}var $d,Bd,qi;function l$(e,t){t=t||{};var r=t.strict!==!1;$d=xE(e),Bd=$d.length,qi=0;for(var n=[],i;(i=s$(r))!==!1;)n.push(i);return i$(n)}var u$={version:"2.1.2",encode:o$,decode:l$},Lc={},ww;function c$(){return ww||(ww=1,function(e){Lc.encode=function(t){var r=new Uint8Array(t),n,i=r.length,a="";for(n=0;n<i;n+=3)a+=e[r[n]>>2],a+=e[(r[n]&3)<<4|r[n+1]>>4],a+=e[(r[n+1]&15)<<2|r[n+2]>>6],a+=e[r[n+2]&63];return i%3===2?a=a.substring(0,a.length-1)+"=":i%3===1&&(a=a.substring(0,a.length-2)+"=="),a},Lc.decode=function(t){var r=t.length*.75,n=t.length,i,a=0,o,s,u,c;t[t.length-1]==="="&&(r--,t[t.length-2]==="="&&r--);var d=new ArrayBuffer(r),h=new Uint8Array(d);for(i=0;i<n;i+=4)o=e.indexOf(t[i]),s=e.indexOf(t[i+1]),u=e.indexOf(t[i+2]),c=e.indexOf(t[i+3]),h[a++]=o<<2|s>>4,h[a++]=(s&15)<<4|u>>2,h[a++]=(u&3)<<6|c&63;return d}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")),Lc}var Kp,Cw;function d$(){if(Cw)return Kp;Cw=1;var e=typeof e!="undefined"?e:typeof WebKitBlobBuilder!="undefined"?WebKitBlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:!1,t=function(){try{var s=new Blob(["hi"]);return s.size===2}catch(u){return!1}}(),r=t&&function(){try{var s=new Blob([new Uint8Array([1,2])]);return s.size===2}catch(u){return!1}}(),n=e&&e.prototype.append&&e.prototype.getBlob;function i(s){return s.map(function(u){if(u.buffer instanceof ArrayBuffer){var c=u.buffer;if(u.byteLength!==c.byteLength){var d=new Uint8Array(u.byteLength);d.set(new Uint8Array(c,u.byteOffset,u.byteLength)),c=d.buffer}return c}return u})}function a(s,u){u=u||{};var c=new e;return i(s).forEach(function(d){c.append(d)}),u.type?c.getBlob(u.type):c.getBlob()}function o(s,u){return new Blob(i(s),u||{})}return typeof Blob!="undefined"&&(a.prototype=Blob.prototype,o.prototype=Blob.prototype),Kp=function(){return t?r?Blob:o:n?a:void 0}(),Kp}(function(e){var t=YF,r=CE,n=e$,i=t$,a=u$,o;typeof ArrayBuffer!="undefined"&&(o=c$());var s=typeof navigator!="undefined"&&/Android/i.test(navigator.userAgent),u=typeof navigator!="undefined"&&/PhantomJS/i.test(navigator.userAgent),c=s||u;e.protocol=3;var d=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},h=t(d),p={type:"error",data:"parser error"},m=d$();e.encodePacket=function(T,A,R,D){typeof A=="function"&&(D=A,A=!1),typeof R=="function"&&(D=R,R=null);var I=T.data===void 0?void 0:T.data.buffer||T.data;if(typeof ArrayBuffer!="undefined"&&I instanceof ArrayBuffer)return g(T,A,D);if(typeof m!="undefined"&&I instanceof m)return C(T,A,D);if(I&&I.base64)return v(T,D);var H=d[T.type];return T.data!==void 0&&(H+=R?a.encode(String(T.data),{strict:!1}):String(T.data)),D(""+H)};function v(T,A){var R="b"+e.packets[T.type]+T.data.data;return A(R)}function g(T,A,R){if(!A)return e.encodeBase64Packet(T,R);var D=T.data,I=new Uint8Array(D),H=new Uint8Array(1+D.byteLength);H[0]=d[T.type];for(var G=0;G<I.length;G++)H[G+1]=I[G];return R(H.buffer)}function b(T,A,R){if(!A)return e.encodeBase64Packet(T,R);var D=new FileReader;return D.onload=function(){e.encodePacket({type:T.type,data:D.result},A,!0,R)},D.readAsArrayBuffer(T.data)}function C(T,A,R){if(!A)return e.encodeBase64Packet(T,R);if(c)return b(T,A,R);var D=new Uint8Array(1);D[0]=d[T.type];var I=new m([D.buffer,T.data]);return R(I)}e.encodeBase64Packet=function(T,A){var R="b"+e.packets[T.type];if(typeof m!="undefined"&&T.data instanceof m){var D=new FileReader;return D.onload=function(){var O=D.result.split(",")[1];A(R+O)},D.readAsDataURL(T.data)}var I;try{I=String.fromCharCode.apply(null,new Uint8Array(T.data))}catch(O){for(var H=new Uint8Array(T.data),G=new Array(H.length),q=0;q<H.length;q++)G[q]=H[q];I=String.fromCharCode.apply(null,G)}return R+=btoa(I),A(R)},e.decodePacket=function(T,A,R){if(T===void 0)return p;if(typeof T=="string"){if(T.charAt(0)==="b")return e.decodeBase64Packet(T.substr(1),A);if(R&&(T=x(T),T===!1))return p;var I=T.charAt(0);return Number(I)!=I||!h[I]?p:T.length>1?{type:h[I],data:T.substring(1)}:{type:h[I]}}var D=new Uint8Array(T),I=D[0],H=n(T,1);return m&&A==="blob"&&(H=new m([H])),{type:h[I],data:H}};function x(T){try{T=a.decode(T,{strict:!1})}catch(A){return!1}return T}e.decodeBase64Packet=function(T,A){var R=h[T.charAt(0)];if(!o)return{type:R,data:{base64:!0,data:T.substr(1)}};var D=o.decode(T.substr(1));return A==="blob"&&m&&(D=new m([D])),{type:R,data:D}},e.encodePayload=function(T,A,R){typeof A=="function"&&(R=A,A=null);var D=r(T);if(A&&D)return m&&!c?e.encodePayloadAsBlob(T,R):e.encodePayloadAsArrayBuffer(T,R);if(!T.length)return R("0:");function I(G){return G.length+":"+G}function H(G,q){e.encodePacket(G,D?A:!1,!1,function(O){q(null,I(O))})}E(T,H,function(G,q){return R(q.join(""))})};function E(T,A,R){for(var D=new Array(T.length),I=i(T.length,R),H=function(q,O,$){A(O,function(X,j){D[q]=j,$(X,D)})},G=0;G<T.length;G++)H(G,T[G],I)}e.decodePayload=function(T,A,R){if(typeof T!="string")return e.decodePayloadAsBinary(T,A,R);typeof A=="function"&&(R=A,A=null);var D;if(T==="")return R(p,0,1);for(var I="",H,G,q=0,O=T.length;q<O;q++){var $=T.charAt(q);if($!==":"){I+=$;continue}if(I===""||I!=(H=Number(I))||(G=T.substr(q+1,H),I!=G.length))return R(p,0,1);if(G.length){if(D=e.decodePacket(G,A,!1),p.type===D.type&&p.data===D.data)return R(p,0,1);var X=R(D,q+H,O);if(X===!1)return}q+=H,I=""}if(I!=="")return R(p,0,1)},e.encodePayloadAsArrayBuffer=function(T,A){if(!T.length)return A(new ArrayBuffer(0));function R(D,I){e.encodePacket(D,!0,!0,function(H){return I(null,H)})}E(T,R,function(D,I){var H=I.reduce(function(O,$){var X;return typeof $=="string"?X=$.length:X=$.byteLength,O+X.toString().length+X+2},0),G=new Uint8Array(H),q=0;return I.forEach(function(O){var $=typeof O=="string",X=O;if($){for(var z=new Uint8Array(O.length),j=0;j<O.length;j++)z[j]=O.charCodeAt(j);X=z.buffer}$?G[q++]=0:G[q++]=1;for(var V=X.byteLength.toString(),j=0;j<V.length;j++)G[q++]=parseInt(V[j]);G[q++]=255;for(var z=new Uint8Array(X),j=0;j<z.length;j++)G[q++]=z[j]}),A(G.buffer)})},e.encodePayloadAsBlob=function(T,A){function R(D,I){e.encodePacket(D,!0,!0,function(H){var G=new Uint8Array(1);if(G[0]=1,typeof H=="string"){for(var q=new Uint8Array(H.length),O=0;O<H.length;O++)q[O]=H.charCodeAt(O);H=q.buffer,G[0]=0}for(var $=H instanceof ArrayBuffer?H.byteLength:H.size,X=$.toString(),j=new Uint8Array(X.length+1),O=0;O<X.length;O++)j[O]=parseInt(X[O]);if(j[X.length]=255,m){var V=new m([G.buffer,j.buffer,H]);I(null,V)}})}E(T,R,function(D,I){return A(new m(I))})},e.decodePayloadAsBinary=function(T,A,R){typeof A=="function"&&(R=A,A=null);for(var D=T,I=[];D.byteLength>0;){for(var H=new Uint8Array(D),G=H[0]===0,q="",O=1;H[O]!==255;O++){if(q.length>310)return R(p,0,1);q+=H[O]}D=n(D,2+q.length),q=parseInt(q);var $=n(D,0,q);if(G)try{$=String.fromCharCode.apply(null,new Uint8Array($))}catch(V){var X=new Uint8Array($);$="";for(var O=0;O<X.length;O++)$+=String.fromCharCode(X[O])}I.push($),D=n(D,q)}var j=I.length;I.forEach(function(V,z){R(e.decodePacket(V,A,!0),z,j)})}})(Ga);var SE={exports:{}};(function(e){e.exports=t;function t(n){if(n)return r(n)}function r(n){for(var i in t.prototype)n[i]=t.prototype[i];return n}t.prototype.on=t.prototype.addEventListener=function(n,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(i),this},t.prototype.once=function(n,i){function a(){this.off(n,a),i.apply(this,arguments)}return a.fn=i,this.on(n,a),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(n,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var a=this._callbacks["$"+n];if(!a)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var o,s=0;s<a.length;s++)if(o=a[s],o===i||o.fn===i){a.splice(s,1);break}return a.length===0&&delete this._callbacks["$"+n],this},t.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),a=this._callbacks["$"+n],o=1;o<arguments.length;o++)i[o-1]=arguments[o];if(a){a=a.slice(0);for(var o=0,s=a.length;o<s;++o)a[o].apply(this,i)}return this},t.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]},t.prototype.hasListeners=function(n){return!!this.listeners(n).length}})(SE);var Au=SE.exports,Zp,xw;function _y(){if(xw)return Zp;xw=1;var e=Ga,t=Au;Zp=r;function r(n){this.path=n.path,this.hostname=n.hostname,this.port=n.port,this.secure=n.secure,this.query=n.query,this.timestampParam=n.timestampParam,this.timestampRequests=n.timestampRequests,this.readyState="",this.agent=n.agent||!1,this.socket=n.socket,this.enablesXDR=n.enablesXDR,this.withCredentials=n.withCredentials,this.pfx=n.pfx,this.key=n.key,this.passphrase=n.passphrase,this.cert=n.cert,this.ca=n.ca,this.ciphers=n.ciphers,this.rejectUnauthorized=n.rejectUnauthorized,this.forceNode=n.forceNode,this.isReactNative=n.isReactNative,this.extraHeaders=n.extraHeaders,this.localAddress=n.localAddress}return t(r.prototype),r.prototype.onError=function(n,i){var a=new Error(n);return a.type="TransportError",a.description=i,this.emit("error",a),this},r.prototype.open=function(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this},r.prototype.close=function(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this},r.prototype.send=function(n){if(this.readyState==="open")this.write(n);else throw new Error("Transport not open")},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(n){var i=e.decodePacket(n,this.socket.binaryType);this.onPacket(i)},r.prototype.onPacket=function(n){this.emit("packet",n)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")},Zp}var ps={};ps.encode=function(e){var t="";for(var r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t};ps.decode=function(e){for(var t={},r=e.split("&"),n=0,i=r.length;n<i;n++){var a=r[n].split("=");t[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return t};var Yh=function(e,t){var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e},EE="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Hd=64,ME={},Tw=0,Yi=0,Sw;function b0(e){var t="";do t=EE[e%Hd]+t,e=Math.floor(e/Hd);while(e>0);return t}function h$(e){var t=0;for(Yi=0;Yi<e.length;Yi++)t=t*Hd+ME[e.charAt(Yi)];return t}function wy(){var e=b0(+new Date);return e!==Sw?(Tw=0,Sw=e):e+"."+b0(Tw++)}for(;Yi<Hd;Yi++)ME[EE[Yi]]=Yi;wy.encode=b0;wy.decode=h$;var AE=wy,_0={exports:{}},w0={exports:{}},Ql=1e3,Jl=Ql*60,eu=Jl*60,tu=eu*24,f$=tu*365.25,p$=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return m$(e);if(r==="number"&&isNaN(e)===!1)return t.long?v$(e):g$(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function m$(e){if(e=String(e),!(e.length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*f$;case"days":case"day":case"d":return r*tu;case"hours":case"hour":case"hrs":case"hr":case"h":return r*eu;case"minutes":case"minute":case"mins":case"min":case"m":return r*Jl;case"seconds":case"second":case"secs":case"sec":case"s":return r*Ql;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function g$(e){return e>=tu?Math.round(e/tu)+"d":e>=eu?Math.round(e/eu)+"h":e>=Jl?Math.round(e/Jl)+"m":e>=Ql?Math.round(e/Ql)+"s":e+"ms"}function v$(e){return Fc(e,tu,"day")||Fc(e,eu,"hour")||Fc(e,Jl,"minute")||Fc(e,Ql,"second")||e+" ms"}function Fc(e,t,r){if(!(e<t))return e<t*1.5?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}(function(e,t){t=e.exports=n.debug=n.default=n,t.coerce=u,t.disable=o,t.enable=a,t.enabled=s,t.humanize=p$,t.instances=[],t.names=[],t.skips=[],t.formatters={};function r(c){var d=0,h;for(h in c)d=(d<<5)-d+c.charCodeAt(h),d|=0;return t.colors[Math.abs(d)%t.colors.length]}function n(c){var d;function h(){if(h.enabled){var p=h,m=+new Date,v=m-(d||m);p.diff=v,p.prev=d,p.curr=m,d=m;for(var g=new Array(arguments.length),b=0;b<g.length;b++)g[b]=arguments[b];g[0]=t.coerce(g[0]),typeof g[0]!="string"&&g.unshift("%O");var C=0;g[0]=g[0].replace(/%([a-zA-Z%])/g,function(E,T){if(E==="%%")return E;C++;var A=t.formatters[T];if(typeof A=="function"){var R=g[C];E=A.call(p,R),g.splice(C,1),C--}return E}),t.formatArgs.call(p,g);var x=h.log||t.log||console.log.bind(console);x.apply(p,g)}}return h.namespace=c,h.enabled=t.enabled(c),h.useColors=t.useColors(),h.color=r(c),h.destroy=i,typeof t.init=="function"&&t.init(h),t.instances.push(h),h}function i(){var c=t.instances.indexOf(this);return c!==-1?(t.instances.splice(c,1),!0):!1}function a(c){t.save(c),t.names=[],t.skips=[];var d,h=(typeof c=="string"?c:"").split(/[\s,]+/),p=h.length;for(d=0;d<p;d++)h[d]&&(c=h[d].replace(/\*/g,".*?"),c[0]==="-"?t.skips.push(new RegExp("^"+c.substr(1)+"$")):t.names.push(new RegExp("^"+c+"$")));for(d=0;d<t.instances.length;d++){var m=t.instances[d];m.enabled=t.enabled(m.namespace)}}function o(){t.enable("")}function s(c){if(c[c.length-1]==="*")return!0;var d,h;for(d=0,h=t.skips.length;d<h;d++)if(t.skips[d].test(c))return!1;for(d=0,h=t.names.length;d<h;d++)if(t.names[d].test(c))return!0;return!1}function u(c){return c instanceof Error?c.stack||c.message:c}})(w0,w0.exports);var y$=w0.exports;(function(e,t){t=e.exports=y$,t.log=i,t.formatArgs=n,t.save=a,t.load=o,t.useColors=r,t.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:s(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(u){try{return JSON.stringify(u)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}};function n(u){var c=this.useColors;if(u[0]=(c?"%c":"")+this.namespace+(c?" %c":" ")+u[0]+(c?"%c ":" ")+"+"+t.humanize(this.diff),!!c){var d="color: "+this.color;u.splice(1,0,d,"color: inherit");var h=0,p=0;u[0].replace(/%[a-zA-Z%]/g,function(m){m!=="%%"&&(h++,m==="%c"&&(p=h))}),u.splice(p,0,d)}}function i(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(u){try{u==null?t.storage.removeItem("debug"):t.storage.debug=u}catch(c){}}function o(){var u;try{u=t.storage.debug}catch(c){}return!u&&typeof process!="undefined"&&"env"in process&&(u=process.env.DEBUG),u}t.enable(o());function s(){try{return window.localStorage}catch(u){}}})(_0,_0.exports);var Xh=_0.exports,PE=_y(),b$=ps,RE=Ga,_$=Yh,w$=AE,Sn=Xh("engine.io-client:polling"),OE=ai,C$=function(){var e=yy,t=new e({xdomain:!1});return t.responseType!=null}();function ai(e){var t=e&&e.forceBase64;(!C$||t)&&(this.supportsBinary=!1),PE.call(this,e)}_$(ai,PE);ai.prototype.name="polling";ai.prototype.doOpen=function(){this.poll()};ai.prototype.pause=function(e){var t=this;this.readyState="pausing";function r(){Sn("paused"),t.readyState="paused",e()}if(this.polling||!this.writable){var n=0;this.polling&&(Sn("we are currently polling - waiting to pause"),n++,this.once("pollComplete",function(){Sn("pre-pause polling complete"),--n||r()})),this.writable||(Sn("we are currently writing - waiting to pause"),n++,this.once("drain",function(){Sn("pre-pause writing complete"),--n||r()}))}else r()};ai.prototype.poll=function(){Sn("polling"),this.polling=!0,this.doPoll(),this.emit("poll")};ai.prototype.onData=function(e){var t=this;Sn("polling got data %s",e);var r=function(n,i,a){if(t.readyState==="opening"&&n.type==="open"&&t.onOpen(),n.type==="close")return t.onClose(),!1;t.onPacket(n)};RE.decodePayload(e,this.socket.binaryType,r),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():Sn('ignoring poll - transport state "%s"',this.readyState))};ai.prototype.doClose=function(){var e=this;function t(){Sn("writing close packet"),e.write([{type:"close"}])}this.readyState==="open"?(Sn("transport open - closing"),t()):(Sn("transport not open - deferring close"),this.once("open",t))};ai.prototype.write=function(e){var t=this;this.writable=!1;var r=function(){t.writable=!0,t.emit("drain")};RE.encodePayload(e,this.supportsBinary,function(n){t.doWrite(n,r)})};ai.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",r="";this.timestampRequests!==!1&&(e[this.timestampParam]=w$()),!this.supportsBinary&&!e.sid&&(e.b64=1),e=b$.encode(e),this.port&&(t==="https"&&Number(this.port)!==443||t==="http"&&Number(this.port)!==80)&&(r=":"+this.port),e.length&&(e="?"+e);var n=this.hostname.indexOf(":")!==-1;return t+"://"+(n?"["+this.hostname+"]":this.hostname)+r+this.path+e};var x$=yy,kE=OE,T$=Au,S$=Yh,C0=Xh("engine.io-client:polling-xhr"),E$=vy;by.exports=ms;by.exports.Request=rr;function Ew(){}function ms(e){if(kE.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,typeof location!="undefined"){var t=location.protocol==="https:",r=location.port;r||(r=t?443:80),this.xd=typeof location!="undefined"&&e.hostname!==location.hostname||r!==e.port,this.xs=e.secure!==t}}S$(ms,kE);ms.prototype.supportsBinary=!0;ms.prototype.request=function(e){return e=e||{},e.uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.withCredentials=this.withCredentials,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new rr(e)};ms.prototype.doWrite=function(e,t){var r=typeof e!="string"&&e!==void 0,n=this.request({method:"POST",data:e,isBinary:r}),i=this;n.on("success",t),n.on("error",function(a){i.onError("xhr post error",a)}),this.sendXhr=n};ms.prototype.doPoll=function(){C0("xhr poll");var e=this.request(),t=this;e.on("data",function(r){t.onData(r)}),e.on("error",function(r){t.onError("xhr poll error",r)}),this.pollXhr=e};function rr(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=e.async!==!1,this.data=e.data!==void 0?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}T$(rr.prototype);rr.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var t=this.xhr=new x$(e),r=this;try{C0("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.extraHeaders){t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0);for(var n in this.extraHeaders)this.extraHeaders.hasOwnProperty(n)&&t.setRequestHeader(n,this.extraHeaders[n])}}catch(i){}if(this.method==="POST")try{this.isBinary?t.setRequestHeader("Content-type","application/octet-stream"):t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(i){}try{t.setRequestHeader("Accept","*/*")}catch(i){}"withCredentials"in t&&(t.withCredentials=this.withCredentials),this.requestTimeout&&(t.timeout=this.requestTimeout),this.hasXDR()?(t.onload=function(){r.onLoad()},t.onerror=function(){r.onError(t.responseText)}):t.onreadystatechange=function(){if(t.readyState===2)try{var i=t.getResponseHeader("Content-Type");(r.supportsBinary&&i==="application/octet-stream"||i==="application/octet-stream; charset=UTF-8")&&(t.responseType="arraybuffer")}catch(a){}t.readyState===4&&(t.status===200||t.status===1223?r.onLoad():setTimeout(function(){r.onError(typeof t.status=="number"?t.status:0)},0))},C0("xhr data %s",this.data),t.send(this.data)}catch(i){setTimeout(function(){r.onError(i)},0);return}typeof document!="undefined"&&(this.index=rr.requestsCount++,rr.requests[this.index]=this)};rr.prototype.onSuccess=function(){this.emit("success"),this.cleanup()};rr.prototype.onData=function(e){this.emit("data",e),this.onSuccess()};rr.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)};rr.prototype.cleanup=function(e){if(!(typeof this.xhr=="undefined"||this.xhr===null)){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=Ew:this.xhr.onreadystatechange=Ew,e)try{this.xhr.abort()}catch(t){}typeof document!="undefined"&&delete rr.requests[this.index],this.xhr=null}};rr.prototype.onLoad=function(){var e;try{var t;try{t=this.xhr.getResponseHeader("Content-Type")}catch(r){}t==="application/octet-stream"||t==="application/octet-stream; charset=UTF-8"?e=this.xhr.response||this.xhr.responseText:e=this.xhr.responseText}catch(r){this.onError(r)}e!=null&&this.onData(e)};rr.prototype.hasXDR=function(){return typeof XDomainRequest!="undefined"&&!this.xs&&this.enablesXDR};rr.prototype.abort=function(){this.cleanup()};rr.requestsCount=0;rr.requests={};if(typeof document!="undefined"){if(typeof attachEvent=="function")attachEvent("onunload",Mw);else if(typeof addEventListener=="function"){var M$="onpagehide"in E$?"pagehide":"unload";addEventListener(M$,Mw,!1)}}function Mw(){for(var e in rr.requests)rr.requests.hasOwnProperty(e)&&rr.requests[e].abort()}var A$=by.exports,Cy=OE,P$=Yh,Aw=vy,R$=gs,O$=/\n/g,k$=/\\n/g,$c;function D$(){}function gs(e){Cy.call(this,e),this.query=this.query||{},$c||($c=Aw.___eio=Aw.___eio||[]),this.index=$c.length;var t=this;$c.push(function(r){t.onData(r)}),this.query.j=this.index,typeof addEventListener=="function"&&addEventListener("beforeunload",function(){t.script&&(t.script.onerror=D$)},!1)}P$(gs,Cy);gs.prototype.supportsBinary=!1;gs.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),Cy.prototype.doClose.call(this)};gs.prototype.doPoll=function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(i){e.onError("jsonp poll error",i)};var r=document.getElementsByTagName("script")[0];r?r.parentNode.insertBefore(t,r):(document.head||document.body).appendChild(t),this.script=t;var n=typeof navigator!="undefined"&&/gecko/i.test(navigator.userAgent);n&&setTimeout(function(){var i=document.createElement("iframe");document.body.appendChild(i),document.body.removeChild(i)},100)};gs.prototype.doWrite=function(e,t){var r=this;if(!this.form){var n=document.createElement("form"),i=document.createElement("textarea"),a=this.iframeId="eio_iframe_"+this.index,o;n.className="socketio",n.style.position="absolute",n.style.top="-1000px",n.style.left="-1000px",n.target=a,n.method="POST",n.setAttribute("accept-charset","utf-8"),i.name="d",n.appendChild(i),document.body.appendChild(n),this.form=n,this.area=i}this.form.action=this.uri();function s(){u(),t()}function u(){if(r.iframe)try{r.form.removeChild(r.iframe)}catch(d){r.onError("jsonp polling iframe removal error",d)}try{var c='<iframe src="javascript:0" name="'+r.iframeId+'">';o=document.createElement(c)}catch(d){o=document.createElement("iframe"),o.name=r.iframeId,o.src="javascript:0"}o.id=r.iframeId,r.form.appendChild(o),r.iframe=o}u(),e=e.replace(k$,`\\
205
+ `),this.area.value=e.replace(O$,"\\n");try{this.form.submit()}catch(c){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){r.iframe.readyState==="complete"&&s()}:this.iframe.onload=s};const N$={},I$=Object.freeze(Object.defineProperty({__proto__:null,default:N$},Symbol.toStringTag,{value:"Module"})),L$=w.getAugmentedNamespace(I$);var xy=_y(),F$=Ga,$$=ps,B$=Yh,H$=AE,z$=Xh("engine.io-client:websocket"),zd,Ty;typeof WebSocket!="undefined"?zd=WebSocket:typeof self!="undefined"&&(zd=self.WebSocket||self.MozWebSocket);if(typeof window=="undefined")try{Ty=L$}catch(e){}var Go=zd||Ty,j$=vn;function vn(e){var t=e&&e.forceBase64;t&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=zd&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(Go=Ty),xy.call(this,e)}B$(vn,xy);vn.prototype.name="websocket";vn.prototype.supportsBinary=!0;vn.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,r={};this.isReactNative||(r.agent=this.agent,r.perMessageDeflate=this.perMessageDeflate,r.pfx=this.pfx,r.key=this.key,r.passphrase=this.passphrase,r.cert=this.cert,r.ca=this.ca,r.ciphers=this.ciphers,r.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(r.headers=this.extraHeaders),this.localAddress&&(r.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?t?new Go(e,t):new Go(e):new Go(e,t,r)}catch(n){return this.emit("error",n)}this.ws.binaryType===void 0&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}};vn.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}};vn.prototype.write=function(e){var t=this;this.writable=!1;for(var r=e.length,n=0,i=r;n<i;n++)(function(o){F$.encodePacket(o,t.supportsBinary,function(s){if(!t.usingBrowserWebSocket){var u={};if(o.options&&(u.compress=o.options.compress),t.perMessageDeflate){var c=typeof s=="string"?Buffer.byteLength(s):s.length;c<t.perMessageDeflate.threshold&&(u.compress=!1)}}try{t.usingBrowserWebSocket?t.ws.send(s):t.ws.send(s,u)}catch(d){z$("websocket closed before onclose event")}--r||a()})})(e[n]);function a(){t.emit("flush"),setTimeout(function(){t.writable=!0,t.emit("drain")},0)}};vn.prototype.onClose=function(){xy.prototype.onClose.call(this)};vn.prototype.doClose=function(){typeof this.ws!="undefined"&&this.ws.close()};vn.prototype.uri=function(){var e=this.query||{},t=this.secure?"wss":"ws",r="";this.port&&(t==="wss"&&Number(this.port)!==443||t==="ws"&&Number(this.port)!==80)&&(r=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=H$()),this.supportsBinary||(e.b64=1),e=$$.encode(e),e.length&&(e="?"+e);var n=this.hostname.indexOf(":")!==-1;return t+"://"+(n?"["+this.hostname+"]":this.hostname)+r+this.path+e};vn.prototype.check=function(){return!!Go&&!("__initialize"in Go&&this.name===vn.prototype.name)};var W$=yy,U$=A$,V$=R$,G$=j$;qh.polling=q$;qh.websocket=G$;function q$(e){var t,r=!1,n=!1,i=e.jsonp!==!1;if(typeof location!="undefined"){var a=location.protocol==="https:",o=location.port;o||(o=a?443:80),r=e.hostname!==location.hostname||o!==e.port,n=e.secure!==a}if(e.xdomain=r,e.xscheme=n,t=new W$(e),"open"in t&&!e.forceJSONP)return new U$(e);if(!i)throw new Error("JSONP disabled");return new V$(e)}var Y$=[].indexOf,DE=function(e,t){if(Y$)return e.indexOf(t);for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1},X$=qh,K$=Au,Qt=Xh("engine.io-client:socket"),Z$=DE,NE=Ga,Pw=mE,Q$=ps,J$=Ke;function Ke(e,t){if(!(this instanceof Ke))return new Ke(e,t);t=t||{},e&&typeof e=="object"&&(t=e,e=null),e?(e=Pw(e),t.hostname=e.host,t.secure=e.protocol==="https"||e.protocol==="wss",t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=Pw(t.host).host),this.secure=t.secure!=null?t.secure:typeof location!="undefined"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.agent=t.agent||!1,this.hostname=t.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=t.port||(typeof location!="undefined"&&location.port?location.port:this.secure?443:80),this.query=t.query||{},typeof this.query=="string"&&(this.query=Q$.decode(this.query)),this.upgrade=t.upgrade!==!1,this.path=(t.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!t.forceJSONP,this.jsonp=t.jsonp!==!1,this.forceBase64=!!t.forceBase64,this.enablesXDR=!!t.enablesXDR,this.withCredentials=t.withCredentials!==!1,this.timestampParam=t.timestampParam||"t",this.timestampRequests=t.timestampRequests,this.transports=t.transports||["polling","websocket"],this.transportOptions=t.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=t.policyPort||843,this.rememberUpgrade=t.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=t.onlyBinaryUpgrades,this.perMessageDeflate=t.perMessageDeflate!==!1?t.perMessageDeflate||{}:!1,this.perMessageDeflate===!0&&(this.perMessageDeflate={}),this.perMessageDeflate&&this.perMessageDeflate.threshold==null&&(this.perMessageDeflate.threshold=1024),this.pfx=t.pfx||void 0,this.key=t.key||void 0,this.passphrase=t.passphrase||void 0,this.cert=t.cert||void 0,this.ca=t.ca||void 0,this.ciphers=t.ciphers||void 0,this.rejectUnauthorized=t.rejectUnauthorized===void 0?!0:t.rejectUnauthorized,this.forceNode=!!t.forceNode,this.isReactNative=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",(typeof self=="undefined"||this.isReactNative)&&(t.extraHeaders&&Object.keys(t.extraHeaders).length>0&&(this.extraHeaders=t.extraHeaders),t.localAddress&&(this.localAddress=t.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}Ke.priorWebsocketSuccess=!1;K$(Ke.prototype);Ke.protocol=NE.protocol;Ke.Socket=Ke;Ke.Transport=_y();Ke.transports=qh;Ke.parser=Ga;Ke.prototype.createTransport=function(e){Qt('creating transport "%s"',e);var t=e8(this.query);t.EIO=NE.protocol,t.transport=e;var r=this.transportOptions[e]||{};this.id&&(t.sid=this.id);var n=new X$[e]({query:t,socket:this,agent:r.agent||this.agent,hostname:r.hostname||this.hostname,port:r.port||this.port,secure:r.secure||this.secure,path:r.path||this.path,forceJSONP:r.forceJSONP||this.forceJSONP,jsonp:r.jsonp||this.jsonp,forceBase64:r.forceBase64||this.forceBase64,enablesXDR:r.enablesXDR||this.enablesXDR,withCredentials:r.withCredentials||this.withCredentials,timestampRequests:r.timestampRequests||this.timestampRequests,timestampParam:r.timestampParam||this.timestampParam,policyPort:r.policyPort||this.policyPort,pfx:r.pfx||this.pfx,key:r.key||this.key,passphrase:r.passphrase||this.passphrase,cert:r.cert||this.cert,ca:r.ca||this.ca,ciphers:r.ciphers||this.ciphers,rejectUnauthorized:r.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:r.perMessageDeflate||this.perMessageDeflate,extraHeaders:r.extraHeaders||this.extraHeaders,forceNode:r.forceNode||this.forceNode,localAddress:r.localAddress||this.localAddress,requestTimeout:r.requestTimeout||this.requestTimeout,protocols:r.protocols||void 0,isReactNative:this.isReactNative});return n};function e8(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}Ke.prototype.open=function(){var e;if(this.rememberUpgrade&&Ke.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){var t=this;setTimeout(function(){t.emit("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch(r){this.transports.shift(),this.open();return}e.open(),this.setTransport(e)};Ke.prototype.setTransport=function(e){Qt("setting transport %s",e.name);var t=this;this.transport&&(Qt("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",function(){t.onDrain()}).on("packet",function(r){t.onPacket(r)}).on("error",function(r){t.onError(r)}).on("close",function(){t.onClose("transport close")})};Ke.prototype.probe=function(e){Qt('probing transport "%s"',e);var t=this.createTransport(e,{probe:1}),r=!1,n=this;Ke.priorWebsocketSuccess=!1;function i(){if(n.onlyBinaryUpgrades){var h=!this.supportsBinary&&n.transport.supportsBinary;r=r||h}r||(Qt('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",function(p){if(!r)if(p.type==="pong"&&p.data==="probe"){if(Qt('probe transport "%s" pong',e),n.upgrading=!0,n.emit("upgrading",t),!t)return;Ke.priorWebsocketSuccess=t.name==="websocket",Qt('pausing current transport "%s"',n.transport.name),n.transport.pause(function(){r||n.readyState!=="closed"&&(Qt("changing transport and sending upgrade packet"),d(),n.setTransport(t),t.send([{type:"upgrade"}]),n.emit("upgrade",t),t=null,n.upgrading=!1,n.flush())})}else{Qt('probe transport "%s" failed',e);var m=new Error("probe error");m.transport=t.name,n.emit("upgradeError",m)}}))}function a(){r||(r=!0,d(),t.close(),t=null)}function o(h){var p=new Error("probe error: "+h);p.transport=t.name,a(),Qt('probe transport "%s" failed because of error: %s',e,h),n.emit("upgradeError",p)}function s(){o("transport closed")}function u(){o("socket closed")}function c(h){t&&h.name!==t.name&&(Qt('"%s" works - aborting "%s"',h.name,t.name),a())}function d(){t.removeListener("open",i),t.removeListener("error",o),t.removeListener("close",s),n.removeListener("close",u),n.removeListener("upgrading",c)}t.once("open",i),t.once("error",o),t.once("close",s),this.once("close",u),this.once("upgrading",c),t.open()};Ke.prototype.onOpen=function(){if(Qt("socket open"),this.readyState="open",Ke.priorWebsocketSuccess=this.transport.name==="websocket",this.emit("open"),this.flush(),this.readyState==="open"&&this.upgrade&&this.transport.pause){Qt("starting upgrade probes");for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}};Ke.prototype.onPacket=function(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(Qt('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emit("data",e.data),this.emit("message",e.data);break}else Qt('packet received with socket readyState "%s"',this.readyState)};Ke.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),this.readyState!=="closed"&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))};Ke.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var t=this;t.pingTimeoutTimer=setTimeout(function(){t.readyState!=="closed"&&t.onClose("ping timeout")},e||t.pingInterval+t.pingTimeout)};Ke.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout(function(){Qt("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)},e.pingInterval)};Ke.prototype.ping=function(){var e=this;this.sendPacket("ping",function(){e.emit("ping")})};Ke.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emit("drain"):this.flush()};Ke.prototype.flush=function(){this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(Qt("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))};Ke.prototype.write=Ke.prototype.send=function(e,t,r){return this.sendPacket("message",e,t,r),this};Ke.prototype.sendPacket=function(e,t,r,n){if(typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r=null),!(this.readyState==="closing"||this.readyState==="closed")){r=r||{},r.compress=r.compress!==!1;var i={type:e,data:t,options:r};this.emit("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}};Ke.prototype.close=function(){if(this.readyState==="opening"||this.readyState==="open"){this.readyState="closing";var e=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?n():t()}):this.upgrading?n():t()}function t(){e.onClose("forced close"),Qt("socket closing - telling transport to close"),e.transport.close()}function r(){e.removeListener("upgrade",r),e.removeListener("upgradeError",r),t()}function n(){e.once("upgrade",r),e.once("upgradeError",r)}return this};Ke.prototype.onError=function(e){Qt("socket error %j",e),Ke.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)};Ke.prototype.onClose=function(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){Qt('socket close with reason: "%s"',e);var r=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t),r.writeBuffer=[],r.prevBufferLen=0}};Ke.prototype.filterUpgrades=function(e){for(var t=[],r=0,n=e.length;r<n;r++)~Z$(this.transports,e[r])&&t.push(e[r]);return t};gy.exports=J$;gy.exports.parser=Ga;var t8=gy.exports,IE={exports:{}},r8=n8;function n8(e,t){var r=[];t=t||0;for(var n=t||0;n<e.length;n++)r[n-t]=e[n];return r}var LE=i8;function i8(e,t,r){return e.on(t,r),{destroy:function(){e.removeListener(t,r)}}}var Rw=[].slice,FE=function(e,t){if(typeof t=="string"&&(t=e[t]),typeof t!="function")throw new Error("bind() requires a function");var r=Rw.call(arguments,2);return function(){return t.apply(e,r.concat(Rw.call(arguments)))}};(function(e,t){var r=Vh,n=Au,i=r8,a=LE,o=FE,s=Uh("socket.io-client:socket"),u=ps,c=CE;e.exports=p;var d={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},h=n.prototype.emit;function p(m,v,g){this.io=m,this.nsp=v,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},g&&g.query&&(this.query=g.query),this.io.autoConnect&&this.open()}n(p.prototype),p.prototype.subEvents=function(){if(!this.subs){var m=this.io;this.subs=[a(m,"open",o(this,"onopen")),a(m,"packet",o(this,"onpacket")),a(m,"close",o(this,"onclose"))]}},p.prototype.open=p.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.reconnecting||this.io.open(),this.io.readyState==="open"&&this.onopen(),this.emit("connecting"),this)},p.prototype.send=function(){var m=i(arguments);return m.unshift("message"),this.emit.apply(this,m),this},p.prototype.emit=function(m){if(d.hasOwnProperty(m))return h.apply(this,arguments),this;var v=i(arguments),g={type:(this.flags.binary!==void 0?this.flags.binary:c(v))?r.BINARY_EVENT:r.EVENT,data:v};return g.options={},g.options.compress=!this.flags||this.flags.compress!==!1,typeof v[v.length-1]=="function"&&(s("emitting packet with ack id %d",this.ids),this.acks[this.ids]=v.pop(),g.id=this.ids++),this.connected?this.packet(g):this.sendBuffer.push(g),this.flags={},this},p.prototype.packet=function(m){m.nsp=this.nsp,this.io.packet(m)},p.prototype.onopen=function(){if(s("transport is open - connecting"),this.nsp!=="/")if(this.query){var m=typeof this.query=="object"?u.encode(this.query):this.query;s("sending connect packet with query %s",m),this.packet({type:r.CONNECT,query:m})}else this.packet({type:r.CONNECT})},p.prototype.onclose=function(m){s("close (%s)",m),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",m)},p.prototype.onpacket=function(m){var v=m.nsp===this.nsp,g=m.type===r.ERROR&&m.nsp==="/";if(!(!v&&!g))switch(m.type){case r.CONNECT:this.onconnect();break;case r.EVENT:this.onevent(m);break;case r.BINARY_EVENT:this.onevent(m);break;case r.ACK:this.onack(m);break;case r.BINARY_ACK:this.onack(m);break;case r.DISCONNECT:this.ondisconnect();break;case r.ERROR:this.emit("error",m.data);break}},p.prototype.onevent=function(m){var v=m.data||[];s("emitting event %j",v),m.id!=null&&(s("attaching ack callback to event"),v.push(this.ack(m.id))),this.connected?h.apply(this,v):this.receiveBuffer.push(v)},p.prototype.ack=function(m){var v=this,g=!1;return function(){if(!g){g=!0;var b=i(arguments);s("sending ack %j",b),v.packet({type:c(b)?r.BINARY_ACK:r.ACK,id:m,data:b})}}},p.prototype.onack=function(m){var v=this.acks[m.id];typeof v=="function"?(s("calling ack %s with %j",m.id,m.data),v.apply(this,m.data),delete this.acks[m.id]):s("bad ack %s",m.id)},p.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emit("connect")},p.prototype.emitBuffered=function(){var m;for(m=0;m<this.receiveBuffer.length;m++)h.apply(this,this.receiveBuffer[m]);for(this.receiveBuffer=[],m=0;m<this.sendBuffer.length;m++)this.packet(this.sendBuffer[m]);this.sendBuffer=[]},p.prototype.ondisconnect=function(){s("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},p.prototype.destroy=function(){if(this.subs){for(var m=0;m<this.subs.length;m++)this.subs[m].destroy();this.subs=null}this.io.destroy(this)},p.prototype.close=p.prototype.disconnect=function(){return this.connected&&(s("performing disconnect (%s)",this.nsp),this.packet({type:r.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},p.prototype.compress=function(m){return this.flags.compress=m,this},p.prototype.binary=function(m){return this.flags.binary=m,this}})(IE);var $E=IE.exports,a8=vs;function vs(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}vs.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+r:e-r}return Math.min(e,this.max)|0};vs.prototype.reset=function(){this.attempts=0};vs.prototype.setMin=function(e){this.ms=e};vs.prototype.setMax=function(e){this.max=e};vs.prototype.setJitter=function(e){this.jitter=e};var o8=t8,s8=$E,l8=Au,u8=Vh,Bi=LE,Co=FE,Tr=Uh("socket.io-client:manager"),BE=DE,c8=a8,HE=Object.prototype.hasOwnProperty,Ow=rt;function rt(e,t){if(!(this instanceof rt))return new rt(e,t);e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.nsps={},this.subs=[],this.opts=t,this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new c8({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var r=t.parser||u8;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this.autoConnect=t.autoConnect!==!1,this.autoConnect&&this.open()}rt.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var e in this.nsps)HE.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)};rt.prototype.updateSocketIds=function(){for(var e in this.nsps)HE.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))};rt.prototype.generateId=function(e){return(e==="/"?"":e+"#")+this.engine.id};l8(rt.prototype);rt.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection};rt.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts};rt.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay};rt.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor};rt.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax};rt.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout};rt.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()};rt.prototype.open=rt.prototype.connect=function(e,t){if(Tr("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;Tr("opening %s",this.uri),this.engine=o8(this.uri,this.opts);var r=this.engine,n=this;this.readyState="opening",this.skipReconnect=!1;var i=Bi(r,"open",function(){n.onopen(),e&&e()}),a=Bi(r,"error",function(u){if(Tr("connect_error"),n.cleanup(),n.readyState="closed",n.emitAll("connect_error",u),e){var c=new Error("Connection error");c.data=u,e(c)}else n.maybeReconnectOnOpen()});if(this._timeout!==!1){var o=this._timeout;Tr("connect attempt will timeout after %d",o),o===0&&i.destroy();var s=setTimeout(function(){Tr("connect attempt timed out after %d",o),i.destroy(),r.close(),r.emit("error","timeout"),n.emitAll("connect_timeout",o)},o);this.subs.push({destroy:function(){clearTimeout(s)}})}return this.subs.push(i),this.subs.push(a),this};rt.prototype.onopen=function(){Tr("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(Bi(e,"data",Co(this,"ondata"))),this.subs.push(Bi(e,"ping",Co(this,"onping"))),this.subs.push(Bi(e,"pong",Co(this,"onpong"))),this.subs.push(Bi(e,"error",Co(this,"onerror"))),this.subs.push(Bi(e,"close",Co(this,"onclose"))),this.subs.push(Bi(this.decoder,"decoded",Co(this,"ondecoded")))};rt.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")};rt.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)};rt.prototype.ondata=function(e){this.decoder.add(e)};rt.prototype.ondecoded=function(e){this.emit("packet",e)};rt.prototype.onerror=function(e){Tr("error",e),this.emitAll("error",e)};rt.prototype.socket=function(e,t){var r=this.nsps[e];if(!r){r=new s8(this,e,t),this.nsps[e]=r;var n=this;r.on("connecting",i),r.on("connect",function(){r.id=n.generateId(e)}),this.autoConnect&&i()}function i(){~BE(n.connecting,r)||n.connecting.push(r)}return r};rt.prototype.destroy=function(e){var t=BE(this.connecting,e);~t&&this.connecting.splice(t,1),!this.connecting.length&&this.close()};rt.prototype.packet=function(e){Tr("writing packet %j",e);var t=this;e.query&&e.type===0&&(e.nsp+="?"+e.query),t.encoding?t.packetBuffer.push(e):(t.encoding=!0,this.encoder.encode(e,function(r){for(var n=0;n<r.length;n++)t.engine.write(r[n],e.options);t.encoding=!1,t.processPacketQueue()}))};rt.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}};rt.prototype.cleanup=function(){Tr("cleanup");for(var e=this.subs.length,t=0;t<e;t++){var r=this.subs.shift();r.destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()};rt.prototype.close=rt.prototype.disconnect=function(){Tr("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,this.readyState==="opening"&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()};rt.prototype.onclose=function(e){Tr("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()};rt.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)Tr("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();Tr("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var r=setTimeout(function(){e.skipReconnect||(Tr("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),!e.skipReconnect&&e.open(function(n){n?(Tr("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",n.data)):(Tr("reconnect success"),e.onreconnect())}))},t);this.subs.push({destroy:function(){clearTimeout(r)}})}};rt.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)};(function(e,t){var r=OF,n=Vh,i=Ow,a=Uh("socket.io-client");e.exports=t=s;var o=t.managers={};function s(u,c){typeof u=="object"&&(c=u,u=void 0),c=c||{};var d=r(u),h=d.source,p=d.id,m=d.path,v=o[p]&&m in o[p].nsps,g=c.forceNew||c["force new connection"]||c.multiplex===!1||v,b;return g?(a("ignoring socket cache for %s",h),b=i(h,c)):(o[p]||(a("new io instance for %s",h),o[p]=i(h,c)),b=o[p]),d.query&&!c.query&&(c.query=d.query),b.socket(d.path,c)}t.protocol=n.protocol,t.connect=s,t.Manager=Ow,t.Socket=$E})(h0,h0.exports);var d8=h0.exports;const h8=w.getDefaultExportFromCjs(d8);function f8(e=document.cookie){const t="XSRF-TOKEN",r=e.match(new RegExp(`(^| )${t}=([^;]+)`));return r!==null&&r[2]?r[2]:null}function p8(){const e=f8(),t={};return e&&(t["X-XSRF-TOKEN"]=e),t}class Sy{constructor(t,r,n){this.isRegistered=!1,this.isListening=!1,typeof t=="string"?(this.socket=Sy.createNewSocket(t,r,n),this.subcribeOnSocketReadiness()):this.socket=t}subcribeOnSocketReadiness(){this.socket.on("register",()=>{this.isRegistered=!0}),this.socket.on("listen",()=>{this.isListening=!0})}isReady(){return this.isRegistered&&this.isListening}on(t,r){this.socket.on(t,r)}off(t,r){this.socket.off(t,r)}send(t,...r){const n=r[0];this.socket.emit(t,JSON.stringify(n))}onMessage(t,r,n){this.onMessageCallback=n;const i=t||"",a=r||"",o=a?`${i}-${a}`:i,s=u=>{let c=null;try{c=JSON.parse(u)}catch(d){throw new Error("Error parsing response message")}n(i,c)};return this.on(o,s),()=>{this.off(o,s)}}trigger(t,r){this.onMessageCallback&&this.onMessageCallback(t,r)}static createNewSocket(t,r,n){const i=new URL("./gateway",new URL(ja(t))),a=i.origin+(n?`/${n}`:""),o=h8.connect(a,{path:i.pathname,transports:["websocket"],reconnection:!0,query:r});return o.on("connect_error",s=>{console.log(`connect_error due to ${s.message}`)}),o.on("csrf",()=>{o.emit("csrf",p8())}),o.on("listen",()=>{o.emit("register",{})}),o.on("register",()=>{o.emit('{"eventName": "_registerEvent", "data": "pivot2"}')}),o.on("error",s=>{console.warn(`"SisenseSocket" socket error "${s}"`)}),o}}var m8=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(d){try{c(n.next(d))}catch(h){o(h)}}function u(d){try{c(n.throw(d))}catch(h){o(h)}}function c(d){d.done?a(d.value):i(d.value).then(s,u)}c((n=n.apply(e,t||[])).next())})};class g8{constructor(t){this.socket=t}destroy(){}prepareRequest(t){return Promise.resolve(t)}prepareLoadService(t,r=!1){return this.dataLoadService&&(r||this.dataLoadService.isFormattingChanges(t))?this.dataLoadService:new bF(this.socket)}prepareDataService(t){const r=new Vr(t);return{loadData:(n,i,a)=>{if(!r)throw new Error('No DataService defined during "prepareDataService"');return r.loadData(n,{pageSize:i,isPaginated:a})}}}loadInitData(t,r=!0,n=100,i=!1){return m8(this,void 0,void 0,function*(){const a=r?n:void 0;try{const o=yield this.prepareRequest(t);this.dataLoadService=this.prepareLoadService(o,i);const{loadData:s}=this.prepareDataService(this.dataLoadService),{rowsTreeService:u,columnsTreeService:c,cornerTreeService:d,isLastPage:h}=yield s(i?void 0:o,a,r);return this.transformTreeStructuresToResultData({rowsTreeService:u,columnsTreeService:c,cornerTreeService:d,isLastPage:h})}catch(o){console.error('Error during loading initial page"',o)}return $_})}buildColumnsHelper(t,r,n,i){var a;const o=`${n}${n===""?"":" | "}${(a=i.value)===null||a===void 0?void 0:a.toString()}`;i.children?i.children.forEach(s=>{this.buildColumnsHelper(t,r,o,s)}):r.push({name:o,type:t})}transformGridToColumns(t,r){if(!r||r.length===0)return[];const n=[];return r==null||r[0].forEach(i=>{typeof i!="string"&&this.buildColumnsHelper(t,n,"",i)}),n||[]}transformTreeStructuresToResultData(t){const{rowsTreeService:r,columnsTreeService:n,cornerTreeService:i}=t;if(!r&&!n&&!i)return $_;const a=i?i.getGrid():[],o=n?n.getGrid():[],s=r?r.getGrid():[],u=this.transformGridToColumns("string",a),c=this.transformGridToColumns("number",o),d=[...u,...c],h=r?r.extractData(n):[],p=s.length,m=d.length,v=[];let g=0,b=0;return Array.from(Array(p)).map((C,x)=>{const E=[];Array.from(Array(m)).map((T,A)=>{var R,D;let I;if(A<u.length){g=x,b=A;try{I=s[g][b]}catch(G){throw new Error(`Can't find data item for ${g}-${b}`)}}else{g=x,b=A-u.length;try{I=h[g][b]}catch(G){throw new Error(`Can't find data item for ${g}-${b}`)}}let H;if(typeof I=="string"){const G=I.split("-");if(G.length===2){const q=Number(G[0]),O=Number(G[1]);I=s[q][O],H=((R=I.value)===null||R===void 0?void 0:R.toString())||""}else H=""}else H=((D=I.value)===null||D===void 0?void 0:D.toString())||"";E.push({data:H,text:H})}),v.push(E)}),{table:{columns:d,rows:v},grids:{corner:a,rows:s,columns:o,values:h}}}}const v8={errorPrefix:"[request-error]",errors:{networkError:"Network error. Check browser console for further details.",authFailed:"Failed to authenticate.",ssoNotEnabled:"SSO is not enabled on target instance, please choose another authentication method.",ssoNoLoginUrl:"Unable to fetch SSO login URL from target instance. Check SSO settings.",passwordAuthFailed:"$t(errorPrefix) Username and password authentication was not successful. Check credentials.",tokenAuthFailed:"$t(errorPrefix) Token authentication was not successful. Check credentials.",authRedirectLimitExceeded:"SSO redirect limit reached. Authentication may be blocked by browser privacy settings or third-party cookie restrictions. Please check your SSO configuration or try a different browser."}},y8={errorPrefix:"[request-error]",errors:{networkError:"Помилка мережі. Можливо ви забули додати свій домен до «CORS Allowed Origins» в панелі адміністратора Sisense -> Security Settings.",authFailed:"Автентифікація не вдалася.",ssoNotEnabled:"SSO не ввімкнено на цьому сервері, будь ласка, виберіть інший метод аутентифікації",ssoNoLoginUrl:"Неможливо отримати SSO login URL з сервера. Перевірте налаштування SSO.",passwordAuthFailed:"$t(errorPrefix) Помилка автентифікації за допомогою імені користувача та пароля. Перевірте дані для входу.",tokenAuthFailed:"$t(errorPrefix) Помилка автентифікації за допомогою токена. Перевірте дані для входу.",authRedirectLimitExceeded:"Досягнуто ліміт перенаправлень SSO. Автентифікацію може блокувати налаштування конфіденційності браузера або обмеження сторонніх cookie. Перевірте конфігурацію SSO або спробуйте інший браузер."}},zE="sdkRestClient",b8={en:v8,uk:y8};function _8(){return N.initI18next({resource:b8,language:"en",namespace:zE})}const{i18nextInstance:w8}=_8();class Pu{constructor(t){this._valid=!0,this._authenticating=!1,this._tried=!1,this._result=new Promise(r=>{this._resolve=r}),this.type=t}isValid(){return this._valid}invalidate(){this._valid=!1}authenticate(){return this._result}isAuthenticating(){return this._authenticating}authenticated(){return this._result}applyHeaders(t){}}const Kh=(e,t)=>{if(Array.isArray(e)){for(const[n,i]of Object.entries(t))e.push([n,i]);return}if(e instanceof Headers){for(const[n,i]of Object.entries(t))e.set(n,i);return}const r=e;for(const[n,i]of Object.entries(t))r[n]=i},jE=(e,t)=>{if(!e||typeof e!="string")return e;const r=new URL(e);for(const[n,i]of Object.entries(t))r.searchParams.set(n,i);return r.toString()},C8=(e,t)=>e===null||t===null,x8=(e,t)=>{if(!e||typeof e!="string")throw new Error("URL must be a non-empty string");let r;try{r=new URL(e)}catch(i){throw new Error(`Invalid URL format: ${e}`)}let n;try{n=new URL(t)}catch(i){throw new Error(`Invalid url origin format: ${t}`)}if(r.origin!==n.origin)throw new Error(`URL origin ${r.origin} does not match allowed origin ${n.origin}. SSRF protection: requests must be to the configured base URL only.`)};class T8 extends Pu{constructor(t,r){super("bearer"),this.bearer=r,this._resolve(!0)}applyHeaders(t){const r="Bearer "+this.bearer;Kh(t,{Authorization:r})}authenticate(){return this._result}authenticated(){return this._result}}function WE(e){return e.type==="bearer"}let bi=class extends N.AbstractTranslatableError{constructor(t,r){super(zE,{key:t,interpolationOptions:r},w8.t)}get status(){return this.interpolationOptions.status}};var Qp=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(d){try{c(n.next(d))}catch(h){o(h)}}function u(d){try{c(n.throw(d))}catch(h){o(h)}}function c(d){d.done?a(d.value):i(d.value).then(s,u)}c((n=n.apply(e,t||[])).next())})};const S8="sisense_sso_redirect_attempts_",E8="sisense_sso_redirect_last_at_",M8=3,A8=5e3;class P8 extends Pu{constructor(t,r=!1,n="",i=M8,a=A8){super("sso"),this.url=ja(t,!0),this._enableSilentPreAuth=r,this._alternativeSsoHost=n,this._ssoMaxAuthRedirectAttempts=Math.max(1,i),this._ssoRedirectAttemptsTtlMs=Math.max(0,a)}getRedirectCountStorageKey(){return S8+encodeURIComponent(this.url)}getRedirectLastAtStorageKey(){return E8+encodeURIComponent(this.url)}getRedirectAttempts(){try{if(typeof window=="undefined"||typeof window.localStorage=="undefined")return 0;const t=window.localStorage.getItem(this.getRedirectCountStorageKey()),r=window.localStorage.getItem(this.getRedirectLastAtStorageKey());if(t==null&&r==null)return 0;const n=parseInt(t!=null?t:"",10),i=parseInt(r!=null?r:"",10);return isNaN(n)||isNaN(i)||n<0?(this.clearRedirectAttempts(),0):this._ssoRedirectAttemptsTtlMs>0&&Date.now()-i>this._ssoRedirectAttemptsTtlMs?(this.clearRedirectAttempts(),0):Math.max(0,n)}catch(t){return 0}}clearRedirectAttempts(){try{typeof window!="undefined"&&typeof window.localStorage!="undefined"&&(window.localStorage.removeItem(this.getRedirectCountStorageKey()),window.localStorage.removeItem(this.getRedirectLastAtStorageKey()))}catch(t){}}persistRedirectAttempts(t){try{if(typeof window=="undefined"||typeof window.localStorage=="undefined")return;const r=Date.now();window.localStorage.setItem(this.getRedirectCountStorageKey(),String(t)),window.localStorage.setItem(this.getRedirectLastAtStorageKey(),String(r))}catch(r){}}authenticate(t=!0){var r;return Qp(this,void 0,void 0,function*(){try{this._authenticating=!0;const{isAuthenticated:n,loginUrl:i}=yield this.checkAuthentication();if(n)return this.clearRedirectAttempts(),this._resolve(!0),yield this._result;let a="";try{new URL(i),a=i}catch(u){a=i_(this._alternativeSsoHost||this.url,i)}const o=Object.fromEntries(new URL(this.url).searchParams.entries());a=jE(a,Object.assign(Object.assign({},o),{return_to:window.location.href}));const s=this.getRedirectAttempts();if(s>=this._ssoMaxAuthRedirectAttempts)throw new bi("errors.authRedirectLimitExceeded");if(this._enableSilentPreAuth&&t){yield this.authenticateSilent(a);const{isAuthenticated:u}=yield this.checkAuthentication();if(u)return this.clearRedirectAttempts(),this._resolve(!0),yield this._result}this.persistRedirectAttempts(s+1),(r=window==null?void 0:window.location)===null||r===void 0||r.replace(a)}finally{this._resolve(!1),this._authenticating=!1}return this._result})}authenticateSilent(t){return Qp(this,void 0,void 0,function*(){const r=document.createElement("iframe");r.style.display="none",document.body.appendChild(r),r.src=t,yield new Promise(n=>{r.onload=()=>{n(!0)}}),document.body.removeChild(r)})}checkAuthentication(){var t,r;return Qp(this,void 0,void 0,function*(){const n=i_(this.url,"api/auth/isauth"),i=yield fetch(n,{headers:{Internal:"true"},credentials:"include"}).catch(Zh);if(i.status===200&&!(!((r=(t=i.headers)===null||t===void 0?void 0:t.get("Content-Type"))===null||r===void 0)&&r.includes("application/json")))throw new bi("errors.authFailed");const a=yield i.json();if(!a.isAuthenticated){if(!a.ssoEnabled)throw new bi("errors.ssoNotEnabled");if(!a.loginUrl)throw new bi("errors.ssoNoLoginUrl")}return{isAuthenticated:a.isAuthenticated,loginUrl:a.loginUrl||""}})}}function Ey(e){return e.type==="sso"}var R8=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(d){try{c(n.next(d))}catch(h){o(h)}}function u(d){try{c(n.throw(d))}catch(h){o(h)}}function c(d){d.done?a(d.value):i(d.value).then(s,u)}c((n=n.apply(e,t||[])).next())})};class O8 extends Pu{constructor(t,r){super("wat"),this.url=`${ja(t)}api/v1/wat/sessionToken`,this.body=`{"webAccessToken": "${r}"}`}authenticate(){return R8(this,void 0,void 0,function*(){if(this._tried)return this._result;this._tried=!0;try{this._authenticating=!0;const t=yield fetch(this.url,{method:"POST",headers:{accept:"application/json","Content-Type":"application/json"},body:this.body}).catch(Zh);if(t.ok){const r=yield t.json();this._initialiser=r.initialiser,this._webSessionToken=r.webSessionToken,this._resolve(!0)}}catch(t){throw new bi("errors.tokenAuthFailed")}finally{this._resolve(!1),this._authenticating=!1}return this._result})}applyHeaders(t){if(this._webSessionToken&&this._initialiser){const r=this._webSessionToken,n=this._initialiser;Kh(t,{Authorization:r,Initialiser:n})}}}function UE(e){return e.type==="wat"}var VE=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(d){try{c(n.next(d))}catch(h){o(h)}}function u(d){try{c(n.throw(d))}catch(h){o(h)}}function c(d){d.done?a(d.value):i(d.value).then(s,u)}c((n=n.apply(e,t||[])).next())})};function k8(e){var t,r,n;return VE(this,void 0,void 0,function*(){if(!e.ok){const i=(t=e.headers)===null||t===void 0?void 0:t.get("Content-Type"),a=i&&i.includes("application/json")?yield e.json().catch(()=>({})):{};throw new bi("errors.responseError",{status:e.status.toString(),statusText:e.statusText,errorCode:(r=a.error)===null||r===void 0?void 0:r.code,errorMessage:(n=a.error)===null||n===void 0?void 0:n.message,context:e.statusText?"withStatusText":"onlyStatus"})}return e})}function D8(e,t){if(t.invalidate(),B8(t))throw new bi("errors.passwordAuthFailed");if(WE(t)||UE(t))throw new bi("errors.tokenAuthFailed");return Ey(t)&&!t.isAuthenticating()&&t.authenticate(),e}function N8(e){return e.message==="Failed to fetch"&&e.name==="TypeError"}function I8(){return console.warn("Network error. Verify server is accessible and your domain is added to 'CORS Allowed Origins' in Sisense Admin Panel -> Security Settings."),Promise.reject(new bi("errors.networkError"))}const L8=e=>t=>VE(void 0,void 0,void 0,function*(){return t.status===401?D8(t,e):t.ok?t:k8(t)}),Zh=e=>N8(e)?I8():Promise.reject(e);var F8=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(d){try{c(n.next(d))}catch(h){o(h)}}function u(d){try{c(n.throw(d))}catch(h){o(h)}}function c(d){d.done?a(d.value):i(d.value).then(s,u)}c((n=n.apply(e,t||[])).next())})};class $8 extends Pu{constructor(t,r,n){super("password"),this._authheader="",this.url=`${ja(t)}api/v1/authentication/login`;const i=encodeURIComponent(r),a=encodeURIComponent(n);this.body=`username=${i}&password=${a}`}authenticate(){return F8(this,void 0,void 0,function*(){if(this._tried)return this._result;this._tried=!0;try{this._authenticating=!0;const t=yield fetch(this.url,{method:"POST",headers:{accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},body:this.body}).catch(Zh);if(t.ok){const r=yield t.json();this._authheader=r.access_token}}finally{this._resolve(!!this._authheader),this._authenticating=!1}return this._result})}applyHeaders(t){const r="Bearer "+this._authheader;Kh(t,{Authorization:r})}}function B8(e){return e.type==="password"}class H8{constructor(){this.ready=!0,this.events=new uy,this.ready=!0}isReady(){return this.ready}on(t,r){this.events.on(t,r)}off(t,r){this.events.removeListener(t,r)}send(t,...r){const n=t||r;this.ready=!!n||!0}onMessage(t,r,n){this.onMessageCallback=n;const i=()=>{};return this.on("message",i),()=>{this.off("message",i)}}trigger(t,r){return new Promise(n=>{setTimeout(()=>{this.onMessageCallback&&this.onMessageCallback(t,r),n()},10)})}}const z8="pivot2";class j8{constructor(t,r,n=!1){this._url=t,this._auth=r,this._mockSocket=n}getQueryOptionsSso(t){return{}}getQueryOptionsBearer(t){const r=t.bearer;if(!r)throw new Error("Missing bearer token");return{token:r}}getQueryOptionsWat(t){const r=new Headers;t.applyHeaders(r);const n=r.get("Authorization"),i=r.get("Initialiser");if(!n||!i)throw new Error("Missing auth header");return{authorization:n,initialiser:i}}get socket(){if(!this._socket){if(this._mockSocket)return this._socket=new H8,this._socket;const t=this._auth,r=this._url;let n={};WE(t)?n=this.getQueryOptionsBearer(t):UE(t)?n=this.getQueryOptionsWat(t):Ey(t)&&(n=this.getQueryOptionsSso(t)),this._socket=new Sy(r,n,z8)}return this._socket}}var W8=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(d){try{c(n.next(d))}catch(h){o(h)}}function u(d){try{c(n.throw(d))}catch(h){o(h)}}function c(d){d.done?a(d.value):i(d.value).then(s,u)}c((n=n.apply(e,t||[])).next())})};class GE{constructor(t,r,n=!1){this.socketBuilder=new j8(ja(t),r,n)}queryData(t,r,n,i){return W8(this,void 0,void 0,function*(){return new g8(this.socketBuilder.socket).loadInitData(t,r,n,i)})}}var Gr={},qE={},Qh={},My={};(function(e){var t=w.commonjsGlobal&&w.commonjsGlobal.__awaiter||function(i,a,o,s){function u(c){return c instanceof o?c:new o(function(d){d(c)})}return new(o||(o=Promise))(function(c,d){function h(v){try{m(s.next(v))}catch(g){d(g)}}function p(v){try{m(s.throw(v))}catch(g){d(g)}}function m(v){v.done?c(v.value):u(v.value).then(h,p)}m((s=s.apply(i,a||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Task=e.ExecutionResultStatus=void 0;var r;(function(i){i.SUCCESS="SUCCESS",i.ERROR="ERROR"})(r=e.ExecutionResultStatus||(e.ExecutionResultStatus={}));class n{constructor(a,o,s){this.steps=a,this.passport=o,this.addons=s,this.statistics={startTime:new Date,steps:[],runtimeInfo:{}},this.currentStep=void 0}run(a){return t(this,void 0,void 0,function*(){let o=a,s;for(let c=0;c<this.steps.length;c+=1){this.currentStep=this.steps[c];const{resultValue:d,info:h}=yield this.currentStep.run(this,o);if(this.statistics.steps.push(h),h.success)o=d;else{s=h.error;break}}const u=this.statistics.steps.length===this.steps.length&&this.statistics.steps.every(c=>c.success);return this.statistics.endTime=new Date,{status:u?r.SUCCESS:r.ERROR,error:s,result:u?o:void 0,statistics:this.statistics}})}cancel(a){var o;return t(this,void 0,void 0,function*(){yield(o=this.currentStep)===null||o===void 0?void 0:o.cancel(this,a)})}addRuntimeInfo(a,o){this.statistics.runtimeInfo[a]=o}emitAddonEvent(a,...o){var s;const u=a.split("."),c=u[0],d=u[1],h=(s=this.addons)===null||s===void 0?void 0:s.find(m=>m.addonName===c),p=(h==null?void 0:h.events)[d];p(...o)}}e.Task=n})(My);var Jp=w.commonjsGlobal&&w.commonjsGlobal.__awaiter||function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(d){try{c(n.next(d))}catch(h){o(h)}}function u(d){try{c(n.throw(d))}catch(h){o(h)}}function c(d){d.done?a(d.value):i(d.value).then(s,u)}c((n=n.apply(e,t||[])).next())})};Object.defineProperty(Qh,"__esModule",{value:!0});Qh.AbstractTaskManager=void 0;const U8=My;class V8{constructor(t){this.runningTasks=new Map,this.addons=t||[]}runTask(t){return Jp(this,void 0,void 0,function*(){const{taskId:r}=t.passport;this.runningTasks.set(r,t);const n=yield t.run();return this.runningTasks.delete(r),n})}createFlow(t){return r=>Jp(this,void 0,void 0,function*(){const n=new U8.Task(t,r,this.addons);return this.runTask(n)})}cancel(t,r){return Jp(this,void 0,void 0,function*(){const n=this.runningTasks.get(t);n&&(yield n.cancel(r))})}}Qh.AbstractTaskManager=V8;var Jh={},Ru={};Object.defineProperty(Ru,"__esModule",{value:!0});Ru.TaskCanceledError=void 0;class G8 extends Error{constructor(t){const r=`Task was canceled due to: "${t}"`;super(r)}}Ru.TaskCanceledError=G8;var kw=w.commonjsGlobal&&w.commonjsGlobal.__awaiter||function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(d){try{c(n.next(d))}catch(h){o(h)}}function u(d){try{c(n.throw(d))}catch(h){o(h)}}function c(d){d.done?a(d.value):i(d.value).then(s,u)}c((n=n.apply(e,t||[])).next())})};Object.defineProperty(Jh,"__esModule",{value:!0});Jh.Step=void 0;const q8=Ru;class Y8{constructor(t,r,n){this.taskSelfResolvers=new Map,this.taskStepInfos=new Map,this.name=t,this.runLogic=r,this.cancelLogic=n}run(t,r){return kw(this,void 0,void 0,function*(){return this.addStepInfo(t,{name:this.name}),new Promise(n=>{const i=new Date,a=(o,s)=>{const u=new Date,c=u.getTime()-i.getTime();this.addStepInfo(t,{startTime:i,endTime:u,duration:c}),this.addStepInfo(t,s?{success:!1,error:s}:{success:!0}),n({resultValue:o,info:this.getStepInfo(t)})};this.taskSelfResolvers.set(t,a),this.runLogic(t,r).then(o=>a(o)).finally(()=>{this.taskSelfResolvers.delete(t),this.taskStepInfos.delete(t)}).catch(o=>a(void 0,o))})})}cancel(t,r){return kw(this,void 0,void 0,function*(){this.addStepInfo(t,{wasCanceled:!0,cancelingReason:r});const n=this.taskSelfResolvers.get(t);n==null||n(void 0,new q8.TaskCanceledError(r)),this.taskSelfResolvers.delete(t),this.taskStepInfos.delete(t),yield this.cancelLogic(t,r)})}addStepInfo(t,r){const n=this.taskStepInfos.get(t)||{},i=Object.assign(Object.assign({},n),r);this.taskStepInfos.set(t,i)}getStepInfo(t){return this.taskStepInfos.get(t)}}Jh.Step=Y8;var ef={};Object.defineProperty(ef,"__esModule",{value:!0});ef.Addon=void 0;class X8{constructor(){this.events={}}}ef.Addon=X8;var tf={},Bc,K8=new Uint8Array(16);function YE(){if(!Bc&&(Bc=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Bc))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Bc(K8)}const Z8=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function rf(e){return typeof e=="string"&&Z8.test(e)}var hr=[];for(var em=0;em<256;++em)hr.push((em+256).toString(16).substr(1));function nf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(hr[e[t+0]]+hr[e[t+1]]+hr[e[t+2]]+hr[e[t+3]]+"-"+hr[e[t+4]]+hr[e[t+5]]+"-"+hr[e[t+6]]+hr[e[t+7]]+"-"+hr[e[t+8]]+hr[e[t+9]]+"-"+hr[e[t+10]]+hr[e[t+11]]+hr[e[t+12]]+hr[e[t+13]]+hr[e[t+14]]+hr[e[t+15]]).toLowerCase();if(!rf(r))throw TypeError("Stringified UUID is invalid");return r}var Dw,tm,rm=0,nm=0;function Q8(e,t,r){var n=t&&r||0,i=t||new Array(16);e=e||{};var a=e.node||Dw,o=e.clockseq!==void 0?e.clockseq:tm;if(a==null||o==null){var s=e.random||(e.rng||YE)();a==null&&(a=Dw=[s[0]|1,s[1],s[2],s[3],s[4],s[5]]),o==null&&(o=tm=(s[6]<<8|s[7])&16383)}var u=e.msecs!==void 0?e.msecs:Date.now(),c=e.nsecs!==void 0?e.nsecs:nm+1,d=u-rm+(c-nm)/1e4;if(d<0&&e.clockseq===void 0&&(o=o+1&16383),(d<0||u>rm)&&e.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");rm=u,nm=c,tm=o,u+=122192928e5;var h=((u&268435455)*1e4+c)%4294967296;i[n++]=h>>>24&255,i[n++]=h>>>16&255,i[n++]=h>>>8&255,i[n++]=h&255;var p=u/4294967296*1e4&268435455;i[n++]=p>>>8&255,i[n++]=p&255,i[n++]=p>>>24&15|16,i[n++]=p>>>16&255,i[n++]=o>>>8|128,i[n++]=o&255;for(var m=0;m<6;++m)i[n+m]=a[m];return t||nf(i)}function XE(e){if(!rf(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}function J8(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var e7="6ba7b810-9dad-11d1-80b4-00c04fd430c8",t7="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function KE(e,t,r){function n(i,a,o,s){if(typeof i=="string"&&(i=J8(i)),typeof a=="string"&&(a=XE(a)),a.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+i.length);if(u.set(a),u.set(i,a.length),u=r(u),u[6]=u[6]&15|t,u[8]=u[8]&63|128,o){s=s||0;for(var c=0;c<16;++c)o[s+c]=u[c];return o}return nf(u)}try{n.name=e}catch(i){}return n.DNS=e7,n.URL=t7,n}function r7(e){if(typeof e=="string"){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return n7(i7(a7(e),e.length*8))}function n7(e){for(var t=[],r=e.length*32,n="0123456789abcdef",i=0;i<r;i+=8){var a=e[i>>5]>>>i%32&255,o=parseInt(n.charAt(a>>>4&15)+n.charAt(a&15),16);t.push(o)}return t}function ZE(e){return(e+64>>>9<<4)+14+1}function i7(e,t){e[t>>5]|=128<<t%32,e[ZE(t)-1]=t;for(var r=1732584193,n=-271733879,i=-1732584194,a=271733878,o=0;o<e.length;o+=16){var s=r,u=n,c=i,d=a;r=yr(r,n,i,a,e[o],7,-680876936),a=yr(a,r,n,i,e[o+1],12,-389564586),i=yr(i,a,r,n,e[o+2],17,606105819),n=yr(n,i,a,r,e[o+3],22,-1044525330),r=yr(r,n,i,a,e[o+4],7,-176418897),a=yr(a,r,n,i,e[o+5],12,1200080426),i=yr(i,a,r,n,e[o+6],17,-1473231341),n=yr(n,i,a,r,e[o+7],22,-45705983),r=yr(r,n,i,a,e[o+8],7,1770035416),a=yr(a,r,n,i,e[o+9],12,-1958414417),i=yr(i,a,r,n,e[o+10],17,-42063),n=yr(n,i,a,r,e[o+11],22,-1990404162),r=yr(r,n,i,a,e[o+12],7,1804603682),a=yr(a,r,n,i,e[o+13],12,-40341101),i=yr(i,a,r,n,e[o+14],17,-1502002290),n=yr(n,i,a,r,e[o+15],22,1236535329),r=br(r,n,i,a,e[o+1],5,-165796510),a=br(a,r,n,i,e[o+6],9,-1069501632),i=br(i,a,r,n,e[o+11],14,643717713),n=br(n,i,a,r,e[o],20,-373897302),r=br(r,n,i,a,e[o+5],5,-701558691),a=br(a,r,n,i,e[o+10],9,38016083),i=br(i,a,r,n,e[o+15],14,-660478335),n=br(n,i,a,r,e[o+4],20,-405537848),r=br(r,n,i,a,e[o+9],5,568446438),a=br(a,r,n,i,e[o+14],9,-1019803690),i=br(i,a,r,n,e[o+3],14,-187363961),n=br(n,i,a,r,e[o+8],20,1163531501),r=br(r,n,i,a,e[o+13],5,-1444681467),a=br(a,r,n,i,e[o+2],9,-51403784),i=br(i,a,r,n,e[o+7],14,1735328473),n=br(n,i,a,r,e[o+12],20,-1926607734),r=_r(r,n,i,a,e[o+5],4,-378558),a=_r(a,r,n,i,e[o+8],11,-2022574463),i=_r(i,a,r,n,e[o+11],16,1839030562),n=_r(n,i,a,r,e[o+14],23,-35309556),r=_r(r,n,i,a,e[o+1],4,-1530992060),a=_r(a,r,n,i,e[o+4],11,1272893353),i=_r(i,a,r,n,e[o+7],16,-155497632),n=_r(n,i,a,r,e[o+10],23,-1094730640),r=_r(r,n,i,a,e[o+13],4,681279174),a=_r(a,r,n,i,e[o],11,-358537222),i=_r(i,a,r,n,e[o+3],16,-722521979),n=_r(n,i,a,r,e[o+6],23,76029189),r=_r(r,n,i,a,e[o+9],4,-640364487),a=_r(a,r,n,i,e[o+12],11,-421815835),i=_r(i,a,r,n,e[o+15],16,530742520),n=_r(n,i,a,r,e[o+2],23,-995338651),r=wr(r,n,i,a,e[o],6,-198630844),a=wr(a,r,n,i,e[o+7],10,1126891415),i=wr(i,a,r,n,e[o+14],15,-1416354905),n=wr(n,i,a,r,e[o+5],21,-57434055),r=wr(r,n,i,a,e[o+12],6,1700485571),a=wr(a,r,n,i,e[o+3],10,-1894986606),i=wr(i,a,r,n,e[o+10],15,-1051523),n=wr(n,i,a,r,e[o+1],21,-2054922799),r=wr(r,n,i,a,e[o+8],6,1873313359),a=wr(a,r,n,i,e[o+15],10,-30611744),i=wr(i,a,r,n,e[o+6],15,-1560198380),n=wr(n,i,a,r,e[o+13],21,1309151649),r=wr(r,n,i,a,e[o+4],6,-145523070),a=wr(a,r,n,i,e[o+11],10,-1120210379),i=wr(i,a,r,n,e[o+2],15,718787259),n=wr(n,i,a,r,e[o+9],21,-343485551),r=Xi(r,s),n=Xi(n,u),i=Xi(i,c),a=Xi(a,d)}return[r,n,i,a]}function a7(e){if(e.length===0)return[];for(var t=e.length*8,r=new Uint32Array(ZE(t)),n=0;n<t;n+=8)r[n>>5]|=(e[n/8]&255)<<n%32;return r}function Xi(e,t){var r=(e&65535)+(t&65535),n=(e>>16)+(t>>16)+(r>>16);return n<<16|r&65535}function o7(e,t){return e<<t|e>>>32-t}function af(e,t,r,n,i,a){return Xi(o7(Xi(Xi(t,e),Xi(n,a)),i),r)}function yr(e,t,r,n,i,a,o){return af(t&r|~t&n,e,t,i,a,o)}function br(e,t,r,n,i,a,o){return af(t&n|r&~n,e,t,i,a,o)}function _r(e,t,r,n,i,a,o){return af(t^r^n,e,t,i,a,o)}function wr(e,t,r,n,i,a,o){return af(r^(t|~n),e,t,i,a,o)}var s7=KE("v3",48,r7);function l7(e,t,r){e=e||{};var n=e.random||(e.rng||YE)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return nf(n)}function u7(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:return t^r^n;case 2:return t&r^t&n^r&n;case 3:return t^r^n}}function im(e,t){return e<<t|e>>>32-t}function c7(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var n=unescape(encodeURIComponent(e));e=[];for(var i=0;i<n.length;++i)e.push(n.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var a=e.length/4+2,o=Math.ceil(a/16),s=new Array(o),u=0;u<o;++u){for(var c=new Uint32Array(16),d=0;d<16;++d)c[d]=e[u*64+d*4]<<24|e[u*64+d*4+1]<<16|e[u*64+d*4+2]<<8|e[u*64+d*4+3];s[u]=c}s[o-1][14]=(e.length-1)*8/Math.pow(2,32),s[o-1][14]=Math.floor(s[o-1][14]),s[o-1][15]=(e.length-1)*8&4294967295;for(var h=0;h<o;++h){for(var p=new Uint32Array(80),m=0;m<16;++m)p[m]=s[h][m];for(var v=16;v<80;++v)p[v]=im(p[v-3]^p[v-8]^p[v-14]^p[v-16],1);for(var g=r[0],b=r[1],C=r[2],x=r[3],E=r[4],T=0;T<80;++T){var A=Math.floor(T/20),R=im(g,5)+u7(A,b,C,x)+E+t[A]+p[T]>>>0;E=x,x=C,C=im(b,30)>>>0,b=g,g=R}r[0]=r[0]+g>>>0,r[1]=r[1]+b>>>0,r[2]=r[2]+C>>>0,r[3]=r[3]+x>>>0,r[4]=r[4]+E>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var d7=KE("v5",80,c7);const h7="00000000-0000-0000-0000-000000000000";function f7(e){if(!rf(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const p7=Object.freeze(Object.defineProperty({__proto__:null,NIL:h7,parse:XE,stringify:nf,v1:Q8,v3:s7,v4:l7,v5:d7,validate:rf,version:f7},Symbol.toStringTag,{value:"Module"})),m7=w.getAugmentedNamespace(p7);Object.defineProperty(tf,"__esModule",{value:!0});tf.TaskPassport=void 0;const g7=m7;class v7{constructor(){this.taskId=(0,g7.v4)()}}tf.TaskPassport=v7;(function(e){var t=w.commonjsGlobal&&w.commonjsGlobal.__createBinding||(Object.create?function(n,i,a,o){o===void 0&&(o=a);var s=Object.getOwnPropertyDescriptor(i,a);(!s||("get"in s?!i.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,o,s)}:function(n,i,a,o){o===void 0&&(o=a),n[o]=i[a]}),r=w.commonjsGlobal&&w.commonjsGlobal.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(Qh,e),r(Jh,e),r(My,e),r(ef,e),r(tf,e),r(Ru,e)})(qE);(function(e){var t=w.commonjsGlobal&&w.commonjsGlobal.__createBinding||(Object.create?function(n,i,a,o){o===void 0&&(o=a);var s=Object.getOwnPropertyDescriptor(i,a);(!s||("get"in s?!i.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(n,o,s)}:function(n,i,a,o){o===void 0&&(o=a),n[o]=i[a]}),r=w.commonjsGlobal&&w.commonjsGlobal.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(qE,e)})(Gr);class xr extends N.AbstractTranslatableError{constructor(t,r){super(DS,{key:t,interpolationOptions:r},v6.t)}get status(){return this.interpolationOptions.status}}var y7=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(d){try{c(n.next(d))}catch(h){o(h)}}function u(d){try{c(n.throw(d))}catch(h){o(h)}}function c(d){d.done?a(d.value):i(d.value).then(s,u)}c((n=n.apply(e,t||[])).next())})};const ru="api/datasources",b7="api/v2/datamodels";class _7{constructor(t){this.httpClient=t}getDataSourceFields(t,r=9999,n=0){const i=N.getDataSourceName(t),a=`${ru}/${encodeURI(i)}/fields/search`;return this.httpClient.post(a,{offset:n,count:r}).catch(()=>{throw new xr("errors.dataSourceNotFound",{dataSource:typeof t=="string"?t:t.title})})}getDataSourceList(){const t=`${ru}/?sharedWith=r,w`;return this.httpClient.get(t)}getDataSourceSchema(t){const r=`${b7}/schema?title=${encodeURIComponent(t)}`;return this.httpClient.get(r)}sendJaqlRequest(t,r){const n=QE(t),i=new AbortController;return{responsePromise:this.httpClient.post(n,r,void 0,i.signal).then(a=>Array.isArray(a)?{values:[],metadata:[]}:a),abortHttpRequest:a=>i.abort(a)}}sendDownloadCsvRequest(t,r){const n=x7(t),i=new AbortController,a=new URLSearchParams;return a.append("data",encodeURIComponent(JSON.stringify(r))),{responsePromise:this.httpClient.post(n,a,{headers:{"Content-Type":"application/x-www-form-urlencoded"}},i.signal,{nonJSONBody:!0,returnBlob:!0}),abortHttpRequest:o=>i.abort(o)}}sendCancelJaqlQueryRequest(t,r){return this.sendCancelMultipleJaqlQueriesRequest([t],r)}sendCancelMultipleJaqlQueriesRequest(t,r){return y7(this,void 0,void 0,function*(){const n={queries:t.join(";")},i=w7(r);try{yield this.httpClient.post(i,n)}catch(a){if(a.status==="404"){const o=C7(r);yield this.httpClient.post(o,n)}else throw a}})}}function w7(e){const t=encodeURIComponent(N.getDataSourceName(e));return`${ru}/localhost/${t}/cancel_queries`}function C7(e){const t=encodeURIComponent(N.getDataSourceName(e));return`${ru}/live/${t}/cancel_queries`}function QE(e){const t=encodeURIComponent(N.getDataSourceName(e));return`${ru}/${t}/jaql`}function x7(e){return`${QE(e)}/csv`}var JE={exports:{}};/*! @preserve
206
+ * numeral.js
207
+ * version : 2.0.6
208
+ * author : Adam Draper
209
+ * license : MIT
210
+ * http://adamwdraper.github.com/Numeral-js/
211
+ */(function(e){(function(t,r){e.exports?e.exports=r():t.numeral=r()})(w.commonjsGlobal,function(){var t,r,n="2.0.6",i={},a={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};function u(c,d){this._input=c,this._value=d}return t=function(c){var d,h,p,m;if(t.isNumeral(c))d=c.value();else if(c===0||typeof c=="undefined")d=0;else if(c===null||r.isNaN(c))d=null;else if(typeof c=="string")if(s.zeroFormat&&c===s.zeroFormat)d=0;else if(s.nullFormat&&c===s.nullFormat||!c.replace(/[^0-9]+/g,"").length)d=null;else{for(h in i)if(m=typeof i[h].regexps.unformat=="function"?i[h].regexps.unformat():i[h].regexps.unformat,m&&c.match(m)){p=i[h].unformat;break}p=p||t._.stringToNumber,d=p(c)}else d=Number(c)||null;return new u(c,d)},t.version=n,t.isNumeral=function(c){return c instanceof u},t._=r={numberToFormat:function(c,d,h){var p=a[t.options.currentLocale],m=!1,v=!1,g=0,b="",C=1e12,x=1e9,E=1e6,T=1e3,A="",R=!1,D,I,H,G,q,O,$;if(c=c||0,I=Math.abs(c),t._.includes(d,"(")?(m=!0,d=d.replace(/[\(|\)]/g,"")):(t._.includes(d,"+")||t._.includes(d,"-"))&&(q=t._.includes(d,"+")?d.indexOf("+"):c<0?d.indexOf("-"):-1,d=d.replace(/[\+|\-]/g,"")),t._.includes(d,"a")&&(D=d.match(/a(k|m|b|t)?/),D=D?D[1]:!1,t._.includes(d," a")&&(b=" "),d=d.replace(new RegExp(b+"a[kmbt]?"),""),I>=C&&!D||D==="t"?(b+=p.abbreviations.trillion,c=c/C):I<C&&I>=x&&!D||D==="b"?(b+=p.abbreviations.billion,c=c/x):I<x&&I>=E&&!D||D==="m"?(b+=p.abbreviations.million,c=c/E):(I<E&&I>=T&&!D||D==="k")&&(b+=p.abbreviations.thousand,c=c/T)),t._.includes(d,"[.]")&&(v=!0,d=d.replace("[.]",".")),H=c.toString().split(".")[0],G=d.split(".")[1],O=d.indexOf(","),g=(d.split(".")[0].split(",")[0].match(/0/g)||[]).length,G?(t._.includes(G,"[")?(G=G.replace("]",""),G=G.split("["),A=t._.toFixed(c,G[0].length+G[1].length,h,G[1].length)):A=t._.toFixed(c,G.length,h),H=A.split(".")[0],t._.includes(A,".")?A=p.delimiters.decimal+A.split(".")[1]:A="",v&&Number(A.slice(1))===0&&(A="")):H=t._.toFixed(c,0,h),b&&!D&&Number(H)>=1e3&&b!==p.abbreviations.trillion)switch(H=String(Number(H)/1e3),b){case p.abbreviations.thousand:b=p.abbreviations.million;break;case p.abbreviations.million:b=p.abbreviations.billion;break;case p.abbreviations.billion:b=p.abbreviations.trillion;break}if(t._.includes(H,"-")&&(H=H.slice(1),R=!0),H.length<g)for(var X=g-H.length;X>0;X--)H="0"+H;return O>-1&&(H=H.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),d.indexOf(".")===0&&(H=""),$=H+A+(b||""),m?$=(m&&R?"(":"")+$+(m&&R?")":""):q>=0?$=q===0?(R?"-":"+")+$:$+(R?"-":"+"):R&&($="-"+$),$},stringToNumber:function(c){var d=a[s.currentLocale],h=c,p={thousand:3,million:6,billion:9,trillion:12},m,v,g;if(s.zeroFormat&&c===s.zeroFormat)v=0;else if(s.nullFormat&&c===s.nullFormat||!c.replace(/[^0-9]+/g,"").length)v=null;else{v=1,d.delimiters.decimal!=="."&&(c=c.replace(/\./g,"").replace(d.delimiters.decimal,"."));for(m in p)if(g=new RegExp("[^a-zA-Z]"+d.abbreviations[m]+"(?:\\)|(\\"+d.currency.symbol+")?(?:\\))?)?$"),h.match(g)){v*=Math.pow(10,p[m]);break}v*=(c.split("-").length+Math.min(c.split("(").length-1,c.split(")").length-1))%2?1:-1,c=c.replace(/[^0-9\.]+/g,""),v*=Number(c)}return v},isNaN:function(c){return typeof c=="number"&&isNaN(c)},includes:function(c,d){return c.indexOf(d)!==-1},insert:function(c,d,h){return c.slice(0,h)+d+c.slice(h)},reduce:function(c,d){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof d!="function")throw new TypeError(d+" is not a function");var h=Object(c),p=h.length>>>0,m=0,v;if(arguments.length===3)v=arguments[2];else{for(;m<p&&!(m in h);)m++;if(m>=p)throw new TypeError("Reduce of empty array with no initial value");v=h[m++]}for(;m<p;m++)m in h&&(v=d(v,h[m],m,h));return v},multiplier:function(c){var d=c.toString().split(".");return d.length<2?1:Math.pow(10,d[1].length)},correctionFactor:function(){var c=Array.prototype.slice.call(arguments);return c.reduce(function(d,h){var p=r.multiplier(h);return d>p?d:p},1)},toFixed:function(c,d,h,p){var m=c.toString().split("."),v=d-(p||0),g,b,C,x;return m.length===2?g=Math.min(Math.max(m[1].length,v),d):g=v,C=Math.pow(10,g),x=(h(c+"e+"+g)/C).toFixed(g),p>d-g&&(b=new RegExp("\\.?0{1,"+(p-(d-g))+"}$"),x=x.replace(b,"")),x}},t.options=s,t.formats=i,t.locales=a,t.locale=function(c){return c&&(s.currentLocale=c.toLowerCase()),s.currentLocale},t.localeData=function(c){if(!c)return a[s.currentLocale];if(c=c.toLowerCase(),!a[c])throw new Error("Unknown locale : "+c);return a[c]},t.reset=function(){for(var c in o)s[c]=o[c]},t.zeroFormat=function(c){s.zeroFormat=typeof c=="string"?c:null},t.nullFormat=function(c){s.nullFormat=typeof c=="string"?c:null},t.defaultFormat=function(c){s.defaultFormat=typeof c=="string"?c:"0.0"},t.register=function(c,d,h){if(d=d.toLowerCase(),this[c+"s"][d])throw new TypeError(d+" "+c+" already registered.");return this[c+"s"][d]=h,h},t.validate=function(c,d){var h,p,m,v,g,b,C,x;if(typeof c!="string"&&(c+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",c)),c=c.trim(),c.match(/^\d+$/))return!0;if(c==="")return!1;try{C=t.localeData(d)}catch(E){C=t.localeData(t.locale())}return m=C.currency.symbol,g=C.abbreviations,h=C.delimiters.decimal,C.delimiters.thousands==="."?p="\\.":p=C.delimiters.thousands,x=c.match(/^[^\d]+/),x!==null&&(c=c.substr(1),x[0]!==m)||(x=c.match(/[^\d]+$/),x!==null&&(c=c.slice(0,-1),x[0]!==g.thousand&&x[0]!==g.million&&x[0]!==g.billion&&x[0]!==g.trillion))?!1:(b=new RegExp(p+"{2}"),c.match(/[^\d.,]/g)?!1:(v=c.split(h),v.length>2?!1:v.length<2?!!v[0].match(/^\d+.*\d$/)&&!v[0].match(b):v[0].length===1?!!v[0].match(/^\d+$/)&&!v[0].match(b)&&!!v[1].match(/^\d+$/):!!v[0].match(/^\d+.*\d$/)&&!v[0].match(b)&&!!v[1].match(/^\d+$/)))},t.fn=u.prototype={clone:function(){return t(this)},format:function(c,d){var h=this._value,p=c||s.defaultFormat,m,v,g;if(d=d||Math.round,h===0&&s.zeroFormat!==null)v=s.zeroFormat;else if(h===null&&s.nullFormat!==null)v=s.nullFormat;else{for(m in i)if(p.match(i[m].regexps.format)){g=i[m].format;break}g=g||t._.numberToFormat,v=g(h,p,d)}return v},value:function(){return this._value},input:function(){return this._input},set:function(c){return this._value=Number(c),this},add:function(c){var d=r.correctionFactor.call(null,this._value,c);function h(p,m,v,g){return p+Math.round(d*m)}return this._value=r.reduce([this._value,c],h,0)/d,this},subtract:function(c){var d=r.correctionFactor.call(null,this._value,c);function h(p,m,v,g){return p-Math.round(d*m)}return this._value=r.reduce([c],h,Math.round(this._value*d))/d,this},multiply:function(c){function d(h,p,m,v){var g=r.correctionFactor(h,p);return Math.round(h*g)*Math.round(p*g)/Math.round(g*g)}return this._value=r.reduce([this._value,c],d,1),this},divide:function(c){function d(h,p,m,v){var g=r.correctionFactor(h,p);return Math.round(h*g)/Math.round(p*g)}return this._value=r.reduce([this._value,c],d),this},difference:function(c){return Math.abs(t(this._value).subtract(c).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(c){var d=c%10;return~~(c%100/10)===1?"th":d===1?"st":d===2?"nd":d===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(c,d,h){var p=t._.includes(d," BPS")?" ":"",m;return c=c*1e4,d=d.replace(/\s?BPS/,""),m=t._.numberToFormat(c,d,h),t._.includes(m,")")?(m=m.split(""),m.splice(-1,0,p+"BPS"),m=m.join("")):m=m+p+"BPS",m},unformat:function(c){return+(t._.stringToNumber(c)*1e-4).toFixed(15)}})}(),function(){var c={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},d={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},h=c.suffixes.concat(d.suffixes.filter(function(m){return c.suffixes.indexOf(m)<0})),p=h.join("|");p="("+p.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(p)},format:function(m,v,g){var b,C=t._.includes(v,"ib")?d:c,x=t._.includes(v," b")||t._.includes(v," ib")?" ":"",E,T,A;for(v=v.replace(/\s?i?b/,""),E=0;E<=C.suffixes.length;E++)if(T=Math.pow(C.base,E),A=Math.pow(C.base,E+1),m===null||m===0||m>=T&&m<A){x+=C.suffixes[E],T>0&&(m=m/T);break}return b=t._.numberToFormat(m,v,g),b+x},unformat:function(m){var v=t._.stringToNumber(m),g,b;if(v){for(g=c.suffixes.length-1;g>=0;g--){if(t._.includes(m,c.suffixes[g])){b=Math.pow(c.base,g);break}if(t._.includes(m,d.suffixes[g])){b=Math.pow(d.base,g);break}}v*=b||1}return v}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(c,d,h){var p=t.locales[t.options.currentLocale],m={before:d.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:d.match(/([\+|\-|\)|\s|\$]*)$/)[0]},v,g,b;for(d=d.replace(/\s?\$\s?/,""),v=t._.numberToFormat(c,d,h),c>=0?(m.before=m.before.replace(/[\-\(]/,""),m.after=m.after.replace(/[\-\)]/,"")):c<0&&!t._.includes(m.before,"-")&&!t._.includes(m.before,"(")&&(m.before="-"+m.before),b=0;b<m.before.length;b++)switch(g=m.before[b],g){case"$":v=t._.insert(v,p.currency.symbol,b);break;case" ":v=t._.insert(v," ",b+p.currency.symbol.length-1);break}for(b=m.after.length-1;b>=0;b--)switch(g=m.after[b],g){case"$":v=b===m.after.length-1?v+p.currency.symbol:t._.insert(v,p.currency.symbol,-(m.after.length-(1+b)));break;case" ":v=b===m.after.length-1?v+" ":t._.insert(v," ",-(m.after.length-(1+b)+p.currency.symbol.length-1));break}return v}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(c,d,h){var p,m=typeof c=="number"&&!t._.isNaN(c)?c.toExponential():"0e+0",v=m.split("e");return d=d.replace(/e[\+|\-]{1}0/,""),p=t._.numberToFormat(Number(v[0]),d,h),p+"e"+v[1]},unformat:function(c){var d=t._.includes(c,"e+")?c.split("e+"):c.split("e-"),h=Number(d[0]),p=Number(d[1]);p=t._.includes(c,"e-")?p*=-1:p;function m(v,g,b,C){var x=t._.correctionFactor(v,g),E=v*x*(g*x)/(x*x);return E}return t._.reduce([h,Math.pow(10,p)],m,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(c,d,h){var p=t.locales[t.options.currentLocale],m,v=t._.includes(d," o")?" ":"";return d=d.replace(/\s?o/,""),v+=p.ordinal(c),m=t._.numberToFormat(c,d,h),m+v}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(c,d,h){var p=t._.includes(d," %")?" ":"",m;return t.options.scalePercentBy100&&(c=c*100),d=d.replace(/\s?\%/,""),m=t._.numberToFormat(c,d,h),t._.includes(m,")")?(m=m.split(""),m.splice(-1,0,p+"%"),m=m.join("")):m=m+p+"%",m},unformat:function(c){var d=t._.stringToNumber(c);return t.options.scalePercentBy100?d*.01:d}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(c,d,h){var p=Math.floor(c/60/60),m=Math.floor((c-p*60*60)/60),v=Math.round(c-p*60*60-m*60);return p+":"+(m<10?"0"+m:m)+":"+(v<10?"0"+v:v)},unformat:function(c){var d=c.split(":"),h=0;return d.length===3?(h=h+Number(d[0])*60*60,h=h+Number(d[1])*60,h=h+Number(d[2])):d.length===2&&(h=h+Number(d[0])*60,h=h+Number(d[1])),Number(h)}})}(),t})})(JE);var T7=JE.exports;const S7=w.getDefaultExportFromCjs(T7),E7=(e,t)=>{const r=P7(e);return M7(r,t)};function M7(e,t){return{columns:t==null?void 0:t.map(r=>({name:r.name,type:N.simpleColumnType(r.type)})),rows:A7(e)}}function A7(e){var t;let r=!1;const n=(t=e[0])===null||t===void 0?void 0:t.map((i,a)=>{const o=e.some(s=>"selected"in s[a]);return o&&(r=!0),o});return e.map(i=>{const a=r?n.some((o,s)=>o&&!i[s].selected):void 0;return i.map(o=>a!==void 0?{data:o.data,text:o.text,blur:a}:{data:o.data,text:o.text})})}function P7({values:e=[],metadata:t=[]}){var r,n,i,a;e[0]&&!Array.isArray(e[0])&&(e=[e]);for(let o=0;o<e.length;o++){const s=e[o];for(let u=0;u<s.length;u++)t[u].format&&(!((n=(r=t[u])===null||r===void 0?void 0:r.format)===null||n===void 0)&&n.number)&&(s[u].text=S7(s[u].data).format((a=(i=t[u])===null||i===void 0?void 0:i.format)===null||a===void 0?void 0:a.number))}return e}var va=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(d){try{c(n.next(d))}catch(h){o(h)}}function u(d){try{c(n.throw(d))}catch(h){o(h)}}function c(d){d.done?a(d.value):i(d.value).then(s,u)}c((n=n.apply(e,t||[])).next())})};class R7 extends Gr.AbstractTaskManager{constructor(t,r){super(),this.sentRequestsAbortersMap=new Map,this.executeQuerySending=super.createFlow([new Gr.Step("PREPARE_JAQL_PAYLOAD",this.prepareJaqlPayload.bind(this),()=>va(this,void 0,void 0,function*(){})),new Gr.Step("SEND_JAQL_QUERY",this.sendJaqlQuery.bind(this),this.cancelDataRetrievalQuery.bind(this))]),this.executeDownloadCsvSending=super.createFlow([new Gr.Step("PREPARE_JAQL_PAYLOAD",this.prepareJaqlPayload.bind(this),()=>va(this,void 0,void 0,function*(){})),new Gr.Step("SEND_DOWNLOAD_CSV_QUERY",this.sendCsvQuery.bind(this),this.cancelDataRetrievalQuery.bind(this))]),this.executePivotQuerySending=super.createFlow([new Gr.Step("PREPARE_JAQL_PAYLOAD",this.preparePivotJaqlPayload.bind(this),()=>va(this,void 0,void 0,function*(){})),new Gr.Step("SEND_JAQL_QUERY",this.sendPivotJaqlQuery.bind(this),this.cancelPivotJaqlQuery.bind(this))]),this.queryApi=t,this.pivotQueryClient=r}prepareJaqlPayload(t){return va(this,void 0,void 0,function*(){const{queryDescription:r,executionConfig:n}=t.passport,i=N.getJaqlQueryPayload(r,n.shouldSkipHighlightsWithoutAttributes),a=t.passport.executionConfig.onBeforeQuery;return a?a(i):i})}sendJaqlQuery(t,r){return va(this,void 0,void 0,function*(){const{queryDescription:n,taskId:i}=t.passport,{responsePromise:a,abortHttpRequest:o}=this.queryApi.sendJaqlRequest(t.passport.queryDescription.dataSource,r);this.sentRequestsAbortersMap.set(i,o);const s=yield a.finally(()=>{this.sentRequestsAbortersMap.delete(i)});O7(s);const u=[...n.attributes,...n.measures],c=(s.headers||[]).slice(u.length).map(d=>({name:d,type:"number"}));return E7(s,[...u,...c])})}sendCsvQuery(t,r){return va(this,void 0,void 0,function*(){const{taskId:n}=t.passport,{responsePromise:i,abortHttpRequest:a}=this.queryApi.sendDownloadCsvRequest(t.passport.queryDescription.dataSource,r);return this.sentRequestsAbortersMap.set(n,a),i.finally(()=>{this.sentRequestsAbortersMap.delete(n)})})}cancelDataRetrievalQuery(t){const r=t.passport.taskId,n=this.sentRequestsAbortersMap.get(r);return n&&(n(),this.sentRequestsAbortersMap.delete(r)),this.queryApi.sendCancelJaqlQueryRequest(r,t.passport.queryDescription.dataSource)}preparePivotJaqlPayload(t){return va(this,void 0,void 0,function*(){const{pivotQueryDescription:r,executionConfig:n}=t.passport,i=N.getPivotJaqlQueryPayload(r,n.shouldSkipHighlightsWithoutAttributes),a=t.passport.executionConfig.onBeforeQuery;return a?a(i):i})}sendPivotJaqlQuery(t,r){var n;const{pivotQueryDescription:i}=t.passport;return this.pivotQueryClient.queryData(r,!0,(n=i.count)!==null&&n!==void 0?n:D7,!1)}cancelPivotJaqlQuery(t){const r=t.passport.taskId,n=this.sentRequestsAbortersMap.get(r);return n&&(n(),this.sentRequestsAbortersMap.delete(r)),this.queryApi.sendCancelJaqlQueryRequest(r,t.passport.pivotQueryDescription.dataSource)}}function O7(e){var t;if(!e)throw new xr("errors.noJaqlResponse");if(e.error)throw new Error(`${e.details} ${(t=e.database)!==null&&t!==void 0?t:""} ${e.extraDetails?JSON.stringify(e.extraDetails):""}`)}class Nw extends Gr.TaskPassport{constructor(t,r,n){super(),this.queryDescription=r,this.type=t,this.executionConfig=n}}class k7 extends Gr.TaskPassport{constructor(t,r,n){super(),this.pivotQueryDescription=r,this.type=t,this.executionConfig=n}}var Iw=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(d){try{c(n.next(d))}catch(h){o(h)}}function u(d){try{c(n.throw(d))}catch(h){o(h)}}function c(d){d.done?a(d.value):i(d.value).then(s,u)}c((n=n.apply(e,t||[])).next())})};const D7=2e4,am="Unspecified reason";class N7{constructor(t,r=new GE(t.url,t.auth),n){I7(t),this.queryApi=new _7(t),this.taskManager=new R7(this.queryApi,r),this.shouldSkipHighlightsWithoutAttributes=n!=null?n:!1}executeQuery(t,r){const n=new Nw("SEND_JAQL_QUERY",t,Object.assign(Object.assign({},r||{}),{shouldSkipHighlightsWithoutAttributes:this.shouldSkipHighlightsWithoutAttributes||!1}));return{resultPromise:new Promise((i,a)=>{Lw(t),this.taskManager.executeQuerySending(n).then(o=>{o.status===Gr.ExecutionResultStatus.SUCCESS?i(o.result):a(o.error)})}),cancel:i=>this.taskManager.cancel(n.taskId,i||am)}}executeCsvQuery(t,r){const n=new Nw("SEND_DOWNLOAD_CSV_QUERY",t,Object.assign(Object.assign({},r||{}),{shouldSkipHighlightsWithoutAttributes:this.shouldSkipHighlightsWithoutAttributes||!1}));return{resultPromise:new Promise((i,a)=>{Lw(t),this.taskManager.executeDownloadCsvSending(n).then(o=>{o.status===Gr.ExecutionResultStatus.SUCCESS?i(o.result):a(o.error)})}),cancel:i=>this.taskManager.cancel(n.taskId,i||am)}}executePivotQuery(t,r){const n=new k7("SEND_JAQL_QUERY",t,Object.assign(Object.assign({},r||{}),{shouldSkipHighlightsWithoutAttributes:this.shouldSkipHighlightsWithoutAttributes||!1}));return{resultPromise:new Promise((i,a)=>{eM(t),this.taskManager.executePivotQuerySending(n).then(o=>{o.status===Gr.ExecutionResultStatus.SUCCESS?i(o.result):a(o.error)})}),cancel:i=>this.taskManager.cancel(n.taskId,i||am)}}getDataSourceFields(t,r=9999,n=0){return Iw(this,void 0,void 0,function*(){return(yield this.queryApi.getDataSourceFields(t,r,n))||[]})}getDataSourceSchema(t){return this.queryApi.getDataSourceSchema(t)}getDataSourceList(){return Iw(this,void 0,void 0,function*(){return(yield this.queryApi.getDataSourceList())||[]})}}function Lw(e){const{attributes:t,measures:r,filters:n,highlights:i,count:a,offset:o}=e;if(a&&a<0)throw new xr("errors.invalidCountNegative",{count:a.toString()});if(o&&o<0)throw new xr("errors.invalidOffset",{offset:o.toString()});if(t.length+r.length===0)throw new xr("errors.noDimensionsOrMeasures");t.forEach(s=>{if(!s.skipValidation&&!N.MetadataTypes.isAttribute(s)){const{name:u}=s;throw new xr("errors.invalidAttribute",{attributeName:u})}}),r.forEach(s=>{if(!s.skipValidation&&!N.MetadataTypes.isMeasure(s))throw new xr("errors.invalidMeasure",{measureName:s.name})}),n.forEach(s=>{if(!s.skipValidation&&!N.MetadataTypes.isFilter(s))throw new xr("errors.invalidFilter",{filterName:s.name})}),i.forEach(s=>{if(!s.skipValidation&&!N.MetadataTypes.isFilter(s))throw new xr("errors.invalidHighlight",{highlightName:s.name})})}function eM(e){const{rowsAttributes:t,columnsAttributes:r,measures:n,filters:i,highlights:a,count:o,offset:s}=e;if(o&&o<0)throw new xr("errors.invalidCountNegative",{count:o.toString()});if(s&&s<0)throw new xr("errors.invalidOffset",{offset:s.toString()});if(t.length+r.length+n.length===0)throw new xr("errors.noDimensionsOrMeasures");i.forEach(u=>{if(!u.skipValidation&&!N.MetadataTypes.isFilter(u))throw new xr("errors.invalidFilter",{filterName:u.name})}),a.forEach(u=>{if(!u.skipValidation&&!N.MetadataTypes.isFilter(u))throw new xr("errors.invalidHighlight",{highlightName:u.name})})}function I7(e){if(!e)throw new xr("errors.missingHttpClient");if(!e.post)throw new xr("errors.missingPostMethod")}function On(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)?N.executeQueryWithCache:N.executeQuery)(r,t,n)}const L7=(e,t)=>{const r=w.getPaletteColor(t,0),n=w.toGray(r),i=w.scaleBrightness(r,-.2),a=e.minColor===w.DEFAULT_COLOR||e.minColor===n,o=e.maxColor===w.DEFAULT_COLOR||e.maxColor===i;return a&&o?"auto":a?"max":o?"min":"both"},F7=(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=M(M(M(M({},r),o&&{minValue:o}),s&&{midValue:s}),u&&{maxValue:u})}const n=w.getPaletteColor(t,0),i=w.scaleBrightness(n,.2),a=w.scaleBrightness(n,-.2);switch(e.rangeMode){case"auto":return B(M({},r),{minColor:w.toGray(n),maxColor:a});case"both":return B(M({},r),{minColor:e.min||i,maxColor:e.max||a});case"min":return B(M({},r),{minColor:e.min||i,maxColor:w.DEFAULT_COLOR});case"max":return B(M({},r),{minColor:w.DEFAULT_COLOR,maxColor:e.max||a})}},tM=(e,t)=>{if(e!==void 0)switch(e.type){case"color":return M({type:"uniform",color:e.color||w.getPaletteColor(t,e.colorIndex||0)},e.colorIndex!==void 0&&{colorIndex:e.colorIndex});case"range":return F7(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:w.getPaletteColor(t,0)};default:return w.getUniformColorOptionsFromString(w.getPaletteColor(t,0))}},rM=e=>Object.entries(e).reduce((t,[r,{color:n}])=>(t[r]=n,t),{}),$7=(e,t)=>{if(e===void 0)return;const r=w.getPaletteColor(t,0);if(typeof e=="string")return{type:"color",color:e};switch(e.type){case"uniform":return B(M({type:"color",color:e.color},e.colorIndex!==void 0&&{colorIndex:e.colorIndex}),{isHandPickedColor:e.colorIndex===void 0});case"range":{const n=w.getPaletteColor(t,0),i=w.toGray(n),a=w.scaleBrightness(n,-.2),o=L7(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}}},B7=e=>e.reduce((t,r)=>{var n,i;return(n=r.format)!=null&&n.members&&(t[N.normalizeName(r.jaql.title)]=rM((i=r.format)==null?void 0:i.members)),t},{}),H7=w.createDataColoringFunction({getValueFromDataStructure:e=>e.originalValue,applyColorToDataStructure:(e,t)=>B(M({},e),{color:t})}),z7=tM({type:"range",steps:5,rangeMode:"auto"}),j7=(e,t)=>{var o,s;const r=w.getColumnByName(t,e.geo.column.name),n=w.getColumnByName(t,(s=(o=e.color)==null?void 0:o.column.name)!=null?s:e.geo.column.name);if(!r||!n)throw new N.TranslatableError("errors.requiredColumnMissing",{hint:"geo or color column is missing for Areamap"});const i=t.rows.map(u=>{var p;const c=w.getValue(u,n),d=w.getCompleteNumberFormatConfig((p=e.color)==null?void 0:p.numberFormatConfig),h=w.applyFormatPlainText(d,c);return{geoName:w.getValue(u,r),originalValue:c,formattedOriginalValue:h}});let a;return e.color&&(a=H7(i,e.color.color||z7)),{type:"areamap",geoData:a||i}},W7={loadData:On,getChartData:j7},Ay=50,U7=1e3,V7=500,jd=1e5,Hr={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:w.DefaultPieType,funnelType:w.DefaultFunnelType,funnelSize:w.DefaultFunnelSize,funnelDirection:w.DefaultFunnelDirection,indicatorType:"numeric",numericSubtype:"numericSimple",skin:"vertical",indicatorComponents:{title:{shouldBeShown:!1,text:""},secondaryTitle:{text:""},ticks:{shouldBeShown:!0},labels:{shouldBeShown:!0}},dataLimits:{seriesCapacity:Ay,categoriesCapacity:jd}},G7={translateStyleOptionsToDesignOptions:function(e){return B(M({},Hr),{mapType:e.mapType||"world"})},isCorrectStyleOptions:function(e){return typeof e=="object"&&e!==null}};var x0={exports:{}};/* @preserve
212
+ * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
213
+ * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
214
+ */(function(e,t){(function(r,n){n(t)})(w.commonjsGlobal,function(r){var n="1.9.4";function i(l){var f,y,S,P;for(y=1,S=arguments.length;y<S;y++){P=arguments[y];for(f in P)l[f]=P[f]}return l}var a=Object.create||function(){function l(){}return function(f){return l.prototype=f,new l}}();function o(l,f){var y=Array.prototype.slice;if(l.bind)return l.bind.apply(l,y.call(arguments,1));var S=y.call(arguments,2);return function(){return l.apply(f,S.length?S.concat(y.call(arguments)):arguments)}}var s=0;function u(l){return"_leaflet_id"in l||(l._leaflet_id=++s),l._leaflet_id}function c(l,f,y){var S,P,F,Z;return Z=function(){S=!1,P&&(F.apply(y,P),P=!1)},F=function(){S?P=arguments:(l.apply(y,arguments),setTimeout(Z,f),S=!0)},F}function d(l,f,y){var S=f[1],P=f[0],F=S-P;return l===S&&y?l:((l-P)%F+F)%F+P}function h(){return!1}function p(l,f){if(f===!1)return l;var y=Math.pow(10,f===void 0?6:f);return Math.round(l*y)/y}function m(l){return l.trim?l.trim():l.replace(/^\s+|\s+$/g,"")}function v(l){return m(l).split(/\s+/)}function g(l,f){Object.prototype.hasOwnProperty.call(l,"options")||(l.options=l.options?a(l.options):{});for(var y in f)l.options[y]=f[y];return l.options}function b(l,f,y){var S=[];for(var P in l)S.push(encodeURIComponent(y?P.toUpperCase():P)+"="+encodeURIComponent(l[P]));return(!f||f.indexOf("?")===-1?"?":"&")+S.join("&")}var C=/\{ *([\w_ -]+) *\}/g;function x(l,f){return l.replace(C,function(y,S){var P=f[S];if(P===void 0)throw new Error("No value provided for variable "+y);return typeof P=="function"&&(P=P(f)),P})}var E=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"};function T(l,f){for(var y=0;y<l.length;y++)if(l[y]===f)return y;return-1}var A="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function R(l){return window["webkit"+l]||window["moz"+l]||window["ms"+l]}var D=0;function I(l){var f=+new Date,y=Math.max(0,16-(f-D));return D=f+y,window.setTimeout(l,y)}var H=window.requestAnimationFrame||R("RequestAnimationFrame")||I,G=window.cancelAnimationFrame||R("CancelAnimationFrame")||R("CancelRequestAnimationFrame")||function(l){window.clearTimeout(l)};function q(l,f,y){if(y&&H===I)l.call(f);else return H.call(window,o(l,f))}function O(l){l&&G.call(window,l)}var $={__proto__:null,extend:i,create:a,bind:o,get lastId(){return s},stamp:u,throttle:c,wrapNum:d,falseFn:h,formatNum:p,trim:m,splitWords:v,setOptions:g,getParamString:b,template:x,isArray:E,indexOf:T,emptyImageUrl:A,requestFn:H,cancelFn:G,requestAnimFrame:q,cancelAnimFrame:O};function X(){}X.extend=function(l){var f=function(){g(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},y=f.__super__=this.prototype,S=a(y);S.constructor=f,f.prototype=S;for(var P in this)Object.prototype.hasOwnProperty.call(this,P)&&P!=="prototype"&&P!=="__super__"&&(f[P]=this[P]);return l.statics&&i(f,l.statics),l.includes&&(j(l.includes),i.apply(null,[S].concat(l.includes))),i(S,l),delete S.statics,delete S.includes,S.options&&(S.options=y.options?a(y.options):{},i(S.options,l.options)),S._initHooks=[],S.callInitHooks=function(){if(!this._initHooksCalled){y.callInitHooks&&y.callInitHooks.call(this),this._initHooksCalled=!0;for(var F=0,Z=S._initHooks.length;F<Z;F++)S._initHooks[F].call(this)}},f},X.include=function(l){var f=this.prototype.options;return i(this.prototype,l),l.options&&(this.prototype.options=f,this.mergeOptions(l.options)),this},X.mergeOptions=function(l){return i(this.prototype.options,l),this},X.addInitHook=function(l){var f=Array.prototype.slice.call(arguments,1),y=typeof l=="function"?l:function(){this[l].apply(this,f)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(y),this};function j(l){if(!(typeof L=="undefined"||!L||!L.Mixin)){l=E(l)?l:[l];for(var f=0;f<l.length;f++)l[f]===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,f,y){if(typeof l=="object")for(var S in l)this._on(S,l[S],f);else{l=v(l);for(var P=0,F=l.length;P<F;P++)this._on(l[P],f,y)}return this},off:function(l,f,y){if(!arguments.length)delete this._events;else if(typeof l=="object")for(var S in l)this._off(S,l[S],f);else{l=v(l);for(var P=arguments.length===1,F=0,Z=l.length;F<Z;F++)P?this._off(l[F]):this._off(l[F],f,y)}return this},_on:function(l,f,y,S){if(typeof f!="function"){console.warn("wrong listener type: "+typeof f);return}if(this._listens(l,f,y)===!1){y===this&&(y=void 0);var P={fn:f,ctx:y};S&&(P.once=!0),this._events=this._events||{},this._events[l]=this._events[l]||[],this._events[l].push(P)}},_off:function(l,f,y){var S,P,F;if(this._events&&(S=this._events[l],!!S)){if(arguments.length===1){if(this._firingCount)for(P=0,F=S.length;P<F;P++)S[P].fn=h;delete this._events[l];return}if(typeof f!="function"){console.warn("wrong listener type: "+typeof f);return}var Z=this._listens(l,f,y);if(Z!==!1){var ee=S[Z];this._firingCount&&(ee.fn=h,this._events[l]=S=S.slice()),S.splice(Z,1)}}},fire:function(l,f,y){if(!this.listens(l,y))return this;var S=i({},f,{type:l,target:this,sourceTarget:f&&f.sourceTarget||this});if(this._events){var P=this._events[l];if(P){this._firingCount=this._firingCount+1||1;for(var F=0,Z=P.length;F<Z;F++){var ee=P[F],ae=ee.fn;ee.once&&this.off(l,ae,ee.ctx),ae.call(ee.ctx||this,S)}this._firingCount--}}return y&&this._propagateEvent(S),this},listens:function(l,f,y,S){typeof l!="string"&&console.warn('"string" type argument expected');var P=f;typeof f!="function"&&(S=!!f,P=void 0,y=void 0);var F=this._events&&this._events[l];if(F&&F.length&&this._listens(l,P,y)!==!1)return!0;if(S){for(var Z in this._eventParents)if(this._eventParents[Z].listens(l,f,y,S))return!0}return!1},_listens:function(l,f,y){if(!this._events)return!1;var S=this._events[l]||[];if(!f)return!!S.length;y===this&&(y=void 0);for(var P=0,F=S.length;P<F;P++)if(S[P].fn===f&&S[P].ctx===y)return P;return!1},once:function(l,f,y){if(typeof l=="object")for(var S in l)this._on(S,l[S],f,!0);else{l=v(l);for(var P=0,F=l.length;P<F;P++)this._on(l[P],f,y,!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 f in this._eventParents)this._eventParents[f].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 z=X.extend(V);function Y(l,f,y){this.x=y?Math.round(l):l,this.y=y?Math.round(f):f}var re=Math.trunc||function(l){return l>0?Math.floor(l):Math.ceil(l)};Y.prototype={clone:function(){return new Y(this.x,this.y)},add:function(l){return this.clone()._add(W(l))},_add:function(l){return this.x+=l.x,this.y+=l.y,this},subtract:function(l){return this.clone()._subtract(W(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 Y(this.x*l.x,this.y*l.y)},unscaleBy:function(l){return new Y(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=re(this.x),this.y=re(this.y),this},distanceTo:function(l){l=W(l);var f=l.x-this.x,y=l.y-this.y;return Math.sqrt(f*f+y*y)},equals:function(l){return l=W(l),l.x===this.x&&l.y===this.y},contains:function(l){return l=W(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 W(l,f,y){return l instanceof Y?l:E(l)?new Y(l[0],l[1]):l==null?l:typeof l=="object"&&"x"in l&&"y"in l?new Y(l.x,l.y):new Y(l,f,y)}function K(l,f){if(l)for(var y=f?[l,f]:l,S=0,P=y.length;S<P;S++)this.extend(y[S])}K.prototype={extend:function(l){var f,y;if(!l)return this;if(l instanceof Y||typeof l[0]=="number"||"x"in l)f=y=W(l);else if(l=ie(l),f=l.min,y=l.max,!f||!y)return this;return!this.min&&!this.max?(this.min=f.clone(),this.max=y.clone()):(this.min.x=Math.min(f.x,this.min.x),this.max.x=Math.max(y.x,this.max.x),this.min.y=Math.min(f.y,this.min.y),this.max.y=Math.max(y.y,this.max.y)),this},getCenter:function(l){return W((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,l)},getBottomLeft:function(){return W(this.min.x,this.max.y)},getTopRight:function(){return W(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 f,y;return typeof l[0]=="number"||l instanceof Y?l=W(l):l=ie(l),l instanceof K?(f=l.min,y=l.max):f=y=l,f.x>=this.min.x&&y.x<=this.max.x&&f.y>=this.min.y&&y.y<=this.max.y},intersects:function(l){l=ie(l);var f=this.min,y=this.max,S=l.min,P=l.max,F=P.x>=f.x&&S.x<=y.x,Z=P.y>=f.y&&S.y<=y.y;return F&&Z},overlaps:function(l){l=ie(l);var f=this.min,y=this.max,S=l.min,P=l.max,F=P.x>f.x&&S.x<y.x,Z=P.y>f.y&&S.y<y.y;return F&&Z},isValid:function(){return!!(this.min&&this.max)},pad:function(l){var f=this.min,y=this.max,S=Math.abs(f.x-y.x)*l,P=Math.abs(f.y-y.y)*l;return ie(W(f.x-S,f.y-P),W(y.x+S,y.y+P))},equals:function(l){return l?(l=ie(l),this.min.equals(l.getTopLeft())&&this.max.equals(l.getBottomRight())):!1}};function ie(l,f){return!l||l instanceof K?l:new K(l,f)}function ne(l,f){if(l)for(var y=f?[l,f]:l,S=0,P=y.length;S<P;S++)this.extend(y[S])}ne.prototype={extend:function(l){var f=this._southWest,y=this._northEast,S,P;if(l instanceof oe)S=l,P=l;else if(l instanceof ne){if(S=l._southWest,P=l._northEast,!S||!P)return this}else return l?this.extend(se(l)||te(l)):this;return!f&&!y?(this._southWest=new oe(S.lat,S.lng),this._northEast=new oe(P.lat,P.lng)):(f.lat=Math.min(S.lat,f.lat),f.lng=Math.min(S.lng,f.lng),y.lat=Math.max(P.lat,y.lat),y.lng=Math.max(P.lng,y.lng)),this},pad:function(l){var f=this._southWest,y=this._northEast,S=Math.abs(f.lat-y.lat)*l,P=Math.abs(f.lng-y.lng)*l;return new ne(new oe(f.lat-S,f.lng-P),new oe(y.lat+S,y.lng+P))},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=te(l);var f=this._southWest,y=this._northEast,S,P;return l instanceof ne?(S=l.getSouthWest(),P=l.getNorthEast()):S=P=l,S.lat>=f.lat&&P.lat<=y.lat&&S.lng>=f.lng&&P.lng<=y.lng},intersects:function(l){l=te(l);var f=this._southWest,y=this._northEast,S=l.getSouthWest(),P=l.getNorthEast(),F=P.lat>=f.lat&&S.lat<=y.lat,Z=P.lng>=f.lng&&S.lng<=y.lng;return F&&Z},overlaps:function(l){l=te(l);var f=this._southWest,y=this._northEast,S=l.getSouthWest(),P=l.getNorthEast(),F=P.lat>f.lat&&S.lat<y.lat,Z=P.lng>f.lng&&S.lng<y.lng;return F&&Z},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(l,f){return l?(l=te(l),this._southWest.equals(l.getSouthWest(),f)&&this._northEast.equals(l.getNorthEast(),f)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function te(l,f){return l instanceof ne?l:new ne(l,f)}function oe(l,f,y){if(isNaN(l)||isNaN(f))throw new Error("Invalid LatLng object: ("+l+", "+f+")");this.lat=+l,this.lng=+f,y!==void 0&&(this.alt=+y)}oe.prototype={equals:function(l,f){if(!l)return!1;l=se(l);var y=Math.max(Math.abs(this.lat-l.lat),Math.abs(this.lng-l.lng));return y<=(f===void 0?1e-9:f)},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 f=180*l/40075017,y=f/Math.cos(Math.PI/180*this.lat);return te([this.lat-f,this.lng-y],[this.lat+f,this.lng+y])},clone:function(){return new oe(this.lat,this.lng,this.alt)}};function se(l,f,y){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):f===void 0?null:new oe(l,f,y)}var de={latLngToPoint:function(l,f){var y=this.projection.project(l),S=this.scale(f);return this.transformation._transform(y,S)},pointToLatLng:function(l,f){var y=this.scale(f),S=this.transformation.untransform(l,y);return this.projection.unproject(S)},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 f=this.projection.bounds,y=this.scale(l),S=this.transformation.transform(f.min,y),P=this.transformation.transform(f.max,y);return new K(S,P)},infinite:!1,wrapLatLng:function(l){var f=this.wrapLng?d(l.lng,this.wrapLng,!0):l.lng,y=this.wrapLat?d(l.lat,this.wrapLat,!0):l.lat,S=l.alt;return new oe(y,f,S)},wrapLatLngBounds:function(l){var f=l.getCenter(),y=this.wrapLatLng(f),S=f.lat-y.lat,P=f.lng-y.lng;if(S===0&&P===0)return l;var F=l.getSouthWest(),Z=l.getNorthEast(),ee=new oe(F.lat-S,F.lng-P),ae=new oe(Z.lat-S,Z.lng-P);return new ne(ee,ae)}},ce=i({},de,{wrapLng:[-180,180],R:6371e3,distance:function(l,f){var y=Math.PI/180,S=l.lat*y,P=f.lat*y,F=Math.sin((f.lat-l.lat)*y/2),Z=Math.sin((f.lng-l.lng)*y/2),ee=F*F+Math.cos(S)*Math.cos(P)*Z*Z,ae=2*Math.atan2(Math.sqrt(ee),Math.sqrt(1-ee));return this.R*ae}}),ge=6378137,Se={R:ge,MAX_LATITUDE:85.0511287798,project:function(l){var f=Math.PI/180,y=this.MAX_LATITUDE,S=Math.max(Math.min(y,l.lat),-y),P=Math.sin(S*f);return new Y(this.R*l.lng*f,this.R*Math.log((1+P)/(1-P))/2)},unproject:function(l){var f=180/Math.PI;return new oe((2*Math.atan(Math.exp(l.y/this.R))-Math.PI/2)*f,l.x*f/this.R)},bounds:function(){var l=ge*Math.PI;return new K([-l,-l],[l,l])}()};function ye(l,f,y,S){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=f,this._c=y,this._d=S}ye.prototype={transform:function(l,f){return this._transform(l.clone(),f)},_transform:function(l,f){return f=f||1,l.x=f*(this._a*l.x+this._b),l.y=f*(this._c*l.y+this._d),l},untransform:function(l,f){return f=f||1,new Y((l.x/f-this._b)/this._a,(l.y/f-this._d)/this._c)}};function J(l,f,y,S){return new ye(l,f,y,S)}var _e=i({},ce,{code:"EPSG:3857",projection:Se,transformation:function(){var l=.5/(Math.PI*Se.R);return J(l,.5,-l,.5)}()}),ve=i({},_e,{code:"EPSG:900913"});function Ae(l){return document.createElementNS("http://www.w3.org/2000/svg",l)}function Ie(l,f){var y="",S,P,F,Z,ee,ae;for(S=0,F=l.length;S<F;S++){for(ee=l[S],P=0,Z=ee.length;P<Z;P++)ae=ee[P],y+=(P?"L":"M")+ae.x+" "+ae.y;y+=f?Pe.svg?"z":"x":""}return y||"M0 0"}var Ue=document.documentElement.style,Ve="ActiveXObject"in window,ir=Ve&&!document.addEventListener,At="msLaunchUri"in navigator&&!("documentMode"in document),Wt=In("webkit"),Nt=In("android"),Re=In("android 2")||In("android 3"),st=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Ni=Nt&&In("Google")&&st<537&&!("AudioNode"in window),on=!!window.opera,sn=!At&&In("chrome"),Dn=In("gecko")&&!Wt&&!on&&!Ve,Cn=!sn&&In("safari"),ci=In("phantom"),ar="OTransition"in Ue,Nn=navigator.platform.indexOf("Win")===0,Ze=Ve&&"transition"in Ue,Xt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Re,ca="MozPerspective"in Ue,Fs=!window.L_DISABLE_3D&&(Ze||Xt||ca)&&!ar&&!ci,di=typeof orientation!="undefined"||In("mobile"),Ja=di&&Wt,tp=di&&Xt,rc=!window.PointerEvent&&window.MSPointerEvent,nc=!!(window.PointerEvent||rc),ic="ontouchstart"in window||!!window.TouchEvent,rp=!window.L_NO_TOUCH&&(ic||nc),np=di&&on,ip=di&&Dn,ap=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,ac=function(){var l=!1;try{var f=Object.defineProperty({},"passive",{get:function(){l=!0}});window.addEventListener("testPassiveEventSupport",h,f),window.removeEventListener("testPassiveEventSupport",h,f)}catch(y){}return l}(),oc=function(){return!!document.createElement("canvas").getContext}(),eo=!!(document.createElementNS&&Ae("svg").createSVGRect),sc=!!eo&&function(){var l=document.createElement("div");return l.innerHTML="<svg/>",(l.firstChild&&l.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),$e=!eo&&function(){try{var l=document.createElement("div");l.innerHTML='<v:shape adj="1"/>';var f=l.firstChild;return f.style.behavior="url(#default#VML)",f&&typeof f.adj=="object"}catch(y){return!1}}(),Ur=navigator.platform.indexOf("Mac")===0,lc=navigator.platform.indexOf("Linux")===0;function In(l){return navigator.userAgent.toLowerCase().indexOf(l)>=0}var Pe={ie:Ve,ielt9:ir,edge:At,webkit:Wt,android:Nt,android23:Re,androidStock:Ni,opera:on,chrome:sn,gecko:Dn,safari:Cn,phantom:ci,opera12:ar,win:Nn,ie3d:Ze,webkit3d:Xt,gecko3d:ca,any3d:Fs,mobile:di,mobileWebkit:Ja,mobileWebkit3d:tp,msPointer:rc,pointer:nc,touch:rp,touchNative:ic,mobileOpera:np,mobileGecko:ip,retina:ap,passiveEvents:ac,canvas:oc,svg:eo,vml:$e,inlineSvg:sc,mac:Ur,linux:lc},s1=Pe.msPointer?"MSPointerDown":"pointerdown",l1=Pe.msPointer?"MSPointerMove":"pointermove",u1=Pe.msPointer?"MSPointerUp":"pointerup",c1=Pe.msPointer?"MSPointerCancel":"pointercancel",op={touchstart:s1,touchmove:l1,touchend:u1,touchcancel:c1},d1={touchstart:pk,touchmove:uc,touchend:uc,touchcancel:uc},to={},h1=!1;function uk(l,f,y){return f==="touchstart"&&fk(),d1[f]?(y=d1[f].bind(this,y),l.addEventListener(op[f],y,!1),y):(console.warn("wrong event specified:",f),h)}function ck(l,f,y){if(!op[f]){console.warn("wrong event specified:",f);return}l.removeEventListener(op[f],y,!1)}function dk(l){to[l.pointerId]=l}function hk(l){to[l.pointerId]&&(to[l.pointerId]=l)}function f1(l){delete to[l.pointerId]}function fk(){h1||(document.addEventListener(s1,dk,!0),document.addEventListener(l1,hk,!0),document.addEventListener(u1,f1,!0),document.addEventListener(c1,f1,!0),h1=!0)}function uc(l,f){if(f.pointerType!==(f.MSPOINTER_TYPE_MOUSE||"mouse")){f.touches=[];for(var y in to)f.touches.push(to[y]);f.changedTouches=[f],l(f)}}function pk(l,f){f.MSPOINTER_TYPE_TOUCH&&f.pointerType===f.MSPOINTER_TYPE_TOUCH&&dr(f),uc(l,f)}function mk(l){var f={},y,S;for(S in l)y=l[S],f[S]=y&&y.bind?y.bind(l):y;return l=f,f.type="dblclick",f.detail=2,f.isTrusted=!1,f._simulated=!0,f}var gk=200;function vk(l,f){l.addEventListener("dblclick",f);var y=0,S;function P(F){if(F.detail!==1){S=F.detail;return}if(!(F.pointerType==="mouse"||F.sourceCapabilities&&!F.sourceCapabilities.firesTouchEvents)){var Z=y1(F);if(!(Z.some(function(ae){return ae instanceof HTMLLabelElement&&ae.attributes.for})&&!Z.some(function(ae){return ae instanceof HTMLInputElement||ae instanceof HTMLSelectElement}))){var ee=Date.now();ee-y<=gk?(S++,S===2&&f(mk(F))):S=1,y=ee}}}return l.addEventListener("click",P),{dblclick:f,simDblclick:P}}function yk(l,f){l.removeEventListener("dblclick",f.dblclick),l.removeEventListener("click",f.simDblclick)}var sp=hc(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),$s=hc(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),p1=$s==="webkitTransition"||$s==="OTransition"?$s+"End":"transitionend";function m1(l){return typeof l=="string"?document.getElementById(l):l}function Bs(l,f){var y=l.style[f]||l.currentStyle&&l.currentStyle[f];if((!y||y==="auto")&&document.defaultView){var S=document.defaultView.getComputedStyle(l,null);y=S?S[f]:null}return y==="auto"?null:y}function et(l,f,y){var S=document.createElement(l);return S.className=f||"",y&&y.appendChild(S),S}function It(l){var f=l.parentNode;f&&f.removeChild(l)}function cc(l){for(;l.firstChild;)l.removeChild(l.firstChild)}function ro(l){var f=l.parentNode;f&&f.lastChild!==l&&f.appendChild(l)}function no(l){var f=l.parentNode;f&&f.firstChild!==l&&f.insertBefore(l,f.firstChild)}function lp(l,f){if(l.classList!==void 0)return l.classList.contains(f);var y=dc(l);return y.length>0&&new RegExp("(^|\\s)"+f+"(\\s|$)").test(y)}function Ge(l,f){if(l.classList!==void 0)for(var y=v(f),S=0,P=y.length;S<P;S++)l.classList.add(y[S]);else if(!lp(l,f)){var F=dc(l);up(l,(F?F+" ":"")+f)}}function Ut(l,f){l.classList!==void 0?l.classList.remove(f):up(l,m((" "+dc(l)+" ").replace(" "+f+" "," ")))}function up(l,f){l.className.baseVal===void 0?l.className=f:l.className.baseVal=f}function dc(l){return l.correspondingElement&&(l=l.correspondingElement),l.className.baseVal===void 0?l.className:l.className.baseVal}function ln(l,f){"opacity"in l.style?l.style.opacity=f:"filter"in l.style&&bk(l,f)}function bk(l,f){var y=!1,S="DXImageTransform.Microsoft.Alpha";try{y=l.filters.item(S)}catch(P){if(f===1)return}f=Math.round(f*100),y?(y.Enabled=f!==100,y.Opacity=f):l.style.filter+=" progid:"+S+"(opacity="+f+")"}function hc(l){for(var f=document.documentElement.style,y=0;y<l.length;y++)if(l[y]in f)return l[y];return!1}function da(l,f,y){var S=f||new Y(0,0);l.style[sp]=(Pe.ie3d?"translate("+S.x+"px,"+S.y+"px)":"translate3d("+S.x+"px,"+S.y+"px,0)")+(y?" scale("+y+")":"")}function Kt(l,f){l._leaflet_pos=f,Pe.any3d?da(l,f):(l.style.left=f.x+"px",l.style.top=f.y+"px")}function ha(l){return l._leaflet_pos||new Y(0,0)}var Hs,zs,cp;if("onselectstart"in document)Hs=function(){ze(window,"selectstart",dr)},zs=function(){wt(window,"selectstart",dr)};else{var js=hc(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Hs=function(){if(js){var l=document.documentElement.style;cp=l[js],l[js]="none"}},zs=function(){js&&(document.documentElement.style[js]=cp,cp=void 0)}}function dp(){ze(window,"dragstart",dr)}function hp(){wt(window,"dragstart",dr)}var fc,fp;function pp(l){for(;l.tabIndex===-1;)l=l.parentNode;l.style&&(pc(),fc=l,fp=l.style.outlineStyle,l.style.outlineStyle="none",ze(window,"keydown",pc))}function pc(){fc&&(fc.style.outlineStyle=fp,fc=void 0,fp=void 0,wt(window,"keydown",pc))}function g1(l){do l=l.parentNode;while((!l.offsetWidth||!l.offsetHeight)&&l!==document.body);return l}function mp(l){var f=l.getBoundingClientRect();return{x:f.width/l.offsetWidth||1,y:f.height/l.offsetHeight||1,boundingClientRect:f}}var _k={__proto__:null,TRANSFORM:sp,TRANSITION:$s,TRANSITION_END:p1,get:m1,getStyle:Bs,create:et,remove:It,empty:cc,toFront:ro,toBack:no,hasClass:lp,addClass:Ge,removeClass:Ut,setClass:up,getClass:dc,setOpacity:ln,testProp:hc,setTransform:da,setPosition:Kt,getPosition:ha,get disableTextSelection(){return Hs},get enableTextSelection(){return zs},disableImageDrag:dp,enableImageDrag:hp,preventOutline:pp,restoreOutline:pc,getSizedParentNode:g1,getScale:mp};function ze(l,f,y,S){if(f&&typeof f=="object")for(var P in f)vp(l,P,f[P],y);else{f=v(f);for(var F=0,Z=f.length;F<Z;F++)vp(l,f[F],y,S)}return this}var Ln="_leaflet_events";function wt(l,f,y,S){if(arguments.length===1)v1(l),delete l[Ln];else if(f&&typeof f=="object")for(var P in f)yp(l,P,f[P],y);else if(f=v(f),arguments.length===2)v1(l,function(ee){return T(f,ee)!==-1});else for(var F=0,Z=f.length;F<Z;F++)yp(l,f[F],y,S);return this}function v1(l,f){for(var y in l[Ln]){var S=y.split(/\d/)[0];(!f||f(S))&&yp(l,S,null,null,y)}}var gp={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function vp(l,f,y,S){var P=f+u(y)+(S?"_"+u(S):"");if(l[Ln]&&l[Ln][P])return this;var F=function(ee){return y.call(S||l,ee||window.event)},Z=F;!Pe.touchNative&&Pe.pointer&&f.indexOf("touch")===0?F=uk(l,f,F):Pe.touch&&f==="dblclick"?F=vk(l,F):"addEventListener"in l?f==="touchstart"||f==="touchmove"||f==="wheel"||f==="mousewheel"?l.addEventListener(gp[f]||f,F,Pe.passiveEvents?{passive:!1}:!1):f==="mouseenter"||f==="mouseleave"?(F=function(ee){ee=ee||window.event,_p(l,ee)&&Z(ee)},l.addEventListener(gp[f],F,!1)):l.addEventListener(f,Z,!1):l.attachEvent("on"+f,F),l[Ln]=l[Ln]||{},l[Ln][P]=F}function yp(l,f,y,S,P){P=P||f+u(y)+(S?"_"+u(S):"");var F=l[Ln]&&l[Ln][P];if(!F)return this;!Pe.touchNative&&Pe.pointer&&f.indexOf("touch")===0?ck(l,f,F):Pe.touch&&f==="dblclick"?yk(l,F):"removeEventListener"in l?l.removeEventListener(gp[f]||f,F,!1):l.detachEvent("on"+f,F),l[Ln][P]=null}function fa(l){return l.stopPropagation?l.stopPropagation():l.originalEvent?l.originalEvent._stopped=!0:l.cancelBubble=!0,this}function bp(l){return vp(l,"wheel",fa),this}function Ws(l){return ze(l,"mousedown touchstart dblclick contextmenu",fa),l._leaflet_disable_click=!0,this}function dr(l){return l.preventDefault?l.preventDefault():l.returnValue=!1,this}function pa(l){return dr(l),fa(l),this}function y1(l){if(l.composedPath)return l.composedPath();for(var f=[],y=l.target;y;)f.push(y),y=y.parentNode;return f}function b1(l,f){if(!f)return new Y(l.clientX,l.clientY);var y=mp(f),S=y.boundingClientRect;return new Y((l.clientX-S.left)/y.x-f.clientLeft,(l.clientY-S.top)/y.y-f.clientTop)}var wk=Pe.linux&&Pe.chrome?window.devicePixelRatio:Pe.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function _1(l){return Pe.edge?l.wheelDeltaY/2:l.deltaY&&l.deltaMode===0?-l.deltaY/wk: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 _p(l,f){var y=f.relatedTarget;if(!y)return!0;try{for(;y&&y!==l;)y=y.parentNode}catch(S){return!1}return y!==l}var Ck={__proto__:null,on:ze,off:wt,stopPropagation:fa,disableScrollPropagation:bp,disableClickPropagation:Ws,preventDefault:dr,stop:pa,getPropagationPath:y1,getMousePosition:b1,getWheelDelta:_1,isExternalTarget:_p,addListener:ze,removeListener:wt},w1=z.extend({run:function(l,f,y,S){this.stop(),this._el=l,this._inProgress=!0,this._duration=y||.25,this._easeOutPower=1/Math.max(S||.5,.2),this._startPos=ha(l),this._offset=f.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 f=+new Date-this._startTime,y=this._duration*1e3;f<y?this._runFrame(this._easeOut(f/y),l):(this._runFrame(1),this._complete())},_runFrame:function(l,f){var y=this._startPos.add(this._offset.multiplyBy(l));f&&y._round(),Kt(this._el,y),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=z.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,f){f=g(this,f),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(l),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),f.maxBounds&&this.setMaxBounds(f.maxBounds),f.zoom!==void 0&&(this._zoom=this._limitZoom(f.zoom)),f.center&&f.zoom!==void 0&&this.setView(se(f.center),f.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=$s&&Pe.any3d&&!Pe.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),ze(this._proxy,p1,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(l,f,y){if(f=f===void 0?this._zoom:this._limitZoom(f),l=this._limitCenter(se(l),f,this.options.maxBounds),y=y||{},this._stop(),this._loaded&&!y.reset&&y!==!0){y.animate!==void 0&&(y.zoom=i({animate:y.animate},y.zoom),y.pan=i({animate:y.animate,duration:y.duration},y.pan));var S=this._zoom!==f?this._tryAnimatedZoom&&this._tryAnimatedZoom(l,f,y.zoom):this._tryAnimatedPan(l,y.pan);if(S)return clearTimeout(this._sizeTimer),this}return this._resetView(l,f,y.pan&&y.pan.noMoveStart),this},setZoom:function(l,f){return this._loaded?this.setView(this.getCenter(),l,{zoom:f}):(this._zoom=l,this)},zoomIn:function(l,f){return l=l||(Pe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+l,f)},zoomOut:function(l,f){return l=l||(Pe.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-l,f)},setZoomAround:function(l,f,y){var S=this.getZoomScale(f),P=this.getSize().divideBy(2),F=l instanceof Y?l:this.latLngToContainerPoint(l),Z=F.subtract(P).multiplyBy(1-1/S),ee=this.containerPointToLatLng(P.add(Z));return this.setView(ee,f,{zoom:y})},_getBoundsCenterZoom:function(l,f){f=f||{},l=l.getBounds?l.getBounds():te(l);var y=W(f.paddingTopLeft||f.padding||[0,0]),S=W(f.paddingBottomRight||f.padding||[0,0]),P=this.getBoundsZoom(l,!1,y.add(S));if(P=typeof f.maxZoom=="number"?Math.min(f.maxZoom,P):P,P===1/0)return{center:l.getCenter(),zoom:P};var F=S.subtract(y).divideBy(2),Z=this.project(l.getSouthWest(),P),ee=this.project(l.getNorthEast(),P),ae=this.unproject(Z.add(ee).divideBy(2).add(F),P);return{center:ae,zoom:P}},fitBounds:function(l,f){if(l=te(l),!l.isValid())throw new Error("Bounds are not valid.");var y=this._getBoundsCenterZoom(l,f);return this.setView(y.center,y.zoom,f)},fitWorld:function(l){return this.fitBounds([[-90,-180],[90,180]],l)},panTo:function(l,f){return this.setView(l,this._zoom,{pan:f})},panBy:function(l,f){if(l=W(l).round(),f=f||{},!l.x&&!l.y)return this.fire("moveend");if(f.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 w1,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),f.noMoveStart||this.fire("movestart"),f.animate!==!1){Ge(this._mapPane,"leaflet-pan-anim");var y=this._getMapPanePos().subtract(l).round();this._panAnim.run(this._mapPane,y,f.duration||.25,f.easeLinearity)}else this._rawPanBy(l),this.fire("move").fire("moveend");return this},flyTo:function(l,f,y){if(y=y||{},y.animate===!1||!Pe.any3d)return this.setView(l,f,y);this._stop();var S=this.project(this.getCenter()),P=this.project(l),F=this.getSize(),Z=this._zoom;l=se(l),f=f===void 0?Z:f;var ee=Math.max(F.x,F.y),ae=ee*this.getZoomScale(Z,f),he=P.distanceTo(S)||1,Ce=1.42,Oe=Ce*Ce;function qe(Zt){var Ec=Zt?-1:1,cD=Zt?ae:ee,dD=ae*ae-ee*ee+Ec*Oe*Oe*he*he,hD=2*cD*Oe*he,Op=dD/hD,t_=Math.sqrt(Op*Op+1)-Op,fD=t_<1e-9?-18:Math.log(t_);return fD}function Sr(Zt){return(Math.exp(Zt)-Math.exp(-Zt))/2}function or(Zt){return(Math.exp(Zt)+Math.exp(-Zt))/2}function cn(Zt){return Sr(Zt)/or(Zt)}var Lr=qe(0);function uo(Zt){return ee*(or(Lr)/or(Lr+Ce*Zt))}function oD(Zt){return ee*(or(Lr)*cn(Lr+Ce*Zt)-Sr(Lr))/Oe}function sD(Zt){return 1-Math.pow(1-Zt,1.5)}var lD=Date.now(),J1=(qe(1)-Lr)/Ce,uD=y.duration?1e3*y.duration:1e3*J1*.8;function e_(){var Zt=(Date.now()-lD)/uD,Ec=sD(Zt)*J1;Zt<=1?(this._flyToFrame=q(e_,this),this._move(this.unproject(S.add(P.subtract(S).multiplyBy(oD(Ec)/he)),Z),this.getScaleZoom(ee/uo(Ec),Z),{flyTo:!0})):this._move(l,f)._moveEnd(!0)}return this._moveStart(!0,y.noMoveStart),e_.call(this),this},flyToBounds:function(l,f){var y=this._getBoundsCenterZoom(l,f);return this.flyTo(y.center,y.zoom,f)},setMaxBounds:function(l){return l=te(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 f=this.options.minZoom;return this.options.minZoom=l,this._loaded&&f!==l&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(l):this},setMaxZoom:function(l){var f=this.options.maxZoom;return this.options.maxZoom=l,this._loaded&&f!==l&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(l):this},panInsideBounds:function(l,f){this._enforcingBounds=!0;var y=this.getCenter(),S=this._limitCenter(y,this._zoom,te(l));return y.equals(S)||this.panTo(S,f),this._enforcingBounds=!1,this},panInside:function(l,f){f=f||{};var y=W(f.paddingTopLeft||f.padding||[0,0]),S=W(f.paddingBottomRight||f.padding||[0,0]),P=this.project(this.getCenter()),F=this.project(l),Z=this.getPixelBounds(),ee=ie([Z.min.add(y),Z.max.subtract(S)]),ae=ee.getSize();if(!ee.contains(F)){this._enforcingBounds=!0;var he=F.subtract(ee.getCenter()),Ce=ee.extend(F).getSize().subtract(ae);P.x+=he.x<0?-Ce.x:Ce.x,P.y+=he.y<0?-Ce.y:Ce.y,this.panTo(this.unproject(P),f),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 f=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var y=this.getSize(),S=f.divideBy(2).round(),P=y.divideBy(2).round(),F=S.subtract(P);return!F.x&&!F.y?this:(l.animate&&l.pan?this.panBy(F):(l.pan&&this._rawPanBy(F),this.fire("move"),l.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:f,newSize:y}))},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 f=o(this._handleGeolocationResponse,this),y=o(this._handleGeolocationError,this);return l.watch?this._locationWatchId=navigator.geolocation.watchPosition(f,y,l):navigator.geolocation.getCurrentPosition(f,y,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 f=l.code,y=l.message||(f===1?"permission denied":f===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:f,message:"Geolocation error: "+y+"."})}},_handleGeolocationResponse:function(l){if(this._container._leaflet_id){var f=l.coords.latitude,y=l.coords.longitude,S=new oe(f,y),P=S.toBounds(l.coords.accuracy*2),F=this._locateOptions;if(F.setView){var Z=this.getBoundsZoom(P);this.setView(S,F.maxZoom?Math.min(Z,F.maxZoom):Z)}var ee={latlng:S,bounds:P,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,f){if(!f)return this;var y=this[l]=new f(this);return this._handlers.push(y),this.options[l]&&y.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(f){this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),It(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)It(this._panes[l]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(l,f){var y="leaflet-pane"+(l?" leaflet-"+l.replace("Pane","")+"-pane":""),S=et("div",y,f||this._mapPane);return l&&(this._panes[l]=S),S},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(),f=this.unproject(l.getBottomLeft()),y=this.unproject(l.getTopRight());return new ne(f,y)},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,f,y){l=te(l),y=W(y||[0,0]);var S=this.getZoom()||0,P=this.getMinZoom(),F=this.getMaxZoom(),Z=l.getNorthWest(),ee=l.getSouthEast(),ae=this.getSize().subtract(y),he=ie(this.project(ee,S),this.project(Z,S)).getSize(),Ce=Pe.any3d?this.options.zoomSnap:1,Oe=ae.x/he.x,qe=ae.y/he.y,Sr=f?Math.max(Oe,qe):Math.min(Oe,qe);return S=this.getScaleZoom(Sr,S),Ce&&(S=Math.round(S/(Ce/100))*(Ce/100),S=f?Math.ceil(S/Ce)*Ce:Math.floor(S/Ce)*Ce),Math.max(P,Math.min(F,S))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new Y(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(l,f){var y=this._getTopLeftPoint(l,f);return new K(y,y.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,f){var y=this.options.crs;return f=f===void 0?this._zoom:f,y.scale(l)/y.scale(f)},getScaleZoom:function(l,f){var y=this.options.crs;f=f===void 0?this._zoom:f;var S=y.zoom(l*y.scale(f));return isNaN(S)?1/0:S},project:function(l,f){return f=f===void 0?this._zoom:f,this.options.crs.latLngToPoint(se(l),f)},unproject:function(l,f){return f=f===void 0?this._zoom:f,this.options.crs.pointToLatLng(W(l),f)},layerPointToLatLng:function(l){var f=W(l).add(this.getPixelOrigin());return this.unproject(f)},latLngToLayerPoint:function(l){var f=this.project(se(l))._round();return f._subtract(this.getPixelOrigin())},wrapLatLng:function(l){return this.options.crs.wrapLatLng(se(l))},wrapLatLngBounds:function(l){return this.options.crs.wrapLatLngBounds(te(l))},distance:function(l,f){return this.options.crs.distance(se(l),se(f))},containerPointToLayerPoint:function(l){return W(l).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(l){return W(l).add(this._getMapPanePos())},containerPointToLatLng:function(l){var f=this.containerPointToLayerPoint(W(l));return this.layerPointToLatLng(f)},latLngToContainerPoint:function(l){return this.layerPointToContainerPoint(this.latLngToLayerPoint(se(l)))},mouseEventToContainerPoint:function(l){return b1(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 f=this._container=m1(l);if(f){if(f._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");ze(f,"scroll",this._onScroll,this),this._containerId=u(f)},_initLayout:function(){var l=this._container;this._fadeAnimated=this.options.fadeAnimation&&Pe.any3d,Ge(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 f=Bs(l,"position");f!=="absolute"&&f!=="relative"&&f!=="fixed"&&f!=="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),Kt(this._mapPane,new Y(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Ge(l.markerPane,"leaflet-zoom-hide"),Ge(l.shadowPane,"leaflet-zoom-hide"))},_resetView:function(l,f,y){Kt(this._mapPane,new Y(0,0));var S=!this._loaded;this._loaded=!0,f=this._limitZoom(f),this.fire("viewprereset");var P=this._zoom!==f;this._moveStart(P,y)._move(l,f)._moveEnd(P),this.fire("viewreset"),S&&this.fire("load")},_moveStart:function(l,f){return l&&this.fire("zoomstart"),f||this.fire("movestart"),this},_move:function(l,f,y,S){f===void 0&&(f=this._zoom);var P=this._zoom!==f;return this._zoom=f,this._lastCenter=l,this._pixelOrigin=this._getNewPixelOrigin(l),S?y&&y.pinch&&this.fire("zoom",y):((P||y&&y.pinch)&&this.fire("zoom",y),this.fire("move",y)),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){Kt(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 f=l?wt:ze;f(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&f(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,f){for(var y=[],S,P=f==="mouseout"||f==="mouseover",F=l.target||l.srcElement,Z=!1;F;){if(S=this._targets[u(F)],S&&(f==="click"||f==="preclick")&&this._draggableMoved(S)){Z=!0;break}if(S&&S.listens(f,!0)&&(P&&!_p(F,l)||(y.push(S),P))||F===this._container)break;F=F.parentNode}return!y.length&&!Z&&!P&&this.listens(f,!0)&&(y=[this]),y},_isClickDisabled:function(l){for(;l&&l!==this._container;){if(l._leaflet_disable_click)return!0;l=l.parentNode}},_handleDOMEvent:function(l){var f=l.target||l.srcElement;if(!(!this._loaded||f._leaflet_disable_events||l.type==="click"&&this._isClickDisabled(f))){var y=l.type;y==="mousedown"&&pp(f),this._fireDOMEvent(l,y)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(l,f,y){if(l.type==="click"){var S=i({},l);S.type="preclick",this._fireDOMEvent(S,S.type,y)}var P=this._findEventTargets(l,f);if(y){for(var F=[],Z=0;Z<y.length;Z++)y[Z].listens(f,!0)&&F.push(y[Z]);P=F.concat(P)}if(P.length){f==="contextmenu"&&dr(l);var ee=P[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(Z=0;Z<P.length;Z++)if(P[Z].fire(f,ae,!0),ae.originalEvent._stopped||P[Z].options.bubblingMouseEvents===!1&&T(this._mouseEvents,f)!==-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,f=this._handlers.length;l<f;l++)this._handlers[l].disable()},whenReady:function(l,f){return this._loaded?l.call(f||this,{target:this}):this.on("load",l,f),this},_getMapPanePos:function(){return ha(this._mapPane)||new Y(0,0)},_moved:function(){var l=this._getMapPanePos();return l&&!l.equals([0,0])},_getTopLeftPoint:function(l,f){var y=l&&f!==void 0?this._getNewPixelOrigin(l,f):this.getPixelOrigin();return y.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(l,f){var y=this.getSize()._divideBy(2);return this.project(l,f)._subtract(y)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(l,f,y){var S=this._getNewPixelOrigin(y,f);return this.project(l,f)._subtract(S)},_latLngBoundsToNewLayerBounds:function(l,f,y){var S=this._getNewPixelOrigin(y,f);return ie([this.project(l.getSouthWest(),f)._subtract(S),this.project(l.getNorthWest(),f)._subtract(S),this.project(l.getSouthEast(),f)._subtract(S),this.project(l.getNorthEast(),f)._subtract(S)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(l){return this.latLngToLayerPoint(l).subtract(this._getCenterLayerPoint())},_limitCenter:function(l,f,y){if(!y)return l;var S=this.project(l,f),P=this.getSize().divideBy(2),F=new K(S.subtract(P),S.add(P)),Z=this._getBoundsOffset(F,y,f);return Math.abs(Z.x)<=1&&Math.abs(Z.y)<=1?l:this.unproject(S.add(Z),f)},_limitOffset:function(l,f){if(!f)return l;var y=this.getPixelBounds(),S=new K(y.min.add(l),y.max.add(l));return l.add(this._getBoundsOffset(S,f))},_getBoundsOffset:function(l,f,y){var S=ie(this.project(f.getNorthEast(),y),this.project(f.getSouthWest(),y)),P=S.min.subtract(l.min),F=S.max.subtract(l.max),Z=this._rebound(P.x,-F.x),ee=this._rebound(P.y,-F.y);return new Y(Z,ee)},_rebound:function(l,f){return l+f>0?Math.round(l-f)/2:Math.max(0,Math.ceil(l))-Math.max(0,Math.floor(f))},_limitZoom:function(l){var f=this.getMinZoom(),y=this.getMaxZoom(),S=Pe.any3d?this.options.zoomSnap:1;return S&&(l=Math.round(l/S)*S),Math.max(f,Math.min(y,l))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Ut(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(l,f){var y=this._getCenterOffset(l)._trunc();return(f&&f.animate)!==!0&&!this.getSize().contains(y)?!1:(this.panBy(y,f),!0)},_createAnimProxy:function(){var l=this._proxy=et("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(l),this.on("zoomanim",function(f){var y=sp,S=this._proxy.style[y];da(this._proxy,this.project(f.center,f.zoom),this.getZoomScale(f.zoom,1)),S===this._proxy.style[y]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){It(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var l=this.getCenter(),f=this.getZoom();da(this._proxy,this.project(l,f),this.getZoomScale(f,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,f,y){if(this._animatingZoom)return!0;if(y=y||{},!this._zoomAnimated||y.animate===!1||this._nothingToAnimate()||Math.abs(f-this._zoom)>this.options.zoomAnimationThreshold)return!1;var S=this.getZoomScale(f),P=this._getCenterOffset(l)._divideBy(1-1/S);return y.animate!==!0&&!this.getSize().contains(P)?!1:(q(function(){this._moveStart(!0,y.noMoveStart||!1)._animateZoom(l,f,!0)},this),!0)},_animateZoom:function(l,f,y,S){this._mapPane&&(y&&(this._animatingZoom=!0,this._animateToCenter=l,this._animateToZoom=f,Ge(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:l,zoom:f,noUpdate:S}),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&&Ut(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 xk(l,f){return new Qe(l,f)}var xn=X.extend({options:{position:"topright"},initialize:function(l){g(this,l)},getPosition:function(){return this.options.position},setPosition:function(l){var f=this._map;return f&&f.removeControl(this),this.options.position=l,f&&f.addControl(this),this},getContainer:function(){return this._container},addTo:function(l){this.remove(),this._map=l;var f=this._container=this.onAdd(l),y=this.getPosition(),S=l._controlCorners[y];return Ge(f,"leaflet-control"),y.indexOf("bottom")!==-1?S.insertBefore(f,S.firstChild):S.appendChild(f),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(It(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()}}),Us=function(l){return new xn(l)};Qe.include({addControl:function(l){return l.addTo(this),this},removeControl:function(l){return l.remove(),this},_initControlPos:function(){var l=this._controlCorners={},f="leaflet-",y=this._controlContainer=et("div",f+"control-container",this._container);function S(P,F){var Z=f+P+" "+f+F;l[P+F]=et("div",Z,y)}S("top","left"),S("top","right"),S("bottom","left"),S("bottom","right")},_clearControlPos:function(){for(var l in this._controlCorners)It(this._controlCorners[l]);It(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var C1=xn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(l,f,y,S){return y<S?-1:S<y?1:0}},initialize:function(l,f,y){g(this,y),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var S in l)this._addLayer(l[S],S);for(S in f)this._addLayer(f[S],S,!0)},onAdd:function(l){this._initLayout(),this._update(),this._map=l,l.on("zoomend",this._checkDisabledLayers,this);for(var f=0;f<this._layers.length;f++)this._layers[f].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(l){return xn.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,f){return this._addLayer(l,f),this._map?this._update():this},addOverlay:function(l,f){return this._addLayer(l,f,!0),this._map?this._update():this},removeLayer:function(l){l.off("add remove",this._onLayerChange,this);var f=this._getLayer(u(l));return f&&this._layers.splice(this._layers.indexOf(f),1),this._map?this._update():this},expand:function(){Ge(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?(Ge(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=l+"px"):Ut(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Ut(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var l="leaflet-control-layers",f=this._container=et("div",l),y=this.options.collapsed;f.setAttribute("aria-haspopup",!0),Ws(f),bp(f);var S=this._section=et("section",l+"-list");y&&(this._map.on("click",this.collapse,this),ze(f,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var P=this._layersLink=et("a",l+"-toggle",f);P.href="#",P.title="Layers",P.setAttribute("role","button"),ze(P,{keydown:function(F){F.keyCode===13&&this._expandSafely()},click:function(F){dr(F),this._expandSafely()}},this),y||this.expand(),this._baseLayersList=et("div",l+"-base",S),this._separator=et("div",l+"-separator",S),this._overlaysList=et("div",l+"-overlays",S),f.appendChild(S)},_getLayer:function(l){for(var f=0;f<this._layers.length;f++)if(this._layers[f]&&u(this._layers[f].layer)===l)return this._layers[f]},_addLayer:function(l,f,y){this._map&&l.on("add remove",this._onLayerChange,this),this._layers.push({layer:l,name:f,overlay:y}),this.options.sortLayers&&this._layers.sort(o(function(S,P){return this.options.sortFunction(S.layer,P.layer,S.name,P.name)},this)),this.options.autoZIndex&&l.setZIndex&&(this._lastZIndex++,l.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;cc(this._baseLayersList),cc(this._overlaysList),this._layerControlInputs=[];var l,f,y,S,P=0;for(y=0;y<this._layers.length;y++)S=this._layers[y],this._addItem(S),f=f||S.overlay,l=l||!S.overlay,P+=S.overlay?0:1;return this.options.hideSingleBase&&(l=l&&P>1,this._baseLayersList.style.display=l?"":"none"),this._separator.style.display=f&&l?"":"none",this},_onLayerChange:function(l){this._handlingClick||this._update();var f=this._getLayer(u(l.target)),y=f.overlay?l.type==="add"?"overlayadd":"overlayremove":l.type==="add"?"baselayerchange":null;y&&this._map.fire(y,f)},_createRadioElement:function(l,f){var y='<input type="radio" class="leaflet-control-layers-selector" name="'+l+'"'+(f?' checked="checked"':"")+"/>",S=document.createElement("div");return S.innerHTML=y,S.firstChild},_addItem:function(l){var f=document.createElement("label"),y=this._map.hasLayer(l.layer),S;l.overlay?(S=document.createElement("input"),S.type="checkbox",S.className="leaflet-control-layers-selector",S.defaultChecked=y):S=this._createRadioElement("leaflet-base-layers_"+u(this),y),this._layerControlInputs.push(S),S.layerId=u(l.layer),ze(S,"click",this._onInputClick,this);var P=document.createElement("span");P.innerHTML=" "+l.name;var F=document.createElement("span");f.appendChild(F),F.appendChild(S),F.appendChild(P);var Z=l.overlay?this._overlaysList:this._baseLayersList;return Z.appendChild(f),this._checkDisabledLayers(),f},_onInputClick:function(){if(!this._preventClick){var l=this._layerControlInputs,f,y,S=[],P=[];this._handlingClick=!0;for(var F=l.length-1;F>=0;F--)f=l[F],y=this._getLayer(f.layerId).layer,f.checked?S.push(y):f.checked||P.push(y);for(F=0;F<P.length;F++)this._map.hasLayer(P[F])&&this._map.removeLayer(P[F]);for(F=0;F<S.length;F++)this._map.hasLayer(S[F])||this._map.addLayer(S[F]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var l=this._layerControlInputs,f,y,S=this._map.getZoom(),P=l.length-1;P>=0;P--)f=l[P],y=this._getLayer(f.layerId).layer,f.disabled=y.options.minZoom!==void 0&&S<y.options.minZoom||y.options.maxZoom!==void 0&&S>y.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var l=this._section;this._preventClick=!0,ze(l,"click",dr),this.expand();var f=this;setTimeout(function(){wt(l,"click",dr),f._preventClick=!1})}}),Tk=function(l,f,y){return new C1(l,f,y)},wp=xn.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 f="leaflet-control-zoom",y=et("div",f+" leaflet-bar"),S=this.options;return this._zoomInButton=this._createButton(S.zoomInText,S.zoomInTitle,f+"-in",y,this._zoomIn),this._zoomOutButton=this._createButton(S.zoomOutText,S.zoomOutTitle,f+"-out",y,this._zoomOut),this._updateDisabled(),l.on("zoomend zoomlevelschange",this._updateDisabled,this),y},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,f,y,S,P){var F=et("a",y,S);return F.innerHTML=l,F.href="#",F.title=f,F.setAttribute("role","button"),F.setAttribute("aria-label",f),Ws(F),ze(F,"click",pa),ze(F,"click",P,this),ze(F,"click",this._refocusOnMap,this),F},_updateDisabled:function(){var l=this._map,f="leaflet-disabled";Ut(this._zoomInButton,f),Ut(this._zoomOutButton,f),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||l._zoom===l.getMinZoom())&&(Ge(this._zoomOutButton,f),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||l._zoom===l.getMaxZoom())&&(Ge(this._zoomInButton,f),this._zoomInButton.setAttribute("aria-disabled","true"))}});Qe.mergeOptions({zoomControl:!0}),Qe.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new wp,this.addControl(this.zoomControl))});var Sk=function(l){return new wp(l)},x1=xn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(l){var f="leaflet-control-scale",y=et("div",f),S=this.options;return this._addScales(S,f+"-line",y),l.on(S.updateWhenIdle?"moveend":"move",this._update,this),l.whenReady(this._update,this),y},onRemove:function(l){l.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(l,f,y){l.metric&&(this._mScale=et("div",f,y)),l.imperial&&(this._iScale=et("div",f,y))},_update:function(){var l=this._map,f=l.getSize().y/2,y=l.distance(l.containerPointToLatLng([0,f]),l.containerPointToLatLng([this.options.maxWidth,f]));this._updateScales(y)},_updateScales:function(l){this.options.metric&&l&&this._updateMetric(l),this.options.imperial&&l&&this._updateImperial(l)},_updateMetric:function(l){var f=this._getRoundNum(l),y=f<1e3?f+" m":f/1e3+" km";this._updateScale(this._mScale,y,f/l)},_updateImperial:function(l){var f=l*3.2808399,y,S,P;f>5280?(y=f/5280,S=this._getRoundNum(y),this._updateScale(this._iScale,S+" mi",S/y)):(P=this._getRoundNum(f),this._updateScale(this._iScale,P+" ft",P/f))},_updateScale:function(l,f,y){l.style.width=Math.round(this.options.maxWidth*y)+"px",l.innerHTML=f},_getRoundNum:function(l){var f=Math.pow(10,(Math.floor(l)+"").length-1),y=l/f;return y=y>=10?10:y>=5?5:y>=3?3:y>=2?2:1,f*y}}),Ek=function(l){return new x1(l)},Mk='<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>',Cp=xn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Pe.inlineSvg?Mk+" ":"")+"Leaflet</a>"},initialize:function(l){g(this,l),this._attributions={}},onAdd:function(l){l.attributionControl=this,this._container=et("div","leaflet-control-attribution"),Ws(this._container);for(var f in l._layers)l._layers[f].getAttribution&&this.addAttribution(l._layers[f].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 f in this._attributions)this._attributions[f]&&l.push(f);var y=[];this.options.prefix&&y.push(this.options.prefix),l.length&&y.push(l.join(", ")),this._container.innerHTML=y.join(' <span aria-hidden="true">|</span> ')}}});Qe.mergeOptions({attributionControl:!0}),Qe.addInitHook(function(){this.options.attributionControl&&new Cp().addTo(this)});var Ak=function(l){return new Cp(l)};xn.Layers=C1,xn.Zoom=wp,xn.Scale=x1,xn.Attribution=Cp,Us.layers=Tk,Us.zoom=Sk,Us.scale=Ek,Us.attribution=Ak;var Fn=X.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}});Fn.addTo=function(l,f){return l.addHandler(f,this),this};var Pk={Events:V},T1=Pe.touch?"touchstart mousedown":"mousedown",Ii=z.extend({options:{clickTolerance:3},initialize:function(l,f,y,S){g(this,S),this._element=l,this._dragStartTarget=f||l,this._preventOutline=y},enable:function(){this._enabled||(ze(this._dragStartTarget,T1,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Ii._dragging===this&&this.finishDrag(!0),wt(this._dragStartTarget,T1,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(l){if(this._enabled&&(this._moved=!1,!lp(this._element,"leaflet-zoom-anim"))){if(l.touches&&l.touches.length!==1){Ii._dragging===this&&this.finishDrag();return}if(!(Ii._dragging||l.shiftKey||l.which!==1&&l.button!==1&&!l.touches)&&(Ii._dragging=this,this._preventOutline&&pp(this._element),dp(),Hs(),!this._moving)){this.fire("down");var f=l.touches?l.touches[0]:l,y=g1(this._element);this._startPoint=new Y(f.clientX,f.clientY),this._startPos=ha(this._element),this._parentScale=mp(y);var S=l.type==="mousedown";ze(document,S?"mousemove":"touchmove",this._onMove,this),ze(document,S?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(l){if(this._enabled){if(l.touches&&l.touches.length>1){this._moved=!0;return}var f=l.touches&&l.touches.length===1?l.touches[0]:l,y=new Y(f.clientX,f.clientY)._subtract(this._startPoint);!y.x&&!y.y||Math.abs(y.x)+Math.abs(y.y)<this.options.clickTolerance||(y.x/=this._parentScale.x,y.y/=this._parentScale.y,dr(l),this._moved||(this.fire("dragstart"),this._moved=!0,Ge(document.body,"leaflet-dragging"),this._lastTarget=l.target||l.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Ge(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(y),this._moving=!0,this._lastEvent=l,this._updatePosition())}},_updatePosition:function(){var l={originalEvent:this._lastEvent};this.fire("predrag",l),Kt(this._element,this._newPos),this.fire("drag",l)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(l){Ut(document.body,"leaflet-dragging"),this._lastTarget&&(Ut(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),wt(document,"mousemove touchmove",this._onMove,this),wt(document,"mouseup touchend touchcancel",this._onUp,this),hp(),zs();var f=this._moved&&this._moving;this._moving=!1,Ii._dragging=!1,f&&this.fire("dragend",{noInertia:l,distance:this._newPos.distanceTo(this._startPos)})}});function S1(l,f,y){var S,P=[1,4,2,8],F,Z,ee,ae,he,Ce,Oe,qe;for(F=0,Ce=l.length;F<Ce;F++)l[F]._code=ma(l[F],f);for(ee=0;ee<4;ee++){for(Oe=P[ee],S=[],F=0,Ce=l.length,Z=Ce-1;F<Ce;Z=F++)ae=l[F],he=l[Z],ae._code&Oe?he._code&Oe||(qe=mc(he,ae,Oe,f,y),qe._code=ma(qe,f),S.push(qe)):(he._code&Oe&&(qe=mc(he,ae,Oe,f,y),qe._code=ma(qe,f),S.push(qe)),S.push(ae));l=S}return l}function E1(l,f){var y,S,P,F,Z,ee,ae,he,Ce;if(!l||l.length===0)throw new Error("latlngs not passed");un(l)||(console.warn("latlngs are not flat! Only the first ring will be used"),l=l[0]);var Oe=se([0,0]),qe=te(l),Sr=qe.getNorthWest().distanceTo(qe.getSouthWest())*qe.getNorthEast().distanceTo(qe.getNorthWest());Sr<1700&&(Oe=xp(l));var or=l.length,cn=[];for(y=0;y<or;y++){var Lr=se(l[y]);cn.push(f.project(se([Lr.lat-Oe.lat,Lr.lng-Oe.lng])))}for(ee=ae=he=0,y=0,S=or-1;y<or;S=y++)P=cn[y],F=cn[S],Z=P.y*F.x-F.y*P.x,ae+=(P.x+F.x)*Z,he+=(P.y+F.y)*Z,ee+=Z*3;ee===0?Ce=cn[0]:Ce=[ae/ee,he/ee];var uo=f.unproject(W(Ce));return se([uo.lat+Oe.lat,uo.lng+Oe.lng])}function xp(l){for(var f=0,y=0,S=0,P=0;P<l.length;P++){var F=se(l[P]);f+=F.lat,y+=F.lng,S++}return se([f/S,y/S])}var Rk={__proto__:null,clipPolygon:S1,polygonCenter:E1,centroid:xp};function M1(l,f){if(!f||!l.length)return l.slice();var y=f*f;return l=Dk(l,y),l=kk(l,y),l}function A1(l,f,y){return Math.sqrt(Vs(l,f,y,!0))}function Ok(l,f,y){return Vs(l,f,y)}function kk(l,f){var y=l.length,S=typeof Uint8Array!="undefined"?Uint8Array:Array,P=new S(y);P[0]=P[y-1]=1,Tp(l,P,f,0,y-1);var F,Z=[];for(F=0;F<y;F++)P[F]&&Z.push(l[F]);return Z}function Tp(l,f,y,S,P){var F=0,Z,ee,ae;for(ee=S+1;ee<=P-1;ee++)ae=Vs(l[ee],l[S],l[P],!0),ae>F&&(Z=ee,F=ae);F>y&&(f[Z]=1,Tp(l,f,y,S,Z),Tp(l,f,y,Z,P))}function Dk(l,f){for(var y=[l[0]],S=1,P=0,F=l.length;S<F;S++)Nk(l[S],l[P])>f&&(y.push(l[S]),P=S);return P<F-1&&y.push(l[F-1]),y}var P1;function R1(l,f,y,S,P){var F=S?P1:ma(l,y),Z=ma(f,y),ee,ae,he;for(P1=Z;;){if(!(F|Z))return[l,f];if(F&Z)return!1;ee=F||Z,ae=mc(l,f,ee,y,P),he=ma(ae,y),ee===F?(l=ae,F=he):(f=ae,Z=he)}}function mc(l,f,y,S,P){var F=f.x-l.x,Z=f.y-l.y,ee=S.min,ae=S.max,he,Ce;return y&8?(he=l.x+F*(ae.y-l.y)/Z,Ce=ae.y):y&4?(he=l.x+F*(ee.y-l.y)/Z,Ce=ee.y):y&2?(he=ae.x,Ce=l.y+Z*(ae.x-l.x)/F):y&1&&(he=ee.x,Ce=l.y+Z*(ee.x-l.x)/F),new Y(he,Ce,P)}function ma(l,f){var y=0;return l.x<f.min.x?y|=1:l.x>f.max.x&&(y|=2),l.y<f.min.y?y|=4:l.y>f.max.y&&(y|=8),y}function Nk(l,f){var y=f.x-l.x,S=f.y-l.y;return y*y+S*S}function Vs(l,f,y,S){var P=f.x,F=f.y,Z=y.x-P,ee=y.y-F,ae=Z*Z+ee*ee,he;return ae>0&&(he=((l.x-P)*Z+(l.y-F)*ee)/ae,he>1?(P=y.x,F=y.y):he>0&&(P+=Z*he,F+=ee*he)),Z=l.x-P,ee=l.y-F,S?Z*Z+ee*ee:new Y(P,F)}function un(l){return!E(l[0])||typeof l[0][0]!="object"&&typeof l[0][0]!="undefined"}function O1(l){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),un(l)}function k1(l,f){var y,S,P,F,Z,ee,ae,he;if(!l||l.length===0)throw new Error("latlngs not passed");un(l)||(console.warn("latlngs are not flat! Only the first ring will be used"),l=l[0]);var Ce=se([0,0]),Oe=te(l),qe=Oe.getNorthWest().distanceTo(Oe.getSouthWest())*Oe.getNorthEast().distanceTo(Oe.getNorthWest());qe<1700&&(Ce=xp(l));var Sr=l.length,or=[];for(y=0;y<Sr;y++){var cn=se(l[y]);or.push(f.project(se([cn.lat-Ce.lat,cn.lng-Ce.lng])))}for(y=0,S=0;y<Sr-1;y++)S+=or[y].distanceTo(or[y+1])/2;if(S===0)he=or[0];else for(y=0,F=0;y<Sr-1;y++)if(Z=or[y],ee=or[y+1],P=Z.distanceTo(ee),F+=P,F>S){ae=(F-S)/P,he=[ee.x-ae*(ee.x-Z.x),ee.y-ae*(ee.y-Z.y)];break}var Lr=f.unproject(W(he));return se([Lr.lat+Ce.lat,Lr.lng+Ce.lng])}var Ik={__proto__:null,simplify:M1,pointToSegmentDistance:A1,closestPointOnSegment:Ok,clipSegment:R1,_getEdgeIntersection:mc,_getBitCode:ma,_sqClosestPointOnSegment:Vs,isFlat:un,_flat:O1,polylineCenter:k1},Sp={project:function(l){return new Y(l.lng,l.lat)},unproject:function(l){return new oe(l.y,l.x)},bounds:new K([-180,-90],[180,90])},Ep={R:6378137,R_MINOR:6356752314245179e-9,bounds:new K([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(l){var f=Math.PI/180,y=this.R,S=l.lat*f,P=this.R_MINOR/y,F=Math.sqrt(1-P*P),Z=F*Math.sin(S),ee=Math.tan(Math.PI/4-S/2)/Math.pow((1-Z)/(1+Z),F/2);return S=-y*Math.log(Math.max(ee,1e-10)),new Y(l.lng*f*y,S)},unproject:function(l){for(var f=180/Math.PI,y=this.R,S=this.R_MINOR/y,P=Math.sqrt(1-S*S),F=Math.exp(-l.y/y),Z=Math.PI/2-2*Math.atan(F),ee=0,ae=.1,he;ee<15&&Math.abs(ae)>1e-7;ee++)he=P*Math.sin(Z),he=Math.pow((1-he)/(1+he),P/2),ae=Math.PI/2-2*Math.atan(F*he)-Z,Z+=ae;return new oe(Z*f,l.x*f/y)}},Lk={__proto__:null,LonLat:Sp,Mercator:Ep,SphericalMercator:Se},Fk=i({},ce,{code:"EPSG:3395",projection:Ep,transformation:function(){var l=.5/(Math.PI*Ep.R);return J(l,.5,-l,.5)}()}),D1=i({},ce,{code:"EPSG:4326",projection:Sp,transformation:J(1/180,1,-1/180,.5)}),$k=i({},de,{projection:Sp,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,f){var y=f.lng-l.lng,S=f.lat-l.lat;return Math.sqrt(y*y+S*S)},infinite:!0});de.Earth=ce,de.EPSG3395=Fk,de.EPSG3857=_e,de.EPSG900913=ve,de.EPSG4326=D1,de.Simple=$k;var Tn=z.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 f=l.target;if(f.hasLayer(this)){if(this._map=f,this._zoomAnimated=f._zoomAnimated,this.getEvents){var y=this.getEvents();f.on(y,this),this.once("remove",function(){f.off(y,this)},this)}this.onAdd(f),this.fire("add"),f.fire("layeradd",{layer:this})}}});Qe.include({addLayer:function(l){if(!l._layerAdd)throw new Error("The provided object is not a Layer.");var f=u(l);return this._layers[f]?this:(this._layers[f]=l,l._mapToAdd=this,l.beforeAdd&&l.beforeAdd(this),this.whenReady(l._layerAdd,l),this)},removeLayer:function(l){var f=u(l);return this._layers[f]?(this._loaded&&l.onRemove(this),delete this._layers[f],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,f){for(var y in this._layers)l.call(f,this._layers[y]);return this},_addLayers:function(l){l=l?E(l)?l:[l]:[];for(var f=0,y=l.length;f<y;f++)this.addLayer(l[f])},_addZoomLimit:function(l){(!isNaN(l.options.maxZoom)||!isNaN(l.options.minZoom))&&(this._zoomBoundLayers[u(l)]=l,this._updateZoomLevels())},_removeZoomLimit:function(l){var f=u(l);this._zoomBoundLayers[f]&&(delete this._zoomBoundLayers[f],this._updateZoomLevels())},_updateZoomLevels:function(){var l=1/0,f=-1/0,y=this._getZoomSpan();for(var S in this._zoomBoundLayers){var P=this._zoomBoundLayers[S].options;l=P.minZoom===void 0?l:Math.min(l,P.minZoom),f=P.maxZoom===void 0?f:Math.max(f,P.maxZoom)}this._layersMaxZoom=f===-1/0?void 0:f,this._layersMinZoom=l===1/0?void 0:l,y!==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 io=Tn.extend({initialize:function(l,f){g(this,f),this._layers={};var y,S;if(l)for(y=0,S=l.length;y<S;y++)this.addLayer(l[y])},addLayer:function(l){var f=this.getLayerId(l);return this._layers[f]=l,this._map&&this._map.addLayer(l),this},removeLayer:function(l){var f=l in this._layers?l:this.getLayerId(l);return this._map&&this._layers[f]&&this._map.removeLayer(this._layers[f]),delete this._layers[f],this},hasLayer:function(l){var f=typeof l=="number"?l:this.getLayerId(l);return f in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(l){var f=Array.prototype.slice.call(arguments,1),y,S;for(y in this._layers)S=this._layers[y],S[l]&&S[l].apply(S,f);return this},onAdd:function(l){this.eachLayer(l.addLayer,l)},onRemove:function(l){this.eachLayer(l.removeLayer,l)},eachLayer:function(l,f){for(var y in this._layers)l.call(f,this._layers[y]);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)}}),Bk=function(l,f){return new io(l,f)},hi=io.extend({addLayer:function(l){return this.hasLayer(l)?this:(l.addEventParent(this),io.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),io.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 f in this._layers){var y=this._layers[f];l.extend(y.getBounds?y.getBounds():y.getLatLng())}return l}}),Hk=function(l,f){return new hi(l,f)},ao=X.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(l){g(this,l)},createIcon:function(l){return this._createIcon("icon",l)},createShadow:function(l){return this._createIcon("shadow",l)},_createIcon:function(l,f){var y=this._getIconUrl(l);if(!y){if(l==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var S=this._createImg(y,f&&f.tagName==="IMG"?f:null);return this._setIconStyles(S,l),(this.options.crossOrigin||this.options.crossOrigin==="")&&(S.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),S},_setIconStyles:function(l,f){var y=this.options,S=y[f+"Size"];typeof S=="number"&&(S=[S,S]);var P=W(S),F=W(f==="shadow"&&y.shadowAnchor||y.iconAnchor||P&&P.divideBy(2,!0));l.className="leaflet-marker-"+f+" "+(y.className||""),F&&(l.style.marginLeft=-F.x+"px",l.style.marginTop=-F.y+"px"),P&&(l.style.width=P.x+"px",l.style.height=P.y+"px")},_createImg:function(l,f){return f=f||document.createElement("img"),f.src=l,f},_getIconUrl:function(l){return Pe.retina&&this.options[l+"RetinaUrl"]||this.options[l+"Url"]}});function zk(l){return new ao(l)}var Gs=ao.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 Gs.imagePath!="string"&&(Gs.imagePath=this._detectIconPath()),(this.options.imagePath||Gs.imagePath)+ao.prototype._getIconUrl.call(this,l)},_stripUrl:function(l){var f=function(y,S,P){var F=S.exec(y);return F&&F[P]};return l=f(l,/^url\((['"])?(.+)\1\)$/,2),l&&f(l,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var l=et("div","leaflet-default-icon-path",document.body),f=Bs(l,"background-image")||Bs(l,"backgroundImage");if(document.body.removeChild(l),f=this._stripUrl(f),f)return f;var y=document.querySelector('link[href$="leaflet.css"]');return y?y.href.substring(0,y.href.length-11-1):""}}),N1=Fn.extend({initialize:function(l){this._marker=l},addHooks:function(){var l=this._marker._icon;this._draggable||(this._draggable=new Ii(l,l,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Ge(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&&Ut(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(l){var f=this._marker,y=f._map,S=this._marker.options.autoPanSpeed,P=this._marker.options.autoPanPadding,F=ha(f._icon),Z=y.getPixelBounds(),ee=y.getPixelOrigin(),ae=ie(Z.min._subtract(ee).add(P),Z.max._subtract(ee).subtract(P));if(!ae.contains(F)){var he=W((Math.max(ae.max.x,F.x)-ae.max.x)/(Z.max.x-ae.max.x)-(Math.min(ae.min.x,F.x)-ae.min.x)/(Z.min.x-ae.min.x),(Math.max(ae.max.y,F.y)-ae.max.y)/(Z.max.y-ae.max.y)-(Math.min(ae.min.y,F.y)-ae.min.y)/(Z.min.y-ae.min.y)).multiplyBy(S);y.panBy(he,{animate:!1}),this._draggable._newPos._add(he),this._draggable._startPos._add(he),Kt(f._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 f=this._marker,y=f._shadow,S=ha(f._icon),P=f._map.layerPointToLatLng(S);y&&Kt(y,S),f._latlng=P,l.latlng=P,l.oldLatLng=this._oldLatLng,f.fire("move",l).fire("drag",l)},_onDragEnd:function(l){O(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",l)}}),gc=Tn.extend({options:{icon:new Gs,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,f){g(this,f),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 f=this._latlng;return this._latlng=se(l),this.update(),this.fire("move",{oldLatLng:f,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,f="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),y=l.icon.createIcon(this._icon),S=!1;y!==this._icon&&(this._icon&&this._removeIcon(),S=!0,l.title&&(y.title=l.title),y.tagName==="IMG"&&(y.alt=l.alt||"")),Ge(y,f),l.keyboard&&(y.tabIndex="0",y.setAttribute("role","button")),this._icon=y,l.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&ze(y,"focus",this._panOnFocus,this);var P=l.icon.createShadow(this._shadow),F=!1;P!==this._shadow&&(this._removeShadow(),F=!0),P&&(Ge(P,f),P.alt=""),this._shadow=P,l.opacity<1&&this._updateOpacity(),S&&this.getPane().appendChild(this._icon),this._initInteraction(),P&&F&&this.getPane(l.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&wt(this._icon,"focus",this._panOnFocus,this),It(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&It(this._shadow),this._shadow=null},_setPos:function(l){this._icon&&Kt(this._icon,l),this._shadow&&Kt(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 f=this._map._latLngToNewLayerPoint(this._latlng,l.zoom,l.center).round();this._setPos(f)},_initInteraction:function(){if(this.options.interactive&&(Ge(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),N1)){var l=this.options.draggable;this.dragging&&(l=this.dragging.enabled(),this.dragging.disable()),this.dragging=new N1(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&&ln(this._icon,l),this._shadow&&ln(this._shadow,l)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var l=this._map;if(l){var f=this.options.icon.options,y=f.iconSize?W(f.iconSize):W(0,0),S=f.iconAnchor?W(f.iconAnchor):W(0,0);l.panInside(this._latlng,{paddingTopLeft:S,paddingBottomRight:y.subtract(S)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function jk(l,f){return new gc(l,f)}var Li=Tn.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 g(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)}}),vc=Li.extend({options:{fill:!0,radius:10},initialize:function(l,f){g(this,f),this._latlng=se(l),this._radius=this.options.radius},setLatLng:function(l){var f=this._latlng;return this._latlng=se(l),this.redraw(),this.fire("move",{oldLatLng:f,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 f=l&&l.radius||this._radius;return Li.prototype.setStyle.call(this,l),this.setRadius(f),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var l=this._radius,f=this._radiusY||l,y=this._clickTolerance(),S=[l+y,f+y];this._pxBounds=new K(this._point.subtract(S),this._point.add(S))},_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 Wk(l,f){return new vc(l,f)}var Mp=vc.extend({initialize:function(l,f,y){if(typeof f=="number"&&(f=i({},y,{radius:f})),g(this,f),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:Li.prototype.setStyle,_project:function(){var l=this._latlng.lng,f=this._latlng.lat,y=this._map,S=y.options.crs;if(S.distance===ce.distance){var P=Math.PI/180,F=this._mRadius/ce.R/P,Z=y.project([f+F,l]),ee=y.project([f-F,l]),ae=Z.add(ee).divideBy(2),he=y.unproject(ae).lat,Ce=Math.acos((Math.cos(F*P)-Math.sin(f*P)*Math.sin(he*P))/(Math.cos(f*P)*Math.cos(he*P)))/P;(isNaN(Ce)||Ce===0)&&(Ce=F/Math.cos(Math.PI/180*f)),this._point=ae.subtract(y.getPixelOrigin()),this._radius=isNaN(Ce)?0:ae.x-y.project([he,l-Ce]).x,this._radiusY=ae.y-Z.y}else{var Oe=S.unproject(S.project(this._latlng).subtract([this._mRadius,0]));this._point=y.latLngToLayerPoint(this._latlng),this._radius=this._point.x-y.latLngToLayerPoint(Oe).x}this._updateBounds()}});function Uk(l,f,y){return new Mp(l,f,y)}var fi=Li.extend({options:{smoothFactor:1,noClip:!1},initialize:function(l,f){g(this,f),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 f=1/0,y=null,S=Vs,P,F,Z=0,ee=this._parts.length;Z<ee;Z++)for(var ae=this._parts[Z],he=1,Ce=ae.length;he<Ce;he++){P=ae[he-1],F=ae[he];var Oe=S(l,P,F,!0);Oe<f&&(f=Oe,y=S(l,P,F))}return y&&(y.distance=Math.sqrt(f)),y},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return k1(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(l,f){return f=f||this._defaultShape(),l=se(l),f.push(l),this._bounds.extend(l),this.redraw()},_setLatLngs:function(l){this._bounds=new ne,this._latlngs=this._convertLatLngs(l)},_defaultShape:function(){return un(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(l){for(var f=[],y=un(l),S=0,P=l.length;S<P;S++)y?(f[S]=se(l[S]),this._bounds.extend(f[S])):f[S]=this._convertLatLngs(l[S]);return f},_project:function(){var l=new K;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(),f=new Y(l,l);this._rawPxBounds&&(this._pxBounds=new K([this._rawPxBounds.min.subtract(f),this._rawPxBounds.max.add(f)]))},_projectLatlngs:function(l,f,y){var S=l[0]instanceof oe,P=l.length,F,Z;if(S){for(Z=[],F=0;F<P;F++)Z[F]=this._map.latLngToLayerPoint(l[F]),y.extend(Z[F]);f.push(Z)}else for(F=0;F<P;F++)this._projectLatlngs(l[F],f,y)},_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 f=this._parts,y,S,P,F,Z,ee,ae;for(y=0,P=0,F=this._rings.length;y<F;y++)for(ae=this._rings[y],S=0,Z=ae.length;S<Z-1;S++)ee=R1(ae[S],ae[S+1],l,S,!0),ee&&(f[P]=f[P]||[],f[P].push(ee[0]),(ee[1]!==ae[S+1]||S===Z-2)&&(f[P].push(ee[1]),P++))}},_simplifyPoints:function(){for(var l=this._parts,f=this.options.smoothFactor,y=0,S=l.length;y<S;y++)l[y]=M1(l[y],f)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(l,f){var y,S,P,F,Z,ee,ae=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(l))return!1;for(y=0,F=this._parts.length;y<F;y++)for(ee=this._parts[y],S=0,Z=ee.length,P=Z-1;S<Z;P=S++)if(!(!f&&S===0)&&A1(l,ee[P],ee[S])<=ae)return!0;return!1}});function Vk(l,f){return new fi(l,f)}fi._flat=O1;var oo=fi.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 E1(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(l){var f=fi.prototype._convertLatLngs.call(this,l),y=f.length;return y>=2&&f[0]instanceof oe&&f[0].equals(f[y-1])&&f.pop(),f},_setLatLngs:function(l){fi.prototype._setLatLngs.call(this,l),un(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return un(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var l=this._renderer._bounds,f=this.options.weight,y=new Y(f,f);if(l=new K(l.min.subtract(y),l.max.add(y)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(l))){if(this.options.noClip){this._parts=this._rings;return}for(var S=0,P=this._rings.length,F;S<P;S++)F=S1(this._rings[S],l,!0),F.length&&this._parts.push(F)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(l){var f=!1,y,S,P,F,Z,ee,ae,he;if(!this._pxBounds||!this._pxBounds.contains(l))return!1;for(F=0,ae=this._parts.length;F<ae;F++)for(y=this._parts[F],Z=0,he=y.length,ee=he-1;Z<he;ee=Z++)S=y[Z],P=y[ee],S.y>l.y!=P.y>l.y&&l.x<(P.x-S.x)*(l.y-S.y)/(P.y-S.y)+S.x&&(f=!f);return f||fi.prototype._containsPoint.call(this,l,!0)}});function Gk(l,f){return new oo(l,f)}var pi=hi.extend({initialize:function(l,f){g(this,f),this._layers={},l&&this.addData(l)},addData:function(l){var f=E(l)?l:l.features,y,S,P;if(f){for(y=0,S=f.length;y<S;y++)P=f[y],(P.geometries||P.geometry||P.features||P.coordinates)&&this.addData(P);return this}var F=this.options;if(F.filter&&!F.filter(l))return this;var Z=yc(l,F);return Z?(Z.feature=wc(l),Z.defaultOptions=Z.options,this.resetStyle(Z),F.onEachFeature&&F.onEachFeature(l,Z),this.addLayer(Z)):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(f){this._setLayerStyle(f,l)},this)},_setLayerStyle:function(l,f){l.setStyle&&(typeof f=="function"&&(f=f(l.feature)),l.setStyle(f))}});function yc(l,f){var y=l.type==="Feature"?l.geometry:l,S=y?y.coordinates:null,P=[],F=f&&f.pointToLayer,Z=f&&f.coordsToLatLng||Ap,ee,ae,he,Ce;if(!S&&!y)return null;switch(y.type){case"Point":return ee=Z(S),I1(F,l,ee,f);case"MultiPoint":for(he=0,Ce=S.length;he<Ce;he++)ee=Z(S[he]),P.push(I1(F,l,ee,f));return new hi(P);case"LineString":case"MultiLineString":return ae=bc(S,y.type==="LineString"?0:1,Z),new fi(ae,f);case"Polygon":case"MultiPolygon":return ae=bc(S,y.type==="Polygon"?1:2,Z),new oo(ae,f);case"GeometryCollection":for(he=0,Ce=y.geometries.length;he<Ce;he++){var Oe=yc({geometry:y.geometries[he],type:"Feature",properties:l.properties},f);Oe&&P.push(Oe)}return new hi(P);case"FeatureCollection":for(he=0,Ce=y.features.length;he<Ce;he++){var qe=yc(y.features[he],f);qe&&P.push(qe)}return new hi(P);default:throw new Error("Invalid GeoJSON object.")}}function I1(l,f,y,S){return l?l(f,y):new gc(y,S&&S.markersInheritOptions&&S)}function Ap(l){return new oe(l[1],l[0],l[2])}function bc(l,f,y){for(var S=[],P=0,F=l.length,Z;P<F;P++)Z=f?bc(l[P],f-1,y):(y||Ap)(l[P]),S.push(Z);return S}function Pp(l,f){return l=se(l),l.alt!==void 0?[p(l.lng,f),p(l.lat,f),p(l.alt,f)]:[p(l.lng,f),p(l.lat,f)]}function _c(l,f,y,S){for(var P=[],F=0,Z=l.length;F<Z;F++)P.push(f?_c(l[F],un(l[F])?0:f-1,y,S):Pp(l[F],S));return!f&&y&&P.length>0&&P.push(P[0].slice()),P}function so(l,f){return l.feature?i({},l.feature,{geometry:f}):wc(f)}function wc(l){return l.type==="Feature"||l.type==="FeatureCollection"?l:{type:"Feature",properties:{},geometry:l}}var Rp={toGeoJSON:function(l){return so(this,{type:"Point",coordinates:Pp(this.getLatLng(),l)})}};gc.include(Rp),Mp.include(Rp),vc.include(Rp),fi.include({toGeoJSON:function(l){var f=!un(this._latlngs),y=_c(this._latlngs,f?1:0,!1,l);return so(this,{type:(f?"Multi":"")+"LineString",coordinates:y})}}),oo.include({toGeoJSON:function(l){var f=!un(this._latlngs),y=f&&!un(this._latlngs[0]),S=_c(this._latlngs,y?2:f?1:0,!0,l);return f||(S=[S]),so(this,{type:(y?"Multi":"")+"Polygon",coordinates:S})}}),io.include({toMultiPoint:function(l){var f=[];return this.eachLayer(function(y){f.push(y.toGeoJSON(l).geometry.coordinates)}),so(this,{type:"MultiPoint",coordinates:f})},toGeoJSON:function(l){var f=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(f==="MultiPoint")return this.toMultiPoint(l);var y=f==="GeometryCollection",S=[];return this.eachLayer(function(P){if(P.toGeoJSON){var F=P.toGeoJSON(l);if(y)S.push(F.geometry);else{var Z=wc(F);Z.type==="FeatureCollection"?S.push.apply(S,Z.features):S.push(Z)}}}),y?so(this,{geometries:S,type:"GeometryCollection"}):{type:"FeatureCollection",features:S}}});function L1(l,f){return new pi(l,f)}var qk=L1,Cc=Tn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(l,f,y){this._url=l,this._bounds=te(f),g(this,y)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Ge(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){It(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&&ro(this._image),this},bringToBack:function(){return this._map&&no(this._image),this},setUrl:function(l){return this._url=l,this._image&&(this._image.src=l),this},setBounds:function(l){return this._bounds=te(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",f=this._image=l?this._url:et("img");if(Ge(f,"leaflet-image-layer"),this._zoomAnimated&&Ge(f,"leaflet-zoom-animated"),this.options.className&&Ge(f,this.options.className),f.onselectstart=h,f.onmousemove=h,f.onload=o(this.fire,this,"load"),f.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(f.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),l){this._url=f.src;return}f.src=this._url,f.alt=this.options.alt},_animateZoom:function(l){var f=this._map.getZoomScale(l.zoom),y=this._map._latLngBoundsToNewLayerBounds(this._bounds,l.zoom,l.center).min;da(this._image,y,f)},_reset:function(){var l=this._image,f=new K(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),y=f.getSize();Kt(l,f.min),l.style.width=y.x+"px",l.style.height=y.y+"px"},_updateOpacity:function(){ln(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()}}),Yk=function(l,f,y){return new Cc(l,f,y)},F1=Cc.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var l=this._url.tagName==="VIDEO",f=this._image=l?this._url:et("video");if(Ge(f,"leaflet-image-layer"),this._zoomAnimated&&Ge(f,"leaflet-zoom-animated"),this.options.className&&Ge(f,this.options.className),f.onselectstart=h,f.onmousemove=h,f.onloadeddata=o(this.fire,this,"load"),l){for(var y=f.getElementsByTagName("source"),S=[],P=0;P<y.length;P++)S.push(y[P].src);this._url=y.length>0?S:[f.src];return}E(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(f.style,"objectFit")&&(f.style.objectFit="fill"),f.autoplay=!!this.options.autoplay,f.loop=!!this.options.loop,f.muted=!!this.options.muted,f.playsInline=!!this.options.playsInline;for(var F=0;F<this._url.length;F++){var Z=et("source");Z.src=this._url[F],f.appendChild(Z)}}});function Xk(l,f,y){return new F1(l,f,y)}var $1=Cc.extend({_initImage:function(){var l=this._image=this._url;Ge(l,"leaflet-image-layer"),this._zoomAnimated&&Ge(l,"leaflet-zoom-animated"),this.options.className&&Ge(l,this.options.className),l.onselectstart=h,l.onmousemove=h}});function Kk(l,f,y){return new $1(l,f,y)}var $n=Tn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(l,f){l&&(l instanceof oe||E(l))?(this._latlng=se(l),g(this,f)):(g(this,l),this._source=f),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&&ln(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),l._fadeAnimated&&ln(this._container,1),this.bringToFront(),this.options.interactive&&(Ge(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(l){l._fadeAnimated?(ln(this._container,0),this._removeTimeout=setTimeout(o(It,void 0,this._container),200)):It(this._container),this.options.interactive&&(Ut(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&&ro(this._container),this},bringToBack:function(){return this._map&&no(this._container),this},_prepareOpen:function(l){var f=this._source;if(!f._map)return!1;if(f instanceof hi){f=null;var y=this._source._layers;for(var S in y)if(y[S]._map){f=y[S];break}if(!f)return!1;this._source=f}if(!l)if(f.getCenter)l=f.getCenter();else if(f.getLatLng)l=f.getLatLng();else if(f.getBounds)l=f.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,f=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof f=="string")l.innerHTML=f;else{for(;l.hasChildNodes();)l.removeChild(l.firstChild);l.appendChild(f)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var l=this._map.latLngToLayerPoint(this._latlng),f=W(this.options.offset),y=this._getAnchor();this._zoomAnimated?Kt(this._container,l.add(y)):f=f.add(l).add(y);var S=this._containerBottom=-f.y,P=this._containerLeft=-Math.round(this._containerWidth/2)+f.x;this._container.style.bottom=S+"px",this._container.style.left=P+"px"}},_getAnchor:function(){return[0,0]}});Qe.include({_initOverlay:function(l,f,y,S){var P=f;return P instanceof l||(P=new l(S).setContent(f)),y&&P.setLatLng(y),P}}),Tn.include({_initOverlay:function(l,f,y,S){var P=y;return P instanceof l?(g(P,S),P._source=this):(P=f&&!S?f:new l(S,this),P.setContent(y)),P}});var xc=$n.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,$n.prototype.openOn.call(this,l)},onAdd:function(l){$n.prototype.onAdd.call(this,l),l.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Li||this._source.on("preclick",fa))},onRemove:function(l){$n.prototype.onRemove.call(this,l),l.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Li||this._source.off("preclick",fa))},getEvents:function(){var l=$n.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",f=this._container=et("div",l+" "+(this.options.className||"")+" leaflet-zoom-animated"),y=this._wrapper=et("div",l+"-content-wrapper",f);if(this._contentNode=et("div",l+"-content",y),Ws(f),bp(this._contentNode),ze(f,"contextmenu",fa),this._tipContainer=et("div",l+"-tip-container",f),this._tip=et("div",l+"-tip",this._tipContainer),this.options.closeButton){var S=this._closeButton=et("a",l+"-close-button",f);S.setAttribute("role","button"),S.setAttribute("aria-label","Close popup"),S.href="#close",S.innerHTML='<span aria-hidden="true">&#215;</span>',ze(S,"click",function(P){dr(P),this.close()},this)}},_updateLayout:function(){var l=this._contentNode,f=l.style;f.width="",f.whiteSpace="nowrap";var y=l.offsetWidth;y=Math.min(y,this.options.maxWidth),y=Math.max(y,this.options.minWidth),f.width=y+1+"px",f.whiteSpace="",f.height="";var S=l.offsetHeight,P=this.options.maxHeight,F="leaflet-popup-scrolled";P&&S>P?(f.height=P+"px",Ge(l,F)):Ut(l,F),this._containerWidth=this._container.offsetWidth},_animateZoom:function(l){var f=this._map._latLngToNewLayerPoint(this._latlng,l.zoom,l.center),y=this._getAnchor();Kt(this._container,f.add(y))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var l=this._map,f=parseInt(Bs(this._container,"marginBottom"),10)||0,y=this._container.offsetHeight+f,S=this._containerWidth,P=new Y(this._containerLeft,-y-this._containerBottom);P._add(ha(this._container));var F=l.layerPointToContainerPoint(P),Z=W(this.options.autoPanPadding),ee=W(this.options.autoPanPaddingTopLeft||Z),ae=W(this.options.autoPanPaddingBottomRight||Z),he=l.getSize(),Ce=0,Oe=0;F.x+S+ae.x>he.x&&(Ce=F.x+S-he.x+ae.x),F.x-Ce-ee.x<0&&(Ce=F.x-ee.x),F.y+y+ae.y>he.y&&(Oe=F.y+y-he.y+ae.y),F.y-Oe-ee.y<0&&(Oe=F.y-ee.y),(Ce||Oe)&&(this.options.keepInView&&(this._autopanning=!0),l.fire("autopanstart").panBy([Ce,Oe]))}},_getAnchor:function(){return W(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Zk=function(l,f){return new xc(l,f)};Qe.mergeOptions({closePopupOnClick:!0}),Qe.include({openPopup:function(l,f,y){return this._initOverlay(xc,l,f,y).openOn(this),this},closePopup:function(l){return l=arguments.length?l:this._popup,l&&l.close(),this}}),Tn.include({bindPopup:function(l,f){return this._popup=this._initOverlay(xc,this._popup,l,f),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 hi||(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)){pa(l);var f=l.layer||l.target;if(this._popup._source===f&&!(f instanceof Li)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(l.latlng);return}this._popup._source=f,this.openPopup(l.latlng)}},_movePopup:function(l){this._popup.setLatLng(l.latlng)},_onKeyPress:function(l){l.originalEvent.keyCode===13&&this._openPopup(l)}});var Tc=$n.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(l){$n.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){$n.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=$n.prototype.getEvents.call(this);return this.options.permanent||(l.preclick=this.close),l},_initLayout:function(){var l="leaflet-tooltip",f=l+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=et("div",f),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+u(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(l){var f,y,S=this._map,P=this._container,F=S.latLngToContainerPoint(S.getCenter()),Z=S.layerPointToContainerPoint(l),ee=this.options.direction,ae=P.offsetWidth,he=P.offsetHeight,Ce=W(this.options.offset),Oe=this._getAnchor();ee==="top"?(f=ae/2,y=he):ee==="bottom"?(f=ae/2,y=0):ee==="center"?(f=ae/2,y=he/2):ee==="right"?(f=0,y=he/2):ee==="left"?(f=ae,y=he/2):Z.x<F.x?(ee="right",f=0,y=he/2):(ee="left",f=ae+(Ce.x+Oe.x)*2,y=he/2),l=l.subtract(W(f,y,!0)).add(Ce).add(Oe),Ut(P,"leaflet-tooltip-right"),Ut(P,"leaflet-tooltip-left"),Ut(P,"leaflet-tooltip-top"),Ut(P,"leaflet-tooltip-bottom"),Ge(P,"leaflet-tooltip-"+ee),Kt(P,l)},_updatePosition:function(){var l=this._map.latLngToLayerPoint(this._latlng);this._setPosition(l)},setOpacity:function(l){this.options.opacity=l,this._container&&ln(this._container,l)},_animateZoom:function(l){var f=this._map._latLngToNewLayerPoint(this._latlng,l.zoom,l.center);this._setPosition(f)},_getAnchor:function(){return W(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Qk=function(l,f){return new Tc(l,f)};Qe.include({openTooltip:function(l,f,y){return this._initOverlay(Tc,l,f,y).openOn(this),this},closeTooltip:function(l){return l.close(),this}}),Tn.include({bindTooltip:function(l,f){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Tc,this._tooltip,l,f),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 f=l?"off":"on",y={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?y.add=this._openTooltip:(y.mouseover=this._openTooltip,y.mouseout=this.closeTooltip,y.click=this._openTooltip,this._map?this._addFocusListeners():y.add=this._addFocusListeners),this._tooltip.options.sticky&&(y.mousemove=this._moveTooltip),this[f](y),this._tooltipHandlersAdded=!l}},openTooltip:function(l){return this._tooltip&&(this instanceof hi||(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 f=typeof l.getElement=="function"&&l.getElement();f&&(ze(f,"focus",function(){this._tooltip._source=l,this.openTooltip()},this),ze(f,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(l){var f=typeof l.getElement=="function"&&l.getElement();f&&f.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 f=this;this._map.once("moveend",function(){f._openOnceFlag=!1,f._openTooltip(l)});return}this._tooltip._source=l.layer||l.target,this.openTooltip(this._tooltip.options.sticky?l.latlng:void 0)}},_moveTooltip:function(l){var f=l.latlng,y,S;this._tooltip.options.sticky&&l.originalEvent&&(y=this._map.mouseEventToContainerPoint(l.originalEvent),S=this._map.containerPointToLayerPoint(y),f=this._map.layerPointToLatLng(S)),this._tooltip.setLatLng(f)}});var B1=ao.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(l){var f=l&&l.tagName==="DIV"?l:document.createElement("div"),y=this.options;if(y.html instanceof Element?(cc(f),f.appendChild(y.html)):f.innerHTML=y.html!==!1?y.html:"",y.bgPos){var S=W(y.bgPos);f.style.backgroundPosition=-S.x+"px "+-S.y+"px"}return this._setIconStyles(f,"icon"),f},createShadow:function(){return null}});function Jk(l){return new B1(l)}ao.Default=Gs;var qs=Tn.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){g(this,l)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(l){l._addZoomLimit(this)},onRemove:function(l){this._removeAllTiles(),It(this._container),l._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ro(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(no(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 Y?l:new Y(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 f=this.getPane().children,y=-l(-1/0,1/0),S=0,P=f.length,F;S<P;S++)F=f[S].style.zIndex,f[S]!==this._container&&F&&(y=l(y,+F));isFinite(y)&&(this.options.zIndex=y+l(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Pe.ielt9){ln(this._container,this.options.opacity);var l=+new Date,f=!1,y=!1;for(var S in this._tiles){var P=this._tiles[S];if(!(!P.current||!P.loaded)){var F=Math.min(1,(l-P.loaded)/200);ln(P.el,F),F<1?f=!0:(P.active?y=!0:this._onOpaqueTile(P),P.active=!0)}}y&&!this._noPrune&&this._pruneTiles(),f&&(O(this._fadeFrame),this._fadeFrame=q(this._updateOpacity,this))}},_onOpaqueTile:h,_initContainer:function(){this._container||(this._container=et("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,f=this.options.maxZoom;if(l!==void 0){for(var y in this._levels)y=Number(y),this._levels[y].el.children.length||y===l?(this._levels[y].el.style.zIndex=f-Math.abs(l-y),this._onUpdateLevel(y)):(It(this._levels[y].el),this._removeTilesAtZoom(y),this._onRemoveLevel(y),delete this._levels[y]);var S=this._levels[l],P=this._map;return S||(S=this._levels[l]={},S.el=et("div","leaflet-tile-container leaflet-zoom-animated",this._container),S.el.style.zIndex=f,S.origin=P.project(P.unproject(P.getPixelOrigin()),l).round(),S.zoom=l,this._setZoomTransform(S,P.getCenter(),P.getZoom()),this._onCreateLevel(S)),this._level=S,S}},_onUpdateLevel:h,_onRemoveLevel:h,_onCreateLevel:h,_pruneTiles:function(){if(this._map){var l,f,y=this._map.getZoom();if(y>this.options.maxZoom||y<this.options.minZoom){this._removeAllTiles();return}for(l in this._tiles)f=this._tiles[l],f.retain=f.current;for(l in this._tiles)if(f=this._tiles[l],f.current&&!f.active){var S=f.coords;this._retainParent(S.x,S.y,S.z,S.z-5)||this._retainChildren(S.x,S.y,S.z,S.z+2)}for(l in this._tiles)this._tiles[l].retain||this._removeTile(l)}},_removeTilesAtZoom:function(l){for(var f in this._tiles)this._tiles[f].coords.z===l&&this._removeTile(f)},_removeAllTiles:function(){for(var l in this._tiles)this._removeTile(l)},_invalidateAll:function(){for(var l in this._levels)It(this._levels[l].el),this._onRemoveLevel(Number(l)),delete this._levels[l];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(l,f,y,S){var P=Math.floor(l/2),F=Math.floor(f/2),Z=y-1,ee=new Y(+P,+F);ee.z=+Z;var ae=this._tileCoordsToKey(ee),he=this._tiles[ae];return he&&he.active?(he.retain=!0,!0):(he&&he.loaded&&(he.retain=!0),Z>S?this._retainParent(P,F,Z,S):!1)},_retainChildren:function(l,f,y,S){for(var P=2*l;P<2*l+2;P++)for(var F=2*f;F<2*f+2;F++){var Z=new Y(P,F);Z.z=y+1;var ee=this._tileCoordsToKey(Z),ae=this._tiles[ee];if(ae&&ae.active){ae.retain=!0;continue}else ae&&ae.loaded&&(ae.retain=!0);y+1<S&&this._retainChildren(P,F,y+1,S)}},_resetView:function(l){var f=l&&(l.pinch||l.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),f,f)},_animateZoom:function(l){this._setView(l.center,l.zoom,!0,l.noUpdate)},_clampZoom:function(l){var f=this.options;return f.minNativeZoom!==void 0&&l<f.minNativeZoom?f.minNativeZoom:f.maxNativeZoom!==void 0&&f.maxNativeZoom<l?f.maxNativeZoom:l},_setView:function(l,f,y,S){var P=Math.round(f);this.options.maxZoom!==void 0&&P>this.options.maxZoom||this.options.minZoom!==void 0&&P<this.options.minZoom?P=void 0:P=this._clampZoom(P);var F=this.options.updateWhenZooming&&P!==this._tileZoom;(!S||F)&&(this._tileZoom=P,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),P!==void 0&&this._update(l),y||this._pruneTiles(),this._noPrune=!!y),this._setZoomTransforms(l,f)},_setZoomTransforms:function(l,f){for(var y in this._levels)this._setZoomTransform(this._levels[y],l,f)},_setZoomTransform:function(l,f,y){var S=this._map.getZoomScale(y,l.zoom),P=l.origin.multiplyBy(S).subtract(this._map._getNewPixelOrigin(f,y)).round();Pe.any3d?da(l.el,P,S):Kt(l.el,P)},_resetGrid:function(){var l=this._map,f=l.options.crs,y=this._tileSize=this.getTileSize(),S=this._tileZoom,P=this._map.getPixelWorldBounds(this._tileZoom);P&&(this._globalTileRange=this._pxBoundsToTileRange(P)),this._wrapX=f.wrapLng&&!this.options.noWrap&&[Math.floor(l.project([0,f.wrapLng[0]],S).x/y.x),Math.ceil(l.project([0,f.wrapLng[1]],S).x/y.y)],this._wrapY=f.wrapLat&&!this.options.noWrap&&[Math.floor(l.project([f.wrapLat[0],0],S).y/y.x),Math.ceil(l.project([f.wrapLat[1],0],S).y/y.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(l){var f=this._map,y=f._animatingZoom?Math.max(f._animateToZoom,f.getZoom()):f.getZoom(),S=f.getZoomScale(y,this._tileZoom),P=f.project(l,this._tileZoom).floor(),F=f.getSize().divideBy(S*2);return new K(P.subtract(F),P.add(F))},_update:function(l){var f=this._map;if(f){var y=this._clampZoom(f.getZoom());if(l===void 0&&(l=f.getCenter()),this._tileZoom!==void 0){var S=this._getTiledPixelBounds(l),P=this._pxBoundsToTileRange(S),F=P.getCenter(),Z=[],ee=this.options.keepBuffer,ae=new K(P.getBottomLeft().subtract([ee,-ee]),P.getTopRight().add([ee,-ee]));if(!(isFinite(P.min.x)&&isFinite(P.min.y)&&isFinite(P.max.x)&&isFinite(P.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var he in this._tiles){var Ce=this._tiles[he].coords;(Ce.z!==this._tileZoom||!ae.contains(new Y(Ce.x,Ce.y)))&&(this._tiles[he].current=!1)}if(Math.abs(y-this._tileZoom)>1){this._setView(l,y);return}for(var Oe=P.min.y;Oe<=P.max.y;Oe++)for(var qe=P.min.x;qe<=P.max.x;qe++){var Sr=new Y(qe,Oe);if(Sr.z=this._tileZoom,!!this._isValidTile(Sr)){var or=this._tiles[this._tileCoordsToKey(Sr)];or?or.current=!0:Z.push(Sr)}}if(Z.sort(function(Lr,uo){return Lr.distanceTo(F)-uo.distanceTo(F)}),Z.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var cn=document.createDocumentFragment();for(qe=0;qe<Z.length;qe++)this._addTile(Z[qe],cn);this._level.el.appendChild(cn)}}}},_isValidTile:function(l){var f=this._map.options.crs;if(!f.infinite){var y=this._globalTileRange;if(!f.wrapLng&&(l.x<y.min.x||l.x>y.max.x)||!f.wrapLat&&(l.y<y.min.y||l.y>y.max.y))return!1}if(!this.options.bounds)return!0;var S=this._tileCoordsToBounds(l);return te(this.options.bounds).overlaps(S)},_keyToBounds:function(l){return this._tileCoordsToBounds(this._keyToTileCoords(l))},_tileCoordsToNwSe:function(l){var f=this._map,y=this.getTileSize(),S=l.scaleBy(y),P=S.add(y),F=f.unproject(S,l.z),Z=f.unproject(P,l.z);return[F,Z]},_tileCoordsToBounds:function(l){var f=this._tileCoordsToNwSe(l),y=new ne(f[0],f[1]);return this.options.noWrap||(y=this._map.wrapLatLngBounds(y)),y},_tileCoordsToKey:function(l){return l.x+":"+l.y+":"+l.z},_keyToTileCoords:function(l){var f=l.split(":"),y=new Y(+f[0],+f[1]);return y.z=+f[2],y},_removeTile:function(l){var f=this._tiles[l];f&&(It(f.el),delete this._tiles[l],this.fire("tileunload",{tile:f.el,coords:this._keyToTileCoords(l)}))},_initTile:function(l){Ge(l,"leaflet-tile");var f=this.getTileSize();l.style.width=f.x+"px",l.style.height=f.y+"px",l.onselectstart=h,l.onmousemove=h,Pe.ielt9&&this.options.opacity<1&&ln(l,this.options.opacity)},_addTile:function(l,f){var y=this._getTilePos(l),S=this._tileCoordsToKey(l),P=this.createTile(this._wrapCoords(l),o(this._tileReady,this,l));this._initTile(P),this.createTile.length<2&&q(o(this._tileReady,this,l,null,P)),Kt(P,y),this._tiles[S]={el:P,coords:l,current:!0},f.appendChild(P),this.fire("tileloadstart",{tile:P,coords:l})},_tileReady:function(l,f,y){f&&this.fire("tileerror",{error:f,tile:y,coords:l});var S=this._tileCoordsToKey(l);y=this._tiles[S],y&&(y.loaded=+new Date,this._map._fadeAnimated?(ln(y.el,0),O(this._fadeFrame),this._fadeFrame=q(this._updateOpacity,this)):(y.active=!0,this._pruneTiles()),f||(Ge(y.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:y.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 f=new Y(this._wrapX?d(l.x,this._wrapX):l.x,this._wrapY?d(l.y,this._wrapY):l.y);return f.z=l.z,f},_pxBoundsToTileRange:function(l){var f=this.getTileSize();return new K(l.min.unscaleBy(f).floor(),l.max.unscaleBy(f).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var l in this._tiles)if(!this._tiles[l].loaded)return!1;return!0}});function eD(l){return new qs(l)}var lo=qs.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(l,f){this._url=l,f=g(this,f),f.detectRetina&&Pe.retina&&f.maxZoom>0?(f.tileSize=Math.floor(f.tileSize/2),f.zoomReverse?(f.zoomOffset--,f.minZoom=Math.min(f.maxZoom,f.minZoom+1)):(f.zoomOffset++,f.maxZoom=Math.max(f.minZoom,f.maxZoom-1)),f.minZoom=Math.max(0,f.minZoom)):f.zoomReverse?f.minZoom=Math.min(f.maxZoom,f.minZoom):f.maxZoom=Math.max(f.minZoom,f.maxZoom),typeof f.subdomains=="string"&&(f.subdomains=f.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(l,f){return this._url===l&&f===void 0&&(f=!0),this._url=l,f||this.redraw(),this},createTile:function(l,f){var y=document.createElement("img");return ze(y,"load",o(this._tileOnLoad,this,f,y)),ze(y,"error",o(this._tileOnError,this,f,y)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(y.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(y.referrerPolicy=this.options.referrerPolicy),y.alt="",y.src=this.getTileUrl(l),y},getTileUrl:function(l){var f={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 y=this._globalTileRange.max.y-l.y;this.options.tms&&(f.y=y),f["-y"]=y}return x(this._url,i(f,this.options))},_tileOnLoad:function(l,f){Pe.ielt9?setTimeout(o(l,this,null,f),0):l(null,f)},_tileOnError:function(l,f,y){var S=this.options.errorTileUrl;S&&f.getAttribute("src")!==S&&(f.src=S),l(y,f)},_onTileRemove:function(l){l.tile.onload=null},_getZoomForUrl:function(){var l=this._tileZoom,f=this.options.maxZoom,y=this.options.zoomReverse,S=this.options.zoomOffset;return y&&(l=f-l),l+S},_getSubdomain:function(l){var f=Math.abs(l.x+l.y)%this.options.subdomains.length;return this.options.subdomains[f]},_abortLoading:function(){var l,f;for(l in this._tiles)if(this._tiles[l].coords.z!==this._tileZoom&&(f=this._tiles[l].el,f.onload=h,f.onerror=h,!f.complete)){f.src=A;var y=this._tiles[l].coords;It(f),delete this._tiles[l],this.fire("tileabort",{tile:f,coords:y})}},_removeTile:function(l){var f=this._tiles[l];if(f)return f.el.setAttribute("src",A),qs.prototype._removeTile.call(this,l)},_tileReady:function(l,f,y){if(!(!this._map||y&&y.getAttribute("src")===A))return qs.prototype._tileReady.call(this,l,f,y)}});function H1(l,f){return new lo(l,f)}var z1=lo.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,f){this._url=l;var y=i({},this.defaultWmsParams);for(var S in f)S in this.options||(y[S]=f[S]);f=g(this,f);var P=f.detectRetina&&Pe.retina?2:1,F=this.getTileSize();y.width=F.x*P,y.height=F.y*P,this.wmsParams=y},onAdd:function(l){this._crs=this.options.crs||l.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var f=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[f]=this._crs.code,lo.prototype.onAdd.call(this,l)},getTileUrl:function(l){var f=this._tileCoordsToNwSe(l),y=this._crs,S=ie(y.project(f[0]),y.project(f[1])),P=S.min,F=S.max,Z=(this._wmsVersion>=1.3&&this._crs===D1?[P.y,P.x,F.y,F.x]:[P.x,P.y,F.x,F.y]).join(","),ee=lo.prototype.getTileUrl.call(this,l);return ee+b(this.wmsParams,ee,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+Z},setParams:function(l,f){return i(this.wmsParams,l),f||this.redraw(),this}});function tD(l,f){return new z1(l,f)}lo.WMS=z1,H1.wms=tD;var mi=Tn.extend({options:{padding:.1},initialize:function(l){g(this,l),u(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Ge(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,f){var y=this._map.getZoomScale(f,this._zoom),S=this._map.getSize().multiplyBy(.5+this.options.padding),P=this._map.project(this._center,f),F=S.multiplyBy(-y).add(P).subtract(this._map._getNewPixelOrigin(l,f));Pe.any3d?da(this._container,F,y):Kt(this._container,F)},_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,f=this._map.getSize(),y=this._map.containerPointToLayerPoint(f.multiplyBy(-l)).round();this._bounds=new K(y,y.add(f.multiplyBy(1+l*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),j1=mi.extend({options:{tolerance:0},getEvents:function(){var l=mi.prototype.getEvents.call(this);return l.viewprereset=this._onViewPreReset,l},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){mi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var l=this._container=document.createElement("canvas");ze(l,"mousemove",this._onMouseMove,this),ze(l,"click dblclick mousedown mouseup contextmenu",this._onClick,this),ze(l,"mouseout",this._handleMouseOut,this),l._leaflet_disable_events=!0,this._ctx=l.getContext("2d")},_destroyContainer:function(){O(this._redrawRequest),delete this._ctx,It(this._container),wt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var l;this._redrawBounds=null;for(var f in this._layers)l=this._layers[f],l._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){mi.prototype._update.call(this);var l=this._bounds,f=this._container,y=l.getSize(),S=Pe.retina?2:1;Kt(f,l.min),f.width=S*y.x,f.height=S*y.y,f.style.width=y.x+"px",f.style.height=y.y+"px",Pe.retina&&this._ctx.scale(2,2),this._ctx.translate(-l.min.x,-l.min.y),this.fire("update")}},_reset:function(){mi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(l){this._updateDashArray(l),this._layers[u(l)]=l;var f=l._order={layer:l,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=f),this._drawLast=f,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(l){this._requestRedraw(l)},_removePath:function(l){var f=l._order,y=f.next,S=f.prev;y?y.prev=S:this._drawLast=S,S?S.next=y:this._drawFirst=y,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 f=l.options.dashArray.split(/[, ]+/),y=[],S,P;for(P=0;P<f.length;P++){if(S=Number(f[P]),isNaN(S))return;y.push(S)}l.options._dashArray=y}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 f=(l.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new K,this._redrawBounds.extend(l._pxBounds.min.subtract([f,f])),this._redrawBounds.extend(l._pxBounds.max.add([f,f]))}},_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 f=l.getSize();this._ctx.clearRect(l.min.x,l.min.y,f.x,f.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,f=this._redrawBounds;if(this._ctx.save(),f){var y=f.getSize();this._ctx.beginPath(),this._ctx.rect(f.min.x,f.min.y,y.x,y.y),this._ctx.clip()}this._drawing=!0;for(var S=this._drawFirst;S;S=S.next)l=S.layer,(!f||l._pxBounds&&l._pxBounds.intersects(f))&&l._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(l,f){if(this._drawing){var y,S,P,F,Z=l._parts,ee=Z.length,ae=this._ctx;if(ee){for(ae.beginPath(),y=0;y<ee;y++){for(S=0,P=Z[y].length;S<P;S++)F=Z[y][S],ae[S?"lineTo":"moveTo"](F.x,F.y);f&&ae.closePath()}this._fillStroke(ae,l)}}},_updateCircle:function(l){if(!(!this._drawing||l._empty())){var f=l._point,y=this._ctx,S=Math.max(Math.round(l._radius),1),P=(Math.max(Math.round(l._radiusY),1)||S)/S;P!==1&&(y.save(),y.scale(1,P)),y.beginPath(),y.arc(f.x,f.y/P,S,0,Math.PI*2,!1),P!==1&&y.restore(),this._fillStroke(y,l)}},_fillStroke:function(l,f){var y=f.options;y.fill&&(l.globalAlpha=y.fillOpacity,l.fillStyle=y.fillColor||y.color,l.fill(y.fillRule||"evenodd")),y.stroke&&y.weight!==0&&(l.setLineDash&&l.setLineDash(f.options&&f.options._dashArray||[]),l.globalAlpha=y.opacity,l.lineWidth=y.weight,l.strokeStyle=y.color,l.lineCap=y.lineCap,l.lineJoin=y.lineJoin,l.stroke())},_onClick:function(l){for(var f=this._map.mouseEventToLayerPoint(l),y,S,P=this._drawFirst;P;P=P.next)y=P.layer,y.options.interactive&&y._containsPoint(f)&&(!(l.type==="click"||l.type==="preclick")||!this._map._draggableMoved(y))&&(S=y);this._fireEvent(S?[S]:!1,l)},_onMouseMove:function(l){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var f=this._map.mouseEventToLayerPoint(l);this._handleMouseHover(l,f)}},_handleMouseOut:function(l){var f=this._hoveredLayer;f&&(Ut(this._container,"leaflet-interactive"),this._fireEvent([f],l,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(l,f){if(!this._mouseHoverThrottled){for(var y,S,P=this._drawFirst;P;P=P.next)y=P.layer,y.options.interactive&&y._containsPoint(f)&&(S=y);S!==this._hoveredLayer&&(this._handleMouseOut(l),S&&(Ge(this._container,"leaflet-interactive"),this._fireEvent([S],l,"mouseover"),this._hoveredLayer=S)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,l),this._mouseHoverThrottled=!0,setTimeout(o(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(l,f,y){this._map._fireDOMEvent(f,y||f.type,l)},_bringToFront:function(l){var f=l._order;if(f){var y=f.next,S=f.prev;if(y)y.prev=S;else return;S?S.next=y:y&&(this._drawFirst=y),f.prev=this._drawLast,this._drawLast.next=f,f.next=null,this._drawLast=f,this._requestRedraw(l)}},_bringToBack:function(l){var f=l._order;if(f){var y=f.next,S=f.prev;if(S)S.next=y;else return;y?y.prev=S:S&&(this._drawLast=S),f.prev=null,f.next=this._drawFirst,this._drawFirst.prev=f,this._drawFirst=f,this._requestRedraw(l)}}});function W1(l){return Pe.canvas?new j1(l):null}var Ys=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">')}}(),rD={_initContainer:function(){this._container=et("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(mi.prototype._update.call(this),this.fire("update"))},_initPath:function(l){var f=l._container=Ys("shape");Ge(f,"leaflet-vml-shape "+(this.options.className||"")),f.coordsize="1 1",l._path=Ys("path"),f.appendChild(l._path),this._updateStyle(l),this._layers[u(l)]=l},_addPath:function(l){var f=l._container;this._container.appendChild(f),l.options.interactive&&l.addInteractiveTarget(f)},_removePath:function(l){var f=l._container;It(f),l.removeInteractiveTarget(f),delete this._layers[u(l)]},_updateStyle:function(l){var f=l._stroke,y=l._fill,S=l.options,P=l._container;P.stroked=!!S.stroke,P.filled=!!S.fill,S.stroke?(f||(f=l._stroke=Ys("stroke")),P.appendChild(f),f.weight=S.weight+"px",f.color=S.color,f.opacity=S.opacity,S.dashArray?f.dashStyle=E(S.dashArray)?S.dashArray.join(" "):S.dashArray.replace(/( *, *)/g," "):f.dashStyle="",f.endcap=S.lineCap.replace("butt","flat"),f.joinstyle=S.lineJoin):f&&(P.removeChild(f),l._stroke=null),S.fill?(y||(y=l._fill=Ys("fill")),P.appendChild(y),y.color=S.fillColor||S.color,y.opacity=S.fillOpacity):y&&(P.removeChild(y),l._fill=null)},_updateCircle:function(l){var f=l._point.round(),y=Math.round(l._radius),S=Math.round(l._radiusY||y);this._setPath(l,l._empty()?"M0 0":"AL "+f.x+","+f.y+" "+y+","+S+" 0,"+65535*360)},_setPath:function(l,f){l._path.v=f},_bringToFront:function(l){ro(l._container)},_bringToBack:function(l){no(l._container)}},Sc=Pe.vml?Ys:Ae,Xs=mi.extend({_initContainer:function(){this._container=Sc("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Sc("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){It(this._container),wt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){mi.prototype._update.call(this);var l=this._bounds,f=l.getSize(),y=this._container;(!this._svgSize||!this._svgSize.equals(f))&&(this._svgSize=f,y.setAttribute("width",f.x),y.setAttribute("height",f.y)),Kt(y,l.min),y.setAttribute("viewBox",[l.min.x,l.min.y,f.x,f.y].join(" ")),this.fire("update")}},_initPath:function(l){var f=l._path=Sc("path");l.options.className&&Ge(f,l.options.className),l.options.interactive&&Ge(f,"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){It(l._path),l.removeInteractiveTarget(l._path),delete this._layers[u(l)]},_updatePath:function(l){l._project(),l._update()},_updateStyle:function(l){var f=l._path,y=l.options;f&&(y.stroke?(f.setAttribute("stroke",y.color),f.setAttribute("stroke-opacity",y.opacity),f.setAttribute("stroke-width",y.weight),f.setAttribute("stroke-linecap",y.lineCap),f.setAttribute("stroke-linejoin",y.lineJoin),y.dashArray?f.setAttribute("stroke-dasharray",y.dashArray):f.removeAttribute("stroke-dasharray"),y.dashOffset?f.setAttribute("stroke-dashoffset",y.dashOffset):f.removeAttribute("stroke-dashoffset")):f.setAttribute("stroke","none"),y.fill?(f.setAttribute("fill",y.fillColor||y.color),f.setAttribute("fill-opacity",y.fillOpacity),f.setAttribute("fill-rule",y.fillRule||"evenodd")):f.setAttribute("fill","none"))},_updatePoly:function(l,f){this._setPath(l,Ie(l._parts,f))},_updateCircle:function(l){var f=l._point,y=Math.max(Math.round(l._radius),1),S=Math.max(Math.round(l._radiusY),1)||y,P="a"+y+","+S+" 0 1,0 ",F=l._empty()?"M0 0":"M"+(f.x-y)+","+f.y+P+y*2+",0 "+P+-y*2+",0 ";this._setPath(l,F)},_setPath:function(l,f){l._path.setAttribute("d",f)},_bringToFront:function(l){ro(l._path)},_bringToBack:function(l){no(l._path)}});Pe.vml&&Xs.include(rD);function U1(l){return Pe.svg||Pe.vml?new Xs(l):null}Qe.include({getRenderer:function(l){var f=l.options.renderer||this._getPaneRenderer(l.options.pane)||this.options.renderer||this._renderer;return f||(f=this._renderer=this._createRenderer()),this.hasLayer(f)||this.addLayer(f),f},_getPaneRenderer:function(l){if(l==="overlayPane"||l===void 0)return!1;var f=this._paneRenderers[l];return f===void 0&&(f=this._createRenderer({pane:l}),this._paneRenderers[l]=f),f},_createRenderer:function(l){return this.options.preferCanvas&&W1(l)||U1(l)}});var V1=oo.extend({initialize:function(l,f){oo.prototype.initialize.call(this,this._boundsToLatLngs(l),f)},setBounds:function(l){return this.setLatLngs(this._boundsToLatLngs(l))},_boundsToLatLngs:function(l){return l=te(l),[l.getSouthWest(),l.getNorthWest(),l.getNorthEast(),l.getSouthEast()]}});function nD(l,f){return new V1(l,f)}Xs.create=Sc,Xs.pointsToPath=Ie,pi.geometryToLayer=yc,pi.coordsToLatLng=Ap,pi.coordsToLatLngs=bc,pi.latLngToCoords=Pp,pi.latLngsToCoords=_c,pi.getFeature=so,pi.asFeature=wc,Qe.mergeOptions({boxZoom:!0});var G1=Fn.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(){ze(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){wt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){It(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(),Hs(),dp(),this._startPoint=this._map.mouseEventToContainerPoint(l),ze(document,{contextmenu:pa,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(l){this._moved||(this._moved=!0,this._box=et("div","leaflet-zoom-box",this._container),Ge(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(l);var f=new K(this._point,this._startPoint),y=f.getSize();Kt(this._box,f.min),this._box.style.width=y.x+"px",this._box.style.height=y.y+"px"},_finish:function(){this._moved&&(It(this._box),Ut(this._container,"leaflet-crosshair")),zs(),hp(),wt(document,{contextmenu:pa,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 f=new ne(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(f).fire("boxzoomend",{boxZoomBounds:f})}},_onKeyDown:function(l){l.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Qe.addInitHook("addHandler","boxZoom",G1),Qe.mergeOptions({doubleClickZoom:!0});var q1=Fn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(l){var f=this._map,y=f.getZoom(),S=f.options.zoomDelta,P=l.originalEvent.shiftKey?y-S:y+S;f.options.doubleClickZoom==="center"?f.setZoom(P):f.setZoomAround(l.containerPoint,P)}});Qe.addInitHook("addHandler","doubleClickZoom",q1),Qe.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Y1=Fn.extend({addHooks:function(){if(!this._draggable){var l=this._map;this._draggable=new Ii(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))}Ge(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Ut(this._map._container,"leaflet-grab"),Ut(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 f=te(this._map.options.maxBounds);this._offsetLimit=ie(this._map.latLngToContainerPoint(f.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(f.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 f=this._lastTime=+new Date,y=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(y),this._times.push(f),this._prunePositions(f)}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),f=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=f.subtract(l).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(l,f){return l-(l-f)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var l=this._draggable._newPos.subtract(this._draggable._startPos),f=this._offsetLimit;l.x<f.min.x&&(l.x=this._viscousLimit(l.x,f.min.x)),l.y<f.min.y&&(l.y=this._viscousLimit(l.y,f.min.y)),l.x>f.max.x&&(l.x=this._viscousLimit(l.x,f.max.x)),l.y>f.max.y&&(l.y=this._viscousLimit(l.y,f.max.y)),this._draggable._newPos=this._draggable._startPos.add(l)}},_onPreDragWrap:function(){var l=this._worldWidth,f=Math.round(l/2),y=this._initialWorldOffset,S=this._draggable._newPos.x,P=(S-f+y)%l+f-y,F=(S+f+y)%l-f-y,Z=Math.abs(P+y)<Math.abs(F+y)?P:F;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=Z},_onDragEnd:function(l){var f=this._map,y=f.options,S=!y.inertia||l.noInertia||this._times.length<2;if(f.fire("dragend",l),S)f.fire("moveend");else{this._prunePositions(+new Date);var P=this._lastPos.subtract(this._positions[0]),F=(this._lastTime-this._times[0])/1e3,Z=y.easeLinearity,ee=P.multiplyBy(Z/F),ae=ee.distanceTo([0,0]),he=Math.min(y.inertiaMaxSpeed,ae),Ce=ee.multiplyBy(he/ae),Oe=he/(y.inertiaDeceleration*Z),qe=Ce.multiplyBy(-Oe/2).round();!qe.x&&!qe.y?f.fire("moveend"):(qe=f._limitOffset(qe,f.options.maxBounds),q(function(){f.panBy(qe,{duration:Oe,easeLinearity:Z,noMoveStart:!0,animate:!0})}))}}});Qe.addInitHook("addHandler","dragging",Y1),Qe.mergeOptions({keyboard:!0,keyboardPanDelta:80});var X1=Fn.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"),ze(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(),wt(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,f=document.documentElement,y=l.scrollTop||f.scrollTop,S=l.scrollLeft||f.scrollLeft;this._map._container.focus(),window.scrollTo(S,y)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(l){var f=this._panKeys={},y=this.keyCodes,S,P;for(S=0,P=y.left.length;S<P;S++)f[y.left[S]]=[-1*l,0];for(S=0,P=y.right.length;S<P;S++)f[y.right[S]]=[l,0];for(S=0,P=y.down.length;S<P;S++)f[y.down[S]]=[0,l];for(S=0,P=y.up.length;S<P;S++)f[y.up[S]]=[0,-1*l]},_setZoomDelta:function(l){var f=this._zoomKeys={},y=this.keyCodes,S,P;for(S=0,P=y.zoomIn.length;S<P;S++)f[y.zoomIn[S]]=l;for(S=0,P=y.zoomOut.length;S<P;S++)f[y.zoomOut[S]]=-l},_addHooks:function(){ze(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){wt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(l){if(!(l.altKey||l.ctrlKey||l.metaKey)){var f=l.keyCode,y=this._map,S;if(f in this._panKeys){if(!y._panAnim||!y._panAnim._inProgress)if(S=this._panKeys[f],l.shiftKey&&(S=W(S).multiplyBy(3)),y.options.maxBounds&&(S=y._limitOffset(W(S),y.options.maxBounds)),y.options.worldCopyJump){var P=y.wrapLatLng(y.unproject(y.project(y.getCenter()).add(S)));y.panTo(P)}else y.panBy(S)}else if(f in this._zoomKeys)y.setZoom(y.getZoom()+(l.shiftKey?3:1)*this._zoomKeys[f]);else if(f===27&&y._popup&&y._popup.options.closeOnEscapeKey)y.closePopup();else return;pa(l)}}});Qe.addInitHook("addHandler","keyboard",X1),Qe.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var K1=Fn.extend({addHooks:function(){ze(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){wt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(l){var f=_1(l),y=this._map.options.wheelDebounceTime;this._delta+=f,this._lastMousePos=this._map.mouseEventToContainerPoint(l),this._startTime||(this._startTime=+new Date);var S=Math.max(y-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),S),pa(l)},_performZoom:function(){var l=this._map,f=l.getZoom(),y=this._map.options.zoomSnap||0;l._stop();var S=this._delta/(this._map.options.wheelPxPerZoomLevel*4),P=4*Math.log(2/(1+Math.exp(-Math.abs(S))))/Math.LN2,F=y?Math.ceil(P/y)*y:P,Z=l._limitZoom(f+(this._delta>0?F:-F))-f;this._delta=0,this._startTime=null,Z&&(l.options.scrollWheelZoom==="center"?l.setZoom(f+Z):l.setZoomAround(this._lastMousePos,f+Z))}});Qe.addInitHook("addHandler","scrollWheelZoom",K1);var iD=600;Qe.mergeOptions({tapHold:Pe.touchNative&&Pe.safari&&Pe.mobile,tapTolerance:15});var Z1=Fn.extend({addHooks:function(){ze(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){wt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(l){if(clearTimeout(this._holdTimeout),l.touches.length===1){var f=l.touches[0];this._startPos=this._newPos=new Y(f.clientX,f.clientY),this._holdTimeout=setTimeout(o(function(){this._cancel(),this._isTapValid()&&(ze(document,"touchend",dr),ze(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",f))},this),iD),ze(document,"touchend touchcancel contextmenu",this._cancel,this),ze(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function l(){wt(document,"touchend",dr),wt(document,"touchend touchcancel",l)},_cancel:function(){clearTimeout(this._holdTimeout),wt(document,"touchend touchcancel contextmenu",this._cancel,this),wt(document,"touchmove",this._onMove,this)},_onMove:function(l){var f=l.touches[0];this._newPos=new Y(f.clientX,f.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(l,f){var y=new MouseEvent(l,{bubbles:!0,cancelable:!0,view:window,screenX:f.screenX,screenY:f.screenY,clientX:f.clientX,clientY:f.clientY});y._simulated=!0,f.target.dispatchEvent(y)}});Qe.addInitHook("addHandler","tapHold",Z1),Qe.mergeOptions({touchZoom:Pe.touch,bounceAtZoomLimits:!0});var Q1=Fn.extend({addHooks:function(){Ge(this._map._container,"leaflet-touch-zoom"),ze(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Ut(this._map._container,"leaflet-touch-zoom"),wt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(l){var f=this._map;if(!(!l.touches||l.touches.length!==2||f._animatingZoom||this._zooming)){var y=f.mouseEventToContainerPoint(l.touches[0]),S=f.mouseEventToContainerPoint(l.touches[1]);this._centerPoint=f.getSize()._divideBy(2),this._startLatLng=f.containerPointToLatLng(this._centerPoint),f.options.touchZoom!=="center"&&(this._pinchStartLatLng=f.containerPointToLatLng(y.add(S)._divideBy(2))),this._startDist=y.distanceTo(S),this._startZoom=f.getZoom(),this._moved=!1,this._zooming=!0,f._stop(),ze(document,"touchmove",this._onTouchMove,this),ze(document,"touchend touchcancel",this._onTouchEnd,this),dr(l)}},_onTouchMove:function(l){if(!(!l.touches||l.touches.length!==2||!this._zooming)){var f=this._map,y=f.mouseEventToContainerPoint(l.touches[0]),S=f.mouseEventToContainerPoint(l.touches[1]),P=y.distanceTo(S)/this._startDist;if(this._zoom=f.getScaleZoom(P,this._startZoom),!f.options.bounceAtZoomLimits&&(this._zoom<f.getMinZoom()&&P<1||this._zoom>f.getMaxZoom()&&P>1)&&(this._zoom=f._limitZoom(this._zoom)),f.options.touchZoom==="center"){if(this._center=this._startLatLng,P===1)return}else{var F=y._add(S)._divideBy(2)._subtract(this._centerPoint);if(P===1&&F.x===0&&F.y===0)return;this._center=f.unproject(f.project(this._pinchStartLatLng,this._zoom).subtract(F),this._zoom)}this._moved||(f._moveStart(!0,!1),this._moved=!0),O(this._animRequest);var Z=o(f._move,f,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=q(Z,this,!0),dr(l)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,O(this._animRequest),wt(document,"touchmove",this._onTouchMove,this),wt(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",Q1),Qe.BoxZoom=G1,Qe.DoubleClickZoom=q1,Qe.Drag=Y1,Qe.Keyboard=X1,Qe.ScrollWheelZoom=K1,Qe.TapHold=Z1,Qe.TouchZoom=Q1,r.Bounds=K,r.Browser=Pe,r.CRS=de,r.Canvas=j1,r.Circle=Mp,r.CircleMarker=vc,r.Class=X,r.Control=xn,r.DivIcon=B1,r.DivOverlay=$n,r.DomEvent=Ck,r.DomUtil=_k,r.Draggable=Ii,r.Evented=z,r.FeatureGroup=hi,r.GeoJSON=pi,r.GridLayer=qs,r.Handler=Fn,r.Icon=ao,r.ImageOverlay=Cc,r.LatLng=oe,r.LatLngBounds=ne,r.Layer=Tn,r.LayerGroup=io,r.LineUtil=Ik,r.Map=Qe,r.Marker=gc,r.Mixin=Pk,r.Path=Li,r.Point=Y,r.PolyUtil=Rk,r.Polygon=oo,r.Polyline=fi,r.Popup=xc,r.PosAnimation=w1,r.Projection=Lk,r.Rectangle=V1,r.Renderer=mi,r.SVG=Xs,r.SVGOverlay=$1,r.TileLayer=lo,r.Tooltip=Tc,r.Transformation=ye,r.Util=$,r.VideoOverlay=F1,r.bind=o,r.bounds=ie,r.canvas=W1,r.circle=Uk,r.circleMarker=Wk,r.control=Us,r.divIcon=Jk,r.extend=i,r.featureGroup=Hk,r.geoJSON=L1,r.geoJson=qk,r.gridLayer=eD,r.icon=zk,r.imageOverlay=Yk,r.latLng=se,r.latLngBounds=te,r.layerGroup=Bk,r.map=xk,r.marker=jk,r.point=W,r.polygon=Gk,r.polyline=Vk,r.popup=Zk,r.rectangle=nD,r.setOptions=g,r.stamp=u,r.svg=U1,r.svgOverlay=Kk,r.tileLayer=H1,r.tooltip=Qk,r.transformation=J,r.version=n,r.videoOverlay=Xk;var aD=window.L;r.noConflict=function(){return window.L=aD,this},window.L=r})})(x0,x0.exports);var nM=x0.exports;const wi=w.getDefaultExportFromCjs(nM);var iM={exports:{}};function q7(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 Da=1,Na=2,qo=3,Y7=4,T0=5,Fw=6378137,X7=6356752314e-3,$w=.0066943799901413165,Pl=484813681109536e-20,me=Math.PI/2,K7=.16666666666666666,Z7=.04722222222222222,Q7=.022156084656084655,be=1e-10,pr=.017453292519943295,Yn=57.29577951308232,at=Math.PI/4,nu=Math.PI*2,Gt=3.14159265359,Wr={};Wr.greenwich=0;Wr.lisbon=-9.131906111111;Wr.paris=2.337229166667;Wr.bogota=-74.080916666667;Wr.madrid=-3.687938888889;Wr.rome=12.452333333333;Wr.bern=7.439583333333;Wr.jakarta=106.807719444444;Wr.ferro=-17.666666666667;Wr.brussels=4.367975;Wr.stockholm=18.058277777778;Wr.athens=23.7163375;Wr.oslo=10.722916666667;const J7={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}};var Bw=/[\s_\-\/\(\)]/g;function ra(e,t){if(e[t])return e[t];for(var r=Object.keys(e),n=t.toLowerCase().replace(Bw,""),i=-1,a,o;++i<r.length;)if(a=r[i],o=a.toLowerCase().replace(Bw,""),o===n)return e[a]}function S0(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*pr},lat_1:function(s){t.lat1=s*pr},lat_2:function(s){t.lat2=s*pr},lat_ts:function(s){t.lat_ts=s*pr},lon_0:function(s){t.long0=s*pr},lon_1:function(s){t.long1=s*pr},lon_2:function(s){t.long2=s*pr},alpha:function(s){t.alpha=parseFloat(s)*pr},gamma:function(s){t.rectified_grid_angle=parseFloat(s)},lonc:function(s){t.longc=s*pr},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=ra(J7,s);u&&(t.to_meter=u.to_meter)},from_greenwich:function(s){t.from_greenwich=s*pr},pm:function(s){var u=ra(Wr,s);t.from_greenwich=(u||parseFloat(s))*pr},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 iu=1,aM=2,oM=3,Wd=4,sM=5,Py=-1,eB=/\s/,tB=/[A-Za-z]/,rB=/[A-Za-z84_]/,of=/[,\]]/,lM=/[\d\.E\-\+]/;function Oi(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=iu}Oi.prototype.readCharicter=function(){var e=this.text[this.place++];if(this.state!==Wd)for(;eB.test(e);){if(this.place>=this.text.length)return;e=this.text[this.place++]}switch(this.state){case iu:return this.neutral(e);case aM:return this.keyword(e);case Wd:return this.quoted(e);case sM:return this.afterquote(e);case oM:return this.number(e);case Py:return}};Oi.prototype.afterquote=function(e){if(e==='"'){this.word+='"',this.state=Wd;return}if(of.test(e)){this.word=this.word.trim(),this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in afterquote yet, index '+this.place)};Oi.prototype.afterItem=function(e){if(e===","){this.word!==null&&this.currentObject.push(this.word),this.word=null,this.state=iu;return}if(e==="]"){this.level--,this.word!==null&&(this.currentObject.push(this.word),this.word=null),this.state=iu,this.currentObject=this.stack.pop(),this.currentObject||(this.state=Py);return}};Oi.prototype.number=function(e){if(lM.test(e)){this.word+=e;return}if(of.test(e)){this.word=parseFloat(this.word),this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in number yet, index '+this.place)};Oi.prototype.quoted=function(e){if(e==='"'){this.state=sM;return}this.word+=e};Oi.prototype.keyword=function(e){if(rB.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=iu;return}if(of.test(e)){this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in keyword yet, index '+this.place)};Oi.prototype.neutral=function(e){if(tB.test(e)){this.word=e,this.state=aM;return}if(e==='"'){this.word="",this.state=Wd;return}if(lM.test(e)){this.word=e,this.state=oM;return}if(of.test(e)){this.afterItem(e);return}throw new Error(`havn't handled "`+e+'" in neutral yet, index '+this.place)};Oi.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(this.state===Py)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};function nB(e){var t=new Oi(e);return t.output()}function Hw(e,t,r){Array.isArray(t)&&(r.unshift(t),t=null);var n=t?{}:e,i=r.reduce(function(a,o){return Lo(o,a),a},n);t&&(e[t]=i)}function Lo(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]={},Lo(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&&Lo(e[2],t[r]);return;case"SPHEROID":case"ELLIPSOID":t[r]={name:e[0],a:e[1],rf:e[2]},e.length===4&&Lo(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]],Hw(t,r,e);return;default:for(n=-1;++n<e.length;)if(!Array.isArray(e[n]))return Lo(e,t[r]);return Hw(t,r,e)}}var iB=.017453292519943295;function aB(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 jn(e){return e*iB}function oB(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 d=e.to_meter||1;return c*d}var s=function(c){return aB(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",jn],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",jn],["x0","false_easting",o],["y0","false_northing",o],["long0","central_meridian",jn],["lat0","latitude_of_origin",jn],["lat0","standard_parallel_1",jn],["lat1","standard_parallel_1",jn],["lat2","standard_parallel_2",jn],["azimuth","Azimuth"],["alpha","azimuth",jn],["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=jn(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=jn(e.lat0>0?90:-90))}function uM(e){var t=nB(e),r=t.shift(),n=t.shift();t.unshift(["name",n]),t.unshift(["type",r]);var i={};return Lo(t,i),oB(i),i}function Pr(e){var t=this;if(arguments.length===2){var r=arguments[1];typeof r=="string"?r.charAt(0)==="+"?Pr[e]=S0(arguments[1]):Pr[e]=uM(arguments[1]):Pr[e]=r}else if(arguments.length===1){if(Array.isArray(e))return e.map(function(n){Array.isArray(n)?Pr.apply(t,n):Pr(n)});if(typeof e=="string"){if(e in Pr)return Pr[e]}else"EPSG"in e?Pr["EPSG:"+e.EPSG]=e:"ESRI"in e?Pr["ESRI:"+e.ESRI]=e:"IAU2000"in e?Pr["IAU2000:"+e.IAU2000]=e:console.log(e);return}}q7(Pr);function sB(e){return typeof e=="string"}function lB(e){return e in Pr}var uB=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function cB(e){return uB.some(function(t){return e.indexOf(t)>-1})}var dB=["3857","900913","3785","102113"];function hB(e){var t=ra(e,"authority");if(t){var r=ra(t,"epsg");return r&&dB.indexOf(r)>-1}}function fB(e){var t=ra(e,"extension");if(t)return ra(t,"proj4")}function pB(e){return e[0]==="+"}function mB(e){if(sB(e)){if(lB(e))return Pr[e];if(cB(e)){var t=uM(e);if(hB(t))return Pr["EPSG:3857"];var r=fB(t);return r?S0(r):t}if(pB(e))return S0(e)}else return e}function zw(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 ri(e,t,r){var n=e*t;return r/Math.sqrt(1-n*n)}function Ou(e){return e<0?-1:1}function Te(e){return Math.abs(e)<=Gt?e:e-Ou(e)*nu}function En(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 au(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 gB(){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=ri(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)}function vB(e){var t=e.x,r=e.y;if(r*Yn>90&&r*Yn<-90&&t*Yn>180&&t*Yn<-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*Te(t-this.long0),i=this.y0+this.a*this.k0*Math.log(Math.tan(at+.5*r));else{var a=Math.sin(r),o=En(this.e,r,a);n=this.x0+this.a*this.k0*Te(t-this.long0),i=this.y0-this.a*this.k0*Math.log(o)}return e.x=n,e.y=i,e}function yB(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=au(this.e,a),i===-9999)return null}return n=Te(this.long0+t/(this.a*this.k0)),e.x=n,e.y=i,e}var bB=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"];const _B={init:gB,forward:vB,inverse:yB,names:bB};function wB(){}function jw(e){return e}var CB=["longlat","identity"];const xB={init:wB,forward:jw,inverse:jw,names:CB};var TB=[_B,xB],pd={},Ud=[];function cM(e,t){var r=Ud.length;return e.names?(Ud[r]=e,e.names.forEach(function(n){pd[n.toLowerCase()]=r}),this):(console.log(t),!0)}function SB(e){if(!e)return!1;var t=e.toLowerCase();if(typeof pd[t]!="undefined"&&Ud[pd[t]])return Ud[pd[t]]}function EB(){TB.forEach(cM)}const MB={start:EB,add:cM,get:SB};var Fe={};Fe.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"};Fe.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"};Fe.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"};Fe.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"};Fe.airy={a:6377563396e-3,b:635625691e-2,ellipseName:"Airy 1830"};Fe.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"};Fe.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"};Fe.mod_airy={a:6377340189e-3,b:6356034446e-3,ellipseName:"Modified Airy"};Fe.andrae={a:637710443e-2,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"};Fe.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"};Fe.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"};Fe.bessel={a:6377397155e-3,rf:299.1528128,ellipseName:"Bessel 1841"};Fe.bess_nam={a:6377483865e-3,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"};Fe.clrk66={a:63782064e-1,b:63565838e-1,ellipseName:"Clarke 1866"};Fe.clrk80={a:6378249145e-3,rf:293.4663,ellipseName:"Clarke 1880 mod."};Fe.clrk80ign={a:63782492e-1,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"};Fe.clrk58={a:6378293645208759e-9,rf:294.2606763692654,ellipseName:"Clarke 1858"};Fe.CPM={a:63757387e-1,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"};Fe.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"};Fe.engelis={a:637813605e-2,rf:298.2566,ellipseName:"Engelis 1985"};Fe.evrst30={a:6377276345e-3,rf:300.8017,ellipseName:"Everest 1830"};Fe.evrst48={a:6377304063e-3,rf:300.8017,ellipseName:"Everest 1948"};Fe.evrst56={a:6377301243e-3,rf:300.8017,ellipseName:"Everest 1956"};Fe.evrst69={a:6377295664e-3,rf:300.8017,ellipseName:"Everest 1969"};Fe.evrstSS={a:6377298556e-3,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"};Fe.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"};Fe.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"};Fe.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"};Fe.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"};Fe.hough={a:6378270,rf:297,ellipseName:"Hough"};Fe.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"};Fe.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"};Fe.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"};Fe.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"};Fe.new_intl={a:63781575e-1,b:63567722e-1,ellipseName:"New International 1967"};Fe.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"};Fe.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"};Fe.SEasia={a:6378155,b:63567733205e-4,ellipseName:"Southeast Asia"};Fe.walbeck={a:6376896,b:63558348467e-4,ellipseName:"Walbeck"};Fe.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"};Fe.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"};Fe.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"};var AB=Fe.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};Fe.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};function PB(e,t,r,n){var i=e*e,a=t*t,o=(i-a)/i,s=0;n?(e*=1-o*(K7+o*(Z7+o*Q7)),i=e*e,o=0):s=Math.sqrt(o);var u=(i-a)/a;return{es:o,e:s,ep2:u}}function RB(e,t,r,n,i){if(!e){var a=ra(Fe,n);a||(a=AB),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 nr={};nr.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"};nr.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"};nr.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"};nr.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"};nr.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"};nr.potsdam={towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"};nr.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"};nr.hermannskogel={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"};nr.militargeographische_institut={towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"};nr.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"};nr.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"};nr.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"};nr.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"};nr.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"};nr.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"};nr.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"};nr.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"};nr.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"};function OB(e,t,r,n,i,a,o){var s={};return e===void 0||e==="none"?s.datum_type=T0:s.datum_type=Y7,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=Da),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=Na,s.datum_params[3]*=Pl,s.datum_params[4]*=Pl,s.datum_params[5]*=Pl,s.datum_params[6]=s.datum_params[6]/1e6+1)),o&&(s.datum_type=qo,s.grids=o),s.a=r,s.b=n,s.es=i,s.ep2=a,s}var dM={};function kB(e,t){var r=new DataView(t),n=IB(r),i=LB(r,n),a=FB(r,i,n),o={header:i,subgrids:a};return dM[e]=o,o}function DB(e){if(e===void 0)return null;var t=e.split(",");return t.map(NB)}function NB(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:dM[e]||null,isNull:!1}}function Fo(e){return e/3600*Math.PI/180}function IB(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 LB(e,t){return{nFields:e.getInt32(8,t),nSubgridFields:e.getInt32(24,t),nSubgrids:e.getInt32(40,t),shiftType:E0(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 E0(e,t,r){return String.fromCharCode.apply(null,new Uint8Array(e.buffer.slice(t,r)))}function FB(e,t,r){for(var n=176,i=[],a=0;a<t.nSubgrids;a++){var o=BB(e,n,r),s=HB(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:[Fo(o.lowerLongitude),Fo(o.lowerLatitude)],del:[Fo(o.longitudeInterval),Fo(o.latitudeInterval)],lim:[u,c],count:o.gridNodeCount,cvs:$B(s)}),n+=176+o.gridNodeCount*16}return i}function $B(e){return e.map(function(t){return[Fo(t.longitudeShift),Fo(t.latitudeShift)]})}function BB(e,t,r){return{name:E0(e,t+8,t+16).trim(),parent:E0(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 HB(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 Qn(e,t){if(!(this instanceof Qn))return new Qn(e);t=t||function(c){if(c)throw c};var r=mB(e);if(typeof r!="object"){t(e);return}var n=Qn.projections.get(r.projName);if(!n){t(e);return}if(r.datumCode&&r.datumCode!=="none"){var i=ra(nr,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=RB(r.a,r.b,r.rf,r.ellps,r.sphere),o=PB(a.a,a.b,a.rf,r.R_A),s=DB(r.nadgrids),u=r.datum||OB(r.datumCode,r.datum_params,a.a,a.b,o.es,o.ep2,s);zw(this,r),zw(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)}Qn.projections=MB;Qn.projections.start();function zB(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===Da?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===Na?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 hM(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 fM(e,t,r,n){var i=1e-12,a=i*i,o=30,s,u,c,d,h,p,m,v,g,b,C,x,E,T=e.x,A=e.y,R=e.z?e.z:0,D,I,H;if(s=Math.sqrt(T*T+A*A),u=Math.sqrt(T*T+A*A+R*R),s/r<i){if(D=0,u/r<i)return I=me,H=-n,{x:e.x,y:e.y,z:e.z}}else D=Math.atan2(A,T);c=R/u,d=s/u,h=1/Math.sqrt(1-t*(2-t)*d*d),v=d*(1-t)*h,g=c*h,E=0;do E++,m=r/Math.sqrt(1-t*g*g),H=s*v+R*g-m*(1-t*g*g),p=t*m/(m+H),h=1/Math.sqrt(1-p*(2-p)*d*d),b=d*(1-p)*h,C=c*h,x=C*v-b*g,v=b,g=C;while(x*x>a&&E<o);return I=Math.atan(C/Math.abs(b)),{x:D,y:I,z:H}}function jB(e,t,r){if(t===Da)return{x:e.x+r[0],y:e.y+r[1],z:e.z+r[2]};if(t===Na){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 WB(e,t,r){if(t===Da)return{x:e.x-r[0],y:e.y-r[1],z:e.z-r[2]};if(t===Na){var n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],u=r[5],c=r[6],d=(e.x-n)/c,h=(e.y-i)/c,p=(e.z-a)/c;return{x:d+u*h-s*p,y:-u*d+h+o*p,z:s*d-o*h+p}}}function Hc(e){return e===Da||e===Na}function UB(e,t,r){if(zB(e,t)||e.datum_type===T0||t.datum_type===T0)return r;var n=e.a,i=e.es;if(e.datum_type===qo){var a=Ww(e,!1,r);if(a!==0)return;n=Fw,i=$w}var o=t.a,s=t.b,u=t.es;if(t.datum_type===qo&&(o=Fw,s=X7,u=$w),i===u&&n===o&&!Hc(e.datum_type)&&!Hc(t.datum_type))return r;if(r=hM(r,i,n),Hc(e.datum_type)&&(r=jB(r,e.datum_type,e.datum_params)),Hc(t.datum_type)&&(r=WB(r,t.datum_type,t.datum_params)),r=fM(r,u,o,s),t.datum_type===qo){var c=Ww(t,!0,r);if(c!==0)return}return r}function Ww(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,d=u.length;c<d;c++){var h=u[c],p=(Math.abs(h.del[1])+Math.abs(h.del[0]))/1e4,m=h.ll[0]-p,v=h.ll[1]-p,g=h.ll[0]+(h.lim[0]-1)*h.del[0]+p,b=h.ll[1]+(h.lim[1]-1)*h.del[1]+p;if(!(v>n.y||m>n.x||b<n.y||g<n.x)&&(i=VB(n,t,h),!isNaN(i.x)))break e}}return isNaN(i.x)?(console.log("Failed to find a grid shift table for location '"+-n.x*Yn+" "+n.y*Yn+" tried: '"+a+"'"),-1):(r.x=-i.x,r.y=i.y,0)}function VB(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=Te(i.x-Math.PI)+Math.PI;var a=Uw(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=Uw(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=Te(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 Uw(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 d={x:t.cvs[o][0],y:t.cvs[o][1]},h=i.x*i.y,p=i.x*(1-i.y),m=(1-i.x)*(1-i.y),v=(1-i.x)*i.y;return a.x=m*s.x+p*u.x+v*d.x+h*c.x,a.y=m*s.y+p*u.y+v*d.y+h*c.y,a}function Vw(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 pM(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 GB(e){Gw(e.x),Gw(e.y)}function Gw(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 qB(e,t){return(e.datum.datum_type===Da||e.datum.datum_type===Na||e.datum.datum_type===qo)&&t.datumCode!=="WGS84"||(t.datum.datum_type===Da||t.datum.datum_type===Na||t.datum.datum_type===qo)&&e.datumCode!=="WGS84"}function Vd(e,t,r,n){var i;Array.isArray(r)?r=pM(r):r={x:r.x,y:r.y,z:r.z,m:r.m};var a=r.z!==void 0;if(GB(r),e.datum&&t.datum&&qB(e,t)&&(i=new Qn("WGS84"),r=Vd(e,i,r,n),e=i),n&&e.axis!=="enu"&&(r=Vw(e,!1,r)),e.projName==="longlat")r={x:r.x*pr,y:r.y*pr,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=UB(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*Yn,y:r.y*Yn,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"?Vw(t,!0,r):(r&&!a&&delete r.z,r)}var qw=Qn("WGS84");function om(e,t,r,n){var i,a,o;return Array.isArray(r)?(i=Vd(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=Vd(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 Yw(e){return e instanceof Qn?e:e.oProj?e.oProj:Qn(e)}function Jr(e,t,r){e=Yw(e);var n=!1,i;return typeof t=="undefined"?(t=e,e=qw,n=!0):(typeof t.x!="undefined"||Array.isArray(t))&&(r=t,t=e,e=qw,n=!0),t=Yw(t),r?om(e,t,r):(i={forward:function(a,o){return om(e,t,a,o)},inverse:function(a,o){return om(t,e,a,o)}},n&&(i.oProj=t),i)}var Xw=6,mM="AJSAJS",gM="AFAFAF",$o=65,$r=73,dn=79,bl=86,_l=90;const YB={forward:vM,inverse:XB,toPoint:yM};function vM(e,t){return t=t||5,QB(KB({lat:e[1],lon:e[0]}),t)}function XB(e){var t=Ry(_M(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat,t.lon,t.lat]:[t.left,t.bottom,t.right,t.top]}function yM(e){var t=Ry(_M(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}function sm(e){return e*(Math.PI/180)}function Kw(e){return 180*(e/Math.PI)}function KB(e){var t=e.lat,r=e.lon,n=6378137,i=.00669438,a=.9996,o,s,u,c,d,h,p,m=sm(t),v=sm(r),g,b;b=Math.floor((r+180)/6)+1,r===180&&(b=60),t>=56&&t<64&&r>=3&&r<12&&(b=32),t>=72&&t<84&&(r>=0&&r<9?b=31:r>=9&&r<21?b=33:r>=21&&r<33?b=35:r>=33&&r<42&&(b=37)),o=(b-1)*6-180+3,g=sm(o),s=i/(1-i),u=n/Math.sqrt(1-i*Math.sin(m)*Math.sin(m)),c=Math.tan(m)*Math.tan(m),d=s*Math.cos(m)*Math.cos(m),h=Math.cos(m)*(v-g),p=n*((1-i/4-3*i*i/64-5*i*i*i/256)*m-(3*i/8+3*i*i/32+45*i*i*i/1024)*Math.sin(2*m)+(15*i*i/256+45*i*i*i/1024)*Math.sin(4*m)-35*i*i*i/3072*Math.sin(6*m));var C=a*u*(h+(1-c+d)*h*h*h/6+(5-18*c+c*c+72*d-58*s)*h*h*h*h*h/120)+5e5,x=a*(p+u*Math.tan(m)*(h*h/2+(5-c+9*d+4*d*d)*h*h*h*h/24+(61-58*c+c*c+600*d-330*s)*h*h*h*h*h*h/720));return t<0&&(x+=1e7),{northing:Math.round(x),easting:Math.round(C),zoneNumber:b,zoneLetter:ZB(t)}}function Ry(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)),d,h,p,m,v,g,b,C,x,E=r-5e5,T=t;n<"N"&&(T-=1e7),b=(i-1)*6-180+3,u=s/(1-s),g=T/a,C=g/(o*(1-s/4-3*s*s/64-5*s*s*s/256)),x=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),d=o/Math.sqrt(1-s*Math.sin(x)*Math.sin(x)),h=Math.tan(x)*Math.tan(x),p=u*Math.cos(x)*Math.cos(x),m=o*(1-s)/Math.pow(1-s*Math.sin(x)*Math.sin(x),1.5),v=E/(d*a);var A=x-d*Math.tan(x)/m*(v*v/2-(5+3*h+10*p-4*p*p-9*u)*v*v*v*v/24+(61+90*h+298*p+45*h*h-252*u-3*p*p)*v*v*v*v*v*v/720);A=Kw(A);var R=(v-(1+2*h+p)*v*v*v/6+(5-2*p+28*h-3*p*p+8*u+24*h*h)*v*v*v*v*v/120)/Math.cos(x);R=b+Kw(R);var D;if(e.accuracy){var I=Ry({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});D={top:I.lat,right:I.lon,bottom:A,left:R}}else D={lat:A,lon:R};return D}function ZB(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 QB(e,t){var r="00000"+e.easting,n="00000"+e.northing;return e.zoneNumber+e.zoneLetter+JB(e.easting,e.northing,e.zoneNumber)+r.substr(r.length-5,t)+n.substr(n.length-5,t)}function JB(e,t,r){var n=bM(r),i=Math.floor(e/1e5),a=Math.floor(t/1e5)%20;return e9(i,a,n)}function bM(e){var t=e%Xw;return t===0&&(t=Xw),t}function e9(e,t,r){var n=r-1,i=mM.charCodeAt(n),a=gM.charCodeAt(n),o=i+e-1,s=a+t,u=!1;o>_l&&(o=o-_l+$o-1,u=!0),(o===$r||i<$r&&o>$r||(o>$r||i<$r)&&u)&&o++,(o===dn||i<dn&&o>dn||(o>dn||i<dn)&&u)&&(o++,o===$r&&o++),o>_l&&(o=o-_l+$o-1),s>bl?(s=s-bl+$o-1,u=!0):u=!1,(s===$r||a<$r&&s>$r||(s>$r||a<$r)&&u)&&s++,(s===dn||a<dn&&s>dn||(s>dn||a<dn)&&u)&&(s++,s===$r&&s++),s>bl&&(s=s-bl+$o-1);var c=String.fromCharCode(o)+String.fromCharCode(s);return c}function _M(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=bM(o),c=t9(r.charAt(0),u),d=r9(r.charAt(1),u);d<n9(s);)d+=2e6;var h=t-a;if(h%2!==0)throw`MGRSPoint has to have an even number
215
+ of digits after the zone letter and two 100km letters - front
216
+ half for easting meters, second half for
217
+ northing meters`+e;var p=h/2,m=0,v=0,g,b,C,x,E;return p>0&&(g=1e5/Math.pow(10,p),b=e.substring(a,a+p),m=parseFloat(b)*g,C=e.substring(a+p),v=parseFloat(C)*g),x=m+c,E=v+d,{easting:x,northing:E,zoneLetter:s,zoneNumber:o,accuracy:g}}function t9(e,t){for(var r=mM.charCodeAt(t-1),n=1e5,i=!1;r!==e.charCodeAt(0);){if(r++,r===$r&&r++,r===dn&&r++,r>_l){if(i)throw"Bad character: "+e;r=$o,i=!0}n+=1e5}return n}function r9(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;for(var r=gM.charCodeAt(t-1),n=0,i=!1;r!==e.charCodeAt(0);){if(r++,r===$r&&r++,r===dn&&r++,r>bl){if(i)throw"Bad character: "+e;r=$o,i=!0}n+=1e5}return n}function n9(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 Jo(e,t,r){if(!(this instanceof Jo))return new Jo(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")}Jo.fromMGRS=function(e){return new Jo(yM(e))};Jo.prototype.toMGRS=function(e){return vM([this.x,this.y],e)};var i9=1,a9=.25,Zw=.046875,Qw=.01953125,Jw=.01068115234375,o9=.75,s9=.46875,l9=.013020833333333334,u9=.007120768229166667,c9=.3645833333333333,d9=.005696614583333333,h9=.3076171875;function wM(e){var t=[];t[0]=i9-e*(a9+e*(Zw+e*(Qw+e*Jw))),t[1]=e*(o9-e*(Zw+e*(Qw+e*Jw)));var r=e*e;return t[2]=r*(s9-e*(l9+e*u9)),r*=e,t[3]=r*(c9-e*d9),t[4]=r*e*h9,t}function sf(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 f9=20;function CM(e,t,r){for(var n=1/(1-t),i=e,a=f9;a;--a){var o=Math.sin(i),s=1-t*o*o;if(s=(sf(i,o,Math.cos(i),r)-e)*(s*Math.sqrt(s))*n,i-=s,Math.abs(s)<be)return i}return i}function p9(){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=wM(this.es),this.ml0=sf(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))}function m9(e){var t=e.x,r=e.y,n=Te(t-this.long0),i,a,o,s=Math.sin(r),u=Math.cos(r);if(this.es){var d=u*n,h=Math.pow(d,2),p=this.ep2*Math.pow(u,2),m=Math.pow(p,2),v=Math.abs(u)>be?Math.tan(r):0,g=Math.pow(v,2),b=Math.pow(g,2);i=1-this.es*Math.pow(s,2),d=d/Math.sqrt(i);var C=sf(r,s,u,this.en);a=this.a*(this.k0*d*(1+h/6*(1-g+p+h/20*(5-18*g+b+14*p-58*g*p+h/42*(61+179*b-b*g-479*g)))))+this.x0,o=this.a*(this.k0*(C-this.ml0+s*n*d/2*(1+h/12*(5-g+9*p+4*m+h/30*(61+b-58*g+270*p-330*g*p+h/56*(1385+543*b-b*g-3111*g))))))+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 g9(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=CM(t,this.es,this.en),Math.abs(r)<me){var h=Math.sin(r),p=Math.cos(r),m=Math.abs(p)>be?Math.tan(r):0,v=this.ep2*Math.pow(p,2),g=Math.pow(v,2),b=Math.pow(m,2),C=Math.pow(b,2);t=1-this.es*Math.pow(h,2);var x=a*Math.sqrt(t)/this.k0,E=Math.pow(x,2);t=t*m,n=r-t*E/(1-this.es)*.5*(1-E/12*(5+3*b-9*v*b+v-4*g-E/30*(61+90*b-252*v*b+45*C+46*v-E/56*(1385+3633*b+4095*C+1574*C*b)))),i=Te(this.long0+x*(1-E/6*(1+2*b+v-E/20*(5+28*b+24*C+8*v*b+6*v-E/42*(61+662*b+1320*C+720*C*b))))/p)}else n=me*Ou(o),i=0;else{var s=Math.exp(a/this.k0),u=.5*(s-1/s),c=this.lat0+o/this.k0,d=Math.cos(c);t=Math.sqrt((1-Math.pow(d,2))/(1+Math.pow(u,2))),n=Math.asin(t),o<0&&(n=-n),u===0&&d===0?i=0:i=Te(Math.atan2(u,d)+this.long0)}return e.x=i,e.y=n,e}var v9=["Fast_Transverse_Mercator","Fast Transverse Mercator"];const md={init:p9,forward:m9,inverse:g9,names:v9};function xM(e){var t=Math.exp(e);return t=(t-1/t)/2,t}function mn(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 y9(e){var t=1+e,r=t-1;return r===0?e:e*Math.log(t)/r}function b9(e){var t=Math.abs(e);return t=y9(t*(1+t/(mn(1,t)+1))),e<0?-t:t}function Oy(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 _9(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 w9(e){var t=Math.exp(e);return t=(t+1/t)/2,t}function TM(e,t,r){for(var n=Math.sin(t),i=Math.cos(t),a=xM(r),o=w9(r),s=2*i*o,u=-2*n*a,c=e.length-1,d=e[c],h=0,p=0,m=0,v,g;--c>=0;)v=p,g=h,p=d,h=m,d=-v+s*p-u*h+e[c],m=-g+u*p+s*h;return s=n*o,u=i*a,[s*d-u*m,s*m+u*d]}function C9(){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&&(md.init.apply(this),this.forward=md.forward,this.inverse=md.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=Oy(this.cbg,this.lat0);this.Zb=-this.Qn*(n+_9(this.gtu,2*n))}function x9(e){var t=Te(e.x-this.long0),r=e.y;r=Oy(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,mn(n,i*o)),t=b9(Math.tan(t));var s=TM(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 T9(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=TM(this.utg,2*r,2*t);r=r+a[0],t=t+a[1],t=Math.atan(xM(t));var o=Math.sin(r),s=Math.cos(r),u=Math.sin(t),c=Math.cos(t);r=Math.atan2(o*c,mn(u,c*s)),t=Math.atan2(u,c*s),n=Te(t+this.long0),i=Oy(this.cgb,r)}else n=1/0,i=1/0;return e.x=n,e.y=i,e}var S9=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"];const gd={init:C9,forward:x9,inverse:T9,names:S9};function E9(e,t){if(e===void 0){if(e=Math.floor((Te(t)+Math.PI)*30/Math.PI)+1,e<0)return 0;if(e>60)return 60}return e}var M9="etmerc";function A9(){var e=E9(this.zone,this.long0);if(e===void 0)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(e)-183)*pr,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,gd.init.apply(this),this.forward=gd.forward,this.inverse=gd.inverse}var P9=["Universal Transverse Mercator System","utm"];const R9={init:A9,names:P9,dependsOn:M9};function ky(e,t){return Math.pow((1-e)/(1+e),t)}var O9=20;function k9(){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+at)/(Math.pow(Math.tan(.5*this.lat0+at),this.C)*ky(this.e*e,this.ratexp))}function D9(e){var t=e.x,r=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*r+at),this.C)*ky(this.e*Math.sin(r),this.ratexp))-me,e.x=this.C*t,e}function N9(e){for(var t=1e-14,r=e.x/this.C,n=e.y,i=Math.pow(Math.tan(.5*n+at)/this.K,1/this.C),a=O9;a>0&&(n=2*Math.atan(i*ky(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 I9=["gauss"];const Dy={init:k9,forward:D9,inverse:N9,names:I9};function L9(){Dy.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 F9(e){var t,r,n,i;return e.x=Te(e.x-this.long0),Dy.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 $9(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=mn(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,Dy.inverse.apply(this,[e]),e.x=Te(e.x+this.long0),e}var B9=["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"];const H9={init:L9,forward:F9,inverse:$9,names:B9};function z9(e,t,r){return t*=r,Math.tan(.5*(me+e))*Math.pow((1-t)/(1+t),.5*r)}function j9(){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+Ou(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*ri(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/En(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=ri(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 W9(e){var t=e.x,r=e.y,n=Math.sin(r),i=Math.cos(r),a,o,s,u,c,d,h=Te(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(h)),e.x=this.a*a*i*Math.sin(h)+this.x0,e.y=this.a*a*(this.coslat0*n-this.sinlat0*i*Math.cos(h))+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=En(this.e,r*this.con,this.con*n),d=2*this.a*this.k0*c/this.cons,e.x=this.x0+d*Math.sin(t-this.long0),e.y=this.y0-this.con*d*Math.cos(t-this.long0),e):(Math.abs(this.sinlat0)<be?(a=2*this.a*this.k0/(1+u*Math.cos(h)),e.y=a*s):(a=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*s+this.cosX0*u*Math.cos(h))),e.y=a*(this.cosX0*s-this.sinX0*u*Math.cos(h))+this.y0),e.x=a*u*Math.sin(h)+this.x0,e))}function U9(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=Te(this.long0+Math.atan2(e.x,-1*e.y)):t=Te(this.long0+Math.atan2(e.x,e.y)):t=Te(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*au(this.e,n),t=this.con*Te(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=Te(this.long0+Math.atan2(e.x*Math.sin(i),o*this.cosX0*Math.cos(i)-e.y*this.sinX0*Math.sin(i)))),r=-1*au(this.e,Math.tan(.5*(me+a)));return e.x=t,e.y=r,e}var V9=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)","Polar_Stereographic"];const G9={init:j9,forward:W9,inverse:U9,names:V9,ssfn_:z9};function q9(){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 Y9(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 X9(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,d=-1e3,h=0;Math.abs(c-d)>1e-7;){if(++h>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)),d=c,c=2*Math.atan(Math.exp(u))-Math.PI/2}return e.x=s,e.y=c,e}var K9=["somerc"];const Z9={init:q9,forward:Y9,inverse:X9,names:K9};var Ro=1e-7;function Q9(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 J9(){var e,t,r,n,i,a,o,s,u,c,d=0,h,p=0,m=0,v=0,g=0,b=0,C=0;this.no_off=Q9(this),this.no_rot="no_rot"in this;var x=!1;"alpha"in this&&(x=!0);var E=!1;if("rectified_grid_angle"in this&&(E=!0),x&&(C=this.alpha),E&&(d=this.rectified_grid_angle*pr),x||E)p=this.longc;else if(m=this.long1,g=this.lat1,v=this.long2,b=this.lat2,Math.abs(g-b)<=Ro||(e=Math.abs(g))<=Ro||Math.abs(e-me)<=Ro||Math.abs(Math.abs(this.lat0)-me)<=Ro||Math.abs(Math.abs(b)-me)<=Ro)throw new Error;var T=1-this.es;t=Math.sqrt(T),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/T),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(En(this.e,this.lat0,s),this.B)):(this.B=1/t,this.A=this.k0,this.E=n=i=1),x||E?(x?(h=Math.asin(Math.sin(C)/n),E||(d=C)):(h=d,C=Math.asin(n*Math.sin(h))),this.lam0=p-Math.asin(.5*(i-1/i)*Math.tan(h))/this.B):(a=Math.pow(En(this.e,g,Math.sin(g)),this.B),o=Math.pow(En(this.e,b,Math.sin(b)),this.B),i=this.E/a,u=(o-a)/(o+a),c=this.E*this.E,c=(c-o*a)/(c+o*a),e=m-v,e<-Math.pi?v-=nu:e>Math.pi&&(v+=nu),this.lam0=Te(.5*(m+v)-Math.atan(c*Math.tan(.5*this.B*(m-v))/u)/this.B),h=Math.atan(2*Math.sin(this.B*Te(m-this.lam0))/(i-1/i)),d=C=Math.asin(n*Math.sin(h))),this.singam=Math.sin(h),this.cosgam=Math.cos(h),this.sinrot=Math.sin(d),this.cosrot=Math.cos(d),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*h,this.v_pole_n=this.ArB*Math.log(Math.tan(at-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(at+i))}function eH(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(En(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)<Ro?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 tH(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=au(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 rH=["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 nH={init:J9,forward:eH,inverse:tH,names:rH};function iH(){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=ri(this.e,t,r),i=En(this.e,this.lat1,t),a=Math.sin(this.lat2),o=Math.cos(this.lat2),s=ri(this.e,a,o),u=En(this.e,this.lat2,a),c=En(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 aH(e){var t=e.x,r=e.y;Math.abs(2*Math.abs(r)-Math.PI)<=be&&(r=Ou(r)*(me-2*be));var n=Math.abs(Math.abs(r)-me),i,a;if(n>be)i=En(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*Te(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 oH(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=au(this.e,n),i===-9999)return null}else i=-me;return a=Te(u/this.ns+this.long0),e.x=a,e.y=i,e}var sH=["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 lH={init:iH,forward:aH,inverse:oH,names:sH};function uH(){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 cH(e){var t,r,n,i,a,o,s,u=e.x,c=e.y,d=Te(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=-d*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 dH(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 d=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,d+=1;while(u===0&&d<15);return d>=15?null:e}var hH=["Krovak","krovak"];const fH={init:uH,forward:cH,inverse:dH,names:hH};function kr(e,t,r,n,i){return e*i-t*Math.sin(2*i)+r*Math.sin(4*i)-n*Math.sin(6*i)}function ku(e){return 1-.25*e*(1+e/16*(3+1.25*e))}function Du(e){return .375*e*(1+.25*e*(1+.46875*e))}function Nu(e){return .05859375*e*e*(1+.75*e)}function Iu(e){return e*e*e*(35/3072)}function es(e,t,r){var n=t*r;return e/Math.sqrt(1-n*n)}function ys(e){return Math.abs(e)<me?e:e-Ou(e)*Math.PI}function Gd(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 pH(){this.sphere||(this.e0=ku(this.es),this.e1=Du(this.es),this.e2=Nu(this.es),this.e3=Iu(this.es),this.ml0=this.a*kr(this.e0,this.e1,this.e2,this.e3,this.lat0))}function mH(e){var t,r,n=e.x,i=e.y;if(n=Te(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=es(this.a,this.e,a),u=Math.tan(i)*Math.tan(i),c=n*Math.cos(i),d=c*c,h=this.es*o*o/(1-this.es),p=this.a*kr(this.e0,this.e1,this.e2,this.e3,i);t=s*c*(1-d*u*(1/6-(8-u+8*h)*d/120)),r=p-this.ml0+s*a/o*d*(.5+(5-u+6*h)*d/24)}return e.x=t+this.x0,e.y=r+this.y0,e}function gH(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=Gd(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=es(this.a,this.e,Math.sin(s)),c=u*u*u/this.a/this.a*(1-this.es),d=Math.pow(Math.tan(s),2),h=t*this.a/u,p=h*h;n=s-u*Math.tan(s)/c*h*h*(.5-(1+3*d)*h*h/24),i=h*(1-p*(d/3+(1+3*d)*d*p/15))/Math.cos(s)}return e.x=Te(i+this.long0),e.y=ys(n),e}var vH=["Cassini","Cassini_Soldner","cass"];const yH={init:pH,forward:mH,inverse:gH,names:vH};function Zi(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 bH=1,_H=2,wH=3,CH=4;function xH(){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=Zi(this.e,1),this.mmf=.5/(1-this.es),this.apa=kH(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=Zi(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 TH(e){var t,r,n,i,a,o,s,u,c,d,h=e.x,p=e.y;if(h=Te(h-this.long0),this.sphere){if(a=Math.sin(p),d=Math.cos(p),n=Math.cos(h),this.mode===this.OBLIQ||this.mode===this.EQUIT){if(r=this.mode===this.EQUIT?1+d*n:1+this.sinph0*a+this.cosph0*d*n,r<=be)return null;r=Math.sqrt(2/r),t=r*d*Math.sin(h),r*=this.mode===this.EQUIT?a:this.cosph0*a-this.sinph0*d*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=at-p*.5,r=2*(this.mode===this.S_POLE?Math.cos(r):Math.sin(r)),t=r*Math.sin(h),r*=n}}else{switch(s=0,u=0,c=0,n=Math.cos(h),i=Math.sin(h),a=Math.sin(p),o=Zi(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 SH(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 d=0,h,p=0;if(h=Math.sqrt(t*t+r*r),i=h*.5,i>1)return null;switch(i=2*Math.asin(i),(this.mode===this.OBLIQ||this.mode===this.EQUIT)&&(p=Math.sin(i),d=Math.cos(i)),this.mode){case this.EQUIT:i=Math.abs(h)<=be?0:Math.asin(r*p/h),t*=p,r=d*h;break;case this.OBLIQ:i=Math.abs(h)<=be?this.lat0:Math.asin(d*this.sinph0+r*p*this.cosph0/h),t*=p*this.cosph0,r=(d-Math.sin(i)*this.sinph0)*h;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=DH(Math.asin(c),this.apa)}return e.x=Te(this.long0+n),e.y=i,e}var EH=.3333333333333333,MH=.17222222222222222,AH=.10257936507936508,PH=.06388888888888888,RH=.0664021164021164,OH=.016415012942191543;function kH(e){var t,r=[];return r[0]=e*EH,t=e*e,r[0]+=t*MH,r[1]=t*PH,t*=e,r[0]+=t*AH,r[1]+=t*RH,r[2]=t*OH,r}function DH(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 NH=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"];const IH={init:xH,forward:TH,inverse:SH,names:NH,S_POLE:bH,N_POLE:_H,EQUIT:wH,OBLIQ:CH};function na(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)}function LH(){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=ri(this.e3,this.sin_po,this.cos_po),this.qs1=Zi(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=ri(this.e3,this.sin_po,this.cos_po),this.qs2=Zi(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=Zi(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 FH(e){var t=e.x,r=e.y;this.sin_phi=Math.sin(r),this.cos_phi=Math.cos(r);var n=Zi(this.e3,this.sin_phi),i=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,a=this.ns0*Te(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 $H(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=Te(i/this.ns0+this.long0),e.x=a,e.y=o,e}function BH(e,t){var r,n,i,a,o,s=na(.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 HH=["Albers_Conic_Equal_Area","Albers","aea"];const zH={init:LH,forward:FH,inverse:$H,names:HH,phi1z:BH};function jH(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1}function WH(e){var t,r,n,i,a,o,s,u,c=e.x,d=e.y;return n=Te(c-this.long0),t=Math.sin(d),r=Math.cos(d),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 UH(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=na(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=Te(this.long0+a)):(o=this.phic0,a=0),e.x=a,e.y=o,e}var VH=["gnom"];const GH={init:jH,forward:WH,inverse:UH,names:VH};function qH(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 YH(){this.sphere||(this.k0=ri(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))}function XH(e){var t=e.x,r=e.y,n,i,a=Te(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=Zi(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 KH(e){e.x-=this.x0,e.y-=this.y0;var t,r;return this.sphere?(t=Te(this.long0+e.x/this.a/Math.cos(this.lat_ts)),r=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(r=qH(this.e,2*e.y*this.k0/this.a),t=Te(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=r,e}var ZH=["cea"];const QH={init:YH,forward:XH,inverse:KH,names:ZH};function JH(){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 ez(e){var t=e.x,r=e.y,n=Te(t-this.long0),i=ys(r-this.lat0);return e.x=this.x0+this.a*n*this.rc,e.y=this.y0+this.a*i,e}function tz(e){var t=e.x,r=e.y;return e.x=Te(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=ys(this.lat0+(r-this.y0)/this.a),e}var rz=["Equirectangular","Equidistant_Cylindrical","eqc"];const nz={init:JH,forward:ez,inverse:tz,names:rz};var e2=20;function iz(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=ku(this.es),this.e1=Du(this.es),this.e2=Nu(this.es),this.e3=Iu(this.es),this.ml0=this.a*kr(this.e0,this.e1,this.e2,this.e3,this.lat0)}function az(e){var t=e.x,r=e.y,n,i,a,o=Te(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*(ys(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=es(this.a,this.e,Math.sin(r))/Math.tan(r);n=s*Math.sin(a),i=this.a*kr(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 oz(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=Te(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 d;for(a=e2;a;--a)if(d=Math.tan(u),c=-1*(o*(u*d+1)-u-.5*(u*u+s)*d)/((u-o)/d-1),u+=c,Math.abs(c)<=be){r=u;break}t=Te(this.long0+Math.asin(n*Math.tan(u)/this.a)/Math.sin(r))}else if(Math.abs(i+this.ml0)<=be)r=0,t=Te(this.long0+n/this.a);else{o=(this.ml0+i)/this.a,s=n*n/this.a/this.a+o*o,u=o;var h,p,m,v,g;for(a=e2;a;--a)if(g=this.e*Math.sin(u),h=Math.sqrt(1-g*g)*Math.tan(u),p=this.a*kr(this.e0,this.e1,this.e2,this.e3,u),m=this.e0-2*this.e1*Math.cos(2*u)+4*this.e2*Math.cos(4*u)-6*this.e3*Math.cos(6*u),v=p/this.a,c=(o*(h*v+1)-v-.5*h*(v*v+s))/(this.es*Math.sin(2*u)*(v*v+s-2*o*v)/(4*h)+(o-v)*(h*m-2/Math.sin(2*u))-m),u-=c,Math.abs(c)<=be){r=u;break}h=Math.sqrt(1-this.es*Math.pow(Math.sin(r),2))*Math.tan(r),t=Te(this.long0+Math.asin(n*h/this.a)/Math.sin(r))}return e.x=t,e.y=r,e}var sz=["Polyconic","poly"];const lz={init:iz,forward:az,inverse:oz,names:sz};function uz(){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 cz(e){var t,r=e.x,n=e.y,i=n-this.lat0,a=r-this.long0,o=i/Pl*1e-5,s=a,u=1,c=0;for(t=1;t<=10;t++)u=u*o,c=c+this.A[t]*u;var d=c,h=s,p=1,m=0,v,g,b=0,C=0;for(t=1;t<=6;t++)v=p*d-m*h,g=m*d+p*h,p=v,m=g,b=b+this.B_re[t]*p-this.B_im[t]*m,C=C+this.B_im[t]*p+this.B_re[t]*m;return e.x=C*this.a+this.x0,e.y=b*this.a+this.y0,e}function dz(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,d,h,p=0,m=0;for(t=1;t<=6;t++)d=u*o-c*s,h=c*o+u*s,u=d,c=h,p=p+this.C_re[t]*u-this.C_im[t]*c,m=m+this.C_im[t]*u+this.C_re[t]*c;for(var v=0;v<this.iterations;v++){var g=p,b=m,C,x,E=o,T=s;for(t=2;t<=6;t++)C=g*p-b*m,x=b*p+g*m,g=C,b=x,E=E+(t-1)*(this.B_re[t]*g-this.B_im[t]*b),T=T+(t-1)*(this.B_im[t]*g+this.B_re[t]*b);g=1,b=0;var A=this.B_re[1],R=this.B_im[1];for(t=2;t<=6;t++)C=g*p-b*m,x=b*p+g*m,g=C,b=x,A=A+t*(this.B_re[t]*g-this.B_im[t]*b),R=R+t*(this.B_im[t]*g+this.B_re[t]*b);var D=A*A+R*R;p=(E*A+T*R)/D,m=(T*A-E*R)/D}var I=p,H=m,G=1,q=0;for(t=1;t<=9;t++)G=G*I,q=q+this.D[t]*G;var O=this.lat0+q*Pl*1e5,$=this.long0+H;return e.x=$,e.y=O,e}var hz=["New_Zealand_Map_Grid","nzmg"];const fz={init:uz,forward:cz,inverse:dz,names:hz};function pz(){}function mz(e){var t=e.x,r=e.y,n=Te(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 gz(e){e.x-=this.x0,e.y-=this.y0;var t=Te(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 vz=["Miller_Cylindrical","mill"];const yz={init:pz,forward:mz,inverse:gz,names:vz};var bz=20;function _z(){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=wM(this.es)}function wz(e){var t,r,n=e.x,i=e.y;if(n=Te(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=bz;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*sf(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 Cz(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=na((this.m*t+Math.sin(t))/this.n):this.n!==1&&(t=na(Math.sin(t)/this.n)),n=Te(n+this.long0),t=ys(t)):(t=CM(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=Te(r)):i-be<me&&(n=this.long0)),e.x=n,e.y=t,e}var xz=["Sinusoidal","sinu"];const Tz={init:_z,forward:wz,inverse:Cz,names:xz};function Sz(){}function Ez(e){for(var t=e.x,r=e.y,n=Te(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 Mz(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=Te(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 Az=["Mollweide","moll"];const Pz={init:Sz,forward:Ez,inverse:Mz,names:Az};function Rz(){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=ku(this.es),this.e1=Du(this.es),this.e2=Nu(this.es),this.e3=Iu(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=ri(this.e,this.sinphi,this.cosphi),this.ml1=kr(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=ri(this.e,this.sinphi,this.cosphi),this.ml2=kr(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=kr(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))}function Oz(e){var t=e.x,r=e.y,n;if(this.sphere)n=this.a*(this.g-r);else{var i=kr(this.e0,this.e1,this.e2,this.e3,r);n=this.a*(this.g-i)}var a=this.ns*Te(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 kz(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=Te(this.long0+a/this.ns),n=ys(this.g-r/this.a),e.x=i,e.y=n,e;var o=this.g-r/this.a;return n=Gd(o,this.e0,this.e1,this.e2,this.e3),i=Te(this.long0+a/this.ns),e.x=i,e.y=n,e}var Dz=["Equidistant_Conic","eqdc"];const Nz={init:Rz,forward:Oz,inverse:kz,names:Dz};function Iz(){this.R=this.a}function Lz(e){var t=e.x,r=e.y,n=Te(t-this.long0),i,a;Math.abs(r)<=be&&(i=this.x0+this.R*n,a=this.y0);var o=na(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),d=Math.cos(o),h=d/(c+d-1),p=h*h,m=h*(2/c-1),v=m*m,g=Math.PI*this.R*(s*(h-v)+Math.sqrt(u*(h-v)*(h-v)-(v+u)*(p-v)))/(v+u);n<0&&(g=-g),i=this.x0+g;var b=u+h;return g=Math.PI*this.R*(m*b-s*Math.sqrt((v+u)*(u+1)-b*b))/(v+u),r>=0?a=this.y0+g:a=this.y0-g,e.x=i,e.y=a,e}function Fz(e){var t,r,n,i,a,o,s,u,c,d,h,p,m;return e.x-=this.x0,e.y-=this.y0,h=Math.PI*this.R,n=e.x/h,i=e.y/h,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,m=i*i/u+(2*s*s*s/u/u/u-9*o*s/u/u)/27,c=(o-s*s/3/u)/u,d=2*Math.sqrt(-c/3),h=3*m/c/d,Math.abs(h)>1&&(h>=0?h=1:h=-1),p=Math.acos(h)/3,e.y>=0?r=(-d*Math.cos(p+Math.PI/3)-s/3/u)*Math.PI:r=-(-d*Math.cos(p+Math.PI/3)-s/3/u)*Math.PI,Math.abs(n)<be?t=this.long0:t=Te(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 $z=["Van_der_Grinten_I","VanDerGrinten","vandg"];const Bz={init:Iz,forward:Lz,inverse:Fz,names:$z};function Hz(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)}function zz(e){var t=e.x,r=e.y,n=Math.sin(e.y),i=Math.cos(e.y),a=Te(t-this.long0),o,s,u,c,d,h,p,m,v,g,b,C,x,E,T,A,R,D,I,H,G,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):(D=this.sin_p12*n+this.cos_p12*i*Math.cos(a),A=Math.acos(D),R=A?A/Math.sin(A):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=ku(this.es),s=Du(this.es),u=Nu(this.es),c=Iu(this.es),Math.abs(this.sin_p12-1)<=be?(d=this.a*kr(o,s,u,c,me),h=this.a*kr(o,s,u,c,r),e.x=this.x0+(d-h)*Math.sin(a),e.y=this.y0-(d-h)*Math.cos(a),e):Math.abs(this.sin_p12+1)<=be?(d=this.a*kr(o,s,u,c,me),h=this.a*kr(o,s,u,c,r),e.x=this.x0+(d+h)*Math.sin(a),e.y=this.y0+(d+h)*Math.cos(a),e):(p=n/i,m=es(this.a,this.e,this.sin_p12),v=es(this.a,this.e,n),g=Math.atan((1-this.es)*p+this.es*m*this.sin_p12/(v*i)),b=Math.atan2(Math.sin(a),this.cos_p12*Math.tan(g)-this.sin_p12*Math.cos(a)),b===0?I=Math.asin(this.cos_p12*Math.sin(g)-this.sin_p12*Math.cos(g)):Math.abs(Math.abs(b)-Math.PI)<=be?I=-Math.asin(this.cos_p12*Math.sin(g)-this.sin_p12*Math.cos(g)):I=Math.asin(Math.sin(a)*Math.cos(g)/Math.sin(b)),C=this.e*this.sin_p12/Math.sqrt(1-this.es),x=this.e*this.cos_p12*Math.cos(b)/Math.sqrt(1-this.es),E=C*x,T=x*x,H=I*I,G=H*I,q=G*I,O=q*I,A=m*I*(1-H*T*(1-T)/6+G/8*E*(1-2*T)+q/120*(T*(4-7*T)-3*C*C*(1-7*T))-O/48*E),e.x=this.x0+A*Math.sin(b),e.y=this.y0+A*Math.cos(b),e))}function jz(e){e.x-=this.x0,e.y-=this.y0;var t,r,n,i,a,o,s,u,c,d,h,p,m,v,g,b,C,x,E,T,A,R,D,I;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=na(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=Te(this.long0+Math.atan2(e.x,-e.y)):a=Te(this.long0-Math.atan2(-e.x,e.y)):a=Te(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=ku(this.es),c=Du(this.es),d=Nu(this.es),h=Iu(this.es),Math.abs(this.sin_p12-1)<=be?(p=this.a*kr(u,c,d,h,me),t=Math.sqrt(e.x*e.x+e.y*e.y),m=p-t,o=Gd(m/this.a,u,c,d,h),a=Te(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*kr(u,c,d,h,me),t=Math.sqrt(e.x*e.x+e.y*e.y),m=t-p,o=Gd(m/this.a,u,c,d,h),a=Te(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),b=Math.atan2(e.x,e.y),v=es(this.a,this.e,this.sin_p12),C=Math.cos(b),x=this.e*this.cos_p12*C,E=-x*x/(1-this.es),T=3*this.es*(1-E)*this.sin_p12*this.cos_p12*C/(1-this.es),A=t/v,R=A-E*(1+E)*Math.pow(A,3)/6-T*(1+3*E)*Math.pow(A,4)/24,D=1-E*R*R/2-A*R*R*R/6,g=Math.asin(this.sin_p12*Math.cos(R)+this.cos_p12*Math.sin(R)*C),a=Te(this.long0+Math.asin(Math.sin(b)*Math.sin(R)/Math.cos(g))),I=Math.sin(g),o=Math.atan2((I-this.es*D*this.sin_p12)*Math.tan(g),I*(1-this.es)),e.x=a,e.y=o,e))}var Wz=["Azimuthal_Equidistant","aeqd"];const Uz={init:Hz,forward:zz,inverse:jz,names:Wz};function Vz(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function Gz(e){var t,r,n,i,a,o,s,u,c=e.x,d=e.y;return n=Te(c-this.long0),t=Math.sin(d),r=Math.cos(d),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 qz(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=na(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=na(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=Te(this.long0+Math.atan2(e.x,-e.y)):o=Te(this.long0-Math.atan2(-e.x,e.y)),e.x=o,e.y=s,e):(o=Te(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 Yz=["ortho"];const Xz={init:Vz,forward:Gz,inverse:qz,names:Yz};var Ft={FRONT:1,RIGHT:2,BACK:3,LEFT:4,TOP:5,BOTTOM:6},ot={AREA_0:1,AREA_1:2,AREA_2:3,AREA_3:4};function Kz(){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-at/2?this.face=Ft.TOP:this.lat0<=-(me-at/2)?this.face=Ft.BOTTOM:Math.abs(this.long0)<=at?this.face=Ft.FRONT:Math.abs(this.long0)<=me+at?this.face=this.long0>0?Ft.RIGHT:Ft.LEFT:this.face=Ft.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 Zz(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===Ft.TOP)a=me-r,n>=at&&n<=me+at?(u.value=ot.AREA_0,i=n-me):n>me+at||n<=-(me+at)?(u.value=ot.AREA_1,i=n>0?n-Gt:n+Gt):n>-(me+at)&&n<=-at?(u.value=ot.AREA_2,i=n+me):(u.value=ot.AREA_3,i=n);else if(this.face===Ft.BOTTOM)a=me+r,n>=at&&n<=me+at?(u.value=ot.AREA_0,i=-n+me):n<at&&n>=-at?(u.value=ot.AREA_1,i=-n):n<-at&&n>=-(me+at)?(u.value=ot.AREA_2,i=-n-me):(u.value=ot.AREA_3,i=n>0?-n+Gt:-n-Gt);else{var c,d,h,p,m,v,g;this.face===Ft.RIGHT?n=Yo(n,+me):this.face===Ft.BACK?n=Yo(n,+Gt):this.face===Ft.LEFT&&(n=Yo(n,-me)),p=Math.sin(r),m=Math.cos(r),v=Math.sin(n),g=Math.cos(n),c=m*g,d=m*v,h=p,this.face===Ft.FRONT?(a=Math.acos(c),i=zc(a,h,d,u)):this.face===Ft.RIGHT?(a=Math.acos(d),i=zc(a,h,-c,u)):this.face===Ft.BACK?(a=Math.acos(-c),i=zc(a,h,-d,u)):this.face===Ft.LEFT?(a=Math.acos(-d),i=zc(a,h,c,u)):(a=i=0,u.value=ot.AREA_0)}return s=Math.atan(12/Gt*(i+Math.acos(Math.sin(i)*Math.cos(at))-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===ot.AREA_1?s+=me:u.value===ot.AREA_2?s+=Gt:u.value===ot.AREA_3&&(s+=1.5*Gt),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 Qz(e){var t={lam:0,phi:0},r,n,i,a,o,s,u,c,d,h={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)?h.value=ot.AREA_0:e.y>=0&&e.y>=Math.abs(e.x)?(h.value=ot.AREA_1,r-=me):e.x<0&&-e.x>=Math.abs(e.y)?(h.value=ot.AREA_2,r=r<0?r+Gt:r-Gt):(h.value=ot.AREA_3,r+=me),d=Gt/12*Math.tan(r),o=Math.sin(d)/(Math.cos(d)-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===Ft.TOP)c=Math.acos(u),t.phi=me-c,h.value===ot.AREA_0?t.lam=s+me:h.value===ot.AREA_1?t.lam=s<0?s+Gt:s-Gt:h.value===ot.AREA_2?t.lam=s-me:t.lam=s;else if(this.face===Ft.BOTTOM)c=Math.acos(u),t.phi=c-me,h.value===ot.AREA_0?t.lam=-s+me:h.value===ot.AREA_1?t.lam=-s:h.value===ot.AREA_2?t.lam=-s-me:t.lam=s<0?-s-Gt:-s+Gt;else{var p,m,v;p=u,d=p*p,d>=1?v=0:v=Math.sqrt(1-d)*Math.sin(s),d+=v*v,d>=1?m=0:m=Math.sqrt(1-d),h.value===ot.AREA_1?(d=m,m=-v,v=d):h.value===ot.AREA_2?(m=-m,v=-v):h.value===ot.AREA_3&&(d=m,m=v,v=-d),this.face===Ft.RIGHT?(d=p,p=-m,m=d):this.face===Ft.BACK?(p=-p,m=-m):this.face===Ft.LEFT&&(d=p,p=m,m=-d),t.phi=Math.acos(-v)-me,t.lam=Math.atan2(m,p),this.face===Ft.RIGHT?t.lam=Yo(t.lam,-me):this.face===Ft.BACK?t.lam=Yo(t.lam,-Gt):this.face===Ft.LEFT&&(t.lam=Yo(t.lam,+me))}if(this.es!==0){var g,b,C;g=t.phi<0?1:0,b=Math.tan(t.phi),C=this.b/Math.sqrt(b*b+this.one_minus_f_squared),t.phi=Math.atan(Math.sqrt(this.a*this.a-C*C)/(this.one_minus_f*C)),g&&(t.phi=-t.phi)}return t.lam+=this.long0,e.x=t.lam,e.y=t.phi,e}function zc(e,t,r,n){var i;return e<be?(n.value=ot.AREA_0,i=0):(i=Math.atan2(t,r),Math.abs(i)<=at?n.value=ot.AREA_0:i>at&&i<=me+at?(n.value=ot.AREA_1,i-=me):i>me+at||i<=-(me+at)?(n.value=ot.AREA_2,i=i>=0?i-Gt:i+Gt):(n.value=ot.AREA_3,i+=me)),i}function Yo(e,t){var r=e+t;return r<-Gt?r+=nu:r>+Gt&&(r-=nu),r}var Jz=["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"];const ej={init:Kz,forward:Zz,inverse:Qz,names:Jz};var M0=[[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]],wl=[[-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]],SM=.8487,EM=1.3523,MM=Yn/5,tj=1/MM,Bo=18,qd=function(e,t){return e[0]+t*(e[1]+t*(e[2]+t*e[3]))},rj=function(e,t){return e[1]+t*(2*e[2]+t*3*e[3])};function nj(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 ij(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"}function aj(e){var t=Te(e.x-this.long0),r=Math.abs(e.y),n=Math.floor(r*MM);n<0?n=0:n>=Bo&&(n=Bo-1),r=Yn*(r-tj*n);var i={x:qd(M0[n],r)*t,y:qd(wl[n],r)};return e.y<0&&(i.y=-i.y),i.x=i.x*this.a*SM+this.x0,i.y=i.y*this.a*EM+this.y0,i}function oj(e){var t={x:(e.x-this.x0)/(this.a*SM),y:Math.abs(e.y-this.y0)/(this.a*EM)};if(t.y>=1)t.x/=M0[Bo][0],t.y=e.y<0?-me:me;else{var r=Math.floor(t.y*Bo);for(r<0?r=0:r>=Bo&&(r=Bo-1);;)if(wl[r][0]>t.y)--r;else if(wl[r+1][0]<=t.y)++r;else break;var n=wl[r],i=5*(t.y-n[0])/(wl[r+1][0]-n[0]);i=nj(function(a){return(qd(n,a)-t.y)/rj(n,a)},i,be,100),t.x/=qd(M0[r],i),t.y=(5*r+i)*pr,e.y<0&&(t.y=-t.y)}return t.x=Te(t.x+this.long0),t}var sj=["Robinson","robin"];const lj={init:ij,forward:aj,inverse:oj,names:sj};function uj(){this.name="geocent"}function cj(e){var t=hM(e,this.es,this.a);return t}function dj(e){var t=fM(e,this.es,this.a,this.b);return t}var hj=["Geocentric","geocentric","geocent","Geocent"];const fj={init:uj,forward:cj,inverse:dj,names:hj};var Cr={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},tl={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 pj(){if(Object.keys(tl).forEach(function(r){if(typeof this[r]=="undefined")this[r]=tl[r].def;else{if(tl[r].num&&isNaN(this[r]))throw new Error("Invalid parameter value, must be numeric "+r+" = "+this[r]);tl[r].num&&(this[r]=parseFloat(this[r]))}tl[r].degrees&&(this[r]=this[r]*pr)}.bind(this)),Math.abs(Math.abs(this.lat0)-me)<be?this.mode=this.lat0<0?Cr.S_POLE:Cr.N_POLE:Math.abs(this.lat0)<be?this.mode=Cr.EQUIT:(this.mode=Cr.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 mj(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 Cr.OBLIQ:a=this.sinph0*t+this.cosph0*r*n;break;case Cr.EQUIT:a=r*n;break;case Cr.S_POLE:a=-t;break;case Cr.N_POLE:a=t;break}switch(a=this.pn1/(this.p-a),i=a*r*Math.sin(e.x),this.mode){case Cr.OBLIQ:a*=this.cosph0*t-this.sinph0*r*n;break;case Cr.EQUIT:a*=t;break;case Cr.N_POLE:a*=-(r*n);break;case Cr.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 gj(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=mn(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 Cr.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 Cr.EQUIT:t.y=Math.asin(e.y*s/a),e.y=o*a,e.x*=s;break;case Cr.N_POLE:t.y=Math.asin(o),e.y=-e.y;break;case Cr.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 vj=["Tilted_Perspective","tpers"];const yj={init:pj,forward:mj,inverse:gj,names:vj};function bj(){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 _j(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/mn(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/mn(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/mn(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/mn(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/mn(a,n))));return e.x=e.x*this.a,e.y=e.y*this.a,e}function wj(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)*mn(1,n)):(r=Math.tan(e.x/this.radius_g_1),n=Math.tan(e.y/this.radius_g_1)*mn(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 Cj=["Geostationary Satellite View","Geostationary_Satellite","geos"];const xj={init:bj,forward:_j,inverse:wj,names:Cj};var Rl=1.340264,Ol=-.081106,kl=893e-6,Dl=.003796,Yd=Math.sqrt(3)/2;function Tj(){this.es=0,this.long0=this.long0!==void 0?this.long0:0}function Sj(e){var t=Te(e.x-this.long0),r=e.y,n=Math.asin(Yd*Math.sin(r)),i=n*n,a=i*i*i;return e.x=t*Math.cos(n)/(Yd*(Rl+3*Ol*i+a*(7*kl+9*Dl*i))),e.y=n*(Rl+Ol*i+a*(kl+Dl*i)),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e}function Ej(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*(Rl+Ol*i+a*(kl+Dl*i))-e.y,s=Rl+3*Ol*i+a*(7*kl+9*Dl*i),n-=u=o/s,!(Math.abs(u)<t));++c);return i=n*n,a=i*i*i,e.x=Yd*e.x*(Rl+3*Ol*i+a*(7*kl+9*Dl*i))/Math.cos(n),e.y=Math.asin(Math.sin(n)/Yd),e.x=Te(e.x+this.long0),e}var Mj=["eqearth","Equal Earth","Equal_Earth"];const Aj={init:Tj,forward:Sj,inverse:Ej,names:Mj};function Pj(e){e.Proj.projections.add(md),e.Proj.projections.add(gd),e.Proj.projections.add(R9),e.Proj.projections.add(H9),e.Proj.projections.add(G9),e.Proj.projections.add(Z9),e.Proj.projections.add(nH),e.Proj.projections.add(lH),e.Proj.projections.add(fH),e.Proj.projections.add(yH),e.Proj.projections.add(IH),e.Proj.projections.add(zH),e.Proj.projections.add(GH),e.Proj.projections.add(QH),e.Proj.projections.add(nz),e.Proj.projections.add(lz),e.Proj.projections.add(fz),e.Proj.projections.add(yz),e.Proj.projections.add(Tz),e.Proj.projections.add(Pz),e.Proj.projections.add(Nz),e.Proj.projections.add(Bz),e.Proj.projections.add(Uz),e.Proj.projections.add(Xz),e.Proj.projections.add(ej),e.Proj.projections.add(lj),e.Proj.projections.add(fj),e.Proj.projections.add(yj),e.Proj.projections.add(xj),e.Proj.projections.add(Aj)}Jr.defaultDatum="WGS84";Jr.Proj=Qn;Jr.WGS84=new Jr.Proj("WGS84");Jr.Point=Jo;Jr.toPoint=pM;Jr.defs=Pr;Jr.nadgrid=kB;Jr.transform=Vd;Jr.mgrs=YB;Jr.version="__VERSION__";Pj(Jr);const Rj=Object.freeze(Object.defineProperty({__proto__:null,default:Jr},Symbol.toStringTag,{value:"Module"})),Oj=w.getAugmentedNamespace(Rj);(function(e){(function(t){var r,n;r=nM,n=Oj,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 d=this.options.resolutions.length-1;d>=0;d--)this.options.resolutions[d]&&(this._scales[d]=1/this.options.resolutions[d])}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})})(iM);var kj=iM.exports;const Dj=250;function AM(e){const t=e.chart.animation.init.duration==="auto"?Dj:e.chart.animation.init.duration;return{animate:t!==0,duration:t/1e3}}function Nj(e,t,r={}){t.length&&e.fitBounds(t.map(n=>[n.getLatLng().lat,n.getLatLng().lng]),M({maxZoom:4},r))}const Ij=[{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"}],Lj="#d6d9dc",Fj="#FBFAFA";function $j(e,t,r){return e.reduce((i,a)=>{const o=a.id;let s;if(r==="world"){const u=Ij.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:Lj,weight:1,opacity:1,fillColor:s&&s.color||Fj,fillOpacity:1},displayName:(s==null?void 0:s.geoName)||a.properties.name},i},{})}const Bj=kj.CRS,Hj=({geoJson:e,geoData:t,dataOptions:r,mapType:n})=>{const{themeSettings:i}=mt(),a=k.useRef(null),o=k.useRef(null),[s]=k.useState(wi.layerGroup()),u=k.useMemo(()=>$j(e.features,t,n),[e,t,n]);return k.useEffect(()=>{a.current&&!o.current&&(o.current=Uj(a.current,n),s.addTo(o.current))},[s,n]),k.useEffect(()=>{const c=wi.geoJSON(Vj(e,u),{style:d=>u[d.id].style,onEachFeature:(d,h)=>{h.bindTooltip(Wj(d,u,r.originalValueTitle),{sticky:!0}),h.on({mouseover:p=>{const m=p.target;zj(m,d.id,u)},mouseout:p=>{const m=p.target;jj(m,d.id,u)}}),r.onAreaClick&&h.on({click:p=>{const m=u[d.id].geoDataElement;m&&r.onAreaClick(m,p.originalEvent)}})}});o.current&&(s.clearLayers(),s.addLayer(c),o.current.fitBounds(c.getBounds(),AM(i)))},[r,u,e,s,i]),w.jsx("div",{ref:a,className:"csdk-map-container",style:{width:"100%",height:"100%",minWidth:"300px",minHeight:"400px",backgroundColor:"#c2dbe9"}})};function zj(e,t,r){if(r[t]){const i=r[t].style.fillColor;e.setStyle({weight:2,color:w.scaleBrightness(i,-.2),fillColor:w.scaleBrightness(i,.05),dashArray:"",fillOpacity:1,opacity:1}),e.bringToFront()}}function jj(e,t,r){e.setStyle(r[t].style)}function Wj(e,t,r){const n=t[e.id],{formattedOriginalValue:i}=n.geoDataElement||{};return`
218
+ <div>
219
+ <span>${n.displayName}<span>
220
+ ${n.geoDataElement&&i!==void 0?`<br/>${r}: <span>${i}<span>`:""}
221
+ </div>`}function Uj(e,t){return t==="world"?wi.map(e,{attributionControl:!1,scrollWheelZoom:!0,minZoom:1,zoom:1,maxZoom:5,center:[0,0]}):wi.map(e,{crs:new Bj("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 Vj(e,t){if(t.ATA&&t.ATA.geoDataElement)return e;{const r=e.features.filter(n=>n.id!=="ATA");return B(M({},e),{features:r})}}var Gj="[object Date]";function qj(e){return N.isObjectLike(e)&&N.baseGetTag(e)==Gj}var t2=N.nodeUtil&&N.nodeUtil.isDate,Yj=t2?N.baseUnary(t2):qj,A0={exports:{}},PM={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})(PM);var Bt=PM.exports,P0={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})(P0,P0.exports);var Xj=P0.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(Xj);function i(a){return(0,n.default)({},a)}e.exports=t.default})(A0,A0.exports);var Kj=A0.exports;const Zj=w.getDefaultExportFromCjs(Kj);var R0={exports:{}},O0={exports:{}},k0={exports:{}},RM={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})(RM);var OM=RM.exports,D0={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})(D0,D0.exports);var Ir=D0.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(OM),i=r(Ir);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})(k0,k0.exports);var Qj=k0.exports,N0={exports:{}};(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(OM),i=r(Ir);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})(N0,N0.exports);var oi=N0.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Qj),i=r(oi),a=r(Ir);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})(O0,O0.exports);var Jj=O0.exports,I0={exports:{}},L0={exports:{}},F0={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})(F0,F0.exports);var qa=F0.exports;const eW=w.getDefaultExportFromCjs(qa);(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(qa),i=r(oi),a=r(Ir);function o(s,u){(0,a.default)(2,arguments);var c=(0,i.default)(s).getTime(),d=(0,n.default)(u);return new Date(c+d)}e.exports=t.default})(L0,L0.exports);var tW=L0.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(tW),i=r(Ir),a=r(qa);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})(I0,I0.exports);var rW=I0.exports,$0={exports:{}},B0={exports:{}};(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(oi),i=r(Ir),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 d=u.getTime(),h=c-d;return Math.floor(h/a)+1}e.exports=t.default})(B0,B0.exports);var nW=B0.exports,H0={exports:{}},z0={exports:{}};(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(oi),i=r(Ir);function a(o){(0,i.default)(1,arguments);var s=1,u=(0,n.default)(o),c=u.getUTCDay(),d=(c<s?7:0)+c-s;return u.setUTCDate(u.getUTCDate()-d),u.setUTCHours(0,0,0,0),u}e.exports=t.default})(z0,z0.exports);var Ny=z0.exports,j0={exports:{}},W0={exports:{}};(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(oi),i=r(Ir),a=r(Ny);function o(s){(0,i.default)(1,arguments);var u=(0,n.default)(s),c=u.getUTCFullYear(),d=new Date(0);d.setUTCFullYear(c+1,0,4),d.setUTCHours(0,0,0,0);var h=(0,a.default)(d),p=new Date(0);p.setUTCFullYear(c,0,4),p.setUTCHours(0,0,0,0);var m=(0,a.default)(p);return u.getTime()>=h.getTime()?c+1:u.getTime()>=m.getTime()?c:c-1}e.exports=t.default})(W0,W0.exports);var kM=W0.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(kM),i=r(Ny),a=r(Ir);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 d=(0,i.default)(c);return d}e.exports=t.default})(j0,j0.exports);var iW=j0.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(oi),i=r(Ny),a=r(iW),o=r(Ir),s=6048e5;function u(c){(0,o.default)(1,arguments);var d=(0,n.default)(c),h=(0,i.default)(d).getTime()-(0,a.default)(d).getTime();return Math.round(h/s)+1}e.exports=t.default})(H0,H0.exports);var aW=H0.exports,U0={exports:{}},V0={exports:{}},Ya={};Object.defineProperty(Ya,"__esModule",{value:!0});Ya.getDefaultOptions=oW;Ya.setDefaultOptions=sW;var DM={};function oW(){return DM}function sW(e){DM=e}(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=r(oi),i=r(Ir),a=r(qa),o=Ya;function s(u,c){var d,h,p,m,v,g,b,C;(0,i.default)(1,arguments);var x=(0,o.getDefaultOptions)(),E=(0,a.default)((d=(h=(p=(m=c==null?void 0:c.weekStartsOn)!==null&&m!==void 0?m:c==null||(v=c.locale)===null||v===void 0||(g=v.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&p!==void 0?p:x.weekStartsOn)!==null&&h!==void 0?h:(b=x.locale)===null||b===void 0||(C=b.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&d!==void 0?d:0);if(!(E>=0&&E<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var T=(0,n.default)(u),A=T.getUTCDay(),R=(A<E?7:0)+A-E;return T.setUTCDate(T.getUTCDate()-R),T.setUTCHours(0,0,0,0),T}e.exports=t.default})(V0,V0.exports);var Iy=V0.exports,G0={exports:{}},q0={exports:{}};(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(oi),i=r(Ir),a=r(Iy),o=r(qa),s=Ya;function u(c,d){var h,p,m,v,g,b,C,x;(0,i.default)(1,arguments);var E=(0,n.default)(c),T=E.getUTCFullYear(),A=(0,s.getDefaultOptions)(),R=(0,o.default)((h=(p=(m=(v=d==null?void 0:d.firstWeekContainsDate)!==null&&v!==void 0?v:d==null||(g=d.locale)===null||g===void 0||(b=g.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&m!==void 0?m:A.firstWeekContainsDate)!==null&&p!==void 0?p:(C=A.locale)===null||C===void 0||(x=C.options)===null||x===void 0?void 0:x.firstWeekContainsDate)!==null&&h!==void 0?h:1);if(!(R>=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var D=new Date(0);D.setUTCFullYear(T+1,0,R),D.setUTCHours(0,0,0,0);var I=(0,a.default)(D,d),H=new Date(0);H.setUTCFullYear(T,0,R),H.setUTCHours(0,0,0,0);var G=(0,a.default)(H,d);return E.getTime()>=I.getTime()?T+1:E.getTime()>=G.getTime()?T:T-1}e.exports=t.default})(q0,q0.exports);var NM=q0.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(NM),i=r(Ir),a=r(Iy),o=r(qa),s=Ya;function u(c,d){var h,p,m,v,g,b,C,x;(0,i.default)(1,arguments);var E=(0,s.getDefaultOptions)(),T=(0,o.default)((h=(p=(m=(v=d==null?void 0:d.firstWeekContainsDate)!==null&&v!==void 0?v:d==null||(g=d.locale)===null||g===void 0||(b=g.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&m!==void 0?m:E.firstWeekContainsDate)!==null&&p!==void 0?p:(C=E.locale)===null||C===void 0||(x=C.options)===null||x===void 0?void 0:x.firstWeekContainsDate)!==null&&h!==void 0?h:1),A=(0,n.default)(c,d),R=new Date(0);R.setUTCFullYear(A,0,T),R.setUTCHours(0,0,0,0);var D=(0,a.default)(R,d);return D}e.exports=t.default})(G0,G0.exports);var lW=G0.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(oi),i=r(Iy),a=r(lW),o=r(Ir),s=6048e5;function u(c,d){(0,o.default)(1,arguments);var h=(0,n.default)(c),p=(0,i.default)(h,d).getTime()-(0,a.default)(h,d).getTime();return Math.round(p/s)+1}e.exports=t.default})(U0,U0.exports);var uW=U0.exports,Y0={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})(Y0,Y0.exports);var IM=Y0.exports,X0={exports:{}};(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(IM),i={y:function(s,u){var c=s.getUTCFullYear(),d=c>0?c:1-c;return(0,n.default)(u==="yy"?d%100:d,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,d=s.getUTCMilliseconds(),h=Math.floor(d*Math.pow(10,c-3));return(0,n.default)(h,u.length)}},a=i;t.default=a,e.exports=t.default})(X0,X0.exports);var cW=X0.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(nW),i=r(aW),a=r(kM),o=r(uW),s=r(NM),u=r(IM),c=r(cW),d={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},h={G:function(C,x,E){var T=C.getUTCFullYear()>0?1:0;switch(x){case"G":case"GG":case"GGG":return E.era(T,{width:"abbreviated"});case"GGGGG":return E.era(T,{width:"narrow"});case"GGGG":default:return E.era(T,{width:"wide"})}},y:function(C,x,E){if(x==="yo"){var T=C.getUTCFullYear(),A=T>0?T:1-T;return E.ordinalNumber(A,{unit:"year"})}return c.default.y(C,x)},Y:function(C,x,E,T){var A=(0,s.default)(C,T),R=A>0?A:1-A;if(x==="YY"){var D=R%100;return(0,u.default)(D,2)}return x==="Yo"?E.ordinalNumber(R,{unit:"year"}):(0,u.default)(R,x.length)},R:function(C,x){var E=(0,a.default)(C);return(0,u.default)(E,x.length)},u:function(C,x){var E=C.getUTCFullYear();return(0,u.default)(E,x.length)},Q:function(C,x,E){var T=Math.ceil((C.getUTCMonth()+1)/3);switch(x){case"Q":return String(T);case"QQ":return(0,u.default)(T,2);case"Qo":return E.ordinalNumber(T,{unit:"quarter"});case"QQQ":return E.quarter(T,{width:"abbreviated",context:"formatting"});case"QQQQQ":return E.quarter(T,{width:"narrow",context:"formatting"});case"QQQQ":default:return E.quarter(T,{width:"wide",context:"formatting"})}},q:function(C,x,E){var T=Math.ceil((C.getUTCMonth()+1)/3);switch(x){case"q":return String(T);case"qq":return(0,u.default)(T,2);case"qo":return E.ordinalNumber(T,{unit:"quarter"});case"qqq":return E.quarter(T,{width:"abbreviated",context:"standalone"});case"qqqqq":return E.quarter(T,{width:"narrow",context:"standalone"});case"qqqq":default:return E.quarter(T,{width:"wide",context:"standalone"})}},M:function(C,x,E){var T=C.getUTCMonth();switch(x){case"M":case"MM":return c.default.M(C,x);case"Mo":return E.ordinalNumber(T+1,{unit:"month"});case"MMM":return E.month(T,{width:"abbreviated",context:"formatting"});case"MMMMM":return E.month(T,{width:"narrow",context:"formatting"});case"MMMM":default:return E.month(T,{width:"wide",context:"formatting"})}},L:function(C,x,E){var T=C.getUTCMonth();switch(x){case"L":return String(T+1);case"LL":return(0,u.default)(T+1,2);case"Lo":return E.ordinalNumber(T+1,{unit:"month"});case"LLL":return E.month(T,{width:"abbreviated",context:"standalone"});case"LLLLL":return E.month(T,{width:"narrow",context:"standalone"});case"LLLL":default:return E.month(T,{width:"wide",context:"standalone"})}},w:function(C,x,E,T){var A=(0,o.default)(C,T);return x==="wo"?E.ordinalNumber(A,{unit:"week"}):(0,u.default)(A,x.length)},I:function(C,x,E){var T=(0,i.default)(C);return x==="Io"?E.ordinalNumber(T,{unit:"week"}):(0,u.default)(T,x.length)},d:function(C,x,E){return x==="do"?E.ordinalNumber(C.getUTCDate(),{unit:"date"}):c.default.d(C,x)},D:function(C,x,E){var T=(0,n.default)(C);return x==="Do"?E.ordinalNumber(T,{unit:"dayOfYear"}):(0,u.default)(T,x.length)},E:function(C,x,E){var T=C.getUTCDay();switch(x){case"E":case"EE":case"EEE":return E.day(T,{width:"abbreviated",context:"formatting"});case"EEEEE":return E.day(T,{width:"narrow",context:"formatting"});case"EEEEEE":return E.day(T,{width:"short",context:"formatting"});case"EEEE":default:return E.day(T,{width:"wide",context:"formatting"})}},e:function(C,x,E,T){var A=C.getUTCDay(),R=(A-T.weekStartsOn+8)%7||7;switch(x){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(A,{width:"abbreviated",context:"formatting"});case"eeeee":return E.day(A,{width:"narrow",context:"formatting"});case"eeeeee":return E.day(A,{width:"short",context:"formatting"});case"eeee":default:return E.day(A,{width:"wide",context:"formatting"})}},c:function(C,x,E,T){var A=C.getUTCDay(),R=(A-T.weekStartsOn+8)%7||7;switch(x){case"c":return String(R);case"cc":return(0,u.default)(R,x.length);case"co":return E.ordinalNumber(R,{unit:"day"});case"ccc":return E.day(A,{width:"abbreviated",context:"standalone"});case"ccccc":return E.day(A,{width:"narrow",context:"standalone"});case"cccccc":return E.day(A,{width:"short",context:"standalone"});case"cccc":default:return E.day(A,{width:"wide",context:"standalone"})}},i:function(C,x,E){var T=C.getUTCDay(),A=T===0?7:T;switch(x){case"i":return String(A);case"ii":return(0,u.default)(A,x.length);case"io":return E.ordinalNumber(A,{unit:"day"});case"iii":return E.day(T,{width:"abbreviated",context:"formatting"});case"iiiii":return E.day(T,{width:"narrow",context:"formatting"});case"iiiiii":return E.day(T,{width:"short",context:"formatting"});case"iiii":default:return E.day(T,{width:"wide",context:"formatting"})}},a:function(C,x,E){var T=C.getUTCHours(),A=T/12>=1?"pm":"am";switch(x){case"a":case"aa":return E.dayPeriod(A,{width:"abbreviated",context:"formatting"});case"aaa":return E.dayPeriod(A,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return E.dayPeriod(A,{width:"narrow",context:"formatting"});case"aaaa":default:return E.dayPeriod(A,{width:"wide",context:"formatting"})}},b:function(C,x,E){var T=C.getUTCHours(),A;switch(T===12?A=d.noon:T===0?A=d.midnight:A=T/12>=1?"pm":"am",x){case"b":case"bb":return E.dayPeriod(A,{width:"abbreviated",context:"formatting"});case"bbb":return E.dayPeriod(A,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return E.dayPeriod(A,{width:"narrow",context:"formatting"});case"bbbb":default:return E.dayPeriod(A,{width:"wide",context:"formatting"})}},B:function(C,x,E){var T=C.getUTCHours(),A;switch(T>=17?A=d.evening:T>=12?A=d.afternoon:T>=4?A=d.morning:A=d.night,x){case"B":case"BB":case"BBB":return E.dayPeriod(A,{width:"abbreviated",context:"formatting"});case"BBBBB":return E.dayPeriod(A,{width:"narrow",context:"formatting"});case"BBBB":default:return E.dayPeriod(A,{width:"wide",context:"formatting"})}},h:function(C,x,E){if(x==="ho"){var T=C.getUTCHours()%12;return T===0&&(T=12),E.ordinalNumber(T,{unit:"hour"})}return c.default.h(C,x)},H:function(C,x,E){return x==="Ho"?E.ordinalNumber(C.getUTCHours(),{unit:"hour"}):c.default.H(C,x)},K:function(C,x,E){var T=C.getUTCHours()%12;return x==="Ko"?E.ordinalNumber(T,{unit:"hour"}):(0,u.default)(T,x.length)},k:function(C,x,E){var T=C.getUTCHours();return T===0&&(T=24),x==="ko"?E.ordinalNumber(T,{unit:"hour"}):(0,u.default)(T,x.length)},m:function(C,x,E){return x==="mo"?E.ordinalNumber(C.getUTCMinutes(),{unit:"minute"}):c.default.m(C,x)},s:function(C,x,E){return x==="so"?E.ordinalNumber(C.getUTCSeconds(),{unit:"second"}):c.default.s(C,x)},S:function(C,x){return c.default.S(C,x)},X:function(C,x,E,T){var A=T._originalDate||C,R=A.getTimezoneOffset();if(R===0)return"Z";switch(x){case"X":return m(R);case"XXXX":case"XX":return v(R);case"XXXXX":case"XXX":default:return v(R,":")}},x:function(C,x,E,T){var A=T._originalDate||C,R=A.getTimezoneOffset();switch(x){case"x":return m(R);case"xxxx":case"xx":return v(R);case"xxxxx":case"xxx":default:return v(R,":")}},O:function(C,x,E,T){var A=T._originalDate||C,R=A.getTimezoneOffset();switch(x){case"O":case"OO":case"OOO":return"GMT"+p(R,":");case"OOOO":default:return"GMT"+v(R,":")}},z:function(C,x,E,T){var A=T._originalDate||C,R=A.getTimezoneOffset();switch(x){case"z":case"zz":case"zzz":return"GMT"+p(R,":");case"zzzz":default:return"GMT"+v(R,":")}},t:function(C,x,E,T){var A=T._originalDate||C,R=Math.floor(A.getTime()/1e3);return(0,u.default)(R,x.length)},T:function(C,x,E,T){var A=T._originalDate||C,R=A.getTime();return(0,u.default)(R,x.length)}};function p(b,C){var x=b>0?"-":"+",E=Math.abs(b),T=Math.floor(E/60),A=E%60;if(A===0)return x+String(T);var R=C;return x+String(T)+R+(0,u.default)(A,2)}function m(b,C){if(b%60===0){var x=b>0?"-":"+";return x+(0,u.default)(Math.abs(b)/60,2)}return v(b,C)}function v(b,C){var x=C||"",E=b>0?"-":"+",T=Math.abs(b),A=(0,u.default)(Math.floor(T/60),2),R=(0,u.default)(T%60,2);return E+A+x+R}var g=h;t.default=g,e.exports=t.default})($0,$0.exports);var dW=$0.exports,K0={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 d=u.match(/(P+)(p+)?/)||[],h=d[1],p=d[2];if(!p)return r(u,c);var m;switch(h){case"P":m=c.dateTime({width:"short"});break;case"PP":m=c.dateTime({width:"medium"});break;case"PPP":m=c.dateTime({width:"long"});break;case"PPPP":default:m=c.dateTime({width:"full"});break}return m.replace("{{date}}",r(h,c)).replace("{{time}}",n(p,c))},a={p:n,P:i},o=a;t.default=o,e.exports=t.default})(K0,K0.exports);var hW=K0.exports,Z0={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})(Z0,Z0.exports);var LM=Z0.exports;const r2=w.getDefaultExportFromCjs(LM);var Lu={};Object.defineProperty(Lu,"__esModule",{value:!0});Lu.isProtectedDayOfYearToken=mW;Lu.isProtectedWeekYearToken=gW;Lu.throwProtectedError=vW;var fW=["D","DD"],pW=["YY","YYYY"];function mW(e){return fW.indexOf(e)!==-1}function gW(e){return pW.indexOf(e)!==-1}function vW(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 Q0={exports:{}},J0={exports:{}},eg={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,d=r[o];return typeof d=="string"?c=d:s===1?c=d.one:c=d.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})(eg,eg.exports);var yW=eg.exports,tg={exports:{}},rg={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})(rg,rg.exports);var bW=rg.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(bW),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})(tg,tg.exports);var _W=tg.exports,ng={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})(ng,ng.exports);var wW=ng.exports,ig={exports:{}},ag={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 d=n.defaultWidth,h=a!=null&&a.width?String(a.width):n.defaultWidth;s=n.values[h]||n.values[d]}var p=n.argumentCallback?n.argumentCallback(i):i;return s[p]}}e.exports=t.default})(ag,ag.exports);var CW=ag.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(CW),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"}},d=function(v,g){var b=Number(v),C=b%100;if(C>20||C<10)switch(C%10){case 1:return b+"st";case 2:return b+"nd";case 3:return b+"rd"}return b+"th"},h={ordinalNumber:d,era:(0,n.default)({values:i,defaultWidth:"wide"}),quarter:(0,n.default)({values:a,defaultWidth:"wide",argumentCallback:function(v){return v-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=h;t.default=p,e.exports=t.default})(ig,ig.exports);var xW=ig.exports,og={exports:{}},sg={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],d=o.match(c);if(!d)return null;var h=d[0],p=u&&a.parsePatterns[u]||a.parsePatterns[a.defaultParseWidth],m=Array.isArray(p)?i(p,function(b){return b.test(h)}):n(p,function(b){return b.test(h)}),v;v=a.valueCallback?a.valueCallback(m):m,v=s.valueCallback?s.valueCallback(v):v;var g=o.slice(h.length);return{value:v,rest:g}}}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})(sg,sg.exports);var TW=sg.exports,lg={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 d=i.slice(s.length);return{value:c,rest:d}}}e.exports=t.default})(lg,lg.exports);var SW=lg.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(TW),i=r(SW),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},d={any:[/1/i,/2/i,/3/i,/4/i]},h={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]},m={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},v={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]},g={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},b={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(T){return parseInt(T,10)}}),era:(0,n.default)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:u,defaultParseWidth:"any"}),quarter:(0,n.default)({matchPatterns:c,defaultMatchWidth:"wide",parsePatterns:d,defaultParseWidth:"any",valueCallback:function(T){return T+1}}),month:(0,n.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),day:(0,n.default)({matchPatterns:m,defaultMatchWidth:"wide",parsePatterns:v,defaultParseWidth:"any"}),dayPeriod:(0,n.default)({matchPatterns:g,defaultMatchWidth:"any",parsePatterns:b,defaultParseWidth:"any"})},x=C;t.default=x,e.exports=t.default})(og,og.exports);var EW=og.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(yW),i=r(_W),a=r(wW),o=r(xW),s=r(EW),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})(J0,J0.exports);var MW=J0.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(MW),i=n.default;t.default=i,e.exports=t.default})(Q0,Q0.exports);var AW=Q0.exports;(function(e,t){var r=Bt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=E;var n=r(Jj),i=r(rW),a=r(oi),o=r(dW),s=r(hW),u=r(LM),c=Lu,d=r(qa),h=r(Ir),p=Ya,m=r(AW),v=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,b=/^'([^]*?)'?$/,C=/''/g,x=/[a-zA-Z]/;function E(A,R,D){var I,H,G,q,O,$,X,j,V,z,Y,re,W,K,ie,ne,te,oe;(0,h.default)(2,arguments);var se=String(R),de=(0,p.getDefaultOptions)(),ce=(I=(H=D==null?void 0:D.locale)!==null&&H!==void 0?H:de.locale)!==null&&I!==void 0?I:m.default,ge=(0,d.default)((G=(q=(O=($=D==null?void 0:D.firstWeekContainsDate)!==null&&$!==void 0?$:D==null||(X=D.locale)===null||X===void 0||(j=X.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||(z=V.options)===null||z===void 0?void 0:z.firstWeekContainsDate)!==null&&G!==void 0?G:1);if(!(ge>=1&&ge<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Se=(0,d.default)((Y=(re=(W=(K=D==null?void 0:D.weekStartsOn)!==null&&K!==void 0?K:D==null||(ie=D.locale)===null||ie===void 0||(ne=ie.options)===null||ne===void 0?void 0:ne.weekStartsOn)!==null&&W!==void 0?W:de.weekStartsOn)!==null&&re!==void 0?re:(te=de.locale)===null||te===void 0||(oe=te.options)===null||oe===void 0?void 0:oe.weekStartsOn)!==null&&Y!==void 0?Y:0);if(!(Se>=0&&Se<=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)(A);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:Se,locale:ce,_originalDate:ye},Ae=se.match(g).map(function(Ie){var Ue=Ie[0];if(Ue==="p"||Ue==="P"){var Ve=s.default[Ue];return Ve(Ie,ce.formatLong)}return Ie}).join("").match(v).map(function(Ie){if(Ie==="''")return"'";var Ue=Ie[0];if(Ue==="'")return T(Ie);var Ve=o.default[Ue];if(Ve)return!(D!=null&&D.useAdditionalWeekYearTokens)&&(0,c.isProtectedWeekYearToken)(Ie)&&(0,c.throwProtectedError)(Ie,R,String(A)),!(D!=null&&D.useAdditionalDayOfYearTokens)&&(0,c.isProtectedDayOfYearToken)(Ie)&&(0,c.throwProtectedError)(Ie,R,String(A)),Ve(_e,Ie,ce.localize,ve);if(Ue.match(x))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Ue+"`");return Ie}).join("");return Ae}function T(A){var R=A.match(b);return R?R[1].replace(C,"'"):A}e.exports=t.default})(R0,R0.exports);var PW=R0.exports;const RW=w.getDefaultExportFromCjs(PW);function n2(e,t,r){var n=DW(e,r.timeZone,r.locale);return n.formatToParts?OW(n,t):kW(n,t)}function OW(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 kW(e,t){var r=e.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(r);return n?n[0].substr(1):""}function DW(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 NW(e,t){var r=$W(t);return r.formatToParts?LW(r,e):FW(r,e)}var IW={year:0,month:1,day:2,hour:3,minute:4,second:5};function LW(e,t){try{for(var r=e.formatToParts(t),n=[],i=0;i<r.length;i++){var a=IW[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 FW(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 lm={};function $W(e){if(!lm[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";lm[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 lm[e]}function FM(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 i2=36e5,BW=6e4,um={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Ly(e,t,r){var n,i;if(!e||(n=um.timezoneZ.exec(e),n))return 0;var a;if(n=um.timezoneHH.exec(e),n)return a=parseInt(n[1],10),a2(a)?-(a*i2):NaN;if(n=um.timezoneHHMM.exec(e),n){a=parseInt(n[2],10);var o=parseInt(n[3],10);return a2(a,o)?(i=Math.abs(a)*i2+o*BW,n[1]==="+"?-i:i):NaN}if(jW(e)){t=new Date(t||Date.now());var s=r?t:HW(t),u=ug(s,e),c=r?u:zW(t,u,e);return-c}return NaN}function HW(e){return FM(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function ug(e,t){var r=NW(e,t),n=FM(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 zW(e,t,r){var n=e.getTime(),i=n-t,a=ug(new Date(i),r);if(t===a)return t;i-=a-t;var o=ug(new Date(i),r);return a===o?a:Math.max(a,o)}function a2(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var o2={};function jW(e){if(o2[e])return!0;try{return o2[e]=!0,!0}catch(t){return!1}}var WW=60*1e3,UW={X:function(e,t,r,n){var i=cm(n.timeZone,e);if(i===0)return"Z";switch(t){case"X":return s2(i);case"XXXX":case"XX":return Oo(i);case"XXXXX":case"XXX":default:return Oo(i,":")}},x:function(e,t,r,n){var i=cm(n.timeZone,e);switch(t){case"x":return s2(i);case"xxxx":case"xx":return Oo(i);case"xxxxx":case"xxx":default:return Oo(i,":")}},O:function(e,t,r,n){var i=cm(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+VW(i,":");case"OOOO":default:return"GMT"+Oo(i,":")}},z:function(e,t,r,n){switch(t){case"z":case"zz":case"zzz":return n2("short",e,n);case"zzzz":default:return n2("long",e,n)}}};function cm(e,t){var r=e?Ly(e,t,!0)/WW:t.getTimezoneOffset();if(Number.isNaN(r))throw new RangeError("Invalid time zone specified: "+e);return r}function Xd(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}function Oo(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e),a=Xd(Math.floor(i/60),2),o=Xd(Math.floor(i%60),2);return n+a+r+o}function s2(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Xd(Math.abs(e)/60,2)}return Oo(e,t)}function VW(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+Xd(a,2)}var GW=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,dm=36e5,l2=6e4,qW=2,Or={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:GW};function $M(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?qW:eW(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=YW(e),a=XW(i.date,n),o=a.year,s=a.restDateString,u=KW(s,o);if(isNaN(u))return new Date(NaN);if(u){var c=u.getTime(),d=0,h;if(i.time&&(d=ZW(i.time),isNaN(d)))return new Date(NaN);if(i.timeZone||r.timeZone){if(h=Ly(i.timeZone||r.timeZone,new Date(c+d)),isNaN(h))return new Date(NaN)}else h=r2(new Date(c+d)),h=r2(new Date(c+d+h));return new Date(c+d+h)}else return new Date(NaN)}function YW(e){var t={},r=Or.dateTimePattern.exec(e),n;if(r?(t.date=r[1],n=r[3]):(r=Or.datePattern.exec(e),r?(t.date=r[1],n=r[2]):(t.date=null,n=e)),n){var i=Or.timeZone.exec(n);i?(t.time=n.replace(i[1],""),t.timeZone=i[1].trim()):t.time=n}return t}function XW(e,t){var r=Or.YYY[t],n=Or.YYYYY[t],i;if(i=Or.YYYY.exec(e)||n.exec(e),i){var a=i[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}if(i=Or.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 KW(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=Or.MM.exec(e),r)return n=new Date(0),i=parseInt(r[1],10)-1,c2(t,i)?(n.setUTCFullYear(t,i),n):new Date(NaN);if(r=Or.DDD.exec(e),r){n=new Date(0);var o=parseInt(r[1],10);return eU(t,o)?(n.setUTCFullYear(t,0,o),n):new Date(NaN)}if(r=Or.MMDD.exec(e),r){n=new Date(0),i=parseInt(r[1],10)-1;var s=parseInt(r[2],10);return c2(t,i,s)?(n.setUTCFullYear(t,i,s),n):new Date(NaN)}if(r=Or.Www.exec(e),r)return a=parseInt(r[1],10)-1,d2(t,a)?u2(t,a):new Date(NaN);if(r=Or.WwwD.exec(e),r){a=parseInt(r[1],10)-1;var u=parseInt(r[2],10)-1;return d2(t,a,u)?u2(t,a,u):new Date(NaN)}return null}function ZW(e){var t,r,n;if(t=Or.HH.exec(e),t)return r=parseFloat(t[1].replace(",",".")),hm(r)?r%24*dm:NaN;if(t=Or.HHMM.exec(e),t)return r=parseInt(t[1],10),n=parseFloat(t[2].replace(",",".")),hm(r,n)?r%24*dm+n*l2:NaN;if(t=Or.HHMMSS.exec(e),t){r=parseInt(t[1],10),n=parseInt(t[2],10);var i=parseFloat(t[3].replace(",","."));return hm(r,n,i)?r%24*dm+n*l2+i*1e3:NaN}return null}function u2(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 QW=[31,28,31,30,31,30,31,31,30,31,30,31],JW=[31,29,31,30,31,30,31,31,30,31,30,31];function BM(e){return e%400===0||e%4===0&&e%100!==0}function c2(e,t,r){if(t<0||t>11)return!1;if(r!=null){if(r<1)return!1;var n=BM(e);if(n&&r>JW[t]||!n&&r>QW[t])return!1}return!0}function eU(e,t){if(t<1)return!1;var r=BM(e);return!(r&&t>366||!r&&t>365)}function d2(e,t,r){return!(t<0||t>52||r!=null&&(r<0||r>6))}function hm(e,t,r){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||r!=null&&(r<0||r>=60))}var tU=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function rU(e,t,r){var n=String(t),i=r||{},a=n.match(tU);if(a){var o=$M(i.originalDate||e,i);n=a.reduce(function(s,u){if(u[0]==="'")return s;var c=s.indexOf(u),d=s[c-1]==="'",h=s.replace(u,"'"+UW[u[0]](o,u,null,i)+"'");return d?h.substring(0,c-1)+h.substring(c+1):h},n)}return RW(e,n,i)}function nU(e,t,r){var n=$M(e,r),i=Ly(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 Ia(e,t,r,n){var i=Zj(n);return i.timeZone=t,i.originalDate=e,rU(nU(e,t),r,i)}function Kd(e){"@babel/helpers - typeof";return Kd=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},Kd(e)}function rn(e){w.requiredArgs(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Kd(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 h2(e,t){w.requiredArgs(2,arguments);var r=rn(e),n=w.toInteger(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function iU(e,t){w.requiredArgs(2,arguments);var r=rn(e),n=w.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 HM(e,t){w.requiredArgs(2,arguments);var r=w.toInteger(t);return iU(e,r*12)}var aU={};function Fy(){return aU}function cg(e,t){var r,n,i,a,o,s,u,c;w.requiredArgs(1,arguments);var d=Fy(),h=w.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:d.weekStartsOn)!==null&&n!==void 0?n:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=rn(e),m=p.getUTCDay(),v=(m<h?7:0)+m-h;return p.setUTCDate(p.getUTCDate()-v),p.setUTCHours(0,0,0,0),p}var oU={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"}},zM=function(t,r,n){var i,a=oU[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 We(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 sU={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lU={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},uU={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cU={date:We({formats:sU,defaultWidth:"full"}),time:We({formats:lU,defaultWidth:"full"}),dateTime:We({formats:uU,defaultWidth:"full"})},dU={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},jM=function(t,r,n,i){return dU[t]};function Ee(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 hU={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},fU={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},pU={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"]},mU={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"]},gU={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"}},vU={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"}},yU=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"},WM={ordinalNumber:yU,era:Ee({values:hU,defaultWidth:"wide"}),quarter:Ee({values:fU,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ee({values:pU,defaultWidth:"wide"}),day:Ee({values:mU,defaultWidth:"wide"}),dayPeriod:Ee({values:gU,defaultWidth:"wide",formattingValues:vU,defaultFormattingWidth:"wide"})};function Me(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)?_U(s,function(h){return h.test(o)}):bU(s,function(h){return h.test(o)}),c;c=e.valueCallback?e.valueCallback(u):u,c=r.valueCallback?r.valueCallback(c):c;var d=t.slice(o.length);return{value:c,rest:d}}}function bU(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function _U(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function nn(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 wU=/^(\d+)(th|st|nd|rd)?/i,CU=/\d+/i,xU={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},TU={any:[/^b/i,/^(a|c)/i]},SU={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},EU={any:[/1/i,/2/i,/3/i,/4/i]},MU={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},AU={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]},PU={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},RU={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]},OU={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},kU={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}},UM={ordinalNumber:nn({matchPattern:wU,parsePattern:CU,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:xU,defaultMatchWidth:"wide",parsePatterns:TU,defaultParseWidth:"any"}),quarter:Me({matchPatterns:SU,defaultMatchWidth:"wide",parsePatterns:EU,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:MU,defaultMatchWidth:"wide",parsePatterns:AU,defaultParseWidth:"any"}),day:Me({matchPatterns:PU,defaultMatchWidth:"wide",parsePatterns:RU,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:OU,defaultMatchWidth:"any",parsePatterns:kU,defaultParseWidth:"any"})},dg={code:"en-US",formatDistance:zM,formatLong:cU,formatRelative:jM,localize:WM,match:UM,options:{weekStartsOn:0,firstWeekContainsDate:1}};function DU(e,t){var r,n,i,a,o,s,u,c;w.requiredArgs(1,arguments);var d=Fy(),h=w.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:d.weekStartsOn)!==null&&n!==void 0?n:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=rn(e),m=p.getDay(),v=(m<h?7:0)+m-h;return p.setDate(p.getDate()-v),p.setHours(0,0,0,0),p}function NU(e){w.requiredArgs(1,arguments);var t=rn(e);return t.setHours(0,0,0,0),t}function IU(e){w.requiredArgs(1,arguments);var t=rn(e),r=t.getMonth(),n=r-r%3;return t.setMonth(n,1),t.setHours(0,0,0,0),t}function LU(e){w.requiredArgs(1,arguments);var t=rn(e);return t.setDate(1),t.setHours(0,0,0,0),t}function FU(e){w.requiredArgs(1,arguments);var t=rn(e),r=new Date(0);return r.setFullYear(t.getFullYear(),0,1),r.setHours(0,0,0,0),r}function $U(e){w.requiredArgs(1,arguments);var t=rn(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 BU(e,t){w.requiredArgs(2,arguments);var r=rn(e),n=w.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=$U(o);return r.setMonth(n,Math.min(a,s)),r}function VM(e,t){w.requiredArgs(2,arguments);var r=w.toInteger(t);return HM(e,-r)}function La(e,t,r){w.requiredArgs(2,arguments);var n=cg(e,r),i=cg(t,r);return n.getTime()===i.getTime()}var f2={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"}}},HU=function(t,r,n){var i,a=n!=null&&n.addSuffix?f2[t].withPreposition:f2[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},zU={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},jU={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},WU={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},UU={date:We({formats:zU,defaultWidth:"full"}),time:We({formats:jU,defaultWidth:"full"}),dateTime:We({formats:WU,defaultWidth:"full"})},VU={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},GU=function(t,r,n,i){return VU[t]},qU={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},YU={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},hg={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"]},XU={narrow:hg.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:hg.wide},KU={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"]},ZU={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"}},QU={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"}},JU=function(t){var r=Number(t);return r+"."},eV={ordinalNumber:JU,era:Ee({values:qU,defaultWidth:"wide"}),quarter:Ee({values:YU,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ee({values:hg,formattingValues:XU,defaultWidth:"wide"}),day:Ee({values:KU,defaultWidth:"wide"}),dayPeriod:Ee({values:ZU,defaultWidth:"wide",formattingValues:QU,defaultFormattingWidth:"wide"})},tV=/^(\d+)(\.)?/i,rV=/\d+/i,nV={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},iV={any:[/^v/i,/^n/i]},aV={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},oV={any:[/1/i,/2/i,/3/i,/4/i]},sV={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},lV={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]},uV={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},cV={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},dV={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},hV={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}},fV={ordinalNumber:nn({matchPattern:tV,parsePattern:rV,valueCallback:function(t){return parseInt(t)}}),era:Me({matchPatterns:nV,defaultMatchWidth:"wide",parsePatterns:iV,defaultParseWidth:"any"}),quarter:Me({matchPatterns:aV,defaultMatchWidth:"wide",parsePatterns:oV,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:sV,defaultMatchWidth:"wide",parsePatterns:lV,defaultParseWidth:"any"}),day:Me({matchPatterns:uV,defaultMatchWidth:"wide",parsePatterns:cV,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:dV,defaultMatchWidth:"wide",parsePatterns:hV,defaultParseWidth:"any"})},pV={code:"de",formatDistance:HU,formatLong:UU,formatRelative:GU,localize:eV,match:fV,options:{weekStartsOn:1,firstWeekContainsDate:4}},mV={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},gV={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},vV={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},yV={date:We({formats:mV,defaultWidth:"full"}),time:We({formats:gV,defaultWidth:"full"}),dateTime:We({formats:vV,defaultWidth:"full"})},bV={code:"en-GB",formatDistance:zM,formatLong:yV,formatRelative:jM,localize:WM,match:UM,options:{weekStartsOn:1,firstWeekContainsDate:4}},_V={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"}},wV=function(t,r,n){var i,a=_V[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},CV={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},xV={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},TV={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},SV={date:We({formats:CV,defaultWidth:"full"}),time:We({formats:xV,defaultWidth:"full"}),dateTime:We({formats:TV,defaultWidth:"full"})},EV={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"},MV={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"},AV=function(t,r,n,i){return r.getUTCHours()!==1?MV[t]:EV[t]},PV={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},RV={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},OV={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"]},kV={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"]},DV={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"}},NV={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"}},IV=function(t,r){var n=Number(t);return n+"º"},LV={ordinalNumber:IV,era:Ee({values:PV,defaultWidth:"wide"}),quarter:Ee({values:RV,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:Ee({values:OV,defaultWidth:"wide"}),day:Ee({values:kV,defaultWidth:"wide"}),dayPeriod:Ee({values:DV,defaultWidth:"wide",formattingValues:NV,defaultFormattingWidth:"wide"})},FV=/^(\d+)(º)?/i,$V=/\d+/i,BV={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},HV={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]},zV={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},jV={any:[/1/i,/2/i,/3/i,/4/i]},WV={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},UV={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]},VV={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},GV={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]},qV={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},YV={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}},XV={ordinalNumber:nn({matchPattern:FV,parsePattern:$V,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:BV,defaultMatchWidth:"wide",parsePatterns:HV,defaultParseWidth:"any"}),quarter:Me({matchPatterns:zV,defaultMatchWidth:"wide",parsePatterns:jV,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:WV,defaultMatchWidth:"wide",parsePatterns:UV,defaultParseWidth:"any"}),day:Me({matchPatterns:VV,defaultMatchWidth:"wide",parsePatterns:GV,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:qV,defaultMatchWidth:"any",parsePatterns:YV,defaultParseWidth:"any"})},KV={code:"es",formatDistance:wV,formatLong:SV,formatRelative:AV,localize:LV,match:XV,options:{weekStartsOn:1,firstWeekContainsDate:1}},ZV={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"}},QV=function(t,r,n){var i,a=ZV[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},JV={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},eG={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},tG={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},rG={date:We({formats:JV,defaultWidth:"full"}),time:We({formats:eG,defaultWidth:"full"}),dateTime:We({formats:tG,defaultWidth:"full"})},nG={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},iG=function(t,r,n,i){return nG[t]},aG={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},oG={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"]},sG={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"]},lG={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"]},uG={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"}},cG=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},dG={ordinalNumber:cG,era:Ee({values:aG,defaultWidth:"wide"}),quarter:Ee({values:oG,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ee({values:sG,defaultWidth:"wide"}),day:Ee({values:lG,defaultWidth:"wide"}),dayPeriod:Ee({values:uG,defaultWidth:"wide"})},hG=/^(\d+)(ième|ère|ème|er|e)?/i,fG=/\d+/i,pG={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},mG={any:[/^av/i,/^ap/i]},gG={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},vG={any:[/1/i,/2/i,/3/i,/4/i]},yG={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},bG={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]},_G={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},wG={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]},CG={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},xG={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}},TG={ordinalNumber:nn({matchPattern:hG,parsePattern:fG,valueCallback:function(t){return parseInt(t)}}),era:Me({matchPatterns:pG,defaultMatchWidth:"wide",parsePatterns:mG,defaultParseWidth:"any"}),quarter:Me({matchPatterns:gG,defaultMatchWidth:"wide",parsePatterns:vG,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:yG,defaultMatchWidth:"wide",parsePatterns:bG,defaultParseWidth:"any"}),day:Me({matchPatterns:_G,defaultMatchWidth:"wide",parsePatterns:wG,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:CG,defaultMatchWidth:"any",parsePatterns:xG,defaultParseWidth:"any"})},SG={code:"fr",formatDistance:QV,formatLong:rG,formatRelative:iG,localize:dG,match:TG,options:{weekStartsOn:1,firstWeekContainsDate:4}},EG={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"}},MG=function(t,r,n){var i,a=EG[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},AG={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},PG={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},RG={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},OG={date:We({formats:AG,defaultWidth:"full"}),time:We({formats:PG,defaultWidth:"full"}),dateTime:We({formats:RG,defaultWidth:"full"})},$y=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function kG(e){switch(e){case 0:return"'domenica scorsa alle' p";default:return"'"+$y[e]+" scorso alle' p"}}function p2(e){return"'"+$y[e]+" alle' p"}function DG(e){switch(e){case 0:return"'domenica prossima alle' p";default:return"'"+$y[e]+" prossimo alle' p"}}var NG={lastWeek:function(t,r,n){var i=t.getUTCDay();return La(t,r,n)?p2(i):kG(i)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(t,r,n){var i=t.getUTCDay();return La(t,r,n)?p2(i):DG(i)},other:"P"},IG=function(t,r,n,i){var a=NG[t];return typeof a=="function"?a(r,n,i):a},LG={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},FG={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},$G={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"]},BG={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"]},HG={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"}},zG={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"}},jG=function(t,r){var n=Number(t);return String(n)},WG={ordinalNumber:jG,era:Ee({values:LG,defaultWidth:"wide"}),quarter:Ee({values:FG,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ee({values:$G,defaultWidth:"wide"}),day:Ee({values:BG,defaultWidth:"wide"}),dayPeriod:Ee({values:HG,defaultWidth:"wide",formattingValues:zG,defaultFormattingWidth:"wide"})},UG=/^(\d+)(º)?/i,VG=/\d+/i,GG={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},qG={any:[/^a/i,/^(d|e)/i]},YG={narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},XG={any:[/1/i,/2/i,/3/i,/4/i]},KG={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},ZG={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]},QG={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},JG={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]},eq={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},tq={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}},rq={ordinalNumber:nn({matchPattern:UG,parsePattern:VG,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:GG,defaultMatchWidth:"wide",parsePatterns:qG,defaultParseWidth:"any"}),quarter:Me({matchPatterns:YG,defaultMatchWidth:"wide",parsePatterns:XG,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:KG,defaultMatchWidth:"wide",parsePatterns:ZG,defaultParseWidth:"any"}),day:Me({matchPatterns:QG,defaultMatchWidth:"wide",parsePatterns:JG,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:eq,defaultMatchWidth:"any",parsePatterns:tq,defaultParseWidth:"any"})},nq={code:"it",formatDistance:MG,formatLong:OG,formatRelative:IG,localize:WG,match:rq,options:{weekStartsOn:1,firstWeekContainsDate:4}},iq={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}}年近く"}},aq=function(t,r,n){n=n||{};var i,a=iq[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},oq={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},sq={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},lq={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},uq={date:We({formats:oq,defaultWidth:"full"}),time:We({formats:sq,defaultWidth:"full"}),dateTime:We({formats:lq,defaultWidth:"full"})},cq={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},dq=function(t,r,n,i){return cq[t]},hq={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},fq={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},pq={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月"]},mq={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},gq={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:"深夜"}},vq={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:"深夜"}},yq=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)}},bq={ordinalNumber:yq,era:Ee({values:hq,defaultWidth:"wide"}),quarter:Ee({values:fq,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:Ee({values:pq,defaultWidth:"wide"}),day:Ee({values:mq,defaultWidth:"wide"}),dayPeriod:Ee({values:gq,defaultWidth:"wide",formattingValues:vq,defaultFormattingWidth:"wide"})},_q=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,wq=/\d+/i,Cq={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},xq={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},Tq={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},Sq={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},Eq={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},Mq={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},Aq={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},Pq={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},Rq={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},Oq={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},kq={ordinalNumber:nn({matchPattern:_q,parsePattern:wq,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:Cq,defaultMatchWidth:"wide",parsePatterns:xq,defaultParseWidth:"any"}),quarter:Me({matchPatterns:Tq,defaultMatchWidth:"wide",parsePatterns:Sq,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:Eq,defaultMatchWidth:"wide",parsePatterns:Mq,defaultParseWidth:"any"}),day:Me({matchPatterns:Aq,defaultMatchWidth:"wide",parsePatterns:Pq,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:Rq,defaultMatchWidth:"any",parsePatterns:Oq,defaultParseWidth:"any"})},Dq={code:"ja",formatDistance:aq,formatLong:uq,formatRelative:dq,localize:bq,match:kq,options:{weekStartsOn:0,firstWeekContainsDate:1}},Nq={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}}년"}},Iq=function(t,r,n){var i,a=Nq[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},Lq={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},Fq={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},$q={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Bq={date:We({formats:Lq,defaultWidth:"full"}),time:We({formats:Fq,defaultWidth:"full"}),dateTime:We({formats:$q,defaultWidth:"full"})},Hq={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},zq=function(t,r,n,i){return Hq[t]},jq={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},Wq={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},Uq={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월"]},Vq={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},Gq={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:"밤"}},qq={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:"밤"}},Yq=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+"번째"}},Xq={ordinalNumber:Yq,era:Ee({values:jq,defaultWidth:"wide"}),quarter:Ee({values:Wq,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ee({values:Uq,defaultWidth:"wide"}),day:Ee({values:Vq,defaultWidth:"wide"}),dayPeriod:Ee({values:Gq,defaultWidth:"wide",formattingValues:qq,defaultFormattingWidth:"wide"})},Kq=/^(\d+)(일|번째)?/i,Zq=/\d+/i,Qq={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},Jq={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},eY={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},tY={any:[/1/i,/2/i,/3/i,/4/i]},rY={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},nY={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},iY={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},aY={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},oY={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},sY={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},lY={ordinalNumber:nn({matchPattern:Kq,parsePattern:Zq,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:Qq,defaultMatchWidth:"wide",parsePatterns:Jq,defaultParseWidth:"any"}),quarter:Me({matchPatterns:eY,defaultMatchWidth:"wide",parsePatterns:tY,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:rY,defaultMatchWidth:"wide",parsePatterns:nY,defaultParseWidth:"any"}),day:Me({matchPatterns:iY,defaultMatchWidth:"wide",parsePatterns:aY,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:oY,defaultMatchWidth:"any",parsePatterns:sY,defaultParseWidth:"any"})},uY={code:"ko",formatDistance:Iq,formatLong:Bq,formatRelative:zq,localize:Xq,match:lY,options:{weekStartsOn:0,firstWeekContainsDate:1}},cY={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"}},dY=function(t,r,n){var i,a=cY[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},hY={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},fY={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},pY={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},mY={date:We({formats:hY,defaultWidth:"full"}),time:We({formats:fY,defaultWidth:"full"}),dateTime:We({formats:pY,defaultWidth:"full"})},gY={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},vY=function(t,r,n,i){return gY[t]},yY={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},bY={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},_Y={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"]},wY={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"]},CY={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"}},xY=function(t,r){var n=Number(t);return n+"e"},TY={ordinalNumber:xY,era:Ee({values:yY,defaultWidth:"wide"}),quarter:Ee({values:bY,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ee({values:_Y,defaultWidth:"wide"}),day:Ee({values:wY,defaultWidth:"wide"}),dayPeriod:Ee({values:CY,defaultWidth:"wide"})},SY=/^(\d+)e?/i,EY=/\d+/i,MY={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},AY={any:[/^v/,/^n/]},PY={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},RY={any:[/1/i,/2/i,/3/i,/4/i]},OY={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},kY={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]},DY={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},NY={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]},IY={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},LY={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}},FY={ordinalNumber:nn({matchPattern:SY,parsePattern:EY,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:MY,defaultMatchWidth:"wide",parsePatterns:AY,defaultParseWidth:"any"}),quarter:Me({matchPatterns:PY,defaultMatchWidth:"wide",parsePatterns:RY,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:OY,defaultMatchWidth:"wide",parsePatterns:kY,defaultParseWidth:"any"}),day:Me({matchPatterns:DY,defaultMatchWidth:"wide",parsePatterns:NY,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:IY,defaultMatchWidth:"any",parsePatterns:LY,defaultParseWidth:"any"})},$Y={code:"nl",formatDistance:dY,formatLong:mY,formatRelative:vY,localize:TY,match:FY,options:{weekStartsOn:1,firstWeekContainsDate:4}},BY={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"}},HY=function(t,r,n){var i,a=BY[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},zY={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},jY={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},WY={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},UY={date:We({formats:zY,defaultWidth:"full"}),time:We({formats:jY,defaultWidth:"full"}),dateTime:We({formats:WY,defaultWidth:"full"})},VY={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"},GY=function(t,r,n,i){var a=VY[t];return typeof a=="function"?a(r):a},qY={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},YY={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},XY={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"]},KY={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"]},ZY={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"}},QY={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"}},JY=function(t,r){var n=Number(t);return n+"º"},eX={ordinalNumber:JY,era:Ee({values:qY,defaultWidth:"wide"}),quarter:Ee({values:YY,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ee({values:XY,defaultWidth:"wide"}),day:Ee({values:KY,defaultWidth:"wide"}),dayPeriod:Ee({values:ZY,defaultWidth:"wide",formattingValues:QY,defaultFormattingWidth:"wide"})},tX=/^(\d+)(º|ª)?/i,rX=/\d+/i,nX={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},iX={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},aX={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},oX={any:[/1/i,/2/i,/3/i,/4/i]},sX={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},lX={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]},uX={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},cX={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]},dX={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},hX={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}},fX={ordinalNumber:nn({matchPattern:tX,parsePattern:rX,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:nX,defaultMatchWidth:"wide",parsePatterns:iX,defaultParseWidth:"any"}),quarter:Me({matchPatterns:aX,defaultMatchWidth:"wide",parsePatterns:oX,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:sX,defaultMatchWidth:"wide",parsePatterns:lX,defaultParseWidth:"any"}),day:Me({matchPatterns:uX,defaultMatchWidth:"wide",parsePatterns:cX,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:dX,defaultMatchWidth:"any",parsePatterns:hX,defaultParseWidth:"any"})},pX={code:"pt",formatDistance:HY,formatLong:UY,formatRelative:GY,localize:eX,match:fX,options:{weekStartsOn:1,firstWeekContainsDate:4}};function rl(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 Er(e){return function(t,r){return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?e.future?rl(e.future,t):"через "+rl(e.regular,t):e.past?rl(e.past,t):rl(e.regular,t)+" назад":rl(e.regular,t)}}var mX={lessThanXSeconds:Er({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:Er({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:Er({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:Er({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:Er({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:Er({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:Er({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:Er({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:Er({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:Er({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:Er({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:Er({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:Er({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:Er({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:Er({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},gX=function(t,r,n){return mX[t](r,n)},vX={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},yX={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},bX={any:"{{date}}, {{time}}"},_X={date:We({formats:vX,defaultWidth:"full"}),time:We({formats:yX,defaultWidth:"full"}),dateTime:We({formats:bX,defaultWidth:"any"})},By=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function wX(e){var t=By[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 m2(e){var t=By[e];return e===2?"'во "+t+" в' p":"'в "+t+" в' p"}function CX(e){var t=By[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 xX={lastWeek:function(t,r,n){var i=t.getUTCDay();return La(t,r,n)?m2(i):wX(i)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:function(t,r,n){var i=t.getUTCDay();return La(t,r,n)?m2(i):CX(i)},other:"P"},TX=function(t,r,n,i){var a=xX[t];return typeof a=="function"?a(r,n,i):a},SX={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},EX={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},MX={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},AX={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},PX={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},RX={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:"ночь"}},OX={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:"ночи"}},kX=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},DX={ordinalNumber:kX,era:Ee({values:SX,defaultWidth:"wide"}),quarter:Ee({values:EX,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ee({values:MX,defaultWidth:"wide",formattingValues:AX,defaultFormattingWidth:"wide"}),day:Ee({values:PX,defaultWidth:"wide"}),dayPeriod:Ee({values:RX,defaultWidth:"any",formattingValues:OX,defaultFormattingWidth:"wide"})},NX=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,IX=/\d+/i,LX={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},FX={any:[/^д/i,/^н/i]},$X={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},BX={any:[/1/i,/2/i,/3/i,/4/i]},HX={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},zX={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]},jX={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},WX={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},UX={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},VX={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},GX={ordinalNumber:nn({matchPattern:NX,parsePattern:IX,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:LX,defaultMatchWidth:"wide",parsePatterns:FX,defaultParseWidth:"any"}),quarter:Me({matchPatterns:$X,defaultMatchWidth:"wide",parsePatterns:BX,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:HX,defaultMatchWidth:"wide",parsePatterns:zX,defaultParseWidth:"any"}),day:Me({matchPatterns:jX,defaultMatchWidth:"wide",parsePatterns:WX,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:UX,defaultMatchWidth:"wide",parsePatterns:VX,defaultParseWidth:"any"})},qX={code:"ru",formatDistance:gX,formatLong:_X,formatRelative:TX,localize:DX,match:GX,options:{weekStartsOn:1,firstWeekContainsDate:1}},YX={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"}},XX=function(t,r,n){var i,a=YX[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},KX={full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},ZX={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},QX={full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},JX={date:We({formats:KX,defaultWidth:"full"}),time:We({formats:ZX,defaultWidth:"full"}),dateTime:We({formats:QX,defaultWidth:"full"})},eK={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"},tK=function(t,r,n,i){return eK[t]},rK={narrow:["MÖ","MS"],abbreviated:["MÖ","MS"],wide:["Milattan Önce","Milattan Sonra"]},nK={narrow:["1","2","3","4"],abbreviated:["1Ç","2Ç","3Ç","4Ç"],wide:["İlk çeyrek","İkinci Çeyrek","Üçüncü çeyrek","Son çeyrek"]},iK={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"]},aK={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"]},oK={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"}},sK={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"}},lK=function(t,r){var n=Number(t);return n+"."},uK={ordinalNumber:lK,era:Ee({values:rK,defaultWidth:"wide"}),quarter:Ee({values:nK,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:Ee({values:iK,defaultWidth:"wide"}),day:Ee({values:aK,defaultWidth:"wide"}),dayPeriod:Ee({values:oK,defaultWidth:"wide",formattingValues:sK,defaultFormattingWidth:"wide"})},cK=/^(\d+)(\.)?/i,dK=/\d+/i,hK={narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},fK={any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},pK={narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},mK={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]},gK={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},vK={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]},yK={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},bK={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]},_K={narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},wK={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}},CK={ordinalNumber:nn({matchPattern:cK,parsePattern:dK,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:hK,defaultMatchWidth:"wide",parsePatterns:fK,defaultParseWidth:"any"}),quarter:Me({matchPatterns:pK,defaultMatchWidth:"wide",parsePatterns:mK,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:gK,defaultMatchWidth:"wide",parsePatterns:vK,defaultParseWidth:"any"}),day:Me({matchPatterns:yK,defaultMatchWidth:"wide",parsePatterns:bK,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:_K,defaultMatchWidth:"any",parsePatterns:wK,defaultParseWidth:"any"})},xK={code:"tr",formatDistance:XX,formatLong:JX,formatRelative:tK,localize:uK,match:CK,options:{weekStartsOn:1,firstWeekContainsDate:1}};function nl(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 Mr(e){return function(t,r){return r&&r.addSuffix?r.comparison&&r.comparison>0?e.future?nl(e.future,t):"за "+nl(e.regular,t):e.past?nl(e.past,t):nl(e.regular,t)+" тому":nl(e.regular,t)}}var TK=function(t,r){return r&&r.addSuffix?r.comparison&&r.comparison>0?"за півхвилини":"півхвилини тому":"півхвилини"},SK={lessThanXSeconds:Mr({regular:{one:"менше секунди",singularNominative:"менше {{count}} секунди",singularGenitive:"менше {{count}} секунд",pluralGenitive:"менше {{count}} секунд"},future:{one:"менше, ніж за секунду",singularNominative:"менше, ніж за {{count}} секунду",singularGenitive:"менше, ніж за {{count}} секунди",pluralGenitive:"менше, ніж за {{count}} секунд"}}),xSeconds:Mr({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунди",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду тому",singularGenitive:"{{count}} секунди тому",pluralGenitive:"{{count}} секунд тому"},future:{singularNominative:"за {{count}} секунду",singularGenitive:"за {{count}} секунди",pluralGenitive:"за {{count}} секунд"}}),halfAMinute:TK,lessThanXMinutes:Mr({regular:{one:"менше хвилини",singularNominative:"менше {{count}} хвилини",singularGenitive:"менше {{count}} хвилин",pluralGenitive:"менше {{count}} хвилин"},future:{one:"менше, ніж за хвилину",singularNominative:"менше, ніж за {{count}} хвилину",singularGenitive:"менше, ніж за {{count}} хвилини",pluralGenitive:"менше, ніж за {{count}} хвилин"}}),xMinutes:Mr({regular:{singularNominative:"{{count}} хвилина",singularGenitive:"{{count}} хвилини",pluralGenitive:"{{count}} хвилин"},past:{singularNominative:"{{count}} хвилину тому",singularGenitive:"{{count}} хвилини тому",pluralGenitive:"{{count}} хвилин тому"},future:{singularNominative:"за {{count}} хвилину",singularGenitive:"за {{count}} хвилини",pluralGenitive:"за {{count}} хвилин"}}),aboutXHours:Mr({regular:{singularNominative:"близько {{count}} години",singularGenitive:"близько {{count}} годин",pluralGenitive:"близько {{count}} годин"},future:{singularNominative:"приблизно за {{count}} годину",singularGenitive:"приблизно за {{count}} години",pluralGenitive:"приблизно за {{count}} годин"}}),xHours:Mr({regular:{singularNominative:"{{count}} годину",singularGenitive:"{{count}} години",pluralGenitive:"{{count}} годин"}}),xDays:Mr({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} днi",pluralGenitive:"{{count}} днів"}}),aboutXWeeks:Mr({regular:{singularNominative:"близько {{count}} тижня",singularGenitive:"близько {{count}} тижнів",pluralGenitive:"близько {{count}} тижнів"},future:{singularNominative:"приблизно за {{count}} тиждень",singularGenitive:"приблизно за {{count}} тижні",pluralGenitive:"приблизно за {{count}} тижнів"}}),xWeeks:Mr({regular:{singularNominative:"{{count}} тиждень",singularGenitive:"{{count}} тижні",pluralGenitive:"{{count}} тижнів"}}),aboutXMonths:Mr({regular:{singularNominative:"близько {{count}} місяця",singularGenitive:"близько {{count}} місяців",pluralGenitive:"близько {{count}} місяців"},future:{singularNominative:"приблизно за {{count}} місяць",singularGenitive:"приблизно за {{count}} місяці",pluralGenitive:"приблизно за {{count}} місяців"}}),xMonths:Mr({regular:{singularNominative:"{{count}} місяць",singularGenitive:"{{count}} місяці",pluralGenitive:"{{count}} місяців"}}),aboutXYears:Mr({regular:{singularNominative:"близько {{count}} року",singularGenitive:"близько {{count}} років",pluralGenitive:"близько {{count}} років"},future:{singularNominative:"приблизно за {{count}} рік",singularGenitive:"приблизно за {{count}} роки",pluralGenitive:"приблизно за {{count}} років"}}),xYears:Mr({regular:{singularNominative:"{{count}} рік",singularGenitive:"{{count}} роки",pluralGenitive:"{{count}} років"}}),overXYears:Mr({regular:{singularNominative:"більше {{count}} року",singularGenitive:"більше {{count}} років",pluralGenitive:"більше {{count}} років"},future:{singularNominative:"більше, ніж за {{count}} рік",singularGenitive:"більше, ніж за {{count}} роки",pluralGenitive:"більше, ніж за {{count}} років"}}),almostXYears:Mr({regular:{singularNominative:"майже {{count}} рік",singularGenitive:"майже {{count}} роки",pluralGenitive:"майже {{count}} років"},future:{singularNominative:"майже за {{count}} рік",singularGenitive:"майже за {{count}} роки",pluralGenitive:"майже за {{count}} років"}})},EK=function(t,r,n){return n=n||{},SK[t](r,n)},MK={full:"EEEE, do MMMM y 'р.'",long:"do MMMM y 'р.'",medium:"d MMM y 'р.'",short:"dd.MM.y"},AK={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},PK={full:"{{date}} 'о' {{time}}",long:"{{date}} 'о' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},RK={date:We({formats:MK,defaultWidth:"full"}),time:We({formats:AK,defaultWidth:"full"}),dateTime:We({formats:PK,defaultWidth:"full"})},Hy=["неділю","понеділок","вівторок","середу","четвер","п’ятницю","суботу"];function OK(e){var t=Hy[e];switch(e){case 0:case 3:case 5:case 6:return"'у минулу "+t+" о' p";case 1:case 2:case 4:return"'у минулий "+t+" о' p"}}function GM(e){var t=Hy[e];return"'у "+t+" о' p"}function kK(e){var t=Hy[e];switch(e){case 0:case 3:case 5:case 6:return"'у наступну "+t+" о' p";case 1:case 2:case 4:return"'у наступний "+t+" о' p"}}var DK=function(t,r,n){var i=rn(t),a=i.getUTCDay();return La(i,r,n)?GM(a):OK(a)},NK=function(t,r,n){var i=rn(t),a=i.getUTCDay();return La(i,r,n)?GM(a):kK(a)},IK={lastWeek:DK,yesterday:"'вчора о' p",today:"'сьогодні о' p",tomorrow:"'завтра о' p",nextWeek:NK,other:"P"},LK=function(t,r,n,i){var a=IK[t];return typeof a=="function"?a(r,n,i):a},FK={narrow:["до н.е.","н.е."],abbreviated:["до н. е.","н. е."],wide:["до нашої ери","нашої ери"]},$K={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},BK={narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},HK={narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січня","лютого","березня","квітня","травня","червня","липня","серпня","вересня","жовтня","листопада","грудня"]},zK={narrow:["Н","П","В","С","Ч","П","С"],short:["нд","пн","вт","ср","чт","пт","сб"],abbreviated:["нед","пон","вів","сер","чтв","птн","суб"],wide:["неділя","понеділок","вівторок","середа","четвер","п’ятниця","субота"]},jK={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:"ніч"}},WK={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:"ночі"}},UK=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},VK={ordinalNumber:UK,era:Ee({values:FK,defaultWidth:"wide"}),quarter:Ee({values:$K,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ee({values:BK,defaultWidth:"wide",formattingValues:HK,defaultFormattingWidth:"wide"}),day:Ee({values:zK,defaultWidth:"wide"}),dayPeriod:Ee({values:jK,defaultWidth:"any",formattingValues:WK,defaultFormattingWidth:"wide"})},GK=/^(\d+)(-?(е|й|є|а|я))?/i,qK=/\d+/i,YK={narrow:/^((до )?н\.?\s?е\.?)/i,abbreviated:/^((до )?н\.?\s?е\.?)/i,wide:/^(до нашої ери|нашої ери|наша ера)/i},XK={any:[/^д/i,/^н/i]},KK={narrow:/^[1234]/i,abbreviated:/^[1234](-?[иі]?й?)? кв.?/i,wide:/^[1234](-?[иі]?й?)? квартал/i},ZK={any:[/1/i,/2/i,/3/i,/4/i]},QK={narrow:/^[слбктчвжг]/i,abbreviated:/^(січ|лют|бер(ез)?|квіт|трав|черв|лип|серп|вер(ес)?|жовт|лис(топ)?|груд)\.?/i,wide:/^(січень|січня|лютий|лютого|березень|березня|квітень|квітня|травень|травня|червня|червень|липень|липня|серпень|серпня|вересень|вересня|жовтень|жовтня|листопад[а]?|грудень|грудня)/i},JK={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]},eZ={narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)\.?/i,abbreviated:/^(нед|пон|вів|сер|че?тв|птн?|суб)\.?/i,wide:/^(неділ[яі]|понеділ[ок][ка]|вівтор[ок][ка]|серед[аи]|четвер(га)?|п\W*?ятниц[яі]|субот[аи])/i},tZ={narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[он]/i,/^в/i,/^с[ер]/i,/^ч/i,/^п\W*?[ят]/i,/^с[уб]/i]},rZ={narrow:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,abbreviated:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,wide:/^([дп]п|північ|полудень|ранок|ранку|день|дня|вечір|вечора|ніч|ночі)/i},nZ={any:{am:/^дп/i,pm:/^пп/i,midnight:/^півн/i,noon:/^пол/i,morning:/^р/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},iZ={ordinalNumber:nn({matchPattern:GK,parsePattern:qK,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:YK,defaultMatchWidth:"wide",parsePatterns:XK,defaultParseWidth:"any"}),quarter:Me({matchPatterns:KK,defaultMatchWidth:"wide",parsePatterns:ZK,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:QK,defaultMatchWidth:"wide",parsePatterns:JK,defaultParseWidth:"any"}),day:Me({matchPatterns:eZ,defaultMatchWidth:"wide",parsePatterns:tZ,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:rZ,defaultMatchWidth:"wide",parsePatterns:nZ,defaultParseWidth:"any"})},aZ={code:"uk",formatDistance:EK,formatLong:RK,formatRelative:LK,localize:VK,match:iZ,options:{weekStartsOn:1,firstWeekContainsDate:1}},oZ={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}} 年"}},sZ=function(t,r,n){var i,a=oZ[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},lZ={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},uZ={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},cZ={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},dZ={date:We({formats:lZ,defaultWidth:"full"}),time:We({formats:uZ,defaultWidth:"full"}),dateTime:We({formats:cZ,defaultWidth:"full"})};function g2(e,t,r){var n="eeee p";return La(e,t,r)?n:e.getTime()>t.getTime()?"'下个'"+n:"'上个'"+n}var hZ={lastWeek:g2,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:g2,other:"PP p"},fZ=function(t,r,n,i){var a=hZ[t];return typeof a=="function"?a(r,n,i):a},pZ={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},mZ={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},gZ={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},vZ={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},yZ={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:"夜间"}},bZ={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:"夜间"}},_Z=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()}},wZ={ordinalNumber:_Z,era:Ee({values:pZ,defaultWidth:"wide"}),quarter:Ee({values:mZ,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ee({values:gZ,defaultWidth:"wide"}),day:Ee({values:vZ,defaultWidth:"wide"}),dayPeriod:Ee({values:yZ,defaultWidth:"wide",formattingValues:bZ,defaultFormattingWidth:"wide"})},CZ=/^(第\s*)?\d+(日|时|分|秒)?/i,xZ=/\d+/i,TZ={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},SZ={any:[/^(前)/i,/^(公元)/i]},EZ={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},MZ={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},AZ={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},PZ={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]},RZ={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},OZ={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},kZ={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},DZ={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},NZ={ordinalNumber:nn({matchPattern:CZ,parsePattern:xZ,valueCallback:function(t){return parseInt(t,10)}}),era:Me({matchPatterns:TZ,defaultMatchWidth:"wide",parsePatterns:SZ,defaultParseWidth:"any"}),quarter:Me({matchPatterns:EZ,defaultMatchWidth:"wide",parsePatterns:MZ,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Me({matchPatterns:AZ,defaultMatchWidth:"wide",parsePatterns:PZ,defaultParseWidth:"any"}),day:Me({matchPatterns:RZ,defaultMatchWidth:"wide",parsePatterns:OZ,defaultParseWidth:"any"}),dayPeriod:Me({matchPatterns:kZ,defaultMatchWidth:"any",parsePatterns:DZ,defaultParseWidth:"any"})},IZ={code:"zh-CN",formatDistance:sZ,formatLong:dZ,formatRelative:fZ,localize:wZ,match:NZ,options:{weekStartsOn:1,firstWeekContainsDate:4}},LZ=Math.ceil,FZ=Math.max;function $Z(e,t,r,n){for(var i=-1,a=FZ(LZ((t-e)/(r||1)),0),o=Array(a);a--;)o[++i]=e,e+=r;return o}function BZ(e){return function(t,r,n){return n&&typeof n!="number"&&N.isIterateeCall(t,r,n)&&(r=n=void 0),t=w.toFinite(t),r===void 0?(r=t,t=0):r=w.toFinite(r),n=n===void 0?t<r?1:-1:w.toFinite(n),$Z(t,r,n)}}var jc=BZ();const Fu=e=>{switch(e){case"de":case"de-DE":return pV;case"en":case"en-US":return dg;case"gb":case"en-GB":return bV;case"es":case"es-ES":case"es-AR":return KV;case"fr":case"fr-FR":return SG;case"it":case"it-IT":return nq;case"ja":case"ja-JP":return Dq;case"ko":case"ko-KR":return uY;case"nl":case"nl-NL":return $Y;case"pt":case"pt-BR":return pX;case"ru":case"ru-RU":return qX;case"tr":case"tr-TR":return xK;case"zh":case"zh-CN":return IZ;case"uk":return aZ;default:return dg}};var qM=(e=>(e.YEAR="years",e.QUARTER="quarters",e.MONTH="months",e.WEEK="weeks",e.DATE="dates",e))(qM||{});const HZ={dates:e=>NU(e),months:e=>LU(e),quarters:e=>IU(e),weeks:(e,t)=>DU(e,{locale:t}),years:e=>FU(e)},zZ=(e,t,r)=>HZ[e](t,r),jZ=e=>w.parseISOWithTimezoneCheck(e);jc(4),jc(12),jc(7),jc(24);function ia(e,t,r){const n=new RegExp("'[^']+'|("+t+")","g");return e.replace(n,function(a,o){return o?r(a):a})}const WZ=["shortDate","shortTime","short","mediumDate","mediumTime","medium","longDate","fullDate"],UZ=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 VZ(e,t){if(!t.formatLong)return console.warn("Locale does not have formatLong property. Using default date formats."),UZ[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 GZ(e,t){if(!(e.includes("short")||e.includes("medium")||e.includes("long")||e.includes("full")))return e;let r=e;return WZ.forEach(n=>{const i=VZ(n,t);r=ia(r,n,function(){return i})}),r}const YM="Etc/GMT-14";function qZ(e,t,r){return XM(e,t,r)?VM(e,1):e}function YZ(e,t){return t<=e.getMonth()}function XM(e,t,r){const n=![aQ,zy].includes(t);return r>JM&&n&&YZ(e,r)}function XZ(e,t,r,n){return!n&&XM(e,t,r)?HM(e,1):e}function KZ(e,t){if(t>0){const r=(e.getMonth()+t)%12;return BU(e,r)}return e}function ZZ(e,t,r,n,i,a){if(!e.includes("y"))return e;const o=XZ(t,n,a,i);let s=e;if(["yyyy","yy","y","yp","yyyp"].some(c=>e.includes(c))&&(r=YM),e.includes("yp")){const c=VM(o,1);s=ia(e,"yp|yyyp",function(h){const p="y".repeat(h.length);return Ia(c,r,p)})}return ia(s,"yyyy|yy|y",function(d){return Ia(o,r,d)})}function QZ(e,t,r,n){if(!e.includes("Q"))return e;const i=Ia(t,YM,"M");let a=parseInt(i,10)-1;n&&[zy,oQ,sQ,QM].includes(r)&&(a-=n>a?n-12:n);const o=parseInt(String(a/3))+1;return ia(e,"QQ|Q",function(c){return`${c.length===2?"'Quarter '":"'Q'"}${o}`})}function JZ(e){return e.includes("sss")?ia(e,"sss",function(){return"SSS"}):e}function eQ(e,t,r){if(!(e.includes("a")||e.includes("A")))return e;let n=ia(e,"a",function(){return`\0${Ia(t,r,"a").toLowerCase()}\0`});return n=ia(n,"A",function(){return`\0${Ia(t,r,"a").toUpperCase()}\0`}),n=n.replace(/\0\0/g,""),n=n.replace(/\0/g,"'"),n}const KM=new Set(["y","yy","yyy","yyyy","M","MM","MMM","MMMM","d","dd","EEE","EEEE","H","HH","h","hh","k","kk","m","mm","s","ss","S","SS","SSS","w","ww","o"]),tQ=/^([a-zA-Z])\1*/;function ZM(e){var t;return(t=e.match(tQ))==null?void 0:t[0]}function rQ(e,t){let r="",n=t;for(;n<e.length&&e[n]!=="'";){const i=ZM(e.slice(n));if(i){if(KM.has(i))break;r+=i,n+=i.length}else r+=e[n],n++}return{literal:r,endIndex:n}}function nQ(e){const t=[];let r=0;for(;r<e.length;){if(e[r]==="'"){const i=e.indexOf("'",r+1);if(i===-1){t.push(e.slice(r));break}t.push(e.slice(r,i+1)),r=i+1;continue}const n=ZM(e.slice(r));if(n&&KM.has(n)){t.push(n),r+=n.length;continue}if(n){const{literal:i,endIndex:a}=rQ(e,r);t.push(`'${i.replace(/'/g,"''")}'`),r=a;continue}t.push(e[r]),r++}return t.join("")}function iQ(e,t,r,n){return e.includes("Z")?ia(e,"Z",function(){return Ia(t,r,"xx",{locale:n})}):e}const aQ="years",zy="quarters",oQ="months",sQ="weeks",QM="days",JM=0,lQ=1,$u=Object.freeze({weekFirstDay:lQ,isFiscalOn:!1,fiscalMonth:JM,selectedDateLevel:QM,timeZone:"UTC"});function Bu(e,t,r=Fu(),n=$u){if(e===w.NOT_AVAILABLE_DATA_VALUE)return e;const i=e instanceof Date?e:w.parseISOWithTimezoneCheck(e);return uQ(i,t,r,n)}function uQ(e,t,r=Fu(),n=$u){return e.getFullYear()<100?e=h2(e,1900+e.getFullYear()):e.getFullYear()===1111&&(e=h2(e,1970)),n.isFiscalOn||(e=qZ(e,n.selectedDateLevel,n.fiscalMonth)),t=GZ(t,r),t=JZ(t),t=eQ(t,e,n.timeZone),t=iQ(t,e,n.timeZone,r),t=ZZ(t,e,n.timeZone,n.selectedDateLevel,n.isFiscalOn,n.fiscalMonth),!n.isFiscalOn&&n.selectedDateLevel===zy&&(e=KZ(e,n.fiscalMonth)),t=QZ(t,e,n.selectedDateLevel,n.fiscalMonth),t=nQ(t),Ia(e,n.timeZone,t,{locale:r,weekStartsOn:n.weekFirstDay})}function cQ(e){switch(e){case N.DateLevels.Years:return"yyyy";case N.DateLevels.Quarters:return"Q yyyy";case N.DateLevels.Months:return"MM/yyyy";case N.DateLevels.Weeks:return"ww yyyy";case N.DateLevels.Days:return"shortDate";case N.DateLevels.Hours:case N.DateLevels.Minutes:case N.DateLevels.MinutesRoundTo15:case N.DateLevels.MinutesRoundTo30:case N.DateLevels.AggMinutesRoundTo1:case N.DateLevels.AggMinutesRoundTo15:case N.DateLevels.AggMinutesRoundTo30:case N.DateLevels.AggHours:return"HH:mm";case N.DateLevels.Seconds:return"HH:mm:ss";default:return"fullDate"}}const e3=(e,t=-1)=>{var n,i,a;return[...(n=e.rows)!=null?n:[],...(i=e.columns)!=null?i:[],...(a=e.values)!=null?a:[]][t]},dQ=(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}`}},t3=e=>{const t=e&&"numberFormatConfig"in e?e.numberFormatConfig:void 0;return w.getCompleteNumberFormatConfig(t)},hQ=e=>{const t=w.normalizeColumn(e),r=w.getDataOptionGranularity(t);return(t==null?void 0:t.dateFormat)||w.getDefaultDateFormat(r)},fQ=(e,t)=>(r,n)=>{var c,d;const i=(n==null?void 0:n.panel)==="measures",a=r.userType===tr.CORNER,o=e3(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?hQ(o):void 0;switch((d=n==null?void 0:n.jaql)==null?void 0:d.datatype){case"numeric":r.content=w.applyFormatPlainText(t3(o),parseFloat(`${r.value}`));break;case"datetime":r.content=jy(r.value,t,u);break;default:r.content=r.value}o&&"isHtml"in o&&o.isHtml&&(r.contentType="html"),r.content===""&&(r.content=w.NOT_AVAILABLE_DATA_VALUE)};function jy(e,t,r){if(e===w.NOT_AVAILABLE_DATA_VALUE)return e;if(!r)return typeof e=="string"?e:e.toISOString();const n=typeof e=="string"?w.parseISOWithTimezoneCheck(e):e;return pQ(n)?typeof e=="string"?e:e.toISOString():t(n,r)}function pQ(e){return e.toString()==="Invalid Date"}function mr(e){const t="type"in e.column?e.column.type:"numeric";let r=n=>`${n}`;if(N.isNumber(t)){const n=w.getCompleteNumberFormatConfig(e&&"numberFormatConfig"in e?e.numberFormatConfig:void 0);r=i=>w.applyFormatPlainText(n,parseFloat(`${i}`))}if(N.isDatetime(t)){const n=e.dateFormat||w.getDefaultDateFormat(w.getDataOptionGranularity(e)),i=(a,o)=>Bu(a,o);r=a=>jy(Yj(a)?a.toISOString():a,i,n)}return n=>n===void 0?"":r(n)}function Je(e,t){return M(M(M({dataOption:e},t&&{dataOptionLocation:t}),N.MetadataTypes.isAttribute(e.column)&&{attribute:e.column}),N.MetadataTypes.isMeasure(e.column)&&{measure:e.column})}const lf=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}},mQ=(e,t)=>{const r=t.x.map((s,u)=>{var d,h;const c=(h=(d=e.custom)==null?void 0:d.xValue)==null?void 0:h[u];return B(M({},Je(s)),{value:c,displayValue:mr(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 B(M({},Je(s)),{value:u,displayValue:mr(s)(u)})}),a=t.breakBy.map(s=>{var c,d,h;const u=(h=(d=(c=e.series)==null?void 0:c.options.custom)==null?void 0:d.rawValue)==null?void 0:h[0];return B(M({},Je(s)),{value:u,displayValue:mr(s)(u)})}),o={category:r,value:i,breakBy:a};return B(M({},lf(e)),{entries:o})},gQ=(e,t)=>{const r=t.x.map((s,u)=>{var d,h;const c=(h=(d=e.custom)==null?void 0:d.xValue)==null?void 0:h[u];return B(M({},Je(s)),{value:c,displayValue:mr(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,m;const h=c===0?(p=e.options)==null?void 0:p.low:(m=e.options)==null?void 0:m.high;return B(M({},Je(u)),{value:h,displayValue:mr(u)(h)})})),a=t.breakBy.map(s=>{var c,d,h;const u=(h=(d=(c=e.series)==null?void 0:c.options.custom)==null?void 0:d.rawValue)==null?void 0:h[0];return B(M({},Je(s)),{value:u,displayValue:mr(s)(u)})}),o={category:r,value:i,breakBy:a};return B(M({},lf(e)),{entries:o})},vQ=(e,t)=>{var n,i,a,o,s;const r={};if(t.x){const u=e.custom.maskedX;r.x=B(M({},Je(t.x)),{value:u,displayValue:u})}if(t.y){const u=e.custom.maskedY;r.y=B(M({},Je(t.y)),{value:u,displayValue:u})}if(t.breakByPoint){const u=(n=e.custom)==null?void 0:n.maskedBreakByPoint;r.breakByPoint=B(M({},Je(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=B(M({},Je(t.breakByColor)),{value:u,displayValue:u})}if(t.size){const u=e.custom.maskedSize;r.size=B(M({},Je(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}},yQ=(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 B(M({},Je(a)),{value:s,displayValue:mr(a)(s)})}),n=t.y.map(a=>{var s;const o=(s=e.custom)==null?void 0:s.rawValue;return B(M({},Je(a)),{value:o,displayValue:mr(a)(o)})}),i={category:r,value:n};return{value:e.options.custom.number1,categoryValue:e.options.name,categoryDisplayValue:e.name,entries:i}},bQ=(e,t)=>{const r=t.breakBy.map((o,s)=>{var c,d;const u=(d=(c=e.custom)==null?void 0:c.xValue)==null?void 0:d[s];return B(M({},Je(o)),{value:u,displayValue:mr(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 B(M({},Je(o)),{value:s,displayValue:mr(o)(s)})}),a={category:r,value:i};return B(M({},lf(e)),{entries:a})},_Q=(e,t)=>{const r=e.options.custom.level,n=r!==e.options.custom.levelsCount,i=t.breakBy.slice(0,r).map((u,c)=>{var h,p,m,v;const d=n?(p=(h=e.custom)==null?void 0:h.rawValues)==null?void 0:p[c]:(v=(m=e.custom)==null?void 0:m.xValue)==null?void 0:v[c];return B(M({},Je(u)),{value:d,displayValue:d})}),a=t.y.length>=2,o=t.y.filter((u,c)=>!a||e.series.index===c).map(u=>{var d;const c=n?e.value:(d=e.custom)==null?void 0:d.rawValue;return B(M({},Je(u)),{value:c,displayValue:mr(u)(c)})}),s={category:i,value:o};return B(M({},lf(e)),{entries:s})},wQ=(e,t)=>{var i;const r=e.series.type==="scatter",n={};if(r){const a=e.options.y;n.value=[B(M({},Je(t.outliers)),{value:a,displayValue:mr(t.outliers)(a)})]}else{const a=(o,s)=>o?B(M({},Je(o)),{value:s,displayValue:mr(o)(s)}):void 0;n.value=[a(t.boxMin,e.options.q1),a(t.boxMedian,e.options.median),a(t.boxMax,e.options.q3),a(t.whiskerMin,e.options.low),a(t.whiskerMax,e.options.high)].filter(o=>o!==void 0)}if(t.category){const a=(i=e.custom.xValue)==null?void 0:i[0];n.category=[B(M({},Je(t.category)),{value:a,displayValue:mr(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}},CQ=(e,t)=>{const r=new Date(e.options.date),n=e.options.dateString,i=e.options.value,a=B(M({},Je(t.date)),{value:n,displayValue:mr(t.date)(r)}),o=typeof i=="number",s=t.value&&o?B(M({},Je(t.value)),{value:typeof i=="number"?i:0,displayValue:mr(t.value)(i)}):void 0;return{entries:{date:a,value:s}}};function fm(e,t){switch(e.series.chart.options.chart.type){case"bubble":case"scatter":return vQ(e,t);case"funnel":return yQ(e,t);case"pie":return bQ(e,t);case"treemap":case"sunburst":return _Q(e,t);case"boxplot":return wQ(e,t);case"arearange":return gQ(e,t);case"heatmap":return CQ(e,t);default:return mQ(e,t)}}function xQ(e,t){const r={};return t.geo&&(r.geo=[B(M({},Je(t.geo)),{value:e.geoName})]),t.color&&(r.color=[B(M({},Je(t.color)),{value:e.originalValue})]),B(M({},e),{entries:r})}class Wy{constructor(t,r){tt(this,"httpClient");tt(this,"defaultDataSource");tt(this,"getDashboards",(...r)=>Vt(this,[...r],function*(t={}){const{fields:n,expand:i,searchByTitle:a}=t,o=new URLSearchParams(M(M(M({},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=>Vt(this,null,function*(){if(c.oid&&!c.datasource){const d=yield this.getDashboard(c.oid,{fields:["datasource"]});return d!=null&&d.datasource?B(M({},c),{datasource:d.datasource}):c}return c}));return Promise.all(u)}));tt(this,"getDashboard",(t,r={})=>{const{fields:n,sharedMode:i}=r,a=new URLSearchParams(M(M({},(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 N.TranslatableError("errors.dashboardInvalidIdentifier",{dashboardOid:t})})});tt(this,"getDashboardLegacy",t=>this.httpClient.get(`api/dashboards/${t}`).catch(()=>{throw new N.TranslatableError("errors.dashboardInvalidIdentifier",{dashboardOid:t})}));tt(this,"getDashboardWidgets",(t,r)=>{const n=new URLSearchParams(M({},r&&{sharedMode:"true"})).toString();return this.httpClient.get(`api/v1/dashboards/${t}/widgets?${n}`).catch(()=>{throw new N.TranslatableError("errors.dashboardWidgetsInvalidIdentifiers",{dashboardOid:t})})});tt(this,"getWidget",(t,r,n)=>{const i=new URLSearchParams(M({},n&&{sharedMode:"true"})).toString();return this.httpClient.get(`api/v1/dashboards/${r}/widgets/${t}?${i}`).catch(()=>{throw new N.TranslatableError("errors.widgetByIdInvalidIdentifier",{dashboardOid:r,widgetOid:t})})});tt(this,"getCountriesGeoJson",()=>this.httpClient.get("api/v1/geo/geojson/world"));tt(this,"getUsaStatesGeoJson",()=>this.httpClient.get("api/v1/geo/geojson/usa"));tt(this,"getPalettes",()=>this.httpClient.get("api/palettes"));tt(this,"getHierarchies",({dataSource:t=this.defaultDataSource,dimension:r,ids:n,alwaysIncluded:i})=>{const a="granularity"in r;let o="";if(!t)throw new N.TranslatableError("errors.missingDataSource");if(a){const{level:u,dateTimeLevel:c}=r.translateGranularityToJaql();o=u!=null?u:c}const s=new URLSearchParams(M(M(M({elasticube:N.getDataSourceName(t),table:N.getTableNameFromAttribute(r),column:N.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=[])=>w.isUndefined(i)&&(n==null?void 0:n.length)?u.filter(({_id:d})=>n.includes(d)):u)});tt(this,"patchDashboard",(t,r,n)=>{const i=new URLSearchParams(M({},n&&{sharedMode:"true"})).toString();return this.httpClient.patch(`api/v1/dashboards/${t}?${i}`,r)});tt(this,"addWidgetToDashboard",(t,r,n)=>{const i=new URLSearchParams(M({},n&&{sharedMode:"true"})).toString();return this.httpClient.post(`api/v1/dashboards/${t}/widgets?${i}`,r)});tt(this,"deleteWidgetFromDashboard",(t,r,n)=>{const i=new URLSearchParams(M({},n&&{sharedMode:"true"})).toString();return this.httpClient.delete(`api/v1/dashboards/${t}/widgets/${r}?${i}`)});tt(this,"patchWidgetInDashboard",(t,r,n,i)=>{const a=new URLSearchParams(M({},i&&{sharedMode:"true"})).toString();return this.httpClient.patch(`api/v1/dashboards/${t}/widgets/${r}?${a}`,n)});tt(this,"getSharedFormulas",t=>Vt(this,null,function*(){return(yield Promise.all(t.map(this.getSharedFormula))).filter(TQ).reduce((n,i)=>(n[i.oid]=i,n),{})}));tt(this,"getSharedFormula",t=>Vt(this,null,function*(){return this.httpClient.get(`api/v1/formulas/${t}?flat=true`)}));tt(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 N.TranslatableError("errors.httpClientNotFound");this.httpClient=t,this.defaultDataSource=r}}function TQ(e){return!!e}const r3=()=>{const{app:e}=_t();return{restApi:k.useMemo(()=>e&&new Wy(e.httpClient,e.defaultDataSource),[e]),isReady:!!e}};class SQ extends N.TranslatableError{constructor(){super("errors.restApiNotReady")}}const EQ=e=>{const{isReady:t,restApi:r}=r3(),[n,i]=k.useState(),[a,o]=k.useState(),s=RQ();return k.useEffect(()=>{if(!s||!t||!r)return;Vt(exports,null,function*(){try{const c=OQ(e,s),d=MQ(c);if(d)i(d);else{kQ(e);let h;switch(e){case"world":h=r.getCountriesGeoJson;break;case"usa":h=r.getUsaStatesGeoJson;break;default:throw new N.TranslatableError("errors.unsupportedMapType",{mapType:e})}const p=yield h();if(!p)throw new N.TranslatableError("errors.mapLoadingFailed");const m=e==="world"?PQ(p):p;AQ(m,c),i(m)}}catch(c){o(c)}})},[r,t,e,s]),{geoJson:n,error:a}};function MQ(e){const t=localStorage.getItem(e);if(t)return JSON.parse(t)}function AQ(e,t){localStorage.setItem(t,JSON.stringify(e))}function PQ(e){const t=N.cloneDeep(e);return t.features.forEach(r=>{var n;r.id==="-99"&&(r.id=(n=r.properties)==null?void 0:n.name)}),t}function RQ(){const{app:e}=_t();return e==null?void 0:e.settings.serverVersion}function OQ(e,t){return`geoJson_${e}_${t}`}function kQ(e){Object.keys(localStorage).forEach(r=>{r.startsWith(`geoJson_${e}`)&&localStorage.removeItem(r)})}const DQ=({chartData:e,dataOptions:t,designOptions:r,onDataPointClick:n})=>{const{themeSettings:i}=mt(),{geoJson:a}=EQ(r.mapType),o=k.useMemo(()=>t.color?e.geoData:e.geoData.map(u=>B(M({},u),{color:w.getPaletteColor(i.palette.variantColors,0)})),[e.geoData,t,i]),s=k.useCallback((u,c)=>{if(!n)return;const d=xQ(u,t);n(d,c)},[t,n]);return w.jsx(w.Fragment,{children:a&&w.jsx(Hj,{geoJson:a,geoData:o,dataOptions:{originalValueTitle:t.color?w.getDataOptionTitle(t.color):"",onAreaClick:s},mapType:r.mapType})})},n3=e=>e.type==="areamap"&&"geoData"in e,NQ=e=>"geo"in e,IQ=e=>"mapType"in e,LQ=e=>!!e.chartData&&n3(e.chartData)&&NQ(e.dataOptions)&&IQ(e.designOptions),FQ={dataOptions:h6,data:W7,designOptions:G7,renderer:{ChartRendererComponent:DQ,isCorrectRendererProps:LQ}},$Q={[N.DateLevels.Years]:"attribute.datetimeName.years",[N.DateLevels.Quarters]:"attribute.datetimeName.quarters",[N.DateLevels.Months]:"attribute.datetimeName.months",[N.DateLevels.Weeks]:"attribute.datetimeName.weeks",[N.DateLevels.Days]:"attribute.datetimeName.days",[N.DateLevels.AggHours]:"attribute.datetimeName.hours",[N.DateLevels.AggMinutesRoundTo15]:"attribute.datetimeName.minutes"};function i3(e,t,r){return r?e($Q[r],{columnName:t}):t}function a3(e,t,r){const n=N.getColumnNameFromAttribute(e),i=r?i3(r,n,t):n;return new N.DimensionalLevelAttribute(i,e.expression,t,N.DimensionalLevelAttribute.getDefaultFormatForGranularity(t),void 0,void 0,e.dataSource)}const Xa=e=>{var t;return{x:e.category.map(r=>w.normalizeColumn(r)),y:e.value.map(r=>w.normalizeMeasureColumn(r)),breakBy:((t=e.breakBy)==null?void 0:t.map(r=>w.normalizeColumn(r)))||[],seriesToColorMap:e.seriesToColorMap}};function bs(e){return[...e.x.map(fg),...e.breakBy.map(fg)].filter(o3)}function _s(e){return e.y.map(fg).filter(w.isMeasureColumn)}function ws(e){return"category"in e&&N.isArray(e.category)&&"value"in e&&N.isArray(e.value)&&"breakBy"in e&&N.isArray(e.breakBy)}function Cs(e){return"x"in e&&N.isArray(e.x)&&e.x.every(w.isStyledColumn)&&"y"in e&&N.isArray(e.y)&&e.y.every(w.isStyledColumn)&&"breakBy"in e&&N.isArray(e.breakBy)&&e.breakBy.every(w.isStyledColumn)}function fg(e){return e.column}function o3(e){return!w.isMeasureColumn(e)}function uf(e){return e.y.some(t=>t.showOnRightAxis)}function BQ(e){const t=w.normalizeColumn(e.date),r=w.normalizeMeasureColumn(e.value),n=t.column;return N.isDimensionalLevelAttribute(n)&&n.granularity!==N.DateLevels.Days&&(console.warn('The calendar heatmap chart’s "date" data option supports only day level granularity. Converted to day level.'),t.column=a3(n,N.DateLevels.Days)),{date:t,value:r}}function HQ(e){const t=e.date.column;return o3(t)?[t]:[]}function zQ(e){const t=e.value.column;return w.isMeasureColumn(t)?[t]:[]}function jQ(e){if(!("date"in e&&e.date&&"value"in e&&e.value))return!1;const r=w.normalizeColumn(e.date);return N.isDatetime(r.column.type)}function s3(e){return"date"in e&&"value"in e&&typeof e.date=="object"&&typeof e.value=="object"}function WQ(e,t){const r=w.getColumnByName(t,e.date.column.name),n=w.getColumnByName(t,e.value.column.name);if(!r||!n)return{type:w.CALENDAR_HEATMAP_DATA_TYPE,values:[]};const i=t.rows.map(a=>{const o=w.getValue(a,r),s=w.getValue(a,n),{compareValue:u,color:c}=w.getValues(a,[n])[0],h=!(u!=null&&u.valueIsNaN)&&!(u!=null&&u.valueUndefined)?s:void 0,p=w.isBlurred(a,n);return{date:new Date(o),value:h,color:c,blur:p}});return{type:w.CALENDAR_HEATMAP_DATA_TYPE,values:i}}function l3(e){return e.type===w.CALENDAR_HEATMAP_DATA_TYPE}function UQ(e){var t,r,n,i,a,o,s,u,c,d,h,p,m,v,g,b,C,x,E,T,A,R,D,I;return B(M({},Hr),{width:e.width,height:e.height,subtype:e.subtype||w.CALENDAR_HEATMAP_DEFAULTS.SUBTYPE,viewType:e.viewType||w.CALENDAR_HEATMAP_DEFAULTS.VIEW_TYPE,startOfWeek:e.startOfWeek||w.CALENDAR_HEATMAP_DEFAULTS.START_OF_WEEK,cellLabels:{enabled:(r=(t=e.cellLabels)==null?void 0:t.enabled)!=null?r:w.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:w.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:(d=(c=e.monthLabels)==null?void 0:c.enabled)!=null?d:w.CALENDAR_HEATMAP_DEFAULTS.SHOW_MONTH_LABEL,style:((h=e.monthLabels)==null?void 0:h.textStyle)||((p=e.monthLabels)==null?void 0:p.style)},weekends:{enabled:(v=(m=e.weekends)==null?void 0:m.enabled)!=null?v:w.CALENDAR_HEATMAP_DEFAULTS.WEEKEND_ENABLED,days:(b=(g=e.weekends)==null?void 0:g.days)!=null?b:[...w.CALENDAR_HEATMAP_DEFAULTS.WEEKEND_DAYS],cellColor:(x=(C=e.weekends)==null?void 0:C.cellColor)!=null?x:w.CALENDAR_HEATMAP_DEFAULTS.WEEKEND_CELL_COLOR,hideValues:(T=(E=e.weekends)==null?void 0:E.hideValues)!=null?T:w.CALENDAR_HEATMAP_DEFAULTS.WEEKEND_HIDE_VALUES},pagination:{enabled:(R=(A=e.pagination)==null?void 0:A.enabled)!=null?R:w.CALENDAR_HEATMAP_DEFAULTS.SHOW_PAGINATION,style:(D=e.pagination)==null?void 0:D.textStyle,startMonth:(I=e.pagination)==null?void 0:I.startMonth}})}function VQ(e){return typeof e=="object"&&e!==null}function GQ(e=Fu(),t=$u){return(r,n)=>Bu(r,n,e,t)}function u3(){const{app:e}=_t();return k.useCallback((t,r)=>GQ(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 c3={exports:{}};(function(e,t){(function(r,n){e.exports=n(k)})(typeof self!="undefined"?self:w.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(x){for(var E=1;E<arguments.length;E++){var T=arguments[E];for(var A in T)Object.prototype.hasOwnProperty.call(T,A)&&(x[A]=T[A])}return x},o.apply(this,arguments)}function s(x){return h(x)||d(x)||c(x)||u()}function u(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
222
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(x,E){if(x){if(typeof x=="string")return p(x,E);var T=Object.prototype.toString.call(x).slice(8,-1);return T==="Object"&&x.constructor&&(T=x.constructor.name),T==="Map"||T==="Set"?Array.from(x):T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?p(x,E):void 0}}function d(x){if(typeof Symbol!="undefined"&&x[Symbol.iterator]!=null||x["@@iterator"]!=null)return Array.from(x)}function h(x){if(Array.isArray(x))return p(x)}function p(x,E){(E==null||E>x.length)&&(E=x.length);for(var T=0,A=new Array(E);T<E;T++)A[T]=x[T];return A}function m(x){"@babel/helpers - typeof";return(m=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})(x)}Object.defineProperty(i,"__esModule",{value:!0}),a.d(i,"HighchartsReact",function(){return C});var v=a(1),g=a.n(v),b=typeof window!="undefined"?v.useLayoutEffect:v.useEffect,C=Object(v.memo)(Object(v.forwardRef)(function(x,E){var T=Object(v.useRef)(),A=Object(v.useRef)(),R=Object(v.useRef)(x.constructorType),D=Object(v.useRef)(x.highcharts);return b(function(){function I(){var G=x.highcharts||(typeof window=="undefined"?"undefined":m(window))==="object"&&window.Highcharts,q=x.constructorType||"chart";G?G[q]?x.options?A.current=G[q](T.current,x.options,x.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(A.current){if(x.allowChartUpdate!==!1)if(x.constructorType!==R.current||x.highcharts!==D.current)R.current=x.constructorType,D.current=x.highcharts,I();else if(!x.immutable&&A.current){var H;(H=A.current).update.apply(H,[x.options].concat(s(x.updateArgs||[!0,!0])))}else I()}else I()},[x.options,x.allowChartUpdate,x.updateArgs,x.containerProps,x.highcharts,x.constructorType]),b(function(){return function(){A.current&&(A.current.destroy(),A.current=null)}},[]),Object(v.useImperativeHandle)(E,function(){return{get chart(){return A.current},container:T}},[]),g.a.createElement("div",o({},x.containerProps,{ref:T}))}));i.default=C},function(n,i){n.exports=r}])})})(c3);var qQ=c3.exports;const YQ=w.getDefaultExportFromCjs(qQ);function cf(e){const t=k.useRef(void 0);return k.useEffect(()=>{t.current=e},[e]),t.current}var d3={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,d=u.height,h=u.x,p=u.y,m=r(i.borderRadiusTopLeft||0,c),v=r(i.borderRadiusTopRight||0,c),g=r(i.borderRadiusBottomRight||0,c),b=r(i.borderRadiusBottomLeft||0,c);if(m||v||g||b){var C=Math.min(c,d)/2;m>C&&(m=C),v>C&&(v=C),g>C&&(g=C),b>C&&(b=C),s.dlBox=s.shapeArgs,s.shapeType="path",s.shapeArgs={d:[["M",h+m,p+a],["L",h+c-v,p+a],["C",h+c-v/2,p,h+c,p+v/2,h+c,p+v],["L",h+c,p+d-g],["C",h+c,p+d-g/2,h+c-g/2,p+d,h+c-g,p+d+o],["L",h+b,p+d+o],["C",h+b/2,p+d,h,p+d-b/2,h,p+d-b],["L",h,p+m],["C",h,p+m/2,h+m/2,p,h+m,p],["Z"]]}}})})})})(d3);var XQ=d3.exports;const KQ=w.getDefaultExportFromCjs(XQ);var h3={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,d){return a=(d-o)*(s-a)-(u-o)*(c-a),0<a?!0:!(0>a)}function i(a,o,s,u,c,d,h,p){return n(a,o,c,d,h,p)!==n(s,u,c,d,h,p)&&n(a,o,s,u,c,d)!==n(a,o,s,u,h,p)}return{boxIntersectLine:function(a,o,s,u,c,d,h,p){return i(a,o,a+s,o,c,d,h,p)||i(a+s,o,a+s,o+u,c,d,h,p)||i(a,o+u,a+s,o+u,c,d,h,p)||i(a,o,a,o+u,c,d,h,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 d(O,$,X,j,V){var z=O.chart,Y=O.options.label||{},re=H(Y.onArea,!!O.area),W=re||Y.connectorAllowed,K=z.boxesToAvoid,ie=Number.MAX_VALUE,ne=Number.MAX_VALUE,te,oe,se;for(se=0;K&&se<K.length;se+=1)if(T(K[se],{left:$,right:$+j.width,top:X,bottom:X+j.height}))return!1;for(se=0;se<z.series.length;se+=1){var de=z.series[se];if(K=de.interpolatedPoints&&g([],de.interpolatedPoints,!0),de.visible&&K){var ce=z.plotHeight/10;for(oe=z.plotTop;oe<=z.plotTop+z.plotHeight;oe+=ce)K.unshift({chartX:z.plotLeft,chartY:oe}),K.push({chartX:z.plotLeft+z.plotWidth,chartY:oe});for(ce=1;ce<K.length;ce+=1){if(K[ce].chartX>=$-16&&K[ce-1].chartX<=$+j.width+16){if(E($,X,j.width,j.height,K[ce-1].chartX,K[ce-1].chartY,K[ce].chartX,K[ce].chartY))return!1;O===de&&!te&&V&&(te=E($-16,X-16,j.width+32,j.height+32,K[ce-1].chartX,K[ce-1].chartY,K[ce].chartX,K[ce].chartY))}if((W||te)&&(O!==de||re)){oe=$+j.width/2-K[ce].chartX;var ge=X+j.height/2-K[ce].chartY;ie=Math.min(ie,oe*oe+ge*ge)}}if(!re&&W&&O===de&&(V&&!te||ie<Math.pow(Y.connectorNeighbourDistance||1,2))){for(ce=1;ce<K.length;ce+=1)if(te=Math.min(Math.pow($+j.width/2-K[ce].chartX,2)+Math.pow(X+j.height/2-K[ce].chartY,2),Math.pow($-K[ce].chartX,2)+Math.pow(X-K[ce].chartY,2),Math.pow($+j.width-K[ce].chartX,2)+Math.pow(X-K[ce].chartY,2),Math.pow($+j.width-K[ce].chartX,2)+Math.pow(X+j.height-K[ce].chartY,2),Math.pow($-K[ce].chartX,2)+Math.pow(X+j.height-K[ce].chartY,2)),te<ne){ne=te;var Se=K[ce]}te=!0}}}return!V||te?{x:$,y:X,weight:ie-(Se?ne:0),connectorPoint:Se}:!1}function h(O){O.boxesToAvoid=[];var $=O.labelSeries||[],X=O.boxesToAvoid;O.series.forEach(function(j){return(j.points||[]).forEach(function(V){return(V.dataLabels||[]).forEach(function(z){var Y=z.getBBox(),re=z.translateX+(j.xAxis?j.xAxis.pos:j.chart.plotLeft);z=z.translateY+(j.yAxis?j.yAxis.pos:j.chart.plotTop),X.push({left:re,top:z,right:re+Y.width,bottom:z+Y.height})})})}),$.forEach(function(j){var V=j.options.label||{};j.interpolatedPoints=p(j),X.push.apply(X,V.boxesToAvoid||[])}),O.series.forEach(function(j){function V(Ae,Ie,Ue){var Ve=Math.max(ne,H(_e,-1/0)),ir=Math.min(ne+oe,H(ve,1/0));return Ae>Ve&&Ae<=ir-Ue.width&&Ie>=te&&Ie<=te+se-Ue.height}var z=j.options.label;if(z&&(j.xAxis||j.yAxis)){var Y="highcharts-color-"+H(j.colorIndex,"none"),re=!j.labelBySeries,W=z.minFontSize,K=z.maxFontSize,ie=O.inverted,ne=ie?j.yAxis.pos:j.xAxis.pos,te=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=H(z.onArea,!!j.area),ge=[],Se=j.xData||[],ye,J=j.labelBySeries;if(ce&&!ie){ie=[j.xAxis.toPixels(Se[0]),j.xAxis.toPixels(Se[Se.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 z.format=="string"?J=C(z.format,j,O):z.formatter&&(J=z.formatter.call(j)),j.labelBySeries=J=O.renderer.label(J,0,0,"connector",0,0,z.useHTML).addClass("highcharts-series-label highcharts-series-label-"+j.index+" "+(j.options.className||"")+" "+Y),O.renderer.styledMode||(Y=typeof j.color=="string"?j.color:"#666666",J.css(R({color:ce?O.renderer.getContrast(Y):Y},z.style||{})),J.attr({opacity:O.renderer.forExport?1:0,stroke:j.color,"stroke-width":1})),W&&K&&J.css({fontSize:W+(j.sum||0)/(j.chart.labelSeriesMaxSum||0)*(K-W)+"px"}),J.attr({padding:0,zIndex:3}).add()),W=J.getBBox(),W.width=Math.round(W.width),ie=de.length-1;0<ie;--ie)ce?(K=de[ie].chartX-W.width/2,Y=(de[ie].chartCenterY||0)-W.height/2,V(K,Y,W)&&(ye=d(j,K,Y,W))):(K=de[ie].chartX+3,Y=de[ie].chartY-W.height-3,V(K,Y,W)&&(ye=d(j,K,Y,W,!0)),ye&&ge.push(ye),K=de[ie].chartX+3,Y=de[ie].chartY+3,V(K,Y,W)&&(ye=d(j,K,Y,W,!0)),ye&&ge.push(ye),K=de[ie].chartX-W.width-3,Y=de[ie].chartY+3,V(K,Y,W)&&(ye=d(j,K,Y,W,!0)),ye&&ge.push(ye),K=de[ie].chartX-W.width-3,Y=de[ie].chartY-W.height-3,V(K,Y,W)&&(ye=d(j,K,Y,W,!0))),ye&&ge.push(ye);if(z.connectorAllowed&&!ge.length&&!ce)for(K=ne+oe-W.width;K>=ne;K-=16)for(Y=te;Y<te+se-W.height;Y+=16)(ye=d(j,K,Y,W,!0))&&ge.push(ye);ge.length?(ge.sort(function(Ae,Ie){return Ie.weight-Ae.weight}),ye=ge[0],(O.boxesToAvoid||[]).push({left:ye.x,right:ye.x+W.width,top:ye.y,bottom:ye.y+W.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},z={opacity:1},10>=de&&(z={x:ge.x,y:ge.y},ge={}),de=void 0,re&&(de=b(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)+te})).animate(z,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())}}),D(O,"afterDrawSeriesLabels")}function p(O){function $(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 X=O.points,j=[],V=O.graph||O.area,z=V&&V.element,Y=O.chart.inverted,re=O.xAxis,W=O.yAxis,K=Y?W.pos:re.pos;Y=Y?re.pos:W.pos,re=H((O.options.label||{}).onArea,!!O.area);var ie=W.getThreshold(O.options.threshold),ne={};if(O.getPointSpline&&z&&z.getPointAtLength&&!re&&X.length<(O.chart.plotSizeX||0)/16){for(re=V.toD&&V.attr("d"),V.toD&&V.attr({d:V.toD}),W=z.getTotalLength(),O=0;O<W;O+=16)ie=z.getPointAtLength(O),$({chartX:K+ie.x,chartY:Y+ie.y,plotX:ie.x,plotY:ie.y});re&&V.attr({d:re});var te=X[X.length-1];$({chartX:K+(te.plotX||0),chartY:Y+(te.plotY||0)})}else for(W=X.length,V=void 0,O=0;O<W;O+=1){te=X[O],z=te.plotX;var oe=te.plotY;if(I(z)&&I(oe)){var se={plotX:z,plotY:oe,chartX:K+z,chartY:Y+oe};if(re&&(se.chartCenterY=Y+(oe+H(te.yBottom,ie))/2),V){te=Math.abs(se.chartX-V.chartX);var de=Math.abs(se.chartY-V.chartY);if(te=Math.max(te,de),16<te)for(te=Math.ceil(te/16),de=1;de<te;de+=1)$({chartX:V.chartX+de/te*(se.chartX-V.chartX),chartY:V.chartY+de/te*(se.chartY-V.chartY),chartCenterY:(V.chartCenterY||0)+de/te*((se.chartCenterY||0)-(V.chartCenterY||0)),plotX:(V.plotX||0)+de/te*(z-(V.plotX||0)),plotY:(V.plotY||0)+de/te*(oe-(V.plotY||0))})}$(se),V=se}}return j}}function m(O){if(this.renderer){var $=this,X=b($.renderer.globalAnimation).duration;$.labelSeries=[],$.labelSeriesMaxSum=0,$.seriesLabelTimer&&c.clearTimeout($.seriesLabelTimer),$.series.forEach(function(j){var V=j.options.label||{},z=j.labelBySeries,Y=z&&z.closest;V.enabled&&j.visible&&(j.graph||j.area)&&!j.boosted&&$.labelSeries&&($.labelSeries.push(j),V.minFontSize&&V.maxFontSize&&j.yData&&(j.sum=j.yData.reduce(function(re,W){return(re||0)+(W||0)},0),$.labelSeriesMaxSum=Math.max($.labelSeriesMaxSum||0,j.sum||0)),O.type==="load"&&(X=Math.max(X,b(j.options.animation).duration)),Y&&(typeof Y[0].plotX!="undefined"?z.animate({x:Y[0].plotX+Y[1],y:Y[0].plotY+Y[2]}):z.attr({opacity:0})))}),$.seriesLabelTimer=G(function(){$.series&&$.labelSeries&&h($)},$.renderer.forExport||!X?0:X)}}function v(O,$,X,j,V){var z=V&&V.anchorX;V=V&&V.anchorY;var Y=X/2;if(I(z)&&I(V)){var re=[["M",z,V]],W=$-V;0>W&&(W=-j-W),W<X&&(Y=z<O+X/2?W:X-W),V>$+j?re.push(["L",O+Y,$+j]):V<$?re.push(["L",O+Y,$]):z<O?re.push(["L",O,$+j/2]):z>O+X&&re.push(["L",O+X,$+j/2])}return re||[]}var g=this&&this.__spreadArray||function(O,$,X){if(X||arguments.length===2)for(var j=0,V=$.length,z;j<V;j++)!z&&j in $||(z||(z=Array.prototype.slice.call($,0,j)),z[j]=$[j]);return O.concat(z||Array.prototype.slice.call($))},b=n.animObject,C=a.format,x=o.setOptions,E=u.boxIntersectLine,T=u.intersectRect,A=c.addEvent,R=c.extend,D=c.fireEvent,I=c.isNumber,H=c.pick,G=c.syncTimeout,q=[];return{compose:function(O,$){q.indexOf(O)===-1&&(q.push(O),A(i,"load",m),A(i,"redraw",m)),q.indexOf($)===-1&&(q.push($),$.prototype.symbols.connector=v),q.indexOf(x)===-1&&(q.push(x),x({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)})})})(h3);var ZQ=h3.exports;const QQ=w.getDefaultExportFromCjs(ZQ);var f3={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(d,h){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,m){p.__proto__=m}||function(p,m){for(var v in m)m.hasOwnProperty(v)&&(p[v]=m[v])},c(d,h)};return function(d,h){function p(){this.constructor=d}c(d,h),d.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}}(),o=n.seriesTypes.areaspline,s=i.merge;i=i.extend;var u=function(c){function d(){var h=c!==null&&c.apply(this,arguments)||this;return h.data=void 0,h.points=void 0,h.options=void 0,h}return a(d,c),d.prototype.streamStacker=function(h,p,m){h[0]-=p.total/2,h[1]-=p.total/2,this.stackedYData[m]=h},d.defaultOptions=s(o.defaultOptions,{fillOpacity:1,lineWidth:0,marker:{enabled:!1},stacking:"stream"}),d}(o);return i(u.prototype,{negStacks:!1}),n.registerSeriesType("streamgraph",u),u}),r(t,"masters/modules/streamgraph.src.js",[],function(){})})})(f3);var JQ=f3.exports;const eJ=w.getDefaultExportFromCjs(JQ),tJ=()=>{typeof w.Highcharts=="object"&&(QQ(w.Highcharts),eJ(w.Highcharts)),function(e){e.seriesTypes.line.prototype.drawLegendSymbol=e.seriesTypes.area.prototype.drawLegendSymbol,w.Highcharts.wrap(w.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=w.Highcharts.color(i.color).setOpacity(.2).get("rgba"),n.stroke=w.Highcharts.color(n.stroke).setOpacity(.2).get("rgba")),n})}(w.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))})}}(w.Highcharts),KQ(w.Highcharts)};tJ();const rJ={style:{height:"100%",width:"100%"}},Uy=({options:e})=>{var d,h,p,m,v,g;const t=cf(e),r=k.useCallback(b=>{var x,E,T,A,R,D,I,H;const C=e;!((A=(T=(E=(x=C==null?void 0:C.plotOptions)==null?void 0:x.series)==null?void 0:E.point)==null?void 0:T.events)!=null&&A.click)&&!((H=(I=(D=(R=C==null?void 0:C.plotOptions)==null?void 0:R.series)==null?void 0:D.point)==null?void 0:I.events)!=null&&H.contextmenu)&&(b.container.onclick=null)},[e]),n=b=>b==null?void 0:b.some(({data:C})=>C.some(x=>!!x.marker)),i=(t==null?void 0:t.xAxis)&&(e==null?void 0:e.xAxis)&&((d=t==null?void 0:t.xAxis[0])==null?void 0:d.type)!==((h=e==null?void 0:e.xAxis[0])==null?void 0:h.type),a=!!t&&((p=t==null?void 0:t.navigator)==null?void 0:p.enabled)!==((m=e==null?void 0:e.navigator)==null?void 0:m.enabled),o=n(t==null?void 0:t.series)&&!n(e==null?void 0:e.series),s=!!t&&((v=t==null?void 0:t.chart)==null?void 0:v.type)!==((g=e==null?void 0:e.chart)==null?void 0:g.type),u=i||a||s||o,c=k.useMemo(()=>N.cloneDeep(e),[e]);return w.jsx(YQ,{highcharts:w.Highcharts,options:c,containerProps:rJ,immutable:u,callback:r})};function nJ(e,t,r,n){return N.baseForOwn(e,function(i,a,o){t(n,r(i),a,o)}),n}function iJ(e,t){return function(r,n){return nJ(r,e,t(n),{})}}var aJ=Object.prototype,oJ=aJ.toString,sJ=iJ(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=oJ.call(t)),e[t]=r},N.constant(N.identity)),Vy=(e=>(e.SUNDAY="sunday",e.MONDAY="monday",e.TUESDAY="tuesday",e.WEDNESDAY="wednesday",e.THURSDAY="thursday",e.FRIDAY="friday",e.SATURDAY="saturday",e))(Vy||{});const p3={sunday:0,monday:1,tuesday:2,wednesday:3,thursday:4,friday:5,saturday:6},lJ=sJ(p3);function Hu(e){return p3[e]}function uJ(e){return lJ[e]}function Gy(e,t,r=w.SINGLE_LETTER_DAY_DATE_FORMAT){const n=new Date(w.REFERENCE_SUNDAY_DATE),i=Hu(e),a=[];for(let o=i;o<i+w.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 cJ(e){const t=w.getPaletteColor(e.palette.variantColors,0),r=w.scaleBrightness(t,w.CALENDAR_HEATMAP_COLORS.MIN_COLOR_BRIGHTNESS_PERCENT),n=w.scaleBrightness(r,w.CALENDAR_HEATMAP_COLORS.MAX_COLOR_BRIGHTNESS_PERCENT);return{type:"range",minColor:r,maxColor:n}}function dJ(e){if(!e)return r=>r;const t=w.createDataColoringFunction({getValueFromDataStructure:r=>{var n;return(n=r.value)!=null?n:0},applyColorToDataStructure:(r,n)=>B(M({},r),{color:r.color||n})});return r=>B(M({},r),{values:t(r.values,e)})}function m3(e,t){if(e==="calendar-heatmap/continuous"){let r;switch(t){case w.ViewType.MONTH:r=1;break;case w.ViewType.QUARTER:r=3;break;case w.ViewType.HALF_YEAR:r=6;break;case w.ViewType.YEAR:r=6;break;default:r=1}const n=Math.ceil(r*5);return{rows:w.CALENDAR_HEATMAP_SIZING.ROWS,cols:n}}else return{rows:w.CALENDAR_HEATMAP_SIZING.ROWS,cols:w.CALENDAR_HEATMAP_SIZING.COLUMNS}}function g3(e,t,r){if(r==="calendar-heatmap/continuous")return e===w.ViewType.YEAR?{cols:1,rows:2}:{cols:1,rows:1};const n=t.height>t.width;switch(e){case w.ViewType.MONTH:return{cols:1,rows:1};case w.ViewType.QUARTER:return n?{cols:1,rows:3}:{cols:3,rows:1};case w.ViewType.HALF_YEAR:return n?{cols:2,rows:3}:{cols:3,rows:2};case w.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 hJ(e,t,r){const n=g3(t,e,r),i=e.height-w.CALENDAR_HEATMAP_SIZING.PAGINATION_HEIGHT,a=(n.cols-1)*w.CALENDAR_HEATMAP_SIZING.GAP_WIDTH,o=(n.rows-1)*w.CALENDAR_HEATMAP_SIZING.GAP_HEIGHT,s=(e.width-a-w.CALENDAR_HEATMAP_SIZING.MARGINS.LEFT-w.CALENDAR_HEATMAP_SIZING.MARGINS.RIGHT)/n.cols,u=t!==w.ViewType.MONTH?w.CALENDAR_HEATMAP_SIZING.TITLE_HEIGHT:0,c=(i-o-w.CALENDAR_HEATMAP_SIZING.MARGINS.TOP-w.CALENDAR_HEATMAP_SIZING.MARGINS.BOTTOM)/n.rows-u;return{width:s,height:c}}function fJ(e,t,r,n){var d;if(!((d=e.values)!=null&&d.length)){const h=m3(r,n);return{rows:h.rows,cols:h.cols}}const i=e.values.map(h=>new Date(h.date)).sort((h,p)=>h.getTime()-p.getTime()),a=i[0],o=Hu(t),u=(a.getDay()-o+w.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK)%w.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK,c=Math.ceil((i.length+u)/w.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK);return{rows:w.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK,cols:c}}function pJ(e,t){if(e==="calendar-heatmap/split")return{left:0,top:0,right:0};const r=t.width>=w.CALENDAR_HEATMAP_DEFAULTS.SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD;return{left:r?60:0,top:r?30:0,right:10}}function mJ(e,t,r,n){const i=e/r,a=t/n,o=Math.min(i,a);return Math.max(w.CALENDAR_HEATMAP_SIZING.MIN_CELL_SIZE,Math.min(w.CALENDAR_HEATMAP_SIZING.MAX_CELL_SIZE,o))}function gJ(e,t,r,n,i){const a=hJ(e,r,t),o=t==="calendar-heatmap/continuous"?fJ(n,i,t,r):m3(t,r),s=pJ(t,e),u=a.width-s.left-s.right,c=a.height-s.top,d=mJ(u,c,o.cols,o.rows),h=o.cols*d,p=o.rows*d,m=Math.min(u,h)+s.left+s.right,v=Math.min(c,p)+s.top;if(t==="calendar-heatmap/continuous")return{width:Math.floor(m),height:Math.floor(v),cellSize:Math.floor(d)};const g=Math.floor(Math.min(m,v));return{width:g,height:g,cellSize:Math.floor(d)}}function vJ(e){return new Date(e.year,e.month,2)}function pm(e){return{year:e.getFullYear(),month:e.getMonth()}}function Ei(e,t){return e.year!==t.year?e.year-t.year:e.month-t.month}function yJ(e,t,r){const n=Ei(e,t)>=0,i=Ei(e,r)<=0;return n&&i}function Nl(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 mm(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=Nl(u,t-1);return Fa(u,c,r)}const n=e[e.length-1],i=t-e.length,a=Nl(n,i),o=Fa(Nl(n,1),a,r);return[...e,...o]}function Fa(e,t,r){const n=[],i={year:e.year,month:e.month};for(;Ei(i,t)<=0;){const a=vJ(i);n.push({year:i.year,month:i.month,monthName:r(a,w.FULL_MONTH_DATE_FORMAT),shortMonthName:r(a,w.SHORT_MONTH_DATE_FORMAT)}),i.month++,i.month>11&&(i.month=0,i.year++)}return n}function bJ(e,t,r){if(e.length===0)return Fa(t,t,r);const n=e[0];if(Ei(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[...Fa(t,i,r),...e]}function _J(e,t,r){if(e.length===0)return Fa(t,t,r);const n=e[e.length-1];if(Ei(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=Fa(i,t,r);return[...e,...a]}function wJ(e){return e<=w.CALENDAR_HEATMAP_DEFAULTS.SHORT_MONTH_NAME_SPLIT_LAYOUT_WIDTH_THRESHOLD}function CJ(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,w.FULL_MONTH_DATE_FORMAT),shortMonthName:t(i.date,w.SHORT_MONTH_DATE_FORMAT)}))}),n.sort((i,a)=>Ei(i,a))}function xJ(e,t,r,n){const i=CJ(e,t),a=n?qy(n):1;if(!r)return mm(i,a,t);if(i.length===0){const c=Nl(r,a-1);return Fa(r,c,t)}const o=i[0],s=i[i.length-1];if(yJ(r,o,s))return mm(i,a,t);let u;if(Ei(r,o)<0)u=bJ(i,r,t);else{const c=Nl(r,a-1);u=_J(i,c,t)}return mm(u,a,t)}function qy(e){switch(e){case w.ViewType.MONTH:return 1;case w.ViewType.QUARTER:return 3;case w.ViewType.HALF_YEAR:return 6;case w.ViewType.YEAR:return 12;default:return 1}}function Yy(e,t,r){const n=qy(r),i=e.findIndex(u=>Ei(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 TJ=Ye.div`
223
+ display: grid;
224
+ column-gap: 30px;
225
+ row-gap: 10px;
226
+ grid-template-columns: repeat(${e=>e.gridCols}, 1fr);
227
+ grid-template-rows: repeat(${e=>e.gridRows}, 1fr);
228
+ background-color: transparent;
229
+ place-items: center; /* Center each grid item horizontally and vertically */
230
+ `,SJ=Ye.div`
231
+ display: flex;
232
+ flex-direction: column;
233
+ align-items: center;
234
+ `,EJ=Ye.h3`
235
+ font-size: 13px;
236
+ font-weight: 400;
237
+ color: #333;
238
+ text-align: center;
239
+ text-transform: capitalize;
240
+ margin: 0;
241
+ height: ${w.CALENDAR_HEATMAP_SIZING.TITLE_HEIGHT}px;
242
+ `,MJ=({monthCharts:e,availableMonths:t,currentMonth:r,subtype:n,viewType:i,monthLabels:a,size:o})=>{const{themeSettings:s}=mt(),u=k.useMemo(()=>g3(i,o,n),[i,n,o]);if(t.length===0)return null;const c=Yy(t,r,i);return w.jsx(TJ,{viewType:i,gridCols:u.cols,gridRows:u.rows,children:e.map((d,h)=>{var v,g,b;if(!d)return null;const p=c[h];if(!p)return null;const m=wJ((v=d.chart.width)!=null?v:0);return w.jsxs(SJ,{children:[(a==null?void 0:a.enabled)&&i!==w.ViewType.MONTH&&n==="calendar-heatmap/split"&&w.jsx(EJ,{style:B(M({},a.style),{color:((g=a.style)==null?void 0:g.color)||(s==null?void 0:s.chart.textColor),fontFamily:((b=a.style)==null?void 0:b.fontFamily)||(s==null?void 0:s.typography.fontFamily)}),children:m?p.shortMonthName:p.monthName}),w.jsx(Uy,{options:d})]},`${p.year}-${p.month}`)})})},pg=e=>{var n;const t=e.direction==="left"?"csdk-scale-x-[-1]":"",r=e.disabled?"csdk-opacity-0":"";return w.jsx("svg",B(M({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),{className:[e.className,t,r].join(" "),children:w.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"})}))},mg=e=>{var n;const t=e.direction==="left"?"csdk-scale-x-[-1]":"",r=e.disabled?"csdk-opacity-0":"";return w.jsx("svg",B(M({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),{className:[e.className,t,r].join(" "),children:w.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"})}))},v2=e=>{var n;const t=e.direction==="left"?"csdk-scale-x-[-1]":"",r=e.disabled?"csdk-opacity-0":"";return w.jsx("svg",B(M({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),{className:[e.className,t,r].join(" "),children:w.jsxs("g",{fill:(n=e.fill)!=null?n:e.theme.typography.primaryTextColor,fillRule:"nonzero",children:[w.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"}),w.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 AJ(e,t,r){const n=Yy(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 PJ=Ye.div`
243
+ display: flex;
244
+ justify-content: center;
245
+ align-items: center;
246
+ padding: 10px 20px;
247
+ background-color: transparent;
248
+ height: ${w.CALENDAR_HEATMAP_SIZING.PAGINATION_HEIGHT}px;
249
+ opacity: 1;
250
+ transition: opacity 0.3s ease;
251
+ box-sizing: border-box;
252
+ `,xo=Ye.button`
253
+ padding: 0;
254
+ background-color: transparent;
255
+ border: none;
256
+ border-radius: 4px;
257
+ cursor: ${e=>e.disabled?"not-allowed":"pointer"};
258
+ display: flex;
259
+ align-items: center;
260
+ justify-content: center;
261
+ transition: all 0.2s ease;
262
+ opacity: ${e=>e.disabled?.3:1};
263
+
264
+ &:hover {
265
+ background-color: ${e=>e.disabled?"transparent":"rgba(0, 0, 0, 0.05)"};
266
+ }
267
+ `,RJ=Ye.div`
268
+ font-size: 15px;
269
+ font-weight: 400;
270
+ color: ${({theme:e})=>e.chart.textColor};
271
+ font-family: ${({theme:e})=>e.typography.fontFamily};
272
+ min-width: 110px;
273
+ text-align: center;
274
+ margin: 0 10px;
275
+ text-transform: capitalize;
276
+ `,OJ=({value:e,availableMonths:t,viewType:r,onChange:n,labelStyle:i})=>{const{themeSettings:a}=mt(),{t:o}=w.useTranslation(),s=qy(r),u=t.findIndex(q=>Ei(q,e)===0),c=()=>{const q=t[0];q&&n({year:q.year,month:q.month})},d=()=>{if(u>0){const q=t[u-1];n({year:q.year,month:q.month})}},h=()=>{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})},m=()=>{const q=Math.max(0,u-s),O=t[q];O&&n({year:O.year,month:O.month})},v=()=>{const q=Math.min(t.length-s,u+s),O=t[q];O&&n({year:O.year,month:O.month})},g=u===0,b=s===1?t.length-1:Math.max(0,t.length-s),C=u>=b,x=u>0,E=u<b,T=AJ(t,e,r),A=o("calendarHeatmap.navigation.firstMonth"),R=o("calendarHeatmap.navigation.lastMonth"),D=o("calendarHeatmap.navigation.previousMonth"),I=o("calendarHeatmap.navigation.nextMonth"),H=o("calendarHeatmap.navigation.previousGroup"),G=o("calendarHeatmap.navigation.nextGroup");return w.jsxs(PJ,{children:[w.jsx(xo,{disabled:g,onClick:c,title:A,"aria-label":A,theme:a,children:w.jsx(v2,{direction:"left",disabled:g,theme:a,fill:a.chart.secondaryTextColor,width:w.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:w.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})}),r!==w.ViewType.MONTH&&w.jsx(xo,{disabled:g,onClick:m,title:H,"aria-label":H,children:w.jsx(mg,{direction:"left",disabled:g,theme:a,fill:a.chart.secondaryTextColor,width:w.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:w.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})}),w.jsx(xo,{disabled:r===w.ViewType.MONTH?g:!x,onClick:d,title:D,"aria-label":D,children:w.jsx(pg,{direction:"left",disabled:r===w.ViewType.MONTH?g:!x,theme:a,fill:a.chart.secondaryTextColor,width:w.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:w.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})}),w.jsx(RJ,{theme:a,style:i,children:T}),w.jsx(xo,{disabled:r===w.ViewType.MONTH?C:!E,onClick:h,title:I,"aria-label":I,children:w.jsx(pg,{direction:"right",disabled:r===w.ViewType.MONTH?C:!E,theme:a,fill:a.chart.secondaryTextColor,width:w.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:w.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})}),r!==w.ViewType.MONTH&&w.jsx(xo,{disabled:C,onClick:v,title:G,"aria-label":G,children:w.jsx(mg,{direction:"right",disabled:C,theme:a,fill:a.chart.secondaryTextColor,width:w.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:w.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})}),w.jsx(xo,{disabled:C,onClick:p,title:R,"aria-label":R,children:w.jsx(v2,{direction:"right",disabled:C,theme:a,fill:a.chart.secondaryTextColor,width:w.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.WIDTH,height:w.CALENDAR_HEATMAP_SIZING.PAGINATION_BUTTON_SIZE.HEIGHT})})]})};function vd(e){return e===null}const kJ=e=>typeof e=="object"&&e!==null,y2=(e,t)=>{if(!kJ(e))return;const r=e[t];return typeof r=="string"?r:void 0},DJ=function(){const e=this.name,t=y2(this.options,"id"),r=!this.visible;this.chart.series.filter(i=>{if(i===this)return!1;const a=y2(i.options,"statisticalSeriesRelatesToSeries");return a===void 0?!1:a===e||t!==void 0&&a===t}).forEach(i=>i.setVisible(r,!1))},v3=(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:DJ},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:d,originalEvent:h}=u,p=IJ(c[0],d[0]);p.forEach(m=>{m.state=""}),i(p.map(m=>fm(m,t)),h)}),r&&(a.plotOptions.series.point.events.click=u=>{!!u.point.options&&(u.point.state="hover",r(fm(u.point,t),u))}),n&&(a.plotOptions.series.point.events.contextmenu=u=>{u.preventDefault(),n(fm(u.point,t),u)}),w.merge$1(e,a)};function NJ(e,{onDataPointClick:t,onDataPointContextMenu:r,onDataPointsSelected:n}={}){return i=>v3(i,e,{onDataPointClick:t,onDataPointContextMenu:r,onDataPointsSelected:n})}const IJ=(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=!vd(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))},LJ=600,FJ=300,y3=(e,t,r)=>{const n={duration:t.chart.animation.init.duration==="auto"?LJ:t.chart.animation.init.duration},i={duration:t.chart.animation.redraw.duration==="auto"?FJ:t.chart.animation.redraw.duration};return w.merge(e,{accessibility:{enabled:r},chart:{animation:i},plotOptions:{series:{animation:n}},boost:{useGPUTranslations:!0,usePreAllocated:!0}})};function $J(e,t){return r=>y3(r,e,t)}const b3=(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}}},d={color:t==null?void 0:t.chart.backgroundColor,label:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}}},h=w.merge(u,e);return h.xAxis=(p=h.xAxis)==null?void 0:p.map(m=>{var g;m.plotBands=(g=m.plotBands)==null?void 0:g.map(b=>w.merge(b,B(M({},d),{color:t==null?void 0:t.chart.backgroundColor})));const v=w.merge(m,c);return v.stackLabels&&(v.stackLabels.style=M({color:t.chart.textColor,fontFamily:t.typography.fontFamily},v.stackLabels.style)),v}),h.yAxis&&(h.yAxis=h.yAxis.map(m=>{var g;m.plotBands=(g=m.plotBands)==null?void 0:g.map(b=>w.merge(b,B(M({},d),{color:b.color||(t==null?void 0:t.chart.backgroundColor)})));const v=w.merge(m,c);return v.stackLabels&&(v.stackLabels.style=M({color:t.chart.textColor,fontFamily:t.typography.fontFamily},v.stackLabels.style)),v})),h};function BJ(e){return t=>b3(t,e)}const _3=({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 w.flow($J(i.themeSettings,i.accessibilityEnabled),NJ(r,a),BJ(i.themeSettings),HJ(o))(M(B(M({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 HJ(e){return e||(t=>t)}function w3(){var i;const{app:e}=_t(),{t}=w.useTranslation(),{themeSettings:r}=mt(),n=u3();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 gg(e){const t=e*w.CALENDAR_TYPOGRAPHY.FONT_SIZE_RATIO;return Math.max(w.CALENDAR_TYPOGRAPHY.MIN_AXIS_FONT_SIZE,Math.min(w.CALENDAR_TYPOGRAPHY.MAX_FONT_SIZE,t))}function zJ(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(m=>new Date(m.date)).sort((m,v)=>m.getTime()-v.getTime()),a=i[0],o=Hu(r),u=(a.getDay()-o+w.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK)%w.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK,c=new Map;i.forEach((m,v)=>{const g=`${m.getFullYear()}-${m.getMonth()}`,b=Math.floor((v+u)/w.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK);if(!c.has(g))c.set(g,{firstDate:m,lastDate:m,firstColumn:b,lastColumn:b});else{const C=c.get(g);C.lastDate=m,C.lastColumn=b}});const d=i.length,h=Math.ceil((d+u)/w.CALENDAR_HEATMAP_DEFAULTS.DAYS_IN_WEEK),p=new Array(h).fill("");return Array.from(c.entries()).forEach(([m,v])=>{const{firstDate:g,firstColumn:b,lastColumn:C}=v,x=(C-b)*n,E=b+Math.floor((C-b)/2),T=t(g,x>w.CALENDAR_HEATMAP_DEFAULTS.SHORT_MONTH_NAME_CONTINUES_LAYOUT_WIDTH_THRESHOLD?w.FULL_MONTH_DATE_FORMAT:w.SHORT_MONTH_DATE_FORMAT);E>=0&&E<p.length&&(p[E]=T)}),p}function WJ(e){var v,g,b,C,x,E,T,A,R,D,I,H,G,q,O,$,X,j,V,z,Y;const t=(v=e.designOptions.cellSize)!=null?v:0,r=e.designOptions.startOfWeek,n=e.designOptions.dayLabels,i=e.designOptions.monthLabels,a=e.designOptions.viewType,o=Gy(r,e.extraConfig.dateFormatter,w.THREE_LETTER_DAY_DATE_FORMAT).reverse(),s=((g=n.style)==null?void 0:g.color)||((b=e.extraConfig.themeSettings)==null?void 0:b.chart.textColor),u=((C=n.style)==null?void 0:C.fontFamily)||((x=e.extraConfig.themeSettings)==null?void 0:x.typography.fontFamily),c=(T=(E=n.style)==null?void 0:E.fontSize)!=null?T:`${gg(t)}px`,d=((A=i.style)==null?void 0:A.color)||((R=e.extraConfig.themeSettings)==null?void 0:R.chart.textColor),h=((D=i.style)==null?void 0:D.fontFamily)||((I=e.extraConfig.themeSettings)==null?void 0:I.typography.fontFamily),p=(G=(H=i.style)==null?void 0:H.fontSize)!=null?G:`${gg(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!==w.ViewType.MONTH,rotation:0,overflow:"justify",style:M(M({fontSize:p,color:d,fontFamily:h,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:M(M(M(M(M({fontSize:c,color:s,fontFamily:u},(($=n.style)==null?void 0:$.fontWeight)&&{fontWeight:n.style.fontWeight}),((X=n.style)==null?void 0:X.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}),((z=n.style)==null?void 0:z.textOverflow)&&{textOverflow:n.style.textOverflow}),enabled:n.enabled&&((Y=e.designOptions.height)!=null?Y:0)>=w.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===Vy.MONDAY?"Monday":"Sunday"}.`}}]}}function UJ(e){var c,d,h,p,m,v,g,b,C,x,E,T,A;const t=(c=e.designOptions.cellSize)!=null?c:0,r=e.designOptions.startOfWeek,n=e.designOptions.dayLabels,i=zJ(t),a=Gy(r,e.extraConfig.dateFormatter,w.SINGLE_LETTER_DAY_DATE_FORMAT),o=((d=n.style)==null?void 0:d.color)||((h=e.extraConfig.themeSettings)==null?void 0:h.chart.textColor),s=((p=n.style)==null?void 0:p.fontFamily)||((m=e.extraConfig.themeSettings)==null?void 0:m.typography.fontFamily),u=(g=(v=n.style)==null?void 0:v.fontSize)!=null?g:`${gg(t)}px`;return{xAxis:[{categories:n.enabled?[...a]:[],opposite:!0,lineWidth:0,offset:0,labels:{rotation:0,y:i,style:M(M(M(M(M({fontSize:u,color:o,fontFamily:s},((b=n.style)==null?void 0:b.fontWeight)&&{fontWeight:n.style.fontWeight}),((C=n.style)==null?void 0:C.fontStyle)&&{fontStyle:n.style.fontStyle}),((x=n.style)==null?void 0:x.textOutline)&&{textOutline:n.style.textOutline}),((E=n.style)==null?void 0:E.pointerEvents)&&{pointerEvents:n.style.pointerEvents}),((T=n.style)==null?void 0:T.textOverflow)&&{textOverflow:n.style.textOverflow}),enabled:n.enabled&&((A=e.designOptions.width)!=null?A:0)>=w.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===Vy.MONDAY?"Monday":"Sunday"}.`}}],yAxis:[{categories:[],min:0,max:5,tickInterval:1,gridLineWidth:0,title:{text:null},accessibility:{description:"weeks"},visible:!1}]}}function C3(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:w.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 VJ(e){var i,a;const t=(i=e.designOptions.cellSize)!=null?i:0,n=((a=e.designOptions.width)!=null?a:0)>=w.CALENDAR_HEATMAP_DEFAULTS.SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD;return B(M({},C3(e)),{marginTop:n?t:0})}function GJ(e){var n;const r=((n=e.designOptions.width)!=null?n:0)>=w.CALENDAR_HEATMAP_DEFAULTS.SHOW_DAY_LABEL_CHART_SIZE_THRESHOLD;return B(M({},C3(e)),{marginLeft:r?60:0,marginTop:r?30:0,marginRight:10})}function x3(){return{title:{text:null},accessibility:{landmarkVerbosity:"one"}}}function T3(){return{enabled:!1}}function qJ(e){const t=e*w.CALENDAR_TYPOGRAPHY.FONT_SIZE_RATIO;return Math.max(w.CALENDAR_TYPOGRAPHY.MIN_FONT_SIZE,Math.min(w.CALENDAR_TYPOGRAPHY.MAX_FONT_SIZE,t))}function S3(e){var u,c,d,h,p,m,v,g,b,C,x,E,T,A,R,D,I;const t=e.designOptions.cellLabels,r=(c=(u=e.designOptions)==null?void 0:u.cellSize)!=null?c:0,n=((d=t==null?void 0:t.style)==null?void 0:d.fontSize)||`${qJ(r)}px`,i=(p=(h=t==null?void 0:t.style)==null?void 0:h.fontWeight)!=null?p:"normal",a=(v=(m=t==null?void 0:t.style)==null?void 0:m.textOutline)!=null?v:"none",o=(C=(g=t==null?void 0:t.style)==null?void 0:g.fontFamily)!=null?C:(b=e.extraConfig.themeSettings)==null?void 0:b.typography.fontFamily,s=((x=t==null?void 0:t.style)==null?void 0:x.color)||((E=e.extraConfig.themeSettings)==null?void 0:E.chart.textColor);return{series:{},heatmap:{dataLabels:{enabled:t.enabled&&((A=(T=e.designOptions)==null?void 0:T.cellSize)!=null?A:0)>=w.CALENDAR_HEATMAP_DEFAULTS.SHOW_CELL_LABEL_SIZE_THRESHOLD,style:M(M(M({color:s,fontSize:n,fontWeight:i,textOutline:a,fontFamily:o},((R=t.style)==null?void 0:R.fontStyle)&&{fontStyle:t.style.fontStyle}),((D=t.style)==null?void 0:D.pointerEvents)&&{pointerEvents:t.style.pointerEvents}),((I=t.style)==null?void 0:I.textOverflow)&&{textOverflow:t.style.textOverflow}),formatter:function(){const H=this.point;return H.custom&&H.custom.monthDay?H.custom.monthDay.toString():""}}}}}const YJ="yyyy-MM-dd'T'HH:mm:ss";function XJ(e,t){const r=uJ(e.getDay());return t.includes(r)}function E3(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=Hu(r),d=(u-c+7)%7,h=Gy(r,t),p=[];return e.values.forEach(m=>{var I;const v=new Date(m.date),g=v.getDate(),b=t(v,YJ),C=(d+g-1)%h.length,x=Math.floor((d+g-1)/h.length),E=(I=m.value)!=null?I:null,T=m.value!==void 0,A=XJ(v,n.days);let R;T?n.enabled&&n.days.length>0&&A?R=n.cellColor||w.CALENDAR_HEATMAP_DEFAULTS.WEEKEND_CELL_COLOR:m.color&&(R=m.color):R=w.CALENDAR_HEATMAP_DEFAULTS.NO_DATA_COLOR;const D=n.enabled&&n.hideValues&&A;p.push({x:C,y:5-x,value:E,date:v.getTime(),dateString:b,color:R,custom:{monthDay:g,hasData:!D&&T,blur:m.blur},className:T&&m.blur?"csdk-highcharts-point-blured":""})}),p}function KJ(e,t,r,n){if(e.values.length===0)return[];const i=e.values.map(b=>new Date(b.date)).sort((b,C)=>b.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 b=new Date(s);b<=u;b.setMonth(b.getMonth()+1)){const C=`${b.getFullYear()}-${b.getMonth()}`;c.set(C,[])}e.values.forEach(b=>{const C=new Date(b.date),x=`${C.getFullYear()}-${C.getMonth()}`;c.has(x)&&c.get(x).push(b)});const d=[],h=Hu(r),p=new Date(s),m=(s.getDay()-h+7)%7;p.setDate(s.getDate()-m);for(const[b,C]of c){const[x,E]=b.split("-"),T=parseInt(x,10),A=parseInt(E,10),R={type:"calendar-heatmap",values:C.length>0?C:[{date:new Date(T,A,1),value:void 0}]},D=E3(R,t,r,n);d.push(...D)}let v=w.CALENDAR_HEATMAP_SIZING.ROWS-1-d[0].x,g=0;for(let b=0;b<d.length;b++)d[b].y=v,d[b].x=g,v--,v<0&&(v=w.CALENDAR_HEATMAP_SIZING.ROWS-1,g++);return d}function ZJ(e){const t=e.designOptions.startOfWeek,r=e.designOptions.weekends,n=E3(e.chartData,e.extraConfig.dateFormatter,t,r);return[{name:"Calendar Heatmap",type:"heatmap",keys:["x","y","value","date","color","custom"],data:n,nullColor:w.CALENDAR_HEATMAP_DEFAULTS.NO_DATA_COLOR,borderWidth:w.CALENDAR_HEATMAP_DEFAULTS.BORDER_WIDTH,borderColor:"transparent",colsize:1,rowsize:1}]}function QJ(e){const t=e.designOptions.startOfWeek,r=e.designOptions.weekends,n=KJ(e.chartData,e.extraConfig.dateFormatter,t,r);return[{name:"Calendar Heatmap",type:"heatmap",keys:["x","y","value","date","color","custom"],data:n,nullColor:w.CALENDAR_HEATMAP_DEFAULTS.NO_DATA_COLOR,borderWidth:1,borderColor:"white",colsize:1,rowsize:1}]}function M3(e){const{dateFormatter:t}=e.extraConfig,r=e.dataOptions.value.column.title||e.dataOptions.value.column.name,n=e.designOptions.width&&e.designOptions.width<w.CALENDAR_HEATMAP_SIZING.MIN_TOOLTIP_WIDTH;return{animation:!1,backgroundColor:w.colorWhite,borderColor:w.colorChineseSilver,borderRadius:10,borderWidth:1,useHTML:!0,style:{width:n?w.CALENDAR_HEATMAP_SIZING.MIN_TOOLTIP_WIDTH:void 0},position:{relativeTo:"chart"},followPointer:!0,outside:!0,formatter:function(){var m;const i=this.point,a=i.date&&new Date(i.date);if(!(a&&!isNaN(a.getTime())))return!1;const s=e.dataOptions.date,u=w.getDataOptionGranularity(s),c=s.dateFormat||w.getDefaultDateFormat(u),d=t(a,c);let h="";if(i.value!==null&&i.value!==void 0&&((m=i.custom)!=null&&m.hasData)){const v=e.dataOptions.value.numberFormatConfig,g=w.getCompleteNumberFormatConfig(v);h=w.applyFormat(g,i.value)}else h="—";const p=i.color&&w.scaleBrightness(i.color,w.CALENDAR_HEATMAP_COLORS.TOOLTIP_COLOR_BRIGHTNESS_PERCENT);return w.tooltipWrapper(`
277
+ ${r}
278
+ <br />
279
+ <span style="color: ${p!=null?p:"inherit"}">${h}</span>
280
+ ${w.tooltipSeparator()}
281
+ ${d}
282
+ `)}}}const JJ={getChart:VJ,getSeries:ZJ,getAxes:UJ,getLegend:T3,getPlotOptions:S3,getTooltip:M3,getExtras:x3},eee={getChart:GJ,getSeries:QJ,getAxes:WJ,getLegend:T3,getPlotOptions:S3,getTooltip:M3,getExtras:x3};function tee(e){return e==="calendar-heatmap/continuous"?eee:JJ}function b2(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 B(M({},e),{values:i})}function _2(e,t){if(!e.values||e.values.length===0){const r=B(M({},e),{values:[]});return b2(r,t)}return b2(e,t)}function ree(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=_2(n,s);return B(M({},o),{values:[...o.values,...u.values]})},{type:"calendar-heatmap",values:[]}))}else return r.map(i=>_2(n,i))}const nee=()=>{const e=w3();return k.useMemo(()=>B(M({},e),{themeSettings:B(M({},e.themeSettings),{chart:B(M({},e.themeSettings.chart),{animation:B(M({},e.themeSettings.chart.animation),{redraw:B(M({},e.themeSettings.chart.animation.redraw),{duration:0})})})})}),[e])};function iee({chartData:e,dataOptions:t,designOptions:r,availableMonths:n,currentMonth:i,subtype:a,viewType:o,containerSize:s,eventHandlers:u,onBeforeRender:c}){const d=nee(),h=k.useMemo(()=>{var m;const p=(m=t.value.color)!=null?m:cJ(d.themeSettings);return dJ(p)(e)},[e,t.value.color,d.themeSettings]);return k.useMemo(()=>{if(n.length===0)return[];const p=Yy(n,i,o);return ree(a,o,p,h).map(v=>{const g=gJ(s,a,o,v,r.startOfWeek),b=tee(a);return _3({highchartsOptionsBuilder:b,chartData:v,dataOptions:t,designOptions:B(M({},r),{width:g.width,height:g.height,cellSize:g.cellSize}),dataPointsEventHandlers:{onDataPointClick:u.onDataPointClick,onDataPointContextMenu:u.onDataPointContextMenu,onDataPointsSelected:u.onDataPointsSelected},extraConfig:d,onBeforeRender:c})})},[n,i,o,a,h,t,r,s,u.onDataPointClick,u.onDataPointContextMenu,u.onDataPointsSelected,d,c])}const aee=e=>{const{chartData:t,startMonth:r}=e,n=cf(r),i=r?pm(r):t.values.length>0?pm(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(pm(r))},[r,n,o]),{currentMonth:a,setCurrentMonth:o}},oee=Ye.div`
283
+ display: flex;
284
+ flex-direction: column;
285
+ width: 100%;
286
+ height: 100%;
287
+ margin: 0 auto;
288
+ background-color: ${({theme:e})=>e.chart.backgroundColor};
289
+ `,see=Ye.div`
290
+ display: flex;
291
+ flex-direction: column;
292
+ align-items: center;
293
+ justify-content: center;
294
+ flex: 1;
295
+ `;function lee({chartData:e,dataOptions:t,designOptions:r,onDataPointClick:n,onDataPointContextMenu:i,onDataPointsSelected:a,onBeforeRender:o,size:s}){var b,C,x;const{themeSettings:u}=mt(),c=u3(),d=r.subtype,h=r.viewType,{currentMonth:p,setCurrentMonth:m}=aee({chartData:e,startMonth:(b=r.pagination)==null?void 0:b.startMonth}),v=k.useMemo(()=>xJ(e,c,p,h),[e,c,p,h]),g=iee({chartData:e,dataOptions:t,designOptions:r,availableMonths:v,currentMonth:p,subtype:d,viewType:h,containerSize:s,eventHandlers:{onDataPointClick:n,onDataPointContextMenu:i,onDataPointsSelected:a},onBeforeRender:o});return w.jsxs(oee,{theme:u,children:[v.length>0&&((C=r.pagination)==null?void 0:C.enabled)&&w.jsx(OJ,{value:p,availableMonths:v,viewType:h,onChange:m,labelStyle:(x=r.pagination)==null?void 0:x.style}),w.jsx(see,{children:w.jsx(MJ,{monthCharts:g,availableMonths:v,currentMonth:p,viewType:h,subtype:d,monthLabels:r.monthLabels,size:s})})]})}const uee=e=>!!e.chartData&&l3(e.chartData)&&s3(e.dataOptions),cee={dataOptions:{translateDataOptionsToInternal:BQ,getAttributes:HQ,getMeasures:zQ,isCorrectDataOptions:jQ,isCorrectDataOptionsInternal:s3},data:{loadData:On,getChartData:WQ},designOptions:{translateStyleOptionsToDesignOptions:UQ,isCorrectStyleOptions:VQ},renderer:{ChartRendererComponent:lee,isCorrectRendererProps:uee}};var A3=w.metaMap?function(e,t){return w.metaMap.set(e,t),e}:N.identity;function ou(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=N.baseCreate(e.prototype),n=e.apply(r,t);return N.isObject(n)?n:r}}var dee=1;function hee(e,t,r){var n=t&dee,i=ou(e);function a(){var o=this&&this!==N.root&&this instanceof a?i:e;return o.apply(n?r:this,arguments)}return a}var fee=Math.max;function P3(e,t,r,n){for(var i=-1,a=e.length,o=r.length,s=-1,u=t.length,c=fee(a-o,0),d=Array(u+c),h=!n;++s<u;)d[s]=t[s];for(;++i<o;)(h||i<a)&&(d[r[i]]=e[i]);for(;c--;)d[s++]=e[i++];return d}var pee=Math.max;function R3(e,t,r,n){for(var i=-1,a=e.length,o=-1,s=r.length,u=-1,c=t.length,d=pee(a-s,0),h=Array(d+c),p=!n;++i<d;)h[i]=e[i];for(var m=i;++u<c;)h[m+u]=t[u];for(;++o<s;)(p||i<a)&&(h[m+r[o]]=e[i++]);return h}function mee(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var O3=N.shortOut(A3),gee=/\{\n\/\* \[wrapped with (.+)\] \*/,vee=/,? & /;function yee(e){var t=e.match(gee);return t?t[1].split(vee):[]}var bee=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function _ee(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(bee,`{
296
+ /* [wrapped with `+t+`] */
297
+ `)}function wee(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 Cee(e){return e!==e}function xee(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}function Xy(e,t,r){return t===t?xee(e,t,r):wee(e,Cee,r)}function k3(e,t){var r=e==null?0:e.length;return!!r&&Xy(e,t,0)>-1}var Tee=1,See=2,Eee=8,Mee=16,Aee=32,Pee=64,Ree=128,Oee=256,kee=512,Dee=[["ary",Ree],["bind",Tee],["bindKey",See],["curry",Eee],["curryRight",Mee],["flip",kee],["partial",Aee],["partialRight",Pee],["rearg",Oee]];function Nee(e,t){return N.arrayEach(Dee,function(r){var n="_."+r[0];t&r[1]&&!k3(e,n)&&e.push(n)}),e.sort()}function D3(e,t,r){var n=t+"";return N.setToString(e,_ee(n,Nee(yee(n),r)))}var Iee=1,Lee=2,Fee=4,$ee=8,w2=32,C2=64;function N3(e,t,r,n,i,a,o,s,u,c){var d=t&$ee,h=d?o:void 0,p=d?void 0:o,m=d?a:void 0,v=d?void 0:a;t|=d?w2:C2,t&=~(d?C2:w2),t&Fee||(t&=~(Iee|Lee));var g=[e,t,i,m,h,v,p,s,u,c],b=r.apply(void 0,g);return w.isLaziable(e)&&O3(b,g),b.placeholder=n,D3(b,e,t)}function I3(e){var t=e;return t.placeholder}var Bee=Math.min;function Hee(e,t){for(var r=e.length,n=Bee(t.length,r),i=N.copyArray(e);n--;){var a=t[n];e[n]=N.isIndex(a,r)?i[a]:void 0}return e}var x2="__lodash_placeholder__";function Zd(e,t){for(var r=-1,n=e.length,i=0,a=[];++r<n;){var o=e[r];(o===t||o===x2)&&(e[r]=x2,a[i++]=r)}return a}var zee=1,jee=2,Wee=8,Uee=16,Vee=128,Gee=512;function Ky(e,t,r,n,i,a,o,s,u,c){var d=t&Vee,h=t&zee,p=t&jee,m=t&(Wee|Uee),v=t&Gee,g=p?void 0:ou(e);function b(){for(var C=arguments.length,x=Array(C),E=C;E--;)x[E]=arguments[E];if(m)var T=I3(b),A=mee(x,T);if(n&&(x=P3(x,n,i,m)),a&&(x=R3(x,a,o,m)),C-=A,m&&C<c){var R=Zd(x,T);return N3(e,t,Ky,b.placeholder,r,x,R,s,u,c-C)}var D=h?r:this,I=p?D[e]:e;return C=x.length,s?x=Hee(x,s):v&&C>1&&x.reverse(),d&&u<C&&(x.length=u),this&&this!==N.root&&this instanceof b&&(I=g||ou(I)),I.apply(D,x)}return b}function qee(e,t,r){var n=ou(e);function i(){for(var a=arguments.length,o=Array(a),s=a,u=I3(i);s--;)o[s]=arguments[s];var c=a<3&&o[0]!==u&&o[a-1]!==u?[]:Zd(o,u);if(a-=c.length,a<r)return N3(e,t,Ky,i.placeholder,void 0,o,c,void 0,void 0,r-a);var d=this&&this!==N.root&&this instanceof i?n:e;return N.apply(d,this,o)}return i}var Yee=1;function Xee(e,t,r,n){var i=t&Yee,a=ou(e);function o(){for(var s=-1,u=arguments.length,c=-1,d=n.length,h=Array(d+u),p=this&&this!==N.root&&this instanceof o?a:e;++c<d;)h[c]=n[c];for(;u--;)h[c++]=arguments[++s];return N.apply(p,i?r:this,h)}return o}var T2="__lodash_placeholder__",gm=1,Kee=2,Zee=4,S2=8,il=128,E2=256,Qee=Math.min;function Jee(e,t){var r=e[1],n=t[1],i=r|n,a=i<(gm|Kee|il),o=n==il&&r==S2||n==il&&r==E2&&e[7].length<=t[8]||n==(il|E2)&&t[7].length<=t[8]&&r==S2;if(!(a||o))return e;n&gm&&(e[2]=t[2],i|=r&gm?0:Zee);var s=t[3];if(s){var u=e[3];e[3]=u?P3(u,s,t[4]):s,e[4]=u?Zd(e[3],T2):t[4]}return s=t[5],s&&(u=e[5],e[5]=u?R3(u,s,t[6]):s,e[6]=u?Zd(e[5],T2):t[6]),s=t[7],s&&(e[7]=s),n&il&&(e[8]=e[8]==null?t[8]:Qee(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}var ete="Expected a function",M2=1,tte=2,vm=8,ym=16,bm=32,A2=64,P2=Math.max;function rte(e,t,r,n,i,a,o,s){var u=t&tte;if(!u&&typeof e!="function")throw new TypeError(ete);var c=n?n.length:0;if(c||(t&=~(bm|A2),n=i=void 0),o=o===void 0?o:P2(w.toInteger$1(o),0),s=s===void 0?s:w.toInteger$1(s),c-=i?i.length:0,t&A2){var d=n,h=i;n=i=void 0}var p=u?void 0:w.getData(e),m=[e,t,r,n,i,d,h,a,o,s];if(p&&Jee(m,p),e=m[0],t=m[1],r=m[2],n=m[3],i=m[4],s=m[9]=m[9]===void 0?u?0:e.length:P2(m[9]-c,0),!s&&t&(vm|ym)&&(t&=~(vm|ym)),!t||t==M2)var v=hee(e,t,r);else t==vm||t==ym?v=qee(e,t,s):(t==bm||t==(M2|bm))&&!i.length?v=Xee(e,t,r,n):v=Ky.apply(void 0,m);var g=p?A3:O3;return D3(g(v,m),e,t)}var nte=8;function zu(e,t,r){t=r?void 0:t;var n=rte(e,nte,void 0,void 0,void 0,void 0,void 0,t);return n.placeholder=zu.placeholder,n}zu.placeholder={};const ite="_alert_box_10ttx_1",ate="_content_10ttx_8",ote="_alert_10ttx_1",_m={alert_box:ite,content:ate,alert:ote},L3=({alerts:e=[]})=>w.jsx("div",{className:_m.alert_box,children:w.jsx("div",{className:_m.content,children:[...new Set(e)].map((t,r)=>w.jsx("div",{className:_m.alert,children:t},`alert-${r}`))})}),ste=e=>["column","bar","line","area","polar","pie","funnel","treemap","calendar-heatmap","sunburst","streamgraph"].includes(e);function si({highchartsOptionsBuilder:e,getAlerts:t}){return function({chartData:n,dataOptions:i,designOptions:a,onDataPointClick:o,onDataPointContextMenu:s,onDataPointsSelected:u,onBeforeRender:c,size:d}){const{t:h}=w.useTranslation(),p=w3(),m=k.useMemo(()=>_3({highchartsOptionsBuilder:e,chartData:n,dataOptions:i,designOptions:a,dataPointsEventHandlers:{onDataPointClick:o,onDataPointContextMenu:s,onDataPointsSelected:u},extraConfig:p,onBeforeRender:c}),[n,i,a,o,s,u,p,c]),v=k.useMemo(()=>m?B(M({},m),{chart:M(M(M({},m.chart),(d==null?void 0:d.width)&&{width:d.width}),(d==null?void 0:d.height)&&{height:d.height})}):null,[m,d]),g=t({chartData:n,dataOptions:i,designOptions:a,extraConfig:p});return v&&w.jsxs("div",{"data-testid":"chart-root",role:"img","aria-label":h("chart.visualization.label"),style:{display:"flex",justifyContent:"center",height:"100%",width:"100%"},children:[!!g.length&&w.jsx(L3,{alerts:g}),w.jsx(Uy,{options:v})]})}}function li(e){return!!e.chartData&&!!e.chartType&&ste(e.chartType)}var lte="[object String]";function df(e){return typeof e=="string"||!N.isArray(e)&&N.isObjectLike(e)&&N.baseGetTag(e)==lte}const xs=e=>{const{chartData:t,designOptions:r}=e,{seriesCapacity:n,categoriesCapacity:i}=r.dataLimits,a=t.xValues.length>i?w.categoriesSliceWarning("x",t.xValues.length,i):null,o=t.series.length>n?w.seriesSliceWarning(t.series.length,n):null;return[a,o].filter(df)};function Ts(e,t){return w.cartesianData(e,t)}const hf=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"}}),vg=(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},ute=e=>e!=null&&e.enabled?{enabled:!0,scrollerLocation:e==null?void 0:e.scrollerLocation,onScrollerChange:e==null?void 0:e.onScrollerChange}:{enabled:!1},cte=e=>{const t=vg(e,Hr.yAxis);return t.gridLine=e.templateMainYHasGridLines||!1,t},Zy=e=>{let t=1;switch(e.width){case"thin":t=1;break;case"bold":t=3;break;case"thick":t=5;break}return t},F3="classic",kn=(e,t)=>{var u,c,d,h;const r=mte(),n=vg(e.xAxis,Hr.xAxis);let i=null;(c=(u=e==null?void 0:e.xAxis)==null?void 0:u.x2Title)!=null&&c.enabled&&((h=(d=e==null?void 0:e.xAxis)==null?void 0:d.x2Title)!=null&&h.text)&&(i=B(M({},Hr.xAxis),{title:e.xAxis.x2Title.text}));const a=vg(e.yAxis,Hr.yAxis),o=t&&e.y2Axis?M({type:"linear",enabled:!0,titleEnabled:!0,title:"Y2 Axis title",gridLine:!0,labels:!0,min:null,max:null,tickInterval:null},cte(e.y2Axis)):void 0,s=ute(e.navigator);return B(M(M(B(M(B(M({},Hr),{legend:e.legend,autoZoom:s}),e.seriesLabels&&{seriesLabels:e.seriesLabels}),{xAxis:n,yAxis:a}),o&&{y2Axis:o}),i&&{x2Axis:i}),{dataLimits:r})},ff=e=>({enabled:e.enabled,fill:e.fill==="filled"?"full":"hollow",size:e.size==="small"?"small":"large"}),dte=(e,t,r,n)=>{const i=kn(e,r),a=ni(e!=null?e:{},w.getDefaultStyleOptions()),o=sa(t,n,a);return B(M({},i),{designPerSeries:o,stackType:F3,totalLabels:e.totalLabels})},hte=(e,t)=>{var n,i,a,o,s,u,c;const r=kn(t,!1);if(e==="line"){const d=t;d.line&&(r.line={width:(a=(n=d.line)==null?void 0:n.width)!=null?a:Zy((i=d.lineWidth)!=null?i:{width:"bold"}),dashStyle:(o=d.line)==null?void 0:o.dashStyle,endCap:(s=d.line)==null?void 0:s.endCap,shadow:(u=d.line)==null?void 0:u.shadow}),r.marker=ff((c=d==null?void 0:d.markers)!=null?c:{enabled:!0,fill:"filled",size:"small"}),d.subtype==="line/step"&&(r.step=d.stepPosition||"left")}return r},fte=(e,t,r)=>{var s,u,c,d,h,p,m;const n=kn(e,r);n.marker=ff((s=e==null?void 0:e.markers)!=null?s:{enabled:!0,fill:"filled",size:"small"});const i=ni(e!=null?e:{},w.getDefaultStyleOptions()),a=sa(t,"line",i),o=B(M({},n),{designPerSeries:a,line:{width:(d=(u=e.line)==null?void 0:u.width)!=null?d:Zy((c=e.lineWidth)!=null?c:{width:"bold"}),dashStyle:(h=e.line)==null?void 0:h.dashStyle,endCap:(p=e.line)==null?void 0:p.endCap,shadow:(m=e.line)==null?void 0:m.shadow}});return e.subtype==="line/step"&&(o.step=e.stepPosition||"left"),o},pte=(e,t,r)=>{var n,i,a,o,s,u,c;return B(M({},dte(e,t,r,"area")),{marker:ff((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:Zy((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}})},Qy=(e,t)=>{var i;const r={seriesCapacity:t==="categorical"?jd:t==="pie"?U7:Ay,categoriesCapacity:t==="scatter"?V7:jd},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 mte(){return{seriesCapacity:Ay,categoriesCapacity:jd}}const To={enabled:!0,showCategory:!0,showValue:!0,percentageLabels:{enabled:!0,showDecimals:!1}},gte="classic",vte=e=>{var d,h,p,m,v,g,b,C,x,E,T,A,R,D,I,H;const{legend:t,labels:r,subtype:n,seriesLabels:i}=e;let a=To;(i||r)&&(a=B(M({},i),{enabled:(h=(d=i==null?void 0:i.enabled)!=null?d:r==null?void 0:r.enabled)!=null?h:To.enabled,showCategory:(m=(p=i==null?void 0:i.showCategory)!=null?p:r==null?void 0:r.categories)!=null?m:To.showCategory,showValue:(g=(v=i==null?void 0:i.showValue)!=null?v:r==null?void 0:r.value)!=null?g:To.showValue,percentageLabels:B(M({},i==null?void 0:i.percentageLabels),{enabled:(T=(E=(C=(b=i==null?void 0:i.percentageLabels)==null?void 0:b.enabled)!=null?C:r==null?void 0:r.percent)!=null?E:(x=To.percentageLabels)==null?void 0:x.enabled)!=null?T:!1,showDecimals:(H=(I=(R=(A=i==null?void 0:i.percentageLabels)==null?void 0:A.showDecimals)!=null?R:r==null?void 0:r.decimals)!=null?I:(D=To.percentageLabels)==null?void 0:D.showDecimals)!=null?H:!1})}));const o=n?hf[n]:void 0,s=(o==null?void 0:o.pieType)||gte,u=e!=null&&e.convolution?e.convolution:{enabled:!1},c=Qy(e,"pie");return B(M({},Hr),{seriesLabels:a,pieType:s,convolution:u,legend:t,dataLimits:c})},yte=e=>{var u,c,d,h,p,m,v,g,b,C;const{funnelType:t=w.DefaultFunnelType,funnelSize:r=w.DefaultFunnelSize,funnelDirection:n=w.DefaultFunnelDirection,legend:i,labels:a,seriesLabels:o}=e,s=Qy(e,"categorical");return B(M({},Hr),{funnelSize:r,funnelType:t,funnelDirection:n,legend:i,dataLimits:s,seriesLabels:B(M({},o!=null?o:{}),{enabled:(c=(u=o==null?void 0:o.enabled)!=null?u:a==null?void 0:a.enabled)!=null?c:w.DefaultFunnelSeriesLabels.enabled,showCategory:(h=(d=o==null?void 0:o.showCategory)!=null?d:a==null?void 0:a.categories)!=null?h:w.DefaultFunnelSeriesLabels.showCategory,showValue:(m=(p=o==null?void 0:o.showValue)!=null?p:a==null?void 0:a.value)!=null?m:w.DefaultFunnelSeriesLabels.showValue,showPercentage:(g=(v=o==null?void 0:o.showPercentage)!=null?v:a==null?void 0:a.percent)!=null?g:w.DefaultFunnelSeriesLabels.showPercentage,showPercentDecimals:(C=(b=o==null?void 0:o.showPercentDecimals)!=null?b:a==null?void 0:a.decimals)!=null?C:w.DefaultFunnelSeriesLabels.showPercentDecimals})})},$3=e=>e,B3=e=>e,bte="column",_te=(e,t)=>{const r=kn(e,!1),n=ni(e!=null?e:{},w.getDefaultStyleOptions()),i=sa(t,"polar",n),a=B(M({},r),{polarType:bte,designPerSeries:i});return w.withYAxisNormalizationForPolar(a)},wte=e=>M(M({},w.defaultScatterMarkerSize),e),Cte=e=>{var t;return B(M({},kn(e,!1)),{lineWidth:0,marker:ff((t=e==null?void 0:e.markers)!=null?t:{enabled:!0,fill:"filled",size:"small"}),dataLimits:Qy(e,"scatter"),markerSize:wte(e.markerSize),legend:e.legend})},xte=e=>B(M({},kn(e,!1)),{boxplotType:e.subtype==="boxplot/hollow"?"hollow":"full"}),Tte={fill:"filled",size:{defaultSize:4,minSize:4,maxSize:24}},Ste=e=>B(M({},Hr),{markers:w.merge(Tte,e.markers||{})}),Ete={"line/basic":"straight","line/spline":"smooth","line/step":"straight"},Mte=e=>({thin:1,bold:3,thick:5})[e.width],Ate=e=>({enabled:e.enabled,fill:e.fill==="filled"?"full":"hollow",size:e.size==="small"?"small":"large"}),Pte=(e,t)=>kn(e,uf(t)),Rte=e=>t=>{var r,n,i,a,o,s;return B(M({},t),{line:{width:(n=(r=e.line)==null?void 0:r.width)!=null?n:Mte(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:Ate((s=e==null?void 0:e.markers)!=null?s:{enabled:!0,fill:"filled",size:"small"})})},Ote=(e,t)=>r=>{const n=ni(e!=null?e:{},w.getDefaultStyleOptions()),i=sa(t,"line",n);return B(M({},r),{designPerSeries:i})},kte=e=>t=>{const r=e.subtype||"line/basic",n=Ete[r];return n?B(M({},t),{lineType:n}):t},Dte=e=>t=>{const r=e.subtype==="line/step"?{step:e.stepPosition||"left"}:{};return M(M({},t),r)};function Nte(e,t){const r=Pte(e,t);return w.flow(Rte(e),Ote(e,t),kte(e),Dte(e))(r)}const Ite=["line/basic","line/spline","line/step"];function Lte(e){return"subtype"in e&&e.subtype?Ite.includes(e.subtype):!0}const kt=(e,t)=>w.getCartesianChartOptions(e.chartData,t,e.designOptions,e.dataOptions,e.extraConfig.translate,e.extraConfig.themeSettings,e.extraConfig.dateFormatter).options,Fte={fontSize:"13px",fontWeight:"normal",textOutline:"none",pointerEvents:"auto"},$te=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"}}},Bte=e=>{if((e==null?void 0:e.enabled)===!1||!e)return;const{text:t,textStyle:r}=e;return{title:{text:t,style:r}}},Hte=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}},zte=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}},jte=e=>{const c=e,{title:t,items:r,symbols:n,xOffset:i,yOffset:a,backgroundColor:o,borderColor:s}=c,u=xe(c,["title","items","symbols","xOffset","yOffset","backgroundColor","borderColor"]);return w.omitUndefinedAndEmpty(B(M(M(M(M({},u),Bte(t)),Hte(r)),zte(n)),{x:i,y:a,backgroundColor:w.withGradientConversion(o),borderColor:w.withGradientConversion(s)}))},Ss=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=xe(o,["position"]),i=$te(r||null),a=jte(n);return w.omitUndefinedAndEmpty(B(M(M(M({},t),i),a),{itemStyle:M(M({},Fte),a.itemStyle)}))},Es=e=>w.getCartesianTooltipSettings(e.dataOptions,e.extraConfig.translate),Ms=(e,t)=>{var i;const r=w.buildCategoriesMeta(e.chartData,e.dataOptions,e.designOptions,w.isContinuousDatetimeXAxis(e.dataOptions.x),e.extraConfig.dateFormatter),n=w.buildXAxisSettings({designOptions:e.designOptions,dataOptions:e.dataOptions,chartData:e.chartData,categoriesMeta:r,orientation:t,isContinuous:w.isContinuousDatetimeXAxis(e.dataOptions.x),dateFormatter:e.extraConfig.dateFormatter});return w.withScrollerEvent((i=e.designOptions.autoZoom)==null?void 0:i.onScrollerChange)(n)},As=(e,t)=>{const r=w.buildYAxisMeta(e.chartData,e.dataOptions),n=w.buildYAxisMinMax(0,t,e.chartData,e.designOptions,r.side,r.treatNullAsZero),i=w.hasSecondaryYAxis(r.side)?w.buildYAxisMinMax(1,t,e.chartData,e.designOptions,r.side,r.treatNullAsZero):void 0;return w.getYAxisSettings(e.designOptions.yAxis,e.designOptions.y2Axis,n,i,e.dataOptions,e.extraConfig.themeSettings)},Wte=e=>{const t=Ms(e,"horizontal"),r=As(e,"line");return{xAxis:t,yAxis:r}},Ute={getChart:function(e){return kt(e,"line").chart},getSeries:function(e){return kt(e,"line").series},getAxes:Wte,getLegend:function(e){return Ss(e.designOptions.legend)},getPlotOptions:function(e){return kt(e,"line").plotOptions},getTooltip:Es,getExtras:function(e){const t=kt(e,"line");return N.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},Vte={dataOptions:{translateDataOptionsToInternal:Xa,getAttributes:bs,getMeasures:_s,isCorrectDataOptions:ws,isCorrectDataOptionsInternal:Cs},data:{loadData:On,getChartData:Ts},designOptions:{translateStyleOptionsToDesignOptions:zu(Nte),isCorrectStyleOptions:Lte},renderer:{ChartRendererComponent:si({highchartsOptionsBuilder:Ute,getAlerts:xs}),isCorrectRendererProps:li}},Gte={translateDataOptionsToInternal:Xa,getAttributes:bs,getMeasures:_s,isCorrectDataOptions:ws,isCorrectDataOptionsInternal:Cs},qte={loadData:On,getChartData:Ts};function Yte(e,t){const r=kn(e,!1),n=ni(e,w.getDefaultStyleOptions()),i=sa(t,"polar",n),a=e.subtype||"polar/column",o=hf[a],s=(o==null?void 0:o.polarType)||"column",u=B(M({},r),{polarType:s,designPerSeries:i});return w.withYAxisNormalizationForPolar(u)}function Xte(e){return typeof e=="object"&&e!==null&&(!("subtype"in e)||!e.subtype||e.subtype.startsWith("polar/"))}const Kte={translateStyleOptionsToDesignOptions:Yte,isCorrectStyleOptions:Xte};function Zte(e){const t=Ms(e,"horizontal"),r=As(e,"polar");return{xAxis:w.withPolarSpecificAxisSettings(t),yAxis:r}}const Qte={getChart:function(e){const t=kt(e,"polar");return B(M({},t.chart),{polar:!0})},getSeries:function(e){return kt(e,"polar").series},getAxes:Zte,getLegend:function(e){return Ss(e.designOptions.legend)},getPlotOptions:function(e){return kt(e,"polar").plotOptions},getTooltip:Es,getExtras:function(e){const t=kt(e,"polar");return N.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},Jte={dataOptions:Gte,data:qte,designOptions:Kte,renderer:{ChartRendererComponent:si({highchartsOptionsBuilder:Qte,getAlerts:xs}),isCorrectRendererProps:li}},ere={"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"}},tre=e=>({thin:1,bold:3,thick:5})[e.width],rre=e=>({enabled:e.enabled,fill:e.fill==="filled"?"full":"hollow",size:e.size==="small"?"small":"large"}),nre=(e,t)=>kn(e,uf(t)),ire=e=>t=>{var r,n,i,a,o,s;return B(M({},t),{line:{width:(n=(r=e.line)==null?void 0:r.width)!=null?n:tre(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:rre((s=e==null?void 0:e.markers)!=null?s:{enabled:!0,fill:"filled",size:"small"})})},are=(e,t)=>r=>{const n=ni(e!=null?e:{},w.getDefaultStyleOptions()),i=sa(t,"area",n);return B(M({},r),{designPerSeries:i})},ore=e=>t=>{const r=e.subtype||"area/basic",n=ere[r];return n?B(M({},t),{lineType:n.lineType,stackType:n.stackType}):t},sre=e=>t=>{var r;return B(M({},t),{totalLabels:(r=e.totalLabels)!=null?r:{enabled:!1,rotation:0}})};function lre(e,t){const r=nre(e,t);return w.flow(ire(e),are(e,t),ore(e),sre(e))(r)}const ure=["area/basic","area/stacked","area/stacked100","area/spline","area/stackedspline","area/stackedspline100"];function cre(e){return"subtype"in e&&e.subtype?ure.includes(e.subtype):!0}const dre=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}}},Jy=e=>t=>{var d,h;const r=e.designOptions,n=dre(r),{stacking:i,totalLabels:a}=n;if(!(a!=null&&a.enabled)&&!i)return t;const o=e.dataOptions,s=w.getCompleteNumberFormatConfig((d=o.y.find(({showOnRightAxis:p})=>!p))==null?void 0:d.numberFormatConfig),u=w.getCompleteNumberFormatConfig((h=o.y.find(({showOnRightAxis:p})=>p))==null?void 0:h.numberFormatConfig);function c(p,m,v=!1){return function(){var E,T;const g=typeof this.value=="number"?this.value:parseFloat(this.value),b=v&&this.total||g,C=w.applyFormatPlainText(p,b),x=m==="percent"?`${C}%`:C;return v?`${(E=a==null?void 0:a.prefix)!=null?E:""}${x}${(T=a==null?void 0:a.suffix)!=null?T:""}`:x}}return t.map((p,m)=>{const g=m===1?u:s;return B(M({},p),{labels:i?B(M({},p.labels),{formatter:c(g,i)}):p.labels,stackLabels:a!=null&&a.enabled?B(M(M({},p.stackLabels),w.prepareStackLabels(a)),{formatter:c(g,"normal",!0),style:M(M(M({},w.stackTotalFontStyleDefault),e.extraConfig.themeSettings?{color:e.extraConfig.themeSettings.typography.primaryTextColor}:null),w.prepareStackLabels(a).style),crop:!0,allowOverlap:!1,labelrank:99999}):p.stackLabels})})},Wc={HORIZONTAL:20,DIAGONAL:70,VERTICAL:110,INVERTED_DIAGONAL:160},hre={FULL_ROTATION:180};function H3(e){var n;let r=0;if((n=e.totalLabels)!=null&&n.enabled&&e.stackType==="stack100"){const i=Math.abs(e.totalLabels.rotation||0)%hre.FULL_ROTATION;i<Wc.HORIZONTAL?r=10:i<Wc.DIAGONAL?r=30:i<Wc.VERTICAL?r=40:i<Wc.INVERTED_DIAGONAL?r=30:r=10}return{rightSpacing:0,topSpacing:r}}const fre=e=>{const t=Ms(e,"horizontal"),r=As(e,"area");return{xAxis:pre(e)(t),yAxis:w.flow(Jy(e),mre(e))(r)}};function pre(e){const{rightSpacing:t,topSpacing:r}=H3(e.designOptions);return w.withXAxisLabelPositioning({totalLabelRightSpacing:t,totalLabelTopSpacing:r})}function mre(e){const t=gre(e);return w.withYAxisLabelPositioning({rightShift:0,topShift:t})}function gre(e){var i;const t=e.designOptions;if(!(((i=t.totalLabels)==null?void 0:i.enabled)&&t.stackType==="stack100"))return 0;const{topSpacing:n}=H3(e.designOptions);return-1*(n/2)}const vre={getChart:function(e){return kt(e,"area").chart},getSeries:function(e){return kt(e,"area").series},getAxes:fre,getLegend:function(e){return Ss(e.designOptions.legend)},getPlotOptions:function(e){return kt(e,"area").plotOptions},getTooltip:Es,getExtras:function(e){const t=kt(e,"area");return N.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},yre={dataOptions:{translateDataOptionsToInternal:Xa,getAttributes:bs,getMeasures:_s,isCorrectDataOptions:ws,isCorrectDataOptionsInternal:Cs},data:{loadData:On,getChartData:Ts},designOptions:{translateStyleOptionsToDesignOptions:lre,isCorrectStyleOptions:cre},renderer:{ChartRendererComponent:si({highchartsOptionsBuilder:vre,getAlerts:xs}),isCorrectRendererProps:li}};function z3(e,t,r){var o,s,u,c,d,h;const n=kn(t,uf(r)),i=ni(t!=null?t:{},w.getDefaultStyleOptions()),a=sa(r,e,i);return B(M({},n),{designPerSeries:a,stackType:t.subtype?j3[t.subtype]:F3,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:(h=(d=t.series)==null?void 0:d.borderRadius)!=null?h:0})}const j3={"bar/classic":"classic","bar/stacked":"stacked","bar/stacked100":"stack100","column/classic":"classic","column/stackedcolumn":"stacked","column/stackedcolumn100":"stack100"};function W3(e){return"subtype"in e&&e.subtype?Object.keys(j3).includes(e.subtype):!0}const Uc={HORIZONTAL:20,DIAGONAL:70,VERTICAL:110,INVERTED_DIAGONAL:160},bre={FULL_ROTATION:180};function _re(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)%bre.FULL_ROTATION;i<Uc.HORIZONTAL?t=40:i<Uc.DIAGONAL?t=25:i<Uc.VERTICAL?t=15:i<Uc.INVERTED_DIAGONAL?t=25:t=40}return{rightSpacing:t,topSpacing:r}}const wre=e=>{const t=Ms(e,"vertical"),r=As(e,"bar");return{xAxis:Cre(e)(t),yAxis:w.flow(Jy(e),xre(e))(r)}};function Cre(e){const{rightSpacing:t,topSpacing:r}=_re(e.designOptions);return w.withXAxisLabelPositioning({totalLabelRightSpacing:t,totalLabelTopSpacing:r})}function xre(e){var a;const t=e.designOptions,n=((a=t.totalLabels)==null?void 0:a.enabled)&&t.stackType==="stack100"?.1:0;return w.withYAxisLabelPositioning({rightShift:n,topShift:0})}const Tre=e=>Sre(e)(Ss(e.designOptions.legend));function Sre(e){return r=>{var n,i;return e.dataOptions.x.length>1&&w.isLegendOnRight(e.designOptions.legend)?B(M({},r),{margin:(i=(n=e.designOptions.legend)==null?void 0:n.margin)!=null?i:80}):r}}const Ere={getChart:function(e){return kt(e,"bar").chart},getSeries:function(e){return kt(e,"bar").series},getAxes:wre,getLegend:Tre,getPlotOptions:function(e){return kt(e,"bar").plotOptions},getTooltip:Es,getExtras:function(e){const t=kt(e,"bar");return N.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},Mre={dataOptions:{translateDataOptionsToInternal:Xa,getAttributes:bs,getMeasures:_s,isCorrectDataOptions:ws,isCorrectDataOptionsInternal:Cs},data:{loadData:On,getChartData:Ts},designOptions:{translateStyleOptionsToDesignOptions:zu(z3)("bar"),isCorrectStyleOptions:W3},renderer:{ChartRendererComponent:si({highchartsOptionsBuilder:Ere,getAlerts:xs}),isCorrectRendererProps:li}},Vc={HORIZONTAL:20,DIAGONAL:70,VERTICAL:110,INVERTED_DIAGONAL:160},Are={FULL_ROTATION:180};function U3(e){var n;let r=0;if((n=e.totalLabels)!=null&&n.enabled&&e.stackType==="stack100"){const i=Math.abs(e.totalLabels.rotation||0)%Are.FULL_ROTATION;i<Vc.HORIZONTAL?r=10:i<Vc.DIAGONAL?r=30:i<Vc.VERTICAL?r=40:i<Vc.INVERTED_DIAGONAL?r=30:r=10}return{rightSpacing:0,topSpacing:r}}const Pre=e=>{const t=Ms(e,"horizontal"),r=As(e,"column");return{xAxis:Rre(e)(t),yAxis:w.flow(Jy(e),Ore(e))(r)}};function Rre(e){const{rightSpacing:t,topSpacing:r}=U3(e.designOptions);return w.withXAxisLabelPositioning({totalLabelRightSpacing:t,totalLabelTopSpacing:r})}function Ore(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}=U3(e.designOptions);n=-1*(o/2)}return w.withYAxisLabelPositioning({rightShift:0,topShift:n})}const kre={getChart:function(e){return kt(e,"column").chart},getSeries:function(e){return kt(e,"column").series},getAxes:Pre,getLegend:function(e){return Ss(e.designOptions.legend)},getPlotOptions:function(e){return kt(e,"column").plotOptions},getTooltip:Es,getExtras:function(e){const t=kt(e,"column");return N.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},Dre={dataOptions:{translateDataOptionsToInternal:Xa,getAttributes:bs,getMeasures:_s,isCorrectDataOptions:ws,isCorrectDataOptionsInternal:Cs},data:{loadData:On,getChartData:Ts},designOptions:{translateStyleOptionsToDesignOptions:zu(z3)("column"),isCorrectStyleOptions:W3},renderer:{ChartRendererComponent:si({highchartsOptionsBuilder:kre,getAlerts:xs}),isCorrectRendererProps:li}},Nre=e=>{const t=n=>typeof n=="number"&&Number.isNaN(n)||n==null?0:n,r=n=>{const i=t(n.value);return B(M({},n),{value:i})};return B(M({},e),{series:e.series.map(n=>B(M({},n),{data:n.data.map(r)}))})},Ire=w.flow(Ts,Nre),Lre=e=>({thin:1,bold:3,thick:5})[e.width],Fre=e=>({enabled:e.enabled,fill:e.fill==="filled"?"full":"hollow",size:e.size==="small"?"small":"large"}),$re=(e,t)=>kn(e,uf(t)),Bre=e=>t=>{var r,n,i,a,o,s,u,c,d;return B(M({},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:Lre(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:Fre((d=e==null?void 0:e.markers)!=null?d:{enabled:!1,fill:"filled",size:"small"})})},Hre=(e,t)=>r=>{const n=sa(t,"area",e);return B(M({},r),{designPerSeries:n})},zre=e=>t=>{var r,n,i,a,o,s,u,c,d,h,p,m;return B(M({},t),{seriesLabels:B(M({},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:B(M({},(d=e.seriesLabels)==null?void 0:d.textStyle),{color:(m=(p=(h=e.seriesLabels)==null?void 0:h.textStyle)==null?void 0:p.color)!=null?m:"#000000"})})})};function jre(e,t){const r=$re(e,t);return w.flow(Bre(e),Hre(e,t),zre(e))(r)}function Wre(e){return!0}function Ure(){const e=w.getDefaultStyleOptions();return w.merge(e,{yAxis:{enabled:!0,gridLines:!0,labels:{enabled:!1},title:{enabled:!1,text:""}},xAxis:{gridLines:!1},legend:{enabled:!1}})}const Vre=e=>{const t=Ms(e,"horizontal"),r=As(e,"area"),n=t.map(a=>{var o;return B(M({},a),{gridLineWidth:e.designOptions.xAxis.gridLine?1:0,labels:B(M({},a.labels),{enabled:(o=e.designOptions.xAxis.labels)!=null?o:!0})})}),i=r.map(a=>B(M({},a),{visible:e.designOptions.yAxis.enabled,gridLineWidth:e.designOptions.yAxis.gridLine?1:0,labels:B(M({},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}},Gre=e=>{var n,i,a,o,s;const t=kt(e,"area").plotOptions,r=(i=(n=e.designOptions.line)==null?void 0:n.width)!=null?i:1;return B(M({},t),{series:B(M({},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}})})},qre={getChart:function(e){const t=kt(e,"area");return B(M({},t.chart),{type:"streamgraph"})},getSeries:function(e){return kt(e,"area").series},getAxes:Vre,getLegend:function(e){return Ss(e.designOptions.legend)},getPlotOptions:Gre,getTooltip:Es,getExtras:function(e){const t=kt(e,"area");return N.omit(t,["chart","series","xAxis","yAxis","legend","plotOptions","tooltip"])}},Yre={dataOptions:{translateDataOptionsToInternal:Xa,getAttributes:bs,getMeasures:_s,isCorrectDataOptions:ws,isCorrectDataOptionsInternal:Cs},data:{loadData:On,getChartData:Ire},designOptions:{translateStyleOptionsToDesignOptions:jre,isCorrectStyleOptions:Wre,getDefaultStyleOptions:Ure},renderer:{ChartRendererComponent:si({highchartsOptionsBuilder:qre,getAlerts:xs}),isCorrectRendererProps:li}},Xre=e=>w.getAlerts(e.chartData,e.designOptions);function Kre(e,t){const r=Zre[e],n=e!=="pie"||t.category.length>0,i=[V3(r.category),n?G3(r.value):a=>a];return w.flow(...i)(t)}const Zre={pie:{category:3,value:1},funnel:{category:1,value:1},treemap:{category:3,value:1},sunburst:{category:6,value:1}};function V3(e){return t=>(t.category.length>e&&console.warn(`Maximum 'category' length is limited to ${e}. Taken first ${e} categories`),B(M({},t),{category:t.category.slice(0,e)}))}function G3(e){return t=>(t.value.length>e&&console.warn(`Maximum 'value' length is limited to ${e}. Taken first ${e} values`),B(M({},t),{value:t.value.slice(0,e)}))}function q3(e){return{y:e.value.map(t=>w.normalizeMeasureColumn(t)),breakBy:e.category.map(t=>w.normalizeColumn(t)),seriesToColorMap:e.seriesToColorMap}}function pf(e){return[...e.breakBy.map(Y3)].filter(Qre)}function mf(e){return e.y.map(Y3).filter(w.isMeasureColumn)}function gf(e){return"category"in e&&"value"in e&&Array.isArray(e.category)&&Array.isArray(e.value)}function vf(e){return e&&"y"in e&&Array.isArray(e.y)&&e.y.every(w.isMeasureColumn)&&"breakBy"in e&&Array.isArray(e.breakBy)&&e.breakBy.every(w.isStyledColumn)}function Y3(e){return e.column}function Qre(e){return!w.isMeasureColumn(e)}function yf({maxCategories:e,maxValues:t}){return w.flow(V3(e),G3(t))}const Jre={translateDataOptionsToInternal:e=>{const t=e.category.length>0?yf({maxCategories:1,maxValues:1})(e):e;return q3(t)},getAttributes:e=>pf(e),getMeasures:e=>mf(e),isCorrectDataOptions:e=>gf(e),isCorrectDataOptionsInternal:e=>vf(e)},bf=(e,t)=>{const r=B(M({},e),{x:e.breakBy,breakBy:[]});let n=w.cartesianData(r,t);if(e.breakBy.some(({column:{type:a},numberFormatConfig:o})=>N.isNumber(a)&&o)){const a=n.xValues.map(o=>{const s=[];return e.breakBy.forEach(({column:{type:u},numberFormatConfig:c},d)=>{const h=w.getCompleteNumberFormatConfig(c),p=o.xValues[d];N.isNumber(u)?s.push(w.applyFormatPlainText(h,parseFloat(p))):s.push(o.xValues[d])}),B(M({},o),{xValues:s})});n=B(M({},n),{xValues:a})}return B(M({},n),{type:"categorical"})},X3=On;function K3(e,t){return bf(e,t)}const R2=50,ene=e=>(...t)=>{var s;const[r,...n]=t,i=(s=r.queryDescription)==null?void 0:s.count,a=Math.min(i!=null?i:R2,R2),o=B(M({},r),{queryDescription:B(M({},r.queryDescription),{count:a})});return e(o,...n)},tne={loadData:ene(X3),getChartData:(e,t)=>K3(e,t)},rne=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 nne(e){var s,u,c,d,h;const{funnelType:t=w.DefaultFunnelType,funnelSize:r=w.DefaultFunnelSize,funnelDirection:n=w.DefaultFunnelDirection,legend:i,seriesLabels:a}=e,o=rne(e);return B(M({},Hr),{funnelSize:r,funnelType:t,funnelDirection:n,legend:i,dataLimits:o,seriesLabels:B(M({},a!=null?a:{}),{enabled:(s=a==null?void 0:a.enabled)!=null?s:w.DefaultFunnelSeriesLabels.enabled,showCategory:(u=a==null?void 0:a.showCategory)!=null?u:w.DefaultFunnelSeriesLabels.showCategory,showValue:(c=a==null?void 0:a.showValue)!=null?c:w.DefaultFunnelSeriesLabels.showValue,showPercentage:(d=a==null?void 0:a.showPercentage)!=null?d:w.DefaultFunnelSeriesLabels.showPercentage,showPercentDecimals:(h=a==null?void 0:a.showPercentDecimals)!=null?h:w.DefaultFunnelSeriesLabels.showPercentDecimals})})}function ine(e){return!e||typeof e=="object"}function ane(){return{legend:{enabled:!0,position:"bottom"},funnelType:w.DefaultFunnelType,funnelSize:w.DefaultFunnelSize,funnelDirection:w.DefaultFunnelDirection,seriesLabels:w.DefaultFunnelSeriesLabels}}function one(e={}){var a,o,s,u,c;const i=e,{labels:t,seriesLabels:r}=i,n=xe(i,["labels","seriesLabels"]);return w.omitUndefinedAndEmpty(B(M({},n),{seriesLabels:B(M({},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 sne={translateStyleOptionsToDesignOptions:nne,isCorrectStyleOptions:ine,getDefaultStyleOptions:ane,translateLegacyStyleOptionsToModern:one},lne={getChart:function(e){return{type:w.determineHighchartsChartType("funnel",e.designOptions),spacing:[30,30,30,30],alignTicks:!1,polar:!1}},getSeries:function(e){const{series:t}=w.formatFunnelChartData(e.chartData,e.dataOptions,e.designOptions,e.extraConfig.themeSettings);return t},getAxes:function(){return{xAxis:[],yAxis:[]}},getLegend:function(e){return w.getLegendSettings(e.designOptions.legend)},getPlotOptions:function(e){return w.getFunnelPlotOptions(e.designOptions,e.dataOptions)},getTooltip:function(e){var t;return w.getCategoryTooltipSettings((t=e.designOptions.seriesLabels)==null?void 0:t.showPercentDecimals,e.dataOptions)},getExtras:function(){return{title:{text:null}}}},une={dataOptions:Jre,data:tne,designOptions:sne,renderer:{ChartRendererComponent:si({highchartsOptionsBuilder:lne,getAlerts:Xre}),isCorrectRendererProps:li}},cne=e=>{const{seriesCapacity:t}=e.designOptions.dataLimits;return w.getPieAlerts(e.chartData,t)},dne={translateDataOptionsToInternal:e=>{const t=e.category.length>0?yf({maxCategories:1,maxValues:1})(e):e;return q3(t)},getAttributes:e=>pf(e),getMeasures:e=>mf(e),isCorrectDataOptions:e=>gf(e),isCorrectDataOptionsInternal:e=>vf(e)},hne={loadData:X3,getChartData:(e,t)=>K3(e,t)},fne="classic",al={enabled:!0,showCategory:!0,showValue:!1,percentageLabels:{enabled:!0,showDecimals:!1}},pne=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 mne(e){var d,h,p,m,v,g,b,C,x,E,T,A;const{legend:t,labels:r,subtype:n,seriesLabels:i,semiCircle:a}=e,o=n?hf[n]:void 0,s=(o==null?void 0:o.pieType)||fne,u=e!=null&&e.convolution?e.convolution:{enabled:!1},c=pne(e);return B(M({},Hr),{seriesLabels:B(M({},i),{enabled:(h=(d=i==null?void 0:i.enabled)!=null?d:r==null?void 0:r.enabled)!=null?h:al.enabled,showCategory:(m=(p=i==null?void 0:i.showCategory)!=null?p:r==null?void 0:r.categories)!=null?m:al.showCategory,showValue:(g=(v=i==null?void 0:i.showValue)!=null?v:r==null?void 0:r.value)!=null?g:al.showValue,percentageLabels:B(M({},i==null?void 0:i.percentageLabels),{enabled:(x=(C=(b=i==null?void 0:i.percentageLabels)==null?void 0:b.enabled)!=null?C:r==null?void 0:r.percent)!=null?x:al.percentageLabels.enabled,showDecimals:(A=(T=(E=i==null?void 0:i.percentageLabels)==null?void 0:E.showDecimals)!=null?T:r==null?void 0:r.decimals)!=null?A:al.percentageLabels.showDecimals})}),pieType:s,convolution:u,legend:t,dataLimits:c,semiCircle:a})}function gne(e){return!e||typeof e=="object"}function vne(){return{legend:{enabled:!0,position:"bottom"},labels:{enabled:!0,categories:!0,percent:!0,decimals:!1,value:!1}}}const yne={translateStyleOptionsToDesignOptions:mne,isCorrectStyleOptions:gne,getDefaultStyleOptions:vne},bne={getChart:function(e){return{type:w.determineHighchartsChartType("pie",e.designOptions),spacing:[20,20,20,20],alignTicks:!1,polar:!1}},getSeries:function(e){return w.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 w.getLegendSettings(e.designOptions.legend)},getPlotOptions:function(e){return w.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 w.getCategoryTooltipSettings((r=(t=e.designOptions.seriesLabels)==null?void 0:t.percentageLabels)==null?void 0:r.showDecimals,e.dataOptions)},getExtras:function(e){const t=w.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}}}},_ne={dataOptions:dne,data:hne,designOptions:yne,renderer:{ChartRendererComponent:si({highchartsOptionsBuilder:bne,getAlerts:cne}),isCorrectRendererProps:li}};function wne(){return[]}const Cne=(e,t)=>{if(w.emptyTable(t))return{rows:[],columns:[]};const r=w.getColumnsByName(t,e);return w.selectColumns(t,r)},yg=({column:e,sortType:t})=>{switch("getSort"in e?e.getSort():t){case"sortAsc":case N.Sort.Ascending:return 1;case"sortDesc":case N.Sort.Descending:return-1;default:return 0}},xne=(e,t)=>{const r=e.columns.find(n=>yg(n)!==0);if(r){const n=w.getColumnByName(t,r.column.name);n&&(n.direction=yg(r))}return t},Z3=e=>{if(!("sortType"in e))return e;const t=e.sortType,r=N.convertSortDirectionToSort(t);return B(M({},e),{sortType:t,column:Tne(e.column,r)})};function Tne(e,t){return Ene(e)?Sne(e,t):e}function Sne(e,t){const r=e.sort(t);return w.isMeasureColumn(r)&&w.isMeasureColumn(e)&&(r.title=e.title),r}function Ene(e){return"sort"in e&&typeof e.sort=="function"}const Mne=(e,t)=>({columns:e.columns.map(r=>{const n=r.column.name===t.name,i=yg(r),a=n?i===1?"sortDesc":"sortAsc":"sortNone";return r.sortType=a,Z3(r)})}),Ane=(e,t)=>{const r=Cne(e.columns.map(({column:{name:n}})=>n),t);return xne(e,r)},Pne=(e,t)=>{switch(t){case"iqr":return jL(e);case"extremums":return WL(e);case"standardDeviation":return UL(e)}},Rne=(e,t)=>{switch(t){case"iqr":return VL(e);case"standardDeviation":return GL(e)}},One=(e,t,r)=>{const{column:n,style:i}=w.splitColumn(e);let a=Pne(n,t),o;return i&&(a=a.map(s=>M({column:s},i))),r&&(o=Rne(n,t),o&&i&&(o=M({column:o},i))),{values:a,outliers:o}},kne=e=>e.value.length>1,Dne=()=>({valueTitle:""}),Q3=e=>{var h;const{category:t}=e;if(e.value.length===0)return Dne();let r,n,i;if(kne(e))r=e.value,i=e.valueTitle,n=(h=e.outliers)==null?void 0:h[0];else{const{outliersEnabled:p,boxType:m}=e,v=w.normalizeColumn(e.value[0]),{values:g,outliers:b}=One(v,m,!!p);r=g,n=b,i=w.getDataOptionTitle(v)}const[a,o,s,u,c,d]=r;return{category:t[0]&&w.normalizeColumn(t[0]),boxMin:a&&w.normalizeMeasureColumn(a),boxMedian:o&&w.normalizeMeasureColumn(o),boxMax:s&&w.normalizeMeasureColumn(s),whiskerMin:u&&w.normalizeMeasureColumn(u),whiskerMax:c&&w.normalizeMeasureColumn(c),outliersCount:d&&w.normalizeMeasureColumn(d),outliers:n&&w.normalizeColumn(n),valueTitle:i}};function Nne(e){var a;const t=e.value.map(o=>{if(o!=null&&o.chartType)return[w.normalizeMeasureColumn(o)];const h=o,{lowerBound:s,upperBound:u,title:c}=h,d=xe(h,["lowerBound","upperBound","title"]);return[w.normalizeMeasureColumn(M({column:w.safeMerge(s,{title:c})},d)),w.normalizeMeasureColumn(M({column:w.safeMerge(u,{title:c})},d))]}),r=t.flat(),n=t.filter(o=>o.length===2),i=t.filter(o=>o.length===1).flat();return{x:e.category.map(o=>w.normalizeColumn(o)),breakBy:((a=e.breakBy)==null?void 0:a.map(o=>w.normalizeColumn(o)))||[],y:r,rangeValues:n,seriesValues:i,seriesToColorMap:e.seriesToColorMap}}const O2={city:4,state:3,country:2,auto:1};function Ine(e){return e.filter(r=>"geoLevel"in r&&r.geoLevel).map(r=>r.geoLevel).reduce((r,n)=>O2[n]>O2[r]?n:r,"auto")}function Lne(e){const{geo:t,size:r,colorBy:n,details:i}=e;return{locations:t.map(a=>w.normalizeColumn(a)),size:r&&w.normalizeMeasureColumn(r),colorBy:n&&w.normalizeMeasureColumn(n),details:i&&w.normalizeAnyColumn(i),locationLevel:Ine(t)}}function J3(e,t){if(N.isCartesian(e))return Xa(t);if(N.isCategorical(e))return eb(t);if(N.isIndicator(e))return Fne(t);if(N.isScatter(e))return $ne(t);if(N.isBoxplot(e))return Q3(t);if(N.isScattermap(e))return Lne(t);if(N.isRange(e))return Nne(t);throw new N.TranslatableError("errors.unexpectedChartType",{chartType:e})}const eb=e=>({y:e.value.map(t=>w.normalizeMeasureColumn(t)),breakBy:e.category.map(t=>w.normalizeColumn(t)),seriesToColorMap:e.seriesToColorMap}),Fne=e=>{var t,r,n,i,a,o;return{value:(t=e.value)==null?void 0:t.map(s=>w.normalizeMeasureColumn(s)),secondary:(r=e.secondary)==null?void 0:r.map(s=>w.normalizeMeasureColumn(s)),min:(i=(n=e.min)==null?void 0:n.map(s=>w.normalizeMeasureColumn(s)))==null?void 0:i.map(k2("min")),max:(o=(a=e.max)==null?void 0:a.map(s=>w.normalizeMeasureColumn(s)))==null?void 0:o.map(k2("max"))}},k2=e=>t=>{const{column:r}=t,n="aggregation"in r&&r.aggregation||e;return B(M({},t),{column:w.safeMerge(r,{aggregation:n})})},$ne=e=>{const{x:t,y:r,breakByPoint:n,breakByColor:i,size:a,seriesToColorMap:o}=e;return{x:t&&w.normalizeAnyColumn(t),y:r&&w.normalizeAnyColumn(r),breakByPoint:n&&w.normalizeColumn(n),breakByColor:i&&w.normalizeAnyColumn(i),size:a&&w.normalizeMeasureColumn(a),seriesToColorMap:o}};function eA(e,t){const r=e[t];return r==null?[]:Array.isArray(r)?r:[r]}function tA(e,t){let r=[];return N.isScatter(t)?r=["x","y","breakByPoint","breakByColor"]:N.isCartesian(t)||N.isCategorical(t)||N.isRange(t)?r=["x","breakBy"]:N.isBoxplot(t)?r=["category","outliers"]:N.isScattermap(t)&&(r=["locations"]),r.flatMap(n=>eA(e,n)).filter(n=>!w.isMeasureColumn(n))}function rA(e,t){let r=[];return N.isIndicator(t)?r=["value","secondary","min","max"]:N.isScatter(t)?r=["x","y","breakByColor","size"]:N.isCartesian(t)||N.isCategorical(t)||N.isRange(t)?r=["y"]:N.isBoxplot(t)?r=["boxMin","boxMedian","boxMax","whiskerMin","whiskerMax","outliersCount"]:N.isScattermap(t)&&(r=["size","colorBy","details"]),r.flatMap(n=>eA(e,n)).filter(w.isMeasureColumn)}function Bne(e,t){return tA(e,t).map(({column:r})=>r)}function Hne(e,t){return rA(e,t).map(({column:r})=>r)}function _f(e){return{columns:e.columns.map(t=>w.normalizeAnyColumn(t)).map(Z3)}}function nA(e){var t,r,n;return{rows:(t=e.rows)==null?void 0:t.map(i=>w.normalizeColumn(i)),columns:(r=e.columns)==null?void 0:r.map(i=>w.normalizeColumn(i)),values:(n=e.values)==null?void 0:n.map(i=>w.normalizeMeasureColumn(i)),grandTotals:e.grandTotals}}const zne={translateDataOptionsToInternal:e=>eb(yf({maxCategories:6,maxValues:1})(e)),getAttributes:pf,getMeasures:mf,isCorrectDataOptions:e=>gf(e),isCorrectDataOptionsInternal:e=>vf(e)},jne={loadData:On,getChartData:(e,t)=>bf(e,t)},Wne={translateStyleOptionsToDesignOptions:e=>B3(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)?B(M({},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")},Une={getChart:()=>({type:"sunburst",spacing:[20,20,20,20],alignTicks:!1,polar:!1,animation:{duration:300}}),getSeries:e=>w.prepareSunburstSeries(e.chartData,e.dataOptions,e.designOptions,e.extraConfig.themeSettings),getAxes:()=>({xAxis:void 0,yAxis:void 0}),getLegend:e=>w.getLegendSettings(e.designOptions.legend),getPlotOptions:()=>({series:{},sunburst:{events:{legendItemClick:function(e){e.preventDefault()}}}}),getTooltip:e=>w.prepareSunburstTooltip(e.dataOptions,e.designOptions,e.extraConfig.translate),getExtras:()=>({title:{text:null}})},Vne={dataOptions:zne,data:jne,designOptions:Wne,renderer:{ChartRendererComponent:si({highchartsOptionsBuilder:Une,getAlerts:wne}),isCorrectRendererProps:li}};function Gne(){return[]}const qne={translateDataOptionsToInternal:e=>eb(yf({maxCategories:3,maxValues:1})(e)),getAttributes:pf,getMeasures:mf,isCorrectDataOptions:e=>gf(e),isCorrectDataOptionsInternal:e=>vf(e)},Yne={loadData:On,getChartData:(e,t)=>bf(e,t)},Xne={translateStyleOptionsToDesignOptions:e=>$3(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)?B(M({},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")},Kne="rgb(0, 206, 230)",Zne={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:Kne,name:e.dataOptions.y[0]?w.getDataOptionTitle(e.dataOptions.y[0]):"",data:w.prepareTreemapDataItems(e.chartData,e.dataOptions,e.extraConfig.themeSettings),levels:w.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=>w.getTreemapTooltipSettings(e.dataOptions,e.designOptions,e.extraConfig.translate),getExtras:()=>({title:{text:null}})},Qne={dataOptions:qne,data:Yne,designOptions:Xne,renderer:{ChartRendererComponent:si({highchartsOptionsBuilder:Zne,getAlerts:Gne}),isCorrectRendererProps:li}},Jne={areamap:FQ,area:yre,column:Dre,bar:Mre,line:Vte,polar:Jte,streamgraph:Yre,pie:_ne,funnel:une,treemap:Qne,sunburst:Vne,"calendar-heatmap":cee};function ju(e){const t=Jne[e];if(t)return t;throw new Error(`Unsupported chart type: ${e}`)}function eie(e,t){return N.isCartesian(t)?e.value.some(n=>(n==null?void 0:n.forecast)!==void 0||(n==null?void 0:n.trend)!==void 0):!1}function Wu(e){return["areamap","area","column","bar","line","polar","pie","funnel","calendar-heatmap","treemap","sunburst","streamgraph"].includes(e)}function tie(e){let t;switch(e.subtype){case"indicator/numeric":t=M({indicatorType:"numeric",numericSubtype:e.numericSubtype},e.numericSubtype==="numericSimple"?{skin:e.skin}:null);break;case"indicator/gauge":t=M({indicatorType:"gauge",skin:e.skin},e.tickerBarHeight?{tickerBarHeight:e.tickerBarHeight}:null);break}return B(M(M({},Hr),t),{indicatorComponents:e.indicatorComponents||Hr.indicatorComponents,forceTickerView:!!e.forceTickerView})}const rie=(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=pte(t,r,n);break;case"arearange":case"line":i=fte(t,r,n);break;case"pie":i=vte(t);break;case"funnel":i=yte(t);break;case"treemap":i=$3(t);break;case"sunburst":i=B3(t);break;case"polar":i=_te(t,r);break;case"indicator":i=tie(t);break;case"scatter":i=Cte(t);break;case"boxplot":i=xte(t);break;case"scattermap":i=Ste(t);break;default:throw new N.TranslatableError("errors.chartTypeNotSupported",{chartType:e})}const a="subtype"in t&&t.subtype?t.subtype:"line/basic",o=hf[a];return M(M({},i),o)};function nie(e,t,r){var n,i,a,o,s,u,c;if(Wu(e)){const d=ju(e),h=ni((o=(a=(i=(n=d.designOptions).translateLegacyStyleOptionsToModern)==null?void 0:i.call(n,r))!=null?a:r)!=null?o:{},(c=(u=(s=d.designOptions).getDefaultStyleOptions)==null?void 0:u.call(s))!=null?c:w.getDefaultStyleOptions());if(!d.designOptions.isCorrectStyleOptions(h))throw new N.TranslatableError("errors.optionsTranslation.invalidStyleOptions",{chartType:e});if(!d.dataOptions.isCorrectDataOptionsInternal(t))throw new N.TranslatableError("errors.optionsTranslation.invalidInternalDataOptions",{chartType:e});return d.designOptions.translateStyleOptionsToDesignOptions(h,t)}else{const d=ni(r!=null?r:{},w.getDefaultStyleOptions());return rie(e,d,t)}}function ni(e,t){return w.merge.withOptions({mergeArrays:!1},t,e)}function sa(e,t,r){return iie(e).map(i=>{const a=i.seriesId,o=i.seriesStyleOptions,s=hte(t,ni(o,r));return{seriesId:a,designOptions:d6(s,["line","marker"])}}).reduce((i,{seriesId:a,designOptions:o})=>B(M({},i),{[a]:o}),{})}function iie(e){return e.y.filter(aie).map(({column:{name:t},seriesStyleOptions:r})=>({seriesId:t,seriesStyleOptions:r}))}function aie(e){return e.seriesStyleOptions!==void 0}const oie=2e4;function ol(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 iA=(e,t,r)=>{if(!e)return{columns:[],rows:[]};let n=0,i=4,a=5,o=0,s=1;return r&&(n=ol(e.columns,r.category),i=ol(e.columns,r.whiskerMin),a=ol(e.columns,r.whiskerMax),o=ol(t.columns,r.category),s=ol(t.columns,r.outliers)),vd(s)?e:{columns:[...e.columns,t.columns[s]],rows:e.rows.map(c=>{const d=vd(n)?null:c[n].data,h=c[a].data,p=c[i].data,m=t.rows.filter(v=>{const g=vd(o)?null:v[o].data,b=v[s].data;return g===d&&(b<p||b>h)}).map(v=>v[s].data).join(",");return[...c,{data:m}]})}};function sie(e,t,r){const n=r&&Q3(r);return iA(e,t,n)}const lie=(c,d)=>Vt(exports,[c,d],function*({app:e,chartDataOptions:t,dataSource:r,attributes:n,measures:i,filters:a,filterRelations:o,highlights:s},u){var g;const h={dataSource:r,dimensions:t.category?[n[0]]:[],measures:i,filters:a,filterRelations:o,highlights:s},p=yield u(h,e);let m=p;const v=t.outliersCount?uie(p,t.outliersCount.column.name):0;if(t.outliers&&v<oie){const b={dataSource:r,dimensions:n,measures:[],filters:a,filterRelations:o,highlights:s};try{const C=yield u(b,e);m=iA(p,C,t)}catch(C){if((g=C==null?void 0:C.message)!=null&&g.includes("UnsupportedFunctionalityException"))console.warn("Functionality not supported by platform: Boxplot outliers");else throw C}}return m}),uie=(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 cie(e,t){return Wu(e)&&!t?ju(e).data.loadData:e==="boxplot"?hie:die}const die=n=>Vt(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)?N.executeQueryWithCache:N.executeQuery)(t,e,r)}),hie=n=>Vt(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)?N.executeQueryWithCache:N.executeQuery;return lie({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)}),Gc=(e,t)=>{if(!t||t.length!==1)return[void 0,void 0];const r=w.getColumnByName(e,t[0].column.name);return r?[w.getValue(e.rows[0],r),t[0].column.name]:[void 0,void 0]},fie=(e,t)=>{var s;const r={type:"indicator"};if(!((s=e.value)!=null&&s.length)||t.rows.length===0)return r;const[n]=Gc(t,e.value);if(n===void 0)return r;const[i]=Gc(t,e.secondary),[a]=Gc(t,e.min),[o]=Gc(t,e.max);return{type:"indicator",value:n,secondary:i,min:a,max:o}};function aA(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:N.baseSlice(e,t,r)}function pie(e,t){for(var r=e.length;r--&&Xy(t,e[r],0)>-1;);return r}function mie(e,t){for(var r=-1,n=e.length;++r<n&&Xy(t,e[r],0)>-1;);return r}function gie(e){return e.split("")}var vie="\\ud800-\\udfff",yie="\\u0300-\\u036f",bie="\\ufe20-\\ufe2f",_ie="\\u20d0-\\u20ff",wie=yie+bie+_ie,Cie="\\ufe0e\\ufe0f",xie="\\u200d",Tie=RegExp("["+xie+vie+wie+Cie+"]");function oA(e){return Tie.test(e)}var sA="\\ud800-\\udfff",Sie="\\u0300-\\u036f",Eie="\\ufe20-\\ufe2f",Mie="\\u20d0-\\u20ff",Aie=Sie+Eie+Mie,Pie="\\ufe0e\\ufe0f",Rie="["+sA+"]",bg="["+Aie+"]",_g="\\ud83c[\\udffb-\\udfff]",Oie="(?:"+bg+"|"+_g+")",lA="[^"+sA+"]",uA="(?:\\ud83c[\\udde6-\\uddff]){2}",cA="[\\ud800-\\udbff][\\udc00-\\udfff]",kie="\\u200d",dA=Oie+"?",hA="["+Pie+"]?",Die="(?:"+kie+"(?:"+[lA,uA,cA].join("|")+")"+hA+dA+")*",Nie=hA+dA+Die,Iie="(?:"+[lA+bg+"?",bg,uA,cA,Rie].join("|")+")",Lie=RegExp(_g+"(?="+_g+")|"+Iie+Nie,"g");function Fie(e){return e.match(Lie)||[]}function wg(e){return oA(e)?Fie(e):gie(e)}function $ie(e,t,r){if(e=N.toString(e),e&&(r||t===void 0))return w.baseTrim(e);if(!e||!(t=N.baseToString(t)))return e;var n=wg(e),i=wg(t),a=mie(n,i),o=pie(n,i)+1;return aA(n,a,o).join("")}const fA=",";function Bie(e){return e.join(`${fA} `)}function Hie(e){return e.split(fA).map($ie)}function zie(e){switch(e){case"city":return"city";case"state":return"adm";case"country":return"country"}}function jie(e,t){const{name:r,rawName:n,coordinates:i,value:a,colorValue:o,details:s}=e,c={geo:t.locations.map((d,h)=>B(M({},Je(d)),{value:n[h]}))};if(t.size&&(c.size=B(M({},Je(t.size)),{value:a})),t.colorBy&&(c.colorBy=B(M({},Je(t.colorBy)),{value:o})),t.details){const d=Je(t.details);d.measure&&(c.details=B(M({},d),{value:s}))}return{categories:n,displayName:r,coordinates:{lat:i.lat,lng:i.lng},value:a,entries:c}}const Wie=1,Uie=(e,t)=>{const r=Vie(e),n=e.locations&&w.getColumnsByName(t,e.locations.map(({column:{name:u}})=>u)),i=e.size&&w.getColumnByName(t,e.size.column.name),a=e.colorBy&&w.getColumnByName(t,e.colorBy.column.name),o=e.details&&w.getColumnByName(t,e.details.column.name);return{type:"scattermap",locations:t.rows.filter(u=>n.some(c=>w.getValue(u,c)!==w.NOT_AVAILABLE_DATA_VALUE)).map(u=>{const c=n.map(m=>w.getValue(u,m)),d=Bie(c);let h;r&&(h={lat:w.getValue(u,n[0]),lng:w.getValue(u,n[1])});const p=n[0]&&!!w.isBlurred(u,n[0]);return M(B(M(M({name:d,rawName:c,value:i?w.getValue(u,i):Wie},a&&{colorValue:w.getValue(u,a)}),o&&{details:w.getValue(u,o)}),{blur:p}),h?{coordinates:h}:null)})}};function Vie(e){return e.locations.length===2&&e.locations.filter(({column:{type:t}})=>N.isNumber(t)).length===2}const Gie=(e,t,r)=>{if(N.isCartesian(e))return w.isForecastChart(t)?w.advancedAnalyticsData(t,r):w.cartesianData(t,r);if(N.isCategorical(e))return bf(t,r);if(N.isScatter(e))return w.scatterData(t,r);if(N.isScattermap(e))return Uie(t,r);if(N.isIndicator(e))return fie(t,r);if(N.isBoxplot(e))return YL(t,r);if(N.isRange(e))return w.rangeData(t,r);throw new N.TranslatableError("errors.unexpectedChartType",{chartType:e})};var qie=1/0,Yie=N.Set&&1/N.setToArray(new N.Set([,-0]))[1]==qie?function(e){return new N.Set(e)}:w.noop,Xie=200;function tb(e,t,r){var n=-1,i=k3,a=e.length,o=!0,s=[],u=s;if(a>=Xie){var c=t?null:Yie(e);if(c)return N.setToArray(c);o=!1,i=N.cacheHas,u=new N.SetCache}else u=t?[]:s;e:for(;++n<a;){var d=e[n],h=t?t(d):d;if(d=d!==0?d:0,o&&h===h){for(var p=u.length;p--;)if(u[p]===h)continue e;t&&u.push(h),s.push(d)}else i(u,h,r)||(u!==s&&u.push(h),s.push(d))}return s}var Kie=N.baseRest(function(e){return tb(N.baseFlatten(e,1,N.isArrayLikeObject,!0))});const pA=(e,t,r,n={})=>{if(w.emptyTable(e))return{rows:[],columns:[]};const i=Kie(w.getColumnsByName(e,t.map(d=>d.name))),a=e,s=[...r.map(d=>{var h,p;return{column:(h=n[d.name])!=null?h:d.name,title:d.name,agg:(p=d.aggregation)!=null?p:"sum"}}),{column:w.rownumColumnName,title:w.rownumColumnName,agg:"min"}],u=w.groupBy(a,i,s),c=w.getColumnByName(u,w.rownumColumnName);if(!c)throw new N.TranslatableError("errors.noRowNumColumn",{columnName:w.rownumColumnName});return w.orderBy(u,[c])};function Zie({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),!PA(c)))throw new N.TranslatableError("errors.incorrectOnDataReadyHandler");const d=c||t;let h=w.createDataTableFromData(d);return ta(e)||(h=pA(h,a,o,s)),Qie(n,r,h,i)},[t,n,i])}function Qie(e,t,r,n=!1){if(Wu(e)&&!n){const i=ju(e);if(i.dataOptions.isCorrectDataOptionsInternal(t))return i.data.getChartData(t,r);throw new Error("Incorrect internal data options for restructured chart")}return Gie(e,t,r)}function Jie(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:ta(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 rb=()=>{const[e,t]=k.useState();if(e)throw e;return t};function Cg(e,t,r=Fu(),n=$u){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(w.isMeasureColumn(o)||!o.dateFormat||!(e!=null&&e.columns))return;const s=e.columns.findIndex(function(c){return c.name===o.column.name&&N.isDatetime(o.column.type)&&N.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 d=i.get(c);if(!d||u===w.NOT_AVAILABLE_DATA_VALUE)return u;let h,p;if(w.isCell(u)){if(u.data===w.NOT_AVAILABLE_DATA_VALUE)return u;h=M({},u)}else{const v=w.createCompareValue(`${u}`,"datetime");p=new Date(v.value),h={data:p.toISOString(),text:`${u}`}}if(!h.data)return u;let m=h.text;try{m=Bu(h.data,d,r,n)}catch(v){console.error(v)}return h.text=m,h})})),e}const nb=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},mA=(e,t)=>{if(t==="funnel"){const r=w.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},gA=(e,t,r,n,i,a)=>{if(!e)return!0;if(t.length+r.length===0)throw new N.TranslatableError("errors.dataOptions.noDimensionsAndMeasures");return t.forEach(o=>{if(e.columns.findIndex(u=>u.name===o.name)===-1)throw new N.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 N.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 N.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 N.TranslatableError("errors.dataOptions.highlightAttributeNotFound",{attributeName:o.attribute.name})}),!0};function vA(e,t){switch(e){case"pie":case"funnel":case"treemap":return Kre(e,t);default:return t}}const eae=e=>e==="funnel"?e:w.deriveChartFamily(e),tae=({dataSet:e,chartDataOptions:t,chartType:r,attributes:n,measures:i,dataColumnNamesMapping:a,filters:o,highlights:s,refreshCounter:u,enabled:c=!0,loadData:d})=>{const h=rb(),[p,m]=k.useState(!1),v=k.useMemo(()=>eae(r),[r]),g=k.useMemo(()=>[void 0,t],[t]),[b,C]=k.useState({}),{app:x}=_t();k.useEffect(()=>{if(!c)return;let A=!1;const{filters:R,relations:D}=N.getFilterListAndRelationsJaql(o);if(ta(e)){if(!x)return;m(!0),d({app:x,chartDataOptionsInternal:t,queryDescription:{dataSource:e,dimensions:n,measures:i,filters:R,filterRelations:D,highlights:s,count:x.settings.queryLimit}}).then(H=>{const G=Cg(H,t,x==null?void 0:x.settings.locale,x==null?void 0:x.settings.dateConfig);A||C({[v]:[G,t]})}).catch(H=>{h(H)}).finally(()=>{m(!1)})}else{gA(e,n,i,a,R,s);const I=Cg(e,t,x==null?void 0:x.settings.locale,x==null?void 0:x.settings.dateConfig);C({[v]:[I,t]})}return()=>{A=!0}},[r,t,e,o,s,x,u,c]);const[E,T]=b[v]||g;return{isLoading:p,data:E,dataOptions:T}};function yA(e,t){{const r=vA(t,e),n=J3(t,r),i=mA(n,t),a=Bne(i,t),o=Hne(i,t);return{dataOptions:i,attributes:a,measures:o}}}const rae=(e,t,r)=>k.useMemo(()=>bA(e,t,{isForecastOrTrendChart:r,shouldHaveUniqueDataColumnNames:!0}),[e,t,r]);function bA(e,t,r){if(Wu(t)&&!(r!=null&&r.isForecastOrTrendChart)){const n=ju(t);if(!n.dataOptions.isCorrectDataOptions(e))throw new Error("Incorrect data options");return nae(n,e,r)}else return iae(e,t,r)}function nae(e,t,r){const n=e.dataOptions.translateDataOptionsToInternal(t),i=e.dataOptions.getAttributes(n),a=e.dataOptions.getMeasures(n),o=r!=null&&r.shouldHaveUniqueDataColumnNames?nb(a):{};return{dataOptions:n,attributes:i,measures:a,dataColumnNamesMapping:o}}function iae(e,t,r){const{dataOptions:n,attributes:i,measures:a}=yA(e,t),o=r!=null&&r.shouldHaveUniqueDataColumnNames?nb(a):{};return{dataOptions:n,attributes:i,measures:a,dataColumnNamesMapping:o}}const D2={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"}]},aae={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}]},oae={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"]},sae={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 lae(e,t){const r=N.cloneDeep(sae);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 Uu{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 Lt=new Uu,So=function(e,t){return Lt.floor(e*t.value,t.decimals)};function uae(e,t){const r={};return e.forEach(n=>{t.some(function(i){return i.key===n?(r[n]=i,!0):!1})}),r}function cae(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,d=So(c,e.valueSectionHeight),h=So(c,e.indicatorMargin),p=Math.ceil(h*1.5);let m=c+d+p;if(a){const v=So(c,e.titleSectionHeight);m+=v}if(o){const v=So(c,e.secSectionHeight);m+=v}if(m<=i){const v=So(c,e.gaugeWidth),g=So(c,e.bracketWidth),b=h*2;if(v+g*2+b<=n)return B(M({},u),{maxWidth:n-b,maxHeight:i-p})}}return null}class dae{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),d=uae(s,o);return cae(d,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,Lt.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=Lt.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=Lt.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=Lt.getFitStringMeasure(t,r.secondary.text,o,n.secondaryValueFont),u=a-s.width,c=Lt.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 d;return s=c?u:s,c?d=s.titleString!==t.secondaryTitle.text||s.valueString!==t.secondary.text:d=s.string!==t[s.key].text,d?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=Lt.degToRad(n.startAngle+180),u=Lt.degToRad(n.endAngle+180);let c;const d=h=>this.getAngle(n,h,a,o);for(this.drawArc(t,n,s,u,n.defaultDialColor),c=i.length-1;c>=0;c--){const h=i[c];let p=+h.data,m,v=NaN,g=NaN,b=NaN,C=NaN;const x=.25;switch(h.operator){case"<":if(p<=a)break;p=p>o?o:p,m=d(p),v=s,g=Lt.degToRad(m+180);break;case">":if(p>=o)break;p=p<a?a:p,m=d(p),v=Lt.degToRad(m+180),g=u;break;case"≤":if(p<a)break;p=p>o?o:p,m=d(p),v=s,g=Lt.degToRad(m+(m+x<=n.endAngle?x:0)+180);break;case"≥":if(p>o)break;p=p<a?a:p,m=d(p),v=Lt.degToRad(m-(m-x>=n.startAngle?x:0)+180),g=u;break;case"=":if(p<a||p>o)break;m=d(p),v=Lt.degToRad(m-(m-x>=n.startAngle?x:0)+180),g=Lt.degToRad(m+(m+x<=n.endAngle?x:0)+180);break;case"≠":if(p<a||p>o)v=s,g=u;else if(p===a||p===o){const E=p===a;v=Lt.degToRad(n.startAngle+(E?x:0)+180),g=Lt.degToRad(n.endAngle-(E?0:x)+180)}else m=d(p),v=s,g=Lt.degToRad(m-(m-x>=n.startAngle?x:0)+180),b=Lt.degToRad(m+(m+x<=n.endAngle?x:0)+180),C=u}!isNaN(v)&&!isNaN(g)&&this.drawArc(t,n,v,g,h.color),!isNaN(b)&&!isNaN(C)&&this.drawArc(t,n,b,C,h.color)}}drawSimpleDial(t,r,n){const i=Lt.degToRad(n.startAngle+180),a=Lt.degToRad(n.needleAngle+180),o=Lt.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=Lt.degToRad(u),d=n.gaugeCenterX-n.lengthToTick*Math.cos(c),h=n.gaugeCenterY-n.lengthToTick*Math.sin(c),p=s<i,m=s>=u-o/2&&s<u+o/2,v=u===a&&s>=u;t.fillStyle=!p&&m||v?r.color:n.tickColor,t.beginPath(),t.arc(d,h,n.tickRadius,0,2*Math.PI),t.fill()}}drawNeedle(t,r){const n=Lt.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 ko=new Uu,qc=function(e,t){return ko.floor(e*t.value,t.decimals)};function hae(e,t){const r={};return e.forEach(n=>{t.some(function(i){return i.key===n?(r[n]=i,!0):!1})}),r}function fae(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],d=c.value,h=qc(d,e.indicatorMargin);let p=d+h;if(n){const m=qc(d,e.titleSectionHeight);p+=m}if(i){const m=qc(d,e.secSectionHeight);p+=m}if(p<=a){const m=qc(d,e.numericMinWidth),v=h*2;if(m+s*2+v<=o)return B(M({},c),{maxWidth:o-v,maxHeight:a-h})}}return null}class pae{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),d=hae(s,o);return fae(d,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,ko.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=ko.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=ko.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=ko.getFitStringMeasure(t,r.secondary.text,o,n.secondaryValueFont),u=a-s.width,c=ko.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 d;return s=c?u:s,c?d=s.titleString!==t.secondaryTitle.text||s.valueString!==t.secondary.text:d=s.string!==t[s.key].text,d?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 Do=new Uu,ya=function(e,t){return Do.floor(e*t.value,t.decimals)};function mae(e,t){const r={};return e.forEach(n=>{t.some(function(i){return i.key===n?(r[n]=i,!0):!1})}),r}function gae(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 d=t[c],h=d.value,p=ya(h,e.valueSectionMarginBottom),v=ya(h,e.indicatorVerticalMargin)*2;let g=h+p+v;if(n&&a==="vertical"){const b=ya(h,e.titleSectionHeight);g+=b}if(i){const b=ya(h,e.secSectionHeight),C=ya(h,e.secSectionMarginTop);g+=b+C+(u||0)}if(g<=o){const b=ya(h,e.numericMinWidth),x=ya(h,e.indicatorHorizontalMargin)*2;if(b+x<=s)return B(M({},d),{maxWidth:s-x,maxHeight:o-v})}}return null}class vae{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),d=mae(s,o);return gae(d,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,Do.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=Do.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=Do.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=Do.getFitStringMeasure(t,r.secondary.text,o,n.secondaryValueFont),u=a-s.width,c=Do.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],d=t[u.dataKey];return!!(c&&d&&c[u.prop]!==d.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 Wn=new Uu;class yae{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,d=0,h=0,p=0,m=0,v=0,g=0,b;if(a.font=n.valueFont,b=Wn.getStringWidth(a,r.value.text),n.offsetX=0,r.title.text+=":",r.secondaryTitle&&(r.secondaryTitle.text+=":"),r.showTitle&&(a.font=n.titleFont,m=Wn.getStringWidth(a,r.value.text),p=Wn.getStringWidth(a,r.title.text),c=p<s?p:s,b+=c+n.textPadding),r.showSecondary&&(a.font=n.secondaryValueFont,g=Wn.getStringWidth(a,r.secondary.text),h=g<s?g:s,b+=h,a.font=n.secondaryTitleFont||"",v=Wn.getStringWidth(a,r.secondaryTitle.text),d=v<s?v:s,b+=d+n.horizontalPadding*2+n.dividerWidth+n.textPadding),r.type==="gauge"){const x=n.horizontalPadding*2+n.dividerWidth;if(n.forceTickerView){const T=m+p+v+g+n.textPadding*4+x,A=o-x-T;n.barWidth=Math.max(A,n.barWidth)}const E=n.barWidth+x;b+=E,n.showTickerBar=b<=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-d-h;if(n.fitValueMeasure=Wn.getFitStringMeasure(a,r.value.text,C,n.valueFont),u+=n.fitValueMeasure.width,r.showSecondary){const x=o-u-c-d;let E;n.fitSecValueMeasure=Wn.getFitStringMeasure(a,r.secondary.text,x,n.secondaryValueFont),u+=n.fitSecValueMeasure.width;const T=o-u,A=T/2;r.showTitle?p+v>T?p>A&&v>A?E=A:v>A&&p<=A?E=T-p:E=v:E=v:E=T,n.fitSecTitleMeasure=Wn.getFitStringMeasure(a,r.secondaryTitle.text,E,n.secondaryTitleFont),u+=n.fitSecTitleMeasure.width}if(r.showTitle){const x=o-u;n.fitTitleMeasure=Wn.getFitStringMeasure(a,r.title.text,x,n.titleFont),u+=n.fitTitleMeasure.width}n.width=u,Wn.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 d=(o-Math.abs(i))/(a-i),h=n.barWidth*d;t.fillRect(n.offsetX,s,h,n.barHeight),t.globalAlpha=n.barOpacity,t.fillRect(n.offsetX+h,s,n.barWidth-h,n.barHeight),h>n.barWidth-n.tickerBarWidth?u=n.barWidth-n.tickerBarWidth:h<n.tickerBarWidth?u=0:u=h-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 bae=new Uu,_ae=new vae,wae=new pae,Cae=new dae,xae=new yae;class Tae{getService(t){switch(t){case"numericSimple":return _ae;case"numericBar":return wae;case"gauge":return Cae;case"ticker":return xae}}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=lae(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 N.TranslatableError("errors.indicatorInvalidRelativeSize");const s=o*n;r[a.key]=bae.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:d}=i;t[`${n}Font`]=a+o+s+u+c,t[`${n}Color`]=d})}}function _A(e){var r;const t=(r=e.value)==null?void 0:r[0];if(t&&"color"in t)return t.color}function Sae(e,t,r){if(!Eae(e))return r;const i=w.getColoringServiceByColorOptions(e).getColor(t);return i?B(M({},r),{value:B(M({},r.value),{color:i})}):r}function Eae(e){return typeof e=="string"||e.type==="uniform"||e.type==="conditional"}const Mae=(e,t)=>{const r=_A(t);return r&&e.value?w.getColoringServiceByColorOptions(r).getColor(w.isNumber(e.value)?e.value:0):null},Aae=(e,t,r)=>{var h,p,m,v,g,b,C,x,E,T,A,R;const n=w.isNumber(e.min)?e.min:0,i=w.isNumber(e.max)?e.max:100,a=Yc(r,"value"),o=Yc(r,"secondary"),s=Yc(r,"min"),u=Yc(r,"max"),c=Mae(e,r),d=t.indicatorType==="gauge"?1:"vertical";return B(M(M({},Rae),c?{color:c}:null),{type:Pae(t.indicatorType,"numericSubtype"in t?t.numericSubtype:void 0)||"numericSimple",skin:t.skin||d,title:{text:(m=(p=(h=t.indicatorComponents)==null?void 0:h.title)==null?void 0:p.text)!=null?m:""},min:{data:n,text:w.applyFormatPlainText(s,n)},max:{data:i,text:w.applyFormatPlainText(u,i)},value:{data:e.value,text:N2(e.value,a)},secondary:{data:e.secondary,text:N2(e.secondary,o)},secondaryTitle:{text:(b=(g=(v=t.indicatorComponents)==null?void 0:v.secondaryTitle)==null?void 0:g.text)!=null?b:""},showSecondary:e.secondary!==void 0,showTitle:!!((x=(C=t.indicatorComponents)==null?void 0:C.title)!=null&&x.shouldBeShown),showLabels:!!((T=(E=t.indicatorComponents)==null?void 0:E.labels)!=null&&T.shouldBeShown),showTicks:!!((R=(A=t.indicatorComponents)==null?void 0:A.ticks)!=null&&R.shouldBeShown)})};function Pae(e,t){return e==="numeric"?t:e}function Yc(e,t){var n;const r=(n=e[t])==null?void 0:n[0];return w.getCompleteNumberFormatConfig(r&&"numberFormatConfig"in r?r.numberFormatConfig:{})}const Rae={color:"#00cee6",showSecondary:!1};function N2(e,t){return e===void 0?"":isNaN(e)?`#${w.NOT_AVAILABLE_TEXT}`:w.applyFormatPlainText(t,e)}const Oae={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 xg(e,t,r){const n=N.cloneDeep(r);for(const i in t){const a=t[i],o=kae(e,a);o&&wA(n,i,o)}return n}function wA(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(!CA(o))return;wA(o,a.join("."),r)}}function kae(e,t){const r=t.split(".");let n=e;for(const i of r){if(!CA(n)||!(i in n))return;n=n[i]}return n}function CA(e){return typeof e=="object"&&e!==null}function Dae(e,t,r){return xg(e,t,r)}const Nae=(e,t)=>{const{chartData:r,dataOptions:n,themeSettings:i}=t,{type:a}=e;let o;switch(a){case"gauge":o=oae;break;case"numeric":e.numericSubtype==="numericBar"?o=aae:o=D2;break;default:o=D2}i&&(o=Dae(i,Oae,o));const s=_A(n);return s&&r.value&&w.isNumber(r.value)&&(o=Sae(s,r.value,o)),M(B(M({},o),{forceTickerView:e.forceTickerView}),e.type==="gauge"&&e.tickerBarHeight?{tickerBarHeight:e.tickerBarHeight}:null)};function Iae(e,t,r){return e==null?e:OS(e,t,r)}const xA={"value.data":"value.data","value.text":"value.text","secondary.data":"secondary.data","secondary.text":"secondary.text","title.text":"title.text","secondaryTitle.text":"secondaryTitle.text"},TA={"value.color":"value.color","secondaryValue.color":"secondary.color","secondaryValue.fontWeight":"secondary.fontWeight","title.color":"title.color","secondaryTitle.color":"secondaryTitle.color"};function Lae(e,t){const r={};return w.flow(I2(e,xA),I2(t,TA))(r)}function I2(e,t){return r=>{const n=M({},r);for(const[i,a]of Object.entries(t))Iae(n,a,N.get(e,i));return n}}const Fae=(e,t,r)=>{const n=xg(e,xA,t),i=xg(e,TA,r);return{legacyDataOptions:n,legacyChartOptions:i}},$ae=e=>e,Bae=(e,t)=>{var i;const r={},n=(a,o)=>{if(a===void 0)return;const s=w.getCompleteNumberFormatConfig(o);return w.applyFormatPlainText(s,a)};return t.value&&t.value.length>0&&(r.value=B(M({},Je(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=B(M({},Je(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=B(M({},Je(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=B(M({},Je(t.max[0])),{value:e.max,displayValue:n(e.max,t.max[0])})),{entries:r}},Hae=({chartData:e,dataOptions:t,designOptions:r,onBeforeRender:n=$ae,onDataPointClick:i})=>{var d;const a=k.useRef(null),o=k.useRef(null),{t:s}=w.useTranslation(),{themeSettings:u}=mt();k.useEffect(()=>{if(!o.current||!a.current)return;const h=new Tae,p=Aae(e,r,t),m=Nae({type:r.indicatorType,numericSubtype:"numericSubtype"in r?r.numericSubtype:void 0,forceTickerView:r.forceTickerView,tickerBarHeight:r.tickerBarHeight},{chartData:e,dataOptions:t,themeSettings:u}),v=Lae(p,m),g=n(v),{legacyDataOptions:b,legacyChartOptions:C}=Fae(g,p,m);h.render(o.current,b,C,a.current)},[e,t,r,u,n]);const c=h=>{if(i){const p=Bae(e,t);i(p,h.nativeEvent)}};return w.jsx("div",{ref:a,"data-testid":"indicator-root",role:"img","aria-label":s("chart.indicator.label"),style:{display:"flex",justifyContent:"center",width:"100%",height:"100%",alignItems:"center",backgroundColor:(d=u==null?void 0:u.chart)==null?void 0:d.backgroundColor,cursor:i?"pointer":"default"},onClick:c,children:w.jsx("canvas",{ref:o})})},zae=e=>e.type==="indicator",jae=e=>"min"in e,Wae=e=>"indicatorComponents"in e,Uae=e=>!!e.chartData&&zae(e.chartData)&&jae(e.dataOptions)&&Wae(e.designOptions),Vae=Object.freeze({usa:"united states",switzerland:"switzerland country",uk:"united kingdom"});function Gae(e,t){const r=Vae[e.toLowerCase()];return r&&(t[r]=e),r||e}function qae(e,t){return t[e.toLowerCase()]||e}const Yae=(e,t)=>{const{app:r}=_t(),[n,i]=k.useState([]),a=k.useRef(e),o=k.useCallback(()=>Vt(exports,null,function*(){if(!r||!e)return;const s={},u=zie(t),c=yield r.httpClient.post("api/v1/geo/locations",M({locations:e.map(v=>({name:Gae(v.name,s)}))},u&&{geoLevel:u})),d=a.current!==e;if(!c||d)return;const h=c.reduce((v,g)=>{const b=B(M({},g),{name:qae(g.name,s)});return v[b.name]=b,v},{}),p=[],m=e.map(v=>(h[v.name]||p.push(v.name),M(M({},v),h[v.name]?{coordinates:h[v.name].latLng}:null)));p.length&&console.warn(`Locations "${p.join(", ")}" coordinates not found`),i(m)}),[r,i,e,t]);return k.useEffect(()=>{e&&(a.current=e,e.some(u=>!!u.coordinates)?i(e):o())},[e,r,o,i]),n},Xae=()=>{const{app:e}=_t(),[t,r]=k.useState(null),n=k.useCallback(()=>Vt(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 Kae="Expected a function";function Zae(e,t,r){if(typeof e!="function")throw new TypeError(Kae);return setTimeout(function(){e.apply(void 0,r)},t)}var Qae=N.baseRest(function(e,t,r){return Zae(e,w.toNumber(t)||0,r)}),yd=(e=>(e[e.YES=0]="YES",e[e.NO=1]="NO",e[e.LOADING=2]="LOADING",e))(yd||{});const wm=10,Jae=`
298
+ <svg
299
+ xmlns="http://www.w3.org/2000/svg"
300
+ width="24"
301
+ height="24"
302
+ viewBox="0 0 24 24"
303
+ fill="green"
304
+ class="csdk-animate-spin"
305
+ >
306
+ <path
307
+ fillRule="evenodd"
308
+ clipRule="evenodd"
309
+ 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"
310
+ fill="transparent"
311
+ fillOpacity="0.3"
312
+ />
313
+ <path
314
+ fillRule="evenodd"
315
+ clipRule="evenodd"
316
+ 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"
317
+ fill="#22C3C3"
318
+ />
319
+ </svg>
320
+ `,_i=e=>`<span class="csdk-scattermap-tooltip-label">${e}</span>`,eoe=e=>{const t=`
321
+ <div>
322
+ <div>${_i("...")}</div>
323
+ <div>${_i(`Showing first ${wm} results`)}</div>
324
+ </div>
325
+ `;return`
326
+ <div>
327
+ ${e.slice(0,wm).map(r=>`<div>${_i(r)}</div>`).join("")}
328
+ ${e.length>wm?t:""}
329
+ </div>
330
+ `},Cm=e=>`
331
+ <span class="csdk-scattermap-tooltip-category">
332
+ ${_i(e)}
333
+ </span>
334
+ `,toe=()=>_i(Jae),Xc=(e,t,r=1)=>{const n=w.formatTooltipValue(t.size,e.value,`${e.value}`),i=w.formatTooltipValue(t.colorBy,e.colorValue,`${e.colorValue}`),a=t.details&&w.formatTooltipValue(t.details,e.details,`${e.details}`);return`
335
+ <div class="csdk-scattermap-tooltip-container">
336
+ <div class="csdk-scattermap-tooltip-content">
337
+ <div>${_i(e.name)}</div>
338
+ <div class="csdk-scattermap-tooltip-row">
339
+ ${t.size?Cm(w.getDataOptionTitle(t.size)):""}
340
+ ${t.size?_i(n):""}
341
+ </div>
342
+ <div class="csdk-scattermap-tooltip-row">
343
+ ${t.colorBy?Cm(w.getDataOptionTitle(t.colorBy)):""}
344
+ ${t.colorBy?_i(i||w.NOT_AVAILABLE_TEXT):""}
345
+ </div>
346
+ <div class="csdk-scattermap-tooltip-row">
347
+ ${(r===2||r===0)&&t.details?Cm(w.getDataOptionTitle(t.details)):""}
348
+ ${r===2?toe():""}
349
+ ${r===0&&t.details&&w.isMeasureColumn(t.details)?_i(a||w.NOT_AVAILABLE_TEXT):""}
350
+ </div>
351
+ <div>
352
+ ${r===0&&t.details&&!w.isMeasureColumn(t.details)?eoe(e.details):""}
353
+ </div>
354
+ </div>
355
+ </div>
356
+ `},roe=600,noe=11,ioe=({dataOptions:e,dataSource:t,filters:r=[]})=>{const{app:n}=_t(),i=k.useCallback(o=>Vt(exports,null,function*(){if(!n||!e.details||w.isMeasureColumn(e.details))return[];const s=e.locations.map((d,h)=>{const p=w.translateColumnToAttribute(d),m=Hie(o)[h];return N.members(p,[m])}),u={dataSource:t,dimensions:[w.translateColumnToAttribute(e.details)],filters:N.mergeFilters(r,s),count:noe};return(yield N.executeQuery(u,n)).rows.map(([d])=>d.text)}),[n,e,t,r]);return k.useCallback(o=>{if(!e.details||e.details&&!w.isMeasureColumn(e.details)&&!t)return{content:Xc(o,e)};if(w.isMeasureColumn(e.details))return{content:Xc(o,e,yd.YES)};const s=new Promise(c=>Qae(c,roe)),u=Promise.all([i(o.name),s]).then(([c])=>Xc(B(M({},o),{details:c}),e,yd.YES));return{content:Xc(o,e,yd.LOADING),postponedContent:u}},[e,t,i])},aoe="#00cee6",ooe=w.createDataColoringFunction({getValueFromDataStructure:({colorValue:e})=>parseFloat(`${e}`),applyColorToDataStructure:(e,t)=>B(M({},e),{color:t})});function soe(e,t){return t?ooe(e.map(({colorValue:r})=>({colorValue:r})),t).map(({color:r})=>r):e.map(()=>aoe)}function loe(e,t){const r=`
357
+ © <a href='https://www.mapbox.com/about/maps/'>Mapbox</a>
358
+ © <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>
359
+ <strong>
360
+ <a href='https://www.mapbox.com/map-feedback/' target='_blank' aria-label='Improve this map (opens in a new tab)'>
361
+ Improve this map
362
+ </a>
363
+ </strong>`,n="© <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>",i=wi.control.attribution();return t.indexOf("mapbox")>-1?i.addAttribution(r).addTo(e):t.indexOf("openstreetmap")>-1&&i.addAttribution(n).addTo(e),i}function SA(e){return{isLight:["hollow","filled-light"].includes(e),isFilled:["filled","filled-light"].includes(e)}}function EA(e){const{color:t,size:r,fill:n,blur:i}=e,{isFilled:a}=SA(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 uoe({coordinates:e,style:t}){const r=new wi.CircleMarker({lat:e.lat,lng:e.lng},EA(t));return r.on("mouseover",coe),r.on("mouseout",doe),r}function coe(e){const t=e.target,r=t.options.customStyle,{isFilled:n,isLight:i}=SA(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 doe(e){const t=e.target,r=t.options.customStyle;t.setStyle(EA(r))}function hoe(e){e.forEach(t=>t.remove())}function foe(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 poe(e,t=4,r=24){let n=0;const{min:i,max:a}=foe(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 moe=({chartData:e,dataOptions:t,dataSource:r,filters:n=[],designOptions:i,onDataPointClick:a})=>{const{locations:o}=e,s=Xae(),{themeSettings:u}=mt(),c=Yae(o,t.locationLevel),{filters:d}=N.getFilterListAndRelationsJaql(n),h=ioe({dataOptions:t,dataSource:r,filters:d}),p=k.useRef(null),m=k.useRef(null),v=k.useMemo(()=>poe(c,t.size?i.markers.size.minSize:i.markers.size.defaultSize,t.size?i.markers.size.maxSize:i.markers.size.defaultSize),[c,t,i]),g=k.useMemo(()=>{var T;return soe(c,(T=t.colorBy)==null?void 0:T.color)},[c,t]),b=k.useRef([]),C=k.useRef(wi.layerGroup([])),x=k.useRef(null),E=k.useRef(null);return k.useEffect(()=>{p.current&&!m.current&&(m.current=wi.map(p.current,{attributionControl:!1,scrollWheelZoom:!0,minZoom:1,worldCopyJump:!0}),C.current.addTo(m.current),m.current.fitWorld())},[]),k.useEffect(()=>{b.current&&(hoe(b.current),b.current=[]),c&&(c.forEach((T,A)=>{if(!T.coordinates)return;const R=uoe({coordinates:T.coordinates,style:{color:g[A],size:v[A],fill:i.markers.fill,blur:!!T.blur}});b.current.push(R),R.addTo(C.current),a&&R.on("click",D=>{a(jie(T,t),D.originalEvent)}),R.bindTooltip(()=>{const{content:D,postponedContent:I}=h(T);return I==null||I.then(H=>R.setTooltipContent(H)),D})}),Nj(m.current,b.current,AM(u)))},[c,g,v,i,u,t,h,a]),k.useEffect(()=>{var T;s&&(x.current&&x.current.remove(),x.current=wi.tileLayer(s.maps_api_provider,{zoomOffset:-1,tileSize:512}),m.current&&(x.current.addTo(m.current),(T=E.current)==null||T.remove(),E.current=loe(m.current,s.maps_api_provider)))},[s]),w.jsx("div",{className:"csdk-map-container",ref:p,style:{width:"100%",height:"100%"}})},MA=e=>e.type==="scattermap"&&"locations"in e,goe=e=>"locations"in e,voe=e=>"markers"in e,yoe=e=>!!e.chartData&&MA(e.chartData)&&goe(e.dataOptions)&&voe(e.designOptions),boe=e=>e,_oe=({chartType:e,chartData:t,dataOptions:r,designOptions:n,onDataPointClick:i,onDataPointContextMenu:a,onDataPointsSelected:o,onBeforeRender:s=boe,size:u})=>{const{app:c}=_t(),{t:d}=w.useTranslation(),h=[],p=k.useCallback((b,C)=>Bu(b,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:m}=mt(),v=k.useMemo(()=>{var R;const{options:b,alerts:C}=w.highchartsOptionsService(t,e,n,r,d,m,p);h.push(...C);const x=((R=c==null?void 0:c.settings.accessibilityConfig)==null?void 0:R.enabled)||!1,E=y3(b,m,x),T=v3(E,r,{onDataPointClick:i,onDataPointContextMenu:a,onDataPointsSelected:o}),A=b3(T,m);return s(A)},[e,t,r,n,m,i,a,s,d]),g=k.useMemo(()=>v?B(M({},v),{chart:M(M(M({},v.chart),(u==null?void 0:u.width)&&{width:u.width}),(u==null?void 0:u.height)&&{height:u.height})}):null,[v,u]);return g&&w.jsxs("div",{"data-testid":"chart-root",role:"img","aria-label":d("chart.visualization.label"),style:{display:"flex",justifyContent:"center",height:"100%",width:"100%"},children:[!!h.length&&w.jsx(L3,{alerts:h}),w.jsx(Uy,{options:g})]})},woe=[...N.CARTESIAN_CHART_TYPES,...N.CATEGORICAL_CHART_TYPES,...N.SCATTER_CHART_TYPES,...N.BOXPLOT_CHART_TYPES,...N.RANGE_CHART_TYPES],AA=e=>woe.includes(e),Coe=e=>!!e.chartType&&AA(e.chartType)&&!!e.chartData,xoe=e=>e==="indicator",Toe=(e,t)=>e==="scatter"&&"scatterDataTable"in t?t.scatterDataTable.length===0:e==="areamap"&&n3(t)?t.geoData.length===0:e==="scattermap"&&MA(t)?t.locations.length===0:e==="boxplot"&&XL(t)?t.xValues.length===0:e==="calendar-heatmap"&&l3(t)?t.values.length===0:"series"in t&&t.series.length===0,bd=e=>{const{chartType:t,dataSet:r,dataOptions:n,filters:i,highlights:a,styleOptions:o,refreshCounter:s,onDataPointClick:u,onDataPointContextMenu:c,onDataPointsSelected:d,onBeforeRender:h,onDataReady:p}=e,{width:m,height:v}=o||{},g=Ih(t),b=k.useMemo(()=>({width:m,height:v}),[m,v]),C=eie(n,t),{dataOptions:x,attributes:E,measures:T,dataColumnNamesMapping:A}=rae(n,t,C),R=E.length===0&&T.length===0,D=k.useMemo(()=>cie(t,C),[t,C]),{data:I,dataOptions:H,isLoading:G}=tae({dataSet:r,chartDataOptions:x,chartType:t,attributes:E,measures:T,dataColumnNamesMapping:A,filters:i,highlights:a,refreshCounter:s,enabled:!R,loadData:D}),q=k.useMemo(()=>n?nie(t,H,o):null,[n,t,H,o]),O=Zie({dataSet:r,data:I,chartDataOptions:x,chartType:t,isForecastOrTrendChart:C,attributes:E,measures:T,dataColumnNamesMapping:A,onDataReady:p}),$=Jie({dataSet:r,chartType:t,chartData:O,internalDataOptions:H,designOptions:q,onBeforeRender:h,onDataPointClick:u,onDataPointContextMenu:c,onDataPointsSelected:d,filters:i}),X=k.useCallback(j=>{if(!$)return null;if(!O&&G)return w.jsx(Wi,{});if(O&&Toe(t,O)||R)return w.jsx(sy,{iconType:t});if(Wu(t)&&!C){const z=ju(t);return z.renderer.isCorrectRendererProps($)?w.jsx(Wi,{isVisible:G,children:w.jsx(z.renderer.ChartRendererComponent,B(M({},$),{size:j}))}):null}return t==="scattermap"&&yoe($)?w.jsx(Wi,{isVisible:G,children:w.jsx(moe,M({},$))}):t==="indicator"&&Uae($)?w.jsx(Wi,{isVisible:G,children:w.jsx(Hae,M({},$))}):AA(t)&&Coe($)?w.jsx(Wi,{isVisible:G,children:w.jsx(_oe,B(M({},$),{designOptions:M({},$.designOptions),size:j}))}):null},[O,G,t,R,C,$]);return $?w.jsx(Nh,{defaultSize:g,size:b,rerenderOnResize:xoe(t),children:X}):null};function PA(e){return e&&typeof e=="object"&&"columns"in e&&N.isArray(e.columns)&&"rows"in e&&N.isArray(e.rows)}const ib=e=>{const t=[],r=[];for(const n of e.columns)w.isMeasureColumn(n)?r.push(w.translateColumnToMeasure(n)):t.push(w.translateColumnToAttribute(n));return{attributes:t,measures:r}},Soe=({dataSet:e,dataOptions:t,filters:r,filterRelations:n,count:i,offset:a})=>{const o=rb(),[s,u]=k.useState(ta(e)?null:e),[c,d]=k.useState(!1),h=k.useRef(!0),{isInitialized:p,app:m}=_t(),[v,g]=k.useState(t);return k.useEffect(()=>{var E;let b=!1;if(!t)return;const{attributes:C,measures:x}=ib(t);if(ta(e)){if(!p){o(new N.TranslatableError("errors.chartNoSisenseContext"));return}if(!m||!h.current&&a>0)return;d(!0),((E=m.settings.queryCacheConfig)!=null&&E.enabled?N.executeQueryWithCache:N.executeQuery)({dataSource:e,dimensions:C,measures:x,filters:r,filterRelations:n,count:i+1,offset:a,ungroup:!0},m).then(A=>{if(b)return;h.current=A.rows.length>i;const R=h.current?A.rows.slice(0,i):A.rows;a>0?u(D=>{const I=D==null?void 0:D.rows.length,H=I?I>a?D.rows.slice(0,a):D.rows:null;return{columns:A.columns,rows:H?[...H,...R]:R}}):u({columns:A.columns,rows:R}),g(t)}).finally(()=>{d(!1)}).catch(A=>{b||o(A)})}else u(e),g(t);return()=>{b=!0}},[m,e,t,r,n,a,i,p,o]),[c?null:s,v]},Eoe=({data:e,innerDataOptions:t,dataColumnNamesMapping:r,needToAggregate:n=!1})=>{const{app:i}=_t();return k.useMemo(()=>{if(!e||!t)return null;let a=w.createDataTableFromData(Cg(e,t,i==null?void 0:i.settings.locale,i==null?void 0:i.settings.dateConfig));const o=t.columns.filter(u=>!w.isMeasureColumn(u)).map(w.translateColumnToAttribute),s=t.columns.filter(u=>w.isMeasureColumn(u)).map(w.translateColumnToMeasure);return gA(a,o,s,r),n&&(a=pA(a,o,s,r)),Ane(t,a)},[e,t,n,r,i])};var zr="top",yn="bottom",bn="right",jr="left",ab="auto",Vu=[zr,yn,bn,jr],ts="start",su="end",Moe="clippingParents",RA="viewport",sl="popper",Aoe="reference",L2=Vu.reduce(function(e,t){return e.concat([t+"-"+ts,t+"-"+su])},[]),OA=[].concat(Vu,[ab]).reduce(function(e,t){return e.concat([t,t+"-"+ts,t+"-"+su])},[]),Poe="beforeRead",Roe="read",Ooe="afterRead",koe="beforeMain",Doe="main",Noe="afterMain",Ioe="beforeWrite",Loe="write",Foe="afterWrite",$oe=[Poe,Roe,Ooe,koe,Doe,Noe,Ioe,Loe,Foe];function ii(e){return e?(e.nodeName||"").toLowerCase():null}function en(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $a(e){var t=en(e).Element;return e instanceof t||e instanceof Element}function gn(e){var t=en(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ob(e){if(typeof ShadowRoot=="undefined")return!1;var t=en(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Boe(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];!gn(a)||!ii(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 Hoe(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},{});!gn(i)||!ii(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(u){i.removeAttribute(u)}))})}}const zoe={name:"applyStyles",enabled:!0,phase:"write",fn:Boe,effect:Hoe,requires:["computeStyles"]};function Jn(e){return e.split("-")[0]}var Pa=Math.max,Qd=Math.min,rs=Math.round;function Tg(){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 kA(){return!/^((?!chrome|android).)*safari/i.test(Tg())}function ns(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&gn(e)&&(i=e.offsetWidth>0&&rs(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&rs(n.height)/e.offsetHeight||1);var o=$a(e)?en(e):window,s=o.visualViewport,u=!kA()&&r,c=(n.left+(u&&s?s.offsetLeft:0))/i,d=(n.top+(u&&s?s.offsetTop:0))/a,h=n.width/i,p=n.height/a;return{width:h,height:p,top:d,right:c+h,bottom:d+p,left:c,x:c,y:d}}function sb(e){var t=ns(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 DA(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&ob(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Mi(e){return en(e).getComputedStyle(e)}function joe(e){return["table","td","th"].indexOf(ii(e))>=0}function la(e){return(($a(e)?e.ownerDocument:e.document)||window.document).documentElement}function wf(e){return ii(e)==="html"?e:e.assignedSlot||e.parentNode||(ob(e)?e.host:null)||la(e)}function F2(e){return!gn(e)||Mi(e).position==="fixed"?null:e.offsetParent}function Woe(e){var t=/firefox/i.test(Tg()),r=/Trident/i.test(Tg());if(r&&gn(e)){var n=Mi(e);if(n.position==="fixed")return null}var i=wf(e);for(ob(i)&&(i=i.host);gn(i)&&["html","body"].indexOf(ii(i))<0;){var a=Mi(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 Gu(e){for(var t=en(e),r=F2(e);r&&joe(r)&&Mi(r).position==="static";)r=F2(r);return r&&(ii(r)==="html"||ii(r)==="body"&&Mi(r).position==="static")?t:r||Woe(e)||t}function lb(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Il(e,t,r){return Pa(e,Qd(t,r))}function Uoe(e,t,r){var n=Il(e,t,r);return n>r?r:n}function NA(){return{top:0,right:0,bottom:0,left:0}}function IA(e){return Object.assign({},NA(),e)}function LA(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Voe=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,IA(typeof t!="number"?t:LA(t,Vu))};function Goe(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,o=r.modifiersData.popperOffsets,s=Jn(r.placement),u=lb(s),c=[jr,bn].indexOf(s)>=0,d=c?"height":"width";if(!(!a||!o)){var h=Voe(i.padding,r),p=sb(a),m=u==="y"?zr:jr,v=u==="y"?yn:bn,g=r.rects.reference[d]+r.rects.reference[u]-o[u]-r.rects.popper[d],b=o[u]-r.rects.reference[u],C=Gu(a),x=C?u==="y"?C.clientHeight||0:C.clientWidth||0:0,E=g/2-b/2,T=h[m],A=x-p[d]-h[v],R=x/2-p[d]/2+E,D=Il(T,R,A),I=u;r.modifiersData[n]=(t={},t[I]=D,t.centerOffset=D-R,t)}}function qoe(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)||DA(t.elements.popper,i)&&(t.elements.arrow=i))}const Yoe={name:"arrow",enabled:!0,phase:"main",fn:Goe,effect:qoe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function is(e){return e.split("-")[1]}var Xoe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Koe(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:rs(r*i)/i||0,y:rs(n*i)/i||0}}function $2(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,d=e.roundOffsets,h=e.isFixed,p=o.x,m=p===void 0?0:p,v=o.y,g=v===void 0?0:v,b=typeof d=="function"?d({x:m,y:g}):{x:m,y:g};m=b.x,g=b.y;var C=o.hasOwnProperty("x"),x=o.hasOwnProperty("y"),E=jr,T=zr,A=window;if(c){var R=Gu(r),D="clientHeight",I="clientWidth";if(R===en(r)&&(R=la(r),Mi(R).position!=="static"&&s==="absolute"&&(D="scrollHeight",I="scrollWidth")),R=R,i===zr||(i===jr||i===bn)&&a===su){T=yn;var H=h&&R===A&&A.visualViewport?A.visualViewport.height:R[D];g-=H-n.height,g*=u?1:-1}if(i===jr||(i===zr||i===yn)&&a===su){E=bn;var G=h&&R===A&&A.visualViewport?A.visualViewport.width:R[I];m-=G-n.width,m*=u?1:-1}}var q=Object.assign({position:s},c&&Xoe),O=d===!0?Koe({x:m,y:g},en(r)):{x:m,y:g};if(m=O.x,g=O.y,u){var $;return Object.assign({},q,($={},$[T]=x?"0":"",$[E]=C?"0":"",$.transform=(A.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",$))}return Object.assign({},q,(t={},t[T]=x?g+"px":"",t[E]=C?m+"px":"",t.transform="",t))}function Zoe(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:Jn(t.placement),variation:is(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,$2(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,$2(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 Qoe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Zoe,data:{}};var Kc={passive:!0};function Joe(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=en(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(d){d.addEventListener("scroll",r.update,Kc)}),s&&u.addEventListener("resize",r.update,Kc),function(){a&&c.forEach(function(d){d.removeEventListener("scroll",r.update,Kc)}),s&&u.removeEventListener("resize",r.update,Kc)}}const ese={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Joe,data:{}};var tse={left:"right",right:"left",bottom:"top",top:"bottom"};function _d(e){return e.replace(/left|right|bottom|top/g,function(t){return tse[t]})}var rse={start:"end",end:"start"};function B2(e){return e.replace(/start|end/g,function(t){return rse[t]})}function ub(e){var t=en(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function cb(e){return ns(la(e)).left+ub(e).scrollLeft}function nse(e,t){var r=en(e),n=la(e),i=r.visualViewport,a=n.clientWidth,o=n.clientHeight,s=0,u=0;if(i){a=i.width,o=i.height;var c=kA();(c||!c&&t==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}return{width:a,height:o,x:s+cb(e),y:u}}function ise(e){var t,r=la(e),n=ub(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Pa(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Pa(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+cb(e),u=-n.scrollTop;return Mi(i||r).direction==="rtl"&&(s+=Pa(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:u}}function db(e){var t=Mi(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function FA(e){return["html","body","#document"].indexOf(ii(e))>=0?e.ownerDocument.body:gn(e)&&db(e)?e:FA(wf(e))}function Ll(e,t){var r;t===void 0&&(t=[]);var n=FA(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=en(n),o=i?[a].concat(a.visualViewport||[],db(n)?n:[]):n,s=t.concat(o);return i?s:s.concat(Ll(wf(o)))}function Sg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ase(e,t){var r=ns(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 H2(e,t,r){return t===RA?Sg(nse(e,r)):$a(t)?ase(t,r):Sg(ise(la(e)))}function ose(e){var t=Ll(wf(e)),r=["absolute","fixed"].indexOf(Mi(e).position)>=0,n=r&&gn(e)?Gu(e):e;return $a(n)?t.filter(function(i){return $a(i)&&DA(i,n)&&ii(i)!=="body"}):[]}function sse(e,t,r,n){var i=t==="clippingParents"?ose(e):[].concat(t),a=[].concat(i,[r]),o=a[0],s=a.reduce(function(u,c){var d=H2(e,c,n);return u.top=Pa(d.top,u.top),u.right=Qd(d.right,u.right),u.bottom=Qd(d.bottom,u.bottom),u.left=Pa(d.left,u.left),u},H2(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 $A(e){var t=e.reference,r=e.element,n=e.placement,i=n?Jn(n):null,a=n?is(n):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(i){case zr:u={x:o,y:t.y-r.height};break;case yn:u={x:o,y:t.y+t.height};break;case bn:u={x:t.x+t.width,y:s};break;case jr:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var c=i?lb(i):null;if(c!=null){var d=c==="y"?"height":"width";switch(a){case ts:u[c]=u[c]-(t[d]/2-r[d]/2);break;case su:u[c]=u[c]+(t[d]/2-r[d]/2);break}}return u}function lu(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?Moe:s,c=r.rootBoundary,d=c===void 0?RA:c,h=r.elementContext,p=h===void 0?sl:h,m=r.altBoundary,v=m===void 0?!1:m,g=r.padding,b=g===void 0?0:g,C=IA(typeof b!="number"?b:LA(b,Vu)),x=p===sl?Aoe:sl,E=e.rects.popper,T=e.elements[v?x:p],A=sse($a(T)?T:T.contextElement||la(e.elements.popper),u,d,o),R=ns(e.elements.reference),D=$A({reference:R,element:E,strategy:"absolute",placement:i}),I=Sg(Object.assign({},E,D)),H=p===sl?I:R,G={top:A.top-H.top+C.top,bottom:H.bottom-A.bottom+C.bottom,left:A.left-H.left+C.left,right:H.right-A.right+C.right},q=e.modifiersData.offset;if(p===sl&&q){var O=q[i];Object.keys(G).forEach(function($){var X=[bn,yn].indexOf($)>=0?1:-1,j=[zr,yn].indexOf($)>=0?"y":"x";G[$]+=O[j]*X})}return G}function lse(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?OA:u,d=is(n),h=d?s?L2:L2.filter(function(v){return is(v)===d}):Vu,p=h.filter(function(v){return c.indexOf(v)>=0});p.length===0&&(p=h);var m=p.reduce(function(v,g){return v[g]=lu(e,{placement:g,boundary:i,rootBoundary:a,padding:o})[Jn(g)],v},{});return Object.keys(m).sort(function(v,g){return m[v]-m[g]})}function use(e){if(Jn(e)===ab)return[];var t=_d(e);return[B2(e),t,B2(t)]}function cse(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,d=r.boundary,h=r.rootBoundary,p=r.altBoundary,m=r.flipVariations,v=m===void 0?!0:m,g=r.allowedAutoPlacements,b=t.options.placement,C=Jn(b),x=C===b,E=u||(x||!v?[_d(b)]:use(b)),T=[b].concat(E).reduce(function(te,oe){return te.concat(Jn(oe)===ab?lse(t,{placement:oe,boundary:d,rootBoundary:h,padding:c,flipVariations:v,allowedAutoPlacements:g}):oe)},[]),A=t.rects.reference,R=t.rects.popper,D=new Map,I=!0,H=T[0],G=0;G<T.length;G++){var q=T[G],O=Jn(q),$=is(q)===ts,X=[zr,yn].indexOf(O)>=0,j=X?"width":"height",V=lu(t,{placement:q,boundary:d,rootBoundary:h,altBoundary:p,padding:c}),z=X?$?bn:jr:$?yn:zr;A[j]>R[j]&&(z=_d(z));var Y=_d(z),re=[];if(a&&re.push(V[O]<=0),s&&re.push(V[z]<=0,V[Y]<=0),re.every(function(te){return te})){H=q,I=!1;break}D.set(q,re)}if(I)for(var W=v?3:1,K=function(oe){var se=T.find(function(de){var ce=D.get(de);if(ce)return ce.slice(0,oe).every(function(ge){return ge})});if(se)return H=se,"break"},ie=W;ie>0;ie--){var ne=K(ie);if(ne==="break")break}t.placement!==H&&(t.modifiersData[n]._skip=!0,t.placement=H,t.reset=!0)}}const dse={name:"flip",enabled:!0,phase:"main",fn:cse,requiresIfExists:["offset"],data:{_skip:!1}};function z2(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 j2(e){return[zr,bn,yn,jr].some(function(t){return e[t]>=0})}function hse(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=lu(t,{elementContext:"reference"}),s=lu(t,{altBoundary:!0}),u=z2(o,n),c=z2(s,i,a),d=j2(u),h=j2(c);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}const fse={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hse};function pse(e,t,r){var n=Jn(e),i=[jr,zr].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,[jr,bn].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function mse(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,o=OA.reduce(function(d,h){return d[h]=pse(h,t.rects,a),d},{}),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 gse={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mse};function vse(e){var t=e.state,r=e.name;t.modifiersData[r]=$A({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const yse={name:"popperOffsets",enabled:!0,phase:"read",fn:vse,data:{}};function bse(e){return e==="x"?"y":"x"}function _se(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,d=r.altBoundary,h=r.padding,p=r.tether,m=p===void 0?!0:p,v=r.tetherOffset,g=v===void 0?0:v,b=lu(t,{boundary:u,rootBoundary:c,padding:h,altBoundary:d}),C=Jn(t.placement),x=is(t.placement),E=!x,T=lb(C),A=bse(T),R=t.modifiersData.popperOffsets,D=t.rects.reference,I=t.rects.popper,H=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,G=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),q=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(R){if(a){var $,X=T==="y"?zr:jr,j=T==="y"?yn:bn,V=T==="y"?"height":"width",z=R[T],Y=z+b[X],re=z-b[j],W=m?-I[V]/2:0,K=x===ts?D[V]:I[V],ie=x===ts?-I[V]:-D[V],ne=t.elements.arrow,te=m&&ne?sb(ne):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:NA(),se=oe[X],de=oe[j],ce=Il(0,D[V],te[V]),ge=E?D[V]/2-W-ce-se-G.mainAxis:K-ce-se-G.mainAxis,Se=E?-D[V]/2+W+ce+de+G.mainAxis:ie+ce+de+G.mainAxis,ye=t.elements.arrow&&Gu(t.elements.arrow),J=ye?T==="y"?ye.clientTop||0:ye.clientLeft||0:0,_e=($=q==null?void 0:q[T])!=null?$:0,ve=z+ge-_e-J,Ae=z+Se-_e,Ie=Il(m?Qd(Y,ve):Y,z,m?Pa(re,Ae):re);R[T]=Ie,O[T]=Ie-z}if(s){var Ue,Ve=T==="x"?zr:jr,ir=T==="x"?yn:bn,At=R[A],Wt=A==="y"?"height":"width",Nt=At+b[Ve],Re=At-b[ir],st=[zr,jr].indexOf(C)!==-1,Ni=(Ue=q==null?void 0:q[A])!=null?Ue:0,on=st?Nt:At-D[Wt]-I[Wt]-Ni+G.altAxis,sn=st?At+D[Wt]+I[Wt]-Ni-G.altAxis:Re,Dn=m&&st?Uoe(on,At,sn):Il(m?on:Nt,At,m?sn:Re);R[A]=Dn,O[A]=Dn-At}t.modifiersData[n]=O}}const wse={name:"preventOverflow",enabled:!0,phase:"main",fn:_se,requiresIfExists:["offset"]};function Cse(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function xse(e){return e===en(e)||!gn(e)?ub(e):Cse(e)}function Tse(e){var t=e.getBoundingClientRect(),r=rs(t.width)/e.offsetWidth||1,n=rs(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Sse(e,t,r){r===void 0&&(r=!1);var n=gn(t),i=gn(t)&&Tse(t),a=la(t),o=ns(e,i,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((ii(t)!=="body"||db(a))&&(s=xse(t)),gn(t)?(u=ns(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=cb(a))),{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function Ese(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 Mse(e){var t=Ese(e);return $oe.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function Ase(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Pse(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 W2={placement:"bottom",modifiers:[],strategy:"absolute"};function U2(){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 Rse(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?W2:i;return function(s,u,c){c===void 0&&(c=a);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},W2,a),modifiersData:{},elements:{reference:s,popper:u},attributes:{},styles:{}},h=[],p=!1,m={state:d,setOptions:function(C){var x=typeof C=="function"?C(d.options):C;g(),d.options=Object.assign({},a,d.options,x),d.scrollParents={reference:$a(s)?Ll(s):s.contextElement?Ll(s.contextElement):[],popper:Ll(u)};var E=Mse(Pse([].concat(n,d.options.modifiers)));return d.orderedModifiers=E.filter(function(T){return T.enabled}),v(),m.update()},forceUpdate:function(){if(!p){var C=d.elements,x=C.reference,E=C.popper;if(U2(x,E)){d.rects={reference:Sse(x,Gu(E),d.options.strategy==="fixed"),popper:sb(E)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(G){return d.modifiersData[G.name]=Object.assign({},G.data)});for(var T=0;T<d.orderedModifiers.length;T++){if(d.reset===!0){d.reset=!1,T=-1;continue}var A=d.orderedModifiers[T],R=A.fn,D=A.options,I=D===void 0?{}:D,H=A.name;typeof R=="function"&&(d=R({state:d,options:I,name:H,instance:m})||d)}}}},update:Ase(function(){return new Promise(function(b){m.forceUpdate(),b(d)})}),destroy:function(){g(),p=!0}};if(!U2(s,u))return m;m.setOptions(c).then(function(b){!p&&c.onFirstUpdate&&c.onFirstUpdate(b)});function v(){d.orderedModifiers.forEach(function(b){var C=b.name,x=b.options,E=x===void 0?{}:x,T=b.effect;if(typeof T=="function"){var A=T({state:d,name:C,instance:m,options:E}),R=function(){};h.push(A||R)}})}function g(){h.forEach(function(b){return b()}),h=[]}return m}}var Ose=[ese,yse,Qoe,zoe,gse,dse,wse,Yoe,fse],kse=Rse({defaultModifiers:Ose});function Dse(e){return yt("MuiPopper",e)}bt("MuiPopper",["root"]);function Nse(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 Jd(e){return typeof e=="function"?e():e}function Cf(e){return e.nodeType!==void 0}function Ise(e){return!Cf(e)}const Lse=e=>{const{classes:t}=e;return Dt({root:["root"]},Dse,t)},Fse={},$se=Q.forwardRef(function(t,r){var V;const j=t,{anchorEl:n,children:i,direction:a,disablePortal:o,modifiers:s,open:u,placement:c,popperOptions:d,popperRef:h,slotProps:p={},slots:m={},TransitionProps:v,ownerState:g}=j,b=xe(j,["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"]),C=Q.useRef(null),x=gr(C,r),E=Q.useRef(null),T=gr(E,h),A=Q.useRef(T);Mn(()=>{A.current=T},[T]),Q.useImperativeHandle(h,()=>E.current,[]);const R=Nse(c,a),[D,I]=Q.useState(R),[H,G]=Q.useState(Jd(n));Q.useEffect(()=>{E.current&&E.current.forceUpdate()}),Q.useEffect(()=>{n&&G(Jd(n))},[n]),Mn(()=>{if(!H||!u)return;const z=W=>{I(W.placement)};if(process.env.NODE_ENV!=="production"&&H&&Cf(H)&&H.nodeType===1){const W=H.getBoundingClientRect();process.env.NODE_ENV!=="test"&&W.top===0&&W.left===0&&W.right===0&&W.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(`
364
+ `))}let Y=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{z(W)}}];s!=null&&(Y=Y.concat(s)),d&&d.modifiers!=null&&(Y=Y.concat(d.modifiers));const re=kse(H,C.current,B(M({placement:R},d),{modifiers:Y}));return A.current(re),()=>{re.destroy(),A.current(null)}},[H,o,s,u,d,R]);const q={placement:D};v!==null&&(q.TransitionProps=v);const O=Lse(t),$=(V=m.root)!=null?V:"div",X=Av({elementType:$,externalSlotProps:p.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:O.root});return fe.jsx($,B(M({},X),{children:typeof i=="function"?i(q):i}))}),BA=Q.forwardRef(function(t,r){const G=t,{anchorEl:n,children:i,container:a,direction:o="ltr",disablePortal:s=!1,keepMounted:u=!1,modifiers:c,open:d,placement:h="bottom",popperOptions:p=Fse,popperRef:m,style:v,transition:g=!1,slotProps:b={},slots:C={}}=G,x=xe(G,["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"]),[E,T]=Q.useState(!0),A=()=>{T(!1)},R=()=>{T(!0)};if(!u&&!d&&(!g||E))return null;let D;if(a)D=a;else if(n){const q=Jd(n);D=q&&Cf(q)?Qr(q).body:Qr(null).body}const I=!d&&u&&(!g||E)?"none":void 0,H=g?{in:d,onEnter:A,onExited:R}:void 0;return fe.jsx(Gl,{disablePortal:s,container:D,children:fe.jsx($se,B(M({anchorEl:n,direction:o,disablePortal:s,modifiers:c,ref:r,open:g?!E:d,placement:h,popperOptions:p,popperRef:m,slotProps:b,slots:C},x),{style:M({position:"fixed",top:0,left:0,display:I},v),TransitionProps:H,children:i}))})});process.env.NODE_ENV!=="production"&&(BA.propTypes={anchorEl:Ri(_.oneOfType([Ti,_.object,_.func]),e=>{if(e.open){const t=Jd(e.anchorEl);if(t&&Cf(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(`
365
+ `))}else if(!t||typeof t.getBoundingClientRect!="function"||Ise(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(`
366
+ `))}return null}),children:_.oneOfType([_.node,_.func]),container:_.oneOfType([Ti,_.func]),direction:_.oneOf(["ltr","rtl"]),disablePortal:_.bool,keepMounted:_.bool,modifiers:_.arrayOf(_.shape({data:_.object,effect:_.func,enabled:_.bool,fn:_.func,name:_.any,options:_.object,phase:_.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:_.arrayOf(_.string),requiresIfExists:_.arrayOf(_.string)})),open:_.bool.isRequired,placement:_.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:_.shape({modifiers:_.array,onFirstUpdate:_.func,placement:_.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:_.oneOf(["absolute","fixed"])}),popperRef:cs,slotProps:_.shape({root:_.oneOfType([_.func,_.object])}),slots:_.shape({root:_.elementType}),transition:_.bool});const Bse=Ne(BA,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qu=Q.forwardRef(function(t,r){var I;const n=yh(),D=Mt({props:t,name:"MuiPopper"}),{anchorEl:a,component:o,components:s,componentsProps:u,container:c,disablePortal:d,keepMounted:h,modifiers:p,open:m,placement:v,popperOptions:g,popperRef:b,transition:C,slots:x,slotProps:E}=D,T=xe(D,["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"]),A=(I=x==null?void 0:x.root)!=null?I:s==null?void 0:s.Root,R=M({anchorEl:a,container:c,disablePortal:d,keepMounted:h,modifiers:p,open:m,placement:v,popperOptions:g,popperRef:b,transition:C},T);return fe.jsx(Bse,B(M({as:o,direction:n?"rtl":"ltr",slots:{root:A},slotProps:E!=null?E:u},R),{ref:r}))});process.env.NODE_ENV!=="production"&&(qu.propTypes={anchorEl:_.oneOfType([Ti,_.object,_.func]),children:_.oneOfType([_.node,_.func]),component:_.elementType,components:_.shape({Root:_.elementType}),componentsProps:_.shape({root:_.oneOfType([_.func,_.object])}),container:_.oneOfType([Ti,_.func]),disablePortal:_.bool,keepMounted:_.bool,modifiers:_.arrayOf(_.shape({data:_.object,effect:_.func,enabled:_.bool,fn:_.func,name:_.any,options:_.object,phase:_.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:_.arrayOf(_.string),requiresIfExists:_.arrayOf(_.string)})),open:_.bool.isRequired,placement:_.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:_.shape({modifiers:_.array,onFirstUpdate:_.func,placement:_.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:_.oneOf(["absolute","fixed"])}),popperRef:cs,slotProps:_.shape({root:_.oneOfType([_.func,_.object])}),slots:_.shape({root:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),transition:_.bool});function Hse(e){return yt("MuiTooltip",e)}const jt=bt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function zse(e){return Math.round(e*1e5)/1e5}const jse=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 Dt(o,Hse,t)},Wse=Ne(qu,{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]}})($t(({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"] .${jt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${jt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${jt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${jt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${jt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${jt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${jt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${jt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Use=Ne("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])}`]]}})($t(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Rt(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,[`.${jt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${jt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${jt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${jt.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:`${zse(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${jt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${jt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${jt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${jt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${jt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${jt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${jt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${jt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${jt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${jt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Vse=Ne("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})($t(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Rt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Zc=!1;const V2=new Dh;let ll={x:0,y:0};function Qc(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const xf=Q.forwardRef(function(t,r){var oc,eo,sc;const n=Mt({props:t,name:"MuiTooltip"}),ac=n,{arrow:i=!1,children:a,classes:o,components:s={},componentsProps:u={},describeChild:c=!1,disableFocusListener:d=!1,disableHoverListener:h=!1,disableInteractive:p=!1,disableTouchListener:m=!1,enterDelay:v=100,enterNextDelay:g=0,enterTouchDelay:b=700,followCursor:C=!1,id:x,leaveDelay:E=0,leaveTouchDelay:T=1500,onClose:A,onOpen:R,open:D,placement:I="bottom",PopperComponent:H,PopperProps:G={},slotProps:q={},slots:O={},title:$,TransitionComponent:X,TransitionProps:j}=ac,V=xe(ac,["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"]),z=Q.isValidElement(a)?a:fe.jsx("span",{children:a}),Y=Tu(),re=yh(),[W,K]=Q.useState(),[ie,ne]=Q.useState(null),te=Q.useRef(!1),oe=p||C,se=Ta(),de=Ta(),ce=Ta(),ge=Ta(),[Se,ye]=xv({controlled:D,default:!1,name:"Tooltip",state:"open"});let J=Se;if(process.env.NODE_ENV!=="production"){const{current:$e}=Q.useRef(D!==void 0);Q.useEffect(()=>{W&&W.disabled&&!$e&&$!==""&&W.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(`
367
+ `))},[$,W,$e])}const _e=kh(x),ve=Q.useRef(),Ae=Kn(()=>{ve.current!==void 0&&(document.body.style.WebkitUserSelect=ve.current,ve.current=void 0),ge.clear()});Q.useEffect(()=>Ae,[Ae]);const Ie=$e=>{V2.clear(),Zc=!0,ye(!0),R&&!J&&R($e)},Ue=Kn($e=>{V2.start(800+E,()=>{Zc=!1}),ye(!1),A&&J&&A($e),se.start(Y.transitions.duration.shortest,()=>{te.current=!1})}),Ve=$e=>{te.current&&$e.type!=="touchstart"||(W&&W.removeAttribute("title"),de.clear(),ce.clear(),v||Zc&&g?de.start(Zc?g:v,()=>{Ie($e)}):Ie($e))},ir=$e=>{de.clear(),ce.start(E,()=>{Ue($e)})},[,At]=Q.useState(!1),Wt=$e=>{Pd($e.target)||(At(!1),ir($e))},Nt=$e=>{W||K($e.currentTarget),Pd($e.target)&&(At(!0),Ve($e))},Re=$e=>{te.current=!0;const Ur=z.props;Ur.onTouchStart&&Ur.onTouchStart($e)},st=$e=>{Re($e),ce.clear(),se.clear(),Ae(),ve.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ge.start(b,()=>{document.body.style.WebkitUserSelect=ve.current,Ve($e)})},Ni=$e=>{z.props.onTouchEnd&&z.props.onTouchEnd($e),Ae(),ce.start(T,()=>{Ue($e)})};Q.useEffect(()=>{if(!J)return;function $e(Ur){Ur.key==="Escape"&&Ue(Ur)}return document.addEventListener("keydown",$e),()=>{document.removeEventListener("keydown",$e)}},[Ue,J]);const on=gr(hs(z),K,r);!$&&$!==0&&(J=!1);const sn=Q.useRef(),Dn=$e=>{const Ur=z.props;Ur.onMouseMove&&Ur.onMouseMove($e),ll={x:$e.clientX,y:$e.clientY},sn.current&&sn.current.update()},Cn={},ci=typeof $=="string";c?(Cn.title=!J&&ci&&!h?$:null,Cn["aria-describedby"]=J?_e:null):(Cn["aria-label"]=ci?$:null,Cn["aria-labelledby"]=J&&!ci?_e:null);const ar=M(B(M(M(M({},Cn),V),z.props),{className:je(V.className,z.props.className),onTouchStart:Re,ref:on}),C?{onMouseMove:Dn}:{});process.env.NODE_ENV!=="production"&&(ar["data-mui-internal-clone-element"]=!0,Q.useEffect(()=>{W&&!W.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(`
368
+ `))},[W]));const Nn={};m||(ar.onTouchStart=st,ar.onTouchEnd=Ni),h||(ar.onMouseOver=Qc(Ve,ar.onMouseOver),ar.onMouseLeave=Qc(ir,ar.onMouseLeave),oe||(Nn.onMouseOver=Ve,Nn.onMouseLeave=ir)),d||(ar.onFocus=Qc(Nt,ar.onFocus),ar.onBlur=Qc(Wt,ar.onBlur),oe||(Nn.onFocus=Nt,Nn.onBlur=Wt)),process.env.NODE_ENV!=="production"&&z.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${z.props.title}\` or the Tooltip component.`].join(`
369
+ `));const Ze=B(M({},n),{isRtl:re,arrow:i,disableInteractive:oe,placement:I,PopperComponentProp:H,touch:te.current}),Xt=typeof q.popper=="function"?q.popper(Ze):q.popper,ca=Q.useMemo(()=>{var Ur,lc;let $e=[{name:"arrow",enabled:!!ie,options:{element:ie,padding:4}}];return(Ur=G.popperOptions)!=null&&Ur.modifiers&&($e=$e.concat(G.popperOptions.modifiers)),(lc=Xt==null?void 0:Xt.popperOptions)!=null&&lc.modifiers&&($e=$e.concat(Xt.popperOptions.modifiers)),B(M(M({},G.popperOptions),Xt==null?void 0:Xt.popperOptions),{modifiers:$e})},[ie,G.popperOptions,Xt==null?void 0:Xt.popperOptions]),Fs=jse(Ze),di=typeof q.transition=="function"?q.transition(Ze):q.transition,Ja={slots:M({popper:s.Popper,transition:(oc=s.Transition)!=null?oc:X,tooltip:s.Tooltip,arrow:s.Arrow},O),slotProps:{arrow:(eo=q.arrow)!=null?eo:u.arrow,popper:M(M({},G),Xt!=null?Xt:u.popper),tooltip:(sc=q.tooltip)!=null?sc:u.tooltip,transition:M(M({},j),di!=null?di:u.transition)}},[tp,rc]=lr("popper",{elementType:Wse,externalForwardedProps:Ja,ownerState:Ze,className:je(Fs.popper,G==null?void 0:G.className)}),[nc,ic]=lr("transition",{elementType:Vl,externalForwardedProps:Ja,ownerState:Ze}),[rp,np]=lr("tooltip",{elementType:Use,className:Fs.tooltip,externalForwardedProps:Ja,ownerState:Ze}),[ip,ap]=lr("arrow",{elementType:Vse,className:Fs.arrow,externalForwardedProps:Ja,ownerState:Ze,ref:ne});return fe.jsxs(Q.Fragment,{children:[Q.cloneElement(z,ar),fe.jsx(tp,B(M(M({as:H!=null?H:qu,placement:I,anchorEl:C?{getBoundingClientRect:()=>({top:ll.y,left:ll.x,right:ll.x,bottom:ll.y,width:0,height:0})}:W,popperRef:sn,open:W?J:!1,id:_e,transition:!0},Nn),rc),{popperOptions:ca,children:({TransitionProps:$e})=>fe.jsx(nc,B(M(M({timeout:Y.transitions.duration.shorter},$e),ic),{children:fe.jsxs(rp,B(M({},np),{children:[$,i?fe.jsx(ip,M({},ap)):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(xf.propTypes={arrow:_.bool,children:Wa.isRequired,classes:_.object,className:_.string,components:_.shape({Arrow:_.elementType,Popper:_.elementType,Tooltip:_.elementType,Transition:_.elementType}),componentsProps:_.shape({arrow:_.object,popper:_.object,tooltip:_.object,transition:_.object}),describeChild:_.bool,disableFocusListener:_.bool,disableHoverListener:_.bool,disableInteractive:_.bool,disableTouchListener:_.bool,enterDelay:_.number,enterNextDelay:_.number,enterTouchDelay:_.number,followCursor:_.bool,id:_.string,leaveDelay:_.number,leaveTouchDelay:_.number,onClose:_.func,onOpen:_.func,open:_.bool,placement:_.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:_.elementType,PopperProps:_.object,slotProps:_.shape({arrow:_.oneOfType([_.func,_.object]),popper:_.oneOfType([_.func,_.object]),tooltip:_.oneOfType([_.func,_.object]),transition:_.oneOfType([_.func,_.object])}),slots:_.shape({arrow:_.elementType,popper:_.elementType,tooltip:_.elementType,transition:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),title:_.node,TransitionComponent:_.elementType,TransitionProps:_.object});var HA={exports:{}};/*!
370
+ Copyright (c) 2018 Jed Watson.
371
+ Licensed under the MIT License (MIT), see
372
+ http://jedwatson.github.io/classnames
373
+ */(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})()})(HA);var Gse=HA.exports;const uu=w.getDefaultExportFromCjs(Gse);function Ot(){return Ot=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},Ot.apply(null,arguments)}function xt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ai(e){"@babel/helpers - typeof";return Ai=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},Ai(e)}function qse(e,t){if(Ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zA(e){var t=qse(e,"string");return Ai(t)=="symbol"?t:t+""}function G2(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,zA(n.key),n)}}function Tt(e,t,r){return t&&G2(e.prototype,t),r&&G2(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Eg(e,t){return Eg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Eg(e,t)}function Jt(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&&Eg(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 vr(e,t){if(t&&(Ai(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 Xe(e){return Xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xe(e)}function ue(e,t,r){return(t=zA(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var qn=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 d=[n,i,a,o,s,u],h=0;c=new Error("Invariant Violation: "+r.replace(/%s/g,function(){return d[h++]}))}throw c.framesToPop=1,c}},Jc=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Yse=Array.isArray,wn=Yse,Xse=typeof Jc=="object"&&Jc&&Jc.Object===Object&&Jc,jA=Xse,Kse=jA,Zse=typeof self=="object"&&self&&self.Object===Object&&self,Qse=Kse||Zse||Function("return this")(),ui=Qse,Jse=ui,ele=Jse.Symbol,Yu=ele,q2=Yu,WA=Object.prototype,tle=WA.hasOwnProperty,rle=WA.toString,ul=q2?q2.toStringTag:void 0;function nle(e){var t=tle.call(e,ul),r=e[ul];try{e[ul]=void 0;var n=!0}catch(a){}var i=rle.call(e);return n&&(t?e[ul]=r:delete e[ul]),i}var ile=nle,ale=Object.prototype,ole=ale.toString;function sle(e){return ole.call(e)}var lle=sle,Y2=Yu,ule=ile,cle=lle,dle="[object Null]",hle="[object Undefined]",X2=Y2?Y2.toStringTag:void 0;function fle(e){return e==null?e===void 0?hle:dle:X2&&X2 in Object(e)?ule(e):cle(e)}var Ka=fle;function ple(e){return e!=null&&typeof e=="object"}var ua=ple,mle=Ka,gle=ua,vle="[object Symbol]";function yle(e){return typeof e=="symbol"||gle(e)&&mle(e)==vle}var Tf=yle,ble=wn,_le=Tf,wle=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cle=/^\w*$/;function xle(e,t){if(ble(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||_le(e)?!0:Cle.test(e)||!wle.test(e)||t!=null&&e in Object(t)}var Tle=xle;function Sle(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Za=Sle,Ele=Ka,Mle=Za,Ale="[object AsyncFunction]",Ple="[object Function]",Rle="[object GeneratorFunction]",Ole="[object Proxy]";function kle(e){if(!Mle(e))return!1;var t=Ele(e);return t==Ple||t==Rle||t==Ale||t==Ole}var UA=kle,Dle=ui,Nle=Dle["__core-js_shared__"],Ile=Nle,xm=Ile,K2=function(){var e=/[^.]+$/.exec(xm&&xm.keys&&xm.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Lle(e){return!!K2&&K2 in e}var Fle=Lle,$le=Function.prototype,Ble=$le.toString;function Hle(e){if(e!=null){try{return Ble.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var VA=Hle,zle=UA,jle=Fle,Wle=Za,Ule=VA,Vle=/[\\^$.*+?()[\]{}|]/g,Gle=/^\[object .+?Constructor\]$/,qle=Function.prototype,Yle=Object.prototype,Xle=qle.toString,Kle=Yle.hasOwnProperty,Zle=RegExp("^"+Xle.call(Kle).replace(Vle,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Qle(e){if(!Wle(e)||jle(e))return!1;var t=zle(e)?Zle:Gle;return t.test(Ule(e))}var Jle=Qle;function eue(e,t){return e==null?void 0:e[t]}var tue=eue,rue=Jle,nue=tue;function iue(e,t){var r=nue(e,t);return rue(r)?r:void 0}var Qa=iue,aue=Qa,oue=aue(Object,"create"),Sf=oue,Z2=Sf;function sue(){this.__data__=Z2?Z2(null):{},this.size=0}var lue=sue;function uue(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var cue=uue,due=Sf,hue="__lodash_hash_undefined__",fue=Object.prototype,pue=fue.hasOwnProperty;function mue(e){var t=this.__data__;if(due){var r=t[e];return r===hue?void 0:r}return pue.call(t,e)?t[e]:void 0}var gue=mue,vue=Sf,yue=Object.prototype,bue=yue.hasOwnProperty;function _ue(e){var t=this.__data__;return vue?t[e]!==void 0:bue.call(t,e)}var wue=_ue,Cue=Sf,xue="__lodash_hash_undefined__";function Tue(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Cue&&t===void 0?xue:t,this}var Sue=Tue,Eue=lue,Mue=cue,Aue=gue,Pue=wue,Rue=Sue;function Ps(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])}}Ps.prototype.clear=Eue;Ps.prototype.delete=Mue;Ps.prototype.get=Aue;Ps.prototype.has=Pue;Ps.prototype.set=Rue;var Oue=Ps;function kue(){this.__data__=[],this.size=0}var Due=kue;function Nue(e,t){return e===t||e!==e&&t!==t}var GA=Nue,Iue=GA;function Lue(e,t){for(var r=e.length;r--;)if(Iue(e[r][0],t))return r;return-1}var Ef=Lue,Fue=Ef,$ue=Array.prototype,Bue=$ue.splice;function Hue(e){var t=this.__data__,r=Fue(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Bue.call(t,r,1),--this.size,!0}var zue=Hue,jue=Ef;function Wue(e){var t=this.__data__,r=jue(t,e);return r<0?void 0:t[r][1]}var Uue=Wue,Vue=Ef;function Gue(e){return Vue(this.__data__,e)>-1}var que=Gue,Yue=Ef;function Xue(e,t){var r=this.__data__,n=Yue(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Kue=Xue,Zue=Due,Que=zue,Jue=Uue,ece=que,tce=Kue;function Rs(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])}}Rs.prototype.clear=Zue;Rs.prototype.delete=Que;Rs.prototype.get=Jue;Rs.prototype.has=ece;Rs.prototype.set=tce;var Mf=Rs,rce=Qa,nce=ui,ice=rce(nce,"Map"),hb=ice,Q2=Oue,ace=Mf,oce=hb;function sce(){this.size=0,this.__data__={hash:new Q2,map:new(oce||ace),string:new Q2}}var lce=sce;function uce(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var cce=uce,dce=cce;function hce(e,t){var r=e.__data__;return dce(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Af=hce,fce=Af;function pce(e){var t=fce(this,e).delete(e);return this.size-=t?1:0,t}var mce=pce,gce=Af;function vce(e){return gce(this,e).get(e)}var yce=vce,bce=Af;function _ce(e){return bce(this,e).has(e)}var wce=_ce,Cce=Af;function xce(e,t){var r=Cce(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Tce=xce,Sce=lce,Ece=mce,Mce=yce,Ace=wce,Pce=Tce;function Os(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])}}Os.prototype.clear=Sce;Os.prototype.delete=Ece;Os.prototype.get=Mce;Os.prototype.has=Ace;Os.prototype.set=Pce;var qA=Os,YA=qA,Rce="Expected a function";function fb(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Rce);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(fb.Cache||YA),r}fb.Cache=YA;var Oce=fb,kce=Oce,Dce=500;function Nce(e){var t=kce(e,function(n){return r.size===Dce&&r.clear(),n}),r=t.cache;return t}var Ice=Nce,Lce=Ice,Fce=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$ce=/\\(\\)?/g,Bce=Lce(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Fce,function(r,n,i,a){t.push(i?a.replace($ce,"$1"):n||r)}),t}),Hce=Bce;function zce(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 jce=zce,J2=Yu,Wce=jce,Uce=wn,Vce=Tf,Gce=1/0,eC=J2?J2.prototype:void 0,tC=eC?eC.toString:void 0;function XA(e){if(typeof e=="string")return e;if(Uce(e))return Wce(e,XA)+"";if(Vce(e))return tC?tC.call(e):"";var t=e+"";return t=="0"&&1/e==-Gce?"-0":t}var qce=XA,Yce=qce;function Xce(e){return e==null?"":Yce(e)}var KA=Xce,Kce=wn,Zce=Tle,Qce=Hce,Jce=KA;function ede(e,t){return Kce(e)?e:Zce(e,t)?[e]:Qce(Jce(e))}var Pf=ede,tde=Tf,rde=1/0;function nde(e){if(typeof e=="string"||tde(e))return e;var t=e+"";return t=="0"&&1/e==-rde?"-0":t}var pb=nde,ide=Pf,ade=pb;function ode(e,t){t=ide(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[ade(t[r++])];return r&&r==n?e:void 0}var ZA=ode,sde=Qa,lde=function(){try{var e=sde(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),QA=lde,rC=QA;function ude(e,t,r){t=="__proto__"&&rC?rC(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var JA=ude,cde=JA,dde=GA,hde=Object.prototype,fde=hde.hasOwnProperty;function pde(e,t,r){var n=e[t];(!(fde.call(e,t)&&dde(n,r))||r===void 0&&!(t in e))&&cde(e,t,r)}var mb=pde,mde=9007199254740991,gde=/^(?:0|[1-9]\d*)$/;function vde(e,t){var r=typeof e;return t=t==null?mde:t,!!t&&(r=="number"||r!="symbol"&&gde.test(e))&&e>-1&&e%1==0&&e<t}var gb=vde,yde=mb,bde=Pf,_de=gb,nC=Za,wde=pb;function Cde(e,t,r,n){if(!nC(e))return e;t=bde(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var u=wde(t[i]),c=r;if(u==="__proto__"||u==="constructor"||u==="prototype")return e;if(i!=o){var d=s[u];c=n?n(d,u,s):void 0,c===void 0&&(c=nC(d)?d:_de(t[i+1])?[]:{})}yde(s,u,c),s=s[u]}return e}var xde=Cde,Tde=ZA,Sde=xde,Ede=Pf;function Mde(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var o=t[n],s=Tde(e,o);r(s,o)&&Sde(a,Ede(o,e),s)}return a}var Ade=Mde;function Pde(e,t){return e!=null&&t in Object(e)}var Rde=Pde,Ode=Ka,kde=ua,Dde="[object Arguments]";function Nde(e){return kde(e)&&Ode(e)==Dde}var Ide=Nde,iC=Ide,Lde=ua,eP=Object.prototype,Fde=eP.hasOwnProperty,$de=eP.propertyIsEnumerable,Bde=iC(function(){return arguments}())?iC:function(e){return Lde(e)&&Fde.call(e,"callee")&&!$de.call(e,"callee")},Rf=Bde,Hde=9007199254740991;function zde(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Hde}var vb=zde,jde=Pf,Wde=Rf,Ude=wn,Vde=gb,Gde=vb,qde=pb;function Yde(e,t,r){t=jde(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=qde(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&&Gde(i)&&Vde(o,i)&&(Ude(e)||Wde(e)))}var Xde=Yde,Kde=Rde,Zde=Xde;function Qde(e,t){return e!=null&&Zde(e,t,Kde)}var Jde=Qde,ehe=Ade,the=Jde;function rhe(e,t){return ehe(e,t,function(r,n){return the(e,n)})}var nhe=rhe;function ihe(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var Of=ihe,aC=Yu,ahe=Rf,ohe=wn,oC=aC?aC.isConcatSpreadable:void 0;function she(e){return ohe(e)||ahe(e)||!!(oC&&e&&e[oC])}var lhe=she,uhe=Of,che=lhe;function tP(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=che),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?tP(s,t-1,r,n,i):uhe(i,s):n||(i[i.length]=s)}return i}var rP=tP,dhe=rP;function hhe(e){var t=e==null?0:e.length;return t?dhe(e,1):[]}var fhe=hhe;function phe(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 mhe=phe,ghe=mhe,sC=Math.max;function vhe(e,t,r){return t=sC(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=sC(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),ghe(e,this,s)}}var yhe=vhe;function bhe(e){return function(){return e}}var _he=bhe;function whe(e){return e}var nP=whe,Che=_he,lC=QA,xhe=nP,The=lC?function(e,t){return lC(e,"toString",{configurable:!0,enumerable:!1,value:Che(t),writable:!0})}:xhe,She=The,Ehe=800,Mhe=16,Ahe=Date.now;function Phe(e){var t=0,r=0;return function(){var n=Ahe(),i=Mhe-(n-r);if(r=n,i>0){if(++t>=Ehe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Rhe=Phe,Ohe=She,khe=Rhe,Dhe=khe(Ohe),Nhe=Dhe,Ihe=fhe,Lhe=yhe,Fhe=Nhe;function $he(e){return Fhe(Lhe(e,void 0,Ihe),e+"")}var Bhe=$he,Hhe=nhe,zhe=Bhe,jhe=zhe(function(e,t){return e==null?{}:Hhe(e,t)}),Cl=jhe;function uC(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 cC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uC(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fr(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 dC=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Tm=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ra={INIT:"@@redux/INIT"+Tm(),REPLACE:"@@redux/REPLACE"+Tm(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Tm()}};function iP(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 Whe(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(Ghe(e))return"date";if(Vhe(e))return"error";var r=Uhe(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 Uhe(e){return typeof e.constructor=="function"?e.constructor.name:null}function Vhe(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Ghe(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=Whe(e)),t}function aP(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"?fr(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"?fr(1):"Expected the enhancer to be a function. Instead, received: '"+Hi(r)+"'");return r(aP)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?fr(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 d(){if(u)throw new Error(process.env.NODE_ENV==="production"?fr(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 h(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?fr(4):"Expected the listener to be a function. Instead, received: '"+Hi(g)+"'");if(u)throw new Error(process.env.NODE_ENV==="production"?fr(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 b=!0;return c(),s.push(g),function(){if(b){if(u)throw new Error(process.env.NODE_ENV==="production"?fr(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.");b=!1,c();var x=s.indexOf(g);s.splice(x,1),o=null}}}function p(g){if(!iP(g))throw new Error(process.env.NODE_ENV==="production"?fr(7):"Actions must be plain objects. Instead, the actual type was: '"+Hi(g)+"'. 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 g.type=="undefined")throw new Error(process.env.NODE_ENV==="production"?fr(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"?fr(9):"Reducers may not dispatch actions.");try{u=!0,a=i(a,g)}finally{u=!1}for(var b=o=s,C=0;C<b.length;C++){var x=b[C];x()}return g}function m(g){if(typeof g!="function")throw new Error(process.env.NODE_ENV==="production"?fr(10):"Expected the nextReducer to be a function. Instead, received: '"+Hi(g));i=g,p({type:Ra.REPLACE})}function v(){var g,b=h;return g={subscribe:function(x){if(typeof x!="object"||x===null)throw new Error(process.env.NODE_ENV==="production"?fr(11):"Expected the observer to be an object. Instead, received: '"+Hi(x)+"'");function E(){x.next&&x.next(d())}E();var T=b(E);return{unsubscribe:T}}},g[dC]=function(){return this},g}return p({type:Ra.INIT}),n={dispatch:p,subscribe:h,getState:d,replaceReducer:m},n[dC]=v,n}function Mg(e){typeof console!="undefined"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch(t){}}function qhe(e,t,r,n){var i=Object.keys(t),a=r&&r.type===Ra.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(!iP(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===Ra.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 Yhe(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:Ra.INIT});if(typeof n=="undefined")throw new Error(process.env.NODE_ENV==="production"?fr(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:Ra.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(process.env.NODE_ENV==="production"?fr(13):'The slice reducer for key "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle '"+Ra.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 Xhe(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"&&Mg('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{Yhe(r)}catch(u){s=u}return function(c,d){if(c===void 0&&(c={}),s)throw s;if(process.env.NODE_ENV!=="production"){var h=qhe(c,r,d,o);h&&Mg(h)}for(var p=!1,m={},v=0;v<a.length;v++){var g=a[v],b=r[g],C=c[g],x=b(C,d);if(typeof x=="undefined"){var E=d&&d.type;throw new Error(process.env.NODE_ENV==="production"?fr(14):"When called with an action of type "+(E?'"'+String(E)+'"':"(unknown type)")+', the slice reducer for key "'+g+'" 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.')}m[g]=x,p=p||x!==C}return p=p||a.length!==Object.keys(c).length,p?m:c}}function hC(e,t){return function(){return t(e.apply(this,arguments))}}function oP(e,t){if(typeof e=="function")return hC(e,t);if(typeof e!="object"||e===null)throw new Error(process.env.NODE_ENV==="production"?fr(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]=hC(i,t))}return r}function eh(){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 Khe(){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"?fr(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=eh.apply(void 0,s)(i.dispatch),cC(cC({},i),{},{dispatch:a})}}}function fC(){}process.env.NODE_ENV!=="production"&&typeof fC.name=="string"&&fC.name!=="isCrushed"&&Mg('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 Zhe=Mf;function Qhe(){this.__data__=new Zhe,this.size=0}var Jhe=Qhe;function efe(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var tfe=efe;function rfe(e){return this.__data__.get(e)}var nfe=rfe;function ife(e){return this.__data__.has(e)}var afe=ife,ofe=Mf,sfe=hb,lfe=qA,ufe=200;function cfe(e,t){var r=this.__data__;if(r instanceof ofe){var n=r.__data__;if(!sfe||n.length<ufe-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new lfe(n)}return r.set(e,t),this.size=r.size,this}var dfe=cfe,hfe=Mf,ffe=Jhe,pfe=tfe,mfe=nfe,gfe=afe,vfe=dfe;function ks(e){var t=this.__data__=new hfe(e);this.size=t.size}ks.prototype.clear=ffe;ks.prototype.delete=pfe;ks.prototype.get=mfe;ks.prototype.has=gfe;ks.prototype.set=vfe;var yfe=ks;function bfe(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var sP=bfe,_fe=mb,wfe=JA;function Cfe(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?wfe(r,s,u):_fe(r,s,u)}return r}var kf=Cfe;function xfe(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Tfe=xfe,cu={exports:{}};function Sfe(){return!1}var Efe=Sfe;(function(e,t){var r=ui,n=Efe,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})(cu,cu.exports);var Mfe=Ka,Afe=vb,Pfe=ua,Rfe="[object Arguments]",Ofe="[object Array]",kfe="[object Boolean]",Dfe="[object Date]",Nfe="[object Error]",Ife="[object Function]",Lfe="[object Map]",Ffe="[object Number]",$fe="[object Object]",Bfe="[object RegExp]",Hfe="[object Set]",zfe="[object String]",jfe="[object WeakMap]",Wfe="[object ArrayBuffer]",Ufe="[object DataView]",Vfe="[object Float32Array]",Gfe="[object Float64Array]",qfe="[object Int8Array]",Yfe="[object Int16Array]",Xfe="[object Int32Array]",Kfe="[object Uint8Array]",Zfe="[object Uint8ClampedArray]",Qfe="[object Uint16Array]",Jfe="[object Uint32Array]",St={};St[Vfe]=St[Gfe]=St[qfe]=St[Yfe]=St[Xfe]=St[Kfe]=St[Zfe]=St[Qfe]=St[Jfe]=!0;St[Rfe]=St[Ofe]=St[Wfe]=St[kfe]=St[Ufe]=St[Dfe]=St[Nfe]=St[Ife]=St[Lfe]=St[Ffe]=St[$fe]=St[Bfe]=St[Hfe]=St[zfe]=St[jfe]=!1;function epe(e){return Pfe(e)&&Afe(e.length)&&!!St[Mfe(e)]}var tpe=epe;function rpe(e){return function(t){return e(t)}}var yb=rpe,du={exports:{}};(function(e,t){var r=jA,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})(du,du.exports);var npe=tpe,ipe=yb,pC=du.exports,mC=pC&&pC.isTypedArray,ape=mC?ipe(mC):npe,lP=ape,ope=Tfe,spe=Rf,lpe=wn,upe=cu.exports,cpe=gb,dpe=lP,hpe=Object.prototype,fpe=hpe.hasOwnProperty;function ppe(e,t){var r=lpe(e),n=!r&&spe(e),i=!r&&!n&&upe(e),a=!r&&!n&&!i&&dpe(e),o=r||n||i||a,s=o?ope(e.length,String):[],u=s.length;for(var c in e)(t||fpe.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||cpe(c,u)))&&s.push(c);return s}var uP=ppe,mpe=Object.prototype;function gpe(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||mpe;return e===r}var Df=gpe;function vpe(e,t){return function(r){return e(t(r))}}var cP=vpe,ype=cP,bpe=ype(Object.keys,Object),_pe=bpe,wpe=Df,Cpe=_pe,xpe=Object.prototype,Tpe=xpe.hasOwnProperty;function Spe(e){if(!wpe(e))return Cpe(e);var t=[];for(var r in Object(e))Tpe.call(e,r)&&r!="constructor"&&t.push(r);return t}var bb=Spe,Epe=UA,Mpe=vb;function Ape(e){return e!=null&&Mpe(e.length)&&!Epe(e)}var Xu=Ape,Ppe=uP,Rpe=bb,Ope=Xu;function kpe(e){return Ope(e)?Ppe(e):Rpe(e)}var Nf=kpe,Dpe=kf,Npe=Nf;function Ipe(e,t){return e&&Dpe(t,Npe(t),e)}var Lpe=Ipe;function Fpe(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var $pe=Fpe,Bpe=Za,Hpe=Df,zpe=$pe,jpe=Object.prototype,Wpe=jpe.hasOwnProperty;function Upe(e){if(!Bpe(e))return zpe(e);var t=Hpe(e),r=[];for(var n in e)n=="constructor"&&(t||!Wpe.call(e,n))||r.push(n);return r}var Vpe=Upe,Gpe=uP,qpe=Vpe,Ype=Xu;function Xpe(e){return Ype(e)?Gpe(e,!0):qpe(e)}var _b=Xpe,Kpe=kf,Zpe=_b;function Qpe(e,t){return e&&Kpe(t,Zpe(t),e)}var Jpe=Qpe,Ag={exports:{}};(function(e,t){var r=ui,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,d){if(d)return c.slice();var h=c.length,p=s?s(h):new c.constructor(h);return c.copy(p),p}e.exports=u})(Ag,Ag.exports);function eme(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var dP=eme;function tme(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 rme=tme;function nme(){return[]}var hP=nme,ime=rme,ame=hP,ome=Object.prototype,sme=ome.propertyIsEnumerable,gC=Object.getOwnPropertySymbols,lme=gC?function(e){return e==null?[]:(e=Object(e),ime(gC(e),function(t){return sme.call(e,t)}))}:ame,wb=lme,ume=kf,cme=wb;function dme(e,t){return ume(e,cme(e),t)}var hme=dme,fme=cP,pme=fme(Object.getPrototypeOf,Object),fP=pme,mme=Of,gme=fP,vme=wb,yme=hP,bme=Object.getOwnPropertySymbols,_me=bme?function(e){for(var t=[];e;)mme(t,vme(e)),e=gme(e);return t}:yme,pP=_me,wme=kf,Cme=pP;function xme(e,t){return wme(e,Cme(e),t)}var Tme=xme,Sme=Of,Eme=wn;function Mme(e,t,r){var n=t(e);return Eme(e)?n:Sme(n,r(e))}var mP=Mme,Ame=mP,Pme=wb,Rme=Nf;function Ome(e){return Ame(e,Rme,Pme)}var kme=Ome,Dme=mP,Nme=pP,Ime=_b;function Lme(e){return Dme(e,Ime,Nme)}var Fme=Lme,$me=Qa,Bme=ui,Hme=$me(Bme,"DataView"),zme=Hme,jme=Qa,Wme=ui,Ume=jme(Wme,"Promise"),Vme=Ume,Gme=Qa,qme=ui,Yme=Gme(qme,"Set"),Xme=Yme,Kme=Qa,Zme=ui,Qme=Kme(Zme,"WeakMap"),Jme=Qme,Pg=zme,Rg=hb,Og=Vme,kg=Xme,Dg=Jme,gP=Ka,Ds=VA,vC="[object Map]",e0e="[object Object]",yC="[object Promise]",bC="[object Set]",_C="[object WeakMap]",wC="[object DataView]",t0e=Ds(Pg),r0e=Ds(Rg),n0e=Ds(Og),i0e=Ds(kg),a0e=Ds(Dg),Ca=gP;(Pg&&Ca(new Pg(new ArrayBuffer(1)))!=wC||Rg&&Ca(new Rg)!=vC||Og&&Ca(Og.resolve())!=yC||kg&&Ca(new kg)!=bC||Dg&&Ca(new Dg)!=_C)&&(Ca=function(e){var t=gP(e),r=t==e0e?e.constructor:void 0,n=r?Ds(r):"";if(n)switch(n){case t0e:return wC;case r0e:return vC;case n0e:return yC;case i0e:return bC;case a0e:return _C}return t});var Ku=Ca,o0e=Object.prototype,s0e=o0e.hasOwnProperty;function l0e(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&s0e.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var u0e=l0e,c0e=ui,d0e=c0e.Uint8Array,h0e=d0e,CC=h0e;function f0e(e){var t=new e.constructor(e.byteLength);return new CC(t).set(new CC(e)),t}var Cb=f0e,p0e=Cb;function m0e(e,t){var r=t?p0e(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var g0e=m0e,v0e=/\w*$/;function y0e(e){var t=new e.constructor(e.source,v0e.exec(e));return t.lastIndex=e.lastIndex,t}var b0e=y0e,xC=Yu,TC=xC?xC.prototype:void 0,SC=TC?TC.valueOf:void 0;function _0e(e){return SC?Object(SC.call(e)):{}}var w0e=_0e,C0e=Cb;function x0e(e,t){var r=t?C0e(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var T0e=x0e,S0e=Cb,E0e=g0e,M0e=b0e,A0e=w0e,P0e=T0e,R0e="[object Boolean]",O0e="[object Date]",k0e="[object Map]",D0e="[object Number]",N0e="[object RegExp]",I0e="[object Set]",L0e="[object String]",F0e="[object Symbol]",$0e="[object ArrayBuffer]",B0e="[object DataView]",H0e="[object Float32Array]",z0e="[object Float64Array]",j0e="[object Int8Array]",W0e="[object Int16Array]",U0e="[object Int32Array]",V0e="[object Uint8Array]",G0e="[object Uint8ClampedArray]",q0e="[object Uint16Array]",Y0e="[object Uint32Array]";function X0e(e,t,r){var n=e.constructor;switch(t){case $0e:return S0e(e);case R0e:case O0e:return new n(+e);case B0e:return E0e(e,r);case H0e:case z0e:case j0e:case W0e:case U0e:case V0e:case G0e:case q0e:case Y0e:return P0e(e,r);case k0e:return new n;case D0e:case L0e:return new n(e);case N0e:return M0e(e);case I0e:return new n;case F0e:return A0e(e)}}var K0e=X0e,Z0e=Za,EC=Object.create,Q0e=function(){function e(){}return function(t){if(!Z0e(t))return{};if(EC)return EC(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),J0e=Q0e,ege=J0e,tge=fP,rge=Df;function nge(e){return typeof e.constructor=="function"&&!rge(e)?ege(tge(e)):{}}var ige=nge,age=Ku,oge=ua,sge="[object Map]";function lge(e){return oge(e)&&age(e)==sge}var uge=lge,cge=uge,dge=yb,MC=du.exports,AC=MC&&MC.isMap,hge=AC?dge(AC):cge,fge=hge,pge=Ku,mge=ua,gge="[object Set]";function vge(e){return mge(e)&&pge(e)==gge}var yge=vge,bge=yge,_ge=yb,PC=du.exports,RC=PC&&PC.isSet,wge=RC?_ge(RC):bge,Cge=wge,xge=yfe,Tge=sP,Sge=mb,Ege=Lpe,Mge=Jpe,Age=Ag.exports,Pge=dP,Rge=hme,Oge=Tme,kge=kme,Dge=Fme,Nge=Ku,Ige=u0e,Lge=K0e,Fge=ige,$ge=wn,Bge=cu.exports,Hge=fge,zge=Za,jge=Cge,Wge=Nf,Uge=_b,Vge=1,Gge=2,qge=4,vP="[object Arguments]",Yge="[object Array]",Xge="[object Boolean]",Kge="[object Date]",Zge="[object Error]",yP="[object Function]",Qge="[object GeneratorFunction]",Jge="[object Map]",eve="[object Number]",bP="[object Object]",tve="[object RegExp]",rve="[object Set]",nve="[object String]",ive="[object Symbol]",ave="[object WeakMap]",ove="[object ArrayBuffer]",sve="[object DataView]",lve="[object Float32Array]",uve="[object Float64Array]",cve="[object Int8Array]",dve="[object Int16Array]",hve="[object Int32Array]",fve="[object Uint8Array]",pve="[object Uint8ClampedArray]",mve="[object Uint16Array]",gve="[object Uint32Array]",Ct={};Ct[vP]=Ct[Yge]=Ct[ove]=Ct[sve]=Ct[Xge]=Ct[Kge]=Ct[lve]=Ct[uve]=Ct[cve]=Ct[dve]=Ct[hve]=Ct[Jge]=Ct[eve]=Ct[bP]=Ct[tve]=Ct[rve]=Ct[nve]=Ct[ive]=Ct[fve]=Ct[pve]=Ct[mve]=Ct[gve]=!0;Ct[Zge]=Ct[yP]=Ct[ave]=!1;function wd(e,t,r,n,i,a){var o,s=t&Vge,u=t&Gge,c=t&qge;if(r&&(o=i?r(e,n,i,a):r(e)),o!==void 0)return o;if(!zge(e))return e;var d=$ge(e);if(d){if(o=Ige(e),!s)return Pge(e,o)}else{var h=Nge(e),p=h==yP||h==Qge;if(Bge(e))return Age(e,s);if(h==bP||h==vP||p&&!i){if(o=u||p?{}:Fge(e),!s)return u?Oge(e,Mge(o,e)):Rge(e,Ege(o,e))}else{if(!Ct[h])return i?e:{};o=Lge(e,h,s)}}a||(a=new xge);var m=a.get(e);if(m)return m;a.set(e,o),jge(e)?e.forEach(function(b){o.add(wd(b,t,r,b,e,a))}):Hge(e)&&e.forEach(function(b,C){o.set(C,wd(b,t,r,C,e,a))});var v=c?u?Dge:kge:u?Uge:Wge,g=d?void 0:v(e);return Tge(g||e,function(b,C){g&&(C=b,b=e[C]),Sge(o,C,wd(b,t,r,C,e,a))}),o}var vve=wd,yve=vve,bve=4;function _ve(e){return yve(e,bve)}var wve=_ve;function Cve(e,t){return e<t}var ed=function(){function e(t,r){xt(this,e),this._items=t||[],this._size=this._items.length,this._comparator=r||Cve,this._heapify()}return Tt(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}(),_P=function(){function e(){xt(this,e),this._valueToPositionMap={},this._size=0,this._smallValues=new ed([],this._smallerComparator),this._largeValues=new ed([],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 Tt(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){qn(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(qn(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 ed([],this._smallerComparator),i=new ed([],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}(),Rr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Sm=function(t){return Math.floor(t/2)},xve=Rr.Int32Array||function(e){for(var t=[],r=e-1;r>=0;--r)t[r]=0;return t};function Tve(e){for(var t=1;t<e;)t*=2;return t}var Sve=function(){function e(t){xt(this,e),this._size=t.length,this._half=Tve(this._size),this._heap=new xve(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 Tt(e,[{key:"set",value:function(r,n){qn(0<=r&&r<this._size,"Index out of range %s",r);var i=this._half+r;for(this._heap[i]=n,i=Sm(i);i!==0;i=Sm(i))this._heap[i]=this._heap[2*i]+this._heap[2*i+1]}},{key:"get",value:function(r){qn(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(qn(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=Sm(n))n%2===1&&(i+=this._heap[n-1]);return i}},{key:"sumTo",value:function(r){return qn(0<=r&&r<this._size,"Index out of range %s",r),this.sumUntil(r+1)}},{key:"sum",value:function(r,n){return qn(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 hu(e,t){if(e===t)return!0;if(Ai(e)!=="object"||e===null||Ai(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 De={FIXED:"fixed",FIXED_RIGHT:"fixedRight",SCROLLABLE:"scrollable"};function Ng(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Eve(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.
374
+ 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 Eve(e,t){if(e){if(typeof e=="string")return OC(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 OC(e,t)}}function OC(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 Em(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,d=t.minWidth,h=t.isReorderable,p=t.isResizable,m=t.pureRendering,v=t.width;return{align:r,allowCellsRecycling:n,cellClassName:i,columnKey:a,flexGrow:o,fixed:s,fixedRight:u,maxWidth:c,minWidth:d,isReorderable:h,isResizable:p,pureRendering:m,width:v}}function kC(e,t){e.cell.push(t.props.cell),e.footer.push(t.props.footer),e.header.push(t.props.header)}function Ig(e){var t,r;return e!=null&&(t=e.props)!==null&&t!==void 0&&t.fixed?De.FIXED:e!=null&&(r=e.props)!==null&&r!==void 0&&r.fixedRight?De.FIXED_RIGHT:De.SCROLLABLE}function fu(){var e;return e={},ue(e,De.FIXED,[]),ue(e,De.SCROLLABLE,[]),ue(e,De.FIXED_RIGHT,[]),e}function Mve(){return{groupHeader:[],header:[],cell:[],footer:[]}}function DC(e){var t=fu(),r=Ng(e),n;try{for(r.s();!(n=r.n()).done;){var i=n.value,a=Ig(i);t[a].push(i)}}catch(s){r.e(s)}finally{r.f()}var o=[];return o.push.apply(o,t[De.FIXED]),o.push.apply(o,t[De.SCROLLABLE]),o.push.apply(o,t[De.FIXED_RIGHT]),o}function NC(e,t){return t===De.FIXED?e[De.FIXED].length:t===De.SCROLLABLE?e[De.FIXED].length+e[De.SCROLLABLE].length:e[De.FIXED].length+e[De.SCROLLABLE].length+e[De.FIXED_RIGHT].length}function Ave(e){var t,r,n=[];k.Children.forEach(e,function(m,v){m!=null&&(qn(m.type.__TableColumnGroup__||m.type.__TableColumn__,"child type should be <FixedDataTableColumn /> or <FixedDataTableColumnGroup />"),n.push(m))});var i=fu(),a=fu(),o=Mve(),s=(t=(r=n[0])===null||r===void 0?void 0:r.type.__TableColumnGroup__)!==null&&t!==void 0?t:!1;if(s)(function(){var m=0,v=Ng(DC(n)),g;try{var b=function(){var x=g.value,E=Ig(x),T=Em(x);T.index=NC(a,E),a[E].push(T),o.groupHeader.push(x.props.header),k.Children.forEach(x.props.children,function(A){var R=Em(A);R.index=m++,R.groupIdx=T.index,i[E].push(R),kC(o,A)})};for(v.s();!(g=v.n()).done;)b()}catch(C){v.e(C)}finally{v.f()}})();else{var u=Ng(DC(n)),c;try{for(u.s();!(c=u.n()).done;){var d=c.value,h=Ig(d),p=Em(d);p.index=NC(i,h),i[h].push(p),kC(o,d)}}catch(m){u.e(m)}finally{u.f()}}return{columnGroupElements:a,columnElements:i,elementTemplates:o,useGroupHeader:s}}function If(e,t,r){return e<t?t:e>r?r:e}var th="NOT_FOUND";function Pve(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:th},put:function(n,i){t={key:n,value:i}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Rve(e,t){var r=[];function n(s){var u=r.findIndex(function(d){return t(s,d.key)});if(u>-1){var c=r[u];return u>0&&(r.splice(u,1),r.unshift(c)),c.value}return th}function i(s,u){n(s)===th&&(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 Ove=function(t,r){return t===r};function kve(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 Dve(e,t){var r=typeof t=="object"?t:{equalityCheck:t},n=r.equalityCheck,i=n===void 0?Ove:n,a=r.maxSize,o=a===void 0?1:a,s=r.resultEqualityCheck,u=kve(i),c=o===1?Pve(u):Rve(o,u);function d(){var h=c.get(arguments);if(h===th){if(h=e.apply(null,arguments),s){var p=c.getEntries(),m=p.find(function(v){return s(v.value,h)});m&&(h=m.value)}c.put(arguments,h)}return h}return d.clearCache=function(){return c.clear()},d}function Nve(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 Ive(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,d,h={memoizeOptions:void 0},p=s.pop();if(typeof p=="object"&&(h=p,p=s.pop()),typeof p!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof p+"]");var m=h,v=m.memoizeOptions,g=v===void 0?r:v,b=Array.isArray(g)?g:[g],C=Nve(s),x=e.apply(void 0,[function(){return c++,p.apply(null,arguments)}].concat(b)),E=e(function(){for(var A=[],R=C.length,D=0;D<R;D++)A.push(C[D].apply(null,arguments));return d=x.apply(null,A),d});return Object.assign(E,{resultFunc:p,memoizedResultFunc:x,dependencies:C,lastResult:function(){return d},recomputations:function(){return c},resetRecomputations:function(){return c=0}}),E};return i}var Lf=Ive(Dve),ki=Lf;function Lve(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Fve(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.
375
+ 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 Fve(e,t){if(e){if(typeof e=="string")return IC(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 IC(e,t)}}function IC(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 wP=[],$ve={},xb={memoizeOptions:{maxSize:12}},Cd=Lf(function(e){return e||wP},function(e){return e.reduce(function(t,r){return t+r.props.width},0)},xb),Xo=Lf(function(e){return e||wP},function(e){return e.reduce(function(t,r){return t+r.width},0)},xb);function CP(e){return Xo(e.fixed)+Xo(e.fixedRight)+Xo(e.scrollable)}var Bve=Lf(function(e){return e||$ve},function(e){var t=Array.prototype.concat.call(e.fixed,e.scrollable,e.fixedRight),r=0,n=Lve(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},xb),Hve=1,zve=3,jve=6,Ki={HIDDEN:"hidden",JOINT_SCROLLBARS:"JOINT_SCROLLBARS",VISIBLE:"visible"};function Wve(e,t,r,n,i,a,o){var s=t.cellGroupWrapperHeight,u=t.footerHeight,c=t.headerHeight,d=t.groupHeaderHeight,h=s?0:2*Hve,p=u+c+d+h,m=i.height,v=i.maxHeight,g=i.useMaxHeight,b=i.width,C=Math.round(g?v:m),x=C-p,E=Uve(e,n,b,o),T=x,A=x;switch(E){case Ki.VISIBLE:{T-=a,A-=a;break}case Ki.JOINT_SCROLLBARS:{T-=a;break}}return{bufferRowCount:Vve(A,r),minAvailableHeight:Math.max(T,0),maxAvailableHeight:Math.max(A,0),reservedHeight:p,scrollStateX:E}}function Uve(e,t,r,n){var i=t.overflowX,a=t.showScrollbarX,o=CP(e);return i==="hidden"||a===!1?Ki.HIDDEN:o>r?Ki.VISIBLE:o>r-n?Ki.JOINT_SCROLLBARS:Ki.HIDDEN}function Vve(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 If(Math.floor(o/2),zve,jve)}var Tb=ki([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}],Wve);function Gve(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,d=!1;u===Ki.VISIBLE&&(d=!0),a&&t>s&&(c=!0),c&&u===Ki.JOINT_SCROLLBARS&&(d=!0);var h=s;return d&&(h=o),{availableHeight:h,scrollEnabledX:d,scrollEnabledY:c}}var Ba=ki([Tb,function(e){return e.scrollContentHeight},function(e){return e.scrollFlags}],Gve);function Ea(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 LC(e,t,r){return t.scrollToRow!==void 0&&t.scrollToRow!==null&&(!r||t.scrollToRow!==r.scrollToRow)?qve(e,t.scrollToRow):t.scrollTop!==void 0&&t.scrollTop!==null&&(!r||t.scrollTop!==r.scrollTop)?Lg(e,t.scrollTop):{firstIndex:e.firstRowIndex,firstOffset:e.firstRowOffset,lastIndex:void 0,changed:!1}}function Lg(e,t){var r=Ba(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(),d=c.rowUntilOffsetsAreExact;d<u;)Ea(e,d++);e.getInternal().rowUntilOffsetsAreExact=u}if(u===0)return{firstIndex:0,firstOffset:0,lastIndex:void 0,changed:e.firstRowIndex!==0||e.firstRowOffset!==0};var h=0,p=0,m=void 0;if(!(t<=0))if(t>=a-n)h=void 0,m=u-1;else{var v=s.greatestLowerBound(t);h=If(v,0,Math.max(u-1,0));var g=s.sumUntil(h);p=g-t}return{firstIndex:h,firstOffset:p,lastIndex:m,changed:!0}}function qve(e,t){var r=Ba(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=If(t,0,Math.max(c-1,0)),Ea(e,t);var d=s.sumUntil(t),h=d+u[t],p=t,m=void 0;if(!(d<a))if(a+n<h)p=void 0,m=t;else return{firstIndex:e.firstRowIndex,firstOffset:e.firstRowOffset,lastIndex:void 0,changed:!1};return{firstIndex:p,firstOffset:0,lastIndex:m,changed:!0}}function Yve(e){return e==null}var Fl=Yve;function Xve(e,t,r){return e===e&&(r!==void 0&&(e=e<=r?e:r),t!==void 0&&(e=e>=t?e:t)),e}var Kve=Xve,Zve=/\s/;function Qve(e){for(var t=e.length;t--&&Zve.test(e.charAt(t)););return t}var Jve=Qve,eye=Jve,tye=/^\s+/;function rye(e){return e&&e.slice(0,eye(e)+1).replace(tye,"")}var nye=rye,iye=nye,FC=Za,aye=Tf,$C=NaN,oye=/^[-+]0x[0-9a-f]+$/i,sye=/^0b[01]+$/i,lye=/^0o[0-7]+$/i,uye=parseInt;function cye(e){if(typeof e=="number")return e;if(aye(e))return $C;if(FC(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=FC(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=iye(e);var r=sye.test(e);return r||lye.test(e)?uye(e.slice(2),r?2:8):oye.test(e)?$C:+e}var Sb=cye,dye=Kve,Mm=Sb;function hye(e,t,r){return r===void 0&&(r=t,t=void 0),r!==void 0&&(r=Mm(r),r=r===r?r:0),t!==void 0&&(t=Mm(t),t=t===t?t:0),dye(Mm(e),t,r)}var Ff=hye,fye=Of,pye=rP,mye=dP,gye=wn;function vye(){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 fye(gye(r)?mye(r):[r],pye(t,1))}var BC=vye;function HC(e,t){var r=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=yye(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.
376
+ 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 yye(e,t){if(e){if(typeof e=="string")return zC(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 zC(e,t)}}function zC(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 bye(e,t,r,n,i){var a=r?i:0,o=n-a,s=_ye(e,t,o),u=s.columnGroupElements,c=s.columnElements,d=jC(c),h=d.fixed,p=d.fixedRight,m=d.scrollable,v=jC(u),g=v.fixed,b=v.fixedRight,C=v.scrollable,x=Xo(h),E=Xo(p),T=Xo(m),A=o-x-E,R=Math.max(0,x+E+T-o);return{columnGroupProps:BC(g,C,b),columnProps:BC(h,m,p),availableScrollWidth:A,fixedColumns:h,fixedRightColumns:p,scrollableColumns:m,fixedColumnGroups:g,fixedRightColumnGroups:b,scrollableColumnGroups:C,maxScrollX:R}}function _ye(e,t,r){var n=fu(),i=fu(),a=CP(t),o=Bve(t),s=Math.max(r-a,0),u=[];for(var c in t){var d=t[c],h=0,p=0,m=HC(d),v;try{for(m.s();!(v=m.n()).done;){var g=v.value,b=g.flexGrow||0,C=0;b&&(C=Math.floor(b*s/o));var x=g.width+C;o-=b,s-=C;var E=Ot({},g,{width:x,offset:h});h+=x,u[g.groupIdx]=x+(u[g.groupIdx]||0),i[c][p]=E,p++}}catch($){m.e($)}finally{m.f()}}for(var T in e){var A=e[T],R=0,D=0,I=HC(A),H;try{for(I.s();!(H=I.n()).done;){var G=H.value,q=u[G.index],O=Ot({},G,{width:q,offset:R});R+=q,n[T][D]=O,D++}}catch($){I.e($)}finally{I.f()}}return{columnGroupElements:n,columnElements:i}}function jC(e){return{fixed:e.fixed,fixedRight:e.fixedRight,scrollable:e.scrollable}}var Zu=ki([function(e){return e.columnGroupElements},function(e){return e.columnElements},function(e){return Ba(e).scrollEnabledY},function(e){return e.tableSize.width},function(e){return e.scrollbarYWidth}],bye);function wye(e,t,r){var n=t.scrollLeft,i=e.scrollX;n!==void 0&&(!r||n!==r.scrollLeft)&&(i=n),i=Cye(e,t,r.scrollToColumn,i);var a=Zu(e),o=a.maxScrollX;i=Ff(i,0,o),Ot(e,{maxScrollX:o,scrollX:i})}function Cye(e,t,r,n){var i=t.scrollToColumn;if(Fl(i))return n;var a=Zu(e),o=a.availableScrollWidth,s=a.fixedColumns,u=a.scrollableColumns,c=s.length,d=u.length,h=d===0,p=i===r,m=i<c,v=i>=c+d;if(p||m||v||h)return n;for(var g=Math.min(i-c,u.length-1),b=0,C=0;C<g;++C)b+=u[C].width;var x=u[g].width,E=b+x-o;return n<E?E:n>b?b:n}var WC={initialize:wye};function xye(e,t,r,n,i,a,o){var s=i.availableHeight,u=i.scrollEnabledX,c=r;u&&(c+=o);var d=Math.min(s,n),h=a?d:s,p=h+c,m=h;t<p&&(m=t-c);var v=a?n:Math.max(n,s),g=v+c;t&&(g=Math.max(t,g));var b=e.footerHeight,C=e.groupHeaderHeight,x=e.headerHeight,E=C+x,T=E+m,A=T+b,R=Math.max(0,T-E);return{bodyHeight:d,bodyOffsetTop:E,componentHeight:p,contentHeight:g,footOffsetTop:T,scrollbarXOffsetTop:A,scrollbarYHeight:R,visibleRowsHeight:m}}var Ho=ki([function(e){return e.elementHeights},function(e){return e.tableSize.ownerHeight},function(e){return Tb(e).reservedHeight},function(e){return e.scrollContentHeight},Ba,function(e){return e.tableSize.useMaxHeight},function(e){return e.scrollbarXHeight}],xye);function cl(e,t){var r=UC(e,t),n=e.rowSettings,i=e.scrollContentHeight,a=n.rowsCount,o=Ho(e),s=o.bodyHeight,u=i-s,c;u===0?(r.firstViewportIdx>0&&(r=UC(e,{firstOffset:0,lastIndex:a-1})),c=0):c=r.firstOffset;var d=r.firstViewportIdx,h=r.endViewportIdx;Tye(e,r,e.scrolling);var p=0;a>0&&(p=e.rowOffsets[r.firstViewportIdx]-c),p=Ff(p,0,u),Ot(e,{firstRowIndex:d,firstRowOffset:c,endRowIndex:h,maxScrollY:u,scrollY:p})}function UC(e,t){var r=Tb(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,d=o,h=s;u!==void 0&&(c=-1,d=u,h=0);for(var p=d,m=p;p<a&&p>=0&&h<i;)h+=Ea(e,p),m=p,p+=c;var v=!1;if(h<i&&p===a&&u===void 0)for(v=!0,p=o-1;p>=0&&h<i;)h+=Ea(e,p),d=p,--p;var g=Math.min(d,m),b=Math.max(g-n,0);for(p=b;p<g;p++)Ea(e,p);var C=Math.max(d,m)+1,x=Math.min(C+n,a);for(p=C;p<x;p++)Ea(e,p);var E=Ba(e),T=E.availableHeight;if(u!==void 0||v){s=s+Math.min(T-h,0);var A=e.getInternal(),R=A.storedHeights;-1*s>=R[g]&&(g+=1,s+=R[g])}return{endBufferIdx:x,endViewportIdx:C,firstBufferIdx:b,firstOffset:s,firstViewportIdx:g}}function Tye(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,d=t.firstViewportIdx,h=s-c;if(h===0){e.rowOffsets={},e.rows=[];return}for(var p=r?d:c,m=r?u:s,v=[],g={},b=a.sumUntil(p),C=p;C<m;C++){g[C]=b,b+=o[C];var x=Sye(C,i,p,m,h);v[x]=C}e.rows=v,e.rowOffsets=g}function Sye(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 Fg={exports:{}},rh={exports:{}},ut={};/** @license React v16.13.1
377
+ * react-is.production.min.js
378
+ *
379
+ * Copyright (c) Facebook, Inc. and its affiliates.
380
+ *
381
+ * This source code is licensed under the MIT license found in the
382
+ * LICENSE file in the root directory of this source tree.
383
+ */var cr=typeof Symbol=="function"&&Symbol.for,Eb=cr?Symbol.for("react.element"):60103,Mb=cr?Symbol.for("react.portal"):60106,$f=cr?Symbol.for("react.fragment"):60107,Bf=cr?Symbol.for("react.strict_mode"):60108,Hf=cr?Symbol.for("react.profiler"):60114,zf=cr?Symbol.for("react.provider"):60109,jf=cr?Symbol.for("react.context"):60110,Ab=cr?Symbol.for("react.async_mode"):60111,Wf=cr?Symbol.for("react.concurrent_mode"):60111,Uf=cr?Symbol.for("react.forward_ref"):60112,Vf=cr?Symbol.for("react.suspense"):60113,Eye=cr?Symbol.for("react.suspense_list"):60120,Gf=cr?Symbol.for("react.memo"):60115,qf=cr?Symbol.for("react.lazy"):60116,Mye=cr?Symbol.for("react.block"):60121,Aye=cr?Symbol.for("react.fundamental"):60117,Pye=cr?Symbol.for("react.responder"):60118,Rye=cr?Symbol.for("react.scope"):60119;function an(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Eb:switch(e=e.type,e){case Ab:case Wf:case $f:case Hf:case Bf:case Vf:return e;default:switch(e=e&&e.$$typeof,e){case jf:case Uf:case qf:case Gf:case zf:return e;default:return t}}case Mb:return t}}}function xP(e){return an(e)===Wf}ut.AsyncMode=Ab;ut.ConcurrentMode=Wf;ut.ContextConsumer=jf;ut.ContextProvider=zf;ut.Element=Eb;ut.ForwardRef=Uf;ut.Fragment=$f;ut.Lazy=qf;ut.Memo=Gf;ut.Portal=Mb;ut.Profiler=Hf;ut.StrictMode=Bf;ut.Suspense=Vf;ut.isAsyncMode=function(e){return xP(e)||an(e)===Ab};ut.isConcurrentMode=xP;ut.isContextConsumer=function(e){return an(e)===jf};ut.isContextProvider=function(e){return an(e)===zf};ut.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Eb};ut.isForwardRef=function(e){return an(e)===Uf};ut.isFragment=function(e){return an(e)===$f};ut.isLazy=function(e){return an(e)===qf};ut.isMemo=function(e){return an(e)===Gf};ut.isPortal=function(e){return an(e)===Mb};ut.isProfiler=function(e){return an(e)===Hf};ut.isStrictMode=function(e){return an(e)===Bf};ut.isSuspense=function(e){return an(e)===Vf};ut.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===$f||e===Wf||e===Hf||e===Bf||e===Vf||e===Eye||typeof e=="object"&&e!==null&&(e.$$typeof===qf||e.$$typeof===Gf||e.$$typeof===zf||e.$$typeof===jf||e.$$typeof===Uf||e.$$typeof===Aye||e.$$typeof===Pye||e.$$typeof===Rye||e.$$typeof===Mye)};ut.typeOf=an;var lt={};/** @license React v16.13.1
384
+ * react-is.development.js
385
+ *
386
+ * Copyright (c) Facebook, Inc. and its affiliates.
387
+ *
388
+ * This source code is licensed under the MIT license found in the
389
+ * LICENSE file in the root directory of this source tree.
390
+ */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,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,x=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===h||J===p||typeof J=="object"&&J!==null&&(J.$$typeof===v||J.$$typeof===m||J.$$typeof===o||J.$$typeof===s||J.$$typeof===d||J.$$typeof===b||J.$$typeof===C||J.$$typeof===x||J.$$typeof===g)}function T(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 h:return ve;default:var Ae=ve&&ve.$$typeof;switch(Ae){case s:case d:case v:case m:case o:return Ae;default:return _e}}case r:return _e}}}var A=u,R=c,D=s,I=o,H=t,G=d,q=n,O=v,$=m,X=r,j=a,V=i,z=h,Y=!1;function re(J){return Y||(Y=!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.")),W(J)||T(J)===u}function W(J){return T(J)===c}function K(J){return T(J)===s}function ie(J){return T(J)===o}function ne(J){return typeof J=="object"&&J!==null&&J.$$typeof===t}function te(J){return T(J)===d}function oe(J){return T(J)===n}function se(J){return T(J)===v}function de(J){return T(J)===m}function ce(J){return T(J)===r}function ge(J){return T(J)===a}function Se(J){return T(J)===i}function ye(J){return T(J)===h}lt.AsyncMode=A,lt.ConcurrentMode=R,lt.ContextConsumer=D,lt.ContextProvider=I,lt.Element=H,lt.ForwardRef=G,lt.Fragment=q,lt.Lazy=O,lt.Memo=$,lt.Portal=X,lt.Profiler=j,lt.StrictMode=V,lt.Suspense=z,lt.isAsyncMode=re,lt.isConcurrentMode=W,lt.isContextConsumer=K,lt.isContextProvider=ie,lt.isElement=ne,lt.isForwardRef=te,lt.isFragment=oe,lt.isLazy=se,lt.isMemo=de,lt.isPortal=ce,lt.isProfiler=ge,lt.isStrictMode=Se,lt.isSuspense=ye,lt.isValidElementType=E,lt.typeOf=T}();process.env.NODE_ENV==="production"?rh.exports=ut:rh.exports=lt;/*
391
+ object-assign
392
+ (c) Sindre Sorhus
393
+ @license MIT
394
+ */var VC=Object.getOwnPropertySymbols,Oye=Object.prototype.hasOwnProperty,kye=Object.prototype.propertyIsEnumerable;function Dye(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Nye(){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 Iye=Nye()?Object.assign:function(e,t){for(var r,n=Dye(e),i,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var o in r)Oye.call(r,o)&&(n[o]=r[o]);if(VC){i=VC(r);for(var s=0;s<i.length;s++)kye.call(r,i[s])&&(n[i[s]]=r[i[s]])}}return n},Lye="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Pb=Lye,TP=Function.call.bind(Object.prototype.hasOwnProperty),$g=function(){};if(process.env.NODE_ENV!=="production"){var Fye=Pb,Bg={},$ye=TP;$g=function(e){var t="Warning: "+e;typeof console!="undefined"&&console.error(t);try{throw new Error(t)}catch(r){}}}function SP(e,t,r,n,i){if(process.env.NODE_ENV!=="production"){for(var a in e)if($ye(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,Fye)}catch(c){o=c}if(o&&!(o instanceof Error)&&$g((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 Bg)){Bg[o.message]=!0;var u=i?i():"";$g("Failed "+r+" type: "+o.message+(u!=null?u:""))}}}}SP.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(Bg={})};var Bye=SP,Hye=rh.exports,zye=Iye,Eo=Pb,Am=TP,GC=Bye,No=function(){};process.env.NODE_ENV!=="production"&&(No=function(e){var t="Warning: "+e;typeof console!="undefined"&&console.error(t);try{throw new Error(t)}catch(r){}});function td(){return null}var jye=function(e,t){var r=typeof Symbol=="function"&&Symbol.iterator,n="@@iterator";function i($){var X=$&&(r&&$[r]||$[n]);if(typeof X=="function")return X}var a="<<anonymous>>",o={array:d("array"),bigint:d("bigint"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:h(),arrayOf:p,element:m(),elementType:v(),instanceOf:g,node:E(),objectOf:C,oneOf:b,oneOfType:x,shape:A,exact:R};function s($,X){return $===X?$!==0||1/$===1/X:$!==$&&X!==X}function u($,X){this.message=$,this.data=X&&typeof X=="object"?X:{},this.stack=""}u.prototype=Error.prototype;function c($){if(process.env.NODE_ENV!=="production")var X={},j=0;function V(Y,re,W,K,ie,ne,te){if(K=K||a,ne=ne||W,te!==Eo){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=K+":"+W;!X[se]&&j<3&&(No("You are manually calling a React.PropTypes validation function for the `"+ne+"` prop on `"+K+"`. 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."),X[se]=!0,j++)}}return re[W]==null?Y?re[W]===null?new u("The "+ie+" `"+ne+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new u("The "+ie+" `"+ne+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:$(re,W,K,ie,ne)}var z=V.bind(null,!1);return z.isRequired=V.bind(null,!0),z}function d($){function X(j,V,z,Y,re,W){var K=j[V],ie=H(K);if(ie!==$){var ne=G(K);return new u("Invalid "+Y+" `"+re+"` of type "+("`"+ne+"` supplied to `"+z+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return c(X)}function h(){return c(td)}function p($){function X(j,V,z,Y,re){if(typeof $!="function")return new u("Property `"+re+"` of component `"+z+"` has invalid PropType notation inside arrayOf.");var W=j[V];if(!Array.isArray(W)){var K=H(W);return new u("Invalid "+Y+" `"+re+"` of type "+("`"+K+"` supplied to `"+z+"`, expected an array."))}for(var ie=0;ie<W.length;ie++){var ne=$(W,ie,z,Y,re+"["+ie+"]",Eo);if(ne instanceof Error)return ne}return null}return c(X)}function m(){function $(X,j,V,z,Y){var re=X[j];if(!e(re)){var W=H(re);return new u("Invalid "+z+" `"+Y+"` of type "+("`"+W+"` supplied to `"+V+"`, expected a single ReactElement."))}return null}return c($)}function v(){function $(X,j,V,z,Y){var re=X[j];if(!Hye.isValidElementType(re)){var W=H(re);return new u("Invalid "+z+" `"+Y+"` of type "+("`"+W+"` supplied to `"+V+"`, expected a single ReactElement type."))}return null}return c($)}function g($){function X(j,V,z,Y,re){if(!(j[V]instanceof $)){var W=$.name||a,K=O(j[V]);return new u("Invalid "+Y+" `"+re+"` of type "+("`"+K+"` supplied to `"+z+"`, expected ")+("instance of `"+W+"`."))}return null}return c(X)}function b($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&(arguments.length>1?No("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])."):No("Invalid argument supplied to oneOf, expected an array.")),td;function X(j,V,z,Y,re){for(var W=j[V],K=0;K<$.length;K++)if(s(W,$[K]))return null;var ie=JSON.stringify($,function(te,oe){var se=G(oe);return se==="symbol"?String(oe):oe});return new u("Invalid "+Y+" `"+re+"` of value `"+String(W)+"` "+("supplied to `"+z+"`, expected one of "+ie+"."))}return c(X)}function C($){function X(j,V,z,Y,re){if(typeof $!="function")return new u("Property `"+re+"` of component `"+z+"` has invalid PropType notation inside objectOf.");var W=j[V],K=H(W);if(K!=="object")return new u("Invalid "+Y+" `"+re+"` of type "+("`"+K+"` supplied to `"+z+"`, expected an object."));for(var ie in W)if(Am(W,ie)){var ne=$(W,ie,z,Y,re+"."+ie,Eo);if(ne instanceof Error)return ne}return null}return c(X)}function x($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&No("Invalid argument supplied to oneOfType, expected an instance of array."),td;for(var X=0;X<$.length;X++){var j=$[X];if(typeof j!="function")return No("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+q(j)+" at index "+X+"."),td}function V(z,Y,re,W,K){for(var ie=[],ne=0;ne<$.length;ne++){var te=$[ne],oe=te(z,Y,re,W,K,Eo);if(oe==null)return null;oe.data&&Am(oe.data,"expectedType")&&ie.push(oe.data.expectedType)}var se=ie.length>0?", expected one of type ["+ie.join(", ")+"]":"";return new u("Invalid "+W+" `"+K+"` supplied to "+("`"+re+"`"+se+"."))}return c(V)}function E(){function $(X,j,V,z,Y){return D(X[j])?null:new u("Invalid "+z+" `"+Y+"` supplied to "+("`"+V+"`, expected a ReactNode."))}return c($)}function T($,X,j,V,z){return new u(($||"React class")+": "+X+" type `"+j+"."+V+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+z+"`.")}function A($){function X(j,V,z,Y,re){var W=j[V],K=H(W);if(K!=="object")return new u("Invalid "+Y+" `"+re+"` of type `"+K+"` "+("supplied to `"+z+"`, expected `object`."));for(var ie in $){var ne=$[ie];if(typeof ne!="function")return T(z,Y,re,ie,G(ne));var te=ne(W,ie,z,Y,re+"."+ie,Eo);if(te)return te}return null}return c(X)}function R($){function X(j,V,z,Y,re){var W=j[V],K=H(W);if(K!=="object")return new u("Invalid "+Y+" `"+re+"` of type `"+K+"` "+("supplied to `"+z+"`, expected `object`."));var ie=zye({},j[V],$);for(var ne in ie){var te=$[ne];if(Am($,ne)&&typeof te!="function")return T(z,Y,re,ne,G(te));if(!te)return new u("Invalid "+Y+" `"+re+"` key `"+ne+"` supplied to `"+z+"`.\nBad object: "+JSON.stringify(j[V],null," ")+`
395
+ Valid keys: `+JSON.stringify(Object.keys($),null," "));var oe=te(W,ne,z,Y,re+"."+ne,Eo);if(oe)return oe}return null}return c(X)}function D($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(D);if($===null||e($))return!0;var X=i($);if(X){var j=X.call($),V;if(X!==$.entries){for(;!(V=j.next()).done;)if(!D(V.value))return!1}else for(;!(V=j.next()).done;){var z=V.value;if(z&&!D(z[1]))return!1}}else return!1;return!0;default:return!1}}function I($,X){return $==="symbol"?!0:X?X["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&X instanceof Symbol:!1}function H($){var X=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":I(X,$)?"symbol":X}function G($){if(typeof $=="undefined"||$===null)return""+$;var X=H($);if(X==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return X}function q($){var X=G($);switch(X){case"array":case"object":return"an "+X;case"boolean":case"date":case"regexp":return"a "+X;default:return X}}function O($){return!$.constructor||!$.constructor.name?a:$.constructor.name}return o.checkPropTypes=GC,o.resetWarningCache=GC.resetWarningCache,o.PropTypes=o,o},Wye=Pb;function EP(){}function MP(){}MP.resetWarningCache=EP;var Uye=function(){function e(n,i,a,o,s,u){if(u!==Wye){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:MP,resetWarningCache:EP};return r.PropTypes=r,r};if(process.env.NODE_ENV!=="production"){var Vye=rh.exports,Gye=!0;Fg.exports=jye(Vye.isElement,Gye)}else Fg.exports=Uye();var U=Fg.exports,qye=/\//g,rd={};function Yye(e){return rd[e]||(rd[e]=e.replace(qye,"_")),rd[e]}function ke(e){var t;return Ai(e)=="object"?t=Object.keys(e).filter(function(r){return e[r]}):t=Array.prototype.slice.call(arguments),t.map(Yye).join(" ")}function Yf(e){return function(){return e}}function ur(){}ur.thatReturns=Yf;ur.thatReturnsFalse=Yf(!1);ur.thatReturnsTrue=Yf(!0);ur.thatReturnsNull=Yf(null);ur.thatReturnsThis=function(){return this};ur.thatReturnsArgument=function(e){return e};var Un={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},qC=!1,xa,Hg,zg,xd,Td,AP,Sd,jg,Wg,Ug,PP,Vg,Gg,RP,OP;function Fr(){if(!qC){qC=!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(Vg=/\b(iPhone|iP[ao]d)/.exec(e),Gg=/\b(iP[ao]d)/.exec(e),Ug=/Android/i.exec(e),RP=/FBAN\/\w+;/i.exec(e),OP=/Mobile/i.exec(e),PP=!!/Win64/.exec(e),t){xa=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,xa&&document&&document.documentMode&&(xa=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);AP=n?parseFloat(n[1])+4:xa,Hg=t[2]?parseFloat(t[2]):NaN,zg=t[3]?parseFloat(t[3]):NaN,xd=t[4]?parseFloat(t[4]):NaN,xd?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Td=t&&t[1]?parseFloat(t[1]):NaN):Td=NaN}else xa=Hg=zg=Td=xd=NaN;if(r){if(r[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Sd=i?parseFloat(i[1].replace("_",".")):!0}else Sd=!1;jg=!!r[2],Wg=!!r[3]}else Sd=jg=Wg=!1}}var qg={ie:function(){return Fr()||xa},ieCompatibilityMode:function(){return Fr()||AP>xa},ie64:function(){return qg.ie()&&PP},firefox:function(){return Fr()||Hg},opera:function(){return Fr()||zg},webkit:function(){return Fr()||xd},safari:function(){return qg.webkit()},chrome:function(){return Fr()||Td},windows:function(){return Fr()||jg},osx:function(){return Fr()||Sd},linux:function(){return Fr()||Wg},iphone:function(){return Fr()||Vg},mobile:function(){return Fr()||Vg||Gg||Ug||OP},nativeApp:function(){return Fr()||RP},android:function(){return Fr()||Ug},ipad:function(){return Fr()||Gg}},nd=!!(typeof window!="undefined"&&window.document&&window.document.createElement),Rb={canUseDOM:nd,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:nd&&!!(window.addEventListener||window.attachEvent),canUseViewport:nd&&!!window.screen,isInWorker:!nd},kP;Rb.canUseDOM&&(kP=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
396
+ * Checks if an event is supported in the current execution environment.
397
+ *
398
+ * NOTE: This will not work correctly for non-generic events such as `change`,
399
+ * `reset`, `load`, `error`, and `select`.
400
+ *
401
+ * Borrows from Modernizr.
402
+ *
403
+ * @param {string} eventNameSuffix Event name, e.g. "click".
404
+ * @param {?boolean} capture Check if the capture phase is supported.
405
+ * @return {boolean} True if the event is supported.
406
+ * @internal
407
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
408
+ */function Xye(e,t){if(!Rb.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&&kP&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var YC=10,XC=40,KC=800;function DP(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*YC,i=r*YC,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||i)&&e.deltaMode&&(e.deltaMode==1?(n*=XC,i*=XC):(n*=KC,i*=KC)),n&&!t&&(t=n<1?-1:1),i&&!r&&(r=i<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:i}}DP.getEventType=function(){return qg.firefox()?"DOMMouseScroll":Xye("wheel")?"wheel":"mousewheel"};var Kye=Rr.requestAnimationFrame||Rr.webkitRequestAnimationFrame||Rr.mozRequestAnimationFrame||Rr.oRequestAnimationFrame||Rr.msRequestAnimationFrame,ZC=0,Qi=Kye||function(e){var t=Date.now(),r=Math.max(0,16-(t-ZC));return ZC=t+r,Rr.setTimeout(function(){e(Date.now())},r)};Qi(ur);var NP=function(){function e(t,r,n,i,a,o){xt(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?ur.thatReturnsTrue:ur.thatReturnsFalse),typeof n!="function"&&(n=n?ur.thatReturnsTrue:ur.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 Tt(e,[{key:"onWheel",value:function(r){this._preventDefault&&r.preventDefault();var n=DP(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=Qi(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}(),Mo={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:ur})},registerDefault:function(){}},IP=Rr.cancelAnimationFrame||Rr.webkitCancelAnimationFrame||Rr.mozCancelAnimationFrame||Rr.oCancelAnimationFrame||Rr.msCancelAnimationFrame||Rr.clearTimeout;function Zye(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 Yg={getCoordinatesFromEvent:Zye},Ob=function(){function e(t,r,n,i){xt(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 Tt(e,[{key:"captureMouseMoves",value:function(r){if(!this._eventMoveToken&&!this._eventUpToken&&!this._eventLeaveToken&&(this._eventMoveToken=Mo.listen(this._domNode,"mousemove",this._onMouseMove),this._eventUpToken=Mo.listen(this._domNode,"mouseup",this._onMouseUp),this._eventLeaveToken=Mo.listen(this._domNode,"mouseleave",this._onMouseEnd)),this._isTouchEnabled&&!this._eventTouchStartToken&&!this._eventTouchMoveToken&&!this._eventTouchEndToken&&(this._eventTouchStartToken=Mo.listen(this._domNode,"touchstart",this._onMouseMove,{passive:!1}),this._eventTouchMoveToken=Mo.listen(r.target,"touchmove",this._onMouseMove,{passive:!1}),this._eventTouchEndToken=Mo.listen(r.target,"touchend",this._onMouseUp,{passive:!1})),!this._isDragging){this._deltaX=0,this._deltaY=0,this._isDragging=!0;var n=Yg.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&&(IP(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=Yg.getCoordinatesFromEvent(r),i=n.x,a=n.y;this._deltaX+=i-this._x,this._deltaY+=a-this._y,this._animationFrameID===null&&(this._animationFrameID=Qi(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}(),Xg={"--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 Xf(e){if(Xg.hasOwnProperty(e))return Xg[e];throw new Error('cssVar("'+e+'"): Unexpected class transformation.')}Xf.CSS_VARS=Xg;var Qye=/-(.)/g;function Jye(e){return e.replace(Qye,function(t,r){return r.toUpperCase()})}var Pm={},Kg=["Webkit","ms","Moz","O"],ebe=new RegExp("^("+Kg.join("|")+")"),LP=Rb.canUseDOM?document.createElement("div").style:{};function tbe(e){for(var t=0;t<Kg.length;t++){var r=Kg[t]+e;if(r in LP)return r}return null}function zo(e){var t=Jye(e);if(Pm[t]===void 0){var r=t.charAt(0).toUpperCase()+t.slice(1);ebe.test(r)&&qn(!1,"getVendorPrefixedName must only be called with unprefixedCSS property names. It was called with %s",e),Pm[t]=t in LP?t:tbe(r)}return Pm[t]}var Zg={hasCSSAnimations:function(){return!!zo("animationName")},hasCSSTransforms:function(){return!!zo("transform")},hasCSS3DTransforms:function(){return!!zo("perspective")},hasCSSTransitions:function(){return!!zo("transition")}},QC=zo("transform");zo("backfaceVisibility");var rbe=function(){if(Zg.hasCSSTransforms()){var e=Rr.window?Rr.window.navigator.userAgent:"UNKNOWN",t=/Safari\//.test(e)&&!/Chrome\//.test(e);return!t&&Zg.hasCSS3DTransforms()?function(r,n,i){r[QC]="translate3d("+n+"px,"+i+"px,0)"}:function(r,n,i){r[QC]="translate("+n+"px,"+i+"px)"}}else return function(r,n,i){r.left=n+"px",r.top=i+"px"}}();function as(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"):(Zg.hasCSSTransforms()&&(t*=i?-1:1),e.left=0,rbe(e,t,r)),i&&(e.right=e.left,e.left="auto"))}function nbe(e){var t=ibe();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function ibe(){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 abe={position:0,scrollable:!1},FP=parseInt(Xf("--scrollbar-face-margin"),10),JC=FP*2,Rm=30,$P=40,Kr=function(e){Jt(r,e);var t=nbe(r);function r(n){var i;return xt(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 abe;var d="".concat(a,"_").concat(c,"_").concat(s,"_").concat(u);if(i._stateKey===d)return i._stateForKey;var h=u==="horizontal",p=c/s,m=c*p;m<Rm&&(p=(c-Rm)/(s-c),m=Rm);var v=!0,g=s-c;a<0?a=0:a>g&&(a=g);var b={faceSize:m,isHorizontal:h,position:a,scale:p,scrollable:v};return i._stateKey=d,i._stateForKey=b,b}),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,d,h=a.nativeEvent,p=i.state.isHorizontal?(s=(u=h.offsetX)!==null&&u!==void 0?u:h.layerX)!==null&&s!==void 0?s:i.getTouchX(h):(c=(d=h.offsetY)!==null&&d!==void 0?d:h.layerY)!==null&&c!==void 0?c:i.getTouchY(h),m=i.props;p/=i.state.scale,o=i._calculateState(p-i.state.faceSize*.5/i.state.scale,m.size,m.contentSize,m.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=Xr.flushSync||function(d){return d()};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!==Un.TAB){var s=$P,u=0;if(i.state.isHorizontal)switch(o){case Un.HOME:u=-1,s=i.props.contentSize;break;case Un.LEFT:u=-1;break;case Un.RIGHT:u=1;break;default:return}if(!i.state.isHorizontal)switch(o){case Un.SPACE:a.shiftKey?u=-1:u=1;break;case Un.HOME:u=-1,s=i.props.contentSize;break;case Un.UP:u=-1;break;case Un.DOWN:u=1;break;case Un.PAGE_UP:u=-1,s=i.props.size;break;case Un.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 Tt(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,d=this.state.faceSize,h=this.props.isOpaque,p=this.props.verticalTop||0,m=ke({"ScrollbarLayout/main":!0,"ScrollbarLayout/mainVertical":u,"ScrollbarLayout/mainHorizontal":s,"public/Scrollbar/main":!0,"public/Scrollbar/mainOpaque":h,"public/Scrollbar/mainActive":c}),v=ke({"ScrollbarLayout/face":!0,"ScrollbarLayout/faceHorizontal":s,"ScrollbarLayout/faceVertical":u,"public/Scrollbar/faceActive":c,"public/Scrollbar/face":!0}),g=this.state.position*this.state.scale+FP;return s?(a={width:i},o={width:d-JC,top:0,bottom:0},as(o,g,0,this._initialRender,this.props.isRTL)):(a={top:p,height:i},this.props.isRTL&&(a.left=a.right||0,a.right="auto"),o={height:d-JC},as(o,0,g,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=Xf("--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:m,style:a,ref:this._onRefRoot},k.createElement("div",{ref:this._onRefFace,className:v,style:o}))}},{key:"componentDidMount",value:function(){var i=this.props.orientation==="horizontal",a=i?this._onWheelX:this._onWheelY;this._wheelHandler=new NP(a,this._shouldHandleX,this._shouldHandleY,this.props.isRTL),this._rootRef&&this._rootRef.addEventListener("wheel",this._wheelHandler.onWheel,{passive:!1}),this._mouseMoveTracker=new Ob(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(Kr,"propTypes",{contentSize:U.number.isRequired,defaultPosition:U.number,isOpaque:U.bool,orientation:U.oneOf(["vertical","horizontal"]),onScroll:U.func,position:U.number,size:U.number.isRequired,trackColor:U.oneOf(["gray"]),touchEnabled:U.bool,zIndex:U.number,verticalTop:U.number,isRTL:U.bool});ue(Kr,"defaultProps",{defaultPosition:0,isOpaque:!1,onScroll:ur,orientation:"vertical",zIndex:99});Kr.KEYBOARD_SCROLL_AMOUNT=$P;Kr.SIZE=parseInt(Xf("--scrollbar-size"),10);Kr.OFFSET=1;function er(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=mbe[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 Pi(e){return!!e&&!!e[Et]}function aa(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)===gbe}(e)||Array.isArray(e)||!!e[ox]||!!e.constructor[ox]||kb(e)||Db(e))}function obe(e){return Pi(e)||er(23,e),e[Et].t}function Ha(e,t,r){r===void 0&&(r=!1),Ns(e)===0?(r?Object.keys:Zo)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,i){return t(i,n,e)})}function Ns(e){var t=e[Et];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:kb(e)?2:Db(e)?3:0}function Ko(e,t){return Ns(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function sbe(e,t){return Ns(e)===2?e.get(t):e[t]}function BP(e,t,r){var n=Ns(e);n===2?e.set(t,r):n===3?(e.delete(t),e.add(r)):e[t]=r}function HP(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function kb(e){return fbe&&e instanceof Map}function Db(e){return pbe&&e instanceof Set}function zi(e){return e.o||e.t}function Nb(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=jP(e);delete t[Et];for(var r=Zo(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 Ib(e,t){return t===void 0&&(t=!1),Lb(e)||Pi(e)||!aa(e)||(Ns(e)>1&&(e.set=e.add=e.clear=e.delete=lbe),Object.freeze(e),t&&Ha(e,function(r,n){return Ib(n,!0)},!0)),e}function lbe(){er(2)}function Lb(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ei(e){var t=tv[e];return t||er(18,e),t}function ube(e,t){tv[e]||(tv[e]=t)}function Qg(){return process.env.NODE_ENV==="production"||os||er(0),os}function Om(e,t){t&&(ei("Patches"),e.u=[],e.s=[],e.v=t)}function nh(e){Jg(e),e.p.forEach(cbe),e.p=null}function Jg(e){e===os&&(os=e.l)}function ex(e){return os={p:[],l:os,h:e,m:!0,_:0}}function cbe(e){var t=e[Et];t.i===0||t.i===1?t.j():t.O=!0}function km(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.g||ei("ES5").S(t,e,n),n?(r[Et].P&&(nh(t),er(4)),aa(e)&&(e=ih(t,e),t.l||ah(t,e)),t.u&&ei("Patches").M(r[Et].t,e,t.u,t.s)):e=ih(t,r,[]),nh(t),t.u&&t.v(t.u,t.s),e!==zP?e:void 0}function ih(e,t,r){if(Lb(t))return t;var n=t[Et];if(!n)return Ha(t,function(a,o){return tx(e,n,t,a,o,r)},!0),t;if(n.A!==e)return t;if(!n.P)return ah(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Nb(n.k):n.o;Ha(n.i===3?new Set(i):i,function(a,o){return tx(e,n,i,a,o,r)}),ah(e,i,!1),r&&e.u&&ei("Patches").R(n,r,e.u,e.s)}return n.o}function tx(e,t,r,n,i,a){if(process.env.NODE_ENV!=="production"&&i===r&&er(5),Pi(i)){var o=ih(e,i,a&&t&&t.i!==3&&!Ko(t.D,n)?a.concat(n):void 0);if(BP(r,n,o),!Pi(o))return;e.m=!1}if(aa(i)&&!Lb(i)){if(!e.h.F&&e._<1)return;ih(e,i),t&&t.A.l||ah(e,i)}}function ah(e,t,r){r===void 0&&(r=!1),e.h.F&&e.m&&Ib(t,r)}function Dm(e,t){var r=e[Et];return(r?zi(r):e)[t]}function rx(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 Vi(e){e.P||(e.P=!0,e.l&&Vi(e.l))}function Nm(e){e.o||(e.o=Nb(e.t))}function ev(e,t,r){var n=kb(t)?ei("MapSet").N(t,r):Db(t)?ei("MapSet").T(t,r):e.g?function(i,a){var o=Array.isArray(i),s={i:o?1:0,A:a?a.A:Qg(),P:!1,I:!1,D:{},l:a,t:i,k:null,o:null,j:null,C:!1},u=s,c=pu;o&&(u=[s],c=xl);var d=Proxy.revocable(u,c),h=d.revoke,p=d.proxy;return s.k=p,s.j=h,p}(t,r):ei("ES5").J(t,r);return(r?r.A:Qg()).p.push(n),n}function dbe(e){return Pi(e)||er(22,e),function t(r){if(!aa(r))return r;var n,i=r[Et],a=Ns(r);if(i){if(!i.P&&(i.i<4||!ei("ES5").K(i)))return i.t;i.I=!0,n=nx(r,a),i.I=!1}else n=nx(r,a);return Ha(n,function(o,s){i&&sbe(i.t,o)===s||BP(n,o,t(s))}),a===3?new Set(n):n}(e)}function nx(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Nb(e)}function hbe(){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[Et];return process.env.NODE_ENV!=="production"&&i(c),pu.get(c,o)},set:function(c){var d=this[Et];process.env.NODE_ENV!=="production"&&i(d),pu.set(d,o,c)}},u}function t(o){for(var s=o.length-1;s>=0;s--){var u=o[s][Et];if(!u.P)switch(u.i){case 5:n(u)&&Vi(u);break;case 4:r(u)&&Vi(u)}}}function r(o){for(var s=o.t,u=o.k,c=Zo(u),d=c.length-1;d>=0;d--){var h=c[d];if(h!==Et){var p=s[h];if(p===void 0&&!Ko(s,h))return!0;var m=u[h],v=m&&m[Et];if(v?v.t!==p:!HP(m,p))return!0}}var g=!!s[Et];return c.length!==Zo(s).length+(g?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&&er(3,JSON.stringify(zi(o)))}var a={};ube("ES5",{J:function(o,s){var u=Array.isArray(o),c=function(h,p){if(h){for(var m=Array(p.length),v=0;v<p.length;v++)Object.defineProperty(m,""+v,e(v,!0));return m}var g=jP(p);delete g[Et];for(var b=Zo(g),C=0;C<b.length;C++){var x=b[C];g[x]=e(x,h||!!g[x].enumerable)}return Object.create(Object.getPrototypeOf(p),g)}(u,o),d={i:u?5:4,A:s?s.A:Qg(),P:!1,I:!1,D:{},l:s,t:o,k:c,o:null,O:!1,C:!1};return Object.defineProperty(c,Et,{value:d,writable:!0}),c},S:function(o,s,u){u?Pi(s)&&s[Et].A===o&&t(o.p):(o.u&&function c(d){if(d&&typeof d=="object"){var h=d[Et];if(h){var p=h.t,m=h.k,v=h.D,g=h.i;if(g===4)Ha(m,function(T){T!==Et&&(p[T]!==void 0||Ko(p,T)?v[T]||c(m[T]):(v[T]=!0,Vi(h)))}),Ha(p,function(T){m[T]!==void 0||Ko(m,T)||(v[T]=!1,Vi(h))});else if(g===5){if(n(h)&&(Vi(h),v.length=!0),m.length<p.length)for(var b=m.length;b<p.length;b++)v[b]=!1;else for(var C=p.length;C<m.length;C++)v[C]=!0;for(var x=Math.min(m.length,p.length),E=0;E<x;E++)m.hasOwnProperty(E)||(v[E]=!0),v[E]===void 0&&c(m[E])}}}}(o.p[0]),t(o.p))},K:function(o){return o.i===4?r(o):n(o)}})}var ix,os,Fb=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",fbe=typeof Map!="undefined",pbe=typeof Set!="undefined",ax=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",zP=Fb?Symbol.for("immer-nothing"):((ix={})["immer-nothing"]=!0,ix),ox=Fb?Symbol.for("immer-draftable"):"__$immer_draftable",Et=Fb?Symbol.for("immer-state"):"__$immer_state",mbe={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"},gbe=""+Object.prototype.constructor,Zo=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,jP=Object.getOwnPropertyDescriptors||function(e){var t={};return Zo(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},tv={},pu={get:function(e,t){if(t===Et)return e;var r=zi(e);if(!Ko(r,t))return function(i,a,o){var s,u=rx(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||!aa(n)?n:n===Dm(e.t,t)?(Nm(e),e.o[t]=ev(e.A.h,n,e)):n},has:function(e,t){return t in zi(e)},ownKeys:function(e){return Reflect.ownKeys(zi(e))},set:function(e,t,r){var n=rx(zi(e),t);if(n!=null&&n.set)return n.set.call(e.k,r),!0;if(!e.P){var i=Dm(zi(e),t),a=i==null?void 0:i[Et];if(a&&a.t===r)return e.o[t]=r,e.D[t]=!1,!0;if(HP(r,i)&&(r!==void 0||Ko(e.t,t)))return!0;Nm(e),Vi(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 Dm(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,Nm(e),Vi(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=zi(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){er(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){er(12)}},xl={};Ha(pu,function(e,t){xl[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),xl.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&er(13),xl.set.call(this,e,t,void 0)},xl.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&er(14),pu.set.call(this,e[0],t,r,e[0])};var vbe=function(){function e(r){var n=this;this.g=ax,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(g){var b=this;g===void 0&&(g=s);for(var C=arguments.length,x=Array(C>1?C-1:0),E=1;E<C;E++)x[E-1]=arguments[E];return u.produce(g,function(T){var A;return(A=a).call.apply(A,[b,T].concat(x))})}}var c;if(typeof a!="function"&&er(6),o!==void 0&&typeof o!="function"&&er(7),aa(i)){var d=ex(n),h=ev(n,i,void 0),p=!0;try{c=a(h),p=!1}finally{p?nh(d):Jg(d)}return typeof Promise!="undefined"&&c instanceof Promise?c.then(function(g){return Om(d,o),km(g,d)},function(g){throw nh(d),g}):(Om(d,o),km(c,d))}if(!i||typeof i!="object"){if((c=a(i))===void 0&&(c=i),c===zP&&(c=void 0),n.F&&Ib(c,!0),o){var m=[],v=[];ei("Patches").M(i,c,m,v),o(m,v)}return c}er(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(c){for(var d=arguments.length,h=Array(d>1?d-1:0),p=1;p<d;p++)h[p-1]=arguments[p];return n.produceWithPatches(c,function(m){return i.apply(void 0,[m].concat(h))})};var o,s,u=n.produce(i,a,function(c,d){o=c,s=d});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){aa(r)||er(8),Pi(r)&&(r=dbe(r));var n=ex(this),i=ev(this,r,void 0);return i[Et].C=!0,Jg(n),i},t.finishDraft=function(r,n){var i=r&&r[Et];process.env.NODE_ENV!=="production"&&(i&&i.C||er(9),i.I&&er(10));var a=i.A;return Om(a,n),km(void 0,a)},t.setAutoFreeze=function(r){this.F=r},t.setUseProxies=function(r){r&&!ax&&er(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=ei("Patches").$;return Pi(r)?o(r,n):this.produce(r,function(s){return o(s,n)})},e}(),tn=new vbe,ybe=tn.produce;tn.produceWithPatches.bind(tn);tn.setAutoFreeze.bind(tn);tn.setUseProxies.bind(tn);tn.applyPatches.bind(tn);tn.createDraft.bind(tn);tn.finishDraft.bind(tn);var Ed=ybe;function WP(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 UP=WP();UP.withExtraArgument=WP;var sx=UP,bbe=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)}}(),oh=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},_be=Object.defineProperty,lx=Object.getOwnPropertySymbols,wbe=Object.prototype.hasOwnProperty,Cbe=Object.prototype.propertyIsEnumerable,ux=function(e,t,r){return t in e?_be(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},mu=function(e,t){for(var r in t||(t={}))wbe.call(t,r)&&ux(e,r,t[r]);if(lx)for(var n=0,i=lx(t);n<i.length;n++){var r=i[n];Cbe.call(t,r)&&ux(e,r,t[r])}return e},xbe=typeof window!="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?eh:eh.apply(null,arguments)};function VP(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 GP(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.
409
+ 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.
410
+ It is disabled in production builds, so you don't need to worry about that.`)}}}var Tbe=function(e){bbe(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,oh([void 0],r[0].concat(this)))):new(t.bind.apply(t,oh([void 0],r.concat(this))))},t}(Array),Sbe=process.env.NODE_ENV==="production",cx="Invariant failed";function dx(e,t){if(!e)throw Sbe?new Error(cx):new Error(cx+": "+(t||""))}function Ebe(e,t,r,n){return JSON.stringify(e,Mbe(t,n),r)}function Mbe(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 Abe(e){return typeof e!="object"||e===null||typeof e=="undefined"||Object.isFrozen(e)}function Pbe(e,t,r){var n=qP(e,t,r);return{detectMutations:function(){return YP(e,t,n,r)}}}function qP(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]=qP(e,t,r[a],o))}}return i}function YP(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 d=a?a+"."+c:c;if(!(t.length&&t.indexOf(d)!==-1)){var h=YP(e,t,r.children[c],n[c],s,d);if(h.wasMutated)return h}}return{wasMutated:!1}}function Rbe(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?Abe:t,n=e.ignoredPaths,i=e.warnAfter,a=i===void 0?32:i,o=e.ignore;n=n||o;var s=Pbe.bind(null,r,n);return function(u){var c=u.getState,d=c(),h=s(d),p;return function(m){return function(v){var g=GP(a,"ImmutableStateInvariantMiddleware");g.measureTime(function(){d=c(),p=h.detectMutations(),h=s(d),dx(!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 b=m(v);return g.measureTime(function(){d=c(),p=h.detectMutations(),h=s(d),p.wasMutated&&dx(!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 "+Ebe(v)+". (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)")}),g.warnIfExceeded(),b}}}}function XP(e){var t=typeof e;return t==="undefined"||e===null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||VP(e)}function rv(e,t,r,n,i){t===void 0&&(t=""),r===void 0&&(r=XP),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 d=c[u],h=d[0],p=d[1],m=t?t+"."+h:h;if(!(s&&i.indexOf(m)>=0)){if(!r(p))return{keyPath:m,value:p};if(typeof p=="object"&&(a=rv(p,m,r,n,i),a))return a}}return!1}function Obe(e){if(e===void 0&&(e={}),process.env.NODE_ENV==="production")return function(){return function(b){return function(C){return b(C)}}};var t=e.isSerializable,r=t===void 0?XP: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,d=e.warnAfter,h=d===void 0?32:d,p=e.ignoreState,m=p===void 0?!1:p,v=e.ignoreActions,g=v===void 0?!1:v;return function(b){return function(C){return function(x){var E=C(x),T=GP(h,"SerializableStateInvariantMiddleware");return!g&&!(a.length&&a.indexOf(x.type)!==-1)&&T.measureTime(function(){var A=rv(x,"",r,n,s);if(A){var R=A.keyPath,D=A.value;console.error("A non-serializable value was detected in an action, in the path: `"+R+"`. Value:",D,`
411
+ Take a look at the logic that dispatched this action: `,x,`
412
+ (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
413
+ (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),m||(T.measureTime(function(){var A=b.getState(),R=rv(A,"",r,n,c);if(R){var D=R.keyPath,I=R.value;console.error("A non-serializable value was detected in the state, in the path: `"+D+"`. Value:",I,`
414
+ Take a look at the reducer(s) handling this action type: `+x.type+`.
415
+ (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),T.warnIfExceeded()),E}}}}function Im(e){return typeof e=="boolean"}function kbe(){return function(t){return Dbe(t)}}function Dbe(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 Tbe;if(r&&(Im(r)?s.push(sx):s.push(sx.withExtraArgument(r.extraArgument))),process.env.NODE_ENV!=="production"){if(i){var u={};Im(i)||(u=i),s.unshift(Rbe(u))}if(o){var c={};Im(o)||(c=o),s.push(Obe(c))}}return s}var Lm=process.env.NODE_ENV==="production";function Nbe(e){var t=kbe(),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,d=c===void 0?void 0:c,h=r.enhancers,p=h===void 0?void 0:h,m;if(typeof i=="function")m=i;else if(VP(i))m=Xhe(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 v=o;if(typeof v=="function"&&(v=v(t),!Lm&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Lm&&v.some(function(E){return typeof E!="function"}))throw new Error("each middleware provided to configureStore must be a function");var g=Khe.apply(void 0,v),b=eh;u&&(b=xbe(mu({trace:!Lm},typeof u=="object"&&u)));var C=[g];Array.isArray(p)?C=oh([g],p):typeof p=="function"&&(C=p(C));var x=b.apply(void 0,C);return aP(m,d,x)}function gu(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 mu(mu({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 KP(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 Ibe(e){return typeof e=="function"}function Lbe(e,t,r,n){r===void 0&&(r=[]);var i=typeof t=="function"?KP(t):[t,r,n],a=i[0],o=i[1],s=i[2],u;if(Ibe(e))u=function(){return Ed(e(),function(){})};else{var c=Ed(e,function(){});u=function(){return c}}function d(h,p){h===void 0&&(h=u());var m=oh([a[p.type]],o.filter(function(v){var g=v.matcher;return g(p)}).map(function(v){var g=v.reducer;return g}));return m.filter(function(v){return!!v}).length===0&&(m=[s]),m.reduce(function(v,g){if(g)if(Pi(v)){var b=v,C=g(b,p);return typeof C=="undefined"?v:C}else{if(aa(v))return Ed(v,function(x){return g(x,p)});var C=g(v,p);if(typeof C=="undefined"){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return C}return v},h)}return d.getInitialState=u,d}function Fbe(e,t){return e+"/"+t}function $be(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:Ed(e.initialState,function(){}),n=e.reducers||{},i=Object.keys(n),a={},o={},s={};i.forEach(function(d){var h=n[d],p=Fbe(t,d),m,v;"reducer"in h?(m=h.reducer,v=h.prepare):m=h,a[d]=m,o[p]=m,s[d]=v?gu(p,v):gu(p)});function u(){var d=typeof e.extraReducers=="function"?KP(e.extraReducers):[e.extraReducers],h=d[0],p=h===void 0?{}:h,m=d[1],v=m===void 0?[]:m,g=d[2],b=g===void 0?void 0:g,C=mu(mu({},p),o);return Lbe(r,C,v,b)}var c;return{name:t,reducer:function(d,h){return c||(c=u()),c(d,h)},actions:s,caseReducers:a,getInitialState:function(){return c||(c=u()),c.getInitialState()}}}var $b="listenerMiddleware";gu($b+"/add");gu($b+"/removeAll");gu($b+"/remove");hbe();function Bbe(){var e=Hbe();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:Kr.SIZE,scrollY:0,scrollbarYWidth:Kr.SIZE,scrolling:!1,getInternal:function(){return e}}}function Hbe(){return{rowBufferSet:new _P,rowOffsetIntervalTree:null,storedHeights:[],rowUntilOffsetsAreExact:0}}var ZP=$be({name:"FDT",initialState:{},reducers:{initialize:function(t,r){var n=r.payload;Ot(t,Bbe()),fx(t,n),hx(t);var i=LC(t,n);cl(t,i),WC.initialize(t,n,{})},propChange:function(t,r){var n=r.payload,i=n.newProps,a=n.oldProps,o=wve(obe(t));fx(t,i),(a.rowsCount!==i.rowsCount||a.rowHeight!==i.rowHeight||a.subRowHeight!==i.subRowHeight)&&hx(t),a.rowsCount!==i.rowsCount&&(t.getInternal().rowBufferSet=new _P);var s=LC(t,i,a);(!hu(t,o)||s.changed)&&cl(t,s),WC.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};cl(t,r)},scrollToY:function(t,r){var n=r.payload;t.scrolling=!0;var i=Lg(t,n);cl(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;)Ea(t,n++);var i=t.getInternal().rowOffsetIntervalTree.sumUntil(t.firstRowIndex)-t.firstRowOffset,a=Lg(t,i);cl(t,a)}}}});function hx(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),d=0;d<n;d++)e.isVerticalScrollExact?c[d]=a(d)+o(d):c[d]=s,u+=c[d];var h=new Sve(c);e.scrollContentHeight=u,Ot(e.getInternal(),{rowOffsetIntervalTree:h,storedHeights:c})}function fx(e,t){var r=Ave(t.children),n=r.columnGroupElements,i=r.columnElements,a=r.elementTemplates,o=r.useGroupHeader;Ot(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=Ot({},e.elementHeights,Cl(t,["cellGroupWrapperHeight","footerHeight","groupHeaderHeight","headerHeight"])),o||(e.elementHeights.groupHeaderHeight=0),e.rowSettings=Ot({},e.rowSettings,Cl(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=Ot({},e.scrollFlags,Cl(t,["overflowX","overflowY","showScrollbarX","showScrollbarY"])),e.tableSize=Ot({},e.tableSize,Cl(t,["height","maxHeight","ownerHeight","width"])),e.tableSize.useMaxHeight=e.tableSize.height===void 0,e.scrollbarXHeight=t.scrollbarXHeight,e.scrollbarYWidth=t.scrollbarYWidth}var zbe=ZP.reducer,Is=ZP.actions,jbe=Is.initialize,Wbe=Is.propChange,Ube=Is.scrollEnd,Vbe=Is.scrollToX,Gbe=Is.scrollToY,qbe=Is.updateRowHeights,Ybe=function(t,r){var n=oP({scrollToX:Vbe,scrollToY:Gbe,scrollEnd:Ube},t.dispatch),i=function(s){var u=t.getState(),c=u.scrollX;if(s!==c){var d=Math.round(s),h=r(),p=h.onHorizontalScroll;(!p||p(d))&&n.scrollToX(d)}},a=function(s){var u=t.getState(),c=u.scrollY;if(s!==c){var d=r(),h=d.onVerticalScroll;(!h||h(s))&&n.scrollToY(s)}};return{scrollToX:i,scrollToY:a,stopScroll:n.scrollEnd}},Xbe=Ka,Kbe=ua,Zbe="[object Number]";function Qbe(e){return typeof e=="number"||Kbe(e)&&Xbe(e)==Zbe}var Jbe=Qbe,e1e=Jbe;function t1e(e){return e1e(e)&&e!=+e}var px=t1e;function r1e(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 d=function(){e.apply(r,u)};d.__SMmeta=e.__SMmeta,a=n(d,t)}return o.reset=function(){i(a)},o}function sr(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 n1e(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 i1e=ki([function(e){return e.rowsCount},function(e){return e.groupHeaderHeight>0},function(e){return e.footerHeight>0}],n1e);function a1e(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 o1e=a1e,s1e=o1e,l1e=s1e(),u1e=l1e,c1e=u1e,d1e=Nf;function h1e(e,t){return e&&c1e(e,t,d1e)}var f1e=h1e,p1e=Xu;function m1e(e,t){return function(r,n){if(r==null)return r;if(!p1e(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 g1e=m1e,v1e=f1e,y1e=g1e,b1e=y1e(v1e),_1e=b1e,w1e=nP;function C1e(e){return typeof e=="function"?e:w1e}var x1e=C1e,T1e=sP,S1e=_1e,E1e=x1e,M1e=wn;function A1e(e,t){var r=M1e(e)?T1e:S1e;return r(e,E1e(t))}var mx=A1e;function P1e(e,t){var r=e.columnGroupProps,n=e.columnProps,i=[],a=[],o=[];mx(r,function(d,h){var p={props:d,template:t.groupHeader[h]};d.fixed?i.push(p):d.fixedRight?a.push(p):o.push(p)});var s={cell:[],header:[],footer:[]},u={cell:[],header:[],footer:[]},c={cell:[],header:[],footer:[]};return mx(n,function(d,h){var p=c;d.fixed?p=s:d.fixedRight&&(p=u),p.cell.push({props:d,template:t.cell[h]}),p.header.push({props:d,template:t.header[h]}),p.footer.push({props:d,template:t.footer[h]})}),{fixedColumnGroups:i,fixedColumns:s,fixedRightColumnGroups:a,fixedRightColumns:u,scrollableColumnGroups:o,scrollableColumns:c}}var R1e=ki([function(e){return Zu(e)},function(e){return e.elementTemplates}],P1e);function O1e(e,t){return e==null||e!==e?t:e}var k1e=O1e,D1e=Math.max,N1e=Math.min;function I1e(e,t,r){return e>=N1e(t,r)&&e<D1e(t,r)}var L1e=I1e,F1e=Sb,gx=1/0,$1e=17976931348623157e292;function B1e(e){if(!e)return e===0?e:0;if(e=F1e(e),e===gx||e===-gx){var t=e<0?-1:1;return t*$1e}return e===e?e:0}var H1e=B1e,z1e=L1e,vx=H1e,j1e=Sb;function W1e(e,t,r){return t=vx(t),r===void 0?(r=t,t=0):r=vx(r),e=j1e(e),z1e(e,t,r)}var Oa=W1e;function U1e(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 Ci(e,t){if(e==null)return{};var r,n,i=U1e(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 V1e=["height","width","isVisible","style","className","children","columnKey","columnIndex","rowIndex","left","cellGroupType","isHeader","isGroupHeader","maxWidth","minWidth","touchEnabled"];function yx(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 G1e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yx(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q1e(e){var t=Y1e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function Y1e(){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 sh=function(e){Jt(r,e);var t=q1e(r);function r(){return xt(this,r),t.apply(this,arguments)}return Tt(r,[{key:"render",value:function(){var i=this.props,a=i.height,o=i.width,s=i.style,u=i.className,c=i.children,d=Ci(i,V1e),h=G1e({height:a,width:o},s);return k.createElement("div",Ot({},d,{className:sr(ke("fixedDataTableCellLayout/wrap1"),ke("public/fixedDataTableCell/wrap1"),u),style:h}),k.createElement("div",{className:sr(ke("fixedDataTableCellLayout/wrap2"),ke("public/fixedDataTableCell/wrap2"))},k.createElement("div",{className:sr(ke("fixedDataTableCellLayout/wrap3"),ke("public/fixedDataTableCell/wrap3"))},k.createElement("div",{className:ke("public/fixedDataTableCell/cellContent")},c))))}}]),r}(k.Component);ue(sh,"propTypes",{height:U.number,width:U.number,columnKey:U.oneOfType([U.string,U.number]),rowIndex:U.number,isVisible:U.bool});function QP(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function JP(e){function t(r){var n=this.constructor.getDerivedStateFromProps(e,r);return n!=null?n:null}this.setState(t.bind(this))}function eR(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}}QP.__suppressDeprecationWarning=!0;JP.__suppressDeprecationWarning=!0;eR.__suppressDeprecationWarning=!0;function tR(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.
416
+
417
+ `+a+" uses "+o+" but also contains the following legacy lifecycles:"+(r!==null?`
418
+ `+r:"")+(n!==null?`
419
+ `+n:"")+(i!==null?`
420
+ `+i:"")+`
421
+
422
+ The above lifecycles should be removed. Learn more about this warning here:
423
+ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=QP,t.componentWillReceiveProps=JP),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=eR;var s=t.componentDidUpdate;t.componentDidUpdate=function(c,d,h){var p=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:h;s.call(this,c,d,p)}}return e}var X1e=["height","width","isVisible","style","className","children","columnKey","columnIndex","rowIndex","left","cellGroupType","isHeader","isGroupHeader","maxWidth","minWidth","touchEnabled"];function bx(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 K1e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bx(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Bb=k.forwardRef(function(t,r){var n=t.height,i=t.width,a=t.style,o=t.className,s=t.children,u=Ci(t,X1e),c=K1e({height:n,width:i},a);return k.createElement("div",Ot({},u,{className:sr(ke("fixedDataTableCellLayout/wrap"),ke("public/fixedDataTableCell/wrap"),ke("public/fixedDataTableCell/cellContent"),o),style:c,ref:r}),s)});Bb.propTypes={height:U.number,width:U.number,columnKey:U.oneOfType([U.string,U.number]),rowIndex:U.number,isVisible:U.bool};var ss=k.createContext({}),Z1e=ZA;function Q1e(e,t,r){var n=e==null?void 0:Z1e(e,t);return n===void 0?r:n}var nv=Q1e;function J1e(e){var t=e_e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function e_e(){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 _x=15,wx=100,Hb=function(e){Jt(r,e);var t=J1e(r);function r(){var n;xt(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(){IP(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 Ob(n.onMouseMove,n.onMouseUp,document.body,n.props.touchEnabled),n.mouseMoveTracker.captureMouseMoves(s)}),ue(pe(n),"updateDisplacementPeriodically",function(){n.frameId=Qi(n.updateDisplacementPeriodically),n.updateDisplacementWithScroll()}),ue(pe(n),"getBoundedDeltaX",function(s){var u=0,c=0,d=n.props.cellGroupType,h=n.context.groupHeaderHeight>0;if(h&&!n.props.isGroupHeader){var p=n.context.getColumnGroupByChild(n.props.columnIndex);u=p.width,c=p.offset}else u=n.context.getCellGroupWidth(d);var m=u-n.props.width;return Ff(s,-n.originalLeft+c,-n.originalLeft+m+c)}),ue(pe(n),"updateDisplacementWithScroll",function(){var s=n.scrollStart,u=n.props.cellGroupType,c=n.context,d=c.scrollX,h=c.maxScrollX,p=c.availableScrollWidth,m=n.cursorDeltaX;if(u===De.SCROLLABLE){var v=n.originalLeft-s+m;m+=d-s,v>p-wx?d=Math.min(d+_x,h):v<=wx&&(d=Math.max(d-_x,0)),n.context.scrollToX(d)}m=n.getBoundedDeltaX(m),n.setState({displacement:m})}),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,d,h;if(n.props.isGroupHeader){var p=n.context.getColumnGroupAtOffset(c,s),m=p.columnGroup,v=p.distanceFromOffset;d=m,h=v}else{var g=n.context.getColumnAtOffset(c,s),b=g.column,C=g.distanceFromOffset;d=b,h=C}var x=null,E=null;d.index<n.props.columnIndex?h<=d.width/2?(x=d.index-1,E=d.index):(x=d.index,E=d.index+1):h>=d.width/2?(x=d.index,E=d.index+1):(x=d.index-1,E=d.index),x===n.props.columnIndex&&--x,E===n.props.columnIndex&&++E;var T=n.props.isGroupHeader?n.context.getColumnGroupCount():n.context.getColumnCount(),A,R;Oa(x,0,T)&&(A=n.props.isGroupHeader?n.context.getColumnGroup(x):n.context.getColumn(x)),Oa(E,0,T)&&(R=n.props.isGroupHeader?n.context.getColumnGroup(E):n.context.getColumn(E)),n.props.onColumnReorderEnd({columnBefore:nv(A,"columnKey"),columnAfter:nv(R,"columnKey"),reorderColumn:n.props.columnKey})}),n}return Tt(r,[{key:"componentDidMount",value:function(){var i=this.props.contents.parentNode.cloneNode(!0);i.firstChild.classList.add(ke("public/fixedDataTableCell/reordering")),this.containerRef.current.appendChild(i),this.startDrag()}},{key:"render",value:function(){var i={position:"absolute"};return as(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=Qi(this.updateDisplacementPeriodically)}}]),r}(k.PureComponent);Hb.contextType=ss;Hb.propTypes={columnIndex:U.number.isRequired,columnKey:U.string.isRequired,contents:U.object.isRequired,cellGroupType:U.string,isGroupHeader:U.bool,isRTL:U.bool,left:U.number.isRequired,onColumnReorderStart:U.func.isRequired,reorderStartEvent:U.object.isRequired,touchEnabled:U.bool,width:U.number.isRequired};function t_e(e){var t=r_e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function r_e(){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 n_e=function(e){Jt(r,e);var t=t_e(r);function r(n){var i;xt(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 Tt(r,[{key:"componentWillUnmount",value:function(){this.unsubscribe()}},{key:"render",value:function(){var i=this.state.FixedDataTableContextValue;return k.createElement(ss.Provider,{value:i},this.props.children)}}]),r}(k.PureComponent);function i_e(){}var a_e=i_e,o_e=["onColumnReorderStart","onColumnReorderEnd","reorderStartEvent","children"];function s_e(e){var t=l_e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function l_e(){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 u_e=1,vu=function(e){Jt(r,e);var t=s_e(r);function r(){var n;xt(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():Xr.unmountComponentAtNode(n.dragContainer),n.dragContainer.remove(),n.dragContainer=null}),n}return Tt(r,[{key:"componentDidMount",value:function(){this.isMounted=!0;var i=nv(this.getDragContainer(),"dataset.columnKey"),a=KA(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=Ci(i,o_e),s=sr(ke({"public/fixedDataTableCell/resizeReorderCellContainer":!0}),o.className),u=sr(s,ke({"public/fixedDataTableCell/hasReorderHandle":!0})),c={height:o.height,width:o.width-u_e},d;return k.isValidElement(a)?d=k.cloneElement(a,o):typeof a=="function"?d=a(o):d=k.createElement(Bb,o,a),k.createElement("div",{className:u,style:c,ref:this.cellRef},this.renderReorderHandle(),d)}},{key:"renderReorderHandle",value:function(){var i={height:this.props.height};return k.createElement("div",{ref:this.setReorderHandle,className:ke({"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(n_e,{value:this.context},k.createElement(Hb,Ot({},this.props,o)));if(this.props.__react19RootCreator){var u=Xr.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}Xr.render(s,this.getDragContainer(),function(){return a.setState({isReordering:!0})})}}]),r}(k.PureComponent);vu.contextType=ss;vu.defaultProps={onColumnReorderStart:a_e};vu.propTypes={height:U.number,width:U.number,columnKey:U.oneOfType([U.string,U.number]),rowIndex:U.number,left:U.number,touchEnabled:U.bool,minWidth:U.number,maxWidth:U.number,onColumnReorderStart:U.func,onColumnReorderEnd:U.func.isRequired,__react19RootCreator:U.func};var c_e=!!(typeof window!="undefined"&&window.document&&window.document.createElement),d_e=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 h_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f_e(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 p_e(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 rR=function(e){p_e(t,e);function t(){return h_e(this,t),f_e(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d_e(t,[{key:"componentWillUnmount",value:function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null}},{key:"render",value:function(){return c_e?(!this.props.node&&!this.defaultNode&&(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),Xr.createPortal(this.props.children,this.props.node||this.defaultNode)):null}}]),t}(k.Component);rR.propTypes={children:U.node.isRequired,node:U.any};var m_e=rR,g_e=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 v_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y_e(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 b_e(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 nR=function(e){b_e(t,e);function t(){return v_e(this,t),y_e(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return g_e(t,[{key:"componentDidMount",value:function(){this.renderPortal()}},{key:"componentDidUpdate",value:function(n){this.renderPortal()}},{key:"componentWillUnmount",value:function(){Xr.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=Xr.unstable_renderSubtreeIntoContainer(this,i,this.props.node||this.defaultNode)}},{key:"render",value:function(){return null}}]),t}(k.Component),__e=nR;nR.propTypes={children:U.node.isRequired,node:U.any};var iv=void 0;Xr.createPortal?iv=m_e:iv=__e;var w_e=iv;function C_e(e){var t=x_e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function x_e(){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 iR=function(e){Jt(r,e);var t=C_e(r);function r(){return xt(this,r),t.apply(this,arguments)}return Tt(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(w_e,{node:i},k.createElement("div",{className:sr(ke("fixedDataTableColumnResizerLineLayout/main"),ke("public/fixedDataTableColumnResizerLine/main")),style:a},k.createElement("div",{className:ke("fixedDataTableColumnResizerLineLayout/mouseArea"),style:{height:this.props.height}})))}},{key:"getTableRef",value:function(){var i=this.props.parentRef;return i?i.closest(ke(".fixedDataTableLayout/main")):null}}]),r}(k.PureComponent);ue(iR,"propTypes",{visible:U.bool.isRequired,height:U.number.isRequired,left:U.number.isRequired,parentRef:U.object});function Cx(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 T_e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cx(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function S_e(e){var t=E_e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function E_e(){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 aR=function(e){Jt(r,e);var t=S_e(r);function r(n){var i;return xt(this,r),i=t.call(this,n),ue(pe(i),"initialState",{isColumnResizing:!1,currentMouseXCoordinate:0,totalDisplacement:0}),ue(pe(i),"state",T_e({},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 Ob(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=Yg.getCoordinatesFromEvent(a).x-a.currentTarget.closest(ke(".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=If(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,d=c.initialMouseXCoordinate,h=c.totalDisplacement,p=h+a,m=d+p,v=i.getMinMaxWidth(),g=v.minWidth,b=v.maxWidth,C=u+p*(s?-1:1);(C<g||C>b)&&(m=i.state.currentMouseXCoordinate),i.setState({totalDisplacement:p,currentMouseXCoordinate:m})}),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 Tt(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(iR,{height:this.props.resizerLineHeight,visible:!!this.state.isColumnResizing,left:this.state.currentMouseXCoordinate,parentRef:this.resizerKnobRef});return k.createElement("div",{className:ke("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);aR.propTypes={columnKey:U.oneOfType([U.string,U.number]).isRequired,minWidth:U.number,maxWidth:U.number,width:U.number.isRequired,resizerLineHeight:U.number.isRequired,touchEnabled:U.bool,isRTL:U.bool,onColumnResizeEnd:U.func.isRequired,height:U.number.isRequired};var M_e=["children","minWidth","maxWidth","onColumnResizeEnd","onColumnReorderEnd","rowIndex","left","touchEnabled","cellGroupType","onColumnReorderStart"];function A_e(e){var t=P_e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function P_e(){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 lh=function(e){Jt(r,e);var t=A_e(r);function r(){return xt(this,r),t.apply(this,arguments)}return Tt(r,[{key:"render",value:function(){var i=this.props,a=i.children,o=Ci(i,M_e),s;return k.isValidElement(a)?s=k.cloneElement(a,o):typeof a=="function"?s=a(o):s=k.createElement(Bb,o,a),k.createElement(k.Fragment,null,k.createElement(aR,{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);lh.contextType=ss;lh.propTypes={columnKey:U.oneOfType([U.string,U.number]),minWidth:U.number,maxWidth:U.number,width:U.number,touchEnabled:U.bool,isRTL:U.bool,onColumnResizeEnd:U.func.isRequired,height:U.number};var R_e=["cell"],O_e=["cell"],k_e=["height","width","columnIndex","isVisible","columnKey","isHeaderOrFooter","touchEnabled"];function xx(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 id(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xx(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function D_e(e){var t=N_e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function N_e(){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 zb=function(e){Jt(r,e);var t=D_e(r);function r(){return xt(this,r),t.apply(this,arguments)}return Tt(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=Ci(a,R_e),u=i.cell,c=Ci(i,O_e);return!hu(s,c)||!o||!u||o.type!==u.type||!hu(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,d=Ci(i,k_e),h={height:a,width:o};this.props.isRTL?h.right=d.left:h.left=d.left;var p=sr(ke({"fixedDataTableCellLayout/main":!0,"fixedDataTableCellLayout/lastChild":d.lastChild,"fixedDataTableCellLayout/alignRight":d.align==="right","fixedDataTableCellLayout/alignCenter":d.align==="center","public/fixedDataTableCell/alignRight":d.align==="right","public/fixedDataTableCell/highlighted":d.highlighted,"public/fixedDataTableCell/main":!0}),d.className),m={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};d.rowIndex>=0&&(m.rowIndex=d.rowIndex);var v;this.props.isHeader&&(this.props.onColumnResizeEnd||this.props.onColumnReorderEnd)?this.props.onColumnResizeEnd&&this.props.onColumnReorderEnd?(m=id(id({},m),{},{minWidth:this.props.minWidth,maxWidth:this.props.maxWidth}),v=k.createElement(vu,Ot({},m,{onColumnReorderEnd:this.props.onColumnReorderEnd}),k.createElement(lh,{onColumnResizeEnd:this.props.onColumnResizeEnd},d.cell))):this.props.onColumnReorderEnd?v=k.createElement(vu,Ot({},m,{onColumnReorderEnd:this.props.onColumnReorderEnd}),d.cell):(m=id(id({},m),{},{minWidth:this.props.minWidth,maxWidth:this.props.maxWidth}),v=k.createElement(lh,Ot({},m,{onColumnResizeEnd:this.props.onColumnResizeEnd}),d.cell)):k.isValidElement(d.cell)?v=k.cloneElement(d.cell,m):typeof d.cell=="function"?v=d.cell(m):v=k.createElement(sh,m,d.cell);var g=u?"columnheader":"gridcell";return k.createElement("div",{className:p,style:h,role:g},v)}}]),r}(k.Component);ue(zb,"propTypes_DISABLED_FOR_PERFORMANCE",{isScrolling:U.bool,align:U.oneOf(["left","center","right"]),className:U.string,highlighted:U.bool,width:U.number.isRequired,minWidth:U.number,maxWidth:U.number,height:U.number.isRequired,cell:U.oneOfType([U.string,U.element,U.func]),columnKey:U.oneOfType([U.string,U.number]),rowIndex:U.number.isRequired,left:U.number,pureRendering:U.bool,touchEnabled:U.bool,isHeaderOrFooter:U.bool,isRTL:U.bool,isVisible:U.bool.isRequired,onColumnResizeEnd:U.func,onColumnReorderEnd:U.func,isHeader:U.bool,cellGroupType:U.oneOf([De.FIXED,De.FIXED_RIGHT,De.SCROLLABLE])});ue(zb,"defaultProps",{align:"left",highlighted:!1});var I_e=tR(zb),L_e=["offsetLeft"];function oR(e){var t=F_e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function F_e(){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 sR=function(e){Jt(r,e);var t=oR(r);function r(n){var i;return xt(this,r),i=t.call(this,n),ue(pe(i),"_renderCell",function(a,o,s,u,c,d,h){var p=s.cellClassName,m=s.pureRendering||!1,v=s.isReorderable?i.props.onColumnReorderEndCallback:null,g=s.isResizable?i.props.onColumnResizeEndCallback:null;return k.createElement(I_e,{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:d,maxWidth:s.maxWidth,minWidth:s.minWidth,touchEnabled:i.props.touchEnabled,onColumnResizeEnd:g,onColumnReorderEnd:v,rowIndex:a,columnKey:s.columnKey,width:s.width,left:c,cell:u,pureRendering:m,isRTL:i.props.isRTL,cellGroupType:i.props.cellGroupType,isVisible:i.props.isVisible&&h})}),i._initialRender=!0,i}return Tt(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=Cd(a),u=0,c=0,d=a.length;c<d;c++){var h=a[c].props,p=a[c].template,m=h.allowCellsRecycling,v=u-i.left<=i.width&&u-i.left+h.width>=0;if(!m||v){var g=h.columnKey||"cell_"+c;o[c]=this._renderCell(i.rowIndex,i.rowHeight,h,p,u,g,v)}u+=h.width}var b={height:i.height,position:"absolute",width:s,zIndex:i.zIndex};return as(b,-1*i.left,0,this._initialRender,this.props.isRTL),k.createElement("div",{className:ke("fixedDataTableCellGroupLayout/cellGroup"),style:b},o)}}]),r}(k.Component);ue(sR,"propTypes_DISABLED_FOR_PERFORMANCE",{columns:U.array.isRequired,isScrolling:U.bool,left:U.number,height:U.number.isRequired,cellGroupWrapperHeight:U.number,rowHeight:U.number.isRequired,rowIndex:U.number.isRequired,width:U.number.isRequired,zIndex:U.number.isRequired,touchEnabled:U.bool,isHeaderOrFooter:U.bool,isRTL:U.bool,onColumnResizeEndCallback:U.func,onColumnReorderEndCallback:U.func,isHeader:U.bool,isVisible:U.bool.isRequired});var $l=function(e){Jt(r,e);var t=oR(r);function r(){return xt(this,r),t.apply(this,arguments)}return Tt(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=Ci(i,L_e),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:ke("fixedDataTableCellGroupLayout/cellGroupWrapper")},k.createElement(sR,o))}}]),r}(k.Component);ue($l,"propTypes_DISABLED_FOR_PERFORMANCE",{isScrolling:U.bool,height:U.number.isRequired,offsetLeft:U.number,left:U.number,zIndex:U.number.isRequired});ue($l,"defaultProps",{left:0,offsetLeft:0});var $_e=["offsetTop","zIndex"];function lR(e){var t=B_e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function B_e(){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 H_e=1,uR=function(e){Jt(r,e);var t=lR(r);function r(){var n;xt(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=ke({"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-H_e:n.props.height,d={left:s,height:c};return n.props.isRTL&&(d.right=s,d.left="auto"),k.createElement("div",{className:u,style:d})}),ue(pe(n),"_renderFixedRightColumnsShadow",function(s){var u=ke("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=ke("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 Tt(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=ke({"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=Cd(this.props.fixedColumns),u=k.createElement($l,{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:De.FIXED,isVisible:this.props.visible}),c=this._renderColumnsLeftShadow(s),d=Cd(this.props.fixedRightColumns),h=this.props.showScrollbarY?this.props.scrollbarYWidth:0,p=k.createElement($l,{key:"fixed_right_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,offsetLeft:this.props.width-d-h,width:d,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:De.FIXED_RIGHT,isVisible:this.props.visible}),m=d?this._renderFixedRightColumnsShadow(this.props.width-d-h-5):null,v=k.createElement($l,{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-d-h,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:De.SCROLLABLE,isVisible:this.props.visible}),g=Cd(this.props.scrollableColumns),b=this._renderColumnsRightShadow(s+g),C=this._getRowExpanded(i),x={height:i,top:this.props.height,width:this.props.width},E=null;if(this.props.showScrollbarY){var T={width:h,height:this.props.height,left:this.props.isRTL?2:this.props.width-h-2};E=k.createElement("div",{style:T,className:ke("public/fixedDataTable/scrollbarSpacer")})}return k.createElement("div",Ot({className:sr(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:ke("fixedDataTableRowLayout/body")},u,v,c,p,m,E),C&&k.createElement("div",{className:ke("fixedDataTableRowLayout/rowExpanded"),style:x},C),b)}}]),r}(k.Component);ue(uR,"propTypes",{isScrolling:U.bool,fixedColumns:U.array.isRequired,fixedRightColumns:U.array.isRequired,height:U.number.isRequired,cellGroupWrapperHeight:U.number,subRowHeight:U.number,rowExpanded:U.oneOfType([U.element,U.func]),index:U.number.isRequired,scrollableColumns:U.array.isRequired,scrollLeft:U.number.isRequired,width:U.number.isRequired,onClick:U.func,onContextMenu:U.func,onDoubleClick:U.func,onColumnReorderEndCallback:U.func,touchEnabled:U.bool,isHeaderOrFooter:U.bool,ariaRowIndex:U.number,isRTL:U.bool,attributes:U.object,onColumnResizeEndCallback:U.func,isHeader:U.bool,isGroupHeader:U.bool,scrollToX:U.func});var Bl=function(e){Jt(r,e);var t=lR(r);function r(n){var i;return xt(this,r),i=t.call(this,n),i._initialRender=!0,i}return Tt(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=Ci(i,$_e),u={width:this.props.width,height:this.props.height,zIndex:o||0,visibility:s.visible?"visible":"hidden"};return as(u,0,a,this._initialRender,this.props.isRTL),k.createElement("div",{style:u,className:ke("fixedDataTableRowLayout/rowWrapper")},k.createElement(uR,s))}}]),r}(k.Component);ue(Bl,"propTypes",{isScrolling:U.bool,height:U.number.isRequired,zIndex:U.number,offsetTop:U.number.isRequired,visible:U.bool.isRequired,width:U.number.isRequired});function z_e(e){var t=j_e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function j_e(){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 cR=function(e){Jt(r,e);var t=z_e(r);function r(n){var i;return xt(this,r),i=t.call(this,n),i._staticRowArray=[],i._initialRender=!0,i}return Tt(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 d=1e6,h=a-s%d,p=0;p<this._staticRowArray.length;p++){var m,v=k1e(c[p],(m=this._staticRowArray[p])===null||m===void 0?void 0:m.props.index);if(Fl(v)||!Oa(v,0,this.props.rowSettings.rowsCount)){this._staticRowArray[p]=null;continue}var g=o[v]-Math.floor(s/d)*d;this._staticRowArray[p]=this.renderRow({rowIndex:v,key:p,rowOffsetTop:g})}var b={position:"relative"};as(b,0,h,!1);var C=this._staticRowArray.slice().sort(this.rowSortComparator);return k.createElement("div",{style:b},C)}},{key:"renderRow",value:function(i){var a=i.rowIndex,o=i.key,s=i.rowOffsetTop,u=this.props,c=u.rowClassNameGetter||ur,d={};d.height=this.props.rowSettings.rowHeightGetter(a),d.subRowHeight=this.props.rowSettings.subRowHeightGetter(a),d.offsetTop=s,d.key=u.rowKeyGetter?u.rowKeyGetter(a):o,d.attributes=u.rowSettings.rowAttributesGetter&&u.rowSettings.rowAttributesGetter(a);var h=a===u.rowSettings.rowsCount-1&&u.showLastRowBorder;d.className=sr(c(a),ke("public/fixedDataTable/bodyRow"),ke({"fixedDataTableLayout/hasBottomBorder":h,"public/fixedDataTable/hasBottomBorder":h}));var p=Oa(a,this.props.firstViewportRowIndex,this.props.endViewportRowIndex);return k.createElement(Bl,Ot({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},d))}},{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(cR,"propTypes",{ariaRowIndexOffset:U.number,isScrolling:U.bool,firstViewportRowIndex:U.number.isRequired,endViewportRowIndex:U.number.isRequired,fixedColumns:U.array.isRequired,fixedRightColumns:U.array.isRequired,height:U.number.isRequired,offsetTop:U.number.isRequired,onRowClick:U.func,onRowContextMenu:U.func,onRowDoubleClick:U.func,onRowMouseDown:U.func,onRowMouseUp:U.func,onRowMouseEnter:U.func,onRowMouseLeave:U.func,onRowTouchStart:U.func,onRowTouchEnd:U.func,onRowTouchMove:U.func,rowClassNameGetter:U.func,rowExpanded:U.oneOfType([U.element,U.func]),rowOffsets:U.object.isRequired,rowKeyGetter:U.func,rowSettings:U.shape({rowAttributesGetter:U.func,rowHeightGetter:U.func,rowsCount:U.number.isRequired,subRowHeightGetter:U.func}),rowsToRender:U.array.isRequired,scrollLeft:U.number.isRequired,scrollTop:U.number.isRequired,scrollableColumns:U.array.isRequired,showLastRowBorder:U.bool,showScrollbarY:U.bool,width:U.number.isRequired,isRTL:U.bool});var Tx=1.6,W_e=1.6,U_e=325,dl=100,V_e=function(){function e(t,r,n,i,a){xt(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?ur.thatReturnsTrue:ur.thatReturnsFalse),typeof n!="function"&&(n=n?ur.thatReturnsTrue:ur.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 Tt(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,dl),this._stopPropagation&&r.stopPropagation()}},{key:"onTouchEnd",value:function(r){clearInterval(this._trackerId),this._trackerId=null,Qi(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=Tx*(this._lastTouchX-n),this._deltaY=Tx*(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=Qi(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<dl&&(o*=n/dl),i===0&&a===0&&(o=1),this._velocityX=o*(dl*this._accumulatedDeltaX/(1+n)),o<1&&(this._velocityX+=(1-o)*i),this._velocityY=o*(dl*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=W_e*Math.exp(-r/U_e),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),Qi(this._autoScroll))}}]),e}();function G_e(e){var t=q_e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function q_e(){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 ad=25,jb=function(e){Jt(r,e);var t=G_e(r);function r(n){var i;return xt(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,d=u.overflowX;return d==="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,d=u.overflowY;return d==="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=Ho(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,d){var h=Ba(i.props),p=h.scrollEnabledY,m=i.props;return k.createElement(cR,{ariaRowIndexOffset:d,isScrolling:m.scrolling,fixedColumns:o,fixedRightColumns:s,firstViewportRowIndex:m.firstRowIndex,endViewportRowIndex:m.endRowIndex,height:c,offsetTop:a,onRowClick:m.onRowClick,onRowContextMenu:m.onRowContextMenu,onRowDoubleClick:m.onRowDoubleClick,onRowMouseUp:m.onRowMouseUp,onRowMouseDown:m.onRowMouseDown,onRowMouseEnter:m.onRowMouseEnter,onRowMouseLeave:m.onRowMouseLeave,onRowTouchStart:m.touchScrollEnabled?m.onRowTouchStart:null,onRowTouchEnd:m.touchScrollEnabled?m.onRowTouchEnd:null,onRowTouchMove:m.touchScrollEnabled?m.onRowTouchMove:null,rowClassNameGetter:m.rowClassNameGetter,rowExpanded:m.rowExpanded,rowKeyGetter:m.rowKeyGetter,rowSettings:m.rowSettings,scrollLeft:m.scrollX,scrollTop:m.scrollY,scrollableColumns:u,showLastRowBorder:!0,width:m.tableSize.width,rowsToRender:m.rows,rowOffsets:m.rowOffsets,showScrollbarY:p,scrollbarYWidth:m.scrollbarYWidth,isRTL:m.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,d=s.onHorizontalScroll,h=s.onVerticalScroll,p=s.scrollActions,m=s.scrollFlags,v=s.scrollX,g=s.scrollY,b=m.overflowX,C=m.overflowY,x=v,E=g;if(Math.abs(o)>Math.abs(a)&&C!=="hidden")E+=o,E=E<0?0:E,E=E>c?c:E,(!h||h(E))&&p.scrollToY(E);else if(a&&b!=="hidden"){x+=a,x=x<0?0:x,x=x>u?u:x;var T=Math.round(x);(!d||d(T))&&p.scrollToX(T)}}),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,d=o.onHorizontalScroll,h=o.onVerticalScroll,p=o.tableSize.ownerHeight,m=o.scrolling,v=a.endRowIndex,g=a.firstRowIndex,b=a.scrollX,C=a.scrollY,x=a.tableSize.ownerHeight,E=a.scrolling,T=p!==x&&!(px(p)&&px(x)),A=u!==b,R=c!==C;!T&&!A&&!R||(!E&&m&&s&&s(b,C,g,v),A&&d&&d(u),R&&h&&h(c),i._didScrollStop())}),ue(pe(i),"_didScrollStopSync",function(){var a=i.props,o=a.endRowIndex,s=a.firstRowIndex,u=a.onScrollEnd,c=a.scrollActions,d=a.scrollX,h=a.scrollY,p=a.scrolling;p&&(c.stopScroll(),u&&u(d,h,s,o))}),i._didScrollStop=r1e(i._didScrollStopSync,200,pe(i)),i._onKeyDown=i._onKeyDown.bind(pe(i)),i._setupHandlers(),i}return Tt(r,[{key:"componentWillUnmount",value:function(){this._cleanupHandlers(),this._didScrollStop.reset(),this._didScrollStopSync()}},{key:"_setupHandlers",value:function(){this._wheelHandler||(this._wheelHandler=new NP(this._onScroll,this._shouldHandleWheelX,this._shouldHandleWheelY,this.props.isRTL,this.props.stopScrollDefaultHandling,this.props.stopScrollPropagation)),this._touchHandler||(this._touchHandler=new V_e(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=Ho(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,ad),i.preventDefault();break;case"ArrowUp":this._onScroll(0,ad*-1),i.preventDefault();break;case"ArrowRight":this._onScroll(ad,0),i.preventDefault();break;case"ArrowLeft":this._onScroll(ad*-1,0),i.preventDefault();break}}},{key:"shouldComponentUpdate",value:function(i){return!hu(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=Ho(this.props),a=i.bodyOffsetTop,o=i.scrollbarXOffsetTop,s=i.visibleRowsHeight,u=this.props,c=u.tableSize.width,d=u.scrollContentHeight,h=u.scrollY,p=u.scrollX,m={viewportHeight:s,contentHeight:d,scrollbarYOffsetTop:a,scrollY:h,viewportWidth:c,contentWidth:c+this.props.maxScrollX,scrollbarXOffsetTop:o,scrollX:p,scrollTo:this._scrollTo,scrollToX:this.props.scrollActions.scrollToX,scrollToY:this.props.scrollActions.scrollToY};hu(this.previousScrollState,m)||(this.props.onScrollBarsUpdate(m),this.previousScrollState=m)}},{key:"render",value:function(){var i=i1e(this.props),a=i.ariaGroupHeaderIndex,o=i.ariaHeaderIndex,s=i.ariaFooterIndex,u=i.ariaRowCount,c=i.ariaRowIndexOffset,d=R1e(this.props),h=d.fixedColumnGroups,p=d.fixedColumns,m=d.fixedRightColumnGroups,v=d.fixedRightColumns,g=d.scrollableColumnGroups,b=d.scrollableColumns,C=Ho(this.props),x=C.bodyHeight,E=C.bodyOffsetTop,T=C.componentHeight,A=C.footOffsetTop,R=C.scrollbarXOffsetTop,D=C.visibleRowsHeight,I=this.props,H=I.className,G=I.elementHeights,q=I.gridAttributesGetter,O=I.maxScrollY,$=I.onColumnReorderEndCallback,X=I.onColumnResizeEndCallback,j=I.scrollContentHeight,V=I.scrollX,z=I.scrollY,Y=I.scrolling,re=I.tableSize,W=I.touchScrollEnabled,K=I.scrollbarYWidth,ie=re.ownerHeight,ne=re.width,te=G.cellGroupWrapperHeight,oe=G.footerHeight,se=G.groupHeaderHeight,de=G.headerHeight,ce=Ba(this.props),ge=ce.scrollEnabledX,Se=ce.scrollEnabledY,ye=q&&q(),J;se>0&&(J=k.createElement(Bl,{key:"group_header",ariaRowIndex:a,isHeaderOrFooter:!0,isScrolling:Y,className:sr(ke("fixedDataTableLayout/header"),ke("public/fixedDataTable/header")),width:ne,height:se,cellGroupWrapperHeight:te,index:0,zIndex:1,offsetTop:0,scrollLeft:V,fixedColumns:h,fixedRightColumns:m,scrollableColumns:g,visible:!0,touchEnabled:W,onColumnResizeEndCallback:X,onColumnReorderEndCallback:$,showScrollbarY:Se,scrollbarYWidth:K,isRTL:this.props.isRTL,isHeader:!0,isGroupHeader:!0}));var _e;Se&&(_e=this.props.scrollbarY);var ve;ge&&(ve=this.props.scrollbarX);var Ae=null;oe&&(Ae=k.createElement(Bl,{key:"footer",ariaRowIndex:s,isHeaderOrFooter:!0,isScrolling:Y,className:sr(ke("fixedDataTableLayout/footer"),ke("public/fixedDataTable/footer")),width:ne,height:oe,index:-1,zIndex:1,offsetTop:A,visible:!0,fixedColumns:p.footer,fixedRightColumns:v.footer,scrollableColumns:b.footer,scrollLeft:V,showScrollbarY:Se,scrollbarYWidth:K,isRTL:this.props.isRTL}));var Ie=this._renderRows(E,p.cell,v.cell,b.cell,x,c),Ue=k.createElement(Bl,{key:"header",ariaRowIndex:o,isHeaderOrFooter:!0,isScrolling:Y,className:sr(ke("fixedDataTableLayout/header"),ke("public/fixedDataTable/header")),width:ne,height:de,cellGroupWrapperHeight:te,index:-1,zIndex:1,offsetTop:se,scrollLeft:V,visible:!0,fixedColumns:p.header,fixedRightColumns:v.header,scrollableColumns:b.header,touchEnabled:W,onColumnResizeEndCallback:X,onColumnReorderEndCallback:$,showScrollbarY:Se,scrollbarYWidth:K,isRTL:this.props.isRTL,isHeader:!0}),Ve;z&&(Ve=k.createElement("div",{className:sr(ke("fixedDataTableLayout/topShadow"),ke("public/fixedDataTable/topShadow")),style:{top:E}}));var ir=ie&&ie<T&&j>D,At;(ir||z<O)&&(At=k.createElement("div",{className:sr(ke("fixedDataTableLayout/bottomShadow"),ke("public/fixedDataTable/bottomShadow")),style:{top:A}}));var Wt=null;(this.props.keyboardPageEnabled||this.props.keyboardScrollEnabled)&&(Wt=0);var Nt=H;return this.props.isRTL&&(Nt=sr(Nt,"fixedDataTable_isRTL")),k.createElement("div",Ot({className:sr(Nt,ke("fixedDataTableLayout/main"),ke("public/fixedDataTable/main")),role:"grid","aria-rowcount":u},ye,{tabIndex:Wt,onKeyDown:this._onKeyDown,onTouchStart:W?this._touchHandler.onTouchStart:null,onTouchEnd:W?this._touchHandler.onTouchEnd:null,onTouchCancel:W?this._touchHandler.onTouchCancel:null,ref:this._onRef,style:{height:T,width:ne}}),k.createElement("div",{className:ke("fixedDataTableLayout/rowsContainer"),style:{height:R,width:ne}},J,Ue,Ie,Ae,Ve,At),_e,ve)}}]),r}(k.Component);ue(jb,"propTypes",{width:U.number.isRequired,height:U.number,className:U.string,maxHeight:U.number,ownerHeight:U.number,overflowX:U.oneOf(["hidden","auto"]),overflowY:U.oneOf(["hidden","auto"]),touchScrollEnabled:U.bool,keyboardScrollEnabled:U.bool,keyboardPageEnabled:U.bool,scrollbarX:U.node,scrollbarXHeight:U.number,scrollbarY:U.node,scrollbarYWidth:U.number,onScrollBarsUpdate:U.func,defaultScrollbars:U.bool,showScrollbarX:U.bool,showScrollbarY:U.bool,onHorizontalScroll:U.func,onVerticalScroll:U.func,rowsCount:U.number.isRequired,rowHeight:U.number.isRequired,rowHeightGetter:U.func,subRowHeight:U.number,subRowHeightGetter:U.func,rowExpanded:U.oneOfType([U.element,U.func]),rowClassNameGetter:U.func,rowKeyGetter:U.func,groupHeaderHeight:U.number,headerHeight:U.number.isRequired,cellGroupWrapperHeight:U.number,footerHeight:U.number,scrollLeft:U.number,scrollToColumn:U.number,scrollTop:U.number,isVerticalScrollExact:U.bool,scrollToRow:U.number,onScrollStart:U.func,onScrollEnd:U.func,stopReactWheelPropagation:U.bool,stopScrollDefaultHandling:U.bool,stopScrollPropagation:U.bool,onContentHeightChange:U.func,onRowClick:U.func,onRowContextMenu:U.func,onRowDoubleClick:U.func,onRowMouseDown:U.func,onRowMouseUp:U.func,onRowMouseEnter:U.func,onRowMouseLeave:U.func,onRowTouchStart:U.func,onRowTouchEnd:U.func,onRowTouchMove:U.func,onColumnResizeEndCallback:U.func,onColumnReorderEndCallback:U.func,isRTL:U.bool,bufferRowCount:U.number,elementHeights:U.shape({cellGroupWrapperHeight:U.number,footerHeight:U.number,groupHeaderHeight:U.number,headerHeight:U.number}),gridAttributesGetter:U.func,rowAttributesGetter:U.func});ue(jb,"defaultProps",{elementHeights:{cellGroupWrapperHeight:void 0,footerHeight:0,groupHeaderHeight:0,headerHeight:0},keyboardScrollEnabled:!1,keyboardPageEnabled:!1,touchScrollEnabled:!1,stopScrollPropagation:!1});var Y_e={get:function(){return Nbe({reducer:zbe,devTools:process.env.NODE_ENV!=="production",middleware:function(r){return r({immutableCheck:!1,serializableCheck:!1})}})}},X_e=bb,K_e=Ku,Z_e=Rf,Q_e=wn,J_e=Xu,ewe=cu.exports,twe=Df,rwe=lP,nwe="[object Map]",iwe="[object Set]",awe=Object.prototype,owe=awe.hasOwnProperty;function swe(e){if(e==null)return!0;if(J_e(e)&&(Q_e(e)||typeof e=="string"||typeof e.splice=="function"||ewe(e)||rwe(e)||Z_e(e)))return!e.length;var t=K_e(e);if(t==nwe||t==iwe)return!e.size;if(twe(e))return!X_e(e).length;for(var r in e)if(owe.call(e,r))return!1;return!0}var Sx=swe;function dR(e){var t=lwe();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function lwe(){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 uwe=function(e){Jt(r,e);var t=dR(r);function r(){var n;xt(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 Tt(r,[{key:"render",value:function(){var i=!Sx(this.state)&&k.createElement(Kr,{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=!Sx(this.state)&&k.createElement(hR,{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),hR=function(e){Jt(r,e);var t=dR(r);function r(){return xt(this,r),t.apply(this,arguments)}return Tt(r,[{key:"render",value:function(){var i=this.props,a=i.offset,o=i.size,s={height:Kr.SIZE,width:o},u={height:Kr.SIZE,overflow:"hidden",width:o,top:a};return k.createElement("div",{className:sr(ke("public/fixedDataTable/horizontalScrollbar")),style:s},k.createElement("div",{style:u},k.createElement(Kr,Ot({},this.props,{isOpaque:!0,orientation:"horizontal",offset:void 0}))))}}]),r}(k.PureComponent);ue(hR,"propTypes",{contentSize:U.number.isRequired,offset:U.number.isRequired,onScroll:U.func.isRequired,position:U.number.isRequired,size:U.number.isRequired,isRTL:U.bool});var cwe=function(){return ki([function(t){return Ho(t).componentHeight},function(t){return t.elementHeights.groupHeaderHeight},function(t){return t.scrollX},function(t){return t.maxScrollX},function(t){return Zu(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}})},dwe=Ka,hwe=wn,fwe=ua,pwe="[object String]";function mwe(e){return typeof e=="string"||!hwe(e)&&fwe(e)&&dwe(e)==pwe}var gwe=mwe;function vwe(e){return function(t){return t==null?void 0:t[e]}}var ywe=vwe,bwe=ywe,_we=bwe("length"),wwe=_we,Cwe="\\ud800-\\udfff",xwe="\\u0300-\\u036f",Twe="\\ufe20-\\ufe2f",Swe="\\u20d0-\\u20ff",Ewe=xwe+Twe+Swe,Mwe="\\ufe0e\\ufe0f",Awe="\\u200d",Pwe=RegExp("["+Awe+Cwe+Ewe+Mwe+"]");function Rwe(e){return Pwe.test(e)}var Owe=Rwe,fR="\\ud800-\\udfff",kwe="\\u0300-\\u036f",Dwe="\\ufe20-\\ufe2f",Nwe="\\u20d0-\\u20ff",Iwe=kwe+Dwe+Nwe,Lwe="\\ufe0e\\ufe0f",Fwe="["+fR+"]",av="["+Iwe+"]",ov="\\ud83c[\\udffb-\\udfff]",$we="(?:"+av+"|"+ov+")",pR="[^"+fR+"]",mR="(?:\\ud83c[\\udde6-\\uddff]){2}",gR="[\\ud800-\\udbff][\\udc00-\\udfff]",Bwe="\\u200d",vR=$we+"?",yR="["+Lwe+"]?",Hwe="(?:"+Bwe+"(?:"+[pR,mR,gR].join("|")+")"+yR+vR+")*",zwe=yR+vR+Hwe,jwe="(?:"+[pR+av+"?",av,mR,gR,Fwe].join("|")+")",Ex=RegExp(ov+"(?="+ov+")|"+jwe+zwe,"g");function Wwe(e){for(var t=Ex.lastIndex=0;Ex.test(e);)++t;return t}var Uwe=Wwe,Vwe=wwe,Gwe=Owe,qwe=Uwe;function Ywe(e){return Gwe(e)?qwe(e):Vwe(e)}var Xwe=Ywe,Kwe=bb,Zwe=Ku,Qwe=Xu,Jwe=gwe,e2e=Xwe,t2e="[object Map]",r2e="[object Set]";function n2e(e){if(e==null)return 0;if(Qwe(e))return Jwe(e)?e2e(e):e.length;var t=Zwe(e);return t==t2e||t==r2e?e.size:Kwe(e).length}var Fm=n2e,i2e=function(t){return{offset:t.offset,width:t.width,index:t.index,columnKey:t.columnKey}},od=function(t){return{offset:t.offset,width:t.width,index:t.index,columnKey:t.columnKey}},a2e=function(){return ki([function(t){return Zu(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(z){var Y=n.length+a.length+i.length;if(z<0||z>=Y||!Number.isInteger(z))throw"columnIndex must be an integer between 0 and ".concat(Y-1," inclusive")},d=function(z){var Y=o.length+u.length+s.length;if(z<0||z>=Y||!Number.isInteger(z))throw"columnGroupIndex must be an integer between 0 and ".concat(Y-1," inclusive")},h=function(z){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!(Y&&Fl(z))&&z!==De.FIXED&&z!==De.FIXED_RIGHT&&z!==De.SCROLLABLE)throw"Invalid CellGroupType"},p=function(z){return z<n.length?De.FIXED:z<n.length+a.length?De.SCROLLABLE:De.FIXED_RIGHT},m=function(z){return z<o.length?De.FIXED:z<o.length+u.length?De.SCROLLABLE:De.FIXED_RIGHT},v=function(z,Y){if(Y===De.FIXED)return z;if(Y===De.SCROLLABLE)return z-n.length;if(Y===De.FIXED_RIGHT)return z-n.length-a.length},g=function(z,Y){if(Y===De.FIXED)return z;if(Y===De.SCROLLABLE)return z-o.length;if(Y===De.FIXED_RIGHT)return z-o.length-u.length},b=function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:De.SCROLLABLE;h(z);var Y=I(z);return Y.reduce(function(re,W){return re+W.width},0)},C=function(z,Y){var re=I(Y),W=v(z,Y);return re[W]},x=function(z){c(z);var Y=p(z),re=C(z,Y);return i2e(re)},E=function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(h(z,!0),Fl(z))return n.length+a.length+i.length;var Y=I(z);return Y.length},T=function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(h(z,!0),Fl(z))return o.length+u.length+s.length;var Y=H(z);return Y.length},A=function(z,Y){var re=H(Y),W=g(z,Y);return od(re[W])},R=function(z){d(z);var Y=m(z);return A(z,Y)},D=function(z){c(z);var Y=p(z),re=C(z,Y).groupIdx,W=G(re);return od(W)},I=function(z){if(z===De.FIXED)return n;if(z===De.FIXED_RIGHT)return i;if(z===De.SCROLLABLE)return a;throw"Invalid cell group type"},H=function(z){if(z===De.FIXED)return o;if(z===De.FIXED_RIGHT)return s;if(z===De.SCROLLABLE)return u;throw"Invalid cell group type"},G=function(z){var Y=Fm(o),re=Fm(u),W=Fm(s);if(Oa(z,0,Y))return o[z];if(Oa(z,Y,Y+re))return u[z-Y];if(Oa(z,Y+re,Y+re+W))return s[z-Y-re];throw"Invalid absolute column group index"},q=function(z,Y){if(z.length===0)return{element:null,distanceFromOffset:null};for(var re=0,W=0;W!==z.length&&!(re>Y);)re+=z[W].width,W++;return W=Ff(W-1,0,z.length-1),{element:z[W],distanceFromOffset:z[W].width-(re-Y)}},O=function(z){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:De.SCROLLABLE;h(Y);var re=I(Y),W=q(re,z),K=W.element,ie=W.distanceFromOffset;return K&&(K=od(K)),{column:K,distanceFromOffset:ie}},$=function(z){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:De.SCROLLABLE;h(Y);var re=H(Y),W=q(re,z),K=W.element,ie=W.distanceFromOffset;return K&&(K=od(K)),{columnGroup:K,distanceFromOffset:ie}},X=r.scrollToX,j=r.updateRowHeights;return{getColumn:x,getColumnGroup:R,getColumnGroupByChild:D,getColumnAtOffset:O,getColumnGroupAtOffset:$,getCellGroupWidth:b,getColumnCount:E,getColumnGroupCount:T,scrollToX:X,updateRowHeights:j}})};function Mx(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 $m(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mx(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var o2e=function(){var t=[],r=null,n=function(s){return t=t.concat(s),function(){var u=t.indexOf(s);t.splice(u,1)}},i=cwe(),a=a2e();return{getValue:ki([function(o){return i(o)},function(o,s){return a(o,s)}],function(o,s){return r=$m($m($m({},o),s),{},{subscribe:n}),r}),notify:function(){t.forEach(function(s){return s(r)})}}};function Ax(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 sd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ax(Object(r),!0).forEach(function(n){ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ax(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s2e(e){var t=l2e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function l2e(){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 bR=function(e){Jt(r,e);var t=s2e(r);function r(n){var i;return xt(this,r),i=t.call(this,n),i._initialize(n),i.fixedDataTableApi=o2e(),i.previousApiValue=null,i}return Tt(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=Y_e.get(),this.reduxStore.dispatch(jbe(i)),this.scrollActions=Ybe(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(sd(sd({},this.props),this.reduxStore.getState()),sd(sd({},this.scrollActions),{},{updateRowHeights:function(o){return oP({updateRowHeights:qbe},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(jb,Ot({},this.props,this.state.boundState,{scrollActions:this.scrollActions}));return this.props.defaultScrollbars?k.createElement(ss.Provider,{value:i},k.createElement(uwe,this.props,a)):k.createElement(ss.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 qn(i.height!==void 0||i.maxHeight!==void 0,"You must set either a height or a maxHeight"),i===a.props?null:(a.reduxStore.dispatch(Wbe({newProps:i,oldProps:a.props})),{boundState:r.getBoundState(a.reduxStore),props:i})}},{key:"getBoundState",value:function(i){var a=i.getState(),o=Cl(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(bR,"defaultProps",{defaultScrollbars:!0,scrollbarXHeight:Kr.SIZE,scrollbarYWidth:Kr.SIZE});var u2e=tR(bR);function c2e(e){var t=d2e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function d2e(){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 Kf=function(e){Jt(r,e);var t=c2e(r);function r(){return xt(this,r),t.apply(this,arguments)}return Tt(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(Kf,"__TableColumn__",!0);ue(Kf,"propTypes",{align:U.oneOf(["left","center","right"]),fixed:U.bool,fixedRight:U.bool,header:U.oneOfType([U.node,U.func]),cell:U.oneOfType([U.node,U.func]),footer:U.oneOfType([U.node,U.func]),columnKey:U.oneOfType([U.string,U.number]),width:U.number.isRequired,minWidth:U.number,maxWidth:U.number,flexGrow:U.number,isResizable:U.bool,isReorderable:U.bool,allowCellsRecycling:U.bool,pureRendering:U.bool,cellClassName:U.string});ue(Kf,"defaultProps",{allowCellsRecycling:!1,fixed:!1,fixedRight:!1});function h2e(e){var t=f2e();return function(){var n=Xe(e),i;if(t){var a=Xe(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return vr(this,i)}}function f2e(){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 Wb=function(e){Jt(r,e);var t=h2e(r);function r(){return xt(this,r),t.apply(this,arguments)}return Tt(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(Wb,"__TableColumnGroup__",!0);ue(Wb,"propTypes",{align:U.oneOf(["left","center","right"]),fixed:U.bool,header:U.oneOfType([U.node,U.func])});ue(Wb,"defaultProps",{fixed:!1});const p2e=()=>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),m2e="#f4f4f8",g2e="#edeef1",v2e="#e3e5ea",y2e="#f9f9fb",b2e="#ffcb05",_2e="#1faff3",w2e="#e5e5e5",C2e="#5b6372",x2e="#3a4356",T2e="#3c3c42",S2e="#a3a3a3",E2e="#d0d3db",M2e="_headerCell_2qf2w_16",A2e="_noSort_2qf2w_29",P2e="_standard_2qf2w_29",R2e="_caret_2qf2w_33",O2e="_headerLabel_2qf2w_38",k2e="_icon_2qf2w_43",D2e="_numberIcon_2qf2w_50",N2e="_dateIcon_2qf2w_54",I2e="_textIcon_2qf2w_58",L2e="_booleanIcon_2qf2w_62",F2e="_sortIcon_2qf2w_66",$2e="_sortAscending_2qf2w_74",B2e="_sortDescending_2qf2w_78",Fi={athensGray:m2e,athensGrayDark:g2e,athensGrayDark2:v2e,athensGrayLight:y2e,defaultBrandColor:b2e,dodgerBlue:_2e,mercury:w2e,shuttleGrayDark:C2e,oxfordBlue:x2e,darkModeDefaultBackground:T2e,indicatorGrey:S2e,secondaryButtonHover:E2e,headerCell:M2e,noSort:A2e,standard:P2e,caret:R2e,headerLabel:O2e,icon:k2e,numberIcon:D2e,dateIcon:N2e,textIcon:I2e,booleanIcon:L2e,sortIcon:F2e,sortAscending:$2e,sortDescending:B2e},H2e="_icon_t30x8_1",z2e="_numberIcon_t30x8_11",j2e="_dateIcon_t30x8_15",W2e="_textIcon_t30x8_19",U2e="_booleanIcon_t30x8_23",hl={icon:H2e,numberIcon:z2e,dateIcon:j2e,textIcon:W2e,booleanIcon:U2e},V2e=({columnType:e})=>w.jsx("div",{className:uu(hl.icon,{[hl.numberIcon]:N.isNumber(e),[hl.dateIcon]:N.isDatetime(e),[hl.textIcon]:N.isText(e),[hl.booleanIcon]:N.isBoolean(e)})}),G2e=({column:e,onClick:t,isSelected:r,children:n,showFieldTypeIcon:i,sortIcon:a="standard"})=>w.jsxs("div",{className:Fi.headerCell,onClick:()=>{t(e)},children:[i&&w.jsx(V2e,{columnType:e.type}),w.jsx("div",{className:Fi.headerLabel,children:n}),w.jsx("div",{className:uu(Fi.sortIcon,{[Fi.caret]:a==="caret",[Fi.standard]:a==="standard",[Fi.noSort]:!r||e.direction===0,[Fi.sortAscending]:r&&e.direction===1,[Fi.sortDescending]:r&&e.direction===-1})})]}),q2e=26,Y2e=26,Px=8,_R=36,wR=29,CR=24,sv=350,X2e=126,K2e=38,Z2e=55,Q2e=(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(h=>a.measureText(h.name).width+_R+(t?wR:0)),s=a.measureText("0").width,u=e.columns.map(h=>({type:N.simpleColumnType(h.type),index:h.index})),{rows:c}=e,d=u.map(h=>{const p=c.reduce((m,v)=>{var x;const g=v[h.index].displayValue,b=(x=r[h.index])!=null&&x.isHtml?J2e(g):g,C=h.type==="number"?v[h.index].displayValue.length*s:a.measureText(b).width;return Math.max(m,C)},0);return CR+p});return o.map((h,p)=>{var m;return(m=r[p])!=null&&m.width?r[p].width:Math.ceil(Math.max(X2e,Math.min(sv,Math.max(h,d[p]))))})};function J2e(e){const t=document.createElement("div");return t.innerHTML=e,xR(t)}function xR(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=xR(i):i.nodeType===3&&(n=i.nodeValue),n&&(r+=n);return r}const Rx=e=>e%2===1,Ox=({colIndex:e=0,rowIndex:t=0,themeSettings:r,customStyles:n,isHeaderCell:i})=>{var c,d,h,p,m,v,g,b,C,x,E,T,A,R,D,I,H,G;let a=r.chart.textColor;const o=r.typography.fontFamily;let s=r.chart.backgroundColor;const u=w.getSlightlyDifferentColor(s);return i?(d=(c=n==null?void 0:n.header)==null?void 0:c.color)!=null&&d.enabled&&(s=((p=(h=n==null?void 0:n.header)==null?void 0:h.color)==null?void 0:p.backgroundColor)||u,a=((v=(m=n==null?void 0:n.header)==null?void 0:m.color)==null?void 0:v.textColor)||a):((b=(g=n==null?void 0:n.columns)==null?void 0:g.alternatingColor)!=null&&b.enabled&&Rx(e)&&(s=((x=(C=n==null?void 0:n.columns)==null?void 0:C.alternatingColor)==null?void 0:x.backgroundColor)||u,a=((T=(E=n==null?void 0:n.columns)==null?void 0:E.alternatingColor)==null?void 0:T.textColor)||a),(R=(A=n==null?void 0:n.rows)==null?void 0:A.alternatingColor)!=null&&R.enabled&&Rx(t)&&(s=((I=(D=n==null?void 0:n.rows)==null?void 0:D.alternatingColor)==null?void 0:I.backgroundColor)||u,a=((G=(H=n==null?void 0:n.rows)==null?void 0:H.alternatingColor)==null?void 0:G.textColor)||a)),{color:a,backgroundColor:s,fontFamily:o}},eCe="#f4f4f8",tCe="#edeef1",rCe="#e3e5ea",nCe="#f9f9fb",iCe="#ffcb05",aCe="#1faff3",oCe="#e5e5e5",sCe="#5b6372",lCe="#3a4356",uCe="#3c3c42",cCe="#a3a3a3",dCe="#d0d3db",hCe="_tableWrapper_1ode4_16",fCe="_table_1ode4_16",pCe="_tableHeader_1ode4_78",mCe="_tableCell_1ode4_88",gCe="_tableCellContent_1ode4_99",vCe="_headerColor_1ode4_105",yCe="_rowColor_1ode4_109",Tl={athensGray:eCe,athensGrayDark:tCe,athensGrayDark2:rCe,athensGrayLight:nCe,defaultBrandColor:iCe,dodgerBlue:aCe,mercury:oCe,shuttleGrayDark:sCe,oxfordBlue:lCe,darkModeDefaultBackground:uCe,indicatorGrey:cCe,secondaryButtonHover:dCe,tableWrapper:hCe,table:fCe,tableHeader:pCe,tableCell:mCe,tableCellContent:gCe,headerColor:vCe,rowColor:yCe},bCe=e=>N.isNumber(e)?"right":"left",_Ce=new RegExp(`<\\/?[\\w\\s="/.':;#-\\/\\?]+>`),kx=({displayValue:e,width:t,padding:r,ellipsizedLength:n,isHtml:i})=>{var h,p,m,v,g,b,C,x;const{app:a}=_t(),o=(v=(m=(p=(h=a==null?void 0:a.settings)==null?void 0:h.chartConfig)==null?void 0:p.tabular)==null?void 0:m.htmlContent)==null?void 0:v.enabled,s=(x=(C=(b=(g=a==null?void 0:a.settings)==null?void 0:g.chartConfig)==null?void 0:b.tabular)==null?void 0:C.htmlContent)==null?void 0:x.sanitizeContents,{isHtmlValue:u,value:c}=k.useMemo(()=>{let E=i;o&&typeof E=="undefined"&&(E=_Ce.test(e));const T=E&&s?w.purify.sanitize(e):e;return{isHtmlValue:E,value:T}},[o,i,e,s]),d=c.length>n;return w.jsx("div",{className:Tl.tableCellContent,style:{maxWidth:`${t-r}px`},children:u?w.jsx("div",{dangerouslySetInnerHTML:{__html:c}}):d?w.jsx(xf,{title:c,children:w.jsx("div",{children:c})}):w.jsx("div",{children:c})})},wCe=({dataTable:e,dataOptions:t,height:r,width:n,customStyles:i,themeSettings:a,onSortUpdate:o})=>{var x,E,T;const s=i&&i.showFieldTypeIcon!==void 0?i.showFieldTypeIcon:!0,u=_R+(s?wR:0),c=(i==null?void 0:i.paddingVertical)||Px,d=(i==null?void 0:i.paddingHorizontal)||Px,h=((x=i==null?void 0:i.columns)==null?void 0:x.width)==="auto"?(n-d*2-p2e())/t.columns.length:void 0,p=k.useMemo(()=>t.columns.map(A=>({isHtml:"isHtml"in A&&!!A.isHtml,width:h})),[t.columns,h]),[m,v]=k.useState(((E=document.fonts)==null?void 0:E.status)==="loaded"),g=(T=a.typography)==null?void 0:T.fontFamily,b=k.useMemo(()=>Q2e(e,s,p,g),[e,s,p,g,m]);k.useEffect(()=>{var A;(A=document.fonts)==null||A.ready.then(()=>{v(!0)}).catch(R=>{console.warn("Failed to observe font loading",R)})},[]);const C=k.useMemo(()=>e.columns.map((A,R)=>{const D=b[R],I=t.columns[R],H=Ox({isHeaderCell:!0,themeSettings:a,customStyles:i});return D?w.jsx(Kf,{maxWidth:sv,minWidth:sv,allowCellsRecycling:!0,width:D,header:w.jsx(sh,{className:uu(Tl.tableHeader),style:H,children:w.jsx(G2e,{column:A,onClick:o,isSelected:!!Math.abs(A.direction),showFieldTypeIcon:s,sortIcon:(i==null?void 0:i.sortIcon)||"standard",children:w.jsx(kx,{displayValue:w.getDataOptionTitle(I),width:D,padding:u,ellipsizedLength:K2e})})}),cell:O=>{var $=O,{rowIndex:G}=$,q=xe($,["rowIndex"]);return w.jsx(sh,B(M({className:uu(Tl.tableCell),style:Ox({colIndex:R,rowIndex:G,themeSettings:a,customStyles:i})},q),{children:w.jsx(kx,{displayValue:e.rows[G][R].displayValue,width:D,padding:CR,ellipsizedLength:Z2e,isHtml:"isHtml"in I?I.isHtml:void 0})}))},align:bCe(A.type)},`col${R}`):null}),[e,b,a,i,o,s,t,u]);return k.useMemo(()=>w.jsx("div",{className:Tl.tableWrapper,style:{padding:`${c}px ${d}px`},children:w.jsx(u2e,{className:Tl.table,rowHeight:(i==null?void 0:i.rowHeight)||Y2e,rowsCount:e.rows.length,width:n-d*2,height:r-c*2,headerHeight:(i==null?void 0:i.headerHeight)||q2e,children:C})}),[C,i,e,r,d,c,n])},CCe=(e,t)=>{if(!e.columns.some(o=>N.isNumber(o.type)))return e;const r=e.columns,i=e.rows.map(o=>o.map((s,u)=>{const c=r[u].type,d=w.getCompleteNumberFormatConfig(t.columns[u].numberFormatConfig);if(N.isNumber(c)){const h=w.createCompareValue(s.displayValue,c);return{displayValue:w.applyFormatPlainText(d,h.value),compareValue:h}}else return s}));return{columns:r,rows:i}},xCe="_component_1rw9b_1",TCe={component:xCe},SCe=({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(()=>CCe(e,t),[e,t]);k.useLayoutEffect(()=>{u.current=e},[e]);const d=k.useMemo(()=>M({sortIcon:"caret",showFieldTypeIcon:!1},r),[r]);return w.jsx("div",{className:TCe.component,ref:s,children:w.jsx(wCe,{dataTable:c,dataOptions:t,onSortUpdate:n,height:o,width:a,customStyles:d,themeSettings:i})})},ECe=e=>({"& .MuiPaginationItem-circular.Mui-selected":{color:e.chart.textColor},"& .MuiPaginationItem-circular":{color:e.chart.secondaryTextColor,fontFamily:e.typography.fontFamily}}),MCe=e=>({paddingVertical:e.paddingVertical,paddingHorizontal:e.paddingHorizontal,header:e.header,rows:e.rows,columns:e.columns}),TR=25,SR=10,ER=({dataSet:e,dataOptions:t,styleOptions:r={},filters:n,onDataReady:i})=>{const{rowsPerPage:a=TR,width:o,height:s}=r,{t:u}=w.useTranslation(),{themeSettings:c}=mt(),[d,h]=k.useState(0),{filters:p,relations:m}=k.useMemo(()=>N.getFilterListAndRelationsJaql(n),[n]),[v,g]=k.useState(1),b=k.useRef(null),C=k.useMemo(()=>_f(t),[t]),x=k.useMemo(()=>nb(C.columns.filter(w.isMeasureColumn).map(w.translateColumnToMeasure)),[C]),E=k.useMemo(()=>MCe(r),[r]),[T,A]=k.useState(C),[R,D]=k.useState(e),[I,H]=Soe({dataSet:R,dataOptions:T,filters:p,filterRelations:m,count:a*SR,offset:d}),G=k.useMemo(()=>{if(I&&i){const V=i(I);if(!PA(V))throw new N.TranslatableError("errors.incorrectOnDataReadyHandler");return V}return I},[I]),q=Eoe({data:G,innerDataOptions:H,dataColumnNamesMapping:x,needToAggregate:!ta(R)});k.useEffect(()=>{A(C),D(e),g(1),h(0)},[e,C]);const O=k.useCallback(V=>{if(!I)return;Math.floor(I.rows.length/a)===V&&h(I.rows.length),g(V)},[I,a]),$=k.useCallback(V=>{g(1),h(0),T&&A(Mne(T,V))},[T]),X=k.useMemo(()=>{if(!q||ta(R))return q;const V=q.columns.find(z=>z.direction!==0);return V?w.orderBy(q,[V]):q},[q,R]),j=k.useMemo(()=>X?{columns:X.columns,rows:X.rows.slice((v-1)*a,v*a)}:void 0,[X,v,a]);return H?w.jsx(Nh,{defaultSize:Ih("table"),size:{width:o,height:s},children:V=>{if(!q||!j)return w.jsx(Wi,{});if(w.isDataTableEmpty(q))return w.jsx(sy,{iconType:"table"});const z=Math.ceil(q.rows.length/a);return w.jsxs("div",{className:"csdk-table-root",style:{display:"flex",flexDirection:"column",alignItems:"center",backgroundColor:c.chart.backgroundColor},"data-testid":"table-root",role:"region","aria-label":u("chart.table.label"),children:[w.jsx(SCe,{dataTable:j,dataOptions:H,designOptions:E,themeSettings:c,width:V.width,height:V.height-32,onSortUpdate:$}),w.jsx(nS,{ref:b,page:v,count:z,onChange:(re,W)=>O(W),sx:ECe(c)})]})}}):null},ACe=k.createContext(null),Bm={didCatch:!1,error:null};class lv extends k.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Bm}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(Bm)}}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&&PCe(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(Bm)}}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(ACe.Provider,{value:{didCatch:a,error:o,resetErrorBoundary:this.resetErrorBoundary}},s)}}function PCe(){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 MR=k.createContext(void 0),RCe=({children:e})=>{const[t,r]=k.useState([]),[n,i]=k.useState([]),a=()=>r([]),o=()=>i([]);return w.jsx(MR.Provider,{value:{errors:t,warnings:n,clearError:a,clearWarning:o,setErrors:r,setWarnings:i},children:e})},AR=()=>{const e=k.useContext(MR);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 Qu(e,t,r){const n=cf(e);return typeof e!="object"&&e===n?!1:n==null||(t?t.some(a=>!N.isEqual(n[a],e[a])):!N.isEqual(n,e))?!0:r?r(e,n):!1}const OCe="BE#081586",kCe="BE#733473",DCe=e=>{const[t,r]=k.useState(0),{setErrors:n,errors:i}=AR(),a=Qu(e,["dataOptions","filters"]);if(k.useEffect(()=>{a&&i.length>0&&(r(t+1),n([]))},[e.dataOptions,e.filters]),!ta(e.dataSet))throw new N.TranslatableError("errors.missingDataSource");const o=N.cloneDeep(e.dataOptions),s=w.extractTrendMeasures(o);o.value.push(...s);const u=w.extractForecastMeasures(o);o.value.push(...u);const c=k.useCallback(({error:p})=>{console.debug("Unexpected error occurred when rendering advanced chart:",p);const m=N.cloneDeep(o),v=h(p.toString());return m.value=m.value.filter(g=>{const b="column"in g?g.column.name:g.name;return!("column"in g&&"type"in g.column&&g.column.type==="calculatedmeasure"&&[w.TREND_PREFIX,w.FORECAST_PREFIX].some(E=>b.includes(E))&&v.some(E=>E.includes(b)))}),w.jsx(lv,{fallbackRender:d,onError:g=>{const b=h(g.toString());n(C=>[...new Set([...C,...b])])},children:w.jsx(bd,B(M({},e),{dataOptions:m}))},`errorboundary_${t}`)},[e,i]),d=k.useCallback(({error:p})=>(console.debug("Error occurred when rendering fallback chart:",p),p.toString().includes(OCe)?w.jsx(bd,M({},e)):w.jsx(Xv,{error:i[0]})),[e,i]),h=p=>{if(p.includes(kCe)){const m=/Error: BE#733473 More than 1 Function failed, aggregated failures:\s*/;if(m.test(p))return p.replace(m,"").split(";").map(g=>g.trim()).filter(Boolean)}return[p.trim()]};return w.jsx(lv,{fallbackRender:c,onError:p=>{const m=h(p.toString());n(v=>[...new Set([...v,...m])])},children:w.jsx(bd,B(M({},e),{dataOptions:o}))},`errorboundary_${t}`)},PR=e=>{const{dataSet:t}=e;return!!t&&typeof t!="string"&&"rows"in t&&"columns"in t},RR=Eu({componentName:"Chart",shouldSkipSisenseContextWaiting:PR,customContextErrorMessageKey:"errors.chartNoSisenseContext"})(e=>{var t;if(NCe(e))return w.jsx(ER,M({},e));if(ICe(e))return w.jsx(DCe,M({},e));if(OR(e))return w.jsx(bd,M({},e));throw new N.TranslatableError("errors.chartInvalidProps",{chartType:(t=e.chartType)!=null?t:"unknown"})});function NCe(e){return e.chartType==="table"&&"columns"in e.dataOptions}function OR(e){return e.chartType!=="table"}function ICe(e){return!OR(e)||!N.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 Ub(e,{onLocalStateChange:t,syncCompareFn:r=N.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=N.isFunction(s)?s(u):s;return t==null||t(c),c})},[t]);return[n,o]}function LCe(e,t,r){r=typeof r=="function"?r:void 0;var n=r?r(e,t):void 0;return n===void 0?N.baseIsEqual(e,t,void 0,r):!!n}const FCe=e=>{const t=kR(e);return t.config.disabled=!e.config.disabled,t},kR=e=>{const t=N.cloneDeep(e);return Object.setPrototypeOf(t,e),t};function $Ce(e,t,r){const n=M({guid:t},r?{backgroundFilter:r}:{});return N.members(e,[],n)}function Zf(e){if(!N.isMembersFilter(e))throw new N.TranslatableError("errors.notAMembersFilter");const{attribute:t,config:{guid:r,backgroundFilter:n}}=e;return $Ce(t,r,n)}function Vb(e){return"members"in e&&e.members.length===0}function Zr(e,t){return e.expression===(t==null?void 0:t.expression)&&e.granularity===t.granularity}function ls(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)=>!LCe(r,t[n],DR))}function Gb(e,t){return Zr(e.attribute,t.attribute)}function DR(e,t){const r=w.flow(BCe,HCe);return N.isEqual(r(e),r(t))}function BCe(e){return B(M({},e),{name:""})}function HCe(e){return B(M({},e),{config:B(M({},e.config),{guid:""})})}function zCe(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,d=o;return a===void 0&&o===void 0?!0:[a,o].some(h=>h===void 0)||s.operator!==c.operator?!1:u.instanceid&&d.instanceid?!ls(e==null?void 0:e.filter(h=>h.config.guid===u.instanceid),t==null?void 0:t.filter(h=>h.config.guid===d.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 NR="sdkHookInit",jCe=(e,t,r,n)=>{if(!r)return;wS(NR,{packageName:t,packageVersion:"2.26.0",hookName:e},r.httpClient).finally(n)};function WCe(e){const{tracking:t,app:r}=_t(),{trackEvent:n}=oy(),i=k.useRef(!1);k.useEffect(()=>{if(!(!t||!r)&&!i.current){const a={packageName:t.packageName||"sdk-ui",packageVersion:"2.26.0",hookName:e};n(NR,a,!t.enabled).finally(()=>i.current=!0)}},[t,e,n,r])}const qb=e=>t=>(...r)=>(WCe(e),t(...r));function Yb({enabled:e},t){const r=k.useRef(!1);return k.useCallback((n,i=!1)=>{const a=e===!1||!n,o=r.current;return r.current=a,!a&&(o||t||i)},[e,t])}function Qf(e,t){switch(t.type){case"loading":return UCe(e);case"success":return VCe(t.data);case"error":return GCe(t.error)}}function UCe(e){return e.status==="loading"?e:B(M({},e),{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0})}function VCe(e){return{isLoading:!1,isError:!1,isSuccess:!0,data:e,status:"success",error:void 0}}function GCe(e){return{isLoading:!1,isError:!0,isSuccess:!1,data:void 0,status:"error",error:e}}function Dx(e,t){return Qf(e,t)}const qCe=qb("useExecutePivotQuery")(Xb);function Xb(e){const t=XCe(e),r=Yb(e,t),[n,i]=k.useReducer(Dx,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0}),{isInitialized:a,app:o}=_t();return k.useEffect(()=>{if(a||i({type:"error",error:new N.TranslatableError("errors.executeQueryNoSisenseContext")}),r(o)){i({type:"loading"});const{dataSource:s,rows:u,columns:c,values:d,grandTotals:h,filters:p,highlights:m,count:v,offset:g,onBeforeQuery:b}=e,{filters:C,relations:x}=N.getFilterListAndRelationsJaql(p);N.executePivotQuery({dataSource:s,rows:u,columns:c,values:d,grandTotals:h,filters:C,filterRelations:x,highlights:m,count:v,offset:g},o,{onBeforeQuery:b}).then(E=>{i({type:"success",data:E})}).catch(E=>{i({type:"error",error:E})})}},[o,a,e,r]),n.data&&t?Dx(n,{type:"loading"}):n}const YCe=["dataSource","rows","columns","values","grandTotals","count","offset","onBeforeQuery"];function XCe(e){return Qu(e,YCe,(t,r)=>{const{filters:n}=N.getFilterListAndRelationsJaql(r.filters),{filters:i}=N.getFilterListAndRelationsJaql(t.filters);return ls(n,i)||ls(r.highlights,t.highlights)})}var Hm=function(){return N.root.Date.now()},KCe="Expected a function",ZCe=Math.max,QCe=Math.min;function IR(e,t,r){var n,i,a,o,s,u,c=0,d=!1,h=!1,p=!0;if(typeof e!="function")throw new TypeError(KCe);t=w.toNumber(t)||0,N.isObject(r)&&(d=!!r.leading,h="maxWait"in r,a=h?ZCe(w.toNumber(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p);function m(R){var D=n,I=i;return n=i=void 0,c=R,o=e.apply(I,D),o}function v(R){return c=R,s=setTimeout(C,t),d?m(R):o}function g(R){var D=R-u,I=R-c,H=t-D;return h?QCe(H,a-I):H}function b(R){var D=R-u,I=R-c;return u===void 0||D>=t||D<0||h&&I>=a}function C(){var R=Hm();if(b(R))return x(R);s=setTimeout(C,g(R))}function x(R){return s=void 0,p&&n?m(R):(n=i=void 0,o)}function E(){s!==void 0&&clearTimeout(s),c=0,n=u=i=s=void 0}function T(){return s===void 0?o:x(Hm())}function A(){var R=Hm(),D=b(R);if(n=arguments,i=this,u=R,D){if(s===void 0)return v(u);if(h)return clearTimeout(s),s=setTimeout(C,t),m(u)}return s===void 0&&(s=setTimeout(C,t)),o}return A.cancel=E,A.flush=T,A}function LR(e,t){const[r,n]=k.useState(e),i=k.useMemo(()=>IR(a=>{n(a)},t),[t]);return k.useEffect(()=>{i(e)},[e,i]),k.useEffect(()=>()=>{i.cancel()},[i]),r}function FR(e){return df(e)?{direction:e}:e}function Nx(e,t){return{valuesIndex:e.field-(t.rows||[]).length-(t.columns||[]).length,columnsMembersPath:Object.values(e.measurePath||{})}}function JCe({type:e,settings:t,sortDetails:r},n){return e==="simple"?r.field>=(n.rows||[]).length?[{rowIndex:0,sort:{direction:N.getSortType(t[0].direction),by:Nx(r,n)}}]:[{rowIndex:r.field,sort:{direction:N.getSortType(t[0].direction)}}]:t.reduce((i,a,o)=>{var h;const s=(h=n.rows)==null?void 0:h[o],u=(s==null?void 0:s.sortType)&&FR(s==null?void 0:s.sortType),c={direction:N.getSortType(a.direction),by:Nx(r,n)};return!a.selected&&N.isEqual(u==null?void 0:u.by,c.by)&&i.push({rowIndex:o,sort:null}),a.selected&&i.push({rowIndex:o,sort:c}),i},[])}const exe=200,Ix=e=>M(M({attribute:w.translateColumnToAttribute(e),includeSubTotals:e.includeSubTotals||!1},e.sortType&&{sort:FR(e.sortType)}),e.name&&{name:e.name}),txe=e=>{var t;return{measure:w.translateColumnToMeasure(e),totalsCalculation:e.totalsCalculation,dataBars:e.dataBars||!1,shouldRequestMinMax:((t=e.color)==null?void 0:t.type)==="range"}},Kb=e=>{const{rows:t=[],columns:r=[],values:n=[],grandTotals:i}=e,a=t.flatMap(Ix),o=r.flatMap(Ix),s=n.flatMap(txe);return{rows:a,columns:o,values:s,grandTotals:i}},rxe=({dataSet:e,dataOptionsInternal:t,filters:r,highlights:n})=>{const[i,a]=k.useState(),{rows:o,columns:s,values:u,grandTotals:c}=k.useMemo(()=>Kb(t),[t]),d=k.useCallback(m=>{a(v=>N.isEqual(v,m)?v:m)},[a]),h=LR(k.useMemo(()=>({dataSource:e,rows:o,columns:s,values:u,grandTotals:c,filters:r,highlights:n,onBeforeQuery:d}),[e,o,s,u,c,r,n,d]),exe),{error:p}=Xb(h);return{jaql:i,error:p}},$R=e=>w.jsx("svg",B(M({width:"24",height:"24",viewBox:"0 0 24 24"},e),{children:w.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 BR(e){return function(t){t=N.toString(t);var r=oA(t)?wg(t):void 0,n=r?r[0]:t.charAt(0),i=r?aA(r,1).join(""):t.slice(1);return n[e]()+i}}var HR=BR("toUpperCase");function nxe(e){return HR(N.toString(e).toLowerCase())}function ixe(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 axe(e){return function(t){return e==null?void 0:e[t]}}var oxe={À:"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"},sxe=axe(oxe),lxe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,uxe="\\u0300-\\u036f",cxe="\\ufe20-\\ufe2f",dxe="\\u20d0-\\u20ff",hxe=uxe+cxe+dxe,fxe="["+hxe+"]",pxe=RegExp(fxe,"g");function mxe(e){return e=N.toString(e),e&&e.replace(lxe,sxe).replace(pxe,"")}var gxe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function vxe(e){return e.match(gxe)||[]}var yxe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function bxe(e){return yxe.test(e)}var zR="\\ud800-\\udfff",_xe="\\u0300-\\u036f",wxe="\\ufe20-\\ufe2f",Cxe="\\u20d0-\\u20ff",xxe=_xe+wxe+Cxe,jR="\\u2700-\\u27bf",WR="a-z\\xdf-\\xf6\\xf8-\\xff",Txe="\\xac\\xb1\\xd7\\xf7",Sxe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Exe="\\u2000-\\u206f",Mxe=" \\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",UR="A-Z\\xc0-\\xd6\\xd8-\\xde",Axe="\\ufe0e\\ufe0f",VR=Txe+Sxe+Exe+Mxe,GR="['’]",Lx="["+VR+"]",Pxe="["+xxe+"]",qR="\\d+",Rxe="["+jR+"]",YR="["+WR+"]",XR="[^"+zR+VR+qR+jR+WR+UR+"]",Oxe="\\ud83c[\\udffb-\\udfff]",kxe="(?:"+Pxe+"|"+Oxe+")",Dxe="[^"+zR+"]",KR="(?:\\ud83c[\\udde6-\\uddff]){2}",ZR="[\\ud800-\\udbff][\\udc00-\\udfff]",Io="["+UR+"]",Nxe="\\u200d",Fx="(?:"+YR+"|"+XR+")",Ixe="(?:"+Io+"|"+XR+")",$x="(?:"+GR+"(?:d|ll|m|re|s|t|ve))?",Bx="(?:"+GR+"(?:D|LL|M|RE|S|T|VE))?",QR=kxe+"?",JR="["+Axe+"]?",Lxe="(?:"+Nxe+"(?:"+[Dxe,KR,ZR].join("|")+")"+JR+QR+")*",Fxe="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$xe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Bxe=JR+QR+Lxe,Hxe="(?:"+[Rxe,KR,ZR].join("|")+")"+Bxe,zxe=RegExp([Io+"?"+YR+"+"+$x+"(?="+[Lx,Io,"$"].join("|")+")",Ixe+"+"+Bx+"(?="+[Lx,Io+Fx,"$"].join("|")+")",Io+"?"+Fx+"+"+$x,Io+"+"+Bx,$xe,Fxe,qR,Hxe].join("|"),"g");function jxe(e){return e.match(zxe)||[]}function Wxe(e,t,r){return e=N.toString(e),t=t,t===void 0?bxe(e)?jxe(e):vxe(e):e.match(t)||[]}var Uxe="['’]",Vxe=RegExp(Uxe,"g");function Gxe(e){return function(t){return ixe(Wxe(mxe(t).replace(Vxe,"")),e,"")}}var eO=Gxe(function(e,t,r){return t=t.toLowerCase(),e+(r?nxe(t):t)});function qxe(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 Yxe(e,t){return function(r,n){if(r==null)return r;if(!N.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 Xxe=Yxe(N.baseForOwn);function Kxe(e,t,r,n){return Xxe(e,function(i,a,o){t(n,i,r(i),o)}),n}function tO(e,t){return function(r,n){var i=N.isArray(r)?qxe:Kxe,a=t?t():{};return i(r,e,N.baseIteratee(n),a)}}var Ju=tO(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]}),ec=(e=>(e.HIGHLIGHT="highlight",e.FILTER="filter",e))(ec||{});function Zb(e){return t=>{var r,n,i,a,o;return B(M({},t),{toolbar:B(M({},t.toolbar),{menu:B(M({},(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 rO(e){return t=>{var r,n;return B(M({},t),{config:B(M({},t.config),{header:Zb(e)((n=(r=t.config)==null?void 0:r.header)!=null?n:{})})})}}const Zxe=Object.freeze(Object.defineProperty({__proto__:null,withHeaderMenuItem:rO,withMenuItemInHeaderConfig:Zb},Symbol.toStringTag,{value:"Module"})),Hx=(e,t)=>{var r;return N.isCartesian(e)&&((r=t.category)==null?void 0:r.length)===1||N.isScatter(e)};function Qxe({chartType:e,dataOptions:t,enabled:r}){const[n,i]=k.useState([]),a=k.useRef(r&&Hx(e,t));k.useEffect(()=>{a.current=r&&Hx(e,t)},[e,t,r]);const o=k.useMemo(()=>{if(n.length===0)return h=>B(M({},h),{series:h.series.map(p=>B(M({},p),{data:p.data.map(m=>B(M({},m),{selected:!1}))}))});if(N.isScatter(e))return h=>B(M({},h),{series:h.series.map(p=>B(M({},p),{data:p.data.map(m=>B(M({},m),{selected:!n.some(v=>{var g,b;return v.x===m.x&&v.y===m.y&&v.size===m.z&&v.breakByPoint===((g=m.custom)==null?void 0:g.maskedBreakByPoint)&&v.breakByColor===((b=m.custom)==null?void 0:b.maskedBreakByColor)})}))}))});{const h=n.reduce((p,{categoryValue:m})=>(m&&(p[`${m}`]=!0),p),{});return p=>B(M({},p),{series:p.series.map(m=>B(M({},m),{data:m.data.map(v=>{var g,b;return h[(b=(g=v.custom)==null?void 0:g.xValue)==null?void 0:b[0]]?v:B(M({},v),{selected:!0})})}))})}},[n,e]),s=k.useMemo(()=>h=>{var p;return B(M({},h),{chart:B(M({},h.chart),{events:B(M({},(p=h.chart)==null?void 0:p.events),{click:()=>{i([])}})})})},[]),u=k.useCallback(h=>(a.current&&(h=o(h),h=s(h)),h),[o,s]),c=k.useCallback(h=>{a.current&&i(h)},[]),d=k.useCallback(h=>{a.current&&i([h])},[]);return{onBeforeRender:u,onDataPointsSelected:c,onDataPointClick:d}}function Jxe(e){const{enabled:t,onChange:r}=e,{t:n}=w.useTranslation(),[i,a]=k.useState(!1),o=k.useCallback(()=>{a(!0)},[]),s=k.useCallback(()=>{a(!1)},[]),u=k.useCallback(h=>{a(!1),r==null||r({type:"title/changed",payload:{title:h}})},[r]),c=k.useMemo(()=>{if(t)return{id:"rename-widget",caption:n("widgetHeader.menu.renameWidget"),onClick:o}},[t,n,o]),d=k.useMemo(()=>{if(t)return{isEditing:i,onCommit:u,onCancel:s,onEditingChange:h=>{h?o():s()}}},[t,i,u,s,o]);return{renameMenuItem:c,titleEditorConfig:d}}function nO(e){var u,c,d;const{onChange:t,headerConfig:r}=e,n=(d=(c=(u=r==null?void 0:r.title)==null?void 0:u.editing)==null?void 0:c.enabled)!=null?d:!1,{renameMenuItem:i,titleEditorConfig:a}=Jxe({enabled:n,onChange:t}),o=k.useMemo(()=>!n||!i?r!=null?r:{}:Zb(i)(r!=null?r:{}),[n,r,i]);return{headerConfig:n?o:r!=null?r:{},titleEditor:a}}function ld(e){return parseInt(e,10)||0}const eTe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function tTe(e){for(const t in e)return!1;return!0}function zx(e){return tTe(e)||e.outerHeightStyle===0&&!e.overflowing}const iO=Q.forwardRef(function(t,r){const E=t,{onChange:n,maxRows:i,minRows:a=1,style:o,value:s}=E,u=xe(E,["onChange","maxRows","minRows","style","value"]),{current:c}=Q.useRef(s!=null),d=Q.useRef(null),h=gr(r,d),p=Q.useRef(null),m=Q.useRef(null),v=Q.useCallback(()=>{const T=d.current,A=m.current;if(!T||!A)return;const D=Si(T).getComputedStyle(T);if(D.width==="0px")return{outerHeightStyle:0,overflowing:!1};A.style.width=D.width,A.value=T.value||t.placeholder||"x",A.value.slice(-1)===`
424
+ `&&(A.value+=" ");const I=D.boxSizing,H=ld(D.paddingBottom)+ld(D.paddingTop),G=ld(D.borderBottomWidth)+ld(D.borderTopWidth),q=A.scrollHeight;A.value="x";const O=A.scrollHeight;let $=q;a&&($=Math.max(Number(a)*O,$)),i&&($=Math.min(Number(i)*O,$)),$=Math.max($,O);const X=$+(I==="border-box"?H+G:0),j=Math.abs($-q)<=1;return{outerHeightStyle:X,overflowing:j}},[i,a,t.placeholder]),g=Kn(()=>{const T=d.current,A=v();if(!T||!A||zx(A))return!1;const R=A.outerHeightStyle;return p.current!=null&&p.current!==R}),b=Q.useCallback(()=>{const T=d.current,A=v();if(!T||!A||zx(A))return;const R=A.outerHeightStyle;p.current!==R&&(p.current=R,T.style.height=`${R}px`),T.style.overflow=A.overflowing?"hidden":""},[v]),C=Q.useRef(-1);Mn(()=>{const T=FT(b),A=d==null?void 0:d.current;if(!A)return;const R=Si(A);R.addEventListener("resize",T);let D;return typeof ResizeObserver!="undefined"&&(D=new ResizeObserver(()=>{g()&&(D.unobserve(A),cancelAnimationFrame(C.current),b(),C.current=requestAnimationFrame(()=>{D.observe(A)}))}),D.observe(A)),()=>{T.clear(),cancelAnimationFrame(C.current),R.removeEventListener("resize",T),D&&D.disconnect()}},[v,b,g]),Mn(()=>{b()});const x=T=>{c||b(),n&&n(T)};return fe.jsxs(Q.Fragment,{children:[fe.jsx("textarea",M({value:s,onChange:x,ref:h,rows:a,style:o},u)),fe.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:B(M(M({},eTe.shadow),o),{paddingTop:0,paddingBottom:0})})]})});process.env.NODE_ENV!=="production"&&(iO.propTypes={className:_.string,maxRows:_.oneOfType([_.number,_.string]),minRows:_.oneOfType([_.number,_.string]),onChange:_.func,placeholder:_.string,style:_.object,value:_.oneOfType([_.arrayOf(_.string),_.number,_.string])});function rTe({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 Qb=Q.createContext(void 0);process.env.NODE_ENV!=="production"&&(Qb.displayName="FormControlContext");function aO(){return Q.useContext(Qb)}function jx(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function nTe(e,t=!1){return e&&(jx(e.value)&&e.value!==""||t&&jx(e.defaultValue)&&e.defaultValue!=="")}function iTe(e){return yt("MuiInputBase",e)}const uv=bt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Wx;const aTe=(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]},oTe=(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]},sTe=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:u,hiddenLabel:c,multiline:d,readOnly:h,size:p,startAdornment:m,type:v}=e,g={root:["root",`color${Le(r)}`,n&&"disabled",i&&"error",u&&"fullWidth",o&&"focused",s&&"formControl",p&&p!=="medium"&&`size${Le(p)}`,d&&"multiline",m&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",h&&"readOnly"],input:["input",n&&"disabled",v==="search"&&"inputTypeSearch",d&&"inputMultiline",p==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",m&&"inputAdornedStart",a&&"inputAdornedEnd",h&&"readOnly"]};return Dt(g,iTe,t)},lTe=Ne("div",{name:"MuiInputBase",slot:"Root",overridesResolver:aTe})($t(({theme:e})=>B(M({},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",[`&.${uv.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%"}}]}))),uTe=Ne("input",{name:"MuiInputBase",slot:"Input",overridesResolver:oTe})($t(({theme:e})=>{const t=e.palette.mode==="light",r=B(M({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] + .${uv.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},[`&.${uv.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"}}]}})),Ux=iL({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),oO=Q.forwardRef(function(t,r){var Nn;const n=Mt({props:t,name:"MuiInputBase"}),ar=n,{"aria-describedby":i,autoComplete:a,autoFocus:o,className:s,color:u,components:c={},componentsProps:d={},defaultValue:h,disabled:p,disableInjectingGlobalStyles:m,endAdornment:v,error:g,fullWidth:b=!1,id:C,inputComponent:x="input",inputProps:E={},inputRef:T,margin:A,maxRows:R,minRows:D,multiline:I=!1,name:H,onBlur:G,onChange:q,onClick:O,onFocus:$,onKeyDown:X,onKeyUp:j,placeholder:V,readOnly:z,renderSuffix:Y,rows:re,size:W,slotProps:K={},slots:ie={},startAdornment:ne,type:te="text",value:oe}=ar,se=xe(ar,["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}=Q.useRef(de!=null),ge=Q.useRef(),Se=Q.useCallback(Ze=>{process.env.NODE_ENV!=="production"&&Ze&&Ze.nodeName!=="INPUT"&&!Ze.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(`
425
+ `))},[]),ye=gr(ge,T,E.ref,Se),[J,_e]=Q.useState(!1),ve=aO();process.env.NODE_ENV!=="production"&&Q.useEffect(()=>{if(ve)return ve.registerEffect()},[ve]);const Ae=rTe({props:n,muiFormControl:ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ae.focused=ve?ve.focused:J,Q.useEffect(()=>{!ve&&p&&J&&(_e(!1),G&&G())},[ve,p,J,G]);const Ie=ve&&ve.onFilled,Ue=ve&&ve.onEmpty,Ve=Q.useCallback(Ze=>{nTe(Ze)?Ie&&Ie():Ue&&Ue()},[Ie,Ue]);Mn(()=>{ce&&Ve({value:de})},[de,Ve,ce]);const ir=Ze=>{$&&$(Ze),E.onFocus&&E.onFocus(Ze),ve&&ve.onFocus?ve.onFocus(Ze):_e(!0)},At=Ze=>{G&&G(Ze),E.onBlur&&E.onBlur(Ze),ve&&ve.onBlur?ve.onBlur(Ze):_e(!1)},Wt=(Ze,...Xt)=>{if(!ce){const ca=Ze.target||ge.current;if(ca==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.":xi(1));Ve({value:ca.value})}E.onChange&&E.onChange(Ze,...Xt),q&&q(Ze,...Xt)};Q.useEffect(()=>{Ve(ge.current)},[]);const Nt=Ze=>{ge.current&&Ze.currentTarget===Ze.target&&ge.current.focus(),O&&O(Ze)};let Re=x,st=E;I&&Re==="input"&&(re?(process.env.NODE_ENV!=="production"&&(D||R)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),st=M({type:void 0,minRows:re,maxRows:re},st)):st=M({type:void 0,maxRows:R,minRows:D},st),Re=iO);const Ni=Ze=>{Ve(Ze.animationName==="mui-auto-fill-cancel"?ge.current:{value:"x"})};Q.useEffect(()=>{ve&&ve.setAdornedStart(!!ne)},[ve,ne]);const on=B(M({},n),{color:Ae.color||"primary",disabled:Ae.disabled,endAdornment:v,error:Ae.error,focused:Ae.focused,formControl:ve,fullWidth:b,hiddenLabel:Ae.hiddenLabel,multiline:I,size:Ae.size,startAdornment:ne,type:te}),sn=sTe(on),Dn=ie.root||c.Root||lTe,Cn=K.root||d.root||{},ci=ie.input||c.Input||uTe;return st=M(M({},st),(Nn=K.input)!=null?Nn:d.input),fe.jsxs(Q.Fragment,{children:[!m&&typeof Ux=="function"&&(Wx||(Wx=fe.jsx(Ux,{}))),fe.jsxs(Dn,B(M(M(B(M({},Cn),{ref:r,onClick:Nt}),se),!a0(Dn)&&{ownerState:M(M({},on),Cn.ownerState)}),{className:je(sn.root,Cn.className,s,z&&"MuiInputBase-readOnly"),children:[ne,fe.jsx(Qb.Provider,{value:null,children:fe.jsx(ci,B(M(M({"aria-invalid":Ae.error,"aria-describedby":i,autoComplete:a,autoFocus:o,defaultValue:h,disabled:Ae.disabled,id:C,onAnimationStart:Ni,name:H,placeholder:V,readOnly:z,required:Ae.required,rows:re,value:de,onKeyDown:X,onKeyUp:j,type:te},st),!a0(ci)&&{as:Re,ownerState:M(M({},on),st.ownerState)}),{ref:ye,className:je(sn.input,st.className,z&&"MuiInputBase-readOnly"),onBlur:At,onChange:Wt,onFocus:ir}))}),v,Y?Y(B(M({},Ae),{startAdornment:ne})):null]}))]})});process.env.NODE_ENV!=="production"&&(oO.propTypes={"aria-describedby":_.string,autoComplete:_.string,autoFocus:_.bool,classes:_.object,className:_.string,color:_.oneOfType([_.oneOf(["primary","secondary","error","info","success","warning"]),_.string]),components:_.shape({Input:_.elementType,Root:_.elementType}),componentsProps:_.shape({input:_.object,root:_.object}),defaultValue:_.any,disabled:_.bool,disableInjectingGlobalStyles:_.bool,endAdornment:_.node,error:_.bool,fullWidth:_.bool,id:_.string,inputComponent:bh,inputProps:_.object,inputRef:cs,margin:_.oneOf(["dense","none"]),maxRows:_.oneOfType([_.number,_.string]),minRows:_.oneOfType([_.number,_.string]),multiline:_.bool,name:_.string,onBlur:_.func,onChange:_.func,onClick:_.func,onFocus:_.func,onInvalid:_.func,onKeyDown:_.func,onKeyUp:_.func,placeholder:_.string,readOnly:_.bool,renderSuffix:_.func,required:_.bool,rows:_.oneOfType([_.number,_.string]),size:_.oneOfType([_.oneOf(["medium","small"]),_.string]),slotProps:_.shape({input:_.object,root:_.object}),slots:_.shape({input:_.elementType,root:_.elementType}),startAdornment:_.node,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),type:_.string,value:_.any});function cTe(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 dTe=Ye.div`
426
+ display: inline-grid;
427
+ grid-template-columns: 1fr;
428
+ align-items: baseline;
429
+ width: auto;
430
+ min-width: 50px;
431
+ max-width: 100%;
432
+ `,hTe=Ye.span`
433
+ // Auto-growing input using a CSS Grid technique with sharing the same grid area as the hidden text
434
+ grid-area: 1 / 1 / 2 / 2;
435
+ visibility: hidden;
436
+ white-space: pre;
437
+ font: inherit;
438
+ padding: 0;
439
+ `,fTe=Ye(oO)`
440
+ // Auto-growing input using a CSS Grid technique with sharing the same grid area as the hidden text
441
+ grid-area: 1 / 1 / 2 / 2;
442
+ width: 100%;
443
+ font: inherit;
444
+ color: inherit;
445
+
446
+ & .MuiInputBase-input {
447
+ padding: 0;
448
+ font: inherit;
449
+ color: inherit;
450
+ width: 100%;
451
+
452
+ &::placeholder {
453
+ opacity: 0.5;
454
+ }
455
+
456
+ &:focus {
457
+ outline: none;
458
+ box-shadow: none;
459
+ }
460
+ }
461
+ `,pTe=Ye.span`
462
+ cursor: text;
463
+ color: ${({isPlaceholder:e})=>e?"rgba(0, 0, 0, 0.38)":"inherit"};
464
+ `;function mTe({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 b=s.trim(),C=w.purify.sanitize(b,{ALLOWED_TAGS:[]});C!==e&&r(C),n(!1)},[s,r,n,e]),d=k.useCallback(()=>{i==null||i(),n(!1)},[i,n]),h=k.useCallback(b=>{b.key==="Enter"?(b.preventDefault(),c()):b.key==="Escape"&&(b.preventDefault(),d())},[c,d]),p=k.useCallback(()=>{c()},[c]),m=k.useCallback(()=>{n(!0)},[n]),v=k.useCallback(b=>{(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),m())},[m]);if(k.useEffect(()=>{t&&o.current&&(o.current.focus(),o.current.select())},[t]),cTe(o,t),t)return w.jsxs(dTe,{children:[w.jsx(hTe,{children:s||a||""}),w.jsx(fTe,{inputRef:o,inputProps:{"data-component":"inline-text-editor-input"},value:s,placeholder:a,onChange:b=>u(b.target.value),onBlur:p,onKeyDown:h})]});const g=!e&&!!a;return w.jsx(pTe,{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:m,onKeyDown:v,isPlaceholder:g,children:e||a||""})}function gTe(e){return yt("MuiCard",e)}bt("MuiCard",["root"]);const vTe=e=>{const{classes:t}=e;return Dt({root:["root"]},gTe,t)},yTe=Ne($h,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})({overflow:"hidden"}),sO=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiCard"}),c=n,{className:i,raised:a=!1}=c,o=xe(c,["className","raised"]),s=B(M({},n),{raised:a}),u=vTe(s);return fe.jsx(yTe,M({className:je(u.root,i),elevation:a?8:void 0,ref:r,ownerState:s},o))});process.env.NODE_ENV!=="production"&&(sO.propTypes={children:_.node,classes:_.object,className:_.string,raised:Ri(_.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object])});function bTe(e){return yt("MuiCardContent",e)}bt("MuiCardContent",["root"]);const _Te=e=>{const{classes:t}=e;return Dt({root:["root"]},bTe,t)},wTe=Ne("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:16,"&:last-child":{paddingBottom:24}}),lO=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiCardContent"}),c=n,{className:i,component:a="div"}=c,o=xe(c,["className","component"]),s=B(M({},n),{component:a}),u=_Te(s);return fe.jsx(wTe,M({as:a,className:je(u.root,i),ownerState:s,ref:r},o))});process.env.NODE_ENV!=="production"&&(lO.propTypes={children:_.node,classes:_.object,className:_.string,component:_.elementType,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object])});function CTe(e){return yt("MuiCircularProgress",e)}bt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const $i=44,cv=xu`
465
+ 0% {
466
+ transform: rotate(0deg);
467
+ }
468
+
469
+ 100% {
470
+ transform: rotate(360deg);
471
+ }
472
+ `,dv=xu`
473
+ 0% {
474
+ stroke-dasharray: 1px, 200px;
475
+ stroke-dashoffset: 0;
476
+ }
477
+
478
+ 50% {
479
+ stroke-dasharray: 100px, 200px;
480
+ stroke-dashoffset: -15px;
481
+ }
482
+
483
+ 100% {
484
+ stroke-dasharray: 1px, 200px;
485
+ stroke-dashoffset: -126px;
486
+ }
487
+ `,xTe=typeof cv!="string"?Rh`
488
+ animation: ${cv} 1.4s linear infinite;
489
+ `:null,TTe=typeof dv!="string"?Rh`
490
+ animation: ${dv} 1.4s ease-in-out infinite;
491
+ `:null,STe=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 Dt(a,CTe,t)},ETe=Ne("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Le(r.color)}`]]}})($t(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:xTe||{animation:`${cv} 1.4s linear infinite`}},...Object.entries(e.palette).filter(ea()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),MTe=Ne("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),ATe=Ne("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Le(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})($t(({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:TTe||{animation:`${dv} 1.4s ease-in-out infinite`}}]}))),Jb=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiCircularProgress"}),x=n,{className:i,color:a="primary",disableShrink:o=!1,size:s=40,style:u,thickness:c=3.6,value:d=0,variant:h="indeterminate"}=x,p=xe(x,["className","color","disableShrink","size","style","thickness","value","variant"]),m=B(M({},n),{color:a,disableShrink:o,size:s,thickness:c,value:d,variant:h}),v=STe(m),g={},b={},C={};if(h==="determinate"){const E=2*Math.PI*(($i-c)/2);g.strokeDasharray=E.toFixed(3),C["aria-valuenow"]=Math.round(d),g.strokeDashoffset=`${((100-d)/100*E).toFixed(3)}px`,b.transform="rotate(-90deg)"}return fe.jsx(ETe,B(M(M({className:je(v.root,i),style:M(M({width:s,height:s},b),u),ownerState:m,ref:r,role:"progressbar"},C),p),{children:fe.jsx(MTe,{className:v.svg,ownerState:m,viewBox:`${$i/2} ${$i/2} ${$i} ${$i}`,children:fe.jsx(ATe,{className:v.circle,style:g,ownerState:m,cx:$i,cy:$i,r:($i-c)/2,fill:"none",strokeWidth:c})})}))});process.env.NODE_ENV!=="production"&&(Jb.propTypes={classes:_.object,className:_.string,color:_.oneOfType([_.oneOf(["inherit","primary","secondary","error","info","success","warning"]),_.string]),disableShrink:Ri(_.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:_.oneOfType([_.number,_.string]),style:_.object,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),thickness:_.number,value:_.number,variant:_.oneOf(["determinate","indeterminate"])});function PTe(e){return yt("MuiIconButton",e)}const Vx=bt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),RTe=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 Dt(s,PTe,t)},OTe=Ne(Ua,{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)}`]]}})($t(({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})`:Rt(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}}]})),$t(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(ea()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(ea()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rt((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)}}],[`&.${Vx.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Vx.loading}`]:{color:"transparent"}}))),kTe=Ne("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"}}]})),za=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiIconButton"}),E=n,{edge:i=!1,children:a,className:o,color:s="default",disabled:u=!1,disableFocusRipple:c=!1,size:d="medium",id:h,loading:p=null,loadingIndicator:m}=E,v=xe(E,["edge","children","className","color","disabled","disableFocusRipple","size","id","loading","loadingIndicator"]),g=kh(h),b=m!=null?m:fe.jsx(Jb,{"aria-labelledby":g,color:"inherit",size:16}),C=B(M({},n),{edge:i,color:s,disabled:u,disableFocusRipple:c,loading:p,loadingIndicator:b,size:d}),x=RTe(C);return fe.jsxs(OTe,B(M({id:p?g:h,className:je(x.root,o),centerRipple:!0,focusRipple:!c,disabled:u||p,ref:r},v),{ownerState:C,children:[typeof p=="boolean"&&fe.jsx("span",{className:x.loadingWrapper,style:{display:"contents"},children:fe.jsx(kTe,{className:x.loadingIndicator,ownerState:C,children:p&&b})}),a]}))});process.env.NODE_ENV!=="production"&&(za.propTypes={children:Ri(_.node,e=>Q.Children.toArray(e.children).some(r=>Q.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(`
492
+ `)):null),classes:_.object,className:_.string,color:_.oneOfType([_.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),_.string]),disabled:_.bool,disableFocusRipple:_.bool,disableRipple:_.bool,edge:_.oneOf(["end","start",!1]),id:_.string,loading:_.bool,loadingIndicator:_.node,size:_.oneOfType([_.oneOf(["small","medium","large"]),_.string]),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object])});function DTe({fill:e="rgba(38, 46, 61, 0.67)"}){return w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:w.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 NTe({title:e,description:t,errorMessages:r=[],styleOptions:n,onRefresh:i}){var C,x,E;const[a,o]=k.useState(null),{themeSettings:s}=mt(),{typography:{primaryTextColor:u,secondaryTextColor:c,fontFamily:d}}=s,{t:h}=w.useTranslation(),p=T=>{o(T.currentTarget)},m=()=>{o(null)},v=k.useMemo(()=>e?w.jsx(qr,{variant:"body2",style:{color:u,fontFamily:d,fontSize:13},children:e}):null,[e,u,d]),g=k.useMemo(()=>r.length===0?null:r.map(T=>w.jsxs(w.Fragment,{children:[w.jsx(Aa,{sx:{my:1,borderColor:c,opacity:.3,marginY:"8px"}}),w.jsxs("div",{className:"csdk-flex",children:[w.jsx("div",{className:"csdk-shrink-0 csdk-grow-0",children:w.jsx(DTe,{fill:"#fa5656"})}),w.jsx(qr,{variant:"body2",className:"csdk-grow-1",style:{color:c,fontFamily:d,fontSize:13,marginLeft:5,lineHeight:"24px",letterSpacing:"normal",overflowWrap:"anywhere"},children:T})]})]})),[r,c,d]),b=k.useMemo(()=>t?w.jsxs(w.Fragment,{children:[w.jsx(Aa,{sx:{my:"8px",borderColor:c,opacity:.3}}),w.jsx(qr,{variant:"body2",style:{color:c,fontFamily:d,fontSize:13},children:t})]}):null,[t,c,d]);return w.jsxs(w.Fragment,{children:[w.jsx(xf,{title:h("widgetHeader.info.tooltip"),style:{color:(C=s.chart)==null?void 0:C.textColor,fontFamily:(x=s.typography)==null?void 0:x.fontFamily},children:w.jsx(za,{onClick:p,sx:M({p:0},w.MIN_TOUCH_TARGET_SIZE),"data-testid":"widget-header-info-icon-button",children:w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:w.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"})})})}),w.jsx(ay,{open:!!a,position:a?{anchorEl:a,anchorOrigin:{vertical:"bottom",horizontal:"center"},contentOrigin:{vertical:"top",horizontal:"center"}}:void 0,onClose:m,children:w.jsxs(sO,{raised:!0,className:"csdk-max-w-xs csdk-w-[300px]",children:[w.jsxs("div",{className:"csdk-flex csdk-flex-row csdk-justify-between csdk-items-center csdk-py-[5px] csdk-px-[12px]",style:{backgroundColor:w.getSlightlyDifferentColor(s.general.backgroundColor)},children:[w.jsx(qr,{variant:"subtitle2",sx:{fontWeight:"bold"},style:{color:s.typography.primaryTextColor,fontFamily:s.typography.fontFamily},children:h("widgetHeader.info.details")}),w.jsx(za,{onClick:i,sx:M({p:0},w.MIN_TOUCH_TARGET_SIZE),"data-testid":"widget-header-refresh-icon-button",children:w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:w.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"})})})]}),w.jsx(Aa,{sx:{borderColor:s.typography.secondaryTextColor,opacity:.3}}),w.jsxs(lO,{style:{backgroundColor:s.general.backgroundColor,padding:12},children:[v,g,b]})]})})]})}const e1=()=>{const e=Lh();if(!e)throw new N.TranslatableError("errors.missingMenuRoot");return e};function uO({fill:e="rgba(38, 46, 61, 0.67)"}){return w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:w.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 Gx=28,ITe=Ye(za,{shouldForwardProp:e=>e!=="iconSize"})`
493
+ min-width: ${({iconSize:e})=>e!=null?e:Gx}px;
494
+ min-height: ${({iconSize:e})=>e!=null?e:Gx}px;
495
+ `,cO=a=>{var o=a,{color:e,onClick:t,ariaLabel:r,size:n}=o,i=xe(o,["color","onClick","ariaLabel","size"]);const s=k.useCallback(()=>w.getSlightlyDifferentColor(e!=null?e:"",void 0,.1),[e]);return w.jsx(ITe,B(M({iconSize:n,sx:{padding:0,"&:hover":{backgroundColor:s()}},onClick:t,"aria-label":r},i),{children:w.jsx(uO,{fill:e})}))};function dO(e){var t;return{key:e.id,caption:e.caption,onClick:e.onClick,subItems:(t=e.items)!=null&&t.length?[{items:e.items.map(dO)}]:void 0}}const hO=({menuItems:e})=>{const{themeSettings:t}=mt(),{openMenu:r}=e1(),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.map(dO)}]})},[e,r]);return w.jsx(cO,{onClick:n,ariaLabel:"widget header toolbar menu",color:t.widget.header.titleTextColor})};function LTe({infoButtonConfig:e,styleOptions:t,onRefresh:r,config:n}){var o,s,u,c;const i=k.useMemo(()=>{var d,h;return w.isUndefined((d=n==null?void 0:n.menu)==null?void 0:d.enabled)?!0:(h=n==null?void 0:n.menu)==null?void 0:h.enabled},[(o=n==null?void 0:n.menu)==null?void 0:o.enabled]),a=w.jsx(w.Fragment,{children:w.jsx(NTe,{title:e.dataSetName,description:e.description,styleOptions:t,errorMessages:e.errorMessages,warningMessages:e.warningMessages,onRefresh:r})});return w.jsxs(w.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&&w.jsx(hO,{menuItems:(c=n==null?void 0:n.menu)==null?void 0:c.items})]})}function FTe(e){return e.toLowerCase()}const $Te=({title:e,infoButtonConfig:t,styleOptions:r,onRefresh:n,config:i,titleEditor:a})=>{var d,h;const{themeSettings:o}=mt(),{t:s}=w.useTranslation(),u=N.get(r,"dividerLine",o.widget.header.dividerLine),c=a?w.jsx(mTe,{value:e!=null?e:"",isEditing:a.isEditing,onEditingChange:a.onEditingChange,onCommit:a.onCommit,onCancel:a.onCancel,placeholder:s("widgetHeader.addTitle")}):e;return w.jsxs("div",{"data-component":"widget-header",children:[w.jsxs(BTe,{styleOptions:r,theme:o,"data-component":"header-container",children:[w.jsx(HTe,{styleOptions:r,theme:o,"data-component":"title",children:(h=(d=r==null?void 0:r.renderTitle)==null?void 0:d.call(r,c))!=null?h:c}),w.jsx(zTe,{"data-component":"toolbar-container",children:w.jsx(LTe,{infoButtonConfig:t,styleOptions:r,onRefresh:n,config:i==null?void 0:i.toolbar})})]}),u&&w.jsx(jTe,{styleOptions:r,theme:o,"data-component":"widget-header-divider"})]})},BTe=Ye.div`
496
+ display: flex;
497
+ flex-direction: row;
498
+ align-items: center;
499
+ padding-left: 8px;
500
+ padding-right: 8px;
501
+ min-height: 32px;
502
+ background-color: ${({styleOptions:e,theme:t})=>(e==null?void 0:e.backgroundColor)||t.widget.header.backgroundColor};
503
+ `,HTe=Ye.div`
504
+ width: 100%;
505
+ white-space: nowrap;
506
+ overflow: hidden;
507
+ text-align: ${({styleOptions:e,theme:t})=>FTe((e==null?void 0:e.titleAlignment)||t.widget.header.titleAlignment)};
508
+ color: ${({styleOptions:e,theme:t})=>(e==null?void 0:e.titleTextColor)||t.widget.header.titleTextColor};
509
+ font-family: ${({theme:e})=>{var t,r;return(r=(t=e.typography)==null?void 0:t.fontFamily)!=null?r:"inherit"}};
510
+ font-size: ${({theme:e})=>{const t=e.widget.header.titleFontSize;return typeof t=="number"?`${t}px`:t}};
511
+ `,zTe=Ye.div`
512
+ margin-left: auto;
513
+ display: flex;
514
+ align-items: center;
515
+ `,jTe=Ye(Aa)`
516
+ background-color: ${({styleOptions:e,theme:t})=>(e==null?void 0:e.dividerLineColor)||t.widget.header.dividerLineColor||"#e6e6e6"};
517
+ `;var fO=(e=>(e.None="",e.Large="30px",e.Medium="20px",e.Small="10px",e))(fO||{}),hv=(e=>(e.None="",e.Light="0.15",e.Medium="0.3",e.Dark="0.7",e))(hv||{}),fv=(e=>(e.None="",e.Large="3px 12px",e.Medium="2px 8px",e.Small="1px 4px",e))(fv||{}),t1=(e=>(e.None="",e.Large="15px",e.Medium="10px",e.Small="5px",e))(t1||{});const WTe=(e,t)=>{const r=N.get(e,"shadow",t.widget.shadow),n=N.get(e,"spaceAround",t.widget.spaceAround);if(r==="None"||n==="None")return"none";if(r in hv&&n in fv){const i=hv[`${r}`];return`0px ${fv[`${n}`]} rgba(9, 9, 10, ${i})`}return"none"},pO=e=>w.jsx(RCe,{children:w.jsx(UTe,M({},e))}),UTe=({dataSetName:e,styleOptions:t,headerConfig:r,titleEditor:n,title:i,description:a,topSlot:o,bottomSlot:s,children:u,onRefresh:c=()=>{}})=>{var v,g;const{errors:d,warnings:h}=AR(),{themeSettings:p}=mt(),m=k.useMemo(()=>{var b;return{chart:{backgroundColor:(t==null?void 0:t.backgroundColor)||((b=p.chart)==null?void 0:b.backgroundColor)}}},[t==null?void 0:t.backgroundColor,(v=p.chart)==null?void 0:v.backgroundColor]);return w.jsx(VTe,{className:"csdk-accessible","data-component":"widget-container-root",children:w.jsx(GTe,{styleOptions:t,theme:p,"data-component":"widget-container-layout",children:w.jsxs(qTe,{styleOptions:t,theme:p,"data-component":"widget-container-card",children:[!((g=t==null?void 0:t.header)!=null&&g.hidden)&&w.jsx($Te,{title:i,infoButtonConfig:{dataSetName:e,description:a,errorMessages:d,warningMessages:h},styleOptions:t==null?void 0:t.header,config:r,titleEditor:n,onRefresh:c}),o,w.jsx(RS,{theme:m,children:w.jsx(YTe,{styleOptions:t,theme:p,"data-component":"widget-container-content",children:u})}),s]})})})},VTe=Ye.div`
518
+ width: 100%;
519
+ height: 100%;
520
+ overflow: hidden;
521
+ `,GTe=Ye.div`
522
+ box-sizing: border-box;
523
+ height: 100%;
524
+ padding: ${({styleOptions:e,theme:t})=>t1[N.get(e,"spaceAround",t.widget.spaceAround)]||"0px"};
525
+ `,qTe=Ye.div`
526
+ box-sizing: border-box;
527
+ height: 100%;
528
+ overflow: hidden;
529
+ display: flex;
530
+ flex-direction: column;
531
+ background-color: ${({styleOptions:e})=>(e==null?void 0:e.backgroundColor)||"unset"};
532
+ border-width: ${({styleOptions:e,theme:t})=>N.get(e,"border",t.widget.border)?"1px":"0"};
533
+ border-style: solid;
534
+ border-color: ${({styleOptions:e,theme:t})=>(e==null?void 0:e.borderColor)||t.widget.borderColor};
535
+ border-radius: ${({styleOptions:e,theme:t})=>fO[(e==null?void 0:e.cornerRadius)||t.widget.cornerRadius]||"0"};
536
+ box-shadow: ${({styleOptions:e,theme:t})=>WTe(e,t)};
537
+ `,YTe=Ye.div`
538
+ flex-grow: 1;
539
+ min-width: 0;
540
+ min-height: 0;
541
+ background-color: ${({styleOptions:e,theme:t})=>{var r;return(e==null?void 0:e.backgroundColor)||((r=t.chart)==null?void 0:r.backgroundColor)}};
542
+ `,XTe=(e,t)=>e===void 0&&t===void 0?!1:[e,t].some(n=>n===void 0)||e.length!==t.length?!0:e.length===0&&t.length===0?!1:e.map((n,i)=>{const a=t[i];return!KTe(n,a)}).includes(!0);function uh(e){return"context"in e&&"expression"in e}function KTe(e,t){return uh(e)&&uh(t)?mO(e,t):N.isEqual(e,t)}function mO(e,t){const o=e,{context:r}=o,n=xe(o,["context"]),s=t,{context:i}=s,a=xe(s,["context"]);return QTe(r,i)&&N.isEqual(n,a)}const qx=e=>ZTe(e)&&e.type==="filter",ZTe=e=>typeof e=="object"&&!!e&&"type"in e;function QTe(e,t){const r=Object.keys(e),n=Object.keys(t);return N.isEqual(r,n)?r.every(a=>{const o=e[a],s=t[a];return uh(o)&&uh(s)?mO(o,s):qx(o)&&qx(s)?DR(o,s):N.isEqual(o,s)}):!1}const JTe=["dataSource","dimensions","count","offset","onBeforeQuery"];function gO(e){return Qu(e,JTe,(t,r)=>{const{filters:n,relations:i}=N.getFilterListAndRelationsJaql(r.filters),{filters:a,relations:o}=N.getFilterListAndRelationsJaql(t.filters);return XTe(r.measures,t.measures)||ls(n,a)||zCe(n,a,i,o)||ls(r.highlights,t.highlights)})}function Yx(e,t){return Qf(e,t)}const eSe=qb("useExecuteCsvQuery")(r1);function r1(e){const t=gO(e),r=Yb(e,t),[n,i]=k.useReducer(Yx,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0}),{isInitialized:a,app:o}=_t();return k.useEffect(()=>{if(a||i({type:"error",error:new N.TranslatableError("errors.executeQueryNoSisenseContext")}),r(o)){i({type:"loading"});const{dataSource:s,dimensions:u,measures:c,filters:d,highlights:h,count:p,offset:m,ungroup:v,config:g,onBeforeQuery:b}=e,{filters:C,relations:x}=N.getFilterListAndRelationsJaql(d);N.executeCsvQuery({dataSource:s,dimensions:u,measures:c,ungroup:v,filters:C,filterRelations:x,highlights:h,count:p,offset:m},o,{onBeforeQuery:b}).then(E=>g!=null&&g.asDataStream?(i({type:"success",data:E}),null):E.text()).then(E=>E&&i({type:"success",data:E})).catch(E=>{i({type:"error",error:E})})}},[o,a,e,r]),n.data&&t?Yx(n,{type:"loading"}):n}const tSe="data.csv";function rSe(e,t){const r=URL.createObjectURL(e),n=document.createElement("a");n.href=r,n.download=t,document.body.appendChild(n),n.click(),URL.revokeObjectURL(r),document.body.removeChild(n)}const nSe="file";function iSe(e){const t=e.lastIndexOf("."),r=t===-1?e:e.substring(0,t),n=t===-1?"":e.substring(t);return`${r.replace(/[^a-zA-Z0-9]/g,"")||nSe}${n}`}function vO(){const[e,t]=k.useState(null),r=r1(B(M({},e!=null?e:{dimensions:[],measures:[]}),{enabled:!!e,config:{asDataStream:!0}}));return k.useEffect(()=>{var i;e&&(r.isSuccess&&r.data?(rSe(r.data,iSe((i=e.filename)!=null?i:tSe)),t(null)):r.isError&&t(null))},[e,r.isSuccess,r.isError,r.data]),{execute:k.useCallback(i=>{t(i)},[])}}const Xx="widget-download",aSe="widget-download-csv-file";function yO({baseHeaderConfig:e,enabled:t,onClick:r}){const{t:n}=w.useTranslation();return k.useMemo(()=>{var u,c,d,h,p;if(!t)return e;const i={id:aSe,caption:n("widgetHeader.menu.csvFile"),onClick:r},a=(d=(c=(u=e.toolbar)==null?void 0:u.menu)==null?void 0:c.items)!=null?d:[],o=a.findIndex(m=>m.id===Xx),s=o>=0?a.map((m,v)=>{var g;return v===o?B(M({},m),{items:[...(g=m.items)!=null?g:[],i]}):m}):[...a,{id:Xx,caption:n("widgetHeader.menu.download"),items:[i]}];return B(M({},e),{toolbar:B(M({},e.toolbar),{menu:B(M({},(p=(h=e.toolbar)==null?void 0:h.menu)!=null?p:{}),{items:s})})})},[e,t,r,n])}const oSe="YYYY-MM-DD HH:mm:ss.S";function sSe(e){var v,g;const{chartType:t,dataOptions:r,dataSource:n,filters:i,highlights:a,title:o,config:s,baseHeaderConfig:u}=e,c=vO(),d=k.useMemo(()=>{const b=N.isTable(t),{attributes:C,measures:x}=b?ib(_f(r)):bA(r,t),E=C.map(T=>N.isDimensionalLevelAttribute(T)?T.format(oSe):T);return{dataSource:n,dimensions:E,measures:x,filters:i,highlights:a,ungroup:b,filename:o?`${o}.csv`:void 0}},[t,r,n,i,a,o]),h=d.dimensions.length>0||d.measures.length>0,p=!!((g=(v=s==null?void 0:s.actions)==null?void 0:v.downloadCsv)!=null&&g.enabled)&&h;return{headerConfig:yO({baseHeaderConfig:u,enabled:p,onClick:()=>h&&c.execute(d)})}}var lSe=Object.prototype,uSe=lSe.hasOwnProperty,cSe=tO(function(e,t,r){uSe.call(e,r)?e[r].push(t):N.baseAssignValue(e,r,[t])});function pv(e){return e&&e.length?tb(e):[]}var yu=(e=>(e.WIDGET_POINTS_DRILLDOWN="widget-points-drilldown",e.WIDGET_POINTS_CROSSFILTERING="widget-points-crossfiltering",e))(yu||{}),us=(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))(us||{});const dSe=["rows","columns","values","category","value","breakBy","x","y","breakByPoint","breakByColor","size","date","geo","color","colorBy","details","outliers","secondary","min","max"];function hSe(e){return dSe.includes(e)}function fSe(e,t){const r=[];for(const[n,i]of Object.entries(e))!hSe(n)||i===null||i===void 0||(Array.isArray(i)?i.forEach((a,o)=>{Kx(a)&&r.push({location:{dataOptionName:n,dataOptionIndex:o},column:a})}):typeof i=="object"&&!Array.isArray(i)&&Kx(i)&&r.push({location:{dataOptionName:n,dataOptionIndex:0},column:i}));for(const{location:n,column:i}of r)if(bO(i,t))return n}function Kx(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 bO(e,t){return Zr(w.translateColumnToAttribute(e),w.translateColumnToAttribute(t))}function _O(e,t){const{dataOptionName:r,dataOptionIndex:n=0}=t,i=e[r];if(i!=null){if(N.isArray(i))return n>=0&&n<i.length?i[n]:void 0;if(N.isPlainObject(i))return n!==0&&t.dataOptionIndex!==void 0?void 0:i}}function pSe(e,t,r){const{dataOptionName:n,dataOptionIndex:i=0}=t,a=r[n];if(a==null)return r;if(N.isArray(a)){if(i>=0&&i<a.length){const o=[...a];return o[i]=e,B(M({},r),{[n]:o})}return r}return N.isPlainObject(a)?i!==0&&t.dataOptionIndex!==void 0?r:B(M({},r),{[n]:e}):r}function wO(e,t,r){return r.length===0||!t?void 0:"dataOptionName"in t?t:fSe(e,t)}function mSe(e){return Jf("pivot",e).length>0}function CO(e,t,r){const n=_O(e,t);return!n||bO(n,r)?e:pSe(r,t,e)}function gSe(e,t){return t.all?[]:e.filter(r=>{var n;return!((n=t.ids)!=null&&n.includes(r.config.guid))})}function xO(e,t){return e.find(r=>Zr(r.attribute,t))}function TO(e,t,r){const n=xO(r,e);return N.members(e,t.map(i=>`${i}`),{guid:n==null?void 0:n.config.guid,backgroundFilter:n==null?void 0:n.config.backgroundFilter})}function SO(e,t){return Gb(e,t)&&"members"in e&&"members"in t&&N.isEqual(e.members,t.members)}function vSe({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=wO(a,s,o),c=N.last(o);if(u&&(c!=null&&c.nextDimension))return CO(a,u,c.nextDimension)}}if(t){const i=n,a=r,o=i==null?void 0:i.drilldownSelections;if(o&&o.length){const s=N.last(o);if(s!=null&&s.nextDimension)return MO(t,a,s.nextDimension)}}return r}const EO=2;function ySe(e,t){const r=e[t];return r?Array.isArray(r)?r:[r]:[]}function Di(e,t){if(!e.length||!t.length)return[];const r=e.flatMap(({entries:i={}})=>t.flatMap(a=>ySe(i,a)).filter(a=>"attribute"in a&&!!a.attribute)),n=cSe(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=pv(i.map(({value:u})=>u).filter(u=>u!=null)),s=pv(i.map(({displayValue:u})=>u).filter(u=>u!==void 0));return{attribute:a,values:o,displayValues:s}})}function bSe(e){return Di(e,["category"])}function _Se(e){return Di(e,["category"])}function wSe(e,t){const r=Di(e,["category"]),n=r.length-1;return t.category.map((i,a)=>n===a?r[a]:{attribute:w.translateColumnToAttribute(i),values:[],displayValues:[]})}function CSe(e){return Di(e,["x","y","breakByPoint","breakByColor"])}function xSe(e){return Di(e,["geo"])}function TSe(e){return Di(e,["geo"])}function SSe(e){return Di(e,["date"])}function ESe(e){const t=e.filter(r=>r.isDataCell&&!r.isTotalCell);return Di(t.map(r=>{var n,i,a,o,s,u;return(i=(n=r.entries)==null?void 0:n.values)!=null&&i.length?r:B(M({},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 MSe(e,t){const r=Object.entries(t).filter(([,n])=>Array.isArray(n)&&n.some(i=>!w.isMeasureColumn(i))).map(([n])=>n);return Di(e,r)}function Md(e,t,r){return e==="custom"?MSe(r,t):e==="text"?[]:e==="pivot"?ESe(r):e==="treemap"||e==="sunburst"?wSe(r,t):N.isCartesian(e)||e==="pie"||e==="funnel"?bSe(r):N.isBoxplot(e)?_Se(r):N.isScatter(e)?CSe(r):N.isScattermap(e)?xSe(r):N.isAreamap(e)?TSe(r):N.isCalendarHeatmap(e)?SSe(r):[]}function Jf(e,t){let r=[];return e==="custom"?r=ASe(t):e==="text"?r=[]:e==="pivot"?r=[...t.rows||[],...t.columns||[]]:N.isCartesian(e)||N.isCategorical(e)||N.isBoxplot(e)||N.isRange(e)?r=[...t.category]:N.isScatter(e)?r=[t.x,t.y,t.breakByPoint,t.breakByColor].filter(n=>!!(n&&!w.isMeasureColumn(n))):N.isScattermap(e)||N.isAreamap(e)?r=[...t.geo]:N.isCalendarHeatmap(e)&&(r=[t.date]),r.map(w.translateColumnToAttribute)}function ASe(e){return Object.values(e).flatMap(t=>Array.isArray(t)?t.filter(r=>!w.isMeasureColumn(r)):[])}function PSe(e,t,r){const n=xO(t,e.attribute);if(!n||Vb(n))return null;if(SO(e,n))return Zf(e);if(N.isMembersFilter(n)&&r){const[i,a]=Ju(n.members,s=>e.members.includes(s));if(i.length===e.members.length&&a.length)return TO(e.attribute,a,[n])}return null}function RSe(e,t,r){const n=t.filter(o=>!o.config.disabled),i=e.map(o=>PSe(o,n,r)).filter(o=>!!o),a=e.length!==i.length;return{filters:a?e:i,isSelection:a}}function zm(e,t,r=!1){const n=e.map(({attribute:a,values:o})=>TO(a,o,t)),i=OSe(t,n);return RSe(i,t,r)}function OSe(e,t){const r=e.filter(n=>n.config.locked);return r.length?t.filter(n=>!r.some(i=>Gb(i,n))):t}function kSe(e,t,r){const n=Md(e,t,r).filter(({displayValues:s})=>s.length);if(n.length===0)return"";const[i]=n,a=r.length===1,o=i.displayValues.length>EO;return n.length>1?a?n.map(s=>s.displayValues[0]).join(", "):o?"":i.displayValues.join(", "):o?i.attribute.name:i.displayValues.join(", ")}function Zx(e,t,r){const n=kSe(e,t,r);return n?{id:us.CROSSFILTERING_CHART_POINTS_SELECTION,sectionTitle:n}:null}function Qx(e,t){return{items:[{caption:e,onClick:t}]}}function DSe(e,t){return Jf(e,t)[0]}function NSe(e){return[...N.CARTESIAN_CHART_TYPES,...N.CATEGORICAL_CHART_TYPES,...N.SCATTER_CHART_TYPES,...N.BOXPLOT_CHART_TYPES,...N.RANGE_CHART_TYPES].includes(e)}function ISe(e,t){return Jf(e,t).length>=1}function LSe(e,t){return ISe(e,t)&&NSe(e)}function MO(e,t,r){const n=i=>!!i&&!Zr(r,w.translateColumnToAttribute(i));if(N.isCartesian(e)||N.isCategorical(e)||N.isBoxplot(e)||N.isRange(e)){const i=t.category[0];if(n(i))return B(M({},t),{category:[r]})}else if(N.isScatter(e)){const i=t,o=["x","y","breakByPoint","breakByColor"].find(s=>{const u=i[s];return u&&!w.isMeasureColumn(u)});if(o){const s=i[o];if(n(s))return B(M({},i),{[o]:r})}}return t}function Jx(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]&&!w.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[eO(`{masked ${o}`)];return{categoryValue:c,categoryDisplayValue:c}}return n})}function ch(e,t){return e.filter(r=>{if(N.MetadataTypes.isAttribute(r)){const a=r;return t.every(o=>!Zr(o,a))}const i=r;return t.every((a,o)=>i.levels[o]&&Zr(a,i.levels[o]))})}function dh(e,t){return[w.translateColumnToAttribute(e),...t.map(({nextDimension:r})=>r)]}const FSe=fs(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"),$Se=Ne(Ua)($t(({theme:e})=>B(M({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":M({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":M({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:Xm(e.palette.grey[200],.12)}:{backgroundColor:Xm(e.palette.grey[600],.12)})}))),BSe=Ne(FSe)({width:24,height:16});function AO(e){const a=e,{slots:t={},slotProps:r={}}=a,n=xe(a,["slots","slotProps"]),i=e;return fe.jsx("li",{children:fe.jsx($Se,B(M({focusRipple:!0},n),{ownerState:i,children:fe.jsx(BSe,M({as:t.CollapsedIcon,ownerState:i},r.collapsedIcon))}))})}process.env.NODE_ENV!=="production"&&(AO.propTypes={slotProps:_.shape({collapsedIcon:_.oneOfType([_.func,_.object])}),slots:_.shape({CollapsedIcon:_.elementType}),sx:_.object});function HSe(e){return yt("MuiBreadcrumbs",e)}const zSe=bt("MuiBreadcrumbs",["root","ol","li","separator"]),jSe=e=>{const{classes:t}=e;return Dt({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},HSe,t)},WSe=Ne(qr,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${zSe.li}`]:t.li},t.root]})({}),USe=Ne("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),VSe=Ne("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function GSe(e,t,r,n){return e.reduce((i,a,o)=>(o<e.length-1?i=i.concat(a,fe.jsx(VSe,{"aria-hidden":!0,className:t,ownerState:n,children:r},`separator-${o}`)):i.push(a),i),[])}const PO=Q.forwardRef(function(t,r){const n=Mt({props:t,name:"MuiBreadcrumbs"}),D=n,{children:i,className:a,component:o="nav",slots:s={},slotProps:u={},expandText:c="Show path",itemsAfterCollapse:d=1,itemsBeforeCollapse:h=1,maxItems:p=8,separator:m="/"}=D,v=xe(D,["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"]),[g,b]=Q.useState(!1),C=B(M({},n),{component:o,expanded:g,expandText:c,itemsAfterCollapse:d,itemsBeforeCollapse:h,maxItems:p,separator:m}),x=jSe(C),E=Av({elementType:s.CollapsedIcon,externalSlotProps:u.collapsedIcon,ownerState:C}),T=Q.useRef(null),A=I=>{const H=()=>{b(!0);const G=T.current.querySelector("a[href],button,[tabindex]");G&&G.focus()};return h+d>=I.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${d}} + itemsBeforeCollapse={${h}} >= maxItems={${p}}`].join(`
543
+ `)),I):[...I.slice(0,h),fe.jsx(AO,{"aria-label":c,slots:{CollapsedIcon:s.CollapsedIcon},slotProps:{collapsedIcon:E},onClick:H},"ellipsis"),...I.slice(I.length-d,I.length)]},R=Q.Children.toArray(i).filter(I=>(process.env.NODE_ENV!=="production"&&Zv.isFragment(I)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
544
+ `)),Q.isValidElement(I))).map((I,H)=>fe.jsx("li",{className:x.li,children:I},`child-${H}`));return fe.jsx(WSe,B(M({ref:r,component:o,color:"textSecondary",className:je(x.root,a),ownerState:C},v),{children:fe.jsx(USe,{className:x.ol,ref:T,ownerState:C,children:GSe(g||p&&R.length<=p?R:A(R),x.separator,m,C)})}))});process.env.NODE_ENV!=="production"&&(PO.propTypes={children:_.node,classes:_.object,className:_.string,component:_.elementType,expandText:_.string,itemsAfterCollapse:Vn,itemsBeforeCollapse:Vn,maxItems:Vn,separator:_.node,slotProps:_.shape({collapsedIcon:_.oneOfType([_.func,_.object])}),slots:_.shape({CollapsedIcon:_.elementType}),sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object])});function qSe(e){return yt("MuiButton",e)}const ba=bt("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"]),RO=Q.createContext({});process.env.NODE_ENV!=="production"&&(RO.displayName="ButtonGroupContext");const OO=Q.createContext(void 0);process.env.NODE_ENV!=="production"&&(OO.displayName="ButtonGroupButtonContext");const YSe=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"]},d=Dt(c,qSe,u);return M(M({},u),d)},kO=[{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}}}],XSe=Ne(Ua,{shouldForwardProp:e=>Su(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]}})($t(({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 B(M({},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"},[`&.${ba.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]},[`&.${ba.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ba.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)",[`&.${ba.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(ea()).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)`:Rt(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})`:Rt(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})`:Rt(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})`:Rt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Rt(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"},[`&.${ba.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ba.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}),[`&.${ba.loading}`]:{color:"transparent"}}}]})})),KSe=Ne("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}},...kO]})),ZSe=Ne("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}},...kO]})),QSe=Ne("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}}]})),eT=Ne("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(e,t)=>t.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),bu=Q.forwardRef(function(t,r){const n=Q.useContext(RO),i=Q.useContext(OO),a=zl(n,t),o=Mt({props:a,name:"MuiButton"}),Y=o,{children:s,color:u="primary",component:c="button",className:d,disabled:h=!1,disableElevation:p=!1,disableFocusRipple:m=!1,endIcon:v,focusVisibleClassName:g,fullWidth:b=!1,id:C,loading:x=null,loadingIndicator:E,loadingPosition:T="center",size:A="medium",startIcon:R,type:D,variant:I="text"}=Y,H=xe(Y,["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","id","loading","loadingIndicator","loadingPosition","size","startIcon","type","variant"]),G=kh(C),q=E!=null?E:fe.jsx(Jb,{"aria-labelledby":G,color:"inherit",size:16}),O=B(M({},o),{color:u,component:c,disabled:h,disableElevation:p,disableFocusRipple:m,fullWidth:b,loading:x,loadingIndicator:q,loadingPosition:T,size:A,type:D,variant:I}),$=YSe(O),X=(R||x&&T==="start")&&fe.jsx(KSe,{className:$.startIcon,ownerState:O,children:R||fe.jsx(eT,{className:$.loadingIconPlaceholder,ownerState:O})}),j=(v||x&&T==="end")&&fe.jsx(ZSe,{className:$.endIcon,ownerState:O,children:v||fe.jsx(eT,{className:$.loadingIconPlaceholder,ownerState:O})}),V=i||"",z=typeof x=="boolean"?fe.jsx("span",{className:$.loadingWrapper,style:{display:"contents"},children:x&&fe.jsx(QSe,{className:$.loadingIndicator,ownerState:O,children:q})}):null;return fe.jsxs(XSe,B(M({ownerState:O,className:je(n.className,$.root,d,V),component:c,disabled:h||x,focusRipple:!m,focusVisibleClassName:je($.focusVisible,g),ref:r,type:D,id:x?G:C},H),{classes:$,children:[X,T!=="end"&&z,s,T==="end"&&z,j]}))});process.env.NODE_ENV!=="production"&&(bu.propTypes={children:_.node,classes:_.object,className:_.string,color:_.oneOfType([_.oneOf(["inherit","primary","secondary","success","error","info","warning"]),_.string]),component:_.elementType,disabled:_.bool,disableElevation:_.bool,disableFocusRipple:_.bool,disableRipple:_.bool,endIcon:_.node,focusVisibleClassName:_.string,fullWidth:_.bool,href:_.string,id:_.string,loading:_.bool,loadingIndicator:_.node,loadingPosition:_.oneOf(["center","end","start"]),size:_.oneOfType([_.oneOf(["small","medium","large"]),_.string]),startIcon:_.node,sx:_.oneOfType([_.arrayOf(_.oneOfType([_.func,_.object,_.bool])),_.func,_.object]),type:_.oneOfType([_.oneOf(["button","reset","submit"]),_.string]),variant:_.oneOfType([_.oneOf(["contained","outlined","text"]),_.string])});const JSe=Ye(za)`
545
+ && {
546
+ position: absolute;
547
+ left: 0;
548
+ right: auto;
549
+ margin: auto;
550
+ bottom: 0;
551
+ top: 0;
552
+ z-index: 10;
553
+ background: linear-gradient(to right, white 30%, rgba(255, 255, 255, 0) 100%);
554
+ display: inline-flex;
555
+
556
+ span[aria-label='prev-item'] {
557
+ width: 0;
558
+ height: 0;
559
+ border-top: 6px solid transparent;
560
+ border-bottom: 6px solid transparent;
561
+ border-right: 5px solid #000;
562
+ color: transparent;
563
+ opacity: 0.3;
564
+
565
+ &:hover {
566
+ opacity: 0.8;
567
+ }
568
+ }
569
+ }
570
+ `,eEe=Ye(za)`
571
+ && {
572
+ position: absolute;
573
+ left: auto;
574
+ right: 0;
575
+ margin: auto;
576
+ bottom: 0;
577
+ top: 0;
578
+ z-index: 10;
579
+ background: linear-gradient(to right, rgba(255, 255, 255, 0) 0, white 70%);
580
+ display: inline-flex;
581
+
582
+ span[aria-label='next-item'] {
583
+ width: 0;
584
+ height: 0;
585
+ border-top: 6px solid transparent;
586
+ border-bottom: 6px solid transparent;
587
+ border-left: 5px solid #000;
588
+ color: transparent;
589
+ opacity: 0.3;
590
+
591
+ &:hover {
592
+ opacity: 0.8;
593
+ }
594
+ }
595
+ }
596
+ `,tEe=({currentDimension:e,children:t})=>{const{t:r}=w.useTranslation(),n=k.useRef(null),[i,a]=k.useState(0),[o,s]=k.useState(0),[u,c]=k.useState(0),d=()=>{var v;return(v=n.current)==null?void 0:v.querySelector("ol")};k.useEffect(()=>{const v=d();if(v){const g=v.clientWidth,b=v.scrollWidth,C=v.scrollLeft;a(g),s(b),c(C)}},[e]),k.useEffect(()=>{const v=d();function g(){if(v){const x=v.clientWidth;a(x)}}function b(){if(v){const x=v.scrollLeft;c(x)}}const C=new ResizeObserver(g);return v?(C.observe(v),v.addEventListener("scroll",b),()=>{C.disconnect(),v.removeEventListener("scroll",b)}):()=>{}},[]);const h=v=>{const b="smooth",C=d();C&&C.scrollBy({left:v==="right"?200:-200,behavior:b})},p=u!=0,m=Math.floor(o-u)>i;return w.jsxs("div",{style:{position:"relative"},children:[p&&w.jsx(JSe,{onClick:()=>h("left"),children:w.jsx("span",{"aria-label":"prev-item",children:r("drilldown.breadcrumbsPrev")})}),m&&w.jsx(eEe,{onClick:()=>h("right"),children:w.jsx("span",{"aria-label":"next-item",children:r("drilldown.breadcrumbsNext")})}),w.jsx("div",{ref:n,children:t})]})},rEe=({clearDrilldownSelections:e,currentDimension:t,setIsHovered:r,themeProps:n})=>{const{t:i}=w.useTranslation(),a=t.name,o=Ye(bu)`
597
+ && {
598
+ background-color: ${n.activeDrillBackgroundColor};
599
+ color: ${n.primaryButtonTextColor};
600
+ border-radius: 100%;
601
+ border: 2px solid white;
602
+ min-width: 39px;
603
+ width: 39px;
604
+ height: 39px;
605
+ z-index: 10;
606
+ padding: 7px;
607
+ cursor: pointer;
608
+ text-transform: none;
609
+ margin-right: -5px;
610
+
611
+ &:hover {
612
+ background-color: ${n.activeDrillHoverBackgroundColor};
613
+ color: ${n.primaryTextColor};
614
+ }
615
+ }
616
+ `,s=Ye.svg`
617
+ width: 22px;
618
+ height: 22px;
619
+ fill: #9ea2ab;
620
+ `,u=()=>w.jsx(o,{theme:n,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),onClick:e,children:w.jsx(s,{width:22,height:22,viewBox:"0 0 24 24",children:w.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=Ye(bu)`
621
+ && {
622
+ position: relative;
623
+ font-family: ${h=>h.theme.fontFamily};
624
+ border-radius: 0;
625
+ border: 1px solid ${Xn};
626
+ background-color: ${h=>h.theme.chartBackgroundColor};
627
+ border-right: none;
628
+ border-left: none;
629
+ color: ${h=>h.theme.secondaryTextColor};
630
+ padding-right: 1.25rem;
631
+ padding-left: 1.875rem;
632
+ height: 1.64rem;
633
+ font-size: 13px;
634
+ transition: background-color 0.2s, border-color 0.2s, color 0.2s;
635
+ text-transform: none;
636
+ cursor: auto;
637
+ pointer-events: none;
638
+ white-space: nowrap;
639
+
640
+ &:hover {
641
+ background-color: ${h=>h.theme.chartBackgroundColor};
642
+ border: 1px solid ${Xn};
643
+ border-right: none;
644
+ border-left: none;
645
+ }
646
+ }
647
+ `;return{CancelButton:u,CurrentDrillButton:()=>w.jsxs(c,{theme:n,children:[a," (",i("drilldown.breadcrumbsAllSuffix"),")",w.jsx("span",{className:"flex items-center justify-between",children:w.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 ${Xn}`,borderRight:`1px solid ${Xn}`}})})]})}},nEe={modifiers:[{name:"offset",options:{offset:[0,12]}}]},iEe=({themeProps:e,filterDisplayValues:t,currentTable:r,currentColumn:n})=>{const{t:i}=w.useTranslation();return w.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:[w.jsxs("div",{className:"csdk-border-b csdk-border-[#e4e4e4] csdk-p-3 csdk-pl-1",children:[w.jsx(qr,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:i("drilldown.popover.members")}),w.jsx(qr,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:t.join(", ")})]}),w.jsxs("div",{className:"csdk-border-b csdk-border-[#e4e4e4] csdk-p-3 csdk-pl-1",children:[w.jsx(qr,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:i("drilldown.popover.table")}),w.jsx(qr,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:r})]}),w.jsxs("div",{className:"csdk-p-3 csdk-pl-1",children:[w.jsx(qr,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:i("drilldown.popover.column")}),w.jsx(qr,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:n})]})]})},aEe=({popperParams:e,currentDimension:t,themeProps:r})=>{const n=t.expression.match(/\[(.*?)]/),[i,a]=n?n[1].split("."):["",""],o=!!e;return w.jsx(qu,{open:o,anchorEl:e==null?void 0:e.anchorEl,placement:"bottom",popperOptions:nEe,children:e&&w.jsx(iEe,{themeProps:r,filterDisplayValues:e.filterDisplayValues,currentTable:i,currentColumn:a})})},oEe=()=>{const{themeSettings:{typography:{primaryTextColor:e,secondaryTextColor:t,fontFamily:r},general:{backgroundColor:n,brandColor:i,primaryButtonTextColor:a},chart:{backgroundColor:o}}}=mt(),s=w.scaleBrightness(o,-.02),u=w.scaleBrightness(s,-.05);return{primaryTextColor:e,secondaryTextColor:t,fontFamily:r,backgroundColor:n,brandColor:i,primaryButtonTextColor:a,chartBackgroundColor:o,activeDrillBackgroundColor:s,activeDrillHoverBackgroundColor:u}},Xn="#F2F2F2",sEe=Ye(bu)`
648
+ && {
649
+ font-family: ${({theme:e})=>e.fontFamily};
650
+ position: relative;
651
+ border-radius: 0;
652
+ border: 1px solid ${Xn};
653
+ border-right: none;
654
+ color: ${({active:e,theme:t})=>e==="true"?t.primaryTextColor:t.secondaryTextColor};
655
+ background-color: ${({active:e,theme:t})=>e==="true"?t.activeDrillBackgroundColor:t.chartBackgroundColor};
656
+ padding-right: 1.25rem;
657
+ padding-left: 1.875rem;
658
+ height: 1.64rem;
659
+ font-size: 13px;
660
+ text-transform: none;
661
+ transition: background-color 0.2s, border-color 0.2s, color 0.2s;
662
+ white-space: nowrap;
663
+ cursor: ${({active:e})=>e==="true"?"pointer":"auto"};
664
+ margin-right: ${({active:e})=>e==="true"?"5px":"0px"};
665
+
666
+ &:hover {
667
+ background-color: ${({active:e,theme:t})=>e==="true"?t.activeDrillHoverBackgroundColor:t.chartBackgroundColor};
668
+ border: 1px solid ${Xn};
669
+ border-right: none;
670
+ }
671
+
672
+ .MuiTouchRipple-root {
673
+ display: none;
674
+ }
675
+ }
676
+ `,lEe=Ye(PO)`
677
+ .MuiBreadcrumbs-ol {
678
+ flex-wrap: nowrap;
679
+ overflow: hidden;
680
+ }
681
+ .MuiBreadcrumbs-separator {
682
+ display: none;
683
+ }
684
+ `,uEe=({isActive:e,filterDisplayValue:t,handleMouseEnter:r,handleMouseLeave:n,handleClick:i,themeProps:a,popperParams:o,index:s})=>w.jsx(sEe,{theme:a,active:e.toString(),index:s,onMouseEnter:r,onMouseLeave:n,onClick:i,children:w.jsxs("span",{className:"flex items-center justify-between",children:[w.jsxs("span",{className:"mr-2",children:[t.slice(0,2).join(", "),t.length>2&&", ..."]}),e?w.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 ${Xn}`,borderRight:`1px solid ${Xn}`,transition:"background-color 0.2s, border-color 0.2s, color 0.2s",zIndex:8}}):void 0,w.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 ${Xn}`,borderRight:`1px solid ${Xn}`,zIndex:7,transition:"background-color 0.2s, border-color 0.2s, color 0.2s"}})]})}),DO=Eu({componentName:"DrilldownBreadcrumbs",shouldSkipSisenseContextWaiting:!0})(({filtersDisplayValues:e,currentDimension:t,clearDrilldownSelections:r,sliceDrilldownSelections:n})=>{const[i,a]=k.useState(null),[o,s]=k.useState(!1),u=oEe(),{CancelButton:c,CurrentDrillButton:d}=rEe({clearDrilldownSelections:r,currentDimension:t,isHovered:o,setIsHovered:s,themeProps:u}),h=g=>b=>{s(!0),a({filterDisplayValues:g,anchorEl:b.currentTarget})},p=()=>{s(!1),a(null)},m=g=>g<e.length-1,v=g=>g===e.length-2;return e.length?w.jsx("div",{"data-testid":"drilldown-breadcrumbs",children:w.jsx(tEe,{currentDimension:t,children:w.jsxs(lEe,{separator:null,sx:{backgroundColor:u.chartBackgroundColor,padding:"4px"},children:[w.jsx(c,{}),e.map((g,b)=>{const C=m(b),x=v(b);return w.jsx("div",{children:w.jsx(uEe,{isActive:C,isLastActive:x,filterDisplayValue:g,handleMouseEnter:h(g),handleMouseLeave:p,handleClick:()=>n(b+1),themeProps:u,popperParams:i,index:b})},b)}),w.jsx(d,{}),w.jsx(aEe,{popperParams:i,currentDimension:t,themeProps:u})]})})}):null}),NO=e=>{const{initialDimension:t,onDrilldownSelectionsChange:r}=e,n=k.useMemo(()=>e.drilldownPaths||[],[e.drilldownPaths]),i=k.useMemo(()=>e.initialDrilldownSelections||[],[e.initialDrilldownSelections]),{t:a}=w.useTranslation();if(!t)throw new N.TranslatableError("errors.drilldownNoInitialDimension");const[o,s]=Ub(i,{onLocalStateChange:r}),u=k.useMemo(()=>dh(t,o),[t,o]),c=k.useMemo(()=>ch(n,u),[n,u]),d=k.useCallback((b,C,x)=>{s(E=>IO(E,b,C,x))},[s]),h=k.useCallback(b=>{s(C=>C.slice(0,b))},[s]),p=k.useCallback(()=>{s([])},[s]),{drilldownFilters:m,drilldownFiltersDisplayValues:v,drilldownDimension:g}=k.useMemo(()=>LO(o,t,a),[o,t,a]);return{drilldownSelections:o,availableDrilldownPaths:c,drilldownFilters:m,drilldownFiltersDisplayValues:v,drilldownDimension:g,selectDrilldown:d,sliceDrilldownSelections:h,clearDrilldownSelections:p}},IO=(e,t,r,n)=>{var p,m;if(!(n!=null&&n.levels))return[...e,{points:t,nextDimension:r}];if(Zr(n.levels[0],r))return[];const a=(p=e==null?void 0:e.findIndex(v=>Zr(v.nextDimension,r)))!=null?p:-1;if(a!==-1)return e.slice(0,a+1);const s=(m=N.last(e))==null?void 0:m.nextDimension,u=e.length?n.levels.findIndex(v=>s&&Zr(v,s)):0,c=n.levels.indexOf(r),h=n.levels.slice(u+1,c+1).map((v,g)=>({points:g===0?t:[],nextDimension:v}));return[...e,...h]},LO=(e,t,r)=>{let n=t&&w.translateColumnToAttribute(t);const i=[],a=[];return e.forEach(({points:o,nextDimension:s})=>{i.push(N.members(n,o.map(cEe)));const u=o.length?o.map(FO):[`${n.name} (${r("drilldown.breadcrumbsAllSuffix")})`];a.push(u),n=s}),{drilldownFilters:i,drilldownFiltersDisplayValues:a,drilldownDimension:n}};function FO(e){return"categoryDisplayValue"in e?`${e.categoryDisplayValue}`:"categoryValue"in e?`${e.categoryValue}`:""}function cEe(e){return"categoryValue"in e?`${e.categoryValue}`:""}const $O=({initialDimension:e,initialDrilldownSelections:t,openMenu:r,onDrilldownSelectionsChange:n})=>{const{t:i}=w.useTranslation(),{drilldownFilters:a,drilldownFiltersDisplayValues:o,drilldownDimension:s,drilldownSelections:u,selectDrilldown:c,sliceDrilldownSelections:d,clearDrilldownSelections:h}=NO({initialDimension:e,initialDrilldownSelections:t,onDrilldownSelectionsChange:n}),p=k.useCallback((v,g,b=[],C)=>{const x=[BO(g,s),HO(b,s,(E,T)=>{C==null||C(E,T),c(g,E,T)},i)];r({id:yu.WIDGET_POINTS_DRILLDOWN,position:v,itemSections:x})},[s,i,c,r]),m=k.useMemo(()=>s&&w.jsx(DO,{filtersDisplayValues:o,currentDimension:s,clearDrilldownSelections:h,sliceDrilldownSelections:d}),[h,s,o,d]);return{drilldownDimension:s,drilldownSelections:u,drilldownFilters:a,breadcrumbs:m,openDrilldownMenu:p}};function BO(e,t){const r=pv(e.map(FO).filter(n=>!!n));return r.length>EO?{id:us.DRILLDOWN_CHART_POINTS_SELECTION,sectionTitle:t.name}:{id:us.DRILLDOWN_CHART_POINTS_SELECTION,sectionTitle:r.join(", ")}}function dEe(e){return 30+12*e}function HO(e,t,r,n){const[i,a]=Ju(e,N.MetadataTypes.isAttribute.bind(N.MetadataTypes)),o=i.map(u=>({caption:u.name,onClick:()=>r(u)})),s=a.map(u=>({caption:u.title,subItems:[{items:u.levels.map((c,d)=>({caption:c.name,class:d===0?"":"csdk-drilldown-hierarchy-nested-menu-item",style:{paddingLeft:`${dEe(d)}px`},disabled:Zr(c,t),onClick:()=>r(c,u)}))}]}));return{id:us.DRILLDOWN_DRILL_DIRECTIONS,sectionTitle:n("drilldown.drillMenuItem"),items:[...s,...o]}}function hEe(e){const{_id:t,title:r,levels:n}=e;return{id:t,title:r,levels:n.map(i=>N.createDimensionalElementFromJaql(i))}}function zO(e,t,r){return Vt(this,null,function*(){const i=yield new Wy(e,r).getHierarchies(t);return i==null?void 0:i.map(a=>hEe(a))})}function jO(){const{isInitialized:e,app:t}=_t(),[r,n]=k.useReducer(Qf,{isLoading:!1,isError:!1,isSuccess:!0,status:"success",error:void 0,data:[]}),i=k.useCallback(a=>Vt(this,null,function*(){const{attribute:o,dataSource:s,drilldownPaths:u=[]}=a;if(!e||!t){const h=new N.TranslatableError("errors.noSisenseContext");throw n({type:"error",error:h}),h}const[c,d]=Ju(u,df);if(c.length===0)return n({type:"success",data:d}),d;n({type:"loading"});try{const h=yield zO(t.httpClient,{dimension:o,dataSource:s,ids:c,alwaysIncluded:!0},t.defaultDataSource),p=h.length?[...h,...d]:d;return n({type:"success",data:p}),p}catch(h){const p=h instanceof Error?h:new Error(String(h));throw n({type:"error",error:p}),p}}),[e,t]);return B(M({},r),{drilldownPaths:r.data,synchronize:i})}function fEe(e){const t=Qu(e,["attribute","dataSource","drilldownPaths","enabled"]),{attribute:r,dataSource:n,drilldownPaths:i,enabled:a}=e,{drilldownPaths:o,synchronize:s}=jO();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 pEe=({propsToExtend:e,onDrilldownSelectionsChange:t})=>{const{chartType:r,dataOptions:n,dataSource:i,drilldownOptions:a}=e,{drilldownSelections:o}=a||{},{openMenu:s}=e1(),u=k.useMemo(()=>LSe(r,n),[r,n]),c=k.useMemo(()=>(a==null?void 0:a.drilldownPaths)||[],[a==null?void 0:a.drilldownPaths]),d=k.useMemo(()=>{const H=N.createAttribute({name:"dummy drilldown initial attribute"});return DSe(r,n)||H},[r,n]),h=fEe({attribute:d,dataSource:i,drilldownPaths:c,enabled:u}),p=k.useRef(h);k.useEffect(()=>{p.current=h},[h]);const m=k.useMemo(()=>{var G;return(!!((G=a==null?void 0:a.drilldownSelections)!=null&&G.length)||!!(h!=null&&h.length))&&u},[a,u,h]),{drilldownDimension:v,drilldownFilters:g,breadcrumbs:b,openDrilldownMenu:C}=$O({initialDimension:d,initialDrilldownSelections:o,openMenu:s,onDrilldownSelectionsChange:t}),x=k.useCallback((H,G)=>{const q=Jx(H,G,n),O=dh(d,o||[]),$=ch(p.current,O);C({left:G.clientX,top:G.clientY},q,$)},[n,d,o,C]),E=k.useCallback((H,G)=>{const q=Jx([H],G,n),O=dh(d,o||[]),$=ch(p.current,O);C({left:G.clientX,top:G.clientY},q,$)},[n,d,o,C]),T=k.useMemo(()=>MO(r,n,v),[r,n,v]),A=k.useMemo(()=>g.length?N.mergeFiltersOrFilterRelations(e.filters||[],g):e.filters,[e.filters,g]),R=k.useMemo(()=>w.combineHandlers([x,e.onDataPointsSelected]),[x,e.onDataPointsSelected]),D=k.useMemo(()=>w.combineHandlers([E,e.onDataPointContextMenu]),[E,e.onDataPointContextMenu]);return{propsWithDrilldown:B(M({},e),{dataOptions:T,filters:A,onDataPointsSelected:R,onDataPointContextMenu:D}),isDrilldownEnabled:m,breadcrumbs:b}},mEe=Eu({componentName:"ChartWidget"})(e=>{var O,$,X;const{app:t}=_t(),{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:d,height:h}=a||{},p=k.useMemo(()=>{var j;return oS(r,{hasHeader:!((j=a==null?void 0:a.header)!=null&&j.hidden)})},[r,(O=a==null?void 0:a.header)==null?void 0:O.hidden]),m=k.useMemo(()=>({width:d,height:h}),[d,h]),[v,g]=k.useState(0),b=k.useMemo(()=>N.omit(a,["width","height"]),[a]),C=k.useCallback(j=>{c==null||c({type:"drilldownSelections/changed",payload:j})},[c]),{headerConfig:x,titleEditor:E}=nO({title:e.title,onChange:e.onChange,headerConfig:($=e.config)==null?void 0:$.header}),{headerConfig:T}=sSe({baseHeaderConfig:x,title:e.title,chartType:r,dataOptions:i,dataSource:n,filters:e.filters,highlights:e.highlights,config:e.config}),{propsWithDrilldown:A,isDrilldownEnabled:R,breadcrumbs:D}=pEe({propsToExtend:e,onDrilldownSelectionsChange:C}),I=Qxe({chartType:r,dataOptions:i,enabled:!o&&!R&&!(s!=null&&s.length)}),H=(X=t==null?void 0:t.settings.accessibilityConfig)==null?void 0:X.enabled,G=k.useCallback(j=>{var V;return H?B(M({},j),{accessibility:B(M({},j.accessibility),{description:u!=null?u:(V=j.accessibility)==null?void 0:V.description})}):j},[u,H]);if(!r||!i)return null;const q=B(M({},A),{dataSet:n,styleOptions:b,refreshCounter:v,onDataPointClick:k.useMemo(()=>w.combineHandlers([I.onDataPointClick,e.onDataPointClick]),[I.onDataPointClick,e.onDataPointClick]),onDataPointContextMenu:A.onDataPointContextMenu,onDataPointsSelected:k.useMemo(()=>w.combineHandlers([I.onDataPointsSelected,A.onDataPointsSelected]),[I.onDataPointsSelected,A.onDataPointsSelected]),onBeforeRender:k.useMemo(()=>w.combineHandlers([G,I.onBeforeRender,e.onBeforeRender],!0),[G,I.onBeforeRender,e.onBeforeRender])});return w.jsx(Nh,{defaultSize:p,size:m,children:w.jsx(pO,B(M({},e),{headerConfig:T,titleEditor:E,topSlot:w.jsxs(w.Fragment,{children:[e.topSlot,D]}),dataSetName:n&&N.getDataSourceName(n),onRefresh:()=>g(v+1),children:w.jsx(RR,M({},q))}))})});class Ls{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 _u=typeof window=="undefined"||"Deno"in window;function hn(){}function gEe(e,t){return typeof e=="function"?e(t):e}function mv(e){return typeof e=="number"&&e>=0&&e!==1/0}function WO(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Sl(e,t,r){return tc(e)?typeof t=="function"?B(M({},r),{queryKey:e,queryFn:t}):B(M({},t),{queryKey:e}):e}function vEe(e,t,r){return tc(e)?B(M({},t),{mutationKey:e}):typeof e=="function"?B(M({},t),{mutationFn:e}):M({},e)}function ji(e,t,r){return tc(e)?[B(M({},t),{queryKey:e}),r]:[e||{},t]}function tT(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(tc(o)){if(n){if(t.queryHash!==n1(o,t.options))return!1}else if(!jo(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 rT(e,t){const{exact:r,fetching:n,predicate:i,mutationKey:a}=e;if(tc(a)){if(!t.options.mutationKey)return!1;if(r){if(Ma(t.options.mutationKey)!==Ma(a))return!1}else if(!jo(t.options.mutationKey,a))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||i&&!i(t))}function n1(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ma)(e)}function Ma(e){return JSON.stringify(e,(t,r)=>gv(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function jo(e,t){return UO(e,t)}function UO(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!UO(e[r],t[r])):!1}function VO(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=nT(e)&&nT(t);if(n||gv(e)&&gv(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 d=n?c:a[c];s[d]=VO(e[d],t[d],r+1),s[d]===e[d]&&u++}return i===o&&u===i?e:s}return t}function hh(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function nT(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function gv(e){if(!iT(e))return!1;const t=e.constructor;if(typeof t=="undefined")return!0;const r=t.prototype;return!(!iT(r)||!r.hasOwnProperty("isPrototypeOf"))}function iT(e){return Object.prototype.toString.call(e)==="[object Object]"}function tc(e){return Array.isArray(e)}function GO(e){return new Promise(t=>{setTimeout(t,e)})}function aT(e){GO(0).then(e)}function yEe(){if(typeof AbortController=="function")return new AbortController}function vv(e,t,r){return r.isDataEqual!=null&&r.isDataEqual(e,t)?e:typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?VO(e,t):t}class bEe extends Ls{constructor(){super(),this.setup=t=>{if(!_u&&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 fh=new bEe,oT=["online","offline"];class _Ee extends Ls{constructor(){super(),this.setup=t=>{if(!_u&&window.addEventListener){const r=()=>t();return oT.forEach(n=>{window.addEventListener(n,r,!1)}),()=>{oT.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 ph=new _Ee;function wEe(e){return Math.min(1e3*Bn(2,e),3e4)}function ep(e){return(e!=null?e:"online")==="online"?ph.isOnline():!0}class qO{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Ad(e){return e instanceof qO}function YO(e){let t=!1,r=0,n=!1,i,a,o;const s=new Promise((b,C)=>{a=b,o=C}),u=b=>{n||(m(new qO(b)),e.abort==null||e.abort())},c=()=>{t=!0},d=()=>{t=!1},h=()=>!fh.isFocused()||e.networkMode!=="always"&&!ph.isOnline(),p=b=>{n||(n=!0,e.onSuccess==null||e.onSuccess(b),i==null||i(),a(b))},m=b=>{n||(n=!0,e.onError==null||e.onError(b),i==null||i(),o(b))},v=()=>new Promise(b=>{i=C=>{const x=n||!h();return x&&b(C),x},e.onPause==null||e.onPause()}).then(()=>{i=void 0,n||e.onContinue==null||e.onContinue()}),g=()=>{if(n)return;let b;try{b=e.fn()}catch(C){b=Promise.reject(C)}Promise.resolve(b).then(p).catch(C=>{var x,E;if(n)return;const T=(x=e.retry)!=null?x:3,A=(E=e.retryDelay)!=null?E:wEe,R=typeof A=="function"?A(r,C):A,D=T===!0||typeof T=="number"&&r<T||typeof T=="function"&&T(r,C);if(t||!D){m(C);return}r++,e.onFail==null||e.onFail(r,C),GO(R).then(()=>{if(h())return v()}).then(()=>{t?m(C):g()})})};return ep(e.networkMode)?g():v().then(g),{promise:s,cancel:u,continue:()=>(i==null?void 0:i())?s:Promise.resolve(),cancelRetry:c,continueRetry:d}}const i1=console;function CEe(){let e=[],t=0,r=d=>{d()},n=d=>{d()};const i=d=>{let h;t++;try{h=d()}finally{t--,t||s()}return h},a=d=>{t?e.push(d):aT(()=>{r(d)})},o=d=>(...h)=>{a(()=>{d(...h)})},s=()=>{const d=e;e=[],d.length&&aT(()=>{n(()=>{d.forEach(h=>{r(h)})})})};return{batch:i,batchCalls:o,schedule:a,setNotifyFunction:d=>{r=d},setBatchNotifyFunction:d=>{n=d}}}const qt=CEe();class XO{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mv(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t!=null?t:_u?1/0:5*60*1e3)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class xEe extends XO{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||i1,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||TEe(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options=M(M({},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=vv(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(hn).catch(hn):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||!WO(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 m=this.observers.find(v=>v.options.queryFn);m&&this.setOptions(m.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=yEe(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},u=m=>{Object.defineProperty(m,"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+"'"),d={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:c};if(u(d),(n=this.options.behavior)==null||n.onFetch(d),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=d.fetchOptions)==null?void 0:i.meta)){var h;this.dispatch({type:"fetch",meta:(h=d.fetchOptions)==null?void 0:h.meta})}const p=m=>{if(Ad(m)&&m.silent||this.dispatch({type:"error",error:m}),!Ad(m)){var v,g,b,C;(v=(g=this.cache.config).onError)==null||v.call(g,m,this),(b=(C=this.cache.config).onSettled)==null||b.call(C,this.state.data,m,this),process.env.NODE_ENV!=="production"&&this.logger.error(m)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=YO({fn:d.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:m=>{var v,g,b,C;if(typeof m=="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(m),(v=(g=this.cache.config).onSuccess)==null||v.call(g,m,this),(b=(C=this.cache.config).onSettled)==null||b.call(C,m,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:(m,v)=>{this.dispatch({type:"failed",failureCount:m,error:v})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const r=n=>{var i,a;switch(t.type){case"failed":return B(M({},n),{fetchFailureCount:t.failureCount,fetchFailureReason:t.error});case"pause":return B(M({},n),{fetchStatus:"paused"});case"continue":return B(M({},n),{fetchStatus:"fetching"});case"fetch":return M(B(M({},n),{fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=t.meta)!=null?i:null,fetchStatus:ep(this.options.networkMode)?"fetching":"paused"}),!n.dataUpdatedAt&&{error:null,status:"loading"});case"success":return M(B(M({},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 Ad(o)&&o.revert&&this.revertState?B(M({},this.revertState),{fetchStatus:"idle"}):B(M({},n),{error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"});case"invalidate":return B(M({},n),{isInvalidated:!0});case"setState":return M(M({},n),t.state)}};this.state=r(this.state),qt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function TEe(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 SEe extends Ls{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:n1(a,r);let s=this.get(o);return s||(s=new xEe({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(){qt.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,r){const[n]=ji(t,r);return typeof n.exact=="undefined"&&(n.exact=!0),this.queries.find(i=>tT(n,i))}findAll(t,r){const[n]=ji(t,r);return Object.keys(n).length>0?this.queries.filter(i=>tT(n,i)):this.queries}notify(t){qt.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}onFocus(){qt.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){qt.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class EEe extends XO{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||i1,this.observers=[],this.state=t.state||KO(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=M(M({},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 Vt(this,null,function*(){const t=()=>{var D;return this.retryer=YO({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(I,H)=>{this.dispatch({type:"failed",failureCount:I,error:H})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(D=this.options.retry)!=null?D: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,d;if(!r){var h,p,m,v;this.dispatch({type:"loading",variables:this.options.variables}),yield(h=(p=this.mutationCache.config).onMutate)==null?void 0:h.call(p,this.state.variables,this);const I=yield(m=(v=this.options).onMutate)==null?void 0:m.call(v,this.state.variables);I!==this.state.context&&this.dispatch({type:"loading",context:I,variables:this.state.variables})}const D=yield t();return yield(n=(i=this.mutationCache.config).onSuccess)==null?void 0:n.call(i,D,this.state.variables,this.state.context,this),yield(a=(o=this.options).onSuccess)==null?void 0:a.call(o,D,this.state.variables,this.state.context),yield(s=(u=this.mutationCache.config).onSettled)==null?void 0:s.call(u,D,null,this.state.variables,this.state.context,this),yield(c=(d=this.options).onSettled)==null?void 0:c.call(d,D,null,this.state.variables,this.state.context),this.dispatch({type:"success",data:D}),D}catch(D){try{var g,b,C,x,E,T,A,R;throw yield(g=(b=this.mutationCache.config).onError)==null?void 0:g.call(b,D,this.state.variables,this.state.context,this),process.env.NODE_ENV!=="production"&&this.logger.error(D),yield(C=(x=this.options).onError)==null?void 0:C.call(x,D,this.state.variables,this.state.context),yield(E=(T=this.mutationCache.config).onSettled)==null?void 0:E.call(T,void 0,D,this.state.variables,this.state.context,this),yield(A=(R=this.options).onSettled)==null?void 0:A.call(R,void 0,D,this.state.variables,this.state.context),D}finally{this.dispatch({type:"error",error:D})}}})}dispatch(t){const r=n=>{switch(t.type){case"failed":return B(M({},n),{failureCount:t.failureCount,failureReason:t.error});case"pause":return B(M({},n),{isPaused:!0});case"continue":return B(M({},n),{isPaused:!1});case"loading":return B(M({},n),{context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!ep(this.options.networkMode),status:"loading",variables:t.variables});case"success":return B(M({},n),{data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return B(M({},n),{data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"});case"setState":return M(M({},n),t.state)}};this.state=r(this.state),qt.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function KO(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class MEe extends Ls{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,r,n){const i=new EEe({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(){qt.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=>rT(t,r))}findAll(t){return this.mutations.filter(r=>rT(t,r))}notify(t){qt.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 qt.batch(()=>r.reduce((n,i)=>n.then(()=>i.continue().catch(hn)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function AEe(){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,d=(u==null?void 0:u.direction)==="forward",h=(u==null?void 0:u.direction)==="backward",p=((a=e.state.data)==null?void 0:a.pages)||[],m=((o=e.state.data)==null?void 0:o.pageParams)||[];let v=m,g=!1;const b=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>{var D;if((D=e.signal)!=null&&D.aborted)g=!0;else{var I;(I=e.signal)==null||I.addEventListener("abort",()=>{g=!0})}return e.signal}})},C=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),x=(R,D,I,H)=>(v=H?[D,...v]:[...v,D],H?[I,...R]:[...R,I]),E=(R,D,I,H)=>{if(g)return Promise.reject("Cancelled");if(typeof I=="undefined"&&!D&&R.length)return Promise.resolve(R);const G={queryKey:e.queryKey,pageParam:I,meta:e.options.meta};b(G);const q=C(G);return Promise.resolve(q).then($=>x(R,I,$,H))};let T;if(!p.length)T=E([]);else if(d){const R=typeof c!="undefined",D=R?c:sT(e.options,p);T=E(p,R,D)}else if(h){const R=typeof c!="undefined",D=R?c:PEe(e.options,p);T=E(p,R,D,!0)}else{v=[];const R=typeof e.options.getNextPageParam=="undefined";T=(s&&p[0]?s(p[0],0,p):!0)?E([],R,m[0]):Promise.resolve(x([],m[0],p[0]));for(let I=1;I<p.length;I++)T=T.then(H=>{if(s&&p[I]?s(p[I],I,p):!0){const q=R?m[I]:sT(e.options,H);return E(H,R,q)}return Promise.resolve(x(H,m[I],p[I]))})}return T.then(R=>({pages:R,pageParams:v}))}}}}function sT(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function PEe(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class REe{constructor(t={}){this.queryCache=t.queryCache||new SEe,this.mutationCache=t.mutationCache||new MEe,this.logger=t.logger||i1,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=fh.subscribe(()=>{fh.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=ph.subscribe(()=>{ph.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]=ji(t,r);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(t){return this.mutationCache.findAll(B(M({},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=Sl(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=gEe(r,a);if(typeof o=="undefined")return;const s=Sl(t),u=this.defaultQueryOptions(s);return this.queryCache.build(this,u).setData(o,B(M({},n),{manual:!0}))}setQueriesData(t,r,n){return qt.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]=ji(t,r),i=this.queryCache;qt.batch(()=>{i.findAll(n).forEach(a=>{i.remove(a)})})}resetQueries(t,r,n){const[i,a]=ji(t,r,n),o=this.queryCache,s=M({type:"active"},i);return qt.batch(()=>(o.findAll(i).forEach(u=>{u.reset()}),this.refetchQueries(s,a)))}cancelQueries(t,r,n){const[i,a={}]=ji(t,r,n);typeof a.revert=="undefined"&&(a.revert=!0);const o=qt.batch(()=>this.queryCache.findAll(i).map(s=>s.cancel(a)));return Promise.all(o).then(hn).catch(hn)}invalidateQueries(t,r,n){const[i,a]=ji(t,r,n);return qt.batch(()=>{var o,s;if(this.queryCache.findAll(i).forEach(c=>{c.invalidate()}),i.refetchType==="none")return Promise.resolve();const u=B(M({},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]=ji(t,r,n),o=qt.batch(()=>this.queryCache.findAll(i).filter(u=>!u.isDisabled()).map(u=>{var c;return u.fetch(void 0,B(M({},a),{cancelRefetch:(c=a==null?void 0:a.cancelRefetch)!=null?c:!0,meta:{refetchPage:i.refetchPage}}))}));let s=Promise.all(o).then(hn);return a!=null&&a.throwOnError||(s=s.catch(hn)),s}fetchQuery(t,r,n){const i=Sl(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(hn).catch(hn)}fetchInfiniteQuery(t,r,n){const i=Sl(t,r,n);return i.behavior=AEe(),this.fetchQuery(i)}prefetchInfiniteQuery(t,r,n){return this.fetchInfiniteQuery(t,r,n).then(hn).catch(hn)}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=>Ma(t)===Ma(i.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:t,defaultOptions:r})}getQueryDefaults(t){if(!t)return;const r=this.queryDefaults.find(n=>jo(t,n.queryKey));return process.env.NODE_ENV!=="production"&&this.queryDefaults.filter(i=>jo(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=>Ma(t)===Ma(i.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:t,defaultOptions:r})}getMutationDefaults(t){if(!t)return;const r=this.mutationDefaults.find(n=>jo(t,n.mutationKey));return process.env.NODE_ENV!=="production"&&this.mutationDefaults.filter(i=>jo(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=B(M(M(M({},this.defaultOptions.queries),this.getQueryDefaults(t==null?void 0:t.queryKey)),t),{_defaulted:!0});return!r.queryHash&&r.queryKey&&(r.queryHash=n1(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:B(M(M(M({},this.defaultOptions.mutations),this.getMutationDefaults(t==null?void 0:t.mutationKey)),t),{_defaulted:!0})}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class OEe extends Ls{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),lT(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return yv(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return yv(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"),hh(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&&uT(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 DEe(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=xe(i,["refetchPage"]);return this.fetch(B(M({},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(B(M({},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(hn)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),_u||this.currentResult.isStale||!mv(this.options.staleTime))return;const r=WO(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,!(_u||this.options.enabled===!1||!mv(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||fh.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,d=u?this.currentResult:this.previousQueryResult,{state:h}=t;let{dataUpdatedAt:p,error:m,errorUpdatedAt:v,fetchStatus:g,status:b}=h,C=!1,x=!1,E;if(r._optimisticResults){const I=this.hasListeners(),H=!I&&lT(t,r),G=I&&uT(t,n,r,i);(H||G)&&(g=ep(t.options.networkMode)?"fetching":"paused",p||(b="loading")),r._optimisticResults==="isRestoring"&&(g="idle")}if(r.keepPreviousData&&!h.dataUpdatedAt&&d!=null&&d.isSuccess&&b!=="error")E=d.data,p=d.dataUpdatedAt,b=d.status,C=!0;else if(r.select&&typeof h.data!="undefined")if(a&&h.data===(o==null?void 0:o.data)&&r.select===this.selectFn)E=this.selectResult;else try{this.selectFn=r.select,E=r.select(h.data),E=vv(a==null?void 0:a.data,E,r),this.selectResult=E,this.selectError=null}catch(I){process.env.NODE_ENV!=="production"&&this.client.getLogger().error(I),this.selectError=I}else E=h.data;if(typeof r.placeholderData!="undefined"&&typeof E=="undefined"&&b==="loading"){let I;if(a!=null&&a.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData))I=a.data;else if(I=typeof r.placeholderData=="function"?r.placeholderData():r.placeholderData,r.select&&typeof I!="undefined")try{I=r.select(I),this.selectError=null}catch(H){process.env.NODE_ENV!=="production"&&this.client.getLogger().error(H),this.selectError=H}typeof I!="undefined"&&(b="success",E=vv(a==null?void 0:a.data,I,r),x=!0)}this.selectError&&(m=this.selectError,E=this.selectResult,v=Date.now(),b="error");const T=g==="fetching",A=b==="loading",R=b==="error";return{status:b,fetchStatus:g,isLoading:A,isSuccess:b==="success",isError:R,isInitialLoading:A&&T,data:E,dataUpdatedAt:p,error:m,errorUpdatedAt:v,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>c.dataUpdateCount||h.errorUpdateCount>c.errorUpdateCount,isFetching:T,isRefetching:T&&!A,isLoadingError:R&&h.dataUpdatedAt===0,isPaused:g==="paused",isPlaceholderData:x,isPreviousData:C,isRefetchError:R&&h.dataUpdatedAt!==0,isStale:a1(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,hh(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 d=c;return this.currentResult[d]!==r[d]&&u.has(d)})};(t==null?void 0:t.listeners)!==!1&&a()&&(i.listeners=!0),this.notify(M(M({},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"&&!Ad(t.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(t){qt.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:d})=>{d(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function kEe(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function lT(e,t){return kEe(e,t)||e.state.dataUpdatedAt>0&&yv(e,t,t.refetchOnMount)}function yv(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&a1(e,t)}return!1}function uT(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&a1(e,r)}function a1(e,t){return e.isStaleByTime(t.staleTime)}function DEe(e,t,r){return r.keepPreviousData?!1:r.placeholderData!==void 0?t.isPlaceholderData:!hh(e.getCurrentResult(),t)}var bv={exports:{}},jm={};/**
685
+ * @license React
686
+ * use-sync-external-store-shim.production.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 cT;function NEe(){if(cT)return jm;cT=1;var e=k;function t(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&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(h,p){var m=p(),v=n({inst:{value:m,getSnapshot:p}}),g=v[0].inst,b=v[1];return a(function(){g.value=m,g.getSnapshot=p,u(g)&&b({inst:g})},[h,m,p]),i(function(){return u(g)&&b({inst:g}),h(function(){u(g)&&b({inst:g})})},[h]),o(m),m}function u(h){var p=h.getSnapshot;h=h.value;try{var m=p();return!r(h,m)}catch(v){return!0}}function c(h,p){return p()}var d=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?c:s;return jm.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,jm}var Wm={};/**
693
+ * @license React
694
+ * use-sync-external-store-shim.development.js
695
+ *
696
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
697
+ *
698
+ * This source code is licensed under the MIT license found in the
699
+ * LICENSE file in the root directory of this source tree.
700
+ */var dT;function IEe(){return dT||(dT=1,process.env.NODE_ENV!=="production"&&function(){function e(m,v){return m===v&&(m!==0||1/m===1/v)||m!==m&&v!==v}function t(m,v){d||i.startTransition===void 0||(d=!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 g=v();if(!h){var b=v();a(g,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),h=!0)}b=o({inst:{value:g,getSnapshot:v}});var C=b[0].inst,x=b[1];return u(function(){C.value=g,C.getSnapshot=v,r(C)&&x({inst:C})},[m,g,v]),s(function(){return r(C)&&x({inst:C}),m(function(){r(C)&&x({inst:C})})},[m]),c(g),g}function r(m){var v=m.getSnapshot;m=m.value;try{var g=v();return!a(m,g)}catch(b){return!0}}function n(m,v){return v()}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,d=!1,h=!1,p=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?n:t;Wm.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())}()),Wm}process.env.NODE_ENV==="production"?bv.exports=NEe():bv.exports=IEe();var LEe=bv.exports;const ZO=LEe.useSyncExternalStore,hT=Q.createContext(void 0),QO=Q.createContext(!1);function JO(e,t){return e||(t&&typeof window!="undefined"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=hT),window.ReactQueryClientContext):hT)}const ek=({context:e}={})=>{const t=Q.useContext(JO(e,Q.useContext(QO)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},FEe=({client:e,children:t,context:r,contextSharing:n=!1})=>{Q.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=JO(r,n);return Q.createElement(QO.Provider,{value:!r&&n},Q.createElement(i.Provider,{value:e},t))},$Ee=Q.createContext(!1),BEe=()=>Q.useContext($Ee);function HEe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const zEe=Q.createContext(HEe()),jEe=()=>Q.useContext(zEe);function tk(e,t){return typeof e=="function"?e(...t):!!e}const WEe=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},UEe=e=>{Q.useEffect(()=>{e.clearReset()},[e])},VEe=({result:e,errorResetBoundary:t,useErrorBoundary:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&tk(r,[e.error,n]),GEe=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.cacheTime=="number"&&(e.cacheTime=Math.max(e.cacheTime,1e3)))},qEe=(e,t)=>e.isLoading&&e.isFetching&&!t,YEe=(e,t,r)=>(e==null?void 0:e.suspense)&&qEe(t,r),XEe=(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 KEe(e,t){const r=ek({context:e.context}),n=BEe(),i=jEe(),a=r.defaultQueryOptions(e);a._optimisticResults=n?"isRestoring":"optimistic",a.onError&&(a.onError=qt.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=qt.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=qt.batchCalls(a.onSettled)),GEe(a),WEe(a,i),UEe(i);const[o]=Q.useState(()=>new t(r,a)),s=o.getOptimisticResult(a);if(ZO(Q.useCallback(u=>{const c=n?()=>{}:o.subscribe(qt.batchCalls(u));return o.updateResult(),c},[o,n]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),Q.useEffect(()=>{o.setOptions(a,{listeners:!1})},[a,o]),YEe(a,s,n))throw XEe(a,o,i);if(VEe({result:s,errorResetBoundary:i,useErrorBoundary:a.useErrorBoundary,query:o.getCurrentQuery()}))throw s.error;return a.notifyOnChangeProps?s:o.trackResult(s)}function rk(e,t,r){const n=Sl(e,t,r);return KEe(n,OEe)}const _v=()=>w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:w.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 ZEe(e){const t={};return{flatFilters:e.reduce((n,i)=>(N.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 nk(e,t,r){const n=t.filter(N.isCascadingFilter);return JEe(e,n).map(a=>{if(QEe(a)){const o=n.find(u=>u.config.guid===a.groupId);if(!o)throw new N.TranslatableError("errors.cascadingFilterOriginalNotFound");const s=r==null?void 0:r.shouldResetFiltersDeeperThanModified;return eMe(a,o,{shouldResetFiltersDeeperThanModified:s})}return a})}function QEe(e){return"groupId"in e}function JEe(e,t){const r=[];return e.forEach(n=>{const i=t.find(a=>a.filters.some(o=>N.getFilterCompareId(o)===N.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 eMe(e,t,r){const n=r!=null&&r.shouldResetFiltersDeeperThanModified?nMe(e.filters,e.previousFilters):e.filters,i=tMe(n,t.config.disabled);return N.cascading(n,{guid:t.config.guid,disabled:i})}function tMe(e,t){return e.some(n=>n.config.disabled!==t)?!t:t}function rMe(e,t,r){const{flatFilters:n,cascadingToPureFiltersMap:i}=ZEe(e);return{pureFilters:n,updateFilters:o=>{const s=nk(o,e,{shouldResetFiltersDeeperThanModified:!0});t(s)},pureFiltersIgnoringRules:iMe(r,i)}}function nMe(e,t){const r=e.reduce((n,i,a)=>{const o=t.find(s=>Gb(s,i));return o&&!SO(i,o)?a:n},-1);return r===-1?e:e.map((n,i)=>i>r?Zf(n):n)}function iMe(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 aMe=Ye.button`
701
+ color: ${({theme:e})=>{var t;return(t=e.chart)==null?void 0:t.textColor}};
702
+ background: none;
703
+ font-size: 13px;
704
+ border: none;
705
+ height: 26px;
706
+ padding: 0 6px 0 2px;
707
+ margin: 0 4px 0 4px;
708
+ border-radius: 4px;
709
+ cursor: pointer;
710
+ display: flex;
711
+ align-items: center;
712
+ justify-content: center;
713
+ &:hover {
714
+ background-color: rgba(247, 247, 247, 1);
715
+ }
716
+ `,oMe=Ye.span`
717
+ color: ${({theme:e})=>{var t;return(t=e.chart)==null?void 0:t.textColor}};
718
+ display: inline-block;
719
+ padding-top: 3px;
720
+ white-space: nowrap;
721
+ `,sMe=({onClick:e})=>{var n;const{themeSettings:t}=mt(),{t:r}=w.useTranslation();return w.jsxs(aMe,{onClick:e,theme:t,children:[w.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:w.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"})}),w.jsx(oMe,{theme:t,children:r("commonFilter.clearSelectionButton")})]})},fT={applyMode:ec.HIGHLIGHT,shouldAffectFilters:!0,ignoreFilters:{all:!1,ids:[]},forceApplyBackgroundFilters:!0};function lMe(e,t){return e==="table"?{applyMode:ec.FILTER,shouldAffectFilters:!1,ignoreFilters:w.merge(fT.ignoreFilters,t.ignoreFilters||{})}:w.merge(fT,t)}function uMe(e,t,r,n,i,a,o){const s={},u=lMe(r,i),{pureFilters:c,updateFilters:d,pureFiltersIgnoringRules:h}=rMe(e,t,u.ignoreFilters||{}),p=c.filter(E=>!E.config.disabled),m=gSe(p,h),v=Jf(r,n),g=u.shouldAffectFilters&&v.length,[b,C]=dMe(m,v,u.applyMode),x=u.forceApplyBackgroundFilters?N.mergeFilters(cMe(c),b):b;if(s.filters=x,s.highlights=C,s.onDataPointsSelected=(E,T)=>{const A=[];if(g){const R=Zx(r,n,E);R&&A.push(R);const D=Md(r,n,E),{filters:I,isSelection:H}=zm(D,c,!0),G=a(H?"commonFilter.selectMenuItem":"commonFilter.unselectMenuItem"),q=Qx(G,()=>{d(N.mergeFilters(c,I))});A.push(q)}A.length&&(o==null||o({id:yu.WIDGET_POINTS_CROSSFILTERING,position:{left:T.clientX,top:T.clientY},itemSections:A}))},s.onDataPointContextMenu=(E,T)=>{const A=[];if(g){const R=Zx(r,n,[E]);R&&A.push(R);const D=Md(r,n,[E]);if(!D.length)return;const{filters:I,isSelection:H}=zm(D,c,!0),G=a(H?"commonFilter.selectMenuItem":"commonFilter.unselectMenuItem"),q=Qx(G,()=>{d(N.mergeFilters(c,I))});A.push(q)}A.length&&(o==null||o({id:yu.WIDGET_POINTS_CROSSFILTERING,position:{left:T.clientX,top:T.clientY},itemSections:A}))},g){s.onDataPointClick=R=>{const D=Md(r,n,[R]),{filters:I}=zm(D,c);d(N.mergeFilters(c,I))};const E=p.filter(R=>v==null?void 0:v.some(D=>N.isMembersFilter(R)&&Zr(R.attribute,D)&&!Vb(R)&&!R.config.locked)),T=!!E.length,A=()=>{const R=E.map(Zf);d(N.mergeFilters(c,R))};T&&(s.renderToolbar=(R,D)=>{const I=v.map(({expression:H})=>H).join(";");return w.jsxs("div",{style:{display:"flex"},children:[w.jsx(sMe,{onClick:A}),D]},I)})}return s}function cMe(e){return e.map(t=>{var r;return(r=t.config)==null?void 0:r.backgroundFilter}).filter(t=>!!t)}function dMe(e,t,r){if(r===ec.HIGHLIGHT){const[n,i]=Ju(e,o=>t.every(s=>!Zr(s,o.attribute))),a=i.filter(o=>!Vb(o));return[n,a]}return[e,[]]}function hMe(e,t){const r=k.useRef(void 0),[n,i]=Ub(k.useMemo(()=>N.splitFiltersAndRelations(e),[e]),{onLocalStateChange:k.useCallback(m=>{const{filters:v,relations:g}=m;if(t){const b=N.combineFiltersAndRelations(v,g);N.isEqual(r.current,b)||(r.current=b,t(b))}},[t])}),{filters:a,relations:o}=n,s=k.useMemo(()=>N.combineFiltersAndRelations(a,o),[a,o]),u=k.useCallback(m=>{if(N.isFilterRelations(m)){const{filters:v,relations:g}=N.splitFiltersAndRelations(m);i({filters:v||[],relations:g||null})}else i({filters:m,relations:null})},[i]),c=k.useCallback(m=>{const v=N.mergeFilters(a,[m]);i({filters:v,relations:N.calculateNewRelations(a,o,v)})},[a,o,i]),d=k.useCallback(m=>{i({filters:m,relations:N.calculateNewRelations(a,o,m)})},[a,o,i]),h=k.useMemo(()=>a.some(m=>N.isCascadingFilter(m)),[a]),p=k.useCallback(m=>{if(!o)return m;const v=h?nk(m,a):m,g=N.calculateNewRelations(a,o,v,{shouldReplaceSameAttributeFilters:!0});return N.combineFiltersAndRelations(v,g)},[h,a,o]);return{regularFilters:a,addFilter:c,filtersOrFilterRelations:s,setFiltersOrFilterRelations:u,setFilters:d,applyRelationsToOtherFilters:p}}const fMe=({initialFilters:e=[],openMenu:t,onBeforeMenuOpen:r,onFiltersChange:n}={})=>{const{t:i}=w.useTranslation(),{filtersOrFilterRelations:a,regularFilters:o,addFilter:s,setFiltersOrFilterRelations:u,setFilters:c,applyRelationsToOtherFilters:d}=hMe(e,n),h=k.useCallback((p,m={})=>{if(w.isTextWidgetProps(p))return p;const v=w.getInternalWidgetType(p),g=p,b=N.cloneDeep(p),C=vSe(p),x=uMe(o,c,v,C,m,i,t);return b.highlights=N.mergeFilters(x.highlights,g.highlights),b.onBeforeMenuOpen=r,b.filters=d(N.mergeFilters(x.filters,N.getFiltersArray(g.filters))),x.onDataPointClick&&w.registerDataPointClickHandler(b,x.onDataPointClick),x.onDataPointsSelected&&w.registerDataPointsSelectedHandler(b,x.onDataPointsSelected),x.onDataPointContextMenu&&w.registerDataPointContextMenuHandler(b,x.onDataPointContextMenu),x.renderToolbar&&w.registerRenderToolbarHandler(b,x.renderToolbar),b},[o,c,i,t,r,d]);return{filters:a,setFilters:u,addFilter:s,connectToWidgetProps:h}},pMe=e=>w.jsx("svg",B(M({width:"24",height:"24",viewBox:"15 15 18 18",fill:"none"},e),{children:w.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"})})),mMe=e=>w.jsx("svg",B(M({width:"24",height:"24",viewBox:"15 20 18 18",fill:"none"},e),{children:w.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"})})),gMe=6e4,vMe=85,yMe=100,bMe=(e,t)=>e===!0&&t==="sisense_managed";function _Me(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 ik=(e={})=>{var m,v;const{enabled:t,warningThreshold:r=vMe,exceededThreshold:n=yMe}=e,{app:i}=_t(),a=i==null?void 0:i.httpClient,o=(v=(m=i==null?void 0:i.settings)==null?void 0:m.serverFeatures)==null?void 0:v.aiAssistant,u=bMe(o==null?void 0:o.quotaNotification,o==null?void 0:o.featureModelType)&&(t!=null?t:!0),{data:c,isLoading:d,error:h}=rk({queryKey:["creditBalance"],queryFn:()=>Vt(exports,null,function*(){if(!a)throw new N.TranslatableError("errors.httpClientNotFound");const g=yield a.call(a.url+"api/v1/credits/get-balance",{method:"GET"});if(!g)throw new N.TranslatableError("ai.errors.failedToFetchCreditBalance");return g}),enabled:!!a&&u,refetchInterval:gMe}),p=k.useMemo(()=>c?_Me(c,r,n):null,[c,r,n]);return{enabled:u,quotaState:p,isLoading:d,error:h}},Um="csdk-quota-warning-dismissed";function wMe(){const[e,t]=k.useState(()=>{if(typeof window=="undefined")return!1;try{return sessionStorage.getItem(Um)==="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(Um,"true"):sessionStorage.removeItem(Um)}catch(i){console.debug("[useQuotaWarningDismissed] sessionStorage setItem/removeItem failed:",i)}},[]);return[e,r]}const CMe="_alert_31zyt_1",xMe="_hasIcon_31zyt_18",TMe="_error_31zyt_22",SMe="_icon_31zyt_27",EMe="_warning_31zyt_38",MMe="_info_31zyt_54",AMe="_content_31zyt_77",PMe="_title_31zyt_83",RMe="_description_31zyt_89",OMe="_dismissButton_31zyt_95",yi={alert:CMe,hasIcon:xMe,error:TMe,icon:SMe,warning:EMe,info:MMe,content:AMe,title:PMe,description:RMe,dismissButton:OMe},pT=({variant:e="info",title:t,description:r,icon:n,dismissible:i=!1,onDismiss:a,dismissOnClick:o=!1,className:s=""})=>{const u=n||w.jsx($R,{width:"16",height:"16"}),{themeSettings:c}=mt(),d=c.general.backgroundColor,h=w.getDarkFactor(w.toColor(d))>.5,p=()=>{a==null||a()},m=C=>{(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),p())},v=o&&i&&a,g=w.jsxs(w.Fragment,{children:[w.jsx("div",{className:yi.icon,children:u}),w.jsxs("div",B(M({className:yi.content},v&&{role:"alert"}),{children:[t&&w.jsx("div",{className:yi.title,children:t}),r&&w.jsx("div",{className:yi.description,children:r})]})),i&&a&&(v?w.jsx("span",{className:yi.dismissButton,"aria-hidden":!0,children:w.jsx(_v,{})}):w.jsx("button",{type:"button",className:yi.dismissButton,onClick:C=>{C.stopPropagation(),p()},onKeyDown:m,"aria-label":"Dismiss alert",children:w.jsx(_v,{})}))]}),b={"data-dark-mode":h,"data-dismiss-on-click":v?"true":void 0,className:`${yi.alert} ${yi[e]} ${yi.hasIcon} ${s}`};return v?w.jsx("button",B(M({type:"button"},b),{onClick:p,onKeyDown:m,"aria-label":"Dismiss alert",children:g})):w.jsx("div",B(M({role:"alert"},b),{children:g}))},kMe="_container_1cvt1_1",DMe="_containerClickable_1cvt1_8",NMe="_bannerWrapper_1cvt1_12",fl={container:kMe,containerClickable:DMe,bannerWrapper:NMe};function IMe({className:e="",warningDismissed:t,onDismissWarning:r,enabled:n=!0,warningThreshold:i,exceededThreshold:a}={}){const{t:o}=w.useTranslation(),{enabled:s,quotaState:u,isLoading:c}=ik({enabled:n,warningThreshold:i,exceededThreshold:a}),[d,h]=wMe(),p=t!==void 0?t:d,m=()=>{r?(r(),t===void 0&&h(!0)):h(!0)};return!s||c||!u?null:u.isExceeded?w.jsx("div",{className:`${fl.container} ${e}`,children:w.jsx("div",{className:fl.bannerWrapper,"data-variant":"error",children:w.jsx(pT,{variant:"error",icon:w.jsx(mMe,{width:"16",height:"16"}),title:o("ai.quota.exceededErrorTitle"),description:o("ai.quota.exceededErrorDescription"),dismissible:!1})})}):u.isWarning&&!p?w.jsx("div",{className:`${fl.container} ${fl.containerClickable} ${e}`,children:w.jsx("div",{className:fl.bannerWrapper,"data-variant":"warning",children:w.jsx(pT,{variant:"warning",icon:w.jsx(pMe,{width:"16",height:"16"}),description:o("ai.quota.warningDescription",{usagePercentage:Math.round(u.usagePercentage)}),dismissible:!0,dismissOnClick:!0,onDismiss:m})})}):null}const wv="ComposeSDK";function ak(e){return B(M({},e),{jaql:B(M({},e.jaql),{by:wv})})}const LMe="api/v2/ai/narrative",ok="api/v2/ai/nlg/queryResult";function FMe(e){return"status"in e}function $Me(e){return typeof e!="object"||e===null?!1:FMe(e)&&e.status==="404"}function BMe(e,t){return Vt(this,null,function*(){const r=ak(t);try{return yield e.post(LMe,r)}catch(n){if(!$Me(n))throw n;return yield e.post(ok,r)}})}function HMe(e,t,r){return Vt(this,null,function*(){const{isUnified:n=!1,isSisenseAiEnabled:i=!1}=r!=null?r:{};return n&&i?BMe(e,t):yield e.post(ok,ak(t))})}function o1(e){var s,u;if("jaql"in e)return B(M({},e),{jaql:B(M({},e.jaql),{by:wv})});const t=N.convertJaqlDataSource(e.dataSource),{filters:r=[],relations:n}=N.getFilterListAndRelationsJaql(e.filters),{metadata:i,filterRelations:a}=N.getJaqlQueryPayload({dataSource:e.dataSource,attributes:(s=e.dimensions)!=null?s:[],measures:(u=e.measures)!=null?u:[],filters:r,filterRelations:n,highlights:[]},!0),o={jaql:{datasource:t,metadata:i,filterRelations:a,by:wv}};return e.verbosity&&(o.verbosity=e.verbosity),o}const zMe=o1;function sk(e,t,r){const n=e.map(N.toDimensionQueryAdaptItem),i=t.map(N.toMeasureQueryAdaptItem);return{dimensions:N.adaptDimensionsForQuery(n),measures:N.adaptMeasuresForQuery(i,r)}}function jMe(e){const t=[],r=[];for(const n of e)w.isMeasureColumn(n)?r.push(n):t.push(n);return{dimensionColumns:t,measureColumns:r}}function WMe(e,t,r){const n=vA(t,e),i=J3(t,n),a=mA(i,t);return sk(tA(a,t),rA(a,t),r)}function UMe(e,t){const r=_f(e),{dimensionColumns:n,measureColumns:i}=jMe(r.columns);return sk(n,i,t)}function lk(e,t,r,n=!1){const{dataSource:i,dataOptions:a,chartType:o,filters:s}=e,u=i!=null?i:t;if(!u)throw new Error("dataSource is required. Provide it in ChartWidgetProps or as defaultDataSource parameter.");const c={ignoreTrendAndForecast:n},{dimensions:d,measures:h}=N.isTable(o)?UMe(a,c):WMe(a,o,c);return{dataSource:u,dimensions:d,measures:h,filters:s,verbosity:r}}function VMe(e,t,r,n=!1){var C,x,E;const i=(C=e.dataSource)!=null?C:t;if(!i)throw new Error("dataSource is required. Provide it in pivot widget props or as defaultDataSource parameter.");const a=n&&e.dataOptions.values?B(M({},e.dataOptions),{values:e.dataOptions.values.map(T=>w.isMeasureColumn(T)&&("trend"in T||"forecast"in T)?N.omit(T,["trend","forecast"]):T)}):e.dataOptions,o=nA(a),{rows:s,columns:u,values:c,grandTotals:d}=Kb(o),{filters:h=[],relations:p}=N.getFilterListAndRelationsJaql((x=e.filters)!=null?x:[]),m=h.map(T=>w.safeCombine(T,{isScope:!0})),v=((E=e.highlights)!=null?E:[]).map(T=>w.safeCombine(T,{isScope:!0})),g={dataSource:i,rowsAttributes:s!=null?s:[],columnsAttributes:u!=null?u:[],measures:c!=null?c:[],grandTotals:M(M({},N.DEFAULT_PIVOT_GRAND_TOTALS),d!=null?d:{}),filters:m,filterRelations:p,highlights:v};eM(g);const b=N.getPivotJaqlQueryPayload(g,!1);return o1({jaql:b,verbosity:r})}const GMe=lk,qMe=()=>{const[e,t]=k.useState(!1),r=k.useRef(null),n=k.useCallback(()=>{t(!0)},[]),i=k.useCallback(()=>{t(!1)},[]);return[k.useCallback(o=>{var s;((s=r.current)==null?void 0:s.nodeType)===Node.ELEMENT_NODE&&(r.current.removeEventListener("mouseenter",n),r.current.removeEventListener("mouseleave",i)),(o==null?void 0:o.nodeType)===Node.ELEMENT_NODE&&(o.addEventListener("mouseenter",n),o.addEventListener("mouseleave",i)),r.current=o},[n,i]),e]};exports.AlertIcon=$R;exports.ArrowIcon=pg;exports.Backdrop=ty;exports.BaseAuthenticator=Pu;exports.BearerAuthenticator=T8;exports.Button=bu;exports.ButtonBase=Ua;exports.CONTEXT_MENU_SELECTED_WITH_DOT_CLASS=w5;exports.Chart=RR;exports.ChartWidget=mEe;exports.CloseIcon=_v;exports.CommonFiltersApplyMode=ec;exports.ContextMenu=pS;exports.DEFAULT_HYPERLINK_COLOR=qv;exports.DEFAULT_PIVOT_TABLE_SIZE=aS;exports.DEFAULT_TABLE_ROWS_PER_PAGE=TR;exports.DEFAULT_WIDGET_HEADER_HEIGHT=iS;exports.DatePeriod=qM;exports.DimensionalQueryClient=N7;exports.DoubleArrowIcon=mg;exports.DrilldownBreadcrumbs=DO;exports.DynamicSizeContainer=Nh;exports.EVENT_DATA_CELL_FORMAT=pE;exports.EVENT_HEADER_CELL_FORMAT=d0;exports.ElementStates=PS;exports.EmotionCacheProvider=bS;exports.ErrorBoundary=lv;exports.ErrorBoundary$1=cS;exports.ErrorBoundaryBox=Xv;exports.ExclamationMarkIcon=uS;exports.Fade=ey;exports.I18nProvider=sS;exports.IconButton=za;exports.LEGACY_DESIGN_TYPES=yl;exports.List=Qv;exports.ListContext=Wl;exports.LoadingDots=_S;exports.LoadingOverlay=Wi;exports.Menu=Bh;exports.MenuButton=cO;exports.MenuIds=yu;exports.MenuItem=Fh;exports.MenuList=Jv;exports.MenuProvider=mS;exports.MenuSectionIds=us;exports.Modal=ry;exports.ModalProvider=gS;exports.NoResultsOverlay=sy;exports.PAGES_BATCH_SIZE=SR;exports.PanelType=He;exports.Paper=$h;exports.PasswordAuthenticator=$8;exports.PivotQueryClient=GE;exports.Popover=ay;exports.Popper=qu;exports.PropTypes=_;exports.QueryClient=REe;exports.QueryClientProvider=FEe;exports.QuotaNotification=IMe;exports.RestApi=Wy;exports.RestApiNotReadyError=SQ;exports.SisenseContext=Iv;exports.SsoAuthenticator=P8;exports.Subscribable=Ls;exports.TableComponent=ER;exports.ThemeContext=Yv;exports.ThemeProvider=RS;exports.ThreeDotsIcon=uO;exports.Tooltip=xf;exports.Transition=Rn;exports.Typography=qr;exports.UserType=tr;exports.WatAuthenticator=O8;exports.WidgetContainer=pO;exports.WidgetMenuButton=hO;exports.WidgetSpaceAround=t1;exports._extends=Hl;exports._typeof=Kd;exports.addQueryParamsToUrl=jE;exports.alpha=Rt;exports.appendHeaders=Kh;exports.applyDrilldownDimensionToPivot=CO;exports.asSisenseComponent=Eu;exports.basePickBy=kS;exports.baseUniq=tb;exports.boxWhiskerProcessResult=sie;exports.camelCase=eO;exports.capitalize=Le;exports.classNames=uu;exports.clearMembersFilter=Zf;exports.cloneFilter=kR;exports.cloneFilterAndToggleDisabled=FCe;exports.clsx=je;exports.composeClasses=Dt;exports.convertChartWidgetPropsToNarrativeParams=lk;exports.convertChartWidgetPropsToUseGetNlgInsightsParams=GMe;exports.convertPivotWidgetPropsToNarrativeRequest=VMe;exports.convertToThemeSettings=SS;exports.createCaseFirst=BR;exports.createChainedFunction=Zm;exports.createFormatter=mr;exports.createHeaderCellValueFormatter=fQ;exports.createLevelAttribute=a3;exports.createPanelColorFormat=$7;exports.createSimplePaletteValueFilter=ea;exports.createStyled=NT;exports.createSvgIcon=fs;exports.createTheme=Oh;exports.createUnarySpacing=Th;exports.createValueColorOptions=tM;exports.createValueToColorMap=rM;exports.createValueToColorMultiColumnsMap=B7;exports.css=Rh;exports.darken=gh;exports.dataLoadStateReducer=Qf;exports.debounce=IR;exports.deepmerge=Dr;exports.defaultDateConfig=$u;exports.duration=GT;exports.elementAcceptingRef=Wa;exports.elementTypeAcceptingRef=bh;exports.errorInterceptor=Zh;exports.exactProp=Mv;exports.extendSxProp=ET;exports.formatDateValue=Bu;exports.formatDatetimeString=jy;exports.generateAttributeName=i3;exports.generateUtilityClass=yt;exports.generateUtilityClasses=bt;exports.getAvailableDrilldownPaths=ch;exports.getBaseDateFnsLocale=Fu;exports.getChartDefaultSize=Ih;exports.getDataOptionByLocation=_O;exports.getDataPointMetadata=Je;exports.getDefaultDateMask=cQ;exports.getDefaultOptions=Fy;exports.getDefaultState=KO;exports.getDefaultThemeSettings=Id;exports.getDrilldownMenuItems=HO;exports.getHierarchyModels=zO;exports.getInitialDimensionLocation=wO;exports.getLegacyPalette=AS;exports.getListItemTextUtilityClass=y4;exports.getNarrative=HMe;exports.getNumberFormatConfig=t3;exports.getPaletteName=ES;exports.getPivotDataOptionByJaqlIndex=e3;exports.getPivotDataOptionIdByJaqlIndex=dQ;exports.getPivotQueryOptions=Kb;exports.getReactElementRef=hs;exports.getResponseInterceptor=L8;exports.getSelectedDrilldownAttributes=dh;exports.getSelectionTitleMenuItem=BO;exports.getTableAttributesAndMeasures=ib;exports.getThemeSettingsByOid=MS;exports.getTransitionProps=Ul;exports.getTranslatedDataOptions=yA;exports.getValue=ds;exports.getWidgetDefaultSize=oS;exports.handleBreakpoints=ti;exports.headerMenuUtils=Zxe;exports.isAuthTokenPending=C8;exports.isDrilldownApplicableToPivot=mSe;exports.isFiltersChanged=ls;exports.isPropValid=MT;exports.isSameAttribute=Zr;exports.isSsoAuthenticator=Ey;exports.isString=df;exports.isThemeOid=cd;exports.lighten=vh;exports.listItemTextClasses=n0;exports.locale=dg;exports.memoTheme=$t;exports.mergeBreakpointsInOrder=YD;exports.newStyled=Ye;exports.normalizeUrl=ja;exports.notifyManager=qt;exports.ownerDocument=Qr;exports.parseDataTableDateValue=jZ;exports.parseMutationArgs=vEe;exports.partition=Ju;exports.prepareGetNlgInsightsPayload=zMe;exports.prepareNarrativeRequest=o1;exports.preparePivotRowsSortCriteriaList=JCe;exports.processDrilldownSelections=LO;exports.refType=cs;exports.resolveBreakpointValues=KD;exports.resolveProps=zl;exports.rootShouldForwardProp=Su;exports.shallowEqualObjects=hh;exports.shouldSkipSisenseContextWaiting=PR;exports.shouldThrowError=tk;exports.startOfPeriod=zZ;exports.startOfUTCWeek=cg;exports.styled=Ne;exports.toDate=rn;exports.trackHook=jCe;exports.translatePivotTableDataOptions=nA;exports.translateTableDataOptions=_f;exports.typographyClasses=f4;exports.updateDrilldownSelections=IO;exports.upperFirst=HR;exports.useCommonFilters=fMe;exports.useControlled=xv;exports.useCsvQueryFileLoader=vO;exports.useDebouncedValue=LR;exports.useDefaultProps=Mt;exports.useDrilldown=$O;exports.useDrilldownCore=NO;exports.useEnhancedEffect=Mn;exports.useEventCallback=Kn;exports.useExecuteCsvQuery=eSe;exports.useExecuteCsvQueryInternal=r1;exports.useExecutePivotQuery=qCe;exports.useExecutePivotQueryInternal=Xb;exports.useForkRef=gr;exports.useFormControl=aO;exports.useHasChanged=Qu;exports.useHover=qMe;exports.useId=kh;exports.useMenu=e1;exports.useModalContext=Hh;exports.usePivotTableQuery=rxe;exports.usePrevious=cf;exports.useQuery=rk;exports.useQueryClient=ek;exports.useQueryParamsChanged=gO;exports.useQuotaNotification=ik;exports.useRestApi=r3;exports.useSetError=rb;exports.useShouldLoad=Yb;exports.useSisenseContext=_t;exports.useSlot=lr;exports.useSyncExternalStore=ZO;exports.useSyncedDrilldownPathsManager=jO;exports.useSyncedState=Ub;exports.useTheme=Tu;exports.useTheme$1=Ev;exports.useThemeContext=mt;exports.useTimeout=Ta;exports.useWidgetHeaderManagement=nO;exports.useWithCsvDownloadMenuItem=yO;exports.validateUrl=x8;exports.withErrorBoundary=dS;exports.withHeaderMenuItem=rO;exports.withTracking=qb;exports.withTracking$1=TS;