@florasync/leaflet-geokit 0.11.1 → 0.12.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 (47) hide show
  1. package/CHANGELOG.md +5 -1
  2. package/README.md +4 -7
  3. package/dist/django/index.js +1044 -955
  4. package/dist/django/index.js.map +1 -1
  5. package/dist/geocoding-control.js +177 -0
  6. package/dist/geocoding-control.js.map +1 -0
  7. package/dist/geocoding.js +241 -0
  8. package/dist/geocoding.js.map +1 -0
  9. package/dist/leaflet-geokit.es.js +1155 -1064
  10. package/dist/leaflet-geokit.es.js.map +1 -1
  11. package/dist/leaflet-geokit.external.es.js +1583 -1492
  12. package/dist/leaflet-geokit.external.es.js.map +1 -1
  13. package/dist/leaflet-geokit.umd.js +23 -23
  14. package/dist/leaflet-geokit.umd.js.map +1 -1
  15. package/dist/preact/{index-CFFA4RWo.js → index-IL53Vgct.js} +745 -657
  16. package/dist/preact/index-IL53Vgct.js.map +1 -0
  17. package/dist/preact/index.js +8 -7
  18. package/dist/preact/index.js.map +1 -1
  19. package/dist/preact-bundled/index.js +2160 -2071
  20. package/dist/preact-bundled/index.js.map +1 -1
  21. package/dist/react/{index-CFFA4RWo.js → index-IL53Vgct.js} +745 -657
  22. package/dist/react/index-IL53Vgct.js.map +1 -0
  23. package/dist/react/index.js +18 -17
  24. package/dist/react/index.js.map +1 -1
  25. package/dist/react-bundled/index.js +2159 -2070
  26. package/dist/react-bundled/index.js.map +1 -1
  27. package/dist/types/components/LeafletDrawMapElement.d.ts +8 -2
  28. package/dist/types/geocoding.d.ts +5 -0
  29. package/dist/types/lib/MapController.d.ts +2 -0
  30. package/dist/types/lib/feature-credits.d.ts +12 -0
  31. package/dist/types/lib/geocoding-control.d.ts +4 -0
  32. package/dist/types/preact/core.d.ts +1 -1
  33. package/dist/types/react/core.d.ts +2 -2
  34. package/dist/types/react/index.d.ts +1 -1
  35. package/dist/types/react-bundled/index.d.ts +1 -1
  36. package/dist/types/types/events.d.ts +4 -0
  37. package/dist/types/types/geocoding.d.ts +36 -0
  38. package/dist/types/types/public.d.ts +4 -0
  39. package/docs/api-reference.md +41 -0
  40. package/docs/grower-geometry.md +1 -3
  41. package/docs/release-verification.md +6 -1
  42. package/docs/shims/django.md +1 -1
  43. package/docs/shims/preact.md +4 -2
  44. package/docs/shims/react.md +3 -1
  45. package/package.json +17 -12
  46. package/dist/preact/index-CFFA4RWo.js.map +0 -1
  47. package/dist/react/index-CFFA4RWo.js.map +0 -1
