@oiz/stzh-components 2.1.0-beta → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (335) hide show
  1. package/dist/cjs/{_commonjsHelpers-bcc1208a.js → _commonjsHelpers-dcc4cf71.js} +16 -0
  2. package/dist/cjs/{app-globals-07890ee7.js → app-globals-dc82b9ca.js} +1 -1
  3. package/dist/cjs/{js.cookie-9c263d23.js → js.cookie-226c94ed.js} +1 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/stzh-accordion-item.cjs.entry.js +2 -2
  6. package/dist/cjs/stzh-actions.cjs.entry.js +2 -2
  7. package/dist/cjs/stzh-anchornav.cjs.entry.js +2 -2
  8. package/dist/cjs/stzh-appointments.cjs.entry.js +1 -1
  9. package/dist/cjs/stzh-badge_3.cjs.entry.js +2 -1
  10. package/dist/cjs/stzh-chart.cjs.entry.js +26127 -0
  11. package/dist/cjs/stzh-chip.cjs.entry.js +13 -6
  12. package/dist/cjs/stzh-components.cjs.js +2 -2
  13. package/dist/cjs/stzh-contactaddress.cjs.entry.js +65 -0
  14. package/dist/cjs/stzh-datamessagelist.cjs.entry.js +1 -1
  15. package/dist/cjs/stzh-datatable.cjs.entry.js +1 -1
  16. package/dist/cjs/stzh-dropdown.cjs.entry.js +1 -1
  17. package/dist/cjs/stzh-figure.cjs.entry.js +1 -1
  18. package/dist/cjs/stzh-footer.cjs.entry.js +11 -5
  19. package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +3 -3
  20. package/dist/cjs/stzh-heading.cjs.entry.js +2 -2
  21. package/dist/cjs/stzh-icon-sprite.cjs.entry.js +1 -1
  22. package/dist/cjs/stzh-link.cjs.entry.js +2 -1
  23. package/dist/cjs/stzh-message.cjs.entry.js +2 -2
  24. package/dist/cjs/stzh-olmap.cjs.entry.js +1 -1
  25. package/dist/cjs/stzh-pagebottom.cjs.entry.js +2 -2
  26. package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +99 -0
  27. package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +1 -1
  28. package/dist/cjs/stzh-share.cjs.entry.js +5 -5
  29. package/dist/cjs/stzh-upload.cjs.entry.js +7 -9
  30. package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +1 -1
  31. package/dist/collection/assets/icons/mono/facebook-filled.svg +3 -0
  32. package/dist/collection/assets/icons/mono/linkedin-filled.svg +12 -0
  33. package/dist/collection/assets/icons/mono/mail-filled.svg +6 -0
  34. package/dist/collection/assets/icons/mono/star-filled.svg +1 -1
  35. package/dist/collection/assets/icons/mono/twitter-filled.svg +3 -0
  36. package/dist/collection/assets/icons/mono/xing-filled.svg +4 -0
  37. package/dist/collection/assets/media/olmap/marker-active.png +0 -0
  38. package/dist/collection/assets/media/olmap/marker.png +0 -0
  39. package/dist/collection/collection-manifest.json +3 -0
  40. package/dist/collection/components/stzh-accordion/stzh-accordion.css +3 -0
  41. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.css +51 -3
  42. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.js +1 -1
  43. package/dist/collection/components/stzh-actions/stzh-actions.css +7 -1
  44. package/dist/collection/components/stzh-actions/stzh-actions.js +3 -3
  45. package/dist/collection/components/stzh-actionset/stzh-actionset.css +3 -0
  46. package/dist/collection/components/stzh-anchornav/stzh-anchornav.css +5 -0
  47. package/dist/collection/components/stzh-anchornav/stzh-anchornav.js +1 -1
  48. package/dist/collection/components/stzh-appnav/stzh-appnav.css +3 -0
  49. package/dist/collection/components/stzh-appointments/stzh-appointments.css +3 -0
  50. package/dist/collection/components/stzh-appointments/stzh-appointments.js +1 -1
  51. package/dist/collection/components/stzh-audio/stzh-audio.css +3 -0
  52. package/dist/collection/components/stzh-badge/stzh-badge.css +3 -0
  53. package/dist/collection/components/stzh-button/stzh-button.css +3 -0
  54. package/dist/collection/components/stzh-button/stzh-button.js +19 -1
  55. package/dist/collection/components/stzh-calendar/stzh-calendar.css +3 -0
  56. package/dist/collection/components/stzh-card/stzh-card.css +3 -0
  57. package/dist/collection/components/stzh-card-list/stzh-card-list.css +3 -0
  58. package/dist/collection/components/stzh-cell/stzh-cell.css +3 -0
  59. package/dist/collection/components/stzh-chart/stzh-chart.css +799 -0
  60. package/dist/collection/components/stzh-chart/stzh-chart.js +110 -0
  61. package/dist/collection/components/stzh-chart/stzh-chart.stories.js +287 -0
  62. package/dist/collection/components/stzh-checkbox/stzh-checkbox.css +3 -0
  63. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.css +3 -0
  64. package/dist/collection/components/stzh-chip/stzh-chip.css +4 -21
  65. package/dist/collection/components/stzh-chip/stzh-chip.js +49 -24
  66. package/dist/collection/components/stzh-chip/stzh-chip.stories.js +0 -9
  67. package/dist/collection/components/stzh-chip-select/stzh-chip-select.css +3 -0
  68. package/dist/collection/components/stzh-clamp/stzh-clamp.css +3 -0
  69. package/dist/collection/components/stzh-contactaddress/stzh-contactaddress.css +153 -0
  70. package/dist/collection/components/stzh-contactaddress/stzh-contactaddress.js +321 -0
  71. package/dist/collection/components/stzh-contactaddress/stzh-contactaddress.stories.js +100 -0
  72. package/dist/collection/components/stzh-container/stzh-container.css +3 -0
  73. package/dist/collection/components/stzh-cspace/stzh-cspace.css +3 -0
  74. package/dist/collection/components/stzh-datalist/stzh-datalist.css +3 -0
  75. package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.css +13 -2
  76. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.css +3 -0
  77. package/dist/collection/components/stzh-datatable/stzh-datatable.css +3 -0
  78. package/dist/collection/components/stzh-datepicker/stzh-datepicker.css +3 -0
  79. package/dist/collection/components/stzh-dialog/stzh-dialog.css +3 -0
  80. package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +3 -0
  81. package/dist/collection/components/stzh-fieldset/stzh-fieldset.css +3 -0
  82. package/dist/collection/components/stzh-figure/stzh-figure.css +3 -1
  83. package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.css +3 -0
  84. package/dist/collection/components/stzh-footer/stzh-footer.css +53 -0
  85. package/dist/collection/components/stzh-footer/stzh-footer.js +44 -16
  86. package/dist/collection/components/stzh-footer/stzh-footer.stories.js +21 -1
  87. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.css +10 -10
  88. package/dist/collection/components/stzh-header/stzh-header.css +3 -0
  89. package/dist/collection/components/stzh-heading/stzh-heading.css +9 -6
  90. package/dist/collection/components/stzh-heading/stzh-heading.js +1 -1
  91. package/dist/collection/components/stzh-hr/stzh-hr.css +3 -0
  92. package/dist/collection/components/stzh-hspace/stzh-hspace.css +3 -0
  93. package/dist/collection/components/stzh-icon/stzh-icon.css +3 -0
  94. package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/sprite.symbol.html +95 -30
  95. package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -1
  96. package/dist/collection/components/stzh-icon-sprite/stzh-icon-sprite.css +3 -0
  97. package/dist/collection/components/stzh-input/stzh-input.css +3 -0
  98. package/dist/collection/components/stzh-link/stzh-link.css +3 -0
  99. package/dist/collection/components/stzh-link/stzh-link.js +19 -1
  100. package/dist/collection/components/stzh-list/stzh-list.css +3 -0
  101. package/dist/collection/components/stzh-list-item/stzh-list-item.css +3 -0
  102. package/dist/collection/components/stzh-loader/stzh-loader.css +3 -0
  103. package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.css +3 -0
  104. package/dist/collection/components/stzh-menu/stzh-menu.css +3 -0
  105. package/dist/collection/components/stzh-menu-item/stzh-menu-item.css +3 -0
  106. package/dist/collection/components/stzh-message/stzh-message.css +3 -0
  107. package/dist/collection/components/stzh-metanav/stzh-metanav.css +3 -0
  108. package/dist/collection/components/stzh-olmap/stzh-olmap.css +3 -0
  109. package/dist/collection/components/stzh-overlay/stzh-overlay.css +3 -0
  110. package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.css +3 -0
  111. package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.css +7 -4
  112. package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.js +1 -1
  113. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.css +3 -0
  114. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js +5 -1
  115. package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.css +396 -0
  116. package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.js +157 -0
  117. package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.stories.js +94 -0
  118. package/dist/collection/components/stzh-popover/stzh-popover.css +3 -0
  119. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +8 -3
  120. package/dist/collection/components/stzh-progressbar/stzh-progressbar.css +3 -0
  121. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.css +3 -0
  122. package/dist/collection/components/stzh-radio/stzh-radio.css +3 -0
  123. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.css +3 -0
  124. package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.css +3 -0
  125. package/dist/collection/components/stzh-richtext/stzh-richtext.css +3 -0
  126. package/dist/collection/components/stzh-row/stzh-row.css +3 -0
  127. package/dist/collection/components/stzh-saptcha/stzh-saptcha.css +3 -0
  128. package/dist/collection/components/stzh-section/stzh-section.css +3 -0
  129. package/dist/collection/components/stzh-share/stzh-share.css +3 -0
  130. package/dist/collection/components/stzh-share/stzh-share.js +5 -5
  131. package/dist/collection/components/stzh-skiplink/stzh-skiplink.css +3 -0
  132. package/dist/collection/components/stzh-sortable/stzh-sortable.css +3 -0
  133. package/dist/collection/components/stzh-status/stzh-status.css +3 -0
  134. package/dist/collection/components/stzh-sticky/stzh-sticky.css +3 -0
  135. package/dist/collection/components/stzh-sticky/stzh-sticky.stories.js +1 -1
  136. package/dist/collection/components/stzh-table/stzh-table.css +3 -0
  137. package/dist/collection/components/stzh-text/stzh-text.css +3 -0
  138. package/dist/collection/components/stzh-toggle/stzh-toggle.css +3 -0
  139. package/dist/collection/components/stzh-tooltip/stzh-tooltip.css +3 -0
  140. package/dist/collection/components/stzh-upload/stzh-upload.css +24 -15
  141. package/dist/collection/components/stzh-upload/stzh-upload.js +5 -7
  142. package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.css +3 -0
  143. package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.css +3 -0
  144. package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.css +3 -0
  145. package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.css +3 -0
  146. package/dist/collection/components/stzh-vspace/stzh-vspace.css +3 -0
  147. package/dist/components/_commonjsHelpers.js +16 -1
  148. package/dist/components/index.d.ts +3 -0
  149. package/dist/components/index.js +4 -1
  150. package/dist/components/stzh-accordion-item.js +2 -2
  151. package/dist/components/stzh-actions.js +2 -2
  152. package/dist/components/stzh-anchornav.js +2 -2
  153. package/dist/components/stzh-appointments.js +1 -1
  154. package/dist/components/stzh-button2.js +3 -1
  155. package/dist/components/stzh-chart.d.ts +11 -0
  156. package/dist/components/stzh-chart.js +26144 -0
  157. package/dist/components/stzh-chip2.js +16 -8
  158. package/dist/components/stzh-contactaddress.d.ts +11 -0
  159. package/dist/components/stzh-contactaddress.js +93 -0
  160. package/dist/components/stzh-datamessagelist.js +1 -1
  161. package/dist/components/stzh-figure.js +1 -1
  162. package/dist/components/stzh-footer.js +13 -6
  163. package/dist/components/stzh-ghettobox2.js +1 -1
  164. package/dist/components/stzh-heading2.js +2 -2
  165. package/dist/components/stzh-icon-sprite.js +1 -1
  166. package/dist/components/stzh-link2.js +3 -1
  167. package/dist/components/stzh-pagebottom.js +2 -2
  168. package/dist/components/stzh-pagetitle-hero.d.ts +11 -0
  169. package/dist/components/stzh-pagetitle-hero.js +116 -0
  170. package/dist/components/stzh-portal-mitwirken.js +1 -1
  171. package/dist/components/stzh-share2.js +5 -5
  172. package/dist/components/stzh-upload.js +7 -9
  173. package/dist/esm/{_commonjsHelpers-ba3f0406.js → _commonjsHelpers-f9dc4873.js} +16 -1
  174. package/dist/esm/{app-globals-acc57d0e.js → app-globals-246b5e49.js} +1 -1
  175. package/dist/esm/{js.cookie-28a40640.js → js.cookie-53735b72.js} +1 -1
  176. package/dist/esm/loader.js +2 -2
  177. package/dist/esm/stzh-accordion-item.entry.js +2 -2
  178. package/dist/esm/stzh-actions.entry.js +2 -2
  179. package/dist/esm/stzh-anchornav.entry.js +2 -2
  180. package/dist/esm/stzh-appointments.entry.js +1 -1
  181. package/dist/esm/stzh-badge_3.entry.js +2 -1
  182. package/dist/esm/stzh-chart.entry.js +26123 -0
  183. package/dist/esm/stzh-chip.entry.js +14 -7
  184. package/dist/esm/stzh-components.js +2 -2
  185. package/dist/esm/stzh-contactaddress.entry.js +61 -0
  186. package/dist/esm/stzh-datamessagelist.entry.js +1 -1
  187. package/dist/esm/stzh-datatable.entry.js +1 -1
  188. package/dist/esm/stzh-dropdown.entry.js +1 -1
  189. package/dist/esm/stzh-figure.entry.js +1 -1
  190. package/dist/esm/stzh-footer.entry.js +11 -5
  191. package/dist/esm/stzh-ghettobox_2.entry.js +3 -3
  192. package/dist/esm/stzh-heading.entry.js +2 -2
  193. package/dist/esm/stzh-icon-sprite.entry.js +1 -1
  194. package/dist/esm/stzh-link.entry.js +2 -1
  195. package/dist/esm/stzh-message.entry.js +2 -2
  196. package/dist/esm/stzh-olmap.entry.js +1 -1
  197. package/dist/esm/stzh-pagebottom.entry.js +2 -2
  198. package/dist/esm/stzh-pagetitle-hero.entry.js +95 -0
  199. package/dist/esm/stzh-portal-mitwirken.entry.js +1 -1
  200. package/dist/esm/stzh-share.entry.js +5 -5
  201. package/dist/esm/stzh-upload.entry.js +7 -9
  202. package/dist/esm/stzh-vbz-linechip.entry.js +1 -1
  203. package/dist/esm-es5/_commonjsHelpers-f9dc4873.js +1 -0
  204. package/dist/esm-es5/app-globals-246b5e49.js +1 -0
  205. package/dist/esm-es5/{js.cookie-28a40640.js → js.cookie-53735b72.js} +1 -1
  206. package/dist/esm-es5/loader.js +1 -1
  207. package/dist/esm-es5/stzh-accordion-item.entry.js +1 -1
  208. package/dist/esm-es5/stzh-actions.entry.js +1 -1
  209. package/dist/esm-es5/stzh-anchornav.entry.js +1 -1
  210. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  211. package/dist/esm-es5/stzh-chart.entry.js +3 -0
  212. package/dist/esm-es5/stzh-chip.entry.js +1 -1
  213. package/dist/esm-es5/stzh-components.js +1 -1
  214. package/dist/esm-es5/stzh-contactaddress.entry.js +1 -0
  215. package/dist/esm-es5/stzh-datamessagelist.entry.js +1 -1
  216. package/dist/esm-es5/stzh-datatable.entry.js +1 -1
  217. package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
  218. package/dist/esm-es5/stzh-figure.entry.js +1 -1
  219. package/dist/esm-es5/stzh-footer.entry.js +1 -1
  220. package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
  221. package/dist/esm-es5/stzh-heading.entry.js +1 -1
  222. package/dist/esm-es5/stzh-icon-sprite.entry.js +1 -1
  223. package/dist/esm-es5/stzh-link.entry.js +1 -1
  224. package/dist/esm-es5/stzh-message.entry.js +1 -1
  225. package/dist/esm-es5/stzh-olmap.entry.js +1 -1
  226. package/dist/esm-es5/stzh-pagebottom.entry.js +1 -1
  227. package/dist/esm-es5/stzh-pagetitle-hero.entry.js +1 -0
  228. package/dist/esm-es5/stzh-portal-mitwirken.entry.js +1 -1
  229. package/dist/esm-es5/stzh-share.entry.js +1 -1
  230. package/dist/esm-es5/stzh-upload.entry.js +1 -1
  231. package/dist/esm-es5/stzh-vbz-linechip.entry.js +1 -1
  232. package/dist/stzh-components/assets/icons/mono/facebook-filled.svg +3 -0
  233. package/dist/stzh-components/assets/icons/mono/linkedin-filled.svg +12 -0
  234. package/dist/stzh-components/assets/icons/mono/mail-filled.svg +6 -0
  235. package/dist/stzh-components/assets/icons/mono/star-filled.svg +1 -1
  236. package/dist/stzh-components/assets/icons/mono/twitter-filled.svg +3 -0
  237. package/dist/stzh-components/assets/icons/mono/xing-filled.svg +4 -0
  238. package/dist/stzh-components/assets/media/olmap/marker-active.png +0 -0
  239. package/dist/stzh-components/assets/media/olmap/marker.png +0 -0
  240. package/dist/stzh-components/assets/svgsprites/symbol/sprite.symbol.html +95 -30
  241. package/dist/stzh-components/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -1
  242. package/dist/stzh-components/{p-29d9a568.entry.js → p-105a11cb.entry.js} +1 -1
  243. package/dist/stzh-components/p-17ae6581.entry.js +1 -0
  244. package/dist/stzh-components/{p-3e24b964.entry.js → p-229d4ad2.entry.js} +1 -1
  245. package/dist/stzh-components/{p-3f8976bc.system.entry.js → p-22c9a00d.system.entry.js} +1 -1
  246. package/dist/stzh-components/{p-8e363084.system.entry.js → p-238a8c83.system.entry.js} +1 -1
  247. package/dist/stzh-components/{p-b10682ee.js → p-24b8df26.js} +1 -1
  248. package/dist/stzh-components/p-25ef050a.entry.js +1 -0
  249. package/dist/stzh-components/p-293ceb5e.entry.js +1 -0
  250. package/dist/stzh-components/p-2ba8b5c9.system.entry.js +1 -0
  251. package/dist/stzh-components/{p-e7afcd6f.entry.js → p-38b9e5e9.entry.js} +1 -1
  252. package/dist/stzh-components/{p-07fc857b.system.entry.js → p-44dd74d1.system.entry.js} +1 -1
  253. package/dist/stzh-components/{p-5db542ae.system.js → p-484a366f.system.js} +1 -1
  254. package/dist/stzh-components/{p-a61bf274.entry.js → p-4a3f9353.entry.js} +1 -1
  255. package/dist/stzh-components/{p-d69b12f8.entry.js → p-4e6ddb5f.entry.js} +1 -1
  256. package/dist/stzh-components/p-4fd4a703.entry.js +3 -0
  257. package/dist/stzh-components/p-5caa837c.system.entry.js +3 -0
  258. package/dist/stzh-components/{p-3b33fa76.system.entry.js → p-5ed4d1d5.system.entry.js} +1 -1
  259. package/dist/stzh-components/p-60d8e2da.entry.js +1 -0
  260. package/dist/stzh-components/p-61c9ca5d.entry.js +1 -0
  261. package/dist/stzh-components/p-61d4852f.system.entry.js +1 -0
  262. package/dist/stzh-components/p-6830f839.entry.js +1 -0
  263. package/dist/stzh-components/p-6d22bd0d.entry.js +1 -0
  264. package/dist/stzh-components/{p-d2c97cbc.entry.js → p-71220066.entry.js} +1 -1
  265. package/dist/stzh-components/p-71d757d3.js +1 -0
  266. package/dist/stzh-components/p-7a584d3f.system.entry.js +1 -0
  267. package/dist/stzh-components/p-7aef399f.entry.js +1 -0
  268. package/dist/stzh-components/{p-c5749124.system.entry.js → p-7c172e64.system.entry.js} +1 -1
  269. package/dist/stzh-components/p-7dec02ca.entry.js +1 -0
  270. package/dist/stzh-components/p-84aace40.system.entry.js +1 -0
  271. package/dist/stzh-components/p-8ab86ca3.system.entry.js +1 -0
  272. package/dist/stzh-components/p-8f9de52f.system.entry.js +1 -0
  273. package/dist/stzh-components/p-909d7a3c.system.js +1 -0
  274. package/dist/stzh-components/p-95defe16.system.entry.js +1 -0
  275. package/dist/stzh-components/p-98a972b7.system.entry.js +1 -0
  276. package/dist/stzh-components/p-9c90535a.system.js +1 -0
  277. package/dist/stzh-components/p-a6d4a8b1.js +1 -0
  278. package/dist/stzh-components/p-a866b3a3.entry.js +1 -0
  279. package/dist/stzh-components/p-ac409e7b.system.entry.js +1 -0
  280. package/dist/stzh-components/p-ad119aca.entry.js +1 -0
  281. package/dist/stzh-components/{p-6c3d7756.system.entry.js → p-b1ff3a21.system.entry.js} +1 -1
  282. package/dist/stzh-components/p-bc34bf07.system.entry.js +1 -0
  283. package/dist/stzh-components/{p-1663fc49.system.entry.js → p-bd5b8114.system.entry.js} +1 -1
  284. package/dist/stzh-components/p-c2238fbf.entry.js +1 -0
  285. package/dist/stzh-components/p-c3846ccf.system.entry.js +1 -0
  286. package/dist/stzh-components/p-ce06b4f2.system.js +1 -0
  287. package/dist/stzh-components/p-cf781b59.entry.js +1 -0
  288. package/dist/stzh-components/{p-b367d4e3.entry.js → p-d4b93488.entry.js} +1 -1
  289. package/dist/stzh-components/p-d5ee4ac0.entry.js +1 -0
  290. package/dist/stzh-components/{p-fd811f6b.system.entry.js → p-daa34275.system.entry.js} +2 -2
  291. package/dist/stzh-components/p-e161760f.system.entry.js +1 -0
  292. package/dist/stzh-components/p-e785d9cc.entry.js +1 -0
  293. package/dist/stzh-components/{p-fb150554.system.entry.js → p-f5f3475c.system.entry.js} +1 -1
  294. package/dist/stzh-components/p-f6ab391e.system.entry.js +1 -0
  295. package/dist/stzh-components/{p-74786856.system.entry.js → p-ff2a6bdf.system.entry.js} +1 -1
  296. package/dist/stzh-components/p-ff534e27.entry.js +1 -0
  297. package/dist/stzh-components/stzh-components.css +1 -1
  298. package/dist/stzh-components/stzh-components.esm.js +1 -1
  299. package/dist/stzh-components/stzh-components.js +1 -1
  300. package/dist/types/components.d.ts +242 -11
  301. package/dist/types/index.d.ts +5 -0
  302. package/dist/vscode-data.json +141 -11
  303. package/package.json +6 -2
  304. package/dist/esm-es5/_commonjsHelpers-ba3f0406.js +0 -1
  305. package/dist/esm-es5/app-globals-acc57d0e.js +0 -1
  306. package/dist/stzh-components/p-011dcf30.system.entry.js +0 -1
  307. package/dist/stzh-components/p-0977d9b6.entry.js +0 -1
  308. package/dist/stzh-components/p-10c36281.entry.js +0 -1
  309. package/dist/stzh-components/p-23e9b6c7.system.entry.js +0 -1
  310. package/dist/stzh-components/p-241f060e.entry.js +0 -1
  311. package/dist/stzh-components/p-2c8d491a.system.entry.js +0 -1
  312. package/dist/stzh-components/p-3a73b8b5.system.js +0 -1
  313. package/dist/stzh-components/p-3e8ff66b.js +0 -1
  314. package/dist/stzh-components/p-4b93fb24.entry.js +0 -1
  315. package/dist/stzh-components/p-4c93ffbe.entry.js +0 -1
  316. package/dist/stzh-components/p-5623c1a3.entry.js +0 -1
  317. package/dist/stzh-components/p-58714045.entry.js +0 -1
  318. package/dist/stzh-components/p-59970f71.entry.js +0 -1
  319. package/dist/stzh-components/p-62c7caed.entry.js +0 -1
  320. package/dist/stzh-components/p-79f27d21.entry.js +0 -1
  321. package/dist/stzh-components/p-8e5f4ef6.system.entry.js +0 -1
  322. package/dist/stzh-components/p-9084f0c1.entry.js +0 -1
  323. package/dist/stzh-components/p-948acea1.js +0 -1
  324. package/dist/stzh-components/p-9af41730.system.js +0 -1
  325. package/dist/stzh-components/p-9ca1efe4.system.entry.js +0 -1
  326. package/dist/stzh-components/p-a6da8c06.system.entry.js +0 -1
  327. package/dist/stzh-components/p-afaa9c37.system.entry.js +0 -1
  328. package/dist/stzh-components/p-b71a1607.system.js +0 -1
  329. package/dist/stzh-components/p-bb9e8364.entry.js +0 -1
  330. package/dist/stzh-components/p-bd7dd853.system.entry.js +0 -1
  331. package/dist/stzh-components/p-be534671.entry.js +0 -1
  332. package/dist/stzh-components/p-da857e0d.entry.js +0 -1
  333. package/dist/stzh-components/p-de8f9508.system.entry.js +0 -1
  334. package/dist/stzh-components/p-fa6427bf.system.entry.js +0 -1
  335. package/dist/stzh-components/p-fa9a4cd5.system.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as t,c as i,h as s,a as h,g as n}from"./p-7a4c6adb.js";import{f as r}from"./p-25a09313.js";import{c as e,a as o}from"./p-3e8ff66b.js";var a=484813681109536e-20,u=Math.PI/2,f=.017453292519943295,c=57.29577951308232,l=Math.PI/4,v=2*Math.PI,d=3.14159265359,M={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667};const m={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}};var p=/[\s_\-\/\(\)]/g;function g(t,i){if(t[i])return t[i];for(var s,h=Object.keys(t),n=i.toLowerCase().replace(p,""),r=-1;++r<h.length;)if((s=h[r]).toLowerCase().replace(p,"")===n)return t[s]}function _(t){var i,s,h,n={},r=t.split("+").map((function(t){return t.trim()})).filter((function(t){return t})).reduce((function(t,i){var s=i.split("=");return s.push(!0),t[s[0].toLowerCase()]=s[1],t}),{}),e={proj:"projName",datum:"datumCode",rf:function(t){n.rf=parseFloat(t)},lat_0:function(t){n.lat0=t*f},lat_1:function(t){n.lat1=t*f},lat_2:function(t){n.lat2=t*f},lat_ts:function(t){n.lat_ts=t*f},lon_0:function(t){n.long0=t*f},lon_1:function(t){n.long1=t*f},lon_2:function(t){n.long2=t*f},alpha:function(t){n.alpha=parseFloat(t)*f},lonc:function(t){n.longc=t*f},x_0:function(t){n.x0=parseFloat(t)},y_0:function(t){n.y0=parseFloat(t)},k_0:function(t){n.k0=parseFloat(t)},k:function(t){n.k0=parseFloat(t)},a:function(t){n.a=parseFloat(t)},b:function(t){n.b=parseFloat(t)},r_a:function(){n.R_A=!0},zone:function(t){n.zone=parseInt(t,10)},south:function(){n.utmSouth=!0},towgs84:function(t){n.datum_params=t.split(",").map((function(t){return parseFloat(t)}))},to_meter:function(t){n.to_meter=parseFloat(t)},units:function(t){n.units=t;var i=g(m,t);i&&(n.to_meter=i.to_meter)},from_greenwich:function(t){n.from_greenwich=t*f},pm:function(t){var i=g(M,t);n.from_greenwich=(i||parseFloat(t))*f},nadgrids:function(t){"@null"===t?n.datumCode="none":n.nadgrids=t},axis:function(t){var i="ewnsud";3===t.length&&-1!==i.indexOf(t.substr(0,1))&&-1!==i.indexOf(t.substr(1,1))&&-1!==i.indexOf(t.substr(2,1))&&(n.axis=t)}};for(i in r)s=r[i],i in e?"function"==typeof(h=e[i])?h(s):n[h]=s:n[i]=s;return"string"==typeof n.datumCode&&"WGS84"!==n.datumCode&&(n.datumCode=n.datumCode.toLowerCase()),n}var w=/\s/,y=/[A-Za-z]/,b=/[A-Za-z84_]/,x=/[,\]]/,E=/[\d\.E\-\+]/;function S(t){if("string"!=typeof t)throw new Error("not a string");this.text=t.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=1}function C(t,i,s){Array.isArray(i)&&(s.unshift(i),i=null);var h=s.reduce((function(t,i){return A(i,t),t}),i?{}:t);i&&(t[i]=h)}function A(t,i){if(Array.isArray(t)){var s=t.shift();if("PARAMETER"===s&&(s=t.shift()),1===t.length)return Array.isArray(t[0])?(i[s]={},void A(t[0],i[s])):void(i[s]=t[0]);if(t.length)if("TOWGS84"!==s){if("AXIS"===s)return s in i||(i[s]=[]),void i[s].push(t);var h;switch(Array.isArray(s)||(i[s]={}),s){case"UNIT":case"PRIMEM":case"VERT_DATUM":return i[s]={name:t[0].toLowerCase(),convert:t[1]},void(3===t.length&&A(t[2],i[s]));case"SPHEROID":case"ELLIPSOID":return i[s]={name:t[0],a:t[1],rf:t[2]},void(4===t.length&&A(t[3],i[s]));case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"EDATUM":case"ENGINEERINGDATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":case"COMPD_CS":case"COMPOUNDCRS":case"ENGINEERINGCRS":case"ENGCRS":case"FITTED_CS":case"LOCAL_DATUM":case"DATUM":return t[0]=["name",t[0]],void C(i,s,t);default:for(h=-1;++h<t.length;)if(!Array.isArray(t[h]))return A(t,i[s]);return C(i,s,t)}}else i[s]=t;else i[s]=!0}else i[t]=!0}function P(t){return.017453292519943295*t}function R(t){var i=new S(t).output(),s=i.shift(),h=i.shift();i.unshift(["name",h]),i.unshift(["type",s]);var n={};return A(i,n),function(t){if("GEOGCS"===t.type?t.projName="longlat":"LOCAL_CS"===t.type?(t.projName="identity",t.local=!0):t.projName="object"==typeof t.PROJECTION?Object.keys(t.PROJECTION)[0]:t.PROJECTION,t.AXIS){for(var i="",s=0,h=t.AXIS.length;s<h;++s){var n=[t.AXIS[s][0].toLowerCase(),t.AXIS[s][1].toLowerCase()];-1!==n[0].indexOf("north")||("y"===n[0]||"lat"===n[0])&&"north"===n[1]?i+="n":-1!==n[0].indexOf("south")||("y"===n[0]||"lat"===n[0])&&"south"===n[1]?i+="s":-1!==n[0].indexOf("east")||("x"===n[0]||"lon"===n[0])&&"east"===n[1]?i+="e":-1===n[0].indexOf("west")&&("x"!==n[0]&&"lon"!==n[0]||"west"!==n[1])||(i+="w")}2===i.length&&(i+="u"),3===i.length&&(t.axis=i)}t.UNIT&&(t.units=t.UNIT.name.toLowerCase(),"metre"===t.units&&(t.units="meter"),t.UNIT.convert&&("GEOGCS"===t.type?t.DATUM&&t.DATUM.SPHEROID&&(t.to_meter=t.UNIT.convert*t.DATUM.SPHEROID.a):t.to_meter=t.UNIT.convert));var r=t.GEOGCS;function e(i){return i*(t.to_meter||1)}"GEOGCS"===t.type&&(r=t),r&&(t.datumCode=r.DATUM?r.DATUM.name.toLowerCase():r.name.toLowerCase(),"d_"===t.datumCode.slice(0,2)&&(t.datumCode=t.datumCode.slice(2)),"new_zealand_geodetic_datum_1949"!==t.datumCode&&"new_zealand_1949"!==t.datumCode||(t.datumCode="nzgd49"),"wgs_1984"!==t.datumCode&&"world_geodetic_system_1984"!==t.datumCode||("Mercator_Auxiliary_Sphere"===t.PROJECTION&&(t.sphere=!0),t.datumCode="wgs84"),"_ferro"===t.datumCode.slice(-6)&&(t.datumCode=t.datumCode.slice(0,-6)),"_jakarta"===t.datumCode.slice(-8)&&(t.datumCode=t.datumCode.slice(0,-8)),~t.datumCode.indexOf("belge")&&(t.datumCode="rnb72"),r.DATUM&&r.DATUM.SPHEROID&&(t.ellps=r.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===t.ellps.toLowerCase().slice(0,13)&&(t.ellps="intl"),t.a=r.DATUM.SPHEROID.a,t.rf=parseFloat(r.DATUM.SPHEROID.rf,10)),r.DATUM&&r.DATUM.TOWGS84&&(t.datum_params=r.DATUM.TOWGS84),~t.datumCode.indexOf("osgb_1936")&&(t.datumCode="osgb36"),~t.datumCode.indexOf("osni_1952")&&(t.datumCode="osni52"),(~t.datumCode.indexOf("tm65")||~t.datumCode.indexOf("geodetic_datum_of_1965"))&&(t.datumCode="ire65"),"ch1903+"===t.datumCode&&(t.datumCode="ch1903"),~t.datumCode.indexOf("israel")&&(t.datumCode="isr93")),t.b&&!isFinite(t.b)&&(t.b=t.a),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",P],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",P],["x0","false_easting",e],["y0","false_northing",e],["long0","central_meridian",P],["lat0","latitude_of_origin",P],["lat0","standard_parallel_1",P],["lat1","standard_parallel_1",P],["lat2","standard_parallel_2",P],["azimuth","Azimuth"],["alpha","azimuth",P],["srsCode","name"]].forEach((function(i){return r=(h=i)[1],void(!((n=h[0])in(s=t))&&r in s&&(s[n]=s[r],3===h.length&&(s[n]=h[2](s[n]))));var s,h,n,r})),t.long0||!t.longc||"Albers_Conic_Equal_Area"!==t.projName&&"Lambert_Azimuthal_Equal_Area"!==t.projName||(t.long0=t.longc),t.lat_ts||!t.lat1||"Stereographic_South_Pole"!==t.projName&&"Polar Stereographic (variant B)"!==t.projName||(t.lat0=P(t.lat1>0?90:-90),t.lat_ts=t.lat1)}(n),n}function N(t){var i=this;if(2===arguments.length){var s=arguments[1];N[t]="string"==typeof s?"+"===s.charAt(0)?_(arguments[1]):R(arguments[1]):s}else if(1===arguments.length){if(Array.isArray(t))return t.map((function(t){Array.isArray(t)?N.apply(i,t):N(t)}));if("string"==typeof t){if(t in N)return N[t]}else"EPSG"in t?N["EPSG:"+t.EPSG]=t:"ESRI"in t?N["ESRI:"+t.ESRI]=t:"IAU2000"in t?N["IAU2000:"+t.IAU2000]=t:console.log(t);return}}S.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;w.test(t);){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case 1:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},S.prototype.afterquote=function(t){if('"'===t)return this.word+='"',void(this.state=4);if(x.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},S.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=1)):"]"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},S.prototype.number=function(t){if(!E.test(t)){if(x.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in number yet, index '+this.place)}this.word+=t},S.prototype.quoted=function(t){'"'!==t?this.word+=t:this.state=5},S.prototype.keyword=function(t){if(b.test(t))this.word+=t;else{if("["===t){var i=[];return i.push(this.word),this.level++,null===this.root?this.root=i:this.currentObject.push(i),this.stack.push(this.currentObject),this.currentObject=i,void(this.state=1)}if(!x.test(t))throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place);this.afterItem(t)}},S.prototype.neutral=function(t){if(y.test(t))return this.word=t,void(this.state=2);if('"'===t)return this.word="",void(this.state=4);if(E.test(t))return this.word=t,void(this.state=3);if(!x.test(t))throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place);this.afterItem(t)},S.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)},function(t){t("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),t("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),t("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),t.WGS84=t["EPSG:4326"],t["EPSG:3785"]=t["EPSG:3857"],t.GOOGLE=t["EPSG:3857"],t["EPSG:900913"]=t["EPSG:3857"],t["EPSG:102113"]=t["EPSG:3857"]}(N);var z=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function k(t,i){var s,h;if(t=t||{},!i)return t;for(h in i)void 0!==(s=i[h])&&(t[h]=s);return t}function T(t,i,s){var h=t*i;return s/Math.sqrt(1-h*h)}function O(t){return t<0?-1:1}function L(t){return Math.abs(t)<=d?t:t-O(t)*v}function I(t,i,s){var h=t*s;return h=Math.pow((1-h)/(1+h),.5*t),Math.tan(.5*(u-i))/h}function F(t,i){for(var s,h,n=.5*t,r=u-2*Math.atan(i),e=0;e<=15;e++)if(s=t*Math.sin(r),r+=h=u-2*Math.atan(i*Math.pow((1-s)/(1+s),n))-r,Math.abs(h)<=1e-10)return r;return-9999}function D(t){return t}var G=[{init:function(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.k0=this.sphere?Math.cos(this.lat_ts):T(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k0=this.k?this.k:1)},forward:function(t){var i,s,h=t.x,n=t.y;if(n*c>90&&n*c<-90&&h*c>180&&h*c<-180)return null;if(Math.abs(Math.abs(n)-u)<=1e-10)return null;if(this.sphere)i=this.x0+this.a*this.k0*L(h-this.long0),s=this.y0+this.a*this.k0*Math.log(Math.tan(l+.5*n));else{var r=Math.sin(n),e=I(this.e,n,r);i=this.x0+this.a*this.k0*L(h-this.long0),s=this.y0-this.a*this.k0*Math.log(e)}return t.x=i,t.y=s,t},inverse:function(t){var i,s,h=t.x-this.x0,n=t.y-this.y0;if(this.sphere)s=u-2*Math.atan(Math.exp(-n/(this.a*this.k0)));else{var r=Math.exp(-n/(this.a*this.k0));if(-9999===(s=F(this.e,r)))return null}return i=L(this.long0+h/(this.a*this.k0)),t.x=i,t.y=s,t},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{init:function(){},forward:D,inverse:D,names:["longlat","identity"]}],W={},V=[];function j(t,i){var s=V.length;return t.names?(V[s]=t,t.names.forEach((function(t){W[t.toLowerCase()]=s})),this):(console.log(i),!0)}const U={start:function(){G.forEach(j)},add:j,get:function(t){if(!t)return!1;var i=t.toLowerCase();return void 0!==W[i]&&V[W[i]]?V[W[i]]:void 0}};var X={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},q=X.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};X.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var Y={};function B(t,i){if(!(this instanceof B))return new B(t);i=i||function(t){if(t)throw t};var s,h=function(t){return"string"==typeof t}(s=t)?function(t){return t in N}(s)?N[s]:function(t){return z.some((function(i){return t.indexOf(i)>-1}))}(s)?R(s):function(t){return"+"===t[0]}(s)?_(s):void 0:s;if("object"==typeof h){var n=B.projections.get(h.projName);if(n){if(h.datumCode&&"none"!==h.datumCode){var r=g(Y,h.datumCode);r&&(h.datum_params=r.towgs84?r.towgs84.split(","):null,h.ellps=r.ellipse,h.datumName=r.datumName?r.datumName:h.datumCode)}h.k0=h.k0||1,h.axis=h.axis||"enu",h.ellps=h.ellps||"wgs84";var e,o,u,f,c,l,v=function(t,i,s,h,n){if(!t){var r=g(X,h);r||(r=q),t=r.a,i=r.b,s=r.rf}return s&&!i&&(i=(1-1/s)*t),(0===s||Math.abs(t-i)<1e-10)&&(n=!0,i=t),{a:t,b:i,rf:s,sphere:n}}(h.a,h.b,h.rf,h.ellps,h.sphere),d=(c=((u=(e=v.a)*e)-(f=(o=v.b)*o))/u,l=0,h.R_A?(u=(e*=1-c*(.16666666666666666+c*(.04722222222222222+.022156084656084655*c)))*e,c=0):l=Math.sqrt(c),{es:c,e:l,ep2:(u-f)/f}),M=h.datum||function(t,i,s,h,n,r){var e={};return e.datum_type=void 0===t||"none"===t?5:4,i&&(e.datum_params=i.map(parseFloat),0===e.datum_params[0]&&0===e.datum_params[1]&&0===e.datum_params[2]||(e.datum_type=1),e.datum_params.length>3&&(0===e.datum_params[3]&&0===e.datum_params[4]&&0===e.datum_params[5]&&0===e.datum_params[6]||(e.datum_type=2,e.datum_params[3]*=a,e.datum_params[4]*=a,e.datum_params[5]*=a,e.datum_params[6]=e.datum_params[6]/1e6+1))),e.a=s,e.b=h,e.es=n,e.ep2=r,e}(h.datumCode,h.datum_params,v.a,v.b,d.es,d.ep2);k(this,h),k(this,n),this.a=v.a,this.b=v.b,this.rf=v.rf,this.sphere=v.sphere,this.es=d.es,this.e=d.e,this.ep2=d.ep2,this.datum=M,this.init(),i(null,this)}else i(t)}else i(t)}function H(t){return 1===t||2===t}function J(t,i,s){var h,n,r,e=s.x,o=s.y,a=s.z||0,u={};for(r=0;r<3;r++)if(!i||2!==r||void 0!==s.z)switch(0===r?(h=e,n="x"):1===r?(h=o,n="y"):(h=a,n="z"),t.axis[r]){case"e":u[n]=h;break;case"w":u[n]=-h;break;case"n":u[n]=h;break;case"s":u[n]=-h;break;case"u":void 0!==s[n]&&(u.z=h);break;case"d":void 0!==s[n]&&(u.z=-h);break;default:return null}return u}function Z(t){var i={x:t[0],y:t[1]};return t.length>2&&(i.z=t[2]),t.length>3&&(i.m=t[3]),i}function K(t){if("function"==typeof Number.isFinite){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof t||t!=t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}function Q(t,i,s){var h;return Array.isArray(s)&&(s=Z(s)),function(t){K(t.x),K(t.y)}(s),t.datum&&i.datum&&function(t,i){return(1===t.datum.datum_type||2===t.datum.datum_type)&&"WGS84"!==i.datumCode||(1===i.datum.datum_type||2===i.datum.datum_type)&&"WGS84"!==t.datumCode}(t,i)&&(s=Q(t,h=new B("WGS84"),s),t=h),"enu"!==t.axis&&(s=J(t,!1,s)),"longlat"===t.projName?s={x:s.x*f,y:s.y*f}:(t.to_meter&&(s={x:s.x*t.to_meter,y:s.y*t.to_meter}),s=t.inverse(s)),t.from_greenwich&&(s.x+=t.from_greenwich),s=function(t,i,s){return function(t,i){return t.datum_type===i.datum_type&&!(t.a!==i.a||Math.abs(t.es-i.es)>5e-11)&&(1===t.datum_type?t.datum_params[0]===i.datum_params[0]&&t.datum_params[1]===i.datum_params[1]&&t.datum_params[2]===i.datum_params[2]:2!==t.datum_type||t.datum_params[0]===i.datum_params[0]&&t.datum_params[1]===i.datum_params[1]&&t.datum_params[2]===i.datum_params[2]&&t.datum_params[3]===i.datum_params[3]&&t.datum_params[4]===i.datum_params[4]&&t.datum_params[5]===i.datum_params[5]&&t.datum_params[6]===i.datum_params[6])}(t,i)||5===t.datum_type||5===i.datum_type?s:t.es!==i.es||t.a!==i.a||H(t.datum_type)||H(i.datum_type)?(s=function(t,i,s){var h,n,r,e=t.x,o=t.y,a=t.z?t.z:0;if(o<-u&&o>-1.001*u)o=-u;else if(o>u&&o<1.001*u)o=u;else if(o<-u||o>u)return null;return e>Math.PI&&(e-=2*Math.PI),n=Math.sin(o),r=Math.cos(o),{x:((h=s/Math.sqrt(1-i*(n*n)))+a)*r*Math.cos(e),y:(h+a)*r*Math.sin(e),z:(h*(1-i)+a)*n}}(s,t.es,t.a),H(t.datum_type)&&(s=function(t,i,s){if(1===i)return{x:t.x+s[0],y:t.y+s[1],z:t.z+s[2]};if(2===i){var h=s[3],n=s[4],r=s[5],e=s[6];return{x:e*(t.x-r*t.y+n*t.z)+s[0],y:e*(r*t.x+t.y-h*t.z)+s[1],z:e*(-n*t.x+h*t.y+t.z)+s[2]}}}(s,t.datum_type,t.datum_params)),H(i.datum_type)&&(s=function(t,i,s){if(1===i)return{x:t.x-s[0],y:t.y-s[1],z:t.z-s[2]};if(2===i){var h=s[3],n=s[4],r=s[5],e=s[6],o=(t.x-s[0])/e,a=(t.y-s[1])/e,u=(t.z-s[2])/e;return{x:o+r*a-n*u,y:-r*o+a+h*u,z:n*o-h*a+u}}}(s,i.datum_type,i.datum_params)),function(t,i,s,h){var n,r,e,o,a,u,f,c,l,v,d,M,m,p,g,_=t.x,w=t.y,y=t.z?t.z:0;if(n=Math.sqrt(_*_+w*w),r=Math.sqrt(_*_+w*w+y*y),n/s<1e-12){if(p=0,r/s<1e-12)return g=-h,{x:t.x,y:t.y,z:t.z}}else p=Math.atan2(w,_);e=y/r,c=(o=n/r)*(1-i)*(a=1/Math.sqrt(1-i*(2-i)*o*o)),l=e*a,m=0;do{m++,u=i*(f=s/Math.sqrt(1-i*l*l))/(f+(g=n*c+y*l-f*(1-i*l*l))),M=(d=e*(a=1/Math.sqrt(1-u*(2-u)*o*o)))*c-(v=o*(1-u)*a)*l,c=v,l=d}while(M*M>1e-24&&m<30);return{x:p,y:Math.atan(d/Math.abs(v)),z:g}}(s,i.es,i.a,i.b)):s}(t.datum,i.datum,s),i.from_greenwich&&(s={x:s.x-i.from_greenwich,y:s.y}),"longlat"===i.projName?s={x:s.x*c,y:s.y*c}:(s=i.forward(s),i.to_meter&&(s={x:s.x/i.to_meter,y:s.y/i.to_meter})),"enu"!==i.axis?J(i,!0,s):s}Y.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},Y.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},Y.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},Y.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},Y.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},Y.potsdam={towgs84:"606.0,23.0,413.0",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},Y.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},Y.hermannskogel={towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"},Y.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},Y.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},Y.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},Y.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},Y.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},Y.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},Y.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},Y.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},Y.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"},(B.projections=U).start();var $=B("WGS84");function tt(t,i,s){var h,n,r;return Array.isArray(s)?(h=Q(t,i,s),3===s.length?[h.x,h.y,h.z]:[h.x,h.y]):(n=Q(t,i,s),2===(r=Object.keys(s)).length||r.forEach((function(t){"x"!==t&&"y"!==t&&(n[t]=s[t])})),n)}function it(t){return t instanceof B?t:t.oProj?t.oProj:B(t)}function st(t,i,s){t=it(t);var h,n=!1;return void 0===i?(i=t,t=$,n=!0):(void 0!==i.x||Array.isArray(i))&&(s=i,i=t,t=$,n=!0),i=it(i),s?tt(t,i,s):(h={forward:function(s){return tt(t,i,s)},inverse:function(s){return tt(i,t,s)}},n&&(h.oProj=i),h)}var ht=65,nt=73,rt=79;const et={forward:ot,inverse:function(t){var i=ct(vt(t.toUpperCase()));return i.lat&&i.lon?[i.lon,i.lat,i.lon,i.lat]:[i.left,i.bottom,i.right,i.top]},toPoint:at};function ot(t,i){return i=i||5,function(t,i){var s,h,n,r,e,o,a,u,f,c,l,v="00000"+t.easting,d="00000"+t.northing;return t.zoneNumber+t.zoneLetter+(f=t.easting,c=t.northing,l=lt(t.zoneNumber),s=Math.floor(f/1e5),h=Math.floor(c/1e5)%20,r="AJSAJS".charCodeAt(n=l-1),e="AFAFAF".charCodeAt(n),u=!1,(o=r+s-1)>90&&(o=o-90+ht-1,u=!0),(o===nt||r<nt&&o>nt||(o>nt||r<nt)&&u)&&o++,(o===rt||r<rt&&o>rt||(o>rt||r<rt)&&u)&&++o===nt&&o++,o>90&&(o=o-90+ht-1),(a=e+h)>86?(a=a-86+ht-1,u=!0):u=!1,(a===nt||e<nt&&a>nt||(a>nt||e<nt)&&u)&&a++,(a===rt||e<rt&&a>rt||(a>rt||e<rt)&&u)&&++a===nt&&a++,a>86&&(a=a-86+ht-1),String.fromCharCode(o)+String.fromCharCode(a))+v.substr(v.length-5,i)+d.substr(d.length-5,i)}(function(t){var i,s,h,n,r,e,o,a=t.lat,u=t.lon,f=6378137,c=.00669438,l=.9996,v=ut(a),d=ut(u);o=Math.floor((u+180)/6)+1,180===u&&(o=60),a>=56&&a<64&&u>=3&&u<12&&(o=32),a>=72&&a<84&&(u>=0&&u<9?o=31:u>=9&&u<21?o=33:u>=21&&u<33?o=35:u>=33&&u<42&&(o=37)),e=ut(6*(o-1)-180+3),i=.006739496752268451,s=f/Math.sqrt(1-c*Math.sin(v)*Math.sin(v)),h=Math.tan(v)*Math.tan(v),n=i*Math.cos(v)*Math.cos(v);var M,m,p=l*s*((r=Math.cos(v)*(d-e))+(1-h+n)*r*r*r/6+(5-18*h+h*h+72*n-58*i)*r*r*r*r*r/120)+5e5,g=l*(f*(.9983242984503243*v-.002514607064228144*Math.sin(2*v)+2639046602129982e-21*Math.sin(4*v)-3.418046101696858e-9*Math.sin(6*v))+s*Math.tan(v)*(r*r/2+(5-h+9*n+4*n*n)*r*r*r*r/24+(61-58*h+h*h+600*n-2.2240339282485886)*r*r*r*r*r*r/720));return a<0&&(g+=1e7),{northing:Math.round(g),easting:Math.round(p),zoneNumber:o,zoneLetter:(M=a,m="Z",84>=M&&M>=72?m="X":72>M&&M>=64?m="W":64>M&&M>=56?m="V":56>M&&M>=48?m="U":48>M&&M>=40?m="T":40>M&&M>=32?m="S":32>M&&M>=24?m="R":24>M&&M>=16?m="Q":16>M&&M>=8?m="P":8>M&&M>=0?m="N":0>M&&M>=-8?m="M":-8>M&&M>=-16?m="L":-16>M&&M>=-24?m="K":-24>M&&M>=-32?m="J":-32>M&&M>=-40?m="H":-40>M&&M>=-48?m="G":-48>M&&M>=-56?m="F":-56>M&&M>=-64?m="E":-64>M&&M>=-72?m="D":-72>M&&M>=-80&&(m="C"),m)}}({lat:t[1],lon:t[0]}),i)}function at(t){var i=ct(vt(t.toUpperCase()));return i.lat&&i.lon?[i.lon,i.lat]:[(i.left+i.right)/2,(i.top+i.bottom)/2]}function ut(t){return t*(Math.PI/180)}function ft(t){return t/Math.PI*180}function ct(t){var i=t.northing,s=t.easting,h=t.zoneLetter,n=t.zoneNumber;if(n<0||n>60)return null;var r,e,o,a,u,f,c,l,v,d=.9996,M=6378137,m=.00669438,p=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),g=s-5e5,_=i;h<"N"&&(_-=1e7),c=6*(n-1)-180+3,r=.006739496752268451,v=(l=_/d/6367449.145945056)+(3*p/2-27*p*p*p/32)*Math.sin(2*l)+(21*p*p/16-55*p*p*p*p/32)*Math.sin(4*l)+151*p*p*p/96*Math.sin(6*l),e=M/Math.sqrt(1-m*Math.sin(v)*Math.sin(v)),o=Math.tan(v)*Math.tan(v),a=r*Math.cos(v)*Math.cos(v),u=.99330562*M/Math.pow(1-m*Math.sin(v)*Math.sin(v),1.5),f=g/(e*d);var w=v-e*Math.tan(v)/u*(f*f/2-(5+3*o+10*a-4*a*a-9*r)*f*f*f*f/24+(61+90*o+298*a+45*o*o-1.6983531815716497-3*a*a)*f*f*f*f*f*f/720);w=ft(w);var y,b=(f-(1+2*o+a)*f*f*f/6+(5-2*a+28*o-3*a*a+8*r+24*o*o)*f*f*f*f*f/120)/Math.cos(v);if(b=c+ft(b),t.accuracy){var x=ct({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});y={top:x.lat,right:x.lon,bottom:w,left:b}}else y={lat:w,lon:b};return y}function lt(t){var i=t%6;return 0===i&&(i=6),i}function vt(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";for(var i,s=t.length,h=null,n="",r=0;!/[A-Z]/.test(i=t.charAt(r));){if(r>=2)throw"MGRSPoint bad conversion from: "+t;n+=i,r++}var e=parseInt(n,10);if(0===r||r+3>s)throw"MGRSPoint bad conversion from: "+t;var o=t.charAt(r++);if(o<="A"||"B"===o||"Y"===o||o>="Z"||"I"===o||"O"===o)throw"MGRSPoint zone letter "+o+" not handled: "+t;h=t.substring(r,r+=2);for(var a=lt(e),u=function(t,i){for(var s="AJSAJS".charCodeAt(i-1),h=1e5,n=!1;s!==t.charCodeAt(0);){if(++s===nt&&s++,s===rt&&s++,s>90){if(n)throw"Bad character: "+t;s=ht,n=!0}h+=1e5}return h}(h.charAt(0),a),f=function(t,i){if(t>"V")throw"MGRSPoint given invalid Northing "+t;for(var s="AFAFAF".charCodeAt(i-1),h=0,n=!1;s!==t.charCodeAt(0);){if(++s===nt&&s++,s===rt&&s++,s>86){if(n)throw"Bad character: "+t;s=ht,n=!0}h+=1e5}return h}(h.charAt(1),a);f<dt(o);)f+=2e6;var c=s-r;if(c%2!=0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+t;var l,v,d,M=c/2,m=0,p=0;return M>0&&(l=1e5/Math.pow(10,M),v=t.substring(r,r+M),m=parseFloat(v)*l,d=t.substring(r+M),p=parseFloat(d)*l),{easting:m+u,northing:p+f,zoneLetter:o,zoneNumber:e,accuracy:l}}function dt(t){var i;switch(t){case"C":i=11e5;break;case"D":i=2e6;break;case"E":i=28e5;break;case"F":i=37e5;break;case"G":i=46e5;break;case"H":i=55e5;break;case"J":i=64e5;break;case"K":i=73e5;break;case"L":i=82e5;break;case"M":i=91e5;break;case"N":i=0;break;case"P":i=8e5;break;case"Q":i=17e5;break;case"R":i=26e5;break;case"S":i=35e5;break;case"T":i=44e5;break;case"U":i=53e5;break;case"V":i=62e5;break;case"W":i=7e6;break;case"X":i=79e5;break;default:i=-1}if(i>=0)return i;throw"Invalid zone letter: "+t}function Mt(t,i,s){if(!(this instanceof Mt))return new Mt(t,i,s);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"==typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if("string"==typeof t&&void 0===i){var h=t.split(",");this.x=parseFloat(h[0],10),this.y=parseFloat(h[1],10),this.z=parseFloat(h[2],10)||0}else this.x=t,this.y=i,this.z=s||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Mt.fromMGRS=function(t){return new Mt(at(t))},Mt.prototype.toMGRS=function(t){return ot([this.x,this.y],t)};var mt=.01068115234375;function pt(t){var i=[];i[0]=1-t*(.25+t*(.046875+t*(.01953125+t*mt))),i[1]=t*(.75-t*(.046875+t*(.01953125+t*mt)));var s=t*t;return i[2]=s*(.46875-t*(.013020833333333334+.007120768229166667*t)),i[3]=(s*=t)*(.3645833333333333-.005696614583333333*t),i[4]=s*t*.3076171875,i}function gt(t,i,s,h){return h[0]*t-(s*=i)*(h[1]+(i*=i)*(h[2]+i*(h[3]+i*h[4])))}function _t(t,i,s){for(var h=1/(1-i),n=t,r=20;r;--r){var e=Math.sin(n),o=1-i*e*e;if(n-=o=(gt(n,e,Math.cos(n),s)-t)*(o*Math.sqrt(o))*h,Math.abs(o)<1e-10)return n}return n}const wt={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=pt(this.es),this.ml0=gt(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(t){var i,s,h,n=t.y,r=L(t.x-this.long0),e=Math.sin(n),o=Math.cos(n);if(this.es){var a=o*r,u=Math.pow(a,2),f=this.ep2*Math.pow(o,2),c=Math.pow(f,2),l=Math.abs(o)>1e-10?Math.tan(n):0,v=Math.pow(l,2),d=Math.pow(v,2);i=1-this.es*Math.pow(e,2),a/=Math.sqrt(i);var M=gt(n,e,o,this.en);s=this.a*(this.k0*a*(1+u/6*(1-v+f+u/20*(5-18*v+d+14*f-58*v*f+u/42*(61+179*d-d*v-479*v)))))+this.x0,h=this.a*(this.k0*(M-this.ml0+e*r*a/2*(1+u/12*(5-v+9*f+4*c+u/30*(61+d-58*v+270*f-330*v*f+u/56*(1385+543*d-d*v-3111*v))))))+this.y0}else{var m=o*Math.sin(r);if(Math.abs(Math.abs(m)-1)<1e-10)return 93;if(s=.5*this.a*this.k0*Math.log((1+m)/(1-m))+this.x0,h=o*Math.cos(r)/Math.sqrt(1-Math.pow(m,2)),(m=Math.abs(h))>=1){if(m-1>1e-10)return 93;h=0}else h=Math.acos(h);n<0&&(h=-h),h=this.a*this.k0*(h-this.lat0)+this.y0}return t.x=s,t.y=h,t},inverse:function(t){var i,s,h,n,r=1/this.a*(t.x-this.x0),e=1/this.a*(t.y-this.y0);if(this.es)if(s=_t(i=this.ml0+e/this.k0,this.es,this.en),Math.abs(s)<u){var o=Math.sin(s),a=Math.cos(s),f=Math.abs(a)>1e-10?Math.tan(s):0,c=this.ep2*Math.pow(a,2),l=Math.pow(c,2),v=Math.pow(f,2),d=Math.pow(v,2);i=1-this.es*Math.pow(o,2);var M=r*Math.sqrt(i)/this.k0,m=Math.pow(M,2);h=s-(i*=f)*m/(1-this.es)*.5*(1-m/12*(5+3*v-9*c*v+c-4*l-m/30*(61+90*v-252*c*v+45*d+46*c-m/56*(1385+3633*v+4095*d+1574*d*v)))),n=L(this.long0+M*(1-m/6*(1+2*v+c-m/20*(5+28*v+24*d+8*c*v+6*c-m/42*(61+662*v+1320*d+720*d*v))))/a)}else h=u*O(e),n=0;else{var p=Math.exp(r/this.k0),g=.5*(p-1/p),_=Math.cos(this.lat0+e/this.k0);i=Math.sqrt((1-Math.pow(_,2))/(1+Math.pow(g,2))),h=Math.asin(i),e<0&&(h=-h),n=0===g&&0===_?0:L(Math.atan2(g,_)+this.long0)}return t.x=n,t.y=h,t},names:["Transverse_Mercator","Transverse Mercator","tmerc"]};function yt(t){var i=Math.exp(t);return(i-1/i)/2}function bt(t,i){t=Math.abs(t),i=Math.abs(i);var s=Math.max(t,i),h=Math.min(t,i)/(s||1);return s*Math.sqrt(1+Math.pow(h,2))}function xt(t,i){for(var s,h=2*Math.cos(2*i),n=t.length-1,r=t[n],e=0;--n>=0;)s=h*r-e+t[n],e=r,r=s;return i+s*Math.sin(2*i)}function Et(t,i,s){for(var h,n,r=Math.sin(i),e=Math.cos(i),o=yt(s),a=function(t){var i=Math.exp(t);return(i+1/i)/2}(s),u=2*e*a,f=-2*r*o,c=t.length-1,l=t[c],v=0,d=0,M=0;--c>=0;)h=d,n=v,l=u*(d=l)-h-f*(v=M)+t[c],M=f*d-n+u*v;return[(u=r*a)*l-(f=e*o)*M,u*M+f*l]}const St={init:function(){if(void 0===this.es||this.es<=0)throw new Error("incorrect elliptical usage");this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),i=t/(2-t),s=i;this.cgb[0]=i*(2+i*(-2/3+i*(i*(116/45+i*(26/45+i*(-2854/675)))-2))),this.cbg[0]=i*(i*(2/3+i*(4/3+i*(-82/45+i*(32/45+i*(4642/4725)))))-2),this.cgb[1]=(s*=i)*(7/3+i*(i*(-227/45+i*(2704/315+i*(2323/945)))-1.6)),this.cbg[1]=s*(5/3+i*(-16/15+i*(-13/9+i*(904/315+i*(-1522/945))))),this.cgb[2]=(s*=i)*(56/15+i*(-136/35+i*(-1262/105+i*(73814/2835)))),this.cbg[2]=s*(-26/15+i*(34/21+i*(1.6+i*(-12686/2835)))),this.cgb[3]=(s*=i)*(4279/630+i*(-332/35+i*(-399572/14175))),this.cbg[3]=s*(1237/630+i*(i*(-24832/14175)-2.4)),this.cgb[4]=(s*=i)*(4174/315+i*(-144838/6237)),this.cbg[4]=s*(-734/315+i*(109598/31185)),this.cgb[5]=(s*=i)*(601676/22275),this.cbg[5]=s*(444337/155925),s=Math.pow(i,2),this.Qn=this.k0/(1+i)*(1+s*(1/4+s*(1/64+s/256))),this.utg[0]=i*(i*(2/3+i*(-37/96+i*(1/360+i*(81/512+i*(-96199/604800)))))-.5),this.gtu[0]=i*(.5+i*(-2/3+i*(5/16+i*(41/180+i*(-127/288+i*(7891/37800)))))),this.utg[1]=s*(-1/48+i*(-1/15+i*(437/1440+i*(-46/105+i*(1118711/3870720))))),this.gtu[1]=s*(13/48+i*(i*(557/1440+i*(281/630+i*(-1983433/1935360)))-.6)),this.utg[2]=(s*=i)*(-17/480+i*(37/840+i*(209/4480+i*(-5569/90720)))),this.gtu[2]=s*(61/240+i*(-103/140+i*(15061/26880+i*(167603/181440)))),this.utg[3]=(s*=i)*(-4397/161280+i*(11/504+i*(830251/7257600))),this.gtu[3]=s*(49561/161280+i*(-179/168+i*(6601661/7257600))),this.utg[4]=(s*=i)*(-4583/161280+i*(108847/3991680)),this.gtu[4]=s*(34729/80640+i*(-3418889/1995840)),this.utg[5]=(s*=i)*(-20648693/638668800),this.gtu[5]=.6650675310896665*s;var h=xt(this.cbg,this.lat0);this.Zb=-this.Qn*(h+function(t,i){for(var s,h=2*Math.cos(i),n=t.length-1,r=t[n],e=0;--n>=0;)s=h*r-e+t[n],e=r,r=s;return Math.sin(i)*s}(this.gtu,2*h))},forward:function(t){var i=L(t.x-this.long0),s=t.y;s=xt(this.cbg,s);var h=Math.sin(s),n=Math.cos(s),r=Math.sin(i),e=Math.cos(i);s=Math.atan2(h,e*n),i=Math.atan2(r*n,bt(h,n*e)),i=function(t){var i=Math.abs(t);return i=function(t){var i=1+t,s=i-1;return 0===s?t:t*Math.log(i)/s}(i*(1+i/(bt(1,i)+1))),t<0?-i:i}(Math.tan(i));var o,a,u=Et(this.gtu,2*s,2*i);return s+=u[0],i+=u[1],Math.abs(i)<=2.623395162778?(o=this.a*(this.Qn*i)+this.x0,a=this.a*(this.Qn*s+this.Zb)+this.y0):(o=1/0,a=1/0),t.x=o,t.y=a,t},inverse:function(t){var i,s,h=1/this.a*(t.x-this.x0),n=1/this.a*(t.y-this.y0);if(n=(n-this.Zb)/this.Qn,h/=this.Qn,Math.abs(h)<=2.623395162778){var r=Et(this.utg,2*n,2*h);n+=r[0],h+=r[1],h=Math.atan(yt(h));var e=Math.sin(n),o=Math.cos(n),a=Math.sin(h),u=Math.cos(h);n=Math.atan2(e*u,bt(a,u*o)),i=L((h=Math.atan2(a,u*o))+this.long0),s=xt(this.cgb,n)}else i=1/0,s=1/0;return t.x=i,t.y=s,t},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc"]},Ct={init:function(){var t=function(t,i){if(void 0===t){if((t=Math.floor(30*(L(i)+Math.PI)/Math.PI)+1)<0)return 0;if(t>60)return 60}return t}(this.zone,this.long0);if(void 0===t)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*f,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,St.init.apply(this),this.forward=St.forward,this.inverse=St.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"};function At(t,i){return Math.pow((1-t)/(1+t),i)}const Pt={init:function(){var t=Math.sin(this.lat0),i=Math.cos(this.lat0);i*=i,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*i*i/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+l)/(Math.pow(Math.tan(.5*this.lat0+l),this.C)*At(this.e*t,this.ratexp))},forward:function(t){var i=t.x,s=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*s+l),this.C)*At(this.e*Math.sin(s),this.ratexp))-u,t.x=this.C*i,t},inverse:function(t){for(var i=t.x/this.C,s=t.y,h=Math.pow(Math.tan(.5*s+l)/this.K,1/this.C),n=20;n>0&&(s=2*Math.atan(h*At(this.e*Math.sin(t.y),-.5*this.e))-u,!(Math.abs(s-t.y)<1e-14));--n)t.y=s;return n?(t.x=i,t.y=s,t):null},names:["gauss"]},Rt={init:function(){Pt.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(t){var i,s,h,n;return t.x=L(t.x-this.long0),Pt.forward.apply(this,[t]),i=Math.sin(t.y),s=Math.cos(t.y),h=Math.cos(t.x),t.x=(n=this.k0*this.R2/(1+this.sinc0*i+this.cosc0*s*h))*s*Math.sin(t.x),t.y=n*(this.cosc0*i-this.sinc0*s*h),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){var i,s,h,n,r;if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,r=Math.sqrt(t.x*t.x+t.y*t.y)){var e=2*Math.atan2(r,this.R2);i=Math.sin(e),s=Math.cos(e),n=Math.asin(s*this.sinc0+t.y*i*this.cosc0/r),h=Math.atan2(t.x*i,r*this.cosc0*s-t.y*this.sinc0*i)}else n=this.phic0,h=0;return t.x=h,t.y=n,Pt.inverse.apply(this,[t]),t.x=L(t.x+this.long0),t},names:["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative"]},Nt={init:function(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=1e-10&&(this.k0=.5*(1+O(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=1e-10&&(this.con=this.lat0>0?1:-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=1e-10&&(this.k0=.5*this.cons*T(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/I(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=T(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-u,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(t){var i,s,h,n,r,e,o=t.x,a=t.y,f=Math.sin(a),c=Math.cos(a),l=L(o-this.long0);return Math.abs(Math.abs(o-this.long0)-Math.PI)<=1e-10&&Math.abs(a+this.lat0)<=1e-10?(t.x=NaN,t.y=NaN,t):this.sphere?(i=2*this.k0/(1+this.sinlat0*f+this.coslat0*c*Math.cos(l)),t.x=this.a*i*c*Math.sin(l)+this.x0,t.y=this.a*i*(this.coslat0*f-this.sinlat0*c*Math.cos(l))+this.y0,t):(s=2*Math.atan(this.ssfn_(a,f,this.e))-u,n=Math.cos(s),h=Math.sin(s),Math.abs(this.coslat0)<=1e-10?(r=I(this.e,a*this.con,this.con*f),t.x=this.x0+(e=2*this.a*this.k0*r/this.cons)*Math.sin(o-this.long0),t.y=this.y0-this.con*e*Math.cos(o-this.long0),t):(Math.abs(this.sinlat0)<1e-10?(i=2*this.a*this.k0/(1+n*Math.cos(l)),t.y=i*h):(i=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*h+this.cosX0*n*Math.cos(l))),t.y=i*(this.cosX0*h-this.sinX0*n*Math.cos(l))+this.y0),t.x=i*n*Math.sin(l)+this.x0,t))},inverse:function(t){var i,s,h,n;t.x-=this.x0,t.y-=this.y0;var r=Math.sqrt(t.x*t.x+t.y*t.y);if(this.sphere){var e=2*Math.atan(r/(.5*this.a*this.k0));return i=this.long0,s=this.lat0,r<=1e-10?(t.x=i,t.y=s,t):(s=Math.asin(Math.cos(e)*this.sinlat0+t.y*Math.sin(e)*this.coslat0/r),i=Math.abs(this.coslat0)<1e-10?L(this.lat0>0?this.long0+Math.atan2(t.x,-1*t.y):this.long0+Math.atan2(t.x,t.y)):L(this.long0+Math.atan2(t.x*Math.sin(e),r*this.coslat0*Math.cos(e)-t.y*this.sinlat0*Math.sin(e))),t.x=i,t.y=s,t)}if(Math.abs(this.coslat0)<=1e-10){if(r<=1e-10)return s=this.lat0,t.x=i=this.long0,t.y=s,t;t.x*=this.con,t.y*=this.con,s=this.con*F(this.e,r*this.cons/(2*this.a*this.k0)),i=this.con*L(this.con*this.long0+Math.atan2(t.x,-1*t.y))}else h=2*Math.atan(r*this.cosX0/(2*this.a*this.k0*this.ms1)),i=this.long0,r<=1e-10?n=this.X0:(n=Math.asin(Math.cos(h)*this.sinX0+t.y*Math.sin(h)*this.cosX0/r),i=L(this.long0+Math.atan2(t.x*Math.sin(h),r*this.cosX0*Math.cos(h)-t.y*this.sinX0*Math.sin(h)))),s=-1*F(this.e,Math.tan(.5*(u+n)));return t.x=i,t.y=s,t},names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],ssfn_:function(t,i,s){return i*=s,Math.tan(.5*(u+t))*Math.pow((1-i)/(1+i),.5*s)}},zt={init:function(){var t=this.lat0;this.lambda0=this.long0;var i=Math.sin(t),s=this.a,h=1/this.rf,n=2*h-Math.pow(h,2),r=this.e=Math.sqrt(n);this.R=this.k0*s*Math.sqrt(1-n)/(1-n*Math.pow(i,2)),this.alpha=Math.sqrt(1+n/(1-n)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(i/this.alpha);var e=Math.log(Math.tan(Math.PI/4+this.b0/2)),o=Math.log(Math.tan(Math.PI/4+t/2)),a=Math.log((1+r*i)/(1-r*i));this.K=e-this.alpha*o+this.alpha*r/2*a},forward:function(t){var i=Math.log(Math.tan(Math.PI/4-t.y/2)),s=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),h=2*(Math.atan(Math.exp(-this.alpha*(i+s)+this.K))-Math.PI/4),n=this.alpha*(t.x-this.lambda0),r=Math.atan(Math.sin(n)/(Math.sin(this.b0)*Math.tan(h)+Math.cos(this.b0)*Math.cos(n))),e=Math.asin(Math.cos(this.b0)*Math.sin(h)-Math.sin(this.b0)*Math.cos(h)*Math.cos(n));return t.y=this.R/2*Math.log((1+Math.sin(e))/(1-Math.sin(e)))+this.y0,t.x=this.R*r+this.x0,t},inverse:function(t){for(var i=(t.x-this.x0)/this.R,s=2*(Math.atan(Math.exp((t.y-this.y0)/this.R))-Math.PI/4),h=Math.asin(Math.cos(this.b0)*Math.sin(s)+Math.sin(this.b0)*Math.cos(s)*Math.cos(i)),n=Math.atan(Math.sin(i)/(Math.cos(this.b0)*Math.cos(i)-Math.sin(this.b0)*Math.tan(s))),r=this.lambda0+n/this.alpha,e=0,o=h,a=-1e3,u=0;Math.abs(o-a)>1e-7;){if(++u>20)return;e=1/this.alpha*(Math.log(Math.tan(Math.PI/4+h/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(o))/2)),a=o,o=2*Math.atan(Math.exp(e))-Math.PI/2}return t.x=r,t.y=o,t},names:["somerc"]},kt={init:function(){this.no_off=this.no_off||!1,this.no_rot=this.no_rot||!1,isNaN(this.k0)&&(this.k0=1);var t=Math.sin(this.lat0),i=Math.cos(this.lat0),s=this.e*t;this.bl=Math.sqrt(1+this.es/(1-this.es)*Math.pow(i,4)),this.al=this.a*this.bl*this.k0*Math.sqrt(1-this.es)/(1-s*s);var h,n,r=I(this.e,this.lat0,t),e=this.bl/i*Math.sqrt((1-this.es)/(1-s*s));if(e*e<1&&(e=1),isNaN(this.longc)){var o=I(this.e,this.lat1,Math.sin(this.lat1)),a=I(this.e,this.lat2,Math.sin(this.lat2));this.el=this.lat0>=0?(e+Math.sqrt(e*e-1))*Math.pow(r,this.bl):(e-Math.sqrt(e*e-1))*Math.pow(r,this.bl);var u=Math.pow(o,this.bl),f=Math.pow(a,this.bl);n=.5*((h=this.el/u)-1/h);var c=(this.el*this.el-f*u)/(this.el*this.el+f*u),l=(f-u)/(f+u),v=L(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(c*Math.tan(.5*this.bl*v)/l)/this.bl,this.long0=L(this.long0);var d=L(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*d)/n),this.alpha=Math.asin(e*Math.sin(this.gamma0))}else h=this.lat0>=0?e+Math.sqrt(e*e-1):e-Math.sqrt(e*e-1),this.el=h*Math.pow(r,this.bl),n=.5*(h-1/h),this.gamma0=Math.asin(Math.sin(this.alpha)/e),this.long0=this.longc-Math.asin(n*Math.tan(this.gamma0))/this.bl;this.uc=this.no_off?0:this.lat0>=0?this.al/this.bl*Math.atan2(Math.sqrt(e*e-1),Math.cos(this.alpha)):-1*this.al/this.bl*Math.atan2(Math.sqrt(e*e-1),Math.cos(this.alpha))},forward:function(t){var i,s,h,n=t.y,r=L(t.x-this.long0);if(Math.abs(Math.abs(n)-u)<=1e-10)h=n>0?-1:1,s=this.al/this.bl*Math.log(Math.tan(l+h*this.gamma0*.5)),i=-1*h*u*this.al/this.bl;else{var e=I(this.e,n,Math.sin(n)),o=this.el/Math.pow(e,this.bl),a=.5*(o-1/o),f=.5*(o+1/o),c=Math.sin(this.bl*r),v=(a*Math.sin(this.gamma0)-c*Math.cos(this.gamma0))/f;s=Math.abs(Math.abs(v)-1)<=1e-10?Number.POSITIVE_INFINITY:.5*this.al*Math.log((1-v)/(1+v))/this.bl,i=Math.abs(Math.cos(this.bl*r))<=1e-10?this.al*this.bl*r:this.al*Math.atan2(a*Math.cos(this.gamma0)+c*Math.sin(this.gamma0),Math.cos(this.bl*r))/this.bl}return this.no_rot?(t.x=this.x0+i,t.y=this.y0+s):(i-=this.uc,t.x=this.x0+s*Math.cos(this.alpha)+i*Math.sin(this.alpha),t.y=this.y0+i*Math.cos(this.alpha)-s*Math.sin(this.alpha)),t},inverse:function(t){var i,s;this.no_rot?(s=t.y-this.y0,i=t.x-this.x0):(s=(t.x-this.x0)*Math.cos(this.alpha)-(t.y-this.y0)*Math.sin(this.alpha),i=(t.y-this.y0)*Math.cos(this.alpha)+(t.x-this.x0)*Math.sin(this.alpha),i+=this.uc);var h=Math.exp(-1*this.bl*s/this.al),n=.5*(h-1/h),r=.5*(h+1/h),e=Math.sin(this.bl*i/this.al),o=(e*Math.cos(this.gamma0)+n*Math.sin(this.gamma0))/r,a=Math.pow(this.el/Math.sqrt((1+o)/(1-o)),1/this.bl);return Math.abs(o-1)<1e-10?(t.x=this.long0,t.y=u):Math.abs(o+1)<1e-10?(t.x=this.long0,t.y=-1*u):(t.y=F(this.e,a),t.x=L(this.long0-Math.atan2(n*Math.cos(this.gamma0)-e*Math.sin(this.gamma0),Math.cos(this.bl*i/this.al))/this.bl)),t},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","omerc"]},Tt={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<1e-10)){var t=this.b/this.a;this.e=Math.sqrt(1-t*t);var i=Math.sin(this.lat1),s=Math.cos(this.lat1),h=T(this.e,i,s),n=I(this.e,this.lat1,i),r=Math.sin(this.lat2),e=Math.cos(this.lat2),o=T(this.e,r,e),a=I(this.e,this.lat2,r),u=I(this.e,this.lat0,Math.sin(this.lat0));this.ns=Math.abs(this.lat1-this.lat2)>1e-10?Math.log(h/o)/Math.log(n/a):i,isNaN(this.ns)&&(this.ns=i),this.f0=h/(this.ns*Math.pow(n,this.ns)),this.rh=this.a*this.f0*Math.pow(u,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(t){var i=t.x,s=t.y;Math.abs(2*Math.abs(s)-Math.PI)<=1e-10&&(s=O(s)*(u-2e-10));var h,n,r=Math.abs(Math.abs(s)-u);if(r>1e-10)h=I(this.e,s,Math.sin(s)),n=this.a*this.f0*Math.pow(h,this.ns);else{if((r=s*this.ns)<=0)return null;n=0}var e=this.ns*L(i-this.long0);return t.x=this.k0*(n*Math.sin(e))+this.x0,t.y=this.k0*(this.rh-n*Math.cos(e))+this.y0,t},inverse:function(t){var i,s,h,n,r,e=(t.x-this.x0)/this.k0,o=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(i=Math.sqrt(e*e+o*o),s=1):(i=-Math.sqrt(e*e+o*o),s=-1);var a=0;if(0!==i&&(a=Math.atan2(s*e,s*o)),0!==i||this.ns>0){if(s=1/this.ns,h=Math.pow(i/(this.a*this.f0),s),-9999===(n=F(this.e,h)))return null}else n=-u;return r=L(a/this.ns+this.long0),t.x=r,t.y=n,t},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_2SP","lcc"]},Ot={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(t){var i,s,h,n,r,e,o,a=t.y,u=L(t.x-this.long0);return i=Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.alfa*this.e/2),s=2*(Math.atan(this.k*Math.pow(Math.tan(a/2+this.s45),this.alfa)/i)-this.s45),h=-u*this.alfa,n=Math.asin(Math.cos(this.ad)*Math.sin(s)+Math.sin(this.ad)*Math.cos(s)*Math.cos(h)),r=Math.asin(Math.cos(s)*Math.sin(h)/Math.cos(n)),e=this.n*r,o=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(n/2+this.s45),this.n),t.y=o*Math.cos(e)/1,t.x=o*Math.sin(e)/1,this.czech||(t.y*=-1,t.x*=-1),t},inverse:function(t){var i,s,h,n,r,e,o,a=t.x;t.x=t.y,t.y=a,this.czech||(t.y*=-1,t.x*=-1),r=Math.sqrt(t.x*t.x+t.y*t.y),n=Math.atan2(t.y,t.x)/Math.sin(this.s0),h=2*(Math.atan(Math.pow(this.ro0/r,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),i=Math.asin(Math.cos(this.ad)*Math.sin(h)-Math.sin(this.ad)*Math.cos(h)*Math.cos(n)),s=Math.asin(Math.cos(h)*Math.sin(n)/Math.cos(i)),t.x=this.long0-s/this.alfa,e=i,o=0;var u=0;do{t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(i/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(e))/(1-this.e*Math.sin(e)),this.e/2))-this.s45),Math.abs(e-t.y)<1e-10&&(o=1),e=t.y,u+=1}while(0===o&&u<15);return u>=15?null:t},names:["Krovak","krovak"]};function Lt(t,i,s,h,n){return t*n-i*Math.sin(2*n)+s*Math.sin(4*n)-h*Math.sin(6*n)}function It(t){return 1-.25*t*(1+t/16*(3+1.25*t))}function Ft(t){return.375*t*(1+.25*t*(1+.46875*t))}function Dt(t){return.05859375*t*t*(1+.75*t)}function Gt(t){return t*t*t*(35/3072)}function Wt(t,i,s){var h=i*s;return t/Math.sqrt(1-h*h)}function Vt(t){return Math.abs(t)<u?t:t-O(t)*Math.PI}function jt(t,i,s,h,n){var r,e;r=t/i;for(var o=0;o<15;o++)if(r+=e=(t-(i*r-s*Math.sin(2*r)+h*Math.sin(4*r)-n*Math.sin(6*r)))/(i-2*s*Math.cos(2*r)+4*h*Math.cos(4*r)-6*n*Math.cos(6*r)),Math.abs(e)<=1e-10)return r;return NaN}const Ut={init:function(){this.sphere||(this.e0=It(this.es),this.e1=Ft(this.es),this.e2=Dt(this.es),this.e3=Gt(this.es),this.ml0=this.a*Lt(this.e0,this.e1,this.e2,this.e3,this.lat0))},forward:function(t){var i,s,h=t.x,n=t.y;if(h=L(h-this.long0),this.sphere)i=this.a*Math.asin(Math.cos(n)*Math.sin(h)),s=this.a*(Math.atan2(Math.tan(n),Math.cos(h))-this.lat0);else{var r=Math.sin(n),e=Math.cos(n),o=Wt(this.a,this.e,r),a=Math.tan(n)*Math.tan(n),u=h*Math.cos(n),f=u*u,c=this.es*e*e/(1-this.es);i=o*u*(1-f*a*(1/6-(8-a+8*c)*f/120)),s=this.a*Lt(this.e0,this.e1,this.e2,this.e3,n)-this.ml0+o*r/e*f*(.5+(5-a+6*c)*f/24)}return t.x=i+this.x0,t.y=s+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var i,s,h=t.x/this.a,n=t.y/this.a;if(this.sphere){var r=n+this.lat0;i=Math.asin(Math.sin(r)*Math.cos(h)),s=Math.atan2(Math.tan(h),Math.cos(r))}else{var e=jt(this.ml0/this.a+n,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(e)-u)<=1e-10)return t.x=this.long0,t.y=u,n<0&&(t.y*=-1),t;var o=Wt(this.a,this.e,Math.sin(e)),a=o*o*o/this.a/this.a*(1-this.es),f=Math.pow(Math.tan(e),2),c=h*this.a/o,l=c*c;i=e-o*Math.tan(e)/a*c*c*(.5-(1+3*f)*c*c/24),s=c*(1-l*(f/3+(1+3*f)*f*l/15))/Math.cos(e)}return t.x=L(s+this.long0),t.y=Vt(i),t},names:["Cassini","Cassini_Soldner","cass"]};function Xt(t,i){var s;return t>1e-7?(1-t*t)*(i/(1-(s=t*i)*s)-.5/t*Math.log((1-s)/(1+s))):2*i}const qt={init:function(){var t,i=Math.abs(this.lat0);if(this.mode=Math.abs(i-u)<1e-10?this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(i)<1e-10?this.EQUIT:this.OBLIQ,this.es>0)switch(this.qp=Xt(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(t){var i,s=[];return s[0]=.3333333333333333*t,s[0]+=.17222222222222222*(i=t*t),s[1]=.06388888888888888*i,s[0]+=.10257936507936508*(i*=t),s[1]+=.0664021164021164*i,s[2]=.016415012942191543*i,s}(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=Xt(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(t){var i,s,h,n,r,e,o,a,f,c,v=t.x,d=t.y;if(v=L(v-this.long0),this.sphere){if(r=Math.sin(d),c=Math.cos(d),h=Math.cos(v),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((s=this.mode===this.EQUIT?1+c*h:1+this.sinph0*r+this.cosph0*c*h)<=1e-10)return null;i=(s=Math.sqrt(2/s))*c*Math.sin(v),s*=this.mode===this.EQUIT?r:this.cosph0*r-this.sinph0*c*h}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(h=-h),Math.abs(d+this.phi0)<1e-10)return null;s=l-.5*d,i=(s=2*(this.mode===this.S_POLE?Math.cos(s):Math.sin(s)))*Math.sin(v),s*=h}}else{switch(o=0,a=0,f=0,h=Math.cos(v),n=Math.sin(v),r=Math.sin(d),e=Xt(this.e,r),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(o=e/this.qp,a=Math.sqrt(1-o*o)),this.mode){case this.OBLIQ:f=1+this.sinb1*o+this.cosb1*a*h;break;case this.EQUIT:f=1+a*h;break;case this.N_POLE:f=u+d,e=this.qp-e;break;case this.S_POLE:f=d-u,e=this.qp+e}if(Math.abs(f)<1e-10)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:f=Math.sqrt(2/f),s=this.mode===this.OBLIQ?this.ymf*f*(this.cosb1*o-this.sinb1*a*h):(f=Math.sqrt(2/(1+a*h)))*o*this.ymf,i=this.xmf*f*a*n;break;case this.N_POLE:case this.S_POLE:e>=0?(i=(f=Math.sqrt(e))*n,s=h*(this.mode===this.S_POLE?f:-f)):i=s=0}}return t.x=this.a*i+this.x0,t.y=this.a*s+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var i,s,h,n,r,e,o,a,f,c,l=t.x/this.a,v=t.y/this.a;if(this.sphere){var d,M=0,m=0;if((s=.5*(d=Math.sqrt(l*l+v*v)))>1)return null;switch(s=2*Math.asin(s),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(m=Math.sin(s),M=Math.cos(s)),this.mode){case this.EQUIT:s=Math.abs(d)<=1e-10?0:Math.asin(v*m/d),l*=m,v=M*d;break;case this.OBLIQ:s=Math.abs(d)<=1e-10?this.phi0:Math.asin(M*this.sinph0+v*m*this.cosph0/d),l*=m*this.cosph0,v=(M-Math.sin(s)*this.sinph0)*d;break;case this.N_POLE:v=-v,s=u-s;break;case this.S_POLE:s-=u}i=0!==v||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(l,v):0}else{if(o=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(l/=this.dd,v*=this.dd,(e=Math.sqrt(l*l+v*v))<1e-10)return t.x=0,t.y=this.phi0,t;n=2*Math.asin(.5*e/this.rq),h=Math.cos(n),l*=n=Math.sin(n),this.mode===this.OBLIQ?(r=this.qp*(o=h*this.sinb1+v*n*this.cosb1/e),v=e*this.cosb1*h-v*this.sinb1*n):(r=this.qp*(o=v*n/e),v=e*h)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(v=-v),!(r=l*l+v*v))return t.x=0,t.y=this.phi0,t;o=1-r/this.qp,this.mode===this.S_POLE&&(o=-o)}i=Math.atan2(l,v),c=(a=Math.asin(o))+a,s=a+(f=this.apa)[0]*Math.sin(c)+f[1]*Math.sin(c+c)+f[2]*Math.sin(c+c+c)}return t.x=L(this.long0+i),t.y=s,t},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4};function Yt(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)}const Bt={init:function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=T(this.e3,this.sin_po,this.cos_po),this.qs1=Xt(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=T(this.e3,this.sin_po,this.cos_po),this.qs2=Xt(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Xt(this.e3,this.sin_po),this.ns0=Math.abs(this.lat1-this.lat2)>1e-10?(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(t){var i=t.x,s=t.y;this.sin_phi=Math.sin(s),this.cos_phi=Math.cos(s);var h=Xt(this.e3,this.sin_phi),n=this.a*Math.sqrt(this.c-this.ns0*h)/this.ns0,r=this.ns0*L(i-this.long0),e=n*Math.sin(r)+this.x0,o=this.rh-n*Math.cos(r)+this.y0;return t.x=e,t.y=o,t},inverse:function(t){var i,s,h,n,r;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(i=Math.sqrt(t.x*t.x+t.y*t.y),s=1):(i=-Math.sqrt(t.x*t.x+t.y*t.y),s=-1),h=0,0!==i&&(h=Math.atan2(s*t.x,s*t.y)),s=i*this.ns0/this.a,r=this.sphere?Math.asin((this.c-s*s)/(2*this.ns0)):this.phi1z(this.e3,(this.c-s*s)/this.ns0),n=L(h/this.ns0+this.long0),t.x=n,t.y=r,t},names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:function(t,i){var s,h,n,r,e=Yt(.5*i);if(t<1e-10)return e;for(var o=t*t,a=1;a<=25;a++)if(e+=r=.5*(n=1-(h=t*(s=Math.sin(e)))*h)*n/Math.cos(e)*(i/(1-o)-s/n+.5/t*Math.log((1-h)/(1+h))),Math.abs(r)<=1e-7)return e;return null}},Ht={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(t){var i,s,h,n,r,e,o,a=t.y;return h=L(t.x-this.long0),i=Math.sin(a),s=Math.cos(a),n=Math.cos(h),(r=this.sin_p14*i+this.cos_p14*s*n)>0||Math.abs(r)<=1e-10?(e=this.x0+1*this.a*s*Math.sin(h)/r,o=this.y0+1*this.a*(this.cos_p14*i-this.sin_p14*s*n)/r):(e=this.x0+this.infinity_dist*s*Math.sin(h),o=this.y0+this.infinity_dist*(this.cos_p14*i-this.sin_p14*s*n)),t.x=e,t.y=o,t},inverse:function(t){var i,s,h,n,r,e;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(i=Math.sqrt(t.x*t.x+t.y*t.y))?(n=Math.atan2(i,this.rc),s=Math.sin(n),e=Yt((h=Math.cos(n))*this.sin_p14+t.y*s*this.cos_p14/i),r=Math.atan2(t.x*s,i*this.cos_p14*h-t.y*this.sin_p14*s),r=L(this.long0+r)):(e=this.phic0,r=0),t.x=r,t.y=e,t},names:["gnom"]},Jt={init:function(){this.sphere||(this.k0=T(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(t){var i,s,h=t.y,n=L(t.x-this.long0);if(this.sphere)i=this.x0+this.a*n*Math.cos(this.lat_ts),s=this.y0+this.a*Math.sin(h)/Math.cos(this.lat_ts);else{var r=Xt(this.e,Math.sin(h));i=this.x0+this.a*this.k0*n,s=this.y0+this.a*r*.5/this.k0}return t.x=i,t.y=s,t},inverse:function(t){var i,s;return t.x-=this.x0,t.y-=this.y0,this.sphere?(i=L(this.long0+t.x/this.a/Math.cos(this.lat_ts)),s=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(s=function(t,i){var s=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(i)-s)<1e-6)return i<0?-1*u:u;for(var h,n,r,e,o=Math.asin(.5*i),a=0;a<30;a++)if(n=Math.sin(o),r=Math.cos(o),e=t*n,o+=h=Math.pow(1-e*e,2)/(2*r)*(i/(1-t*t)-n/(1-e*e)+.5/t*Math.log((1-e)/(1+e))),Math.abs(h)<=1e-10)return o;return NaN}(this.e,2*t.y*this.k0/this.a),i=L(this.long0+t.x/(this.a*this.k0))),t.x=i,t.y=s,t},names:["cea"]},Zt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(t){var i=t.y,s=L(t.x-this.long0),h=Vt(i-this.lat0);return t.x=this.x0+this.a*s*this.rc,t.y=this.y0+this.a*h,t},inverse:function(t){var i=t.y;return t.x=L(this.long0+(t.x-this.x0)/(this.a*this.rc)),t.y=Vt(this.lat0+(i-this.y0)/this.a),t},names:["Equirectangular","Equidistant_Cylindrical","eqc"]},Kt={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=It(this.es),this.e1=Ft(this.es),this.e2=Dt(this.es),this.e3=Gt(this.es),this.ml0=this.a*Lt(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(t){var i,s,h,n=t.y,r=L(t.x-this.long0);if(h=r*Math.sin(n),this.sphere)Math.abs(n)<=1e-10?(i=this.a*r,s=-1*this.a*this.lat0):(i=this.a*Math.sin(h)/Math.tan(n),s=this.a*(Vt(n-this.lat0)+(1-Math.cos(h))/Math.tan(n)));else if(Math.abs(n)<=1e-10)i=this.a*r,s=-1*this.ml0;else{var e=Wt(this.a,this.e,Math.sin(n))/Math.tan(n);i=e*Math.sin(h),s=this.a*Lt(this.e0,this.e1,this.e2,this.e3,n)-this.ml0+e*(1-Math.cos(h))}return t.x=i+this.x0,t.y=s+this.y0,t},inverse:function(t){var i,s,h,n,r,e,o,a,u;if(h=t.x-this.x0,n=t.y-this.y0,this.sphere)if(Math.abs(n+this.a*this.lat0)<=1e-10)i=L(h/this.a+this.long0),s=0;else{var f;for(o=h*h/this.a/this.a+(e=this.lat0+n/this.a)*e,a=e,r=20;r;--r)if(a+=u=-1*(e*(a*(f=Math.tan(a))+1)-a-.5*(a*a+o)*f)/((a-e)/f-1),Math.abs(u)<=1e-10){s=a;break}i=L(this.long0+Math.asin(h*Math.tan(a)/this.a)/Math.sin(s))}else if(Math.abs(n+this.ml0)<=1e-10)s=0,i=L(this.long0+h/this.a);else{var c,l,v,d,M;for(o=h*h/this.a/this.a+(e=(this.ml0+n)/this.a)*e,a=e,r=20;r;--r)if(M=this.e*Math.sin(a),c=Math.sqrt(1-M*M)*Math.tan(a),l=this.a*Lt(this.e0,this.e1,this.e2,this.e3,a),v=this.e0-2*this.e1*Math.cos(2*a)+4*this.e2*Math.cos(4*a)-6*this.e3*Math.cos(6*a),a-=u=(e*(c*(d=l/this.a)+1)-d-.5*c*(d*d+o))/(this.es*Math.sin(2*a)*(d*d+o-2*e*d)/(4*c)+(e-d)*(c*v-2/Math.sin(2*a))-v),Math.abs(u)<=1e-10){s=a;break}c=Math.sqrt(1-this.es*Math.pow(Math.sin(s),2))*Math.tan(s),i=L(this.long0+Math.asin(h*c/this.a)/Math.sin(s))}return t.x=i,t.y=s,t},names:["Polyconic","poly"]},Qt={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(t){var i,s=(t.y-this.lat0)/a*1e-5,h=t.x-this.long0,n=1,r=0;for(i=1;i<=10;i++)r+=this.A[i]*(n*=s);var e,o=r,u=h,f=1,c=0,l=0,v=0;for(i=1;i<=6;i++)e=c*o+f*u,l=l+this.B_re[i]*(f=f*o-c*u)-this.B_im[i]*(c=e),v=v+this.B_im[i]*f+this.B_re[i]*c;return t.x=v*this.a+this.x0,t.y=l*this.a+this.y0,t},inverse:function(t){var i,s,h=(t.y-this.y0)/this.a,n=(t.x-this.x0)/this.a,r=1,e=0,o=0,u=0;for(i=1;i<=6;i++)s=e*h+r*n,o=o+this.C_re[i]*(r=r*h-e*n)-this.C_im[i]*(e=s),u=u+this.C_im[i]*r+this.C_re[i]*e;for(var f=0;f<this.iterations;f++){var c,l=o,v=u,d=h,M=n;for(i=2;i<=6;i++)c=v*o+l*u,d+=(i-1)*(this.B_re[i]*(l=l*o-v*u)-this.B_im[i]*(v=c)),M+=(i-1)*(this.B_im[i]*l+this.B_re[i]*v);l=1,v=0;var m=this.B_re[1],p=this.B_im[1];for(i=2;i<=6;i++)c=v*o+l*u,m+=i*(this.B_re[i]*(l=l*o-v*u)-this.B_im[i]*(v=c)),p+=i*(this.B_im[i]*l+this.B_re[i]*v);var g=m*m+p*p;o=(d*m+M*p)/g,u=(M*m-d*p)/g}var _=o,w=u,y=1,b=0;for(i=1;i<=9;i++)b+=this.D[i]*(y*=_);var x=this.lat0+b*a*1e5;return t.x=this.long0+w,t.y=x,t},names:["New_Zealand_Map_Grid","nzmg"]},$t={init:function(){},forward:function(t){var i=t.y,s=L(t.x-this.long0),h=this.x0+this.a*s,n=this.y0+this.a*Math.log(Math.tan(Math.PI/4+i/2.5))*1.25;return t.x=h,t.y=n,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var i=L(this.long0+t.x/this.a),s=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=i,t.y=s,t},names:["Miller_Cylindrical","mill"]},ti={init:function(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=pt(this.es)},forward:function(t){var i,s,h=t.x,n=t.y;if(h=L(h-this.long0),this.sphere){if(this.m)for(var r=this.n*Math.sin(n),e=20;e;--e){var o=(this.m*n+Math.sin(n)-r)/(this.m+Math.cos(n));if(n-=o,Math.abs(o)<1e-10)break}else n=1!==this.n?Math.asin(this.n*Math.sin(n)):n;i=this.a*this.C_x*h*(this.m+Math.cos(n)),s=this.a*this.C_y*n}else{var a=Math.sin(n),u=Math.cos(n);s=this.a*gt(n,a,u,this.en),i=this.a*h*u/Math.sqrt(1-this.es*a*a)}return t.x=i,t.y=s,t},inverse:function(t){var i,s,h;return t.x-=this.x0,s=t.x/this.a,t.y-=this.y0,i=t.y/this.a,this.sphere?(i/=this.C_y,s/=this.C_x*(this.m+Math.cos(i)),this.m?i=Yt((this.m*i+Math.sin(i))/this.n):1!==this.n&&(i=Yt(Math.sin(i)/this.n)),s=L(s+this.long0),i=Vt(i)):(i=_t(t.y/this.a,this.es,this.en),(h=Math.abs(i))<u?(h=Math.sin(i),s=L(this.long0+t.x*Math.sqrt(1-this.es*h*h)/(this.a*Math.cos(i)))):h-1e-10<u&&(s=this.long0)),t.x=s,t.y=i,t},names:["Sinusoidal","sinu"]},ii={init:function(){},forward:function(t){for(var i=t.y,s=L(t.x-this.long0),h=i,n=Math.PI*Math.sin(i);;){var r=-(h+Math.sin(h)-n)/(1+Math.cos(h));if(h+=r,Math.abs(r)<1e-10)break}h/=2,Math.PI/2-Math.abs(i)<1e-10&&(s=0);var e=.900316316158*this.a*s*Math.cos(h)+this.x0,o=1.4142135623731*this.a*Math.sin(h)+this.y0;return t.x=e,t.y=o,t},inverse:function(t){var i,s;t.x-=this.x0,t.y-=this.y0,s=t.y/(1.4142135623731*this.a),Math.abs(s)>.999999999999&&(s=.999999999999),i=Math.asin(s);var h=L(this.long0+t.x/(.900316316158*this.a*Math.cos(i)));h<-Math.PI&&(h=-Math.PI),h>Math.PI&&(h=Math.PI),s=(2*i+Math.sin(2*i))/Math.PI,Math.abs(s)>1&&(s=1);var n=Math.asin(s);return t.x=h,t.y=n,t},names:["Mollweide","moll"]},si={init:function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=It(this.es),this.e1=Ft(this.es),this.e2=Dt(this.es),this.e3=Gt(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=T(this.e,this.sinphi,this.cosphi),this.ml1=Lt(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<1e-10?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=T(this.e,this.sinphi,this.cosphi),this.ml2=Lt(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=Lt(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(t){var i,s=t.x,h=t.y;if(this.sphere)i=this.a*(this.g-h);else{var n=Lt(this.e0,this.e1,this.e2,this.e3,h);i=this.a*(this.g-n)}var r=this.ns*L(s-this.long0),e=this.x0+i*Math.sin(r),o=this.y0+this.rh-i*Math.cos(r);return t.x=e,t.y=o,t},inverse:function(t){var i,s,h,n;t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns>=0?(s=Math.sqrt(t.x*t.x+t.y*t.y),i=1):(s=-Math.sqrt(t.x*t.x+t.y*t.y),i=-1);var r=0;return 0!==s&&(r=Math.atan2(i*t.x,i*t.y)),this.sphere?(n=L(this.long0+r/this.ns),h=Vt(this.g-s/this.a),t.x=n,t.y=h,t):(h=jt(this.g-s/this.a,this.e0,this.e1,this.e2,this.e3),n=L(this.long0+r/this.ns),t.x=n,t.y=h,t)},names:["Equidistant_Conic","eqdc"]},hi={init:function(){this.R=this.a},forward:function(t){var i,s,h=t.y,n=L(t.x-this.long0);Math.abs(h)<=1e-10&&(i=this.x0+this.R*n,s=this.y0);var r=Yt(2*Math.abs(h/Math.PI));(Math.abs(n)<=1e-10||Math.abs(Math.abs(h)-u)<=1e-10)&&(i=this.x0,s=h>=0?this.y0+Math.PI*this.R*Math.tan(.5*r):this.y0+Math.PI*this.R*-Math.tan(.5*r));var e=.5*Math.abs(Math.PI/n-n/Math.PI),o=e*e,a=Math.sin(r),f=Math.cos(r),c=f/(a+f-1),l=c*(2/a-1),v=l*l,d=Math.PI*this.R*(e*(c-v)+Math.sqrt(o*(c-v)*(c-v)-(v+o)*(c*c-v)))/(v+o);n<0&&(d=-d),i=this.x0+d;var M=o+c;return d=Math.PI*this.R*(l*M-e*Math.sqrt((v+o)*(o+1)-M*M))/(v+o),s=h>=0?this.y0+d:this.y0-d,t.x=i,t.y=s,t},inverse:function(t){var i,s,h,n,r,e,o,a,u,f,c,l;return t.x-=this.x0,t.y-=this.y0,c=Math.PI*this.R,r=(h=t.x/c)*h+(n=t.y/c)*n,c=3*(n*n/(a=-2*(e=-Math.abs(n)*(1+r))+1+2*n*n+r*r)+(2*(o=e-2*n*n+h*h)*o*o/a/a/a-9*e*o/a/a)/27)/(u=(e-o*o/3/a)/a)/(f=2*Math.sqrt(-u/3)),Math.abs(c)>1&&(c=c>=0?1:-1),l=Math.acos(c)/3,s=t.y>=0?(-f*Math.cos(l+Math.PI/3)-o/3/a)*Math.PI:-(-f*Math.cos(l+Math.PI/3)-o/3/a)*Math.PI,i=Math.abs(h)<1e-10?this.long0:L(this.long0+Math.PI*(r-1+Math.sqrt(1+2*(h*h-n*n)+r*r))/2/h),t.x=i,t.y=s,t},names:["Van_der_Grinten_I","VanDerGrinten","vandg"]},ni={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)},forward:function(t){var i,s,h,n,r,e,o,a,f,c,l,v,d,M,m,p,g,_,w,y,b,x,E=t.x,S=t.y,C=Math.sin(t.y),A=Math.cos(t.y),P=L(E-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=1e-10?(t.x=this.x0+this.a*(u-S)*Math.sin(P),t.y=this.y0-this.a*(u-S)*Math.cos(P),t):Math.abs(this.sin_p12+1)<=1e-10?(t.x=this.x0+this.a*(u+S)*Math.sin(P),t.y=this.y0+this.a*(u+S)*Math.cos(P),t):(_=this.sin_p12*C+this.cos_p12*A*Math.cos(P),g=(p=Math.acos(_))/Math.sin(p),t.x=this.x0+this.a*g*A*Math.sin(P),t.y=this.y0+this.a*g*(this.cos_p12*C-this.sin_p12*A*Math.cos(P)),t):(i=It(this.es),s=Ft(this.es),h=Dt(this.es),n=Gt(this.es),Math.abs(this.sin_p12-1)<=1e-10?(r=this.a*Lt(i,s,h,n,u),e=this.a*Lt(i,s,h,n,S),t.x=this.x0+(r-e)*Math.sin(P),t.y=this.y0-(r-e)*Math.cos(P),t):Math.abs(this.sin_p12+1)<=1e-10?(r=this.a*Lt(i,s,h,n,u),e=this.a*Lt(i,s,h,n,S),t.x=this.x0+(r+e)*Math.sin(P),t.y=this.y0+(r+e)*Math.cos(P),t):(o=C/A,a=Wt(this.a,this.e,this.sin_p12),f=Wt(this.a,this.e,C),c=Math.atan((1-this.es)*o+this.es*a*this.sin_p12/(f*A)),w=0===(l=Math.atan2(Math.sin(P),this.cos_p12*Math.tan(c)-this.sin_p12*Math.cos(P)))?Math.asin(this.cos_p12*Math.sin(c)-this.sin_p12*Math.cos(c)):Math.abs(Math.abs(l)-Math.PI)<=1e-10?-Math.asin(this.cos_p12*Math.sin(c)-this.sin_p12*Math.cos(c)):Math.asin(Math.sin(P)*Math.cos(c)/Math.sin(l)),v=this.e*this.sin_p12/Math.sqrt(1-this.es),d=this.e*this.cos_p12*Math.cos(l)/Math.sqrt(1-this.es),t.x=this.x0+(p=a*w*(1-(y=w*w)*(m=d*d)*(1-m)/6+(b=y*w)/8*(M=v*d)*(1-2*m)+(x=b*w)/120*(m*(4-7*m)-3*v*v*(1-7*m))-x*w/48*M))*Math.sin(l),t.y=this.y0+p*Math.cos(l),t))},inverse:function(t){var i,s,h,n,r,e,o,a,f,c,l,v,d,M,m,p,g,_,w,y,b,x;if(t.x-=this.x0,t.y-=this.y0,this.sphere){if((i=Math.sqrt(t.x*t.x+t.y*t.y))>2*u*this.a)return;return s=i/this.a,h=Math.sin(s),n=Math.cos(s),r=this.long0,Math.abs(i)<=1e-10?e=this.lat0:(e=Yt(n*this.sin_p12+t.y*h*this.cos_p12/i),o=Math.abs(this.lat0)-u,r=Math.abs(o)<=1e-10?L(this.lat0>=0?this.long0+Math.atan2(t.x,-t.y):this.long0-Math.atan2(-t.x,t.y)):L(this.long0+Math.atan2(t.x*h,i*this.cos_p12*n-t.y*this.sin_p12*h))),t.x=r,t.y=e,t}return a=It(this.es),f=Ft(this.es),c=Dt(this.es),l=Gt(this.es),Math.abs(this.sin_p12-1)<=1e-10?(e=jt(((v=this.a*Lt(a,f,c,l,u))-(i=Math.sqrt(t.x*t.x+t.y*t.y)))/this.a,a,f,c,l),r=L(this.long0+Math.atan2(t.x,-1*t.y)),t.x=r,t.y=e,t):Math.abs(this.sin_p12+1)<=1e-10?(v=this.a*Lt(a,f,c,l,u),e=jt(((i=Math.sqrt(t.x*t.x+t.y*t.y))-v)/this.a,a,f,c,l),r=L(this.long0+Math.atan2(t.x,t.y)),t.x=r,t.y=e,t):(i=Math.sqrt(t.x*t.x+t.y*t.y),m=Math.atan2(t.x,t.y),d=Wt(this.a,this.e,this.sin_p12),p=Math.cos(m),w=3*this.es*(1-(_=-(g=this.e*this.cos_p12*p)*g/(1-this.es)))*this.sin_p12*this.cos_p12*p/(1-this.es),x=1-_*(b=(y=i/d)-_*(1+_)*Math.pow(y,3)/6-w*(1+3*_)*Math.pow(y,4)/24)*b/2-y*b*b*b/6,M=Math.asin(this.sin_p12*Math.cos(b)+this.cos_p12*Math.sin(b)*p),r=L(this.long0+Math.asin(Math.sin(m)*Math.sin(b)/Math.cos(M))),e=Math.atan((1-this.es*x*this.sin_p12/Math.sin(M))*Math.tan(M)/(1-this.es)),t.x=r,t.y=e,t)},names:["Azimuthal_Equidistant","aeqd"]},ri={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(t){var i,s,h,n,r,e,o,a=t.y;return h=L(t.x-this.long0),i=Math.sin(a),s=Math.cos(a),n=Math.cos(h),((r=this.sin_p14*i+this.cos_p14*s*n)>0||Math.abs(r)<=1e-10)&&(e=1*this.a*s*Math.sin(h),o=this.y0+1*this.a*(this.cos_p14*i-this.sin_p14*s*n)),t.x=e,t.y=o,t},inverse:function(t){var i,s,h,n,r,e,o;return t.x-=this.x0,t.y-=this.y0,s=Yt((i=Math.sqrt(t.x*t.x+t.y*t.y))/this.a),h=Math.sin(s),n=Math.cos(s),e=this.long0,Math.abs(i)<=1e-10?(o=this.lat0,t.x=e,t.y=o,t):(o=Yt(n*this.sin_p14+t.y*h*this.cos_p14/i),r=Math.abs(this.lat0)-u,Math.abs(r)<=1e-10?(e=L(this.lat0>=0?this.long0+Math.atan2(t.x,-t.y):this.long0-Math.atan2(-t.x,t.y)),t.x=e,t.y=o,t):(e=L(this.long0+Math.atan2(t.x*h,i*this.cos_p14*n-t.y*this.sin_p14*h)),t.x=e,t.y=o,t))},names:["ortho"]};function ei(t,i,s,h){var n;return t<1e-10?(h.value=1,n=0):(n=Math.atan2(i,s),Math.abs(n)<=l?h.value=1:n>l&&n<=u+l?(h.value=2,n-=u):n>u+l||n<=-(u+l)?(h.value=3,n=n>=0?n-d:n+d):(h.value=4,n+=u)),n}function oi(t,i){var s=t+i;return s<-d?s+=v:s>+d&&(s-=v),s}const ai={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.face=this.lat0>=u-l/2?5:this.lat0<=-(u-l/2)?6:Math.abs(this.long0)<=l?1:Math.abs(this.long0)<=u+l?this.long0>0?2:4:3,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(t){var i,s,h,n,r,e,o={x:0,y:0},a={value:0};if(t.x-=this.long0,i=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,s=t.x,5===this.face)n=u-i,s>=l&&s<=u+l?(a.value=1,h=s-u):s>u+l||s<=-(u+l)?(a.value=2,h=s>0?s-d:s+d):s>-(u+l)&&s<=-l?(a.value=3,h=s+u):(a.value=4,h=s);else if(6===this.face)n=u+i,s>=l&&s<=u+l?(a.value=1,h=-s+u):s<l&&s>=-l?(a.value=2,h=-s):s<-l&&s>=-(u+l)?(a.value=3,h=-s-u):(a.value=4,h=s>0?-s+d:-s-d);else{var f,c,v,M,m,p;2===this.face?s=oi(s,+u):3===this.face?s=oi(s,+d):4===this.face&&(s=oi(s,-u)),M=Math.sin(i),m=Math.cos(i),p=Math.sin(s),f=m*Math.cos(s),c=m*p,v=M,1===this.face?h=ei(n=Math.acos(f),v,c,a):2===this.face?h=ei(n=Math.acos(c),v,-f,a):3===this.face?h=ei(n=Math.acos(-f),v,-c,a):4===this.face?h=ei(n=Math.acos(-c),v,f,a):(n=h=0,a.value=1)}return e=Math.atan(12/d*(h+Math.acos(Math.sin(h)*Math.cos(l))-u)),r=Math.sqrt((1-Math.cos(n))/(Math.cos(e)*Math.cos(e))/(1-Math.cos(Math.atan(1/Math.cos(h))))),2===a.value?e+=u:3===a.value?e+=d:4===a.value&&(e+=1.5*d),o.x=r*Math.cos(e),o.y=r*Math.sin(e),o.x=o.x*this.a+this.x0,o.y=o.y*this.a+this.y0,t.x=o.x,t.y=o.y,t},inverse:function(t){var i,s,h,n,r,e,o,a,f,c,l,v,M={lam:0,phi:0},m={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,s=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),i=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?m.value=1:t.y>=0&&t.y>=Math.abs(t.x)?(m.value=2,i-=u):t.x<0&&-t.x>=Math.abs(t.y)?(m.value=3,i=i<0?i+d:i-d):(m.value=4,i+=u),f=d/12*Math.tan(i),r=Math.sin(f)/(Math.cos(f)-1/Math.sqrt(2)),e=Math.atan(r),(o=1-(h=Math.cos(i))*h*(n=Math.tan(s))*n*(1-Math.cos(Math.atan(1/Math.cos(e)))))<-1?o=-1:o>1&&(o=1),5===this.face)a=Math.acos(o),M.phi=u-a,M.lam=1===m.value?e+u:2===m.value?e<0?e+d:e-d:3===m.value?e-u:e;else if(6===this.face)a=Math.acos(o),M.phi=a-u,M.lam=1===m.value?-e+u:2===m.value?-e:3===m.value?-e-u:e<0?-e-d:-e+d;else{var p,g,_;f=(p=o)*p,g=(f+=(_=f>=1?0:Math.sqrt(1-f)*Math.sin(e))*_)>=1?0:Math.sqrt(1-f),2===m.value?(f=g,g=-_,_=f):3===m.value?(g=-g,_=-_):4===m.value&&(f=g,g=_,_=-f),2===this.face?(f=p,p=-g,g=f):3===this.face?(p=-p,g=-g):4===this.face&&(f=p,p=g,g=-f),M.phi=Math.acos(-_)-u,M.lam=Math.atan2(g,p),2===this.face?M.lam=oi(M.lam,-u):3===this.face?M.lam=oi(M.lam,-d):4===this.face&&(M.lam=oi(M.lam,+u))}return 0!==this.es&&(c=M.phi<0?1:0,l=Math.tan(M.phi),v=this.b/Math.sqrt(l*l+this.one_minus_f_squared),M.phi=Math.atan(Math.sqrt(this.a*this.a-v*v)/(this.one_minus_f*v)),c&&(M.phi=-M.phi)),M.lam+=this.long0,t.x=M.lam,t.y=M.phi,t},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]};st.defaultDatum="WGS84",st.Proj=B,st.WGS84=new st.Proj("WGS84"),st.Point=Mt,st.toPoint=Z,st.defs=N,st.transform=Q,st.mgrs=et,st.version="2.4.4",function(t){t.Proj.projections.add(wt),t.Proj.projections.add(St),t.Proj.projections.add(Ct),t.Proj.projections.add(Rt),t.Proj.projections.add(Nt),t.Proj.projections.add(zt),t.Proj.projections.add(kt),t.Proj.projections.add(Tt),t.Proj.projections.add(Ot),t.Proj.projections.add(Ut),t.Proj.projections.add(qt),t.Proj.projections.add(Bt),t.Proj.projections.add(Ht),t.Proj.projections.add(Jt),t.Proj.projections.add(Zt),t.Proj.projections.add(Kt),t.Proj.projections.add(Qt),t.Proj.projections.add($t),t.Proj.projections.add(ti),t.Proj.projections.add(ii),t.Proj.projections.add(si),t.Proj.projections.add(hi),t.Proj.projections.add(ni),t.Proj.projections.add(ri),t.Proj.projections.add(ai)}(st);var ui={ASSUME_TOUCH:!1,DEFAULT_MAX_ZOOM:42,DEFAULT_MIN_ZOOM:0,DEFAULT_RASTER_REPROJECTION_ERROR_THRESHOLD:.5,DEFAULT_TILE_SIZE:256,DEFAULT_WMS_VERSION:"1.3.0",ENABLE_CANVAS:!0,ENABLE_PROJ4JS:!0,ENABLE_RASTER_REPROJECTION:!0,ENABLE_WEBGL:!0,DEBUG_WEBGL:!0,INITIAL_ATLAS_SIZE:256,MAX_ATLAS_SIZE:-1,MOUSEWHEELZOOM_MAXDELTA:1,OVERVIEWMAP_MAX_RATIO:.75,OVERVIEWMAP_MIN_RATIO:.1,RASTER_REPROJECTION_MAX_SOURCE_TILES:100,RASTER_REPROJECTION_MAX_SUBDIVISION:10,RASTER_REPROJECTION_MAX_TRIANGLE_WIDTH:.25,SIMPLIFY_TOLERANCE:.5,WEBGL_TEXTURE_CACHE_HIGH_WATER_MARK:1024,VERSION:"v4.6.5",inherits:function(t,i){t.prototype=Object.create(i.prototype),t.prototype.constructor=t},nullFunction:function(){},getUid:function(t){return t.ol_uid||(t.ol_uid=++ui.uidCounter_)},uidCounter_:0},fi={};fi.assign="function"==typeof Object.assign?Object.assign:function(t,i){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var s=Object(t),h=1,n=arguments.length;h<n;++h){var r=arguments[h];if(null!=r)for(var e in r)r.hasOwnProperty(e)&&(s[e]=r[e])}return s},fi.clear=function(t){for(var i in t)delete t[i]},fi.getValues=function(t){var i=[];for(var s in t)i.push(t[s]);return i},fi.isEmpty=function(t){var i;for(i in t)return!1;return!i};var ci={bindListener_:function(t){var i=function(i){var s=t.listener,h=t.bindTo||t.target;return t.callOnce&&ci.unlistenByKey(t),s.call(h,i)};return t.boundListener=i,i},findListener_:function(t,i,s,h){for(var n,r=0,e=t.length;r<e;++r)if((n=t[r]).listener===i&&n.bindTo===s)return h&&(n.deleteIndex=r),n},getListeners:function(t,i){var s=t.ol_lm;return s?s[i]:void 0},getListenerMap_:function(t){var i=t.ol_lm;return i||(i=t.ol_lm={}),i},removeListeners_:function(t,i){var s=ci.getListeners(t,i);if(s){for(var h=0,n=s.length;h<n;++h)t.removeEventListener(i,s[h].boundListener),fi.clear(s[h]);s.length=0;var r=t.ol_lm;r&&(delete r[i],0===Object.keys(r).length&&delete t.ol_lm)}},listen:function(t,i,s,h,n){var r=ci.getListenerMap_(t),e=r[i];e||(e=r[i]=[]);var o=ci.findListener_(e,s,h,!1);return o?n||(o.callOnce=!1):(t.addEventListener(i,ci.bindListener_(o={bindTo:h,callOnce:!!n,listener:s,target:t,type:i})),e.push(o)),o},listenOnce:function(t,i,s,h){return ci.listen(t,i,s,h,!0)},unlisten:function(t,i,s,h){var n=ci.getListeners(t,i);if(n){var r=ci.findListener_(n,s,h,!0);r&&ci.unlistenByKey(r)}},unlistenByKey:function(t){if(t&&t.target){t.target.removeEventListener(t.type,t.boundListener);var i=ci.getListeners(t.target,t.type);if(i){var s="deleteIndex"in t?t.deleteIndex:i.indexOf(t);-1!==s&&i.splice(s,1),0===i.length&&ci.removeListeners_(t.target,t.type)}fi.clear(t)}},unlistenAll:function(t){var i=ci.getListenerMap_(t);for(var s in i)ci.removeListeners_(t,s)}},li=function(){};li.prototype.disposed_=!1,li.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())},li.prototype.disposeInternal=ui.nullFunction;var vi=function(t){this.type=t,this.target=null};vi.prototype.preventDefault=vi.prototype.stopPropagation=function(){this.propagationStopped=!0},vi.stopPropagation=function(t){t.stopPropagation()},vi.preventDefault=function(t){t.preventDefault()};var di=function(){li.call(this),this.pendingRemovals_={},this.dispatching_={},this.listeners_={}};ui.inherits(di,li),di.prototype.addEventListener=function(t,i){var s=this.listeners_[t];s||(s=this.listeners_[t]=[]),-1===s.indexOf(i)&&s.push(i)},di.prototype.dispatchEvent=function(t){var i="string"==typeof t?new vi(t):t,s=i.type;i.target=this;var h,n=this.listeners_[s];if(n){s in this.dispatching_||(this.dispatching_[s]=0,this.pendingRemovals_[s]=0),++this.dispatching_[s];for(var r=0,e=n.length;r<e;++r)if(!1===n[r].call(this,i)||i.propagationStopped){h=!1;break}if(--this.dispatching_[s],0===this.dispatching_[s]){var o=this.pendingRemovals_[s];for(delete this.pendingRemovals_[s];o--;)this.removeEventListener(s,ui.nullFunction);delete this.dispatching_[s]}return h}},di.prototype.disposeInternal=function(){ci.unlistenAll(this)},di.prototype.getListeners=function(t){return this.listeners_[t]},di.prototype.hasListener=function(t){return t?t in this.listeners_:Object.keys(this.listeners_).length>0},di.prototype.removeEventListener=function(t,i){var s=this.listeners_[t];if(s){var h=s.indexOf(i);t in this.pendingRemovals_?(s[h]=ui.nullFunction,++this.pendingRemovals_[t]):(s.splice(h,1),0===s.length&&delete this.listeners_[t])}};var Mi=function(){di.call(this),this.revision_=0};ui.inherits(Mi,di),Mi.unByKey=function(t){if(Array.isArray(t))for(var i=0,s=t.length;i<s;++i)ci.unlistenByKey(t[i]);else ci.unlistenByKey(t)},Mi.prototype.changed=function(){++this.revision_,this.dispatchEvent("change")},Mi.prototype.getRevision=function(){return this.revision_},Mi.prototype.on=function(t,i,s){if(Array.isArray(t)){for(var h=t.length,n=new Array(h),r=0;r<h;++r)n[r]=ci.listen(this,t[r],i,s);return n}return ci.listen(this,t,i,s)},Mi.prototype.once=function(t,i,s){if(Array.isArray(t)){for(var h=t.length,n=new Array(h),r=0;r<h;++r)n[r]=ci.listenOnce(this,t[r],i,s);return n}return ci.listenOnce(this,t,i,s)},Mi.prototype.un=function(t,i,s){if(Array.isArray(t))for(var h=0,n=t.length;h<n;++h)ci.unlisten(this,t[h],i,s);else ci.unlisten(this,t,i,s)};var mi=function(t){Mi.call(this),ui.getUid(this),this.values_={},void 0!==t&&this.setProperties(t)};ui.inherits(mi,Mi),mi.changeEventTypeCache_={},mi.getChangeEventType=function(t){return mi.changeEventTypeCache_.hasOwnProperty(t)?mi.changeEventTypeCache_[t]:mi.changeEventTypeCache_[t]="change:"+t},mi.prototype.get=function(t){var i;return this.values_.hasOwnProperty(t)&&(i=this.values_[t]),i},mi.prototype.getKeys=function(){return Object.keys(this.values_)},mi.prototype.getProperties=function(){return fi.assign({},this.values_)},mi.prototype.notify=function(t,i){var s;s=mi.getChangeEventType(t),this.dispatchEvent(new mi.Event(s,t,i)),this.dispatchEvent(new mi.Event(s="propertychange",t,i))},mi.prototype.set=function(t,i,s){if(s)this.values_[t]=i;else{var h=this.values_[t];this.values_[t]=i,h!==i&&this.notify(t,h)}},mi.prototype.setProperties=function(t,i){var s;for(s in t)this.set(s,t[s],i)},mi.prototype.unset=function(t,i){if(t in this.values_){var s=this.values_[t];delete this.values_[t],i||this.notify(t,s)}},ui.inherits(mi.Event=function(t,i,s){vi.call(this,t),this.key=i,this.oldValue=s},vi);var pi=function(t){var i=ui.VERSION?ui.VERSION.split("-")[0]:"latest";this.message="Assertion failed. See https://openlayers.org/en/"+i+"/doc/errors/#"+t+" for details.",this.code=t,this.name="AssertionError"};ui.inherits(pi,Error);var gi=function(t,i){if(!t)throw new pi(i)},_i={clamp:function(t,i,s){return Math.min(Math.max(t,i),s)}};_i.cosh="cosh"in Math?Math.cosh:function(t){var i=Math.exp(t);return(i+1/i)/2},_i.roundUpToPowerOfTwo=function(t){return gi(0<t,29),Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))},_i.squaredSegmentDistance=function(t,i,s,h,n,r){var e=n-s,o=r-h;if(0!==e||0!==o){var a=((t-s)*e+(i-h)*o)/(e*e+o*o);a>1?(s=n,h=r):a>0&&(s+=e*a,h+=o*a)}return _i.squaredDistance(t,i,s,h)},_i.squaredDistance=function(t,i,s,h){var n=s-t,r=h-i;return n*n+r*r},_i.solveLinearSystem=function(t){for(var i=t.length,s=0;s<i;s++){for(var h=s,n=Math.abs(t[s][s]),r=s+1;r<i;r++){var e=Math.abs(t[r][s]);e>n&&(n=e,h=r)}if(0===n)return null;var o=t[h];t[h]=t[s],t[s]=o;for(var a=s+1;a<i;a++)for(var u=-t[a][s]/t[s][s],f=s;f<i+1;f++)s==f?t[a][f]=0:t[a][f]+=u*t[s][f]}for(var c=new Array(i),l=i-1;l>=0;l--){c[l]=t[l][i]/t[l][l];for(var v=l-1;v>=0;v--)t[v][i]-=t[v][l]*c[l]}return c},_i.toDegrees=function(t){return 180*t/Math.PI},_i.toRadians=function(t){return t*Math.PI/180},_i.modulo=function(t,i){var s=t%i;return s*i<0?s+i:s},_i.lerp=function(t,i,s){return t+s*(i-t)};var wi=function(t){this.radius=t};
1
+ import{r as t,c as i,h as s,a as h,g as n}from"./p-7a4c6adb.js";import{f as r}from"./p-25a09313.js";import{c as e,b as o}from"./p-a6d4a8b1.js";var a=484813681109536e-20,u=Math.PI/2,f=.017453292519943295,c=57.29577951308232,l=Math.PI/4,v=2*Math.PI,d=3.14159265359,M={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667};const m={ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937}};var p=/[\s_\-\/\(\)]/g;function g(t,i){if(t[i])return t[i];for(var s,h=Object.keys(t),n=i.toLowerCase().replace(p,""),r=-1;++r<h.length;)if((s=h[r]).toLowerCase().replace(p,"")===n)return t[s]}function _(t){var i,s,h,n={},r=t.split("+").map((function(t){return t.trim()})).filter((function(t){return t})).reduce((function(t,i){var s=i.split("=");return s.push(!0),t[s[0].toLowerCase()]=s[1],t}),{}),e={proj:"projName",datum:"datumCode",rf:function(t){n.rf=parseFloat(t)},lat_0:function(t){n.lat0=t*f},lat_1:function(t){n.lat1=t*f},lat_2:function(t){n.lat2=t*f},lat_ts:function(t){n.lat_ts=t*f},lon_0:function(t){n.long0=t*f},lon_1:function(t){n.long1=t*f},lon_2:function(t){n.long2=t*f},alpha:function(t){n.alpha=parseFloat(t)*f},lonc:function(t){n.longc=t*f},x_0:function(t){n.x0=parseFloat(t)},y_0:function(t){n.y0=parseFloat(t)},k_0:function(t){n.k0=parseFloat(t)},k:function(t){n.k0=parseFloat(t)},a:function(t){n.a=parseFloat(t)},b:function(t){n.b=parseFloat(t)},r_a:function(){n.R_A=!0},zone:function(t){n.zone=parseInt(t,10)},south:function(){n.utmSouth=!0},towgs84:function(t){n.datum_params=t.split(",").map((function(t){return parseFloat(t)}))},to_meter:function(t){n.to_meter=parseFloat(t)},units:function(t){n.units=t;var i=g(m,t);i&&(n.to_meter=i.to_meter)},from_greenwich:function(t){n.from_greenwich=t*f},pm:function(t){var i=g(M,t);n.from_greenwich=(i||parseFloat(t))*f},nadgrids:function(t){"@null"===t?n.datumCode="none":n.nadgrids=t},axis:function(t){var i="ewnsud";3===t.length&&-1!==i.indexOf(t.substr(0,1))&&-1!==i.indexOf(t.substr(1,1))&&-1!==i.indexOf(t.substr(2,1))&&(n.axis=t)}};for(i in r)s=r[i],i in e?"function"==typeof(h=e[i])?h(s):n[h]=s:n[i]=s;return"string"==typeof n.datumCode&&"WGS84"!==n.datumCode&&(n.datumCode=n.datumCode.toLowerCase()),n}var w=/\s/,y=/[A-Za-z]/,b=/[A-Za-z84_]/,x=/[,\]]/,E=/[\d\.E\-\+]/;function S(t){if("string"!=typeof t)throw new Error("not a string");this.text=t.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=1}function C(t,i,s){Array.isArray(i)&&(s.unshift(i),i=null);var h=s.reduce((function(t,i){return A(i,t),t}),i?{}:t);i&&(t[i]=h)}function A(t,i){if(Array.isArray(t)){var s=t.shift();if("PARAMETER"===s&&(s=t.shift()),1===t.length)return Array.isArray(t[0])?(i[s]={},void A(t[0],i[s])):void(i[s]=t[0]);if(t.length)if("TOWGS84"!==s){if("AXIS"===s)return s in i||(i[s]=[]),void i[s].push(t);var h;switch(Array.isArray(s)||(i[s]={}),s){case"UNIT":case"PRIMEM":case"VERT_DATUM":return i[s]={name:t[0].toLowerCase(),convert:t[1]},void(3===t.length&&A(t[2],i[s]));case"SPHEROID":case"ELLIPSOID":return i[s]={name:t[0],a:t[1],rf:t[2]},void(4===t.length&&A(t[3],i[s]));case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"EDATUM":case"ENGINEERINGDATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":case"COMPD_CS":case"COMPOUNDCRS":case"ENGINEERINGCRS":case"ENGCRS":case"FITTED_CS":case"LOCAL_DATUM":case"DATUM":return t[0]=["name",t[0]],void C(i,s,t);default:for(h=-1;++h<t.length;)if(!Array.isArray(t[h]))return A(t,i[s]);return C(i,s,t)}}else i[s]=t;else i[s]=!0}else i[t]=!0}function P(t){return.017453292519943295*t}function R(t){var i=new S(t).output(),s=i.shift(),h=i.shift();i.unshift(["name",h]),i.unshift(["type",s]);var n={};return A(i,n),function(t){if("GEOGCS"===t.type?t.projName="longlat":"LOCAL_CS"===t.type?(t.projName="identity",t.local=!0):t.projName="object"==typeof t.PROJECTION?Object.keys(t.PROJECTION)[0]:t.PROJECTION,t.AXIS){for(var i="",s=0,h=t.AXIS.length;s<h;++s){var n=[t.AXIS[s][0].toLowerCase(),t.AXIS[s][1].toLowerCase()];-1!==n[0].indexOf("north")||("y"===n[0]||"lat"===n[0])&&"north"===n[1]?i+="n":-1!==n[0].indexOf("south")||("y"===n[0]||"lat"===n[0])&&"south"===n[1]?i+="s":-1!==n[0].indexOf("east")||("x"===n[0]||"lon"===n[0])&&"east"===n[1]?i+="e":-1===n[0].indexOf("west")&&("x"!==n[0]&&"lon"!==n[0]||"west"!==n[1])||(i+="w")}2===i.length&&(i+="u"),3===i.length&&(t.axis=i)}t.UNIT&&(t.units=t.UNIT.name.toLowerCase(),"metre"===t.units&&(t.units="meter"),t.UNIT.convert&&("GEOGCS"===t.type?t.DATUM&&t.DATUM.SPHEROID&&(t.to_meter=t.UNIT.convert*t.DATUM.SPHEROID.a):t.to_meter=t.UNIT.convert));var r=t.GEOGCS;function e(i){return i*(t.to_meter||1)}"GEOGCS"===t.type&&(r=t),r&&(t.datumCode=r.DATUM?r.DATUM.name.toLowerCase():r.name.toLowerCase(),"d_"===t.datumCode.slice(0,2)&&(t.datumCode=t.datumCode.slice(2)),"new_zealand_geodetic_datum_1949"!==t.datumCode&&"new_zealand_1949"!==t.datumCode||(t.datumCode="nzgd49"),"wgs_1984"!==t.datumCode&&"world_geodetic_system_1984"!==t.datumCode||("Mercator_Auxiliary_Sphere"===t.PROJECTION&&(t.sphere=!0),t.datumCode="wgs84"),"_ferro"===t.datumCode.slice(-6)&&(t.datumCode=t.datumCode.slice(0,-6)),"_jakarta"===t.datumCode.slice(-8)&&(t.datumCode=t.datumCode.slice(0,-8)),~t.datumCode.indexOf("belge")&&(t.datumCode="rnb72"),r.DATUM&&r.DATUM.SPHEROID&&(t.ellps=r.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===t.ellps.toLowerCase().slice(0,13)&&(t.ellps="intl"),t.a=r.DATUM.SPHEROID.a,t.rf=parseFloat(r.DATUM.SPHEROID.rf,10)),r.DATUM&&r.DATUM.TOWGS84&&(t.datum_params=r.DATUM.TOWGS84),~t.datumCode.indexOf("osgb_1936")&&(t.datumCode="osgb36"),~t.datumCode.indexOf("osni_1952")&&(t.datumCode="osni52"),(~t.datumCode.indexOf("tm65")||~t.datumCode.indexOf("geodetic_datum_of_1965"))&&(t.datumCode="ire65"),"ch1903+"===t.datumCode&&(t.datumCode="ch1903"),~t.datumCode.indexOf("israel")&&(t.datumCode="isr93")),t.b&&!isFinite(t.b)&&(t.b=t.a),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",P],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",P],["x0","false_easting",e],["y0","false_northing",e],["long0","central_meridian",P],["lat0","latitude_of_origin",P],["lat0","standard_parallel_1",P],["lat1","standard_parallel_1",P],["lat2","standard_parallel_2",P],["azimuth","Azimuth"],["alpha","azimuth",P],["srsCode","name"]].forEach((function(i){return r=(h=i)[1],void(!((n=h[0])in(s=t))&&r in s&&(s[n]=s[r],3===h.length&&(s[n]=h[2](s[n]))));var s,h,n,r})),t.long0||!t.longc||"Albers_Conic_Equal_Area"!==t.projName&&"Lambert_Azimuthal_Equal_Area"!==t.projName||(t.long0=t.longc),t.lat_ts||!t.lat1||"Stereographic_South_Pole"!==t.projName&&"Polar Stereographic (variant B)"!==t.projName||(t.lat0=P(t.lat1>0?90:-90),t.lat_ts=t.lat1)}(n),n}function N(t){var i=this;if(2===arguments.length){var s=arguments[1];N[t]="string"==typeof s?"+"===s.charAt(0)?_(arguments[1]):R(arguments[1]):s}else if(1===arguments.length){if(Array.isArray(t))return t.map((function(t){Array.isArray(t)?N.apply(i,t):N(t)}));if("string"==typeof t){if(t in N)return N[t]}else"EPSG"in t?N["EPSG:"+t.EPSG]=t:"ESRI"in t?N["ESRI:"+t.ESRI]=t:"IAU2000"in t?N["IAU2000:"+t.IAU2000]=t:console.log(t);return}}S.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;w.test(t);){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case 1:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},S.prototype.afterquote=function(t){if('"'===t)return this.word+='"',void(this.state=4);if(x.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},S.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=1)):"]"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=1,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},S.prototype.number=function(t){if(!E.test(t)){if(x.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in number yet, index '+this.place)}this.word+=t},S.prototype.quoted=function(t){'"'!==t?this.word+=t:this.state=5},S.prototype.keyword=function(t){if(b.test(t))this.word+=t;else{if("["===t){var i=[];return i.push(this.word),this.level++,null===this.root?this.root=i:this.currentObject.push(i),this.stack.push(this.currentObject),this.currentObject=i,void(this.state=1)}if(!x.test(t))throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place);this.afterItem(t)}},S.prototype.neutral=function(t){if(y.test(t))return this.word=t,void(this.state=2);if('"'===t)return this.word="",void(this.state=4);if(E.test(t))return this.word=t,void(this.state=3);if(!x.test(t))throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place);this.afterItem(t)},S.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)},function(t){t("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),t("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),t("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),t.WGS84=t["EPSG:4326"],t["EPSG:3785"]=t["EPSG:3857"],t.GOOGLE=t["EPSG:3857"],t["EPSG:900913"]=t["EPSG:3857"],t["EPSG:102113"]=t["EPSG:3857"]}(N);var z=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function k(t,i){var s,h;if(t=t||{},!i)return t;for(h in i)void 0!==(s=i[h])&&(t[h]=s);return t}function T(t,i,s){var h=t*i;return s/Math.sqrt(1-h*h)}function O(t){return t<0?-1:1}function L(t){return Math.abs(t)<=d?t:t-O(t)*v}function I(t,i,s){var h=t*s;return h=Math.pow((1-h)/(1+h),.5*t),Math.tan(.5*(u-i))/h}function F(t,i){for(var s,h,n=.5*t,r=u-2*Math.atan(i),e=0;e<=15;e++)if(s=t*Math.sin(r),r+=h=u-2*Math.atan(i*Math.pow((1-s)/(1+s),n))-r,Math.abs(h)<=1e-10)return r;return-9999}function D(t){return t}var G=[{init:function(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.k0=this.sphere?Math.cos(this.lat_ts):T(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k0=this.k?this.k:1)},forward:function(t){var i,s,h=t.x,n=t.y;if(n*c>90&&n*c<-90&&h*c>180&&h*c<-180)return null;if(Math.abs(Math.abs(n)-u)<=1e-10)return null;if(this.sphere)i=this.x0+this.a*this.k0*L(h-this.long0),s=this.y0+this.a*this.k0*Math.log(Math.tan(l+.5*n));else{var r=Math.sin(n),e=I(this.e,n,r);i=this.x0+this.a*this.k0*L(h-this.long0),s=this.y0-this.a*this.k0*Math.log(e)}return t.x=i,t.y=s,t},inverse:function(t){var i,s,h=t.x-this.x0,n=t.y-this.y0;if(this.sphere)s=u-2*Math.atan(Math.exp(-n/(this.a*this.k0)));else{var r=Math.exp(-n/(this.a*this.k0));if(-9999===(s=F(this.e,r)))return null}return i=L(this.long0+h/(this.a*this.k0)),t.x=i,t.y=s,t},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{init:function(){},forward:D,inverse:D,names:["longlat","identity"]}],W={},V=[];function j(t,i){var s=V.length;return t.names?(V[s]=t,t.names.forEach((function(t){W[t.toLowerCase()]=s})),this):(console.log(i),!0)}const U={start:function(){G.forEach(j)},add:j,get:function(t){if(!t)return!1;var i=t.toLowerCase();return void 0!==W[i]&&V[W[i]]?V[W[i]]:void 0}};var X={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},q=X.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};X.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var Y={};function B(t,i){if(!(this instanceof B))return new B(t);i=i||function(t){if(t)throw t};var s,h=function(t){return"string"==typeof t}(s=t)?function(t){return t in N}(s)?N[s]:function(t){return z.some((function(i){return t.indexOf(i)>-1}))}(s)?R(s):function(t){return"+"===t[0]}(s)?_(s):void 0:s;if("object"==typeof h){var n=B.projections.get(h.projName);if(n){if(h.datumCode&&"none"!==h.datumCode){var r=g(Y,h.datumCode);r&&(h.datum_params=r.towgs84?r.towgs84.split(","):null,h.ellps=r.ellipse,h.datumName=r.datumName?r.datumName:h.datumCode)}h.k0=h.k0||1,h.axis=h.axis||"enu",h.ellps=h.ellps||"wgs84";var e,o,u,f,c,l,v=function(t,i,s,h,n){if(!t){var r=g(X,h);r||(r=q),t=r.a,i=r.b,s=r.rf}return s&&!i&&(i=(1-1/s)*t),(0===s||Math.abs(t-i)<1e-10)&&(n=!0,i=t),{a:t,b:i,rf:s,sphere:n}}(h.a,h.b,h.rf,h.ellps,h.sphere),d=(c=((u=(e=v.a)*e)-(f=(o=v.b)*o))/u,l=0,h.R_A?(u=(e*=1-c*(.16666666666666666+c*(.04722222222222222+.022156084656084655*c)))*e,c=0):l=Math.sqrt(c),{es:c,e:l,ep2:(u-f)/f}),M=h.datum||function(t,i,s,h,n,r){var e={};return e.datum_type=void 0===t||"none"===t?5:4,i&&(e.datum_params=i.map(parseFloat),0===e.datum_params[0]&&0===e.datum_params[1]&&0===e.datum_params[2]||(e.datum_type=1),e.datum_params.length>3&&(0===e.datum_params[3]&&0===e.datum_params[4]&&0===e.datum_params[5]&&0===e.datum_params[6]||(e.datum_type=2,e.datum_params[3]*=a,e.datum_params[4]*=a,e.datum_params[5]*=a,e.datum_params[6]=e.datum_params[6]/1e6+1))),e.a=s,e.b=h,e.es=n,e.ep2=r,e}(h.datumCode,h.datum_params,v.a,v.b,d.es,d.ep2);k(this,h),k(this,n),this.a=v.a,this.b=v.b,this.rf=v.rf,this.sphere=v.sphere,this.es=d.es,this.e=d.e,this.ep2=d.ep2,this.datum=M,this.init(),i(null,this)}else i(t)}else i(t)}function H(t){return 1===t||2===t}function J(t,i,s){var h,n,r,e=s.x,o=s.y,a=s.z||0,u={};for(r=0;r<3;r++)if(!i||2!==r||void 0!==s.z)switch(0===r?(h=e,n="x"):1===r?(h=o,n="y"):(h=a,n="z"),t.axis[r]){case"e":u[n]=h;break;case"w":u[n]=-h;break;case"n":u[n]=h;break;case"s":u[n]=-h;break;case"u":void 0!==s[n]&&(u.z=h);break;case"d":void 0!==s[n]&&(u.z=-h);break;default:return null}return u}function Z(t){var i={x:t[0],y:t[1]};return t.length>2&&(i.z=t[2]),t.length>3&&(i.m=t[3]),i}function K(t){if("function"==typeof Number.isFinite){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof t||t!=t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}function Q(t,i,s){var h;return Array.isArray(s)&&(s=Z(s)),function(t){K(t.x),K(t.y)}(s),t.datum&&i.datum&&function(t,i){return(1===t.datum.datum_type||2===t.datum.datum_type)&&"WGS84"!==i.datumCode||(1===i.datum.datum_type||2===i.datum.datum_type)&&"WGS84"!==t.datumCode}(t,i)&&(s=Q(t,h=new B("WGS84"),s),t=h),"enu"!==t.axis&&(s=J(t,!1,s)),"longlat"===t.projName?s={x:s.x*f,y:s.y*f}:(t.to_meter&&(s={x:s.x*t.to_meter,y:s.y*t.to_meter}),s=t.inverse(s)),t.from_greenwich&&(s.x+=t.from_greenwich),s=function(t,i,s){return function(t,i){return t.datum_type===i.datum_type&&!(t.a!==i.a||Math.abs(t.es-i.es)>5e-11)&&(1===t.datum_type?t.datum_params[0]===i.datum_params[0]&&t.datum_params[1]===i.datum_params[1]&&t.datum_params[2]===i.datum_params[2]:2!==t.datum_type||t.datum_params[0]===i.datum_params[0]&&t.datum_params[1]===i.datum_params[1]&&t.datum_params[2]===i.datum_params[2]&&t.datum_params[3]===i.datum_params[3]&&t.datum_params[4]===i.datum_params[4]&&t.datum_params[5]===i.datum_params[5]&&t.datum_params[6]===i.datum_params[6])}(t,i)||5===t.datum_type||5===i.datum_type?s:t.es!==i.es||t.a!==i.a||H(t.datum_type)||H(i.datum_type)?(s=function(t,i,s){var h,n,r,e=t.x,o=t.y,a=t.z?t.z:0;if(o<-u&&o>-1.001*u)o=-u;else if(o>u&&o<1.001*u)o=u;else if(o<-u||o>u)return null;return e>Math.PI&&(e-=2*Math.PI),n=Math.sin(o),r=Math.cos(o),{x:((h=s/Math.sqrt(1-i*(n*n)))+a)*r*Math.cos(e),y:(h+a)*r*Math.sin(e),z:(h*(1-i)+a)*n}}(s,t.es,t.a),H(t.datum_type)&&(s=function(t,i,s){if(1===i)return{x:t.x+s[0],y:t.y+s[1],z:t.z+s[2]};if(2===i){var h=s[3],n=s[4],r=s[5],e=s[6];return{x:e*(t.x-r*t.y+n*t.z)+s[0],y:e*(r*t.x+t.y-h*t.z)+s[1],z:e*(-n*t.x+h*t.y+t.z)+s[2]}}}(s,t.datum_type,t.datum_params)),H(i.datum_type)&&(s=function(t,i,s){if(1===i)return{x:t.x-s[0],y:t.y-s[1],z:t.z-s[2]};if(2===i){var h=s[3],n=s[4],r=s[5],e=s[6],o=(t.x-s[0])/e,a=(t.y-s[1])/e,u=(t.z-s[2])/e;return{x:o+r*a-n*u,y:-r*o+a+h*u,z:n*o-h*a+u}}}(s,i.datum_type,i.datum_params)),function(t,i,s,h){var n,r,e,o,a,u,f,c,l,v,d,M,m,p,g,_=t.x,w=t.y,y=t.z?t.z:0;if(n=Math.sqrt(_*_+w*w),r=Math.sqrt(_*_+w*w+y*y),n/s<1e-12){if(p=0,r/s<1e-12)return g=-h,{x:t.x,y:t.y,z:t.z}}else p=Math.atan2(w,_);e=y/r,c=(o=n/r)*(1-i)*(a=1/Math.sqrt(1-i*(2-i)*o*o)),l=e*a,m=0;do{m++,u=i*(f=s/Math.sqrt(1-i*l*l))/(f+(g=n*c+y*l-f*(1-i*l*l))),M=(d=e*(a=1/Math.sqrt(1-u*(2-u)*o*o)))*c-(v=o*(1-u)*a)*l,c=v,l=d}while(M*M>1e-24&&m<30);return{x:p,y:Math.atan(d/Math.abs(v)),z:g}}(s,i.es,i.a,i.b)):s}(t.datum,i.datum,s),i.from_greenwich&&(s={x:s.x-i.from_greenwich,y:s.y}),"longlat"===i.projName?s={x:s.x*c,y:s.y*c}:(s=i.forward(s),i.to_meter&&(s={x:s.x/i.to_meter,y:s.y/i.to_meter})),"enu"!==i.axis?J(i,!0,s):s}Y.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},Y.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},Y.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},Y.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},Y.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},Y.potsdam={towgs84:"606.0,23.0,413.0",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},Y.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},Y.hermannskogel={towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"},Y.osni52={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},Y.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},Y.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},Y.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},Y.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},Y.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},Y.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},Y.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},Y.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"},(B.projections=U).start();var $=B("WGS84");function tt(t,i,s){var h,n,r;return Array.isArray(s)?(h=Q(t,i,s),3===s.length?[h.x,h.y,h.z]:[h.x,h.y]):(n=Q(t,i,s),2===(r=Object.keys(s)).length||r.forEach((function(t){"x"!==t&&"y"!==t&&(n[t]=s[t])})),n)}function it(t){return t instanceof B?t:t.oProj?t.oProj:B(t)}function st(t,i,s){t=it(t);var h,n=!1;return void 0===i?(i=t,t=$,n=!0):(void 0!==i.x||Array.isArray(i))&&(s=i,i=t,t=$,n=!0),i=it(i),s?tt(t,i,s):(h={forward:function(s){return tt(t,i,s)},inverse:function(s){return tt(i,t,s)}},n&&(h.oProj=i),h)}var ht=65,nt=73,rt=79;const et={forward:ot,inverse:function(t){var i=ct(vt(t.toUpperCase()));return i.lat&&i.lon?[i.lon,i.lat,i.lon,i.lat]:[i.left,i.bottom,i.right,i.top]},toPoint:at};function ot(t,i){return i=i||5,function(t,i){var s,h,n,r,e,o,a,u,f,c,l,v="00000"+t.easting,d="00000"+t.northing;return t.zoneNumber+t.zoneLetter+(f=t.easting,c=t.northing,l=lt(t.zoneNumber),s=Math.floor(f/1e5),h=Math.floor(c/1e5)%20,r="AJSAJS".charCodeAt(n=l-1),e="AFAFAF".charCodeAt(n),u=!1,(o=r+s-1)>90&&(o=o-90+ht-1,u=!0),(o===nt||r<nt&&o>nt||(o>nt||r<nt)&&u)&&o++,(o===rt||r<rt&&o>rt||(o>rt||r<rt)&&u)&&++o===nt&&o++,o>90&&(o=o-90+ht-1),(a=e+h)>86?(a=a-86+ht-1,u=!0):u=!1,(a===nt||e<nt&&a>nt||(a>nt||e<nt)&&u)&&a++,(a===rt||e<rt&&a>rt||(a>rt||e<rt)&&u)&&++a===nt&&a++,a>86&&(a=a-86+ht-1),String.fromCharCode(o)+String.fromCharCode(a))+v.substr(v.length-5,i)+d.substr(d.length-5,i)}(function(t){var i,s,h,n,r,e,o,a=t.lat,u=t.lon,f=6378137,c=.00669438,l=.9996,v=ut(a),d=ut(u);o=Math.floor((u+180)/6)+1,180===u&&(o=60),a>=56&&a<64&&u>=3&&u<12&&(o=32),a>=72&&a<84&&(u>=0&&u<9?o=31:u>=9&&u<21?o=33:u>=21&&u<33?o=35:u>=33&&u<42&&(o=37)),e=ut(6*(o-1)-180+3),i=.006739496752268451,s=f/Math.sqrt(1-c*Math.sin(v)*Math.sin(v)),h=Math.tan(v)*Math.tan(v),n=i*Math.cos(v)*Math.cos(v);var M,m,p=l*s*((r=Math.cos(v)*(d-e))+(1-h+n)*r*r*r/6+(5-18*h+h*h+72*n-58*i)*r*r*r*r*r/120)+5e5,g=l*(f*(.9983242984503243*v-.002514607064228144*Math.sin(2*v)+2639046602129982e-21*Math.sin(4*v)-3.418046101696858e-9*Math.sin(6*v))+s*Math.tan(v)*(r*r/2+(5-h+9*n+4*n*n)*r*r*r*r/24+(61-58*h+h*h+600*n-2.2240339282485886)*r*r*r*r*r*r/720));return a<0&&(g+=1e7),{northing:Math.round(g),easting:Math.round(p),zoneNumber:o,zoneLetter:(M=a,m="Z",84>=M&&M>=72?m="X":72>M&&M>=64?m="W":64>M&&M>=56?m="V":56>M&&M>=48?m="U":48>M&&M>=40?m="T":40>M&&M>=32?m="S":32>M&&M>=24?m="R":24>M&&M>=16?m="Q":16>M&&M>=8?m="P":8>M&&M>=0?m="N":0>M&&M>=-8?m="M":-8>M&&M>=-16?m="L":-16>M&&M>=-24?m="K":-24>M&&M>=-32?m="J":-32>M&&M>=-40?m="H":-40>M&&M>=-48?m="G":-48>M&&M>=-56?m="F":-56>M&&M>=-64?m="E":-64>M&&M>=-72?m="D":-72>M&&M>=-80&&(m="C"),m)}}({lat:t[1],lon:t[0]}),i)}function at(t){var i=ct(vt(t.toUpperCase()));return i.lat&&i.lon?[i.lon,i.lat]:[(i.left+i.right)/2,(i.top+i.bottom)/2]}function ut(t){return t*(Math.PI/180)}function ft(t){return t/Math.PI*180}function ct(t){var i=t.northing,s=t.easting,h=t.zoneLetter,n=t.zoneNumber;if(n<0||n>60)return null;var r,e,o,a,u,f,c,l,v,d=.9996,M=6378137,m=.00669438,p=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),g=s-5e5,_=i;h<"N"&&(_-=1e7),c=6*(n-1)-180+3,r=.006739496752268451,v=(l=_/d/6367449.145945056)+(3*p/2-27*p*p*p/32)*Math.sin(2*l)+(21*p*p/16-55*p*p*p*p/32)*Math.sin(4*l)+151*p*p*p/96*Math.sin(6*l),e=M/Math.sqrt(1-m*Math.sin(v)*Math.sin(v)),o=Math.tan(v)*Math.tan(v),a=r*Math.cos(v)*Math.cos(v),u=.99330562*M/Math.pow(1-m*Math.sin(v)*Math.sin(v),1.5),f=g/(e*d);var w=v-e*Math.tan(v)/u*(f*f/2-(5+3*o+10*a-4*a*a-9*r)*f*f*f*f/24+(61+90*o+298*a+45*o*o-1.6983531815716497-3*a*a)*f*f*f*f*f*f/720);w=ft(w);var y,b=(f-(1+2*o+a)*f*f*f/6+(5-2*a+28*o-3*a*a+8*r+24*o*o)*f*f*f*f*f/120)/Math.cos(v);if(b=c+ft(b),t.accuracy){var x=ct({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});y={top:x.lat,right:x.lon,bottom:w,left:b}}else y={lat:w,lon:b};return y}function lt(t){var i=t%6;return 0===i&&(i=6),i}function vt(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";for(var i,s=t.length,h=null,n="",r=0;!/[A-Z]/.test(i=t.charAt(r));){if(r>=2)throw"MGRSPoint bad conversion from: "+t;n+=i,r++}var e=parseInt(n,10);if(0===r||r+3>s)throw"MGRSPoint bad conversion from: "+t;var o=t.charAt(r++);if(o<="A"||"B"===o||"Y"===o||o>="Z"||"I"===o||"O"===o)throw"MGRSPoint zone letter "+o+" not handled: "+t;h=t.substring(r,r+=2);for(var a=lt(e),u=function(t,i){for(var s="AJSAJS".charCodeAt(i-1),h=1e5,n=!1;s!==t.charCodeAt(0);){if(++s===nt&&s++,s===rt&&s++,s>90){if(n)throw"Bad character: "+t;s=ht,n=!0}h+=1e5}return h}(h.charAt(0),a),f=function(t,i){if(t>"V")throw"MGRSPoint given invalid Northing "+t;for(var s="AFAFAF".charCodeAt(i-1),h=0,n=!1;s!==t.charCodeAt(0);){if(++s===nt&&s++,s===rt&&s++,s>86){if(n)throw"Bad character: "+t;s=ht,n=!0}h+=1e5}return h}(h.charAt(1),a);f<dt(o);)f+=2e6;var c=s-r;if(c%2!=0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+t;var l,v,d,M=c/2,m=0,p=0;return M>0&&(l=1e5/Math.pow(10,M),v=t.substring(r,r+M),m=parseFloat(v)*l,d=t.substring(r+M),p=parseFloat(d)*l),{easting:m+u,northing:p+f,zoneLetter:o,zoneNumber:e,accuracy:l}}function dt(t){var i;switch(t){case"C":i=11e5;break;case"D":i=2e6;break;case"E":i=28e5;break;case"F":i=37e5;break;case"G":i=46e5;break;case"H":i=55e5;break;case"J":i=64e5;break;case"K":i=73e5;break;case"L":i=82e5;break;case"M":i=91e5;break;case"N":i=0;break;case"P":i=8e5;break;case"Q":i=17e5;break;case"R":i=26e5;break;case"S":i=35e5;break;case"T":i=44e5;break;case"U":i=53e5;break;case"V":i=62e5;break;case"W":i=7e6;break;case"X":i=79e5;break;default:i=-1}if(i>=0)return i;throw"Invalid zone letter: "+t}function Mt(t,i,s){if(!(this instanceof Mt))return new Mt(t,i,s);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"==typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if("string"==typeof t&&void 0===i){var h=t.split(",");this.x=parseFloat(h[0],10),this.y=parseFloat(h[1],10),this.z=parseFloat(h[2],10)||0}else this.x=t,this.y=i,this.z=s||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Mt.fromMGRS=function(t){return new Mt(at(t))},Mt.prototype.toMGRS=function(t){return ot([this.x,this.y],t)};var mt=.01068115234375;function pt(t){var i=[];i[0]=1-t*(.25+t*(.046875+t*(.01953125+t*mt))),i[1]=t*(.75-t*(.046875+t*(.01953125+t*mt)));var s=t*t;return i[2]=s*(.46875-t*(.013020833333333334+.007120768229166667*t)),i[3]=(s*=t)*(.3645833333333333-.005696614583333333*t),i[4]=s*t*.3076171875,i}function gt(t,i,s,h){return h[0]*t-(s*=i)*(h[1]+(i*=i)*(h[2]+i*(h[3]+i*h[4])))}function _t(t,i,s){for(var h=1/(1-i),n=t,r=20;r;--r){var e=Math.sin(n),o=1-i*e*e;if(n-=o=(gt(n,e,Math.cos(n),s)-t)*(o*Math.sqrt(o))*h,Math.abs(o)<1e-10)return n}return n}const wt={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=pt(this.es),this.ml0=gt(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(t){var i,s,h,n=t.y,r=L(t.x-this.long0),e=Math.sin(n),o=Math.cos(n);if(this.es){var a=o*r,u=Math.pow(a,2),f=this.ep2*Math.pow(o,2),c=Math.pow(f,2),l=Math.abs(o)>1e-10?Math.tan(n):0,v=Math.pow(l,2),d=Math.pow(v,2);i=1-this.es*Math.pow(e,2),a/=Math.sqrt(i);var M=gt(n,e,o,this.en);s=this.a*(this.k0*a*(1+u/6*(1-v+f+u/20*(5-18*v+d+14*f-58*v*f+u/42*(61+179*d-d*v-479*v)))))+this.x0,h=this.a*(this.k0*(M-this.ml0+e*r*a/2*(1+u/12*(5-v+9*f+4*c+u/30*(61+d-58*v+270*f-330*v*f+u/56*(1385+543*d-d*v-3111*v))))))+this.y0}else{var m=o*Math.sin(r);if(Math.abs(Math.abs(m)-1)<1e-10)return 93;if(s=.5*this.a*this.k0*Math.log((1+m)/(1-m))+this.x0,h=o*Math.cos(r)/Math.sqrt(1-Math.pow(m,2)),(m=Math.abs(h))>=1){if(m-1>1e-10)return 93;h=0}else h=Math.acos(h);n<0&&(h=-h),h=this.a*this.k0*(h-this.lat0)+this.y0}return t.x=s,t.y=h,t},inverse:function(t){var i,s,h,n,r=1/this.a*(t.x-this.x0),e=1/this.a*(t.y-this.y0);if(this.es)if(s=_t(i=this.ml0+e/this.k0,this.es,this.en),Math.abs(s)<u){var o=Math.sin(s),a=Math.cos(s),f=Math.abs(a)>1e-10?Math.tan(s):0,c=this.ep2*Math.pow(a,2),l=Math.pow(c,2),v=Math.pow(f,2),d=Math.pow(v,2);i=1-this.es*Math.pow(o,2);var M=r*Math.sqrt(i)/this.k0,m=Math.pow(M,2);h=s-(i*=f)*m/(1-this.es)*.5*(1-m/12*(5+3*v-9*c*v+c-4*l-m/30*(61+90*v-252*c*v+45*d+46*c-m/56*(1385+3633*v+4095*d+1574*d*v)))),n=L(this.long0+M*(1-m/6*(1+2*v+c-m/20*(5+28*v+24*d+8*c*v+6*c-m/42*(61+662*v+1320*d+720*d*v))))/a)}else h=u*O(e),n=0;else{var p=Math.exp(r/this.k0),g=.5*(p-1/p),_=Math.cos(this.lat0+e/this.k0);i=Math.sqrt((1-Math.pow(_,2))/(1+Math.pow(g,2))),h=Math.asin(i),e<0&&(h=-h),n=0===g&&0===_?0:L(Math.atan2(g,_)+this.long0)}return t.x=n,t.y=h,t},names:["Transverse_Mercator","Transverse Mercator","tmerc"]};function yt(t){var i=Math.exp(t);return(i-1/i)/2}function bt(t,i){t=Math.abs(t),i=Math.abs(i);var s=Math.max(t,i),h=Math.min(t,i)/(s||1);return s*Math.sqrt(1+Math.pow(h,2))}function xt(t,i){for(var s,h=2*Math.cos(2*i),n=t.length-1,r=t[n],e=0;--n>=0;)s=h*r-e+t[n],e=r,r=s;return i+s*Math.sin(2*i)}function Et(t,i,s){for(var h,n,r=Math.sin(i),e=Math.cos(i),o=yt(s),a=function(t){var i=Math.exp(t);return(i+1/i)/2}(s),u=2*e*a,f=-2*r*o,c=t.length-1,l=t[c],v=0,d=0,M=0;--c>=0;)h=d,n=v,l=u*(d=l)-h-f*(v=M)+t[c],M=f*d-n+u*v;return[(u=r*a)*l-(f=e*o)*M,u*M+f*l]}const St={init:function(){if(void 0===this.es||this.es<=0)throw new Error("incorrect elliptical usage");this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),i=t/(2-t),s=i;this.cgb[0]=i*(2+i*(-2/3+i*(i*(116/45+i*(26/45+i*(-2854/675)))-2))),this.cbg[0]=i*(i*(2/3+i*(4/3+i*(-82/45+i*(32/45+i*(4642/4725)))))-2),this.cgb[1]=(s*=i)*(7/3+i*(i*(-227/45+i*(2704/315+i*(2323/945)))-1.6)),this.cbg[1]=s*(5/3+i*(-16/15+i*(-13/9+i*(904/315+i*(-1522/945))))),this.cgb[2]=(s*=i)*(56/15+i*(-136/35+i*(-1262/105+i*(73814/2835)))),this.cbg[2]=s*(-26/15+i*(34/21+i*(1.6+i*(-12686/2835)))),this.cgb[3]=(s*=i)*(4279/630+i*(-332/35+i*(-399572/14175))),this.cbg[3]=s*(1237/630+i*(i*(-24832/14175)-2.4)),this.cgb[4]=(s*=i)*(4174/315+i*(-144838/6237)),this.cbg[4]=s*(-734/315+i*(109598/31185)),this.cgb[5]=(s*=i)*(601676/22275),this.cbg[5]=s*(444337/155925),s=Math.pow(i,2),this.Qn=this.k0/(1+i)*(1+s*(1/4+s*(1/64+s/256))),this.utg[0]=i*(i*(2/3+i*(-37/96+i*(1/360+i*(81/512+i*(-96199/604800)))))-.5),this.gtu[0]=i*(.5+i*(-2/3+i*(5/16+i*(41/180+i*(-127/288+i*(7891/37800)))))),this.utg[1]=s*(-1/48+i*(-1/15+i*(437/1440+i*(-46/105+i*(1118711/3870720))))),this.gtu[1]=s*(13/48+i*(i*(557/1440+i*(281/630+i*(-1983433/1935360)))-.6)),this.utg[2]=(s*=i)*(-17/480+i*(37/840+i*(209/4480+i*(-5569/90720)))),this.gtu[2]=s*(61/240+i*(-103/140+i*(15061/26880+i*(167603/181440)))),this.utg[3]=(s*=i)*(-4397/161280+i*(11/504+i*(830251/7257600))),this.gtu[3]=s*(49561/161280+i*(-179/168+i*(6601661/7257600))),this.utg[4]=(s*=i)*(-4583/161280+i*(108847/3991680)),this.gtu[4]=s*(34729/80640+i*(-3418889/1995840)),this.utg[5]=(s*=i)*(-20648693/638668800),this.gtu[5]=.6650675310896665*s;var h=xt(this.cbg,this.lat0);this.Zb=-this.Qn*(h+function(t,i){for(var s,h=2*Math.cos(i),n=t.length-1,r=t[n],e=0;--n>=0;)s=h*r-e+t[n],e=r,r=s;return Math.sin(i)*s}(this.gtu,2*h))},forward:function(t){var i=L(t.x-this.long0),s=t.y;s=xt(this.cbg,s);var h=Math.sin(s),n=Math.cos(s),r=Math.sin(i),e=Math.cos(i);s=Math.atan2(h,e*n),i=Math.atan2(r*n,bt(h,n*e)),i=function(t){var i=Math.abs(t);return i=function(t){var i=1+t,s=i-1;return 0===s?t:t*Math.log(i)/s}(i*(1+i/(bt(1,i)+1))),t<0?-i:i}(Math.tan(i));var o,a,u=Et(this.gtu,2*s,2*i);return s+=u[0],i+=u[1],Math.abs(i)<=2.623395162778?(o=this.a*(this.Qn*i)+this.x0,a=this.a*(this.Qn*s+this.Zb)+this.y0):(o=1/0,a=1/0),t.x=o,t.y=a,t},inverse:function(t){var i,s,h=1/this.a*(t.x-this.x0),n=1/this.a*(t.y-this.y0);if(n=(n-this.Zb)/this.Qn,h/=this.Qn,Math.abs(h)<=2.623395162778){var r=Et(this.utg,2*n,2*h);n+=r[0],h+=r[1],h=Math.atan(yt(h));var e=Math.sin(n),o=Math.cos(n),a=Math.sin(h),u=Math.cos(h);n=Math.atan2(e*u,bt(a,u*o)),i=L((h=Math.atan2(a,u*o))+this.long0),s=xt(this.cgb,n)}else i=1/0,s=1/0;return t.x=i,t.y=s,t},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc"]},Ct={init:function(){var t=function(t,i){if(void 0===t){if((t=Math.floor(30*(L(i)+Math.PI)/Math.PI)+1)<0)return 0;if(t>60)return 60}return t}(this.zone,this.long0);if(void 0===t)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*f,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,St.init.apply(this),this.forward=St.forward,this.inverse=St.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"};function At(t,i){return Math.pow((1-t)/(1+t),i)}const Pt={init:function(){var t=Math.sin(this.lat0),i=Math.cos(this.lat0);i*=i,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*i*i/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+l)/(Math.pow(Math.tan(.5*this.lat0+l),this.C)*At(this.e*t,this.ratexp))},forward:function(t){var i=t.x,s=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*s+l),this.C)*At(this.e*Math.sin(s),this.ratexp))-u,t.x=this.C*i,t},inverse:function(t){for(var i=t.x/this.C,s=t.y,h=Math.pow(Math.tan(.5*s+l)/this.K,1/this.C),n=20;n>0&&(s=2*Math.atan(h*At(this.e*Math.sin(t.y),-.5*this.e))-u,!(Math.abs(s-t.y)<1e-14));--n)t.y=s;return n?(t.x=i,t.y=s,t):null},names:["gauss"]},Rt={init:function(){Pt.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(t){var i,s,h,n;return t.x=L(t.x-this.long0),Pt.forward.apply(this,[t]),i=Math.sin(t.y),s=Math.cos(t.y),h=Math.cos(t.x),t.x=(n=this.k0*this.R2/(1+this.sinc0*i+this.cosc0*s*h))*s*Math.sin(t.x),t.y=n*(this.cosc0*i-this.sinc0*s*h),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){var i,s,h,n,r;if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,r=Math.sqrt(t.x*t.x+t.y*t.y)){var e=2*Math.atan2(r,this.R2);i=Math.sin(e),s=Math.cos(e),n=Math.asin(s*this.sinc0+t.y*i*this.cosc0/r),h=Math.atan2(t.x*i,r*this.cosc0*s-t.y*this.sinc0*i)}else n=this.phic0,h=0;return t.x=h,t.y=n,Pt.inverse.apply(this,[t]),t.x=L(t.x+this.long0),t},names:["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative"]},Nt={init:function(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=1e-10&&(this.k0=.5*(1+O(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=1e-10&&(this.con=this.lat0>0?1:-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=1e-10&&(this.k0=.5*this.cons*T(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/I(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=T(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-u,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(t){var i,s,h,n,r,e,o=t.x,a=t.y,f=Math.sin(a),c=Math.cos(a),l=L(o-this.long0);return Math.abs(Math.abs(o-this.long0)-Math.PI)<=1e-10&&Math.abs(a+this.lat0)<=1e-10?(t.x=NaN,t.y=NaN,t):this.sphere?(i=2*this.k0/(1+this.sinlat0*f+this.coslat0*c*Math.cos(l)),t.x=this.a*i*c*Math.sin(l)+this.x0,t.y=this.a*i*(this.coslat0*f-this.sinlat0*c*Math.cos(l))+this.y0,t):(s=2*Math.atan(this.ssfn_(a,f,this.e))-u,n=Math.cos(s),h=Math.sin(s),Math.abs(this.coslat0)<=1e-10?(r=I(this.e,a*this.con,this.con*f),t.x=this.x0+(e=2*this.a*this.k0*r/this.cons)*Math.sin(o-this.long0),t.y=this.y0-this.con*e*Math.cos(o-this.long0),t):(Math.abs(this.sinlat0)<1e-10?(i=2*this.a*this.k0/(1+n*Math.cos(l)),t.y=i*h):(i=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*h+this.cosX0*n*Math.cos(l))),t.y=i*(this.cosX0*h-this.sinX0*n*Math.cos(l))+this.y0),t.x=i*n*Math.sin(l)+this.x0,t))},inverse:function(t){var i,s,h,n;t.x-=this.x0,t.y-=this.y0;var r=Math.sqrt(t.x*t.x+t.y*t.y);if(this.sphere){var e=2*Math.atan(r/(.5*this.a*this.k0));return i=this.long0,s=this.lat0,r<=1e-10?(t.x=i,t.y=s,t):(s=Math.asin(Math.cos(e)*this.sinlat0+t.y*Math.sin(e)*this.coslat0/r),i=Math.abs(this.coslat0)<1e-10?L(this.lat0>0?this.long0+Math.atan2(t.x,-1*t.y):this.long0+Math.atan2(t.x,t.y)):L(this.long0+Math.atan2(t.x*Math.sin(e),r*this.coslat0*Math.cos(e)-t.y*this.sinlat0*Math.sin(e))),t.x=i,t.y=s,t)}if(Math.abs(this.coslat0)<=1e-10){if(r<=1e-10)return s=this.lat0,t.x=i=this.long0,t.y=s,t;t.x*=this.con,t.y*=this.con,s=this.con*F(this.e,r*this.cons/(2*this.a*this.k0)),i=this.con*L(this.con*this.long0+Math.atan2(t.x,-1*t.y))}else h=2*Math.atan(r*this.cosX0/(2*this.a*this.k0*this.ms1)),i=this.long0,r<=1e-10?n=this.X0:(n=Math.asin(Math.cos(h)*this.sinX0+t.y*Math.sin(h)*this.cosX0/r),i=L(this.long0+Math.atan2(t.x*Math.sin(h),r*this.cosX0*Math.cos(h)-t.y*this.sinX0*Math.sin(h)))),s=-1*F(this.e,Math.tan(.5*(u+n)));return t.x=i,t.y=s,t},names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"],ssfn_:function(t,i,s){return i*=s,Math.tan(.5*(u+t))*Math.pow((1-i)/(1+i),.5*s)}},zt={init:function(){var t=this.lat0;this.lambda0=this.long0;var i=Math.sin(t),s=this.a,h=1/this.rf,n=2*h-Math.pow(h,2),r=this.e=Math.sqrt(n);this.R=this.k0*s*Math.sqrt(1-n)/(1-n*Math.pow(i,2)),this.alpha=Math.sqrt(1+n/(1-n)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(i/this.alpha);var e=Math.log(Math.tan(Math.PI/4+this.b0/2)),o=Math.log(Math.tan(Math.PI/4+t/2)),a=Math.log((1+r*i)/(1-r*i));this.K=e-this.alpha*o+this.alpha*r/2*a},forward:function(t){var i=Math.log(Math.tan(Math.PI/4-t.y/2)),s=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),h=2*(Math.atan(Math.exp(-this.alpha*(i+s)+this.K))-Math.PI/4),n=this.alpha*(t.x-this.lambda0),r=Math.atan(Math.sin(n)/(Math.sin(this.b0)*Math.tan(h)+Math.cos(this.b0)*Math.cos(n))),e=Math.asin(Math.cos(this.b0)*Math.sin(h)-Math.sin(this.b0)*Math.cos(h)*Math.cos(n));return t.y=this.R/2*Math.log((1+Math.sin(e))/(1-Math.sin(e)))+this.y0,t.x=this.R*r+this.x0,t},inverse:function(t){for(var i=(t.x-this.x0)/this.R,s=2*(Math.atan(Math.exp((t.y-this.y0)/this.R))-Math.PI/4),h=Math.asin(Math.cos(this.b0)*Math.sin(s)+Math.sin(this.b0)*Math.cos(s)*Math.cos(i)),n=Math.atan(Math.sin(i)/(Math.cos(this.b0)*Math.cos(i)-Math.sin(this.b0)*Math.tan(s))),r=this.lambda0+n/this.alpha,e=0,o=h,a=-1e3,u=0;Math.abs(o-a)>1e-7;){if(++u>20)return;e=1/this.alpha*(Math.log(Math.tan(Math.PI/4+h/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(o))/2)),a=o,o=2*Math.atan(Math.exp(e))-Math.PI/2}return t.x=r,t.y=o,t},names:["somerc"]},kt={init:function(){this.no_off=this.no_off||!1,this.no_rot=this.no_rot||!1,isNaN(this.k0)&&(this.k0=1);var t=Math.sin(this.lat0),i=Math.cos(this.lat0),s=this.e*t;this.bl=Math.sqrt(1+this.es/(1-this.es)*Math.pow(i,4)),this.al=this.a*this.bl*this.k0*Math.sqrt(1-this.es)/(1-s*s);var h,n,r=I(this.e,this.lat0,t),e=this.bl/i*Math.sqrt((1-this.es)/(1-s*s));if(e*e<1&&(e=1),isNaN(this.longc)){var o=I(this.e,this.lat1,Math.sin(this.lat1)),a=I(this.e,this.lat2,Math.sin(this.lat2));this.el=this.lat0>=0?(e+Math.sqrt(e*e-1))*Math.pow(r,this.bl):(e-Math.sqrt(e*e-1))*Math.pow(r,this.bl);var u=Math.pow(o,this.bl),f=Math.pow(a,this.bl);n=.5*((h=this.el/u)-1/h);var c=(this.el*this.el-f*u)/(this.el*this.el+f*u),l=(f-u)/(f+u),v=L(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(c*Math.tan(.5*this.bl*v)/l)/this.bl,this.long0=L(this.long0);var d=L(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*d)/n),this.alpha=Math.asin(e*Math.sin(this.gamma0))}else h=this.lat0>=0?e+Math.sqrt(e*e-1):e-Math.sqrt(e*e-1),this.el=h*Math.pow(r,this.bl),n=.5*(h-1/h),this.gamma0=Math.asin(Math.sin(this.alpha)/e),this.long0=this.longc-Math.asin(n*Math.tan(this.gamma0))/this.bl;this.uc=this.no_off?0:this.lat0>=0?this.al/this.bl*Math.atan2(Math.sqrt(e*e-1),Math.cos(this.alpha)):-1*this.al/this.bl*Math.atan2(Math.sqrt(e*e-1),Math.cos(this.alpha))},forward:function(t){var i,s,h,n=t.y,r=L(t.x-this.long0);if(Math.abs(Math.abs(n)-u)<=1e-10)h=n>0?-1:1,s=this.al/this.bl*Math.log(Math.tan(l+h*this.gamma0*.5)),i=-1*h*u*this.al/this.bl;else{var e=I(this.e,n,Math.sin(n)),o=this.el/Math.pow(e,this.bl),a=.5*(o-1/o),f=.5*(o+1/o),c=Math.sin(this.bl*r),v=(a*Math.sin(this.gamma0)-c*Math.cos(this.gamma0))/f;s=Math.abs(Math.abs(v)-1)<=1e-10?Number.POSITIVE_INFINITY:.5*this.al*Math.log((1-v)/(1+v))/this.bl,i=Math.abs(Math.cos(this.bl*r))<=1e-10?this.al*this.bl*r:this.al*Math.atan2(a*Math.cos(this.gamma0)+c*Math.sin(this.gamma0),Math.cos(this.bl*r))/this.bl}return this.no_rot?(t.x=this.x0+i,t.y=this.y0+s):(i-=this.uc,t.x=this.x0+s*Math.cos(this.alpha)+i*Math.sin(this.alpha),t.y=this.y0+i*Math.cos(this.alpha)-s*Math.sin(this.alpha)),t},inverse:function(t){var i,s;this.no_rot?(s=t.y-this.y0,i=t.x-this.x0):(s=(t.x-this.x0)*Math.cos(this.alpha)-(t.y-this.y0)*Math.sin(this.alpha),i=(t.y-this.y0)*Math.cos(this.alpha)+(t.x-this.x0)*Math.sin(this.alpha),i+=this.uc);var h=Math.exp(-1*this.bl*s/this.al),n=.5*(h-1/h),r=.5*(h+1/h),e=Math.sin(this.bl*i/this.al),o=(e*Math.cos(this.gamma0)+n*Math.sin(this.gamma0))/r,a=Math.pow(this.el/Math.sqrt((1+o)/(1-o)),1/this.bl);return Math.abs(o-1)<1e-10?(t.x=this.long0,t.y=u):Math.abs(o+1)<1e-10?(t.x=this.long0,t.y=-1*u):(t.y=F(this.e,a),t.x=L(this.long0-Math.atan2(n*Math.cos(this.gamma0)-e*Math.sin(this.gamma0),Math.cos(this.bl*i/this.al))/this.bl)),t},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","omerc"]},Tt={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<1e-10)){var t=this.b/this.a;this.e=Math.sqrt(1-t*t);var i=Math.sin(this.lat1),s=Math.cos(this.lat1),h=T(this.e,i,s),n=I(this.e,this.lat1,i),r=Math.sin(this.lat2),e=Math.cos(this.lat2),o=T(this.e,r,e),a=I(this.e,this.lat2,r),u=I(this.e,this.lat0,Math.sin(this.lat0));this.ns=Math.abs(this.lat1-this.lat2)>1e-10?Math.log(h/o)/Math.log(n/a):i,isNaN(this.ns)&&(this.ns=i),this.f0=h/(this.ns*Math.pow(n,this.ns)),this.rh=this.a*this.f0*Math.pow(u,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(t){var i=t.x,s=t.y;Math.abs(2*Math.abs(s)-Math.PI)<=1e-10&&(s=O(s)*(u-2e-10));var h,n,r=Math.abs(Math.abs(s)-u);if(r>1e-10)h=I(this.e,s,Math.sin(s)),n=this.a*this.f0*Math.pow(h,this.ns);else{if((r=s*this.ns)<=0)return null;n=0}var e=this.ns*L(i-this.long0);return t.x=this.k0*(n*Math.sin(e))+this.x0,t.y=this.k0*(this.rh-n*Math.cos(e))+this.y0,t},inverse:function(t){var i,s,h,n,r,e=(t.x-this.x0)/this.k0,o=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(i=Math.sqrt(e*e+o*o),s=1):(i=-Math.sqrt(e*e+o*o),s=-1);var a=0;if(0!==i&&(a=Math.atan2(s*e,s*o)),0!==i||this.ns>0){if(s=1/this.ns,h=Math.pow(i/(this.a*this.f0),s),-9999===(n=F(this.e,h)))return null}else n=-u;return r=L(a/this.ns+this.long0),t.x=r,t.y=n,t},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_2SP","lcc"]},Ot={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(t){var i,s,h,n,r,e,o,a=t.y,u=L(t.x-this.long0);return i=Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.alfa*this.e/2),s=2*(Math.atan(this.k*Math.pow(Math.tan(a/2+this.s45),this.alfa)/i)-this.s45),h=-u*this.alfa,n=Math.asin(Math.cos(this.ad)*Math.sin(s)+Math.sin(this.ad)*Math.cos(s)*Math.cos(h)),r=Math.asin(Math.cos(s)*Math.sin(h)/Math.cos(n)),e=this.n*r,o=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(n/2+this.s45),this.n),t.y=o*Math.cos(e)/1,t.x=o*Math.sin(e)/1,this.czech||(t.y*=-1,t.x*=-1),t},inverse:function(t){var i,s,h,n,r,e,o,a=t.x;t.x=t.y,t.y=a,this.czech||(t.y*=-1,t.x*=-1),r=Math.sqrt(t.x*t.x+t.y*t.y),n=Math.atan2(t.y,t.x)/Math.sin(this.s0),h=2*(Math.atan(Math.pow(this.ro0/r,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),i=Math.asin(Math.cos(this.ad)*Math.sin(h)-Math.sin(this.ad)*Math.cos(h)*Math.cos(n)),s=Math.asin(Math.cos(h)*Math.sin(n)/Math.cos(i)),t.x=this.long0-s/this.alfa,e=i,o=0;var u=0;do{t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(i/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(e))/(1-this.e*Math.sin(e)),this.e/2))-this.s45),Math.abs(e-t.y)<1e-10&&(o=1),e=t.y,u+=1}while(0===o&&u<15);return u>=15?null:t},names:["Krovak","krovak"]};function Lt(t,i,s,h,n){return t*n-i*Math.sin(2*n)+s*Math.sin(4*n)-h*Math.sin(6*n)}function It(t){return 1-.25*t*(1+t/16*(3+1.25*t))}function Ft(t){return.375*t*(1+.25*t*(1+.46875*t))}function Dt(t){return.05859375*t*t*(1+.75*t)}function Gt(t){return t*t*t*(35/3072)}function Wt(t,i,s){var h=i*s;return t/Math.sqrt(1-h*h)}function Vt(t){return Math.abs(t)<u?t:t-O(t)*Math.PI}function jt(t,i,s,h,n){var r,e;r=t/i;for(var o=0;o<15;o++)if(r+=e=(t-(i*r-s*Math.sin(2*r)+h*Math.sin(4*r)-n*Math.sin(6*r)))/(i-2*s*Math.cos(2*r)+4*h*Math.cos(4*r)-6*n*Math.cos(6*r)),Math.abs(e)<=1e-10)return r;return NaN}const Ut={init:function(){this.sphere||(this.e0=It(this.es),this.e1=Ft(this.es),this.e2=Dt(this.es),this.e3=Gt(this.es),this.ml0=this.a*Lt(this.e0,this.e1,this.e2,this.e3,this.lat0))},forward:function(t){var i,s,h=t.x,n=t.y;if(h=L(h-this.long0),this.sphere)i=this.a*Math.asin(Math.cos(n)*Math.sin(h)),s=this.a*(Math.atan2(Math.tan(n),Math.cos(h))-this.lat0);else{var r=Math.sin(n),e=Math.cos(n),o=Wt(this.a,this.e,r),a=Math.tan(n)*Math.tan(n),u=h*Math.cos(n),f=u*u,c=this.es*e*e/(1-this.es);i=o*u*(1-f*a*(1/6-(8-a+8*c)*f/120)),s=this.a*Lt(this.e0,this.e1,this.e2,this.e3,n)-this.ml0+o*r/e*f*(.5+(5-a+6*c)*f/24)}return t.x=i+this.x0,t.y=s+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var i,s,h=t.x/this.a,n=t.y/this.a;if(this.sphere){var r=n+this.lat0;i=Math.asin(Math.sin(r)*Math.cos(h)),s=Math.atan2(Math.tan(h),Math.cos(r))}else{var e=jt(this.ml0/this.a+n,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(e)-u)<=1e-10)return t.x=this.long0,t.y=u,n<0&&(t.y*=-1),t;var o=Wt(this.a,this.e,Math.sin(e)),a=o*o*o/this.a/this.a*(1-this.es),f=Math.pow(Math.tan(e),2),c=h*this.a/o,l=c*c;i=e-o*Math.tan(e)/a*c*c*(.5-(1+3*f)*c*c/24),s=c*(1-l*(f/3+(1+3*f)*f*l/15))/Math.cos(e)}return t.x=L(s+this.long0),t.y=Vt(i),t},names:["Cassini","Cassini_Soldner","cass"]};function Xt(t,i){var s;return t>1e-7?(1-t*t)*(i/(1-(s=t*i)*s)-.5/t*Math.log((1-s)/(1+s))):2*i}const qt={init:function(){var t,i=Math.abs(this.lat0);if(this.mode=Math.abs(i-u)<1e-10?this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(i)<1e-10?this.EQUIT:this.OBLIQ,this.es>0)switch(this.qp=Xt(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(t){var i,s=[];return s[0]=.3333333333333333*t,s[0]+=.17222222222222222*(i=t*t),s[1]=.06388888888888888*i,s[0]+=.10257936507936508*(i*=t),s[1]+=.0664021164021164*i,s[2]=.016415012942191543*i,s}(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=Xt(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(t){var i,s,h,n,r,e,o,a,f,c,v=t.x,d=t.y;if(v=L(v-this.long0),this.sphere){if(r=Math.sin(d),c=Math.cos(d),h=Math.cos(v),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((s=this.mode===this.EQUIT?1+c*h:1+this.sinph0*r+this.cosph0*c*h)<=1e-10)return null;i=(s=Math.sqrt(2/s))*c*Math.sin(v),s*=this.mode===this.EQUIT?r:this.cosph0*r-this.sinph0*c*h}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(h=-h),Math.abs(d+this.phi0)<1e-10)return null;s=l-.5*d,i=(s=2*(this.mode===this.S_POLE?Math.cos(s):Math.sin(s)))*Math.sin(v),s*=h}}else{switch(o=0,a=0,f=0,h=Math.cos(v),n=Math.sin(v),r=Math.sin(d),e=Xt(this.e,r),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(o=e/this.qp,a=Math.sqrt(1-o*o)),this.mode){case this.OBLIQ:f=1+this.sinb1*o+this.cosb1*a*h;break;case this.EQUIT:f=1+a*h;break;case this.N_POLE:f=u+d,e=this.qp-e;break;case this.S_POLE:f=d-u,e=this.qp+e}if(Math.abs(f)<1e-10)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:f=Math.sqrt(2/f),s=this.mode===this.OBLIQ?this.ymf*f*(this.cosb1*o-this.sinb1*a*h):(f=Math.sqrt(2/(1+a*h)))*o*this.ymf,i=this.xmf*f*a*n;break;case this.N_POLE:case this.S_POLE:e>=0?(i=(f=Math.sqrt(e))*n,s=h*(this.mode===this.S_POLE?f:-f)):i=s=0}}return t.x=this.a*i+this.x0,t.y=this.a*s+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var i,s,h,n,r,e,o,a,f,c,l=t.x/this.a,v=t.y/this.a;if(this.sphere){var d,M=0,m=0;if((s=.5*(d=Math.sqrt(l*l+v*v)))>1)return null;switch(s=2*Math.asin(s),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(m=Math.sin(s),M=Math.cos(s)),this.mode){case this.EQUIT:s=Math.abs(d)<=1e-10?0:Math.asin(v*m/d),l*=m,v=M*d;break;case this.OBLIQ:s=Math.abs(d)<=1e-10?this.phi0:Math.asin(M*this.sinph0+v*m*this.cosph0/d),l*=m*this.cosph0,v=(M-Math.sin(s)*this.sinph0)*d;break;case this.N_POLE:v=-v,s=u-s;break;case this.S_POLE:s-=u}i=0!==v||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(l,v):0}else{if(o=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(l/=this.dd,v*=this.dd,(e=Math.sqrt(l*l+v*v))<1e-10)return t.x=0,t.y=this.phi0,t;n=2*Math.asin(.5*e/this.rq),h=Math.cos(n),l*=n=Math.sin(n),this.mode===this.OBLIQ?(r=this.qp*(o=h*this.sinb1+v*n*this.cosb1/e),v=e*this.cosb1*h-v*this.sinb1*n):(r=this.qp*(o=v*n/e),v=e*h)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(v=-v),!(r=l*l+v*v))return t.x=0,t.y=this.phi0,t;o=1-r/this.qp,this.mode===this.S_POLE&&(o=-o)}i=Math.atan2(l,v),c=(a=Math.asin(o))+a,s=a+(f=this.apa)[0]*Math.sin(c)+f[1]*Math.sin(c+c)+f[2]*Math.sin(c+c+c)}return t.x=L(this.long0+i),t.y=s,t},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4};function Yt(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)}const Bt={init:function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=T(this.e3,this.sin_po,this.cos_po),this.qs1=Xt(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=T(this.e3,this.sin_po,this.cos_po),this.qs2=Xt(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Xt(this.e3,this.sin_po),this.ns0=Math.abs(this.lat1-this.lat2)>1e-10?(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(t){var i=t.x,s=t.y;this.sin_phi=Math.sin(s),this.cos_phi=Math.cos(s);var h=Xt(this.e3,this.sin_phi),n=this.a*Math.sqrt(this.c-this.ns0*h)/this.ns0,r=this.ns0*L(i-this.long0),e=n*Math.sin(r)+this.x0,o=this.rh-n*Math.cos(r)+this.y0;return t.x=e,t.y=o,t},inverse:function(t){var i,s,h,n,r;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(i=Math.sqrt(t.x*t.x+t.y*t.y),s=1):(i=-Math.sqrt(t.x*t.x+t.y*t.y),s=-1),h=0,0!==i&&(h=Math.atan2(s*t.x,s*t.y)),s=i*this.ns0/this.a,r=this.sphere?Math.asin((this.c-s*s)/(2*this.ns0)):this.phi1z(this.e3,(this.c-s*s)/this.ns0),n=L(h/this.ns0+this.long0),t.x=n,t.y=r,t},names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:function(t,i){var s,h,n,r,e=Yt(.5*i);if(t<1e-10)return e;for(var o=t*t,a=1;a<=25;a++)if(e+=r=.5*(n=1-(h=t*(s=Math.sin(e)))*h)*n/Math.cos(e)*(i/(1-o)-s/n+.5/t*Math.log((1-h)/(1+h))),Math.abs(r)<=1e-7)return e;return null}},Ht={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(t){var i,s,h,n,r,e,o,a=t.y;return h=L(t.x-this.long0),i=Math.sin(a),s=Math.cos(a),n=Math.cos(h),(r=this.sin_p14*i+this.cos_p14*s*n)>0||Math.abs(r)<=1e-10?(e=this.x0+1*this.a*s*Math.sin(h)/r,o=this.y0+1*this.a*(this.cos_p14*i-this.sin_p14*s*n)/r):(e=this.x0+this.infinity_dist*s*Math.sin(h),o=this.y0+this.infinity_dist*(this.cos_p14*i-this.sin_p14*s*n)),t.x=e,t.y=o,t},inverse:function(t){var i,s,h,n,r,e;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(i=Math.sqrt(t.x*t.x+t.y*t.y))?(n=Math.atan2(i,this.rc),s=Math.sin(n),e=Yt((h=Math.cos(n))*this.sin_p14+t.y*s*this.cos_p14/i),r=Math.atan2(t.x*s,i*this.cos_p14*h-t.y*this.sin_p14*s),r=L(this.long0+r)):(e=this.phic0,r=0),t.x=r,t.y=e,t},names:["gnom"]},Jt={init:function(){this.sphere||(this.k0=T(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(t){var i,s,h=t.y,n=L(t.x-this.long0);if(this.sphere)i=this.x0+this.a*n*Math.cos(this.lat_ts),s=this.y0+this.a*Math.sin(h)/Math.cos(this.lat_ts);else{var r=Xt(this.e,Math.sin(h));i=this.x0+this.a*this.k0*n,s=this.y0+this.a*r*.5/this.k0}return t.x=i,t.y=s,t},inverse:function(t){var i,s;return t.x-=this.x0,t.y-=this.y0,this.sphere?(i=L(this.long0+t.x/this.a/Math.cos(this.lat_ts)),s=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(s=function(t,i){var s=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(i)-s)<1e-6)return i<0?-1*u:u;for(var h,n,r,e,o=Math.asin(.5*i),a=0;a<30;a++)if(n=Math.sin(o),r=Math.cos(o),e=t*n,o+=h=Math.pow(1-e*e,2)/(2*r)*(i/(1-t*t)-n/(1-e*e)+.5/t*Math.log((1-e)/(1+e))),Math.abs(h)<=1e-10)return o;return NaN}(this.e,2*t.y*this.k0/this.a),i=L(this.long0+t.x/(this.a*this.k0))),t.x=i,t.y=s,t},names:["cea"]},Zt={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(t){var i=t.y,s=L(t.x-this.long0),h=Vt(i-this.lat0);return t.x=this.x0+this.a*s*this.rc,t.y=this.y0+this.a*h,t},inverse:function(t){var i=t.y;return t.x=L(this.long0+(t.x-this.x0)/(this.a*this.rc)),t.y=Vt(this.lat0+(i-this.y0)/this.a),t},names:["Equirectangular","Equidistant_Cylindrical","eqc"]},Kt={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=It(this.es),this.e1=Ft(this.es),this.e2=Dt(this.es),this.e3=Gt(this.es),this.ml0=this.a*Lt(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(t){var i,s,h,n=t.y,r=L(t.x-this.long0);if(h=r*Math.sin(n),this.sphere)Math.abs(n)<=1e-10?(i=this.a*r,s=-1*this.a*this.lat0):(i=this.a*Math.sin(h)/Math.tan(n),s=this.a*(Vt(n-this.lat0)+(1-Math.cos(h))/Math.tan(n)));else if(Math.abs(n)<=1e-10)i=this.a*r,s=-1*this.ml0;else{var e=Wt(this.a,this.e,Math.sin(n))/Math.tan(n);i=e*Math.sin(h),s=this.a*Lt(this.e0,this.e1,this.e2,this.e3,n)-this.ml0+e*(1-Math.cos(h))}return t.x=i+this.x0,t.y=s+this.y0,t},inverse:function(t){var i,s,h,n,r,e,o,a,u;if(h=t.x-this.x0,n=t.y-this.y0,this.sphere)if(Math.abs(n+this.a*this.lat0)<=1e-10)i=L(h/this.a+this.long0),s=0;else{var f;for(o=h*h/this.a/this.a+(e=this.lat0+n/this.a)*e,a=e,r=20;r;--r)if(a+=u=-1*(e*(a*(f=Math.tan(a))+1)-a-.5*(a*a+o)*f)/((a-e)/f-1),Math.abs(u)<=1e-10){s=a;break}i=L(this.long0+Math.asin(h*Math.tan(a)/this.a)/Math.sin(s))}else if(Math.abs(n+this.ml0)<=1e-10)s=0,i=L(this.long0+h/this.a);else{var c,l,v,d,M;for(o=h*h/this.a/this.a+(e=(this.ml0+n)/this.a)*e,a=e,r=20;r;--r)if(M=this.e*Math.sin(a),c=Math.sqrt(1-M*M)*Math.tan(a),l=this.a*Lt(this.e0,this.e1,this.e2,this.e3,a),v=this.e0-2*this.e1*Math.cos(2*a)+4*this.e2*Math.cos(4*a)-6*this.e3*Math.cos(6*a),a-=u=(e*(c*(d=l/this.a)+1)-d-.5*c*(d*d+o))/(this.es*Math.sin(2*a)*(d*d+o-2*e*d)/(4*c)+(e-d)*(c*v-2/Math.sin(2*a))-v),Math.abs(u)<=1e-10){s=a;break}c=Math.sqrt(1-this.es*Math.pow(Math.sin(s),2))*Math.tan(s),i=L(this.long0+Math.asin(h*c/this.a)/Math.sin(s))}return t.x=i,t.y=s,t},names:["Polyconic","poly"]},Qt={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(t){var i,s=(t.y-this.lat0)/a*1e-5,h=t.x-this.long0,n=1,r=0;for(i=1;i<=10;i++)r+=this.A[i]*(n*=s);var e,o=r,u=h,f=1,c=0,l=0,v=0;for(i=1;i<=6;i++)e=c*o+f*u,l=l+this.B_re[i]*(f=f*o-c*u)-this.B_im[i]*(c=e),v=v+this.B_im[i]*f+this.B_re[i]*c;return t.x=v*this.a+this.x0,t.y=l*this.a+this.y0,t},inverse:function(t){var i,s,h=(t.y-this.y0)/this.a,n=(t.x-this.x0)/this.a,r=1,e=0,o=0,u=0;for(i=1;i<=6;i++)s=e*h+r*n,o=o+this.C_re[i]*(r=r*h-e*n)-this.C_im[i]*(e=s),u=u+this.C_im[i]*r+this.C_re[i]*e;for(var f=0;f<this.iterations;f++){var c,l=o,v=u,d=h,M=n;for(i=2;i<=6;i++)c=v*o+l*u,d+=(i-1)*(this.B_re[i]*(l=l*o-v*u)-this.B_im[i]*(v=c)),M+=(i-1)*(this.B_im[i]*l+this.B_re[i]*v);l=1,v=0;var m=this.B_re[1],p=this.B_im[1];for(i=2;i<=6;i++)c=v*o+l*u,m+=i*(this.B_re[i]*(l=l*o-v*u)-this.B_im[i]*(v=c)),p+=i*(this.B_im[i]*l+this.B_re[i]*v);var g=m*m+p*p;o=(d*m+M*p)/g,u=(M*m-d*p)/g}var _=o,w=u,y=1,b=0;for(i=1;i<=9;i++)b+=this.D[i]*(y*=_);var x=this.lat0+b*a*1e5;return t.x=this.long0+w,t.y=x,t},names:["New_Zealand_Map_Grid","nzmg"]},$t={init:function(){},forward:function(t){var i=t.y,s=L(t.x-this.long0),h=this.x0+this.a*s,n=this.y0+this.a*Math.log(Math.tan(Math.PI/4+i/2.5))*1.25;return t.x=h,t.y=n,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var i=L(this.long0+t.x/this.a),s=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=i,t.y=s,t},names:["Miller_Cylindrical","mill"]},ti={init:function(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=pt(this.es)},forward:function(t){var i,s,h=t.x,n=t.y;if(h=L(h-this.long0),this.sphere){if(this.m)for(var r=this.n*Math.sin(n),e=20;e;--e){var o=(this.m*n+Math.sin(n)-r)/(this.m+Math.cos(n));if(n-=o,Math.abs(o)<1e-10)break}else n=1!==this.n?Math.asin(this.n*Math.sin(n)):n;i=this.a*this.C_x*h*(this.m+Math.cos(n)),s=this.a*this.C_y*n}else{var a=Math.sin(n),u=Math.cos(n);s=this.a*gt(n,a,u,this.en),i=this.a*h*u/Math.sqrt(1-this.es*a*a)}return t.x=i,t.y=s,t},inverse:function(t){var i,s,h;return t.x-=this.x0,s=t.x/this.a,t.y-=this.y0,i=t.y/this.a,this.sphere?(i/=this.C_y,s/=this.C_x*(this.m+Math.cos(i)),this.m?i=Yt((this.m*i+Math.sin(i))/this.n):1!==this.n&&(i=Yt(Math.sin(i)/this.n)),s=L(s+this.long0),i=Vt(i)):(i=_t(t.y/this.a,this.es,this.en),(h=Math.abs(i))<u?(h=Math.sin(i),s=L(this.long0+t.x*Math.sqrt(1-this.es*h*h)/(this.a*Math.cos(i)))):h-1e-10<u&&(s=this.long0)),t.x=s,t.y=i,t},names:["Sinusoidal","sinu"]},ii={init:function(){},forward:function(t){for(var i=t.y,s=L(t.x-this.long0),h=i,n=Math.PI*Math.sin(i);;){var r=-(h+Math.sin(h)-n)/(1+Math.cos(h));if(h+=r,Math.abs(r)<1e-10)break}h/=2,Math.PI/2-Math.abs(i)<1e-10&&(s=0);var e=.900316316158*this.a*s*Math.cos(h)+this.x0,o=1.4142135623731*this.a*Math.sin(h)+this.y0;return t.x=e,t.y=o,t},inverse:function(t){var i,s;t.x-=this.x0,t.y-=this.y0,s=t.y/(1.4142135623731*this.a),Math.abs(s)>.999999999999&&(s=.999999999999),i=Math.asin(s);var h=L(this.long0+t.x/(.900316316158*this.a*Math.cos(i)));h<-Math.PI&&(h=-Math.PI),h>Math.PI&&(h=Math.PI),s=(2*i+Math.sin(2*i))/Math.PI,Math.abs(s)>1&&(s=1);var n=Math.asin(s);return t.x=h,t.y=n,t},names:["Mollweide","moll"]},si={init:function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=It(this.es),this.e1=Ft(this.es),this.e2=Dt(this.es),this.e3=Gt(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=T(this.e,this.sinphi,this.cosphi),this.ml1=Lt(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<1e-10?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=T(this.e,this.sinphi,this.cosphi),this.ml2=Lt(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=Lt(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(t){var i,s=t.x,h=t.y;if(this.sphere)i=this.a*(this.g-h);else{var n=Lt(this.e0,this.e1,this.e2,this.e3,h);i=this.a*(this.g-n)}var r=this.ns*L(s-this.long0),e=this.x0+i*Math.sin(r),o=this.y0+this.rh-i*Math.cos(r);return t.x=e,t.y=o,t},inverse:function(t){var i,s,h,n;t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns>=0?(s=Math.sqrt(t.x*t.x+t.y*t.y),i=1):(s=-Math.sqrt(t.x*t.x+t.y*t.y),i=-1);var r=0;return 0!==s&&(r=Math.atan2(i*t.x,i*t.y)),this.sphere?(n=L(this.long0+r/this.ns),h=Vt(this.g-s/this.a),t.x=n,t.y=h,t):(h=jt(this.g-s/this.a,this.e0,this.e1,this.e2,this.e3),n=L(this.long0+r/this.ns),t.x=n,t.y=h,t)},names:["Equidistant_Conic","eqdc"]},hi={init:function(){this.R=this.a},forward:function(t){var i,s,h=t.y,n=L(t.x-this.long0);Math.abs(h)<=1e-10&&(i=this.x0+this.R*n,s=this.y0);var r=Yt(2*Math.abs(h/Math.PI));(Math.abs(n)<=1e-10||Math.abs(Math.abs(h)-u)<=1e-10)&&(i=this.x0,s=h>=0?this.y0+Math.PI*this.R*Math.tan(.5*r):this.y0+Math.PI*this.R*-Math.tan(.5*r));var e=.5*Math.abs(Math.PI/n-n/Math.PI),o=e*e,a=Math.sin(r),f=Math.cos(r),c=f/(a+f-1),l=c*(2/a-1),v=l*l,d=Math.PI*this.R*(e*(c-v)+Math.sqrt(o*(c-v)*(c-v)-(v+o)*(c*c-v)))/(v+o);n<0&&(d=-d),i=this.x0+d;var M=o+c;return d=Math.PI*this.R*(l*M-e*Math.sqrt((v+o)*(o+1)-M*M))/(v+o),s=h>=0?this.y0+d:this.y0-d,t.x=i,t.y=s,t},inverse:function(t){var i,s,h,n,r,e,o,a,u,f,c,l;return t.x-=this.x0,t.y-=this.y0,c=Math.PI*this.R,r=(h=t.x/c)*h+(n=t.y/c)*n,c=3*(n*n/(a=-2*(e=-Math.abs(n)*(1+r))+1+2*n*n+r*r)+(2*(o=e-2*n*n+h*h)*o*o/a/a/a-9*e*o/a/a)/27)/(u=(e-o*o/3/a)/a)/(f=2*Math.sqrt(-u/3)),Math.abs(c)>1&&(c=c>=0?1:-1),l=Math.acos(c)/3,s=t.y>=0?(-f*Math.cos(l+Math.PI/3)-o/3/a)*Math.PI:-(-f*Math.cos(l+Math.PI/3)-o/3/a)*Math.PI,i=Math.abs(h)<1e-10?this.long0:L(this.long0+Math.PI*(r-1+Math.sqrt(1+2*(h*h-n*n)+r*r))/2/h),t.x=i,t.y=s,t},names:["Van_der_Grinten_I","VanDerGrinten","vandg"]},ni={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)},forward:function(t){var i,s,h,n,r,e,o,a,f,c,l,v,d,M,m,p,g,_,w,y,b,x,E=t.x,S=t.y,C=Math.sin(t.y),A=Math.cos(t.y),P=L(E-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=1e-10?(t.x=this.x0+this.a*(u-S)*Math.sin(P),t.y=this.y0-this.a*(u-S)*Math.cos(P),t):Math.abs(this.sin_p12+1)<=1e-10?(t.x=this.x0+this.a*(u+S)*Math.sin(P),t.y=this.y0+this.a*(u+S)*Math.cos(P),t):(_=this.sin_p12*C+this.cos_p12*A*Math.cos(P),g=(p=Math.acos(_))/Math.sin(p),t.x=this.x0+this.a*g*A*Math.sin(P),t.y=this.y0+this.a*g*(this.cos_p12*C-this.sin_p12*A*Math.cos(P)),t):(i=It(this.es),s=Ft(this.es),h=Dt(this.es),n=Gt(this.es),Math.abs(this.sin_p12-1)<=1e-10?(r=this.a*Lt(i,s,h,n,u),e=this.a*Lt(i,s,h,n,S),t.x=this.x0+(r-e)*Math.sin(P),t.y=this.y0-(r-e)*Math.cos(P),t):Math.abs(this.sin_p12+1)<=1e-10?(r=this.a*Lt(i,s,h,n,u),e=this.a*Lt(i,s,h,n,S),t.x=this.x0+(r+e)*Math.sin(P),t.y=this.y0+(r+e)*Math.cos(P),t):(o=C/A,a=Wt(this.a,this.e,this.sin_p12),f=Wt(this.a,this.e,C),c=Math.atan((1-this.es)*o+this.es*a*this.sin_p12/(f*A)),w=0===(l=Math.atan2(Math.sin(P),this.cos_p12*Math.tan(c)-this.sin_p12*Math.cos(P)))?Math.asin(this.cos_p12*Math.sin(c)-this.sin_p12*Math.cos(c)):Math.abs(Math.abs(l)-Math.PI)<=1e-10?-Math.asin(this.cos_p12*Math.sin(c)-this.sin_p12*Math.cos(c)):Math.asin(Math.sin(P)*Math.cos(c)/Math.sin(l)),v=this.e*this.sin_p12/Math.sqrt(1-this.es),d=this.e*this.cos_p12*Math.cos(l)/Math.sqrt(1-this.es),t.x=this.x0+(p=a*w*(1-(y=w*w)*(m=d*d)*(1-m)/6+(b=y*w)/8*(M=v*d)*(1-2*m)+(x=b*w)/120*(m*(4-7*m)-3*v*v*(1-7*m))-x*w/48*M))*Math.sin(l),t.y=this.y0+p*Math.cos(l),t))},inverse:function(t){var i,s,h,n,r,e,o,a,f,c,l,v,d,M,m,p,g,_,w,y,b,x;if(t.x-=this.x0,t.y-=this.y0,this.sphere){if((i=Math.sqrt(t.x*t.x+t.y*t.y))>2*u*this.a)return;return s=i/this.a,h=Math.sin(s),n=Math.cos(s),r=this.long0,Math.abs(i)<=1e-10?e=this.lat0:(e=Yt(n*this.sin_p12+t.y*h*this.cos_p12/i),o=Math.abs(this.lat0)-u,r=Math.abs(o)<=1e-10?L(this.lat0>=0?this.long0+Math.atan2(t.x,-t.y):this.long0-Math.atan2(-t.x,t.y)):L(this.long0+Math.atan2(t.x*h,i*this.cos_p12*n-t.y*this.sin_p12*h))),t.x=r,t.y=e,t}return a=It(this.es),f=Ft(this.es),c=Dt(this.es),l=Gt(this.es),Math.abs(this.sin_p12-1)<=1e-10?(e=jt(((v=this.a*Lt(a,f,c,l,u))-(i=Math.sqrt(t.x*t.x+t.y*t.y)))/this.a,a,f,c,l),r=L(this.long0+Math.atan2(t.x,-1*t.y)),t.x=r,t.y=e,t):Math.abs(this.sin_p12+1)<=1e-10?(v=this.a*Lt(a,f,c,l,u),e=jt(((i=Math.sqrt(t.x*t.x+t.y*t.y))-v)/this.a,a,f,c,l),r=L(this.long0+Math.atan2(t.x,t.y)),t.x=r,t.y=e,t):(i=Math.sqrt(t.x*t.x+t.y*t.y),m=Math.atan2(t.x,t.y),d=Wt(this.a,this.e,this.sin_p12),p=Math.cos(m),w=3*this.es*(1-(_=-(g=this.e*this.cos_p12*p)*g/(1-this.es)))*this.sin_p12*this.cos_p12*p/(1-this.es),x=1-_*(b=(y=i/d)-_*(1+_)*Math.pow(y,3)/6-w*(1+3*_)*Math.pow(y,4)/24)*b/2-y*b*b*b/6,M=Math.asin(this.sin_p12*Math.cos(b)+this.cos_p12*Math.sin(b)*p),r=L(this.long0+Math.asin(Math.sin(m)*Math.sin(b)/Math.cos(M))),e=Math.atan((1-this.es*x*this.sin_p12/Math.sin(M))*Math.tan(M)/(1-this.es)),t.x=r,t.y=e,t)},names:["Azimuthal_Equidistant","aeqd"]},ri={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(t){var i,s,h,n,r,e,o,a=t.y;return h=L(t.x-this.long0),i=Math.sin(a),s=Math.cos(a),n=Math.cos(h),((r=this.sin_p14*i+this.cos_p14*s*n)>0||Math.abs(r)<=1e-10)&&(e=1*this.a*s*Math.sin(h),o=this.y0+1*this.a*(this.cos_p14*i-this.sin_p14*s*n)),t.x=e,t.y=o,t},inverse:function(t){var i,s,h,n,r,e,o;return t.x-=this.x0,t.y-=this.y0,s=Yt((i=Math.sqrt(t.x*t.x+t.y*t.y))/this.a),h=Math.sin(s),n=Math.cos(s),e=this.long0,Math.abs(i)<=1e-10?(o=this.lat0,t.x=e,t.y=o,t):(o=Yt(n*this.sin_p14+t.y*h*this.cos_p14/i),r=Math.abs(this.lat0)-u,Math.abs(r)<=1e-10?(e=L(this.lat0>=0?this.long0+Math.atan2(t.x,-t.y):this.long0-Math.atan2(-t.x,t.y)),t.x=e,t.y=o,t):(e=L(this.long0+Math.atan2(t.x*h,i*this.cos_p14*n-t.y*this.sin_p14*h)),t.x=e,t.y=o,t))},names:["ortho"]};function ei(t,i,s,h){var n;return t<1e-10?(h.value=1,n=0):(n=Math.atan2(i,s),Math.abs(n)<=l?h.value=1:n>l&&n<=u+l?(h.value=2,n-=u):n>u+l||n<=-(u+l)?(h.value=3,n=n>=0?n-d:n+d):(h.value=4,n+=u)),n}function oi(t,i){var s=t+i;return s<-d?s+=v:s>+d&&(s-=v),s}const ai={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.face=this.lat0>=u-l/2?5:this.lat0<=-(u-l/2)?6:Math.abs(this.long0)<=l?1:Math.abs(this.long0)<=u+l?this.long0>0?2:4:3,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(t){var i,s,h,n,r,e,o={x:0,y:0},a={value:0};if(t.x-=this.long0,i=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,s=t.x,5===this.face)n=u-i,s>=l&&s<=u+l?(a.value=1,h=s-u):s>u+l||s<=-(u+l)?(a.value=2,h=s>0?s-d:s+d):s>-(u+l)&&s<=-l?(a.value=3,h=s+u):(a.value=4,h=s);else if(6===this.face)n=u+i,s>=l&&s<=u+l?(a.value=1,h=-s+u):s<l&&s>=-l?(a.value=2,h=-s):s<-l&&s>=-(u+l)?(a.value=3,h=-s-u):(a.value=4,h=s>0?-s+d:-s-d);else{var f,c,v,M,m,p;2===this.face?s=oi(s,+u):3===this.face?s=oi(s,+d):4===this.face&&(s=oi(s,-u)),M=Math.sin(i),m=Math.cos(i),p=Math.sin(s),f=m*Math.cos(s),c=m*p,v=M,1===this.face?h=ei(n=Math.acos(f),v,c,a):2===this.face?h=ei(n=Math.acos(c),v,-f,a):3===this.face?h=ei(n=Math.acos(-f),v,-c,a):4===this.face?h=ei(n=Math.acos(-c),v,f,a):(n=h=0,a.value=1)}return e=Math.atan(12/d*(h+Math.acos(Math.sin(h)*Math.cos(l))-u)),r=Math.sqrt((1-Math.cos(n))/(Math.cos(e)*Math.cos(e))/(1-Math.cos(Math.atan(1/Math.cos(h))))),2===a.value?e+=u:3===a.value?e+=d:4===a.value&&(e+=1.5*d),o.x=r*Math.cos(e),o.y=r*Math.sin(e),o.x=o.x*this.a+this.x0,o.y=o.y*this.a+this.y0,t.x=o.x,t.y=o.y,t},inverse:function(t){var i,s,h,n,r,e,o,a,f,c,l,v,M={lam:0,phi:0},m={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,s=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),i=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?m.value=1:t.y>=0&&t.y>=Math.abs(t.x)?(m.value=2,i-=u):t.x<0&&-t.x>=Math.abs(t.y)?(m.value=3,i=i<0?i+d:i-d):(m.value=4,i+=u),f=d/12*Math.tan(i),r=Math.sin(f)/(Math.cos(f)-1/Math.sqrt(2)),e=Math.atan(r),(o=1-(h=Math.cos(i))*h*(n=Math.tan(s))*n*(1-Math.cos(Math.atan(1/Math.cos(e)))))<-1?o=-1:o>1&&(o=1),5===this.face)a=Math.acos(o),M.phi=u-a,M.lam=1===m.value?e+u:2===m.value?e<0?e+d:e-d:3===m.value?e-u:e;else if(6===this.face)a=Math.acos(o),M.phi=a-u,M.lam=1===m.value?-e+u:2===m.value?-e:3===m.value?-e-u:e<0?-e-d:-e+d;else{var p,g,_;f=(p=o)*p,g=(f+=(_=f>=1?0:Math.sqrt(1-f)*Math.sin(e))*_)>=1?0:Math.sqrt(1-f),2===m.value?(f=g,g=-_,_=f):3===m.value?(g=-g,_=-_):4===m.value&&(f=g,g=_,_=-f),2===this.face?(f=p,p=-g,g=f):3===this.face?(p=-p,g=-g):4===this.face&&(f=p,p=g,g=-f),M.phi=Math.acos(-_)-u,M.lam=Math.atan2(g,p),2===this.face?M.lam=oi(M.lam,-u):3===this.face?M.lam=oi(M.lam,-d):4===this.face&&(M.lam=oi(M.lam,+u))}return 0!==this.es&&(c=M.phi<0?1:0,l=Math.tan(M.phi),v=this.b/Math.sqrt(l*l+this.one_minus_f_squared),M.phi=Math.atan(Math.sqrt(this.a*this.a-v*v)/(this.one_minus_f*v)),c&&(M.phi=-M.phi)),M.lam+=this.long0,t.x=M.lam,t.y=M.phi,t},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]};st.defaultDatum="WGS84",st.Proj=B,st.WGS84=new st.Proj("WGS84"),st.Point=Mt,st.toPoint=Z,st.defs=N,st.transform=Q,st.mgrs=et,st.version="2.4.4",function(t){t.Proj.projections.add(wt),t.Proj.projections.add(St),t.Proj.projections.add(Ct),t.Proj.projections.add(Rt),t.Proj.projections.add(Nt),t.Proj.projections.add(zt),t.Proj.projections.add(kt),t.Proj.projections.add(Tt),t.Proj.projections.add(Ot),t.Proj.projections.add(Ut),t.Proj.projections.add(qt),t.Proj.projections.add(Bt),t.Proj.projections.add(Ht),t.Proj.projections.add(Jt),t.Proj.projections.add(Zt),t.Proj.projections.add(Kt),t.Proj.projections.add(Qt),t.Proj.projections.add($t),t.Proj.projections.add(ti),t.Proj.projections.add(ii),t.Proj.projections.add(si),t.Proj.projections.add(hi),t.Proj.projections.add(ni),t.Proj.projections.add(ri),t.Proj.projections.add(ai)}(st);var ui={ASSUME_TOUCH:!1,DEFAULT_MAX_ZOOM:42,DEFAULT_MIN_ZOOM:0,DEFAULT_RASTER_REPROJECTION_ERROR_THRESHOLD:.5,DEFAULT_TILE_SIZE:256,DEFAULT_WMS_VERSION:"1.3.0",ENABLE_CANVAS:!0,ENABLE_PROJ4JS:!0,ENABLE_RASTER_REPROJECTION:!0,ENABLE_WEBGL:!0,DEBUG_WEBGL:!0,INITIAL_ATLAS_SIZE:256,MAX_ATLAS_SIZE:-1,MOUSEWHEELZOOM_MAXDELTA:1,OVERVIEWMAP_MAX_RATIO:.75,OVERVIEWMAP_MIN_RATIO:.1,RASTER_REPROJECTION_MAX_SOURCE_TILES:100,RASTER_REPROJECTION_MAX_SUBDIVISION:10,RASTER_REPROJECTION_MAX_TRIANGLE_WIDTH:.25,SIMPLIFY_TOLERANCE:.5,WEBGL_TEXTURE_CACHE_HIGH_WATER_MARK:1024,VERSION:"v4.6.5",inherits:function(t,i){t.prototype=Object.create(i.prototype),t.prototype.constructor=t},nullFunction:function(){},getUid:function(t){return t.ol_uid||(t.ol_uid=++ui.uidCounter_)},uidCounter_:0},fi={};fi.assign="function"==typeof Object.assign?Object.assign:function(t,i){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var s=Object(t),h=1,n=arguments.length;h<n;++h){var r=arguments[h];if(null!=r)for(var e in r)r.hasOwnProperty(e)&&(s[e]=r[e])}return s},fi.clear=function(t){for(var i in t)delete t[i]},fi.getValues=function(t){var i=[];for(var s in t)i.push(t[s]);return i},fi.isEmpty=function(t){var i;for(i in t)return!1;return!i};var ci={bindListener_:function(t){var i=function(i){var s=t.listener,h=t.bindTo||t.target;return t.callOnce&&ci.unlistenByKey(t),s.call(h,i)};return t.boundListener=i,i},findListener_:function(t,i,s,h){for(var n,r=0,e=t.length;r<e;++r)if((n=t[r]).listener===i&&n.bindTo===s)return h&&(n.deleteIndex=r),n},getListeners:function(t,i){var s=t.ol_lm;return s?s[i]:void 0},getListenerMap_:function(t){var i=t.ol_lm;return i||(i=t.ol_lm={}),i},removeListeners_:function(t,i){var s=ci.getListeners(t,i);if(s){for(var h=0,n=s.length;h<n;++h)t.removeEventListener(i,s[h].boundListener),fi.clear(s[h]);s.length=0;var r=t.ol_lm;r&&(delete r[i],0===Object.keys(r).length&&delete t.ol_lm)}},listen:function(t,i,s,h,n){var r=ci.getListenerMap_(t),e=r[i];e||(e=r[i]=[]);var o=ci.findListener_(e,s,h,!1);return o?n||(o.callOnce=!1):(t.addEventListener(i,ci.bindListener_(o={bindTo:h,callOnce:!!n,listener:s,target:t,type:i})),e.push(o)),o},listenOnce:function(t,i,s,h){return ci.listen(t,i,s,h,!0)},unlisten:function(t,i,s,h){var n=ci.getListeners(t,i);if(n){var r=ci.findListener_(n,s,h,!0);r&&ci.unlistenByKey(r)}},unlistenByKey:function(t){if(t&&t.target){t.target.removeEventListener(t.type,t.boundListener);var i=ci.getListeners(t.target,t.type);if(i){var s="deleteIndex"in t?t.deleteIndex:i.indexOf(t);-1!==s&&i.splice(s,1),0===i.length&&ci.removeListeners_(t.target,t.type)}fi.clear(t)}},unlistenAll:function(t){var i=ci.getListenerMap_(t);for(var s in i)ci.removeListeners_(t,s)}},li=function(){};li.prototype.disposed_=!1,li.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())},li.prototype.disposeInternal=ui.nullFunction;var vi=function(t){this.type=t,this.target=null};vi.prototype.preventDefault=vi.prototype.stopPropagation=function(){this.propagationStopped=!0},vi.stopPropagation=function(t){t.stopPropagation()},vi.preventDefault=function(t){t.preventDefault()};var di=function(){li.call(this),this.pendingRemovals_={},this.dispatching_={},this.listeners_={}};ui.inherits(di,li),di.prototype.addEventListener=function(t,i){var s=this.listeners_[t];s||(s=this.listeners_[t]=[]),-1===s.indexOf(i)&&s.push(i)},di.prototype.dispatchEvent=function(t){var i="string"==typeof t?new vi(t):t,s=i.type;i.target=this;var h,n=this.listeners_[s];if(n){s in this.dispatching_||(this.dispatching_[s]=0,this.pendingRemovals_[s]=0),++this.dispatching_[s];for(var r=0,e=n.length;r<e;++r)if(!1===n[r].call(this,i)||i.propagationStopped){h=!1;break}if(--this.dispatching_[s],0===this.dispatching_[s]){var o=this.pendingRemovals_[s];for(delete this.pendingRemovals_[s];o--;)this.removeEventListener(s,ui.nullFunction);delete this.dispatching_[s]}return h}},di.prototype.disposeInternal=function(){ci.unlistenAll(this)},di.prototype.getListeners=function(t){return this.listeners_[t]},di.prototype.hasListener=function(t){return t?t in this.listeners_:Object.keys(this.listeners_).length>0},di.prototype.removeEventListener=function(t,i){var s=this.listeners_[t];if(s){var h=s.indexOf(i);t in this.pendingRemovals_?(s[h]=ui.nullFunction,++this.pendingRemovals_[t]):(s.splice(h,1),0===s.length&&delete this.listeners_[t])}};var Mi=function(){di.call(this),this.revision_=0};ui.inherits(Mi,di),Mi.unByKey=function(t){if(Array.isArray(t))for(var i=0,s=t.length;i<s;++i)ci.unlistenByKey(t[i]);else ci.unlistenByKey(t)},Mi.prototype.changed=function(){++this.revision_,this.dispatchEvent("change")},Mi.prototype.getRevision=function(){return this.revision_},Mi.prototype.on=function(t,i,s){if(Array.isArray(t)){for(var h=t.length,n=new Array(h),r=0;r<h;++r)n[r]=ci.listen(this,t[r],i,s);return n}return ci.listen(this,t,i,s)},Mi.prototype.once=function(t,i,s){if(Array.isArray(t)){for(var h=t.length,n=new Array(h),r=0;r<h;++r)n[r]=ci.listenOnce(this,t[r],i,s);return n}return ci.listenOnce(this,t,i,s)},Mi.prototype.un=function(t,i,s){if(Array.isArray(t))for(var h=0,n=t.length;h<n;++h)ci.unlisten(this,t[h],i,s);else ci.unlisten(this,t,i,s)};var mi=function(t){Mi.call(this),ui.getUid(this),this.values_={},void 0!==t&&this.setProperties(t)};ui.inherits(mi,Mi),mi.changeEventTypeCache_={},mi.getChangeEventType=function(t){return mi.changeEventTypeCache_.hasOwnProperty(t)?mi.changeEventTypeCache_[t]:mi.changeEventTypeCache_[t]="change:"+t},mi.prototype.get=function(t){var i;return this.values_.hasOwnProperty(t)&&(i=this.values_[t]),i},mi.prototype.getKeys=function(){return Object.keys(this.values_)},mi.prototype.getProperties=function(){return fi.assign({},this.values_)},mi.prototype.notify=function(t,i){var s;s=mi.getChangeEventType(t),this.dispatchEvent(new mi.Event(s,t,i)),this.dispatchEvent(new mi.Event(s="propertychange",t,i))},mi.prototype.set=function(t,i,s){if(s)this.values_[t]=i;else{var h=this.values_[t];this.values_[t]=i,h!==i&&this.notify(t,h)}},mi.prototype.setProperties=function(t,i){var s;for(s in t)this.set(s,t[s],i)},mi.prototype.unset=function(t,i){if(t in this.values_){var s=this.values_[t];delete this.values_[t],i||this.notify(t,s)}},ui.inherits(mi.Event=function(t,i,s){vi.call(this,t),this.key=i,this.oldValue=s},vi);var pi=function(t){var i=ui.VERSION?ui.VERSION.split("-")[0]:"latest";this.message="Assertion failed. See https://openlayers.org/en/"+i+"/doc/errors/#"+t+" for details.",this.code=t,this.name="AssertionError"};ui.inherits(pi,Error);var gi=function(t,i){if(!t)throw new pi(i)},_i={clamp:function(t,i,s){return Math.min(Math.max(t,i),s)}};_i.cosh="cosh"in Math?Math.cosh:function(t){var i=Math.exp(t);return(i+1/i)/2},_i.roundUpToPowerOfTwo=function(t){return gi(0<t,29),Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))},_i.squaredSegmentDistance=function(t,i,s,h,n,r){var e=n-s,o=r-h;if(0!==e||0!==o){var a=((t-s)*e+(i-h)*o)/(e*e+o*o);a>1?(s=n,h=r):a>0&&(s+=e*a,h+=o*a)}return _i.squaredDistance(t,i,s,h)},_i.squaredDistance=function(t,i,s,h){var n=s-t,r=h-i;return n*n+r*r},_i.solveLinearSystem=function(t){for(var i=t.length,s=0;s<i;s++){for(var h=s,n=Math.abs(t[s][s]),r=s+1;r<i;r++){var e=Math.abs(t[r][s]);e>n&&(n=e,h=r)}if(0===n)return null;var o=t[h];t[h]=t[s],t[s]=o;for(var a=s+1;a<i;a++)for(var u=-t[a][s]/t[s][s],f=s;f<i+1;f++)s==f?t[a][f]=0:t[a][f]+=u*t[s][f]}for(var c=new Array(i),l=i-1;l>=0;l--){c[l]=t[l][i]/t[l][l];for(var v=l-1;v>=0;v--)t[v][i]-=t[v][l]*c[l]}return c},_i.toDegrees=function(t){return 180*t/Math.PI},_i.toRadians=function(t){return t*Math.PI/180},_i.modulo=function(t,i){var s=t%i;return s*i<0?s+i:s},_i.lerp=function(t,i,s){return t+s*(i-t)};var wi=function(t){this.radius=t};
2
2
  /**
3
3
  * @license
4
4
  * Latitude/longitude spherical geodesy formulae taken from
@@ -0,0 +1 @@
1
+ import{r as e,h as t,a as i,g as a}from"./p-7a4c6adb.js";import{s as r,h as s}from"./p-1f57d28e.js";import{a as h,r as o,m as n}from"./p-9111e257.js";var l=function(e){if(e){var t=function(e){return[].slice.call(e)},i=3,a=[],r=null,s="requestAnimationFrame"in e?function(){e.cancelAnimationFrame(r),r=e.requestAnimationFrame((function(){return o(a.filter((function(e){return e.dirty&&e.active})))}))}:function(){},h=function(e){return function(){a.forEach((function(t){return t.dirty=e})),s()}},o=function(e){e.filter((function(e){return!e.styleComputed})).forEach((function(e){e.styleComputed=p(e)})),e.filter(g).forEach(z);var t=e.filter(c);t.forEach(l),t.forEach((function(e){z(e),n(e)})),t.forEach(d)},n=function(e){return e.dirty=0},l=function(e){e.availableWidth=e.element.parentNode.clientWidth,e.currentWidth=e.element.scrollWidth,e.previousFontSize=e.currentFontSize,e.currentFontSize=Math.min(Math.max(e.minSize,e.availableWidth/e.currentWidth*e.previousFontSize),e.maxSize),e.whiteSpace=e.multiLine&&e.currentFontSize===e.minSize?"normal":"nowrap"},c=function(e){return 2!==e.dirty||2===e.dirty&&e.element.parentNode.clientWidth!==e.availableWidth},p=function(t){var i=e.getComputedStyle(t.element,null);return t.currentFontSize=parseFloat(i.getPropertyValue("font-size")),t.display=i.getPropertyValue("display"),t.whiteSpace=i.getPropertyValue("white-space"),!0},g=function(e){var t=!1;return!e.preStyleTestCompleted&&(/inline-/.test(e.display)||(t=!0,e.display="inline-block"),"nowrap"!==e.whiteSpace&&(t=!0,e.whiteSpace="nowrap"),e.preStyleTestCompleted=!0,t)},z=function(e){e.element.style.whiteSpace=e.whiteSpace,e.element.style.display=e.display,e.element.style.fontSize=e.currentFontSize+"px"},d=function(e){e.element.dispatchEvent(new CustomEvent("fit",{detail:{oldValue:e.previousFontSize,newValue:e.currentFontSize,scaleFactor:e.currentFontSize/e.previousFontSize}}))},m=function(e,t){return function(){e.dirty=t,e.active&&s()}},v=function(e){return function(){a=a.filter((function(t){return t.element!==e.element})),e.observeMutations&&e.observer.disconnect(),e.element.style.whiteSpace=e.originalStyle.whiteSpace,e.element.style.display=e.originalStyle.display,e.element.style.fontSize=e.originalStyle.fontSize}},u=function(e){return function(){e.active||(e.active=!0,s())}},f=function(e){return function(){return e.active=!1}},x=function(e){e.observeMutations&&(e.observer=new MutationObserver(m(e,1)),e.observer.observe(e.element,e.observeMutations))},_={minSize:16,maxSize:512,multiLine:!0,observeMutations:"MutationObserver"in e&&{subtree:!0,childList:!0,characterData:!0}},b=null,w=function(){e.clearTimeout(b),b=e.setTimeout(h(2),j.observeWindowDelay)},k=["resize","orientationchange"];return Object.defineProperty(j,"observeWindow",{set:function(t){var i="".concat(t?"add":"remove","EventListener");k.forEach((function(t){e[i](t,w)}))}}),j.observeWindow=!0,j.observeWindowDelay=100,j.fitAll=h(i),j}function y(e,t){var r=Object.assign({},_,t),h=e.map((function(e){var t=Object.assign({},r,{element:e,active:!0});return function(e){e.originalStyle={whiteSpace:e.element.style.whiteSpace,display:e.element.style.display,fontSize:e.element.style.fontSize},x(e),e.newbie=!0,e.dirty=!0,a.push(e)}(t),{element:e,fit:m(t,i),unfreeze:u(t),freeze:f(t),unsubscribe:v(t)}}));return s(),h}function j(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e?y(t(document.querySelectorAll(e)),i):y([e],i)[0]}}("undefined"==typeof window?null:window);const c=class{constructor(t){e(this,t),this.init=()=>{const e=this.element.querySelector('stzh-link[slot="back-link"], [slot="back-link"] stzh-link'),t=this.element.querySelectorAll('stzh-text[slot="lead"], [slot="lead"] stzh-text'),i=this.element.querySelectorAll('stzh-chip[slot="tag"], [slot="tag"] stzh-chip');e&&r(e,{icon:"arrow-left-circle"}),t.forEach((e=>{r(e,{lead:!0})})),i.forEach((e=>{r(e,{role:"listitem"})}))},this.reinitFitty=()=>{this.destroyFitty();const e=n("small").matches;this.fitty=l(this.mainTitleElement,{minSize:e?48:32,maxSize:e?96:64})},this.heading="",this.leadAuthor="",this.subtitle=""}destroyFitty(){this.fitty&&(this.fitty.unsubscribe(),this.fitty=null)}async componentWillUpdate(){this.destroyFitty()}async componentDidRender(){this.fitty||this.reinitFitty()}connectedCallback(){this.init(),h(this.reinitFitty),this.observer=new MutationObserver(this.init),this.observer.observe(this.element,{childList:!0,subtree:!0})}disconnectedCallback(){this.observer.disconnect(),o(this.reinitFitty),this.destroyFitty()}render(){const e=s(this.element,"image"),a=s(this.element,"lead"),r=s(this.element,"back-link");return t(i,null,t("div",{class:{"stzh-pagetitle-hero":!0,"stzh-pagetitle-hero--has-no-image":!e,"stzh-pagetitle-hero--has-no-lead":!a,"stzh-pagetitle-hero--has-back-link":r}},t("div",{class:"stzh-pagetitle-hero__header"},t("div",{class:"stzh-pagetitle-hero__back-link"},t("slot",{name:"back-link"})),t("div",{class:"stzh-pagetitle-hero__image-wrapper"},t("div",{class:"stzh-pagetitle-hero__image-ratio"}),t("slot",{name:"image"})),t("div",{class:"stzh-pagetitle-hero__title-wrapper"},t("div",{class:"stzh-pagetitle-hero__tags",role:"list"},t("slot",{name:"tag"})),t("div",{class:"stzh-pagetitle-hero__title-parent"},t("h1",{ref:e=>this.mainTitleElement=e,class:"stzh-pagetitle-hero__title"},this.heading)),this.subtitle&&t("div",{class:"stzh-pagetitle-hero__subtitle"},this.subtitle))),t("div",{class:"stzh-pagetitle-hero__lead"},t("slot",{name:"lead"}),t("div",{class:"stzh-pagetitle-hero__lead-author"},this.leadAuthor))))}get element(){return a(this)}};c.style=".sc-stzh-pagetitle-hero-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-pagetitle-hero-h{display:none}.sc-stzh-pagetitle-hero-h *.sc-stzh-pagetitle-hero,.sc-stzh-pagetitle-hero-h *.sc-stzh-pagetitle-hero::before,.sc-stzh-pagetitle-hero-h *.sc-stzh-pagetitle-hero::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>img[slot=image],.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>[slot=image] img{display:block;position:absolute;width:100%;height:100%;top:0;left:0;-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center}.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>stzh-chip[slot=tag][variant=filter]:not([disabled]){--color:var(--stzh-color-white);--border:0.0625rem solid var(--stzh-color-white);--remove-color:var(--stzh-color-white);--background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--counter-color:var(--stzh-color-white48);--icon-color:var(--stzh-color-white);--hover-color:var(--stzh-color-white);--hover-border:0.0625rem solid transparent;--hover-background-color:var(--stzh-color-white16);--hover-remove-color:var(--stzh-color-white);--hover-remove-background-color:var(--stzh-color-white16);--hover-counter-color:var(--stzh-color-white);--hover-icon-color:var(--stzh-color-white)}.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>stzh-chip[slot=tag][variant=filter][active]:not([active=false]):not([disabled]){--border:0.0625rem solid transparent;--background-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-background-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-remove-background-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>stzh-chip[slot=tag]:not(:last-child){margin-right:var(--stzh-space-xsmall)}@media screen and (min-width: 1024px){.stzh-pagetitle-hero.sc-stzh-pagetitle-hero{padding-top:var(--stzh-space-xxlarge)}}.stzh-pagetitle-hero__tags.sc-stzh-pagetitle-hero{list-style:none;padding:0;margin:0;display:-ms-flexbox;display:flex}.stzh-pagetitle-hero__tags.sc-stzh-pagetitle-hero:not(:empty){margin-bottom:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{position:absolute;left:0;top:0}}@media screen and (max-width: 1023px){.stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero:not(:empty){margin:var(--stzh-space-xlarge) 0}}.stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{--stzh-flyingfocus-color:var(--stzh-base-invert-color);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;-ms-flex-negative:0;flex-shrink:0;position:relative;z-index:1;background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));padding:var(--stzh-space-xxxlarge) var(--stzh-space-xlarge);margin-top:calc(var(--stzh-space-xxxlarge) * -1)}@media screen and (min-width: 600px){.stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{padding:var(--stzh-space-xxxxlarge) var(--stzh-space-xxlarge);margin-top:calc(var(--stzh-space-big) * -1)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{padding:var(--stzh-space-big)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{margin:var(--stzh-space-big) 0;width:50%;margin-left:-8.3333333333%}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{padding:var(--stzh-space-xbig)}}.stzh-pagetitle-hero__title.sc-stzh-pagetitle-hero{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;color:var(--stzh-color-white);margin:0;font-size:1.875rem;line-height:1.107;overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:normal;word-break:normal;word-break:break-word}@media screen and (min-width: 600px){.stzh-pagetitle-hero__title.sc-stzh-pagetitle-hero{font-size:3rem}}.stzh-pagetitle-hero__subtitle.sc-stzh-pagetitle-hero{font-size:var(--stzh-font-curve-h3-default-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-h3-default-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-h3-default-text-letter-spacing);margin-top:var(--stzh-space-xlarge);color:var(--stzh-color-white)}@media screen and (min-width: 600px){.stzh-pagetitle-hero__subtitle.sc-stzh-pagetitle-hero{font-size:var(--stzh-font-curve-h3-small-font-size, var(--stzh-font-deci-font-size));line-height:var(--stzh-font-curve-h3-small-text-line-height, var(--stzh-font-deci-text-line-height));letter-spacing:var(--stzh-font-curve-h3-small-text-letter-spacing)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__subtitle.sc-stzh-pagetitle-hero{font-size:var(--stzh-font-curve-h3-medium-font-size, var(--stzh-font-regular-font-size));line-height:var(--stzh-font-curve-h3-medium-text-line-height, var(--stzh-font-regular-text-line-height));letter-spacing:var(--stzh-font-curve-h3-medium-text-letter-spacing)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__subtitle.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero__subtitle.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-xxxlarge)}}.stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-xxxxlarge);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative}@media screen and (min-width: 600px){.stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-big)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-xbig)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-huge)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{-ms-flex-direction:row;flex-direction:row}}.stzh-pagetitle-hero__image-wrapper.sc-stzh-pagetitle-hero{position:relative;-ms-flex-negative:0;flex-shrink:0;background-color:var(--stzh-color-grey5);margin-left:calc((100vw - 100% - var(--stzh-scrollbar-width, 0px)) / -2);margin-right:calc((100vw - 100% - var(--stzh-scrollbar-width, 0px)) / -2)}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__image-wrapper.sc-stzh-pagetitle-hero{width:58.3333333333%;margin-left:0;margin-right:0}}.stzh-pagetitle-hero__image-ratio.sc-stzh-pagetitle-hero{position:relative;width:100%;height:0;padding-bottom:75%}@media screen and (min-width: 600px){.stzh-pagetitle-hero__image-ratio.sc-stzh-pagetitle-hero{padding-bottom:56.25%}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__image-ratio.sc-stzh-pagetitle-hero{padding-bottom:75%}}.stzh-pagetitle-hero__lead.sc-stzh-pagetitle-hero{margin:0 auto;margin-bottom:var(--stzh-space-large)}@media screen and (min-width: 600px){.stzh-pagetitle-hero__lead.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero__lead.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-huge);max-width:70%}}.stzh-pagetitle-hero__lead-author.sc-stzh-pagetitle-hero{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);margin-top:var(--stzh-space-small)}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__lead-author.sc-stzh-pagetitle-hero{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__lead-author.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero__lead-author.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-large)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero--has-back-link.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{-ms-flex-direction:row-reverse;flex-direction:row-reverse}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero--has-back-link.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{margin-right:-8.3333333333%}}.stzh-pagetitle-hero--has-no-lead.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__lead.sc-stzh-pagetitle-hero{display:none}.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__image-wrapper.sc-stzh-pagetitle-hero{display:none}.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{-ms-flex-direction:column;flex-direction:column;margin-top:0}.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{width:100%;margin:0}.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-xlarge);margin-bottom:var(--stzh-space-xlarge);position:static}@media screen and (min-width: 1024px){.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-xxxlarge)}}";export{c as stzh_pagetitle_hero}