@corpsmap/corpsmap 4.0.36 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (337) hide show
  1. package/README.md +33 -0
  2. package/dist/corpsmap.css +1 -0
  3. package/dist/corpsmap.es.js +63856 -0
  4. package/dist/corpsmap.umd.js +384 -0
  5. package/dist/vite.svg +1 -0
  6. package/package.json +74 -32
  7. package/src/App.css +42 -0
  8. package/src/application-bundles/_create-container-bundle.js +102 -0
  9. package/src/application-bundles/api-bundle.js +76 -0
  10. package/src/application-bundles/basic-toolbar-bundle.js +57 -0
  11. package/src/application-bundles/config-bundle.js +38 -0
  12. package/src/application-bundles/create-ol-map-bundle.jsx +278 -0
  13. package/src/application-bundles/export-bundle.js +125 -0
  14. package/src/application-bundles/identify-bundle.js +119 -0
  15. package/src/application-bundles/index.js +53 -0
  16. package/src/application-bundles/map-basemap-bundle.js +73 -0
  17. package/src/application-bundles/map-core-bundle.js +25 -0
  18. package/src/application-bundles/map-drawing-bundle.js +120 -0
  19. package/src/application-bundles/map-interaction-bundle.js +50 -0
  20. package/src/application-bundles/map-layers-bundle.js +816 -0
  21. package/src/application-bundles/map-proj-bundle.js +144 -0
  22. package/src/application-bundles/map-view-bundle.jsx +334 -0
  23. package/src/application-bundles/modal-window-bundle.js +5 -0
  24. package/src/application-bundles/notification-bundle.js +56 -0
  25. package/src/application-bundles/plugin-bundle.js +180 -0
  26. package/src/application-bundles/primary-panel-bundle.js +85 -0
  27. package/src/application-bundles/search-bundle.js +122 -0
  28. package/src/application-bundles/south-region-bundle.js +96 -0
  29. package/src/application-bundles/theme-bundle.js +45 -0
  30. package/src/application-bundles/vertical-layout-bundle.js +88 -0
  31. package/src/application-bundles/viewport-bundle.js +43 -0
  32. package/src/application-bundles/window-location-bundle.js +90 -0
  33. package/src/application-containers/basic-toolbar.jsx +24 -0
  34. package/src/application-containers/corpsmap.jsx +91 -0
  35. package/src/application-containers/left-sidebar.jsx +43 -0
  36. package/src/application-containers/lower-right-toolbar.jsx +29 -0
  37. package/src/application-containers/map.jsx +57 -0
  38. package/src/application-containers/modal-window.jsx +34 -0
  39. package/src/application-containers/north-region.jsx +26 -0
  40. package/src/application-containers/notification-pane.jsx +37 -0
  41. package/src/application-containers/notification-quadrant.jsx +20 -0
  42. package/src/application-containers/notification.jsx +91 -0
  43. package/src/application-containers/primary-panel.jsx +94 -0
  44. package/src/application-containers/right-sidebar.jsx +44 -0
  45. package/src/application-containers/south-region-tab.jsx +60 -0
  46. package/src/application-containers/south-region.jsx +75 -0
  47. package/src/application-containers/upper-right-toolbar.jsx +28 -0
  48. package/src/application-controls/basic-toolbar-button.jsx +124 -0
  49. package/src/application-controls/basic-toolbar-menu-divider.jsx +11 -0
  50. package/src/application-controls/basic-toolbar-menu-item.jsx +91 -0
  51. package/src/application-controls/basic-toolbar-menu-up.jsx +13 -0
  52. package/src/application-controls/basic-toolbar-menu.jsx +13 -0
  53. package/src/application-controls/basic-toolbar-submenu.jsx +14 -0
  54. package/src/application-controls/index.jsx +35 -0
  55. package/src/application-controls/loading-indicator.jsx +19 -0
  56. package/src/application-controls/search-input.jsx +55 -0
  57. package/src/application-controls/search-results-list-item.jsx +50 -0
  58. package/src/application-controls/search-results-list.jsx +19 -0
  59. package/src/application-controls/sidebar-button.jsx +69 -0
  60. package/src/application-controls/sidebar-panel-opener.jsx +63 -0
  61. package/src/application-controls/tree-list-folder.jsx +46 -0
  62. package/src/application-controls/tree-list-item.jsx +83 -0
  63. package/src/application-controls/tree-list.jsx +35 -0
  64. package/src/application-controls/tree-view.jsx +42 -0
  65. package/src/application-exports/map-provider.jsx +122 -0
  66. package/src/assets/react.svg +1 -0
  67. package/src/config/default-config.js +593 -0
  68. package/src/core-plugins/add-data/add-data-button.jsx +34 -0
  69. package/src/core-plugins/add-data/add-geojson.jsx +47 -0
  70. package/src/core-plugins/add-data/add-kmlfile.jsx +46 -0
  71. package/src/core-plugins/add-data/add-shapefile.jsx +47 -0
  72. package/src/core-plugins/add-data/bundle.js +226 -0
  73. package/src/core-plugins/add-data/index.js +15 -0
  74. package/src/core-plugins/basemap-switcher/basemap-switcher-button.jsx +18 -0
  75. package/src/core-plugins/basemap-switcher/basemap-switcher-list-item.jsx +48 -0
  76. package/src/core-plugins/basemap-switcher/basemap-switcher-list.jsx +37 -0
  77. package/src/core-plugins/basemap-switcher/index.js +13 -0
  78. package/src/core-plugins/bookmarks/bookmark-button.jsx +18 -0
  79. package/src/core-plugins/bookmarks/bookmark-list-item.jsx +79 -0
  80. package/src/core-plugins/bookmarks/bookmark-list.jsx +31 -0
  81. package/src/core-plugins/bookmarks/bookmark-panel.jsx +191 -0
  82. package/src/core-plugins/bookmarks/bundle.js +92 -0
  83. package/src/core-plugins/bookmarks/index.js +15 -0
  84. package/src/core-plugins/catalog/bundle.js +109 -0
  85. package/src/core-plugins/catalog/catalog-button.jsx +33 -0
  86. package/src/core-plugins/catalog/catalog-error-item.jsx +14 -0
  87. package/src/core-plugins/catalog/catalog-list-item-loader.jsx +12 -0
  88. package/src/core-plugins/catalog/catalog-list-item.jsx +118 -0
  89. package/src/core-plugins/catalog/catalog-list.jsx +78 -0
  90. package/src/core-plugins/catalog/catalog-modal-window.jsx +100 -0
  91. package/src/core-plugins/catalog/index.js +15 -0
  92. package/src/core-plugins/change-log/bundle.js +180 -0
  93. package/src/core-plugins/change-log/change-log-button.jsx +40 -0
  94. package/src/core-plugins/change-log/change-log-modal.jsx +190 -0
  95. package/src/core-plugins/change-log/index.js +15 -0
  96. package/src/core-plugins/change-log/select-district.jsx +73 -0
  97. package/src/core-plugins/contact-form/bundle.js +239 -0
  98. package/src/core-plugins/contact-form/index.js +17 -0
  99. package/src/core-plugins/contact-form/question-button.jsx +36 -0
  100. package/src/core-plugins/contact-form/question-modal.jsx +215 -0
  101. package/src/core-plugins/coordinate-display/bundle.jsx +269 -0
  102. package/src/core-plugins/coordinate-display/coordinate-display-bar.jsx +66 -0
  103. package/src/core-plugins/coordinate-display/coordinate-display-proj-item.jsx +60 -0
  104. package/src/core-plugins/coordinate-display/coordinate-display-settings.jsx +173 -0
  105. package/src/core-plugins/coordinate-display/coordinate-interaction-bar.jsx +60 -0
  106. package/src/core-plugins/coordinate-display/coordinate-lat-lon-input.jsx +35 -0
  107. package/src/core-plugins/coordinate-display/coordinate-popup.jsx +27 -0
  108. package/src/core-plugins/coordinate-display/index.js +20 -0
  109. package/src/core-plugins/draw-tools/create-draw-bundle.js +242 -0
  110. package/src/core-plugins/draw-tools/draw-button.jsx +204 -0
  111. package/src/core-plugins/draw-tools/draw-label-bundle.js +116 -0
  112. package/src/core-plugins/draw-tools/draw-modify-bundle.js +156 -0
  113. package/src/core-plugins/draw-tools/draw-save-bundle.jsx +181 -0
  114. package/src/core-plugins/draw-tools/draw-styles.js +110 -0
  115. package/src/core-plugins/draw-tools/draw-tool-item.jsx +67 -0
  116. package/src/core-plugins/draw-tools/index.js +34 -0
  117. package/src/core-plugins/editor/bundle.js +472 -0
  118. package/src/core-plugins/editor/date-editor.js +63 -0
  119. package/src/core-plugins/editor/date-formatter.js +17 -0
  120. package/src/core-plugins/editor/editor-base.js +29 -0
  121. package/src/core-plugins/editor/editor-button.js +224 -0
  122. package/src/core-plugins/editor/editor-table.js +151 -0
  123. package/src/core-plugins/editor/index.js +15 -0
  124. package/src/core-plugins/editor/number-editor.js +57 -0
  125. package/src/core-plugins/editor/string-editor.js +42 -0
  126. package/src/core-plugins/geocoder/bundle.jsx +186 -0
  127. package/src/core-plugins/geocoder/index.js +15 -0
  128. package/src/core-plugins/geocoder/overlay.jsx +30 -0
  129. package/src/core-plugins/geocoder/search-bar.js copy.save +123 -0
  130. package/src/core-plugins/geocoder/search-bar.jsx +121 -0
  131. package/src/core-plugins/identify/bundle.jsx +709 -0
  132. package/src/core-plugins/identify/identify-buffer-section.jsx +52 -0
  133. package/src/core-plugins/identify/identify-buffer-settings.jsx +48 -0
  134. package/src/core-plugins/identify/identify-button.jsx +100 -0
  135. package/src/core-plugins/identify/identify-details-table.jsx +121 -0
  136. package/src/core-plugins/identify/identify-details.js +69 -0
  137. package/src/core-plugins/identify/identify-popup.jsx +136 -0
  138. package/src/core-plugins/identify/identify-sidebar-list-item.jsx +106 -0
  139. package/src/core-plugins/identify/identify-sidebar-list.jsx +63 -0
  140. package/src/core-plugins/identify/identify-sidebar.jsx +103 -0
  141. package/src/core-plugins/identify/identify-table-cell.jsx +49 -0
  142. package/src/core-plugins/identify/identify-table.jsx +319 -0
  143. package/src/core-plugins/identify/index.js +27 -0
  144. package/src/core-plugins/identify/listeners/arcgis.js +158 -0
  145. package/src/core-plugins/identify/listeners/geojson.jsx +164 -0
  146. package/src/core-plugins/identify/listeners/raster.js +89 -0
  147. package/src/core-plugins/identify/listeners/vector.jsx +106 -0
  148. package/src/core-plugins/identify-arcgis-rest/bundle.js +169 -0
  149. package/src/core-plugins/identify-arcgis-rest/index.js +10 -0
  150. package/src/core-plugins/identify-cm/bundle.js +82 -0
  151. package/src/core-plugins/identify-cm/index.js +10 -0
  152. package/src/core-plugins/identify-geojson/bundle.js +164 -0
  153. package/src/core-plugins/identify-geojson/index.js +10 -0
  154. package/src/core-plugins/identify-raster/bundle.js +89 -0
  155. package/src/core-plugins/identify-raster/index.js +10 -0
  156. package/src/core-plugins/identify-vector/bundle.jsx +135 -0
  157. package/src/core-plugins/identify-vector/index.js +10 -0
  158. package/src/core-plugins/identify-wms/bundle.js +138 -0
  159. package/src/core-plugins/identify-wms/index.js +10 -0
  160. package/src/core-plugins/legend/bundle.js +1044 -0
  161. package/src/core-plugins/legend/index.js +17 -0
  162. package/src/core-plugins/legend/legend-button.jsx +18 -0
  163. package/src/core-plugins/legend/legend-header.jsx +43 -0
  164. package/src/core-plugins/legend/legend-item-multiple.jsx +32 -0
  165. package/src/core-plugins/legend/legend-item.jsx +20 -0
  166. package/src/core-plugins/legend/legend-panel.jsx +73 -0
  167. package/src/core-plugins/login/index.js +13 -0
  168. package/src/core-plugins/login/login-button.jsx +49 -0
  169. package/src/core-plugins/map-loading-indicator/bundle.js +31 -0
  170. package/src/core-plugins/map-loading-indicator/index.js +17 -0
  171. package/src/core-plugins/map-loading-indicator/loading-indicator.jsx +30 -0
  172. package/src/core-plugins/measure-tools/bundle.js +286 -0
  173. package/src/core-plugins/measure-tools/index.js +15 -0
  174. package/src/core-plugins/measure-tools/measure-options.jsx +89 -0
  175. package/src/core-plugins/measure-tools/measure-tools-button.jsx +129 -0
  176. package/src/core-plugins/measure-tools/measure-utils.js +76 -0
  177. package/src/core-plugins/permalink/bundle.js +57 -0
  178. package/src/core-plugins/permalink/index.js +15 -0
  179. package/src/core-plugins/permalink/permalink-button.jsx +38 -0
  180. package/src/core-plugins/permalink/permalink-modal.jsx +67 -0
  181. package/src/core-plugins/print-map/bundle.jsx +316 -0
  182. package/src/core-plugins/print-map/button.jsx +17 -0
  183. package/src/core-plugins/print-map/index.js +17 -0
  184. package/src/core-plugins/resources/bundle.js +96 -0
  185. package/src/core-plugins/resources/index.js +15 -0
  186. package/src/core-plugins/resources/resources-button.jsx +40 -0
  187. package/src/core-plugins/resources/resources-modal.jsx +151 -0
  188. package/src/core-plugins/rotate-north/index.js +13 -0
  189. package/src/core-plugins/rotate-north/rotate-north-button.jsx +38 -0
  190. package/src/core-plugins/theme-switcher/bundle.js +16 -0
  191. package/src/core-plugins/theme-switcher/index.js +15 -0
  192. package/src/core-plugins/theme-switcher/theme-list-item.jsx +25 -0
  193. package/src/core-plugins/theme-switcher/theme-list.jsx +28 -0
  194. package/src/core-plugins/theme-switcher/theme-switcher-button.jsx +18 -0
  195. package/src/core-plugins/theme-switcher/themes.js +121 -0
  196. package/src/core-plugins/three-d/index.js +13 -0
  197. package/src/core-plugins/three-d/three-d-button.jsx +44 -0
  198. package/src/core-plugins/tree-view/boundary-drop-target.jsx +42 -0
  199. package/src/core-plugins/tree-view/bundle.js +513 -0
  200. package/src/core-plugins/tree-view/dataset-info-modal.jsx +141 -0
  201. package/src/core-plugins/tree-view/dataset-legend.jsx +122 -0
  202. package/src/core-plugins/tree-view/defaults-container.jsx +27 -0
  203. package/src/core-plugins/tree-view/download-bundle.js +156 -0
  204. package/src/core-plugins/tree-view/favorites-container.jsx +27 -0
  205. package/src/core-plugins/tree-view/index.js +25 -0
  206. package/src/core-plugins/tree-view/layer-subpanel/defaults-toggle.jsx +28 -0
  207. package/src/core-plugins/tree-view/layer-subpanel/download-layer.jsx +54 -0
  208. package/src/core-plugins/tree-view/layer-subpanel/favorites-toggle.jsx +28 -0
  209. package/src/core-plugins/tree-view/layer-subpanel/label-toggle.jsx +39 -0
  210. package/src/core-plugins/tree-view/layer-subpanel/layer-subpanel.jsx +179 -0
  211. package/src/core-plugins/tree-view/layer-subpanel/natick-rgb-options.jsx +66 -0
  212. package/src/core-plugins/tree-view/layer-subpanel/natick-rgb.jsx +112 -0
  213. package/src/core-plugins/tree-view/layer-subpanel/opacity-slider.jsx +51 -0
  214. package/src/core-plugins/tree-view/layer-subpanel/remove-layer.jsx +75 -0
  215. package/src/core-plugins/tree-view/tree-list-container.jsx +22 -0
  216. package/src/core-plugins/tree-view/tree-list-item-dataset.jsx +174 -0
  217. package/src/core-plugins/tree-view/tree-list-item-folder.jsx +161 -0
  218. package/src/core-plugins/tree-view/tree-list-item.jsx +35 -0
  219. package/src/core-plugins/tree-view/tree-list.jsx +37 -0
  220. package/src/core-plugins/tree-view/tree-view-button.jsx +18 -0
  221. package/src/core-plugins/tree-view/tree-view-panel.jsx +139 -0
  222. package/src/core-plugins/tree-view/tree-view-toolbar/add-all.jsx +28 -0
  223. package/src/core-plugins/tree-view/tree-view-toolbar/defaults.jsx +40 -0
  224. package/src/core-plugins/tree-view/tree-view-toolbar/favorites.jsx +40 -0
  225. package/src/core-plugins/tree-view/tree-view-toolbar/remove-all.jsx +28 -0
  226. package/src/core-plugins/tree-view/tree-view-toolbar/toggle-expand.jsx +47 -0
  227. package/src/core-plugins/tree-view/tree-view-toolbar/toggle-filter.jsx +39 -0
  228. package/src/core-plugins/vector-search/bundle.js +96 -0
  229. package/src/core-plugins/vector-search/index.js +10 -0
  230. package/src/core-plugins/zoom-home/bundle.js +77 -0
  231. package/src/core-plugins/zoom-home/index.js +19 -0
  232. package/src/core-plugins/zoom-home/zoom-home-button.jsx +57 -0
  233. package/src/core-plugins/zoom-in-out/index.js +23 -0
  234. package/src/core-plugins/zoom-in-out/zoom-in-button.jsx +28 -0
  235. package/src/core-plugins/zoom-in-out/zoom-out-button.jsx +28 -0
  236. package/src/core-plugins/zoom-level/bundle.js +35 -0
  237. package/src/core-plugins/zoom-level/index.js +17 -0
  238. package/src/core-plugins/zoom-level/zoom-indicator.jsx +34 -0
  239. package/src/core-plugins/zoom-to-box/bundle.js +80 -0
  240. package/src/core-plugins/zoom-to-box/index.jsx +15 -0
  241. package/src/core-plugins/zoom-to-box/zoom-to-box-button.jsx +53 -0
  242. package/src/css/_deprecated_maki/css/maki.css +304 -0
  243. package/src/css/_deprecated_maki/fonts/maki.eot +0 -0
  244. package/src/css/_deprecated_maki/fonts/maki.svg +98 -0
  245. package/src/css/_deprecated_maki/fonts/maki.ttf +0 -0
  246. package/src/css/_deprecated_maki/fonts/maki.woff +0 -0
  247. package/src/css/bg-colors.css +121 -0
  248. package/src/css/cm-icons/css/cm-icons.css +90 -0
  249. package/src/css/cm-icons/fonts/cm.eot +0 -0
  250. package/src/css/cm-icons/fonts/cm.svg +27 -0
  251. package/src/css/cm-icons/fonts/cm.ttf +0 -0
  252. package/src/css/cm-icons/fonts/cm.woff +0 -0
  253. package/src/css/corpsmap-namespaced.css +9505 -0
  254. package/src/css/corpsmap.css +10178 -0
  255. package/src/css/loading-indicator.css +109 -0
  256. package/src/css/mapskin/OFL.txt +94 -0
  257. package/src/css/mapskin/css/mapskin.css +815 -0
  258. package/src/css/mapskin/css/mapskin.min.css +8 -0
  259. package/src/css/mapskin/fonts/mapskin.eot +0 -0
  260. package/src/css/mapskin/fonts/mapskin.svg +282 -0
  261. package/src/css/mapskin/fonts/mapskin.ttf +0 -0
  262. package/src/css/mapskin/fonts/mapskin.woff +0 -0
  263. package/src/css/mdi/.github/ISSUE_TEMPLATE.md +3 -0
  264. package/src/css/mdi/README.md +24 -0
  265. package/src/css/mdi/bower.json +22 -0
  266. package/src/css/mdi/css/materialdesignicons.css +18654 -0
  267. package/src/css/mdi/css/materialdesignicons.css.map +16 -0
  268. package/src/css/mdi/css/materialdesignicons.min.css +3 -0
  269. package/src/css/mdi/css/materialdesignicons.min.css.map +16 -0
  270. package/src/css/mdi/fonts/materialdesignicons-webfont.eot +0 -0
  271. package/src/css/mdi/fonts/materialdesignicons-webfont.ttf +0 -0
  272. package/src/css/mdi/fonts/materialdesignicons-webfont.woff +0 -0
  273. package/src/css/mdi/fonts/materialdesignicons-webfont.woff2 +0 -0
  274. package/src/css/mdi/license.md +97 -0
  275. package/src/css/mdi/package.json +37 -0
  276. package/src/css/mdi/preview.html +717 -0
  277. package/src/css/mdi/scss/_animated.scss +27 -0
  278. package/src/css/mdi/scss/_core.scss +10 -0
  279. package/src/css/mdi/scss/_extras.scss +65 -0
  280. package/src/css/mdi/scss/_functions.scss +20 -0
  281. package/src/css/mdi/scss/_icons.scss +10 -0
  282. package/src/css/mdi/scss/_path.scss +10 -0
  283. package/src/css/mdi/scss/_variables.scss +4606 -0
  284. package/src/css/mdi/scss/materialdesignicons.scss +8 -0
  285. package/src/css/navigation.css +174 -0
  286. package/src/css/parse-css.js +26 -0
  287. package/src/css/reset.css +48 -0
  288. package/src/index.css +68 -0
  289. package/src/index.jsx +113 -0
  290. package/src/main.jsx +3 -0
  291. package/src/openlayers-utils/format-utilities.js +178 -0
  292. package/src/openlayers-utils/interaction-creator.js +31 -0
  293. package/src/openlayers-utils/layer-utilities.js +309 -0
  294. package/src/openlayers-utils/map-utils.js +25 -0
  295. package/src/openlayers-utils/resource-utilities.js +38 -0
  296. package/src/openlayers-utils/vector-style.js +131 -0
  297. package/src/utils/cache.js +6 -0
  298. package/src/utils/check-webgl.js +6 -0
  299. package/src/utils/error-boundary.js +26 -0
  300. package/src/utils/load-plugins.js +32 -0
  301. package/src/utils/load-plugins.test.js +36 -0
  302. package/src/utils/plugin-region.jsx +26 -0
  303. package/src/utils/redux-bundler-react.jsx +69 -0
  304. package/src/utils/scale-to-zoom-level.js +37 -0
  305. package/src/utils/vector-styles.js +7 -0
  306. package/.babelrc +0 -7
  307. package/config/basemaps.js +0 -22
  308. package/css/corpsmap.css +0 -7982
  309. package/index.js +0 -5
  310. package/lib/dev.js +0 -41440
  311. package/lib/prod.js +0 -41406
  312. package/rollup.config.js +0 -30
  313. package/src/bundles/DEPRECATE_map-view-bundle.js +0 -34
  314. package/src/bundles/_template-bundle-creator.js +0 -49
  315. package/src/bundles/create-basemap-bundle-old.js +0 -107
  316. package/src/bundles/create-basemap-bundle.js +0 -133
  317. package/src/bundles/create-ol-map-bundle.js +0 -166
  318. package/src/bundles/create-ol-view-bundle.js +0 -79
  319. package/src/bundles/map-basemap-bundle.js +0 -42
  320. package/src/bundles/map-bundle.js +0 -90
  321. package/src/bundles/map-interaction-bundle.js +0 -57
  322. package/src/bundles/map-measure-bundle.js +0 -61
  323. package/src/components/BasemapSwitcherLight/BasemapMenu.js +0 -26
  324. package/src/components/BasemapSwitcherLight/BasemapMenuItem.js +0 -31
  325. package/src/components/BasemapSwitcherLight/index.js +0 -25
  326. package/src/components/Control-Regions/BtnContainer.js +0 -20
  327. package/src/components/Control-Regions/Right.js +0 -30
  328. package/src/components/Control-Regions/Top.js +0 -19
  329. package/src/components/Control-Regions/index.js +0 -4
  330. package/src/components/LayerTree/index.js +0 -10
  331. package/src/components/Map.js +0 -56
  332. package/src/components/MeasureTool/Content.js +0 -53
  333. package/src/components/MeasureTool/index.js +0 -169
  334. package/src/components/MeasureTool/measure-utils.js +0 -69
  335. package/src/components/Zoom/index.js +0 -48
  336. package/src/components/index.js +0 -3
  337. package/src/index.js +0 -10
@@ -0,0 +1,384 @@
1
+ (function(t,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("react"),require("redux-bundler"),require("money-clip"),require("xhr"),require("ol/Collection"),require("ol/style/Style"),require("ol/style/Fill"),require("ol/style/Stroke"),require("ol/style/Circle"),require("ol/source/XYZ"),require("ol/source/TileArcGISRest"),require("ol/source/ImageArcGISRest"),require("ol/source/ImageWMS"),require("ol/source/TileWMS"),require("ol/source/Vector"),require("ol/layer/Tile"),require("ol/layer/Image"),require("ol/layer/Vector"),require("ol/format/GeoJSON"),require("ol/style/Text"),require("ol/style/RegularShape"),require("ol/format/EsriJSON.js"),require("ol/loadingstrategy"),require("ol/tilegrid/TileGrid"),require("ol/tilegrid"),require("async"),require("ol-esri-style"),require("ol/Map.js"),require("ol/View"),require("ol/proj"),require("ol/control/ScaleLine"),require("ol/ol.css"),require("uuid"),require("ol/proj/Projection"),require("proj4"),require("lodash"),require("react-dom"),require("ol/Overlay"),require("ol/interaction/Draw"),require("ol/interaction/Select"),require("ol/interaction/Modify"),require("ol/style"),require("react-data-grid"),require("ol/interaction/DragBox"),require("ol/interaction/Snap"),require("ol/Feature"),require("ol/geom/Point"),require("ol/geom/Polygon"),require("ol/format/EsriJSON"),require("ol/sphere")):typeof define=="function"&&define.amd?define(["exports","react","redux-bundler","money-clip","xhr","ol/Collection","ol/style/Style","ol/style/Fill","ol/style/Stroke","ol/style/Circle","ol/source/XYZ","ol/source/TileArcGISRest","ol/source/ImageArcGISRest","ol/source/ImageWMS","ol/source/TileWMS","ol/source/Vector","ol/layer/Tile","ol/layer/Image","ol/layer/Vector","ol/format/GeoJSON","ol/style/Text","ol/style/RegularShape","ol/format/EsriJSON.js","ol/loadingstrategy","ol/tilegrid/TileGrid","ol/tilegrid","async","ol-esri-style","ol/Map.js","ol/View","ol/proj","ol/control/ScaleLine","ol/ol.css","uuid","ol/proj/Projection","proj4","lodash","react-dom","ol/Overlay","ol/interaction/Draw","ol/interaction/Select","ol/interaction/Modify","ol/style","react-data-grid","ol/interaction/DragBox","ol/interaction/Snap","ol/Feature","ol/geom/Point","ol/geom/Polygon","ol/format/EsriJSON","ol/sphere"],n):(t=typeof globalThis<"u"?globalThis:t||self,n(t.corpsmap={},t.React,t.reduxBundler,t.moneyClip,t.xhr,null,t.Style,t.Fill,t.Stroke,t.Circle,t.XYZ,t.TileArcGISRest,t.ImageArcGISRest,t.ImageWMS,t.TileWMS,t.VectorSrc,t.Tile,t.Image$1,t.Vector,t.GeoJSON,t.Text,t.RegularShape,t.EsriJSON,t.loadingstrategy,null,t.tilegrid,t.async,t.olEsriStyle,t.olMap,t.View,t.proj,t.ScaleBar,null,t.uuid,t.Projection,t.proj4,t.lodash,t.ReactDOM,t.Overlay$1,t.Draw,t.Select$1,t.Modify,t.style$3,t.DataGrid,t.DragBox,t.Snap,t.Feature,t.Point,t.Polygon,t.EsriJSON$1,t.sphere))})(this,(function(exports,React,reduxBundler,moneyClip,xhr,Collection,Style,Fill,Stroke,Circle,XYZ,TileArcGISRest,ImageArcGISRest,ImageWMS,TileWMS,VectorSrc,Tile,Image$1,Vector,GeoJSON,Text,RegularShape,EsriJSON,loadingstrategy,TileGrid,tilegrid,async,olEsriStyle,olMap,View,proj,ScaleBar,ol_css,uuid,Projection,proj4,_,require$$2,Overlay$1,Draw,Select$1,Modify,style$3,reactDataGrid,DragBox,Snap,Feature,Point,Polygon,EsriJSON$1,sphere){"use strict";function _interopNamespaceDefault(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const d=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(n,s,d.get?d:{enumerable:!0,get:()=>t[s]})}}return n.default=t,Object.freeze(n)}const React__namespace=_interopNamespaceDefault(React);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs$1(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var browser={exports:{}},process=browser.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(t){if(cachedSetTimeout===setTimeout)return setTimeout(t,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(t,0);try{return cachedSetTimeout(t,0)}catch{try{return cachedSetTimeout.call(null,t,0)}catch{return cachedSetTimeout.call(this,t,0)}}}function runClearTimeout(t){if(cachedClearTimeout===clearTimeout)return clearTimeout(t);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(t);try{return cachedClearTimeout(t)}catch{try{return cachedClearTimeout.call(null,t)}catch{return cachedClearTimeout.call(this,t)}}}var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var t=runTimeout(cleanUpNextTick);draining=!0;for(var n=queue.length;n;){for(currentQueue=queue,queue=[];++queueIndex<n;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,n=queue.length}currentQueue=null,draining=!1,runClearTimeout(t)}}process.nextTick=function(t){var n=new Array(arguments.length-1);if(arguments.length>1)for(var s=1;s<arguments.length;s++)n[s-1]=arguments[s];queue.push(new Item(t,n)),queue.length===1&&!draining&&runTimeout(drainQueue)};function Item(t,n){this.fun=t,this.array=n}Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={};function noop$2(){}process.on=noop$2,process.addListener=noop$2,process.once=noop$2,process.off=noop$2,process.removeListener=noop$2,process.removeAllListeners=noop$2,process.emit=noop$2,process.prependListener=noop$2,process.prependOnceListener=noop$2,process.listeners=function(t){return[]},process.binding=function(t){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(t){throw new Error("process.chdir is not supported")},process.umask=function(){return 0};var browserExports=browser.exports;const process$1=getDefaultExportFromCjs(browserExports);var jsxRuntime={exports:{}},reactJsxRuntime_production={};var hasRequiredReactJsxRuntime_production;function requireReactJsxRuntime_production(){if(hasRequiredReactJsxRuntime_production)return reactJsxRuntime_production;hasRequiredReactJsxRuntime_production=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function s(d,m,v){var S=null;if(v!==void 0&&(S=""+v),m.key!==void 0&&(S=""+m.key),"key"in m){v={};for(var C in m)C!=="key"&&(v[C]=m[C])}else v=m;return m=v.ref,{$$typeof:t,type:d,key:S,ref:m!==void 0?m:null,props:v}}return reactJsxRuntime_production.Fragment=n,reactJsxRuntime_production.jsx=s,reactJsxRuntime_production.jsxs=s,reactJsxRuntime_production}var reactJsxRuntime_development={},hasRequiredReactJsxRuntime_development;function requireReactJsxRuntime_development(){return hasRequiredReactJsxRuntime_development||(hasRequiredReactJsxRuntime_development=1,process$1.env.NODE_ENV!=="production"&&(function(){function t(Le){if(Le==null)return null;if(typeof Le=="function")return Le.$$typeof===Re?null:Le.displayName||Le.name||null;if(typeof Le=="string")return Le;switch(Le){case J:return"Fragment";case re:return"Profiler";case K:return"StrictMode";case ge:return"Suspense";case pe:return"SuspenseList";case me:return"Activity"}if(typeof Le=="object")switch(typeof Le.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),Le.$$typeof){case W:return"Portal";case ue:return Le.displayName||"Context";case te:return(Le._context.displayName||"Context")+".Consumer";case se:var Je=Le.render;return Le=Le.displayName,Le||(Le=Je.displayName||Je.name||"",Le=Le!==""?"ForwardRef("+Le+")":"ForwardRef"),Le;case Ee:return Je=Le.displayName||null,Je!==null?Je:t(Le.type)||"Memo";case ce:Je=Le._payload,Le=Le._init;try{return t(Le(Je))}catch{}}return null}function n(Le){return""+Le}function s(Le){try{n(Le);var Je=!1}catch{Je=!0}if(Je){Je=console;var He=Je.error,Pe=typeof Symbol=="function"&&Symbol.toStringTag&&Le[Symbol.toStringTag]||Le.constructor.name||"Object";return He.call(Je,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Pe),n(Le)}}function d(Le){if(Le===J)return"<>";if(typeof Le=="object"&&Le!==null&&Le.$$typeof===ce)return"<...>";try{var Je=t(Le);return Je?"<"+Je+">":"<...>"}catch{return"<...>"}}function m(){var Le=Ne.A;return Le===null?null:Le.getOwner()}function v(){return Error("react-stack-top-frame")}function S(Le){if(we.call(Le,"key")){var Je=Object.getOwnPropertyDescriptor(Le,"key").get;if(Je&&Je.isReactWarning)return!1}return Le.key!==void 0}function C(Le,Je){function He(){de||(de=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Je))}He.isReactWarning=!0,Object.defineProperty(Le,"key",{get:He,configurable:!0})}function I(){var Le=t(this.type);return Ce[Le]||(Ce[Le]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),Le=this.props.ref,Le!==void 0?Le:null}function N(Le,Je,He,Pe,it,pt){var gt=He.ref;return Le={$$typeof:H,type:Le,key:Je,props:He,_owner:Pe},(gt!==void 0?gt:null)!==null?Object.defineProperty(Le,"ref",{enumerable:!1,get:I}):Object.defineProperty(Le,"ref",{enumerable:!1,value:null}),Le._store={},Object.defineProperty(Le._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(Le,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(Le,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:it}),Object.defineProperty(Le,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:pt}),Object.freeze&&(Object.freeze(Le.props),Object.freeze(Le)),Le}function M(Le,Je,He,Pe,it,pt){var gt=Je.children;if(gt!==void 0)if(Pe)if(De(gt)){for(Pe=0;Pe<gt.length;Pe++)k(gt[Pe]);Object.freeze&&Object.freeze(gt)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else k(gt);if(we.call(Je,"key")){gt=t(Le);var xe=Object.keys(Je).filter(function(st){return st!=="key"});Pe=0<xe.length?"{key: someKey, "+xe.join(": ..., ")+": ...}":"{key: someKey}",Ve[gt+Pe]||(xe=0<xe.length?"{"+xe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
+ let props = %s;
3
+ <%s {...props} />
4
+ React keys must be passed directly to JSX without using spread:
5
+ let props = %s;
6
+ <%s key={someKey} {...props} />`,Pe,gt,xe,gt),Ve[gt+Pe]=!0)}if(gt=null,He!==void 0&&(s(He),gt=""+He),S(Je)&&(s(Je.key),gt=""+Je.key),"key"in Je){He={};for(var Gt in Je)Gt!=="key"&&(He[Gt]=Je[Gt])}else He=Je;return gt&&C(He,typeof Le=="function"?Le.displayName||Le.name||"Unknown":Le),N(Le,gt,He,m(),it,pt)}function k(Le){z(Le)?Le._store&&(Le._store.validated=1):typeof Le=="object"&&Le!==null&&Le.$$typeof===ce&&(Le._payload.status==="fulfilled"?z(Le._payload.value)&&Le._payload.value._store&&(Le._payload.value._store.validated=1):Le._store&&(Le._store.validated=1))}function z(Le){return typeof Le=="object"&&Le!==null&&Le.$$typeof===H}var V=React,H=Symbol.for("react.transitional.element"),W=Symbol.for("react.portal"),J=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),re=Symbol.for("react.profiler"),te=Symbol.for("react.consumer"),ue=Symbol.for("react.context"),se=Symbol.for("react.forward_ref"),ge=Symbol.for("react.suspense"),pe=Symbol.for("react.suspense_list"),Ee=Symbol.for("react.memo"),ce=Symbol.for("react.lazy"),me=Symbol.for("react.activity"),Re=Symbol.for("react.client.reference"),Ne=V.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,we=Object.prototype.hasOwnProperty,De=Array.isArray,Ge=console.createTask?console.createTask:function(){return null};V={react_stack_bottom_frame:function(Le){return Le()}};var de,Ce={},ke=V.react_stack_bottom_frame.bind(V,v)(),We=Ge(d(v)),Ve={};reactJsxRuntime_development.Fragment=J,reactJsxRuntime_development.jsx=function(Le,Je,He){var Pe=1e4>Ne.recentlyCreatedOwnerStacks++;return M(Le,Je,He,!1,Pe?Error("react-stack-top-frame"):ke,Pe?Ge(d(Le)):We)},reactJsxRuntime_development.jsxs=function(Le,Je,He){var Pe=1e4>Ne.recentlyCreatedOwnerStacks++;return M(Le,Je,He,!0,Pe?Error("react-stack-top-frame"):ke,Pe?Ge(d(Le)):We)}})()),reactJsxRuntime_development}var hasRequiredJsxRuntime;function requireJsxRuntime(){return hasRequiredJsxRuntime||(hasRequiredJsxRuntime=1,process$1.env.NODE_ENV==="production"?jsxRuntime.exports=requireReactJsxRuntime_production():jsxRuntime.exports=requireReactJsxRuntime_development()),jsxRuntime.exports}var jsxRuntimeExports=requireJsxRuntime();const{useContext,useMemo,useState,useEffect}=React,StoreContext=React.createContext();class Provider extends React.Component{render(){return jsxRuntimeExports.jsx(StoreContext.Provider,{value:this.props.store,children:React.Children.only(this.props.children)})}}const connect=function(...t){const n=t.slice(-1)[0],s=t.length>1?t.slice(0,-1):[],d=[],m=[];s.forEach(S=>{if(S.startsWith("select"))m.push(S);else if(S.startsWith("do"))d.push(S);else throw new Error(`CanNotConnect ${S}`)});const v=S=>{const C=useContext(StoreContext),[I,N]=useState(()=>C.select(m));useEffect(()=>C.subscribeToSelectors(m,()=>{const z=C.select(m);N(z)}),[C,m.join()]);const M=useMemo(()=>{const k={};return d.forEach(z=>{k[z]=(...V)=>C.action?C.action(z,V):C[z](...V)}),k},[C,d.join()]);return React.createElement(n,{...S,...I,...M})};return v.displayName=`Connect(${n.displayName||n.name})`,v};class ErrorBoundary extends React.Component{constructor(n){super(n),this.state={hasError:!1,error:null,info:null}}componentDidCatch(n,s){this.setState({hasError:!0,error:n,info:s})}render(){const{hasError:n,error:s,info:d}=this.state;return n&&console.log("error rendering",s,d),this.props.children}}class PluginRegion extends React.Component{render(){const{className:n,styleOverride:s,components:d}=this.props;return jsxRuntimeExports.jsx("div",{className:n,children:d.map((m,v)=>{const S=m;return jsxRuntimeExports.jsx(ErrorBoundary,{children:jsxRuntimeExports.jsx("div",{style:s,children:jsxRuntimeExports.jsx(S,{})})},v)})})}}let PrimaryPanel$1=class extends React.Component{constructor(n){super(n),this.state={left:49},this.handleResize=this.handleResize.bind(this),this.handleClose=this.handleClose.bind(this)}handleResize(n){n.preventDefault(),n.stopPropagation();let{left:s}=this.state;n.pageX&&this.props.doPrimaryPanelSetWidth(n.pageX-s)}handleClose(n){n.preventDefault(),n.stopPropagation(),this.props.doPrimaryPanelClose()}render(){const{primaryPanelChildren:n,primaryPanelOptions:s,primaryPanelTop:d,primaryPanelShowClose:m,primaryPanelWidth:v}=this.props,{left:S,width:C}=this.state;return!n||!n.length?null:jsxRuntimeExports.jsxs("div",{className:"sidebar-panel",style:{top:d,left:S,width:v},children:[jsxRuntimeExports.jsx(ErrorBoundary,{children:jsxRuntimeExports.jsxs("div",{id:"primary-panel-content",children:[m?jsxRuntimeExports.jsx("div",{className:"row",children:jsxRuntimeExports.jsx("button",{className:"pull-right cm-btn cm-btn-link",title:"Close Panel ",style:{marginRight:"10px",padding:"3px"},onClick:this.handleClose,children:jsxRuntimeExports.jsx("i",{className:"mdi mdi-close-circle-outline",style:{fontSize:"22px"}})})}):null,n.map((I,N)=>{const M=I;return jsxRuntimeExports.jsx(M,{...s},N)})]})}),jsxRuntimeExports.jsx("div",{className:"e-w-drag-handle",draggable:"true",onDrag:this.handleResize,onDragEnd:this.handleResize})]})}};const PrimaryPanel=connect("selectPrimaryPanelTop","selectPrimaryPanelChildren","selectPrimaryPanelOptions","selectPrimaryPanelWidth","selectPrimaryPanelShowClose","doPrimaryPanelResize","doPrimaryPanelSetWidth","doPrimaryPanelClose",PrimaryPanel$1);let BasicToolbar$1=class extends React.Component{render(){const{theme:n,componentsBasicToolbar:s}=this.props;return jsxRuntimeExports.jsx("div",{className:"toolbar toolbar-top-left "+n,style:{left:49},children:jsxRuntimeExports.jsx(PluginRegion,{className:"toolbar-horizontal",components:s,styleOverride:{}})})}};const BasicToolbar=connect("selectTheme","selectComponentsBasicToolbar",BasicToolbar$1);let LeftSidebar$1=class extends React.Component{render(){const{theme:n,componentsLeftSidebarBottom:s,componentsLeftSidebarTop:d}=this.props;return s.length+d.length?jsxRuntimeExports.jsxs("div",{className:"sidebar sidebar-left "+n,children:[jsxRuntimeExports.jsx(PluginRegion,{className:"sidebar-buttons-top",components:d,styleOverride:{width:"100%"}}),jsxRuntimeExports.jsx(PluginRegion,{className:"sidebar-buttons-bottom",components:s,styleOverride:{width:"100%"}}),jsxRuntimeExports.jsx(PrimaryPanel,{}),jsxRuntimeExports.jsx(BasicToolbar,{})]}):null}};const LeftSidebar=connect("selectTheme","selectComponentsLeftSidebarTop","selectComponentsLeftSidebarBottom",LeftSidebar$1);let UpperRightToolbar$1=class extends React.Component{render(){const{theme:n,componentsUpperRight:s}=this.props;return jsxRuntimeExports.jsx("div",{className:"toolbar toolbar-upper-right "+n,style:{right:49},children:jsxRuntimeExports.jsx("div",{className:"cm-btn-group",children:jsxRuntimeExports.jsx(PluginRegion,{className:"toolbar-horizontal-right",components:s})})})}};const UpperRightToolbar=connect("selectTheme","selectComponentsUpperRight",UpperRightToolbar$1);let LowerRightToolbar$1=class extends React.Component{render(){const{theme:n,componentsLowerRight:s}=this.props;return jsxRuntimeExports.jsx("div",{className:"toolbar toolbar-lower-right "+n,style:{right:49},children:jsxRuntimeExports.jsx("div",{className:"cm-btn-group",children:jsxRuntimeExports.jsx(PluginRegion,{className:"toolbar-horizontal-right",components:s,styleOverride:{}})})})}};const LowerRightToolbar=connect("selectTheme","selectComponentsLowerRight",LowerRightToolbar$1);let RightSidebar$1=class extends React.Component{render(){const{theme:n,componentsRightSidebarBottom:s,componentsRightSidebarTop:d,componentsRightSidebarCount:m}=this.props;return m?jsxRuntimeExports.jsxs("div",{className:"sidebar sidebar-right "+n,children:[jsxRuntimeExports.jsx(PluginRegion,{className:"sidebar-buttons-top",components:d}),jsxRuntimeExports.jsx(PluginRegion,{className:"sidebar-buttons-bottom",components:s}),jsxRuntimeExports.jsx(UpperRightToolbar,{}),jsxRuntimeExports.jsx(LowerRightToolbar,{})]}):null}};const RightSidebar=connect("selectTheme","selectComponentsRightSidebarTop","selectComponentsRightSidebarBottom","selectComponentsRightSidebarCount",RightSidebar$1);let Map$3=class extends React.Component{componentDidMount(){const{doMapInitialize:n,viewState:s,limitMapExtent:d}=this.props,{center:m,zoom:v,rotation:S,minZoom:C,maxZoom:I}=s;this.mapEl&&n(this.mapEl,{center:m,zoom:v,rotation:S,minZoom:C,maxZoom:I,layers:[],limitMapExtent:d})}render(){const{componentsLeftSidebarCount:n,componentsRightSidebarCount:s,cursorClass:d}=this.props,m={position:"absolute",top:0,left:n>0?49:0,right:s>0?49:0,bottom:0};return jsxRuntimeExports.jsx("div",{id:"map",className:d,ref:v=>{this.mapEl=v},style:m})}};const Map$2=connect("doMapInitialize","selectLimitMapExtent","selectViewState","selectCursorClass","selectComponentsLeftSidebarCount","selectComponentsRightSidebarCount",Map$3);let NorthRegion$1=class extends React.Component{render(){const{height:n}=this.props;return jsxRuntimeExports.jsxs("div",{className:"cm-north-container",style:{height:n},children:[jsxRuntimeExports.jsx(LeftSidebar,{}),jsxRuntimeExports.jsx(RightSidebar,{}),jsxRuntimeExports.jsx(Map$2,{})]})}};const NorthRegion=connect(NorthRegion$1);var classnames$1={exports:{}};var hasRequiredClassnames;function requireClassnames(){return hasRequiredClassnames||(hasRequiredClassnames=1,(function(t){(function(){var n={}.hasOwnProperty;function s(){for(var v="",S=0;S<arguments.length;S++){var C=arguments[S];C&&(v=m(v,d(C)))}return v}function d(v){if(typeof v=="string"||typeof v=="number")return v;if(typeof v!="object")return"";if(Array.isArray(v))return s.apply(null,v);if(v.toString!==Object.prototype.toString&&!v.toString.toString().includes("[native code]"))return v.toString();var S="";for(var C in v)n.call(v,C)&&v[C]&&(S=m(S,C));return S}function m(v,S){return S?v?v+" "+S:v+S:v}t.exports?(s.default=s,t.exports=s):window.classNames=s})()})(classnames$1)),classnames$1.exports}var classnamesExports=requireClassnames();const classnames=getDefaultExportFromCjs$1(classnamesExports);let SouthRegionTab$1=class extends React.Component{constructor(n){super(n),this.setActiveTab=this.setActiveTab.bind(this),this.closeTab=this.closeTab.bind(this),this.handleClick=this.handleClick.bind(this)}setActiveTab(){const{idx:n,onSelect:s}=this.props;s(n)}closeTab(){const{doSouthRegionCloseTab:n,child:s}=this.props;n(s.uid)}handleClick(n){const s=n.target,{action:d}=s.dataset;switch(d){case"nav":return this.setActiveTab();case"close":return this.closeTab();default:return}}render(){const{activeClass:n,displayName:s}=this.props;return jsxRuntimeExports.jsxs("li",{className:n,children:[jsxRuntimeExports.jsx("span",{onClick:this.handleClick,className:"pull-right","data-action":"close",style:{padding:"10px 10px"},children:jsxRuntimeExports.jsx("i",{"data-action":"close",className:"mdi mdi-close-circle-outline"})}),jsxRuntimeExports.jsx("a",{onClick:this.handleClick,href:"#","data-action":"nav",style:{marginRight:"36px"},children:s})]})}};const SouthRegionTab=connect("doSouthRegionCloseTab",SouthRegionTab$1);let SouthRegion$1=class extends React.Component{constructor(n){super(n),this.state={activeTab:0},this.setActiveTab=this.setActiveTab.bind(this)}setActiveTab(n){this.setState({activeTab:n})}render(){const{activeTab:n}=this.state,{height:s,southRegionChildren:d}=this.props;return jsxRuntimeExports.jsx("div",{className:"south-container",style:{position:"relative",height:s,left:0,right:0,bottom:0},children:jsxRuntimeExports.jsx(ErrorBoundary,{children:jsxRuntimeExports.jsxs("div",{id:"south-panel-content",children:[jsxRuntimeExports.jsx("ul",{className:"cm-nav cm-nav-tabs",children:d.map((m,v)=>{const S=classnames({active:v===n}),C=m.displayName||"TABLE";return jsxRuntimeExports.jsx(SouthRegionTab,{idx:v,activeClass:S,displayName:C,child:m,onSelect:this.setActiveTab},m.uid)})}),d.map((m,v)=>{const S=m.component,C=m.options||{},I=classnames({hidden:v!==n});return jsxRuntimeExports.jsx("div",{className:I,children:jsxRuntimeExports.jsx(S,{...C},m.uid)},v)})]})})})}};const SouthRegion=connect("selectSouthRegionChildren",SouthRegion$1);let ModalWindow$1=class extends React.Component{render(){const{modalChildren:n,modalOptions:s}=this.props;if(!n||!n.length)return null;const d=s.smSize,m=classnames({"cm-modal-content":!0,"cm-modal-lg":!d,"cm-modal-sm":!!d});return jsxRuntimeExports.jsx("div",{className:"cm-modal show",children:jsxRuntimeExports.jsx("div",{className:"cm-modal-dialog",children:jsxRuntimeExports.jsx("div",{className:m,children:n.map((v,S)=>{const C=v;return jsxRuntimeExports.jsx(C,{...s},S)})})})})}};const ModalWindow=connect("selectModalChildren","selectModalOptions",ModalWindow$1);let Notification$1=class extends React.Component{constructor(n){super(n),this.remove=this.remove.bind(this),this.renderContent=this.renderContent.bind(this),this.renderDismissButton=this.renderDismissButton.bind(this)}componentDidMount(){let{autoDismiss:n,onAdd:s}=this.props;n===0?console.log("didn't set up autodismiss"):(n||(n=5),console.log("should set timeout"),isNaN(Number(n))||window.setTimeout(this.remove,n*1e3)),s&&typeof s=="function"&&s(this.props)}remove(){const{doNotificationsDismiss:n,uid:s,onRemove:d}=this.props;s&&n(s),d&&typeof d=="function"&&d(this.props)}renderContent(){const{title:n,message:s,children:d}=this.props;return d?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:d}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("p",{children:jsxRuntimeExports.jsx("strong",{children:n})}),jsxRuntimeExports.jsx("p",{children:s})]})}renderDismissButton(){return jsxRuntimeExports.jsx("button",{onClick:this.remove,className:"close",children:"×"})}render(){const{level:n,position:s}=this.props;let d="cm-alert";switch(n){case"success":d+=" cm-alert-success";break;case"info":d+=" cm-alert-info";break;case"warning":d+=" cm-alert-warning";break;case"danger":d+=" cm-alert-danger";break;default:d+=" cm-alert-default"}return jsxRuntimeExports.jsxs("li",{className:d,style:{minWidth:"300px"},onClick:this.remove,children:[this.renderDismissButton(),this.renderContent()]})}};const Notification=connect("doNotificationsDismiss",Notification$1),NotificationQuadrant=t=>{const{items:n,quad:s}=t,d=`list-unstyled notification-pane notification-${s}`;return n.length?jsxRuntimeExports.jsx("ul",{className:d,children:n.map((m,v)=>jsxRuntimeExports.jsx(Notification,{...m},v))}):null},NotificationPane$1=t=>{const{notifications:n}=t;let s=[],d=[],m=[],v=[];return Object.keys(n).forEach(S=>{switch(n[S].position){case"tl":s.push(n[S]);break;case"bl":d.push(n[S]);break;case"br":m.push(n[S]);break;default:v.push(n[S])}}),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(NotificationQuadrant,{items:s,quad:"top-left"}),jsxRuntimeExports.jsx(NotificationQuadrant,{items:d,quad:"bottom-left"}),jsxRuntimeExports.jsx(NotificationQuadrant,{items:v,quad:"top-right"}),jsxRuntimeExports.jsx(NotificationQuadrant,{items:m,quad:"bottom-right"})]})},NotificationPane=connect("selectNotifications",NotificationPane$1);var isObject_1,hasRequiredIsObject;function requireIsObject(){if(hasRequiredIsObject)return isObject_1;hasRequiredIsObject=1;function t(n){var s=typeof n;return n!=null&&(s=="object"||s=="function")}return isObject_1=t,isObject_1}var _freeGlobal,hasRequired_freeGlobal;function require_freeGlobal(){if(hasRequired_freeGlobal)return _freeGlobal;hasRequired_freeGlobal=1;var t=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;return _freeGlobal=t,_freeGlobal}var _root,hasRequired_root;function require_root(){if(hasRequired_root)return _root;hasRequired_root=1;var t=require_freeGlobal(),n=typeof self=="object"&&self&&self.Object===Object&&self,s=t||n||Function("return this")();return _root=s,_root}var now_1,hasRequiredNow;function requireNow(){if(hasRequiredNow)return now_1;hasRequiredNow=1;var t=require_root(),n=function(){return t.Date.now()};return now_1=n,now_1}var _trimmedEndIndex,hasRequired_trimmedEndIndex;function require_trimmedEndIndex(){if(hasRequired_trimmedEndIndex)return _trimmedEndIndex;hasRequired_trimmedEndIndex=1;var t=/\s/;function n(s){for(var d=s.length;d--&&t.test(s.charAt(d)););return d}return _trimmedEndIndex=n,_trimmedEndIndex}var _baseTrim,hasRequired_baseTrim;function require_baseTrim(){if(hasRequired_baseTrim)return _baseTrim;hasRequired_baseTrim=1;var t=require_trimmedEndIndex(),n=/^\s+/;function s(d){return d&&d.slice(0,t(d)+1).replace(n,"")}return _baseTrim=s,_baseTrim}var _Symbol,hasRequired_Symbol;function require_Symbol(){if(hasRequired_Symbol)return _Symbol;hasRequired_Symbol=1;var t=require_root(),n=t.Symbol;return _Symbol=n,_Symbol}var _getRawTag,hasRequired_getRawTag;function require_getRawTag(){if(hasRequired_getRawTag)return _getRawTag;hasRequired_getRawTag=1;var t=require_Symbol(),n=Object.prototype,s=n.hasOwnProperty,d=n.toString,m=t?t.toStringTag:void 0;function v(S){var C=s.call(S,m),I=S[m];try{S[m]=void 0;var N=!0}catch{}var M=d.call(S);return N&&(C?S[m]=I:delete S[m]),M}return _getRawTag=v,_getRawTag}var _objectToString,hasRequired_objectToString;function require_objectToString(){if(hasRequired_objectToString)return _objectToString;hasRequired_objectToString=1;var t=Object.prototype,n=t.toString;function s(d){return n.call(d)}return _objectToString=s,_objectToString}var _baseGetTag,hasRequired_baseGetTag;function require_baseGetTag(){if(hasRequired_baseGetTag)return _baseGetTag;hasRequired_baseGetTag=1;var t=require_Symbol(),n=require_getRawTag(),s=require_objectToString(),d="[object Null]",m="[object Undefined]",v=t?t.toStringTag:void 0;function S(C){return C==null?C===void 0?m:d:v&&v in Object(C)?n(C):s(C)}return _baseGetTag=S,_baseGetTag}var isObjectLike_1,hasRequiredIsObjectLike;function requireIsObjectLike(){if(hasRequiredIsObjectLike)return isObjectLike_1;hasRequiredIsObjectLike=1;function t(n){return n!=null&&typeof n=="object"}return isObjectLike_1=t,isObjectLike_1}var isSymbol_1,hasRequiredIsSymbol;function requireIsSymbol(){if(hasRequiredIsSymbol)return isSymbol_1;hasRequiredIsSymbol=1;var t=require_baseGetTag(),n=requireIsObjectLike(),s="[object Symbol]";function d(m){return typeof m=="symbol"||n(m)&&t(m)==s}return isSymbol_1=d,isSymbol_1}var toNumber_1,hasRequiredToNumber;function requireToNumber(){if(hasRequiredToNumber)return toNumber_1;hasRequiredToNumber=1;var t=require_baseTrim(),n=requireIsObject(),s=requireIsSymbol(),d=NaN,m=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,S=/^0o[0-7]+$/i,C=parseInt;function I(N){if(typeof N=="number")return N;if(s(N))return d;if(n(N)){var M=typeof N.valueOf=="function"?N.valueOf():N;N=n(M)?M+"":M}if(typeof N!="string")return N===0?N:+N;N=t(N);var k=v.test(N);return k||S.test(N)?C(N.slice(2),k?2:8):m.test(N)?d:+N}return toNumber_1=I,toNumber_1}var debounce_1,hasRequiredDebounce;function requireDebounce(){if(hasRequiredDebounce)return debounce_1;hasRequiredDebounce=1;var t=requireIsObject(),n=requireNow(),s=requireToNumber(),d="Expected a function",m=Math.max,v=Math.min;function S(C,I,N){var M,k,z,V,H,W,J=0,K=!1,re=!1,te=!0;if(typeof C!="function")throw new TypeError(d);I=s(I)||0,t(N)&&(K=!!N.leading,re="maxWait"in N,z=re?m(s(N.maxWait)||0,I):z,te="trailing"in N?!!N.trailing:te);function ue(we){var De=M,Ge=k;return M=k=void 0,J=we,V=C.apply(Ge,De),V}function se(we){return J=we,H=setTimeout(Ee,I),K?ue(we):V}function ge(we){var De=we-W,Ge=we-J,de=I-De;return re?v(de,z-Ge):de}function pe(we){var De=we-W,Ge=we-J;return W===void 0||De>=I||De<0||re&&Ge>=z}function Ee(){var we=n();if(pe(we))return ce(we);H=setTimeout(Ee,ge(we))}function ce(we){return H=void 0,te&&M?ue(we):(M=k=void 0,V)}function me(){H!==void 0&&clearTimeout(H),J=0,M=W=k=H=void 0}function Re(){return H===void 0?V:ce(n())}function Ne(){var we=n(),De=pe(we);if(M=arguments,k=this,W=we,De){if(H===void 0)return se(W);if(re)return clearTimeout(H),H=setTimeout(Ee,I),ue(W)}return H===void 0&&(H=setTimeout(Ee,I)),V}return Ne.cancel=me,Ne.flush=Re,Ne}return debounce_1=S,debounce_1}var debounceExports=requireDebounce();const debounce=getDefaultExportFromCjs$1(debounceExports);let Corpsmap$1=class extends React.Component{constructor(n){super(n),this.renderSouthRegion=this.renderSouthRegion.bind(this),this.setHeight=this.setHeight.bind(this),this.resize=this.resize.bind(this),this.setHeightDebounced=debounce(this.setHeight,10)}componentDidMount(){this._isMounted=!0;const{doVLayoutSetHeight:n}=this.props;n(this.el.offsetHeight)}componentWillUnmount(){this._isMounted=!1}setHeight(n){const{doVLayoutResize:s,vLayoutHeight:d}=this.props;if(n>45&&n<d){const m=n/d,v=1-m;s(m,v)}}resize(n){n.preventDefault();const s=n.clientY;this.setHeightDebounced(s)}renderSouthRegion(){const{doSouthRegionClose:n,theme:s,southHeight:d}=this.props;return d?jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{draggable:"true",onDrag:this.resize,className:s+" n-s-drag-handle",children:jsxRuntimeExports.jsx("span",{onClick:n,className:"pull-right",children:jsxRuntimeExports.jsx("i",{className:"mdi mdi-close"})})}),jsxRuntimeExports.jsx(SouthRegion,{height:d-5})]}):null}render(){const{northHeight:n}=this.props;return jsxRuntimeExports.jsxs("div",{className:"corpsmap cm-container-fluid",style:{padding:0},ref:s=>{this.el=s},children:[jsxRuntimeExports.jsx(NorthRegion,{height:n}),this.renderSouthRegion(),jsxRuntimeExports.jsx(ModalWindow,{}),jsxRuntimeExports.jsx(NotificationPane,{})]})}};const Corpsmap=connect("selectTheme","selectNorthHeight","selectSouthHeight","selectVLayoutHeight","doSouthRegionClose","doVLayoutResize","doVLayoutSetHeight",Corpsmap$1),cache=moneyClip.getConfiguredCache({maxAge:1e3*60*60,version:1}),apiBundle={name:"api",getReducer:()=>{const t={root:void 0};return(n=t,{type:s,payload:d})=>n},selectApiRoot:t=>process$1.env.NODE_ENV==="development"?t.api.root:t.windowLocation.origin,getExtraArgs:t=>({anonGet:(n,s)=>{const d={url:n};xhr.get(d,s)},apiGet:(n,s)=>{const d={url:n};xhr.get(d,s)},apiPost:(n,s,d)=>{const m={url:n,json:s};xhr.post(m,d)},apiDel:(n,s)=>{const d={url:n};xhr.del(d,s)}})},basicToolbarBundle={name:"basicToolbar",getReducer:()=>{const t={activeTool:null,open:!1};return(n=t,{type:s,payload:d})=>{switch(s){case"BASIC_TOOL_ACTIVATE":case"BASIC_TOOL_DEACTIVATE":return Object.assign({},n,d);default:return n}}},doBasicToolbarActivate:({activeTool:t})=>({dispatch:n})=>{n({type:"BASIC_TOOL_ACTIVATE",payload:{activeTool:t,open:!0}})},doBasicToolbarToggle:(t,n)=>({store:s})=>{t!==n?(s.doBasicToolbarDeactivate(),s.doBasicToolbarActivate({activeTool:n})):s.doBasicToolbarDeactivate()},doBasicToolbarDeactivate:()=>({dispatch:t})=>{t({type:"BASIC_TOOL_DEACTIVATE",payload:{activeTool:null,open:!1}})},selectBasicToolbarActiveTool:t=>t.basicToolbar.activeTool,selectBasicToolbarOpen:t=>t.basicToolbar.open},configBundle={name:"config",getReducer(){const t={default:{}};return(n=t,{type:s,payload:d})=>n},selectDefaultConfig:t=>t.config.default,selectBasemapList:t=>t.config.default.basemaps.map(n=>(n.url.indexOf("{accessToken}")!==-1&&(n.url=n.url.replace(/{accessToken}/ig,n.accessToken||"")),n.url.indexOf("{s}")!==-1&&(n.url=n.url.replace(/{s}/ig,n.accessToken||"{a-c}")),n)),selectBasemapImages:t=>t.config.default.basemapImageIDs,selectDefaultLayers:t=>t.config.default.datasets,selectLimitMapExtent:t=>t.config.default.limitMapExtent},exportBundle={name:"export",getReducer:()=>{const t={loadingCsv:!1,loadingGeoJSON:!1};return(n=t,{type:s,payload:d})=>{switch(s){case"EXPORT_TO_CSV_INITIATED":case"EXPORT_TO_CSV_FINISHED":case"EXPORT_TO_GEOJSON_INITIATED":case"EXPORT_TO_GEOJSON_FINISHED":return Object.assign({},n,d);default:return n}}},doExportToCSV:t=>({dispatch:n,store:s})=>{const d=t.features;let m=[];const v=Object.keys(d[0].properties);m.push(v),d.forEach((S,C)=>{const I=Object.keys(S.properties).map(N=>S.properties[N]);m.push(I)}),s.doGenerateCsv(m)},doGenerateCsv:t=>({dispatch:n,store:s})=>{n({type:"EXPORT_TO_CSV_INITIATED",payload:{loadingCsv:!0}});const d=S=>{let C="";for(let I=0;I<S.length;I++){let N=S[I]===null?"":S[I].toString();S[I]instanceof Date&&(N=S[I].toLocaleString());let M=N.replace(/"/g,'""');M.search(/("|,|\n)/g)>=0&&(M='"'+M+'"'),I>0&&(C+=","),C+=M}return C+`
7
+ `};let m="";for(let S=0;S<t.length;S++)m+=d(t[S]);let v=new Blob([m],{type:"text/csv;charset=utf-8;"});if(navigator.msSaveBlob)navigator.msSaveBlob(v,"export.csv");else{let S=document.createElement("a");if(S.download!==void 0){let C=URL.createObjectURL(v);S.setAttribute("href",C),S.setAttribute("download","export.csv"),S.style.visibility="hidden",document.body.appendChild(S),S.click(),document.body.removeChild(S)}}n({type:"EXPORT_TO_CSV_FINISHED",payload:{loadingCsv:!1}})},doGenerateGeoJSON:t=>({dispatch:n,store:s})=>{n({type:"EXPORT_TO_GEOJSON_INITIATED",payload:{loadingGeoJSON:!0}});let d=new Blob([JSON.stringify(t)],{type:"text/csv;charset=utf-8;"});if(navigator.msSaveBlob)navigator.msSaveBlob(d,"export.geojson");else{let m=document.createElement("a");if(m.download!==void 0){let v=URL.createObjectURL(d);m.setAttribute("href",v),m.setAttribute("download","export.geojson"),m.style.visibility="hidden",document.body.appendChild(m),m.click(),document.body.removeChild(m)}}n({type:"EXPORT_TO_GEOJSON_FINISHED",payload:{loadingGeoJSON:!1}})}};var parallel$2={exports:{}},eachOf={exports:{}},isArrayLike={exports:{}},hasRequiredIsArrayLike$1;function requireIsArrayLike$1(){return hasRequiredIsArrayLike$1||(hasRequiredIsArrayLike$1=1,(function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=s;function s(d){return d&&typeof d.length=="number"&&d.length>=0&&d.length%1===0}t.exports=n.default})(isArrayLike,isArrayLike.exports)),isArrayLike.exports}var breakLoop={exports:{}},hasRequiredBreakLoop;function requireBreakLoop(){return hasRequiredBreakLoop||(hasRequiredBreakLoop=1,(function(t,n){Object.defineProperty(n,"__esModule",{value:!0});const s={};n.default=s,t.exports=n.default})(breakLoop,breakLoop.exports)),breakLoop.exports}var eachOfLimit$1={exports:{}},eachOfLimit={exports:{}},once={exports:{}},hasRequiredOnce;function requireOnce(){return hasRequiredOnce||(hasRequiredOnce=1,(function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=s;function s(d){function m(...v){if(d!==null){var S=d;d=null,S.apply(this,v)}}return Object.assign(m,d),m}t.exports=n.default})(once,once.exports)),once.exports}var iterator={exports:{}},getIterator={exports:{}},hasRequiredGetIterator;function requireGetIterator(){return hasRequiredGetIterator||(hasRequiredGetIterator=1,(function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(s){return s[Symbol.iterator]&&s[Symbol.iterator]()},t.exports=n.default})(getIterator,getIterator.exports)),getIterator.exports}var hasRequiredIterator;function requireIterator(){return hasRequiredIterator||(hasRequiredIterator=1,(function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=M;var s=requireIsArrayLike$1(),d=S(s),m=requireGetIterator(),v=S(m);function S(k){return k&&k.__esModule?k:{default:k}}function C(k){var z=-1,V=k.length;return function(){return++z<V?{value:k[z],key:z}:null}}function I(k){var z=-1;return function(){var H=k.next();return H.done?null:(z++,{value:H.value,key:z})}}function N(k){var z=k?Object.keys(k):[],V=-1,H=z.length;return function W(){var J=z[++V];return J==="__proto__"?W():V<H?{value:k[J],key:J}:null}}function M(k){if((0,d.default)(k))return C(k);var z=(0,v.default)(k);return z?I(z):N(k)}t.exports=n.default})(iterator,iterator.exports)),iterator.exports}var onlyOnce={exports:{}},hasRequiredOnlyOnce;function requireOnlyOnce(){return hasRequiredOnlyOnce||(hasRequiredOnlyOnce=1,(function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=s;function s(d){return function(...m){if(d===null)throw new Error("Callback was already called.");var v=d;d=null,v.apply(this,m)}}t.exports=n.default})(onlyOnce,onlyOnce.exports)),onlyOnce.exports}var wrapAsync={},asyncify={exports:{}},initialParams={exports:{}},hasRequiredInitialParams;function requireInitialParams(){return hasRequiredInitialParams||(hasRequiredInitialParams=1,(function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(s){return function(...d){var m=d.pop();return s.call(this,d,m)}},t.exports=n.default})(initialParams,initialParams.exports)),initialParams.exports}var setImmediate$1={},hasRequiredSetImmediate;function requireSetImmediate(){if(hasRequiredSetImmediate)return setImmediate$1;hasRequiredSetImmediate=1,Object.defineProperty(setImmediate$1,"__esModule",{value:!0}),setImmediate$1.fallback=d,setImmediate$1.wrap=m;var t=setImmediate$1.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,n=setImmediate$1.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,s=setImmediate$1.hasNextTick=typeof process$1=="object"&&typeof process$1.nextTick=="function";function d(S){setTimeout(S,0)}function m(S){return(C,...I)=>S(()=>C(...I))}var v;return t?v=queueMicrotask:n?v=setImmediate:s?v=process$1.nextTick:v=d,setImmediate$1.default=m(v),setImmediate$1}var hasRequiredAsyncify;function requireAsyncify(){return hasRequiredAsyncify||(hasRequiredAsyncify=1,(function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=I;var s=requireInitialParams(),d=C(s),m=requireSetImmediate(),v=C(m),S=requireWrapAsync();function C(k){return k&&k.__esModule?k:{default:k}}function I(k){return(0,S.isAsync)(k)?function(...z){const V=z.pop(),H=k.apply(this,z);return N(H,V)}:(0,d.default)(function(z,V){var H;try{H=k.apply(this,z)}catch(W){return V(W)}if(H&&typeof H.then=="function")return N(H,V);V(null,H)})}function N(k,z){return k.then(V=>{M(z,null,V)},V=>{M(z,V&&(V instanceof Error||V.message)?V:new Error(V))})}function M(k,z,V){try{k(z,V)}catch(H){(0,v.default)(W=>{throw W},H)}}t.exports=n.default})(asyncify,asyncify.exports)),asyncify.exports}var hasRequiredWrapAsync;function requireWrapAsync(){if(hasRequiredWrapAsync)return wrapAsync;hasRequiredWrapAsync=1,Object.defineProperty(wrapAsync,"__esModule",{value:!0}),wrapAsync.isAsyncIterable=wrapAsync.isAsyncGenerator=wrapAsync.isAsync=void 0;var t=requireAsyncify(),n=s(t);function s(C){return C&&C.__esModule?C:{default:C}}function d(C){return C[Symbol.toStringTag]==="AsyncFunction"}function m(C){return C[Symbol.toStringTag]==="AsyncGenerator"}function v(C){return typeof C[Symbol.asyncIterator]=="function"}function S(C){if(typeof C!="function")throw new Error("expected a function");return d(C)?(0,n.default)(C):C}return wrapAsync.default=S,wrapAsync.isAsync=d,wrapAsync.isAsyncGenerator=m,wrapAsync.isAsyncIterable=v,wrapAsync}var asyncEachOfLimit={exports:{}},hasRequiredAsyncEachOfLimit;function requireAsyncEachOfLimit(){return hasRequiredAsyncEachOfLimit||(hasRequiredAsyncEachOfLimit=1,(function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=v;var s=requireBreakLoop(),d=m(s);function m(S){return S&&S.__esModule?S:{default:S}}function v(S,C,I,N){let M=!1,k=!1,z=!1,V=0,H=0;function W(){V>=C||z||M||(z=!0,S.next().then(({value:re,done:te})=>{if(!(k||M)){if(z=!1,te){M=!0,V<=0&&N(null);return}V++,I(re,H,J),H++,W()}}).catch(K))}function J(re,te){if(V-=1,!k){if(re)return K(re);if(re===!1){M=!0,k=!0;return}if(te===d.default||M&&V<=0)return M=!0,N(null);W()}}function K(re){k||(z=!1,M=!0,N(re))}W()}t.exports=n.default})(asyncEachOfLimit,asyncEachOfLimit.exports)),asyncEachOfLimit.exports}var hasRequiredEachOfLimit$1;function requireEachOfLimit$1(){return hasRequiredEachOfLimit$1||(hasRequiredEachOfLimit$1=1,(function(t,n){Object.defineProperty(n,"__esModule",{value:!0});var s=requireOnce(),d=V(s),m=requireIterator(),v=V(m),S=requireOnlyOnce(),C=V(S),I=requireWrapAsync(),N=requireAsyncEachOfLimit(),M=V(N),k=requireBreakLoop(),z=V(k);function V(H){return H&&H.__esModule?H:{default:H}}n.default=H=>(W,J,K)=>{if(K=(0,d.default)(K),H<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!W)return K(null);if((0,I.isAsyncGenerator)(W))return(0,M.default)(W,H,J,K);if((0,I.isAsyncIterable)(W))return(0,M.default)(W[Symbol.asyncIterator](),H,J,K);var re=(0,v.default)(W),te=!1,ue=!1,se=0,ge=!1;function pe(ce,me){if(!ue)if(se-=1,ce)te=!0,K(ce);else if(ce===!1)te=!0,ue=!0;else{if(me===z.default||te&&se<=0)return te=!0,K(null);ge||Ee()}}function Ee(){for(ge=!0;se<H&&!te;){var ce=re();if(ce===null){te=!0,se<=0&&K(null);return}se+=1,J(ce.value,ce.key,(0,C.default)(pe))}ge=!1}Ee()},t.exports=n.default})(eachOfLimit,eachOfLimit.exports)),eachOfLimit.exports}var awaitify={exports:{}},hasRequiredAwaitify;function requireAwaitify(){return hasRequiredAwaitify||(hasRequiredAwaitify=1,(function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=s;function s(d,m){if(m||(m=d.length),!m)throw new Error("arity is undefined");function v(...S){return typeof S[m-1]=="function"?d.apply(this,S):new Promise((C,I)=>{S[m-1]=(N,...M)=>{if(N)return I(N);C(M.length>1?M:M[0])},d.apply(this,S)})}return v}t.exports=n.default})(awaitify,awaitify.exports)),awaitify.exports}var hasRequiredEachOfLimit;function requireEachOfLimit(){return hasRequiredEachOfLimit||(hasRequiredEachOfLimit=1,(function(t,n){Object.defineProperty(n,"__esModule",{value:!0});var s=requireEachOfLimit$1(),d=I(s),m=requireWrapAsync(),v=I(m),S=requireAwaitify(),C=I(S);function I(M){return M&&M.__esModule?M:{default:M}}function N(M,k,z,V){return(0,d.default)(k)(M,(0,v.default)(z),V)}n.default=(0,C.default)(N,4),t.exports=n.default})(eachOfLimit$1,eachOfLimit$1.exports)),eachOfLimit$1.exports}var hasRequiredEachOf;function requireEachOf(){return hasRequiredEachOf||(hasRequiredEachOf=1,(function(t,n){Object.defineProperty(n,"__esModule",{value:!0});var s=requireIsArrayLike$1(),d=J(s),m=requireBreakLoop(),v=J(m),S=requireEachOfLimit(),C=J(S),I=requireOnce(),N=J(I),M=requireOnlyOnce(),k=J(M),z=requireWrapAsync(),V=J(z),H=requireAwaitify(),W=J(H);function J(ue){return ue&&ue.__esModule?ue:{default:ue}}function K(ue,se,ge){ge=(0,N.default)(ge);var pe=0,Ee=0,{length:ce}=ue,me=!1;ce===0&&ge(null);function Re(Ne,we){Ne===!1&&(me=!0),me!==!0&&(Ne?ge(Ne):(++Ee===ce||we===v.default)&&ge(null))}for(;pe<ce;pe++)se(ue[pe],pe,(0,k.default)(Re))}function re(ue,se,ge){return(0,C.default)(ue,1/0,se,ge)}function te(ue,se,ge){var pe=(0,d.default)(ue)?K:re;return pe(ue,(0,V.default)(se),ge)}n.default=(0,W.default)(te,3),t.exports=n.default})(eachOf,eachOf.exports)),eachOf.exports}var parallel$1={exports:{}},hasRequiredParallel$1;function requireParallel$1(){return hasRequiredParallel$1||(hasRequiredParallel$1=1,(function(t,n){Object.defineProperty(n,"__esModule",{value:!0});var s=requireIsArrayLike$1(),d=I(s),m=requireWrapAsync(),v=I(m),S=requireAwaitify(),C=I(S);function I(N){return N&&N.__esModule?N:{default:N}}n.default=(0,C.default)((N,M,k)=>{var z=(0,d.default)(M)?[]:{};N(M,(V,H,W)=>{(0,v.default)(V)((J,...K)=>{K.length<2&&([K]=K),z[H]=K,W(J)})},V=>k(V,z))},3),t.exports=n.default})(parallel$1,parallel$1.exports)),parallel$1.exports}var hasRequiredParallel;function requireParallel(){return hasRequiredParallel||(hasRequiredParallel=1,(function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=C;var s=requireEachOf(),d=S(s),m=requireParallel$1(),v=S(m);function S(I){return I&&I.__esModule?I:{default:I}}function C(I,N){return(0,v.default)(d.default,I,N)}t.exports=n.default})(parallel$2,parallel$2.exports)),parallel$2.exports}var parallelExports=requireParallel();const parallel=getDefaultExportFromCjs$1(parallelExports);var _arrayPush,hasRequired_arrayPush;function require_arrayPush(){if(hasRequired_arrayPush)return _arrayPush;hasRequired_arrayPush=1;function t(n,s){for(var d=-1,m=s.length,v=n.length;++d<m;)n[v+d]=s[d];return n}return _arrayPush=t,_arrayPush}var _baseIsArguments,hasRequired_baseIsArguments;function require_baseIsArguments(){if(hasRequired_baseIsArguments)return _baseIsArguments;hasRequired_baseIsArguments=1;var t=require_baseGetTag(),n=requireIsObjectLike(),s="[object Arguments]";function d(m){return n(m)&&t(m)==s}return _baseIsArguments=d,_baseIsArguments}var isArguments_1,hasRequiredIsArguments;function requireIsArguments(){if(hasRequiredIsArguments)return isArguments_1;hasRequiredIsArguments=1;var t=require_baseIsArguments(),n=requireIsObjectLike(),s=Object.prototype,d=s.hasOwnProperty,m=s.propertyIsEnumerable,v=t((function(){return arguments})())?t:function(S){return n(S)&&d.call(S,"callee")&&!m.call(S,"callee")};return isArguments_1=v,isArguments_1}var isArray_1,hasRequiredIsArray;function requireIsArray(){if(hasRequiredIsArray)return isArray_1;hasRequiredIsArray=1;var t=Array.isArray;return isArray_1=t,isArray_1}var _isFlattenable,hasRequired_isFlattenable;function require_isFlattenable(){if(hasRequired_isFlattenable)return _isFlattenable;hasRequired_isFlattenable=1;var t=require_Symbol(),n=requireIsArguments(),s=requireIsArray(),d=t?t.isConcatSpreadable:void 0;function m(v){return s(v)||n(v)||!!(d&&v&&v[d])}return _isFlattenable=m,_isFlattenable}var _baseFlatten,hasRequired_baseFlatten;function require_baseFlatten(){if(hasRequired_baseFlatten)return _baseFlatten;hasRequired_baseFlatten=1;var t=require_arrayPush(),n=require_isFlattenable();function s(d,m,v,S,C){var I=-1,N=d.length;for(v||(v=n),C||(C=[]);++I<N;){var M=d[I];m>0&&v(M)?m>1?s(M,m-1,v,S,C):t(C,M):S||(C[C.length]=M)}return C}return _baseFlatten=s,_baseFlatten}var flatten_1,hasRequiredFlatten;function requireFlatten(){if(hasRequiredFlatten)return flatten_1;hasRequiredFlatten=1;var t=require_baseFlatten();function n(s){var d=s==null?0:s.length;return d?t(s,1):[]}return flatten_1=n,flatten_1}var flattenExports=requireFlatten();const flatten=getDefaultExportFromCjs$1(flattenExports);var earthRadius=63710088e-1,factors={centimeters:earthRadius*100,centimetres:earthRadius*100,degrees:360/(2*Math.PI),feet:earthRadius*3.28084,inches:earthRadius*39.37,kilometers:earthRadius/1e3,kilometres:earthRadius/1e3,meters:earthRadius,metres:earthRadius,miles:earthRadius/1609.344,millimeters:earthRadius*1e3,millimetres:earthRadius*1e3,nauticalmiles:earthRadius/1852,radians:1,yards:earthRadius*1.0936};function feature(t,n,s={}){const d={type:"Feature"};return(s.id===0||s.id)&&(d.id=s.id),s.bbox&&(d.bbox=s.bbox),d.properties=n||{},d.geometry=t,d}function point(t,n,s={}){if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!isNumber$1(t[0])||!isNumber$1(t[1]))throw new Error("coordinates must contain numbers");return feature({type:"Point",coordinates:t},n,s)}function polygon(t,n,s={}){for(const m of t){if(m.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(m[m.length-1].length!==m[0].length)throw new Error("First and last Position are not equivalent.");for(let v=0;v<m[m.length-1].length;v++)if(m[m.length-1][v]!==m[0][v])throw new Error("First and last Position are not equivalent.")}return feature({type:"Polygon",coordinates:t},n,s)}function lineString(t,n,s={}){if(t.length<2)throw new Error("coordinates must be an array of two or more positions");return feature({type:"LineString",coordinates:t},n,s)}function featureCollection(t,n={}){const s={type:"FeatureCollection"};return n.id&&(s.id=n.id),n.bbox&&(s.bbox=n.bbox),s.features=t,s}function multiLineString(t,n,s={}){return feature({type:"MultiLineString",coordinates:t},n,s)}function radiansToLength(t,n="kilometers"){const s=factors[n];if(!s)throw new Error(n+" units is invalid");return t*s}function lengthToRadians(t,n="kilometers"){const s=factors[n];if(!s)throw new Error(n+" units is invalid");return t/s}function isNumber$1(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}function coordEach(t,n,s){if(t!==null)for(var d,m,v,S,C,I,N,M=0,k=0,z,V=t.type,H=V==="FeatureCollection",W=V==="Feature",J=H?t.features.length:1,K=0;K<J;K++){N=H?t.features[K].geometry:W?t.geometry:t,z=N?N.type==="GeometryCollection":!1,C=z?N.geometries.length:1;for(var re=0;re<C;re++){var te=0,ue=0;if(S=z?N.geometries[re]:N,S!==null){I=S.coordinates;var se=S.type;switch(M=0,se){case null:break;case"Point":if(n(I,k,K,te,ue)===!1)return!1;k++,te++;break;case"LineString":case"MultiPoint":for(d=0;d<I.length;d++){if(n(I[d],k,K,te,ue)===!1)return!1;k++,se==="MultiPoint"&&te++}se==="LineString"&&te++;break;case"Polygon":case"MultiLineString":for(d=0;d<I.length;d++){for(m=0;m<I[d].length-M;m++){if(n(I[d][m],k,K,te,ue)===!1)return!1;k++}se==="MultiLineString"&&te++,se==="Polygon"&&ue++}se==="Polygon"&&te++;break;case"MultiPolygon":for(d=0;d<I.length;d++){for(ue=0,m=0;m<I[d].length;m++){for(v=0;v<I[d][m].length-M;v++){if(n(I[d][m][v],k,K,te,ue)===!1)return!1;k++}ue++}te++}break;case"GeometryCollection":for(d=0;d<S.geometries.length;d++)if(coordEach(S.geometries[d],n)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function featureEach(t,n){if(t.type==="Feature")n(t,0);else if(t.type==="FeatureCollection")for(var s=0;s<t.features.length&&n(t.features[s],s)!==!1;s++);}function geomEach(t,n){var s,d,m,v,S,C,I,N,M,k,z=0,V=t.type==="FeatureCollection",H=t.type==="Feature",W=V?t.features.length:1;for(s=0;s<W;s++){for(C=V?t.features[s].geometry:H?t.geometry:t,N=V?t.features[s].properties:H?t.properties:{},M=V?t.features[s].bbox:H?t.bbox:void 0,k=V?t.features[s].id:H?t.id:void 0,I=C?C.type==="GeometryCollection":!1,S=I?C.geometries.length:1,m=0;m<S;m++){if(v=I?C.geometries[m]:C,v===null){if(n(null,z,N,M,k)===!1)return!1;continue}switch(v.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(n(v,z,N,M,k)===!1)return!1;break}case"GeometryCollection":{for(d=0;d<v.geometries.length;d++)if(n(v.geometries[d],z,N,M,k)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}z++}}function flattenEach(t,n){geomEach(t,function(s,d,m,v,S){var C=s===null?null:s.type;switch(C){case null:case"Point":case"LineString":case"Polygon":return n(feature(s,m,{bbox:v,id:S}),d,0)===!1?!1:void 0}var I;switch(C){case"MultiPoint":I="Point";break;case"MultiLineString":I="LineString";break;case"MultiPolygon":I="Polygon";break}for(var N=0;N<s.coordinates.length;N++){var M=s.coordinates[N],k={type:I,coordinates:M};if(n(feature(k,m),d,N)===!1)return!1}})}function bbox(t,n={}){if(t.bbox!=null&&n.recompute!==!0)return t.bbox;const s=[1/0,1/0,-1/0,-1/0];return coordEach(t,d=>{s[0]>d[0]&&(s[0]=d[0]),s[1]>d[1]&&(s[1]=d[1]),s[2]<d[0]&&(s[2]=d[0]),s[3]<d[1]&&(s[3]=d[1])}),s}var index_default$2=bbox;function center(t,n={}){const s=bbox(t),d=(s[0]+s[2])/2,m=(s[1]+s[3])/2;return point([d,m],n.properties,n)}var jsts_min$1={exports:{}},jsts_min=jsts_min$1.exports,hasRequiredJsts_min;function requireJsts_min(){return hasRequiredJsts_min||(hasRequiredJsts_min=1,(function(t,n){(function(s,d){t.exports=d()})(jsts_min,(function(){function s(x,h){(h==null||h>x.length)&&(h=x.length);for(var g=0,E=Array(h);g<h;g++)E[g]=x[g];return E}function d(x,h,g){return h=M(h),(function(E,O){if(O&&(typeof O=="object"||typeof O=="function"))return O;if(O!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(G){if(G===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G})(E)})(x,z()?Reflect.construct(h,g||[],M(x).constructor):h.apply(x,g))}function m(x,h){if(!(x instanceof h))throw new TypeError("Cannot call a class as a function")}function v(x,h,g){if(z())return Reflect.construct.apply(null,arguments);var E=[null];E.push.apply(E,h);var O=new(x.bind.apply(x,E));return g&&V(O,g.prototype),O}function S(x,h){for(var g=0;g<h.length;g++){var E=h[g];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(x,J(E.key),E)}}function C(x,h,g){return h&&S(x.prototype,h),g&&S(x,g),Object.defineProperty(x,"prototype",{writable:!1}),x}function I(x,h){var g=typeof Symbol<"u"&&x[Symbol.iterator]||x["@@iterator"];if(!g){if(Array.isArray(x)||(g=K(x))||h){g&&(x=g);var E=0,O=function(){};return{s:O,n:function(){return E>=x.length?{done:!0}:{done:!1,value:x[E++]}},e:function(ne){throw ne},f:O}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
8
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var G,Y=!0,$=!1;return{s:function(){g=g.call(x)},n:function(){var ne=g.next();return Y=ne.done,ne},e:function(ne){$=!0,G=ne},f:function(){try{Y||g.return==null||g.return()}finally{if($)throw G}}}}function N(){return N=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(x,h,g){var E=(function(G,Y){for(;!{}.hasOwnProperty.call(G,Y)&&(G=M(G))!==null;);return G})(x,h);if(E){var O=Object.getOwnPropertyDescriptor(E,h);return O.get?O.get.call(arguments.length<3?x:g):O.value}},N.apply(null,arguments)}function M(x){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(h){return h.__proto__||Object.getPrototypeOf(h)},M(x)}function k(x,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(h&&h.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),Object.defineProperty(x,"prototype",{writable:!1}),h&&V(x,h)}function z(){try{var x=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(z=function(){return!!x})()}function V(x,h){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,E){return g.__proto__=E,g},V(x,h)}function H(x,h,g,E){var O=N(M(1&E?x.prototype:x),h,g);return 2&E&&typeof O=="function"?function(G){return O.apply(g,G)}:O}function W(x){return(function(h){if(Array.isArray(h))return s(h)})(x)||(function(h){if(typeof Symbol<"u"&&h[Symbol.iterator]!=null||h["@@iterator"]!=null)return Array.from(h)})(x)||K(x)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
9
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function J(x){var h=(function(g,E){if(typeof g!="object"||!g)return g;var O=g[Symbol.toPrimitive];if(O!==void 0){var G=O.call(g,E);if(typeof G!="object")return G;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)})(x,"string");return typeof h=="symbol"?h:h+""}function K(x,h){if(x){if(typeof x=="string")return s(x,h);var g={}.toString.call(x).slice(8,-1);return g==="Object"&&x.constructor&&(g=x.constructor.name),g==="Map"||g==="Set"?Array.from(x):g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g)?s(x,h):void 0}}function re(x){var h=typeof Map=="function"?new Map:void 0;return re=function(g){if(g===null||!(function(O){try{return Function.toString.call(O).indexOf("[native code]")!==-1}catch{return typeof O=="function"}})(g))return g;if(typeof g!="function")throw new TypeError("Super expression must either be null or a function");if(h!==void 0){if(h.has(g))return h.get(g);h.set(g,E)}function E(){return v(g,arguments,M(this).constructor)}return E.prototype=Object.create(g.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),V(E,g)},re(x)}var te=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"getEndCapStyle",value:function(){return this._endCapStyle}},{key:"isSingleSided",value:function(){return this._isSingleSided}},{key:"setQuadrantSegments",value:function(h){this._quadrantSegments=h,this._quadrantSegments===0&&(this._joinStyle=x.JOIN_BEVEL),this._quadrantSegments<0&&(this._joinStyle=x.JOIN_MITRE,this._mitreLimit=Math.abs(this._quadrantSegments)),h<=0&&(this._quadrantSegments=1),this._joinStyle!==x.JOIN_ROUND&&(this._quadrantSegments=x.DEFAULT_QUADRANT_SEGMENTS)}},{key:"getJoinStyle",value:function(){return this._joinStyle}},{key:"setJoinStyle",value:function(h){this._joinStyle=h}},{key:"setSimplifyFactor",value:function(h){this._simplifyFactor=h<0?0:h}},{key:"getSimplifyFactor",value:function(){return this._simplifyFactor}},{key:"getQuadrantSegments",value:function(){return this._quadrantSegments}},{key:"setEndCapStyle",value:function(h){this._endCapStyle=h}},{key:"getMitreLimit",value:function(){return this._mitreLimit}},{key:"setMitreLimit",value:function(h){this._mitreLimit=h}},{key:"setSingleSided",value:function(h){this._isSingleSided=h}}],[{key:"constructor_",value:function(){if(this._quadrantSegments=x.DEFAULT_QUADRANT_SEGMENTS,this._endCapStyle=x.CAP_ROUND,this._joinStyle=x.JOIN_ROUND,this._mitreLimit=x.DEFAULT_MITRE_LIMIT,this._isSingleSided=!1,this._simplifyFactor=x.DEFAULT_SIMPLIFY_FACTOR,arguments.length!==0){if(arguments.length===1){var h=arguments[0];this.setQuadrantSegments(h)}else if(arguments.length===2){var g=arguments[0],E=arguments[1];this.setQuadrantSegments(g),this.setEndCapStyle(E)}else if(arguments.length===4){var O=arguments[0],G=arguments[1],Y=arguments[2],$=arguments[3];this.setQuadrantSegments(O),this.setEndCapStyle(G),this.setJoinStyle(Y),this.setMitreLimit($)}}}},{key:"bufferDistanceError",value:function(h){var g=Math.PI/2/h;return 1-Math.cos(g/2)}}])})();te.CAP_ROUND=1,te.CAP_FLAT=2,te.CAP_SQUARE=3,te.JOIN_ROUND=1,te.JOIN_MITRE=2,te.JOIN_BEVEL=3,te.DEFAULT_QUADRANT_SEGMENTS=8,te.DEFAULT_MITRE_LIMIT=5,te.DEFAULT_SIMPLIFY_FACTOR=.01;var ue=(function(x){function h(g){var E;return m(this,h),(E=d(this,h,[g])).name=Object.keys({Exception:h})[0],E}return k(h,x),C(h,[{key:"toString",value:function(){return this.message}}])})(re(Error)),se=(function(x){function h(g){var E;return m(this,h),(E=d(this,h,[g])).name=Object.keys({IllegalArgumentException:h})[0],E}return k(h,x),C(h)})(ue),ge=(function(){return C((function x(){m(this,x)}),[{key:"filter",value:function(x){}}])})();function pe(){}function Ee(){}function ce(){}var me,Re,Ne,we,De,Ge,de,Ce,ke=(function(){return C((function x(){m(this,x)}),null,[{key:"equalsWithTolerance",value:function(x,h,g){return Math.abs(x-h)<=g}}])})(),We=(function(){return C((function x(h,g){m(this,x),this.low=g||0,this.high=h||0}),null,[{key:"toBinaryString",value:function(x){var h,g="";for(h=2147483648;h>0;h>>>=1)g+=(x.high&h)===h?"1":"0";for(h=2147483648;h>0;h>>>=1)g+=(x.low&h)===h?"1":"0";return g}}])})();function Ve(){}function Le(){}Ve.NaN=NaN,Ve.isNaN=function(x){return Number.isNaN(x)},Ve.isInfinite=function(x){return!Number.isFinite(x)},Ve.MAX_VALUE=Number.MAX_VALUE,Ve.POSITIVE_INFINITY=Number.POSITIVE_INFINITY,Ve.NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY,typeof Float64Array=="function"&&typeof Int32Array=="function"?(Ge=2146435072,de=new Float64Array(1),Ce=new Int32Array(de.buffer),Ve.doubleToLongBits=function(x){de[0]=x;var h=0|Ce[0],g=0|Ce[1];return(g&Ge)===Ge&&1048575&g&&h!==0&&(h=0,g=2146959360),new We(g,h)},Ve.longBitsToDouble=function(x){return Ce[0]=x.low,Ce[1]=x.high,de[0]}):(me=1023,Re=Math.log2,Ne=Math.floor,we=Math.pow,De=(function(){for(var x=53;x>0;x--){var h=we(2,x)-1;if(Ne(Re(h))+1===x)return h}return 0})(),Ve.doubleToLongBits=function(x){var h,g,E,O,G,Y,$,ne,he;if(x<0||1/x===Number.NEGATIVE_INFINITY?(Y=1<<31,x=-x):Y=0,x===0)return new We(ne=Y,he=0);if(x===1/0)return new We(ne=2146435072|Y,he=0);if(x!=x)return new We(ne=2146959360,he=0);if(O=0,he=0,(h=Ne(x))>1)if(h<=De)(O=Ne(Re(h)))<=20?(he=0,ne=h<<20-O&1048575):(he=h%(g=we(2,E=O-20))<<32-E,ne=h/g&1048575);else for(E=h,he=0;(E=Ne(g=E/2))!==0;)O++,he>>>=1,he|=(1&ne)<<31,ne>>>=1,g!==E&&(ne|=524288);if($=O+me,G=h===0,h=x-h,O<52&&h!==0)for(E=0;;){if((g=2*h)>=1?(h=g-1,G?($--,G=!1):(E<<=1,E|=1,O++)):(h=g,G?--$==0&&(O++,G=!1):(E<<=1,O++)),O===20)ne|=E,E=0;else if(O===52){he|=E;break}if(g===1){O<20?ne|=E<<20-O:O<52&&(he|=E<<52-O);break}}return ne|=$<<20,new We(ne|=Y,he)},Ve.longBitsToDouble=function(x){var h,g,E,O,G=x.high,Y=x.low,$=G&1<<31?-1:1;for(E=((2146435072&G)>>20)-me,O=0,g=1<<19,h=1;h<=20;h++)G&g&&(O+=we(2,-h)),g>>>=1;for(g=1<<31,h=21;h<=52;h++)Y&g&&(O+=we(2,-h)),g>>>=1;if(E===-1023){if(O===0)return 0*$;E=-1022}else{if(E===1024)return O===0?$/0:NaN;O+=1}return $*O*we(2,E)});var Je=(function(x){function h(g){var E;return m(this,h),(E=d(this,h,[g])).name=Object.keys({RuntimeException:h})[0],E}return k(h,x),C(h)})(ue),He=(function(x){function h(){var g;return m(this,h),g=d(this,h),h.constructor_.apply(g,arguments),g}return k(h,x),C(h,null,[{key:"constructor_",value:function(){if(arguments.length===0)Je.constructor_.call(this);else if(arguments.length===1){var g=arguments[0];Je.constructor_.call(this,g)}}}])})(Je),Pe=(function(){function x(){m(this,x)}return C(x,null,[{key:"shouldNeverReachHere",value:function(){if(arguments.length===0)x.shouldNeverReachHere(null);else if(arguments.length===1){var h=arguments[0];throw new He("Should never reach here"+(h!==null?": "+h:""))}}},{key:"isTrue",value:function(){if(arguments.length===1){var h=arguments[0];x.isTrue(h,null)}else if(arguments.length===2){var g=arguments[1];if(!arguments[0])throw g===null?new He:new He(g)}}},{key:"equals",value:function(){if(arguments.length===2){var h=arguments[0],g=arguments[1];x.equals(h,g,null)}else if(arguments.length===3){var E=arguments[0],O=arguments[1],G=arguments[2];if(!O.equals(E))throw new He("Expected "+E+" but encountered "+O+(G!==null?": "+G:""))}}}])})(),it=new ArrayBuffer(8),pt=new Float64Array(it),gt=new Int32Array(it),xe=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"getM",value:function(){return Ve.NaN}},{key:"setOrdinate",value:function(h,g){switch(h){case x.X:this.x=g;break;case x.Y:this.y=g;break;case x.Z:this.setZ(g);break;default:throw new se("Invalid ordinate index: "+h)}}},{key:"equals2D",value:function(){if(arguments.length===1){var h=arguments[0];return this.x===h.x&&this.y===h.y}if(arguments.length===2){var g=arguments[0],E=arguments[1];return!!ke.equalsWithTolerance(this.x,g.x,E)&&!!ke.equalsWithTolerance(this.y,g.y,E)}}},{key:"setM",value:function(h){throw new se("Invalid ordinate index: "+x.M)}},{key:"getZ",value:function(){return this.z}},{key:"getOrdinate",value:function(h){switch(h){case x.X:return this.x;case x.Y:return this.y;case x.Z:return this.getZ()}throw new se("Invalid ordinate index: "+h)}},{key:"equals3D",value:function(h){return this.x===h.x&&this.y===h.y&&(this.getZ()===h.getZ()||Ve.isNaN(this.getZ())&&Ve.isNaN(h.getZ()))}},{key:"equals",value:function(h){return h instanceof x&&this.equals2D(h)}},{key:"equalInZ",value:function(h,g){return ke.equalsWithTolerance(this.getZ(),h.getZ(),g)}},{key:"setX",value:function(h){this.x=h}},{key:"compareTo",value:function(h){var g=h;return this.x<g.x?-1:this.x>g.x?1:this.y<g.y?-1:this.y>g.y?1:0}},{key:"getX",value:function(){return this.x}},{key:"setZ",value:function(h){this.z=h}},{key:"clone",value:function(){try{return null}catch(h){if(h instanceof CloneNotSupportedException)return Pe.shouldNeverReachHere("this shouldn't happen because this class is Cloneable"),null;throw h}}},{key:"copy",value:function(){return new x(this)}},{key:"toString",value:function(){return"("+this.x+", "+this.y+", "+this.getZ()+")"}},{key:"distance3D",value:function(h){var g=this.x-h.x,E=this.y-h.y,O=this.getZ()-h.getZ();return Math.sqrt(g*g+E*E+O*O)}},{key:"getY",value:function(){return this.y}},{key:"setY",value:function(h){this.y=h}},{key:"distance",value:function(h){var g=this.x-h.x,E=this.y-h.y;return Math.sqrt(g*g+E*E)}},{key:"hashCode",value:function(){var h=17;return h=37*(h=37*h+x.hashCode(this.x))+x.hashCode(this.y)}},{key:"setCoordinate",value:function(h){this.x=h.x,this.y=h.y,this.z=h.getZ()}},{key:"interfaces_",get:function(){return[pe,Ee,ce]}}],[{key:"constructor_",value:function(){if(this.x=null,this.y=null,this.z=null,arguments.length===0)x.constructor_.call(this,0,0);else if(arguments.length===1){var h=arguments[0];x.constructor_.call(this,h.x,h.y,h.getZ())}else if(arguments.length===2){var g=arguments[0],E=arguments[1];x.constructor_.call(this,g,E,x.NULL_ORDINATE)}else if(arguments.length===3){var O=arguments[0],G=arguments[1],Y=arguments[2];this.x=O,this.y=G,this.z=Y}}},{key:"hashCode",value:function(h){return pt[0]=h,gt[0]^gt[1]}}])})(),Gt=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"compare",value:function(h,g){var E=x.compare(h.x,g.x);if(E!==0)return E;var O=x.compare(h.y,g.y);return O!==0?O:this._dimensionsToTest<=2?0:x.compare(h.getZ(),g.getZ())}},{key:"interfaces_",get:function(){return[Le]}}],[{key:"constructor_",value:function(){if(this._dimensionsToTest=2,arguments.length===0)x.constructor_.call(this,2);else if(arguments.length===1){var h=arguments[0];if(h!==2&&h!==3)throw new se("only 2 or 3 dimensions may be specified");this._dimensionsToTest=h}}},{key:"compare",value:function(h,g){return h<g?-1:h>g?1:Ve.isNaN(h)?Ve.isNaN(g)?0:-1:Ve.isNaN(g)?1:0}}])})();xe.DimensionalComparator=Gt,xe.NULL_ORDINATE=Ve.NaN,xe.X=0,xe.Y=1,xe.Z=2,xe.M=3;var st=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"getArea",value:function(){return this.getWidth()*this.getHeight()}},{key:"equals",value:function(h){if(!(h instanceof x))return!1;var g=h;return this.isNull()?g.isNull():this._maxx===g.getMaxX()&&this._maxy===g.getMaxY()&&this._minx===g.getMinX()&&this._miny===g.getMinY()}},{key:"intersection",value:function(h){if(this.isNull()||h.isNull()||!this.intersects(h))return new x;var g=this._minx>h._minx?this._minx:h._minx,E=this._miny>h._miny?this._miny:h._miny;return new x(g,this._maxx<h._maxx?this._maxx:h._maxx,E,this._maxy<h._maxy?this._maxy:h._maxy)}},{key:"isNull",value:function(){return this._maxx<this._minx}},{key:"getMaxX",value:function(){return this._maxx}},{key:"covers",value:function(){if(arguments.length===1){if(arguments[0]instanceof xe){var h=arguments[0];return this.covers(h.x,h.y)}if(arguments[0]instanceof x){var g=arguments[0];return!this.isNull()&&!g.isNull()&&g.getMinX()>=this._minx&&g.getMaxX()<=this._maxx&&g.getMinY()>=this._miny&&g.getMaxY()<=this._maxy}}else if(arguments.length===2){var E=arguments[0],O=arguments[1];return!this.isNull()&&E>=this._minx&&E<=this._maxx&&O>=this._miny&&O<=this._maxy}}},{key:"intersects",value:function(){if(arguments.length===1){if(arguments[0]instanceof x){var h=arguments[0];return!this.isNull()&&!h.isNull()&&!(h._minx>this._maxx||h._maxx<this._minx||h._miny>this._maxy||h._maxy<this._miny)}if(arguments[0]instanceof xe){var g=arguments[0];return this.intersects(g.x,g.y)}}else if(arguments.length===2){if(arguments[0]instanceof xe&&arguments[1]instanceof xe){var E=arguments[0],O=arguments[1];return!this.isNull()&&!((E.x<O.x?E.x:O.x)>this._maxx)&&!((E.x>O.x?E.x:O.x)<this._minx)&&!((E.y<O.y?E.y:O.y)>this._maxy)&&!((E.y>O.y?E.y:O.y)<this._miny)}if(typeof arguments[0]=="number"&&typeof arguments[1]=="number"){var G=arguments[0],Y=arguments[1];return!this.isNull()&&!(G>this._maxx||G<this._minx||Y>this._maxy||Y<this._miny)}}}},{key:"getMinY",value:function(){return this._miny}},{key:"getDiameter",value:function(){if(this.isNull())return 0;var h=this.getWidth(),g=this.getHeight();return Math.sqrt(h*h+g*g)}},{key:"getMinX",value:function(){return this._minx}},{key:"expandToInclude",value:function(){if(arguments.length===1){if(arguments[0]instanceof xe){var h=arguments[0];this.expandToInclude(h.x,h.y)}else if(arguments[0]instanceof x){var g=arguments[0];if(g.isNull())return null;this.isNull()?(this._minx=g.getMinX(),this._maxx=g.getMaxX(),this._miny=g.getMinY(),this._maxy=g.getMaxY()):(g._minx<this._minx&&(this._minx=g._minx),g._maxx>this._maxx&&(this._maxx=g._maxx),g._miny<this._miny&&(this._miny=g._miny),g._maxy>this._maxy&&(this._maxy=g._maxy))}}else if(arguments.length===2){var E=arguments[0],O=arguments[1];this.isNull()?(this._minx=E,this._maxx=E,this._miny=O,this._maxy=O):(E<this._minx&&(this._minx=E),E>this._maxx&&(this._maxx=E),O<this._miny&&(this._miny=O),O>this._maxy&&(this._maxy=O))}}},{key:"minExtent",value:function(){if(this.isNull())return 0;var h=this.getWidth(),g=this.getHeight();return h<g?h:g}},{key:"getWidth",value:function(){return this.isNull()?0:this._maxx-this._minx}},{key:"compareTo",value:function(h){var g=h;return this.isNull()?g.isNull()?0:-1:g.isNull()?1:this._minx<g._minx?-1:this._minx>g._minx?1:this._miny<g._miny?-1:this._miny>g._miny?1:this._maxx<g._maxx?-1:this._maxx>g._maxx?1:this._maxy<g._maxy?-1:this._maxy>g._maxy?1:0}},{key:"translate",value:function(h,g){if(this.isNull())return null;this.init(this.getMinX()+h,this.getMaxX()+h,this.getMinY()+g,this.getMaxY()+g)}},{key:"copy",value:function(){return new x(this)}},{key:"toString",value:function(){return"Env["+this._minx+" : "+this._maxx+", "+this._miny+" : "+this._maxy+"]"}},{key:"setToNull",value:function(){this._minx=0,this._maxx=-1,this._miny=0,this._maxy=-1}},{key:"disjoint",value:function(h){return!(!this.isNull()&&!h.isNull())||h._minx>this._maxx||h._maxx<this._minx||h._miny>this._maxy||h._maxy<this._miny}},{key:"getHeight",value:function(){return this.isNull()?0:this._maxy-this._miny}},{key:"maxExtent",value:function(){if(this.isNull())return 0;var h=this.getWidth(),g=this.getHeight();return h>g?h:g}},{key:"expandBy",value:function(){if(arguments.length===1){var h=arguments[0];this.expandBy(h,h)}else if(arguments.length===2){var g=arguments[0],E=arguments[1];if(this.isNull())return null;this._minx-=g,this._maxx+=g,this._miny-=E,this._maxy+=E,(this._minx>this._maxx||this._miny>this._maxy)&&this.setToNull()}}},{key:"contains",value:function(){if(arguments.length===1){if(arguments[0]instanceof x){var h=arguments[0];return this.covers(h)}if(arguments[0]instanceof xe){var g=arguments[0];return this.covers(g)}}else if(arguments.length===2){var E=arguments[0],O=arguments[1];return this.covers(E,O)}}},{key:"centre",value:function(){return this.isNull()?null:new xe((this.getMinX()+this.getMaxX())/2,(this.getMinY()+this.getMaxY())/2)}},{key:"init",value:function(){if(arguments.length===0)this.setToNull();else if(arguments.length===1){if(arguments[0]instanceof xe){var h=arguments[0];this.init(h.x,h.x,h.y,h.y)}else if(arguments[0]instanceof x){var g=arguments[0];this._minx=g._minx,this._maxx=g._maxx,this._miny=g._miny,this._maxy=g._maxy}}else if(arguments.length===2){var E=arguments[0],O=arguments[1];this.init(E.x,O.x,E.y,O.y)}else if(arguments.length===4){var G=arguments[0],Y=arguments[1],$=arguments[2],ne=arguments[3];G<Y?(this._minx=G,this._maxx=Y):(this._minx=Y,this._maxx=G),$<ne?(this._miny=$,this._maxy=ne):(this._miny=ne,this._maxy=$)}}},{key:"getMaxY",value:function(){return this._maxy}},{key:"distance",value:function(h){if(this.intersects(h))return 0;var g=0;this._maxx<h._minx?g=h._minx-this._maxx:this._minx>h._maxx&&(g=this._minx-h._maxx);var E=0;return this._maxy<h._miny?E=h._miny-this._maxy:this._miny>h._maxy&&(E=this._miny-h._maxy),g===0?E:E===0?g:Math.sqrt(g*g+E*E)}},{key:"hashCode",value:function(){var h=17;return h=37*(h=37*(h=37*(h=37*h+xe.hashCode(this._minx))+xe.hashCode(this._maxx))+xe.hashCode(this._miny))+xe.hashCode(this._maxy)}},{key:"interfaces_",get:function(){return[pe,ce]}}],[{key:"constructor_",value:function(){if(this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,arguments.length===0)this.init();else if(arguments.length===1){if(arguments[0]instanceof xe){var h=arguments[0];this.init(h.x,h.x,h.y,h.y)}else if(arguments[0]instanceof x){var g=arguments[0];this.init(g)}}else if(arguments.length===2){var E=arguments[0],O=arguments[1];this.init(E.x,O.x,E.y,O.y)}else if(arguments.length===4){var G=arguments[0],Y=arguments[1],$=arguments[2],ne=arguments[3];this.init(G,Y,$,ne)}}},{key:"intersects",value:function(){if(arguments.length===3){var h=arguments[0],g=arguments[1],E=arguments[2];return E.x>=(h.x<g.x?h.x:g.x)&&E.x<=(h.x>g.x?h.x:g.x)&&E.y>=(h.y<g.y?h.y:g.y)&&E.y<=(h.y>g.y?h.y:g.y)}if(arguments.length===4){var O=arguments[0],G=arguments[1],Y=arguments[2],$=arguments[3],ne=Math.min(Y.x,$.x),he=Math.max(Y.x,$.x),Se=Math.min(O.x,G.x),je=Math.max(O.x,G.x);return!(Se>he)&&!(je<ne)&&(ne=Math.min(Y.y,$.y),he=Math.max(Y.y,$.y),Se=Math.min(O.y,G.y),je=Math.max(O.y,G.y),!(Se>he)&&!(je<ne))}}}])})(),Be=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"isGeometryCollection",value:function(){return this.getTypeCode()===x.TYPECODE_GEOMETRYCOLLECTION}},{key:"getFactory",value:function(){return this._factory}},{key:"getGeometryN",value:function(h){return this}},{key:"getArea",value:function(){return 0}},{key:"isRectangle",value:function(){return!1}},{key:"equalsExact",value:function(h){return this===h||this.equalsExact(h,0)}},{key:"geometryChanged",value:function(){this.apply(x.geometryChangedFilter)}},{key:"geometryChangedAction",value:function(){this._envelope=null}},{key:"equalsNorm",value:function(h){return h!==null&&this.norm().equalsExact(h.norm())}},{key:"getLength",value:function(){return 0}},{key:"getNumGeometries",value:function(){return 1}},{key:"compareTo",value:function(){var h;if(arguments.length===1){var g=arguments[0];return h=g,this.getTypeCode()!==h.getTypeCode()?this.getTypeCode()-h.getTypeCode():this.isEmpty()&&h.isEmpty()?0:this.isEmpty()?-1:h.isEmpty()?1:this.compareToSameClass(g)}if(arguments.length===2){var E=arguments[0],O=arguments[1];return h=E,this.getTypeCode()!==h.getTypeCode()?this.getTypeCode()-h.getTypeCode():this.isEmpty()&&h.isEmpty()?0:this.isEmpty()?-1:h.isEmpty()?1:this.compareToSameClass(E,O)}}},{key:"getUserData",value:function(){return this._userData}},{key:"getSRID",value:function(){return this._SRID}},{key:"getEnvelope",value:function(){return this.getFactory().toGeometry(this.getEnvelopeInternal())}},{key:"checkNotGeometryCollection",value:function(h){if(h.getTypeCode()===x.TYPECODE_GEOMETRYCOLLECTION)throw new se("This method does not support GeometryCollection arguments")}},{key:"equal",value:function(h,g,E){return E===0?h.equals(g):h.distance(g)<=E}},{key:"norm",value:function(){var h=this.copy();return h.normalize(),h}},{key:"reverse",value:function(){var h=this.reverseInternal();return this.envelope!=null&&(h.envelope=this.envelope.copy()),h.setSRID(this.getSRID()),h}},{key:"copy",value:function(){var h=this.copyInternal();return h.envelope=this._envelope==null?null:this._envelope.copy(),h._SRID=this._SRID,h._userData=this._userData,h}},{key:"getPrecisionModel",value:function(){return this._factory.getPrecisionModel()}},{key:"getEnvelopeInternal",value:function(){return this._envelope===null&&(this._envelope=this.computeEnvelopeInternal()),new st(this._envelope)}},{key:"setSRID",value:function(h){this._SRID=h}},{key:"setUserData",value:function(h){this._userData=h}},{key:"compare",value:function(h,g){for(var E=h.iterator(),O=g.iterator();E.hasNext()&&O.hasNext();){var G=E.next(),Y=O.next(),$=G.compareTo(Y);if($!==0)return $}return E.hasNext()?1:O.hasNext()?-1:0}},{key:"hashCode",value:function(){return this.getEnvelopeInternal().hashCode()}},{key:"isEquivalentClass",value:function(h){return this.getClass()===h.getClass()}},{key:"isGeometryCollectionOrDerived",value:function(){return this.getTypeCode()===x.TYPECODE_GEOMETRYCOLLECTION||this.getTypeCode()===x.TYPECODE_MULTIPOINT||this.getTypeCode()===x.TYPECODE_MULTILINESTRING||this.getTypeCode()===x.TYPECODE_MULTIPOLYGON}},{key:"interfaces_",get:function(){return[Ee,pe,ce]}},{key:"getClass",value:function(){return x}}],[{key:"hasNonEmptyElements",value:function(h){for(var g=0;g<h.length;g++)if(!h[g].isEmpty())return!0;return!1}},{key:"hasNullElements",value:function(h){for(var g=0;g<h.length;g++)if(h[g]===null)return!0;return!1}}])})();Be.constructor_=function(x){x&&(this._envelope=null,this._userData=null,this._factory=x,this._SRID=x.getSRID())},Be.TYPECODE_POINT=0,Be.TYPECODE_MULTIPOINT=1,Be.TYPECODE_LINESTRING=2,Be.TYPECODE_LINEARRING=3,Be.TYPECODE_MULTILINESTRING=4,Be.TYPECODE_POLYGON=5,Be.TYPECODE_MULTIPOLYGON=6,Be.TYPECODE_GEOMETRYCOLLECTION=7,Be.TYPENAME_POINT="Point",Be.TYPENAME_MULTIPOINT="MultiPoint",Be.TYPENAME_LINESTRING="LineString",Be.TYPENAME_LINEARRING="LinearRing",Be.TYPENAME_MULTILINESTRING="MultiLineString",Be.TYPENAME_POLYGON="Polygon",Be.TYPENAME_MULTIPOLYGON="MultiPolygon",Be.TYPENAME_GEOMETRYCOLLECTION="GeometryCollection",Be.geometryChangedFilter={get interfaces_(){return[ge]},filter:function(x){x.geometryChangedAction()}};var oe=(function(){function x(){m(this,x)}return C(x,null,[{key:"toLocationSymbol",value:function(h){switch(h){case x.EXTERIOR:return"e";case x.BOUNDARY:return"b";case x.INTERIOR:return"i";case x.NONE:return"-"}throw new se("Unknown location value: "+h)}}])})();oe.INTERIOR=0,oe.BOUNDARY=1,oe.EXTERIOR=2,oe.NONE=-1;var _t=(function(){return C((function x(){m(this,x)}),[{key:"add",value:function(){}},{key:"addAll",value:function(){}},{key:"isEmpty",value:function(){}},{key:"iterator",value:function(){}},{key:"size",value:function(){}},{key:"toArray",value:function(){}},{key:"remove",value:function(){}}])})(),Rt=(function(x){function h(g){var E;return m(this,h),(E=d(this,h,[g])).name=Object.keys({NoSuchElementException:h})[0],E}return k(h,x),C(h)})(ue),kt=(function(x){function h(g){var E;return m(this,h),(E=d(this,h,[g])).name=Object.keys({UnsupportedOperationException:h})[0],E}return k(h,x),C(h)})(ue),dt=(function(x){function h(){return m(this,h),d(this,h,arguments)}return k(h,x),C(h,[{key:"contains",value:function(){}}])})(_t),Fa=(function(x){function h(g){var E;return m(this,h),(E=d(this,h)).map=new Map,g instanceof _t&&E.addAll(g),E}return k(h,x),C(h,[{key:"contains",value:function(g){var E=g.hashCode?g.hashCode():g;return!!this.map.has(E)}},{key:"add",value:function(g){var E=g.hashCode?g.hashCode():g;return!this.map.has(E)&&!!this.map.set(E,g)}},{key:"addAll",value:function(g){var E,O=I(g);try{for(O.s();!(E=O.n()).done;){var G=E.value;this.add(G)}}catch(Y){O.e(Y)}finally{O.f()}return!0}},{key:"remove",value:function(){throw new kt}},{key:"size",value:function(){return this.map.size}},{key:"isEmpty",value:function(){return this.map.size===0}},{key:"toArray",value:function(){return Array.from(this.map.values())}},{key:"iterator",value:function(){return new $a(this.map)}},{key:Symbol.iterator,value:function(){return this.map}}])})(dt),$a=(function(){return C((function x(h){m(this,x),this.iterator=h.values();var g=this.iterator.next(),E=g.done,O=g.value;this.done=E,this.value=O}),[{key:"next",value:function(){if(this.done)throw new Rt;var x=this.value,h=this.iterator.next(),g=h.done,E=h.value;return this.done=g,this.value=E,x}},{key:"hasNext",value:function(){return!this.done}},{key:"remove",value:function(){throw new kt}}])})(),rt=(function(){function x(){m(this,x)}return C(x,null,[{key:"opposite",value:function(h){return h===x.LEFT?x.RIGHT:h===x.RIGHT?x.LEFT:h}}])})();rt.ON=0,rt.LEFT=1,rt.RIGHT=2;var Yt=(function(x){function h(g){var E;return m(this,h),(E=d(this,h,[g])).name=Object.keys({EmptyStackException:h})[0],E}return k(h,x),C(h)})(ue),on=(function(x){function h(g){var E;return m(this,h),(E=d(this,h,[g])).name=Object.keys({IndexOutOfBoundsException:h})[0],E}return k(h,x),C(h)})(ue),Jt=(function(x){function h(){return m(this,h),d(this,h,arguments)}return k(h,x),C(h,[{key:"get",value:function(){}},{key:"set",value:function(){}},{key:"isEmpty",value:function(){}}])})(_t),mr=(function(x){function h(){var g;return m(this,h),(g=d(this,h)).array=[],g}return k(h,x),C(h,[{key:"add",value:function(g){return this.array.push(g),!0}},{key:"get",value:function(g){if(g<0||g>=this.size())throw new on;return this.array[g]}},{key:"push",value:function(g){return this.array.push(g),g}},{key:"pop",value:function(){if(this.array.length===0)throw new Yt;return this.array.pop()}},{key:"peek",value:function(){if(this.array.length===0)throw new Yt;return this.array[this.array.length-1]}},{key:"empty",value:function(){return this.array.length===0}},{key:"isEmpty",value:function(){return this.empty()}},{key:"search",value:function(g){return this.array.indexOf(g)}},{key:"size",value:function(){return this.array.length}},{key:"toArray",value:function(){return this.array.slice()}}])})(Jt);function vt(x,h){return x.interfaces_&&x.interfaces_.indexOf(h)>-1}var Ja=(function(){return C((function x(h){m(this,x),this.str=h}),[{key:"append",value:function(x){this.str+=x}},{key:"setCharAt",value:function(x,h){this.str=this.str.substr(0,x)+h+this.str.substr(x+1)}},{key:"toString",value:function(){return this.str}}])})(),gr=(function(){function x(h){m(this,x),this.value=h}return C(x,[{key:"intValue",value:function(){return this.value}},{key:"compareTo",value:function(h){return this.value<h?-1:this.value>h?1:0}}],[{key:"compare",value:function(h,g){return h<g?-1:h>g?1:0}},{key:"isNan",value:function(h){return Number.isNaN(h)}},{key:"valueOf",value:function(h){return new x(h)}}])})(),yr=(function(){return C((function x(){m(this,x)}),null,[{key:"isWhitespace",value:function(x){return x<=32&&x>=0||x===127}},{key:"toUpperCase",value:function(x){return x.toUpperCase()}}])})(),xt=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"le",value:function(h){return this._hi<h._hi||this._hi===h._hi&&this._lo<=h._lo}},{key:"extractSignificantDigits",value:function(h,g){var E=this.abs(),O=x.magnitude(E._hi),G=x.TEN.pow(O);(E=E.divide(G)).gt(x.TEN)?(E=E.divide(x.TEN),O+=1):E.lt(x.ONE)&&(E=E.multiply(x.TEN),O-=1);for(var Y=O+1,$=new Ja,ne=x.MAX_PRINT_DIGITS-1,he=0;he<=ne;he++){h&&he===Y&&$.append(".");var Se=Math.trunc(E._hi);if(Se<0)break;var je=!1,at=0;Se>9?(je=!0,at="9"):at="0"+Se,$.append(at),E=E.subtract(x.valueOf(Se)).multiply(x.TEN),je&&E.selfAdd(x.TEN);var ct=!0,mt=x.magnitude(E._hi);if(mt<0&&Math.abs(mt)>=ne-he&&(ct=!1),!ct)break}return g[0]=O,$.toString()}},{key:"sqr",value:function(){return this.multiply(this)}},{key:"doubleValue",value:function(){return this._hi+this._lo}},{key:"subtract",value:function(){if(arguments[0]instanceof x){var h=arguments[0];return this.add(h.negate())}if(typeof arguments[0]=="number"){var g=arguments[0];return this.add(-g)}}},{key:"equals",value:function(){if(arguments.length===1&&arguments[0]instanceof x){var h=arguments[0];return this._hi===h._hi&&this._lo===h._lo}}},{key:"isZero",value:function(){return this._hi===0&&this._lo===0}},{key:"selfSubtract",value:function(){if(arguments[0]instanceof x){var h=arguments[0];return this.isNaN()?this:this.selfAdd(-h._hi,-h._lo)}if(typeof arguments[0]=="number"){var g=arguments[0];return this.isNaN()?this:this.selfAdd(-g,0)}}},{key:"getSpecialNumberString",value:function(){return this.isZero()?"0.0":this.isNaN()?"NaN ":null}},{key:"min",value:function(h){return this.le(h)?this:h}},{key:"selfDivide",value:function(){if(arguments.length===1){if(arguments[0]instanceof x){var h=arguments[0];return this.selfDivide(h._hi,h._lo)}if(typeof arguments[0]=="number"){var g=arguments[0];return this.selfDivide(g,0)}}else if(arguments.length===2){var E,O,G,Y,$=arguments[0],ne=arguments[1],he=null,Se=null,je=null,at=null;return G=this._hi/$,at=(he=(je=x.SPLIT*G)-(he=je-G))*(Se=(at=x.SPLIT*$)-(Se=at-$))-(Y=G*$)+he*(O=$-Se)+(E=G-he)*Se+E*O,at=G+(je=(this._hi-Y-at+this._lo-G*ne)/$),this._hi=at,this._lo=G-at+je,this}}},{key:"dump",value:function(){return"DD<"+this._hi+", "+this._lo+">"}},{key:"divide",value:function(){if(arguments[0]instanceof x){var h,g,E,O,G=arguments[0],Y=null,$=null,ne=null,he=null;return h=(E=this._hi/G._hi)-(Y=(ne=x.SPLIT*E)-(Y=ne-E)),he=Y*($=(he=x.SPLIT*G._hi)-($=he-G._hi))-(O=E*G._hi)+Y*(g=G._hi-$)+h*$+h*g,new x(he=E+(ne=(this._hi-O-he+this._lo-E*G._lo)/G._hi),E-he+ne)}if(typeof arguments[0]=="number"){var Se=arguments[0];return Ve.isNaN(Se)?x.createNaN():x.copy(this).selfDivide(Se,0)}}},{key:"ge",value:function(h){return this._hi>h._hi||this._hi===h._hi&&this._lo>=h._lo}},{key:"pow",value:function(h){if(h===0)return x.valueOf(1);var g=new x(this),E=x.valueOf(1),O=Math.abs(h);if(O>1)for(;O>0;)O%2==1&&E.selfMultiply(g),(O/=2)>0&&(g=g.sqr());else E=g;return h<0?E.reciprocal():E}},{key:"ceil",value:function(){if(this.isNaN())return x.NaN;var h=Math.ceil(this._hi),g=0;return h===this._hi&&(g=Math.ceil(this._lo)),new x(h,g)}},{key:"compareTo",value:function(h){var g=h;return this._hi<g._hi?-1:this._hi>g._hi?1:this._lo<g._lo?-1:this._lo>g._lo?1:0}},{key:"rint",value:function(){return this.isNaN()?this:this.add(.5).floor()}},{key:"setValue",value:function(){if(arguments[0]instanceof x){var h=arguments[0];return this.init(h),this}if(typeof arguments[0]=="number"){var g=arguments[0];return this.init(g),this}}},{key:"max",value:function(h){return this.ge(h)?this:h}},{key:"sqrt",value:function(){if(this.isZero())return x.valueOf(0);if(this.isNegative())return x.NaN;var h=1/Math.sqrt(this._hi),g=this._hi*h,E=x.valueOf(g),O=this.subtract(E.sqr())._hi*(.5*h);return E.add(O)}},{key:"selfAdd",value:function(){if(arguments.length===1){if(arguments[0]instanceof x){var h=arguments[0];return this.selfAdd(h._hi,h._lo)}if(typeof arguments[0]=="number"){var g,E,O,G,Y,$=arguments[0],ne=null;return ne=(O=this._hi+$)-(G=O-this._hi),E=(Y=(ne=$-G+(this._hi-ne))+this._lo)+(O-(g=O+Y)),this._hi=g+E,this._lo=E+(g-this._hi),this}}else if(arguments.length===2){var he,Se,je,at,ct=arguments[0],mt=arguments[1],Ct=null,Pt=null,rn=null;je=this._hi+ct,Se=this._lo+mt,Pt=je-(rn=je-this._hi),Ct=Se-(at=Se-this._lo);var un=(he=je+(rn=(Pt=ct-rn+(this._hi-Pt))+Se))+(rn=(Ct=mt-at+(this._lo-Ct))+(rn+(je-he))),Wn=rn+(he-un);return this._hi=un,this._lo=Wn,this}}},{key:"selfMultiply",value:function(){if(arguments.length===1){if(arguments[0]instanceof x){var h=arguments[0];return this.selfMultiply(h._hi,h._lo)}if(typeof arguments[0]=="number"){var g=arguments[0];return this.selfMultiply(g,0)}}else if(arguments.length===2){var E,O,G=arguments[0],Y=arguments[1],$=null,ne=null,he=null,Se=null;$=(he=x.SPLIT*this._hi)-this._hi,Se=x.SPLIT*G,$=he-$,E=this._hi-$,ne=Se-G;var je=(he=this._hi*G)+(Se=$*(ne=Se-ne)-he+$*(O=G-ne)+E*ne+E*O+(this._hi*Y+this._lo*G)),at=Se+($=he-je);return this._hi=je,this._lo=at,this}}},{key:"selfSqr",value:function(){return this.selfMultiply(this)}},{key:"floor",value:function(){if(this.isNaN())return x.NaN;var h=Math.floor(this._hi),g=0;return h===this._hi&&(g=Math.floor(this._lo)),new x(h,g)}},{key:"negate",value:function(){return this.isNaN()?this:new x(-this._hi,-this._lo)}},{key:"clone",value:function(){try{return null}catch(h){if(h instanceof CloneNotSupportedException)return null;throw h}}},{key:"multiply",value:function(){if(arguments[0]instanceof x){var h=arguments[0];return h.isNaN()?x.createNaN():x.copy(this).selfMultiply(h)}if(typeof arguments[0]=="number"){var g=arguments[0];return Ve.isNaN(g)?x.createNaN():x.copy(this).selfMultiply(g,0)}}},{key:"isNaN",value:function(){return Ve.isNaN(this._hi)}},{key:"intValue",value:function(){return Math.trunc(this._hi)}},{key:"toString",value:function(){var h=x.magnitude(this._hi);return h>=-3&&h<=20?this.toStandardNotation():this.toSciNotation()}},{key:"toStandardNotation",value:function(){var h=this.getSpecialNumberString();if(h!==null)return h;var g=new Array(1).fill(null),E=this.extractSignificantDigits(!0,g),O=g[0]+1,G=E;if(E.charAt(0)===".")G="0"+E;else if(O<0)G="0."+x.stringOfChar("0",-O)+E;else if(E.indexOf(".")===-1){var Y=O-E.length;G=E+x.stringOfChar("0",Y)+".0"}return this.isNegative()?"-"+G:G}},{key:"reciprocal",value:function(){var h,g,E,O,G=null,Y=null,$=null,ne=null;h=(E=1/this._hi)-(G=($=x.SPLIT*E)-(G=$-E)),Y=(ne=x.SPLIT*this._hi)-this._hi;var he=E+($=(1-(O=E*this._hi)-(ne=G*(Y=ne-Y)-O+G*(g=this._hi-Y)+h*Y+h*g)-E*this._lo)/this._hi);return new x(he,E-he+$)}},{key:"toSciNotation",value:function(){if(this.isZero())return x.SCI_NOT_ZERO;var h=this.getSpecialNumberString();if(h!==null)return h;var g=new Array(1).fill(null),E=this.extractSignificantDigits(!1,g),O=x.SCI_NOT_EXPONENT_CHAR+g[0];if(E.charAt(0)==="0")throw new IllegalStateException("Found leading zero: "+E);var G="";E.length>1&&(G=E.substring(1));var Y=E.charAt(0)+"."+G;return this.isNegative()?"-"+Y+O:Y+O}},{key:"abs",value:function(){return this.isNaN()?x.NaN:this.isNegative()?this.negate():new x(this)}},{key:"isPositive",value:function(){return this._hi>0||this._hi===0&&this._lo>0}},{key:"lt",value:function(h){return this._hi<h._hi||this._hi===h._hi&&this._lo<h._lo}},{key:"add",value:function(){if(arguments[0]instanceof x){var h=arguments[0];return x.copy(this).selfAdd(h)}if(typeof arguments[0]=="number"){var g=arguments[0];return x.copy(this).selfAdd(g)}}},{key:"init",value:function(){if(arguments.length===1){if(typeof arguments[0]=="number"){var h=arguments[0];this._hi=h,this._lo=0}else if(arguments[0]instanceof x){var g=arguments[0];this._hi=g._hi,this._lo=g._lo}}else if(arguments.length===2){var E=arguments[0],O=arguments[1];this._hi=E,this._lo=O}}},{key:"gt",value:function(h){return this._hi>h._hi||this._hi===h._hi&&this._lo>h._lo}},{key:"isNegative",value:function(){return this._hi<0||this._hi===0&&this._lo<0}},{key:"trunc",value:function(){return this.isNaN()?x.NaN:this.isPositive()?this.floor():this.ceil()}},{key:"signum",value:function(){return this._hi>0?1:this._hi<0?-1:this._lo>0?1:this._lo<0?-1:0}},{key:"interfaces_",get:function(){return[ce,pe,Ee]}}],[{key:"constructor_",value:function(){if(this._hi=0,this._lo=0,arguments.length===0)this.init(0);else if(arguments.length===1){if(typeof arguments[0]=="number"){var h=arguments[0];this.init(h)}else if(arguments[0]instanceof x){var g=arguments[0];this.init(g)}else if(typeof arguments[0]=="string"){var E=arguments[0];x.constructor_.call(this,x.parse(E))}}else if(arguments.length===2){var O=arguments[0],G=arguments[1];this.init(O,G)}}},{key:"determinant",value:function(){if(typeof arguments[3]=="number"&&typeof arguments[2]=="number"&&typeof arguments[0]=="number"&&typeof arguments[1]=="number"){var h=arguments[0],g=arguments[1],E=arguments[2],O=arguments[3];return x.determinant(x.valueOf(h),x.valueOf(g),x.valueOf(E),x.valueOf(O))}if(arguments[3]instanceof x&&arguments[2]instanceof x&&arguments[0]instanceof x&&arguments[1]instanceof x){var G=arguments[1],Y=arguments[2],$=arguments[3];return arguments[0].multiply($).selfSubtract(G.multiply(Y))}}},{key:"sqr",value:function(h){return x.valueOf(h).selfMultiply(h)}},{key:"valueOf",value:function(){if(typeof arguments[0]=="string"){var h=arguments[0];return x.parse(h)}if(typeof arguments[0]=="number")return new x(arguments[0])}},{key:"sqrt",value:function(h){return x.valueOf(h).sqrt()}},{key:"parse",value:function(h){for(var g=0,E=h.length;yr.isWhitespace(h.charAt(g));)g++;var O=!1;if(g<E){var G=h.charAt(g);G!=="-"&&G!=="+"||(g++,G==="-"&&(O=!0))}for(var Y=new x,$=0,ne=0,he=0,Se=!1;!(g>=E);){var je=h.charAt(g);if(g++,yr.isDigit(je)){var at=je-"0";Y.selfMultiply(x.TEN),Y.selfAdd(at),$++}else{if(je!=="."){if(je==="e"||je==="E"){var ct=h.substring(g);try{he=gr.parseInt(ct)}catch(un){throw un instanceof NumberFormatException?new NumberFormatException("Invalid exponent "+ct+" in string "+h):un}break}throw new NumberFormatException("Unexpected character '"+je+"' at position "+g+" in string "+h)}ne=$,Se=!0}}var mt=Y;Se||(ne=$);var Ct=$-ne-he;if(Ct===0)mt=Y;else if(Ct>0){var Pt=x.TEN.pow(Ct);mt=Y.divide(Pt)}else if(Ct<0){var rn=x.TEN.pow(-Ct);mt=Y.multiply(rn)}return O?mt.negate():mt}},{key:"createNaN",value:function(){return new x(Ve.NaN,Ve.NaN)}},{key:"copy",value:function(h){return new x(h)}},{key:"magnitude",value:function(h){var g=Math.abs(h),E=Math.log(g)/Math.log(10),O=Math.trunc(Math.floor(E));return 10*Math.pow(10,O)<=g&&(O+=1),O}},{key:"stringOfChar",value:function(h,g){for(var E=new Ja,O=0;O<g;O++)E.append(h);return E.toString()}}])})();xt.PI=new xt(3.141592653589793,12246467991473532e-32),xt.TWO_PI=new xt(6.283185307179586,24492935982947064e-32),xt.PI_2=new xt(1.5707963267948966,6123233995736766e-32),xt.E=new xt(2.718281828459045,14456468917292502e-32),xt.NaN=new xt(Ve.NaN,Ve.NaN),xt.EPS=123259516440783e-46,xt.SPLIT=134217729,xt.MAX_PRINT_DIGITS=32,xt.TEN=xt.valueOf(10),xt.ONE=xt.valueOf(1),xt.SCI_NOT_EXPONENT_CHAR="E",xt.SCI_NOT_ZERO="0.0E0";var vu=(function(){function x(){m(this,x)}return C(x,null,[{key:"orientationIndex",value:function(h,g,E){var O=x.orientationIndexFilter(h,g,E);if(O<=1)return O;var G=xt.valueOf(g.x).selfAdd(-h.x),Y=xt.valueOf(g.y).selfAdd(-h.y),$=xt.valueOf(E.x).selfAdd(-g.x),ne=xt.valueOf(E.y).selfAdd(-g.y);return G.selfMultiply(ne).selfSubtract(Y.selfMultiply($)).signum()}},{key:"signOfDet2x2",value:function(){if(arguments[3]instanceof xt&&arguments[2]instanceof xt&&arguments[0]instanceof xt&&arguments[1]instanceof xt){var h=arguments[1],g=arguments[2],E=arguments[3];return arguments[0].multiply(E).selfSubtract(h.multiply(g)).signum()}if(typeof arguments[3]=="number"&&typeof arguments[2]=="number"&&typeof arguments[0]=="number"&&typeof arguments[1]=="number"){var O=arguments[0],G=arguments[1],Y=arguments[2],$=arguments[3],ne=xt.valueOf(O),he=xt.valueOf(G),Se=xt.valueOf(Y),je=xt.valueOf($);return ne.multiply(je).selfSubtract(he.multiply(Se)).signum()}}},{key:"intersection",value:function(h,g,E,O){var G=new xt(h.y).selfSubtract(g.y),Y=new xt(g.x).selfSubtract(h.x),$=new xt(h.x).selfMultiply(g.y).selfSubtract(new xt(g.x).selfMultiply(h.y)),ne=new xt(E.y).selfSubtract(O.y),he=new xt(O.x).selfSubtract(E.x),Se=new xt(E.x).selfMultiply(O.y).selfSubtract(new xt(O.x).selfMultiply(E.y)),je=Y.multiply(Se).selfSubtract(he.multiply($)),at=ne.multiply($).selfSubtract(G.multiply(Se)),ct=G.multiply(he).selfSubtract(ne.multiply(Y)),mt=je.selfDivide(ct).doubleValue(),Ct=at.selfDivide(ct).doubleValue();return Ve.isNaN(mt)||Ve.isInfinite(mt)||Ve.isNaN(Ct)||Ve.isInfinite(Ct)?null:new xe(mt,Ct)}},{key:"orientationIndexFilter",value:function(h,g,E){var O=null,G=(h.x-E.x)*(g.y-E.y),Y=(h.y-E.y)*(g.x-E.x),$=G-Y;if(G>0){if(Y<=0)return x.signum($);O=G+Y}else{if(!(G<0)||Y>=0)return x.signum($);O=-G-Y}var ne=x.DP_SAFE_EPSILON*O;return $>=ne||-$>=ne?x.signum($):2}},{key:"signum",value:function(h){return h>0?1:h<0?-1:0}}])})();vu.DP_SAFE_EPSILON=1e-15;var zt=(function(){return C((function x(){m(this,x)}),[{key:"getM",value:function(x){if(this.hasM()){var h=this.getDimension()-this.getMeasures();return this.getOrdinate(x,h)}return Ve.NaN}},{key:"setOrdinate",value:function(x,h,g){}},{key:"getZ",value:function(x){return this.hasZ()?this.getOrdinate(x,2):Ve.NaN}},{key:"size",value:function(){}},{key:"getOrdinate",value:function(x,h){}},{key:"getCoordinate",value:function(){}},{key:"getCoordinateCopy",value:function(x){}},{key:"createCoordinate",value:function(){}},{key:"getDimension",value:function(){}},{key:"hasM",value:function(){return this.getMeasures()>0}},{key:"getX",value:function(x){}},{key:"hasZ",value:function(){return this.getDimension()-this.getMeasures()>2}},{key:"getMeasures",value:function(){return 0}},{key:"expandEnvelope",value:function(x){}},{key:"copy",value:function(){}},{key:"getY",value:function(x){}},{key:"toCoordinateArray",value:function(){}},{key:"interfaces_",get:function(){return[Ee]}}])})();zt.X=0,zt.Y=1,zt.Z=2,zt.M=3;var Tt=(function(){function x(){m(this,x)}return C(x,null,[{key:"index",value:function(h,g,E){return vu.orientationIndex(h,g,E)}},{key:"isCCW",value:function(){if(arguments[0]instanceof Array){var h=arguments[0],g=h.length-1;if(g<3)throw new se("Ring has fewer than 4 points, so orientation cannot be determined");for(var E=h[0],O=0,G=1;G<=g;G++){var Y=h[G];Y.y>E.y&&(E=Y,O=G)}var $=O;do($-=1)<0&&($=g);while(h[$].equals2D(E)&&$!==O);var ne=O;do ne=(ne+1)%g;while(h[ne].equals2D(E)&&ne!==O);var he=h[$],Se=h[ne];if(he.equals2D(E)||Se.equals2D(E)||he.equals2D(Se))return!1;var je=x.index(he,E,Se);return je===0?he.x>Se.x:je>0}if(vt(arguments[0],zt)){var at=arguments[0],ct=at.size()-1;if(ct<3)throw new se("Ring has fewer than 4 points, so orientation cannot be determined");for(var mt=at.getCoordinate(0),Ct=0,Pt=1;Pt<=ct;Pt++){var rn=at.getCoordinate(Pt);rn.y>mt.y&&(mt=rn,Ct=Pt)}var un=null,Wn=Ct;do(Wn-=1)<0&&(Wn=ct),un=at.getCoordinate(Wn);while(un.equals2D(mt)&&Wn!==Ct);var xn=null,Yr=Ct;do Yr=(Yr+1)%ct,xn=at.getCoordinate(Yr);while(xn.equals2D(mt)&&Yr!==Ct);if(un.equals2D(mt)||xn.equals2D(mt)||un.equals2D(xn))return!1;var Tn=x.index(un,mt,xn);return Tn===0?un.x>xn.x:Tn>0}}}])})();Tt.CLOCKWISE=-1,Tt.RIGHT=Tt.CLOCKWISE,Tt.COUNTERCLOCKWISE=1,Tt.LEFT=Tt.COUNTERCLOCKWISE,Tt.COLLINEAR=0,Tt.STRAIGHT=Tt.COLLINEAR;var Yu=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"getCoordinate",value:function(){return this._minCoord}},{key:"getRightmostSide",value:function(x,h){var g=this.getRightmostSideOfSegment(x,h);return g<0&&(g=this.getRightmostSideOfSegment(x,h-1)),g<0&&(this._minCoord=null,this.checkForRightmostCoordinate(x)),g}},{key:"findRightmostEdgeAtVertex",value:function(){var x=this._minDe.getEdge().getCoordinates();Pe.isTrue(this._minIndex>0&&this._minIndex<x.length,"rightmost point expected to be interior vertex of edge");var h=x[this._minIndex-1],g=x[this._minIndex+1],E=Tt.index(this._minCoord,g,h),O=!1;(h.y<this._minCoord.y&&g.y<this._minCoord.y&&E===Tt.COUNTERCLOCKWISE||h.y>this._minCoord.y&&g.y>this._minCoord.y&&E===Tt.CLOCKWISE)&&(O=!0),O&&(this._minIndex=this._minIndex-1)}},{key:"getRightmostSideOfSegment",value:function(x,h){var g=x.getEdge().getCoordinates();if(h<0||h+1>=g.length||g[h].y===g[h+1].y)return-1;var E=rt.LEFT;return g[h].y<g[h+1].y&&(E=rt.RIGHT),E}},{key:"getEdge",value:function(){return this._orientedDe}},{key:"checkForRightmostCoordinate",value:function(x){for(var h=x.getEdge().getCoordinates(),g=0;g<h.length-1;g++)(this._minCoord===null||h[g].x>this._minCoord.x)&&(this._minDe=x,this._minIndex=g,this._minCoord=h[g])}},{key:"findRightmostEdgeAtNode",value:function(){var x=this._minDe.getNode().getEdges();this._minDe=x.getRightmostEdge(),this._minDe.isForward()||(this._minDe=this._minDe.getSym(),this._minIndex=this._minDe.getEdge().getCoordinates().length-1)}},{key:"findEdge",value:function(x){for(var h=x.iterator();h.hasNext();){var g=h.next();g.isForward()&&this.checkForRightmostCoordinate(g)}Pe.isTrue(this._minIndex!==0||this._minCoord.equals(this._minDe.getCoordinate()),"inconsistency in rightmost processing"),this._minIndex===0?this.findRightmostEdgeAtNode():this.findRightmostEdgeAtVertex(),this._orientedDe=this._minDe,this.getRightmostSide(this._minDe,this._minIndex)===rt.LEFT&&(this._orientedDe=this._minDe.getSym())}}],[{key:"constructor_",value:function(){this._minIndex=-1,this._minCoord=null,this._minDe=null,this._orientedDe=null}}])})(),ra=(function(x){function h(g,E){var O;return m(this,h),(O=d(this,h,[E?g+" [ "+E+" ]":g])).pt=E?new xe(E):void 0,O.name=Object.keys({TopologyException:h})[0],O}return k(h,x),C(h,[{key:"getCoordinate",value:function(){return this.pt}}])})(Je),ia=(function(){return C((function x(){m(this,x),this.array=[]}),[{key:"addLast",value:function(x){this.array.push(x)}},{key:"removeFirst",value:function(){return this.array.shift()}},{key:"isEmpty",value:function(){return this.array.length===0}}])})(),bt=(function(x){function h(g){var E;return m(this,h),(E=d(this,h)).array=[],g instanceof _t&&E.addAll(g),E}return k(h,x),C(h,[{key:"interfaces_",get:function(){return[Jt,_t]}},{key:"ensureCapacity",value:function(){}},{key:"add",value:function(g){return arguments.length===1?this.array.push(g):this.array.splice(arguments[0],0,arguments[1]),!0}},{key:"clear",value:function(){this.array=[]}},{key:"addAll",value:function(g){var E,O=I(g);try{for(O.s();!(E=O.n()).done;){var G=E.value;this.array.push(G)}}catch(Y){O.e(Y)}finally{O.f()}}},{key:"set",value:function(g,E){var O=this.array[g];return this.array[g]=E,O}},{key:"iterator",value:function(){return new $n(this)}},{key:"get",value:function(g){if(g<0||g>=this.size())throw new on;return this.array[g]}},{key:"isEmpty",value:function(){return this.array.length===0}},{key:"sort",value:function(g){g?this.array.sort((function(E,O){return g.compare(E,O)})):this.array.sort()}},{key:"size",value:function(){return this.array.length}},{key:"toArray",value:function(){return this.array.slice()}},{key:"remove",value:function(g){for(var E=0,O=this.array.length;E<O;E++)if(this.array[E]===g)return!!this.array.splice(E,1);return!1}},{key:Symbol.iterator,value:function(){return this.array.values()}}])})(Jt),$n=(function(){return C((function x(h){m(this,x),this.arrayList=h,this.position=0}),[{key:"next",value:function(){if(this.position===this.arrayList.size())throw new Rt;return this.arrayList.get(this.position++)}},{key:"hasNext",value:function(){return this.position<this.arrayList.size()}},{key:"set",value:function(x){return this.arrayList.set(this.position-1,x)}},{key:"remove",value:function(){this.arrayList.remove(this.arrayList.get(this.position))}}])})(),Xu=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"clearVisitedEdges",value:function(){for(var x=this._dirEdgeList.iterator();x.hasNext();)x.next().setVisited(!1)}},{key:"getRightmostCoordinate",value:function(){return this._rightMostCoord}},{key:"computeNodeDepth",value:function(x){for(var h=null,g=x.getEdges().iterator();g.hasNext();){var E=g.next();if(E.isVisited()||E.getSym().isVisited()){h=E;break}}if(h===null)throw new ra("unable to find edge to compute depths at "+x.getCoordinate());x.getEdges().computeDepths(h);for(var O=x.getEdges().iterator();O.hasNext();){var G=O.next();G.setVisited(!0),this.copySymDepths(G)}}},{key:"computeDepth",value:function(x){this.clearVisitedEdges();var h=this._finder.getEdge();h.getNode(),h.getLabel(),h.setEdgeDepths(rt.RIGHT,x),this.copySymDepths(h),this.computeDepths(h)}},{key:"create",value:function(x){this.addReachable(x),this._finder.findEdge(this._dirEdgeList),this._rightMostCoord=this._finder.getCoordinate()}},{key:"findResultEdges",value:function(){for(var x=this._dirEdgeList.iterator();x.hasNext();){var h=x.next();h.getDepth(rt.RIGHT)>=1&&h.getDepth(rt.LEFT)<=0&&!h.isInteriorAreaEdge()&&h.setInResult(!0)}}},{key:"computeDepths",value:function(x){var h=new Fa,g=new ia,E=x.getNode();for(g.addLast(E),h.add(E),x.setVisited(!0);!g.isEmpty();){var O=g.removeFirst();h.add(O),this.computeNodeDepth(O);for(var G=O.getEdges().iterator();G.hasNext();){var Y=G.next().getSym();if(!Y.isVisited()){var $=Y.getNode();h.contains($)||(g.addLast($),h.add($))}}}}},{key:"compareTo",value:function(x){var h=x;return this._rightMostCoord.x<h._rightMostCoord.x?-1:this._rightMostCoord.x>h._rightMostCoord.x?1:0}},{key:"getEnvelope",value:function(){if(this._env===null){for(var x=new st,h=this._dirEdgeList.iterator();h.hasNext();)for(var g=h.next().getEdge().getCoordinates(),E=0;E<g.length-1;E++)x.expandToInclude(g[E]);this._env=x}return this._env}},{key:"addReachable",value:function(x){var h=new mr;for(h.add(x);!h.empty();){var g=h.pop();this.add(g,h)}}},{key:"copySymDepths",value:function(x){var h=x.getSym();h.setDepth(rt.LEFT,x.getDepth(rt.RIGHT)),h.setDepth(rt.RIGHT,x.getDepth(rt.LEFT))}},{key:"add",value:function(x,h){x.setVisited(!0),this._nodes.add(x);for(var g=x.getEdges().iterator();g.hasNext();){var E=g.next();this._dirEdgeList.add(E);var O=E.getSym().getNode();O.isVisited()||h.push(O)}}},{key:"getNodes",value:function(){return this._nodes}},{key:"getDirectedEdges",value:function(){return this._dirEdgeList}},{key:"interfaces_",get:function(){return[pe]}}],[{key:"constructor_",value:function(){this._finder=null,this._dirEdgeList=new bt,this._nodes=new bt,this._rightMostCoord=null,this._env=null,this._finder=new Yu}}])})(),tu=(function(){return C((function x(){m(this,x)}),null,[{key:"intersection",value:function(x,h,g,E){var O=x.x<h.x?x.x:h.x,G=x.y<h.y?x.y:h.y,Y=x.x>h.x?x.x:h.x,$=x.y>h.y?x.y:h.y,ne=g.x<E.x?g.x:E.x,he=g.y<E.y?g.y:E.y,Se=g.x>E.x?g.x:E.x,je=g.y>E.y?g.y:E.y,at=((O>ne?O:ne)+(Y<Se?Y:Se))/2,ct=((G>he?G:he)+($<je?$:je))/2,mt=x.x-at,Ct=x.y-ct,Pt=h.x-at,rn=h.y-ct,un=g.x-at,Wn=g.y-ct,xn=E.x-at,Yr=E.y-ct,Tn=Ct-rn,va=Pt-mt,Xr=mt*rn-Pt*Ct,Nr=Wn-Yr,Lr=xn-un,Zr=un*Yr-xn*Wn,su=Tn*Lr-Nr*va,No=(va*Zr-Lr*Xr)/su,Ks=(Nr*Xr-Tn*Zr)/su;return Ve.isNaN(No)||Ve.isInfinite(No)||Ve.isNaN(Ks)||Ve.isInfinite(Ks)?null:new xe(No+at,Ks+ct)}}])})(),ua=(function(){return C((function x(){m(this,x)}),null,[{key:"arraycopy",value:function(x,h,g,E,O){for(var G=0,Y=h;Y<h+O;Y++)g[E+G]=x[Y],G++}},{key:"getProperty",value:function(x){return{"line.separator":`
10
+ `}[x]}}])})(),Jn=(function(){function x(){m(this,x)}return C(x,null,[{key:"log10",value:function(h){var g=Math.log(h);return Ve.isInfinite(g)||Ve.isNaN(g)?g:g/x.LOG_10}},{key:"min",value:function(h,g,E,O){var G=h;return g<G&&(G=g),E<G&&(G=E),O<G&&(G=O),G}},{key:"clamp",value:function(){if(typeof arguments[2]=="number"&&typeof arguments[0]=="number"&&typeof arguments[1]=="number"){var h=arguments[0],g=arguments[1],E=arguments[2];return h<g?g:h>E?E:h}if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var O=arguments[0],G=arguments[1],Y=arguments[2];return O<G?G:O>Y?Y:O}}},{key:"wrap",value:function(h,g){return h<0?g- -h%g:h%g}},{key:"max",value:function(){if(arguments.length===3){var h=arguments[1],g=arguments[2],E=arguments[0];return h>E&&(E=h),g>E&&(E=g),E}if(arguments.length===4){var O=arguments[1],G=arguments[2],Y=arguments[3],$=arguments[0];return O>$&&($=O),G>$&&($=G),Y>$&&($=Y),$}}},{key:"average",value:function(h,g){return(h+g)/2}}])})();Jn.LOG_10=Math.log(10);var Nn=(function(){function x(){m(this,x)}return C(x,null,[{key:"segmentToSegment",value:function(h,g,E,O){if(h.equals(g))return x.pointToSegment(h,E,O);if(E.equals(O))return x.pointToSegment(O,h,g);var G=!1;if(st.intersects(h,g,E,O)){var Y=(g.x-h.x)*(O.y-E.y)-(g.y-h.y)*(O.x-E.x);if(Y===0)G=!0;else{var $=(h.y-E.y)*(O.x-E.x)-(h.x-E.x)*(O.y-E.y),ne=((h.y-E.y)*(g.x-h.x)-(h.x-E.x)*(g.y-h.y))/Y,he=$/Y;(he<0||he>1||ne<0||ne>1)&&(G=!0)}}else G=!0;return G?Jn.min(x.pointToSegment(h,E,O),x.pointToSegment(g,E,O),x.pointToSegment(E,h,g),x.pointToSegment(O,h,g)):0}},{key:"pointToSegment",value:function(h,g,E){if(g.x===E.x&&g.y===E.y)return h.distance(g);var O=(E.x-g.x)*(E.x-g.x)+(E.y-g.y)*(E.y-g.y),G=((h.x-g.x)*(E.x-g.x)+(h.y-g.y)*(E.y-g.y))/O;if(G<=0)return h.distance(g);if(G>=1)return h.distance(E);var Y=((g.y-h.y)*(E.x-g.x)-(g.x-h.x)*(E.y-g.y))/O;return Math.abs(Y)*Math.sqrt(O)}},{key:"pointToLinePerpendicular",value:function(h,g,E){var O=(E.x-g.x)*(E.x-g.x)+(E.y-g.y)*(E.y-g.y),G=((g.y-h.y)*(E.x-g.x)-(g.x-h.x)*(E.y-g.y))/O;return Math.abs(G)*Math.sqrt(O)}},{key:"pointToSegmentString",value:function(h,g){if(g.length===0)throw new se("Line array must contain at least one vertex");for(var E=h.distance(g[0]),O=0;O<g.length-1;O++){var G=x.pointToSegment(h,g[O],g[O+1]);G<E&&(E=G)}return E}}])})(),Ti=(function(){return C((function x(){m(this,x)}),[{key:"create",value:function(){if(arguments.length===1)arguments[0]instanceof Array||vt(arguments[0],zt);else if(arguments.length!==2){if(arguments.length===3){var x=arguments[0],h=arguments[1];return this.create(x,h)}}}}])})(),Ra=(function(){return C((function x(){m(this,x)}),[{key:"filter",value:function(x){}}])})(),Fn=(function(){return C((function x(){m(this,x)}),null,[{key:"ofLine",value:function(x){var h=x.size();if(h<=1)return 0;var g=0,E=new xe;x.getCoordinate(0,E);for(var O=E.x,G=E.y,Y=1;Y<h;Y++){x.getCoordinate(Y,E);var $=E.x,ne=E.y,he=$-O,Se=ne-G;g+=Math.sqrt(he*he+Se*Se),O=$,G=ne}return g}}])})(),ae=C((function x(){m(this,x)})),le=(function(){function x(){m(this,x)}return C(x,null,[{key:"copyCoord",value:function(h,g,E,O){for(var G=Math.min(h.getDimension(),E.getDimension()),Y=0;Y<G;Y++)E.setOrdinate(O,Y,h.getOrdinate(g,Y))}},{key:"isRing",value:function(h){var g=h.size();return g===0||!(g<=3)&&h.getOrdinate(0,zt.X)===h.getOrdinate(g-1,zt.X)&&h.getOrdinate(0,zt.Y)===h.getOrdinate(g-1,zt.Y)}},{key:"scroll",value:function(){if(arguments.length===2){if(vt(arguments[0],zt)&&Number.isInteger(arguments[1])){var h=arguments[0],g=arguments[1];x.scroll(h,g,x.isRing(h))}else if(vt(arguments[0],zt)&&arguments[1]instanceof xe){var E=arguments[0],O=arguments[1],G=x.indexOf(O,E);if(G<=0)return null;x.scroll(E,G)}}else if(arguments.length===3){var Y=arguments[0],$=arguments[1],ne=arguments[2];if($<=0)return null;for(var he=Y.copy(),Se=ne?Y.size()-1:Y.size(),je=0;je<Se;je++)for(var at=0;at<Y.getDimension();at++)Y.setOrdinate(je,at,he.getOrdinate(($+je)%Se,at));if(ne)for(var ct=0;ct<Y.getDimension();ct++)Y.setOrdinate(Se,ct,Y.getOrdinate(0,ct))}}},{key:"isEqual",value:function(h,g){var E=h.size();if(E!==g.size())return!1;for(var O=Math.min(h.getDimension(),g.getDimension()),G=0;G<E;G++)for(var Y=0;Y<O;Y++){var $=h.getOrdinate(G,Y),ne=g.getOrdinate(G,Y);if(h.getOrdinate(G,Y)!==g.getOrdinate(G,Y)&&(!Ve.isNaN($)||!Ve.isNaN(ne)))return!1}return!0}},{key:"minCoordinateIndex",value:function(){if(arguments.length===1){var h=arguments[0];return x.minCoordinateIndex(h,0,h.size()-1)}if(arguments.length===3){for(var g=arguments[0],E=arguments[2],O=-1,G=null,Y=arguments[1];Y<=E;Y++){var $=g.getCoordinate(Y);(G===null||G.compareTo($)>0)&&(G=$,O=Y)}return O}}},{key:"extend",value:function(h,g,E){var O=h.create(E,g.getDimension()),G=g.size();if(x.copy(g,0,O,0,G),G>0)for(var Y=G;Y<E;Y++)x.copy(g,G-1,O,Y,1);return O}},{key:"reverse",value:function(h){for(var g=h.size()-1,E=Math.trunc(g/2),O=0;O<=E;O++)x.swap(h,O,g-O)}},{key:"swap",value:function(h,g,E){if(g===E)return null;for(var O=0;O<h.getDimension();O++){var G=h.getOrdinate(g,O);h.setOrdinate(g,O,h.getOrdinate(E,O)),h.setOrdinate(E,O,G)}}},{key:"copy",value:function(h,g,E,O,G){for(var Y=0;Y<G;Y++)x.copyCoord(h,g+Y,E,O+Y)}},{key:"ensureValidRing",value:function(h,g){var E=g.size();return E===0?g:E<=3?x.createClosedRing(h,g,4):g.getOrdinate(0,zt.X)===g.getOrdinate(E-1,zt.X)&&g.getOrdinate(0,zt.Y)===g.getOrdinate(E-1,zt.Y)?g:x.createClosedRing(h,g,E+1)}},{key:"indexOf",value:function(h,g){for(var E=0;E<g.size();E++)if(h.x===g.getOrdinate(E,zt.X)&&h.y===g.getOrdinate(E,zt.Y))return E;return-1}},{key:"createClosedRing",value:function(h,g,E){var O=h.create(E,g.getDimension()),G=g.size();x.copy(g,0,O,0,G);for(var Y=G;Y<E;Y++)x.copy(g,0,O,Y,1);return O}},{key:"minCoordinate",value:function(h){for(var g=null,E=0;E<h.size();E++){var O=h.getCoordinate(E);(g===null||g.compareTo(O)>0)&&(g=O)}return g}}])})(),fe=(function(){function x(){m(this,x)}return C(x,null,[{key:"toDimensionSymbol",value:function(h){switch(h){case x.FALSE:return x.SYM_FALSE;case x.TRUE:return x.SYM_TRUE;case x.DONTCARE:return x.SYM_DONTCARE;case x.P:return x.SYM_P;case x.L:return x.SYM_L;case x.A:return x.SYM_A}throw new se("Unknown dimension value: "+h)}},{key:"toDimensionValue",value:function(h){switch(yr.toUpperCase(h)){case x.SYM_FALSE:return x.FALSE;case x.SYM_TRUE:return x.TRUE;case x.SYM_DONTCARE:return x.DONTCARE;case x.SYM_P:return x.P;case x.SYM_L:return x.L;case x.SYM_A:return x.A}throw new se("Unknown dimension symbol: "+h)}}])})();fe.P=0,fe.L=1,fe.A=2,fe.FALSE=-1,fe.TRUE=-2,fe.DONTCARE=-3,fe.SYM_FALSE="F",fe.SYM_TRUE="T",fe.SYM_DONTCARE="*",fe.SYM_P="0",fe.SYM_L="1",fe.SYM_A="2";var Xe=(function(){return C((function x(){m(this,x)}),[{key:"filter",value:function(x){}}])})(),ot=(function(){return C((function x(){m(this,x)}),[{key:"filter",value:function(x,h){}},{key:"isDone",value:function(){}},{key:"isGeometryChanged",value:function(){}}])})(),yt=(function(x){function h(){var g;return m(this,h),g=d(this,h),h.constructor_.apply(g,arguments),g}return k(h,x),C(h,[{key:"computeEnvelopeInternal",value:function(){return this.isEmpty()?new st:this._points.expandEnvelope(new st)}},{key:"isRing",value:function(){return this.isClosed()&&this.isSimple()}},{key:"getCoordinates",value:function(){return this._points.toCoordinateArray()}},{key:"copyInternal",value:function(){return new h(this._points.copy(),this._factory)}},{key:"equalsExact",value:function(){if(arguments.length===2&&typeof arguments[1]=="number"&&arguments[0]instanceof Be){var g=arguments[0],E=arguments[1];if(!this.isEquivalentClass(g))return!1;var O=g;if(this._points.size()!==O._points.size())return!1;for(var G=0;G<this._points.size();G++)if(!this.equal(this._points.getCoordinate(G),O._points.getCoordinate(G),E))return!1;return!0}return H(h,"equalsExact",this,1).apply(this,arguments)}},{key:"normalize",value:function(){for(var g=0;g<Math.trunc(this._points.size()/2);g++){var E=this._points.size()-1-g;if(!this._points.getCoordinate(g).equals(this._points.getCoordinate(E))){if(this._points.getCoordinate(g).compareTo(this._points.getCoordinate(E))>0){var O=this._points.copy();le.reverse(O),this._points=O}return null}}}},{key:"getCoordinate",value:function(){return this.isEmpty()?null:this._points.getCoordinate(0)}},{key:"getBoundaryDimension",value:function(){return this.isClosed()?fe.FALSE:0}},{key:"isClosed",value:function(){return!this.isEmpty()&&this.getCoordinateN(0).equals2D(this.getCoordinateN(this.getNumPoints()-1))}},{key:"reverseInternal",value:function(){var g=this._points.copy();return le.reverse(g),this.getFactory().createLineString(g)}},{key:"getEndPoint",value:function(){return this.isEmpty()?null:this.getPointN(this.getNumPoints()-1)}},{key:"getTypeCode",value:function(){return Be.TYPECODE_LINESTRING}},{key:"getDimension",value:function(){return 1}},{key:"getLength",value:function(){return Fn.ofLine(this._points)}},{key:"getNumPoints",value:function(){return this._points.size()}},{key:"compareToSameClass",value:function(){if(arguments.length===1){for(var g=arguments[0],E=0,O=0;E<this._points.size()&&O<g._points.size();){var G=this._points.getCoordinate(E).compareTo(g._points.getCoordinate(O));if(G!==0)return G;E++,O++}return E<this._points.size()?1:O<g._points.size()?-1:0}if(arguments.length===2){var Y=arguments[0];return arguments[1].compare(this._points,Y._points)}}},{key:"apply",value:function(){if(vt(arguments[0],Ra))for(var g=arguments[0],E=0;E<this._points.size();E++)g.filter(this._points.getCoordinate(E));else if(vt(arguments[0],ot)){var O=arguments[0];if(this._points.size()===0)return null;for(var G=0;G<this._points.size()&&(O.filter(this._points,G),!O.isDone());G++);O.isGeometryChanged()&&this.geometryChanged()}else vt(arguments[0],Xe)?arguments[0].filter(this):vt(arguments[0],ge)&&arguments[0].filter(this)}},{key:"getBoundary",value:function(){throw new kt}},{key:"isEquivalentClass",value:function(g){return g instanceof h}},{key:"getCoordinateN",value:function(g){return this._points.getCoordinate(g)}},{key:"getGeometryType",value:function(){return Be.TYPENAME_LINESTRING}},{key:"getCoordinateSequence",value:function(){return this._points}},{key:"isEmpty",value:function(){return this._points.size()===0}},{key:"init",value:function(g){if(g===null&&(g=this.getFactory().getCoordinateSequenceFactory().create([])),g.size()===1)throw new se("Invalid number of points in LineString (found "+g.size()+" - must be 0 or >= 2)");this._points=g}},{key:"isCoordinate",value:function(g){for(var E=0;E<this._points.size();E++)if(this._points.getCoordinate(E).equals(g))return!0;return!1}},{key:"getStartPoint",value:function(){return this.isEmpty()?null:this.getPointN(0)}},{key:"getPointN",value:function(g){return this.getFactory().createPoint(this._points.getCoordinate(g))}},{key:"interfaces_",get:function(){return[ae]}}],[{key:"constructor_",value:function(){if(this._points=null,arguments.length!==0){if(arguments.length===2){var g=arguments[0],E=arguments[1];Be.constructor_.call(this,E),this.init(g)}}}}])})(Be),ut=C((function x(){m(this,x)})),tn=(function(x){function h(){var g;return m(this,h),g=d(this,h),h.constructor_.apply(g,arguments),g}return k(h,x),C(h,[{key:"computeEnvelopeInternal",value:function(){if(this.isEmpty())return new st;var g=new st;return g.expandToInclude(this._coordinates.getX(0),this._coordinates.getY(0)),g}},{key:"getCoordinates",value:function(){return this.isEmpty()?[]:[this.getCoordinate()]}},{key:"copyInternal",value:function(){return new h(this._coordinates.copy(),this._factory)}},{key:"equalsExact",value:function(){if(arguments.length===2&&typeof arguments[1]=="number"&&arguments[0]instanceof Be){var g=arguments[0],E=arguments[1];return!!this.isEquivalentClass(g)&&(!(!this.isEmpty()||!g.isEmpty())||this.isEmpty()===g.isEmpty()&&this.equal(g.getCoordinate(),this.getCoordinate(),E))}return H(h,"equalsExact",this,1).apply(this,arguments)}},{key:"normalize",value:function(){}},{key:"getCoordinate",value:function(){return this._coordinates.size()!==0?this._coordinates.getCoordinate(0):null}},{key:"getBoundaryDimension",value:function(){return fe.FALSE}},{key:"reverseInternal",value:function(){return this.getFactory().createPoint(this._coordinates.copy())}},{key:"getTypeCode",value:function(){return Be.TYPECODE_POINT}},{key:"getDimension",value:function(){return 0}},{key:"getNumPoints",value:function(){return this.isEmpty()?0:1}},{key:"getX",value:function(){if(this.getCoordinate()===null)throw new IllegalStateException("getX called on empty Point");return this.getCoordinate().x}},{key:"compareToSameClass",value:function(){if(arguments.length===1){var g=arguments[0];return this.getCoordinate().compareTo(g.getCoordinate())}if(arguments.length===2){var E=arguments[0];return arguments[1].compare(this._coordinates,E._coordinates)}}},{key:"apply",value:function(){if(vt(arguments[0],Ra)){var g=arguments[0];if(this.isEmpty())return null;g.filter(this.getCoordinate())}else if(vt(arguments[0],ot)){var E=arguments[0];if(this.isEmpty())return null;E.filter(this._coordinates,0),E.isGeometryChanged()&&this.geometryChanged()}else vt(arguments[0],Xe)?arguments[0].filter(this):vt(arguments[0],ge)&&arguments[0].filter(this)}},{key:"getBoundary",value:function(){return this.getFactory().createGeometryCollection()}},{key:"getGeometryType",value:function(){return Be.TYPENAME_POINT}},{key:"getCoordinateSequence",value:function(){return this._coordinates}},{key:"getY",value:function(){if(this.getCoordinate()===null)throw new IllegalStateException("getY called on empty Point");return this.getCoordinate().y}},{key:"isEmpty",value:function(){return this._coordinates.size()===0}},{key:"init",value:function(g){g===null&&(g=this.getFactory().getCoordinateSequenceFactory().create([])),Pe.isTrue(g.size()<=1),this._coordinates=g}},{key:"isSimple",value:function(){return!0}},{key:"interfaces_",get:function(){return[ut]}}],[{key:"constructor_",value:function(){this._coordinates=null;var g=arguments[0],E=arguments[1];Be.constructor_.call(this,E),this.init(g)}}])})(Be),gn=(function(){function x(){m(this,x)}return C(x,null,[{key:"ofRing",value:function(){if(arguments[0]instanceof Array){var h=arguments[0];return Math.abs(x.ofRingSigned(h))}if(vt(arguments[0],zt)){var g=arguments[0];return Math.abs(x.ofRingSigned(g))}}},{key:"ofRingSigned",value:function(){if(arguments[0]instanceof Array){var h=arguments[0];if(h.length<3)return 0;for(var g=0,E=h[0].x,O=1;O<h.length-1;O++){var G=h[O].x-E,Y=h[O+1].y;g+=G*(h[O-1].y-Y)}return g/2}if(vt(arguments[0],zt)){var $=arguments[0],ne=$.size();if(ne<3)return 0;var he=new xe,Se=new xe,je=new xe;$.getCoordinate(0,Se),$.getCoordinate(1,je);var at=Se.x;je.x-=at;for(var ct=0,mt=1;mt<ne-1;mt++)he.y=Se.y,Se.x=je.x,Se.y=je.y,$.getCoordinate(mt+1,je),je.x-=at,ct+=Se.x*(he.y-je.y);return ct/2}}}])})(),qn=(function(){return C((function x(){m(this,x)}),null,[{key:"sort",value:function(){var x=arguments,h=arguments[0];if(arguments.length===1)h.sort((function(at,ct){return at.compareTo(ct)}));else if(arguments.length===2)h.sort((function(at,ct){return x[1].compare(at,ct)}));else if(arguments.length===3){var g=h.slice(arguments[1],arguments[2]);g.sort();var E=h.slice(0,arguments[1]).concat(g,h.slice(arguments[2],h.length));h.splice(0,h.length);var O,G=I(E);try{for(G.s();!(O=G.n()).done;){var Y=O.value;h.push(Y)}}catch(at){G.e(at)}finally{G.f()}}else if(arguments.length===4){var $=h.slice(arguments[1],arguments[2]);$.sort((function(at,ct){return x[3].compare(at,ct)}));var ne=h.slice(0,arguments[1]).concat($,h.slice(arguments[2],h.length));h.splice(0,h.length);var he,Se=I(ne);try{for(Se.s();!(he=Se.n()).done;){var je=he.value;h.push(je)}}catch(at){Se.e(at)}finally{Se.f()}}}},{key:"asList",value:function(x){var h,g=new bt,E=I(x);try{for(E.s();!(h=E.n()).done;){var O=h.value;g.add(O)}}catch(G){E.e(G)}finally{E.f()}return g}},{key:"copyOf",value:function(x,h){return x.slice(0,h)}}])})(),Tr=C((function x(){m(this,x)})),li=(function(x){function h(){var g;return m(this,h),g=d(this,h),h.constructor_.apply(g,arguments),g}return k(h,x),C(h,[{key:"computeEnvelopeInternal",value:function(){return this._shell.getEnvelopeInternal()}},{key:"getCoordinates",value:function(){if(this.isEmpty())return[];for(var g=new Array(this.getNumPoints()).fill(null),E=-1,O=this._shell.getCoordinates(),G=0;G<O.length;G++)g[++E]=O[G];for(var Y=0;Y<this._holes.length;Y++)for(var $=this._holes[Y].getCoordinates(),ne=0;ne<$.length;ne++)g[++E]=$[ne];return g}},{key:"getArea",value:function(){var g=0;g+=gn.ofRing(this._shell.getCoordinateSequence());for(var E=0;E<this._holes.length;E++)g-=gn.ofRing(this._holes[E].getCoordinateSequence());return g}},{key:"copyInternal",value:function(){for(var g=this._shell.copy(),E=new Array(this._holes.length).fill(null),O=0;O<this._holes.length;O++)E[O]=this._holes[O].copy();return new h(g,E,this._factory)}},{key:"isRectangle",value:function(){if(this.getNumInteriorRing()!==0||this._shell===null||this._shell.getNumPoints()!==5)return!1;for(var g=this._shell.getCoordinateSequence(),E=this.getEnvelopeInternal(),O=0;O<5;O++){var G=g.getX(O);if(G!==E.getMinX()&&G!==E.getMaxX())return!1;var Y=g.getY(O);if(Y!==E.getMinY()&&Y!==E.getMaxY())return!1}for(var $=g.getX(0),ne=g.getY(0),he=1;he<=4;he++){var Se=g.getX(he),je=g.getY(he);if(Se!==$==(je!==ne))return!1;$=Se,ne=je}return!0}},{key:"equalsExact",value:function(){if(arguments.length===2&&typeof arguments[1]=="number"&&arguments[0]instanceof Be){var g=arguments[0],E=arguments[1];if(!this.isEquivalentClass(g))return!1;var O=g,G=this._shell,Y=O._shell;if(!G.equalsExact(Y,E)||this._holes.length!==O._holes.length)return!1;for(var $=0;$<this._holes.length;$++)if(!this._holes[$].equalsExact(O._holes[$],E))return!1;return!0}return H(h,"equalsExact",this,1).apply(this,arguments)}},{key:"normalize",value:function(){if(arguments.length===0){this._shell=this.normalized(this._shell,!0);for(var g=0;g<this._holes.length;g++)this._holes[g]=this.normalized(this._holes[g],!1);qn.sort(this._holes)}else if(arguments.length===2){var E=arguments[0],O=arguments[1];if(E.isEmpty())return null;var G=E.getCoordinateSequence(),Y=le.minCoordinateIndex(G,0,G.size()-2);le.scroll(G,Y,!0),Tt.isCCW(G)===O&&le.reverse(G)}}},{key:"getCoordinate",value:function(){return this._shell.getCoordinate()}},{key:"getNumInteriorRing",value:function(){return this._holes.length}},{key:"getBoundaryDimension",value:function(){return 1}},{key:"reverseInternal",value:function(){for(var g=this.getExteriorRing().reverse(),E=new Array(this.getNumInteriorRing()).fill(null),O=0;O<E.length;O++)E[O]=this.getInteriorRingN(O).reverse();return this.getFactory().createPolygon(g,E)}},{key:"getTypeCode",value:function(){return Be.TYPECODE_POLYGON}},{key:"getDimension",value:function(){return 2}},{key:"getLength",value:function(){var g=0;g+=this._shell.getLength();for(var E=0;E<this._holes.length;E++)g+=this._holes[E].getLength();return g}},{key:"getNumPoints",value:function(){for(var g=this._shell.getNumPoints(),E=0;E<this._holes.length;E++)g+=this._holes[E].getNumPoints();return g}},{key:"convexHull",value:function(){return this.getExteriorRing().convexHull()}},{key:"normalized",value:function(g,E){var O=g.copy();return this.normalize(O,E),O}},{key:"compareToSameClass",value:function(){if(arguments.length===1){var g=arguments[0],E=this._shell,O=g._shell;return E.compareToSameClass(O)}if(arguments.length===2){var G=arguments[1],Y=arguments[0],$=this._shell,ne=Y._shell,he=$.compareToSameClass(ne,G);if(he!==0)return he;for(var Se=this.getNumInteriorRing(),je=Y.getNumInteriorRing(),at=0;at<Se&&at<je;){var ct=this.getInteriorRingN(at),mt=Y.getInteriorRingN(at),Ct=ct.compareToSameClass(mt,G);if(Ct!==0)return Ct;at++}return at<Se?1:at<je?-1:0}}},{key:"apply",value:function(){if(vt(arguments[0],Ra)){var g=arguments[0];this._shell.apply(g);for(var E=0;E<this._holes.length;E++)this._holes[E].apply(g)}else if(vt(arguments[0],ot)){var O=arguments[0];if(this._shell.apply(O),!O.isDone())for(var G=0;G<this._holes.length&&(this._holes[G].apply(O),!O.isDone());G++);O.isGeometryChanged()&&this.geometryChanged()}else if(vt(arguments[0],Xe))arguments[0].filter(this);else if(vt(arguments[0],ge)){var Y=arguments[0];Y.filter(this),this._shell.apply(Y);for(var $=0;$<this._holes.length;$++)this._holes[$].apply(Y)}}},{key:"getBoundary",value:function(){if(this.isEmpty())return this.getFactory().createMultiLineString();var g=new Array(this._holes.length+1).fill(null);g[0]=this._shell;for(var E=0;E<this._holes.length;E++)g[E+1]=this._holes[E];return g.length<=1?this.getFactory().createLinearRing(g[0].getCoordinateSequence()):this.getFactory().createMultiLineString(g)}},{key:"getGeometryType",value:function(){return Be.TYPENAME_POLYGON}},{key:"getExteriorRing",value:function(){return this._shell}},{key:"isEmpty",value:function(){return this._shell.isEmpty()}},{key:"getInteriorRingN",value:function(g){return this._holes[g]}},{key:"interfaces_",get:function(){return[Tr]}}],[{key:"constructor_",value:function(){this._shell=null,this._holes=null;var g=arguments[0],E=arguments[1],O=arguments[2];if(Be.constructor_.call(this,O),g===null&&(g=this.getFactory().createLinearRing()),E===null&&(E=[]),Be.hasNullElements(E))throw new se("holes must not contain null elements");if(g.isEmpty()&&Be.hasNonEmptyElements(E))throw new se("shell is empty but holes are not");this._shell=g,this._holes=E}}])})(Be),ci=(function(x){function h(){return m(this,h),d(this,h,arguments)}return k(h,x),C(h)})(dt),sa=(function(x){function h(g){var E;return m(this,h),(E=d(this,h)).array=[],g instanceof _t&&E.addAll(g),E}return k(h,x),C(h,[{key:"contains",value:function(g){var E,O=I(this.array);try{for(O.s();!(E=O.n()).done;)if(E.value.compareTo(g)===0)return!0}catch(G){O.e(G)}finally{O.f()}return!1}},{key:"add",value:function(g){if(this.contains(g))return!1;for(var E=0,O=this.array.length;E<O;E++)if(this.array[E].compareTo(g)===1)return!!this.array.splice(E,0,g);return this.array.push(g),!0}},{key:"addAll",value:function(g){var E,O=I(g);try{for(O.s();!(E=O.n()).done;){var G=E.value;this.add(G)}}catch(Y){O.e(Y)}finally{O.f()}return!0}},{key:"remove",value:function(){throw new kt}},{key:"size",value:function(){return this.array.length}},{key:"isEmpty",value:function(){return this.array.length===0}},{key:"toArray",value:function(){return this.array.slice()}},{key:"iterator",value:function(){return new hn(this.array)}}])})(ci),hn=(function(){return C((function x(h){m(this,x),this.array=h,this.position=0}),[{key:"next",value:function(){if(this.position===this.array.length)throw new Rt;return this.array[this.position++]}},{key:"hasNext",value:function(){return this.position<this.array.length}},{key:"remove",value:function(){throw new kt}}])})(),yn=(function(x){function h(){var g;return m(this,h),g=d(this,h),h.constructor_.apply(g,arguments),g}return k(h,x),C(h,[{key:"computeEnvelopeInternal",value:function(){for(var g=new st,E=0;E<this._geometries.length;E++)g.expandToInclude(this._geometries[E].getEnvelopeInternal());return g}},{key:"getGeometryN",value:function(g){return this._geometries[g]}},{key:"getCoordinates",value:function(){for(var g=new Array(this.getNumPoints()).fill(null),E=-1,O=0;O<this._geometries.length;O++)for(var G=this._geometries[O].getCoordinates(),Y=0;Y<G.length;Y++)g[++E]=G[Y];return g}},{key:"getArea",value:function(){for(var g=0,E=0;E<this._geometries.length;E++)g+=this._geometries[E].getArea();return g}},{key:"copyInternal",value:function(){for(var g=new Array(this._geometries.length).fill(null),E=0;E<g.length;E++)g[E]=this._geometries[E].copy();return new h(g,this._factory)}},{key:"equalsExact",value:function(){if(arguments.length===2&&typeof arguments[1]=="number"&&arguments[0]instanceof Be){var g=arguments[0],E=arguments[1];if(!this.isEquivalentClass(g))return!1;var O=g;if(this._geometries.length!==O._geometries.length)return!1;for(var G=0;G<this._geometries.length;G++)if(!this._geometries[G].equalsExact(O._geometries[G],E))return!1;return!0}return H(h,"equalsExact",this,1).apply(this,arguments)}},{key:"normalize",value:function(){for(var g=0;g<this._geometries.length;g++)this._geometries[g].normalize();qn.sort(this._geometries)}},{key:"getCoordinate",value:function(){return this.isEmpty()?null:this._geometries[0].getCoordinate()}},{key:"getBoundaryDimension",value:function(){for(var g=fe.FALSE,E=0;E<this._geometries.length;E++)g=Math.max(g,this._geometries[E].getBoundaryDimension());return g}},{key:"reverseInternal",value:function(){for(var g=this._geometries.length,E=new bt(g),O=0;O<g;O++)E.add(this._geometries[O].reverse());return this.getFactory().buildGeometry(E)}},{key:"getTypeCode",value:function(){return Be.TYPECODE_GEOMETRYCOLLECTION}},{key:"getDimension",value:function(){for(var g=fe.FALSE,E=0;E<this._geometries.length;E++)g=Math.max(g,this._geometries[E].getDimension());return g}},{key:"getLength",value:function(){for(var g=0,E=0;E<this._geometries.length;E++)g+=this._geometries[E].getLength();return g}},{key:"getNumPoints",value:function(){for(var g=0,E=0;E<this._geometries.length;E++)g+=this._geometries[E].getNumPoints();return g}},{key:"getNumGeometries",value:function(){return this._geometries.length}},{key:"compareToSameClass",value:function(){if(arguments.length===1){var g=arguments[0],E=new sa(qn.asList(this._geometries)),O=new sa(qn.asList(g._geometries));return this.compare(E,O)}if(arguments.length===2){for(var G=arguments[1],Y=arguments[0],$=this.getNumGeometries(),ne=Y.getNumGeometries(),he=0;he<$&&he<ne;){var Se=this.getGeometryN(he),je=Y.getGeometryN(he),at=Se.compareToSameClass(je,G);if(at!==0)return at;he++}return he<$?1:he<ne?-1:0}}},{key:"apply",value:function(){if(vt(arguments[0],Ra))for(var g=arguments[0],E=0;E<this._geometries.length;E++)this._geometries[E].apply(g);else if(vt(arguments[0],ot)){var O=arguments[0];if(this._geometries.length===0)return null;for(var G=0;G<this._geometries.length&&(this._geometries[G].apply(O),!O.isDone());G++);O.isGeometryChanged()&&this.geometryChanged()}else if(vt(arguments[0],Xe)){var Y=arguments[0];Y.filter(this);for(var $=0;$<this._geometries.length;$++)this._geometries[$].apply(Y)}else if(vt(arguments[0],ge)){var ne=arguments[0];ne.filter(this);for(var he=0;he<this._geometries.length;he++)this._geometries[he].apply(ne)}}},{key:"getBoundary",value:function(){return Be.checkNotGeometryCollection(this),Pe.shouldNeverReachHere(),null}},{key:"getGeometryType",value:function(){return Be.TYPENAME_GEOMETRYCOLLECTION}},{key:"isEmpty",value:function(){for(var g=0;g<this._geometries.length;g++)if(!this._geometries[g].isEmpty())return!1;return!0}}],[{key:"constructor_",value:function(){if(this._geometries=null,arguments.length!==0){if(arguments.length===2){var g=arguments[0],E=arguments[1];if(Be.constructor_.call(this,E),g===null&&(g=[]),Be.hasNullElements(g))throw new se("geometries must not contain null elements");this._geometries=g}}}}])})(Be),Ta=(function(x){function h(){var g;return m(this,h),g=d(this,h),h.constructor_.apply(g,arguments),g}return k(h,x),C(h,[{key:"copyInternal",value:function(){for(var g=new Array(this._geometries.length).fill(null),E=0;E<g.length;E++)g[E]=this._geometries[E].copy();return new h(g,this._factory)}},{key:"isValid",value:function(){return!0}},{key:"equalsExact",value:function(){if(arguments.length===2&&typeof arguments[1]=="number"&&arguments[0]instanceof Be){var g=arguments[0],E=arguments[1];return!!this.isEquivalentClass(g)&&H(h,"equalsExact",this,1).call(this,g,E)}return H(h,"equalsExact",this,1).apply(this,arguments)}},{key:"getCoordinate",value:function(){if(arguments.length===1&&Number.isInteger(arguments[0])){var g=arguments[0];return this._geometries[g].getCoordinate()}return H(h,"getCoordinate",this,1).apply(this,arguments)}},{key:"getBoundaryDimension",value:function(){return fe.FALSE}},{key:"getTypeCode",value:function(){return Be.TYPECODE_MULTIPOINT}},{key:"getDimension",value:function(){return 0}},{key:"getBoundary",value:function(){return this.getFactory().createGeometryCollection()}},{key:"getGeometryType",value:function(){return Be.TYPENAME_MULTIPOINT}},{key:"interfaces_",get:function(){return[ut]}}],[{key:"constructor_",value:function(){var g=arguments[0],E=arguments[1];yn.constructor_.call(this,g,E)}}])})(yn),Wa=(function(x){function h(){var g;return m(this,h),g=d(this,h),h.constructor_.apply(g,arguments),g}return k(h,x),C(h,[{key:"copyInternal",value:function(){return new h(this._points.copy(),this._factory)}},{key:"getBoundaryDimension",value:function(){return fe.FALSE}},{key:"isClosed",value:function(){return!!this.isEmpty()||H(h,"isClosed",this,1).call(this)}},{key:"reverseInternal",value:function(){var g=this._points.copy();return le.reverse(g),this.getFactory().createLinearRing(g)}},{key:"getTypeCode",value:function(){return Be.TYPECODE_LINEARRING}},{key:"validateConstruction",value:function(){if(!this.isEmpty()&&!H(h,"isClosed",this,1).call(this))throw new se("Points of LinearRing do not form a closed linestring");if(this.getCoordinateSequence().size()>=1&&this.getCoordinateSequence().size()<h.MINIMUM_VALID_SIZE)throw new se("Invalid number of points in LinearRing (found "+this.getCoordinateSequence().size()+" - must be 0 or >= 4)")}},{key:"getGeometryType",value:function(){return Be.TYPENAME_LINEARRING}}],[{key:"constructor_",value:function(){var g=arguments[0],E=arguments[1];yt.constructor_.call(this,g,E),this.validateConstruction()}}])})(yt);Wa.MINIMUM_VALID_SIZE=4;var Da=(function(x){function h(){var g;return m(this,h),g=d(this,h),h.constructor_.apply(g,arguments),g}return k(h,x),C(h,[{key:"setOrdinate",value:function(g,E){switch(g){case h.X:this.x=E;break;case h.Y:this.y=E;break;default:throw new se("Invalid ordinate index: "+g)}}},{key:"getZ",value:function(){return xe.NULL_ORDINATE}},{key:"getOrdinate",value:function(g){switch(g){case h.X:return this.x;case h.Y:return this.y}throw new se("Invalid ordinate index: "+g)}},{key:"setZ",value:function(g){throw new se("CoordinateXY dimension 2 does not support z-ordinate")}},{key:"copy",value:function(){return new h(this)}},{key:"toString",value:function(){return"("+this.x+", "+this.y+")"}},{key:"setCoordinate",value:function(g){this.x=g.x,this.y=g.y,this.z=g.getZ()}}],[{key:"constructor_",value:function(){if(arguments.length===0)xe.constructor_.call(this);else if(arguments.length===1){if(arguments[0]instanceof h){var g=arguments[0];xe.constructor_.call(this,g.x,g.y)}else if(arguments[0]instanceof xe){var E=arguments[0];xe.constructor_.call(this,E.x,E.y)}}else if(arguments.length===2){var O=arguments[0],G=arguments[1];xe.constructor_.call(this,O,G,xe.NULL_ORDINATE)}}}])})(xe);Da.X=0,Da.Y=1,Da.Z=-1,Da.M=-1;var Qa=(function(x){function h(){var g;return m(this,h),g=d(this,h),h.constructor_.apply(g,arguments),g}return k(h,x),C(h,[{key:"getM",value:function(){return this._m}},{key:"setOrdinate",value:function(g,E){switch(g){case h.X:this.x=E;break;case h.Y:this.y=E;break;case h.M:this._m=E;break;default:throw new se("Invalid ordinate index: "+g)}}},{key:"setM",value:function(g){this._m=g}},{key:"getZ",value:function(){return xe.NULL_ORDINATE}},{key:"getOrdinate",value:function(g){switch(g){case h.X:return this.x;case h.Y:return this.y;case h.M:return this._m}throw new se("Invalid ordinate index: "+g)}},{key:"setZ",value:function(g){throw new se("CoordinateXY dimension 2 does not support z-ordinate")}},{key:"copy",value:function(){return new h(this)}},{key:"toString",value:function(){return"("+this.x+", "+this.y+" m="+this.getM()+")"}},{key:"setCoordinate",value:function(g){this.x=g.x,this.y=g.y,this.z=g.getZ(),this._m=g.getM()}}],[{key:"constructor_",value:function(){if(this._m=null,arguments.length===0)xe.constructor_.call(this),this._m=0;else if(arguments.length===1){if(arguments[0]instanceof h){var g=arguments[0];xe.constructor_.call(this,g.x,g.y),this._m=g._m}else if(arguments[0]instanceof xe){var E=arguments[0];xe.constructor_.call(this,E.x,E.y),this._m=this.getM()}}else if(arguments.length===3){var O=arguments[0],G=arguments[1],Y=arguments[2];xe.constructor_.call(this,O,G,xe.NULL_ORDINATE),this._m=Y}}}])})(xe);Qa.X=0,Qa.Y=1,Qa.Z=-1,Qa.M=2;var qa=(function(x){function h(){var g;return m(this,h),g=d(this,h),h.constructor_.apply(g,arguments),g}return k(h,x),C(h,[{key:"getM",value:function(){return this._m}},{key:"setOrdinate",value:function(g,E){switch(g){case xe.X:this.x=E;break;case xe.Y:this.y=E;break;case xe.Z:this.z=E;break;case xe.M:this._m=E;break;default:throw new se("Invalid ordinate index: "+g)}}},{key:"setM",value:function(g){this._m=g}},{key:"getOrdinate",value:function(g){switch(g){case xe.X:return this.x;case xe.Y:return this.y;case xe.Z:return this.getZ();case xe.M:return this.getM()}throw new se("Invalid ordinate index: "+g)}},{key:"copy",value:function(){return new h(this)}},{key:"toString",value:function(){return"("+this.x+", "+this.y+", "+this.getZ()+" m="+this.getM()+")"}},{key:"setCoordinate",value:function(g){this.x=g.x,this.y=g.y,this.z=g.getZ(),this._m=g.getM()}}],[{key:"constructor_",value:function(){if(this._m=null,arguments.length===0)xe.constructor_.call(this),this._m=0;else if(arguments.length===1){if(arguments[0]instanceof h){var g=arguments[0];xe.constructor_.call(this,g),this._m=g._m}else if(arguments[0]instanceof xe){var E=arguments[0];xe.constructor_.call(this,E),this._m=this.getM()}}else if(arguments.length===4){var O=arguments[0],G=arguments[1],Y=arguments[2],$=arguments[3];xe.constructor_.call(this,O,G,Y),this._m=$}}}])})(xe),Ga=(function(){function x(){m(this,x)}return C(x,null,[{key:"measures",value:function(h){return h instanceof Da?0:h instanceof Qa||h instanceof qa?1:0}},{key:"dimension",value:function(h){return h instanceof Da?2:h instanceof Qa?3:h instanceof qa?4:3}},{key:"create",value:function(){if(arguments.length===1){var h=arguments[0];return x.create(h,0)}if(arguments.length===2){var g=arguments[0],E=arguments[1];return g===2?new Da:g===3&&E===0?new xe:g===3&&E===1?new Qa:g===4&&E===1?new qa:new xe}}}])})(),Dr=(function(x){function h(){var g;return m(this,h),g=d(this,h),h.constructor_.apply(g,arguments),g}return k(h,x),C(h,[{key:"getCoordinate",value:function(g){return this.get(g)}},{key:"addAll",value:function(){if(arguments.length===2&&typeof arguments[1]=="boolean"&&vt(arguments[0],_t)){for(var g=arguments[1],E=!1,O=arguments[0].iterator();O.hasNext();)this.add(O.next(),g),E=!0;return E}return H(h,"addAll",this,1).apply(this,arguments)}},{key:"clone",value:function(){for(var g=H(h,"clone",this,1).call(this),E=0;E<this.size();E++)g.add(E,this.get(E).clone());return g}},{key:"toCoordinateArray",value:function(){if(arguments.length===0)return this.toArray(h.coordArrayType);if(arguments.length===1){if(arguments[0])return this.toArray(h.coordArrayType);for(var g=this.size(),E=new Array(g).fill(null),O=0;O<g;O++)E[O]=this.get(g-O-1);return E}}},{key:"add",value:function(){if(arguments.length===1){var g=arguments[0];return H(h,"add",this,1).call(this,g)}if(arguments.length===2){if(arguments[0]instanceof Array&&typeof arguments[1]=="boolean"){var E=arguments[0],O=arguments[1];return this.add(E,O,!0),!0}if(arguments[0]instanceof xe&&typeof arguments[1]=="boolean"){var G=arguments[0];if(!arguments[1]&&this.size()>=1&&this.get(this.size()-1).equals2D(G))return null;H(h,"add",this,1).call(this,G)}else if(arguments[0]instanceof Object&&typeof arguments[1]=="boolean"){var Y=arguments[0],$=arguments[1];return this.add(Y,$),!0}}else if(arguments.length===3){if(typeof arguments[2]=="boolean"&&arguments[0]instanceof Array&&typeof arguments[1]=="boolean"){var ne=arguments[0],he=arguments[1];if(arguments[2])for(var Se=0;Se<ne.length;Se++)this.add(ne[Se],he);else for(var je=ne.length-1;je>=0;je--)this.add(ne[je],he);return!0}if(typeof arguments[2]=="boolean"&&Number.isInteger(arguments[0])&&arguments[1]instanceof xe){var at=arguments[0],ct=arguments[1];if(!arguments[2]){var mt=this.size();if(mt>0&&(at>0&&this.get(at-1).equals2D(ct)||at<mt&&this.get(at).equals2D(ct)))return null}H(h,"add",this,1).call(this,at,ct)}}else if(arguments.length===4){var Ct=arguments[0],Pt=arguments[1],rn=arguments[2],un=arguments[3],Wn=1;rn>un&&(Wn=-1);for(var xn=rn;xn!==un;xn+=Wn)this.add(Ct[xn],Pt);return!0}}},{key:"closeRing",value:function(){if(this.size()>0){var g=this.get(0).copy();this.add(g,!1)}}}],[{key:"constructor_",value:function(){if(arguments.length!==0){if(arguments.length===1){var g=arguments[0];this.ensureCapacity(g.length),this.add(g,!0)}else if(arguments.length===2){var E=arguments[0],O=arguments[1];this.ensureCapacity(E.length),this.add(E,O)}}}}])})(bt);Dr.coordArrayType=new Array(0).fill(null);var bn=(function(){function x(){m(this,x)}return C(x,null,[{key:"isRing",value:function(h){return!(h.length<4)&&!!h[0].equals2D(h[h.length-1])}},{key:"ptNotInList",value:function(h,g){for(var E=0;E<h.length;E++){var O=h[E];if(x.indexOf(O,g)<0)return O}return null}},{key:"scroll",value:function(h,g){var E=x.indexOf(g,h);if(E<0)return null;var O=new Array(h.length).fill(null);ua.arraycopy(h,E,O,0,h.length-E),ua.arraycopy(h,0,O,h.length-E,E),ua.arraycopy(O,0,h,0,h.length)}},{key:"equals",value:function(){if(arguments.length===2){var h=arguments[0],g=arguments[1];if(h===g)return!0;if(h===null||g===null||h.length!==g.length)return!1;for(var E=0;E<h.length;E++)if(!h[E].equals(g[E]))return!1;return!0}if(arguments.length===3){var O=arguments[0],G=arguments[1],Y=arguments[2];if(O===G)return!0;if(O===null||G===null||O.length!==G.length)return!1;for(var $=0;$<O.length;$++)if(Y.compare(O[$],G[$])!==0)return!1;return!0}}},{key:"intersection",value:function(h,g){for(var E=new Dr,O=0;O<h.length;O++)g.intersects(h[O])&&E.add(h[O],!0);return E.toCoordinateArray()}},{key:"measures",value:function(h){if(h===null||h.length===0)return 0;var g,E=0,O=I(h);try{for(O.s();!(g=O.n()).done;){var G=g.value;E=Math.max(E,Ga.measures(G))}}catch(Y){O.e(Y)}finally{O.f()}return E}},{key:"hasRepeatedPoints",value:function(h){for(var g=1;g<h.length;g++)if(h[g-1].equals(h[g]))return!0;return!1}},{key:"removeRepeatedPoints",value:function(h){return x.hasRepeatedPoints(h)?new Dr(h,!1).toCoordinateArray():h}},{key:"reverse",value:function(h){for(var g=h.length-1,E=Math.trunc(g/2),O=0;O<=E;O++){var G=h[O];h[O]=h[g-O],h[g-O]=G}}},{key:"removeNull",value:function(h){for(var g=0,E=0;E<h.length;E++)h[E]!==null&&g++;var O=new Array(g).fill(null);if(g===0)return O;for(var G=0,Y=0;Y<h.length;Y++)h[Y]!==null&&(O[G++]=h[Y]);return O}},{key:"copyDeep",value:function(){if(arguments.length===1){for(var h=arguments[0],g=new Array(h.length).fill(null),E=0;E<h.length;E++)g[E]=h[E].copy();return g}if(arguments.length===5)for(var O=arguments[0],G=arguments[1],Y=arguments[2],$=arguments[3],ne=arguments[4],he=0;he<ne;he++)Y[$+he]=O[G+he].copy()}},{key:"isEqualReversed",value:function(h,g){for(var E=0;E<h.length;E++){var O=h[E],G=g[h.length-E-1];if(O.compareTo(G)!==0)return!1}return!0}},{key:"envelope",value:function(h){for(var g=new st,E=0;E<h.length;E++)g.expandToInclude(h[E]);return g}},{key:"toCoordinateArray",value:function(h){return h.toArray(x.coordArrayType)}},{key:"dimension",value:function(h){if(h===null||h.length===0)return 3;var g,E=0,O=I(h);try{for(O.s();!(g=O.n()).done;){var G=g.value;E=Math.max(E,Ga.dimension(G))}}catch(Y){O.e(Y)}finally{O.f()}return E}},{key:"atLeastNCoordinatesOrNothing",value:function(h,g){return g.length>=h?g:[]}},{key:"indexOf",value:function(h,g){for(var E=0;E<g.length;E++)if(h.equals(g[E]))return E;return-1}},{key:"increasingDirection",value:function(h){for(var g=0;g<Math.trunc(h.length/2);g++){var E=h.length-1-g,O=h[g].compareTo(h[E]);if(O!==0)return O}return 1}},{key:"compare",value:function(h,g){for(var E=0;E<h.length&&E<g.length;){var O=h[E].compareTo(g[E]);if(O!==0)return O;E++}return E<g.length?-1:E<h.length?1:0}},{key:"minCoordinate",value:function(h){for(var g=null,E=0;E<h.length;E++)(g===null||g.compareTo(h[E])>0)&&(g=h[E]);return g}},{key:"extract",value:function(h,g,E){g=Jn.clamp(g,0,h.length);var O=(E=Jn.clamp(E,-1,h.length))-g+1;E<0&&(O=0),g>=h.length&&(O=0),E<g&&(O=0);var G=new Array(O).fill(null);if(O===0)return G;for(var Y=0,$=g;$<=E;$++)G[Y++]=h[$];return G}}])})(),Di=(function(){return C((function x(){m(this,x)}),[{key:"compare",value:function(x,h){var g=x,E=h;return bn.compare(g,E)}},{key:"interfaces_",get:function(){return[Le]}}])})(),Ir=(function(){return C((function x(){m(this,x)}),[{key:"compare",value:function(x,h){var g=x,E=h;if(g.length<E.length)return-1;if(g.length>E.length)return 1;if(g.length===0)return 0;var O=bn.compare(g,E);return bn.isEqualReversed(g,E)?0:O}},{key:"OLDcompare",value:function(x,h){var g=x,E=h;if(g.length<E.length)return-1;if(g.length>E.length)return 1;if(g.length===0)return 0;for(var O=bn.increasingDirection(g),G=bn.increasingDirection(E),Y=O>0?0:g.length-1,$=G>0?0:g.length-1,ne=0;ne<g.length;ne++){var he=g[Y].compareTo(E[$]);if(he!==0)return he;Y+=O,$+=G}return 0}},{key:"interfaces_",get:function(){return[Le]}}])})();bn.ForwardComparator=Di,bn.BidirectionalComparator=Ir,bn.coordArrayType=new Array(0).fill(null);var Gr=(function(){return C((function x(h){m(this,x),this.str=h}),[{key:"append",value:function(x){this.str+=x}},{key:"setCharAt",value:function(x,h){this.str=this.str.substr(0,x)+h+this.str.substr(x+1)}},{key:"toString",value:function(){return this.str}}])})(),Vt=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"getM",value:function(h){return this.hasM()?this._coordinates[h].getM():Ve.NaN}},{key:"setOrdinate",value:function(h,g,E){switch(g){case zt.X:this._coordinates[h].x=E;break;case zt.Y:this._coordinates[h].y=E;break;default:this._coordinates[h].setOrdinate(g,E)}}},{key:"getZ",value:function(h){return this.hasZ()?this._coordinates[h].getZ():Ve.NaN}},{key:"size",value:function(){return this._coordinates.length}},{key:"getOrdinate",value:function(h,g){switch(g){case zt.X:return this._coordinates[h].x;case zt.Y:return this._coordinates[h].y;default:return this._coordinates[h].getOrdinate(g)}}},{key:"getCoordinate",value:function(){if(arguments.length===1){var h=arguments[0];return this._coordinates[h]}if(arguments.length===2){var g=arguments[0];arguments[1].setCoordinate(this._coordinates[g])}}},{key:"getCoordinateCopy",value:function(h){var g=this.createCoordinate();return g.setCoordinate(this._coordinates[h]),g}},{key:"createCoordinate",value:function(){return Ga.create(this.getDimension(),this.getMeasures())}},{key:"getDimension",value:function(){return this._dimension}},{key:"getX",value:function(h){return this._coordinates[h].x}},{key:"getMeasures",value:function(){return this._measures}},{key:"expandEnvelope",value:function(h){for(var g=0;g<this._coordinates.length;g++)h.expandToInclude(this._coordinates[g]);return h}},{key:"copy",value:function(){for(var h=new Array(this.size()).fill(null),g=0;g<this._coordinates.length;g++){var E=this.createCoordinate();E.setCoordinate(this._coordinates[g]),h[g]=E}return new x(h,this._dimension,this._measures)}},{key:"toString",value:function(){if(this._coordinates.length>0){var h=new Gr(17*this._coordinates.length);h.append("("),h.append(this._coordinates[0]);for(var g=1;g<this._coordinates.length;g++)h.append(", "),h.append(this._coordinates[g]);return h.append(")"),h.toString()}return"()"}},{key:"getY",value:function(h){return this._coordinates[h].y}},{key:"toCoordinateArray",value:function(){return this._coordinates}},{key:"interfaces_",get:function(){return[zt,ce]}}],[{key:"constructor_",value:function(){if(this._dimension=3,this._measures=0,this._coordinates=null,arguments.length===1){if(arguments[0]instanceof Array){var h=arguments[0];x.constructor_.call(this,h,bn.dimension(h),bn.measures(h))}else if(Number.isInteger(arguments[0])){var g=arguments[0];this._coordinates=new Array(g).fill(null);for(var E=0;E<g;E++)this._coordinates[E]=new xe}else if(vt(arguments[0],zt)){var O=arguments[0];if(O===null)return this._coordinates=new Array(0).fill(null),null;this._dimension=O.getDimension(),this._measures=O.getMeasures(),this._coordinates=new Array(O.size()).fill(null);for(var G=0;G<this._coordinates.length;G++)this._coordinates[G]=O.getCoordinateCopy(G)}}else if(arguments.length===2){if(arguments[0]instanceof Array&&Number.isInteger(arguments[1])){var Y=arguments[0],$=arguments[1];x.constructor_.call(this,Y,$,bn.measures(Y))}else if(Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var ne=arguments[0],he=arguments[1];this._coordinates=new Array(ne).fill(null),this._dimension=he;for(var Se=0;Se<ne;Se++)this._coordinates[Se]=Ga.create(he)}}else if(arguments.length===3){if(Number.isInteger(arguments[2])&&arguments[0]instanceof Array&&Number.isInteger(arguments[1])){var je=arguments[0],at=arguments[1],ct=arguments[2];this._dimension=at,this._measures=ct,this._coordinates=je===null?new Array(0).fill(null):je}else if(Number.isInteger(arguments[2])&&Number.isInteger(arguments[0])&&Number.isInteger(arguments[1])){var mt=arguments[0],Ct=arguments[1],Pt=arguments[2];this._coordinates=new Array(mt).fill(null),this._dimension=Ct,this._measures=Pt;for(var rn=0;rn<mt;rn++)this._coordinates[rn]=this.createCoordinate()}}}}])})(),fi=(function(){function x(){m(this,x)}return C(x,[{key:"readResolve",value:function(){return x.instance()}},{key:"create",value:function(){if(arguments.length===1){if(arguments[0]instanceof Array)return new Vt(arguments[0]);if(vt(arguments[0],zt))return new Vt(arguments[0])}else{if(arguments.length===2){var h=arguments[1];return h>3&&(h=3),h<2&&(h=2),new Vt(arguments[0],h)}if(arguments.length===3){var g=arguments[2],E=arguments[1]-g;return g>1&&(g=1),E>3&&(E=3),E<2&&(E=2),new Vt(arguments[0],E+g,g)}}}},{key:"interfaces_",get:function(){return[Ti,ce]}}],[{key:"instance",value:function(){return x.instanceObject}}])})();fi.instanceObject=new fi;var nu=(function(x){function h(){var g;return m(this,h),g=d(this,h),h.constructor_.apply(g,arguments),g}return k(h,x),C(h,[{key:"copyInternal",value:function(){for(var g=new Array(this._geometries.length).fill(null),E=0;E<g.length;E++)g[E]=this._geometries[E].copy();return new h(g,this._factory)}},{key:"equalsExact",value:function(){if(arguments.length===2&&typeof arguments[1]=="number"&&arguments[0]instanceof Be){var g=arguments[0],E=arguments[1];return!!this.isEquivalentClass(g)&&H(h,"equalsExact",this,1).call(this,g,E)}return H(h,"equalsExact",this,1).apply(this,arguments)}},{key:"getBoundaryDimension",value:function(){return 1}},{key:"getTypeCode",value:function(){return Be.TYPECODE_MULTIPOLYGON}},{key:"getDimension",value:function(){return 2}},{key:"getBoundary",value:function(){if(this.isEmpty())return this.getFactory().createMultiLineString();for(var g=new bt,E=0;E<this._geometries.length;E++)for(var O=this._geometries[E].getBoundary(),G=0;G<O.getNumGeometries();G++)g.add(O.getGeometryN(G));var Y=new Array(g.size()).fill(null);return this.getFactory().createMultiLineString(g.toArray(Y))}},{key:"getGeometryType",value:function(){return Be.TYPENAME_MULTIPOLYGON}},{key:"interfaces_",get:function(){return[Tr]}}],[{key:"constructor_",value:function(){var g=arguments[0],E=arguments[1];yn.constructor_.call(this,g,E)}}])})(yn),bu=(function(){return C((function x(){m(this,x)}),[{key:"get",value:function(){}},{key:"put",value:function(){}},{key:"size",value:function(){}},{key:"values",value:function(){}},{key:"entrySet",value:function(){}}])})(),au=(function(x){function h(){var g;return m(this,h),(g=d(this,h)).map=new Map,g}return k(h,x),C(h,[{key:"get",value:function(g){return this.map.get(g)||null}},{key:"put",value:function(g,E){return this.map.set(g,E),E}},{key:"values",value:function(){for(var g=new bt,E=this.map.values(),O=E.next();!O.done;)g.add(O.value),O=E.next();return g}},{key:"entrySet",value:function(){var g=new Fa;return this.map.entries().forEach((function(E){return g.add(E)})),g}},{key:"size",value:function(){return this.map.size()}}])})(bu),Or=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"equals",value:function(h){if(!(h instanceof x))return!1;var g=h;return this._modelType===g._modelType&&this._scale===g._scale}},{key:"compareTo",value:function(h){var g=h,E=this.getMaximumSignificantDigits(),O=g.getMaximumSignificantDigits();return gr.compare(E,O)}},{key:"getScale",value:function(){return this._scale}},{key:"isFloating",value:function(){return this._modelType===x.FLOATING||this._modelType===x.FLOATING_SINGLE}},{key:"getType",value:function(){return this._modelType}},{key:"toString",value:function(){var h="UNKNOWN";return this._modelType===x.FLOATING?h="Floating":this._modelType===x.FLOATING_SINGLE?h="Floating-Single":this._modelType===x.FIXED&&(h="Fixed (Scale="+this.getScale()+")"),h}},{key:"makePrecise",value:function(){if(typeof arguments[0]=="number"){var h=arguments[0];return Ve.isNaN(h)||this._modelType===x.FLOATING_SINGLE?h:this._modelType===x.FIXED?Math.round(h*this._scale)/this._scale:h}if(arguments[0]instanceof xe){var g=arguments[0];if(this._modelType===x.FLOATING)return null;g.x=this.makePrecise(g.x),g.y=this.makePrecise(g.y)}}},{key:"getMaximumSignificantDigits",value:function(){var h=16;return this._modelType===x.FLOATING?h=16:this._modelType===x.FLOATING_SINGLE?h=6:this._modelType===x.FIXED&&(h=1+Math.trunc(Math.ceil(Math.log(this.getScale())/Math.log(10)))),h}},{key:"setScale",value:function(h){this._scale=Math.abs(h)}},{key:"interfaces_",get:function(){return[ce,pe]}}],[{key:"constructor_",value:function(){if(this._modelType=null,this._scale=null,arguments.length===0)this._modelType=x.FLOATING;else if(arguments.length===1){if(arguments[0]instanceof _u){var h=arguments[0];this._modelType=h,h===x.FIXED&&this.setScale(1)}else if(typeof arguments[0]=="number"){var g=arguments[0];this._modelType=x.FIXED,this.setScale(g)}else if(arguments[0]instanceof x){var E=arguments[0];this._modelType=E._modelType,this._scale=E._scale}}}},{key:"mostPrecise",value:function(h,g){return h.compareTo(g)>=0?h:g}}])})(),_u=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"readResolve",value:function(){return x.nameToTypeMap.get(this._name)}},{key:"toString",value:function(){return this._name}},{key:"interfaces_",get:function(){return[ce]}}],[{key:"constructor_",value:function(){this._name=null;var h=arguments[0];this._name=h,x.nameToTypeMap.put(h,this)}}])})();_u.nameToTypeMap=new au,Or.Type=_u,Or.FIXED=new _u("FIXED"),Or.FLOATING=new _u("FLOATING"),Or.FLOATING_SINGLE=new _u("FLOATING SINGLE"),Or.maximumPreciseValue=9007199254740992;var Zu=(function(x){function h(){var g;return m(this,h),g=d(this,h),h.constructor_.apply(g,arguments),g}return k(h,x),C(h,[{key:"copyInternal",value:function(){for(var g=new Array(this._geometries.length).fill(null),E=0;E<g.length;E++)g[E]=this._geometries[E].copy();return new h(g,this._factory)}},{key:"equalsExact",value:function(){if(arguments.length===2&&typeof arguments[1]=="number"&&arguments[0]instanceof Be){var g=arguments[0],E=arguments[1];return!!this.isEquivalentClass(g)&&H(h,"equalsExact",this,1).call(this,g,E)}return H(h,"equalsExact",this,1).apply(this,arguments)}},{key:"getBoundaryDimension",value:function(){return this.isClosed()?fe.FALSE:0}},{key:"isClosed",value:function(){if(this.isEmpty())return!1;for(var g=0;g<this._geometries.length;g++)if(!this._geometries[g].isClosed())return!1;return!0}},{key:"getTypeCode",value:function(){return Be.TYPECODE_MULTILINESTRING}},{key:"getDimension",value:function(){return 1}},{key:"getBoundary",value:function(){throw new kt}},{key:"getGeometryType",value:function(){return Be.TYPENAME_MULTILINESTRING}},{key:"interfaces_",get:function(){return[ae]}}],[{key:"constructor_",value:function(){var g=arguments[0],E=arguments[1];yn.constructor_.call(this,g,E)}}])})(yn),Ii=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"createEmpty",value:function(h){switch(h){case-1:return this.createGeometryCollection();case 0:return this.createPoint();case 1:return this.createLineString();case 2:return this.createPolygon();default:throw new se("Invalid dimension: "+h)}}},{key:"toGeometry",value:function(h){return h.isNull()?this.createPoint():h.getMinX()===h.getMaxX()&&h.getMinY()===h.getMaxY()?this.createPoint(new xe(h.getMinX(),h.getMinY())):h.getMinX()===h.getMaxX()||h.getMinY()===h.getMaxY()?this.createLineString([new xe(h.getMinX(),h.getMinY()),new xe(h.getMaxX(),h.getMaxY())]):this.createPolygon(this.createLinearRing([new xe(h.getMinX(),h.getMinY()),new xe(h.getMinX(),h.getMaxY()),new xe(h.getMaxX(),h.getMaxY()),new xe(h.getMaxX(),h.getMinY()),new xe(h.getMinX(),h.getMinY())]),null)}},{key:"createLineString",value:function(){if(arguments.length===0)return this.createLineString(this.getCoordinateSequenceFactory().create([]));if(arguments.length===1){if(arguments[0]instanceof Array){var h=arguments[0];return this.createLineString(h!==null?this.getCoordinateSequenceFactory().create(h):null)}if(vt(arguments[0],zt))return new yt(arguments[0],this)}}},{key:"createMultiLineString",value:function(){return arguments.length===0?new Zu(null,this):arguments.length===1?new Zu(arguments[0],this):void 0}},{key:"buildGeometry",value:function(h){for(var g=null,E=!1,O=!1,G=h.iterator();G.hasNext();){var Y=G.next(),$=Y.getTypeCode();g===null&&(g=$),$!==g&&(E=!0),Y instanceof yn&&(O=!0)}if(g===null)return this.createGeometryCollection();if(E||O)return this.createGeometryCollection(x.toGeometryArray(h));var ne=h.iterator().next();if(h.size()>1){if(ne instanceof li)return this.createMultiPolygon(x.toPolygonArray(h));if(ne instanceof yt)return this.createMultiLineString(x.toLineStringArray(h));if(ne instanceof tn)return this.createMultiPoint(x.toPointArray(h));Pe.shouldNeverReachHere("Unhandled geometry type: "+ne.getGeometryType())}return ne}},{key:"createMultiPointFromCoords",value:function(h){return this.createMultiPoint(h!==null?this.getCoordinateSequenceFactory().create(h):null)}},{key:"createPoint",value:function(){if(arguments.length===0)return this.createPoint(this.getCoordinateSequenceFactory().create([]));if(arguments.length===1){if(arguments[0]instanceof xe){var h=arguments[0];return this.createPoint(h!==null?this.getCoordinateSequenceFactory().create([h]):null)}if(vt(arguments[0],zt))return new tn(arguments[0],this)}}},{key:"getCoordinateSequenceFactory",value:function(){return this._coordinateSequenceFactory}},{key:"createPolygon",value:function(){if(arguments.length===0)return this.createPolygon(null,null);if(arguments.length===1){if(vt(arguments[0],zt)){var h=arguments[0];return this.createPolygon(this.createLinearRing(h))}if(arguments[0]instanceof Array){var g=arguments[0];return this.createPolygon(this.createLinearRing(g))}if(arguments[0]instanceof Wa){var E=arguments[0];return this.createPolygon(E,null)}}else if(arguments.length===2)return new li(arguments[0],arguments[1],this)}},{key:"getSRID",value:function(){return this._SRID}},{key:"createGeometryCollection",value:function(){return arguments.length===0?new yn(null,this):arguments.length===1?new yn(arguments[0],this):void 0}},{key:"getPrecisionModel",value:function(){return this._precisionModel}},{key:"createLinearRing",value:function(){if(arguments.length===0)return this.createLinearRing(this.getCoordinateSequenceFactory().create([]));if(arguments.length===1){if(arguments[0]instanceof Array){var h=arguments[0];return this.createLinearRing(h!==null?this.getCoordinateSequenceFactory().create(h):null)}if(vt(arguments[0],zt))return new Wa(arguments[0],this)}}},{key:"createMultiPolygon",value:function(){return arguments.length===0?new nu(null,this):arguments.length===1?new nu(arguments[0],this):void 0}},{key:"createMultiPoint",value:function(){if(arguments.length===0)return new Ta(null,this);if(arguments.length===1){if(arguments[0]instanceof Array)return new Ta(arguments[0],this);if(vt(arguments[0],zt)){var h=arguments[0];if(h===null)return this.createMultiPoint(new Array(0).fill(null));for(var g=new Array(h.size()).fill(null),E=0;E<h.size();E++){var O=this.getCoordinateSequenceFactory().create(1,h.getDimension(),h.getMeasures());le.copy(h,E,O,0,1),g[E]=this.createPoint(O)}return this.createMultiPoint(g)}}}},{key:"interfaces_",get:function(){return[ce]}}],[{key:"constructor_",value:function(){if(this._precisionModel=null,this._coordinateSequenceFactory=null,this._SRID=null,arguments.length===0)x.constructor_.call(this,new Or,0);else if(arguments.length===1){if(vt(arguments[0],Ti)){var h=arguments[0];x.constructor_.call(this,new Or,0,h)}else if(arguments[0]instanceof Or){var g=arguments[0];x.constructor_.call(this,g,0,x.getDefaultCoordinateSequenceFactory())}}else if(arguments.length===2){var E=arguments[0],O=arguments[1];x.constructor_.call(this,E,O,x.getDefaultCoordinateSequenceFactory())}else if(arguments.length===3){var G=arguments[0],Y=arguments[1],$=arguments[2];this._precisionModel=G,this._coordinateSequenceFactory=$,this._SRID=Y}}},{key:"toMultiPolygonArray",value:function(h){var g=new Array(h.size()).fill(null);return h.toArray(g)}},{key:"toGeometryArray",value:function(h){if(h===null)return null;var g=new Array(h.size()).fill(null);return h.toArray(g)}},{key:"getDefaultCoordinateSequenceFactory",value:function(){return fi.instance()}},{key:"toMultiLineStringArray",value:function(h){var g=new Array(h.size()).fill(null);return h.toArray(g)}},{key:"toLineStringArray",value:function(h){var g=new Array(h.size()).fill(null);return h.toArray(g)}},{key:"toMultiPointArray",value:function(h){var g=new Array(h.size()).fill(null);return h.toArray(g)}},{key:"toLinearRingArray",value:function(h){var g=new Array(h.size()).fill(null);return h.toArray(g)}},{key:"toPointArray",value:function(h){var g=new Array(h.size()).fill(null);return h.toArray(g)}},{key:"toPolygonArray",value:function(h){var g=new Array(h.size()).fill(null);return h.toArray(g)}},{key:"createPointFromInternalCoord",value:function(h,g){return g.getPrecisionModel().makePrecise(h),g.getFactory().createPoint(h)}}])})(),$u="XY",fc="XYZ",Eu="XYM",zr="XYZM",ll={POINT:"Point",LINE_STRING:"LineString",LINEAR_RING:"LinearRing",POLYGON:"Polygon",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon",GEOMETRY_COLLECTION:"GeometryCollection",CIRCLE:"Circle"},dc="EMPTY",qs=1,Oi=2,di=3,Ih=4,Ia=5,cl=6;for(var fl in ll)ll[fl].toUpperCase();var Gs=(function(){return C((function x(h){m(this,x),this.wkt=h,this.index_=-1}),[{key:"isAlpha_",value:function(x){return x>="a"&&x<="z"||x>="A"&&x<="Z"}},{key:"isNumeric_",value:function(x,h){return x>="0"&&x<="9"||x=="."&&!(h!==void 0&&h)}},{key:"isWhiteSpace_",value:function(x){return x==" "||x==" "||x=="\r"||x==`
11
+ `}},{key:"nextChar_",value:function(){return this.wkt.charAt(++this.index_)}},{key:"nextToken",value:function(){var x,h=this.nextChar_(),g=this.index_,E=h;if(h=="(")x=Oi;else if(h==",")x=Ia;else if(h==")")x=di;else if(this.isNumeric_(h)||h=="-")x=Ih,E=this.readNumber_();else if(this.isAlpha_(h))x=qs,E=this.readText_();else{if(this.isWhiteSpace_(h))return this.nextToken();if(h!=="")throw new Error("Unexpected character: "+h);x=cl}return{position:g,value:E,type:x}}},{key:"readNumber_",value:function(){var x,h=this.index_,g=!1,E=!1;do x=="."?g=!0:x!="e"&&x!="E"||(E=!0),x=this.nextChar_();while(this.isNumeric_(x,g)||!E&&(x=="e"||x=="E")||E&&(x=="-"||x=="+"));return parseFloat(this.wkt.substring(h,this.index_--))}},{key:"readText_",value:function(){var x,h=this.index_;do x=this.nextChar_();while(this.isAlpha_(x));return this.wkt.substring(h,this.index_--).toUpperCase()}}])})(),Ao=(function(){return C((function x(h,g){m(this,x),this.lexer_=h,this.token_,this.layout_=$u,this.factory=g}),[{key:"consume_",value:function(){this.token_=this.lexer_.nextToken()}},{key:"isTokenType",value:function(x){return this.token_.type==x}},{key:"match",value:function(x){var h=this.isTokenType(x);return h&&this.consume_(),h}},{key:"parse",value:function(){return this.consume_(),this.parseGeometry_()}},{key:"parseGeometryLayout_",value:function(){var x=$u,h=this.token_;if(this.isTokenType(qs)){var g=h.value;g==="Z"?x=fc:g==="M"?x=Eu:g==="ZM"&&(x=zr),x!==$u&&this.consume_()}return x}},{key:"parseGeometryCollectionText_",value:function(){if(this.match(Oi)){var x=[];do x.push(this.parseGeometry_());while(this.match(Ia));if(this.match(di))return x}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())}},{key:"parsePointText_",value:function(){if(this.match(Oi)){var x=this.parsePoint_();if(this.match(di))return x}else if(this.isEmptyGeometry_())return null;throw new Error(this.formatErrorMessage_())}},{key:"parseLineStringText_",value:function(){if(this.match(Oi)){var x=this.parsePointList_();if(this.match(di))return x}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())}},{key:"parsePolygonText_",value:function(){if(this.match(Oi)){var x=this.parseLineStringTextList_();if(this.match(di))return x}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())}},{key:"parseMultiPointText_",value:function(){var x;if(this.match(Oi)){if(x=this.token_.type==Oi?this.parsePointTextList_():this.parsePointList_(),this.match(di))return x}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())}},{key:"parseMultiLineStringText_",value:function(){if(this.match(Oi)){var x=this.parseLineStringTextList_();if(this.match(di))return x}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())}},{key:"parseMultiPolygonText_",value:function(){if(this.match(Oi)){var x=this.parsePolygonTextList_();if(this.match(di))return x}else if(this.isEmptyGeometry_())return[];throw new Error(this.formatErrorMessage_())}},{key:"parsePoint_",value:function(){for(var x=[],h=this.layout_.length,g=0;g<h;++g){var E=this.token_;if(!this.match(Ih))break;x.push(E.value)}if(x.length==h)return x;throw new Error(this.formatErrorMessage_())}},{key:"parsePointList_",value:function(){for(var x=[this.parsePoint_()];this.match(Ia);)x.push(this.parsePoint_());return x}},{key:"parsePointTextList_",value:function(){for(var x=[this.parsePointText_()];this.match(Ia);)x.push(this.parsePointText_());return x}},{key:"parseLineStringTextList_",value:function(){for(var x=[this.parseLineStringText_()];this.match(Ia);)x.push(this.parseLineStringText_());return x}},{key:"parsePolygonTextList_",value:function(){for(var x=[this.parsePolygonText_()];this.match(Ia);)x.push(this.parsePolygonText_());return x}},{key:"isEmptyGeometry_",value:function(){var x=this.isTokenType(qs)&&this.token_.value==dc;return x&&this.consume_(),x}},{key:"formatErrorMessage_",value:function(){return"Unexpected `"+this.token_.value+"` at position "+this.token_.position+" in `"+this.lexer_.wkt+"`"}},{key:"parseGeometry_",value:function(){var x=this.factory,h=function(Ct){return v(xe,W(Ct))},g=function(Ct){var Pt=Ct.map((function(rn){return x.createLinearRing(rn.map(h))}));return Pt.length>1?x.createPolygon(Pt[0],Pt.slice(1)):x.createPolygon(Pt[0])},E=this.token_;if(this.match(qs)){var O=E.value;if(this.layout_=this.parseGeometryLayout_(),O=="GEOMETRYCOLLECTION"){var G=this.parseGeometryCollectionText_();return x.createGeometryCollection(G)}switch(O){case"POINT":var Y=this.parsePointText_();return Y?x.createPoint(v(xe,W(Y))):x.createPoint();case"LINESTRING":var $=this.parseLineStringText_().map(h);return x.createLineString($);case"LINEARRING":var ne=this.parseLineStringText_().map(h);return x.createLinearRing(ne);case"POLYGON":var he=this.parsePolygonText_();return he&&he.length!==0?g(he):x.createPolygon();case"MULTIPOINT":var Se=this.parseMultiPointText_();if(!Se||Se.length===0)return x.createMultiPoint();var je=Se.map(h).map((function(Ct){return x.createPoint(Ct)}));return x.createMultiPoint(je);case"MULTILINESTRING":var at=this.parseMultiLineStringText_().map((function(Ct){return x.createLineString(Ct.map(h))}));return x.createMultiLineString(at);case"MULTIPOLYGON":var ct=this.parseMultiPolygonText_();if(!ct||ct.length===0)return x.createMultiPolygon();var mt=ct.map(g);return x.createMultiPolygon(mt);default:throw new Error("Invalid geometry type: "+O)}}throw new Error(this.formatErrorMessage_())}}])})();function hc(x){if(x.isEmpty())return"";var h=x.getCoordinate(),g=[h.x,h.y];return h.z===void 0||Number.isNaN(h.z)||g.push(h.z),h.m===void 0||Number.isNaN(h.m)||g.push(h.m),g.join(" ")}function zs(x){for(var h=x.getCoordinates().map((function(G){var Y=[G.x,G.y];return G.z===void 0||Number.isNaN(G.z)||Y.push(G.z),G.m===void 0||Number.isNaN(G.m)||Y.push(G.m),Y})),g=[],E=0,O=h.length;E<O;++E)g.push(h[E].join(" "));return g.join(", ")}function wi(x){var h=[];h.push("("+zs(x.getExteriorRing())+")");for(var g=0,E=x.getNumInteriorRing();g<E;++g)h.push("("+zs(x.getInteriorRingN(g))+")");return h.join(", ")}var Oh={Point:hc,LineString:zs,LinearRing:zs,Polygon:wi,MultiPoint:function(x){for(var h=[],g=0,E=x.getNumGeometries();g<E;++g)h.push("("+hc(x.getGeometryN(g))+")");return h.join(", ")},MultiLineString:function(x){for(var h=[],g=0,E=x.getNumGeometries();g<E;++g)h.push("("+zs(x.getGeometryN(g))+")");return h.join(", ")},MultiPolygon:function(x){for(var h=[],g=0,E=x.getNumGeometries();g<E;++g)h.push("("+wi(x.getGeometryN(g))+")");return h.join(", ")},GeometryCollection:function(x){for(var h=[],g=0,E=x.getNumGeometries();g<E;++g)h.push(Yf(x.getGeometryN(g)));return h.join(", ")}};function Yf(x){var h=x.getGeometryType(),g=Oh[h];h=h.toUpperCase();var E=(function(O){var G="";if(O.isEmpty())return G;var Y=O.getCoordinate();return Y.z===void 0||Number.isNaN(Y.z)||(G+="Z"),Y.m===void 0||Number.isNaN(Y.m)||(G+="M"),G})(x);return E.length>0&&(h+=" "+E),x.isEmpty()?h+" "+dc:h+" ("+g(x)+")"}var wh=(function(){return C((function x(h){m(this,x),this.geometryFactory=h||new Ii,this.precisionModel=this.geometryFactory.getPrecisionModel()}),[{key:"read",value:function(x){var h=new Gs(x);return new Ao(h,this.geometryFactory).parse()}},{key:"write",value:function(x){return Yf(x)}}])})(),dl=(function(){return C((function x(h){m(this,x),this.parser=new wh(h)}),[{key:"write",value:function(x){return this.parser.write(x)}}],[{key:"toLineString",value:function(x,h){if(arguments.length!==2)throw new Error("Not implemented");return"LINESTRING ( "+x.x+" "+x.y+", "+h.x+" "+h.y+" )"}}])})(),Gn=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"getIndexAlongSegment",value:function(h,g){return this.computeIntLineIndex(),this._intLineIndex[h][g]}},{key:"getTopologySummary",value:function(){var h=new Gr;return this.isEndPoint()&&h.append(" endpoint"),this._isProper&&h.append(" proper"),this.isCollinear()&&h.append(" collinear"),h.toString()}},{key:"computeIntersection",value:function(h,g,E,O){this._inputLines[0][0]=h,this._inputLines[0][1]=g,this._inputLines[1][0]=E,this._inputLines[1][1]=O,this._result=this.computeIntersect(h,g,E,O)}},{key:"getIntersectionNum",value:function(){return this._result}},{key:"computeIntLineIndex",value:function(){if(arguments.length===0)this._intLineIndex===null&&(this._intLineIndex=Array(2).fill().map((function(){return Array(2)})),this.computeIntLineIndex(0),this.computeIntLineIndex(1));else if(arguments.length===1){var h=arguments[0];this.getEdgeDistance(h,0)>this.getEdgeDistance(h,1)?(this._intLineIndex[h][0]=0,this._intLineIndex[h][1]=1):(this._intLineIndex[h][0]=1,this._intLineIndex[h][1]=0)}}},{key:"isProper",value:function(){return this.hasIntersection()&&this._isProper}},{key:"setPrecisionModel",value:function(h){this._precisionModel=h}},{key:"isInteriorIntersection",value:function(){if(arguments.length===0)return!!this.isInteriorIntersection(0)||!!this.isInteriorIntersection(1);if(arguments.length===1){for(var h=arguments[0],g=0;g<this._result;g++)if(!this._intPt[g].equals2D(this._inputLines[h][0])&&!this._intPt[g].equals2D(this._inputLines[h][1]))return!0;return!1}}},{key:"getIntersection",value:function(h){return this._intPt[h]}},{key:"isEndPoint",value:function(){return this.hasIntersection()&&!this._isProper}},{key:"hasIntersection",value:function(){return this._result!==x.NO_INTERSECTION}},{key:"getEdgeDistance",value:function(h,g){return x.computeEdgeDistance(this._intPt[g],this._inputLines[h][0],this._inputLines[h][1])}},{key:"isCollinear",value:function(){return this._result===x.COLLINEAR_INTERSECTION}},{key:"toString",value:function(){return dl.toLineString(this._inputLines[0][0],this._inputLines[0][1])+" - "+dl.toLineString(this._inputLines[1][0],this._inputLines[1][1])+this.getTopologySummary()}},{key:"getEndpoint",value:function(h,g){return this._inputLines[h][g]}},{key:"isIntersection",value:function(h){for(var g=0;g<this._result;g++)if(this._intPt[g].equals2D(h))return!0;return!1}},{key:"getIntersectionAlongSegment",value:function(h,g){return this.computeIntLineIndex(),this._intPt[this._intLineIndex[h][g]]}}],[{key:"constructor_",value:function(){this._result=null,this._inputLines=Array(2).fill().map((function(){return Array(2)})),this._intPt=new Array(2).fill(null),this._intLineIndex=null,this._isProper=null,this._pa=null,this._pb=null,this._precisionModel=null,this._intPt[0]=new xe,this._intPt[1]=new xe,this._pa=this._intPt[0],this._pb=this._intPt[1],this._result=0}},{key:"computeEdgeDistance",value:function(h,g,E){var O=Math.abs(E.x-g.x),G=Math.abs(E.y-g.y),Y=-1;if(h.equals(g))Y=0;else if(h.equals(E))Y=O>G?O:G;else{var $=Math.abs(h.x-g.x),ne=Math.abs(h.y-g.y);(Y=O>G?$:ne)!==0||h.equals(g)||(Y=Math.max($,ne))}return Pe.isTrue(!(Y===0&&!h.equals(g)),"Bad distance calculation"),Y}},{key:"nonRobustComputeEdgeDistance",value:function(h,g,E){var O=h.x-g.x,G=h.y-g.y,Y=Math.sqrt(O*O+G*G);return Pe.isTrue(!(Y===0&&!h.equals(g)),"Invalid distance calculation"),Y}}])})();Gn.DONT_INTERSECT=0,Gn.DO_INTERSECT=1,Gn.COLLINEAR=2,Gn.NO_INTERSECTION=0,Gn.POINT_INTERSECTION=1,Gn.COLLINEAR_INTERSECTION=2;var Ni=(function(x){function h(){return m(this,h),d(this,h)}return k(h,x),C(h,[{key:"isInSegmentEnvelopes",value:function(g){var E=new st(this._inputLines[0][0],this._inputLines[0][1]),O=new st(this._inputLines[1][0],this._inputLines[1][1]);return E.contains(g)&&O.contains(g)}},{key:"computeIntersection",value:function(){if(arguments.length!==3)return H(h,"computeIntersection",this,1).apply(this,arguments);var g=arguments[0],E=arguments[1],O=arguments[2];if(this._isProper=!1,st.intersects(E,O,g)&&Tt.index(E,O,g)===0&&Tt.index(O,E,g)===0)return this._isProper=!0,(g.equals(E)||g.equals(O))&&(this._isProper=!1),this._result=Gn.POINT_INTERSECTION,null;this._result=Gn.NO_INTERSECTION}},{key:"intersection",value:function(g,E,O,G){var Y=this.intersectionSafe(g,E,O,G);return this.isInSegmentEnvelopes(Y)||(Y=new xe(h.nearestEndpoint(g,E,O,G))),this._precisionModel!==null&&this._precisionModel.makePrecise(Y),Y}},{key:"checkDD",value:function(g,E,O,G,Y){var $=vu.intersection(g,E,O,G),ne=this.isInSegmentEnvelopes($);ua.out.println("DD in env = "+ne+" --------------------- "+$),Y.distance($)>1e-4&&ua.out.println("Distance = "+Y.distance($))}},{key:"intersectionSafe",value:function(g,E,O,G){var Y=tu.intersection(g,E,O,G);return Y===null&&(Y=h.nearestEndpoint(g,E,O,G)),Y}},{key:"computeCollinearIntersection",value:function(g,E,O,G){var Y=st.intersects(g,E,O),$=st.intersects(g,E,G),ne=st.intersects(O,G,g),he=st.intersects(O,G,E);return Y&&$?(this._intPt[0]=O,this._intPt[1]=G,Gn.COLLINEAR_INTERSECTION):ne&&he?(this._intPt[0]=g,this._intPt[1]=E,Gn.COLLINEAR_INTERSECTION):Y&&ne?(this._intPt[0]=O,this._intPt[1]=g,!O.equals(g)||$||he?Gn.COLLINEAR_INTERSECTION:Gn.POINT_INTERSECTION):Y&&he?(this._intPt[0]=O,this._intPt[1]=E,!O.equals(E)||$||ne?Gn.COLLINEAR_INTERSECTION:Gn.POINT_INTERSECTION):$&&ne?(this._intPt[0]=G,this._intPt[1]=g,!G.equals(g)||Y||he?Gn.COLLINEAR_INTERSECTION:Gn.POINT_INTERSECTION):$&&he?(this._intPt[0]=G,this._intPt[1]=E,!G.equals(E)||Y||ne?Gn.COLLINEAR_INTERSECTION:Gn.POINT_INTERSECTION):Gn.NO_INTERSECTION}},{key:"computeIntersect",value:function(g,E,O,G){if(this._isProper=!1,!st.intersects(g,E,O,G))return Gn.NO_INTERSECTION;var Y=Tt.index(g,E,O),$=Tt.index(g,E,G);if(Y>0&&$>0||Y<0&&$<0)return Gn.NO_INTERSECTION;var ne=Tt.index(O,G,g),he=Tt.index(O,G,E);return ne>0&&he>0||ne<0&&he<0?Gn.NO_INTERSECTION:Y===0&&$===0&&ne===0&&he===0?this.computeCollinearIntersection(g,E,O,G):(Y===0||$===0||ne===0||he===0?(this._isProper=!1,g.equals2D(O)||g.equals2D(G)?this._intPt[0]=g:E.equals2D(O)||E.equals2D(G)?this._intPt[0]=E:Y===0?this._intPt[0]=new xe(O):$===0?this._intPt[0]=new xe(G):ne===0?this._intPt[0]=new xe(g):he===0&&(this._intPt[0]=new xe(E))):(this._isProper=!0,this._intPt[0]=this.intersection(g,E,O,G)),Gn.POINT_INTERSECTION)}}],[{key:"nearestEndpoint",value:function(g,E,O,G){var Y=g,$=Nn.pointToSegment(g,O,G),ne=Nn.pointToSegment(E,O,G);return ne<$&&($=ne,Y=E),(ne=Nn.pointToSegment(O,g,E))<$&&($=ne,Y=O),(ne=Nn.pointToSegment(G,g,E))<$&&($=ne,Y=G),Y}}])})(Gn),hi=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"countSegment",value:function(h,g){if(h.x<this._p.x&&g.x<this._p.x)return null;if(this._p.x===g.x&&this._p.y===g.y)return this._isPointOnSegment=!0,null;if(h.y===this._p.y&&g.y===this._p.y){var E=h.x,O=g.x;return E>O&&(E=g.x,O=h.x),this._p.x>=E&&this._p.x<=O&&(this._isPointOnSegment=!0),null}if(h.y>this._p.y&&g.y<=this._p.y||g.y>this._p.y&&h.y<=this._p.y){var G=Tt.index(h,g,this._p);if(G===Tt.COLLINEAR)return this._isPointOnSegment=!0,null;g.y<h.y&&(G=-G),G===Tt.LEFT&&this._crossingCount++}}},{key:"isPointInPolygon",value:function(){return this.getLocation()!==oe.EXTERIOR}},{key:"getLocation",value:function(){return this._isPointOnSegment?oe.BOUNDARY:this._crossingCount%2==1?oe.INTERIOR:oe.EXTERIOR}},{key:"isOnSegment",value:function(){return this._isPointOnSegment}}],[{key:"constructor_",value:function(){this._p=null,this._crossingCount=0,this._isPointOnSegment=!1;var h=arguments[0];this._p=h}},{key:"locatePointInRing",value:function(){if(arguments[0]instanceof xe&&vt(arguments[1],zt)){for(var h=arguments[1],g=new x(arguments[0]),E=new xe,O=new xe,G=1;G<h.size();G++)if(h.getCoordinate(G,E),h.getCoordinate(G-1,O),g.countSegment(E,O),g.isOnSegment())return g.getLocation();return g.getLocation()}if(arguments[0]instanceof xe&&arguments[1]instanceof Array){for(var Y=arguments[1],$=new x(arguments[0]),ne=1;ne<Y.length;ne++){var he=Y[ne],Se=Y[ne-1];if($.countSegment(he,Se),$.isOnSegment())return $.getLocation()}return $.getLocation()}}}])})(),Pr=(function(){function x(){m(this,x)}return C(x,null,[{key:"isOnLine",value:function(){if(arguments[0]instanceof xe&&vt(arguments[1],zt)){for(var h=arguments[0],g=arguments[1],E=new Ni,O=new xe,G=new xe,Y=g.size(),$=1;$<Y;$++)if(g.getCoordinate($-1,O),g.getCoordinate($,G),E.computeIntersection(h,O,G),E.hasIntersection())return!0;return!1}if(arguments[0]instanceof xe&&arguments[1]instanceof Array){for(var ne=arguments[0],he=arguments[1],Se=new Ni,je=1;je<he.length;je++){var at=he[je-1],ct=he[je];if(Se.computeIntersection(ne,at,ct),Se.hasIntersection())return!0}return!1}}},{key:"locateInRing",value:function(h,g){return hi.locatePointInRing(h,g)}},{key:"isInRing",value:function(h,g){return x.locateInRing(h,g)!==oe.EXTERIOR}}])})(),vr=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"setAllLocations",value:function(h){for(var g=0;g<this.location.length;g++)this.location[g]=h}},{key:"isNull",value:function(){for(var h=0;h<this.location.length;h++)if(this.location[h]!==oe.NONE)return!1;return!0}},{key:"setAllLocationsIfNull",value:function(h){for(var g=0;g<this.location.length;g++)this.location[g]===oe.NONE&&(this.location[g]=h)}},{key:"isLine",value:function(){return this.location.length===1}},{key:"merge",value:function(h){if(h.location.length>this.location.length){var g=new Array(3).fill(null);g[rt.ON]=this.location[rt.ON],g[rt.LEFT]=oe.NONE,g[rt.RIGHT]=oe.NONE,this.location=g}for(var E=0;E<this.location.length;E++)this.location[E]===oe.NONE&&E<h.location.length&&(this.location[E]=h.location[E])}},{key:"getLocations",value:function(){return this.location}},{key:"flip",value:function(){if(this.location.length<=1)return null;var h=this.location[rt.LEFT];this.location[rt.LEFT]=this.location[rt.RIGHT],this.location[rt.RIGHT]=h}},{key:"toString",value:function(){var h=new Ja;return this.location.length>1&&h.append(oe.toLocationSymbol(this.location[rt.LEFT])),h.append(oe.toLocationSymbol(this.location[rt.ON])),this.location.length>1&&h.append(oe.toLocationSymbol(this.location[rt.RIGHT])),h.toString()}},{key:"setLocations",value:function(h,g,E){this.location[rt.ON]=h,this.location[rt.LEFT]=g,this.location[rt.RIGHT]=E}},{key:"get",value:function(h){return h<this.location.length?this.location[h]:oe.NONE}},{key:"isArea",value:function(){return this.location.length>1}},{key:"isAnyNull",value:function(){for(var h=0;h<this.location.length;h++)if(this.location[h]===oe.NONE)return!0;return!1}},{key:"setLocation",value:function(){if(arguments.length===1){var h=arguments[0];this.setLocation(rt.ON,h)}else if(arguments.length===2){var g=arguments[0],E=arguments[1];this.location[g]=E}}},{key:"init",value:function(h){this.location=new Array(h).fill(null),this.setAllLocations(oe.NONE)}},{key:"isEqualOnSide",value:function(h,g){return this.location[g]===h.location[g]}},{key:"allPositionsEqual",value:function(h){for(var g=0;g<this.location.length;g++)if(this.location[g]!==h)return!1;return!0}}],[{key:"constructor_",value:function(){if(this.location=null,arguments.length===1){if(arguments[0]instanceof Array){var h=arguments[0];this.init(h.length)}else if(Number.isInteger(arguments[0])){var g=arguments[0];this.init(1),this.location[rt.ON]=g}else if(arguments[0]instanceof x){var E=arguments[0];if(this.init(E.location.length),E!==null)for(var O=0;O<this.location.length;O++)this.location[O]=E.location[O]}}else if(arguments.length===3){var G=arguments[0],Y=arguments[1],$=arguments[2];this.init(3),this.location[rt.ON]=G,this.location[rt.LEFT]=Y,this.location[rt.RIGHT]=$}}}])})(),br=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"getGeometryCount",value:function(){var h=0;return this.elt[0].isNull()||h++,this.elt[1].isNull()||h++,h}},{key:"setAllLocations",value:function(h,g){this.elt[h].setAllLocations(g)}},{key:"isNull",value:function(h){return this.elt[h].isNull()}},{key:"setAllLocationsIfNull",value:function(){if(arguments.length===1){var h=arguments[0];this.setAllLocationsIfNull(0,h),this.setAllLocationsIfNull(1,h)}else if(arguments.length===2){var g=arguments[0],E=arguments[1];this.elt[g].setAllLocationsIfNull(E)}}},{key:"isLine",value:function(h){return this.elt[h].isLine()}},{key:"merge",value:function(h){for(var g=0;g<2;g++)this.elt[g]===null&&h.elt[g]!==null?this.elt[g]=new vr(h.elt[g]):this.elt[g].merge(h.elt[g])}},{key:"flip",value:function(){this.elt[0].flip(),this.elt[1].flip()}},{key:"getLocation",value:function(){if(arguments.length===1){var h=arguments[0];return this.elt[h].get(rt.ON)}if(arguments.length===2){var g=arguments[0],E=arguments[1];return this.elt[g].get(E)}}},{key:"toString",value:function(){var h=new Ja;return this.elt[0]!==null&&(h.append("A:"),h.append(this.elt[0].toString())),this.elt[1]!==null&&(h.append(" B:"),h.append(this.elt[1].toString())),h.toString()}},{key:"isArea",value:function(){if(arguments.length===0)return this.elt[0].isArea()||this.elt[1].isArea();if(arguments.length===1){var h=arguments[0];return this.elt[h].isArea()}}},{key:"isAnyNull",value:function(h){return this.elt[h].isAnyNull()}},{key:"setLocation",value:function(){if(arguments.length===2){var h=arguments[0],g=arguments[1];this.elt[h].setLocation(rt.ON,g)}else if(arguments.length===3){var E=arguments[0],O=arguments[1],G=arguments[2];this.elt[E].setLocation(O,G)}}},{key:"isEqualOnSide",value:function(h,g){return this.elt[0].isEqualOnSide(h.elt[0],g)&&this.elt[1].isEqualOnSide(h.elt[1],g)}},{key:"allPositionsEqual",value:function(h,g){return this.elt[h].allPositionsEqual(g)}},{key:"toLine",value:function(h){this.elt[h].isArea()&&(this.elt[h]=new vr(this.elt[h].location[0]))}}],[{key:"constructor_",value:function(){if(this.elt=new Array(2).fill(null),arguments.length===1){if(Number.isInteger(arguments[0])){var h=arguments[0];this.elt[0]=new vr(h),this.elt[1]=new vr(h)}else if(arguments[0]instanceof x){var g=arguments[0];this.elt[0]=new vr(g.elt[0]),this.elt[1]=new vr(g.elt[1])}}else if(arguments.length===2){var E=arguments[0],O=arguments[1];this.elt[0]=new vr(oe.NONE),this.elt[1]=new vr(oe.NONE),this.elt[E].setLocation(O)}else if(arguments.length===3){var G=arguments[0],Y=arguments[1],$=arguments[2];this.elt[0]=new vr(G,Y,$),this.elt[1]=new vr(G,Y,$)}else if(arguments.length===4){var ne=arguments[0],he=arguments[1],Se=arguments[2],je=arguments[3];this.elt[0]=new vr(oe.NONE,oe.NONE,oe.NONE),this.elt[1]=new vr(oe.NONE,oe.NONE,oe.NONE),this.elt[ne].setLocations(he,Se,je)}}},{key:"toLineLabel",value:function(h){for(var g=new x(oe.NONE),E=0;E<2;E++)g.setLocation(E,h.getLocation(E));return g}}])})(),Ur=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"computeRing",value:function(){if(this._ring!==null)return null;for(var x=new Array(this._pts.size()).fill(null),h=0;h<this._pts.size();h++)x[h]=this._pts.get(h);this._ring=this._geometryFactory.createLinearRing(x),this._isHole=Tt.isCCW(this._ring.getCoordinates())}},{key:"isIsolated",value:function(){return this._label.getGeometryCount()===1}},{key:"computePoints",value:function(x){this._startDe=x;var h=x,g=!0;do{if(h===null)throw new ra("Found null DirectedEdge");if(h.getEdgeRing()===this)throw new ra("Directed Edge visited twice during ring-building at "+h.getCoordinate());this._edges.add(h);var E=h.getLabel();Pe.isTrue(E.isArea()),this.mergeLabel(E),this.addPoints(h.getEdge(),h.isForward(),g),g=!1,this.setEdgeRing(h,this),h=this.getNext(h)}while(h!==this._startDe)}},{key:"getLinearRing",value:function(){return this._ring}},{key:"getCoordinate",value:function(x){return this._pts.get(x)}},{key:"computeMaxNodeDegree",value:function(){this._maxNodeDegree=0;var x=this._startDe;do{var h=x.getNode().getEdges().getOutgoingDegree(this);h>this._maxNodeDegree&&(this._maxNodeDegree=h),x=this.getNext(x)}while(x!==this._startDe);this._maxNodeDegree*=2}},{key:"addPoints",value:function(x,h,g){var E=x.getCoordinates();if(h){var O=1;g&&(O=0);for(var G=O;G<E.length;G++)this._pts.add(E[G])}else{var Y=E.length-2;g&&(Y=E.length-1);for(var $=Y;$>=0;$--)this._pts.add(E[$])}}},{key:"isHole",value:function(){return this._isHole}},{key:"setInResult",value:function(){var x=this._startDe;do x.getEdge().setInResult(!0),x=x.getNext();while(x!==this._startDe)}},{key:"containsPoint",value:function(x){var h=this.getLinearRing();if(!h.getEnvelopeInternal().contains(x)||!Pr.isInRing(x,h.getCoordinates()))return!1;for(var g=this._holes.iterator();g.hasNext();)if(g.next().containsPoint(x))return!1;return!0}},{key:"addHole",value:function(x){this._holes.add(x)}},{key:"isShell",value:function(){return this._shell===null}},{key:"getLabel",value:function(){return this._label}},{key:"getEdges",value:function(){return this._edges}},{key:"getMaxNodeDegree",value:function(){return this._maxNodeDegree<0&&this.computeMaxNodeDegree(),this._maxNodeDegree}},{key:"getShell",value:function(){return this._shell}},{key:"mergeLabel",value:function(){if(arguments.length===1){var x=arguments[0];this.mergeLabel(x,0),this.mergeLabel(x,1)}else if(arguments.length===2){var h=arguments[1],g=arguments[0].getLocation(h,rt.RIGHT);if(g===oe.NONE)return null;if(this._label.getLocation(h)===oe.NONE)return this._label.setLocation(h,g),null}}},{key:"setShell",value:function(x){this._shell=x,x!==null&&x.addHole(this)}},{key:"toPolygon",value:function(x){for(var h=new Array(this._holes.size()).fill(null),g=0;g<this._holes.size();g++)h[g]=this._holes.get(g).getLinearRing();return x.createPolygon(this.getLinearRing(),h)}}],[{key:"constructor_",value:function(){if(this._startDe=null,this._maxNodeDegree=-1,this._edges=new bt,this._pts=new bt,this._label=new br(oe.NONE),this._ring=null,this._isHole=null,this._shell=null,this._holes=new bt,this._geometryFactory=null,arguments.length!==0){if(arguments.length===2){var x=arguments[0],h=arguments[1];this._geometryFactory=h,this.computePoints(x),this.computeRing()}}}}])})(),Ps=(function(x){function h(){var g;return m(this,h),g=d(this,h),h.constructor_.apply(g,arguments),g}return k(h,x),C(h,[{key:"setEdgeRing",value:function(g,E){g.setMinEdgeRing(E)}},{key:"getNext",value:function(g){return g.getNextMin()}}],[{key:"constructor_",value:function(){var g=arguments[0],E=arguments[1];Ur.constructor_.call(this,g,E)}}])})(Ur),hl=(function(x){function h(){var g;return m(this,h),g=d(this,h),h.constructor_.apply(g,arguments),g}return k(h,x),C(h,[{key:"buildMinimalRings",value:function(){var g=new bt,E=this._startDe;do{if(E.getMinEdgeRing()===null){var O=new Ps(E,this._geometryFactory);g.add(O)}E=E.getNext()}while(E!==this._startDe);return g}},{key:"setEdgeRing",value:function(g,E){g.setEdgeRing(E)}},{key:"linkDirectedEdgesForMinimalEdgeRings",value:function(){var g=this._startDe;do g.getNode().getEdges().linkMinimalDirectedEdges(this),g=g.getNext();while(g!==this._startDe)}},{key:"getNext",value:function(g){return g.getNext()}}],[{key:"constructor_",value:function(){var g=arguments[0],E=arguments[1];Ur.constructor_.call(this,g,E)}}])})(Ur),Us=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"setVisited",value:function(x){this._isVisited=x}},{key:"setInResult",value:function(x){this._isInResult=x}},{key:"isCovered",value:function(){return this._isCovered}},{key:"isCoveredSet",value:function(){return this._isCoveredSet}},{key:"setLabel",value:function(x){this._label=x}},{key:"getLabel",value:function(){return this._label}},{key:"setCovered",value:function(x){this._isCovered=x,this._isCoveredSet=!0}},{key:"updateIM",value:function(x){Pe.isTrue(this._label.getGeometryCount()>=2,"found partial label"),this.computeIM(x)}},{key:"isInResult",value:function(){return this._isInResult}},{key:"isVisited",value:function(){return this._isVisited}}],[{key:"constructor_",value:function(){if(this._label=null,this._isInResult=!1,this._isCovered=!1,this._isCoveredSet=!1,this._isVisited=!1,arguments.length!==0){if(arguments.length===1){var x=arguments[0];this._label=x}}}}])})(),Ro=(function(x){function h(){var g;return m(this,h),g=d(this,h),h.constructor_.apply(g,arguments),g}return k(h,x),C(h,[{key:"isIncidentEdgeInResult",value:function(){for(var g=this.getEdges().getEdges().iterator();g.hasNext();)if(g.next().getEdge().isInResult())return!0;return!1}},{key:"isIsolated",value:function(){return this._label.getGeometryCount()===1}},{key:"getCoordinate",value:function(){return this._coord}},{key:"print",value:function(g){g.println("node "+this._coord+" lbl: "+this._label)}},{key:"computeIM",value:function(g){}},{key:"computeMergedLocation",value:function(g,E){var O=oe.NONE;if(O=this._label.getLocation(E),!g.isNull(E)){var G=g.getLocation(E);O!==oe.BOUNDARY&&(O=G)}return O}},{key:"setLabel",value:function(){if(arguments.length!==2||!Number.isInteger(arguments[1])||!Number.isInteger(arguments[0]))return H(h,"setLabel",this,1).apply(this,arguments);var g=arguments[0],E=arguments[1];this._label===null?this._label=new br(g,E):this._label.setLocation(g,E)}},{key:"getEdges",value:function(){return this._edges}},{key:"mergeLabel",value:function(){if(arguments[0]instanceof h){var g=arguments[0];this.mergeLabel(g._label)}else if(arguments[0]instanceof br)for(var E=arguments[0],O=0;O<2;O++){var G=this.computeMergedLocation(E,O);this._label.getLocation(O)===oe.NONE&&this._label.setLocation(O,G)}}},{key:"add",value:function(g){this._edges.insert(g),g.setNode(this)}},{key:"setLabelBoundary",value:function(g){if(this._label===null)return null;var E=oe.NONE;this._label!==null&&(E=this._label.getLocation(g));var O=null;switch(E){case oe.BOUNDARY:O=oe.INTERIOR;break;case oe.INTERIOR:default:O=oe.BOUNDARY}this._label.setLocation(g,O)}}],[{key:"constructor_",value:function(){this._coord=null,this._edges=null;var g=arguments[0],E=arguments[1];this._coord=g,this._edges=E,this._label=new br(0,oe.NONE)}}])})(Us),Oa=(function(x){function h(){return m(this,h),d(this,h,arguments)}return k(h,x),C(h)})(bu);function ru(x){return x==null?0:x.color}function ln(x){return x==null?null:x.parent}function _r(x,h){x!==null&&(x.color=h)}function Li(x){return x==null?null:x.left}function pc(x){return x==null?null:x.right}var Ju=(function(x){function h(){var g;return m(this,h),(g=d(this,h)).root_=null,g.size_=0,g}return k(h,x),C(h,[{key:"get",value:function(g){for(var E=this.root_;E!==null;){var O=g.compareTo(E.key);if(O<0)E=E.left;else{if(!(O>0))return E.value;E=E.right}}return null}},{key:"put",value:function(g,E){if(this.root_===null)return this.root_={key:g,value:E,left:null,right:null,parent:null,color:0,getValue:function(){return this.value},getKey:function(){return this.key}},this.size_=1,null;var O,G,Y=this.root_;do if(O=Y,(G=g.compareTo(Y.key))<0)Y=Y.left;else{if(!(G>0)){var $=Y.value;return Y.value=E,$}Y=Y.right}while(Y!==null);var ne={key:g,left:null,right:null,value:E,parent:O,color:0,getValue:function(){return this.value},getKey:function(){return this.key}};return G<0?O.left=ne:O.right=ne,this.fixAfterInsertion(ne),this.size_++,null}},{key:"fixAfterInsertion",value:function(g){var E;for(g.color=1;g!=null&&g!==this.root_&&g.parent.color===1;)ln(g)===Li(ln(ln(g)))?ru(E=pc(ln(ln(g))))===1?(_r(ln(g),0),_r(E,0),_r(ln(ln(g)),1),g=ln(ln(g))):(g===pc(ln(g))&&(g=ln(g),this.rotateLeft(g)),_r(ln(g),0),_r(ln(ln(g)),1),this.rotateRight(ln(ln(g)))):ru(E=Li(ln(ln(g))))===1?(_r(ln(g),0),_r(E,0),_r(ln(ln(g)),1),g=ln(ln(g))):(g===Li(ln(g))&&(g=ln(g),this.rotateRight(g)),_r(ln(g),0),_r(ln(ln(g)),1),this.rotateLeft(ln(ln(g))));this.root_.color=0}},{key:"values",value:function(){var g=new bt,E=this.getFirstEntry();if(E!==null)for(g.add(E.value);(E=h.successor(E))!==null;)g.add(E.value);return g}},{key:"entrySet",value:function(){var g=new Fa,E=this.getFirstEntry();if(E!==null)for(g.add(E);(E=h.successor(E))!==null;)g.add(E);return g}},{key:"rotateLeft",value:function(g){if(g!=null){var E=g.right;g.right=E.left,E.left!=null&&(E.left.parent=g),E.parent=g.parent,g.parent==null?this.root_=E:g.parent.left===g?g.parent.left=E:g.parent.right=E,E.left=g,g.parent=E}}},{key:"rotateRight",value:function(g){if(g!=null){var E=g.left;g.left=E.right,E.right!=null&&(E.right.parent=g),E.parent=g.parent,g.parent==null?this.root_=E:g.parent.right===g?g.parent.right=E:g.parent.left=E,E.right=g,g.parent=E}}},{key:"getFirstEntry",value:function(){var g=this.root_;if(g!=null)for(;g.left!=null;)g=g.left;return g}},{key:"size",value:function(){return this.size_}},{key:"containsKey",value:function(g){for(var E=this.root_;E!==null;){var O=g.compareTo(E.key);if(O<0)E=E.left;else{if(!(O>0))return!0;E=E.right}}return!1}}],[{key:"successor",value:function(g){var E;if(g===null)return null;if(g.right!==null){for(E=g.right;E.left!==null;)E=E.left;return E}E=g.parent;for(var O=g;E!==null&&O===E.right;)O=E,E=E.parent;return E}}])})(Oa),mc=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"find",value:function(x){return this.nodeMap.get(x)}},{key:"addNode",value:function(){if(arguments[0]instanceof xe){var x=arguments[0],h=this.nodeMap.get(x);return h===null&&(h=this.nodeFact.createNode(x),this.nodeMap.put(x,h)),h}if(arguments[0]instanceof Ro){var g=arguments[0],E=this.nodeMap.get(g.getCoordinate());return E===null?(this.nodeMap.put(g.getCoordinate(),g),g):(E.mergeLabel(g),E)}}},{key:"print",value:function(x){for(var h=this.iterator();h.hasNext();)h.next().print(x)}},{key:"iterator",value:function(){return this.nodeMap.values().iterator()}},{key:"values",value:function(){return this.nodeMap.values()}},{key:"getBoundaryNodes",value:function(x){for(var h=new bt,g=this.iterator();g.hasNext();){var E=g.next();E.getLabel().getLocation(x)===oe.BOUNDARY&&h.add(E)}return h}},{key:"add",value:function(x){var h=x.getCoordinate();this.addNode(h).add(x)}}],[{key:"constructor_",value:function(){this.nodeMap=new Ju,this.nodeFact=null;var x=arguments[0];this.nodeFact=x}}])})(),wa=(function(){function x(){m(this,x)}return C(x,null,[{key:"isNorthern",value:function(h){return h===x.NE||h===x.NW}},{key:"isOpposite",value:function(h,g){return h!==g&&(h-g+4)%4===2}},{key:"commonHalfPlane",value:function(h,g){if(h===g)return h;if((h-g+4)%4===2)return-1;var E=h<g?h:g;return E===0&&(h>g?h:g)===3?3:E}},{key:"isInHalfPlane",value:function(h,g){return g===x.SE?h===x.SE||h===x.SW:h===g||h===g+1}},{key:"quadrant",value:function(){if(typeof arguments[0]=="number"&&typeof arguments[1]=="number"){var h=arguments[0],g=arguments[1];if(h===0&&g===0)throw new se("Cannot compute the quadrant for point ( "+h+", "+g+" )");return h>=0?g>=0?x.NE:x.SE:g>=0?x.NW:x.SW}if(arguments[0]instanceof xe&&arguments[1]instanceof xe){var E=arguments[0],O=arguments[1];if(O.x===E.x&&O.y===E.y)throw new se("Cannot compute the quadrant for two identical points "+E);return O.x>=E.x?O.y>=E.y?x.NE:x.SE:O.y>=E.y?x.NW:x.SW}}}])})();wa.NE=0,wa.NW=1,wa.SW=2,wa.SE=3;var To=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"compareDirection",value:function(h){return this._dx===h._dx&&this._dy===h._dy?0:this._quadrant>h._quadrant?1:this._quadrant<h._quadrant?-1:Tt.index(h._p0,h._p1,this._p1)}},{key:"getDy",value:function(){return this._dy}},{key:"getCoordinate",value:function(){return this._p0}},{key:"setNode",value:function(h){this._node=h}},{key:"print",value:function(h){var g=Math.atan2(this._dy,this._dx),E=this.getClass().getName(),O=E.lastIndexOf("."),G=E.substring(O+1);h.print(" "+G+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+g+" "+this._label)}},{key:"compareTo",value:function(h){var g=h;return this.compareDirection(g)}},{key:"getDirectedCoordinate",value:function(){return this._p1}},{key:"getDx",value:function(){return this._dx}},{key:"getLabel",value:function(){return this._label}},{key:"getEdge",value:function(){return this._edge}},{key:"getQuadrant",value:function(){return this._quadrant}},{key:"getNode",value:function(){return this._node}},{key:"toString",value:function(){var h=Math.atan2(this._dy,this._dx),g=this.getClass().getName(),E=g.lastIndexOf(".");return" "+g.substring(E+1)+": "+this._p0+" - "+this._p1+" "+this._quadrant+":"+h+" "+this._label}},{key:"computeLabel",value:function(h){}},{key:"init",value:function(h,g){this._p0=h,this._p1=g,this._dx=g.x-h.x,this._dy=g.y-h.y,this._quadrant=wa.quadrant(this._dx,this._dy),Pe.isTrue(!(this._dx===0&&this._dy===0),"EdgeEnd with identical endpoints found")}},{key:"interfaces_",get:function(){return[pe]}}],[{key:"constructor_",value:function(){if(this._edge=null,this._label=null,this._node=null,this._p0=null,this._p1=null,this._dx=null,this._dy=null,this._quadrant=null,arguments.length===1){var h=arguments[0];this._edge=h}else if(arguments.length===3){var g=arguments[0],E=arguments[1],O=arguments[2];x.constructor_.call(this,g,E,O,null)}else if(arguments.length===4){var G=arguments[0],Y=arguments[1],$=arguments[2],ne=arguments[3];x.constructor_.call(this,G),this.init(Y,$),this._label=ne}}}])})(),gc=(function(x){function h(){var g;return m(this,h),g=d(this,h),h.constructor_.apply(g,arguments),g}return k(h,x),C(h,[{key:"getNextMin",value:function(){return this._nextMin}},{key:"getDepth",value:function(g){return this._depth[g]}},{key:"setVisited",value:function(g){this._isVisited=g}},{key:"computeDirectedLabel",value:function(){this._label=new br(this._edge.getLabel()),this._isForward||this._label.flip()}},{key:"getNext",value:function(){return this._next}},{key:"setDepth",value:function(g,E){if(this._depth[g]!==-999&&this._depth[g]!==E)throw new ra("assigned depths do not match",this.getCoordinate());this._depth[g]=E}},{key:"isInteriorAreaEdge",value:function(){for(var g=!0,E=0;E<2;E++)this._label.isArea(E)&&this._label.getLocation(E,rt.LEFT)===oe.INTERIOR&&this._label.getLocation(E,rt.RIGHT)===oe.INTERIOR||(g=!1);return g}},{key:"setNextMin",value:function(g){this._nextMin=g}},{key:"print",value:function(g){H(h,"print",this,1).call(this,g),g.print(" "+this._depth[rt.LEFT]+"/"+this._depth[rt.RIGHT]),g.print(" ("+this.getDepthDelta()+")"),this._isInResult&&g.print(" inResult")}},{key:"setMinEdgeRing",value:function(g){this._minEdgeRing=g}},{key:"isLineEdge",value:function(){var g=this._label.isLine(0)||this._label.isLine(1),E=!this._label.isArea(0)||this._label.allPositionsEqual(0,oe.EXTERIOR),O=!this._label.isArea(1)||this._label.allPositionsEqual(1,oe.EXTERIOR);return g&&E&&O}},{key:"setEdgeRing",value:function(g){this._edgeRing=g}},{key:"getMinEdgeRing",value:function(){return this._minEdgeRing}},{key:"getDepthDelta",value:function(){var g=this._edge.getDepthDelta();return this._isForward||(g=-g),g}},{key:"setInResult",value:function(g){this._isInResult=g}},{key:"getSym",value:function(){return this._sym}},{key:"isForward",value:function(){return this._isForward}},{key:"getEdge",value:function(){return this._edge}},{key:"printEdge",value:function(g){this.print(g),g.print(" "),this._isForward?this._edge.print(g):this._edge.printReverse(g)}},{key:"setSym",value:function(g){this._sym=g}},{key:"setVisitedEdge",value:function(g){this.setVisited(g),this._sym.setVisited(g)}},{key:"setEdgeDepths",value:function(g,E){var O=this.getEdge().getDepthDelta();this._isForward||(O=-O);var G=1;g===rt.LEFT&&(G=-1);var Y=rt.opposite(g),$=E+O*G;this.setDepth(g,E),this.setDepth(Y,$)}},{key:"getEdgeRing",value:function(){return this._edgeRing}},{key:"isInResult",value:function(){return this._isInResult}},{key:"setNext",value:function(g){this._next=g}},{key:"isVisited",value:function(){return this._isVisited}}],[{key:"constructor_",value:function(){this._isForward=null,this._isInResult=!1,this._isVisited=!1,this._sym=null,this._next=null,this._nextMin=null,this._edgeRing=null,this._minEdgeRing=null,this._depth=[0,-999,-999];var g=arguments[0],E=arguments[1];if(To.constructor_.call(this,g),this._isForward=E,E)this.init(g.getCoordinate(0),g.getCoordinate(1));else{var O=g.getNumPoints()-1;this.init(g.getCoordinate(O),g.getCoordinate(O-1))}this.computeDirectedLabel()}},{key:"depthFactor",value:function(g,E){return g===oe.EXTERIOR&&E===oe.INTERIOR?1:g===oe.INTERIOR&&E===oe.EXTERIOR?-1:0}}])})(To),Na=(function(){return C((function x(){m(this,x)}),[{key:"createNode",value:function(x){return new Ro(x,null)}}])})(),xu=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"printEdges",value:function(x){x.println("Edges:");for(var h=0;h<this._edges.size();h++){x.println("edge "+h+":");var g=this._edges.get(h);g.print(x),g.eiList.print(x)}}},{key:"find",value:function(x){return this._nodes.find(x)}},{key:"addNode",value:function(){if(arguments[0]instanceof Ro){var x=arguments[0];return this._nodes.addNode(x)}if(arguments[0]instanceof xe){var h=arguments[0];return this._nodes.addNode(h)}}},{key:"getNodeIterator",value:function(){return this._nodes.iterator()}},{key:"linkResultDirectedEdges",value:function(){for(var x=this._nodes.iterator();x.hasNext();)x.next().getEdges().linkResultDirectedEdges()}},{key:"debugPrintln",value:function(x){ua.out.println(x)}},{key:"isBoundaryNode",value:function(x,h){var g=this._nodes.find(h);if(g===null)return!1;var E=g.getLabel();return E!==null&&E.getLocation(x)===oe.BOUNDARY}},{key:"linkAllDirectedEdges",value:function(){for(var x=this._nodes.iterator();x.hasNext();)x.next().getEdges().linkAllDirectedEdges()}},{key:"matchInSameDirection",value:function(x,h,g,E){return!!x.equals(g)&&Tt.index(x,h,E)===Tt.COLLINEAR&&wa.quadrant(x,h)===wa.quadrant(g,E)}},{key:"getEdgeEnds",value:function(){return this._edgeEndList}},{key:"debugPrint",value:function(x){ua.out.print(x)}},{key:"getEdgeIterator",value:function(){return this._edges.iterator()}},{key:"findEdgeInSameDirection",value:function(x,h){for(var g=0;g<this._edges.size();g++){var E=this._edges.get(g),O=E.getCoordinates();if(this.matchInSameDirection(x,h,O[0],O[1])||this.matchInSameDirection(x,h,O[O.length-1],O[O.length-2]))return E}return null}},{key:"insertEdge",value:function(x){this._edges.add(x)}},{key:"findEdgeEnd",value:function(x){for(var h=this.getEdgeEnds().iterator();h.hasNext();){var g=h.next();if(g.getEdge()===x)return g}return null}},{key:"addEdges",value:function(x){for(var h=x.iterator();h.hasNext();){var g=h.next();this._edges.add(g);var E=new gc(g,!0),O=new gc(g,!1);E.setSym(O),O.setSym(E),this.add(E),this.add(O)}}},{key:"add",value:function(x){this._nodes.add(x),this._edgeEndList.add(x)}},{key:"getNodes",value:function(){return this._nodes.values()}},{key:"findEdge",value:function(x,h){for(var g=0;g<this._edges.size();g++){var E=this._edges.get(g),O=E.getCoordinates();if(x.equals(O[0])&&h.equals(O[1]))return E}return null}}],[{key:"constructor_",value:function(){if(this._edges=new bt,this._nodes=null,this._edgeEndList=new bt,arguments.length===0)this._nodes=new mc(new Na);else if(arguments.length===1){var x=arguments[0];this._nodes=new mc(x)}}},{key:"linkResultDirectedEdges",value:function(x){for(var h=x.iterator();h.hasNext();)h.next().getEdges().linkResultDirectedEdges()}}])})(),pl=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"sortShellsAndHoles",value:function(h,g,E){for(var O=h.iterator();O.hasNext();){var G=O.next();G.isHole()?E.add(G):g.add(G)}}},{key:"computePolygons",value:function(h){for(var g=new bt,E=h.iterator();E.hasNext();){var O=E.next().toPolygon(this._geometryFactory);g.add(O)}return g}},{key:"placeFreeHoles",value:function(h,g){for(var E=g.iterator();E.hasNext();){var O=E.next();if(O.getShell()===null){var G=x.findEdgeRingContaining(O,h);if(G===null)throw new ra("unable to assign hole to a shell",O.getCoordinate(0));O.setShell(G)}}}},{key:"buildMinimalEdgeRings",value:function(h,g,E){for(var O=new bt,G=h.iterator();G.hasNext();){var Y=G.next();if(Y.getMaxNodeDegree()>2){Y.linkDirectedEdgesForMinimalEdgeRings();var $=Y.buildMinimalRings(),ne=this.findShell($);ne!==null?(this.placePolygonHoles(ne,$),g.add(ne)):E.addAll($)}else O.add(Y)}return O}},{key:"buildMaximalEdgeRings",value:function(h){for(var g=new bt,E=h.iterator();E.hasNext();){var O=E.next();if(O.isInResult()&&O.getLabel().isArea()&&O.getEdgeRing()===null){var G=new hl(O,this._geometryFactory);g.add(G),G.setInResult()}}return g}},{key:"placePolygonHoles",value:function(h,g){for(var E=g.iterator();E.hasNext();){var O=E.next();O.isHole()&&O.setShell(h)}}},{key:"getPolygons",value:function(){return this.computePolygons(this._shellList)}},{key:"findShell",value:function(h){for(var g=0,E=null,O=h.iterator();O.hasNext();){var G=O.next();G.isHole()||(E=G,g++)}return Pe.isTrue(g<=1,"found two shells in MinimalEdgeRing list"),E}},{key:"add",value:function(){if(arguments.length===1){var h=arguments[0];this.add(h.getEdgeEnds(),h.getNodes())}else if(arguments.length===2){var g=arguments[0],E=arguments[1];xu.linkResultDirectedEdges(E);var O=this.buildMaximalEdgeRings(g),G=new bt,Y=this.buildMinimalEdgeRings(O,this._shellList,G);this.sortShellsAndHoles(Y,this._shellList,G),this.placeFreeHoles(this._shellList,G)}}}],[{key:"constructor_",value:function(){this._geometryFactory=null,this._shellList=new bt;var h=arguments[0];this._geometryFactory=h}},{key:"findEdgeRingContaining",value:function(h,g){for(var E=h.getLinearRing(),O=E.getEnvelopeInternal(),G=E.getCoordinateN(0),Y=null,$=null,ne=g.iterator();ne.hasNext();){var he=ne.next(),Se=he.getLinearRing(),je=Se.getEnvelopeInternal();if(!je.equals(O)&&je.contains(O)){G=bn.ptNotInList(E.getCoordinates(),Se.getCoordinates());var at=!1;Pr.isInRing(G,Se.getCoordinates())&&(at=!0),at&&(Y===null||$.contains(je))&&($=(Y=he).getLinearRing().getEnvelopeInternal())}}return Y}}])})(),Vs=(function(){return C((function x(){m(this,x)}),[{key:"getBounds",value:function(){}}])})(),Su=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"getItem",value:function(){return this._item}},{key:"getBounds",value:function(){return this._bounds}},{key:"interfaces_",get:function(){return[Vs,ce]}}],[{key:"constructor_",value:function(){this._bounds=null,this._item=null;var x=arguments[0],h=arguments[1];this._bounds=x,this._item=h}}])})(),Do=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"poll",value:function(){if(this.isEmpty())return null;var x=this._items.get(1);return this._items.set(1,this._items.get(this._size)),this._size-=1,this.reorder(1),x}},{key:"size",value:function(){return this._size}},{key:"reorder",value:function(x){for(var h=null,g=this._items.get(x);2*x<=this._size&&((h=2*x)!==this._size&&this._items.get(h+1).compareTo(this._items.get(h))<0&&h++,this._items.get(h).compareTo(g)<0);x=h)this._items.set(x,this._items.get(h));this._items.set(x,g)}},{key:"clear",value:function(){this._size=0,this._items.clear()}},{key:"peek",value:function(){return this.isEmpty()?null:this._items.get(1)}},{key:"isEmpty",value:function(){return this._size===0}},{key:"add",value:function(x){this._items.add(null),this._size+=1;var h=this._size;for(this._items.set(0,x);x.compareTo(this._items.get(Math.trunc(h/2)))<0;h/=2)this._items.set(h,this._items.get(Math.trunc(h/2)));this._items.set(h,x)}}],[{key:"constructor_",value:function(){this._size=null,this._items=null,this._size=0,this._items=new bt,this._items.add(null)}}])})(),Xf=(function(){return C((function x(){m(this,x)}),[{key:"insert",value:function(x,h){}},{key:"remove",value:function(x,h){}},{key:"query",value:function(){}}])})(),Ka=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"getLevel",value:function(){return this._level}},{key:"size",value:function(){return this._childBoundables.size()}},{key:"getChildBoundables",value:function(){return this._childBoundables}},{key:"addChildBoundable",value:function(x){Pe.isTrue(this._bounds===null),this._childBoundables.add(x)}},{key:"isEmpty",value:function(){return this._childBoundables.isEmpty()}},{key:"getBounds",value:function(){return this._bounds===null&&(this._bounds=this.computeBounds()),this._bounds}},{key:"interfaces_",get:function(){return[Vs,ce]}}],[{key:"constructor_",value:function(){if(this._childBoundables=new bt,this._bounds=null,this._level=null,arguments.length!==0){if(arguments.length===1){var x=arguments[0];this._level=x}}}}])})(),Cu={reverseOrder:function(){return{compare:function(x,h){return h.compareTo(x)}}},min:function(x){return Cu.sort(x),x.get(0)},sort:function(x,h){var g=x.toArray();h?qn.sort(g,h):qn.sort(g);for(var E=x.iterator(),O=0,G=g.length;O<G;O++)E.next(),E.set(g[O])},singletonList:function(x){var h=new bt;return h.add(x),h}},Io=(function(){function x(){m(this,x)}return C(x,null,[{key:"maxDistance",value:function(h,g,E,O,G,Y,$,ne){var he=x.distance(h,g,G,Y);return he=Math.max(he,x.distance(h,g,$,ne)),he=Math.max(he,x.distance(E,O,G,Y)),he=Math.max(he,x.distance(E,O,$,ne))}},{key:"distance",value:function(h,g,E,O){var G=E-h,Y=O-g;return Math.sqrt(G*G+Y*Y)}},{key:"maximumDistance",value:function(h,g){var E=Math.min(h.getMinX(),g.getMinX()),O=Math.min(h.getMinY(),g.getMinY()),G=Math.max(h.getMaxX(),g.getMaxX()),Y=Math.max(h.getMaxY(),g.getMaxY());return x.distance(E,O,G,Y)}},{key:"minMaxDistance",value:function(h,g){var E=h.getMinX(),O=h.getMinY(),G=h.getMaxX(),Y=h.getMaxY(),$=g.getMinX(),ne=g.getMinY(),he=g.getMaxX(),Se=g.getMaxY(),je=x.maxDistance(E,O,E,Y,$,ne,$,Se);return je=Math.min(je,x.maxDistance(E,O,E,Y,$,ne,he,ne)),je=Math.min(je,x.maxDistance(E,O,E,Y,he,Se,$,Se)),je=Math.min(je,x.maxDistance(E,O,E,Y,he,Se,he,ne)),je=Math.min(je,x.maxDistance(E,O,G,O,$,ne,$,Se)),je=Math.min(je,x.maxDistance(E,O,G,O,$,ne,he,ne)),je=Math.min(je,x.maxDistance(E,O,G,O,he,Se,$,Se)),je=Math.min(je,x.maxDistance(E,O,G,O,he,Se,he,ne)),je=Math.min(je,x.maxDistance(G,Y,E,Y,$,ne,$,Se)),je=Math.min(je,x.maxDistance(G,Y,E,Y,$,ne,he,ne)),je=Math.min(je,x.maxDistance(G,Y,E,Y,he,Se,$,Se)),je=Math.min(je,x.maxDistance(G,Y,E,Y,he,Se,he,ne)),je=Math.min(je,x.maxDistance(G,Y,G,O,$,ne,$,Se)),je=Math.min(je,x.maxDistance(G,Y,G,O,$,ne,he,ne)),je=Math.min(je,x.maxDistance(G,Y,G,O,he,Se,$,Se)),je=Math.min(je,x.maxDistance(G,Y,G,O,he,Se,he,ne))}}])})(),Hs=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"maximumDistance",value:function(){return Io.maximumDistance(this._boundable1.getBounds(),this._boundable2.getBounds())}},{key:"expandToQueue",value:function(h,g){var E=x.isComposite(this._boundable1),O=x.isComposite(this._boundable2);if(E&&O)return x.area(this._boundable1)>x.area(this._boundable2)?(this.expand(this._boundable1,this._boundable2,!1,h,g),null):(this.expand(this._boundable2,this._boundable1,!0,h,g),null);if(E)return this.expand(this._boundable1,this._boundable2,!1,h,g),null;if(O)return this.expand(this._boundable2,this._boundable1,!0,h,g),null;throw new se("neither boundable is composite")}},{key:"isLeaves",value:function(){return!(x.isComposite(this._boundable1)||x.isComposite(this._boundable2))}},{key:"compareTo",value:function(h){var g=h;return this._distance<g._distance?-1:this._distance>g._distance?1:0}},{key:"expand",value:function(h,g,E,O,G){for(var Y=h.getChildBoundables().iterator();Y.hasNext();){var $=Y.next(),ne=null;(ne=E?new x(g,$,this._itemDistance):new x($,g,this._itemDistance)).getDistance()<G&&O.add(ne)}}},{key:"getBoundable",value:function(h){return h===0?this._boundable1:this._boundable2}},{key:"getDistance",value:function(){return this._distance}},{key:"distance",value:function(){return this.isLeaves()?this._itemDistance.distance(this._boundable1,this._boundable2):this._boundable1.getBounds().distance(this._boundable2.getBounds())}},{key:"interfaces_",get:function(){return[pe]}}],[{key:"constructor_",value:function(){this._boundable1=null,this._boundable2=null,this._distance=null,this._itemDistance=null;var h=arguments[0],g=arguments[1],E=arguments[2];this._boundable1=h,this._boundable2=g,this._itemDistance=E,this._distance=this.distance()}},{key:"area",value:function(h){return h.getBounds().getArea()}},{key:"isComposite",value:function(h){return h instanceof Ka}}])})(),Zf=(function(){return C((function x(){m(this,x)}),[{key:"visitItem",value:function(x){}}])})(),Ys=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"queryInternal",value:function(){if(vt(arguments[2],Zf)&&arguments[0]instanceof Object&&arguments[1]instanceof Ka)for(var h=arguments[0],g=arguments[2],E=arguments[1].getChildBoundables(),O=0;O<E.size();O++){var G=E.get(O);this.getIntersectsOp().intersects(G.getBounds(),h)&&(G instanceof Ka?this.queryInternal(h,G,g):G instanceof Su?g.visitItem(G.getItem()):Pe.shouldNeverReachHere())}else if(vt(arguments[2],Jt)&&arguments[0]instanceof Object&&arguments[1]instanceof Ka)for(var Y=arguments[0],$=arguments[2],ne=arguments[1].getChildBoundables(),he=0;he<ne.size();he++){var Se=ne.get(he);this.getIntersectsOp().intersects(Se.getBounds(),Y)&&(Se instanceof Ka?this.queryInternal(Y,Se,$):Se instanceof Su?$.add(Se.getItem()):Pe.shouldNeverReachHere())}}},{key:"getNodeCapacity",value:function(){return this._nodeCapacity}},{key:"lastNode",value:function(h){return h.get(h.size()-1)}},{key:"size",value:function(){if(arguments.length===0)return this.isEmpty()?0:(this.build(),this.size(this._root));if(arguments.length===1){for(var h=0,g=arguments[0].getChildBoundables().iterator();g.hasNext();){var E=g.next();E instanceof Ka?h+=this.size(E):E instanceof Su&&(h+=1)}return h}}},{key:"removeItem",value:function(h,g){for(var E=null,O=h.getChildBoundables().iterator();O.hasNext();){var G=O.next();G instanceof Su&&G.getItem()===g&&(E=G)}return E!==null&&(h.getChildBoundables().remove(E),!0)}},{key:"itemsTree",value:function(){if(arguments.length===0){this.build();var h=this.itemsTree(this._root);return h===null?new bt:h}if(arguments.length===1){for(var g=arguments[0],E=new bt,O=g.getChildBoundables().iterator();O.hasNext();){var G=O.next();if(G instanceof Ka){var Y=this.itemsTree(G);Y!==null&&E.add(Y)}else G instanceof Su?E.add(G.getItem()):Pe.shouldNeverReachHere()}return E.size()<=0?null:E}}},{key:"insert",value:function(h,g){Pe.isTrue(!this._built,"Cannot insert items into an STR packed R-tree after it has been built."),this._itemBoundables.add(new Su(h,g))}},{key:"boundablesAtLevel",value:function(){if(arguments.length===1){var h=arguments[0],g=new bt;return this.boundablesAtLevel(h,this._root,g),g}if(arguments.length===3){var E=arguments[0],O=arguments[1],G=arguments[2];if(Pe.isTrue(E>-2),O.getLevel()===E)return G.add(O),null;for(var Y=O.getChildBoundables().iterator();Y.hasNext();){var $=Y.next();$ instanceof Ka?this.boundablesAtLevel(E,$,G):(Pe.isTrue($ instanceof Su),E===-1&&G.add($))}return null}}},{key:"query",value:function(){if(arguments.length===1){var h=arguments[0];this.build();var g=new bt;return this.isEmpty()||this.getIntersectsOp().intersects(this._root.getBounds(),h)&&this.queryInternal(h,this._root,g),g}if(arguments.length===2){var E=arguments[0],O=arguments[1];if(this.build(),this.isEmpty())return null;this.getIntersectsOp().intersects(this._root.getBounds(),E)&&this.queryInternal(E,this._root,O)}}},{key:"build",value:function(){if(this._built)return null;this._root=this._itemBoundables.isEmpty()?this.createNode(0):this.createHigherLevels(this._itemBoundables,-1),this._itemBoundables=null,this._built=!0}},{key:"getRoot",value:function(){return this.build(),this._root}},{key:"remove",value:function(){if(arguments.length===2){var h=arguments[0],g=arguments[1];return this.build(),!!this.getIntersectsOp().intersects(this._root.getBounds(),h)&&this.remove(h,this._root,g)}if(arguments.length===3){var E=arguments[0],O=arguments[1],G=arguments[2],Y=this.removeItem(O,G);if(Y)return!0;for(var $=null,ne=O.getChildBoundables().iterator();ne.hasNext();){var he=ne.next();if(this.getIntersectsOp().intersects(he.getBounds(),E)&&he instanceof Ka&&(Y=this.remove(E,he,G))){$=he;break}}return $!==null&&$.getChildBoundables().isEmpty()&&O.getChildBoundables().remove($),Y}}},{key:"createHigherLevels",value:function(h,g){Pe.isTrue(!h.isEmpty());var E=this.createParentBoundables(h,g+1);return E.size()===1?E.get(0):this.createHigherLevels(E,g+1)}},{key:"depth",value:function(){if(arguments.length===0)return this.isEmpty()?0:(this.build(),this.depth(this._root));if(arguments.length===1){for(var h=0,g=arguments[0].getChildBoundables().iterator();g.hasNext();){var E=g.next();if(E instanceof Ka){var O=this.depth(E);O>h&&(h=O)}}return h+1}}},{key:"createParentBoundables",value:function(h,g){Pe.isTrue(!h.isEmpty());var E=new bt;E.add(this.createNode(g));var O=new bt(h);Cu.sort(O,this.getComparator());for(var G=O.iterator();G.hasNext();){var Y=G.next();this.lastNode(E).getChildBoundables().size()===this.getNodeCapacity()&&E.add(this.createNode(g)),this.lastNode(E).addChildBoundable(Y)}return E}},{key:"isEmpty",value:function(){return this._built?this._root.isEmpty():this._itemBoundables.isEmpty()}},{key:"interfaces_",get:function(){return[ce]}}],[{key:"constructor_",value:function(){if(this._root=null,this._built=!1,this._itemBoundables=new bt,this._nodeCapacity=null,arguments.length===0)x.constructor_.call(this,x.DEFAULT_NODE_CAPACITY);else if(arguments.length===1){var h=arguments[0];Pe.isTrue(h>1,"Node capacity must be greater than 1"),this._nodeCapacity=h}}},{key:"compareDoubles",value:function(h,g){return h>g?1:h<g?-1:0}}])})();Ys.IntersectsOp=function(){},Ys.DEFAULT_NODE_CAPACITY=10;var yc=(function(){return C((function x(){m(this,x)}),[{key:"distance",value:function(x,h){}}])})(),mi=(function(x){function h(){var g;return m(this,h),g=d(this,h),h.constructor_.apply(g,arguments),g}return k(h,x),C(h,[{key:"createParentBoundablesFromVerticalSlices",value:function(g,E){Pe.isTrue(g.length>0);for(var O=new bt,G=0;G<g.length;G++)O.addAll(this.createParentBoundablesFromVerticalSlice(g[G],E));return O}},{key:"nearestNeighbourK",value:function(){if(arguments.length===2){var g=arguments[0],E=arguments[1];return this.nearestNeighbourK(g,Ve.POSITIVE_INFINITY,E)}if(arguments.length===3){var O=arguments[0],G=arguments[2],Y=arguments[1],$=new Do;$.add(O);for(var ne=new Do;!$.isEmpty()&&Y>=0;){var he=$.poll(),Se=he.getDistance();if(Se>=Y)break;he.isLeaves()?ne.size()<G?ne.add(he):(ne.peek().getDistance()>Se&&(ne.poll(),ne.add(he)),Y=ne.peek().getDistance()):he.expandToQueue($,Y)}return h.getItems(ne)}}},{key:"createNode",value:function(g){return new $f(g)}},{key:"size",value:function(){return arguments.length===0?H(h,"size",this,1).call(this):H(h,"size",this,1).apply(this,arguments)}},{key:"insert",value:function(){if(!(arguments.length===2&&arguments[1]instanceof Object&&arguments[0]instanceof st))return H(h,"insert",this,1).apply(this,arguments);var g=arguments[0],E=arguments[1];if(g.isNull())return null;H(h,"insert",this,1).call(this,g,E)}},{key:"getIntersectsOp",value:function(){return h.intersectsOp}},{key:"verticalSlices",value:function(g,E){for(var O=Math.trunc(Math.ceil(g.size()/E)),G=new Array(E).fill(null),Y=g.iterator(),$=0;$<E;$++){G[$]=new bt;for(var ne=0;Y.hasNext()&&ne<O;){var he=Y.next();G[$].add(he),ne++}}return G}},{key:"query",value:function(){if(arguments.length===1){var g=arguments[0];return H(h,"query",this,1).call(this,g)}if(arguments.length===2){var E=arguments[0],O=arguments[1];H(h,"query",this,1).call(this,E,O)}}},{key:"getComparator",value:function(){return h.yComparator}},{key:"createParentBoundablesFromVerticalSlice",value:function(g,E){return H(h,"createParentBoundables",this,1).call(this,g,E)}},{key:"remove",value:function(){if(arguments.length===2&&arguments[1]instanceof Object&&arguments[0]instanceof st){var g=arguments[0],E=arguments[1];return H(h,"remove",this,1).call(this,g,E)}return H(h,"remove",this,1).apply(this,arguments)}},{key:"depth",value:function(){return arguments.length===0?H(h,"depth",this,1).call(this):H(h,"depth",this,1).apply(this,arguments)}},{key:"createParentBoundables",value:function(g,E){Pe.isTrue(!g.isEmpty());var O=Math.trunc(Math.ceil(g.size()/this.getNodeCapacity())),G=new bt(g);Cu.sort(G,h.xComparator);var Y=this.verticalSlices(G,Math.trunc(Math.ceil(Math.sqrt(O))));return this.createParentBoundablesFromVerticalSlices(Y,E)}},{key:"nearestNeighbour",value:function(){if(arguments.length===1){if(vt(arguments[0],yc)){var g=arguments[0];if(this.isEmpty())return null;var E=new Hs(this.getRoot(),this.getRoot(),g);return this.nearestNeighbour(E)}if(arguments[0]instanceof Hs){var O=arguments[0],G=Ve.POSITIVE_INFINITY,Y=null,$=new Do;for($.add(O);!$.isEmpty()&&G>0;){var ne=$.poll(),he=ne.getDistance();if(he>=G)break;ne.isLeaves()?(G=he,Y=ne):ne.expandToQueue($,G)}return Y===null?null:[Y.getBoundable(0).getItem(),Y.getBoundable(1).getItem()]}}else{if(arguments.length===2){var Se=arguments[0],je=arguments[1];if(this.isEmpty()||Se.isEmpty())return null;var at=new Hs(this.getRoot(),Se.getRoot(),je);return this.nearestNeighbour(at)}if(arguments.length===3){var ct=arguments[2],mt=new Su(arguments[0],arguments[1]),Ct=new Hs(this.getRoot(),mt,ct);return this.nearestNeighbour(Ct)[0]}if(arguments.length===4){var Pt=arguments[2],rn=arguments[3],un=new Su(arguments[0],arguments[1]),Wn=new Hs(this.getRoot(),un,Pt);return this.nearestNeighbourK(Wn,rn)}}}},{key:"isWithinDistance",value:function(){if(arguments.length===2){var g=arguments[0],E=arguments[1],O=Ve.POSITIVE_INFINITY,G=new Do;for(G.add(g);!G.isEmpty();){var Y=G.poll(),$=Y.getDistance();if($>E)return!1;if(Y.maximumDistance()<=E)return!0;if(Y.isLeaves()){if((O=$)<=E)return!0}else Y.expandToQueue(G,O)}return!1}if(arguments.length===3){var ne=arguments[0],he=arguments[1],Se=arguments[2],je=new Hs(this.getRoot(),ne.getRoot(),he);return this.isWithinDistance(je,Se)}}},{key:"interfaces_",get:function(){return[Xf,ce]}}],[{key:"constructor_",value:function(){if(arguments.length===0)h.constructor_.call(this,h.DEFAULT_NODE_CAPACITY);else if(arguments.length===1){var g=arguments[0];Ys.constructor_.call(this,g)}}},{key:"centreX",value:function(g){return h.avg(g.getMinX(),g.getMaxX())}},{key:"avg",value:function(g,E){return(g+E)/2}},{key:"getItems",value:function(g){for(var E=new Array(g.size()).fill(null),O=0;!g.isEmpty();){var G=g.poll();E[O]=G.getBoundable(0).getItem(),O++}return E}},{key:"centreY",value:function(g){return h.avg(g.getMinY(),g.getMaxY())}}])})(Ys),$f=(function(x){function h(){var g;return m(this,h),g=d(this,h),h.constructor_.apply(g,arguments),g}return k(h,x),C(h,[{key:"computeBounds",value:function(){for(var g=null,E=this.getChildBoundables().iterator();E.hasNext();){var O=E.next();g===null?g=new st(O.getBounds()):g.expandToInclude(O.getBounds())}return g}}],[{key:"constructor_",value:function(){var g=arguments[0];Ka.constructor_.call(this,g)}}])})(Ka);mi.STRtreeNode=$f,mi.xComparator=new((function(){return C((function x(){m(this,x)}),[{key:"interfaces_",get:function(){return[Le]}},{key:"compare",value:function(x,h){return Ys.compareDoubles(mi.centreX(x.getBounds()),mi.centreX(h.getBounds()))}}])})()),mi.yComparator=new((function(){return C((function x(){m(this,x)}),[{key:"interfaces_",get:function(){return[Le]}},{key:"compare",value:function(x,h){return Ys.compareDoubles(mi.centreY(x.getBounds()),mi.centreY(h.getBounds()))}}])})()),mi.intersectsOp=new((function(){return C((function x(){m(this,x)}),[{key:"interfaces_",get:function(){return[IntersectsOp]}},{key:"intersects",value:function(x,h){return x.intersects(h)}}])})()),mi.DEFAULT_NODE_CAPACITY=10;var Xs=(function(){function x(){m(this,x)}return C(x,null,[{key:"relativeSign",value:function(h,g){return h<g?-1:h>g?1:0}},{key:"compare",value:function(h,g,E){if(g.equals2D(E))return 0;var O=x.relativeSign(g.x,E.x),G=x.relativeSign(g.y,E.y);switch(h){case 0:return x.compareValue(O,G);case 1:return x.compareValue(G,O);case 2:return x.compareValue(G,-O);case 3:return x.compareValue(-O,G);case 4:return x.compareValue(-O,-G);case 5:return x.compareValue(-G,-O);case 6:return x.compareValue(-G,O);case 7:return x.compareValue(O,-G)}return Pe.shouldNeverReachHere("invalid octant value"),0}},{key:"compareValue",value:function(h,g){return h<0?-1:h>0?1:g<0?-1:g>0?1:0}}])})(),Zs=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"getCoordinate",value:function(){return this.coord}},{key:"print",value:function(x){x.print(this.coord),x.print(" seg # = "+this.segmentIndex)}},{key:"compareTo",value:function(x){var h=x;return this.segmentIndex<h.segmentIndex?-1:this.segmentIndex>h.segmentIndex?1:this.coord.equals2D(h.coord)?0:this._isInterior?h._isInterior?Xs.compare(this._segmentOctant,this.coord,h.coord):1:-1}},{key:"isEndPoint",value:function(x){return this.segmentIndex===0&&!this._isInterior||this.segmentIndex===x}},{key:"toString",value:function(){return this.segmentIndex+":"+this.coord.toString()}},{key:"isInterior",value:function(){return this._isInterior}},{key:"interfaces_",get:function(){return[pe]}}],[{key:"constructor_",value:function(){this._segString=null,this.coord=null,this.segmentIndex=null,this._segmentOctant=null,this._isInterior=null;var x=arguments[0],h=arguments[1],g=arguments[2],E=arguments[3];this._segString=x,this.coord=new xe(h),this.segmentIndex=g,this._segmentOctant=E,this._isInterior=!h.equals2D(x.getCoordinate(g))}}])})(),Mi=(function(){return C((function x(){m(this,x)}),[{key:"hasNext",value:function(){}},{key:"next",value:function(){}},{key:"remove",value:function(){}}])})(),Nh=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"getSplitCoordinates",value:function(){var x=new Dr;this.addEndpoints();for(var h=this.iterator(),g=h.next();h.hasNext();){var E=h.next();this.addEdgeCoordinates(g,E,x),g=E}return x.toCoordinateArray()}},{key:"addCollapsedNodes",value:function(){var x=new bt;this.findCollapsesFromInsertedNodes(x),this.findCollapsesFromExistingVertices(x);for(var h=x.iterator();h.hasNext();){var g=h.next().intValue();this.add(this._edge.getCoordinate(g),g)}}},{key:"createSplitEdgePts",value:function(x,h){var g=h.segmentIndex-x.segmentIndex+2;if(g===2)return[new xe(x.coord),new xe(h.coord)];var E=this._edge.getCoordinate(h.segmentIndex),O=h.isInterior()||!h.coord.equals2D(E);O||g--;var G=new Array(g).fill(null),Y=0;G[Y++]=new xe(x.coord);for(var $=x.segmentIndex+1;$<=h.segmentIndex;$++)G[Y++]=this._edge.getCoordinate($);return O&&(G[Y]=new xe(h.coord)),G}},{key:"print",value:function(x){x.println("Intersections:");for(var h=this.iterator();h.hasNext();)h.next().print(x)}},{key:"findCollapsesFromExistingVertices",value:function(x){for(var h=0;h<this._edge.size()-2;h++){var g=this._edge.getCoordinate(h);this._edge.getCoordinate(h+1);var E=this._edge.getCoordinate(h+2);g.equals2D(E)&&x.add(gr.valueOf(h+1))}}},{key:"addEdgeCoordinates",value:function(x,h,g){var E=this.createSplitEdgePts(x,h);g.add(E,!1)}},{key:"iterator",value:function(){return this._nodeMap.values().iterator()}},{key:"addSplitEdges",value:function(x){this.addEndpoints(),this.addCollapsedNodes();for(var h=this.iterator(),g=h.next();h.hasNext();){var E=h.next(),O=this.createSplitEdge(g,E);x.add(O),g=E}}},{key:"findCollapseIndex",value:function(x,h,g){if(!x.coord.equals2D(h.coord))return!1;var E=h.segmentIndex-x.segmentIndex;return h.isInterior()||E--,E===1&&(g[0]=x.segmentIndex+1,!0)}},{key:"findCollapsesFromInsertedNodes",value:function(x){for(var h=new Array(1).fill(null),g=this.iterator(),E=g.next();g.hasNext();){var O=g.next();this.findCollapseIndex(E,O,h)&&x.add(gr.valueOf(h[0])),E=O}}},{key:"getEdge",value:function(){return this._edge}},{key:"addEndpoints",value:function(){var x=this._edge.size()-1;this.add(this._edge.getCoordinate(0),0),this.add(this._edge.getCoordinate(x),x)}},{key:"createSplitEdge",value:function(x,h){var g=this.createSplitEdgePts(x,h);return new za(g,this._edge.getData())}},{key:"add",value:function(x,h){var g=new Zs(this._edge,x,h,this._edge.getSegmentOctant(h)),E=this._nodeMap.get(g);return E!==null?(Pe.isTrue(E.coord.equals2D(x),"Found equal nodes with different coordinates"),E):(this._nodeMap.put(g,g),g)}},{key:"checkSplitEdgesCorrectness",value:function(x){var h=this._edge.getCoordinates(),g=x.get(0).getCoordinate(0);if(!g.equals2D(h[0]))throw new Je("bad split edge start point at "+g);var E=x.get(x.size()-1).getCoordinates(),O=E[E.length-1];if(!O.equals2D(h[h.length-1]))throw new Je("bad split edge end point at "+O)}}],[{key:"constructor_",value:function(){this._nodeMap=new Ju,this._edge=null;var x=arguments[0];this._edge=x}}])})(),Jf=(function(){function x(){m(this,x)}return C(x,null,[{key:"octant",value:function(){if(typeof arguments[0]=="number"&&typeof arguments[1]=="number"){var h=arguments[0],g=arguments[1];if(h===0&&g===0)throw new se("Cannot compute the octant for point ( "+h+", "+g+" )");var E=Math.abs(h),O=Math.abs(g);return h>=0?g>=0?E>=O?0:1:E>=O?7:6:g>=0?E>=O?3:2:E>=O?4:5}if(arguments[0]instanceof xe&&arguments[1]instanceof xe){var G=arguments[0],Y=arguments[1],$=Y.x-G.x,ne=Y.y-G.y;if($===0&&ne===0)throw new se("Cannot compute the octant for two identical points "+G);return x.octant($,ne)}}}])})(),iu=(function(){return C((function x(){m(this,x)}),[{key:"getCoordinates",value:function(){}},{key:"size",value:function(){}},{key:"getCoordinate",value:function(x){}},{key:"isClosed",value:function(){}},{key:"setData",value:function(x){}},{key:"getData",value:function(){}}])})(),Lh=(function(){return C((function x(){m(this,x)}),[{key:"addIntersection",value:function(x,h){}},{key:"interfaces_",get:function(){return[iu]}}])})(),za=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"getCoordinates",value:function(){return this._pts}},{key:"size",value:function(){return this._pts.length}},{key:"getCoordinate",value:function(h){return this._pts[h]}},{key:"isClosed",value:function(){return this._pts[0].equals(this._pts[this._pts.length-1])}},{key:"getSegmentOctant",value:function(h){return h===this._pts.length-1?-1:this.safeOctant(this.getCoordinate(h),this.getCoordinate(h+1))}},{key:"setData",value:function(h){this._data=h}},{key:"safeOctant",value:function(h,g){return h.equals2D(g)?0:Jf.octant(h,g)}},{key:"getData",value:function(){return this._data}},{key:"addIntersection",value:function(){if(arguments.length===2){var h=arguments[0],g=arguments[1];this.addIntersectionNode(h,g)}else if(arguments.length===4){var E=arguments[1],O=arguments[3],G=new xe(arguments[0].getIntersection(O));this.addIntersection(G,E)}}},{key:"toString",value:function(){return dl.toLineString(new Vt(this._pts))}},{key:"getNodeList",value:function(){return this._nodeList}},{key:"addIntersectionNode",value:function(h,g){var E=g,O=E+1;if(O<this._pts.length){var G=this._pts[O];h.equals2D(G)&&(E=O)}return this._nodeList.add(h,E)}},{key:"addIntersections",value:function(h,g,E){for(var O=0;O<h.getIntersectionNum();O++)this.addIntersection(h,g,E,O)}},{key:"interfaces_",get:function(){return[Lh]}}],[{key:"constructor_",value:function(){this._nodeList=new Nh(this),this._pts=null,this._data=null;var h=arguments[0],g=arguments[1];this._pts=h,this._data=g}},{key:"getNodedSubstrings",value:function(){if(arguments.length===1){var h=arguments[0],g=new bt;return x.getNodedSubstrings(h,g),g}if(arguments.length===2)for(var E=arguments[1],O=arguments[0].iterator();O.hasNext();)O.next().getNodeList().addSplitEdges(E)}}])})(),zn=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"minX",value:function(){return Math.min(this.p0.x,this.p1.x)}},{key:"orientationIndex",value:function(){if(arguments[0]instanceof x){var h=arguments[0],g=Tt.index(this.p0,this.p1,h.p0),E=Tt.index(this.p0,this.p1,h.p1);return g>=0&&E>=0||g<=0&&E<=0?Math.max(g,E):0}if(arguments[0]instanceof xe){var O=arguments[0];return Tt.index(this.p0,this.p1,O)}}},{key:"toGeometry",value:function(h){return h.createLineString([this.p0,this.p1])}},{key:"isVertical",value:function(){return this.p0.x===this.p1.x}},{key:"equals",value:function(h){if(!(h instanceof x))return!1;var g=h;return this.p0.equals(g.p0)&&this.p1.equals(g.p1)}},{key:"intersection",value:function(h){var g=new Ni;return g.computeIntersection(this.p0,this.p1,h.p0,h.p1),g.hasIntersection()?g.getIntersection(0):null}},{key:"project",value:function(){if(arguments[0]instanceof xe){var h=arguments[0];if(h.equals(this.p0)||h.equals(this.p1))return new xe(h);var g=this.projectionFactor(h),E=new xe;return E.x=this.p0.x+g*(this.p1.x-this.p0.x),E.y=this.p0.y+g*(this.p1.y-this.p0.y),E}if(arguments[0]instanceof x){var O=arguments[0],G=this.projectionFactor(O.p0),Y=this.projectionFactor(O.p1);if(G>=1&&Y>=1||G<=0&&Y<=0)return null;var $=this.project(O.p0);G<0&&($=this.p0),G>1&&($=this.p1);var ne=this.project(O.p1);return Y<0&&(ne=this.p0),Y>1&&(ne=this.p1),new x($,ne)}}},{key:"normalize",value:function(){this.p1.compareTo(this.p0)<0&&this.reverse()}},{key:"angle",value:function(){return Math.atan2(this.p1.y-this.p0.y,this.p1.x-this.p0.x)}},{key:"getCoordinate",value:function(h){return h===0?this.p0:this.p1}},{key:"distancePerpendicular",value:function(h){return Nn.pointToLinePerpendicular(h,this.p0,this.p1)}},{key:"minY",value:function(){return Math.min(this.p0.y,this.p1.y)}},{key:"midPoint",value:function(){return x.midPoint(this.p0,this.p1)}},{key:"projectionFactor",value:function(h){if(h.equals(this.p0))return 0;if(h.equals(this.p1))return 1;var g=this.p1.x-this.p0.x,E=this.p1.y-this.p0.y,O=g*g+E*E;return O<=0?Ve.NaN:((h.x-this.p0.x)*g+(h.y-this.p0.y)*E)/O}},{key:"closestPoints",value:function(h){var g=this.intersection(h);if(g!==null)return[g,g];var E=new Array(2).fill(null),O=Ve.MAX_VALUE,G=null,Y=this.closestPoint(h.p0);O=Y.distance(h.p0),E[0]=Y,E[1]=h.p0;var $=this.closestPoint(h.p1);(G=$.distance(h.p1))<O&&(O=G,E[0]=$,E[1]=h.p1);var ne=h.closestPoint(this.p0);(G=ne.distance(this.p0))<O&&(O=G,E[0]=this.p0,E[1]=ne);var he=h.closestPoint(this.p1);return(G=he.distance(this.p1))<O&&(O=G,E[0]=this.p1,E[1]=he),E}},{key:"closestPoint",value:function(h){var g=this.projectionFactor(h);return g>0&&g<1?this.project(h):this.p0.distance(h)<this.p1.distance(h)?this.p0:this.p1}},{key:"maxX",value:function(){return Math.max(this.p0.x,this.p1.x)}},{key:"getLength",value:function(){return this.p0.distance(this.p1)}},{key:"compareTo",value:function(h){var g=h,E=this.p0.compareTo(g.p0);return E!==0?E:this.p1.compareTo(g.p1)}},{key:"reverse",value:function(){var h=this.p0;this.p0=this.p1,this.p1=h}},{key:"equalsTopo",value:function(h){return this.p0.equals(h.p0)&&this.p1.equals(h.p1)||this.p0.equals(h.p1)&&this.p1.equals(h.p0)}},{key:"lineIntersection",value:function(h){return tu.intersection(this.p0,this.p1,h.p0,h.p1)}},{key:"maxY",value:function(){return Math.max(this.p0.y,this.p1.y)}},{key:"pointAlongOffset",value:function(h,g){var E=this.p0.x+h*(this.p1.x-this.p0.x),O=this.p0.y+h*(this.p1.y-this.p0.y),G=this.p1.x-this.p0.x,Y=this.p1.y-this.p0.y,$=Math.sqrt(G*G+Y*Y),ne=0,he=0;if(g!==0){if($<=0)throw new IllegalStateException("Cannot compute offset from zero-length line segment");ne=g*G/$,he=g*Y/$}return new xe(E-he,O+ne)}},{key:"setCoordinates",value:function(){if(arguments.length===1){var h=arguments[0];this.setCoordinates(h.p0,h.p1)}else if(arguments.length===2){var g=arguments[0],E=arguments[1];this.p0.x=g.x,this.p0.y=g.y,this.p1.x=E.x,this.p1.y=E.y}}},{key:"segmentFraction",value:function(h){var g=this.projectionFactor(h);return g<0?g=0:(g>1||Ve.isNaN(g))&&(g=1),g}},{key:"toString",value:function(){return"LINESTRING( "+this.p0.x+" "+this.p0.y+", "+this.p1.x+" "+this.p1.y+")"}},{key:"isHorizontal",value:function(){return this.p0.y===this.p1.y}},{key:"reflect",value:function(h){var g=this.p1.getY()-this.p0.getY(),E=this.p0.getX()-this.p1.getX(),O=this.p0.getY()*(this.p1.getX()-this.p0.getX())-this.p0.getX()*(this.p1.getY()-this.p0.getY()),G=g*g+E*E,Y=g*g-E*E,$=h.getX(),ne=h.getY();return new xe((-Y*$-2*g*E*ne-2*g*O)/G,(Y*ne-2*g*E*$-2*E*O)/G)}},{key:"distance",value:function(){if(arguments[0]instanceof x){var h=arguments[0];return Nn.segmentToSegment(this.p0,this.p1,h.p0,h.p1)}if(arguments[0]instanceof xe){var g=arguments[0];return Nn.pointToSegment(g,this.p0,this.p1)}}},{key:"pointAlong",value:function(h){var g=new xe;return g.x=this.p0.x+h*(this.p1.x-this.p0.x),g.y=this.p0.y+h*(this.p1.y-this.p0.y),g}},{key:"hashCode",value:function(){var h=Ve.doubleToLongBits(this.p0.x);h^=31*Ve.doubleToLongBits(this.p0.y);var g=Math.trunc(h)^Math.trunc(h>>32),E=Ve.doubleToLongBits(this.p1.x);return E^=31*Ve.doubleToLongBits(this.p1.y),g^(Math.trunc(E)^Math.trunc(E>>32))}},{key:"interfaces_",get:function(){return[pe,ce]}}],[{key:"constructor_",value:function(){if(this.p0=null,this.p1=null,arguments.length===0)x.constructor_.call(this,new xe,new xe);else if(arguments.length===1){var h=arguments[0];x.constructor_.call(this,h.p0,h.p1)}else if(arguments.length===2){var g=arguments[0],E=arguments[1];this.p0=g,this.p1=E}else if(arguments.length===4){var O=arguments[0],G=arguments[1],Y=arguments[2],$=arguments[3];x.constructor_.call(this,new xe(O,G),new xe(Y,$))}}},{key:"midPoint",value:function(h,g){return new xe((h.x+g.x)/2,(h.y+g.y)/2)}}])})(),vc=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"overlap",value:function(){if(arguments.length!==2){if(arguments.length===4){var x=arguments[1],h=arguments[2],g=arguments[3];arguments[0].getLineSegment(x,this._overlapSeg1),h.getLineSegment(g,this._overlapSeg2),this.overlap(this._overlapSeg1,this._overlapSeg2)}}}}],[{key:"constructor_",value:function(){this._overlapSeg1=new zn,this._overlapSeg2=new zn}}])})(),ml=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"getLineSegment",value:function(x,h){h.p0=this._pts[x],h.p1=this._pts[x+1]}},{key:"computeSelect",value:function(x,h,g,E){var O=this._pts[h],G=this._pts[g];if(g-h==1)return E.select(this,h),null;if(!x.intersects(O,G))return null;var Y=Math.trunc((h+g)/2);h<Y&&this.computeSelect(x,h,Y,E),Y<g&&this.computeSelect(x,Y,g,E)}},{key:"getCoordinates",value:function(){for(var x=new Array(this._end-this._start+1).fill(null),h=0,g=this._start;g<=this._end;g++)x[h++]=this._pts[g];return x}},{key:"computeOverlaps",value:function(){if(arguments.length===2){var x=arguments[0],h=arguments[1];this.computeOverlaps(this._start,this._end,x,x._start,x._end,h)}else if(arguments.length===6){var g=arguments[0],E=arguments[1],O=arguments[2],G=arguments[3],Y=arguments[4],$=arguments[5];if(E-g==1&&Y-G==1)return $.overlap(this,g,O,G),null;if(!this.overlaps(g,E,O,G,Y))return null;var ne=Math.trunc((g+E)/2),he=Math.trunc((G+Y)/2);g<ne&&(G<he&&this.computeOverlaps(g,ne,O,G,he,$),he<Y&&this.computeOverlaps(g,ne,O,he,Y,$)),ne<E&&(G<he&&this.computeOverlaps(ne,E,O,G,he,$),he<Y&&this.computeOverlaps(ne,E,O,he,Y,$))}}},{key:"setId",value:function(x){this._id=x}},{key:"select",value:function(x,h){this.computeSelect(x,this._start,this._end,h)}},{key:"getEnvelope",value:function(){if(this._env===null){var x=this._pts[this._start],h=this._pts[this._end];this._env=new st(x,h)}return this._env}},{key:"overlaps",value:function(x,h,g,E,O){return st.intersects(this._pts[x],this._pts[h],g._pts[E],g._pts[O])}},{key:"getEndIndex",value:function(){return this._end}},{key:"getStartIndex",value:function(){return this._start}},{key:"getContext",value:function(){return this._context}},{key:"getId",value:function(){return this._id}}],[{key:"constructor_",value:function(){this._pts=null,this._start=null,this._end=null,this._env=null,this._context=null,this._id=null;var x=arguments[0],h=arguments[1],g=arguments[2],E=arguments[3];this._pts=x,this._start=h,this._end=g,this._context=E}}])})(),Wf=(function(){function x(){m(this,x)}return C(x,null,[{key:"findChainEnd",value:function(h,g){for(var E=g;E<h.length-1&&h[E].equals2D(h[E+1]);)E++;if(E>=h.length-1)return h.length-1;for(var O=wa.quadrant(h[E],h[E+1]),G=g+1;G<h.length&&!(!h[G-1].equals2D(h[G])&&wa.quadrant(h[G-1],h[G])!==O);)G++;return G-1}},{key:"getChains",value:function(){if(arguments.length===1){var h=arguments[0];return x.getChains(h,null)}if(arguments.length===2){var g=arguments[0],E=arguments[1],O=new bt,G=0;do{var Y=x.findChainEnd(g,G),$=new ml(g,G,Y,E);O.add($),G=Y}while(G<g.length-1);return O}}}])})(),Vr=(function(){return C((function x(){m(this,x)}),[{key:"computeNodes",value:function(x){}},{key:"getNodedSubstrings",value:function(){}}])})(),Mh=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"setSegmentIntersector",value:function(x){this._segInt=x}},{key:"interfaces_",get:function(){return[Vr]}}],[{key:"constructor_",value:function(){if(this._segInt=null,arguments.length!==0){if(arguments.length===1){var x=arguments[0];this.setSegmentIntersector(x)}}}}])})(),bc=(function(x){function h(){var g;return m(this,h),g=d(this,h),h.constructor_.apply(g,arguments),g}return k(h,x),C(h,[{key:"getMonotoneChains",value:function(){return this._monoChains}},{key:"getNodedSubstrings",value:function(){return za.getNodedSubstrings(this._nodedSegStrings)}},{key:"getIndex",value:function(){return this._index}},{key:"add",value:function(g){for(var E=Wf.getChains(g.getCoordinates(),g).iterator();E.hasNext();){var O=E.next();O.setId(this._idCounter++),this._index.insert(O.getEnvelope(),O),this._monoChains.add(O)}}},{key:"computeNodes",value:function(g){this._nodedSegStrings=g;for(var E=g.iterator();E.hasNext();)this.add(E.next());this.intersectChains()}},{key:"intersectChains",value:function(){for(var g=new Qf(this._segInt),E=this._monoChains.iterator();E.hasNext();)for(var O=E.next(),G=this._index.query(O.getEnvelope()).iterator();G.hasNext();){var Y=G.next();if(Y.getId()>O.getId()&&(O.computeOverlaps(Y,g),this._nOverlaps++),this._segInt.isDone())return null}}}],[{key:"constructor_",value:function(){if(this._monoChains=new bt,this._index=new mi,this._idCounter=0,this._nodedSegStrings=null,this._nOverlaps=0,arguments.length!==0){if(arguments.length===1){var g=arguments[0];Mh.constructor_.call(this,g)}}}}])})(Mh),Qf=(function(x){function h(){var g;return m(this,h),g=d(this,h),h.constructor_.apply(g,arguments),g}return k(h,x),C(h,[{key:"overlap",value:function(){if(arguments.length!==4)return H(h,"overlap",this,1).apply(this,arguments);var g=arguments[1],E=arguments[2],O=arguments[3],G=arguments[0].getContext(),Y=E.getContext();this._si.processIntersections(G,g,Y,O)}}],[{key:"constructor_",value:function(){this._si=null;var g=arguments[0];this._si=g}}])})(vc);bc.SegmentOverlapAction=Qf;var ki=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"isDeletable",value:function(h,g,E,O){var G=this._inputLine[h],Y=this._inputLine[g],$=this._inputLine[E];return!!this.isConcave(G,Y,$)&&!!this.isShallow(G,Y,$,O)&&this.isShallowSampled(G,Y,h,E,O)}},{key:"deleteShallowConcavities",value:function(){for(var h=1,g=this.findNextNonDeletedIndex(h),E=this.findNextNonDeletedIndex(g),O=!1;E<this._inputLine.length;){var G=!1;this.isDeletable(h,g,E,this._distanceTol)&&(this._isDeleted[g]=x.DELETE,G=!0,O=!0),h=G?E:g,g=this.findNextNonDeletedIndex(h),E=this.findNextNonDeletedIndex(g)}return O}},{key:"isShallowConcavity",value:function(h,g,E,O){return Tt.index(h,g,E)===this._angleOrientation&&Nn.pointToSegment(g,h,E)<O}},{key:"isShallowSampled",value:function(h,g,E,O,G){var Y=Math.trunc((O-E)/x.NUM_PTS_TO_CHECK);Y<=0&&(Y=1);for(var $=E;$<O;$+=Y)if(!this.isShallow(h,g,this._inputLine[$],G))return!1;return!0}},{key:"isConcave",value:function(h,g,E){var O=Tt.index(h,g,E)===this._angleOrientation;return O}},{key:"simplify",value:function(h){this._distanceTol=Math.abs(h),h<0&&(this._angleOrientation=Tt.CLOCKWISE),this._isDeleted=new Array(this._inputLine.length).fill(null);var g=!1;do g=this.deleteShallowConcavities();while(g);return this.collapseLine()}},{key:"findNextNonDeletedIndex",value:function(h){for(var g=h+1;g<this._inputLine.length&&this._isDeleted[g]===x.DELETE;)g++;return g}},{key:"isShallow",value:function(h,g,E,O){return Nn.pointToSegment(g,h,E)<O}},{key:"collapseLine",value:function(){for(var h=new Dr,g=0;g<this._inputLine.length;g++)this._isDeleted[g]!==x.DELETE&&h.add(this._inputLine[g]);return h.toCoordinateArray()}}],[{key:"constructor_",value:function(){this._inputLine=null,this._distanceTol=null,this._isDeleted=null,this._angleOrientation=Tt.COUNTERCLOCKWISE;var h=arguments[0];this._inputLine=h}},{key:"simplify",value:function(h,g){return new x(h).simplify(g)}}])})();ki.INIT=0,ki.DELETE=1,ki.KEEP=1,ki.NUM_PTS_TO_CHECK=10;var _c=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"getCoordinates",value:function(){return this._ptList.toArray(x.COORDINATE_ARRAY_TYPE)}},{key:"setPrecisionModel",value:function(h){this._precisionModel=h}},{key:"addPt",value:function(h){var g=new xe(h);if(this._precisionModel.makePrecise(g),this.isRedundant(g))return null;this._ptList.add(g)}},{key:"reverse",value:function(){}},{key:"addPts",value:function(h,g){if(g)for(var E=0;E<h.length;E++)this.addPt(h[E]);else for(var O=h.length-1;O>=0;O--)this.addPt(h[O])}},{key:"isRedundant",value:function(h){if(this._ptList.size()<1)return!1;var g=this._ptList.get(this._ptList.size()-1);return h.distance(g)<this._minimimVertexDistance}},{key:"toString",value:function(){return new Ii().createLineString(this.getCoordinates()).toString()}},{key:"closeRing",value:function(){if(this._ptList.size()<1)return null;var h=new xe(this._ptList.get(0)),g=this._ptList.get(this._ptList.size()-1);if(h.equals(g))return null;this._ptList.add(h)}},{key:"setMinimumVertexDistance",value:function(h){this._minimimVertexDistance=h}}],[{key:"constructor_",value:function(){this._ptList=null,this._precisionModel=null,this._minimimVertexDistance=0,this._ptList=new bt}}])})();_c.COORDINATE_ARRAY_TYPE=new Array(0).fill(null);var Hr=(function(){function x(){m(this,x)}return C(x,null,[{key:"toDegrees",value:function(h){return 180*h/Math.PI}},{key:"normalize",value:function(h){for(;h>Math.PI;)h-=x.PI_TIMES_2;for(;h<=-Math.PI;)h+=x.PI_TIMES_2;return h}},{key:"angle",value:function(){if(arguments.length===1){var h=arguments[0];return Math.atan2(h.y,h.x)}if(arguments.length===2){var g=arguments[0],E=arguments[1],O=E.x-g.x,G=E.y-g.y;return Math.atan2(G,O)}}},{key:"isAcute",value:function(h,g,E){var O=h.x-g.x,G=h.y-g.y;return O*(E.x-g.x)+G*(E.y-g.y)>0}},{key:"isObtuse",value:function(h,g,E){var O=h.x-g.x,G=h.y-g.y;return O*(E.x-g.x)+G*(E.y-g.y)<0}},{key:"interiorAngle",value:function(h,g,E){var O=x.angle(g,h),G=x.angle(g,E);return Math.abs(G-O)}},{key:"normalizePositive",value:function(h){if(h<0){for(;h<0;)h+=x.PI_TIMES_2;h>=x.PI_TIMES_2&&(h=0)}else{for(;h>=x.PI_TIMES_2;)h-=x.PI_TIMES_2;h<0&&(h=0)}return h}},{key:"angleBetween",value:function(h,g,E){var O=x.angle(g,h),G=x.angle(g,E);return x.diff(O,G)}},{key:"diff",value:function(h,g){var E=null;return(E=h<g?g-h:h-g)>Math.PI&&(E=2*Math.PI-E),E}},{key:"toRadians",value:function(h){return h*Math.PI/180}},{key:"getTurn",value:function(h,g){var E=Math.sin(g-h);return E>0?x.COUNTERCLOCKWISE:E<0?x.CLOCKWISE:x.NONE}},{key:"angleBetweenOriented",value:function(h,g,E){var O=x.angle(g,h),G=x.angle(g,E)-O;return G<=-Math.PI?G+x.PI_TIMES_2:G>Math.PI?G-x.PI_TIMES_2:G}}])})();Hr.PI_TIMES_2=2*Math.PI,Hr.PI_OVER_2=Math.PI/2,Hr.PI_OVER_4=Math.PI/4,Hr.COUNTERCLOCKWISE=Tt.COUNTERCLOCKWISE,Hr.CLOCKWISE=Tt.CLOCKWISE,Hr.NONE=Tt.COLLINEAR;var Oo=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"addNextSegment",value:function(h,g){if(this._s0=this._s1,this._s1=this._s2,this._s2=h,this._seg0.setCoordinates(this._s0,this._s1),this.computeOffsetSegment(this._seg0,this._side,this._distance,this._offset0),this._seg1.setCoordinates(this._s1,this._s2),this.computeOffsetSegment(this._seg1,this._side,this._distance,this._offset1),this._s1.equals(this._s2))return null;var E=Tt.index(this._s0,this._s1,this._s2),O=E===Tt.CLOCKWISE&&this._side===rt.LEFT||E===Tt.COUNTERCLOCKWISE&&this._side===rt.RIGHT;E===0?this.addCollinear(g):O?this.addOutsideTurn(E,g):this.addInsideTurn(E,g)}},{key:"addLineEndCap",value:function(h,g){var E=new zn(h,g),O=new zn;this.computeOffsetSegment(E,rt.LEFT,this._distance,O);var G=new zn;this.computeOffsetSegment(E,rt.RIGHT,this._distance,G);var Y=g.x-h.x,$=g.y-h.y,ne=Math.atan2($,Y);switch(this._bufParams.getEndCapStyle()){case te.CAP_ROUND:this._segList.addPt(O.p1),this.addDirectedFillet(g,ne+Math.PI/2,ne-Math.PI/2,Tt.CLOCKWISE,this._distance),this._segList.addPt(G.p1);break;case te.CAP_FLAT:this._segList.addPt(O.p1),this._segList.addPt(G.p1);break;case te.CAP_SQUARE:var he=new xe;he.x=Math.abs(this._distance)*Math.cos(ne),he.y=Math.abs(this._distance)*Math.sin(ne);var Se=new xe(O.p1.x+he.x,O.p1.y+he.y),je=new xe(G.p1.x+he.x,G.p1.y+he.y);this._segList.addPt(Se),this._segList.addPt(je)}}},{key:"getCoordinates",value:function(){return this._segList.getCoordinates()}},{key:"addMitreJoin",value:function(h,g,E,O){var G=tu.intersection(g.p0,g.p1,E.p0,E.p1);if(G!==null&&(O<=0?1:G.distance(h)/Math.abs(O))<=this._bufParams.getMitreLimit())return this._segList.addPt(G),null;this.addLimitedMitreJoin(g,E,O,this._bufParams.getMitreLimit())}},{key:"addOutsideTurn",value:function(h,g){if(this._offset0.p1.distance(this._offset1.p0)<this._distance*x.OFFSET_SEGMENT_SEPARATION_FACTOR)return this._segList.addPt(this._offset0.p1),null;this._bufParams.getJoinStyle()===te.JOIN_MITRE?this.addMitreJoin(this._s1,this._offset0,this._offset1,this._distance):this._bufParams.getJoinStyle()===te.JOIN_BEVEL?this.addBevelJoin(this._offset0,this._offset1):(g&&this._segList.addPt(this._offset0.p1),this.addCornerFillet(this._s1,this._offset0.p1,this._offset1.p0,h,this._distance),this._segList.addPt(this._offset1.p0))}},{key:"createSquare",value:function(h){this._segList.addPt(new xe(h.x+this._distance,h.y+this._distance)),this._segList.addPt(new xe(h.x+this._distance,h.y-this._distance)),this._segList.addPt(new xe(h.x-this._distance,h.y-this._distance)),this._segList.addPt(new xe(h.x-this._distance,h.y+this._distance)),this._segList.closeRing()}},{key:"addSegments",value:function(h,g){this._segList.addPts(h,g)}},{key:"addFirstSegment",value:function(){this._segList.addPt(this._offset1.p0)}},{key:"addCornerFillet",value:function(h,g,E,O,G){var Y=g.x-h.x,$=g.y-h.y,ne=Math.atan2($,Y),he=E.x-h.x,Se=E.y-h.y,je=Math.atan2(Se,he);O===Tt.CLOCKWISE?ne<=je&&(ne+=2*Math.PI):ne>=je&&(ne-=2*Math.PI),this._segList.addPt(g),this.addDirectedFillet(h,ne,je,O,G),this._segList.addPt(E)}},{key:"addLastSegment",value:function(){this._segList.addPt(this._offset1.p1)}},{key:"initSideSegments",value:function(h,g,E){this._s1=h,this._s2=g,this._side=E,this._seg1.setCoordinates(h,g),this.computeOffsetSegment(this._seg1,E,this._distance,this._offset1)}},{key:"addLimitedMitreJoin",value:function(h,g,E,O){var G=this._seg0.p1,Y=Hr.angle(G,this._seg0.p0),$=Hr.angleBetweenOriented(this._seg0.p0,G,this._seg1.p1)/2,ne=Hr.normalize(Y+$),he=Hr.normalize(ne+Math.PI),Se=O*E,je=E-Se*Math.abs(Math.sin($)),at=G.x+Se*Math.cos(he),ct=G.y+Se*Math.sin(he),mt=new xe(at,ct),Ct=new zn(G,mt),Pt=Ct.pointAlongOffset(1,je),rn=Ct.pointAlongOffset(1,-je);this._side===rt.LEFT?(this._segList.addPt(Pt),this._segList.addPt(rn)):(this._segList.addPt(rn),this._segList.addPt(Pt))}},{key:"addDirectedFillet",value:function(h,g,E,O,G){var Y=O===Tt.CLOCKWISE?-1:1,$=Math.abs(g-E),ne=Math.trunc($/this._filletAngleQuantum+.5);if(ne<1)return null;for(var he=$/ne,Se=new xe,je=0;je<ne;je++){var at=g+Y*je*he;Se.x=h.x+G*Math.cos(at),Se.y=h.y+G*Math.sin(at),this._segList.addPt(Se)}}},{key:"computeOffsetSegment",value:function(h,g,E,O){var G=g===rt.LEFT?1:-1,Y=h.p1.x-h.p0.x,$=h.p1.y-h.p0.y,ne=Math.sqrt(Y*Y+$*$),he=G*E*Y/ne,Se=G*E*$/ne;O.p0.x=h.p0.x-Se,O.p0.y=h.p0.y+he,O.p1.x=h.p1.x-Se,O.p1.y=h.p1.y+he}},{key:"addInsideTurn",value:function(h,g){if(this._li.computeIntersection(this._offset0.p0,this._offset0.p1,this._offset1.p0,this._offset1.p1),this._li.hasIntersection())this._segList.addPt(this._li.getIntersection(0));else if(this._hasNarrowConcaveAngle=!0,this._offset0.p1.distance(this._offset1.p0)<this._distance*x.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR)this._segList.addPt(this._offset0.p1);else{if(this._segList.addPt(this._offset0.p1),this._closingSegLengthFactor>0){var E=new xe((this._closingSegLengthFactor*this._offset0.p1.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset0.p1.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(E);var O=new xe((this._closingSegLengthFactor*this._offset1.p0.x+this._s1.x)/(this._closingSegLengthFactor+1),(this._closingSegLengthFactor*this._offset1.p0.y+this._s1.y)/(this._closingSegLengthFactor+1));this._segList.addPt(O)}else this._segList.addPt(this._s1);this._segList.addPt(this._offset1.p0)}}},{key:"createCircle",value:function(h){var g=new xe(h.x+this._distance,h.y);this._segList.addPt(g),this.addDirectedFillet(h,0,2*Math.PI,-1,this._distance),this._segList.closeRing()}},{key:"addBevelJoin",value:function(h,g){this._segList.addPt(h.p1),this._segList.addPt(g.p0)}},{key:"init",value:function(h){this._distance=h,this._maxCurveSegmentError=h*(1-Math.cos(this._filletAngleQuantum/2)),this._segList=new _c,this._segList.setPrecisionModel(this._precisionModel),this._segList.setMinimumVertexDistance(h*x.CURVE_VERTEX_SNAP_DISTANCE_FACTOR)}},{key:"addCollinear",value:function(h){this._li.computeIntersection(this._s0,this._s1,this._s1,this._s2),this._li.getIntersectionNum()>=2&&(this._bufParams.getJoinStyle()===te.JOIN_BEVEL||this._bufParams.getJoinStyle()===te.JOIN_MITRE?(h&&this._segList.addPt(this._offset0.p1),this._segList.addPt(this._offset1.p0)):this.addCornerFillet(this._s1,this._offset0.p1,this._offset1.p0,Tt.CLOCKWISE,this._distance))}},{key:"closeRing",value:function(){this._segList.closeRing()}},{key:"hasNarrowConcaveAngle",value:function(){return this._hasNarrowConcaveAngle}}],[{key:"constructor_",value:function(){this._maxCurveSegmentError=0,this._filletAngleQuantum=null,this._closingSegLengthFactor=1,this._segList=null,this._distance=0,this._precisionModel=null,this._bufParams=null,this._li=null,this._s0=null,this._s1=null,this._s2=null,this._seg0=new zn,this._seg1=new zn,this._offset0=new zn,this._offset1=new zn,this._side=0,this._hasNarrowConcaveAngle=!1;var h=arguments[0],g=arguments[1],E=arguments[2];this._precisionModel=h,this._bufParams=g,this._li=new Ni,this._filletAngleQuantum=Math.PI/2/g.getQuadrantSegments(),g.getQuadrantSegments()>=8&&g.getJoinStyle()===te.JOIN_ROUND&&(this._closingSegLengthFactor=x.MAX_CLOSING_SEG_LEN_FACTOR),this.init(E)}}])})();Oo.OFFSET_SEGMENT_SEPARATION_FACTOR=.001,Oo.INSIDE_TURN_VERTEX_SNAP_DISTANCE_FACTOR=.001,Oo.CURVE_VERTEX_SNAP_DISTANCE_FACTOR=1e-6,Oo.MAX_CLOSING_SEG_LEN_FACTOR=80;var Kf=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"getOffsetCurve",value:function(h,g){if(this._distance=g,g===0)return null;var E=g<0,O=Math.abs(g),G=this.getSegGen(O);h.length<=1?this.computePointCurve(h[0],G):this.computeOffsetCurve(h,E,G);var Y=G.getCoordinates();return E&&bn.reverse(Y),Y}},{key:"computeSingleSidedBufferCurve",value:function(h,g,E){var O=this.simplifyTolerance(this._distance);if(g){E.addSegments(h,!0);var G=ki.simplify(h,-O),Y=G.length-1;E.initSideSegments(G[Y],G[Y-1],rt.LEFT),E.addFirstSegment();for(var $=Y-2;$>=0;$--)E.addNextSegment(G[$],!0)}else{E.addSegments(h,!1);var ne=ki.simplify(h,O),he=ne.length-1;E.initSideSegments(ne[0],ne[1],rt.LEFT),E.addFirstSegment();for(var Se=2;Se<=he;Se++)E.addNextSegment(ne[Se],!0)}E.addLastSegment(),E.closeRing()}},{key:"computeRingBufferCurve",value:function(h,g,E){var O=this.simplifyTolerance(this._distance);g===rt.RIGHT&&(O=-O);var G=ki.simplify(h,O),Y=G.length-1;E.initSideSegments(G[Y-1],G[0],g);for(var $=1;$<=Y;$++){var ne=$!==1;E.addNextSegment(G[$],ne)}E.closeRing()}},{key:"computeLineBufferCurve",value:function(h,g){var E=this.simplifyTolerance(this._distance),O=ki.simplify(h,E),G=O.length-1;g.initSideSegments(O[0],O[1],rt.LEFT);for(var Y=2;Y<=G;Y++)g.addNextSegment(O[Y],!0);g.addLastSegment(),g.addLineEndCap(O[G-1],O[G]);var $=ki.simplify(h,-E),ne=$.length-1;g.initSideSegments($[ne],$[ne-1],rt.LEFT);for(var he=ne-2;he>=0;he--)g.addNextSegment($[he],!0);g.addLastSegment(),g.addLineEndCap($[1],$[0]),g.closeRing()}},{key:"computePointCurve",value:function(h,g){switch(this._bufParams.getEndCapStyle()){case te.CAP_ROUND:g.createCircle(h);break;case te.CAP_SQUARE:g.createSquare(h)}}},{key:"getLineCurve",value:function(h,g){if(this._distance=g,this.isLineOffsetEmpty(g))return null;var E=Math.abs(g),O=this.getSegGen(E);if(h.length<=1)this.computePointCurve(h[0],O);else if(this._bufParams.isSingleSided()){var G=g<0;this.computeSingleSidedBufferCurve(h,G,O)}else this.computeLineBufferCurve(h,O);return O.getCoordinates()}},{key:"getBufferParameters",value:function(){return this._bufParams}},{key:"simplifyTolerance",value:function(h){return h*this._bufParams.getSimplifyFactor()}},{key:"getRingCurve",value:function(h,g,E){if(this._distance=E,h.length<=2)return this.getLineCurve(h,E);if(E===0)return x.copyCoordinates(h);var O=this.getSegGen(E);return this.computeRingBufferCurve(h,g,O),O.getCoordinates()}},{key:"computeOffsetCurve",value:function(h,g,E){var O=this.simplifyTolerance(this._distance);if(g){var G=ki.simplify(h,-O),Y=G.length-1;E.initSideSegments(G[Y],G[Y-1],rt.LEFT),E.addFirstSegment();for(var $=Y-2;$>=0;$--)E.addNextSegment(G[$],!0)}else{var ne=ki.simplify(h,O),he=ne.length-1;E.initSideSegments(ne[0],ne[1],rt.LEFT),E.addFirstSegment();for(var Se=2;Se<=he;Se++)E.addNextSegment(ne[Se],!0)}E.addLastSegment()}},{key:"isLineOffsetEmpty",value:function(h){return h===0||h<0&&!this._bufParams.isSingleSided()}},{key:"getSegGen",value:function(h){return new Oo(this._precisionModel,this._bufParams,h)}}],[{key:"constructor_",value:function(){this._distance=0,this._precisionModel=null,this._bufParams=null;var h=arguments[0],g=arguments[1];this._precisionModel=h,this._bufParams=g}},{key:"copyCoordinates",value:function(h){for(var g=new Array(h.length).fill(null),E=0;E<g.length;E++)g[E]=new xe(h[E]);return g}}])})(),gl=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"findStabbedSegments",value:function(){if(arguments.length===1){for(var x=arguments[0],h=new bt,g=this._subgraphs.iterator();g.hasNext();){var E=g.next(),O=E.getEnvelope();x.y<O.getMinY()||x.y>O.getMaxY()||this.findStabbedSegments(x,E.getDirectedEdges(),h)}return h}if(arguments.length===3){if(vt(arguments[2],Jt)&&arguments[0]instanceof xe&&arguments[1]instanceof gc){for(var G=arguments[0],Y=arguments[1],$=arguments[2],ne=Y.getEdge().getCoordinates(),he=0;he<ne.length-1;he++)if(this._seg.p0=ne[he],this._seg.p1=ne[he+1],this._seg.p0.y>this._seg.p1.y&&this._seg.reverse(),!(Math.max(this._seg.p0.x,this._seg.p1.x)<G.x||this._seg.isHorizontal()||G.y<this._seg.p0.y||G.y>this._seg.p1.y||Tt.index(this._seg.p0,this._seg.p1,G)===Tt.RIGHT)){var Se=Y.getDepth(rt.LEFT);this._seg.p0.equals(ne[he])||(Se=Y.getDepth(rt.RIGHT));var je=new $s(this._seg,Se);$.add(je)}}else if(vt(arguments[2],Jt)&&arguments[0]instanceof xe&&vt(arguments[1],Jt))for(var at=arguments[0],ct=arguments[2],mt=arguments[1].iterator();mt.hasNext();){var Ct=mt.next();Ct.isForward()&&this.findStabbedSegments(at,Ct,ct)}}}},{key:"getDepth",value:function(x){var h=this.findStabbedSegments(x);return h.size()===0?0:Cu.min(h)._leftDepth}}],[{key:"constructor_",value:function(){this._subgraphs=null,this._seg=new zn;var x=arguments[0];this._subgraphs=x}}])})(),$s=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"compareTo",value:function(x){var h=x;if(this._upwardSeg.minX()>=h._upwardSeg.maxX())return 1;if(this._upwardSeg.maxX()<=h._upwardSeg.minX())return-1;var g=this._upwardSeg.orientationIndex(h._upwardSeg);return g!==0||(g=-1*h._upwardSeg.orientationIndex(this._upwardSeg))!==0?g:this._upwardSeg.compareTo(h._upwardSeg)}},{key:"compareX",value:function(x,h){var g=x.p0.compareTo(h.p0);return g!==0?g:x.p1.compareTo(h.p1)}},{key:"toString",value:function(){return this._upwardSeg.toString()}},{key:"interfaces_",get:function(){return[pe]}}],[{key:"constructor_",value:function(){this._upwardSeg=null,this._leftDepth=null;var x=arguments[0],h=arguments[1];this._upwardSeg=new zn(x),this._leftDepth=h}}])})();gl.DepthSegment=$s;var Wu=(function(x){function h(){var g;return m(this,h),g=d(this,h),h.constructor_.apply(g,arguments),g}return k(h,x),C(h,null,[{key:"constructor_",value:function(){ue.constructor_.call(this,"Projective point not representable on the Cartesian plane.")}}])})(ue),La=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"getY",value:function(){var h=this.y/this.w;if(Ve.isNaN(h)||Ve.isInfinite(h))throw new Wu;return h}},{key:"getX",value:function(){var h=this.x/this.w;if(Ve.isNaN(h)||Ve.isInfinite(h))throw new Wu;return h}},{key:"getCoordinate",value:function(){var h=new xe;return h.x=this.getX(),h.y=this.getY(),h}}],[{key:"constructor_",value:function(){if(this.x=null,this.y=null,this.w=null,arguments.length===0)this.x=0,this.y=0,this.w=1;else if(arguments.length===1){var h=arguments[0];this.x=h.x,this.y=h.y,this.w=1}else if(arguments.length===2){if(typeof arguments[0]=="number"&&typeof arguments[1]=="number"){var g=arguments[0],E=arguments[1];this.x=g,this.y=E,this.w=1}else if(arguments[0]instanceof x&&arguments[1]instanceof x){var O=arguments[0],G=arguments[1];this.x=O.y*G.w-G.y*O.w,this.y=G.x*O.w-O.x*G.w,this.w=O.x*G.y-G.x*O.y}else if(arguments[0]instanceof xe&&arguments[1]instanceof xe){var Y=arguments[0],$=arguments[1];this.x=Y.y-$.y,this.y=$.x-Y.x,this.w=Y.x*$.y-$.x*Y.y}}else if(arguments.length===3){var ne=arguments[0],he=arguments[1],Se=arguments[2];this.x=ne,this.y=he,this.w=Se}else if(arguments.length===4){var je=arguments[0],at=arguments[1],ct=arguments[2],mt=arguments[3],Ct=je.y-at.y,Pt=at.x-je.x,rn=je.x*at.y-at.x*je.y,un=ct.y-mt.y,Wn=mt.x-ct.x,xn=ct.x*mt.y-mt.x*ct.y;this.x=Pt*xn-Wn*rn,this.y=un*rn-Ct*xn,this.w=Ct*Wn-un*Pt}}}])})(),ed=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"area",value:function(){return x.area(this.p0,this.p1,this.p2)}},{key:"signedArea",value:function(){return x.signedArea(this.p0,this.p1,this.p2)}},{key:"interpolateZ",value:function(h){if(h===null)throw new se("Supplied point is null.");return x.interpolateZ(h,this.p0,this.p1,this.p2)}},{key:"longestSideLength",value:function(){return x.longestSideLength(this.p0,this.p1,this.p2)}},{key:"isAcute",value:function(){return x.isAcute(this.p0,this.p1,this.p2)}},{key:"circumcentre",value:function(){return x.circumcentre(this.p0,this.p1,this.p2)}},{key:"area3D",value:function(){return x.area3D(this.p0,this.p1,this.p2)}},{key:"centroid",value:function(){return x.centroid(this.p0,this.p1,this.p2)}},{key:"inCentre",value:function(){return x.inCentre(this.p0,this.p1,this.p2)}}],[{key:"constructor_",value:function(){this.p0=null,this.p1=null,this.p2=null;var h=arguments[0],g=arguments[1],E=arguments[2];this.p0=h,this.p1=g,this.p2=E}},{key:"area",value:function(h,g,E){return Math.abs(((E.x-h.x)*(g.y-h.y)-(g.x-h.x)*(E.y-h.y))/2)}},{key:"signedArea",value:function(h,g,E){return((E.x-h.x)*(g.y-h.y)-(g.x-h.x)*(E.y-h.y))/2}},{key:"det",value:function(h,g,E,O){return h*O-g*E}},{key:"interpolateZ",value:function(h,g,E,O){var G=g.x,Y=g.y,$=E.x-G,ne=O.x-G,he=E.y-Y,Se=O.y-Y,je=$*Se-ne*he,at=h.x-G,ct=h.y-Y,mt=(Se*at-ne*ct)/je,Ct=(-he*at+$*ct)/je;return g.getZ()+mt*(E.getZ()-g.getZ())+Ct*(O.getZ()-g.getZ())}},{key:"longestSideLength",value:function(h,g,E){var O=h.distance(g),G=g.distance(E),Y=E.distance(h),$=O;return G>$&&($=G),Y>$&&($=Y),$}},{key:"circumcentreDD",value:function(h,g,E){var O=xt.valueOf(h.x).subtract(E.x),G=xt.valueOf(h.y).subtract(E.y),Y=xt.valueOf(g.x).subtract(E.x),$=xt.valueOf(g.y).subtract(E.y),ne=xt.determinant(O,G,Y,$).multiply(2),he=O.sqr().add(G.sqr()),Se=Y.sqr().add($.sqr()),je=xt.determinant(G,he,$,Se),at=xt.determinant(O,he,Y,Se),ct=xt.valueOf(E.x).subtract(je.divide(ne)).doubleValue(),mt=xt.valueOf(E.y).add(at.divide(ne)).doubleValue();return new xe(ct,mt)}},{key:"isAcute",value:function(h,g,E){return!!Hr.isAcute(h,g,E)&&!!Hr.isAcute(g,E,h)&&!!Hr.isAcute(E,h,g)}},{key:"circumcentre",value:function(h,g,E){var O=E.x,G=E.y,Y=h.x-O,$=h.y-G,ne=g.x-O,he=g.y-G,Se=2*x.det(Y,$,ne,he),je=x.det($,Y*Y+$*$,he,ne*ne+he*he),at=x.det(Y,Y*Y+$*$,ne,ne*ne+he*he);return new xe(O-je/Se,G+at/Se)}},{key:"perpendicularBisector",value:function(h,g){var E=g.x-h.x,O=g.y-h.y,G=new La(h.x+E/2,h.y+O/2,1),Y=new La(h.x-O+E/2,h.y+E+O/2,1);return new La(G,Y)}},{key:"angleBisector",value:function(h,g,E){var O=g.distance(h),G=O/(O+g.distance(E)),Y=E.x-h.x,$=E.y-h.y;return new xe(h.x+G*Y,h.y+G*$)}},{key:"area3D",value:function(h,g,E){var O=g.x-h.x,G=g.y-h.y,Y=g.getZ()-h.getZ(),$=E.x-h.x,ne=E.y-h.y,he=E.getZ()-h.getZ(),Se=G*he-Y*ne,je=Y*$-O*he,at=O*ne-G*$,ct=Se*Se+je*je+at*at,mt=Math.sqrt(ct)/2;return mt}},{key:"centroid",value:function(h,g,E){var O=(h.x+g.x+E.x)/3,G=(h.y+g.y+E.y)/3;return new xe(O,G)}},{key:"inCentre",value:function(h,g,E){var O=g.distance(E),G=h.distance(E),Y=h.distance(g),$=O+G+Y,ne=(O*h.x+G*g.x+Y*E.x)/$,he=(O*h.y+G*g.y+Y*E.y)/$;return new xe(ne,he)}}])})(),yl=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"addRingSide",value:function(x,h,g,E,O){if(h===0&&x.length<Wa.MINIMUM_VALID_SIZE)return null;var G=E,Y=O;x.length>=Wa.MINIMUM_VALID_SIZE&&Tt.isCCW(x)&&(G=O,Y=E,g=rt.opposite(g));var $=this._curveBuilder.getRingCurve(x,g,h);this.addCurve($,G,Y)}},{key:"addRingBothSides",value:function(x,h){this.addRingSide(x,h,rt.LEFT,oe.EXTERIOR,oe.INTERIOR),this.addRingSide(x,h,rt.RIGHT,oe.INTERIOR,oe.EXTERIOR)}},{key:"addPoint",value:function(x){if(this._distance<=0)return null;var h=x.getCoordinates(),g=this._curveBuilder.getLineCurve(h,this._distance);this.addCurve(g,oe.EXTERIOR,oe.INTERIOR)}},{key:"addPolygon",value:function(x){var h=this._distance,g=rt.LEFT;this._distance<0&&(h=-this._distance,g=rt.RIGHT);var E=x.getExteriorRing(),O=bn.removeRepeatedPoints(E.getCoordinates());if(this._distance<0&&this.isErodedCompletely(E,this._distance)||this._distance<=0&&O.length<3)return null;this.addRingSide(O,h,g,oe.EXTERIOR,oe.INTERIOR);for(var G=0;G<x.getNumInteriorRing();G++){var Y=x.getInteriorRingN(G),$=bn.removeRepeatedPoints(Y.getCoordinates());this._distance>0&&this.isErodedCompletely(Y,-this._distance)||this.addRingSide($,h,rt.opposite(g),oe.INTERIOR,oe.EXTERIOR)}}},{key:"isTriangleErodedCompletely",value:function(x,h){var g=new ed(x[0],x[1],x[2]),E=g.inCentre();return Nn.pointToSegment(E,g.p0,g.p1)<Math.abs(h)}},{key:"addLineString",value:function(x){if(this._curveBuilder.isLineOffsetEmpty(this._distance))return null;var h=bn.removeRepeatedPoints(x.getCoordinates());if(bn.isRing(h)&&!this._curveBuilder.getBufferParameters().isSingleSided())this.addRingBothSides(h,this._distance);else{var g=this._curveBuilder.getLineCurve(h,this._distance);this.addCurve(g,oe.EXTERIOR,oe.INTERIOR)}}},{key:"addCurve",value:function(x,h,g){if(x===null||x.length<2)return null;var E=new za(x,new br(0,oe.BOUNDARY,h,g));this._curveList.add(E)}},{key:"getCurves",value:function(){return this.add(this._inputGeom),this._curveList}},{key:"add",value:function(x){if(x.isEmpty())return null;if(x instanceof li)this.addPolygon(x);else if(x instanceof yt)this.addLineString(x);else if(x instanceof tn)this.addPoint(x);else if(x instanceof Ta)this.addCollection(x);else if(x instanceof Zu)this.addCollection(x);else if(x instanceof nu)this.addCollection(x);else{if(!(x instanceof yn))throw new kt(x.getGeometryType());this.addCollection(x)}}},{key:"isErodedCompletely",value:function(x,h){var g=x.getCoordinates();if(g.length<4)return h<0;if(g.length===4)return this.isTriangleErodedCompletely(g,h);var E=x.getEnvelopeInternal(),O=Math.min(E.getHeight(),E.getWidth());return h<0&&2*Math.abs(h)>O}},{key:"addCollection",value:function(x){for(var h=0;h<x.getNumGeometries();h++){var g=x.getGeometryN(h);this.add(g)}}}],[{key:"constructor_",value:function(){this._inputGeom=null,this._distance=null,this._curveBuilder=null,this._curveList=new bt;var x=arguments[0],h=arguments[1],g=arguments[2];this._inputGeom=x,this._distance=h,this._curveBuilder=g}}])})(),Qu=(function(){return C((function x(){m(this,x)}),[{key:"locate",value:function(x){}}])})(),Ec=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"next",value:function(){if(this._atStart)return this._atStart=!1,x.isAtomic(this._parent)&&this._index++,this._parent;if(this._subcollectionIterator!==null){if(this._subcollectionIterator.hasNext())return this._subcollectionIterator.next();this._subcollectionIterator=null}if(this._index>=this._max)throw new Rt;var h=this._parent.getGeometryN(this._index++);return h instanceof yn?(this._subcollectionIterator=new x(h),this._subcollectionIterator.next()):h}},{key:"remove",value:function(){throw new kt(this.getClass().getName())}},{key:"hasNext",value:function(){if(this._atStart)return!0;if(this._subcollectionIterator!==null){if(this._subcollectionIterator.hasNext())return!0;this._subcollectionIterator=null}return!(this._index>=this._max)}},{key:"interfaces_",get:function(){return[Mi]}}],[{key:"constructor_",value:function(){this._parent=null,this._atStart=null,this._max=null,this._index=null,this._subcollectionIterator=null;var h=arguments[0];this._parent=h,this._atStart=!0,this._index=0,this._max=h.getNumGeometries()}},{key:"isAtomic",value:function(h){return!(h instanceof yn)}}])})(),td=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"locate",value:function(h){return x.locate(h,this._geom)}},{key:"interfaces_",get:function(){return[Qu]}}],[{key:"constructor_",value:function(){this._geom=null;var h=arguments[0];this._geom=h}},{key:"locatePointInPolygon",value:function(h,g){if(g.isEmpty())return oe.EXTERIOR;var E=g.getExteriorRing(),O=x.locatePointInRing(h,E);if(O!==oe.INTERIOR)return O;for(var G=0;G<g.getNumInteriorRing();G++){var Y=g.getInteriorRingN(G),$=x.locatePointInRing(h,Y);if($===oe.BOUNDARY)return oe.BOUNDARY;if($===oe.INTERIOR)return oe.EXTERIOR}return oe.INTERIOR}},{key:"locatePointInRing",value:function(h,g){return g.getEnvelopeInternal().intersects(h)?Pr.locateInRing(h,g.getCoordinates()):oe.EXTERIOR}},{key:"containsPointInPolygon",value:function(h,g){return oe.EXTERIOR!==x.locatePointInPolygon(h,g)}},{key:"locateInGeometry",value:function(h,g){if(g instanceof li)return x.locatePointInPolygon(h,g);if(g instanceof yn)for(var E=new Ec(g);E.hasNext();){var O=E.next();if(O!==g){var G=x.locateInGeometry(h,O);if(G!==oe.EXTERIOR)return G}}return oe.EXTERIOR}},{key:"isContained",value:function(h,g){return oe.EXTERIOR!==x.locate(h,g)}},{key:"locate",value:function(h,g){return g.isEmpty()?oe.EXTERIOR:g.getEnvelopeInternal().intersects(h)?x.locateInGeometry(h,g):oe.EXTERIOR}}])})(),Js=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"getNextCW",value:function(x){this.getEdges();var h=this._edgeList.indexOf(x),g=h-1;return h===0&&(g=this._edgeList.size()-1),this._edgeList.get(g)}},{key:"propagateSideLabels",value:function(x){for(var h=oe.NONE,g=this.iterator();g.hasNext();){var E=g.next().getLabel();E.isArea(x)&&E.getLocation(x,rt.LEFT)!==oe.NONE&&(h=E.getLocation(x,rt.LEFT))}if(h===oe.NONE)return null;for(var O=h,G=this.iterator();G.hasNext();){var Y=G.next(),$=Y.getLabel();if($.getLocation(x,rt.ON)===oe.NONE&&$.setLocation(x,rt.ON,O),$.isArea(x)){var ne=$.getLocation(x,rt.LEFT),he=$.getLocation(x,rt.RIGHT);if(he!==oe.NONE){if(he!==O)throw new ra("side location conflict",Y.getCoordinate());ne===oe.NONE&&Pe.shouldNeverReachHere("found single null side (at "+Y.getCoordinate()+")"),O=ne}else Pe.isTrue($.getLocation(x,rt.LEFT)===oe.NONE,"found single null side"),$.setLocation(x,rt.RIGHT,O),$.setLocation(x,rt.LEFT,O)}}}},{key:"getCoordinate",value:function(){var x=this.iterator();return x.hasNext()?x.next().getCoordinate():null}},{key:"print",value:function(x){ua.out.println("EdgeEndStar: "+this.getCoordinate());for(var h=this.iterator();h.hasNext();)h.next().print(x)}},{key:"isAreaLabelsConsistent",value:function(x){return this.computeEdgeEndLabels(x.getBoundaryNodeRule()),this.checkAreaLabelsConsistent(0)}},{key:"checkAreaLabelsConsistent",value:function(x){var h=this.getEdges();if(h.size()<=0)return!0;var g=h.size()-1,E=h.get(g).getLabel().getLocation(x,rt.LEFT);Pe.isTrue(E!==oe.NONE,"Found unlabelled area edge");for(var O=E,G=this.iterator();G.hasNext();){var Y=G.next().getLabel();Pe.isTrue(Y.isArea(x),"Found non-area edge");var $=Y.getLocation(x,rt.LEFT),ne=Y.getLocation(x,rt.RIGHT);if($===ne||ne!==O)return!1;O=$}return!0}},{key:"findIndex",value:function(x){this.iterator();for(var h=0;h<this._edgeList.size();h++)if(this._edgeList.get(h)===x)return h;return-1}},{key:"iterator",value:function(){return this.getEdges().iterator()}},{key:"getEdges",value:function(){return this._edgeList===null&&(this._edgeList=new bt(this._edgeMap.values())),this._edgeList}},{key:"getLocation",value:function(x,h,g){return this._ptInAreaLocation[x]===oe.NONE&&(this._ptInAreaLocation[x]=td.locate(h,g[x].getGeometry())),this._ptInAreaLocation[x]}},{key:"toString",value:function(){var x=new Ja;x.append("EdgeEndStar: "+this.getCoordinate()),x.append(`
12
+ `);for(var h=this.iterator();h.hasNext();){var g=h.next();x.append(g),x.append(`
13
+ `)}return x.toString()}},{key:"computeEdgeEndLabels",value:function(x){for(var h=this.iterator();h.hasNext();)h.next().computeLabel(x)}},{key:"computeLabelling",value:function(x){this.computeEdgeEndLabels(x[0].getBoundaryNodeRule()),this.propagateSideLabels(0),this.propagateSideLabels(1);for(var h=[!1,!1],g=this.iterator();g.hasNext();)for(var E=g.next().getLabel(),O=0;O<2;O++)E.isLine(O)&&E.getLocation(O)===oe.BOUNDARY&&(h[O]=!0);for(var G=this.iterator();G.hasNext();)for(var Y=G.next(),$=Y.getLabel(),ne=0;ne<2;ne++)if($.isAnyNull(ne)){var he=oe.NONE;if(h[ne])he=oe.EXTERIOR;else{var Se=Y.getCoordinate();he=this.getLocation(ne,Se,x)}$.setAllLocationsIfNull(ne,he)}}},{key:"getDegree",value:function(){return this._edgeMap.size()}},{key:"insertEdgeEnd",value:function(x,h){this._edgeMap.put(x,h),this._edgeList=null}}],[{key:"constructor_",value:function(){this._edgeMap=new Ju,this._edgeList=null,this._ptInAreaLocation=[oe.NONE,oe.NONE]}}])})(),kh=(function(x){function h(){var g;return m(this,h),g=d(this,h),h.constructor_.apply(g,arguments),g}return k(h,x),C(h,[{key:"linkResultDirectedEdges",value:function(){this.getResultAreaEdges();for(var g=null,E=null,O=this._SCANNING_FOR_INCOMING,G=0;G<this._resultAreaEdgeList.size();G++){var Y=this._resultAreaEdgeList.get(G),$=Y.getSym();if(Y.getLabel().isArea())switch(g===null&&Y.isInResult()&&(g=Y),O){case this._SCANNING_FOR_INCOMING:if(!$.isInResult())continue;E=$,O=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if(!Y.isInResult())continue;E.setNext(Y),O=this._SCANNING_FOR_INCOMING}}if(O===this._LINKING_TO_OUTGOING){if(g===null)throw new ra("no outgoing dirEdge found",this.getCoordinate());Pe.isTrue(g.isInResult(),"unable to link last incoming dirEdge"),E.setNext(g)}}},{key:"insert",value:function(g){var E=g;this.insertEdgeEnd(E,E)}},{key:"getRightmostEdge",value:function(){var g=this.getEdges(),E=g.size();if(E<1)return null;var O=g.get(0);if(E===1)return O;var G=g.get(E-1),Y=O.getQuadrant(),$=G.getQuadrant();return wa.isNorthern(Y)&&wa.isNorthern($)?O:wa.isNorthern(Y)||wa.isNorthern($)?O.getDy()!==0?O:G.getDy()!==0?G:(Pe.shouldNeverReachHere("found two horizontal edges incident on node"),null):G}},{key:"print",value:function(g){ua.out.println("DirectedEdgeStar: "+this.getCoordinate());for(var E=this.iterator();E.hasNext();){var O=E.next();g.print("out "),O.print(g),g.println(),g.print("in "),O.getSym().print(g),g.println()}}},{key:"getResultAreaEdges",value:function(){if(this._resultAreaEdgeList!==null)return this._resultAreaEdgeList;this._resultAreaEdgeList=new bt;for(var g=this.iterator();g.hasNext();){var E=g.next();(E.isInResult()||E.getSym().isInResult())&&this._resultAreaEdgeList.add(E)}return this._resultAreaEdgeList}},{key:"updateLabelling",value:function(g){for(var E=this.iterator();E.hasNext();){var O=E.next().getLabel();O.setAllLocationsIfNull(0,g.getLocation(0)),O.setAllLocationsIfNull(1,g.getLocation(1))}}},{key:"linkAllDirectedEdges",value:function(){this.getEdges();for(var g=null,E=null,O=this._edgeList.size()-1;O>=0;O--){var G=this._edgeList.get(O),Y=G.getSym();E===null&&(E=Y),g!==null&&Y.setNext(g),g=G}E.setNext(g)}},{key:"computeDepths",value:function(){if(arguments.length===1){var g=arguments[0],E=this.findIndex(g),O=g.getDepth(rt.LEFT),G=g.getDepth(rt.RIGHT),Y=this.computeDepths(E+1,this._edgeList.size(),O);if(this.computeDepths(0,E,Y)!==G)throw new ra("depth mismatch at "+g.getCoordinate())}else if(arguments.length===3){for(var $=arguments[1],ne=arguments[2],he=arguments[0];he<$;he++){var Se=this._edgeList.get(he);Se.setEdgeDepths(rt.RIGHT,ne),ne=Se.getDepth(rt.LEFT)}return ne}}},{key:"mergeSymLabels",value:function(){for(var g=this.iterator();g.hasNext();){var E=g.next();E.getLabel().merge(E.getSym().getLabel())}}},{key:"linkMinimalDirectedEdges",value:function(g){for(var E=null,O=null,G=this._SCANNING_FOR_INCOMING,Y=this._resultAreaEdgeList.size()-1;Y>=0;Y--){var $=this._resultAreaEdgeList.get(Y),ne=$.getSym();switch(E===null&&$.getEdgeRing()===g&&(E=$),G){case this._SCANNING_FOR_INCOMING:if(ne.getEdgeRing()!==g)continue;O=ne,G=this._LINKING_TO_OUTGOING;break;case this._LINKING_TO_OUTGOING:if($.getEdgeRing()!==g)continue;O.setNextMin($),G=this._SCANNING_FOR_INCOMING}}G===this._LINKING_TO_OUTGOING&&(Pe.isTrue(E!==null,"found null for first outgoing dirEdge"),Pe.isTrue(E.getEdgeRing()===g,"unable to link last incoming dirEdge"),O.setNextMin(E))}},{key:"getOutgoingDegree",value:function(){if(arguments.length===0){for(var g=0,E=this.iterator();E.hasNext();)E.next().isInResult()&&g++;return g}if(arguments.length===1){for(var O=arguments[0],G=0,Y=this.iterator();Y.hasNext();)Y.next().getEdgeRing()===O&&G++;return G}}},{key:"getLabel",value:function(){return this._label}},{key:"findCoveredLineEdges",value:function(){for(var g=oe.NONE,E=this.iterator();E.hasNext();){var O=E.next(),G=O.getSym();if(!O.isLineEdge()){if(O.isInResult()){g=oe.INTERIOR;break}if(G.isInResult()){g=oe.EXTERIOR;break}}}if(g===oe.NONE)return null;for(var Y=g,$=this.iterator();$.hasNext();){var ne=$.next(),he=ne.getSym();ne.isLineEdge()?ne.getEdge().setCovered(Y===oe.INTERIOR):(ne.isInResult()&&(Y=oe.EXTERIOR),he.isInResult()&&(Y=oe.INTERIOR))}}},{key:"computeLabelling",value:function(g){H(h,"computeLabelling",this,1).call(this,g),this._label=new br(oe.NONE);for(var E=this.iterator();E.hasNext();)for(var O=E.next().getEdge().getLabel(),G=0;G<2;G++){var Y=O.getLocation(G);Y!==oe.INTERIOR&&Y!==oe.BOUNDARY||this._label.setLocation(G,oe.INTERIOR)}}}],[{key:"constructor_",value:function(){this._resultAreaEdgeList=null,this._label=null,this._SCANNING_FOR_INCOMING=1,this._LINKING_TO_OUTGOING=2}}])})(Js),Om=(function(x){function h(){return m(this,h),d(this,h)}return k(h,x),C(h,[{key:"createNode",value:function(g){return new Ro(g,new kh)}}])})(Na),xc=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"compareTo",value:function(h){var g=h;return x.compareOriented(this._pts,this._orientation,g._pts,g._orientation)}},{key:"interfaces_",get:function(){return[pe]}}],[{key:"constructor_",value:function(){this._pts=null,this._orientation=null;var h=arguments[0];this._pts=h,this._orientation=x.orientation(h)}},{key:"orientation",value:function(h){return bn.increasingDirection(h)===1}},{key:"compareOriented",value:function(h,g,E,O){for(var G=g?1:-1,Y=O?1:-1,$=g?h.length:-1,ne=O?E.length:-1,he=g?0:h.length-1,Se=O?0:E.length-1;;){var je=h[he].compareTo(E[Se]);if(je!==0)return je;var at=(he+=G)===$,ct=(Se+=Y)===ne;if(at&&!ct)return-1;if(!at&&ct)return 1;if(at&&ct)return 0}}}])})(),uu=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"print",value:function(x){x.print("MULTILINESTRING ( ");for(var h=0;h<this._edges.size();h++){var g=this._edges.get(h);h>0&&x.print(","),x.print("(");for(var E=g.getCoordinates(),O=0;O<E.length;O++)O>0&&x.print(","),x.print(E[O].x+" "+E[O].y);x.println(")")}x.print(") ")}},{key:"addAll",value:function(x){for(var h=x.iterator();h.hasNext();)this.add(h.next())}},{key:"findEdgeIndex",value:function(x){for(var h=0;h<this._edges.size();h++)if(this._edges.get(h).equals(x))return h;return-1}},{key:"iterator",value:function(){return this._edges.iterator()}},{key:"getEdges",value:function(){return this._edges}},{key:"get",value:function(x){return this._edges.get(x)}},{key:"findEqualEdge",value:function(x){var h=new xc(x.getCoordinates());return this._ocaMap.get(h)}},{key:"add",value:function(x){this._edges.add(x);var h=new xc(x.getCoordinates());this._ocaMap.put(h,x)}}],[{key:"constructor_",value:function(){this._edges=new bt,this._ocaMap=new Ju}}])})(),Sc=(function(){return C((function x(){m(this,x)}),[{key:"processIntersections",value:function(x,h,g,E){}},{key:"isDone",value:function(){}}])})(),Ws=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"isTrivialIntersection",value:function(h,g,E,O){if(h===E&&this._li.getIntersectionNum()===1){if(x.isAdjacentSegments(g,O))return!0;if(h.isClosed()){var G=h.size()-1;if(g===0&&O===G||O===0&&g===G)return!0}}return!1}},{key:"getProperIntersectionPoint",value:function(){return this._properIntersectionPoint}},{key:"hasProperInteriorIntersection",value:function(){return this._hasProperInterior}},{key:"getLineIntersector",value:function(){return this._li}},{key:"hasProperIntersection",value:function(){return this._hasProper}},{key:"processIntersections",value:function(h,g,E,O){if(h===E&&g===O)return null;this.numTests++;var G=h.getCoordinates()[g],Y=h.getCoordinates()[g+1],$=E.getCoordinates()[O],ne=E.getCoordinates()[O+1];this._li.computeIntersection(G,Y,$,ne),this._li.hasIntersection()&&(this.numIntersections++,this._li.isInteriorIntersection()&&(this.numInteriorIntersections++,this._hasInterior=!0),this.isTrivialIntersection(h,g,E,O)||(this._hasIntersection=!0,h.addIntersections(this._li,g,0),E.addIntersections(this._li,O,1),this._li.isProper()&&(this.numProperIntersections++,this._hasProper=!0,this._hasProperInterior=!0)))}},{key:"hasIntersection",value:function(){return this._hasIntersection}},{key:"isDone",value:function(){return!1}},{key:"hasInteriorIntersection",value:function(){return this._hasInterior}},{key:"interfaces_",get:function(){return[Sc]}}],[{key:"constructor_",value:function(){this._hasIntersection=!1,this._hasProper=!1,this._hasProperInterior=!1,this._hasInterior=!1,this._properIntersectionPoint=null,this._li=null,this._isSelfIntersection=null,this.numIntersections=0,this.numInteriorIntersections=0,this.numProperIntersections=0,this.numTests=0;var h=arguments[0];this._li=h}},{key:"isAdjacentSegments",value:function(h,g){return Math.abs(h-g)===1}}])})(),Ku=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"getSegmentIndex",value:function(){return this.segmentIndex}},{key:"getCoordinate",value:function(){return this.coord}},{key:"print",value:function(x){x.print(this.coord),x.print(" seg # = "+this.segmentIndex),x.println(" dist = "+this.dist)}},{key:"compareTo",value:function(x){var h=x;return this.compare(h.segmentIndex,h.dist)}},{key:"isEndPoint",value:function(x){return this.segmentIndex===0&&this.dist===0||this.segmentIndex===x}},{key:"toString",value:function(){return this.coord+" seg # = "+this.segmentIndex+" dist = "+this.dist}},{key:"getDistance",value:function(){return this.dist}},{key:"compare",value:function(x,h){return this.segmentIndex<x?-1:this.segmentIndex>x?1:this.dist<h?-1:this.dist>h?1:0}},{key:"interfaces_",get:function(){return[pe]}}],[{key:"constructor_",value:function(){this.coord=null,this.segmentIndex=null,this.dist=null;var x=arguments[0],h=arguments[1],g=arguments[2];this.coord=new xe(x),this.segmentIndex=h,this.dist=g}}])})(),Qs=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"print",value:function(x){x.println("Intersections:");for(var h=this.iterator();h.hasNext();)h.next().print(x)}},{key:"iterator",value:function(){return this._nodeMap.values().iterator()}},{key:"addSplitEdges",value:function(x){this.addEndpoints();for(var h=this.iterator(),g=h.next();h.hasNext();){var E=h.next(),O=this.createSplitEdge(g,E);x.add(O),g=E}}},{key:"addEndpoints",value:function(){var x=this.edge.pts.length-1;this.add(this.edge.pts[0],0,0),this.add(this.edge.pts[x],x,0)}},{key:"createSplitEdge",value:function(x,h){var g=h.segmentIndex-x.segmentIndex+2,E=this.edge.pts[h.segmentIndex],O=h.dist>0||!h.coord.equals2D(E);O||g--;var G=new Array(g).fill(null),Y=0;G[Y++]=new xe(x.coord);for(var $=x.segmentIndex+1;$<=h.segmentIndex;$++)G[Y++]=this.edge.pts[$];return O&&(G[Y]=h.coord),new Rc(G,new br(this.edge._label))}},{key:"add",value:function(x,h,g){var E=new Ku(x,h,g),O=this._nodeMap.get(E);return O!==null?O:(this._nodeMap.put(E,E),E)}},{key:"isIntersection",value:function(x){for(var h=this.iterator();h.hasNext();)if(h.next().coord.equals(x))return!0;return!1}}],[{key:"constructor_",value:function(){this._nodeMap=new Ju,this.edge=null;var x=arguments[0];this.edge=x}}])})(),wo=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"isIntersects",value:function(){return!this.isDisjoint()}},{key:"isCovers",value:function(){return(x.isTrue(this._matrix[oe.INTERIOR][oe.INTERIOR])||x.isTrue(this._matrix[oe.INTERIOR][oe.BOUNDARY])||x.isTrue(this._matrix[oe.BOUNDARY][oe.INTERIOR])||x.isTrue(this._matrix[oe.BOUNDARY][oe.BOUNDARY]))&&this._matrix[oe.EXTERIOR][oe.INTERIOR]===fe.FALSE&&this._matrix[oe.EXTERIOR][oe.BOUNDARY]===fe.FALSE}},{key:"isCoveredBy",value:function(){return(x.isTrue(this._matrix[oe.INTERIOR][oe.INTERIOR])||x.isTrue(this._matrix[oe.INTERIOR][oe.BOUNDARY])||x.isTrue(this._matrix[oe.BOUNDARY][oe.INTERIOR])||x.isTrue(this._matrix[oe.BOUNDARY][oe.BOUNDARY]))&&this._matrix[oe.INTERIOR][oe.EXTERIOR]===fe.FALSE&&this._matrix[oe.BOUNDARY][oe.EXTERIOR]===fe.FALSE}},{key:"set",value:function(){if(arguments.length===1)for(var h=arguments[0],g=0;g<h.length;g++){var E=Math.trunc(g/3),O=g%3;this._matrix[E][O]=fe.toDimensionValue(h.charAt(g))}else if(arguments.length===3){var G=arguments[0],Y=arguments[1],$=arguments[2];this._matrix[G][Y]=$}}},{key:"isContains",value:function(){return x.isTrue(this._matrix[oe.INTERIOR][oe.INTERIOR])&&this._matrix[oe.EXTERIOR][oe.INTERIOR]===fe.FALSE&&this._matrix[oe.EXTERIOR][oe.BOUNDARY]===fe.FALSE}},{key:"setAtLeast",value:function(){if(arguments.length===1)for(var h=arguments[0],g=0;g<h.length;g++){var E=Math.trunc(g/3),O=g%3;this.setAtLeast(E,O,fe.toDimensionValue(h.charAt(g)))}else if(arguments.length===3){var G=arguments[0],Y=arguments[1],$=arguments[2];this._matrix[G][Y]<$&&(this._matrix[G][Y]=$)}}},{key:"setAtLeastIfValid",value:function(h,g,E){h>=0&&g>=0&&this.setAtLeast(h,g,E)}},{key:"isWithin",value:function(){return x.isTrue(this._matrix[oe.INTERIOR][oe.INTERIOR])&&this._matrix[oe.INTERIOR][oe.EXTERIOR]===fe.FALSE&&this._matrix[oe.BOUNDARY][oe.EXTERIOR]===fe.FALSE}},{key:"isTouches",value:function(h,g){return h>g?this.isTouches(g,h):(h===fe.A&&g===fe.A||h===fe.L&&g===fe.L||h===fe.L&&g===fe.A||h===fe.P&&g===fe.A||h===fe.P&&g===fe.L)&&this._matrix[oe.INTERIOR][oe.INTERIOR]===fe.FALSE&&(x.isTrue(this._matrix[oe.INTERIOR][oe.BOUNDARY])||x.isTrue(this._matrix[oe.BOUNDARY][oe.INTERIOR])||x.isTrue(this._matrix[oe.BOUNDARY][oe.BOUNDARY]))}},{key:"isOverlaps",value:function(h,g){return h===fe.P&&g===fe.P||h===fe.A&&g===fe.A?x.isTrue(this._matrix[oe.INTERIOR][oe.INTERIOR])&&x.isTrue(this._matrix[oe.INTERIOR][oe.EXTERIOR])&&x.isTrue(this._matrix[oe.EXTERIOR][oe.INTERIOR]):h===fe.L&&g===fe.L&&this._matrix[oe.INTERIOR][oe.INTERIOR]===1&&x.isTrue(this._matrix[oe.INTERIOR][oe.EXTERIOR])&&x.isTrue(this._matrix[oe.EXTERIOR][oe.INTERIOR])}},{key:"isEquals",value:function(h,g){return h===g&&x.isTrue(this._matrix[oe.INTERIOR][oe.INTERIOR])&&this._matrix[oe.INTERIOR][oe.EXTERIOR]===fe.FALSE&&this._matrix[oe.BOUNDARY][oe.EXTERIOR]===fe.FALSE&&this._matrix[oe.EXTERIOR][oe.INTERIOR]===fe.FALSE&&this._matrix[oe.EXTERIOR][oe.BOUNDARY]===fe.FALSE}},{key:"toString",value:function(){for(var h=new Gr("123456789"),g=0;g<3;g++)for(var E=0;E<3;E++)h.setCharAt(3*g+E,fe.toDimensionSymbol(this._matrix[g][E]));return h.toString()}},{key:"setAll",value:function(h){for(var g=0;g<3;g++)for(var E=0;E<3;E++)this._matrix[g][E]=h}},{key:"get",value:function(h,g){return this._matrix[h][g]}},{key:"transpose",value:function(){var h=this._matrix[1][0];return this._matrix[1][0]=this._matrix[0][1],this._matrix[0][1]=h,h=this._matrix[2][0],this._matrix[2][0]=this._matrix[0][2],this._matrix[0][2]=h,h=this._matrix[2][1],this._matrix[2][1]=this._matrix[1][2],this._matrix[1][2]=h,this}},{key:"matches",value:function(h){if(h.length!==9)throw new se("Should be length 9: "+h);for(var g=0;g<3;g++)for(var E=0;E<3;E++)if(!x.matches(this._matrix[g][E],h.charAt(3*g+E)))return!1;return!0}},{key:"add",value:function(h){for(var g=0;g<3;g++)for(var E=0;E<3;E++)this.setAtLeast(g,E,h.get(g,E))}},{key:"isDisjoint",value:function(){return this._matrix[oe.INTERIOR][oe.INTERIOR]===fe.FALSE&&this._matrix[oe.INTERIOR][oe.BOUNDARY]===fe.FALSE&&this._matrix[oe.BOUNDARY][oe.INTERIOR]===fe.FALSE&&this._matrix[oe.BOUNDARY][oe.BOUNDARY]===fe.FALSE}},{key:"isCrosses",value:function(h,g){return h===fe.P&&g===fe.L||h===fe.P&&g===fe.A||h===fe.L&&g===fe.A?x.isTrue(this._matrix[oe.INTERIOR][oe.INTERIOR])&&x.isTrue(this._matrix[oe.INTERIOR][oe.EXTERIOR]):h===fe.L&&g===fe.P||h===fe.A&&g===fe.P||h===fe.A&&g===fe.L?x.isTrue(this._matrix[oe.INTERIOR][oe.INTERIOR])&&x.isTrue(this._matrix[oe.EXTERIOR][oe.INTERIOR]):h===fe.L&&g===fe.L&&this._matrix[oe.INTERIOR][oe.INTERIOR]===0}},{key:"interfaces_",get:function(){return[Ee]}}],[{key:"constructor_",value:function(){if(this._matrix=null,arguments.length===0)this._matrix=Array(3).fill().map((function(){return Array(3)})),this.setAll(fe.FALSE);else if(arguments.length===1){if(typeof arguments[0]=="string"){var h=arguments[0];x.constructor_.call(this),this.set(h)}else if(arguments[0]instanceof x){var g=arguments[0];x.constructor_.call(this),this._matrix[oe.INTERIOR][oe.INTERIOR]=g._matrix[oe.INTERIOR][oe.INTERIOR],this._matrix[oe.INTERIOR][oe.BOUNDARY]=g._matrix[oe.INTERIOR][oe.BOUNDARY],this._matrix[oe.INTERIOR][oe.EXTERIOR]=g._matrix[oe.INTERIOR][oe.EXTERIOR],this._matrix[oe.BOUNDARY][oe.INTERIOR]=g._matrix[oe.BOUNDARY][oe.INTERIOR],this._matrix[oe.BOUNDARY][oe.BOUNDARY]=g._matrix[oe.BOUNDARY][oe.BOUNDARY],this._matrix[oe.BOUNDARY][oe.EXTERIOR]=g._matrix[oe.BOUNDARY][oe.EXTERIOR],this._matrix[oe.EXTERIOR][oe.INTERIOR]=g._matrix[oe.EXTERIOR][oe.INTERIOR],this._matrix[oe.EXTERIOR][oe.BOUNDARY]=g._matrix[oe.EXTERIOR][oe.BOUNDARY],this._matrix[oe.EXTERIOR][oe.EXTERIOR]=g._matrix[oe.EXTERIOR][oe.EXTERIOR]}}}},{key:"matches",value:function(){if(Number.isInteger(arguments[0])&&typeof arguments[1]=="string"){var h=arguments[0],g=arguments[1];return g===fe.SYM_DONTCARE||g===fe.SYM_TRUE&&(h>=0||h===fe.TRUE)||g===fe.SYM_FALSE&&h===fe.FALSE||g===fe.SYM_P&&h===fe.P||g===fe.SYM_L&&h===fe.L||g===fe.SYM_A&&h===fe.A}if(typeof arguments[0]=="string"&&typeof arguments[1]=="string"){var E=arguments[1];return new x(arguments[0]).matches(E)}}},{key:"isTrue",value:function(h){return h>=0||h===fe.TRUE}}])})(),nd=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"size",value:function(){return this._size}},{key:"addAll",value:function(h){return h===null||h.length===0?null:(this.ensureCapacity(this._size+h.length),ua.arraycopy(h,0,this._data,this._size,h.length),void(this._size+=h.length))}},{key:"ensureCapacity",value:function(h){if(h<=this._data.length)return null;var g=Math.max(h,2*this._data.length);this._data=qn.copyOf(this._data,g)}},{key:"toArray",value:function(){var h=new Array(this._size).fill(null);return ua.arraycopy(this._data,0,h,0,this._size),h}},{key:"add",value:function(h){this.ensureCapacity(this._size+1),this._data[this._size]=h,++this._size}}],[{key:"constructor_",value:function(){if(this._data=null,this._size=0,arguments.length===0)x.constructor_.call(this,10);else if(arguments.length===1){var h=arguments[0];this._data=new Array(h).fill(null)}}}])})(),Ac=(function(){function x(){m(this,x)}return C(x,[{key:"getChainStartIndices",value:function(h){var g=0,E=new nd(Math.trunc(h.length/2));E.add(g);do{var O=this.findChainEnd(h,g);E.add(O),g=O}while(g<h.length-1);return E.toArray()}},{key:"findChainEnd",value:function(h,g){for(var E=wa.quadrant(h[g],h[g+1]),O=g+1;O<h.length&&wa.quadrant(h[O-1],h[O])===E;)O++;return O-1}},{key:"OLDgetChainStartIndices",value:function(h){var g=0,E=new bt;E.add(g);do{var O=this.findChainEnd(h,g);E.add(O),g=O}while(g<h.length-1);return x.toIntArray(E)}}],[{key:"toIntArray",value:function(h){for(var g=new Array(h.size()).fill(null),E=0;E<g.length;E++)g[E]=h.get(E).intValue();return g}}])})(),Er=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"getCoordinates",value:function(){return this.pts}},{key:"getMaxX",value:function(x){var h=this.pts[this.startIndex[x]].x,g=this.pts[this.startIndex[x+1]].x;return h>g?h:g}},{key:"getMinX",value:function(x){var h=this.pts[this.startIndex[x]].x,g=this.pts[this.startIndex[x+1]].x;return h<g?h:g}},{key:"computeIntersectsForChain",value:function(){if(arguments.length===4){var x=arguments[0],h=arguments[1],g=arguments[2],E=arguments[3];this.computeIntersectsForChain(this.startIndex[x],this.startIndex[x+1],h,h.startIndex[g],h.startIndex[g+1],E)}else if(arguments.length===6){var O=arguments[0],G=arguments[1],Y=arguments[2],$=arguments[3],ne=arguments[4],he=arguments[5];if(G-O==1&&ne-$==1)return he.addIntersections(this.e,O,Y.e,$),null;if(!this.overlaps(O,G,Y,$,ne))return null;var Se=Math.trunc((O+G)/2),je=Math.trunc(($+ne)/2);O<Se&&($<je&&this.computeIntersectsForChain(O,Se,Y,$,je,he),je<ne&&this.computeIntersectsForChain(O,Se,Y,je,ne,he)),Se<G&&($<je&&this.computeIntersectsForChain(Se,G,Y,$,je,he),je<ne&&this.computeIntersectsForChain(Se,G,Y,je,ne,he))}}},{key:"overlaps",value:function(x,h,g,E,O){return st.intersects(this.pts[x],this.pts[h],g.pts[E],g.pts[O])}},{key:"getStartIndexes",value:function(){return this.startIndex}},{key:"computeIntersects",value:function(x,h){for(var g=0;g<this.startIndex.length-1;g++)for(var E=0;E<x.startIndex.length-1;E++)this.computeIntersectsForChain(g,x,E,h)}}],[{key:"constructor_",value:function(){this.e=null,this.pts=null,this.startIndex=null;var x=arguments[0];this.e=x,this.pts=x.getCoordinates();var h=new Ac;this.startIndex=h.getChainStartIndices(this.pts)}}])})(),gi=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"getDepth",value:function(h,g){return this._depth[h][g]}},{key:"setDepth",value:function(h,g,E){this._depth[h][g]=E}},{key:"isNull",value:function(){if(arguments.length===0){for(var h=0;h<2;h++)for(var g=0;g<3;g++)if(this._depth[h][g]!==x.NULL_VALUE)return!1;return!0}if(arguments.length===1){var E=arguments[0];return this._depth[E][1]===x.NULL_VALUE}if(arguments.length===2){var O=arguments[0],G=arguments[1];return this._depth[O][G]===x.NULL_VALUE}}},{key:"normalize",value:function(){for(var h=0;h<2;h++)if(!this.isNull(h)){var g=this._depth[h][1];this._depth[h][2]<g&&(g=this._depth[h][2]),g<0&&(g=0);for(var E=1;E<3;E++){var O=0;this._depth[h][E]>g&&(O=1),this._depth[h][E]=O}}}},{key:"getDelta",value:function(h){return this._depth[h][rt.RIGHT]-this._depth[h][rt.LEFT]}},{key:"getLocation",value:function(h,g){return this._depth[h][g]<=0?oe.EXTERIOR:oe.INTERIOR}},{key:"toString",value:function(){return"A: "+this._depth[0][1]+","+this._depth[0][2]+" B: "+this._depth[1][1]+","+this._depth[1][2]}},{key:"add",value:function(){if(arguments.length===1)for(var h=arguments[0],g=0;g<2;g++)for(var E=1;E<3;E++){var O=h.getLocation(g,E);O!==oe.EXTERIOR&&O!==oe.INTERIOR||(this.isNull(g,E)?this._depth[g][E]=x.depthAtLocation(O):this._depth[g][E]+=x.depthAtLocation(O))}else if(arguments.length===3){var G=arguments[0],Y=arguments[1];arguments[2]===oe.INTERIOR&&this._depth[G][Y]++}}}],[{key:"constructor_",value:function(){this._depth=Array(2).fill().map((function(){return Array(3)}));for(var h=0;h<2;h++)for(var g=0;g<3;g++)this._depth[h][g]=x.NULL_VALUE}},{key:"depthAtLocation",value:function(h){return h===oe.EXTERIOR?0:h===oe.INTERIOR?1:x.NULL_VALUE}}])})();gi.NULL_VALUE=-1;var Rc=(function(x){function h(){var g;return m(this,h),g=d(this,h),h.constructor_.apply(g,arguments),g}return k(h,x),C(h,[{key:"getDepth",value:function(){return this._depth}},{key:"getCollapsedEdge",value:function(){var g=new Array(2).fill(null);return g[0]=this.pts[0],g[1]=this.pts[1],new h(g,br.toLineLabel(this._label))}},{key:"isIsolated",value:function(){return this._isIsolated}},{key:"getCoordinates",value:function(){return this.pts}},{key:"setIsolated",value:function(g){this._isIsolated=g}},{key:"setName",value:function(g){this._name=g}},{key:"equals",value:function(g){if(!(g instanceof h))return!1;var E=g;if(this.pts.length!==E.pts.length)return!1;for(var O=!0,G=!0,Y=this.pts.length,$=0;$<this.pts.length;$++)if(this.pts[$].equals2D(E.pts[$])||(O=!1),this.pts[$].equals2D(E.pts[--Y])||(G=!1),!O&&!G)return!1;return!0}},{key:"getCoordinate",value:function(){if(arguments.length===0)return this.pts.length>0?this.pts[0]:null;if(arguments.length===1){var g=arguments[0];return this.pts[g]}}},{key:"print",value:function(g){g.print("edge "+this._name+": "),g.print("LINESTRING (");for(var E=0;E<this.pts.length;E++)E>0&&g.print(","),g.print(this.pts[E].x+" "+this.pts[E].y);g.print(") "+this._label+" "+this._depthDelta)}},{key:"computeIM",value:function(g){h.updateIM(this._label,g)}},{key:"isCollapsed",value:function(){return!!this._label.isArea()&&this.pts.length===3&&!!this.pts[0].equals(this.pts[2])}},{key:"isClosed",value:function(){return this.pts[0].equals(this.pts[this.pts.length-1])}},{key:"getMaximumSegmentIndex",value:function(){return this.pts.length-1}},{key:"getDepthDelta",value:function(){return this._depthDelta}},{key:"getNumPoints",value:function(){return this.pts.length}},{key:"printReverse",value:function(g){g.print("edge "+this._name+": ");for(var E=this.pts.length-1;E>=0;E--)g.print(this.pts[E]+" ");g.println("")}},{key:"getMonotoneChainEdge",value:function(){return this._mce===null&&(this._mce=new Er(this)),this._mce}},{key:"getEnvelope",value:function(){if(this._env===null){this._env=new st;for(var g=0;g<this.pts.length;g++)this._env.expandToInclude(this.pts[g])}return this._env}},{key:"addIntersection",value:function(g,E,O,G){var Y=new xe(g.getIntersection(G)),$=E,ne=g.getEdgeDistance(O,G),he=$+1;if(he<this.pts.length){var Se=this.pts[he];Y.equals2D(Se)&&($=he,ne=0)}this.eiList.add(Y,$,ne)}},{key:"toString",value:function(){var g=new Gr;g.append("edge "+this._name+": "),g.append("LINESTRING (");for(var E=0;E<this.pts.length;E++)E>0&&g.append(","),g.append(this.pts[E].x+" "+this.pts[E].y);return g.append(") "+this._label+" "+this._depthDelta),g.toString()}},{key:"isPointwiseEqual",value:function(g){if(this.pts.length!==g.pts.length)return!1;for(var E=0;E<this.pts.length;E++)if(!this.pts[E].equals2D(g.pts[E]))return!1;return!0}},{key:"setDepthDelta",value:function(g){this._depthDelta=g}},{key:"getEdgeIntersectionList",value:function(){return this.eiList}},{key:"addIntersections",value:function(g,E,O){for(var G=0;G<g.getIntersectionNum();G++)this.addIntersection(g,E,O,G)}}],[{key:"constructor_",value:function(){if(this.pts=null,this._env=null,this.eiList=new Qs(this),this._name=null,this._mce=null,this._isIsolated=!0,this._depth=new gi,this._depthDelta=0,arguments.length===1){var g=arguments[0];h.constructor_.call(this,g,null)}else if(arguments.length===2){var E=arguments[0],O=arguments[1];this.pts=E,this._label=O}}},{key:"updateIM",value:function(){if(!(arguments.length===2&&arguments[1]instanceof wo&&arguments[0]instanceof br))return H(h,"updateIM",this).apply(this,arguments);var g=arguments[0],E=arguments[1];E.setAtLeastIfValid(g.getLocation(0,rt.ON),g.getLocation(1,rt.ON),1),g.isArea()&&(E.setAtLeastIfValid(g.getLocation(0,rt.LEFT),g.getLocation(1,rt.LEFT),2),E.setAtLeastIfValid(g.getLocation(0,rt.RIGHT),g.getLocation(1,rt.RIGHT),2))}}])})(Us),vl=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"setWorkingPrecisionModel",value:function(h){this._workingPrecisionModel=h}},{key:"insertUniqueEdge",value:function(h){var g=this._edgeList.findEqualEdge(h);if(g!==null){var E=g.getLabel(),O=h.getLabel();g.isPointwiseEqual(h)||(O=new br(h.getLabel())).flip(),E.merge(O);var G=x.depthDelta(O),Y=g.getDepthDelta()+G;g.setDepthDelta(Y)}else this._edgeList.add(h),h.setDepthDelta(x.depthDelta(h.getLabel()))}},{key:"buildSubgraphs",value:function(h,g){for(var E=new bt,O=h.iterator();O.hasNext();){var G=O.next(),Y=G.getRightmostCoordinate(),$=new gl(E).getDepth(Y);G.computeDepth($),G.findResultEdges(),E.add(G),g.add(G.getDirectedEdges(),G.getNodes())}}},{key:"createSubgraphs",value:function(h){for(var g=new bt,E=h.getNodes().iterator();E.hasNext();){var O=E.next();if(!O.isVisited()){var G=new Xu;G.create(O),g.add(G)}}return Cu.sort(g,Cu.reverseOrder()),g}},{key:"createEmptyResultGeometry",value:function(){return this._geomFact.createPolygon()}},{key:"getNoder",value:function(h){if(this._workingNoder!==null)return this._workingNoder;var g=new bc,E=new Ni;return E.setPrecisionModel(h),g.setSegmentIntersector(new Ws(E)),g}},{key:"buffer",value:function(h,g){var E=this._workingPrecisionModel;E===null&&(E=h.getPrecisionModel()),this._geomFact=h.getFactory();var O=new Kf(E,this._bufParams),G=new yl(h,g,O).getCurves();if(G.size()<=0)return this.createEmptyResultGeometry();this.computeNodedEdges(G,E),this._graph=new xu(new Om),this._graph.addEdges(this._edgeList.getEdges());var Y=this.createSubgraphs(this._graph),$=new pl(this._geomFact);this.buildSubgraphs(Y,$);var ne=$.getPolygons();return ne.size()<=0?this.createEmptyResultGeometry():this._geomFact.buildGeometry(ne)}},{key:"computeNodedEdges",value:function(h,g){var E=this.getNoder(g);E.computeNodes(h);for(var O=E.getNodedSubstrings().iterator();O.hasNext();){var G=O.next(),Y=G.getCoordinates();if(Y.length!==2||!Y[0].equals2D(Y[1])){var $=G.getData(),ne=new Rc(G.getCoordinates(),new br($));this.insertUniqueEdge(ne)}}}},{key:"setNoder",value:function(h){this._workingNoder=h}}],[{key:"constructor_",value:function(){this._bufParams=null,this._workingPrecisionModel=null,this._workingNoder=null,this._geomFact=null,this._graph=null,this._edgeList=new uu;var h=arguments[0];this._bufParams=h}},{key:"depthDelta",value:function(h){var g=h.getLocation(0,rt.LEFT),E=h.getLocation(0,rt.RIGHT);return g===oe.INTERIOR&&E===oe.EXTERIOR?1:g===oe.EXTERIOR&&E===oe.INTERIOR?-1:0}},{key:"convertSegStrings",value:function(h){for(var g=new Ii,E=new bt;h.hasNext();){var O=h.next(),G=g.createLineString(O.getCoordinates());E.add(G)}return g.buildGeometry(E)}}])})(),Tc=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"rescale",value:function(){if(vt(arguments[0],_t))for(var h=arguments[0].iterator();h.hasNext();){var g=h.next();this.rescale(g.getCoordinates())}else if(arguments[0]instanceof Array){for(var E=arguments[0],O=0;O<E.length;O++)E[O].x=E[O].x/this._scaleFactor+this._offsetX,E[O].y=E[O].y/this._scaleFactor+this._offsetY;E.length===2&&E[0].equals2D(E[1])&&ua.out.println(E)}}},{key:"scale",value:function(){if(vt(arguments[0],_t)){for(var h=arguments[0],g=new bt(h.size()),E=h.iterator();E.hasNext();){var O=E.next();g.add(new za(this.scale(O.getCoordinates()),O.getData()))}return g}if(arguments[0]instanceof Array){for(var G=arguments[0],Y=new Array(G.length).fill(null),$=0;$<G.length;$++)Y[$]=new xe(Math.round((G[$].x-this._offsetX)*this._scaleFactor),Math.round((G[$].y-this._offsetY)*this._scaleFactor),G[$].getZ());return bn.removeRepeatedPoints(Y)}}},{key:"isIntegerPrecision",value:function(){return this._scaleFactor===1}},{key:"getNodedSubstrings",value:function(){var h=this._noder.getNodedSubstrings();return this._isScaled&&this.rescale(h),h}},{key:"computeNodes",value:function(h){var g=h;this._isScaled&&(g=this.scale(h)),this._noder.computeNodes(g)}},{key:"interfaces_",get:function(){return[Vr]}}],[{key:"constructor_",value:function(){if(this._noder=null,this._scaleFactor=null,this._offsetX=null,this._offsetY=null,this._isScaled=!1,arguments.length===2){var h=arguments[0],g=arguments[1];x.constructor_.call(this,h,g,0,0)}else if(arguments.length===4){var E=arguments[0],O=arguments[1];this._noder=E,this._scaleFactor=O,this._isScaled=!this.isIntegerPrecision()}}}])})(),ad=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"checkEndPtVertexIntersections",value:function(){if(arguments.length===0)for(var h=this._segStrings.iterator();h.hasNext();){var g=h.next().getCoordinates();this.checkEndPtVertexIntersections(g[0],this._segStrings),this.checkEndPtVertexIntersections(g[g.length-1],this._segStrings)}else if(arguments.length===2){for(var E=arguments[0],O=arguments[1].iterator();O.hasNext();)for(var G=O.next().getCoordinates(),Y=1;Y<G.length-1;Y++)if(G[Y].equals(E))throw new Je("found endpt/interior pt intersection at index "+Y+" :pt "+E)}}},{key:"checkInteriorIntersections",value:function(){if(arguments.length===0)for(var h=this._segStrings.iterator();h.hasNext();)for(var g=h.next(),E=this._segStrings.iterator();E.hasNext();){var O=E.next();this.checkInteriorIntersections(g,O)}else if(arguments.length===2)for(var G=arguments[0],Y=arguments[1],$=G.getCoordinates(),ne=Y.getCoordinates(),he=0;he<$.length-1;he++)for(var Se=0;Se<ne.length-1;Se++)this.checkInteriorIntersections(G,he,Y,Se);else if(arguments.length===4){var je=arguments[0],at=arguments[1],ct=arguments[2],mt=arguments[3];if(je===ct&&at===mt)return null;var Ct=je.getCoordinates()[at],Pt=je.getCoordinates()[at+1],rn=ct.getCoordinates()[mt],un=ct.getCoordinates()[mt+1];if(this._li.computeIntersection(Ct,Pt,rn,un),this._li.hasIntersection()&&(this._li.isProper()||this.hasInteriorIntersection(this._li,Ct,Pt)||this.hasInteriorIntersection(this._li,rn,un)))throw new Je("found non-noded intersection at "+Ct+"-"+Pt+" and "+rn+"-"+un)}}},{key:"checkValid",value:function(){this.checkEndPtVertexIntersections(),this.checkInteriorIntersections(),this.checkCollapses()}},{key:"checkCollapses",value:function(){if(arguments.length===0)for(var h=this._segStrings.iterator();h.hasNext();){var g=h.next();this.checkCollapses(g)}else if(arguments.length===1)for(var E=arguments[0].getCoordinates(),O=0;O<E.length-2;O++)this.checkCollapse(E[O],E[O+1],E[O+2])}},{key:"hasInteriorIntersection",value:function(h,g,E){for(var O=0;O<h.getIntersectionNum();O++){var G=h.getIntersection(O);if(!G.equals(g)&&!G.equals(E))return!0}return!1}},{key:"checkCollapse",value:function(h,g,E){if(h.equals(E))throw new Je("found non-noded collapse at "+x.fact.createLineString([h,g,E]))}}],[{key:"constructor_",value:function(){this._li=new Ni,this._segStrings=null;var h=arguments[0];this._segStrings=h}}])})();ad.fact=new Ii;var Dc=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"intersectsScaled",value:function(h,g){var E=Math.min(h.x,g.x),O=Math.max(h.x,g.x),G=Math.min(h.y,g.y),Y=Math.max(h.y,g.y),$=this._maxx<E||this._minx>O||this._maxy<G||this._miny>Y;if($)return!1;var ne=this.intersectsToleranceSquare(h,g);return Pe.isTrue(!($&&ne),"Found bad envelope test"),ne}},{key:"initCorners",value:function(h){var g=.5;this._minx=h.x-g,this._maxx=h.x+g,this._miny=h.y-g,this._maxy=h.y+g,this._corner[0]=new xe(this._maxx,this._maxy),this._corner[1]=new xe(this._minx,this._maxy),this._corner[2]=new xe(this._minx,this._miny),this._corner[3]=new xe(this._maxx,this._miny)}},{key:"intersects",value:function(h,g){return this._scaleFactor===1?this.intersectsScaled(h,g):(this.copyScaled(h,this._p0Scaled),this.copyScaled(g,this._p1Scaled),this.intersectsScaled(this._p0Scaled,this._p1Scaled))}},{key:"scale",value:function(h){return Math.round(h*this._scaleFactor)}},{key:"getCoordinate",value:function(){return this._originalPt}},{key:"copyScaled",value:function(h,g){g.x=this.scale(h.x),g.y=this.scale(h.y)}},{key:"getSafeEnvelope",value:function(){if(this._safeEnv===null){var h=x.SAFE_ENV_EXPANSION_FACTOR/this._scaleFactor;this._safeEnv=new st(this._originalPt.x-h,this._originalPt.x+h,this._originalPt.y-h,this._originalPt.y+h)}return this._safeEnv}},{key:"intersectsPixelClosure",value:function(h,g){return this._li.computeIntersection(h,g,this._corner[0],this._corner[1]),!!this._li.hasIntersection()||(this._li.computeIntersection(h,g,this._corner[1],this._corner[2]),!!this._li.hasIntersection()||(this._li.computeIntersection(h,g,this._corner[2],this._corner[3]),!!this._li.hasIntersection()||(this._li.computeIntersection(h,g,this._corner[3],this._corner[0]),!!this._li.hasIntersection())))}},{key:"intersectsToleranceSquare",value:function(h,g){var E=!1,O=!1;return this._li.computeIntersection(h,g,this._corner[0],this._corner[1]),!!this._li.isProper()||(this._li.computeIntersection(h,g,this._corner[1],this._corner[2]),!!this._li.isProper()||(this._li.hasIntersection()&&(E=!0),this._li.computeIntersection(h,g,this._corner[2],this._corner[3]),!!this._li.isProper()||(this._li.hasIntersection()&&(O=!0),this._li.computeIntersection(h,g,this._corner[3],this._corner[0]),!!this._li.isProper()||!(!E||!O)||!!h.equals(this._pt)||!!g.equals(this._pt))))}},{key:"addSnappedNode",value:function(h,g){var E=h.getCoordinate(g),O=h.getCoordinate(g+1);return!!this.intersects(E,O)&&(h.addIntersection(this.getCoordinate(),g),!0)}}],[{key:"constructor_",value:function(){this._li=null,this._pt=null,this._originalPt=null,this._ptScaled=null,this._p0Scaled=null,this._p1Scaled=null,this._scaleFactor=null,this._minx=null,this._maxx=null,this._miny=null,this._maxy=null,this._corner=new Array(4).fill(null),this._safeEnv=null;var h=arguments[0],g=arguments[1],E=arguments[2];if(this._originalPt=h,this._pt=h,this._scaleFactor=g,this._li=E,g<=0)throw new se("Scale factor must be non-zero");g!==1&&(this._pt=new xe(this.scale(h.x),this.scale(h.y)),this._p0Scaled=new xe,this._p1Scaled=new xe),this.initCorners(this._pt)}}])})();Dc.SAFE_ENV_EXPANSION_FACTOR=.75;var es=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"select",value:function(){if(arguments.length!==1){if(arguments.length===2){var x=arguments[1];arguments[0].getLineSegment(x,this.selectedSegment),this.select(this.selectedSegment)}}}}],[{key:"constructor_",value:function(){this.selectedSegment=new zn}}])})(),ts=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"snap",value:function(){if(arguments.length===1){var x=arguments[0];return this.snap(x,null,-1)}if(arguments.length===3){var h=arguments[0],g=arguments[1],E=arguments[2],O=h.getSafeEnvelope(),G=new rd(h,g,E);return this._index.query(O,new((function(){return C((function Y(){m(this,Y)}),[{key:"interfaces_",get:function(){return[Zf]}},{key:"visitItem",value:function(Y){Y.select(O,G)}}])})())),G.isNodeAdded()}}}],[{key:"constructor_",value:function(){this._index=null;var x=arguments[0];this._index=x}}])})(),rd=(function(x){function h(){var g;return m(this,h),g=d(this,h),h.constructor_.apply(g,arguments),g}return k(h,x),C(h,[{key:"isNodeAdded",value:function(){return this._isNodeAdded}},{key:"select",value:function(){if(!(arguments.length===2&&Number.isInteger(arguments[1])&&arguments[0]instanceof ml))return H(h,"select",this,1).apply(this,arguments);var g=arguments[1],E=arguments[0].getContext();if(this._parentEdge===E&&(g===this._hotPixelVertexIndex||g+1===this._hotPixelVertexIndex))return null;this._isNodeAdded|=this._hotPixel.addSnappedNode(E,g)}}],[{key:"constructor_",value:function(){this._hotPixel=null,this._parentEdge=null,this._hotPixelVertexIndex=null,this._isNodeAdded=!1;var g=arguments[0],E=arguments[1],O=arguments[2];this._hotPixel=g,this._parentEdge=E,this._hotPixelVertexIndex=O}}])})(es);ts.HotPixelSnapAction=rd;var er=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"processIntersections",value:function(x,h,g,E){if(x===g&&h===E)return null;var O=x.getCoordinates()[h],G=x.getCoordinates()[h+1],Y=g.getCoordinates()[E],$=g.getCoordinates()[E+1];if(this._li.computeIntersection(O,G,Y,$),this._li.hasIntersection()&&this._li.isInteriorIntersection()){for(var ne=0;ne<this._li.getIntersectionNum();ne++)this._interiorIntersections.add(this._li.getIntersection(ne));x.addIntersections(this._li,h,0),g.addIntersections(this._li,E,1)}}},{key:"isDone",value:function(){return!1}},{key:"getInteriorIntersections",value:function(){return this._interiorIntersections}},{key:"interfaces_",get:function(){return[Sc]}}],[{key:"constructor_",value:function(){this._li=null,this._interiorIntersections=null;var x=arguments[0];this._li=x,this._interiorIntersections=new bt}}])})(),yi=(function(){return C((function x(){m(this,x),x.constructor_.apply(this,arguments)}),[{key:"checkCorrectness",value:function(x){var h=za.getNodedSubstrings(x),g=new ad(h);try{g.checkValid()}catch(E){if(!(E instanceof ue))throw E;E.printStackTrace()}}},{key:"getNodedSubstrings",value:function(){return za.getNodedSubstrings(this._nodedSegStrings)}},{key:"snapRound",value:function(x,h){var g=this.findInteriorIntersections(x,h);this.computeIntersectionSnaps(g),this.computeVertexSnaps(x)}},{key:"findInteriorIntersections",value:function(x,h){var g=new er(h);return this._noder.setSegmentIntersector(g),this._noder.computeNodes(x),g.getInteriorIntersections()}},{key:"computeVertexSnaps",value:function(){if(vt(arguments[0],_t))for(var x=arguments[0].iterator();x.hasNext();){var h=x.next();this.computeVertexSnaps(h)}else if(arguments[0]instanceof za)for(var g=arguments[0],E=g.getCoordinates(),O=0;O<E.length;O++){var G=new Dc(E[O],this._scaleFactor,this._li);this._pointSnapper.snap(G,g,O)&&g.addIntersection(E[O],O)}}},{key:"computeNodes",value:function(x){this._nodedSegStrings=x,this._noder=new bc,this._pointSnapper=new ts(this._noder.getIndex()),this.snapRound(x,this._li)}},{key:"computeIntersectionSnaps",value:function(x){for(var h=x.iterator();h.hasNext();){var g=h.next(),E=new Dc(g,this._scaleFactor,this._li);this._pointSnapper.snap(E)}}},{key:"interfaces_",get:function(){return[Vr]}}],[{key:"constructor_",value:function(){this._pm=null,this._li=null,this._scaleFactor=null,this._noder=null,this._pointSnapper=null,this._nodedSegStrings=null;var x=arguments[0];this._pm=x,this._li=new Ni,this._li.setPrecisionModel(x),this._scaleFactor=x.getScale()}}])})(),ns=(function(){function x(){m(this,x),x.constructor_.apply(this,arguments)}return C(x,[{key:"bufferFixedPrecision",value:function(h){var g=new Tc(new yi(new Or(1)),h.getScale()),E=new vl(this._bufParams);E.setWorkingPrecisionModel(h),E.setNoder(g),this._resultGeometry=E.buffer(this._argGeom,this._distance)}},{key:"bufferReducedPrecision",value:function(){if(arguments.length===0){for(var h=x.MAX_PRECISION_DIGITS;h>=0;h--){try{this.bufferReducedPrecision(h)}catch(G){if(!(G instanceof ra))throw G;this._saveException=G}if(this._resultGeometry!==null)return null}throw this._saveException}if(arguments.length===1){var g=arguments[0],E=x.precisionScaleFactor(this._argGeom,this._distance,g),O=new Or(E);this.bufferFixedPrecision(O)}}},{key:"computeGeometry",value:function(){if(this.bufferOriginalPrecision(),this._resultGeometry!==null)return null;var h=this._argGeom.getFactory().getPrecisionModel();h.getType()===Or.FIXED?this.bufferFixedPrecision(h):this.bufferReducedPrecision()}},{key:"setQuadrantSegments",value:function(h){this._bufParams.setQuadrantSegments(h)}},{key:"bufferOriginalPrecision",value:function(){try{var h=new vl(this._bufParams);this._resultGeometry=h.buffer(this._argGeom,this._distance)}catch(g){if(!(g instanceof Je))throw g;this._saveException=g}}},{key:"getResultGeometry",value:function(h){return this._distance=h,this.computeGeometry(),this._resultGeometry}},{key:"setEndCapStyle",value:function(h){this._bufParams.setEndCapStyle(h)}}],[{key:"constructor_",value:function(){if(this._argGeom=null,this._distance=null,this._bufParams=new te,this._resultGeometry=null,this._saveException=null,arguments.length===1){var h=arguments[0];this._argGeom=h}else if(arguments.length===2){var g=arguments[0],E=arguments[1];this._argGeom=g,this._bufParams=E}}},{key:"bufferOp",value:function(){if(arguments.length===2){var h=arguments[1];return new x(arguments[0]).getResultGeometry(h)}if(arguments.length===3){if(Number.isInteger(arguments[2])&&arguments[0]instanceof Be&&typeof arguments[1]=="number"){var g=arguments[1],E=arguments[2],O=new x(arguments[0]);return O.setQuadrantSegments(E),O.getResultGeometry(g)}if(arguments[2]instanceof te&&arguments[0]instanceof Be&&typeof arguments[1]=="number"){var G=arguments[1];return new x(arguments[0],arguments[2]).getResultGeometry(G)}}else if(arguments.length===4){var Y=arguments[1],$=arguments[2],ne=arguments[3],he=new x(arguments[0]);return he.setQuadrantSegments($),he.setEndCapStyle(ne),he.getResultGeometry(Y)}}},{key:"precisionScaleFactor",value:function(h,g,E){var O=h.getEnvelopeInternal(),G=Jn.max(Math.abs(O.getMaxX()),Math.abs(O.getMaxY()),Math.abs(O.getMinX()),Math.abs(O.getMinY()))+2*(g>0?g:0),Y=E-Math.trunc(Math.log(G)/Math.log(10)+1);return Math.pow(10,Y)}}])})();ns.CAP_ROUND=te.CAP_ROUND,ns.CAP_BUTT=te.CAP_FLAT,ns.CAP_FLAT=te.CAP_FLAT,ns.CAP_SQUARE=te.CAP_SQUARE,ns.MAX_PRECISION_DIGITS=12;var id=["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon"],as=(function(){return C((function x(h){m(this,x),this.geometryFactory=h||new Ii}),[{key:"read",value:function(x){var h,g=(h=typeof x=="string"?JSON.parse(x):x).type;if(!ya[g])throw new Error("Unknown GeoJSON type: "+h.type);return id.indexOf(g)!==-1?ya[g].call(this,h.coordinates):g==="GeometryCollection"?ya[g].call(this,h.geometries):ya[g].call(this,h)}},{key:"write",value:function(x){var h=x.getGeometryType();if(!wr[h])throw new Error("Geometry is not supported");return wr[h].call(this,x)}}])})(),ya={Feature:function(x){var h={};for(var g in x)h[g]=x[g];if(x.geometry){var E=x.geometry.type;if(!ya[E])throw new Error("Unknown GeoJSON type: "+x.type);h.geometry=this.read(x.geometry)}return x.bbox&&(h.bbox=ya.bbox.call(this,x.bbox)),h},FeatureCollection:function(x){var h={};if(x.features){h.features=[];for(var g=0;g<x.features.length;++g)h.features.push(this.read(x.features[g]))}return x.bbox&&(h.bbox=this.parse.bbox.call(this,x.bbox)),h},coordinates:function(x){for(var h=[],g=0;g<x.length;++g){var E=x[g];h.push(v(xe,W(E)))}return h},bbox:function(x){return this.geometryFactory.createLinearRing([new xe(x[0],x[1]),new xe(x[2],x[1]),new xe(x[2],x[3]),new xe(x[0],x[3]),new xe(x[0],x[1])])},Point:function(x){var h=v(xe,W(x));return this.geometryFactory.createPoint(h)},MultiPoint:function(x){for(var h=[],g=0;g<x.length;++g)h.push(ya.Point.call(this,x[g]));return this.geometryFactory.createMultiPoint(h)},LineString:function(x){var h=ya.coordinates.call(this,x);return this.geometryFactory.createLineString(h)},MultiLineString:function(x){for(var h=[],g=0;g<x.length;++g)h.push(ya.LineString.call(this,x[g]));return this.geometryFactory.createMultiLineString(h)},Polygon:function(x){for(var h=ya.coordinates.call(this,x[0]),g=this.geometryFactory.createLinearRing(h),E=[],O=1;O<x.length;++O){var G=x[O],Y=ya.coordinates.call(this,G),$=this.geometryFactory.createLinearRing(Y);E.push($)}return this.geometryFactory.createPolygon(g,E)},MultiPolygon:function(x){for(var h=[],g=0;g<x.length;++g){var E=x[g];h.push(ya.Polygon.call(this,E))}return this.geometryFactory.createMultiPolygon(h)},GeometryCollection:function(x){for(var h=[],g=0;g<x.length;++g){var E=x[g];h.push(this.read(E))}return this.geometryFactory.createGeometryCollection(h)}},wr={coordinate:function(x){var h=[x.x,x.y];return x.z&&h.push(x.z),x.m&&h.push(x.m),h},Point:function(x){return{type:"Point",coordinates:wr.coordinate.call(this,x.getCoordinate())}},MultiPoint:function(x){for(var h=[],g=0;g<x._geometries.length;++g){var E=x._geometries[g],O=wr.Point.call(this,E);h.push(O.coordinates)}return{type:"MultiPoint",coordinates:h}},LineString:function(x){for(var h=[],g=x.getCoordinates(),E=0;E<g.length;++E){var O=g[E];h.push(wr.coordinate.call(this,O))}return{type:"LineString",coordinates:h}},MultiLineString:function(x){for(var h=[],g=0;g<x._geometries.length;++g){var E=x._geometries[g],O=wr.LineString.call(this,E);h.push(O.coordinates)}return{type:"MultiLineString",coordinates:h}},Polygon:function(x){var h=[],g=wr.LineString.call(this,x._shell);h.push(g.coordinates);for(var E=0;E<x._holes.length;++E){var O=x._holes[E],G=wr.LineString.call(this,O);h.push(G.coordinates)}return{type:"Polygon",coordinates:h}},MultiPolygon:function(x){for(var h=[],g=0;g<x._geometries.length;++g){var E=x._geometries[g],O=wr.Polygon.call(this,E);h.push(O.coordinates)}return{type:"MultiPolygon",coordinates:h}},GeometryCollection:function(x){for(var h=[],g=0;g<x._geometries.length;++g){var E=x._geometries[g],O=E.getGeometryType();h.push(wr[O].call(this,E))}return{type:"GeometryCollection",geometries:h}}};return{BufferOp:ns,GeoJSONReader:(function(){return C((function x(h){m(this,x),this.parser=new as(h||new Ii)}),[{key:"read",value:function(x){return this.parser.read(x)}}])})(),GeoJSONWriter:(function(){return C((function x(){m(this,x),this.parser=new as(this.geometryFactory)}),[{key:"write",value:function(x){return this.parser.write(x)}}])})()}}))})(jsts_min$1)),jsts_min$1.exports}var jsts_minExports=requireJsts_min();const jsts=getDefaultExportFromCjs$1(jsts_minExports);function adder(){return new Adder}function Adder(){this.reset()}Adder.prototype={constructor:Adder,reset:function(){this.s=this.t=0},add:function(t){add(temp,t,this.t),add(this,temp.s,this.s),this.s?this.t+=temp.t:this.s=temp.t},valueOf:function(){return this.s}};var temp=new Adder;function add(t,n,s){var d=t.s=n+s,m=d-n,v=d-m;t.t=n-v+(s-m)}var epsilon$1=1e-6,pi=Math.PI,halfPi=pi/2,quarterPi=pi/4,tau=pi*2,degrees=180/pi,radians=pi/180,abs$1=Math.abs,atan=Math.atan,atan2=Math.atan2,cos=Math.cos,sin=Math.sin,sqrt=Math.sqrt;function acos(t){return t>1?0:t<-1?pi:Math.acos(t)}function asin(t){return t>1?halfPi:t<-1?-halfPi:Math.asin(t)}function noop$1(){}function streamGeometry(t,n){t&&streamGeometryType.hasOwnProperty(t.type)&&streamGeometryType[t.type](t,n)}var streamObjectType={Feature:function(t,n){streamGeometry(t.geometry,n)},FeatureCollection:function(t,n){for(var s=t.features,d=-1,m=s.length;++d<m;)streamGeometry(s[d].geometry,n)}},streamGeometryType={Sphere:function(t,n){n.sphere()},Point:function(t,n){t=t.coordinates,n.point(t[0],t[1],t[2])},MultiPoint:function(t,n){for(var s=t.coordinates,d=-1,m=s.length;++d<m;)t=s[d],n.point(t[0],t[1],t[2])},LineString:function(t,n){streamLine(t.coordinates,n,0)},MultiLineString:function(t,n){for(var s=t.coordinates,d=-1,m=s.length;++d<m;)streamLine(s[d],n,0)},Polygon:function(t,n){streamPolygon(t.coordinates,n)},MultiPolygon:function(t,n){for(var s=t.coordinates,d=-1,m=s.length;++d<m;)streamPolygon(s[d],n)},GeometryCollection:function(t,n){for(var s=t.geometries,d=-1,m=s.length;++d<m;)streamGeometry(s[d],n)}};function streamLine(t,n,s){var d=-1,m=t.length-s,v;for(n.lineStart();++d<m;)v=t[d],n.point(v[0],v[1],v[2]);n.lineEnd()}function streamPolygon(t,n){var s=-1,d=t.length;for(n.polygonStart();++s<d;)streamLine(t[s],n,1);n.polygonEnd()}function geoStream(t,n){t&&streamObjectType.hasOwnProperty(t.type)?streamObjectType[t.type](t,n):streamGeometry(t,n)}adder(),adder();function spherical(t){return[atan2(t[1],t[0]),asin(t[2])]}function cartesian(t){var n=t[0],s=t[1],d=cos(s);return[d*cos(n),d*sin(n),sin(s)]}function cartesianDot(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function cartesianCross(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function cartesianAddInPlace(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function cartesianScale(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function cartesianNormalizeInPlace(t){var n=sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}adder();function compose(t,n){function s(d,m){return d=t(d,m),n(d[0],d[1])}return t.invert&&n.invert&&(s.invert=function(d,m){return d=n.invert(d,m),d&&t.invert(d[0],d[1])}),s}function rotationIdentity(t,n){return[t>pi?t-tau:t<-pi?t+tau:t,n]}rotationIdentity.invert=rotationIdentity;function rotateRadians(t,n,s){return(t%=tau)?n||s?compose(rotationLambda(t),rotationPhiGamma(n,s)):rotationLambda(t):n||s?rotationPhiGamma(n,s):rotationIdentity}function forwardRotationLambda(t){return function(n,s){return n+=t,[n>pi?n-tau:n<-pi?n+tau:n,s]}}function rotationLambda(t){var n=forwardRotationLambda(t);return n.invert=forwardRotationLambda(-t),n}function rotationPhiGamma(t,n){var s=cos(t),d=sin(t),m=cos(n),v=sin(n);function S(C,I){var N=cos(I),M=cos(C)*N,k=sin(C)*N,z=sin(I),V=z*s+M*d;return[atan2(k*m-V*v,M*s-z*d),asin(V*m+k*v)]}return S.invert=function(C,I){var N=cos(I),M=cos(C)*N,k=sin(C)*N,z=sin(I),V=z*m-k*v;return[atan2(k*m+z*v,M*s+V*d),asin(V*s-M*d)]},S}function circleStream(t,n,s,d,m,v){if(s){var S=cos(n),C=sin(n),I=d*s;m==null?(m=n+d*tau,v=n-I/2):(m=circleRadius(S,m),v=circleRadius(S,v),(d>0?m<v:m>v)&&(m+=d*tau));for(var N,M=m;d>0?M>v:M<v;M-=I)N=spherical([S,-C*cos(M),-C*sin(M)]),t.point(N[0],N[1])}}function circleRadius(t,n){n=cartesian(n),n[0]-=t,cartesianNormalizeInPlace(n);var s=acos(-n[1]);return((-n[2]<0?-s:s)+tau-epsilon$1)%tau}function clipBuffer(){var t=[],n;return{point:function(s,d){n.push([s,d])},lineStart:function(){t.push(n=[])},lineEnd:noop$1,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var s=t;return t=[],n=null,s}}}function clipLine(t,n,s,d,m,v){var S=t[0],C=t[1],I=n[0],N=n[1],M=0,k=1,z=I-S,V=N-C,H;if(H=s-S,!(!z&&H>0)){if(H/=z,z<0){if(H<M)return;H<k&&(k=H)}else if(z>0){if(H>k)return;H>M&&(M=H)}if(H=m-S,!(!z&&H<0)){if(H/=z,z<0){if(H>k)return;H>M&&(M=H)}else if(z>0){if(H<M)return;H<k&&(k=H)}if(H=d-C,!(!V&&H>0)){if(H/=V,V<0){if(H<M)return;H<k&&(k=H)}else if(V>0){if(H>k)return;H>M&&(M=H)}if(H=v-C,!(!V&&H<0)){if(H/=V,V<0){if(H>k)return;H>M&&(M=H)}else if(V>0){if(H<M)return;H<k&&(k=H)}return M>0&&(t[0]=S+M*z,t[1]=C+M*V),k<1&&(n[0]=S+k*z,n[1]=C+k*V),!0}}}}}function pointEqual(t,n){return abs$1(t[0]-n[0])<epsilon$1&&abs$1(t[1]-n[1])<epsilon$1}function Intersection(t,n,s,d){this.x=t,this.z=n,this.o=s,this.e=d,this.v=!1,this.n=this.p=null}function clipPolygon(t,n,s,d,m){var v=[],S=[],C,I;if(t.forEach(function(H){if(!((W=H.length-1)<=0)){var W,J=H[0],K=H[W],re;if(pointEqual(J,K)){for(m.lineStart(),C=0;C<W;++C)m.point((J=H[C])[0],J[1]);m.lineEnd();return}v.push(re=new Intersection(J,H,null,!0)),S.push(re.o=new Intersection(J,null,re,!1)),v.push(re=new Intersection(K,H,null,!1)),S.push(re.o=new Intersection(K,null,re,!0))}}),!!v.length){for(S.sort(n),link$1(v),link$1(S),C=0,I=S.length;C<I;++C)S[C].e=s=!s;for(var N=v[0],M,k;;){for(var z=N,V=!0;z.v;)if((z=z.n)===N)return;M=z.z,m.lineStart();do{if(z.v=z.o.v=!0,z.e){if(V)for(C=0,I=M.length;C<I;++C)m.point((k=M[C])[0],k[1]);else d(z.x,z.n.x,1,m);z=z.n}else{if(V)for(M=z.p.z,C=M.length-1;C>=0;--C)m.point((k=M[C])[0],k[1]);else d(z.x,z.p.x,-1,m);z=z.p}z=z.o,M=z.z,V=!V}while(!z.v);m.lineEnd()}}}function link$1(t){if(n=t.length){for(var n,s=0,d=t[0],m;++s<n;)d.n=m=t[s],m.p=d,d=m;d.n=m=t[0],m.p=d}}function ascending(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function bisector(t){return t.length===1&&(t=ascendingComparator(t)),{left:function(n,s,d,m){for(d==null&&(d=0),m==null&&(m=n.length);d<m;){var v=d+m>>>1;t(n[v],s)<0?d=v+1:m=v}return d},right:function(n,s,d,m){for(d==null&&(d=0),m==null&&(m=n.length);d<m;){var v=d+m>>>1;t(n[v],s)>0?m=v:d=v+1}return d}}}function ascendingComparator(t){return function(n,s){return ascending(t(n),s)}}bisector(ascending);function merge(t){for(var n=t.length,s,d=-1,m=0,v,S;++d<n;)m+=t[d].length;for(v=new Array(m);--n>=0;)for(S=t[n],s=S.length;--s>=0;)v[--m]=S[s];return v}var clipMax=1e9,clipMin=-clipMax;function clipExtent(t,n,s,d){function m(N,M){return t<=N&&N<=s&&n<=M&&M<=d}function v(N,M,k,z){var V=0,H=0;if(N==null||(V=S(N,k))!==(H=S(M,k))||I(N,M)<0^k>0)do z.point(V===0||V===3?t:s,V>1?d:n);while((V=(V+k+4)%4)!==H);else z.point(M[0],M[1])}function S(N,M){return abs$1(N[0]-t)<epsilon$1?M>0?0:3:abs$1(N[0]-s)<epsilon$1?M>0?2:1:abs$1(N[1]-n)<epsilon$1?M>0?1:0:M>0?3:2}function C(N,M){return I(N.x,M.x)}function I(N,M){var k=S(N,1),z=S(M,1);return k!==z?k-z:k===0?M[1]-N[1]:k===1?N[0]-M[0]:k===2?N[1]-M[1]:M[0]-N[0]}return function(N){var M=N,k=clipBuffer(),z,V,H,W,J,K,re,te,ue,se,ge,pe={point:Ee,lineStart:Ne,lineEnd:we,polygonStart:me,polygonEnd:Re};function Ee(Ge,de){m(Ge,de)&&M.point(Ge,de)}function ce(){for(var Ge=0,de=0,Ce=V.length;de<Ce;++de)for(var ke=V[de],We=1,Ve=ke.length,Le=ke[0],Je,He,Pe=Le[0],it=Le[1];We<Ve;++We)Je=Pe,He=it,Le=ke[We],Pe=Le[0],it=Le[1],He<=d?it>d&&(Pe-Je)*(d-He)>(it-He)*(t-Je)&&++Ge:it<=d&&(Pe-Je)*(d-He)<(it-He)*(t-Je)&&--Ge;return Ge}function me(){M=k,z=[],V=[],ge=!0}function Re(){var Ge=ce(),de=ge&&Ge,Ce=(z=merge(z)).length;(de||Ce)&&(N.polygonStart(),de&&(N.lineStart(),v(null,null,1,N),N.lineEnd()),Ce&&clipPolygon(z,C,Ge,v,N),N.polygonEnd()),M=N,z=V=H=null}function Ne(){pe.point=De,V&&V.push(H=[]),se=!0,ue=!1,re=te=NaN}function we(){z&&(De(W,J),K&&ue&&k.rejoin(),z.push(k.result())),pe.point=Ee,ue&&M.lineEnd()}function De(Ge,de){var Ce=m(Ge,de);if(V&&H.push([Ge,de]),se)W=Ge,J=de,K=Ce,se=!1,Ce&&(M.lineStart(),M.point(Ge,de));else if(Ce&&ue)M.point(Ge,de);else{var ke=[re=Math.max(clipMin,Math.min(clipMax,re)),te=Math.max(clipMin,Math.min(clipMax,te))],We=[Ge=Math.max(clipMin,Math.min(clipMax,Ge)),de=Math.max(clipMin,Math.min(clipMax,de))];clipLine(ke,We,t,n,s,d)?(ue||(M.lineStart(),M.point(ke[0],ke[1])),M.point(We[0],We[1]),Ce||M.lineEnd(),ge=!1):Ce&&(M.lineStart(),M.point(Ge,de),ge=!1)}re=Ge,te=de,ue=Ce}return pe}}var sum$2=adder();function polygonContains(t,n){var s=n[0],d=n[1],m=[sin(s),-cos(s),0],v=0,S=0;sum$2.reset();for(var C=0,I=t.length;C<I;++C)if(M=(N=t[C]).length)for(var N,M,k=N[M-1],z=k[0],V=k[1]/2+quarterPi,H=sin(V),W=cos(V),J=0;J<M;++J,z=re,H=ue,W=se,k=K){var K=N[J],re=K[0],te=K[1]/2+quarterPi,ue=sin(te),se=cos(te),ge=re-z,pe=ge>=0?1:-1,Ee=pe*ge,ce=Ee>pi,me=H*ue;if(sum$2.add(atan2(me*pe*sin(Ee),W*se+me*cos(Ee))),v+=ce?ge+pe*tau:ge,ce^z>=s^re>=s){var Re=cartesianCross(cartesian(k),cartesian(K));cartesianNormalizeInPlace(Re);var Ne=cartesianCross(m,Re);cartesianNormalizeInPlace(Ne);var we=(ce^ge>=0?-1:1)*asin(Ne[2]);(d>we||d===we&&(Re[0]||Re[1]))&&(S+=ce^ge>=0?1:-1)}}return(v<-epsilon$1||v<epsilon$1&&sum$2<-epsilon$1)^S&1}adder();function identity(t){return t}adder(),adder();var x0=1/0,y0=x0,x1=-x0,y1=x1,boundsStream={point:boundsPoint,lineStart:noop$1,lineEnd:noop$1,polygonStart:noop$1,polygonEnd:noop$1,result:function(){var t=[[x0,y0],[x1,y1]];return x1=y1=-(y0=x0=1/0),t}};function boundsPoint(t,n){t<x0&&(x0=t),t>x1&&(x1=t),n<y0&&(y0=n),n>y1&&(y1=n)}adder();function clip(t,n,s,d){return function(m,v){var S=n(v),C=m.invert(d[0],d[1]),I=clipBuffer(),N=n(I),M=!1,k,z,V,H={point:W,lineStart:K,lineEnd:re,polygonStart:function(){H.point=te,H.lineStart=ue,H.lineEnd=se,z=[],k=[]},polygonEnd:function(){H.point=W,H.lineStart=K,H.lineEnd=re,z=merge(z);var ge=polygonContains(k,C);z.length?(M||(v.polygonStart(),M=!0),clipPolygon(z,compareIntersection,ge,s,v)):ge&&(M||(v.polygonStart(),M=!0),v.lineStart(),s(null,null,1,v),v.lineEnd()),M&&(v.polygonEnd(),M=!1),z=k=null},sphere:function(){v.polygonStart(),v.lineStart(),s(null,null,1,v),v.lineEnd(),v.polygonEnd()}};function W(ge,pe){var Ee=m(ge,pe);t(ge=Ee[0],pe=Ee[1])&&v.point(ge,pe)}function J(ge,pe){var Ee=m(ge,pe);S.point(Ee[0],Ee[1])}function K(){H.point=J,S.lineStart()}function re(){H.point=W,S.lineEnd()}function te(ge,pe){V.push([ge,pe]);var Ee=m(ge,pe);N.point(Ee[0],Ee[1])}function ue(){N.lineStart(),V=[]}function se(){te(V[0][0],V[0][1]),N.lineEnd();var ge=N.clean(),pe=I.result(),Ee,ce=pe.length,me,Re,Ne;if(V.pop(),k.push(V),V=null,!!ce){if(ge&1){if(Re=pe[0],(me=Re.length-1)>0){for(M||(v.polygonStart(),M=!0),v.lineStart(),Ee=0;Ee<me;++Ee)v.point((Ne=Re[Ee])[0],Ne[1]);v.lineEnd()}return}ce>1&&ge&2&&pe.push(pe.pop().concat(pe.shift())),z.push(pe.filter(validSegment))}}return H}}function validSegment(t){return t.length>1}function compareIntersection(t,n){return((t=t.x)[0]<0?t[1]-halfPi-epsilon$1:halfPi-t[1])-((n=n.x)[0]<0?n[1]-halfPi-epsilon$1:halfPi-n[1])}const clipAntimeridian=clip(function(){return!0},clipAntimeridianLine,clipAntimeridianInterpolate,[-pi,-halfPi]);function clipAntimeridianLine(t){var n=NaN,s=NaN,d=NaN,m;return{lineStart:function(){t.lineStart(),m=1},point:function(v,S){var C=v>0?pi:-pi,I=abs$1(v-n);abs$1(I-pi)<epsilon$1?(t.point(n,s=(s+S)/2>0?halfPi:-halfPi),t.point(d,s),t.lineEnd(),t.lineStart(),t.point(C,s),t.point(v,s),m=0):d!==C&&I>=pi&&(abs$1(n-d)<epsilon$1&&(n-=d*epsilon$1),abs$1(v-C)<epsilon$1&&(v-=C*epsilon$1),s=clipAntimeridianIntersect(n,s,v,S),t.point(d,s),t.lineEnd(),t.lineStart(),t.point(C,s),m=0),t.point(n=v,s=S),d=C},lineEnd:function(){t.lineEnd(),n=s=NaN},clean:function(){return 2-m}}}function clipAntimeridianIntersect(t,n,s,d){var m,v,S=sin(t-s);return abs$1(S)>epsilon$1?atan((sin(n)*(v=cos(d))*sin(s)-sin(d)*(m=cos(n))*sin(t))/(m*v*S)):(n+d)/2}function clipAntimeridianInterpolate(t,n,s,d){var m;if(t==null)m=s*halfPi,d.point(-pi,m),d.point(0,m),d.point(pi,m),d.point(pi,0),d.point(pi,-m),d.point(0,-m),d.point(-pi,-m),d.point(-pi,0),d.point(-pi,m);else if(abs$1(t[0]-n[0])>epsilon$1){var v=t[0]<n[0]?pi:-pi;m=s*v/2,d.point(-v,m),d.point(0,m),d.point(v,m)}else d.point(n[0],n[1])}function clipCircle(t,n){var s=cos(t),d=s>0,m=abs$1(s)>epsilon$1;function v(M,k,z,V){circleStream(V,t,n,z,M,k)}function S(M,k){return cos(M)*cos(k)>s}function C(M){var k,z,V,H,W;return{lineStart:function(){H=V=!1,W=1},point:function(J,K){var re=[J,K],te,ue=S(J,K),se=d?ue?0:N(J,K):ue?N(J+(J<0?pi:-pi),K):0;if(!k&&(H=V=ue)&&M.lineStart(),ue!==V&&(te=I(k,re),(!te||pointEqual(k,te)||pointEqual(re,te))&&(re[0]+=epsilon$1,re[1]+=epsilon$1,ue=S(re[0],re[1]))),ue!==V)W=0,ue?(M.lineStart(),te=I(re,k),M.point(te[0],te[1])):(te=I(k,re),M.point(te[0],te[1]),M.lineEnd()),k=te;else if(m&&k&&d^ue){var ge;!(se&z)&&(ge=I(re,k,!0))&&(W=0,d?(M.lineStart(),M.point(ge[0][0],ge[0][1]),M.point(ge[1][0],ge[1][1]),M.lineEnd()):(M.point(ge[1][0],ge[1][1]),M.lineEnd(),M.lineStart(),M.point(ge[0][0],ge[0][1])))}ue&&(!k||!pointEqual(k,re))&&M.point(re[0],re[1]),k=re,V=ue,z=se},lineEnd:function(){V&&M.lineEnd(),k=null},clean:function(){return W|(H&&V)<<1}}}function I(M,k,z){var V=cartesian(M),H=cartesian(k),W=[1,0,0],J=cartesianCross(V,H),K=cartesianDot(J,J),re=J[0],te=K-re*re;if(!te)return!z&&M;var ue=s*K/te,se=-s*re/te,ge=cartesianCross(W,J),pe=cartesianScale(W,ue),Ee=cartesianScale(J,se);cartesianAddInPlace(pe,Ee);var ce=ge,me=cartesianDot(pe,ce),Re=cartesianDot(ce,ce),Ne=me*me-Re*(cartesianDot(pe,pe)-1);if(!(Ne<0)){var we=sqrt(Ne),De=cartesianScale(ce,(-me-we)/Re);if(cartesianAddInPlace(De,pe),De=spherical(De),!z)return De;var Ge=M[0],de=k[0],Ce=M[1],ke=k[1],We;de<Ge&&(We=Ge,Ge=de,de=We);var Ve=de-Ge,Le=abs$1(Ve-pi)<epsilon$1,Je=Le||Ve<epsilon$1;if(!Le&&ke<Ce&&(We=Ce,Ce=ke,ke=We),Je?Le?Ce+ke>0^De[1]<(abs$1(De[0]-Ge)<epsilon$1?Ce:ke):Ce<=De[1]&&De[1]<=ke:Ve>pi^(Ge<=De[0]&&De[0]<=de)){var He=cartesianScale(ce,(-me+we)/Re);return cartesianAddInPlace(He,pe),[De,spherical(He)]}}}function N(M,k){var z=d?t:pi-t,V=0;return M<-z?V|=1:M>z&&(V|=2),k<-z?V|=4:k>z&&(V|=8),V}return clip(S,C,v,d?[0,-t]:[-pi,t-pi])}function transformer(t){return function(n){var s=new TransformStream;for(var d in t)s[d]=t[d];return s.stream=n,s}}function TransformStream(){}TransformStream.prototype={constructor:TransformStream,point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function fitExtent(t,n,s){var d=n[1][0]-n[0][0],m=n[1][1]-n[0][1],v=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),v!=null&&t.clipExtent(null),geoStream(s,t.stream(boundsStream));var S=boundsStream.result(),C=Math.min(d/(S[1][0]-S[0][0]),m/(S[1][1]-S[0][1])),I=+n[0][0]+(d-C*(S[1][0]+S[0][0]))/2,N=+n[0][1]+(m-C*(S[1][1]+S[0][1]))/2;return v!=null&&t.clipExtent(v),t.scale(C*150).translate([I,N])}function fitSize(t,n,s){return fitExtent(t,[[0,0],n],s)}var maxDepth=16,cosMinDistance=cos(30*radians);function resample$1(t,n){return+n?resample(t,n):resampleNone(t)}function resampleNone(t){return transformer({point:function(n,s){n=t(n,s),this.stream.point(n[0],n[1])}})}function resample(t,n){function s(d,m,v,S,C,I,N,M,k,z,V,H,W,J){var K=N-d,re=M-m,te=K*K+re*re;if(te>4*n&&W--){var ue=S+z,se=C+V,ge=I+H,pe=sqrt(ue*ue+se*se+ge*ge),Ee=asin(ge/=pe),ce=abs$1(abs$1(ge)-1)<epsilon$1||abs$1(v-k)<epsilon$1?(v+k)/2:atan2(se,ue),me=t(ce,Ee),Re=me[0],Ne=me[1],we=Re-d,De=Ne-m,Ge=re*we-K*De;(Ge*Ge/te>n||abs$1((K*we+re*De)/te-.5)>.3||S*z+C*V+I*H<cosMinDistance)&&(s(d,m,v,S,C,I,Re,Ne,ce,ue/=pe,se/=pe,ge,W,J),J.point(Re,Ne),s(Re,Ne,ce,ue,se,ge,N,M,k,z,V,H,W,J))}}return function(d){var m,v,S,C,I,N,M,k,z,V,H,W,J={point:K,lineStart:re,lineEnd:ue,polygonStart:function(){d.polygonStart(),J.lineStart=se},polygonEnd:function(){d.polygonEnd(),J.lineStart=re}};function K(Ee,ce){Ee=t(Ee,ce),d.point(Ee[0],Ee[1])}function re(){k=NaN,J.point=te,d.lineStart()}function te(Ee,ce){var me=cartesian([Ee,ce]),Re=t(Ee,ce);s(k,z,M,V,H,W,k=Re[0],z=Re[1],M=Ee,V=me[0],H=me[1],W=me[2],maxDepth,d),d.point(k,z)}function ue(){J.point=K,d.lineEnd()}function se(){re(),J.point=ge,J.lineEnd=pe}function ge(Ee,ce){te(m=Ee,ce),v=k,S=z,C=V,I=H,N=W,J.point=te}function pe(){s(k,z,M,V,H,W,v,S,m,C,I,N,maxDepth,d),J.lineEnd=ue,ue()}return J}}var transformRadians=transformer({point:function(t,n){this.stream.point(t*radians,n*radians)}});function projection(t){return projectionMutator(function(){return t})()}function projectionMutator(t){var n,s=150,d=480,m=250,v,S,C=0,I=0,N=0,M=0,k=0,z,V,H=null,W=clipAntimeridian,J=null,K,re,te,ue=identity,se=.5,ge=resample$1(Re,se),pe,Ee;function ce(De){return De=V(De[0]*radians,De[1]*radians),[De[0]*s+v,S-De[1]*s]}function me(De){return De=V.invert((De[0]-v)/s,(S-De[1])/s),De&&[De[0]*degrees,De[1]*degrees]}function Re(De,Ge){return De=n(De,Ge),[De[0]*s+v,S-De[1]*s]}ce.stream=function(De){return pe&&Ee===De?pe:pe=transformRadians(W(z,ge(ue(Ee=De))))},ce.clipAngle=function(De){return arguments.length?(W=+De?clipCircle(H=De*radians,6*radians):(H=null,clipAntimeridian),we()):H*degrees},ce.clipExtent=function(De){return arguments.length?(ue=De==null?(J=K=re=te=null,identity):clipExtent(J=+De[0][0],K=+De[0][1],re=+De[1][0],te=+De[1][1]),we()):J==null?null:[[J,K],[re,te]]},ce.scale=function(De){return arguments.length?(s=+De,Ne()):s},ce.translate=function(De){return arguments.length?(d=+De[0],m=+De[1],Ne()):[d,m]},ce.center=function(De){return arguments.length?(C=De[0]%360*radians,I=De[1]%360*radians,Ne()):[C*degrees,I*degrees]},ce.rotate=function(De){return arguments.length?(N=De[0]%360*radians,M=De[1]%360*radians,k=De.length>2?De[2]%360*radians:0,Ne()):[N*degrees,M*degrees,k*degrees]},ce.precision=function(De){return arguments.length?(ge=resample$1(Re,se=De*De),we()):sqrt(se)},ce.fitExtent=function(De,Ge){return fitExtent(ce,De,Ge)},ce.fitSize=function(De,Ge){return fitSize(ce,De,Ge)};function Ne(){V=compose(z=rotateRadians(N,M,k),n);var De=n(C,I);return v=d-De[0]*s,S=m+De[1]*s,we()}function we(){return pe=Ee=null,ce}return function(){return n=t.apply(this,arguments),ce.invert=n.invert&&me,Ne()}}function azimuthalRaw(t){return function(n,s){var d=cos(n),m=cos(s),v=t(d*m);return[v*m*sin(n),v*sin(s)]}}function azimuthalInvert(t){return function(n,s){var d=sqrt(n*n+s*s),m=t(d),v=sin(m),S=cos(m);return[atan2(n*v,d*S),asin(d&&s*v/d)]}}var azimuthalEqualAreaRaw=azimuthalRaw(function(t){return sqrt(2/(1+t))});azimuthalEqualAreaRaw.invert=azimuthalInvert(function(t){return 2*asin(t/2)});var azimuthalEquidistantRaw=azimuthalRaw(function(t){return(t=acos(t))&&t/sin(t)});azimuthalEquidistantRaw.invert=azimuthalInvert(function(t){return t});function geoAzimuthalEquidistant(){return projection(azimuthalEquidistantRaw).scale(79.4188).clipAngle(180-.001)}function equirectangularRaw(t,n){return[t,n]}equirectangularRaw.invert=equirectangularRaw;var{BufferOp,GeoJSONReader,GeoJSONWriter}=jsts;function buffer(t,n,s){s=s||{};var d=s.units||"kilometers",m=s.steps||8;if(!t)throw new Error("geojson is required");if(typeof s!="object")throw new Error("options must be an object");if(typeof m!="number")throw new Error("steps must be an number");if(n===void 0)throw new Error("radius is required");if(m<=0)throw new Error("steps must be greater than 0");var v=[];switch(t.type){case"GeometryCollection":return geomEach(t,function(S){var C=bufferFeature(S,n,d,m);C&&v.push(C)}),featureCollection(v);case"FeatureCollection":return featureEach(t,function(S){var C=bufferFeature(S,n,d,m);C&&featureEach(C,function(I){I&&v.push(I)})}),featureCollection(v)}return bufferFeature(t,n,d,m)}function bufferFeature(t,n,s,d){var m=t.properties||{},v=t.type==="Feature"?t.geometry:t;if(v.type==="GeometryCollection"){var S=[];return geomEach(t,function(W){var J=bufferFeature(W,n,s,d);J&&S.push(J)}),featureCollection(S)}var C=defineProjection(v),I={type:v.type,coordinates:projectCoords(v.coordinates,C)},N=new GeoJSONReader,M=N.read(I),k=radiansToLength(lengthToRadians(n,s),"meters"),z=BufferOp.bufferOp(M,k,d),V=new GeoJSONWriter;if(z=V.write(z),!coordsIsNaN(z.coordinates)){var H={type:z.type,coordinates:unprojectCoords(z.coordinates,C)};return feature(H,m)}}function coordsIsNaN(t){return Array.isArray(t[0])?coordsIsNaN(t[0]):isNaN(t[0])}function projectCoords(t,n){return typeof t[0]!="object"?n(t):t.map(function(s){return projectCoords(s,n)})}function unprojectCoords(t,n){return typeof t[0]!="object"?n.invert(t):t.map(function(s){return unprojectCoords(s,n)})}function defineProjection(t){var n=center(t).geometry.coordinates,s=[-n[0],-n[1]];return geoAzimuthalEquidistant().rotate(s).scale(earthRadius)}var index_default$1=buffer;const identifyBundle={name:"identify",getReducer(){const t={shouldFire:!1,coordinates:null,listeners:[],results:[]};return(n=t,{type:s,payload:d})=>{switch(s){case"IDENTIFY_COLLECTION_ADDED":case"IDENTIFY_SHOULD_FIRE":case"IDENTIFY_COORDINATES_SET":case"IDENTIFY_STARTED":case"IDENTIFY_ERROR":case"IDENTIFY_SUCCESS":return Object.assign({},n,d);default:return n}}},doIdentifyAddCollection:t=>({dispatch:n,store:s})=>{const d=s.selectIdentifyListeners();t.onIdentify&&d.push(t.onIdentify),n({type:"IDENTIFY_COLLECTION_ADDED",payload:{listeners:d}})},doIdentifyShouldFire:()=>({dispatch:t})=>{t({type:"IDENTIFY_SHOULD_FIRE",payload:{shouldFire:!0}})},doIdentifySetCoords:t=>({dispatch:n,store:s})=>{t.transform("EPSG:3857","EPSG:4326");const d=t.getCoordinates();n({type:"IDENTIFY_COORDINATES_SET",payload:{coordinates:d,results:[],shouldFire:!0}})},doSetIdentifyFeature:()=>({store:t})=>{const n=t.selectIdentifyCoordinates(),s=t.selectResolution(),d=t.selectIdentifyBufferValue();let m=null;if(d>0)m=t.selectIdentifyBufferFeature();else if(typeof n[0]=="number"){const v=point(n),S=s*5/1e3;m=index_default$1(v,S,{units:"kilometers"})}else m=polygon(n);return m},doIdentifyFire:()=>({dispatch:t,store:n})=>{t({type:"IDENTIFY_STARTED",payload:{shouldFire:!1}}),n.doSetCursor("wait");const s=n.selectIdentifyListeners();parallel(s,(d,m)=>{if(d)return n.doSetCursor("default"),t({type:"IDENTIFY_ERROR",payload:{err:d,notification:{level:"danger",title:"Identify Error",message:`${JSON.stringify(d)}`}}});{const v=flatten(m);t({type:"IDENTIFY_SUCCESS",payload:{results:v}}),n.doSetCursor("default")}})},selectIdentifyCoordinates:t=>t.identify.coordinates,selectIdentifyListeners:t=>t.identify.listeners,selectIdentifyResults:t=>t.identify.results,reactIdentifyShouldFire:t=>{if(t.identify.shouldFire)return{actionCreator:"doIdentifyFire"}}};window.olStyle={Style,Fill,Stroke,Circle,Text,RegularShape};const defaultVectorStyle=[new Style({stroke:new Stroke({color:"rgba(255, 255, 255, 0.9)",width:4}),fill:new Fill({color:"rgba(255, 255, 255, 0.2)"})}),new Style({stroke:new Stroke({color:"rgba(0, 0, 0, 0.8)",lineDash:[4,4],width:2})}),new Style({image:new Circle({radius:8,stroke:new Stroke({color:"rgba(0, 0, 0, 0.8)",width:2}),fill:new Fill({color:"rgba(255, 255, 255, 1)"})})})],vectorStyleCreator=options=>options.styleFn?eval(options.styleFn):options.style?options.style:options.styleAttributes?(t,n)=>{const s=t.get("fillColor"),d=t.get("strokeColor"),m=t.get("strokeWidth"),v=t.get("strokeDash"),S=t.get("markerRadius"),C=t.get("markerColor"),I=t.get("markerStrokeColor"),N=t.get("markerStrokeWidth"),M=t.get("markerFillColor"),k=new Style;return s&&k.setFill(new Fill({color:s})),(d||m||v)&&k.setStroke(new Stroke({color:d||"rgba(0, 0, 0, 0.5)",lineDash:v?v.split(","):[10,10],width:m||2})),(C||S||I||N||M)&&k.setImage(new Circle({radius:S||3,stroke:new Stroke({color:I||"rgba(0, 0, 0, 0.7)",width:N||0}),fill:new Fill({color:M||"rgba(255, 255, 255, 0.2)"})})),k}:defaultVectorStyle,esrijsonFormat$1=new EsriJSON,origin=window.location.origin,isCrossOrigin=t=>{if(window.MSInputMethodContext&&document.documentMode)return null;if(t){if(t.indexOf(origin)===-1)return"anonymous"}else return null};function formatLabeledUrl(t){const n=t.indexOf("?")===-1?"?":"&";return`${t}${n}label=true`}function getXyzSource(t){const s=!!t.labelDefault?formatLabeledUrl(t.url):t.url;return new XYZ({attributions:t.attributions||t.attribution,attributionsCollapsible:!0,maxZoom:t.maxzoom,minZoom:t.minzoom,url:s,crossOrigin:isCrossOrigin(t.url)})}function getArcGISTiledSource(t){return new TileArcGISRest({url:t.url,params:{LAYERS:"show:"+t.layerList},crossOrigin:isCrossOrigin(t.url)})}function getArcGISImageSource(t){return new ImageArcGISRest({url:t.url,params:{LAYERS:"show:"+t.layerList},crossOrigin:isCrossOrigin(t.url)})}function getWmsSource(t){const n=t.params||t;return n.LAYERS=t.layerList||t.LAYERS,t.tiled===!0?new TileWMS({url:t.url,params:n,crossOrigin:isCrossOrigin(t.url)}):new ImageWMS({url:t.url,params:n,crossOrigin:isCrossOrigin(t.url)})}function getLocalVectorSource(t){const n=new VectorSrc,{features:s}=t;return s&&n.addFeatures(s),n}function getRemoteVectorSource(t){return new VectorSrc({format:new GeoJSON,url:t.url})}function getEsriVectorSource(t){let n=t.url;const s=t.layerList;/\/$/.test(n)||(n+="/");const m=new VectorSrc({loader:function(v,S,C){const I=encodeURIComponent(`{"xmin":${v[0]},"ymin":${v[1]},"xmax":${v[2]},"ymax":${v[3]},"spatialReference":{"wkid":102100}}`),N=`${n}${s}/query/?f=json&returnGeometry=true&spatialRel=esriSpatialRelIntersects&geometry=${I}&geometryType=esriGeometryEnvelope&inSR=102100&outFields=*&outSR=102100`;xhr.get(N,(M,k,z)=>{if(M)return console.log(M);const V=JSON.parse(z),H=esrijsonFormat$1.readFeatures(V,{featureProjection:C});H.length>0&&m.addFeatures(H)})},strategy:loadingstrategy.tile(tilegrid.createXYZ({tileSize:512}))});return m}function getTileLayer(t,n){return new Tile({source:n,visible:t.visible,zIndex:t.zIndex||0,opacity:t.opacity||1,maxZoom:t.maxzoom,minZoom:t.minzoom})}function getImageLayer(t,n){return new Image$1({source:n,visible:t.visible,zIndex:t.zIndex||0,opacity:t.opacity||1,maxZoom:t.maxzoom,minZoom:t.minzoom})}function getLocalVectorLayer(t,n){return new Vector({altitudeMode:"clampToGround",source:n,visible:t.visible,style:vectorStyleCreator(t),zIndex:t.zIndex||0,opacity:t.opacity||1,maxZoom:t.maxzoom,minZoom:t.minzoom})}function getRemoteVectorLayer(t,n){const s=new Vector({altitudeMode:"clampToGround",source:n,visible:t.visible,style:vectorStyleCreator(t),zIndex:t.zIndex||0,opacity:t.opacity||1,renderMode:"image",maxZoom:t.maxzoom,minZoom:t.minzoom});return t.uid,s}function getEsriVectorLayer(options,source,map){const lyr=new Vector({altitudeMode:"clampToGround",source,visible:options.visible,zIndex:options.zIndex||0,opacity:options.opacity||1,renderMode:"image",maxZoom:options.maxzoom,minZoom:options.minzoom}),proj=map?map.getView().getProjection():null;if(options.styleFn){const styleFn=eval(options.styleFn);lyr.setStyle(styleFn[0])}else olEsriStyle.createStyleFunctionFromUrl(`${options.url}/${options.layerList}`,proj).then(t=>{lyr.setStyle(t)}).catch(function(t){console.log("$$$$$$$$$$$$$$$$$$$$$$$$"),console.log(`${options.url}/${options.layerList}: ${t}`),console.log(t)});return lyr}function getSource(t){switch(t.serviceType){case"XYZ":return getXyzSource(t);case"ArcGIS":return getArcGISTiledSource(t);case"ArcGISImage":return getArcGISImageSource(t);case"WMS":return getWmsSource(t);case"LocalVector":return getLocalVectorSource(t);case"RemoteVector":return getRemoteVectorSource(t);case"EsriFeatureService":return getEsriVectorSource(t);default:return null}}function getLayer(t,n,s){switch(n||(n=getSource(t)),t.serviceType){case"XYZ":return getTileLayer(t,n);case"ArcGIS":return getTileLayer(t,n);case"ArcGISImage":return getImageLayer(t,n);case"WMS":return getImageLayer(t,n);case"LocalVector":return getLocalVectorLayer(t,n);case"RemoteVector":return getRemoteVectorLayer(t,n);case"EsriFeatureService":return getEsriVectorLayer(t,n,s);default:return null}}const mapBasemapBundle={name:"basemaps",getReducer(){const t={shouldCheckDefault:!1,activeBasemap:0,idx:0};return(n=t,{type:s,payload:d})=>{switch(s){case"BASEMAP_CHANGED":case"BASEMAP_CHECKING_DEFAULT":return Object.assign({},n,d);case"MAP_INITIALIZED":return Object.assign({},n,{shouldCheckDefault:!0});default:return n}}},doBasemapsCheckDefault:()=>({dispatch:t,store:n})=>{t({type:"BASEMAP_CHECKING_DEFAULT",payload:{shouldCheckDefault:!1}});const s=n.selectDefaultConfig();s.map.hasOwnProperty("basemap")&&n.doChangeBasemap(s.map.basemap)},doChangeBasemap:t=>({dispatch:n,store:s})=>{let d=s.selectActiveBasemap();const m=s.selectBasemapList(),v=s.selectMap(),S=m[t];S.serviceType||(S.serviceType="XYZ");const C=getSource(S);d||(d=getLayer({serviceType:"XYZ",visible:!0})),v.removeLayer(d),d.setSource(C),v.getLayers().insertAt(0,d),n({type:"BASEMAP_CHANGED",payload:{activeBasemap:d,idx:t}})},selectActiveBasemap:t=>t.basemaps.activeBasemap,selectActiveBasemapIdx:t=>t.basemaps.idx,reactBasemapsShouldCheckDefault:t=>{if(t.basemaps.shouldCheckDefault)return{actionCreator:"doBasemapsCheckDefault"}}},createOlMapBundle=t=>{const s=Object.assign({},{name:"map",center:[-98.579,39.828],zoom:5,rotation:0,minZoom:0,maxZoom:22,addons:{},limitMapExtent:!1},t);return Object.assign({},{name:s.name,getReducer:()=>{const d={map:null,opts:null,geoProjection:proj.get("EPSG:4326"),webProjection:proj.get("EPSG:3857"),center:s.center,zoom:s.zoom,rotation:s.rotation,minZoom:s.minZoom,maxZoom:s.maxZoom,limitMapExtent:s.limitMapExtent,shouldInitialize:!1,shouldResetViewState:!1,shouldUpdateViewState:!1};return(m=d,{type:v,payload:S})=>{if(console.log(v,S),s.additionalActions.indexOf(v)!==-1)return Object.assign({},m,S);switch(v){case"MAP_INITIALIZED":case"MAP_RESET_MAP_VIEW":case"MAP_UPDATED_VIEW_STATE_STARTED":case"MAP_UPDATED_VIEW_STATE_FINISHED":case"MAP_LOADING":case"MAP_LOADED":return Object.assign({},m,S);default:return m}}},doMapInitialize:(d,m)=>({dispatch:v,store:S})=>{if(S.selectMap())return;const I=S.selectMapGeoProjection(),N=S.selectMapWebProjection(),k=(m.hasOwnProperty("limitMapExtent")?m.limitMapExtent:null)?proj.transformExtent([-180,-85,180,85],I,N):null,z=m.hasOwnProperty("center")?m.center:S.selectMapCenter(),V=m.hasOwnProperty("zoom")?m.zoom:S.selectMapZoom(),H=m.hasOwnProperty("rotation")?m.rotation:S.selectMapRotation(),W=m.hasOwnProperty("minZoom")?m.minZoom:S.selectMapMinZoom(),J=m.hasOwnProperty("maxZoom")?m.maxZoom:S.selectMapMaxZoom();console.log("setting up at",m.center,z);const K={center:proj.transform(z,I,N),zoom:V,rotation:H,minZoom:W,maxZoom:J};k&&(K.extent=k);const re=new View(K),te=new olMap({controls:[new ScaleBar({units:"us"})],target:d,view:re});te.on("moveend",debounce(S.doMapUpdateViewState,200)),te.on("precompose",debounce(S.doMapPreCompose,50)),te.on("rendercomplete",debounce(S.doMapRenderComplete,200)),v({type:"MAP_INITIALIZED",payload:{map:te,opts:m}})},doMapPreCompose:()=>({dispatch:d})=>{d({type:"MAP_LOADING"})},doMapRenderComplete:()=>({dispatch:d})=>{d({type:"MAP_LOADED"})},doMapUpdateSize:()=>({dispatch:d,store:m})=>{const v=m.selectMap();v&&v.updateSize()},doMapUpdateViewState:()=>({dispatch:d,store:m})=>{d({type:"MAP_UPDATED_VIEW_STATE_STARTED",payload:{shouldUpdateViewState:!1}});const v=m.selectMapGeoProjection(),S=m.selectMapWebProjection(),I=m.selectMap().getView(),N=proj.transform(I.getCenter(),S,v),M=I.getRotation()*(180/Math.PI),k=I.getZoom(),z=I.getMinZoom(),V=I.getMaxZoom();d({type:"MAP_UPDATED_VIEW_STATE_FINISHED",payload:{center:N,rotation:M,zoom:k,minZoom:z,maxZoom:V}})},doMapResetViewState:()=>({dispatch:d,store:m})=>{d({type:"MAP_RESET_MAP_VIEW",payload:{shouldResetViewState:!1}});const{center:v,zoom:S,rotation:C}=s,N=m.selectMap().getView(),M=m.selectMapGeoProjection(),k=m.selectMapWebProjection();N.animate({center:proj.transform(v,M,k),zoom:S,rotation:C},200)},doMapZoomTo:(d,m)=>({store:v})=>{v.selectMap().getView().animate({zoom:m||10,center:proj.fromLonLat(d)})},selectMap:d=>d.map.map,selectMapOpts:d=>d.map.opts,selectMapGeoProjection:d=>d.map.geoProjection,selectMapWebProjection:d=>d.map.webProjection,selectMapCenter:d=>d.map.center,selectMapZoom:reduxBundler.createSelector("selectAppTime","selectMap",(d,m)=>m?m.getView().getZoom():0),selectMapRotation:d=>d.map.rotation,selectMapMinZoom:d=>d.map.minZoom,selectMapMaxZoom:d=>d.map.maxZoom,reactMapShouldResetViewState:d=>{if(d.map.shouldResetViewState)return{actionCreator:"doMapResetViewState"}},reactMapShouldUpdateViewState:d=>{if(d.map.shouldUpdateViewState)return{actionCreator:"doMapUpdateViewState"}},persistActions:s.persistMapState?["MAP_UPDATED_VIEW_STATE_FINISHED","MAP_RESET_MAP_VIEW"]:[],init:d=>{window.addEventListener("resize",d.doMapUpdateSize)}},s.addons)},mapCoreBundle=createOlMapBundle({additionalActions:["MAP_CURSOR_CHANGED"],addons:{doSetCursor:t=>({dispatch:n})=>{let s=t;s||(s="grab"),n({type:"MAP_CURSOR_CHANGED",payload:{cursor:s}})},selectCursorClass:t=>t.map.cursor,selectView:reduxBundler.createSelector("selectMap",t=>t?t.getView():null)}}),mapInteractionBundle={name:"interactions",getReducer(){const t={active:[]};return(n=t,{type:s,payload:d})=>s==="INTERACTION_SET"?Object.assign({},n,{active:d}):s==="INTERACTION_UNSET"?Object.assign({},n,{active:[]}):n},doSetInteraction:t=>({dispatch:n,store:s})=>{const d=s.selectActiveInteractions();s.selectMap().addInteraction(t);const v=[t].concat(d);n({type:"INTERACTION_SET",payload:v})},doUnsetInteractions:()=>({dispatch:t,store:n})=>{const s=n.selectActiveInteractions(),d=n.selectMap();s.length&&s.forEach(m=>{m.setActive(!1),d.removeInteraction(m)}),t({type:"INTERACTION_UNSET"})},selectActiveInteractions:t=>t.interactions.active},zoomLevels=[5e8,25e7,15e7,7e7,35e6,15e6,1e7,4e6,2e6,1e6,5e5,25e4,15e4,7e4,35e3,15e3,8e3,4e3,2e3,1e3,500],scaleToMapZoom=(t,n)=>{if(!t)return n;if(t>=zoomLevels[0])return 0;if(t<zoomLevels[zoomLevels.length-1])return zoomLevels.length-1;let s=0;for(var d=1;d<zoomLevels.length;d++)if(t>=zoomLevels[d]&&t<zoomLevels[d-1]){s=d;break}return s},createNode=(t,n)=>(t.type||(t.type=t.serviceType||"Folder"),t.uid||(t.uid=uuid.v4()),t.minzoom||(t.minzoom=scaleToMapZoom(t.maxscale,0)),t.maxzoom||(t.maxzoom=scaleToMapZoom(t.minscale,20)),{id:t.id,teamDatasetId:t.teamDatasetId,uid:t.uid,parent:null,children:[],root:t.root||!1,leaf:t.type!=="Folder",collapsed:t.collapsed||!0,visible:t.visible||!1,sortOrder:t.layerOrder||0,displayName:t.displayName,type:t.type,geometryType:t.geometryType,layerList:t.layerList,mapLayer:t.type!=="Folder"?t.mapLayer||getLayer(t,null,n):null,labelsOn:t.labelsOn?t.labelsOn:!!t.labelDefault,labelDefault:!!t.labelDefault,labelEnabled:!!t.labelEnabled,url:t.url,info:t.info,identifyType:t.identifyType,identifyFields:t.identifyFields,identifyRenameColums:t.identifyRenameColums,identifyFormatColumns:t.identifyFormatColumns,legend:t.legend,legendOverride:!!t.legendOverride,passFilter:!0,zoomTo:!!t.zoomTo,minzoom:t.minzoom,maxzoom:t.maxzoom,styleFn:t.styleFn,favorite:!1,userDefaultLayer:!1,selectAllLayers:t.selectAllLayers,layerDescription:t.layerDescription,attributions:t.attributions,moreInfo:t.moreInfo,resourceDownload:t.resourceDownload,hoverText:t.hoverText,folderHoverText:t.folderHoverText,folderURL:t.folderURL,groupTag:t.groupTag,layerFunction:t.layerFunction,layerParams:t.layerParams}),isParentOf=(t,n)=>{let s=[];function d(m){m.parent&&(s.push(m.parent),d(m.parent))}return d(n),s.indexOf(t)!==-1},removeFromParent=t=>{const n=t.parent,s=n.children.indexOf(t);n.children.splice(s,1)},insertNodeAt=(t,n,s)=>{t.parent=n,n.children.splice(s,0,t)},mapLayersBundle={defaultParentUid:null,name:"layers",getReducer(){const t={appTime:null,layers:{},idMap:{},resetNeeded:!1,filterString:"",showFilter:!1,favoriteLayers:[],userDefaultLayers:[],overrideSortLayerOrder:!1,sortOrderStatus:!1};return(n=t,{type:s,payload:d})=>s==="LAYERS_LIST_UPDATED"?Object.assign({},n,{appTime:new Date,layers:d,resetNeeded:!0}):s==="LAYERS_IDMAP_UPDATED"?Object.assign({},n,{appTime:new Date,idMap:d}):s==="LAYERS_ORDER_UPDATED"?Object.assign({},n,{resetNeeded:!1}):s==="LAYERS_ORDER_OVERRIDE_SORT_ORDER"?Object.assign({},n,d):s==="LAYERS_TOGGLE_FILTER"?Object.assign({},n,d):s==="LAYERS_FILTER_CHANGED"?Object.assign({},n,d):s==="LAYERS_FAVORITES_LIST_UPDATED"?Object.assign({},n,d):s==="LAYERS_USER_DEFAULT_LAYERS_LIST_UPDATED"?Object.assign({},n,d):s==="SORT_ORDER_NOW_SHOWING"?Object.assign({},n,d):n},doLayersToggleFilter:t=>({dispatch:n})=>{n({type:"LAYERS_TOGGLE_FILTER",payload:{showFilter:t}})},doLayersUpdateFilter:t=>({dispatch:n,store:s})=>{const d=s.selectLayers();function m(S){S.passFilter=!0,S.children&&S.children.length&&S.children.forEach(m)}function v(S){S.passFilter=!0,t&&(S.collapsed=!1),S.parent&&v(S.parent)}Object.keys(d).forEach(S=>{const C=d[S];C.passFilter=!1;const I=C.displayName.toUpperCase().indexOf(t.toUpperCase())!==-1;C.groupTag&&C.groupTag.length>0&&C.groupTag.forEach(N=>{N&&N.toUpperCase().indexOf(t.toUpperCase())!==-1&&(C.passFilter=!0)}),I&&(C.passFilter=!0)}),Object.keys(d).forEach(S=>{const C=d[S];C.passFilter&&(m(C),v(C))}),console.log("filtered layers",d),n({type:"LAYERS_FILTER_CHANGED",payload:{filterString:t,layers:Object.assign({},d)}})},doAddLayer:t=>({dispatch:n,store:s})=>{const d=s.selectLayers(),m=s.selectIdMap(),v=s.selectMap(),S=createNode(t,v);if(t.id){const I=Object.assign({},m,{[t.id]:S.uid});n({type:"LAYERS_IDMAP_UPDATED",payload:I})}if(t.parentUid){const I=d[t.parentUid];S.parent=I,I.children.push(S)}if(S.mapLayer&&(v.addLayer(S.mapLayer),console.log("tried to add layer with zoomto = ",S.zoomTo),S.zoomTo)){const I=S.mapLayer.getSource();v.getView().fit(I.getExtent())}const C=Object.assign({},d,{[S.uid]:S});n({type:"LAYERS_LIST_UPDATED",payload:C})},doActivateUserDefaultLayers:()=>({dispatch:t,store:n})=>{const s=n.selectUserDefaultLayers(),d=n.selectLayers();s.forEach(m=>{const v=d[m.uid];v&&v.mapLayer&&(v.visible=!0,v.mapLayer.setVisible(!0))}),t({type:"LAYERS_LIST_UPDATED",payload:Object.assign({},d)})},doAddLayersBulk:t=>({dispatch:n,store:s})=>{const d=s.selectTreeRootNode(),m=s.selectLayers(),v=s.selectIdMap(),S=s.selectMap();for(var C=0;C<t.length;C++){const I=t[C];if(!I||!I.id)break;const N=createNode(I,S);v[I.id]=N.uid,m[N.uid]=N,N.mapLayer&&S&&S.addLayer(N.mapLayer)}n({type:"LAYERS_IDMAP_UPDATED",payload:Object.assign({},v)});for(var C=0;C<t.length;C++){const N=t[C];if(!N||!N.id)break;let M=m[v[N.id]],k;N.parentId?k=m[v[N.parentId]]:k=d,k&&k.hasOwnProperty("uid")&&(M.parent=k,k.children.push(M))}n({type:"LAYERS_LIST_UPDATED",payload:Object.assign({},m)})},doTreeInsertAfter:(t,n)=>({dispatch:s,store:d})=>{const m=d.selectLayers(),v=m[t],S=m[n];if(!isParentOf(v,S)){removeFromParent(v);const C=S.parent,I=C.children.indexOf(S)+1;insertNodeAt(v,C,I)}s({type:"LAYERS_LIST_UPDATED",payload:Object.assign({},m)})},doTreeInsertBefore:(t,n)=>({dispatch:s,store:d})=>{const m=d.selectLayers(),v=m[t],S=m[n];if(!isParentOf(v,S)){removeFromParent(v);const C=S.parent,I=C.children.indexOf(S);insertNodeAt(v,C,I)}s({type:"LAYERS_LIST_UPDATED",payload:Object.assign({},m)})},doTreeInsertChild:(t,n)=>({dispatch:s,store:d})=>{const m=d.selectLayers(),v=m[t],S=m[n];if(!isParentOf(v,S)){removeFromParent(v);const C=S;insertNodeAt(v,C,C.children.length)}s({type:"LAYERS_LIST_UPDATED",payload:Object.assign({},m)})},doTreeMerge:(t,n)=>({dispatch:s,store:d})=>{const m=d.selectLayers(),v=m[t],S=m[n];if(!isParentOf(v,S)){const C=S.parent,I=C.children.indexOf(S);removeFromParent(v);const N=createNode({root:!1,leaf:!1,teamDatasetId:null,collapsed:!1,visible:!1,sortOrder:0,displayName:"New Folder",type:"Folder"},map);v.parent=N,S.parent=N,N.children.push(S),N.children.push(v),N.parent=C,C.children.splice(I,1,N)}s({type:"LAYERS_LIST_UPDATED",payload:Object.assign({},m)})},doTreeRemove:t=>({dispatch:n,store:s})=>{const d=s.selectMap(),m=s.selectLayers(),v=m[t];function S(C){C&&(C.children&&C.children.length&&C.children.forEach(function(I){S(I)}),C.mapLayer&&d.removeLayer(C.mapLayer),removeFromParent(C),delete m[C.uid])}S(v),n({type:"LAYERS_LIST_UPDATED",payload:Object.assign({},m)}),n({type:"LAYER_REMOVED",payload:{uid:t}})},doTreeUpdate:(t,n)=>({dispatch:s,store:d})=>{const m=d.selectLayers(),v=m[t];Object.keys(n).forEach(S=>{S!=="uid"&&(v[S]=n[S])}),s({type:"LAYERS_LIST_UPDATED",payload:Object.assign({},m)})},doTreeSetCollapsedAll:(t,n)=>({dispatch:s,store:d})=>{const m=d.selectLayers(),v=m[t];function S(C){C.collapsed=n,C.children.length>0&&C.children.forEach(S)}S(v),s({type:"LAYERS_LIST_UPDATED",payload:Object.assign({},m)})},doTreeSetCollapsed:(t,n)=>({dispatch:s,store:d})=>{const m=d.selectLayers(),v=m[t];v.collapsed=n,s({type:"LAYERS_LIST_UPDATED",payload:Object.assign({},m)})},doTreeSetVisibleAll:(t,n)=>({dispatch:s,store:d})=>{const m=d.selectLayers(),v=m[t];function S(C){C.mapLayer&&(C.mapLayer.setVisible(n),C.visible=n),C.children.length>0&&C.children.forEach(S)}S(v),s({type:"LAYERS_LIST_UPDATED",payload:Object.assign({},m)})},doLayerSetVisible:(t,n)=>({dispatch:s,store:d})=>{const m=d.selectLayers(),v=m[t];if(v.mapLayer&&(v.visible=n,v.mapLayer.setVisible(n)),s({type:"LAYERS_LIST_UPDATED",payload:Object.assign({},m)}),v.visible&&v.layerFunction&&v.layerParams){const S=v.layerParams,C=v.layerFunction,I=d[C];I&&I(S)}},doLayerSetLabels:(t,n)=>({dispatch:s,store:d})=>{const m=d.selectLayers(),v=m[t];function S(C){const I=C.indexOf("?")===-1?"?":"&";return`${C}${I}label=true`}if(v.mapLayer){v.labelsOn=n;const C=v.mapLayer.getSource(),N=C.getUrls().map(M=>n?S(v.url):v.url);C.setUrls(N)}s({type:"LAYERS_LIST_UPDATED",payload:Object.assign({},m)})},doLayerSetLayerOrder:(t,n)=>({dispatch:s,store:d})=>{const m=d.selectLayers(),v=m[t];v.mapLayer&&(v.sortOrder=n,v.mapLayer.setZIndex(n)),s({type:"LAYERS_LIST_UPDATED",payload:Object.assign({},m)})},doLayerSetOpactiy:(t,n)=>({dispatch:s,store:d})=>{const m=d.selectLayers(),v=m[t];v.mapLayer&&v.mapLayer.setOpacity(n),s({type:"LAYERS_LIST_UPDATED",payload:Object.assign({},m)})},doUpdateLayerOrder:()=>({dispatch:t,store:n})=>{const s=n.selectTreeRootNode(),d=n.selectOverrideSortOrder();let m=999;function v(S){let C=m--;S.mapLayer&&(d?S.mapLayer.setZIndex(S.sortOrder):(S.sortOrder=C,S.mapLayer.setZIndex(C))),S.children&&S.children.forEach(v)}v(s),t({type:"LAYERS_ORDER_UPDATED"})},doUpdateFavoriteLayers:(t,n)=>({dispatch:s,store:d})=>{const m=d.selectFavoriteLayers(),S=d.selectLayers()[n.uid];if(t==="add")m.push(S);else{const C=m.findIndex(function(I){return I.uid===n.uid});C!==-1&&m.splice(C,1)}s({type:"LAYERS_FAVORITES_LIST_UPDATED",payload:{favoriteLayers:m}})},doLayerSetFavorite:(t,n)=>({dispatch:s,store:d})=>{const m=d.selectLayers(),v=m[t];v.favorite=n,s({type:"LAYERS_LIST_UPDATED",payload:Object.assign({},m)})},doUpdateUserDefaultLayers:(t,n)=>({dispatch:s,store:d})=>{const m=d.selectUserDefaultLayers(),S=d.selectLayers()[n.uid];if(t==="add")m.push(S);else{const C=m.findIndex(function(I){return I.uid===n.uid});C!==-1&&m.splice(C,1)}s({type:"LAYERS_USER_DEFAULT_LAYERS_LIST_UPDATED",payload:{userDefaultLayers:m}})},doLayerSetUserDefaultLayers:(t,n)=>({dispatch:s,store:d})=>{const m=d.selectLayers(),v=m[t];v.userDefaultLayer=n,s({type:"LAYERS_LIST_UPDATED",payload:Object.assign({},m)})},doOverrideSortOrder:t=>({dispatch:n})=>{n({type:"LAYERS_ORDER_OVERRIDE_SORT_ORDER",payload:{overrideSortLayerOrder:t}})},doShowLayerSortOrder:t=>({dispatch:n})=>{t&&n({type:"SORT_ORDER_NOW_SHOWING",payload:{sortOrderStatus:!0}})},selectSortOrderStatus:t=>t.layers.sortOrderStatus,selectFavoriteLayers:t=>t.layers.favoriteLayers,selectUserDefaultLayers:t=>t.layers.userDefaultLayers,selectLayers:t=>t.layers.layers,selectIdMap:t=>t.layers.idMap,selectUidMap:reduxBundler.createSelector("selectLayers",t=>{const n={};return Object.keys(t).forEach(s=>{t[s]&&(n[s]=t[s].displayName)}),n}),selectCmLayers:reduxBundler.createSelector("selectLayers",t=>{const n=[];return Object.keys(t).forEach(s=>{t[s]&&t[s].teamDatasetId&&n.push(t[s].teamDatasetId)}),n}),selectVisibleLayers:reduxBundler.createSelector("selectLayers",t=>{const n=[];return Object.keys(t).forEach(s=>{t[s]&&t[s].visible&&n.push(t[s])}),n}),selectVisibleCmLayers:reduxBundler.createSelector("selectLayers",t=>{const n=[];return Object.keys(t).forEach(s=>{t[s]&&t[s].teamDatasetId&&t[s].visible&&n.push(t[s].teamDatasetId)}),n}),selectCmLayerNames:reduxBundler.createSelector("selectLayers",t=>{const n=[];return Object.keys(t).forEach(s=>{t[s]&&t[s].teamDatasetId&&n.push({teamDatasetId:t[s].teamDatasetId,displayName:t[s].displayName})}),n}),selectLayerFilterString:t=>t.layers.filterString,selectLayerShowFilter:t=>t.layers.showFilter,selectOverrideSortOrder:t=>t.layers.overrideSortLayerOrder,reactResetSortOrder:t=>{if(t.layers.resetNeeded)return{actionCreator:"doUpdateLayerOrder"}}},mapProjBundle={name:"proj",getReducer(){const t={epsgio:!1,displayProjection:"EPSG:4326",displayProjectionName:"WGS 84 - WGS84 - World Geodetic System 1984","EPSG:4326":{epsg:"EPSG:4326",name:"WGS 84 - WGS84 - World Geodetic System 1984",proj:proj.get("EPSG:4326")},"EPSG:3857":{epsg:"EPSG:3857",name:"WGS 84 / Pseudo-Mercator - Spherical Mercator",proj:proj.get("EPSG:3857")}};return(n=t,{type:s,payload:d})=>s==="PROJECTION_LOAD_SUCCESS"?Object.assign({},n,{[d.epsg]:d}):s==="PROJECTION_REMOVED"?Object.assign({},d):s==="PROJECTION_SELECTED"?Object.assign({},n,d):s==="PROJECTION_PING_RESULT"?Object.assign({},n,{epsgio:d.epsgio}):n},doLoadProjDef:t=>({dispatch:n,store:s,anonGet:d})=>{n({type:"PROJECTION_LOAD_START"});const m=/PROJCS..(.*)..GEOGCS/g;let v=t;t.indexOf(":")!==-1&&(v=v.split(":")[1]),d(`https://epsg.io/${v}.proj4`,(S,C,I)=>{I?d(`https://epsg.io/${v}.wkt`,(N,M,k)=>{if(k){const z=m.exec(k)[1];proj4.defs(t,I),proj.addProjection(new Projection({code:t})),n({type:"PROJECTION_LOAD_SUCCESS",payload:{epsg:t,name:z,def:proj.get(t)}})}}):n({type:"PROJECTION_LOAD_ERROR",payload:C})})},doProjectionPingEPSGIO:()=>({dispatch:t,anonGet:n})=>{n("https://epsg.io/26916.wkt",(d,m,v)=>{v&&t({type:"PROJECTION_PING_RESULT",payload:{epsgio:!0}})})},doRemoveProjection:t=>({dispatch:n,store:s})=>{const d=Object.assign({},s.selectProjectionStateRaw());delete d[t],n({type:"PROJECTION_REMOVED",payload:d})},doSelectProjection:(t,n)=>({dispatch:s})=>{s({type:"PROJECTION_SELECTED",payload:{displayProjection:t,displayProjectionName:n}})},selectGeoProjection:t=>t.proj["EPSG:4326"].proj,selectMapProjection:t=>t.proj["EPSG:3857"].proj,selectProjectionStateRaw:t=>t.proj,selectProjectionList:t=>_.values(t.proj).filter(n=>typeof n=="object"),selectDisplayProjection:t=>t.proj.displayProjection,selectDisplayProjectionName:t=>t.proj.displayProjectionName,selectProjectionCanUseEPSGIO:t=>t.proj.epsgio,init(t){t.doProjectionPingEPSGIO()}},animateView=(t,n)=>{n.animate(t)},zoomToLocation=(t,n,s)=>{animateView({center:t,zoom:n},s)},mapViewBundle={name:"view",getReducer:()=>{const t={shouldReadUrlParams:!1,shouldSetDefaults:!1,center:[-98.579,39.828],zoom:4,rotation:0,position:{},heading:0,pitch:0,roll:0,minZoom:0,maxZoom:22,action:null,updating:!1,listening:!1,shouldUpdateZoom:!1};return(n=t,{type:s,payload:d})=>{switch(s){case"VIEW_SET_DEFAULTS_START":case"VIEW_SET_DEFAULTS":case"VIEW_SET_PARAMS_START":case"VIEW_SET_PARAMS_COMPLETE":return Object.assign({},n,d);case"WINDOW_LOCATION_PARSED":return Object.assign({},n,{shouldReadUrlParams:!0});case"MAP_INITIALIZED":return Object.assign({},n,{shouldSetDefaults:!0})}return s==="VIEW_START_ACTION"?Object.assign({},n,{updating:!0}):s==="VIEW_END_ACTION"?Object.assign({},n,{updating:!1}):s==="VIEW_EVENTS_REGISTERED"?Object.assign({},n,{listening:!0}):s==="VIEW_CHANGED"?Object.assign({},n,d):n}},doViewSetDefaults:t=>({dispatch:n,store:s})=>{n({type:"VIEW_SET_DEFAULTS_START",payload:{shouldSetDefaults:!1}});const d={center:t.centerX&&t.centerY?[t.centerX,t.centerY]:[-95.579,39.828],zoom:t.centerZ?t.centerZ:4,rotation:t.rotation?t.rotation:0,position:{},heading:t.heading3d?t.heading3d:0,pitch:0,roll:0,minZoom:t.minzoom?t.minzoom:0,maxZoom:t.maxzoom?t.maxzoom:22};n({type:"VIEW_SET_DEFAULTS",payload:d})},doViewSetFromParams:()=>({dispatch:t,store:n})=>{t({type:"VIEW_SET_PARAMS_START",payload:{shouldReadUrlParams:!1}});const s=n.selectViewState(),d=n.selectWindowLocationParams();Number(d.x)&&(s.center[0]=Number(d.x)),Number(d.y)&&(s.center[1]=Number(d.y)),Number(d.z)&&(s.zoom=Number(d.z)),n.doSetView(s)},doZoomToExtent:(t,n)=>({dispatch:s,store:d})=>{s({type:"VIEW_START_ACTION"});const m=d.selectMap();d.selectView().fit(t,{size:m.getSize(),duration:500,minResolution:10,callback:()=>{n&&typeof n=="function"&&n(),s({type:"VIEW_END_ACTION"})}})},doZoomToLayerExtent:t=>({dispatch:n,store:s})=>{},doZoomToLocation:(t,n)=>({dispatch:s,store:d})=>{s({type:"VIEW_START_ACTION"});const m=d.selectView();zoomToLocation(t,n,m),s({type:"VIEW_END_ACTION"})},doZoomIn:()=>({dispatch:t,store:n})=>{t({type:"VIEW_START_ACTION"});const s=n.selectView(),d=s.getZoom();animateView({zoom:d+1},s),t({type:"VIEW_END_ACTION"})},doZoomOut:()=>({dispatch:t,store:n})=>{t({type:"VIEW_START_ACTION"});const s=n.selectView(),d=s.getZoom();animateView({zoom:d-1},s),t({type:"VIEW_END_ACTION"})},doSetRotationNorth:()=>({dispatch:t,store:n})=>{t({type:"VIEW_START_ACTION"});const s=n.selectView();animateView({rotation:0},s),t({type:"VIEW_END_ACTION"})},doUpdateView:t=>({dispatch:n,store:s})=>{const m=t.map.getView(),v=m.getZoom(),S=proj.transform(m.getCenter(),s.selectMapProjection(),"EPSG:4326"),C=m.getRotation()*(180/Math.PI);n({type:"VIEW_CHANGED",payload:{center:S,zoom:v,rotation:C}})},doSetView:t=>({dispatch:n,store:s})=>{const d=s.selectView();if(!d)return null;animateView({center:proj.transform(t.center,"EPSG:4326",s.selectMapProjection()),zoom:t.zoom,rotation:t.rotation},d)},doListenToMap:()=>({dispatch:t,store:n})=>{n.selectMap(),t({type:"VIEW_EVENTS_REGISTERED"})},selectViewState:t=>t.view,selectViewAction:t=>t.view.action,selectViewCenter:reduxBundler.createSelector("selectAppTime","selectMap","selectViewState",(t,n,s)=>{if(!n)return s.center;const d=n.getView();return d?d.getCenter():s.center}),selectMapSize:reduxBundler.createSelector("selectMap","selectAppTime",(t,n)=>t?t.getSize():null),selectMapImageDisplay:reduxBundler.createSelector("selectMapSize",t=>t?[t[0],t[1],92]:null),selectMapExtent:reduxBundler.createSelector("selectAppTime","selectView","selectMapSize","selectMapProjection",(t,n,s,d)=>{if(!n)return null;const m=n.calculateExtent(s),v=proj.transform([m[0],m[1]],d,"EPSG:4326"),S=proj.transform([m[2],m[3]],d,"EPSG:4326");return[v[0],v[1],S[0],S[1]]}),selectResolution:reduxBundler.createSelector("selectView","selectAppTime",(t,n)=>t?t.getResolution():null),reactAddListeners:t=>{if(!t.view.listening&&t.map.map2d)return{actionCreator:"doListenToMap"}},reactViewShouldReadUrlParams:t=>{if(t.view.shouldReadUrlParams)return{actionCreator:"doViewSetFromParams"}},reactViewShouldSetDefaults:t=>{if(t.view.shouldSetDefaults)return{actionCreator:"doViewSetDefaults",args:[t.config.default.map]}}},createContainerBundle=t=>{const s=Object.assign({},{name:"container",children:null,options:null,openedBy:null,addons:{},additionalActions:[],additionalState:{}},t),d=s.name.charAt(0).toUpperCase()+s.name.slice(1),m=s.name.toUpperCase(),v={OPENED:`${m}_OPENED`,CLOSED:`${m}_CLOSED`},S=`do${d}Open`,C=`do${d}Close`,I=`select${d}Children`,N=`select${d}Options`,M=`select${d}OpenedBy`;return Object.assign({},{name:s.name,getReducer:()=>{const z=Object.assign({children:s.children,options:s.options,openedBy:s.openedBy},s.additionalState);return(V=z,{type:H,payload:W})=>{if(s.additionalActions.indexOf(H)!==-1)return Object.assign({},V,W);switch(H){case v.OPENED:case v.CLOSED:return Object.assign({},V,W);default:return V}}},[S]:({children:z,options:V,openedBy:H})=>({dispatch:W})=>{z.length||(z=[z]),W({type:v.OPENED,payload:{children:z,options:V,openedBy:H}})},[C]:()=>({dispatch:z})=>{z({type:v.CLOSED,payload:{children:null,options:null,openedBy:null}})},[I]:z=>z[s.name].children,[N]:z=>z[s.name].options,[M]:z=>z[s.name].openedBy},s.addons)},modalWindowBundle=createContainerBundle({name:"modal"}),notificationBundle={name:"notifications",getReducer(){const t={};return(n=t,{type:s,payload:d})=>{if(d&&d.notification){const m=uuid.v4();return d.notification.uid=m,Object.assign({},n,{[m]:d.notification})}switch(s){case"NOTIFICATIONS_FIRED":case"NOTIFICATIONS_DISMISSED":return Object.assign({},n,d);default:return n}}},doNotificationsFire:t=>({dispatch:n,store:s})=>{const d=uuid.v4();t.uid=d,n({type:"NOTIFICATIONS_FIRED",payload:{[d]:t}})},doNotificationsDismiss:t=>({dispatch:n,store:s})=>{const d=s.selectNotifications();delete d[t],n({type:"NOTIFICATIONS_DISMISSED",payload:d})},selectNotifications:t=>t.notifications},pluginBundle={name:"plugins",getReducer(){const t={loading:!1,components:[]};return(n=t,{type:s,payload:d})=>s==="PLUGINS_STARTED_LOADING"?Object.assign({},n,{loading:!0}):s==="PLUGINS_STOPPED_LOADING"?Object.assign({},n,{loading:!1}):s==="PLUGINS_ADDED_COMPONENTS"?Object.assign({},n,{components:n.components.concat(d)}):n},doAddPluginComponents:t=>({dispatch:n})=>{n({type:"PLUGINS_ADDED_COMPONENTS",payload:t})},doStartLoadingPlugins:()=>({dispatch:t,store:n})=>{t({type:"PLUGINS_STARTED_LOADING"})},doStopLoadingPlugins:()=>({dispatch:t})=>{t({type:"PLUGINS_STOPPED_LOADING"})},selectPluginsAreLoading:t=>t.plugins.loading,selectAllComponents:t=>t.plugins.components,selectComponentsLeftSidebarTop:reduxBundler.createSelector("selectAllComponents",t=>_.map(_.sortBy(_.filter(t,{region:"left-sidebar-top"}),["sortOrder"]),n=>n.component)),selectComponentsLeftSidebarBottom:reduxBundler.createSelector("selectAllComponents",t=>_.map(_.sortBy(_.filter(t,{region:"left-sidebar-bottom"}),["sortOrder"]),n=>n.component)),selectComponentsLeftSidebarCount:reduxBundler.createSelector("selectComponentsLeftSidebarTop","selectComponentsLeftSidebarBottom",(t,n)=>t.length+n.length),selectComponentsRightSidebarTop:reduxBundler.createSelector("selectAllComponents",t=>_.map(_.sortBy(_.filter(t,{region:"right-sidebar-top"}),["sortOrder"]),n=>n.component)),selectComponentsRightSidebarBottom:reduxBundler.createSelector("selectAllComponents",t=>_.map(_.sortBy(_.filter(t,{region:"right-sidebar-bottom"}),["sortOrder"]),n=>n.component)),selectComponentsRightSidebarCount:reduxBundler.createSelector("selectComponentsUpperRight","selectComponentsLowerRight","selectComponentsRightSidebarTop","selectComponentsRightSidebarBottom",(t,n,s,d)=>t.length+n.length+s.length+d.length),selectComponentsBasicToolbar:reduxBundler.createSelector("selectAllComponents",t=>_.map(_.sortBy(_.filter(t,{region:"basic-toolbar"}),["sortOrder"]),n=>n.component)),selectComponentsBasicToolbarCount:reduxBundler.createSelector("selectComponentsBasicToolbar",t=>t.length),selectComponentsLowerRight:reduxBundler.createSelector("selectAllComponents",t=>_.map(_.sortBy(_.filter(t,{region:"lower-right-toolbar"}),["sortOrder"]),n=>n.component)),selectComponentsUpperRight:reduxBundler.createSelector("selectAllComponents",t=>_.map(_.sortBy(_.filter(t,{region:"upper-right-toolbar"}),["sortOrder"]),n=>n.component))},primaryPanelBundle=createContainerBundle({name:"primaryPanel",additionalState:{width:300,showClose:!1,showFavoritesBtn:!1,favoritesDB:null,showUserDefaultLayersBtn:!1,userDefaultLayersDB:null},additionalActions:["PRIMARY_PANEL_RESIZED","PRIMARY_PANEL_SHOW_CLOSE","PRIMARY_PANEL_SET_WIDTH","PRIMARY_PANEL_SHOW_FAVORITES_BTN","PRIMARY_PANEL_SHOW_USER_DEFAULT_LAYERS_BTN"],addons:{doPrimaryPanelResize:({width:t})=>({dispatch:n})=>{n({type:"PRIMARY_PANEL_RESIZED",payload:{width:t}})},doPrimaryPanelSetWidth:t=>({dispatch:n})=>{n({type:"PRIMARY_PANEL_SET_WIDTH",payload:{width:t}})},doShowPrimaryPanelCloseBtn:()=>({dispatch:t})=>{t({type:"PRIMARY_PANEL_SHOW_CLOSE",payload:{showClose:!0}})},doShowFavoritesBtn:t=>({dispatch:n})=>{n({type:"PRIMARY_PANEL_SHOW_FAVORITES_BTN",payload:{showFavoritesBtn:!0,favoritesDB:t}})},doShowUserDefaultLayersBtn:t=>({dispatch:n})=>{n({type:"PRIMARY_PANEL_SHOW_USER_DEFAULT_LAYERS_BTN",payload:{showUserDefaultLayersBtn:!0,userDefaultLayersDB:t}})},selectPrimaryPanelWidth:t=>t.primaryPanel.width,selectPrimaryPanelShowClose:t=>t.primaryPanel.showClose,selectPrimaryPanelShowFavoritesBtn:t=>t.primaryPanel.showFavoritesBtn,selectPrimaryPanelFavoritesDB:t=>t.primaryPanel.favoritesDB,selectPrimaryPanelShowUserDefaultLayersBtn:t=>t.primaryPanel.showUserDefaultLayersBtn,selectPrimaryPanelUserDefaultLayersDB:t=>t.primaryPanel.userDefaultLayersDB,selectPrimaryPanelTop:reduxBundler.createSelector("selectComponentsBasicToolbarCount",t=>t>0?42:0)}}),searchBundle={name:"search",getReducer(){const t={shouldFireSearch:!1,q:"",selected:null,onFireSearchListeners:[],results:[]};return(n=t,{type:s,payload:d})=>s.indexOf("SEARCH_")!==-1?Object.assign({},n,d):n},doSearchAddCollection:t=>({dispatch:n,store:s})=>{const d=s.selectSearchOnFireSearchListeners();t.onFireSearch&&d.push(t.onFireSearch),n({type:"SEARCH_COLLECTION_ADDED",payload:{onFireSearchListeners:d}})},doSearchShouldFire:()=>({dispatch:t})=>{t({type:"SEARCH_SHOULD_FIRE",payload:{shouldFire:!0}})},doSearchSetQuery:t=>({dispatch:n,store:s})=>{n({type:"SEARCH_SET_QUERY",payload:{q:t,results:[]}})},doSearchSelectItem:t=>({dispatch:n})=>{n({type:"SEARCH_ITEM_SELECTED",payload:{selected:t}})},doSearchFire:()=>({dispatch:t,store:n})=>{t({type:"SEARCH_START",payload:{shouldFire:!1}});const s=n.selectSearchOnFireSearchListeners();async.parallel(s,(d,m)=>{if(d)return t({type:"SEARCH_ERROR",payload:{err:d,results:[]}});const v=_.flatten(m),S=[],C=[];v.forEach(N=>{N.provider!=="geocoder"&&C.push(N),N.provider==="geocoder"&&S.push(N)});const I=[...C,...S];t({type:"SEARCH_SUCCESS",payload:{results:I}})})},selectSearchOnFireSearchListeners:t=>t.search.onFireSearchListeners,selectSearchQueryString:t=>t.search.q,selectSearchResults:t=>t.search.results,reactSearchShouldFire:t=>{if(t.search.shouldFire)return{actionCreator:"doSearchFire"}}},southRegionBundle={name:"southRegion",getReducer:()=>{const t={children:{},_shouldTryToCloseRegion:!1};return(n=t,{type:s,payload:d})=>{switch(s){case"SOUTH_REGION_OPENED":case"SOUTH_REGION_CLOSED":case"SOUTH_REGION_TAB_CLOSED":case"SOUTH_REGION_TRY_CLOSE":return Object.assign({},n,d);default:return n}}},doSouthRegionOpen:t=>({dispatch:n,store:s})=>{const d=s.selectSouthRegionChildrenObj(),m=uuid.v4();t.uid=m,n({type:"SOUTH_REGION_OPENED",payload:{children:{...d,[m]:t}}})},doSouthRegionClose:()=>({dispatch:t,store:n})=>{t({type:"SOUTH_REGION_CLOSED",payload:{children:{}}})},doSouthRegionCloseTab:t=>({dispatch:n,store:s})=>{const d=s.selectSouthRegionChildrenObj();delete d[t],n({type:"SOUTH_REGION_TAB_CLOSED",payload:{children:{...d},_shouldTryToCloseRegion:!0}})},doSouthRegionTryClose:()=>({dispatch:t,store:n})=>{t({type:"SOUTH_REGION_TRY_CLOSE",payload:{_shouldTryToCloseRegion:!1}}),n.selectSouthRegionChildren().length||n.doSouthRegionClose()},selectSouthRegionChildrenObj:t=>t.southRegion.children,selectSouthRegionChildren:reduxBundler.createSelector("selectSouthRegionChildrenObj",t=>{const n=[];for(var s in t)n.push(t[s]),n.unshift(n.pop());return n}),reactSouthRegionTryToCloseRegion:t=>{if(t.southRegion._shouldTryToCloseRegion)return{actionCreator:"doSouthRegionTryClose"}}},themeBundle={name:"theme",getReducer:()=>{const t={theme:"bg-blue-chambray",iconSize:"default"};return(n=t,{type:s,payload:d})=>{switch(s){case"THEME_CHANGED":case"THEME_SET_LARGER_ICONS":return Object.assign({},n,d);default:return n}}},doThemeSet:t=>({dispatch:n})=>{n({type:"THEME_CHANGED",payload:{theme:t}})},doThemeSetLargeIcons:()=>({dispatch:t})=>{t({type:"THEME_SET_LARGER_ICONS",payload:{iconSize:"large"}})},selectTheme:t=>t.theme.theme,selectThemeIconSize:t=>t.theme.iconSize},verticalLayoutBundle={name:"vLayout",getReducer:()=>{const t={height:window.innerHeight-20,hNorth:1,hSouth:0,_shouldUpdateMap:!1};return(n=t,{type:s,payload:d})=>{switch(s){case"VLAYOUT_UPDATE_HEIGHT":case"VLAYOUT_MAP_UPDATE_START":return Object.assign({},n,d);case"SOUTH_REGION_OPENED":return Object.assign({},n,{hNorth:.5,hSouth:.5,_shouldUpdateMap:!0});case"SOUTH_REGION_CLOSED":return Object.assign({},n,{hNorth:1,hSouth:0,_shouldUpdateMap:!0});default:return n}}},doVLayoutResize:(t,n)=>({dispatch:s})=>{s({type:"VLAYOUT_UPDATE_HEIGHT",payload:{hNorth:t,hSouth:n,_shouldUpdateMap:!0}})},doVLayoutSetHeight:t=>({dispatch:n})=>{n({type:"VLAYOUT_UPDATE_HEIGHT",payload:{height:t}})},doVLayoutUpdateMap:()=>({dispatch:t,store:n})=>{t({type:"VLAYOUT_MAP_UPDATE_START",payload:{_shouldUpdateMap:!1}}),n.selectMap().updateSize()},selectVLayoutHeight:t=>t.vLayout.height,selectNorthHeight:t=>t.vLayout.height*t.vLayout.hNorth,selectSouthHeight:t=>t.vLayout.height*t.vLayout.hSouth,reactVLayoutShouldUpdateMap:t=>{if(t.vLayout._shouldUpdateMap)return{actionCreator:"doVLayoutUpdateMap"}}},viewportBundle={name:"viewport",getReducer(){const t={h:window.innerHeight,w:window.innerWidth};return(n=t,{type:s,payload:d})=>s==="WINDOW_RESIZE"?Object.assign({},n,{h:window.innerHeight,w:window.innerWidth}):n},doHandleResize:()=>({dispatch:t,store:n})=>{n.selectMap().updateSize(),t({type:"WINDOW_RESIZE"})},selectViewportHeight:t=>t.viewport.h,selectViewportWidth:t=>t.viewport.w,init:t=>{window.addEventListener("resize",_.debounce(t.doHandleResize,300))}};function QueryStringToJSON(t){const n=t.slice(1).split("&"),s={};return n.forEach(function(d){d=d.split("="),s[d[0]]=decodeURIComponent(d[1]||"")}),JSON.parse(JSON.stringify(s))}const windowLocationBundle={name:"windowLocation",getReducer(){const t={shouldParse:!0,host:null,href:null,origin:null,pathname:null,search:null,params:null};return(n=t,{type:s,payload:d})=>{switch(s){case"WINDOW_LOCATION_PARSE_START":case"WINDOW_LOCATION_PARSED":return Object.assign({},n,d);default:return n}}},doWindowLocationParse:()=>({dispatch:t,store:n})=>{t({type:"WINDOW_LOCATION_PARSE_START",payload:{shouldParse:!1}});const s=window.location,d=s.host,m=s.href,v=s.origin,S=s.pathname,C=s.search;let I=QueryStringToJSON(C);t({type:"WINDOW_LOCATION_PARSED",payload:{host:d,href:m,origin:v,pathname:S,search:C,params:I}})},selectWindowLocationHost:t=>t.windowLocation.host,selectWindowLocationHref:t=>t.windowLocation.Href,selectWindowLocationOrigin:t=>t.windowLocation.origin,selectWindowLocationPathname:t=>t.windowLocation.pathname,selectWindowLocationSearch:t=>t.windowLocation.search,selectWindowLocationParams:t=>t.windowLocation.params,reactWindowShouldParseLocation:t=>{if(t.windowLocation.shouldParse)return{actionCreator:"doWindowLocationParse"}}},getStore=reduxBundler.composeBundles(apiBundle,basicToolbarBundle,reduxBundler.createCacheBundle({cacheFn:cache.set}),configBundle,exportBundle,identifyBundle,mapBasemapBundle,mapCoreBundle,mapInteractionBundle,mapLayersBundle,mapProjBundle,mapViewBundle,modalWindowBundle,notificationBundle,pluginBundle,primaryPanelBundle,searchBundle,southRegionBundle,themeBundle,verticalLayoutBundle,viewportBundle,windowLocationBundle),loadPlugins=(t,n)=>{t.doStartLoadingPlugins();const s=[];n&&n.length&&n.forEach(d=>{const m=btoa(d.pluginName);s.indexOf(m)===-1&&(d.bundle&&(d.bundle.length||(d.bundle=[d.bundle]),d.bundle.forEach(v=>{t.integrateBundles(v)})),d.hasOwnProperty("components")&&t.doAddPluginComponents(d.components),s.push(m))}),t.doStopLoadingPlugins()};let defaultMapboxToken="pk.eyJ1IjoidXNhY2UiLCJhIjoiY2p4YW5hdjR6MThoZDNubG1mdG1rYXR1dSJ9.1jDEJhe6OP-e6iZNeEtzjA",mapboxTokenEnvVariable="undefined",mapboxToken=mapboxTokenEnvVariable==="undefined"?defaultMapboxToken:mapboxTokenEnvVariable;const config$1={map:{basemap:0,centerX:-98.579,centerY:39.828,centerZ:7,altitude3d:14771168,heading3d:0,tilt3d:0,minzoom:0,maxzoom:22,rotation:0},dim:"2d",theme:"bg-blue-chambray",mapboxToken,basemaps:[{id:"OpenStreetMap",name:"OpenStreetMap",url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",maxZoom:19,attributions:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',visible:!0},{id:"MapBoxStreets",name:"MapBox Streets",url:"https://api.mapbox.com/styles/v1/usace/cm938rc8w003b01rc9tge72ew/tiles/256/{z}/{x}/{y}?access_token={accessToken}",attributions:'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',subdomains:"abcd",accessToken:mapboxToken,visible:!1},{id:"MapBoxAerial",name:"MapBox Aerial",url:"https://api.mapbox.com/styles/v1/usace/cm939otin006r01qthub96e0f/tiles/256/{z}/{x}/{y}?access_token={accessToken}",attributions:'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',subdomains:"abcd",accessToken:mapboxToken,visible:!1},{id:"MapBoxOutdoor",name:"MapBox Outdoor",url:"https://api.mapbox.com/styles/v1/usace/cm939k4g0007v01qu4q5x0yew/tiles/256/{z}/{x}/{y}?access_token={accessToken}",attributions:'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',subdomains:"abcd",accessToken:mapboxToken,visible:!1},{id:"Monochrome Light",name:"Monochrome Light",url:"https://api.mapbox.com/styles/v1/usace/cm9394kdo003101ri16n4crq0/tiles/256/{z}/{x}/{y}?access_token={accessToken}",attributions:'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',subdomains:"abcd",accessToken:mapboxToken,visible:!1},{id:"Monochrome Dark",name:"Monochrome Dark",url:"https://api.mapbox.com/styles/v1/usace/cm939gizu003301r9hn5zcdi7/tiles/256/{z}/{x}/{y}?access_token={accessToken}",attributions:'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',subdomains:"abcd",accessToken:mapboxToken,visible:!1},{id:"Navigation Dark",name:"Navigation Dark",url:"https://api.mapbox.com/styles/v1/usace/cm939ltif005101qta6p168vj/tiles/256/{z}/{x}/{y}?access_token={accessToken}",attributions:'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',subdomains:"abcd",accessToken:mapboxToken,visible:!1},{id:"Navigation Light",name:"Navigation Light",url:"https://api.mapbox.com/styles/v1/usace/cm939n8jo007w01qugu58707v/tiles/256/{z}/{x}/{y}?access_token={accessToken}",attributions:'Imagery from <a href="https://mapbox.com/about/maps/">MapBox</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>',subdomains:"abcd",accessToken:mapboxToken,visible:!1},{id:"EsriWorldStreetMap",name:"ESRI Streetmap",url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}",attributions:"Tiles &copy; Esri &mdash; Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012",visible:!1},{id:"EsriWorldImagery",name:"ESRI World Imagery",url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",attributions:"Tiles &copy; Esri &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",visible:!1},{id:"EsriUSATopoMaps",name:"ESRI Topo Maps",url:"https://services.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer/tile/{z}/{y}/{x}",attributions:"Tiles &copy; Esri &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",visible:!1},{id:"EsriWorldShadedRelief",name:"ESRI World Hillshade",url:"https://services.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer/tile/{z}/{y}/{x}",attributions:"Tiles &copy; Esri &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",visible:!1},{id:"EsriWorldOcean",name:"ESRI World Ocean",url:"https://services.arcgisonline.com/ArcGIS/rest/services/Ocean/World_Ocean_Base/MapServer/tile/{z}/{y}/{x}",attributions:"Tiles &copy; Esri &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",visible:!1},{id:"USGSImageryTopo",name:"USGS Imagery/Topo",url:"https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryTopo/MapServer/tile/{z}/{y}/{x}",attributions:"Tiles &copy; Esri &mdash; Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community",visible:!1},{id:"CartoDBDarkMatter",name:"CartoDB Dark Matter",url:"https://cartodb-basemaps-{a-d}.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png",attributions:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> &copy; <a href="https://cartodb.com/attributionss">CartoDB</a>',subdomains:"abcd",maxZoom:19,visible:!1},{id:"CartoDBPositron",name:"CartoDB Positron",url:"https://cartodb-basemaps-{a-d}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png",attributions:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> &copy; <a href="https://cartodb.com/attributionss">CartoDB</a>',subdomains:"abcd",maxZoom:19,visible:!1}],datasetsDontUse:[{id:null,parentId:null,layerOrder:1,mapId:646,mapUuid:null,teamId:null,datasetId:null,teamDatasetId:null,serviceType:"EsriFeatureService",tiled:0,displayName:"Foundational Project Area",description:"",url:"https://services7.arcgis.com/n1YM8pTrFmm7L4hs/ArcGIS/rest/services/corps_projects/FeatureServer",grids:null,layerList:"1",attribution:null,geometryType:"POINT",minzoom:1,maxzoom:22,abstract:null,purpose:null,status:null,keywords:null,localTable:null,metadataUrl:null,minX:-177.47,maxX:-64.71000000000001,minY:13.43,maxY:72.55,opacity:1,useMapfile:1,queryTemplate:"",hoverTemplate:"",queryable:1,visible:0,collapsed:1,idCol:"objectid",shapeCol:"SHAPE",allowEdit:0,allowExport:1,createdBy:"1380992694",createDate:"2017-12-12T13:15:12.000Z",cacheTiles:0,labelDefault:0,labelEnabled:0,deep:2,path:"depricated",styleFn:`(
14
+ function(f){
15
+ const div = f.get('DIV_SYM');
16
+ const colors = {
17
+ 'MVD':'#949CA3',
18
+ 'NAD':'#334762',
19
+ 'NWD':'#B39A67',
20
+ 'POD':'#D8AE46',
21
+ 'SAD':'#B24C2E',
22
+ 'SPD':'#B15142',
23
+ 'SWD':'#BB742B',
24
+ 'LRD':'#257F6A'
25
+ }
26
+ const style = new window.olStyle.Style({
27
+ fill: new window.olStyle.Fill({
28
+ color: colors[div]
29
+ }),
30
+ stroke: new window.olStyle.Stroke({
31
+ color: '#362A2C',
32
+ width: 0.4
33
+ })
34
+ })
35
+ return style;
36
+ }
37
+ )`},{id:null,parentId:null,layerOrder:1,mapId:646,mapUuid:null,teamId:null,datasetId:null,teamDatasetId:null,serviceType:"EsriFeatureService",tiled:0,displayName:"Divisions",description:"",url:"https://services7.arcgis.com/n1YM8pTrFmm7L4hs/ArcGIS/rest/services/usace_cw_divisions/FeatureServer",grids:null,layerList:"0",attribution:null,geometryType:"POINT",minzoom:1,maxzoom:22,abstract:null,purpose:null,status:null,keywords:null,localTable:null,metadataUrl:null,minX:-177.47,maxX:-64.71000000000001,minY:13.43,maxY:72.55,opacity:1,useMapfile:1,queryTemplate:"",hoverTemplate:"",queryable:1,visible:0,collapsed:1,idCol:"objectid",shapeCol:"SHAPE",allowEdit:0,allowExport:1,createdBy:"1380992694",createDate:"2017-12-12T13:15:12.000Z",cacheTiles:0,labelDefault:0,labelEnabled:0,deep:2,path:"depricated",styleFn:`(
38
+ function(f){
39
+ const div = f.get('DIV_SYM');
40
+ const colors = {
41
+ 'MVD':'#949CA3',
42
+ 'NAD':'#334762',
43
+ 'NWD':'#B39A67',
44
+ 'POD':'#D8AE46',
45
+ 'SAD':'#B24C2E',
46
+ 'SPD':'#B15142',
47
+ 'SWD':'#BB742B',
48
+ 'LRD':'#257F6A'
49
+ }
50
+ const style = new window.olStyle.Style({
51
+ fill: new window.olStyle.Fill({
52
+ color: colors[div]
53
+ }),
54
+ stroke: new window.olStyle.Stroke({
55
+ color: '#362A2C',
56
+ width: 0.4
57
+ })
58
+ })
59
+ return style;
60
+ }
61
+ )`},{id:null,parentId:null,layerOrder:1,mapId:646,mapUuid:null,teamId:null,datasetId:null,teamDatasetId:null,serviceType:"RemoteVector",tiled:0,displayName:"Dam Status",description:"",url:"https://3s4qp7rua9.execute-api.us-east-1.amazonaws.com/production/dams",grids:null,layerList:"ahpsfcst_minor",attribution:null,geometryType:"POINT",minzoom:1,maxzoom:22,abstract:null,purpose:null,status:null,keywords:null,localTable:null,metadataUrl:null,minX:-177.47,maxX:-64.71000000000001,minY:13.43,maxY:72.55,opacity:1,useMapfile:1,queryTemplate:"",hoverTemplate:"",queryable:1,visible:0,collapsed:1,idCol:"objectid",shapeCol:"SHAPE",allowEdit:0,allowExport:1,createdBy:"1380992694",createDate:"2017-12-12T13:15:12.000Z",cacheTiles:0,labelDefault:0,labelEnabled:0,deep:2,path:"depricated",styleFn:`(
62
+ function(f){
63
+ const b = f.get('briefit');
64
+ const t = f.get('systemname');
65
+ const h = b === 'Y';
66
+ const labelStyle = new window.olStyle.Style({
67
+ text: new window.olStyle.Text({
68
+ text: h ? t : null,
69
+ font: 'bold 16px sans-serif',
70
+ textAlign:'left',
71
+ offsetX:3,
72
+ offsetY:-3,
73
+ textAlign: 'left',
74
+ textBaseline: 'bottom',
75
+ overflow: true,
76
+ stroke: new window.olStyle.Stroke({
77
+ color:'#ABB1A5',
78
+ width: 2
79
+ }),
80
+ fill: new window.olStyle.Fill({
81
+ color: '#0E0D1E'
82
+ })
83
+ })
84
+ })
85
+ const pointStyle = new window.olStyle.Style({
86
+ allowOverlap: true,
87
+ image: new window.olStyle.Circle({
88
+ radius: h ? 9 : 6,
89
+ stroke: new window.olStyle.Stroke({
90
+ color: '#ABB1A5',
91
+ width: 2
92
+ }),
93
+ fill: new window.olStyle.Fill({
94
+ color: h ? '#773621' : '#C14F11'
95
+ })
96
+ })
97
+ });
98
+ return [pointStyle, labelStyle];
99
+ }
100
+ )`},{id:null,parentId:null,layerOrder:1,mapId:646,mapUuid:null,teamId:null,datasetId:null,teamDatasetId:null,serviceType:"RemoteVector",tiled:0,displayName:"Levee Data",description:"Real time forecast values from NOAA. Updated hourly",url:"https://3s4qp7rua9.execute-api.us-east-1.amazonaws.com/production/levees",grids:null,layerList:"ahpsfcst_minor",attribution:null,geometryType:"POINT",minzoom:1,maxzoom:22,abstract:null,purpose:null,status:null,keywords:null,localTable:null,metadataUrl:null,minX:-177.47,maxX:-64.71000000000001,minY:13.43,maxY:72.55,opacity:1,useMapfile:1,queryTemplate:"",hoverTemplate:"",queryable:1,visible:0,collapsed:1,idCol:"objectid",shapeCol:"SHAPE",allowEdit:0,allowExport:1,createdBy:"1380992694",createDate:"2017-12-12T13:15:12.000Z",cacheTiles:0,labelDefault:0,labelEnabled:0,deep:2,path:"depricated",styleFn:`(
101
+ function(f){
102
+ const b = f.get('briefit');
103
+ const t = f.get('systemname');
104
+ const h = b === 'Y';
105
+ const labelStyle = new window.olStyle.Style({
106
+ text: new window.olStyle.Text({
107
+ text: h ? t : null,
108
+ font: 'bold 16px sans-serif',
109
+ textAlign:'left',
110
+ offsetX:3,
111
+ offsetY:-3,
112
+ textAlign: 'left',
113
+ textBaseline: 'bottom',
114
+ overflow: true,
115
+ stroke: new window.olStyle.Stroke({
116
+ color:'#DAD9C4',
117
+ width: 2
118
+ }),
119
+ fill: new window.olStyle.Fill({
120
+ color: '#33302A'
121
+ })
122
+ })
123
+ })
124
+ const pointStyle = new window.olStyle.Style({
125
+ allowOverlap: true,
126
+ image: new window.olStyle.Circle({
127
+ radius: h ? 9 : 6,
128
+ stroke: new window.olStyle.Stroke({
129
+ color: '#DAD9C4',
130
+ width: 2
131
+ }),
132
+ fill: new window.olStyle.Fill({
133
+ color: h ? '#B85B2B' : '#DEA500'
134
+ })
135
+ })
136
+ });
137
+ return [pointStyle, labelStyle];
138
+ }
139
+ )`},{id:13597,parentId:null,layerOrder:2,mapId:646,mapUuid:null,teamId:39,datasetId:716,teamDatasetId:713,serviceType:"XYZ",tiled:1,displayName:"Minor Flooding",description:"Real time forecast values from NOAA. Updated hourly",url:"https://rsgis-testdev.crrel.usace.army.mil/tiles/mstile/m.e847f06e3f0982927900594d68264d61/geom/{z}/{x}/{y}.png?nocache=true",grids:null,layerList:"ahpsfcst_minor",attribution:null,geometryType:"POINT",minzoom:1,maxzoom:22,abstract:null,purpose:null,status:null,keywords:null,localTable:"NOAA.NATIONAL_FCST_VW_MIN",metadataUrl:null,minX:-177.47,maxX:-64.71000000000001,minY:13.43,maxY:72.55,opacity:1,useMapfile:1,queryTemplate:`Location "Location", waterbody "Waterbody", state "State", to_char(fcstdate,'mm/dd/yyyy hh:mi: am') "Forecast Time", forecast||' '||units "Forecast", '<a href="'||url||'" target="_blank"><img src="http://water.weather.gov/resources/hydrographs/'||lower(gaugelid)||'_hg.png" width="300px"/></a>' "Hyperlink", action "Action Level", flood "Flood Level" , moderate "Mod Flood Level", major "Major Flood Level"`,hoverTemplate:`Location "Location", waterbody "Waterbody", state "State", to_char(fcstdate,'mm/dd/yyyy hh:mi: am') "Forecast Time", forecast||' '||units "Forecast", '<a href="'||url||'" target="_blank"><img src="http://water.weather.gov/resources/hydrographs/'||lower(gaugelid)||'_hg.png" width="300px"/></a>' "Hyperlink", action "Action Level", flood "Flood Level" , moderate "Mod Flood Level", major "Major Flood Level"`,queryable:1,visible:0,collapsed:1,idCol:"objectid",shapeCol:"SHAPE",allowEdit:0,allowExport:1,createdBy:"1380992694",createDate:"2017-12-12T13:15:12.000Z",cacheTiles:0,labelDefault:0,labelEnabled:0,deep:2,path:"depricated"}]},version="4.1.1",pkg={version};console.log("------ RUNNING CORPSMAP V."+pkg.version+" ------");let Map$1=class extends React.Component{constructor(n){super(n),this.state={store:null},this.getStore=this.getStore.bind(this)}getStore(){return this.state.store}componentDidMount(){this._isMounted=!0;const{mapConfig:n={},plugins:s=[],height:d,theme:m,themeNavSize:v,basemaps:S,basemapImageIDs:C=[],limitMapExtent:I}=this.props;cache.getAll().then(N=>{if(N.config={default:Object.assign({},config$1,n)},S&&S.forEach(k=>{N.config.default.basemaps.push(k)}),console.log(S),console.log(N),N.config.default.basemapImageIDs=C,d&&(N.vLayout={height:d,hNorth:1,hSouth:0}),m){const k=m.indexOf("bg-")===-1?`bg-${m}`:m;N.theme={theme:k,iconSize:v||"default"}}I&&(N.config.default.limitMapExtent=I);const M=getStore(N);loadPlugins(M,s),window.internalStore=M,this._isMounted&&this.setState({store:M})})}componentWillUnmount(){this._isMounted=!1}render(){const{store:n}=this.state;return n?jsxRuntimeExports.jsx(Provider,{store:n,children:jsxRuntimeExports.jsx(Corpsmap,{...this.props})}):null}},SidebarButton$1=class extends React.Component{constructor(n){super(n),this.clickHandler=this.clickHandler.bind(this)}clickHandler(n){n.preventDefault(),this.props.onClick(n)}render(){const{active:n,iconClass:s,iconStyle:d,iconText:m,expanded:v,label:S,theme:C,title:I,styleOverride:N,onMouseDown:M,onMouseUp:k,themeIconSize:z}=this.props,V=classnames({"cm-nav-btn":!0,"cm-nav-icon":z==="default","cm-nav-icon-lg":z==="large","cm-btn-block":!0,"vertical-toolbar-button":!0,active:n}),H=classnames({"overflow-ellipsis":!0,hidden:!m}),W=classnames({"icon-inline":v,hidden:!!m}),J=classnames({hidden:!v}),K=Object.assign({textAlign:"left"},N);return jsxRuntimeExports.jsxs("div",{className:V+" "+C,onClick:this.clickHandler,onMouseDown:M,onMouseUp:k,style:K,title:I,children:[jsxRuntimeExports.jsx("i",{className:s+" "+W,style:d}),jsxRuntimeExports.jsx("span",{className:H,children:m}),jsxRuntimeExports.jsx("span",{className:J,children:S})]})}};const SidebarButton=connect("selectThemeIconSize",SidebarButton$1);let SidebarPanelOpenerButton$1=class extends React.Component{constructor(n){super(n),this.handleClick=this.handleClick.bind(this)}handleClick(){const{doPrimaryPanelOpen:n,doPrimaryPanelClose:s,title:d,panelComponent:m,panelOptions:v,primaryPanelOpenedBy:S}=this.props;S!==d?n({openedBy:d,options:v,children:[m]}):s()}render(){const{theme:n,label:s,title:d,iconClass:m,iconText:v,styleOverride:S,primaryPanelOpenedBy:C}=this.props;return jsxRuntimeExports.jsx(SidebarButton,{active:C===d,iconClass:m,iconText:v,styleOverride:S,expanded:!1,label:s,title:d,onClick:this.handleClick,theme:n})}};const SidebarPanelOpenerButton=connect("selectTheme","selectPrimaryPanelOpenedBy","doPrimaryPanelOpen","doPrimaryPanelClose",SidebarPanelOpenerButton$1);let BasicToolbarButton$1=class extends React.Component{constructor(n){super(n),this.renderIcon=this.renderIcon.bind(this),this.toggleTool=this.toggleTool.bind(this)}toggleTool(){const{enabled:n,title:s,onActivate:d,onDeactivate:m,basicToolbarActiveTool:v,doBasicToolbarToggle:S}=this.props;n&&(S(v,s),d&&d(),m&&m())}renderIcon(){const{children:n,text:s,title:d,iconClass:m,iconStyle:v,basicToolbarActiveTool:S,dropup:C,themeIconSize:I}=this.props,N=classnames({"cm-nav-btn":!0,"cm-nav-icon":I==="default","cm-nav-icon-lg":I==="large","basic-toolbar-btn":!0,"cm-dropdown-toggle":!0,active:S===d}),M=classnames({mdi:!0,"mdi-menu-down":!C,"mdi-menu-up":C});return n?jsxRuntimeExports.jsxs("div",{onClick:this.toggleTool,className:N,children:[jsxRuntimeExports.jsx("i",{className:m,style:v}),s,jsxRuntimeExports.jsx("i",{className:M})]}):jsxRuntimeExports.jsxs("div",{onClick:this.toggleTool,className:N,style:{textAlign:"center"},children:[jsxRuntimeExports.jsx("i",{className:m,style:v}),s]})}render(){const{theme:n,basicToolbarActiveTool:s,title:d,children:m,dropup:v,passProps:S,basicToolbarOpen:C}=this.props,I=!!(C&&s===d),N=classnames({[n]:!0,"cm-btn-group":!0,open:I}),M=classnames({"basic-toolbar-btn-active":!v,"basic-toolbar-btn-active-top":v,hidden:s!==d});return jsxRuntimeExports.jsxs("div",{className:N,...S,title:d,children:[jsxRuntimeExports.jsx("div",{className:M}),this.renderIcon(),m]})}};const BasicToolbarButton=connect("selectTheme","selectThemeIconSize","selectBasicToolbarActiveTool","selectBasicToolbarOpen","doBasicToolbarActivate","doBasicToolbarDeactivate","doBasicToolbarToggle",BasicToolbarButton$1);class BasicToolbarMenu extends React.Component{render(){return jsxRuntimeExports.jsx("ul",{className:"cm-dropdown-menu",children:this.props.children})}}class BasicToolbarMenuUp extends React.Component{render(){return jsxRuntimeExports.jsx("ul",{className:"cm-dropup-menu",children:this.props.children})}}class BasicToolbarSubmenu extends React.Component{render(){return jsxRuntimeExports.jsx(BasicToolbarMenu,{children:this.props.children})}}class BasicToolbarMenuDivider extends React.Component{render(){return jsxRuntimeExports.jsx("li",{className:"divider"})}}class BasicToolbarMenuItem extends React.Component{constructor(n){super(n),this.state={showSubmenu:!1},this.renderTextContent=this.renderTextContent.bind(this),this.renderSubmenu=this.renderSubmenu.bind(this),this.showSubmenu=this.showSubmenu.bind(this),this.hideSubmenu=this.hideSubmenu.bind(this)}renderTextContent(){const{liveDangerously:n,text:s}=this.props;return n?jsxRuntimeExports.jsx("span",{dangerouslySetInnerHTML:{__html:s}}):s}renderSubmenu(){const{children:n,disableSubmenu:s}=this.props,{showSubmenu:d}=this.state;if(!n)return null;const m=classnames({"pull-right":!0,hidden:s}),v=classnames({open:d});return jsxRuntimeExports.jsxs("div",{className:m,children:[jsxRuntimeExports.jsx("i",{className:"mdi mdi-menu-right"}),jsxRuntimeExports.jsx("div",{style:{position:"relative",top:-31,left:33},className:v,children:n})]})}showSubmenu(){this.setState({showSubmenu:!0})}hideSubmenu(){this.setState({showSubmenu:!1})}renderDisabled(){const{passProps:n,iconClass:s}=this.props;return jsxRuntimeExports.jsx("li",{...n,disabled:!0,children:jsxRuntimeExports.jsxs("span",{children:[jsxRuntimeExports.jsx("i",{className:s}),this.renderTextContent()]})})}render(){const{active:n,passProps:s,onClick:d,iconClass:m,disabled:v,title:S}=this.props;if(v)return this.renderDisabled();const C=classnames({active:n});return jsxRuntimeExports.jsx("li",{className:C,...s,onClick:d,title:S,children:jsxRuntimeExports.jsxs("span",{onMouseOver:this.showSubmenu,onMouseOut:this.hideSubmenu,children:[this.renderSubmenu(),jsxRuntimeExports.jsx("i",{className:m}),this.renderTextContent()]})})}}class SearchInput extends React.Component{constructor(n){super(n),this.updateFilterString=this.updateFilterString.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this),this.setFocus=this.setFocus.bind(this)}updateFilterString(n){const{onUpdate:s}=this.props,d=n.currentTarget.value;s(d)}handleKeyUp(n){const{onKeyUp:s}=this.props;s&&s(n)}setFocus(){this.input.focus()}render(){const{filterString:n,placeholder:s,size:d,inline:m,darkTheme:v}=this.props;let S="cm-form-control";S+=d==="small"?" input-sm":"";const C=d==="small"?"17px":"22px",I=d==="small"?"20px":"30px";return jsxRuntimeExports.jsxs("div",{className:"cm-form-group",style:m?{marginBottom:0}:{},children:[jsxRuntimeExports.jsx("span",{style:{position:"absolute",fontSize:C,top:"10px"},children:jsxRuntimeExports.jsx("i",{className:"mdi mdi-magnify"})}),jsxRuntimeExports.jsx("span",{children:jsxRuntimeExports.jsx("input",{ref:N=>{this.input=N},style:{textIndent:I,color:v?"#ffffff":"inherit"},value:n,type:"text",className:S,placeholder:s,onChange:this.updateFilterString,onKeyUp:this.handleKeyUp})})]})}}class SearchResultsListItem extends React.Component{constructor(n){super(n),this.handleClick=this.handleClick.bind(this)}handleClick(){const{item:n,onClick:s}=this.props;s&&s(n)}render(){const{item:n,selected:s}=this.props,d=classnames({"cm-list-group-item":!0,"search-result-item":!0,"overflow-ellipsis":!0,selected:s});let m=n.secondaryTxt?`${n.displayName} ${n.secondaryTxt}`:`${n.displayName}`;return m=n.prefix?`${n.prefix}: ${m}`:`${m}`,jsxRuntimeExports.jsxs("li",{onClick:this.handleClick,className:d,title:`${m}`,children:[jsxRuntimeExports.jsx("i",{className:n.iconClass+" icon-inline"}),n.displayName,n.secondaryTxt?jsxRuntimeExports.jsx("div",{className:"overflow-ellipsis",style:{marginLeft:"30px"},children:n.secondaryTxt}):null]})}}class SearchResultsList extends React.Component{render(){const{items:n,onItemClick:s,selectedIdx:d}=this.props;return jsxRuntimeExports.jsx("ul",{className:"cm-list-group thin-scrollbar",ref:m=>{this.el=m},style:{position:"absolute",maxHeight:"400px",overflow:"auto"},children:n.map((m,v)=>jsxRuntimeExports.jsx(SearchResultsListItem,{onClick:s,item:m,selected:d===v},v))})}}let LoadingIndicator$1=class extends React.Component{render(){return jsxRuntimeExports.jsx("li",{className:"cm-list-group-item",children:jsxRuntimeExports.jsxs("div",{className:"loading-container",children:[jsxRuntimeExports.jsx("div",{className:"loading-spinner"}),jsxRuntimeExports.jsx("div",{className:"loading-text",children:this.props.text})]})})}};class TreeListFolder extends React.Component{render(){const{item:n,collapsed:s,toggleCollapsed:d}=this.props,m=classnames({mdi:!0,"mdi-folder-open":!s,"mdi-folder":s}),v=classnames({"tree-list-item-hover":!1}),S={display:"inline-block",paddingLeft:"8px"},C=n.children.length;return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("i",{title:"Click to collapse or expand",onClick:d,className:m,style:{fontSize:"16px",cursor:"pointer"}}),jsxRuntimeExports.jsxs("span",{children:[jsxRuntimeExports.jsx("div",{className:v,style:S,onDoubleClick:d,children:n.displayName}),jsxRuntimeExports.jsx("span",{children:" ("+C+")"})]})]})}}let TreeListItem$2=class extends React.Component{constructor(n){super(n),this.state={collapsed:n.item.collapsed},this.renderItemComponent=this.renderItemComponent.bind(this),this.handleClick=this.handleClick.bind(this),this.toggleCollapsed=this.toggleCollapsed.bind(this)}toggleCollapsed(){this.setState({collapsed:!this.state.collapsed})}handleClick(n){const{item:s,onSelect:d}=this.props;d({ctrl:n.ctrlKey,shift:n.shiftKey,item:s})}renderItemComponent(){const{item:n,components:s,componentMatches:d}=this.props,{collapsed:m}=this.state;if(!n.leaf)return jsxRuntimeExports.jsx(TreeListFolder,{item:n,collapsed:m,toggleCollapsed:this.toggleCollapsed});let v=s[0];if(d.length){for(let S=0;S<d.length;S++)if(_.isMatch(n,d[S])){v=s[S];break}}return jsxRuntimeExports.jsx(v,{item:n})}render(){const{item:n,components:s,componentMatches:d,onSelect:m}=this.props,{collapsed:v}=this.state,S=classnames({"tree-list-item":!0,hidden:!1});return jsxRuntimeExports.jsxs("li",{className:S,onClick:this.handleClick,children:[this.renderItemComponent(),jsxRuntimeExports.jsx(TreeList$1,{items:n.children,item:n,collapsed:v,components:s,componentMatches:d,onSelect:m})]})}},TreeList$1=class extends React.Component{render(){const{items:n,collapsed:s,components:d,componentMatches:m,styleOverride:v,onSelect:S,selected:C,selectable:I}=this.props,N=classnames({"tree-list":!0,hidden:s});return jsxRuntimeExports.jsx("ul",{className:N,style:v,children:n.map(function(M){return jsxRuntimeExports.jsx(TreeListItem$2,{item:M,components:d,componentMatches:m,onSelect:S,selected:C,selectable:I,time:new Date},M.uid)})})}};class TreeView extends React.Component{constructor(n){super(n),this.state={selected:null},this.handleSelect=this.handleSelect.bind(this)}handleSelect(n){this.setState({selected:n})}render(){const{data:n,components:s,componentMatches:d}=this.props,{selected:m}=this.state,v=!n.length&&n.children?n.children:n||[];return jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(TreeList$1,{items:v,collapsed:!1,components:s,componentMatches:d,styleOverride:{paddingLeft:0},onSelect:this.handleSelect,selected:m,selectable:!1})})}}let AddGeoJsonButton$1=class extends React.Component{constructor(n){super(n),this.handleClick=this.handleClick.bind(this),this.handleFile=this.handleFile.bind(this)}handleClick(n){this.geojsonInput.click()}handleFile(n){const{doAddDataFile:s}=this.props,d=this.geojsonInput.files[0];s(d)}render(){return jsxRuntimeExports.jsx(BasicToolbarMenuItem,{active:!1,iconClass:"ms ms-geojson icon-inline",title:"Add Local GeoJSON File",text:"Add Local GeoJSON File",onClick:this.handleClick,passProps:{},disableSubmenu:!0,children:jsxRuntimeExports.jsx("input",{onChange:this.handleFile,accept:".geojson,.json",className:"hidden",type:"file",ref:n=>{this.geojsonInput=n}})})}};const AddGeoJsonButton=connect("doAddDataFile",AddGeoJsonButton$1);let AddShapefileButton$1=class extends React.Component{constructor(n){super(n),this.handleClick=this.handleClick.bind(this),this.handleFile=this.handleFile.bind(this)}handleClick(n){this.shapefileInput.click()}handleFile(n){const{doAddDataFile:s}=this.props,d=this.shapefileInput.files[0];s(d)}render(){return jsxRuntimeExports.jsx(BasicToolbarMenuItem,{active:!1,iconClass:"ms ms-shp icon-inline",title:"Add Local Shapefile",text:"Add Local Shapefile",onClick:this.handleClick,passProps:{},disableSubmenu:!0,children:jsxRuntimeExports.jsx("input",{onChange:this.handleFile,accept:".zip",className:"hidden",type:"file",ref:n=>{this.shapefileInput=n}})})}};const AddShapefileButton=connect("doAddDataFile",AddShapefileButton$1);let AddKmlFileButton$1=class extends React.Component{constructor(n){super(n),this.handleClick=this.handleClick.bind(this),this.handleFile=this.handleFile.bind(this)}handleClick(n){this.geojsonInput.click()}handleFile(n){const{doAddDataFile:s}=this.props,d=this.geojsonInput.files[0];s(d)}render(){return jsxRuntimeExports.jsx(BasicToolbarMenuItem,{active:!1,iconClass:"ms ms-kml icon-inline",title:"Add Local KML File",text:"Add Local KML File",onClick:this.handleClick,passProps:{},disableSubmenu:!0,children:jsxRuntimeExports.jsx("input",{onChange:this.handleFile,accept:".kml",className:"hidden",type:"file",ref:n=>{this.geojsonInput=n}})})}};const AddKmlFileButton=connect("doAddDataFile",AddKmlFileButton$1);let AddDataButton$1=class extends React.Component{constructor(n){super(n)}render(){return jsxRuntimeExports.jsx(BasicToolbarButton,{enabled:!0,iconClass:"mdi mdi-plus-box-multiple",title:"Add Data",onDeactivate:()=>{},children:jsxRuntimeExports.jsxs(BasicToolbarMenu,{children:[jsxRuntimeExports.jsx(AddGeoJsonButton,{}),jsxRuntimeExports.jsx(AddShapefileButton,{}),jsxRuntimeExports.jsx(AddKmlFileButton,{})]})})}};const AddDataButton=connect("doNotificationsFire",AddDataButton$1);try{let t=()=>new DecompressionStream("deflate-raw"),n=s=>new Response(s);t(),l=s=>n(n(s).body.pipeThrough(t())).arrayBuffer().then(d=>new Uint8Array(d))}catch{}var l,w$1=new TextDecoder,c=t=>{throw Error("but-unzip~"+t)};function*p(t,n=l){let s=t.length-21,d=s-65536,m=new DataView(t.buffer,t.byteOffset),v=I=>m.getUint16(I+s,1),S=I=>m.getUint32(I+s,1),C=(I,N)=>t.subarray(s+=I,s+=N);for(;s>d&&(s=t.lastIndexOf(80,s-1))+1&&(t[s+1]-75||t[s+2]-5||t[s+3]-6););for(s<0&&c(2),d=v(10),d-v(8)&&c(3),s=S(16);d--;){let I=v(10),N=v(28),M=v(30),k=v(32),z=S(20),V=S(42),H=w$1.decode(C(46,N)),W=w$1.decode(C(M,k)),J=s,K;s=V,K=C(30+v(26)+v(28),z),yield{filename:H,comment:W,read:()=>I-8?I?c(1):K:n(K)},s=J}}const regex$3=/.+\.(shp|dbf|json|prj|cpg)$/i,unzip=async t=>{const n={},s=[];for(const v of p(t))regex$3.test(v.filename)&&s.push(Promise.resolve(v.read()).then(S=>n[v.filename]=S));await Promise.all(s);const d={},m=new TextDecoder;for(const[v,S]of Object.entries(n))v.slice(-3).toLowerCase()==="shp"||v.slice(-3).toLowerCase()==="dbf"?d[v]=new DataView(S.buffer,S.byteOffset,S.byteLength):d[v]=m.decode(S);return d},URL$2=globalThis.URL,combine$2=(t,n)=>{if(!n)return t;const s=new URL$2(t);return s.pathname=`${s.pathname}.${n}`,s.href};async function binaryAjax(t,n){const s=combine$2(t,n),d=n==="prj"||n==="cpg";try{const m=await fetch(s);if(m.status>399)throw new Error(m.statusText);if(d)return m.text();const v=await m.arrayBuffer();return new DataView(v)}catch(m){if(d||n==="dbf")return!1;throw m}}function isClockWise(t){let n=0,s=1;const d=t.length;let m,v;const S=[t[0][0],t[0][1],t[0][0],t[0][1]];for(;s<d;)m=v||t[0],v=t[s],n+=(v[0]-m[0])*(v[1]+m[1]),s++,v[0]<S[0]&&(S[0]=v[0]),v[1]<S[1]&&(S[1]=v[1]),v[0]>S[2]&&(S[2]=v[0]),v[1]>S[3]&&(S[3]=v[1]);return{ring:t,clockWise:n>0,bbox:S,children:[]}}function contains(t,n){return!(t.bbox[0]>n.bbox[0]||t.bbox[1]>n.bbox[1]||t.bbox[2]<n.bbox[2]||t.bbox[3]<n.bbox[3])}function handleRings(t,n=!1){const s=[],d=[];for(const S of t){const C=isClockWise(S);C.clockWise!==n?s.push(C):d.push(C)}const m=[];for(const S of d){let C;for(const I of s)contains(I,S)&&(C?contains(C,I)&&(C=I):C=I);C?C.children.push(S.ring):m.push(S)}if(n)return{outers:s,orphens:m};if(m.length&&!n){const S=handleRings(t,!0);if(S.orphens.length===0){const C=[];for(const I of S.outers)C.push([I.ring.toReversed()].concat(I.children.map(N=>N.toReversed())));return C}}const v=[];for(const S of s)v.push([S.ring].concat(S.children));return v}ParseShp.prototype.parsePoint=function(t){return{type:"Point",coordinates:this.parseCoord(t,0)}},ParseShp.prototype.parseZPoint=function(t){const n=this.parsePoint(t);return n.coordinates.push(t.getFloat64(16,!0)),n},ParseShp.prototype.parsePointArray=function(t,n,s){const d=[];let m=0;for(;m<s;)d.push(this.parseCoord(t,n)),n+=16,m++;return d},ParseShp.prototype.parseZPointArray=function(t,n,s,d){let m=0;for(;m<s;)d[m].push(t.getFloat64(n,!0)),m++,n+=8;return d},ParseShp.prototype.parseArrayGroup=function(t,n,s,d,m){const v=[];let S=0,C,I=0,N;for(;S<d;)S++,s+=4,C=I,S===d?I=m:I=t.getInt32(s,!0),N=I-C,N&&(v.push(this.parsePointArray(t,n,N)),n+=N<<4);return v},ParseShp.prototype.parseZArrayGroup=function(t,n,s,d){let m=0;for(;m<s;)d[m]=this.parseZPointArray(t,n,d[m].length,d[m]),n+=d[m].length<<3,m++;return d},ParseShp.prototype.parseMultiPoint=function(t){const n={},s=t.getInt32(32,!0);if(!s)return null;const d=this.parseCoord(t,0),m=this.parseCoord(t,16);n.bbox=[d[0],d[1],m[0],m[1]];const v=36;return s===1?(n.type="Point",n.coordinates=this.parseCoord(t,v)):(n.type="MultiPoint",n.coordinates=this.parsePointArray(t,v,s)),n},ParseShp.prototype.parseZMultiPoint=function(t){const n=this.parseMultiPoint(t);if(!n)return null;let s;if(n.type==="Point")return n.coordinates.push(t.getFloat64(72,!0)),n;s=n.coordinates.length;const d=52+(s<<4);return n.coordinates=this.parseZPointArray(t,d,s,n.coordinates),n},ParseShp.prototype.parsePolyline=function(t){const n={},s=t.getInt32(32,!0);if(!s)return null;const d=this.parseCoord(t,0),m=this.parseCoord(t,16);n.bbox=[d[0],d[1],m[0],m[1]];const v=t.getInt32(36,!0);let S,C;return s===1?(n.type="LineString",S=44,n.coordinates=this.parsePointArray(t,S,v)):(n.type="MultiLineString",S=40+(s<<2),C=40,n.coordinates=this.parseArrayGroup(t,S,C,s,v)),n},ParseShp.prototype.parseZPolyline=function(t){const n=this.parsePolyline(t);if(!n)return null;const s=n.coordinates.length;let d;return n.type==="LineString"?(d=60+(s<<4),n.coordinates=this.parseZPointArray(t,d,s,n.coordinates),n):(d=56+(n.coordinates.reduce(function(v,S){return v+S.length},0)<<4)+(s<<2),n.coordinates=this.parseZArrayGroup(t,d,s,n.coordinates),n)},ParseShp.prototype.polyFuncs=function(t){return t&&(t.type==="LineString"?(t.type="Polygon",t.coordinates=[t.coordinates],t):(t.coordinates=handleRings(t.coordinates),t.coordinates.length===1?(t.type="Polygon",t.coordinates=t.coordinates[0],t):(t.type="MultiPolygon",t)))},ParseShp.prototype.parsePolygon=function(t){return this.polyFuncs(this.parsePolyline(t))},ParseShp.prototype.parseZPolygon=function(t){return this.polyFuncs(this.parseZPolyline(t))};const shpFuncObj={1:"parsePoint",3:"parsePolyline",5:"parsePolygon",8:"parseMultiPoint",11:"parseZPoint",13:"parseZPolyline",15:"parseZPolygon",18:"parseZMultiPoint"};function makeParseCoord(t){return t?function(n,s){const d=[n.getFloat64(s,!0),n.getFloat64(s+8,!0)];return t.inverse(d)}:function(n,s){return[n.getFloat64(s,!0),n.getFloat64(s+8,!0)]}}function ParseShp(t,n){if(!(this instanceof ParseShp))return new ParseShp(t,n);this.buffer=t,this.headers=this.parseHeader(),this.shpFuncs(n),this.rows=this.getRows()}ParseShp.prototype.shpFuncs=function(t){let n=this.headers.shpCode;if(n>20&&(n-=20),!(n in shpFuncObj))throw new Error(`I don't know shp type "${n}"`);this.parseFunc=this[shpFuncObj[n]],this.parseCoord=makeParseCoord(t)},ParseShp.prototype.getShpCode=function(){return this.parseHeader().shpCode},ParseShp.prototype.parseHeader=function(){const t=this.buffer;return{length:t.getInt32(24)<<1,version:t.getInt32(28,!0),shpCode:t.getInt32(32,!0),bbox:[t.getFloat64(36,!0),t.getFloat64(44,!0),t.getFloat64(52,!0),t.getFloat64(60,!0)]}},ParseShp.prototype.getRows=function(){let t=100;const n=this.buffer.byteLength-8,s=[];let d;for(;t<=n&&(d=this.getRow(t),!!d);)t+=8,t+=d.len,d.type?s.push(this.parseFunc(d.data)):s.push(null);return s},ParseShp.prototype.getRow=function(t){const n=this.buffer.getInt32(t),s=this.buffer.getInt32(t+4)<<1;if(s===0)return{id:n,len:s,type:0};if(!(t+s+8>this.buffer.byteLength))return{id:n,len:s,data:new DataView(this.buffer.buffer,this.buffer.byteOffset+t+12,s-4),type:this.buffer.getInt32(t+8,!0)}};function parseShp(t,n){return new ParseShp(t,n).rows}var regex$2=/^(?:ANSI\s)?(\d+)$/m;function createDecoder(t,n){if(!t)return d;try{new TextDecoder(t.trim())}catch{var s=regex$2.exec(t);return s&&!n?createDecoder("windows-"+s[1],!0):(t=void 0,d)}return d;function d(m){var v=new TextDecoder(t||void 0),S=v.decode(m,{stream:!0})+v.decode();return S.replace(/\0/g,"").trim()}}function dbfHeader(t){var n={};return n.lastUpdated=new Date(t.getUint8(1)+1900,t.getUint8(2),t.getUint8(3)),n.records=t.getUint32(4,!0),n.headerLen=t.getUint16(8,!0),n.recLen=t.getUint16(10,!0),n}function dbfRowHeader(t,n,s){for(var d=[],m=32;m<n&&(d.push({name:s(new Uint8Array(t.buffer.slice(t.byteOffset+m,t.byteOffset+m+11))),dataType:String.fromCharCode(t.getUint8(m+11)),len:t.getUint8(m+16),decimal:t.getUint8(m+17)}),t.getUint8(m+32)!==13);)m+=32;return d}function rowFuncs(t,n,s,d,m){const v=new Uint8Array(t.buffer.slice(t.byteOffset+n,t.byteOffset+n+s));var S=m(v);switch(d){case"N":case"F":case"O":return parseFloat(S,10);case"D":return new Date(S.slice(0,4),parseInt(S.slice(4,6),10)-1,S.slice(6,8));case"L":return S.toLowerCase()==="y"||S.toLowerCase()==="t";default:return S}}function parseRow(t,n,s,d){for(var m={},v=0,S=s.length,C,I;v<S;)I=s[v],C=rowFuncs(t,n,I.len,I.dataType,d),n+=I.len,typeof C<"u"&&(m[I.name]=C),v++;return m}function parseDbf(t,n){for(var s=createDecoder(n),d=dbfHeader(t),m=dbfRowHeader(t,d.headerLen-1,s),v=(m.length+1<<5)+2,S=d.recLen,C=d.records,I=[];C;)I.push(parseRow(t,v,m,s)),v+=S,C--;return I}const URL$1=globalThis.URL,toUitn8Arr=t=>{if(!t)throw new Error("forgot to pass buffer");if(isArrayBuffer(t))return new Uint8Array(t);if(isArrayBuffer(t.buffer))return t.BYTES_PER_ELEMENT===1?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new Error("invalid buffer like object")},txtDecoder=new TextDecoder,toString=t=>{if(t){if(typeof t=="string")return t;if(isArrayBuffer(t)||ArrayBuffer.isView(t)||isDataView(t))return txtDecoder.decode(t)}},toDataView=t=>{if(!t)throw new Error("forgot to pass buffer");if(isDataView(t))return t;if(isArrayBuffer(t))return new DataView(t);if(isArrayBuffer(t.buffer))return new DataView(t.buffer,t.byteOffset,t.byteLength);throw new Error("invalid buffer like object")};function isArrayBuffer(t){return t instanceof globalThis.ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]"}function isDataView(t){return t instanceof globalThis.DataView||Object.prototype.toString.call(t)==="[object DataView]"}const combine$1=function([t,n]){const s={};s.type="FeatureCollection",s.features=[];let d=0;const m=t.length;for(n||(n=[]);d<m;)s.features.push({type:"Feature",geometry:t[d],properties:n[d]||{}}),d++;return s},parseZip=async function(t,n){let s;t=toUitn8Arr(t);const d=await unzip(t),m=[];n=n||[];for(s in d)s.indexOf("__MACOSX")===-1&&(s.slice(-4).toLowerCase()===".shp"?(m.push(s.slice(0,-4)),d[s.slice(0,-3)+s.slice(-3).toLowerCase()]=d[s]):s.slice(-4).toLowerCase()===".prj"?d[s.slice(0,-3)+s.slice(-3).toLowerCase()]=proj4(d[s]):s.slice(-5).toLowerCase()===".json"||n.indexOf(s.split(".").pop())>-1?m.push(s.slice(0,-3)+s.slice(-3).toLowerCase()):(s.slice(-4).toLowerCase()===".dbf"||s.slice(-4).toLowerCase()===".cpg")&&(d[s.slice(0,-3)+s.slice(-3).toLowerCase()]=d[s]));if(!m.length)throw new Error("no layers founds");const v=m.map(function(S){let C,I;const N=S.lastIndexOf(".");return N>-1&&S.slice(N).indexOf("json")>-1?(C=JSON.parse(d[S]),C.fileName=S.slice(0,N)):n.indexOf(S.slice(N+1))>-1?(C=d[S],C.fileName=S):(d[S+".dbf"]&&(I=parseDbf(d[S+".dbf"],d[S+".cpg"])),C=combine$1([parseShp(d[S+".shp"],d[S+".prj"]),I]),C.fileName=S),C});return v.length===1?v[0]:v};async function getZip(t,n){const s=await binaryAjax(t);return parseZip(s,n)}const handleShp=async t=>{const n=await Promise.all([binaryAjax(t,"shp"),binaryAjax(t,"prj")]);let s=!1;try{n[1]&&(s=proj4(n[1]))}catch{s=!1}return parseShp(n[0],s)},handleDbf=async t=>{const[n,s]=await Promise.all([binaryAjax(t,"dbf"),binaryAjax(t,"cpg")]);if(n)return parseDbf(n,s)},checkSuffix=(t,n)=>new URL$1(t,globalThis?.document?.location).pathname.slice(-4).toLowerCase()===n,fromObject=({shp:t,dbf:n,cpg:s,prj:d})=>{const m=[_parseShp(t,d)];return n&&m.push(_parseDbf(n,s)),combine$1(m)},getShapefile=async function(t,n){if(typeof t!="string"){if(isArrayBuffer(t)||ArrayBuffer.isView(t)||isDataView(t))return parseZip(t);if(t.shp)return fromObject(t);throw new TypeError("must be a string, some sort of Buffer, or an object with at least a .shp property")}if(checkSuffix(t,".zip"))return getZip(t,n);checkSuffix(t,".shp")&&(t=t.slice(0,-4));const s=await Promise.all([handleShp(t),handleDbf(t)]);return combine$1(s)},_parseShp=function(t,n){if(t=toDataView(t),n=toString(n),typeof n=="string")try{n=proj4(n)}catch{n=!1}return parseShp(t,n)},_parseDbf=function(t,n){return t=toDataView(t),n=toString(n),parseDbf(t,n)};var togeojson={exports:{}},lib$1={},dom={},conventions={},hasRequiredConventions;function requireConventions(){if(hasRequiredConventions)return conventions;hasRequiredConventions=1;function t(v,S,C){if(C===void 0&&(C=Array.prototype),v&&typeof C.find=="function")return C.find.call(v,S);for(var I=0;I<v.length;I++)if(Object.prototype.hasOwnProperty.call(v,I)){var N=v[I];if(S.call(void 0,N,I,v))return N}}function n(v,S){return S===void 0&&(S=Object),S&&typeof S.freeze=="function"?S.freeze(v):v}function s(v,S){if(v===null||typeof v!="object")throw new TypeError("target is not an object");for(var C in S)Object.prototype.hasOwnProperty.call(S,C)&&(v[C]=S[C]);return v}var d=n({HTML:"text/html",isHTML:function(v){return v===d.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),m=n({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(v){return v===m.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});return conventions.assign=s,conventions.find=t,conventions.freeze=n,conventions.MIME_TYPE=d,conventions.NAMESPACE=m,conventions}var hasRequiredDom;function requireDom(){if(hasRequiredDom)return dom;hasRequiredDom=1;var t=requireConventions(),n=t.find,s=t.NAMESPACE;function d(ae){return ae!==""}function m(ae){return ae?ae.split(/[\t\n\f\r ]+/).filter(d):[]}function v(ae,le){return ae.hasOwnProperty(le)||(ae[le]=!0),ae}function S(ae){if(!ae)return[];var le=m(ae);return Object.keys(le.reduce(v,{}))}function C(ae){return function(le){return ae&&ae.indexOf(le)!==-1}}function I(ae,le){for(var fe in ae)Object.prototype.hasOwnProperty.call(ae,fe)&&(le[fe]=ae[fe])}function N(ae,le){var fe=ae.prototype;if(!(fe instanceof le)){let Xe=function(){};Xe.prototype=le.prototype,Xe=new Xe,I(fe,Xe),ae.prototype=fe=Xe}fe.constructor!=ae&&(typeof ae!="function"&&console.error("unknown Class:"+ae),fe.constructor=ae)}var M={},k=M.ELEMENT_NODE=1,z=M.ATTRIBUTE_NODE=2,V=M.TEXT_NODE=3,H=M.CDATA_SECTION_NODE=4,W=M.ENTITY_REFERENCE_NODE=5,J=M.ENTITY_NODE=6,K=M.PROCESSING_INSTRUCTION_NODE=7,re=M.COMMENT_NODE=8,te=M.DOCUMENT_NODE=9,ue=M.DOCUMENT_TYPE_NODE=10,se=M.DOCUMENT_FRAGMENT_NODE=11,ge=M.NOTATION_NODE=12,pe={},Ee={};pe.INDEX_SIZE_ERR=(Ee[1]="Index size error",1),pe.DOMSTRING_SIZE_ERR=(Ee[2]="DOMString size error",2);var ce=pe.HIERARCHY_REQUEST_ERR=(Ee[3]="Hierarchy request error",3);pe.WRONG_DOCUMENT_ERR=(Ee[4]="Wrong document",4);var me=pe.INVALID_CHARACTER_ERR=(Ee[5]="Invalid character",5);pe.NO_DATA_ALLOWED_ERR=(Ee[6]="No data allowed",6),pe.NO_MODIFICATION_ALLOWED_ERR=(Ee[7]="No modification allowed",7);var Re=pe.NOT_FOUND_ERR=(Ee[8]="Not found",8);pe.NOT_SUPPORTED_ERR=(Ee[9]="Not supported",9);var Ne=pe.INUSE_ATTRIBUTE_ERR=(Ee[10]="Attribute in use",10),we=pe.INVALID_STATE_ERR=(Ee[11]="Invalid state",11);pe.SYNTAX_ERR=(Ee[12]="Syntax error",12),pe.INVALID_MODIFICATION_ERR=(Ee[13]="Invalid modification",13),pe.NAMESPACE_ERR=(Ee[14]="Invalid namespace",14),pe.INVALID_ACCESS_ERR=(Ee[15]="Invalid access",15);function De(ae,le){if(le instanceof Error)var fe=le;else fe=this,Error.call(this,Ee[ae]),this.message=Ee[ae],Error.captureStackTrace&&Error.captureStackTrace(this,De);return fe.code=ae,le&&(this.message=this.message+": "+le),fe}De.prototype=Error.prototype,I(pe,De);function Ge(){}Ge.prototype={length:0,item:function(ae){return ae>=0&&ae<this.length?this[ae]:null},toString:function(ae,le,fe){for(var Xe=!!fe&&!!fe.requireWellFormed,ot=[],yt=0;yt<this.length;yt++)Nn(this[yt],ot,ae,le,null,Xe);return ot.join("")},filter:function(ae){return Array.prototype.filter.call(this,ae)},indexOf:function(ae){return Array.prototype.indexOf.call(this,ae)}};function de(ae,le){this._node=ae,this._refresh=le,Ce(this)}function Ce(ae){var le=ae._node._inc||ae._node.ownerDocument._inc;if(ae._inc!==le){var fe=ae._refresh(ae._node);if(Fn(ae,"length",fe.length),!ae.$$length||fe.length<ae.$$length)for(var Xe=fe.length;Xe in ae;Xe++)Object.prototype.hasOwnProperty.call(ae,Xe)&&delete ae[Xe];I(fe,ae),ae._inc=le}}de.prototype.item=function(ae){return Ce(this),this[ae]||null},N(de,Ge);function ke(){}function We(ae,le){for(var fe=ae.length;fe--;)if(ae[fe]===le)return fe}function Ve(ae,le,fe,Xe){if(Xe?le[We(le,Xe)]=fe:le[le.length++]=fe,ae){fe.ownerElement=ae;var ot=ae.ownerDocument;ot&&(Xe&&Gt(ot,ae,Xe),xe(ot,ae,fe))}}function Le(ae,le,fe){var Xe=We(le,fe);if(Xe>=0){for(var ot=le.length-1;Xe<ot;)le[Xe]=le[++Xe];if(le.length=ot,ae){var yt=ae.ownerDocument;yt&&(Gt(yt,ae,fe),fe.ownerElement=null)}}else throw new De(Re,new Error(ae.tagName+"@"+fe))}ke.prototype={length:0,item:Ge.prototype.item,getNamedItem:function(ae){for(var le=this.length;le--;){var fe=this[le];if(fe.nodeName==ae)return fe}},setNamedItem:function(ae){var le=ae.ownerElement;if(le&&le!=this._ownerElement)throw new De(Ne);var fe=this.getNamedItem(ae.nodeName);return Ve(this._ownerElement,this,ae,fe),fe},setNamedItemNS:function(ae){var le=ae.ownerElement,fe;if(le&&le!=this._ownerElement)throw new De(Ne);return fe=this.getNamedItemNS(ae.namespaceURI,ae.localName),Ve(this._ownerElement,this,ae,fe),fe},removeNamedItem:function(ae){var le=this.getNamedItem(ae);return Le(this._ownerElement,this,le),le},removeNamedItemNS:function(ae,le){var fe=this.getNamedItemNS(ae,le);return Le(this._ownerElement,this,fe),fe},getNamedItemNS:function(ae,le){for(var fe=this.length;fe--;){var Xe=this[fe];if(Xe.localName==le&&Xe.namespaceURI==ae)return Xe}return null}};function Je(){}Je.prototype={hasFeature:function(ae,le){return!0},createDocument:function(ae,le,fe){var Xe=new gt;if(Xe.implementation=this,Xe.childNodes=new Ge,Xe.doctype=fe||null,fe&&Xe.appendChild(fe),le){var ot=Xe.createElementNS(ae,le);Xe.appendChild(ot)}return Xe},createDocumentType:function(ae,le,fe){var Xe=new Tt;return Xe.name=ae,Xe.nodeName=ae,Xe.publicId=le||"",Xe.systemId=fe||"",Xe}};function He(){}He.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(ae,le){return Jt(this,ae,le)},replaceChild:function(ae,le){Jt(this,ae,le,on),le&&this.removeChild(le)},removeChild:function(ae){return Be(this,ae)},appendChild:function(ae){return this.insertBefore(ae,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(ae){return Ra(this.ownerDocument||this,this,ae)},normalize:function(){pt(this,null,{enter:function(ae){for(var le=ae.firstChild;le;){var fe=le.nextSibling;fe!==null&&fe.nodeType===V&&le.nodeType===V?(ae.removeChild(fe),le.appendData(fe.data)):le=fe}return!0}})},isSupported:function(ae,le){return this.ownerDocument.implementation.hasFeature(ae,le)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(ae){for(var le=this;le;){var fe=le._nsMap;if(fe){for(var Xe in fe)if(Object.prototype.hasOwnProperty.call(fe,Xe)&&fe[Xe]===ae)return Xe}le=le.nodeType==z?le.ownerDocument:le.parentNode}return null},lookupNamespaceURI:function(ae){for(var le=this;le;){var fe=le._nsMap;if(fe&&Object.prototype.hasOwnProperty.call(fe,ae))return fe[ae];le=le.nodeType==z?le.ownerDocument:le.parentNode}return null},isDefaultNamespace:function(ae){var le=this.lookupPrefix(ae);return le==null}};function Pe(ae){return ae=="<"&&"&lt;"||ae==">"&&"&gt;"||ae=="&"&&"&amp;"||ae=='"'&&"&quot;"||"&#"+ae.charCodeAt()+";"}I(M,He),I(M,He.prototype);function it(ae,le){return pt(ae,null,{enter:function(fe){return le(fe)?pt.STOP:!0}})===pt.STOP}function pt(ae,le,fe){for(var Xe=[{node:ae,context:le,phase:pt.ENTER}];Xe.length>0;){var ot=Xe.pop();if(ot.phase===pt.ENTER){var yt=fe.enter(ot.node,ot.context);if(yt===pt.STOP)return pt.STOP;if(Xe.push({node:ot.node,context:yt,phase:pt.EXIT}),yt==null)continue;for(var ut=ot.node.lastChild;ut;)Xe.push({node:ut,context:yt,phase:pt.ENTER}),ut=ut.previousSibling}else fe.exit&&fe.exit(ot.node,ot.context)}}pt.STOP=Symbol("walkDOM.STOP"),pt.ENTER=0,pt.EXIT=1;function gt(){this.ownerDocument=this}function xe(ae,le,fe){ae&&ae._inc++;var Xe=fe.namespaceURI;Xe===s.XMLNS&&(le._nsMap[fe.prefix?fe.localName:""]=fe.value)}function Gt(ae,le,fe,Xe){ae&&ae._inc++;var ot=fe.namespaceURI;ot===s.XMLNS&&delete le._nsMap[fe.prefix?fe.localName:""]}function st(ae,le,fe){if(ae&&ae._inc){ae._inc++;var Xe=le.childNodes;if(fe)Xe[Xe.length++]=fe;else{for(var ot=le.firstChild,yt=0;ot;)Xe[yt++]=ot,ot=ot.nextSibling;Xe.length=yt,delete Xe[Xe.length]}}}function Be(ae,le){var fe=le.previousSibling,Xe=le.nextSibling;return fe?fe.nextSibling=Xe:ae.firstChild=Xe,Xe?Xe.previousSibling=fe:ae.lastChild=fe,le.parentNode=null,le.previousSibling=null,le.nextSibling=null,st(ae.ownerDocument,ae),le}function oe(ae){return ae&&(ae.nodeType===He.DOCUMENT_NODE||ae.nodeType===He.DOCUMENT_FRAGMENT_NODE||ae.nodeType===He.ELEMENT_NODE)}function _t(ae){return ae&&(kt(ae)||dt(ae)||Rt(ae)||ae.nodeType===He.DOCUMENT_FRAGMENT_NODE||ae.nodeType===He.COMMENT_NODE||ae.nodeType===He.PROCESSING_INSTRUCTION_NODE)}function Rt(ae){return ae&&ae.nodeType===He.DOCUMENT_TYPE_NODE}function kt(ae){return ae&&ae.nodeType===He.ELEMENT_NODE}function dt(ae){return ae&&ae.nodeType===He.TEXT_NODE}function Fa(ae,le){var fe=ae.childNodes||[];if(n(fe,kt)||Rt(le))return!1;var Xe=n(fe,Rt);return!(le&&Xe&&fe.indexOf(Xe)>fe.indexOf(le))}function $a(ae,le){var fe=ae.childNodes||[];function Xe(yt){return kt(yt)&&yt!==le}if(n(fe,Xe))return!1;var ot=n(fe,Rt);return!(le&&ot&&fe.indexOf(ot)>fe.indexOf(le))}function rt(ae,le,fe){if(!oe(ae))throw new De(ce,"Unexpected parent node type "+ae.nodeType);if(fe&&fe.parentNode!==ae)throw new De(Re,"child not in parent");if(!_t(le)||Rt(le)&&ae.nodeType!==He.DOCUMENT_NODE)throw new De(ce,"Unexpected node type "+le.nodeType+" for parent node type "+ae.nodeType)}function Yt(ae,le,fe){var Xe=ae.childNodes||[],ot=le.childNodes||[];if(le.nodeType===He.DOCUMENT_FRAGMENT_NODE){var yt=ot.filter(kt);if(yt.length>1||n(ot,dt))throw new De(ce,"More than one element or text in fragment");if(yt.length===1&&!Fa(ae,fe))throw new De(ce,"Element in fragment can not be inserted before doctype")}if(kt(le)&&!Fa(ae,fe))throw new De(ce,"Only one element can be added and only after doctype");if(Rt(le)){if(n(Xe,Rt))throw new De(ce,"Only one doctype is allowed");var ut=n(Xe,kt);if(fe&&Xe.indexOf(ut)<Xe.indexOf(fe))throw new De(ce,"Doctype can only be inserted before an element");if(!fe&&ut)throw new De(ce,"Doctype can not be appended since element is present")}}function on(ae,le,fe){var Xe=ae.childNodes||[],ot=le.childNodes||[];if(le.nodeType===He.DOCUMENT_FRAGMENT_NODE){var yt=ot.filter(kt);if(yt.length>1||n(ot,dt))throw new De(ce,"More than one element or text in fragment");if(yt.length===1&&!$a(ae,fe))throw new De(ce,"Element in fragment can not be inserted before doctype")}if(kt(le)&&!$a(ae,fe))throw new De(ce,"Only one element can be added and only after doctype");if(Rt(le)){if(n(Xe,function(gn){return Rt(gn)&&gn!==fe}))throw new De(ce,"Only one doctype is allowed");var ut=n(Xe,kt);if(fe&&Xe.indexOf(ut)<Xe.indexOf(fe))throw new De(ce,"Doctype can only be inserted before an element")}}function Jt(ae,le,fe,Xe){rt(ae,le,fe),ae.nodeType===He.DOCUMENT_NODE&&(Xe||Yt)(ae,le,fe);var ot=le.parentNode;if(ot&&ot.removeChild(le),le.nodeType===se){var yt=le.firstChild;if(yt==null)return le;var ut=le.lastChild}else yt=ut=le;var tn=fe?fe.previousSibling:ae.lastChild;yt.previousSibling=tn,ut.nextSibling=fe,tn?tn.nextSibling=yt:ae.firstChild=yt,fe==null?ae.lastChild=ut:fe.previousSibling=ut;do{yt.parentNode=ae;var gn=ae.ownerDocument||ae;mr(yt,gn)}while(yt!==ut&&(yt=yt.nextSibling));return st(ae.ownerDocument||ae,ae),le.nodeType==se&&(le.firstChild=le.lastChild=null),le}function mr(ae,le){if(ae.ownerDocument!==le){if(ae.ownerDocument=le,ae.nodeType===k&&ae.attributes)for(var fe=0;fe<ae.attributes.length;fe++){var Xe=ae.attributes.item(fe);Xe&&(Xe.ownerDocument=le)}for(var ot=ae.firstChild;ot;)mr(ot,le),ot=ot.nextSibling}}function vt(ae,le){le.parentNode&&le.parentNode.removeChild(le),le.parentNode=ae,le.previousSibling=ae.lastChild,le.nextSibling=null,le.previousSibling?le.previousSibling.nextSibling=le:ae.firstChild=le,ae.lastChild=le,st(ae.ownerDocument,ae,le);var fe=ae.ownerDocument||ae;return mr(le,fe),le}gt.prototype={nodeName:"#document",nodeType:te,doctype:null,documentElement:null,_inc:1,insertBefore:function(ae,le){if(ae.nodeType==se){for(var fe=ae.firstChild;fe;){var Xe=fe.nextSibling;this.insertBefore(fe,le),fe=Xe}return ae}return Jt(this,ae,le),mr(ae,this),this.documentElement===null&&ae.nodeType===k&&(this.documentElement=ae),ae},removeChild:function(ae){return this.documentElement==ae&&(this.documentElement=null),Be(this,ae)},replaceChild:function(ae,le){Jt(this,ae,le,on),mr(ae,this),le&&this.removeChild(le),kt(ae)&&(this.documentElement=ae)},importNode:function(ae,le){return Ti(this,ae,le)},getElementById:function(ae){var le=null;return it(this.documentElement,function(fe){if(fe.nodeType==k&&fe.getAttribute("id")==ae)return le=fe,!0}),le},getElementsByClassName:function(ae){var le=S(ae);return new de(this,function(fe){var Xe=[];return le.length>0&&it(fe.documentElement,function(ot){if(ot!==fe&&ot.nodeType===k){var yt=ot.getAttribute("class");if(yt){var ut=ae===yt;if(!ut){var tn=S(yt);ut=le.every(C(tn))}ut&&Xe.push(ot)}}}),Xe})},createElement:function(ae){var le=new Ja;le.ownerDocument=this,le.nodeName=ae,le.tagName=ae,le.localName=ae,le.childNodes=new Ge;var fe=le.attributes=new ke;return fe._ownerElement=le,le},createDocumentFragment:function(){var ae=new bt;return ae.ownerDocument=this,ae.childNodes=new Ge,ae},createTextNode:function(ae){var le=new xt;return le.ownerDocument=this,le.appendData(ae),le},createComment:function(ae){var le=new vu;return le.ownerDocument=this,le.appendData(ae),le},createCDATASection:function(ae){if(ae.indexOf("]]>")!==-1)throw new De(me,'data contains "]]>"');var le=new zt;return le.ownerDocument=this,le.appendData(ae),le},createProcessingInstruction:function(ae,le){var fe=new $n;return fe.ownerDocument=this,fe.tagName=fe.nodeName=fe.target=ae,fe.nodeValue=fe.data=le,fe},createAttribute:function(ae){var le=new gr;return le.ownerDocument=this,le.name=ae,le.nodeName=ae,le.localName=ae,le.specified=!0,le},createEntityReference:function(ae){var le=new ia;return le.ownerDocument=this,le.nodeName=ae,le},createElementNS:function(ae,le){var fe=new Ja,Xe=le.split(":"),ot=fe.attributes=new ke;return fe.childNodes=new Ge,fe.ownerDocument=this,fe.nodeName=le,fe.tagName=le,fe.namespaceURI=ae,Xe.length==2?(fe.prefix=Xe[0],fe.localName=Xe[1]):fe.localName=le,ot._ownerElement=fe,fe},createAttributeNS:function(ae,le){var fe=new gr,Xe=le.split(":");return fe.ownerDocument=this,fe.nodeName=le,fe.name=le,fe.namespaceURI=ae,fe.specified=!0,Xe.length==2?(fe.prefix=Xe[0],fe.localName=Xe[1]):fe.localName=le,fe}},N(gt,He);function Ja(){this._nsMap={}}Ja.prototype={nodeType:k,hasAttribute:function(ae){return this.getAttributeNode(ae)!=null},getAttribute:function(ae){var le=this.getAttributeNode(ae);return le&&le.value||""},getAttributeNode:function(ae){return this.attributes.getNamedItem(ae)},setAttribute:function(ae,le){var fe=this.ownerDocument.createAttribute(ae);fe.value=fe.nodeValue=""+le,this.setAttributeNode(fe)},removeAttribute:function(ae){var le=this.getAttributeNode(ae);le&&this.removeAttributeNode(le)},appendChild:function(ae){return ae.nodeType===se?this.insertBefore(ae,null):vt(this,ae)},setAttributeNode:function(ae){return this.attributes.setNamedItem(ae)},setAttributeNodeNS:function(ae){return this.attributes.setNamedItemNS(ae)},removeAttributeNode:function(ae){return this.attributes.removeNamedItem(ae.nodeName)},removeAttributeNS:function(ae,le){var fe=this.getAttributeNodeNS(ae,le);fe&&this.removeAttributeNode(fe)},hasAttributeNS:function(ae,le){return this.getAttributeNodeNS(ae,le)!=null},getAttributeNS:function(ae,le){var fe=this.getAttributeNodeNS(ae,le);return fe&&fe.value||""},setAttributeNS:function(ae,le,fe){var Xe=this.ownerDocument.createAttributeNS(ae,le);Xe.value=Xe.nodeValue=""+fe,this.setAttributeNode(Xe)},getAttributeNodeNS:function(ae,le){return this.attributes.getNamedItemNS(ae,le)},getElementsByTagName:function(ae){return new de(this,function(le){var fe=[];return it(le,function(Xe){Xe!==le&&Xe.nodeType==k&&(ae==="*"||Xe.tagName==ae)&&fe.push(Xe)}),fe})},getElementsByTagNameNS:function(ae,le){return new de(this,function(fe){var Xe=[];return it(fe,function(ot){ot!==fe&&ot.nodeType===k&&(ae==="*"||ot.namespaceURI===ae)&&(le==="*"||ot.localName==le)&&Xe.push(ot)}),Xe})}},gt.prototype.getElementsByTagName=Ja.prototype.getElementsByTagName,gt.prototype.getElementsByTagNameNS=Ja.prototype.getElementsByTagNameNS,N(Ja,He);function gr(){}gr.prototype.nodeType=z,N(gr,He);function yr(){}yr.prototype={data:"",substringData:function(ae,le){return this.data.substring(ae,ae+le)},appendData:function(ae){ae=this.data+ae,this.nodeValue=this.data=ae,this.length=ae.length},insertData:function(ae,le){this.replaceData(ae,0,le)},appendChild:function(ae){throw new Error(Ee[ce])},deleteData:function(ae,le){this.replaceData(ae,le,"")},replaceData:function(ae,le,fe){var Xe=this.data.substring(0,ae),ot=this.data.substring(ae+le);fe=Xe+fe+ot,this.nodeValue=this.data=fe,this.length=fe.length}},N(yr,He);function xt(){}xt.prototype={nodeName:"#text",nodeType:V,splitText:function(ae){var le=this.data,fe=le.substring(ae);le=le.substring(0,ae),this.data=this.nodeValue=le,this.length=le.length;var Xe=this.ownerDocument.createTextNode(fe);return this.parentNode&&this.parentNode.insertBefore(Xe,this.nextSibling),Xe}},N(xt,yr);function vu(){}vu.prototype={nodeName:"#comment",nodeType:re},N(vu,yr);function zt(){}zt.prototype={nodeName:"#cdata-section",nodeType:H},N(zt,yr);function Tt(){}Tt.prototype.nodeType=ue,N(Tt,He);function Yu(){}Yu.prototype.nodeType=ge,N(Yu,He);function ra(){}ra.prototype.nodeType=J,N(ra,He);function ia(){}ia.prototype.nodeType=W,N(ia,He);function bt(){}bt.prototype.nodeName="#document-fragment",bt.prototype.nodeType=se,N(bt,He);function $n(){}$n.prototype.nodeType=K,N($n,He);function Xu(){}Xu.prototype.serializeToString=function(ae,le,fe,Xe){return tu.call(ae,le,fe,Xe)},He.prototype.toString=tu;function tu(ae,le,fe){var Xe=!!fe&&!!fe.requireWellFormed,ot=[],yt=this.nodeType==9&&this.documentElement||this,ut=yt.prefix,tn=yt.namespaceURI;if(tn&&ut==null){var ut=yt.lookupPrefix(tn);if(ut==null)var gn=[{namespace:tn,prefix:null}]}return Nn(this,ot,ae,le,gn,Xe),ot.join("")}function ua(ae,le,fe){var Xe=ae.prefix||"",ot=ae.namespaceURI;if(!ot||Xe==="xml"&&ot===s.XML||ot===s.XMLNS)return!1;for(var yt=fe.length;yt--;){var ut=fe[yt];if(ut.prefix===Xe)return ut.namespace!==ot}return!0}function Jn(ae,le,fe){ae.push(" ",le,'="',fe.replace(/[<>&"\t\n\r]/g,Pe),'"')}function Nn(ae,le,fe,Xe,ot,yt){ot||(ot=[]),pt(ae,{ns:ot,isHTML:fe},{enter:function(ut,tn){var gn=tn.ns,qn=tn.isHTML;if(Xe)if(ut=Xe(ut),ut){if(typeof ut=="string")return le.push(ut),null}else return null;switch(ut.nodeType){case k:var Tr=ut.attributes,li=Tr.length,ci=ut.tagName;qn=s.isHTML(ut.namespaceURI)||qn;var sa=ci;if(!qn&&!ut.prefix&&ut.namespaceURI){for(var hn,yn=0;yn<Tr.length;yn++)if(Tr.item(yn).name==="xmlns"){hn=Tr.item(yn).value;break}if(!hn)for(var Ta=gn.length-1;Ta>=0;Ta--){var Wa=gn[Ta];if(Wa.prefix===""&&Wa.namespace===ut.namespaceURI){hn=Wa.namespace;break}}if(hn!==ut.namespaceURI)for(var Ta=gn.length-1;Ta>=0;Ta--){var Wa=gn[Ta];if(Wa.namespace===ut.namespaceURI){Wa.prefix&&(sa=Wa.prefix+":"+ci);break}}}le.push("<",sa);for(var Da=gn.slice(),Qa=0;Qa<li;Qa++){var qa=Tr.item(Qa);qa.prefix=="xmlns"?Da.push({prefix:qa.localName,namespace:qa.value}):qa.nodeName=="xmlns"&&Da.push({prefix:"",namespace:qa.value})}for(var Qa=0;Qa<li;Qa++){var qa=Tr.item(Qa);if(ua(qa,qn,Da)){var Ga=qa.prefix||"",Dr=qa.namespaceURI;Jn(le,Ga?"xmlns:"+Ga:"xmlns",Dr),Da.push({prefix:Ga,namespace:Dr})}var bn=Xe?Xe(qa):qa;bn&&(typeof bn=="string"?le.push(bn):Jn(le,bn.name,bn.value))}if(ci===sa&&ua(ut,qn,Da)){var Di=ut.prefix||"",Dr=ut.namespaceURI;Jn(le,Di?"xmlns:"+Di:"xmlns",Dr),Da.push({prefix:Di,namespace:Dr})}var Ir=ut.firstChild;if(Ir||qn&&!/^(?:meta|link|img|br|hr|input)$/i.test(ci)){if(le.push(">"),qn&&/^script$/i.test(ci)){for(;Ir;)Ir.data?le.push(Ir.data):Nn(Ir,le,qn,Xe,Da.slice(),yt),Ir=Ir.nextSibling;return le.push("</",ci,">"),null}return{ns:Da,isHTML:qn,tag:sa}}else return le.push("/>"),null;case te:case se:return{ns:gn.slice(),isHTML:qn,tag:null};case z:return Jn(le,ut.name,ut.value),null;case V:return le.push(ut.data.replace(/[<&>]/g,Pe)),null;case H:if(yt&&ut.data.indexOf("]]>")!==-1)throw new De(we,'The CDATASection data contains "]]>"');return le.push("<![CDATA[",ut.data.replace(/]]>/g,"]]]]><![CDATA[>"),"]]>"),null;case re:if(yt&&ut.data.indexOf("-->")!==-1)throw new De(we,'The comment node data contains "-->"');return le.push("<!--",ut.data,"-->"),null;case ue:if(yt){if(ut.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(ut.publicId))throw new De(we,"DocumentType publicId is not a valid PubidLiteral");if(ut.systemId&&!/^("[^"]*"|'[^']*')$/.test(ut.systemId))throw new De(we,"DocumentType systemId is not a valid SystemLiteral");if(ut.internalSubset&&ut.internalSubset.indexOf("]>")!==-1)throw new De(we,'DocumentType internalSubset contains "]>"')}var Gr=ut.publicId,Vt=ut.systemId;if(le.push("<!DOCTYPE ",ut.name),Gr)le.push(" PUBLIC ",Gr),Vt&&Vt!="."&&le.push(" ",Vt),le.push(">");else if(Vt&&Vt!=".")le.push(" SYSTEM ",Vt,">");else{var fi=ut.internalSubset;fi&&le.push(" [",fi,"]"),le.push(">")}return null;case K:if(yt&&ut.data.indexOf("?>")!==-1)throw new De(we,'The ProcessingInstruction data contains "?>"');return le.push("<?",ut.target," ",ut.data,"?>"),null;case W:return le.push("&",ut.nodeName,";"),null;default:return le.push("??",ut.nodeName),null}},exit:function(ut,tn){tn&&tn.tag&&le.push("</",tn.tag,">")}})}function Ti(ae,le,fe){var Xe;return pt(le,null,{enter:function(ot,yt){var ut=ot.cloneNode(!1);ut.ownerDocument=ae,ut.parentNode=null,yt===null?Xe=ut:yt.appendChild(ut);var tn=ot.nodeType===z||fe;return tn?ut:null}}),Xe}function Ra(ae,le,fe){var Xe;return pt(le,null,{enter:function(ot,yt){var ut=new ot.constructor;for(var tn in ot)if(Object.prototype.hasOwnProperty.call(ot,tn)){var gn=ot[tn];typeof gn!="object"&&gn!=ut[tn]&&(ut[tn]=gn)}ot.childNodes&&(ut.childNodes=new Ge),ut.ownerDocument=ae;var qn=fe;switch(ut.nodeType){case k:var Tr=ot.attributes,li=ut.attributes=new ke,ci=Tr.length;li._ownerElement=ut;for(var sa=0;sa<ci;sa++)ut.setAttributeNode(Ra(ae,Tr.item(sa),!0));break;case z:qn=!0}return yt!==null?yt.appendChild(ut):Xe=ut,qn?ut:null}}),Xe}function Fn(ae,le,fe){ae[le]=fe}try{Object.defineProperty&&(Object.defineProperty(de.prototype,"length",{get:function(){return Ce(this),this.$$length}}),Object.defineProperty(He.prototype,"textContent",{get:function(){if(this.nodeType===k||this.nodeType===se){var ae=[];return pt(this,null,{enter:function(le){if(le.nodeType===k||le.nodeType===se)return!0;if(le.nodeType===K||le.nodeType===re)return null;ae.push(le.nodeValue)}}),ae.join("")}return this.nodeValue},set:function(ae){switch(this.nodeType){case k:case se:for(;this.firstChild;)this.removeChild(this.firstChild);(ae||String(ae))&&this.appendChild(this.ownerDocument.createTextNode(ae));break;default:this.data=ae,this.value=ae,this.nodeValue=ae}}}),Fn=function(ae,le,fe){ae["$$"+le]=fe})}catch{}return dom.DocumentType=Tt,dom.DOMException=De,dom.DOMImplementation=Je,dom.Element=Ja,dom.Node=He,dom.NodeList=Ge,dom.walkDOM=pt,dom.XMLSerializer=Xu,dom}var domParser={},entities={},hasRequiredEntities;function requireEntities(){return hasRequiredEntities||(hasRequiredEntities=1,(function(t){var n=requireConventions().freeze;t.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=n({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
140
+ `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),t.entityMap=t.HTML_ENTITIES})(entities)),entities}var sax={},hasRequiredSax;function requireSax(){if(hasRequiredSax)return sax;hasRequiredSax=1;var t=requireConventions().NAMESPACE,n=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,s=new RegExp("[\\-\\.0-9"+n.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),d=new RegExp("^"+n.source+s.source+"*(?::"+n.source+s.source+"*)?$"),m=0,v=1,S=2,C=3,I=4,N=5,M=6,k=7;function z(ce,me){this.message=ce,this.locator=me,Error.captureStackTrace&&Error.captureStackTrace(this,z)}z.prototype=new Error,z.prototype.name=z.name;function V(){}V.prototype={parse:function(ce,me,Re){var Ne=this.domBuilder;Ne.startDocument(),ue(me,me={}),H(ce,me,Re,Ne,this.errorHandler),Ne.endDocument()}};function H(ce,me,Re,Ne,we){function De(on){if(on>65535){on-=65536;var Jt=55296+(on>>10),mr=56320+(on&1023);return String.fromCharCode(Jt,mr)}else return String.fromCharCode(on)}function Ge(on){var Jt=on.slice(1,-1);return Object.hasOwnProperty.call(Re,Jt)?Re[Jt]:Jt.charAt(0)==="#"?De(parseInt(Jt.substr(1).replace("x","0x"))):(we.error("entity not found:"+on),on)}function de(on){if(on>Pe){var Jt=ce.substring(Pe,on).replace(/&#?\w+;/g,Ge);Le&&Ce(Pe),Ne.characters(Jt,0,on-Pe),Pe=on}}function Ce(on,Jt){for(;on>=We&&(Jt=Ve.exec(ce));)ke=Jt.index,We=ke+Jt[0].length,Le.lineNumber++;Le.columnNumber=on-ke+1}for(var ke=0,We=0,Ve=/.*(?:\r\n?|\n)|.*$/g,Le=Ne.locator,Je=[{currentNSMap:me}],He={},Pe=0;;){try{var it=ce.indexOf("<",Pe);if(it<0){if(!ce.substr(Pe).match(/^\s*$/)){var pt=Ne.doc,gt=pt.createTextNode(ce.substr(Pe));pt.appendChild(gt),Ne.currentElement=gt}return}switch(it>Pe&&de(it),ce.charAt(it+1)){case"/":var dt=ce.indexOf(">",it+3),xe=ce.substring(it+2,dt).replace(/[ \t\n\r]+$/g,""),Gt=Je.pop();dt<0?(xe=ce.substring(it+2).replace(/[\s<].*/,""),we.error("end tag name: "+xe+" is not complete:"+Gt.tagName),dt=it+1+xe.length):xe.match(/\s</)&&(xe=xe.replace(/[\s<].*/,""),we.error("end tag name: "+xe+" maybe not complete"),dt=it+1+xe.length);var st=Gt.localNSMap,Be=Gt.tagName==xe,oe=Be||Gt.tagName&&Gt.tagName.toLowerCase()==xe.toLowerCase();if(oe){if(Ne.endElement(Gt.uri,Gt.localName,xe),st)for(var _t in st)Object.prototype.hasOwnProperty.call(st,_t)&&Ne.endPrefixMapping(_t);Be||we.fatalError("end tag name: "+xe+" is not match the current start tagName:"+Gt.tagName)}else Je.push(Gt);dt++;break;case"?":Le&&Ce(it),dt=ge(ce,it,Ne);break;case"!":Le&&Ce(it),dt=se(ce,it,Ne,we);break;default:Le&&Ce(it);var Rt=new pe,kt=Je[Je.length-1].currentNSMap,dt=J(ce,it,Rt,kt,Ge,we),Fa=Rt.length;if(!Rt.closed&&te(ce,dt,Rt.tagName,He)&&(Rt.closed=!0,Re.nbsp||we.warning("unclosed xml attribute")),Le&&Fa){for(var $a=W(Le,{}),rt=0;rt<Fa;rt++){var Yt=Rt[rt];Ce(Yt.offset),Yt.locator=W(Le,{})}Ne.locator=$a,K(Rt,Ne,kt)&&Je.push(Rt),Ne.locator=Le}else K(Rt,Ne,kt)&&Je.push(Rt);t.isHTML(Rt.uri)&&!Rt.closed?dt=re(ce,dt,Rt.tagName,Ge,Ne):dt++}}catch(on){if(on instanceof z)throw on;we.error("element parse error: "+on),dt=-1}dt>Pe?Pe=dt:de(Math.max(it,Pe)+1)}}function W(ce,me){return me.lineNumber=ce.lineNumber,me.columnNumber=ce.columnNumber,me}function J(ce,me,Re,Ne,we,De){function Ge(Le,Je,He){Re.attributeNames.hasOwnProperty(Le)&&De.fatalError("Attribute "+Le+" redefined"),Re.addValue(Le,Je.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,we),He)}for(var de,Ce,ke=++me,We=m;;){var Ve=ce.charAt(ke);switch(Ve){case"=":if(We===v)de=ce.slice(me,ke),We=C;else if(We===S)We=C;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(We===C||We===v)if(We===v&&(De.warning('attribute value must after "="'),de=ce.slice(me,ke)),me=ke+1,ke=ce.indexOf(Ve,me),ke>0)Ce=ce.slice(me,ke),Ge(de,Ce,me-1),We=N;else throw new Error("attribute value no end '"+Ve+"' match");else if(We==I)Ce=ce.slice(me,ke),Ge(de,Ce,me),De.warning('attribute "'+de+'" missed start quot('+Ve+")!!"),me=ke+1,We=N;else throw new Error('attribute value must after "="');break;case"/":switch(We){case m:Re.setTagName(ce.slice(me,ke));case N:case M:case k:We=k,Re.closed=!0;case I:case v:break;case S:Re.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return De.error("unexpected end of input"),We==m&&Re.setTagName(ce.slice(me,ke)),ke;case">":switch(We){case m:Re.setTagName(ce.slice(me,ke));case N:case M:case k:break;case I:case v:Ce=ce.slice(me,ke),Ce.slice(-1)==="/"&&(Re.closed=!0,Ce=Ce.slice(0,-1));case S:We===S&&(Ce=de),We==I?(De.warning('attribute "'+Ce+'" missed quot(")!'),Ge(de,Ce,me)):((!t.isHTML(Ne[""])||!Ce.match(/^(?:disabled|checked|selected)$/i))&&De.warning('attribute "'+Ce+'" missed value!! "'+Ce+'" instead!!'),Ge(Ce,Ce,me));break;case C:throw new Error("attribute value missed!!")}return ke;case"€":Ve=" ";default:if(Ve<=" ")switch(We){case m:Re.setTagName(ce.slice(me,ke)),We=M;break;case v:de=ce.slice(me,ke),We=S;break;case I:var Ce=ce.slice(me,ke);De.warning('attribute "'+Ce+'" missed quot(")!!'),Ge(de,Ce,me);case N:We=M;break}else switch(We){case S:Re.tagName,(!t.isHTML(Ne[""])||!de.match(/^(?:disabled|checked|selected)$/i))&&De.warning('attribute "'+de+'" missed value!! "'+de+'" instead2!!'),Ge(de,de,me),me=ke,We=v;break;case N:De.warning('attribute space is required"'+de+'"!!');case M:We=v,me=ke;break;case C:We=I,me=ke;break;case k:throw new Error("elements closed character '/' and '>' must be connected to")}}ke++}}function K(ce,me,Re){for(var Ne=ce.tagName,we=null,Ve=ce.length;Ve--;){var De=ce[Ve],Ge=De.qName,de=De.value,Le=Ge.indexOf(":");if(Le>0)var Ce=De.prefix=Ge.slice(0,Le),ke=Ge.slice(Le+1),We=Ce==="xmlns"&&ke;else ke=Ge,Ce=null,We=Ge==="xmlns"&&"";De.localName=ke,We!==!1&&(we==null&&(we={},ue(Re,Re={})),Re[We]=we[We]=de,De.uri=t.XMLNS,me.startPrefixMapping(We,de))}for(var Ve=ce.length;Ve--;){De=ce[Ve];var Ce=De.prefix;Ce&&(Ce==="xml"&&(De.uri=t.XML),Ce!=="xmlns"&&(De.uri=Re[Ce||""]))}var Le=Ne.indexOf(":");Le>0?(Ce=ce.prefix=Ne.slice(0,Le),ke=ce.localName=Ne.slice(Le+1)):(Ce=null,ke=ce.localName=Ne);var Je=ce.uri=Re[Ce||""];if(me.startElement(Je,ke,Ne,ce),ce.closed){if(me.endElement(Je,ke,Ne),we)for(Ce in we)Object.prototype.hasOwnProperty.call(we,Ce)&&me.endPrefixMapping(Ce)}else return ce.currentNSMap=Re,ce.localNSMap=we,!0}function re(ce,me,Re,Ne,we){if(/^(?:script|textarea)$/i.test(Re)){var De=ce.indexOf("</"+Re+">",me),Ge=ce.substring(me+1,De);if(/[&<]/.test(Ge))return/^script$/i.test(Re)?(we.characters(Ge,0,Ge.length),De):(Ge=Ge.replace(/&#?\w+;/g,Ne),we.characters(Ge,0,Ge.length),De)}return me+1}function te(ce,me,Re,Ne){var we=Ne[Re];return we==null&&(we=ce.lastIndexOf("</"+Re+">"),we<me&&(we=ce.lastIndexOf("</"+Re)),Ne[Re]=we),we<me}function ue(ce,me){for(var Re in ce)Object.prototype.hasOwnProperty.call(ce,Re)&&(me[Re]=ce[Re])}function se(ce,me,Re,Ne){var we=ce.charAt(me+2);switch(we){case"-":if(ce.charAt(me+3)==="-"){var De=ce.indexOf("-->",me+4);return De>me?(Re.comment(ce,me+4,De-me-4),De+3):(Ne.error("Unclosed comment"),-1)}else return-1;default:if(ce.substr(me+3,6)=="CDATA["){var De=ce.indexOf("]]>",me+9);return Re.startCDATA(),Re.characters(ce,me+9,De-me-9),Re.endCDATA(),De+3}var Ge=Ee(ce,me),de=Ge.length;if(de>1&&/!doctype/i.test(Ge[0][0])){var Ce=Ge[1][0],ke=!1,We=!1;de>3&&(/^public$/i.test(Ge[2][0])?(ke=Ge[3][0],We=de>4&&Ge[4][0]):/^system$/i.test(Ge[2][0])&&(We=Ge[3][0]));var Ve=Ge[de-1];return Re.startDTD(Ce,ke,We),Re.endDTD(),Ve.index+Ve[0].length}}return-1}function ge(ce,me,Re){var Ne=ce.indexOf("?>",me);if(Ne){var we=ce.substring(me,Ne).match(/^<\?(\S*)\s*([\s\S]*?)$/);return we?(we[0].length,Re.processingInstruction(we[1],we[2]),Ne+2):-1}return-1}function pe(){this.attributeNames={}}pe.prototype={setTagName:function(ce){if(!d.test(ce))throw new Error("invalid tagName:"+ce);this.tagName=ce},addValue:function(ce,me,Re){if(!d.test(ce))throw new Error("invalid attribute:"+ce);this.attributeNames[ce]=this.length,this[this.length++]={qName:ce,value:me,offset:Re}},length:0,getLocalName:function(ce){return this[ce].localName},getLocator:function(ce){return this[ce].locator},getQName:function(ce){return this[ce].qName},getURI:function(ce){return this[ce].uri},getValue:function(ce){return this[ce].value}};function Ee(ce,me){var Re,Ne=[],we=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(we.lastIndex=me,we.exec(ce);Re=we.exec(ce);)if(Ne.push(Re),Re[1])return Ne}return sax.XMLReader=V,sax.ParseError=z,sax}var hasRequiredDomParser;function requireDomParser(){if(hasRequiredDomParser)return domParser;hasRequiredDomParser=1;var t=requireConventions(),n=requireDom(),s=requireEntities(),d=requireSax(),m=n.DOMImplementation,v=t.NAMESPACE,S=d.ParseError,C=d.XMLReader;function I(J){return J.replace(/\r[\n\u0085]/g,`
141
+ `).replace(/[\r\u0085\u2028]/g,`
142
+ `)}function N(J){this.options=J||{locator:{}}}N.prototype.parseFromString=function(J,K){var re=this.options,te=new C,ue=re.domBuilder||new k,se=re.errorHandler,ge=re.locator,pe=re.xmlns||{},Ee=/\/x?html?$/.test(K),ce=Ee?s.HTML_ENTITIES:s.XML_ENTITIES;ge&&ue.setDocumentLocator(ge),te.errorHandler=M(se,ue,ge),te.domBuilder=re.domBuilder||ue,Ee&&(pe[""]=v.HTML),pe.xml=pe.xml||v.XML;var me=re.normalizeLineEndings||I;return J&&typeof J=="string"?te.parse(me(J),pe,ce):te.errorHandler.error("invalid doc source"),ue.doc};function M(J,K,re){if(!J){if(K instanceof k)return K;J=K}var te={},ue=J instanceof Function;re=re||{};function se(ge){var pe=J[ge];!pe&&ue&&(pe=J.length==2?function(Ee){J(ge,Ee)}:J),te[ge]=pe&&function(Ee){pe("[xmldom "+ge+"] "+Ee+V(re))}||function(){}}return se("warning"),se("error"),se("fatalError"),te}function k(){this.cdata=!1}function z(J,K){K.lineNumber=J.lineNumber,K.columnNumber=J.columnNumber}k.prototype={startDocument:function(){this.doc=new m().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(J,K,re,te){var ue=this.doc,se=ue.createElementNS(J,re||K),ge=te.length;W(this,se),this.currentElement=se,this.locator&&z(this.locator,se);for(var pe=0;pe<ge;pe++){var J=te.getURI(pe),Ee=te.getValue(pe),re=te.getQName(pe),ce=ue.createAttributeNS(J,re);this.locator&&z(te.getLocator(pe),ce),ce.value=ce.nodeValue=Ee,se.setAttributeNode(ce)}},endElement:function(J,K,re){var te=this.currentElement;te.tagName,this.currentElement=te.parentNode},startPrefixMapping:function(J,K){},endPrefixMapping:function(J){},processingInstruction:function(J,K){var re=this.doc.createProcessingInstruction(J,K);this.locator&&z(this.locator,re),W(this,re)},ignorableWhitespace:function(J,K,re){},characters:function(J,K,re){if(J=H.apply(this,arguments),J){if(this.cdata)var te=this.doc.createCDATASection(J);else var te=this.doc.createTextNode(J);this.currentElement?this.currentElement.appendChild(te):/^\s*$/.test(J)&&this.doc.appendChild(te),this.locator&&z(this.locator,te)}},skippedEntity:function(J){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(J){(this.locator=J)&&(J.lineNumber=0)},comment:function(J,K,re){J=H.apply(this,arguments);var te=this.doc.createComment(J);this.locator&&z(this.locator,te),W(this,te)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(J,K,re){var te=this.doc.implementation;if(te&&te.createDocumentType){var ue=te.createDocumentType(J,K,re);this.locator&&z(this.locator,ue),W(this,ue),this.doc.doctype=ue}},warning:function(J){console.warn("[xmldom warning] "+J,V(this.locator))},error:function(J){console.error("[xmldom error] "+J,V(this.locator))},fatalError:function(J){throw new S(J,this.locator)}};function V(J){if(J)return`
143
+ @`+(J.systemId||"")+"#[line:"+J.lineNumber+",col:"+J.columnNumber+"]"}function H(J,K,re){return typeof J=="string"?J.substr(K,re):J.length>=K+re||K?new java.lang.String(J,K,re)+"":J}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(J){k.prototype[J]=function(){return null}});function W(J,K){J.currentElement?J.currentElement.appendChild(K):J.doc.appendChild(K)}return domParser.__DOMHandler=k,domParser.normalizeLineEndings=I,domParser.DOMParser=N,domParser}var hasRequiredLib;function requireLib(){if(hasRequiredLib)return lib$1;hasRequiredLib=1;var t=requireDom();return lib$1.DOMImplementation=t.DOMImplementation,lib$1.XMLSerializer=t.XMLSerializer,lib$1.DOMParser=requireDomParser().DOMParser,lib$1}var hasRequiredTogeojson;function requireTogeojson(){return hasRequiredTogeojson||(hasRequiredTogeojson=1,(function(t,n){var s=(function(){var d=/\s*/g,m=/^\s*|\s*$/g,v=/\s+/;function S(ce){if(!ce||!ce.length)return 0;for(var me=0,Re=0;me<ce.length;me++)Re=(Re<<5)-Re+ce.charCodeAt(me)|0;return Re}function C(ce,me){return ce.getElementsByTagName(me)}function I(ce,me){return ce.getAttribute(me)}function N(ce,me){return parseFloat(I(ce,me))}function M(ce,me){var Re=C(ce,me);return Re.length?Re[0]:null}function k(ce){return ce.normalize&&ce.normalize(),ce}function z(ce){for(var me=0,Re=[];me<ce.length;me++)Re[me]=parseFloat(ce[me]);return Re}function V(ce){return ce&&k(ce),ce&&ce.textContent||""}function H(ce,me){var Re={},Ne,we;for(we=0;we<me.length;we++)Ne=M(ce,me[we]),Ne&&(Re[me[we]]=V(Ne));return Re}function W(ce,me){for(var Re in me)ce[Re]=me[Re]}function J(ce){return z(ce.replace(d,"").split(","))}function K(ce){for(var me=ce.replace(m,"").split(v),Re=[],Ne=0;Ne<me.length;Ne++)Re.push(J(me[Ne]));return Re}function re(ce){var me=[N(ce,"lon"),N(ce,"lat")],Re=M(ce,"ele"),Ne=M(ce,"gpxtpx:hr")||M(ce,"hr"),we=M(ce,"time"),De;return Re&&(De=parseFloat(V(Re)),isNaN(De)||me.push(De)),{coordinates:me,time:we?V(we):null,heartRate:Ne?parseFloat(V(Ne)):null}}function te(){return{type:"FeatureCollection",features:[]}}var ue;if(typeof XMLSerializer<"u")ue=new XMLSerializer;else{var se=typeof process$1=="object"&&!process$1.browser,ge=typeof Titanium=="object";if(se||ge)ue=new(requireLib()).XMLSerializer;else throw new Error("Unable to initialize serializer")}function pe(ce){return ce.xml!==void 0?ce.xml:ue.serializeToString(ce)}var Ee={kml:function(ce){for(var me=te(),Re={},Ne={},we={},De=["Polygon","LineString","Point","Track","gx:Track"],Ge=C(ce,"Placemark"),de=C(ce,"Style"),Ce=C(ce,"StyleMap"),ke=0;ke<de.length;ke++){var We=S(pe(de[ke])).toString(16);Re["#"+I(de[ke],"id")]=We,Ne[We]=de[ke]}for(var Ve=0;Ve<Ce.length;Ve++){Re["#"+I(Ce[Ve],"id")]=S(pe(Ce[Ve])).toString(16);for(var Le=C(Ce[Ve],"Pair"),Je={},He=0;He<Le.length;He++)Je[V(M(Le[He],"key"))]=V(M(Le[He],"styleUrl"));we["#"+I(Ce[Ve],"id")]=Je}for(var Pe=0;Pe<Ge.length;Pe++)me.features=me.features.concat(Gt(Ge[Pe]));function it(st){var Be,oe;return st=st||"",st.substr(0,1)==="#"&&(st=st.substr(1)),(st.length===6||st.length===3)&&(Be=st),st.length===8&&(oe=parseInt(st.substr(0,2),16)/255,Be="#"+st.substr(6,2)+st.substr(4,2)+st.substr(2,2)),[Be,isNaN(oe)?void 0:oe]}function pt(st){return z(st.split(" "))}function gt(st){var Be=C(st,"coord"),oe=[],_t=[];Be.length===0&&(Be=C(st,"gx:coord"));for(var Rt=0;Rt<Be.length;Rt++)oe.push(pt(V(Be[Rt])));for(var kt=C(st,"when"),dt=0;dt<kt.length;dt++)_t.push(V(kt[dt]));return{coords:oe,times:_t}}function xe(st){var Be,oe,_t,Rt,kt,dt=[],Fa=[];if(M(st,"MultiGeometry"))return xe(M(st,"MultiGeometry"));if(M(st,"MultiTrack"))return xe(M(st,"MultiTrack"));if(M(st,"gx:MultiTrack"))return xe(M(st,"gx:MultiTrack"));for(_t=0;_t<De.length;_t++)if(oe=C(st,De[_t]),oe){for(Rt=0;Rt<oe.length;Rt++)if(Be=oe[Rt],De[_t]==="Point")dt.push({type:"Point",coordinates:J(V(M(Be,"coordinates")))});else if(De[_t]==="LineString")dt.push({type:"LineString",coordinates:K(V(M(Be,"coordinates")))});else if(De[_t]==="Polygon"){var $a=C(Be,"LinearRing"),rt=[];for(kt=0;kt<$a.length;kt++)rt.push(K(V(M($a[kt],"coordinates"))));dt.push({type:"Polygon",coordinates:rt})}else if(De[_t]==="Track"||De[_t]==="gx:Track"){var Yt=gt(Be);dt.push({type:"LineString",coordinates:Yt.coords}),Yt.times.length&&Fa.push(Yt.times)}}return{geoms:dt,coordTimes:Fa}}function Gt(st){var Be=xe(st),oe,_t={},Rt=V(M(st,"name")),kt=V(M(st,"address")),dt=V(M(st,"styleUrl")),Fa=V(M(st,"description")),$a=M(st,"TimeSpan"),rt=M(st,"TimeStamp"),Yt=M(st,"ExtendedData"),on=M(st,"LineStyle"),Jt=M(st,"PolyStyle"),mr=M(st,"visibility");if(!Be.geoms.length)return[];if(Rt&&(_t.name=Rt),kt&&(_t.address=kt),dt){dt[0]!=="#"&&(dt="#"+dt),_t.styleUrl=dt,Re[dt]&&(_t.styleHash=Re[dt]),we[dt]&&(_t.styleMapHash=we[dt],_t.styleHash=Re[we[dt].normal]);var vt=Ne[_t.styleHash];if(vt){on||(on=M(vt,"LineStyle")),Jt||(Jt=M(vt,"PolyStyle"));var Ja=M(vt,"IconStyle");if(Ja){var gr=M(Ja,"Icon");if(gr){var yr=V(M(gr,"href"));yr&&(_t.icon=yr)}}}}if(Fa&&(_t.description=Fa),$a){var xt=V(M($a,"begin")),vu=V(M($a,"end"));_t.timespan={begin:xt,end:vu}}if(rt&&(_t.timestamp=V(M(rt,"when"))),on){var zt=it(V(M(on,"color"))),Tt=zt[0],Yu=zt[1],ra=parseFloat(V(M(on,"width")));Tt&&(_t.stroke=Tt),isNaN(Yu)||(_t["stroke-opacity"]=Yu),isNaN(ra)||(_t["stroke-width"]=ra)}if(Jt){var ia=it(V(M(Jt,"color"))),bt=ia[0],$n=ia[1],Xu=V(M(Jt,"fill")),tu=V(M(Jt,"outline"));bt&&(_t.fill=bt),isNaN($n)||(_t["fill-opacity"]=$n),Xu&&(_t["fill-opacity"]=Xu==="1"?_t["fill-opacity"]||1:0),tu&&(_t["stroke-opacity"]=tu==="1"?_t["stroke-opacity"]||1:0)}if(Yt){var ua=C(Yt,"Data"),Jn=C(Yt,"SimpleData");for(oe=0;oe<ua.length;oe++)_t[ua[oe].getAttribute("name")]=V(M(ua[oe],"value"));for(oe=0;oe<Jn.length;oe++)_t[Jn[oe].getAttribute("name")]=V(Jn[oe])}mr&&(_t.visibility=V(mr)),Be.coordTimes.length&&(_t.coordTimes=Be.coordTimes.length===1?Be.coordTimes[0]:Be.coordTimes);var Nn={type:"Feature",geometry:Be.geoms.length===1?Be.geoms[0]:{type:"GeometryCollection",geometries:Be.geoms},properties:_t};return I(st,"id")&&(Nn.id=I(st,"id")),[Nn]}return me},gpx:function(ce){var me,Re=C(ce,"trk"),Ne=C(ce,"rte"),we=C(ce,"wpt"),De=te(),Ge;for(me=0;me<Re.length;me++)Ge=ke(Re[me]),Ge&&De.features.push(Ge);for(me=0;me<Ne.length;me++)Ge=We(Ne[me]),Ge&&De.features.push(Ge);for(me=0;me<we.length;me++)De.features.push(Ve(we[me]));function de(He,Pe){for(var it=0;it<Pe;it++)He.push(null);return He}function Ce(He,Pe){var it=C(He,Pe),pt=[],gt=[],xe=[],Gt=it.length;if(Gt<2)return{};for(var st=0;st<Gt;st++){var Be=re(it[st]);pt.push(Be.coordinates),Be.time&&gt.push(Be.time),(Be.heartRate||xe.length)&&(xe.length||de(xe,st),xe.push(Be.heartRate||null))}return{line:pt,times:gt,heartRates:xe}}function ke(He){for(var Pe=C(He,"trkseg"),it=[],pt=[],gt=[],xe,Gt=0;Gt<Pe.length;Gt++)if(xe=Ce(Pe[Gt],"trkpt"),xe&&(xe.line&&it.push(xe.line),xe.times&&xe.times.length&&pt.push(xe.times),gt.length||xe.heartRates&&xe.heartRates.length)){if(!gt.length)for(var st=0;st<Gt;st++)gt.push(de([],it[st].length));xe.heartRates&&xe.heartRates.length?gt.push(xe.heartRates):gt.push(de([],xe.line.length||0))}if(it.length!==0){var Be=Je(He);return W(Be,Le(M(He,"extensions"))),pt.length&&(Be.coordTimes=it.length===1?pt[0]:pt),gt.length&&(Be.heartRates=it.length===1?gt[0]:gt),{type:"Feature",properties:Be,geometry:{type:it.length===1?"LineString":"MultiLineString",coordinates:it.length===1?it[0]:it}}}}function We(He){var Pe=Ce(He,"rtept");if(Pe.line){var it=Je(He);W(it,Le(M(He,"extensions")));var pt={type:"Feature",properties:it,geometry:{type:"LineString",coordinates:Pe.line}};return pt}}function Ve(He){var Pe=Je(He);return W(Pe,H(He,["sym"])),{type:"Feature",properties:Pe,geometry:{type:"Point",coordinates:re(He).coordinates}}}function Le(He){var Pe={};if(He){var it=M(He,"line");if(it){var pt=V(M(it,"color")),gt=parseFloat(V(M(it,"opacity"))),xe=parseFloat(V(M(it,"width")));pt&&(Pe.stroke=pt),isNaN(gt)||(Pe["stroke-opacity"]=gt),isNaN(xe)||(Pe["stroke-width"]=xe*96/25.4)}}return Pe}function Je(He){var Pe=H(He,["name","cmt","desc","type","time","keywords"]),it=C(He,"link");it.length&&(Pe.links=[]);for(var pt=0,gt;pt<it.length;pt++)gt={href:I(it[pt],"href")},W(gt,H(it[pt],["text","type"])),Pe.links.push(gt);return Pe}return De}};return Ee})();t.exports=s})(togeojson)),togeojson.exports}var togeojsonExports=requireTogeojson();const KMLConvert=getDefaultExportFromCjs$1(togeojsonExports),bundle$l={name:"addData",getReducer(){const t={shouldAddListeners:!1};return(n=t,{type:s,payload:d})=>{switch(s){case"ADD_DATA_ADDED_GEOJSON":return Object.assign({},n,d);case"MAP_INITIALIZED":return Object.assign({},n,{shouldAddListeners:!0});case"TURN_OFF_ADD_LISTENERS":return Object.assign({},n,{shouldAddListeners:!1});default:return n}}},doDispatchNotification:t=>({dispatch:n,store:s})=>{s.doNotificationsFire({title:"Add Data Error",message:t,level:"danger"})},doAddDataFile:t=>({dispatch:n,store:s})=>{s.doBasicToolbarDeactivate();let d=new FileReader;t&&t.name.match(/\.(geojson|json)$/)?(d.onload=function(){try{const m=JSON.parse(d.result);s.doAddDataGeojson(t.name,m)}catch(m){s.doDispatchNotification(m.message||"Error adding data")}},d.readAsText(t)):t&&t.name.match(/\.(zip)$/)?(d.onload=function(m){try{const v=m.currentTarget.result;getShapefile(v).then(S=>{console.log(S),s.doAddDataGeojson(t.name,S)}).catch(S=>{s.doDispatchNotification(S.message||"Error adding data")})}catch(v){s.doDispatchNotification(v.message||"Error adding data")}},d.readAsArrayBuffer(t)):t&&t.name.match(/\.(kml)$/)?(d.onload=function(m){try{let v=m.currentTarget.result,S=new TextDecoder,C=new Uint8Array(v),I=S.decode(C);console.log(I);const N=new DOMParser().parseFromString(I,"text/html"),M=KMLConvert.kml(N);s.doAddDataGeojson(t.name,M)}catch(v){s.doDispatchNotification(v.message||"Error adding data")}},d.readAsArrayBuffer(t)):t&&t.name.match(/\.(kmz)$/)?(d.onload=function(m){try{let v=m.currentTarget.result,S=new TextDecoder,C=new Uint8Array(v),I=S.decode(C);console.log(I)}catch(v){s.doDispatchNotification(v.message||"Error adding data")}},d.readAsArrayBuffer(t)):t&&s.doDispatchNotification(`${t.name} is not a supported GeoJSON or shapfile file type`)},doAddDataGeojson:(t,n)=>({dispatch:s,store:d})=>{d.doSetCursor("wait");const m=d.selectTreeViewRootId(),v=uuid.v4(),S=getLayer({serviceType:"LocalVector",visible:!0}),C=new GeoJSON().readFeatures(n,{dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"});S.getSource().addFeatures(C),d.hasOwnProperty("doGeojsonIdentAddFeatures")&&d.doGeojsonIdentAddFeatures(v,n,S),d.doAddLayer({uid:v,displayName:t,parentUid:m,mapLayer:S,serviceType:"LocalVector",visible:!0,zoomTo:!0}),d.doSetCursor(),s({type:"ADD_DATA_ADDED_GEOJSON",payload:{key:v}})},doMapDropDataFile:t=>({dispatch:n,store:s})=>{t.preventDefault(),t.stopPropagation();const m=t.dataTransfer.files[0];s.doAddDataFile(m)},doAddMapDragDropListeners:()=>({dispatch:t,store:n})=>{t({type:"TURN_OFF_ADD_LISTENERS"});const d=n.selectMap().getTargetElement();d.addEventListener("dragleave",function(m){m=m||event,m.preventDefault()},!1),d.addEventListener("dragover",function(m){m=m||event,m.preventDefault()},!1),d.addEventListener("drop",n.doMapDropDataFile,!1)},reactshouldAddListeners:t=>{if(t.addData.shouldAddListeners)return{actionCreator:"doAddMapDragDropListeners"}}},plugin$q={pluginName:"Add Data",enabled:!0,bundle:bundle$l,components:[{component:AddDataButton,region:"basic-toolbar",sortOrder:8}]},formatArcgisrest=function(t){for(const[n,s]of Object.entries(t)){let d=String(s).includes("https:")||String(s).includes("http:")?s:null;String(s).includes("<a href")&&(d=null),d&&(t[n]=`<a href="${s}" target="_new" > ${s} </a>`)}return t},formatArcgisVector=function(t){return t.map(n=>{for(const[s,d]of Object.entries(n.properties)){let m=String(d).includes("https:")||String(d).includes("http:")?d:null;String(d).includes("<a href")&&(m=null),m&&(n.properties[s]=`<a href="${d}" target="_new" > ${d} </a>`)}}),t},identifyColumnsArcgisrest=function(t,n){return t.results.forEach(s=>(s.attributes&&n.forEach(d=>{delete s.attributes[d]}),s.attributes)),t},identifyExcludeColumnsArcgisvector=function(t,n){return t.forEach(s=>(s.properties&&n.forEach(d=>{delete s.properties[d]}),s.properties)),t},identifyIncludeColumnsArcgisvector=function(t,n){return t.forEach(s=>{if(console.log(s,s.properties),s.properties)for(const[d,m]of Object.entries(s.properties)){let v={};n.forEach(S=>{s.properties[S]&&(v[S]=s.properties[S])}),s.properties=v}}),t},identifyRenameColumnsArcgisvector=function(t,n){return t.forEach(s=>{if(s.properties){let d={};for(const[m,v]of Object.entries(s.properties))for(const[S,C]of Object.entries(n))m===S&&(d[C]=s.properties[m],delete s.properties[m]);s.properties=Object.assign(d,s.properties)}}),t},identifyFormatColumnsArcgisvector=function(t,n){return t.forEach(s=>{if(s.properties)for(const[d,m]of Object.entries(n))console.log(d,m),s.properties.hasOwnProperty(d)&&(s.properties[d]=formatColumns(s.properties[d],m))}),t},formatColumns=function(t,n){if(n==="PERCENT"&&(t=(t*100).toFixed(0)+"%"),n==="BOOLEAN"&&(t=t===0?"No":"Yes"),n==="UNIXDATE"){if(t===null||t==="null")return null;const d=t;t=new Date(d).toLocaleString()}if(n==="UNIXDATE_NOTIME"){if(t===null||t==="null")return null;const d=t,m=new Date(d);t=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit"}).format(m)}return n==="ICEJAM"?`<span><a href="${`https://icejam.sec.usace.army.mil/ords/f?p=1001:2:::::IR_INDEX_NUMBER:${t}`}" target="_blank"> ${t} </a></span>`:t};function formatUrl$1(t){let n=`${t.root}/identify?`;const s=[];for(var d in t)d!=="root"&&s.push(d+"="+t[d].toString());return n+=s.join("&"),n}const bundle$k={name:"arcGisRestIdent",getReducer(){const t={shouldRegister:!0};return(n=t,{type:s,payload:d})=>s==="ARCGIS_IDENT_REGISTERED"?Object.assign({},n,d):n},doArcGisRestIdentRegister:()=>({dispatch:t,store:n})=>{t({type:"ARCGIS_IDENT_REGISTERED",payload:{shouldRegister:!1}}),n.doIdentifyAddCollection({onIdentify:n.doArcGisRestIdentFire})},doArcGisRestIdentFire:t=>({store:n,anonGet:s})=>{const d=n.selectIdentifyCoordinates(),m=n.selectVisibleLayers();let v=n.selectIdentifyColumnsExclude(),S="Point";if(!m.length)return t(null,[]);const C={sr:4326,tolerance:2,returnGeometry:!0,mapExtent:n.selectMapExtent(),imageDisplay:n.selectMapImageDisplay(),f:"json"};typeof d[0]=="number"?(C.geometry=d.join(","),C.geometryType="esriGeometryPoint"):(C.geometryType="esriGeometryPolygon",S="Polygon",C.geometry=encodeURIComponent(JSON.stringify({spatialReference:{wkid:4326},rings:[d[0]]})));const I=[];m.forEach(N=>{if(N.identifyType==="arcgisrest"){const M=N.mapLayer.getSource(),k=M.getUrl?M.getUrl():M.getUrls()[0],z=N.layerList;C.layers=`all:${z}`;const V=Object.assign({},C,{root:k}),H=formatUrl$1(V);I.push(W=>{s(H,(J,K,re)=>{if(J||K.statusCode!==200)W(`Error for ${N.displayName}`);else try{let te=JSON.parse(re);te=identifyColumnsArcgisrest(te,v),N.identifyFields&&te.results.forEach(ue=>{if(ue.attributes)for(const[se,ge]of Object.entries(ue.attributes)){let pe=[];N.identifyFields.forEach(Ee=>{ue.attributes[Ee]&&(pe[Ee]=ue.attributes[Ee])}),ue.attributes=pe}}),N.identifyRenameColums&&te.results.forEach(ue=>{if(ue.attributes)for(const[se,ge]of Object.entries(ue.attributes))for(const[pe,Ee]of Object.entries(N.identifyRenameColums))se===pe&&(ue.attributes[Ee]=ue.attributes[se],delete ue.attributes[se])}),W(null,{dataset:N.uid,layerName:N.displayName,err:null,result:{[N.uid]:{type:"FeatureCollection",features:te.results.map(ue=>({type:"Feature",geometry:{type:S,coordinates:d},properties:formatArcgisrest(ue.attributes)}))}}})}catch(te){W(`Error for ${N.displayName}`,te)}})})}}),async.parallel(I,(N,M)=>{t(N,M)})},reactArcGisRestIdentShouldRegister:t=>{if(t.arcGisRestIdent.shouldRegister)return{actionCreator:"doArcGisRestIdentRegister"}}},plugin$p={pluginName:"Identify ArcGIS Rest",enabled:!0,bundle:bundle$k,components:[]};let BasemapItem$1=class extends React.Component{handleClick=()=>{const{idx:n,doChangeBasemap:s}=this.props;s(n)};render(){const{active:n,basemap:s,basemapImages:d,theme:m}=this.props;let v=s.url.replace(/{[a-z]-[a-z]}/gi,"a");v=v.replace("{z}","12"),v=v.replace("{x}","1206"),v=v.replace("{y}","1539");let C=d.find(N=>N===s.id)?s.altImage:v;const I=classnames({"cm-list-group-item":!0,pointer:!0,[m]:n});return jsxRuntimeExports.jsx("li",{onClick:this.handleClick,className:I,title:s.name,children:jsxRuntimeExports.jsxs("div",{className:"overflow-ellipsis",children:[jsxRuntimeExports.jsx("img",{src:C,width:"40",height:"40",alt:`Basemap tile for ${s.name}`}),jsxRuntimeExports.jsx("span",{style:{marginLeft:"10px"},children:s.name})]})})}};const BasemapItem=connect("selectTheme","doChangeBasemap","selectBasemapImages",BasemapItem$1);let BasemapList$1=class extends React.Component{render(){const{activeBasemapIdx:n,basemapList:s,primaryPanelShowClose:d}=this.props,m=classnames({"cm-list-group":!0,"sidebar-list":!d,"thin-scrollbar":!0,"sidebar-list-show-close-btn":d});return jsxRuntimeExports.jsx("div",{className:"",children:jsxRuntimeExports.jsx("ul",{className:m,children:s.map((v,S)=>{const C=n===S;return jsxRuntimeExports.jsx(BasemapItem,{active:C,basemap:v,idx:S},S)})})})}};const BasemapList=connect("selectActiveBasemapIdx","selectBasemapList","selectPrimaryPanelShowClose",BasemapList$1);class BasemapSwitcherButton extends React.Component{render(){return jsxRuntimeExports.jsx(SidebarPanelOpenerButton,{iconClass:"mdi mdi-google-maps",label:"Basemaps",title:"Basemaps",panelComponent:BasemapList})}}const plugin$o={pluginName:"BasemapSwitcher",enabled:!0,components:[{component:BasemapSwitcherButton,region:"left-sidebar-top",sortOrder:30}]};let BookmarkListItem$1=class extends React.Component{constructor(n){super(n),this.handleClick=this.handleClick.bind(this),this.handleDelete=this.handleDelete.bind(this)}handleClick(){const{bookmark:n,doGoToBookmark:s}=this.props;s(n)}handleDelete(){const{bookmark:n,doDeleteBookmark:s}=this.props;s(n)}render(){const{theme:n,bookmark:s,idx:d,bookmarkAnimationIdx:m,bookmarksIsAnimating:v}=this.props,S=d===m&&v,C=classnames({"cm-list-group-item":!0,[n]:S}),I=classnames({"cm-btn":!S,"cm-btn-link":!S,"cm-btn-xs":!S,"overflow-ellipsis":!0,[n]:S});return jsxRuntimeExports.jsx("li",{className:C,children:jsxRuntimeExports.jsxs("div",{className:"row",children:[jsxRuntimeExports.jsx("div",{className:"col-sm-1",children:jsxRuntimeExports.jsx("i",{className:"mdi mdi-map-marker icon-inline"})}),jsxRuntimeExports.jsx("div",{className:"col-sm-9",children:jsxRuntimeExports.jsx("span",{onClick:this.handleClick,className:I,style:{maxWidth:"100%"},title:s.name,children:s.name})}),jsxRuntimeExports.jsx("div",{className:"col-sm-1",children:jsxRuntimeExports.jsx("span",{onClick:this.handleDelete,className:"cm-btn cm-btn-link cm-btn-xs",children:jsxRuntimeExports.jsx("i",{className:"mdi mdi-delete"})})})]})})}};const BookmarkListItem=connect("doGoToBookmark","doDeleteBookmark","selectTheme","selectBookmarkAnimationIdx","selectBookmarksIsAnimating",BookmarkListItem$1);let BookmarkList$1=class extends React.Component{render(){const{bookmarks:n,primaryPanelShowClose:s}=this.props,d=classnames({"cm-list-group":!0,"sidebar-list":!s,"thin-scrollbar":!0,"sidebar-list-show-close-btn":s}),m=s?50:30;return jsxRuntimeExports.jsx("ul",{className:d,style:{top:m},children:n.map((v,S)=>jsxRuntimeExports.jsx(BookmarkListItem,{idx:S,bookmark:v},S))})}};const BookmarkList=connect("selectBookmarks","selectPrimaryPanelShowClose",BookmarkList$1);let BookmarkPanel$1=class extends React.Component{constructor(n){super(n),this.state={name:"",delay:3e3,animating:!1,animIdx:0},this.updateName=this.updateName.bind(this),this.updateDelay=this.updateDelay.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this),this.save=this.save.bind(this),this.play=this.play.bind(this),this.stop=this.stop.bind(this)}handleKeyUp(n){n.keyCode===13&&this.save()}updateName(n){const s=n.currentTarget.value;this.setState({name:s})}updateDelay(n){const s=n.currentTarget.value;this.setState({delay:s})}save(){const{name:n}=this.state,{doSaveBookmark:s,viewState:d}=this.props,m=Object.assign({name:n},d);this.setState({name:""},()=>{s(m)})}componentWillUnmount(){this.stop()}UNSAFE_componentWillReceiveProps(n){const{bookmarkAnimationIdx:s,bookmarksIsAnimating:d}=n;d&&s!==this.props.bookmarkAnimationIdx&&this.goToBookmark(s)}goToBookmark(n){const{bookmarks:s,doGoToBookmark:d}=this.props;d(s[n])}play(n){if(n.currentTarget.disabled)return;const{doIncrementBookmarkAnimation:s,doStartBookmarkAnimation:d,bookmarkAnimationIdx:m}=this.props,{delay:v}=this.state;d(),this.counter=window.setInterval(s,v),this.goToBookmark(m)}stop(){const{doStopBookmarkAnimation:n}=this.props;window.clearInterval(this.counter),n()}render(){const{name:n,delay:s}=this.state,{bookmarksLength:d,bookmarksIsAnimating:m}=this.props,v=n==="",S=classnames({"cm-btn":!0,"cm-btn-default":!0,"cm-btn-sm":!0,disabled:v});return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"cm-form-group",children:jsxRuntimeExports.jsxs("div",{className:"cm-input-group",children:[jsxRuntimeExports.jsx("input",{onChange:this.updateName,onKeyUp:this.handleKeyUp,value:n,type:"text",className:"cm-form-control cm-input-sm",placeholder:"Name Bookmark..."}),jsxRuntimeExports.jsx("span",{className:"cm-input-group-btn",children:jsxRuntimeExports.jsxs("button",{disabled:v,onClick:this.save,className:S,type:"button",children:[jsxRuntimeExports.jsx("i",{className:"mdi mdi-map-marker-plus icon-inline"}),"Add New"]})})]})}),jsxRuntimeExports.jsx(BookmarkList,{}),jsxRuntimeExports.jsx("div",{className:"cm-form-group",style:{position:"absolute",bottom:0,left:10,right:12},children:jsxRuntimeExports.jsxs("div",{className:"cm-input-group",children:[jsxRuntimeExports.jsx("input",{disabled:d<2||m,onChange:this.updateDelay,value:s,type:"number",min:1e3,className:"cm-form-control cm-input-sm",placeholder:"Delay...",title:"Animation Delay in Milliseconds"}),jsxRuntimeExports.jsx("span",{className:"cm-input-group-btn",children:jsxRuntimeExports.jsx("button",{disabled:d<2||m,onClick:this.play,className:S,type:"button",children:jsxRuntimeExports.jsx("i",{className:"mdi mdi-play"})})}),jsxRuntimeExports.jsx("span",{className:"cm-input-group-btn",children:jsxRuntimeExports.jsx("button",{disabled:d<2||!m,onClick:this.stop,className:S,type:"button",children:jsxRuntimeExports.jsx("i",{className:"mdi mdi-stop"})})})]})})]})}};const BookmarkPanel=connect("selectViewState","selectBookmarks","selectBookmarksLength","selectBookmarksIsAnimating","selectBookmarkAnimationIdx","doSaveBookmark","doGoToBookmark","doStartBookmarkAnimation","doStopBookmarkAnimation","doIncrementBookmarkAnimation",BookmarkPanel$1);class BookmarkButton extends React.Component{render(){return jsxRuntimeExports.jsx(SidebarPanelOpenerButton,{iconClass:"mdi mdi-bookmark",label:"Bookmarks",title:"Bookmarks",panelComponent:BookmarkPanel})}}const bundle$j={name:"bookmarks",getReducer:()=>{const t={data:[],animIdx:0,isAnimating:!1};return(n=t,{type:s,payload:d})=>s==="BOOKMARK_SAVED"?Object.assign({},n,d):s==="BOOKMARK_DELETED"?Object.assign({},n,d):s==="BOOKMARK_ANIMATION_INCREMENT"?Object.assign({},n,d):s==="BOOKMARK_ANIMATION_STARTED"?Object.assign({},n,{isAnimating:!0}):s==="BOOKMARK_ANIMATION_STOPPED"?Object.assign({},n,{animIdx:0,isAnimating:!1}):n},doSaveBookmark:t=>({dispatch:n,store:s})=>{const d=s.selectBookmarks().slice();d.push(t),n({type:"BOOKMARK_SAVED",payload:{data:d}})},doDeleteBookmark:t=>({dispatch:n,store:s})=>{const d=s.selectBookmarks().slice(),m=d.indexOf(t);d.splice(m,1),n({type:"BOOKMARK_DELETED",payload:{data:d}})},doGoToBookmark:t=>({dispatch:n,store:s})=>{s.doSetView(t),n({type:"BOOKMARK_NAVIGATED"})},doIncrementBookmarkAnimation:()=>({dispatch:t,store:n})=>{const s=n.selectBookmarksLength(),m=(n.selectBookmarkAnimationIdx()+1)%s;t({type:"BOOKMARK_ANIMATION_INCREMENT",payload:{animIdx:m}})},doStartBookmarkAnimation:()=>({dispatch:t})=>{t({type:"BOOKMARK_ANIMATION_STARTED"})},doStopBookmarkAnimation:()=>({dispatch:t})=>{t({type:"BOOKMARK_ANIMATION_STOPPED"})},selectBookmarks:t=>t.bookmarks.data,selectBookmarksLength:t=>t.bookmarks.data.length,selectBookmarksIsAnimating:t=>t.bookmarks.isAnimating,selectBookmarkAnimationIdx:t=>t.bookmarks.animIdx,persistActions:["BOOKMARK_SAVED","BOOKMARK_DELETED"]},plugin$n={pluginName:"Bookmarks",enabled:!0,bundle:bundle$j,components:[{component:BookmarkButton,region:"left-sidebar-top",sortOrder:40}]};function _typeof(t){"@babel/helpers - typeof";return _typeof=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},_typeof(t)}function toPrimitive(t,n){if(_typeof(t)!="object"||!t)return t;var s=t[Symbol.toPrimitive];if(s!==void 0){var d=s.call(t,n);if(_typeof(d)!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(t)}function toPropertyKey(t){var n=toPrimitive(t,"string");return _typeof(n)=="symbol"?n:n+""}function _defineProperty$1(t,n,s){return(n=toPropertyKey(n))in t?Object.defineProperty(t,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[n]=s,t}function ownKeys(t,n){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);n&&(d=d.filter(function(m){return Object.getOwnPropertyDescriptor(t,m).enumerable})),s.push.apply(s,d)}return s}function _objectSpread2(t){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?ownKeys(Object(s),!0).forEach(function(d){_defineProperty$1(t,d,s[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):ownKeys(Object(s)).forEach(function(d){Object.defineProperty(t,d,Object.getOwnPropertyDescriptor(s,d))})}return t}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _iterableToArrayLimit(t,n){var s=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(s!=null){var d,m,v,S,C=[],I=!0,N=!1;try{if(v=(s=s.call(t)).next,n===0){if(Object(s)!==s)return;I=!1}else for(;!(I=(d=v.call(s)).done)&&(C.push(d.value),C.length!==n);I=!0);}catch(M){N=!0,m=M}finally{try{if(!I&&s.return!=null&&(S=s.return(),Object(S)!==S))return}finally{if(N)throw m}}return C}}function _arrayLikeToArray(t,n){(n==null||n>t.length)&&(n=t.length);for(var s=0,d=Array(n);s<n;s++)d[s]=t[s];return d}function _unsupportedIterableToArray(t,n){if(t){if(typeof t=="string")return _arrayLikeToArray(t,n);var s={}.toString.call(t).slice(8,-1);return s==="Object"&&t.constructor&&(s=t.constructor.name),s==="Map"||s==="Set"?Array.from(t):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?_arrayLikeToArray(t,n):void 0}}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
144
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _slicedToArray(t,n){return _arrayWithHoles(t)||_iterableToArrayLimit(t,n)||_unsupportedIterableToArray(t,n)||_nonIterableRest()}function _objectWithoutPropertiesLoose(t,n){if(t==null)return{};var s={};for(var d in t)if({}.hasOwnProperty.call(t,d)){if(n.indexOf(d)!==-1)continue;s[d]=t[d]}return s}function _objectWithoutProperties(t,n){if(t==null)return{};var s,d,m=_objectWithoutPropertiesLoose(t,n);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(t);for(d=0;d<v.length;d++)s=v[d],n.indexOf(s)===-1&&{}.propertyIsEnumerable.call(t,s)&&(m[s]=t[s])}return m}var _excluded$6=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function useStateManager(t){var n=t.defaultInputValue,s=n===void 0?"":n,d=t.defaultMenuIsOpen,m=d===void 0?!1:d,v=t.defaultValue,S=v===void 0?null:v,C=t.inputValue,I=t.menuIsOpen,N=t.onChange,M=t.onInputChange,k=t.onMenuClose,z=t.onMenuOpen,V=t.value,H=_objectWithoutProperties(t,_excluded$6),W=React.useState(C!==void 0?C:s),J=_slicedToArray(W,2),K=J[0],re=J[1],te=React.useState(I!==void 0?I:m),ue=_slicedToArray(te,2),se=ue[0],ge=ue[1],pe=React.useState(V!==void 0?V:S),Ee=_slicedToArray(pe,2),ce=Ee[0],me=Ee[1],Re=React.useCallback(function(ke,We){typeof N=="function"&&N(ke,We),me(ke)},[N]),Ne=React.useCallback(function(ke,We){var Ve;typeof M=="function"&&(Ve=M(ke,We)),re(Ve!==void 0?Ve:ke)},[M]),we=React.useCallback(function(){typeof z=="function"&&z(),ge(!0)},[z]),De=React.useCallback(function(){typeof k=="function"&&k(),ge(!1)},[k]),Ge=C!==void 0?C:K,de=I!==void 0?I:se,Ce=V!==void 0?V:ce;return _objectSpread2(_objectSpread2({},H),{},{inputValue:Ge,menuIsOpen:de,onChange:Re,onInputChange:Ne,onMenuClose:De,onMenuOpen:we,value:Ce})}function _extends(){return _extends=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var s=arguments[n];for(var d in s)({}).hasOwnProperty.call(s,d)&&(t[d]=s[d])}return t},_extends.apply(null,arguments)}function _classCallCheck(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,n){for(var s=0;s<n.length;s++){var d=n[s];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(t,toPropertyKey(d.key),d)}}function _createClass(t,n,s){return n&&_defineProperties(t.prototype,n),s&&_defineProperties(t,s),Object.defineProperty(t,"prototype",{writable:!1}),t}function _setPrototypeOf(t,n){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,d){return s.__proto__=d,s},_setPrototypeOf(t,n)}function _inherits(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&_setPrototypeOf(t,n)}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf(t)}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct=function(){return!!t})()}function _assertThisInitialized(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _possibleConstructorReturn(t,n){if(n&&(_typeof(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _createSuper(t){var n=_isNativeReflectConstruct();return function(){var s,d=_getPrototypeOf(t);if(n){var m=_getPrototypeOf(this).constructor;s=Reflect.construct(d,arguments,m)}else s=d.apply(this,arguments);return _possibleConstructorReturn(this,s)}}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _iterableToArray(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
145
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function sheetForTag(t){if(t.sheet)return t.sheet;for(var n=0;n<document.styleSheets.length;n++)if(document.styleSheets[n].ownerNode===t)return document.styleSheets[n]}function createStyleElement(t){var n=document.createElement("style");return n.setAttribute("data-emotion",t.key),t.nonce!==void 0&&n.setAttribute("nonce",t.nonce),n.appendChild(document.createTextNode("")),n.setAttribute("data-s",""),n}var StyleSheet=(function(){function t(s){var d=this;this._insertTag=function(m){var v;d.tags.length===0?d.insertionPoint?v=d.insertionPoint.nextSibling:d.prepend?v=d.container.firstChild:v=d.before:v=d.tags[d.tags.length-1].nextSibling,d.container.insertBefore(m,v),d.tags.push(m)},this.isSpeedy=s.speedy===void 0?!0:s.speedy,this.tags=[],this.ctr=0,this.nonce=s.nonce,this.key=s.key,this.container=s.container,this.prepend=s.prepend,this.insertionPoint=s.insertionPoint,this.before=null}var n=t.prototype;return n.hydrate=function(d){d.forEach(this._insertTag)},n.insert=function(d){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(createStyleElement(this));var m=this.tags[this.tags.length-1];if(this.isSpeedy){var v=sheetForTag(m);try{v.insertRule(d,v.cssRules.length)}catch{}}else m.appendChild(document.createTextNode(d));this.ctr++},n.flush=function(){this.tags.forEach(function(d){var m;return(m=d.parentNode)==null?void 0:m.removeChild(d)}),this.tags=[],this.ctr=0},t})(),MS="-ms-",MOZ="-moz-",WEBKIT="-webkit-",COMMENT="comm",RULESET="rule",DECLARATION="decl",IMPORT="@import",KEYFRAMES="@keyframes",LAYER="@layer",abs=Math.abs,from=String.fromCharCode,assign$2=Object.assign;function hash(t,n){return charat(t,0)^45?(((n<<2^charat(t,0))<<2^charat(t,1))<<2^charat(t,2))<<2^charat(t,3):0}function trim(t){return t.trim()}function match(t,n){return(t=n.exec(t))?t[0]:t}function replace$1(t,n,s){return t.replace(n,s)}function indexof(t,n){return t.indexOf(n)}function charat(t,n){return t.charCodeAt(n)|0}function substr(t,n,s){return t.slice(n,s)}function strlen(t){return t.length}function sizeof(t){return t.length}function append(t,n){return n.push(t),t}function combine(t,n){return t.map(n).join("")}var line=1,column=1,length=0,position=0,character=0,characters="";function node(t,n,s,d,m,v,S){return{value:t,root:n,parent:s,type:d,props:m,children:v,line,column,length:S,return:""}}function copy(t,n){return assign$2(node("",null,null,"",null,null,0),t,{length:-t.length},n)}function char(){return character}function prev(){return character=position>0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position<length?charat(characters,position++):0,column++,character===10&&(column=1,line++),character}function peek(){return charat(characters,position)}function caret(){return position}function slice(t,n){return substr(characters,t,n)}function token(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc(t){return line=column=1,length=strlen(characters=t),position=0,[]}function dealloc(t){return characters="",t}function delimit(t){return trim(slice(position-1,delimiter$1(t===91?t+2:t===40?t+1:t)))}function whitespace(t){for(;(character=peek())&&character<33;)next();return token(t)>2||token(character)>3?"":" "}function escaping(t,n){for(;--n&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(t,caret()+(n<6&&peek()==32&&next()==32))}function delimiter$1(t){for(;next();)switch(character){case t:return position;case 34:case 39:t!==34&&t!==39&&delimiter$1(character);break;case 40:t===41&&delimiter$1(t);break;case 92:next();break}return position}function commenter(t,n){for(;next()&&t+character!==57;)if(t+character===84&&peek()===47)break;return"/*"+slice(n,position-1)+"*"+from(t===47?t:next())}function identifier(t){for(;!token(peek());)next();return slice(t,position)}function compile$1(t){return dealloc(parse("",null,null,null,[""],t=alloc(t),0,[0],t))}function parse(t,n,s,d,m,v,S,C,I){for(var N=0,M=0,k=S,z=0,V=0,H=0,W=1,J=1,K=1,re=0,te="",ue=m,se=v,ge=d,pe=te;J;)switch(H=re,re=next()){case 40:if(H!=108&&charat(pe,k-1)==58){indexof(pe+=replace$1(delimit(re),"&","&\f"),"&\f")!=-1&&(K=-1);break}case 34:case 39:case 91:pe+=delimit(re);break;case 9:case 10:case 13:case 32:pe+=whitespace(H);break;case 92:pe+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment$1(commenter(next(),caret()),n,s),I);break;default:pe+="/"}break;case 123*W:C[N++]=strlen(pe)*K;case 125*W:case 59:case 0:switch(re){case 0:case 125:J=0;case 59+M:K==-1&&(pe=replace$1(pe,/\f/g,"")),V>0&&strlen(pe)-k&&append(V>32?declaration$1(pe+";",d,s,k-1):declaration$1(replace$1(pe," ","")+";",d,s,k-2),I);break;case 59:pe+=";";default:if(append(ge=ruleset(pe,n,s,N,M,m,C,te,ue=[],se=[],k),v),re===123)if(M===0)parse(pe,n,ge,ge,ue,v,k,C,se);else switch(z===99&&charat(pe,3)===110?100:z){case 100:case 108:case 109:case 115:parse(t,ge,ge,d&&append(ruleset(t,ge,ge,0,0,m,C,te,m,ue=[],k),se),m,se,k,C,d?ue:se);break;default:parse(pe,ge,ge,ge,[""],se,0,C,se)}}N=M=V=0,W=K=1,te=pe="",k=S;break;case 58:k=1+strlen(pe),V=H;default:if(W<1){if(re==123)--W;else if(re==125&&W++==0&&prev()==125)continue}switch(pe+=from(re),re*W){case 38:K=M>0?1:(pe+="\f",-1);break;case 44:C[N++]=(strlen(pe)-1)*K,K=1;break;case 64:peek()===45&&(pe+=delimit(next())),z=peek(),M=k=strlen(te=pe+=identifier(caret())),re++;break;case 45:H===45&&strlen(pe)==2&&(W=0)}}return v}function ruleset(t,n,s,d,m,v,S,C,I,N,M){for(var k=m-1,z=m===0?v:[""],V=sizeof(z),H=0,W=0,J=0;H<d;++H)for(var K=0,re=substr(t,k+1,k=abs(W=S[H])),te=t;K<V;++K)(te=trim(W>0?z[K]+" "+re:replace$1(re,/&\f/g,z[K])))&&(I[J++]=te);return node(t,n,s,m===0?RULESET:C,I,N,M)}function comment$1(t,n,s){return node(t,n,s,COMMENT,from(char()),substr(t,2,-2),0)}function declaration$1(t,n,s,d){return node(t,n,s,DECLARATION,substr(t,0,d),substr(t,d+1,-1),d)}function serialize(t,n){for(var s="",d=sizeof(t),m=0;m<d;m++)s+=n(t[m],m,t,n)||"";return s}function stringify(t,n,s,d){switch(t.type){case LAYER:if(t.children.length)break;case IMPORT:case DECLARATION:return t.return=t.return||t.value;case COMMENT:return"";case KEYFRAMES:return t.return=t.value+"{"+serialize(t.children,d)+"}";case RULESET:t.value=t.props.join(",")}return strlen(s=serialize(t.children,d))?t.return=t.value+"{"+s+"}":""}function middleware(t){var n=sizeof(t);return function(s,d,m,v){for(var S="",C=0;C<n;C++)S+=t[C](s,d,m,v)||"";return S}}function rulesheet(t){return function(n){n.root||(n=n.return)&&t(n)}}function memoize(t){var n=Object.create(null);return function(s){return n[s]===void 0&&(n[s]=t(s)),n[s]}}var identifierWithPointTracking=function t(n,s,d){for(var m=0,v=0;m=v,v=peek(),m===38&&v===12&&(s[d]=1),!token(v);)next();return slice(n,position)},toRules=function t(n,s){var d=-1,m=44;do switch(token(m)){case 0:m===38&&peek()===12&&(s[d]=1),n[d]+=identifierWithPointTracking(position-1,s,d);break;case 2:n[d]+=delimit(m);break;case 4:if(m===44){n[++d]=peek()===58?"&\f":"",s[d]=n[d].length;break}default:n[d]+=from(m)}while(m=next());return n},getRules=function t(n,s){return dealloc(toRules(alloc(n),s))},fixedElements=new WeakMap,compat=function t(n){if(!(n.type!=="rule"||!n.parent||n.length<1)){for(var s=n.value,d=n.parent,m=n.column===d.column&&n.line===d.line;d.type!=="rule";)if(d=d.parent,!d)return;if(!(n.props.length===1&&s.charCodeAt(0)!==58&&!fixedElements.get(d))&&!m){fixedElements.set(n,!0);for(var v=[],S=getRules(s,v),C=d.props,I=0,N=0;I<S.length;I++)for(var M=0;M<C.length;M++,N++)n.props[N]=v[I]?S[I].replace(/&\f/g,C[M]):C[M]+" "+S[I]}}},removeLabel=function t(n){if(n.type==="decl"){var s=n.value;s.charCodeAt(0)===108&&s.charCodeAt(2)===98&&(n.return="",n.value="")}};function prefix(t,n){switch(hash(t,n)){case 5103:return WEBKIT+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return WEBKIT+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT+t+MOZ+t+MS+t+t;case 6828:case 4268:return WEBKIT+t+MS+t+t;case 6165:return WEBKIT+t+MS+"flex-"+t+t;case 5187:return WEBKIT+t+replace$1(t,/(\w+).+(:[^]+)/,WEBKIT+"box-$1$2"+MS+"flex-$1$2")+t;case 5443:return WEBKIT+t+MS+"flex-item-"+replace$1(t,/flex-|-self/,"")+t;case 4675:return WEBKIT+t+MS+"flex-line-pack"+replace$1(t,/align-content|flex-|-self/,"")+t;case 5548:return WEBKIT+t+MS+replace$1(t,"shrink","negative")+t;case 5292:return WEBKIT+t+MS+replace$1(t,"basis","preferred-size")+t;case 6060:return WEBKIT+"box-"+replace$1(t,"-grow","")+WEBKIT+t+MS+replace$1(t,"grow","positive")+t;case 4554:return WEBKIT+replace$1(t,/([^-])(transform)/g,"$1"+WEBKIT+"$2")+t;case 6187:return replace$1(replace$1(replace$1(t,/(zoom-|grab)/,WEBKIT+"$1"),/(image-set)/,WEBKIT+"$1"),t,"")+t;case 5495:case 3959:return replace$1(t,/(image-set\([^]*)/,WEBKIT+"$1$`$1");case 4968:return replace$1(replace$1(t,/(.+:)(flex-)?(.*)/,WEBKIT+"box-pack:$3"+MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT+t+t;case 4095:case 3583:case 4068:case 2532:return replace$1(t,/(.+)-inline(.+)/,WEBKIT+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(strlen(t)-1-n>6)switch(charat(t,n+1)){case 109:if(charat(t,n+4)!==45)break;case 102:return replace$1(t,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(t,n+3)==108?"$3":"$2-$3"))+t;case 115:return~indexof(t,"stretch")?prefix(replace$1(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(charat(t,n+1)!==115)break;case 6444:switch(charat(t,strlen(t)-3-(~indexof(t,"!important")&&10))){case 107:return replace$1(t,":",":"+WEBKIT)+t;case 101:return replace$1(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(t,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+t}break;case 5936:switch(charat(t,n+11)){case 114:return WEBKIT+t+MS+replace$1(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return WEBKIT+t+MS+replace$1(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return WEBKIT+t+MS+replace$1(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return WEBKIT+t+MS+t+t}return t}var prefixer=function t(n,s,d,m){if(n.length>-1&&!n.return)switch(n.type){case DECLARATION:n.return=prefix(n.value,n.length);break;case KEYFRAMES:return serialize([copy(n,{value:replace$1(n.value,"@","@"+WEBKIT)})],m);case RULESET:if(n.length)return combine(n.props,function(v){switch(match(v,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(n,{props:[replace$1(v,/:(read-\w+)/,":"+MOZ+"$1")]})],m);case"::placeholder":return serialize([copy(n,{props:[replace$1(v,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(n,{props:[replace$1(v,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(n,{props:[replace$1(v,/:(plac\w+)/,MS+"input-$1")]})],m)}return""})}},defaultStylisPlugins=[prefixer],createCache=function t(n){var s=n.key;if(s==="css"){var d=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(d,function(W){var J=W.getAttribute("data-emotion");J.indexOf(" ")!==-1&&(document.head.appendChild(W),W.setAttribute("data-s",""))})}var m=n.stylisPlugins||defaultStylisPlugins,v={},S,C=[];S=n.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+s+' "]'),function(W){for(var J=W.getAttribute("data-emotion").split(" "),K=1;K<J.length;K++)v[J[K]]=!0;C.push(W)});var I,N=[compat,removeLabel];{var M,k=[stringify,rulesheet(function(W){M.insert(W)})],z=middleware(N.concat(m,k)),V=function(J){return serialize(compile$1(J),z)};I=function(J,K,re,te){M=re,V(J?J+"{"+K.styles+"}":K.styles),te&&(H.inserted[K.name]=!0)}}var H={key:s,sheet:new StyleSheet({key:s,container:S,nonce:n.nonce,speedy:n.speedy,prepend:n.prepend,insertionPoint:n.insertionPoint}),nonce:n.nonce,inserted:v,registered:{},insert:I};return H.sheet.hydrate(C),H},reactIs={exports:{}},reactIs_production_min={};var hasRequiredReactIs_production_min;function requireReactIs_production_min(){if(hasRequiredReactIs_production_min)return reactIs_production_min;hasRequiredReactIs_production_min=1;var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,s=t?Symbol.for("react.portal"):60106,d=t?Symbol.for("react.fragment"):60107,m=t?Symbol.for("react.strict_mode"):60108,v=t?Symbol.for("react.profiler"):60114,S=t?Symbol.for("react.provider"):60109,C=t?Symbol.for("react.context"):60110,I=t?Symbol.for("react.async_mode"):60111,N=t?Symbol.for("react.concurrent_mode"):60111,M=t?Symbol.for("react.forward_ref"):60112,k=t?Symbol.for("react.suspense"):60113,z=t?Symbol.for("react.suspense_list"):60120,V=t?Symbol.for("react.memo"):60115,H=t?Symbol.for("react.lazy"):60116,W=t?Symbol.for("react.block"):60121,J=t?Symbol.for("react.fundamental"):60117,K=t?Symbol.for("react.responder"):60118,re=t?Symbol.for("react.scope"):60119;function te(se){if(typeof se=="object"&&se!==null){var ge=se.$$typeof;switch(ge){case n:switch(se=se.type,se){case I:case N:case d:case v:case m:case k:return se;default:switch(se=se&&se.$$typeof,se){case C:case M:case H:case V:case S:return se;default:return ge}}case s:return ge}}}function ue(se){return te(se)===N}return reactIs_production_min.AsyncMode=I,reactIs_production_min.ConcurrentMode=N,reactIs_production_min.ContextConsumer=C,reactIs_production_min.ContextProvider=S,reactIs_production_min.Element=n,reactIs_production_min.ForwardRef=M,reactIs_production_min.Fragment=d,reactIs_production_min.Lazy=H,reactIs_production_min.Memo=V,reactIs_production_min.Portal=s,reactIs_production_min.Profiler=v,reactIs_production_min.StrictMode=m,reactIs_production_min.Suspense=k,reactIs_production_min.isAsyncMode=function(se){return ue(se)||te(se)===I},reactIs_production_min.isConcurrentMode=ue,reactIs_production_min.isContextConsumer=function(se){return te(se)===C},reactIs_production_min.isContextProvider=function(se){return te(se)===S},reactIs_production_min.isElement=function(se){return typeof se=="object"&&se!==null&&se.$$typeof===n},reactIs_production_min.isForwardRef=function(se){return te(se)===M},reactIs_production_min.isFragment=function(se){return te(se)===d},reactIs_production_min.isLazy=function(se){return te(se)===H},reactIs_production_min.isMemo=function(se){return te(se)===V},reactIs_production_min.isPortal=function(se){return te(se)===s},reactIs_production_min.isProfiler=function(se){return te(se)===v},reactIs_production_min.isStrictMode=function(se){return te(se)===m},reactIs_production_min.isSuspense=function(se){return te(se)===k},reactIs_production_min.isValidElementType=function(se){return typeof se=="string"||typeof se=="function"||se===d||se===N||se===v||se===m||se===k||se===z||typeof se=="object"&&se!==null&&(se.$$typeof===H||se.$$typeof===V||se.$$typeof===S||se.$$typeof===C||se.$$typeof===M||se.$$typeof===J||se.$$typeof===K||se.$$typeof===re||se.$$typeof===W)},reactIs_production_min.typeOf=te,reactIs_production_min}var reactIs_development={},hasRequiredReactIs_development;function requireReactIs_development(){return hasRequiredReactIs_development||(hasRequiredReactIs_development=1,process$1.env.NODE_ENV!=="production"&&(function(){var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,s=t?Symbol.for("react.portal"):60106,d=t?Symbol.for("react.fragment"):60107,m=t?Symbol.for("react.strict_mode"):60108,v=t?Symbol.for("react.profiler"):60114,S=t?Symbol.for("react.provider"):60109,C=t?Symbol.for("react.context"):60110,I=t?Symbol.for("react.async_mode"):60111,N=t?Symbol.for("react.concurrent_mode"):60111,M=t?Symbol.for("react.forward_ref"):60112,k=t?Symbol.for("react.suspense"):60113,z=t?Symbol.for("react.suspense_list"):60120,V=t?Symbol.for("react.memo"):60115,H=t?Symbol.for("react.lazy"):60116,W=t?Symbol.for("react.block"):60121,J=t?Symbol.for("react.fundamental"):60117,K=t?Symbol.for("react.responder"):60118,re=t?Symbol.for("react.scope"):60119;function te(oe){return typeof oe=="string"||typeof oe=="function"||oe===d||oe===N||oe===v||oe===m||oe===k||oe===z||typeof oe=="object"&&oe!==null&&(oe.$$typeof===H||oe.$$typeof===V||oe.$$typeof===S||oe.$$typeof===C||oe.$$typeof===M||oe.$$typeof===J||oe.$$typeof===K||oe.$$typeof===re||oe.$$typeof===W)}function ue(oe){if(typeof oe=="object"&&oe!==null){var _t=oe.$$typeof;switch(_t){case n:var Rt=oe.type;switch(Rt){case I:case N:case d:case v:case m:case k:return Rt;default:var kt=Rt&&Rt.$$typeof;switch(kt){case C:case M:case H:case V:case S:return kt;default:return _t}}case s:return _t}}}var se=I,ge=N,pe=C,Ee=S,ce=n,me=M,Re=d,Ne=H,we=V,De=s,Ge=v,de=m,Ce=k,ke=!1;function We(oe){return ke||(ke=!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.")),Ve(oe)||ue(oe)===I}function Ve(oe){return ue(oe)===N}function Le(oe){return ue(oe)===C}function Je(oe){return ue(oe)===S}function He(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===n}function Pe(oe){return ue(oe)===M}function it(oe){return ue(oe)===d}function pt(oe){return ue(oe)===H}function gt(oe){return ue(oe)===V}function xe(oe){return ue(oe)===s}function Gt(oe){return ue(oe)===v}function st(oe){return ue(oe)===m}function Be(oe){return ue(oe)===k}reactIs_development.AsyncMode=se,reactIs_development.ConcurrentMode=ge,reactIs_development.ContextConsumer=pe,reactIs_development.ContextProvider=Ee,reactIs_development.Element=ce,reactIs_development.ForwardRef=me,reactIs_development.Fragment=Re,reactIs_development.Lazy=Ne,reactIs_development.Memo=we,reactIs_development.Portal=De,reactIs_development.Profiler=Ge,reactIs_development.StrictMode=de,reactIs_development.Suspense=Ce,reactIs_development.isAsyncMode=We,reactIs_development.isConcurrentMode=Ve,reactIs_development.isContextConsumer=Le,reactIs_development.isContextProvider=Je,reactIs_development.isElement=He,reactIs_development.isForwardRef=Pe,reactIs_development.isFragment=it,reactIs_development.isLazy=pt,reactIs_development.isMemo=gt,reactIs_development.isPortal=xe,reactIs_development.isProfiler=Gt,reactIs_development.isStrictMode=st,reactIs_development.isSuspense=Be,reactIs_development.isValidElementType=te,reactIs_development.typeOf=ue})()),reactIs_development}var hasRequiredReactIs;function requireReactIs(){return hasRequiredReactIs||(hasRequiredReactIs=1,process$1.env.NODE_ENV==="production"?reactIs.exports=requireReactIs_production_min():reactIs.exports=requireReactIs_development()),reactIs.exports}var hoistNonReactStatics_cjs,hasRequiredHoistNonReactStatics_cjs;function requireHoistNonReactStatics_cjs(){if(hasRequiredHoistNonReactStatics_cjs)return hoistNonReactStatics_cjs;hasRequiredHoistNonReactStatics_cjs=1;var t=requireReactIs(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},d={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},m={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},v={};v[t.ForwardRef]=d,v[t.Memo]=m;function S(H){return t.isMemo(H)?m:v[H.$$typeof]||n}var C=Object.defineProperty,I=Object.getOwnPropertyNames,N=Object.getOwnPropertySymbols,M=Object.getOwnPropertyDescriptor,k=Object.getPrototypeOf,z=Object.prototype;function V(H,W,J){if(typeof W!="string"){if(z){var K=k(W);K&&K!==z&&V(H,K,J)}var re=I(W);N&&(re=re.concat(N(W)));for(var te=S(H),ue=S(W),se=0;se<re.length;++se){var ge=re[se];if(!s[ge]&&!(J&&J[ge])&&!(ue&&ue[ge])&&!(te&&te[ge])){var pe=M(W,ge);try{C(H,ge,pe)}catch{}}}}return H}return hoistNonReactStatics_cjs=V,hoistNonReactStatics_cjs}requireHoistNonReactStatics_cjs();var isBrowser=!0;function getRegisteredStyles(t,n,s){var d="";return s.split(" ").forEach(function(m){t[m]!==void 0?n.push(t[m]+";"):m&&(d+=m+" ")}),d}var registerStyles=function t(n,s,d){var m=n.key+"-"+s.name;(d===!1||isBrowser===!1)&&n.registered[m]===void 0&&(n.registered[m]=s.styles)},insertStyles=function t(n,s,d){registerStyles(n,s,d);var m=n.key+"-"+s.name;if(n.inserted[s.name]===void 0){var v=s;do n.insert(s===v?"."+m:"",v,n.sheet,!0),v=v.next;while(v!==void 0)}};function murmur2(t){for(var n=0,s,d=0,m=t.length;m>=4;++d,m-=4)s=t.charCodeAt(d)&255|(t.charCodeAt(++d)&255)<<8|(t.charCodeAt(++d)&255)<<16|(t.charCodeAt(++d)&255)<<24,s=(s&65535)*1540483477+((s>>>16)*59797<<16),s^=s>>>24,n=(s&65535)*1540483477+((s>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(m){case 3:n^=(t.charCodeAt(d+2)&255)<<16;case 2:n^=(t.charCodeAt(d+1)&255)<<8;case 1:n^=t.charCodeAt(d)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function t(n){return n.charCodeAt(1)===45},isProcessableValue=function t(n){return n!=null&&typeof n!="boolean"},processStyleName=memoize(function(t){return isCustomProperty(t)?t:t.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function t(n,s){switch(n){case"animation":case"animationName":if(typeof s=="string")return s.replace(animationRegex,function(d,m,v){return cursor={name:m,styles:v,next:cursor},m})}return unitlessKeys[n]!==1&&!isCustomProperty(n)&&typeof s=="number"&&s!==0?s+"px":s};function handleInterpolation(t,n,s){if(s==null)return"";var d=s;if(d.__emotion_styles!==void 0)return d;switch(typeof s){case"boolean":return"";case"object":{var m=s;if(m.anim===1)return cursor={name:m.name,styles:m.styles,next:cursor},m.name;var v=s;if(v.styles!==void 0){var S=v.next;if(S!==void 0)for(;S!==void 0;)cursor={name:S.name,styles:S.styles,next:cursor},S=S.next;var C=v.styles+";";return C}return createStringFromObject(t,n,s)}case"function":{if(t!==void 0){var I=cursor,N=s(t);return cursor=I,handleInterpolation(t,n,N)}break}}var M=s;return M}function createStringFromObject(t,n,s){var d="";if(Array.isArray(s))for(var m=0;m<s.length;m++)d+=handleInterpolation(t,n,s[m])+";";else for(var v in s){var S=s[v];if(typeof S!="object"){var C=S;isProcessableValue(C)&&(d+=processStyleName(v)+":"+processStyleValue(v,C)+";")}else if(Array.isArray(S)&&typeof S[0]=="string"&&n==null)for(var I=0;I<S.length;I++)isProcessableValue(S[I])&&(d+=processStyleName(v)+":"+processStyleValue(v,S[I])+";");else{var N=handleInterpolation(t,n,S);switch(v){case"animation":case"animationName":{d+=processStyleName(v)+":"+N+";";break}default:d+=v+"{"+N+"}"}}}return d}var labelPattern=/label:\s*([^\s;{]+)\s*(;|$)/g,cursor;function serializeStyles(t,n,s){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var d=!0,m="";cursor=void 0;var v=t[0];if(v==null||v.raw===void 0)d=!1,m+=handleInterpolation(s,n,v);else{var S=v;m+=S[0]}for(var C=1;C<t.length;C++)if(m+=handleInterpolation(s,n,t[C]),d){var I=v;m+=I[C]}labelPattern.lastIndex=0;for(var N="",M;(M=labelPattern.exec(m))!==null;)N+="-"+M[1];var k=murmur2(m)+N;return{name:k,styles:m,next:cursor}}var syncFallback=function t(n){return n()},useInsertionEffect=React__namespace.useInsertionEffect?React__namespace.useInsertionEffect:!1,useInsertionEffectAlwaysWithSyncFallback=useInsertionEffect||syncFallback,EmotionCacheContext=React__namespace.createContext(typeof HTMLElement<"u"?createCache({key:"css"}):null);EmotionCacheContext.Provider;var withEmotionCache=function t(n){return React.forwardRef(function(s,d){var m=React.useContext(EmotionCacheContext);return n(s,m,d)})},ThemeContext=React__namespace.createContext({}),hasOwn={}.hasOwnProperty,typePropName="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",createEmotionProps=function t(n,s){var d={};for(var m in s)hasOwn.call(s,m)&&(d[m]=s[m]);return d[typePropName]=n,d},Insertion=function t(n){var s=n.cache,d=n.serialized,m=n.isStringTag;return registerStyles(s,d,m),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(s,d,m)}),null},Emotion=withEmotionCache(function(t,n,s){var d=t.css;typeof d=="string"&&n.registered[d]!==void 0&&(d=n.registered[d]);var m=t[typePropName],v=[d],S="";typeof t.className=="string"?S=getRegisteredStyles(n.registered,v,t.className):t.className!=null&&(S=t.className+" ");var C=serializeStyles(v,void 0,React__namespace.useContext(ThemeContext));S+=n.key+"-"+C.name;var I={};for(var N in t)hasOwn.call(t,N)&&N!=="css"&&N!==typePropName&&(I[N]=t[N]);return I.className=S,s&&(I.ref=s),React__namespace.createElement(React__namespace.Fragment,null,React__namespace.createElement(Insertion,{cache:n,serialized:C,isStringTag:typeof m=="string"}),React__namespace.createElement(m,I))}),Emotion$1=Emotion,jsx=function t(n,s){var d=arguments;if(s==null||!hasOwn.call(s,"css"))return React__namespace.createElement.apply(void 0,d);var m=d.length,v=new Array(m);v[0]=Emotion$1,v[1]=createEmotionProps(n,s);for(var S=2;S<m;S++)v[S]=d[S];return React__namespace.createElement.apply(null,v)};(function(t){var n;n||(n=t.JSX||(t.JSX={}))})(jsx||(jsx={}));function css$2(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return serializeStyles(n)}function keyframes(){var t=css$2.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}function _taggedTemplateLiteral(t,n){return n||(n=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))}const min=Math.min,max$1=Math.max,round=Math.round,floor$1=Math.floor,createCoords=t=>({x:t,y:t});function rectToClientRect(t){const{x:n,y:s,width:d,height:m}=t;return{width:d,height:m,top:s,left:n,right:n+d,bottom:s+m,x:n,y:s}}function hasWindow(){return typeof window<"u"}function getNodeName(t){return isNode(t)?(t.nodeName||"").toLowerCase():"#document"}function getWindow(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function getDocumentElement(t){var n;return(n=(isNode(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function isNode(t){return hasWindow()?t instanceof Node||t instanceof getWindow(t).Node:!1}function isElement(t){return hasWindow()?t instanceof Element||t instanceof getWindow(t).Element:!1}function isHTMLElement(t){return hasWindow()?t instanceof HTMLElement||t instanceof getWindow(t).HTMLElement:!1}function isShadowRoot(t){return!hasWindow()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof getWindow(t).ShadowRoot}function isOverflowElement(t){const{overflow:n,overflowX:s,overflowY:d,display:m}=getComputedStyle$1(t);return/auto|scroll|overlay|hidden|clip/.test(n+d+s)&&m!=="inline"&&m!=="contents"}let isWebKitValue;function isWebKit(){return isWebKitValue==null&&(isWebKitValue=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),isWebKitValue}function isLastTraversableNode(t){return/^(html|body|#document)$/.test(getNodeName(t))}function getComputedStyle$1(t){return getWindow(t).getComputedStyle(t)}function getParentNode(t){if(getNodeName(t)==="html")return t;const n=t.assignedSlot||t.parentNode||isShadowRoot(t)&&t.host||getDocumentElement(t);return isShadowRoot(n)?n.host:n}function getNearestOverflowAncestor(t){const n=getParentNode(t);return isLastTraversableNode(n)?t.ownerDocument?t.ownerDocument.body:t.body:isHTMLElement(n)&&isOverflowElement(n)?n:getNearestOverflowAncestor(n)}function getOverflowAncestors(t,n,s){var d;n===void 0&&(n=[]),s===void 0&&(s=!0);const m=getNearestOverflowAncestor(t),v=m===((d=t.ownerDocument)==null?void 0:d.body),S=getWindow(m);if(v){const C=getFrameElement(S);return n.concat(S,S.visualViewport||[],isOverflowElement(m)?m:[],C&&s?getOverflowAncestors(C):[])}else return n.concat(m,getOverflowAncestors(m,[],s))}function getFrameElement(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function getCssDimensions(t){const n=getComputedStyle$1(t);let s=parseFloat(n.width)||0,d=parseFloat(n.height)||0;const m=isHTMLElement(t),v=m?t.offsetWidth:s,S=m?t.offsetHeight:d,C=round(s)!==v||round(d)!==S;return C&&(s=v,d=S),{width:s,height:d,$:C}}function unwrapElement(t){return isElement(t)?t:t.contextElement}function getScale(t){const n=unwrapElement(t);if(!isHTMLElement(n))return createCoords(1);const s=n.getBoundingClientRect(),{width:d,height:m,$:v}=getCssDimensions(n);let S=(v?round(s.width):s.width)/d,C=(v?round(s.height):s.height)/m;return(!S||!Number.isFinite(S))&&(S=1),(!C||!Number.isFinite(C))&&(C=1),{x:S,y:C}}const noOffsets=createCoords(0);function getVisualOffsets(t){const n=getWindow(t);return!isWebKit()||!n.visualViewport?noOffsets:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function shouldAddVisualOffsets(t,n,s){return!1}function getBoundingClientRect(t,n,s,d){n===void 0&&(n=!1);const m=t.getBoundingClientRect(),v=unwrapElement(t);let S=createCoords(1);n&&(S=getScale(t));const C=shouldAddVisualOffsets()?getVisualOffsets(v):createCoords(0);let I=(m.left+C.x)/S.x,N=(m.top+C.y)/S.y,M=m.width/S.x,k=m.height/S.y;if(v){const z=getWindow(v),V=d;let H=z,W=getFrameElement(H);for(;W&&d&&V!==H;){const J=getScale(W),K=W.getBoundingClientRect(),re=getComputedStyle$1(W),te=K.left+(W.clientLeft+parseFloat(re.paddingLeft))*J.x,ue=K.top+(W.clientTop+parseFloat(re.paddingTop))*J.y;I*=J.x,N*=J.y,M*=J.x,k*=J.y,I+=te,N+=ue,H=getWindow(W),W=getFrameElement(H)}}return rectToClientRect({width:M,height:k,x:I,y:N})}function rectsAreEqual(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height}function observeMove(t,n){let s=null,d;const m=getDocumentElement(t);function v(){var C;clearTimeout(d),(C=s)==null||C.disconnect(),s=null}function S(C,I){C===void 0&&(C=!1),I===void 0&&(I=1),v();const N=t.getBoundingClientRect(),{left:M,top:k,width:z,height:V}=N;if(C||n(),!z||!V)return;const H=floor$1(k),W=floor$1(m.clientWidth-(M+z)),J=floor$1(m.clientHeight-(k+V)),K=floor$1(M),te={rootMargin:-H+"px "+-W+"px "+-J+"px "+-K+"px",threshold:max$1(0,min(1,I))||1};let ue=!0;function se(ge){const pe=ge[0].intersectionRatio;if(pe!==I){if(!ue)return S();pe?S(!1,pe):d=setTimeout(()=>{S(!1,1e-7)},1e3)}pe===1&&!rectsAreEqual(N,t.getBoundingClientRect())&&S(),ue=!1}try{s=new IntersectionObserver(se,{...te,root:m.ownerDocument})}catch{s=new IntersectionObserver(se,te)}s.observe(t)}return S(!0),v}function autoUpdate(t,n,s,d){d===void 0&&(d={});const{ancestorScroll:m=!0,ancestorResize:v=!0,elementResize:S=typeof ResizeObserver=="function",layoutShift:C=typeof IntersectionObserver=="function",animationFrame:I=!1}=d,N=unwrapElement(t),M=m||v?[...N?getOverflowAncestors(N):[],...n?getOverflowAncestors(n):[]]:[];M.forEach(K=>{m&&K.addEventListener("scroll",s,{passive:!0}),v&&K.addEventListener("resize",s)});const k=N&&C?observeMove(N,s):null;let z=-1,V=null;S&&(V=new ResizeObserver(K=>{let[re]=K;re&&re.target===N&&V&&n&&(V.unobserve(n),cancelAnimationFrame(z),z=requestAnimationFrame(()=>{var te;(te=V)==null||te.observe(n)})),s()}),N&&!I&&V.observe(N),n&&V.observe(n));let H,W=I?getBoundingClientRect(t):null;I&&J();function J(){const K=getBoundingClientRect(t);W&&!rectsAreEqual(W,K)&&s(),W=K,H=requestAnimationFrame(J)}return s(),()=>{var K;M.forEach(re=>{m&&re.removeEventListener("scroll",s),v&&re.removeEventListener("resize",s)}),k?.(),(K=V)==null||K.disconnect(),V=null,I&&cancelAnimationFrame(H)}}var index=React.useLayoutEffect,_excluded$4=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],noop=function t(){};function applyPrefixToName(t,n){return n?n[0]==="-"?t+n:t+"__"+n:t}function classNames(t,n){for(var s=arguments.length,d=new Array(s>2?s-2:0),m=2;m<s;m++)d[m-2]=arguments[m];var v=[].concat(d);if(n&&t)for(var S in n)n.hasOwnProperty(S)&&n[S]&&v.push("".concat(applyPrefixToName(t,S)));return v.filter(function(C){return C}).map(function(C){return String(C).trim()}).join(" ")}var cleanValue=function t(n){return isArray(n)?n.filter(Boolean):_typeof(n)==="object"&&n!==null?[n]:[]},cleanCommonProps=function t(n){n.className,n.clearValue,n.cx,n.getStyles,n.getClassNames,n.getValue,n.hasValue,n.isMulti,n.isRtl,n.options,n.selectOption,n.selectProps,n.setValue,n.theme;var s=_objectWithoutProperties(n,_excluded$4);return _objectSpread2({},s)},getStyleProps=function t(n,s,d){var m=n.cx,v=n.getStyles,S=n.getClassNames,C=n.className;return{css:v(s,n),className:m(d??{},S(s,n),C)}};function isDocumentElement(t){return[document.documentElement,document.body,window].indexOf(t)>-1}function normalizedHeight(t){return isDocumentElement(t)?window.innerHeight:t.clientHeight}function getScrollTop(t){return isDocumentElement(t)?window.pageYOffset:t.scrollTop}function scrollTo(t,n){if(isDocumentElement(t)){window.scrollTo(0,n);return}t.scrollTop=n}function getScrollParent(t){var n=getComputedStyle(t),s=n.position==="absolute",d=/(auto|scroll)/;if(n.position==="fixed")return document.documentElement;for(var m=t;m=m.parentElement;)if(n=getComputedStyle(m),!(s&&n.position==="static")&&d.test(n.overflow+n.overflowY+n.overflowX))return m;return document.documentElement}function easeOutCubic(t,n,s,d){return s*((t=t/d-1)*t*t+1)+n}function animatedScrollTo(t,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:noop,m=getScrollTop(t),v=n-m,S=10,C=0;function I(){C+=S;var N=easeOutCubic(C,m,v,s);scrollTo(t,N),C<s?window.requestAnimationFrame(I):d(t)}I()}function scrollIntoView(t,n){var s=t.getBoundingClientRect(),d=n.getBoundingClientRect(),m=n.offsetHeight/3;d.bottom+m>s.bottom?scrollTo(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+m,t.scrollHeight)):d.top-m<s.top&&scrollTo(t,Math.max(n.offsetTop-m,0))}function getBoundingClientObj(t){var n=t.getBoundingClientRect();return{bottom:n.bottom,height:n.height,left:n.left,right:n.right,top:n.top,width:n.width}}function isTouchCapable(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function isMobileDevice(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var passiveOptionAccessed=!1,options={get passive(){return passiveOptionAccessed=!0}},w=typeof window<"u"?window:{};w.addEventListener&&w.removeEventListener&&(w.addEventListener("p",noop,options),w.removeEventListener("p",noop,!1));var supportsPassiveEvents=passiveOptionAccessed;function notNullish(t){return t!=null}function isArray(t){return Array.isArray(t)}function valueTernary(t,n,s){return t?n:s}function singleValueAsValue(t){return t}function multiValueAsValue(t){return t}var removeProps=function t(n){for(var s=arguments.length,d=new Array(s>1?s-1:0),m=1;m<s;m++)d[m-1]=arguments[m];var v=Object.entries(n).filter(function(S){var C=_slicedToArray(S,1),I=C[0];return!d.includes(I)});return v.reduce(function(S,C){var I=_slicedToArray(C,2),N=I[0],M=I[1];return S[N]=M,S},{})},_excluded$3=["children","innerProps"],_excluded2$1=["children","innerProps"];function getMenuPlacement(t){var n=t.maxHeight,s=t.menuEl,d=t.minHeight,m=t.placement,v=t.shouldScroll,S=t.isFixedPosition,C=t.controlHeight,I=getScrollParent(s),N={placement:"bottom",maxHeight:n};if(!s||!s.offsetParent)return N;var M=I.getBoundingClientRect(),k=M.height,z=s.getBoundingClientRect(),V=z.bottom,H=z.height,W=z.top,J=s.offsetParent.getBoundingClientRect(),K=J.top,re=S?window.innerHeight:normalizedHeight(I),te=getScrollTop(I),ue=parseInt(getComputedStyle(s).marginBottom,10),se=parseInt(getComputedStyle(s).marginTop,10),ge=K-se,pe=re-W,Ee=ge+te,ce=k-te-W,me=V-re+te+ue,Re=te+W-se,Ne=160;switch(m){case"auto":case"bottom":if(pe>=H)return{placement:"bottom",maxHeight:n};if(ce>=H&&!S)return v&&animatedScrollTo(I,me,Ne),{placement:"bottom",maxHeight:n};if(!S&&ce>=d||S&&pe>=d){v&&animatedScrollTo(I,me,Ne);var we=S?pe-ue:ce-ue;return{placement:"bottom",maxHeight:we}}if(m==="auto"||S){var De=n,Ge=S?ge:Ee;return Ge>=d&&(De=Math.min(Ge-ue-C,n)),{placement:"top",maxHeight:De}}if(m==="bottom")return v&&scrollTo(I,me),{placement:"bottom",maxHeight:n};break;case"top":if(ge>=H)return{placement:"top",maxHeight:n};if(Ee>=H&&!S)return v&&animatedScrollTo(I,Re,Ne),{placement:"top",maxHeight:n};if(!S&&Ee>=d||S&&ge>=d){var de=n;return(!S&&Ee>=d||S&&ge>=d)&&(de=S?ge-se:Ee-se),v&&animatedScrollTo(I,Re,Ne),{placement:"top",maxHeight:de}}return{placement:"bottom",maxHeight:n};default:throw new Error('Invalid placement provided "'.concat(m,'".'))}return N}function alignToControl(t){var n={bottom:"top",top:"bottom"};return t?n[t]:"bottom"}var coercePlacement=function t(n){return n==="auto"?"bottom":n},menuCSS=function t(n,s){var d,m=n.placement,v=n.theme,S=v.borderRadius,C=v.spacing,I=v.colors;return _objectSpread2((d={label:"menu"},_defineProperty$1(d,alignToControl(m),"100%"),_defineProperty$1(d,"position","absolute"),_defineProperty$1(d,"width","100%"),_defineProperty$1(d,"zIndex",1),d),s?{}:{backgroundColor:I.neutral0,borderRadius:S,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:C.menuGutter,marginTop:C.menuGutter})},PortalPlacementContext=React.createContext(null),MenuPlacer=function t(n){var s=n.children,d=n.minMenuHeight,m=n.maxMenuHeight,v=n.menuPlacement,S=n.menuPosition,C=n.menuShouldScrollIntoView,I=n.theme,N=React.useContext(PortalPlacementContext)||{},M=N.setPortalPlacement,k=React.useRef(null),z=React.useState(m),V=_slicedToArray(z,2),H=V[0],W=V[1],J=React.useState(null),K=_slicedToArray(J,2),re=K[0],te=K[1],ue=I.spacing.controlHeight;return index(function(){var se=k.current;if(se){var ge=S==="fixed",pe=C&&!ge,Ee=getMenuPlacement({maxHeight:m,menuEl:se,minHeight:d,placement:v,shouldScroll:pe,isFixedPosition:ge,controlHeight:ue});W(Ee.maxHeight),te(Ee.placement),M?.(Ee.placement)}},[m,v,S,C,d,M,ue]),s({ref:k,placerProps:_objectSpread2(_objectSpread2({},n),{},{placement:re||coercePlacement(v),maxHeight:H})})},Menu=function t(n){var s=n.children,d=n.innerRef,m=n.innerProps;return jsx("div",_extends({},getStyleProps(n,"menu",{menu:!0}),{ref:d},m),s)},Menu$1=Menu,menuListCSS=function t(n,s){var d=n.maxHeight,m=n.theme.spacing.baseUnit;return _objectSpread2({maxHeight:d,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},s?{}:{paddingBottom:m,paddingTop:m})},MenuList=function t(n){var s=n.children,d=n.innerProps,m=n.innerRef,v=n.isMulti;return jsx("div",_extends({},getStyleProps(n,"menuList",{"menu-list":!0,"menu-list--is-multi":v}),{ref:m},d),s)},noticeCSS=function t(n,s){var d=n.theme,m=d.spacing.baseUnit,v=d.colors;return _objectSpread2({textAlign:"center"},s?{}:{color:v.neutral40,padding:"".concat(m*2,"px ").concat(m*3,"px")})},noOptionsMessageCSS=noticeCSS,loadingMessageCSS=noticeCSS,NoOptionsMessage=function t(n){var s=n.children,d=s===void 0?"No options":s,m=n.innerProps,v=_objectWithoutProperties(n,_excluded$3);return jsx("div",_extends({},getStyleProps(_objectSpread2(_objectSpread2({},v),{},{children:d,innerProps:m}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),m),d)},LoadingMessage=function t(n){var s=n.children,d=s===void 0?"Loading...":s,m=n.innerProps,v=_objectWithoutProperties(n,_excluded2$1);return jsx("div",_extends({},getStyleProps(_objectSpread2(_objectSpread2({},v),{},{children:d,innerProps:m}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),m),d)},menuPortalCSS=function t(n){var s=n.rect,d=n.offset,m=n.position;return{left:s.left,position:m,top:d,width:s.width,zIndex:1}},MenuPortal=function t(n){var s=n.appendTo,d=n.children,m=n.controlElement,v=n.innerProps,S=n.menuPlacement,C=n.menuPosition,I=React.useRef(null),N=React.useRef(null),M=React.useState(coercePlacement(S)),k=_slicedToArray(M,2),z=k[0],V=k[1],H=React.useMemo(function(){return{setPortalPlacement:V}},[]),W=React.useState(null),J=_slicedToArray(W,2),K=J[0],re=J[1],te=React.useCallback(function(){if(m){var pe=getBoundingClientObj(m),Ee=C==="fixed"?0:window.pageYOffset,ce=pe[z]+Ee;(ce!==K?.offset||pe.left!==K?.rect.left||pe.width!==K?.rect.width)&&re({offset:ce,rect:pe})}},[m,C,z,K?.offset,K?.rect.left,K?.rect.width]);index(function(){te()},[te]);var ue=React.useCallback(function(){typeof N.current=="function"&&(N.current(),N.current=null),m&&I.current&&(N.current=autoUpdate(m,I.current,te,{elementResize:"ResizeObserver"in window}))},[m,te]);index(function(){ue()},[ue]);var se=React.useCallback(function(pe){I.current=pe,ue()},[ue]);if(!s&&C!=="fixed"||!K)return null;var ge=jsx("div",_extends({ref:se},getStyleProps(_objectSpread2(_objectSpread2({},n),{},{offset:K.offset,position:C,rect:K.rect}),"menuPortal",{"menu-portal":!0}),v),d);return jsx(PortalPlacementContext.Provider,{value:H},s?require$$2.createPortal(ge,s):ge)},containerCSS=function t(n){var s=n.isDisabled,d=n.isRtl;return{label:"container",direction:d?"rtl":void 0,pointerEvents:s?"none":void 0,position:"relative"}},SelectContainer=function t(n){var s=n.children,d=n.innerProps,m=n.isDisabled,v=n.isRtl;return jsx("div",_extends({},getStyleProps(n,"container",{"--is-disabled":m,"--is-rtl":v}),d),s)},valueContainerCSS=function t(n,s){var d=n.theme.spacing,m=n.isMulti,v=n.hasValue,S=n.selectProps.controlShouldRenderValue;return _objectSpread2({alignItems:"center",display:m&&v&&S?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},s?{}:{padding:"".concat(d.baseUnit/2,"px ").concat(d.baseUnit*2,"px")})},ValueContainer=function t(n){var s=n.children,d=n.innerProps,m=n.isMulti,v=n.hasValue;return jsx("div",_extends({},getStyleProps(n,"valueContainer",{"value-container":!0,"value-container--is-multi":m,"value-container--has-value":v}),d),s)},indicatorsContainerCSS=function t(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},IndicatorsContainer=function t(n){var s=n.children,d=n.innerProps;return jsx("div",_extends({},getStyleProps(n,"indicatorsContainer",{indicators:!0}),d),s)},_templateObject,_excluded$2=["size"],_excluded2=["innerProps","isRtl","size"];function _EMOTION_STRINGIFIED_CSS_ERROR__$3(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var _ref2$2=process$1.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:_EMOTION_STRINGIFIED_CSS_ERROR__$3},Svg=function t(n){var s=n.size,d=_objectWithoutProperties(n,_excluded$2);return jsx("svg",_extends({height:s,width:s,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:_ref2$2},d))},CrossIcon=function t(n){return jsx(Svg,_extends({size:20},n),jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},DownChevron=function t(n){return jsx(Svg,_extends({size:20},n),jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},baseCSS=function t(n,s){var d=n.isFocused,m=n.theme,v=m.spacing.baseUnit,S=m.colors;return _objectSpread2({label:"indicatorContainer",display:"flex",transition:"color 150ms"},s?{}:{color:d?S.neutral60:S.neutral20,padding:v*2,":hover":{color:d?S.neutral80:S.neutral40}})},dropdownIndicatorCSS=baseCSS,DropdownIndicator=function t(n){var s=n.children,d=n.innerProps;return jsx("div",_extends({},getStyleProps(n,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),d),s||jsx(DownChevron,null))},clearIndicatorCSS=baseCSS,ClearIndicator=function t(n){var s=n.children,d=n.innerProps;return jsx("div",_extends({},getStyleProps(n,"clearIndicator",{indicator:!0,"clear-indicator":!0}),d),s||jsx(CrossIcon,null))},indicatorSeparatorCSS=function t(n,s){var d=n.isDisabled,m=n.theme,v=m.spacing.baseUnit,S=m.colors;return _objectSpread2({label:"indicatorSeparator",alignSelf:"stretch",width:1},s?{}:{backgroundColor:d?S.neutral10:S.neutral20,marginBottom:v*2,marginTop:v*2})},IndicatorSeparator=function t(n){var s=n.innerProps;return jsx("span",_extends({},s,getStyleProps(n,"indicatorSeparator",{"indicator-separator":!0})))},loadingDotAnimations=keyframes(_templateObject||(_templateObject=_taggedTemplateLiteral([`
146
+ 0%, 80%, 100% { opacity: 0; }
147
+ 40% { opacity: 1; }
148
+ `]))),loadingIndicatorCSS=function t(n,s){var d=n.isFocused,m=n.size,v=n.theme,S=v.colors,C=v.spacing.baseUnit;return _objectSpread2({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:m,lineHeight:1,marginRight:m,textAlign:"center",verticalAlign:"middle"},s?{}:{color:d?S.neutral60:S.neutral20,padding:C*2})},LoadingDot=function t(n){var s=n.delay,d=n.offset;return jsx("span",{css:css$2({animation:"".concat(loadingDotAnimations," 1s ease-in-out ").concat(s,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:d?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process$1.env.NODE_ENV==="production"?"":";label:LoadingDot;",process$1.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},LoadingIndicator=function t(n){var s=n.innerProps,d=n.isRtl,m=n.size,v=m===void 0?4:m,S=_objectWithoutProperties(n,_excluded2);return jsx("div",_extends({},getStyleProps(_objectSpread2(_objectSpread2({},S),{},{innerProps:s,isRtl:d,size:v}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),s),jsx(LoadingDot,{delay:0,offset:d}),jsx(LoadingDot,{delay:160,offset:!0}),jsx(LoadingDot,{delay:320,offset:!d}))},css$1=function t(n,s){var d=n.isDisabled,m=n.isFocused,v=n.theme,S=v.colors,C=v.borderRadius,I=v.spacing;return _objectSpread2({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:I.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},s?{}:{backgroundColor:d?S.neutral5:S.neutral0,borderColor:d?S.neutral10:m?S.primary:S.neutral20,borderRadius:C,borderStyle:"solid",borderWidth:1,boxShadow:m?"0 0 0 1px ".concat(S.primary):void 0,"&:hover":{borderColor:m?S.primary:S.neutral30}})},Control=function t(n){var s=n.children,d=n.isDisabled,m=n.isFocused,v=n.innerRef,S=n.innerProps,C=n.menuIsOpen;return jsx("div",_extends({ref:v},getStyleProps(n,"control",{control:!0,"control--is-disabled":d,"control--is-focused":m,"control--menu-is-open":C}),S,{"aria-disabled":d||void 0}),s)},Control$1=Control,_excluded$1=["data"],groupCSS=function t(n,s){var d=n.theme.spacing;return s?{}:{paddingBottom:d.baseUnit*2,paddingTop:d.baseUnit*2}},Group=function t(n){var s=n.children,d=n.cx,m=n.getStyles,v=n.getClassNames,S=n.Heading,C=n.headingProps,I=n.innerProps,N=n.label,M=n.theme,k=n.selectProps;return jsx("div",_extends({},getStyleProps(n,"group",{group:!0}),I),jsx(S,_extends({},C,{selectProps:k,theme:M,getStyles:m,getClassNames:v,cx:d}),N),jsx("div",null,s))},groupHeadingCSS=function t(n,s){var d=n.theme,m=d.colors,v=d.spacing;return _objectSpread2({label:"group",cursor:"default",display:"block"},s?{}:{color:m.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:v.baseUnit*3,paddingRight:v.baseUnit*3,textTransform:"uppercase"})},GroupHeading=function t(n){var s=cleanCommonProps(n);s.data;var d=_objectWithoutProperties(s,_excluded$1);return jsx("div",_extends({},getStyleProps(n,"groupHeading",{"group-heading":!0}),d))},Group$1=Group,_excluded$5=["innerRef","isDisabled","isHidden","inputClassName"],inputCSS=function t(n,s){var d=n.isDisabled,m=n.value,v=n.theme,S=v.spacing,C=v.colors;return _objectSpread2(_objectSpread2({visibility:d?"hidden":"visible",transform:m?"translateZ(0)":""},containerStyle),s?{}:{margin:S.baseUnit/2,paddingBottom:S.baseUnit/2,paddingTop:S.baseUnit/2,color:C.neutral80})},spacingStyle={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},containerStyle={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":_objectSpread2({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},spacingStyle)},inputStyle=function t(n){return _objectSpread2({label:"input",color:"inherit",background:0,opacity:n?0:1,width:"100%"},spacingStyle)},Input=function t(n){var s=n.cx,d=n.value,m=cleanCommonProps(n),v=m.innerRef,S=m.isDisabled,C=m.isHidden,I=m.inputClassName,N=_objectWithoutProperties(m,_excluded$5);return jsx("div",_extends({},getStyleProps(n,"input",{"input-container":!0}),{"data-value":d||""}),jsx("input",_extends({className:s({input:!0},I),ref:v,style:inputStyle(C),disabled:S},N)))},Input$1=Input,multiValueCSS=function t(n,s){var d=n.theme,m=d.spacing,v=d.borderRadius,S=d.colors;return _objectSpread2({label:"multiValue",display:"flex",minWidth:0},s?{}:{backgroundColor:S.neutral10,borderRadius:v/2,margin:m.baseUnit/2})},multiValueLabelCSS=function t(n,s){var d=n.theme,m=d.borderRadius,v=d.colors,S=n.cropWithEllipsis;return _objectSpread2({overflow:"hidden",textOverflow:S||S===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},s?{}:{borderRadius:m/2,color:v.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemoveCSS=function t(n,s){var d=n.theme,m=d.spacing,v=d.borderRadius,S=d.colors,C=n.isFocused;return _objectSpread2({alignItems:"center",display:"flex"},s?{}:{borderRadius:v/2,backgroundColor:C?S.dangerLight:void 0,paddingLeft:m.baseUnit,paddingRight:m.baseUnit,":hover":{backgroundColor:S.dangerLight,color:S.danger}})},MultiValueGeneric=function t(n){var s=n.children,d=n.innerProps;return jsx("div",d,s)},MultiValueContainer=MultiValueGeneric,MultiValueLabel=MultiValueGeneric;function MultiValueRemove(t){var n=t.children,s=t.innerProps;return jsx("div",_extends({role:"button"},s),n||jsx(CrossIcon,{size:14}))}var MultiValue=function t(n){var s=n.children,d=n.components,m=n.data,v=n.innerProps,S=n.isDisabled,C=n.removeProps,I=n.selectProps,N=d.Container,M=d.Label,k=d.Remove;return jsx(N,{data:m,innerProps:_objectSpread2(_objectSpread2({},getStyleProps(n,"multiValue",{"multi-value":!0,"multi-value--is-disabled":S})),v),selectProps:I},jsx(M,{data:m,innerProps:_objectSpread2({},getStyleProps(n,"multiValueLabel",{"multi-value__label":!0})),selectProps:I},s),jsx(k,{data:m,innerProps:_objectSpread2(_objectSpread2({},getStyleProps(n,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(s||"option")},C),selectProps:I}))},MultiValue$1=MultiValue,optionCSS=function t(n,s){var d=n.isDisabled,m=n.isFocused,v=n.isSelected,S=n.theme,C=S.spacing,I=S.colors;return _objectSpread2({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},s?{}:{backgroundColor:v?I.primary:m?I.primary25:"transparent",color:d?I.neutral20:v?I.neutral0:"inherit",padding:"".concat(C.baseUnit*2,"px ").concat(C.baseUnit*3,"px"),":active":{backgroundColor:d?void 0:v?I.primary:I.primary50}})},Option=function t(n){var s=n.children,d=n.isDisabled,m=n.isFocused,v=n.isSelected,S=n.innerRef,C=n.innerProps;return jsx("div",_extends({},getStyleProps(n,"option",{option:!0,"option--is-disabled":d,"option--is-focused":m,"option--is-selected":v}),{ref:S,"aria-disabled":d},C),s)},Option$1=Option,placeholderCSS=function t(n,s){var d=n.theme,m=d.spacing,v=d.colors;return _objectSpread2({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},s?{}:{color:v.neutral50,marginLeft:m.baseUnit/2,marginRight:m.baseUnit/2})},Placeholder=function t(n){var s=n.children,d=n.innerProps;return jsx("div",_extends({},getStyleProps(n,"placeholder",{placeholder:!0}),d),s)},Placeholder$1=Placeholder,css=function t(n,s){var d=n.isDisabled,m=n.theme,v=m.spacing,S=m.colors;return _objectSpread2({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},s?{}:{color:d?S.neutral40:S.neutral80,marginLeft:v.baseUnit/2,marginRight:v.baseUnit/2})},SingleValue=function t(n){var s=n.children,d=n.isDisabled,m=n.innerProps;return jsx("div",_extends({},getStyleProps(n,"singleValue",{"single-value":!0,"single-value--is-disabled":d}),m),s)},SingleValue$1=SingleValue,components={ClearIndicator,Control:Control$1,DropdownIndicator,DownChevron,CrossIcon,Group:Group$1,GroupHeading,IndicatorsContainer,IndicatorSeparator,Input:Input$1,LoadingIndicator,Menu:Menu$1,MenuList,MenuPortal,LoadingMessage,NoOptionsMessage,MultiValue:MultiValue$1,MultiValueContainer,MultiValueLabel,MultiValueRemove,Option:Option$1,Placeholder:Placeholder$1,SelectContainer,SingleValue:SingleValue$1,ValueContainer},defaultComponents=function t(n){return _objectSpread2(_objectSpread2({},components),n.components)},safeIsNaN=Number.isNaN||function t(n){return typeof n=="number"&&n!==n};function isEqual(t,n){return!!(t===n||safeIsNaN(t)&&safeIsNaN(n))}function areInputsEqual(t,n){if(t.length!==n.length)return!1;for(var s=0;s<t.length;s++)if(!isEqual(t[s],n[s]))return!1;return!0}function memoizeOne(t,n){n===void 0&&(n=areInputsEqual);var s=null;function d(){for(var m=[],v=0;v<arguments.length;v++)m[v]=arguments[v];if(s&&s.lastThis===this&&n(m,s.lastArgs))return s.lastResult;var S=t.apply(this,m);return s={lastResult:S,lastArgs:m,lastThis:this},S}return d.clear=function(){s=null},d}function _EMOTION_STRINGIFIED_CSS_ERROR__$2(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}for(var _ref=process$1.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:_EMOTION_STRINGIFIED_CSS_ERROR__$2},A11yText=function t(n){return jsx("span",_extends({css:_ref},n))},A11yText$1=A11yText,defaultAriaLiveMessages={guidance:function t(n){var s=n.isSearchable,d=n.isMulti,m=n.tabSelectsValue,v=n.context,S=n.isInitialFocus;switch(v){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(m?", press Tab to select the option and exit the menu":"",".");case"input":return S?"".concat(n["aria-label"]||"Select"," is focused ").concat(s?",type to refine list":"",", press Down to open the menu, ").concat(d?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function t(n){var s=n.action,d=n.label,m=d===void 0?"":d,v=n.labels,S=n.isDisabled;switch(s){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(m,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(v.length>1?"s":""," ").concat(v.join(","),", selected.");case"select-option":return S?"option ".concat(m," is disabled. Select another option."):"option ".concat(m,", selected.");default:return""}},onFocus:function t(n){var s=n.context,d=n.focused,m=n.options,v=n.label,S=v===void 0?"":v,C=n.selectValue,I=n.isDisabled,N=n.isSelected,M=n.isAppleDevice,k=function(W,J){return W&&W.length?"".concat(W.indexOf(J)+1," of ").concat(W.length):""};if(s==="value"&&C)return"value ".concat(S," focused, ").concat(k(C,d),".");if(s==="menu"&&M){var z=I?" disabled":"",V="".concat(N?" selected":"").concat(z);return"".concat(S).concat(V,", ").concat(k(m,d),".")}return""},onFilter:function t(n){var s=n.inputValue,d=n.resultsMessage;return"".concat(d).concat(s?" for search term "+s:"",".")}},LiveRegion=function t(n){var s=n.ariaSelection,d=n.focusedOption,m=n.focusedValue,v=n.focusableOptions,S=n.isFocused,C=n.selectValue,I=n.selectProps,N=n.id,M=n.isAppleDevice,k=I.ariaLiveMessages,z=I.getOptionLabel,V=I.inputValue,H=I.isMulti,W=I.isOptionDisabled,J=I.isSearchable,K=I.menuIsOpen,re=I.options,te=I.screenReaderStatus,ue=I.tabSelectsValue,se=I.isLoading,ge=I["aria-label"],pe=I["aria-live"],Ee=React.useMemo(function(){return _objectSpread2(_objectSpread2({},defaultAriaLiveMessages),k||{})},[k]),ce=React.useMemo(function(){var Ge="";if(s&&Ee.onChange){var de=s.option,Ce=s.options,ke=s.removedValue,We=s.removedValues,Ve=s.value,Le=function(xe){return Array.isArray(xe)?null:xe},Je=ke||de||Le(Ve),He=Je?z(Je):"",Pe=Ce||We||void 0,it=Pe?Pe.map(z):[],pt=_objectSpread2({isDisabled:Je&&W(Je,C),label:He,labels:it},s);Ge=Ee.onChange(pt)}return Ge},[s,Ee,W,C,z]),me=React.useMemo(function(){var Ge="",de=d||m,Ce=!!(d&&C&&C.includes(d));if(de&&Ee.onFocus){var ke={focused:de,label:z(de),isDisabled:W(de,C),isSelected:Ce,options:v,context:de===d?"menu":"value",selectValue:C,isAppleDevice:M};Ge=Ee.onFocus(ke)}return Ge},[d,m,z,W,Ee,v,C,M]),Re=React.useMemo(function(){var Ge="";if(K&&re.length&&!se&&Ee.onFilter){var de=te({count:v.length});Ge=Ee.onFilter({inputValue:V,resultsMessage:de})}return Ge},[v,V,K,Ee,re,te,se]),Ne=s?.action==="initial-input-focus",we=React.useMemo(function(){var Ge="";if(Ee.guidance){var de=m?"value":K?"menu":"input";Ge=Ee.guidance({"aria-label":ge,context:de,isDisabled:d&&W(d,C),isMulti:H,isSearchable:J,tabSelectsValue:ue,isInitialFocus:Ne})}return Ge},[ge,d,m,H,W,J,K,Ee,C,ue,Ne]),De=jsx(React.Fragment,null,jsx("span",{id:"aria-selection"},ce),jsx("span",{id:"aria-focused"},me),jsx("span",{id:"aria-results"},Re),jsx("span",{id:"aria-guidance"},we));return jsx(React.Fragment,null,jsx(A11yText$1,{id:N},Ne&&De),jsx(A11yText$1,{"aria-live":pe,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},S&&!Ne&&De))},LiveRegion$1=LiveRegion,diacritics=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],anyDiacritic=new RegExp("["+diacritics.map(function(t){return t.letters}).join("")+"]","g"),diacriticToBase={},i=0;i<diacritics.length;i++)for(var diacritic=diacritics[i],j=0;j<diacritic.letters.length;j++)diacriticToBase[diacritic.letters[j]]=diacritic.base;var stripDiacritics=function t(n){return n.replace(anyDiacritic,function(s){return diacriticToBase[s]})},memoizedStripDiacriticsForInput=memoizeOne(stripDiacritics),trimString=function t(n){return n.replace(/^\s+|\s+$/g,"")},defaultStringify=function t(n){return"".concat(n.label," ").concat(n.value)},createFilter=function t(n){return function(s,d){if(s.data.__isNew__)return!0;var m=_objectSpread2({ignoreCase:!0,ignoreAccents:!0,stringify:defaultStringify,trim:!0,matchFrom:"any"},n),v=m.ignoreCase,S=m.ignoreAccents,C=m.stringify,I=m.trim,N=m.matchFrom,M=I?trimString(d):d,k=I?trimString(C(s)):C(s);return v&&(M=M.toLowerCase(),k=k.toLowerCase()),S&&(M=memoizedStripDiacriticsForInput(M),k=stripDiacritics(k)),N==="start"?k.substr(0,M.length)===M:k.indexOf(M)>-1}},_excluded=["innerRef"];function DummyInput(t){var n=t.innerRef,s=_objectWithoutProperties(t,_excluded),d=removeProps(s,"onExited","in","enter","exit","appear");return jsx("input",_extends({ref:n},d,{css:css$2({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process$1.env.NODE_ENV==="production"?"":";label:DummyInput;",process$1.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var cancelScroll=function t(n){n.cancelable&&n.preventDefault(),n.stopPropagation()};function useScrollCapture(t){var n=t.isEnabled,s=t.onBottomArrive,d=t.onBottomLeave,m=t.onTopArrive,v=t.onTopLeave,S=React.useRef(!1),C=React.useRef(!1),I=React.useRef(0),N=React.useRef(null),M=React.useCallback(function(J,K){if(N.current!==null){var re=N.current,te=re.scrollTop,ue=re.scrollHeight,se=re.clientHeight,ge=N.current,pe=K>0,Ee=ue-se-te,ce=!1;Ee>K&&S.current&&(d&&d(J),S.current=!1),pe&&C.current&&(v&&v(J),C.current=!1),pe&&K>Ee?(s&&!S.current&&s(J),ge.scrollTop=ue,ce=!0,S.current=!0):!pe&&-K>te&&(m&&!C.current&&m(J),ge.scrollTop=0,ce=!0,C.current=!0),ce&&cancelScroll(J)}},[s,d,m,v]),k=React.useCallback(function(J){M(J,J.deltaY)},[M]),z=React.useCallback(function(J){I.current=J.changedTouches[0].clientY},[]),V=React.useCallback(function(J){var K=I.current-J.changedTouches[0].clientY;M(J,K)},[M]),H=React.useCallback(function(J){if(J){var K=supportsPassiveEvents?{passive:!1}:!1;J.addEventListener("wheel",k,K),J.addEventListener("touchstart",z,K),J.addEventListener("touchmove",V,K)}},[V,z,k]),W=React.useCallback(function(J){J&&(J.removeEventListener("wheel",k,!1),J.removeEventListener("touchstart",z,!1),J.removeEventListener("touchmove",V,!1))},[V,z,k]);return React.useEffect(function(){if(n){var J=N.current;return H(J),function(){W(J)}}},[n,H,W]),function(J){N.current=J}}var STYLE_KEYS=["boxSizing","height","overflow","paddingRight","position"],LOCK_STYLES={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function preventTouchMove(t){t.cancelable&&t.preventDefault()}function allowTouchMove(t){t.stopPropagation()}function preventInertiaScroll(){var t=this.scrollTop,n=this.scrollHeight,s=t+this.offsetHeight;t===0?this.scrollTop=1:s===n&&(this.scrollTop=t-1)}function isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints}var canUseDOM=!!(typeof window<"u"&&window.document&&window.document.createElement),activeScrollLocks=0,listenerOptions={capture:!1,passive:!1};function useScrollLock(t){var n=t.isEnabled,s=t.accountForScrollbars,d=s===void 0?!0:s,m=React.useRef({}),v=React.useRef(null),S=React.useCallback(function(I){if(canUseDOM){var N=document.body,M=N&&N.style;if(d&&STYLE_KEYS.forEach(function(H){var W=M&&M[H];m.current[H]=W}),d&&activeScrollLocks<1){var k=parseInt(m.current.paddingRight,10)||0,z=document.body?document.body.clientWidth:0,V=window.innerWidth-z+k||0;Object.keys(LOCK_STYLES).forEach(function(H){var W=LOCK_STYLES[H];M&&(M[H]=W)}),M&&(M.paddingRight="".concat(V,"px"))}N&&isTouchDevice()&&(N.addEventListener("touchmove",preventTouchMove,listenerOptions),I&&(I.addEventListener("touchstart",preventInertiaScroll,listenerOptions),I.addEventListener("touchmove",allowTouchMove,listenerOptions))),activeScrollLocks+=1}},[d]),C=React.useCallback(function(I){if(canUseDOM){var N=document.body,M=N&&N.style;activeScrollLocks=Math.max(activeScrollLocks-1,0),d&&activeScrollLocks<1&&STYLE_KEYS.forEach(function(k){var z=m.current[k];M&&(M[k]=z)}),N&&isTouchDevice()&&(N.removeEventListener("touchmove",preventTouchMove,listenerOptions),I&&(I.removeEventListener("touchstart",preventInertiaScroll,listenerOptions),I.removeEventListener("touchmove",allowTouchMove,listenerOptions)))}},[d]);return React.useEffect(function(){if(n){var I=v.current;return S(I),function(){C(I)}}},[n,S,C]),function(I){v.current=I}}function _EMOTION_STRINGIFIED_CSS_ERROR__$1(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var blurSelectInput=function t(n){var s=n.target;return s.ownerDocument.activeElement&&s.ownerDocument.activeElement.blur()},_ref2$1=process$1.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:_EMOTION_STRINGIFIED_CSS_ERROR__$1};function ScrollManager(t){var n=t.children,s=t.lockEnabled,d=t.captureEnabled,m=d===void 0?!0:d,v=t.onBottomArrive,S=t.onBottomLeave,C=t.onTopArrive,I=t.onTopLeave,N=useScrollCapture({isEnabled:m,onBottomArrive:v,onBottomLeave:S,onTopArrive:C,onTopLeave:I}),M=useScrollLock({isEnabled:s}),k=function(V){N(V),M(V)};return jsx(React.Fragment,null,s&&jsx("div",{onClick:blurSelectInput,css:_ref2$1}),n(k))}function _EMOTION_STRINGIFIED_CSS_ERROR__(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var _ref2=process$1.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:_EMOTION_STRINGIFIED_CSS_ERROR__},RequiredInput=function t(n){var s=n.name,d=n.onFocus;return jsx("input",{required:!0,name:s,tabIndex:-1,"aria-hidden":"true",onFocus:d,css:_ref2,value:"",onChange:function(){}})},RequiredInput$1=RequiredInput;function testPlatform(t){var n;return typeof window<"u"&&window.navigator!=null?t.test(((n=window.navigator.userAgentData)===null||n===void 0?void 0:n.platform)||window.navigator.platform):!1}function isIPhone(){return testPlatform(/^iPhone/i)}function isMac(){return testPlatform(/^Mac/i)}function isIPad(){return testPlatform(/^iPad/i)||isMac()&&navigator.maxTouchPoints>1}function isIOS(){return isIPhone()||isIPad()}function isAppleDevice(){return isMac()||isIOS()}var formatGroupLabel=function t(n){return n.label},getOptionLabel$1=function t(n){return n.label},getOptionValue$1=function t(n){return n.value},isOptionDisabled=function t(n){return!!n.isDisabled},defaultStyles={clearIndicator:clearIndicatorCSS,container:containerCSS,control:css$1,dropdownIndicator:dropdownIndicatorCSS,group:groupCSS,groupHeading:groupHeadingCSS,indicatorsContainer:indicatorsContainerCSS,indicatorSeparator:indicatorSeparatorCSS,input:inputCSS,loadingIndicator:loadingIndicatorCSS,loadingMessage:loadingMessageCSS,menu:menuCSS,menuList:menuListCSS,menuPortal:menuPortalCSS,multiValue:multiValueCSS,multiValueLabel:multiValueLabelCSS,multiValueRemove:multiValueRemoveCSS,noOptionsMessage:noOptionsMessageCSS,option:optionCSS,placeholder:placeholderCSS,singleValue:css,valueContainer:valueContainerCSS},colors={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},borderRadius=4,baseUnit=4,controlHeight=38,menuGutter=baseUnit*2,spacing={baseUnit,controlHeight,menuGutter},defaultTheme={borderRadius,colors,spacing},defaultProps={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:isTouchCapable(),captureMenuScroll:!isTouchCapable(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:createFilter(),formatGroupLabel,getOptionLabel:getOptionLabel$1,getOptionValue:getOptionValue$1,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled,loadingMessage:function t(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!isMobileDevice(),noOptionsMessage:function t(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function t(n){var s=n.count;return"".concat(s," result").concat(s!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function toCategorizedOption(t,n,s,d){var m=_isOptionDisabled(t,n,s),v=_isOptionSelected(t,n,s),S=getOptionLabel(t,n),C=getOptionValue(t,n);return{type:"option",data:n,isDisabled:m,isSelected:v,label:S,value:C,index:d}}function buildCategorizedOptions(t,n){return t.options.map(function(s,d){if("options"in s){var m=s.options.map(function(S,C){return toCategorizedOption(t,S,n,C)}).filter(function(S){return isFocusable(t,S)});return m.length>0?{type:"group",data:s,options:m,index:d}:void 0}var v=toCategorizedOption(t,s,n,d);return isFocusable(t,v)?v:void 0}).filter(notNullish)}function buildFocusableOptionsFromCategorizedOptions(t){return t.reduce(function(n,s){return s.type==="group"?n.push.apply(n,_toConsumableArray(s.options.map(function(d){return d.data}))):n.push(s.data),n},[])}function buildFocusableOptionsWithIds(t,n){return t.reduce(function(s,d){return d.type==="group"?s.push.apply(s,_toConsumableArray(d.options.map(function(m){return{data:m.data,id:"".concat(n,"-").concat(d.index,"-").concat(m.index)}}))):s.push({data:d.data,id:"".concat(n,"-").concat(d.index)}),s},[])}function buildFocusableOptions(t,n){return buildFocusableOptionsFromCategorizedOptions(buildCategorizedOptions(t,n))}function isFocusable(t,n){var s=t.inputValue,d=s===void 0?"":s,m=n.data,v=n.isSelected,S=n.label,C=n.value;return(!shouldHideSelectedOptions(t)||!v)&&_filterOption(t,{label:S,value:C,data:m},d)}function getNextFocusedValue(t,n){var s=t.focusedValue,d=t.selectValue,m=d.indexOf(s);if(m>-1){var v=n.indexOf(s);if(v>-1)return s;if(m<n.length)return n[m]}return null}function getNextFocusedOption(t,n){var s=t.focusedOption;return s&&n.indexOf(s)>-1?s:n[0]}var getFocusedOptionId=function t(n,s){var d,m=(d=n.find(function(v){return v.data===s}))===null||d===void 0?void 0:d.id;return m||null},getOptionLabel=function t(n,s){return n.getOptionLabel(s)},getOptionValue=function t(n,s){return n.getOptionValue(s)};function _isOptionDisabled(t,n,s){return typeof t.isOptionDisabled=="function"?t.isOptionDisabled(n,s):!1}function _isOptionSelected(t,n,s){if(s.indexOf(n)>-1)return!0;if(typeof t.isOptionSelected=="function")return t.isOptionSelected(n,s);var d=getOptionValue(t,n);return s.some(function(m){return getOptionValue(t,m)===d})}function _filterOption(t,n,s){return t.filterOption?t.filterOption(n,s):!0}var shouldHideSelectedOptions=function t(n){var s=n.hideSelectedOptions,d=n.isMulti;return s===void 0?d:s},instanceId=1,Select=(function(t){_inherits(s,t);var n=_createSuper(s);function s(d){var m;if(_classCallCheck(this,s),m=n.call(this,d),m.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},m.blockOptionHover=!1,m.isComposing=!1,m.commonProps=void 0,m.initialTouchX=0,m.initialTouchY=0,m.openAfterFocus=!1,m.scrollToFocusedOptionOnUpdate=!1,m.userIsDragging=void 0,m.controlRef=null,m.getControlRef=function(I){m.controlRef=I},m.focusedOptionRef=null,m.getFocusedOptionRef=function(I){m.focusedOptionRef=I},m.menuListRef=null,m.getMenuListRef=function(I){m.menuListRef=I},m.inputRef=null,m.getInputRef=function(I){m.inputRef=I},m.focus=m.focusInput,m.blur=m.blurInput,m.onChange=function(I,N){var M=m.props,k=M.onChange,z=M.name;N.name=z,m.ariaOnChange(I,N),k(I,N)},m.setValue=function(I,N,M){var k=m.props,z=k.closeMenuOnSelect,V=k.isMulti,H=k.inputValue;m.onInputChange("",{action:"set-value",prevInputValue:H}),z&&(m.setState({inputIsHiddenAfterUpdate:!V}),m.onMenuClose()),m.setState({clearFocusValueOnUpdate:!0}),m.onChange(I,{action:N,option:M})},m.selectOption=function(I){var N=m.props,M=N.blurInputOnSelect,k=N.isMulti,z=N.name,V=m.state.selectValue,H=k&&m.isOptionSelected(I,V),W=m.isOptionDisabled(I,V);if(H){var J=m.getOptionValue(I);m.setValue(V.filter(function(K){return m.getOptionValue(K)!==J}),"deselect-option",I)}else if(!W)k?m.setValue([].concat(_toConsumableArray(V),[I]),"select-option",I):m.setValue(I,"select-option");else{m.ariaOnChange(I,{action:"select-option",option:I,name:z});return}M&&m.blurInput()},m.removeValue=function(I){var N=m.props.isMulti,M=m.state.selectValue,k=m.getOptionValue(I),z=M.filter(function(H){return m.getOptionValue(H)!==k}),V=valueTernary(N,z,z[0]||null);m.onChange(V,{action:"remove-value",removedValue:I}),m.focusInput()},m.clearValue=function(){var I=m.state.selectValue;m.onChange(valueTernary(m.props.isMulti,[],null),{action:"clear",removedValues:I})},m.popValue=function(){var I=m.props.isMulti,N=m.state.selectValue,M=N[N.length-1],k=N.slice(0,N.length-1),z=valueTernary(I,k,k[0]||null);M&&m.onChange(z,{action:"pop-value",removedValue:M})},m.getFocusedOptionId=function(I){return getFocusedOptionId(m.state.focusableOptionsWithIds,I)},m.getFocusableOptionsWithIds=function(){return buildFocusableOptionsWithIds(buildCategorizedOptions(m.props,m.state.selectValue),m.getElementId("option"))},m.getValue=function(){return m.state.selectValue},m.cx=function(){for(var I=arguments.length,N=new Array(I),M=0;M<I;M++)N[M]=arguments[M];return classNames.apply(void 0,[m.props.classNamePrefix].concat(N))},m.getOptionLabel=function(I){return getOptionLabel(m.props,I)},m.getOptionValue=function(I){return getOptionValue(m.props,I)},m.getStyles=function(I,N){var M=m.props.unstyled,k=defaultStyles[I](N,M);k.boxSizing="border-box";var z=m.props.styles[I];return z?z(k,N):k},m.getClassNames=function(I,N){var M,k;return(M=(k=m.props.classNames)[I])===null||M===void 0?void 0:M.call(k,N)},m.getElementId=function(I){return"".concat(m.state.instancePrefix,"-").concat(I)},m.getComponents=function(){return defaultComponents(m.props)},m.buildCategorizedOptions=function(){return buildCategorizedOptions(m.props,m.state.selectValue)},m.getCategorizedOptions=function(){return m.props.menuIsOpen?m.buildCategorizedOptions():[]},m.buildFocusableOptions=function(){return buildFocusableOptionsFromCategorizedOptions(m.buildCategorizedOptions())},m.getFocusableOptions=function(){return m.props.menuIsOpen?m.buildFocusableOptions():[]},m.ariaOnChange=function(I,N){m.setState({ariaSelection:_objectSpread2({value:I},N)})},m.onMenuMouseDown=function(I){I.button===0&&(I.stopPropagation(),I.preventDefault(),m.focusInput())},m.onMenuMouseMove=function(I){m.blockOptionHover=!1},m.onControlMouseDown=function(I){if(!I.defaultPrevented){var N=m.props.openMenuOnClick;m.state.isFocused?m.props.menuIsOpen?I.target.tagName!=="INPUT"&&I.target.tagName!=="TEXTAREA"&&m.onMenuClose():N&&m.openMenu("first"):(N&&(m.openAfterFocus=!0),m.focusInput()),I.target.tagName!=="INPUT"&&I.target.tagName!=="TEXTAREA"&&I.preventDefault()}},m.onDropdownIndicatorMouseDown=function(I){if(!(I&&I.type==="mousedown"&&I.button!==0)&&!m.props.isDisabled){var N=m.props,M=N.isMulti,k=N.menuIsOpen;m.focusInput(),k?(m.setState({inputIsHiddenAfterUpdate:!M}),m.onMenuClose()):m.openMenu("first"),I.preventDefault()}},m.onClearIndicatorMouseDown=function(I){I&&I.type==="mousedown"&&I.button!==0||(m.clearValue(),I.preventDefault(),m.openAfterFocus=!1,I.type==="touchend"?m.focusInput():setTimeout(function(){return m.focusInput()}))},m.onScroll=function(I){typeof m.props.closeMenuOnScroll=="boolean"?I.target instanceof HTMLElement&&isDocumentElement(I.target)&&m.props.onMenuClose():typeof m.props.closeMenuOnScroll=="function"&&m.props.closeMenuOnScroll(I)&&m.props.onMenuClose()},m.onCompositionStart=function(){m.isComposing=!0},m.onCompositionEnd=function(){m.isComposing=!1},m.onTouchStart=function(I){var N=I.touches,M=N&&N.item(0);M&&(m.initialTouchX=M.clientX,m.initialTouchY=M.clientY,m.userIsDragging=!1)},m.onTouchMove=function(I){var N=I.touches,M=N&&N.item(0);if(M){var k=Math.abs(M.clientX-m.initialTouchX),z=Math.abs(M.clientY-m.initialTouchY),V=5;m.userIsDragging=k>V||z>V}},m.onTouchEnd=function(I){m.userIsDragging||(m.controlRef&&!m.controlRef.contains(I.target)&&m.menuListRef&&!m.menuListRef.contains(I.target)&&m.blurInput(),m.initialTouchX=0,m.initialTouchY=0)},m.onControlTouchEnd=function(I){m.userIsDragging||m.onControlMouseDown(I)},m.onClearIndicatorTouchEnd=function(I){m.userIsDragging||m.onClearIndicatorMouseDown(I)},m.onDropdownIndicatorTouchEnd=function(I){m.userIsDragging||m.onDropdownIndicatorMouseDown(I)},m.handleInputChange=function(I){var N=m.props.inputValue,M=I.currentTarget.value;m.setState({inputIsHiddenAfterUpdate:!1}),m.onInputChange(M,{action:"input-change",prevInputValue:N}),m.props.menuIsOpen||m.onMenuOpen()},m.onInputFocus=function(I){m.props.onFocus&&m.props.onFocus(I),m.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(m.openAfterFocus||m.props.openMenuOnFocus)&&m.openMenu("first"),m.openAfterFocus=!1},m.onInputBlur=function(I){var N=m.props.inputValue;if(m.menuListRef&&m.menuListRef.contains(document.activeElement)){m.inputRef.focus();return}m.props.onBlur&&m.props.onBlur(I),m.onInputChange("",{action:"input-blur",prevInputValue:N}),m.onMenuClose(),m.setState({focusedValue:null,isFocused:!1})},m.onOptionHover=function(I){if(!(m.blockOptionHover||m.state.focusedOption===I)){var N=m.getFocusableOptions(),M=N.indexOf(I);m.setState({focusedOption:I,focusedOptionId:M>-1?m.getFocusedOptionId(I):null})}},m.shouldHideSelectedOptions=function(){return shouldHideSelectedOptions(m.props)},m.onValueInputFocus=function(I){I.preventDefault(),I.stopPropagation(),m.focus()},m.onKeyDown=function(I){var N=m.props,M=N.isMulti,k=N.backspaceRemovesValue,z=N.escapeClearsValue,V=N.inputValue,H=N.isClearable,W=N.isDisabled,J=N.menuIsOpen,K=N.onKeyDown,re=N.tabSelectsValue,te=N.openMenuOnFocus,ue=m.state,se=ue.focusedOption,ge=ue.focusedValue,pe=ue.selectValue;if(!W&&!(typeof K=="function"&&(K(I),I.defaultPrevented))){switch(m.blockOptionHover=!0,I.key){case"ArrowLeft":if(!M||V)return;m.focusValue("previous");break;case"ArrowRight":if(!M||V)return;m.focusValue("next");break;case"Delete":case"Backspace":if(V)return;if(ge)m.removeValue(ge);else{if(!k)return;M?m.popValue():H&&m.clearValue()}break;case"Tab":if(m.isComposing||I.shiftKey||!J||!re||!se||te&&m.isOptionSelected(se,pe))return;m.selectOption(se);break;case"Enter":if(I.keyCode===229)break;if(J){if(!se||m.isComposing)return;m.selectOption(se);break}return;case"Escape":J?(m.setState({inputIsHiddenAfterUpdate:!1}),m.onInputChange("",{action:"menu-close",prevInputValue:V}),m.onMenuClose()):H&&z&&m.clearValue();break;case" ":if(V)return;if(!J){m.openMenu("first");break}if(!se)return;m.selectOption(se);break;case"ArrowUp":J?m.focusOption("up"):m.openMenu("last");break;case"ArrowDown":J?m.focusOption("down"):m.openMenu("first");break;case"PageUp":if(!J)return;m.focusOption("pageup");break;case"PageDown":if(!J)return;m.focusOption("pagedown");break;case"Home":if(!J)return;m.focusOption("first");break;case"End":if(!J)return;m.focusOption("last");break;default:return}I.preventDefault()}},m.state.instancePrefix="react-select-"+(m.props.instanceId||++instanceId),m.state.selectValue=cleanValue(d.value),d.menuIsOpen&&m.state.selectValue.length){var v=m.getFocusableOptionsWithIds(),S=m.buildFocusableOptions(),C=S.indexOf(m.state.selectValue[0]);m.state.focusableOptionsWithIds=v,m.state.focusedOption=S[C],m.state.focusedOptionId=getFocusedOptionId(v,S[C])}return m}return _createClass(s,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&scrollIntoView(this.menuListRef,this.focusedOptionRef),isAppleDevice()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(m){var v=this.props,S=v.isDisabled,C=v.menuIsOpen,I=this.state.isFocused;(I&&!S&&m.isDisabled||I&&C&&!m.menuIsOpen)&&this.focusInput(),I&&S&&!m.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!I&&!S&&m.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(scrollIntoView(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(m,v){this.props.onInputChange(m,v)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(m){var v=this,S=this.state,C=S.selectValue,I=S.isFocused,N=this.buildFocusableOptions(),M=m==="first"?0:N.length-1;if(!this.props.isMulti){var k=N.indexOf(C[0]);k>-1&&(M=k)}this.scrollToFocusedOptionOnUpdate=!(I&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:N[M],focusedOptionId:this.getFocusedOptionId(N[M])},function(){return v.onMenuOpen()})}},{key:"focusValue",value:function(m){var v=this.state,S=v.selectValue,C=v.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var I=S.indexOf(C);C||(I=-1);var N=S.length-1,M=-1;if(S.length){switch(m){case"previous":I===0?M=0:I===-1?M=N:M=I-1;break;case"next":I>-1&&I<N&&(M=I+1);break}this.setState({inputIsHidden:M!==-1,focusedValue:S[M]})}}}},{key:"focusOption",value:function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",v=this.props.pageSize,S=this.state.focusedOption,C=this.getFocusableOptions();if(C.length){var I=0,N=C.indexOf(S);S||(N=-1),m==="up"?I=N>0?N-1:C.length-1:m==="down"?I=(N+1)%C.length:m==="pageup"?(I=N-v,I<0&&(I=0)):m==="pagedown"?(I=N+v,I>C.length-1&&(I=C.length-1)):m==="last"&&(I=C.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:C[I],focusedValue:null,focusedOptionId:this.getFocusedOptionId(C[I])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(defaultTheme):_objectSpread2(_objectSpread2({},defaultTheme),this.props.theme):defaultTheme}},{key:"getCommonProps",value:function(){var m=this.clearValue,v=this.cx,S=this.getStyles,C=this.getClassNames,I=this.getValue,N=this.selectOption,M=this.setValue,k=this.props,z=k.isMulti,V=k.isRtl,H=k.options,W=this.hasValue();return{clearValue:m,cx:v,getStyles:S,getClassNames:C,getValue:I,hasValue:W,isMulti:z,isRtl:V,options:H,selectOption:N,selectProps:k,setValue:M,theme:this.getTheme()}}},{key:"hasValue",value:function(){var m=this.state.selectValue;return m.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var m=this.props,v=m.isClearable,S=m.isMulti;return v===void 0?S:v}},{key:"isOptionDisabled",value:function(m,v){return _isOptionDisabled(this.props,m,v)}},{key:"isOptionSelected",value:function(m,v){return _isOptionSelected(this.props,m,v)}},{key:"filterOption",value:function(m,v){return _filterOption(this.props,m,v)}},{key:"formatOptionLabel",value:function(m,v){if(typeof this.props.formatOptionLabel=="function"){var S=this.props.inputValue,C=this.state.selectValue;return this.props.formatOptionLabel(m,{context:v,inputValue:S,selectValue:C})}else return this.getOptionLabel(m)}},{key:"formatGroupLabel",value:function(m){return this.props.formatGroupLabel(m)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var m=this.props,v=m.isDisabled,S=m.isSearchable,C=m.inputId,I=m.inputValue,N=m.tabIndex,M=m.form,k=m.menuIsOpen,z=m.required,V=this.getComponents(),H=V.Input,W=this.state,J=W.inputIsHidden,K=W.ariaSelection,re=this.commonProps,te=C||this.getElementId("input"),ue=_objectSpread2(_objectSpread2(_objectSpread2({"aria-autocomplete":"list","aria-expanded":k,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":z,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},k&&{"aria-controls":this.getElementId("listbox")}),!S&&{"aria-readonly":!0}),this.hasValue()?K?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return S?React__namespace.createElement(H,_extends({},re,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:te,innerRef:this.getInputRef,isDisabled:v,isHidden:J,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:N,form:M,type:"text",value:I},ue)):React__namespace.createElement(DummyInput,_extends({id:te,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:noop,onFocus:this.onInputFocus,disabled:v,tabIndex:N,inputMode:"none",form:M,value:""},ue))}},{key:"renderPlaceholderOrValue",value:function(){var m=this,v=this.getComponents(),S=v.MultiValue,C=v.MultiValueContainer,I=v.MultiValueLabel,N=v.MultiValueRemove,M=v.SingleValue,k=v.Placeholder,z=this.commonProps,V=this.props,H=V.controlShouldRenderValue,W=V.isDisabled,J=V.isMulti,K=V.inputValue,re=V.placeholder,te=this.state,ue=te.selectValue,se=te.focusedValue,ge=te.isFocused;if(!this.hasValue()||!H)return K?null:React__namespace.createElement(k,_extends({},z,{key:"placeholder",isDisabled:W,isFocused:ge,innerProps:{id:this.getElementId("placeholder")}}),re);if(J)return ue.map(function(Ee,ce){var me=Ee===se,Re="".concat(m.getOptionLabel(Ee),"-").concat(m.getOptionValue(Ee));return React__namespace.createElement(S,_extends({},z,{components:{Container:C,Label:I,Remove:N},isFocused:me,isDisabled:W,key:Re,index:ce,removeProps:{onClick:function(){return m.removeValue(Ee)},onTouchEnd:function(){return m.removeValue(Ee)},onMouseDown:function(we){we.preventDefault()}},data:Ee}),m.formatOptionLabel(Ee,"value"))});if(K)return null;var pe=ue[0];return React__namespace.createElement(M,_extends({},z,{data:pe,isDisabled:W}),this.formatOptionLabel(pe,"value"))}},{key:"renderClearIndicator",value:function(){var m=this.getComponents(),v=m.ClearIndicator,S=this.commonProps,C=this.props,I=C.isDisabled,N=C.isLoading,M=this.state.isFocused;if(!this.isClearable()||!v||I||!this.hasValue()||N)return null;var k={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return React__namespace.createElement(v,_extends({},S,{innerProps:k,isFocused:M}))}},{key:"renderLoadingIndicator",value:function(){var m=this.getComponents(),v=m.LoadingIndicator,S=this.commonProps,C=this.props,I=C.isDisabled,N=C.isLoading,M=this.state.isFocused;if(!v||!N)return null;var k={"aria-hidden":"true"};return React__namespace.createElement(v,_extends({},S,{innerProps:k,isDisabled:I,isFocused:M}))}},{key:"renderIndicatorSeparator",value:function(){var m=this.getComponents(),v=m.DropdownIndicator,S=m.IndicatorSeparator;if(!v||!S)return null;var C=this.commonProps,I=this.props.isDisabled,N=this.state.isFocused;return React__namespace.createElement(S,_extends({},C,{isDisabled:I,isFocused:N}))}},{key:"renderDropdownIndicator",value:function(){var m=this.getComponents(),v=m.DropdownIndicator;if(!v)return null;var S=this.commonProps,C=this.props.isDisabled,I=this.state.isFocused,N={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return React__namespace.createElement(v,_extends({},S,{innerProps:N,isDisabled:C,isFocused:I}))}},{key:"renderMenu",value:function(){var m=this,v=this.getComponents(),S=v.Group,C=v.GroupHeading,I=v.Menu,N=v.MenuList,M=v.MenuPortal,k=v.LoadingMessage,z=v.NoOptionsMessage,V=v.Option,H=this.commonProps,W=this.state.focusedOption,J=this.props,K=J.captureMenuScroll,re=J.inputValue,te=J.isLoading,ue=J.loadingMessage,se=J.minMenuHeight,ge=J.maxMenuHeight,pe=J.menuIsOpen,Ee=J.menuPlacement,ce=J.menuPosition,me=J.menuPortalTarget,Re=J.menuShouldBlockScroll,Ne=J.menuShouldScrollIntoView,we=J.noOptionsMessage,De=J.onMenuScrollToTop,Ge=J.onMenuScrollToBottom;if(!pe)return null;var de=function(He,Pe){var it=He.type,pt=He.data,gt=He.isDisabled,xe=He.isSelected,Gt=He.label,st=He.value,Be=W===pt,oe=gt?void 0:function(){return m.onOptionHover(pt)},_t=gt?void 0:function(){return m.selectOption(pt)},Rt="".concat(m.getElementId("option"),"-").concat(Pe),kt={id:Rt,onClick:_t,onMouseMove:oe,onMouseOver:oe,tabIndex:-1,role:"option","aria-selected":m.state.isAppleDevice?void 0:xe};return React__namespace.createElement(V,_extends({},H,{innerProps:kt,data:pt,isDisabled:gt,isSelected:xe,key:Rt,label:Gt,type:it,value:st,isFocused:Be,innerRef:Be?m.getFocusedOptionRef:void 0}),m.formatOptionLabel(He.data,"menu"))},Ce;if(this.hasOptions())Ce=this.getCategorizedOptions().map(function(Je){if(Je.type==="group"){var He=Je.data,Pe=Je.options,it=Je.index,pt="".concat(m.getElementId("group"),"-").concat(it),gt="".concat(pt,"-heading");return React__namespace.createElement(S,_extends({},H,{key:pt,data:He,options:Pe,Heading:C,headingProps:{id:gt,data:Je.data},label:m.formatGroupLabel(Je.data)}),Je.options.map(function(xe){return de(xe,"".concat(it,"-").concat(xe.index))}))}else if(Je.type==="option")return de(Je,"".concat(Je.index))});else if(te){var ke=ue({inputValue:re});if(ke===null)return null;Ce=React__namespace.createElement(k,H,ke)}else{var We=we({inputValue:re});if(We===null)return null;Ce=React__namespace.createElement(z,H,We)}var Ve={minMenuHeight:se,maxMenuHeight:ge,menuPlacement:Ee,menuPosition:ce,menuShouldScrollIntoView:Ne},Le=React__namespace.createElement(MenuPlacer,_extends({},H,Ve),function(Je){var He=Je.ref,Pe=Je.placerProps,it=Pe.placement,pt=Pe.maxHeight;return React__namespace.createElement(I,_extends({},H,Ve,{innerRef:He,innerProps:{onMouseDown:m.onMenuMouseDown,onMouseMove:m.onMenuMouseMove},isLoading:te,placement:it}),React__namespace.createElement(ScrollManager,{captureEnabled:K,onTopArrive:De,onBottomArrive:Ge,lockEnabled:Re},function(gt){return React__namespace.createElement(N,_extends({},H,{innerRef:function(Gt){m.getMenuListRef(Gt),gt(Gt)},innerProps:{role:"listbox","aria-multiselectable":H.isMulti,id:m.getElementId("listbox")},isLoading:te,maxHeight:pt,focusedOption:W}),Ce)}))});return me||ce==="fixed"?React__namespace.createElement(M,_extends({},H,{appendTo:me,controlElement:this.controlRef,menuPlacement:Ee,menuPosition:ce}),Le):Le}},{key:"renderFormField",value:function(){var m=this,v=this.props,S=v.delimiter,C=v.isDisabled,I=v.isMulti,N=v.name,M=v.required,k=this.state.selectValue;if(M&&!this.hasValue()&&!C)return React__namespace.createElement(RequiredInput$1,{name:N,onFocus:this.onValueInputFocus});if(!(!N||C))if(I)if(S){var z=k.map(function(W){return m.getOptionValue(W)}).join(S);return React__namespace.createElement("input",{name:N,type:"hidden",value:z})}else{var V=k.length>0?k.map(function(W,J){return React__namespace.createElement("input",{key:"i-".concat(J),name:N,type:"hidden",value:m.getOptionValue(W)})}):React__namespace.createElement("input",{name:N,type:"hidden",value:""});return React__namespace.createElement("div",null,V)}else{var H=k[0]?this.getOptionValue(k[0]):"";return React__namespace.createElement("input",{name:N,type:"hidden",value:H})}}},{key:"renderLiveRegion",value:function(){var m=this.commonProps,v=this.state,S=v.ariaSelection,C=v.focusedOption,I=v.focusedValue,N=v.isFocused,M=v.selectValue,k=this.getFocusableOptions();return React__namespace.createElement(LiveRegion$1,_extends({},m,{id:this.getElementId("live-region"),ariaSelection:S,focusedOption:C,focusedValue:I,isFocused:N,selectValue:M,focusableOptions:k,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var m=this.getComponents(),v=m.Control,S=m.IndicatorsContainer,C=m.SelectContainer,I=m.ValueContainer,N=this.props,M=N.className,k=N.id,z=N.isDisabled,V=N.menuIsOpen,H=this.state.isFocused,W=this.commonProps=this.getCommonProps();return React__namespace.createElement(C,_extends({},W,{className:M,innerProps:{id:k,onKeyDown:this.onKeyDown},isDisabled:z,isFocused:H}),this.renderLiveRegion(),React__namespace.createElement(v,_extends({},W,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:z,isFocused:H,menuIsOpen:V}),React__namespace.createElement(I,_extends({},W,{isDisabled:z}),this.renderPlaceholderOrValue(),this.renderInput()),React__namespace.createElement(S,_extends({},W,{isDisabled:z}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(m,v){var S=v.prevProps,C=v.clearFocusValueOnUpdate,I=v.inputIsHiddenAfterUpdate,N=v.ariaSelection,M=v.isFocused,k=v.prevWasFocused,z=v.instancePrefix,V=m.options,H=m.value,W=m.menuIsOpen,J=m.inputValue,K=m.isMulti,re=cleanValue(H),te={};if(S&&(H!==S.value||V!==S.options||W!==S.menuIsOpen||J!==S.inputValue)){var ue=W?buildFocusableOptions(m,re):[],se=W?buildFocusableOptionsWithIds(buildCategorizedOptions(m,re),"".concat(z,"-option")):[],ge=C?getNextFocusedValue(v,re):null,pe=getNextFocusedOption(v,ue),Ee=getFocusedOptionId(se,pe);te={selectValue:re,focusedOption:pe,focusedOptionId:Ee,focusableOptionsWithIds:se,focusedValue:ge,clearFocusValueOnUpdate:!1}}var ce=I!=null&&m!==S?{inputIsHidden:I,inputIsHiddenAfterUpdate:void 0}:{},me=N,Re=M&&k;return M&&!Re&&(me={value:valueTernary(K,re,re[0]||null),options:re,action:"initial-input-focus"},Re=!k),N?.action==="initial-input-focus"&&(me=null),_objectSpread2(_objectSpread2(_objectSpread2({},te),ce),{},{prevProps:m,ariaSelection:me,prevWasFocused:Re})}}]),s})(React.Component);Select.defaultProps=defaultProps;var StateManagedSelect=React.forwardRef(function(t,n){var s=useStateManager(t);return React__namespace.createElement(Select,_extends({ref:n},s))}),StateManagedSelect$1=StateManagedSelect;let SelectDistrict$1=class extends React.Component{constructor(n){super(n)}handleSelect(n){const{doSetDistrictFilter:s}=this.props;s(n)}render(){const{options:n,districtFilter:s}=this.props,{label:d,value:m}=s,v={control:S=>({...S,minHeight:"25px",height:"25px",fontSize:"14px",width:"150px"}),dropdownIndicator:S=>({...S,paddingTop:0,paddingBottom:0}),clearIndicator:S=>({...S,paddingTop:0,paddingBottom:0}),valueContainer:S=>({...S,padding:"0 8px"}),input:S=>({...S,margin:0,padding:0}),menu:S=>({...S,fontSize:"14px"}),option:S=>({...S,padding:"5px 14px"})};return jsxRuntimeExports.jsx(StateManagedSelect$1,{id:"select-district",options:n,onChange:S=>{this.handleSelect(S)},styles:v,value:{label:d,value:m},defaultValue:{label:d,value:m}})}};const SelectDistrict=connect("doSetDistrictFilter","selectDistrictFilter",SelectDistrict$1);let ChangeLogModal$1=class extends React.Component{constructor(n){super(n),this.handleChange=this.handleChange.bind(this),this.close=this.close.bind(this),this.fomatDate=this.formatDate.bind(this)}handleChange(n){const{doSetSearchBarFilter:s}=this.props;s(n.target.value)}close(){const{doModalClose:n}=this.props;n()}formatDate(n){let s=new Date(n);return s=s.toLocaleDateString("default",{month:"long",day:"numeric",year:"numeric"}),s}render(){const{theme:n,doGetChangeLogData:s,changeLogItems:d,allChangeLogItems:m,searchBarFilter:v}=this.props,S=d;let C=[...new Set(m.map(k=>k.district_code))],I=[];C.sort().forEach((k,z)=>{k&&I.push({label:`${k}`,value:`${k}`})}),I.unshift({label:"All Districts",value:"All"});const N=S.map(k=>jsxRuntimeExports.jsxs("div",{style:Object.keys(k).length>0?{listStyleType:"disc"}:{listStyleType:"none"},children:[k.change_date?jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsx("b",{children:this.formatDate(k.change_date)})},k.change_date+k.id):null,k.environment?jsxRuntimeExports.jsxs("li",{style:{listStyleType:"none"},children:[jsxRuntimeExports.jsx("b",{children:"Environment:"})," ",k.environment," "]},k.environment+k.id):null,k.change_type?jsxRuntimeExports.jsxs("li",{style:{listStyleType:"none"},children:[jsxRuntimeExports.jsx("b",{children:"Change Type:"})," ",k.change_type]},k.change_type+k.id):null,k.district_code?jsxRuntimeExports.jsxs("li",{style:{listStyleType:"none"},children:[jsxRuntimeExports.jsx("b",{children:"District:"})," ",k.district_code]},k.district_code+k.id):null,k.description?jsxRuntimeExports.jsxs("li",{style:{listStyleType:"none"},children:[jsxRuntimeExports.jsx("b",{children:"Description:"})," ",k.description]},k.description+k.id):null,jsxRuntimeExports.jsx("br",{})]},k.id+k.id+9876)),M={display:"flex",justifyContent:"center",gap:"40px",width:"700px",alignItems:"flex-end",padding:"5px"};return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"cm-modal-header "+n,children:"Change Log"}),jsxRuntimeExports.jsxs("div",{className:"cm-modal-body",children:[jsxRuntimeExports.jsx("div",{style:M,children:jsxRuntimeExports.jsx("label",{style:{fontSize:"18px",fontWeight:"bold"},children:"Change Log"})}),jsxRuntimeExports.jsxs("div",{style:M,children:[jsxRuntimeExports.jsx("label",{htmlFor:"select-district",children:jsxRuntimeExports.jsx("b",{children:"Filter by District:"})}),jsxRuntimeExports.jsx(SelectDistrict,{options:I})]}),jsxRuntimeExports.jsxs("div",{style:M,children:[jsxRuntimeExports.jsx("label",{htmlFor:"select-district",children:jsxRuntimeExports.jsx("b",{children:"Search:"})}),jsxRuntimeExports.jsx("input",{placeholder:"Change Log Search...",style:{width:"200px"},value:v,onChange:this.handleChange})]}),jsxRuntimeExports.jsx("div",{style:{overflow:"auto scroll",width:"875px",height:"400px",whiteSpace:"pre-wrap"},children:jsxRuntimeExports.jsx("ul",{children:N})})]}),jsxRuntimeExports.jsxs("div",{className:"cm-modal-footer",children:[jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("button",{style:{textAlign:"left"},type:"Close",className:"cm-btn cm-btn-theme "+n,onClick:this.close,children:"Close"})]})]})}};const ChangeLogModal=connect("selectTheme","selectChangeLogItems","selectAllChangeLogItems","selectSearchBarFilter","doModalClose","doSubmitNotification","doGetChangeLogData","doSearchChangeLogData","doSetSearchBarFilter",ChangeLogModal$1),url$1="undefined",bundle$i={name:"changeLog",getReducer:()=>{const t={items:[],allItems:[],renderModal:!1,districtFilter:{label:"All Districts",value:"All"},searchBarFilter:"",executeSearch:!1};return(n=t,{type:s,payload:d})=>{switch(s){case"CHANGE_LOG_LOAD_ALL_DATA":case"CHANGE_LOG_MODAL_WINDOW_OPENED":case"CHANGE_LOG_LOAD_SELECTED_DATA":case"CHANGE_LOG_SET_DISTRICT_FILTER":case"CHANGE_LOG_SET_SEARCH_BAR_FILTER":case"CHANGE_LOG_EXECUTE_SEARCH":return Object.assign({},n,d);default:return n}}},doSearchChangeLogData:()=>({dispatch:t,store:n})=>{t({type:"CHANGE_LOG_EXECUTE_SEARCH",payload:{executeSearch:!1}});let s=n.selectAllChangeLogItems(),d=n.selectDistrictFilter(),m=n.selectSearchBarFilter().trim().toUpperCase(),v=[];if(d.value!=="All"?v=s.filter(S=>S.district_code===d.value):v=s,m.length>0){const S=[];v.forEach(C=>{let I=null;for(const[N,M]of Object.entries(C))typeof M=="string"&&M.trim().toUpperCase().includes(m)&&C&&(I=!0);I&&S.push(C)}),console.log("SELECTED ITEMS"),console.log(S),t({type:"CHANGE_LOG_LOAD_SELECTED_DATA",payload:{items:S}})}else t({type:"CHANGE_LOG_LOAD_SELECTED_DATA",payload:{items:v}})},doGetChangeLogData:()=>({dispatch:t,store:n,anonGet:s})=>{s(url$1,(d,m,v)=>{if(!(d||m.statusCode!==200))try{console.log("Production Change Log Data"),console.log(v);let S=JSON.parse(v);console.log("data"),console.log(S);let C=S.items;console.log("ITEMS"),console.log(C),t({type:"CHANGE_LOG_LOAD_ALL_DATA",payload:{allItems:C,renderModal:!1}}),t({type:"CHANGE_LOG_LOAD_SELECTED_DATA",payload:{items:C,renderModal:!0}})}catch{}})},doOpenModalLog:()=>({dispatch:t,store:n})=>{n.doModalOpen({children:[ChangeLogModal],options:{},openedBy:"ChangeLogButton"}),t({type:"CHANGE_LOG_MODAL_WINDOW_OPENED",payload:{renderModal:!1}})},doSetDistrictFilter:t=>({dispatch:n})=>{n({type:"CHANGE_LOG_SET_DISTRICT_FILTER",payload:{districtFilter:t}}),n({type:"CHANGE_LOG_EXECUTE_SEARCH",payload:{executeSearch:!0}})},doSetSearchBarFilter:t=>({dispatch:n})=>{n({type:"CHANGE_LOG_SET_SEARCH_BAR_FILTER",payload:{searchBarFilter:t}}),n({type:"CHANGE_LOG_EXECUTE_SEARCH",payload:{executeSearch:!0}})},selectChangeLogItems:t=>t.changeLog.items,selectAllChangeLogItems:t=>t.changeLog.allItems,selectDistrictFilter:t=>t.changeLog.districtFilter,selectSearchBarFilter:t=>t.changeLog.searchBarFilter,reactRenderChangeLogModal:t=>{if(t.changeLog.renderModal)return{actionCreator:"doOpenModalLog"}},reactDoSearchChangeLogData:t=>{if(t.changeLog.executeSearch)return{actionCreator:"doSearchChangeLogData"}}};class ChangeLogButton extends React.Component{constructor(n){super(n),this.handleClick=this.handleClick.bind(this),this.openModalLog=this.openModalLog.bind(this)}openModalLog(){const{doModalOpen:n}=this.props;n({children:[ChangeLogModal],options:{},openedBy:"ChangeLogButton"})}handleClick(){const{doGetChangeLogData:n}=this.props;this.openModalLog(),n()}render(){return jsxRuntimeExports.jsx(SidebarButton,{iconClass:"mdi mdi-exclamation",label:"Change Log",title:"Change Log",onClick:this.handleClick})}}const changeLogButton=connect("doModalOpen","doGetChangeLogData",ChangeLogButton),plugin$m={pluginName:"changeLog",enabled:!0,bundle:bundle$i,components:[{component:changeLogButton,region:"right-sidebar-top",sortOrder:120}]};let ResourcesModal$1=class extends React.Component{constructor(n){super(n),this.state={},this.close=this.close.bind(this)}close(){const{doModalClose:n}=this.props;n()}render(){function n(C,I){let N=C.filter(M=>M.resource_group_id!==null&&M.resource_group_id===I);return N=N.sort((M,k)=>M.resource_sort-k.resource_sort),N}const{theme:s,doGetResourceData:d,resourceItems:m,resourceGroups:v}=this.props;let S=[];return S=v.map(C=>{let I="undefined"+C.groupId;return jsxRuntimeExports.jsxs("div",{style:{paddingLeft:"25px",fontSize:"20px",fontWeight:"bold"},children:[jsxRuntimeExports.jsxs("span",{children:[jsxRuntimeExports.jsx("img",{src:I,width:"50px",height:"50px",onError:({currentTarget:N})=>{N.onerror=null,N.style.display="none"}},"imageID"+C.groupId),"      ",C.groupName]},"span"+C.groupId),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("div",{style:{paddingLeft:"25px",fontSize:"16px"},children:jsxRuntimeExports.jsxs("table",{className:"table",children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("th",{className:"col-md-6",style:{paddingRight:"40px"},children:"Description"}),jsxRuntimeExports.jsx("th",{className:"col-md-6",children:"URL"})]},C.groupId+7777777777)}),jsxRuntimeExports.jsx("tbody",{children:n(m,C.groupId).map(N=>jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"col-md-6",style:{paddingRight:"40px"},children:N.description}),jsxRuntimeExports.jsx("td",{className:"col-md-6",children:jsxRuntimeExports.jsx("a",{href:N.url,target:"_blank",rel:"noreferrer nofollow noopener",download:"TEST_FILE",children:N.name})})]},N.resource_id))})]},"tableID"+C.groupId)},"itemDivID"+C.groupId),jsxRuntimeExports.jsx("br",{})]},"image"+C.groupId)}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"cm-modal-header "+s,children:"Resources"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("br",{})}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("div",{style:{overflow:"auto scroll",width:"875px",height:"390px",whiteSpace:"pre-wrap",paddingLeft:"25px"},children:S})})]}),jsxRuntimeExports.jsxs("div",{className:"cm-modal-footer",children:[jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("button",{style:{textAlign:"left"},type:"Close",className:"cm-btn cm-btn-theme "+s,onClick:this.close,children:"Close"})]})]})}};const ResourcesModal=connect("selectTheme","selectResourceItems","selectResourceGroups","doModalClose","doGetResourceData",ResourcesModal$1),createResourceGroup=t=>{let n=[];for(let d=0;d<t.length;d++){let m=t[d].resource_group_id;if(m){let v={groupId:m,groupDescription:t[d]["group description"],groupName:t[d]["group name"],groupSort:t[d].group_sort};n.push(v)}}let s=n.reduce((d,m)=>d.find(S=>S.groupId===m.groupId)?d:d.concat([m]),[]);return s.sort((d,m)=>d.groupSort-m.groupSort),s},url="undefined",defaultHtml=[{name:"FUDSMIS Portal - Default",url:"https://fudsportal.usace.army.mil/"},{name:"IPaC Information for Planning and Consultation - Default",url:"https://ipac.ecosphere.fws.gov/"}],bundle$h={name:"resources",getReducer:()=>{const t={items:defaultHtml,groups:{},renderModal:!1};return(n=t,{type:s,payload:d})=>{switch(s){case"RESOURCES_LOAD_TEST_DATA":case"RESOURCES_LOAD_PRODUCTION_DATA":case"RESOURCES_MODAL_WINDOW_OPENED":return Object.assign({},n,d);default:return n}}},doGetResourceData:()=>({dispatch:t,store:n,anonGet:s})=>{s(url,(d,m,v)=>{if(d||m.statusCode!==200)t({type:"RESOURCES_LOAD_TEST_DATA",payload:{items:defaultHtml,groups:{},renderModal:!0}});else try{console.log("Production Resource Data");let C=JSON.parse(v).items,I={};I=createResourceGroup(C),console.log(C),console.log(I),t({type:"RESOURCES_LOAD_PRODUCTION_DATA",payload:{groups:I,items:C,renderModal:!0}})}catch{}})},doOpenModalResources:()=>({dispatch:t,store:n})=>{n.doModalOpen({children:[ResourcesModal],options:{},openedBy:"ResourcesButton"}),t({type:"RESOURCES_MODAL_WINDOW_OPENED",payload:{renderModal:!1}})},selectResourceItems:t=>t.resources.items,selectResourceGroups:t=>t.resources.groups,reactRenderResourceModal:t=>{if(t.resources.renderModal===!0)return{actionCreator:"doOpenModalResources"}}};class ResourcesButton extends React.Component{constructor(n){super(n),this.handleClick=this.handleClick.bind(this),this.openModalResources=this.openModalResources.bind(this)}openModalResources(){const{doModalOpen:n}=this.props;n({children:[ResourcesModal],options:{},openedBy:"ResourcesButton"})}handleClick(){const{doGetResourceData:n}=this.props;n()}render(){return jsxRuntimeExports.jsx(SidebarButton,{iconClass:"mdi mdi-library",label:"Resources",title:"Resources",onClick:this.handleClick})}}const resourcesButton=connect("doModalOpen","doGetResourceData",ResourcesButton),plugin$l={pluginName:"resources",enabled:!0,bundle:bundle$h,components:[{component:resourcesButton,region:"right-sidebar-top",sortOrder:130}]},CoordinateLatLonInput$1=t=>{const{label:n,placeholder:s,doUpdateCoordInput:d,coordsLatLonInput:m}=t;return jsxRuntimeExports.jsx("li",{children:jsxRuntimeExports.jsx("span",{className:"cm-form-horizontal",children:jsxRuntimeExports.jsxs("div",{className:"cm-form-group",style:{marginBottom:0},children:[jsxRuntimeExports.jsx("label",{className:"col-md-1",style:{paddingTop:"3px"},children:n}),jsxRuntimeExports.jsx("div",{className:"col-md-10",children:jsxRuntimeExports.jsx("input",{type:"text",className:"cm-form-control cm-input-sm",onChange:v=>{d(v,n)},value:m[`${n}`],placeholder:s})})]})})})},CoordinateLatLonInput=connect("doUpdateCoordInput","selectCoordsLatLonInput",CoordinateLatLonInput$1),CoordinateDisplay$1=t=>{const{doStartCoordCopy:n,coordsCopyActive:s,coordsLatLonInput:d,doCoordZoomTo:m,coordsValues:v}=t,S=!(d.X.length>0&&d.Y.length>0);return jsxRuntimeExports.jsx(BasicToolbarButton,{enabled:!0,dropup:!0,iconClass:"",title:"Coordinate Display",text:`${v.X}, ${v.Y}`,passProps:{style:{minWidth:180}},children:jsxRuntimeExports.jsxs(BasicToolbarMenuUp,{children:[jsxRuntimeExports.jsx(BasicToolbarMenuItem,{active:!1,iconClass:"mdi mdi-content-copy icon-inline",title:"Copy Coordinate to Clipboard",text:"Copy Coordinate to Clipboard",onClick:n,disabled:s,passProps:{}}),jsxRuntimeExports.jsx(CoordinateLatLonInput,{label:"X",placeholder:"Enter Longitude.."}),jsxRuntimeExports.jsx(CoordinateLatLonInput,{label:"Y",placeholder:"Enter Latitude.."}),jsxRuntimeExports.jsx(BasicToolbarMenuItem,{active:!1,iconClass:"mdi mdi-map-marker-radius icon-inline",title:"Go to Coordinate",text:"Go to Coordinate",onClick:m,passProps:{},disabled:S})]})})},CoordinateDisplay=connect("doStartCoordCopy","doCoordZoomTo","selectCoordsCopyActive","selectCoordsLatLonInput","selectCoordsValues",CoordinateDisplay$1);class CoordinateDisplayProjItem extends React.Component{constructor(n){super(n),this.onSelect=this.onSelect.bind(this),this.onRemove=this.onRemove.bind(this)}onSelect(){const{proj:n,onSelect:s}=this.props;s(n.epsg,n.name)}onRemove(){const{proj:n,onRemove:s}=this.props;s(n.epsg)}render(){const{proj:n,epsg:s,i:d}=this.props,m="https://epsg.io/"+n.epsg.split(":")[1];return jsxRuntimeExports.jsxs("li",{className:"cm-list-group-item clearfix",children:[jsxRuntimeExports.jsx("div",{className:"col-md-6",children:jsxRuntimeExports.jsx("div",{style:{margin:0},className:"radio",children:jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsx("input",{onChange:this.onSelect,type:"radio",name:"choose-epsg",id:"choose-epsg"+d,value:n.epsg,checked:n.epsg===s}),n.name]})})}),jsxRuntimeExports.jsx("div",{className:"col-md-3",children:jsxRuntimeExports.jsx("a",{href:m,target:"_blank",title:"More information on epsg.io",children:n.epsg})}),jsxRuntimeExports.jsx("div",{className:"col-md-3",children:jsxRuntimeExports.jsx("div",{className:"pull-right",children:jsxRuntimeExports.jsx("button",{onClick:this.onRemove,className:"cm-btn cm-btn-link cm-btn-xs",children:"Remove"})})})]})}}class CoordinateDisplaySettings extends React.Component{constructor(n){super(n),this.state={addEpsg:"",filterString:"",height:window.innerHeight*.5},this.close=this.close.bind(this),this.filterFn=this.filterFn.bind(this),this.updateAddEpsg=this.updateAddEpsg.bind(this),this.updateFilterString=this.updateFilterString.bind(this),this.onSelect=this.onSelect.bind(this),this.onRemove=this.onRemove.bind(this),this.getProjDef=this.getProjDef.bind(this)}close(){const{doModalClose:n}=this.props;n()}filterFn(n){const{filterString:s}=this.state;return(n.name.toLowerCase()+" "+n.epsg.toLowerCase()).indexOf(s)!==-1}updateAddEpsg(n){const s=n.currentTarget.value;this.setState({addEpsg:""+s.toUpperCase()})}updateFilterString(n){const s=n.currentTarget.value;this.setState({filterString:s.toLowerCase()})}onSelect(n,s){const{doSelectProjection:d}=this.props;d(n,s)}onRemove(n){const{doRemoveProjection:s}=this.props;s(n)}getProjDef(){const{doLoadProjDef:n}=this.props;let s=this.state.addEpsg;s.indexOf("EPSG")===-1&&(s="EPSG:"+s),n(s)}render(){const{theme:n,projectionList:s,displayProjection:d,projectionCanUseEPSGIO:m}=this.props,{addEpsg:v,filterString:S,height:C}=this.state,I=_.filter(s,this.filterFn);return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"cm-modal-header "+n,children:"Coordinate Display Settings"}),jsxRuntimeExports.jsxs("div",{className:"cm-modal-body",style:{height:C,overflow:"auto"},children:[jsxRuntimeExports.jsxs("div",{className:"row",children:[jsxRuntimeExports.jsx("div",{className:"col-xs-6",children:jsxRuntimeExports.jsxs("div",{className:"cm-form-group",children:[jsxRuntimeExports.jsx("label",{className:"cm-control-label",children:"Filter the list by searching names and EPSG codes here:"}),jsxRuntimeExports.jsx("input",{onChange:this.updateFilterString,value:S,type:"text",className:"cm-form-control cm-input-sm",placeholder:"Filter list..."})]})}),jsxRuntimeExports.jsx("div",{className:"col-xs-6",children:jsxRuntimeExports.jsxs("div",{className:"cm-form-group",children:[jsxRuntimeExports.jsxs("label",{className:"cm-control-label",children:["Add more supported projections from"," ",jsxRuntimeExports.jsx("a",{target:"_blank",rel:"noopener noreferrer",href:"https://epsg.io",children:"epsg.io"})]}),m?jsxRuntimeExports.jsxs("div",{className:"cm-input-group",children:[jsxRuntimeExports.jsx("input",{onChange:this.updateAddEpsg,value:v,type:"text",className:"cm-form-control cm-input-sm",placeholder:"Enter the EPSG code i.e. EPSG:4326 or 4326"}),jsxRuntimeExports.jsx("span",{className:"cm-input-group-btn",children:jsxRuntimeExports.jsx("button",{onClick:this.getProjDef,className:"cm-btn cm-btn-theme cm-btn-sm "+n,type:"button",children:"Go"})})]}):jsxRuntimeExports.jsx("div",{children:"Connection to EPSG.io unavailable at this time"})]})})]}),jsxRuntimeExports.jsx("div",{className:"row",children:jsxRuntimeExports.jsx("ul",{className:"cm-list-group thin-scrollbar",style:{margin:"15px",overflow:"auto"},children:I.map((N,M)=>jsxRuntimeExports.jsx(CoordinateDisplayProjItem,{proj:N,epsg:d,i:M,onSelect:this.onSelect,onRemove:this.onRemove},N.epsg))})})]}),jsxRuntimeExports.jsx("div",{className:"cm-modal-footer",children:jsxRuntimeExports.jsx("button",{className:"cm-btn cm-btn-theme "+n,onClick:this.close,children:"Close"})})]})}}const Settings$1=connect("selectTheme","selectProjectionList","selectDisplayProjection","selectProjectionCanUseEPSGIO","doModalClose","doRemoveProjection","doSelectProjection","doLoadProjDef",CoordinateDisplaySettings);let CoordinateInteraction$1=class extends React.Component{constructor(n){super(n),this.openSettings=this.openSettings.bind(this)}openSettings(){const{doModalOpen:n,doBasicToolbarDeactivate:s}=this.props;n({children:[Settings$1],options:{},openedBy:"PositionText"}),s()}render(){const{displayProjection:n,displayProjectionName:s}=this.props;return jsxRuntimeExports.jsx(BasicToolbarButton,{enabled:!0,dropup:!0,iconClass:"",title:`Current Coordinate System: ${s}`,text:n,onDeactivate:this.cleanUp,children:jsxRuntimeExports.jsx(BasicToolbarMenuUp,{children:jsxRuntimeExports.jsx(BasicToolbarMenuItem,{active:!1,iconClass:"mdi mdi-settings icon-inline",title:"Set Display Coordinate System",text:"Set Display Coordinate System",onClick:this.openSettings,passProps:{}})})})}};const CoordinateInteraction=connect("selectDisplayProjection","selectDisplayProjectionName","doModalOpen","doBasicToolbarDeactivate",CoordinateInteraction$1);var client={exports:{}},reactDomClient_production={},scheduler={exports:{}},scheduler_production={};var hasRequiredScheduler_production;function requireScheduler_production(){return hasRequiredScheduler_production||(hasRequiredScheduler_production=1,(function(t){function n(de,Ce){var ke=de.length;de.push(Ce);e:for(;0<ke;){var We=ke-1>>>1,Ve=de[We];if(0<m(Ve,Ce))de[We]=Ce,de[ke]=Ve,ke=We;else break e}}function s(de){return de.length===0?null:de[0]}function d(de){if(de.length===0)return null;var Ce=de[0],ke=de.pop();if(ke!==Ce){de[0]=ke;e:for(var We=0,Ve=de.length,Le=Ve>>>1;We<Le;){var Je=2*(We+1)-1,He=de[Je],Pe=Je+1,it=de[Pe];if(0>m(He,ke))Pe<Ve&&0>m(it,He)?(de[We]=it,de[Pe]=ke,We=Pe):(de[We]=He,de[Je]=ke,We=Je);else if(Pe<Ve&&0>m(it,ke))de[We]=it,de[Pe]=ke,We=Pe;else break e}}return Ce}function m(de,Ce){var ke=de.sortIndex-Ce.sortIndex;return ke!==0?ke:de.id-Ce.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var v=performance;t.unstable_now=function(){return v.now()}}else{var S=Date,C=S.now();t.unstable_now=function(){return S.now()-C}}var I=[],N=[],M=1,k=null,z=3,V=!1,H=!1,W=!1,J=!1,K=typeof setTimeout=="function"?setTimeout:null,re=typeof clearTimeout=="function"?clearTimeout:null,te=typeof setImmediate<"u"?setImmediate:null;function ue(de){for(var Ce=s(N);Ce!==null;){if(Ce.callback===null)d(N);else if(Ce.startTime<=de)d(N),Ce.sortIndex=Ce.expirationTime,n(I,Ce);else break;Ce=s(N)}}function se(de){if(W=!1,ue(de),!H)if(s(I)!==null)H=!0,ge||(ge=!0,Ne());else{var Ce=s(N);Ce!==null&&Ge(se,Ce.startTime-de)}}var ge=!1,pe=-1,Ee=5,ce=-1;function me(){return J?!0:!(t.unstable_now()-ce<Ee)}function Re(){if(J=!1,ge){var de=t.unstable_now();ce=de;var Ce=!0;try{e:{H=!1,W&&(W=!1,re(pe),pe=-1),V=!0;var ke=z;try{t:{for(ue(de),k=s(I);k!==null&&!(k.expirationTime>de&&me());){var We=k.callback;if(typeof We=="function"){k.callback=null,z=k.priorityLevel;var Ve=We(k.expirationTime<=de);if(de=t.unstable_now(),typeof Ve=="function"){k.callback=Ve,ue(de),Ce=!0;break t}k===s(I)&&d(I),ue(de)}else d(I);k=s(I)}if(k!==null)Ce=!0;else{var Le=s(N);Le!==null&&Ge(se,Le.startTime-de),Ce=!1}}break e}finally{k=null,z=ke,V=!1}Ce=void 0}}finally{Ce?Ne():ge=!1}}}var Ne;if(typeof te=="function")Ne=function(){te(Re)};else if(typeof MessageChannel<"u"){var we=new MessageChannel,De=we.port2;we.port1.onmessage=Re,Ne=function(){De.postMessage(null)}}else Ne=function(){K(Re,0)};function Ge(de,Ce){pe=K(function(){de(t.unstable_now())},Ce)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(de){de.callback=null},t.unstable_forceFrameRate=function(de){0>de||125<de?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ee=0<de?Math.floor(1e3/de):5},t.unstable_getCurrentPriorityLevel=function(){return z},t.unstable_next=function(de){switch(z){case 1:case 2:case 3:var Ce=3;break;default:Ce=z}var ke=z;z=Ce;try{return de()}finally{z=ke}},t.unstable_requestPaint=function(){J=!0},t.unstable_runWithPriority=function(de,Ce){switch(de){case 1:case 2:case 3:case 4:case 5:break;default:de=3}var ke=z;z=de;try{return Ce()}finally{z=ke}},t.unstable_scheduleCallback=function(de,Ce,ke){var We=t.unstable_now();switch(typeof ke=="object"&&ke!==null?(ke=ke.delay,ke=typeof ke=="number"&&0<ke?We+ke:We):ke=We,de){case 1:var Ve=-1;break;case 2:Ve=250;break;case 5:Ve=1073741823;break;case 4:Ve=1e4;break;default:Ve=5e3}return Ve=ke+Ve,de={id:M++,callback:Ce,priorityLevel:de,startTime:ke,expirationTime:Ve,sortIndex:-1},ke>We?(de.sortIndex=ke,n(N,de),s(I)===null&&de===s(N)&&(W?(re(pe),pe=-1):W=!0,Ge(se,ke-We))):(de.sortIndex=Ve,n(I,de),H||V||(H=!0,ge||(ge=!0,Ne()))),de},t.unstable_shouldYield=me,t.unstable_wrapCallback=function(de){var Ce=z;return function(){var ke=z;z=Ce;try{return de.apply(this,arguments)}finally{z=ke}}}})(scheduler_production)),scheduler_production}var scheduler_development={},hasRequiredScheduler_development;function requireScheduler_development(){return hasRequiredScheduler_development||(hasRequiredScheduler_development=1,(function(t){process$1.env.NODE_ENV!=="production"&&(function(){function n(){if(se=!1,ce){var de=t.unstable_now();Ne=de;var Ce=!0;try{e:{te=!1,ue&&(ue=!1,pe(me),me=-1),re=!0;var ke=K;try{t:{for(S(de),J=d(V);J!==null&&!(J.expirationTime>de&&I());){var We=J.callback;if(typeof We=="function"){J.callback=null,K=J.priorityLevel;var Ve=We(J.expirationTime<=de);if(de=t.unstable_now(),typeof Ve=="function"){J.callback=Ve,S(de),Ce=!0;break t}J===d(V)&&m(V),S(de)}else m(V);J=d(V)}if(J!==null)Ce=!0;else{var Le=d(H);Le!==null&&N(C,Le.startTime-de),Ce=!1}}break e}finally{J=null,K=ke,re=!1}Ce=void 0}}finally{Ce?we():ce=!1}}}function s(de,Ce){var ke=de.length;de.push(Ce);e:for(;0<ke;){var We=ke-1>>>1,Ve=de[We];if(0<v(Ve,Ce))de[We]=Ce,de[ke]=Ve,ke=We;else break e}}function d(de){return de.length===0?null:de[0]}function m(de){if(de.length===0)return null;var Ce=de[0],ke=de.pop();if(ke!==Ce){de[0]=ke;e:for(var We=0,Ve=de.length,Le=Ve>>>1;We<Le;){var Je=2*(We+1)-1,He=de[Je],Pe=Je+1,it=de[Pe];if(0>v(He,ke))Pe<Ve&&0>v(it,He)?(de[We]=it,de[Pe]=ke,We=Pe):(de[We]=He,de[Je]=ke,We=Je);else if(Pe<Ve&&0>v(it,ke))de[We]=it,de[Pe]=ke,We=Pe;else break e}}return Ce}function v(de,Ce){var ke=de.sortIndex-Ce.sortIndex;return ke!==0?ke:de.id-Ce.id}function S(de){for(var Ce=d(H);Ce!==null;){if(Ce.callback===null)m(H);else if(Ce.startTime<=de)m(H),Ce.sortIndex=Ce.expirationTime,s(V,Ce);else break;Ce=d(H)}}function C(de){if(ue=!1,S(de),!te)if(d(V)!==null)te=!0,ce||(ce=!0,we());else{var Ce=d(H);Ce!==null&&N(C,Ce.startTime-de)}}function I(){return se?!0:!(t.unstable_now()-Ne<Re)}function N(de,Ce){me=ge(function(){de(t.unstable_now())},Ce)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var M=performance;t.unstable_now=function(){return M.now()}}else{var k=Date,z=k.now();t.unstable_now=function(){return k.now()-z}}var V=[],H=[],W=1,J=null,K=3,re=!1,te=!1,ue=!1,se=!1,ge=typeof setTimeout=="function"?setTimeout:null,pe=typeof clearTimeout=="function"?clearTimeout:null,Ee=typeof setImmediate<"u"?setImmediate:null,ce=!1,me=-1,Re=5,Ne=-1;if(typeof Ee=="function")var we=function(){Ee(n)};else if(typeof MessageChannel<"u"){var De=new MessageChannel,Ge=De.port2;De.port1.onmessage=n,we=function(){Ge.postMessage(null)}}else we=function(){ge(n,0)};t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(de){de.callback=null},t.unstable_forceFrameRate=function(de){0>de||125<de?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Re=0<de?Math.floor(1e3/de):5},t.unstable_getCurrentPriorityLevel=function(){return K},t.unstable_next=function(de){switch(K){case 1:case 2:case 3:var Ce=3;break;default:Ce=K}var ke=K;K=Ce;try{return de()}finally{K=ke}},t.unstable_requestPaint=function(){se=!0},t.unstable_runWithPriority=function(de,Ce){switch(de){case 1:case 2:case 3:case 4:case 5:break;default:de=3}var ke=K;K=de;try{return Ce()}finally{K=ke}},t.unstable_scheduleCallback=function(de,Ce,ke){var We=t.unstable_now();switch(typeof ke=="object"&&ke!==null?(ke=ke.delay,ke=typeof ke=="number"&&0<ke?We+ke:We):ke=We,de){case 1:var Ve=-1;break;case 2:Ve=250;break;case 5:Ve=1073741823;break;case 4:Ve=1e4;break;default:Ve=5e3}return Ve=ke+Ve,de={id:W++,callback:Ce,priorityLevel:de,startTime:ke,expirationTime:Ve,sortIndex:-1},ke>We?(de.sortIndex=ke,s(H,de),d(V)===null&&de===d(H)&&(ue?(pe(me),me=-1):ue=!0,N(C,ke-We))):(de.sortIndex=Ve,s(V,de),te||re||(te=!0,ce||(ce=!0,we()))),de},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(de){var Ce=K;return function(){var ke=K;K=Ce;try{return de.apply(this,arguments)}finally{K=ke}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(scheduler_development)),scheduler_development}var hasRequiredScheduler;function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=1,process$1.env.NODE_ENV==="production"?scheduler.exports=requireScheduler_production():scheduler.exports=requireScheduler_development()),scheduler.exports}var hasRequiredReactDomClient_production;function requireReactDomClient_production(){if(hasRequiredReactDomClient_production)return reactDomClient_production;hasRequiredReactDomClient_production=1;var t=requireScheduler(),n=React,s=require$$2;function d(r){var f="https://react.dev/errors/"+r;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)f+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+r+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function m(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function v(r){var f=r,y=r;if(r.alternate)for(;f.return;)f=f.return;else{r=f;do f=r,(f.flags&4098)!==0&&(y=f.return),r=f.return;while(r)}return f.tag===3?y:null}function S(r){if(r.tag===13){var f=r.memoizedState;if(f===null&&(r=r.alternate,r!==null&&(f=r.memoizedState)),f!==null)return f.dehydrated}return null}function C(r){if(r.tag===31){var f=r.memoizedState;if(f===null&&(r=r.alternate,r!==null&&(f=r.memoizedState)),f!==null)return f.dehydrated}return null}function I(r){if(v(r)!==r)throw Error(d(188))}function N(r){var f=r.alternate;if(!f){if(f=v(r),f===null)throw Error(d(188));return f!==r?null:r}for(var y=r,A=f;;){var L=y.return;if(L===null)break;var F=L.alternate;if(F===null){if(A=L.return,A!==null){y=A;continue}break}if(L.child===F.child){for(F=L.child;F;){if(F===y)return I(L),r;if(F===A)return I(L),f;F=F.sibling}throw Error(d(188))}if(y.return!==A.return)y=L,A=F;else{for(var X=!1,ie=L.child;ie;){if(ie===y){X=!0,y=L,A=F;break}if(ie===A){X=!0,A=L,y=F;break}ie=ie.sibling}if(!X){for(ie=F.child;ie;){if(ie===y){X=!0,y=F,A=L;break}if(ie===A){X=!0,A=F,y=L;break}ie=ie.sibling}if(!X)throw Error(d(189))}}if(y.alternate!==A)throw Error(d(190))}if(y.tag!==3)throw Error(d(188));return y.stateNode.current===y?r:f}function M(r){var f=r.tag;if(f===5||f===26||f===27||f===6)return r;for(r=r.child;r!==null;){if(f=M(r),f!==null)return f;r=r.sibling}return null}var k=Object.assign,z=Symbol.for("react.element"),V=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),re=Symbol.for("react.consumer"),te=Symbol.for("react.context"),ue=Symbol.for("react.forward_ref"),se=Symbol.for("react.suspense"),ge=Symbol.for("react.suspense_list"),pe=Symbol.for("react.memo"),Ee=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),me=Symbol.for("react.memo_cache_sentinel"),Re=Symbol.iterator;function Ne(r){return r===null||typeof r!="object"?null:(r=Re&&r[Re]||r["@@iterator"],typeof r=="function"?r:null)}var we=Symbol.for("react.client.reference");function De(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===we?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case W:return"Fragment";case K:return"Profiler";case J:return"StrictMode";case se:return"Suspense";case ge:return"SuspenseList";case ce:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case H:return"Portal";case te:return r.displayName||"Context";case re:return(r._context.displayName||"Context")+".Consumer";case ue:var f=r.render;return r=r.displayName,r||(r=f.displayName||f.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case pe:return f=r.displayName||null,f!==null?f:De(r.type)||"Memo";case Ee:f=r._payload,r=r._init;try{return De(r(f))}catch{}}return null}var Ge=Array.isArray,de=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ce=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ke={pending:!1,data:null,method:null,action:null},We=[],Ve=-1;function Le(r){return{current:r}}function Je(r){0>Ve||(r.current=We[Ve],We[Ve]=null,Ve--)}function He(r,f){Ve++,We[Ve]=r.current,r.current=f}var Pe=Le(null),it=Le(null),pt=Le(null),gt=Le(null);function xe(r,f){switch(He(pt,f),He(it,r),He(Pe,null),f.nodeType){case 9:case 11:r=(r=f.documentElement)&&(r=r.namespaceURI)?Xy(r):0;break;default:if(r=f.tagName,f=f.namespaceURI)f=Xy(f),r=$0(f,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}Je(Pe),He(Pe,r)}function Gt(){Je(Pe),Je(it),Je(pt)}function st(r){r.memoizedState!==null&&He(gt,r);var f=Pe.current,y=$0(f,r.type);f!==y&&(He(it,r),He(Pe,y))}function Be(r){it.current===r&&(Je(Pe),Je(it)),gt.current===r&&(Je(gt),nh._currentValue=ke)}var oe,_t;function Rt(r){if(oe===void 0)try{throw Error()}catch(y){var f=y.stack.trim().match(/\n( *(at )?)/);oe=f&&f[1]||"",_t=-1<y.stack.indexOf(`
149
+ at`)?" (<anonymous>)":-1<y.stack.indexOf("@")?"@unknown:0:0":""}return`
150
+ `+oe+r+_t}var kt=!1;function dt(r,f){if(!r||kt)return"";kt=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var A={DetermineComponentFrameRoot:function(){try{if(f){var tt=function(){throw Error()};if(Object.defineProperty(tt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(tt,[])}catch($e){var ze=$e}Reflect.construct(r,[],tt)}else{try{tt.call()}catch($e){ze=$e}r.call(tt.prototype)}}else{try{throw Error()}catch($e){ze=$e}(tt=r())&&typeof tt.catch=="function"&&tt.catch(function(){})}}catch($e){if($e&&ze&&typeof $e.stack=="string")return[$e.stack,ze.stack]}return[null,null]}};A.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var L=Object.getOwnPropertyDescriptor(A.DetermineComponentFrameRoot,"name");L&&L.configurable&&Object.defineProperty(A.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var F=A.DetermineComponentFrameRoot(),X=F[0],ie=F[1];if(X&&ie){var _e=X.split(`
151
+ `),qe=ie.split(`
152
+ `);for(L=A=0;A<_e.length&&!_e[A].includes("DetermineComponentFrameRoot");)A++;for(;L<qe.length&&!qe[L].includes("DetermineComponentFrameRoot");)L++;if(A===_e.length||L===qe.length)for(A=_e.length-1,L=qe.length-1;1<=A&&0<=L&&_e[A]!==qe[L];)L--;for(;1<=A&&0<=L;A--,L--)if(_e[A]!==qe[L]){if(A!==1||L!==1)do if(A--,L--,0>L||_e[A]!==qe[L]){var Qe=`
153
+ `+_e[A].replace(" at new "," at ");return r.displayName&&Qe.includes("<anonymous>")&&(Qe=Qe.replace("<anonymous>",r.displayName)),Qe}while(1<=A&&0<=L);break}}}finally{kt=!1,Error.prepareStackTrace=y}return(y=r?r.displayName||r.name:"")?Rt(y):""}function Fa(r,f){switch(r.tag){case 26:case 27:case 5:return Rt(r.type);case 16:return Rt("Lazy");case 13:return r.child!==f&&f!==null?Rt("Suspense Fallback"):Rt("Suspense");case 19:return Rt("SuspenseList");case 0:case 15:return dt(r.type,!1);case 11:return dt(r.type.render,!1);case 1:return dt(r.type,!0);case 31:return Rt("Activity");default:return""}}function $a(r){try{var f="",y=null;do f+=Fa(r,y),y=r,r=r.return;while(r);return f}catch(A){return`
154
+ Error generating stack: `+A.message+`
155
+ `+A.stack}}var rt=Object.prototype.hasOwnProperty,Yt=t.unstable_scheduleCallback,on=t.unstable_cancelCallback,Jt=t.unstable_shouldYield,mr=t.unstable_requestPaint,vt=t.unstable_now,Ja=t.unstable_getCurrentPriorityLevel,gr=t.unstable_ImmediatePriority,yr=t.unstable_UserBlockingPriority,xt=t.unstable_NormalPriority,vu=t.unstable_LowPriority,zt=t.unstable_IdlePriority,Tt=t.log,Yu=t.unstable_setDisableYieldValue,ra=null,ia=null;function bt(r){if(typeof Tt=="function"&&Yu(r),ia&&typeof ia.setStrictMode=="function")try{ia.setStrictMode(ra,r)}catch{}}var $n=Math.clz32?Math.clz32:ua,Xu=Math.log,tu=Math.LN2;function ua(r){return r>>>=0,r===0?32:31-(Xu(r)/tu|0)|0}var Jn=256,Nn=262144,Ti=4194304;function Ra(r){var f=r&42;if(f!==0)return f;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function Fn(r,f,y){var A=r.pendingLanes;if(A===0)return 0;var L=0,F=r.suspendedLanes,X=r.pingedLanes;r=r.warmLanes;var ie=A&134217727;return ie!==0?(A=ie&~F,A!==0?L=Ra(A):(X&=ie,X!==0?L=Ra(X):y||(y=ie&~r,y!==0&&(L=Ra(y))))):(ie=A&~F,ie!==0?L=Ra(ie):X!==0?L=Ra(X):y||(y=A&~r,y!==0&&(L=Ra(y)))),L===0?0:f!==0&&f!==L&&(f&F)===0&&(F=L&-L,y=f&-f,F>=y||F===32&&(y&4194048)!==0)?f:L}function ae(r,f){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&f)===0}function le(r,f){switch(r){case 1:case 2:case 4:case 8:case 64:return f+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return f+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function fe(){var r=Ti;return Ti<<=1,(Ti&62914560)===0&&(Ti=4194304),r}function Xe(r){for(var f=[],y=0;31>y;y++)f.push(r);return f}function ot(r,f){r.pendingLanes|=f,f!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function yt(r,f,y,A,L,F){var X=r.pendingLanes;r.pendingLanes=y,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=y,r.entangledLanes&=y,r.errorRecoveryDisabledLanes&=y,r.shellSuspendCounter=0;var ie=r.entanglements,_e=r.expirationTimes,qe=r.hiddenUpdates;for(y=X&~y;0<y;){var Qe=31-$n(y),tt=1<<Qe;ie[Qe]=0,_e[Qe]=-1;var ze=qe[Qe];if(ze!==null)for(qe[Qe]=null,Qe=0;Qe<ze.length;Qe++){var $e=ze[Qe];$e!==null&&($e.lane&=-536870913)}y&=~tt}A!==0&&ut(r,A,0),F!==0&&L===0&&r.tag!==0&&(r.suspendedLanes|=F&~(X&~f))}function ut(r,f,y){r.pendingLanes|=f,r.suspendedLanes&=~f;var A=31-$n(f);r.entangledLanes|=f,r.entanglements[A]=r.entanglements[A]|1073741824|y&261930}function tn(r,f){var y=r.entangledLanes|=f;for(r=r.entanglements;y;){var A=31-$n(y),L=1<<A;L&f|r[A]&f&&(r[A]|=f),y&=~L}}function gn(r,f){var y=f&-f;return y=(y&42)!==0?1:qn(y),(y&(r.suspendedLanes|f))!==0?0:y}function qn(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Tr(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function li(){var r=Ce.p;return r!==0?r:(r=window.event,r===void 0?32:ah(r.type))}function ci(r,f){var y=Ce.p;try{return Ce.p=r,f()}finally{Ce.p=y}}var sa=Math.random().toString(36).slice(2),hn="__reactFiber$"+sa,yn="__reactProps$"+sa,Ta="__reactContainer$"+sa,Wa="__reactEvents$"+sa,Da="__reactListeners$"+sa,Qa="__reactHandles$"+sa,qa="__reactResources$"+sa,Ga="__reactMarker$"+sa;function Dr(r){delete r[hn],delete r[yn],delete r[Wa],delete r[Da],delete r[Qa]}function bn(r){var f=r[hn];if(f)return f;for(var y=r.parentNode;y;){if(f=y[Ta]||y[hn]){if(y=f.alternate,f.child!==null||y!==null&&y.child!==null)for(r=Fu(r);r!==null;){if(y=r[hn])return y;r=Fu(r)}return f}r=y,y=r.parentNode}return null}function Di(r){if(r=r[hn]||r[Ta]){var f=r.tag;if(f===5||f===6||f===13||f===31||f===26||f===27||f===3)return r}return null}function Ir(r){var f=r.tag;if(f===5||f===26||f===27||f===6)return r.stateNode;throw Error(d(33))}function Gr(r){var f=r[qa];return f||(f=r[qa]={hoistableStyles:new Map,hoistableScripts:new Map}),f}function Vt(r){r[Ga]=!0}var fi=new Set,nu={};function bu(r,f){au(r,f),au(r+"Capture",f)}function au(r,f){for(nu[r]=f,r=0;r<f.length;r++)fi.add(f[r])}var Or=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),_u={},Zu={};function Ii(r){return rt.call(Zu,r)?!0:rt.call(_u,r)?!1:Or.test(r)?Zu[r]=!0:(_u[r]=!0,!1)}function $u(r,f,y){if(Ii(f))if(y===null)r.removeAttribute(f);else{switch(typeof y){case"undefined":case"function":case"symbol":r.removeAttribute(f);return;case"boolean":var A=f.toLowerCase().slice(0,5);if(A!=="data-"&&A!=="aria-"){r.removeAttribute(f);return}}r.setAttribute(f,""+y)}}function fc(r,f,y){if(y===null)r.removeAttribute(f);else{switch(typeof y){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(f);return}r.setAttribute(f,""+y)}}function Eu(r,f,y,A){if(A===null)r.removeAttribute(y);else{switch(typeof A){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(y);return}r.setAttributeNS(f,y,""+A)}}function zr(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function ll(r){var f=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(f==="checkbox"||f==="radio")}function dc(r,f,y){var A=Object.getOwnPropertyDescriptor(r.constructor.prototype,f);if(!r.hasOwnProperty(f)&&typeof A<"u"&&typeof A.get=="function"&&typeof A.set=="function"){var L=A.get,F=A.set;return Object.defineProperty(r,f,{configurable:!0,get:function(){return L.call(this)},set:function(X){y=""+X,F.call(this,X)}}),Object.defineProperty(r,f,{enumerable:A.enumerable}),{getValue:function(){return y},setValue:function(X){y=""+X},stopTracking:function(){r._valueTracker=null,delete r[f]}}}}function qs(r){if(!r._valueTracker){var f=ll(r)?"checked":"value";r._valueTracker=dc(r,f,""+r[f])}}function Oi(r){if(!r)return!1;var f=r._valueTracker;if(!f)return!0;var y=f.getValue(),A="";return r&&(A=ll(r)?r.checked?"true":"false":r.value),r=A,r!==y?(f.setValue(r),!0):!1}function di(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var Ih=/[\n"\\]/g;function Ia(r){return r.replace(Ih,function(f){return"\\"+f.charCodeAt(0).toString(16)+" "})}function cl(r,f,y,A,L,F,X,ie){r.name="",X!=null&&typeof X!="function"&&typeof X!="symbol"&&typeof X!="boolean"?r.type=X:r.removeAttribute("type"),f!=null?X==="number"?(f===0&&r.value===""||r.value!=f)&&(r.value=""+zr(f)):r.value!==""+zr(f)&&(r.value=""+zr(f)):X!=="submit"&&X!=="reset"||r.removeAttribute("value"),f!=null?Gs(r,X,zr(f)):y!=null?Gs(r,X,zr(y)):A!=null&&r.removeAttribute("value"),L==null&&F!=null&&(r.defaultChecked=!!F),L!=null&&(r.checked=L&&typeof L!="function"&&typeof L!="symbol"),ie!=null&&typeof ie!="function"&&typeof ie!="symbol"&&typeof ie!="boolean"?r.name=""+zr(ie):r.removeAttribute("name")}function fl(r,f,y,A,L,F,X,ie){if(F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"&&(r.type=F),f!=null||y!=null){if(!(F!=="submit"&&F!=="reset"||f!=null)){qs(r);return}y=y!=null?""+zr(y):"",f=f!=null?""+zr(f):y,ie||f===r.value||(r.value=f),r.defaultValue=f}A=A??L,A=typeof A!="function"&&typeof A!="symbol"&&!!A,r.checked=ie?r.checked:!!A,r.defaultChecked=!!A,X!=null&&typeof X!="function"&&typeof X!="symbol"&&typeof X!="boolean"&&(r.name=X),qs(r)}function Gs(r,f,y){f==="number"&&di(r.ownerDocument)===r||r.defaultValue===""+y||(r.defaultValue=""+y)}function Ao(r,f,y,A){if(r=r.options,f){f={};for(var L=0;L<y.length;L++)f["$"+y[L]]=!0;for(y=0;y<r.length;y++)L=f.hasOwnProperty("$"+r[y].value),r[y].selected!==L&&(r[y].selected=L),L&&A&&(r[y].defaultSelected=!0)}else{for(y=""+zr(y),f=null,L=0;L<r.length;L++){if(r[L].value===y){r[L].selected=!0,A&&(r[L].defaultSelected=!0);return}f!==null||r[L].disabled||(f=r[L])}f!==null&&(f.selected=!0)}}function hc(r,f,y){if(f!=null&&(f=""+zr(f),f!==r.value&&(r.value=f),y==null)){r.defaultValue!==f&&(r.defaultValue=f);return}r.defaultValue=y!=null?""+zr(y):""}function zs(r,f,y,A){if(f==null){if(A!=null){if(y!=null)throw Error(d(92));if(Ge(A)){if(1<A.length)throw Error(d(93));A=A[0]}y=A}y==null&&(y=""),f=y}y=zr(f),r.defaultValue=y,A=r.textContent,A===y&&A!==""&&A!==null&&(r.value=A),qs(r)}function wi(r,f){if(f){var y=r.firstChild;if(y&&y===r.lastChild&&y.nodeType===3){y.nodeValue=f;return}}r.textContent=f}var Oh=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Yf(r,f,y){var A=f.indexOf("--")===0;y==null||typeof y=="boolean"||y===""?A?r.setProperty(f,""):f==="float"?r.cssFloat="":r[f]="":A?r.setProperty(f,y):typeof y!="number"||y===0||Oh.has(f)?f==="float"?r.cssFloat=y:r[f]=(""+y).trim():r[f]=y+"px"}function wh(r,f,y){if(f!=null&&typeof f!="object")throw Error(d(62));if(r=r.style,y!=null){for(var A in y)!y.hasOwnProperty(A)||f!=null&&f.hasOwnProperty(A)||(A.indexOf("--")===0?r.setProperty(A,""):A==="float"?r.cssFloat="":r[A]="");for(var L in f)A=f[L],f.hasOwnProperty(L)&&y[L]!==A&&Yf(r,L,A)}else for(var F in f)f.hasOwnProperty(F)&&Yf(r,F,f[F])}function dl(r){if(r.indexOf("-")===-1)return!1;switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Gn=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ni=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function hi(r){return Ni.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Pr(){}var vr=null;function br(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Ur=null,Ps=null;function hl(r){var f=Di(r);if(f&&(r=f.stateNode)){var y=r[yn]||null;e:switch(r=f.stateNode,f.type){case"input":if(cl(r,y.value,y.defaultValue,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name),f=y.name,y.type==="radio"&&f!=null){for(y=r;y.parentNode;)y=y.parentNode;for(y=y.querySelectorAll('input[name="'+Ia(""+f)+'"][type="radio"]'),f=0;f<y.length;f++){var A=y[f];if(A!==r&&A.form===r.form){var L=A[yn]||null;if(!L)throw Error(d(90));cl(A,L.value,L.defaultValue,L.defaultValue,L.checked,L.defaultChecked,L.type,L.name)}}for(f=0;f<y.length;f++)A=y[f],A.form===r.form&&Oi(A)}break e;case"textarea":hc(r,y.value,y.defaultValue);break e;case"select":f=y.value,f!=null&&Ao(r,!!y.multiple,f,!1)}}}var Us=!1;function Ro(r,f,y){if(Us)return r(f,y);Us=!0;try{var A=r(f);return A}finally{if(Us=!1,(Ur!==null||Ps!==null)&&(nf(),Ur&&(f=Ur,r=Ps,Ps=Ur=null,hl(f),r)))for(f=0;f<r.length;f++)hl(r[f])}}function Oa(r,f){var y=r.stateNode;if(y===null)return null;var A=y[yn]||null;if(A===null)return null;y=A[f];e:switch(f){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(A=!A.disabled)||(r=r.type,A=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!A;break e;default:r=!1}if(r)return null;if(y&&typeof y!="function")throw Error(d(231,f,typeof y));return y}var ru=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ln=!1;if(ru)try{var _r={};Object.defineProperty(_r,"passive",{get:function(){ln=!0}}),window.addEventListener("test",_r,_r),window.removeEventListener("test",_r,_r)}catch{ln=!1}var Li=null,pc=null,Ju=null;function mc(){if(Ju)return Ju;var r,f=pc,y=f.length,A,L="value"in Li?Li.value:Li.textContent,F=L.length;for(r=0;r<y&&f[r]===L[r];r++);var X=y-r;for(A=1;A<=X&&f[y-A]===L[F-A];A++);return Ju=L.slice(r,1<A?1-A:void 0)}function wa(r){var f=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&f===13&&(r=13)):r=f,r===10&&(r=13),32<=r||r===13?r:0}function To(){return!0}function gc(){return!1}function Na(r){function f(y,A,L,F,X){this._reactName=y,this._targetInst=L,this.type=A,this.nativeEvent=F,this.target=X,this.currentTarget=null;for(var ie in r)r.hasOwnProperty(ie)&&(y=r[ie],this[ie]=y?y(F):F[ie]);return this.isDefaultPrevented=(F.defaultPrevented!=null?F.defaultPrevented:F.returnValue===!1)?To:gc,this.isPropagationStopped=gc,this}return k(f.prototype,{preventDefault:function(){this.defaultPrevented=!0;var y=this.nativeEvent;y&&(y.preventDefault?y.preventDefault():typeof y.returnValue!="unknown"&&(y.returnValue=!1),this.isDefaultPrevented=To)},stopPropagation:function(){var y=this.nativeEvent;y&&(y.stopPropagation?y.stopPropagation():typeof y.cancelBubble!="unknown"&&(y.cancelBubble=!0),this.isPropagationStopped=To)},persist:function(){},isPersistent:To}),f}var xu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pl=Na(xu),Vs=k({},xu,{view:0,detail:0}),Su=Na(Vs),Do,Xf,Ka,Cu=k({},Vs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zn,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Ka&&(Ka&&r.type==="mousemove"?(Do=r.screenX-Ka.screenX,Xf=r.screenY-Ka.screenY):Xf=Do=0,Ka=r),Do)},movementY:function(r){return"movementY"in r?r.movementY:Xf}}),Io=Na(Cu),Hs=k({},Cu,{dataTransfer:0}),Zf=Na(Hs),Ys=k({},Vs,{relatedTarget:0}),yc=Na(Ys),mi=k({},xu,{animationName:0,elapsedTime:0,pseudoElement:0}),$f=Na(mi),Xs=k({},xu,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),Zs=Na(Xs),Mi=k({},xu,{data:0}),Nh=Na(Mi),Jf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},iu={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Lh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function za(r){var f=this.nativeEvent;return f.getModifierState?f.getModifierState(r):(r=Lh[r])?!!f[r]:!1}function zn(){return za}var vc=k({},Vs,{key:function(r){if(r.key){var f=Jf[r.key]||r.key;if(f!=="Unidentified")return f}return r.type==="keypress"?(r=wa(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?iu[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zn,charCode:function(r){return r.type==="keypress"?wa(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?wa(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),ml=Na(vc),Wf=k({},Cu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vr=Na(Wf),Mh=k({},Vs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zn}),bc=Na(Mh),Qf=k({},xu,{propertyName:0,elapsedTime:0,pseudoElement:0}),ki=Na(Qf),_c=k({},Cu,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),Hr=Na(_c),Oo=k({},xu,{newState:0,oldState:0}),Kf=Na(Oo),gl=[9,13,27,32],$s=ru&&"CompositionEvent"in window,Wu=null;ru&&"documentMode"in document&&(Wu=document.documentMode);var La=ru&&"TextEvent"in window&&!Wu,ed=ru&&(!$s||Wu&&8<Wu&&11>=Wu),yl=" ",Qu=!1;function Ec(r,f){switch(r){case"keyup":return gl.indexOf(f.keyCode)!==-1;case"keydown":return f.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function td(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Js=!1;function kh(r,f){switch(r){case"compositionend":return td(f);case"keypress":return f.which!==32?null:(Qu=!0,yl);case"textInput":return r=f.data,r===yl&&Qu?null:r;default:return null}}function Om(r,f){if(Js)return r==="compositionend"||!$s&&Ec(r,f)?(r=mc(),Ju=pc=Li=null,Js=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(f.ctrlKey||f.altKey||f.metaKey)||f.ctrlKey&&f.altKey){if(f.char&&1<f.char.length)return f.char;if(f.which)return String.fromCharCode(f.which)}return null;case"compositionend":return ed&&f.locale!=="ko"?null:f.data;default:return null}}var xc={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function uu(r){var f=r&&r.nodeName&&r.nodeName.toLowerCase();return f==="input"?!!xc[r.type]:f==="textarea"}function Sc(r,f,y,A){Ur?Ps?Ps.push(A):Ps=[A]:Ur=A,f=Jd(f,"onChange"),0<f.length&&(y=new pl("onChange","change",null,y,A),r.push({event:y,listeners:f}))}var Ws=null,Ku=null;function Qs(r){Vy(r,0)}function wo(r){var f=Ir(r);if(Oi(f))return r}function nd(r,f){if(r==="change")return f}var Ac=!1;if(ru){var Er;if(ru){var gi="oninput"in document;if(!gi){var Rc=document.createElement("div");Rc.setAttribute("oninput","return;"),gi=typeof Rc.oninput=="function"}Er=gi}else Er=!1;Ac=Er&&(!document.documentMode||9<document.documentMode)}function vl(){Ws&&(Ws.detachEvent("onpropertychange",Tc),Ku=Ws=null)}function Tc(r){if(r.propertyName==="value"&&wo(Ku)){var f=[];Sc(f,Ku,r,br(r)),Ro(Qs,f)}}function ad(r,f,y){r==="focusin"?(vl(),Ws=f,Ku=y,Ws.attachEvent("onpropertychange",Tc)):r==="focusout"&&vl()}function Dc(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return wo(Ku)}function es(r,f){if(r==="click")return wo(f)}function ts(r,f){if(r==="input"||r==="change")return wo(f)}function rd(r,f){return r===f&&(r!==0||1/r===1/f)||r!==r&&f!==f}var er=typeof Object.is=="function"?Object.is:rd;function yi(r,f){if(er(r,f))return!0;if(typeof r!="object"||r===null||typeof f!="object"||f===null)return!1;var y=Object.keys(r),A=Object.keys(f);if(y.length!==A.length)return!1;for(A=0;A<y.length;A++){var L=y[A];if(!rt.call(f,L)||!er(r[L],f[L]))return!1}return!0}function ns(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function id(r,f){var y=ns(r);r=0;for(var A;y;){if(y.nodeType===3){if(A=r+y.textContent.length,r<=f&&A>=f)return{node:y,offset:f-r};r=A}e:{for(;y;){if(y.nextSibling){y=y.nextSibling;break e}y=y.parentNode}y=void 0}y=ns(y)}}function as(r,f){return r&&f?r===f?!0:r&&r.nodeType===3?!1:f&&f.nodeType===3?as(r,f.parentNode):"contains"in r?r.contains(f):r.compareDocumentPosition?!!(r.compareDocumentPosition(f)&16):!1:!1}function ya(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var f=di(r.document);f instanceof r.HTMLIFrameElement;){try{var y=typeof f.contentWindow.location.href=="string"}catch{y=!1}if(y)r=f.contentWindow;else break;f=di(r.document)}return f}function wr(r){var f=r&&r.nodeName&&r.nodeName.toLowerCase();return f&&(f==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||f==="textarea"||r.contentEditable==="true")}var x=ru&&"documentMode"in document&&11>=document.documentMode,h=null,g=null,E=null,O=!1;function G(r,f,y){var A=y.window===y?y.document:y.nodeType===9?y:y.ownerDocument;O||h==null||h!==di(A)||(A=h,"selectionStart"in A&&wr(A)?A={start:A.selectionStart,end:A.selectionEnd}:(A=(A.ownerDocument&&A.ownerDocument.defaultView||window).getSelection(),A={anchorNode:A.anchorNode,anchorOffset:A.anchorOffset,focusNode:A.focusNode,focusOffset:A.focusOffset}),E&&yi(E,A)||(E=A,A=Jd(g,"onSelect"),0<A.length&&(f=new pl("onSelect","select",null,f,y),r.push({event:f,listeners:A}),f.target=h)))}function Y(r,f){var y={};return y[r.toLowerCase()]=f.toLowerCase(),y["Webkit"+r]="webkit"+f,y["Moz"+r]="moz"+f,y}var $={animationend:Y("Animation","AnimationEnd"),animationiteration:Y("Animation","AnimationIteration"),animationstart:Y("Animation","AnimationStart"),transitionrun:Y("Transition","TransitionRun"),transitionstart:Y("Transition","TransitionStart"),transitioncancel:Y("Transition","TransitionCancel"),transitionend:Y("Transition","TransitionEnd")},ne={},he={};ru&&(he=document.createElement("div").style,"AnimationEvent"in window||(delete $.animationend.animation,delete $.animationiteration.animation,delete $.animationstart.animation),"TransitionEvent"in window||delete $.transitionend.transition);function Se(r){if(ne[r])return ne[r];if(!$[r])return r;var f=$[r],y;for(y in f)if(f.hasOwnProperty(y)&&y in he)return ne[r]=f[y];return r}var je=Se("animationend"),at=Se("animationiteration"),ct=Se("animationstart"),mt=Se("transitionrun"),Ct=Se("transitionstart"),Pt=Se("transitioncancel"),rn=Se("transitionend"),un=new Map,Wn="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Wn.push("scrollEnd");function xn(r,f){un.set(r,f),bu(f,[r])}var Yr=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var f=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(f))return}else if(typeof process$1=="object"&&typeof process$1.emit=="function"){process$1.emit("uncaughtException",r);return}console.error(r)},Tn=[],va=0,Xr=0;function Nr(){for(var r=va,f=Xr=va=0;f<r;){var y=Tn[f];Tn[f++]=null;var A=Tn[f];Tn[f++]=null;var L=Tn[f];Tn[f++]=null;var F=Tn[f];if(Tn[f++]=null,A!==null&&L!==null){var X=A.pending;X===null?L.next=L:(L.next=X.next,X.next=L),A.pending=L}F!==0&&No(y,L,F)}}function Lr(r,f,y,A){Tn[va++]=r,Tn[va++]=f,Tn[va++]=y,Tn[va++]=A,Xr|=A,r.lanes|=A,r=r.alternate,r!==null&&(r.lanes|=A)}function Zr(r,f,y,A){return Lr(r,f,y,A),Ks(r)}function su(r,f){return Lr(r,null,null,f),Ks(r)}function No(r,f,y){r.lanes|=y;var A=r.alternate;A!==null&&(A.lanes|=y);for(var L=!1,F=r.return;F!==null;)F.childLanes|=y,A=F.alternate,A!==null&&(A.childLanes|=y),F.tag===22&&(r=F.stateNode,r===null||r._visibility&1||(L=!0)),r=F,F=F.return;return r.tag===3?(F=r.stateNode,L&&f!==null&&(L=31-$n(y),r=F.hiddenUpdates,A=r[L],A===null?r[L]=[f]:A.push(f),f.lane=y|536870912),F):null}function Ks(r){if(50<tf)throw tf=0,zd=null,Error(d(185));for(var f=r.return;f!==null;)r=f,f=r.return;return r.tag===3?r.stateNode:null}var $r={};function ey(r,f,y,A){this.tag=r,this.key=y,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=f,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=A,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function da(r,f,y,A){return new ey(r,f,y,A)}function bl(r){return r=r.prototype,!(!r||!r.isReactComponent)}function eo(r,f){var y=r.alternate;return y===null?(y=da(r.tag,f,r.key,r.mode),y.elementType=r.elementType,y.type=r.type,y.stateNode=r.stateNode,y.alternate=r,r.alternate=y):(y.pendingProps=f,y.type=r.type,y.flags=0,y.subtreeFlags=0,y.deletions=null),y.flags=r.flags&65011712,y.childLanes=r.childLanes,y.lanes=r.lanes,y.child=r.child,y.memoizedProps=r.memoizedProps,y.memoizedState=r.memoizedState,y.updateQueue=r.updateQueue,f=r.dependencies,y.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},y.sibling=r.sibling,y.index=r.index,y.ref=r.ref,y.refCleanup=r.refCleanup,y}function wm(r,f){r.flags&=65011714;var y=r.alternate;return y===null?(r.childLanes=0,r.lanes=f,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=y.childLanes,r.lanes=y.lanes,r.child=y.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=y.memoizedProps,r.memoizedState=y.memoizedState,r.updateQueue=y.updateQueue,r.type=y.type,f=y.dependencies,r.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext}),r}function Bh(r,f,y,A,L,F){var X=0;if(A=r,typeof r=="function")bl(r)&&(X=1);else if(typeof r=="string")X=ng(r,y,Pe.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case ce:return r=da(31,y,f,L),r.elementType=ce,r.lanes=F,r;case W:return to(y.children,L,F,f);case J:X=8,L|=24;break;case K:return r=da(12,y,f,L|2),r.elementType=K,r.lanes=F,r;case se:return r=da(13,y,f,L),r.elementType=se,r.lanes=F,r;case ge:return r=da(19,y,f,L),r.elementType=ge,r.lanes=F,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case te:X=10;break e;case re:X=9;break e;case ue:X=11;break e;case pe:X=14;break e;case Ee:X=16,A=null;break e}X=29,y=Error(d(130,r===null?"null":typeof r,"")),A=null}return f=da(X,y,f,L),f.elementType=r,f.type=A,f.lanes=F,f}function to(r,f,y,A){return r=da(7,r,A,f),r.lanes=y,r}function Ic(r,f,y){return r=da(6,r,null,f),r.lanes=y,r}function Nm(r){var f=da(18,null,null,0);return f.stateNode=r,f}function jh(r,f,y){return f=da(4,r.children!==null?r.children:[],r.key,f),f.lanes=y,f.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},f}var Lm=new WeakMap;function Bi(r,f){if(typeof r=="object"&&r!==null){var y=Lm.get(r);return y!==void 0?y:(f={value:r,source:f,stack:$a(f)},Lm.set(r,f),f)}return{value:r,source:f,stack:$a(f)}}var ji=[],_l=0,ud=null,ba=0,vi=[],Jr=0,Au=null,bi=1,Ru="";function ou(r,f){ji[_l++]=ba,ji[_l++]=ud,ud=r,ba=f}function Mm(r,f,y){vi[Jr++]=bi,vi[Jr++]=Ru,vi[Jr++]=Au,Au=r;var A=bi;r=Ru;var L=32-$n(A)-1;A&=~(1<<L),y+=1;var F=32-$n(f)+L;if(30<F){var X=L-L%5;F=(A&(1<<X)-1).toString(32),A>>=X,L-=X,bi=1<<32-$n(f)+L|y<<L|A,Ru=F+r}else bi=1<<F|y<<L|A,Ru=r}function Oc(r){r.return!==null&&(ou(r,1),Mm(r,1,0))}function Fh(r){for(;r===ud;)ud=ji[--_l],ji[_l]=null,ba=ji[--_l],ji[_l]=null;for(;r===Au;)Au=vi[--Jr],vi[Jr]=null,Ru=vi[--Jr],vi[Jr]=null,bi=vi[--Jr],vi[Jr]=null}function sd(r,f){vi[Jr++]=bi,vi[Jr++]=Ru,vi[Jr++]=Au,bi=f.id,Ru=f.overflow,Au=r}var tr=null,Pn=null,cn=!1,rs=null,Pa=!1,is=Error(d(519));function lu(r){var f=Error(d(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Nc(Bi(f,r)),is}function od(r){var f=r.stateNode,y=r.type,A=r.memoizedProps;switch(f[hn]=r,f[yn]=A,y){case"dialog":sn("cancel",f),sn("close",f);break;case"iframe":case"object":case"embed":sn("load",f);break;case"video":case"audio":for(y=0;y<of.length;y++)sn(of[y],f);break;case"source":sn("error",f);break;case"img":case"image":case"link":sn("error",f),sn("load",f);break;case"details":sn("toggle",f);break;case"input":sn("invalid",f),fl(f,A.value,A.defaultValue,A.checked,A.defaultChecked,A.type,A.name,!0);break;case"select":sn("invalid",f);break;case"textarea":sn("invalid",f),zs(f,A.value,A.defaultValue,A.children)}y=A.children,typeof y!="string"&&typeof y!="number"&&typeof y!="bigint"||f.textContent===""+y||A.suppressHydrationWarning===!0||H0(f.textContent,y)?(A.popover!=null&&(sn("beforetoggle",f),sn("toggle",f)),A.onScroll!=null&&sn("scroll",f),A.onScrollEnd!=null&&sn("scrollend",f),A.onClick!=null&&(f.onclick=Pr),f=!0):f=!1,f||lu(r,!0)}function wc(r){for(tr=r.return;tr;)switch(tr.tag){case 5:case 31:case 13:Pa=!1;return;case 27:case 3:Pa=!0;return;default:tr=tr.return}}function us(r){if(r!==tr)return!1;if(!cn)return wc(r),cn=!0,!1;var f=r.tag,y;if((y=f!==3&&f!==27)&&((y=f===5)&&(y=r.type,y=!(y!=="form"&&y!=="button")||cf(r.type,r.memoizedProps)),y=!y),y&&Pn&&lu(r),wc(r),f===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(d(317));Pn=zp(r)}else if(f===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(d(317));Pn=zp(r)}else f===27?(f=Pn,ju(r.type)?(r=Kd,Kd=null,Pn=r):Pn=f):Pn=tr?ui(r.stateNode.nextSibling):null;return!0}function Lo(){Pn=tr=null,cn=!1}function km(){var r=rs;return r!==null&&(ca===null?ca=r:ca.push.apply(ca,r),rs=null),r}function Nc(r){rs===null?rs=[r]:rs.push(r)}var qh=Le(null),no=null,Tu=null;function Wr(r,f,y){He(qh,f._currentValue),f._currentValue=y}function Du(r){r._currentValue=qh.current,Je(qh)}function Gh(r,f,y){for(;r!==null;){var A=r.alternate;if((r.childLanes&f)!==f?(r.childLanes|=f,A!==null&&(A.childLanes|=f)):A!==null&&(A.childLanes&f)!==f&&(A.childLanes|=f),r===y)break;r=r.return}}function ss(r,f,y,A){var L=r.child;for(L!==null&&(L.return=r);L!==null;){var F=L.dependencies;if(F!==null){var X=L.child;F=F.firstContext;e:for(;F!==null;){var ie=F;F=L;for(var _e=0;_e<f.length;_e++)if(ie.context===f[_e]){F.lanes|=y,ie=F.alternate,ie!==null&&(ie.lanes|=y),Gh(F.return,y,r),A||(X=null);break e}F=ie.next}}else if(L.tag===18){if(X=L.return,X===null)throw Error(d(341));X.lanes|=y,F=X.alternate,F!==null&&(F.lanes|=y),Gh(X,y,r),X=null}else X=L.child;if(X!==null)X.return=L;else for(X=L;X!==null;){if(X===r){X=null;break}if(L=X.sibling,L!==null){L.return=X.return,X=L;break}X=X.return}L=X}}function nr(r,f,y,A){r=null;for(var L=f,F=!1;L!==null;){if(!F){if((L.flags&524288)!==0)F=!0;else if((L.flags&262144)!==0)break}if(L.tag===10){var X=L.alternate;if(X===null)throw Error(d(387));if(X=X.memoizedProps,X!==null){var ie=L.type;er(L.pendingProps.value,X.value)||(r!==null?r.push(ie):r=[ie])}}else if(L===gt.current){if(X=L.alternate,X===null)throw Error(d(387));X.memoizedState.memoizedState!==L.memoizedState.memoizedState&&(r!==null?r.push(nh):r=[nh])}L=L.return}r!==null&&ss(f,r,y,A),f.flags|=262144}function El(r){for(r=r.firstContext;r!==null;){if(!er(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function jt(r){no=r,Tu=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function nt(r){return ld(no,r)}function ao(r,f){return no===null&&jt(r),ld(r,f)}function ld(r,f){var y=f._currentValue;if(f={context:f,memoizedValue:y,next:null},Tu===null){if(r===null)throw Error(d(308));Tu=f,r.dependencies={lanes:0,firstContext:f},r.flags|=524288}else Tu=Tu.next=f;return y}var ha=typeof AbortController<"u"?AbortController:function(){var r=[],f=this.signal={aborted:!1,addEventListener:function(y,A){r.push(A)}};this.abort=function(){f.aborted=!0,r.forEach(function(y){return y()})}},Bm=t.unstable_scheduleCallback,jm=t.unstable_NormalPriority,Ea={$$typeof:te,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cd(){return{controller:new ha,data:new Map,refCount:0}}function fd(r){r.refCount--,r.refCount===0&&Bm(jm,function(){r.controller.abort()})}var xl=null,dd=0,Mo=0,Ma=null;function Dn(r,f){if(xl===null){var y=xl=[];dd=0,Mo=Lp(),Ma={status:"pending",value:void 0,then:function(A){y.push(A)}}}return dd++,f.then(hd,hd),f}function hd(){if(--dd===0&&xl!==null){Ma!==null&&(Ma.status="fulfilled");var r=xl;xl=null,Mo=0,Ma=null;for(var f=0;f<r.length;f++)(0,r[f])()}}function pd(r,f){var y=[],A={status:"pending",value:null,reason:null,then:function(L){y.push(L)}};return r.then(function(){A.status="fulfilled",A.value=f;for(var L=0;L<y.length;L++)(0,y[L])(f)},function(L){for(A.status="rejected",A.reason=L,L=0;L<y.length;L++)(0,y[L])(void 0)}),A}var ro=de.S;de.S=function(r,f){N0=vt(),typeof f=="object"&&f!==null&&typeof f.then=="function"&&Dn(r,f),ro!==null&&ro(r,f)};var Fi=Le(null);function qi(){var r=Fi.current;return r!==null?r:Mn.pooledCache}function Lc(r,f){f===null?He(Fi,Fi.current):He(Fi,f.pool)}function Sl(){var r=qi();return r===null?null:{parent:Ea._currentValue,pool:r}}var ko=Error(d(460)),Cl=Error(d(474)),Mc=Error(d(542)),Al={then:function(){}};function Fm(r){return r=r.status,r==="fulfilled"||r==="rejected"}function qm(r,f,y){switch(y=r[y],y===void 0?r.push(f):y!==f&&(f.then(Pr,Pr),f=y),f.status){case"fulfilled":return f.value;case"rejected":throw r=f.reason,zh(r),r;default:if(typeof f.status=="string")f.then(Pr,Pr);else{if(r=Mn,r!==null&&100<r.shellSuspendCounter)throw Error(d(482));r=f,r.status="pending",r.then(function(A){if(f.status==="pending"){var L=f;L.status="fulfilled",L.value=A}},function(A){if(f.status==="pending"){var L=f;L.status="rejected",L.reason=A}})}switch(f.status){case"fulfilled":return f.value;case"rejected":throw r=f.reason,zh(r),r}throw jo=f,ko}}function Bo(r){try{var f=r._init;return f(r._payload)}catch(y){throw y!==null&&typeof y=="object"&&typeof y.then=="function"?(jo=y,ko):y}}var jo=null;function Gm(){if(jo===null)throw Error(d(459));var r=jo;return jo=null,r}function zh(r){if(r===ko||r===Mc)throw Error(d(483))}var Fo=null,Rl=0;function md(r){var f=Rl;return Rl+=1,Fo===null&&(Fo=[]),qm(Fo,r,f)}function kc(r,f){f=f.props.ref,r.ref=f!==void 0?f:null}function gd(r,f){throw f.$$typeof===z?Error(d(525)):(r=Object.prototype.toString.call(f),Error(d(31,r==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":r)))}function ty(r){function f(Me,Ie){if(r){var Fe=Me.deletions;Fe===null?(Me.deletions=[Ie],Me.flags|=16):Fe.push(Ie)}}function y(Me,Ie){if(!r)return null;for(;Ie!==null;)f(Me,Ie),Ie=Ie.sibling;return null}function A(Me){for(var Ie=new Map;Me!==null;)Me.key!==null?Ie.set(Me.key,Me):Ie.set(Me.index,Me),Me=Me.sibling;return Ie}function L(Me,Ie){return Me=eo(Me,Ie),Me.index=0,Me.sibling=null,Me}function F(Me,Ie,Fe){return Me.index=Fe,r?(Fe=Me.alternate,Fe!==null?(Fe=Fe.index,Fe<Ie?(Me.flags|=67108866,Ie):Fe):(Me.flags|=67108866,Ie)):(Me.flags|=1048576,Ie)}function X(Me){return r&&Me.alternate===null&&(Me.flags|=67108866),Me}function ie(Me,Ie,Fe,et){return Ie===null||Ie.tag!==6?(Ie=Ic(Fe,Me.mode,et),Ie.return=Me,Ie):(Ie=L(Ie,Fe),Ie.return=Me,Ie)}function _e(Me,Ie,Fe,et){var Dt=Fe.type;return Dt===W?Qe(Me,Ie,Fe.props.children,et,Fe.key):Ie!==null&&(Ie.elementType===Dt||typeof Dt=="object"&&Dt!==null&&Dt.$$typeof===Ee&&Bo(Dt)===Ie.type)?(Ie=L(Ie,Fe.props),kc(Ie,Fe),Ie.return=Me,Ie):(Ie=Bh(Fe.type,Fe.key,Fe.props,null,Me.mode,et),kc(Ie,Fe),Ie.return=Me,Ie)}function qe(Me,Ie,Fe,et){return Ie===null||Ie.tag!==4||Ie.stateNode.containerInfo!==Fe.containerInfo||Ie.stateNode.implementation!==Fe.implementation?(Ie=jh(Fe,Me.mode,et),Ie.return=Me,Ie):(Ie=L(Ie,Fe.children||[]),Ie.return=Me,Ie)}function Qe(Me,Ie,Fe,et,Dt){return Ie===null||Ie.tag!==7?(Ie=to(Fe,Me.mode,et,Dt),Ie.return=Me,Ie):(Ie=L(Ie,Fe),Ie.return=Me,Ie)}function tt(Me,Ie,Fe){if(typeof Ie=="string"&&Ie!==""||typeof Ie=="number"||typeof Ie=="bigint")return Ie=Ic(""+Ie,Me.mode,Fe),Ie.return=Me,Ie;if(typeof Ie=="object"&&Ie!==null){switch(Ie.$$typeof){case V:return Fe=Bh(Ie.type,Ie.key,Ie.props,null,Me.mode,Fe),kc(Fe,Ie),Fe.return=Me,Fe;case H:return Ie=jh(Ie,Me.mode,Fe),Ie.return=Me,Ie;case Ee:return Ie=Bo(Ie),tt(Me,Ie,Fe)}if(Ge(Ie)||Ne(Ie))return Ie=to(Ie,Me.mode,Fe,null),Ie.return=Me,Ie;if(typeof Ie.then=="function")return tt(Me,md(Ie),Fe);if(Ie.$$typeof===te)return tt(Me,ao(Me,Ie),Fe);gd(Me,Ie)}return null}function ze(Me,Ie,Fe,et){var Dt=Ie!==null?Ie.key:null;if(typeof Fe=="string"&&Fe!==""||typeof Fe=="number"||typeof Fe=="bigint")return Dt!==null?null:ie(Me,Ie,""+Fe,et);if(typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case V:return Fe.key===Dt?_e(Me,Ie,Fe,et):null;case H:return Fe.key===Dt?qe(Me,Ie,Fe,et):null;case Ee:return Fe=Bo(Fe),ze(Me,Ie,Fe,et)}if(Ge(Fe)||Ne(Fe))return Dt!==null?null:Qe(Me,Ie,Fe,et,null);if(typeof Fe.then=="function")return ze(Me,Ie,md(Fe),et);if(Fe.$$typeof===te)return ze(Me,Ie,ao(Me,Fe),et);gd(Me,Fe)}return null}function $e(Me,Ie,Fe,et,Dt){if(typeof et=="string"&&et!==""||typeof et=="number"||typeof et=="bigint")return Me=Me.get(Fe)||null,ie(Ie,Me,""+et,Dt);if(typeof et=="object"&&et!==null){switch(et.$$typeof){case V:return Me=Me.get(et.key===null?Fe:et.key)||null,_e(Ie,Me,et,Dt);case H:return Me=Me.get(et.key===null?Fe:et.key)||null,qe(Ie,Me,et,Dt);case Ee:return et=Bo(et),$e(Me,Ie,Fe,et,Dt)}if(Ge(et)||Ne(et))return Me=Me.get(Fe)||null,Qe(Ie,Me,et,Dt,null);if(typeof et.then=="function")return $e(Me,Ie,Fe,md(et),Dt);if(et.$$typeof===te)return $e(Me,Ie,Fe,ao(Ie,et),Dt);gd(Ie,et)}return null}function Et(Me,Ie,Fe,et){for(var Dt=null,_n=null,St=Ie,Ut=Ie=0,Zt=null;St!==null&&Ut<Fe.length;Ut++){St.index>Ut?(Zt=St,St=null):Zt=St.sibling;var Cn=ze(Me,St,Fe[Ut],et);if(Cn===null){St===null&&(St=Zt);break}r&&St&&Cn.alternate===null&&f(Me,St),Ie=F(Cn,Ie,Ut),_n===null?Dt=Cn:_n.sibling=Cn,_n=Cn,St=Zt}if(Ut===Fe.length)return y(Me,St),cn&&ou(Me,Ut),Dt;if(St===null){for(;Ut<Fe.length;Ut++)St=tt(Me,Fe[Ut],et),St!==null&&(Ie=F(St,Ie,Ut),_n===null?Dt=St:_n.sibling=St,_n=St);return cn&&ou(Me,Ut),Dt}for(St=A(St);Ut<Fe.length;Ut++)Zt=$e(St,Me,Ut,Fe[Ut],et),Zt!==null&&(r&&Zt.alternate!==null&&St.delete(Zt.key===null?Ut:Zt.key),Ie=F(Zt,Ie,Ut),_n===null?Dt=Zt:_n.sibling=Zt,_n=Zt);return r&&St.forEach(function(Gu){return f(Me,Gu)}),cn&&ou(Me,Ut),Dt}function wt(Me,Ie,Fe,et){if(Fe==null)throw Error(d(151));for(var Dt=null,_n=null,St=Ie,Ut=Ie=0,Zt=null,Cn=Fe.next();St!==null&&!Cn.done;Ut++,Cn=Fe.next()){St.index>Ut?(Zt=St,St=null):Zt=St.sibling;var Gu=ze(Me,St,Cn.value,et);if(Gu===null){St===null&&(St=Zt);break}r&&St&&Gu.alternate===null&&f(Me,St),Ie=F(Gu,Ie,Ut),_n===null?Dt=Gu:_n.sibling=Gu,_n=Gu,St=Zt}if(Cn.done)return y(Me,St),cn&&ou(Me,Ut),Dt;if(St===null){for(;!Cn.done;Ut++,Cn=Fe.next())Cn=tt(Me,Cn.value,et),Cn!==null&&(Ie=F(Cn,Ie,Ut),_n===null?Dt=Cn:_n.sibling=Cn,_n=Cn);return cn&&ou(Me,Ut),Dt}for(St=A(St);!Cn.done;Ut++,Cn=Fe.next())Cn=$e(St,Me,Ut,Cn.value,et),Cn!==null&&(r&&Cn.alternate!==null&&St.delete(Cn.key===null?Ut:Cn.key),Ie=F(Cn,Ie,Ut),_n===null?Dt=Cn:_n.sibling=Cn,_n=Cn);return r&&St.forEach(function(iv){return f(Me,iv)}),cn&&ou(Me,Ut),Dt}function Bn(Me,Ie,Fe,et){if(typeof Fe=="object"&&Fe!==null&&Fe.type===W&&Fe.key===null&&(Fe=Fe.props.children),typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case V:e:{for(var Dt=Fe.key;Ie!==null;){if(Ie.key===Dt){if(Dt=Fe.type,Dt===W){if(Ie.tag===7){y(Me,Ie.sibling),et=L(Ie,Fe.props.children),et.return=Me,Me=et;break e}}else if(Ie.elementType===Dt||typeof Dt=="object"&&Dt!==null&&Dt.$$typeof===Ee&&Bo(Dt)===Ie.type){y(Me,Ie.sibling),et=L(Ie,Fe.props),kc(et,Fe),et.return=Me,Me=et;break e}y(Me,Ie);break}else f(Me,Ie);Ie=Ie.sibling}Fe.type===W?(et=to(Fe.props.children,Me.mode,et,Fe.key),et.return=Me,Me=et):(et=Bh(Fe.type,Fe.key,Fe.props,null,Me.mode,et),kc(et,Fe),et.return=Me,Me=et)}return X(Me);case H:e:{for(Dt=Fe.key;Ie!==null;){if(Ie.key===Dt)if(Ie.tag===4&&Ie.stateNode.containerInfo===Fe.containerInfo&&Ie.stateNode.implementation===Fe.implementation){y(Me,Ie.sibling),et=L(Ie,Fe.children||[]),et.return=Me,Me=et;break e}else{y(Me,Ie);break}else f(Me,Ie);Ie=Ie.sibling}et=jh(Fe,Me.mode,et),et.return=Me,Me=et}return X(Me);case Ee:return Fe=Bo(Fe),Bn(Me,Ie,Fe,et)}if(Ge(Fe))return Et(Me,Ie,Fe,et);if(Ne(Fe)){if(Dt=Ne(Fe),typeof Dt!="function")throw Error(d(150));return Fe=Dt.call(Fe),wt(Me,Ie,Fe,et)}if(typeof Fe.then=="function")return Bn(Me,Ie,md(Fe),et);if(Fe.$$typeof===te)return Bn(Me,Ie,ao(Me,Fe),et);gd(Me,Fe)}return typeof Fe=="string"&&Fe!==""||typeof Fe=="number"||typeof Fe=="bigint"?(Fe=""+Fe,Ie!==null&&Ie.tag===6?(y(Me,Ie.sibling),et=L(Ie,Fe),et.return=Me,Me=et):(y(Me,Ie),et=Ic(Fe,Me.mode,et),et.return=Me,Me=et),X(Me)):y(Me,Ie)}return function(Me,Ie,Fe,et){try{Rl=0;var Dt=Bn(Me,Ie,Fe,et);return Fo=null,Dt}catch(St){if(St===ko||St===Mc)throw St;var _n=da(29,St,null,Me.mode);return _n.lanes=et,_n.return=Me,_n}}}var qo=ty(!0),zm=ty(!1),io=!1;function yd(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ph(r,f){r=r.updateQueue,f.updateQueue===r&&(f.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function uo(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function Gi(r,f,y){var A=r.updateQueue;if(A===null)return null;if(A=A.shared,(Sn&2)!==0){var L=A.pending;return L===null?f.next=f:(f.next=L.next,L.next=f),A.pending=f,f=Ks(r),No(r,null,y),f}return Lr(r,A,f,y),Ks(r)}function Go(r,f,y){if(f=f.updateQueue,f!==null&&(f=f.shared,(y&4194048)!==0)){var A=f.lanes;A&=r.pendingLanes,y|=A,f.lanes=y,tn(r,y)}}function Uh(r,f){var y=r.updateQueue,A=r.alternate;if(A!==null&&(A=A.updateQueue,y===A)){var L=null,F=null;if(y=y.firstBaseUpdate,y!==null){do{var X={lane:y.lane,tag:y.tag,payload:y.payload,callback:null,next:null};F===null?L=F=X:F=F.next=X,y=y.next}while(y!==null);F===null?L=F=f:F=F.next=f}else L=F=f;y={baseState:A.baseState,firstBaseUpdate:L,lastBaseUpdate:F,shared:A.shared,callbacks:A.callbacks},r.updateQueue=y;return}r=y.lastBaseUpdate,r===null?y.firstBaseUpdate=f:r.next=f,y.lastBaseUpdate=f}var Pm=!1;function zo(){if(Pm){var r=Ma;if(r!==null)throw r}}function os(r,f,y,A){Pm=!1;var L=r.updateQueue;io=!1;var F=L.firstBaseUpdate,X=L.lastBaseUpdate,ie=L.shared.pending;if(ie!==null){L.shared.pending=null;var _e=ie,qe=_e.next;_e.next=null,X===null?F=qe:X.next=qe,X=_e;var Qe=r.alternate;Qe!==null&&(Qe=Qe.updateQueue,ie=Qe.lastBaseUpdate,ie!==X&&(ie===null?Qe.firstBaseUpdate=qe:ie.next=qe,Qe.lastBaseUpdate=_e))}if(F!==null){var tt=L.baseState;X=0,Qe=qe=_e=null,ie=F;do{var ze=ie.lane&-536870913,$e=ze!==ie.lane;if($e?(nn&ze)===ze:(A&ze)===ze){ze!==0&&ze===Mo&&(Pm=!0),Qe!==null&&(Qe=Qe.next={lane:0,tag:ie.tag,payload:ie.payload,callback:null,next:null});e:{var Et=r,wt=ie;ze=f;var Bn=y;switch(wt.tag){case 1:if(Et=wt.payload,typeof Et=="function"){tt=Et.call(Bn,tt,ze);break e}tt=Et;break e;case 3:Et.flags=Et.flags&-65537|128;case 0:if(Et=wt.payload,ze=typeof Et=="function"?Et.call(Bn,tt,ze):Et,ze==null)break e;tt=k({},tt,ze);break e;case 2:io=!0}}ze=ie.callback,ze!==null&&(r.flags|=64,$e&&(r.flags|=8192),$e=L.callbacks,$e===null?L.callbacks=[ze]:$e.push(ze))}else $e={lane:ze,tag:ie.tag,payload:ie.payload,callback:ie.callback,next:null},Qe===null?(qe=Qe=$e,_e=tt):Qe=Qe.next=$e,X|=ze;if(ie=ie.next,ie===null){if(ie=L.shared.pending,ie===null)break;$e=ie,ie=$e.next,$e.next=null,L.lastBaseUpdate=$e,L.shared.pending=null}}while(!0);Qe===null&&(_e=tt),L.baseState=_e,L.firstBaseUpdate=qe,L.lastBaseUpdate=Qe,F===null&&(L.shared.lanes=0),ku|=X,r.lanes=X,r.memoizedState=tt}}function Vh(r,f){if(typeof r!="function")throw Error(d(191,r));r.call(f)}function Po(r,f){var y=r.callbacks;if(y!==null)for(r.callbacks=null,r=0;r<y.length;r++)Vh(y[r],f)}var Ua=Le(null),Tl=Le(0);function ny(r,f){r=Mu,He(Tl,r),He(Ua,f),Mu=r|f.baseLanes}function vd(){He(Tl,Mu),He(Ua,Ua.current)}function Bc(){Mu=Tl.current,Je(Ua),Je(Tl)}var Qr=Le(null),zi=null;function ls(r){var f=r.alternate;He(Qn,Qn.current&1),He(Qr,r),zi===null&&(f===null||Ua.current!==null||f.memoizedState!==null)&&(zi=r)}function jc(r){He(Qn,Qn.current),He(Qr,r),zi===null&&(zi=r)}function Hh(r){r.tag===22?(He(Qn,Qn.current),He(Qr,r),zi===null&&(zi=r)):Iu()}function Iu(){He(Qn,Qn.current),He(Qr,Qr.current)}function Kr(r){Je(Qr),zi===r&&(zi=null),Je(Qn)}var Qn=Le(0);function Fc(r){for(var f=r;f!==null;){if(f.tag===13){var y=f.memoizedState;if(y!==null&&(y=y.dehydrated,y===null||hu(y)||el(y)))return f}else if(f.tag===19&&(f.memoizedProps.revealOrder==="forwards"||f.memoizedProps.revealOrder==="backwards"||f.memoizedProps.revealOrder==="unstable_legacy-backwards"||f.memoizedProps.revealOrder==="together")){if((f.flags&128)!==0)return f}else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===r)break;for(;f.sibling===null;){if(f.return===null||f.return===r)return null;f=f.return}f.sibling.return=f.return,f=f.sibling}return null}var cs=0,Ht=null,In=null,xa=null,Dl=!1,Il=!1,so=!1,bd=0,qc=0,Uo=null,ay=0;function oa(){throw Error(d(321))}function oo(r,f){if(f===null)return!1;for(var y=0;y<f.length&&y<r.length;y++)if(!er(r[y],f[y]))return!1;return!0}function _d(r,f,y,A,L,F){return cs=F,Ht=f,f.memoizedState=null,f.updateQueue=null,f.lanes=0,de.H=r===null||r.memoizedState===null?fy:op,so=!1,F=y(A,L),so=!1,Il&&(F=ry(f,y,A,L)),Yh(r),F}function Yh(r){de.H=Id;var f=In!==null&&In.next!==null;if(cs=0,xa=In=Ht=null,Dl=!1,qc=0,Uo=null,f)throw Error(d(300));r===null||Sa||(r=r.dependencies,r!==null&&El(r)&&(Sa=!0))}function ry(r,f,y,A){Ht=r;var L=0;do{if(Il&&(Uo=null),qc=0,Il=!1,25<=L)throw Error(d(301));if(L+=1,xa=In=null,r.updateQueue!=null){var F=r.updateQueue;F.lastEffect=null,F.events=null,F.stores=null,F.memoCache!=null&&(F.memoCache.index=0)}de.H=dy,F=f(y,A)}while(Il);return F}function n1(){var r=de.H,f=r.useState()[0];return f=typeof f.then=="function"?wl(f):f,r=r.useState()[0],(In!==null?In.memoizedState:null)!==r&&(Ht.flags|=1024),f}function Xh(){var r=bd!==0;return bd=0,r}function Ol(r,f,y){f.updateQueue=r.updateQueue,f.flags&=-2053,r.lanes&=~y}function Ed(r){if(Dl){for(r=r.memoizedState;r!==null;){var f=r.queue;f!==null&&(f.pending=null),r=r.next}Dl=!1}cs=0,xa=In=Ht=null,Il=!1,qc=bd=0,Uo=null}function ar(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xa===null?Ht.memoizedState=xa=r:xa=xa.next=r,xa}function pa(){if(In===null){var r=Ht.alternate;r=r!==null?r.memoizedState:null}else r=In.next;var f=xa===null?Ht.memoizedState:xa.next;if(f!==null)xa=f,In=r;else{if(r===null)throw Ht.alternate===null?Error(d(467)):Error(d(310));In=r,r={memoizedState:In.memoizedState,baseState:In.baseState,baseQueue:In.baseQueue,queue:In.queue,next:null},xa===null?Ht.memoizedState=xa=r:xa=xa.next=r}return xa}function xd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function wl(r){var f=qc;return qc+=1,Uo===null&&(Uo=[]),r=qm(Uo,r,f),f=Ht,(xa===null?f.memoizedState:xa.next)===null&&(f=f.alternate,de.H=f===null||f.memoizedState===null?fy:op),r}function Gc(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return wl(r);if(r.$$typeof===te)return nt(r)}throw Error(d(438,String(r)))}function Zh(r){var f=null,y=Ht.updateQueue;if(y!==null&&(f=y.memoCache),f==null){var A=Ht.alternate;A!==null&&(A=A.updateQueue,A!==null&&(A=A.memoCache,A!=null&&(f={data:A.data.map(function(L){return L.slice()}),index:0})))}if(f==null&&(f={data:[],index:0}),y===null&&(y=xd(),Ht.updateQueue=y),y.memoCache=f,y=f.data[f.index],y===void 0)for(y=f.data[f.index]=Array(r),A=0;A<r;A++)y[A]=me;return f.index++,y}function fs(r,f){return typeof f=="function"?f(r):f}function ds(r){var f=pa();return $h(f,In,r)}function $h(r,f,y){var A=r.queue;if(A===null)throw Error(d(311));A.lastRenderedReducer=y;var L=r.baseQueue,F=A.pending;if(F!==null){if(L!==null){var X=L.next;L.next=F.next,F.next=X}f.baseQueue=L=F,A.pending=null}if(F=r.baseState,L===null)r.memoizedState=F;else{f=L.next;var ie=X=null,_e=null,qe=f,Qe=!1;do{var tt=qe.lane&-536870913;if(tt!==qe.lane?(nn&tt)===tt:(cs&tt)===tt){var ze=qe.revertLane;if(ze===0)_e!==null&&(_e=_e.next={lane:0,revertLane:0,gesture:null,action:qe.action,hasEagerState:qe.hasEagerState,eagerState:qe.eagerState,next:null}),tt===Mo&&(Qe=!0);else if((cs&ze)===ze){qe=qe.next,ze===Mo&&(Qe=!0);continue}else tt={lane:0,revertLane:qe.revertLane,gesture:null,action:qe.action,hasEagerState:qe.hasEagerState,eagerState:qe.eagerState,next:null},_e===null?(ie=_e=tt,X=F):_e=_e.next=tt,Ht.lanes|=ze,ku|=ze;tt=qe.action,so&&y(F,tt),F=qe.hasEagerState?qe.eagerState:y(F,tt)}else ze={lane:tt,revertLane:qe.revertLane,gesture:qe.gesture,action:qe.action,hasEagerState:qe.hasEagerState,eagerState:qe.eagerState,next:null},_e===null?(ie=_e=ze,X=F):_e=_e.next=ze,Ht.lanes|=tt,ku|=tt;qe=qe.next}while(qe!==null&&qe!==f);if(_e===null?X=F:_e.next=ie,!er(F,r.memoizedState)&&(Sa=!0,Qe&&(y=Ma,y!==null)))throw y;r.memoizedState=F,r.baseState=X,r.baseQueue=_e,A.lastRenderedState=F}return L===null&&(A.lanes=0),[r.memoizedState,A.dispatch]}function Jh(r){var f=pa(),y=f.queue;if(y===null)throw Error(d(311));y.lastRenderedReducer=r;var A=y.dispatch,L=y.pending,F=f.memoizedState;if(L!==null){y.pending=null;var X=L=L.next;do F=r(F,X.action),X=X.next;while(X!==L);er(F,f.memoizedState)||(Sa=!0),f.memoizedState=F,f.baseQueue===null&&(f.baseState=F),y.lastRenderedState=F}return[F,A]}function Um(r,f,y){var A=Ht,L=pa(),F=cn;if(F){if(y===void 0)throw Error(d(407));y=y()}else y=f();var X=!er((In||L).memoizedState,y);if(X&&(L.memoizedState=y,Sa=!0),L=L.queue,tp(Wh.bind(null,A,L,r),[r]),L.getSnapshot!==f||X||xa!==null&&xa.memoizedState.tag&1){if(A.flags|=2048,Ll(9,{destroy:void 0},Vm.bind(null,A,L,y,f),null),Mn===null)throw Error(d(349));F||(cs&127)!==0||Sd(A,f,y)}return y}function Sd(r,f,y){r.flags|=16384,r={getSnapshot:f,value:y},f=Ht.updateQueue,f===null?(f=xd(),Ht.updateQueue=f,f.stores=[r]):(y=f.stores,y===null?f.stores=[r]:y.push(r))}function Vm(r,f,y,A){f.value=y,f.getSnapshot=A,Qh(f)&&Kh(r)}function Wh(r,f,y){return y(function(){Qh(f)&&Kh(r)})}function Qh(r){var f=r.getSnapshot;r=r.value;try{var y=f();return!er(r,y)}catch{return!0}}function Kh(r){var f=su(r,2);f!==null&&ii(f,r,2)}function Hm(r){var f=ar();if(typeof r=="function"){var y=r;if(r=y(),so){bt(!0);try{y()}finally{bt(!1)}}}return f.memoizedState=f.baseState=r,f.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fs,lastRenderedState:r},f}function rr(r,f,y,A){return r.baseState=y,$h(r,In,typeof A=="function"?A:fs)}function iy(r,f,y,A,L){if(Dd(r))throw Error(d(485));if(r=f.action,r!==null){var F={payload:L,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(X){F.listeners.push(X)}};de.T!==null?y(!0):F.isTransition=!1,A(F),y=f.pending,y===null?(F.next=f.pending=F,Ym(f,F)):(F.next=y.next,f.pending=y.next=F)}}function Ym(r,f){var y=f.action,A=f.payload,L=r.state;if(f.isTransition){var F=de.T,X={};de.T=X;try{var ie=y(L,A),_e=de.S;_e!==null&&_e(X,ie),Xm(r,f,ie)}catch(qe){Nl(r,f,qe)}finally{F!==null&&X.types!==null&&(F.types=X.types),de.T=F}}else try{F=y(L,A),Xm(r,f,F)}catch(qe){Nl(r,f,qe)}}function Xm(r,f,y){y!==null&&typeof y=="object"&&typeof y.then=="function"?y.then(function(A){Zm(r,f,A)},function(A){return Nl(r,f,A)}):Zm(r,f,y)}function Zm(r,f,y){f.status="fulfilled",f.value=y,$m(f),r.state=y,f=r.pending,f!==null&&(y=f.next,y===f?r.pending=null:(y=y.next,f.next=y,Ym(r,y)))}function Nl(r,f,y){var A=r.pending;if(r.pending=null,A!==null){A=A.next;do f.status="rejected",f.reason=y,$m(f),f=f.next;while(f!==A)}r.action=null}function $m(r){r=r.listeners;for(var f=0;f<r.length;f++)(0,r[f])()}function Cd(r,f){return f}function Jm(r,f){if(cn){var y=Mn.formState;if(y!==null){e:{var A=Ht;if(cn){if(Pn){t:{for(var L=Pn,F=Pa;L.nodeType!==8;){if(!F){L=null;break t}if(L=ui(L.nextSibling),L===null){L=null;break t}}F=L.data,L=F==="F!"||F==="F"?L:null}if(L){Pn=ui(L.nextSibling),A=L.data==="F!";break e}}lu(A)}A=!1}A&&(f=y[0])}}return y=ar(),y.memoizedState=y.baseState=f,A={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cd,lastRenderedState:f},y.queue=A,y=up.bind(null,Ht,A),A.dispatch=y,A=Hm(!1),F=Vo.bind(null,Ht,!1,A.queue),A=ar(),L={state:f,dispatch:null,action:r,pending:null},A.queue=L,y=iy.bind(null,Ht,L,F,y),L.dispatch=y,A.memoizedState=r,[f,y,!1]}function uy(r){var f=pa();return Ad(f,In,r)}function Ad(r,f,y){if(f=$h(r,f,Cd)[0],r=ds(fs)[0],typeof f=="object"&&f!==null&&typeof f.then=="function")try{var A=wl(f)}catch(X){throw X===ko?Mc:X}else A=f;f=pa();var L=f.queue,F=L.dispatch;return y!==f.memoizedState&&(Ht.flags|=2048,Ll(9,{destroy:void 0},Wm.bind(null,L,y),null)),[A,F,r]}function Wm(r,f){r.action=f}function Qm(r){var f=pa(),y=In;if(y!==null)return Ad(f,y,r);pa(),f=f.memoizedState,y=pa();var A=y.queue.dispatch;return y.memoizedState=r,[f,A,!1]}function Ll(r,f,y,A){return r={tag:r,create:y,deps:A,inst:f,next:null},f=Ht.updateQueue,f===null&&(f=xd(),Ht.updateQueue=f),y=f.lastEffect,y===null?f.lastEffect=r.next=r:(A=y.next,y.next=r,r.next=A,f.lastEffect=r),r}function Km(){return pa().memoizedState}function zc(r,f,y,A){var L=ar();Ht.flags|=r,L.memoizedState=Ll(1|f,{destroy:void 0},y,A===void 0?null:A)}function Pc(r,f,y,A){var L=pa();A=A===void 0?null:A;var F=L.memoizedState.inst;In!==null&&A!==null&&oo(A,In.memoizedState.deps)?L.memoizedState=Ll(f,F,y,A):(Ht.flags|=r,L.memoizedState=Ll(1|f,F,y,A))}function ep(r,f){zc(8390656,8,r,f)}function tp(r,f){Pc(2048,8,r,f)}function e0(r){Ht.flags|=4;var f=Ht.updateQueue;if(f===null)f=xd(),Ht.updateQueue=f,f.events=[r];else{var y=f.events;y===null?f.events=[r]:y.push(r)}}function Rd(r){var f=pa().memoizedState;return e0({ref:f,nextImpl:r}),function(){if((Sn&2)!==0)throw Error(d(440));return f.impl.apply(void 0,arguments)}}function np(r,f){return Pc(4,2,r,f)}function t0(r,f){return Pc(4,4,r,f)}function ap(r,f){if(typeof f=="function"){r=r();var y=f(r);return function(){typeof y=="function"?y():f(null)}}if(f!=null)return r=r(),f.current=r,function(){f.current=null}}function n0(r,f,y){y=y!=null?y.concat([r]):null,Pc(4,4,ap.bind(null,f,r),y)}function Ou(){}function rp(r,f){var y=pa();f=f===void 0?null:f;var A=y.memoizedState;return f!==null&&oo(f,A[1])?A[0]:(y.memoizedState=[r,f],r)}function sy(r,f){var y=pa();f=f===void 0?null:f;var A=y.memoizedState;if(f!==null&&oo(f,A[1]))return A[0];if(A=r(),so){bt(!0);try{r()}finally{bt(!1)}}return y.memoizedState=[A,f],A}function Td(r,f,y){return y===void 0||(cs&1073741824)!==0&&(nn&261930)===0?r.memoizedState=f:(r.memoizedState=y,r=xy(),Ht.lanes|=r,ku|=r,y)}function hs(r,f,y,A){return er(y,f)?y:Ua.current!==null?(r=Td(r,y,A),er(r,f)||(Sa=!0),r):(cs&42)===0||(cs&1073741824)!==0&&(nn&261930)===0?(Sa=!0,r.memoizedState=y):(r=xy(),Ht.lanes|=r,ku|=r,f)}function ip(r,f,y,A,L){var F=Ce.p;Ce.p=F!==0&&8>F?F:8;var X=de.T,ie={};de.T=ie,Vo(r,!1,f,y);try{var _e=L(),qe=de.S;if(qe!==null&&qe(ie,_e),_e!==null&&typeof _e=="object"&&typeof _e.then=="function"){var Qe=pd(_e,A);lo(r,f,Qe,Si(r))}else lo(r,f,A,Si(r))}catch(tt){lo(r,f,{then:function(){},status:"rejected",reason:tt},Si())}finally{Ce.p=F,X!==null&&ie.types!==null&&(X.types=ie.types),de.T=X}}function oy(){}function Uc(r,f,y,A){if(r.tag!==5)throw Error(d(476));var L=Vc(r).queue;ip(r,L,f,ke,y===null?oy:function(){return Ln(r),y(A)})}function Vc(r){var f=r.memoizedState;if(f!==null)return f;f={memoizedState:ke,baseState:ke,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fs,lastRenderedState:ke},next:null};var y={};return f.next={memoizedState:y,baseState:y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fs,lastRenderedState:y},next:null},r.memoizedState=f,r=r.alternate,r!==null&&(r.memoizedState=f),f}function Ln(r){var f=Vc(r);f.next===null&&(f=r.alternate.memoizedState),lo(r,f.next.queue,{},Si())}function a0(){return nt(nh)}function ly(){return pa().memoizedState}function r0(){return pa().memoizedState}function ps(r){for(var f=r.return;f!==null;){switch(f.tag){case 24:case 3:var y=Si();r=uo(y);var A=Gi(f,r,y);A!==null&&(ii(A,f,y),Go(A,f,y)),f={cache:cd()},r.payload=f;return}f=f.return}}function cy(r,f,y){var A=Si();y={lane:A,revertLane:0,gesture:null,action:y,hasEagerState:!1,eagerState:null,next:null},Dd(r)?sp(f,y):(y=Zr(r,f,y,A),y!==null&&(ii(y,r,A),i0(y,f,A)))}function up(r,f,y){var A=Si();lo(r,f,y,A)}function lo(r,f,y,A){var L={lane:A,revertLane:0,gesture:null,action:y,hasEagerState:!1,eagerState:null,next:null};if(Dd(r))sp(f,L);else{var F=r.alternate;if(r.lanes===0&&(F===null||F.lanes===0)&&(F=f.lastRenderedReducer,F!==null))try{var X=f.lastRenderedState,ie=F(X,y);if(L.hasEagerState=!0,L.eagerState=ie,er(ie,X))return Lr(r,f,L,0),Mn===null&&Nr(),!1}catch{}if(y=Zr(r,f,L,A),y!==null)return ii(y,r,A),i0(y,f,A),!0}return!1}function Vo(r,f,y,A){if(A={lane:2,revertLane:Lp(),gesture:null,action:A,hasEagerState:!1,eagerState:null,next:null},Dd(r)){if(f)throw Error(d(479))}else f=Zr(r,y,A,2),f!==null&&ii(f,r,2)}function Dd(r){var f=r.alternate;return r===Ht||f!==null&&f===Ht}function sp(r,f){Il=Dl=!0;var y=r.pending;y===null?f.next=f:(f.next=y.next,y.next=f),r.pending=f}function i0(r,f,y){if((y&4194048)!==0){var A=f.lanes;A&=r.pendingLanes,y|=A,f.lanes=y,tn(r,y)}}var Id={readContext:nt,use:Gc,useCallback:oa,useContext:oa,useEffect:oa,useImperativeHandle:oa,useLayoutEffect:oa,useInsertionEffect:oa,useMemo:oa,useReducer:oa,useRef:oa,useState:oa,useDebugValue:oa,useDeferredValue:oa,useTransition:oa,useSyncExternalStore:oa,useId:oa,useHostTransitionStatus:oa,useFormState:oa,useActionState:oa,useOptimistic:oa,useMemoCache:oa,useCacheRefresh:oa};Id.useEffectEvent=oa;var fy={readContext:nt,use:Gc,useCallback:function(r,f){return ar().memoizedState=[r,f===void 0?null:f],r},useContext:nt,useEffect:ep,useImperativeHandle:function(r,f,y){y=y!=null?y.concat([r]):null,zc(4194308,4,ap.bind(null,f,r),y)},useLayoutEffect:function(r,f){return zc(4194308,4,r,f)},useInsertionEffect:function(r,f){zc(4,2,r,f)},useMemo:function(r,f){var y=ar();f=f===void 0?null:f;var A=r();if(so){bt(!0);try{r()}finally{bt(!1)}}return y.memoizedState=[A,f],A},useReducer:function(r,f,y){var A=ar();if(y!==void 0){var L=y(f);if(so){bt(!0);try{y(f)}finally{bt(!1)}}}else L=f;return A.memoizedState=A.baseState=L,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:L},A.queue=r,r=r.dispatch=cy.bind(null,Ht,r),[A.memoizedState,r]},useRef:function(r){var f=ar();return r={current:r},f.memoizedState=r},useState:function(r){r=Hm(r);var f=r.queue,y=up.bind(null,Ht,f);return f.dispatch=y,[r.memoizedState,y]},useDebugValue:Ou,useDeferredValue:function(r,f){var y=ar();return Td(y,r,f)},useTransition:function(){var r=Hm(!1);return r=ip.bind(null,Ht,r.queue,!0,!1),ar().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,f,y){var A=Ht,L=ar();if(cn){if(y===void 0)throw Error(d(407));y=y()}else{if(y=f(),Mn===null)throw Error(d(349));(nn&127)!==0||Sd(A,f,y)}L.memoizedState=y;var F={value:y,getSnapshot:f};return L.queue=F,ep(Wh.bind(null,A,F,r),[r]),A.flags|=2048,Ll(9,{destroy:void 0},Vm.bind(null,A,F,y,f),null),y},useId:function(){var r=ar(),f=Mn.identifierPrefix;if(cn){var y=Ru,A=bi;y=(A&~(1<<32-$n(A)-1)).toString(32)+y,f="_"+f+"R_"+y,y=bd++,0<y&&(f+="H"+y.toString(32)),f+="_"}else y=ay++,f="_"+f+"r_"+y.toString(32)+"_";return r.memoizedState=f},useHostTransitionStatus:a0,useFormState:Jm,useActionState:Jm,useOptimistic:function(r){var f=ar();f.memoizedState=f.baseState=r;var y={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return f.queue=y,f=Vo.bind(null,Ht,!0,y),y.dispatch=f,[r,f]},useMemoCache:Zh,useCacheRefresh:function(){return ar().memoizedState=ps.bind(null,Ht)},useEffectEvent:function(r){var f=ar(),y={impl:r};return f.memoizedState=y,function(){if((Sn&2)!==0)throw Error(d(440));return y.impl.apply(void 0,arguments)}}},op={readContext:nt,use:Gc,useCallback:rp,useContext:nt,useEffect:tp,useImperativeHandle:n0,useInsertionEffect:np,useLayoutEffect:t0,useMemo:sy,useReducer:ds,useRef:Km,useState:function(){return ds(fs)},useDebugValue:Ou,useDeferredValue:function(r,f){var y=pa();return hs(y,In.memoizedState,r,f)},useTransition:function(){var r=ds(fs)[0],f=pa().memoizedState;return[typeof r=="boolean"?r:wl(r),f]},useSyncExternalStore:Um,useId:ly,useHostTransitionStatus:a0,useFormState:uy,useActionState:uy,useOptimistic:function(r,f){var y=pa();return rr(y,In,r,f)},useMemoCache:Zh,useCacheRefresh:r0};op.useEffectEvent=Rd;var dy={readContext:nt,use:Gc,useCallback:rp,useContext:nt,useEffect:tp,useImperativeHandle:n0,useInsertionEffect:np,useLayoutEffect:t0,useMemo:sy,useReducer:Jh,useRef:Km,useState:function(){return Jh(fs)},useDebugValue:Ou,useDeferredValue:function(r,f){var y=pa();return In===null?Td(y,r,f):hs(y,In.memoizedState,r,f)},useTransition:function(){var r=Jh(fs)[0],f=pa().memoizedState;return[typeof r=="boolean"?r:wl(r),f]},useSyncExternalStore:Um,useId:ly,useHostTransitionStatus:a0,useFormState:Qm,useActionState:Qm,useOptimistic:function(r,f){var y=pa();return In!==null?rr(y,In,r,f):(y.baseState=r,[r,y.queue.dispatch])},useMemoCache:Zh,useCacheRefresh:r0};dy.useEffectEvent=Rd;function Ml(r,f,y,A){f=r.memoizedState,y=y(A,f),y=y==null?f:k({},f,y),r.memoizedState=y,r.lanes===0&&(r.updateQueue.baseState=y)}var cu={enqueueSetState:function(r,f,y){r=r._reactInternals;var A=Si(),L=uo(A);L.payload=f,y!=null&&(L.callback=y),f=Gi(r,L,A),f!==null&&(ii(f,r,A),Go(f,r,A))},enqueueReplaceState:function(r,f,y){r=r._reactInternals;var A=Si(),L=uo(A);L.tag=1,L.payload=f,y!=null&&(L.callback=y),f=Gi(r,L,A),f!==null&&(ii(f,r,A),Go(f,r,A))},enqueueForceUpdate:function(r,f){r=r._reactInternals;var y=Si(),A=uo(y);A.tag=2,f!=null&&(A.callback=f),f=Gi(r,A,y),f!==null&&(ii(f,r,y),Go(f,r,y))}};function u0(r,f,y,A,L,F,X){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(A,F,X):f.prototype&&f.prototype.isPureReactComponent?!yi(y,A)||!yi(L,F):!0}function hy(r,f,y,A){r=f.state,typeof f.componentWillReceiveProps=="function"&&f.componentWillReceiveProps(y,A),typeof f.UNSAFE_componentWillReceiveProps=="function"&&f.UNSAFE_componentWillReceiveProps(y,A),f.state!==r&&cu.enqueueReplaceState(f,f.state,null)}function Ho(r,f){var y=f;if("ref"in f){y={};for(var A in f)A!=="ref"&&(y[A]=f[A])}if(r=r.defaultProps){y===f&&(y=k({},y));for(var L in r)y[L]===void 0&&(y[L]=r[L])}return y}function lp(r){Yr(r)}function s0(r){console.error(r)}function cp(r){Yr(r)}function Hc(r,f){try{var y=r.onUncaughtError;y(f.value,{componentStack:f.stack})}catch(A){setTimeout(function(){throw A})}}function Od(r,f,y){try{var A=r.onCaughtError;A(y.value,{componentStack:y.stack,errorBoundary:f.tag===1?f.stateNode:null})}catch(L){setTimeout(function(){throw L})}}function o0(r,f,y){return y=uo(y),y.tag=3,y.payload={element:null},y.callback=function(){Hc(r,f)},y}function l0(r){return r=uo(r),r.tag=3,r}function c0(r,f,y,A){var L=y.type.getDerivedStateFromError;if(typeof L=="function"){var F=A.value;r.payload=function(){return L(F)},r.callback=function(){Od(f,y,A)}}var X=y.stateNode;X!==null&&typeof X.componentDidCatch=="function"&&(r.callback=function(){Od(f,y,A),typeof L!="function"&&(Kn===null?Kn=new Set([this]):Kn.add(this));var ie=A.stack;this.componentDidCatch(A.value,{componentStack:ie!==null?ie:""})})}function a1(r,f,y,A,L){if(y.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){if(f=y.alternate,f!==null&&nr(f,y,L,!0),y=Qr.current,y!==null){switch(y.tag){case 31:case 13:return zi===null?Ip():y.alternate===null&&Vn===0&&(Vn=3),y.flags&=-257,y.flags|=65536,y.lanes=L,A===Al?y.flags|=16384:(f=y.updateQueue,f===null?y.updateQueue=new Set([A]):f.add(A),Vd(r,A,L)),!1;case 22:return y.flags|=65536,A===Al?y.flags|=16384:(f=y.updateQueue,f===null?(f={transitions:null,markerInstances:null,retryQueue:new Set([A])},y.updateQueue=f):(y=f.retryQueue,y===null?f.retryQueue=new Set([A]):y.add(A)),Vd(r,A,L)),!1}throw Error(d(435,y.tag))}return Vd(r,A,L),Ip(),!1}if(cn)return f=Qr.current,f!==null?((f.flags&65536)===0&&(f.flags|=256),f.flags|=65536,f.lanes=L,A!==is&&(r=Error(d(422),{cause:A}),Nc(Bi(r,y)))):(A!==is&&(f=Error(d(423),{cause:A}),Nc(Bi(f,y))),r=r.current.alternate,r.flags|=65536,L&=-L,r.lanes|=L,A=Bi(A,y),L=o0(r.stateNode,A,L),Uh(r,L),Vn!==4&&(Vn=2)),!1;var F=Error(d(520),{cause:A});if(F=Bi(F,y),Gd===null?Gd=[F]:Gd.push(F),Vn!==4&&(Vn=2),f===null)return!0;A=Bi(A,y),y=f;do{switch(y.tag){case 3:return y.flags|=65536,r=L&-L,y.lanes|=r,r=o0(y.stateNode,A,r),Uh(y,r),!1;case 1:if(f=y.type,F=y.stateNode,(y.flags&128)===0&&(typeof f.getDerivedStateFromError=="function"||F!==null&&typeof F.componentDidCatch=="function"&&(Kn===null||!Kn.has(F))))return y.flags|=65536,L&=-L,y.lanes|=L,L=l0(L),c0(L,r,y,A),Uh(y,L),!1}y=y.return}while(y!==null);return!1}var fp=Error(d(461)),Sa=!1;function Xn(r,f,y,A){f.child=r===null?zm(f,null,y,A):qo(f,r.child,y,A)}function f0(r,f,y,A,L){y=y.render;var F=f.ref;if("ref"in A){var X={};for(var ie in A)ie!=="ref"&&(X[ie]=A[ie])}else X=A;return jt(f),A=_d(r,f,y,X,F,L),ie=Xh(),r!==null&&!Sa?(Ol(r,f,L),Vi(r,f,L)):(cn&&ie&&Oc(f),f.flags|=1,Xn(r,f,A,L),f.child)}function d0(r,f,y,A,L){if(r===null){var F=y.type;return typeof F=="function"&&!bl(F)&&F.defaultProps===void 0&&y.compare===null?(f.tag=15,f.type=F,h0(r,f,F,A,L)):(r=Bh(y.type,null,A,f,f.mode,L),r.ref=f.ref,r.return=f,f.child=r)}if(F=r.child,!pp(r,L)){var X=F.memoizedProps;if(y=y.compare,y=y!==null?y:yi,y(X,A)&&r.ref===f.ref)return Vi(r,f,L)}return f.flags|=1,r=eo(F,A),r.ref=f.ref,r.return=f,f.child=r}function h0(r,f,y,A,L){if(r!==null){var F=r.memoizedProps;if(yi(F,A)&&r.ref===f.ref)if(Sa=!1,f.pendingProps=A=F,pp(r,L))(r.flags&131072)!==0&&(Sa=!0);else return f.lanes=r.lanes,Vi(r,f,L)}return dp(r,f,y,A,L)}function py(r,f,y,A){var L=A.children,F=r!==null?r.memoizedState:null;if(r===null&&f.stateNode===null&&(f.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),A.mode==="hidden"){if((f.flags&128)!==0){if(F=F!==null?F.baseLanes|y:y,r!==null){for(A=f.child=r.child,L=0;A!==null;)L=L|A.lanes|A.childLanes,A=A.sibling;A=L&~F}else A=0,f.child=null;return ei(r,f,F,y,A)}if((y&536870912)!==0)f.memoizedState={baseLanes:0,cachePool:null},r!==null&&Lc(f,F!==null?F.cachePool:null),F!==null?ny(f,F):vd(),Hh(f);else return A=f.lanes=536870912,ei(r,f,F!==null?F.baseLanes|y:y,y,A)}else F!==null?(Lc(f,F.cachePool),ny(f,F),Iu(),f.memoizedState=null):(r!==null&&Lc(f,null),vd(),Iu());return Xn(r,f,L,y),f.child}function Yo(r,f){return r!==null&&r.tag===22||f.stateNode!==null||(f.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),f.sibling}function ei(r,f,y,A,L){var F=qi();return F=F===null?null:{parent:Ea._currentValue,pool:F},f.memoizedState={baseLanes:y,cachePool:F},r!==null&&Lc(f,null),vd(),Hh(f),r!==null&&nr(r,f,A,!0),f.childLanes=L,null}function wd(r,f){return f=Md({mode:f.mode,children:f.children},r.mode),f.ref=r.ref,r.child=f,f.return=r,f}function ti(r,f,y){return qo(f,r.child,null,y),r=wd(f,f.pendingProps),r.flags|=2,Kr(f),f.memoizedState=null,r}function my(r,f,y){var A=f.pendingProps,L=(f.flags&128)!==0;if(f.flags&=-129,r===null){if(cn){if(A.mode==="hidden")return r=wd(f,A),f.lanes=536870912,Yo(null,r);if(jc(f),(r=Pn)?(r=Jy(r,Pa),r=r!==null&&r.data==="&"?r:null,r!==null&&(f.memoizedState={dehydrated:r,treeContext:Au!==null?{id:bi,overflow:Ru}:null,retryLane:536870912,hydrationErrors:null},y=Nm(r),y.return=f,f.child=y,tr=f,Pn=null)):r=null,r===null)throw lu(f);return f.lanes=536870912,null}return wd(f,A)}var F=r.memoizedState;if(F!==null){var X=F.dehydrated;if(jc(f),L)if(f.flags&256)f.flags&=-257,f=ti(r,f,y);else if(f.memoizedState!==null)f.child=r.child,f.flags|=128,f=null;else throw Error(d(558));else if(Sa||nr(r,f,y,!1),L=(y&r.childLanes)!==0,Sa||L){if(A=Mn,A!==null&&(X=gn(A,y),X!==0&&X!==F.retryLane))throw F.retryLane=X,su(r,X),ii(A,r,X),fp;Ip(),f=ti(r,f,y)}else r=F.treeContext,Pn=ui(X.nextSibling),tr=f,cn=!0,rs=null,Pa=!1,r!==null&&sd(f,r),f=wd(f,A),f.flags|=4096;return f}return r=eo(r.child,{mode:A.mode,children:A.children}),r.ref=f.ref,f.child=r,r.return=f,r}function Pi(r,f){var y=f.ref;if(y===null)r!==null&&r.ref!==null&&(f.flags|=4194816);else{if(typeof y!="function"&&typeof y!="object")throw Error(d(284));(r===null||r.ref!==y)&&(f.flags|=4194816)}}function dp(r,f,y,A,L){return jt(f),y=_d(r,f,y,A,void 0,L),A=Xh(),r!==null&&!Sa?(Ol(r,f,L),Vi(r,f,L)):(cn&&A&&Oc(f),f.flags|=1,Xn(r,f,y,L),f.child)}function Xo(r,f,y,A,L,F){return jt(f),f.updateQueue=null,y=ry(f,A,y,L),Yh(r),A=Xh(),r!==null&&!Sa?(Ol(r,f,F),Vi(r,f,F)):(cn&&A&&Oc(f),f.flags|=1,Xn(r,f,y,F),f.child)}function p0(r,f,y,A,L){if(jt(f),f.stateNode===null){var F=$r,X=y.contextType;typeof X=="object"&&X!==null&&(F=nt(X)),F=new y(A,F),f.memoizedState=F.state!==null&&F.state!==void 0?F.state:null,F.updater=cu,f.stateNode=F,F._reactInternals=f,F=f.stateNode,F.props=A,F.state=f.memoizedState,F.refs={},yd(f),X=y.contextType,F.context=typeof X=="object"&&X!==null?nt(X):$r,F.state=f.memoizedState,X=y.getDerivedStateFromProps,typeof X=="function"&&(Ml(f,y,X,A),F.state=f.memoizedState),typeof y.getDerivedStateFromProps=="function"||typeof F.getSnapshotBeforeUpdate=="function"||typeof F.UNSAFE_componentWillMount!="function"&&typeof F.componentWillMount!="function"||(X=F.state,typeof F.componentWillMount=="function"&&F.componentWillMount(),typeof F.UNSAFE_componentWillMount=="function"&&F.UNSAFE_componentWillMount(),X!==F.state&&cu.enqueueReplaceState(F,F.state,null),os(f,A,F,L),zo(),F.state=f.memoizedState),typeof F.componentDidMount=="function"&&(f.flags|=4194308),A=!0}else if(r===null){F=f.stateNode;var ie=f.memoizedProps,_e=Ho(y,ie);F.props=_e;var qe=F.context,Qe=y.contextType;X=$r,typeof Qe=="object"&&Qe!==null&&(X=nt(Qe));var tt=y.getDerivedStateFromProps;Qe=typeof tt=="function"||typeof F.getSnapshotBeforeUpdate=="function",ie=f.pendingProps!==ie,Qe||typeof F.UNSAFE_componentWillReceiveProps!="function"&&typeof F.componentWillReceiveProps!="function"||(ie||qe!==X)&&hy(f,F,A,X),io=!1;var ze=f.memoizedState;F.state=ze,os(f,A,F,L),zo(),qe=f.memoizedState,ie||ze!==qe||io?(typeof tt=="function"&&(Ml(f,y,tt,A),qe=f.memoizedState),(_e=io||u0(f,y,_e,A,ze,qe,X))?(Qe||typeof F.UNSAFE_componentWillMount!="function"&&typeof F.componentWillMount!="function"||(typeof F.componentWillMount=="function"&&F.componentWillMount(),typeof F.UNSAFE_componentWillMount=="function"&&F.UNSAFE_componentWillMount()),typeof F.componentDidMount=="function"&&(f.flags|=4194308)):(typeof F.componentDidMount=="function"&&(f.flags|=4194308),f.memoizedProps=A,f.memoizedState=qe),F.props=A,F.state=qe,F.context=X,A=_e):(typeof F.componentDidMount=="function"&&(f.flags|=4194308),A=!1)}else{F=f.stateNode,Ph(r,f),X=f.memoizedProps,Qe=Ho(y,X),F.props=Qe,tt=f.pendingProps,ze=F.context,qe=y.contextType,_e=$r,typeof qe=="object"&&qe!==null&&(_e=nt(qe)),ie=y.getDerivedStateFromProps,(qe=typeof ie=="function"||typeof F.getSnapshotBeforeUpdate=="function")||typeof F.UNSAFE_componentWillReceiveProps!="function"&&typeof F.componentWillReceiveProps!="function"||(X!==tt||ze!==_e)&&hy(f,F,A,_e),io=!1,ze=f.memoizedState,F.state=ze,os(f,A,F,L),zo();var $e=f.memoizedState;X!==tt||ze!==$e||io||r!==null&&r.dependencies!==null&&El(r.dependencies)?(typeof ie=="function"&&(Ml(f,y,ie,A),$e=f.memoizedState),(Qe=io||u0(f,y,Qe,A,ze,$e,_e)||r!==null&&r.dependencies!==null&&El(r.dependencies))?(qe||typeof F.UNSAFE_componentWillUpdate!="function"&&typeof F.componentWillUpdate!="function"||(typeof F.componentWillUpdate=="function"&&F.componentWillUpdate(A,$e,_e),typeof F.UNSAFE_componentWillUpdate=="function"&&F.UNSAFE_componentWillUpdate(A,$e,_e)),typeof F.componentDidUpdate=="function"&&(f.flags|=4),typeof F.getSnapshotBeforeUpdate=="function"&&(f.flags|=1024)):(typeof F.componentDidUpdate!="function"||X===r.memoizedProps&&ze===r.memoizedState||(f.flags|=4),typeof F.getSnapshotBeforeUpdate!="function"||X===r.memoizedProps&&ze===r.memoizedState||(f.flags|=1024),f.memoizedProps=A,f.memoizedState=$e),F.props=A,F.state=$e,F.context=_e,A=Qe):(typeof F.componentDidUpdate!="function"||X===r.memoizedProps&&ze===r.memoizedState||(f.flags|=4),typeof F.getSnapshotBeforeUpdate!="function"||X===r.memoizedProps&&ze===r.memoizedState||(f.flags|=1024),A=!1)}return F=A,Pi(r,f),A=(f.flags&128)!==0,F||A?(F=f.stateNode,y=A&&typeof y.getDerivedStateFromError!="function"?null:F.render(),f.flags|=1,r!==null&&A?(f.child=qo(f,r.child,null,L),f.child=qo(f,null,y,L)):Xn(r,f,y,L),f.memoizedState=F.state,r=f.child):r=Vi(r,f,L),r}function wu(r,f,y,A){return Lo(),f.flags|=256,Xn(r,f,y,A),f.child}var Nd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ld(r){return{baseLanes:r,cachePool:Sl()}}function Ui(r,f,y){return r=r!==null?r.childLanes&~y:0,f&&(r|=ri),r}function m0(r,f,y){var A=f.pendingProps,L=!1,F=(f.flags&128)!==0,X;if((X=F)||(X=r!==null&&r.memoizedState===null?!1:(Qn.current&2)!==0),X&&(L=!0,f.flags&=-129),X=(f.flags&32)!==0,f.flags&=-33,r===null){if(cn){if(L?ls(f):Iu(),(r=Pn)?(r=Jy(r,Pa),r=r!==null&&r.data!=="&"?r:null,r!==null&&(f.memoizedState={dehydrated:r,treeContext:Au!==null?{id:bi,overflow:Ru}:null,retryLane:536870912,hydrationErrors:null},y=Nm(r),y.return=f,f.child=y,tr=f,Pn=null)):r=null,r===null)throw lu(f);return el(r)?f.lanes=32:f.lanes=536870912,null}var ie=A.children;return A=A.fallback,L?(Iu(),L=f.mode,ie=Md({mode:"hidden",children:ie},L),A=to(A,L,y,null),ie.return=f,A.return=f,ie.sibling=A,f.child=ie,A=f.child,A.memoizedState=Ld(y),A.childLanes=Ui(r,X,y),f.memoizedState=Nd,Yo(null,A)):(ls(f),Zo(f,ie))}var _e=r.memoizedState;if(_e!==null&&(ie=_e.dehydrated,ie!==null)){if(F)f.flags&256?(ls(f),f.flags&=-257,f=kl(r,f,y)):f.memoizedState!==null?(Iu(),f.child=r.child,f.flags|=128,f=null):(Iu(),ie=A.fallback,L=f.mode,A=Md({mode:"visible",children:A.children},L),ie=to(ie,L,y,null),ie.flags|=2,A.return=f,ie.return=f,A.sibling=ie,f.child=A,qo(f,r.child,null,y),A=f.child,A.memoizedState=Ld(y),A.childLanes=Ui(r,X,y),f.memoizedState=Nd,f=Yo(null,A));else if(ls(f),el(ie)){if(X=ie.nextSibling&&ie.nextSibling.dataset,X)var qe=X.dgst;X=qe,A=Error(d(419)),A.stack="",A.digest=X,Nc({value:A,source:null,stack:null}),f=kl(r,f,y)}else if(Sa||nr(r,f,y,!1),X=(y&r.childLanes)!==0,Sa||X){if(X=Mn,X!==null&&(A=gn(X,y),A!==0&&A!==_e.retryLane))throw _e.retryLane=A,su(r,A),ii(X,r,A),fp;hu(ie)||Ip(),f=kl(r,f,y)}else hu(ie)?(f.flags|=192,f.child=r.child,f=null):(r=_e.treeContext,Pn=ui(ie.nextSibling),tr=f,cn=!0,rs=null,Pa=!1,r!==null&&sd(f,r),f=Zo(f,A.children),f.flags|=4096);return f}return L?(Iu(),ie=A.fallback,L=f.mode,_e=r.child,qe=_e.sibling,A=eo(_e,{mode:"hidden",children:A.children}),A.subtreeFlags=_e.subtreeFlags&65011712,qe!==null?ie=eo(qe,ie):(ie=to(ie,L,y,null),ie.flags|=2),ie.return=f,A.return=f,A.sibling=ie,f.child=A,Yo(null,A),A=f.child,ie=r.child.memoizedState,ie===null?ie=Ld(y):(L=ie.cachePool,L!==null?(_e=Ea._currentValue,L=L.parent!==_e?{parent:_e,pool:_e}:L):L=Sl(),ie={baseLanes:ie.baseLanes|y,cachePool:L}),A.memoizedState=ie,A.childLanes=Ui(r,X,y),f.memoizedState=Nd,Yo(r.child,A)):(ls(f),y=r.child,r=y.sibling,y=eo(y,{mode:"visible",children:A.children}),y.return=f,y.sibling=null,r!==null&&(X=f.deletions,X===null?(f.deletions=[r],f.flags|=16):X.push(r)),f.child=y,f.memoizedState=null,y)}function Zo(r,f){return f=Md({mode:"visible",children:f},r.mode),f.return=r,r.child=f}function Md(r,f){return r=da(22,r,null,f),r.lanes=0,r}function kl(r,f,y){return qo(f,r.child,null,y),r=Zo(f,f.pendingProps.children),r.flags|=2,f.memoizedState=null,r}function Bl(r,f,y){r.lanes|=f;var A=r.alternate;A!==null&&(A.lanes|=f),Gh(r.return,f,y)}function hp(r,f,y,A,L,F){var X=r.memoizedState;X===null?r.memoizedState={isBackwards:f,rendering:null,renderingStartTime:0,last:A,tail:y,tailMode:L,treeForkCount:F}:(X.isBackwards=f,X.rendering=null,X.renderingStartTime=0,X.last=A,X.tail=y,X.tailMode=L,X.treeForkCount=F)}function g0(r,f,y){var A=f.pendingProps,L=A.revealOrder,F=A.tail;A=A.children;var X=Qn.current,ie=(X&2)!==0;if(ie?(X=X&1|2,f.flags|=128):X&=1,He(Qn,X),Xn(r,f,A,y),A=cn?ba:0,!ie&&r!==null&&(r.flags&128)!==0)e:for(r=f.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Bl(r,y,f);else if(r.tag===19)Bl(r,y,f);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===f)break e;for(;r.sibling===null;){if(r.return===null||r.return===f)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(L){case"forwards":for(y=f.child,L=null;y!==null;)r=y.alternate,r!==null&&Fc(r)===null&&(L=y),y=y.sibling;y=L,y===null?(L=f.child,f.child=null):(L=y.sibling,y.sibling=null),hp(f,!1,L,y,F,A);break;case"backwards":case"unstable_legacy-backwards":for(y=null,L=f.child,f.child=null;L!==null;){if(r=L.alternate,r!==null&&Fc(r)===null){f.child=L;break}r=L.sibling,L.sibling=y,y=L,L=r}hp(f,!0,y,null,F,A);break;case"together":hp(f,!1,null,null,void 0,A);break;default:f.memoizedState=null}return f.child}function Vi(r,f,y){if(r!==null&&(f.dependencies=r.dependencies),ku|=f.lanes,(y&f.childLanes)===0)if(r!==null){if(nr(r,f,y,!1),(y&f.childLanes)===0)return null}else return null;if(r!==null&&f.child!==r.child)throw Error(d(153));if(f.child!==null){for(r=f.child,y=eo(r,r.pendingProps),f.child=y,y.return=f;r.sibling!==null;)r=r.sibling,y=y.sibling=eo(r,r.pendingProps),y.return=f;y.sibling=null}return f.child}function pp(r,f){return(r.lanes&f)!==0?!0:(r=r.dependencies,!!(r!==null&&El(r)))}function mp(r,f,y){switch(f.tag){case 3:xe(f,f.stateNode.containerInfo),Wr(f,Ea,r.memoizedState.cache),Lo();break;case 27:case 5:st(f);break;case 4:xe(f,f.stateNode.containerInfo);break;case 10:Wr(f,f.type,f.memoizedProps.value);break;case 31:if(f.memoizedState!==null)return f.flags|=128,jc(f),null;break;case 13:var A=f.memoizedState;if(A!==null)return A.dehydrated!==null?(ls(f),f.flags|=128,null):(y&f.child.childLanes)!==0?m0(r,f,y):(ls(f),r=Vi(r,f,y),r!==null?r.sibling:null);ls(f);break;case 19:var L=(r.flags&128)!==0;if(A=(y&f.childLanes)!==0,A||(nr(r,f,y,!1),A=(y&f.childLanes)!==0),L){if(A)return g0(r,f,y);f.flags|=128}if(L=f.memoizedState,L!==null&&(L.rendering=null,L.tail=null,L.lastEffect=null),He(Qn,Qn.current),A)break;return null;case 22:return f.lanes=0,py(r,f,y,f.pendingProps);case 24:Wr(f,Ea,r.memoizedState.cache)}return Vi(r,f,y)}function v0(r,f,y){if(r!==null)if(r.memoizedProps!==f.pendingProps)Sa=!0;else{if(!pp(r,y)&&(f.flags&128)===0)return Sa=!1,mp(r,f,y);Sa=(r.flags&131072)!==0}else Sa=!1,cn&&(f.flags&1048576)!==0&&Mm(f,ba,f.index);switch(f.lanes=0,f.tag){case 16:e:{var A=f.pendingProps;if(r=Bo(f.elementType),f.type=r,typeof r=="function")bl(r)?(A=Ho(r,A),f.tag=1,f=p0(null,f,r,A,y)):(f.tag=0,f=dp(null,f,r,A,y));else{if(r!=null){var L=r.$$typeof;if(L===ue){f.tag=11,f=f0(null,f,r,A,y);break e}else if(L===pe){f.tag=14,f=d0(null,f,r,A,y);break e}}throw f=De(r)||r,Error(d(306,f,""))}}return f;case 0:return dp(r,f,f.type,f.pendingProps,y);case 1:return A=f.type,L=Ho(A,f.pendingProps),p0(r,f,A,L,y);case 3:e:{if(xe(f,f.stateNode.containerInfo),r===null)throw Error(d(387));A=f.pendingProps;var F=f.memoizedState;L=F.element,Ph(r,f),os(f,A,null,y);var X=f.memoizedState;if(A=X.cache,Wr(f,Ea,A),A!==F.cache&&ss(f,[Ea],y,!0),zo(),A=X.element,F.isDehydrated)if(F={element:A,isDehydrated:!1,cache:X.cache},f.updateQueue.baseState=F,f.memoizedState=F,f.flags&256){f=wu(r,f,A,y);break e}else if(A!==L){L=Bi(Error(d(424)),f),Nc(L),f=wu(r,f,A,y);break e}else for(r=f.stateNode.containerInfo,r.nodeType===9?r=r.body:r=r.nodeName==="HTML"?r.ownerDocument.body:r,Pn=ui(r.firstChild),tr=f,cn=!0,rs=null,Pa=!0,y=zm(f,null,A,y),f.child=y;y;)y.flags=y.flags&-3|4096,y=y.sibling;else{if(Lo(),A===L){f=Vi(r,f,y);break e}Xn(r,f,A,y)}f=f.child}return f;case 26:return Pi(r,f),r===null?(y=pf(f.type,null,f.pendingProps,null))?f.memoizedState=y:cn||(y=f.type,r=f.pendingProps,A=Ko(pt.current).createElement(y),A[hn]=f,A[yn]=r,xr(A,y,r),Vt(A),f.stateNode=A):f.memoizedState=pf(f.type,r.memoizedProps,f.pendingProps,r.memoizedState),null;case 27:return st(f),r===null&&cn&&(A=f.stateNode=df(f.type,f.pendingProps,pt.current),tr=f,Pa=!0,L=Pn,ju(f.type)?(Kd=L,Pn=ui(A.firstChild)):Pn=L),Xn(r,f,f.pendingProps.children,y),Pi(r,f),r===null&&(f.flags|=4194304),f.child;case 5:return r===null&&cn&&((L=A=Pn)&&(A=u1(A,f.type,f.pendingProps,Pa),A!==null?(f.stateNode=A,tr=f,Pn=ui(A.firstChild),Pa=!1,L=!0):L=!1),L||lu(f)),st(f),L=f.type,F=f.pendingProps,X=r!==null?r.memoizedProps:null,A=F.children,cf(L,F)?A=null:X!==null&&cf(L,X)&&(f.flags|=32),f.memoizedState!==null&&(L=_d(r,f,n1,null,null,y),nh._currentValue=L),Pi(r,f),Xn(r,f,A,y),f.child;case 6:return r===null&&cn&&((r=y=Pn)&&(y=Wt(y,f.pendingProps,Pa),y!==null?(f.stateNode=y,tr=f,Pn=null,r=!0):r=!1),r||lu(f)),null;case 13:return m0(r,f,y);case 4:return xe(f,f.stateNode.containerInfo),A=f.pendingProps,r===null?f.child=qo(f,null,A,y):Xn(r,f,A,y),f.child;case 11:return f0(r,f,f.type,f.pendingProps,y);case 7:return Xn(r,f,f.pendingProps,y),f.child;case 8:return Xn(r,f,f.pendingProps.children,y),f.child;case 12:return Xn(r,f,f.pendingProps.children,y),f.child;case 10:return A=f.pendingProps,Wr(f,f.type,A.value),Xn(r,f,A.children,y),f.child;case 9:return L=f.type._context,A=f.pendingProps.children,jt(f),L=nt(L),A=A(L),f.flags|=1,Xn(r,f,A,y),f.child;case 14:return d0(r,f,f.type,f.pendingProps,y);case 15:return h0(r,f,f.type,f.pendingProps,y);case 19:return g0(r,f,y);case 31:return my(r,f,y);case 22:return py(r,f,y,f.pendingProps);case 24:return jt(f),A=nt(Ea),r===null?(L=qi(),L===null&&(L=Mn,F=cd(),L.pooledCache=F,F.refCount++,F!==null&&(L.pooledCacheLanes|=y),L=F),f.memoizedState={parent:A,cache:L},yd(f),Wr(f,Ea,L)):((r.lanes&y)!==0&&(Ph(r,f),os(f,null,null,y),zo()),L=r.memoizedState,F=f.memoizedState,L.parent!==A?(L={parent:A,cache:A},f.memoizedState=L,f.lanes===0&&(f.memoizedState=f.updateQueue.baseState=L),Wr(f,Ea,A)):(A=F.cache,Wr(f,Ea,A),A!==L.cache&&ss(f,[Ea],y,!0))),Xn(r,f,f.pendingProps.children,y),f.child;case 29:throw f.pendingProps}throw Error(d(156,f.tag))}function ms(r){r.flags|=4}function b0(r,f,y,A,L){if((f=(r.mode&32)!==0)&&(f=!1),f){if(r.flags|=16777216,(L&335544128)===L)if(r.stateNode.complete)r.flags|=8192;else if(Ay())r.flags|=8192;else throw jo=Al,Cl}else r.flags&=-16777217}function _0(r,f){if(f.type!=="stylesheet"||(f.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!Ai(f))if(Ay())r.flags|=8192;else throw jo=Al,Cl}function Mr(r,f){f!==null&&(r.flags|=4),r.flags&16384&&(f=r.tag!==22?fe():536870912,r.lanes|=f,la|=f)}function Yc(r,f){if(!cn)switch(r.tailMode){case"hidden":f=r.tail;for(var y=null;f!==null;)f.alternate!==null&&(y=f),f=f.sibling;y===null?r.tail=null:y.sibling=null;break;case"collapsed":y=r.tail;for(var A=null;y!==null;)y.alternate!==null&&(A=y),y=y.sibling;A===null?f||r.tail===null?r.tail=null:r.tail.sibling=null:A.sibling=null}}function Bt(r){var f=r.alternate!==null&&r.alternate.child===r.child,y=0,A=0;if(f)for(var L=r.child;L!==null;)y|=L.lanes|L.childLanes,A|=L.subtreeFlags&65011712,A|=L.flags&65011712,L.return=r,L=L.sibling;else for(L=r.child;L!==null;)y|=L.lanes|L.childLanes,A|=L.subtreeFlags,A|=L.flags,L.return=r,L=L.sibling;return r.subtreeFlags|=A,r.childLanes=y,f}function gy(r,f,y){var A=f.pendingProps;switch(Fh(f),f.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bt(f),null;case 1:return Bt(f),null;case 3:return y=f.stateNode,A=null,r!==null&&(A=r.memoizedState.cache),f.memoizedState.cache!==A&&(f.flags|=2048),Du(Ea),Gt(),y.pendingContext&&(y.context=y.pendingContext,y.pendingContext=null),(r===null||r.child===null)&&(us(f)?ms(f):r===null||r.memoizedState.isDehydrated&&(f.flags&256)===0||(f.flags|=1024,km())),Bt(f),null;case 26:var L=f.type,F=f.memoizedState;return r===null?(ms(f),F!==null?(Bt(f),_0(f,F)):(Bt(f),b0(f,L,null,A,y))):F?F!==r.memoizedState?(ms(f),Bt(f),_0(f,F)):(Bt(f),f.flags&=-16777217):(r=r.memoizedProps,r!==A&&ms(f),Bt(f),b0(f,L,r,A,y)),null;case 27:if(Be(f),y=pt.current,L=f.type,r!==null&&f.stateNode!=null)r.memoizedProps!==A&&ms(f);else{if(!A){if(f.stateNode===null)throw Error(d(166));return Bt(f),null}r=Pe.current,us(f)?od(f):(r=df(L,A,y),f.stateNode=r,ms(f))}return Bt(f),null;case 5:if(Be(f),L=f.type,r!==null&&f.stateNode!=null)r.memoizedProps!==A&&ms(f);else{if(!A){if(f.stateNode===null)throw Error(d(166));return Bt(f),null}if(F=Pe.current,us(f))od(f);else{var X=Ko(pt.current);switch(F){case 1:F=X.createElementNS("http://www.w3.org/2000/svg",L);break;case 2:F=X.createElementNS("http://www.w3.org/1998/Math/MathML",L);break;default:switch(L){case"svg":F=X.createElementNS("http://www.w3.org/2000/svg",L);break;case"math":F=X.createElementNS("http://www.w3.org/1998/Math/MathML",L);break;case"script":F=X.createElement("div"),F.innerHTML="<script><\/script>",F=F.removeChild(F.firstChild);break;case"select":F=typeof A.is=="string"?X.createElement("select",{is:A.is}):X.createElement("select"),A.multiple?F.multiple=!0:A.size&&(F.size=A.size);break;default:F=typeof A.is=="string"?X.createElement(L,{is:A.is}):X.createElement(L)}}F[hn]=f,F[yn]=A;e:for(X=f.child;X!==null;){if(X.tag===5||X.tag===6)F.appendChild(X.stateNode);else if(X.tag!==4&&X.tag!==27&&X.child!==null){X.child.return=X,X=X.child;continue}if(X===f)break e;for(;X.sibling===null;){if(X.return===null||X.return===f)break e;X=X.return}X.sibling.return=X.return,X=X.sibling}f.stateNode=F;e:switch(xr(F,L,A),L){case"button":case"input":case"select":case"textarea":A=!!A.autoFocus;break e;case"img":A=!0;break e;default:A=!1}A&&ms(f)}}return Bt(f),b0(f,f.type,r===null?null:r.memoizedProps,f.pendingProps,y),null;case 6:if(r&&f.stateNode!=null)r.memoizedProps!==A&&ms(f);else{if(typeof A!="string"&&f.stateNode===null)throw Error(d(166));if(r=pt.current,us(f)){if(r=f.stateNode,y=f.memoizedProps,A=null,L=tr,L!==null)switch(L.tag){case 27:case 5:A=L.memoizedProps}r[hn]=f,r=!!(r.nodeValue===y||A!==null&&A.suppressHydrationWarning===!0||H0(r.nodeValue,y)),r||lu(f,!0)}else r=Ko(r).createTextNode(A),r[hn]=f,f.stateNode=r}return Bt(f),null;case 31:if(y=f.memoizedState,r===null||r.memoizedState!==null){if(A=us(f),y!==null){if(r===null){if(!A)throw Error(d(318));if(r=f.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(d(557));r[hn]=f}else Lo(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;Bt(f),r=!1}else y=km(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=y),r=!0;if(!r)return f.flags&256?(Kr(f),f):(Kr(f),null);if((f.flags&128)!==0)throw Error(d(558))}return Bt(f),null;case 13:if(A=f.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(L=us(f),A!==null&&A.dehydrated!==null){if(r===null){if(!L)throw Error(d(318));if(L=f.memoizedState,L=L!==null?L.dehydrated:null,!L)throw Error(d(317));L[hn]=f}else Lo(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;Bt(f),L=!1}else L=km(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=L),L=!0;if(!L)return f.flags&256?(Kr(f),f):(Kr(f),null)}return Kr(f),(f.flags&128)!==0?(f.lanes=y,f):(y=A!==null,r=r!==null&&r.memoizedState!==null,y&&(A=f.child,L=null,A.alternate!==null&&A.alternate.memoizedState!==null&&A.alternate.memoizedState.cachePool!==null&&(L=A.alternate.memoizedState.cachePool.pool),F=null,A.memoizedState!==null&&A.memoizedState.cachePool!==null&&(F=A.memoizedState.cachePool.pool),F!==L&&(A.flags|=2048)),y!==r&&y&&(f.child.flags|=8192),Mr(f,f.updateQueue),Bt(f),null);case 4:return Gt(),r===null&&lf(f.stateNode.containerInfo),Bt(f),null;case 10:return Du(f.type),Bt(f),null;case 19:if(Je(Qn),A=f.memoizedState,A===null)return Bt(f),null;if(L=(f.flags&128)!==0,F=A.rendering,F===null)if(L)Yc(A,!1);else{if(Vn!==0||r!==null&&(r.flags&128)!==0)for(r=f.child;r!==null;){if(F=Fc(r),F!==null){for(f.flags|=128,Yc(A,!1),r=F.updateQueue,f.updateQueue=r,Mr(f,r),f.subtreeFlags=0,r=y,y=f.child;y!==null;)wm(y,r),y=y.sibling;return He(Qn,Qn.current&1|2),cn&&ou(f,A.treeForkCount),f.child}r=r.sibling}A.tail!==null&&vt()>An&&(f.flags|=128,L=!0,Yc(A,!1),f.lanes=4194304)}else{if(!L)if(r=Fc(F),r!==null){if(f.flags|=128,L=!0,r=r.updateQueue,f.updateQueue=r,Mr(f,r),Yc(A,!0),A.tail===null&&A.tailMode==="hidden"&&!F.alternate&&!cn)return Bt(f),null}else 2*vt()-A.renderingStartTime>An&&y!==536870912&&(f.flags|=128,L=!0,Yc(A,!1),f.lanes=4194304);A.isBackwards?(F.sibling=f.child,f.child=F):(r=A.last,r!==null?r.sibling=F:f.child=F,A.last=F)}return A.tail!==null?(r=A.tail,A.rendering=r,A.tail=r.sibling,A.renderingStartTime=vt(),r.sibling=null,y=Qn.current,He(Qn,L?y&1|2:y&1),cn&&ou(f,A.treeForkCount),r):(Bt(f),null);case 22:case 23:return Kr(f),Bc(),A=f.memoizedState!==null,r!==null?r.memoizedState!==null!==A&&(f.flags|=8192):A&&(f.flags|=8192),A?(y&536870912)!==0&&(f.flags&128)===0&&(Bt(f),f.subtreeFlags&6&&(f.flags|=8192)):Bt(f),y=f.updateQueue,y!==null&&Mr(f,y.retryQueue),y=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(y=r.memoizedState.cachePool.pool),A=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(A=f.memoizedState.cachePool.pool),A!==y&&(f.flags|=2048),r!==null&&Je(Fi),null;case 24:return y=null,r!==null&&(y=r.memoizedState.cache),f.memoizedState.cache!==y&&(f.flags|=2048),Du(Ea),Bt(f),null;case 25:return null;case 30:return null}throw Error(d(156,f.tag))}function yy(r,f){switch(Fh(f),f.tag){case 1:return r=f.flags,r&65536?(f.flags=r&-65537|128,f):null;case 3:return Du(Ea),Gt(),r=f.flags,(r&65536)!==0&&(r&128)===0?(f.flags=r&-65537|128,f):null;case 26:case 27:case 5:return Be(f),null;case 31:if(f.memoizedState!==null){if(Kr(f),f.alternate===null)throw Error(d(340));Lo()}return r=f.flags,r&65536?(f.flags=r&-65537|128,f):null;case 13:if(Kr(f),r=f.memoizedState,r!==null&&r.dehydrated!==null){if(f.alternate===null)throw Error(d(340));Lo()}return r=f.flags,r&65536?(f.flags=r&-65537|128,f):null;case 19:return Je(Qn),null;case 4:return Gt(),null;case 10:return Du(f.type),null;case 22:case 23:return Kr(f),Bc(),r!==null&&Je(Fi),r=f.flags,r&65536?(f.flags=r&-65537|128,f):null;case 24:return Du(Ea),null;case 25:return null;default:return null}}function vy(r,f){switch(Fh(f),f.tag){case 3:Du(Ea),Gt();break;case 26:case 27:case 5:Be(f);break;case 4:Gt();break;case 31:f.memoizedState!==null&&Kr(f);break;case 13:Kr(f);break;case 19:Je(Qn);break;case 10:Du(f.type);break;case 22:case 23:Kr(f),Bc(),r!==null&&Je(Fi);break;case 24:Du(Ea)}}function fu(r,f){try{var y=f.updateQueue,A=y!==null?y.lastEffect:null;if(A!==null){var L=A.next;y=L;do{if((y.tag&r)===r){A=void 0;var F=y.create,X=y.inst;A=F(),X.destroy=A}y=y.next}while(y!==L)}}catch(ie){wn(f,f.return,ie)}}function Hi(r,f,y){try{var A=f.updateQueue,L=A!==null?A.lastEffect:null;if(L!==null){var F=L.next;A=F;do{if((A.tag&r)===r){var X=A.inst,ie=X.destroy;if(ie!==void 0){X.destroy=void 0,L=f;var _e=y,qe=ie;try{qe()}catch(Qe){wn(L,_e,Qe)}}}A=A.next}while(A!==F)}}catch(Qe){wn(f,f.return,Qe)}}function gp(r){var f=r.updateQueue;if(f!==null){var y=r.stateNode;try{Po(f,y)}catch(A){wn(r,r.return,A)}}}function $o(r,f,y){y.props=Ho(r.type,r.memoizedProps),y.state=r.memoizedState;try{y.componentWillUnmount()}catch(A){wn(r,f,A)}}function gs(r,f){try{var y=r.ref;if(y!==null){switch(r.tag){case 26:case 27:case 5:var A=r.stateNode;break;case 30:A=r.stateNode;break;default:A=r.stateNode}typeof y=="function"?r.refCleanup=y(A):y.current=A}}catch(L){wn(r,f,L)}}function Nu(r,f){var y=r.ref,A=r.refCleanup;if(y!==null)if(typeof A=="function")try{A()}catch(L){wn(r,f,L)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof y=="function")try{y(null)}catch(L){wn(r,f,L)}else y.current=null}function E0(r){var f=r.type,y=r.memoizedProps,A=r.stateNode;try{e:switch(f){case"button":case"input":case"select":case"textarea":y.autoFocus&&A.focus();break e;case"img":y.src?A.src=y.src:y.srcSet&&(A.srcset=y.srcSet)}}catch(L){wn(r,r.return,L)}}function yp(r,f,y){try{var A=r.stateNode;X0(A,r.type,y,f),A[yn]=f}catch(L){wn(r,r.return,L)}}function S0(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&ju(r.type)||r.tag===4}function Xc(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||S0(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&ju(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Zc(r,f,y){var A=r.tag;if(A===5||A===6)r=r.stateNode,f?(y.nodeType===9?y.body:y.nodeName==="HTML"?y.ownerDocument.body:y).insertBefore(r,f):(f=y.nodeType===9?y.body:y.nodeName==="HTML"?y.ownerDocument.body:y,f.appendChild(r),y=y._reactRootContainer,y!=null||f.onclick!==null||(f.onclick=Pr));else if(A!==4&&(A===27&&ju(r.type)&&(y=r.stateNode,f=null),r=r.child,r!==null))for(Zc(r,f,y),r=r.sibling;r!==null;)Zc(r,f,y),r=r.sibling}function $c(r,f,y){var A=r.tag;if(A===5||A===6)r=r.stateNode,f?y.insertBefore(r,f):y.appendChild(r);else if(A!==4&&(A===27&&ju(r.type)&&(y=r.stateNode),r=r.child,r!==null))for($c(r,f,y),r=r.sibling;r!==null;)$c(r,f,y),r=r.sibling}function C0(r){var f=r.stateNode,y=r.memoizedProps;try{for(var A=r.type,L=f.attributes;L.length;)f.removeAttributeNode(L[0]);xr(f,A,y),f[hn]=r,f[yn]=y}catch(F){wn(r,r.return,F)}}var co=!1,ka=!1,vp=!1,A0=typeof WeakSet=="function"?WeakSet:Set,ir=null;function Jc(r,f){if(r=r.containerInfo,Fp=Ha,r=ya(r),wr(r)){if("selectionStart"in r)var y={start:r.selectionStart,end:r.selectionEnd};else e:{y=(y=r.ownerDocument)&&y.defaultView||window;var A=y.getSelection&&y.getSelection();if(A&&A.rangeCount!==0){y=A.anchorNode;var L=A.anchorOffset,F=A.focusNode;A=A.focusOffset;try{y.nodeType,F.nodeType}catch{y=null;break e}var X=0,ie=-1,_e=-1,qe=0,Qe=0,tt=r,ze=null;t:for(;;){for(var $e;tt!==y||L!==0&&tt.nodeType!==3||(ie=X+L),tt!==F||A!==0&&tt.nodeType!==3||(_e=X+A),tt.nodeType===3&&(X+=tt.nodeValue.length),($e=tt.firstChild)!==null;)ze=tt,tt=$e;for(;;){if(tt===r)break t;if(ze===y&&++qe===L&&(ie=X),ze===F&&++Qe===A&&(_e=X),($e=tt.nextSibling)!==null)break;tt=ze,ze=tt.parentNode}tt=$e}y=ie===-1||_e===-1?null:{start:ie,end:_e}}else y=null}y=y||{start:0,end:0}}else y=null;for(qp={focusedElem:r,selectionRange:y},Ha=!1,ir=f;ir!==null;)if(f=ir,r=f.child,(f.subtreeFlags&1028)!==0&&r!==null)r.return=f,ir=r;else for(;ir!==null;){switch(f=ir,F=f.alternate,r=f.flags,f.tag){case 0:if((r&4)!==0&&(r=f.updateQueue,r=r!==null?r.events:null,r!==null))for(y=0;y<r.length;y++)L=r[y],L.ref.impl=L.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&F!==null){r=void 0,y=f,L=F.memoizedProps,F=F.memoizedState,A=y.stateNode;try{var Et=Ho(y.type,L);r=A.getSnapshotBeforeUpdate(Et,F),A.__reactInternalSnapshotBeforeUpdate=r}catch(wt){wn(y,y.return,wt)}}break;case 3:if((r&1024)!==0){if(r=f.stateNode.containerInfo,y=r.nodeType,y===9)Qd(r);else if(y===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Qd(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(d(163))}if(r=f.sibling,r!==null){r.return=f.return,ir=r;break}ir=f.return}}function kd(r,f,y){var A=y.flags;switch(y.tag){case 0:case 11:case 15:fo(r,y),A&4&&fu(5,y);break;case 1:if(fo(r,y),A&4)if(r=y.stateNode,f===null)try{r.componentDidMount()}catch(X){wn(y,y.return,X)}else{var L=Ho(y.type,f.memoizedProps);f=f.memoizedState;try{r.componentDidUpdate(L,f,r.__reactInternalSnapshotBeforeUpdate)}catch(X){wn(y,y.return,X)}}A&64&&gp(y),A&512&&gs(y,y.return);break;case 3:if(fo(r,y),A&64&&(r=y.updateQueue,r!==null)){if(f=null,y.child!==null)switch(y.child.tag){case 27:case 5:f=y.child.stateNode;break;case 1:f=y.child.stateNode}try{Po(r,f)}catch(X){wn(y,y.return,X)}}break;case 27:f===null&&A&4&&C0(y);case 26:case 5:fo(r,y),f===null&&A&4&&E0(y),A&512&&gs(y,y.return);break;case 12:fo(r,y);break;case 31:fo(r,y),A&4&&by(r,y);break;case 13:fo(r,y),A&4&&D0(r,y),A&64&&(r=y.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(y=Yi.bind(null,y),ff(r,y))));break;case 22:if(A=y.memoizedState!==null||co,!A){f=f!==null&&f.memoizedState!==null||ka,L=co;var F=ka;co=A,(ka=f)&&!F?Lu(r,y,(y.subtreeFlags&8772)!==0):fo(r,y),co=L,ka=F}break;case 30:break;default:fo(r,y)}}function R0(r){var f=r.alternate;f!==null&&(r.alternate=null,R0(f)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(f=r.stateNode,f!==null&&Dr(f)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var Un=null,ni=!1;function ys(r,f,y){for(y=y.child;y!==null;)T0(r,f,y),y=y.sibling}function T0(r,f,y){if(ia&&typeof ia.onCommitFiberUnmount=="function")try{ia.onCommitFiberUnmount(ra,y)}catch{}switch(y.tag){case 26:ka||Nu(y,f),ys(r,f,y),y.memoizedState?y.memoizedState.count--:y.stateNode&&(y=y.stateNode,y.parentNode.removeChild(y));break;case 27:ka||Nu(y,f);var A=Un,L=ni;ju(y.type)&&(Un=y.stateNode,ni=!1),ys(r,f,y),Vl(y.stateNode),Un=A,ni=L;break;case 5:ka||Nu(y,f);case 6:if(A=Un,L=ni,Un=null,ys(r,f,y),Un=A,ni=L,Un!==null)if(ni)try{(Un.nodeType===9?Un.body:Un.nodeName==="HTML"?Un.ownerDocument.body:Un).removeChild(y.stateNode)}catch(F){wn(y,f,F)}else try{Un.removeChild(y.stateNode)}catch(F){wn(y,f,F)}break;case 18:Un!==null&&(ni?(r=Un,W0(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,y.stateNode),xf(r)):W0(Un,y.stateNode));break;case 4:A=Un,L=ni,Un=y.stateNode.containerInfo,ni=!0,ys(r,f,y),Un=A,ni=L;break;case 0:case 11:case 14:case 15:Hi(2,y,f),ka||Hi(4,y,f),ys(r,f,y);break;case 1:ka||(Nu(y,f),A=y.stateNode,typeof A.componentWillUnmount=="function"&&$o(y,f,A)),ys(r,f,y);break;case 21:ys(r,f,y);break;case 22:ka=(A=ka)||y.memoizedState!==null,ys(r,f,y),ka=A;break;default:ys(r,f,y)}}function by(r,f){if(f.memoizedState===null&&(r=f.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{xf(r)}catch(y){wn(f,f.return,y)}}}function D0(r,f){if(f.memoizedState===null&&(r=f.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{xf(r)}catch(y){wn(f,f.return,y)}}function Bd(r){switch(r.tag){case 31:case 13:case 19:var f=r.stateNode;return f===null&&(f=r.stateNode=new A0),f;case 22:return r=r.stateNode,f=r._retryCache,f===null&&(f=r._retryCache=new A0),f;default:throw Error(d(435,r.tag))}}function jd(r,f){var y=Bd(r);f.forEach(function(A){if(!y.has(A)){y.add(A);var L=Gy.bind(null,r,A);A.then(L,L)}})}function ai(r,f){var y=f.deletions;if(y!==null)for(var A=0;A<y.length;A++){var L=y[A],F=r,X=f,ie=X;e:for(;ie!==null;){switch(ie.tag){case 27:if(ju(ie.type)){Un=ie.stateNode,ni=!1;break e}break;case 5:Un=ie.stateNode,ni=!1;break e;case 3:case 4:Un=ie.stateNode.containerInfo,ni=!0;break e}ie=ie.return}if(Un===null)throw Error(d(160));T0(F,X,L),Un=null,ni=!1,F=L.alternate,F!==null&&(F.return=null),L.return=null}if(f.subtreeFlags&13886)for(f=f.child;f!==null;)bp(f,r),f=f.sibling}var Xt=null;function bp(r,f){var y=r.alternate,A=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:ai(f,r),_i(r),A&4&&(Hi(3,r,r.return),fu(3,r),Hi(5,r,r.return));break;case 1:ai(f,r),_i(r),A&512&&(ka||y===null||Nu(y,y.return)),A&64&&co&&(r=r.updateQueue,r!==null&&(A=r.callbacks,A!==null&&(y=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=y===null?A:y.concat(A))));break;case 26:var L=Xt;if(ai(f,r),_i(r),A&512&&(ka||y===null||Nu(y,y.return)),A&4){var F=y!==null?y.memoizedState:null;if(A=r.memoizedState,y===null)if(A===null)if(r.stateNode===null){e:{A=r.type,y=r.memoizedProps,L=L.ownerDocument||L;t:switch(A){case"title":F=L.getElementsByTagName("title")[0],(!F||F[Ga]||F[hn]||F.namespaceURI==="http://www.w3.org/2000/svg"||F.hasAttribute("itemprop"))&&(F=L.createElement(A),L.head.insertBefore(F,L.querySelector("head > title"))),xr(F,A,y),F[hn]=r,Vt(F),A=F;break e;case"link":var X=tg("link","href",L).get(A+(y.href||""));if(X){for(var ie=0;ie<X.length;ie++)if(F=X[ie],F.getAttribute("href")===(y.href==null||y.href===""?null:y.href)&&F.getAttribute("rel")===(y.rel==null?null:y.rel)&&F.getAttribute("title")===(y.title==null?null:y.title)&&F.getAttribute("crossorigin")===(y.crossOrigin==null?null:y.crossOrigin)){X.splice(ie,1);break t}}F=L.createElement(A),xr(F,A,y),L.head.appendChild(F);break;case"meta":if(X=tg("meta","content",L).get(A+(y.content||""))){for(ie=0;ie<X.length;ie++)if(F=X[ie],F.getAttribute("content")===(y.content==null?null:""+y.content)&&F.getAttribute("name")===(y.name==null?null:y.name)&&F.getAttribute("property")===(y.property==null?null:y.property)&&F.getAttribute("http-equiv")===(y.httpEquiv==null?null:y.httpEquiv)&&F.getAttribute("charset")===(y.charSet==null?null:y.charSet)){X.splice(ie,1);break t}}F=L.createElement(A),xr(F,A,y),L.head.appendChild(F);break;default:throw Error(d(468,A))}F[hn]=r,Vt(F),A=F}r.stateNode=A}else Vp(L,r.type,r.stateNode);else r.stateNode=eg(L,A,r.memoizedProps);else F!==A?(F===null?y.stateNode!==null&&(y=y.stateNode,y.parentNode.removeChild(y)):F.count--,A===null?Vp(L,r.type,r.stateNode):eg(L,A,r.memoizedProps)):A===null&&r.stateNode!==null&&yp(r,r.memoizedProps,y.memoizedProps)}break;case 27:ai(f,r),_i(r),A&512&&(ka||y===null||Nu(y,y.return)),y!==null&&A&4&&yp(r,r.memoizedProps,y.memoizedProps);break;case 5:if(ai(f,r),_i(r),A&512&&(ka||y===null||Nu(y,y.return)),r.flags&32){L=r.stateNode;try{wi(L,"")}catch(Et){wn(r,r.return,Et)}}A&4&&r.stateNode!=null&&(L=r.memoizedProps,yp(r,L,y!==null?y.memoizedProps:L)),A&1024&&(vp=!0);break;case 6:if(ai(f,r),_i(r),A&4){if(r.stateNode===null)throw Error(d(162));A=r.memoizedProps,y=r.stateNode;try{y.nodeValue=A}catch(Et){wn(r,r.return,Et)}}break;case 3:if(yf=null,L=Xt,Xt=kr(f.containerInfo),ai(f,r),Xt=L,_i(r),A&4&&y!==null&&y.memoizedState.isDehydrated)try{xf(f.containerInfo)}catch(Et){wn(r,r.return,Et)}vp&&(vp=!1,I0(r));break;case 4:A=Xt,Xt=kr(r.stateNode.containerInfo),ai(f,r),_i(r),Xt=A;break;case 12:ai(f,r),_i(r);break;case 31:ai(f,r),_i(r),A&4&&(A=r.updateQueue,A!==null&&(r.updateQueue=null,jd(r,A)));break;case 13:ai(f,r),_i(r),r.child.flags&8192&&r.memoizedState!==null!=(y!==null&&y.memoizedState!==null)&&(Bu=vt()),A&4&&(A=r.updateQueue,A!==null&&(r.updateQueue=null,jd(r,A)));break;case 22:L=r.memoizedState!==null;var _e=y!==null&&y.memoizedState!==null,qe=co,Qe=ka;if(co=qe||L,ka=Qe||_e,ai(f,r),ka=Qe,co=qe,_i(r),A&8192)e:for(f=r.stateNode,f._visibility=L?f._visibility&-2:f._visibility|1,L&&(y===null||_e||co||ka||jl(r)),y=null,f=r;;){if(f.tag===5||f.tag===26){if(y===null){_e=y=f;try{if(F=_e.stateNode,L)X=F.style,typeof X.setProperty=="function"?X.setProperty("display","none","important"):X.display="none";else{ie=_e.stateNode;var tt=_e.memoizedProps.style,ze=tt!=null&&tt.hasOwnProperty("display")?tt.display:null;ie.style.display=ze==null||typeof ze=="boolean"?"":(""+ze).trim()}}catch(Et){wn(_e,_e.return,Et)}}}else if(f.tag===6){if(y===null){_e=f;try{_e.stateNode.nodeValue=L?"":_e.memoizedProps}catch(Et){wn(_e,_e.return,Et)}}}else if(f.tag===18){if(y===null){_e=f;try{var $e=_e.stateNode;L?Ca($e,!0):Ca(_e.stateNode,!1)}catch(Et){wn(_e,_e.return,Et)}}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===r)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===r)break e;for(;f.sibling===null;){if(f.return===null||f.return===r)break e;y===f&&(y=null),f=f.return}y===f&&(y=null),f.sibling.return=f.return,f=f.sibling}A&4&&(A=r.updateQueue,A!==null&&(y=A.retryQueue,y!==null&&(A.retryQueue=null,jd(r,y))));break;case 19:ai(f,r),_i(r),A&4&&(A=r.updateQueue,A!==null&&(r.updateQueue=null,jd(r,A)));break;case 30:break;case 21:break;default:ai(f,r),_i(r)}}function _i(r){var f=r.flags;if(f&2){try{for(var y,A=r.return;A!==null;){if(S0(A)){y=A;break}A=A.return}if(y==null)throw Error(d(160));switch(y.tag){case 27:var L=y.stateNode,F=Xc(r);$c(r,F,L);break;case 5:var X=y.stateNode;y.flags&32&&(wi(X,""),y.flags&=-33);var ie=Xc(r);$c(r,ie,X);break;case 3:case 4:var _e=y.stateNode.containerInfo,qe=Xc(r);Zc(r,qe,_e);break;default:throw Error(d(161))}}catch(Qe){wn(r,r.return,Qe)}r.flags&=-3}f&4096&&(r.flags&=-4097)}function I0(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var f=r;I0(f),f.tag===5&&f.flags&1024&&f.stateNode.reset(),r=r.sibling}}function fo(r,f){if(f.subtreeFlags&8772)for(f=f.child;f!==null;)kd(r,f.alternate,f),f=f.sibling}function jl(r){for(r=r.child;r!==null;){var f=r;switch(f.tag){case 0:case 11:case 14:case 15:Hi(4,f,f.return),jl(f);break;case 1:Nu(f,f.return);var y=f.stateNode;typeof y.componentWillUnmount=="function"&&$o(f,f.return,y),jl(f);break;case 27:Vl(f.stateNode);case 26:case 5:Nu(f,f.return),jl(f);break;case 22:f.memoizedState===null&&jl(f);break;case 30:jl(f);break;default:jl(f)}r=r.sibling}}function Lu(r,f,y){for(y=y&&(f.subtreeFlags&8772)!==0,f=f.child;f!==null;){var A=f.alternate,L=r,F=f,X=F.flags;switch(F.tag){case 0:case 11:case 15:Lu(L,F,y),fu(4,F);break;case 1:if(Lu(L,F,y),A=F,L=A.stateNode,typeof L.componentDidMount=="function")try{L.componentDidMount()}catch(qe){wn(A,A.return,qe)}if(A=F,L=A.updateQueue,L!==null){var ie=A.stateNode;try{var _e=L.shared.hiddenCallbacks;if(_e!==null)for(L.shared.hiddenCallbacks=null,L=0;L<_e.length;L++)Vh(_e[L],ie)}catch(qe){wn(A,A.return,qe)}}y&&X&64&&gp(F),gs(F,F.return);break;case 27:C0(F);case 26:case 5:Lu(L,F,y),y&&A===null&&X&4&&E0(F),gs(F,F.return);break;case 12:Lu(L,F,y);break;case 31:Lu(L,F,y),y&&X&4&&by(L,F);break;case 13:Lu(L,F,y),y&&X&4&&D0(L,F);break;case 22:F.memoizedState===null&&Lu(L,F,y),gs(F,F.return);break;case 30:break;default:Lu(L,F,y)}f=f.sibling}}function _p(r,f){var y=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(y=r.memoizedState.cachePool.pool),r=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(r=f.memoizedState.cachePool.pool),r!==y&&(r!=null&&r.refCount++,y!=null&&fd(y))}function Ep(r,f){r=null,f.alternate!==null&&(r=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==r&&(f.refCount++,r!=null&&fd(r))}function du(r,f,y,A){if(f.subtreeFlags&10256)for(f=f.child;f!==null;)Wc(r,f,y,A),f=f.sibling}function Wc(r,f,y,A){var L=f.flags;switch(f.tag){case 0:case 11:case 15:du(r,f,y,A),L&2048&&fu(9,f);break;case 1:du(r,f,y,A);break;case 3:du(r,f,y,A),L&2048&&(r=null,f.alternate!==null&&(r=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==r&&(f.refCount++,r!=null&&fd(r)));break;case 12:if(L&2048){du(r,f,y,A),r=f.stateNode;try{var F=f.memoizedProps,X=F.id,ie=F.onPostCommit;typeof ie=="function"&&ie(X,f.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(_e){wn(f,f.return,_e)}}else du(r,f,y,A);break;case 31:du(r,f,y,A);break;case 13:du(r,f,y,A);break;case 23:break;case 22:F=f.stateNode,X=f.alternate,f.memoizedState!==null?F._visibility&2?du(r,f,y,A):Fd(r,f):F._visibility&2?du(r,f,y,A):(F._visibility|=2,Qc(r,f,y,A,(f.subtreeFlags&10256)!==0||!1)),L&2048&&_p(X,f);break;case 24:du(r,f,y,A),L&2048&&Ep(f.alternate,f);break;default:du(r,f,y,A)}}function Qc(r,f,y,A,L){for(L=L&&((f.subtreeFlags&10256)!==0||!1),f=f.child;f!==null;){var F=r,X=f,ie=y,_e=A,qe=X.flags;switch(X.tag){case 0:case 11:case 15:Qc(F,X,ie,_e,L),fu(8,X);break;case 23:break;case 22:var Qe=X.stateNode;X.memoizedState!==null?Qe._visibility&2?Qc(F,X,ie,_e,L):Fd(F,X):(Qe._visibility|=2,Qc(F,X,ie,_e,L)),L&&qe&2048&&_p(X.alternate,X);break;case 24:Qc(F,X,ie,_e,L),L&&qe&2048&&Ep(X.alternate,X);break;default:Qc(F,X,ie,_e,L)}f=f.sibling}}function Fd(r,f){if(f.subtreeFlags&10256)for(f=f.child;f!==null;){var y=r,A=f,L=A.flags;switch(A.tag){case 22:Fd(y,A),L&2048&&_p(A.alternate,A);break;case 24:Fd(y,A),L&2048&&Ep(A.alternate,A);break;default:Fd(y,A)}f=f.sibling}}var Ei=8192;function vs(r,f,y){if(r.subtreeFlags&Ei)for(r=r.child;r!==null;)_y(r,f,y),r=r.sibling}function _y(r,f,y){switch(r.tag){case 26:vs(r,f,y),r.flags&Ei&&r.memoizedState!==null&&Ss(y,Xt,r.memoizedState,r.memoizedProps);break;case 5:vs(r,f,y);break;case 3:case 4:var A=Xt;Xt=kr(r.stateNode.containerInfo),vs(r,f,y),Xt=A;break;case 22:r.memoizedState===null&&(A=r.alternate,A!==null&&A.memoizedState!==null?(A=Ei,Ei=16777216,vs(r,f,y),Ei=A):vs(r,f,y));break;default:vs(r,f,y)}}function xp(r){var f=r.alternate;if(f!==null&&(r=f.child,r!==null)){f.child=null;do f=r.sibling,r.sibling=null,r=f;while(r!==null)}}function Kc(r){var f=r.deletions;if((r.flags&16)!==0){if(f!==null)for(var y=0;y<f.length;y++){var A=f[y];ir=A,Sp(A,r)}xp(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)O0(r),r=r.sibling}function O0(r){switch(r.tag){case 0:case 11:case 15:Kc(r),r.flags&2048&&Hi(9,r,r.return);break;case 3:Kc(r);break;case 12:Kc(r);break;case 22:var f=r.stateNode;r.memoizedState!==null&&f._visibility&2&&(r.return===null||r.return.tag!==13)?(f._visibility&=-3,qd(r)):Kc(r);break;default:Kc(r)}}function qd(r){var f=r.deletions;if((r.flags&16)!==0){if(f!==null)for(var y=0;y<f.length;y++){var A=f[y];ir=A,Sp(A,r)}xp(r)}for(r=r.child;r!==null;){switch(f=r,f.tag){case 0:case 11:case 15:Hi(8,f,f.return),qd(f);break;case 22:y=f.stateNode,y._visibility&2&&(y._visibility&=-3,qd(f));break;default:qd(f)}r=r.sibling}}function Sp(r,f){for(;ir!==null;){var y=ir;switch(y.tag){case 0:case 11:case 15:Hi(8,y,f);break;case 23:case 22:if(y.memoizedState!==null&&y.memoizedState.cachePool!==null){var A=y.memoizedState.cachePool.pool;A!=null&&A.refCount++}break;case 24:fd(y.memoizedState.cache)}if(A=y.child,A!==null)A.return=y,ir=A;else e:for(y=r;ir!==null;){A=ir;var L=A.sibling,F=A.return;if(R0(A),A===y){ir=null;break e}if(L!==null){L.return=F,ir=L;break e}ir=F}}}var Ey={getCacheForType:function(r){var f=nt(Ea),y=f.data.get(r);return y===void 0&&(y=r(),f.data.set(r,y)),y},cacheSignal:function(){return nt(Ea).controller.signal}},w0=typeof WeakMap=="function"?WeakMap:Map,Sn=0,Mn=null,fn=null,nn=0,On=0,Lt=null,bs=!1,Jo=!1,Cp=!1,Mu=0,Vn=0,ku=0,Fl=0,Ap=0,ri=0,la=0,Gd=null,ca=null,Rp=!1,Bu=0,N0=0,An=1/0,ef=null,Kn=null,Va=0,ho=null,Wo=null,_s=0,xi=0,Tp=null,Dp=null,tf=0,zd=null;function Si(){return(Sn&2)!==0&&nn!==0?nn&-nn:de.T!==null?Lp():li()}function xy(){if(ri===0)if((nn&536870912)===0||cn){var r=Nn;Nn<<=1,(Nn&3932160)===0&&(Nn=262144),ri=r}else ri=536870912;return r=Qr.current,r!==null&&(r.flags|=32),ri}function ii(r,f,y){(r===Mn&&(On===2||On===9)||r.cancelPendingCommit!==null)&&(Es(r,0),po(r,nn,ri,!1)),ot(r,y),((Sn&2)===0||r!==Mn)&&(r===Mn&&((Sn&2)===0&&(Fl|=y),Vn===4&&po(r,nn,ri,!1)),xs(r))}function Sy(r,f,y){if((Sn&6)!==0)throw Error(d(327));var A=!y&&(f&127)===0&&(f&r.expiredLanes)===0||ae(r,f),L=A?Dy(r,f):Op(r,f,!0),F=A;do{if(L===0){Jo&&!A&&po(r,f,0,!1);break}else{if(y=r.current.alternate,F&&!Cy(y)){L=Op(r,f,!1),F=!1;continue}if(L===2){if(F=f,r.errorRecoveryDisabledLanes&F)var X=0;else X=r.pendingLanes&-536870913,X=X!==0?X:X&536870912?536870912:0;if(X!==0){f=X;e:{var ie=r;L=Gd;var _e=ie.current.memoizedState.isDehydrated;if(_e&&(Es(ie,X).flags|=256),X=Op(ie,X,!1),X!==2){if(Cp&&!_e){ie.errorRecoveryDisabledLanes|=F,Fl|=F,L=4;break e}F=ca,ca=L,F!==null&&(ca===null?ca=F:ca.push.apply(ca,F))}L=X}if(F=!1,L!==2)continue}}if(L===1){Es(r,0),po(r,f,0,!0);break}e:{switch(A=r,F=L,F){case 0:case 1:throw Error(d(345));case 4:if((f&4194048)!==f)break;case 6:po(A,f,ri,!bs);break e;case 2:ca=null;break;case 3:case 5:break;default:throw Error(d(329))}if((f&62914560)===f&&(L=Bu+300-vt(),10<L)){if(po(A,f,ri,!bs),Fn(A,0,!0)!==0)break e;_s=f,A.timeoutHandle=Wd(Pd.bind(null,A,y,ca,ef,Rp,f,ri,Fl,la,bs,F,"Throttled",-0,0),L);break e}Pd(A,y,ca,ef,Rp,f,ri,Fl,la,bs,F,null,-0,0)}}break}while(!0);xs(r)}function Pd(r,f,y,A,L,F,X,ie,_e,qe,Qe,tt,ze,$e){if(r.timeoutHandle=-1,tt=f.subtreeFlags,tt&8192||(tt&16785408)===16785408){tt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Pr},_y(f,F,tt);var Et=(F&62914560)===F?Bu-vt():(F&4194048)===F?N0-vt():0;if(Et=ag(tt,Et),Et!==null){_s=F,r.cancelPendingCommit=Et(Ny.bind(null,r,f,F,y,A,L,X,ie,_e,Qe,tt,null,ze,$e)),po(r,F,X,!qe);return}}Ny(r,f,F,y,A,L,X,ie,_e)}function Cy(r){for(var f=r;;){var y=f.tag;if((y===0||y===11||y===15)&&f.flags&16384&&(y=f.updateQueue,y!==null&&(y=y.stores,y!==null)))for(var A=0;A<y.length;A++){var L=y[A],F=L.getSnapshot;L=L.value;try{if(!er(F(),L))return!1}catch{return!1}}if(y=f.child,f.subtreeFlags&16384&&y!==null)y.return=f,f=y;else{if(f===r)break;for(;f.sibling===null;){if(f.return===null||f.return===r)return!0;f=f.return}f.sibling.return=f.return,f=f.sibling}}return!0}function po(r,f,y,A){f&=~Ap,f&=~Fl,r.suspendedLanes|=f,r.pingedLanes&=~f,A&&(r.warmLanes|=f),A=r.expirationTimes;for(var L=f;0<L;){var F=31-$n(L),X=1<<F;A[F]=-1,L&=~X}y!==0&&ut(r,y,f)}function nf(){return(Sn&6)===0?(go(0),!1):!0}function L0(){if(fn!==null){if(On===0)var r=fn.return;else r=fn,Tu=no=null,Ed(r),Fo=null,Rl=0,r=fn;for(;r!==null;)vy(r.alternate,r),r=r.return;fn=null}}function Es(r,f){var y=r.timeoutHandle;y!==-1&&(r.timeoutHandle=-1,Zy(y)),y=r.cancelPendingCommit,y!==null&&(r.cancelPendingCommit=null,y()),_s=0,L0(),Mn=r,fn=y=eo(r.current,null),nn=f,On=0,Lt=null,bs=!1,Jo=ae(r,f),Cp=!1,la=ri=Ap=Fl=ku=Vn=0,ca=Gd=null,Rp=!1,(f&8)!==0&&(f|=f&32);var A=r.entangledLanes;if(A!==0)for(r=r.entanglements,A&=f;0<A;){var L=31-$n(A),F=1<<L;f|=r[L],A&=~F}return Mu=f,Nr(),y}function af(r,f){Ht=null,de.H=Id,f===ko||f===Mc?(f=Gm(),On=3):f===Cl?(f=Gm(),On=4):On=f===fp?8:f!==null&&typeof f=="object"&&typeof f.then=="function"?6:1,Lt=f,fn===null&&(Vn=1,Hc(r,Bi(f,r.current)))}function Ay(){var r=Qr.current;return r===null?!0:(nn&4194048)===nn?zi===null:(nn&62914560)===nn||(nn&536870912)!==0?r===zi:!1}function Ry(){var r=de.H;return de.H=Id,r===null?Id:r}function Ty(){var r=de.A;return de.A=Ey,r}function Ip(){Vn=4,bs||(nn&4194048)!==nn&&Qr.current!==null||(Jo=!0),(ku&134217727)===0&&(Fl&134217727)===0||Mn===null||po(Mn,nn,ri,!1)}function Op(r,f,y){var A=Sn;Sn|=2;var L=Ry(),F=Ty();(Mn!==r||nn!==f)&&(ef=null,Es(r,f)),f=!1;var X=Vn;e:do try{if(On!==0&&fn!==null){var ie=fn,_e=Lt;switch(On){case 8:L0(),X=6;break e;case 3:case 2:case 9:case 6:Qr.current===null&&(f=!0);var qe=On;if(On=0,Lt=null,ql(r,ie,_e,qe),y&&Jo){X=0;break e}break;default:qe=On,On=0,Lt=null,ql(r,ie,_e,qe)}}r1(),X=Vn;break}catch(Qe){af(r,Qe)}while(!0);return f&&r.shellSuspendCounter++,Tu=no=null,Sn=A,de.H=L,de.A=F,fn===null&&(Mn=null,nn=0,Nr()),X}function r1(){for(;fn!==null;)Iy(fn)}function Dy(r,f){var y=Sn;Sn|=2;var A=Ry(),L=Ty();Mn!==r||nn!==f?(ef=null,An=vt()+500,Es(r,f)):Jo=ae(r,f);e:do try{if(On!==0&&fn!==null){f=fn;var F=Lt;t:switch(On){case 1:On=0,Lt=null,ql(r,f,F,1);break;case 2:case 9:if(Fm(F)){On=0,Lt=null,Oy(f);break}f=function(){On!==2&&On!==9||Mn!==r||(On=7),xs(r)},F.then(f,f);break e;case 3:On=7;break e;case 4:On=5;break e;case 7:Fm(F)?(On=0,Lt=null,Oy(f)):(On=0,Lt=null,ql(r,f,F,7));break;case 5:var X=null;switch(fn.tag){case 26:X=fn.memoizedState;case 5:case 27:var ie=fn;if(X?Ai(X):ie.stateNode.complete){On=0,Lt=null;var _e=ie.sibling;if(_e!==null)fn=_e;else{var qe=ie.return;qe!==null?(fn=qe,Ud(qe)):fn=null}break t}}On=0,Lt=null,ql(r,f,F,5);break;case 6:On=0,Lt=null,ql(r,f,F,6);break;case 8:L0(),Vn=6;break e;default:throw Error(d(462))}}Qo();break}catch(Qe){af(r,Qe)}while(!0);return Tu=no=null,de.H=A,de.A=L,Sn=y,fn!==null?0:(Mn=null,nn=0,Nr(),Vn)}function Qo(){for(;fn!==null&&!Jt();)Iy(fn)}function Iy(r){var f=v0(r.alternate,r,Mu);r.memoizedProps=r.pendingProps,f===null?Ud(r):fn=f}function Oy(r){var f=r,y=f.alternate;switch(f.tag){case 15:case 0:f=Xo(y,f,f.pendingProps,f.type,void 0,nn);break;case 11:f=Xo(y,f,f.pendingProps,f.type.render,f.ref,nn);break;case 5:Ed(f);default:vy(y,f),f=fn=wm(f,Mu),f=v0(y,f,Mu)}r.memoizedProps=r.pendingProps,f===null?Ud(r):fn=f}function ql(r,f,y,A){Tu=no=null,Ed(f),Fo=null,Rl=0;var L=f.return;try{if(a1(r,L,f,y,nn)){Vn=1,Hc(r,Bi(y,r.current)),fn=null;return}}catch(F){if(L!==null)throw fn=L,F;Vn=1,Hc(r,Bi(y,r.current)),fn=null;return}f.flags&32768?(cn||A===1?r=!0:Jo||(nn&536870912)!==0?r=!1:(bs=r=!0,(A===2||A===9||A===3||A===6)&&(A=Qr.current,A!==null&&A.tag===13&&(A.flags|=16384))),wy(f,r)):Ud(f)}function Ud(r){var f=r;do{if((f.flags&32768)!==0){wy(f,bs);return}r=f.return;var y=gy(f.alternate,f,Mu);if(y!==null){fn=y;return}if(f=f.sibling,f!==null){fn=f;return}fn=f=r}while(f!==null);Vn===0&&(Vn=5)}function wy(r,f){do{var y=yy(r.alternate,r);if(y!==null){y.flags&=32767,fn=y;return}if(y=r.return,y!==null&&(y.flags|=32768,y.subtreeFlags=0,y.deletions=null),!f&&(r=r.sibling,r!==null)){fn=r;return}fn=r=y}while(r!==null);Vn=6,fn=null}function Ny(r,f,y,A,L,F,X,ie,_e){r.cancelPendingCommit=null;do rf();while(Va!==0);if((Sn&6)!==0)throw Error(d(327));if(f!==null){if(f===r.current)throw Error(d(177));if(F=f.lanes|f.childLanes,F|=Xr,yt(r,y,F,X,ie,_e),r===Mn&&(fn=Mn=null,nn=0),Wo=f,ho=r,_s=y,xi=F,Tp=L,Dp=A,(f.subtreeFlags&10256)!==0||(f.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,zy(xt,function(){return jy(),null})):(r.callbackNode=null,r.callbackPriority=0),A=(f.flags&13878)!==0,(f.subtreeFlags&13878)!==0||A){A=de.T,de.T=null,L=Ce.p,Ce.p=2,X=Sn,Sn|=4;try{Jc(r,f,y)}finally{Sn=X,Ce.p=L,de.T=A}}Va=1,Ly(),My(),ky()}}function Ly(){if(Va===1){Va=0;var r=ho,f=Wo,y=(f.flags&13878)!==0;if((f.subtreeFlags&13878)!==0||y){y=de.T,de.T=null;var A=Ce.p;Ce.p=2;var L=Sn;Sn|=4;try{bp(f,r);var F=qp,X=ya(r.containerInfo),ie=F.focusedElem,_e=F.selectionRange;if(X!==ie&&ie&&ie.ownerDocument&&as(ie.ownerDocument.documentElement,ie)){if(_e!==null&&wr(ie)){var qe=_e.start,Qe=_e.end;if(Qe===void 0&&(Qe=qe),"selectionStart"in ie)ie.selectionStart=qe,ie.selectionEnd=Math.min(Qe,ie.value.length);else{var tt=ie.ownerDocument||document,ze=tt&&tt.defaultView||window;if(ze.getSelection){var $e=ze.getSelection(),Et=ie.textContent.length,wt=Math.min(_e.start,Et),Bn=_e.end===void 0?wt:Math.min(_e.end,Et);!$e.extend&&wt>Bn&&(X=Bn,Bn=wt,wt=X);var Me=id(ie,wt),Ie=id(ie,Bn);if(Me&&Ie&&($e.rangeCount!==1||$e.anchorNode!==Me.node||$e.anchorOffset!==Me.offset||$e.focusNode!==Ie.node||$e.focusOffset!==Ie.offset)){var Fe=tt.createRange();Fe.setStart(Me.node,Me.offset),$e.removeAllRanges(),wt>Bn?($e.addRange(Fe),$e.extend(Ie.node,Ie.offset)):(Fe.setEnd(Ie.node,Ie.offset),$e.addRange(Fe))}}}}for(tt=[],$e=ie;$e=$e.parentNode;)$e.nodeType===1&&tt.push({element:$e,left:$e.scrollLeft,top:$e.scrollTop});for(typeof ie.focus=="function"&&ie.focus(),ie=0;ie<tt.length;ie++){var et=tt[ie];et.element.scrollLeft=et.left,et.element.scrollTop=et.top}}Ha=!!Fp,qp=Fp=null}finally{Sn=L,Ce.p=A,de.T=y}}r.current=f,Va=2}}function My(){if(Va===2){Va=0;var r=ho,f=Wo,y=(f.flags&8772)!==0;if((f.subtreeFlags&8772)!==0||y){y=de.T,de.T=null;var A=Ce.p;Ce.p=2;var L=Sn;Sn|=4;try{kd(r,f.alternate,f)}finally{Sn=L,Ce.p=A,de.T=y}}Va=3}}function ky(){if(Va===4||Va===3){Va=0,mr();var r=ho,f=Wo,y=_s,A=Dp;(f.subtreeFlags&10256)!==0||(f.flags&10256)!==0?Va=5:(Va=0,Wo=ho=null,By(r,r.pendingLanes));var L=r.pendingLanes;if(L===0&&(Kn=null),Tr(y),f=f.stateNode,ia&&typeof ia.onCommitFiberRoot=="function")try{ia.onCommitFiberRoot(ra,f,void 0,(f.current.flags&128)===128)}catch{}if(A!==null){f=de.T,L=Ce.p,Ce.p=2,de.T=null;try{for(var F=r.onRecoverableError,X=0;X<A.length;X++){var ie=A[X];F(ie.value,{componentStack:ie.stack})}}finally{de.T=f,Ce.p=L}}(_s&3)!==0&&rf(),xs(r),L=r.pendingLanes,(y&261930)!==0&&(L&42)!==0?r===zd?tf++:(tf=0,zd=r):tf=0,go(0)}}function By(r,f){(r.pooledCacheLanes&=f)===0&&(f=r.pooledCache,f!=null&&(r.pooledCache=null,fd(f)))}function rf(){return Ly(),My(),ky(),jy()}function jy(){if(Va!==5)return!1;var r=ho,f=xi;xi=0;var y=Tr(_s),A=de.T,L=Ce.p;try{Ce.p=32>y?32:y,de.T=null,y=Tp,Tp=null;var F=ho,X=_s;if(Va=0,Wo=ho=null,_s=0,(Sn&6)!==0)throw Error(d(331));var ie=Sn;if(Sn|=4,O0(F.current),Wc(F,F.current,X,y),Sn=ie,go(0,!1),ia&&typeof ia.onPostCommitFiberRoot=="function")try{ia.onPostCommitFiberRoot(ra,F)}catch{}return!0}finally{Ce.p=L,de.T=A,By(r,f)}}function Fy(r,f,y){f=Bi(y,f),f=o0(r.stateNode,f,2),r=Gi(r,f,2),r!==null&&(ot(r,2),xs(r))}function wn(r,f,y){if(r.tag===3)Fy(r,r,y);else for(;f!==null;){if(f.tag===3){Fy(f,r,y);break}else if(f.tag===1){var A=f.stateNode;if(typeof f.type.getDerivedStateFromError=="function"||typeof A.componentDidCatch=="function"&&(Kn===null||!Kn.has(A))){r=Bi(y,r),y=l0(2),A=Gi(f,y,2),A!==null&&(c0(y,A,f,r),ot(A,2),xs(A));break}}f=f.return}}function Vd(r,f,y){var A=r.pingCache;if(A===null){A=r.pingCache=new w0;var L=new Set;A.set(f,L)}else L=A.get(f),L===void 0&&(L=new Set,A.set(f,L));L.has(y)||(Cp=!0,L.add(y),r=M0.bind(null,r,f,y),f.then(r,r))}function M0(r,f,y){var A=r.pingCache;A!==null&&A.delete(f),r.pingedLanes|=r.suspendedLanes&y,r.warmLanes&=~y,Mn===r&&(nn&y)===y&&(Vn===4||Vn===3&&(nn&62914560)===nn&&300>vt()-Bu?(Sn&2)===0&&Es(r,0):Ap|=y,la===nn&&(la=0)),xs(r)}function qy(r,f){f===0&&(f=fe()),r=su(r,f),r!==null&&(ot(r,f),xs(r))}function Yi(r){var f=r.memoizedState,y=0;f!==null&&(y=f.retryLane),qy(r,y)}function Gy(r,f){var y=0;switch(r.tag){case 31:case 13:var A=r.stateNode,L=r.memoizedState;L!==null&&(y=L.retryLane);break;case 19:A=r.stateNode;break;case 22:A=r.stateNode._retryCache;break;default:throw Error(d(314))}A!==null&&A.delete(f),qy(r,y)}function zy(r,f){return Yt(r,f)}var uf=null,Gl=null,k0=!1,wp=!1,B0=!1,mo=0;function xs(r){r!==Gl&&r.next===null&&(Gl===null?uf=Gl=r:Gl=Gl.next=r),wp=!0,k0||(k0=!0,Yd())}function go(r,f){if(!B0&&wp){B0=!0;do for(var y=!1,A=uf;A!==null;){if(r!==0){var L=A.pendingLanes;if(L===0)var F=0;else{var X=A.suspendedLanes,ie=A.pingedLanes;F=(1<<31-$n(42|r)+1)-1,F&=L&~(X&~ie),F=F&201326741?F&201326741|1:F?F|2:0}F!==0&&(y=!0,zl(A,F))}else F=nn,F=Fn(A,A===Mn?F:0,A.cancelPendingCommit!==null||A.timeoutHandle!==-1),(F&3)===0||ae(A,F)||(y=!0,zl(A,F));A=A.next}while(y);B0=!1}}function Np(){j0()}function j0(){wp=k0=!1;var r=0;mo!==0&&i1()&&(r=mo);for(var f=vt(),y=null,A=uf;A!==null;){var L=A.next,F=F0(A,f);F===0?(A.next=null,y===null?uf=L:y.next=L,L===null&&(Gl=y)):(y=A,(r!==0||(F&3)!==0)&&(wp=!0)),A=L}Va!==0&&Va!==5||go(r),mo!==0&&(mo=0)}function F0(r,f){for(var y=r.suspendedLanes,A=r.pingedLanes,L=r.expirationTimes,F=r.pendingLanes&-62914561;0<F;){var X=31-$n(F),ie=1<<X,_e=L[X];_e===-1?((ie&y)===0||(ie&A)!==0)&&(L[X]=le(ie,f)):_e<=f&&(r.expiredLanes|=ie),F&=~ie}if(f=Mn,y=nn,y=Fn(r,r===f?y:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),A=r.callbackNode,y===0||r===f&&(On===2||On===9)||r.cancelPendingCommit!==null)return A!==null&&A!==null&&on(A),r.callbackNode=null,r.callbackPriority=0;if((y&3)===0||ae(r,y)){if(f=y&-y,f===r.callbackPriority)return f;switch(A!==null&&on(A),Tr(y)){case 2:case 8:y=yr;break;case 32:y=xt;break;case 268435456:y=zt;break;default:y=xt}return A=Hd.bind(null,r),y=Yt(y,A),r.callbackPriority=f,r.callbackNode=y,f}return A!==null&&A!==null&&on(A),r.callbackPriority=2,r.callbackNode=null,2}function Hd(r,f){if(Va!==0&&Va!==5)return r.callbackNode=null,r.callbackPriority=0,null;var y=r.callbackNode;if(rf()&&r.callbackNode!==y)return null;var A=nn;return A=Fn(r,r===Mn?A:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),A===0?null:(Sy(r,A,f),F0(r,vt()),r.callbackNode!=null&&r.callbackNode===y?Hd.bind(null,r):null)}function zl(r,f){if(rf())return null;Sy(r,f,!0)}function Yd(){$y(function(){(Sn&6)!==0?Yt(gr,Np):j0()})}function Lp(){if(mo===0){var r=Mo;r===0&&(r=Jn,Jn<<=1,(Jn&261888)===0&&(Jn=256)),mo=r}return mo}function Py(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:hi(""+r)}function Pl(r,f){var y=f.ownerDocument.createElement("input");return y.name=f.name,y.value=f.value,r.id&&y.setAttribute("form",r.id),f.parentNode.insertBefore(y,f),r=new FormData(r),y.parentNode.removeChild(y),r}function Xd(r,f,y,A,L){if(f==="submit"&&y&&y.stateNode===L){var F=Py((L[yn]||null).action),X=A.submitter;X&&(f=(f=X[yn]||null)?Py(f.formAction):X.getAttribute("formAction"),f!==null&&(F=f,X=null));var ie=new pl("action","action",null,A,L);r.push({event:ie,listeners:[{instance:null,listener:function(){if(A.defaultPrevented){if(mo!==0){var _e=X?Pl(L,X):new FormData(L);Uc(y,{pending:!0,data:_e,method:L.method,action:F},null,_e)}}else typeof F=="function"&&(ie.preventDefault(),_e=X?Pl(L,X):new FormData(L),Uc(y,{pending:!0,data:_e,method:L.method,action:F},F,_e))},currentTarget:L}]})}}for(var Mp=0;Mp<Wn.length;Mp++){var sf=Wn[Mp],q0=sf.toLowerCase(),G0=sf[0].toUpperCase()+sf.slice(1);xn(q0,"on"+G0)}xn(je,"onAnimationEnd"),xn(at,"onAnimationIteration"),xn(ct,"onAnimationStart"),xn("dblclick","onDoubleClick"),xn("focusin","onFocus"),xn("focusout","onBlur"),xn(mt,"onTransitionRun"),xn(Ct,"onTransitionStart"),xn(Pt,"onTransitionCancel"),xn(rn,"onTransitionEnd"),au("onMouseEnter",["mouseout","mouseover"]),au("onMouseLeave",["mouseout","mouseover"]),au("onPointerEnter",["pointerout","pointerover"]),au("onPointerLeave",["pointerout","pointerover"]),bu("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),bu("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),bu("onBeforeInput",["compositionend","keypress","textInput","paste"]),bu("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),bu("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),bu("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var of="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Uy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(of));function Vy(r,f){f=(f&4)!==0;for(var y=0;y<r.length;y++){var A=r[y],L=A.event;A=A.listeners;e:{var F=void 0;if(f)for(var X=A.length-1;0<=X;X--){var ie=A[X],_e=ie.instance,qe=ie.currentTarget;if(ie=ie.listener,_e!==F&&L.isPropagationStopped())break e;F=ie,L.currentTarget=qe;try{F(L)}catch(Qe){Yr(Qe)}L.currentTarget=null,F=_e}else for(X=0;X<A.length;X++){if(ie=A[X],_e=ie.instance,qe=ie.currentTarget,ie=ie.listener,_e!==F&&L.isPropagationStopped())break e;F=ie,L.currentTarget=qe;try{F(L)}catch(Qe){Yr(Qe)}L.currentTarget=null,F=_e}}}}function sn(r,f){var y=f[Wa];y===void 0&&(y=f[Wa]=new Set);var A=r+"__bubble";y.has(A)||(Zd(f,r,2,!1),y.add(A))}function z0(r,f,y){var A=0;f&&(A|=4),Zd(y,r,A,f)}var kp="_reactListening"+Math.random().toString(36).slice(2);function lf(r){if(!r[kp]){r[kp]=!0,fi.forEach(function(y){y!=="selectionchange"&&(Uy.has(y)||z0(y,!1,r),z0(y,!0,r))});var f=r.nodeType===9?r:r.ownerDocument;f===null||f[kp]||(f[kp]=!0,z0("selectionchange",!1,f))}}function Zd(r,f,y,A){switch(ah(f)){case 2:var L=Cs;break;case 8:L=As;break;default:L=Sr}y=L.bind(null,f,y,r),L=void 0,!ln||f!=="touchstart"&&f!=="touchmove"&&f!=="wheel"||(L=!0),A?L!==void 0?r.addEventListener(f,y,{capture:!0,passive:L}):r.addEventListener(f,y,!0):L!==void 0?r.addEventListener(f,y,{passive:L}):r.addEventListener(f,y,!1)}function P0(r,f,y,A,L){var F=A;if((f&1)===0&&(f&2)===0&&A!==null)e:for(;;){if(A===null)return;var X=A.tag;if(X===3||X===4){var ie=A.stateNode.containerInfo;if(ie===L)break;if(X===4)for(X=A.return;X!==null;){var _e=X.tag;if((_e===3||_e===4)&&X.stateNode.containerInfo===L)return;X=X.return}for(;ie!==null;){if(X=bn(ie),X===null)return;if(_e=X.tag,_e===5||_e===6||_e===26||_e===27){A=F=X;continue e}ie=ie.parentNode}}A=A.return}Ro(function(){var qe=F,Qe=br(y),tt=[];e:{var ze=un.get(r);if(ze!==void 0){var $e=pl,Et=r;switch(r){case"keypress":if(wa(y)===0)break e;case"keydown":case"keyup":$e=ml;break;case"focusin":Et="focus",$e=yc;break;case"focusout":Et="blur",$e=yc;break;case"beforeblur":case"afterblur":$e=yc;break;case"click":if(y.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$e=Io;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$e=Zf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$e=bc;break;case je:case at:case ct:$e=$f;break;case rn:$e=ki;break;case"scroll":case"scrollend":$e=Su;break;case"wheel":$e=Hr;break;case"copy":case"cut":case"paste":$e=Zs;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$e=Vr;break;case"toggle":case"beforetoggle":$e=Kf}var wt=(f&4)!==0,Bn=!wt&&(r==="scroll"||r==="scrollend"),Me=wt?ze!==null?ze+"Capture":null:ze;wt=[];for(var Ie=qe,Fe;Ie!==null;){var et=Ie;if(Fe=et.stateNode,et=et.tag,et!==5&&et!==26&&et!==27||Fe===null||Me===null||(et=Oa(Ie,Me),et!=null&&wt.push($d(Ie,et,Fe))),Bn)break;Ie=Ie.return}0<wt.length&&(ze=new $e(ze,Et,null,y,Qe),tt.push({event:ze,listeners:wt}))}}if((f&7)===0){e:{if(ze=r==="mouseover"||r==="pointerover",$e=r==="mouseout"||r==="pointerout",ze&&y!==vr&&(Et=y.relatedTarget||y.fromElement)&&(bn(Et)||Et[Ta]))break e;if(($e||ze)&&(ze=Qe.window===Qe?Qe:(ze=Qe.ownerDocument)?ze.defaultView||ze.parentWindow:window,$e?(Et=y.relatedTarget||y.toElement,$e=qe,Et=Et?bn(Et):null,Et!==null&&(Bn=v(Et),wt=Et.tag,Et!==Bn||wt!==5&&wt!==27&&wt!==6)&&(Et=null)):($e=null,Et=qe),$e!==Et)){if(wt=Io,et="onMouseLeave",Me="onMouseEnter",Ie="mouse",(r==="pointerout"||r==="pointerover")&&(wt=Vr,et="onPointerLeave",Me="onPointerEnter",Ie="pointer"),Bn=$e==null?ze:Ir($e),Fe=Et==null?ze:Ir(Et),ze=new wt(et,Ie+"leave",$e,y,Qe),ze.target=Bn,ze.relatedTarget=Fe,et=null,bn(Qe)===qe&&(wt=new wt(Me,Ie+"enter",Et,y,Qe),wt.target=Fe,wt.relatedTarget=Bn,et=wt),Bn=et,$e&&Et)t:{for(wt=Hy,Me=$e,Ie=Et,Fe=0,et=Me;et;et=wt(et))Fe++;et=0;for(var Dt=Ie;Dt;Dt=wt(Dt))et++;for(;0<Fe-et;)Me=wt(Me),Fe--;for(;0<et-Fe;)Ie=wt(Ie),et--;for(;Fe--;){if(Me===Ie||Ie!==null&&Me===Ie.alternate){wt=Me;break t}Me=wt(Me),Ie=wt(Ie)}wt=null}else wt=null;$e!==null&&Bp(tt,ze,$e,wt,!1),Et!==null&&Bn!==null&&Bp(tt,Bn,Et,wt,!0)}}e:{if(ze=qe?Ir(qe):window,$e=ze.nodeName&&ze.nodeName.toLowerCase(),$e==="select"||$e==="input"&&ze.type==="file")var _n=nd;else if(uu(ze))if(Ac)_n=ts;else{_n=Dc;var St=ad}else $e=ze.nodeName,!$e||$e.toLowerCase()!=="input"||ze.type!=="checkbox"&&ze.type!=="radio"?qe&&dl(qe.elementType)&&(_n=nd):_n=es;if(_n&&(_n=_n(r,qe))){Sc(tt,_n,y,Qe);break e}St&&St(r,ze,qe),r==="focusout"&&qe&&ze.type==="number"&&qe.memoizedProps.value!=null&&Gs(ze,"number",ze.value)}switch(St=qe?Ir(qe):window,r){case"focusin":(uu(St)||St.contentEditable==="true")&&(h=St,g=qe,E=null);break;case"focusout":E=g=h=null;break;case"mousedown":O=!0;break;case"contextmenu":case"mouseup":case"dragend":O=!1,G(tt,y,Qe);break;case"selectionchange":if(x)break;case"keydown":case"keyup":G(tt,y,Qe)}var Ut;if($s)e:{switch(r){case"compositionstart":var Zt="onCompositionStart";break e;case"compositionend":Zt="onCompositionEnd";break e;case"compositionupdate":Zt="onCompositionUpdate";break e}Zt=void 0}else Js?Ec(r,y)&&(Zt="onCompositionEnd"):r==="keydown"&&y.keyCode===229&&(Zt="onCompositionStart");Zt&&(ed&&y.locale!=="ko"&&(Js||Zt!=="onCompositionStart"?Zt==="onCompositionEnd"&&Js&&(Ut=mc()):(Li=Qe,pc="value"in Li?Li.value:Li.textContent,Js=!0)),St=Jd(qe,Zt),0<St.length&&(Zt=new Nh(Zt,r,null,y,Qe),tt.push({event:Zt,listeners:St}),Ut?Zt.data=Ut:(Ut=td(y),Ut!==null&&(Zt.data=Ut)))),(Ut=La?kh(r,y):Om(r,y))&&(Zt=Jd(qe,"onBeforeInput"),0<Zt.length&&(St=new Nh("onBeforeInput","beforeinput",null,y,Qe),tt.push({event:St,listeners:Zt}),St.data=Ut)),Xd(tt,r,qe,y,Qe)}Vy(tt,f)})}function $d(r,f,y){return{instance:r,listener:f,currentTarget:y}}function Jd(r,f){for(var y=f+"Capture",A=[];r!==null;){var L=r,F=L.stateNode;if(L=L.tag,L!==5&&L!==26&&L!==27||F===null||(L=Oa(r,y),L!=null&&A.unshift($d(r,L,F)),L=Oa(r,f),L!=null&&A.push($d(r,L,F))),r.tag===3)return A;r=r.return}return[]}function Hy(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function Bp(r,f,y,A,L){for(var F=f._reactName,X=[];y!==null&&y!==A;){var ie=y,_e=ie.alternate,qe=ie.stateNode;if(ie=ie.tag,_e!==null&&_e===A)break;ie!==5&&ie!==26&&ie!==27||qe===null||(_e=qe,L?(qe=Oa(y,F),qe!=null&&X.unshift($d(y,qe,_e))):L||(qe=Oa(y,F),qe!=null&&X.push($d(y,qe,_e)))),y=y.return}X.length!==0&&r.push({event:f,listeners:X})}var Yy=/\r\n?/g,U0=/\u0000|\uFFFD/g;function V0(r){return(typeof r=="string"?r:""+r).replace(Yy,`
156
+ `).replace(U0,"")}function H0(r,f){return f=V0(f),V0(r)===f}function kn(r,f,y,A,L,F){switch(y){case"children":typeof A=="string"?f==="body"||f==="textarea"&&A===""||wi(r,A):(typeof A=="number"||typeof A=="bigint")&&f!=="body"&&wi(r,""+A);break;case"className":fc(r,"class",A);break;case"tabIndex":fc(r,"tabindex",A);break;case"dir":case"role":case"viewBox":case"width":case"height":fc(r,y,A);break;case"style":wh(r,A,F);break;case"data":if(f!=="object"){fc(r,"data",A);break}case"src":case"href":if(A===""&&(f!=="a"||y!=="href")){r.removeAttribute(y);break}if(A==null||typeof A=="function"||typeof A=="symbol"||typeof A=="boolean"){r.removeAttribute(y);break}A=hi(""+A),r.setAttribute(y,A);break;case"action":case"formAction":if(typeof A=="function"){r.setAttribute(y,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof F=="function"&&(y==="formAction"?(f!=="input"&&kn(r,f,"name",L.name,L,null),kn(r,f,"formEncType",L.formEncType,L,null),kn(r,f,"formMethod",L.formMethod,L,null),kn(r,f,"formTarget",L.formTarget,L,null)):(kn(r,f,"encType",L.encType,L,null),kn(r,f,"method",L.method,L,null),kn(r,f,"target",L.target,L,null)));if(A==null||typeof A=="symbol"||typeof A=="boolean"){r.removeAttribute(y);break}A=hi(""+A),r.setAttribute(y,A);break;case"onClick":A!=null&&(r.onclick=Pr);break;case"onScroll":A!=null&&sn("scroll",r);break;case"onScrollEnd":A!=null&&sn("scrollend",r);break;case"dangerouslySetInnerHTML":if(A!=null){if(typeof A!="object"||!("__html"in A))throw Error(d(61));if(y=A.__html,y!=null){if(L.children!=null)throw Error(d(60));r.innerHTML=y}}break;case"multiple":r.multiple=A&&typeof A!="function"&&typeof A!="symbol";break;case"muted":r.muted=A&&typeof A!="function"&&typeof A!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(A==null||typeof A=="function"||typeof A=="boolean"||typeof A=="symbol"){r.removeAttribute("xlink:href");break}y=hi(""+A),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",y);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":A!=null&&typeof A!="function"&&typeof A!="symbol"?r.setAttribute(y,""+A):r.removeAttribute(y);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":A&&typeof A!="function"&&typeof A!="symbol"?r.setAttribute(y,""):r.removeAttribute(y);break;case"capture":case"download":A===!0?r.setAttribute(y,""):A!==!1&&A!=null&&typeof A!="function"&&typeof A!="symbol"?r.setAttribute(y,A):r.removeAttribute(y);break;case"cols":case"rows":case"size":case"span":A!=null&&typeof A!="function"&&typeof A!="symbol"&&!isNaN(A)&&1<=A?r.setAttribute(y,A):r.removeAttribute(y);break;case"rowSpan":case"start":A==null||typeof A=="function"||typeof A=="symbol"||isNaN(A)?r.removeAttribute(y):r.setAttribute(y,A);break;case"popover":sn("beforetoggle",r),sn("toggle",r),$u(r,"popover",A);break;case"xlinkActuate":Eu(r,"http://www.w3.org/1999/xlink","xlink:actuate",A);break;case"xlinkArcrole":Eu(r,"http://www.w3.org/1999/xlink","xlink:arcrole",A);break;case"xlinkRole":Eu(r,"http://www.w3.org/1999/xlink","xlink:role",A);break;case"xlinkShow":Eu(r,"http://www.w3.org/1999/xlink","xlink:show",A);break;case"xlinkTitle":Eu(r,"http://www.w3.org/1999/xlink","xlink:title",A);break;case"xlinkType":Eu(r,"http://www.w3.org/1999/xlink","xlink:type",A);break;case"xmlBase":Eu(r,"http://www.w3.org/XML/1998/namespace","xml:base",A);break;case"xmlLang":Eu(r,"http://www.w3.org/XML/1998/namespace","xml:lang",A);break;case"xmlSpace":Eu(r,"http://www.w3.org/XML/1998/namespace","xml:space",A);break;case"is":$u(r,"is",A);break;case"innerText":case"textContent":break;default:(!(2<y.length)||y[0]!=="o"&&y[0]!=="O"||y[1]!=="n"&&y[1]!=="N")&&(y=Gn.get(y)||y,$u(r,y,A))}}function Y0(r,f,y,A,L,F){switch(y){case"style":wh(r,A,F);break;case"dangerouslySetInnerHTML":if(A!=null){if(typeof A!="object"||!("__html"in A))throw Error(d(61));if(y=A.__html,y!=null){if(L.children!=null)throw Error(d(60));r.innerHTML=y}}break;case"children":typeof A=="string"?wi(r,A):(typeof A=="number"||typeof A=="bigint")&&wi(r,""+A);break;case"onScroll":A!=null&&sn("scroll",r);break;case"onScrollEnd":A!=null&&sn("scrollend",r);break;case"onClick":A!=null&&(r.onclick=Pr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!nu.hasOwnProperty(y))e:{if(y[0]==="o"&&y[1]==="n"&&(L=y.endsWith("Capture"),f=y.slice(2,L?y.length-7:void 0),F=r[yn]||null,F=F!=null?F[y]:null,typeof F=="function"&&r.removeEventListener(f,F,L),typeof A=="function")){typeof F!="function"&&F!==null&&(y in r?r[y]=null:r.hasAttribute(y)&&r.removeAttribute(y)),r.addEventListener(f,A,L);break e}y in r?r[y]=A:A===!0?r.setAttribute(y,""):$u(r,y,A)}}}function xr(r,f,y){switch(f){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":sn("error",r),sn("load",r);var A=!1,L=!1,F;for(F in y)if(y.hasOwnProperty(F)){var X=y[F];if(X!=null)switch(F){case"src":A=!0;break;case"srcSet":L=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(d(137,f));default:kn(r,f,F,X,y,null)}}L&&kn(r,f,"srcSet",y.srcSet,y,null),A&&kn(r,f,"src",y.src,y,null);return;case"input":sn("invalid",r);var ie=F=X=L=null,_e=null,qe=null;for(A in y)if(y.hasOwnProperty(A)){var Qe=y[A];if(Qe!=null)switch(A){case"name":L=Qe;break;case"type":X=Qe;break;case"checked":_e=Qe;break;case"defaultChecked":qe=Qe;break;case"value":F=Qe;break;case"defaultValue":ie=Qe;break;case"children":case"dangerouslySetInnerHTML":if(Qe!=null)throw Error(d(137,f));break;default:kn(r,f,A,Qe,y,null)}}fl(r,F,ie,_e,qe,X,L,!1);return;case"select":sn("invalid",r),A=X=F=null;for(L in y)if(y.hasOwnProperty(L)&&(ie=y[L],ie!=null))switch(L){case"value":F=ie;break;case"defaultValue":X=ie;break;case"multiple":A=ie;default:kn(r,f,L,ie,y,null)}f=F,y=X,r.multiple=!!A,f!=null?Ao(r,!!A,f,!1):y!=null&&Ao(r,!!A,y,!0);return;case"textarea":sn("invalid",r),F=L=A=null;for(X in y)if(y.hasOwnProperty(X)&&(ie=y[X],ie!=null))switch(X){case"value":A=ie;break;case"defaultValue":L=ie;break;case"children":F=ie;break;case"dangerouslySetInnerHTML":if(ie!=null)throw Error(d(91));break;default:kn(r,f,X,ie,y,null)}zs(r,A,L,F);return;case"option":for(_e in y)y.hasOwnProperty(_e)&&(A=y[_e],A!=null)&&(_e==="selected"?r.selected=A&&typeof A!="function"&&typeof A!="symbol":kn(r,f,_e,A,y,null));return;case"dialog":sn("beforetoggle",r),sn("toggle",r),sn("cancel",r),sn("close",r);break;case"iframe":case"object":sn("load",r);break;case"video":case"audio":for(A=0;A<of.length;A++)sn(of[A],r);break;case"image":sn("error",r),sn("load",r);break;case"details":sn("toggle",r);break;case"embed":case"source":case"link":sn("error",r),sn("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(qe in y)if(y.hasOwnProperty(qe)&&(A=y[qe],A!=null))switch(qe){case"children":case"dangerouslySetInnerHTML":throw Error(d(137,f));default:kn(r,f,qe,A,y,null)}return;default:if(dl(f)){for(Qe in y)y.hasOwnProperty(Qe)&&(A=y[Qe],A!==void 0&&Y0(r,f,Qe,A,y,void 0));return}}for(ie in y)y.hasOwnProperty(ie)&&(A=y[ie],A!=null&&kn(r,f,ie,A,y,null))}function X0(r,f,y,A){switch(f){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var L=null,F=null,X=null,ie=null,_e=null,qe=null,Qe=null;for($e in y){var tt=y[$e];if(y.hasOwnProperty($e)&&tt!=null)switch($e){case"checked":break;case"value":break;case"defaultValue":_e=tt;default:A.hasOwnProperty($e)||kn(r,f,$e,null,A,tt)}}for(var ze in A){var $e=A[ze];if(tt=y[ze],A.hasOwnProperty(ze)&&($e!=null||tt!=null))switch(ze){case"type":F=$e;break;case"name":L=$e;break;case"checked":qe=$e;break;case"defaultChecked":Qe=$e;break;case"value":X=$e;break;case"defaultValue":ie=$e;break;case"children":case"dangerouslySetInnerHTML":if($e!=null)throw Error(d(137,f));break;default:$e!==tt&&kn(r,f,ze,$e,A,tt)}}cl(r,X,ie,_e,qe,Qe,F,L);return;case"select":$e=X=ie=ze=null;for(F in y)if(_e=y[F],y.hasOwnProperty(F)&&_e!=null)switch(F){case"value":break;case"multiple":$e=_e;default:A.hasOwnProperty(F)||kn(r,f,F,null,A,_e)}for(L in A)if(F=A[L],_e=y[L],A.hasOwnProperty(L)&&(F!=null||_e!=null))switch(L){case"value":ze=F;break;case"defaultValue":ie=F;break;case"multiple":X=F;default:F!==_e&&kn(r,f,L,F,A,_e)}f=ie,y=X,A=$e,ze!=null?Ao(r,!!y,ze,!1):!!A!=!!y&&(f!=null?Ao(r,!!y,f,!0):Ao(r,!!y,y?[]:"",!1));return;case"textarea":$e=ze=null;for(ie in y)if(L=y[ie],y.hasOwnProperty(ie)&&L!=null&&!A.hasOwnProperty(ie))switch(ie){case"value":break;case"children":break;default:kn(r,f,ie,null,A,L)}for(X in A)if(L=A[X],F=y[X],A.hasOwnProperty(X)&&(L!=null||F!=null))switch(X){case"value":ze=L;break;case"defaultValue":$e=L;break;case"children":break;case"dangerouslySetInnerHTML":if(L!=null)throw Error(d(91));break;default:L!==F&&kn(r,f,X,L,A,F)}hc(r,ze,$e);return;case"option":for(var Et in y)ze=y[Et],y.hasOwnProperty(Et)&&ze!=null&&!A.hasOwnProperty(Et)&&(Et==="selected"?r.selected=!1:kn(r,f,Et,null,A,ze));for(_e in A)ze=A[_e],$e=y[_e],A.hasOwnProperty(_e)&&ze!==$e&&(ze!=null||$e!=null)&&(_e==="selected"?r.selected=ze&&typeof ze!="function"&&typeof ze!="symbol":kn(r,f,_e,ze,A,$e));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var wt in y)ze=y[wt],y.hasOwnProperty(wt)&&ze!=null&&!A.hasOwnProperty(wt)&&kn(r,f,wt,null,A,ze);for(qe in A)if(ze=A[qe],$e=y[qe],A.hasOwnProperty(qe)&&ze!==$e&&(ze!=null||$e!=null))switch(qe){case"children":case"dangerouslySetInnerHTML":if(ze!=null)throw Error(d(137,f));break;default:kn(r,f,qe,ze,A,$e)}return;default:if(dl(f)){for(var Bn in y)ze=y[Bn],y.hasOwnProperty(Bn)&&ze!==void 0&&!A.hasOwnProperty(Bn)&&Y0(r,f,Bn,void 0,A,ze);for(Qe in A)ze=A[Qe],$e=y[Qe],!A.hasOwnProperty(Qe)||ze===$e||ze===void 0&&$e===void 0||Y0(r,f,Qe,ze,A,$e);return}}for(var Me in y)ze=y[Me],y.hasOwnProperty(Me)&&ze!=null&&!A.hasOwnProperty(Me)&&kn(r,f,Me,null,A,ze);for(tt in A)ze=A[tt],$e=y[tt],!A.hasOwnProperty(tt)||ze===$e||ze==null&&$e==null||kn(r,f,tt,ze,A,$e)}function jp(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Z0(){if(typeof performance.getEntriesByType=="function"){for(var r=0,f=0,y=performance.getEntriesByType("resource"),A=0;A<y.length;A++){var L=y[A],F=L.transferSize,X=L.initiatorType,ie=L.duration;if(F&&ie&&jp(X)){for(X=0,ie=L.responseEnd,A+=1;A<y.length;A++){var _e=y[A],qe=_e.startTime;if(qe>ie)break;var Qe=_e.transferSize,tt=_e.initiatorType;Qe&&jp(tt)&&(_e=_e.responseEnd,X+=Qe*(_e<ie?1:(ie-qe)/(_e-qe)))}if(--A,f+=8*(F+X)/(L.duration/1e3),r++,10<r)break}}if(0<r)return f/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var Fp=null,qp=null;function Ko(r){return r.nodeType===9?r:r.ownerDocument}function Xy(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function $0(r,f){if(r===0)switch(f){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&f==="foreignObject"?0:r}function cf(r,f){return r==="textarea"||r==="noscript"||typeof f.children=="string"||typeof f.children=="number"||typeof f.children=="bigint"||typeof f.dangerouslySetInnerHTML=="object"&&f.dangerouslySetInnerHTML!==null&&f.dangerouslySetInnerHTML.__html!=null}var Gp=null;function i1(){var r=window.event;return r&&r.type==="popstate"?r===Gp?!1:(Gp=r,!0):(Gp=null,!1)}var Wd=typeof setTimeout=="function"?setTimeout:void 0,Zy=typeof clearTimeout=="function"?clearTimeout:void 0,Ul=typeof Promise=="function"?Promise:void 0,$y=typeof queueMicrotask=="function"?queueMicrotask:typeof Ul<"u"?function(r){return Ul.resolve(null).then(r).catch(J0)}:Wd;function J0(r){setTimeout(function(){throw r})}function ju(r){return r==="head"}function W0(r,f){var y=f,A=0;do{var L=y.nextSibling;if(r.removeChild(y),L&&L.nodeType===8)if(y=L.data,y==="/$"||y==="/&"){if(A===0){r.removeChild(L),xf(f);return}A--}else if(y==="$"||y==="$?"||y==="$~"||y==="$!"||y==="&")A++;else if(y==="html")Vl(r.ownerDocument.documentElement);else if(y==="head"){y=r.ownerDocument.head,Vl(y);for(var F=y.firstChild;F;){var X=F.nextSibling,ie=F.nodeName;F[Ga]||ie==="SCRIPT"||ie==="STYLE"||ie==="LINK"&&F.rel.toLowerCase()==="stylesheet"||y.removeChild(F),F=X}}else y==="body"&&Vl(r.ownerDocument.body);y=L}while(y);xf(f)}function Ca(r,f){var y=r;r=0;do{var A=y.nextSibling;if(y.nodeType===1?f?(y._stashedDisplay=y.style.display,y.style.display="none"):(y.style.display=y._stashedDisplay||"",y.getAttribute("style")===""&&y.removeAttribute("style")):y.nodeType===3&&(f?(y._stashedText=y.nodeValue,y.nodeValue=""):y.nodeValue=y._stashedText||""),A&&A.nodeType===8)if(y=A.data,y==="/$"){if(r===0)break;r--}else y!=="$"&&y!=="$?"&&y!=="$~"&&y!=="$!"||r++;y=A}while(y)}function Qd(r){var f=r.firstChild;for(f&&f.nodeType===10&&(f=f.nextSibling);f;){var y=f;switch(f=f.nextSibling,y.nodeName){case"HTML":case"HEAD":case"BODY":Qd(y),Dr(y);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(y.rel.toLowerCase()==="stylesheet")continue}r.removeChild(y)}}function u1(r,f,y,A){for(;r.nodeType===1;){var L=y;if(r.nodeName.toLowerCase()!==f.toLowerCase()){if(!A&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(A){if(!r[Ga])switch(f){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(F=r.getAttribute("rel"),F==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(F!==L.rel||r.getAttribute("href")!==(L.href==null||L.href===""?null:L.href)||r.getAttribute("crossorigin")!==(L.crossOrigin==null?null:L.crossOrigin)||r.getAttribute("title")!==(L.title==null?null:L.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(F=r.getAttribute("src"),(F!==(L.src==null?null:L.src)||r.getAttribute("type")!==(L.type==null?null:L.type)||r.getAttribute("crossorigin")!==(L.crossOrigin==null?null:L.crossOrigin))&&F&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(f==="input"&&r.type==="hidden"){var F=L.name==null?null:""+L.name;if(L.type==="hidden"&&r.getAttribute("name")===F)return r}else return r;if(r=ui(r.nextSibling),r===null)break}return null}function Wt(r,f,y){if(f==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!y||(r=ui(r.nextSibling),r===null))return null;return r}function Jy(r,f){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!f||(r=ui(r.nextSibling),r===null))return null;return r}function hu(r){return r.data==="$?"||r.data==="$~"}function el(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function ff(r,f){var y=r.ownerDocument;if(r.data==="$~")r._reactRetry=f;else if(r.data!=="$?"||y.readyState!=="loading")f();else{var A=function(){f(),y.removeEventListener("DOMContentLoaded",A)};y.addEventListener("DOMContentLoaded",A),r._reactRetry=A}}function ui(r){for(;r!=null;r=r.nextSibling){var f=r.nodeType;if(f===1||f===3)break;if(f===8){if(f=r.data,f==="$"||f==="$!"||f==="$?"||f==="$~"||f==="&"||f==="F!"||f==="F")break;if(f==="/$"||f==="/&")return null}}return r}var Kd=null;function zp(r){r=r.nextSibling;for(var f=0;r;){if(r.nodeType===8){var y=r.data;if(y==="/$"||y==="/&"){if(f===0)return ui(r.nextSibling);f--}else y!=="$"&&y!=="$!"&&y!=="$?"&&y!=="$~"&&y!=="&"||f++}r=r.nextSibling}return null}function Fu(r){r=r.previousSibling;for(var f=0;r;){if(r.nodeType===8){var y=r.data;if(y==="$"||y==="$!"||y==="$?"||y==="$~"||y==="&"){if(f===0)return r;f--}else y!=="/$"&&y!=="/&"||f++}r=r.previousSibling}return null}function df(r,f,y){switch(f=Ko(y),r){case"html":if(r=f.documentElement,!r)throw Error(d(452));return r;case"head":if(r=f.head,!r)throw Error(d(453));return r;case"body":if(r=f.body,!r)throw Error(d(454));return r;default:throw Error(d(451))}}function Vl(r){for(var f=r.attributes;f.length;)r.removeAttributeNode(f[0]);Dr(r)}var Ci=new Map,eh=new Set;function kr(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var qu=Ce.d;Ce.d={f:s1,r:Wy,D:Ze,C:Rn,L:o1,m:Q0,X:yo,S:K0,M:tl};function s1(){var r=qu.f(),f=nf();return r||f}function Wy(r){var f=Di(r);f!==null&&f.tag===5&&f.type==="form"?Ln(f):qu.r(r)}var hf=typeof document>"u"?null:document;function Ba(r,f,y){var A=hf;if(A&&typeof f=="string"&&f){var L=Ia(f);L='link[rel="'+r+'"][href="'+L+'"]',typeof y=="string"&&(L+='[crossorigin="'+y+'"]'),eh.has(L)||(eh.add(L),r={rel:r,crossOrigin:y,href:f},A.querySelector(L)===null&&(f=A.createElement("link"),xr(f,"link",r),Vt(f),A.head.appendChild(f)))}}function Ze(r){qu.D(r),Ba("dns-prefetch",r,null)}function Rn(r,f){qu.C(r,f),Ba("preconnect",r,f)}function o1(r,f,y){qu.L(r,f,y);var A=hf;if(A&&r&&f){var L='link[rel="preload"][as="'+Ia(f)+'"]';f==="image"&&y&&y.imageSrcSet?(L+='[imagesrcset="'+Ia(y.imageSrcSet)+'"]',typeof y.imageSizes=="string"&&(L+='[imagesizes="'+Ia(y.imageSizes)+'"]')):L+='[href="'+Ia(r)+'"]';var F=L;switch(f){case"style":F=Xi(r);break;case"script":F=Hl(r)}Ci.has(F)||(r=k({rel:"preload",href:f==="image"&&y&&y.imageSrcSet?void 0:r,as:f},y),Ci.set(F,r),A.querySelector(L)!==null||f==="style"&&A.querySelector(nl(F))||f==="script"&&A.querySelector(gf(F))||(f=A.createElement("link"),xr(f,"link",r),Vt(f),A.head.appendChild(f)))}}function Q0(r,f){qu.m(r,f);var y=hf;if(y&&r){var A=f&&typeof f.as=="string"?f.as:"script",L='link[rel="modulepreload"][as="'+Ia(A)+'"][href="'+Ia(r)+'"]',F=L;switch(A){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":F=Hl(r)}if(!Ci.has(F)&&(r=k({rel:"modulepreload",href:r},f),Ci.set(F,r),y.querySelector(L)===null)){switch(A){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(y.querySelector(gf(F)))return}A=y.createElement("link"),xr(A,"link",r),Vt(A),y.head.appendChild(A)}}}function K0(r,f,y){qu.S(r,f,y);var A=hf;if(A&&r){var L=Gr(A).hoistableStyles,F=Xi(r);f=f||"default";var X=L.get(F);if(!X){var ie={loading:0,preload:null};if(X=A.querySelector(nl(F)))ie.loading=5;else{r=k({rel:"stylesheet",href:r,"data-precedence":f},y),(y=Ci.get(F))&&Pp(r,y);var _e=X=A.createElement("link");Vt(_e),xr(_e,"link",r),_e._p=new Promise(function(qe,Qe){_e.onload=qe,_e.onerror=Qe}),_e.addEventListener("load",function(){ie.loading|=1}),_e.addEventListener("error",function(){ie.loading|=2}),ie.loading|=4,th(X,f,A)}X={type:"stylesheet",instance:X,count:1,state:ie},L.set(F,X)}}}function yo(r,f){qu.X(r,f);var y=hf;if(y&&r){var A=Gr(y).hoistableScripts,L=Hl(r),F=A.get(L);F||(F=y.querySelector(gf(L)),F||(r=k({src:r,async:!0},f),(f=Ci.get(L))&&Up(r,f),F=y.createElement("script"),Vt(F),xr(F,"link",r),y.head.appendChild(F)),F={type:"script",instance:F,count:1,state:null},A.set(L,F))}}function tl(r,f){qu.M(r,f);var y=hf;if(y&&r){var A=Gr(y).hoistableScripts,L=Hl(r),F=A.get(L);F||(F=y.querySelector(gf(L)),F||(r=k({src:r,async:!0,type:"module"},f),(f=Ci.get(L))&&Up(r,f),F=y.createElement("script"),Vt(F),xr(F,"link",r),y.head.appendChild(F)),F={type:"script",instance:F,count:1,state:null},A.set(L,F))}}function pf(r,f,y,A){var L=(L=pt.current)?kr(L):null;if(!L)throw Error(d(446));switch(r){case"meta":case"title":return null;case"style":return typeof y.precedence=="string"&&typeof y.href=="string"?(f=Xi(y.href),y=Gr(L).hoistableStyles,A=y.get(f),A||(A={type:"style",instance:null,count:0,state:null},y.set(f,A)),A):{type:"void",instance:null,count:0,state:null};case"link":if(y.rel==="stylesheet"&&typeof y.href=="string"&&typeof y.precedence=="string"){r=Xi(y.href);var F=Gr(L).hoistableStyles,X=F.get(r);if(X||(L=L.ownerDocument||L,X={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},F.set(r,X),(F=L.querySelector(nl(r)))&&!F._p&&(X.instance=F,X.state.loading=5),Ci.has(r)||(y={rel:"preload",as:"style",href:y.href,crossOrigin:y.crossOrigin,integrity:y.integrity,media:y.media,hrefLang:y.hrefLang,referrerPolicy:y.referrerPolicy},Ci.set(r,y),F||Qy(L,r,y,X.state))),f&&A===null)throw Error(d(528,""));return X}if(f&&A!==null)throw Error(d(529,""));return null;case"script":return f=y.async,y=y.src,typeof y=="string"&&f&&typeof f!="function"&&typeof f!="symbol"?(f=Hl(y),y=Gr(L).hoistableScripts,A=y.get(f),A||(A={type:"script",instance:null,count:0,state:null},y.set(f,A)),A):{type:"void",instance:null,count:0,state:null};default:throw Error(d(444,r))}}function Xi(r){return'href="'+Ia(r)+'"'}function nl(r){return'link[rel="stylesheet"]['+r+"]"}function mf(r){return k({},r,{"data-precedence":r.precedence,precedence:null})}function Qy(r,f,y,A){r.querySelector('link[rel="preload"][as="style"]['+f+"]")?A.loading=1:(f=r.createElement("link"),A.preload=f,f.addEventListener("load",function(){return A.loading|=1}),f.addEventListener("error",function(){return A.loading|=2}),xr(f,"link",y),Vt(f),r.head.appendChild(f))}function Hl(r){return'[src="'+Ia(r)+'"]'}function gf(r){return"script[async]"+r}function eg(r,f,y){if(f.count++,f.instance===null)switch(f.type){case"style":var A=r.querySelector('style[data-href~="'+Ia(y.href)+'"]');if(A)return f.instance=A,Vt(A),A;var L=k({},y,{"data-href":y.href,"data-precedence":y.precedence,href:null,precedence:null});return A=(r.ownerDocument||r).createElement("style"),Vt(A),xr(A,"style",L),th(A,y.precedence,r),f.instance=A;case"stylesheet":L=Xi(y.href);var F=r.querySelector(nl(L));if(F)return f.state.loading|=4,f.instance=F,Vt(F),F;A=mf(y),(L=Ci.get(L))&&Pp(A,L),F=(r.ownerDocument||r).createElement("link"),Vt(F);var X=F;return X._p=new Promise(function(ie,_e){X.onload=ie,X.onerror=_e}),xr(F,"link",A),f.state.loading|=4,th(F,y.precedence,r),f.instance=F;case"script":return F=Hl(y.src),(L=r.querySelector(gf(F)))?(f.instance=L,Vt(L),L):(A=y,(L=Ci.get(F))&&(A=k({},y),Up(A,L)),r=r.ownerDocument||r,L=r.createElement("script"),Vt(L),xr(L,"link",A),r.head.appendChild(L),f.instance=L);case"void":return null;default:throw Error(d(443,f.type))}else f.type==="stylesheet"&&(f.state.loading&4)===0&&(A=f.instance,f.state.loading|=4,th(A,y.precedence,r));return f.instance}function th(r,f,y){for(var A=y.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),L=A.length?A[A.length-1]:null,F=L,X=0;X<A.length;X++){var ie=A[X];if(ie.dataset.precedence===f)F=ie;else if(F!==L)break}F?F.parentNode.insertBefore(r,F.nextSibling):(f=y.nodeType===9?y.head:y,f.insertBefore(r,f.firstChild))}function Pp(r,f){r.crossOrigin==null&&(r.crossOrigin=f.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=f.referrerPolicy),r.title==null&&(r.title=f.title)}function Up(r,f){r.crossOrigin==null&&(r.crossOrigin=f.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=f.referrerPolicy),r.integrity==null&&(r.integrity=f.integrity)}var yf=null;function tg(r,f,y){if(yf===null){var A=new Map,L=yf=new Map;L.set(y,A)}else L=yf,A=L.get(y),A||(A=new Map,L.set(y,A));if(A.has(r))return A;for(A.set(r,null),y=y.getElementsByTagName(r),L=0;L<y.length;L++){var F=y[L];if(!(F[Ga]||F[hn]||r==="link"&&F.getAttribute("rel")==="stylesheet")&&F.namespaceURI!=="http://www.w3.org/2000/svg"){var X=F.getAttribute(f)||"";X=r+X;var ie=A.get(X);ie?ie.push(F):A.set(X,[F])}}return A}function Vp(r,f,y){r=r.ownerDocument||r,r.head.insertBefore(y,f==="title"?r.querySelector("head > title"):null)}function ng(r,f,y){if(y===1||f.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof f.precedence!="string"||typeof f.href!="string"||f.href==="")break;return!0;case"link":if(typeof f.rel!="string"||typeof f.href!="string"||f.href===""||f.onLoad||f.onError)break;return f.rel==="stylesheet"?(r=f.disabled,typeof f.precedence=="string"&&r==null):!0;case"script":if(f.async&&typeof f.async!="function"&&typeof f.async!="symbol"&&!f.onLoad&&!f.onError&&f.src&&typeof f.src=="string")return!0}return!1}function Ai(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function Ss(r,f,y,A){if(y.type==="stylesheet"&&(typeof A.media!="string"||matchMedia(A.media).matches!==!1)&&(y.state.loading&4)===0){if(y.instance===null){var L=Xi(A.href),F=f.querySelector(nl(L));if(F){f=F._p,f!==null&&typeof f=="object"&&typeof f.then=="function"&&(r.count++,r=Hp.bind(r),f.then(r,r)),y.state.loading|=4,y.instance=F,Vt(F);return}F=f.ownerDocument||f,A=mf(A),(L=Ci.get(L))&&Pp(A,L),F=F.createElement("link"),Vt(F);var X=F;X._p=new Promise(function(ie,_e){X.onload=ie,X.onerror=_e}),xr(F,"link",A),y.instance=F}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(y,f),(f=y.state.preload)&&(y.state.loading&3)===0&&(r.count++,y=Hp.bind(r),f.addEventListener("load",y),f.addEventListener("error",y))}}var Zi=0;function ag(r,f){return r.stylesheets&&r.count===0&&Xp(r,r.stylesheets),0<r.count||0<r.imgCount?function(y){var A=setTimeout(function(){if(r.stylesheets&&Xp(r,r.stylesheets),r.unsuspend){var F=r.unsuspend;r.unsuspend=null,F()}},6e4+f);0<r.imgBytes&&Zi===0&&(Zi=62500*Z0());var L=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Xp(r,r.stylesheets),r.unsuspend)){var F=r.unsuspend;r.unsuspend=null,F()}},(r.imgBytes>Zi?50:800)+f);return r.unsuspend=y,function(){r.unsuspend=null,clearTimeout(A),clearTimeout(L)}}:null}function Hp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xp(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Yp=null;function Xp(r,f){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Yp=new Map,f.forEach(ur,r),Yp=null,Hp.call(r))}function ur(r,f){if(!(f.state.loading&4)){var y=Yp.get(r);if(y)var A=y.get(null);else{y=new Map,Yp.set(r,y);for(var L=r.querySelectorAll("link[data-precedence],style[data-precedence]"),F=0;F<L.length;F++){var X=L[F];(X.nodeName==="LINK"||X.getAttribute("media")!=="not all")&&(y.set(X.dataset.precedence,X),A=X)}A&&y.set(null,A)}L=f.instance,X=L.getAttribute("data-precedence"),F=y.get(X)||A,F===A&&y.set(null,L),y.set(X,L),this.count++,A=Hp.bind(this),L.addEventListener("load",A),L.addEventListener("error",A),F?F.parentNode.insertBefore(L,F.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(L,r.firstChild)),f.state.loading|=4}}var nh={$$typeof:te,Provider:null,Consumer:null,_currentValue:ke,_currentValue2:ke,_threadCount:0};function rg(r,f,y,A,L,F,X,ie,_e){this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Xe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xe(0),this.hiddenUpdates=Xe(null),this.identifierPrefix=A,this.onUncaughtError=L,this.onCaughtError=F,this.onRecoverableError=X,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_e,this.incompleteTransitions=new Map}function Zp(r,f,y,A,L,F,X,ie,_e,qe,Qe,tt){return r=new rg(r,f,y,X,_e,qe,Qe,tt,ie),f=1,F===!0&&(f|=24),F=da(3,null,null,f),r.current=F,F.stateNode=r,f=cd(),f.refCount++,r.pooledCache=f,f.refCount++,F.memoizedState={element:A,isDehydrated:y,cache:f},yd(F),r}function Yl(r){return r?(r=$r,r):$r}function Ky(r,f,y,A,L,F){L=Yl(L),A.context===null?A.context=L:A.pendingContext=L,A=uo(f),A.payload={element:y},F=F===void 0?null:F,F!==null&&(A.callback=F),y=Gi(r,A,f),y!==null&&(ii(y,r,f),Go(y,r,f))}function $p(r,f){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var y=r.retryLane;r.retryLane=y!==0&&y<f?y:f}}function ig(r,f){$p(r,f),(r=r.alternate)&&$p(r,f)}function ev(r){if(r.tag===13||r.tag===31){var f=su(r,67108864);f!==null&&ii(f,r,67108864),ig(r,67108864)}}function Xl(r){if(r.tag===13||r.tag===31){var f=Si();f=qn(f);var y=su(r,f);y!==null&&ii(y,r,f),ig(r,f)}}var Ha=!0;function Cs(r,f,y,A){var L=de.T;de.T=null;var F=Ce.p;try{Ce.p=2,Sr(r,f,y,A)}finally{Ce.p=F,de.T=L}}function As(r,f,y,A){var L=de.T;de.T=null;var F=Ce.p;try{Ce.p=8,Sr(r,f,y,A)}finally{Ce.p=F,de.T=L}}function Sr(r,f,y,A){if(Ha){var L=ug(A);if(L===null)P0(r,f,A,Jp,y),vo(r,A);else if(l1(L,r,f,y,A))A.stopPropagation();else if(vo(r,A),f&4&&-1<si.indexOf(r)){for(;L!==null;){var F=Di(L);if(F!==null)switch(F.tag){case 3:if(F=F.stateNode,F.current.memoizedState.isDehydrated){var X=Ra(F.pendingLanes);if(X!==0){var ie=F;for(ie.pendingLanes|=2,ie.entangledLanes|=2;X;){var _e=1<<31-$n(X);ie.entanglements[1]|=_e,X&=~_e}xs(F),(Sn&6)===0&&(An=vt()+500,go(0))}}break;case 31:case 13:ie=su(F,2),ie!==null&&ii(ie,F,2),nf(),ig(F,2)}if(F=ug(A),F===null&&P0(r,f,A,Jp,y),F===L)break;L=F}L!==null&&A.stopPropagation()}else P0(r,f,A,null,y)}}function ug(r){return r=br(r),vf(r)}var Jp=null;function vf(r){if(Jp=null,r=bn(r),r!==null){var f=v(r);if(f===null)r=null;else{var y=f.tag;if(y===13){if(r=S(f),r!==null)return r;r=null}else if(y===31){if(r=C(f),r!==null)return r;r=null}else if(y===3){if(f.stateNode.current.memoizedState.isDehydrated)return f.tag===3?f.stateNode.containerInfo:null;r=null}else f!==r&&(r=null)}}return Jp=r,null}function ah(r){switch(r){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ja()){case gr:return 2;case yr:return 8;case xt:case vu:return 32;case zt:return 268435456;default:return 32}default:return 32}}var bf=!1,Ya=null,Cr=null,Br=null,al=new Map,pu=new Map,ea=[],si="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function vo(r,f){switch(r){case"focusin":case"focusout":Ya=null;break;case"dragenter":case"dragleave":Cr=null;break;case"mouseover":case"mouseout":Br=null;break;case"pointerover":case"pointerout":al.delete(f.pointerId);break;case"gotpointercapture":case"lostpointercapture":pu.delete(f.pointerId)}}function Zl(r,f,y,A,L,F){return r===null||r.nativeEvent!==F?(r={blockedOn:f,domEventName:y,eventSystemFlags:A,nativeEvent:F,targetContainers:[L]},f!==null&&(f=Di(f),f!==null&&ev(f)),r):(r.eventSystemFlags|=A,f=r.targetContainers,L!==null&&f.indexOf(L)===-1&&f.push(L),r)}function l1(r,f,y,A,L){switch(f){case"focusin":return Ya=Zl(Ya,r,f,y,A,L),!0;case"dragenter":return Cr=Zl(Cr,r,f,y,A,L),!0;case"mouseover":return Br=Zl(Br,r,f,y,A,L),!0;case"pointerover":var F=L.pointerId;return al.set(F,Zl(al.get(F)||null,r,f,y,A,L)),!0;case"gotpointercapture":return F=L.pointerId,pu.set(F,Zl(pu.get(F)||null,r,f,y,A,L)),!0}return!1}function tv(r){var f=bn(r.target);if(f!==null){var y=v(f);if(y!==null){if(f=y.tag,f===13){if(f=S(y),f!==null){r.blockedOn=f,ci(r.priority,function(){Xl(y)});return}}else if(f===31){if(f=C(y),f!==null){r.blockedOn=f,ci(r.priority,function(){Xl(y)});return}}else if(f===3&&y.stateNode.current.memoizedState.isDehydrated){r.blockedOn=y.tag===3?y.stateNode.containerInfo:null;return}}}r.blockedOn=null}function rh(r){if(r.blockedOn!==null)return!1;for(var f=r.targetContainers;0<f.length;){var y=ug(r.nativeEvent);if(y===null){y=r.nativeEvent;var A=new y.constructor(y.type,y);vr=A,y.target.dispatchEvent(A),vr=null}else return f=Di(y),f!==null&&ev(f),r.blockedOn=y,!1;f.shift()}return!0}function _f(r,f,y){rh(r)&&y.delete(f)}function nv(){bf=!1,Ya!==null&&rh(Ya)&&(Ya=null),Cr!==null&&rh(Cr)&&(Cr=null),Br!==null&&rh(Br)&&(Br=null),al.forEach(_f),pu.forEach(_f)}function Rs(r,f){r.blockedOn===f&&(r.blockedOn=null,bf||(bf=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,nv)))}var Ef=null;function av(r){Ef!==r&&(Ef=r,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Ef===r&&(Ef=null);for(var f=0;f<r.length;f+=3){var y=r[f],A=r[f+1],L=r[f+2];if(typeof A!="function"){if(vf(A||y)===null)continue;break}var F=Di(y);F!==null&&(r.splice(f,3),f-=3,Uc(F,{pending:!0,data:L,method:y.method,action:A},A,L))}}))}function xf(r){function f(_e){return Rs(_e,r)}Ya!==null&&Rs(Ya,r),Cr!==null&&Rs(Cr,r),Br!==null&&Rs(Br,r),al.forEach(f),pu.forEach(f);for(var y=0;y<ea.length;y++){var A=ea[y];A.blockedOn===r&&(A.blockedOn=null)}for(;0<ea.length&&(y=ea[0],y.blockedOn===null);)tv(y),y.blockedOn===null&&ea.shift();if(y=(r.ownerDocument||r).$$reactFormReplay,y!=null)for(A=0;A<y.length;A+=3){var L=y[A],F=y[A+1],X=L[yn]||null;if(typeof F=="function")X||av(y);else if(X){var ie=null;if(F&&F.hasAttribute("formAction")){if(L=F,X=F[yn]||null)ie=X.formAction;else if(vf(L)!==null)continue}else ie=X.action;typeof ie=="function"?y[A+1]=ie:(y.splice(A,3),A-=3),av(y)}}}function sg(){function r(F){F.canIntercept&&F.info==="react-transition"&&F.intercept({handler:function(){return new Promise(function(X){return L=X})},focusReset:"manual",scroll:"manual"})}function f(){L!==null&&(L(),L=null),A||setTimeout(y,20)}function y(){if(!A&&!navigation.transition){var F=navigation.currentEntry;F&&F.url!=null&&navigation.navigate(F.url,{state:F.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var A=!1,L=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",f),navigation.addEventListener("navigateerror",f),setTimeout(y,100),function(){A=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",f),navigation.removeEventListener("navigateerror",f),L!==null&&(L(),L=null)}}}function Wp(r){this._internalRoot=r}Qp.prototype.render=Wp.prototype.render=function(r){var f=this._internalRoot;if(f===null)throw Error(d(409));var y=f.current,A=Si();Ky(y,A,r,f,null,null)},Qp.prototype.unmount=Wp.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var f=r.containerInfo;Ky(r.current,2,null,r,null,null),nf(),f[Ta]=null}};function Qp(r){this._internalRoot=r}Qp.prototype.unstable_scheduleHydration=function(r){if(r){var f=li();r={blockedOn:null,target:r,priority:f};for(var y=0;y<ea.length&&f!==0&&f<ea[y].priority;y++);ea.splice(y,0,r),y===0&&tv(r)}};var og=n.version;if(og!=="19.2.5")throw Error(d(527,og,"19.2.5"));Ce.findDOMNode=function(r){var f=r._reactInternals;if(f===void 0)throw typeof r.render=="function"?Error(d(188)):(r=Object.keys(r).join(","),Error(d(268,r)));return r=N(f),r=r!==null?M(r):null,r=r===null?null:r.stateNode,r};var rv={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:de,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ih=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ih.isDisabled&&ih.supportsFiber)try{ra=ih.inject(rv),ia=ih}catch{}}return reactDomClient_production.createRoot=function(r,f){if(!m(r))throw Error(d(299));var y=!1,A="",L=lp,F=s0,X=cp;return f!=null&&(f.unstable_strictMode===!0&&(y=!0),f.identifierPrefix!==void 0&&(A=f.identifierPrefix),f.onUncaughtError!==void 0&&(L=f.onUncaughtError),f.onCaughtError!==void 0&&(F=f.onCaughtError),f.onRecoverableError!==void 0&&(X=f.onRecoverableError)),f=Zp(r,1,!1,null,null,y,A,null,L,F,X,sg),r[Ta]=f.current,lf(r),new Wp(f)},reactDomClient_production.hydrateRoot=function(r,f,y){if(!m(r))throw Error(d(299));var A=!1,L="",F=lp,X=s0,ie=cp,_e=null;return y!=null&&(y.unstable_strictMode===!0&&(A=!0),y.identifierPrefix!==void 0&&(L=y.identifierPrefix),y.onUncaughtError!==void 0&&(F=y.onUncaughtError),y.onCaughtError!==void 0&&(X=y.onCaughtError),y.onRecoverableError!==void 0&&(ie=y.onRecoverableError),y.formState!==void 0&&(_e=y.formState)),f=Zp(r,1,!0,f,y??null,A,L,_e,F,X,ie,sg),f.context=Yl(null),y=f.current,A=Si(),A=qn(A),L=uo(A),L.callback=null,Gi(y,L,A),y=A,f.current.lanes=y,ot(f,y),xs(f),r[Ta]=f.current,lf(r),new Qp(f)},reactDomClient_production.version="19.2.5",reactDomClient_production}var reactDomClient_development={},hasRequiredReactDomClient_development;function requireReactDomClient_development(){return hasRequiredReactDomClient_development||(hasRequiredReactDomClient_development=1,process$1.env.NODE_ENV!=="production"&&(function(){function t(e,a){for(e=e.memoizedState;e!==null&&0<a;)e=e.next,a--;return e}function n(e,a,o,b){if(o>=a.length)return b;var R=a[o],T=Ba(e)?e.slice():Wt({},e);return T[R]=n(e[R],a,o+1,b),T}function s(e,a,o){if(a.length!==o.length)console.warn("copyWithRename() expects paths of the same length");else{for(var b=0;b<o.length-1;b++)if(a[b]!==o[b]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return d(e,a,o,0)}}function d(e,a,o,b){var R=a[b],T=Ba(e)?e.slice():Wt({},e);return b+1===a.length?(T[o[b]]=T[R],Ba(T)?T.splice(R,1):delete T[R]):T[R]=d(e[R],a,o,b+1),T}function m(e,a,o){var b=a[o],R=Ba(e)?e.slice():Wt({},e);return o+1===a.length?(Ba(R)?R.splice(b,1):delete R[b],R):(R[b]=m(e[b],a,o+1),R)}function v(){return!1}function S(){return null}function C(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function I(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function N(){}function M(){}function k(e){var a=[];return e.forEach(function(o){a.push(o)}),a.sort().join(", ")}function z(e,a,o,b){return new Om(e,a,o,b)}function V(e,a){e.context===Rf&&(Bp(e.current,2,a,e,null,null),Hi())}function H(e,a){if(Is!==null){var o=a.staleFamilies;a=a.updatedFamilies,Bd(),kh(e.current,a,o),Hi()}}function W(e){Is=e}function J(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function K(e){var a=e,o=e;if(e.alternate)for(;a.return;)a=a.return;else{e=a;do a=e,(a.flags&4098)!==0&&(o=a.return),e=a.return;while(e)}return a.tag===3?o:null}function re(e){if(e.tag===13){var a=e.memoizedState;if(a===null&&(e=e.alternate,e!==null&&(a=e.memoizedState)),a!==null)return a.dehydrated}return null}function te(e){if(e.tag===31){var a=e.memoizedState;if(a===null&&(e=e.alternate,e!==null&&(a=e.memoizedState)),a!==null)return a.dehydrated}return null}function ue(e){if(K(e)!==e)throw Error("Unable to find node on an unmounted component.")}function se(e){var a=e.alternate;if(!a){if(a=K(e),a===null)throw Error("Unable to find node on an unmounted component.");return a!==e?null:e}for(var o=e,b=a;;){var R=o.return;if(R===null)break;var T=R.alternate;if(T===null){if(b=R.return,b!==null){o=b;continue}break}if(R.child===T.child){for(T=R.child;T;){if(T===o)return ue(R),e;if(T===b)return ue(R),a;T=T.sibling}throw Error("Unable to find node on an unmounted component.")}if(o.return!==b.return)o=R,b=T;else{for(var q=!1,U=R.child;U;){if(U===o){q=!0,o=R,b=T;break}if(U===b){q=!0,b=R,o=T;break}U=U.sibling}if(!q){for(U=T.child;U;){if(U===o){q=!0,o=T,b=R;break}if(U===b){q=!0,b=T,o=R;break}U=U.sibling}if(!q)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(o.alternate!==b)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(o.tag!==3)throw Error("Unable to find node on an unmounted component.");return o.stateNode.current===o?e:a}function ge(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e;for(e=e.child;e!==null;){if(a=ge(e),a!==null)return a;e=e.sibling}return null}function pe(e){return e===null||typeof e!="object"?null:(e=Wy&&e[Wy]||e["@@iterator"],typeof e=="function"?e:null)}function Ee(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===hf?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ff:return"Fragment";case Kd:return"Profiler";case ui:return"StrictMode";case Vl:return"Suspense";case Ci:return"SuspenseList";case qu:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case el:return"Portal";case Fu:return e.displayName||"Context";case zp:return(e._context.displayName||"Context")+".Consumer";case df:var a=e.render;return e=e.displayName,e||(e=a.displayName||a.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case eh:return a=e.displayName||null,a!==null?a:Ee(e.type)||"Memo";case kr:a=e._payload,e=e._init;try{return Ee(e(a))}catch{}}return null}function ce(e){return typeof e.tag=="number"?me(e):typeof e.name=="string"?e.name:null}function me(e){var a=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(a._context.displayName||"Context")+".Consumer";case 10:return a.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=a.render,e=e.displayName||e.name||"",a.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ee(a);case 8:return a===ui?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;break;case 29:if(a=e._debugInfo,a!=null){for(var o=a.length-1;0<=o;o--)if(typeof a[o].name=="string")return a[o].name}if(e.return!==null)return me(e.return)}return null}function Re(e){return{current:e}}function Ne(e,a){0>yo?console.error("Unexpected pop."):(a!==K0[yo]&&console.error("Unexpected Fiber popped."),e.current=Q0[yo],Q0[yo]=null,K0[yo]=null,yo--)}function we(e,a,o){yo++,Q0[yo]=e.current,K0[yo]=o,e.current=a}function De(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function Ge(e,a){we(Xi,a,e),we(pf,e,e),we(tl,null,e);var o=a.nodeType;switch(o){case 9:case 11:o=o===9?"#document":"#fragment",a=(a=a.documentElement)&&(a=a.namespaceURI)?Cy(a):oc;break;default:if(o=a.tagName,a=a.namespaceURI)a=Cy(a),a=po(a,o);else switch(o){case"svg":a=Dm;break;case"math":a=$v;break;default:a=oc}}o=o.toLowerCase(),o=Oi(null,o),o={context:a,ancestorInfo:o},Ne(tl,e),we(tl,o,e)}function de(e){Ne(tl,e),Ne(pf,e),Ne(Xi,e)}function Ce(){return De(tl.current)}function ke(e){e.memoizedState!==null&&we(nl,e,e);var a=De(tl.current),o=e.type,b=po(a.context,o);o=Oi(a.ancestorInfo,o),b={context:b,ancestorInfo:o},a!==b&&(we(pf,e,e),we(tl,b,e))}function We(e){pf.current===e&&(Ne(tl,e),Ne(pf,e)),nl.current===e&&(Ne(nl,e),Wg._currentValue=Dh)}function Ve(){}function Le(){if(mf===0){Qy=console.log,Hl=console.info,gf=console.warn,eg=console.error,th=console.group,Pp=console.groupCollapsed,Up=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ve,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}mf++}function Je(){if(mf--,mf===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Wt({},e,{value:Qy}),info:Wt({},e,{value:Hl}),warn:Wt({},e,{value:gf}),error:Wt({},e,{value:eg}),group:Wt({},e,{value:th}),groupCollapsed:Wt({},e,{value:Pp}),groupEnd:Wt({},e,{value:Up})})}0>mf&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function He(e){var a=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=a,e.startsWith(`Error: react-stack-top-frame
157
+ `)&&(e=e.slice(29)),a=e.indexOf(`
158
+ `),a!==-1&&(e=e.slice(a+1)),a=e.indexOf("react_stack_bottom_frame"),a!==-1&&(a=e.lastIndexOf(`
159
+ `,a)),a!==-1)e=e.slice(0,a);else return"";return e}function Pe(e){if(yf===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);yf=a&&a[1]||"",tg=-1<o.stack.indexOf(`
160
+ at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
161
+ `+yf+e+tg}function it(e,a){if(!e||Vp)return"";var o=ng.get(e);if(o!==void 0)return o;Vp=!0,o=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var b=null;b=Ze.H,Ze.H=null,Le();try{var R={DetermineComponentFrameRoot:function(){try{if(a){var ve=function(){throw Error()};if(Object.defineProperty(ve.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ve,[])}catch(lt){var Ue=lt}Reflect.construct(e,[],ve)}else{try{ve.call()}catch(lt){Ue=lt}e.call(ve.prototype)}}else{try{throw Error()}catch(lt){Ue=lt}(ve=e())&&typeof ve.catch=="function"&&ve.catch(function(){})}}catch(lt){if(lt&&Ue&&typeof lt.stack=="string")return[lt.stack,Ue.stack]}return[null,null]}};R.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var T=Object.getOwnPropertyDescriptor(R.DetermineComponentFrameRoot,"name");T&&T.configurable&&Object.defineProperty(R.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var q=R.DetermineComponentFrameRoot(),U=q[0],Q=q[1];if(U&&Q){var ee=U.split(`
162
+ `),Te=Q.split(`
163
+ `);for(q=T=0;T<ee.length&&!ee[T].includes("DetermineComponentFrameRoot");)T++;for(;q<Te.length&&!Te[q].includes("DetermineComponentFrameRoot");)q++;if(T===ee.length||q===Te.length)for(T=ee.length-1,q=Te.length-1;1<=T&&0<=q&&ee[T]!==Te[q];)q--;for(;1<=T&&0<=q;T--,q--)if(ee[T]!==Te[q]){if(T!==1||q!==1)do if(T--,q--,0>q||ee[T]!==Te[q]){var Oe=`
164
+ `+ee[T].replace(" at new "," at ");return e.displayName&&Oe.includes("<anonymous>")&&(Oe=Oe.replace("<anonymous>",e.displayName)),typeof e=="function"&&ng.set(e,Oe),Oe}while(1<=T&&0<=q);break}}}finally{Vp=!1,Ze.H=b,Je(),Error.prepareStackTrace=o}return ee=(ee=e?e.displayName||e.name:"")?Pe(ee):"",typeof e=="function"&&ng.set(e,ee),ee}function pt(e,a){switch(e.tag){case 26:case 27:case 5:return Pe(e.type);case 16:return Pe("Lazy");case 13:return e.child!==a&&a!==null?Pe("Suspense Fallback"):Pe("Suspense");case 19:return Pe("SuspenseList");case 0:case 15:return it(e.type,!1);case 11:return it(e.type.render,!1);case 1:return it(e.type,!0);case 31:return Pe("Activity");default:return""}}function gt(e){try{var a="",o=null;do{a+=pt(e,o);var b=e._debugInfo;if(b)for(var R=b.length-1;0<=R;R--){var T=b[R];if(typeof T.name=="string"){var q=a;e:{var U=T.name,Q=T.env,ee=T.debugLocation;if(ee!=null){var Te=He(ee),Oe=Te.lastIndexOf(`
165
+ `),ve=Oe===-1?Te:Te.slice(Oe+1);if(ve.indexOf(U)!==-1){var Ue=`
166
+ `+ve;break e}}Ue=Pe(U+(Q?" ["+Q+"]":""))}a=q+Ue}}o=e,e=e.return}while(e);return a}catch(lt){return`
167
+ Error generating stack: `+lt.message+`
168
+ `+lt.stack}}function xe(e){return(e=e?e.displayName||e.name:"")?Pe(e):""}function Gt(){if(Ai===null)return null;var e=Ai._debugOwner;return e!=null?ce(e):null}function st(){if(Ai===null)return"";var e=Ai;try{var a="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:a+=Pe(e.type);break;case 13:a+=Pe("Suspense");break;case 19:a+=Pe("SuspenseList");break;case 31:a+=Pe("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||a!==""||(a+=xe(e.type));break;case 11:e._debugOwner||a!==""||(a+=xe(e.type.render))}for(;e;)if(typeof e.tag=="number"){var o=e;e=o._debugOwner;var b=o._debugStack;if(e&&b){var R=He(b);R!==""&&(a+=`
169
+ `+R)}}else if(e.debugStack!=null){var T=e.debugStack;(e=e.owner)&&T&&(a+=`
170
+ `+He(T))}else break;var q=a}catch(U){q=`
171
+ Error generating stack: `+U.message+`
172
+ `+U.stack}return q}function Be(e,a,o,b,R,T,q){var U=Ai;oe(e);try{return e!==null&&e._debugTask?e._debugTask.run(a.bind(null,o,b,R,T,q)):a(o,b,R,T,q)}finally{oe(U)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function oe(e){Ze.getCurrentStack=e===null?null:st,Ss=!1,Ai=e}function _t(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Rt(e){try{return kt(e),!1}catch{return!0}}function kt(e){return""+e}function dt(e,a){if(Rt(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",a,_t(e)),kt(e)}function Fa(e,a){if(Rt(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",a,_t(e)),kt(e)}function $a(e){if(Rt(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",_t(e)),kt(e)}function rt(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var a=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(a.isDisabled)return!0;if(!a.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Xl=a.inject(e),Ha=a}catch(o){console.error("React instrumentation encountered an error: %o.",o)}return!!a.checkDCE}function Yt(e){if(typeof ig=="function"&&ev(e),Ha&&typeof Ha.setStrictMode=="function")try{Ha.setStrictMode(Xl,e)}catch(a){Cs||(Cs=!0,console.error("React instrumentation encountered an error: %o",a))}}function on(e){return e>>>=0,e===0?32:31-(ug(e)/Jp|0)|0}function Jt(e){var a=e&42;if(a!==0)return a;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function mr(e,a,o){var b=e.pendingLanes;if(b===0)return 0;var R=0,T=e.suspendedLanes,q=e.pingedLanes;e=e.warmLanes;var U=b&134217727;return U!==0?(b=U&~T,b!==0?R=Jt(b):(q&=U,q!==0?R=Jt(q):o||(o=U&~e,o!==0&&(R=Jt(o))))):(U=b&~T,U!==0?R=Jt(U):q!==0?R=Jt(q):o||(o=b&~e,o!==0&&(R=Jt(o)))),R===0?0:a!==0&&a!==R&&(a&T)===0&&(T=R&-R,o=a&-a,T>=o||T===32&&(o&4194048)!==0)?a:R}function vt(e,a){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&a)===0}function Ja(e,a){switch(e){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function gr(){var e=bf;return bf<<=1,(bf&62914560)===0&&(bf=4194304),e}function yr(e){for(var a=[],o=0;31>o;o++)a.push(e);return a}function xt(e,a){e.pendingLanes|=a,a!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function vu(e,a,o,b,R,T){var q=e.pendingLanes;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=o,e.entangledLanes&=o,e.errorRecoveryDisabledLanes&=o,e.shellSuspendCounter=0;var U=e.entanglements,Q=e.expirationTimes,ee=e.hiddenUpdates;for(o=q&~o;0<o;){var Te=31-Sr(o),Oe=1<<Te;U[Te]=0,Q[Te]=-1;var ve=ee[Te];if(ve!==null)for(ee[Te]=null,Te=0;Te<ve.length;Te++){var Ue=ve[Te];Ue!==null&&(Ue.lane&=-536870913)}o&=~Oe}b!==0&&zt(e,b,0),T!==0&&R===0&&e.tag!==0&&(e.suspendedLanes|=T&~(q&~a))}function zt(e,a,o){e.pendingLanes|=a,e.suspendedLanes&=~a;var b=31-Sr(a);e.entangledLanes|=a,e.entanglements[b]=e.entanglements[b]|1073741824|o&261930}function Tt(e,a){var o=e.entangledLanes|=a;for(e=e.entanglements;o;){var b=31-Sr(o),R=1<<b;R&a|e[b]&a&&(e[b]|=a),o&=~R}}function Yu(e,a){var o=a&-a;return o=(o&42)!==0?1:ra(o),(o&(e.suspendedLanes|a))!==0?0:o}function ra(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ia(e,a,o){if(As)for(e=e.pendingUpdatersLaneMap;0<o;){var b=31-Sr(o),R=1<<b;e[b].add(a),o&=~R}}function bt(e,a){if(As)for(var o=e.pendingUpdatersLaneMap,b=e.memoizedUpdaters;0<a;){var R=31-Sr(a);e=1<<R,R=o[R],0<R.size&&(R.forEach(function(T){var q=T.alternate;q!==null&&b.has(q)||b.add(T)}),R.clear()),a&=~e}}function $n(e){return e&=-e,Ya<e?Cr<e?(e&134217727)!==0?Br:al:Cr:Ya}function Xu(){var e=Rn.p;return e!==0?e:(e=window.event,e===void 0?Br:Fp(e.type))}function tu(e,a){var o=Rn.p;try{return Rn.p=e,a()}finally{Rn.p=o}}function ua(e){delete e[ea],delete e[si],delete e[Zl],delete e[l1],delete e[tv]}function Jn(e){var a=e[ea];if(a)return a;for(var o=e.parentNode;o;){if(a=o[vo]||o[ea]){if(o=a.alternate,a.child!==null||o!==null&&o.child!==null)for(e=Gl(e);e!==null;){if(o=e[ea])return o;e=Gl(e)}return a}e=o,o=e.parentNode}return null}function Nn(e){if(e=e[ea]||e[vo]){var a=e.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return e}return null}function Ti(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Ra(e){var a=e[rh];return a||(a=e[rh]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Fn(e){e[_f]=!0}function ae(e,a){le(e,a),le(e+"Capture",a)}function le(e,a){Rs[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Rs[e]=a;var o=e.toLowerCase();for(Ef[o]=e,e==="onDoubleClick"&&(Ef.ondblclick=e),e=0;e<a.length;e++)nv.add(a[e])}function fe(e,a){av[a.type]||a.onChange||a.onInput||a.readOnly||a.disabled||a.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),a.onChange||a.readOnly||a.disabled||a.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Xe(e){return Zi.call(Wp,e)?!0:Zi.call(sg,e)?!1:xf.test(e)?Wp[e]=!0:(sg[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function ot(e,a,o){if(Xe(a)){if(!e.hasAttribute(a)){switch(typeof o){case"symbol":case"object":return o;case"function":return o;case"boolean":if(o===!1)return o}return o===void 0?void 0:null}return e=e.getAttribute(a),e===""&&o===!0?!0:(dt(o,a),e===""+o?o:e)}}function yt(e,a,o){if(Xe(a))if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":e.removeAttribute(a);return;case"boolean":var b=a.toLowerCase().slice(0,5);if(b!=="data-"&&b!=="aria-"){e.removeAttribute(a);return}}dt(o,a),e.setAttribute(a,""+o)}}function ut(e,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}dt(o,a),e.setAttribute(a,""+o)}}function tn(e,a,o,b){if(b===null)e.removeAttribute(o);else{switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(o);return}dt(b,o),e.setAttributeNS(a,o,""+b)}}function gn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return $a(e),e;default:return""}}function qn(e){var a=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Tr(e,a,o){var b=Object.getOwnPropertyDescriptor(e.constructor.prototype,a);if(!e.hasOwnProperty(a)&&typeof b<"u"&&typeof b.get=="function"&&typeof b.set=="function"){var R=b.get,T=b.set;return Object.defineProperty(e,a,{configurable:!0,get:function(){return R.call(this)},set:function(q){$a(q),o=""+q,T.call(this,q)}}),Object.defineProperty(e,a,{enumerable:b.enumerable}),{getValue:function(){return o},setValue:function(q){$a(q),o=""+q},stopTracking:function(){e._valueTracker=null,delete e[a]}}}}function li(e){if(!e._valueTracker){var a=qn(e)?"checked":"value";e._valueTracker=Tr(e,a,""+e[a])}}function ci(e){if(!e)return!1;var a=e._valueTracker;if(!a)return!0;var o=a.getValue(),b="";return e&&(b=qn(e)?e.checked?"true":"false":e.value),e=b,e!==o?(a.setValue(e),!0):!1}function sa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function hn(e){return e.replace(Qp,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function yn(e,a){a.checked===void 0||a.defaultChecked===void 0||rv||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Gt()||"A component",a.type),rv=!0),a.value===void 0||a.defaultValue===void 0||og||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Gt()||"A component",a.type),og=!0)}function Ta(e,a,o,b,R,T,q,U){e.name="",q!=null&&typeof q!="function"&&typeof q!="symbol"&&typeof q!="boolean"?(dt(q,"type"),e.type=q):e.removeAttribute("type"),a!=null?q==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+gn(a)):e.value!==""+gn(a)&&(e.value=""+gn(a)):q!=="submit"&&q!=="reset"||e.removeAttribute("value"),a!=null?Da(e,q,gn(a)):o!=null?Da(e,q,gn(o)):b!=null&&e.removeAttribute("value"),R==null&&T!=null&&(e.defaultChecked=!!T),R!=null&&(e.checked=R&&typeof R!="function"&&typeof R!="symbol"),U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"?(dt(U,"name"),e.name=""+gn(U)):e.removeAttribute("name")}function Wa(e,a,o,b,R,T,q,U){if(T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(dt(T,"type"),e.type=T),a!=null||o!=null){if(!(T!=="submit"&&T!=="reset"||a!=null)){li(e);return}o=o!=null?""+gn(o):"",a=a!=null?""+gn(a):o,U||a===e.value||(e.value=a),e.defaultValue=a}b=b??R,b=typeof b!="function"&&typeof b!="symbol"&&!!b,e.checked=U?e.checked:!!b,e.defaultChecked=!!b,q!=null&&typeof q!="function"&&typeof q!="symbol"&&typeof q!="boolean"&&(dt(q,"name"),e.name=q),li(e)}function Da(e,a,o){a==="number"&&sa(e.ownerDocument)===e||e.defaultValue===""+o||(e.defaultValue=""+o)}function Qa(e,a){a.value==null&&(typeof a.children=="object"&&a.children!==null?Qd.Children.forEach(a.children,function(o){o==null||typeof o=="string"||typeof o=="number"||typeof o=="bigint"||r||(r=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):a.dangerouslySetInnerHTML==null||f||(f=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),a.selected==null||ih||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),ih=!0)}function qa(){var e=Gt();return e?`
173
+
174
+ Check the render method of \``+e+"`.":""}function Ga(e,a,o,b){if(e=e.options,a){a={};for(var R=0;R<o.length;R++)a["$"+o[R]]=!0;for(o=0;o<e.length;o++)R=a.hasOwnProperty("$"+e[o].value),e[o].selected!==R&&(e[o].selected=R),R&&b&&(e[o].defaultSelected=!0)}else{for(o=""+gn(o),a=null,R=0;R<e.length;R++){if(e[R].value===o){e[R].selected=!0,b&&(e[R].defaultSelected=!0);return}a!==null||e[R].disabled||(a=e[R])}a!==null&&(a.selected=!0)}}function Dr(e,a){for(e=0;e<A.length;e++){var o=A[e];if(a[o]!=null){var b=Ba(a[o]);a.multiple&&!b?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",o,qa()):!a.multiple&&b&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",o,qa())}}a.value===void 0||a.defaultValue===void 0||y||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),y=!0)}function bn(e,a){a.value===void 0||a.defaultValue===void 0||L||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Gt()||"A component"),L=!0),a.children!=null&&a.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Di(e,a,o){if(a!=null&&(a=""+gn(a),a!==e.value&&(e.value=a),o==null)){e.defaultValue!==a&&(e.defaultValue=a);return}e.defaultValue=o!=null?""+gn(o):""}function Ir(e,a,o,b){if(a==null){if(b!=null){if(o!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ba(b)){if(1<b.length)throw Error("<textarea> can only have at most one child.");b=b[0]}o=b}o==null&&(o=""),a=o}o=gn(a),e.defaultValue=o,b=e.textContent,b===o&&b!==""&&b!==null&&(e.value=b),li(e)}function Gr(e,a){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-a?Gr(e.children[0],a):e}function Vt(e){return" "+" ".repeat(e)}function fi(e){return"+ "+" ".repeat(e)}function nu(e){return"- "+" ".repeat(e)}function bu(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function au(e,a){return F.test(e)?(e=JSON.stringify(e),e.length>a-2?8>a?'{"..."}':"{"+e.slice(0,a-7)+'..."}':"{"+e+"}"):e.length>a?5>a?'{"..."}':e.slice(0,a-3)+"...":e}function Or(e,a,o){var b=120-2*o;if(a===null)return fi(o)+au(e,b)+`
175
+ `;if(typeof a=="string"){for(var R=0;R<a.length&&R<e.length&&a.charCodeAt(R)===e.charCodeAt(R);R++);return R>b-8&&10<R&&(e="..."+e.slice(R-8),a="..."+a.slice(R-8)),fi(o)+au(e,b)+`
176
+ `+nu(o)+au(a,b)+`
177
+ `}return Vt(o)+au(e,b)+`
178
+ `}function _u(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(a,o){return o})}function Zu(e,a){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>a?5>a?'"..."':e.slice(0,a-4)+'..."':e;case"object":if(e===null)return"null";if(Ba(e))return"[...]";if(e.$$typeof===hu)return(a=Ee(e.type))?"<"+a+">":"<...>";var o=_u(e);if(o==="Object"){o="",a-=2;for(var b in e)if(e.hasOwnProperty(b)){var R=JSON.stringify(b);if(R!=='"'+b+'"'&&(b=R),a-=b.length-2,R=Zu(e[b],15>a?a:15),a-=R.length,0>a){o+=o===""?"...":", ...";break}o+=(o===""?"":",")+b+":"+R}return"{"+o+"}"}return o;case"function":return(a=e.displayName||e.name)?"function "+a:"function";default:return String(e)}}function Ii(e,a){return typeof e!="string"||F.test(e)?"{"+Zu(e,a-2)+"}":e.length>a-2?5>a?'"..."':'"'+e.slice(0,a-5)+'..."':'"'+e+'"'}function $u(e,a,o){var b=120-o.length-e.length,R=[],T;for(T in a)if(a.hasOwnProperty(T)&&T!=="children"){var q=Ii(a[T],120-o.length-T.length-1);b-=T.length+q.length+2,R.push(T+"="+q)}return R.length===0?o+"<"+e+`>
179
+ `:0<b?o+"<"+e+" "+R.join(" ")+`>
180
+ `:o+"<"+e+`
181
+ `+o+" "+R.join(`
182
+ `+o+" ")+`
183
+ `+o+`>
184
+ `}function fc(e,a,o){var b="",R=Wt({},a),T;for(T in e)if(e.hasOwnProperty(T)){delete R[T];var q=120-2*o-T.length-2,U=Zu(e[T],q);a.hasOwnProperty(T)?(q=Zu(a[T],q),b+=fi(o)+T+": "+U+`
185
+ `,b+=nu(o)+T+": "+q+`
186
+ `):b+=fi(o)+T+": "+U+`
187
+ `}for(var Q in R)R.hasOwnProperty(Q)&&(e=Zu(R[Q],120-2*o-Q.length-2),b+=nu(o)+Q+": "+e+`
188
+ `);return b}function Eu(e,a,o,b){var R="",T=new Map;for(ee in o)o.hasOwnProperty(ee)&&T.set(ee.toLowerCase(),ee);if(T.size===1&&T.has("children"))R+=$u(e,a,Vt(b));else{for(var q in a)if(a.hasOwnProperty(q)&&q!=="children"){var U=120-2*(b+1)-q.length-1,Q=T.get(q.toLowerCase());if(Q!==void 0){T.delete(q.toLowerCase());var ee=a[q];Q=o[Q];var Te=Ii(ee,U);U=Ii(Q,U),typeof ee=="object"&&ee!==null&&typeof Q=="object"&&Q!==null&&_u(ee)==="Object"&&_u(Q)==="Object"&&(2<Object.keys(ee).length||2<Object.keys(Q).length||-1<Te.indexOf("...")||-1<U.indexOf("..."))?R+=Vt(b+1)+q+`={{
189
+ `+fc(ee,Q,b+2)+Vt(b+1)+`}}
190
+ `:(R+=fi(b+1)+q+"="+Te+`
191
+ `,R+=nu(b+1)+q+"="+U+`
192
+ `)}else R+=Vt(b+1)+q+"="+Ii(a[q],U)+`
193
+ `}T.forEach(function(Oe){if(Oe!=="children"){var ve=120-2*(b+1)-Oe.length-1;R+=nu(b+1)+Oe+"="+Ii(o[Oe],ve)+`
194
+ `}}),R=R===""?Vt(b)+"<"+e+`>
195
+ `:Vt(b)+"<"+e+`
196
+ `+R+Vt(b)+`>
197
+ `}return e=o.children,a=a.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(T="",(typeof a=="string"||typeof a=="number"||typeof a=="bigint")&&(T=""+a),R+=Or(T,""+e,b+1)):(typeof a=="string"||typeof a=="number"||typeof a=="bigint")&&(R=e==null?R+Or(""+a,null,b+1):R+Or(""+a,void 0,b+1)),R}function zr(e,a){var o=bu(e);if(o===null){for(o="",e=e.child;e;)o+=zr(e,a),e=e.sibling;return o}return Vt(a)+"<"+o+`>
198
+ `}function ll(e,a){var o=Gr(e,a);if(o!==e&&(e.children.length!==1||e.children[0]!==o))return Vt(a)+`...
199
+ `+ll(o,a+1);o="";var b=e.fiber._debugInfo;if(b)for(var R=0;R<b.length;R++){var T=b[R].name;typeof T=="string"&&(o+=Vt(a)+"<"+T+`>
200
+ `,a++)}if(b="",R=e.fiber.pendingProps,e.fiber.tag===6)b=Or(R,e.serverProps,a),a++;else if(T=bu(e.fiber),T!==null)if(e.serverProps===void 0){b=a;var q=120-2*b-T.length-2,U="";for(ee in R)if(R.hasOwnProperty(ee)&&ee!=="children"){var Q=Ii(R[ee],15);if(q-=ee.length+Q.length+2,0>q){U+=" ...";break}U+=" "+ee+"="+Q}b=Vt(b)+"<"+T+U+`>
201
+ `,a++}else e.serverProps===null?(b=$u(T,R,fi(a)),a++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(b=Eu(T,R,e.serverProps,a),a++);var ee="";for(R=e.fiber.child,T=0;R&&T<e.children.length;)q=e.children[T],q.fiber===R?(ee+=ll(q,a),T++):ee+=zr(R,a),R=R.sibling;for(R&&0<e.children.length&&(ee+=Vt(a)+`...
202
+ `),R=e.serverTail,e.serverProps===null&&a--,e=0;e<R.length;e++)T=R[e],ee=typeof T=="string"?ee+(nu(a)+au(T,120-2*a)+`
203
+ `):ee+$u(T.type,T.props,nu(a));return o+b+ee}function dc(e){try{return`
204
+
205
+ `+ll(e,0)}catch{return""}}function qs(e,a,o){for(var b=a,R=null,T=0;b;)b===e&&(T=0),R={fiber:b,children:R!==null?[R]:[],serverProps:b===a?o:b===e?null:void 0,serverTail:[],distanceFromLeaf:T},T++,b=b.return;return R!==null?dc(R).replaceAll(/^[+-]/gm,">"):""}function Oi(e,a){var o=Wt({},e||Qe),b={tag:a};return ie.indexOf(a)!==-1&&(o.aTagInScope=null,o.buttonTagInScope=null,o.nobrTagInScope=null),_e.indexOf(a)!==-1&&(o.pTagInButtonScope=null),X.indexOf(a)!==-1&&a!=="address"&&a!=="div"&&a!=="p"&&(o.listItemTagAutoclosing=null,o.dlItemTagAutoclosing=null),o.current=b,a==="form"&&(o.formTag=b),a==="a"&&(o.aTagInScope=b),a==="button"&&(o.buttonTagInScope=b),a==="nobr"&&(o.nobrTagInScope=b),a==="p"&&(o.pTagInButtonScope=b),a==="li"&&(o.listItemTagAutoclosing=b),(a==="dd"||a==="dt")&&(o.dlItemTagAutoclosing=b),a==="#document"||a==="html"?o.containerTagInScope=null:o.containerTagInScope||(o.containerTagInScope=b),e!==null||a!=="#document"&&a!=="html"&&a!=="body"?o.implicitRootScope===!0&&(o.implicitRootScope=!1):o.implicitRootScope=!0,o}function di(e,a,o){switch(a){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(o)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!o)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return a!=="h1"&&a!=="h2"&&a!=="h3"&&a!=="h4"&&a!=="h5"&&a!=="h6";case"rp":case"rt":return qe.indexOf(a)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return a==null;case"head":return o||a===null;case"html":return o&&a==="#document"||a===null;case"body":return o&&(a==="#document"||a==="html")||a===null}return!0}function Ih(e,a){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return a.pTagInButtonScope;case"form":return a.formTag||a.pTagInButtonScope;case"li":return a.listItemTagAutoclosing;case"dd":case"dt":return a.dlItemTagAutoclosing;case"button":return a.buttonTagInScope;case"a":return a.aTagInScope;case"nobr":return a.nobrTagInScope}return null}function Ia(e,a){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===a)return e}e=e.return}return null}function cl(e,a){a=a||Qe;var o=a.current;if(a=(o=di(e,o&&o.tag,a.implicitRootScope)?null:o)?null:Ih(e,a),a=o||a,!a)return!0;var b=a.tag;if(a=String(!!o)+"|"+e+"|"+b,tt[a])return!1;tt[a]=!0;var R=(a=Ai)?Ia(a.return,b):null,T=a!==null&&R!==null?qs(R,a,null):"",q="<"+e+">";return o?(o="",b==="table"&&e==="tr"&&(o+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
206
+ This will cause a hydration error.%s`,q,b,o,T)):console.error(`In HTML, %s cannot be a descendant of <%s>.
207
+ This will cause a hydration error.%s`,q,b,T),a&&(e=a.return,R===null||e===null||R===e&&e._debugOwner===a._debugOwner||Be(R,function(){console.error(`<%s> cannot contain a nested %s.
208
+ See this log for the ancestor stack trace.`,b,q)})),!1}function fl(e,a,o){if(o||di("#text",a,!1))return!0;if(o="#text|"+a,tt[o])return!1;tt[o]=!0;var b=(o=Ai)?Ia(o,a):null;return o=o!==null&&b!==null?qs(b,o,o.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
209
+ This will cause a hydration error.%s`,a,o):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
210
+ This will cause a hydration error.%s`,a,o),!1}function Gs(e,a){if(a){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=a;return}}e.textContent=a}function Ao(e){return e.replace(Me,function(a,o){return o.toUpperCase()})}function hc(e,a,o){var b=a.indexOf("--")===0;b||(-1<a.indexOf("-")?Fe.hasOwnProperty(a)&&Fe[a]||(Fe[a]=!0,console.error("Unsupported style property %s. Did you mean %s?",a,Ao(a.replace(Bn,"ms-")))):wt.test(a)?Fe.hasOwnProperty(a)&&Fe[a]||(Fe[a]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",a,a.charAt(0).toUpperCase()+a.slice(1))):!Ie.test(o)||et.hasOwnProperty(o)&&et[o]||(et[o]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,a,o.replace(Ie,""))),typeof o=="number"&&(isNaN(o)?Dt||(Dt=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",a)):isFinite(o)||_n||(_n=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",a)))),o==null||typeof o=="boolean"||o===""?b?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="":b?e.setProperty(a,o):typeof o!="number"||o===0||St.has(a)?a==="float"?e.cssFloat=o:(Fa(o,a),e[a]=(""+o).trim()):e[a]=o+"px"}function zs(e,a,o){if(a!=null&&typeof a!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(a&&Object.freeze(a),e=e.style,o!=null){if(a){var b={};if(o){for(var R in o)if(o.hasOwnProperty(R)&&!a.hasOwnProperty(R))for(var T=ze[R]||[R],q=0;q<T.length;q++)b[T[q]]=R}for(var U in a)if(a.hasOwnProperty(U)&&(!o||o[U]!==a[U]))for(R=ze[U]||[U],T=0;T<R.length;T++)b[R[T]]=U;U={};for(var Q in a)for(R=ze[Q]||[Q],T=0;T<R.length;T++)U[R[T]]=Q;Q={};for(var ee in b)if(R=b[ee],(T=U[ee])&&R!==T&&(q=R+","+T,!Q[q])){Q[q]=!0,q=console;var Te=a[R];q.error.call(q,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",Te==null||typeof Te=="boolean"||Te===""?"Removing":"Updating",R,T)}}for(var Oe in o)!o.hasOwnProperty(Oe)||a!=null&&a.hasOwnProperty(Oe)||(Oe.indexOf("--")===0?e.setProperty(Oe,""):Oe==="float"?e.cssFloat="":e[Oe]="");for(var ve in a)ee=a[ve],a.hasOwnProperty(ve)&&o[ve]!==ee&&hc(e,ve,ee)}else for(b in a)a.hasOwnProperty(b)&&hc(e,b,a[b])}function wi(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Oh(e){return Cn.get(e)||e}function Yf(e,a){if(Zi.call(Kp,a)&&Kp[a])return!0;if(k_.test(a)){if(e="aria-"+a.slice(4).toLowerCase(),e=iv.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",a),Kp[a]=!0;if(a!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",a,e),Kp[a]=!0}if(M_.test(a)){if(e=a.toLowerCase(),e=iv.hasOwnProperty(e)?e:null,e==null)return Kp[a]=!0,!1;a!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",a,e),Kp[a]=!0)}return!0}function wh(e,a){var o=[],b;for(b in a)Yf(e,b)||o.push(b);a=o.map(function(R){return"`"+R+"`"}).join(", "),o.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",a,e):1<o.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",a,e)}function dl(e,a,o,b){if(Zi.call($i,a)&&$i[a])return!0;var R=a.toLowerCase();if(R==="onfocusin"||R==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),$i[a]=!0;if(typeof o=="function"&&(e==="form"&&a==="action"||e==="input"&&a==="formAction"||e==="button"&&a==="formAction"))return!0;if(b!=null){if(e=b.possibleRegistrationNames,b.registrationNameDependencies.hasOwnProperty(a))return!0;if(b=e.hasOwnProperty(R)?e[R]:null,b!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",a,b),$i[a]=!0;if(Cb.test(a))return console.error("Unknown event handler property `%s`. It will be ignored.",a),$i[a]=!0}else if(Cb.test(a))return B_.test(a)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",a),$i[a]=!0;if(j_.test(a)||F_.test(a))return!0;if(R==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),$i[a]=!0;if(R==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),$i[a]=!0;if(R==="is"&&o!==null&&o!==void 0&&typeof o!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof o),$i[a]=!0;if(typeof o=="number"&&isNaN(o))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",a),$i[a]=!0;if(Gu.hasOwnProperty(R)){if(R=Gu[R],R!==a)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",a,R),$i[a]=!0}else if(a!==R)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",a,R),$i[a]=!0;switch(a){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof o){case"boolean":switch(a){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return R=a.toLowerCase().slice(0,5),R==="data-"||R==="aria-"?!0:(o?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',o,a,a,o,a):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',o,a,a,o,a,a,a),$i[a]=!0)}case"function":case"symbol":return $i[a]=!0,!1;case"string":if(o==="false"||o==="true"){switch(a){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",o,a,o==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',a,o),$i[a]=!0}}return!0}function Gn(e,a,o){var b=[],R;for(R in a)dl(e,R,a[R],o)||b.push(R);a=b.map(function(T){return"`"+T+"`"}).join(", "),b.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",a,e):1<b.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",a,e)}function Ni(e){return q_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function hi(){}function Pr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function vr(e){var a=Nn(e);if(a&&(e=a.stateNode)){var o=e[si]||null;e:switch(e=a.stateNode,a.type){case"input":if(Ta(e,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),a=o.name,o.type==="radio"&&a!=null){for(o=e;o.parentNode;)o=o.parentNode;for(dt(a,"name"),o=o.querySelectorAll('input[name="'+hn(""+a)+'"][type="radio"]'),a=0;a<o.length;a++){var b=o[a];if(b!==e&&b.form===e.form){var R=b[si]||null;if(!R)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Ta(b,R.value,R.defaultValue,R.defaultValue,R.checked,R.defaultChecked,R.type,R.name)}}for(a=0;a<o.length;a++)b=o[a],b.form===e.form&&ci(b)}break e;case"textarea":Di(e,o.value,o.defaultValue);break e;case"select":a=o.value,a!=null&&Ga(e,!!o.multiple,a,!1)}}}function br(e,a,o){if(c1)return e(a,o);c1=!0;try{var b=e(a);return b}finally{if(c1=!1,(em!==null||tm!==null)&&(Hi(),em&&(a=em,e=tm,tm=em=null,vr(a),e)))for(a=0;a<e.length;a++)vr(e[a])}}function Ur(e,a){var o=e.stateNode;if(o===null)return null;var b=o[si]||null;if(b===null)return null;o=b[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(b=!b.disabled)||(e=e.type,b=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!b;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error("Expected `"+a+"` listener to be a function, instead got a value of `"+typeof o+"` type.");return o}function Ps(){if(uv)return uv;var e,a=d1,o=a.length,b,R="value"in Sf?Sf.value:Sf.textContent,T=R.length;for(e=0;e<o&&a[e]===R[e];e++);var q=o-e;for(b=1;b<=q&&a[o-b]===R[T-b];b++);return uv=R.slice(e,1<b?1-b:void 0)}function hl(e){var a=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&a===13&&(e=13)):e=a,e===10&&(e=13),32<=e||e===13?e:0}function Us(){return!0}function Ro(){return!1}function Oa(e){function a(o,b,R,T,q){this._reactName=o,this._targetInst=R,this.type=b,this.nativeEvent=T,this.target=q,this.currentTarget=null;for(var U in e)e.hasOwnProperty(U)&&(o=e[U],this[U]=o?o(T):T[U]);return this.isDefaultPrevented=(T.defaultPrevented!=null?T.defaultPrevented:T.returnValue===!1)?Us:Ro,this.isPropagationStopped=Ro,this}return Wt(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Us)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Us)},persist:function(){},isPersistent:Us}),a}function ru(e){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(e):(e=Q_[e])?!!a[e]:!1}function ln(){return ru}function _r(e,a){switch(e){case"keyup":return cE.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==Db;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Li(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function pc(e,a){switch(e){case"compositionend":return Li(a);case"keypress":return a.which!==Ob?null:(Nb=!0,wb);case"textInput":return e=a.data,e===wb&&Nb?null:e;default:return null}}function Ju(e,a){if(nm)return e==="compositionend"||!g1&&_r(e,a)?(e=Ps(),uv=d1=Sf=null,nm=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Ib&&a.locale!=="ko"?null:a.data;default:return null}}function mc(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a==="input"?!!dE[e.type]:a==="textarea"}function wa(e){if(!rl)return!1;e="on"+e;var a=e in document;return a||(a=document.createElement("div"),a.setAttribute(e,"return;"),a=typeof a[e]=="function"),a}function To(e,a,o,b){em?tm?tm.push(b):tm=[b]:em=b,a=ku(a,"onChange"),0<a.length&&(o=new sv("onChange","change",null,o,b),e.push({event:o,listeners:a}))}function gc(e){On(e,0)}function Na(e){var a=Ti(e);if(ci(a))return e}function xu(e,a){if(e==="change")return a}function pl(){pg&&(pg.detachEvent("onpropertychange",Vs),mg=pg=null)}function Vs(e){if(e.propertyName==="value"&&Na(mg)){var a=[];To(a,mg,e,Pr(e)),br(gc,a)}}function Su(e,a,o){e==="focusin"?(pl(),pg=a,mg=o,pg.attachEvent("onpropertychange",Vs)):e==="focusout"&&pl()}function Do(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Na(mg)}function Xf(e,a){if(e==="click")return Na(a)}function Ka(e,a){if(e==="input"||e==="change")return Na(a)}function Cu(e,a){return e===a&&(e!==0||1/e===1/a)||e!==e&&a!==a}function Io(e,a){if(Ji(e,a))return!0;if(typeof e!="object"||e===null||typeof a!="object"||a===null)return!1;var o=Object.keys(e),b=Object.keys(a);if(o.length!==b.length)return!1;for(b=0;b<o.length;b++){var R=o[b];if(!Zi.call(a,R)||!Ji(e[R],a[R]))return!1}return!0}function Hs(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zf(e,a){var o=Hs(e);e=0;for(var b;o;){if(o.nodeType===3){if(b=e+o.textContent.length,e<=a&&b>=a)return{node:o,offset:a-e};e=b}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Hs(o)}}function Ys(e,a){return e&&a?e===a?!0:e&&e.nodeType===3?!1:a&&a.nodeType===3?Ys(e,a.parentNode):"contains"in e?e.contains(a):e.compareDocumentPosition?!!(e.compareDocumentPosition(a)&16):!1:!1}function yc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var a=sa(e.document);a instanceof e.HTMLIFrameElement;){try{var o=typeof a.contentWindow.location.href=="string"}catch{o=!1}if(o)e=a.contentWindow;else break;a=sa(e.document)}return a}function mi(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a&&(a==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||a==="textarea"||e.contentEditable==="true")}function $f(e,a,o){var b=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;b1||am==null||am!==sa(b)||(b=am,"selectionStart"in b&&mi(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),gg&&Io(gg,b)||(gg=b,b=ku(v1,"onSelect"),0<b.length&&(a=new sv("onSelect","select",null,a,o),e.push({event:a,listeners:b}),a.target=am)))}function Xs(e,a){var o={};return o[e.toLowerCase()]=a.toLowerCase(),o["Webkit"+e]="webkit"+a,o["Moz"+e]="moz"+a,o}function Zs(e){if(_1[e])return _1[e];if(!rm[e])return e;var a=rm[e],o;for(o in a)if(a.hasOwnProperty(o)&&o in Mb)return _1[e]=a[o];return e}function Mi(e,a){qb.set(e,a),ae(a,[e])}function Nh(e){for(var a=lv,o=0;o<e.length;o++){var b=e[o];if(typeof b=="object"&&b!==null)if(Ba(b)&&b.length===2&&typeof b[0]=="string"){if(a!==lv&&a!==T1)return A1;a=T1}else return A1;else{if(typeof b=="function"||typeof b=="string"&&50<b.length||a!==lv&&a!==R1)return A1;a=R1}}return a}function Jf(e,a,o,b){for(var R in e)Zi.call(e,R)&&R[0]!=="_"&&iu(R,e[R],a,o,b)}function iu(e,a,o,b,R){switch(typeof a){case"object":if(a===null){a="null";break}else{if(a.$$typeof===hu){var T=Ee(a.type)||"…",q=a.key;a=a.props;var U=Object.keys(a),Q=U.length;if(q==null&&Q===0){a="<"+T+" />";break}if(3>b||Q===1&&U[0]==="children"&&q==null){a="<"+T+" … />";break}o.push([R+"  ".repeat(b)+e,"<"+T]),q!==null&&iu("key",q,o,b+1,R),e=!1;for(var ee in a)ee==="children"?a.children!=null&&(!Ba(a.children)||0<a.children.length)&&(e=!0):Zi.call(a,ee)&&ee[0]!=="_"&&iu(ee,a[ee],o,b+1,R);o.push(["",e?">…</"+T+">":"/>"]);return}if(T=Object.prototype.toString.call(a),T=T.slice(8,T.length-1),T==="Array"){if(ee=Nh(a),ee===R1||ee===lv){a=JSON.stringify(a);break}else if(ee===T1){for(o.push([R+"  ".repeat(b)+e,""]),e=0;e<a.length;e++)T=a[e],iu(T[0],T[1],o,b+1,R);return}}if(T==="Promise"){if(a.status==="fulfilled"){if(T=o.length,iu(e,a.value,o,b,R),o.length>T){o=o[T],o[1]="Promise<"+(o[1]||"Object")+">";return}}else if(a.status==="rejected"&&(T=o.length,iu(e,a.reason,o,b,R),o.length>T)){o=o[T],o[1]="Rejected Promise<"+o[1]+">";return}o.push(["  ".repeat(b)+e,"Promise"]);return}T==="Object"&&(ee=Object.getPrototypeOf(a))&&typeof ee.constructor=="function"&&(T=ee.constructor.name),o.push([R+"  ".repeat(b)+e,T==="Object"?3>b?"":"…":T]),3>b&&Jf(a,o,b+1,R);return}case"function":a=a.name===""?"() => {}":a.name+"() {}";break;case"string":a=a===bE?"…":JSON.stringify(a);break;case"undefined":a="undefined";break;case"boolean":a=a?"true":"false";break;default:a=String(a)}o.push([R+"  ".repeat(b)+e,a])}function Lh(e,a,o,b){var R=!0;for(q in e)q in a||(o.push([cv+"  ".repeat(b)+q,"…"]),R=!1);for(var T in a)if(T in e){var q=e[T],U=a[T];if(q!==U){if(b===0&&T==="children")R="  ".repeat(b)+T,o.push([cv+R,"…"],[fv+R,"…"]);else{if(!(3<=b)){if(typeof q=="object"&&typeof U=="object"&&q!==null&&U!==null&&q.$$typeof===U.$$typeof)if(U.$$typeof===hu){if(q.type===U.type&&q.key===U.key){q=Ee(U.type)||"…",R="  ".repeat(b)+T,q="<"+q+" … />",o.push([cv+R,q],[fv+R,q]),R=!1;continue}}else{var Q=Object.prototype.toString.call(q),ee=Object.prototype.toString.call(U);if(Q===ee&&(ee==="[object Object]"||ee==="[object Array]")){Q=[Pb+"  ".repeat(b)+T,ee==="[object Array]"?"Array":""],o.push(Q),ee=o.length,Lh(q,U,o,b+1)?ee===o.length&&(Q[1]="Referentially unequal but deeply equal objects. Consider memoization."):R=!1;continue}}else if(typeof q=="function"&&typeof U=="function"&&q.name===U.name&&q.length===U.length&&(Q=Function.prototype.toString.call(q),ee=Function.prototype.toString.call(U),Q===ee)){q=U.name===""?"() => {}":U.name+"() {}",o.push([Pb+"  ".repeat(b)+T,q+" Referentially unequal function closure. Consider memoization."]);continue}}iu(T,q,o,b,cv),iu(T,U,o,b,fv)}R=!1}}else o.push([fv+"  ".repeat(b)+T,"…"]),R=!1;return R}function za(e){vn=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function zn(e,a,o,b){ta&&(Af.start=a,Af.end=o,$l.color="warning",$l.tooltipText=b,$l.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,b,Af)):performance.measure(b,Af))}function vc(e,a,o){zn(e,a,o,"Reconnect")}function ml(e,a,o,b,R){var T=me(e);if(T!==null&&ta){var q=e.alternate,U=e.actualDuration;if(q===null||q.child!==e.child)for(var Q=e.child;Q!==null;Q=Q.sibling)U-=Q.actualDuration;b=.5>U?b?"tertiary-light":"primary-light":10>U?b?"tertiary":"primary":100>U?b?"tertiary-dark":"primary-dark":"error";var ee=e.memoizedProps;U=e._debugTask,ee!==null&&q!==null&&q.memoizedProps!==ee?(Q=[_E],ee=Lh(q.memoizedProps,ee,Q,0),1<Q.length&&(ee&&!Cf&&(q.lanes&R)===0&&100<e.actualDuration?(Cf=!0,Q[0]=EE,$l.color="warning",$l.tooltipText=Ub):($l.color=b,$l.tooltipText=T),$l.properties=Q,Af.start=a,Af.end=o,U!=null?U.run(performance.measure.bind(performance,"​"+T,Af)):performance.measure("​"+T,Af))):U!=null?U.run(console.timeStamp.bind(console,T,a,o,Ts,void 0,b)):console.timeStamp(T,a,o,Ts,void 0,b)}}function Wf(e,a,o,b){if(ta){var R=me(e);if(R!==null){for(var T=null,q=[],U=0;U<b.length;U++){var Q=b[U];T==null&&Q.source!==null&&(T=Q.source._debugTask),Q=Q.value,q.push(["Error",typeof Q=="object"&&Q!==null&&typeof Q.message=="string"?String(Q.message):String(Q)])}e.key!==null&&iu("key",e.key,q,0,""),e.memoizedProps!==null&&Jf(e.memoizedProps,q,0,""),T==null&&(T=e._debugTask),e={start:a,end:o,detail:{devtools:{color:"error",track:Ts,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:q}}},T?T.run(performance.measure.bind(performance,"​"+R,e)):performance.measure("​"+R,e)}}}function Vr(e,a,o,b,R){if(R!==null){if(ta){var T=me(e);if(T!==null){b=[];for(var q=0;q<R.length;q++){var U=R[q].value;b.push(["Error",typeof U=="object"&&U!==null&&typeof U.message=="string"?String(U.message):String(U)])}e.key!==null&&iu("key",e.key,b,0,""),e.memoizedProps!==null&&Jf(e.memoizedProps,b,0,""),a={start:a,end:o,detail:{devtools:{color:"error",track:Ts,tooltipText:"A lifecycle or effect errored",properties:b}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+T,a)):performance.measure("​"+T,a)}}}else T=me(e),T!==null&&ta&&(R=1>b?"secondary-light":100>b?"secondary":500>b?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,T,a,o,Ts,void 0,R)):console.timeStamp(T,a,o,Ts,void 0,R))}function Mh(e,a,o,b){if(ta&&!(a<=e)){var R=(o&738197653)===o?"tertiary-dark":"primary-dark";o=(o&536870912)===o?"Prepared":(o&201326741)===o?"Hydrated":"Render",b?b.run(console.timeStamp.bind(console,o,e,a,vn,pn,R)):console.timeStamp(o,e,a,vn,pn,R)}}function bc(e,a,o,b){!ta||a<=e||(o=(o&738197653)===o?"tertiary-dark":"primary-dark",b?b.run(console.timeStamp.bind(console,"Prewarm",e,a,vn,pn,o)):console.timeStamp("Prewarm",e,a,vn,pn,o))}function Qf(e,a,o,b){!ta||a<=e||(o=(o&738197653)===o?"tertiary-dark":"primary-dark",b?b.run(console.timeStamp.bind(console,"Suspended",e,a,vn,pn,o)):console.timeStamp("Suspended",e,a,vn,pn,o))}function ki(e,a,o,b,R,T){if(ta&&!(a<=e)){o=[];for(var q=0;q<b.length;q++){var U=b[q].value;o.push(["Recoverable Error",typeof U=="object"&&U!==null&&typeof U.message=="string"?String(U.message):String(U)])}e={start:e,end:a,detail:{devtools:{color:"primary-dark",track:vn,trackGroup:pn,tooltipText:R?"Hydration Failed":"Recovered after Error",properties:o}}},T?T.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function _c(e,a,o,b){!ta||a<=e||(b?b.run(console.timeStamp.bind(console,"Errored",e,a,vn,pn,"error")):console.timeStamp("Errored",e,a,vn,pn,"error"))}function Hr(e,a,o,b){!ta||a<=e||(b?b.run(console.timeStamp.bind(console,o,e,a,vn,pn,"secondary-light")):console.timeStamp(o,e,a,vn,pn,"secondary-light"))}function Oo(e,a,o,b,R){if(ta&&!(a<=e)){for(var T=[],q=0;q<o.length;q++){var U=o[q].value;T.push(["Error",typeof U=="object"&&U!==null&&typeof U.message=="string"?String(U.message):String(U)])}e={start:e,end:a,detail:{devtools:{color:"error",track:vn,trackGroup:pn,tooltipText:b?"Remaining Effects Errored":"Commit Errored",properties:T}}},R?R.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function Kf(e,a,o){!ta||a<=e||console.timeStamp("Animating",e,a,vn,pn,"secondary-dark")}function gl(){for(var e=im,a=D1=im=0;a<e;){var o=Ds[a];Ds[a++]=null;var b=Ds[a];Ds[a++]=null;var R=Ds[a];Ds[a++]=null;var T=Ds[a];if(Ds[a++]=null,b!==null&&R!==null){var q=b.pending;q===null?R.next=R:(R.next=q.next,q.next=R),b.pending=R}T!==0&&ed(o,R,T)}}function $s(e,a,o,b){Ds[im++]=e,Ds[im++]=a,Ds[im++]=o,Ds[im++]=b,D1|=b,e.lanes|=b,e=e.alternate,e!==null&&(e.lanes|=b)}function Wu(e,a,o,b){return $s(e,a,o,b),yl(e)}function La(e,a){return $s(e,null,null,a),yl(e)}function ed(e,a,o){e.lanes|=o;var b=e.alternate;b!==null&&(b.lanes|=o);for(var R=!1,T=e.return;T!==null;)T.childLanes|=o,b=T.alternate,b!==null&&(b.childLanes|=o),T.tag===22&&(e=T.stateNode,e===null||e._visibility&yg||(R=!0)),e=T,T=T.return;return e.tag===3?(T=e.stateNode,R&&a!==null&&(R=31-Sr(o),e=T.hiddenUpdates,b=e[R],b===null?e[R]=[a]:b.push(a),a.lane=o|536870912),T):null}function yl(e){if(Vg>jE)throw xh=Vg=0,Hg=sb=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");xh>FE&&(xh=0,Hg=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&du(e);for(var a=e,o=a.return;o!==null;)a.alternate===null&&(a.flags&4098)!==0&&du(e),a=o,o=a.return;return a.tag===3?a.stateNode:null}function Qu(e){if(Is===null)return e;var a=Is(e);return a===void 0?e:a.current}function Ec(e){if(Is===null)return e;var a=Is(e);return a===void 0?e!=null&&typeof e.render=="function"&&(a=Qu(e.render),e.render!==a)?(a={$$typeof:df,render:a},e.displayName!==void 0&&(a.displayName=e.displayName),a):e:a.current}function td(e,a){if(Is===null)return!1;var o=e.elementType;a=a.type;var b=!1,R=typeof a=="object"&&a!==null?a.$$typeof:null;switch(e.tag){case 1:typeof a=="function"&&(b=!0);break;case 0:(typeof a=="function"||R===kr)&&(b=!0);break;case 11:(R===df||R===kr)&&(b=!0);break;case 14:case 15:(R===eh||R===kr)&&(b=!0);break;default:return!1}return!!(b&&(e=Is(o),e!==void 0&&e===Is(a)))}function Js(e){Is!==null&&typeof WeakSet=="function"&&(um===null&&(um=new WeakSet),um.add(e))}function kh(e,a,o){do{var b=e,R=b.alternate,T=b.child,q=b.sibling,U=b.tag;b=b.type;var Q=null;switch(U){case 0:case 15:case 1:Q=b;break;case 11:Q=b.render}if(Is===null)throw Error("Expected resolveFamily to be set during hot reload.");var ee=!1;if(b=!1,Q!==null&&(Q=Is(Q),Q!==void 0&&(o.has(Q)?b=!0:a.has(Q)&&(U===1?b=!0:ee=!0))),um!==null&&(um.has(e)||R!==null&&um.has(R))&&(b=!0),b&&(e._debugNeedsRemount=!0),(b||ee)&&(R=La(e,2),R!==null&&Bt(R,e,2)),T===null||b||kh(T,a,o),q===null)break;e=q}while(!0)}function Om(e,a,o,b){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Vb||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function xc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function uu(e,a){var o=e.alternate;switch(o===null?(o=z(e.tag,a,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o._debugOwner=e._debugOwner,o._debugStack=e._debugStack,o._debugTask=e._debugTask,o._debugHookTypes=e._debugHookTypes,o.alternate=e,e.alternate=o):(o.pendingProps=a,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null,o.actualDuration=-0,o.actualStartTime=-1.1),o.flags=e.flags&65011712,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,a=e.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext,_debugThenableState:a._debugThenableState},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o.refCleanup=e.refCleanup,o.selfBaseDuration=e.selfBaseDuration,o.treeBaseDuration=e.treeBaseDuration,o._debugInfo=e._debugInfo,o._debugNeedsRemount=e._debugNeedsRemount,o.tag){case 0:case 15:o.type=Qu(e.type);break;case 1:o.type=Qu(e.type);break;case 11:o.type=Ec(e.type)}return o}function Sc(e,a){e.flags&=65011714;var o=e.alternate;return o===null?(e.childLanes=0,e.lanes=a,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=o.childLanes,e.lanes=o.lanes,e.child=o.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=o.memoizedProps,e.memoizedState=o.memoizedState,e.updateQueue=o.updateQueue,e.type=o.type,a=o.dependencies,e.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext,_debugThenableState:a._debugThenableState},e.selfBaseDuration=o.selfBaseDuration,e.treeBaseDuration=o.treeBaseDuration),e}function Ws(e,a,o,b,R,T){var q=0,U=e;if(typeof e=="function")xc(e)&&(q=1),U=Qu(U);else if(typeof e=="string")q=Ce(),q=Vy(e,o,q)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case qu:return a=z(31,o,a,R),a.elementType=qu,a.lanes=T,a;case ff:return Qs(o.children,R,T,a);case ui:q=8,R|=Ri,R|=bo;break;case Kd:return e=o,b=R,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),a=z(12,e,a,b|Qt),a.elementType=Kd,a.lanes=T,a.stateNode={effectDuration:0,passiveEffectDuration:0},a;case Vl:return a=z(13,o,a,R),a.elementType=Vl,a.lanes=T,a;case Ci:return a=z(19,o,a,R),a.elementType=Ci,a.lanes=T,a;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Fu:q=10;break e;case zp:q=9;break e;case df:q=11,U=Ec(U);break e;case eh:q=14;break e;case kr:q=16,U=null;break e}U="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(U+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?o="null":Ba(e)?o="array":e!==void 0&&e.$$typeof===hu?(o="<"+(Ee(e.type)||"Unknown")+" />",U=" Did you accidentally export a JSX literal instead of a component?"):o=typeof e,(q=b?ce(b):null)&&(U+=`
211
+
212
+ Check the render method of \``+q+"`."),q=29,o=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(o+"."+U)),U=null}return a=z(q,o,a,R),a.elementType=e,a.type=U,a.lanes=T,a._debugOwner=b,a}function Ku(e,a,o){return a=Ws(e.type,e.key,e.props,e._owner,a,o),a._debugOwner=e._owner,a._debugStack=e._debugStack,a._debugTask=e._debugTask,a}function Qs(e,a,o,b){return e=z(7,e,b,a),e.lanes=o,e}function wo(e,a,o){return e=z(6,e,null,a),e.lanes=o,e}function nd(e){var a=z(18,null,null,Mt);return a.stateNode=e,a}function Ac(e,a,o){return a=z(4,e.children!==null?e.children:[],e.key,a),a.lanes=o,a.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},a}function Er(e,a){if(typeof e=="object"&&e!==null){var o=I1.get(e);return o!==void 0?o:(a={value:e,source:a,stack:gt(a)},I1.set(e,a),a)}return{value:e,source:a,stack:gt(a)}}function gi(e,a){es(),sm[om++]=vg,sm[om++]=dv,dv=e,vg=a}function Rc(e,a,o){es(),Os[ws++]=Wl,Os[ws++]=Ql,Os[ws++]=sh,sh=e;var b=Wl;e=Ql;var R=32-Sr(b)-1;b&=~(1<<R),o+=1;var T=32-Sr(a)+R;if(30<T){var q=R-R%5;T=(b&(1<<q)-1).toString(32),b>>=q,R-=q,Wl=1<<32-Sr(a)+R|o<<R|b,Ql=T+e}else Wl=1<<T|o<<R|b,Ql=e}function vl(e){es(),e.return!==null&&(gi(e,1),Rc(e,1,0))}function Tc(e){for(;e===dv;)dv=sm[--om],sm[om]=null,vg=sm[--om],sm[om]=null;for(;e===sh;)sh=Os[--ws],Os[ws]=null,Ql=Os[--ws],Os[ws]=null,Wl=Os[--ws],Os[ws]=null}function ad(){return es(),sh!==null?{id:Wl,overflow:Ql}:null}function Dc(e,a){es(),Os[ws++]=Wl,Os[ws++]=Ql,Os[ws++]=sh,Wl=a.id,Ql=a.overflow,sh=e}function es(){dn||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function ts(e,a){if(e.return===null){if(zu===null)zu={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:a};else{if(zu.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");zu.distanceFromLeaf>a&&(zu.distanceFromLeaf=a)}return zu}var o=ts(e.return,a+1).children;return 0<o.length&&o[o.length-1].fiber===e?(o=o[o.length-1],o.distanceFromLeaf>a&&(o.distanceFromLeaf=a),o):(a={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:a},o.push(a),a)}function rd(){dn&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function er(e,a){il||(e=ts(e,0),e.serverProps=null,a!==null&&(a=Gy(a),e.serverTail.push(a)))}function yi(e){var a=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,o="",b=zu;throw b!==null&&(zu=null,o=dc(b)),x(Er(Error("Hydration failed because the server rendered "+(a?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
213
+
214
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
215
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
216
+ - Date formatting in a user's locale which doesn't match the server.
217
+ - External changing data without sending a snapshot of it along with the HTML.
218
+ - Invalid HTML tag nesting.
219
+
220
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
221
+
222
+ https://react.dev/link/hydration-mismatch`+o),e)),O1}function ns(e){var a=e.stateNode,o=e.type,b=e.memoizedProps;switch(a[ea]=e,a[si]=b,ri(o,b),o){case"dialog":Lt("cancel",a),Lt("close",a);break;case"iframe":case"object":case"embed":Lt("load",a);break;case"video":case"audio":for(o=0;o<Yg.length;o++)Lt(Yg[o],a);break;case"source":Lt("error",a);break;case"img":case"image":case"link":Lt("error",a),Lt("load",a);break;case"details":Lt("toggle",a);break;case"input":fe("input",b),Lt("invalid",a),yn(a,b),Wa(a,b.value,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name,!0);break;case"option":Qa(a,b);break;case"select":fe("select",b),Lt("invalid",a),Dr(a,b);break;case"textarea":fe("textarea",b),Lt("invalid",a),bn(a,b),Ir(a,b.value,b.defaultValue,b.children)}o=b.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||a.textContent===""+o||b.suppressHydrationWarning===!0||N0(a.textContent,o)?(b.popover!=null&&(Lt("beforetoggle",a),Lt("toggle",a)),b.onScroll!=null&&Lt("scroll",a),b.onScrollEnd!=null&&Lt("scrollend",a),b.onClick!=null&&(a.onclick=hi),a=!0):a=!1,a||yi(e,!0)}function id(e){for(oi=e.return;oi;)switch(oi.tag){case 5:case 31:case 13:Ns=!1;return;case 27:case 3:Ns=!0;return;default:oi=oi.return}}function as(e){if(e!==oi)return!1;if(!dn)return id(e),dn=!0,!1;var a=e.tag,o;if((o=a!==3&&a!==27)&&((o=a===5)&&(o=e.type,o=!(o!=="form"&&o!=="button")||nf(e.type,e.memoizedProps)),o=!o),o&&na){for(o=na;o;){var b=ts(e,0),R=Gy(o);b.serverTail.push(R),o=R.type==="Suspense"?uf(o):Yi(o.nextSibling)}yi(e)}if(id(e),a===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");na=uf(e)}else if(a===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");na=uf(e)}else a===27?(a=na,Qo(e.type)?(e=bb,bb=null,na=e):na=a):na=oi?Yi(e.stateNode.nextSibling):null;return!0}function ya(){na=oi=null,il=dn=!1}function wr(){var e=Tf;return e!==null&&(eu===null?eu=e:eu.push.apply(eu,e),Tf=null),e}function x(e){Tf===null?Tf=[e]:Tf.push(e)}function h(){var e=zu;if(e!==null){zu=null;for(var a=dc(e);0<e.children.length;)e=e.children[0];Be(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
223
+
224
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
225
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
226
+ - Date formatting in a user's locale which doesn't match the server.
227
+ - External changing data without sending a snapshot of it along with the HTML.
228
+ - Invalid HTML tag nesting.
229
+
230
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
231
+
232
+ %s%s`,"https://react.dev/link/hydration-mismatch",a)})}}function g(){lm=hv=null,cm=!1}function E(e,a,o){we(w1,a._currentValue,e),a._currentValue=o,we(N1,a._currentRenderer,e),a._currentRenderer!==void 0&&a._currentRenderer!==null&&a._currentRenderer!==Yb&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),a._currentRenderer=Yb}function O(e,a){e._currentValue=w1.current;var o=N1.current;Ne(N1,a),e._currentRenderer=o,Ne(w1,a)}function G(e,a,o){for(;e!==null;){var b=e.alternate;if((e.childLanes&a)!==a?(e.childLanes|=a,b!==null&&(b.childLanes|=a)):b!==null&&(b.childLanes&a)!==a&&(b.childLanes|=a),e===o)break;e=e.return}e!==o&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Y(e,a,o,b){var R=e.child;for(R!==null&&(R.return=e);R!==null;){var T=R.dependencies;if(T!==null){var q=R.child;T=T.firstContext;e:for(;T!==null;){var U=T;T=R;for(var Q=0;Q<a.length;Q++)if(U.context===a[Q]){T.lanes|=o,U=T.alternate,U!==null&&(U.lanes|=o),G(T.return,o,e),b||(q=null);break e}T=U.next}}else if(R.tag===18){if(q=R.return,q===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");q.lanes|=o,T=q.alternate,T!==null&&(T.lanes|=o),G(q,o,e),q=null}else q=R.child;if(q!==null)q.return=R;else for(q=R;q!==null;){if(q===e){q=null;break}if(R=q.sibling,R!==null){R.return=q.return,q=R;break}q=q.return}R=q}}function $(e,a,o,b){e=null;for(var R=a,T=!1;R!==null;){if(!T){if((R.flags&524288)!==0)T=!0;else if((R.flags&262144)!==0)break}if(R.tag===10){var q=R.alternate;if(q===null)throw Error("Should have a current fiber. This is a bug in React.");if(q=q.memoizedProps,q!==null){var U=R.type;Ji(R.pendingProps.value,q.value)||(e!==null?e.push(U):e=[U])}}else if(R===nl.current){if(q=R.alternate,q===null)throw Error("Should have a current fiber. This is a bug in React.");q.memoizedState.memoizedState!==R.memoizedState.memoizedState&&(e!==null?e.push(Wg):e=[Wg])}R=R.return}e!==null&&Y(a,e,o,b),a.flags|=262144}function ne(e){for(e=e.firstContext;e!==null;){if(!Ji(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function he(e){hv=e,lm=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Se(e){return cm&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),at(hv,e)}function je(e,a){return hv===null&&he(e),at(e,a)}function at(e,a){var o=a._currentValue;if(a={context:a,memoizedValue:o,next:null},lm===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");lm=a,e.dependencies={lanes:0,firstContext:a,_debugThenableState:null},e.flags|=524288}else lm=lm.next=a;return o}function ct(){return{controller:new CE,data:new Map,refCount:0}}function mt(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function Ct(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&AE(RE,function(){e.controller.abort()})}function Pt(e,a,o){(e&127)!==0?0>ul&&(ul=or(),_g=pv(a),L1=a,o!=null&&(M1=me(o)),(En&(Rr|Vu))!==qr&&(Aa=!0,If=bg),e=af(),a=Es(),e!==fm||a!==Eg?fm=-1.1:a!==null&&(If=bg),ch=e,Eg=a):(e&4194048)!==0&&0>Ls&&(Ls=or(),xg=pv(a),Xb=a,o!=null&&(Zb=me(o)),0>nc)&&(e=af(),a=Es(),(e!==wf||a!==fh)&&(wf=-1.1),Of=e,fh=a)}function rn(e){if(0>ul){ul=or(),_g=e._debugTask!=null?e._debugTask:null,(En&(Rr|Vu))!==qr&&(If=bg);var a=af(),o=Es();a!==fm||o!==Eg?fm=-1.1:o!==null&&(If=bg),ch=a,Eg=o}0>Ls&&(Ls=or(),xg=e._debugTask!=null?e._debugTask:null,0>nc)&&(e=af(),a=Es(),(e!==wf||a!==fh)&&(wf=-1.1),Of=e,fh=a)}function un(){var e=oh;return oh=0,e}function Wn(e){var a=oh;return oh=e,a}function xn(e){var a=oh;return oh+=e,a}function Yr(){Nt=Ot=-1.1}function Tn(){var e=Ot;return Ot=-1.1,e}function va(e){0<=e&&(Ot=e)}function Xr(){var e=ma;return ma=-0,e}function Nr(e){0<=e&&(ma=e)}function Lr(){var e=fa;return fa=null,e}function Zr(){var e=Aa;return Aa=!1,e}function su(e){Wi=or(),0>e.actualStartTime&&(e.actualStartTime=Wi)}function No(e){if(0<=Wi){var a=or()-Wi;e.actualDuration+=a,e.selfBaseDuration=a,Wi=-1}}function Ks(e){if(0<=Wi){var a=or()-Wi;e.actualDuration+=a,Wi=-1}}function $r(){if(0<=Wi){var e=or(),a=e-Wi;Wi=-1,oh+=a,ma+=a,Nt=e}}function ey(e){fa===null&&(fa=[]),fa.push(e),ec===null&&(ec=[]),ec.push(e)}function da(){Wi=or(),0>Ot&&(Ot=Wi)}function bl(e){for(var a=e.child;a;)e.actualDuration+=a.actualDuration,a=a.sibling}function eo(e,a){if(Cg===null){var o=Cg=[];B1=0,dh=w0(),dm={status:"pending",value:void 0,then:function(b){o.push(b)}}}return B1++,a.then(wm,wm),a}function wm(){if(--B1===0&&(-1<Ls||(nc=-1.1),Cg!==null)){dm!==null&&(dm.status="fulfilled");var e=Cg;Cg=null,dh=0,dm=null;for(var a=0;a<e.length;a++)(0,e[a])()}}function Bh(e,a){var o=[],b={status:"pending",value:null,reason:null,then:function(R){o.push(R)}};return e.then(function(){b.status="fulfilled",b.value=a;for(var R=0;R<o.length;R++)(0,o[R])(a)},function(R){for(b.status="rejected",b.reason=R,R=0;R<o.length;R++)(0,o[R])(void 0)}),b}function to(){var e=hh.current;return e!==null?e:Yn.pooledCache}function Ic(e,a){a===null?we(hh,hh.current,e):we(hh,a.pool,e)}function Nm(){var e=to();return e===null?null:{parent:sr._currentValue,pool:e}}function jh(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Lm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Bi(e,a,o){Ze.actQueue!==null&&(Ze.didUsePromise=!0);var b=e.thenables;if(o=b[o],o===void 0?b.push(a):o!==a&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),a.then(hi,hi),a=o),a._debugInfo===void 0){e=performance.now(),b=a.displayName;var R={name:typeof b=="string"?b:"Promise",start:e,end:e,value:a};a._debugInfo=[{awaited:R}],a.status!=="fulfilled"&&a.status!=="rejected"&&(e=function(){R.end=performance.now()},a.then(e,e))}switch(a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,ud(e),e;default:if(typeof a.status=="string")a.then(hi,hi);else{if(e=Yn,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=a,e.status="pending",e.then(function(T){if(a.status==="pending"){var q=a;q.status="fulfilled",q.value=T}},function(T){if(a.status==="pending"){var q=a;q.status="rejected",q.reason=T}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,ud(e),e}throw mh=a,wg=!0,hm}}function ji(e){try{return wE(e)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(mh=a,wg=!0,hm):a}}function _l(){if(mh===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=mh;return mh=null,wg=!1,e}function ud(e){if(e===hm||e===xv)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function ba(e){var a=Kt;return e!=null&&(Kt=a===null?e:a.concat(e)),a}function vi(){var e=Kt;if(e!=null){for(var a=e.length-1;0<=a;a--)if(e[a].name!=null){var o=e[a].debugTask;if(o!=null)return o}}return null}function Jr(e,a,o){for(var b=Object.keys(e.props),R=0;R<b.length;R++){var T=b[R];if(T!=="children"&&T!=="key"){a===null&&(a=Ku(e,o.mode,0),a._debugInfo=Kt,a.return=o),Be(a,function(q){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",q)},T);break}}}function Au(e){var a=Ng;return Ng+=1,pm===null&&(pm=jh()),Bi(pm,e,a)}function bi(e,a){a=a.props.ref,e.ref=a!==void 0?a:null}function Ru(e,a){throw a.$$typeof===Jy?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
233
+ - Multiple copies of the "react" package is used.
234
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
235
+ - A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(a),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function ou(e,a){var o=vi();o!==null?o.run(Ru.bind(null,e,a)):Ru(e,a)}function Mm(e,a){var o=me(e)||"Component";p2[o]||(p2[o]=!0,a=a.displayName||a.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
236
+ root.render(%s)`,a,a,a):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
237
+ <%s>{%s}</%s>`,a,a,o,a,o))}function Oc(e,a){var o=vi();o!==null?o.run(Mm.bind(null,e,a)):Mm(e,a)}function Fh(e,a){var o=me(e)||"Component";m2[o]||(m2[o]=!0,a=String(a),e.tag===3?console.error(`Symbols are not valid as a React child.
238
+ root.render(%s)`,a):console.error(`Symbols are not valid as a React child.
239
+ <%s>%s</%s>`,o,a,o))}function sd(e,a){var o=vi();o!==null?o.run(Fh.bind(null,e,a)):Fh(e,a)}function tr(e){function a(ye,be){if(e){var Ae=ye.deletions;Ae===null?(ye.deletions=[be],ye.flags|=16):Ae.push(be)}}function o(ye,be){if(!e)return null;for(;be!==null;)a(ye,be),be=be.sibling;return null}function b(ye){for(var be=new Map;ye!==null;)ye.key!==null?be.set(ye.key,ye):be.set(ye.index,ye),ye=ye.sibling;return be}function R(ye,be){return ye=uu(ye,be),ye.index=0,ye.sibling=null,ye}function T(ye,be,Ae){return ye.index=Ae,e?(Ae=ye.alternate,Ae!==null?(Ae=Ae.index,Ae<be?(ye.flags|=67108866,be):Ae):(ye.flags|=67108866,be)):(ye.flags|=1048576,be)}function q(ye){return e&&ye.alternate===null&&(ye.flags|=67108866),ye}function U(ye,be,Ae,Ke){return be===null||be.tag!==6?(be=wo(Ae,ye.mode,Ke),be.return=ye,be._debugOwner=ye,be._debugTask=ye._debugTask,be._debugInfo=Kt,be):(be=R(be,Ae),be.return=ye,be._debugInfo=Kt,be)}function Q(ye,be,Ae,Ke){var ft=Ae.type;return ft===ff?(be=Te(ye,be,Ae.props.children,Ke,Ae.key),Jr(Ae,be,ye),be):be!==null&&(be.elementType===ft||td(be,Ae)||typeof ft=="object"&&ft!==null&&ft.$$typeof===kr&&ji(ft)===be.type)?(be=R(be,Ae.props),bi(be,Ae),be.return=ye,be._debugOwner=Ae._owner,be._debugInfo=Kt,be):(be=Ku(Ae,ye.mode,Ke),bi(be,Ae),be.return=ye,be._debugInfo=Kt,be)}function ee(ye,be,Ae,Ke){return be===null||be.tag!==4||be.stateNode.containerInfo!==Ae.containerInfo||be.stateNode.implementation!==Ae.implementation?(be=Ac(Ae,ye.mode,Ke),be.return=ye,be._debugInfo=Kt,be):(be=R(be,Ae.children||[]),be.return=ye,be._debugInfo=Kt,be)}function Te(ye,be,Ae,Ke,ft){return be===null||be.tag!==7?(be=Qs(Ae,ye.mode,Ke,ft),be.return=ye,be._debugOwner=ye,be._debugTask=ye._debugTask,be._debugInfo=Kt,be):(be=R(be,Ae),be.return=ye,be._debugInfo=Kt,be)}function Oe(ye,be,Ae){if(typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint")return be=wo(""+be,ye.mode,Ae),be.return=ye,be._debugOwner=ye,be._debugTask=ye._debugTask,be._debugInfo=Kt,be;if(typeof be=="object"&&be!==null){switch(be.$$typeof){case hu:return Ae=Ku(be,ye.mode,Ae),bi(Ae,be),Ae.return=ye,ye=ba(be._debugInfo),Ae._debugInfo=Kt,Kt=ye,Ae;case el:return be=Ac(be,ye.mode,Ae),be.return=ye,be._debugInfo=Kt,be;case kr:var Ke=ba(be._debugInfo);return be=ji(be),ye=Oe(ye,be,Ae),Kt=Ke,ye}if(Ba(be)||pe(be))return Ae=Qs(be,ye.mode,Ae,null),Ae.return=ye,Ae._debugOwner=ye,Ae._debugTask=ye._debugTask,ye=ba(be._debugInfo),Ae._debugInfo=Kt,Kt=ye,Ae;if(typeof be.then=="function")return Ke=ba(be._debugInfo),ye=Oe(ye,Au(be),Ae),Kt=Ke,ye;if(be.$$typeof===Fu)return Oe(ye,je(ye,be),Ae);ou(ye,be)}return typeof be=="function"&&Oc(ye,be),typeof be=="symbol"&&sd(ye,be),null}function ve(ye,be,Ae,Ke){var ft=be!==null?be.key:null;if(typeof Ae=="string"&&Ae!==""||typeof Ae=="number"||typeof Ae=="bigint")return ft!==null?null:U(ye,be,""+Ae,Ke);if(typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case hu:return Ae.key===ft?(ft=ba(Ae._debugInfo),ye=Q(ye,be,Ae,Ke),Kt=ft,ye):null;case el:return Ae.key===ft?ee(ye,be,Ae,Ke):null;case kr:return ft=ba(Ae._debugInfo),Ae=ji(Ae),ye=ve(ye,be,Ae,Ke),Kt=ft,ye}if(Ba(Ae)||pe(Ae))return ft!==null?null:(ft=ba(Ae._debugInfo),ye=Te(ye,be,Ae,Ke,null),Kt=ft,ye);if(typeof Ae.then=="function")return ft=ba(Ae._debugInfo),ye=ve(ye,be,Au(Ae),Ke),Kt=ft,ye;if(Ae.$$typeof===Fu)return ve(ye,be,je(ye,Ae),Ke);ou(ye,Ae)}return typeof Ae=="function"&&Oc(ye,Ae),typeof Ae=="symbol"&&sd(ye,Ae),null}function Ue(ye,be,Ae,Ke,ft){if(typeof Ke=="string"&&Ke!==""||typeof Ke=="number"||typeof Ke=="bigint")return ye=ye.get(Ae)||null,U(be,ye,""+Ke,ft);if(typeof Ke=="object"&&Ke!==null){switch(Ke.$$typeof){case hu:return Ae=ye.get(Ke.key===null?Ae:Ke.key)||null,ye=ba(Ke._debugInfo),be=Q(be,Ae,Ke,ft),Kt=ye,be;case el:return ye=ye.get(Ke.key===null?Ae:Ke.key)||null,ee(be,ye,Ke,ft);case kr:var qt=ba(Ke._debugInfo);return Ke=ji(Ke),be=Ue(ye,be,Ae,Ke,ft),Kt=qt,be}if(Ba(Ke)||pe(Ke))return Ae=ye.get(Ae)||null,ye=ba(Ke._debugInfo),be=Te(be,Ae,Ke,ft,null),Kt=ye,be;if(typeof Ke.then=="function")return qt=ba(Ke._debugInfo),be=Ue(ye,be,Ae,Au(Ke),ft),Kt=qt,be;if(Ke.$$typeof===Fu)return Ue(ye,be,Ae,je(be,Ke),ft);ou(be,Ke)}return typeof Ke=="function"&&Oc(be,Ke),typeof Ke=="symbol"&&sd(be,Ke),null}function lt(ye,be,Ae,Ke){if(typeof Ae!="object"||Ae===null)return Ke;switch(Ae.$$typeof){case hu:case el:M(ye,be,Ae);var ft=Ae.key;if(typeof ft!="string")break;if(Ke===null){Ke=new Set,Ke.add(ft);break}if(!Ke.has(ft)){Ke.add(ft);break}Be(be,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",ft)});break;case kr:Ae=ji(Ae),lt(ye,be,Ae,Ke)}return Ke}function ht(ye,be,Ae,Ke){for(var ft=null,qt=null,It=null,At=be,$t=be=0,aa=null;At!==null&&$t<Ae.length;$t++){At.index>$t?(aa=At,At=null):aa=At.sibling;var Za=ve(ye,At,Ae[$t],Ke);if(Za===null){At===null&&(At=aa);break}ft=lt(ye,Za,Ae[$t],ft),e&&At&&Za.alternate===null&&a(ye,At),be=T(Za,be,$t),It===null?qt=Za:It.sibling=Za,It=Za,At=aa}if($t===Ae.length)return o(ye,At),dn&&gi(ye,$t),qt;if(At===null){for(;$t<Ae.length;$t++)At=Oe(ye,Ae[$t],Ke),At!==null&&(ft=lt(ye,At,Ae[$t],ft),be=T(At,be,$t),It===null?qt=At:It.sibling=At,It=At);return dn&&gi(ye,$t),qt}for(At=b(At);$t<Ae.length;$t++)aa=Ue(At,ye,$t,Ae[$t],Ke),aa!==null&&(ft=lt(ye,aa,Ae[$t],ft),e&&aa.alternate!==null&&At.delete(aa.key===null?$t:aa.key),be=T(aa,be,$t),It===null?qt=aa:It.sibling=aa,It=aa);return e&&At.forEach(function(cc){return a(ye,cc)}),dn&&gi(ye,$t),qt}function Zn(ye,be,Ae,Ke){if(Ae==null)throw Error("An iterable object provided no iterator.");for(var ft=null,qt=null,It=be,At=be=0,$t=null,aa=null,Za=Ae.next();It!==null&&!Za.done;At++,Za=Ae.next()){It.index>At?($t=It,It=null):$t=It.sibling;var cc=ve(ye,It,Za.value,Ke);if(cc===null){It===null&&(It=$t);break}aa=lt(ye,cc,Za.value,aa),e&&It&&cc.alternate===null&&a(ye,It),be=T(cc,be,At),qt===null?ft=cc:qt.sibling=cc,qt=cc,It=$t}if(Za.done)return o(ye,It),dn&&gi(ye,At),ft;if(It===null){for(;!Za.done;At++,Za=Ae.next())It=Oe(ye,Za.value,Ke),It!==null&&(aa=lt(ye,It,Za.value,aa),be=T(It,be,At),qt===null?ft=It:qt.sibling=It,qt=It);return dn&&gi(ye,At),ft}for(It=b(It);!Za.done;At++,Za=Ae.next())$t=Ue(It,ye,At,Za.value,Ke),$t!==null&&(aa=lt(ye,$t,Za.value,aa),e&&$t.alternate!==null&&It.delete($t.key===null?At:$t.key),be=T($t,be,At),qt===null?ft=$t:qt.sibling=$t,qt=$t);return e&&It.forEach(function(tx){return a(ye,tx)}),dn&&gi(ye,At),ft}function mn(ye,be,Ae,Ke){if(typeof Ae=="object"&&Ae!==null&&Ae.type===ff&&Ae.key===null&&(Jr(Ae,null,ye),Ae=Ae.props.children),typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case hu:var ft=ba(Ae._debugInfo);e:{for(var qt=Ae.key;be!==null;){if(be.key===qt){if(qt=Ae.type,qt===ff){if(be.tag===7){o(ye,be.sibling),Ke=R(be,Ae.props.children),Ke.return=ye,Ke._debugOwner=Ae._owner,Ke._debugInfo=Kt,Jr(Ae,Ke,ye),ye=Ke;break e}}else if(be.elementType===qt||td(be,Ae)||typeof qt=="object"&&qt!==null&&qt.$$typeof===kr&&ji(qt)===be.type){o(ye,be.sibling),Ke=R(be,Ae.props),bi(Ke,Ae),Ke.return=ye,Ke._debugOwner=Ae._owner,Ke._debugInfo=Kt,ye=Ke;break e}o(ye,be);break}else a(ye,be);be=be.sibling}Ae.type===ff?(Ke=Qs(Ae.props.children,ye.mode,Ke,Ae.key),Ke.return=ye,Ke._debugOwner=ye,Ke._debugTask=ye._debugTask,Ke._debugInfo=Kt,Jr(Ae,Ke,ye),ye=Ke):(Ke=Ku(Ae,ye.mode,Ke),bi(Ke,Ae),Ke.return=ye,Ke._debugInfo=Kt,ye=Ke)}return ye=q(ye),Kt=ft,ye;case el:e:{for(ft=Ae,Ae=ft.key;be!==null;){if(be.key===Ae)if(be.tag===4&&be.stateNode.containerInfo===ft.containerInfo&&be.stateNode.implementation===ft.implementation){o(ye,be.sibling),Ke=R(be,ft.children||[]),Ke.return=ye,ye=Ke;break e}else{o(ye,be);break}else a(ye,be);be=be.sibling}Ke=Ac(ft,ye.mode,Ke),Ke.return=ye,ye=Ke}return q(ye);case kr:return ft=ba(Ae._debugInfo),Ae=ji(Ae),ye=mn(ye,be,Ae,Ke),Kt=ft,ye}if(Ba(Ae))return ft=ba(Ae._debugInfo),ye=ht(ye,be,Ae,Ke),Kt=ft,ye;if(pe(Ae)){if(ft=ba(Ae._debugInfo),qt=pe(Ae),typeof qt!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var It=qt.call(Ae);return It===Ae?(ye.tag!==0||Object.prototype.toString.call(ye.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(It)!=="[object Generator]")&&(d2||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),d2=!0):Ae.entries!==qt||G1||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),G1=!0),ye=Zn(ye,be,It,Ke),Kt=ft,ye}if(typeof Ae.then=="function")return ft=ba(Ae._debugInfo),ye=mn(ye,be,Au(Ae),Ke),Kt=ft,ye;if(Ae.$$typeof===Fu)return mn(ye,be,je(ye,Ae),Ke);ou(ye,Ae)}return typeof Ae=="string"&&Ae!==""||typeof Ae=="number"||typeof Ae=="bigint"?(ft=""+Ae,be!==null&&be.tag===6?(o(ye,be.sibling),Ke=R(be,ft),Ke.return=ye,ye=Ke):(o(ye,be),Ke=wo(ft,ye.mode,Ke),Ke.return=ye,Ke._debugOwner=ye,Ke._debugTask=ye._debugTask,Ke._debugInfo=Kt,ye=Ke),q(ye)):(typeof Ae=="function"&&Oc(ye,Ae),typeof Ae=="symbol"&&sd(ye,Ae),o(ye,be))}return function(ye,be,Ae,Ke){var ft=Kt;Kt=null;try{Ng=0;var qt=mn(ye,be,Ae,Ke);return pm=null,qt}catch(aa){if(aa===hm||aa===xv)throw aa;var It=z(29,aa,null,ye.mode);It.lanes=Ke,It.return=ye;var At=It._debugInfo=Kt;if(It._debugOwner=ye._debugOwner,It._debugTask=ye._debugTask,At!=null){for(var $t=At.length-1;0<=$t;$t--)if(typeof At[$t].stack=="string"){It._debugOwner=At[$t],It._debugTask=At[$t].debugTask;break}}return It}finally{Kt=ft}}}function Pn(e,a){var o=Ba(e);return e=!o&&typeof pe(e)=="function",o||e?(o=o?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",o,a,o),!1):!0}function cn(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function rs(e,a){e=e.updateQueue,a.updateQueue===e&&(a.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Pa(e){return{lane:e,tag:y2,payload:null,callback:null,next:null}}function is(e,a,o){var b=e.updateQueue;if(b===null)return null;if(b=b.shared,P1===b&&!_2){var R=me(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
240
+
241
+ Please update the following component: %s`,R),_2=!0}return(En&Rr)!==qr?(R=b.pending,R===null?a.next=a:(a.next=R.next,R.next=a),b.pending=a,a=yl(e),ed(e,null,o),a):($s(e,b,a,o),yl(e))}function lu(e,a,o){if(a=a.updateQueue,a!==null&&(a=a.shared,(o&4194048)!==0)){var b=a.lanes;b&=e.pendingLanes,o|=b,a.lanes=o,Tt(e,o)}}function od(e,a){var o=e.updateQueue,b=e.alternate;if(b!==null&&(b=b.updateQueue,o===b)){var R=null,T=null;if(o=o.firstBaseUpdate,o!==null){do{var q={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};T===null?R=T=q:T=T.next=q,o=o.next}while(o!==null);T===null?R=T=a:T=T.next=a}else R=T=a;o={baseState:b.baseState,firstBaseUpdate:R,lastBaseUpdate:T,shared:b.shared,callbacks:b.callbacks},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=a:e.next=a,o.lastBaseUpdate=a}function wc(){if(U1){var e=dm;if(e!==null)throw e}}function us(e,a,o,b){U1=!1;var R=e.updateQueue;Nf=!1,P1=R.shared;var T=R.firstBaseUpdate,q=R.lastBaseUpdate,U=R.shared.pending;if(U!==null){R.shared.pending=null;var Q=U,ee=Q.next;Q.next=null,q===null?T=ee:q.next=ee,q=Q;var Te=e.alternate;Te!==null&&(Te=Te.updateQueue,U=Te.lastBaseUpdate,U!==q&&(U===null?Te.firstBaseUpdate=ee:U.next=ee,Te.lastBaseUpdate=Q))}if(T!==null){var Oe=R.baseState;q=0,Te=ee=Q=null,U=T;do{var ve=U.lane&-536870913,Ue=ve!==U.lane;if(Ue?(en&ve)===ve:(b&ve)===ve){ve!==0&&ve===dh&&(U1=!0),Te!==null&&(Te=Te.next={lane:0,tag:U.tag,payload:U.payload,callback:null,next:null});e:{ve=e;var lt=U,ht=a,Zn=o;switch(lt.tag){case v2:if(lt=lt.payload,typeof lt=="function"){cm=!0;var mn=lt.call(Zn,Oe,ht);if(ve.mode&Ri){Yt(!0);try{lt.call(Zn,Oe,ht)}finally{Yt(!1)}}cm=!1,Oe=mn;break e}Oe=lt;break e;case z1:ve.flags=ve.flags&-65537|128;case y2:if(mn=lt.payload,typeof mn=="function"){if(cm=!0,lt=mn.call(Zn,Oe,ht),ve.mode&Ri){Yt(!0);try{mn.call(Zn,Oe,ht)}finally{Yt(!1)}}cm=!1}else lt=mn;if(lt==null)break e;Oe=Wt({},Oe,lt);break e;case b2:Nf=!0}}ve=U.callback,ve!==null&&(e.flags|=64,Ue&&(e.flags|=8192),Ue=R.callbacks,Ue===null?R.callbacks=[ve]:Ue.push(ve))}else Ue={lane:ve,tag:U.tag,payload:U.payload,callback:U.callback,next:null},Te===null?(ee=Te=Ue,Q=Oe):Te=Te.next=Ue,q|=ve;if(U=U.next,U===null){if(U=R.shared.pending,U===null)break;Ue=U,U=Ue.next,Ue.next=null,R.lastBaseUpdate=Ue,R.shared.pending=null}}while(!0);Te===null&&(Q=Oe),R.baseState=Q,R.firstBaseUpdate=ee,R.lastBaseUpdate=Te,T===null&&(R.shared.lanes=0),kf|=q,e.lanes=q,e.memoizedState=Oe}P1=null}function Lo(e,a){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(a)}function km(e,a){var o=e.shared.hiddenCallbacks;if(o!==null)for(e.shared.hiddenCallbacks=null,e=0;e<o.length;e++)Lo(o[e],a)}function Nc(e,a){var o=e.callbacks;if(o!==null)for(e.callbacks=null,e=0;e<o.length;e++)Lo(o[e],a)}function qh(e,a){var o=ol;we(Cv,o,e),we(mm,a,e),ol=o|a.baseLanes}function no(e){we(Cv,ol,e),we(mm,mm.current,e)}function Tu(e){ol=Cv.current,Ne(mm,e),Ne(Cv,e)}function Wr(e){var a=e.alternate;we(Xa,Xa.current&gm,e),we(Pu,e,e),Ms===null&&(a===null||mm.current!==null||a.memoizedState!==null)&&(Ms=e)}function Du(e){we(Xa,Xa.current,e),we(Pu,e,e),Ms===null&&(Ms=e)}function Gh(e){e.tag===22?(we(Xa,Xa.current,e),we(Pu,e,e),Ms===null&&(Ms=e)):ss(e)}function ss(e){we(Xa,Xa.current,e),we(Pu,Pu.current,e)}function nr(e){Ne(Pu,e),Ms===e&&(Ms=null),Ne(Xa,e)}function El(e){for(var a=e;a!==null;){if(a.tag===13){var o=a.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||Vd(o)||M0(o)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function jt(){var e=Ye;Bs===null?Bs=[e]:Bs.push(e)}function nt(){var e=Ye;if(Bs!==null&&(ic++,Bs[ic]!==e)){var a=me(Ft);if(!E2.has(a)&&(E2.add(a),Bs!==null)){for(var o="",b=0;b<=ic;b++){var R=Bs[b],T=b===ic?e:R;for(R=b+1+". "+R;30>R.length;)R+=" ";R+=T+`
242
+ `,o+=R}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
243
+
244
+ Previous render Next render
245
+ ------------------------------------------------------
246
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
247
+ `,a,o)}}}function ao(e){e==null||Ba(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Ye,typeof e)}function ld(){var e=me(Ft);S2.has(e)||(S2.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function ha(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
248
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
249
+ 2. You might be breaking the Rules of Hooks
250
+ 3. You might have more than one copy of React in the same app
251
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Bm(e,a){if(kg)return!1;if(a===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Ye),!1;e.length!==a.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
252
+
253
+ Previous: %s
254
+ Incoming: %s`,Ye,"["+a.join(", ")+"]","["+e.join(", ")+"]");for(var o=0;o<a.length&&o<e.length;o++)if(!Ji(e[o],a[o]))return!1;return!0}function jm(e,a,o,b,R,T){ac=T,Ft=a,Bs=e!==null?e._debugHookTypes:null,ic=-1,kg=e!==null&&e.type!==a.type,(Object.prototype.toString.call(o)==="[object AsyncFunction]"||Object.prototype.toString.call(o)==="[object AsyncGeneratorFunction]")&&(T=me(Ft),V1.has(T)||(V1.add(T),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",T===null?"An unknown Component":"<"+T+">"))),a.memoizedState=null,a.updateQueue=null,a.lanes=0,Ze.H=e!==null&&e.memoizedState!==null?Y1:Bs!==null?A2:H1,yh=T=(a.mode&Ri)!==Mt;var q=j1(o,b,R);if(yh=!1,vm&&(q=cd(a,o,b,R)),T){Yt(!0);try{q=cd(a,o,b,R)}finally{Yt(!1)}}return Ea(e,a),q}function Ea(e,a){a._debugHookTypes=Bs,a.dependencies===null?rc!==null&&(a.dependencies={lanes:0,firstContext:null,_debugThenableState:rc}):a.dependencies._debugThenableState=rc,Ze.H=Bg;var o=Hn!==null&&Hn.next!==null;if(ac=0,Bs=Ye=lr=Hn=Ft=null,ic=-1,e!==null&&(e.flags&65011712)!==(a.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Rv=!1,Mg=0,rc=null,o)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||cr||(e=e.dependencies,e!==null&&ne(e)&&(cr=!0)),wg?(wg=!1,e=!0):e=!1,e&&(a=me(a)||"Unknown",x2.has(a)||V1.has(a)||(x2.add(a),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function cd(e,a,o,b){Ft=e;var R=0;do{if(vm&&(rc=null),Mg=0,vm=!1,R>=LE)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(R+=1,kg=!1,lr=Hn=null,e.updateQueue!=null){var T=e.updateQueue;T.lastEffect=null,T.events=null,T.stores=null,T.memoCache!=null&&(T.memoCache.index=0)}ic=-1,Ze.H=R2,T=j1(a,o,b)}while(vm);return T}function fd(){var e=Ze.H,a=e.useState()[0];return a=typeof a.then=="function"?pd(a):a,e=e.useState()[0],(Hn!==null?Hn.memoizedState:null)!==e&&(Ft.flags|=1024),a}function xl(){var e=Tv!==0;return Tv=0,e}function dd(e,a,o){a.updateQueue=e.updateQueue,a.flags=(a.mode&bo)!==Mt?a.flags&-402655237:a.flags&-2053,e.lanes&=~o}function Mo(e){if(Rv){for(e=e.memoizedState;e!==null;){var a=e.queue;a!==null&&(a.pending=null),e=e.next}Rv=!1}ac=0,Bs=lr=Hn=Ft=null,ic=-1,Ye=null,vm=!1,Mg=Tv=0,rc=null}function Ma(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lr===null?Ft.memoizedState=lr=e:lr=lr.next=e,lr}function Dn(){if(Hn===null){var e=Ft.alternate;e=e!==null?e.memoizedState:null}else e=Hn.next;var a=lr===null?Ft.memoizedState:lr.next;if(a!==null)lr=a,Hn=e;else{if(e===null)throw Ft.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");Hn=e,e={memoizedState:Hn.memoizedState,baseState:Hn.baseState,baseQueue:Hn.baseQueue,queue:Hn.queue,next:null},lr===null?Ft.memoizedState=lr=e:lr=lr.next=e}return lr}function hd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pd(e){var a=Mg;return Mg+=1,rc===null&&(rc=jh()),e=Bi(rc,e,a),a=Ft,(lr===null?a.memoizedState:lr.next)===null&&(a=a.alternate,Ze.H=a!==null&&a.memoizedState!==null?Y1:H1),e}function ro(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return pd(e);if(e.$$typeof===Fu)return Se(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Fi(e){var a=null,o=Ft.updateQueue;if(o!==null&&(a=o.memoCache),a==null){var b=Ft.alternate;b!==null&&(b=b.updateQueue,b!==null&&(b=b.memoCache,b!=null&&(a={data:b.data.map(function(R){return R.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),o===null&&(o=hd(),Ft.updateQueue=o),o.memoCache=a,o=a.data[a.index],o===void 0||kg)for(o=a.data[a.index]=Array(e),b=0;b<e;b++)o[b]=s1;else o.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",o.length,e);return a.index++,o}function qi(e,a){return typeof a=="function"?a(e):a}function Lc(e,a,o){var b=Ma();if(o!==void 0){var R=o(a);if(yh){Yt(!0);try{o(a)}finally{Yt(!1)}}}else R=a;return b.memoizedState=b.baseState=R,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:R},b.queue=e,e=e.dispatch=n1.bind(null,Ft,e),[b.memoizedState,e]}function Sl(e){var a=Dn();return ko(a,Hn,e)}function ko(e,a,o){var b=e.queue;if(b===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");b.lastRenderedReducer=o;var R=e.baseQueue,T=b.pending;if(T!==null){if(R!==null){var q=R.next;R.next=T.next,T.next=q}a.baseQueue!==R&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),a.baseQueue=R=T,b.pending=null}if(T=e.baseState,R===null)e.memoizedState=T;else{a=R.next;var U=q=null,Q=null,ee=a,Te=!1;do{var Oe=ee.lane&-536870913;if(Oe!==ee.lane?(en&Oe)===Oe:(ac&Oe)===Oe){var ve=ee.revertLane;if(ve===0)Q!==null&&(Q=Q.next={lane:0,revertLane:0,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),Oe===dh&&(Te=!0);else if((ac&ve)===ve){ee=ee.next,ve===dh&&(Te=!0);continue}else Oe={lane:0,revertLane:ee.revertLane,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},Q===null?(U=Q=Oe,q=T):Q=Q.next=Oe,Ft.lanes|=ve,kf|=ve;Oe=ee.action,yh&&o(T,Oe),T=ee.hasEagerState?ee.eagerState:o(T,Oe)}else ve={lane:Oe,revertLane:ee.revertLane,gesture:ee.gesture,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},Q===null?(U=Q=ve,q=T):Q=Q.next=ve,Ft.lanes|=Oe,kf|=Oe;ee=ee.next}while(ee!==null&&ee!==a);if(Q===null?q=T:Q.next=U,!Ji(T,e.memoizedState)&&(cr=!0,Te&&(o=dm,o!==null)))throw o;e.memoizedState=T,e.baseState=q,e.baseQueue=Q,b.lastRenderedState=T}return R===null&&(b.lanes=0),[e.memoizedState,b.dispatch]}function Cl(e){var a=Dn(),o=a.queue;if(o===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");o.lastRenderedReducer=e;var b=o.dispatch,R=o.pending,T=a.memoizedState;if(R!==null){o.pending=null;var q=R=R.next;do T=e(T,q.action),q=q.next;while(q!==R);Ji(T,a.memoizedState)||(cr=!0),a.memoizedState=T,a.baseQueue===null&&(a.baseState=T),o.lastRenderedState=T}return[T,b]}function Mc(e,a,o){var b=Ft,R=Ma();if(dn){if(o===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var T=o();ym||T===o()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),ym=!0)}else{if(T=a(),ym||(o=a(),Ji(T,o)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),ym=!0)),Yn===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(en&127)!==0||Fm(b,a,T)}return R.memoizedState=T,o={value:T,getSnapshot:a},R.queue=o,Tl(Bo.bind(null,b,o,e),[e]),b.flags|=2048,os(ks|Ki,{destroy:void 0},qm.bind(null,b,o,T,a),null),T}function Al(e,a,o){var b=Ft,R=Dn(),T=dn;if(T){if(o===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");o=o()}else if(o=a(),!ym){var q=a();Ji(o,q)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),ym=!0)}(q=!Ji((Hn||R).memoizedState,o))&&(R.memoizedState=o,cr=!0),R=R.queue;var U=Bo.bind(null,b,R,e);if(Ua(2048,Ki,U,[e]),R.getSnapshot!==a||q||lr!==null&&lr.memoizedState.tag&ks){if(b.flags|=2048,os(ks|Ki,{destroy:void 0},qm.bind(null,b,R,o,a),null),Yn===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");T||(ac&127)!==0||Fm(b,a,o)}return o}function Fm(e,a,o){e.flags|=16384,e={getSnapshot:a,value:o},a=Ft.updateQueue,a===null?(a=hd(),Ft.updateQueue=a,a.stores=[e]):(o=a.stores,o===null?a.stores=[e]:o.push(e))}function qm(e,a,o,b){a.value=o,a.getSnapshot=b,jo(a)&&Gm(e)}function Bo(e,a,o){return o(function(){jo(a)&&(Pt(2,"updateSyncExternalStore()",e),Gm(e))})}function jo(e){var a=e.getSnapshot;e=e.value;try{var o=a();return!Ji(e,o)}catch{return!0}}function Gm(e){var a=La(e,2);a!==null&&Bt(a,e,2)}function zh(e){var a=Ma();if(typeof e=="function"){var o=e;if(e=o(),yh){Yt(!0);try{o()}finally{Yt(!1)}}}return a.memoizedState=a.baseState=e,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qi,lastRenderedState:e},a}function Fo(e){e=zh(e);var a=e.queue,o=Xh.bind(null,Ft,a);return a.dispatch=o,[e.memoizedState,o]}function Rl(e){var a=Ma();a.memoizedState=a.baseState=e;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=o,a=Ed.bind(null,Ft,!0,o),o.dispatch=a,[e,a]}function md(e,a){var o=Dn();return kc(o,Hn,e,a)}function kc(e,a,o,b){return e.baseState=o,ko(e,Hn,typeof b=="function"?b:qi)}function gd(e,a){var o=Dn();return Hn!==null?kc(o,Hn,e,a):(o.baseState=e,[e,o.queue.dispatch])}function ty(e,a,o,b,R){if(ar(e))throw Error("Cannot update form state while rendering.");if(e=a.action,e!==null){var T={payload:R,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(q){T.listeners.push(q)}};Ze.T!==null?o(!0):T.isTransition=!1,b(T),o=a.pending,o===null?(T.next=a.pending=T,qo(a,T)):(T.next=o.next,a.pending=o.next=T)}}function qo(e,a){var o=a.action,b=a.payload,R=e.state;if(a.isTransition){var T=Ze.T,q={};q._updatedFibers=new Set,Ze.T=q;try{var U=o(R,b),Q=Ze.S;Q!==null&&Q(q,U),zm(e,a,U)}catch(ee){yd(e,a,ee)}finally{T!==null&&q.types!==null&&(T.types!==null&&T.types!==q.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),T.types=q.types),Ze.T=T,T===null&&q._updatedFibers&&(e=q._updatedFibers.size,q._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{q=o(R,b),zm(e,a,q)}catch(ee){yd(e,a,ee)}}function zm(e,a,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?(Ze.asyncTransitions++,o.then(Dl,Dl),o.then(function(b){io(e,a,b)},function(b){return yd(e,a,b)}),a.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):io(e,a,o)}function io(e,a,o){a.status="fulfilled",a.value=o,Ph(a),e.state=o,a=e.pending,a!==null&&(o=a.next,o===a?e.pending=null:(o=o.next,a.next=o,qo(e,o)))}function yd(e,a,o){var b=e.pending;if(e.pending=null,b!==null){b=b.next;do a.status="rejected",a.reason=o,Ph(a),a=a.next;while(a!==b)}e.action=null}function Ph(e){e=e.listeners;for(var a=0;a<e.length;a++)(0,e[a])()}function uo(e,a){return a}function Gi(e,a){if(dn){var o=Yn.formState;if(o!==null){e:{var b=Ft;if(dn){if(na){t:{for(var R=na,T=Ns;R.nodeType!==8;){if(!T){R=null;break t}if(R=Yi(R.nextSibling),R===null){R=null;break t}}T=R.data,R=T===mb||T===f_?R:null}if(R){na=Yi(R.nextSibling),b=R.data===mb;break e}}yi(b)}b=!1}b&&(a=o[0])}}return o=Ma(),o.memoizedState=o.baseState=a,b={pending:null,lanes:0,dispatch:null,lastRenderedReducer:uo,lastRenderedState:a},o.queue=b,o=Xh.bind(null,Ft,b),b.dispatch=o,b=zh(!1),T=Ed.bind(null,Ft,!1,b.queue),b=Ma(),R={state:a,dispatch:null,action:e,pending:null},b.queue=R,o=ty.bind(null,Ft,R,T,o),R.dispatch=o,b.memoizedState=e,[a,o,!1]}function Go(e){var a=Dn();return Uh(a,Hn,e)}function Uh(e,a,o){if(a=ko(e,a,uo)[0],e=Sl(qi)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var b=pd(a)}catch(q){throw q===hm?xv:q}else b=a;a=Dn();var R=a.queue,T=R.dispatch;return o!==a.memoizedState&&(Ft.flags|=2048,os(ks|Ki,{destroy:void 0},Pm.bind(null,R,o),null)),[b,T,e]}function Pm(e,a){e.action=a}function zo(e){var a=Dn(),o=Hn;if(o!==null)return Uh(a,o,e);Dn(),a=a.memoizedState,o=Dn();var b=o.queue.dispatch;return o.memoizedState=e,[a,b,!1]}function os(e,a,o,b){return e={tag:e,create:o,deps:b,inst:a,next:null},a=Ft.updateQueue,a===null&&(a=hd(),Ft.updateQueue=a),o=a.lastEffect,o===null?a.lastEffect=e.next=e:(b=o.next,o.next=e,e.next=b,a.lastEffect=e),e}function Vh(e){var a=Ma();return e={current:e},a.memoizedState=e}function Po(e,a,o,b){var R=Ma();Ft.flags|=e,R.memoizedState=os(ks|a,{destroy:void 0},o,b===void 0?null:b)}function Ua(e,a,o,b){var R=Dn();b=b===void 0?null:b;var T=R.memoizedState.inst;Hn!==null&&b!==null&&Bm(b,Hn.memoizedState.deps)?R.memoizedState=os(a,T,o,b):(Ft.flags|=e,R.memoizedState=os(ks|a,T,o,b))}function Tl(e,a){(Ft.mode&bo)!==Mt?Po(276826112,Ki,e,a):Po(8390656,Ki,e,a)}function ny(e){Ft.flags|=4;var a=Ft.updateQueue;if(a===null)a=hd(),Ft.updateQueue=a,a.events=[e];else{var o=a.events;o===null?a.events=[e]:o.push(e)}}function vd(e){var a=Ma(),o={impl:e};return a.memoizedState=o,function(){if((En&Rr)!==qr)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return o.impl.apply(void 0,arguments)}}function Bc(e){var a=Dn().memoizedState;return ny({ref:a,nextImpl:e}),function(){if((En&Rr)!==qr)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function Qr(e,a){var o=4194308;return(Ft.mode&bo)!==Mt&&(o|=134217728),Po(o,Uu,e,a)}function zi(e,a){if(typeof a=="function"){e=e();var o=a(e);return function(){typeof o=="function"?o():a(null)}}if(a!=null)return a.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(a).join(", ")+"}"),e=e(),a.current=e,function(){a.current=null}}function ls(e,a,o){typeof a!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null"),o=o!=null?o.concat([e]):null;var b=4194308;(Ft.mode&bo)!==Mt&&(b|=134217728),Po(b,Uu,zi.bind(null,a,e),o)}function jc(e,a,o){typeof a!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null"),o=o!=null?o.concat([e]):null,Ua(4,Uu,zi.bind(null,a,e),o)}function Hh(e,a){return Ma().memoizedState=[e,a===void 0?null:a],e}function Iu(e,a){var o=Dn();a=a===void 0?null:a;var b=o.memoizedState;return a!==null&&Bm(a,b[1])?b[0]:(o.memoizedState=[e,a],e)}function Kr(e,a){var o=Ma();a=a===void 0?null:a;var b=e();if(yh){Yt(!0);try{e()}finally{Yt(!1)}}return o.memoizedState=[b,a],b}function Qn(e,a){var o=Dn();a=a===void 0?null:a;var b=o.memoizedState;if(a!==null&&Bm(a,b[1]))return b[0];if(b=e(),yh){Yt(!0);try{e()}finally{Yt(!1)}}return o.memoizedState=[b,a],b}function Fc(e,a){var o=Ma();return In(o,e,a)}function cs(e,a){var o=Dn();return xa(o,Hn.memoizedState,e,a)}function Ht(e,a){var o=Dn();return Hn===null?In(o,e,a):xa(o,Hn.memoizedState,e,a)}function In(e,a,o){return o===void 0||(ac&1073741824)!==0&&(en&261930)===0?e.memoizedState=a:(e.memoizedState=o,e=Yc(),Ft.lanes|=e,kf|=e,o)}function xa(e,a,o,b){return Ji(o,a)?o:mm.current!==null?(e=In(e,o,b),Ji(e,a)||(cr=!0),e):(ac&42)===0||(ac&1073741824)!==0&&(en&261930)===0?(cr=!0,e.memoizedState=o):(e=Yc(),Ft.lanes|=e,kf|=e,a)}function Dl(){Ze.asyncTransitions--}function Il(e,a,o,b,R){var T=Rn.p;Rn.p=T!==0&&T<Cr?T:Cr;var q=Ze.T,U={};U._updatedFibers=new Set,Ze.T=U,Ed(e,!1,a,o);try{var Q=R(),ee=Ze.S;if(ee!==null&&ee(U,Q),Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){Ze.asyncTransitions++,Q.then(Dl,Dl);var Te=Bh(Q,b);Ol(e,a,Te,Mr(e))}else Ol(e,a,b,Mr(e))}catch(Oe){Ol(e,a,{then:function(){},status:"rejected",reason:Oe},Mr(e))}finally{Rn.p=T,q!==null&&U.types!==null&&(q.types!==null&&q.types!==U.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),q.types=U.types),Ze.T=q,q===null&&U._updatedFibers&&(e=U._updatedFibers.size,U._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function so(e,a,o,b){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var R=bd(e).queue;rn(e),Il(e,R,a,Dh,o===null?N:function(){return qc(e),o(b)})}function bd(e){var a=e.memoizedState;if(a!==null)return a;a={memoizedState:Dh,baseState:Dh,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qi,lastRenderedState:Dh},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qi,lastRenderedState:o},next:null},e.memoizedState=a,e=e.alternate,e!==null&&(e.memoizedState=a),a}function qc(e){Ze.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var a=bd(e);a.next===null&&(a=e.alternate.memoizedState),Ol(e,a.next.queue,{},Mr(e))}function Uo(){var e=zh(!1);return e=Il.bind(null,Ft,e.queue,!0,!1),Ma().memoizedState=e,[!1,e]}function ay(){var e=Sl(qi)[0],a=Dn().memoizedState;return[typeof e=="boolean"?e:pd(e),a]}function oa(){var e=Cl(qi)[0],a=Dn().memoizedState;return[typeof e=="boolean"?e:pd(e),a]}function oo(){return Se(Wg)}function _d(){var e=Ma(),a=Yn.identifierPrefix;if(dn){var o=Ql,b=Wl;o=(b&~(1<<32-Sr(b)-1)).toString(32)+o,a="_"+a+"R_"+o,o=Tv++,0<o&&(a+="H"+o.toString(32)),a+="_"}else o=NE++,a="_"+a+"r_"+o.toString(32)+"_";return e.memoizedState=a}function Yh(){return Ma().memoizedState=ry.bind(null,Ft)}function ry(e,a){for(var o=e.return;o!==null;){switch(o.tag){case 24:case 3:var b=Mr(o),R=Pa(b),T=is(o,R,b);T!==null&&(Pt(b,"refresh()",e),Bt(T,o,b),lu(T,o,b)),e=ct(),a!=null&&T!==null&&console.error("The seed argument is not enabled outside experimental channels."),R.payload={cache:e};return}o=o.return}}function n1(e,a,o){var b=arguments;typeof b[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),b=Mr(e);var R={lane:b,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};ar(e)?pa(a,R):(R=Wu(e,a,R,b),R!==null&&(Pt(b,"dispatch()",e),Bt(R,e,b),xd(R,a,b)))}function Xh(e,a,o){var b=arguments;typeof b[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),b=Mr(e),Ol(e,a,o,b)&&Pt(b,"setState()",e)}function Ol(e,a,o,b){var R={lane:b,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(ar(e))pa(a,R);else{var T=e.alternate;if(e.lanes===0&&(T===null||T.lanes===0)&&(T=a.lastRenderedReducer,T!==null)){var q=Ze.H;Ze.H=Eo;try{var U=a.lastRenderedState,Q=T(U,o);if(R.hasEagerState=!0,R.eagerState=Q,Ji(Q,U))return $s(e,a,R,0),Yn===null&&gl(),!1}catch{}finally{Ze.H=q}}if(o=Wu(e,a,R,b),o!==null)return Bt(o,e,b),xd(o,a,b),!0}return!1}function Ed(e,a,o,b){if(Ze.T===null&&dh===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),b={lane:2,revertLane:w0(),gesture:null,action:b,hasEagerState:!1,eagerState:null,next:null},ar(e)){if(a)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else a=Wu(e,o,b,2),a!==null&&(Pt(2,"setOptimistic()",e),Bt(a,e,2))}function ar(e){var a=e.alternate;return e===Ft||a!==null&&a===Ft}function pa(e,a){vm=Rv=!0;var o=e.pending;o===null?a.next=a:(a.next=o.next,o.next=a),e.pending=a}function xd(e,a,o){if((o&4194048)!==0){var b=a.lanes;b&=e.pendingLanes,o|=b,a.lanes=o,Tt(e,o)}}function wl(e){if(e!==null&&typeof e!="function"){var a=String(e);j2.has(a)||(j2.add(a),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Gc(e,a,o,b){var R=e.memoizedState,T=o(b,R);if(e.mode&Ri){Yt(!0);try{T=o(b,R)}finally{Yt(!1)}}T===void 0&&(a=Ee(a)||"Component",L2.has(a)||(L2.add(a),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",a))),R=T==null?R:Wt({},R,T),e.memoizedState=R,e.lanes===0&&(e.updateQueue.baseState=R)}function Zh(e,a,o,b,R,T,q){var U=e.stateNode;if(typeof U.shouldComponentUpdate=="function"){if(o=U.shouldComponentUpdate(b,T,q),e.mode&Ri){Yt(!0);try{o=U.shouldComponentUpdate(b,T,q)}finally{Yt(!1)}}return o===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Ee(a)||"Component"),o}return a.prototype&&a.prototype.isPureReactComponent?!Io(o,b)||!Io(R,T):!0}function fs(e,a,o,b){var R=a.state;typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(o,b),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(o,b),a.state!==R&&(e=me(e)||"Component",D2.has(e)||(D2.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),X1.enqueueReplaceState(a,a.state,null))}function ds(e,a){var o=a;if("ref"in a){o={};for(var b in a)b!=="ref"&&(o[b]=a[b])}if(e=e.defaultProps){o===a&&(o=Wt({},o));for(var R in e)o[R]===void 0&&(o[R]=e[R])}return o}function $h(e){S1(e),console.warn(`%s
255
+
256
+ %s
257
+ `,bm?"An error occurred in the <"+bm+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
258
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Jh(e){var a=bm?"The above error occurred in the <"+bm+"> component.":"The above error occurred in one of your React components.",o="React will try to recreate this component tree from scratch using the error boundary you provided, "+((Z1||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var b=e.environmentName;e=[`%o
259
+
260
+ %s
261
+
262
+ %s
263
+ `,e,a,o].slice(0),typeof e[0]=="string"?e.splice(0,1,b_+" "+e[0],__,Qv+b+Qv,E_):e.splice(0,0,b_,__,Qv+b+Qv,E_),e.unshift(console),b=KE.apply(console.error,e),b()}else console.error(`%o
264
+
265
+ %s
266
+
267
+ %s
268
+ `,e,a,o)}function Um(e){S1(e)}function Sd(e,a){try{bm=a.source?me(a.source):null,Z1=null;var o=a.value;if(Ze.actQueue!==null)Ze.thrownErrors.push(o);else{var b=e.onUncaughtError;b(o,{componentStack:a.stack})}}catch(R){setTimeout(function(){throw R})}}function Vm(e,a,o){try{bm=o.source?me(o.source):null,Z1=me(a);var b=e.onCaughtError;b(o.value,{componentStack:o.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(R){setTimeout(function(){throw R})}}function Wh(e,a,o){return o=Pa(o),o.tag=z1,o.payload={element:null},o.callback=function(){Be(a.source,Sd,e,a)},o}function Qh(e){return e=Pa(e),e.tag=z1,e}function Kh(e,a,o,b){var R=o.type.getDerivedStateFromError;if(typeof R=="function"){var T=b.value;e.payload=function(){return R(T)},e.callback=function(){Js(o),Be(b.source,Vm,a,o,b)}}var q=o.stateNode;q!==null&&typeof q.componentDidCatch=="function"&&(e.callback=function(){Js(o),Be(b.source,Vm,a,o,b),typeof R!="function"&&(jf===null?jf=new Set([this]):jf.add(this)),DE(this,b),typeof R=="function"||(o.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",me(o)||"Unknown")})}function Hm(e,a,o,b,R){if(o.flags|=32768,As&&Wc(e,R),b!==null&&typeof b=="object"&&typeof b.then=="function"){if(a=o.alternate,a!==null&&$(a,o,R,!0),dn&&(il=!0),o=Pu.current,o!==null){switch(o.tag){case 31:case 13:return Ms===null?Zc():o.alternate===null&&ga===sc&&(ga=Ov),o.flags&=-257,o.flags|=65536,o.lanes=R,b===Sv?o.flags|=16384:(a=o.updateQueue,a===null?o.updateQueue=new Set([b]):a.add(b),bp(e,b,R)),!1;case 22:return o.flags|=65536,b===Sv?o.flags|=16384:(a=o.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([b])},o.updateQueue=a):(o=a.retryQueue,o===null?a.retryQueue=new Set([b]):o.add(b)),bp(e,b,R)),!1}throw Error("Unexpected Suspense handler tag ("+o.tag+"). This is a bug in React.")}return bp(e,b,R),Zc(),!1}if(dn)return il=!0,a=Pu.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=R,b!==O1&&x(Er(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:b}),o))):(b!==O1&&x(Er(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:b}),o)),e=e.current.alternate,e.flags|=65536,R&=-R,e.lanes|=R,b=Er(b,o),R=Wh(e.stateNode,b,R),od(e,R),ga!==Lf&&(ga=vh)),!1;var T=Er(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:b}),o);if(Pg===null?Pg=[T]:Pg.push(T),ga!==Lf&&(ga=vh),a===null)return!0;b=Er(b,o),o=a;do{switch(o.tag){case 3:return o.flags|=65536,e=R&-R,o.lanes|=e,e=Wh(o.stateNode,b,e),od(o,e),!1;case 1:if(a=o.type,T=o.stateNode,(o.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||T!==null&&typeof T.componentDidCatch=="function"&&(jf===null||!jf.has(T))))return o.flags|=65536,R&=-R,o.lanes|=R,R=Qh(R),Kh(R,e,o,b),od(o,R),!1}o=o.return}while(o!==null);return!1}function rr(e,a,o,b){a.child=e===null?g2(a,null,o,b):gh(a,e.child,o,b)}function iy(e,a,o,b,R){o=o.render;var T=a.ref;if("ref"in b){var q={};for(var U in b)U!=="ref"&&(q[U]=b[U])}else q=b;return he(a),b=jm(e,a,o,q,T,R),U=xl(),e!==null&&!cr?(dd(e,a,R),Ou(e,a,R)):(dn&&U&&vl(a),a.flags|=1,rr(e,a,b,R),a.child)}function Ym(e,a,o,b,R){if(e===null){var T=o.type;return typeof T=="function"&&!xc(T)&&T.defaultProps===void 0&&o.compare===null?(o=Qu(T),a.tag=15,a.type=o,zc(a,T),Xm(e,a,o,b,R)):(e=Ws(o.type,null,b,a,a.mode,R),e.ref=a.ref,e.return=a,a.child=e)}if(T=e.child,!rp(e,R)){var q=T.memoizedProps;if(o=o.compare,o=o!==null?o:Io,o(q,b)&&e.ref===a.ref)return Ou(e,a,R)}return a.flags|=1,e=uu(T,b),e.ref=a.ref,e.return=a,a.child=e}function Xm(e,a,o,b,R){if(e!==null){var T=e.memoizedProps;if(Io(T,b)&&e.ref===a.ref&&a.type===e.type)if(cr=!1,a.pendingProps=b=T,rp(e,R))(e.flags&131072)!==0&&(cr=!0);else return a.lanes=e.lanes,Ou(e,a,R)}return Wm(e,a,o,b,R)}function Zm(e,a,o,b){var R=b.children,T=e!==null?e.memoizedState:null;if(e===null&&a.stateNode===null&&(a.stateNode={_visibility:yg,_pendingMarkers:null,_retryCache:null,_transitions:null}),b.mode==="hidden"){if((a.flags&128)!==0){if(T=T!==null?T.baseLanes|o:o,e!==null){for(b=a.child=e.child,R=0;b!==null;)R=R|b.lanes|b.childLanes,b=b.sibling;b=R&~T}else b=0,a.child=null;return $m(e,a,T,o,b)}if((o&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ic(a,T!==null?T.cachePool:null),T!==null?qh(a,T):no(a),Gh(a);else return b=a.lanes=536870912,$m(e,a,T!==null?T.baseLanes|o:o,o,b)}else T!==null?(Ic(a,T.cachePool),qh(a,T),ss(a),a.memoizedState=null):(e!==null&&Ic(a,null),no(a),ss(a));return rr(e,a,R,o),a.child}function Nl(e,a){return e!==null&&e.tag===22||a.stateNode!==null||(a.stateNode={_visibility:yg,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function $m(e,a,o,b,R){var T=to();return T=T===null?null:{parent:sr._currentValue,pool:T},a.memoizedState={baseLanes:o,cachePool:T},e!==null&&Ic(a,null),no(a),Gh(a),e!==null&&$(e,a,b,!0),a.childLanes=R,null}function Cd(e,a){var o=a.hidden;return o!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
269
+ - <Activity %s>
270
+ + <Activity %s>`,o===!0?"hidden":o===!1?"hidden={false}":"hidden={...}",o?'mode="hidden"':'mode="visible"'),a=Rd({mode:a.mode,children:a.children},e.mode),a.ref=e.ref,e.child=a,a.return=e,a}function Jm(e,a,o){return gh(a,e.child,null,o),e=Cd(a,a.pendingProps),e.flags|=2,nr(a),a.memoizedState=null,e}function uy(e,a,o){var b=a.pendingProps,R=(a.flags&128)!==0;if(a.flags&=-129,e===null){if(dn){if(b.mode==="hidden")return e=Cd(a,b),a.lanes=536870912,Nl(null,e);if(Du(a),(e=na)?(o=wn(e,Ns),o=o!==null&&o.data===Ch?o:null,o!==null&&(b={dehydrated:o,treeContext:ad(),retryLane:536870912,hydrationErrors:null},a.memoizedState=b,b=nd(o),b.return=a,a.child=b,oi=a,na=null)):o=null,o===null)throw er(a,e),yi(a);return a.lanes=536870912,null}return Cd(a,b)}var T=e.memoizedState;if(T!==null){var q=T.dehydrated;if(Du(a),R)if(a.flags&256)a.flags&=-257,a=Jm(e,a,o);else if(a.memoizedState!==null)a.child=e.child,a.flags|=128,a=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(rd(),(o&536870912)!==0&&Xc(a),cr||$(e,a,o,!1),R=(o&e.childLanes)!==0,cr||R){if(b=Yn,b!==null&&(q=Yu(b,o),q!==0&&q!==T.retryLane))throw T.retryLane=q,La(e,q),Bt(b,e,q),$1;Zc(),a=Jm(e,a,o)}else e=T.treeContext,na=Yi(q.nextSibling),oi=a,dn=!0,Tf=null,il=!1,zu=null,Ns=!1,e!==null&&Dc(a,e),a=Cd(a,b),a.flags|=4096;return a}return T=e.child,b={mode:b.mode,children:b.children},(o&536870912)!==0&&(o&e.lanes)!==0&&Xc(a),e=uu(T,b),e.ref=a.ref,a.child=e,e.return=a,e}function Ad(e,a){var o=a.ref;if(o===null)e!==null&&e.ref!==null&&(a.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==o)&&(a.flags|=4194816)}}function Wm(e,a,o,b,R){if(o.prototype&&typeof o.prototype.render=="function"){var T=Ee(o)||"Unknown";F2[T]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",T,T),F2[T]=!0)}return a.mode&Ri&&_o.recordLegacyContextWarning(a,null),e===null&&(zc(a,a.type),o.contextTypes&&(T=Ee(o)||"Unknown",G2[T]||(G2[T]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",T)))),he(a),o=jm(e,a,o,b,void 0,R),b=xl(),e!==null&&!cr?(dd(e,a,R),Ou(e,a,R)):(dn&&b&&vl(a),a.flags|=1,rr(e,a,o,R),a.child)}function Qm(e,a,o,b,R,T){return he(a),ic=-1,kg=e!==null&&e.type!==a.type,a.updateQueue=null,o=cd(a,b,o,R),Ea(e,a),b=xl(),e!==null&&!cr?(dd(e,a,T),Ou(e,a,T)):(dn&&b&&vl(a),a.flags|=1,rr(e,a,o,T),a.child)}function Ll(e,a,o,b,R){switch(S(a)){case!1:var T=a.stateNode,q=new a.type(a.memoizedProps,T.context).state;T.updater.enqueueSetState(T,q,null);break;case!0:a.flags|=128,a.flags|=65536,T=Error("Simulated error coming from DevTools");var U=R&-R;if(a.lanes|=U,q=Yn,q===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");U=Qh(U),Kh(U,q,a,Er(T,a)),od(a,U)}if(he(a),a.stateNode===null){if(q=Rf,T=o.contextType,"contextType"in o&&T!==null&&(T===void 0||T.$$typeof!==Fu)&&!B2.has(o)&&(B2.add(o),U=T===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof T!="object"?" However, it is set to a "+typeof T+".":T.$$typeof===zp?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(T).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Ee(o)||"Component",U)),typeof T=="object"&&T!==null&&(q=Se(T)),T=new o(b,q),a.mode&Ri){Yt(!0);try{T=new o(b,q)}finally{Yt(!1)}}if(q=a.memoizedState=T.state!==null&&T.state!==void 0?T.state:null,T.updater=X1,a.stateNode=T,T._reactInternals=a,T._reactInternalInstance=T2,typeof o.getDerivedStateFromProps=="function"&&q===null&&(q=Ee(o)||"Component",I2.has(q)||(I2.add(q),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",q,T.state===null?"null":"undefined",q))),typeof o.getDerivedStateFromProps=="function"||typeof T.getSnapshotBeforeUpdate=="function"){var Q=U=q=null;if(typeof T.componentWillMount=="function"&&T.componentWillMount.__suppressDeprecationWarning!==!0?q="componentWillMount":typeof T.UNSAFE_componentWillMount=="function"&&(q="UNSAFE_componentWillMount"),typeof T.componentWillReceiveProps=="function"&&T.componentWillReceiveProps.__suppressDeprecationWarning!==!0?U="componentWillReceiveProps":typeof T.UNSAFE_componentWillReceiveProps=="function"&&(U="UNSAFE_componentWillReceiveProps"),typeof T.componentWillUpdate=="function"&&T.componentWillUpdate.__suppressDeprecationWarning!==!0?Q="componentWillUpdate":typeof T.UNSAFE_componentWillUpdate=="function"&&(Q="UNSAFE_componentWillUpdate"),q!==null||U!==null||Q!==null){T=Ee(o)||"Component";var ee=typeof o.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";w2.has(T)||(w2.add(T),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
271
+
272
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
273
+
274
+ The above lifecycles should be removed. Learn more about this warning here:
275
+ https://react.dev/link/unsafe-component-lifecycles`,T,ee,q!==null?`
276
+ `+q:"",U!==null?`
277
+ `+U:"",Q!==null?`
278
+ `+Q:""))}}T=a.stateNode,q=Ee(o)||"Component",T.render||(o.prototype&&typeof o.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",q):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",q)),!T.getInitialState||T.getInitialState.isReactClassApproved||T.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",q),T.getDefaultProps&&!T.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",q),T.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",q),o.childContextTypes&&!k2.has(o)&&(k2.add(o),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",q)),o.contextTypes&&!M2.has(o)&&(M2.add(o),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",q)),typeof T.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",q),o.prototype&&o.prototype.isPureReactComponent&&typeof T.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Ee(o)||"A pure component"),typeof T.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",q),typeof T.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",q),typeof T.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",q),typeof T.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",q),U=T.props!==b,T.props!==void 0&&U&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",q),T.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",q,q),typeof T.getSnapshotBeforeUpdate!="function"||typeof T.componentDidUpdate=="function"||O2.has(o)||(O2.add(o),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Ee(o))),typeof T.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",q),typeof T.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",q),typeof o.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",q),(U=T.state)&&(typeof U!="object"||Ba(U))&&console.error("%s.state: must be set to an object or null",q),typeof T.getChildContext=="function"&&typeof o.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",q),T=a.stateNode,T.props=b,T.state=a.memoizedState,T.refs={},cn(a),q=o.contextType,T.context=typeof q=="object"&&q!==null?Se(q):Rf,T.state===b&&(q=Ee(o)||"Component",N2.has(q)||(N2.add(q),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",q))),a.mode&Ri&&_o.recordLegacyContextWarning(a,T),_o.recordUnsafeLifecycleWarnings(a,T),T.state=a.memoizedState,q=o.getDerivedStateFromProps,typeof q=="function"&&(Gc(a,o,q,b),T.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof T.getSnapshotBeforeUpdate=="function"||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(q=T.state,typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount(),q!==T.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",me(a)||"Component"),X1.enqueueReplaceState(T,T.state,null)),us(a,b,T,R),wc(),T.state=a.memoizedState),typeof T.componentDidMount=="function"&&(a.flags|=4194308),(a.mode&bo)!==Mt&&(a.flags|=134217728),T=!0}else if(e===null){T=a.stateNode;var Te=a.memoizedProps;U=ds(o,Te),T.props=U;var Oe=T.context;Q=o.contextType,q=Rf,typeof Q=="object"&&Q!==null&&(q=Se(Q)),ee=o.getDerivedStateFromProps,Q=typeof ee=="function"||typeof T.getSnapshotBeforeUpdate=="function",Te=a.pendingProps!==Te,Q||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(Te||Oe!==q)&&fs(a,T,b,q),Nf=!1;var ve=a.memoizedState;T.state=ve,us(a,b,T,R),wc(),Oe=a.memoizedState,Te||ve!==Oe||Nf?(typeof ee=="function"&&(Gc(a,o,ee,b),Oe=a.memoizedState),(U=Nf||Zh(a,o,U,b,ve,Oe,q))?(Q||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount()),typeof T.componentDidMount=="function"&&(a.flags|=4194308),(a.mode&bo)!==Mt&&(a.flags|=134217728)):(typeof T.componentDidMount=="function"&&(a.flags|=4194308),(a.mode&bo)!==Mt&&(a.flags|=134217728),a.memoizedProps=b,a.memoizedState=Oe),T.props=b,T.state=Oe,T.context=q,T=U):(typeof T.componentDidMount=="function"&&(a.flags|=4194308),(a.mode&bo)!==Mt&&(a.flags|=134217728),T=!1)}else{T=a.stateNode,rs(e,a),q=a.memoizedProps,Q=ds(o,q),T.props=Q,ee=a.pendingProps,ve=T.context,Oe=o.contextType,U=Rf,typeof Oe=="object"&&Oe!==null&&(U=Se(Oe)),Te=o.getDerivedStateFromProps,(Oe=typeof Te=="function"||typeof T.getSnapshotBeforeUpdate=="function")||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(q!==ee||ve!==U)&&fs(a,T,b,U),Nf=!1,ve=a.memoizedState,T.state=ve,us(a,b,T,R),wc();var Ue=a.memoizedState;q!==ee||ve!==Ue||Nf||e!==null&&e.dependencies!==null&&ne(e.dependencies)?(typeof Te=="function"&&(Gc(a,o,Te,b),Ue=a.memoizedState),(Q=Nf||Zh(a,o,Q,b,ve,Ue,U)||e!==null&&e.dependencies!==null&&ne(e.dependencies))?(Oe||typeof T.UNSAFE_componentWillUpdate!="function"&&typeof T.componentWillUpdate!="function"||(typeof T.componentWillUpdate=="function"&&T.componentWillUpdate(b,Ue,U),typeof T.UNSAFE_componentWillUpdate=="function"&&T.UNSAFE_componentWillUpdate(b,Ue,U)),typeof T.componentDidUpdate=="function"&&(a.flags|=4),typeof T.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof T.componentDidUpdate!="function"||q===e.memoizedProps&&ve===e.memoizedState||(a.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||q===e.memoizedProps&&ve===e.memoizedState||(a.flags|=1024),a.memoizedProps=b,a.memoizedState=Ue),T.props=b,T.state=Ue,T.context=U,T=Q):(typeof T.componentDidUpdate!="function"||q===e.memoizedProps&&ve===e.memoizedState||(a.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||q===e.memoizedProps&&ve===e.memoizedState||(a.flags|=1024),T=!1)}if(U=T,Ad(e,a),q=(a.flags&128)!==0,U||q){if(U=a.stateNode,oe(a),q&&typeof o.getDerivedStateFromError!="function")o=null,Wi=-1;else if(o=n2(U),a.mode&Ri){Yt(!0);try{n2(U)}finally{Yt(!1)}}a.flags|=1,e!==null&&q?(a.child=gh(a,e.child,null,R),a.child=gh(a,null,o,R)):rr(e,a,o,R),a.memoizedState=U.state,e=a.child}else e=Ou(e,a,R);return R=a.stateNode,T&&R.props!==b&&(_m||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",me(a)||"a component"),_m=!0),e}function Km(e,a,o,b){return ya(),a.flags|=256,rr(e,a,o,b),a.child}function zc(e,a){a&&a.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
279
+ %s.childContextTypes = ...`,a.displayName||a.name||"Component"),typeof a.getDerivedStateFromProps=="function"&&(e=Ee(a)||"Unknown",z2[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),z2[e]=!0)),typeof a.contextType=="object"&&a.contextType!==null&&(a=Ee(a)||"Unknown",q2[a]||(console.error("%s: Function components do not support contextType.",a),q2[a]=!0))}function Pc(e){return{baseLanes:e,cachePool:Nm()}}function ep(e,a,o){return e=e!==null?e.childLanes&~o:0,a&&(e|=yu),e}function tp(e,a,o){var b,R=a.pendingProps;v(a)&&(a.flags|=128);var T=!1,q=(a.flags&128)!==0;if((b=q)||(b=e!==null&&e.memoizedState===null?!1:(Xa.current&Lg)!==0),b&&(T=!0,a.flags&=-129),b=(a.flags&32)!==0,a.flags&=-33,e===null){if(dn){if(T?Wr(a):ss(a),(e=na)?(o=wn(e,Ns),o=o!==null&&o.data!==Ch?o:null,o!==null&&(b={dehydrated:o,treeContext:ad(),retryLane:536870912,hydrationErrors:null},a.memoizedState=b,b=nd(o),b.return=a,a.child=b,oi=a,na=null)):o=null,o===null)throw er(a,e),yi(a);return M0(o)?a.lanes=32:a.lanes=536870912,null}var U=R.children;if(R=R.fallback,T){ss(a);var Q=a.mode;return U=Rd({mode:"hidden",children:U},Q),R=Qs(R,Q,o,null),U.return=a,R.return=a,U.sibling=R,a.child=U,R=a.child,R.memoizedState=Pc(o),R.childLanes=ep(e,b,o),a.memoizedState=J1,Nl(null,R)}return Wr(a),e0(a,U)}var ee=e.memoizedState;if(ee!==null){var Te=ee.dehydrated;if(Te!==null){if(q)a.flags&256?(Wr(a),a.flags&=-257,a=np(e,a,o)):a.memoizedState!==null?(ss(a),a.child=e.child,a.flags|=128,a=null):(ss(a),U=R.fallback,Q=a.mode,R=Rd({mode:"visible",children:R.children},Q),U=Qs(U,Q,o,null),U.flags|=2,R.return=a,U.return=a,R.sibling=U,a.child=R,gh(a,e.child,null,o),R=a.child,R.memoizedState=Pc(o),R.childLanes=ep(e,b,o),a.memoizedState=J1,a=Nl(null,R));else if(Wr(a),rd(),(o&536870912)!==0&&Xc(a),M0(Te)){if(b=Te.nextSibling&&Te.nextSibling.dataset,b){U=b.dgst;var Oe=b.msg;Q=b.stck;var ve=b.cstck}T=Oe,b=U,R=Q,Te=ve,U=T,Q=Te,U=Error(U||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),U.stack=R||"",U.digest=b,b=Q===void 0?null:Q,R={value:U,source:null,stack:b},typeof b=="string"&&I1.set(U,R),x(R),a=np(e,a,o)}else if(cr||$(e,a,o,!1),b=(o&e.childLanes)!==0,cr||b){if(b=Yn,b!==null&&(R=Yu(b,o),R!==0&&R!==ee.retryLane))throw ee.retryLane=R,La(e,R),Bt(b,e,R),$1;Vd(Te)||Zc(),a=np(e,a,o)}else Vd(Te)?(a.flags|=192,a.child=e.child,a=null):(e=ee.treeContext,na=Yi(Te.nextSibling),oi=a,dn=!0,Tf=null,il=!1,zu=null,Ns=!1,e!==null&&Dc(a,e),a=e0(a,R.children),a.flags|=4096);return a}}return T?(ss(a),U=R.fallback,Q=a.mode,ve=e.child,Te=ve.sibling,R=uu(ve,{mode:"hidden",children:R.children}),R.subtreeFlags=ve.subtreeFlags&65011712,Te!==null?U=uu(Te,U):(U=Qs(U,Q,o,null),U.flags|=2),U.return=a,R.return=a,R.sibling=U,a.child=R,Nl(null,R),R=a.child,U=e.child.memoizedState,U===null?U=Pc(o):(Q=U.cachePool,Q!==null?(ve=sr._currentValue,Q=Q.parent!==ve?{parent:ve,pool:ve}:Q):Q=Nm(),U={baseLanes:U.baseLanes|o,cachePool:Q}),R.memoizedState=U,R.childLanes=ep(e,b,o),a.memoizedState=J1,Nl(e.child,R)):(ee!==null&&(o&62914560)===o&&(o&e.lanes)!==0&&Xc(a),Wr(a),o=e.child,e=o.sibling,o=uu(o,{mode:"visible",children:R.children}),o.return=a,o.sibling=null,e!==null&&(b=a.deletions,b===null?(a.deletions=[e],a.flags|=16):b.push(e)),a.child=o,a.memoizedState=null,o)}function e0(e,a){return a=Rd({mode:"visible",children:a},e.mode),a.return=e,e.child=a}function Rd(e,a){return e=z(22,e,null,a),e.lanes=0,e}function np(e,a,o){return gh(a,e.child,null,o),e=e0(a,a.pendingProps.children),e.flags|=2,a.memoizedState=null,e}function t0(e,a,o){e.lanes|=a;var b=e.alternate;b!==null&&(b.lanes|=a),G(e.return,a,o)}function ap(e,a,o,b,R,T){var q=e.memoizedState;q===null?e.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:b,tail:o,tailMode:R,treeForkCount:T}:(q.isBackwards=a,q.rendering=null,q.renderingStartTime=0,q.last=b,q.tail=o,q.tailMode=R,q.treeForkCount=T)}function n0(e,a,o){var b=a.pendingProps,R=b.revealOrder,T=b.tail,q=b.children,U=Xa.current;if((b=(U&Lg)!==0)?(U=U&gm|Lg,a.flags|=128):U&=gm,we(Xa,U,a),U=R??"null",R!=="forwards"&&R!=="unstable_legacy-backwards"&&R!=="together"&&R!=="independent"&&!P2[U])if(P2[U]=!0,R==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(R==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof R=="string")switch(R.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',R,R.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',R,R.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',R)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',R);U=T??"null",Iv[U]||(T==null?(R==="forwards"||R==="backwards"||R==="unstable_legacy-backwards")&&(Iv[U]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):T!=="visible"&&T!=="collapsed"&&T!=="hidden"?(Iv[U]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',T)):R!=="forwards"&&R!=="backwards"&&R!=="unstable_legacy-backwards"&&(Iv[U]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',T)));e:if((R==="forwards"||R==="backwards"||R==="unstable_legacy-backwards")&&q!==void 0&&q!==null&&q!==!1)if(Ba(q)){for(U=0;U<q.length;U++)if(!Pn(q[U],U))break e}else if(U=pe(q),typeof U=="function"){if(U=U.call(q))for(var Q=U.next(),ee=0;!Q.done;Q=U.next()){if(!Pn(Q.value,ee))break e;ee++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',R);if(rr(e,a,q,o),dn?(es(),q=vg):q=0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=a.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&t0(e,o,a);else if(e.tag===19)t0(e,o,a);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===a)break e;for(;e.sibling===null;){if(e.return===null||e.return===a)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(R){case"forwards":for(o=a.child,R=null;o!==null;)e=o.alternate,e!==null&&El(e)===null&&(R=o),o=o.sibling;o=R,o===null?(R=a.child,a.child=null):(R=o.sibling,o.sibling=null),ap(a,!1,R,o,T,q);break;case"backwards":case"unstable_legacy-backwards":for(o=null,R=a.child,a.child=null;R!==null;){if(e=R.alternate,e!==null&&El(e)===null){a.child=R;break}e=R.sibling,R.sibling=o,o=R,R=e}ap(a,!0,o,null,T,q);break;case"together":ap(a,!1,null,null,void 0,q);break;default:a.memoizedState=null}return a.child}function Ou(e,a,o){if(e!==null&&(a.dependencies=e.dependencies),Wi=-1,kf|=a.lanes,(o&a.childLanes)===0)if(e!==null){if($(e,a,o,!1),(o&a.childLanes)===0)return null}else return null;if(e!==null&&a.child!==e.child)throw Error("Resuming work not yet implemented.");if(a.child!==null){for(e=a.child,o=uu(e,e.pendingProps),a.child=o,o.return=a;e.sibling!==null;)e=e.sibling,o=o.sibling=uu(e,e.pendingProps),o.return=a;o.sibling=null}return a.child}function rp(e,a){return(e.lanes&a)!==0?!0:(e=e.dependencies,!!(e!==null&&ne(e)))}function sy(e,a,o){switch(a.tag){case 3:Ge(a,a.stateNode.containerInfo),E(a,sr,e.memoizedState.cache),ya();break;case 27:case 5:ke(a);break;case 4:Ge(a,a.stateNode.containerInfo);break;case 10:E(a,a.type,a.memoizedProps.value);break;case 12:(o&a.childLanes)!==0&&(a.flags|=4),a.flags|=2048;var b=a.stateNode;b.effectDuration=-0,b.passiveEffectDuration=-0;break;case 31:if(a.memoizedState!==null)return a.flags|=128,Du(a),null;break;case 13:if(b=a.memoizedState,b!==null)return b.dehydrated!==null?(Wr(a),a.flags|=128,null):(o&a.child.childLanes)!==0?tp(e,a,o):(Wr(a),e=Ou(e,a,o),e!==null?e.sibling:null);Wr(a);break;case 19:var R=(e.flags&128)!==0;if(b=(o&a.childLanes)!==0,b||($(e,a,o,!1),b=(o&a.childLanes)!==0),R){if(b)return n0(e,a,o);a.flags|=128}if(R=a.memoizedState,R!==null&&(R.rendering=null,R.tail=null,R.lastEffect=null),we(Xa,Xa.current,a),b)break;return null;case 22:return a.lanes=0,Zm(e,a,o,a.pendingProps);case 24:E(a,sr,e.memoizedState.cache)}return Ou(e,a,o)}function Td(e,a,o){if(a._debugNeedsRemount&&e!==null){o=Ws(a.type,a.key,a.pendingProps,a._debugOwner||null,a.mode,a.lanes),o._debugStack=a._debugStack,o._debugTask=a._debugTask;var b=a.return;if(b===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,a.alternate=null,o.index=a.index,o.sibling=a.sibling,o.return=a.return,o.ref=a.ref,o._debugInfo=a._debugInfo,a===b.child)b.child=o;else{var R=b.child;if(R===null)throw Error("Expected parent to have a child.");for(;R.sibling!==a;)if(R=R.sibling,R===null)throw Error("Expected to find the previous sibling.");R.sibling=o}return a=b.deletions,a===null?(b.deletions=[e],b.flags|=16):a.push(e),o.flags|=2,o}if(e!==null)if(e.memoizedProps!==a.pendingProps||a.type!==e.type)cr=!0;else{if(!rp(e,o)&&(a.flags&128)===0)return cr=!1,sy(e,a,o);cr=(e.flags&131072)!==0}else cr=!1,(b=dn)&&(es(),b=(a.flags&1048576)!==0),b&&(b=a.index,es(),Rc(a,vg,b));switch(a.lanes=0,a.tag){case 16:e:if(b=a.pendingProps,e=ji(a.elementType),a.type=e,typeof e=="function")xc(e)?(b=ds(e,b),a.tag=1,a.type=e=Qu(e),a=Ll(null,a,e,b,o)):(a.tag=0,zc(a,e),a.type=e=Qu(e),a=Wm(null,a,e,b,o));else{if(e!=null){if(R=e.$$typeof,R===df){a.tag=11,a.type=e=Ec(e),a=iy(null,a,e,b,o);break e}else if(R===eh){a.tag=14,a=Ym(null,a,e,b,o);break e}}throw a="",e!==null&&typeof e=="object"&&e.$$typeof===kr&&(a=" Did you wrap a component in React.lazy() more than once?"),o=Ee(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+o+". Lazy element type must resolve to a class or function."+a)}return a;case 0:return Wm(e,a,a.type,a.pendingProps,o);case 1:return b=a.type,R=ds(b,a.pendingProps),Ll(e,a,b,R,o);case 3:e:{if(Ge(a,a.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");b=a.pendingProps;var T=a.memoizedState;R=T.element,rs(e,a),us(a,b,null,o);var q=a.memoizedState;if(b=q.cache,E(a,sr,b),b!==T.cache&&Y(a,[sr],o,!0),wc(),b=q.element,T.isDehydrated)if(T={element:b,isDehydrated:!1,cache:q.cache},a.updateQueue.baseState=T,a.memoizedState=T,a.flags&256){a=Km(e,a,b,o);break e}else if(b!==R){R=Er(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),a),x(R),a=Km(e,a,b,o);break e}else for(e=a.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,na=Yi(e.firstChild),oi=a,dn=!0,Tf=null,il=!1,zu=null,Ns=!0,o=g2(a,null,b,o),a.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(ya(),b===R){a=Ou(e,a,o);break e}rr(e,a,b,o)}a=a.child}return a;case 26:return Ad(e,a),e===null?(o=F0(a.type,null,a.pendingProps,null))?a.memoizedState=o:dn||(o=a.type,e=a.pendingProps,b=De(Xi.current),b=Pd(b).createElement(o),b[ea]=a,b[si]=e,Kn(b,o,e),Fn(b),a.stateNode=b):a.memoizedState=F0(a.type,e.memoizedProps,a.pendingProps,e.memoizedState),null;case 27:return ke(a),e===null&&dn&&(b=De(Xi.current),R=Ce(),b=a.stateNode=mo(a.type,a.pendingProps,b,R,!1),il||(R=Si(b,a.type,a.pendingProps,R),R!==null&&(ts(a,0).serverProps=R)),oi=a,Ns=!0,R=na,Qo(a.type)?(bb=R,na=Yi(b.firstChild)):na=R),rr(e,a,a.pendingProps.children,o),Ad(e,a),e===null&&(a.flags|=4194304),a.child;case 5:return e===null&&dn&&(T=Ce(),b=cl(a.type,T.ancestorInfo),R=na,(q=!R)||(q=jy(R,a.type,a.pendingProps,Ns),q!==null?(a.stateNode=q,il||(T=Si(q,a.type,a.pendingProps,T),T!==null&&(ts(a,0).serverProps=T)),oi=a,na=Yi(q.firstChild),Ns=!1,T=!0):T=!1,q=!T),q&&(b&&er(a,R),yi(a))),ke(a),R=a.type,T=a.pendingProps,q=e!==null?e.memoizedProps:null,b=T.children,nf(R,T)?b=null:q!==null&&nf(R,q)&&(a.flags|=32),a.memoizedState!==null&&(R=jm(e,a,fd,null,null,o),Wg._currentValue=R),Ad(e,a),rr(e,a,b,o),a.child;case 6:return e===null&&dn&&(o=a.pendingProps,e=Ce(),b=e.ancestorInfo.current,o=b!=null?fl(o,b.tag,e.ancestorInfo.implicitRootScope):!0,e=na,(b=!e)||(b=Fy(e,a.pendingProps,Ns),b!==null?(a.stateNode=b,oi=a,na=null,b=!0):b=!1,b=!b),b&&(o&&er(a,e),yi(a))),null;case 13:return tp(e,a,o);case 4:return Ge(a,a.stateNode.containerInfo),b=a.pendingProps,e===null?a.child=gh(a,null,b,o):rr(e,a,b,o),a.child;case 11:return iy(e,a,a.type,a.pendingProps,o);case 7:return rr(e,a,a.pendingProps,o),a.child;case 8:return rr(e,a,a.pendingProps.children,o),a.child;case 12:return a.flags|=4,a.flags|=2048,b=a.stateNode,b.effectDuration=-0,b.passiveEffectDuration=-0,rr(e,a,a.pendingProps.children,o),a.child;case 10:return b=a.type,R=a.pendingProps,T=R.value,"value"in R||U2||(U2=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),E(a,b,T),rr(e,a,R.children,o),a.child;case 9:return R=a.type._context,b=a.pendingProps.children,typeof b!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),he(a),R=Se(R),b=j1(b,R,void 0),a.flags|=1,rr(e,a,b,o),a.child;case 14:return Ym(e,a,a.type,a.pendingProps,o);case 15:return Xm(e,a,a.type,a.pendingProps,o);case 19:return n0(e,a,o);case 31:return uy(e,a,o);case 22:return Zm(e,a,o,a.pendingProps);case 24:return he(a),b=Se(sr),e===null?(R=to(),R===null&&(R=Yn,T=ct(),R.pooledCache=T,mt(T),T!==null&&(R.pooledCacheLanes|=o),R=T),a.memoizedState={parent:b,cache:R},cn(a),E(a,sr,R)):((e.lanes&o)!==0&&(rs(e,a),us(a,null,null,o),wc()),R=e.memoizedState,T=a.memoizedState,R.parent!==b?(R={parent:b,cache:b},a.memoizedState=R,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=R),E(a,sr,b)):(b=T.cache,E(a,sr,b),b!==R.cache&&Y(a,[sr],o,!0))),rr(e,a,a.pendingProps.children,o),a.child;case 29:throw a.pendingProps}throw Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function hs(e){e.flags|=4}function ip(e,a,o,b,R){if((a=(e.mode&SE)!==Mt)&&(a=!1),a){if(e.flags|=16777216,(R&335544128)===R)if(e.stateNode.complete)e.flags|=8192;else if(E0())e.flags|=8192;else throw mh=Sv,q1}else e.flags&=-16777217}function oy(e,a){if(a.type!=="stylesheet"||(a.state.loading&js)!==Th)e.flags&=-16777217;else if(e.flags|=16777216,!sn(a))if(E0())e.flags|=8192;else throw mh=Sv,q1}function Uc(e,a){a!==null&&(e.flags|=4),e.flags&16384&&(a=e.tag!==22?gr():536870912,e.lanes|=a,Eh|=a)}function Vc(e,a){if(!dn)switch(e.tailMode){case"hidden":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var b=null;o!==null;)o.alternate!==null&&(b=o),o=o.sibling;b===null?a||e.tail===null?e.tail=null:e.tail.sibling=null:b.sibling=null}}function Ln(e){var a=e.alternate!==null&&e.alternate.child===e.child,o=0,b=0;if(a)if((e.mode&Qt)!==Mt){for(var R=e.selfBaseDuration,T=e.child;T!==null;)o|=T.lanes|T.childLanes,b|=T.subtreeFlags&65011712,b|=T.flags&65011712,R+=T.treeBaseDuration,T=T.sibling;e.treeBaseDuration=R}else for(R=e.child;R!==null;)o|=R.lanes|R.childLanes,b|=R.subtreeFlags&65011712,b|=R.flags&65011712,R.return=e,R=R.sibling;else if((e.mode&Qt)!==Mt){R=e.actualDuration,T=e.selfBaseDuration;for(var q=e.child;q!==null;)o|=q.lanes|q.childLanes,b|=q.subtreeFlags,b|=q.flags,R+=q.actualDuration,T+=q.treeBaseDuration,q=q.sibling;e.actualDuration=R,e.treeBaseDuration=T}else for(R=e.child;R!==null;)o|=R.lanes|R.childLanes,b|=R.subtreeFlags,b|=R.flags,R.return=e,R=R.sibling;return e.subtreeFlags|=b,e.childLanes=o,a}function a0(e,a,o){var b=a.pendingProps;switch(Tc(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ln(a),null;case 1:return Ln(a),null;case 3:return o=a.stateNode,b=null,e!==null&&(b=e.memoizedState.cache),a.memoizedState.cache!==b&&(a.flags|=2048),O(sr,a),de(a),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(as(a)?(h(),hs(a)):e===null||e.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,wr())),Ln(a),null;case 26:var R=a.type,T=a.memoizedState;return e===null?(hs(a),T!==null?(Ln(a),oy(a,T)):(Ln(a),ip(a,R,null,b,o))):T?T!==e.memoizedState?(hs(a),Ln(a),oy(a,T)):(Ln(a),a.flags&=-16777217):(e=e.memoizedProps,e!==b&&hs(a),Ln(a),ip(a,R,e,b,o)),null;case 27:if(We(a),o=De(Xi.current),R=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==b&&hs(a);else{if(!b){if(a.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ln(a),null}e=Ce(),as(a)?ns(a):(e=mo(R,b,o,e,!0),a.stateNode=e,hs(a))}return Ln(a),null;case 5:if(We(a),R=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==b&&hs(a);else{if(!b){if(a.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ln(a),null}var q=Ce();if(as(a))ns(a);else{switch(T=De(Xi.current),cl(R,q.ancestorInfo),q=q.context,T=Pd(T),q){case Dm:T=T.createElementNS(Zt,R);break;case $v:T=T.createElementNS(Ut,R);break;default:switch(R){case"svg":T=T.createElementNS(Zt,R);break;case"math":T=T.createElementNS(Ut,R);break;case"script":T=T.createElement("div"),T.innerHTML="<script><\/script>",T=T.removeChild(T.firstChild);break;case"select":T=typeof b.is=="string"?T.createElement("select",{is:b.is}):T.createElement("select"),b.multiple?T.multiple=!0:b.size&&(T.size=b.size);break;default:T=typeof b.is=="string"?T.createElement(R,{is:b.is}):T.createElement(R),R.indexOf("-")===-1&&(R!==R.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",R),Object.prototype.toString.call(T)!=="[object HTMLUnknownElement]"||Zi.call(h_,R)||(h_[R]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",R)))}}T[ea]=a,T[si]=b;e:for(q=a.child;q!==null;){if(q.tag===5||q.tag===6)T.appendChild(q.stateNode);else if(q.tag!==4&&q.tag!==27&&q.child!==null){q.child.return=q,q=q.child;continue}if(q===a)break e;for(;q.sibling===null;){if(q.return===null||q.return===a)break e;q=q.return}q.sibling.return=q.return,q=q.sibling}a.stateNode=T;e:switch(Kn(T,R,b),R){case"button":case"input":case"select":case"textarea":b=!!b.autoFocus;break e;case"img":b=!0;break e;default:b=!1}b&&hs(a)}}return Ln(a),ip(a,a.type,e===null?null:e.memoizedProps,a.pendingProps,o),null;case 6:if(e&&a.stateNode!=null)e.memoizedProps!==b&&hs(a);else{if(typeof b!="string"&&a.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=De(Xi.current),o=Ce(),as(a)){if(e=a.stateNode,o=a.memoizedProps,R=!il,b=null,T=oi,T!==null)switch(T.tag){case 3:R&&(R=zy(e,o,b),R!==null&&(ts(a,0).serverProps=R));break;case 27:case 5:b=T.memoizedProps,R&&(R=zy(e,o,b),R!==null&&(ts(a,0).serverProps=R))}e[ea]=a,e=!!(e.nodeValue===o||b!==null&&b.suppressHydrationWarning===!0||N0(e.nodeValue,o)),e||yi(a,!0)}else R=o.ancestorInfo.current,R!=null&&fl(b,R.tag,o.ancestorInfo.implicitRootScope),e=Pd(e).createTextNode(b),e[ea]=a,a.stateNode=e}return Ln(a),null;case 31:if(o=a.memoizedState,e===null||e.memoizedState!==null){if(b=as(a),o!==null){if(e===null){if(!b)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=a.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[ea]=a,Ln(a),(a.mode&Qt)!==Mt&&o!==null&&(e=a.child,e!==null&&(a.treeBaseDuration-=e.treeBaseDuration))}else h(),ya(),(a.flags&128)===0&&(o=a.memoizedState=null),a.flags|=4,Ln(a),(a.mode&Qt)!==Mt&&o!==null&&(e=a.child,e!==null&&(a.treeBaseDuration-=e.treeBaseDuration));e=!1}else o=wr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),e=!0;if(!e)return a.flags&256?(nr(a),a):(nr(a),null);if((a.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Ln(a),null;case 13:if(b=a.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(R=b,T=as(a),R!==null&&R.dehydrated!==null){if(e===null){if(!T)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(T=a.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");T[ea]=a,Ln(a),(a.mode&Qt)!==Mt&&R!==null&&(R=a.child,R!==null&&(a.treeBaseDuration-=R.treeBaseDuration))}else h(),ya(),(a.flags&128)===0&&(R=a.memoizedState=null),a.flags|=4,Ln(a),(a.mode&Qt)!==Mt&&R!==null&&(R=a.child,R!==null&&(a.treeBaseDuration-=R.treeBaseDuration));R=!1}else R=wr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=R),R=!0;if(!R)return a.flags&256?(nr(a),a):(nr(a),null)}return nr(a),(a.flags&128)!==0?(a.lanes=o,(a.mode&Qt)!==Mt&&bl(a),a):(o=b!==null,e=e!==null&&e.memoizedState!==null,o&&(b=a.child,R=null,b.alternate!==null&&b.alternate.memoizedState!==null&&b.alternate.memoizedState.cachePool!==null&&(R=b.alternate.memoizedState.cachePool.pool),T=null,b.memoizedState!==null&&b.memoizedState.cachePool!==null&&(T=b.memoizedState.cachePool.pool),T!==R&&(b.flags|=2048)),o!==e&&o&&(a.child.flags|=8192),Uc(a,a.updateQueue),Ln(a),(a.mode&Qt)!==Mt&&o&&(e=a.child,e!==null&&(a.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return de(a),e===null&&Jo(a.stateNode.containerInfo),Ln(a),null;case 10:return O(a.type,a),Ln(a),null;case 19:if(Ne(Xa,a),b=a.memoizedState,b===null)return Ln(a),null;if(R=(a.flags&128)!==0,T=b.rendering,T===null)if(R)Vc(b,!1);else{if(ga!==sc||e!==null&&(e.flags&128)!==0)for(e=a.child;e!==null;){if(T=El(e),T!==null){for(a.flags|=128,Vc(b,!1),e=T.updateQueue,a.updateQueue=e,Uc(a,e),a.subtreeFlags=0,e=o,o=a.child;o!==null;)Sc(o,e),o=o.sibling;return we(Xa,Xa.current&gm|Lg,a),dn&&gi(a,b.treeForkCount),a.child}e=e.sibling}b.tail!==null&&ur()>Bv&&(a.flags|=128,R=!0,Vc(b,!1),a.lanes=4194304)}else{if(!R)if(e=El(T),e!==null){if(a.flags|=128,R=!0,e=e.updateQueue,a.updateQueue=e,Uc(a,e),Vc(b,!0),b.tail===null&&b.tailMode==="hidden"&&!T.alternate&&!dn)return Ln(a),null}else 2*ur()-b.renderingStartTime>Bv&&o!==536870912&&(a.flags|=128,R=!0,Vc(b,!1),a.lanes=4194304);b.isBackwards?(T.sibling=a.child,a.child=T):(e=b.last,e!==null?e.sibling=T:a.child=T,b.last=T)}return b.tail!==null?(e=b.tail,b.rendering=e,b.tail=e.sibling,b.renderingStartTime=ur(),e.sibling=null,o=Xa.current,o=R?o&gm|Lg:o&gm,we(Xa,o,a),dn&&gi(a,b.treeForkCount),e):(Ln(a),null);case 22:case 23:return nr(a),Tu(a),b=a.memoizedState!==null,e!==null?e.memoizedState!==null!==b&&(a.flags|=8192):b&&(a.flags|=8192),b?(o&536870912)!==0&&(a.flags&128)===0&&(Ln(a),a.subtreeFlags&6&&(a.flags|=8192)):Ln(a),o=a.updateQueue,o!==null&&Uc(a,o.retryQueue),o=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),b=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(b=a.memoizedState.cachePool.pool),b!==o&&(a.flags|=2048),e!==null&&Ne(hh,a),null;case 24:return o=null,e!==null&&(o=e.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),O(sr,a),Ln(a),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ly(e,a){switch(Tc(a),a.tag){case 1:return e=a.flags,e&65536?(a.flags=e&-65537|128,(a.mode&Qt)!==Mt&&bl(a),a):null;case 3:return O(sr,a),de(a),e=a.flags,(e&65536)!==0&&(e&128)===0?(a.flags=e&-65537|128,a):null;case 26:case 27:case 5:return We(a),null;case 31:if(a.memoizedState!==null){if(nr(a),a.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");ya()}return e=a.flags,e&65536?(a.flags=e&-65537|128,(a.mode&Qt)!==Mt&&bl(a),a):null;case 13:if(nr(a),e=a.memoizedState,e!==null&&e.dehydrated!==null){if(a.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");ya()}return e=a.flags,e&65536?(a.flags=e&-65537|128,(a.mode&Qt)!==Mt&&bl(a),a):null;case 19:return Ne(Xa,a),null;case 4:return de(a),null;case 10:return O(a.type,a),null;case 22:case 23:return nr(a),Tu(a),e!==null&&Ne(hh,a),e=a.flags,e&65536?(a.flags=e&-65537|128,(a.mode&Qt)!==Mt&&bl(a),a):null;case 24:return O(sr,a),null;case 25:return null;default:return null}}function r0(e,a){switch(Tc(a),a.tag){case 3:O(sr,a),de(a);break;case 26:case 27:case 5:We(a);break;case 4:de(a);break;case 31:a.memoizedState!==null&&nr(a);break;case 13:nr(a);break;case 19:Ne(Xa,a);break;case 10:O(a.type,a);break;case 22:case 23:nr(a),Tu(a),e!==null&&Ne(hh,a);break;case 24:O(sr,a)}}function ps(e){return(e.mode&Qt)!==Mt}function cy(e,a){ps(e)?(da(),lo(a,e),$r()):lo(a,e)}function up(e,a,o){ps(e)?(da(),Vo(o,e,a),$r()):Vo(o,e,a)}function lo(e,a){try{var o=a.updateQueue,b=o!==null?o.lastEffect:null;if(b!==null){var R=b.next;o=R;do{if((o.tag&e)===e&&(b=void 0,(e&Qi)!==Av&&(Am=!0),b=Be(a,IE,o),(e&Qi)!==Av&&(Am=!1),b!==void 0&&typeof b!="function")){var T=void 0;T=(o.tag&Uu)!==0?"useLayoutEffect":(o.tag&Qi)!==0?"useInsertionEffect":"useEffect";var q=void 0;q=b===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof b.then=="function"?`
280
+
281
+ It looks like you wrote `+T+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
282
+
283
+ `+T+`(() => {
284
+ async function fetchData() {
285
+ // You can await here
286
+ const response = await MyAPI.getData(someId);
287
+ // ...
288
+ }
289
+ fetchData();
290
+ }, [someId]); // Or [] if effect doesn't need props or state
291
+
292
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+b,Be(a,function(U,Q){console.error("%s must not return anything besides a function, which is used for clean-up.%s",U,Q)},T,q)}o=o.next}while(o!==R)}}catch(U){Xt(a,a.return,U)}}function Vo(e,a,o){try{var b=a.updateQueue,R=b!==null?b.lastEffect:null;if(R!==null){var T=R.next;b=T;do{if((b.tag&e)===e){var q=b.inst,U=q.destroy;U!==void 0&&(q.destroy=void 0,(e&Qi)!==Av&&(Am=!0),R=a,Be(R,OE,R,o,U),(e&Qi)!==Av&&(Am=!1))}b=b.next}while(b!==T)}}catch(Q){Xt(a,a.return,Q)}}function Dd(e,a){ps(e)?(da(),lo(a,e),$r()):lo(a,e)}function sp(e,a,o){ps(e)?(da(),Vo(o,e,a),$r()):Vo(o,e,a)}function i0(e){var a=e.updateQueue;if(a!==null){var o=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||_m||(o.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",me(e)||"instance"),o.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",me(e)||"instance"));try{Be(e,Nc,a,o)}catch(b){Xt(e,e.return,b)}}}function Id(e,a,o){return e.getSnapshotBeforeUpdate(a,o)}function fy(e,a){var o=a.memoizedProps,b=a.memoizedState;a=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||_m||(a.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",me(e)||"instance"),a.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",me(e)||"instance"));try{var R=ds(e.type,o),T=Be(e,Id,a,R,b);o=V2,T!==void 0||o.has(e.type)||(o.add(e.type),Be(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",me(e))})),a.__reactInternalSnapshotBeforeUpdate=T}catch(q){Xt(e,e.return,q)}}function op(e,a,o){o.props=ds(e.type,e.memoizedProps),o.state=e.memoizedState,ps(e)?(da(),Be(e,o2,e,a,o),$r()):Be(e,o2,e,a,o)}function dy(e){var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}if(typeof a=="function")if(ps(e))try{da(),e.refCleanup=a(o)}finally{$r()}else e.refCleanup=a(o);else typeof a=="string"?console.error("String refs are no longer supported."):a.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",me(e)),a.current=o}}function Ml(e,a){try{Be(e,dy,e)}catch(o){Xt(e,a,o)}}function cu(e,a){var o=e.ref,b=e.refCleanup;if(o!==null)if(typeof b=="function")try{if(ps(e))try{da(),Be(e,b)}finally{$r(e)}else Be(e,b)}catch(R){Xt(e,a,R)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof o=="function")try{if(ps(e))try{da(),Be(e,o,null)}finally{$r(e)}else Be(e,o,null)}catch(R){Xt(e,a,R)}else o.current=null}function u0(e,a,o,b){var R=e.memoizedProps,T=R.id,q=R.onCommit;R=R.onRender,a=a===null?"mount":"update",bv&&(a="nested-update"),typeof R=="function"&&R(T,a,e.actualDuration,e.treeBaseDuration,e.actualStartTime,o),typeof q=="function"&&q(T,a,b,o)}function hy(e,a,o,b){var R=e.memoizedProps;e=R.id,R=R.onPostCommit,a=a===null?"mount":"update",bv&&(a="nested-update"),typeof R=="function"&&R(e,a,b,o)}function Ho(e){var a=e.type,o=e.memoizedProps,b=e.stateNode;try{Be(e,Ry,b,a,o,e)}catch(R){Xt(e,e.return,R)}}function lp(e,a,o){try{Be(e,Ip,e.stateNode,e.type,o,a,e)}catch(b){Xt(e,e.return,b)}}function s0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qo(e.type)||e.tag===4}function cp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||s0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Qo(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hc(e,a,o){var b=e.tag;if(b===5||b===6)e=e.stateNode,a?(Dy(o),(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(e,a)):(Dy(o),a=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,a.appendChild(e),o=o._reactRootContainer,o!=null||a.onclick!==null||(a.onclick=hi));else if(b!==4&&(b===27&&Qo(e.type)&&(o=e.stateNode,a=null),e=e.child,e!==null))for(Hc(e,a,o),e=e.sibling;e!==null;)Hc(e,a,o),e=e.sibling}function Od(e,a,o){var b=e.tag;if(b===5||b===6)e=e.stateNode,a?o.insertBefore(e,a):o.appendChild(e);else if(b!==4&&(b===27&&Qo(e.type)&&(o=e.stateNode),e=e.child,e!==null))for(Od(e,a,o),e=e.sibling;e!==null;)Od(e,a,o),e=e.sibling}function o0(e){for(var a,o=e.return;o!==null;){if(s0(o)){a=o;break}o=o.return}if(a==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(a.tag){case 27:a=a.stateNode,o=cp(e),Od(e,o,a);break;case 5:o=a.stateNode,a.flags&32&&(Op(o),a.flags&=-33),a=cp(e),Od(e,a,o);break;case 3:case 4:a=a.stateNode.containerInfo,o=cp(e),Hc(e,o,a);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function l0(e){var a=e.stateNode,o=e.memoizedProps;try{Be(e,xs,e.type,o,a,e)}catch(b){Xt(e,e.return,b)}}function c0(e,a){return a.tag===31?(a=a.memoizedState,e.memoizedState!==null&&a===null):a.tag===13?(e=e.memoizedState,a=a.memoizedState,e!==null&&e.dehydrated!==null&&(a===null||a.dehydrated===null)):a.tag===3?e.memoizedState.isDehydrated&&(a.flags&256)===0:!1}function a1(e,a){if(e=e.containerInfo,gb=Kv,e=yc(e),mi(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var b=o.getSelection&&o.getSelection();if(b&&b.rangeCount!==0){o=b.anchorNode;var R=b.anchorOffset,T=b.focusNode;b=b.focusOffset;try{o.nodeType,T.nodeType}catch{o=null;break e}var q=0,U=-1,Q=-1,ee=0,Te=0,Oe=e,ve=null;t:for(;;){for(var Ue;Oe!==o||R!==0&&Oe.nodeType!==3||(U=q+R),Oe!==T||b!==0&&Oe.nodeType!==3||(Q=q+b),Oe.nodeType===3&&(q+=Oe.nodeValue.length),(Ue=Oe.firstChild)!==null;)ve=Oe,Oe=Ue;for(;;){if(Oe===e)break t;if(ve===o&&++ee===R&&(U=q),ve===T&&++Te===b&&(Q=q),(Ue=Oe.nextSibling)!==null)break;Oe=ve,ve=Oe.parentNode}Oe=Ue}o=U===-1||Q===-1?null:{start:U,end:Q}}else o=null}o=o||{start:0,end:0}}else o=null;for(yb={focusedElem:e,selectionRange:o},Kv=!1,Fr=a;Fr!==null;)if(a=Fr,e=a.child,(a.subtreeFlags&1028)!==0&&e!==null)e.return=a,Fr=e;else for(;Fr!==null;){switch(e=a=Fr,o=e.alternate,R=e.flags,e.tag){case 0:if((R&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(o=0;o<e.length;o++)R=e[o],R.ref.impl=R.nextImpl;break;case 11:case 15:break;case 1:(R&1024)!==0&&o!==null&&fy(e,o);break;case 3:if((R&1024)!==0){if(e=e.stateNode.containerInfo,o=e.nodeType,o===9)rf(e);else if(o===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":rf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((R&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=a.sibling,e!==null){e.return=a.return,Fr=e;break}Fr=a.return}}function fp(e,a,o){var b=Tn(),R=Xr(),T=Lr(),q=Zr(),U=o.flags;switch(o.tag){case 0:case 11:case 15:Pi(e,o),U&4&&cy(o,Uu|ks);break;case 1:if(Pi(e,o),U&4)if(e=o.stateNode,a===null)o.type.defaultProps||"ref"in o.memoizedProps||_m||(e.props!==o.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",me(o)||"instance"),e.state!==o.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",me(o)||"instance")),ps(o)?(da(),Be(o,F1,o,e),$r()):Be(o,F1,o,e);else{var Q=ds(o.type,a.memoizedProps);a=a.memoizedState,o.type.defaultProps||"ref"in o.memoizedProps||_m||(e.props!==o.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",me(o)||"instance"),e.state!==o.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",me(o)||"instance")),ps(o)?(da(),Be(o,i2,o,e,Q,a,e.__reactInternalSnapshotBeforeUpdate),$r()):Be(o,i2,o,e,Q,a,e.__reactInternalSnapshotBeforeUpdate)}U&64&&i0(o),U&512&&Ml(o,o.return);break;case 3:if(a=un(),Pi(e,o),U&64&&(U=o.updateQueue,U!==null)){if(Q=null,o.child!==null)switch(o.child.tag){case 27:case 5:Q=o.child.stateNode;break;case 1:Q=o.child.stateNode}try{Be(o,Nc,U,Q)}catch(Te){Xt(o,o.return,Te)}}e.effectDuration+=Wn(a);break;case 27:a===null&&U&4&&l0(o);case 26:case 5:if(Pi(e,o),a===null){if(U&4)Ho(o);else if(U&64){e=o.type,a=o.memoizedProps,Q=o.stateNode;try{Be(o,Ty,Q,e,a,o)}catch(Te){Xt(o,o.return,Te)}}}U&512&&Ml(o,o.return);break;case 12:if(U&4){U=un(),Pi(e,o),e=o.stateNode,e.effectDuration+=xn(U);try{Be(o,u0,o,a,Df,e.effectDuration)}catch(Te){Xt(o,o.return,Te)}}else Pi(e,o);break;case 31:Pi(e,o),U&4&&d0(e,o);break;case 13:Pi(e,o),U&4&&h0(e,o),U&64&&(e=o.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(U=fo.bind(null,o),qy(e,U))));break;case 22:if(U=o.memoizedState!==null||uc,!U){a=a!==null&&a.memoizedState!==null||fr,Q=uc;var ee=fr;uc=U,(fr=a)&&!ee?(wu(e,o,(o.subtreeFlags&8772)!==0),(o.mode&Qt)!==Mt&&0<=Ot&&0<=Nt&&.05<Nt-Ot&&vc(o,Ot,Nt)):Pi(e,o),uc=Q,fr=ee}break;case 30:break;default:Pi(e,o)}(o.mode&Qt)!==Mt&&0<=Ot&&0<=Nt&&((Aa||.05<ma)&&Vr(o,Ot,Nt,ma,fa),o.alternate===null&&o.return!==null&&o.return.alternate!==null&&.05<Nt-Ot&&(c0(o.return.alternate,o.return)||zn(o,Ot,Nt,"Mount"))),va(b),Nr(R),fa=T,Aa=q}function Sa(e){var a=e.alternate;a!==null&&(e.alternate=null,Sa(a)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(a=e.stateNode,a!==null&&ua(a)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Xn(e,a,o){for(o=o.child;o!==null;)f0(e,a,o),o=o.sibling}function f0(e,a,o){if(Ha&&typeof Ha.onCommitFiberUnmount=="function")try{Ha.onCommitFiberUnmount(Xl,o)}catch(ee){Cs||(Cs=!0,console.error("React instrumentation encountered an error: %o",ee))}var b=Tn(),R=Xr(),T=Lr(),q=Zr();switch(o.tag){case 26:fr||cu(o,a),Xn(e,a,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(e=o.stateNode,e.parentNode.removeChild(e));break;case 27:fr||cu(o,a);var U=dr,Q=mu;Qo(o.type)&&(dr=o.stateNode,mu=!1),Xn(e,a,o),Be(o,go,o.stateNode),dr=U,mu=Q;break;case 5:fr||cu(o,a);case 6:if(U=dr,Q=mu,dr=null,Xn(e,a,o),dr=U,mu=Q,dr!==null)if(mu)try{Be(o,Oy,dr,o.stateNode)}catch(ee){Xt(o,a,ee)}else try{Be(o,Iy,dr,o.stateNode)}catch(ee){Xt(o,a,ee)}break;case 18:dr!==null&&(mu?(e=dr,ql(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,o.stateNode),Ul(e)):ql(dr,o.stateNode));break;case 4:U=dr,Q=mu,dr=o.stateNode.containerInfo,mu=!0,Xn(e,a,o),dr=U,mu=Q;break;case 0:case 11:case 14:case 15:Vo(Qi,o,a),fr||up(o,a,Uu),Xn(e,a,o);break;case 1:fr||(cu(o,a),U=o.stateNode,typeof U.componentWillUnmount=="function"&&op(o,a,U)),Xn(e,a,o);break;case 21:Xn(e,a,o);break;case 22:fr=(U=fr)||o.memoizedState!==null,Xn(e,a,o),fr=U;break;default:Xn(e,a,o)}(o.mode&Qt)!==Mt&&0<=Ot&&0<=Nt&&(Aa||.05<ma)&&Vr(o,Ot,Nt,ma,fa),va(b),Nr(R),fa=T,Aa=q}function d0(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Be(a,wp,e)}catch(o){Xt(a,a.return,o)}}}function h0(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Be(a,B0,e)}catch(o){Xt(a,a.return,o)}}function py(e){switch(e.tag){case 31:case 13:case 19:var a=e.stateNode;return a===null&&(a=e.stateNode=new H2),a;case 22:return e=e.stateNode,a=e._retryCache,a===null&&(a=e._retryCache=new H2),a;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Yo(e,a){var o=py(e);a.forEach(function(b){if(!o.has(b)){if(o.add(b),As)if(Em!==null&&xm!==null)Wc(xm,Em);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var R=jl.bind(null,e,b);b.then(R,R)}})}function ei(e,a){var o=a.deletions;if(o!==null)for(var b=0;b<o.length;b++){var R=e,T=a,q=o[b],U=Tn(),Q=T;e:for(;Q!==null;){switch(Q.tag){case 27:if(Qo(Q.type)){dr=Q.stateNode,mu=!1;break e}break;case 5:dr=Q.stateNode,mu=!1;break e;case 3:case 4:dr=Q.stateNode.containerInfo,mu=!0;break e}Q=Q.return}if(dr===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");f0(R,T,q),dr=null,mu=!1,(q.mode&Qt)!==Mt&&0<=Ot&&0<=Nt&&.05<Nt-Ot&&zn(q,Ot,Nt,"Unmount"),va(U),R=q,T=R.alternate,T!==null&&(T.return=null),R.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)wd(a,e),a=a.sibling}function wd(e,a){var o=Tn(),b=Xr(),R=Lr(),T=Zr(),q=e.alternate,U=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ei(a,e),ti(e),U&4&&(Vo(Qi|ks,e,e.return),lo(Qi|ks,e),up(e,e.return,Uu|ks));break;case 1:if(ei(a,e),ti(e),U&512&&(fr||q===null||cu(q,q.return)),U&64&&uc&&(U=e.updateQueue,U!==null&&(q=U.callbacks,q!==null))){var Q=U.shared.hiddenCallbacks;U.shared.hiddenCallbacks=Q===null?q:Q.concat(q)}break;case 26:if(Q=xo,ei(a,e),ti(e),U&512&&(fr||q===null||cu(q,q.return)),U&4){var ee=q!==null?q.memoizedState:null;if(U=e.memoizedState,q===null)if(U===null)if(e.stateNode===null){e:{U=e.type,q=e.memoizedProps,Q=Q.ownerDocument||Q;t:switch(U){case"title":ee=Q.getElementsByTagName("title")[0],(!ee||ee[_f]||ee[ea]||ee.namespaceURI===Zt||ee.hasAttribute("itemprop"))&&(ee=Q.createElement(U),Q.head.insertBefore(ee,Q.querySelector("head > title"))),Kn(ee,U,q),ee[ea]=e,Fn(ee),U=ee;break e;case"link":var Te=of("link","href",Q).get(U+(q.href||""));if(Te){for(var Oe=0;Oe<Te.length;Oe++)if(ee=Te[Oe],ee.getAttribute("href")===(q.href==null||q.href===""?null:q.href)&&ee.getAttribute("rel")===(q.rel==null?null:q.rel)&&ee.getAttribute("title")===(q.title==null?null:q.title)&&ee.getAttribute("crossorigin")===(q.crossOrigin==null?null:q.crossOrigin)){Te.splice(Oe,1);break t}}ee=Q.createElement(U),Kn(ee,U,q),Q.head.appendChild(ee);break;case"meta":if(Te=of("meta","content",Q).get(U+(q.content||""))){for(Oe=0;Oe<Te.length;Oe++)if(ee=Te[Oe],dt(q.content,"content"),ee.getAttribute("content")===(q.content==null?null:""+q.content)&&ee.getAttribute("name")===(q.name==null?null:q.name)&&ee.getAttribute("property")===(q.property==null?null:q.property)&&ee.getAttribute("http-equiv")===(q.httpEquiv==null?null:q.httpEquiv)&&ee.getAttribute("charset")===(q.charSet==null?null:q.charSet)){Te.splice(Oe,1);break t}}ee=Q.createElement(U),Kn(ee,U,q),Q.head.appendChild(ee);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+U+'". This is a bug in React.')}ee[ea]=e,Fn(ee),U=ee}e.stateNode=U}else Uy(Q,e.type,e.stateNode);else e.stateNode=Mp(Q,U,e.memoizedProps);else ee!==U?(ee===null?q.stateNode!==null&&(q=q.stateNode,q.parentNode.removeChild(q)):ee.count--,U===null?Uy(Q,e.type,e.stateNode):Mp(Q,U,e.memoizedProps)):U===null&&e.stateNode!==null&&lp(e,e.memoizedProps,q.memoizedProps)}break;case 27:ei(a,e),ti(e),U&512&&(fr||q===null||cu(q,q.return)),q!==null&&U&4&&lp(e,e.memoizedProps,q.memoizedProps);break;case 5:if(ei(a,e),ti(e),U&512&&(fr||q===null||cu(q,q.return)),e.flags&32){Q=e.stateNode;try{Be(e,Op,Q)}catch(ht){Xt(e,e.return,ht)}}U&4&&e.stateNode!=null&&(Q=e.memoizedProps,lp(e,Q,q!==null?q.memoizedProps:Q)),U&1024&&(W1=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(ei(a,e),ti(e),U&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");U=e.memoizedProps,q=q!==null?q.memoizedProps:U,Q=e.stateNode;try{Be(e,r1,Q,q,U)}catch(ht){Xt(e,e.return,ht)}}break;case 3:if(Q=un(),Jv=null,ee=xo,xo=Np(a.containerInfo),ei(a,e),xo=ee,ti(e),U&4&&q!==null&&q.memoizedState.isDehydrated)try{Be(e,k0,a.containerInfo)}catch(ht){Xt(e,e.return,ht)}W1&&(W1=!1,my(e)),a.effectDuration+=Wn(Q);break;case 4:U=xo,xo=Np(e.stateNode.containerInfo),ei(a,e),ti(e),xo=U;break;case 12:U=un(),ei(a,e),ti(e),e.stateNode.effectDuration+=xn(U);break;case 31:ei(a,e),ti(e),U&4&&(U=e.updateQueue,U!==null&&(e.updateQueue=null,Yo(e,U)));break;case 13:ei(a,e),ti(e),e.child.flags&8192&&e.memoizedState!==null!=(q!==null&&q.memoizedState!==null)&&(kv=ur()),U&4&&(U=e.updateQueue,U!==null&&(e.updateQueue=null,Yo(e,U)));break;case 22:Q=e.memoizedState!==null;var ve=q!==null&&q.memoizedState!==null,Ue=uc,lt=fr;if(uc=Ue||Q,fr=lt||ve,ei(a,e),fr=lt,uc=Ue,ve&&!Q&&!Ue&&!lt&&(e.mode&Qt)!==Mt&&0<=Ot&&0<=Nt&&.05<Nt-Ot&&vc(e,Ot,Nt),ti(e),U&8192)e:for(a=e.stateNode,a._visibility=Q?a._visibility&~yg:a._visibility|yg,!Q||q===null||ve||uc||fr||(Xo(e),(e.mode&Qt)!==Mt&&0<=Ot&&0<=Nt&&.05<Nt-Ot&&zn(e,Ot,Nt,"Disconnect")),q=null,a=e;;){if(a.tag===5||a.tag===26){if(q===null){ve=q=a;try{ee=ve.stateNode,Q?Be(ve,Ny,ee):Be(ve,ky,ve.stateNode,ve.memoizedProps)}catch(ht){Xt(ve,ve.return,ht)}}}else if(a.tag===6){if(q===null){ve=a;try{Te=ve.stateNode,Q?Be(ve,Ly,Te):Be(ve,By,Te,ve.memoizedProps)}catch(ht){Xt(ve,ve.return,ht)}}}else if(a.tag===18){if(q===null){ve=a;try{Oe=ve.stateNode,Q?Be(ve,wy,Oe):Be(ve,My,ve.stateNode)}catch(ht){Xt(ve,ve.return,ht)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===e)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break e;for(;a.sibling===null;){if(a.return===null||a.return===e)break e;q===a&&(q=null),a=a.return}q===a&&(q=null),a.sibling.return=a.return,a=a.sibling}U&4&&(U=e.updateQueue,U!==null&&(q=U.retryQueue,q!==null&&(U.retryQueue=null,Yo(e,q))));break;case 19:ei(a,e),ti(e),U&4&&(U=e.updateQueue,U!==null&&(e.updateQueue=null,Yo(e,U)));break;case 30:break;case 21:break;default:ei(a,e),ti(e)}(e.mode&Qt)!==Mt&&0<=Ot&&0<=Nt&&((Aa||.05<ma)&&Vr(e,Ot,Nt,ma,fa),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<Nt-Ot&&(c0(e.return.alternate,e.return)||zn(e,Ot,Nt,"Mount"))),va(o),Nr(b),fa=R,Aa=T}function ti(e){var a=e.flags;if(a&2){try{Be(e,o0,e)}catch(o){Xt(e,e.return,o)}e.flags&=-3}a&4096&&(e.flags&=-4097)}function my(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var a=e;my(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),e=e.sibling}}function Pi(e,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)fp(e,a.alternate,a),a=a.sibling}function dp(e){var a=Tn(),o=Xr(),b=Lr(),R=Zr();switch(e.tag){case 0:case 11:case 14:case 15:up(e,e.return,Uu),Xo(e);break;case 1:cu(e,e.return);var T=e.stateNode;typeof T.componentWillUnmount=="function"&&op(e,e.return,T),Xo(e);break;case 27:Be(e,go,e.stateNode);case 26:case 5:cu(e,e.return),Xo(e);break;case 22:e.memoizedState===null&&Xo(e);break;case 30:Xo(e);break;default:Xo(e)}(e.mode&Qt)!==Mt&&0<=Ot&&0<=Nt&&(Aa||.05<ma)&&Vr(e,Ot,Nt,ma,fa),va(a),Nr(o),fa=b,Aa=R}function Xo(e){for(e=e.child;e!==null;)dp(e),e=e.sibling}function p0(e,a,o,b){var R=Tn(),T=Xr(),q=Lr(),U=Zr(),Q=o.flags;switch(o.tag){case 0:case 11:case 15:wu(e,o,b),cy(o,Uu);break;case 1:if(wu(e,o,b),a=o.stateNode,typeof a.componentDidMount=="function"&&Be(o,F1,o,a),a=o.updateQueue,a!==null){e=o.stateNode;try{Be(o,km,a,e)}catch(ee){Xt(o,o.return,ee)}}b&&Q&64&&i0(o),Ml(o,o.return);break;case 27:l0(o);case 26:case 5:wu(e,o,b),b&&a===null&&Q&4&&Ho(o),Ml(o,o.return);break;case 12:if(b&&Q&4){Q=un(),wu(e,o,b),b=o.stateNode,b.effectDuration+=xn(Q);try{Be(o,u0,o,a,Df,b.effectDuration)}catch(ee){Xt(o,o.return,ee)}}else wu(e,o,b);break;case 31:wu(e,o,b),b&&Q&4&&d0(e,o);break;case 13:wu(e,o,b),b&&Q&4&&h0(e,o);break;case 22:o.memoizedState===null&&wu(e,o,b),Ml(o,o.return);break;case 30:break;default:wu(e,o,b)}(o.mode&Qt)!==Mt&&0<=Ot&&0<=Nt&&(Aa||.05<ma)&&Vr(o,Ot,Nt,ma,fa),va(R),Nr(T),fa=q,Aa=U}function wu(e,a,o){for(o=o&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;)p0(e,a.alternate,a,o),a=a.sibling}function Nd(e,a){var o=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),e=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(e=a.memoizedState.cachePool.pool),e!==o&&(e!=null&&mt(e),o!=null&&Ct(o))}function Ld(e,a){e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(mt(a),e!=null&&Ct(e))}function Ui(e,a,o,b,R){if(a.subtreeFlags&10256||a.actualDuration!==0&&(a.alternate===null||a.alternate.child!==a.child))for(a=a.child;a!==null;){var T=a.sibling;m0(e,a,o,b,T!==null?T.actualStartTime:R),a=T}}function m0(e,a,o,b,R){var T=Tn(),q=Xr(),U=Lr(),Q=Zr(),ee=Cf,Te=a.flags;switch(a.tag){case 0:case 11:case 15:(a.mode&Qt)!==Mt&&0<a.actualStartTime&&(a.flags&1)!==0&&ml(a,a.actualStartTime,R,Ar,o),Ui(e,a,o,b,R),Te&2048&&Dd(a,Ki|ks);break;case 1:(a.mode&Qt)!==Mt&&0<a.actualStartTime&&((a.flags&128)!==0?Wf(a,a.actualStartTime,R,[]):(a.flags&1)!==0&&ml(a,a.actualStartTime,R,Ar,o)),Ui(e,a,o,b,R);break;case 3:var Oe=un(),ve=Ar;Ar=a.alternate!==null&&a.alternate.memoizedState.isDehydrated&&(a.flags&256)===0,Ui(e,a,o,b,R),Ar=ve,Te&2048&&(o=null,a.alternate!==null&&(o=a.alternate.memoizedState.cache),b=a.memoizedState.cache,b!==o&&(mt(b),o!=null&&Ct(o))),e.passiveEffectDuration+=Wn(Oe);break;case 12:if(Te&2048){Te=un(),Ui(e,a,o,b,R),e=a.stateNode,e.passiveEffectDuration+=xn(Te);try{Be(a,hy,a,a.alternate,Df,e.passiveEffectDuration)}catch(Ue){Xt(a,a.return,Ue)}}else Ui(e,a,o,b,R);break;case 31:Te=Ar,Oe=a.alternate!==null?a.alternate.memoizedState:null,ve=a.memoizedState,Oe!==null&&ve===null?(ve=a.deletions,ve!==null&&0<ve.length&&ve[0].tag===18?(Ar=!1,Oe=Oe.hydrationErrors,Oe!==null&&Wf(a,a.actualStartTime,R,Oe)):Ar=!0):Ar=!1,Ui(e,a,o,b,R),Ar=Te;break;case 13:Te=Ar,Oe=a.alternate!==null?a.alternate.memoizedState:null,ve=a.memoizedState,Oe===null||Oe.dehydrated===null||ve!==null&&ve.dehydrated!==null?Ar=!1:(ve=a.deletions,ve!==null&&0<ve.length&&ve[0].tag===18?(Ar=!1,Oe=Oe.hydrationErrors,Oe!==null&&Wf(a,a.actualStartTime,R,Oe)):Ar=!0),Ui(e,a,o,b,R),Ar=Te;break;case 23:break;case 22:ve=a.stateNode,Oe=a.alternate,a.memoizedState!==null?ve._visibility&Jl?Ui(e,a,o,b,R):kl(e,a,o,b,R):ve._visibility&Jl?Ui(e,a,o,b,R):(ve._visibility|=Jl,Zo(e,a,o,b,(a.subtreeFlags&10256)!==0||a.actualDuration!==0&&(a.alternate===null||a.alternate.child!==a.child),R),(a.mode&Qt)===Mt||Ar||(e=a.actualStartTime,0<=e&&.05<R-e&&vc(a,e,R),0<=Ot&&0<=Nt&&.05<Nt-Ot&&vc(a,Ot,Nt))),Te&2048&&Nd(Oe,a);break;case 24:Ui(e,a,o,b,R),Te&2048&&Ld(a.alternate,a);break;default:Ui(e,a,o,b,R)}(a.mode&Qt)!==Mt&&((e=!Ar&&a.alternate===null&&a.return!==null&&a.return.alternate!==null)&&(o=a.actualStartTime,0<=o&&.05<R-o&&zn(a,o,R,"Mount")),0<=Ot&&0<=Nt&&((Aa||.05<ma)&&Vr(a,Ot,Nt,ma,fa),e&&.05<Nt-Ot&&zn(a,Ot,Nt,"Mount"))),va(T),Nr(q),fa=U,Aa=Q,Cf=ee}function Zo(e,a,o,b,R,T){for(R=R&&((a.subtreeFlags&10256)!==0||a.actualDuration!==0&&(a.alternate===null||a.alternate.child!==a.child)),a=a.child;a!==null;){var q=a.sibling;Md(e,a,o,b,R,q!==null?q.actualStartTime:T),a=q}}function Md(e,a,o,b,R,T){var q=Tn(),U=Xr(),Q=Lr(),ee=Zr(),Te=Cf;R&&(a.mode&Qt)!==Mt&&0<a.actualStartTime&&(a.flags&1)!==0&&ml(a,a.actualStartTime,T,Ar,o);var Oe=a.flags;switch(a.tag){case 0:case 11:case 15:Zo(e,a,o,b,R,T),Dd(a,Ki);break;case 23:break;case 22:var ve=a.stateNode;a.memoizedState!==null?ve._visibility&Jl?Zo(e,a,o,b,R,T):kl(e,a,o,b,T):(ve._visibility|=Jl,Zo(e,a,o,b,R,T)),R&&Oe&2048&&Nd(a.alternate,a);break;case 24:Zo(e,a,o,b,R,T),R&&Oe&2048&&Ld(a.alternate,a);break;default:Zo(e,a,o,b,R,T)}(a.mode&Qt)!==Mt&&0<=Ot&&0<=Nt&&(Aa||.05<ma)&&Vr(a,Ot,Nt,ma,fa),va(q),Nr(U),fa=Q,Aa=ee,Cf=Te}function kl(e,a,o,b,R){if(a.subtreeFlags&10256||a.actualDuration!==0&&(a.alternate===null||a.alternate.child!==a.child))for(var T=a.child;T!==null;){a=T.sibling;var q=e,U=o,Q=b,ee=a!==null?a.actualStartTime:R,Te=Cf;(T.mode&Qt)!==Mt&&0<T.actualStartTime&&(T.flags&1)!==0&&ml(T,T.actualStartTime,ee,Ar,U);var Oe=T.flags;switch(T.tag){case 22:kl(q,T,U,Q,ee),Oe&2048&&Nd(T.alternate,T);break;case 24:kl(q,T,U,Q,ee),Oe&2048&&Ld(T.alternate,T);break;default:kl(q,T,U,Q,ee)}Cf=Te,T=a}}function Bl(e,a,o){if(e.subtreeFlags&jg)for(e=e.child;e!==null;)hp(e,a,o),e=e.sibling}function hp(e,a,o){switch(e.tag){case 26:Bl(e,a,o),e.flags&jg&&e.memoizedState!==null&&z0(o,xo,e.memoizedState,e.memoizedProps);break;case 5:Bl(e,a,o);break;case 3:case 4:var b=xo;xo=Np(e.stateNode.containerInfo),Bl(e,a,o),xo=b;break;case 22:e.memoizedState===null&&(b=e.alternate,b!==null&&b.memoizedState!==null?(b=jg,jg=16777216,Bl(e,a,o),jg=b):Bl(e,a,o));break;default:Bl(e,a,o)}}function g0(e){var a=e.alternate;if(a!==null&&(e=a.child,e!==null)){a.child=null;do a=e.sibling,e.sibling=null,e=a;while(e!==null)}}function Vi(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var b=a[o],R=Tn();Fr=b,ms(b,e),(b.mode&Qt)!==Mt&&0<=Ot&&0<=Nt&&.05<Nt-Ot&&zn(b,Ot,Nt,"Unmount"),va(R)}g0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)pp(e),e=e.sibling}function pp(e){var a=Tn(),o=Xr(),b=Lr(),R=Zr();switch(e.tag){case 0:case 11:case 15:Vi(e),e.flags&2048&&sp(e,e.return,Ki|ks);break;case 3:var T=un();Vi(e),e.stateNode.passiveEffectDuration+=Wn(T);break;case 12:T=un(),Vi(e),e.stateNode.passiveEffectDuration+=xn(T);break;case 22:T=e.stateNode,e.memoizedState!==null&&T._visibility&Jl&&(e.return===null||e.return.tag!==13)?(T._visibility&=~Jl,mp(e),(e.mode&Qt)!==Mt&&0<=Ot&&0<=Nt&&.05<Nt-Ot&&zn(e,Ot,Nt,"Disconnect")):Vi(e);break;default:Vi(e)}(e.mode&Qt)!==Mt&&0<=Ot&&0<=Nt&&(Aa||.05<ma)&&Vr(e,Ot,Nt,ma,fa),va(a),Nr(o),Aa=R,fa=b}function mp(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var b=a[o],R=Tn();Fr=b,ms(b,e),(b.mode&Qt)!==Mt&&0<=Ot&&0<=Nt&&.05<Nt-Ot&&zn(b,Ot,Nt,"Unmount"),va(R)}g0(e)}for(e=e.child;e!==null;)v0(e),e=e.sibling}function v0(e){var a=Tn(),o=Xr(),b=Lr(),R=Zr();switch(e.tag){case 0:case 11:case 15:sp(e,e.return,Ki),mp(e);break;case 22:var T=e.stateNode;T._visibility&Jl&&(T._visibility&=~Jl,mp(e));break;default:mp(e)}(e.mode&Qt)!==Mt&&0<=Ot&&0<=Nt&&(Aa||.05<ma)&&Vr(e,Ot,Nt,ma,fa),va(a),Nr(o),Aa=R,fa=b}function ms(e,a){for(;Fr!==null;){var o=Fr,b=o,R=a,T=Tn(),q=Xr(),U=Lr(),Q=Zr();switch(b.tag){case 0:case 11:case 15:sp(b,R,Ki);break;case 23:case 22:b.memoizedState!==null&&b.memoizedState.cachePool!==null&&(R=b.memoizedState.cachePool.pool,R!=null&&mt(R));break;case 24:Ct(b.memoizedState.cache)}if((b.mode&Qt)!==Mt&&0<=Ot&&0<=Nt&&(Aa||.05<ma)&&Vr(b,Ot,Nt,ma,fa),va(T),Nr(q),Aa=Q,fa=U,b=o.child,b!==null)b.return=o,Fr=b;else e:for(o=e;Fr!==null;){if(b=Fr,T=b.sibling,q=b.return,Sa(b),b===o){Fr=null;break e}if(T!==null){T.return=q,Fr=T;break e}Fr=q}}}function b0(){kE.forEach(function(e){return e()})}function _0(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||Ze.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Mr(e){if((En&Rr)!==qr&&en!==0)return en&-en;var a=Ze.T;return a!==null?(a._updatedFibers||(a._updatedFibers=new Set),a._updatedFibers.add(e),w0()):Xu()}function Yc(){if(yu===0)if((en&536870912)===0||dn){var e=ah;ah<<=1,(ah&3932160)===0&&(ah=262144),yu=e}else yu=536870912;return e=Pu.current,e!==null&&(e.flags|=32),yu}function Bt(e,a,o){if(Am&&console.error("useInsertionEffect must not schedule updates."),ob&&(qv=!0),(e===Yn&&(jn===bh||jn===_h)||e.cancelPendingCommit!==null)&&(gs(e,0),fu(e,en,yu,!1)),xt(e,o),(En&Rr)!==qr&&e===Yn){if(Ss)switch(a.tag){case 0:case 11:case 15:e=an&&me(an)||"Unknown",u_.has(e)||(u_.add(e),a=me(a)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",a,e,e));break;case 1:i_||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),i_=!0)}}else As&&ia(e,a,o),Fd(a),e===Yn&&((En&Rr)===qr&&(Bf|=o),ga===Lf&&fu(e,en,yu,!1)),Ei(e)}function gy(e,a,o){if((En&(Rr|Vu))!==qr)throw Error("Should not already be working.");if(en!==0&&an!==null){var b=an,R=ur();switch(Wb){case Gg:case bh:var T=Sg;ta&&((b=b._debugTask)?b.run(console.timeStamp.bind(console,"Suspended",T,R,Ts,void 0,"primary-light")):console.timeStamp("Suspended",T,R,Ts,void 0,"primary-light"));break;case _h:T=Sg,ta&&((b=b._debugTask)?b.run(console.timeStamp.bind(console,"Action",T,R,Ts,void 0,"primary-light")):console.timeStamp("Action",T,R,Ts,void 0,"primary-light"));break;default:ta&&(b=R-Sg,3>b||console.timeStamp("Blocked",Sg,R,Ts,void 0,5>b?"primary-light":10>b?"primary":100>b?"primary-dark":"error"))}}T=(o=!o&&(a&127)===0&&(a&e.expiredLanes)===0||vt(e,a))?co(e,a):$c(e,a,!0);var q=o;do{if(T===sc){Sm&&!o&&fu(e,a,0,!1),a=jn,Sg=or(),Wb=a;break}else{if(b=ur(),R=e.current.alternate,q&&!vy(R)){za(a),R=jr,T=b,!ta||T<=R||(ja?ja.run(console.timeStamp.bind(console,"Teared Render",R,T,vn,pn,"error")):console.timeStamp("Teared Render",R,T,vn,pn,"error")),$o(a,b),T=$c(e,a,!1),q=!1;continue}if(T===vh){if(q=a,e.errorRecoveryDisabledLanes&q)var U=0;else U=e.pendingLanes&-536870913,U=U!==0?U:U&536870912?536870912:0;if(U!==0){za(a),_c(jr,b,a,ja),$o(a,b),a=U;e:{b=e,T=q,q=Pg;var Q=b.current.memoizedState.isDehydrated;if(Q&&(gs(b,U).flags|=256),U=$c(b,U,!1),U!==vh){if(eb&&!Q){b.errorRecoveryDisabledLanes|=T,Bf|=T,T=Lf;break e}b=eu,eu=q,b!==null&&(eu===null?eu=b:eu.push.apply(eu,b))}T=U}if(q=!1,T!==vh)continue;b=ur()}}if(T===qg){za(a),_c(jr,b,a,ja),$o(a,b),gs(e,0),fu(e,a,0,!0);break}e:{switch(o=e,T){case sc:case qg:throw Error("Root did not complete. This is a bug in React.");case Lf:if((a&4194048)!==a)break;case wv:za(a),bc(jr,b,a,ja),$o(a,b),R=a,(R&127)!==0?gv=b:(R&4194048)!==0&&(yv=b),fu(o,a,yu,!Mf);break e;case vh:eu=null;break;case Ov:case Y2:break;default:throw Error("Unknown root exit status.")}if(Ze.actQueue!==null)Un(o,R,a,eu,Ug,Mv,yu,Bf,Eh,T,null,null,jr,b);else{if((a&62914560)===a&&(q=kv+$2-ur(),10<q)){if(fu(o,a,yu,!Mf),mr(o,0,!0)!==0)break e;So=a,o.timeoutHandle=p_(yy.bind(null,o,R,eu,Ug,Mv,a,yu,Bf,Eh,Mf,T,"Throttled",jr,b),q);break e}yy(o,R,eu,Ug,Mv,a,yu,Bf,Eh,Mf,T,null,jr,b)}}}break}while(!0);Ei(e)}function yy(e,a,o,b,R,T,q,U,Q,ee,Te,Oe,ve,Ue){e.timeoutHandle=Rh;var lt=a.subtreeFlags,ht=null;if((lt&8192||(lt&16785408)===16785408)&&(ht={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:hi},hp(a,T,ht),lt=(T&62914560)===T?kv-ur():(T&4194048)===T?Z2-ur():0,lt=kp(ht,lt),lt!==null)){So=T,e.cancelPendingCommit=lt(Un.bind(null,e,a,T,o,b,R,q,U,Q,Te,ht,ht.waitingForViewTransition?"Waiting for the previous Animation":0<ht.count?0<ht.imgCount?"Suspended on CSS and Images":"Suspended on CSS":ht.imgCount===1?"Suspended on an Image":0<ht.imgCount?"Suspended on Images":null,ve,Ue)),fu(e,T,q,!ee);return}Un(e,a,T,o,b,R,q,U,Q,Te,ht,Oe,ve,Ue)}function vy(e){for(var a=e;;){var o=a.tag;if((o===0||o===11||o===15)&&a.flags&16384&&(o=a.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var b=0;b<o.length;b++){var R=o[b],T=R.getSnapshot;R=R.value;try{if(!Ji(T(),R))return!1}catch{return!1}}if(o=a.child,a.subtreeFlags&16384&&o!==null)o.return=a,a=o;else{if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function fu(e,a,o,b){a&=~tb,a&=~Bf,e.suspendedLanes|=a,e.pingedLanes&=~a,b&&(e.warmLanes|=a),b=e.expirationTimes;for(var R=a;0<R;){var T=31-Sr(R),q=1<<T;b[T]=-1,R&=~q}o!==0&&zt(e,o,a)}function Hi(){return(En&(Rr|Vu))===qr?(vs(0),!1):!0}function gp(){if(an!==null){if(jn===gu)var e=an.return;else e=an,g(),Mo(e),pm=null,Ng=0,e=an;for(;e!==null;)r0(e.alternate,e),e=e.return;an=null}}function $o(e,a){(e&127)!==0&&(lh=a),(e&4194048)!==0&&(tc=a),(e&62914560)!==0&&($b=a),(e&2080374784)!==0&&(Jb=a)}function gs(e,a){ta&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",pn,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",pn,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",pn,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",pn,"primary-light"));var o=jr;if(jr=or(),en!==0&&0<o){if(za(en),ga===Ov||ga===Lf)bc(o,jr,a,ja);else{var b=jr,R=ja;if(ta&&!(b<=o)){var T=(a&738197653)===a?"tertiary-dark":"primary-dark",q=(a&536870912)===a?"Prewarm":(a&201326741)===a?"Interrupted Hydration":"Interrupted Render";R?R.run(console.timeStamp.bind(console,q,o,b,vn,pn,T)):console.timeStamp(q,o,b,vn,pn,T)}}$o(en,jr)}if(o=ja,ja=null,(a&127)!==0){ja=_g,R=0<=ul&&ul<lh?lh:ul,b=0<=ch&&ch<lh?lh:ch,T=0<=b?b:0<=R?R:jr,0<=gv?(za(2),Qf(gv,T,a,o)):vv&127,o=R;var U=b,Q=Eg,ee=0<fm,Te=If===bg,Oe=If===mv;if(R=jr,b=_g,T=L1,q=M1,ta){if(vn="Blocking",0<o?o>R&&(o=R):o=R,0<U?U>o&&(U=o):U=o,Q!==null&&o>U){var ve=ee?"secondary-light":"warning";b?b.run(console.timeStamp.bind(console,ee?"Consecutive":"Event: "+Q,U,o,vn,pn,ve)):console.timeStamp(ee?"Consecutive":"Event: "+Q,U,o,vn,pn,ve)}R>o&&(U=Te?"error":(a&738197653)===a?"tertiary-light":"primary-light",Te=Oe?"Promise Resolved":Te?"Cascading Update":5<R-o?"Update Blocked":"Update",Oe=[],q!=null&&Oe.push(["Component name",q]),T!=null&&Oe.push(["Method name",T]),o={start:o,end:R,detail:{devtools:{properties:Oe,track:vn,trackGroup:pn,color:U}}},b?b.run(performance.measure.bind(performance,Te,o)):performance.measure(Te,o))}ul=-1.1,If=0,M1=L1=null,gv=-1.1,fm=ch,ch=-1.1,lh=or()}if((a&4194048)!==0&&(ja=xg,R=0<=nc&&nc<tc?tc:nc,o=0<=Ls&&Ls<tc?tc:Ls,b=0<=Of&&Of<tc?tc:Of,T=0<=b?b:0<=o?o:jr,0<=yv?(za(256),Qf(yv,T,a,ja)):vv&4194048,Oe=b,U=fh,Q=0<wf,ee=k1===mv,T=jr,b=xg,q=Xb,Te=Zb,ta&&(vn="Transition",0<o?o>T&&(o=T):o=T,0<R?R>o&&(R=o):R=o,0<Oe?Oe>R&&(Oe=R):Oe=R,R>Oe&&U!==null&&(ve=Q?"secondary-light":"warning",b?b.run(console.timeStamp.bind(console,Q?"Consecutive":"Event: "+U,Oe,R,vn,pn,ve)):console.timeStamp(Q?"Consecutive":"Event: "+U,Oe,R,vn,pn,ve)),o>R&&(b?b.run(console.timeStamp.bind(console,"Action",R,o,vn,pn,"primary-dark")):console.timeStamp("Action",R,o,vn,pn,"primary-dark")),T>o&&(R=ee?"Promise Resolved":5<T-o?"Update Blocked":"Update",Oe=[],Te!=null&&Oe.push(["Component name",Te]),q!=null&&Oe.push(["Method name",q]),o={start:o,end:T,detail:{devtools:{properties:Oe,track:vn,trackGroup:pn,color:"primary-light"}}},b?b.run(performance.measure.bind(performance,R,o)):performance.measure(R,o))),Ls=nc=-1.1,k1=0,yv=-1.1,wf=Of,Of=-1.1,tc=or()),(a&62914560)!==0&&(vv&62914560)!==0&&(za(4194304),Kf($b,jr)),(a&2080374784)!==0&&(vv&2080374784)!==0&&(za(268435456),Kf(Jb,jr)),o=e.timeoutHandle,o!==Rh&&(e.timeoutHandle=Rh,ZE(o)),o=e.cancelPendingCommit,o!==null&&(e.cancelPendingCommit=null,o()),So=0,gp(),Yn=e,an=o=uu(e.current,null),en=a,jn=gu,Hu=null,Mf=!1,Sm=vt(e,a),eb=!1,ga=sc,Eh=yu=tb=Bf=kf=0,eu=Pg=null,Mv=!1,(a&8)!==0&&(a|=a&32),b=e.entangledLanes,b!==0)for(e=e.entanglements,b&=a;0<b;)R=31-Sr(b),T=1<<R,a|=e[R],b&=~T;return ol=a,gl(),e=zb(),1e3<e-Gb&&(Ze.recentlyCreatedOwnerStacks=0,Gb=e),_o.discardPendingWarnings(),o}function Nu(e,a){Ft=null,Ze.H=Bg,Ze.getCurrentStack=null,Ss=!1,Ai=null,a===hm||a===xv?(a=_l(),jn=Gg):a===q1?(a=_l(),jn=X2):jn=a===$1?K1:a!==null&&typeof a=="object"&&typeof a.then=="function"?zg:Nv,Hu=a;var o=an;o===null?(ga=qg,Sd(e,Er(a,e.current))):o.mode&Qt&&No(o)}function E0(){var e=Pu.current;return e===null?!0:(en&4194048)===en?Ms===null:(en&62914560)===en||(en&536870912)!==0?e===Ms:!1}function yp(){var e=Ze.H;return Ze.H=Bg,e===null?Bg:e}function S0(){var e=Ze.A;return Ze.A=ME,e}function Xc(e){ja===null&&(ja=e._debugTask==null?null:e._debugTask)}function Zc(){ga=Lf,Mf||(en&4194048)!==en&&Pu.current!==null||(Sm=!0),(kf&134217727)===0&&(Bf&134217727)===0||Yn===null||fu(Yn,en,yu,!1)}function $c(e,a,o){var b=En;En|=Rr;var R=yp(),T=S0();if(Yn!==e||en!==a){if(As){var q=e.memoizedUpdaters;0<q.size&&(Wc(e,en),q.clear()),bt(e,a)}Ug=null,gs(e,a)}a=!1,q=ga;e:do try{if(jn!==gu&&an!==null){var U=an,Q=Hu;switch(jn){case K1:gp(),q=wv;break e;case Gg:case bh:case _h:case zg:Pu.current===null&&(a=!0);var ee=jn;if(jn=gu,Hu=null,Jc(e,U,Q,ee),o&&Sm){q=sc;break e}break;default:ee=jn,jn=gu,Hu=null,Jc(e,U,Q,ee)}}C0(),q=ga;break}catch(Te){Nu(e,Te)}while(!0);return a&&e.shellSuspendCounter++,g(),En=b,Ze.H=R,Ze.A=T,an===null&&(Yn=null,en=0,gl()),q}function C0(){for(;an!==null;)vp(an)}function co(e,a){var o=En;En|=Rr;var b=yp(),R=S0();if(Yn!==e||en!==a){if(As){var T=e.memoizedUpdaters;0<T.size&&(Wc(e,en),T.clear()),bt(e,a)}Ug=null,Bv=ur()+J2,gs(e,a)}else Sm=vt(e,a);e:do try{if(jn!==gu&&an!==null)t:switch(a=an,T=Hu,jn){case Nv:jn=gu,Hu=null,Jc(e,a,T,Nv);break;case bh:case _h:if(Lm(T)){jn=gu,Hu=null,A0(a);break}a=function(){jn!==bh&&jn!==_h||Yn!==e||(jn=Lv),Ei(e)},T.then(a,a);break e;case Gg:jn=Lv;break e;case X2:jn=Q1;break e;case Lv:Lm(T)?(jn=gu,Hu=null,A0(a)):(jn=gu,Hu=null,Jc(e,a,T,Lv));break;case Q1:var q=null;switch(an.tag){case 26:q=an.memoizedState;case 5:case 27:var U=an;if(q?sn(q):U.stateNode.complete){jn=gu,Hu=null;var Q=U.sibling;if(Q!==null)an=Q;else{var ee=U.return;ee!==null?(an=ee,kd(ee)):an=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}jn=gu,Hu=null,Jc(e,a,T,Q1);break;case zg:jn=gu,Hu=null,Jc(e,a,T,zg);break;case K1:gp(),ga=wv;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Ze.actQueue!==null?C0():ka();break}catch(Te){Nu(e,Te)}while(!0);return g(),Ze.H=b,Ze.A=R,En=o,an!==null?sc:(Yn=null,en=0,gl(),ga)}function ka(){for(;an!==null&&!Yp();)vp(an)}function vp(e){var a=e.alternate;(e.mode&Qt)!==Mt?(su(e),a=Be(e,Td,a,e,ol),No(e)):a=Be(e,Td,a,e,ol),e.memoizedProps=e.pendingProps,a===null?kd(e):an=a}function A0(e){var a=Be(e,ir,e);e.memoizedProps=e.pendingProps,a===null?kd(e):an=a}function ir(e){var a=e.alternate,o=(e.mode&Qt)!==Mt;switch(o&&su(e),e.tag){case 15:case 0:a=Qm(a,e,e.pendingProps,e.type,void 0,en);break;case 11:a=Qm(a,e,e.pendingProps,e.type.render,e.ref,en);break;case 5:Mo(e);default:r0(a,e),e=an=Sc(e,ol),a=Td(a,e,ol)}return o&&No(e),a}function Jc(e,a,o,b){g(),Mo(a),pm=null,Ng=0;var R=a.return;try{if(Hm(e,R,a,o,en)){ga=qg,Sd(e,Er(o,e.current)),an=null;return}}catch(T){if(R!==null)throw an=R,T;ga=qg,Sd(e,Er(o,e.current)),an=null;return}a.flags&32768?(dn||b===Nv?e=!0:Sm||(en&536870912)!==0?e=!1:(Mf=e=!0,(b===bh||b===_h||b===Gg||b===zg)&&(b=Pu.current,b!==null&&b.tag===13&&(b.flags|=16384))),R0(a,e)):kd(a)}function kd(e){var a=e;do{if((a.flags&32768)!==0){R0(a,Mf);return}var o=a.alternate;if(e=a.return,su(a),o=Be(a,a0,o,a,ol),(a.mode&Qt)!==Mt&&Ks(a),o!==null){an=o;return}if(a=a.sibling,a!==null){an=a;return}an=a=e}while(a!==null);ga===sc&&(ga=Y2)}function R0(e,a){do{var o=ly(e.alternate,e);if(o!==null){o.flags&=32767,an=o;return}if((e.mode&Qt)!==Mt){Ks(e),o=e.actualDuration;for(var b=e.child;b!==null;)o+=b.actualDuration,b=b.sibling;e.actualDuration=o}if(o=e.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!a&&(e=e.sibling,e!==null)){an=e;return}an=e=o}while(e!==null);ga=wv,an=null}function Un(e,a,o,b,R,T,q,U,Q,ee,Te,Oe,ve,Ue){e.cancelPendingCommit=null;do Bd();while(pr!==Ff);if(_o.flushLegacyContextWarning(),_o.flushPendingUnsafeLifecycleWarnings(),(En&(Rr|Vu))!==qr)throw Error("Should not already be working.");if(za(o),ee===vh?_c(ve,Ue,o,ja):b!==null?ki(ve,Ue,o,b,a!==null&&a.alternate!==null&&a.alternate.memoizedState.isDehydrated&&(a.flags&256)!==0,ja):Mh(ve,Ue,o,ja),a!==null){if(o===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),a===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(T=a.lanes|a.childLanes,T|=D1,vu(e,o,T,q,U,Q),e===Yn&&(an=Yn=null,en=0),Cm=a,qf=e,So=o,rb=T,ub=R,n_=b,ib=Ue,a_=Oe,Co=jv,r_=null,a.actualDuration!==0||(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Qc(Yl,function(){return $g=window.event,Co===jv&&(Co=ab),jd(),null})):(e.callbackNode=null,e.callbackPriority=0),ec=null,Df=or(),Oe!==null&&Hr(Ue,Df,Oe,ja),b=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||b){b=Ze.T,Ze.T=null,R=Rn.p,Rn.p=Ya,q=En,En|=Vu;try{a1(e,a,o)}finally{En=q,Rn.p=R,Ze.T=b}}pr=Q2,ni(),ys(),T0()}}function ni(){if(pr===Q2){pr=Ff;var e=qf,a=Cm,o=So,b=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||b){b=Ze.T,Ze.T=null;var R=Rn.p;Rn.p=Ya;var T=En;En|=Vu;try{Em=o,xm=e,Yr(),wd(a,e),xm=Em=null,o=yb;var q=yc(e.containerInfo),U=o.focusedElem,Q=o.selectionRange;if(q!==U&&U&&U.ownerDocument&&Ys(U.ownerDocument.documentElement,U)){if(Q!==null&&mi(U)){var ee=Q.start,Te=Q.end;if(Te===void 0&&(Te=ee),"selectionStart"in U)U.selectionStart=ee,U.selectionEnd=Math.min(Te,U.value.length);else{var Oe=U.ownerDocument||document,ve=Oe&&Oe.defaultView||window;if(ve.getSelection){var Ue=ve.getSelection(),lt=U.textContent.length,ht=Math.min(Q.start,lt),Zn=Q.end===void 0?ht:Math.min(Q.end,lt);!Ue.extend&&ht>Zn&&(q=Zn,Zn=ht,ht=q);var mn=Zf(U,ht),ye=Zf(U,Zn);if(mn&&ye&&(Ue.rangeCount!==1||Ue.anchorNode!==mn.node||Ue.anchorOffset!==mn.offset||Ue.focusNode!==ye.node||Ue.focusOffset!==ye.offset)){var be=Oe.createRange();be.setStart(mn.node,mn.offset),Ue.removeAllRanges(),ht>Zn?(Ue.addRange(be),Ue.extend(ye.node,ye.offset)):(be.setEnd(ye.node,ye.offset),Ue.addRange(be))}}}}for(Oe=[],Ue=U;Ue=Ue.parentNode;)Ue.nodeType===1&&Oe.push({element:Ue,left:Ue.scrollLeft,top:Ue.scrollTop});for(typeof U.focus=="function"&&U.focus(),U=0;U<Oe.length;U++){var Ae=Oe[U];Ae.element.scrollLeft=Ae.left,Ae.element.scrollTop=Ae.top}}Kv=!!gb,yb=gb=null}finally{En=T,Rn.p=R,Ze.T=b}}e.current=a,pr=K2}}function ys(){if(pr===K2){pr=Ff;var e=r_;if(e!==null){Df=or();var a=Kl,o=Df;!ta||o<=a||console.timeStamp(e,a,o,vn,pn,"secondary-light")}e=qf,a=Cm,o=So;var b=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||b){b=Ze.T,Ze.T=null;var R=Rn.p;Rn.p=Ya;var T=En;En|=Vu;try{Em=o,xm=e,Yr(),fp(e,a.alternate,a),xm=Em=null}finally{En=T,Rn.p=R,Ze.T=b}}e=ib,a=a_,Kl=or(),e=a===null?e:Df,a=Kl,o=Co===nb,b=ja,ec!==null?Oo(e,a,ec,!1,b):!ta||a<=e||(b?b.run(console.timeStamp.bind(console,o?"Commit Interrupted View Transition":"Commit",e,a,vn,pn,o?"error":"secondary-dark")):console.timeStamp(o?"Commit Interrupted View Transition":"Commit",e,a,vn,pn,o?"error":"secondary-dark")),pr=e_}}function T0(){if(pr===t_||pr===e_){if(pr===t_){var e=Kl;Kl=or();var a=Kl,o=Co===nb;!ta||a<=e||console.timeStamp(o?"Interrupted View Transition":"Starting Animation",e,a,vn,pn,o?" error":"secondary-light"),Co!==nb&&(Co=W2)}pr=Ff,Xp(),e=qf;var b=Cm;a=So,o=n_;var R=b.actualDuration!==0||(b.subtreeFlags&10256)!==0||(b.flags&10256)!==0;R?pr=Fv:(pr=Ff,Cm=qf=null,D0(e,e.pendingLanes),xh=0,Hg=null);var T=e.pendingLanes;if(T===0&&(jf=null),R||Ep(e),T=$n(a),b=b.stateNode,Ha&&typeof Ha.onCommitFiberRoot=="function")try{var q=(b.current.flags&128)===128;switch(T){case Ya:var U=rg;break;case Cr:U=Zp;break;case Br:U=Yl;break;case al:U=$p;break;default:U=Yl}Ha.onCommitFiberRoot(Xl,b,U,q)}catch(Oe){Cs||(Cs=!0,console.error("React instrumentation encountered an error: %o",Oe))}if(As&&e.memoizedUpdaters.clear(),b0(),o!==null){q=Ze.T,U=Rn.p,Rn.p=Ya,Ze.T=null;try{var Q=e.onRecoverableError;for(b=0;b<o.length;b++){var ee=o[b],Te=by(ee.stack);Be(ee.source,Q,ee.value,Te)}}finally{Ze.T=q,Rn.p=U}}(So&3)!==0&&Bd(),Ei(e),T=e.pendingLanes,(a&261930)!==0&&(T&42)!==0?(_v=!0,e===sb?Vg++:(Vg=0,sb=e)):Vg=0,R||$o(a,Kl),vs(0)}}function by(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function D0(e,a){(e.pooledCacheLanes&=a)===0&&(a=e.pooledCache,a!=null&&(e.pooledCache=null,Ct(a)))}function Bd(){return ni(),ys(),T0(),jd()}function jd(){if(pr!==Fv)return!1;var e=qf,a=rb;rb=0;var o=$n(So),b=Br>o?Br:o;o=Ze.T;var R=Rn.p;try{Rn.p=b,Ze.T=null;var T=ub;ub=null,b=qf;var q=So;if(pr=Ff,Cm=qf=null,So=0,(En&(Rr|Vu))!==qr)throw Error("Cannot flush passive effects while already rendering.");za(q),ob=!0,qv=!1;var U=0;if(ec=null,U=ur(),Co===W2)Kf(Kl,U,TE);else{var Q=Kl,ee=U,Te=Co===ab;!ta||ee<=Q||(ja?ja.run(console.timeStamp.bind(console,Te?"Waiting for Paint":"Waiting",Q,ee,vn,pn,"secondary-light")):console.timeStamp(Te?"Waiting for Paint":"Waiting",Q,ee,vn,pn,"secondary-light"))}Q=En,En|=Vu;var Oe=b.current;Yr(),pp(Oe);var ve=b.current;Oe=ib,Yr(),m0(b,ve,q,T,Oe),Ep(b),En=Q;var Ue=ur();if(ve=U,Oe=ja,ec!==null?Oo(ve,Ue,ec,!0,Oe):!ta||Ue<=ve||(Oe?Oe.run(console.timeStamp.bind(console,"Remaining Effects",ve,Ue,vn,pn,"secondary-dark")):console.timeStamp("Remaining Effects",ve,Ue,vn,pn,"secondary-dark")),$o(q,Ue),vs(0,!1),qv?b===Hg?xh++:(xh=0,Hg=b):xh=0,qv=ob=!1,Ha&&typeof Ha.onPostCommitFiberRoot=="function")try{Ha.onPostCommitFiberRoot(Xl,b)}catch(ht){Cs||(Cs=!0,console.error("React instrumentation encountered an error: %o",ht))}var lt=b.current.stateNode;return lt.effectDuration=0,lt.passiveEffectDuration=0,!0}finally{Rn.p=R,Ze.T=o,D0(e,a)}}function ai(e,a,o){a=Er(o,a),ey(a),a=Wh(e.stateNode,a,2),e=is(e,a,2),e!==null&&(xt(e,2),Ei(e))}function Xt(e,a,o){if(Am=!1,e.tag===3)ai(e,e,o);else{for(;a!==null;){if(a.tag===3){ai(a,e,o);return}if(a.tag===1){var b=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(jf===null||!jf.has(b))){e=Er(o,e),ey(e),o=Qh(2),b=is(a,o,2),b!==null&&(Kh(o,b,a,e),xt(b,2),Ei(b));return}}a=a.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
293
+
294
+ Error message:
295
+
296
+ %s`,o)}}function bp(e,a,o){var b=e.pingCache;if(b===null){b=e.pingCache=new BE;var R=new Set;b.set(a,R)}else R=b.get(a),R===void 0&&(R=new Set,b.set(a,R));R.has(o)||(eb=!0,R.add(o),b=_i.bind(null,e,a,o),As&&Wc(e,o),a.then(b,b))}function _i(e,a,o){var b=e.pingCache;b!==null&&b.delete(a),e.pingedLanes|=e.suspendedLanes&o,e.warmLanes&=~o,(o&127)!==0?0>ul&&(lh=ul=or(),_g=pv("Promise Resolved"),If=mv):(o&4194048)!==0&&0>Ls&&(tc=Ls=or(),xg=pv("Promise Resolved"),k1=mv),_0()&&Ze.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
297
+
298
+ When testing, code that resolves suspended data should be wrapped into act(...):
299
+
300
+ act(() => {
301
+ /* finish loading suspended data */
302
+ });
303
+ /* assert on the output */
304
+
305
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Yn===e&&(en&o)===o&&(ga===Lf||ga===Ov&&(en&62914560)===en&&ur()-kv<$2?(En&Rr)===qr&&gs(e,0):tb|=o,Eh===en&&(Eh=0)),Ei(e)}function I0(e,a){a===0&&(a=gr()),e=La(e,a),e!==null&&(xt(e,a),Ei(e))}function fo(e){var a=e.memoizedState,o=0;a!==null&&(o=a.retryLane),I0(e,o)}function jl(e,a){var o=0;switch(e.tag){case 31:case 13:var b=e.stateNode,R=e.memoizedState;R!==null&&(o=R.retryLane);break;case 19:b=e.stateNode;break;case 22:b=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}b!==null&&b.delete(a),I0(e,o)}function Lu(e,a,o){if((a.subtreeFlags&67117056)!==0)for(a=a.child;a!==null;){var b=e,R=a,T=R.type===ui;T=o||T,R.tag!==22?R.flags&67108864?T&&Be(R,_p,b,R):Lu(b,R,T):R.memoizedState===null&&(T&&R.flags&8192?Be(R,_p,b,R):R.subtreeFlags&67108864&&Be(R,Lu,b,R,T)),a=a.sibling}}function _p(e,a){Yt(!0);try{dp(a),v0(a),p0(e,a.alternate,a,!1),Md(e,a,0,null,!1,0)}finally{Yt(!1)}}function Ep(e){var a=!0;e.current.mode&(Ri|bo)||(a=!1),Lu(e,e.current,a)}function du(e){if((En&Rr)===qr){var a=e.tag;if(a===3||a===1||a===0||a===11||a===14||a===15){if(a=me(e)||"ReactComponent",Gv!==null){if(Gv.has(a))return;Gv.add(a)}else Gv=new Set([a]);Be(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Wc(e,a){As&&e.memoizedUpdaters.forEach(function(o){ia(e,o,a)})}function Qc(e,a){var o=Ze.actQueue;return o!==null?(o.push(a),qE):ag(e,a)}function Fd(e){_0()&&Ze.actQueue===null&&Be(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
306
+
307
+ When testing, code that causes React state updates should be wrapped into act(...):
308
+
309
+ act(() => {
310
+ /* fire events that update state */
311
+ });
312
+ /* assert on the output */
313
+
314
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,me(e))})}function Ei(e){e!==Rm&&e.next===null&&(Rm===null?zv=Rm=e:Rm=Rm.next=e),Pv=!0,Ze.actQueue!==null?cb||(cb=!0,Ey()):lb||(lb=!0,Ey())}function vs(e,a){if(!fb&&Pv){fb=!0;do for(var o=!1,b=zv;b!==null;){if(e!==0){var R=b.pendingLanes;if(R===0)var T=0;else{var q=b.suspendedLanes,U=b.pingedLanes;T=(1<<31-Sr(42|e)+1)-1,T&=R&~(q&~U),T=T&201326741?T&201326741|1:T?T|2:0}T!==0&&(o=!0,qd(b,T))}else T=en,T=mr(b,b===Yn?T:0,b.cancelPendingCommit!==null||b.timeoutHandle!==Rh),(T&3)===0||vt(b,T)||(o=!0,qd(b,T));b=b.next}while(o);fb=!1}}function _y(){$g=window.event,xp()}function xp(){Pv=cb=lb=!1;var e=0;Gf!==0&&L0()&&(e=Gf);for(var a=ur(),o=null,b=zv;b!==null;){var R=b.next,T=Kc(b,a);T===0?(b.next=null,o===null?zv=R:o.next=R,R===null&&(Rm=o)):(o=b,(e!==0||(T&3)!==0)&&(Pv=!0)),b=R}pr!==Ff&&pr!==Fv||vs(e),Gf!==0&&(Gf=0)}function Kc(e,a){for(var o=e.suspendedLanes,b=e.pingedLanes,R=e.expirationTimes,T=e.pendingLanes&-62914561;0<T;){var q=31-Sr(T),U=1<<q,Q=R[q];Q===-1?((U&o)===0||(U&b)!==0)&&(R[q]=Ja(U,a)):Q<=a&&(e.expiredLanes|=U),T&=~U}if(a=Yn,o=en,o=mr(e,e===a?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Rh),b=e.callbackNode,o===0||e===a&&(jn===bh||jn===_h)||e.cancelPendingCommit!==null)return b!==null&&Sp(b),e.callbackNode=null,e.callbackPriority=0;if((o&3)===0||vt(e,o)){if(a=o&-o,a!==e.callbackPriority||Ze.actQueue!==null&&b!==db)Sp(b);else return a;switch($n(o)){case Ya:case Cr:o=Zp;break;case Br:o=Yl;break;case al:o=$p;break;default:o=Yl}return b=O0.bind(null,e),Ze.actQueue!==null?(Ze.actQueue.push(b),o=db):o=ag(o,b),e.callbackPriority=a,e.callbackNode=o,a}return b!==null&&Sp(b),e.callbackPriority=2,e.callbackNode=null,2}function O0(e,a){if(_v=bv=!1,$g=window.event,pr!==Ff&&pr!==Fv)return e.callbackNode=null,e.callbackPriority=0,null;var o=e.callbackNode;if(Co===jv&&(Co=ab),Bd()&&e.callbackNode!==o)return null;var b=en;return b=mr(e,e===Yn?b:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Rh),b===0?null:(gy(e,b,a),Kc(e,ur()),e.callbackNode!=null&&e.callbackNode===o?O0.bind(null,e):null)}function qd(e,a){if(Bd())return null;bv=_v,_v=!1,gy(e,a,!0)}function Sp(e){e!==db&&e!==null&&Hp(e)}function Ey(){Ze.actQueue!==null&&Ze.actQueue.push(function(){return xp(),null}),$E(function(){(En&(Rr|Vu))!==qr?ag(rg,_y):xp()})}function w0(){if(Gf===0){var e=dh;e===0&&(e=vf,vf<<=1,(vf&261888)===0&&(vf=256)),Gf=e}return Gf}function Sn(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(dt(e,"action"),Ni(""+e))}function Mn(e,a){var o=a.ownerDocument.createElement("input");return o.name=a.name,o.value=a.value,e.id&&o.setAttribute("form",e.id),a.parentNode.insertBefore(o,a),e=new FormData(e),o.parentNode.removeChild(o),e}function fn(e,a,o,b,R){if(a==="submit"&&o&&o.stateNode===R){var T=Sn((R[si]||null).action),q=b.submitter;q&&(a=(a=q[si]||null)?Sn(a.formAction):q.getAttribute("formAction"),a!==null&&(T=a,q=null));var U=new sv("action","action",null,b,R);e.push({event:U,listeners:[{instance:null,listener:function(){if(b.defaultPrevented){if(Gf!==0){var Q=q?Mn(R,q):new FormData(R),ee={pending:!0,data:Q,method:R.method,action:T};Object.freeze(ee),so(o,ee,null,Q)}}else typeof T=="function"&&(U.preventDefault(),Q=q?Mn(R,q):new FormData(R),ee={pending:!0,data:Q,method:R.method,action:T},Object.freeze(ee),so(o,ee,T,Q))},currentTarget:R}]})}}function nn(e,a,o){e.currentTarget=o;try{a(e)}catch(b){S1(b)}e.currentTarget=null}function On(e,a){a=(a&4)!==0;for(var o=0;o<e.length;o++){var b=e[o];e:{var R=void 0,T=b.event;if(b=b.listeners,a)for(var q=b.length-1;0<=q;q--){var U=b[q],Q=U.instance,ee=U.currentTarget;if(U=U.listener,Q!==R&&T.isPropagationStopped())break e;Q!==null?Be(Q,nn,T,U,ee):nn(T,U,ee),R=Q}else for(q=0;q<b.length;q++){if(U=b[q],Q=U.instance,ee=U.currentTarget,U=U.listener,Q!==R&&T.isPropagationStopped())break e;Q!==null?Be(Q,nn,T,U,ee):nn(T,U,ee),R=Q}}}}function Lt(e,a){hb.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var o=a[Zl];o===void 0&&(o=a[Zl]=new Set);var b=e+"__bubble";o.has(b)||(Cp(a,e,2,!1),o.add(b))}function bs(e,a,o){hb.has(e)&&!a&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var b=0;a&&(b|=4),Cp(o,e,b,a)}function Jo(e){if(!e[Uv]){e[Uv]=!0,nv.forEach(function(o){o!=="selectionchange"&&(hb.has(o)||bs(o,!1,e),bs(o,!0,e))});var a=e.nodeType===9?e:e.ownerDocument;a===null||a[Uv]||(a[Uv]=!0,bs("selectionchange",!1,a))}}function Cp(e,a,o,b){switch(Fp(a)){case Ya:var R=Y0;break;case Cr:R=xr;break;default:R=X0}o=R.bind(null,a,o,e),R=void 0,!f1||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(R=!0),b?R!==void 0?e.addEventListener(a,o,{capture:!0,passive:R}):e.addEventListener(a,o,!0):R!==void 0?e.addEventListener(a,o,{passive:R}):e.addEventListener(a,o,!1)}function Mu(e,a,o,b,R){var T=b;if((a&1)===0&&(a&2)===0&&b!==null)e:for(;;){if(b===null)return;var q=b.tag;if(q===3||q===4){var U=b.stateNode.containerInfo;if(U===R)break;if(q===4)for(q=b.return;q!==null;){var Q=q.tag;if((Q===3||Q===4)&&q.stateNode.containerInfo===R)return;q=q.return}for(;U!==null;){if(q=Jn(U),q===null)return;if(Q=q.tag,Q===5||Q===6||Q===26||Q===27){b=T=q;continue e}U=U.parentNode}}b=b.return}br(function(){var ee=T,Te=Pr(o),Oe=[];e:{var ve=qb.get(e);if(ve!==void 0){var Ue=sv,lt=e;switch(e){case"keypress":if(hl(o)===0)break e;case"keydown":case"keyup":Ue=eE;break;case"focusin":lt="focus",Ue=m1;break;case"focusout":lt="blur",Ue=m1;break;case"beforeblur":case"afterblur":Ue=m1;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ue=Ab;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ue=P_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ue=aE;break;case kb:case Bb:case jb:Ue=H_;break;case Fb:Ue=iE;break;case"scroll":case"scrollend":Ue=G_;break;case"wheel":Ue=sE;break;case"copy":case"cut":case"paste":Ue=X_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ue=Tb;break;case"toggle":case"beforetoggle":Ue=lE}var ht=(a&4)!==0,Zn=!ht&&(e==="scroll"||e==="scrollend"),mn=ht?ve!==null?ve+"Capture":null:ve;ht=[];for(var ye=ee,be;ye!==null;){var Ae=ye;if(be=Ae.stateNode,Ae=Ae.tag,Ae!==5&&Ae!==26&&Ae!==27||be===null||mn===null||(Ae=Ur(ye,mn),Ae!=null&&ht.push(Vn(ye,Ae,be))),Zn)break;ye=ye.return}0<ht.length&&(ve=new Ue(ve,lt,null,o,Te),Oe.push({event:ve,listeners:ht}))}}if((a&7)===0){e:{if(ve=e==="mouseover"||e==="pointerover",Ue=e==="mouseout"||e==="pointerout",ve&&o!==lg&&(lt=o.relatedTarget||o.fromElement)&&(Jn(lt)||lt[vo]))break e;if((Ue||ve)&&(ve=Te.window===Te?Te:(ve=Te.ownerDocument)?ve.defaultView||ve.parentWindow:window,Ue?(lt=o.relatedTarget||o.toElement,Ue=ee,lt=lt?Jn(lt):null,lt!==null&&(Zn=K(lt),ht=lt.tag,lt!==Zn||ht!==5&&ht!==27&&ht!==6)&&(lt=null)):(Ue=null,lt=ee),Ue!==lt)){if(ht=Ab,Ae="onMouseLeave",mn="onMouseEnter",ye="mouse",(e==="pointerout"||e==="pointerover")&&(ht=Tb,Ae="onPointerLeave",mn="onPointerEnter",ye="pointer"),Zn=Ue==null?ve:Ti(Ue),be=lt==null?ve:Ti(lt),ve=new ht(Ae,ye+"leave",Ue,o,Te),ve.target=Zn,ve.relatedTarget=be,Ae=null,Jn(Te)===ee&&(ht=new ht(mn,ye+"enter",lt,o,Te),ht.target=be,ht.relatedTarget=Zn,Ae=ht),Zn=Ae,Ue&&lt)t:{for(ht=Fl,mn=Ue,ye=lt,be=0,Ae=mn;Ae;Ae=ht(Ae))be++;Ae=0;for(var Ke=ye;Ke;Ke=ht(Ke))Ae++;for(;0<be-Ae;)mn=ht(mn),be--;for(;0<Ae-be;)ye=ht(ye),Ae--;for(;be--;){if(mn===ye||ye!==null&&mn===ye.alternate){ht=mn;break t}mn=ht(mn),ye=ht(ye)}ht=null}else ht=null;Ue!==null&&Ap(Oe,ve,Ue,ht,!1),lt!==null&&Zn!==null&&Ap(Oe,Zn,lt,ht,!0)}}e:{if(ve=ee?Ti(ee):window,Ue=ve.nodeName&&ve.nodeName.toLowerCase(),Ue==="select"||Ue==="input"&&ve.type==="file")var ft=xu;else if(mc(ve))if(Lb)ft=Ka;else{ft=Do;var qt=Su}else Ue=ve.nodeName,!Ue||Ue.toLowerCase()!=="input"||ve.type!=="checkbox"&&ve.type!=="radio"?ee&&wi(ee.elementType)&&(ft=xu):ft=Xf;if(ft&&(ft=ft(e,ee))){To(Oe,ft,o,Te);break e}qt&&qt(e,ve,ee),e==="focusout"&&ee&&ve.type==="number"&&ee.memoizedProps.value!=null&&Da(ve,"number",ve.value)}switch(qt=ee?Ti(ee):window,e){case"focusin":(mc(qt)||qt.contentEditable==="true")&&(am=qt,v1=ee,gg=null);break;case"focusout":gg=v1=am=null;break;case"mousedown":b1=!0;break;case"contextmenu":case"mouseup":case"dragend":b1=!1,$f(Oe,o,Te);break;case"selectionchange":if(hE)break;case"keydown":case"keyup":$f(Oe,o,Te)}var It;if(g1)e:{switch(e){case"compositionstart":var At="onCompositionStart";break e;case"compositionend":At="onCompositionEnd";break e;case"compositionupdate":At="onCompositionUpdate";break e}At=void 0}else nm?_r(e,o)&&(At="onCompositionEnd"):e==="keydown"&&o.keyCode===Db&&(At="onCompositionStart");At&&(Ib&&o.locale!=="ko"&&(nm||At!=="onCompositionStart"?At==="onCompositionEnd"&&nm&&(It=Ps()):(Sf=Te,d1="value"in Sf?Sf.value:Sf.textContent,nm=!0)),qt=ku(ee,At),0<qt.length&&(At=new Rb(At,e,null,o,Te),Oe.push({event:At,listeners:qt}),It?At.data=It:(It=Li(o),It!==null&&(At.data=It)))),(It=fE?pc(e,o):Ju(e,o))&&(At=ku(ee,"onBeforeInput"),0<At.length&&(qt=new $_("onBeforeInput","beforeinput",null,o,Te),Oe.push({event:qt,listeners:At}),qt.data=It)),fn(Oe,e,ee,o,Te)}On(Oe,a)})}function Vn(e,a,o){return{instance:e,listener:a,currentTarget:o}}function ku(e,a){for(var o=a+"Capture",b=[];e!==null;){var R=e,T=R.stateNode;if(R=R.tag,R!==5&&R!==26&&R!==27||T===null||(R=Ur(e,o),R!=null&&b.unshift(Vn(e,R,T)),R=Ur(e,a),R!=null&&b.push(Vn(e,R,T))),e.tag===3)return b;e=e.return}return[]}function Fl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ap(e,a,o,b,R){for(var T=a._reactName,q=[];o!==null&&o!==b;){var U=o,Q=U.alternate,ee=U.stateNode;if(U=U.tag,Q!==null&&Q===b)break;U!==5&&U!==26&&U!==27||ee===null||(Q=ee,R?(ee=Ur(o,T),ee!=null&&q.unshift(Vn(o,ee,Q))):R||(ee=Ur(o,T),ee!=null&&q.push(Vn(o,ee,Q)))),o=o.return}q.length!==0&&e.push({event:a,listeners:q})}function ri(e,a){wh(e,a),e!=="input"&&e!=="textarea"&&e!=="select"||a==null||a.value!==null||Sb||(Sb=!0,e==="select"&&a.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var o={registrationNameDependencies:Rs,possibleRegistrationNames:Ef};wi(e)||typeof a.is=="string"||Gn(e,a,o),a.contentEditable&&!a.suppressContentEditableWarning&&a.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function la(e,a,o,b){a!==o&&(o=Bu(o),Bu(a)!==o&&(b[e]=a))}function Gd(e,a,o){a.forEach(function(b){o[ho(b)]=b==="style"?Wo(e):e.getAttribute(b)})}function ca(e,a){a===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof a)}function Rp(e,a){return e=e.namespaceURI===Ut||e.namespaceURI===Zt?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=a,e.innerHTML}function Bu(e){return Rt(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",_t(e)),kt(e)),(typeof e=="string"?e:""+e).replace(GE,`
315
+ `).replace(zE,"")}function N0(e,a){return a=Bu(a),Bu(e)===a}function An(e,a,o,b,R,T){switch(o){case"children":typeof b=="string"?(fl(b,a,!1),a==="body"||a==="textarea"&&b===""||Gs(e,b)):(typeof b=="number"||typeof b=="bigint")&&(fl(""+b,a,!1),a!=="body"&&Gs(e,""+b));break;case"className":ut(e,"class",b);break;case"tabIndex":ut(e,"tabindex",b);break;case"dir":case"role":case"viewBox":case"width":case"height":ut(e,o,b);break;case"style":zs(e,b,T);break;case"data":if(a!=="object"){ut(e,"data",b);break}case"src":case"href":if(b===""&&(a!=="a"||o!=="href")){console.error(o==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',o,o),e.removeAttribute(o);break}if(b==null||typeof b=="function"||typeof b=="symbol"||typeof b=="boolean"){e.removeAttribute(o);break}dt(b,o),b=Ni(""+b),e.setAttribute(o,b);break;case"action":case"formAction":if(b!=null&&(a==="form"?o==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof b=="function"&&(R.encType==null&&R.method==null||Yv||(Yv=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),R.target==null||Hv||(Hv=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):a==="input"||a==="button"?o==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):a!=="input"||R.type==="submit"||R.type==="image"||Vv?a!=="button"||R.type==null||R.type==="submit"||Vv?typeof b=="function"&&(R.name==null||l_||(l_=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),R.formEncType==null&&R.formMethod==null||Yv||(Yv=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),R.formTarget==null||Hv||(Hv=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Vv=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Vv=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(o==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof b=="function"){e.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof T=="function"&&(o==="formAction"?(a!=="input"&&An(e,a,"name",R.name,R,null),An(e,a,"formEncType",R.formEncType,R,null),An(e,a,"formMethod",R.formMethod,R,null),An(e,a,"formTarget",R.formTarget,R,null)):(An(e,a,"encType",R.encType,R,null),An(e,a,"method",R.method,R,null),An(e,a,"target",R.target,R,null)));if(b==null||typeof b=="symbol"||typeof b=="boolean"){e.removeAttribute(o);break}dt(b,o),b=Ni(""+b),e.setAttribute(o,b);break;case"onClick":b!=null&&(typeof b!="function"&&ca(o,b),e.onclick=hi);break;case"onScroll":b!=null&&(typeof b!="function"&&ca(o,b),Lt("scroll",e));break;case"onScrollEnd":b!=null&&(typeof b!="function"&&ca(o,b),Lt("scrollend",e));break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(o=b.__html,o!=null){if(R.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=o}}break;case"multiple":e.multiple=b&&typeof b!="function"&&typeof b!="symbol";break;case"muted":e.muted=b&&typeof b!="function"&&typeof b!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(b==null||typeof b=="function"||typeof b=="boolean"||typeof b=="symbol"){e.removeAttribute("xlink:href");break}dt(b,o),o=Ni(""+b),e.setAttributeNS(Sh,"xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":b!=null&&typeof b!="function"&&typeof b!="symbol"?(dt(b,o),e.setAttribute(o,""+b)):e.removeAttribute(o);break;case"inert":b!==""||Xv[o]||(Xv[o]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",o));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":b&&typeof b!="function"&&typeof b!="symbol"?e.setAttribute(o,""):e.removeAttribute(o);break;case"capture":case"download":b===!0?e.setAttribute(o,""):b!==!1&&b!=null&&typeof b!="function"&&typeof b!="symbol"?(dt(b,o),e.setAttribute(o,b)):e.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":b!=null&&typeof b!="function"&&typeof b!="symbol"&&!isNaN(b)&&1<=b?(dt(b,o),e.setAttribute(o,b)):e.removeAttribute(o);break;case"rowSpan":case"start":b==null||typeof b=="function"||typeof b=="symbol"||isNaN(b)?e.removeAttribute(o):(dt(b,o),e.setAttribute(o,b));break;case"popover":Lt("beforetoggle",e),Lt("toggle",e),yt(e,"popover",b);break;case"xlinkActuate":tn(e,Sh,"xlink:actuate",b);break;case"xlinkArcrole":tn(e,Sh,"xlink:arcrole",b);break;case"xlinkRole":tn(e,Sh,"xlink:role",b);break;case"xlinkShow":tn(e,Sh,"xlink:show",b);break;case"xlinkTitle":tn(e,Sh,"xlink:title",b);break;case"xlinkType":tn(e,Sh,"xlink:type",b);break;case"xmlBase":tn(e,pb,"xml:base",b);break;case"xmlLang":tn(e,pb,"xml:lang",b);break;case"xmlSpace":tn(e,pb,"xml:space",b);break;case"is":T!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),yt(e,"is",b);break;case"innerText":case"textContent":break;case"popoverTarget":c_||b==null||typeof b!="object"||(c_=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",b));default:!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N"?(o=Oh(o),yt(e,o,b)):Rs.hasOwnProperty(o)&&b!=null&&typeof b!="function"&&ca(o,b)}}function ef(e,a,o,b,R,T){switch(o){case"style":zs(e,b,T);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(o=b.__html,o!=null){if(R.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=o}}break;case"children":typeof b=="string"?Gs(e,b):(typeof b=="number"||typeof b=="bigint")&&Gs(e,""+b);break;case"onScroll":b!=null&&(typeof b!="function"&&ca(o,b),Lt("scroll",e));break;case"onScrollEnd":b!=null&&(typeof b!="function"&&ca(o,b),Lt("scrollend",e));break;case"onClick":b!=null&&(typeof b!="function"&&ca(o,b),e.onclick=hi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Rs.hasOwnProperty(o))b!=null&&typeof b!="function"&&ca(o,b);else e:{if(o[0]==="o"&&o[1]==="n"&&(R=o.endsWith("Capture"),a=o.slice(2,R?o.length-7:void 0),T=e[si]||null,T=T!=null?T[o]:null,typeof T=="function"&&e.removeEventListener(a,T,R),typeof b=="function")){typeof T!="function"&&T!==null&&(o in e?e[o]=null:e.hasAttribute(o)&&e.removeAttribute(o)),e.addEventListener(a,b,R);break e}o in e?e[o]=b:b===!0?e.setAttribute(o,""):yt(e,o,b)}}}function Kn(e,a,o){switch(ri(a,o),a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Lt("error",e),Lt("load",e);var b=!1,R=!1,T;for(T in o)if(o.hasOwnProperty(T)){var q=o[T];if(q!=null)switch(T){case"src":b=!0;break;case"srcSet":R=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:An(e,a,T,q,o,null)}}R&&An(e,a,"srcSet",o.srcSet,o,null),b&&An(e,a,"src",o.src,o,null);return;case"input":fe("input",o),Lt("invalid",e);var U=T=q=R=null,Q=null,ee=null;for(b in o)if(o.hasOwnProperty(b)){var Te=o[b];if(Te!=null)switch(b){case"name":R=Te;break;case"type":q=Te;break;case"checked":Q=Te;break;case"defaultChecked":ee=Te;break;case"value":T=Te;break;case"defaultValue":U=Te;break;case"children":case"dangerouslySetInnerHTML":if(Te!=null)throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:An(e,a,b,Te,o,null)}}yn(e,o),Wa(e,T,U,Q,ee,q,R,!1);return;case"select":fe("select",o),Lt("invalid",e),b=q=T=null;for(R in o)if(o.hasOwnProperty(R)&&(U=o[R],U!=null))switch(R){case"value":T=U;break;case"defaultValue":q=U;break;case"multiple":b=U;default:An(e,a,R,U,o,null)}Dr(e,o),a=T,o=q,e.multiple=!!b,a!=null?Ga(e,!!b,a,!1):o!=null&&Ga(e,!!b,o,!0);return;case"textarea":fe("textarea",o),Lt("invalid",e),T=R=b=null;for(q in o)if(o.hasOwnProperty(q)&&(U=o[q],U!=null))switch(q){case"value":b=U;break;case"defaultValue":R=U;break;case"children":T=U;break;case"dangerouslySetInnerHTML":if(U!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:An(e,a,q,U,o,null)}bn(e,o),Ir(e,b,R,T);return;case"option":Qa(e,o);for(Q in o)o.hasOwnProperty(Q)&&(b=o[Q],b!=null)&&(Q==="selected"?e.selected=b&&typeof b!="function"&&typeof b!="symbol":An(e,a,Q,b,o,null));return;case"dialog":Lt("beforetoggle",e),Lt("toggle",e),Lt("cancel",e),Lt("close",e);break;case"iframe":case"object":Lt("load",e);break;case"video":case"audio":for(b=0;b<Yg.length;b++)Lt(Yg[b],e);break;case"image":Lt("error",e),Lt("load",e);break;case"details":Lt("toggle",e);break;case"embed":case"source":case"link":Lt("error",e),Lt("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ee in o)if(o.hasOwnProperty(ee)&&(b=o[ee],b!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:An(e,a,ee,b,o,null)}return;default:if(wi(a)){for(Te in o)o.hasOwnProperty(Te)&&(b=o[Te],b!==void 0&&ef(e,a,Te,b,o,void 0));return}}for(U in o)o.hasOwnProperty(U)&&(b=o[U],b!=null&&An(e,a,U,b,o,null))}function Va(e,a,o,b){switch(ri(a,b),a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var R=null,T=null,q=null,U=null,Q=null,ee=null,Te=null;for(Ue in o){var Oe=o[Ue];if(o.hasOwnProperty(Ue)&&Oe!=null)switch(Ue){case"checked":break;case"value":break;case"defaultValue":Q=Oe;default:b.hasOwnProperty(Ue)||An(e,a,Ue,null,b,Oe)}}for(var ve in b){var Ue=b[ve];if(Oe=o[ve],b.hasOwnProperty(ve)&&(Ue!=null||Oe!=null))switch(ve){case"type":T=Ue;break;case"name":R=Ue;break;case"checked":ee=Ue;break;case"defaultChecked":Te=Ue;break;case"value":q=Ue;break;case"defaultValue":U=Ue;break;case"children":case"dangerouslySetInnerHTML":if(Ue!=null)throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Ue!==Oe&&An(e,a,ve,Ue,b,Oe)}}a=o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null,b=b.type==="checkbox"||b.type==="radio"?b.checked!=null:b.value!=null,a||!b||o_||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),o_=!0),!a||b||s_||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),s_=!0),Ta(e,q,U,Q,ee,Te,T,R);return;case"select":Ue=q=U=ve=null;for(T in o)if(Q=o[T],o.hasOwnProperty(T)&&Q!=null)switch(T){case"value":break;case"multiple":Ue=Q;default:b.hasOwnProperty(T)||An(e,a,T,null,b,Q)}for(R in b)if(T=b[R],Q=o[R],b.hasOwnProperty(R)&&(T!=null||Q!=null))switch(R){case"value":ve=T;break;case"defaultValue":U=T;break;case"multiple":q=T;default:T!==Q&&An(e,a,R,T,b,Q)}b=U,a=q,o=Ue,ve!=null?Ga(e,!!a,ve,!1):!!o!=!!a&&(b!=null?Ga(e,!!a,b,!0):Ga(e,!!a,a?[]:"",!1));return;case"textarea":Ue=ve=null;for(U in o)if(R=o[U],o.hasOwnProperty(U)&&R!=null&&!b.hasOwnProperty(U))switch(U){case"value":break;case"children":break;default:An(e,a,U,null,b,R)}for(q in b)if(R=b[q],T=o[q],b.hasOwnProperty(q)&&(R!=null||T!=null))switch(q){case"value":ve=R;break;case"defaultValue":Ue=R;break;case"children":break;case"dangerouslySetInnerHTML":if(R!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:R!==T&&An(e,a,q,R,b,T)}Di(e,ve,Ue);return;case"option":for(var lt in o)ve=o[lt],o.hasOwnProperty(lt)&&ve!=null&&!b.hasOwnProperty(lt)&&(lt==="selected"?e.selected=!1:An(e,a,lt,null,b,ve));for(Q in b)ve=b[Q],Ue=o[Q],b.hasOwnProperty(Q)&&ve!==Ue&&(ve!=null||Ue!=null)&&(Q==="selected"?e.selected=ve&&typeof ve!="function"&&typeof ve!="symbol":An(e,a,Q,ve,b,Ue));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ht in o)ve=o[ht],o.hasOwnProperty(ht)&&ve!=null&&!b.hasOwnProperty(ht)&&An(e,a,ht,null,b,ve);for(ee in b)if(ve=b[ee],Ue=o[ee],b.hasOwnProperty(ee)&&ve!==Ue&&(ve!=null||Ue!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(ve!=null)throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:An(e,a,ee,ve,b,Ue)}return;default:if(wi(a)){for(var Zn in o)ve=o[Zn],o.hasOwnProperty(Zn)&&ve!==void 0&&!b.hasOwnProperty(Zn)&&ef(e,a,Zn,void 0,b,ve);for(Te in b)ve=b[Te],Ue=o[Te],!b.hasOwnProperty(Te)||ve===Ue||ve===void 0&&Ue===void 0||ef(e,a,Te,ve,b,Ue);return}}for(var mn in o)ve=o[mn],o.hasOwnProperty(mn)&&ve!=null&&!b.hasOwnProperty(mn)&&An(e,a,mn,null,b,ve);for(Oe in b)ve=b[Oe],Ue=o[Oe],!b.hasOwnProperty(Oe)||ve===Ue||ve==null&&Ue==null||An(e,a,Oe,ve,b,Ue)}function ho(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Wo(e){var a={};e=e.style;for(var o=0;o<e.length;o++){var b=e[o];a[b]=e.getPropertyValue(b)}return a}function _s(e,a,o){if(a!=null&&typeof a!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var b,R=b="",T;for(T in a)if(a.hasOwnProperty(T)){var q=a[T];q!=null&&typeof q!="boolean"&&q!==""&&(T.indexOf("--")===0?(Fa(q,T),b+=R+T+":"+(""+q).trim()):typeof q!="number"||q===0||St.has(T)?(Fa(q,T),b+=R+T.replace($e,"-$1").toLowerCase().replace(Et,"-ms-")+":"+(""+q).trim()):b+=R+T.replace($e,"-$1").toLowerCase().replace(Et,"-ms-")+":"+q+"px",R=";")}b=b||null,a=e.getAttribute("style"),a!==b&&(b=Bu(b),Bu(a)!==b&&(o.style=Wo(e)))}}function xi(e,a,o,b,R,T){if(R.delete(o),e=e.getAttribute(o),e===null)switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":return}else if(b!=null)switch(typeof b){case"function":case"symbol":case"boolean":break;default:if(dt(b,a),e===""+b)return}la(a,e,b,T)}function Tp(e,a,o,b,R,T){if(R.delete(o),e=e.getAttribute(o),e===null){switch(typeof b){case"function":case"symbol":return}if(!b)return}else switch(typeof b){case"function":case"symbol":break;default:if(b)return}la(a,e,b,T)}function Dp(e,a,o,b,R,T){if(R.delete(o),e=e.getAttribute(o),e===null)switch(typeof b){case"undefined":case"function":case"symbol":return}else if(b!=null)switch(typeof b){case"function":case"symbol":break;default:if(dt(b,o),e===""+b)return}la(a,e,b,T)}function tf(e,a,o,b,R,T){if(R.delete(o),e=e.getAttribute(o),e===null)switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(b))return}else if(b!=null)switch(typeof b){case"function":case"symbol":case"boolean":break;default:if(!isNaN(b)&&(dt(b,a),e===""+b))return}la(a,e,b,T)}function zd(e,a,o,b,R,T){if(R.delete(o),e=e.getAttribute(o),e===null)switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":return}else if(b!=null)switch(typeof b){case"function":case"symbol":case"boolean":break;default:if(dt(b,a),o=Ni(""+b),e===o)return}la(a,e,b,T)}function Si(e,a,o,b){for(var R={},T=new Set,q=e.attributes,U=0;U<q.length;U++)switch(q[U].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:T.add(q[U].name)}if(wi(a)){for(var Q in o)if(o.hasOwnProperty(Q)){var ee=o[Q];if(ee!=null){if(Rs.hasOwnProperty(Q))typeof ee!="function"&&ca(Q,ee);else if(o.suppressHydrationWarning!==!0)switch(Q){case"children":typeof ee!="string"&&typeof ee!="number"||la("children",e.textContent,ee,R);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":q=e.innerHTML,ee=ee?ee.__html:void 0,ee!=null&&(ee=Rp(e,ee),la(Q,q,ee,R));continue;case"style":T.delete(Q),_s(e,ee,R);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":T.delete(Q.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",Q);continue;case"className":T.delete("class"),q=ot(e,"class",ee),la("className",q,ee,R);continue;default:b.context===oc&&a!=="svg"&&a!=="math"?T.delete(Q.toLowerCase()):T.delete(Q),q=ot(e,Q,ee),la(Q,q,ee,R)}}}}else for(ee in o)if(o.hasOwnProperty(ee)&&(Q=o[ee],Q!=null)){if(Rs.hasOwnProperty(ee))typeof Q!="function"&&ca(ee,Q);else if(o.suppressHydrationWarning!==!0)switch(ee){case"children":typeof Q!="string"&&typeof Q!="number"||la("children",e.textContent,Q,R);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":q=e.innerHTML,Q=Q?Q.__html:void 0,Q!=null&&(Q=Rp(e,Q),q!==Q&&(R[ee]={__html:q}));continue;case"className":xi(e,ee,"class",Q,T,R);continue;case"tabIndex":xi(e,ee,"tabindex",Q,T,R);continue;case"style":T.delete(ee),_s(e,Q,R);continue;case"multiple":T.delete(ee),la(ee,e.multiple,Q,R);continue;case"muted":T.delete(ee),la(ee,e.muted,Q,R);continue;case"autoFocus":T.delete("autofocus"),la(ee,e.autofocus,Q,R);continue;case"data":if(a!=="object"){T.delete(ee),q=e.getAttribute("data"),la(ee,q,Q,R);continue}case"src":case"href":if(!(Q!==""||a==="a"&&ee==="href"||a==="object"&&ee==="data")){console.error(ee==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',ee,ee);continue}zd(e,ee,ee,Q,T,R);continue;case"action":case"formAction":if(q=e.getAttribute(ee),typeof Q=="function"){T.delete(ee.toLowerCase()),ee==="formAction"?(T.delete("name"),T.delete("formenctype"),T.delete("formmethod"),T.delete("formtarget")):(T.delete("enctype"),T.delete("method"),T.delete("target"));continue}else if(q===PE){T.delete(ee.toLowerCase()),la(ee,"function",Q,R);continue}zd(e,ee,ee.toLowerCase(),Q,T,R);continue;case"xlinkHref":zd(e,ee,"xlink:href",Q,T,R);continue;case"contentEditable":Dp(e,ee,"contenteditable",Q,T,R);continue;case"spellCheck":Dp(e,ee,"spellcheck",Q,T,R);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Dp(e,ee,ee,Q,T,R);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":Tp(e,ee,ee.toLowerCase(),Q,T,R);continue;case"capture":case"download":e:{U=e;var Te=q=ee,Oe=R;if(T.delete(Te),U=U.getAttribute(Te),U===null)switch(typeof Q){case"undefined":case"function":case"symbol":break e;default:if(Q===!1)break e}else if(Q!=null)switch(typeof Q){case"function":case"symbol":break;case"boolean":if(Q===!0&&U==="")break e;break;default:if(dt(Q,q),U===""+Q)break e}la(q,U,Q,Oe)}continue;case"cols":case"rows":case"size":case"span":e:{if(U=e,Te=q=ee,Oe=R,T.delete(Te),U=U.getAttribute(Te),U===null)switch(typeof Q){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(Q)||1>Q)break e}else if(Q!=null)switch(typeof Q){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(Q)||1>Q)&&(dt(Q,q),U===""+Q))break e}la(q,U,Q,Oe)}continue;case"rowSpan":tf(e,ee,"rowspan",Q,T,R);continue;case"start":tf(e,ee,ee,Q,T,R);continue;case"xHeight":xi(e,ee,"x-height",Q,T,R);continue;case"xlinkActuate":xi(e,ee,"xlink:actuate",Q,T,R);continue;case"xlinkArcrole":xi(e,ee,"xlink:arcrole",Q,T,R);continue;case"xlinkRole":xi(e,ee,"xlink:role",Q,T,R);continue;case"xlinkShow":xi(e,ee,"xlink:show",Q,T,R);continue;case"xlinkTitle":xi(e,ee,"xlink:title",Q,T,R);continue;case"xlinkType":xi(e,ee,"xlink:type",Q,T,R);continue;case"xmlBase":xi(e,ee,"xml:base",Q,T,R);continue;case"xmlLang":xi(e,ee,"xml:lang",Q,T,R);continue;case"xmlSpace":xi(e,ee,"xml:space",Q,T,R);continue;case"inert":Q!==""||Xv[ee]||(Xv[ee]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",ee)),Tp(e,ee,ee,Q,T,R);continue;default:if(!(2<ee.length)||ee[0]!=="o"&&ee[0]!=="O"||ee[1]!=="n"&&ee[1]!=="N"){U=Oh(ee),q=!1,b.context===oc&&a!=="svg"&&a!=="math"?T.delete(U.toLowerCase()):(Te=ee.toLowerCase(),Te=Gu.hasOwnProperty(Te)&&Gu[Te]||null,Te!==null&&Te!==ee&&(q=!0,T.delete(Te)),T.delete(U));e:if(Te=e,Oe=U,U=Q,Xe(Oe))if(Te.hasAttribute(Oe))Te=Te.getAttribute(Oe),dt(U,Oe),U=Te===""+U?U:Te;else{switch(typeof U){case"function":case"symbol":break e;case"boolean":if(Te=Oe.toLowerCase().slice(0,5),Te!=="data-"&&Te!=="aria-")break e}U=U===void 0?void 0:null}else U=void 0;q||la(ee,U,Q,R)}}}return 0<T.size&&o.suppressHydrationWarning!==!0&&Gd(e,T,R),Object.keys(R).length===0?null:R}function xy(e,a){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+a+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+a+" "+e[e.length-1]}}function ii(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Sy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,a=0,o=performance.getEntriesByType("resource"),b=0;b<o.length;b++){var R=o[b],T=R.transferSize,q=R.initiatorType,U=R.duration;if(T&&U&&ii(q)){for(q=0,U=R.responseEnd,b+=1;b<o.length;b++){var Q=o[b],ee=Q.startTime;if(ee>U)break;var Te=Q.transferSize,Oe=Q.initiatorType;Te&&ii(Oe)&&(Q=Q.responseEnd,q+=Te*(Q<U?1:(U-ee)/(Q-ee)))}if(--b,a+=8*(T+q)/(R.duration/1e3),e++,10<e)break}}if(0<e)return a/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}function Pd(e){return e.nodeType===9?e:e.ownerDocument}function Cy(e){switch(e){case Zt:return Dm;case Ut:return $v;default:return oc}}function po(e,a){if(e===oc)switch(a){case"svg":return Dm;case"math":return $v;default:return oc}return e===Dm&&a==="foreignObject"?oc:e}function nf(e,a){return e==="textarea"||e==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}function L0(){var e=window.event;return e&&e.type==="popstate"?e===vb?!1:(vb=e,!0):(vb=null,!1)}function Es(){var e=window.event;return e&&e!==$g?e.type:null}function af(){var e=window.event;return e&&e!==$g?e.timeStamp:-1.1}function Ay(e){setTimeout(function(){throw e})}function Ry(e,a,o){switch(a){case"button":case"input":case"select":case"textarea":o.autoFocus&&e.focus();break;case"img":o.src?e.src=o.src:o.srcSet&&(e.srcset=o.srcSet)}}function Ty(){}function Ip(e,a,o,b){Va(e,a,o,b),e[si]=b}function Op(e){Gs(e,"")}function r1(e,a,o){e.nodeValue=o}function Dy(e){if(!e.__reactWarnedAboutChildrenConflict){var a=e[si]||null;if(a!==null){var o=Nn(e);o!==null&&(typeof a.children=="string"||typeof a.children=="number"?(e.__reactWarnedAboutChildrenConflict=!0,Be(o,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):a.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,Be(o,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Qo(e){return e==="head"}function Iy(e,a){e.removeChild(a)}function Oy(e,a){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(a)}function ql(e,a){var o=a,b=0;do{var R=o.nextSibling;if(e.removeChild(o),R&&R.nodeType===8)if(o=R.data,o===Zg||o===Zv){if(b===0){e.removeChild(R),Ul(a);return}b--}else if(o===Xg||o===zf||o===Ah||o===Tm||o===Ch)b++;else if(o===VE)go(e.ownerDocument.documentElement);else if(o===YE){o=e.ownerDocument.head,go(o);for(var T=o.firstChild;T;){var q=T.nextSibling,U=T.nodeName;T[_f]||U==="SCRIPT"||U==="STYLE"||U==="LINK"&&T.rel.toLowerCase()==="stylesheet"||o.removeChild(T),T=q}}else o===HE&&go(e.ownerDocument.body);o=R}while(o);Ul(a)}function Ud(e,a){var o=e;e=0;do{var b=o.nextSibling;if(o.nodeType===1?a?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(a?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),b&&b.nodeType===8)if(o=b.data,o===Zg){if(e===0)break;e--}else o!==Xg&&o!==zf&&o!==Ah&&o!==Tm||e++;o=b}while(o)}function wy(e){Ud(e,!0)}function Ny(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function Ly(e){e.nodeValue=""}function My(e){Ud(e,!1)}function ky(e,a){a=a[XE],a=a!=null&&a.hasOwnProperty("display")?a.display:null,e.style.display=a==null||typeof a=="boolean"?"":(""+a).trim()}function By(e,a){e.nodeValue=a}function rf(e){var a=e.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var o=a;switch(a=a.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":rf(o),ua(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}e.removeChild(o)}}function jy(e,a,o,b){for(;e.nodeType===1;){var R=o;if(e.nodeName.toLowerCase()!==a.toLowerCase()){if(!b&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(b){if(!e[_f])switch(a){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(T=e.getAttribute("rel"),T==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(T!==R.rel||e.getAttribute("href")!==(R.href==null||R.href===""?null:R.href)||e.getAttribute("crossorigin")!==(R.crossOrigin==null?null:R.crossOrigin)||e.getAttribute("title")!==(R.title==null?null:R.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(T=e.getAttribute("src"),(T!==(R.src==null?null:R.src)||e.getAttribute("type")!==(R.type==null?null:R.type)||e.getAttribute("crossorigin")!==(R.crossOrigin==null?null:R.crossOrigin))&&T&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(a==="input"&&e.type==="hidden"){dt(R.name,"name");var T=R.name==null?null:""+R.name;if(R.type==="hidden"&&e.getAttribute("name")===T)return e}else return e;if(e=Yi(e.nextSibling),e===null)break}return null}function Fy(e,a,o){if(a==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!o||(e=Yi(e.nextSibling),e===null))return null;return e}function wn(e,a){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Yi(e.nextSibling),e===null))return null;return e}function Vd(e){return e.data===zf||e.data===Ah}function M0(e){return e.data===Tm||e.data===zf&&e.ownerDocument.readyState!==d_}function qy(e,a){var o=e.ownerDocument;if(e.data===Ah)e._reactRetry=a;else if(e.data!==zf||o.readyState!==d_)a();else{var b=function(){a(),o.removeEventListener("DOMContentLoaded",b)};o.addEventListener("DOMContentLoaded",b),e._reactRetry=b}}function Yi(e){for(;e!=null;e=e.nextSibling){var a=e.nodeType;if(a===1||a===3)break;if(a===8){if(a=e.data,a===Xg||a===Tm||a===zf||a===Ah||a===Ch||a===mb||a===f_)break;if(a===Zg||a===Zv)return null}}return e}function Gy(e){if(e.nodeType===1){for(var a=e.nodeName.toLowerCase(),o={},b=e.attributes,R=0;R<b.length;R++){var T=b[R];o[ho(T.name)]=T.name.toLowerCase()==="style"?Wo(e):T.value}return{type:a,props:o}}return e.nodeType===8?e.data===Ch?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function zy(e,a,o){return o===null||o[UE]!==!0?(e.nodeValue===a?e=null:(a=Bu(a),e=Bu(e.nodeValue)===a?null:e.nodeValue),e):null}function uf(e){e=e.nextSibling;for(var a=0;e;){if(e.nodeType===8){var o=e.data;if(o===Zg||o===Zv){if(a===0)return Yi(e.nextSibling);a--}else o!==Xg&&o!==Tm&&o!==zf&&o!==Ah&&o!==Ch||a++}e=e.nextSibling}return null}function Gl(e){e=e.previousSibling;for(var a=0;e;){if(e.nodeType===8){var o=e.data;if(o===Xg||o===Tm||o===zf||o===Ah||o===Ch){if(a===0)return e;a--}else o!==Zg&&o!==Zv||a++}e=e.previousSibling}return null}function k0(e){Ul(e)}function wp(e){Ul(e)}function B0(e){Ul(e)}function mo(e,a,o,b,R){switch(R&&cl(e,b.ancestorInfo),a=Pd(o),e){case"html":if(e=a.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=a.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=a.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function xs(e,a,o,b){if(!o[vo]&&Nn(o)){var R=o.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",R,R,R)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(R=o.attributes;R.length;)o.removeAttributeNode(R[0]);Kn(o,e,a),o[ea]=b,o[si]=a}function go(e){for(var a=e.attributes;a.length;)e.removeAttributeNode(a[0]);ua(e)}function Np(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function j0(e,a,o){var b=Im;if(b&&typeof a=="string"&&a){var R=hn(a);R='link[rel="'+e+'"][href="'+R+'"]',typeof o=="string"&&(R+='[crossorigin="'+o+'"]'),v_.has(R)||(v_.add(R),e={rel:e,crossOrigin:o,href:a},b.querySelector(R)===null&&(a=b.createElement("link"),Kn(a,"link",e),Fn(a),b.head.appendChild(a)))}}function F0(e,a,o,b){var R=(R=Xi.current)?Np(R):null;if(!R)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(o=zl(o.href),a=Ra(R).hoistableStyles,b=a.get(o),b||(b={type:"style",instance:null,count:0,state:null},a.set(o,b)),b):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){e=zl(o.href);var T=Ra(R).hoistableStyles,q=T.get(e);if(!q&&(R=R.ownerDocument||R,q={type:"stylesheet",instance:null,count:0,state:{loading:Th,preload:null}},T.set(e,q),(T=R.querySelector(Yd(e)))&&!T._p&&(q.instance=T,q.state.loading=Jg|js),!Fs.has(e))){var U={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy};Fs.set(e,U),T||Py(R,e,U,q.state)}if(a&&b===null)throw o=`
316
+
317
+ - `+Hd(a)+`
318
+ + `+Hd(o),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+o);return q}if(a&&b!==null)throw o=`
319
+
320
+ - `+Hd(a)+`
321
+ + `+Hd(o),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+o);return null;case"script":return a=o.async,o=o.src,typeof o=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(o=Pl(o),a=Ra(R).hoistableScripts,b=a.get(o),b||(b={type:"script",instance:null,count:0,state:null},a.set(o,b)),b):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function Hd(e){var a=0,o="<link";return typeof e.rel=="string"?(a++,o+=' rel="'+e.rel+'"'):Zi.call(e,"rel")&&(a++,o+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(a++,o+=' href="'+e.href+'"'):Zi.call(e,"href")&&(a++,o+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(a++,o+=' precedence="'+e.precedence+'"'):Zi.call(e,"precedence")&&(a++,o+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>a&&(o+=" ..."),o+" />"}function zl(e){return'href="'+hn(e)+'"'}function Yd(e){return'link[rel="stylesheet"]['+e+"]"}function Lp(e){return Wt({},e,{"data-precedence":e.precedence,precedence:null})}function Py(e,a,o,b){e.querySelector('link[rel="preload"][as="style"]['+a+"]")?b.loading=Jg:(a=e.createElement("link"),b.preload=a,a.addEventListener("load",function(){return b.loading|=Jg}),a.addEventListener("error",function(){return b.loading|=g_}),Kn(a,"link",o),Fn(a),e.head.appendChild(a))}function Pl(e){return'[src="'+hn(e)+'"]'}function Xd(e){return"script[async]"+e}function Mp(e,a,o){if(a.count++,a.instance===null)switch(a.type){case"style":var b=e.querySelector('style[data-href~="'+hn(o.href)+'"]');if(b)return a.instance=b,Fn(b),b;var R=Wt({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return b=(e.ownerDocument||e).createElement("style"),Fn(b),Kn(b,"style",R),sf(b,o.precedence,e),a.instance=b;case"stylesheet":R=zl(o.href);var T=e.querySelector(Yd(R));if(T)return a.state.loading|=js,a.instance=T,Fn(T),T;b=Lp(o),(R=Fs.get(R))&&q0(b,R),T=(e.ownerDocument||e).createElement("link"),Fn(T);var q=T;return q._p=new Promise(function(U,Q){q.onload=U,q.onerror=Q}),Kn(T,"link",b),a.state.loading|=js,sf(T,o.precedence,e),a.instance=T;case"script":return T=Pl(o.src),(R=e.querySelector(Xd(T)))?(a.instance=R,Fn(R),R):(b=o,(R=Fs.get(T))&&(b=Wt({},o),G0(b,R)),e=e.ownerDocument||e,R=e.createElement("script"),Fn(R),Kn(R,"link",b),e.head.appendChild(R),a.instance=R);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+a.type+'". this is a bug in React.')}else a.type==="stylesheet"&&(a.state.loading&js)===Th&&(b=a.instance,a.state.loading|=js,sf(b,o.precedence,e));return a.instance}function sf(e,a,o){for(var b=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),R=b.length?b[b.length-1]:null,T=R,q=0;q<b.length;q++){var U=b[q];if(U.dataset.precedence===a)T=U;else if(T!==R)break}T?T.parentNode.insertBefore(e,T.nextSibling):(a=o.nodeType===9?o.head:o,a.insertBefore(e,a.firstChild))}function q0(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.title==null&&(e.title=a.title)}function G0(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.integrity==null&&(e.integrity=a.integrity)}function of(e,a,o){if(Jv===null){var b=new Map,R=Jv=new Map;R.set(o,b)}else R=Jv,b=R.get(o),b||(b=new Map,R.set(o,b));if(b.has(e))return b;for(b.set(e,null),o=o.getElementsByTagName(e),R=0;R<o.length;R++){var T=o[R];if(!(T[_f]||T[ea]||e==="link"&&T.getAttribute("rel")==="stylesheet")&&T.namespaceURI!==Zt){var q=T.getAttribute(a)||"";q=e+q;var U=b.get(q);U?U.push(T):b.set(q,[T])}}return b}function Uy(e,a,o){e=e.ownerDocument||e,e.head.insertBefore(o,a==="title"?e.querySelector("head > title"):null)}function Vy(e,a,o){var b=!o.ancestorInfo.containerTagInScope;if(o.context===Dm||a.itemProp!=null)return!b||a.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href===""){b&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError){if(a.rel==="stylesheet"&&typeof a.precedence=="string"){e=a.href;var R=a.onError,T=a.disabled;o=[],a.onLoad&&o.push("`onLoad`"),R&&o.push("`onError`"),T!=null&&o.push("`disabled`"),R=xy(o,"and"),R+=o.length===1?" prop":" props",T=o.length===1?"an "+R:"the "+R,o.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,T,R)}b&&(typeof a.rel!="string"||typeof a.href!="string"||a.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(a.onError||a.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}return a.rel==="stylesheet"?(e=a.precedence,a=a.disabled,typeof e!="string"&&b&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&a==null):!0;case"script":if(e=a.async&&typeof a.async!="function"&&typeof a.async!="symbol",!e||a.onLoad||a.onError||!a.src||typeof a.src!="string"){b&&(e?a.onLoad||a.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":b&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function sn(e){return!(e.type==="stylesheet"&&(e.state.loading&y_)===Th)}function z0(e,a,o,b){if(o.type==="stylesheet"&&(typeof b.media!="string"||matchMedia(b.media).matches!==!1)&&(o.state.loading&js)===Th){if(o.instance===null){var R=zl(b.href),T=a.querySelector(Yd(R));if(T){a=T._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(e.count++,e=lf.bind(e),a.then(e,e)),o.state.loading|=js,o.instance=T,Fn(T);return}T=a.ownerDocument||a,b=Lp(b),(R=Fs.get(R))&&q0(b,R),T=T.createElement("link"),Fn(T);var q=T;q._p=new Promise(function(U,Q){q.onload=U,q.onerror=Q}),Kn(T,"link",b),o.instance=T}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(o,a),(a=o.state.preload)&&(o.state.loading&y_)===Th&&(e.count++,o=lf.bind(e),a.addEventListener("load",o),a.addEventListener("error",o))}}function kp(e,a){return e.stylesheets&&e.count===0&&Zd(e,e.stylesheets),0<e.count||0<e.imgCount?function(o){var b=setTimeout(function(){if(e.stylesheets&&Zd(e,e.stylesheets),e.unsuspend){var T=e.unsuspend;e.unsuspend=null,T()}},JE+a);0<e.imgBytes&&_b===0&&(_b=125*Sy()*QE);var R=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zd(e,e.stylesheets),e.unsuspend)){var T=e.unsuspend;e.unsuspend=null,T()}},(e.imgBytes>_b?50:WE)+a);return e.unsuspend=o,function(){e.unsuspend=null,clearTimeout(b),clearTimeout(R)}}:null}function lf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Zd(e,a){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Wv=new Map,a.forEach(P0,e),Wv=null,lf.call(e))}function P0(e,a){if(!(a.state.loading&js)){var o=Wv.get(e);if(o)var b=o.get(Eb);else{o=new Map,Wv.set(e,o);for(var R=e.querySelectorAll("link[data-precedence],style[data-precedence]"),T=0;T<R.length;T++){var q=R[T];(q.nodeName==="LINK"||q.getAttribute("media")!=="not all")&&(o.set(q.dataset.precedence,q),b=q)}b&&o.set(Eb,b)}R=a.instance,q=R.getAttribute("data-precedence"),T=o.get(q)||b,T===b&&o.set(Eb,R),o.set(q,R),this.count++,b=lf.bind(this),R.addEventListener("load",b),R.addEventListener("error",b),T?T.parentNode.insertBefore(R,T.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(R,e.firstChild)),a.state.loading|=js}}function $d(e,a,o,b,R,T,q,U,Q){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Rh,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=yr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yr(0),this.hiddenUpdates=yr(null),this.identifierPrefix=b,this.onUncaughtError=R,this.onCaughtError=T,this.onRecoverableError=q,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Q,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],a=0;31>a;a++)e.push(new Set);this._debugRootType=o?"hydrateRoot()":"createRoot()"}function Jd(e,a,o,b,R,T,q,U,Q,ee,Te,Oe){return e=new $d(e,a,o,q,Q,ee,Te,Oe,U),a=xE,T===!0&&(a|=Ri|bo),a|=Qt,T=z(3,null,null,a),e.current=T,T.stateNode=e,a=ct(),mt(a),e.pooledCache=a,mt(a),T.memoizedState={element:b,isDehydrated:o,cache:a},cn(T),e}function Hy(e){return e?(e=Rf,e):Rf}function Bp(e,a,o,b,R,T){if(Ha&&typeof Ha.onScheduleFiberRoot=="function")try{Ha.onScheduleFiberRoot(Xl,b,o)}catch(q){Cs||(Cs=!0,console.error("React instrumentation encountered an error: %o",q))}R=Hy(R),b.context===null?b.context=R:b.pendingContext=R,Ss&&Ai!==null&&!x_&&(x_=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
322
+
323
+ Check the render method of %s.`,me(Ai)||"Unknown")),b=Pa(a),b.payload={element:o},T=T===void 0?null:T,T!==null&&(typeof T!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",T),b.callback=T),o=is(e,b,a),o!==null&&(Pt(a,"root.render()",null),Bt(o,e,a),lu(o,e,a))}function Yy(e,a){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<a?o:a}}function U0(e,a){Yy(e,a),(e=e.alternate)&&Yy(e,a)}function V0(e){if(e.tag===13||e.tag===31){var a=La(e,67108864);a!==null&&Bt(a,e,67108864),U0(e,67108864)}}function H0(e){if(e.tag===13||e.tag===31){var a=Mr(e);a=ra(a);var o=La(e,a);o!==null&&Bt(o,e,a),U0(e,a)}}function kn(){return Ai}function Y0(e,a,o,b){var R=Ze.T;Ze.T=null;var T=Rn.p;try{Rn.p=Ya,X0(e,a,o,b)}finally{Rn.p=T,Ze.T=R}}function xr(e,a,o,b){var R=Ze.T;Ze.T=null;var T=Rn.p;try{Rn.p=Cr,X0(e,a,o,b)}finally{Rn.p=T,Ze.T=R}}function X0(e,a,o,b){if(Kv){var R=jp(b);if(R===null)Mu(e,a,b,e1,o),qp(e,b);else if(Xy(R,e,a,o,b))b.stopPropagation();else if(qp(e,b),a&4&&-1<ex.indexOf(e)){for(;R!==null;){var T=Nn(R);if(T!==null)switch(T.tag){case 3:if(T=T.stateNode,T.current.memoizedState.isDehydrated){var q=Jt(T.pendingLanes);if(q!==0){var U=T;for(U.pendingLanes|=2,U.entangledLanes|=2;q;){var Q=1<<31-Sr(q);U.entanglements[1]|=Q,q&=~Q}Ei(T),(En&(Rr|Vu))===qr&&(Bv=ur()+J2,vs(0))}}break;case 31:case 13:U=La(T,2),U!==null&&Bt(U,T,2),Hi(),U0(T,2)}if(T=jp(b),T===null&&Mu(e,a,b,e1,o),T===R)break;R=T}R!==null&&b.stopPropagation()}else Mu(e,a,b,null,o)}}function jp(e){return e=Pr(e),Z0(e)}function Z0(e){if(e1=null,e=Jn(e),e!==null){var a=K(e);if(a===null)e=null;else{var o=a.tag;if(o===13){if(e=re(a),e!==null)return e;e=null}else if(o===31){if(e=te(a),e!==null)return e;e=null}else if(o===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;e=null}else a!==e&&(e=null)}}return e1=e,null}function Fp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return Ya;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Cr;case"message":switch(nh()){case rg:return Ya;case Zp:return Cr;case Yl:case Ky:return Br;case $p:return al;default:return Br}default:return Br}}function qp(e,a){switch(e){case"focusin":case"focusout":Pf=null;break;case"dragenter":case"dragleave":Uf=null;break;case"mouseover":case"mouseout":Vf=null;break;case"pointerover":case"pointerout":Qg.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kg.delete(a.pointerId)}}function Ko(e,a,o,b,R,T){return e===null||e.nativeEvent!==T?(e={blockedOn:a,domEventName:o,eventSystemFlags:b,nativeEvent:T,targetContainers:[R]},a!==null&&(a=Nn(a),a!==null&&V0(a)),e):(e.eventSystemFlags|=b,a=e.targetContainers,R!==null&&a.indexOf(R)===-1&&a.push(R),e)}function Xy(e,a,o,b,R){switch(a){case"focusin":return Pf=Ko(Pf,e,a,o,b,R),!0;case"dragenter":return Uf=Ko(Uf,e,a,o,b,R),!0;case"mouseover":return Vf=Ko(Vf,e,a,o,b,R),!0;case"pointerover":var T=R.pointerId;return Qg.set(T,Ko(Qg.get(T)||null,e,a,o,b,R)),!0;case"gotpointercapture":return T=R.pointerId,Kg.set(T,Ko(Kg.get(T)||null,e,a,o,b,R)),!0}return!1}function $0(e){var a=Jn(e.target);if(a!==null){var o=K(a);if(o!==null){if(a=o.tag,a===13){if(a=re(o),a!==null){e.blockedOn=a,tu(e.priority,function(){H0(o)});return}}else if(a===31){if(a=te(o),a!==null){e.blockedOn=a,tu(e.priority,function(){H0(o)});return}}else if(a===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function cf(e){if(e.blockedOn!==null)return!1;for(var a=e.targetContainers;0<a.length;){var o=jp(e.nativeEvent);if(o===null){o=e.nativeEvent;var b=new o.constructor(o.type,o),R=b;lg!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),lg=R,o.target.dispatchEvent(b),lg===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),lg=null}else return a=Nn(o),a!==null&&V0(a),e.blockedOn=o,!1;a.shift()}return!0}function Gp(e,a,o){cf(e)&&o.delete(a)}function i1(){xb=!1,Pf!==null&&cf(Pf)&&(Pf=null),Uf!==null&&cf(Uf)&&(Uf=null),Vf!==null&&cf(Vf)&&(Vf=null),Qg.forEach(Gp),Kg.forEach(Gp)}function Wd(e,a){e.blockedOn===a&&(e.blockedOn=null,xb||(xb=!0,Ca.unstable_scheduleCallback(Ca.unstable_NormalPriority,i1)))}function Zy(e){t1!==e&&(t1=e,Ca.unstable_scheduleCallback(Ca.unstable_NormalPriority,function(){t1===e&&(t1=null);for(var a=0;a<e.length;a+=3){var o=e[a],b=e[a+1],R=e[a+2];if(typeof b!="function"){if(Z0(b||o)===null)continue;break}var T=Nn(o);T!==null&&(e.splice(a,3),a-=3,o={pending:!0,data:R,method:o.method,action:b},Object.freeze(o),so(T,o,b,R))}}))}function Ul(e){function a(Q){return Wd(Q,e)}Pf!==null&&Wd(Pf,e),Uf!==null&&Wd(Uf,e),Vf!==null&&Wd(Vf,e),Qg.forEach(a),Kg.forEach(a);for(var o=0;o<Hf.length;o++){var b=Hf[o];b.blockedOn===e&&(b.blockedOn=null)}for(;0<Hf.length&&(o=Hf[0],o.blockedOn===null);)$0(o),o.blockedOn===null&&Hf.shift();if(o=(e.ownerDocument||e).$$reactFormReplay,o!=null)for(b=0;b<o.length;b+=3){var R=o[b],T=o[b+1],q=R[si]||null;if(typeof T=="function")q||Zy(o);else if(q){var U=null;if(T&&T.hasAttribute("formAction")){if(R=T,q=T[si]||null)U=q.formAction;else if(Z0(R)!==null)continue}else U=q.action;typeof U=="function"?o[b+1]=U:(o.splice(b,3),b-=3),Zy(o)}}}function $y(){function e(T){T.canIntercept&&T.info==="react-transition"&&T.intercept({handler:function(){return new Promise(function(q){return R=q})},focusReset:"manual",scroll:"manual"})}function a(){R!==null&&(R(),R=null),b||setTimeout(o,20)}function o(){if(!b&&!navigation.transition){var T=navigation.currentEntry;T&&T.url!=null&&navigation.navigate(T.url,{state:T.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var b=!1,R=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(o,100),function(){b=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),R!==null&&(R(),R=null)}}}function J0(e){this._internalRoot=e}function ju(e){this._internalRoot=e}function W0(e){e[vo]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Ca=requireScheduler(),Qd=React,u1=require$$2,Wt=Object.assign,Jy=Symbol.for("react.element"),hu=Symbol.for("react.transitional.element"),el=Symbol.for("react.portal"),ff=Symbol.for("react.fragment"),ui=Symbol.for("react.strict_mode"),Kd=Symbol.for("react.profiler"),zp=Symbol.for("react.consumer"),Fu=Symbol.for("react.context"),df=Symbol.for("react.forward_ref"),Vl=Symbol.for("react.suspense"),Ci=Symbol.for("react.suspense_list"),eh=Symbol.for("react.memo"),kr=Symbol.for("react.lazy"),qu=Symbol.for("react.activity"),s1=Symbol.for("react.memo_cache_sentinel"),Wy=Symbol.iterator,hf=Symbol.for("react.client.reference"),Ba=Array.isArray,Ze=Qd.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Rn=u1.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,o1=Object.freeze({pending:!1,data:null,method:null,action:null}),Q0=[],K0=[],yo=-1,tl=Re(null),pf=Re(null),Xi=Re(null),nl=Re(null),mf=0,Qy,Hl,gf,eg,th,Pp,Up;Ve.__reactDisabledLog=!0;var yf,tg,Vp=!1,ng=new(typeof WeakMap=="function"?WeakMap:Map),Ai=null,Ss=!1,Zi=Object.prototype.hasOwnProperty,ag=Ca.unstable_scheduleCallback,Hp=Ca.unstable_cancelCallback,Yp=Ca.unstable_shouldYield,Xp=Ca.unstable_requestPaint,ur=Ca.unstable_now,nh=Ca.unstable_getCurrentPriorityLevel,rg=Ca.unstable_ImmediatePriority,Zp=Ca.unstable_UserBlockingPriority,Yl=Ca.unstable_NormalPriority,Ky=Ca.unstable_LowPriority,$p=Ca.unstable_IdlePriority,ig=Ca.log,ev=Ca.unstable_setDisableYieldValue,Xl=null,Ha=null,Cs=!1,As=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Sr=Math.clz32?Math.clz32:on,ug=Math.log,Jp=Math.LN2,vf=256,ah=262144,bf=4194304,Ya=2,Cr=8,Br=32,al=268435456,pu=Math.random().toString(36).slice(2),ea="__reactFiber$"+pu,si="__reactProps$"+pu,vo="__reactContainer$"+pu,Zl="__reactEvents$"+pu,l1="__reactListeners$"+pu,tv="__reactHandles$"+pu,rh="__reactResources$"+pu,_f="__reactMarker$"+pu,nv=new Set,Rs={},Ef={},av={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},xf=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),sg={},Wp={},Qp=/[\n"\\]/g,og=!1,rv=!1,ih=!1,r=!1,f=!1,y=!1,A=["value","defaultValue"],L=!1,F=/["'&<>\n\t]|^\s|\s$/,X="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),ie="applet caption html table td th marquee object template foreignObject desc title".split(" "),_e=ie.concat(["button"]),qe="dd dt li option optgroup p rp rt".split(" "),Qe={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},tt={},ze={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},$e=/([A-Z])/g,Et=/^ms-/,wt=/^(?:webkit|moz|o)[A-Z]/,Bn=/^-ms-/,Me=/-(.)/g,Ie=/;\s*$/,Fe={},et={},Dt=!1,_n=!1,St=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),Ut="http://www.w3.org/1998/Math/MathML",Zt="http://www.w3.org/2000/svg",Cn=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Gu={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},iv={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Kp={},M_=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),k_=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Sb=!1,$i={},Cb=/^on./,B_=/^on[^A-Z]/,j_=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),F_=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),q_=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,lg=null,em=null,tm=null,c1=!1,rl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f1=!1;if(rl)try{var cg={};Object.defineProperty(cg,"passive",{get:function(){f1=!0}}),window.addEventListener("test",cg,cg),window.removeEventListener("test",cg,cg)}catch{f1=!1}var Sf=null,d1=null,uv=null,uh={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sv=Oa(uh),fg=Wt({},uh,{view:0,detail:0}),G_=Oa(fg),h1,p1,dg,ov=Wt({},fg,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ln,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==dg&&(dg&&e.type==="mousemove"?(h1=e.screenX-dg.screenX,p1=e.screenY-dg.screenY):p1=h1=0,dg=e),h1)},movementY:function(e){return"movementY"in e?e.movementY:p1}}),Ab=Oa(ov),z_=Wt({},ov,{dataTransfer:0}),P_=Oa(z_),U_=Wt({},fg,{relatedTarget:0}),m1=Oa(U_),V_=Wt({},uh,{animationName:0,elapsedTime:0,pseudoElement:0}),H_=Oa(V_),Y_=Wt({},uh,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),X_=Oa(Y_),Z_=Wt({},uh,{data:0}),Rb=Oa(Z_),$_=Rb,J_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},W_={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Q_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},K_=Wt({},fg,{key:function(e){if(e.key){var a=J_[e.key]||e.key;if(a!=="Unidentified")return a}return e.type==="keypress"?(e=hl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?W_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ln,charCode:function(e){return e.type==="keypress"?hl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?hl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),eE=Oa(K_),tE=Wt({},ov,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tb=Oa(tE),nE=Wt({},fg,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ln}),aE=Oa(nE),rE=Wt({},uh,{propertyName:0,elapsedTime:0,pseudoElement:0}),iE=Oa(rE),uE=Wt({},ov,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),sE=Oa(uE),oE=Wt({},uh,{newState:0,oldState:0}),lE=Oa(oE),cE=[9,13,27,32],Db=229,g1=rl&&"CompositionEvent"in window,hg=null;rl&&"documentMode"in document&&(hg=document.documentMode);var fE=rl&&"TextEvent"in window&&!hg,Ib=rl&&(!g1||hg&&8<hg&&11>=hg),Ob=32,wb=String.fromCharCode(Ob),Nb=!1,nm=!1,dE={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},pg=null,mg=null,Lb=!1;rl&&(Lb=wa("input")&&(!document.documentMode||9<document.documentMode));var Ji=typeof Object.is=="function"?Object.is:Cu,hE=rl&&"documentMode"in document&&11>=document.documentMode,am=null,v1=null,gg=null,b1=!1,rm={animationend:Xs("Animation","AnimationEnd"),animationiteration:Xs("Animation","AnimationIteration"),animationstart:Xs("Animation","AnimationStart"),transitionrun:Xs("Transition","TransitionRun"),transitionstart:Xs("Transition","TransitionStart"),transitioncancel:Xs("Transition","TransitionCancel"),transitionend:Xs("Transition","TransitionEnd")},_1={},Mb={};rl&&(Mb=document.createElement("div").style,"AnimationEvent"in window||(delete rm.animationend.animation,delete rm.animationiteration.animation,delete rm.animationstart.animation),"TransitionEvent"in window||delete rm.transitionend.transition);var kb=Zs("animationend"),Bb=Zs("animationiteration"),jb=Zs("animationstart"),pE=Zs("transitionrun"),mE=Zs("transitionstart"),gE=Zs("transitioncancel"),Fb=Zs("transitionend"),qb=new Map,E1="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");E1.push("scrollEnd");var Gb=0;if(typeof performance=="object"&&typeof performance.now=="function")var yE=performance,zb=function(){return yE.now()};else{var vE=Date;zb=function(){return vE.now()}}var S1=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(a))return}else if(typeof process$1=="object"&&typeof process$1.emit=="function"){process$1.emit("uncaughtException",e);return}console.error(e)},bE="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",lv=0,A1=1,R1=2,T1=3,cv="– ",fv="+ ",Pb="  ",ta=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",Ts="Components ⚛",pn="Scheduler ⚛",vn="Blocking",Cf=!1,$l={color:"primary",properties:null,tooltipText:"",track:Ts},Af={start:-0,end:-0,detail:{devtools:$l}},_E=["Changed Props",""],Ub="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",EE=["Changed Props",Ub],yg=1,Jl=2,Ds=[],im=0,D1=0,Rf={};Object.freeze(Rf);var Is=null,um=null,Mt=0,xE=1,Qt=2,Ri=8,bo=16,SE=32,Vb=!1;try{var Hb=Object.preventExtensions({})}catch{Vb=!0}var I1=new WeakMap,sm=[],om=0,dv=null,vg=0,Os=[],ws=0,sh=null,Wl=1,Ql="",oi=null,na=null,dn=!1,il=!1,zu=null,Tf=null,Ns=!1,O1=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),w1=Re(null),N1=Re(null),Yb={},hv=null,lm=null,cm=!1,CE=typeof AbortController<"u"?AbortController:function(){var e=[],a=this.signal={aborted:!1,addEventListener:function(o,b){e.push(b)}};this.abort=function(){a.aborted=!0,e.forEach(function(o){return o()})}},AE=Ca.unstable_scheduleCallback,RE=Ca.unstable_NormalPriority,sr={$$typeof:Fu,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},or=Ca.unstable_now,pv=console.createTask?console.createTask:function(){return null},bg=1,mv=2,jr=-0,Df=-0,Kl=-0,ec=null,Wi=-1.1,oh=-0,ma=-0,Ot=-1.1,Nt=-1.1,fa=null,Aa=!1,lh=-0,ul=-1.1,_g=null,If=0,L1=null,M1=null,ch=-1.1,Eg=null,fm=-1.1,gv=-1.1,tc=-0,nc=-1.1,Ls=-1.1,k1=0,xg=null,Xb=null,Zb=null,Of=-1.1,fh=null,wf=-1.1,yv=-1.1,$b=-0,Jb=-0,vv=0,TE=null,Wb=0,Sg=-1.1,bv=!1,_v=!1,Cg=null,B1=0,dh=0,dm=null,Qb=Ze.S;Ze.S=function(e,a){if(Z2=ur(),typeof a=="object"&&a!==null&&typeof a.then=="function"){if(0>nc&&0>Ls){nc=or();var o=af(),b=Es();(o!==wf||b!==fh)&&(wf=-1.1),Of=o,fh=b}eo(e,a)}Qb!==null&&Qb(e,a)};var hh=Re(null),_o={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Ag=[],Rg=[],Tg=[],Dg=[],Ig=[],Og=[],ph=new Set;_o.recordUnsafeLifecycleWarnings=function(e,a){ph.has(e.type)||(typeof a.componentWillMount=="function"&&a.componentWillMount.__suppressDeprecationWarning!==!0&&Ag.push(e),e.mode&Ri&&typeof a.UNSAFE_componentWillMount=="function"&&Rg.push(e),typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Tg.push(e),e.mode&Ri&&typeof a.UNSAFE_componentWillReceiveProps=="function"&&Dg.push(e),typeof a.componentWillUpdate=="function"&&a.componentWillUpdate.__suppressDeprecationWarning!==!0&&Ig.push(e),e.mode&Ri&&typeof a.UNSAFE_componentWillUpdate=="function"&&Og.push(e))},_o.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Ag.length&&(Ag.forEach(function(U){e.add(me(U)||"Component"),ph.add(U.type)}),Ag=[]);var a=new Set;0<Rg.length&&(Rg.forEach(function(U){a.add(me(U)||"Component"),ph.add(U.type)}),Rg=[]);var o=new Set;0<Tg.length&&(Tg.forEach(function(U){o.add(me(U)||"Component"),ph.add(U.type)}),Tg=[]);var b=new Set;0<Dg.length&&(Dg.forEach(function(U){b.add(me(U)||"Component"),ph.add(U.type)}),Dg=[]);var R=new Set;0<Ig.length&&(Ig.forEach(function(U){R.add(me(U)||"Component"),ph.add(U.type)}),Ig=[]);var T=new Set;if(0<Og.length&&(Og.forEach(function(U){T.add(me(U)||"Component"),ph.add(U.type)}),Og=[]),0<a.size){var q=k(a);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
324
+
325
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
326
+
327
+ Please update the following components: %s`,q)}0<b.size&&(q=k(b),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
328
+
329
+ * Move data fetching code or side effects to componentDidUpdate.
330
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
331
+
332
+ Please update the following components: %s`,q)),0<T.size&&(q=k(T),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
333
+
334
+ * Move data fetching code or side effects to componentDidUpdate.
335
+
336
+ Please update the following components: %s`,q)),0<e.size&&(q=k(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
337
+
338
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
339
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
340
+
341
+ Please update the following components: %s`,q)),0<o.size&&(q=k(o),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
342
+
343
+ * Move data fetching code or side effects to componentDidUpdate.
344
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
345
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
346
+
347
+ Please update the following components: %s`,q)),0<R.size&&(q=k(R),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
348
+
349
+ * Move data fetching code or side effects to componentDidUpdate.
350
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
351
+
352
+ Please update the following components: %s`,q))};var Ev=new Map,Kb=new Set;_o.recordLegacyContextWarning=function(e,a){for(var o=null,b=e;b!==null;)b.mode&Ri&&(o=b),b=b.return;o===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!Kb.has(e.type)&&(b=Ev.get(o),e.type.contextTypes!=null||e.type.childContextTypes!=null||a!==null&&typeof a.getChildContext=="function")&&(b===void 0&&(b=[],Ev.set(o,b)),b.push(e))},_o.flushLegacyContextWarning=function(){Ev.forEach(function(e){if(e.length!==0){var a=e[0],o=new Set;e.forEach(function(R){o.add(me(R)||"Component"),Kb.add(R.type)});var b=k(o);Be(a,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
353
+
354
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
355
+
356
+ Please update the following components: %s
357
+
358
+ Learn more about this warning here: https://react.dev/link/legacy-context`,b)})}})},_o.discardPendingWarnings=function(){Ag=[],Rg=[],Tg=[],Dg=[],Ig=[],Og=[],Ev=new Map};var e2={react_stack_bottom_frame:function(e,a,o){var b=Ss;Ss=!0;try{return e(a,o)}finally{Ss=b}}},j1=e2.react_stack_bottom_frame.bind(e2),t2={react_stack_bottom_frame:function(e){var a=Ss;Ss=!0;try{return e.render()}finally{Ss=a}}},n2=t2.react_stack_bottom_frame.bind(t2),a2={react_stack_bottom_frame:function(e,a){try{a.componentDidMount()}catch(o){Xt(e,e.return,o)}}},F1=a2.react_stack_bottom_frame.bind(a2),r2={react_stack_bottom_frame:function(e,a,o,b,R){try{a.componentDidUpdate(o,b,R)}catch(T){Xt(e,e.return,T)}}},i2=r2.react_stack_bottom_frame.bind(r2),u2={react_stack_bottom_frame:function(e,a){var o=a.stack;e.componentDidCatch(a.value,{componentStack:o!==null?o:""})}},DE=u2.react_stack_bottom_frame.bind(u2),s2={react_stack_bottom_frame:function(e,a,o){try{o.componentWillUnmount()}catch(b){Xt(e,a,b)}}},o2=s2.react_stack_bottom_frame.bind(s2),l2={react_stack_bottom_frame:function(e){var a=e.create;return e=e.inst,a=a(),e.destroy=a}},IE=l2.react_stack_bottom_frame.bind(l2),c2={react_stack_bottom_frame:function(e,a,o){try{o()}catch(b){Xt(e,a,b)}}},OE=c2.react_stack_bottom_frame.bind(c2),f2={react_stack_bottom_frame:function(e){var a=e._init;return a(e._payload)}},wE=f2.react_stack_bottom_frame.bind(f2),hm=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),q1=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),xv=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Sv={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},mh=null,wg=!1,pm=null,Ng=0,Kt=null,G1,d2=G1=!1,h2={},p2={},m2={};M=function(e,a,o){if(o!==null&&typeof o=="object"&&o._store&&(!o._store.validated&&o.key==null||o._store.validated===2)){if(typeof o._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");o._store.validated=1;var b=me(e),R=b||"null";if(!h2[R]){h2[R]=!0,o=o._owner,e=e._debugOwner;var T="";e&&typeof e.tag=="number"&&(R=me(e))&&(T=`
359
+
360
+ Check the render method of \``+R+"`."),T||b&&(T=`
361
+
362
+ Check the top-level render call using <`+b+">.");var q="";o!=null&&e!==o&&(b=null,typeof o.tag=="number"?b=me(o):typeof o.name=="string"&&(b=o.name),b&&(q=" It was passed a child from "+b+".")),Be(a,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',T,q)})}}};var gh=tr(!0),g2=tr(!1),y2=0,v2=1,b2=2,z1=3,Nf=!1,_2=!1,P1=null,U1=!1,mm=Re(null),Cv=Re(0),Pu=Re(null),Ms=null,gm=1,Lg=2,Xa=Re(0),Av=0,ks=1,Qi=2,Uu=4,Ki=8,ym,E2=new Set,x2=new Set,V1=new Set,S2=new Set,ac=0,Ft=null,Hn=null,lr=null,Rv=!1,vm=!1,yh=!1,Tv=0,Mg=0,rc=null,NE=0,LE=25,Ye=null,Bs=null,ic=-1,kg=!1,Bg={readContext:Se,use:ro,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useLayoutEffect:ha,useInsertionEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useSyncExternalStore:ha,useId:ha,useHostTransitionStatus:ha,useFormState:ha,useActionState:ha,useOptimistic:ha,useMemoCache:ha,useCacheRefresh:ha};Bg.useEffectEvent=ha;var H1=null,A2=null,Y1=null,R2=null,sl=null,Eo=null,Dv=null;H1={readContext:function(e){return Se(e)},use:ro,useCallback:function(e,a){return Ye="useCallback",jt(),ao(a),Hh(e,a)},useContext:function(e){return Ye="useContext",jt(),Se(e)},useEffect:function(e,a){return Ye="useEffect",jt(),ao(a),Tl(e,a)},useImperativeHandle:function(e,a,o){return Ye="useImperativeHandle",jt(),ao(o),ls(e,a,o)},useInsertionEffect:function(e,a){Ye="useInsertionEffect",jt(),ao(a),Po(4,Qi,e,a)},useLayoutEffect:function(e,a){return Ye="useLayoutEffect",jt(),ao(a),Qr(e,a)},useMemo:function(e,a){Ye="useMemo",jt(),ao(a);var o=Ze.H;Ze.H=sl;try{return Kr(e,a)}finally{Ze.H=o}},useReducer:function(e,a,o){Ye="useReducer",jt();var b=Ze.H;Ze.H=sl;try{return Lc(e,a,o)}finally{Ze.H=b}},useRef:function(e){return Ye="useRef",jt(),Vh(e)},useState:function(e){Ye="useState",jt();var a=Ze.H;Ze.H=sl;try{return Fo(e)}finally{Ze.H=a}},useDebugValue:function(){Ye="useDebugValue",jt()},useDeferredValue:function(e,a){return Ye="useDeferredValue",jt(),Fc(e,a)},useTransition:function(){return Ye="useTransition",jt(),Uo()},useSyncExternalStore:function(e,a,o){return Ye="useSyncExternalStore",jt(),Mc(e,a,o)},useId:function(){return Ye="useId",jt(),_d()},useFormState:function(e,a){return Ye="useFormState",jt(),ld(),Gi(e,a)},useActionState:function(e,a){return Ye="useActionState",jt(),Gi(e,a)},useOptimistic:function(e){return Ye="useOptimistic",jt(),Rl(e)},useHostTransitionStatus:oo,useMemoCache:Fi,useCacheRefresh:function(){return Ye="useCacheRefresh",jt(),Yh()},useEffectEvent:function(e){return Ye="useEffectEvent",jt(),vd(e)}},A2={readContext:function(e){return Se(e)},use:ro,useCallback:function(e,a){return Ye="useCallback",nt(),Hh(e,a)},useContext:function(e){return Ye="useContext",nt(),Se(e)},useEffect:function(e,a){return Ye="useEffect",nt(),Tl(e,a)},useImperativeHandle:function(e,a,o){return Ye="useImperativeHandle",nt(),ls(e,a,o)},useInsertionEffect:function(e,a){Ye="useInsertionEffect",nt(),Po(4,Qi,e,a)},useLayoutEffect:function(e,a){return Ye="useLayoutEffect",nt(),Qr(e,a)},useMemo:function(e,a){Ye="useMemo",nt();var o=Ze.H;Ze.H=sl;try{return Kr(e,a)}finally{Ze.H=o}},useReducer:function(e,a,o){Ye="useReducer",nt();var b=Ze.H;Ze.H=sl;try{return Lc(e,a,o)}finally{Ze.H=b}},useRef:function(e){return Ye="useRef",nt(),Vh(e)},useState:function(e){Ye="useState",nt();var a=Ze.H;Ze.H=sl;try{return Fo(e)}finally{Ze.H=a}},useDebugValue:function(){Ye="useDebugValue",nt()},useDeferredValue:function(e,a){return Ye="useDeferredValue",nt(),Fc(e,a)},useTransition:function(){return Ye="useTransition",nt(),Uo()},useSyncExternalStore:function(e,a,o){return Ye="useSyncExternalStore",nt(),Mc(e,a,o)},useId:function(){return Ye="useId",nt(),_d()},useActionState:function(e,a){return Ye="useActionState",nt(),Gi(e,a)},useFormState:function(e,a){return Ye="useFormState",nt(),ld(),Gi(e,a)},useOptimistic:function(e){return Ye="useOptimistic",nt(),Rl(e)},useHostTransitionStatus:oo,useMemoCache:Fi,useCacheRefresh:function(){return Ye="useCacheRefresh",nt(),Yh()},useEffectEvent:function(e){return Ye="useEffectEvent",nt(),vd(e)}},Y1={readContext:function(e){return Se(e)},use:ro,useCallback:function(e,a){return Ye="useCallback",nt(),Iu(e,a)},useContext:function(e){return Ye="useContext",nt(),Se(e)},useEffect:function(e,a){Ye="useEffect",nt(),Ua(2048,Ki,e,a)},useImperativeHandle:function(e,a,o){return Ye="useImperativeHandle",nt(),jc(e,a,o)},useInsertionEffect:function(e,a){return Ye="useInsertionEffect",nt(),Ua(4,Qi,e,a)},useLayoutEffect:function(e,a){return Ye="useLayoutEffect",nt(),Ua(4,Uu,e,a)},useMemo:function(e,a){Ye="useMemo",nt();var o=Ze.H;Ze.H=Eo;try{return Qn(e,a)}finally{Ze.H=o}},useReducer:function(e,a,o){Ye="useReducer",nt();var b=Ze.H;Ze.H=Eo;try{return Sl(e,a,o)}finally{Ze.H=b}},useRef:function(){return Ye="useRef",nt(),Dn().memoizedState},useState:function(){Ye="useState",nt();var e=Ze.H;Ze.H=Eo;try{return Sl(qi)}finally{Ze.H=e}},useDebugValue:function(){Ye="useDebugValue",nt()},useDeferredValue:function(e,a){return Ye="useDeferredValue",nt(),cs(e,a)},useTransition:function(){return Ye="useTransition",nt(),ay()},useSyncExternalStore:function(e,a,o){return Ye="useSyncExternalStore",nt(),Al(e,a,o)},useId:function(){return Ye="useId",nt(),Dn().memoizedState},useFormState:function(e){return Ye="useFormState",nt(),ld(),Go(e)},useActionState:function(e){return Ye="useActionState",nt(),Go(e)},useOptimistic:function(e,a){return Ye="useOptimistic",nt(),md(e,a)},useHostTransitionStatus:oo,useMemoCache:Fi,useCacheRefresh:function(){return Ye="useCacheRefresh",nt(),Dn().memoizedState},useEffectEvent:function(e){return Ye="useEffectEvent",nt(),Bc(e)}},R2={readContext:function(e){return Se(e)},use:ro,useCallback:function(e,a){return Ye="useCallback",nt(),Iu(e,a)},useContext:function(e){return Ye="useContext",nt(),Se(e)},useEffect:function(e,a){Ye="useEffect",nt(),Ua(2048,Ki,e,a)},useImperativeHandle:function(e,a,o){return Ye="useImperativeHandle",nt(),jc(e,a,o)},useInsertionEffect:function(e,a){return Ye="useInsertionEffect",nt(),Ua(4,Qi,e,a)},useLayoutEffect:function(e,a){return Ye="useLayoutEffect",nt(),Ua(4,Uu,e,a)},useMemo:function(e,a){Ye="useMemo",nt();var o=Ze.H;Ze.H=Dv;try{return Qn(e,a)}finally{Ze.H=o}},useReducer:function(e,a,o){Ye="useReducer",nt();var b=Ze.H;Ze.H=Dv;try{return Cl(e,a,o)}finally{Ze.H=b}},useRef:function(){return Ye="useRef",nt(),Dn().memoizedState},useState:function(){Ye="useState",nt();var e=Ze.H;Ze.H=Dv;try{return Cl(qi)}finally{Ze.H=e}},useDebugValue:function(){Ye="useDebugValue",nt()},useDeferredValue:function(e,a){return Ye="useDeferredValue",nt(),Ht(e,a)},useTransition:function(){return Ye="useTransition",nt(),oa()},useSyncExternalStore:function(e,a,o){return Ye="useSyncExternalStore",nt(),Al(e,a,o)},useId:function(){return Ye="useId",nt(),Dn().memoizedState},useFormState:function(e){return Ye="useFormState",nt(),ld(),zo(e)},useActionState:function(e){return Ye="useActionState",nt(),zo(e)},useOptimistic:function(e,a){return Ye="useOptimistic",nt(),gd(e,a)},useHostTransitionStatus:oo,useMemoCache:Fi,useCacheRefresh:function(){return Ye="useCacheRefresh",nt(),Dn().memoizedState},useEffectEvent:function(e){return Ye="useEffectEvent",nt(),Bc(e)}},sl={readContext:function(e){return I(),Se(e)},use:function(e){return C(),ro(e)},useCallback:function(e,a){return Ye="useCallback",C(),jt(),Hh(e,a)},useContext:function(e){return Ye="useContext",C(),jt(),Se(e)},useEffect:function(e,a){return Ye="useEffect",C(),jt(),Tl(e,a)},useImperativeHandle:function(e,a,o){return Ye="useImperativeHandle",C(),jt(),ls(e,a,o)},useInsertionEffect:function(e,a){Ye="useInsertionEffect",C(),jt(),Po(4,Qi,e,a)},useLayoutEffect:function(e,a){return Ye="useLayoutEffect",C(),jt(),Qr(e,a)},useMemo:function(e,a){Ye="useMemo",C(),jt();var o=Ze.H;Ze.H=sl;try{return Kr(e,a)}finally{Ze.H=o}},useReducer:function(e,a,o){Ye="useReducer",C(),jt();var b=Ze.H;Ze.H=sl;try{return Lc(e,a,o)}finally{Ze.H=b}},useRef:function(e){return Ye="useRef",C(),jt(),Vh(e)},useState:function(e){Ye="useState",C(),jt();var a=Ze.H;Ze.H=sl;try{return Fo(e)}finally{Ze.H=a}},useDebugValue:function(){Ye="useDebugValue",C(),jt()},useDeferredValue:function(e,a){return Ye="useDeferredValue",C(),jt(),Fc(e,a)},useTransition:function(){return Ye="useTransition",C(),jt(),Uo()},useSyncExternalStore:function(e,a,o){return Ye="useSyncExternalStore",C(),jt(),Mc(e,a,o)},useId:function(){return Ye="useId",C(),jt(),_d()},useFormState:function(e,a){return Ye="useFormState",C(),jt(),Gi(e,a)},useActionState:function(e,a){return Ye="useActionState",C(),jt(),Gi(e,a)},useOptimistic:function(e){return Ye="useOptimistic",C(),jt(),Rl(e)},useMemoCache:function(e){return C(),Fi(e)},useHostTransitionStatus:oo,useCacheRefresh:function(){return Ye="useCacheRefresh",jt(),Yh()},useEffectEvent:function(e){return Ye="useEffectEvent",C(),jt(),vd(e)}},Eo={readContext:function(e){return I(),Se(e)},use:function(e){return C(),ro(e)},useCallback:function(e,a){return Ye="useCallback",C(),nt(),Iu(e,a)},useContext:function(e){return Ye="useContext",C(),nt(),Se(e)},useEffect:function(e,a){Ye="useEffect",C(),nt(),Ua(2048,Ki,e,a)},useImperativeHandle:function(e,a,o){return Ye="useImperativeHandle",C(),nt(),jc(e,a,o)},useInsertionEffect:function(e,a){return Ye="useInsertionEffect",C(),nt(),Ua(4,Qi,e,a)},useLayoutEffect:function(e,a){return Ye="useLayoutEffect",C(),nt(),Ua(4,Uu,e,a)},useMemo:function(e,a){Ye="useMemo",C(),nt();var o=Ze.H;Ze.H=Eo;try{return Qn(e,a)}finally{Ze.H=o}},useReducer:function(e,a,o){Ye="useReducer",C(),nt();var b=Ze.H;Ze.H=Eo;try{return Sl(e,a,o)}finally{Ze.H=b}},useRef:function(){return Ye="useRef",C(),nt(),Dn().memoizedState},useState:function(){Ye="useState",C(),nt();var e=Ze.H;Ze.H=Eo;try{return Sl(qi)}finally{Ze.H=e}},useDebugValue:function(){Ye="useDebugValue",C(),nt()},useDeferredValue:function(e,a){return Ye="useDeferredValue",C(),nt(),cs(e,a)},useTransition:function(){return Ye="useTransition",C(),nt(),ay()},useSyncExternalStore:function(e,a,o){return Ye="useSyncExternalStore",C(),nt(),Al(e,a,o)},useId:function(){return Ye="useId",C(),nt(),Dn().memoizedState},useFormState:function(e){return Ye="useFormState",C(),nt(),Go(e)},useActionState:function(e){return Ye="useActionState",C(),nt(),Go(e)},useOptimistic:function(e,a){return Ye="useOptimistic",C(),nt(),md(e,a)},useMemoCache:function(e){return C(),Fi(e)},useHostTransitionStatus:oo,useCacheRefresh:function(){return Ye="useCacheRefresh",nt(),Dn().memoizedState},useEffectEvent:function(e){return Ye="useEffectEvent",C(),nt(),Bc(e)}},Dv={readContext:function(e){return I(),Se(e)},use:function(e){return C(),ro(e)},useCallback:function(e,a){return Ye="useCallback",C(),nt(),Iu(e,a)},useContext:function(e){return Ye="useContext",C(),nt(),Se(e)},useEffect:function(e,a){Ye="useEffect",C(),nt(),Ua(2048,Ki,e,a)},useImperativeHandle:function(e,a,o){return Ye="useImperativeHandle",C(),nt(),jc(e,a,o)},useInsertionEffect:function(e,a){return Ye="useInsertionEffect",C(),nt(),Ua(4,Qi,e,a)},useLayoutEffect:function(e,a){return Ye="useLayoutEffect",C(),nt(),Ua(4,Uu,e,a)},useMemo:function(e,a){Ye="useMemo",C(),nt();var o=Ze.H;Ze.H=Eo;try{return Qn(e,a)}finally{Ze.H=o}},useReducer:function(e,a,o){Ye="useReducer",C(),nt();var b=Ze.H;Ze.H=Eo;try{return Cl(e,a,o)}finally{Ze.H=b}},useRef:function(){return Ye="useRef",C(),nt(),Dn().memoizedState},useState:function(){Ye="useState",C(),nt();var e=Ze.H;Ze.H=Eo;try{return Cl(qi)}finally{Ze.H=e}},useDebugValue:function(){Ye="useDebugValue",C(),nt()},useDeferredValue:function(e,a){return Ye="useDeferredValue",C(),nt(),Ht(e,a)},useTransition:function(){return Ye="useTransition",C(),nt(),oa()},useSyncExternalStore:function(e,a,o){return Ye="useSyncExternalStore",C(),nt(),Al(e,a,o)},useId:function(){return Ye="useId",C(),nt(),Dn().memoizedState},useFormState:function(e){return Ye="useFormState",C(),nt(),zo(e)},useActionState:function(e){return Ye="useActionState",C(),nt(),zo(e)},useOptimistic:function(e,a){return Ye="useOptimistic",C(),nt(),gd(e,a)},useMemoCache:function(e){return C(),Fi(e)},useHostTransitionStatus:oo,useCacheRefresh:function(){return Ye="useCacheRefresh",nt(),Dn().memoizedState},useEffectEvent:function(e){return Ye="useEffectEvent",C(),nt(),Bc(e)}};var T2={},D2=new Set,I2=new Set,O2=new Set,w2=new Set,N2=new Set,L2=new Set,M2=new Set,k2=new Set,B2=new Set,j2=new Set;Object.freeze(T2);var X1={enqueueSetState:function(e,a,o){e=e._reactInternals;var b=Mr(e),R=Pa(b);R.payload=a,o!=null&&(wl(o),R.callback=o),a=is(e,R,b),a!==null&&(Pt(b,"this.setState()",e),Bt(a,e,b),lu(a,e,b))},enqueueReplaceState:function(e,a,o){e=e._reactInternals;var b=Mr(e),R=Pa(b);R.tag=v2,R.payload=a,o!=null&&(wl(o),R.callback=o),a=is(e,R,b),a!==null&&(Pt(b,"this.replaceState()",e),Bt(a,e,b),lu(a,e,b))},enqueueForceUpdate:function(e,a){e=e._reactInternals;var o=Mr(e),b=Pa(o);b.tag=b2,a!=null&&(wl(a),b.callback=a),a=is(e,b,o),a!==null&&(Pt(o,"this.forceUpdate()",e),Bt(a,e,o),lu(a,e,o))}},bm=null,Z1=null,$1=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),cr=!1,F2={},q2={},G2={},z2={},_m=!1,P2={},Iv={},J1={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},U2=!1,V2=null;V2=new Set;var uc=!1,fr=!1,W1=!1,H2=typeof WeakSet=="function"?WeakSet:Set,Fr=null,Em=null,xm=null,dr=null,mu=!1,xo=null,Ar=!1,jg=8192,ME={getCacheForType:function(e){var a=Se(sr),o=a.data.get(e);return o===void 0&&(o=e(),a.data.set(e,o)),o},cacheSignal:function(){return Se(sr).controller.signal},getOwner:function(){return Ai}};if(typeof Symbol=="function"&&Symbol.for){var Fg=Symbol.for;Fg("selector.component"),Fg("selector.has_pseudo_class"),Fg("selector.role"),Fg("selector.test_id"),Fg("selector.text")}var kE=[],BE=typeof WeakMap=="function"?WeakMap:Map,qr=0,Rr=2,Vu=4,sc=0,qg=1,vh=2,Ov=3,Lf=4,wv=6,Y2=5,En=qr,Yn=null,an=null,en=0,gu=0,Nv=1,bh=2,Gg=3,X2=4,Q1=5,zg=6,Lv=7,K1=8,_h=9,jn=gu,Hu=null,Mf=!1,Sm=!1,eb=!1,ol=0,ga=sc,kf=0,Bf=0,tb=0,yu=0,Eh=0,Pg=null,eu=null,Mv=!1,kv=0,Z2=0,$2=300,Bv=1/0,J2=500,Ug=null,ja=null,jf=null,jv=0,nb=1,ab=2,W2=3,Ff=0,Q2=1,K2=2,e_=3,t_=4,Fv=5,pr=0,qf=null,Cm=null,So=0,rb=0,ib=-0,ub=null,n_=null,a_=null,Co=jv,r_=null,jE=50,Vg=0,sb=null,ob=!1,qv=!1,FE=50,xh=0,Hg=null,Am=!1,Gv=null,i_=!1,u_=new Set,qE={},zv=null,Rm=null,lb=!1,cb=!1,Pv=!1,fb=!1,Gf=0,db={};(function(){for(var e=0;e<E1.length;e++){var a=E1[e],o=a.toLowerCase();a=a[0].toUpperCase()+a.slice(1),Mi(o,"on"+a)}Mi(kb,"onAnimationEnd"),Mi(Bb,"onAnimationIteration"),Mi(jb,"onAnimationStart"),Mi("dblclick","onDoubleClick"),Mi("focusin","onFocus"),Mi("focusout","onBlur"),Mi(pE,"onTransitionRun"),Mi(mE,"onTransitionStart"),Mi(gE,"onTransitionCancel"),Mi(Fb,"onTransitionEnd")})(),le("onMouseEnter",["mouseout","mouseover"]),le("onMouseLeave",["mouseout","mouseover"]),le("onPointerEnter",["pointerout","pointerover"]),le("onPointerLeave",["pointerout","pointerover"]),ae("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ae("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ae("onBeforeInput",["compositionend","keypress","textInput","paste"]),ae("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ae("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ae("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yg="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),hb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Yg)),Uv="_reactListening"+Math.random().toString(36).slice(2),s_=!1,o_=!1,Vv=!1,l_=!1,Hv=!1,Yv=!1,c_=!1,Xv={},GE=/\r\n?/g,zE=/\u0000|\uFFFD/g,Sh="http://www.w3.org/1999/xlink",pb="http://www.w3.org/XML/1998/namespace",PE="javascript:throw new Error('React form unexpectedly submitted.')",UE="suppressHydrationWarning",Ch="&",Zv="/&",Xg="$",Zg="/$",zf="$?",Ah="$~",Tm="$!",VE="html",HE="body",YE="head",mb="F!",f_="F",d_="loading",XE="style",oc=0,Dm=1,$v=2,gb=null,yb=null,h_={dialog:!0,webview:!0},vb=null,$g=void 0,p_=typeof setTimeout=="function"?setTimeout:void 0,ZE=typeof clearTimeout=="function"?clearTimeout:void 0,Rh=-1,m_=typeof Promise=="function"?Promise:void 0,$E=typeof queueMicrotask=="function"?queueMicrotask:typeof m_<"u"?function(e){return m_.resolve(null).then(e).catch(Ay)}:p_,bb=null,Th=0,Jg=1,g_=2,y_=3,js=4,Fs=new Map,v_=new Set,lc=Rn.d;Rn.d={f:function(){var e=lc.f(),a=Hi();return e||a},r:function(e){var a=Nn(e);a!==null&&a.tag===5&&a.type==="form"?qc(a):lc.r(e)},D:function(e){lc.D(e),j0("dns-prefetch",e,null)},C:function(e,a){lc.C(e,a),j0("preconnect",e,a)},L:function(e,a,o){lc.L(e,a,o);var b=Im;if(b&&e&&a){var R='link[rel="preload"][as="'+hn(a)+'"]';a==="image"&&o&&o.imageSrcSet?(R+='[imagesrcset="'+hn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(R+='[imagesizes="'+hn(o.imageSizes)+'"]')):R+='[href="'+hn(e)+'"]';var T=R;switch(a){case"style":T=zl(e);break;case"script":T=Pl(e)}Fs.has(T)||(e=Wt({rel:"preload",href:a==="image"&&o&&o.imageSrcSet?void 0:e,as:a},o),Fs.set(T,e),b.querySelector(R)!==null||a==="style"&&b.querySelector(Yd(T))||a==="script"&&b.querySelector(Xd(T))||(a=b.createElement("link"),Kn(a,"link",e),Fn(a),b.head.appendChild(a)))}},m:function(e,a){lc.m(e,a);var o=Im;if(o&&e){var b=a&&typeof a.as=="string"?a.as:"script",R='link[rel="modulepreload"][as="'+hn(b)+'"][href="'+hn(e)+'"]',T=R;switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":T=Pl(e)}if(!Fs.has(T)&&(e=Wt({rel:"modulepreload",href:e},a),Fs.set(T,e),o.querySelector(R)===null)){switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Xd(T)))return}b=o.createElement("link"),Kn(b,"link",e),Fn(b),o.head.appendChild(b)}}},X:function(e,a){lc.X(e,a);var o=Im;if(o&&e){var b=Ra(o).hoistableScripts,R=Pl(e),T=b.get(R);T||(T=o.querySelector(Xd(R)),T||(e=Wt({src:e,async:!0},a),(a=Fs.get(R))&&G0(e,a),T=o.createElement("script"),Fn(T),Kn(T,"link",e),o.head.appendChild(T)),T={type:"script",instance:T,count:1,state:null},b.set(R,T))}},S:function(e,a,o){lc.S(e,a,o);var b=Im;if(b&&e){var R=Ra(b).hoistableStyles,T=zl(e);a=a||"default";var q=R.get(T);if(!q){var U={loading:Th,preload:null};if(q=b.querySelector(Yd(T)))U.loading=Jg|js;else{e=Wt({rel:"stylesheet",href:e,"data-precedence":a},o),(o=Fs.get(T))&&q0(e,o);var Q=q=b.createElement("link");Fn(Q),Kn(Q,"link",e),Q._p=new Promise(function(ee,Te){Q.onload=ee,Q.onerror=Te}),Q.addEventListener("load",function(){U.loading|=Jg}),Q.addEventListener("error",function(){U.loading|=g_}),U.loading|=js,sf(q,a,b)}q={type:"stylesheet",instance:q,count:1,state:U},R.set(T,q)}}},M:function(e,a){lc.M(e,a);var o=Im;if(o&&e){var b=Ra(o).hoistableScripts,R=Pl(e),T=b.get(R);T||(T=o.querySelector(Xd(R)),T||(e=Wt({src:e,async:!0,type:"module"},a),(a=Fs.get(R))&&G0(e,a),T=o.createElement("script"),Fn(T),Kn(T,"link",e),o.head.appendChild(T)),T={type:"script",instance:T,count:1,state:null},b.set(R,T))}}};var Im=typeof document>"u"?null:document,Jv=null,JE=6e4,WE=800,QE=500,_b=0,Eb=null,Wv=null,Dh=o1,Wg={$$typeof:Fu,Provider:null,Consumer:null,_currentValue:Dh,_currentValue2:Dh,_threadCount:0},b_="%c%s%c",__="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",E_="",Qv=" ",KE=Function.prototype.bind,x_=!1,S_=null,C_=null,A_=null,R_=null,T_=null,D_=null,I_=null,O_=null,w_=null,N_=null;S_=function(e,a,o,b){a=t(e,a),a!==null&&(o=n(a.memoizedState,o,0,b),a.memoizedState=o,a.baseState=o,e.memoizedProps=Wt({},e.memoizedProps),o=La(e,2),o!==null&&Bt(o,e,2))},C_=function(e,a,o){a=t(e,a),a!==null&&(o=m(a.memoizedState,o,0),a.memoizedState=o,a.baseState=o,e.memoizedProps=Wt({},e.memoizedProps),o=La(e,2),o!==null&&Bt(o,e,2))},A_=function(e,a,o,b){a=t(e,a),a!==null&&(o=s(a.memoizedState,o,b),a.memoizedState=o,a.baseState=o,e.memoizedProps=Wt({},e.memoizedProps),o=La(e,2),o!==null&&Bt(o,e,2))},R_=function(e,a,o){e.pendingProps=n(e.memoizedProps,a,0,o),e.alternate&&(e.alternate.pendingProps=e.pendingProps),a=La(e,2),a!==null&&Bt(a,e,2)},T_=function(e,a){e.pendingProps=m(e.memoizedProps,a,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),a=La(e,2),a!==null&&Bt(a,e,2)},D_=function(e,a,o){e.pendingProps=s(e.memoizedProps,a,o),e.alternate&&(e.alternate.pendingProps=e.pendingProps),a=La(e,2),a!==null&&Bt(a,e,2)},I_=function(e){var a=La(e,2);a!==null&&Bt(a,e,2)},O_=function(e){var a=gr(),o=La(e,a);o!==null&&Bt(o,e,a)},w_=function(e){S=e},N_=function(e){v=e};var Kv=!0,e1=null,xb=!1,Pf=null,Uf=null,Vf=null,Qg=new Map,Kg=new Map,Hf=[],ex="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),t1=null;if(ju.prototype.render=J0.prototype.render=function(e){var a=this._internalRoot;if(a===null)throw Error("Cannot update an unmounted root.");var o=arguments;typeof o[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):J(o[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof o[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),o=e;var b=a.current,R=Mr(b);Bp(b,R,o,a,null,null)},ju.prototype.unmount=J0.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var a=e.containerInfo;(En&(Rr|Vu))!==qr&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Bp(e.current,2,null,e,null,null),Hi(),a[vo]=null}},ju.prototype.unstable_scheduleHydration=function(e){if(e){var a=Xu();e={blockedOn:null,target:e,priority:a};for(var o=0;o<Hf.length&&a!==0&&a<Hf[o].priority;o++);Hf.splice(o,0,e),o===0&&$0(e)}},(function(){var e=Qd.version;if(e!=="19.2.5")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
363
+ - react: `+(e+`
364
+ - react-dom: 19.2.5
365
+ Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Rn.findDOMNode=function(e){var a=e._reactInternals;if(a===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=se(a),e=e!==null?ge(e):null,e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:Ze,reconcilerVersion:"19.2.5"};return e.overrideHookState=S_,e.overrideHookStateDeletePath=C_,e.overrideHookStateRenamePath=A_,e.overrideProps=R_,e.overridePropsDeletePath=T_,e.overridePropsRenamePath=D_,e.scheduleUpdate=I_,e.scheduleRetry=O_,e.setErrorHandler=w_,e.setSuspenseHandler=N_,e.scheduleRefresh=H,e.scheduleRoot=V,e.setRefreshHandler=W,e.getCurrentFiber=kn,rt(e)})()&&rl&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var L_=window.location.protocol;/^(https?|file):$/.test(L_)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(L_==="file:"?`
366
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}reactDomClient_development.createRoot=function(e,a){if(!J(e))throw Error("Target container is not a DOM element.");W0(e);var o=!1,b="",R=$h,T=Jh,q=Um;return a!=null&&(a.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof a=="object"&&a!==null&&a.$$typeof===hu&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
367
+
368
+ let root = createRoot(domContainer);
369
+ root.render(<App />);`),a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(b=a.identifierPrefix),a.onUncaughtError!==void 0&&(R=a.onUncaughtError),a.onCaughtError!==void 0&&(T=a.onCaughtError),a.onRecoverableError!==void 0&&(q=a.onRecoverableError)),a=Jd(e,1,!1,null,null,o,b,null,R,T,q,$y),e[vo]=a.current,Jo(e),new J0(a)},reactDomClient_development.hydrateRoot=function(e,a,o){if(!J(e))throw Error("Target container is not a DOM element.");W0(e),a===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var b=!1,R="",T=$h,q=Jh,U=Um,Q=null;return o!=null&&(o.unstable_strictMode===!0&&(b=!0),o.identifierPrefix!==void 0&&(R=o.identifierPrefix),o.onUncaughtError!==void 0&&(T=o.onUncaughtError),o.onCaughtError!==void 0&&(q=o.onCaughtError),o.onRecoverableError!==void 0&&(U=o.onRecoverableError),o.formState!==void 0&&(Q=o.formState)),a=Jd(e,1,!0,a,o??null,b,R,Q,T,q,U,$y),a.context=Hy(null),o=a.current,b=Mr(o),b=ra(b),R=Pa(b),R.callback=null,is(o,R,b),Pt(b,"hydrateRoot()",null),o=b,a.current.lanes=o,xt(a,o),Ei(a),e[vo]=a.current,Jo(e),new ju(a)},reactDomClient_development.version="19.2.5",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),reactDomClient_development}var hasRequiredClient;function requireClient(){if(hasRequiredClient)return client.exports;hasRequiredClient=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process$1.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}}return process$1.env.NODE_ENV==="production"?(t(),client.exports=requireReactDomClient_production()):client.exports=requireReactDomClient_development(),client.exports}var clientExports=requireClient();const ReactDOM=getDefaultExportFromCjs$1(clientExports),CoordinatePopup=t=>{const{coords:n,onClear:s,overlay:d}=t;return jsxRuntimeExports.jsxs("div",{className:"panel panel-default top clearfix",style:{marginBottom:0},children:[jsxRuntimeExports.jsx("div",{className:"pull-right",children:jsxRuntimeExports.jsx("i",{style:{cursor:"pointer"},title:"Clear",className:"mdi mdi-close",onClick:m=>s(m,d)})}),jsxRuntimeExports.jsx("div",{className:"arrow"}),jsxRuntimeExports.jsx("div",{className:"panel-body",children:jsxRuntimeExports.jsx("div",{style:{minWidth:"125px",textAlign:"center"},children:`${n.x}, ${n.y}`})})]})};var throttle_1,hasRequiredThrottle;function requireThrottle(){if(hasRequiredThrottle)return throttle_1;hasRequiredThrottle=1;var t=requireDebounce(),n=requireIsObject(),s="Expected a function";function d(m,v,S){var C=!0,I=!0;if(typeof m!="function")throw new TypeError(s);return n(S)&&(C="leading"in S?!!S.leading:C,I="trailing"in S?!!S.trailing:I),t(m,v,{leading:C,maxWait:v,trailing:I})}return throttle_1=d,throttle_1}var throttleExports=requireThrottle();const throttle=getDefaultExportFromCjs$1(throttleExports),bundle$g={name:"coordinateDisplay",getReducer(){const t={values:{X:"0.0000",Y:"0.0000"},latLonInput:{X:"",Y:""},copyActive:!1,overlay:null,container:null,_shouldInitialize:!1};return(n=t,{type:s,payload:d})=>{switch(s){case"MAP_INITIALIZED":return Object.assign({},n,{_shouldInitialize:!0});case"COORD_COPY_ACTIVE":case"COORD_COPIED":case"COORD_INPUT_UPDATED":case"COORD_INPUT_INVALID":case"COORD_INITIALIZE_START":case"COORD_INITIALIZE_FINISH":case"COORD_POSITION_UPDATE":case"COORD_OVERLAY_RENDERED":case"COORD_OVERLAY_REMOVED":return Object.assign({},n,d);default:return n}}},doCoordsInitialize:()=>({dispatch:t,store:n})=>{t({type:"COORD_INITIALIZE_START",payload:{_shouldInitialize:!1}}),n.selectMap().on("pointermove",throttle(n.doCoordsPointerMove,200)),t({type:"COORD_INITIALIZE_FINISH"})},doCoordsPointerMove:t=>({dispatch:n,store:s})=>{t.preventDefault(),t.stopPropagation();const d=s.selectDisplayProjection(),m=t.coordinate,v=proj.transform(m,"EPSG:3857",d),S=Math.round(v[0]*1e4)/1e4,C=Math.round(v[1]*1e4)/1e4;n({type:"COORD_POSITION_UPDATE",payload:{values:{X:S,Y:C}}})},doRenderCoordsOverlay:(t,n)=>({dispatch:s,store:d})=>{const m=d.selectMap(),v=d.selectCoordsOverlay();v&&d.doClearCoordOverlay(v);const S=document.createElement("div"),C=new Overlay$1({element:S,positioning:"bottom-center",offset:[0,-10]});m.addOverlay(C),ReactDOM.render(jsxRuntimeExports.jsx(CoordinatePopup,{overlay:C,coords:n,map:m,onClear:d.doClearPopup}),S),C.setPosition(t),s({type:"COORD_OVERLAY_RENDERED",payload:{overlay:C}})},doClearPopup:(t,n)=>({store:s})=>{console.log(t),t.preventDefault(),t.stopPropagation(),s.doClearCoordOverlay(n)},doClearCoordOverlay:t=>({dispatch:n,store:s})=>{const d=s.selectMap();t.setPosition(void 0);const m=t.getElement();m.parentNode.removeChild(m),d.removeOverlay(t),n({type:"COORD_OVERLAY_REMOVED",payload:{overlay:null}})},doStartCoordCopy:()=>({dispatch:t,store:n})=>{const s=n.selectMap();n.doSetCursor("crosshair");const d=document.createElement("div");d.id="cm-copy-coords",document.body.appendChild(d),t({type:"COORD_COPY_ACTIVE",payload:{copyActive:!0,container:d,notification:{message:"Click on map to copy coordinates.",level:"info"}}}),s.once("singleclick",n.doCoordCopy)},doCoordCopy:t=>({dispatch:n,store:s})=>{t.preventDefault(),t.stopPropagation();const d=s.selectCoordsContainer(),m=s.selectDisplayProjection(),v=t.coordinate,S=proj.transform(v,"EPSG:3857",m),C=Math.round(S[0]*1e4)/1e4,I=Math.round(S[1]*1e4)/1e4,N=document.createElement("input");d.appendChild(N),N.value=`${C}, ${I}`,N.select(),document.execCommand("copy"),s.doStopCoordCopy(C,I)},doStopCoordCopy:(t,n)=>({dispatch:s,store:d})=>{const m=d.selectCoordsContainer(),v=`Copied ${t}, ${n} to the clipboard.`;d.doSetCursor("default"),s({type:"COORD_COPIED",payload:{copyActive:!1,container:null,notification:{title:"Coordinate Display",message:v,level:"info"}}}),m.remove(),d.doBasicToolbarDeactivate()},doUpdateCoordInput:(t,n)=>({dispatch:s,store:d})=>{t.preventDefault(),t.stopPropagation();const m=d.selectCoordsLatLonInput();s({type:"COORD_INPUT_UPDATED",payload:{latLonInput:{...m,[`${n}`]:t.currentTarget.value}}})},doCoordZoomTo:()=>({dispatch:t,store:n})=>{const s=n.selectCoordsLatLonInput(),d=n.selectDisplayProjection(),m=Number(s.X),v=Number(s.Y);if(isNaN(m)||isNaN(v))t({type:"COORD_INPUT_INVALID",payload:{notification:{title:"Coordinate Display",message:"Enter valid number.",level:"danger"}}});else{const S=proj.transform([m,v],d,"EPSG:3857");n.doRenderCoordsOverlay(S,{x:m,y:v}),n.doZoomToLocation(S,13),n.doBasicToolbarDeactivate()}},selectCoordsValues:t=>t.coordinateDisplay.values,selectCoordsOverlay:t=>t.coordinateDisplay.overlay,selectCoordsContainer:t=>t.coordinateDisplay.container,selectCoordsCopyActive:t=>t.coordinateDisplay.copyActive,selectCoordsLatLonInput:t=>t.coordinateDisplay.latLonInput,reactCoordinateDisplayShouldInitialize:t=>{if(t.coordinateDisplay._shouldInitialize)return{actionCreator:"doCoordsInitialize"}}},plugin$k={pluginName:"PositionText",enabled:!0,bundle:bundle$g,components:[{component:CoordinateDisplay,region:"lower-right-toolbar",sortOrder:10},{component:CoordinateInteraction,region:"lower-right-toolbar",sortOrder:20}]};class DrawToolItem extends React.Component{constructor(n){super(n),this.toggleVisible=this.toggleVisible.bind(this),this.renderTextContent=this.renderTextContent.bind(this),this.renderVisibilityIcon=this.renderVisibilityIcon.bind(this)}toggleVisible(n){n.preventDefault(),n.stopPropagation();const{onToggleVisibility:s}=this.props;s()}renderTextContent(){const{liveDangerously:n,text:s}=this.props;return n?jsxRuntimeExports.jsx("span",{dangerouslySetInnerHTML:{__html:s}}):s}renderVisibilityIcon(){const{visible:n}=this.props,s=classnames({"pull-right":!0}),d=classnames({mdi:!0,"mdi-eye":n,"text-primary":n,"mdi-eye-off":!n});return jsxRuntimeExports.jsx("div",{onClick:this.toggleVisible,className:s,style:{position:"relative",right:"-20px"},title:"Show/Hide",children:jsxRuntimeExports.jsx("i",{className:d})})}render(){const{active:n,passProps:s,onClick:d,iconClass:m}=this.props,v=classnames({active:n});return jsxRuntimeExports.jsx("li",{className:v,...s,onClick:d,style:{paddingRight:"20px"},children:jsxRuntimeExports.jsxs("span",{children:[this.renderVisibilityIcon(),jsxRuntimeExports.jsx("i",{className:m}),this.renderTextContent()]})})}}let DrawButton$1=class extends React.Component{constructor(n){super(n),this.state={mode:null},this.updateMode=this.updateMode.bind(this),this.handleDeactivate=this.handleDeactivate.bind(this),this.removeInteractions=this.removeInteractions.bind(this)}handleDeactivate(){this.setState({mode:null},this.removeInteractions)}addInteractions(){this.removeInteractions();const{doDrawPointsAddInteractions:n,doDrawLinesAddInteractions:s,doDrawPolygonsAddInteractions:d,doDrawLabelsAddInteractions:m,doDrawModifyAddInteractions:v}=this.props,{mode:S}=this.state;switch(S){case"Point":return n();case"LineString":return s();case"Polygon":return d();case"Labels":return m();case"Modify":return v();default:return}}removeInteractions(){const{doDrawPointsRemoveInteractions:n,doDrawLinesRemoveInteractions:s,doDrawPolygonsRemoveInteractions:d,doDrawLabelsRemoveInteractions:m,doDrawModifyRemoveInteractions:v}=this.props;n(),s(),d(),m(),v()}updateMode(n){const s=n.currentTarget.dataset.mode;this.setState({mode:s},this.addInteractions)}render(){const{drawPointsVisible:n,drawPointsActive:s,doDrawPointsToggleVisible:d,drawLinesVisible:m,drawLinesActive:v,doDrawLinesToggleVisible:S,drawPolygonsVisible:C,drawPolygonsActive:I,doDrawPolygonsToggleVisible:N,drawLabelsActive:M,drawModifyActive:k,doDrawSaveDownload:z}=this.props;return jsxRuntimeExports.jsx(BasicToolbarButton,{enabled:!0,iconClass:"mdi mdi-pencil",title:"Draw Tools",onDeactivate:this.handleDeactivate,children:jsxRuntimeExports.jsxs(BasicToolbarMenu,{children:[jsxRuntimeExports.jsx(BasicToolbarMenuItem,{active:k,iconClass:"ms ms-draw icon-inline",title:"Modify Draw Features",text:"Modify Draw Features",onClick:this.updateMode,passProps:{"data-mode":"Modify"}}),jsxRuntimeExports.jsx(BasicToolbarMenuItem,{active:M,iconClass:"ms ms-label-o icon-inline",title:"Add / Edit Labels",text:"Add / Edit Labels",onClick:this.updateMode,passProps:{"data-mode":"Labels"}}),jsxRuntimeExports.jsx(BasicToolbarMenuDivider,{}),jsxRuntimeExports.jsx(DrawToolItem,{active:s,visible:n,iconClass:"ms ms-draw-point icon-inline",title:"Draw Points",text:"Draw Points",onClick:this.updateMode,passProps:{"data-mode":"Point"},onToggleVisibility:d}),jsxRuntimeExports.jsx(DrawToolItem,{active:v,visible:m,iconClass:"ms ms-draw-line icon-inline",title:"Draw Lines",text:"Draw Lines",onClick:this.updateMode,passProps:{"data-mode":"LineString"},onToggleVisibility:S}),jsxRuntimeExports.jsx(DrawToolItem,{active:I,visible:C,iconClass:"ms ms-draw-polygon icon-inline",title:"Draw Polygons",text:"Draw Polygons",onClick:this.updateMode,passProps:{"data-mode":"Polygon"},onToggleVisibility:N}),jsxRuntimeExports.jsx(BasicToolbarMenuDivider,{}),jsxRuntimeExports.jsx(BasicToolbarMenuItem,{active:!1,iconClass:"mdi mdi-download icon-inline",title:"Download Draw Layers as GeoJSON",text:"Download Draw Layers",onClick:z,passProps:{}})]})})}};const DrawButton=connect("selectDrawPointsVisible","selectDrawPointsActive","doDrawPointsToggleVisible","doDrawPointsAddInteractions","doDrawPointsRemoveInteractions","selectDrawLinesVisible","selectDrawLinesActive","doDrawLinesToggleVisible","doDrawLinesAddInteractions","doDrawLinesRemoveInteractions","selectDrawPolygonsVisible","selectDrawPolygonsActive","doDrawPolygonsToggleVisible","doDrawPolygonsAddInteractions","doDrawPolygonsRemoveInteractions","selectDrawLabelsActive","doDrawLabelsAddInteractions","doDrawLabelsRemoveInteractions","selectDrawModifyActive","doDrawModifyAddInteractions","doDrawModifyRemoveInteractions","doDrawSave","doDrawSaveDownload",DrawButton$1),styles=t=>{const n="rgba(245, 66, 233, 1)",s="rgba(245, 66, 233, 0.6)",d="#ffffff";return{Point:v=>{const S=v.get("label")||"";return new Style({image:new Circle({radius:7,fill:new Fill({color:n}),stroke:new Stroke({color:d,width:3})}),text:new Text({placement:"point",font:"14px sans-serif",weight:"bold",text:S,textAlign:"left",textBaseline:"bottom",offsetX:4,offsetY:-4,overflow:!0,stroke:new Stroke({color:d,width:3})}),fill:new Fill({color:n}),stroke:new Stroke({color:d,width:3})})},LineString:v=>{const S=v.get("label")||"";return[new Style({stroke:new Stroke({color:d,width:4})}),new Style({text:new Text({font:"14px sans-serif",weight:"bold",text:S,textAlign:"center",textBaseline:"middle",placement:"line",overflow:!0,stroke:new Stroke({color:d,width:3})}),stroke:new Stroke({color:n,width:2})})]},Polygon:v=>{const S=v.get("label")||"";return new Style({text:new Text({placement:"point",font:"14px sans-serif",weight:"bold",text:S,textAlign:"center",textBaseline:"middle",overflow:!0,stroke:new Stroke({color:d,width:3})}),fill:new Fill({color:s}),stroke:new Stroke({color:d,width:3})})}}[t]},geoJSON$3=new GeoJSON,createDrawBundle=t=>{const s=Object.assign({},{name:"draw",type:"Point",active:!1,visible:!0},t),d=s.name.charAt(0).toUpperCase()+s.name.slice(1),m=s.name.toUpperCase(),v={INITIALIZE_START:`${m}_INITIALIZE_START`,INITIALIZE_FINISH:`${m}_INITIALIZE_FINISH`,SHOW:`${m}_SHOW`,HIDE:`${m}_HIDE`,ACTIVATE:`${m}_ACTIVATE`,DEACTIVATE:`${m}_DEACTIVATE`},S=`do${d}Initialize`,C=`do${d}AddLayer`,I=`do${d}RemoveLayer`,N=`do${d}AddInteractions`,M=`do${d}RemoveInteractions`,k=`do${d}ToggleVisible`,z=`do${d}ToggleInteractions`,V=`select${d}Layer`,H=`select${d}DrawInteraction`,W=`select${d}InterselectInteractions`,J=`select${d}Active`,K=`select${d}Visible`,re=`react${d}ShouldInitialize`;return{name:s.name,getReducer(){const te={active:s.active,visible:s.visible,layer:null,drawInteraction:null,shouldInitialize:!1};return(ue=te,{type:se,payload:ge})=>{switch(se){case v.INITIALIZE_START:case v.INITIALIZE_FINISH:case v.SHOW:case v.HIDE:case v.ACTIVATE:case v.DEACTIVATE:return Object.assign({},ue,ge);case"DRAW_SAVE_INITIALIZE_FINISHED":return Object.assign({},ue,{shouldInitialize:!0});default:return ue}}},[S]:()=>({dispatch:te,store:ue})=>{te({type:v.INITIALIZE_START,payload:{shouldInitialize:!1}});const se=`selectDrawSaveCache${s.type}`,ge=ue[se](),pe=new VectorSrc;if(ge&&ge.features&&ge.features.length){const me=geoJSON$3.readFeaturesFromObject(ge,{featureProjection:ue.selectMapProjection(),dataProjection:ue.selectGeoProjection()});pe.addFeatures(me)}pe.on("change",debounce(ue.doDrawSave,300));const Ee=new Vector({source:pe,zIndex:9e4,style:styles(s.type)}),ce=new Draw({source:pe,type:s.type});s.visible&&ue.selectMap().addLayer(Ee),te({type:v.INITIALIZE_FINISH,payload:{layer:Ee,drawInteraction:ce}})},[C]:()=>({dispatch:te,store:ue})=>{const se=ue.selectMap(),ge=ue[V]();se.addLayer(ge),te({type:v.SHOW,payload:{visible:!0}})},[I]:()=>({dispatch:te,store:ue})=>{const se=ue.selectMap(),ge=ue[V]();se.removeLayer(ge),te({type:v.HIDE,payload:{visible:!1}})},[k]:()=>({dispatch:te,store:ue})=>{ue[K]()?ue[I]():ue[C]()},[N]:()=>({dispatch:te,store:ue})=>{ue.doSetCursor("crosshair");const se=ue.selectMap();ue[W]().forEach(pe=>{se.addInteraction(pe)}),te({type:v.ACTIVATE,payload:{active:!0}})},[M]:()=>({dispatch:te,store:ue})=>{ue.doSetCursor();const se=ue.selectMap();ue[W]().forEach(pe=>{se.removeInteraction(pe)}),te({type:v.DEACTIVATE,payload:{active:!1}})},[z]:()=>({store:te})=>{te.selectActive()?te[M]():te[N]()},[J]:te=>te[s.name].active,[K]:te=>te[s.name].visible,[V]:te=>te[s.name].layer,[H]:te=>te[s.name].drawInteraction,[W]:reduxBundler.createSelector(H,te=>[te]),[re]:te=>{if(te[s.name].shouldInitialize)return{actionCreator:S}}}},drawLabelBundle={name:"drawLabels",getReducer:()=>{const t={active:!1,select:null,shouldInitialize:!1};return(n=t,{type:s,payload:d})=>{switch(s.indexOf("DRAW")!==-1&&console.log(s),s){case"DRAW_LABELS_INITIALIZE_START":case"DRAW_LABELS_INITIALIZE_FINISH":case"DRAW_LABELS_ACTIVATE":case"DRAW_LABELS_DEACTIVATE":return Object.assign({},n,d);case"DRAWPOINTS_INITIALIZE_FINISH":case"DRAWLINES_INITIALIZE_FINISH":case"DRAWPOLYGONS_INITIALIZE_FINISH":return Object.assign({},n,{shouldInitialize:!0});default:return n}}},doDrawLabelsInitialize:()=>({dispatch:t,store:n})=>{t({type:"DRAW_LABELS_INITIALIZE_START",payload:{shouldInitialize:!1}});const s=n.selectDrawLabelsChildLayers();if(!s)return null;const d=new Select$1({layers:s});d.on("select",n.doDrawLabelsHandleSelect),t({type:"DRAW_LABELS_INITIALIZE_FINISH",payload:{select:d}})},doDrawLabelsAddInteractions:()=>({dispatch:t,store:n})=>{n.doSetCursor("pointer");const s=n.selectMap(),d=n.selectDrawLabelsInteraction();s.addInteraction(d),t({type:"DRAW_LABELS_ACTIVATE",payload:{active:!0}})},doDrawLabelsRemoveInteractions:()=>({dispatch:t,store:n})=>{n.doSetCursor();const s=n.selectMap(),d=n.selectDrawLabelsInteraction();s.removeInteraction(d),t({type:"DRAW_LABELS_DEACTIVATE",payload:{active:!1}})},doDrawLabelsHandleSelect:t=>({store:n})=>{const s=t.selected[0],d=s.get("label")||"",m=window.prompt("Label the Draw Feature",d);s.set("label",m),n.selectDrawLabelsInteraction().getFeatures().clear()},selectDrawLabelsChildLayers:reduxBundler.createSelector("selectDrawPointsLayer","selectDrawLinesLayer","selectDrawPolygonsLayer",(t,n,s)=>!t||!n||!s?null:[t,n,s]),selectDrawLabelsActive:t=>t.drawLabels.active,selectDrawLabelsInteraction:t=>t.drawLabels.select,reactDrawLabelsShouldInitialize:t=>{if(t.drawLabels.shouldInitialize)return{actionCreator:"doDrawLabelsInitialize"}}},drawModifyBundle={name:"drawModify",getReducer:()=>{const t={active:!1,select:null,modify:null,shouldInitialize:!1};return(n=t,{type:s,payload:d})=>{switch(s){case"DRAW_MODIFY_INITIALIZE_START":case"DRAW_MODIFY_INITIALIZE_FINISH":case"DRAW_MODIFY_ACTIVATE":case"DRAW_MODIFY_DEACTIVATE":return Object.assign({},n,d);case"DRAWPOINTS_INITIALIZE_FINISH":case"DRAWLINES_INITIALIZE_FINISH":case"DRAWPOLYGONS_INITIALIZE_FINISH":return Object.assign({},n,{shouldInitialize:!0});default:return n}}},doDrawModifyInitialize:()=>({dispatch:t,store:n})=>{t({type:"DRAW_MODIFY_INITIALIZE_START",payload:{shouldInitialize:!1}});const s=n.selectDrawModifyChildLayers();if(!s)return null;const d=new Select$1({layers:s}),m=new Modify({features:d.getFeatures()});t({type:"DRAW_MODIFY_INITIALIZE_FINISH",payload:{select:d,modify:m}})},doDrawModifyAddInteractions:()=>({dispatch:t,store:n})=>{n.doSetCursor("pointer");const s=n.selectMap();n.selectDrawModifyInteraction().forEach(m=>{s.addInteraction(m)}),window.addEventListener("keyup",n.doDrawModifyHandleKeyUp),t({type:"DRAW_MODIFY_ACTIVATE",payload:{active:!0}})},doDrawModifyRemoveInteractions:()=>({dispatch:t,store:n})=>{n.doSetCursor();const s=n.selectMap();n.selectDrawModifyInteraction().forEach(m=>{s.removeInteraction(m)}),window.removeEventListener("keyup",n.doDrawModifyHandleKeyUp),t({type:"DRAW_MODIFY_DEACTIVATE",payload:{active:!1}})},doDrawModifyHandleSelect:t=>({store:n})=>{const s=t.selected[0],d=s.get("label")||"",m=window.prompt("Label the Draw Feature",d);s.set("label",m),n.selectDrawModifyInteraction().getFeatures().clear()},doDrawModifyHandleKeyUp:t=>({store:n})=>{const s=t.keyCode,m=n.selectDrawModifySelect().getFeatures(),v=n.selectDrawModifyChildLayers();if(!v)return null;[8,46].indexOf(s)!==-1&&(m.forEach(S=>{v.forEach(C=>{const I=C.getSource();I.hasFeature(S)&&I.removeFeature(S)})}),m.clear())},selectDrawModifyChildLayers:reduxBundler.createSelector("selectDrawPointsLayer","selectDrawLinesLayer","selectDrawPolygonsLayer",(t,n,s)=>!t||!n||!s?null:[t,n,s]),selectDrawModifyActive:t=>t.drawModify.active,selectDrawModifySelect:t=>t.drawModify.select,selectDrawModifyModify:t=>t.drawModify.modify,selectDrawModifyInteraction:reduxBundler.createSelector("selectDrawModifySelect","selectDrawModifyModify",(t,n)=>[t,n]),reactDrawModifyShouldInitialize:t=>{if(t.drawModify.shouldInitialize)return{actionCreator:"doDrawModifyInitialize"}}};var FileSaver_min$1={exports:{}},FileSaver_min=FileSaver_min$1.exports,hasRequiredFileSaver_min;function requireFileSaver_min(){return hasRequiredFileSaver_min||(hasRequiredFileSaver_min=1,(function(t,n){(function(s,d){d()})(FileSaver_min,function(){function s(N,M){return typeof M>"u"?M={autoBom:!1}:typeof M!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),M={autoBom:!M}),M.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(N.type)?new Blob(["\uFEFF",N],{type:N.type}):N}function d(N,M,k){var z=new XMLHttpRequest;z.open("GET",N),z.responseType="blob",z.onload=function(){I(z.response,M,k)},z.onerror=function(){console.error("could not download file")},z.send()}function m(N){var M=new XMLHttpRequest;M.open("HEAD",N,!1);try{M.send()}catch{}return 200<=M.status&&299>=M.status}function v(N){try{N.dispatchEvent(new MouseEvent("click"))}catch{var M=document.createEvent("MouseEvents");M.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),N.dispatchEvent(M)}}var S=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof commonjsGlobal=="object"&&commonjsGlobal.global===commonjsGlobal?commonjsGlobal:void 0,C=S.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),I=S.saveAs||(typeof window!="object"||window!==S?function(){}:"download"in HTMLAnchorElement.prototype&&!C?function(N,M,k){var z=S.URL||S.webkitURL,V=document.createElement("a");M=M||N.name||"download",V.download=M,V.rel="noopener",typeof N=="string"?(V.href=N,V.origin===location.origin?v(V):m(V.href)?d(N,M,k):v(V,V.target="_blank")):(V.href=z.createObjectURL(N),setTimeout(function(){z.revokeObjectURL(V.href)},4e4),setTimeout(function(){v(V)},0))}:"msSaveOrOpenBlob"in navigator?function(N,M,k){if(M=M||N.name||"download",typeof N!="string")navigator.msSaveOrOpenBlob(s(N,k),M);else if(m(N))d(N,M,k);else{var z=document.createElement("a");z.href=N,z.target="_blank",setTimeout(function(){v(z)})}}:function(N,M,k,z){if(z=z||open("","_blank"),z&&(z.document.title=z.document.body.innerText="downloading..."),typeof N=="string")return d(N,M,k);var V=N.type==="application/octet-stream",H=/constructor/i.test(S.HTMLElement)||S.safari,W=/CriOS\/[\d]+/.test(navigator.userAgent);if((W||V&&H||C)&&typeof FileReader<"u"){var J=new FileReader;J.onloadend=function(){var te=J.result;te=W?te:te.replace(/^data:[^;]*;/,"data:attachment/file;"),z?z.location.href=te:location=te,z=null},J.readAsDataURL(N)}else{var K=S.URL||S.webkitURL,re=K.createObjectURL(N);z?z.location=re:location.href=re,z=null,setTimeout(function(){K.revokeObjectURL(re)},4e4)}});S.saveAs=I.saveAs=I,t.exports=I})})(FileSaver_min$1)),FileSaver_min$1.exports}var FileSaver_minExports=requireFileSaver_min();const FileSaver=getDefaultExportFromCjs$1(FileSaver_minExports),geoJSON$2=new GeoJSON,drawSaveBundle={name:"drawSave",getReducer:()=>{const t={points:null,lines:null,polygons:null,isSaving:!1,shouldSave:!1,lastDownload:null,shouldInitialize:!1};return(n=t,{type:s,payload:d})=>{switch(s){case"DRAW_SAVE_START":case"DRAW_SAVE_COMPLETE":case"DRAW_CACHE_START":case"DRAW_CACHE_COMPLETE":case"DRAW_DOWNLOAD_COMPLETE":case"DRAW_SAVE_INITIALIZE_START":case"DRAW_SAVE_INITIALIZE_FINISHED":return Object.assign({},n,d);case"MAP_INITIALIZED":return Object.assign({},n,{shouldInitialize:!0});default:return n}}},doDrawSaveInitialize:()=>({dispatch:t})=>{t({type:"DRAW_SAVE_INITIALIZE_FINISHED",payload:{shouldInitialize:!1}})},doDrawSave:()=>({dispatch:t,store:n})=>{t({type:"DRAW_SAVE_START",payload:{isSaving:!0,shouldSave:!1}});const s=n.selectDrawPointsLayer(),d=n.selectDrawLinesLayer(),m=n.selectDrawPolygonsLayer(),v=geoJSON$2.writeFeatures(s.getSource().getFeatures(),{featureProjection:n.selectMapProjection(),dataProjection:n.selectGeoProjection()}),S=geoJSON$2.writeFeatures(d.getSource().getFeatures(),{featureProjection:n.selectMapProjection(),dataProjection:n.selectGeoProjection()}),C=geoJSON$2.writeFeatures(m.getSource().getFeatures(),{featureProjection:n.selectMapProjection(),dataProjection:n.selectGeoProjection()});t({type:"DRAW_SAVE_COMPLETE",payload:{isSaving:!1,points:v,lines:S,polygons:C}})},doDrawSaveDownload:()=>({dispatch:t,store:n})=>{const s=n.selectDrawSaveCachePointHasFeatures(),d=n.selectDrawSaveCacheLineStringHasFeatures(),m=n.selectDrawSaveCachePolygonHasFeatures(),v=new Date().toISOString(),S=n.selectDrawSaveCache();if(!Blob)return null;if(s){const C=new Blob([S.points],{type:"text/plain;charset=utf-8"});FileSaver.saveAs(C,`corpsmap-points-${v}.geojson`)}if(d){const C=new Blob([S.lines],{type:"text/plain;charset=utf-8"});FileSaver.saveAs(C,`corpsmap-lines-${v}.geojson`)}if(m){const C=new Blob([S.polygons],{type:"text/plain;charset=utf-8"});FileSaver.saveAs(C,`corpsmap-polygons-${v}.geojson`)}t({type:"DRAW_DOWNLOAD_COMPLETE",payload:{lastDownload:v}})},selectDrawSaveLastDownload:t=>t.drawSave.lastDownload,selectDrawSaveAll:t=>t.drawSave,selectDrawSavePostAttempts:t=>t.drawSave.postAttempts,selectDrawSaveCache:t=>({points:t.drawSave.points,lines:t.drawSave.lines,polygons:t.drawSave.polygons}),selectDrawSaveCachePoint:t=>JSON.parse(t.drawSave.points),selectDrawSaveCachePointHasFeatures:reduxBundler.createSelector("selectDrawSaveCachePoint",t=>!!(t&&t.features&&t.features.length)),selectDrawSaveCacheLineString:t=>JSON.parse(t.drawSave.lines),selectDrawSaveCacheLineStringHasFeatures:reduxBundler.createSelector("selectDrawSaveCacheLineString",t=>!!(t&&t.features&&t.features.length)),selectDrawSaveCachePolygon:t=>JSON.parse(t.drawSave.polygons),selectDrawSaveCachePolygonHasFeatures:reduxBundler.createSelector("selectDrawSaveCachePolygon",t=>!!(t&&t.features&&t.features.length)),reactDrawSaveShouldSave:t=>{if(t.drawSave.shouldSave)return{actionCreator:"doDrawSave"}},reactDrawSaveShouldInitialize:t=>{if(t.drawSave.shouldInitialize)return{actionCreator:"doDrawSaveInitialize"}},persistActions:["DRAW_SAVE_COMPLETE"]},plugin$j={pluginName:"Draw Tools",enabled:!0,bundle:[createDrawBundle({name:"drawPoints",type:"Point"}),createDrawBundle({name:"drawLines",type:"LineString"}),createDrawBundle({name:"drawPolygons",type:"Polygon"}),drawLabelBundle,drawModifyBundle,drawSaveBundle],components:[{component:DrawButton,region:"basic-toolbar",sortOrder:80}]};let SearchBar$1=class extends React.Component{constructor(n){super(n),this.state={selectedIdx:null,currentVal:""},this.handleChange=this.handleChange.bind(this),this.fireSearch=this.fireSearch.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this),this.handleItemClick=this.handleItemClick.bind(this),this.debouncedSearch=_.debounce(this.fireSearch,200)}handleItemClick(n){const{doSearchSelectItem:s}=this.props;s(n),this.handleChange("")}handleChange(n){const{doSearchSetQuery:s}=this.props;if(this.setState({selectedIdx:null,currentVal:n}),s(n),n.length<3)return null;this.debouncedSearch()}fireSearch(){const{doSearchShouldFire:n}=this.props;n(this.state.currentVal)}handleKeyUp(n){const{searchResults:s}=this.props;let{selectedIdx:d}=this.state;switch(n.keyCode){case 40:d===null?d=0:d<s.length-1&&d++,this.setState({selectedIdx:d});break;case 38:d>0&&d--,this.setState({selectedIdx:d});break;case 13:d!==null&&this.handleItemClick(s[d]);break}}render(){const{selectedIdx:n,currentVal:s}=this.state,{theme:d,searchResults:m,searchQueryString:v}=this.props,S=[];let C=s<2?S:m;const I=classnames({[d]:!0,"cm-btn-group":!0});return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:I,style:{width:"250px",position:"relative",paddingLeft:"10px",paddingRight:"10px"},children:jsxRuntimeExports.jsx(SearchInput,{inline:!0,onKeyUp:this.handleKeyUp,onUpdate:this.handleChange,filterString:v,placeholder:"Location Search..."})}),jsxRuntimeExports.jsx(SearchResultsList,{ref:N=>{this.searchResultsList=N},onItemClick:this.handleItemClick,items:C,selectedIdx:n})]})}};const SearchBar=connect("doSearchSelectItem","doSearchShouldFire","doSearchSetQuery","selectTheme","selectSearchQueryString","selectSearchResults",SearchBar$1),Overlay=t=>{const{item:n,onClear:s,overlay:d}=t;return jsxRuntimeExports.jsxs("div",{className:"panel panel-default top clearfix",style:{marginBottom:0},children:[jsxRuntimeExports.jsx("div",{className:"pull-right",children:jsxRuntimeExports.jsx("i",{style:{cursor:"pointer"},title:"Clear",className:"mdi mdi-close",onClick:m=>s(m,d)})}),jsxRuntimeExports.jsx("div",{className:"arrow"}),jsxRuntimeExports.jsx("div",{className:"panel-body",children:jsxRuntimeExports.jsx("div",{style:{minWidth:"125px",maxWidth:"300px",textAlign:"center"},children:n.displayName})})]})},zoomScales={region:8,postcode:11,district:11,place:12,locality:12,neighborhood:14,address:19,poi:19,"poi.landmark":19},bundle$f={name:"geocoder",getReducer(){const t={shouldRegister:!0,shouldHandleSelect:!1,selectedItem:null};return(n=t,{type:s,payload:d})=>{switch(s){case"SEARCH_ITEM_SELECTED":return d.selected.provider&&d.selected.provider==="geocoder"?Object.assign({},n,{shouldHandleSelect:!0,selectedItem:d.selected}):n;case"GEOCODER_REGISTERED":case"GEOCODER_HANDLED_SELECT":case"GEOCODER_OVERLAY_RENDERED":case"GEOCODER_OVERLAY_REMOVED":return Object.assign({},n,d);default:return n}}},doGeocoderRegister:()=>({dispatch:t,store:n})=>{t({type:"GEOCODER_REGISTERED",payload:{shouldRegister:!1}}),n.doSearchAddCollection({onFireSearch:n.doGeocoderFireSearch})},doGeocoderHandleSelect:()=>({dispatch:t,store:n})=>{t({type:"GEOCODER_HANDLED_SELECT",payload:{shouldHandleSelect:!1}});const s=n.selectGeocoderLastSelected(),d=n.selectMap();if(s){const m=document.createElement("div"),v=new Overlay$1({element:m,positioning:"bottom-center",offset:[0,-10]}),S=n.selectDisplayProjection(),C=proj.transform(s.center,S,"EPSG:3857");d.addOverlay(v),ReactDOM.render(jsxRuntimeExports.jsx(Overlay,{overlay:v,item:s,map:d,onClear:n.doClearGeocoderOverlay}),m),v.setPosition(C),n.doSetView({center:s.center,zoom:s.zoom})}},doClearGeocoderOverlay:(t,n)=>({store:s})=>{t.preventDefault(),t.stopPropagation();const d=s.selectMap();n.setPosition(void 0);const m=n.getElement();m.parentNode.removeChild(m),d.removeOverlay(n)},doGeocoderFireSearch:t=>({dispatch:n,store:s,apiGet:d})=>{const m=window.LIMIT_GEOCODER_COUNTRIES;let v=s.selectSearchQueryString();const S=s.selectMapProjection(),C=s.selectGeoProjection();let I=proj.transform(s.selectViewCenter(),S,C),N=s.selectDefaultConfig().mapboxToken;v.length<2||(v=encodeURIComponent(v),d(`https://api.mapbox.com/geocoding/v5/mapbox.places/${v}.json?proximity=${I.toString()}${m&&m.length?`&country=${m.join(",")}`:""}&access_token=${N}`,(M,k,z)=>{if(M)return t(M);const V=JSON.parse(z);return t(null,V.features.map(H=>{let W="mdi mdi-map-marker";const J=zoomScales[H.place_type[0]]||11;return{provider:"geocoder",displayName:H.place_name,place_type:H.place_type,iconClass:W,center:H.center,zoom:J,geometry:H.geometry,properties:H.properties}}))}))},selectGeocoderLastSelected:t=>t.geocoder.selectedItem,reactGeocoderShouldHandleSelect:t=>{if(t.geocoder.shouldHandleSelect)return{actionCreator:"doGeocoderHandleSelect"}},reactGeocoderShouldRegister:t=>{if(t.geocoder.shouldRegister)return{actionCreator:"doGeocoderRegister"}}},plugin$i={pluginName:"Geocoder",enabled:!0,bundle:bundle$f,components:[{component:SearchBar,region:"basic-toolbar",sortOrder:100}]},epsilon=11102230246251565e-32,splitter=134217729,resulterrbound=(3+8*epsilon)*epsilon;function sum$1(t,n,s,d,m){let v,S,C,I,N=n[0],M=d[0],k=0,z=0;M>N==M>-N?(v=N,N=n[++k]):(v=M,M=d[++z]);let V=0;if(k<t&&z<s)for(M>N==M>-N?(S=N+v,C=v-(S-N),N=n[++k]):(S=M+v,C=v-(S-M),M=d[++z]),v=S,C!==0&&(m[V++]=C);k<t&&z<s;)M>N==M>-N?(S=v+N,I=S-v,C=v-(S-I)+(N-I),N=n[++k]):(S=v+M,I=S-v,C=v-(S-I)+(M-I),M=d[++z]),v=S,C!==0&&(m[V++]=C);for(;k<t;)S=v+N,I=S-v,C=v-(S-I)+(N-I),N=n[++k],v=S,C!==0&&(m[V++]=C);for(;z<s;)S=v+M,I=S-v,C=v-(S-I)+(M-I),M=d[++z],v=S,C!==0&&(m[V++]=C);return(v!==0||V===0)&&(m[V++]=v),V}function estimate(t,n){let s=n[0];for(let d=1;d<t;d++)s+=n[d];return s}function vec(t){return new Float64Array(t)}const ccwerrboundA=(3+16*epsilon)*epsilon,ccwerrboundB=(2+12*epsilon)*epsilon,ccwerrboundC=(9+64*epsilon)*epsilon*epsilon,B=vec(4),C1=vec(8),C2=vec(12),D=vec(16),u=vec(4);function orient2dadapt(t,n,s,d,m,v,S){let C,I,N,M,k,z,V,H,W,J,K,re,te,ue,se,ge,pe,Ee;const ce=t-m,me=s-m,Re=n-v,Ne=d-v;ue=ce*Ne,z=splitter*ce,V=z-(z-ce),H=ce-V,z=splitter*Ne,W=z-(z-Ne),J=Ne-W,se=H*J-(ue-V*W-H*W-V*J),ge=Re*me,z=splitter*Re,V=z-(z-Re),H=Re-V,z=splitter*me,W=z-(z-me),J=me-W,pe=H*J-(ge-V*W-H*W-V*J),K=se-pe,k=se-K,B[0]=se-(K+k)+(k-pe),re=ue+K,k=re-ue,te=ue-(re-k)+(K-k),K=te-ge,k=te-K,B[1]=te-(K+k)+(k-ge),Ee=re+K,k=Ee-re,B[2]=re-(Ee-k)+(K-k),B[3]=Ee;let we=estimate(4,B),De=ccwerrboundB*S;if(we>=De||-we>=De||(k=t-ce,C=t-(ce+k)+(k-m),k=s-me,N=s-(me+k)+(k-m),k=n-Re,I=n-(Re+k)+(k-v),k=d-Ne,M=d-(Ne+k)+(k-v),C===0&&I===0&&N===0&&M===0)||(De=ccwerrboundC*S+resulterrbound*Math.abs(we),we+=ce*M+Ne*C-(Re*N+me*I),we>=De||-we>=De))return we;ue=C*Ne,z=splitter*C,V=z-(z-C),H=C-V,z=splitter*Ne,W=z-(z-Ne),J=Ne-W,se=H*J-(ue-V*W-H*W-V*J),ge=I*me,z=splitter*I,V=z-(z-I),H=I-V,z=splitter*me,W=z-(z-me),J=me-W,pe=H*J-(ge-V*W-H*W-V*J),K=se-pe,k=se-K,u[0]=se-(K+k)+(k-pe),re=ue+K,k=re-ue,te=ue-(re-k)+(K-k),K=te-ge,k=te-K,u[1]=te-(K+k)+(k-ge),Ee=re+K,k=Ee-re,u[2]=re-(Ee-k)+(K-k),u[3]=Ee;const Ge=sum$1(4,B,4,u,C1);ue=ce*M,z=splitter*ce,V=z-(z-ce),H=ce-V,z=splitter*M,W=z-(z-M),J=M-W,se=H*J-(ue-V*W-H*W-V*J),ge=Re*N,z=splitter*Re,V=z-(z-Re),H=Re-V,z=splitter*N,W=z-(z-N),J=N-W,pe=H*J-(ge-V*W-H*W-V*J),K=se-pe,k=se-K,u[0]=se-(K+k)+(k-pe),re=ue+K,k=re-ue,te=ue-(re-k)+(K-k),K=te-ge,k=te-K,u[1]=te-(K+k)+(k-ge),Ee=re+K,k=Ee-re,u[2]=re-(Ee-k)+(K-k),u[3]=Ee;const de=sum$1(Ge,C1,4,u,C2);ue=C*M,z=splitter*C,V=z-(z-C),H=C-V,z=splitter*M,W=z-(z-M),J=M-W,se=H*J-(ue-V*W-H*W-V*J),ge=I*N,z=splitter*I,V=z-(z-I),H=I-V,z=splitter*N,W=z-(z-N),J=N-W,pe=H*J-(ge-V*W-H*W-V*J),K=se-pe,k=se-K,u[0]=se-(K+k)+(k-pe),re=ue+K,k=re-ue,te=ue-(re-k)+(K-k),K=te-ge,k=te-K,u[1]=te-(K+k)+(k-ge),Ee=re+K,k=Ee-re,u[2]=re-(Ee-k)+(K-k),u[3]=Ee;const Ce=sum$1(de,C2,4,u,D);return D[Ce-1]}function orient2d(t,n,s,d,m,v){const S=(n-v)*(s-m),C=(t-m)*(d-v),I=S-C,N=Math.abs(S+C);return Math.abs(I)>=ccwerrboundA*N?I:-orient2dadapt(t,n,s,d,m,v,N)}function pointInPolygon(t,n){var s,d,m=0,v,S,C,I,N,M,k,z=t[0],V=t[1],H=n.length;for(s=0;s<H;s++){d=0;var W=n[s],J=W.length-1;if(M=W[0],M[0]!==W[J][0]&&M[1]!==W[J][1])throw new Error("First and last coordinates in a ring must be the same");for(S=M[0]-z,C=M[1]-V,d;d<J;d++){if(k=W[d+1],I=k[0]-z,N=k[1]-V,C===0&&N===0){if(I<=0&&S>=0||S<=0&&I>=0)return 0}else if(N>=0&&C<=0||N<=0&&C>=0){if(v=orient2d(S,I,C,N,0,0),v===0)return 0;(v>0&&N>0&&C<=0||v<0&&N<=0&&C>0)&&m++}M=k,C=N,S=I}}return m%2!==0}function getCoord(t){if(!t)throw new Error("coord is required");if(!Array.isArray(t)){if(t.type==="Feature"&&t.geometry!==null&&t.geometry.type==="Point")return[...t.geometry.coordinates];if(t.type==="Point")return[...t.coordinates]}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return[...t];throw new Error("coord must be GeoJSON Point or an Array of numbers")}function getGeom(t){return t.type==="Feature"?t.geometry:t}function booleanPointInPolygon(t,n,s={}){if(!t)throw new Error("point is required");if(!n)throw new Error("polygon is required");const d=getCoord(t),m=getGeom(n),v=m.type,S=n.bbox;let C=m.coordinates;if(S&&inBBox(d,S)===!1)return!1;v==="Polygon"&&(C=[C]);let I=!1;for(var N=0;N<C.length;++N){const M=pointInPolygon(d,C[N]);if(M===0)return!s.ignoreBoundary;M&&(I=!0)}return I}function inBBox(t,n){return n[0]<=t[0]&&n[1]<=t[1]&&n[2]>=t[0]&&n[3]>=t[1]}class TinyQueue{constructor(n=[],s=defaultCompare){if(this.data=n,this.length=this.data.length,this.compare=s,this.length>0)for(let d=(this.length>>1)-1;d>=0;d--)this._down(d)}push(n){this.data.push(n),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const n=this.data[0],s=this.data.pop();return this.length--,this.length>0&&(this.data[0]=s,this._down(0)),n}peek(){return this.data[0]}_up(n){const{data:s,compare:d}=this,m=s[n];for(;n>0;){const v=n-1>>1,S=s[v];if(d(m,S)>=0)break;s[n]=S,n=v}s[n]=m}_down(n){const{data:s,compare:d}=this,m=this.length>>1,v=s[n];for(;n<m;){let S=(n<<1)+1,C=s[S];const I=S+1;if(I<this.length&&d(s[I],C)<0&&(S=I,C=s[I]),d(C,v)>=0)break;s[n]=C,n=S}s[n]=v}}function defaultCompare(t,n){return t<n?-1:t>n?1:0}function checkWhichEventIsLeft(t,n){return t.p.x>n.p.x?1:t.p.x<n.p.x?-1:t.p.y!==n.p.y?t.p.y>n.p.y?1:-1:1}function checkWhichSegmentHasRightEndpointFirst(t,n){return t.rightSweepEvent.p.x>n.rightSweepEvent.p.x?1:t.rightSweepEvent.p.x<n.rightSweepEvent.p.x?-1:t.rightSweepEvent.p.y!==n.rightSweepEvent.p.y?t.rightSweepEvent.p.y<n.rightSweepEvent.p.y?1:-1:1}class Event{constructor(n,s,d,m){this.p={x:n[0],y:n[1]},this.featureId=s,this.ringId=d,this.eventId=m,this.otherEvent=null,this.isLeftEndpoint=null}isSamePoint(n){return this.p.x===n.p.x&&this.p.y===n.p.y}}function fillEventQueue(t,n){if(t.type==="FeatureCollection"){const s=t.features;for(let d=0;d<s.length;d++)processFeature(s[d],n)}else processFeature(t,n)}let featureId=0,ringId=0,eventId=0;function processFeature(t,n){const s=t.type==="Feature"?t.geometry:t;let d=s.coordinates;(s.type==="Polygon"||s.type==="MultiLineString")&&(d=[d]),s.type==="LineString"&&(d=[[d]]);for(let m=0;m<d.length;m++)for(let v=0;v<d[m].length;v++){let S=d[m][v][0],C=null;ringId=ringId+1;for(let I=0;I<d[m][v].length-1;I++){C=d[m][v][I+1];const N=new Event(S,featureId,ringId,eventId),M=new Event(C,featureId,ringId,eventId+1);N.otherEvent=M,M.otherEvent=N,checkWhichEventIsLeft(N,M)>0?(M.isLeftEndpoint=!0,N.isLeftEndpoint=!1):(N.isLeftEndpoint=!0,M.isLeftEndpoint=!1),n.push(N),n.push(M),S=C,eventId=eventId+1}}featureId=featureId+1}class Segment{constructor(n){this.leftSweepEvent=n,this.rightSweepEvent=n.otherEvent}}function testSegmentIntersect(t,n){if(t===null||n===null||t.leftSweepEvent.ringId===n.leftSweepEvent.ringId&&(t.rightSweepEvent.isSamePoint(n.leftSweepEvent)||t.rightSweepEvent.isSamePoint(n.leftSweepEvent)||t.rightSweepEvent.isSamePoint(n.rightSweepEvent)||t.leftSweepEvent.isSamePoint(n.leftSweepEvent)||t.leftSweepEvent.isSamePoint(n.rightSweepEvent)))return!1;const s=t.leftSweepEvent.p.x,d=t.leftSweepEvent.p.y,m=t.rightSweepEvent.p.x,v=t.rightSweepEvent.p.y,S=n.leftSweepEvent.p.x,C=n.leftSweepEvent.p.y,I=n.rightSweepEvent.p.x,N=n.rightSweepEvent.p.y,M=(N-C)*(m-s)-(I-S)*(v-d),k=(I-S)*(d-C)-(N-C)*(s-S),z=(m-s)*(d-C)-(v-d)*(s-S);if(M===0)return!1;const V=k/M,H=z/M;if(V>=0&&V<=1&&H>=0&&H<=1){const W=s+V*(m-s),J=d+V*(v-d);return[W,J]}return!1}function runCheck(t,n){n=n||!1;const s=[],d=new TinyQueue([],checkWhichSegmentHasRightEndpointFirst);for(;t.length;){const m=t.pop();if(m.isLeftEndpoint){const v=new Segment(m);for(let S=0;S<d.data.length;S++){const C=d.data[S];if(n&&C.leftSweepEvent.featureId===m.featureId)continue;const I=testSegmentIntersect(v,C);I!==!1&&s.push(I)}d.push(v)}else m.isLeftEndpoint===!1&&d.pop()}return s}function sweeplineIntersections$1(t,n){const s=new TinyQueue([],checkWhichEventIsLeft);return fillEventQueue(t,s),runCheck(s,n)}var sweeplineIntersections=sweeplineIntersections$1;function lineIntersect(t,n,s={}){const{removeDuplicates:d=!0,ignoreSelfIntersections:m=!0}=s;let v=[];t.type==="FeatureCollection"?v=v.concat(t.features):t.type==="Feature"?v.push(t):(t.type==="LineString"||t.type==="Polygon"||t.type==="MultiLineString"||t.type==="MultiPolygon")&&v.push(feature(t)),n.type==="FeatureCollection"?v=v.concat(n.features):n.type==="Feature"?v.push(n):(n.type==="LineString"||n.type==="Polygon"||n.type==="MultiLineString"||n.type==="MultiPolygon")&&v.push(feature(n));const S=sweeplineIntersections(featureCollection(v),m);let C=[];if(d){const I={};S.forEach(N=>{const M=N.join(",");I[M]||(I[M]=!0,C.push(N))})}else C=S;return featureCollection(C.map(I=>point(I)))}function polygonToLine(t,n={}){const s=getGeom(t);switch(!n.properties&&t.type==="Feature"&&(n.properties=t.properties),s.type){case"Polygon":return singlePolygonToLine(s,n);case"MultiPolygon":return multiPolygonToLine(s,n);default:throw new Error("invalid poly")}}function singlePolygonToLine(t,n={}){const d=getGeom(t).coordinates,m=n.properties?n.properties:t.type==="Feature"?t.properties:{};return coordsToLine(d,m)}function multiPolygonToLine(t,n={}){const d=getGeom(t).coordinates,m=n.properties?n.properties:t.type==="Feature"?t.properties:{},v=[];return d.forEach(S=>{v.push(coordsToLine(S,m))}),featureCollection(v)}function coordsToLine(t,n){return t.length>1?multiLineString(t,n):lineString(t[0],n)}function booleanDisjoint(t,n,{ignoreSelfIntersections:s=!0}={ignoreSelfIntersections:!0}){let d=!0;return flattenEach(t,m=>{flattenEach(n,v=>{if(d===!1)return!1;d=disjoint(m.geometry,v.geometry,s)})}),d}function disjoint(t,n,s){switch(t.type){case"Point":switch(n.type){case"Point":return!compareCoords(t.coordinates,n.coordinates);case"LineString":return!isPointOnLine(n,t);case"Polygon":return!booleanPointInPolygon(t,n)}break;case"LineString":switch(n.type){case"Point":return!isPointOnLine(t,n);case"LineString":return!isLineOnLine(t,n,s);case"Polygon":return!isLineInPoly(n,t,s)}break;case"Polygon":switch(n.type){case"Point":return!booleanPointInPolygon(n,t);case"LineString":return!isLineInPoly(t,n,s);case"Polygon":return!isPolyInPoly(n,t,s)}}return!1}function isPointOnLine(t,n){for(let s=0;s<t.coordinates.length-1;s++)if(isPointOnLineSegment(t.coordinates[s],t.coordinates[s+1],n.coordinates))return!0;return!1}function isLineOnLine(t,n,s){return lineIntersect(t,n,{ignoreSelfIntersections:s}).features.length>0}function isLineInPoly(t,n,s){for(const m of n.coordinates)if(booleanPointInPolygon(m,t))return!0;return lineIntersect(n,polygonToLine(t),{ignoreSelfIntersections:s}).features.length>0}function isPolyInPoly(t,n,s){for(const m of t.coordinates[0])if(booleanPointInPolygon(m,n))return!0;for(const m of n.coordinates[0])if(booleanPointInPolygon(m,t))return!0;return lineIntersect(polygonToLine(t),polygonToLine(n),{ignoreSelfIntersections:s}).features.length>0}function isPointOnLineSegment(t,n,s){const d=s[0]-t[0],m=s[1]-t[1],v=n[0]-t[0],S=n[1]-t[1];return d*S-m*v!==0?!1:Math.abs(v)>=Math.abs(S)?v>0?t[0]<=s[0]&&s[0]<=n[0]:n[0]<=s[0]&&s[0]<=t[0]:S>0?t[1]<=s[1]&&s[1]<=n[1]:n[1]<=s[1]&&s[1]<=t[1]}function compareCoords(t,n){return t[0]===n[0]&&t[1]===n[1]}var index_default=booleanDisjoint,pathBrowserify,hasRequiredPathBrowserify;function requirePathBrowserify(){if(hasRequiredPathBrowserify)return pathBrowserify;hasRequiredPathBrowserify=1;function t(m){if(typeof m!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(m))}function n(m,v){for(var S="",C=0,I=-1,N=0,M,k=0;k<=m.length;++k){if(k<m.length)M=m.charCodeAt(k);else{if(M===47)break;M=47}if(M===47){if(!(I===k-1||N===1))if(I!==k-1&&N===2){if(S.length<2||C!==2||S.charCodeAt(S.length-1)!==46||S.charCodeAt(S.length-2)!==46){if(S.length>2){var z=S.lastIndexOf("/");if(z!==S.length-1){z===-1?(S="",C=0):(S=S.slice(0,z),C=S.length-1-S.lastIndexOf("/")),I=k,N=0;continue}}else if(S.length===2||S.length===1){S="",C=0,I=k,N=0;continue}}v&&(S.length>0?S+="/..":S="..",C=2)}else S.length>0?S+="/"+m.slice(I+1,k):S=m.slice(I+1,k),C=k-I-1;I=k,N=0}else M===46&&N!==-1?++N:N=-1}return S}function s(m,v){var S=v.dir||v.root,C=v.base||(v.name||"")+(v.ext||"");return S?S===v.root?S+C:S+m+C:C}var d={resolve:function(){for(var v="",S=!1,C,I=arguments.length-1;I>=-1&&!S;I--){var N;I>=0?N=arguments[I]:(C===void 0&&(C=process$1.cwd()),N=C),t(N),N.length!==0&&(v=N+"/"+v,S=N.charCodeAt(0)===47)}return v=n(v,!S),S?v.length>0?"/"+v:"/":v.length>0?v:"."},normalize:function(v){if(t(v),v.length===0)return".";var S=v.charCodeAt(0)===47,C=v.charCodeAt(v.length-1)===47;return v=n(v,!S),v.length===0&&!S&&(v="."),v.length>0&&C&&(v+="/"),S?"/"+v:v},isAbsolute:function(v){return t(v),v.length>0&&v.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var v,S=0;S<arguments.length;++S){var C=arguments[S];t(C),C.length>0&&(v===void 0?v=C:v+="/"+C)}return v===void 0?".":d.normalize(v)},relative:function(v,S){if(t(v),t(S),v===S||(v=d.resolve(v),S=d.resolve(S),v===S))return"";for(var C=1;C<v.length&&v.charCodeAt(C)===47;++C);for(var I=v.length,N=I-C,M=1;M<S.length&&S.charCodeAt(M)===47;++M);for(var k=S.length,z=k-M,V=N<z?N:z,H=-1,W=0;W<=V;++W){if(W===V){if(z>V){if(S.charCodeAt(M+W)===47)return S.slice(M+W+1);if(W===0)return S.slice(M+W)}else N>V&&(v.charCodeAt(C+W)===47?H=W:W===0&&(H=0));break}var J=v.charCodeAt(C+W),K=S.charCodeAt(M+W);if(J!==K)break;J===47&&(H=W)}var re="";for(W=C+H+1;W<=I;++W)(W===I||v.charCodeAt(W)===47)&&(re.length===0?re+="..":re+="/..");return re.length>0?re+S.slice(M+H):(M+=H,S.charCodeAt(M)===47&&++M,S.slice(M))},_makeLong:function(v){return v},dirname:function(v){if(t(v),v.length===0)return".";for(var S=v.charCodeAt(0),C=S===47,I=-1,N=!0,M=v.length-1;M>=1;--M)if(S=v.charCodeAt(M),S===47){if(!N){I=M;break}}else N=!1;return I===-1?C?"/":".":C&&I===1?"//":v.slice(0,I)},basename:function(v,S){if(S!==void 0&&typeof S!="string")throw new TypeError('"ext" argument must be a string');t(v);var C=0,I=-1,N=!0,M;if(S!==void 0&&S.length>0&&S.length<=v.length){if(S.length===v.length&&S===v)return"";var k=S.length-1,z=-1;for(M=v.length-1;M>=0;--M){var V=v.charCodeAt(M);if(V===47){if(!N){C=M+1;break}}else z===-1&&(N=!1,z=M+1),k>=0&&(V===S.charCodeAt(k)?--k===-1&&(I=M):(k=-1,I=z))}return C===I?I=z:I===-1&&(I=v.length),v.slice(C,I)}else{for(M=v.length-1;M>=0;--M)if(v.charCodeAt(M)===47){if(!N){C=M+1;break}}else I===-1&&(N=!1,I=M+1);return I===-1?"":v.slice(C,I)}},extname:function(v){t(v);for(var S=-1,C=0,I=-1,N=!0,M=0,k=v.length-1;k>=0;--k){var z=v.charCodeAt(k);if(z===47){if(!N){C=k+1;break}continue}I===-1&&(N=!1,I=k+1),z===46?S===-1?S=k:M!==1&&(M=1):S!==-1&&(M=-1)}return S===-1||I===-1||M===0||M===1&&S===I-1&&S===C+1?"":v.slice(S,I)},format:function(v){if(v===null||typeof v!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof v);return s("/",v)},parse:function(v){t(v);var S={root:"",dir:"",base:"",ext:"",name:""};if(v.length===0)return S;var C=v.charCodeAt(0),I=C===47,N;I?(S.root="/",N=1):N=0;for(var M=-1,k=0,z=-1,V=!0,H=v.length-1,W=0;H>=N;--H){if(C=v.charCodeAt(H),C===47){if(!V){k=H+1;break}continue}z===-1&&(V=!1,z=H+1),C===46?M===-1?M=H:W!==1&&(W=1):M!==-1&&(W=-1)}return M===-1||z===-1||W===0||W===1&&M===z-1&&M===k+1?z!==-1&&(k===0&&I?S.base=S.name=v.slice(1,z):S.base=S.name=v.slice(k,z)):(k===0&&I?(S.name=v.slice(1,M),S.base=v.slice(1,z)):(S.name=v.slice(k,M),S.base=v.slice(k,z)),S.ext=v.slice(M,z)),k>0?S.dir=v.slice(0,k-1):I&&(S.dir="/"),S},sep:"/",delimiter:":",win32:null,posix:null};return d.posix=d,pathBrowserify=d,pathBrowserify}requirePathBrowserify();const bundle$e={name:"geojsonIdent",getReducer(){const t={shouldRegister:!1,shouldHandleRemove:!1,removedUid:null,data:{}};return(n=t,{type:s,payload:d})=>{switch(s){case"GEOJSON_IDENT_REGISTERED":case"GEOJSON_IDENT_ADDED_FEATURES":case"GEOJSON_IDENT_REMOVED_FEATURES":case"GEOJSON_IDENT_HANDLED_REMOVE":return Object.assign({},n,d);case"LAYER_REMOVED":return Object.assign({},n,{removedUid:d.uid,shouldHandleRemove:!0});default:return n}}},doGeojsonIdentRegister:()=>({dispatch:t,store:n})=>{t({type:"GEOJSON_IDENT_REGISTERED",payload:{shouldRegister:!1}}),n.doIdentifyAddCollection({onIdentify:n.doGeojsonIdentFire})},doGeojsonIdentRemoveFeatures:t=>({dispatch:n,store:s})=>{n({type:"GEOJSON_IDENT_HANDLED_REMOVE",payload:{shouldHandleRemove:!1}});const d=s.selectGeojsonRemovedUid(),m=s.selectGeojsonIdentFeatures();delete m[d],n({type:"GEOJSON_IDENT_REMOVED_FEATURES",payload:{data:Object.assign({},m),removedUid:null}})},doGeojsonIdentAddFeatures:(t,n,s)=>({dispatch:d,store:m})=>{const v=m.selectGeojsonIdentFeatures();if(v[t]||(v[t]={features:[],maplayer:null}),n){let S=[];n.length?S=n:n.features?S=n.features:S=[n],v[t].features=[...v[t].features,...S]}s&&(v[t].mapLayer=s),d({type:"GEOJSON_IDENT_ADDED_FEATURES",payload:{data:Object.assign({},v)}})},doGeojsonIdentFire:t=>({dispatch:n,store:s})=>{const d=s.selectIdentifyCoordinates(),m=s.selectResolution(),v=s.selectGeojsonIdentFeatures();let S=null;if(typeof d[0]=="number"){const C=point(d),I=m*5/1e3;S=index_default$1(C,I,{units:"kilometers"})}else S=polygon(d);try{const C=[];Object.keys(v).forEach(I=>{const N=[],M=v[I].features;v[I].mapLayer.getVisible()&&(M.forEach(z=>{index_default(S,z)||N.push(z)}),C.push({dataset:I,err:null,result:{[I]:{type:"FeatureCollection",features:N}}}))}),t(null,C)}catch(C){console.log(C),t(C)}},selectGeojsonIdentFeatures:t=>t.geojsonIdent.data,selectGeojsonRemovedUid:t=>t.geojsonIdent.removedUid,reactGeojsonIdentShouldRegister:t=>{if(t.geojsonIdent.shouldRegister)return{actionCreator:"doGeojsonIdentRegister"}},reactGeojsonIdentShouldHandleRemove:t=>{if(t.geojsonIdent.shouldHandleRemove)return{actionCreator:"doGeojsonIdentRemoveFeatures"}}},plugin$h={pluginName:"Identify GeoJSON",enabled:!0,bundle:bundle$e,components:[]};var _baseSlice,hasRequired_baseSlice;function require_baseSlice(){if(hasRequired_baseSlice)return _baseSlice;hasRequired_baseSlice=1;function t(n,s,d){var m=-1,v=n.length;s<0&&(s=-s>v?0:v+s),d=d>v?v:d,d<0&&(d+=v),v=s>d?0:d-s>>>0,s>>>=0;for(var S=Array(v);++m<v;)S[m]=n[m+s];return S}return _baseSlice=t,_baseSlice}var _castSlice,hasRequired_castSlice;function require_castSlice(){if(hasRequired_castSlice)return _castSlice;hasRequired_castSlice=1;var t=require_baseSlice();function n(s,d,m){var v=s.length;return m=m===void 0?v:m,!d&&m>=v?s:t(s,d,m)}return _castSlice=n,_castSlice}var _hasUnicode,hasRequired_hasUnicode;function require_hasUnicode(){if(hasRequired_hasUnicode)return _hasUnicode;hasRequired_hasUnicode=1;var t="\\ud800-\\udfff",n="\\u0300-\\u036f",s="\\ufe20-\\ufe2f",d="\\u20d0-\\u20ff",m=n+s+d,v="\\ufe0e\\ufe0f",S="\\u200d",C=RegExp("["+S+t+m+v+"]");function I(N){return C.test(N)}return _hasUnicode=I,_hasUnicode}var _asciiToArray,hasRequired_asciiToArray;function require_asciiToArray(){if(hasRequired_asciiToArray)return _asciiToArray;hasRequired_asciiToArray=1;function t(n){return n.split("")}return _asciiToArray=t,_asciiToArray}var _unicodeToArray,hasRequired_unicodeToArray;function require_unicodeToArray(){if(hasRequired_unicodeToArray)return _unicodeToArray;hasRequired_unicodeToArray=1;var t="\\ud800-\\udfff",n="\\u0300-\\u036f",s="\\ufe20-\\ufe2f",d="\\u20d0-\\u20ff",m=n+s+d,v="\\ufe0e\\ufe0f",S="["+t+"]",C="["+m+"]",I="\\ud83c[\\udffb-\\udfff]",N="(?:"+C+"|"+I+")",M="[^"+t+"]",k="(?:\\ud83c[\\udde6-\\uddff]){2}",z="[\\ud800-\\udbff][\\udc00-\\udfff]",V="\\u200d",H=N+"?",W="["+v+"]?",J="(?:"+V+"(?:"+[M,k,z].join("|")+")"+W+H+")*",K=W+H+J,re="(?:"+[M+C+"?",C,k,z,S].join("|")+")",te=RegExp(I+"(?="+I+")|"+re+K,"g");function ue(se){return se.match(te)||[]}return _unicodeToArray=ue,_unicodeToArray}var _stringToArray,hasRequired_stringToArray;function require_stringToArray(){if(hasRequired_stringToArray)return _stringToArray;hasRequired_stringToArray=1;var t=require_asciiToArray(),n=require_hasUnicode(),s=require_unicodeToArray();function d(m){return n(m)?s(m):t(m)}return _stringToArray=d,_stringToArray}var _arrayMap,hasRequired_arrayMap;function require_arrayMap(){if(hasRequired_arrayMap)return _arrayMap;hasRequired_arrayMap=1;function t(n,s){for(var d=-1,m=n==null?0:n.length,v=Array(m);++d<m;)v[d]=s(n[d],d,n);return v}return _arrayMap=t,_arrayMap}var _baseToString,hasRequired_baseToString;function require_baseToString(){if(hasRequired_baseToString)return _baseToString;hasRequired_baseToString=1;var t=require_Symbol(),n=require_arrayMap(),s=requireIsArray(),d=requireIsSymbol(),m=t?t.prototype:void 0,v=m?m.toString:void 0;function S(C){if(typeof C=="string")return C;if(s(C))return n(C,S)+"";if(d(C))return v?v.call(C):"";var I=C+"";return I=="0"&&1/C==-1/0?"-0":I}return _baseToString=S,_baseToString}var toString_1,hasRequiredToString;function requireToString(){if(hasRequiredToString)return toString_1;hasRequiredToString=1;var t=require_baseToString();function n(s){return s==null?"":t(s)}return toString_1=n,toString_1}var _createCaseFirst,hasRequired_createCaseFirst;function require_createCaseFirst(){if(hasRequired_createCaseFirst)return _createCaseFirst;hasRequired_createCaseFirst=1;var t=require_castSlice(),n=require_hasUnicode(),s=require_stringToArray(),d=requireToString();function m(v){return function(S){S=d(S);var C=n(S)?s(S):void 0,I=C?C[0]:S.charAt(0),N=C?t(C,1).join(""):S.slice(1);return I[v]()+N}}return _createCaseFirst=m,_createCaseFirst}var upperFirst_1,hasRequiredUpperFirst;function requireUpperFirst(){if(hasRequiredUpperFirst)return upperFirst_1;hasRequiredUpperFirst=1;var t=require_createCaseFirst(),n=t("toUpperCase");return upperFirst_1=n,upperFirst_1}var upperFirstExports=requireUpperFirst();const upperFirst=getDefaultExportFromCjs$1(upperFirstExports),IdentifyBufferSection$1=t=>{const{theme:n,identifySelectBy:s,identifyBufferUnit:d,identifyBufferValue:m,doShowBufferUnits:v,doUpdateIdentifyBuffer:S}=t;return jsxRuntimeExports.jsx("li",{className:`${n}`,id:"cm-identify-buffer-section",children:jsxRuntimeExports.jsxs("div",{className:"text-center",children:[jsxRuntimeExports.jsx("div",{id:"cm-identify-buffer-title",children:`Buffer ${upperFirst(s)} By:`}),jsxRuntimeExports.jsxs("form",{className:"cm-form-inline",children:[jsxRuntimeExports.jsx("input",{className:"cm-form-control",id:"cm-identify-buffer-input",type:"number",value:m,name:"identify-buffer",title:"Identify Buffer Input",onChange:S,onKeyPress:C=>{C.key==="Enter"&&C.preventDefault()}}),jsxRuntimeExports.jsx("span",{id:"cm-identify-buffer-units",children:`${d}`}),jsxRuntimeExports.jsx("i",{className:"mdi mdi-settings pointer",title:"Identify Buffer Units",onClick:v})]})]})})},IdentifyBufferSection=connect("selectTheme","selectIdentifySelectBy","selectIdentifyBufferUnit","selectIdentifyBufferValue","doShowBufferUnits","doUpdateIdentifyBuffer",IdentifyBufferSection$1),IdentifyButton$1=t=>{const{doStartIdentify:n,doPauseIdentify:s,doStopIdentify:d,doSetDisplayAs:m,identifySelectBy:v,identifyDisplayAs:S}=t;return jsxRuntimeExports.jsx(BasicToolbarButton,{enabled:!0,iconClass:"ms ms-information",title:"Identify",onDeactivate:s,children:jsxRuntimeExports.jsxs(BasicToolbarMenu,{children:[jsxRuntimeExports.jsx(BasicToolbarMenuItem,{active:v==="point",onClick:n,iconClass:"ms ms-identify icon-inline",title:"Identify by Point",text:"Identify by Point",passProps:{"data-selectby":"point"}}),jsxRuntimeExports.jsx(BasicToolbarMenuItem,{active:v==="polygon",onClick:n,iconClass:"ms ms-identify-box icon-inline",title:"Identify by Polygon",text:"Identify by Polygon",passProps:{"data-selectby":"polygon"}}),v?jsxRuntimeExports.jsx(IdentifyBufferSection,{}):null,jsxRuntimeExports.jsx(BasicToolbarMenuDivider,{}),jsxRuntimeExports.jsx(BasicToolbarMenuItem,{active:!1,onClick:d,iconClass:"mdi mdi-close icon-inline",title:"Clear All",text:"Clear All"}),jsxRuntimeExports.jsx(BasicToolbarMenuItem,{active:!1,iconClass:"mdi mdi-tune icon-inline",title:"Display Format",text:"Display Format",children:jsxRuntimeExports.jsxs(BasicToolbarSubmenu,{children:[jsxRuntimeExports.jsx(BasicToolbarMenuItem,{active:S==="popup",onClick:m,iconClass:"mdi mdi-message-outline icon-inline",title:"Display as Popups",text:"Display as Popups",passProps:{"data-displayas":"popup"}}),jsxRuntimeExports.jsx(BasicToolbarMenuItem,{active:S==="sidebar",onClick:m,iconClass:"mdi mdi-format-list-bulleted icon-inline",title:"Display in Sidebar List",text:"Display in Sidebar List",passProps:{"data-displayas":"sidebar"}}),jsxRuntimeExports.jsx(BasicToolbarMenuItem,{disabled:!1,active:S==="table",onClick:m,iconClass:"ms ms-table icon-inline",title:"Display in Attribute Table",text:"Display in Attribute Table",passProps:{"data-displayas":"table"}})]})})]})})},IdentifyButton=connect("doStartIdentify","doPauseIdentify","doStopIdentify","doSetDisplayAs","selectIdentifyDisplayAs","selectIdentifySelectBy",IdentifyButton$1),require$$0=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","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","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];var htmlTags$1,hasRequiredHtmlTags;function requireHtmlTags(){return hasRequiredHtmlTags||(hasRequiredHtmlTags=1,htmlTags$1=require$$0),htmlTags$1}var htmlTagsExports=requireHtmlTags();const htmlTags=getDefaultExportFromCjs$1(htmlTagsExports),basic=/\s?<!doctype html>|<html\b[^>]*>|<body\b[^>]*>|<x-[^>]+>/i,sortedTags=[...htmlTags].sort((t,n)=>t.length-n.length),full=new RegExp(sortedTags.map(t=>`<${t}\\b[^>]*>`).join("|"),"i");function isHtml(t){return t=t.trim().slice(0,1e3),t.includes("\0")||!t.includes("<")?!1:basic.test(t)||full.test(t)}const style$2=new style$3.Style({fill:new style$3.Fill({color:"rgba(84, 240, 240, 0.6)"}),stroke:new style$3.Stroke({color:"rgb(84, 240, 240)",width:1}),image:new style$3.Circle({radius:8,stroke:new style$3.Stroke({color:"rgb(84, 240, 240)"}),fill:new style$3.Fill({color:"rgba(84, 240, 240, 0.6)"})})});class ResultListItem extends React.Component{constructor(n){super(n);const s=n.feature.geometry.type;this.layer=getLayer({serviceType:"LocalVector",visible:!0,geometryType:s,style:style$2,zIndex:1e3});const d=new GeoJSON().readFeatures(n.feature,{dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"});this.layer.getSource().addFeatures(d),this.handleClick=this.handleClick.bind(this),this.handleMouseOut=this.handleMouseOut.bind(this),this.handleMouseOver=this.handleMouseOver.bind(this)}componentWillUnmount(){const{map:n}=this.props;n.removeLayer(this.layer)}handleClick(){const{doOpenIdentifyDetails:n,feature:s}=this.props;n(s,this.layer)}handleMouseOver(){const{map:n}=this.props;n.addLayer(this.layer)}handleMouseOut(){const{map:n}=this.props;n.removeLayer(this.layer)}render(){const{feature:n}=this.props,s=Object.keys(n.properties)[0]||"No Properties",d=n.properties[s];return jsxRuntimeExports.jsx("li",{onClick:this.handleClick,onMouseOver:this.handleMouseOver,onMouseOut:this.handleMouseOut,className:"cm-list-group-item pointer overflow-ellipsis",style:{margin:"3px",padding:"2px",cursor:"pointer"},title:"View More",children:jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx("span",{className:"col-sm-2",children:jsxRuntimeExports.jsx("i",{className:"mdi mdi-plus icon-inline"})}),jsxRuntimeExports.jsx("span",{className:"col-sm-4 overflow-sidebar-identify",children:s}),isHtml(d)?jsxRuntimeExports.jsx("span",{className:"col-sm-6",dangerouslySetInnerHTML:{__html:d}}):jsxRuntimeExports.jsx("span",{className:"col-sm-6",children:d})]})})}}const IdentifySidebarListItem=connect("selectMap","doOpenIdentifyDetails",ResultListItem);class IdentifySidebarList extends React.Component{constructor(n){super(n),this.state={expanded:!0},this.toggleExpanded=this.toggleExpanded.bind(this),this.renderList=this.renderList.bind(this)}toggleExpanded(n){this.setState({expanded:!this.state.expanded})}renderList(n){const{expanded:s}=this.state;return s?n.length?jsxRuntimeExports.jsx("ul",{className:"cm-list-group",children:n.map((d,m)=>jsxRuntimeExports.jsx(IdentifySidebarListItem,{feature:d},m))}):jsxRuntimeExports.jsx("div",{children:"No features at this location"}):null}render(){const{expanded:n}=this.state,{displayName:s,features:d}=this.props,m=classnames({mdi:!0,"mdi-menu-right":!n,"mdi-menu-down":n,"icon-inline":!0});return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("p",{onClick:this.toggleExpanded,className:"overflow-ellipsis",style:{cursor:"pointer",whiteSpace:"nowrap"},children:[jsxRuntimeExports.jsx("i",{className:m}),jsxRuntimeExports.jsx("strong",{children:s})]}),this.renderList(d)]})}}var _listCacheClear,hasRequired_listCacheClear;function require_listCacheClear(){if(hasRequired_listCacheClear)return _listCacheClear;hasRequired_listCacheClear=1;function t(){this.__data__=[],this.size=0}return _listCacheClear=t,_listCacheClear}var eq_1,hasRequiredEq;function requireEq(){if(hasRequiredEq)return eq_1;hasRequiredEq=1;function t(n,s){return n===s||n!==n&&s!==s}return eq_1=t,eq_1}var _assocIndexOf,hasRequired_assocIndexOf;function require_assocIndexOf(){if(hasRequired_assocIndexOf)return _assocIndexOf;hasRequired_assocIndexOf=1;var t=requireEq();function n(s,d){for(var m=s.length;m--;)if(t(s[m][0],d))return m;return-1}return _assocIndexOf=n,_assocIndexOf}var _listCacheDelete,hasRequired_listCacheDelete;function require_listCacheDelete(){if(hasRequired_listCacheDelete)return _listCacheDelete;hasRequired_listCacheDelete=1;var t=require_assocIndexOf(),n=Array.prototype,s=n.splice;function d(m){var v=this.__data__,S=t(v,m);if(S<0)return!1;var C=v.length-1;return S==C?v.pop():s.call(v,S,1),--this.size,!0}return _listCacheDelete=d,_listCacheDelete}var _listCacheGet,hasRequired_listCacheGet;function require_listCacheGet(){if(hasRequired_listCacheGet)return _listCacheGet;hasRequired_listCacheGet=1;var t=require_assocIndexOf();function n(s){var d=this.__data__,m=t(d,s);return m<0?void 0:d[m][1]}return _listCacheGet=n,_listCacheGet}var _listCacheHas,hasRequired_listCacheHas;function require_listCacheHas(){if(hasRequired_listCacheHas)return _listCacheHas;hasRequired_listCacheHas=1;var t=require_assocIndexOf();function n(s){return t(this.__data__,s)>-1}return _listCacheHas=n,_listCacheHas}var _listCacheSet,hasRequired_listCacheSet;function require_listCacheSet(){if(hasRequired_listCacheSet)return _listCacheSet;hasRequired_listCacheSet=1;var t=require_assocIndexOf();function n(s,d){var m=this.__data__,v=t(m,s);return v<0?(++this.size,m.push([s,d])):m[v][1]=d,this}return _listCacheSet=n,_listCacheSet}var _ListCache,hasRequired_ListCache;function require_ListCache(){if(hasRequired_ListCache)return _ListCache;hasRequired_ListCache=1;var t=require_listCacheClear(),n=require_listCacheDelete(),s=require_listCacheGet(),d=require_listCacheHas(),m=require_listCacheSet();function v(S){var C=-1,I=S==null?0:S.length;for(this.clear();++C<I;){var N=S[C];this.set(N[0],N[1])}}return v.prototype.clear=t,v.prototype.delete=n,v.prototype.get=s,v.prototype.has=d,v.prototype.set=m,_ListCache=v,_ListCache}var _stackClear,hasRequired_stackClear;function require_stackClear(){if(hasRequired_stackClear)return _stackClear;hasRequired_stackClear=1;var t=require_ListCache();function n(){this.__data__=new t,this.size=0}return _stackClear=n,_stackClear}var _stackDelete,hasRequired_stackDelete;function require_stackDelete(){if(hasRequired_stackDelete)return _stackDelete;hasRequired_stackDelete=1;function t(n){var s=this.__data__,d=s.delete(n);return this.size=s.size,d}return _stackDelete=t,_stackDelete}var _stackGet,hasRequired_stackGet;function require_stackGet(){if(hasRequired_stackGet)return _stackGet;hasRequired_stackGet=1;function t(n){return this.__data__.get(n)}return _stackGet=t,_stackGet}var _stackHas,hasRequired_stackHas;function require_stackHas(){if(hasRequired_stackHas)return _stackHas;hasRequired_stackHas=1;function t(n){return this.__data__.has(n)}return _stackHas=t,_stackHas}var isFunction_1,hasRequiredIsFunction;function requireIsFunction(){if(hasRequiredIsFunction)return isFunction_1;hasRequiredIsFunction=1;var t=require_baseGetTag(),n=requireIsObject(),s="[object AsyncFunction]",d="[object Function]",m="[object GeneratorFunction]",v="[object Proxy]";function S(C){if(!n(C))return!1;var I=t(C);return I==d||I==m||I==s||I==v}return isFunction_1=S,isFunction_1}var _coreJsData,hasRequired_coreJsData;function require_coreJsData(){if(hasRequired_coreJsData)return _coreJsData;hasRequired_coreJsData=1;var t=require_root(),n=t["__core-js_shared__"];return _coreJsData=n,_coreJsData}var _isMasked,hasRequired_isMasked;function require_isMasked(){if(hasRequired_isMasked)return _isMasked;hasRequired_isMasked=1;var t=require_coreJsData(),n=(function(){var d=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""})();function s(d){return!!n&&n in d}return _isMasked=s,_isMasked}var _toSource,hasRequired_toSource;function require_toSource(){if(hasRequired_toSource)return _toSource;hasRequired_toSource=1;var t=Function.prototype,n=t.toString;function s(d){if(d!=null){try{return n.call(d)}catch{}try{return d+""}catch{}}return""}return _toSource=s,_toSource}var _baseIsNative,hasRequired_baseIsNative;function require_baseIsNative(){if(hasRequired_baseIsNative)return _baseIsNative;hasRequired_baseIsNative=1;var t=requireIsFunction(),n=require_isMasked(),s=requireIsObject(),d=require_toSource(),m=/[\\^$.*+?()[\]{}|]/g,v=/^\[object .+?Constructor\]$/,S=Function.prototype,C=Object.prototype,I=S.toString,N=C.hasOwnProperty,M=RegExp("^"+I.call(N).replace(m,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function k(z){if(!s(z)||n(z))return!1;var V=t(z)?M:v;return V.test(d(z))}return _baseIsNative=k,_baseIsNative}var _getValue,hasRequired_getValue;function require_getValue(){if(hasRequired_getValue)return _getValue;hasRequired_getValue=1;function t(n,s){return n?.[s]}return _getValue=t,_getValue}var _getNative,hasRequired_getNative;function require_getNative(){if(hasRequired_getNative)return _getNative;hasRequired_getNative=1;var t=require_baseIsNative(),n=require_getValue();function s(d,m){var v=n(d,m);return t(v)?v:void 0}return _getNative=s,_getNative}var _Map,hasRequired_Map;function require_Map(){if(hasRequired_Map)return _Map;hasRequired_Map=1;var t=require_getNative(),n=require_root(),s=t(n,"Map");return _Map=s,_Map}var _nativeCreate,hasRequired_nativeCreate;function require_nativeCreate(){if(hasRequired_nativeCreate)return _nativeCreate;hasRequired_nativeCreate=1;var t=require_getNative(),n=t(Object,"create");return _nativeCreate=n,_nativeCreate}var _hashClear,hasRequired_hashClear;function require_hashClear(){if(hasRequired_hashClear)return _hashClear;hasRequired_hashClear=1;var t=require_nativeCreate();function n(){this.__data__=t?t(null):{},this.size=0}return _hashClear=n,_hashClear}var _hashDelete,hasRequired_hashDelete;function require_hashDelete(){if(hasRequired_hashDelete)return _hashDelete;hasRequired_hashDelete=1;function t(n){var s=this.has(n)&&delete this.__data__[n];return this.size-=s?1:0,s}return _hashDelete=t,_hashDelete}var _hashGet,hasRequired_hashGet;function require_hashGet(){if(hasRequired_hashGet)return _hashGet;hasRequired_hashGet=1;var t=require_nativeCreate(),n="__lodash_hash_undefined__",s=Object.prototype,d=s.hasOwnProperty;function m(v){var S=this.__data__;if(t){var C=S[v];return C===n?void 0:C}return d.call(S,v)?S[v]:void 0}return _hashGet=m,_hashGet}var _hashHas,hasRequired_hashHas;function require_hashHas(){if(hasRequired_hashHas)return _hashHas;hasRequired_hashHas=1;var t=require_nativeCreate(),n=Object.prototype,s=n.hasOwnProperty;function d(m){var v=this.__data__;return t?v[m]!==void 0:s.call(v,m)}return _hashHas=d,_hashHas}var _hashSet,hasRequired_hashSet;function require_hashSet(){if(hasRequired_hashSet)return _hashSet;hasRequired_hashSet=1;var t=require_nativeCreate(),n="__lodash_hash_undefined__";function s(d,m){var v=this.__data__;return this.size+=this.has(d)?0:1,v[d]=t&&m===void 0?n:m,this}return _hashSet=s,_hashSet}var _Hash,hasRequired_Hash;function require_Hash(){if(hasRequired_Hash)return _Hash;hasRequired_Hash=1;var t=require_hashClear(),n=require_hashDelete(),s=require_hashGet(),d=require_hashHas(),m=require_hashSet();function v(S){var C=-1,I=S==null?0:S.length;for(this.clear();++C<I;){var N=S[C];this.set(N[0],N[1])}}return v.prototype.clear=t,v.prototype.delete=n,v.prototype.get=s,v.prototype.has=d,v.prototype.set=m,_Hash=v,_Hash}var _mapCacheClear,hasRequired_mapCacheClear;function require_mapCacheClear(){if(hasRequired_mapCacheClear)return _mapCacheClear;hasRequired_mapCacheClear=1;var t=require_Hash(),n=require_ListCache(),s=require_Map();function d(){this.size=0,this.__data__={hash:new t,map:new(s||n),string:new t}}return _mapCacheClear=d,_mapCacheClear}var _isKeyable,hasRequired_isKeyable;function require_isKeyable(){if(hasRequired_isKeyable)return _isKeyable;hasRequired_isKeyable=1;function t(n){var s=typeof n;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?n!=="__proto__":n===null}return _isKeyable=t,_isKeyable}var _getMapData,hasRequired_getMapData;function require_getMapData(){if(hasRequired_getMapData)return _getMapData;hasRequired_getMapData=1;var t=require_isKeyable();function n(s,d){var m=s.__data__;return t(d)?m[typeof d=="string"?"string":"hash"]:m.map}return _getMapData=n,_getMapData}var _mapCacheDelete,hasRequired_mapCacheDelete;function require_mapCacheDelete(){if(hasRequired_mapCacheDelete)return _mapCacheDelete;hasRequired_mapCacheDelete=1;var t=require_getMapData();function n(s){var d=t(this,s).delete(s);return this.size-=d?1:0,d}return _mapCacheDelete=n,_mapCacheDelete}var _mapCacheGet,hasRequired_mapCacheGet;function require_mapCacheGet(){if(hasRequired_mapCacheGet)return _mapCacheGet;hasRequired_mapCacheGet=1;var t=require_getMapData();function n(s){return t(this,s).get(s)}return _mapCacheGet=n,_mapCacheGet}var _mapCacheHas,hasRequired_mapCacheHas;function require_mapCacheHas(){if(hasRequired_mapCacheHas)return _mapCacheHas;hasRequired_mapCacheHas=1;var t=require_getMapData();function n(s){return t(this,s).has(s)}return _mapCacheHas=n,_mapCacheHas}var _mapCacheSet,hasRequired_mapCacheSet;function require_mapCacheSet(){if(hasRequired_mapCacheSet)return _mapCacheSet;hasRequired_mapCacheSet=1;var t=require_getMapData();function n(s,d){var m=t(this,s),v=m.size;return m.set(s,d),this.size+=m.size==v?0:1,this}return _mapCacheSet=n,_mapCacheSet}var _MapCache,hasRequired_MapCache;function require_MapCache(){if(hasRequired_MapCache)return _MapCache;hasRequired_MapCache=1;var t=require_mapCacheClear(),n=require_mapCacheDelete(),s=require_mapCacheGet(),d=require_mapCacheHas(),m=require_mapCacheSet();function v(S){var C=-1,I=S==null?0:S.length;for(this.clear();++C<I;){var N=S[C];this.set(N[0],N[1])}}return v.prototype.clear=t,v.prototype.delete=n,v.prototype.get=s,v.prototype.has=d,v.prototype.set=m,_MapCache=v,_MapCache}var _stackSet,hasRequired_stackSet;function require_stackSet(){if(hasRequired_stackSet)return _stackSet;hasRequired_stackSet=1;var t=require_ListCache(),n=require_Map(),s=require_MapCache(),d=200;function m(v,S){var C=this.__data__;if(C instanceof t){var I=C.__data__;if(!n||I.length<d-1)return I.push([v,S]),this.size=++C.size,this;C=this.__data__=new s(I)}return C.set(v,S),this.size=C.size,this}return _stackSet=m,_stackSet}var _Stack,hasRequired_Stack;function require_Stack(){if(hasRequired_Stack)return _Stack;hasRequired_Stack=1;var t=require_ListCache(),n=require_stackClear(),s=require_stackDelete(),d=require_stackGet(),m=require_stackHas(),v=require_stackSet();function S(C){var I=this.__data__=new t(C);this.size=I.size}return S.prototype.clear=n,S.prototype.delete=s,S.prototype.get=d,S.prototype.has=m,S.prototype.set=v,_Stack=S,_Stack}var _setCacheAdd,hasRequired_setCacheAdd;function require_setCacheAdd(){if(hasRequired_setCacheAdd)return _setCacheAdd;hasRequired_setCacheAdd=1;var t="__lodash_hash_undefined__";function n(s){return this.__data__.set(s,t),this}return _setCacheAdd=n,_setCacheAdd}var _setCacheHas,hasRequired_setCacheHas;function require_setCacheHas(){if(hasRequired_setCacheHas)return _setCacheHas;hasRequired_setCacheHas=1;function t(n){return this.__data__.has(n)}return _setCacheHas=t,_setCacheHas}var _SetCache,hasRequired_SetCache;function require_SetCache(){if(hasRequired_SetCache)return _SetCache;hasRequired_SetCache=1;var t=require_MapCache(),n=require_setCacheAdd(),s=require_setCacheHas();function d(m){var v=-1,S=m==null?0:m.length;for(this.__data__=new t;++v<S;)this.add(m[v])}return d.prototype.add=d.prototype.push=n,d.prototype.has=s,_SetCache=d,_SetCache}var _arraySome,hasRequired_arraySome;function require_arraySome(){if(hasRequired_arraySome)return _arraySome;hasRequired_arraySome=1;function t(n,s){for(var d=-1,m=n==null?0:n.length;++d<m;)if(s(n[d],d,n))return!0;return!1}return _arraySome=t,_arraySome}var _cacheHas,hasRequired_cacheHas;function require_cacheHas(){if(hasRequired_cacheHas)return _cacheHas;hasRequired_cacheHas=1;function t(n,s){return n.has(s)}return _cacheHas=t,_cacheHas}var _equalArrays,hasRequired_equalArrays;function require_equalArrays(){if(hasRequired_equalArrays)return _equalArrays;hasRequired_equalArrays=1;var t=require_SetCache(),n=require_arraySome(),s=require_cacheHas(),d=1,m=2;function v(S,C,I,N,M,k){var z=I&d,V=S.length,H=C.length;if(V!=H&&!(z&&H>V))return!1;var W=k.get(S),J=k.get(C);if(W&&J)return W==C&&J==S;var K=-1,re=!0,te=I&m?new t:void 0;for(k.set(S,C),k.set(C,S);++K<V;){var ue=S[K],se=C[K];if(N)var ge=z?N(se,ue,K,C,S,k):N(ue,se,K,S,C,k);if(ge!==void 0){if(ge)continue;re=!1;break}if(te){if(!n(C,function(pe,Ee){if(!s(te,Ee)&&(ue===pe||M(ue,pe,I,N,k)))return te.push(Ee)})){re=!1;break}}else if(!(ue===se||M(ue,se,I,N,k))){re=!1;break}}return k.delete(S),k.delete(C),re}return _equalArrays=v,_equalArrays}var _Uint8Array,hasRequired_Uint8Array;function require_Uint8Array(){if(hasRequired_Uint8Array)return _Uint8Array;hasRequired_Uint8Array=1;var t=require_root(),n=t.Uint8Array;return _Uint8Array=n,_Uint8Array}var _mapToArray,hasRequired_mapToArray;function require_mapToArray(){if(hasRequired_mapToArray)return _mapToArray;hasRequired_mapToArray=1;function t(n){var s=-1,d=Array(n.size);return n.forEach(function(m,v){d[++s]=[v,m]}),d}return _mapToArray=t,_mapToArray}var _setToArray,hasRequired_setToArray;function require_setToArray(){if(hasRequired_setToArray)return _setToArray;hasRequired_setToArray=1;function t(n){var s=-1,d=Array(n.size);return n.forEach(function(m){d[++s]=m}),d}return _setToArray=t,_setToArray}var _equalByTag,hasRequired_equalByTag;function require_equalByTag(){if(hasRequired_equalByTag)return _equalByTag;hasRequired_equalByTag=1;var t=require_Symbol(),n=require_Uint8Array(),s=requireEq(),d=require_equalArrays(),m=require_mapToArray(),v=require_setToArray(),S=1,C=2,I="[object Boolean]",N="[object Date]",M="[object Error]",k="[object Map]",z="[object Number]",V="[object RegExp]",H="[object Set]",W="[object String]",J="[object Symbol]",K="[object ArrayBuffer]",re="[object DataView]",te=t?t.prototype:void 0,ue=te?te.valueOf:void 0;function se(ge,pe,Ee,ce,me,Re,Ne){switch(Ee){case re:if(ge.byteLength!=pe.byteLength||ge.byteOffset!=pe.byteOffset)return!1;ge=ge.buffer,pe=pe.buffer;case K:return!(ge.byteLength!=pe.byteLength||!Re(new n(ge),new n(pe)));case I:case N:case z:return s(+ge,+pe);case M:return ge.name==pe.name&&ge.message==pe.message;case V:case W:return ge==pe+"";case k:var we=m;case H:var De=ce&S;if(we||(we=v),ge.size!=pe.size&&!De)return!1;var Ge=Ne.get(ge);if(Ge)return Ge==pe;ce|=C,Ne.set(ge,pe);var de=d(we(ge),we(pe),ce,me,Re,Ne);return Ne.delete(ge),de;case J:if(ue)return ue.call(ge)==ue.call(pe)}return!1}return _equalByTag=se,_equalByTag}var _baseGetAllKeys,hasRequired_baseGetAllKeys;function require_baseGetAllKeys(){if(hasRequired_baseGetAllKeys)return _baseGetAllKeys;hasRequired_baseGetAllKeys=1;var t=require_arrayPush(),n=requireIsArray();function s(d,m,v){var S=m(d);return n(d)?S:t(S,v(d))}return _baseGetAllKeys=s,_baseGetAllKeys}var _arrayFilter,hasRequired_arrayFilter;function require_arrayFilter(){if(hasRequired_arrayFilter)return _arrayFilter;hasRequired_arrayFilter=1;function t(n,s){for(var d=-1,m=n==null?0:n.length,v=0,S=[];++d<m;){var C=n[d];s(C,d,n)&&(S[v++]=C)}return S}return _arrayFilter=t,_arrayFilter}var stubArray_1,hasRequiredStubArray;function requireStubArray(){if(hasRequiredStubArray)return stubArray_1;hasRequiredStubArray=1;function t(){return[]}return stubArray_1=t,stubArray_1}var _getSymbols,hasRequired_getSymbols;function require_getSymbols(){if(hasRequired_getSymbols)return _getSymbols;hasRequired_getSymbols=1;var t=require_arrayFilter(),n=requireStubArray(),s=Object.prototype,d=s.propertyIsEnumerable,m=Object.getOwnPropertySymbols,v=m?function(S){return S==null?[]:(S=Object(S),t(m(S),function(C){return d.call(S,C)}))}:n;return _getSymbols=v,_getSymbols}var _baseTimes,hasRequired_baseTimes;function require_baseTimes(){if(hasRequired_baseTimes)return _baseTimes;hasRequired_baseTimes=1;function t(n,s){for(var d=-1,m=Array(n);++d<n;)m[d]=s(d);return m}return _baseTimes=t,_baseTimes}var isBuffer={exports:{}},stubFalse_1,hasRequiredStubFalse;function requireStubFalse(){if(hasRequiredStubFalse)return stubFalse_1;hasRequiredStubFalse=1;function t(){return!1}return stubFalse_1=t,stubFalse_1}isBuffer.exports;var hasRequiredIsBuffer;function requireIsBuffer(){return hasRequiredIsBuffer||(hasRequiredIsBuffer=1,(function(t,n){var s=require_root(),d=requireStubFalse(),m=n&&!n.nodeType&&n,v=m&&!0&&t&&!t.nodeType&&t,S=v&&v.exports===m,C=S?s.Buffer:void 0,I=C?C.isBuffer:void 0,N=I||d;t.exports=N})(isBuffer,isBuffer.exports)),isBuffer.exports}var _isIndex,hasRequired_isIndex;function require_isIndex(){if(hasRequired_isIndex)return _isIndex;hasRequired_isIndex=1;var t=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function s(d,m){var v=typeof d;return m=m??t,!!m&&(v=="number"||v!="symbol"&&n.test(d))&&d>-1&&d%1==0&&d<m}return _isIndex=s,_isIndex}var isLength_1,hasRequiredIsLength;function requireIsLength(){if(hasRequiredIsLength)return isLength_1;hasRequiredIsLength=1;var t=9007199254740991;function n(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=t}return isLength_1=n,isLength_1}var _baseIsTypedArray,hasRequired_baseIsTypedArray;function require_baseIsTypedArray(){if(hasRequired_baseIsTypedArray)return _baseIsTypedArray;hasRequired_baseIsTypedArray=1;var t=require_baseGetTag(),n=requireIsLength(),s=requireIsObjectLike(),d="[object Arguments]",m="[object Array]",v="[object Boolean]",S="[object Date]",C="[object Error]",I="[object Function]",N="[object Map]",M="[object Number]",k="[object Object]",z="[object RegExp]",V="[object Set]",H="[object String]",W="[object WeakMap]",J="[object ArrayBuffer]",K="[object DataView]",re="[object Float32Array]",te="[object Float64Array]",ue="[object Int8Array]",se="[object Int16Array]",ge="[object Int32Array]",pe="[object Uint8Array]",Ee="[object Uint8ClampedArray]",ce="[object Uint16Array]",me="[object Uint32Array]",Re={};Re[re]=Re[te]=Re[ue]=Re[se]=Re[ge]=Re[pe]=Re[Ee]=Re[ce]=Re[me]=!0,Re[d]=Re[m]=Re[J]=Re[v]=Re[K]=Re[S]=Re[C]=Re[I]=Re[N]=Re[M]=Re[k]=Re[z]=Re[V]=Re[H]=Re[W]=!1;function Ne(we){return s(we)&&n(we.length)&&!!Re[t(we)]}return _baseIsTypedArray=Ne,_baseIsTypedArray}var _baseUnary,hasRequired_baseUnary;function require_baseUnary(){if(hasRequired_baseUnary)return _baseUnary;hasRequired_baseUnary=1;function t(n){return function(s){return n(s)}}return _baseUnary=t,_baseUnary}var _nodeUtil={exports:{}};_nodeUtil.exports;var hasRequired_nodeUtil;function require_nodeUtil(){return hasRequired_nodeUtil||(hasRequired_nodeUtil=1,(function(t,n){var s=require_freeGlobal(),d=n&&!n.nodeType&&n,m=d&&!0&&t&&!t.nodeType&&t,v=m&&m.exports===d,S=v&&s.process,C=(function(){try{var I=m&&m.require&&m.require("util").types;return I||S&&S.binding&&S.binding("util")}catch{}})();t.exports=C})(_nodeUtil,_nodeUtil.exports)),_nodeUtil.exports}var isTypedArray_1,hasRequiredIsTypedArray;function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray_1;hasRequiredIsTypedArray=1;var t=require_baseIsTypedArray(),n=require_baseUnary(),s=require_nodeUtil(),d=s&&s.isTypedArray,m=d?n(d):t;return isTypedArray_1=m,isTypedArray_1}var _arrayLikeKeys,hasRequired_arrayLikeKeys;function require_arrayLikeKeys(){if(hasRequired_arrayLikeKeys)return _arrayLikeKeys;hasRequired_arrayLikeKeys=1;var t=require_baseTimes(),n=requireIsArguments(),s=requireIsArray(),d=requireIsBuffer(),m=require_isIndex(),v=requireIsTypedArray(),S=Object.prototype,C=S.hasOwnProperty;function I(N,M){var k=s(N),z=!k&&n(N),V=!k&&!z&&d(N),H=!k&&!z&&!V&&v(N),W=k||z||V||H,J=W?t(N.length,String):[],K=J.length;for(var re in N)(M||C.call(N,re))&&!(W&&(re=="length"||V&&(re=="offset"||re=="parent")||H&&(re=="buffer"||re=="byteLength"||re=="byteOffset")||m(re,K)))&&J.push(re);return J}return _arrayLikeKeys=I,_arrayLikeKeys}var _isPrototype,hasRequired_isPrototype;function require_isPrototype(){if(hasRequired_isPrototype)return _isPrototype;hasRequired_isPrototype=1;var t=Object.prototype;function n(s){var d=s&&s.constructor,m=typeof d=="function"&&d.prototype||t;return s===m}return _isPrototype=n,_isPrototype}var _overArg,hasRequired_overArg;function require_overArg(){if(hasRequired_overArg)return _overArg;hasRequired_overArg=1;function t(n,s){return function(d){return n(s(d))}}return _overArg=t,_overArg}var _nativeKeys,hasRequired_nativeKeys;function require_nativeKeys(){if(hasRequired_nativeKeys)return _nativeKeys;hasRequired_nativeKeys=1;var t=require_overArg(),n=t(Object.keys,Object);return _nativeKeys=n,_nativeKeys}var _baseKeys,hasRequired_baseKeys;function require_baseKeys(){if(hasRequired_baseKeys)return _baseKeys;hasRequired_baseKeys=1;var t=require_isPrototype(),n=require_nativeKeys(),s=Object.prototype,d=s.hasOwnProperty;function m(v){if(!t(v))return n(v);var S=[];for(var C in Object(v))d.call(v,C)&&C!="constructor"&&S.push(C);return S}return _baseKeys=m,_baseKeys}var isArrayLike_1,hasRequiredIsArrayLike;function requireIsArrayLike(){if(hasRequiredIsArrayLike)return isArrayLike_1;hasRequiredIsArrayLike=1;var t=requireIsFunction(),n=requireIsLength();function s(d){return d!=null&&n(d.length)&&!t(d)}return isArrayLike_1=s,isArrayLike_1}var keys_1,hasRequiredKeys;function requireKeys(){if(hasRequiredKeys)return keys_1;hasRequiredKeys=1;var t=require_arrayLikeKeys(),n=require_baseKeys(),s=requireIsArrayLike();function d(m){return s(m)?t(m):n(m)}return keys_1=d,keys_1}var _getAllKeys,hasRequired_getAllKeys;function require_getAllKeys(){if(hasRequired_getAllKeys)return _getAllKeys;hasRequired_getAllKeys=1;var t=require_baseGetAllKeys(),n=require_getSymbols(),s=requireKeys();function d(m){return t(m,s,n)}return _getAllKeys=d,_getAllKeys}var _equalObjects,hasRequired_equalObjects;function require_equalObjects(){if(hasRequired_equalObjects)return _equalObjects;hasRequired_equalObjects=1;var t=require_getAllKeys(),n=1,s=Object.prototype,d=s.hasOwnProperty;function m(v,S,C,I,N,M){var k=C&n,z=t(v),V=z.length,H=t(S),W=H.length;if(V!=W&&!k)return!1;for(var J=V;J--;){var K=z[J];if(!(k?K in S:d.call(S,K)))return!1}var re=M.get(v),te=M.get(S);if(re&&te)return re==S&&te==v;var ue=!0;M.set(v,S),M.set(S,v);for(var se=k;++J<V;){K=z[J];var ge=v[K],pe=S[K];if(I)var Ee=k?I(pe,ge,K,S,v,M):I(ge,pe,K,v,S,M);if(!(Ee===void 0?ge===pe||N(ge,pe,C,I,M):Ee)){ue=!1;break}se||(se=K=="constructor")}if(ue&&!se){var ce=v.constructor,me=S.constructor;ce!=me&&"constructor"in v&&"constructor"in S&&!(typeof ce=="function"&&ce instanceof ce&&typeof me=="function"&&me instanceof me)&&(ue=!1)}return M.delete(v),M.delete(S),ue}return _equalObjects=m,_equalObjects}var _DataView,hasRequired_DataView;function require_DataView(){if(hasRequired_DataView)return _DataView;hasRequired_DataView=1;var t=require_getNative(),n=require_root(),s=t(n,"DataView");return _DataView=s,_DataView}var _Promise,hasRequired_Promise;function require_Promise(){if(hasRequired_Promise)return _Promise;hasRequired_Promise=1;var t=require_getNative(),n=require_root(),s=t(n,"Promise");return _Promise=s,_Promise}var _Set,hasRequired_Set;function require_Set(){if(hasRequired_Set)return _Set;hasRequired_Set=1;var t=require_getNative(),n=require_root(),s=t(n,"Set");return _Set=s,_Set}var _WeakMap,hasRequired_WeakMap;function require_WeakMap(){if(hasRequired_WeakMap)return _WeakMap;hasRequired_WeakMap=1;var t=require_getNative(),n=require_root(),s=t(n,"WeakMap");return _WeakMap=s,_WeakMap}var _getTag,hasRequired_getTag;function require_getTag(){if(hasRequired_getTag)return _getTag;hasRequired_getTag=1;var t=require_DataView(),n=require_Map(),s=require_Promise(),d=require_Set(),m=require_WeakMap(),v=require_baseGetTag(),S=require_toSource(),C="[object Map]",I="[object Object]",N="[object Promise]",M="[object Set]",k="[object WeakMap]",z="[object DataView]",V=S(t),H=S(n),W=S(s),J=S(d),K=S(m),re=v;return(t&&re(new t(new ArrayBuffer(1)))!=z||n&&re(new n)!=C||s&&re(s.resolve())!=N||d&&re(new d)!=M||m&&re(new m)!=k)&&(re=function(te){var ue=v(te),se=ue==I?te.constructor:void 0,ge=se?S(se):"";if(ge)switch(ge){case V:return z;case H:return C;case W:return N;case J:return M;case K:return k}return ue}),_getTag=re,_getTag}var _baseIsEqualDeep,hasRequired_baseIsEqualDeep;function require_baseIsEqualDeep(){if(hasRequired_baseIsEqualDeep)return _baseIsEqualDeep;hasRequired_baseIsEqualDeep=1;var t=require_Stack(),n=require_equalArrays(),s=require_equalByTag(),d=require_equalObjects(),m=require_getTag(),v=requireIsArray(),S=requireIsBuffer(),C=requireIsTypedArray(),I=1,N="[object Arguments]",M="[object Array]",k="[object Object]",z=Object.prototype,V=z.hasOwnProperty;function H(W,J,K,re,te,ue){var se=v(W),ge=v(J),pe=se?M:m(W),Ee=ge?M:m(J);pe=pe==N?k:pe,Ee=Ee==N?k:Ee;var ce=pe==k,me=Ee==k,Re=pe==Ee;if(Re&&S(W)){if(!S(J))return!1;se=!0,ce=!1}if(Re&&!ce)return ue||(ue=new t),se||C(W)?n(W,J,K,re,te,ue):s(W,J,pe,K,re,te,ue);if(!(K&I)){var Ne=ce&&V.call(W,"__wrapped__"),we=me&&V.call(J,"__wrapped__");if(Ne||we){var De=Ne?W.value():W,Ge=we?J.value():J;return ue||(ue=new t),te(De,Ge,K,re,ue)}}return Re?(ue||(ue=new t),d(W,J,K,re,te,ue)):!1}return _baseIsEqualDeep=H,_baseIsEqualDeep}var _baseIsEqual,hasRequired_baseIsEqual;function require_baseIsEqual(){if(hasRequired_baseIsEqual)return _baseIsEqual;hasRequired_baseIsEqual=1;var t=require_baseIsEqualDeep(),n=requireIsObjectLike();function s(d,m,v,S,C){return d===m?!0:d==null||m==null||!n(d)&&!n(m)?d!==d&&m!==m:t(d,m,v,S,s,C)}return _baseIsEqual=s,_baseIsEqual}var _baseIsMatch,hasRequired_baseIsMatch;function require_baseIsMatch(){if(hasRequired_baseIsMatch)return _baseIsMatch;hasRequired_baseIsMatch=1;var t=require_Stack(),n=require_baseIsEqual(),s=1,d=2;function m(v,S,C,I){var N=C.length,M=N,k=!I;if(v==null)return!M;for(v=Object(v);N--;){var z=C[N];if(k&&z[2]?z[1]!==v[z[0]]:!(z[0]in v))return!1}for(;++N<M;){z=C[N];var V=z[0],H=v[V],W=z[1];if(k&&z[2]){if(H===void 0&&!(V in v))return!1}else{var J=new t;if(I)var K=I(H,W,V,v,S,J);if(!(K===void 0?n(W,H,s|d,I,J):K))return!1}}return!0}return _baseIsMatch=m,_baseIsMatch}var _isStrictComparable,hasRequired_isStrictComparable;function require_isStrictComparable(){if(hasRequired_isStrictComparable)return _isStrictComparable;hasRequired_isStrictComparable=1;var t=requireIsObject();function n(s){return s===s&&!t(s)}return _isStrictComparable=n,_isStrictComparable}var _getMatchData,hasRequired_getMatchData;function require_getMatchData(){if(hasRequired_getMatchData)return _getMatchData;hasRequired_getMatchData=1;var t=require_isStrictComparable(),n=requireKeys();function s(d){for(var m=n(d),v=m.length;v--;){var S=m[v],C=d[S];m[v]=[S,C,t(C)]}return m}return _getMatchData=s,_getMatchData}var _matchesStrictComparable,hasRequired_matchesStrictComparable;function require_matchesStrictComparable(){if(hasRequired_matchesStrictComparable)return _matchesStrictComparable;hasRequired_matchesStrictComparable=1;function t(n,s){return function(d){return d==null?!1:d[n]===s&&(s!==void 0||n in Object(d))}}return _matchesStrictComparable=t,_matchesStrictComparable}var _baseMatches,hasRequired_baseMatches;function require_baseMatches(){if(hasRequired_baseMatches)return _baseMatches;hasRequired_baseMatches=1;var t=require_baseIsMatch(),n=require_getMatchData(),s=require_matchesStrictComparable();function d(m){var v=n(m);return v.length==1&&v[0][2]?s(v[0][0],v[0][1]):function(S){return S===m||t(S,m,v)}}return _baseMatches=d,_baseMatches}var _isKey,hasRequired_isKey;function require_isKey(){if(hasRequired_isKey)return _isKey;hasRequired_isKey=1;var t=requireIsArray(),n=requireIsSymbol(),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/;function m(v,S){if(t(v))return!1;var C=typeof v;return C=="number"||C=="symbol"||C=="boolean"||v==null||n(v)?!0:d.test(v)||!s.test(v)||S!=null&&v in Object(S)}return _isKey=m,_isKey}var memoize_1,hasRequiredMemoize;function requireMemoize(){if(hasRequiredMemoize)return memoize_1;hasRequiredMemoize=1;var t=require_MapCache(),n="Expected a function";function s(d,m){if(typeof d!="function"||m!=null&&typeof m!="function")throw new TypeError(n);var v=function(){var S=arguments,C=m?m.apply(this,S):S[0],I=v.cache;if(I.has(C))return I.get(C);var N=d.apply(this,S);return v.cache=I.set(C,N)||I,N};return v.cache=new(s.Cache||t),v}return s.Cache=t,memoize_1=s,memoize_1}var _memoizeCapped,hasRequired_memoizeCapped;function require_memoizeCapped(){if(hasRequired_memoizeCapped)return _memoizeCapped;hasRequired_memoizeCapped=1;var t=requireMemoize(),n=500;function s(d){var m=t(d,function(S){return v.size===n&&v.clear(),S}),v=m.cache;return m}return _memoizeCapped=s,_memoizeCapped}var _stringToPath,hasRequired_stringToPath;function require_stringToPath(){if(hasRequired_stringToPath)return _stringToPath;hasRequired_stringToPath=1;var t=require_memoizeCapped(),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,d=t(function(m){var v=[];return m.charCodeAt(0)===46&&v.push(""),m.replace(n,function(S,C,I,N){v.push(I?N.replace(s,"$1"):C||S)}),v});return _stringToPath=d,_stringToPath}var _castPath,hasRequired_castPath;function require_castPath(){if(hasRequired_castPath)return _castPath;hasRequired_castPath=1;var t=requireIsArray(),n=require_isKey(),s=require_stringToPath(),d=requireToString();function m(v,S){return t(v)?v:n(v,S)?[v]:s(d(v))}return _castPath=m,_castPath}var _toKey,hasRequired_toKey;function require_toKey(){if(hasRequired_toKey)return _toKey;hasRequired_toKey=1;var t=requireIsSymbol();function n(s){if(typeof s=="string"||t(s))return s;var d=s+"";return d=="0"&&1/s==-1/0?"-0":d}return _toKey=n,_toKey}var _baseGet,hasRequired_baseGet;function require_baseGet(){if(hasRequired_baseGet)return _baseGet;hasRequired_baseGet=1;var t=require_castPath(),n=require_toKey();function s(d,m){m=t(m,d);for(var v=0,S=m.length;d!=null&&v<S;)d=d[n(m[v++])];return v&&v==S?d:void 0}return _baseGet=s,_baseGet}var get_1,hasRequiredGet;function requireGet(){if(hasRequiredGet)return get_1;hasRequiredGet=1;var t=require_baseGet();function n(s,d,m){var v=s==null?void 0:t(s,d);return v===void 0?m:v}return get_1=n,get_1}var _baseHasIn,hasRequired_baseHasIn;function require_baseHasIn(){if(hasRequired_baseHasIn)return _baseHasIn;hasRequired_baseHasIn=1;function t(n,s){return n!=null&&s in Object(n)}return _baseHasIn=t,_baseHasIn}var _hasPath,hasRequired_hasPath;function require_hasPath(){if(hasRequired_hasPath)return _hasPath;hasRequired_hasPath=1;var t=require_castPath(),n=requireIsArguments(),s=requireIsArray(),d=require_isIndex(),m=requireIsLength(),v=require_toKey();function S(C,I,N){I=t(I,C);for(var M=-1,k=I.length,z=!1;++M<k;){var V=v(I[M]);if(!(z=C!=null&&N(C,V)))break;C=C[V]}return z||++M!=k?z:(k=C==null?0:C.length,!!k&&m(k)&&d(V,k)&&(s(C)||n(C)))}return _hasPath=S,_hasPath}var hasIn_1,hasRequiredHasIn;function requireHasIn(){if(hasRequiredHasIn)return hasIn_1;hasRequiredHasIn=1;var t=require_baseHasIn(),n=require_hasPath();function s(d,m){return d!=null&&n(d,m,t)}return hasIn_1=s,hasIn_1}var _baseMatchesProperty,hasRequired_baseMatchesProperty;function require_baseMatchesProperty(){if(hasRequired_baseMatchesProperty)return _baseMatchesProperty;hasRequired_baseMatchesProperty=1;var t=require_baseIsEqual(),n=requireGet(),s=requireHasIn(),d=require_isKey(),m=require_isStrictComparable(),v=require_matchesStrictComparable(),S=require_toKey(),C=1,I=2;function N(M,k){return d(M)&&m(k)?v(S(M),k):function(z){var V=n(z,M);return V===void 0&&V===k?s(z,M):t(k,V,C|I)}}return _baseMatchesProperty=N,_baseMatchesProperty}var identity_1,hasRequiredIdentity;function requireIdentity(){if(hasRequiredIdentity)return identity_1;hasRequiredIdentity=1;function t(n){return n}return identity_1=t,identity_1}var _baseProperty,hasRequired_baseProperty;function require_baseProperty(){if(hasRequired_baseProperty)return _baseProperty;hasRequired_baseProperty=1;function t(n){return function(s){return s?.[n]}}return _baseProperty=t,_baseProperty}var _basePropertyDeep,hasRequired_basePropertyDeep;function require_basePropertyDeep(){if(hasRequired_basePropertyDeep)return _basePropertyDeep;hasRequired_basePropertyDeep=1;var t=require_baseGet();function n(s){return function(d){return t(d,s)}}return _basePropertyDeep=n,_basePropertyDeep}var property_1,hasRequiredProperty;function requireProperty(){if(hasRequiredProperty)return property_1;hasRequiredProperty=1;var t=require_baseProperty(),n=require_basePropertyDeep(),s=require_isKey(),d=require_toKey();function m(v){return s(v)?t(d(v)):n(v)}return property_1=m,property_1}var _baseIteratee,hasRequired_baseIteratee;function require_baseIteratee(){if(hasRequired_baseIteratee)return _baseIteratee;hasRequired_baseIteratee=1;var t=require_baseMatches(),n=require_baseMatchesProperty(),s=requireIdentity(),d=requireIsArray(),m=requireProperty();function v(S){return typeof S=="function"?S:S==null?s:typeof S=="object"?d(S)?n(S[0],S[1]):t(S):m(S)}return _baseIteratee=v,_baseIteratee}var _createFind,hasRequired_createFind;function require_createFind(){if(hasRequired_createFind)return _createFind;hasRequired_createFind=1;var t=require_baseIteratee(),n=requireIsArrayLike(),s=requireKeys();function d(m){return function(v,S,C){var I=Object(v);if(!n(v)){var N=t(S,3);v=s(v),S=function(k){return N(I[k],k,I)}}var M=m(v,S,C);return M>-1?I[N?v[M]:M]:void 0}}return _createFind=d,_createFind}var _baseFindIndex,hasRequired_baseFindIndex;function require_baseFindIndex(){if(hasRequired_baseFindIndex)return _baseFindIndex;hasRequired_baseFindIndex=1;function t(n,s,d,m){for(var v=n.length,S=d+(m?1:-1);m?S--:++S<v;)if(s(n[S],S,n))return S;return-1}return _baseFindIndex=t,_baseFindIndex}var toFinite_1,hasRequiredToFinite;function requireToFinite(){if(hasRequiredToFinite)return toFinite_1;hasRequiredToFinite=1;var t=requireToNumber(),n=1/0,s=17976931348623157e292;function d(m){if(!m)return m===0?m:0;if(m=t(m),m===n||m===-n){var v=m<0?-1:1;return v*s}return m===m?m:0}return toFinite_1=d,toFinite_1}var toInteger_1,hasRequiredToInteger;function requireToInteger(){if(hasRequiredToInteger)return toInteger_1;hasRequiredToInteger=1;var t=requireToFinite();function n(s){var d=t(s),m=d%1;return d===d?m?d-m:d:0}return toInteger_1=n,toInteger_1}var findIndex_1,hasRequiredFindIndex;function requireFindIndex(){if(hasRequiredFindIndex)return findIndex_1;hasRequiredFindIndex=1;var t=require_baseFindIndex(),n=require_baseIteratee(),s=requireToInteger(),d=Math.max;function m(v,S,C){var I=v==null?0:v.length;if(!I)return-1;var N=C==null?0:s(C);return N<0&&(N=d(I+N,0)),t(v,n(S,3),N)}return findIndex_1=m,findIndex_1}var find_1,hasRequiredFind;function requireFind(){if(hasRequiredFind)return find_1;hasRequiredFind=1;var t=require_createFind(),n=requireFindIndex(),s=t(n);return find_1=s,find_1}var findExports=requireFind();const find=getDefaultExportFromCjs$1(findExports);let IdentifySidebar$1=class extends React.Component{constructor(n){super(n),this.renderResults=this.renderResults.bind(this)}renderResults(){const{identifyResults:n,cmLayerNames:s,uidMap:d}=this.props,m=/[:](.+)/i,v=[];let S=0;return n.forEach(C=>{const I=C.dataset,N=find(s,{teamDatasetId:I}),M=N?N.displayName:d[I];Object.keys(C.result).forEach(k=>{const z=C.result[k];if(z&&z.features&&z.features.length){const V=m.exec(k),H=V&&V[1]!==M?V[0]:"";v.push(jsxRuntimeExports.jsx(IdentifySidebarList,{features:z.features,displayName:`${M}${H}`},S++))}})}),v}render(){const{primaryPanelShowClose:n,doToggleIdentifyView:s,doPrimaryPanelResize:d}=this.props,m=classnames({"sidebar-list":!n,"thin-scrollbar":!0,"sidebar-list-show-close-btn":n}),v=n?50:30;return jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsxs("div",{className:m,style:{top:v},children:[jsxRuntimeExports.jsx("div",{className:"row",children:jsxRuntimeExports.jsxs("div",{className:"col-xs-12",children:[jsxRuntimeExports.jsx("button",{type:"button",className:"cm-btn cm-btn-xs cm-btn-default pull-right",title:"RESIZE PANE",onClick:()=>{d({width:585})},children:"RESIZE PANE"}),jsxRuntimeExports.jsx("button",{type:"button",className:"cm-btn cm-btn-xs cm-btn-default pull-right",title:"TABLE VIEW",onClick:()=>{s("table")},children:"TABLE VIEW"})]})}),this.renderResults()]})})}};const IdentifySidebar=connect("selectIdentifyResults","selectCmLayerNames","selectUidMap","selectPrimaryPanelShowClose","doToggleIdentifyView","doPrimaryPanelResize",IdentifySidebar$1);let IdentifyDetails$1=class extends React.Component{constructor(n){super(n),this.renderValue=this.renderValue.bind(this)}componentDidMount(){const{map:n,identifyDetailLayer:s}=this.props;n.addLayer(s)}componentWillUnmount(){const{map:n,identifyDetailLayer:s}=this.props;n.removeLayer(s)}renderValue(n){return n&&typeof n=="string"?isHtml(n)?jsxRuntimeExports.jsx("td",{className:"col-sm-8 overflow-sidebar-identify",dangerouslySetInnerHTML:{__html:n}}):n.indexOf("http")!==-1?jsxRuntimeExports.jsx("td",{className:"col-sm-8 overflow-sidebar-identify",title:n,children:jsxRuntimeExports.jsx("a",{href:n,children:n})}):jsxRuntimeExports.jsx("td",{className:"col-sm-8 overflow-sidebar-identify",title:n,children:n}):jsxRuntimeExports.jsx("td",{className:"col-sm-8 overflow-sidebar-identify",title:n,children:n})}render(){const{identifyDetailFeature:n,doRenderIdentifySidebar:s,primaryPanelShowClose:d}=this.props,m=classnames({"sidebar-list":!d,"thin-scrollbar":!0,"sidebar-list-show-close-btn":d}),v=d?60:30;return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("i",{onClick:s,style:{fontSize:24,cursor:"pointer"},title:"Return to List",className:"mdi mdi-arrow-left"}),jsxRuntimeExports.jsx("div",{className:m,style:{top:v},children:jsxRuntimeExports.jsxs("table",{className:"table table-striped table-hover ",children:[jsxRuntimeExports.jsx("thead",{children:jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("th",{className:"col-sm-4 overflow-sidebar-identify",children:jsxRuntimeExports.jsx("strong",{children:"Attribute"})}),jsxRuntimeExports.jsx("th",{className:"col-sm-8 overflow-sidebar-identify",children:jsxRuntimeExports.jsx("strong",{children:"Value"})})]})}),jsxRuntimeExports.jsx("tbody",{children:Object.keys(n.properties).map((S,C)=>jsxRuntimeExports.jsxs("tr",{children:[jsxRuntimeExports.jsx("td",{className:"col-sm-4 overflow-sidebar-identify",title:S,children:S}),this.renderValue(n.properties[S])]},btoa(S)+C))})]})})]})}};const IdentifyDetails=connect("selectIdentifyDetailFeature","doRenderIdentifySidebar","selectIdentifyDetailLayer","selectMap","selectPrimaryPanelShowClose",IdentifyDetails$1);class Cell extends React.Component{constructor(n){super(n),this.renderValue=this.renderValue.bind(this)}renderValue(n){return n&&typeof n=="string"?isHtml(n)?jsxRuntimeExports.jsx("div",{className:"overflow-ellipsis overflow-ellipsis-user-select",dangerouslySetInnerHTML:{__html:n}}):n.indexOf("http")!==-1?jsxRuntimeExports.jsx("div",{className:"overflow-ellipsis overflow-ellipsis-user-select",title:n,children:jsxRuntimeExports.jsx("a",{href:n,children:n})}):jsxRuntimeExports.jsx("div",{className:"overflow-ellipsis overflow-ellipsis-user-select",title:n,children:n}):jsxRuntimeExports.jsx("div",{className:"overflow-ellipsis overflow-ellipsis-user-select",title:n,children:n})}render(){const{value:n}=this.props;return this.renderValue(n)}}const style$1=new style$3.Style({fill:new style$3.Fill({color:"rgba(84, 240, 240, 0.1)"}),stroke:new style$3.Stroke({color:"rgb(84, 240, 240)",width:1}),image:new style$3.Circle({radius:5,stroke:new style$3.Stroke({color:"rgb(84, 240, 240)",width:1}),fill:new style$3.Fill({color:"rgba(84, 240, 240, 0.1)"})})}),selectStyle=new style$3.Style({fill:new style$3.Fill({color:"rgba(244, 241, 66, 0.8)"}),stroke:new style$3.Stroke({color:"rgb(244, 241, 66)",width:1}),image:new style$3.Circle({radius:8,stroke:new style$3.Stroke({color:"rgb(244, 241, 66)"}),fill:new style$3.Fill({color:"rgba(244, 241, 66, 0.8)"})})});let IdentifyTable$1=class extends React.Component{constructor(n){super(n);const s=n.features,d=s[0].geometry.type,m=s[0].properties,v={type:"FeatureCollection",features:s};this.layer=getLayer({serviceType:"LocalVector",visible:!0,geometryType:d,style:style$1,zIndex:1e3}),this.selection=getLayer({serviceType:"LocalVector",visible:!0,geometryType:d,style:selectStyle,zIndex:1001});const S=new GeoJSON().readFeatures(v,{dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"}),C=this.layer.getSource();C.addFeatures(S),this.setRowsFromSource=this.setRowsFromSource.bind(this),this.generateColumns=this.generateColumns.bind(this),this.onSortColumnsChange=this.onSortColumnsChange.bind(this),this.sortRows=this.sortRows.bind(this),this.exportToCSV=this.exportToCSV.bind(this),this.identifyCsv=this.identifyCsv.bind(this),this.exportToGeoJSON=this.exportToGeoJSON.bind(this),this.state={rows:[],columns:this.generateColumns(m),sortColumns:[],source:C,minHeight:200,selected:[],sortBy:"ol_uid",sortDir:0,featureCollection:v}}generateColumns(n){return Object.keys(n).map((s,d)=>{let m=s&&s.length>15?150+(s.length-10)*5:150;return{id:d,key:s,name:s,editable:!1,sortable:!0,filterable:!0,width:m,resizable:!0,nullable:!0,formatter:Cell}})}componentWillUnmount(){const{map:n}=this.props;n.removeLayer(this.layer),n.removeLayer(this.selection)}componentDidMount(){const{map:n}=this.props;this.setRowsFromSource(),n.addLayer(this.layer),n.addLayer(this.selection)}setRowsFromSource(){const{source:n}=this.state,s=[];n.forEachFeature(d=>{const m={id:d.ol_uid,ol_uid:d.ol_uid,feature:d},v=d.getProperties();s.push(Object.assign(m,v))}),this.setState({rows:s})}exportToCSV(){const{columns:n,rows:s,sortBy:d,sortDir:m,selected:v}=this.state,S=_.map(n,"name"),C=m===0||m===1?"asc":"desc";let I=[],N=[];v.length?(v.forEach(M=>{s.forEach(k=>{M===k.id&&I.push(k.feature.getProperties())})}),N=_.orderBy(I,[d],[C])):(s.forEach(M=>{I.push(M.feature.getProperties())}),N=_.orderBy(I,[d],[C])),this.identifyCsv(S,N)}identifyCsv(n,s){const{doGenerateCsv:d}=this.props;let m=[n];s.forEach((v,S)=>{let C=[];n.forEach(I=>{C.push(v[I])}),m.push(C)}),d(m)}exportToGeoJSON(){const{featureCollection:n,rows:s,selected:d}=this.state,{doGenerateGeoJSON:m}=this.props;let v={type:"FeatureCollection",features:[]},S=[];d.length?d.forEach(C=>{s.forEach(I=>{C===I.id&&S.push(I.objectid)}),n.features.forEach(I=>{S.includes(I.id)&&v.features.push(I)})}):v=n,m(v)}onSortColumnsChange(n){const{rows:s}=this.state;this.setState({sortColumns:n}),this.setState({rows:this.sortRows(s,n)})}sortRows(n,s){const d=[...n];return d.sort((m,v)=>{for(const S of s){const{columnKey:C,direction:I}=S,N=m[C],M=v[C];if(N==null)return I==="ASC"?-1:1;if(M==null||N>M)return I==="ASC"?1:-1;if(N<M)return I==="ASC"?-1:1}return 0}),d}render(){const{rows:n,columns:s,sortColumns:d,selected:m}=this.state,{doToggleIdentifyView:v}=this.props,S=document.getElementsByClassName("south-container")[0];return S&&S.clientHeight-65,jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:"text-right",style:{padding:"2px",marginRight:"15px"},children:[jsxRuntimeExports.jsx("button",{type:"button",className:"cm-btn cm-btn-xs cm-btn-default",style:{marginRight:"5px"},title:"Sidebar View",onClick:()=>{v("sidebar")},children:"SIDEBAR VIEW"}),jsxRuntimeExports.jsxs("div",{className:"cm-btn-group",children:[jsxRuntimeExports.jsx("button",{type:"button",className:"cm-btn cm-btn-xs cm-btn-primary",title:"Export to csv",onClick:this.exportToCSV,children:"Export to csv"}),jsxRuntimeExports.jsx("button",{type:"button",className:"cm-btn cm-btn-xs cm-btn-primary",title:"Export to geoJSON",onClick:this.exportToGeoJSON,children:"Export to geoJSON"})]})]}),jsxRuntimeExports.jsx(reactDataGrid.DataGrid,{columns:s,rows:n,sortColumns:d,onSortColumnsChange:this.onSortColumnsChange})]})}};const IdentifyTable=connect("selectMap","selectIdentifyResults","selectCmLayerNames","doSouthPanelCloseChild","doGenerateCsv","doGenerateGeoJSON","doToggleIdentifyView",IdentifyTable$1);class IdentifyPopup extends React.Component{constructor(n){super(n),this.overlay=n.overlay,this.startDrag=this.startDrag.bind(this),this.dragMe=this.dragMe.bind(this),this.placeMe=this.placeMe.bind(this),this.handleClose=this.handleClose.bind(this),this.renderValue=this.renderValue.bind(this)}componentDidMount(){this.dragHandle.addEventListener("mousedown",this.startDrag),this.closeButton.addEventListener("click",this.handleClose)}componentWillUnmount(){this.dragHandle.removeEventListener("mousedown",this.startDrag),this.closeButton.removeEventListener("click",this.handleClose)}handleClose(){const{onClear:n,overlay:s}=this.props;n(s)}startDrag(n){const{map:s}=this.props,d=[n.clientX,n.clientY],m=s.getCoordinateFromPixel(d),v=this.overlay.getPosition();this.offset=[v[0]-m[0],v[1]-m[1]],s.on("pointermove",this.dragMe),window.addEventListener("mouseup",this.placeMe),this.overlay.set("dragging",!0)}dragMe(n){this.overlay.get("dragging")&&this.overlay.setPosition([n.coordinate[0]+this.offset[0],n.coordinate[1]+this.offset[1]])}placeMe(n){const{map:s}=this.props;this.overlay.get("dragging")&&(s.un("pointermove",this.dragMe),window.removeEventListener("mouseup",this.placeMe),this.overlay.set("dragging",!1))}renderValue(n){return n&&typeof n=="string"?isHtml(n)?jsxRuntimeExports.jsx("span",{className:"col-sm-6",style:{overflow:"hidden"},dangerouslySetInnerHTML:{__html:n}}):n.indexOf("http")!==-1?jsxRuntimeExports.jsx("span",{className:"col-sm-6 overflow-ellipsis",title:n,children:jsxRuntimeExports.jsx("a",{href:n,target:"_blank",children:n})}):jsxRuntimeExports.jsx("span",{className:"col-sm-6 overflow-ellipsis",title:n,children:n}):jsxRuntimeExports.jsx("span",{className:"col-sm-6 overflow-ellipsis",title:n,children:n})}render(){const{feature:n}=this.props;return jsxRuntimeExports.jsxs("div",{className:"panel panel-default top clearfix",style:{marginBottom:0,marginTop:"-10px"},children:[jsxRuntimeExports.jsx("div",{className:"pull-right",ref:s=>{this.closeButton=s},children:jsxRuntimeExports.jsx("i",{className:"mdi mdi-close"})}),jsxRuntimeExports.jsx("div",{className:"pull-left",ref:s=>{this.dragHandle=s},children:jsxRuntimeExports.jsx("i",{className:"mdi mdi-drag"})}),jsxRuntimeExports.jsx("div",{className:"arrow",style:{left:"50%"}}),jsxRuntimeExports.jsxs("div",{className:"panel-body",children:[jsxRuntimeExports.jsx("p",{className:"",children:jsxRuntimeExports.jsx("strong",{})}),jsxRuntimeExports.jsx("div",{className:"",children:jsxRuntimeExports.jsx("ul",{className:"cm-list-group thin-scrollbar",style:{maxHeight:300,overflow:"auto"},children:Object.keys(n.properties).map((s,d)=>jsxRuntimeExports.jsxs("li",{className:"cm-list-group-item row",style:{margin:"3px",padding:"2px",maxWidth:"500px"},children:[jsxRuntimeExports.jsx("span",{className:"col-sm-6 overflow-ellipsis",title:s,children:s}),this.renderValue(n.properties[s])]},d))})})]})]})}}const IdentifyBufferSettings$1=t=>{const{theme:n,identifyBufferUnit:s,doUpdateBufferUnit:d,doModalClose:m}=t,v=[{name:"Degrees",abv:"deg"},{name:"Kilometers",abv:"km"},{name:"Miles",abv:"mi"}];return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:`cm-modal-header ${n}`,children:"Identify Buffer Settings"}),jsxRuntimeExports.jsxs("div",{className:"cm-modal-body",children:[jsxRuntimeExports.jsx("h6",{children:"Please choose a supported unit below:"}),v.map(S=>jsxRuntimeExports.jsx("button",{name:S.abv,className:`cm-btn cm-btn-sm cm-btn-block cm-btn-default ${s===S.abv?"active":""}`,type:"button",onClick:d,children:S.name},S.abv))]}),jsxRuntimeExports.jsx("div",{className:"cm-modal-footer",children:jsxRuntimeExports.jsx("button",{className:`cm-btn cm-btn-sm cm-btn-theme ${n}`,onClick:m,children:"Cancel"})})]})},IdentifyBufferSettings=connect("doUpdateBufferUnit","doModalClose","selectIdentifyBufferUnit","selectTheme",IdentifyBufferSettings$1),interactions={dragbox:DragBox,draw:Draw,modify:Modify,snap:Snap,select:Select$1},createInteraction=t=>{const n=_.omit(t,["on","interaction"]);if(!interactions.hasOwnProperty(t.interaction))throw new Error(`${t.interaction} is not a valid interaction`);const s=new interactions[t.interaction](n);return t.on&&t.on.length&&t.on.forEach(d=>{s.on(d.event,d.listener,d.scope)}),s},style=new style$3.Style({fill:new style$3.Fill({color:"rgba(84, 240, 240, 0.3)"}),stroke:new style$3.Stroke({color:"rgb(84, 240, 240)",width:1}),image:new style$3.Circle({radius:5,stroke:new style$3.Stroke({color:"rgb(84, 240, 240)",width:1}),fill:new style$3.Fill({color:"rgba(84, 240, 240, 0.3)"})})}),polygonLayer=getLayer({serviceType:"LocalVector",visible:!0,geometryType:"Polygon",style,zIndex:1e3}),polygonDraw=createInteraction({interaction:"draw",source:polygonLayer.getSource(),type:"Polygon"}),pointLayer=getLayer({serviceType:"LocalVector",visible:!0,geometryType:"Point",style,zIndex:1e3}),pointDraw=createInteraction({interaction:"draw",source:polygonLayer.getSource(),type:"Point"}),bufferLayer=getLayer({serviceType:"LocalVector",visible:!0,geometryType:"Polygon",style:new style$3.Style({fill:new style$3.Fill({color:"rgba(192,192,192,0.4)"}),stroke:new style$3.Stroke({color:"rgba(192,192,192,1)",width:1}),image:new style$3.Circle({radius:5,stroke:new style$3.Stroke({color:"rgba(192,192,192,1)",width:1}),fill:new style$3.Fill({color:"rgba(192,192,192,0.4)"})})}),zIndex:1e3}),identify={overlays:[]},bundle$d={name:"identifyUi",getReducer(){const t={selectBy:null,displayAs:"sidebar",bufferUnit:"km",bufferUnitFull:"kilometers",bufferValue:"",bufferFeature:null,shouldQuery:!1,shouldRenderResults:!1,shouldRenderDetails:!1,geom:null,results:[],selectedFeature:null,selectedLayer:null,identifyColumnsExclude:[]};return(n=t,{type:s,payload:d})=>{switch(s){case"IDENTIFY_UI_STARTED":case"IDENTIFY_UI_STOPPED":case"IDENTIFY_UI_DISPLAY_AS":case"IDENTIFY_UI_RESULTS_DISPLAYED":case"IDENTIFY_UI_RESULT_PICKED":case"IDENTIFY_UI_DETAILS_DISPLAYED":case"IDENTIFY_UI_TABLE_DISPLAYED":case"IDENTIFY_UI_NO_RESULTS_RETURNED":case"IDENTIFY_UI_BUFFER_SETTINGS_OPENED":case"IDENTIFY_UI_BUFFER_UNIT_UPDATED":case"IDENTIFY_UI_BUFFER_VALUE_UPDATED":case"IDENTIFY_UI_BUFFER_FEATURE_UPDATED":case"IDENTIFY_EXCLUDED_COLUMNS_SET":return Object.assign({},n,d);case"IDENTIFY_ERROR":return Object.assign({},n,{selectBy:null});case"IDENTIFY_SUCCESS":return Object.assign({},n,{shouldRenderResults:!0,selectBy:null});default:return n}}},doToggleIdentifyView:t=>({dispatch:n,store:s})=>{switch(s.selectIdentifyDisplayAs()){case"sidebar":s.doPrimaryPanelClose(),s.doRenderIdentifyTable();break;case"table":s.doSouthRegionClose(),s.doRenderIdentifySidebar();break}s.doSetDisplayAs(null,t)},doUpdateIdentifyBuffer:t=>({dispatch:n,store:s})=>{t.preventDefault(),t.stopPropagation(),n({type:"IDENTIFY_UI_BUFFER_VALUE_UPDATED",payload:{bufferValue:t.target.value}})},doStartIdentify:t=>({dispatch:n,store:s})=>{s.selectMap().interactions.array_.forEach(v=>{v.ol_uid=="43"&&(v.values_.active=!1)}),t.preventDefault(),t.stopPropagation();const m=t.currentTarget.dataset.selectby;n({type:"IDENTIFY_UI_STARTED",payload:{selectBy:m}}),s.doAddIdentifyInteractions()},doAddIdentifyInteractions:()=>({store:t})=>{const n=t.selectIdentifySelectBy();t.doRemoveIdentifyInteractions(),n==="point"?t.doIdentifyByPoint():n==="polygon"&&t.doIdentifyByPolygon()},doRemoveIdentifyInteractions:()=>({dispatch:t,store:n})=>{n.doSetCursor();const s=n.selectMap();s.removeInteraction(pointDraw),s.removeInteraction(polygonDraw)},doSetIdentifyGeom:t=>({store:n})=>{t.preventDefault(),t.stopPropagation();const s=n.selectMap(),m=t.feature.getGeometry();pointLayer.getSource().clear(),polygonLayer.getSource().clear(),bufferLayer.getSource().clear(),s.removeLayer(pointLayer),s.removeLayer(polygonLayer),s.removeLayer(bufferLayer),n.doRenderIdentifyGeometry(m),n.doIdentifySetCoords(m)},doRenderIdentifyGeometry:t=>({store:n})=>{const s=n.selectMap(),d=n.selectIdentifySelectBy(),m=t.getCoordinates();d==="point"?(pointLayer.getSource().addFeature(new Feature({geometry:new Point(m)})),n.doRenderIdentifyBufferPoint(new Point(m)),s.addLayer(pointLayer)):(polygonLayer.getSource().addFeature(new Feature({geometry:new Polygon(m)})),n.doRenderIdentifyBufferPolygon(new Polygon(m)),s.addLayer(polygonLayer)),n.doPauseIdentify()},doRenderIdentifyBufferPoint:t=>({dispatch:n,store:s})=>{const d=s.selectIdentifyBufferValue();if(!d.length)return;const m=s.selectMap(),v=s.selectIdentifyBufferUnitFull(),S=s.selectDisplayProjection(),C=t.transform("EPSG:3857",S),I=point(C.getCoordinates()),N=bufferLayer.getSource();N.clear();const M=index_default$1(I,Number(d),{units:v}),k=new GeoJSON().readFeature(M,{dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"});N.addFeature(k),m.addLayer(bufferLayer),n({type:"IDENTIFY_UI_BUFFER_FEATURE_UPDATED",payload:{bufferFeature:M}})},doRenderIdentifyBufferPolygon:t=>({dispatch:n,store:s})=>{const d=s.selectIdentifyBufferValue();if(!d.length)return;const m=s.selectMap(),v=s.selectIdentifyBufferUnitFull(),S=s.selectDisplayProjection(),C=t.transform("EPSG:3857",S),I=polygon(C.getCoordinates()),N=bufferLayer.getSource();N.clear();const M=index_default$1(I,Number(d),{units:v}),k=new GeoJSON().readFeature(M,{dataProjection:"EPSG:4326",featureProjection:"EPSG:3857"});N.addFeature(k),m.addLayer(bufferLayer),n({type:"IDENTIFY_UI_BUFFER_FEATURE_UPDATED",payload:{bufferFeature:M}})},doIdentifyByPoint:()=>({dispatch:t,store:n})=>{n.doSetCursor("default"),n.selectMap().addInteraction(pointDraw)},doIdentifyByPolygon:()=>({dispatch:t,store:n})=>{n.doSetCursor("default"),n.selectMap().addInteraction(polygonDraw)},doPauseIdentify:()=>({dispatch:t,store:n})=>{n.doRemoveIdentifyInteractions(),t({type:"IDENTIFY_UI_STOPPED",payload:{selectBy:null}})},doStopIdentify:()=>({dispatch:t,store:n})=>{const s=n.selectMap(),d=n.selectIdentifyDisplayAs();switch(n.doRemoveIdentifyInteractions(),s.removeLayer(pointLayer),s.removeLayer(polygonLayer),s.removeLayer(bufferLayer),d){case"popup":n.doClearIdentifyPopups();break;case"sidebar":n.doPrimaryPanelClose();break;case"table":n.doSouthRegionClose();break}n.doBasicToolbarDeactivate(),s.interactions.array_.forEach(m=>{m.ol_uid=="43"&&(m.values_.active=!0)}),t({type:"IDENTIFY_UI_STOPPED",payload:{selectBy:null}})},doSetDisplayAs:(t,n)=>({dispatch:s})=>{let d=null;t?(t.preventDefault(),t.stopPropagation(),d=t.currentTarget.dataset.displayas):d=n,s({type:"IDENTIFY_UI_DISPLAY_AS",payload:{displayAs:d}})},doRenderIdentifyPopups:()=>({dispatch:t,store:n})=>{t({type:"IDENTIFY_UI_RESULTS_DISPLAYED",payload:{shouldRenderResults:!1}});const s=n.selectMap(),d=n.selectIdentifyResults(),m=n.selectIdentifyCoordinates();let v=m;m.length===1&&(v=m[0][0]),d.forEach(S=>{Object.keys(S.result).forEach(C=>{const I=S.result[C];I&&I.features&&I.features.length?I.features.forEach(N=>{const M=document.createElement("div"),k=new Overlay$1({element:M,positioning:"bottom-center",offset:[0,-10]});s.addOverlay(k),ReactDOM.render(jsxRuntimeExports.jsx(IdentifyPopup,{overlay:k,feature:N,map:s,onClear:n.doClearOverlay}),M),k.setPosition(proj.transform(v,"EPSG:4326","EPSG:3857")),identify.overlays.push(k)}):t({type:"IDENTIFY_UI_NO_RESULTS_RETURNED",payload:{notification:{message:`No results at this location for ${S.layerName}`,level:"warning"}}})})})},doClearOverlay:t=>({store:n})=>{const s=n.selectMap();if(identify.overlays&&identify.overlays.length){const d=identify.overlays.indexOf(t);t.setPosition(void 0);const m=t.getElement();m.parentNode.removeChild(m),s.removeOverlay(t),identify.overlays.splice(d,1)}},doClearIdentifyPopups:()=>({store:t})=>{const n=t.selectMap();identify.overlays&&identify.overlays.length&&(identify.overlays.forEach(s=>{s.setPosition(void 0);const d=s.getElement();d.parentNode.removeChild(d),n.removeOverlay(s)}),identify.overlays=[])},doRenderIdentifySidebar:()=>({dispatch:t,store:n})=>{t({type:"IDENTIFY_UI_RESULTS_DISPLAYED",payload:{shouldRenderResults:!1}});const s=n.selectIdentifyResults();if(s.length)for(let d=0;d<s.length;d++){const m=Object.keys(s[d].result);for(let v=0;v<m.length;v++){const S=s[d].result[m[v]];if(S&&S.features&&S.features.length){n.doPrimaryPanelOpen({openedBy:"IdentifyTools",children:[IdentifySidebar]});break}else t({type:"IDENTIFY_UI_NO_RESULTS_RETURNED",payload:{notification:{message:`No results at this location for ${s[d].layerName}`,level:"warning"}}})}}},doOpenIdentifyDetails:(t,n)=>({dispatch:s})=>{s({type:"IDENTIFY_UI_RESULT_PICKED",payload:{selectedFeature:t,selectedLayer:n,shouldRenderDetails:!0}})},doRenderIdentifyDetails:()=>({dispatch:t,store:n})=>{t({type:"IDENTIFY_UI_DETAILS_DISPLAYED",payload:{shouldRenderDetails:!1}}),n.doPrimaryPanelOpen({openedBy:"IdentifyTools",children:[IdentifyDetails]})},doRenderIdentifyTable:()=>({dispatch:t,store:n})=>{t({type:"IDENTIFY_UI_RESULTS_DISPLAYED",payload:{shouldRenderResults:!1}});const s=n.selectIdentifyResults(),d=n.selectCmLayerNames(),m=n.selectUidMap(),v=/[:](.+)/i;s.forEach(S=>{const C=S.dataset,I=find(d,{teamDatasetId:C}),N=I?I.displayName:m[C];Object.keys(S.result).forEach(M=>{const k=S.result[M],z=v.exec(M),V=z&&z[0]!==N?z[0]:"";k&&k.features&&k.features.length?n.doSouthRegionOpen({component:IdentifyTable,options:{features:k.features},openedBy:"identify",displayName:`${N}${V}`}):t({type:"IDENTIFY_UI_NO_RESULTS_RETURNED",payload:{notification:{message:`No results at this location for ${S.layerName}`,level:"warning"}}})})})},doShowBufferUnits:t=>({dispatch:n,store:s})=>{t.preventDefault(),t.stopPropagation(),s.doModalOpen({children:[IdentifyBufferSettings],options:{smSize:!0},openedBy:"Identify Tool"}),n({type:"IDENTIFY_UI_BUFFER_SETTINGS_OPENED"})},doUpdateBufferUnit:t=>({dispatch:n,store:s})=>{t.preventDefault(),t.stopPropagation(),n({type:"IDENTIFY_UI_BUFFER_UNIT_UPDATED",payload:{bufferUnit:t.target.name,bufferUnitFull:t.target.textContent.toLowerCase()}}),s.doModalClose()},doSetIdentifyColumnsExclude:t=>({dispatch:n})=>{n({type:"IDENTIFY_EXCLUDED_COLUMNS_SET",payload:{identifyColumnsExclude:t}})},selectIdentifyColumnsExclude:t=>t.identifyUi.identifyColumnsExclude,selectIdentifySelectBy:t=>t.identifyUi.selectBy,selectIdentifyDisplayAs:t=>t.identifyUi.displayAs,selectIdentifyDetailFeature:t=>t.identifyUi.selectedFeature,selectIdentifyDetailLayer:t=>t.identifyUi.selectedLayer,selectIdentifyBufferUnit:t=>t.identifyUi.bufferUnit,selectIdentifyBufferUnitFull:t=>t.identifyUi.bufferUnitFull,selectIdentifyBufferValue:t=>t.identifyUi.bufferValue,selectIdentifyBufferFeature:t=>t.identifyUi.bufferFeature,reactShouldRunIdentify:t=>{if(t.identifyUi.shouldQuery)return{actionCreator:"doIdentify"}},reactShouldRenderIdentifyResults:t=>{if(t.identifyUi.shouldRenderResults){if(t.identifyUi.displayAs==="popup")return{actionCreator:"doRenderIdentifyPopups"};if(t.identifyUi.displayAs==="sidebar")return{actionCreator:"doRenderIdentifySidebar"};if(t.identifyUi.displayAs==="table")return{actionCreator:"doRenderIdentifyTable"}}},reactShouldRenderIdentifyDetails:t=>{if(t.identifyUi.shouldRenderDetails)return{actionCreator:"doRenderIdentifyDetails"}},init:t=>{pointDraw.on("drawend",t.doSetIdentifyGeom),polygonDraw.on("drawend",t.doSetIdentifyGeom)}},esrijsonFormat=new EsriJSON$1;function formatUrl(t){let n=`${t.root}/identify?`;const s=[];for(var d in t)d!=="root"&&s.push(d+"="+t[d].toString());return n+=s.join("&"),n}const ArcGisListener={name:"arcGisRestIdent",getReducer(){const t={shouldRegister:!0};return(n=t,{type:s,payload:d})=>s==="ARCGIS_IDENT_REGISTERED"?Object.assign({},n,d):n},doArcGisRestIdentRegister:()=>({dispatch:t,store:n})=>{t({type:"ARCGIS_IDENT_REGISTERED",payload:{shouldRegister:!1}}),n.doIdentifyAddCollection({onIdentify:n.doArcGisRestIdentFire})},doArcGisRestIdentFire:t=>({store:n,anonGet:s})=>{const d=n.selectVisibleLayers();if(!d.length)return t(null,[]);const m=[],v=n.doSetIdentifyFeature();let S=n.selectIdentifyColumnsExclude();const C={sr:4326,tolerance:2,returnGeometry:!0,mapExtent:n.selectMapExtent(),imageDisplay:n.selectMapImageDisplay(),f:"json",geometryType:"esriGeometryPolygon",geometry:encodeURIComponent(JSON.stringify({spatialReference:{wkid:4326},rings:[v.geometry.coordinates[0]]}))};d.forEach(I=>{if(I.identifyType&&I.identifyType==="arcgisrest"){const N=I.layerList;C.layers=`all:${N}`;const M=Object.assign({},C,{root:I.url}),k=formatUrl(M);m.push(z=>{s(k,(V,H,W)=>{if(V||H.statusCode!==200)z(null,{dataset:I.uid,layerName:I.displayName,err:`Error for ${I.displayName}`,result:{[I.uid]:{}}});else try{let J=JSON.parse(W);J.results.length?(J=identifyColumnsArcgisrest(J,S),z(null,{dataset:I.uid,layerName:I.displayName,err:null,result:{[I.uid]:{type:"FeatureCollection",features:J.results.map(K=>{const te=esrijsonFormat.readFeature(K,{featureProjection:"EPSG:3857"}).getGeometry();return{type:"Feature",geometry:{type:te.getType(),coordinates:te.getCoordinates()},properties:formatArcgisrest(K.attributes)}})}}})):z(null,{dataset:I.uid,layerName:I.displayName,err:null,result:{[I.uid]:{}}})}catch(J){console.log(J),z(null,{dataset:I.uid,layerName:I.displayName,err:`Error for ${I.displayName}`,result:{[I.uid]:{}}})}})})}}),async.parallel(m,(I,N)=>{t(I,N)})},reactArcGisRestIdentShouldRegister:t=>{if(t.arcGisRestIdent.shouldRegister)return{actionCreator:"doArcGisRestIdentRegister"}}},geoJSON$1=new GeoJSON,VectorListener={name:"vectorIdent",getReducer(){const t={shouldRegister:!0};return(n=t,{type:s,payload:d})=>s==="VECTOR_IDENT_REGISTERED"?Object.assign({},n,d):n},doVectorIdentRegister:()=>({dispatch:t,store:n})=>{t({type:"VECTOR_IDENT_REGISTERED",payload:{shouldRegister:!1}}),n.doIdentifyAddCollection({onIdentify:n.doVectorIdentFire})},doVectorIdentFire:t=>({store:n})=>{const s=n.selectVisibleLayers(),d=n.doSetIdentifyFeature(),m=[],v=proj.transformExtent(index_default$2(d),"EPSG:4326","EPSG:3857");return s.forEach(S=>{if(S.identifyType&&S.identifyType==="arcgisvector"){const{mapLayer:C}=S;let I=[];const N=C.getSource();let M=n.selectIdentifyColumnsExclude();const k=S.identifyFields,z=S.identifyRenameColums,V=S.identifyFormatColumns;N.forEachFeatureIntersectingExtent(v,H=>{const W=geoJSON$1.writeFeatureObject(H,{featureProjection:"EPSG:3857",dataProjection:"EPSG:4326"});index_default(d,W)||I.push(W)}),I=identifyExcludeColumnsArcgisvector(I,M),k&&(I=identifyIncludeColumnsArcgisvector(I,k)),z&&(I=identifyRenameColumnsArcgisvector(I,z)),V&&(I=identifyFormatColumnsArcgisvector(I,V)),m.push({dataset:S.uid,layerName:S.displayName,err:null,result:{[S.uid]:{type:"FeatureCollection",features:formatArcgisVector(I)}}})}}),t(null,m)},reactVectorIdentShouldRegister:t=>{if(t.vectorIdent.shouldRegister)return{actionCreator:"doVectorIdentRegister"}}},plugin$g={pluginName:"IdentifyTools",enabled:!0,bundle:[bundle$d,ArcGisListener,VectorListener],components:[{component:IdentifyButton,region:"basic-toolbar",sortOrder:90}]};var _createBaseFor,hasRequired_createBaseFor;function require_createBaseFor(){if(hasRequired_createBaseFor)return _createBaseFor;hasRequired_createBaseFor=1;function t(n){return function(s,d,m){for(var v=-1,S=Object(s),C=m(s),I=C.length;I--;){var N=C[n?I:++v];if(d(S[N],N,S)===!1)break}return s}}return _createBaseFor=t,_createBaseFor}var _baseFor,hasRequired_baseFor;function require_baseFor(){if(hasRequired_baseFor)return _baseFor;hasRequired_baseFor=1;var t=require_createBaseFor(),n=t();return _baseFor=n,_baseFor}var _baseForOwn,hasRequired_baseForOwn;function require_baseForOwn(){if(hasRequired_baseForOwn)return _baseForOwn;hasRequired_baseForOwn=1;var t=require_baseFor(),n=requireKeys();function s(d,m){return d&&t(d,m,n)}return _baseForOwn=s,_baseForOwn}var _createBaseEach,hasRequired_createBaseEach;function require_createBaseEach(){if(hasRequired_createBaseEach)return _createBaseEach;hasRequired_createBaseEach=1;var t=requireIsArrayLike();function n(s,d){return function(m,v){if(m==null)return m;if(!t(m))return s(m,v);for(var S=m.length,C=d?S:-1,I=Object(m);(d?C--:++C<S)&&v(I[C],C,I)!==!1;);return m}}return _createBaseEach=n,_createBaseEach}var _baseEach,hasRequired_baseEach;function require_baseEach(){if(hasRequired_baseEach)return _baseEach;hasRequired_baseEach=1;var t=require_baseForOwn(),n=require_createBaseEach(),s=n(t);return _baseEach=s,_baseEach}var _baseMap,hasRequired_baseMap;function require_baseMap(){if(hasRequired_baseMap)return _baseMap;hasRequired_baseMap=1;var t=require_baseEach(),n=requireIsArrayLike();function s(d,m){var v=-1,S=n(d)?Array(d.length):[];return t(d,function(C,I,N){S[++v]=m(C,I,N)}),S}return _baseMap=s,_baseMap}var _baseSortBy,hasRequired_baseSortBy;function require_baseSortBy(){if(hasRequired_baseSortBy)return _baseSortBy;hasRequired_baseSortBy=1;function t(n,s){var d=n.length;for(n.sort(s);d--;)n[d]=n[d].value;return n}return _baseSortBy=t,_baseSortBy}var _compareAscending,hasRequired_compareAscending;function require_compareAscending(){if(hasRequired_compareAscending)return _compareAscending;hasRequired_compareAscending=1;var t=requireIsSymbol();function n(s,d){if(s!==d){var m=s!==void 0,v=s===null,S=s===s,C=t(s),I=d!==void 0,N=d===null,M=d===d,k=t(d);if(!N&&!k&&!C&&s>d||C&&I&&M&&!N&&!k||v&&I&&M||!m&&M||!S)return 1;if(!v&&!C&&!k&&s<d||k&&m&&S&&!v&&!C||N&&m&&S||!I&&S||!M)return-1}return 0}return _compareAscending=n,_compareAscending}var _compareMultiple,hasRequired_compareMultiple;function require_compareMultiple(){if(hasRequired_compareMultiple)return _compareMultiple;hasRequired_compareMultiple=1;var t=require_compareAscending();function n(s,d,m){for(var v=-1,S=s.criteria,C=d.criteria,I=S.length,N=m.length;++v<I;){var M=t(S[v],C[v]);if(M){if(v>=N)return M;var k=m[v];return M*(k=="desc"?-1:1)}}return s.index-d.index}return _compareMultiple=n,_compareMultiple}var _baseOrderBy,hasRequired_baseOrderBy;function require_baseOrderBy(){if(hasRequired_baseOrderBy)return _baseOrderBy;hasRequired_baseOrderBy=1;var t=require_arrayMap(),n=require_baseGet(),s=require_baseIteratee(),d=require_baseMap(),m=require_baseSortBy(),v=require_baseUnary(),S=require_compareMultiple(),C=requireIdentity(),I=requireIsArray();function N(M,k,z){k.length?k=t(k,function(W){return I(W)?function(J){return n(J,W.length===1?W[0]:W)}:W}):k=[C];var V=-1;k=t(k,v(s));var H=d(M,function(W,J,K){var re=t(k,function(te){return te(W)});return{criteria:re,index:++V,value:W}});return m(H,function(W,J){return S(W,J,z)})}return _baseOrderBy=N,_baseOrderBy}var _apply,hasRequired_apply;function require_apply(){if(hasRequired_apply)return _apply;hasRequired_apply=1;function t(n,s,d){switch(d.length){case 0:return n.call(s);case 1:return n.call(s,d[0]);case 2:return n.call(s,d[0],d[1]);case 3:return n.call(s,d[0],d[1],d[2])}return n.apply(s,d)}return _apply=t,_apply}var _overRest,hasRequired_overRest;function require_overRest(){if(hasRequired_overRest)return _overRest;hasRequired_overRest=1;var t=require_apply(),n=Math.max;function s(d,m,v){return m=n(m===void 0?d.length-1:m,0),function(){for(var S=arguments,C=-1,I=n(S.length-m,0),N=Array(I);++C<I;)N[C]=S[m+C];C=-1;for(var M=Array(m+1);++C<m;)M[C]=S[C];return M[m]=v(N),t(d,this,M)}}return _overRest=s,_overRest}var constant_1,hasRequiredConstant;function requireConstant(){if(hasRequiredConstant)return constant_1;hasRequiredConstant=1;function t(n){return function(){return n}}return constant_1=t,constant_1}var _defineProperty,hasRequired_defineProperty;function require_defineProperty(){if(hasRequired_defineProperty)return _defineProperty;hasRequired_defineProperty=1;var t=require_getNative(),n=(function(){try{var s=t(Object,"defineProperty");return s({},"",{}),s}catch{}})();return _defineProperty=n,_defineProperty}var _baseSetToString,hasRequired_baseSetToString;function require_baseSetToString(){if(hasRequired_baseSetToString)return _baseSetToString;hasRequired_baseSetToString=1;var t=requireConstant(),n=require_defineProperty(),s=requireIdentity(),d=n?function(m,v){return n(m,"toString",{configurable:!0,enumerable:!1,value:t(v),writable:!0})}:s;return _baseSetToString=d,_baseSetToString}var _shortOut,hasRequired_shortOut;function require_shortOut(){if(hasRequired_shortOut)return _shortOut;hasRequired_shortOut=1;var t=800,n=16,s=Date.now;function d(m){var v=0,S=0;return function(){var C=s(),I=n-(C-S);if(S=C,I>0){if(++v>=t)return arguments[0]}else v=0;return m.apply(void 0,arguments)}}return _shortOut=d,_shortOut}var _setToString,hasRequired_setToString;function require_setToString(){if(hasRequired_setToString)return _setToString;hasRequired_setToString=1;var t=require_baseSetToString(),n=require_shortOut(),s=n(t);return _setToString=s,_setToString}var _baseRest,hasRequired_baseRest;function require_baseRest(){if(hasRequired_baseRest)return _baseRest;hasRequired_baseRest=1;var t=requireIdentity(),n=require_overRest(),s=require_setToString();function d(m,v){return s(n(m,v,t),m+"")}return _baseRest=d,_baseRest}var _isIterateeCall,hasRequired_isIterateeCall;function require_isIterateeCall(){if(hasRequired_isIterateeCall)return _isIterateeCall;hasRequired_isIterateeCall=1;var t=requireEq(),n=requireIsArrayLike(),s=require_isIndex(),d=requireIsObject();function m(v,S,C){if(!d(C))return!1;var I=typeof S;return(I=="number"?n(C)&&s(S,C.length):I=="string"&&S in C)?t(C[S],v):!1}return _isIterateeCall=m,_isIterateeCall}var sortBy_1,hasRequiredSortBy;function requireSortBy(){if(hasRequiredSortBy)return sortBy_1;hasRequiredSortBy=1;var t=require_baseFlatten(),n=require_baseOrderBy(),s=require_baseRest(),d=require_isIterateeCall(),m=s(function(v,S){if(v==null)return[];var C=S.length;return C>1&&d(v,S[0],S[1])?S=[]:C>2&&d(S[0],S[1],S[2])&&(S=[S[0]]),n(v,t(S,1),[])});return sortBy_1=m,sortBy_1}var sortByExports=requireSortBy();const sortBy=getDefaultExportFromCjs$1(sortByExports);let ToggleExpand$1=class extends React.Component{constructor(n){super(n),this.toggleExpanded=this.toggleExpanded.bind(this)}toggleExpanded(n){n.preventDefault(),n.stopPropagation(),this.props.doTreeViewToggleExpand()}render(){const{treeViewToggleExpanded:n}=this.props,s="",d=n?"Expand All Folders":"Collapse All Folders",m=classnames({"icon-inline":!1,mdi:!0,"mdi-plus-box-outline":n,"mdi-minus-box-outline":!n});return jsxRuntimeExports.jsxs("button",{className:"cm-btn cm-btn-default cm-btn-xs",onClick:this.toggleExpanded,style:{marginRight:"5px"},title:d,children:[jsxRuntimeExports.jsx("i",{className:m}),s]})}};const ToggleExpand=connect("selectTreeViewToggleExpanded","doTreeViewToggleExpand",ToggleExpand$1);let AddAll$1=class extends React.Component{constructor(n){super(n),this.addAllLayers=this.addAllLayers.bind(this)}addAllLayers(n){n.preventDefault(),n.stopPropagation(),this.props.doTreeViewAddAll()}render(){return jsxRuntimeExports.jsx("button",{className:"cm-btn cm-btn-default cm-btn-xs",style:{marginRight:"5px"},title:"Add All Layers",onClick:this.addAllLayers,children:jsxRuntimeExports.jsx("i",{className:"mdi mdi-layers-triple"})})}};const AddAll=connect("doTreeViewAddAll",AddAll$1);let RemoveAll$1=class extends React.Component{constructor(n){super(n),this.removeAllLayers=this.removeAllLayers.bind(this)}removeAllLayers(n){n.preventDefault(),n.stopPropagation(),this.props.doTreeViewRemoveAll()}render(){return jsxRuntimeExports.jsx("button",{className:"cm-btn cm-btn-default cm-btn-xs",style:{marginRight:"5px"},title:"Turn Off All Layers",onClick:this.removeAllLayers,children:jsxRuntimeExports.jsx("i",{className:"mdi mdi-layers-triple-outline"})})}};const RemoveAll=connect("doTreeViewRemoveAll",RemoveAll$1);let ToggleFilter$1=class extends React.Component{constructor(n){super(n),this.toggleFilter=this.toggleFilter.bind(this)}toggleFilter(n){n.preventDefault(),n.stopPropagation(),this.props.toggleFilter()}render(){const{layerShowFilter:n}=this.props,s="",d=classnames({"icon-inline":!1,mdi:!0,"mdi-filter-plus-outline":!n,"mdi-filter-minus-outline":n});return jsxRuntimeExports.jsxs("button",{onClick:this.toggleFilter,className:"cm-btn cm-btn-default cm-btn-xs",title:"Show/Hide Layer Filter",children:[jsxRuntimeExports.jsx("i",{className:d}),s]})}};const ToggleFilter=connect("selectLayerShowFilter",ToggleFilter$1);let Favorites$1=class extends React.Component{constructor(n){super(n),this.toggleFavorites=this.toggleFavorites.bind(this)}toggleFavorites(n){n.preventDefault(),n.stopPropagation(),this.props.doToggleFavoritesView()}render(){const n=this.props.treeViewToggleFavoritesView?"mdi mdi-star":"mdi mdi-star-outline",s=this.props.treeViewToggleFavoritesView?"Hide Favorite Layers":"Show Favorite Layers";return jsxRuntimeExports.jsx("button",{className:"cm-btn cm-btn-default cm-btn-xs",style:{margin:"0 5px"},title:s,onClick:this.toggleFavorites,children:jsxRuntimeExports.jsx("i",{className:n})})}};const Favorites=connect("doToggleFavoritesView","selectTreeViewToggleFavoritesView",Favorites$1),decodeCache={};function getDecodeCache(t){let n=decodeCache[t];if(n)return n;n=decodeCache[t]=[];for(let s=0;s<128;s++){const d=String.fromCharCode(s);n.push(d)}for(let s=0;s<t.length;s++){const d=t.charCodeAt(s);n[d]="%"+("0"+d.toString(16).toUpperCase()).slice(-2)}return n}function decode$1(t,n){typeof n!="string"&&(n=decode$1.defaultChars);const s=getDecodeCache(n);return t.replace(/(%[a-f0-9]{2})+/gi,function(d){let m="";for(let v=0,S=d.length;v<S;v+=3){const C=parseInt(d.slice(v+1,v+3),16);if(C<128){m+=s[C];continue}if((C&224)===192&&v+3<S){const I=parseInt(d.slice(v+4,v+6),16);if((I&192)===128){const N=C<<6&1984|I&63;N<128?m+="��":m+=String.fromCharCode(N),v+=3;continue}}if((C&240)===224&&v+6<S){const I=parseInt(d.slice(v+4,v+6),16),N=parseInt(d.slice(v+7,v+9),16);if((I&192)===128&&(N&192)===128){const M=C<<12&61440|I<<6&4032|N&63;M<2048||M>=55296&&M<=57343?m+="���":m+=String.fromCharCode(M),v+=6;continue}}if((C&248)===240&&v+9<S){const I=parseInt(d.slice(v+4,v+6),16),N=parseInt(d.slice(v+7,v+9),16),M=parseInt(d.slice(v+10,v+12),16);if((I&192)===128&&(N&192)===128&&(M&192)===128){let k=C<<18&1835008|I<<12&258048|N<<6&4032|M&63;k<65536||k>1114111?m+="����":(k-=65536,m+=String.fromCharCode(55296+(k>>10),56320+(k&1023))),v+=9;continue}}m+="�"}return m})}decode$1.defaultChars=";/?:@&=+$,#",decode$1.componentChars="";const encodeCache={};function getEncodeCache(t){let n=encodeCache[t];if(n)return n;n=encodeCache[t]=[];for(let s=0;s<128;s++){const d=String.fromCharCode(s);/^[0-9a-z]$/i.test(d)?n.push(d):n.push("%"+("0"+s.toString(16).toUpperCase()).slice(-2))}for(let s=0;s<t.length;s++)n[t.charCodeAt(s)]=t[s];return n}function encode$1(t,n,s){typeof n!="string"&&(s=n,n=encode$1.defaultChars),typeof s>"u"&&(s=!0);const d=getEncodeCache(n);let m="";for(let v=0,S=t.length;v<S;v++){const C=t.charCodeAt(v);if(s&&C===37&&v+2<S&&/^[0-9a-f]{2}$/i.test(t.slice(v+1,v+3))){m+=t.slice(v,v+3),v+=2;continue}if(C<128){m+=d[C];continue}if(C>=55296&&C<=57343){if(C>=55296&&C<=56319&&v+1<S){const I=t.charCodeAt(v+1);if(I>=56320&&I<=57343){m+=encodeURIComponent(t[v]+t[v+1]),v++;continue}}m+="%EF%BF%BD";continue}m+=encodeURIComponent(t[v])}return m}encode$1.defaultChars=";/?:@&=+$,-_.!~*'()#",encode$1.componentChars="-_.!~*'()";function format(t){let n="";return n+=t.protocol||"",n+=t.slashes?"//":"",n+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?n+="["+t.hostname+"]":n+=t.hostname||"",n+=t.port?":"+t.port:"",n+=t.pathname||"",n+=t.search||"",n+=t.hash||"",n}function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r",`
370
+ `," "],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function urlParse(t,n){if(t&&t instanceof Url)return t;const s=new Url;return s.parse(t,n),s}Url.prototype.parse=function(t,n){let s,d,m,v=t;if(v=v.trim(),!n&&t.split("#").length===1){const N=simplePathPattern.exec(v);if(N)return this.pathname=N[1],N[2]&&(this.search=N[2]),this}let S=protocolPattern.exec(v);if(S&&(S=S[0],s=S.toLowerCase(),this.protocol=S,v=v.substr(S.length)),(n||S||v.match(/^\/\/[^@\/]+@[^@\/]+/))&&(m=v.substr(0,2)==="//",m&&!(S&&hostlessProtocol[S])&&(v=v.substr(2),this.slashes=!0)),!hostlessProtocol[S]&&(m||S&&!slashedProtocol[S])){let N=-1;for(let H=0;H<hostEndingChars.length;H++)d=v.indexOf(hostEndingChars[H]),d!==-1&&(N===-1||d<N)&&(N=d);let M,k;N===-1?k=v.lastIndexOf("@"):k=v.lastIndexOf("@",N),k!==-1&&(M=v.slice(0,k),v=v.slice(k+1),this.auth=M),N=-1;for(let H=0;H<nonHostChars.length;H++)d=v.indexOf(nonHostChars[H]),d!==-1&&(N===-1||d<N)&&(N=d);N===-1&&(N=v.length),v[N-1]===":"&&N--;const z=v.slice(0,N);v=v.slice(N),this.parseHost(z),this.hostname=this.hostname||"";const V=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!V){const H=this.hostname.split(/\./);for(let W=0,J=H.length;W<J;W++){const K=H[W];if(K&&!K.match(hostnamePartPattern)){let re="";for(let te=0,ue=K.length;te<ue;te++)K.charCodeAt(te)>127?re+="x":re+=K[te];if(!re.match(hostnamePartPattern)){const te=H.slice(0,W),ue=H.slice(W+1),se=K.match(hostnamePartStart);se&&(te.push(se[1]),ue.unshift(se[2])),ue.length&&(v=ue.join(".")+v),this.hostname=te.join(".");break}}}}this.hostname.length>hostnameMaxLen&&(this.hostname=""),V&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const C=v.indexOf("#");C!==-1&&(this.hash=v.substr(C),v=v.slice(0,C));const I=v.indexOf("?");return I!==-1&&(this.search=v.substr(I),v=v.slice(0,I)),v&&(this.pathname=v),slashedProtocol[s]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Url.prototype.parseHost=function(t){let n=portPattern.exec(t);n&&(n=n[0],n!==":"&&(this.port=n.substr(1)),t=t.substr(0,t.length-n.length)),t&&(this.hostname=t)};const mdurl=Object.freeze(Object.defineProperty({__proto__:null,decode:decode$1,encode:encode$1,format,parse:urlParse},Symbol.toStringTag,{value:"Module"})),Any=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Cc=/[\0-\x1F\x7F-\x9F]/,regex$1=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,P=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,regex=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Z=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,ucmicro=Object.freeze(Object.defineProperty({__proto__:null,Any,Cc,Cf:regex$1,P,S:regex,Z},Symbol.toStringTag,{value:"Module"})),htmlDecodeTree=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(t=>t.charCodeAt(0))),xmlDecodeTree=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(t=>t.charCodeAt(0)));var _a;const decodeMap=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),fromCodePoint$1=(_a=String.fromCodePoint)!==null&&_a!==void 0?_a:function(t){let n="";return t>65535&&(t-=65536,n+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),n+=String.fromCharCode(t),n};function replaceCodePoint(t){var n;return t>=55296&&t<=57343||t>1114111?65533:(n=decodeMap.get(t))!==null&&n!==void 0?n:t}var CharCodes;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(CharCodes||(CharCodes={}));const TO_LOWER_BIT=32;var BinTrieFlags;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(BinTrieFlags||(BinTrieFlags={}));function isNumber(t){return t>=CharCodes.ZERO&&t<=CharCodes.NINE}function isHexadecimalCharacter(t){return t>=CharCodes.UPPER_A&&t<=CharCodes.UPPER_F||t>=CharCodes.LOWER_A&&t<=CharCodes.LOWER_F}function isAsciiAlphaNumeric(t){return t>=CharCodes.UPPER_A&&t<=CharCodes.UPPER_Z||t>=CharCodes.LOWER_A&&t<=CharCodes.LOWER_Z||isNumber(t)}function isEntityInAttributeInvalidEnd(t){return t===CharCodes.EQUALS||isAsciiAlphaNumeric(t)}var EntityDecoderState;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(EntityDecoderState||(EntityDecoderState={}));var DecodingMode;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(DecodingMode||(DecodingMode={}));class EntityDecoder{constructor(n,s,d){this.decodeTree=n,this.emitCodePoint=s,this.errors=d,this.state=EntityDecoderState.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=DecodingMode.Strict}startEntity(n){this.decodeMode=n,this.state=EntityDecoderState.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(n,s){switch(this.state){case EntityDecoderState.EntityStart:return n.charCodeAt(s)===CharCodes.NUM?(this.state=EntityDecoderState.NumericStart,this.consumed+=1,this.stateNumericStart(n,s+1)):(this.state=EntityDecoderState.NamedEntity,this.stateNamedEntity(n,s));case EntityDecoderState.NumericStart:return this.stateNumericStart(n,s);case EntityDecoderState.NumericDecimal:return this.stateNumericDecimal(n,s);case EntityDecoderState.NumericHex:return this.stateNumericHex(n,s);case EntityDecoderState.NamedEntity:return this.stateNamedEntity(n,s)}}stateNumericStart(n,s){return s>=n.length?-1:(n.charCodeAt(s)|TO_LOWER_BIT)===CharCodes.LOWER_X?(this.state=EntityDecoderState.NumericHex,this.consumed+=1,this.stateNumericHex(n,s+1)):(this.state=EntityDecoderState.NumericDecimal,this.stateNumericDecimal(n,s))}addToNumericResult(n,s,d,m){if(s!==d){const v=d-s;this.result=this.result*Math.pow(m,v)+parseInt(n.substr(s,v),m),this.consumed+=v}}stateNumericHex(n,s){const d=s;for(;s<n.length;){const m=n.charCodeAt(s);if(isNumber(m)||isHexadecimalCharacter(m))s+=1;else return this.addToNumericResult(n,d,s,16),this.emitNumericEntity(m,3)}return this.addToNumericResult(n,d,s,16),-1}stateNumericDecimal(n,s){const d=s;for(;s<n.length;){const m=n.charCodeAt(s);if(isNumber(m))s+=1;else return this.addToNumericResult(n,d,s,10),this.emitNumericEntity(m,2)}return this.addToNumericResult(n,d,s,10),-1}emitNumericEntity(n,s){var d;if(this.consumed<=s)return(d=this.errors)===null||d===void 0||d.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(n===CharCodes.SEMI)this.consumed+=1;else if(this.decodeMode===DecodingMode.Strict)return 0;return this.emitCodePoint(replaceCodePoint(this.result),this.consumed),this.errors&&(n!==CharCodes.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(n,s){const{decodeTree:d}=this;let m=d[this.treeIndex],v=(m&BinTrieFlags.VALUE_LENGTH)>>14;for(;s<n.length;s++,this.excess++){const S=n.charCodeAt(s);if(this.treeIndex=determineBranch(d,m,this.treeIndex+Math.max(1,v),S),this.treeIndex<0)return this.result===0||this.decodeMode===DecodingMode.Attribute&&(v===0||isEntityInAttributeInvalidEnd(S))?0:this.emitNotTerminatedNamedEntity();if(m=d[this.treeIndex],v=(m&BinTrieFlags.VALUE_LENGTH)>>14,v!==0){if(S===CharCodes.SEMI)return this.emitNamedEntityData(this.treeIndex,v,this.consumed+this.excess);this.decodeMode!==DecodingMode.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var n;const{result:s,decodeTree:d}=this,m=(d[s]&BinTrieFlags.VALUE_LENGTH)>>14;return this.emitNamedEntityData(s,m,this.consumed),(n=this.errors)===null||n===void 0||n.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(n,s,d){const{decodeTree:m}=this;return this.emitCodePoint(s===1?m[n]&~BinTrieFlags.VALUE_LENGTH:m[n+1],d),s===3&&this.emitCodePoint(m[n+2],d),d}end(){var n;switch(this.state){case EntityDecoderState.NamedEntity:return this.result!==0&&(this.decodeMode!==DecodingMode.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case EntityDecoderState.NumericDecimal:return this.emitNumericEntity(0,2);case EntityDecoderState.NumericHex:return this.emitNumericEntity(0,3);case EntityDecoderState.NumericStart:return(n=this.errors)===null||n===void 0||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case EntityDecoderState.EntityStart:return 0}}}function getDecoder(t){let n="";const s=new EntityDecoder(t,d=>n+=fromCodePoint$1(d));return function(m,v){let S=0,C=0;for(;(C=m.indexOf("&",C))>=0;){n+=m.slice(S,C),s.startEntity(v);const N=s.write(m,C+1);if(N<0){S=C+s.end();break}S=C+N,C=N===0?S+1:S}const I=n+m.slice(S);return n="",I}}function determineBranch(t,n,s,d){const m=(n&BinTrieFlags.BRANCH_LENGTH)>>7,v=n&BinTrieFlags.JUMP_TABLE;if(m===0)return v!==0&&d===v?s:-1;if(v){const I=d-v;return I<0||I>=m?-1:t[s+I]-1}let S=s,C=S+m-1;for(;S<=C;){const I=S+C>>>1,N=t[I];if(N<d)S=I+1;else if(N>d)C=I-1;else return t[I+m]}return-1}const htmlDecoder=getDecoder(htmlDecodeTree);getDecoder(xmlDecodeTree);function decodeHTML(t,n=DecodingMode.Legacy){return htmlDecoder(t,n)}function _class$1(t){return Object.prototype.toString.call(t)}function isString$1(t){return _class$1(t)==="[object String]"}const _hasOwnProperty=Object.prototype.hasOwnProperty;function has(t,n){return _hasOwnProperty.call(t,n)}function assign$1(t){return Array.prototype.slice.call(arguments,1).forEach(function(s){if(s){if(typeof s!="object")throw new TypeError(s+"must be object");Object.keys(s).forEach(function(d){t[d]=s[d]})}}),t}function arrayReplaceAt(t,n,s){return[].concat(t.slice(0,n),s,t.slice(n+1))}function isValidEntityCode(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534||t>=0&&t<=8||t===11||t>=14&&t<=31||t>=127&&t<=159||t>1114111)}function fromCodePoint(t){if(t>65535){t-=65536;const n=55296+(t>>10),s=56320+(t&1023);return String.fromCharCode(n,s)}return String.fromCharCode(t)}const UNESCAPE_MD_RE=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,ENTITY_RE=/&([a-z#][a-z0-9]{1,31});/gi,UNESCAPE_ALL_RE=new RegExp(UNESCAPE_MD_RE.source+"|"+ENTITY_RE.source,"gi"),DIGITAL_ENTITY_TEST_RE=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function replaceEntityPattern(t,n){if(n.charCodeAt(0)===35&&DIGITAL_ENTITY_TEST_RE.test(n)){const d=n[1].toLowerCase()==="x"?parseInt(n.slice(2),16):parseInt(n.slice(1),10);return isValidEntityCode(d)?fromCodePoint(d):t}const s=decodeHTML(t);return s!==t?s:t}function unescapeMd(t){return t.indexOf("\\")<0?t:t.replace(UNESCAPE_MD_RE,"$1")}function unescapeAll(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(UNESCAPE_ALL_RE,function(n,s,d){return s||replaceEntityPattern(n,d)})}const HTML_ESCAPE_TEST_RE=/[&<>"]/,HTML_ESCAPE_REPLACE_RE=/[&<>"]/g,HTML_REPLACEMENTS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function replaceUnsafeChar(t){return HTML_REPLACEMENTS[t]}function escapeHtml(t){return HTML_ESCAPE_TEST_RE.test(t)?t.replace(HTML_ESCAPE_REPLACE_RE,replaceUnsafeChar):t}const REGEXP_ESCAPE_RE=/[.?*+^$[\]\\(){}|-]/g;function escapeRE$1(t){return t.replace(REGEXP_ESCAPE_RE,"\\$&")}function isSpace(t){switch(t){case 9:case 32:return!0}return!1}function isWhiteSpace(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function isPunctChar(t){return P.test(t)||regex.test(t)}function isMdAsciiPunct(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function normalizeReference(t){return t=t.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(t=t.replace(/ẞ/g,"ß")),t.toLowerCase().toUpperCase()}const lib={mdurl,ucmicro},utils=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt,assign:assign$1,escapeHtml,escapeRE:escapeRE$1,fromCodePoint,has,isMdAsciiPunct,isPunctChar,isSpace,isString:isString$1,isValidEntityCode,isWhiteSpace,lib,normalizeReference,unescapeAll,unescapeMd},Symbol.toStringTag,{value:"Module"}));function parseLinkLabel(t,n,s){let d,m,v,S;const C=t.posMax,I=t.pos;for(t.pos=n+1,d=1;t.pos<C;){if(v=t.src.charCodeAt(t.pos),v===93&&(d--,d===0)){m=!0;break}if(S=t.pos,t.md.inline.skipToken(t),v===91){if(S===t.pos-1)d++;else if(s)return t.pos=I,-1}}let N=-1;return m&&(N=t.pos),t.pos=I,N}function parseLinkDestination(t,n,s){let d,m=n;const v={ok:!1,pos:0,str:""};if(t.charCodeAt(m)===60){for(m++;m<s;){if(d=t.charCodeAt(m),d===10||d===60)return v;if(d===62)return v.pos=m+1,v.str=unescapeAll(t.slice(n+1,m)),v.ok=!0,v;if(d===92&&m+1<s){m+=2;continue}m++}return v}let S=0;for(;m<s&&(d=t.charCodeAt(m),!(d===32||d<32||d===127));){if(d===92&&m+1<s){if(t.charCodeAt(m+1)===32)break;m+=2;continue}if(d===40&&(S++,S>32))return v;if(d===41){if(S===0)break;S--}m++}return n===m||S!==0||(v.str=unescapeAll(t.slice(n,m)),v.pos=m,v.ok=!0),v}function parseLinkTitle(t,n,s,d){let m,v=n;const S={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(d)S.str=d.str,S.marker=d.marker;else{if(v>=s)return S;let C=t.charCodeAt(v);if(C!==34&&C!==39&&C!==40)return S;n++,v++,C===40&&(C=41),S.marker=C}for(;v<s;){if(m=t.charCodeAt(v),m===S.marker)return S.pos=v+1,S.str+=unescapeAll(t.slice(n,v)),S.ok=!0,S;if(m===40&&S.marker===41)return S;m===92&&v+1<s&&v++,v++}return S.can_continue=!0,S.str+=unescapeAll(t.slice(n,v)),S}const helpers=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination,parseLinkLabel,parseLinkTitle},Symbol.toStringTag,{value:"Module"})),default_rules={};default_rules.code_inline=function(t,n,s,d,m){const v=t[n];return"<code"+m.renderAttrs(v)+">"+escapeHtml(v.content)+"</code>"},default_rules.code_block=function(t,n,s,d,m){const v=t[n];return"<pre"+m.renderAttrs(v)+"><code>"+escapeHtml(t[n].content)+`</code></pre>
371
+ `},default_rules.fence=function(t,n,s,d,m){const v=t[n],S=v.info?unescapeAll(v.info).trim():"";let C="",I="";if(S){const M=S.split(/(\s+)/g);C=M[0],I=M.slice(2).join("")}let N;if(s.highlight?N=s.highlight(v.content,C,I)||escapeHtml(v.content):N=escapeHtml(v.content),N.indexOf("<pre")===0)return N+`
372
+ `;if(S){const M=v.attrIndex("class"),k=v.attrs?v.attrs.slice():[];M<0?k.push(["class",s.langPrefix+C]):(k[M]=k[M].slice(),k[M][1]+=" "+s.langPrefix+C);const z={attrs:k};return`<pre><code${m.renderAttrs(z)}>${N}</code></pre>
373
+ `}return`<pre><code${m.renderAttrs(v)}>${N}</code></pre>
374
+ `},default_rules.image=function(t,n,s,d,m){const v=t[n];return v.attrs[v.attrIndex("alt")][1]=m.renderInlineAsText(v.children,s,d),m.renderToken(t,n,s)},default_rules.hardbreak=function(t,n,s){return s.xhtmlOut?`<br />
375
+ `:`<br>
376
+ `},default_rules.softbreak=function(t,n,s){return s.breaks?s.xhtmlOut?`<br />
377
+ `:`<br>
378
+ `:`
379
+ `},default_rules.text=function(t,n){return escapeHtml(t[n].content)},default_rules.html_block=function(t,n){return t[n].content},default_rules.html_inline=function(t,n){return t[n].content};function Renderer(){this.rules=assign$1({},default_rules)}Renderer.prototype.renderAttrs=function t(n){let s,d,m;if(!n.attrs)return"";for(m="",s=0,d=n.attrs.length;s<d;s++)m+=" "+escapeHtml(n.attrs[s][0])+'="'+escapeHtml(n.attrs[s][1])+'"';return m},Renderer.prototype.renderToken=function t(n,s,d){const m=n[s];let v="";if(m.hidden)return"";m.block&&m.nesting!==-1&&s&&n[s-1].hidden&&(v+=`
380
+ `),v+=(m.nesting===-1?"</":"<")+m.tag,v+=this.renderAttrs(m),m.nesting===0&&d.xhtmlOut&&(v+=" /");let S=!1;if(m.block&&(S=!0,m.nesting===1&&s+1<n.length)){const C=n[s+1];(C.type==="inline"||C.hidden||C.nesting===-1&&C.tag===m.tag)&&(S=!1)}return v+=S?`>
381
+ `:">",v},Renderer.prototype.renderInline=function(t,n,s){let d="";const m=this.rules;for(let v=0,S=t.length;v<S;v++){const C=t[v].type;typeof m[C]<"u"?d+=m[C](t,v,n,s,this):d+=this.renderToken(t,v,n)}return d},Renderer.prototype.renderInlineAsText=function(t,n,s){let d="";for(let m=0,v=t.length;m<v;m++)switch(t[m].type){case"text":d+=t[m].content;break;case"image":d+=this.renderInlineAsText(t[m].children,n,s);break;case"html_inline":case"html_block":d+=t[m].content;break;case"softbreak":case"hardbreak":d+=`
382
+ `;break}return d},Renderer.prototype.render=function(t,n,s){let d="";const m=this.rules;for(let v=0,S=t.length;v<S;v++){const C=t[v].type;C==="inline"?d+=this.renderInline(t[v].children,n,s):typeof m[C]<"u"?d+=m[C](t,v,n,s,this):d+=this.renderToken(t,v,n,s)}return d};function Ruler(){this.__rules__=[],this.__cache__=null}Ruler.prototype.__find__=function(t){for(let n=0;n<this.__rules__.length;n++)if(this.__rules__[n].name===t)return n;return-1},Ruler.prototype.__compile__=function(){const t=this,n=[""];t.__rules__.forEach(function(s){s.enabled&&s.alt.forEach(function(d){n.indexOf(d)<0&&n.push(d)})}),t.__cache__={},n.forEach(function(s){t.__cache__[s]=[],t.__rules__.forEach(function(d){d.enabled&&(s&&d.alt.indexOf(s)<0||t.__cache__[s].push(d.fn))})})},Ruler.prototype.at=function(t,n,s){const d=this.__find__(t),m=s||{};if(d===-1)throw new Error("Parser rule not found: "+t);this.__rules__[d].fn=n,this.__rules__[d].alt=m.alt||[],this.__cache__=null},Ruler.prototype.before=function(t,n,s,d){const m=this.__find__(t),v=d||{};if(m===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(m,0,{name:n,enabled:!0,fn:s,alt:v.alt||[]}),this.__cache__=null},Ruler.prototype.after=function(t,n,s,d){const m=this.__find__(t),v=d||{};if(m===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(m+1,0,{name:n,enabled:!0,fn:s,alt:v.alt||[]}),this.__cache__=null},Ruler.prototype.push=function(t,n,s){const d=s||{};this.__rules__.push({name:t,enabled:!0,fn:n,alt:d.alt||[]}),this.__cache__=null},Ruler.prototype.enable=function(t,n){Array.isArray(t)||(t=[t]);const s=[];return t.forEach(function(d){const m=this.__find__(d);if(m<0){if(n)return;throw new Error("Rules manager: invalid rule name "+d)}this.__rules__[m].enabled=!0,s.push(d)},this),this.__cache__=null,s},Ruler.prototype.enableOnly=function(t,n){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(s){s.enabled=!1}),this.enable(t,n)},Ruler.prototype.disable=function(t,n){Array.isArray(t)||(t=[t]);const s=[];return t.forEach(function(d){const m=this.__find__(d);if(m<0){if(n)return;throw new Error("Rules manager: invalid rule name "+d)}this.__rules__[m].enabled=!1,s.push(d)},this),this.__cache__=null,s},Ruler.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};function Token(t,n,s){this.type=t,this.tag=n,this.attrs=null,this.map=null,this.nesting=s,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Token.prototype.attrIndex=function t(n){if(!this.attrs)return-1;const s=this.attrs;for(let d=0,m=s.length;d<m;d++)if(s[d][0]===n)return d;return-1},Token.prototype.attrPush=function t(n){this.attrs?this.attrs.push(n):this.attrs=[n]},Token.prototype.attrSet=function t(n,s){const d=this.attrIndex(n),m=[n,s];d<0?this.attrPush(m):this.attrs[d]=m},Token.prototype.attrGet=function t(n){const s=this.attrIndex(n);let d=null;return s>=0&&(d=this.attrs[s][1]),d},Token.prototype.attrJoin=function t(n,s){const d=this.attrIndex(n);d<0?this.attrPush([n,s]):this.attrs[d][1]=this.attrs[d][1]+" "+s};function StateCore(t,n,s){this.src=t,this.env=s,this.tokens=[],this.inlineMode=!1,this.md=n}StateCore.prototype.Token=Token;const NEWLINES_RE=/\r\n?|\n/g,NULL_RE=/\0/g;function normalize(t){let n;n=t.src.replace(NEWLINES_RE,`
383
+ `),n=n.replace(NULL_RE,"�"),t.src=n}function block(t){let n;t.inlineMode?(n=new t.Token("inline","",0),n.content=t.src,n.map=[0,1],n.children=[],t.tokens.push(n)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}function inline(t){const n=t.tokens;for(let s=0,d=n.length;s<d;s++){const m=n[s];m.type==="inline"&&t.md.inline.parse(m.content,t.md,t.env,m.children)}}function isLinkOpen$1(t){return/^<a[>\s]/i.test(t)}function isLinkClose$1(t){return/^<\/a\s*>/i.test(t)}function linkify$1(t){const n=t.tokens;if(t.md.options.linkify)for(let s=0,d=n.length;s<d;s++){if(n[s].type!=="inline"||!t.md.linkify.pretest(n[s].content))continue;let m=n[s].children,v=0;for(let S=m.length-1;S>=0;S--){const C=m[S];if(C.type==="link_close"){for(S--;m[S].level!==C.level&&m[S].type!=="link_open";)S--;continue}if(C.type==="html_inline"&&(isLinkOpen$1(C.content)&&v>0&&v--,isLinkClose$1(C.content)&&v++),!(v>0)&&C.type==="text"&&t.md.linkify.test(C.content)){const I=C.content;let N=t.md.linkify.match(I);const M=[];let k=C.level,z=0;N.length>0&&N[0].index===0&&S>0&&m[S-1].type==="text_special"&&(N=N.slice(1));for(let V=0;V<N.length;V++){const H=N[V].url,W=t.md.normalizeLink(H);if(!t.md.validateLink(W))continue;let J=N[V].text;N[V].schema?N[V].schema==="mailto:"&&!/^mailto:/i.test(J)?J=t.md.normalizeLinkText("mailto:"+J).replace(/^mailto:/,""):J=t.md.normalizeLinkText(J):J=t.md.normalizeLinkText("http://"+J).replace(/^http:\/\//,"");const K=N[V].index;if(K>z){const se=new t.Token("text","",0);se.content=I.slice(z,K),se.level=k,M.push(se)}const re=new t.Token("link_open","a",1);re.attrs=[["href",W]],re.level=k++,re.markup="linkify",re.info="auto",M.push(re);const te=new t.Token("text","",0);te.content=J,te.level=k,M.push(te);const ue=new t.Token("link_close","a",-1);ue.level=--k,ue.markup="linkify",ue.info="auto",M.push(ue),z=N[V].lastIndex}if(z<I.length){const V=new t.Token("text","",0);V.content=I.slice(z),V.level=k,M.push(V)}n[s].children=m=arrayReplaceAt(m,S,M)}}}}const RARE_RE=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,SCOPED_ABBR_TEST_RE=/\((c|tm|r)\)/i,SCOPED_ABBR_RE=/\((c|tm|r)\)/ig,SCOPED_ABBR={c:"©",r:"®",tm:"™"};function replaceFn(t,n){return SCOPED_ABBR[n.toLowerCase()]}function replace_scoped(t){let n=0;for(let s=t.length-1;s>=0;s--){const d=t[s];d.type==="text"&&!n&&(d.content=d.content.replace(SCOPED_ABBR_RE,replaceFn)),d.type==="link_open"&&d.info==="auto"&&n--,d.type==="link_close"&&d.info==="auto"&&n++}}function replace_rare(t){let n=0;for(let s=t.length-1;s>=0;s--){const d=t[s];d.type==="text"&&!n&&RARE_RE.test(d.content)&&(d.content=d.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),d.type==="link_open"&&d.info==="auto"&&n--,d.type==="link_close"&&d.info==="auto"&&n++}}function replace(t){let n;if(t.md.options.typographer)for(n=t.tokens.length-1;n>=0;n--)t.tokens[n].type==="inline"&&(SCOPED_ABBR_TEST_RE.test(t.tokens[n].content)&&replace_scoped(t.tokens[n].children),RARE_RE.test(t.tokens[n].content)&&replace_rare(t.tokens[n].children))}const QUOTE_TEST_RE=/['"]/,QUOTE_RE=/['"]/g,APOSTROPHE="’";function replaceAt(t,n,s){return t.slice(0,n)+s+t.slice(n+1)}function process_inlines(t,n){let s;const d=[];for(let m=0;m<t.length;m++){const v=t[m],S=t[m].level;for(s=d.length-1;s>=0&&!(d[s].level<=S);s--);if(d.length=s+1,v.type!=="text")continue;let C=v.content,I=0,N=C.length;e:for(;I<N;){QUOTE_RE.lastIndex=I;const M=QUOTE_RE.exec(C);if(!M)break;let k=!0,z=!0;I=M.index+1;const V=M[0]==="'";let H=32;if(M.index-1>=0)H=C.charCodeAt(M.index-1);else for(s=m-1;s>=0&&!(t[s].type==="softbreak"||t[s].type==="hardbreak");s--)if(t[s].content){H=t[s].content.charCodeAt(t[s].content.length-1);break}let W=32;if(I<N)W=C.charCodeAt(I);else for(s=m+1;s<t.length&&!(t[s].type==="softbreak"||t[s].type==="hardbreak");s++)if(t[s].content){W=t[s].content.charCodeAt(0);break}const J=isMdAsciiPunct(H)||isPunctChar(String.fromCharCode(H)),K=isMdAsciiPunct(W)||isPunctChar(String.fromCharCode(W)),re=isWhiteSpace(H),te=isWhiteSpace(W);if(te?k=!1:K&&(re||J||(k=!1)),re?z=!1:J&&(te||K||(z=!1)),W===34&&M[0]==='"'&&H>=48&&H<=57&&(z=k=!1),k&&z&&(k=J,z=K),!k&&!z){V&&(v.content=replaceAt(v.content,M.index,APOSTROPHE));continue}if(z)for(s=d.length-1;s>=0;s--){let ue=d[s];if(d[s].level<S)break;if(ue.single===V&&d[s].level===S){ue=d[s];let se,ge;V?(se=n.md.options.quotes[2],ge=n.md.options.quotes[3]):(se=n.md.options.quotes[0],ge=n.md.options.quotes[1]),v.content=replaceAt(v.content,M.index,ge),t[ue.token].content=replaceAt(t[ue.token].content,ue.pos,se),I+=ge.length-1,ue.token===m&&(I+=se.length-1),C=v.content,N=C.length,d.length=s;continue e}}k?d.push({token:m,pos:M.index,single:V,level:S}):z&&V&&(v.content=replaceAt(v.content,M.index,APOSTROPHE))}}}function smartquotes(t){if(t.md.options.typographer)for(let n=t.tokens.length-1;n>=0;n--)t.tokens[n].type!=="inline"||!QUOTE_TEST_RE.test(t.tokens[n].content)||process_inlines(t.tokens[n].children,t)}function text_join(t){let n,s;const d=t.tokens,m=d.length;for(let v=0;v<m;v++){if(d[v].type!=="inline")continue;const S=d[v].children,C=S.length;for(n=0;n<C;n++)S[n].type==="text_special"&&(S[n].type="text");for(n=s=0;n<C;n++)S[n].type==="text"&&n+1<C&&S[n+1].type==="text"?S[n+1].content=S[n].content+S[n+1].content:(n!==s&&(S[s]=S[n]),s++);n!==s&&(S.length=s)}}const _rules$2=[["normalize",normalize],["block",block],["inline",inline],["linkify",linkify$1],["replacements",replace],["smartquotes",smartquotes],["text_join",text_join]];function Core(){this.ruler=new Ruler;for(let t=0;t<_rules$2.length;t++)this.ruler.push(_rules$2[t][0],_rules$2[t][1])}Core.prototype.process=function(t){const n=this.ruler.getRules("");for(let s=0,d=n.length;s<d;s++)n[s](t)},Core.prototype.State=StateCore;function StateBlock(t,n,s,d){this.src=t,this.md=n,this.env=s,this.tokens=d,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const m=this.src;for(let v=0,S=0,C=0,I=0,N=m.length,M=!1;S<N;S++){const k=m.charCodeAt(S);if(!M)if(isSpace(k)){C++,k===9?I+=4-I%4:I++;continue}else M=!0;(k===10||S===N-1)&&(k!==10&&S++,this.bMarks.push(v),this.eMarks.push(S),this.tShift.push(C),this.sCount.push(I),this.bsCount.push(0),M=!1,C=0,I=0,v=S+1)}this.bMarks.push(m.length),this.eMarks.push(m.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}StateBlock.prototype.push=function(t,n,s){const d=new Token(t,n,s);return d.block=!0,s<0&&this.level--,d.level=this.level,s>0&&this.level++,this.tokens.push(d),d},StateBlock.prototype.isEmpty=function t(n){return this.bMarks[n]+this.tShift[n]>=this.eMarks[n]},StateBlock.prototype.skipEmptyLines=function t(n){for(let s=this.lineMax;n<s&&!(this.bMarks[n]+this.tShift[n]<this.eMarks[n]);n++);return n},StateBlock.prototype.skipSpaces=function t(n){for(let s=this.src.length;n<s;n++){const d=this.src.charCodeAt(n);if(!isSpace(d))break}return n},StateBlock.prototype.skipSpacesBack=function t(n,s){if(n<=s)return n;for(;n>s;)if(!isSpace(this.src.charCodeAt(--n)))return n+1;return n},StateBlock.prototype.skipChars=function t(n,s){for(let d=this.src.length;n<d&&this.src.charCodeAt(n)===s;n++);return n},StateBlock.prototype.skipCharsBack=function t(n,s,d){if(n<=d)return n;for(;n>d;)if(s!==this.src.charCodeAt(--n))return n+1;return n},StateBlock.prototype.getLines=function t(n,s,d,m){if(n>=s)return"";const v=new Array(s-n);for(let S=0,C=n;C<s;C++,S++){let I=0;const N=this.bMarks[C];let M=N,k;for(C+1<s||m?k=this.eMarks[C]+1:k=this.eMarks[C];M<k&&I<d;){const z=this.src.charCodeAt(M);if(isSpace(z))z===9?I+=4-(I+this.bsCount[C])%4:I++;else if(M-N<this.tShift[C])I++;else break;M++}I>d?v[S]=new Array(I-d+1).join(" ")+this.src.slice(M,k):v[S]=this.src.slice(M,k)}return v.join("")},StateBlock.prototype.Token=Token;const MAX_AUTOCOMPLETED_CELLS=65536;function getLine(t,n){const s=t.bMarks[n]+t.tShift[n],d=t.eMarks[n];return t.src.slice(s,d)}function escapedSplit(t){const n=[],s=t.length;let d=0,m=t.charCodeAt(d),v=!1,S=0,C="";for(;d<s;)m===124&&(v?(C+=t.substring(S,d-1),S=d):(n.push(C+t.substring(S,d)),C="",S=d+1)),v=m===92,d++,m=t.charCodeAt(d);return n.push(C+t.substring(S)),n}function table(t,n,s,d){if(n+2>s)return!1;let m=n+1;if(t.sCount[m]<t.blkIndent||t.sCount[m]-t.blkIndent>=4)return!1;let v=t.bMarks[m]+t.tShift[m];if(v>=t.eMarks[m])return!1;const S=t.src.charCodeAt(v++);if(S!==124&&S!==45&&S!==58||v>=t.eMarks[m])return!1;const C=t.src.charCodeAt(v++);if(C!==124&&C!==45&&C!==58&&!isSpace(C)||S===45&&isSpace(C))return!1;for(;v<t.eMarks[m];){const ue=t.src.charCodeAt(v);if(ue!==124&&ue!==45&&ue!==58&&!isSpace(ue))return!1;v++}let I=getLine(t,n+1),N=I.split("|");const M=[];for(let ue=0;ue<N.length;ue++){const se=N[ue].trim();if(!se){if(ue===0||ue===N.length-1)continue;return!1}if(!/^:?-+:?$/.test(se))return!1;se.charCodeAt(se.length-1)===58?M.push(se.charCodeAt(0)===58?"center":"right"):se.charCodeAt(0)===58?M.push("left"):M.push("")}if(I=getLine(t,n).trim(),I.indexOf("|")===-1||t.sCount[n]-t.blkIndent>=4)return!1;N=escapedSplit(I),N.length&&N[0]===""&&N.shift(),N.length&&N[N.length-1]===""&&N.pop();const k=N.length;if(k===0||k!==M.length)return!1;if(d)return!0;const z=t.parentType;t.parentType="table";const V=t.md.block.ruler.getRules("blockquote"),H=t.push("table_open","table",1),W=[n,0];H.map=W;const J=t.push("thead_open","thead",1);J.map=[n,n+1];const K=t.push("tr_open","tr",1);K.map=[n,n+1];for(let ue=0;ue<N.length;ue++){const se=t.push("th_open","th",1);M[ue]&&(se.attrs=[["style","text-align:"+M[ue]]]);const ge=t.push("inline","",0);ge.content=N[ue].trim(),ge.children=[],t.push("th_close","th",-1)}t.push("tr_close","tr",-1),t.push("thead_close","thead",-1);let re,te=0;for(m=n+2;m<s&&!(t.sCount[m]<t.blkIndent);m++){let ue=!1;for(let ge=0,pe=V.length;ge<pe;ge++)if(V[ge](t,m,s,!0)){ue=!0;break}if(ue||(I=getLine(t,m).trim(),!I)||t.sCount[m]-t.blkIndent>=4||(N=escapedSplit(I),N.length&&N[0]===""&&N.shift(),N.length&&N[N.length-1]===""&&N.pop(),te+=k-N.length,te>MAX_AUTOCOMPLETED_CELLS))break;if(m===n+2){const ge=t.push("tbody_open","tbody",1);ge.map=re=[n+2,0]}const se=t.push("tr_open","tr",1);se.map=[m,m+1];for(let ge=0;ge<k;ge++){const pe=t.push("td_open","td",1);M[ge]&&(pe.attrs=[["style","text-align:"+M[ge]]]);const Ee=t.push("inline","",0);Ee.content=N[ge]?N[ge].trim():"",Ee.children=[],t.push("td_close","td",-1)}t.push("tr_close","tr",-1)}return re&&(t.push("tbody_close","tbody",-1),re[1]=m),t.push("table_close","table",-1),W[1]=m,t.parentType=z,t.line=m,!0}function code(t,n,s){if(t.sCount[n]-t.blkIndent<4)return!1;let d=n+1,m=d;for(;d<s;){if(t.isEmpty(d)){d++;continue}if(t.sCount[d]-t.blkIndent>=4){d++,m=d;continue}break}t.line=m;const v=t.push("code_block","code",0);return v.content=t.getLines(n,m,4+t.blkIndent,!1)+`
384
+ `,v.map=[n,t.line],!0}function fence(t,n,s,d){let m=t.bMarks[n]+t.tShift[n],v=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||m+3>v)return!1;const S=t.src.charCodeAt(m);if(S!==126&&S!==96)return!1;let C=m;m=t.skipChars(m,S);let I=m-C;if(I<3)return!1;const N=t.src.slice(C,m),M=t.src.slice(m,v);if(S===96&&M.indexOf(String.fromCharCode(S))>=0)return!1;if(d)return!0;let k=n,z=!1;for(;k++,!(k>=s||(m=C=t.bMarks[k]+t.tShift[k],v=t.eMarks[k],m<v&&t.sCount[k]<t.blkIndent));)if(t.src.charCodeAt(m)===S&&!(t.sCount[k]-t.blkIndent>=4)&&(m=t.skipChars(m,S),!(m-C<I)&&(m=t.skipSpaces(m),!(m<v)))){z=!0;break}I=t.sCount[n],t.line=k+(z?1:0);const V=t.push("fence","code",0);return V.info=M,V.content=t.getLines(n+1,k,I,!0),V.markup=N,V.map=[n,t.line],!0}function blockquote(t,n,s,d){let m=t.bMarks[n]+t.tShift[n],v=t.eMarks[n];const S=t.lineMax;if(t.sCount[n]-t.blkIndent>=4||t.src.charCodeAt(m)!==62)return!1;if(d)return!0;const C=[],I=[],N=[],M=[],k=t.md.block.ruler.getRules("blockquote"),z=t.parentType;t.parentType="blockquote";let V=!1,H;for(H=n;H<s;H++){const te=t.sCount[H]<t.blkIndent;if(m=t.bMarks[H]+t.tShift[H],v=t.eMarks[H],m>=v)break;if(t.src.charCodeAt(m++)===62&&!te){let se=t.sCount[H]+1,ge,pe;t.src.charCodeAt(m)===32?(m++,se++,pe=!1,ge=!0):t.src.charCodeAt(m)===9?(ge=!0,(t.bsCount[H]+se)%4===3?(m++,se++,pe=!1):pe=!0):ge=!1;let Ee=se;for(C.push(t.bMarks[H]),t.bMarks[H]=m;m<v;){const ce=t.src.charCodeAt(m);if(isSpace(ce))ce===9?Ee+=4-(Ee+t.bsCount[H]+(pe?1:0))%4:Ee++;else break;m++}V=m>=v,I.push(t.bsCount[H]),t.bsCount[H]=t.sCount[H]+1+(ge?1:0),N.push(t.sCount[H]),t.sCount[H]=Ee-se,M.push(t.tShift[H]),t.tShift[H]=m-t.bMarks[H];continue}if(V)break;let ue=!1;for(let se=0,ge=k.length;se<ge;se++)if(k[se](t,H,s,!0)){ue=!0;break}if(ue){t.lineMax=H,t.blkIndent!==0&&(C.push(t.bMarks[H]),I.push(t.bsCount[H]),M.push(t.tShift[H]),N.push(t.sCount[H]),t.sCount[H]-=t.blkIndent);break}C.push(t.bMarks[H]),I.push(t.bsCount[H]),M.push(t.tShift[H]),N.push(t.sCount[H]),t.sCount[H]=-1}const W=t.blkIndent;t.blkIndent=0;const J=t.push("blockquote_open","blockquote",1);J.markup=">";const K=[n,0];J.map=K,t.md.block.tokenize(t,n,H);const re=t.push("blockquote_close","blockquote",-1);re.markup=">",t.lineMax=S,t.parentType=z,K[1]=t.line;for(let te=0;te<M.length;te++)t.bMarks[te+n]=C[te],t.tShift[te+n]=M[te],t.sCount[te+n]=N[te],t.bsCount[te+n]=I[te];return t.blkIndent=W,!0}function hr(t,n,s,d){const m=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4)return!1;let v=t.bMarks[n]+t.tShift[n];const S=t.src.charCodeAt(v++);if(S!==42&&S!==45&&S!==95)return!1;let C=1;for(;v<m;){const N=t.src.charCodeAt(v++);if(N!==S&&!isSpace(N))return!1;N===S&&C++}if(C<3)return!1;if(d)return!0;t.line=n+1;const I=t.push("hr","hr",0);return I.map=[n,t.line],I.markup=Array(C+1).join(String.fromCharCode(S)),!0}function skipBulletListMarker(t,n){const s=t.eMarks[n];let d=t.bMarks[n]+t.tShift[n];const m=t.src.charCodeAt(d++);if(m!==42&&m!==45&&m!==43)return-1;if(d<s){const v=t.src.charCodeAt(d);if(!isSpace(v))return-1}return d}function skipOrderedListMarker(t,n){const s=t.bMarks[n]+t.tShift[n],d=t.eMarks[n];let m=s;if(m+1>=d)return-1;let v=t.src.charCodeAt(m++);if(v<48||v>57)return-1;for(;;){if(m>=d)return-1;if(v=t.src.charCodeAt(m++),v>=48&&v<=57){if(m-s>=10)return-1;continue}if(v===41||v===46)break;return-1}return m<d&&(v=t.src.charCodeAt(m),!isSpace(v))?-1:m}function markTightParagraphs(t,n){const s=t.level+2;for(let d=n+2,m=t.tokens.length-2;d<m;d++)t.tokens[d].level===s&&t.tokens[d].type==="paragraph_open"&&(t.tokens[d+2].hidden=!0,t.tokens[d].hidden=!0,d+=2)}function list(t,n,s,d){let m,v,S,C,I=n,N=!0;if(t.sCount[I]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[I]-t.listIndent>=4&&t.sCount[I]<t.blkIndent)return!1;let M=!1;d&&t.parentType==="paragraph"&&t.sCount[I]>=t.blkIndent&&(M=!0);let k,z,V;if((V=skipOrderedListMarker(t,I))>=0){if(k=!0,S=t.bMarks[I]+t.tShift[I],z=Number(t.src.slice(S,V-1)),M&&z!==1)return!1}else if((V=skipBulletListMarker(t,I))>=0)k=!1;else return!1;if(M&&t.skipSpaces(V)>=t.eMarks[I])return!1;if(d)return!0;const H=t.src.charCodeAt(V-1),W=t.tokens.length;k?(C=t.push("ordered_list_open","ol",1),z!==1&&(C.attrs=[["start",z]])):C=t.push("bullet_list_open","ul",1);const J=[I,0];C.map=J,C.markup=String.fromCharCode(H);let K=!1;const re=t.md.block.ruler.getRules("list"),te=t.parentType;for(t.parentType="list";I<s;){v=V,m=t.eMarks[I];const ue=t.sCount[I]+V-(t.bMarks[I]+t.tShift[I]);let se=ue;for(;v<m;){const Ge=t.src.charCodeAt(v);if(Ge===9)se+=4-(se+t.bsCount[I])%4;else if(Ge===32)se++;else break;v++}const ge=v;let pe;ge>=m?pe=1:pe=se-ue,pe>4&&(pe=1);const Ee=ue+pe;C=t.push("list_item_open","li",1),C.markup=String.fromCharCode(H);const ce=[I,0];C.map=ce,k&&(C.info=t.src.slice(S,V-1));const me=t.tight,Re=t.tShift[I],Ne=t.sCount[I],we=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=Ee,t.tight=!0,t.tShift[I]=ge-t.bMarks[I],t.sCount[I]=se,ge>=m&&t.isEmpty(I+1)?t.line=Math.min(t.line+2,s):t.md.block.tokenize(t,I,s,!0),(!t.tight||K)&&(N=!1),K=t.line-I>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=we,t.tShift[I]=Re,t.sCount[I]=Ne,t.tight=me,C=t.push("list_item_close","li",-1),C.markup=String.fromCharCode(H),I=t.line,ce[1]=I,I>=s||t.sCount[I]<t.blkIndent||t.sCount[I]-t.blkIndent>=4)break;let De=!1;for(let Ge=0,de=re.length;Ge<de;Ge++)if(re[Ge](t,I,s,!0)){De=!0;break}if(De)break;if(k){if(V=skipOrderedListMarker(t,I),V<0)break;S=t.bMarks[I]+t.tShift[I]}else if(V=skipBulletListMarker(t,I),V<0)break;if(H!==t.src.charCodeAt(V-1))break}return k?C=t.push("ordered_list_close","ol",-1):C=t.push("bullet_list_close","ul",-1),C.markup=String.fromCharCode(H),J[1]=I,t.line=I,t.parentType=te,N&&markTightParagraphs(t,W),!0}function reference(t,n,s,d){let m=t.bMarks[n]+t.tShift[n],v=t.eMarks[n],S=n+1;if(t.sCount[n]-t.blkIndent>=4||t.src.charCodeAt(m)!==91)return!1;function C(re){const te=t.lineMax;if(re>=te||t.isEmpty(re))return null;let ue=!1;if(t.sCount[re]-t.blkIndent>3&&(ue=!0),t.sCount[re]<0&&(ue=!0),!ue){const pe=t.md.block.ruler.getRules("reference"),Ee=t.parentType;t.parentType="reference";let ce=!1;for(let me=0,Re=pe.length;me<Re;me++)if(pe[me](t,re,te,!0)){ce=!0;break}if(t.parentType=Ee,ce)return null}const se=t.bMarks[re]+t.tShift[re],ge=t.eMarks[re];return t.src.slice(se,ge+1)}let I=t.src.slice(m,v+1);v=I.length;let N=-1;for(m=1;m<v;m++){const re=I.charCodeAt(m);if(re===91)return!1;if(re===93){N=m;break}else if(re===10){const te=C(S);te!==null&&(I+=te,v=I.length,S++)}else if(re===92&&(m++,m<v&&I.charCodeAt(m)===10)){const te=C(S);te!==null&&(I+=te,v=I.length,S++)}}if(N<0||I.charCodeAt(N+1)!==58)return!1;for(m=N+2;m<v;m++){const re=I.charCodeAt(m);if(re===10){const te=C(S);te!==null&&(I+=te,v=I.length,S++)}else if(!isSpace(re))break}const M=t.md.helpers.parseLinkDestination(I,m,v);if(!M.ok)return!1;const k=t.md.normalizeLink(M.str);if(!t.md.validateLink(k))return!1;m=M.pos;const z=m,V=S,H=m;for(;m<v;m++){const re=I.charCodeAt(m);if(re===10){const te=C(S);te!==null&&(I+=te,v=I.length,S++)}else if(!isSpace(re))break}let W=t.md.helpers.parseLinkTitle(I,m,v);for(;W.can_continue;){const re=C(S);if(re===null)break;I+=re,m=v,v=I.length,S++,W=t.md.helpers.parseLinkTitle(I,m,v,W)}let J;for(m<v&&H!==m&&W.ok?(J=W.str,m=W.pos):(J="",m=z,S=V);m<v;){const re=I.charCodeAt(m);if(!isSpace(re))break;m++}if(m<v&&I.charCodeAt(m)!==10&&J)for(J="",m=z,S=V;m<v;){const re=I.charCodeAt(m);if(!isSpace(re))break;m++}if(m<v&&I.charCodeAt(m)!==10)return!1;const K=normalizeReference(I.slice(1,N));return K?(d||(typeof t.env.references>"u"&&(t.env.references={}),typeof t.env.references[K]>"u"&&(t.env.references[K]={title:J,href:k}),t.line=S),!0):!1}const block_names=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],attr_name="[a-zA-Z_:][a-zA-Z0-9:._-]*",unquoted="[^\"'=<>`\\x00-\\x20]+",single_quoted="'[^']*'",double_quoted='"[^"]*"',attr_value="(?:"+unquoted+"|"+single_quoted+"|"+double_quoted+")",attribute="(?:\\s+"+attr_name+"(?:\\s*=\\s*"+attr_value+")?)",open_tag="<[A-Za-z][A-Za-z0-9\\-]*"+attribute+"*\\s*\\/?>",close_tag="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",comment="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",processing="<[?][\\s\\S]*?[?]>",declaration="<![A-Za-z][^>]*>",cdata="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",HTML_TAG_RE=new RegExp("^(?:"+open_tag+"|"+close_tag+"|"+comment+"|"+processing+"|"+declaration+"|"+cdata+")"),HTML_OPEN_CLOSE_TAG_RE=new RegExp("^(?:"+open_tag+"|"+close_tag+")"),HTML_SEQUENCES=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+block_names.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(HTML_OPEN_CLOSE_TAG_RE.source+"\\s*$"),/^$/,!1]];function html_block(t,n,s,d){let m=t.bMarks[n]+t.tShift[n],v=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(m)!==60)return!1;let S=t.src.slice(m,v),C=0;for(;C<HTML_SEQUENCES.length&&!HTML_SEQUENCES[C][0].test(S);C++);if(C===HTML_SEQUENCES.length)return!1;if(d)return HTML_SEQUENCES[C][2];let I=n+1;if(!HTML_SEQUENCES[C][1].test(S)){for(;I<s&&!(t.sCount[I]<t.blkIndent);I++)if(m=t.bMarks[I]+t.tShift[I],v=t.eMarks[I],S=t.src.slice(m,v),HTML_SEQUENCES[C][1].test(S)){S.length!==0&&I++;break}}t.line=I;const N=t.push("html_block","",0);return N.map=[n,I],N.content=t.getLines(n,I,t.blkIndent,!0),!0}function heading(t,n,s,d){let m=t.bMarks[n]+t.tShift[n],v=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4)return!1;let S=t.src.charCodeAt(m);if(S!==35||m>=v)return!1;let C=1;for(S=t.src.charCodeAt(++m);S===35&&m<v&&C<=6;)C++,S=t.src.charCodeAt(++m);if(C>6||m<v&&!isSpace(S))return!1;if(d)return!0;v=t.skipSpacesBack(v,m);const I=t.skipCharsBack(v,35,m);I>m&&isSpace(t.src.charCodeAt(I-1))&&(v=I),t.line=n+1;const N=t.push("heading_open","h"+String(C),1);N.markup="########".slice(0,C),N.map=[n,t.line];const M=t.push("inline","",0);M.content=t.src.slice(m,v).trim(),M.map=[n,t.line],M.children=[];const k=t.push("heading_close","h"+String(C),-1);return k.markup="########".slice(0,C),!0}function lheading(t,n,s){const d=t.md.block.ruler.getRules("paragraph");if(t.sCount[n]-t.blkIndent>=4)return!1;const m=t.parentType;t.parentType="paragraph";let v=0,S,C=n+1;for(;C<s&&!t.isEmpty(C);C++){if(t.sCount[C]-t.blkIndent>3)continue;if(t.sCount[C]>=t.blkIndent){let V=t.bMarks[C]+t.tShift[C];const H=t.eMarks[C];if(V<H&&(S=t.src.charCodeAt(V),(S===45||S===61)&&(V=t.skipChars(V,S),V=t.skipSpaces(V),V>=H))){v=S===61?1:2;break}}if(t.sCount[C]<0)continue;let z=!1;for(let V=0,H=d.length;V<H;V++)if(d[V](t,C,s,!0)){z=!0;break}if(z)break}if(!v)return!1;const I=t.getLines(n,C,t.blkIndent,!1).trim();t.line=C+1;const N=t.push("heading_open","h"+String(v),1);N.markup=String.fromCharCode(S),N.map=[n,t.line];const M=t.push("inline","",0);M.content=I,M.map=[n,t.line-1],M.children=[];const k=t.push("heading_close","h"+String(v),-1);return k.markup=String.fromCharCode(S),t.parentType=m,!0}function paragraph(t,n,s){const d=t.md.block.ruler.getRules("paragraph"),m=t.parentType;let v=n+1;for(t.parentType="paragraph";v<s&&!t.isEmpty(v);v++){if(t.sCount[v]-t.blkIndent>3||t.sCount[v]<0)continue;let N=!1;for(let M=0,k=d.length;M<k;M++)if(d[M](t,v,s,!0)){N=!0;break}if(N)break}const S=t.getLines(n,v,t.blkIndent,!1).trim();t.line=v;const C=t.push("paragraph_open","p",1);C.map=[n,t.line];const I=t.push("inline","",0);return I.content=S,I.map=[n,t.line],I.children=[],t.push("paragraph_close","p",-1),t.parentType=m,!0}const _rules$1=[["table",table,["paragraph","reference"]],["code",code],["fence",fence,["paragraph","reference","blockquote","list"]],["blockquote",blockquote,["paragraph","reference","blockquote","list"]],["hr",hr,["paragraph","reference","blockquote","list"]],["list",list,["paragraph","reference","blockquote"]],["reference",reference],["html_block",html_block,["paragraph","reference","blockquote"]],["heading",heading,["paragraph","reference","blockquote"]],["lheading",lheading],["paragraph",paragraph]];function ParserBlock(){this.ruler=new Ruler;for(let t=0;t<_rules$1.length;t++)this.ruler.push(_rules$1[t][0],_rules$1[t][1],{alt:(_rules$1[t][2]||[]).slice()})}ParserBlock.prototype.tokenize=function(t,n,s){const d=this.ruler.getRules(""),m=d.length,v=t.md.options.maxNesting;let S=n,C=!1;for(;S<s&&(t.line=S=t.skipEmptyLines(S),!(S>=s||t.sCount[S]<t.blkIndent));){if(t.level>=v){t.line=s;break}const I=t.line;let N=!1;for(let M=0;M<m;M++)if(N=d[M](t,S,s,!1),N){if(I>=t.line)throw new Error("block rule didn't increment state.line");break}if(!N)throw new Error("none of the block rules matched");t.tight=!C,t.isEmpty(t.line-1)&&(C=!0),S=t.line,S<s&&t.isEmpty(S)&&(C=!0,S++,t.line=S)}},ParserBlock.prototype.parse=function(t,n,s,d){if(!t)return;const m=new this.State(t,n,s,d);this.tokenize(m,m.line,m.lineMax)},ParserBlock.prototype.State=StateBlock;function StateInline(t,n,s,d){this.src=t,this.env=s,this.md=n,this.tokens=d,this.tokens_meta=Array(d.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}StateInline.prototype.pushPending=function(){const t=new Token("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},StateInline.prototype.push=function(t,n,s){this.pending&&this.pushPending();const d=new Token(t,n,s);let m=null;return s<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),d.level=this.level,s>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],m={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(d),this.tokens_meta.push(m),d},StateInline.prototype.scanDelims=function(t,n){const s=this.posMax,d=this.src.charCodeAt(t),m=t>0?this.src.charCodeAt(t-1):32;let v=t;for(;v<s&&this.src.charCodeAt(v)===d;)v++;const S=v-t,C=v<s?this.src.charCodeAt(v):32,I=isMdAsciiPunct(m)||isPunctChar(String.fromCharCode(m)),N=isMdAsciiPunct(C)||isPunctChar(String.fromCharCode(C)),M=isWhiteSpace(m),k=isWhiteSpace(C),z=!k&&(!N||M||I),V=!M&&(!I||k||N);return{can_open:z&&(n||!V||I),can_close:V&&(n||!z||N),length:S}},StateInline.prototype.Token=Token;function isTerminatorChar(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function text(t,n){let s=t.pos;for(;s<t.posMax&&!isTerminatorChar(t.src.charCodeAt(s));)s++;return s===t.pos?!1:(n||(t.pending+=t.src.slice(t.pos,s)),t.pos=s,!0)}const SCHEME_RE=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function linkify(t,n){if(!t.md.options.linkify||t.linkLevel>0)return!1;const s=t.pos,d=t.posMax;if(s+3>d||t.src.charCodeAt(s)!==58||t.src.charCodeAt(s+1)!==47||t.src.charCodeAt(s+2)!==47)return!1;const m=t.pending.match(SCHEME_RE);if(!m)return!1;const v=m[1],S=t.md.linkify.matchAtStart(t.src.slice(s-v.length));if(!S)return!1;let C=S.url;if(C.length<=v.length)return!1;let I=C.length;for(;I>0&&C.charCodeAt(I-1)===42;)I--;I!==C.length&&(C=C.slice(0,I));const N=t.md.normalizeLink(C);if(!t.md.validateLink(N))return!1;if(!n){t.pending=t.pending.slice(0,-v.length);const M=t.push("link_open","a",1);M.attrs=[["href",N]],M.markup="linkify",M.info="auto";const k=t.push("text","",0);k.content=t.md.normalizeLinkText(C);const z=t.push("link_close","a",-1);z.markup="linkify",z.info="auto"}return t.pos+=C.length-v.length,!0}function newline(t,n){let s=t.pos;if(t.src.charCodeAt(s)!==10)return!1;const d=t.pending.length-1,m=t.posMax;if(!n)if(d>=0&&t.pending.charCodeAt(d)===32)if(d>=1&&t.pending.charCodeAt(d-1)===32){let v=d-1;for(;v>=1&&t.pending.charCodeAt(v-1)===32;)v--;t.pending=t.pending.slice(0,v),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(s++;s<m&&isSpace(t.src.charCodeAt(s));)s++;return t.pos=s,!0}const ESCAPED=[];for(let t=0;t<256;t++)ESCAPED.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){ESCAPED[t.charCodeAt(0)]=1});function escape(t,n){let s=t.pos;const d=t.posMax;if(t.src.charCodeAt(s)!==92||(s++,s>=d))return!1;let m=t.src.charCodeAt(s);if(m===10){for(n||t.push("hardbreak","br",0),s++;s<d&&(m=t.src.charCodeAt(s),!!isSpace(m));)s++;return t.pos=s,!0}let v=t.src[s];if(m>=55296&&m<=56319&&s+1<d){const C=t.src.charCodeAt(s+1);C>=56320&&C<=57343&&(v+=t.src[s+1],s++)}const S="\\"+v;if(!n){const C=t.push("text_special","",0);m<256&&ESCAPED[m]!==0?C.content=v:C.content=S,C.markup=S,C.info="escape"}return t.pos=s+1,!0}function backtick(t,n){let s=t.pos;if(t.src.charCodeAt(s)!==96)return!1;const m=s;s++;const v=t.posMax;for(;s<v&&t.src.charCodeAt(s)===96;)s++;const S=t.src.slice(m,s),C=S.length;if(t.backticksScanned&&(t.backticks[C]||0)<=m)return n||(t.pending+=S),t.pos+=C,!0;let I=s,N;for(;(N=t.src.indexOf("`",I))!==-1;){for(I=N+1;I<v&&t.src.charCodeAt(I)===96;)I++;const M=I-N;if(M===C){if(!n){const k=t.push("code_inline","code",0);k.markup=S,k.content=t.src.slice(s,N).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return t.pos=I,!0}t.backticks[M]=N}return t.backticksScanned=!0,n||(t.pending+=S),t.pos+=C,!0}function strikethrough_tokenize(t,n){const s=t.pos,d=t.src.charCodeAt(s);if(n||d!==126)return!1;const m=t.scanDelims(t.pos,!0);let v=m.length;const S=String.fromCharCode(d);if(v<2)return!1;let C;v%2&&(C=t.push("text","",0),C.content=S,v--);for(let I=0;I<v;I+=2)C=t.push("text","",0),C.content=S+S,t.delimiters.push({marker:d,length:0,token:t.tokens.length-1,end:-1,open:m.can_open,close:m.can_close});return t.pos+=m.length,!0}function postProcess$1(t,n){let s;const d=[],m=n.length;for(let v=0;v<m;v++){const S=n[v];if(S.marker!==126||S.end===-1)continue;const C=n[S.end];s=t.tokens[S.token],s.type="s_open",s.tag="s",s.nesting=1,s.markup="~~",s.content="",s=t.tokens[C.token],s.type="s_close",s.tag="s",s.nesting=-1,s.markup="~~",s.content="",t.tokens[C.token-1].type==="text"&&t.tokens[C.token-1].content==="~"&&d.push(C.token-1)}for(;d.length;){const v=d.pop();let S=v+1;for(;S<t.tokens.length&&t.tokens[S].type==="s_close";)S++;S--,v!==S&&(s=t.tokens[S],t.tokens[S]=t.tokens[v],t.tokens[v]=s)}}function strikethrough_postProcess(t){const n=t.tokens_meta,s=t.tokens_meta.length;postProcess$1(t,t.delimiters);for(let d=0;d<s;d++)n[d]&&n[d].delimiters&&postProcess$1(t,n[d].delimiters)}const r_strikethrough={tokenize:strikethrough_tokenize,postProcess:strikethrough_postProcess};function emphasis_tokenize(t,n){const s=t.pos,d=t.src.charCodeAt(s);if(n||d!==95&&d!==42)return!1;const m=t.scanDelims(t.pos,d===42);for(let v=0;v<m.length;v++){const S=t.push("text","",0);S.content=String.fromCharCode(d),t.delimiters.push({marker:d,length:m.length,token:t.tokens.length-1,end:-1,open:m.can_open,close:m.can_close})}return t.pos+=m.length,!0}function postProcess(t,n){const s=n.length;for(let d=s-1;d>=0;d--){const m=n[d];if(m.marker!==95&&m.marker!==42||m.end===-1)continue;const v=n[m.end],S=d>0&&n[d-1].end===m.end+1&&n[d-1].marker===m.marker&&n[d-1].token===m.token-1&&n[m.end+1].token===v.token+1,C=String.fromCharCode(m.marker),I=t.tokens[m.token];I.type=S?"strong_open":"em_open",I.tag=S?"strong":"em",I.nesting=1,I.markup=S?C+C:C,I.content="";const N=t.tokens[v.token];N.type=S?"strong_close":"em_close",N.tag=S?"strong":"em",N.nesting=-1,N.markup=S?C+C:C,N.content="",S&&(t.tokens[n[d-1].token].content="",t.tokens[n[m.end+1].token].content="",d--)}}function emphasis_post_process(t){const n=t.tokens_meta,s=t.tokens_meta.length;postProcess(t,t.delimiters);for(let d=0;d<s;d++)n[d]&&n[d].delimiters&&postProcess(t,n[d].delimiters)}const r_emphasis={tokenize:emphasis_tokenize,postProcess:emphasis_post_process};function link(t,n){let s,d,m,v,S="",C="",I=t.pos,N=!0;if(t.src.charCodeAt(t.pos)!==91)return!1;const M=t.pos,k=t.posMax,z=t.pos+1,V=t.md.helpers.parseLinkLabel(t,t.pos,!0);if(V<0)return!1;let H=V+1;if(H<k&&t.src.charCodeAt(H)===40){for(N=!1,H++;H<k&&(s=t.src.charCodeAt(H),!(!isSpace(s)&&s!==10));H++);if(H>=k)return!1;if(I=H,m=t.md.helpers.parseLinkDestination(t.src,H,t.posMax),m.ok){for(S=t.md.normalizeLink(m.str),t.md.validateLink(S)?H=m.pos:S="",I=H;H<k&&(s=t.src.charCodeAt(H),!(!isSpace(s)&&s!==10));H++);if(m=t.md.helpers.parseLinkTitle(t.src,H,t.posMax),H<k&&I!==H&&m.ok)for(C=m.str,H=m.pos;H<k&&(s=t.src.charCodeAt(H),!(!isSpace(s)&&s!==10));H++);}(H>=k||t.src.charCodeAt(H)!==41)&&(N=!0),H++}if(N){if(typeof t.env.references>"u")return!1;if(H<k&&t.src.charCodeAt(H)===91?(I=H+1,H=t.md.helpers.parseLinkLabel(t,H),H>=0?d=t.src.slice(I,H++):H=V+1):H=V+1,d||(d=t.src.slice(z,V)),v=t.env.references[normalizeReference(d)],!v)return t.pos=M,!1;S=v.href,C=v.title}if(!n){t.pos=z,t.posMax=V;const W=t.push("link_open","a",1),J=[["href",S]];W.attrs=J,C&&J.push(["title",C]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,t.push("link_close","a",-1)}return t.pos=H,t.posMax=k,!0}function image(t,n){let s,d,m,v,S,C,I,N,M="";const k=t.pos,z=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91)return!1;const V=t.pos+2,H=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(H<0)return!1;if(v=H+1,v<z&&t.src.charCodeAt(v)===40){for(v++;v<z&&(s=t.src.charCodeAt(v),!(!isSpace(s)&&s!==10));v++);if(v>=z)return!1;for(N=v,C=t.md.helpers.parseLinkDestination(t.src,v,t.posMax),C.ok&&(M=t.md.normalizeLink(C.str),t.md.validateLink(M)?v=C.pos:M=""),N=v;v<z&&(s=t.src.charCodeAt(v),!(!isSpace(s)&&s!==10));v++);if(C=t.md.helpers.parseLinkTitle(t.src,v,t.posMax),v<z&&N!==v&&C.ok)for(I=C.str,v=C.pos;v<z&&(s=t.src.charCodeAt(v),!(!isSpace(s)&&s!==10));v++);else I="";if(v>=z||t.src.charCodeAt(v)!==41)return t.pos=k,!1;v++}else{if(typeof t.env.references>"u")return!1;if(v<z&&t.src.charCodeAt(v)===91?(N=v+1,v=t.md.helpers.parseLinkLabel(t,v),v>=0?m=t.src.slice(N,v++):v=H+1):v=H+1,m||(m=t.src.slice(V,H)),S=t.env.references[normalizeReference(m)],!S)return t.pos=k,!1;M=S.href,I=S.title}if(!n){d=t.src.slice(V,H);const W=[];t.md.inline.parse(d,t.md,t.env,W);const J=t.push("image","img",0),K=[["src",M],["alt",""]];J.attrs=K,J.children=W,J.content=d,I&&K.push(["title",I])}return t.pos=v,t.posMax=z,!0}const EMAIL_RE=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,AUTOLINK_RE=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function autolink(t,n){let s=t.pos;if(t.src.charCodeAt(s)!==60)return!1;const d=t.pos,m=t.posMax;for(;;){if(++s>=m)return!1;const S=t.src.charCodeAt(s);if(S===60)return!1;if(S===62)break}const v=t.src.slice(d+1,s);if(AUTOLINK_RE.test(v)){const S=t.md.normalizeLink(v);if(!t.md.validateLink(S))return!1;if(!n){const C=t.push("link_open","a",1);C.attrs=[["href",S]],C.markup="autolink",C.info="auto";const I=t.push("text","",0);I.content=t.md.normalizeLinkText(v);const N=t.push("link_close","a",-1);N.markup="autolink",N.info="auto"}return t.pos+=v.length+2,!0}if(EMAIL_RE.test(v)){const S=t.md.normalizeLink("mailto:"+v);if(!t.md.validateLink(S))return!1;if(!n){const C=t.push("link_open","a",1);C.attrs=[["href",S]],C.markup="autolink",C.info="auto";const I=t.push("text","",0);I.content=t.md.normalizeLinkText(v);const N=t.push("link_close","a",-1);N.markup="autolink",N.info="auto"}return t.pos+=v.length+2,!0}return!1}function isLinkOpen(t){return/^<a[>\s]/i.test(t)}function isLinkClose(t){return/^<\/a\s*>/i.test(t)}function isLetter(t){const n=t|32;return n>=97&&n<=122}function html_inline(t,n){if(!t.md.options.html)return!1;const s=t.posMax,d=t.pos;if(t.src.charCodeAt(d)!==60||d+2>=s)return!1;const m=t.src.charCodeAt(d+1);if(m!==33&&m!==63&&m!==47&&!isLetter(m))return!1;const v=t.src.slice(d).match(HTML_TAG_RE);if(!v)return!1;if(!n){const S=t.push("html_inline","",0);S.content=v[0],isLinkOpen(S.content)&&t.linkLevel++,isLinkClose(S.content)&&t.linkLevel--}return t.pos+=v[0].length,!0}const DIGITAL_RE=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,NAMED_RE=/^&([a-z][a-z0-9]{1,31});/i;function entity(t,n){const s=t.pos,d=t.posMax;if(t.src.charCodeAt(s)!==38||s+1>=d)return!1;if(t.src.charCodeAt(s+1)===35){const v=t.src.slice(s).match(DIGITAL_RE);if(v){if(!n){const S=v[1][0].toLowerCase()==="x"?parseInt(v[1].slice(1),16):parseInt(v[1],10),C=t.push("text_special","",0);C.content=isValidEntityCode(S)?fromCodePoint(S):fromCodePoint(65533),C.markup=v[0],C.info="entity"}return t.pos+=v[0].length,!0}}else{const v=t.src.slice(s).match(NAMED_RE);if(v){const S=decodeHTML(v[0]);if(S!==v[0]){if(!n){const C=t.push("text_special","",0);C.content=S,C.markup=v[0],C.info="entity"}return t.pos+=v[0].length,!0}}}return!1}function processDelimiters(t){const n={},s=t.length;if(!s)return;let d=0,m=-2;const v=[];for(let S=0;S<s;S++){const C=t[S];if(v.push(0),(t[d].marker!==C.marker||m!==C.token-1)&&(d=S),m=C.token,C.length=C.length||0,!C.close)continue;n.hasOwnProperty(C.marker)||(n[C.marker]=[-1,-1,-1,-1,-1,-1]);const I=n[C.marker][(C.open?3:0)+C.length%3];let N=d-v[d]-1,M=N;for(;N>I;N-=v[N]+1){const k=t[N];if(k.marker===C.marker&&k.open&&k.end<0){let z=!1;if((k.close||C.open)&&(k.length+C.length)%3===0&&(k.length%3!==0||C.length%3!==0)&&(z=!0),!z){const V=N>0&&!t[N-1].open?v[N-1]+1:0;v[S]=S-N+V,v[N]=V,C.open=!1,k.end=S,k.close=!1,M=-1,m=-2;break}}}M!==-1&&(n[C.marker][(C.open?3:0)+(C.length||0)%3]=M)}}function link_pairs(t){const n=t.tokens_meta,s=t.tokens_meta.length;processDelimiters(t.delimiters);for(let d=0;d<s;d++)n[d]&&n[d].delimiters&&processDelimiters(n[d].delimiters)}function fragments_join(t){let n,s,d=0;const m=t.tokens,v=t.tokens.length;for(n=s=0;n<v;n++)m[n].nesting<0&&d--,m[n].level=d,m[n].nesting>0&&d++,m[n].type==="text"&&n+1<v&&m[n+1].type==="text"?m[n+1].content=m[n].content+m[n+1].content:(n!==s&&(m[s]=m[n]),s++);n!==s&&(m.length=s)}const _rules=[["text",text],["linkify",linkify],["newline",newline],["escape",escape],["backticks",backtick],["strikethrough",r_strikethrough.tokenize],["emphasis",r_emphasis.tokenize],["link",link],["image",image],["autolink",autolink],["html_inline",html_inline],["entity",entity]],_rules2=[["balance_pairs",link_pairs],["strikethrough",r_strikethrough.postProcess],["emphasis",r_emphasis.postProcess],["fragments_join",fragments_join]];function ParserInline(){this.ruler=new Ruler;for(let t=0;t<_rules.length;t++)this.ruler.push(_rules[t][0],_rules[t][1]);this.ruler2=new Ruler;for(let t=0;t<_rules2.length;t++)this.ruler2.push(_rules2[t][0],_rules2[t][1])}ParserInline.prototype.skipToken=function(t){const n=t.pos,s=this.ruler.getRules(""),d=s.length,m=t.md.options.maxNesting,v=t.cache;if(typeof v[n]<"u"){t.pos=v[n];return}let S=!1;if(t.level<m){for(let C=0;C<d;C++)if(t.level++,S=s[C](t,!0),t.level--,S){if(n>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;S||t.pos++,v[n]=t.pos},ParserInline.prototype.tokenize=function(t){const n=this.ruler.getRules(""),s=n.length,d=t.posMax,m=t.md.options.maxNesting;for(;t.pos<d;){const v=t.pos;let S=!1;if(t.level<m){for(let C=0;C<s;C++)if(S=n[C](t,!1),S){if(v>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(S){if(t.pos>=d)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},ParserInline.prototype.parse=function(t,n,s,d){const m=new this.State(t,n,s,d);this.tokenize(m);const v=this.ruler2.getRules(""),S=v.length;for(let C=0;C<S;C++)v[C](m)},ParserInline.prototype.State=StateInline;function reFactory(t){const n={};t=t||{},n.src_Any=Any.source,n.src_Cc=Cc.source,n.src_Z=Z.source,n.src_P=P.source,n.src_ZPCc=[n.src_Z,n.src_P,n.src_Cc].join("|"),n.src_ZCc=[n.src_Z,n.src_Cc].join("|");const s="[><|]";return n.src_pseudo_letter="(?:(?!"+s+"|"+n.src_ZPCc+")"+n.src_Any+")",n.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",n.src_auth="(?:(?:(?!"+n.src_ZCc+"|[@/\\[\\]()]).)+@)?",n.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",n.src_host_terminator="(?=$|"+s+"|"+n.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+n.src_ZPCc+"))",n.src_path="(?:[/?#](?:(?!"+n.src_ZCc+"|"+s+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+n.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+n.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+n.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+n.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+n.src_ZCc+"|[']).)+\\'|\\'(?="+n.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+n.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+n.src_ZCc+"|$)|;(?!"+n.src_ZCc+"|$)|\\!+(?!"+n.src_ZCc+"|[!]|$)|\\?(?!"+n.src_ZCc+"|[?]|$))+|\\/)?",n.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',n.src_xn="xn--[a-z0-9\\-]{1,59}",n.src_domain_root="(?:"+n.src_xn+"|"+n.src_pseudo_letter+"{1,63})",n.src_domain="(?:"+n.src_xn+"|(?:"+n.src_pseudo_letter+")|(?:"+n.src_pseudo_letter+"(?:-|"+n.src_pseudo_letter+"){0,61}"+n.src_pseudo_letter+"))",n.src_host="(?:(?:(?:(?:"+n.src_domain+")\\.)*"+n.src_domain+"))",n.tpl_host_fuzzy="(?:"+n.src_ip4+"|(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%)))",n.tpl_host_no_ip_fuzzy="(?:(?:(?:"+n.src_domain+")\\.)+(?:%TLDS%))",n.src_host_strict=n.src_host+n.src_host_terminator,n.tpl_host_fuzzy_strict=n.tpl_host_fuzzy+n.src_host_terminator,n.src_host_port_strict=n.src_host+n.src_port+n.src_host_terminator,n.tpl_host_port_fuzzy_strict=n.tpl_host_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_port_no_ip_fuzzy_strict=n.tpl_host_no_ip_fuzzy+n.src_port+n.src_host_terminator,n.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+n.src_ZPCc+"|>|$))",n.tpl_email_fuzzy="(^|"+s+'|"|\\(|'+n.src_ZCc+")("+n.src_email_name+"@"+n.tpl_host_fuzzy_strict+")",n.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_fuzzy_strict+n.src_path+")",n.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+n.src_ZPCc+"))((?![$+<=>^`||])"+n.tpl_host_port_no_ip_fuzzy_strict+n.src_path+")",n}function assign(t){return Array.prototype.slice.call(arguments,1).forEach(function(s){s&&Object.keys(s).forEach(function(d){t[d]=s[d]})}),t}function _class(t){return Object.prototype.toString.call(t)}function isString(t){return _class(t)==="[object String]"}function isObject(t){return _class(t)==="[object Object]"}function isRegExp(t){return _class(t)==="[object RegExp]"}function isFunction(t){return _class(t)==="[object Function]"}function escapeRE(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const defaultOptions={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function isOptionsObj(t){return Object.keys(t||{}).reduce(function(n,s){return n||defaultOptions.hasOwnProperty(s)},!1)}const defaultSchemas={"http:":{validate:function(t,n,s){const d=t.slice(n);return s.re.http||(s.re.http=new RegExp("^\\/\\/"+s.re.src_auth+s.re.src_host_port_strict+s.re.src_path,"i")),s.re.http.test(d)?d.match(s.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,n,s){const d=t.slice(n);return s.re.no_http||(s.re.no_http=new RegExp("^"+s.re.src_auth+"(?:localhost|(?:(?:"+s.re.src_domain+")\\.)+"+s.re.src_domain_root+")"+s.re.src_port+s.re.src_host_terminator+s.re.src_path,"i")),s.re.no_http.test(d)?n>=3&&t[n-3]===":"||n>=3&&t[n-3]==="/"?0:d.match(s.re.no_http)[0].length:0}},"mailto:":{validate:function(t,n,s){const d=t.slice(n);return s.re.mailto||(s.re.mailto=new RegExp("^"+s.re.src_email_name+"@"+s.re.src_host_strict,"i")),s.re.mailto.test(d)?d.match(s.re.mailto)[0].length:0}}},tlds_2ch_src_re="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",tlds_default="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function resetScanCache(t){t.__index__=-1,t.__text_cache__=""}function createValidator(t){return function(n,s){const d=n.slice(s);return t.test(d)?d.match(t)[0].length:0}}function createNormalizer(){return function(t,n){n.normalize(t)}}function compile(t){const n=t.re=reFactory(t.__opts__),s=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||s.push(tlds_2ch_src_re),s.push(n.src_xn),n.src_tlds=s.join("|");function d(C){return C.replace("%TLDS%",n.src_tlds)}n.email_fuzzy=RegExp(d(n.tpl_email_fuzzy),"i"),n.link_fuzzy=RegExp(d(n.tpl_link_fuzzy),"i"),n.link_no_ip_fuzzy=RegExp(d(n.tpl_link_no_ip_fuzzy),"i"),n.host_fuzzy_test=RegExp(d(n.tpl_host_fuzzy_test),"i");const m=[];t.__compiled__={};function v(C,I){throw new Error('(LinkifyIt) Invalid schema "'+C+'": '+I)}Object.keys(t.__schemas__).forEach(function(C){const I=t.__schemas__[C];if(I===null)return;const N={validate:null,link:null};if(t.__compiled__[C]=N,isObject(I)){isRegExp(I.validate)?N.validate=createValidator(I.validate):isFunction(I.validate)?N.validate=I.validate:v(C,I),isFunction(I.normalize)?N.normalize=I.normalize:I.normalize?v(C,I):N.normalize=createNormalizer();return}if(isString(I)){m.push(C);return}v(C,I)}),m.forEach(function(C){t.__compiled__[t.__schemas__[C]]&&(t.__compiled__[C].validate=t.__compiled__[t.__schemas__[C]].validate,t.__compiled__[C].normalize=t.__compiled__[t.__schemas__[C]].normalize)}),t.__compiled__[""]={validate:null,normalize:createNormalizer()};const S=Object.keys(t.__compiled__).filter(function(C){return C.length>0&&t.__compiled__[C]}).map(escapeRE).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+n.src_ZPCc+"))("+S+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+n.src_ZPCc+"))("+S+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),resetScanCache(t)}function Match(t,n){const s=t.__index__,d=t.__last_index__,m=t.__text_cache__.slice(s,d);this.schema=t.__schema__.toLowerCase(),this.index=s+n,this.lastIndex=d+n,this.raw=m,this.text=m,this.url=m}function createMatch(t,n){const s=new Match(t,n);return t.__compiled__[s.schema].normalize(s,t),s}function LinkifyIt(t,n){if(!(this instanceof LinkifyIt))return new LinkifyIt(t,n);n||isOptionsObj(t)&&(n=t,t={}),this.__opts__=assign({},defaultOptions,n),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=assign({},defaultSchemas,t),this.__compiled__={},this.__tlds__=tlds_default,this.__tlds_replaced__=!1,this.re={},compile(this)}LinkifyIt.prototype.add=function t(n,s){return this.__schemas__[n]=s,compile(this),this},LinkifyIt.prototype.set=function t(n){return this.__opts__=assign(this.__opts__,n),this},LinkifyIt.prototype.test=function t(n){if(this.__text_cache__=n,this.__index__=-1,!n.length)return!1;let s,d,m,v,S,C,I,N,M;if(this.re.schema_test.test(n)){for(I=this.re.schema_search,I.lastIndex=0;(s=I.exec(n))!==null;)if(v=this.testSchemaAt(n,s[2],I.lastIndex),v){this.__schema__=s[2],this.__index__=s.index+s[1].length,this.__last_index__=s.index+s[0].length+v;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(N=n.search(this.re.host_fuzzy_test),N>=0&&(this.__index__<0||N<this.__index__)&&(d=n.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(S=d.index+d[1].length,(this.__index__<0||S<this.__index__)&&(this.__schema__="",this.__index__=S,this.__last_index__=d.index+d[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(M=n.indexOf("@"),M>=0&&(m=n.match(this.re.email_fuzzy))!==null&&(S=m.index+m[1].length,C=m.index+m[0].length,(this.__index__<0||S<this.__index__||S===this.__index__&&C>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=S,this.__last_index__=C))),this.__index__>=0},LinkifyIt.prototype.pretest=function t(n){return this.re.pretest.test(n)},LinkifyIt.prototype.testSchemaAt=function t(n,s,d){return this.__compiled__[s.toLowerCase()]?this.__compiled__[s.toLowerCase()].validate(n,d,this):0},LinkifyIt.prototype.match=function t(n){const s=[];let d=0;this.__index__>=0&&this.__text_cache__===n&&(s.push(createMatch(this,d)),d=this.__last_index__);let m=d?n.slice(d):n;for(;this.test(m);)s.push(createMatch(this,d)),m=m.slice(this.__last_index__),d+=this.__last_index__;return s.length?s:null},LinkifyIt.prototype.matchAtStart=function t(n){if(this.__text_cache__=n,this.__index__=-1,!n.length)return null;const s=this.re.schema_at_start.exec(n);if(!s)return null;const d=this.testSchemaAt(n,s[2],s[0].length);return d?(this.__schema__=s[2],this.__index__=s.index+s[1].length,this.__last_index__=s.index+s[0].length+d,createMatch(this,0)):null},LinkifyIt.prototype.tlds=function t(n,s){return n=Array.isArray(n)?n:[n],s?(this.__tlds__=this.__tlds__.concat(n).sort().filter(function(d,m,v){return d!==v[m-1]}).reverse(),compile(this),this):(this.__tlds__=n.slice(),this.__tlds_replaced__=!0,compile(this),this)},LinkifyIt.prototype.normalize=function t(n){n.schema||(n.url="http://"+n.url),n.schema==="mailto:"&&!/^mailto:/i.test(n.url)&&(n.url="mailto:"+n.url)},LinkifyIt.prototype.onCompile=function t(){};const maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexPunycode=/^xn--/,regexNonASCII=/[^\0-\x7F]/,regexSeparators=/[\x2E\u3002\uFF0E\uFF61]/g,errors={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},baseMinusTMin=base-tMin,floor=Math.floor,stringFromCharCode=String.fromCharCode;function error(t){throw new RangeError(errors[t])}function map$1(t,n){const s=[];let d=t.length;for(;d--;)s[d]=n(t[d]);return s}function mapDomain(t,n){const s=t.split("@");let d="";s.length>1&&(d=s[0]+"@",t=s[1]),t=t.replace(regexSeparators,".");const m=t.split("."),v=map$1(m,n).join(".");return d+v}function ucs2decode(t){const n=[];let s=0;const d=t.length;for(;s<d;){const m=t.charCodeAt(s++);if(m>=55296&&m<=56319&&s<d){const v=t.charCodeAt(s++);(v&64512)==56320?n.push(((m&1023)<<10)+(v&1023)+65536):(n.push(m),s--)}else n.push(m)}return n}const ucs2encode=t=>String.fromCodePoint(...t),basicToDigit=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:base},digitToBasic=function(t,n){return t+22+75*(t<26)-((n!=0)<<5)},adapt=function(t,n,s){let d=0;for(t=s?floor(t/damp):t>>1,t+=floor(t/n);t>baseMinusTMin*tMax>>1;d+=base)t=floor(t/baseMinusTMin);return floor(d+(baseMinusTMin+1)*t/(t+skew))},decode=function(t){const n=[],s=t.length;let d=0,m=initialN,v=initialBias,S=t.lastIndexOf(delimiter);S<0&&(S=0);for(let C=0;C<S;++C)t.charCodeAt(C)>=128&&error("not-basic"),n.push(t.charCodeAt(C));for(let C=S>0?S+1:0;C<s;){const I=d;for(let M=1,k=base;;k+=base){C>=s&&error("invalid-input");const z=basicToDigit(t.charCodeAt(C++));z>=base&&error("invalid-input"),z>floor((maxInt-d)/M)&&error("overflow"),d+=z*M;const V=k<=v?tMin:k>=v+tMax?tMax:k-v;if(z<V)break;const H=base-V;M>floor(maxInt/H)&&error("overflow"),M*=H}const N=n.length+1;v=adapt(d-I,N,I==0),floor(d/N)>maxInt-m&&error("overflow"),m+=floor(d/N),d%=N,n.splice(d++,0,m)}return String.fromCodePoint(...n)},encode=function(t){const n=[];t=ucs2decode(t);const s=t.length;let d=initialN,m=0,v=initialBias;for(const I of t)I<128&&n.push(stringFromCharCode(I));const S=n.length;let C=S;for(S&&n.push(delimiter);C<s;){let I=maxInt;for(const M of t)M>=d&&M<I&&(I=M);const N=C+1;I-d>floor((maxInt-m)/N)&&error("overflow"),m+=(I-d)*N,d=I;for(const M of t)if(M<d&&++m>maxInt&&error("overflow"),M===d){let k=m;for(let z=base;;z+=base){const V=z<=v?tMin:z>=v+tMax?tMax:z-v;if(k<V)break;const H=k-V,W=base-V;n.push(stringFromCharCode(digitToBasic(V+H%W,0))),k=floor(H/W)}n.push(stringFromCharCode(digitToBasic(k,0))),v=adapt(m,N,C===S),m=0,++C}++m,++d}return n.join("")},toUnicode=function(t){return mapDomain(t,function(n){return regexPunycode.test(n)?decode(n.slice(4).toLowerCase()):n})},toASCII=function(t){return mapDomain(t,function(n){return regexNonASCII.test(n)?"xn--"+encode(n):n})},punycode={version:"2.3.1",ucs2:{decode:ucs2decode,encode:ucs2encode},decode,encode,toASCII,toUnicode},cfg_default={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},cfg_zero={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},cfg_commonmark={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},config={default:cfg_default,zero:cfg_zero,commonmark:cfg_commonmark},BAD_PROTO_RE=/^(vbscript|javascript|file|data):/,GOOD_DATA_RE=/^data:image\/(gif|png|jpeg|webp);/;function validateLink(t){const n=t.trim().toLowerCase();return BAD_PROTO_RE.test(n)?GOOD_DATA_RE.test(n):!0}const RECODE_HOSTNAME_FOR=["http:","https:","mailto:"];function normalizeLink(t){const n=urlParse(t,!0);if(n.hostname&&(!n.protocol||RECODE_HOSTNAME_FOR.indexOf(n.protocol)>=0))try{n.hostname=punycode.toASCII(n.hostname)}catch{}return encode$1(format(n))}function normalizeLinkText(t){const n=urlParse(t,!0);if(n.hostname&&(!n.protocol||RECODE_HOSTNAME_FOR.indexOf(n.protocol)>=0))try{n.hostname=punycode.toUnicode(n.hostname)}catch{}return decode$1(format(n),decode$1.defaultChars+"%")}function MarkdownIt(t,n){if(!(this instanceof MarkdownIt))return new MarkdownIt(t,n);n||isString$1(t)||(n=t||{},t="default"),this.inline=new ParserInline,this.block=new ParserBlock,this.core=new Core,this.renderer=new Renderer,this.linkify=new LinkifyIt,this.validateLink=validateLink,this.normalizeLink=normalizeLink,this.normalizeLinkText=normalizeLinkText,this.utils=utils,this.helpers=assign$1({},helpers),this.options={},this.configure(t),n&&this.set(n)}MarkdownIt.prototype.set=function(t){return assign$1(this.options,t),this},MarkdownIt.prototype.configure=function(t){const n=this;if(isString$1(t)){const s=t;if(t=config[s],!t)throw new Error('Wrong `markdown-it` preset "'+s+'", check name')}if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&n.set(t.options),t.components&&Object.keys(t.components).forEach(function(s){t.components[s].rules&&n[s].ruler.enableOnly(t.components[s].rules),t.components[s].rules2&&n[s].ruler2.enableOnly(t.components[s].rules2)}),this},MarkdownIt.prototype.enable=function(t,n){let s=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(m){s=s.concat(this[m].ruler.enable(t,!0))},this),s=s.concat(this.inline.ruler2.enable(t,!0));const d=t.filter(function(m){return s.indexOf(m)<0});if(d.length&&!n)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+d);return this},MarkdownIt.prototype.disable=function(t,n){let s=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(m){s=s.concat(this[m].ruler.disable(t,!0))},this),s=s.concat(this.inline.ruler2.disable(t,!0));const d=t.filter(function(m){return s.indexOf(m)<0});if(d.length&&!n)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+d);return this},MarkdownIt.prototype.use=function(t){const n=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,n),this},MarkdownIt.prototype.parse=function(t,n){if(typeof t!="string")throw new Error("Input data should be a String");const s=new this.core.State(t,this,n);return this.core.process(s),s.tokens},MarkdownIt.prototype.render=function(t,n){return n=n||{},this.renderer.render(this.parse(t,n),this.options,n)},MarkdownIt.prototype.parseInline=function(t,n){const s=new this.core.State(t,this,n);return s.inlineMode=!0,this.core.process(s),s.tokens},MarkdownIt.prototype.renderInline=function(t,n){return n=n||{},this.renderer.render(this.parseInline(t,n),this.options,n)};let DatasetInfo$1=class extends React.Component{constructor(n){super(n),this.state={__html:"<p>Loading</p>"},this.close=this.close.bind(this),this.renderAsync=this.renderAsync.bind(this),this.renderContent=this.renderContent.bind(this),this.renderMarkdown=this.renderMarkdown.bind(this),this.renderIframe=this.renderIframe.bind(this),this.renderImage=this.renderImage.bind(this),this.renderRawAsync=this.renderRawAsync.bind(this)}componentDidMount(){const{item:n}=this.props;if(n.info){if(n.info.url)return n.info.iframe?this.renderIframe():n.info.img?this.renderImage():n.info.raw?this.renderRawAsync():this.renderAsync();if(n.info.content)return n.info.raw?this.renderRawContent():this.renderContent()}}close(){const{doModalClose:n}=this.props;n()}renderMarkdown(n){const s=new MarkdownIt;this.setState({__html:s.render(n)})}renderContent(){const{item:n}=this.props,{content:s}=n.info;return this.renderMarkdown(s)}renderRawContent(){const{item:n}=this.props,{content:s}=n.info;return this.setState({__html:s})}renderAsync(){const{item:n}=this.props,{url:s}=n.info;xhr.get(s,(d,m,v)=>{d?this.renderMarkdown("Error Loading Content"):this.renderMarkdown(v)})}renderRawAsync(){const{item:n}=this.props,{url:s}=n.info;xhr.get(s,(d,m,v)=>{d?this.setState({__html:"<p>Error Loading Content</p>"}):this.setState({__html:v})})}renderIframe(){const{item:n}=this.props,{url:s}=n.info;this.setState({__html:`<iframe src="${s}" frameborder="0"></iframe>`})}renderImage(){const{item:n}=this.props,{url:s}=n.info;this.setState({__html:`<img src="${s}"></img>`})}render(){const{theme:n,item:s}=this.props;return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("div",{className:"cm-modal-header "+n,children:[s.displayName," Metadata"]}),jsxRuntimeExports.jsx("div",{className:"cm-modal-body thin-scrollbar",style:{height:window.innerHeight*.75,top:0,bottom:0,left:0,right:0,overflow:"auto"},dangerouslySetInnerHTML:this.state}),jsxRuntimeExports.jsx("div",{className:"cm-modal-footer",children:jsxRuntimeExports.jsx("button",{className:"cm-btn cm-btn-theme "+n,onClick:this.close,children:"Close"})})]})}};const DatasetInfo=connect("selectTheme","doModalClose",DatasetInfo$1);let DatasetLegend$1=class extends React.Component{constructor(n){super(n),this.state={__html:"<p>Loading</p>"},this.close=this.close.bind(this),this.renderAsync=this.renderAsync.bind(this),this.renderContent=this.renderContent.bind(this),this.renderMarkdown=this.renderMarkdown.bind(this),this.renderIframe=this.renderIframe.bind(this),this.renderImage=this.renderImage.bind(this),this.renderRawAsync=this.renderRawAsync.bind(this)}componentDidMount(){const{item:n}=this.props;if(n.info){if(n.info.url)return n.info.iframe?this.renderIframe():n.info.img?this.renderImage():n.info.raw?this.renderRawAsync():this.renderAsync();if(n.info.content)return n.info.raw?this.renderRawContent():this.renderContent()}}close(){const{doModalClose:n}=this.props;n()}renderMarkdown(n){const s=new MarkdownIt;this.setState({__html:s.render(n)})}renderContent(){const{item:n}=this.props,{content:s}=n.info;return this.renderMarkdown(s)}renderRawContent(){const{item:n}=this.props,{content:s}=n.info;return this.setState({__html:s})}renderAsync(){const{item:n}=this.props,{url:s}=n.info;xhr.get(s,(d,m,v)=>{d?this.renderMarkdown("Error Loading Content"):this.renderMarkdown(v)})}renderRawAsync(){const{item:n}=this.props,{url:s}=n.info;xhr.get(s,(d,m,v)=>{d?this.setState({__html:"<p>Error Loading Content</p>"}):this.setState({__html:v})})}renderIframe(){const{item:n}=this.props,{url:s}=n.info;this.setState({__html:`<iframe src="${s}" frameborder="0"></iframe>`})}renderImage(){const{item:n}=this.props,{url:s}=n.info;this.setState({__html:`<img src="${s}"></img>`})}render(){const{theme:n,item:s}=this.props;return jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("div",{style:{paddingLeft:"30px"},dangerouslySetInnerHTML:this.state})})}};const DatasetLegend=connect("selectTheme",DatasetLegend$1);let TreeListItemDataset$1=class extends React.Component{constructor(n){super(n),this.state={showLegend:!1,visible:n.item.visible,displayName:n.item.displayName,hoverText:n.item.hoverText,type:n.item.type,expanded:!1},this.toggleVisible=this.toggleVisible.bind(this),this.zoomTo=this.zoomTo.bind(this),this.openMetadata=this.openMetadata.bind(this),this.renderInfoButton=this.renderInfoButton.bind(this)}toggleVisible(){const{item:n,doLayerSetVisible:s}=this.props;s(n.uid,!n.visible)}toggleExpanded=()=>{const{doOpenLayerDetails:n,item:s}=this.props;n(s)};zoomTo(){const{item:n,doZoomToLayerExtent:s}=this.props;s(n.uid)}openMetadata(n){const{doModalOpen:s,item:d}=this.props;n?this.setState({showLegend:!this.state.showLegend}):s({children:[DatasetInfo],options:{item:d},openedBy:"LayerTree"})}renderInfoButton(){const{item:n}=this.props;return!n.info||_.isEmpty(n.info)?null:jsxRuntimeExports.jsx("span",{onClick:this.openMetadata,title:"More Information",style:{paddingLeft:"4px",cursor:"pointer"},children:jsxRuntimeExports.jsx("i",{className:"mdi mdi-alert-circle-outline"})})}renderLegend(){const{showLegend:n}=this.state,{item:s}=this.props;return n?jsxRuntimeExports.jsx(DatasetLegend,{item:s}):null}render(){const{item:n,isOver:s,theme:d,mapZoom:m}=this.props,{expanded:v}=this.state,{displayName:S,type:C,identifyType:I,favorite:N,userDefaultLayer:M,hoverText:k}=n,z=k||S;if(!n.passFilter)return null;const V=n.minzoom<=m&&n.maxzoom>=m,H=V?{color:"#666"}:{color:"#bbb"},W=classnames({"cm-checkbox-inline":!0,"cm-checkbox-ellipsis":!0,"tree-list-item-hover":s});classnames({mdi:!0,"mdi-map-marker":C==="POINT","mdi-vector-line":C==="LINE","mdi-vector-polygon":C==="POLYGON","mdi-grid":C==="RASTER","mdi-google-maps":C==="SERVICE"});const J=classnames({[d]:v,"layertree-layeritem-detailsicon":!0,expanded:v});return jsxRuntimeExports.jsxs("div",{className:"layertree-layeritem",children:[jsxRuntimeExports.jsx("span",{className:"pull-right",children:jsxRuntimeExports.jsx("span",{onClick:this.toggleExpanded,className:J,children:jsxRuntimeExports.jsx("i",{className:"mdi mdi-dots-horizontal",title:"More Info"})})}),jsxRuntimeExports.jsxs("label",{className:W,title:`${z} ${V?"":"- zoom in to enable"}`,style:H,children:[jsxRuntimeExports.jsx("input",{disabled:!V,type:"checkbox",checked:n.visible,value:n.visible,onChange:this.toggleVisible}),I?jsxRuntimeExports.jsx("sup",{style:{fontSize:"10px"},className:"ms ms-information",title:"Identify Tool Enabled for this Layer"}):null,N?jsxRuntimeExports.jsx("i",{style:{fontSize:"11px"},className:"mdi mdi-star",title:"Layer saved to favorites list"}):null,M?jsxRuntimeExports.jsx("i",{style:{fontSize:"11px"},className:"mdi mdi-account",title:"Layer saved to user default layer list"}):null,S]}),this.renderInfoButton(),this.renderLegend()]})}};const TreeListItemDataset=connect("selectTheme","selectMapZoom","doLayerSetVisible","doTreeUpdate","doZoomToLayerExtent","doOpenLayerDetails","doModalOpen",TreeListItemDataset$1);let TreeListItemFolder$1=class extends React.Component{constructor(n){super(n),this.state={contentEditable:!1,text:n.item.displayName,folderChecked:!1},this.keyDown=this.keyDown.bind(this),this.toggleCollapsed=this.toggleCollapsed.bind(this),this.toggleContentEditable=this.toggleContentEditable.bind(this),this.setText=this.setText.bind(this),this.saveToStore=this.saveToStore.bind(this),this.toggleSelectAllVisible=this.toggleSelectAllVisible.bind(this)}keyDown(n){n.keyCode===13&&(n.preventDefault(),this.saveToStore())}toggleCollapsed(){const{item:n,doTreeSetCollapsed:s}=this.props;s(n.uid,!n.collapsed)}toggleContentEditable(n){const s=n.currentTarget;this.setState({contentEditable:!this.state.contentEditable},()=>{const d=s.innerHTML;this.tempText=d})}toggleSelectAllVisible(n){const s=n.currentTarget.checked,{item:d,doTreeSetCollapsed:m,doLayerSetVisible:v}=this.props;this.setState({folderChecked:s}),m(d.uid,!s),d.children.map(S=>{v(S.uid,s)})}setText(n){const d=n.currentTarget.innerHTML;this.setState({text:d})}saveToStore(){const{item:n,doTreeUpdate:s}=this.props;this.setState({contentEditable:!1},function(){s(n.uid,{displayName:this.state.text})})}render(){const{item:n,isOver:s,treeViewHideCounter:d,treeViewShowSelectAll:m}=this.props,{contentEditable:v,text:S,folderChecked:C}=this.state,{folderHoverText:I}=n;if(!n.passFilter)return null;const N=I||null,M=classnames({"tree-list-item-hover":s}),k=classnames({mdi:!0,"mdi-folder-open":!n.collapsed,"mdi-folder":n.collapsed}),V={fontStyle:v?"italic":"normal",display:"inline-block",paddingLeft:"8px"},H=n.children.length;return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("i",{title:N,onClick:this.toggleCollapsed,className:k,style:{fontSize:"16px",cursor:"pointer"}}),m&&n.selectAllLayers?jsxRuntimeExports.jsxs("label",{className:M,title:"Select All Layers",children:[jsxRuntimeExports.jsx("span",{children:"  "}),jsxRuntimeExports.jsx("input",{type:"checkbox",checked:C,value:C,onChange:this.toggleSelectAllVisible})]}):null,jsxRuntimeExports.jsxs("span",{children:[jsxRuntimeExports.jsx("div",{className:M,style:V,onInput:this.setText,onBlur:this.saveToStore,onKeyDown:this.keyDown,onDoubleClick:this.toggleCollapsed,contentEditable:v,dangerouslySetInnerHTML:{__html:S}}),d?null:jsxRuntimeExports.jsx("span",{children:" ("+H+")"})]}),n.folderURL?jsxRuntimeExports.jsxs("a",{rel:"noopener noreferrer",href:n.folderURL,target:"_blank",children:[jsxRuntimeExports.jsx("i",{title:"Visit Website",className:"mdi mdi-link",style:{float:"right",fontSize:"16px",cursor:"pointer"}})," "]}):null]})}};const TreeListItemFolder=connect("doTreeUpdate","doTreeSetCollapsed","doLayerSetVisible","selectTreeViewHideCounter","selectTreeViewShowSelectAll",TreeListItemFolder$1);let TreeListItem$1=class extends React.Component{render(){const{item:n}=this.props;var s=this.props.isOverCurrent,d=!n.leaf;const m=d?TreeListItemFolder:TreeListItemDataset;return jsxRuntimeExports.jsxs("li",{className:"cm-tree-list-item",children:[jsxRuntimeExports.jsx(m,{item:n,isOver:s}),jsxRuntimeExports.jsx(TreeList,{items:n.children,collapsed:n.collapsed})]})}};const TreeListItem=connect("doTreeInsertAfter","doTreeInsertBefore","doTreeInsertChild","doTreeMerge","doTreeRemove","doTreeInsertIntoRoot","selectTreeViewRootId","selectLayerFilterString",TreeListItem$1);class TreeList extends React.Component{render(){const{items:n,collapsed:s,listStyle:d,showFavorites:m,showUserDefaultLayers:v}=this.props;return s?null:n.length===0&&v?jsxRuntimeExports.jsx("div",{children:"no user default layers selected"}):n.length===0&&m?jsxRuntimeExports.jsx("div",{children:"no favorites selected"}):jsxRuntimeExports.jsx("ul",{className:"cm-tree-list",style:d,children:n.map(function(S,C){return jsxRuntimeExports.jsx(TreeListItem,{item:S,collapsed:S.collapsed,time:new Date},S.uid)})})}}let FavoritesContainer$1=class extends React.Component{render(){const{favoriteLayers:n,treeRootNode:s}=this.props;return jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(TreeList,{items:n,isFolder:!0,collapsed:!1,listStyle:{padding:0},showFavorites:!0})})}};const FavoritesContainer=connect("selectFavoriteLayers","selectTreeRootNode",FavoritesContainer$1);let Defaults$1=class extends React.Component{constructor(n){super(n),this.toggleUserDefaultLayers=this.toggleUserDefaultLayers.bind(this)}toggleUserDefaultLayers(n){n.preventDefault(),n.stopPropagation(),this.props.doToggleUserDefaultLayersView()}render(){const n=this.props.treeViewToggleUserDefaultLayersView?"mdi mdi-account":"mdi mdi-account-outline",s=this.props.treeViewToggleUserDefaultLayersView?"Hide Default Layers":"Show Default Layers";return jsxRuntimeExports.jsx("button",{className:"cm-btn cm-btn-default cm-btn-xs",style:{margin:"0 5px"},title:s,onClick:this.toggleUserDefaultLayers,children:jsxRuntimeExports.jsx("i",{className:n})})}};const Defaults=connect("doToggleUserDefaultLayersView","selectTreeViewToggleUserDefaultLayersView",Defaults$1);let DefaultsContainer$1=class extends React.Component{render(){const{userDefaultLayers:n,treeRootNode:s}=this.props;return jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(TreeList,{items:n,isFolder:!0,collapsed:!1,listStyle:{padding:0},showUserDefaultLayers:!0})})}};const DefaultsContainer=connect("selectUserDefaultLayers","selectTreeRootNode",DefaultsContainer$1);let TreeListContainer$1=class extends React.Component{render(){const{treeRootNode:n}=this.props,s=n.children||[];return jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx(TreeList,{items:s,isFolder:!0,collapsed:!1,listStyle:{padding:0}})})}};const TreeListContainer=connect("selectTreeRootNode",TreeListContainer$1);let TreeviewPanel$1=class extends React.Component{constructor(n){super(n),this.state={filterString:n.layerFilterString},this.toggleFilter=this.toggleFilter.bind(this),this.updateFilterString=this.updateFilterString.bind(this),this.clearFilterString=this.clearFilterString.bind(this),this.renderFilter=this.renderFilter.bind(this)}toggleFilter(){const{doLayersToggleFilter:n,layerShowFilter:s}=this.props;this.updateFilterString({target:{value:""}}),n(!s)}updateFilterString(n){this.setState({filterString:n.target.value},this.updateLayerFilter)}updateLayerFilter=debounce(()=>{const{doLayersUpdateFilter:n}=this.props;n(this.state.filterString)},200);clearFilterString(){this.updateFilterString({target:{value:""}})}renderFilter(){const{layerShowFilter:n}=this.props,{filterString:s}=this.state,d={marginBottom:"8px",marginRight:"30px",paddingRight:"30px"};return n?jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("button",{disabled:s==="",onClick:this.clearFilterString,className:"cm-btn cm-btn-link cm-btn-xs pull-right",style:{marginTop:"6px",position:"absolute",right:"5px"},children:jsxRuntimeExports.jsx("i",{className:"mdi mdi-close-circle-outline"})}),jsxRuntimeExports.jsx("input",{value:s,onChange:this.updateFilterString,className:"cm-form-control cm-input-sm",placeholder:"Filter Datasets...",style:d})]}):null}render(){const{treeViewControls:n,treeViewToggleFavoritesView:s,treeViewToggleUserDefaultLayersView:d,primaryPanelShowClose:m,primaryPanelShowFavoritesBtn:v,primaryPanelShowUserDefaultLayersBtn:S}=this.props,C=classnames({"sidebar-list":!m,"thin-scrollbar":!0,"sidebar-list-show-close-btn":m});return jsxRuntimeExports.jsxs("div",{id:"tree-view",className:C,children:[jsxRuntimeExports.jsxs("div",{style:{marginTop:0,marginBottom:10},children:[n.indexOf("toggleExpand")>-1?jsxRuntimeExports.jsx(ToggleExpand,{}):null,n.indexOf("addAll")>-1?jsxRuntimeExports.jsx(AddAll,{}):null,n.indexOf("removeAll")>-1?jsxRuntimeExports.jsx(RemoveAll,{}):null,n.indexOf("toggleFilter")>-1?jsxRuntimeExports.jsx(ToggleFilter,{toggleFilter:this.toggleFilter}):null,v?jsxRuntimeExports.jsx(Favorites,{}):null,S?jsxRuntimeExports.jsx(Defaults,{}):null]}),this.renderFilter(),s?jsxRuntimeExports.jsx(FavoritesContainer,{}):null,d?jsxRuntimeExports.jsx(DefaultsContainer,{}):null,!s&&!d?jsxRuntimeExports.jsx(TreeListContainer,{}):null]})}};const TreeviewPanel=connect("selectLayerShowFilter","selectLayerFilterString","selectTreeViewControls","selectPrimaryPanelShowFavoritesBtn","selectPrimaryPanelShowUserDefaultLayersBtn","selectTreeViewToggleFavoritesView","selectTreeViewToggleUserDefaultLayersView","doLayersToggleFilter","doLayersUpdateFilter","selectPrimaryPanelShowClose",TreeviewPanel$1);class LegendHeader extends React.Component{constructor(n){super(n),this.doViewLayerInTree=this.doViewLayerInTree.bind(this)}doViewLayerInTree(){this.props.doPrimaryPanelOpen({openedBy:"Legend",options:null,children:[TreeviewPanel]})}render(){const{layer:n}=this.props,s={display:"flex",justifyContent:"space-between"};return jsxRuntimeExports.jsxs("div",{style:s,children:[jsxRuntimeExports.jsx("div",{className:"overflow-ellipsis",title:n.displayName,children:jsxRuntimeExports.jsx("strong",{children:n.displayName})}),jsxRuntimeExports.jsx("button",{type:"button",title:"View Layer",style:{marginLeft:"5px"},className:"cm-btn cm-btn-default cm-btn-xs",onClick:this.doViewLayerInTree,children:jsxRuntimeExports.jsx("i",{className:"mdi mdi-layers"})})]})}}const Header=connect("doPrimaryPanelOpen",LegendHeader);class LegendItem extends React.Component{render(){const{layer:n,image:s}=this.props;return jsxRuntimeExports.jsxs("li",{className:"cm-list-group-item corpsmap-legend-item",children:[jsxRuntimeExports.jsx(Header,{layer:n}),typeof s=="string"?s:jsxRuntimeExports.jsx("img",{alt:s.alt,src:s.src})]})}}class LegendItemMultiple extends React.Component{render(){const{layer:n,images:s}=this.props;return jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsxs("li",{className:"cm-list-group-item corpsmap-legend-item-multiple",children:[jsxRuntimeExports.jsx(Header,{layer:n}),s.map((d,m)=>jsxRuntimeExports.jsxs("div",{children:[typeof d=="string"?d:jsxRuntimeExports.jsx("img",{alt:d.alt,src:d.src}),n.type==="WMS"?null:d.title,jsxRuntimeExports.jsx("br",{}),n.attributions?jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsxs("label",{children:[jsxRuntimeExports.jsxs("strong",{children:["Credits: ",n.attributions]})," "]})}):null]},m))]})})}}let LegendPanel$1=class extends React.Component{constructor(n){super(n),this.renderItems=this.renderItems.bind(this)}renderItems(){const{visibleLayers:n,legendLayers:s}=this.props;return sortBy(n,["sortOrder"]).reverse().map(m=>{if(s.hasOwnProperty(m.uid))switch(m.type){case"ArcGIS":case"ArcGISImage":case"EsriFeatureService":case"WMS":return jsxRuntimeExports.jsx(LegendItemMultiple,{layer:m,images:s[m.uid]},m.uid);default:return jsxRuntimeExports.jsx(LegendItem,{layer:m,image:s[m.uid][0]},m.uid)}})}render(){const{legendLoading:n,primaryPanelShowClose:s}=this.props,d=classnames({"corpsmap-legend":!0,"cm-list-group":!0,"sidebar-list":!s,"thin-scrollbar":!0,"sidebar-list-show-close-btn":s});return n?jsxRuntimeExports.jsx("ul",{className:d,children:jsxRuntimeExports.jsx(LoadingIndicator$1,{})}):jsxRuntimeExports.jsx("ul",{className:d,children:this.renderItems()})}};const LegendPanel=connect("selectVisibleLayers","selectLegendLayers","selectLegendLoading","selectPrimaryPanelShowClose",LegendPanel$1);class LegendButton extends React.Component{render(){return jsxRuntimeExports.jsx(SidebarPanelOpenerButton,{iconClass:"mdi mdi-format-list-bulleted-type",label:"Legend",title:"Legend",panelComponent:LegendPanel})}}let req$1=null;const bundle$c={name:"legend",getReducer:()=>{const t={_shouldGetLegends:!1,legendLayers:{},legendCanvases:{},loading:!1};return(n=t,{type:s,payload:d})=>{switch(s){case"LAYERS_ORDER_UPDATED":return Object.assign({},n,{_shouldGetLegends:!0});case"LEGEND_FETCH_START":case"LEGEND_LAYERS_UPDATED":case"LEGEND_LAYERS_UPDATE_ERROR":case"LEGEND_HAS_NO_VISIBLE_LAYERS":case"LEGEND_LOADED":case"LEGEND_CANVAS_ADDED":return Object.assign({},n,d);default:return n}}},doFetchLegendInfo:t=>({dispatch:n,store:s})=>{req$1&&req$1.abort();let d=s.selectLegendLayers(),m=s.selectLegendCanvases();t.forEach(v=>{const{url:S,type:C,layerList:I,uid:N,displayName:M,layerDescription:k,attributions:z,legendOverride:V}=v;m[N]={displayName:M,layerDescription:k,attributions:z,canvas:[],widths:[],heights:[]};let H=S;switch(C){case"ArcGIS":H=`${H}/legend?f=pjson`;break;case"ArcGISImage":H=`${H}/legend?bandIds=&renderingRule=&f=pjson`;break;case"EsriFeatureService":V===!0?H=`${H}/legend?f=pjson`:H=`${H}/${I}?f=pjson`;break}req$1=xhr.get(H,(W,J,K)=>{if(W||J.statusCode!==200)d[N]=["Legend not available!"],n({type:"LEGEND_LAYERS_UPDATE_ERROR",payload:{legendLayers:d,legendCanvases:m,loading:!1}});else try{const re=JSON.parse(K);console.log(re),C==="EsriFeatureService"?V===!0?s.doGenerateArcImages(re,v):s.doGenerateEsriImages(re,v):s.doGenerateArcImages(re,v)}catch(re){console.log(re),d[N]=["Legend not available!"],n({type:"LEGEND_LAYERS_UPDATE_ERROR",payload:{legendLayers:d,legendCanvases:m,loading:!1}})}}),req$1.timeout=6e4})},doGenerateArcImages:(t,n)=>({dispatch:s,store:d})=>{const{uid:m,layerList:v,displayName:S,layerDescription:C,attributions:I}=n;let N=d.selectLegendLayers(),M=d.selectLegendCanvases();const k=v.replace(/show:/g,"").split(",").map(Number);M[m]={displayName:S,layerDescription:C,attributions:I,canvas:[],widths:[],heights:[]};const V=t.layers.filter(H=>k.indexOf(H.layerId)!==-1).map(H=>H.legend.map(W=>{let J=new Image;return J.addEventListener("load",function(){let K=document.createElement("canvas"),re=K.getContext("2d");const te=Number(re.measureText(W.label).width);K.width=Number(W.width)+te+4,K.height=W.height,M[m].widths.push(K.width),M[m].heights.push(K.height),re.fillStyle="white",re.fillRect(0,0,K.width,K.height),re.drawImage(J,0,0),re.font="10px Arial",re.fillStyle="black",re.fillText(W.label,W.width+2,W.height/2),M[m].canvas.push(K),s({type:"LEGEND_CANVAS_ADDED",payload:{legendCanvases:M,loading:!1}})},!1),J.src=`data:${W.contentType};base64,${W.imageData}`,J.alt=`Style for ${W.label}`,J.crossOrigin="anonymous",J.title=W.label,J}));N[m]=flatten(V),s({type:"LEGEND_LAYERS_UPDATED",payload:{legendLayers:N,loading:!1}})},doGenerateEsriImages:(t,n)=>({dispatch:s,store:d})=>{const{uid:m,displayName:v,layerDescription:S,attributions:C}=n;let I=d.selectLegendLayers(),N=d.selectLegendCanvases();const M=t.drawingInfo;switch(N[m]={displayName:v,layerDescription:S,attributions:C,canvas:[],widths:[],heights:[]},I[m]=[],console.log(M.renderer),console.log(M.renderer.symbol),t.geometryType){case"esriGeometryPolygon":if(M.renderer.symbol&&M.renderer.symbol.type==="esriSFS"&&M.renderer.symbol.style==="esriSFSSolid"){let k=new Image;const z=M.renderer.symbol.outline.color,V=M.renderer.symbol.color;let H=document.createElement("canvas"),W=H.getContext("2d");H.width=20,H.height=20,N[m].widths.push(H.width),N[m].heights.push(H.height),W.beginPath(),W.lineWidth="2",W.strokeStyle=z?`rgba(${z.join()})`:null,W.rect(0,0,20,20),W.stroke(),W.fillStyle=V?`rgba(${V.join()})`:null,W.fillRect(1,1,18,18),k.src=H.toDataURL(),k.alt=`Style for ${v}`,k.crossOrigin="anonymous",N[m].canvas.push(H),s({type:"LEGEND_CANVAS_ADDED",payload:{legendCanvases:N,loading:!1}}),I[m].push(k),s({type:"LEGEND_LAYERS_UPDATED",payload:{legendLayers:I,loading:!1}})}else if(M.renderer.symbol&&M.renderer.symbol.type==="esriSFS"&&M.renderer.symbol.style==="esriSFSBackwardDiagonal"){let k=new Image;const z=M.renderer.symbol.outline.color;M.renderer.symbol.color;let V=document.createElement("canvas"),H=V.getContext("2d");V.width=20,V.height=20,N[m].widths.push(V.width),N[m].heights.push(V.height),H.beginPath(),H.moveTo(0,10),H.lineTo(10,0),H.moveTo(0,20),H.lineTo(20,0),H.moveTo(10,20),H.lineTo(20,10),H.lineWidth="2",H.strokeStyle=`rgba(${z.join()})`,H.rect(0,0,20,20),H.stroke(),k.src=V.toDataURL(),k.alt=`Style for ${v}`,k.crossOrigin="anonymous",N[m].canvas.push(V),s({type:"LEGEND_CANVAS_ADDED",payload:{legendCanvases:N,loading:!1}}),I[m].push(k),s({type:"LEGEND_LAYERS_UPDATED",payload:{legendLayers:I,loading:!1}})}else M.renderer.type==="uniqueValue"&&M.renderer.uniqueValueInfos&&(M.renderer.uniqueValueInfos.forEach(k=>{let z=new Image;console.log(k.value),k.value;const V=k.symbol.color,H=k.symbol.outline&&k.symbol.outline.color?k.symbol.outline.color:V;let W=document.createElement("canvas"),J=W.getContext("2d");const K=Number(J.measureText(k.label).width);W.width=20+K+4,W.height=20,N[m].widths.push(W.width),N[m].heights.push(W.height),J.beginPath(),J.lineWidth="2",J.strokeStyle=`rgba(${H.join()})`,J.rect(0,0,20,20),J.stroke(),J.fillStyle=`rgba(${V.join()})`,J.fillRect(1,1,18,18),J.font="10px Arial",J.fillStyle="black",J.fillText(k.label,22,W.height/2),z.src=W.toDataURL(),z.alt=`Style for ${v}`,z.crossOrigin="anonymous",N[m].canvas.push(W),s({type:"LEGEND_CANVAS_ADDED",payload:{legendCanvases:N,loading:!1}}),I[m].push(z)}),s({type:"LEGEND_LAYERS_UPDATED",payload:{legendLayers:I,loading:!1}}));break;case"esriGeometryPolyline":if(M.renderer.symbol&&M.renderer.symbol.type==="esriSLS"&&M.renderer.symbol.style==="esriSLSSolid"){let k=new Image,z=document.createElement("canvas"),V=z.getContext("2d");const H=M.renderer.symbol.color;z.width=20,z.height=20,N[m].widths.push(z.width),N[m].heights.push(z.height),V.beginPath(),V.strokeStyle=`rgba(${H.join()})`,V.moveTo(0,0),V.lineTo(20,20),V.stroke(),k.src=z.toDataURL(),k.alt=`Style for ${v}`,k.crossOrigin="anonymous",N[m].canvas.push(z),s({type:"LEGEND_CANVAS_ADDED",payload:{legendCanvases:N,loading:!1}}),I[m].push(k),s({type:"LEGEND_LAYERS_UPDATED",payload:{legendLayers:I,loading:!1}})}else M.renderer.type==="uniqueValue"&&M.renderer.uniqueValueInfos&&(M.renderer.uniqueValueInfos.forEach(k=>{let z=new Image,V=document.createElement("canvas"),H=V.getContext("2d");const W=Number(H.measureText(k.label).width),J=k.symbol.color;V.width=20+W+4,V.height=20,N[m].widths.push(V.width),N[m].heights.push(V.height),H.beginPath(),H.strokeStyle=`rgba(${J.join()})`,H.moveTo(0,0),H.lineTo(20,20),H.stroke(),H.font="10px Arial",H.fillStyle="black",H.fillText(k.label,22,V.height/2),z.src=V.toDataURL(),z.alt=`Style for ${v}`,z.crossOrigin="anonymous",N[m].canvas.push(V),s({type:"LEGEND_CANVAS_ADDED",payload:{legendCanvases:N,loading:!1}}),I[m].push(z)}),s({type:"LEGEND_LAYERS_UPDATED",payload:{legendLayers:I,loading:!1}}));break;case"esriGeometryPoint":if(M.renderer.symbol&&M.renderer.symbol.type==="esriPMS"){let k=new Image;k.src=`data:image/png;base64,${t.drawingInfo.renderer.symbol.imageData}`,k.addEventListener("load",function(){let z=document.createElement("canvas"),V=z.getContext("2d");z.width=M.renderer.symbol.width,z.height=M.renderer.symbol.height,N[m].widths.push(z.width),N[m].heights.push(z.height),V.fillStyle="white",V.fillRect(0,0,z.width,z.height),V.drawImage(k,0,0),N[m].canvas.push(z),s({type:"LEGEND_CANVAS_ADDED",payload:{legendCanvases:N,loading:!1}})},!1),k.alt=`Style for ${v}`,k.crossOrigin="anonymous",I[m]=[k],s({type:"LEGEND_LAYERS_UPDATED",payload:{legendLayers:I,loading:!1}})}else if(M.renderer.symbol&&M.renderer.symbol.type==="esriSMS"){let k=new Image;const z=M.renderer.symbol.outline.color,V=M.renderer.symbol.outline.width,H=M.renderer.symbol.color,W=M.renderer.symbol.size;let J=document.createElement("canvas"),K=J.getContext("2d");J.width=20,J.height=20,N[m].widths.push(J.width),N[m].heights.push(J.height),K.beginPath(),K.strokeStyle=`rgba(${z.join()})`,K.lineWidth=V,K.arc(W,W,W/1.5,0,Math.PI*2),K.fillStyle=`rgba(${H.join()})`,K.fill(),K.stroke(),k.src=J.toDataURL(),k.alt=`Style for ${v}`,k.crossOrigin="anonymous",N[m].canvas.push(J),s({type:"LEGEND_CANVAS_ADDED",payload:{legendCanvases:N,loading:!1}}),I[m].push(k),s({type:"LEGEND_LAYERS_UPDATED",payload:{legendLayers:I,loading:!1}})}else if(M.renderer.uniqueValueInfos){let k=[];M.renderer.uniqueValueInfos.forEach(z=>{let V=z.label,H=new Image;H.src=`data:image/png;base64,${z.symbol.imageData}`;let W=document.createElement("canvas"),J=W.getContext("2d");const K=Number(J.measureText(V).width);W.width=Number(z.symbol.width)+K+4,W.height=z.symbol.height,J.fillStyle="white",J.fillRect(0,0,W.width,W.height),J.drawImage(H,0,0),H.alt=`Style for ${V}`,H.crossOrigin="anonymous",H.title=V,k.push({canvas:W,image:H})}),k.forEach(z=>{z.image.alt=`Style for ${n.displayName}`,N[n.uid].widths.push(z.canvas.width),N[n.uid].heights.push(z.canvas.height),N[n.uid].canvas.push(z.canvas),I[n.uid].push(z.image),s({type:"LEGEND_CANVAS_ADDED",payload:{legendCanvases:N,loading:!1}})})}else M.renderer.classBreakInfos?M.renderer.classBreakInfos.forEach(k=>{let z=new Image;const V=k.symbol.outline.color,H=k.symbol.outline.width,W=k.symbol.color,J=k.symbol.size;let K=document.createElement("canvas"),re=K.getContext("2d");K.width=20*2.5,K.height=20,N[m].widths.push(K.width),N[m].heights.push(K.height),re.font="11px Arial",re.fillText(k.label,J*3,J*2,30),re.beginPath(),re.strokeStyle=`rgba(${V.join()})`,re.lineWidth=H,re.arc(J,J*1.5,J/1.5,0,Math.PI*2),re.fillStyle=`rgba(${W.join()})`,re.fill(),re.stroke(),z.src=K.toDataURL(),z.alt=`Style for ${v}`,z.crossOrigin="anonymous",N[m].canvas.push(K),s({type:"LEGEND_CANVAS_ADDED",payload:{legendCanvases:N,loading:!1}}),I[m].push(z),s({type:"LEGEND_LAYERS_UPDATED",payload:{legendLayers:I,loading:!1}})}):(I[m]=["Legend not available!"],s({type:"LEGEND_LAYERS_UPDATE_ERROR",payload:{legendLayers:I,legendCanvases:N,loading:!1}}));break;case"esriGeometryMultipoint":if(M.renderer.symbol&&M.renderer.symbol.type==="esriPMS"){let k=new Image;k.src=`data:image/png;base64,${t.drawingInfo.renderer.symbol.imageData}`,k.addEventListener("load",function(){let z=document.createElement("canvas"),V=z.getContext("2d");z.width=M.renderer.symbol.width,z.height=M.renderer.symbol.height,N[m].widths.push(z.width),N[m].heights.push(z.height),V.fillStyle="white",V.fillRect(0,0,z.width,z.height),V.drawImage(k,0,0),N[m].canvas.push(z),s({type:"LEGEND_CANVAS_ADDED",payload:{legendCanvases:N,loading:!1}})},!1),k.alt=`Style for ${v}`,k.crossOrigin="anonymous",I[m]=[k],s({type:"LEGEND_LAYERS_UPDATED",payload:{legendLayers:I,loading:!1}})}break}},doFetchLegendImages:()=>({dispatch,store})=>{dispatch({type:"LEGEND_FETCH_START",payload:{_shouldGetLegends:!1,loading:!0}});const visibleLayers=store.selectVisibleLayers();let legendLayers=store.selectLegendLayers(),legendCanvases=store.selectLegendCanvases(),queuedLayers=[];visibleLayers.forEach(layer=>{if(legendLayers.hasOwnProperty(layer.uid))dispatch({type:"LEGEND_LOADED",payload:{loading:!1}});else switch(layer.type){case"ArcGIS":case"ArcGISImage":case"EsriFeatureService":if(layer.styleFn&&layer.type==="EsriFeatureService"){legendCanvases[layer.uid]={displayName:layer.displayName,layerDescription:layer.layerDescription,attributions:layer.attributions,canvas:[],widths:[],heights:[]},legendLayers[layer.uid]=[];let legendFunction=eval(layer.styleFn)[1],legendItems=legendFunction();legendItems.forEach(t=>{t.image.alt=`Style for ${layer.displayName}`,legendCanvases[layer.uid].widths.push(t.canvas.width),legendCanvases[layer.uid].heights.push(t.canvas.height),legendCanvases[layer.uid].canvas.push(t.canvas),legendLayers[layer.uid].push(t.image),dispatch({type:"LEGEND_CANVAS_ADDED",payload:{legendCanvases,loading:!1}})}),dispatch({type:"LEGEND_LAYERS_UPDATED",payload:{legendLayers}})}else queuedLayers.push(layer);break;case"WMS":legendCanvases[layer.uid]={displayName:layer.displayName,attributions:layer.attributions,layerDescription:layer.layerDescription,canvas:[],widths:[],heights:[]};let activeLayers=layer.layerList.replace(/ /g,"").split(",");const images=activeLayers.map((t,n)=>{let s=new Image;s.addEventListener("load",function(){let m=document.createElement("canvas"),v=m.getContext("2d");m.width=Number(s.width)+2,m.height=s.height,legendCanvases[layer.uid].widths.push(m.width),legendCanvases[layer.uid].heights.push(m.height),v.fillStyle="white",v.fillRect(0,0,m.width,m.height),v.drawImage(s,0,0),legendCanvases[layer.uid].canvas.push(m),dispatch({type:"LEGEND_CANVAS_ADDED",payload:{legendCanvases,loading:!1}})},!1);let d=`service=WMS&version=1.1.1&request=GetLegendGraphic&format=image/png&sld_version=1.1.0&layer=${t}`;return layer.url.indexOf(".map")!==-1?s.src=`${layer.url}&${d}`:s.src=`${layer.url}?${d}`,s.alt=`Style for ${layer.displayName}`,s.crossOrigin="anonymous",s});legendLayers[layer.uid]=images,dispatch({type:"LEGEND_LAYERS_UPDATED",payload:{legendLayers}});break;default:if(legendCanvases[layer.uid]={displayName:layer.displayName,layerDescription:layer.layerDescription,attributions:layer.attributions,canvas:[],widths:[],heights:[]},layer.src){let t=new Image;t.addEventListener("load",function(){let n=document.createElement("canvas"),s=n.getContext("2d");n.width=Number(t.width)+2,n.height=t.height,legendCanvases[layer.uid].widths.push(n.width),legendCanvases[layer.uid].heights.push(n.height),s.fillStyle="white",s.fillRect(0,0,n.width,n.height),s.drawImage(t,0,0),legendCanvases[layer.uid].canvas.push(n),dispatch({type:"LEGEND_CANVAS_ADDED",payload:{legendCanvases,loading:!1}})},!1),t.src=layer.src,t.alt=`Style for ${layer.displayName}`,t.crossOrigin="anonymous",legendLayers[layer.uid]=[t],dispatch({type:"LEGEND_LAYERS_UPDATED",payload:{legendLayers}})}else legendLayers[layer.uid]=["Legend not available!"],dispatch({type:"LEGEND_LAYERS_UPDATE_ERROR",payload:{legendLayers,legendCanvases,loading:!1}});break}}),queuedLayers.length&&store.doFetchLegendInfo(queuedLayers),visibleLayers.length||dispatch({type:"LEGEND_HAS_NO_VISIBLE_LAYERS",payload:{loading:!1}})},selectLegendLayers:t=>t.legend.legendLayers,selectLegendCanvases:t=>t.legend.legendCanvases,selectLegendLoading:t=>t.legend.loading,reactLegendShouldGetLegend:t=>{if(t.legend._shouldGetLegends)return{actionCreator:"doFetchLegendImages"}}},plugin$f={pluginName:"Legend",enabled:!0,bundle:bundle$c,components:[{component:LegendButton,region:"left-sidebar-top",sortOrder:50}]};class MeasureToolOptions extends React.Component{constructor(n){super(n),this.updateUnits=this.updateUnits.bind(this),this.close=this.close.bind(this)}close(){const{doModalClose:n}=this.props;n()}updateUnits=n=>{const{doUpdateMeasureUnits:s,measureAreaUnits:d,measureDistanceUnits:m}=this.props,v=n.currentTarget.value,S=n.currentTarget.dataset.type,C={areaUnits:d,distanceUnits:m};C[S]=v,s(C)};render(){const{theme:n,measureAreaUnits:s,measureDistanceUnits:d}=this.props;return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"cm-modal-header "+n,children:"Measure Tool Options"}),jsxRuntimeExports.jsxs("div",{className:"cm-modal-body",style:{height:300,top:0,bottom:0,left:0,right:0},children:[jsxRuntimeExports.jsxs("div",{className:"cm-form-group",children:[jsxRuntimeExports.jsx("label",{className:"cm-control-label",children:"Distance Units"}),jsxRuntimeExports.jsxs("select",{onChange:this.updateUnits,value:d,"data-type":"distanceUnits",className:"cm-form-control",id:"select",children:[jsxRuntimeExports.jsx("option",{value:"ft/mi",children:"Feet / Miles"}),jsxRuntimeExports.jsx("option",{value:"m/km",children:"Meters / Kilometers"})]})]}),jsxRuntimeExports.jsxs("div",{className:"cm-form-group",children:[jsxRuntimeExports.jsx("label",{className:"cm-control-label",children:"Area Units"}),jsxRuntimeExports.jsxs("select",{onChange:this.updateUnits,value:s,"data-type":"areaUnits",className:"cm-form-control",id:"select",children:[jsxRuntimeExports.jsx("option",{value:"ft/mi",children:"Sq. Feet / Sq. Miles"}),jsxRuntimeExports.jsx("option",{value:"m/km",children:"Sq. Meters / Sq. Kilometers"}),jsxRuntimeExports.jsx("option",{value:"acres",children:"Acres"}),jsxRuntimeExports.jsx("option",{value:"hectares",children:"Hectares"})]})]})]}),jsxRuntimeExports.jsx("div",{className:"cm-modal-footer",children:jsxRuntimeExports.jsx("button",{className:"cm-btn cm-btn-theme "+n,onClick:this.close,children:"Close"})})]})}}const Settings=connect("doUpdateMeasureUnits","doModalClose","selectTheme","selectMeasureAreaUnits","selectMeasureDistanceUnits",MeasureToolOptions);let MeasureToolsButton$1=class extends React.Component{constructor(n){super(n),this.startMeasure=this.startMeasure.bind(this),this.pauseMeasure=this.pauseMeasure.bind(this),this.stopMeasure=this.stopMeasure.bind(this),this.openSettings=this.openSettings.bind(this),this.copy=this.copy.bind(this)}startMeasure(n){const{doStartMeasure:s,doStopMeasure:d}=this.props;d(),s(n.currentTarget.dataset.type)}pauseMeasure(){const{doPauseMeasure:n}=this.props;n()}stopMeasure(){const{doStopMeasure:n}=this.props;n()}openSettings(){const{doModalOpen:n}=this.props;n({children:[Settings],options:{},openedBy:"MeasureArea"})}copy(){const{doNotificationsFire:n,measureOutput:s}=this.props;if(s.val!==0){const d=document.createElement("input");document.body.appendChild(d),d.value=s.output,d.select(),document.execCommand("copy"),d.remove(),n({title:"Measure Tools",message:`Copied ${s.output} to the clipboard`,level:"info"})}}render(){const{measureOutput:n,measureType:s}=this.props;return jsxRuntimeExports.jsx(BasicToolbarButton,{enabled:!0,iconClass:"cm cm-measure-line",title:"Measure Tools",onDeactivate:this.pauseMeasure,children:jsxRuntimeExports.jsxs(BasicToolbarMenu,{children:[jsxRuntimeExports.jsx(BasicToolbarMenuItem,{active:s==="distance",iconClass:"cm cm-measure-line icon-inline",title:"Measure Distance",text:"Measure Distance",onClick:this.startMeasure,passProps:{"data-type":"distance"}}),jsxRuntimeExports.jsx(BasicToolbarMenuItem,{active:s==="area",iconClass:"cm cm-measure-area icon-inline",title:"Measure Area",text:"Measure Area",onClick:this.startMeasure,passProps:{"data-type":"area"}}),jsxRuntimeExports.jsx(BasicToolbarMenuDivider,{}),jsxRuntimeExports.jsx(BasicToolbarMenuItem,{active:!1,iconClass:"mdi mdi-content-copy icon-inline",title:"Copy measurement to clipboard",liveDangerously:!0,text:n.output,onClick:this.copy,passProps:{"data-clipboard-text":n.value}}),jsxRuntimeExports.jsx(BasicToolbarMenuItem,{active:!1,iconClass:"mdi mdi-delete icon-inline",title:"Clear",text:"Clear",onClick:this.stopMeasure}),jsxRuntimeExports.jsx(BasicToolbarMenuItem,{active:!1,iconClass:"mdi mdi-settings icon-inline",title:"Measure Options",text:"Measure Options",onClick:this.openSettings})]})})}};const MeasureToolsButton=connect("doStartMeasure","doStopMeasure","doPauseMeasure","doNotificationsFire","doModalOpen","selectMeasureOutput","selectMeasureType",MeasureToolsButton$1),convertArea=(t,n)=>{let s="",d=0;return n==="ft/mi"?(t=t*10.7639,t>27878400?(d=Math.round(t/27878400*100)/100,s=d+" mi²"):(d=Math.round(t*100)/100,s=d+" ft²")):n==="acres"?(t=t*10.7639,d=Math.round(t/43560*100)/100,s=d+" acres"):n==="hectares"?(d=Math.round(t/1e4*100)/100,s=d+" hectares"):t>1e4?(d=Math.round(t/1e6*100)/100,s=d+" km²"):(d=Math.round(t*100)/100,s=d+" m²"),{output:s,val:d}},convertDistance=(t,n)=>{let s="",d=0;return n==="ft/mi"?(t=t*3.28084,t>5280?(d=Math.round(t/5280*100)/100,s=d+" mi"):(d=Math.round(t*100)/100,s=d+" ft")):t>100?(d=Math.round(t/1e3*100)/100,s=d+" km"):(d=Math.round(t*100)/100,s=d+" m"),{output:s,val:d}},distanceLayer=getLayer({serviceType:"LocalVector",visible:!0,geometryType:"LineString",style:function(t){const n=t.getGeometry(),s=[new style$3.Style({stroke:new style$3.Stroke({color:"rgba(255, 255, 255, 0.9)",width:4})}),new style$3.Style({stroke:new style$3.Stroke({color:"rgba(0, 0, 0, 0.8)",lineDash:[4,4],width:2})})],d=n.getFirstCoordinate();s.push(new style$3.Style({geometry:new Point(d),image:new style$3.Circle({radius:4,stroke:new style$3.Stroke({color:"rgba(0, 0, 0, 0.8)",width:2}),fill:new style$3.Fill({color:"rgba(255, 255, 255, 1)"})})}));const m=n.getLastCoordinate();return s.push(new style$3.Style({geometry:new Point(m),image:new style$3.Circle({radius:4,stroke:new style$3.Stroke({color:"rgba(0, 0, 0, 0.8)",width:2}),fill:new style$3.Fill({color:"rgba(255, 255, 255, 1)"})})})),s}}),drawDistance=createInteraction({interaction:"draw",source:distanceLayer.getSource(),type:"LineString"}),modifyDistance=createInteraction({interaction:"modify",source:distanceLayer.getSource()}),areaLayer=getLayer({serviceType:"LocalVector",visible:!0,geometryType:"Polygon",style:[new style$3.Style({stroke:new style$3.Stroke({color:"rgba(255, 255, 255, 0.9)",width:4}),fill:new style$3.Fill({color:"rgba(255, 255, 255, 0.2)"})}),new style$3.Style({stroke:new style$3.Stroke({color:"rgba(0, 0, 0, 0.8)",lineDash:[4,4],width:2})})]}),drawArea=createInteraction({interaction:"draw",source:areaLayer.getSource(),type:"Polygon"}),modifyArea=createInteraction({interaction:"modify",source:areaLayer.getSource()}),bundle$b={name:"measure",getReducer(){const t={active:!1,type:null,geom:null,areaUnits:"ft/mi",distanceUnits:"ft/mi"};return(n=t,{type:s,payload:d})=>{switch(s){case"MEASURE_STARTED":case"MEASURE_DRAW_STARTED":case"MEASURE_STOPPED":case"MEASURE_UNITS_UPDATED":return Object.assign({},n,d);default:return n}}},doStartMeasure:t=>({dispatch:n,store:s})=>{s.doSetCursor("crosshair"),t==="distance"?s.doStartMeasureDistance():s.doStartMeasureArea(),n({type:"MEASURE_STARTED",payload:{type:t,active:!0}})},doStartMeasureDistance:()=>({dispatch:t,store:n})=>{const s=n.selectMap();n.doStopMeasureArea(),s.addInteraction(drawDistance),s.addInteraction(modifyDistance),drawDistance.on("drawstart",n.doStartMeasureDraw),drawDistance.on("drawend",n.doStopMeasureDraw),s.addLayer(distanceLayer)},doStartMeasureArea:()=>({dispatch:t,store:n})=>{const s=n.selectMap();n.doStopMeasureDistance(),s.addInteraction(drawArea),s.addInteraction(modifyArea),drawArea.on("drawstart",n.doStartMeasureDraw),drawArea.on("drawend",n.doStopMeasureDraw),s.addLayer(areaLayer)},doStartMeasureDraw:t=>({dispatch:n,store:s})=>{s.doClearMeasureFeatures();const d=t.feature.getGeometry();d&&d.on("change",_.throttle(s.doUpdateDrawing,50)),n({type:"MEASURE_DRAW_STARTED",payload:{geom:d}})},doStopMeasureDraw:t=>({dispatch:n,store:s})=>{n({type:"MEASURE_DRAW_STOPPED"})},doUpdateDrawing:t=>({dispatch:n,store:s})=>{n({type:"MEASURE_DRAW_UPDATED"})},doPauseMeasure:()=>({dispatch:t,store:n})=>{n.doSetCursor();const s=n.selectMap(),d=n.selectMeasureType(),m=d==="distance"?drawDistance:drawArea,v=d==="distance"?modifyDistance:modifyArea;s.removeInteraction(m),s.removeInteraction(v)},doClearMeasureFeatures:()=>({dispatch:t,store:n})=>{distanceLayer.getSource().clear(),areaLayer.getSource().clear()},doStopMeasure:()=>({dispatch:t,store:n})=>{n.doSetCursor(),n.doStopMeasureArea(),n.doStopMeasureDistance(),t({type:"MEASURE_STOPPED",payload:{active:!1,type:null,geom:null}})},doStopMeasureDistance:()=>({dispatch:t,store:n})=>{const s=n.selectMap();s.removeInteraction(drawDistance),s.removeInteraction(modifyDistance),s.removeLayer(distanceLayer),distanceLayer.getSource().clear()},doStopMeasureArea:()=>({dispatch:t,store:n})=>{const s=n.selectMap();s.removeInteraction(drawArea),s.removeInteraction(modifyArea),s.removeLayer(areaLayer),areaLayer.getSource().clear()},doUpdateMeasureUnits:({areaUnits:t,distanceUnits:n})=>({dispatch:s})=>{s({type:"MEASURE_UNITS_UPDATED",payload:{areaUnits:t,distanceUnits:n}})},doMeasureConvertArea:(t,n)=>()=>convertArea(sphere.getArea(t),n),doMeasureConvertDistance:(t,n)=>()=>convertDistance(t,n),selectMeasureType:t=>t.measure.type,selectMeasureAreaUnits:t=>t.measure.areaUnits,selectMeasureDistanceUnits:t=>t.measure.distanceUnits,selectMeasureGeom:t=>t.measure.geom,selectMeasureOutput:reduxBundler.createSelector("selectMeasureGeom","selectMeasureType","selectMapProjection","selectMeasureAreaUnits","selectMeasureDistanceUnits","selectAppTime",(t,n,s,d,m,v)=>{if(!t)return{output:"...",value:0};const S=t.clone().transform(s,"EPSG:4326");if(n==="distance"){const I=S.getCoordinates();let N=0;for(var C=0;C<I.length-1;C++)N+=sphere.getDistance(I[C],I[C+1]);return convertDistance(N,m)}else return S.getLinearRing(0).getCoordinates().length>3?convertArea(sphere.getArea(t),d):{output:"...",value:0}}),selectMeasureSettings:t=>t.measure},plugin$e={pluginName:"MeasureArea",enabled:!0,bundle:bundle$b,components:[{component:MeasureToolsButton,region:"basic-toolbar",sortOrder:50}]},bundle$a={name:"permalink",getReducer:()=>{const t={params:""};return(n=t,{type:s,payload:d})=>s==="PERMALINK_PARAMS_GENERATED"?Object.assign({},n,d):n},doConstructPermalinkParams:()=>({dispatch:t,store:n})=>{try{const s=n.selectVisibleLayers(),d=n.selectMapExtent(),m=n.selectActiveBasemapIdx(),S=n.selectBasemapList()[m].id,C=[];s.length&&C.push(`layers=${s.map(N=>N.id).join(",")}`),C.push(`extent=${d.map(N=>Math.round(N*1e5)/1e5).join()}`),C.push(`basemap=${S}`);const I=`${C.join("&")}`;t({type:"PERMALINK_PARAMS_GENERATED",payload:{params:I}})}catch(s){const d=`${s.message}`||"Error creating permalink";t({type:"PERMALINK_ERROR",payload:{err:d,notification:{level:"warning",title:"Permalink Error",message:`${JSON.stringify(d)}`}}})}},selectPermalinkParams:t=>t.permalink.params};let PermalinkModal$1=class extends React.Component{constructor(n){super(n),this.close=this.close.bind(this)}close(){const{doModalClose:n}=this.props;n()}render(){const{theme:n,permalinkParams:s,windowLocationOrigin:d,windowLocationPathname:m}=this.props,v=`${d}${m}?${s}`;return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"cm-modal-header "+n,children:"Permalink"}),jsxRuntimeExports.jsx("div",{className:"cm-modal-body",style:{height:200,top:0,bottom:0,left:0,right:0},children:jsxRuntimeExports.jsxs("div",{className:"cm-form-group",children:[jsxRuntimeExports.jsx("p",{children:"Copy the link below to send a permalink to other users or save for later use."}),jsxRuntimeExports.jsx("p",{children:"The query parameters at the end of the link are used to configure the map so that it zooms to a location or turns layers on."}),jsxRuntimeExports.jsx("p",{children:jsxRuntimeExports.jsx("strong",{children:jsxRuntimeExports.jsx("a",{href:v,children:v})})}),jsxRuntimeExports.jsx("p",{children:'Right click the link above, choose "Copy Link Address"'})]})}),jsxRuntimeExports.jsx("div",{className:"cm-modal-footer",children:jsxRuntimeExports.jsx("button",{className:"cm-btn cm-btn-theme "+n,onClick:this.close,children:"Close"})})]})}};const PermalinkModal=connect("selectPermalinkParams","selectWindowLocationOrigin","selectWindowLocationPathname","selectTheme","doModalClose",PermalinkModal$1);let PermalinkButton$1=class extends React.Component{constructor(n){super(n),this.handleClick=this.handleClick.bind(this)}handleClick(){const{doConstructPermalinkParams:n,doModalOpen:s}=this.props;n(),s({children:[PermalinkModal],options:{},openedBy:"Permalink"})}render(){return jsxRuntimeExports.jsx(SidebarButton,{iconClass:"ms ms-link",label:"Show Permalink",title:"Show Permalink",onClick:this.handleClick})}};const PermalinkButton=connect("doConstructPermalinkParams","doModalOpen",PermalinkButton$1),plugin$d={pluginName:"Permalink",enabled:!0,bundle:bundle$a,components:[{component:PermalinkButton,region:"right-sidebar-top",sortOrder:80}]};var _baseExtremum,hasRequired_baseExtremum;function require_baseExtremum(){if(hasRequired_baseExtremum)return _baseExtremum;hasRequired_baseExtremum=1;var t=requireIsSymbol();function n(s,d,m){for(var v=-1,S=s.length;++v<S;){var C=s[v],I=d(C);if(I!=null&&(N===void 0?I===I&&!t(I):m(I,N)))var N=I,M=C}return M}return _baseExtremum=n,_baseExtremum}var _baseGt,hasRequired_baseGt;function require_baseGt(){if(hasRequired_baseGt)return _baseGt;hasRequired_baseGt=1;function t(n,s){return n>s}return _baseGt=t,_baseGt}var max_1,hasRequiredMax;function requireMax(){if(hasRequiredMax)return max_1;hasRequiredMax=1;var t=require_baseExtremum(),n=require_baseGt(),s=requireIdentity();function d(m){return m&&m.length?t(m,s,n):void 0}return max_1=d,max_1}var maxExports=requireMax();const max=getDefaultExportFromCjs$1(maxExports);var _baseSum,hasRequired_baseSum;function require_baseSum(){if(hasRequired_baseSum)return _baseSum;hasRequired_baseSum=1;function t(n,s){for(var d,m=-1,v=n.length;++m<v;){var S=s(n[m]);S!==void 0&&(d=d===void 0?S:d+S)}return d}return _baseSum=t,_baseSum}var sum_1,hasRequiredSum;function requireSum(){if(hasRequiredSum)return sum_1;hasRequiredSum=1;var t=require_baseSum(),n=requireIdentity();function s(d){return d&&d.length?t(d,n):0}return sum_1=s,sum_1}var sumExports=requireSum();const sum=getDefaultExportFromCjs$1(sumExports),bundle$9={name:"print",getReducer:()=>{const t={mapCanvas:null,legendCanvas:null,_shouldExport:!1};return(n=t,{type:s,payload:d})=>{switch(s){case"PRINT_ERROR":case"PRINT_LOADING":case"PRINT_MAP_CANVAS_GENERATED":case"PRINT_LEGEND_CANVAS_GENERATED":case"PRINT_EXPORTING":return Object.assign({},n,d);default:return n}}},doSetMapCanvas:t=>({dispatch:n})=>{let s=document.createElement("canvas");const d=t.getSize();s.width=d[0],s.height=d[1];let m=s.getContext("2d");Array.prototype.forEach.call(document.querySelectorAll(".ol-layer canvas"),function(v){if(v.width>0){const C=v.parentNode.style.opacity;m.globalAlpha=C===""?1:Number(C);var S=v.style.transform;const I=S.match(/^matrix\(([^\(]*)\)$/)[1].split(",").map(Number);CanvasRenderingContext2D.prototype.setTransform.apply(m,I),m.drawImage(v,0,0)}}),Array.prototype.forEach.call(document.querySelectorAll(".ol-scale-line .ol-scale-line-inner"),function(v){const S=v.textContent,C=v.style.width.replace("px","").trim(),I=20,N=Number(C),M=5,k=5;m.fillStyle="#000",m.fillRect(M,k,N,I);const z=M+3,V=k+3;m.beginPath(),m.moveTo(z,V),m.lineTo(z,V+I/2),m.lineTo(z+(N-6),V+I/2),m.lineTo(z+(N-6),V),m.strokeStyle="#fff",m.stroke();const H=z+(N/2-6),W=V+(I/2-4);m.font="10px",m.fillStyle="#fff",m.textAlign="center",m.fillText(S,H,W)}),n({type:"PRINT_MAP_CANVAS_GENERATED",payload:{mapCanvas:s}})},doSetLegendCanvas:()=>({dispatch:t,store:n})=>{const s=n.selectLegendCanvases(),d=n.selectVisibleLayers(),m=sortBy(d,["sortOrder"]).reverse();let v=[],S=document.createElement("canvas"),C=S.getContext("2d");m.forEach(k=>{if(s.hasOwnProperty(k.uid)){let z=document.createElement("canvas"),V=z.getContext("2d");const H=Number(V.measureText(s[k.uid].displayName).width)+50;if(s[k.uid].canvas.length){const W=max(s[k.uid].widths);z.width=H>W?H:W,z.height=sum(s[k.uid].heights)+70,V.fillStyle="white",V.fillRect(0,0,z.width,z.height),V.font="bold 12px Arial",V.fillStyle="black",V.fillText(s[k.uid].displayName,0,15);let J=20;s[k.uid].canvas.forEach(K=>{V.drawImage(K,0,J),J+=Number(K.height)}),s[k.uid].attributions&&(J+=20,V.font="bold 12px Arial",V.fillStyle="black",V.fillText(`Credits: ${s[k.uid].attributions}`,0,J),J+=50,V.fillText("",0,J)),v.push(z)}else{if(z.width=H,z.height=90,V.fillStyle="white",V.fillRect(0,0,z.width,z.height),V.font="bold 12px Arial",V.fillStyle="black",V.fillText(s[k.uid].displayName,0,15),V.font="10px Arial",V.fillStyle="black",V.fillText("N/A",5,30),s[k.uid].attributions){let W=20;V.font="bold 12px Arial",V.fillStyle="black",V.fillText(`Credits: ${s[k.uid].attributions}`,0,W),W+=50,V.fillText("",0,W)}v.push(z)}}});let I=0,N=0;v.forEach(k=>{I+=k.height,N=N>k.width?N:k.width}),S.height=I,S.width=N,C.fillStyle="white",C.fillRect(0,0,S.width,S.height);let M=0;v.forEach(k=>{C.drawImage(k,0,M),M+=Number(k.height)}),t({type:"PRINT_LEGEND_CANVAS_GENERATED",payload:{legendCanvas:S,_shouldExport:!0}})},doPrintMap:()=>({dispatch:t,store:n})=>{if(window.navigator.msSaveBlob)t({type:"PRINT_ERROR",payload:{notification:{title:"Print Notification",message:"Browser not supported.",level:"danger"}}}),n.doBasicToolbarDeactivate();else{t({type:"PRINT_LOADING",payload:{notification:{title:"Print Notification",message:"Loading Image..",level:"success"}}});const s=n.selectMap();s.once("rendercomplete",()=>{n.doSetMapCanvas(s),n.doSetLegendCanvas()}),s.renderSync()}},doPrintMapExport:()=>({dispatch:t,store:n})=>{t({type:"PRINT_EXPORTING",payload:{_shouldExport:!1}});let s=document.createElement("a");const d=n.selectPrintMapCanvas(),m=n.selectPrintLegendCanvas();let v=document.createElement("canvas"),S=v.getContext("2d");v.width=Number(d.width)+Number(m.width),v.height=Number(d.height)>Number(m.height)?Number(d.height):Number(m.height),S.fillStyle="white",S.fillRect(0,0,v.width,v.height),S.drawImage(d,0,0),m.height!==0&&m.width!==0&&S.drawImage(m,d.width,0),s.download="map.png",s.href=v.toDataURL(),document.body.appendChild(s),s.click(),s.remove(),n.doBasicToolbarDeactivate()},selectPrintMapCanvas:t=>t.print.mapCanvas,selectPrintLegendCanvas:t=>t.print.legendCanvas,reactLegendShouldExport:t=>{if(t.print._shouldExport)return{actionCreator:"doPrintMapExport"}}},Button$1=({doPrintMap:t})=>jsxRuntimeExports.jsx(BasicToolbarButton,{enabled:!0,iconClass:"mdi mdi-printer",title:"Print Map",onDeactivate:()=>{},onActivate:t}),Button=connect("doPrintMap",Button$1),plugin$c={pluginName:"Print Map",enabled:!0,bundle:bundle$9,components:[{component:Button,region:"basic-toolbar",sortOrder:200}]};class QuestionsModal extends React.Component{constructor(n){super(n),this.state={firstName:" ",lastName:" ",Email:" ",selIssue:" ",addComments:" ",errors:{}},this.close=this.close.bind(this),this.handleChange=this.handleChange.bind(this),this.handleSubmit=this.handleSubmit.bind(this)}close(){const{doModalClose:n}=this.props;n()}handleChange(n){switch(n.target.name){case"FN":this.setState({firstName:n.target.value});break;case"LN":this.setState({lastName:n.target.value});break;case"EM":this.setState({Email:n.target.value});break;case"SI":this.setState({selIssue:n.target.value});break;case"AC":this.setState({addComments:n.target.value});break}}handleSubmit(n){n.preventDefault();const{doSetContactFormIssues:s,doHandleFormErrors:d,doSubmitNotification:m,errorList:v}=this.props,S={first_Name:this.state.firstName,last_Name:this.state.lastName,e_mail:this.state.Email,sel_issue:this.state.selIssue,add_comments:this.state.addComments},C=d(S);this.setState({errors:v}),C?(s(S),m(C),this.close()):m(C)}render(){const{theme:n}=this.props;return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{className:"cm-modal-header "+n,children:"Questions"}),jsxRuntimeExports.jsx("div",{className:"cm-modal-body",style:{height:290,top:0,bottom:0,left:0,right:0},children:jsxRuntimeExports.jsx("div",{className:"cm-form-group",children:jsxRuntimeExports.jsxs("form",{onSubmit:this.handleSubmit,children:[jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsxs("label",{children:["First Name:"," ",jsxRuntimeExports.jsx("input",{name:"FN",type:"text",value:this.state.firstName,onChange:this.handleChange}),jsxRuntimeExports.jsx("label",{style:{color:"red",position:"relative",left:10},children:this.state.formIsValid?null:this.state.errors.First_Name})]}),jsxRuntimeExports.jsxs("label",{style:{position:"relative",left:20},children:["Last Name:"," ",jsxRuntimeExports.jsx("input",{name:"LN",type:"text",value:this.state.LastName,onChange:this.handleChange}),jsxRuntimeExports.jsx("label",{style:{color:"red",position:"relative",left:10},children:this.state.formIsValid?null:this.state.errors.Last_Name})]})]}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsxs("label",{children:["Email"," ",jsxRuntimeExports.jsx("input",{name:"EM",style:{width:250},type:"text",value:this.state.Email,onChange:this.handleChange}),jsxRuntimeExports.jsx("label",{style:{color:"red",position:"relative",left:10},children:this.state.formIsValid?null:this.state.errors.email})]})}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsxs("label",{children:["Select your Current Issue:",jsxRuntimeExports.jsxs("select",{name:"SI",style:{width:150,textAlign:"left"},value:this.state.selIssue,onChange:this.handleChange,children:[jsxRuntimeExports.jsx("option",{value:" ",children:" "}),jsxRuntimeExports.jsx("option",{value:" Map Issue ",children:" Map Issue "}),jsxRuntimeExports.jsx("option",{value:" Requests ",children:" Requests "}),jsxRuntimeExports.jsx("option",{value:" Other",children:" Other "})]}),jsxRuntimeExports.jsx("label",{style:{color:"red",position:"relative",left:10},children:this.state.formIsValid?null:this.state.errors.issue})]})}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{children:"Brief Description"}),jsxRuntimeExports.jsx("textarea",{name:"AC",style:{height:120,width:300},value:this.state.addComments,onChange:this.handleChange}),jsxRuntimeExports.jsx("label",{style:{color:"red",position:"relative",left:10},children:this.state.formIsValid?null:this.state.errors.add_comments})]})]})})}),jsxRuntimeExports.jsxs("div",{className:"cm-modal-footer",children:[jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("button",{type:"submit",className:"cm-btn cm-btn-theme "+n,onClick:this.handleSubmit,children:"Submit"}),jsxRuntimeExports.jsx("button",{style:{textAlign:"left"},type:"Close",className:"cm-btn cm-btn-theme "+n,onClick:this.close,children:"Close"})]})]})}}const QuestionModal=connect("selectTheme","doModalClose","doSubmitNotification","doSetContactFormIssues","doHandleFormErrors","selectErrorList",QuestionsModal);let questionsTab$1=class extends React.Component{constructor(n){super(n),this.handleClick=this.handleClick.bind(this)}handleClick(){const{doModalOpen:n}=this.props;n({children:[QuestionModal],options:{},openedBy:"questionsTab"})}render(){return jsxRuntimeExports.jsx(SidebarButton,{iconClass:"mdi mdi-help-circle",label:"Contact Us",title:"Contact Us",onClick:this.handleClick})}};const questionsTab=connect("doModalOpen","doQuestionBarActivate","selectQuestionsTabStatus",questionsTab$1),bundle$8={name:"questionsTab",getReducer:()=>{const t={questionsTabStatus:!1,errorList:{},applicationName:"",emailPath:""};return(n=t,{type:s,payload:d})=>{switch(s){case"PARAMETERS_SET":case"FORM_SUBMITTED":case"FORM_ERROR":case"API_POST_SUCCESS":case"API_POST_ERROR":case"ACTIVATE_QUESTIONS_TAB":case"DEACTIVATE_QUESTIONS_TAB":case"VALIDATION_COMPLETE":return Object.assign({},n,d);default:return n}}},doHandleFormErrors:t=>({dispatch:n,store:s})=>{let d=s.selectErrorList(),m=!0;const v=/[a-zA-Z]/g;if(t.first_Name==" "&&(m=!1,d.First_Name=" *Field Cannot be empty "),typeof t.first_Name<"u"&&(t.first_Name.match(v)||(m=!1,d.First_Name=" *Only letters ")),t.last_Name==" "&&(m=!1,d.Last_Name=" *Field Cannot be empty "),typeof t.last_Name<"u"&&(t.last_Name.match(v)||(m=!1,d.Last_Name=" *Only letters ")),t.e_mail==" "&&(m=!1,d.email=" *Field Cannot be empty "),typeof t.e_mail<"u"){let S=t.e_mail.lastIndexOf("@"),C=t.e_mail.lastIndexOf(".");S<C&&S>0&&t.e_mail.indexOf("@@")==-1&&C>2&&t.e_mail.length-C>2||(m=!1,d.email=" *Email is not valid ")}return t.sel_issue==" "&&(m=!1,d.issue=" *Please select an issue "),t.add_comments==" "&&(m=!1,d.add_comments=" *Please provide a breif description of issue "),n({type:"VALIDATION_COMPLETE",payload:{errorList:d}}),m},doSetContactFormConfiguration:t=>({dispatch:n,store:s})=>{const d=t.application_name,m=t.email_url;n({type:"PARAMETERS_SET",payload:{applicationName:d,emailPath:m}})},doSetContactFormIssues:t=>({dispatch:n,store:s,apiPost:d})=>{console.log(t);const m=s.selectEmailPath(),v={application_name:s.selectApplicationName(),first_name:t.first_Name,last_name:t.last_Name,email_address:t.e_mail,category:t.sel_issue,comments:t.add_comments};d(m,v,(S,C,I)=>{S||C.statusCode!==200?(console.log(S,C),n({type:"API_POST_ERROR",payload:{notification:{message:"api-error",level:"danger"}}})):(n({type:"API_POST_SUCCESS",payload:{notification:{message:"api-success",level:"success"}}}),console.log(C))})},doSubmitNotification:t=>({dispatch:n,store:s})=>{t?(s.doNotificationsFire({title:"Form Submitted",message:"Form Submitted",level:"success"}),n({type:"FORM_SUBMITTED",payload:{}})):(s.doNotificationsFire({title:"Form Error",message:"Form Has Errors",level:"danger"}),n({type:"FORM_ERROR",payload:{}}))},doQuestionBarActivate:()=>({dispatch:t})=>{t({type:"ACTIVATE_QUESTIONS_TAB",payload:{questionsTabStatus:!0}})},selectApplicationName:t=>t.questionsTab.applicationName,selectEmailPath:t=>t.questionsTab.emailPath,selectQuestionsTabStatus:t=>t.questionsTab.questionsTabStatus,selectErrorList:t=>t.questionsTab.errorList},plugin$b={pluginName:"questionsTab",enabled:!0,bundle:bundle$8,components:[{component:questionsTab,region:"right-sidebar-top",sortOrder:100}]},bundle$7={name:"rasterIdent",getReducer(){const t={shouldRegister:!0};return(n=t,{type:s,payload:d})=>s==="RASTER_IDENT_REGISTERED"?Object.assign({},n,d):n},doRasterIdentRegister:()=>({dispatch:t,store:n})=>{t({type:"RASTER_IDENT_REGISTERED",payload:{shouldRegister:!1}}),n.doIdentifyAddCollection({onIdentify:n.doRasterIdentFire})},doRasterIdentFire:t=>({store:n})=>{const s=n.selectMap(),d=n.selectVisibleLayers(),m=n.selectIdentifyCoordinates(),v=[],S=proj.fromLonLat(m),C=s.getPixelFromCoordinate(S);return s.forEachLayerAtPixel(C,(I,N)=>{if(N){const M=`${N[0]}.${N[1]}.${N[2]}`;d.forEach(k=>{if(k.mapLayer===I&&k.legend){let z=M;k.legend&&k.legend.hasOwnProperty(M)?z=k.legend[M]:k.legend&&k.legend.hasOwnProperty("*")&&(z=k.legend["*"]),v.push({dataset:k.uid,layerName:k.displayName,err:null,result:{[k.uid]:{type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Point",coordinates:m},properties:{Class:z}}]}}})}})}}),t(null,v)},reactRasterIdentShouldRegister:t=>{if(t.rasterIdent.shouldRegister)return{actionCreator:"doRasterIdentRegister"}}},plugin$a={pluginName:"Identify Raster",enabled:!0,bundle:bundle$7,components:[]};let RotateNorthButton$1=class extends React.Component{constructor(n){super(n),this.handleClick=this.handleClick.bind(this)}handleClick(){const{doSetRotationNorth:n}=this.props;n()}render(){const{mapRotation:n}=this.props,s={display:"inline-block",transform:"rotate("+Math.round(n)+"deg)"};return jsxRuntimeExports.jsx(SidebarButton,{iconClass:"mdi mdi-navigation",iconStyle:s,label:"Rotate North",title:"Rotate North",onClick:this.handleClick})}};const RotateNorthButton=connect("doSetRotationNorth","selectMapRotation",RotateNorthButton$1),plugin$9={pluginName:"NorthButton",enabled:!0,components:[{component:RotateNorthButton,region:"right-sidebar-top",sortOrder:20}]},bundle$6={name:"themeSwitcher",getReducer(){const t={themes:[1,2,3]};return(n=t,{type:s,payload:d})=>n},selectThemes:t=>t.themeSwitcher.themes},themes=["bg-white","bg-light-default","bg-dark","bg-black","bg-blue","bg-blue-madison","bg-blue-chambray","bg-blue-ebonyclay","bg-blue-hoki","bg-blue-steel","bg-blue-soft","bg-blue-dark","bg-blue-sharp","bg-blue-oleo","bg-green","bg-green-meadow","bg-green-seagreen","bg-green-turquoise","bg-green-haze","bg-green-jungle","bg-green-soft","bg-green-dark","bg-green-sharp","bg-green-steel","bg-grey","bg-grey-steel","bg-grey-cararra","bg-grey-gallery","bg-grey-cascade","bg-grey-silver","bg-grey-salsa","bg-grey-salt","bg-grey-mint","bg-red","bg-red-pink","bg-red-sunglo","bg-red-intense","bg-red-thunderbird","bg-red-flamingo","bg-red-soft","bg-red-haze","bg-red-mint","bg-yellow","bg-yellow-gold","bg-yellow-casablanca","bg-yellow-crusta","bg-yellow-lemon","bg-yellow-saffron","bg-yellow-soft","bg-yellow-haze","bg-yellow-mint","bg-purple","bg-purple-plum","bg-purple-medium","bg-purple-studio","bg-purple-wisteria","bg-purple-seance","bg-purple-intense","bg-purple-sharp","bg-purple-soft"];let ThemeListItem$1=class extends React.Component{handleClick=()=>{const{doThemeSet:n,theme:s}=this.props;n(s)};render(){const{theme:n}=this.props,s=n.replace("bg-","");return jsxRuntimeExports.jsx("li",{onClick:this.handleClick,title:s,className:"cm-list-group-item pointer overflow-ellipsis "+n,style:{margin:"3px",padding:"2px"},children:s})}};const ThemeListItem=connect("doThemeSet",ThemeListItem$1);let ThemeList$1=class extends React.Component{render(){const{primaryPanelShowClose:n}=this.props,s=classnames({"cm-list-group":!0,"sidebar-list":!n,"thin-scrollbar":!0,"sidebar-list-show-close-btn":n});return jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("ul",{className:s,children:themes.map((d,m)=>jsxRuntimeExports.jsx(ThemeListItem,{theme:d},m))})})}};const ThemeList=connect("selectPrimaryPanelShowClose",ThemeList$1);class ThemeSwitcherButton extends React.Component{render(){return jsxRuntimeExports.jsx(SidebarPanelOpenerButton,{iconClass:"mdi mdi-palette",label:"Themes",title:"Themes",panelComponent:ThemeList})}}const plugin$8={pluginName:"Theme Switcher",enabled:!0,components:[{component:ThemeSwitcherButton,region:"left-sidebar-bottom",sortOrder:30}],bundle:bundle$6};class TreeviewButton extends React.Component{render(){return jsxRuntimeExports.jsx(SidebarPanelOpenerButton,{iconClass:"mdi mdi-layers",label:"LayerTree",title:"LayerTree",panelComponent:TreeviewPanel})}}class OpacitySlider extends React.Component{constructor(n){super(n),this.state={opacity:n.layer.getOpacity()},this.handleChange=this.handleChange.bind(this)}handleChange(n){const{layer:s}=this.props,d=n.currentTarget.value;this.setState({opacity:Number(d)},()=>{isNaN(this.state.opacity)||s.setOpacity(this.state.opacity)})}render(){const{opacity:n}=this.state,s=""+Math.round(n*100)+"%";return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("hr",{}),jsxRuntimeExports.jsxs("div",{className:"cm-form-group",children:[jsxRuntimeExports.jsxs("label",{className:"cm-control-label",children:["Opacity: ",s]}),jsxRuntimeExports.jsx("input",{className:"cm-input",value:n,onChange:this.handleChange,type:"range",min:0,max:1,step:.01})]})]})}}let RemoveLayer$1=class extends React.Component{constructor(n){super(n),this.state={confirm:!1},this.handleClick=this.handleClick.bind(this),this.renderButtons=this.renderButtons.bind(this),this.cancelRemove=this.cancelRemove.bind(this)}cancelRemove(){this.setState({confirm:!1})}handleClick(n){const{confirm:s}=this.state,{doTreeRemove:d,doRenderTreeView:m,layer:v}=this.props;if(!s)return this.setState({confirm:!0});d(v.uid),m()}renderButtons(){const{confirm:n}=this.state;return n?[jsxRuntimeExports.jsx("a",{href:"#",onClick:this.cancelRemove,className:"cm-btn cm-btn-default cm-btn-sm",children:"Cancel"},0),jsxRuntimeExports.jsx("a",{href:"#",onClick:this.handleClick,className:"cm-btn cm-btn-danger cm-btn-sm",children:"Confirm"},1)]:jsxRuntimeExports.jsx("a",{href:"#",onClick:this.handleClick,className:"cm-btn cm-btn-default cm-btn-sm",children:"Remove Layer"})}render(){return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("hr",{}),jsxRuntimeExports.jsx("div",{className:"cm-btn-group cm-btn-group-justified",children:this.renderButtons()})]})}};const RemoveLayer=connect("doTreeRemove","doRenderTreeView",RemoveLayer$1),DownloadLayer$1=t=>{const{treeViewDownloadActiveFormat:n,treeViewDownloadFormats:s,treeViewDownloadLayerUrl:d,doUpdateTreeViewLayerDownloadFormat:m}=t;return jsxRuntimeExports.jsxs("form",{className:"cm-form-inline",children:[jsxRuntimeExports.jsxs("div",{className:"cm-form-group",children:[jsxRuntimeExports.jsx("label",{children:jsxRuntimeExports.jsx("b",{children:"Download Type:"})}),jsxRuntimeExports.jsx("select",{onChange:v=>{m(v)},value:n,className:"cm-form-control",style:{margin:"0 5px"},children:s.map(v=>jsxRuntimeExports.jsx("option",{value:v,children:v},v))})]}),jsxRuntimeExports.jsx("a",{rel:"noopener noreferrer",type:"submit",href:d,title:"Download Layer",target:"_blank",className:"cm-btn cm-btn-xs cm-btn-link",children:jsxRuntimeExports.jsx("i",{className:"mdi mdi-cloud-download",style:{fontSize:"22px"}})})]})},DownloadLayer=connect("selectTreeViewDownloadActiveFormat","selectTreeViewDownloadFormats","selectTreeViewDownloadLayerUrl","doUpdateTreeViewLayerDownloadFormat",DownloadLayer$1),FavoritesToggle$1=t=>{const{doToggleLayerFavoritesAdd:n,layer:s}=t,d=s.favorite?"REMOVE FROM FAVORITE LAYERS":"ADD TO FAVORITE LAYERS";return s.id?jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("button",{onClick:()=>{n(s,!s.favorite)},type:"button",className:"cm-btn cm-btn-xs cm-btn-default",title:d,children:d})}):null},FavoritesToggle=connect("doToggleLayerFavoritesAdd",FavoritesToggle$1),DefaultsToggle$1=t=>{const{doToggleUserDefaultLayersAdd:n,layer:s}=t,d=s.userDefaultLayer?"REMOVE FROM DEFAULT LAYERS":"ADD TO DEFAULT LAYERS";return s.id?jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("button",{onClick:()=>{n(s,!s.userDefaultLayer)},type:"button",className:"cm-btn cm-btn-xs cm-btn-default",title:d,children:d})}):null},DefaultsToggle=connect("doToggleUserDefaultLayersAdd",DefaultsToggle$1),LayerSubpanel$1=t=>{const{treeViewSelectedItem:n,doRenderTreeView:s,primaryPanelShowClose:d,mapZoom:m,treeViewDownloadEnabled:v,primaryPanelShowFavoritesBtn:S,primaryPanelShowUserDefaultLayersBtn:C,treeRootNode:I,sortOrderStatus:N}=t,M=classnames({"sidebar-list":!d,"thin-scrollbar":!0,"sidebar-list-show-close-btn":d}),k=d?70:30,z=!!(v&&n.identifyType==="MAP"),V=n.identifyType=="MAP"?`${n.url}?&service=WMS&version=1.3.0&request=GetCapabilities&layers=${n.layerList}&query_layers=${n.layerList}`:n.url;return jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{children:jsxRuntimeExports.jsx("span",{onClick:s,title:"Go back",style:{fontSize:24,cursor:"pointer"},children:jsxRuntimeExports.jsx("i",{className:"mdi mdi-arrow-left"})})}),jsxRuntimeExports.jsxs("div",{className:M,style:{top:k},children:[jsxRuntimeExports.jsxs("p",{children:[n.favorite?jsxRuntimeExports.jsx("i",{className:"mdi mdi-star",title:"Layer saved to favorites list"}):null,n.userDefaultLayer?jsxRuntimeExports.jsx("i",{className:"mdi mdi-account",title:"Layer saved to user default layer list"}):null,jsxRuntimeExports.jsx("b",{children:n.displayName})]}),jsxRuntimeExports.jsxs("p",{children:[" ",jsxRuntimeExports.jsxs("a",{rel:"noopener noreferrer",title:`Source for ${n.displayName}`,href:V,target:"_blank",children:["Source"," "]})]}),n.moreInfo?jsxRuntimeExports.jsxs("p",{children:[" ",jsxRuntimeExports.jsxs("a",{rel:"noopener noreferrer",title:`Source for ${n.displayName}`,href:n.moreInfo,target:"_blank",children:["More Info"," "]})]}):null,n.resourceDownload?jsxRuntimeExports.jsxs("p",{children:[" ",jsxRuntimeExports.jsxs("a",{rel:"noopener noreferrer",title:`Download Resource for ${n.displayName}`,href:n.resourceDownload,target:"_blank",children:["Resource Download"," "]})]}):null,jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx("b",{children:"Layer(s):"})," ",n.layerList," "]}),jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx("b",{children:"Service Type:"})," ",n.type," "]}),jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx("b",{children:"Identify Type:"})," ",n.identifyType," "]}),jsxRuntimeExports.jsx("div",{children:n.groupTag?jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx("b",{children:"Group Tag:"})," ",n.groupTag.toString()," "]}):null}),jsxRuntimeExports.jsx("div",{children:N?jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx("b",{children:"Sort Order:"})," ",n.sortOrder," "]}):null}),jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx("b",{children:"Min Zoom:"})," ",n.minzoom," "]}),jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx("b",{children:"Max Zoom:"})," ",n.maxzoom," "]}),jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx("b",{children:"Current Zoom:"})," ",Math.floor(m)," "]}),n.attributions?jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx("b",{children:"Credits:"})," ",n.attributions," "]}):null,n.layerDescription?jsxRuntimeExports.jsxs("p",{children:[jsxRuntimeExports.jsx("b",{children:"Layer Description:"})," ",n.layerDescription," "]}):null,S?jsxRuntimeExports.jsx(FavoritesToggle,{layer:n}):null,jsxRuntimeExports.jsx("p",{}),C?jsxRuntimeExports.jsx(DefaultsToggle,{layer:n}):null,z?jsxRuntimeExports.jsx(DownloadLayer,{}):null,jsxRuntimeExports.jsx(OpacitySlider,{layer:n.mapLayer}),jsxRuntimeExports.jsx(RemoveLayer,{layer:n})]})]})},LayerSubpanel=connect("selectSortOrderStatus","selectTreeViewSelectedItem","selectPrimaryPanelShowClose","selectMapZoom","selectTreeViewDownloadEnabled","selectPrimaryPanelShowFavoritesBtn","selectPrimaryPanelShowUserDefaultLayersBtn","selectTreeRootNode","doRenderTreeView",LayerSubpanel$1),treeView=t=>({name:"treeview",getReducer(){const n={rootNodeCreated:!1,configLayersLoaded:!1,shouldRenderDetails:!1,selectedItem:null,toggleExpanded:!0,controls:t,hideCounter:!1,showSelectAll:!1,toggleFavorites:!1,toggleUserDefaultLayers:!1};return(s=n,{type:d,payload:m})=>{switch(d){case"TREEVIEW_ROOT_CREATED":case"TREEVIEW_LOADED":case"TREEVIEW_DETAILS_PICKED":case"TREEVIEW_DETAILS_DISPLAYED":case"TREEVIEW_FOLDERS_TOGGLED":case"TREEVIEW_TRIGGER_HIDE_COUNTER":case"TREEVIEW_TRIGGER_SHOW_SELECT_ALL":case"TREEVIEW_TOGGLE_FAVORITES_VIEW":case"TREEVIEW_ORM_FAVORITES_ERROR":case"TREEVIEW_ORM_FAVORITES_SAVE":case"TREEVIEW_ORM_FAVORITES_REMOVE":case"TREEVIEW_ORM_REMOVE_FAVORITES_ERROR":case"TREEVIEW_TOGGLE_USER_DEFAULT_LAYERS_VIEW":case"TREEVIEW_ORM_USER_DEFAULT_LAYERS_ERROR":case"TREEVIEW_ORM_USER_DEFAULT_LAYERS_SAVE":case"TREEVIEW_ORM_USER_DEFAULT_LAYERS_REMOVE":case"TREEVIEW_ORM_REMOVE_USER_DEFAULT_LAYERS_ERROR":return Object.assign({},s,m);default:return s}}},doTreeCreateRootNode:()=>({dispatch:n,store:s})=>{n({type:"TREEVIEW_ROOT_CREATED",payload:{rootNodeCreated:!0}}),s.doAddLayer({id:"treeview-root",root:!0,leaf:!1,teamDatasetId:null,collapsed:!1,visible:!1,sortOrder:0,displayName:"Root",type:"Folder"})},doTreeLoadDefaultLayers:()=>({dispatch:n,store:s})=>{n({type:"TREEVIEW_LOADED",payload:{configLayersLoaded:!0}});const d=s.selectWindowLocationParams(),m=d.layers?d.layers.split(",").map(Number):[],v=s.selectDefaultLayers();_.orderBy(v,["parentId","layerOrder"],["desc","asc"]).forEach(C=>{if(C.parentId){const I=s.selectIdMap();C.parentUid=I[C.parentId]}else C.parentUid=s.selectTreeViewRootId();C.teamDatasetId&&m.indexOf(C.teamDatasetId)!==-1&&(C.visible=!0),s.doAddLayer(C)})},doRenderTreeView:()=>({dispatch:n,store:s})=>{s.doPrimaryPanelOpen({openedBy:"LayerTree",children:[TreeviewPanel]})},doOpenLayerDetails:n=>({dispatch:s,store:d})=>{s({type:"TREEVIEW_DETAILS_PICKED",payload:{shouldRenderDetails:!0,selectedItem:n}})},doRenderLayerDetails:()=>({dispatch:n,store:s})=>{n({type:"TREEVIEW_DETAILS_DISPLAYED",payload:{shouldRenderDetails:!1}}),s.doPrimaryPanelOpen({openedBy:"LayerTree",children:[LayerSubpanel]})},doTriggerCounterHide:()=>({dispatch:n})=>{n({type:"TREEVIEW_TRIGGER_HIDE_COUNTER",payload:{hideCounter:!0}})},doTriggerShowSelectAll:()=>({dispatch:n})=>{n({type:"TREEVIEW_TRIGGER_SHOW_SELECT_ALL",payload:{showSelectAll:!0}})},selectTreeRootNode:reduxBundler.createSelector("selectLayers","selectTreeViewRootId","selectAppTime",(n,s,d)=>Object.assign({},n[s])),doTreeViewToggleExpand:()=>({dispatch:n,store:s})=>{const d=s.selectTreeViewToggleExpanded(),m=s.selectTreeViewRootId();s.doTreeSetCollapsedAll(m,!d),n({type:"TREEVIEW_FOLDERS_TOGGLED",payload:{toggleExpanded:!d}})},doTreeViewAddAll:()=>({dispatch:n,store:s})=>{const d=s.selectTreeViewRootId();s.doTreeSetVisibleAll(d,!0)},doTreeViewRemoveAll:()=>({dispatch:n,store:s})=>{const d=s.selectTreeViewRootId();s.doTreeSetVisibleAll(d,!1)},doToggleFavoritesView:()=>({dispatch:n,store:s})=>{const d=s.selectTreeViewToggleFavoritesView();n({type:"TREEVIEW_TOGGLE_FAVORITES_VIEW",payload:{toggleFavorites:!d,toggleUserDefaultLayers:!1}})},doSaveFavoriteLayerToOrm:(n,s)=>({dispatch:d,store:m})=>{const v=JSON.stringify(n);window.CM_FAVORITE_SAVE(encodeURIComponent(v),(S,C)=>{const I=C.split(";"),N=I[0],M=decodeURIComponent(I[1]);S?d({type:"TREEVIEW_ORM_FAVORITES_ERROR",payload:{notification:{title:"Error Saving Layer",message:M,level:"danger"}}}):N==="OK"?(d({type:"TREEVIEW_ORM_FAVORITES_SAVE",payload:{notification:{message:M,level:"success"}}}),m.doUpdateFavoriteLayers("add",s),m.doLayerSetFavorite(s.uid,!0)):d({type:"TREEVIEW_ORM_FAVORITES_ERROR",payload:{notification:{title:"Error Saving Layer",message:M,level:"danger"}}})})},doRemoveFavoriteLayerFromOrm:(n,s)=>({dispatch:d,store:m})=>{const v=JSON.stringify(n);window.CM_FAVORITE_REMOVE(encodeURIComponent(v),(S,C)=>{const I=C.split(";"),N=I[0],M=decodeURIComponent(I[1]);S?d({type:"TREEVIEW_ORM_REMOVE_FAVORITES_ERROR",payload:{notification:{title:"Error Saving Layer",message:M,level:"danger"}}}):N==="OK"?(d({type:"TREEVIEW_ORM_FAVORITES_REMOVE",payload:{notification:{message:M,level:"success"}}}),m.doUpdateFavoriteLayers("remove",s),m.doLayerSetFavorite(s.uid,!1)):d({type:"TREEVIEW_ORM_REMOVE_FAVORITES_ERROR",payload:{notification:{title:"Error Removing Layer from Favorites",message:M,level:"danger"}}})})},doToggleLayerFavoritesAdd:(n,s)=>({dispatch:d,store:m})=>{if(m.selectPrimaryPanelFavoritesDB()==="orm"){const S={id:n.id,parentId:n.parent.id,displayName:n.displayName};s?m.doSaveFavoriteLayerToOrm(S,n):m.doRemoveFavoriteLayerFromOrm(S,n)}},doToggleUserDefaultLayersAdd:(n,s)=>({dispatch:d,store:m})=>{switch(m.selectPrimaryPanelUserDefaultLayersDB()){case"orm":const S={id:n.id,parentId:n.parent.id,displayName:n.displayName};if(s){m.doSaveUserDefaultLayerToOrm(S,n);const C=m.selectLayers(),I=C[n.uid];I&&I.mapLayer&&(I.visible=!0,I.mapLayer.setVisible(!0),d({type:"LAYERS_LIST_UPDATED",payload:Object.assign({},C)}))}else m.doRemoveUserDefaultLayerFromOrm(S,n)}},doToggleUserDefaultLayersView:()=>({dispatch:n,store:s})=>{const d=s.selectTreeViewToggleUserDefaultLayersView();n({type:"TREEVIEW_TOGGLE_USER_DEFAULT_LAYERS_VIEW",payload:{toggleUserDefaultLayers:!d,toggleFavorites:!1}})},doSaveUserDefaultLayerToOrm:(n,s)=>({dispatch:d,store:m})=>{const v=JSON.stringify(n);window.CM_USER_DEFAULT_LAYER_SAVE(encodeURIComponent(v),(S,C)=>{const I=C.split(";"),N=I[0],M=decodeURIComponent(I[1]);S?d({type:"TREEVIEW_ORM_USER_DEFAULT_LAYERS_ERROR",payload:{notification:{title:"Error Saving Layer",message:M,level:"danger"}}}):N==="OK"?(d({type:"TREEVIEW_ORM_USER_DEFAULT_LAYERS_SAVE",payload:{notification:{message:M,level:"success"}}}),m.doUpdateUserDefaultLayers("add",s),m.doLayerSetUserDefaultLayers(s.uid,!0)):d({type:"TREEVIEW_ORM_USER_DEFAULT_LAYERS_ERROR",payload:{notification:{title:"Error Saving Layer",message:M,level:"danger"}}})})},doRemoveUserDefaultLayerFromOrm:(n,s)=>({dispatch:d,store:m})=>{const v=JSON.stringify(n);window.CM_USER_DEFAULT_LAYER_REMOVE(encodeURIComponent(v),(S,C)=>{const I=C.split(";"),N=I[0],M=decodeURIComponent(I[1]);S?d({type:"TREEVIEW_ORM_REMOVE_USER_DEFAULT_LAYERS_ERROR",payload:{notification:{title:"Error Saving Layer",message:M,level:"danger"}}}):N==="OK"?(d({type:"TREEVIEW_ORM_USER_DEFAULT_LAYERS_REMOVE",payload:{notification:{message:M,level:"success"}}}),m.doUpdateUserDefaultLayers("remove",s),m.doLayerSetUserDefaultLayers(s.uid,!1)):d({type:"TREEVIEW_ORM_REMOVE_USER_DEFAULT_LAYERS_ERROR",payload:{notification:{title:"Error Removing Layer from Favorites",message:M,level:"danger"}}})})},selectTreeViewRootId:reduxBundler.createSelector("selectIdMap",n=>n["treeview-root"]),selectTreeViewToggleExpanded:n=>n.treeview.toggleExpanded,selectTreeViewSelectedItem:n=>n.treeview.selectedItem,selectTreeViewControls:n=>n.treeview.controls,selectTreeViewHideCounter:n=>n.treeview.hideCounter,selectTreeViewShowSelectAll:n=>n.treeview.showSelectAll,selectTreeViewToggleFavoritesView:n=>n.treeview.toggleFavorites,selectTreeViewToggleUserDefaultLayersView:n=>n.treeview.toggleUserDefaultLayers,reactCreateRootNode:n=>{if(!n.treeview.rootNodeCreated)return{actionCreator:"doTreeCreateRootNode"}},reactLoadLayersFromConfig:n=>{if(n.treeview.rootNodeCreated&&!n.treeview.configLayersLoaded)return{actionCreator:"doTreeLoadDefaultLayers"}},reactShouldRenderLayerDetails:n=>{if(n.treeview.shouldRenderDetails)return{actionCreator:"doRenderLayerDetails"}}});let req=null;const treeViewDownload={name:"treeviewDownload",getReducer(){const t={enabled:!1,_shouldFormatData:!1,_shouldFormatUrl:!1,activeFormat:"geojson",formats:["geojson","shapefile","FileGDB"],data:null,url:null};return(n=t,{type:s,payload:d})=>{switch(s){case"TREEVIEW_DETAILS_DISPLAYED":return Object.assign({},n,{_shouldFormatUrl:!0});case"TREEVIEW_DOWNLOAD_ENABLED":case"TREEVIEW_DOWNLOAD_FORMAT_UPDATED":case"TREEVIEW_DOWNLOAD_FETCHED_DATA":case"TREEVIEW_DOWNLOAD_FORMAT_INITIATED":case"TREEVIEW_DOWNLOAD_FORMAT_URL_INITIATED":case"TREEVIEW_DOWNLOAD_FORMAT_URL_COMPLETED":return Object.assign({},n,d);default:return n}}},doEnableTreeViewLayerDownload:()=>({dispatch:t})=>{t({type:"TREEVIEW_DOWNLOAD_ENABLED",payload:{enabled:!0}})},doUpdateTreeViewLayerDownloadFormat:t=>({dispatch:n,store:s})=>{t.preventDefault(),t.stopPropagation();const d=s.selectTreeViewSelectedItem(),m=t.target.value;let v=null;if(d.identifyType==="MAP"){const S=`?&service=WFS&version=1.1.0&request=GetFeature&typeName=${d.layerList}&outputformat=${m}&outfile=${d.layerList}`;v=`${d.url}${S}`}n({type:"TREEVIEW_DOWNLOAD_FORMAT_UPDATED",payload:{activeFormat:m,url:v}})},doFetchLayerInfoForTreeView:t=>({dispatch:n,store:s,anonGet:d})=>{req&&req.abort(),req=d(t,(m,v,S)=>{(m||v.statusCode!==200)&&(console.log(m),n({type:"TREEVIEW_DOWNLOAD_FETCHED_DATA",payload:{data:null,notification:{level:"danger",title:"Error Retrieving Data"}}}));try{const C=JSON.parse(S);n({type:"TREEVIEW_DOWNLOAD_FETCHED_DATA",payload:{data:C,_shouldFormatData:!0}})}catch(C){console.log(C),n({type:"TREEVIEW_DOWNLOAD_FETCHED_DATA",payload:{data:null,notification:{level:"danger",title:"Error Retrieving Data"}}})}})},doFormatTreeViewDownloadUrl:()=>({dispatch:t,store:n})=>{t({type:"TREEVIEW_DOWNLOAD_FORMAT_URL_INITIATED",payload:{_shouldFormatUrl:!1}});const s=n.selectTreeViewSelectedItem(),d=n.selectTreeViewDownloadActiveFormat();let m=null;if(s.identifyType==="MAP"){const v=`?&service=WFS&version=1.1.0&request=GetFeature&typeName=${s.layerList}&outputformat=${d}&outfile=${s.layerList}`;m=`${s.url}${v}`}t({type:"TREEVIEW_DOWNLOAD_FORMAT_URL_COMPLETED",payload:{url:m}})},doFormatTreeViewDownloadData:()=>({dispatch:t,store:n})=>{t({type:"TREEVIEW_DOWNLOAD_FORMAT_INITIATED",payload:{_shouldFormatData:!1}}),n.selectTreeViewDownloadActiveFormat(),n.selectTreeViewDownloadLayerData()},selectTreeViewDownloadEnabled:t=>t.treeviewDownload.enabled,selectTreeViewDownloadActiveFormat:t=>t.treeviewDownload.activeFormat,selectTreeViewDownloadFormats:t=>t.treeviewDownload.formats,selectTreeViewDownloadLayerData:t=>t.treeviewDownload.data,selectTreeViewDownloadLayerUrl:t=>t.treeviewDownload.url,reactTreeViewDownloadShouldFormatData:t=>{if(t.treeviewDownload._shouldFormatData)return{actionCreator:"doFormatTreeViewDownloadData"}},reactTreeViewDownloadShouldFormatUrl:t=>{if(t.treeviewDownload._shouldFormatUrl)return{actionCreator:"doFormatTreeViewDownloadUrl"}}},plugin$7=t=>({pluginName:"LayerTree",enabled:!0,bundle:t?[treeView(t),treeViewDownload]:[treeView(["toggleExpand","addAll","removeAll","toggleFilter"]),treeViewDownload],components:[{component:TreeviewButton,region:"left-sidebar-top",sortOrder:20}]}),geoJSON=new GeoJSON,bundle$5={name:"vectorIdent",getReducer(){const t={shouldRegister:!0};return(n=t,{type:s,payload:d})=>s==="VECTOR_IDENT_REGISTERED"?Object.assign({},n,d):n},doVectorIdentRegister:()=>({dispatch:t,store:n})=>{t({type:"VECTOR_IDENT_REGISTERED",payload:{shouldRegister:!1}}),n.doIdentifyAddCollection({onIdentify:n.doVectorIdentFire})},doVectorIdentFire:t=>({dispatch:n,store:s})=>{const d=s.selectVisibleLayers(),m=s.selectIdentifyCoordinates(),v=s.selectResolution();let S={};const C=[];if(typeof m[0]=="number"){const N=point(m),M=v*5/1e3;S=index_default$1(N,M,{units:"kilometers"})}else S=polygon(m);const I=proj.transformExtent(index_default$2(S),"EPSG:4326","EPSG:3857");return d.forEach(N=>{if(N.identifyType==="arcgisvector"){const{mapLayer:M}=N;let k=[];const z=M.getSource();let V=s.selectIdentifyColumnsExclude();z.forEachFeatureIntersectingExtent(I,H=>{const W=geoJSON.writeFeatureObject(H,{featureProjection:"EPSG:3857",dataProjection:"EPSG:4326"});index_default(S,W)||k.push(W)}),k=identifyColumnsArcgisvector(k,V),d[0].identifyFields&&k.forEach(H=>{if(H.properties)for(const[W,J]of Object.entries(H.properties)){let K={};d[0].identifyFields.forEach(re=>{H.properties[re]&&(K[re]=H.properties[re])}),H.properties=K}}),d[0].identifyRenameColums&&k.forEach(H=>{if(H.properties)for(const[W,J]of Object.entries(H.properties))for(const[K,re]of Object.entries(d[0].identifyRenameColums))W===K&&(H.properties[re]=H.properties[W],delete H.properties[W])}),C.push({dataset:N.uid,layerName:N.displayName,err:null,result:{[N.uid]:{type:"FeatureCollection",features:formatArcgisVector(k)}}})}}),t(null,C)},reactVectorIdentShouldRegister:t=>{if(t.vectorIdent.shouldRegister)return{actionCreator:"doVectorIdentRegister"}}},plugin$6={pluginName:"Identify Vector",enabled:!0,bundle:bundle$5,components:[]};var _baseValues,hasRequired_baseValues;function require_baseValues(){if(hasRequired_baseValues)return _baseValues;hasRequired_baseValues=1;var t=require_arrayMap();function n(s,d){return t(d,function(m){return s[m]})}return _baseValues=n,_baseValues}var values_1,hasRequiredValues;function requireValues(){if(hasRequiredValues)return values_1;hasRequiredValues=1;var t=require_baseValues(),n=requireKeys();function s(d){return d==null?[]:t(d,n(d))}return values_1=s,values_1}var valuesExports=requireValues();const values=getDefaultExportFromCjs$1(valuesExports),bundle$4={name:"vectorSearch",getReducer(){const t={shouldRegister:!0,shouldHandleSelect:!1,selectedItem:null};return(n=t,{type:s,payload:d})=>{if(s==="SEARCH_ITEM_SELECTED"&&d.selected.provider&&d.selected.provider==="vectorSearch")return Object.assign({},n,{shouldHandleSelect:!0,selectedItem:d.selected});switch(s){case"VECTOR_SEARCH_REGISTERED":case"VECTOR_SEARCH_HANDLED_SELECT":return Object.assign({},n,d);default:return n}}},doVectorSearchRegister:()=>({dispatch:t,store:n})=>{t({type:"VECTOR_SEARCH_REGISTERED",payload:{shouldRegister:!1}}),n.doSearchAddCollection({onFireSearch:n.doVectorSearchFireSearch})},doVectorSearchHandleSelect:()=>({dispatch:t,store:n})=>{t({type:"VECTOR_SEARCH_HANDLED_SELECT",payload:{shouldHandleSelect:!1}});const s=n.selectVectorSearchLastSelected();s&&n.doZoomToExtent(s.geometry)},doVectorSearchFireSearch:t=>({dispatch:n,store:s,apiGet:d})=>{let m=s.selectSearchQueryString();if(m.length<2)return;const v=new RegExp(m,"ig"),S={},C=s.selectLayers();return Object.keys(C).forEach(I=>{if(C[I].mapLayer&&C[I].mapLayer.getType()==="VECTOR"){const N=C[I].displayName;C[I].mapLayer.getSource().forEachFeature(k=>{const V=values(k.getProperties()).filter(H=>H?v.test(H):!1);V.length&&(S[`${V[0]} (${N})`]=k)})}}),t(null,Object.keys(S).map(I=>{const N=S[I];return{provider:"vectorSearch",displayName:I,iconClass:"mdi mdi-map-marker-radius",geometry:N.getGeometry(),properties:N.getProperties()}}))},selectVectorSearchLastSelected:t=>t.vectorSearch.selectedItem,reactVectorSearchShouldHandleSelect:t=>{if(t.vectorSearch.shouldHandleSelect)return{actionCreator:"doVectorSearchHandleSelect"}},reactVectorSearchShouldRegister:t=>{if(t.vectorSearch.shouldRegister)return{actionCreator:"doVectorSearchRegister"}}},plugin$5={pluginName:"Vector Search",enabled:!0,bundle:bundle$4,components:[]};let ZoomInButton$1=class extends React.Component{constructor(n){super(n),this.handleClick=this.handleClick.bind(this)}handleClick(){const{doZoomIn:n}=this.props;n()}render(){return jsxRuntimeExports.jsx(SidebarButton,{iconClass:"mdi mdi-plus",label:"Zoom In",title:"Zoom In",onClick:this.handleClick})}};const ZoomInButton=connect("doZoomIn",ZoomInButton$1);let ZoomOutButton$1=class extends React.Component{constructor(n){super(n),this.handleClick=this.handleClick.bind(this)}handleClick(){const{doZoomOut:n}=this.props;n()}render(){return jsxRuntimeExports.jsx(SidebarButton,{iconClass:"mdi mdi-minus",label:"Zoom Out",title:"Zoom Out",onClick:this.handleClick})}};const ZoomOutButton=connect("doZoomOut",ZoomOutButton$1),plugin$4={pluginName:"ZoomButtons",enabled:!0,components:[{component:ZoomInButton,region:"right-sidebar-top",sortOrder:30},{component:ZoomOutButton,region:"right-sidebar-top",sortOrder:31}]};let zoomIndicator$1=class extends React.Component{constructor(n){super(n),this.handleClick=this.handleClick.bind(this)}handleClick(){}render(){const{mapZoom:n,zoomLevelIndicator:s}=this.props;return s==!0?jsxRuntimeExports.jsx(SidebarButton,{iconText:Math.floor(n),label:"Zoom-Indicator",title:"Zoom-Indicator",onClick:this.handleClick}):null}};const zoomIndicator=connect("doZoomIndicatorActivate","selectMapZoom","selectZoomLevelIndicator",zoomIndicator$1),bundle$3={name:"zoomLevel",getReducer:()=>{const t={zoomLevelIndicator:!1};return(n=t,{type:s,payload:d})=>{switch(s){case"ACTIVATE_ZOOM_INDICATOR":case"DEACTIVATE_ZOOM_INDICATOR":return Object.assign({},n,d);default:return n}}},doZoomIndicatorActivate:()=>({dispatch:t,store:n})=>{t({type:"ACTIVATE_ZOOM_INDICATOR",payload:{zoomLevelIndicator:!0}})},selectZoomLevelIndicator:t=>t.zoomLevel.zoomLevelIndicator},plugin$3={pluginName:"zoomIndicator",enabled:!0,bundle:bundle$3,components:[{component:zoomIndicator,region:"right-sidebar-top",sortOrder:40}]};let ZoomHomeButton$1=class extends React.Component{constructor(n){super(n),this.clock=null,this.handleClick=this.handleClick.bind(this),this.updateLoc=this.updateLoc.bind(this),this.startClock=this.startClock.bind(this),this.stopClock=this.stopClock.bind(this)}updateLoc(){const{doZoomHomeResetLoc:n,doNotificationsFire:s}=this.props;n(),s({title:"Home Location Set",message:"Home button reset to current location",level:"success"})}handleClick(){const{doZoomHome:n}=this.props;n()}startClock(){this.clock=window.setTimeout(this.updateLoc,1e3)}stopClock(){this.clock&&window.clearTimeout(this.clock)}render(){return jsxRuntimeExports.jsx(SidebarButton,{iconClass:"mdi mdi-home",label:"Zoom to initial extent",title:"Zoom to initial extent",onClick:this.handleClick,onMouseDown:this.startClock,onMouseUp:this.stopClock})}};const ZoomHomeButton=connect("doZoomHome","doZoomHomeResetLoc","doNotificationsFire",ZoomHomeButton$1),bundle$2={name:"zoomHome",getReducer:()=>{const t={centerX:null,centerY:null,centerZ:null};return(n=t,{type:s,payload:d})=>s==="ZOOM_HOME_RESET_LOC"?Object.assign({},n,d):n},selectZoomHomeConfig:t=>({centerX:t.zoomHome.centerX,centerY:t.zoomHome.centerY,centerZ:t.zoomHome.centerZ}),selectZoomHomeLoc:reduxBundler.createSelector("selectDefaultConfig","selectZoomHomeConfig","selectGeoProjection","selectMapProjection",(t,n,s,d)=>{const m=n.centerX||t.map.centerX,v=n.centerY||t.map.centerY,S=n.centerZ||t.map.centerZ;return{center:proj.transform([Number(m),Number(v)],s,d),centerZ:S}}),doZoomHomeResetLoc:()=>({dispatch:t,store:n})=>{const s=n.selectMapProjection(),d=n.selectGeoProjection(),v=n.selectMap().getView(),S=v.getCenter(),C=proj.transform(S,s,d),I=v.getZoom();t({type:"ZOOM_HOME_RESET_LOC",payload:{centerX:C[0],centerY:C[1],centerZ:I}})},doZoomHome:()=>({store:t})=>{const n=t.selectZoomHomeLoc();t.doSetRotationNorth(),t.doZoomToLocation(n.center,n.centerZ)}},plugin$2={pluginName:"ZoomToInitial",enabled:!0,bundle:bundle$2,components:[{component:ZoomHomeButton,region:"left-sidebar-top",sortOrder:10}]};let ZoomToBoxButton$1=class extends React.Component{render(){const{doStartZoomBox:n,doStopZoomBox:s}=this.props;return jsxRuntimeExports.jsx(BasicToolbarButton,{enabled:!0,iconClass:"ms ms-zoom-box",iconStyle:{},title:"Zoom to custom extent",onActivate:n,onDeactivate:s})}};const ZoomToBoxButton=connect("doStartZoomBox","doStopZoomBox",ZoomToBoxButton$1),zoombox=createInteraction({interaction:"dragbox"}),bundle$1={name:"zoombox",getReducer(){const t={geom:null,shouldZoom:!1};return(n=t,{type:s,payload:d})=>s==="ZOOMBOX_BOXENDED"?Object.assign({},n,d):s==="ZOOMBOX_ZOOMSTART"?Object.assign({},n,d):s==="ZOOMBOX_ZOOMEND"?Object.assign({},n,d):n},doStartZoomBox:()=>({dispatch:t,store:n})=>{n.doSetCursor("zoom-in"),n.selectMap().addInteraction(zoombox),zoombox.on("boxend",n.doGetZoomGeom),t({type:"ZOOMBOX_STARTED"})},doGetZoomGeom:()=>({dispatch:t,store:n})=>{t({type:"ZOOMBOX_BOXENDED",payload:{geom:zoombox.getGeometry(),shouldZoom:!0}})},doStopZoomBox:()=>({dispatch:t,store:n})=>{n.doSetCursor(),n.selectMap().removeInteraction(zoombox),zoombox.un("boxend",n.doGetZoomGeom),t({type:"ZOOMBOX_STOPPED"})},doZoomBox:()=>({dispatch:t,store:n})=>{t({type:"ZOOMBOX_ZOOMSTART",payload:{shouldZoom:!1}});const s=n.selectZoomBoxGeom();n.doZoomToExtent(s,.1),t({type:"ZOOMBOX_ZOOMEND",payload:{geom:null}})},selectZoomBoxGeom:t=>t.zoombox.geom,reactShouldZoom:t=>{if(t.zoombox.shouldZoom)return{actionCreator:"doZoomBox"}}},plugin$1={pluginName:"ZoomtoExtent",enabled:!0,bundle:bundle$1,components:[{component:ZoomToBoxButton,region:"basic-toolbar",sortOrder:20}]};let MapLoadingIndicator$1=class extends React.Component{render(){const{mapLoading:n}=this.props;return n?jsxRuntimeExports.jsx("div",{className:"cm-map-loading-container",children:jsxRuntimeExports.jsx("div",{className:"cm-loading-indicator",title:"Map Layers Loading"})}):jsxRuntimeExports.jsx("div",{className:"cm-map-loading-container",children:jsxRuntimeExports.jsx("div",{className:"cm-map-ready",children:jsxRuntimeExports.jsx("i",{className:"mdi mdi-check-bold",style:{color:"#4BB543"},title:"Map Layers Loaded"})})})}};const MapLoadingIndicator=connect("selectMapLoading",MapLoadingIndicator$1),bundle={name:"mapLoading",getReducer(){const t={loading:!1};return(n=t,{type:s,payload:d})=>{switch(s){case"MAP_UPDATED_VIEW_STATE_STARTED":case"MAP_LOADING":return Object.assign({},n,{loading:!0});case"MAP_UPDATED_VIEW_STATE_FINISHED":case"MAP_LOADED":case"LEGEND_LAYERS_UPDATE_ERROR":return Object.assign({},n,{loading:!1});default:return n}}},selectMapLoading:t=>t.mapLoading.loading},plugin={pluginName:"MapLoadingIndicator",enabled:!0,bundle,components:[{component:MapLoadingIndicator,region:"lower-right-toolbar",sortOrder:1}]};exports.BasicToolbarButton=BasicToolbarButton,exports.BasicToolbarMenu=BasicToolbarMenu,exports.BasicToolbarMenuDivider=BasicToolbarMenuDivider,exports.BasicToolbarMenuItem=BasicToolbarMenuItem,exports.BasicToolbarMenuUp=BasicToolbarMenuUp,exports.BasicToolbarSubmenu=BasicToolbarSubmenu,exports.LoadingIndicator=LoadingIndicator$1,exports.Map=Map$1,exports.Provider=Provider,exports.SearchInput=SearchInput,exports.SearchResultsList=SearchResultsList,exports.SearchResultsListItem=SearchResultsListItem,exports.SidebarButton=SidebarButton,exports.SidebarPanelOpenerButton=SidebarPanelOpenerButton,exports.TreeList=TreeList$1,exports.TreeListFolder=TreeListFolder,exports.TreeListItem=TreeListItem$2,exports.TreeView=TreeView,exports.addData=plugin$q,exports.arcgisIdent=plugin$p,exports.basemapSwitcher=plugin$o,exports.bookmarks=plugin$n,exports.changeLog=plugin$m,exports.connect=connect,exports.coordDisplay=plugin$k,exports.draw=plugin$j,exports.esriIdent=plugin$p,exports.geocoder=plugin$i,exports.geojsonIdent=plugin$h,exports.identify=plugin$g,exports.legend=plugin$f,exports.mapLoadingIndicator=plugin,exports.measureTools=plugin$e,exports.permalink=plugin$d,exports.printMap=plugin$c,exports.questionsTab=plugin$b,exports.rasterIdent=plugin$a,exports.resources=plugin$l,exports.rotateNorth=plugin$9,exports.themeSwitcher=plugin$8,exports.treeView=plugin$7,exports.treeViewPanel=TreeviewPanel,exports.vectorIdent=plugin$6,exports.vectorSearch=plugin$5,exports.zoomHome=plugin$2,exports.zoomInOut=plugin$4,exports.zoomLevel=plugin$3,exports.zoomToBox=plugin$1,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})}));