@@ -1,6 +1,6 @@
1
- var Zo = Object.defineProperty;
2
- var Ko = (i, t, e) => t in i ? Zo(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
- var w = (i, t, e) => Ko(i, typeof t != "symbol" ? t + "" : t, e);
1
+ var Yo = Object.defineProperty;
2
+ var Qo = (i, t, e) => t in i ? Yo(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
+ var w = (i, t, e) => Qo(i, typeof t != "symbol" ? t + "" : t, e);
4
4
  import * as P from "leaflet";
5
5
  import "leaflet-draw";
6
6
  import "leaflet-ruler";
@@ -12,24 +12,25 @@ const O = {
12
12
  Error: "leaflet-draw:error",
13
13
  Ingest: "leaflet-draw:ingest",
14
14
  Export: "leaflet-draw:export"
15
- }, G = {
15
+ }, U = {
16
16
  Status: "leaflet-geokit:status",
17
+ GeocodingError: "leaflet-geokit:geocoding-error",
17
18
  Diagnostic: "leaflet-geokit:diagnostic",
18
19
  ToolCommand: "leaflet-geokit:tool-command",
19
20
  ToolFailed: "leaflet-geokit:tool-failed",
20
21
  ToolStateChanged: "leaflet-geokit:tool-state-changed",
21
22
  ToolCapabilitiesChanged: "leaflet-geokit:tool-capabilities-changed"
22
- }, xt = {
23
+ }, Et = {
23
24
  trace: 10,
24
25
  debug: 20,
25
26
  info: 30,
26
27
  warn: 40,
27
28
  error: 50
28
29
  };
29
- function Yo(i, t) {
30
- return i === "silent" ? !1 : xt[t] >= xt[i];
30
+ function Wo(i, t) {
31
+ return i === "silent" ? !1 : Et[t] >= Et[i];
31
32
  }
32
- function Qo() {
33
+ function Xo() {
33
34
  try {
34
35
  return (/* @__PURE__ */ new Date()).toISOString();
35
36
  } catch {
@@ -40,8 +41,8 @@ function Ne(i, t = "debug", e = console) {
40
41
  let o = t;
41
42
  const r = (n) => (...s) => {
42
43
  try {
43
- if (!Yo(o, n)) return;
44
- const l = `[${Qo()}][${i}][${n.toUpperCase()}]`, c = e[n];
44
+ if (!Wo(o, n)) return;
45
+ const l = `[${Xo()}][${i}][${n.toUpperCase()}]`, c = e[n];
45
46
  typeof c == "function" ? c(l, ...s) : e.log(l, ...s);
46
47
  } catch {
47
48
  }
@@ -63,32 +64,32 @@ function Ne(i, t = "debug", e = console) {
63
64
  }
64
65
  };
65
66
  }
66
- const Wo = '.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}', Xo = `.leaflet-draw-section{position:relative}.leaflet-draw-toolbar{margin-top:12px}.leaflet-draw-toolbar-top{margin-top:0}.leaflet-draw-toolbar-notop a:first-child{border-top-right-radius:0}.leaflet-draw-toolbar-nobottom a:last-child{border-bottom-right-radius:0}.leaflet-draw-toolbar a{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAAeCAYAAACWuCNnAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAG7AAABuwBHnU4NQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAbvSURBVHic7dtdbBxXFQfw/9nZ3SRKwAP7UFFUQOoHqGnUoEAoNghX9tyxVcpD1X0J+WgiUQmpfUB5ACSgG1qJIKASqBIUIauqAbWseIlqb+bOWHVR6y0FKZBEqdIUQROIREGRx3FFvR/38ODZst3a3nE8Ywfv+T2t7hzdM3fle/bOnWtACCGEEEIIIYQQQgghhBBCCCGEEEIIIcRa0EbfgBDdFItFKwzDAa3175LuWylVAvBIR/MxrXUp6Vxx9dp4VyObVEdKKW591lonXgiVUg6AHzPzk9ls9meVSmUh6RzXkz179uQKhcIgM+8CACI6U6vVnp+enm6knXt4ePiuTCbzWQAwxlSDIHg57ZwroDAMnwKwz3XdBzzPG08hxzsTNprQG2lTjtd13WFmfghAP4A+AJcATFiW9YNKpfL3uP0kUliiX4SG1pqUUpx0wXJd9/PMXAGwPWq6yMyPz8/P/7xarf4nyVwt7QV4JWkU52i8YwBu6bh0wRhzJAiCF5POCQCDg4N2Pp//NYDRjkuTxph9QRCESeYrFov5ubm5R5n5AIAPtV1aYOb7BgYGTpZKJeO67lFmPsbM9/i+/8Ja8y6zylhOYquPXhsvAJRKpczMzMwTAIaJ6LFGo+HNzs5eKRQKNxPRAWb+CoAjWuvn4vS35skWFasxAAdbbUlOYqVUPwAPwI4lLr8J4KeWZT1eqVTmksoZ5d2QghUVKx/AlmVCFph5yPf9l5LMCwBKqUksFqszRHQcAJj5GwB2MfOE7/tfTDKf4zjHiejrAE4CuNhqZ+bf2rY9FYbhGBH92/O8o47j3Oj7/u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VdYrUOhtm0fTusxcAlMRN+KziUt5SqAM3v37r00OZnGfFp/QRC86DjOUCaTGWPm2zoun8fiIbuZtPLX6/UH8/n8rQDuippertfrD6aRKyqOR5VS81ji8Z+IbmfmgwB+mEb+9dZr4wWA/v7+R6rV6k+azeYpx3EezeVyJ7dv335lfn7+lkajcZCZDzPzYd/3/xSnv9gFq3UuaR2LFQDA87xAKVUB8BEAZ6N9nrNEdEZr/TcArLVOPG8aJ9jj8n3/pcHBwZ1btmx5519zmPl0vV5/Ie2V7fT09Nujo6Nus9kcA4CtW7ce1lq/nUYu27a/Mzs7CyI6gMVX/u/CzJeZ+Ue2bcc9pb1aXc8lJZms18YLANE2wkOu694N4OFGo3E8DMMPAHiDiCaY+ZOb4YCsEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhEjYfwGO+b5dFNs4OgAAAABJRU5ErkJggg==);background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20viewBox='0%200%20600%2060'%20height='60'%20width='600'%20id='svg4225'%20version='1.1'%20inkscape:version='0.91%20r13725'%20sodipodi:docname='spritesheet.svg'%20inkscape:export-filename='/home/fpuga/development/upstream/icarto.Leaflet.draw/src/images/spritesheet-2x.png'%20inkscape:export-xdpi='90'%20inkscape:export-ydpi='90'%3e%3cmetadata%20id='metadata4258'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cdefs%20id='defs4256'%20/%3e%3csodipodi:namedview%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1'%20objecttolerance='10'%20gridtolerance='10'%20guidetolerance='10'%20inkscape:pageopacity='0'%20inkscape:pageshadow='2'%20inkscape:window-width='1920'%20inkscape:window-height='1056'%20id='namedview4254'%20showgrid='false'%20inkscape:zoom='1.3101852'%20inkscape:cx='237.56928'%20inkscape:cy='7.2419621'%20inkscape:window-x='1920'%20inkscape:window-y='24'%20inkscape:window-maximized='1'%20inkscape:current-layer='svg4225'%20/%3e%3cg%20id='enabled'%20style='fill:%23464646;fill-opacity:1'%3e%3cg%20id='polyline'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%2018,36%200,6%206,0%200,-6%20-6,0%20z%20m%204,4%20-2,0%200,-2%202,0%200,2%20z'%20id='path4229'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%2036,18%200,6%206,0%200,-6%20-6,0%20z%20m%204,4%20-2,0%200,-2%202,0%200,2%20z'%20id='path4231'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%2023.142,39.145%20-2.285,-2.29%2016,-15.998%202.285,2.285%20z'%20id='path4233'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3cpath%20id='polygon'%20d='M%20100,24.565%2097.904,39.395%2083.07,42%2076,28.773%2086.463,18%20Z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='rectangle'%20d='m%20140,20%2020,0%200,20%20-20,0%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='circle'%20d='m%20221,30%20c%200,6.078%20-4.926,11%20-11,11%20-6.074,0%20-11,-4.922%20-11,-11%200,-6.074%204.926,-11%2011,-11%206.074,0%2011,4.926%2011,11%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='marker'%20d='m%20270,19%20c%20-4.971,0%20-9,4.029%20-9,9%200,4.971%205.001,12%209,14%204.001,-2%209,-9.029%209,-14%200,-4.971%20-4.029,-9%20-9,-9%20z%20m%200,12.5%20c%20-2.484,0%20-4.5,-2.014%20-4.5,-4.5%200,-2.484%202.016,-4.5%204.5,-4.5%202.485,0%204.5,2.016%204.5,4.5%200,2.486%20-2.015,4.5%20-4.5,4.5%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cg%20id='edit'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%20337,30.156%200,0.407%200,5.604%20c%200,1.658%20-1.344,3%20-3,3%20l%20-10,0%20c%20-1.655,0%20-3,-1.342%20-3,-3%20l%200,-10%20c%200,-1.657%201.345,-3%203,-3%20l%206.345,0%203.19,-3.17%20-9.535,0%20c%20-3.313,0%20-6,2.687%20-6,6%20l%200,10%20c%200,3.313%202.687,6%206,6%20l%2010,0%20c%203.314,0%206,-2.687%206,-6%20l%200,-8.809%20-3,2.968'%20id='path4240'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20338.72,24.637%20-8.892,8.892%20-2.828,0%200,-2.829%208.89,-8.89%20z'%20id='path4242'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20338.697,17.826%204,0%200,4%20-4,0%20z'%20transform='matrix(-0.70698336,-0.70723018,0.70723018,-0.70698336,567.55917,274.78273)'%20id='path4244'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3cg%20id='remove'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%20381,42%2018,0%200,-18%20-18,0%200,18%20z%20m%2014,-16%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z'%20id='path4247'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20395,20%200,-4%20-10,0%200,4%20-6,0%200,2%2022,0%200,-2%20-6,0%20z%20m%20-2,0%20-6,0%200,-2%206,0%200,2%20z'%20id='path4249'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3c/g%3e%3cg%20id='disabled'%20transform='translate(120,0)'%20style='fill:%23bbbbbb'%3e%3cuse%20xlink:href='%23edit'%20id='edit-disabled'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%20/%3e%3cuse%20xlink:href='%23remove'%20id='remove-disabled'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%20/%3e%3c/g%3e%3cpath%20style='fill:none;stroke:%23464646;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='circle-3'%20d='m%20581.65725,30%20c%200,6.078%20-4.926,11%20-11,11%20-6.074,0%20-11,-4.922%20-11,-11%200,-6.074%204.926,-11%2011,-11%206.074,0%2011,4.926%2011,11%20z'%20inkscape:connector-curvature='0'%20/%3e%3c/svg%3e");background-repeat:no-repeat;background-size:300px 30px;background-clip:padding-box}.leaflet-retina .leaflet-draw-toolbar a{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAA8CAYAAAC6nMS5AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAA16SURBVHic7d1/jBxneQfw7zNzvotdn+9sVQkxoRKoammBqqpbk6uT5mLfvHPn42yn1VFRVCEhoFH5IYpoSaUC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2QxgF8qr9b8GwA0AzgH4MYBjIjJ28eLFkFeOiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIhWgv8Hnffz4dmwY9cAAAAASUVORK5CYII=);background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20viewBox='0%200%20600%2060'%20height='60'%20width='600'%20id='svg4225'%20version='1.1'%20inkscape:version='0.91%20r13725'%20sodipodi:docname='spritesheet.svg'%20inkscape:export-filename='/home/fpuga/development/upstream/icarto.Leaflet.draw/src/images/spritesheet-2x.png'%20inkscape:export-xdpi='90'%20inkscape:export-ydpi='90'%3e%3cmetadata%20id='metadata4258'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cdefs%20id='defs4256'%20/%3e%3csodipodi:namedview%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1'%20objecttolerance='10'%20gridtolerance='10'%20guidetolerance='10'%20inkscape:pageopacity='0'%20inkscape:pageshadow='2'%20inkscape:window-width='1920'%20inkscape:window-height='1056'%20id='namedview4254'%20showgrid='false'%20inkscape:zoom='1.3101852'%20inkscape:cx='237.56928'%20inkscape:cy='7.2419621'%20inkscape:window-x='1920'%20inkscape:window-y='24'%20inkscape:window-maximized='1'%20inkscape:current-layer='svg4225'%20/%3e%3cg%20id='enabled'%20style='fill:%23464646;fill-opacity:1'%3e%3cg%20id='polyline'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%2018,36%200,6%206,0%200,-6%20-6,0%20z%20m%204,4%20-2,0%200,-2%202,0%200,2%20z'%20id='path4229'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%2036,18%200,6%206,0%200,-6%20-6,0%20z%20m%204,4%20-2,0%200,-2%202,0%200,2%20z'%20id='path4231'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%2023.142,39.145%20-2.285,-2.29%2016,-15.998%202.285,2.285%20z'%20id='path4233'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3cpath%20id='polygon'%20d='M%20100,24.565%2097.904,39.395%2083.07,42%2076,28.773%2086.463,18%20Z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='rectangle'%20d='m%20140,20%2020,0%200,20%20-20,0%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='circle'%20d='m%20221,30%20c%200,6.078%20-4.926,11%20-11,11%20-6.074,0%20-11,-4.922%20-11,-11%200,-6.074%204.926,-11%2011,-11%206.074,0%2011,4.926%2011,11%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='marker'%20d='m%20270,19%20c%20-4.971,0%20-9,4.029%20-9,9%200,4.971%205.001,12%209,14%204.001,-2%209,-9.029%209,-14%200,-4.971%20-4.029,-9%20-9,-9%20z%20m%200,12.5%20c%20-2.484,0%20-4.5,-2.014%20-4.5,-4.5%200,-2.484%202.016,-4.5%204.5,-4.5%202.485,0%204.5,2.016%204.5,4.5%200,2.486%20-2.015,4.5%20-4.5,4.5%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cg%20id='edit'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%20337,30.156%200,0.407%200,5.604%20c%200,1.658%20-1.344,3%20-3,3%20l%20-10,0%20c%20-1.655,0%20-3,-1.342%20-3,-3%20l%200,-10%20c%200,-1.657%201.345,-3%203,-3%20l%206.345,0%203.19,-3.17%20-9.535,0%20c%20-3.313,0%20-6,2.687%20-6,6%20l%200,10%20c%200,3.313%202.687,6%206,6%20l%2010,0%20c%203.314,0%206,-2.687%206,-6%20l%200,-8.809%20-3,2.968'%20id='path4240'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20338.72,24.637%20-8.892,8.892%20-2.828,0%200,-2.829%208.89,-8.89%20z'%20id='path4242'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20338.697,17.826%204,0%200,4%20-4,0%20z'%20transform='matrix(-0.70698336,-0.70723018,0.70723018,-0.70698336,567.55917,274.78273)'%20id='path4244'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3cg%20id='remove'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%20381,42%2018,0%200,-18%20-18,0%200,18%20z%20m%2014,-16%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z'%20id='path4247'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20395,20%200,-4%20-10,0%200,4%20-6,0%200,2%2022,0%200,-2%20-6,0%20z%20m%20-2,0%20-6,0%200,-2%206,0%200,2%20z'%20id='path4249'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3c/g%3e%3cg%20id='disabled'%20transform='translate(120,0)'%20style='fill:%23bbbbbb'%3e%3cuse%20xlink:href='%23edit'%20id='edit-disabled'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%20/%3e%3cuse%20xlink:href='%23remove'%20id='remove-disabled'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%20/%3e%3c/g%3e%3cpath%20style='fill:none;stroke:%23464646;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='circle-3'%20d='m%20581.65725,30%20c%200,6.078%20-4.926,11%20-11,11%20-6.074,0%20-11,-4.922%20-11,-11%200,-6.074%204.926,-11%2011,-11%206.074,0%2011,4.926%2011,11%20z'%20inkscape:connector-curvature='0'%20/%3e%3c/svg%3e")}.leaflet-draw a{display:block;text-align:center;text-decoration:none}.leaflet-draw a .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.leaflet-draw-actions{display:none;list-style:none;margin:0;padding:0;position:absolute;left:26px;top:0;white-space:nowrap}.leaflet-touch .leaflet-draw-actions{left:32px}.leaflet-right .leaflet-draw-actions{right:26px;left:auto}.leaflet-touch .leaflet-right .leaflet-draw-actions{right:32px;left:auto}.leaflet-draw-actions li{display:inline-block}.leaflet-draw-actions li:first-child a{border-left:0}.leaflet-draw-actions li:last-child a{-webkit-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.leaflet-right .leaflet-draw-actions li:last-child a{-webkit-border-radius:0;border-radius:0}.leaflet-right .leaflet-draw-actions li:first-child a{-webkit-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}.leaflet-draw-actions a{background-color:#919187;border-left:1px solid #AAA;color:#fff;font:11px/19px Helvetica Neue,Arial,Helvetica,sans-serif;line-height:28px;text-decoration:none;padding-left:10px;padding-right:10px;height:28px}.leaflet-touch .leaflet-draw-actions a{font-size:12px;line-height:30px;height:30px}.leaflet-draw-actions-bottom{margin-top:0}.leaflet-draw-actions-top{margin-top:1px}.leaflet-draw-actions-top a,.leaflet-draw-actions-bottom a{height:27px;line-height:27px}.leaflet-draw-actions a:hover{background-color:#a0a098}.leaflet-draw-actions-top.leaflet-draw-actions-bottom a{height:26px;line-height:26px}.leaflet-draw-toolbar .leaflet-draw-draw-polyline{background-position:-2px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polyline{background-position:0 -1px}.leaflet-draw-toolbar .leaflet-draw-draw-polygon{background-position:-31px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polygon{background-position:-29px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-rectangle{background-position:-62px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-rectangle{background-position:-60px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-circle{background-position:-92px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circle{background-position:-90px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-marker{background-position:-122px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-marker{background-position:-120px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-circlemarker{background-position:-273px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circlemarker{background-position:-271px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-edit{background-position:-152px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit{background-position:-150px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-remove{background-position:-182px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove{background-position:-180px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled{background-position:-212px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled{background-position:-210px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled{background-position:-242px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled{background-position:-240px -2px}.leaflet-mouse-marker{background-color:#fff;cursor:crosshair}.leaflet-draw-tooltip{background:#363636;background:#00000080;border:1px solid transparent;-webkit-border-radius:4px;border-radius:4px;color:#fff;font:12px/18px Helvetica Neue,Arial,Helvetica,sans-serif;margin-left:20px;margin-top:-21px;padding:4px 8px;position:absolute;visibility:hidden;white-space:nowrap;z-index:6}.leaflet-draw-tooltip:before{border-right:6px solid black;border-right-color:#00000080;border-top:6px solid transparent;border-bottom:6px solid transparent;content:"";position:absolute;top:7px;left:-7px}.leaflet-error-draw-tooltip{background-color:#f2dede;border:1px solid #e6b6bd;color:#b94a48}.leaflet-error-draw-tooltip:before{border-right-color:#e6b6bd}.leaflet-draw-tooltip-single{margin-top:-12px}.leaflet-draw-tooltip-subtext{color:#f8d5e4}.leaflet-draw-guide-dash{font-size:1%;opacity:.6;position:absolute;width:5px;height:5px}.leaflet-edit-marker-selected{background-color:#fe57a11a;border:4px dashed rgba(254,87,161,.6);-webkit-border-radius:4px;border-radius:4px;box-sizing:content-box}.leaflet-edit-move{cursor:move}.leaflet-edit-resize{cursor:pointer}.leaflet-oldie .leaflet-draw-toolbar{border:1px solid #999}`, $o = ".leaflet-ruler{height:35px;width:35px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAQAAABKfvVzAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAADdcAAA3XAUIom3gAAAAHdElNRQfhBQoMHg6McuYvAAABwklEQVQ4y43TP0jUYRgH8M/daQpqdujhnwShGiwyipCIoIgWxyIwrqEhnCQoGqKhpoYMg1qCQjg8TC2JCtSkjCgaKisIhyQUwpJssD9KZWRZg6d450/yGV54n/fzfd53eUOCaoNa5QpNGNPr9cKjUAatdsB++co0G1XiiHd+uqnTq8VzI874o9s2Ic1iiEpii9tmnJOdfkOldt/dU+HYolHnjdmpRNzbuVaNL86m4sXqNOrz3kMXHFKYMqd8VREGBToMifqLgwY1yNZirya5knaBqH16fJjNJiWEFSlxy4g980+pMuZkir/UJjLbrvNRPnINaLUygK/yQpuImHp47LOjuKJPOJA/1y4iZsAlyozLs8IO42L/4QlhGrSCy5oCeKH+dM59vVbL9sn6AP5MRzpnVKtN1viRxit1WRvEmVKFrQbTpoddNR3E+aYKuw1lPOapa0GcEf22KzOtejmcG1rkYdjEAn59KU5cDzjt+HI4BSZtVJTazfIsMQOmFAusLr/E53lniickJYIDNcaUL+JhMZPWBUdOeCCaweGOw5k0lFrv2uyRuBxPlLpoBtTK0p3mh+f+dKl6jX6LapRj6XrzD+1bmkFA/dTVAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE3LTA1LTEwVDEyOjMwOjE0KzAyOjAwUNH5TAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNy0wNS0xMFQxMjozMDoxNCswMjowMCGMQfAAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC);background-repeat:no-repeat;background-position:center}.leaflet-ruler:hover{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAACmAAAApgHdff84AAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAn9QTFRF////AAAAAAAAAAAAAAAAAAAzABcXABQUABIkDhwrAA0aAAwYABUgABQfABIbABAZAA8fABUcABMaABMfABIeABEcABAbABQeABMdABIdABEbABIbABIbABEdABEcABIcBxsoABEdABIdABIdABEcABMbABMdFBwgERofAhIbEhsfAhIdBxUeEhsgEBofAhMbAhMdBRMdAhIbAhIdAhMdCRceARIcDBgfDBgfDBcfDBcfFhwgDBceDBceC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406cDFT8PEGRwnHLlYJQwSTwSJ51tCxRmiVuw7VAsRP7zkIEKcofnAlb0hEPWXls9AiDNUHriyMxwoPgVoToEVQpwhdNHuY/2imOIMZq1nr2QUgsVtkMUZZOOuXOmYiinOwF63/8QVsDgLd0wnFwMCOM3dBhK3ZeGOXjzLHklCIu8oRDxs8eaNXYJIMuplJ0HigYs3b906UwFJgtGzxY6FLWDe0mXLli3wVoEAaZAMjxoLA6eDu5urq4uziTEEqAIAvamx163e5EoAAAAASUVORK5CYII=)}.leaflet-ruler-clicked{height:35px;width:35px;background-repeat:no-repeat;background-position:center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAACmAAAApgHdff84AAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAn9QTFRF////AAAAAAAAAAAAAAAAAAAzABcXABQUABIkDhwrAA0aAAwYABUgABQfABIbABAZAA8fABUcABMaABMfABIeABEcABAbABQeABMdABIdABEbABIbABIbABEdABEcABIcBxsoABEdABIdABIdABEcABMbABMdFBwgERofAhIbEhsfAhIdBxUeEhsgEBofAhMbAhMdBRMdAhIbAhIdAhMdCRceARIcDBgfDBgfDBcfDBcfFhwgDBceDBceCxceFCs5HTdGAxMcDxofGTFAHDRDHDVDHDVEHTZFDRkfEBofERogCh0oERsgARIcEhsfEhsgCh4pDCEsDRkfDRkfEBofBhQdDSMvDRgfDBgfCBUeBxUeDyUyECYzUDktPTAqCRceCRYeChYeDxkfEBkgLCgmWj4wCBYdW0AwGh4hHCAiHSAiTDctBhUdBxYdEBkfLyonMConBhUdJiUkLCclLSgmLigmOzApPTEpDBgfBRQdDBgfERsgWT8wBBMdCBYeChceQjMrSzctZEUyBBMdERsgXUAxXkExY0QzglQ5AxUfBxolSjcthlU6hlY7h1Y7AxMcSDUsSjYsd042g1Q5hlY6jVo8AhIcAxMcBBQdLEpcOVpvARIcAhIcBhQdDSIuEhsgJ0NUNS0oNi0oO11yTTgtUXmSUnqUXEAxXUExYEIyZUUzaEYzb0o1cEo1dEw2i1g8jFk8jcfskFs9mdX9mmA/mtf/pmZCqGdCsWxEvnJHxHVJxnZJyHdJzHlK0XxM031M139N3IFO3YJO4INP5IVQ5YZQ5oZQ6ohR7IlS7opS74tS8ItT841T9I1T9o5U949U+ZBV+pBV/ZJW/pJW/5NWIYcOagAAAJt0Uk5TAAECAwQFCw0OEhQVGBkcHyEkKCkqLTAzNUZLVFZZW2RnanJzeHl8f4uMjY6Pj5KVl52eoKGprKytrq+vsLGytLu9vb/BwsLDxcXP0NDS09bf4uPk5OXl5ufo6enq7O3u7+/x8fHy8/P09PT09fX19fX29vb29vb29/j4+Pj5+fn5+fn6+vr6+vr7/Pz8/Pz9/f39/f39/v7+/v7Td3FlAAABgklEQVQoU2NggAMRJU1DTWURBlQgqhWUND11Tfr05GBdMYQws8a07j2XVx2/cnLl5T0T5+ixQsX5/RrWr70CA+s2NPoLgMUlciddvnLl3PbslMysmi2ngXKTc/iA4uwRC1dfudRT76UtJy5lMHvHlSsni82ZgBLWbZdOHCuPlARpForvBYszA9ky1WeunC8y5YCI9125cqrEnJlbnoHBZ/6mK+0eTAjxUgtmbl99Bt6Ksxd2pXGDxRPg4kZMDIqxV6406cDFT8PEGRwnHLlYJQwSTwSJ51tCxRmiVuw7VAsRP7zkIEKcofnAlb0hEPWXls9AiDNUHriyMxwoPgVoToEVQpwhdNHuY/2imOIMZq1nr2QUgsVtkMUZZOOuXOmYiinOwF63/8QVsDgLd0wnFwMCOM3dBhK3ZeGOXjzLHklCIu8oRDxs8eaNXYJIMuplJ0HigYs3b906UwFJgtGzxY6FLWDe0mXLli3wVoEAaZAMjxoLA6eDu5urq4uziTEEqAIAvamx163e5EoAAAAASUVORK5CYII=);border-color:#7fff00!important}.leaflet-bar{background-color:#fff}.leaflet-control{cursor:pointer}.result-tooltip{background-color:#fff;border-width:medium;border-color:#de0000;font-size:smaller}.moving-tooltip{background-color:#ffffffb3;background-clip:padding-box;opacity:.5;border:dotted;border-color:red;font-size:smaller}.plus-length{padding-left:45px}", er = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp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+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC", rr = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='430'%20height='430'%20style='width:100%25;height:100%25;transform:translate3d(0,0,0);content-visibility:visible'%20viewBox='0%200%20430%20430'%3e%3cdefs%3e%3cclipPath%20id='i'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='s'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='e'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='p'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='f'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='m'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='g'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='j'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='h'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cfilter%20id='t'%20width='300%25'%20height='300%25'%20x='-100%25'%20y='-100%25'%3e%3cfeGaussianBlur%20result='filter_result_0'/%3e%3c/filter%3e%3cfilter%20id='r'%20width='300%25'%20height='300%25'%20x='-100%25'%20y='-100%25'%3e%3cfeGaussianBlur%20result='filter_result_0'%20stdDeviation='52.5%2052.5'/%3e%3c/filter%3e%3cfilter%20id='n'%20width='300%25'%20height='300%25'%20x='-100%25'%20y='-100%25'%3e%3cfeGaussianBlur%20result='filter_result_0'/%3e%3c/filter%3e%3cfilter%20id='k'%20width='300%25'%20height='300%25'%20x='-100%25'%20y='-100%25'%3e%3cfeGaussianBlur%20result='filter_result_0'/%3e%3c/filter%3e%3cmask%20id='u'%20mask-type='alpha'%3e%3cuse%20xmlns:ns1='http://www.w3.org/1999/xlink'%20ns1:href='%23a'/%3e%3c/mask%3e%3cmask%20id='q'%20mask-type='alpha'%3e%3cuse%20xmlns:ns2='http://www.w3.org/1999/xlink'%20ns2:href='%23b'/%3e%3c/mask%3e%3cmask%20id='o'%20mask-type='alpha'%3e%3cuse%20xmlns:ns3='http://www.w3.org/1999/xlink'%20ns3:href='%23c'/%3e%3c/mask%3e%3cmask%20id='l'%20mask-type='alpha'%3e%3cuse%20xmlns:ns4='http://www.w3.org/1999/xlink'%20ns4:href='%23d'/%3e%3c/mask%3e%3cg%20id='a'%20fill-opacity='0'%20stroke-linecap='round'%20stroke-linejoin='round'%20clip-path='url(%23e)'%20style='display:none'%3e%3cpath%20class='secondary'%20style='display:none'/%3e%3cpath%20class='primary'%20style='display:none'/%3e%3c/g%3e%3cg%20id='b'%20fill-opacity='0'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='12'%20clip-path='url(%23f)'%20style='display:block'%3e%3cpath%20stroke='%2308A88A'%20d='M44.446-66.518a79.998%2079.998%200%200%200-101.012%209.952A79.998%2079.998%200%201%200%2056.569%2056.569%2080.005%2080.005%200%200%200%2073.91-30.615a80.001%2080.001%200%200%200-29.464-35.903z'%20class='secondary'%20style='display:block'%20transform='translate(215%20214)'/%3e%3cpath%20stroke='%23121331'%20d='m141.409%2025.241%208.727%205.041s0%200%200%200a22.3%2022.3%200%200%201%2010.411%2013.542%2022.32%2022.32%200%200%201-2.221%2016.937l-26.515%2045.924a22.325%2022.325%200%200%201-30.497%208.172l-8.754-5.059a143.414%20143.414%200%200%201-43.718%2025.286v10.108a22.302%2022.302%200%200%201-13.778%2020.612%2022.303%2022.303%200%200%201-8.539%201.696h-53.029a22.303%2022.303%200%200%201-15.779-6.531%2022.302%2022.302%200%200%201-6.537-15.777v-10.073a143.416%20143.416%200%200%201-43.719-25.285l-8.754%205.059a22.325%2022.325%200%200%201-30.497-8.172l-26.523-45.924a22.315%2022.315%200%200%201-2.238-16.943A22.31%2022.31%200%200%201-150.142%2030.3l8.727-5.041a145.097%20145.097%200%200%201%200-50.518l-8.727-5.041a22.294%2022.294%200%200%201-10.409-13.554%2022.306%2022.306%200%200%201%202.238-16.943l26.514-45.924a22.325%2022.325%200%200%201%2030.497-8.172l8.754%205.059a143.416%20143.416%200%200%201%2043.719-25.285v-10.073a22.302%2022.302%200%200%201%206.537-15.777%2022.3%2022.3%200%200%201%2015.779-6.531h53.02a22.307%2022.307%200%200%201%2022.317%2022.308v10.037a143.41%20143.41%200%200%201%2043.718%2025.285l8.754-5.059a22.325%2022.325%200%200%201%2030.497%208.172l26.515%2045.942a22.313%2022.313%200%200%201-1.618%2024.757%2022.294%2022.294%200%200%201-6.554%205.74l-8.727%205.041a145.097%20145.097%200%200%201%200%2050.518z'%20class='primary'%20style='display:block'%20transform='rotate(-120%20169.576%2045.095)'/%3e%3c/g%3e%3cg%20id='c'%20fill-opacity='0'%20stroke-linecap='round'%20stroke-linejoin='round'%20clip-path='url(%23g)'%20style='display:none'%3e%3cpath%20class='secondary'%20style='display:none'/%3e%3cpath%20class='primary'%20style='display:none'/%3e%3c/g%3e%3cg%20id='d'%20fill-opacity='0'%20stroke-linecap='round'%20stroke-linejoin='round'%20clip-path='url(%23h)'%20style='display:none'%3e%3cpath%20class='secondary'%20style='display:none'/%3e%3cpath%20class='primary'%20style='display:none'/%3e%3c/g%3e%3c/defs%3e%3cg%20clip-path='url(%23i)'%3e%3cg%20clip-path='url(%23j)'%20filter='url(%23k)'%20mask='url(%23l)'%20style='display:none'%3e%3cg%20class='design'%3e%3cpath%20class='primary'/%3e%3c/g%3e%3cg%20class='design'%3e%3cpath%20class='secondary'/%3e%3c/g%3e%3c/g%3e%3cg%20clip-path='url(%23m)'%20filter='url(%23n)'%20mask='url(%23o)'%20style='display:none'%3e%3cg%20class='design'%3e%3cpath%20class='primary'/%3e%3c/g%3e%3cg%20class='design'%3e%3cpath%20class='secondary'/%3e%3c/g%3e%3c/g%3e%3cg%20clip-path='url(%23p)'%20mask='url(%23q)'%20style='display:block'%3e%3cg%20filter='url(%23r)'%20transform='rotate(-94%20238.762%20-16.565)%20scale(2.4)'%3e%3cg%20class='design'%3e%3cpath%20fill='%234BE1EC'%20d='M0-250c137.975%200%20250%20112.025%20250%20250S137.975%20250%200%20250-250%20137.975-250%200-137.975-250%200-250z'%20class='primary'/%3e%3c/g%3e%3cg%20class='design'%3e%3cpath%20fill='%23CB5EEE'%20d='M113.242-295.384c97.478%200%20176.5%2079.022%20176.5%20176.5s-79.022%20176.5-176.5%20176.5c-43.948%200-74.396-34.057-105.29-60.631-37.631-32.369-71.21-62.338-71.21-115.869%200-97.478%2079.022-176.5%20176.5-176.5z'%20class='secondary'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20clip-path='url(%23s)'%20filter='url(%23t)'%20mask='url(%23u)'%20style='display:none'%3e%3cg%20class='design'%3e%3cpath%20class='primary'/%3e%3c/g%3e%3cg%20class='design'%3e%3cpath%20class='secondary'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", mo = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%20-1.67%2047.336%2047.336'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group_42'%20data-name='Group%2042'%20transform='translate(-172.455%20-364.36)'%3e%3cpath%20id='Rectangle_17'%20data-name='Rectangle%2017'%20d='M4.351,0H40.984a4.351,4.351,0,0,1,4.351,4.351V22.117a1,1,0,0,1-1,1H1a1,1,0,0,1-1-1V4.351A4.351,4.351,0,0,1,4.351,0Z'%20transform='translate(173.455%20384.243)'%20fill='none'%20stroke='%23000000'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3cpath%20id='Path_90'%20data-name='Path%2090'%20d='M218.79,390.249a3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.778,3.778,0,0,1-3.777-3.778'%20fill='none'%20stroke='%23000000'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3cg%20id='Group_41'%20data-name='Group%2041'%3e%3cpath%20id='Rectangle_18'%20data-name='Rectangle%2018'%20d='M4.351,0H26.473a4.351,4.351,0,0,1,4.351,4.351V17.883a1,1,0,0,1-1,1H1a1,1,0,0,1-1-1V4.351A4.351,4.351,0,0,1,4.351,0Z'%20transform='translate(180.71%20365.36)'%20fill='none'%20stroke='%23000000'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3cpath%20id='Path_91'%20data-name='Path%2091'%20d='M211.234,370.794a3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778'%20fill='none'%20stroke='%23000000'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", ir = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAQAAABKfvVzAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAADdcAAA3XAUIom3gAAAAHdElNRQfhBQoMHg6McuYvAAABwklEQVQ4y43TP0jUYRgH8M/daQpqdujhnwShGiwyipCIoIgWxyIwrqEhnCQoGqKhpoYMg1qCQjg8TC2JCtSkjCgaKisIhyQUwpJssD9KZWRZg6d450/yGV54n/fzfd53eUOCaoNa5QpNGNPr9cKjUAatdsB++co0G1XiiHd+uqnTq8VzI874o9s2Ic1iiEpii9tmnJOdfkOldt/dU+HYolHnjdmpRNzbuVaNL86m4sXqNOrz3kMXHFKYMqd8VREGBToMifqLgwY1yNZirya5knaBqH16fJjNJiWEFSlxy4g980+pMuZkir/UJjLbrvNRPnINaLUygK/yQpuImHp47LOjuKJPOJA/1y4iZsAlyozLs8IO42L/4QlhGrSCy5oCeKH+dM59vVbL9sn6AP5MRzpnVKtN1viRxit1WRvEmVKFrQbTpoddNR3E+aYKuw1lPOapa0GcEf22KzOtejmcG1rkYdjEAn59KU5cDzjt+HI4BSZtVJTazfIsMQOmFAusLr/E53lniickJYIDNcaUL+JhMZPWBUdOeCCaweGOw5k0lFrv2uyRuBxPlLpoBtTK0p3mh+f+dKl6jX6LapRj6XrzD+1bmkFA/dTVAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE3LTA1LTEwVDEyOjMwOjE0KzAyOjAwUNH5TAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNy0wNS0xMFQxMjozMDoxNCswMjowMCGMQfAAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC", ar = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAACmAAAApgHdff84AAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAn9QTFRF////AAAAAAAAAAAAAAAAAAAzABcXABQUABIkDhwrAA0aAAwYABUgABQfABIbABAZAA8fABUcABMaABMfABIeABEcABAbABQeABMdABIdABEbABIbABIbABEdABEcABIcBxsoABEdABIdABIdABEcABMbABMdFBwgERofAhIbEhsfAhIdBxUeEhsgEBofAhMbAhMdBRMdAhIbAhIdAhMdCRceARIcDBgfDBgfDBcfDBcfFhwgDBceDBceCxceFCs5HTdGAxMcDxofGTFAHDRDHDVDHDVEHTZFDRkfEBofERogCh0oERsgARIcEhsfEhsgCh4pDCEsDRkfDRkfEBofBhQdDSMvDRgfDBgfCBUeBxUeDyUyECYzUDktPTAqCRceCRYeChYeDxkfEBkgLCgmWj4wCBYdW0AwGh4hHCAiHSAiTDctBhUdBxYdEBkfLyonMConBhUdJiUkLCclLSgmLigmOzApPTEpDBgfBRQdDBgfERsgWT8wBBMdCBYeChceQjMrSzctZEUyBBMdERsgXUAxXkExY0QzglQ5AxUfBxolSj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$o = '.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkh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CtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9IN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ivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}', er = `.leaflet-draw-section{position:relative}.leaflet-draw-toolbar{margin-top:12px}.leaflet-draw-toolbar-top{margin-top:0}.leaflet-draw-toolbar-notop a:first-child{border-top-right-radius:0}.leaflet-draw-toolbar-nobottom a:last-child{border-bottom-right-radius:0}.leaflet-draw-toolbar a{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAAeCAYAAACWuCNnAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAG7AAABuwBHnU4NQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAbvSURBVHic7dtdbBxXFQfw/9nZ3SRKwAP7UFFUQOoHqGnUoEAoNghX9tyxVcpD1X0J+WgiUQmpfUB5ACSgG1qJIKASqBIUIauqAbWseIlqb+bOWHVR6y0FKZBEqdIUQROIREGRx3FFvR/38ODZst3a3nE8Ywfv+T2t7hzdM3fle/bOnWtACCGEEEIIIYQQQg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s4OgAAAABJRU5ErkJggg==);background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20viewBox='0%200%20600%2060'%20height='60'%20width='600'%20id='svg4225'%20version='1.1'%20inkscape:version='0.91%20r13725'%20sodipodi:docname='spritesheet.svg'%20inkscape:export-filename='/home/fpuga/development/upstream/icarto.Leaflet.draw/src/images/spritesheet-2x.png'%20inkscape:export-xdpi='90'%20inkscape:export-ydpi='90'%3e%3cmetadata%20id='metadata4258'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cdefs%20id='defs4256'%20/%3e%3csodipodi:namedview%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1'%20objecttolerance='10'%20gridtolerance='10'%20guidetolerance='10'%20inkscape:pageopacity='0'%20inkscape:pageshadow='2'%20inkscape:window-width='1920'%20inkscape:window-height='1056'%20id='namedview4254'%20showgrid='false'%20inkscape:zoom='1.3101852'%20inkscape:cx='237.56928'%20inkscape:cy='7.2419621'%20inkscape:window-x='1920'%20inkscape:window-y='24'%20inkscape:window-maximized='1'%20inkscape:current-layer='svg4225'%20/%3e%3cg%20id='enabled'%20style='fill:%23464646;fill-opacity:1'%3e%3cg%20id='polyline'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%2018,36%200,6%206,0%200,-6%20-6,0%20z%20m%204,4%20-2,0%200,-2%202,0%200,2%20z'%20id='path4229'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%2036,18%200,6%206,0%200,-6%20-6,0%20z%20m%204,4%20-2,0%200,-2%202,0%200,2%20z'%20id='path4231'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%2023.142,39.145%20-2.285,-2.29%2016,-15.998%202.285,2.285%20z'%20id='path4233'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3cpath%20id='polygon'%20d='M%20100,24.565%2097.904,39.395%2083.07,42%2076,28.773%2086.463,18%20Z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='rectangle'%20d='m%20140,20%2020,0%200,20%20-20,0%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='circle'%20d='m%20221,30%20c%200,6.078%20-4.926,11%20-11,11%20-6.074,0%20-11,-4.922%20-11,-11%200,-6.074%204.926,-11%2011,-11%206.074,0%2011,4.926%2011,11%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='marker'%20d='m%20270,19%20c%20-4.971,0%20-9,4.029%20-9,9%200,4.971%205.001,12%209,14%204.001,-2%209,-9.029%209,-14%200,-4.971%20-4.029,-9%20-9,-9%20z%20m%200,12.5%20c%20-2.484,0%20-4.5,-2.014%20-4.5,-4.5%200,-2.484%202.016,-4.5%204.5,-4.5%202.485,0%204.5,2.016%204.5,4.5%200,2.486%20-2.015,4.5%20-4.5,4.5%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cg%20id='edit'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%20337,30.156%200,0.407%200,5.604%20c%200,1.658%20-1.344,3%20-3,3%20l%20-10,0%20c%20-1.655,0%20-3,-1.342%20-3,-3%20l%200,-10%20c%200,-1.657%201.345,-3%203,-3%20l%206.345,0%203.19,-3.17%20-9.535,0%20c%20-3.313,0%20-6,2.687%20-6,6%20l%200,10%20c%200,3.313%202.687,6%206,6%20l%2010,0%20c%203.314,0%206,-2.687%206,-6%20l%200,-8.809%20-3,2.968'%20id='path4240'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20338.72,24.637%20-8.892,8.892%20-2.828,0%200,-2.829%208.89,-8.89%20z'%20id='path4242'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20338.697,17.826%204,0%200,4%20-4,0%20z'%20transform='matrix(-0.70698336,-0.70723018,0.70723018,-0.70698336,567.55917,274.78273)'%20id='path4244'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3cg%20id='remove'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%20381,42%2018,0%200,-18%20-18,0%200,18%20z%20m%2014,-16%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z'%20id='path4247'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20395,20%200,-4%20-10,0%200,4%20-6,0%200,2%2022,0%200,-2%20-6,0%20z%20m%20-2,0%20-6,0%200,-2%206,0%200,2%20z'%20id='path4249'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3c/g%3e%3cg%20id='disabled'%20transform='translate(120,0)'%20style='fill:%23bbbbbb'%3e%3cuse%20xlink:href='%23edit'%20id='edit-disabled'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%20/%3e%3cuse%20xlink:href='%23remove'%20id='remove-disabled'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%20/%3e%3c/g%3e%3cpath%20style='fill:none;stroke:%23464646;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='circle-3'%20d='m%20581.65725,30%20c%200,6.078%20-4.926,11%20-11,11%20-6.074,0%20-11,-4.922%20-11,-11%200,-6.074%204.926,-11%2011,-11%206.074,0%2011,4.926%2011,11%20z'%20inkscape:connector-curvature='0'%20/%3e%3c/svg%3e");background-repeat:no-repeat;background-size:300px 30px;background-clip:padding-box}.leaflet-retina .leaflet-draw-toolbar a{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAA8CAYAAAC6nMS5AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAA16SURBVHic7d1/jBxneQfw7zNzvotdn+9sVQkxoRKoammBqqpbk6uT5mLfvHPn42yn1VFRVCEhoFH5IYpoSaUCKi1NcGkcfrbCVRFKEwG2aHLn83pmLvY2CTqT1AmCOBE0EOT4B0nBPw/snb2dp3/sLr6s77i923dud/a+H8ny7tzMo8f3eud99p133gGIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiFYGaXYCRETUPMYYrWe/MAzZX2QQ27d5OpqdABFROxgZGVlz5cqVrzuOc18QBJPNzofsYvvSYrVcgTVftZ2l6npgYODXHMc5oKoHHcfZHQTB2WbnRETpGRkZWVMoFA6IyO2qutX3/R1Z64TnO8fWOwLSzti+mSKDg4M3l0qlnSJyG4CbAFwP4ByAlwE8paoPX3fddcH4+PjP00yk5QqsrDPGvAZAHsBrReRNqvpeY8x/iMg9QRCcaXJ6ZIH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6oUO9H1/Z+WcPoDysgw7bJ/DUl8Hq52LqwoVkb9T1WiRx8UoX158RlWfnJqaupxCbmRJFEWn+/r6buvu7v4ggI9g4Ynv50XknkKh8JkMjly9wqFDh77j+/6oqo4BqD1xXRaRPw6CwMZl1GXjuu6XSqXSOwH8LoD1AMaMMecA1PtF53WV4wCUC+menp699jOlpWD7rhz5fP5Kf3//UFdX132q+l4Ad3d3d7/fGPN1EZlQ1e/19PS8dPbs2fWu694kIgOqOqqqm4Dy4rKlUumOw4cPN3KVYk7WVkE1xsx5aSBLT+duhDEmQrkSnssZlIeXnxWRY6p6PI7j41nveFeq4eHh9XEc7xSRnQBej6t3kp5EuWh+OI7jh+dYsDDTfN/frKrjAKpPmv9pkiS7JicnH29mXku1devWV3d0dBxAuRNeMhF5ulgsjqRxgk7DfOfqxWr1czvbtzGt3r5zGRwc7FPV3ap6y0L7ishPAHx63bp1e/bt2xenkQ8LLEuMMZtE5JCqfhfAMwCeSZLkO2vWrDk+NjbGyZHUFjzP2yginwcAVX1fVi99Vo2OjnaeP3/+3SLydgBvBNBd56GXAHxXVR/s7e3dm9YJOg0rqQNm+y5dFtp3HmKM2QxgF8qr9b8GwA0AzgH4MYBjIjJ28eLFkFeOiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIhWgv8Hnffz4dmwY9cAAAAASUVORK5CYII=);background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20viewBox='0%200%20600%2060'%20height='60'%20width='600'%20id='svg4225'%20version='1.1'%20inkscape:version='0.91%20r13725'%20sodipodi:docname='spritesheet.svg'%20inkscape:export-filename='/home/fpuga/development/upstream/icarto.Leaflet.draw/src/images/spritesheet-2x.png'%20inkscape:export-xdpi='90'%20inkscape:export-ydpi='90'%3e%3cmetadata%20id='metadata4258'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cdefs%20id='defs4256'%20/%3e%3csodipodi:namedview%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1'%20objecttolerance='10'%20gridtolerance='10'%20guidetolerance='10'%20inkscape:pageopacity='0'%20inkscape:pageshadow='2'%20inkscape:window-width='1920'%20inkscape:window-height='1056'%20id='namedview4254'%20showgrid='false'%20inkscape:zoom='1.3101852'%20inkscape:cx='237.56928'%20inkscape:cy='7.2419621'%20inkscape:window-x='1920'%20inkscape:window-y='24'%20inkscape:window-maximized='1'%20inkscape:current-layer='svg4225'%20/%3e%3cg%20id='enabled'%20style='fill:%23464646;fill-opacity:1'%3e%3cg%20id='polyline'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%2018,36%200,6%206,0%200,-6%20-6,0%20z%20m%204,4%20-2,0%200,-2%202,0%200,2%20z'%20id='path4229'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%2036,18%200,6%206,0%200,-6%20-6,0%20z%20m%204,4%20-2,0%200,-2%202,0%200,2%20z'%20id='path4231'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%2023.142,39.145%20-2.285,-2.29%2016,-15.998%202.285,2.285%20z'%20id='path4233'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3cpath%20id='polygon'%20d='M%20100,24.565%2097.904,39.395%2083.07,42%2076,28.773%2086.463,18%20Z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='rectangle'%20d='m%20140,20%2020,0%200,20%20-20,0%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='circle'%20d='m%20221,30%20c%200,6.078%20-4.926,11%20-11,11%20-6.074,0%20-11,-4.922%20-11,-11%200,-6.074%204.926,-11%2011,-11%206.074,0%2011,4.926%2011,11%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='marker'%20d='m%20270,19%20c%20-4.971,0%20-9,4.029%20-9,9%200,4.971%205.001,12%209,14%204.001,-2%209,-9.029%209,-14%200,-4.971%20-4.029,-9%20-9,-9%20z%20m%200,12.5%20c%20-2.484,0%20-4.5,-2.014%20-4.5,-4.5%200,-2.484%202.016,-4.5%204.5,-4.5%202.485,0%204.5,2.016%204.5,4.5%200,2.486%20-2.015,4.5%20-4.5,4.5%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cg%20id='edit'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%20337,30.156%200,0.407%200,5.604%20c%200,1.658%20-1.344,3%20-3,3%20l%20-10,0%20c%20-1.655,0%20-3,-1.342%20-3,-3%20l%200,-10%20c%200,-1.657%201.345,-3%203,-3%20l%206.345,0%203.19,-3.17%20-9.535,0%20c%20-3.313,0%20-6,2.687%20-6,6%20l%200,10%20c%200,3.313%202.687,6%206,6%20l%2010,0%20c%203.314,0%206,-2.687%206,-6%20l%200,-8.809%20-3,2.968'%20id='path4240'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20338.72,24.637%20-8.892,8.892%20-2.828,0%200,-2.829%208.89,-8.89%20z'%20id='path4242'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20338.697,17.826%204,0%200,4%20-4,0%20z'%20transform='matrix(-0.70698336,-0.70723018,0.70723018,-0.70698336,567.55917,274.78273)'%20id='path4244'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3cg%20id='remove'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%20381,42%2018,0%200,-18%20-18,0%200,18%20z%20m%2014,-16%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z'%20id='path4247'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20395,20%200,-4%20-10,0%200,4%20-6,0%200,2%2022,0%200,-2%20-6,0%20z%20m%20-2,0%20-6,0%200,-2%206,0%200,2%20z'%20id='path4249'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3c/g%3e%3cg%20id='disabled'%20transform='translate(120,0)'%20style='fill:%23bbbbbb'%3e%3cuse%20xlink:href='%23edit'%20id='edit-disabled'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%20/%3e%3cuse%20xlink:href='%23remove'%20id='remove-disabled'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%20/%3e%3c/g%3e%3cpath%20style='fill:none;stroke:%23464646;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='circle-3'%20d='m%20581.65725,30%20c%200,6.078%20-4.926,11%20-11,11%20-6.074,0%20-11,-4.922%20-11,-11%200,-6.074%204.926,-11%2011,-11%206.074,0%2011,4.926%2011,11%20z'%20inkscape:connector-curvature='0'%20/%3e%3c/svg%3e")}.leaflet-draw a{display:block;text-align:center;text-decoration:none}.leaflet-draw a .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.leaflet-draw-actions{display:none;list-style:none;margin:0;padding:0;position:absolute;left:26px;top:0;white-space:nowrap}.leaflet-touch .leaflet-draw-actions{left:32px}.leaflet-right .leaflet-draw-actions{right:26px;left:auto}.leaflet-touch .leaflet-right .leaflet-draw-actions{right:32px;left:auto}.leaflet-draw-actions li{display:inline-block}.leaflet-draw-actions li:first-child a{border-left:0}.leaflet-draw-actions li:last-child a{-webkit-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.leaflet-right .leaflet-draw-actions li:last-child a{-webkit-border-radius:0;border-radius:0}.leaflet-right .leaflet-draw-actions li:first-child a{-webkit-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}.leaflet-draw-actions a{background-color:#919187;border-left:1px solid #AAA;color:#fff;font:11px/19px Helvetica Neue,Arial,Helvetica,sans-serif;line-height:28px;text-decoration:none;padding-left:10px;padding-right:10px;height:28px}.leaflet-touch .leaflet-draw-actions a{font-size:12px;line-height:30px;height:30px}.leaflet-draw-actions-bottom{margin-top:0}.leaflet-draw-actions-top{margin-top:1px}.leaflet-draw-actions-top a,.leaflet-draw-actions-bottom a{height:27px;line-height:27px}.leaflet-draw-actions a:hover{background-color:#a0a098}.leaflet-draw-actions-top.leaflet-draw-actions-bottom a{height:26px;line-height:26px}.leaflet-draw-toolbar .leaflet-draw-draw-polyline{background-position:-2px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polyline{background-position:0 -1px}.leaflet-draw-toolbar .leaflet-draw-draw-polygon{background-position:-31px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polygon{background-position:-29px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-rectangle{background-position:-62px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-rectangle{background-position:-60px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-circle{background-position:-92px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circle{background-position:-90px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-marker{background-position:-122px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-marker{background-position:-120px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-circlemarker{background-position:-273px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circlemarker{background-position:-271px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-edit{background-position:-152px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit{background-position:-150px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-remove{background-position:-182px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove{background-position:-180px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled{background-position:-212px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled{background-position:-210px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled{background-position:-242px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled{background-position:-240px -2px}.leaflet-mouse-marker{background-color:#fff;cursor:crosshair}.leaflet-draw-tooltip{background:#363636;background:#00000080;border:1px solid transparent;-webkit-border-radius:4px;border-radius:4px;color:#fff;font:12px/18px Helvetica Neue,Arial,Helvetica,sans-serif;margin-left:20px;margin-top:-21px;padding:4px 8px;position:absolute;visibility:hidden;white-space:nowrap;z-index:6}.leaflet-draw-tooltip:before{border-right:6px solid black;border-right-color:#00000080;border-top:6px solid transparent;border-bottom:6px solid transparent;content:"";position:absolute;top:7px;left:-7px}.leaflet-error-draw-tooltip{background-color:#f2dede;border:1px solid #e6b6bd;color:#b94a48}.leaflet-error-draw-tooltip:before{border-right-color:#e6b6bd}.leaflet-draw-tooltip-single{margin-top:-12px}.leaflet-draw-tooltip-subtext{color:#f8d5e4}.leaflet-draw-guide-dash{font-size:1%;opacity:.6;position:absolute;width:5px;height:5px}.leaflet-edit-marker-selected{background-color:#fe57a11a;border:4px dashed rgba(254,87,161,.6);-webkit-border-radius:4px;border-radius:4px;box-sizing:content-box}.leaflet-edit-move{cursor:move}.leaflet-edit-resize{cursor:pointer}.leaflet-oldie .leaflet-draw-toolbar{border:1px solid #999}`, tr = ".leaflet-ruler{height:35px;width:35px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAQAAABKfvVzAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAADdcAAA3XAUIom3gAAAAHdElNRQfhBQoMHg6McuYvAAABwklEQVQ4y43TP0jUYRgH8M/daQpqdujhnwShGiwyipCIoIgWxyIwrqEhnCQoGqKhpoYMg1qCQjg8TC2JCtSkjCgaKisIhyQUwpJssD9KZWRZg6d450/yGV54n/fzfd53eUOCaoNa5QpNGNPr9cKjUAatdsB++co0G1XiiHd+uqnTq8VzI874o9s2Ic1iiEpii9tmnJOdfkOldt/dU+HYolHnjdmpRNzbuVaNL86m4sXqNOrz3kMXHFKYMqd8VREGBToMifqLgwY1yNZirya5knaBqH16fJjNJiWEFSlxy4g980+pMuZkir/UJjLbrvNRPnINaLUygK/yQpuImHp47LOjuKJPOJA/1y4iZsAlyozLs8IO42L/4QlhGrSCy5oCeKH+dM59vVbL9sn6AP5MRzpnVKtN1viRxit1WRvEmVKFrQbTpoddNR3E+aYKuw1lPOapa0GcEf22KzOtejmcG1rkYdjEAn59KU5cDzjt+HI4BSZtVJTazfIsMQOmFAusLr/E53lniickJYIDNcaUL+JhMZPWBUdOeCCaweGOw5k0lFrv2uyRuBxPlLpoBtTK0p3mh+f+dKl6jX6LapRj6XrzD+1bmkFA/dTVAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE3LTA1LTEwVDEyOjMwOjE0KzAyOjAwUNH5TAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNy0wNS0xMFQxMjozMDoxNCswMjowMCGMQfAAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC);background-repeat:no-repeat;background-position:center}.leaflet-ruler:hover{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAACmAAAApgHdff84AAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAn9QTFRF////AAAAAAAAAAAAAAAAAAAzABcXABQUABIkDhwrAA0aAAwYABUgABQfABIbABAZAA8fABUcABMaABMfABIeABEcABAbABQeABMdABIdABEbABIbABIbABEdABEcABIcBxsoABEdABIdABIdABEcABMbABMdFBwgERofAhIbEhsfAhIdBxUeEhsgEBofAhMbAhMdBRMdAhIbAhIdAhMdCRceARIcDBgfDBgfDBcfDBcfFhwgDBceDBceCxceFCs5HTdGAxMcDxofGTFAHDRDHDVDHDVEHTZFDRkfEBofERogCh0oERsgARIcEhsfEhsgCh4pDCEsDRkfDRkfEBofBhQdDSMvDRgfDBgfCBUeBxUeDyUyECYzUDktPTAqCRceCRYeChYeDxkfEBkgLCgmWj4wCBYdW0AwGh4hHCAiHSAiTDctBhUdBxYdEBkfLyonMConBhUdJiUkLCclLSgmLigmOzApPTEpDBgfBRQdDBgfERsgWT8wBBMdCBYeChceQjMrSzctZEUyBBMdERsgXUAxXkExY0QzglQ5AxUfBxolSjcthlU6hlY7h1Y7AxMcSDUsSjYsd042g1Q5hlY6jVo8AhIcAxMcBBQdLEpcOVpvARIcAhIcBhQdDSIuEhsgJ0NUNS0oNi0oO11yTTgtUXmSUnqUXEAxXUExYEIyZUUzaEYzb0o1cEo1dEw2i1g8jFk8jcfskFs9mdX9mmA/mtf/pmZCqGdCsWxEvnJHxHVJxnZJyHdJzHlK0XxM031M139N3IFO3YJO4INP5IVQ5YZQ5oZQ6ohR7IlS7opS74tS8ItT841T9I1T9o5U949U+ZBV+pBV/ZJW/pJW/5NWIYcOagAAAJt0Uk5TAAECAwQFCw0OEhQVGBkcHyEkKCkqLTAzNUZLVFZZW2RnanJzeHl8f4uMjY6Pj5KVl52eoKGprKytrq+vsLGytLu9vb/BwsLDxcXP0NDS09bf4uPk5OXl5ufo6enq7O3u7+/x8fHy8/P09PT09fX19fX29vb29vb29/j4+Pj5+fn5+fn6+vr6+vr7/Pz8/Pz9/f39/f39/v7+/v7Td3FlAAABgklEQVQoU2NggAMRJU1DTWURBlQgqhWUND11Tfr05GBdMYQws8a07j2XVx2/cnLl5T0T5+ixQsX5/RrWr70CA+s2NPoLgMUlciddvnLl3PbslMysmi2ngXKTc/iA4uwRC1dfudRT76UtJy5lMHvHlSsni82ZgBLWbZdOHCuPlARpForvBYszA9ky1WeunC8y5YCI9125cqrEnJlbnoHBZ/6mK+0eTAjxUgtmbl99Bt6Ksxd2pXGDxRPg4kZMDIqxV6406cDFT8PEGRwnHLlYJQwSTwSJ51tCxRmiVuw7VAsRP7zkIEKcofnAlb0hEPWXls9AiDNUHriyMxwoPgVoToEVQpwhdNHuY/2imOIMZq1nr2QUgsVtkMUZZOOuXOmYiinOwF63/8QVsDgLd0wnFwMCOM3dBhK3ZeGOXjzLHklCIu8oRDxs8eaNXYJIMuplJ0HigYs3b906UwFJgtGzxY6FLWDe0mXLli3wVoEAaZAMjxoLA6eDu5urq4uziTEEqAIAvamx163e5EoAAAAASUVORK5CYII=)}.leaflet-ruler-clicked{height:35px;width:35px;background-repeat:no-repeat;background-position:center;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAACmAAAApgHdff84AAAAGXRFWHRTb2Z0d2FyZQ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v7Td3FlAAABgklEQVQoU2NggAMRJU1DTWURBlQgqhWUND11Tfr05GBdMYQws8a07j2XVx2/cnLl5T0T5+ixQsX5/RrWr70CA+s2NPoLgMUlciddvnLl3PbslMysmi2ngXKTc/iA4uwRC1dfudRT76UtJy5lMHvHlSsni82ZgBLWbZdOHCuPlARpForvBYszA9ky1WeunC8y5YCI9125cqrEnJlbnoHBZ/6mK+0eTAjxUgtmbl99Bt6Ksxd2pXGDxRPg4kZMDIqxV6406cDFT8PEGRwnHLlYJQwSTwSJ51tCxRmiVuw7VAsRP7zkIEKcofnAlb0hEPWXls9AiDNUHriyMxwoPgVoToEVQpwhdNHuY/2imOIMZq1nr2QUgsVtkMUZZOOuXOmYiinOwF63/8QVsDgLd0wnFwMCOM3dBhK3ZeGOXjzLHklCIu8oRDxs8eaNXYJIMuplJ0HigYs3b906UwFJgtGzxY6FLWDe0mXLli3wVoEAaZAMjxoLA6eDu5urq4uziTEEqAIAvamx163e5EoAAAAASUVORK5CYII=);border-color:#7fff00!important}.leaflet-bar{background-color:#fff}.leaflet-control{cursor:pointer}.result-tooltip{background-color:#fff;border-width:medium;border-color:#de0000;font-size:smaller}.moving-tooltip{background-color:#ffffffb3;background-clip:padding-box;opacity:.5;border:dotted;border-color:red;font-size:smaller}.plus-length{padding-left:45px}", or = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spg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GnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC", ar = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='430'%20height='430'%20style='width:100%25;height:100%25;transform:translate3d(0,0,0);content-visibility:visible'%20viewBox='0%200%20430%20430'%3e%3cdefs%3e%3cclipPath%20id='i'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='s'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='e'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='p'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='f'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='m'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='g'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='j'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cclipPath%20id='h'%3e%3cpath%20d='M0%200h430v430H0z'/%3e%3c/clipPath%3e%3cfilter%20id='t'%20width='300%25'%20height='300%25'%20x='-100%25'%20y='-100%25'%3e%3cfeGaussianBlur%20result='filter_result_0'/%3e%3c/filter%3e%3cfilter%20id='r'%20width='300%25'%20height='300%25'%20x='-100%25'%20y='-100%25'%3e%3cfeGaussianBlur%20result='filter_result_0'%20stdDeviation='52.5%2052.5'/%3e%3c/filter%3e%3cfilter%20id='n'%20width='300%25'%20height='300%25'%20x='-100%25'%20y='-100%25'%3e%3cfeGaussianBlur%20result='filter_result_0'/%3e%3c/filter%3e%3cfilter%20id='k'%20width='300%25'%20height='300%25'%20x='-100%25'%20y='-100%25'%3e%3cfeGaussianBlur%20result='filter_result_0'/%3e%3c/filter%3e%3cmask%20id='u'%20mask-type='alpha'%3e%3cuse%20xmlns:ns1='http://www.w3.org/1999/xlink'%20ns1:href='%23a'/%3e%3c/mask%3e%3cmask%20id='q'%20mask-type='alpha'%3e%3cuse%20xmlns:ns2='http://www.w3.org/1999/xlink'%20ns2:href='%23b'/%3e%3c/mask%3e%3cmask%20id='o'%20mask-type='alpha'%3e%3cuse%20xmlns:ns3='http://www.w3.org/1999/xlink'%20ns3:href='%23c'/%3e%3c/mask%3e%3cmask%20id='l'%20mask-type='alpha'%3e%3cuse%20xmlns:ns4='http://www.w3.org/1999/xlink'%20ns4:href='%23d'/%3e%3c/mask%3e%3cg%20id='a'%20fill-opacity='0'%20stroke-linecap='round'%20stroke-linejoin='round'%20clip-path='url(%23e)'%20style='display:none'%3e%3cpath%20class='secondary'%20style='display:none'/%3e%3cpath%20class='primary'%20style='display:none'/%3e%3c/g%3e%3cg%20id='b'%20fill-opacity='0'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='12'%20clip-path='url(%23f)'%20style='display:block'%3e%3cpath%20stroke='%2308A88A'%20d='M44.446-66.518a79.998%2079.998%200%200%200-101.012%209.952A79.998%2079.998%200%201%200%2056.569%2056.569%2080.005%2080.005%200%200%200%2073.91-30.615a80.001%2080.001%200%200%200-29.464-35.903z'%20class='secondary'%20style='display:block'%20transform='translate(215%20214)'/%3e%3cpath%20stroke='%23121331'%20d='m141.409%2025.241%208.727%205.041s0%200%200%200a22.3%2022.3%200%200%201%2010.411%2013.542%2022.32%2022.32%200%200%201-2.221%2016.937l-26.515%2045.924a22.325%2022.325%200%200%201-30.497%208.172l-8.754-5.059a143.414%20143.414%200%200%201-43.718%2025.286v10.108a22.302%2022.302%200%200%201-13.778%2020.612%2022.303%2022.303%200%200%201-8.539%201.696h-53.029a22.303%2022.303%200%200%201-15.779-6.531%2022.302%2022.302%200%200%201-6.537-15.777v-10.073a143.416%20143.416%200%200%201-43.719-25.285l-8.754%205.059a22.325%2022.325%200%200%201-30.497-8.172l-26.523-45.924a22.315%2022.315%200%200%201-2.238-16.943A22.31%2022.31%200%200%201-150.142%2030.3l8.727-5.041a145.097%20145.097%200%200%201%200-50.518l-8.727-5.041a22.294%2022.294%200%200%201-10.409-13.554%2022.306%2022.306%200%200%201%202.238-16.943l26.514-45.924a22.325%2022.325%200%200%201%2030.497-8.172l8.754%205.059a143.416%20143.416%200%200%201%2043.719-25.285v-10.073a22.302%2022.302%200%200%201%206.537-15.777%2022.3%2022.3%200%200%201%2015.779-6.531h53.02a22.307%2022.307%200%200%201%2022.317%2022.308v10.037a143.41%20143.41%200%200%201%2043.718%2025.285l8.754-5.059a22.325%2022.325%200%200%201%2030.497%208.172l26.515%2045.942a22.313%2022.313%200%200%201-1.618%2024.757%2022.294%2022.294%200%200%201-6.554%205.74l-8.727%205.041a145.097%20145.097%200%200%201%200%2050.518z'%20class='primary'%20style='display:block'%20transform='rotate(-120%20169.576%2045.095)'/%3e%3c/g%3e%3cg%20id='c'%20fill-opacity='0'%20stroke-linecap='round'%20stroke-linejoin='round'%20clip-path='url(%23g)'%20style='display:none'%3e%3cpath%20class='secondary'%20style='display:none'/%3e%3cpath%20class='primary'%20style='display:none'/%3e%3c/g%3e%3cg%20id='d'%20fill-opacity='0'%20stroke-linecap='round'%20stroke-linejoin='round'%20clip-path='url(%23h)'%20style='display:none'%3e%3cpath%20class='secondary'%20style='display:none'/%3e%3cpath%20class='primary'%20style='display:none'/%3e%3c/g%3e%3c/defs%3e%3cg%20clip-path='url(%23i)'%3e%3cg%20clip-path='url(%23j)'%20filter='url(%23k)'%20mask='url(%23l)'%20style='display:none'%3e%3cg%20class='design'%3e%3cpath%20class='primary'/%3e%3c/g%3e%3cg%20class='design'%3e%3cpath%20class='secondary'/%3e%3c/g%3e%3c/g%3e%3cg%20clip-path='url(%23m)'%20filter='url(%23n)'%20mask='url(%23o)'%20style='display:none'%3e%3cg%20class='design'%3e%3cpath%20class='primary'/%3e%3c/g%3e%3cg%20class='design'%3e%3cpath%20class='secondary'/%3e%3c/g%3e%3c/g%3e%3cg%20clip-path='url(%23p)'%20mask='url(%23q)'%20style='display:block'%3e%3cg%20filter='url(%23r)'%20transform='rotate(-94%20238.762%20-16.565)%20scale(2.4)'%3e%3cg%20class='design'%3e%3cpath%20fill='%234BE1EC'%20d='M0-250c137.975%200%20250%20112.025%20250%20250S137.975%20250%200%20250-250%20137.975-250%200-137.975-250%200-250z'%20class='primary'/%3e%3c/g%3e%3cg%20class='design'%3e%3cpath%20fill='%23CB5EEE'%20d='M113.242-295.384c97.478%200%20176.5%2079.022%20176.5%20176.5s-79.022%20176.5-176.5%20176.5c-43.948%200-74.396-34.057-105.29-60.631-37.631-32.369-71.21-62.338-71.21-115.869%200-97.478%2079.022-176.5%20176.5-176.5z'%20class='secondary'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20clip-path='url(%23s)'%20filter='url(%23t)'%20mask='url(%23u)'%20style='display:none'%3e%3cg%20class='design'%3e%3cpath%20class='primary'/%3e%3c/g%3e%3cg%20class='design'%3e%3cpath%20class='secondary'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", yo = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20width='800px'%20height='800px'%20viewBox='0%20-1.67%2047.336%2047.336'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group_42'%20data-name='Group%2042'%20transform='translate(-172.455%20-364.36)'%3e%3cpath%20id='Rectangle_17'%20data-name='Rectangle%2017'%20d='M4.351,0H40.984a4.351,4.351,0,0,1,4.351,4.351V22.117a1,1,0,0,1-1,1H1a1,1,0,0,1-1-1V4.351A4.351,4.351,0,0,1,4.351,0Z'%20transform='translate(173.455%20384.243)'%20fill='none'%20stroke='%23000000'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3cpath%20id='Path_90'%20data-name='Path%2090'%20d='M218.79,390.249a3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.778,3.778,0,0,1-3.777-3.778'%20fill='none'%20stroke='%23000000'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3cg%20id='Group_41'%20data-name='Group%2041'%3e%3cpath%20id='Rectangle_18'%20data-name='Rectangle%2018'%20d='M4.351,0H26.473a4.351,4.351,0,0,1,4.351,4.351V17.883a1,1,0,0,1-1,1H1a1,1,0,0,1-1-1V4.351A4.351,4.351,0,0,1,4.351,0Z'%20transform='translate(180.71%20365.36)'%20fill='none'%20stroke='%23000000'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3cpath%20id='Path_91'%20data-name='Path%2091'%20d='M211.234,370.794a3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778'%20fill='none'%20stroke='%23000000'%20stroke-linecap='round'%20stroke-linejoin='round'%20stroke-width='2'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", nr = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAQAAABKfvVzAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAADdcAAA3XAUIom3gAAAAHdElNRQfhBQoMHg6McuYvAAABwklEQVQ4y43TP0jUYRgH8M/daQpqdujhnwShGiwyipCIoIgWxyIwrqEhnCQoGqKhpoYMg1qCQjg8TC2JCtSkjCgaKisIhyQUwpJssD9KZWRZg6d450/yGV54n/fzfd53eUOCaoNa5QpNGNPr9cKjUAatdsB++co0G1XiiHd+uqnTq8VzI874o9s2Ic1iiEpii9tmnJOdfkOldt/dU+HYolHnjdmpRNzbuVaNL86m4sXqNOrz3kMXHFKYMqd8VREGBToMifqLgwY1yNZirya5knaBqH16fJjNJiWEFSlxy4g980+pMuZkir/UJjLbrvNRPnINaLUygK/yQpuImHp47LOjuKJPOJA/1y4iZsAlyozLs8IO42L/4QlhGrSCy5oCeKH+dM59vVbL9sn6AP5MRzpnVKtN1viRxit1WRvEmVKFrQbTpoddNR3E+aYKuw1lPOapa0GcEf22KzOtejmcG1rkYdjEAn59KU5cDzjt+HI4BSZtVJTazfIsMQOmFAusLr/E53lniickJYIDNcaUL+JhMZPWBUdOeCCaweGOw5k0lFrv2uyRuBxPlLpoBtTK0p3mh+f+dKl6jX6LapRj6XrzD+1bmkFA/dTVAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE3LTA1LTEwVDEyOjMwOjE0KzAyOjAwUNH5TAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNy0wNS0xMFQxMjozMDoxNCswMjowMCGMQfAAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC", sr = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3K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y8/P09PT09fX19fX29vb29vb29/j4+Pj5+fn5+fn6+vr6+vr7/Pz8/Pz9/f39/f39/v7+/v7Td3FlAAABgklEQVQoU2NggAMRJU1DTWURBlQgqhWUND11Tfr05GBdMYQws8a07j2XVx2/cnLl5T0T5+ixQsX5/RrWr70CA+s2NPoLgMUlciddvnLl3PbslMysmi2ngXKTc/iA4uwRC1dfudRT76UtJy5lMHvHlSsni82ZgBLWbZdOHCuPlARpForvBYszA9ky1WeunC8y5YCI9125cqrEnJlbnoHBZ/6mK+0eTAjxUgtmbl99Bt6Ksxd2pXGDxRPg4kZMDIqxV6406cDFT8PEGRwnHLlYJQwSTwSJ51tCxRmiVuw7VAsRP7zkIEKcofnAlb0hEPWXls9AiDNUHriyMxwoPgVoToEVQpwhdNHuY/2imOIMZq1nr2QUgsVtkMUZZOOuXOmYiinOwF63/8QVsDgLd0wnFwMCOM3dBhK3ZeGOXjzLHklCIu8oRDxs8eaNXYJIMuplJ0HigYs3b906UwFJgtGzxY6FLWDe0mXLli3wVoEAaZAMjxoLA6eDu5urq4uziTEEqAIAvamx163e5EoAAAAASUVORK5CYII=";
68
+ function lr(i) {
68
69
  const t = "data-leaflet-styles";
69
70
  if (i.querySelector(`style[${t}]`)) return;
70
71
  const e = document.createElement("style");
71
72
  e.setAttribute(t, "true"), e.textContent = `
72
73
  /* --- Leaflet core CSS --- */
73
- ${Wo}
74
+ ${$o}
74
75
 
75
76
  /* --- Leaflet.draw CSS --- */
76
- ${Xo}
77
+ ${er}
77
78
 
78
79
  /* --- Leaflet.ruler CSS --- */
79
- ${$o}
80
+ ${tr}
80
81
 
81
82
  /* --- Fix Leaflet.ruler icons (broken relative paths in inlined CSS) --- */
82
83
  .leaflet-ruler {
83
84
  width: 30px !important; /* Match Leaflet Draw default size approx */
84
85
  height: 30px !important;
85
86
  background-color: #fff; /* Ensure visibility */
86
- background-image: url(${ir}) !important;
87
+ background-image: url(${nr}) !important;
87
88
  background-size: 16px 16px; /* Scale icon to fit */
88
89
  }
89
90
  .leaflet-ruler:hover,
90
91
  .leaflet-ruler-clicked {
91
- background-image: url(${ar}) !important;
92
+ background-image: url(${sr}) !important;
92
93
  }
93
94
 
94
95
  /* --- Custom overrides for marker/handle sizes --- */
@@ -144,7 +145,7 @@ ${$o}
144
145
  padding: 0;
145
146
  border-radius: 4px;
146
147
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
147
- background-image: url(${rr});
148
+ background-image: url(${ar});
148
149
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
149
150
  }
150
151
  .leaflet-ruler-settings-button:hover {
@@ -228,7 +229,7 @@ ${$o}
228
229
 
229
230
  /* --- Layer Cake draw tool icon + manager UI --- */
230
231
  .leaflet-draw-toolbar a.leaflet-draw-draw-cake {
231
- background-image: url(${mo}) !important;
232
+ background-image: url(${yo}) !important;
232
233
  background-size: 18px 18px !important;
233
234
  background-position: 50% 50% !important;
234
235
  background-repeat: no-repeat !important;
@@ -295,14 +296,14 @@ ${$o}
295
296
  }
296
297
  `, i.appendChild(e);
297
298
  }
298
- function sr(i) {
299
+ function cr(i) {
299
300
  const t = "data-leaflet-custom-styles";
300
301
  if (i.querySelector(`style[${t}]`)) return;
301
302
  const e = document.createElement("style");
302
303
  e.setAttribute(t, "true"), e.textContent = `
303
304
  /* Ensure Layer Cake toolbar icon uses project asset instead of draw sprite sheet */
304
305
  .leaflet-draw-toolbar a.leaflet-draw-draw-cake {
305
- background-image: url(${mo}) !important;
306
+ background-image: url(${yo}) !important;
306
307
  background-size: 18px 18px !important;
307
308
  background-position: 50% 50% !important;
308
309
  background-repeat: no-repeat !important;
@@ -310,47 +311,78 @@ function sr(i) {
310
311
  }
311
312
  `, i.appendChild(e);
312
313
  }
313
- function lr() {
314
+ function dr() {
314
315
  var i, t;
315
316
  (t = (i = P.Icon.Default).mergeOptions) == null || t.call(i, {
316
- iconRetinaUrl: er,
317
- iconUrl: tr,
318
- shadowUrl: or
317
+ iconRetinaUrl: or,
318
+ iconUrl: rr,
319
+ shadowUrl: ir
319
320
  });
320
321
  }
321
- function cr(i) {
322
+ function ur(i) {
322
323
  const { root: t, skipStyles: e } = i;
323
324
  try {
324
- e || (nr(t), lr()), sr(t);
325
+ e || (lr(t), dr()), cr(t);
325
326
  } catch {
326
327
  }
327
328
  }
329
+ const vt = "geokit:credits";
330
+ function bo(i) {
331
+ var e;
332
+ const t = /* @__PURE__ */ new Map();
333
+ for (const o of i) {
334
+ const r = (e = o.properties) == null ? void 0 : e[vt];
335
+ if (Array.isArray(r))
336
+ for (const a of r) {
337
+ if (typeof (a == null ? void 0 : a.text) != "string" || !a.text.trim()) continue;
338
+ const n = { text: a.text.trim() };
339
+ if (typeof a.url == "string")
340
+ try {
341
+ const s = new URL(a.url);
342
+ ["https:", "http:"].includes(s.protocol) && !s.username && !s.password && (n.url = s.href);
343
+ } catch {
344
+ }
345
+ t.set(JSON.stringify(n), n);
346
+ }
347
+ }
348
+ return [...t.values()];
349
+ }
350
+ function hr(i, t, e) {
351
+ var o;
352
+ if (!(!e || !((o = i.properties) != null && o[vt])))
353
+ for (const { text: r, url: a } of bo([i])) {
354
+ const n = a ? document.createElement("a") : document.createElement("span");
355
+ a && n.setAttribute("href", a), n.textContent = r;
356
+ const s = n.outerHTML;
357
+ t.on("add", () => e.addAttribution(s)), t.on("remove", () => e.removeAttribution(s));
358
+ }
359
+ }
328
360
  const B = [];
329
361
  for (let i = 0; i < 256; ++i)
330
362
  B.push((i + 256).toString(16).slice(1));
331
- function dr(i, t = 0) {
363
+ function fr(i, t = 0) {
332
364
  return (B[i[t + 0]] + B[i[t + 1]] + B[i[t + 2]] + B[i[t + 3]] + "-" + B[i[t + 4]] + B[i[t + 5]] + "-" + B[i[t + 6]] + B[i[t + 7]] + "-" + B[i[t + 8]] + B[i[t + 9]] + "-" + B[i[t + 10]] + B[i[t + 11]] + B[i[t + 12]] + B[i[t + 13]] + B[i[t + 14]] + B[i[t + 15]]).toLowerCase();
333
365
  }
334
366
  let He;
335
- const ur = new Uint8Array(16);
336
- function hr() {
367
+ const pr = new Uint8Array(16);
368
+ function gr() {
337
369
  if (!He) {
338
370
  if (typeof crypto == "undefined" || !crypto.getRandomValues)
339
371
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
340
372
  He = crypto.getRandomValues.bind(crypto);
341
373
  }
342
- return He(ur);
374
+ return He(pr);
343
375
  }
344
- const fr = typeof crypto != "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Et = { randomUUID: fr };
376
+ const mr = typeof crypto != "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Lt = { randomUUID: mr };
345
377
  function we(i, t, e) {
346
378
  var r, a, n;
347
- if (Et.randomUUID && !i)
348
- return Et.randomUUID();
379
+ if (Lt.randomUUID && !i)
380
+ return Lt.randomUUID();
349
381
  i = i || {};
350
- const o = (n = (a = i.random) != null ? a : (r = i.rng) == null ? void 0 : r.call(i)) != null ? n : hr();
382
+ const o = (n = (a = i.random) != null ? a : (r = i.rng) == null ? void 0 : r.call(i)) != null ? n : gr();
351
383
  if (o.length < 16)
352
384
  throw new Error("Random bytes length must be >= 16");
353
- return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, dr(o);
385
+ return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, fr(o);
354
386
  }
355
387
  function H(i) {
356
388
  var e, o;
@@ -358,24 +390,24 @@ function H(i) {
358
390
  if (t != null)
359
391
  return String(t);
360
392
  }
361
- const pr = /^(.*)::(\d+)$/, U = "geokit:source";
362
- function qe(i) {
393
+ const yr = /^(.*)::(\d+)$/, G = "geokit:source";
394
+ function Ve(i) {
363
395
  const t = H(i);
364
396
  if (!t) return null;
365
- const e = pr.exec(t);
397
+ const e = yr.exec(t);
366
398
  return e ? {
367
399
  baseId: e[1],
368
400
  childIndex: Number(e[2]),
369
401
  feature: i
370
402
  } : null;
371
403
  }
372
- function gr(i, t) {
404
+ function br(i, t) {
373
405
  const e = t && typeof t == "object" ? { ...t } : {};
374
406
  return e.id = i, e;
375
407
  }
376
- function mr(i, t) {
408
+ function vr(i, t) {
377
409
  var c, u;
378
- const e = [...t].sort((d, h) => d.childIndex - h.childIndex), o = e[0].feature, r = gr(i, o.properties), a = (c = o.properties) == null ? void 0 : c[U], n = Array.isArray(a) ? a[a.length - 1] : void 0, s = e.map((d) => d.feature.geometry).filter((d) => d != null);
410
+ const e = [...t].sort((d, h) => d.childIndex - h.childIndex), o = e[0].feature, r = br(i, o.properties), a = (c = o.properties) == null ? void 0 : c[G], n = Array.isArray(a) ? a[a.length - 1] : void 0, s = e.map((d) => d.feature.geometry).filter((d) => d != null);
379
411
  let l;
380
412
  return s.length === 0 ? l = {
381
413
  type: "GeometryCollection",
@@ -392,14 +424,14 @@ function mr(i, t) {
392
424
  } : l = {
393
425
  type: "GeometryCollection",
394
426
  geometries: s
395
- }, n && r && (n.hasPropertyId ? r.id = n.propertyId : delete r.id, a.length > 1 ? r[U] = a.slice(0, -1) : delete r[U]), {
427
+ }, n && r && (n.hasPropertyId ? r.id = n.propertyId : delete r.id, a.length > 1 ? r[G] = a.slice(0, -1) : delete r[G]), {
396
428
  type: "Feature",
397
429
  id: (u = n == null ? void 0 : n.id) != null ? u : i,
398
430
  properties: n != null && n.nullProperties && Object.keys(r != null ? r : {}).length === 0 ? null : r,
399
431
  geometry: l
400
432
  };
401
433
  }
402
- function yr(i, t) {
434
+ function wr(i, t) {
403
435
  const e = (o) => {
404
436
  switch (o.type) {
405
437
  case "Point":
@@ -426,31 +458,31 @@ function yr(i, t) {
426
458
  };
427
459
  e(i);
428
460
  }
429
- function br(i) {
461
+ function Ar(i) {
430
462
  const t = i.geometry;
431
463
  if (!t) return null;
432
464
  let e = 1 / 0, o = 1 / 0, r = -1 / 0, a = -1 / 0, n = !1;
433
- return yr(t, (s) => {
465
+ return wr(t, (s) => {
434
466
  const [l, c] = s;
435
467
  typeof l != "number" || typeof c != "number" || (n = !0, l < e && (e = l), c < o && (o = c), l > r && (r = l), c > a && (a = c));
436
468
  }), n ? [e, o, r, a] : null;
437
469
  }
438
- function vr(i) {
470
+ function kr(i) {
439
471
  let t = 1 / 0, e = 1 / 0, o = -1 / 0, r = -1 / 0, a = !1;
440
472
  for (const n of i.features) {
441
- const s = br(n);
473
+ const s = Ar(n);
442
474
  s && (a = !0, t = Math.min(t, s[0]), e = Math.min(e, s[1]), o = Math.max(o, s[2]), r = Math.max(r, s[3]));
443
475
  }
444
476
  return a ? [t, e, o, r] : null;
445
477
  }
446
- function wr(i) {
478
+ function xr(i) {
447
479
  const [t, e, o, r] = i;
448
480
  return [
449
481
  [e, t],
450
482
  [r, o]
451
483
  ];
452
484
  }
453
- function vt(i, t = {}) {
485
+ function wt(i, t = {}) {
454
486
  var r;
455
487
  const e = [];
456
488
  for (const a of i.features) {
@@ -458,12 +490,12 @@ function vt(i, t = {}) {
458
490
  const n = (r = a.properties) != null ? r : {}, s = H(a), l = (u, d) => {
459
491
  const h = n && typeof n == "object" ? { ...n } : {}, f = s !== void 0 ? `${s}::${d}` : void 0;
460
492
  f !== void 0 && (h.id = f);
461
- const y = Array.isArray(n[U]) ? n[U] : [], g = {
493
+ const y = Array.isArray(n[G]) ? n[G] : [], g = {
462
494
  type: a.geometry.type,
463
495
  hasPropertyId: Object.prototype.hasOwnProperty.call(n, "id"),
464
496
  nullProperties: a.properties === null
465
497
  };
466
- return a.id !== void 0 ? g.id = a.id : s !== void 0 && (g.id = s), g.hasPropertyId && (g.propertyId = n.id), t.preserveMetadata && (h[U] = [...y, g]), {
498
+ return a.id !== void 0 ? g.id = a.id : s !== void 0 && (g.id = s), g.hasPropertyId && (g.propertyId = n.id), t.preserveMetadata && (h[G] = [...y, g]), {
467
499
  type: "Feature",
468
500
  id: f,
469
501
  properties: h,
@@ -505,18 +537,18 @@ function vt(i, t = {}) {
505
537
  const o = { type: "FeatureCollection", features: e };
506
538
  return t.preserveMetadata && e.some(
507
539
  (a) => a.geometry.type.startsWith("Multi") || a.geometry.type === "GeometryCollection"
508
- ) ? vt(o, t) : o;
540
+ ) ? wt(o, t) : o;
509
541
  }
510
- function yo(i, t = {}) {
542
+ function vo(i, t = {}) {
511
543
  var u;
512
544
  if (((u = t.adapter) != null ? u : "editing") !== "source") return i;
513
545
  const o = (d) => {
514
546
  var h;
515
- return Array.isArray((h = d.properties) == null ? void 0 : h[U]) ? d.properties[U].length : 0;
547
+ return Array.isArray((h = d.properties) == null ? void 0 : h[G]) ? d.properties[G].length : 0;
516
548
  }, r = i.features.reduce((d, h) => Math.max(d, o(h)), 0), a = (d) => r === 0 ? !t.provenanceOnly : o(d) === r, n = /* @__PURE__ */ new Map();
517
549
  for (const d of i.features) {
518
550
  if (!a(d)) continue;
519
- const h = qe(d);
551
+ const h = Ve(d);
520
552
  if (!h) continue;
521
553
  const f = n.get(h.baseId);
522
554
  f ? f.push(h) : n.set(h.baseId, [h]);
@@ -528,38 +560,38 @@ function yo(i, t = {}) {
528
560
  l.push(d);
529
561
  continue;
530
562
  }
531
- const h = qe(d);
563
+ const h = Ve(d);
532
564
  if (!h) {
533
565
  l.push(d);
534
566
  continue;
535
567
  }
536
568
  s.has(h.baseId) || (s.add(h.baseId), l.push(
537
- mr(h.baseId, n.get(h.baseId))
569
+ vr(h.baseId, n.get(h.baseId))
538
570
  ));
539
571
  }
540
572
  const c = { type: "FeatureCollection", features: l };
541
573
  return l.some(
542
574
  (d) => {
543
575
  var h;
544
- return Array.isArray((h = d.properties) == null ? void 0 : h[U]) && d.properties[U].length > 0 && qe(d);
576
+ return Array.isArray((h = d.properties) == null ? void 0 : h[G]) && d.properties[G].length > 0 && Ve(d);
545
577
  }
546
- ) ? yo(c, t) : c;
578
+ ) ? vo(c, t) : c;
547
579
  }
548
- function bo(i) {
580
+ function wo(i) {
549
581
  return (i == null ? void 0 : i.type) === "Polygon";
550
582
  }
551
- function vo(i) {
583
+ function Ao(i) {
552
584
  return (i == null ? void 0 : i.type) === "MultiPolygon";
553
585
  }
554
- function Ar(i) {
586
+ function Er(i) {
555
587
  const t = i.geometry;
556
- return t ? bo(t) ? [t.coordinates] : vo(t) ? t.coordinates : [] : [];
588
+ return t ? wo(t) ? [t.coordinates] : Ao(t) ? t.coordinates : [] : [];
557
589
  }
558
- function kr(i, t) {
590
+ function Lr(i, t) {
559
591
  var r, a;
560
592
  const e = [];
561
593
  for (const n of i) {
562
- const s = Ar(n);
594
+ const s = Er(n);
563
595
  s.length > 0 && e.push(...s);
564
596
  }
565
597
  if (e.length === 0) return null;
@@ -580,7 +612,7 @@ function kr(i, t) {
580
612
  }
581
613
  };
582
614
  }
583
- class xr {
615
+ class Cr {
584
616
  constructor(t = Ne("feature-store", "debug")) {
585
617
  w(this, "log");
586
618
  w(this, "features");
@@ -652,8 +684,8 @@ class xr {
652
684
  bounds() {
653
685
  const t = this.toFeatureCollection();
654
686
  if (t.features.length === 0) return null;
655
- const e = vr(t);
656
- return e ? wr(e) : null;
687
+ const e = kr(t);
688
+ return e ? xr(e) : null;
657
689
  }
658
690
  /**
659
691
  * Ensure the feature has an id; returns the resolved id.
@@ -665,14 +697,14 @@ class xr {
665
697
  return t.id = o, t.properties && typeof t.properties == "object" && (t.properties.id = o), o;
666
698
  }
667
699
  }
668
- const Lt = [
700
+ const Ct = [
669
701
  "base",
670
702
  "drawn",
671
703
  "imported",
672
704
  "guide",
673
705
  "measurement"
674
706
  ];
675
- function _e(i) {
707
+ function Te(i) {
676
708
  if (!i || typeof i != "object" || Array.isArray(i))
677
709
  throw new Error("Invalid layer style");
678
710
  const t = {};
@@ -692,7 +724,7 @@ function _e(i) {
692
724
  }
693
725
  return t;
694
726
  }
695
- class Je {
727
+ class qe {
696
728
  constructor() {
697
729
  w(this, "layers", []);
698
730
  }
@@ -714,8 +746,8 @@ class Je {
714
746
  const a = (s = e.id) != null ? s : we();
715
747
  if (!a || this.layers.some((u) => u.id === a))
716
748
  throw new Error(`Duplicate layer: ${a}`);
717
- if (!Lt.includes(o)) throw new Error("Invalid layer kind");
718
- const n = _e((l = e.style) != null ? l : {});
749
+ if (!Ct.includes(o)) throw new Error("Invalid layer kind");
750
+ const n = Te((l = e.style) != null ? l : {});
719
751
  return this.layers.push({
720
752
  id: a,
721
753
  name: ((c = e.name) == null ? void 0 : c.trim()) || `${o} layer`,
@@ -735,7 +767,7 @@ class Je {
735
767
  const o = this.get(t);
736
768
  this.layers.find((r) => r.id === t).style = {
737
769
  ...o.style,
738
- ..._e(e)
770
+ ...Te(e)
739
771
  };
740
772
  }
741
773
  reorderLayers(t) {
@@ -767,7 +799,7 @@ class Je {
767
799
  if (!o || o.version !== 1 || !Array.isArray(o.layers))
768
800
  throw new Error("Invalid geokit:layers snapshot");
769
801
  const r = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set(), n = o.layers.map((s, l) => {
770
- if (!s || typeof s.id != "string" || !s.id || r.has(s.id) || typeof s.name != "string" || !Lt.includes(s.kind) || typeof s.visible != "boolean" || s.order !== l || !Array.isArray(s.featureIds))
802
+ if (!s || typeof s.id != "string" || !s.id || r.has(s.id) || typeof s.name != "string" || !Ct.includes(s.kind) || typeof s.visible != "boolean" || s.order !== l || !Array.isArray(s.featureIds))
771
803
  throw new Error("Invalid layer record");
772
804
  r.add(s.id);
773
805
  for (const c of s.featureIds) {
@@ -778,7 +810,7 @@ class Je {
778
810
  return {
779
811
  ...s,
780
812
  featureIds: [...s.featureIds],
781
- style: _e(s.style)
813
+ style: Te(s.style)
782
814
  };
783
815
  });
784
816
  if (e.some((s) => !a.has(s)))
@@ -815,7 +847,7 @@ const pe = {
815
847
  dashArray: "6 4"
816
848
  })
817
849
  };
818
- function Er(i, t, e) {
850
+ function Mr(i, t, e) {
819
851
  const o = i.getRootNode() instanceof ShadowRoot ? i.getRootNode().activeElement : document.activeElement, r = document.createElement("section");
820
852
  r.setAttribute("role", "dialog"), r.setAttribute("aria-label", "Layer style"), r.setAttribute("part", "layer-style-panel"), Object.assign(r.style, {
821
853
  position: "absolute",
@@ -861,24 +893,24 @@ function Er(i, t, e) {
861
893
  r.addEventListener(u, (d) => d.stopPropagation());
862
894
  return r.append(s, l), i.append(r), a.focus(), c;
863
895
  }
864
- const Ct = /* @__PURE__ */ new WeakSet(), Ve = "button, a[href], [role='button']";
865
- function Lr(i) {
896
+ const Mt = /* @__PURE__ */ new WeakSet(), Je = "button, a[href], [role='button']";
897
+ function _r(i) {
866
898
  i.querySelectorAll(".leaflet-draw-toolbar").forEach((t, e) => {
867
899
  t.setAttribute("role", "toolbar"), t.setAttribute(
868
900
  "aria-label",
869
901
  e === 0 ? "Draw tools" : "Edit tools"
870
902
  ), t.setAttribute("aria-orientation", "vertical");
871
903
  }), i.querySelectorAll("[data-geokit-tool]").forEach((t) => {
872
- !t.matches(Ve) && !t.matches(".leaflet-ruler") || (t.tagName !== "BUTTON" && (t.setAttribute("role", "button"), t.tabIndex = 0), t.hasAttribute("aria-label") || t.setAttribute(
904
+ !t.matches(Je) && !t.matches(".leaflet-ruler") || (t.tagName !== "BUTTON" && (t.setAttribute("role", "button"), t.tabIndex = 0), t.hasAttribute("aria-label") || t.setAttribute(
873
905
  "aria-label",
874
906
  t.title || t.dataset.geokitTool || "Map tool"
875
907
  ));
876
- }), !Ct.has(i) && (Ct.add(i), i.addEventListener("keydown", (t) => {
908
+ }), !Mt.has(i) && (Mt.add(i), i.addEventListener("keydown", (t) => {
877
909
  if (t.altKey || t.ctrlKey || t.metaKey || t.shiftKey)
878
910
  return;
879
911
  const e = t.target;
880
912
  if (!(e instanceof HTMLElement)) return;
881
- const o = e.closest(Ve);
913
+ const o = e.closest(Je);
882
914
  if (!o || !i.contains(o)) return;
883
915
  if ((t.key === " " || t.key === "Enter") && o.tagName !== "BUTTON" && o.getAttribute("role") === "button") {
884
916
  t.preventDefault(), t.stopPropagation(), !t.repeat && o.getAttribute("aria-disabled") !== "true" && o.click();
@@ -889,7 +921,7 @@ function Lr(i) {
889
921
  const a = r.getAttribute("aria-orientation") === "vertical", n = a ? "ArrowDown" : "ArrowRight";
890
922
  if (![n, a ? "ArrowUp" : "ArrowLeft", "Home", "End"].includes(t.key)) return;
891
923
  const l = Array.from(
892
- r.querySelectorAll(Ve)
924
+ r.querySelectorAll(Je)
893
925
  ).filter(
894
926
  (d) => !d.matches(":disabled, [aria-disabled='true'], [hidden]") && !d.closest("[hidden]") && getComputedStyle(d).display !== "none"
895
927
  ), c = l.indexOf(o);
@@ -906,7 +938,7 @@ function ot(i, t, e = !1) {
906
938
  );
907
939
  r || (r = document.createElement("div"), r.dataset.geokitAnnouncement = o, r.setAttribute("role", o), r.setAttribute("aria-live", e ? "assertive" : "polite"), r.setAttribute("aria-atomic", "true"), r.className = "leaflet-geokit-sr-only", i.append(r)), r.textContent = t;
908
940
  }
909
- const Cr = `
941
+ const Tr = `
910
942
  .leaflet-geokit-sr-only {
911
943
  position: absolute;
912
944
  width: 1px;
@@ -1123,19 +1155,19 @@ geokit-toolbar-layout[data-narrow="true"] .leaflet-geokit-toolbar-group {
1123
1155
  "center-end",
1124
1156
  "bottom-start",
1125
1157
  "bottom-end"
1126
- ], Mt = {
1158
+ ], _t = {
1127
1159
  topleft: "top-start",
1128
1160
  topright: "top-end",
1129
1161
  bottomleft: "bottom-start",
1130
1162
  bottomright: "bottom-end"
1131
1163
  };
1132
- function Mr(i = "topright") {
1133
- return Object.prototype.hasOwnProperty.call(Mt, i) ? Mt[i] : me.includes(i) ? i : "top-end";
1164
+ function Ir(i = "topright") {
1165
+ return Object.prototype.hasOwnProperty.call(_t, i) ? _t[i] : me.includes(i) ? i : "top-end";
1134
1166
  }
1135
- function Tr(i) {
1167
+ function Sr(i) {
1136
1168
  return !!(i.preset || i.responsive || me.includes(i.position));
1137
1169
  }
1138
- function _r(i, t) {
1170
+ function Pr(i, t) {
1139
1171
  var r, a, n, s, l, c, u;
1140
1172
  const o = t < ((a = (r = i.responsive) == null ? void 0 : r.breakpoint) != null ? a : 600) && (i.preset === "responsive" || i.responsive) ? {
1141
1173
  position: "bottom-end",
@@ -1151,7 +1183,7 @@ function _r(i, t) {
1151
1183
  ...o
1152
1184
  };
1153
1185
  }
1154
- class Ir extends HTMLElement {
1186
+ class Or extends HTMLElement {
1155
1187
  constructor() {
1156
1188
  super(...arguments);
1157
1189
  w(this, "entries", []);
@@ -1211,7 +1243,7 @@ class Ir extends HTMLElement {
1211
1243
  }), this.style.setProperty("--_geokit-native-top", `${r}px`), this.style.setProperty("--_geokit-native-bottom", `${a}px`), this.dataset.narrow = String(o.width < 600), this.dataset.dense = String(
1212
1244
  o.width < 600 && o.height - r - a < this.entries.length * 100
1213
1245
  ), this.entries.forEach(({ element: l, config: c }) => {
1214
- const u = _r(c, o.width), d = getComputedStyle(l), h = Mr(
1246
+ const u = Pr(c, o.width), d = getComputedStyle(l), h = Ir(
1215
1247
  d.getPropertyValue("--geokit-toolbar-zone").trim() || u.position
1216
1248
  ), f = this.querySelector(
1217
1249
  `[data-geokit-zone="${h}"]`
@@ -1259,8 +1291,8 @@ class Ir extends HTMLElement {
1259
1291
  ).join(" ") : `repeat(${Math.max(1, s.length)}, minmax(0, 1fr))`;
1260
1292
  }
1261
1293
  }
1262
- function Sr(i) {
1263
- customElements.get("geokit-toolbar-layout") || customElements.define("geokit-toolbar-layout", Ir);
1294
+ function Br(i) {
1295
+ customElements.get("geokit-toolbar-layout") || customElements.define("geokit-toolbar-layout", Or);
1264
1296
  const t = document.createElement(
1265
1297
  "geokit-toolbar-layout"
1266
1298
  );
@@ -1328,25 +1360,25 @@ const Ae = {
1328
1360
  selectors: [],
1329
1361
  dataTool: "save"
1330
1362
  }
1331
- }, Pr = Object.keys(Ae), rt = "leaflet-geokit-tool-button-icon", wo = ".leaflet-geokit-cake-icon, .leaflet-geokit-move-icon", Or = "[data-geokit-managed-toolbar='true']", Ao = "[data-geokit-tool-popover='true']", Br = "[data-geokit-tool][aria-expanded='true']", it = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap();
1363
+ }, Rr = Object.keys(Ae), rt = "leaflet-geokit-tool-button-icon", ko = ".leaflet-geokit-cake-icon, .leaflet-geokit-move-icon", Dr = "[data-geokit-managed-toolbar='true']", xo = "[data-geokit-tool-popover='true']", zr = "[data-geokit-tool][aria-expanded='true']", it = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap();
1332
1364
  function Tt(i, t, e = {}) {
1333
1365
  if (ye(i), !i.querySelector("style[data-geokit-toolbar-styles]")) {
1334
1366
  const o = document.createElement("style");
1335
- o.dataset.geokitToolbarStyles = "true", o.textContent = Cr, i.prepend(o);
1367
+ o.dataset.geokitToolbarStyles = "true", o.textContent = Tr, i.prepend(o);
1336
1368
  }
1337
- for (const o of Pr) {
1369
+ for (const o of Rr) {
1338
1370
  const r = Ae[o];
1339
- for (const a of Rr(i, r.selectors)) {
1340
- a.setAttribute("data-geokit-tool", r.dataTool), a.setAttribute("part", "toolbar-button"), Dr(a);
1371
+ for (const a of Nr(i, r.selectors)) {
1372
+ a.setAttribute("data-geokit-tool", r.dataTool), a.setAttribute("part", "toolbar-button"), Fr(a);
1341
1373
  const n = t == null ? void 0 : t[o];
1342
- n && zr(a, n, o), ko(a, o, {
1374
+ n && Ur(a, n, o), Eo(a, o, {
1343
1375
  source: "leaflet-toolbar",
1344
1376
  activate: !1,
1345
1377
  onTrigger: e.onTrigger
1346
1378
  });
1347
1379
  }
1348
1380
  }
1349
- qr(i, t, e), Lr(i), i.querySelector("[data-geokit-announcement='status']") || ot(i, ""), i.querySelector("[data-geokit-announcement='alert']") || ot(i, "", !0), he(
1381
+ jr(i, t, e), _r(i), i.querySelector("[data-geokit-announcement='status']") || ot(i, ""), i.querySelector("[data-geokit-announcement='alert']") || ot(i, "", !0), he(
1350
1382
  i,
1351
1383
  i.dataset.geokitActiveTool || null
1352
1384
  );
@@ -1372,7 +1404,7 @@ function he(i, t) {
1372
1404
  );
1373
1405
  });
1374
1406
  }
1375
- function Rr(i, t) {
1407
+ function Nr(i, t) {
1376
1408
  const e = /* @__PURE__ */ new Set();
1377
1409
  for (const o of t)
1378
1410
  i.querySelectorAll(o).forEach((r) => {
@@ -1380,11 +1412,11 @@ function Rr(i, t) {
1380
1412
  });
1381
1413
  return [...e];
1382
1414
  }
1383
- function Dr(i) {
1415
+ function Fr(i) {
1384
1416
  const t = it.get(i);
1385
1417
  t && (i.removeEventListener("click", t), it.delete(i)), delete i.__geokitToolButtonConfig;
1386
1418
  const e = Fe(i.dataset.geokitToolButtonClass);
1387
- e.length > 0 && i.classList.remove(...e), delete i.dataset.geokitToolButtonClass, i.removeAttribute("data-geokit-custom-tool-button"), i.dataset.geokitOriginalTitle !== void 0 && _t(i, "title", i.dataset.geokitOriginalTitle), i.dataset.geokitOriginalAriaLabel !== void 0 && _t(
1419
+ e.length > 0 && i.classList.remove(...e), delete i.dataset.geokitToolButtonClass, i.removeAttribute("data-geokit-custom-tool-button"), i.dataset.geokitOriginalTitle !== void 0 && It(i, "title", i.dataset.geokitOriginalTitle), i.dataset.geokitOriginalAriaLabel !== void 0 && It(
1388
1420
  i,
1389
1421
  "aria-label",
1390
1422
  i.dataset.geokitOriginalAriaLabel
@@ -1400,38 +1432,38 @@ function Dr(i) {
1400
1432
  i.dataset.geokitOriginalStylePositionPriority
1401
1433
  ), Array.from(i.children).forEach((o) => {
1402
1434
  o instanceof HTMLElement && o.dataset.geokitToolButtonIcon === "true" && o.remove();
1403
- }), i.querySelectorAll(wo).forEach((o) => {
1435
+ }), i.querySelectorAll(ko).forEach((o) => {
1404
1436
  o.hidden = !1;
1405
1437
  }), i.removeAttribute("aria-expanded");
1406
1438
  }
1407
- function _t(i, t, e) {
1439
+ function It(i, t, e) {
1408
1440
  e ? i.setAttribute(t, e) : i.removeAttribute(t);
1409
1441
  }
1410
1442
  function st(i, t, e, o) {
1411
1443
  e ? i.style.setProperty(t, e, o) : i.style.removeProperty(t);
1412
1444
  }
1413
- function zr(i, t, e) {
1445
+ function Ur(i, t, e) {
1414
1446
  var a;
1415
- Nr(i), i.__geokitToolButtonConfig = t, i.setAttribute("data-geokit-custom-tool-button", "true"), t.title && i.setAttribute("title", t.title);
1447
+ Gr(i), i.__geokitToolButtonConfig = t, i.setAttribute("data-geokit-custom-tool-button", "true"), t.title && i.setAttribute("title", t.title);
1416
1448
  const o = (a = t.ariaLabel) != null ? a : t.title;
1417
1449
  o && i.setAttribute("aria-label", o);
1418
1450
  const r = Fe(t.className);
1419
1451
  r.length > 0 && (i.classList.add(...r), i.dataset.geokitToolButtonClass = r.join(" ")), t.iconUrl ? Ie(i, t, { tool: e }) : (t.iconHtml || t.renderIcon) && Ie(i, t, { tool: e });
1420
1452
  }
1421
- function Nr(i) {
1453
+ function Gr(i) {
1422
1454
  var t, e;
1423
1455
  i.dataset.geokitOriginalTitle === void 0 && (i.dataset.geokitOriginalTitle = (t = i.getAttribute("title")) != null ? t : ""), i.dataset.geokitOriginalAriaLabel === void 0 && (i.dataset.geokitOriginalAriaLabel = (e = i.getAttribute("aria-label")) != null ? e : ""), i.dataset.geokitOriginalStyleBackgroundImage === void 0 && (i.dataset.geokitOriginalStyleBackgroundImage = i.style.getPropertyValue("background-image"), i.dataset.geokitOriginalStyleBackgroundImagePriority = i.style.getPropertyPriority("background-image")), i.dataset.geokitOriginalStylePosition === void 0 && (i.dataset.geokitOriginalStylePosition = i.style.getPropertyValue("position"), i.dataset.geokitOriginalStylePositionPriority = i.style.getPropertyPriority("position"));
1424
1456
  }
1425
1457
  function Fe(i) {
1426
1458
  return i ? i.split(/\s+/).map((t) => t.trim()).filter(Boolean) : [];
1427
1459
  }
1428
- function Fr(i) {
1460
+ function Hr(i) {
1429
1461
  return !!(i.iconUrl || i.iconHtml || i.renderIcon);
1430
1462
  }
1431
1463
  function Ie(i, t, e = {}) {
1432
1464
  var l, c;
1433
- const [o, r] = Ur(t.iconSize);
1434
- i.classList.contains("leaflet-geokit-toolbar-button") || (i.style.setProperty("background-image", "none", "important"), i.style.setProperty("position", "relative")), i.querySelectorAll(wo).forEach((u) => {
1465
+ const [o, r] = Vr(t.iconSize);
1466
+ i.classList.contains("leaflet-geokit-toolbar-button") || (i.style.setProperty("background-image", "none", "important"), i.style.setProperty("position", "relative")), i.querySelectorAll(ko).forEach((u) => {
1435
1467
  u.hidden = !0;
1436
1468
  });
1437
1469
  const a = document.createElement("span");
@@ -1453,19 +1485,19 @@ function Ie(i, t, e = {}) {
1453
1485
  }
1454
1486
  i.appendChild(a);
1455
1487
  }
1456
- function Ur(i) {
1488
+ function Vr(i) {
1457
1489
  const t = i == null ? void 0 : i[0], e = i == null ? void 0 : i[1];
1458
1490
  return typeof t == "number" && Number.isFinite(t) && t > 0 && typeof e == "number" && Number.isFinite(e) && e > 0 ? [t, e] : [18, 18];
1459
1491
  }
1460
- function ko(i, t, e) {
1492
+ function Eo(i, t, e) {
1461
1493
  const o = (r) => {
1462
1494
  var l, c;
1463
1495
  if (i instanceof HTMLButtonElement && i.disabled) {
1464
1496
  r.preventDefault(), r.stopPropagation();
1465
1497
  return;
1466
1498
  }
1467
- const a = Gr(i), n = Hr(i);
1468
- a != null && a.popover ? Zr(i, t, a, {
1499
+ const a = qr(i), n = Jr(i);
1500
+ a != null && a.popover ? Qr(i, t, a, {
1469
1501
  container: n,
1470
1502
  groupId: e.groupId
1471
1503
  }) : ye(n), (l = e.onTrigger) == null || l.call(e, t, {
@@ -1474,7 +1506,7 @@ function ko(i, t, e) {
1474
1506
  activate: e.activate
1475
1507
  });
1476
1508
  const s = n.querySelector(
1477
- Ao
1509
+ xo
1478
1510
  );
1479
1511
  if (s && ((c = s.querySelector(
1480
1512
  "button:not(:disabled), [href], input, select, textarea, [tabindex='0']"
@@ -1486,7 +1518,7 @@ function ko(i, t, e) {
1486
1518
  };
1487
1519
  i.addEventListener("click", o), it.set(i, o);
1488
1520
  }
1489
- function Gr(i) {
1521
+ function qr(i) {
1490
1522
  const t = i.__geokitToolButtonConfig;
1491
1523
  if (t) return t;
1492
1524
  const e = i.dataset.geokitToolButtonConfig;
@@ -1497,18 +1529,18 @@ function Gr(i) {
1497
1529
  return null;
1498
1530
  }
1499
1531
  }
1500
- function Hr(i) {
1532
+ function Jr(i) {
1501
1533
  var e;
1502
1534
  const t = i.closest("[data-geokit-map-container]");
1503
1535
  return (e = t != null ? t : i.parentElement) != null ? e : i;
1504
1536
  }
1505
- function qr(i, t, e) {
1537
+ function jr(i, t, e) {
1506
1538
  var n, s;
1507
- i.setAttribute("data-geokit-map-container", "true"), (n = i.querySelector("geokit-toolbar-layout")) == null || n.remove(), i.querySelectorAll(Or).forEach((l) => l.remove());
1539
+ i.setAttribute("data-geokit-map-container", "true"), (n = i.querySelector("geokit-toolbar-layout")) == null || n.remove(), i.querySelectorAll(Dr).forEach((l) => l.remove());
1508
1540
  const o = (s = e.toolbarGroups) != null ? s : [], r = o.some(
1509
1541
  (l) => (l == null ? void 0 : l.hideDefaultToolbar) !== !1
1510
1542
  );
1511
- Jr(i, r);
1543
+ Zr(i, r);
1512
1544
  const a = [];
1513
1545
  o.forEach((l) => {
1514
1546
  var h;
@@ -1520,23 +1552,23 @@ function qr(i, t, e) {
1520
1552
  c.dataset.geokitToolbarOrientation = u, c.setAttribute("aria-orientation", u), c.style.setProperty(
1521
1553
  "--_geokit-direction",
1522
1554
  u === "horizontal" ? "row" : "column"
1523
- ), typeof l.gap == "number" && Number.isFinite(l.gap) && l.gap >= 0 && c.style.setProperty("--_geokit-gap", `${l.gap}px`), jr(c, l.position, l.offset);
1555
+ ), typeof l.gap == "number" && Number.isFinite(l.gap) && l.gap >= 0 && c.style.setProperty("--_geokit-gap", `${l.gap}px`), Yr(c, l.position, l.offset);
1524
1556
  const d = Fe(l.className);
1525
1557
  d.length > 0 && c.classList.add(...d), l.tools.forEach((f, y) => {
1526
- const g = Vr(f, l, y, t == null ? void 0 : t[f]);
1527
- ko(g, f, {
1558
+ const g = Kr(f, l, y, t == null ? void 0 : t[f]);
1559
+ Eo(g, f, {
1528
1560
  source: "toolbar",
1529
1561
  activate: !0,
1530
1562
  groupId: l.id,
1531
1563
  onTrigger: e.onTrigger
1532
1564
  }), c.appendChild(g);
1533
- }), Tr(l) ? (c.setAttribute(
1565
+ }), Sr(l) ? (c.setAttribute(
1534
1566
  "part",
1535
1567
  `toolbar-group toolbar-group-${l.id.replace(/[^a-zA-Z0-9_-]/g, "-")}`
1536
1568
  ), a.push({ element: c, config: l })) : i.appendChild(c);
1537
- }), a.length && i.appendChild(Sr(a));
1569
+ }), a.length && i.appendChild(Br(a));
1538
1570
  }
1539
- function Jr(i, t) {
1571
+ function Zr(i, t) {
1540
1572
  i.toggleAttribute("data-geokit-default-toolbar-hidden", t), i.querySelectorAll(
1541
1573
  ".leaflet-draw-toolbar, .leaflet-ruler, .leaflet-ruler-settings-control"
1542
1574
  ).forEach((e) => {
@@ -1548,20 +1580,20 @@ function Jr(i, t) {
1548
1580
  ), delete e.dataset.geokitOriginalDisplay, delete e.dataset.geokitOriginalDisplayPriority);
1549
1581
  });
1550
1582
  }
1551
- function Vr(i, t, e, o) {
1583
+ function Kr(i, t, e, o) {
1552
1584
  var u, d, h, f, y, g, p, m, v;
1553
1585
  const r = document.createElement("button");
1554
- r.type = "button", r.dataset.geokitTool = (d = (u = Ae[i]) == null ? void 0 : u.dataTool) != null ? d : i, r.dataset.geokitToolbarGroup = t.id, r.dataset.geokitToolbarPosition = (h = t.position) != null ? h : "topright", r.dataset.geokitToolInstance = Wr(
1586
+ r.type = "button", r.dataset.geokitTool = (d = (u = Ae[i]) == null ? void 0 : u.dataTool) != null ? d : i, r.dataset.geokitToolbarGroup = t.id, r.dataset.geokitToolbarPosition = (h = t.position) != null ? h : "topright", r.dataset.geokitToolInstance = ei(
1555
1587
  t.id,
1556
1588
  i,
1557
1589
  e
1558
1590
  ), r.className = "leaflet-geokit-toolbar-button", r.disabled = (o == null ? void 0 : o.disabled) === !0, r.setAttribute("aria-disabled", String(r.disabled));
1559
- const a = (f = o == null ? void 0 : o.title) != null ? f : xo(i);
1591
+ const a = (f = o == null ? void 0 : o.title) != null ? f : Lo(i);
1560
1592
  r.title = a, r.setAttribute("aria-label", (y = o == null ? void 0 : o.ariaLabel) != null ? y : a), o != null && o.popover && (r.setAttribute("aria-haspopup", "dialog"), r.setAttribute("aria-expanded", "false"));
1561
1593
  const n = Fe(o == null ? void 0 : o.className);
1562
- if (n.length > 0 && r.classList.add(...n), o && (r.__geokitToolButtonConfig = o, Fr(o) && Ie(r, o, { tool: i, groupId: t.id })), !r.querySelector(`.${rt}`)) {
1594
+ if (n.length > 0 && r.classList.add(...n), o && (r.__geokitToolButtonConfig = o, Hr(o) && Ie(r, o, { tool: i, groupId: t.id })), !r.querySelector(`.${rt}`)) {
1563
1595
  const b = {
1564
- iconHtml: Xr(i),
1596
+ iconHtml: ti(i),
1565
1597
  iconSize: (g = o == null ? void 0 : o.iconSize) != null ? g : [20, 20]
1566
1598
  };
1567
1599
  Ie(r, b, { tool: i, groupId: t.id });
@@ -1576,18 +1608,18 @@ function Vr(i, t, e, o) {
1576
1608
  }
1577
1609
  return r;
1578
1610
  }
1579
- function jr(i, t = "topright", e) {
1580
- const [o, r] = $r(e);
1611
+ function Yr(i, t = "topright", e) {
1612
+ const [o, r] = oi(e);
1581
1613
  i.dataset.geokitToolbarPosition = t, i.style.setProperty("--_geokit-offset-x", `${o}px`), i.style.setProperty("--_geokit-offset-y", `${r}px`);
1582
1614
  }
1583
- function Zr(i, t, e, o) {
1615
+ function Qr(i, t, e, o) {
1584
1616
  var s, l, c, u, d, h, f, y, g;
1585
1617
  if (!e.popover) return;
1586
1618
  ye(o.container);
1587
1619
  const r = document.createElement("div");
1588
1620
  if (r.setAttribute("part", "popover"), r.dataset.geokitToolPopover = "true", r.dataset.geokitTool = (l = (s = Ae[t]) == null ? void 0 : s.dataTool) != null ? l : t, i.dataset.geokitToolInstance && (r.dataset.geokitToolInstance = i.dataset.geokitToolInstance), o.groupId && (r.dataset.geokitToolbarGroup = o.groupId), r.setAttribute("role", "dialog"), r.setAttribute(
1589
1621
  "aria-label",
1590
- (u = (c = e.popover.ariaLabel) != null ? c : e.popover.title) != null ? u : xo(t)
1622
+ (u = (c = e.popover.ariaLabel) != null ? c : e.popover.title) != null ? u : Lo(t)
1591
1623
  ), e.popover.title) {
1592
1624
  const p = document.createElement("strong");
1593
1625
  p.textContent = e.popover.title, r.appendChild(p);
@@ -1612,12 +1644,12 @@ function Zr(i, t, e, o) {
1612
1644
  const p = document.createElement("div");
1613
1645
  p.innerHTML = a, r.appendChild(p);
1614
1646
  }
1615
- o.container.appendChild(r), Kr(o.container, i, r), i.setAttribute("aria-expanded", "true"), nt.set(r, {
1647
+ o.container.appendChild(r), Wr(o.container, i, r), i.setAttribute("aria-expanded", "true"), nt.set(r, {
1616
1648
  tool: t,
1617
1649
  groupId: o.groupId,
1618
1650
  button: i,
1619
1651
  config: e
1620
- }), Yr(o.container, i, r), r.tabIndex = -1, ((f = r.querySelector(
1652
+ }), Xr(o.container, i, r), r.tabIndex = -1, ((f = r.querySelector(
1621
1653
  "button:not(:disabled), [href], input, select, textarea, [tabindex='0']"
1622
1654
  )) != null ? f : r).focus(), (g = (y = e.popover).onOpen) == null || g.call(y, {
1623
1655
  tool: t,
@@ -1626,7 +1658,7 @@ function Zr(i, t, e, o) {
1626
1658
  popover: r
1627
1659
  });
1628
1660
  }
1629
- function Kr(i, t, e) {
1661
+ function Wr(i, t, e) {
1630
1662
  const o = i.getBoundingClientRect(), r = t.getBoundingClientRect(), a = Math.max(
1631
1663
  8,
1632
1664
  Math.min(
@@ -1642,7 +1674,7 @@ function Kr(i, t, e) {
1642
1674
  );
1643
1675
  e.style.setProperty("left", `${a}px`), e.style.setProperty("top", `${n}px`);
1644
1676
  }
1645
- function Yr(i, t, e) {
1677
+ function Xr(i, t, e) {
1646
1678
  const o = (n) => {
1647
1679
  n.key === "Escape" && n.composedPath().some((s) => s === e || s === t) && (n.preventDefault(), n.stopPropagation(), ye(i), t.focus());
1648
1680
  }, r = (n) => {
@@ -1659,10 +1691,10 @@ function Yr(i, t, e) {
1659
1691
  });
1660
1692
  }
1661
1693
  function ye(i) {
1662
- i.querySelectorAll(Ao).forEach((t) => {
1694
+ i.querySelectorAll(xo).forEach((t) => {
1663
1695
  var r, a, n;
1664
1696
  const e = nt.get(t);
1665
- e == null || e.button.setAttribute("aria-expanded", "false"), e || (r = Qr(i, t)) == null || r.removeAttribute(
1697
+ e == null || e.button.setAttribute("aria-expanded", "false"), e || (r = $r(i, t)) == null || r.removeAttribute(
1666
1698
  "aria-expanded"
1667
1699
  );
1668
1700
  const o = at.get(t);
@@ -1678,19 +1710,19 @@ function ye(i) {
1678
1710
  }), nt.delete(t));
1679
1711
  });
1680
1712
  }
1681
- function Qr(i, t) {
1713
+ function $r(i, t) {
1682
1714
  const e = i.querySelectorAll(
1683
- Br
1715
+ zr
1684
1716
  );
1685
1717
  for (const o of e)
1686
1718
  if (t.dataset.geokitToolInstance && o.dataset.geokitToolInstance === t.dataset.geokitToolInstance || o.dataset.geokitTool === t.dataset.geokitTool && o.dataset.geokitToolbarGroup === t.dataset.geokitToolbarGroup)
1687
1719
  return o;
1688
1720
  return null;
1689
1721
  }
1690
- function Wr(i, t, e) {
1722
+ function ei(i, t, e) {
1691
1723
  return `${i}:${t}:${e}`;
1692
1724
  }
1693
- function xo(i) {
1725
+ function Lo(i) {
1694
1726
  return {
1695
1727
  polygon: "Draw polygon",
1696
1728
  polyline: "Draw line",
@@ -1708,7 +1740,7 @@ function xo(i) {
1708
1740
  save: "Save map geometry"
1709
1741
  }[i];
1710
1742
  }
1711
- function Xr(i) {
1743
+ function ti(i) {
1712
1744
  const t = "currentColor", e = "none";
1713
1745
  return {
1714
1746
  polygon: `<svg viewBox="0 0 24 24" fill="${e}" stroke="${t}" stroke-width="1.8" stroke-linejoin="round"><path d="M5.5 7.2 9.2 4.8 18.5 8.3 16.1 18.2 6.3 15.7Z"/><circle cx="5.5" cy="7.2" r="1.2" fill="currentColor"/><circle cx="18.5" cy="8.3" r="1.2" fill="currentColor"/><circle cx="16.1" cy="18.2" r="1.2" fill="currentColor"/></svg>`,
@@ -1727,14 +1759,14 @@ function Xr(i) {
1727
1759
  save: `<svg viewBox="0 0 24 24" fill="${e}" stroke="${t}" stroke-width="1.8" stroke-linejoin="round" stroke-linecap="round"><path d="M5.5 4.8h11.2l1.8 1.8v12.6h-13Z"/><path d="M8 4.8v5h7v-5M8.2 19.2v-5.4h7.6v5.4"/><path d="M10 16.4h4"/></svg>`
1728
1760
  }[i];
1729
1761
  }
1730
- function $r(i) {
1762
+ function oi(i) {
1731
1763
  const t = i == null ? void 0 : i[0], e = i == null ? void 0 : i[1];
1732
1764
  return typeof t == "number" && Number.isFinite(t) && t >= 0 && typeof e == "number" && Number.isFinite(e) && e >= 0 ? [t, e] : [10, 10];
1733
1765
  }
1734
- const It = /* @__PURE__ */ new WeakSet();
1735
- function ei(i = P) {
1766
+ const St = /* @__PURE__ */ new WeakSet();
1767
+ function ri(i = P) {
1736
1768
  var o;
1737
- if (It.has(i)) return;
1769
+ if (St.has(i)) return;
1738
1770
  const t = i.DrawToolbar;
1739
1771
  if (!((o = t == null ? void 0 : t.prototype) != null && o.getModeHandlers)) return;
1740
1772
  const e = t.prototype.getModeHandlers;
@@ -1760,7 +1792,7 @@ function ei(i = P) {
1760
1792
  });
1761
1793
  }
1762
1794
  return a;
1763
- }, It.add(i);
1795
+ }, St.add(i);
1764
1796
  }
1765
1797
  const De = class De extends P.Draw.Circle {
1766
1798
  constructor(t, e) {
@@ -1778,7 +1810,7 @@ const De = class De extends P.Draw.Circle {
1778
1810
  w(De, "TYPE", "cake");
1779
1811
  let Se = De;
1780
1812
  P.Draw.Cake = Se;
1781
- function ti(i) {
1813
+ function ii(i) {
1782
1814
  const t = i.Draw;
1783
1815
  if (!t || t.Cake) return;
1784
1816
  const o = class o extends t.Circle {
@@ -1798,7 +1830,7 @@ function ti(i) {
1798
1830
  let e = o;
1799
1831
  t.Cake = e;
1800
1832
  }
1801
- function Eo(i, t, e) {
1833
+ function Co(i, t, e) {
1802
1834
  const o = i.getContainer(), r = o.style.touchAction;
1803
1835
  o.style.touchAction = "none";
1804
1836
  let a = null, n = !1;
@@ -1872,7 +1904,7 @@ const ze = class ze extends P.Draw.Feature {
1872
1904
  addHooks() {
1873
1905
  const e = this._map;
1874
1906
  if (!e) return;
1875
- P.DomUtil.addClass(e.getContainer(), "leaflet-draw-move-mode"), this._unbindPointer = Eo(e, this._featureGroup, {
1907
+ P.DomUtil.addClass(e.getContainer(), "leaflet-draw-move-mode"), this._unbindPointer = Co(e, this._featureGroup, {
1876
1908
  start: (r) => this._onLayerMouseDown(r),
1877
1909
  move: (r) => this._onMouseMove(r),
1878
1910
  end: (r) => this._onMouseUp(r),
@@ -2013,7 +2045,7 @@ const ze = class ze extends P.Draw.Feature {
2013
2045
  w(ze, "TYPE", "move");
2014
2046
  let lt = ze;
2015
2047
  P.Draw.Move = lt;
2016
- function oi(i) {
2048
+ function ai(i) {
2017
2049
  const t = i.Draw;
2018
2050
  if (!t || t.Move) return;
2019
2051
  const o = class o extends t.Feature {
@@ -2037,7 +2069,7 @@ function oi(i) {
2037
2069
  addHooks() {
2038
2070
  const n = this._map;
2039
2071
  if (!n) return;
2040
- i.DomUtil.addClass(n.getContainer(), "leaflet-draw-move-mode"), this._unbindPointer = Eo(n, this._featureGroup, {
2072
+ i.DomUtil.addClass(n.getContainer(), "leaflet-draw-move-mode"), this._unbindPointer = Co(n, this._featureGroup, {
2041
2073
  start: (l) => this._onLayerMouseDown(l),
2042
2074
  move: (l) => this._onMouseMove(l),
2043
2075
  end: (l) => this._onMouseUp(l),
@@ -2169,18 +2201,18 @@ function oi(i) {
2169
2201
  let e = o;
2170
2202
  t.Move = e;
2171
2203
  }
2172
- const ri = 63710088e-1;
2204
+ const ni = 63710088e-1;
2173
2205
  function je(i) {
2174
2206
  return i * Math.PI / 180;
2175
2207
  }
2176
- function St(i) {
2208
+ function Pt(i) {
2177
2209
  return i * 180 / Math.PI;
2178
2210
  }
2179
- function ii(i, t, e) {
2180
- const o = t / ri, r = je(e), a = je(i.lat), n = je(i.lng), s = Math.sin(a), l = Math.cos(a), c = Math.sin(o), u = Math.cos(o), d = s * u + l * c * Math.cos(r), h = Math.asin(d), f = Math.sin(r) * c * l, y = u - s * d, g = n + Math.atan2(f, y);
2181
- return { lat: St(h), lng: St(g) };
2211
+ function si(i, t, e) {
2212
+ const o = t / ni, r = je(e), a = je(i.lat), n = je(i.lng), s = Math.sin(a), l = Math.cos(a), c = Math.sin(o), u = Math.cos(o), d = s * u + l * c * Math.cos(r), h = Math.asin(d), f = Math.sin(r) * c * l, y = u - s * d, g = n + Math.atan2(f, y);
2213
+ return { lat: Pt(h), lng: Pt(g) };
2182
2214
  }
2183
- function ai(i) {
2215
+ function li(i) {
2184
2216
  let t = 0;
2185
2217
  for (let e = 0; e < i.length - 1; e++) {
2186
2218
  const [o, r] = i[e], [a, n] = i[e + 1];
@@ -2194,7 +2226,7 @@ function ct(i) {
2194
2226
  }
2195
2227
  function dt(i, t) {
2196
2228
  const e = ct(i);
2197
- if (ai(e) < 0 === t) return e;
2229
+ if (li(e) < 0 === t) return e;
2198
2230
  const a = [...e].reverse();
2199
2231
  return ct(a);
2200
2232
  }
@@ -2202,12 +2234,12 @@ function ut(i, t, e) {
2202
2234
  if (e < 4) throw new Error("steps must be >= 4");
2203
2235
  const o = [];
2204
2236
  for (let r = 0; r < e; r++) {
2205
- const a = r / e * 360, n = ii(i, t, a);
2237
+ const a = r / e * 360, n = si(i, t, a);
2206
2238
  o.push([n.lng, n.lat]);
2207
2239
  }
2208
2240
  return ct(o);
2209
2241
  }
2210
- function ni(i) {
2242
+ function ci(i) {
2211
2243
  const { id: t, center: e, radiusMeters: o, layerIndex: r, steps: a } = i, n = dt(ut(e, o, a), !1);
2212
2244
  return {
2213
2245
  type: "Feature",
@@ -2225,7 +2257,7 @@ function ni(i) {
2225
2257
  geometry: { type: "Polygon", coordinates: [n] }
2226
2258
  };
2227
2259
  }
2228
- function si(i) {
2260
+ function di(i) {
2229
2261
  const {
2230
2262
  id: t,
2231
2263
  center: e,
@@ -2256,19 +2288,19 @@ function si(i) {
2256
2288
  geometry: { type: "Polygon", coordinates: [s, l] }
2257
2289
  };
2258
2290
  }
2259
- function li(i) {
2291
+ function ui(i) {
2260
2292
  const { circles: t, steps: e = 64 } = i, o = [...t].sort((a, n) => a.getRadius() - n.getRadius()), r = [];
2261
2293
  return o.forEach((a, n) => {
2262
2294
  const s = a.getLatLng(), l = a.getRadius(), c = we();
2263
2295
  if (n === 0) {
2264
2296
  r.push(
2265
- ni({ id: c, center: s, radiusMeters: l, layerIndex: n, steps: e })
2297
+ ci({ id: c, center: s, radiusMeters: l, layerIndex: n, steps: e })
2266
2298
  );
2267
2299
  return;
2268
2300
  }
2269
2301
  const d = o[n - 1].getRadius();
2270
2302
  r.push(
2271
- si({
2303
+ di({
2272
2304
  id: c,
2273
2305
  center: s,
2274
2306
  radiusOuterMeters: l,
@@ -2282,7 +2314,7 @@ function li(i) {
2282
2314
  function de(i) {
2283
2315
  i.preventDefault(), i.stopPropagation();
2284
2316
  }
2285
- function ci(i) {
2317
+ function hi(i) {
2286
2318
  var c, u;
2287
2319
  const { root: t, addButtonId: e, saveButtonId: o, onAddRing: r, onSave: a } = i, n = (c = t.querySelector) == null ? void 0 : c.call(t, `#${e}`), s = (u = t.querySelector) == null ? void 0 : u.call(t, `#${o}`);
2288
2320
  if (!n || !s) return;
@@ -2298,7 +2330,7 @@ function ci(i) {
2298
2330
  });
2299
2331
  }
2300
2332
  }
2301
- function di(i) {
2333
+ function fi(i) {
2302
2334
  var e;
2303
2335
  const t = (e = i.options) != null ? e : {};
2304
2336
  t.original || (t.original = { ...t }), t.editing || (t.editing = { ...t });
@@ -2310,7 +2342,7 @@ function ue(i, t) {
2310
2342
  }
2311
2343
  return i >= 1e3 ? `${(i / 1e3).toFixed(2)} km` : `${Math.round(i)} m`;
2312
2344
  }
2313
- class ui {
2345
+ class pi {
2314
2346
  constructor(t, e, o, r = "metric", a) {
2315
2347
  w(this, "onChange");
2316
2348
  w(this, "map");
@@ -2376,7 +2408,7 @@ class ui {
2376
2408
  var o, r, a, n, s;
2377
2409
  try {
2378
2410
  if (this.destroyed || !this.layers.includes(t)) return;
2379
- if ((o = t.redraw) == null || o.call(t), di(t), (r = e == null ? void 0 : e.enabled) != null && r.call(e)) {
2411
+ if ((o = t.redraw) == null || o.call(t), fi(t), (r = e == null ? void 0 : e.enabled) != null && r.call(e)) {
2380
2412
  (a = e.updateMarkers) == null || a.call(e), this.requestRenderControls();
2381
2413
  return;
2382
2414
  }
@@ -2419,7 +2451,7 @@ class ui {
2419
2451
  throw new Error("Layer name must not be empty");
2420
2452
  if (t.preset && !Object.prototype.hasOwnProperty.call(pe, t.preset))
2421
2453
  throw new Error("Unknown style preset");
2422
- const o = _e({
2454
+ const o = Te({
2423
2455
  ...this.style,
2424
2456
  ...t.preset ? pe[t.preset] : {},
2425
2457
  ...t.style
@@ -2438,7 +2470,7 @@ class ui {
2438
2470
  save() {
2439
2471
  if (this.destroyed || this.saving) return;
2440
2472
  this.saving = !0;
2441
- const t = li({ circles: this.layers });
2473
+ const t = ui({ circles: this.layers });
2442
2474
  try {
2443
2475
  this.onSave(t), this.destroy();
2444
2476
  } finally {
@@ -2508,7 +2540,7 @@ class ui {
2508
2540
  }).addTo(this.controlsGroup), setTimeout(() => {
2509
2541
  if (this.destroyed) return;
2510
2542
  const s = this.map.getContainer();
2511
- ci({
2543
+ hi({
2512
2544
  root: s,
2513
2545
  addButtonId: r,
2514
2546
  saveButtonId: a,
@@ -2529,7 +2561,7 @@ class ui {
2529
2561
  }), this.layers = [], this.controlsGroup.clearLayers(), this.map.removeLayer(this.controlsGroup));
2530
2562
  }
2531
2563
  }
2532
- const hi = `<?xml version="1.0" encoding="utf-8"?>
2564
+ const gi = `<?xml version="1.0" encoding="utf-8"?>
2533
2565
  \r<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
2534
2566
  <svg width="800px" height="800px" viewBox="0 -1.67 47.336 47.336" xmlns="http://www.w3.org/2000/svg">\r
2535
2567
  <g id="Group_42" data-name="Group 42" transform="translate(-172.455 -364.36)">\r
@@ -2540,7 +2572,7 @@ const hi = `<?xml version="1.0" encoding="utf-8"?>
2540
2572
  <path id="Path_91" data-name="Path 91" d="M211.234,370.794a3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778,3.778,3.778,0,0,1-3.778,3.778h0a3.779,3.779,0,0,1-3.778-3.778" fill="none" stroke="#000000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>\r
2541
2573
  </g>\r
2542
2574
  </g>\r
2543
- </svg>`, fi = `<?xml version="1.0" encoding="utf-8"?>
2575
+ </svg>`, mi = `<?xml version="1.0" encoding="utf-8"?>
2544
2576
  <!-- Four-way directional arrow icon for move tool -->
2545
2577
  <svg width="800px" height="800px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2546
2578
  <g fill="none" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
@@ -2560,48 +2592,48 @@ const hi = `<?xml version="1.0" encoding="utf-8"?>
2560
2592
  <path d="M22 12 L19 15"/>
2561
2593
  </g>
2562
2594
  </svg>
2563
- `, Lo = 6378137, ae = 6356752314245e-6, W = 1 / 298.257223563, pi = Math.PI / 180, gi = 180 / Math.PI, Pe = 1e9;
2564
- function mi(i) {
2595
+ `, Mo = 6378137, ae = 6356752314245e-6, W = 1 / 298.257223563, yi = Math.PI / 180, bi = 180 / Math.PI, Pe = 1e9;
2596
+ function vi(i) {
2565
2597
  const t = BigInt(Math.round(i * Pe));
2566
2598
  return Number(t) / Pe;
2567
2599
  }
2568
2600
  function ne(i) {
2569
- return mi(i) * pi;
2601
+ return vi(i) * yi;
2570
2602
  }
2571
- function Pt(i) {
2572
- const t = i * gi % 360;
2603
+ function Ot(i) {
2604
+ const t = i * bi % 360;
2573
2605
  return t < 0 ? t + 360 : t;
2574
2606
  }
2575
2607
  function ht(i) {
2576
2608
  const t = BigInt(Math.round(i * Pe));
2577
2609
  return Number(t) / Pe;
2578
2610
  }
2579
- function Co(i, t, e, o) {
2580
- const r = yi(i, t, e, o);
2611
+ function _o(i, t, e, o) {
2612
+ const r = wi(i, t, e, o);
2581
2613
  if (r.converged)
2582
2614
  return {
2583
2615
  meters: ht(r.distanceMeters),
2584
- bearingDegrees: Pt(r.bearingRad),
2616
+ bearingDegrees: Ot(r.bearingRad),
2585
2617
  algorithm: "vincenty",
2586
2618
  iterations: r.iterations
2587
2619
  };
2588
- const a = bi(i, t, e, o);
2620
+ const a = Ai(i, t, e, o);
2589
2621
  return {
2590
2622
  meters: ht(a.distanceMeters),
2591
- bearingDegrees: Pt(a.bearingRad),
2623
+ bearingDegrees: Ot(a.bearingRad),
2592
2624
  algorithm: "karney",
2593
2625
  iterations: r.iterations
2594
2626
  };
2595
2627
  }
2596
- function yi(i, t, e, o) {
2628
+ function wi(i, t, e, o) {
2597
2629
  const r = ne(i), a = ne(e), n = ne(o - t), s = Math.atan((1 - W) * Math.tan(r)), l = Math.atan((1 - W) * Math.tan(a)), c = Math.sin(s), u = Math.cos(s), d = Math.sin(l), h = Math.cos(l);
2598
2630
  let f = n, y = Number.POSITIVE_INFINITY, g = 0;
2599
2631
  const p = 200;
2600
2632
  let m = 0, v = 0, b = 0, A = 0, k = 0;
2601
2633
  for (; Math.abs(f - y) > 1e-12 && g < p; ) {
2602
- const _ = Math.sin(f), I = Math.cos(f);
2634
+ const T = Math.sin(f), I = Math.cos(f);
2603
2635
  if (m = Math.sqrt(
2604
- (h * _) ** 2 + (u * d - c * h * I) ** 2
2636
+ (h * T) ** 2 + (u * d - c * h * I) ** 2
2605
2637
  ), m === 0)
2606
2638
  return {
2607
2639
  distanceMeters: 0,
@@ -2610,7 +2642,7 @@ function yi(i, t, e, o) {
2610
2642
  converged: !0
2611
2643
  };
2612
2644
  v = c * d + u * h * I, b = Math.atan2(m, v);
2613
- const S = u * h * _ / m;
2645
+ const S = u * h * T / m;
2614
2646
  A = 1 - S ** 2, k = A === 0 ? 0 : v - 2 * c * d / A;
2615
2647
  const F = W / 16 * A * (4 + W * (4 - 3 * A));
2616
2648
  y = f, f = n + (1 - F) * W * S * (b + F * m * (k + F * v * (-1 + 2 * k ** 2))), g += 1;
@@ -2622,30 +2654,30 @@ function yi(i, t, e, o) {
2622
2654
  iterations: g,
2623
2655
  converged: !1
2624
2656
  };
2625
- const x = (Lo ** 2 - ae ** 2) / ae ** 2 * A, E = 1 + x / 16384 * (4096 + x * (-768 + x * (320 - 175 * x))), L = x / 1024 * (256 + x * (-128 + x * (74 - 47 * x))), C = L * m * (k + L / 4 * (v * (-1 + 2 * k ** 2) - L / 6 * k * (-3 + 4 * m ** 2) * (-3 + 4 * k ** 2))), T = ae * E * (b - C), M = Math.atan2(
2657
+ const x = (Mo ** 2 - ae ** 2) / ae ** 2 * A, E = 1 + x / 16384 * (4096 + x * (-768 + x * (320 - 175 * x))), L = x / 1024 * (256 + x * (-128 + x * (74 - 47 * x))), C = L * m * (k + L / 4 * (v * (-1 + 2 * k ** 2) - L / 6 * k * (-3 + 4 * m ** 2) * (-3 + 4 * k ** 2))), _ = ae * E * (b - C), M = Math.atan2(
2626
2658
  h * Math.sin(f),
2627
2659
  u * d - c * h * Math.cos(f)
2628
2660
  );
2629
2661
  return {
2630
- distanceMeters: T,
2662
+ distanceMeters: _,
2631
2663
  bearingRad: M,
2632
2664
  iterations: g,
2633
2665
  converged: !0
2634
2666
  };
2635
2667
  }
2636
- function bi(i, t, e, o) {
2668
+ function Ai(i, t, e, o) {
2637
2669
  const r = ne(i), a = ne(e), n = ne(o - t), s = Math.atan((1 - W) * Math.tan(r)), l = Math.atan((1 - W) * Math.tan(a)), c = Math.sin(s), u = Math.cos(s), d = Math.sin(l), h = Math.cos(l), f = Math.sqrt(
2638
2670
  (h * Math.sin(n)) ** 2 + (u * d - c * h * Math.cos(n)) ** 2
2639
2671
  ), y = c * d + u * h * Math.cos(n), g = Math.atan2(f, y);
2640
2672
  if (g === 0)
2641
2673
  return { distanceMeters: 0, bearingRad: 0 };
2642
- const m = 1 - (u * h * Math.sin(n) / Math.sin(g)) ** 2, v = m === 0 ? 0 : y - 2 * c * d / m, b = (Lo ** 2 - ae ** 2) / ae ** 2 * m, A = 1 + b / 16384 * (4096 + b * (-768 + b * (320 - 175 * b))), k = b / 1024 * (256 + b * (-128 + b * (74 - 47 * b))), x = k * f * (v + k / 4 * (y * (-1 + 2 * v ** 2) - k / 6 * v * (-3 + 4 * f ** 2) * (-3 + 4 * v ** 2))), E = ae * A * (g - x), L = Math.atan2(
2674
+ const m = 1 - (u * h * Math.sin(n) / Math.sin(g)) ** 2, v = m === 0 ? 0 : y - 2 * c * d / m, b = (Mo ** 2 - ae ** 2) / ae ** 2 * m, A = 1 + b / 16384 * (4096 + b * (-768 + b * (320 - 175 * b))), k = b / 1024 * (256 + b * (-128 + b * (74 - 47 * b))), x = k * f * (v + k / 4 * (y * (-1 + 2 * v ** 2) - k / 6 * v * (-3 + 4 * f ** 2) * (-3 + 4 * v ** 2))), E = ae * A * (g - x), L = Math.atan2(
2643
2675
  h * Math.sin(n),
2644
2676
  u * d - c * h * Math.cos(n)
2645
2677
  );
2646
2678
  return { distanceMeters: E, bearingRad: L };
2647
2679
  }
2648
- const Q = (i) => i !== null && typeof i == "object" && !Array.isArray(i), Ot = (i) => JSON.parse(JSON.stringify(i));
2680
+ const Q = (i) => i !== null && typeof i == "object" && !Array.isArray(i), Bt = (i) => JSON.parse(JSON.stringify(i));
2649
2681
  function ft(i) {
2650
2682
  const t = [];
2651
2683
  let e = 0;
@@ -2817,29 +2849,29 @@ function ft(i) {
2817
2849
  diagnostics: t
2818
2850
  });
2819
2851
  }
2820
- class Bt extends Error {
2852
+ class Rt extends Error {
2821
2853
  constructor(e) {
2822
2854
  super("GeoJSON validation failed");
2823
2855
  w(this, "summary");
2824
2856
  this.summary = e, this.name = "GeoJSONValidationError";
2825
2857
  }
2826
2858
  }
2827
- function Rt(i, t = {}) {
2859
+ function Dt(i, t = {}) {
2828
2860
  var s, l;
2829
2861
  const e = ft(i);
2830
- if (!e.valid) throw new Bt(e);
2831
- const o = Ot(i), r = o.type === "FeatureCollection" ? o : {
2862
+ if (!e.valid) throw new Rt(e);
2863
+ const o = Bt(i), r = o.type === "FeatureCollection" ? o : {
2832
2864
  type: "FeatureCollection",
2833
2865
  features: [
2834
2866
  o.type === "Feature" ? o : { type: "Feature", properties: {}, geometry: o }
2835
2867
  ]
2836
2868
  };
2837
2869
  for (const c of r.features) c.id = (l = (s = c.id) != null ? s : H(c)) != null ? l : we();
2838
- const a = t.expandMulti ? vt(r, { preserveMetadata: !0 }) : r, n = ft(a);
2839
- if (!n.valid) throw new Bt(n);
2840
- return Ot(a);
2870
+ const a = t.expandMulti ? wt(r, { preserveMetadata: !0 }) : r, n = ft(a);
2871
+ if (!n.valid) throw new Rt(n);
2872
+ return Bt(a);
2841
2873
  }
2842
- const vi = {
2874
+ const ki = {
2843
2875
  position: "topleft",
2844
2876
  circleMarker: {
2845
2877
  color: "red",
@@ -2855,25 +2887,25 @@ const vi = {
2855
2887
  factor: null,
2856
2888
  label: "Bearing:"
2857
2889
  }
2858
- }, wi = {
2890
+ }, xi = {
2859
2891
  display: "km",
2860
2892
  decimal: 2,
2861
2893
  factor: null,
2862
2894
  label: "Distance (km):"
2863
- }, Ai = {
2895
+ }, Ei = {
2864
2896
  display: "mi",
2865
2897
  decimal: 2,
2866
2898
  factor: 0.621371,
2867
2899
  label: "Distance (mi):"
2868
2900
  };
2869
- function ki(i) {
2870
- const t = i === "imperial" ? { ...Ai } : { ...wi };
2901
+ function Li(i) {
2902
+ const t = i === "imperial" ? { ...Ei } : { ...xi };
2871
2903
  return {
2872
- ...vi,
2904
+ ...ki,
2873
2905
  lengthUnit: t
2874
2906
  };
2875
2907
  }
2876
- const xi = {
2908
+ const Ci = {
2877
2909
  metric: "Meters / Kilometers",
2878
2910
  imperial: "Feet / Miles"
2879
2911
  };
@@ -2903,16 +2935,16 @@ const K = {
2903
2935
  maxZoom: 20
2904
2936
  }
2905
2937
  };
2906
- function Mo(i) {
2938
+ function To(i) {
2907
2939
  return typeof i == "string" ? i.trim().toLowerCase() : "";
2908
2940
  }
2909
- function To(i) {
2941
+ function Io(i) {
2910
2942
  if (typeof i != "string") return;
2911
2943
  const t = i.trim();
2912
2944
  return t.length > 0 ? t : void 0;
2913
2945
  }
2914
2946
  function pt(i) {
2915
- const { style: t, attribution: e } = i, o = Mo(i.provider), r = To(i.apiKey);
2947
+ const { style: t, attribution: e } = i, o = To(i.provider), r = Io(i.apiKey);
2916
2948
  switch (o) {
2917
2949
  case "osm":
2918
2950
  return {
@@ -2936,11 +2968,11 @@ function pt(i) {
2936
2968
  throw new Error(`Unknown tile provider: ${i.provider}`);
2937
2969
  }
2938
2970
  }
2939
- function Ei(i) {
2940
- const t = Mo(i.provider), e = To(i.apiKey);
2971
+ function Mi(i) {
2972
+ const t = To(i.provider), e = Io(i.apiKey);
2941
2973
  return t ? t === "here" && !e ? { valid: !1, error: "HERE Maps requires an API key" } : { valid: !0 } : { valid: !1, error: "Provider is required" };
2942
2974
  }
2943
- function Dt(i, t) {
2975
+ function zt(i, t) {
2944
2976
  return {
2945
2977
  kind: i.kind,
2946
2978
  attribution: t.trim() ? "present" : "missing",
@@ -2951,7 +2983,7 @@ function Dt(i, t) {
2951
2983
  scope: "configuration"
2952
2984
  };
2953
2985
  }
2954
- function Li(i) {
2986
+ function _i(i) {
2955
2987
  const t = i.provider.trim().toLowerCase(), e = { ...i };
2956
2988
  return {
2957
2989
  kind: "raster",
@@ -2963,7 +2995,7 @@ function Li(i) {
2963
2995
  resolve: () => pt(e)
2964
2996
  };
2965
2997
  }
2966
- function Ci(i) {
2998
+ function Ti(i) {
2967
2999
  var e;
2968
3000
  const t = { ...i, subdomains: (e = i.subdomains) == null ? void 0 : e.slice() };
2969
3001
  return {
@@ -3043,7 +3075,7 @@ const Oe = {
3043
3075
  save: { behavior: "action" },
3044
3076
  select: { behavior: "deactivate" }
3045
3077
  };
3046
- function _o(i) {
3078
+ function So(i) {
3047
3079
  var e, o, r, a, n;
3048
3080
  const t = {};
3049
3081
  for (const s of Object.keys(Oe)) {
@@ -3099,7 +3131,7 @@ function _o(i) {
3099
3131
  selectedFeatureIds: [...i.selectedFeatureIds]
3100
3132
  };
3101
3133
  }
3102
- function zt(i, t) {
3134
+ function Nt(i, t) {
3103
3135
  for (const e of Object.values(t.tools)) {
3104
3136
  const o = e.tool.replace(
3105
3137
  /[A-Z]/g,
@@ -3116,12 +3148,12 @@ function zt(i, t) {
3116
3148
  });
3117
3149
  }
3118
3150
  }
3119
- const Mi = ["vertex", "edge", "grid", "guide"], Ue = 6378137, Nt = 1 / 298.257223563, X = Nt * (2 - Nt), be = Math.PI / 180, Ke = 89.9;
3151
+ const Ii = ["vertex", "edge", "grid", "guide"], Ue = 6378137, Ft = 1 / 298.257223563, X = Ft * (2 - Ft), be = Math.PI / 180, Ke = 89.9;
3120
3152
  function Ye(i) {
3121
3153
  const t = i[0], e = i[1];
3122
3154
  return Number.isFinite(t) && Number.isFinite(e) ? [t, e] : null;
3123
3155
  }
3124
- function Io(i, t) {
3156
+ function Po(i, t) {
3125
3157
  if (i)
3126
3158
  switch (i.type) {
3127
3159
  case "LineString":
@@ -3137,13 +3169,13 @@ function Io(i, t) {
3137
3169
  i.coordinates.forEach((e) => e.forEach(t));
3138
3170
  return;
3139
3171
  case "GeometryCollection":
3140
- i.geometries.forEach((e) => Io(e, t));
3172
+ i.geometries.forEach((e) => Po(e, t));
3141
3173
  return;
3142
3174
  default:
3143
3175
  return;
3144
3176
  }
3145
3177
  }
3146
- function So(i, t) {
3178
+ function Oo(i, t) {
3147
3179
  if (i)
3148
3180
  switch (i.type) {
3149
3181
  case "Point":
@@ -3161,14 +3193,14 @@ function So(i, t) {
3161
3193
  i.coordinates.flat(2).forEach(t);
3162
3194
  return;
3163
3195
  case "GeometryCollection":
3164
- i.geometries.forEach((e) => So(e, t));
3196
+ i.geometries.forEach((e) => Oo(e, t));
3165
3197
  return;
3166
3198
  }
3167
3199
  }
3168
- function Ti(i, t) {
3200
+ function Si(i, t) {
3169
3201
  return Math.hypot(i.x - t.x, i.y - t.y);
3170
3202
  }
3171
- function _i(i, t, e) {
3203
+ function Pi(i, t, e) {
3172
3204
  const o = e.x - t.x, r = e.y - t.y, a = o * o + r * r;
3173
3205
  if (a === 0) return { ...t };
3174
3206
  const n = Math.max(
@@ -3180,12 +3212,12 @@ function _i(i, t, e) {
3180
3212
  );
3181
3213
  return { x: t.x + n * o, y: t.y + n * r };
3182
3214
  }
3183
- function Ii(i) {
3215
+ function Oi(i) {
3184
3216
  var e;
3185
- const t = (e = i.modes) != null && e.length ? i.modes : Mi;
3217
+ const t = (e = i.modes) != null && e.length ? i.modes : Ii;
3186
3218
  return [...new Set(t)];
3187
3219
  }
3188
- function Si(i) {
3220
+ function Bi(i) {
3189
3221
  const t = Math.sin(i);
3190
3222
  return Ue * (1 - X) / (1 - X * t ** 2) ** 1.5;
3191
3223
  }
@@ -3193,39 +3225,39 @@ function gt(i) {
3193
3225
  const t = X ** 2, e = X ** 3;
3194
3226
  return Ue * ((1 - X / 4 - 3 * t / 64 - 5 * e / 256) * i - (3 * X / 8 + 3 * t / 32 + 45 * e / 1024) * Math.sin(2 * i) + (15 * t / 256 + 45 * e / 1024) * Math.sin(4 * i) - 35 * e / 3072 * Math.sin(6 * i));
3195
3227
  }
3196
- function Pi(i) {
3228
+ function Ri(i) {
3197
3229
  let t = Math.max(
3198
3230
  -Math.PI / 2,
3199
3231
  Math.min(Math.PI / 2, i / Ue)
3200
3232
  );
3201
3233
  for (let e = 0; e < 8; e++)
3202
- t -= (gt(t) - i) / Si(t);
3234
+ t -= (gt(t) - i) / Bi(t);
3203
3235
  return t / be;
3204
3236
  }
3205
- function Oi(i) {
3237
+ function Di(i) {
3206
3238
  const t = i * be;
3207
3239
  return Ue / Math.sqrt(1 - X * Math.sin(t) ** 2) * Math.cos(t) * be;
3208
3240
  }
3209
- function Bi(i, t) {
3241
+ function zi(i, t) {
3210
3242
  var d;
3211
3243
  const e = t.gridSizeMeters, [o, r] = (d = t.gridOrigin) != null ? d : [0, 0];
3212
3244
  if (!Number.isFinite(e) || e <= 0 || !Number.isFinite(i.lat) || !Number.isFinite(i.lng) || !Number.isFinite(o) || !Number.isFinite(r) || Math.abs(i.lat) > Ke || Math.abs(r) > Ke)
3213
3245
  return null;
3214
- const a = gt(r * be), n = gt(i.lat * be), s = a + Math.round((n - a) / e) * e, l = Pi(s);
3246
+ const a = gt(r * be), n = gt(i.lat * be), s = a + Math.round((n - a) / e) * e, l = Ri(s);
3215
3247
  if (!Number.isFinite(l) || Math.abs(l) > Ke)
3216
3248
  return null;
3217
- const c = Oi(l);
3249
+ const c = Di(l);
3218
3250
  return !Number.isFinite(c) || c <= 0 ? null : { lng: o + Math.round((i.lng - o) * c / e) * e / c, lat: l };
3219
3251
  }
3220
- function Ri(i, t, e, o, r = {}, a) {
3252
+ function Ni(i, t, e, o, r = {}, a) {
3221
3253
  var d, h;
3222
3254
  if (r.enabled === !1) return null;
3223
- const n = Ii(r), s = (d = r.tolerancePx) != null ? d : 12;
3255
+ const n = Oi(r), s = (d = r.tolerancePx) != null ? d : 12;
3224
3256
  if (!Number.isFinite(s) || s <= 0) return null;
3225
3257
  const l = e(i);
3226
3258
  let c = null;
3227
3259
  const u = (f, y, g = {}, p) => {
3228
- const m = Ti(l, f);
3260
+ const m = Si(l, f);
3229
3261
  if (m > s) return;
3230
3262
  const v = n.indexOf(y), b = c ? n.indexOf(c.mode) : Number.MAX_SAFE_INTEGER;
3231
3263
  c && (m > c.distancePx + 1e-3 || m >= c.distancePx - 1e-3 && v > b) || (c = {
@@ -3243,7 +3275,7 @@ function Ri(i, t, e, o, r = {}, a) {
3243
3275
  (g) => g === "vertex" || g === "edge"
3244
3276
  );
3245
3277
  for (const g of y)
3246
- g === "vertex" ? So(f.feature.geometry, (p) => {
3278
+ g === "vertex" ? Oo(f.feature.geometry, (p) => {
3247
3279
  const m = Ye(p);
3248
3280
  m && u(
3249
3281
  e({ lng: m[0], lat: m[1] }),
@@ -3254,11 +3286,11 @@ function Ri(i, t, e, o, r = {}, a) {
3254
3286
  },
3255
3287
  { lng: m[0], lat: m[1] }
3256
3288
  );
3257
- }) : Io(f.feature.geometry, (p) => {
3289
+ }) : Po(f.feature.geometry, (p) => {
3258
3290
  for (let m = 1; m < p.length; m++) {
3259
3291
  const v = Ye(p[m - 1]), b = Ye(p[m]);
3260
3292
  if (!v || !b) continue;
3261
- const A = e({ lng: v[0], lat: v[1] }), k = e({ lng: b[0], lat: b[1] }), x = _i(l, A, k), E = (k.x - A.x) ** 2 + (k.y - A.y) ** 2, L = E === 0 ? 0 : Math.max(
3293
+ const A = e({ lng: v[0], lat: v[1] }), k = e({ lng: b[0], lat: b[1] }), x = Pi(l, A, k), E = (k.x - A.x) ** 2 + (k.y - A.y) ** 2, L = E === 0 ? 0 : Math.max(
3262
3294
  0,
3263
3295
  Math.min(
3264
3296
  1,
@@ -3281,7 +3313,7 @@ function Ri(i, t, e, o, r = {}, a) {
3281
3313
  });
3282
3314
  }
3283
3315
  if (n.includes("grid") && Number.isFinite(r.gridSizeMeters) && ((h = r.gridSizeMeters) != null ? h : 0) > 0) {
3284
- const f = Bi(i, r);
3316
+ const f = zi(i, r);
3285
3317
  if (f) {
3286
3318
  const y = e(f);
3287
3319
  u(y, "grid", {}, f);
@@ -3289,7 +3321,7 @@ function Ri(i, t, e, o, r = {}, a) {
3289
3321
  }
3290
3322
  return c;
3291
3323
  }
3292
- var Ft = 63710088e-1;
3324
+ var Ut = 63710088e-1;
3293
3325
  function j(i, t, e = {}) {
3294
3326
  const o = { type: "Feature" };
3295
3327
  return (e.id === 0 || e.id) && (o.id = e.id), e.bbox && (o.bbox = e.bbox), o.properties = t || {}, o.geometry = i, o;
@@ -3301,7 +3333,7 @@ function $(i, t, e = {}) {
3301
3333
  throw new Error("coordinates must be an Array");
3302
3334
  if (i.length < 2)
3303
3335
  throw new Error("coordinates must be at least 2 numbers long");
3304
- if (!Ut(i[0]) || !Ut(i[1]))
3336
+ if (!Gt(i[0]) || !Gt(i[1]))
3305
3337
  throw new Error("coordinates must contain numbers");
3306
3338
  return j({
3307
3339
  type: "Point",
@@ -3337,16 +3369,16 @@ function mt(i, t = {}) {
3337
3369
  const e = { type: "FeatureCollection" };
3338
3370
  return t.id && (e.id = t.id), t.bbox && (e.bbox = t.bbox), e.features = i, e;
3339
3371
  }
3340
- function Di(i, t, e = {}) {
3372
+ function Fi(i, t, e = {}) {
3341
3373
  return j({
3342
3374
  type: "MultiLineString",
3343
3375
  coordinates: i
3344
3376
  }, t, e);
3345
3377
  }
3346
- function Ut(i) {
3378
+ function Gt(i) {
3347
3379
  return !isNaN(i) && i !== null && !Array.isArray(i);
3348
3380
  }
3349
- function Po(i, t) {
3381
+ function Bo(i, t) {
3350
3382
  var e, o, r, a, n, s, l, c, u, d, h = 0, f = i.type === "FeatureCollection", y = i.type === "Feature", g = f ? i.features.length : 1;
3351
3383
  for (e = 0; e < g; e++) {
3352
3384
  for (s = f ? (
@@ -3431,9 +3463,9 @@ function Po(i, t) {
3431
3463
  h++;
3432
3464
  }
3433
3465
  }
3434
- function zi(i, t, e) {
3466
+ function Ui(i, t, e) {
3435
3467
  var o = e;
3436
- return Po(
3468
+ return Bo(
3437
3469
  i,
3438
3470
  function(r, a, n, s, l) {
3439
3471
  a === 0 && e === void 0 ? o = r : o = t(
@@ -3448,8 +3480,8 @@ function zi(i, t, e) {
3448
3480
  }
3449
3481
  ), o;
3450
3482
  }
3451
- function Gt(i, t) {
3452
- Po(i, function(e, o, r, a, n) {
3483
+ function Ht(i, t) {
3484
+ Bo(i, function(e, o, r, a, n) {
3453
3485
  var s = e === null ? null : e.type;
3454
3486
  switch (s) {
3455
3487
  case null:
@@ -3495,21 +3527,21 @@ function Gt(i, t) {
3495
3527
  }
3496
3528
  });
3497
3529
  }
3498
- function Ni(i) {
3499
- return zi(
3530
+ function Gi(i) {
3531
+ return Ui(
3500
3532
  i,
3501
- (t, e) => t + Fi(e),
3533
+ (t, e) => t + Hi(e),
3502
3534
  0
3503
3535
  );
3504
3536
  }
3505
- function Fi(i) {
3537
+ function Hi(i) {
3506
3538
  let t = 0, e;
3507
3539
  switch (i.type) {
3508
3540
  case "Polygon":
3509
- return Ht(i.coordinates);
3541
+ return Vt(i.coordinates);
3510
3542
  case "MultiPolygon":
3511
3543
  for (e = 0; e < i.coordinates.length; e++)
3512
- t += Ht(i.coordinates[e]);
3544
+ t += Vt(i.coordinates[e]);
3513
3545
  return t;
3514
3546
  case "Point":
3515
3547
  case "MultiPoint":
@@ -3519,7 +3551,7 @@ function Fi(i) {
3519
3551
  }
3520
3552
  return 0;
3521
3553
  }
3522
- function Ht(i) {
3554
+ function Vt(i) {
3523
3555
  let t = 0;
3524
3556
  if (i && i.length > 0) {
3525
3557
  t += Math.abs(qt(i[0]));
@@ -3528,7 +3560,7 @@ function Ht(i) {
3528
3560
  }
3529
3561
  return t;
3530
3562
  }
3531
- var Ui = Ft * Ft / 2, Qe = Math.PI / 180;
3563
+ var Vi = Ut * Ut / 2, Qe = Math.PI / 180;
3532
3564
  function qt(i) {
3533
3565
  const t = i.length - 1;
3534
3566
  if (t <= 2) return 0;
@@ -3537,9 +3569,9 @@ function qt(i) {
3537
3569
  const r = i[o], a = i[o + 1 === t ? 0 : o + 1], n = i[o + 2 >= t ? (o + 2) % t : o + 2], s = r[0] * Qe, l = a[1] * Qe, c = n[0] * Qe;
3538
3570
  e += (c - s) * Math.sin(l), o++;
3539
3571
  }
3540
- return e * Ui;
3572
+ return e * Vi;
3541
3573
  }
3542
- function Oo(i) {
3574
+ function Ro(i) {
3543
3575
  if (!i)
3544
3576
  throw new Error("coord is required");
3545
3577
  if (!Array.isArray(i)) {
@@ -3567,10 +3599,10 @@ function ge(i) {
3567
3599
  function Z(i) {
3568
3600
  return i.type === "Feature" ? i.geometry : i;
3569
3601
  }
3570
- function Gi(i, t) {
3602
+ function qi(i, t) {
3571
3603
  return i.type === "FeatureCollection" ? "FeatureCollection" : i.type === "GeometryCollection" ? "GeometryCollection" : i.type === "Feature" && i.geometry !== null ? i.geometry.type : i.type;
3572
3604
  }
3573
- const J = 11102230246251565e-32, R = 134217729, Hi = (3 + 8 * J) * J;
3605
+ const q = 11102230246251565e-32, R = 134217729, Ji = (3 + 8 * q) * q;
3574
3606
  function We(i, t, e, o, r) {
3575
3607
  let a, n, s, l, c = t[0], u = o[0], d = 0, h = 0;
3576
3608
  u > c == u > -c ? (a = c, c = t[++d]) : (a = u, u = o[++h]);
@@ -3584,7 +3616,7 @@ function We(i, t, e, o, r) {
3584
3616
  n = a + u, l = n - a, s = a - (n - l) + (u - l), u = o[++h], a = n, s !== 0 && (r[f++] = s);
3585
3617
  return (a !== 0 || f === 0) && (r[f++] = a), f;
3586
3618
  }
3587
- function qi(i, t) {
3619
+ function ji(i, t) {
3588
3620
  let e = t[0];
3589
3621
  for (let o = 1; o < i; o++) e += t[o];
3590
3622
  return e;
@@ -3592,26 +3624,26 @@ function qi(i, t) {
3592
3624
  function ke(i) {
3593
3625
  return new Float64Array(i);
3594
3626
  }
3595
- const Ji = (3 + 16 * J) * J, Vi = (2 + 12 * J) * J, ji = (9 + 64 * J) * J * J, oe = ke(4), Jt = ke(8), Vt = ke(12), jt = ke(16), z = ke(4);
3596
- function Zi(i, t, e, o, r, a, n) {
3627
+ const Zi = (3 + 16 * q) * q, Ki = (2 + 12 * q) * q, Yi = (9 + 64 * q) * q * q, oe = ke(4), Jt = ke(8), jt = ke(12), Zt = ke(16), z = ke(4);
3628
+ function Qi(i, t, e, o, r, a, n) {
3597
3629
  let s, l, c, u, d, h, f, y, g, p, m, v, b, A, k, x, E, L;
3598
- const C = i - r, T = e - r, M = t - a, _ = o - a;
3599
- A = C * _, h = R * C, f = h - (h - C), y = C - f, h = R * _, g = h - (h - _), p = _ - g, k = y * p - (A - f * g - y * g - f * p), x = M * T, h = R * M, f = h - (h - M), y = M - f, h = R * T, g = h - (h - T), p = T - g, E = y * p - (x - f * g - y * g - f * p), m = k - E, d = k - m, oe[0] = k - (m + d) + (d - E), v = A + m, d = v - A, b = A - (v - d) + (m - d), m = b - x, d = b - m, oe[1] = b - (m + d) + (d - x), L = v + m, d = L - v, oe[2] = v - (L - d) + (m - d), oe[3] = L;
3600
- let I = qi(4, oe), S = Vi * n;
3601
- if (I >= S || -I >= S || (d = i - C, s = i - (C + d) + (d - r), d = e - T, c = e - (T + d) + (d - r), d = t - M, l = t - (M + d) + (d - a), d = o - _, u = o - (_ + d) + (d - a), s === 0 && l === 0 && c === 0 && u === 0) || (S = ji * n + Hi * Math.abs(I), I += C * u + _ * s - (M * c + T * l), I >= S || -I >= S)) return I;
3602
- A = s * _, h = R * s, f = h - (h - s), y = s - f, h = R * _, g = h - (h - _), p = _ - g, k = y * p - (A - f * g - y * g - f * p), x = l * T, h = R * l, f = h - (h - l), y = l - f, h = R * T, g = h - (h - T), p = T - g, E = y * p - (x - f * g - y * g - f * p), m = k - E, d = k - m, z[0] = k - (m + d) + (d - E), v = A + m, d = v - A, b = A - (v - d) + (m - d), m = b - x, d = b - m, z[1] = b - (m + d) + (d - x), L = v + m, d = L - v, z[2] = v - (L - d) + (m - d), z[3] = L;
3630
+ const C = i - r, _ = e - r, M = t - a, T = o - a;
3631
+ A = C * T, h = R * C, f = h - (h - C), y = C - f, h = R * T, g = h - (h - T), p = T - g, k = y * p - (A - f * g - y * g - f * p), x = M * _, h = R * M, f = h - (h - M), y = M - f, h = R * _, g = h - (h - _), p = _ - g, E = y * p - (x - f * g - y * g - f * p), m = k - E, d = k - m, oe[0] = k - (m + d) + (d - E), v = A + m, d = v - A, b = A - (v - d) + (m - d), m = b - x, d = b - m, oe[1] = b - (m + d) + (d - x), L = v + m, d = L - v, oe[2] = v - (L - d) + (m - d), oe[3] = L;
3632
+ let I = ji(4, oe), S = Ki * n;
3633
+ if (I >= S || -I >= S || (d = i - C, s = i - (C + d) + (d - r), d = e - _, c = e - (_ + d) + (d - r), d = t - M, l = t - (M + d) + (d - a), d = o - T, u = o - (T + d) + (d - a), s === 0 && l === 0 && c === 0 && u === 0) || (S = Yi * n + Ji * Math.abs(I), I += C * u + T * s - (M * c + _ * l), I >= S || -I >= S)) return I;
3634
+ A = s * T, h = R * s, f = h - (h - s), y = s - f, h = R * T, g = h - (h - T), p = T - g, k = y * p - (A - f * g - y * g - f * p), x = l * _, h = R * l, f = h - (h - l), y = l - f, h = R * _, g = h - (h - _), p = _ - g, E = y * p - (x - f * g - y * g - f * p), m = k - E, d = k - m, z[0] = k - (m + d) + (d - E), v = A + m, d = v - A, b = A - (v - d) + (m - d), m = b - x, d = b - m, z[1] = b - (m + d) + (d - x), L = v + m, d = L - v, z[2] = v - (L - d) + (m - d), z[3] = L;
3603
3635
  const F = We(4, oe, 4, z, Jt);
3604
3636
  A = C * u, h = R * C, f = h - (h - C), y = C - f, h = R * u, g = h - (h - u), p = u - g, k = y * p - (A - f * g - y * g - f * p), x = M * c, h = R * M, f = h - (h - M), y = M - f, h = R * c, g = h - (h - c), p = c - g, E = y * p - (x - f * g - y * g - f * p), m = k - E, d = k - m, z[0] = k - (m + d) + (d - E), v = A + m, d = v - A, b = A - (v - d) + (m - d), m = b - x, d = b - m, z[1] = b - (m + d) + (d - x), L = v + m, d = L - v, z[2] = v - (L - d) + (m - d), z[3] = L;
3605
- const te = We(F, Jt, 4, z, Vt);
3637
+ const te = We(F, Jt, 4, z, jt);
3606
3638
  A = s * u, h = R * s, f = h - (h - s), y = s - f, h = R * u, g = h - (h - u), p = u - g, k = y * p - (A - f * g - y * g - f * p), x = l * c, h = R * l, f = h - (h - l), y = l - f, h = R * c, g = h - (h - c), p = c - g, E = y * p - (x - f * g - y * g - f * p), m = k - E, d = k - m, z[0] = k - (m + d) + (d - E), v = A + m, d = v - A, b = A - (v - d) + (m - d), m = b - x, d = b - m, z[1] = b - (m + d) + (d - x), L = v + m, d = L - v, z[2] = v - (L - d) + (m - d), z[3] = L;
3607
- const Ge = We(te, Vt, 4, z, jt);
3608
- return jt[Ge - 1];
3639
+ const Ge = We(te, jt, 4, z, Zt);
3640
+ return Zt[Ge - 1];
3609
3641
  }
3610
- function Ki(i, t, e, o, r, a) {
3642
+ function Wi(i, t, e, o, r, a) {
3611
3643
  const n = (t - a) * (e - r), s = (i - r) * (o - a), l = n - s, c = Math.abs(n + s);
3612
- return Math.abs(l) >= Ji * c ? l : -Zi(i, t, e, o, r, a, c);
3644
+ return Math.abs(l) >= Zi * c ? l : -Qi(i, t, e, o, r, a, c);
3613
3645
  }
3614
- function Yi(i, t) {
3646
+ function Xi(i, t) {
3615
3647
  var e, o, r = 0, a, n, s, l, c, u, d, h = i[0], f = i[1], y = t.length;
3616
3648
  for (e = 0; e < y; e++) {
3617
3649
  o = 0;
@@ -3623,7 +3655,7 @@ function Yi(i, t) {
3623
3655
  if (l <= 0 && n >= 0 || n <= 0 && l >= 0)
3624
3656
  return 0;
3625
3657
  } else if (c >= 0 && s <= 0 || c <= 0 && s >= 0) {
3626
- if (a = Ki(n, l, s, c, 0, 0), a === 0)
3658
+ if (a = Wi(n, l, s, c, 0, 0), a === 0)
3627
3659
  return 0;
3628
3660
  (a > 0 && c > 0 && s <= 0 || a < 0 && c <= 0 && s > 0) && r++;
3629
3661
  }
@@ -3637,23 +3669,23 @@ function le(i, t, e = {}) {
3637
3669
  throw new Error("point is required");
3638
3670
  if (!t)
3639
3671
  throw new Error("polygon is required");
3640
- const o = Oo(i), r = Z(t), a = r.type, n = t.bbox;
3672
+ const o = Ro(i), r = Z(t), a = r.type, n = t.bbox;
3641
3673
  let s = r.coordinates;
3642
- if (n && Qi(o, n) === !1)
3674
+ if (n && $i(o, n) === !1)
3643
3675
  return !1;
3644
3676
  a === "Polygon" && (s = [s]);
3645
3677
  for (var l = 0; l < s.length; ++l) {
3646
- const c = Yi(o, s[l]);
3678
+ const c = Xi(o, s[l]);
3647
3679
  if (c === 0 && !e.ignoreBoundary) return !0;
3648
3680
  if (c) return !0;
3649
3681
  }
3650
3682
  return !1;
3651
3683
  }
3652
- function Qi(i, t) {
3684
+ function $i(i, t) {
3653
3685
  return t[0] <= i[0] && t[1] <= i[1] && t[2] >= i[0] && t[3] >= i[1];
3654
3686
  }
3655
- class Bo {
3656
- constructor(t = [], e = Wi) {
3687
+ class Do {
3688
+ constructor(t = [], e = ea) {
3657
3689
  if (this.data = t, this.length = this.data.length, this.compare = e, this.length > 0)
3658
3690
  for (let o = (this.length >> 1) - 1; o >= 0; o--) this._down(o);
3659
3691
  }
@@ -3688,10 +3720,10 @@ class Bo {
3688
3720
  e[t] = a;
3689
3721
  }
3690
3722
  }
3691
- function Wi(i, t) {
3723
+ function ea(i, t) {
3692
3724
  return i < t ? -1 : i > t ? 1 : 0;
3693
3725
  }
3694
- const V = 11102230246251565e-32, D = 134217729, Xi = (3 + 8 * V) * V;
3726
+ const J = 11102230246251565e-32, D = 134217729, ta = (3 + 8 * J) * J;
3695
3727
  function Xe(i, t, e, o, r) {
3696
3728
  let a, n, s, l, c = t[0], u = o[0], d = 0, h = 0;
3697
3729
  u > c == u > -c ? (a = c, c = t[++d]) : (a = u, u = o[++h]);
@@ -3705,7 +3737,7 @@ function Xe(i, t, e, o, r) {
3705
3737
  n = a + u, l = n - a, s = a - (n - l) + (u - l), u = o[++h], a = n, s !== 0 && (r[f++] = s);
3706
3738
  return (a !== 0 || f === 0) && (r[f++] = a), f;
3707
3739
  }
3708
- function $i(i, t) {
3740
+ function oa(i, t) {
3709
3741
  let e = t[0];
3710
3742
  for (let o = 1; o < i; o++) e += t[o];
3711
3743
  return e;
@@ -3713,47 +3745,47 @@ function $i(i, t) {
3713
3745
  function xe(i) {
3714
3746
  return new Float64Array(i);
3715
3747
  }
3716
- const ea = (3 + 16 * V) * V, ta = (2 + 12 * V) * V, oa = (9 + 64 * V) * V * V, re = xe(4), Zt = xe(8), Kt = xe(12), Yt = xe(16), N = xe(4);
3717
- function ra(i, t, e, o, r, a, n) {
3748
+ const ra = (3 + 16 * J) * J, ia = (2 + 12 * J) * J, aa = (9 + 64 * J) * J * J, re = xe(4), Kt = xe(8), Yt = xe(12), Qt = xe(16), N = xe(4);
3749
+ function na(i, t, e, o, r, a, n) {
3718
3750
  let s, l, c, u, d, h, f, y, g, p, m, v, b, A, k, x, E, L;
3719
- const C = i - r, T = e - r, M = t - a, _ = o - a;
3720
- A = C * _, h = D * C, f = h - (h - C), y = C - f, h = D * _, g = h - (h - _), p = _ - g, k = y * p - (A - f * g - y * g - f * p), x = M * T, h = D * M, f = h - (h - M), y = M - f, h = D * T, g = h - (h - T), p = T - g, E = y * p - (x - f * g - y * g - f * p), m = k - E, d = k - m, re[0] = k - (m + d) + (d - E), v = A + m, d = v - A, b = A - (v - d) + (m - d), m = b - x, d = b - m, re[1] = b - (m + d) + (d - x), L = v + m, d = L - v, re[2] = v - (L - d) + (m - d), re[3] = L;
3721
- let I = $i(4, re), S = ta * n;
3722
- if (I >= S || -I >= S || (d = i - C, s = i - (C + d) + (d - r), d = e - T, c = e - (T + d) + (d - r), d = t - M, l = t - (M + d) + (d - a), d = o - _, u = o - (_ + d) + (d - a), s === 0 && l === 0 && c === 0 && u === 0) || (S = oa * n + Xi * Math.abs(I), I += C * u + _ * s - (M * c + T * l), I >= S || -I >= S)) return I;
3723
- A = s * _, h = D * s, f = h - (h - s), y = s - f, h = D * _, g = h - (h - _), p = _ - g, k = y * p - (A - f * g - y * g - f * p), x = l * T, h = D * l, f = h - (h - l), y = l - f, h = D * T, g = h - (h - T), p = T - g, E = y * p - (x - f * g - y * g - f * p), m = k - E, d = k - m, N[0] = k - (m + d) + (d - E), v = A + m, d = v - A, b = A - (v - d) + (m - d), m = b - x, d = b - m, N[1] = b - (m + d) + (d - x), L = v + m, d = L - v, N[2] = v - (L - d) + (m - d), N[3] = L;
3724
- const F = Xe(4, re, 4, N, Zt);
3751
+ const C = i - r, _ = e - r, M = t - a, T = o - a;
3752
+ A = C * T, h = D * C, f = h - (h - C), y = C - f, h = D * T, g = h - (h - T), p = T - g, k = y * p - (A - f * g - y * g - f * p), x = M * _, h = D * M, f = h - (h - M), y = M - f, h = D * _, g = h - (h - _), p = _ - g, E = y * p - (x - f * g - y * g - f * p), m = k - E, d = k - m, re[0] = k - (m + d) + (d - E), v = A + m, d = v - A, b = A - (v - d) + (m - d), m = b - x, d = b - m, re[1] = b - (m + d) + (d - x), L = v + m, d = L - v, re[2] = v - (L - d) + (m - d), re[3] = L;
3753
+ let I = oa(4, re), S = ia * n;
3754
+ if (I >= S || -I >= S || (d = i - C, s = i - (C + d) + (d - r), d = e - _, c = e - (_ + d) + (d - r), d = t - M, l = t - (M + d) + (d - a), d = o - T, u = o - (T + d) + (d - a), s === 0 && l === 0 && c === 0 && u === 0) || (S = aa * n + ta * Math.abs(I), I += C * u + T * s - (M * c + _ * l), I >= S || -I >= S)) return I;
3755
+ A = s * T, h = D * s, f = h - (h - s), y = s - f, h = D * T, g = h - (h - T), p = T - g, k = y * p - (A - f * g - y * g - f * p), x = l * _, h = D * l, f = h - (h - l), y = l - f, h = D * _, g = h - (h - _), p = _ - g, E = y * p - (x - f * g - y * g - f * p), m = k - E, d = k - m, N[0] = k - (m + d) + (d - E), v = A + m, d = v - A, b = A - (v - d) + (m - d), m = b - x, d = b - m, N[1] = b - (m + d) + (d - x), L = v + m, d = L - v, N[2] = v - (L - d) + (m - d), N[3] = L;
3756
+ const F = Xe(4, re, 4, N, Kt);
3725
3757
  A = C * u, h = D * C, f = h - (h - C), y = C - f, h = D * u, g = h - (h - u), p = u - g, k = y * p - (A - f * g - y * g - f * p), x = M * c, h = D * M, f = h - (h - M), y = M - f, h = D * c, g = h - (h - c), p = c - g, E = y * p - (x - f * g - y * g - f * p), m = k - E, d = k - m, N[0] = k - (m + d) + (d - E), v = A + m, d = v - A, b = A - (v - d) + (m - d), m = b - x, d = b - m, N[1] = b - (m + d) + (d - x), L = v + m, d = L - v, N[2] = v - (L - d) + (m - d), N[3] = L;
3726
- const te = Xe(F, Zt, 4, N, Kt);
3758
+ const te = Xe(F, Kt, 4, N, Yt);
3727
3759
  A = s * u, h = D * s, f = h - (h - s), y = s - f, h = D * u, g = h - (h - u), p = u - g, k = y * p - (A - f * g - y * g - f * p), x = l * c, h = D * l, f = h - (h - l), y = l - f, h = D * c, g = h - (h - c), p = c - g, E = y * p - (x - f * g - y * g - f * p), m = k - E, d = k - m, N[0] = k - (m + d) + (d - E), v = A + m, d = v - A, b = A - (v - d) + (m - d), m = b - x, d = b - m, N[1] = b - (m + d) + (d - x), L = v + m, d = L - v, N[2] = v - (L - d) + (m - d), N[3] = L;
3728
- const Ge = Xe(te, Kt, 4, N, Yt);
3729
- return Yt[Ge - 1];
3760
+ const Ge = Xe(te, Yt, 4, N, Qt);
3761
+ return Qt[Ge - 1];
3730
3762
  }
3731
- function Qt(i, t, e, o, r, a) {
3763
+ function Wt(i, t, e, o, r, a) {
3732
3764
  const n = (t - a) * (e - r), s = (i - r) * (o - a), l = n - s;
3733
3765
  if (n === 0 || s === 0 || n > 0 != s > 0) return l;
3734
3766
  const c = Math.abs(n + s);
3735
- return Math.abs(l) >= ea * c ? l : -ra(i, t, e, o, r, a, c);
3767
+ return Math.abs(l) >= ra * c ? l : -na(i, t, e, o, r, a, c);
3736
3768
  }
3737
- function ia(i, t) {
3738
- const e = new Bo([], Ro);
3739
- return na(i, e), sa(e, t);
3769
+ function sa(i, t) {
3770
+ const e = new Do([], zo);
3771
+ return ca(i, e), da(e, t);
3740
3772
  }
3741
- function Ro(i, t) {
3773
+ function zo(i, t) {
3742
3774
  return i.p.x > t.p.x ? 1 : i.p.x < t.p.x || i.p.x === t.p.x && (i.featureId !== t.featureId || i.ringId !== t.ringId) && i.isLeftEndpoint && !t.isLeftEndpoint ? -1 : i.p.y !== t.p.y ? i.p.y > t.p.y ? 1 : -1 : 1;
3743
3775
  }
3744
- function aa(i, t) {
3776
+ function la(i, t) {
3745
3777
  return i.rightSweepEvent.p.x > t.rightSweepEvent.p.x ? 1 : i.rightSweepEvent.p.x < t.rightSweepEvent.p.x ? -1 : i.rightSweepEvent.p.y !== t.rightSweepEvent.p.y ? i.rightSweepEvent.p.y < t.rightSweepEvent.p.y ? 1 : -1 : 1;
3746
3778
  }
3747
- function na(i, t) {
3779
+ function ca(i, t) {
3748
3780
  if (i.type === "FeatureCollection") {
3749
3781
  const e = i.features;
3750
3782
  for (let o = 0; o < e.length; o++)
3751
- Wt(e[o], t);
3783
+ Xt(e[o], t);
3752
3784
  } else
3753
- Wt(i, t);
3785
+ Xt(i, t);
3754
3786
  }
3755
3787
  var Ee = 0, Le = 0, Ce = 0;
3756
- function Wt(i, t) {
3788
+ function Xt(i, t) {
3757
3789
  const e = i.type === "Feature" ? i.geometry : i;
3758
3790
  let o = e.coordinates;
3759
3791
  (e.type === "Polygon" || e.type === "MultiLineString") && (o = [o]), e.type === "LineString" && (o = [[o]]);
@@ -3763,13 +3795,13 @@ function Wt(i, t) {
3763
3795
  Le = Le + 1;
3764
3796
  for (let l = 0; l < o[r][a].length - 1; l++) {
3765
3797
  s = o[r][a][l + 1];
3766
- const c = new Xt(n, Ee, Le, Ce), u = new Xt(s, Ee, Le, Ce + 1);
3767
- c.otherEvent = u, u.otherEvent = c, Ro(c, u) > 0 ? (u.isLeftEndpoint = !0, c.isLeftEndpoint = !1) : (c.isLeftEndpoint = !0, u.isLeftEndpoint = !1), t.push(c), t.push(u), n = s, Ce = Ce + 1;
3798
+ const c = new $t(n, Ee, Le, Ce), u = new $t(s, Ee, Le, Ce + 1);
3799
+ c.otherEvent = u, u.otherEvent = c, zo(c, u) > 0 ? (u.isLeftEndpoint = !0, c.isLeftEndpoint = !1) : (c.isLeftEndpoint = !0, u.isLeftEndpoint = !1), t.push(c), t.push(u), n = s, Ce = Ce + 1;
3768
3800
  }
3769
3801
  }
3770
3802
  Ee = Ee + 1;
3771
3803
  }
3772
- var Xt = class {
3804
+ var $t = class {
3773
3805
  constructor(i, t, e, o) {
3774
3806
  this.p = {
3775
3807
  x: i[0],
@@ -3783,17 +3815,17 @@ var Xt = class {
3783
3815
  return [this.p.x, this.p.y];
3784
3816
  }
3785
3817
  };
3786
- function sa(i, t = !1) {
3787
- const e = [], o = new Bo([], aa);
3818
+ function da(i, t = !1) {
3819
+ const e = [], o = new Do([], la);
3788
3820
  for (; i.length; ) {
3789
3821
  const r = i.pop();
3790
3822
  if (r.isLeftEndpoint) {
3791
- const a = new la(r);
3823
+ const a = new ua(r);
3792
3824
  for (let n = 0; n < o.data.length; n++) {
3793
3825
  const s = o.data[n];
3794
3826
  if (t && s.leftSweepEvent.featureId === r.featureId)
3795
3827
  continue;
3796
- const l = ca(a, s);
3828
+ const l = ha(a, s);
3797
3829
  l !== !1 && e.push(l);
3798
3830
  }
3799
3831
  o.push(a);
@@ -3801,15 +3833,15 @@ function sa(i, t = !1) {
3801
3833
  }
3802
3834
  return e;
3803
3835
  }
3804
- var la = class {
3836
+ var ua = class {
3805
3837
  /** @param event must have otherEvent non-null */
3806
3838
  constructor(i) {
3807
3839
  this.leftSweepEvent = i, this.rightSweepEvent = i.otherEvent;
3808
3840
  }
3809
3841
  };
3810
- function ca(i, t) {
3842
+ function ha(i, t) {
3811
3843
  if (i === null || t === null) return !1;
3812
- const e = i.leftSweepEvent.p.x, o = i.leftSweepEvent.p.y, r = i.rightSweepEvent.p.x, a = i.rightSweepEvent.p.y, n = t.leftSweepEvent.p.x, s = t.leftSweepEvent.p.y, l = t.rightSweepEvent.p.x, c = t.rightSweepEvent.p.y, u = Qt(e, o, r, a, n, s), d = Qt(e, o, r, a, l, c);
3844
+ const e = i.leftSweepEvent.p.x, o = i.leftSweepEvent.p.y, r = i.rightSweepEvent.p.x, a = i.rightSweepEvent.p.y, n = t.leftSweepEvent.p.x, s = t.leftSweepEvent.p.y, l = t.rightSweepEvent.p.x, c = t.rightSweepEvent.p.y, u = Wt(e, o, r, a, n, s), d = Wt(e, o, r, a, l, c);
3813
3845
  if (u > 0 && d > 0) return !1;
3814
3846
  if (u < 0 && d < 0) return !1;
3815
3847
  if (i.leftSweepEvent.ringId === t.leftSweepEvent.ringId) {
@@ -3839,7 +3871,7 @@ function ee(i, t, e = {}) {
3839
3871
  const { removeDuplicates: o = !0, ignoreSelfIntersections: r = !0 } = e;
3840
3872
  let a = [];
3841
3873
  i.type === "FeatureCollection" ? a = a.concat(i.features) : i.type === "Feature" ? a.push(i) : (i.type === "LineString" || i.type === "Polygon" || i.type === "MultiLineString" || i.type === "MultiPolygon") && a.push(j(i)), t.type === "FeatureCollection" ? a = a.concat(t.features) : t.type === "Feature" ? a.push(t) : (t.type === "LineString" || t.type === "Polygon" || t.type === "MultiLineString" || t.type === "MultiPolygon") && a.push(j(t));
3842
- const n = ia(
3874
+ const n = sa(
3843
3875
  mt(a),
3844
3876
  r
3845
3877
  );
@@ -3858,35 +3890,35 @@ function Be(i, t = {}) {
3858
3890
  const e = Z(i);
3859
3891
  switch (!t.properties && i.type === "Feature" && (t.properties = i.properties), e.type) {
3860
3892
  case "Polygon":
3861
- return da(e, t);
3893
+ return fa(e, t);
3862
3894
  case "MultiPolygon":
3863
- return ua(e, t);
3895
+ return pa(e, t);
3864
3896
  default:
3865
3897
  throw new Error("invalid poly");
3866
3898
  }
3867
3899
  }
3868
- function da(i, t = {}) {
3900
+ function fa(i, t = {}) {
3869
3901
  const o = Z(i).coordinates, r = t.properties ? t.properties : i.type === "Feature" ? i.properties : {};
3870
- return Do(o, r);
3902
+ return No(o, r);
3871
3903
  }
3872
- function ua(i, t = {}) {
3904
+ function pa(i, t = {}) {
3873
3905
  const o = Z(i).coordinates, r = t.properties ? t.properties : i.type === "Feature" ? i.properties : {}, a = [];
3874
3906
  return o.forEach((n) => {
3875
- a.push(Do(n, r));
3907
+ a.push(No(n, r));
3876
3908
  }), mt(a);
3877
3909
  }
3878
- function Do(i, t) {
3879
- return i.length > 1 ? Di(i, t) : ve(i[0], t);
3910
+ function No(i, t) {
3911
+ return i.length > 1 ? Fi(i, t) : ve(i[0], t);
3880
3912
  }
3881
- function ha(i, t, {
3913
+ function ga(i, t, {
3882
3914
  ignoreSelfIntersections: e = !0
3883
3915
  } = { ignoreSelfIntersections: !0 }) {
3884
3916
  let o = !0;
3885
- return Gt(i, (r) => {
3886
- Gt(t, (a) => {
3917
+ return Ht(i, (r) => {
3918
+ Ht(t, (a) => {
3887
3919
  if (o === !1)
3888
3920
  return !1;
3889
- o = fa(
3921
+ o = ma(
3890
3922
  r.geometry,
3891
3923
  a.geometry,
3892
3924
  e
@@ -3894,12 +3926,12 @@ function ha(i, t, {
3894
3926
  });
3895
3927
  }), o;
3896
3928
  }
3897
- function fa(i, t, e) {
3929
+ function ma(i, t, e) {
3898
3930
  switch (i.type) {
3899
3931
  case "Point":
3900
3932
  switch (t.type) {
3901
3933
  case "Point":
3902
- return !ya(i.coordinates, t.coordinates);
3934
+ return !wa(i.coordinates, t.coordinates);
3903
3935
  case "LineString":
3904
3936
  return !Re(t, i);
3905
3937
  case "Polygon":
@@ -3911,9 +3943,9 @@ function fa(i, t, e) {
3911
3943
  case "Point":
3912
3944
  return !Re(i, t);
3913
3945
  case "LineString":
3914
- return !pa(i, t, e);
3946
+ return !ya(i, t, e);
3915
3947
  case "Polygon":
3916
- return !$t(t, i, e);
3948
+ return !eo(t, i, e);
3917
3949
  }
3918
3950
  break;
3919
3951
  case "Polygon":
@@ -3921,16 +3953,16 @@ function fa(i, t, e) {
3921
3953
  case "Point":
3922
3954
  return !le(t, i);
3923
3955
  case "LineString":
3924
- return !$t(i, t, e);
3956
+ return !eo(i, t, e);
3925
3957
  case "Polygon":
3926
- return !ga(t, i, e);
3958
+ return !ba(t, i, e);
3927
3959
  }
3928
3960
  }
3929
3961
  return !1;
3930
3962
  }
3931
3963
  function Re(i, t) {
3932
3964
  for (let e = 0; e < i.coordinates.length - 1; e++)
3933
- if (ma(
3965
+ if (va(
3934
3966
  i.coordinates[e],
3935
3967
  i.coordinates[e + 1],
3936
3968
  t.coordinates
@@ -3938,7 +3970,7 @@ function Re(i, t) {
3938
3970
  return !0;
3939
3971
  return !1;
3940
3972
  }
3941
- function pa(i, t, e) {
3973
+ function ya(i, t, e) {
3942
3974
  if (ee(i, t, {
3943
3975
  ignoreSelfIntersections: e
3944
3976
  }).features.length > 0)
@@ -3951,7 +3983,7 @@ function pa(i, t, e) {
3951
3983
  return !0;
3952
3984
  return !1;
3953
3985
  }
3954
- function $t(i, t, e) {
3986
+ function eo(i, t, e) {
3955
3987
  for (const r of t.coordinates)
3956
3988
  if (le(r, i))
3957
3989
  return !0;
@@ -3959,7 +3991,7 @@ function $t(i, t, e) {
3959
3991
  ignoreSelfIntersections: e
3960
3992
  }).features.length > 0;
3961
3993
  }
3962
- function ga(i, t, e) {
3994
+ function ba(i, t, e) {
3963
3995
  for (const r of i.coordinates[0])
3964
3996
  if (le(r, t))
3965
3997
  return !0;
@@ -3972,14 +4004,14 @@ function ga(i, t, e) {
3972
4004
  { ignoreSelfIntersections: e }
3973
4005
  ).features.length > 0;
3974
4006
  }
3975
- function ma(i, t, e) {
4007
+ function va(i, t, e) {
3976
4008
  const o = e[0] - i[0], r = e[1] - i[1], a = t[0] - i[0], n = t[1] - i[1];
3977
4009
  return o * n - r * a !== 0 ? !1 : Math.abs(a) >= Math.abs(n) ? a > 0 ? i[0] <= e[0] && e[0] <= t[0] : t[0] <= e[0] && e[0] <= i[0] : n > 0 ? i[1] <= e[1] && e[1] <= t[1] : t[1] <= e[1] && e[1] <= i[1];
3978
4010
  }
3979
- function ya(i, t) {
4011
+ function wa(i, t) {
3980
4012
  return i[0] === t[0] && i[1] === t[1];
3981
4013
  }
3982
- var ba = Object.defineProperty, ce = (i, t) => ba(i, "name", { value: t, configurable: !0 }), zo = class {
4014
+ var Aa = Object.defineProperty, ce = (i, t) => Aa(i, "name", { value: t, configurable: !0 }), Fo = class {
3983
4015
  constructor(t) {
3984
4016
  this.direction = !1, this.compareProperties = !0;
3985
4017
  var e, o, r;
@@ -4059,7 +4091,7 @@ var ba = Object.defineProperty, ce = (i, t) => ba(i, "name", { value: t, configu
4059
4091
  return fe(t.geometries, e.geometries) && this.compareBBox(t, e) && t.geometries.every((o, r) => this.compare(o, e.geometries[r]));
4060
4092
  }
4061
4093
  compareFeature(t, e) {
4062
- return t.id === e.id && (this.compareProperties ? wt(t.properties, e.properties) : !0) && this.compareBBox(t, e) && this.compare(t.geometry, e.geometry);
4094
+ return t.id === e.id && (this.compareProperties ? At(t.properties, e.properties) : !0) && this.compareBBox(t, e) && this.compare(t.geometry, e.geometry);
4063
4095
  }
4064
4096
  compareFeatureCollection(t, e) {
4065
4097
  return fe(t.features, e.features) && this.compareBBox(t, e) && t.features.every((o, r) => this.compare(o, e.features[r]));
@@ -4068,8 +4100,8 @@ var ba = Object.defineProperty, ce = (i, t) => ba(i, "name", { value: t, configu
4068
4100
  return !t.bbox && !e.bbox || (t.bbox && e.bbox ? this.compareCoord(t.bbox, e.bbox) : !1);
4069
4101
  }
4070
4102
  };
4071
- ce(zo, "GeojsonEquality");
4072
- var va = zo;
4103
+ ce(Fo, "GeojsonEquality");
4104
+ var ka = Fo;
4073
4105
  function fe(i, t) {
4074
4106
  return i.coordinates ? i.coordinates.length === t.coordinates.length : i.length === t.length;
4075
4107
  }
@@ -4081,11 +4113,11 @@ function yt(i) {
4081
4113
  }));
4082
4114
  }
4083
4115
  ce(yt, "explode");
4084
- function No(i, t, e) {
4085
- return new va(e).compare(i, t);
4116
+ function Uo(i, t, e) {
4117
+ return new ka(e).compare(i, t);
4086
4118
  }
4087
- ce(No, "geojsonEquality");
4088
- function wt(i, t) {
4119
+ ce(Uo, "geojsonEquality");
4120
+ function At(i, t) {
4089
4121
  if (i === null && t === null)
4090
4122
  return !0;
4091
4123
  if (i === null || t === null)
@@ -4093,19 +4125,19 @@ function wt(i, t) {
4093
4125
  const e = Object.keys(i), o = Object.keys(t);
4094
4126
  if (e.length !== o.length) return !1;
4095
4127
  for (var r of e) {
4096
- const a = i[r], n = t[r], s = eo(a) && eo(n);
4097
- if (s && !wt(a, n) || !s && a !== n)
4128
+ const a = i[r], n = t[r], s = to(a) && to(n);
4129
+ if (s && !At(a, n) || !s && a !== n)
4098
4130
  return !1;
4099
4131
  }
4100
4132
  return !0;
4101
4133
  }
4102
- ce(wt, "equal");
4103
- var eo = /* @__PURE__ */ ce((i) => i != null && typeof i == "object", "isObject");
4134
+ ce(At, "equal");
4135
+ var to = /* @__PURE__ */ ce((i) => i != null && typeof i == "object", "isObject");
4104
4136
  function bt(i, t, e = {}) {
4105
- const o = Oo(i), r = ge(t);
4137
+ const o = Ro(i), r = ge(t);
4106
4138
  for (let a = 0; a < r.length - 1; a++) {
4107
4139
  let n = !1;
4108
- if (e.ignoreEndVertices && (a === 0 && (n = "start"), a === r.length - 2 && (n = "end"), a === 0 && a + 1 === r.length - 1 && (n = "both")), wa(
4140
+ if (e.ignoreEndVertices && (a === 0 && (n = "start"), a === r.length - 2 && (n = "end"), a === 0 && a + 1 === r.length - 1 && (n = "both")), xa(
4109
4141
  r[a],
4110
4142
  r[a + 1],
4111
4143
  o,
@@ -4116,7 +4148,7 @@ function bt(i, t, e = {}) {
4116
4148
  }
4117
4149
  return !1;
4118
4150
  }
4119
- function wa(i, t, e, o, r) {
4151
+ function xa(i, t, e, o, r) {
4120
4152
  const a = e[0], n = e[1], s = i[0], l = i[1], c = t[0], u = t[1], d = e[0] - s, h = e[1] - l, f = c - s, y = u - l, g = d * y - h * f;
4121
4153
  if (r !== null) {
4122
4154
  if (Math.abs(g) > r)
@@ -4135,10 +4167,10 @@ function wa(i, t, e, o, r) {
4135
4167
  } else return Math.abs(f) >= Math.abs(y) ? f > 0 ? s <= a && a <= c : c <= a && a <= s : y > 0 ? l <= n && n <= u : u <= n && n <= l;
4136
4168
  return !1;
4137
4169
  }
4138
- function to(i, t = {}) {
4170
+ function oo(i, t = {}) {
4139
4171
  var e = typeof t == "object" ? t.mutate : t;
4140
4172
  if (!i) throw new Error("geojson is required");
4141
- var o = Gi(i), r = [];
4173
+ var o = qi(i), r = [];
4142
4174
  switch (o) {
4143
4175
  case "LineString":
4144
4176
  r = $e(i, o);
@@ -4176,7 +4208,7 @@ function to(i, t = {}) {
4176
4208
  }
4177
4209
  function $e(i, t) {
4178
4210
  const e = ge(i);
4179
- if (e.length === 2 && !oo(e[0], e[1])) return e;
4211
+ if (e.length === 2 && !ro(e[0], e[1])) return e;
4180
4212
  const o = [];
4181
4213
  let r = 0, a = 1, n = 2;
4182
4214
  for (o.push(e[r]); n < e.length; )
@@ -4187,12 +4219,12 @@ function $e(i, t) {
4187
4219
  ve([o[1], o[o.length - 2]])
4188
4220
  ) && (o.shift(), o.pop(), o.push(o[0])), o.length < 4)
4189
4221
  throw new Error("invalid polygon, fewer than 4 points");
4190
- if (!oo(o[0], o[o.length - 1]))
4222
+ if (!ro(o[0], o[o.length - 1]))
4191
4223
  throw new Error("invalid polygon, first and last points not equal");
4192
4224
  }
4193
4225
  return o;
4194
4226
  }
4195
- function oo(i, t) {
4227
+ function ro(i, t) {
4196
4228
  return i[0] === t[0] && i[1] === t[1];
4197
4229
  }
4198
4230
  function Me(i, t, e = {}) {
@@ -4200,39 +4232,39 @@ function Me(i, t, e = {}) {
4200
4232
  if (o = o == null || isNaN(o) ? 6 : o, typeof o != "number" || !(o >= 0))
4201
4233
  throw new Error("precision must be a positive number");
4202
4234
  const r = Z(i).type, a = Z(t).type;
4203
- return r !== a ? !1 : No(to(i), to(t), {
4235
+ return r !== a ? !1 : Uo(oo(i), oo(t), {
4204
4236
  precision: o
4205
4237
  });
4206
4238
  }
4207
- function Aa(i, t) {
4239
+ function Ea(i, t) {
4208
4240
  var e = Z(i), o = Z(t), r = e.type, a = o.type;
4209
4241
  switch (r) {
4210
4242
  case "MultiPoint":
4211
4243
  switch (a) {
4212
4244
  case "LineString":
4213
- return ro(e, o);
4245
+ return io(e, o);
4214
4246
  case "Polygon":
4215
- return ao(e, o);
4247
+ return no(e, o);
4216
4248
  default:
4217
4249
  throw new Error("feature2 " + a + " geometry not supported");
4218
4250
  }
4219
4251
  case "LineString":
4220
4252
  switch (a) {
4221
4253
  case "MultiPoint":
4222
- return ro(o, e);
4254
+ return io(o, e);
4223
4255
  case "LineString":
4224
- return ka(e, o);
4256
+ return La(e, o);
4225
4257
  case "Polygon":
4226
- return io(e, o);
4258
+ return ao(e, o);
4227
4259
  default:
4228
4260
  throw new Error("feature2 " + a + " geometry not supported");
4229
4261
  }
4230
4262
  case "Polygon":
4231
4263
  switch (a) {
4232
4264
  case "MultiPoint":
4233
- return ao(o, e);
4265
+ return no(o, e);
4234
4266
  case "LineString":
4235
- return io(o, e);
4267
+ return ao(o, e);
4236
4268
  default:
4237
4269
  throw new Error("feature2 " + a + " geometry not supported");
4238
4270
  }
@@ -4240,11 +4272,11 @@ function Aa(i, t) {
4240
4272
  throw new Error("feature1 " + r + " geometry not supported");
4241
4273
  }
4242
4274
  }
4243
- function ro(i, t) {
4275
+ function io(i, t) {
4244
4276
  for (var e = !1, o = !1, r = i.coordinates.length, a = 0; a < r && (!e || !o); a++) {
4245
4277
  for (var n = !1, s = 0; s < t.coordinates.length - 1; s++) {
4246
4278
  var l = !0;
4247
- if ((s === 0 || s === t.coordinates.length - 2) && (l = !1), xa(
4279
+ if ((s === 0 || s === t.coordinates.length - 2) && (l = !1), Ca(
4248
4280
  t.coordinates[s],
4249
4281
  t.coordinates[s + 1],
4250
4282
  i.coordinates[a],
@@ -4258,7 +4290,7 @@ function ro(i, t) {
4258
4290
  }
4259
4291
  return e && o;
4260
4292
  }
4261
- function ka(i, t) {
4293
+ function La(i, t) {
4262
4294
  const e = ee(i, t);
4263
4295
  if (e.features.length === 0) return !1;
4264
4296
  for (const o of e.features)
@@ -4272,21 +4304,21 @@ function ka(i, t) {
4272
4304
  return !0;
4273
4305
  return !1;
4274
4306
  }
4275
- function io(i, t) {
4307
+ function ao(i, t) {
4276
4308
  const e = Be(t);
4277
4309
  return ee(i, e).features.length > 0;
4278
4310
  }
4279
- function ao(i, t) {
4311
+ function no(i, t) {
4280
4312
  var e = !1, o = !1, r = i.coordinates.length;
4281
4313
  for (let a = 0; a < r && (!e || !o); a++)
4282
4314
  le($(i.coordinates[a]), t) ? e = !0 : o = !0;
4283
4315
  return o && e;
4284
4316
  }
4285
- function xa(i, t, e, o) {
4317
+ function Ca(i, t, e, o) {
4286
4318
  var r = e[0] - i[0], a = e[1] - i[1], n = t[0] - i[0], s = t[1] - i[1], l = r * s - a * n;
4287
4319
  return l !== 0 ? !1 : o ? Math.abs(n) >= Math.abs(s) ? n > 0 ? i[0] <= e[0] && e[0] <= t[0] : t[0] <= e[0] && e[0] <= i[0] : s > 0 ? i[1] <= e[1] && e[1] <= t[1] : t[1] <= e[1] && e[1] <= i[1] : Math.abs(n) >= Math.abs(s) ? n > 0 ? i[0] < e[0] && e[0] < t[0] : t[0] < e[0] && e[0] < i[0] : s > 0 ? i[1] < e[1] && e[1] < t[1] : t[1] < e[1] && e[1] < i[1];
4288
4320
  }
4289
- var Ea = /* @__PURE__ */ new Set([
4321
+ var Ma = /* @__PURE__ */ new Set([
4290
4322
  "Point",
4291
4323
  "LineString",
4292
4324
  "MultiLineString",
@@ -4294,7 +4326,7 @@ var Ea = /* @__PURE__ */ new Set([
4294
4326
  "Polygon",
4295
4327
  "MultiPolygon"
4296
4328
  ]);
4297
- function Fo(i) {
4329
+ function Go(i) {
4298
4330
  if (!i.type) return !1;
4299
4331
  const t = Z(i), e = t.type, o = t.coordinates;
4300
4332
  switch (e) {
@@ -4316,27 +4348,27 @@ function Fo(i) {
4316
4348
  return !0;
4317
4349
  case "Polygon":
4318
4350
  for (var r = 0; r < t.coordinates.length; r++)
4319
- if (o[r].length < 4 || !no(o[r]) || so(o[r]) || r > 0 && ee(ie([o[0]]), ie([o[r]])).features.length > 1)
4351
+ if (o[r].length < 4 || !so(o[r]) || lo(o[r]) || r > 0 && ee(ie([o[0]]), ie([o[r]])).features.length > 1)
4320
4352
  return !1;
4321
4353
  return !0;
4322
4354
  case "MultiPolygon":
4323
4355
  for (var r = 0; r < t.coordinates.length; r++)
4324
4356
  for (var a = t.coordinates[r], n = 0; n < a.length; n++)
4325
- if (a[n].length < 4 || !no(a[n]) || so(a[n]) || n === 0 && !La(a, t.coordinates, r) || n > 0 && ee(ie([a[0]]), ie([a[n]])).features.length > 1)
4357
+ if (a[n].length < 4 || !so(a[n]) || lo(a[n]) || n === 0 && !_a(a, t.coordinates, r) || n > 0 && ee(ie([a[0]]), ie([a[n]])).features.length > 1)
4326
4358
  return !1;
4327
4359
  return !0;
4328
4360
  case "GeometryCollection":
4329
4361
  return t.geometries ? Array.isArray(t.geometries) && t.geometries.length > 0 && t.geometries.every(
4330
- (s) => Ea.has(s.type) && Fo(s)
4362
+ (s) => Ma.has(s.type) && Go(s)
4331
4363
  ) : !1;
4332
4364
  default:
4333
4365
  return !1;
4334
4366
  }
4335
4367
  }
4336
- function no(i) {
4368
+ function so(i) {
4337
4369
  return i[0][0] === i[i.length - 1][0] && i[0][1] === i[i.length - 1][1];
4338
4370
  }
4339
- function so(i) {
4371
+ function lo(i) {
4340
4372
  for (var t = 0; t < i.length - 1; t++)
4341
4373
  for (var e = i[t], o = t + 1; o < i.length - 2; o++) {
4342
4374
  var r = [i[o], i[o + 1]];
@@ -4344,13 +4376,13 @@ function so(i) {
4344
4376
  }
4345
4377
  return !1;
4346
4378
  }
4347
- function La(i, t, e) {
4379
+ function _a(i, t, e) {
4348
4380
  for (var o = ie(i), r = e + 1; r < t.length; r++)
4349
- if (!ha(o, ie(t[r])) && Aa(o, ve(t[r][0])))
4381
+ if (!ga(o, ie(t[r])) && Ea(o, ve(t[r][0])))
4350
4382
  return !1;
4351
4383
  return !0;
4352
4384
  }
4353
- function Ca(i) {
4385
+ function Ta(i) {
4354
4386
  let t, e;
4355
4387
  const o = {
4356
4388
  type: "FeatureCollection",
@@ -4376,7 +4408,7 @@ function Ca(i) {
4376
4408
  n === 0 && s === r.length - 2 && // lineString is closed
4377
4409
  r[n][0] === r[r.length - 1][0] && r[n][1] === r[r.length - 1][1]))
4378
4410
  continue;
4379
- const l = Ma(
4411
+ const l = Ia(
4380
4412
  r[n][0],
4381
4413
  r[n][1],
4382
4414
  r[n + 1][0],
@@ -4391,7 +4423,7 @@ function Ca(i) {
4391
4423
  });
4392
4424
  }), o;
4393
4425
  }
4394
- function Ma(i, t, e, o, r, a, n, s) {
4426
+ function Ia(i, t, e, o, r, a, n, s) {
4395
4427
  let l, c, u, d, h;
4396
4428
  const f = {
4397
4429
  x: null,
@@ -4401,13 +4433,13 @@ function Ma(i, t, e, o, r, a, n, s) {
4401
4433
  };
4402
4434
  return l = (s - a) * (e - i) - (n - r) * (o - t), l === 0 ? f.x !== null && f.y !== null ? f : !1 : (c = t - a, u = i - r, d = (n - r) * c - (s - a) * u, h = (e - i) * c - (o - t) * u, c = d / l, u = h / l, f.x = i + c * (e - i), f.y = t + c * (o - t), c >= 0 && c <= 1 && (f.onLine1 = !0), u >= 0 && u <= 1 && (f.onLine2 = !0), f.onLine1 && f.onLine2 ? [f.x, f.y] : !1);
4403
4435
  }
4404
- const Ta = 3.280839895013123, _a = 10.763910416709722, lo = 1609.344, co = 4046.8564224, uo = 1e4, At = (i) => ({
4436
+ const Sa = 3.280839895013123, Pa = 10.763910416709722, co = 1609.344, uo = 4046.8564224, ho = 1e4, kt = (i) => ({
4405
4437
  ok: !0,
4406
4438
  value: i
4407
- }), q = (i, t, e) => ({
4439
+ }), V = (i, t, e) => ({
4408
4440
  ok: !1,
4409
4441
  error: { code: i, message: t, ...e ? { details: e } : {} }
4410
- }), Ia = (i) => JSON.parse(JSON.stringify(i)), Sa = (i) => i !== null && typeof i == "object" && !Array.isArray(i), Pa = (i) => !Sa(i) || typeof i.type != "string" ? !1 : [
4442
+ }), Oa = (i) => JSON.parse(JSON.stringify(i)), Ba = (i) => i !== null && typeof i == "object" && !Array.isArray(i), Ra = (i) => !Ba(i) || typeof i.type != "string" ? !1 : [
4411
4443
  "Point",
4412
4444
  "MultiPoint",
4413
4445
  "LineString",
@@ -4418,10 +4450,10 @@ const Ta = 3.280839895013123, _a = 10.763910416709722, lo = 1609.344, co = 4046.
4418
4450
  "Feature",
4419
4451
  "FeatureCollection"
4420
4452
  ].includes(i.type);
4421
- function kt(i, t) {
4453
+ function xt(i, t) {
4422
4454
  if (i.type === "FeatureCollection") {
4423
4455
  i.features.forEach(
4424
- (e, o) => kt(
4456
+ (e, o) => xt(
4425
4457
  e,
4426
4458
  (r, a) => t(r, `features[${o}].${a}`)
4427
4459
  )
@@ -4434,23 +4466,23 @@ function kt(i, t) {
4434
4466
  }
4435
4467
  t(i, "geometry");
4436
4468
  }
4437
- function Uo(i, t, e) {
4469
+ function Ho(i, t, e) {
4438
4470
  if (i.type === "GeometryCollection") {
4439
4471
  i.geometries.forEach(
4440
- (o, r) => Uo(o, `${t}.geometries[${r}]`, e)
4472
+ (o, r) => Ho(o, `${t}.geometries[${r}]`, e)
4441
4473
  );
4442
4474
  return;
4443
4475
  }
4444
4476
  e(i, t);
4445
4477
  }
4446
- function Oa(i, t) {
4478
+ function Da(i, t) {
4447
4479
  return i[0] === t[0] && i[1] === t[1];
4448
4480
  }
4449
- function ho(i) {
4481
+ function fo(i) {
4450
4482
  const t = i[0];
4451
- return !t || i.every((e) => Oa(t, e));
4483
+ return !t || i.every((e) => Da(t, e));
4452
4484
  }
4453
- function Ba(i) {
4485
+ function za(i) {
4454
4486
  let t = 0;
4455
4487
  for (let e = 0; e < i.length - 1; e++) {
4456
4488
  const o = i[e], r = i[e + 1];
@@ -4458,7 +4490,7 @@ function Ba(i) {
4458
4490
  }
4459
4491
  return t / 2;
4460
4492
  }
4461
- function Ra(i, t) {
4493
+ function Na(i, t) {
4462
4494
  const e = (r, a) => Math.abs(r[0]) > 180 || Math.abs(r[1]) > 90 ? `${a} is outside WGS84 longitude/latitude bounds.` : null, o = (r, a) => {
4463
4495
  for (let n = 0; n < r.length; n++) {
4464
4496
  const s = e(r[n], `${a}[${n}]`);
@@ -4496,13 +4528,13 @@ function Ra(i, t) {
4496
4528
  return null;
4497
4529
  }
4498
4530
  }
4499
- function Da(i, t) {
4500
- const e = Ra(i, t);
4531
+ function Fa(i, t) {
4532
+ const e = Na(i, t);
4501
4533
  if (e) return e;
4502
- if (i.type === "LineString" && ho(i.coordinates))
4534
+ if (i.type === "LineString" && fo(i.coordinates))
4503
4535
  return `${t} has no non-zero line segment.`;
4504
4536
  if (i.type === "MultiLineString") {
4505
- const o = i.coordinates.findIndex(ho);
4537
+ const o = i.coordinates.findIndex(fo);
4506
4538
  if (o >= 0)
4507
4539
  return `${t}.coordinates[${o}] has no non-zero line segment.`;
4508
4540
  }
@@ -4511,19 +4543,19 @@ function Da(i, t) {
4511
4543
  for (let r = 0; r < o.length; r++)
4512
4544
  for (let a = 0; a < o[r].length; a++) {
4513
4545
  const n = o[r][a];
4514
- if (Math.abs(Ba(n)) <= Number.EPSILON)
4546
+ if (Math.abs(za(n)) <= Number.EPSILON)
4515
4547
  return `${t} contains a degenerate zero-area ring.`;
4516
4548
  }
4517
4549
  }
4518
- return Fo(i) ? (i.type === "LineString" || i.type === "MultiLineString" || i.type === "Polygon" || i.type === "MultiPolygon") && Ca(i).features.length > 0 ? `${t} contains one or more self-intersections.` : null : `${t} is not valid under OGC Simple Feature topology rules.`;
4550
+ return Go(i) ? (i.type === "LineString" || i.type === "MultiLineString" || i.type === "Polygon" || i.type === "MultiPolygon") && Ta(i).features.length > 0 ? `${t} contains one or more self-intersections.` : null : `${t} is not valid under OGC Simple Feature topology rules.`;
4519
4551
  }
4520
- function za(i) {
4552
+ function Ua(i) {
4521
4553
  const t = ft(i);
4522
4554
  if (!t.valid) {
4523
4555
  const r = t.diagnostics.some(
4524
4556
  (a) => a.code === "unsupported-geometry"
4525
4557
  );
4526
- return q(
4558
+ return V(
4527
4559
  r ? "unsupported-geometry" : "invalid-input",
4528
4560
  "GeoJSON structural validation failed.",
4529
4561
  t.diagnostics.filter((a) => a.severity === "error").map(
@@ -4531,140 +4563,140 @@ function za(i) {
4531
4563
  )
4532
4564
  );
4533
4565
  }
4534
- if (!Pa(i))
4535
- return q("invalid-input", "Expected a supported GeoJSON object.");
4566
+ if (!Ra(i))
4567
+ return V("invalid-input", "Expected a supported GeoJSON object.");
4536
4568
  if (i.type === "FeatureCollection" && i.features.length === 0)
4537
- return q("invalid-input", "FeatureCollection must not be empty.");
4569
+ return V("invalid-input", "FeatureCollection must not be empty.");
4538
4570
  let e = 0, o = null;
4539
- return kt(i, (r, a) => {
4571
+ return xt(i, (r, a) => {
4540
4572
  if (!o) {
4541
4573
  if (r.type === "GeometryCollection" && r.geometries.length === 0) {
4542
4574
  o = `${a} must not be an empty GeometryCollection.`;
4543
4575
  return;
4544
4576
  }
4545
- Uo(r, a, (n, s) => {
4546
- e += 1, o != null || (o = Da(n, s));
4577
+ Ho(r, a, (n, s) => {
4578
+ e += 1, o != null || (o = Fa(n, s));
4547
4579
  });
4548
4580
  }
4549
- }), e === 0 ? q("invalid-input", "GeoJSON contains no geometry.") : o ? q("topology-error", o) : At(i);
4581
+ }), e === 0 ? V("invalid-input", "GeoJSON contains no geometry.") : o ? V("topology-error", o) : kt(i);
4550
4582
  }
4551
- function Go(i, t) {
4552
- return q(
4583
+ function Vo(i, t) {
4584
+ return V(
4553
4585
  "operation-failed",
4554
4586
  `${i} failed safely: ${t instanceof Error ? t.message : String(t)}`
4555
4587
  );
4556
4588
  }
4557
- function Te(i) {
4589
+ function _e(i) {
4558
4590
  let t = 0;
4559
4591
  for (let e = 1; e < i.length; e++) {
4560
4592
  const o = i[e - 1], r = i[e];
4561
- t += Co(o[1], o[0], r[1], r[0]).meters;
4593
+ t += _o(o[1], o[0], r[1], r[0]).meters;
4562
4594
  }
4563
4595
  return t;
4564
4596
  }
4565
- function Ho(i, t) {
4597
+ function qo(i, t) {
4566
4598
  switch (i.type) {
4567
4599
  case "LineString":
4568
- t.lengthMeters += Te(i.coordinates);
4600
+ t.lengthMeters += _e(i.coordinates);
4569
4601
  break;
4570
4602
  case "MultiLineString":
4571
4603
  i.coordinates.forEach((e) => {
4572
- t.lengthMeters += Te(e);
4604
+ t.lengthMeters += _e(e);
4573
4605
  });
4574
4606
  break;
4575
4607
  case "Polygon":
4576
4608
  i.coordinates.forEach((e) => {
4577
- t.perimeterMeters += Te(e);
4609
+ t.perimeterMeters += _e(e);
4578
4610
  });
4579
4611
  break;
4580
4612
  case "MultiPolygon":
4581
4613
  i.coordinates.forEach(
4582
4614
  (e) => e.forEach((o) => {
4583
- t.perimeterMeters += Te(o);
4615
+ t.perimeterMeters += _e(o);
4584
4616
  })
4585
4617
  );
4586
4618
  break;
4587
4619
  case "GeometryCollection":
4588
4620
  i.geometries.forEach(
4589
- (e) => Ho(e, t)
4621
+ (e) => qo(e, t)
4590
4622
  );
4591
4623
  break;
4592
4624
  }
4593
4625
  }
4594
- function Na(i) {
4595
- const t = za(i);
4626
+ function Ga(i) {
4627
+ const t = Ua(i);
4596
4628
  if (!t.ok) return t;
4597
4629
  try {
4598
4630
  const e = {
4599
4631
  lengthMeters: 0,
4600
4632
  perimeterMeters: 0,
4601
- areaSquareMeters: Ni(Ia(i))
4633
+ areaSquareMeters: Gi(Oa(i))
4602
4634
  };
4603
- return kt(
4635
+ return xt(
4604
4636
  i,
4605
- (o) => Ho(o, e)
4637
+ (o) => qo(o, e)
4606
4638
  ), Object.values(e).some(
4607
4639
  (o) => !Number.isFinite(o) || o < 0
4608
- ) ? q(
4640
+ ) ? V(
4609
4641
  "operation-failed",
4610
4642
  "Measurement produced a non-finite result."
4611
- ) : At(e);
4643
+ ) : kt(e);
4612
4644
  } catch (e) {
4613
- return Go("Measurement", e);
4645
+ return Vo("Measurement", e);
4614
4646
  }
4615
4647
  }
4616
4648
  function Y(i, t, e) {
4617
4649
  return { value: i, unit: t, text: `${e.format(i)} ${t}` };
4618
4650
  }
4619
- function Fa(i, t, e = {}) {
4651
+ function Ha(i, t, e = {}) {
4620
4652
  var r;
4621
4653
  if (Object.values(i).some(
4622
4654
  (a) => !Number.isFinite(a) || a < 0
4623
4655
  ))
4624
- return q(
4656
+ return V(
4625
4657
  "invalid-input",
4626
4658
  "Measurements must contain finite, non-negative SI values."
4627
4659
  );
4628
4660
  const o = (r = e.maximumFractionDigits) != null ? r : 2;
4629
4661
  if (!Number.isInteger(o) || o < 0 || o > 20)
4630
- return q(
4662
+ return V(
4631
4663
  "invalid-options",
4632
4664
  "maximumFractionDigits must be an integer from 0 through 20."
4633
4665
  );
4634
4666
  try {
4635
4667
  const a = new Intl.NumberFormat(e.locale, {
4636
4668
  maximumFractionDigits: o
4637
- }), n = (l) => t === "metric" ? e.autoScale && l >= 1e3 ? Y(l / 1e3, "km", a) : Y(l, "m", a) : e.autoScale && l >= lo ? Y(l / lo, "mi", a) : Y(l * Ta, "ft", a), s = (l) => t === "metric" ? e.autoScale && l >= uo ? Y(
4638
- l / uo,
4669
+ }), n = (l) => t === "metric" ? e.autoScale && l >= 1e3 ? Y(l / 1e3, "km", a) : Y(l, "m", a) : e.autoScale && l >= co ? Y(l / co, "mi", a) : Y(l * Sa, "ft", a), s = (l) => t === "metric" ? e.autoScale && l >= ho ? Y(
4670
+ l / ho,
4639
4671
  "ha",
4640
4672
  a
4641
- ) : Y(l, "m²", a) : e.autoScale && l >= co ? Y(
4642
- l / co,
4673
+ ) : Y(l, "m²", a) : e.autoScale && l >= uo ? Y(
4674
+ l / uo,
4643
4675
  "ac",
4644
4676
  a
4645
4677
  ) : Y(
4646
- l * _a,
4678
+ l * Pa,
4647
4679
  "ft²",
4648
4680
  a
4649
4681
  );
4650
- return At({
4682
+ return kt({
4651
4683
  length: n(i.lengthMeters),
4652
4684
  perimeter: n(i.perimeterMeters),
4653
4685
  area: s(i.areaSquareMeters)
4654
4686
  });
4655
4687
  } catch (a) {
4656
- return Go("Measurement formatting", a);
4688
+ return Vo("Measurement formatting", a);
4657
4689
  }
4658
4690
  }
4659
- let fo = !1;
4660
- const Ua = {
4691
+ let po = !1;
4692
+ const Va = {
4661
4693
  polygon: "tool:polygon:created",
4662
4694
  polyline: "tool:polyline:created",
4663
4695
  rectangle: "tool:rectangle:created",
4664
4696
  circle: "tool:circle:created",
4665
4697
  marker: "tool:marker:created"
4666
4698
  };
4667
- class Ga {
4699
+ class qa {
4668
4700
  constructor(t) {
4669
4701
  w(this, "container");
4670
4702
  w(this, "logger");
@@ -4673,7 +4705,7 @@ class Ga {
4673
4705
  w(this, "L");
4674
4706
  // Data store (id-centric)
4675
4707
  w(this, "store");
4676
- w(this, "layerRegistry", new Je());
4708
+ w(this, "layerRegistry", new qe());
4677
4709
  w(this, "featureLayers", /* @__PURE__ */ new Map());
4678
4710
  w(this, "closeLayerStylePanel", null);
4679
4711
  // Leaflet entities
@@ -4732,7 +4764,7 @@ class Ga {
4732
4764
  var e, o, r, a, n, s;
4733
4765
  this.options = t, this.container = t.container, this.logger = ((e = t.logger) != null ? e : Ne("controller", "debug")).child(
4734
4766
  "map"
4735
- ), this.L = this.resolveLeaflet(t), this.store = new xr(this.logger.child("store")), this.layerRegistry.add([], { id: "base", name: "Basemap" }, "base"), this.setMarkerIconConfig((o = t.markerIconConfig) != null ? o : null, {
4767
+ ), this.L = this.resolveLeaflet(t), this.store = new Cr(this.logger.child("store")), this.layerRegistry.add([], { id: "base", name: "Basemap" }, "base"), this.setMarkerIconConfig((o = t.markerIconConfig) != null ? o : null, {
4736
4768
  reapplyExistingLayers: !1,
4737
4769
  syncDrawControl: !1
4738
4770
  }), this.toolButtonConfig = (r = t.toolButtonConfig) != null ? r : null, this.toolbarGroups = (a = t.toolbarGroups) != null ? a : null, this.snappingOptions = t.snapping ? { ...t.snapping, enabled: (n = t.snapping.enabled) != null ? n : !0 } : null, this.measurementOverlayOptions = t.measurementOverlay ? {
@@ -4743,29 +4775,29 @@ class Ga {
4743
4775
  controls: t.controls,
4744
4776
  readOnly: t.readOnly,
4745
4777
  useExternalLeaflet: t.useExternalLeaflet
4746
- }), ti(this.L), oi(this.L), ei(this.L);
4778
+ }), ii(this.L), ai(this.L), ri(this.L);
4747
4779
  }
4748
- emitToolEvent(t, e) {
4749
- var r, a;
4780
+ emitToolEvent(t, e, o) {
4781
+ var a, n;
4750
4782
  try {
4751
- (a = (r = this.options.toolHooks) == null ? void 0 : r[t]) == null || a.call(r, e);
4752
- } catch (n) {
4753
- this._error(`tool hook failed: ${t}`, n);
4783
+ (n = (a = this.options.toolHooks) == null ? void 0 : a[t]) == null || n.call(a, e);
4784
+ } catch (s) {
4785
+ this._error(`tool hook failed: ${t}`, s);
4754
4786
  }
4755
- const o = this.options.toolEventEmitter;
4756
- if (o)
4787
+ const r = this.options.toolEventEmitter;
4788
+ if (r)
4757
4789
  try {
4758
- if (typeof o.emit == "function") {
4759
- o.emit(t, e);
4790
+ if (typeof r.emit == "function") {
4791
+ r.emit(t, e);
4760
4792
  return;
4761
4793
  }
4762
- typeof o.dispatchEvent == "function" && o.dispatchEvent(
4794
+ r !== o && typeof r.dispatchEvent == "function" && r.dispatchEvent(
4763
4795
  new CustomEvent(t, {
4764
4796
  detail: e
4765
4797
  })
4766
4798
  );
4767
- } catch (n) {
4768
- this._error(`tool emitter failed: ${t}`, n);
4799
+ } catch (s) {
4800
+ this._error(`tool emitter failed: ${t}`, s);
4769
4801
  }
4770
4802
  }
4771
4803
  nextCommandId() {
@@ -4776,7 +4808,7 @@ class Ga {
4776
4808
  const t = {};
4777
4809
  for (const l of Object.keys(Oe))
4778
4810
  t[l] = l === "ruler" ? this.canTriggerRulerTool() : typeof ((e = this.findLeafletDrawHandler(l)) == null ? void 0 : e.enable) == "function";
4779
- return _o({
4811
+ return So({
4780
4812
  ready: !!(this.map && this.drawnItems),
4781
4813
  readOnly: !!this.options.readOnly,
4782
4814
  controls: this.options.controls,
@@ -4810,7 +4842,7 @@ class Ga {
4810
4842
  (a) => this.store.has(a)
4811
4843
  );
4812
4844
  const t = this.getToolCapabilities();
4813
- zt(this.container, t);
4845
+ Nt(this.container, t);
4814
4846
  const e = JSON.stringify(t);
4815
4847
  e !== this.lastCapabilities && (this.lastCapabilities = e, (r = (o = this.options.callbacks) == null ? void 0 : o.onToolCapabilitiesChanged) == null || r.call(o, t));
4816
4848
  }));
@@ -4837,7 +4869,7 @@ class Ga {
4837
4869
  this.container,
4838
4870
  (n = r.reason) != null ? n : `${e.tool}: ${a}`,
4839
4871
  a === "failed"
4840
- ), (l = (s = this.options.callbacks) == null ? void 0 : s.onToolEvent) == null || l.call(s, t, r), this.emitToolEvent(t, r), this.notifyToolCapabilities(), r;
4872
+ ), (l = (s = this.options.callbacks) == null ? void 0 : s.onToolEvent) == null || l.call(s, t, r), this.emitToolEvent(t, r, this.options.lifecycleEventTarget), this.notifyToolCapabilities(), r;
4841
4873
  }
4842
4874
  beginToolCommand(t, e, o, r, a) {
4843
4875
  var l, c, u, d;
@@ -5007,7 +5039,7 @@ class Ga {
5007
5039
  else {
5008
5040
  (b = this.closeLayerStylePanel) == null || b.call(this);
5009
5041
  const E = { layers: this.getLayers() };
5010
- (k = (A = this.options.callbacks) == null ? void 0 : A.onLayerStyleRequested) != null && k.call(A, E) || (this.closeLayerStylePanel = Er(
5042
+ (k = (A = this.options.callbacks) == null ? void 0 : A.onLayerStyleRequested) != null && k.call(A, E) || (this.closeLayerStylePanel = Mr(
5011
5043
  this.container,
5012
5044
  E.layers,
5013
5045
  (L, C) => {
@@ -5310,7 +5342,7 @@ class Ga {
5310
5342
  return this.store.toFeatureCollection();
5311
5343
  }
5312
5344
  async exportGeoJSON(t = {}) {
5313
- const e = yo(
5345
+ const e = vo(
5314
5346
  await this.getGeoJSON(),
5315
5347
  t
5316
5348
  );
@@ -5322,22 +5354,22 @@ class Ga {
5322
5354
  async importGeoJSON(t, e = {}) {
5323
5355
  var l, c;
5324
5356
  if (!this.map || !this.drawnItems) return [];
5325
- const o = (l = e.behavior) != null ? l : "replace", r = e.validate ? Rt(t, { expandMulti: !0 }) : vt(t);
5357
+ const o = (l = e.behavior) != null ? l : "replace", r = e.validate ? Dt(t, { expandMulti: !0 }) : wt(t);
5326
5358
  if (e.preserveLayers && o !== "replace")
5327
5359
  throw new Error("preserveLayers requires replace import");
5328
- const a = e.preserveLayers ? Je.parseSnapshot(
5360
+ const a = e.preserveLayers ? qe.parseSnapshot(
5329
5361
  t["geokit:layers"],
5330
5362
  r.features.map((u) => {
5331
5363
  var d;
5332
5364
  return (d = H(u)) != null ? d : "";
5333
5365
  })
5334
5366
  ) : null;
5335
- if (!a && (new Je().add([], e.layer), ((c = e.layer) == null ? void 0 : c.id) === "base" || o === "add" && this.getLayers().some((d) => {
5367
+ if (!a && (new qe().add([], e.layer), ((c = e.layer) == null ? void 0 : c.id) === "base" || o === "add" && this.getLayers().some((d) => {
5336
5368
  var h;
5337
5369
  return d.id === ((h = e.layer) == null ? void 0 : h.id);
5338
5370
  })))
5339
5371
  throw new Error("Duplicate layer id");
5340
- if (e.validate && o === "add" && Rt({
5372
+ if (e.validate && o === "add" && Dt({
5341
5373
  type: "FeatureCollection",
5342
5374
  features: [
5343
5375
  ...this.store.toFeatureCollection().features,
@@ -5439,7 +5471,7 @@ class Ga {
5439
5471
  }
5440
5472
  this.tileLayer && this.map.removeLayer(this.tileLayer), this.adapterAttribution && ((e = this.map.attributionControl) == null || e.removeAttribution(this.adapterAttribution)), this.tileLayer = r, this.adapterAttribution = t.attribution, (o = this.map.attributionControl) == null || o.addAttribution(t.attribution);
5441
5473
  }
5442
- this.providerDiagnostics = Dt(
5474
+ this.providerDiagnostics = zt(
5443
5475
  t.provider,
5444
5476
  t.attribution
5445
5477
  ), this.applyLayerRegistry();
@@ -5453,8 +5485,8 @@ class Ga {
5453
5485
  this.logger.debug("tile-layer:switch", {
5454
5486
  maxZoom: t.maxZoom,
5455
5487
  subdomains: t.subdomains
5456
- }), this.adapterAttribution && ((n = this.map.attributionControl) == null || n.removeAttribution(this.adapterAttribution)), this.adapterAttribution = null, this.providerDiagnostics = Dt(
5457
- Ci(t),
5488
+ }), this.adapterAttribution && ((n = this.map.attributionControl) == null || n.removeAttribution(this.adapterAttribution)), this.adapterAttribution = null, this.providerDiagnostics = zt(
5489
+ Ti(t),
5458
5490
  t.attribution
5459
5491
  ), this.tileLayer && (this.map.removeLayer(this.tileLayer), this.tileLayer = null);
5460
5492
  const o = {
@@ -5482,33 +5514,38 @@ class Ga {
5482
5514
  */
5483
5515
  async mergeVisiblePolygons(t) {
5484
5516
  if (!this.map || !this.drawnItems) return null;
5485
- const o = (await this.getGeoJSON()).features.filter((s) => {
5486
- const l = s.geometry, c = H(s);
5517
+ const o = (await this.getGeoJSON()).features.filter((l) => {
5518
+ const c = l.geometry, u = H(l);
5487
5519
  return !this.getLayers().some(
5488
- (d) => !d.visible && c && d.featureIds.includes(c)
5489
- ) && l && (bo(l) || vo(l));
5520
+ (h) => !h.visible && u && h.featureIds.includes(u)
5521
+ ) && c && (wo(c) || Ao(c));
5490
5522
  });
5491
5523
  if (o.length <= 1) {
5492
5524
  if (o.length === 1) {
5493
- const s = o[0].id;
5494
- return s ? String(s) : null;
5525
+ const l = o[0].id;
5526
+ return l ? String(l) : null;
5495
5527
  }
5496
5528
  return null;
5497
5529
  }
5498
- const r = kr(o, t == null ? void 0 : t.properties);
5530
+ const r = Lr(o, t == null ? void 0 : t.properties);
5499
5531
  if (!r) return null;
5500
- const a = [];
5501
- for (const s of o) {
5502
- const l = s.id;
5503
- l && a.push(String(l));
5504
- }
5505
- for (const s of a)
5506
- await this.removeFeature(s);
5507
- const [n] = await this.addFeatures({
5532
+ const a = bo([...o, r]);
5533
+ a.length && (r.properties = {
5534
+ ...r.properties,
5535
+ [vt]: a
5536
+ });
5537
+ const n = [];
5538
+ for (const l of o) {
5539
+ const c = l.id;
5540
+ c && n.push(String(c));
5541
+ }
5542
+ for (const l of n)
5543
+ await this.removeFeature(l);
5544
+ const [s] = await this.addFeatures({
5508
5545
  type: "FeatureCollection",
5509
5546
  features: [r]
5510
5547
  });
5511
- return n || null;
5548
+ return s || null;
5512
5549
  }
5513
5550
  setRulerUnits(t) {
5514
5551
  if (this.measurementSystem === t) return;
@@ -5589,6 +5626,8 @@ class Ga {
5589
5626
  return this.L.geoJSON(t, {
5590
5627
  pointToLayer: (e, o) => this.markerIcon ? this.L.marker(o, { icon: this.markerIcon }) : this.L.marker(o),
5591
5628
  onEachFeature: (e, o) => {
5629
+ var a;
5630
+ hr(e, o, (a = this.map) == null ? void 0 : a.attributionControl);
5592
5631
  const r = H(e);
5593
5632
  r && (o._fid = r);
5594
5633
  }
@@ -5635,7 +5674,7 @@ class Ga {
5635
5674
  Tt(this.container, this.toolButtonConfig, {
5636
5675
  toolbarGroups: this.toolbarGroups,
5637
5676
  onTrigger: (e, o) => this.handleToolbarTrigger(e, o)
5638
- }), zt(this.container, this.getToolCapabilities());
5677
+ }), Nt(this.container, this.getToolCapabilities());
5639
5678
  };
5640
5679
  t(), setTimeout(t, 0);
5641
5680
  }
@@ -5781,7 +5820,7 @@ class Ga {
5781
5820
  let o = e.querySelector(
5782
5821
  ".leaflet-geokit-cake-icon"
5783
5822
  );
5784
- o || (o = document.createElement("span"), o.className = "leaflet-geokit-cake-icon", o.setAttribute("aria-hidden", "true"), e.appendChild(o)), o.style.setProperty("position", "absolute", "important"), o.style.setProperty("display", "block", "important"), o.style.setProperty("left", "50%", "important"), o.style.setProperty("top", "50%", "important"), o.style.setProperty("width", "18px", "important"), o.style.setProperty("height", "18px", "important"), o.style.setProperty("transform", "translate(-50%, -50%)", "important"), o.style.setProperty("pointer-events", "none", "important"), o.firstElementChild || (o.innerHTML = hi);
5823
+ o || (o = document.createElement("span"), o.className = "leaflet-geokit-cake-icon", o.setAttribute("aria-hidden", "true"), e.appendChild(o)), o.style.setProperty("position", "absolute", "important"), o.style.setProperty("display", "block", "important"), o.style.setProperty("left", "50%", "important"), o.style.setProperty("top", "50%", "important"), o.style.setProperty("width", "18px", "important"), o.style.setProperty("height", "18px", "important"), o.style.setProperty("transform", "translate(-50%, -50%)", "important"), o.style.setProperty("pointer-events", "none", "important"), o.firstElementChild || (o.innerHTML = gi);
5785
5824
  const r = o.firstElementChild;
5786
5825
  r && (r.style.setProperty("width", "100%", "important"), r.style.setProperty("height", "100%", "important"), r.style.setProperty("display", "block", "important"));
5787
5826
  };
@@ -5798,7 +5837,7 @@ class Ga {
5798
5837
  let o = e.querySelector(
5799
5838
  ".leaflet-geokit-move-icon"
5800
5839
  );
5801
- o || (o = document.createElement("span"), o.className = "leaflet-geokit-move-icon", o.setAttribute("aria-hidden", "true"), e.appendChild(o)), o.style.setProperty("position", "absolute", "important"), o.style.setProperty("display", "block", "important"), o.style.setProperty("left", "50%", "important"), o.style.setProperty("top", "50%", "important"), o.style.setProperty("width", "18px", "important"), o.style.setProperty("height", "18px", "important"), o.style.setProperty("transform", "translate(-50%, -50%)", "important"), o.style.setProperty("pointer-events", "none", "important"), o.firstElementChild || (o.innerHTML = fi);
5840
+ o || (o = document.createElement("span"), o.className = "leaflet-geokit-move-icon", o.setAttribute("aria-hidden", "true"), e.appendChild(o)), o.style.setProperty("position", "absolute", "important"), o.style.setProperty("display", "block", "important"), o.style.setProperty("left", "50%", "important"), o.style.setProperty("top", "50%", "important"), o.style.setProperty("width", "18px", "important"), o.style.setProperty("height", "18px", "important"), o.style.setProperty("transform", "translate(-50%, -50%)", "important"), o.style.setProperty("pointer-events", "none", "important"), o.firstElementChild || (o.innerHTML = mi);
5802
5841
  const r = o.firstElementChild;
5803
5842
  r && (r.style.setProperty("width", "100%", "important"), r.style.setProperty("height", "100%", "important"), r.style.setProperty("display", "block", "important"));
5804
5843
  };
@@ -5808,11 +5847,11 @@ class Ga {
5808
5847
  addRulerControl() {
5809
5848
  if (!this.map) return;
5810
5849
  this.installRulerPrecisionPatch();
5811
- const t = ki(this.measurementSystem);
5850
+ const t = Li(this.measurementSystem);
5812
5851
  this.rulerControl = this.L.control.ruler(t), this.map.addControl(this.rulerControl);
5813
5852
  }
5814
5853
  installRulerPrecisionPatch() {
5815
- if (fo) return;
5854
+ if (po) return;
5816
5855
  const t = this.L.Control.Ruler;
5817
5856
  if (!t || typeof t != "function") return;
5818
5857
  const e = t.prototype, o = e._calculateBearingAndDistance;
@@ -5824,7 +5863,7 @@ class Ga {
5824
5863
  try {
5825
5864
  const c = this._clickedLatLong, u = (n = this._movingLatLong) != null ? n : this._clickedLatLong;
5826
5865
  if (!c || !u) return;
5827
- const { meters: d, bearingDegrees: h } = Co(
5866
+ const { meters: d, bearingDegrees: h } = _o(
5828
5867
  c.lat,
5829
5868
  c.lng,
5830
5869
  u.lat,
@@ -5834,7 +5873,7 @@ class Ga {
5834
5873
  } catch (c) {
5835
5874
  r == null || r.warn("ruler:precision-patch", c);
5836
5875
  }
5837
- }, fo = !0;
5876
+ }, po = !0;
5838
5877
  }
5839
5878
  rebuildRulerControl() {
5840
5879
  if (!(!this.map || !this.options.controls.ruler)) {
@@ -5894,7 +5933,7 @@ class Ga {
5894
5933
  u.checked && this.setRulerUnits(l);
5895
5934
  });
5896
5935
  const d = document.createElement("span");
5897
- d.textContent = xi[l], c.appendChild(u), c.appendChild(d), a.appendChild(c), this.measurementModalRadios[l] = u;
5936
+ d.textContent = Ci[l], c.appendChild(u), c.appendChild(d), a.appendChild(c), this.measurementModalRadios[l] = u;
5898
5937
  });
5899
5938
  const n = document.createElement("div");
5900
5939
  n.className = "leaflet-ruler-modal-actions";
@@ -6058,7 +6097,7 @@ class Ga {
6058
6097
  return t;
6059
6098
  }
6060
6099
  findSnapResult(t, e) {
6061
- return !this.map || !this.snappingOptions || this.snappingOptions.enabled === !1 || !t ? null : Ri(
6100
+ return !this.map || !this.snappingOptions || this.snappingOptions.enabled === !1 || !t ? null : Ni(
6062
6101
  { lat: Number(t.lat), lng: Number(t.lng) },
6063
6102
  this.getSnapTargets(),
6064
6103
  (o) => {
@@ -6172,12 +6211,12 @@ class Ga {
6172
6211
  renderMeasurement(t, e) {
6173
6212
  var c, u, d, h, f;
6174
6213
  if (!((c = this.measurementOverlayOptions) != null && c.enabled) || !t) return;
6175
- const o = Na(t);
6214
+ const o = Ga(t);
6176
6215
  if (!o.ok) {
6177
6216
  this.logger.warn("measurement-overlay:failed", o.error);
6178
6217
  return;
6179
6218
  }
6180
- const r = Fa(
6219
+ const r = Ha(
6181
6220
  o.value,
6182
6221
  this.measurementSystem,
6183
6222
  {
@@ -6297,14 +6336,14 @@ class Ga {
6297
6336
  if (typeof E != "function") continue;
6298
6337
  const L = (C) => {
6299
6338
  var S, F, te;
6300
- const T = this.eventLatLng(C), M = this.findSnapResult(T);
6339
+ const _ = this.eventLatLng(C), M = this.findSnapResult(_);
6301
6340
  this.showSnapFeedback(M);
6302
- const _ = M ? { ...C, latlng: M.latlng } : C, I = E.call(k, _);
6341
+ const T = M ? { ...C, latlng: M.latlng } : C, I = E.call(k, T);
6303
6342
  return M && (k._currentLatLng = M.latlng, (S = k._mouseMarker) == null || S.setLatLng(M.latlng), typeof k._updateGuide == "function" && k._updateGuide(
6304
6343
  this.map.latLngToLayerPoint(M.latlng)
6305
6344
  ), (F = k._updateTooltip) == null || F.call(k, M.latlng)), this.renderMeasurement(
6306
6345
  this.geometryFeatureForHandler(k, M == null ? void 0 : M.latlng),
6307
- (te = M == null ? void 0 : M.latlng) != null ? te : T
6346
+ (te = M == null ? void 0 : M.latlng) != null ? te : _
6308
6347
  ), I;
6309
6348
  };
6310
6349
  k[x] = L, t.push(() => {
@@ -6314,15 +6353,15 @@ class Ga {
6314
6353
  }
6315
6354
  }
6316
6355
  const s = (b) => {
6317
- var E, L, C, T, M, _;
6356
+ var E, L, C, _, M, T;
6318
6357
  const A = Object.values(
6319
- (T = (C = (L = (E = this.drawControl) == null ? void 0 : E._toolbars) == null ? void 0 : L.draw) == null ? void 0 : C._modes) != null ? T : {}
6358
+ (_ = (C = (L = (E = this.drawControl) == null ? void 0 : E._toolbars) == null ? void 0 : L.draw) == null ? void 0 : C._modes) != null ? _ : {}
6320
6359
  ).map((I) => I == null ? void 0 : I.handler).find((I) => I == null ? void 0 : I._enabled);
6321
6360
  if (!A) return;
6322
6361
  const k = this.eventLatLng(b), x = o ? this.findSnapResult(k) : null;
6323
6362
  o && this.showSnapFeedback(x), this.renderMeasurement(
6324
6363
  this.geometryFeatureForHandler(A, (M = x == null ? void 0 : x.latlng) != null ? M : k),
6325
- (_ = x == null ? void 0 : x.latlng) != null ? _ : k
6364
+ (T = x == null ? void 0 : x.latlng) != null ? T : k
6326
6365
  );
6327
6366
  };
6328
6367
  this.map.on("mousemove touchmove", s), t.push(() => {
@@ -6334,23 +6373,23 @@ class Ga {
6334
6373
  if (a)
6335
6374
  for (const E of (k = (A = (b = this.drawnItems) == null ? void 0 : b.getLayers) == null ? void 0 : A.call(b)) != null ? k : []) {
6336
6375
  const L = E, C = () => {
6337
- var T, M, _;
6376
+ var _, M, T;
6338
6377
  return this.renderMeasurement(
6339
- (M = (T = L.toGeoJSON) == null ? void 0 : T.call(L)) != null ? M : null,
6340
- (_ = L.getLatLng) == null ? void 0 : _.call(L)
6378
+ (M = (_ = L.toGeoJSON) == null ? void 0 : _.call(L)) != null ? M : null,
6379
+ (T = L.getLatLng) == null ? void 0 : T.call(L)
6341
6380
  );
6342
6381
  };
6343
6382
  (x = L.on) == null || x.call(L, "editdrag drag", C), e.push(() => {
6344
- var T;
6345
- return (T = L.off) == null ? void 0 : T.call(L, "editdrag drag", C);
6383
+ var _;
6384
+ return (_ = L.off) == null ? void 0 : _.call(L, "editdrag drag", C);
6346
6385
  });
6347
6386
  }
6348
6387
  o && queueMicrotask(() => {
6349
- var E, L, C, T, M;
6388
+ var E, L, C, _, M;
6350
6389
  if (r)
6351
- for (const _ of (C = (L = (E = this.drawnItems) == null ? void 0 : E.getLayers) == null ? void 0 : L.call(E)) != null ? C : []) {
6352
- const I = _.editing;
6353
- for (const S of (T = I == null ? void 0 : I._verticesHandlers) != null ? T : []) {
6390
+ for (const T of (C = (L = (E = this.drawnItems) == null ? void 0 : E.getLayers) == null ? void 0 : L.call(E)) != null ? C : []) {
6391
+ const I = T.editing;
6392
+ for (const S of (_ = I == null ? void 0 : I._verticesHandlers) != null ? _ : []) {
6354
6393
  this.installEditHandlerSnap(S, e);
6355
6394
  for (const F of (M = S == null ? void 0 : S._markers) != null ? M : [])
6356
6395
  this.installEditMarkerSnap(F, S, e);
@@ -6358,11 +6397,11 @@ class Ga {
6358
6397
  }
6359
6398
  });
6360
6399
  }, c = (b) => {
6361
- var k, x, E, L, C, T, M, _, I, S;
6400
+ var k, x, E, L, C, _, M, T, I, S;
6362
6401
  const A = (C = (x = (k = b == null ? void 0 : b.poly) == null ? void 0 : k.toGeoJSON) == null ? void 0 : x.call(k)) != null ? C : (L = (E = b == null ? void 0 : b.layer) == null ? void 0 : E.toGeoJSON) == null ? void 0 : L.call(E);
6363
6402
  this.renderMeasurement(
6364
6403
  A,
6365
- (S = (M = (T = b == null ? void 0 : b.marker) == null ? void 0 : T.getLatLng) == null ? void 0 : M.call(T)) != null ? S : (I = (_ = b == null ? void 0 : b.poly) == null ? void 0 : _.getCenter) == null ? void 0 : I.call(_)
6404
+ (S = (M = (_ = b == null ? void 0 : b.marker) == null ? void 0 : _.getLatLng) == null ? void 0 : M.call(_)) != null ? S : (I = (T = b == null ? void 0 : b.poly) == null ? void 0 : T.getCenter) == null ? void 0 : I.call(T)
6366
6405
  );
6367
6406
  }, u = () => {
6368
6407
  n(), this.hideLiveOverlays();
@@ -6438,7 +6477,7 @@ class Ga {
6438
6477
  this.activeCakeSession && this.emitCakeEvent("tool:layer-cake:cancelled"), (o = this.activeCakeSession) == null || o.destroy();
6439
6478
  } catch {
6440
6479
  }
6441
- this.cakeSessionCommand = this.activeToolCommand, this.activeCakeSession = new ui(
6480
+ this.cakeSessionCommand = this.activeToolCommand, this.activeCakeSession = new pi(
6442
6481
  this.map,
6443
6482
  l,
6444
6483
  (g) => {
@@ -6458,9 +6497,9 @@ class Ga {
6458
6497
  }), b = this.L.geoJSON(g);
6459
6498
  let A = 0;
6460
6499
  b.eachLayer((E) => {
6461
- var C, T, M;
6500
+ var C, _, M;
6462
6501
  const L = (C = m[A]) != null ? C : m[m.length - 1];
6463
- E._fid = L, this.featureLayers.set(L, E), this.drawnItems.addLayer(E), this.installVertexContextMenu(E), (M = (T = this.options.callbacks) == null ? void 0 : T.onCreated) == null || M.call(T, {
6502
+ E._fid = L, this.featureLayers.set(L, E), this.drawnItems.addLayer(E), this.installVertexContextMenu(E), (M = (_ = this.options.callbacks) == null ? void 0 : _.onCreated) == null || M.call(_, {
6464
6503
  id: L,
6465
6504
  layerType: "polygon",
6466
6505
  geoJSON: E.toGeoJSON()
@@ -6500,7 +6539,7 @@ class Ga {
6500
6539
  name: `${c} layer`,
6501
6540
  kind: "drawn"
6502
6541
  }), this.applyLayerRegistry(), (n = (a = this.options.callbacks) == null ? void 0 : a.onCreated) == null || n.call(a, { id: h, layerType: c, geoJSON: u });
6503
- const f = Ua[c];
6542
+ const f = Va[c];
6504
6543
  f && this.emitToolEvent(f, {
6505
6544
  id: h,
6506
6545
  geoJSON: u
@@ -6813,7 +6852,7 @@ class Ga {
6813
6852
  }
6814
6853
  }
6815
6854
  }
6816
- const qo = [25, 41], Jo = [12, 41], Vo = [1, -34];
6855
+ const Jo = [25, 41], jo = [12, 41], Zo = [1, -34];
6817
6856
  function se(i, t) {
6818
6857
  var o, r, a, n;
6819
6858
  if (i == null)
@@ -6849,7 +6888,7 @@ function tt(i, t, e) {
6849
6888
  const a = Number((u = r[0]) == null ? void 0 : u.trim()), n = Number((d = r[1]) == null ? void 0 : d.trim());
6850
6889
  return Number.isFinite(a) && Number.isFinite(n) && (!e.positiveOnly || a > 0 && n > 0) ? [a, n] : ((h = e.reportError) == null || h.call(e, e.errorMessage, e.cause), [...t]);
6851
6890
  }
6852
- function Ha(i, t = {}) {
6891
+ function Ja(i, t = {}) {
6853
6892
  var a, n;
6854
6893
  if (!i || typeof i != "object")
6855
6894
  return null;
@@ -6873,7 +6912,7 @@ function Ha(i, t = {}) {
6873
6912
  iconUrl: e,
6874
6913
  iconRetinaUrl: o,
6875
6914
  shadowUrl: r,
6876
- iconSize: et(i.iconSize, qo, {
6915
+ iconSize: et(i.iconSize, Jo, {
6877
6916
  ...t,
6878
6917
  positiveOnly: !0,
6879
6918
  errorMessage: "Invalid marker icon config: iconSize must be a [width, height] tuple of positive finite numbers",
@@ -6881,7 +6920,7 @@ function Ha(i, t = {}) {
6881
6920
  }),
6882
6921
  iconAnchor: et(
6883
6922
  i.iconAnchor,
6884
- Jo,
6923
+ jo,
6885
6924
  {
6886
6925
  ...t,
6887
6926
  errorMessage: "Invalid marker icon config: iconAnchor must be a [x, y] tuple of finite numbers",
@@ -6890,7 +6929,7 @@ function Ha(i, t = {}) {
6890
6929
  ),
6891
6930
  popupAnchor: et(
6892
6931
  i.popupAnchor,
6893
- Vo,
6932
+ Zo,
6894
6933
  {
6895
6934
  ...t,
6896
6935
  errorMessage: "Invalid marker icon config: popupAnchor must be a [x, y] tuple of finite numbers",
@@ -6899,7 +6938,7 @@ function Ha(i, t = {}) {
6899
6938
  )
6900
6939
  };
6901
6940
  }
6902
- function qa(i, t = {}) {
6941
+ function ja(i, t = {}) {
6903
6942
  var a, n;
6904
6943
  const e = se(i.iconUrl, {
6905
6944
  ...t,
@@ -6926,7 +6965,7 @@ function qa(i, t = {}) {
6926
6965
  shadowUrl: r,
6927
6966
  iconSize: tt(
6928
6967
  i.iconSize,
6929
- qo,
6968
+ Jo,
6930
6969
  {
6931
6970
  ...t,
6932
6971
  positiveOnly: !0,
@@ -6939,7 +6978,7 @@ function qa(i, t = {}) {
6939
6978
  ),
6940
6979
  iconAnchor: tt(
6941
6980
  i.iconAnchor,
6942
- Jo,
6981
+ jo,
6943
6982
  {
6944
6983
  ...t,
6945
6984
  errorMessage: 'Invalid "marker-icon-anchor" attribute; using the default marker anchor',
@@ -6951,7 +6990,7 @@ function qa(i, t = {}) {
6951
6990
  ),
6952
6991
  popupAnchor: tt(
6953
6992
  i.popupAnchor,
6954
- Vo,
6993
+ Zo,
6955
6994
  {
6956
6995
  ...t,
6957
6996
  errorMessage: 'Invalid "marker-popup-anchor" attribute; using the default popup anchor',
@@ -6963,7 +7002,7 @@ function qa(i, t = {}) {
6963
7002
  )
6964
7003
  };
6965
7004
  }
6966
- class jo extends HTMLElement {
7005
+ class Ko extends HTMLElement {
6967
7006
  constructor() {
6968
7007
  super();
6969
7008
  // Shadow DOM and container references
@@ -6975,6 +7014,7 @@ class jo extends HTMLElement {
6975
7014
  w(this, "_latitude", 0);
6976
7015
  w(this, "_longitude", 0);
6977
7016
  w(this, "_zoom", 2);
7017
+ w(this, "_reflectingView", !1);
6978
7018
  w(this, "_minZoom");
6979
7019
  w(this, "_maxZoom");
6980
7020
  w(this, "_tileUrl", "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png");
@@ -6996,6 +7036,8 @@ class jo extends HTMLElement {
6996
7036
  w(this, "_themeStyleEl", null);
6997
7037
  // Controller
6998
7038
  w(this, "_controller", null);
7039
+ w(this, "_geocodingProvider");
7040
+ w(this, "_geocodingLifetime");
6999
7041
  // External Leaflet configuration
7000
7042
  w(this, "_useExternalLeaflet", !1);
7001
7043
  w(this, "_skipLeafletStyles", !1);
@@ -7082,7 +7124,7 @@ class jo extends HTMLElement {
7082
7124
  );
7083
7125
  });
7084
7126
  });
7085
- this._root = this.attachShadow({ mode: "open" }), this._root.innerHTML = `
7127
+ Object.prototype.hasOwnProperty.call(this, "geocodingProvider") && (this._geocodingProvider = this.geocodingProvider, Reflect.deleteProperty(this, "geocodingProvider")), this._root = this.attachShadow({ mode: "open" }), this._root.innerHTML = `
7086
7128
  <style>
7087
7129
  :host {
7088
7130
  display: block;
@@ -7103,6 +7145,27 @@ class jo extends HTMLElement {
7103
7145
  const o = this.getAttribute("log-level");
7104
7146
  o && (this._logLevel = o, this._logger.setLevel(o));
7105
7147
  }
7148
+ get geocodingProvider() {
7149
+ return this._geocodingProvider;
7150
+ }
7151
+ set geocodingProvider(e) {
7152
+ this._geocodingProvider = e, this._syncGeocoding();
7153
+ }
7154
+ _syncGeocoding() {
7155
+ var o;
7156
+ if ((o = this._geocodingLifetime) == null || o.abort(), this._geocodingLifetime = void 0, !this.isConnected || !this._status.ready || !this.hasAttribute("geocoding"))
7157
+ return;
7158
+ const e = this._geocodingLifetime = new AbortController();
7159
+ import("../geocoding-control.js").then(({ mountGeocoding: r }) => {
7160
+ e.signal.aborted || r(this, e.signal);
7161
+ }).catch(() => {
7162
+ e.signal.aborted || this.dispatchEvent(
7163
+ new CustomEvent(U.GeocodingError, {
7164
+ detail: { code: "load" }
7165
+ })
7166
+ );
7167
+ });
7168
+ }
7106
7169
  // Build DrawControlsConfig from boolean attributes
7107
7170
  _controlsFromAttributes() {
7108
7171
  return {
@@ -7147,11 +7210,12 @@ class jo extends HTMLElement {
7147
7210
  featureCount: 0,
7148
7211
  lastEvent: "connected",
7149
7212
  lastError: null
7150
- }), cr({
7213
+ }), ur({
7151
7214
  root: this._root,
7152
7215
  skipStyles: this._skipLeafletStyles
7153
- }), this._applyThemeStyles(), this._controller = new Ga({
7216
+ }), this._applyThemeStyles(), this._controller = new qa({
7154
7217
  container: this._container,
7218
+ lifecycleEventTarget: this,
7155
7219
  map: this._mapConfig(),
7156
7220
  controls: this._controlsFromAttributes(),
7157
7221
  readOnly: this._readOnly,
@@ -7159,7 +7223,7 @@ class jo extends HTMLElement {
7159
7223
  callbacks: {
7160
7224
  onToolCapabilitiesChanged: () => this._emitToolCapabilities(),
7161
7225
  onReady: (a) => {
7162
- this._setStatus({ state: "ready", ready: !0, busy: !1 }), this.dispatchEvent(new CustomEvent(O.Ready, { detail: a })), this._syncStatusFromController({
7226
+ this._setStatus({ state: "ready", ready: !0, busy: !1 }), this._syncGeocoding(), this.dispatchEvent(new CustomEvent(O.Ready, { detail: a })), this._syncStatusFromController({
7163
7227
  state: "ready",
7164
7228
  ready: !0,
7165
7229
  busy: !1,
@@ -7265,7 +7329,7 @@ class jo extends HTMLElement {
7265
7329
  snapping: (o = this._snapping) != null ? o : null,
7266
7330
  measurementOverlay: (r = this._measurementOverlay) != null ? r : null
7267
7331
  }), this.addEventListener(
7268
- G.ToolCommand,
7332
+ U.ToolCommand,
7269
7333
  this._externalToolCommandListener
7270
7334
  ), this.addEventListener(
7271
7335
  "leaflet-geokit:trigger-tool",
@@ -7279,8 +7343,14 @@ class jo extends HTMLElement {
7279
7343
  ), await this._controller.init(), this._status.state !== "error" && this._tileProvider && this._updateTileLayer();
7280
7344
  }
7281
7345
  async disconnectedCallback() {
7282
- this._logger.debug("disconnectedCallback"), this._activeTileProvider = "tile-url", this._providerCapabilityError = null, this._controller && (await this._controller.destroy(), this._controller = null), this._activeTool = null, this.removeEventListener(
7283
- G.ToolCommand,
7346
+ var e;
7347
+ if (this._logger.debug("disconnectedCallback"), (e = this._geocodingLifetime) == null || e.abort(), this._activeTileProvider = "tile-url", this._providerCapabilityError = null, this._controller) {
7348
+ const o = this._controller;
7349
+ if (await o.destroy(), this._controller !== o) return;
7350
+ this._controller = null;
7351
+ }
7352
+ this._activeTool = null, this.removeEventListener(
7353
+ U.ToolCommand,
7284
7354
  this._externalToolCommandListener
7285
7355
  ), this.removeEventListener(
7286
7356
  "leaflet-geokit:trigger-tool",
@@ -7328,6 +7398,11 @@ class jo extends HTMLElement {
7328
7398
  "marker-popup-anchor",
7329
7399
  "tool-button-config",
7330
7400
  "toolbar-groups",
7401
+ "geocoding",
7402
+ "geocoding-provider",
7403
+ "geocoding-options",
7404
+ "geocoding-placeholder",
7405
+ "geocoding-ingest",
7331
7406
  "theme-url",
7332
7407
  // draw controls
7333
7408
  "draw-polygon",
@@ -7345,92 +7420,99 @@ class jo extends HTMLElement {
7345
7420
  }
7346
7421
  attributeChangedCallback(e, o, r) {
7347
7422
  var a;
7348
- switch (this._logger.debug("attributeChanged", { name: e, value: r }), e) {
7349
- case "latitude":
7350
- this._latitude = this._coerceNumber(r, 0);
7351
- break;
7352
- case "longitude":
7353
- this._longitude = this._coerceNumber(r, 0);
7354
- break;
7355
- case "zoom":
7356
- this._zoom = this._coerceNumber(r, 2);
7357
- break;
7358
- case "min-zoom":
7359
- this._minZoom = r != null ? this._coerceNumber(r) : void 0;
7360
- break;
7361
- case "max-zoom":
7362
- this._maxZoom = r != null ? this._coerceNumber(r) : void 0;
7363
- break;
7364
- case "tile-url":
7365
- this._tileUrl = r != null ? r : "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", this._controller && this._updateTileLayer();
7366
- break;
7367
- case "tile-attribution":
7368
- this._tileAttribution = r != null ? r : void 0, this._controller && this._updateTileLayer();
7369
- break;
7370
- case "tile-provider":
7371
- this._tileProvider = this._normalizeText(r, {
7372
- lowercase: !0
7373
- }), this._controller && this._updateTileLayer();
7374
- break;
7375
- case "tile-style":
7376
- this._tileStyle = this._normalizeText(r), this._controller && this._updateTileLayer();
7377
- break;
7378
- case "api-key":
7379
- case "here-api-key":
7380
- this._syncApiKeyFromAttributes(), this._controller && this._updateTileLayer();
7381
- break;
7382
- case "theme-url":
7383
- this._themeUrl = r != null ? r : void 0, this.isConnected && this._applyThemeStyles();
7384
- break;
7385
- case "read-only":
7386
- this._readOnly = r !== null;
7387
- break;
7388
- case "log-level":
7389
- this._logLevel = r != null ? r : this._logLevel, this._logger.setLevel(this._logLevel);
7390
- break;
7391
- case "dev-overlay":
7392
- this._devOverlay = r !== null;
7393
- break;
7394
- case "polygon-allow-intersection":
7395
- this._polygonAllowIntersection = r !== null;
7396
- break;
7397
- case "prefer-canvas":
7398
- this._preferCanvas = r !== null;
7399
- break;
7400
- case "use-external-leaflet":
7401
- this._useExternalLeaflet = r !== null;
7402
- break;
7403
- case "skip-leaflet-styles":
7404
- this._skipLeafletStyles = r !== null;
7405
- break;
7406
- }
7407
- if (this._controller) {
7408
- if (e === "latitude" || e === "longitude" || e === "zoom")
7409
- this._controller.setView(
7410
- this._latitude,
7411
- this._longitude,
7412
- this._zoom
7413
- );
7414
- else if (this._isMarkerIconAttribute(e))
7415
- this._syncMarkerIconConfig();
7416
- else if (e === "tool-button-config")
7417
- this._syncToolButtonConfig();
7418
- else if (e === "toolbar-groups")
7419
- this._syncToolbarGroups();
7420
- else if (e === "min-zoom" || e === "max-zoom" || e === "read-only" || e === "dev-overlay" || e === "log-level" || e === "prefer-canvas" || e === "use-external-leaflet" || e === "skip-leaflet-styles" || e.startsWith("draw-") || e === "edit-features" || e === "delete-features") {
7421
- const n = this._controller;
7422
- (a = n.configure) == null || a.call(
7423
- n,
7424
- this._mapConfig(),
7425
- this._controlsFromAttributes()
7426
- ), this._configurationUpdate = this._configurationUpdate.then(async () => {
7427
- var s;
7428
- this._controller !== n || !this.isConnected || ((s = n.configure) == null || s.call(
7423
+ if (r !== o) {
7424
+ if (e === "geocoding" || e.startsWith("geocoding-")) {
7425
+ this._syncGeocoding();
7426
+ return;
7427
+ }
7428
+ switch (this._logger.debug("attributeChanged", { name: e, value: r }), e) {
7429
+ case "latitude":
7430
+ this._latitude = this._coerceNumber(r, 0);
7431
+ break;
7432
+ case "longitude":
7433
+ this._longitude = this._coerceNumber(r, 0);
7434
+ break;
7435
+ case "zoom":
7436
+ this._zoom = this._coerceNumber(r, 2);
7437
+ break;
7438
+ case "min-zoom":
7439
+ this._minZoom = r != null ? this._coerceNumber(r) : void 0;
7440
+ break;
7441
+ case "max-zoom":
7442
+ this._maxZoom = r != null ? this._coerceNumber(r) : void 0;
7443
+ break;
7444
+ case "tile-url":
7445
+ this._tileUrl = r != null ? r : "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", this._controller && this._updateTileLayer();
7446
+ break;
7447
+ case "tile-attribution":
7448
+ this._tileAttribution = r != null ? r : void 0, this._controller && this._updateTileLayer();
7449
+ break;
7450
+ case "tile-provider":
7451
+ this._tileProvider = this._normalizeText(r, {
7452
+ lowercase: !0
7453
+ }), this._controller && this._updateTileLayer();
7454
+ break;
7455
+ case "tile-style":
7456
+ this._tileStyle = this._normalizeText(r), this._controller && this._updateTileLayer();
7457
+ break;
7458
+ case "api-key":
7459
+ case "here-api-key":
7460
+ this._syncApiKeyFromAttributes(), this._controller && this._updateTileLayer();
7461
+ break;
7462
+ case "theme-url":
7463
+ this._themeUrl = r != null ? r : void 0, this.isConnected && this._applyThemeStyles();
7464
+ break;
7465
+ case "read-only":
7466
+ this._readOnly = r !== null, this._syncGeocoding();
7467
+ break;
7468
+ case "log-level":
7469
+ this._logLevel = r != null ? r : this._logLevel, this._logger.setLevel(this._logLevel);
7470
+ break;
7471
+ case "dev-overlay":
7472
+ this._devOverlay = r !== null;
7473
+ break;
7474
+ case "polygon-allow-intersection":
7475
+ this._polygonAllowIntersection = r !== null;
7476
+ break;
7477
+ case "prefer-canvas":
7478
+ this._preferCanvas = r !== null;
7479
+ break;
7480
+ case "use-external-leaflet":
7481
+ this._useExternalLeaflet = r !== null;
7482
+ break;
7483
+ case "skip-leaflet-styles":
7484
+ this._skipLeafletStyles = r !== null;
7485
+ break;
7486
+ }
7487
+ if (this._controller) {
7488
+ if (e === "latitude" || e === "longitude" || e === "zoom") {
7489
+ if (this._reflectingView) return;
7490
+ this._controller.setView(
7491
+ this._latitude,
7492
+ this._longitude,
7493
+ this._zoom
7494
+ );
7495
+ } else if (this._isMarkerIconAttribute(e))
7496
+ this._syncMarkerIconConfig();
7497
+ else if (e === "tool-button-config")
7498
+ this._syncToolButtonConfig();
7499
+ else if (e === "toolbar-groups")
7500
+ this._syncToolbarGroups();
7501
+ else if (e === "min-zoom" || e === "max-zoom" || e === "read-only" || e === "dev-overlay" || e === "log-level" || e === "prefer-canvas" || e === "use-external-leaflet" || e === "skip-leaflet-styles" || e.startsWith("draw-") || e === "edit-features" || e === "delete-features") {
7502
+ const n = this._controller;
7503
+ (a = n.configure) == null || a.call(
7429
7504
  n,
7430
7505
  this._mapConfig(),
7431
7506
  this._controlsFromAttributes()
7432
- ), await n.init(), this._tileProvider && this._updateTileLayer());
7433
- });
7507
+ ), this._configurationUpdate = this._configurationUpdate.then(async () => {
7508
+ var s;
7509
+ this._controller !== n || !this.isConnected || ((s = n.configure) == null || s.call(
7510
+ n,
7511
+ this._mapConfig(),
7512
+ this._controlsFromAttributes()
7513
+ ), await n.init(), this._tileProvider && this._updateTileLayer());
7514
+ });
7515
+ }
7434
7516
  }
7435
7517
  }
7436
7518
  }
@@ -7451,7 +7533,7 @@ class jo extends HTMLElement {
7451
7533
  style: this._tileStyle,
7452
7534
  apiKey: this._apiKey,
7453
7535
  attribution: this._tileAttribution
7454
- }, d = Ei(u);
7536
+ }, d = Mi(u);
7455
7537
  if (!d.valid) {
7456
7538
  const y = (o = d.error) != null && o.toLowerCase().includes("api key") ? "missing_api_key" : "tile_load_failed";
7457
7539
  this._handleTileProviderError(
@@ -7592,14 +7674,14 @@ class jo extends HTMLElement {
7592
7674
  return e;
7593
7675
  const o = this._activeTileProvider === "tile-url" && this._tileUrl === pt({ provider: "osm" }).urlTemplate ? "osm" : this._activeTileProvider;
7594
7676
  if (o === "osm" || o === "here") {
7595
- const s = Li({ provider: o });
7677
+ const s = _i({ provider: o });
7596
7678
  return { ...e, ...s.capabilities };
7597
7679
  }
7598
7680
  return e;
7599
7681
  }
7600
7682
  getToolCapabilities() {
7601
7683
  var o, r, a;
7602
- return { ...(a = (r = (o = this._controller) == null ? void 0 : o.getToolCapabilities) == null ? void 0 : r.call(o)) != null ? a : _o({
7684
+ return { ...(a = (r = (o = this._controller) == null ? void 0 : o.getToolCapabilities) == null ? void 0 : r.call(o)) != null ? a : So({
7603
7685
  ready: !1,
7604
7686
  readOnly: this._readOnly,
7605
7687
  controls: this._controlsFromAttributes(),
@@ -7619,7 +7701,7 @@ class jo extends HTMLElement {
7619
7701
  _emitToolCapabilities() {
7620
7702
  const e = this.getToolCapabilities(), o = JSON.stringify(e);
7621
7703
  o !== this._lastCapabilities && (this._lastCapabilities = o, this.dispatchEvent(
7622
- new CustomEvent(G.ToolCapabilitiesChanged, {
7704
+ new CustomEvent(U.ToolCapabilitiesChanged, {
7623
7705
  detail: e,
7624
7706
  bubbles: !0,
7625
7707
  composed: !0
@@ -7646,9 +7728,9 @@ class jo extends HTMLElement {
7646
7728
  if (this._markerIconConfig === null)
7647
7729
  return null;
7648
7730
  if (this._markerIconConfig !== void 0)
7649
- return Ha(this._markerIconConfig, { reportError: e });
7731
+ return Ja(this._markerIconConfig, { reportError: e });
7650
7732
  const o = this.getAttribute("marker-icon-url");
7651
- return o == null ? null : qa(
7733
+ return o == null ? null : ja(
7652
7734
  {
7653
7735
  iconUrl: o,
7654
7736
  iconRetinaUrl: this.getAttribute("marker-icon-retina-url"),
@@ -7967,7 +8049,13 @@ class jo extends HTMLElement {
7967
8049
  );
7968
8050
  }
7969
8051
  async setView(e, o, r) {
7970
- this._logger.debug("setView", { lat: e, lng: o, zoom: r }), this.latitude = e, this.longitude = o, typeof r == "number" && (this.zoom = r), this._controller && await this._controller.setView(e, o, r);
8052
+ this._logger.debug("setView", { lat: e, lng: o, zoom: r }), this._reflectingView = !0;
8053
+ try {
8054
+ this.latitude = e, this.longitude = o, typeof r == "number" && (this.zoom = r);
8055
+ } finally {
8056
+ this._reflectingView = !1;
8057
+ }
8058
+ this._controller && await this._controller.setView(e, o, r);
7971
8059
  }
7972
8060
  async exportGeoJSON(e = {}) {
7973
8061
  var n;
@@ -8052,7 +8140,7 @@ class jo extends HTMLElement {
8052
8140
  }
8053
8141
  _emitStandaloneToolFailure(e, o, r, a, n = !0) {
8054
8142
  const s = this._baseToolEventDetail(e, o, r);
8055
- n && this._emitToolLifecycleEvent(G.ToolCommand, s), this._emitToolLifecycleEvent(G.ToolFailed, {
8143
+ n && this._emitToolLifecycleEvent(U.ToolCommand, s), this._emitToolLifecycleEvent(U.ToolFailed, {
8056
8144
  ...s,
8057
8145
  reason: a,
8058
8146
  timestamp: Date.now()
@@ -8361,7 +8449,7 @@ class jo extends HTMLElement {
8361
8449
  } else this._themeStyleEl && (this._themeStyleEl.remove(), this._themeStyleEl = null);
8362
8450
  }
8363
8451
  _emitToolLifecycleEvent(e, o) {
8364
- e === G.ToolStateChanged && (this._activeTool = o.activeTool);
8452
+ e === U.ToolStateChanged && (this._activeTool = o.activeTool);
8365
8453
  const r = new CustomEvent(e, {
8366
8454
  bubbles: !0,
8367
8455
  composed: !0,
@@ -8440,13 +8528,13 @@ class jo extends HTMLElement {
8440
8528
  state: o.state
8441
8529
  };
8442
8530
  return this.dispatchEvent(
8443
- new CustomEvent(G.Diagnostic, { detail: r })
8531
+ new CustomEvent(U.Diagnostic, { detail: r })
8444
8532
  ), this._setStatus({
8445
8533
  state: o.state,
8446
8534
  ready: o.state === "ready",
8447
8535
  busy: o.state === "initializing" || o.state === "loading",
8448
8536
  featureCount: (a = o.featureCount) != null ? a : this._status.featureCount,
8449
- lastEvent: (n = o.lastEvent) != null ? n : G.Diagnostic,
8537
+ lastEvent: (n = o.lastEvent) != null ? n : U.Diagnostic,
8450
8538
  lastError: {
8451
8539
  code: r.code,
8452
8540
  message: r.message,
@@ -8463,7 +8551,7 @@ class jo extends HTMLElement {
8463
8551
  timestamp: Date.now()
8464
8552
  };
8465
8553
  this._status = o, this.dispatchEvent(
8466
- new CustomEvent(G.Status, {
8554
+ new CustomEvent(U.Status, {
8467
8555
  detail: this._cloneStatus(o)
8468
8556
  })
8469
8557
  );
@@ -8515,27 +8603,27 @@ class jo extends HTMLElement {
8515
8603
  return Number.isFinite(r) ? r : o != null ? o : NaN;
8516
8604
  }
8517
8605
  }
8518
- const po = "leaflet-geokit";
8519
- customElements.get(po) || customElements.define(po, jo);
8520
- const go = "leaflet-draw-map";
8521
- if (!customElements.get(go)) {
8522
- class i extends jo {
8606
+ const go = "leaflet-geokit";
8607
+ customElements.get(go) || customElements.define(go, Ko);
8608
+ const mo = "leaflet-draw-map";
8609
+ if (!customElements.get(mo)) {
8610
+ class i extends Ko {
8523
8611
  }
8524
- customElements.define(go, i);
8612
+ customElements.define(mo, i);
8525
8613
  }
8526
8614
  export {
8527
8615
  O as DrawEvent,
8528
- Bt as GeoJSONValidationError,
8529
- G as GeoKitEvent,
8616
+ Rt as GeoJSONValidationError,
8617
+ U as GeoKitEvent,
8530
8618
  pe as LAYER_STYLE_PRESETS,
8531
- jo as LeafletDrawMapElement,
8532
- Ci as createCustomRasterProvider,
8533
- Li as createRasterProvider,
8534
- Ri as findSnap,
8535
- Fa as formatMeasurements,
8536
- Dt as getProviderDiagnostics,
8537
- Na as measureGeoJSON,
8538
- Rt as normalizeGeoJSON,
8619
+ Ko as LeafletDrawMapElement,
8620
+ Ti as createCustomRasterProvider,
8621
+ _i as createRasterProvider,
8622
+ Ni as findSnap,
8623
+ Ha as formatMeasurements,
8624
+ zt as getProviderDiagnostics,
8625
+ Ga as measureGeoJSON,
8626
+ Dt as normalizeGeoJSON,
8539
8627
  ft as validateGeoJSON
8540
8628
  };
8541
- //# sourceMappingURL=index-CFFA4RWo.js.map
8629
+ //# sourceMappingURL=index-IL53Vgct.js.map