@florasync/leaflet-geokit 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +262 -3
  3. package/dist/django/index.js +4670 -3554
  4. package/dist/django/index.js.map +1 -1
  5. package/dist/leaflet-geokit.es.js +4512 -3396
  6. package/dist/leaflet-geokit.es.js.map +1 -1
  7. package/dist/leaflet-geokit.external.es.js +2200 -1084
  8. package/dist/leaflet-geokit.external.es.js.map +1 -1
  9. package/dist/leaflet-geokit.umd.js +17 -17
  10. package/dist/leaflet-geokit.umd.js.map +1 -1
  11. package/dist/preact/{index-CudTfo4O.js → index-x8CrGR_z.js} +2172 -1056
  12. package/dist/preact/index-x8CrGR_z.js.map +1 -0
  13. package/dist/preact/index.js +34 -32
  14. package/dist/preact/index.js.map +1 -1
  15. package/dist/preact-bundled/index.js +4732 -3614
  16. package/dist/preact-bundled/index.js.map +1 -1
  17. package/dist/react/{index-CudTfo4O.js → index-x8CrGR_z.js} +2172 -1056
  18. package/dist/react/index-x8CrGR_z.js.map +1 -0
  19. package/dist/react/index.js +35 -33
  20. package/dist/react/index.js.map +1 -1
  21. package/dist/react-bundled/index.js +4741 -3623
  22. package/dist/react-bundled/index.js.map +1 -1
  23. package/dist/types/{src/components → components}/LeafletDrawMapElement.d.ts +24 -2
  24. package/dist/types/{src/django → django}/index.d.ts +2 -2
  25. package/dist/types/external.d.ts +4 -0
  26. package/dist/types/index.d.ts +4 -0
  27. package/dist/types/{src/lib → lib}/FeatureStore.d.ts +2 -2
  28. package/dist/types/{src/lib → lib}/MapController.d.ts +41 -3
  29. package/dist/types/{src/lib → lib}/layer-cake/LayerCakeManager.d.ts +1 -1
  30. package/dist/types/lib/marker-icons.d.ts +27 -0
  31. package/dist/types/lib/tool-buttons.d.ts +11 -0
  32. package/dist/types/{src/preact → preact}/core.d.ts +6 -2
  33. package/dist/types/{src/preact → preact}/index.d.ts +1 -1
  34. package/dist/types/{src/preact-bundled → preact-bundled}/index.d.ts +3 -3
  35. package/dist/types/{src/react → react}/core.d.ts +6 -2
  36. package/dist/types/{src/react → react}/index.d.ts +1 -1
  37. package/dist/types/{src/react-bundled → react-bundled}/index.d.ts +3 -3
  38. package/dist/types/{src/types → types}/public.d.ts +115 -1
  39. package/package.json +6 -3
  40. package/dist/preact/index-CudTfo4O.js.map +0 -1
  41. package/dist/react/index-CudTfo4O.js.map +0 -1
  42. package/dist/types/e2e/component.spec.d.ts +0 -1
  43. package/dist/types/e2e/dummy.spec.d.ts +0 -1
  44. package/dist/types/e2e/tool-events-harness.spec.d.ts +0 -1
  45. package/dist/types/e2e/tool-hooks.spec.d.ts +0 -1
  46. package/dist/types/src/external.d.ts +0 -4
  47. package/dist/types/src/index.d.ts +0 -4
  48. package/dist/types/tests/bbox-more.spec.d.ts +0 -1
  49. package/dist/types/tests/component-api-more.spec.d.ts +0 -1
  50. package/dist/types/tests/component-branch-coverage.spec.d.ts +0 -1
  51. package/dist/types/tests/component-delegation.spec.d.ts +0 -1
  52. package/dist/types/tests/component-events.spec.d.ts +0 -1
  53. package/dist/types/tests/component-io.spec.d.ts +0 -1
  54. package/dist/types/tests/component-tile-provider.spec.d.ts +0 -1
  55. package/dist/types/tests/django-shim.spec.d.ts +0 -1
  56. package/dist/types/tests/draw-cake.spec.d.ts +0 -1
  57. package/dist/types/tests/draw-move.spec.d.ts +0 -1
  58. package/dist/types/tests/eachcoord.spec.d.ts +0 -1
  59. package/dist/types/tests/element.spec.d.ts +0 -1
  60. package/dist/types/tests/ensure-element.spec.d.ts +0 -1
  61. package/dist/types/tests/external-entry.spec.d.ts +0 -1
  62. package/dist/types/tests/featureStore-more.spec.d.ts +0 -1
  63. package/dist/types/tests/featureStore.spec.d.ts +0 -1
  64. package/dist/types/tests/framework-runtime-externalization.spec.d.ts +0 -1
  65. package/dist/types/tests/geodesic.spec.d.ts +0 -1
  66. package/dist/types/tests/geojson-merge.spec.d.ts +0 -1
  67. package/dist/types/tests/geojson-more.spec.d.ts +0 -1
  68. package/dist/types/tests/geojson.spec.d.ts +0 -1
  69. package/dist/types/tests/layer-cake-baker.spec.d.ts +0 -1
  70. package/dist/types/tests/layer-cake-controls.spec.d.ts +0 -1
  71. package/dist/types/tests/layer-cake-editing.spec.d.ts +0 -1
  72. package/dist/types/tests/layer-cake-manager.spec.d.ts +0 -1
  73. package/dist/types/tests/leaflet-assets.spec.d.ts +0 -1
  74. package/dist/types/tests/leaflet-draw-circle-resize-patch.spec.d.ts +0 -1
  75. package/dist/types/tests/leaflet-guards.spec.d.ts +0 -1
  76. package/dist/types/tests/logger-more.spec.d.ts +0 -1
  77. package/dist/types/tests/logger.spec.d.ts +0 -1
  78. package/dist/types/tests/map-controller.spec.d.ts +0 -1
  79. package/dist/types/tests/mapcontroller-merge.spec.d.ts +0 -1
  80. package/dist/types/tests/preact-bundled-shim.spec.d.ts +0 -1
  81. package/dist/types/tests/preact-shim.spec.d.ts +0 -1
  82. package/dist/types/tests/react-bundled-shim.spec.d.ts +0 -1
  83. package/dist/types/tests/react-shim.spec.d.ts +0 -1
  84. package/dist/types/tests/ruler.spec.d.ts +0 -1
  85. package/dist/types/tests/tile-provider-factory.spec.d.ts +0 -1
  86. package/dist/types/vite.config.d.ts +0 -2
  87. package/dist/types/vite.config.external.d.ts +0 -2
  88. package/dist/types/vite.config.preact-bundled.d.ts +0 -2
  89. package/dist/types/vite.config.preact.d.ts +0 -2
  90. package/dist/types/vite.config.react-bundled.d.ts +0 -2
  91. package/dist/types/vite.config.react.d.ts +0 -2
  92. /package/dist/types/{src/lib → lib}/TileProviderFactory.d.ts +0 -0
  93. /package/dist/types/{src/lib → lib}/draw/L.Draw.Cake.d.ts +0 -0
  94. /package/dist/types/{src/lib → lib}/draw/L.Draw.Move.d.ts +0 -0
  95. /package/dist/types/{src/lib → lib}/draw/toolbar-patch.d.ts +0 -0
  96. /package/dist/types/{src/lib → lib}/layer-cake/CakeBaker.d.ts +0 -0
  97. /package/dist/types/{src/lib → lib}/layer-cake/bindCakeControls.d.ts +0 -0
  98. /package/dist/types/{src/lib → lib}/layer-cake/ensureCircleEditable.d.ts +0 -0
  99. /package/dist/types/{src/lib → lib}/leaflet-assets.d.ts +0 -0
  100. /package/dist/types/{src/shims → shims}/ensure-element.d.ts +0 -0
  101. /package/dist/types/{src/state → state}/types.d.ts +0 -0
  102. /package/dist/types/{src/types → types}/events.d.ts +0 -0
  103. /package/dist/types/{src/utils → utils}/geodesic.d.ts +0 -0
  104. /package/dist/types/{src/utils → utils}/geojson.d.ts +0 -0
  105. /package/dist/types/{src/utils → utils}/leaflet-guards.d.ts +0 -0
  106. /package/dist/types/{src/utils → utils}/logger.d.ts +0 -0
  107. /package/dist/types/{src/utils → utils}/ruler.d.ts +0 -0
@@ -1,79 +1,79 @@
1
- var ye = Object.defineProperty;
2
- var Ae = (s, t, e) => t in s ? ye(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
3
- var h = (s, t, e) => Ae(s, typeof t != "symbol" ? t + "" : t, e);
4
- import * as v from "leaflet";
1
+ var De = Object.defineProperty;
2
+ var Ne = (i, t, e) => t in i ? De(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
+ var u = (i, t, e) => Ne(i, typeof t != "symbol" ? t + "" : t, e);
4
+ import * as x from "leaflet";
5
5
  import "leaflet-draw";
6
6
  import "leaflet-ruler";
7
- const $ = {
7
+ const ue = {
8
8
  trace: 10,
9
9
  debug: 20,
10
10
  info: 30,
11
11
  warn: 40,
12
12
  error: 50
13
13
  };
14
- function be(s, t) {
15
- return s === "silent" ? !1 : $[t] >= $[s];
14
+ function He(i, t) {
15
+ return i === "silent" ? !1 : ue[t] >= ue[i];
16
16
  }
17
- function we() {
17
+ function Fe() {
18
18
  try {
19
19
  return (/* @__PURE__ */ new Date()).toISOString();
20
20
  } catch {
21
21
  return "";
22
22
  }
23
23
  }
24
- function N(s, t = "debug", e = console) {
25
- let o = t;
26
- const r = (i) => (...n) => {
24
+ function G(i, t = "debug", e = console) {
25
+ let r = t;
26
+ const o = (n) => (...s) => {
27
27
  try {
28
- if (!be(o, i)) return;
29
- const l = `[${we()}][${s}][${i.toUpperCase()}]`, c = e[i];
30
- typeof c == "function" ? c(l, ...n) : e.log(l, ...n);
28
+ if (!He(r, n)) return;
29
+ const l = `[${Fe()}][${i}][${n.toUpperCase()}]`, c = e[n];
30
+ typeof c == "function" ? c(l, ...s) : e.log(l, ...s);
31
31
  } catch {
32
32
  }
33
33
  };
34
34
  return {
35
35
  get level() {
36
- return o;
36
+ return r;
37
37
  },
38
- setLevel(i) {
39
- o = i;
38
+ setLevel(n) {
39
+ r = n;
40
40
  },
41
- trace: r("trace"),
42
- debug: r("debug"),
43
- info: r("info"),
44
- warn: r("warn"),
45
- error: r("error"),
46
- child(i) {
47
- return N(`${s}:${i}`, o, e);
41
+ trace: o("trace"),
42
+ debug: o("debug"),
43
+ info: o("info"),
44
+ warn: o("warn"),
45
+ error: o("error"),
46
+ child(n) {
47
+ return G(`${i}:${n}`, r, e);
48
48
  }
49
49
  };
50
50
  }
51
- const xe = '.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+HEa73u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8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+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}}', ve = `.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+HNzs5eKR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O/aTQaf1BKfbd9X7RTGIaHmPlcnPNYsVZYSikOw7AB4CAzj/f19e1fjwOMnueVEeMxJJfLbYqCNT093TDGHAGw0qHYBQBH0vj+Pc+bYOb3HFRk5nHf9yeTzgfgMhF9uEvMTQD+71/vR3pqvJOTk28AeBJAeXR09P1LxbiuuxfA9wB8LU6fsVdYrUOhtm0fTusxcAlMRN+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,iVBORw0KGgoAAAANSUhEUgAAAlgAAAA8CAYAAAC6nMS5AAA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Wr1czvbtzGt3r5zGRwc7FPV3ap6y0L7ishPAHx63bp1e/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}`, ke = ".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////AAAAAAAAAAAAAAAAAAAzABcXABQUABIkDhwrAA0aA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sX5/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/gAAAACXBIWXMAAACmAAAApgHdff84AAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAn9QTFRF////AAAAAAAAAAAAAAAAAAAzABcXABQUABIkDhwrAA0aAAwYABUgABQfABIbABAZAA8fABUcABMaABMfABIeABEcABAbABQeABMdABIdABEbABIbABIbABEdABEcABIcBxsoABEdABIdABIdABEcABMbABMdFBwgERofAhIbEhsfAhIdBxUeEhsgEBofAhMbAhMdBRMdAhIbAhIdAhMdCRceARIcDBgfDBgfDBcfDBcfFhwgDBceDBceCxceFCs5HTdGAxMcDxofGTFAHDRDHDVDHDVEHTZFDRkfEBofERogCh0oERsgARIcEhsfEhsgCh4pDCEsDRkfDRkfEBofBhQdDSMvDRgfDBgfCBUeBxUeDyUyECYzUDktPTAqCRceCRYeChYeDxkfEBkgLCgmWj4wCBYdW0AwGh4hHCAiHSAiTDctBhUdB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JIMuplJ0HigYs3b906UwFJgtGzxY6FLWDe0mXLli3wVoEAaZAMjxoLA6eDu5urq4uziTEEqAIAvamx163e5EoAAAAASUVORK5CYII=);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}", Le = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi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KWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=", Me = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC", Ce = "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", le = "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", _e = "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", Ie = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAACmAAAApgHdff84AAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAn9QTFRF////AAAAAAAAAAAAAAAAAAAzABcXABQUABIkDhwrAA0aAAwYABUgABQfABIbABAZAA8fABUcABMaABMfABIeABEcABAbABQeABMdABIdABEbABIbABIbABEdABEcABIcBxsoABEdABIdABIdABEcABMbABMdFBwgERofAhIbEhsfAhIdBxUeEhsgEBofAhMbAhMdBRMdAhIbAhIdAhMdCRceARIcDBgfDBgfDBcfDBcfFhwgDBceDBceCxceFCs5HTdGAxMcDxofGTFAHDRDHDVDHDVEHTZFDRkfEBofERogCh0oERsgARIcEhsfEhsgCh4pDCEsDRkfDRkfEBofBhQdDSMvDRgfDBgfCBUeBxUe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kMUZZOOuXOmYiinOwF63/8QVsDgLd0wnFwMCOM3dBhK3ZeGOXjzLHklCIu8oRDxs8eaNXYJIMuplJ0HigYs3b906UwFJgtGzxY6FLWDe0mXLli3wVoEAaZAMjxoLA6eDu5urq4uziTEEqAIAvamx163e5EoAAAAASUVORK5CYII=";
52
- function Be(s) {
51
+ const Ge = '.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,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQA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jvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/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/lWnXr337j3nPCe85NcypgSFdugCpW5YoDA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ofEmf2++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}}', Ve = `.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,iVBORw0KGgoAAAANSUhEUgAAASwAAAAeCAYAAACWuCNnAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAG7AAABuwBHnU4NQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAbvS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mx5519zmPl0vV5/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+9sVQkxoRKoammBqqpbk6uT5mLfvHPn42yn1VFRVCEhoFH5IYpoSaUCKi1NcGkcfrbCVRFKEwG2aHLn83pmLvY2CTqT1AmCOBE0EOT4B0nBPw/snb2dp3/sLr6s77i923dud/a+H8ny7tzMo8f3eud99p133gGIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiFYGaXYCRETUPMYYrWe/MAzZX2QQ27d5OpqdABFROxgZGVlz5cqVrzuOc18QBJPN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VDqA8qrwL8Rx/E6b+VkvsGqfZ9ROlwXnEkXRfgDfajCMXrx48Yc28iH7crncSVXdrKpPLvZYEXk6SZItURS1/PIMcwmC4KzjOCMAam9dn+0SgJ35fP4ny5SWDQ/Mer3HGLPoTtgYMyIiv3gOmqpmZfRuJWD7rgwax/G7UH7EzcYkSf7bGHNXX1/f6oUO9H1/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}`, Je = ".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////AAAAAAAAAAAAAAAAAAAzABcXABQUABIkDhwrAA0aAAwYABUgABQfABIbABAZAA8fABUcABMaABMfABIeABEcABAbABQeABMdABIdABEbABIbABIbABEdABEcABIcBxsoABEdABIdABIdABEcABMbABMdFBwgERofAhIbEhsfAhIdBxUeEhsgEBofAhMbAhMdBRMdAhIbAhIdAhMdCRceARIcDBgfDBgfDBcfDBcfFhwgDBceDBceCxceFCs5HTdGAxMcDxofGTFAHDRDHDVDHDVEHTZFDRkfEBofERogCh0oERsgARIcEhsfEhsgCh4pDCEsDRkfDRkfEBofBhQdDSMvDRgfDBgfCBUeBxUeDyUyECYzUDktPTAqCRceCRYeChYeDxkfEBkgLCgmWj4wCBYdW0AwGh4hHCAiHSAiTDctBhUdBxYdEBkfLyonMConBhUdJiUkLCclLSgmLigmOzApPTEpDBgfBRQdDBgfERsgWT8wBBMdCBYeChceQjMrSzctZE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oAAAAASUVORK5CYII=)}.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}", Ze = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJ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HtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC", qe = "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", xe = "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", Ke = "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/dTVAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE3LTA1LTEwVDEyOjMwOjE0KzAyOjAwUNH5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S8ItT841T9I1T9o5U949U+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=";
52
+ function Xe(i) {
53
53
  const t = "data-leaflet-styles";
54
- if (s.querySelector(`style[${t}]`)) return;
54
+ if (i.querySelector(`style[${t}]`)) return;
55
55
  const e = document.createElement("style");
56
56
  e.setAttribute(t, "true"), e.textContent = `
57
57
  /* --- Leaflet core CSS --- */
58
- ${xe}
58
+ ${Ge}
59
59
 
60
60
  /* --- Leaflet.draw CSS --- */
61
- ${ve}
61
+ ${Ve}
62
62
 
63
63
  /* --- Leaflet.ruler CSS --- */
64
- ${ke}
64
+ ${Je}
65
65
 
66
66
  /* --- Fix Leaflet.ruler icons (broken relative paths in inlined CSS) --- */
67
67
  .leaflet-ruler {
68
68
  width: 30px !important; /* Match Leaflet Draw default size approx */
69
69
  height: 30px !important;
70
70
  background-color: #fff; /* Ensure visibility */
71
- background-image: url(${_e}) !important;
71
+ background-image: url(${Ke}) !important;
72
72
  background-size: 16px 16px; /* Scale icon to fit */
73
73
  }
74
74
  .leaflet-ruler:hover,
75
75
  .leaflet-ruler-clicked {
76
- background-image: url(${Ie}) !important;
76
+ background-image: url(${Qe}) !important;
77
77
  }
78
78
 
79
79
  /* --- Custom overrides for marker/handle sizes --- */
@@ -103,7 +103,7 @@ ${ke}
103
103
  padding: 0;
104
104
  border-radius: 4px;
105
105
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
106
- background-image: url(${Ce});
106
+ background-image: url(${qe});
107
107
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
108
108
  }
109
109
  .leaflet-ruler-settings-button:hover {
@@ -187,7 +187,7 @@ ${ke}
187
187
 
188
188
  /* --- Layer Cake draw tool icon + manager UI --- */
189
189
  .leaflet-draw-toolbar a.leaflet-draw-draw-cake {
190
- background-image: url(${le}) !important;
190
+ background-image: url(${xe}) !important;
191
191
  background-size: 18px 18px !important;
192
192
  background-position: 50% 50% !important;
193
193
  background-repeat: no-repeat !important;
@@ -245,204 +245,205 @@ ${ke}
245
245
  .leaflet-draw-move-mode .leaflet-interactive:active {
246
246
  cursor: grabbing !important;
247
247
  }
248
- `, s.appendChild(e);
248
+ `, i.appendChild(e);
249
249
  }
250
- function Se(s) {
250
+ function We(i) {
251
251
  const t = "data-leaflet-custom-styles";
252
- if (s.querySelector(`style[${t}]`)) return;
252
+ if (i.querySelector(`style[${t}]`)) return;
253
253
  const e = document.createElement("style");
254
254
  e.setAttribute(t, "true"), e.textContent = `
255
255
  /* Ensure Layer Cake toolbar icon uses project asset instead of draw sprite sheet */
256
256
  .leaflet-draw-toolbar a.leaflet-draw-draw-cake {
257
- background-image: url(${le}) !important;
257
+ background-image: url(${xe}) !important;
258
258
  background-size: 18px 18px !important;
259
259
  background-position: 50% 50% !important;
260
260
  background-repeat: no-repeat !important;
261
261
  background-color: #fff;
262
262
  }
263
- `, s.appendChild(e);
263
+ `, i.appendChild(e);
264
264
  }
265
- function ze() {
266
- var s, t;
267
- (t = (s = v.Icon.Default).mergeOptions) == null || t.call(s, {
268
- iconRetinaUrl: Le,
269
- iconUrl: Ee,
270
- shadowUrl: Me
265
+ function $e() {
266
+ var i, t;
267
+ (t = (i = x.Icon.Default).mergeOptions) == null || t.call(i, {
268
+ iconRetinaUrl: Ze,
269
+ iconUrl: je,
270
+ shadowUrl: Ye
271
271
  });
272
272
  }
273
- function Oe(s) {
274
- const { root: t, skipStyles: e } = s;
273
+ function et(i) {
274
+ const { root: t, skipStyles: e } = i;
275
275
  try {
276
- e || (Be(t), ze()), Se(t);
276
+ e || (Xe(t), $e()), We(t);
277
277
  } catch {
278
278
  }
279
279
  }
280
- let T;
281
- const Te = new Uint8Array(16);
282
- function Re() {
283
- if (!T && (T = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !T))
280
+ let U;
281
+ const tt = new Uint8Array(16);
282
+ function rt() {
283
+ if (!U && (U = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !U))
284
284
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
285
- return T(Te);
285
+ return U(tt);
286
286
  }
287
- const E = [];
288
- for (let s = 0; s < 256; ++s)
289
- E.push((s + 256).toString(16).slice(1));
290
- function De(s, t = 0) {
291
- return E[s[t + 0]] + E[s[t + 1]] + E[s[t + 2]] + E[s[t + 3]] + "-" + E[s[t + 4]] + E[s[t + 5]] + "-" + E[s[t + 6]] + E[s[t + 7]] + "-" + E[s[t + 8]] + E[s[t + 9]] + "-" + E[s[t + 10]] + E[s[t + 11]] + E[s[t + 12]] + E[s[t + 13]] + E[s[t + 14]] + E[s[t + 15]];
287
+ const L = [];
288
+ for (let i = 0; i < 256; ++i)
289
+ L.push((i + 256).toString(16).slice(1));
290
+ function ot(i, t = 0) {
291
+ return L[i[t + 0]] + L[i[t + 1]] + L[i[t + 2]] + L[i[t + 3]] + "-" + L[i[t + 4]] + L[i[t + 5]] + "-" + L[i[t + 6]] + L[i[t + 7]] + "-" + L[i[t + 8]] + L[i[t + 9]] + "-" + L[i[t + 10]] + L[i[t + 11]] + L[i[t + 12]] + L[i[t + 13]] + L[i[t + 14]] + L[i[t + 15]];
292
292
  }
293
- const Ue = typeof crypto != "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ee = {
294
- randomUUID: Ue
293
+ const it = typeof crypto != "undefined" && crypto.randomUUID && crypto.randomUUID.bind(crypto), he = {
294
+ randomUUID: it
295
295
  };
296
- function q(s, t, e) {
297
- if (ee.randomUUID && !s)
298
- return ee.randomUUID();
299
- s = s || {};
300
- const o = s.random || (s.rng || Re)();
301
- return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, De(o);
302
- }
303
- function Pe(s) {
304
- var e, o;
305
- const t = (o = s.id) != null ? o : (e = s.properties) == null ? void 0 : e.id;
296
+ function ne(i, t, e) {
297
+ if (he.randomUUID && !i)
298
+ return he.randomUUID();
299
+ i = i || {};
300
+ const r = i.random || (i.rng || rt)();
301
+ return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, ot(r);
302
+ }
303
+ function se(i) {
304
+ var e, r;
305
+ const t = (r = i.id) != null ? r : (e = i.properties) == null ? void 0 : e.id;
306
306
  if (t != null)
307
307
  return String(t);
308
308
  }
309
- function Ne(s, t) {
310
- const e = (o) => {
311
- switch (o.type) {
309
+ function at(i, t) {
310
+ const e = (r) => {
311
+ switch (r.type) {
312
312
  case "Point":
313
- t(o.coordinates);
313
+ t(r.coordinates);
314
314
  break;
315
315
  case "MultiPoint":
316
316
  case "LineString":
317
- for (const r of o.coordinates) t(r);
317
+ for (const o of r.coordinates) t(o);
318
318
  break;
319
319
  case "MultiLineString":
320
320
  case "Polygon":
321
- for (const r of o.coordinates)
322
- for (const a of r) t(a);
321
+ for (const o of r.coordinates)
322
+ for (const a of o) t(a);
323
323
  break;
324
324
  case "MultiPolygon":
325
- for (const r of o.coordinates)
326
- for (const a of r)
327
- for (const i of a) t(i);
325
+ for (const o of r.coordinates)
326
+ for (const a of o)
327
+ for (const n of a) t(n);
328
328
  break;
329
329
  case "GeometryCollection":
330
- for (const r of o.geometries) e(r);
330
+ for (const o of r.geometries) e(o);
331
331
  break;
332
332
  }
333
333
  };
334
- e(s);
334
+ e(i);
335
335
  }
336
- function He(s) {
337
- const t = s.geometry;
336
+ function nt(i) {
337
+ const t = i.geometry;
338
338
  if (!t) return null;
339
- let e = 1 / 0, o = 1 / 0, r = -1 / 0, a = -1 / 0, i = !1;
340
- return Ne(t, (n) => {
341
- const [l, c] = n;
342
- typeof l != "number" || typeof c != "number" || (i = !0, l < e && (e = l), c < o && (o = c), l > r && (r = l), c > a && (a = c));
343
- }), i ? [e, o, r, a] : null;
344
- }
345
- function Fe(s) {
346
- let t = 1 / 0, e = 1 / 0, o = -1 / 0, r = -1 / 0, a = !1;
347
- for (const i of s.features) {
348
- const n = He(i);
349
- n && (a = !0, t = Math.min(t, n[0]), e = Math.min(e, n[1]), o = Math.max(o, n[2]), r = Math.max(r, n[3]));
350
- }
351
- return a ? [t, e, o, r] : null;
352
- }
353
- function Ve(s) {
354
- const [t, e, o, r] = s;
339
+ let e = 1 / 0, r = 1 / 0, o = -1 / 0, a = -1 / 0, n = !1;
340
+ return at(t, (s) => {
341
+ const [l, c] = s;
342
+ typeof l != "number" || typeof c != "number" || (n = !0, l < e && (e = l), c < r && (r = c), l > o && (o = l), c > a && (a = c));
343
+ }), n ? [e, r, o, a] : null;
344
+ }
345
+ function st(i) {
346
+ let t = 1 / 0, e = 1 / 0, r = -1 / 0, o = -1 / 0, a = !1;
347
+ for (const n of i.features) {
348
+ const s = nt(n);
349
+ s && (a = !0, t = Math.min(t, s[0]), e = Math.min(e, s[1]), r = Math.max(r, s[2]), o = Math.max(o, s[3]));
350
+ }
351
+ return a ? [t, e, r, o] : null;
352
+ }
353
+ function lt(i) {
354
+ const [t, e, r, o] = i;
355
355
  return [
356
356
  [e, t],
357
- [r, o]
357
+ [o, r]
358
358
  ];
359
359
  }
360
- function te(s) {
360
+ function pe(i) {
361
361
  var e;
362
362
  const t = [];
363
- for (const o of s.features) {
364
- if (!o || o.type !== "Feature") continue;
365
- const r = (e = o.properties) != null ? e : {}, a = o.geometry;
366
- if (a)
367
- switch (a.type) {
363
+ for (const r of i.features) {
364
+ if (!r || r.type !== "Feature") continue;
365
+ const o = (e = r.properties) != null ? e : {}, a = se(r), n = (l, c) => {
366
+ const d = o && typeof o == "object" ? { ...o } : {}, h = a !== void 0 ? `${a}::${c}` : void 0;
367
+ return h !== void 0 && (d.id = h), {
368
+ type: "Feature",
369
+ id: h,
370
+ properties: d,
371
+ geometry: l
372
+ };
373
+ }, s = r.geometry;
374
+ if (s)
375
+ switch (s.type) {
368
376
  case "MultiPolygon":
369
- for (const i of a.coordinates)
370
- t.push({
371
- type: "Feature",
372
- properties: { ...r },
373
- geometry: { type: "Polygon", coordinates: i }
374
- });
377
+ for (const [l, c] of s.coordinates.entries())
378
+ t.push(
379
+ n({ type: "Polygon", coordinates: c }, l)
380
+ );
375
381
  break;
376
382
  case "MultiLineString":
377
- for (const i of a.coordinates)
378
- t.push({
379
- type: "Feature",
380
- properties: { ...r },
381
- geometry: { type: "LineString", coordinates: i }
382
- });
383
+ for (const [l, c] of s.coordinates.entries())
384
+ t.push(
385
+ n(
386
+ { type: "LineString", coordinates: c },
387
+ l
388
+ )
389
+ );
383
390
  break;
384
391
  case "MultiPoint":
385
- for (const i of a.coordinates)
386
- t.push({
387
- type: "Feature",
388
- properties: { ...r },
389
- geometry: { type: "Point", coordinates: i }
390
- });
392
+ for (const [l, c] of s.coordinates.entries())
393
+ t.push(
394
+ n({ type: "Point", coordinates: c }, l)
395
+ );
391
396
  break;
392
397
  case "GeometryCollection":
393
- for (const i of a.geometries)
394
- t.push({
395
- type: "Feature",
396
- properties: { ...r },
397
- geometry: i
398
- });
398
+ for (const [l, c] of s.geometries.entries())
399
+ t.push(n(c, l));
399
400
  break;
400
401
  default:
401
- t.push(o);
402
+ t.push(r);
402
403
  break;
403
404
  }
404
405
  }
405
406
  return { type: "FeatureCollection", features: t };
406
407
  }
407
- function ce(s) {
408
- return (s == null ? void 0 : s.type) === "Polygon";
408
+ function ke(i) {
409
+ return (i == null ? void 0 : i.type) === "Polygon";
409
410
  }
410
- function de(s) {
411
- return (s == null ? void 0 : s.type) === "MultiPolygon";
411
+ function Ee(i) {
412
+ return (i == null ? void 0 : i.type) === "MultiPolygon";
412
413
  }
413
- function Ge(s) {
414
- const t = s.geometry;
415
- return t ? ce(t) ? [t.coordinates] : de(t) ? t.coordinates : [] : [];
414
+ function ct(i) {
415
+ const t = i.geometry;
416
+ return t ? ke(t) ? [t.coordinates] : Ee(t) ? t.coordinates : [] : [];
416
417
  }
417
- function Je(s, t) {
418
- var r, a;
418
+ function dt(i, t) {
419
+ var o, a;
419
420
  const e = [];
420
- for (const i of s) {
421
- const n = Ge(i);
422
- n.length > 0 && e.push(...n);
421
+ for (const n of i) {
422
+ const s = ct(n);
423
+ s.length > 0 && e.push(...s);
423
424
  }
424
425
  if (e.length === 0) return null;
425
- const o = (a = t != null ? t : (r = s[0]) == null ? void 0 : r.properties) != null ? a : {};
426
+ const r = (a = t != null ? t : (o = i[0]) == null ? void 0 : o.properties) != null ? a : {};
426
427
  return e.length === 1 ? {
427
428
  type: "Feature",
428
- properties: { ...o },
429
+ properties: { ...r },
429
430
  geometry: {
430
431
  type: "Polygon",
431
432
  coordinates: e[0]
432
433
  }
433
434
  } : {
434
435
  type: "Feature",
435
- properties: { ...o },
436
+ properties: { ...r },
436
437
  geometry: {
437
438
  type: "MultiPolygon",
438
439
  coordinates: e
439
440
  }
440
441
  };
441
442
  }
442
- class Ze {
443
- constructor(t = N("feature-store", "debug")) {
444
- h(this, "log");
445
- h(this, "features");
443
+ class ut {
444
+ constructor(t = G("feature-store", "debug")) {
445
+ u(this, "log");
446
+ u(this, "features");
446
447
  this.log = t, this.features = /* @__PURE__ */ new Map();
447
448
  }
448
449
  size() {
@@ -458,17 +459,17 @@ class Ze {
458
459
  * Add features to the store; returns the assigned/normalized ids in order.
459
460
  */
460
461
  add(t) {
461
- var a, i, n, l;
462
- const e = [], o = (i = (a = performance.now) == null ? void 0 : a.call(performance)) != null ? i : Date.now();
462
+ var a, n, s, l;
463
+ const e = [], r = (n = (a = performance.now) == null ? void 0 : a.call(performance)) != null ? n : Date.now();
463
464
  for (const c of t.features) {
464
- const d = this.ensureId(c), u = { ...c, id: d };
465
- this.features.set(d, u), e.push(d);
465
+ const d = this.ensureId(c), h = { ...c, id: d };
466
+ this.features.set(d, h), e.push(d);
466
467
  }
467
- const r = ((l = (n = performance.now) == null ? void 0 : n.call(performance)) != null ? l : Date.now()) - o;
468
+ const o = ((l = (s = performance.now) == null ? void 0 : s.call(performance)) != null ? l : Date.now()) - r;
468
469
  return this.log.debug("add", {
469
470
  count: t.features.length,
470
471
  ids: e,
471
- elapsedMs: Math.round(r)
472
+ elapsedMs: Math.round(o)
472
473
  }), e;
473
474
  }
474
475
  /**
@@ -480,8 +481,8 @@ class Ze {
480
481
  this.log.warn("update:missing", { id: t });
481
482
  return;
482
483
  }
483
- const o = { ...e, id: t };
484
- this.features.set(t, o), this.log.debug("update", { id: t });
484
+ const r = { ...e, id: t };
485
+ this.features.set(t, r), this.log.debug("update", { id: t });
485
486
  }
486
487
  /**
487
488
  * Remove a feature by id. No-op if missing.
@@ -511,53 +512,438 @@ class Ze {
511
512
  bounds() {
512
513
  const t = this.toFeatureCollection();
513
514
  if (t.features.length === 0) return null;
514
- const e = Fe(t);
515
- return e ? Ve(e) : null;
515
+ const e = st(t);
516
+ return e ? lt(e) : null;
516
517
  }
517
518
  /**
518
519
  * Ensure the feature has an id; returns the resolved id.
519
520
  */
520
521
  ensureId(t) {
521
- const e = Pe(t);
522
+ const e = se(t);
522
523
  if (e) return String(e);
523
- const o = q();
524
- return t.id = o, t.properties && typeof t.properties == "object" && (t.properties.id = o), o;
524
+ const r = ne();
525
+ return t.id = r, t.properties && typeof t.properties == "object" && (t.properties.id = r), r;
525
526
  }
526
527
  }
527
- const oe = /* @__PURE__ */ new WeakSet();
528
- function Ye(s = v) {
528
+ const V = {
529
+ polygon: {
530
+ selectors: ["a.leaflet-draw-draw-polygon"],
531
+ dataTool: "polygon"
532
+ },
533
+ polyline: {
534
+ selectors: ["a.leaflet-draw-draw-polyline"],
535
+ dataTool: "polyline"
536
+ },
537
+ rectangle: {
538
+ selectors: ["a.leaflet-draw-draw-rectangle"],
539
+ dataTool: "rectangle"
540
+ },
541
+ circle: {
542
+ selectors: ["a.leaflet-draw-draw-circle"],
543
+ dataTool: "circle"
544
+ },
545
+ marker: {
546
+ selectors: ["a.leaflet-draw-draw-marker"],
547
+ dataTool: "marker"
548
+ },
549
+ layerCake: {
550
+ selectors: ["a.leaflet-draw-draw-cake"],
551
+ dataTool: "layer-cake"
552
+ },
553
+ move: {
554
+ selectors: ["a.leaflet-draw-draw-move"],
555
+ dataTool: "move"
556
+ },
557
+ select: {
558
+ selectors: [],
559
+ dataTool: "select"
560
+ },
561
+ edit: {
562
+ selectors: ["a.leaflet-draw-edit-edit"],
563
+ dataTool: "edit"
564
+ },
565
+ delete: {
566
+ selectors: ["a.leaflet-draw-edit-remove"],
567
+ dataTool: "delete"
568
+ },
569
+ ruler: {
570
+ selectors: [".leaflet-ruler", "a.leaflet-ruler"],
571
+ dataTool: "ruler"
572
+ },
573
+ measurementSettings: {
574
+ selectors: [".leaflet-ruler-settings-button"],
575
+ dataTool: "measurement-settings"
576
+ },
577
+ layerStyle: {
578
+ selectors: [],
579
+ dataTool: "layer-style"
580
+ }
581
+ }, ht = Object.keys(V), Le = "leaflet-geokit-tool-button-icon", Me = ".leaflet-geokit-cake-icon, .leaflet-geokit-move-icon", pt = "[data-geokit-managed-toolbar='true']", ft = "[data-geokit-tool-popover='true']", gt = "[data-geokit-tool][aria-expanded='true']", X = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap();
582
+ function j(i, t, e = {}) {
583
+ R(i);
584
+ for (const r of ht) {
585
+ const o = V[r];
586
+ for (const a of mt(i, o.selectors)) {
587
+ a.setAttribute("data-geokit-tool", o.dataTool), yt(a);
588
+ const n = t == null ? void 0 : t[r];
589
+ n && bt(a, n, r), Ce(a, r, {
590
+ source: "leaflet-toolbar",
591
+ activate: !1,
592
+ onTrigger: e.onTrigger
593
+ });
594
+ }
595
+ }
596
+ kt(i, t, e);
597
+ }
598
+ function mt(i, t) {
599
+ const e = /* @__PURE__ */ new Set();
600
+ for (const r of t)
601
+ i.querySelectorAll(r).forEach((o) => {
602
+ e.add(o);
603
+ });
604
+ return [...e];
605
+ }
606
+ function yt(i) {
607
+ const t = X.get(i);
608
+ t && (i.removeEventListener("click", t), X.delete(i)), delete i.__geokitToolButtonConfig;
609
+ const e = J(i.dataset.geokitToolButtonClass);
610
+ e.length > 0 && i.classList.remove(...e), delete i.dataset.geokitToolButtonClass, i.removeAttribute("data-geokit-custom-tool-button"), i.dataset.geokitOriginalTitle !== void 0 && fe(i, "title", i.dataset.geokitOriginalTitle), i.dataset.geokitOriginalAriaLabel !== void 0 && fe(
611
+ i,
612
+ "aria-label",
613
+ i.dataset.geokitOriginalAriaLabel
614
+ ), i.dataset.geokitOriginalStyleBackgroundImage !== void 0 && ge(
615
+ i,
616
+ "background-image",
617
+ i.dataset.geokitOriginalStyleBackgroundImage,
618
+ i.dataset.geokitOriginalStyleBackgroundImagePriority
619
+ ), i.dataset.geokitOriginalStylePosition !== void 0 && ge(
620
+ i,
621
+ "position",
622
+ i.dataset.geokitOriginalStylePosition,
623
+ i.dataset.geokitOriginalStylePositionPriority
624
+ ), Array.from(i.children).forEach((r) => {
625
+ r instanceof HTMLElement && r.dataset.geokitToolButtonIcon === "true" && r.remove();
626
+ }), i.querySelectorAll(Me).forEach((r) => {
627
+ r.hidden = !1;
628
+ }), i.removeAttribute("aria-expanded");
629
+ }
630
+ function fe(i, t, e) {
631
+ e ? i.setAttribute(t, e) : i.removeAttribute(t);
632
+ }
633
+ function ge(i, t, e, r) {
634
+ e ? i.style.setProperty(t, e, r) : i.style.removeProperty(t);
635
+ }
636
+ function bt(i, t, e) {
637
+ var a;
638
+ At(i), i.__geokitToolButtonConfig = t, i.setAttribute("data-geokit-custom-tool-button", "true"), t.title && i.setAttribute("title", t.title);
639
+ const r = (a = t.ariaLabel) != null ? a : t.title;
640
+ r && i.setAttribute("aria-label", r);
641
+ const o = J(t.className);
642
+ o.length > 0 && (i.classList.add(...o), i.dataset.geokitToolButtonClass = o.join(" ")), t.iconUrl ? ee(i, t, { tool: e }) : (t.iconHtml || t.renderIcon) && ee(i, t, { tool: e });
643
+ }
644
+ function At(i) {
645
+ var t, e;
646
+ 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"));
647
+ }
648
+ function J(i) {
649
+ return i ? i.split(/\s+/).map((t) => t.trim()).filter(Boolean) : [];
650
+ }
651
+ function ee(i, t, e = {}) {
652
+ var l, c;
653
+ const [r, o] = wt(t.iconSize);
654
+ i.style.setProperty("background-image", "none", "important"), i.style.setProperty("position", "relative", "important"), i.querySelectorAll(Me).forEach((d) => {
655
+ d.hidden = !0;
656
+ });
657
+ const a = document.createElement("span");
658
+ a.className = Le, a.dataset.geokitToolButtonIcon = "true", a.setAttribute("aria-hidden", "true"), a.style.setProperty("position", "absolute", "important"), a.style.setProperty("display", "block", "important"), a.style.setProperty("left", "50%", "important"), a.style.setProperty("top", "50%", "important"), a.style.setProperty("width", `${r}px`, "important"), a.style.setProperty("height", `${o}px`, "important"), a.style.setProperty("transform", "translate(-50%, -50%)", "important"), a.style.setProperty("pointer-events", "none", "important");
659
+ const n = (c = t.renderIcon) == null ? void 0 : c.call(t, {
660
+ tool: (l = e.tool) != null ? l : "polygon",
661
+ groupId: e.groupId,
662
+ button: i
663
+ });
664
+ if (n instanceof HTMLElement || typeof SVGElement != "undefined" && n instanceof SVGElement)
665
+ a.appendChild(n);
666
+ else if (typeof n == "string" && n.trim())
667
+ a.innerHTML = n;
668
+ else if (t.iconHtml)
669
+ a.innerHTML = t.iconHtml;
670
+ else if (t.iconUrl) {
671
+ const d = document.createElement("img");
672
+ d.src = t.iconUrl, d.alt = "", d.decoding = "async", d.draggable = !1, d.style.setProperty("display", "block", "important"), d.style.setProperty("width", "100%", "important"), d.style.setProperty("height", "100%", "important"), d.style.setProperty("object-fit", "contain", "important"), a.appendChild(d);
673
+ }
674
+ i.appendChild(a);
675
+ }
676
+ function wt(i) {
677
+ const t = i == null ? void 0 : i[0], e = i == null ? void 0 : i[1];
678
+ return typeof t == "number" && Number.isFinite(t) && t > 0 && typeof e == "number" && Number.isFinite(e) && e > 0 ? [t, e] : [18, 18];
679
+ }
680
+ function Ce(i, t, e) {
681
+ const r = (o) => {
682
+ var s;
683
+ const a = vt(i), n = xt(i);
684
+ a != null && a.popover ? Mt(i, t, a, {
685
+ container: n,
686
+ groupId: e.groupId
687
+ }) : R(n), (s = e.onTrigger) == null || s.call(e, t, {
688
+ source: e.source,
689
+ groupId: e.groupId,
690
+ activate: e.activate
691
+ }), e.activate && (o.preventDefault(), o.stopPropagation());
692
+ };
693
+ i.addEventListener("click", r), X.set(i, r);
694
+ }
695
+ function vt(i) {
696
+ const t = i.__geokitToolButtonConfig;
697
+ if (t) return t;
698
+ const e = i.dataset.geokitToolButtonConfig;
699
+ if (!e) return null;
700
+ try {
701
+ return JSON.parse(e);
702
+ } catch {
703
+ return null;
704
+ }
705
+ }
706
+ function xt(i) {
707
+ var e;
708
+ const t = i.closest("[data-geokit-map-container]");
709
+ return (e = t != null ? t : i.parentElement) != null ? e : i;
710
+ }
711
+ function kt(i, t, e) {
529
712
  var o;
530
- if (oe.has(s)) return;
531
- const t = s.DrawToolbar;
532
- if (!((o = t == null ? void 0 : t.prototype) != null && o.getModeHandlers)) return;
713
+ i.setAttribute("data-geokit-map-container", "true"), i.querySelectorAll(pt).forEach((a) => a.remove()), ((o = e.toolbarGroups) != null ? o : []).forEach((a) => {
714
+ var l;
715
+ if (!(a != null && a.id) || !Array.isArray(a.tools) || a.tools.length === 0)
716
+ return;
717
+ const n = document.createElement("div");
718
+ n.dataset.geokitManagedToolbar = "true", n.dataset.geokitToolbarGroup = a.id, n.className = "leaflet-geokit-toolbar-group leaflet-bar", n.setAttribute("role", "toolbar"), n.setAttribute("aria-label", (l = a.ariaLabel) != null ? l : a.id), Lt(n, a.position, a.offset);
719
+ const s = J(a.className);
720
+ s.length > 0 && n.classList.add(...s), a.tools.forEach((c, d) => {
721
+ const h = Et(c, a, d, t == null ? void 0 : t[c]);
722
+ Ce(h, c, {
723
+ source: "toolbar",
724
+ activate: !0,
725
+ groupId: a.id,
726
+ onTrigger: e.onTrigger
727
+ }), n.appendChild(h);
728
+ }), i.appendChild(n);
729
+ });
730
+ }
731
+ function Et(i, t, e, r) {
732
+ var s, l, c, d, h;
733
+ const o = document.createElement("button");
734
+ o.type = "button", o.dataset.geokitTool = (l = (s = V[i]) == null ? void 0 : s.dataTool) != null ? l : i, o.dataset.geokitToolbarGroup = t.id, o.dataset.geokitToolbarPosition = (c = t.position) != null ? c : "topright", o.dataset.geokitToolInstance = _t(
735
+ t.id,
736
+ i,
737
+ e
738
+ ), o.className = "leaflet-geokit-toolbar-button", o.style.setProperty("display", "block", "important"), o.style.setProperty("width", "34px", "important"), o.style.setProperty("height", "34px", "important"), o.style.setProperty("padding", "0", "important"), o.style.setProperty("border", "0", "important"), o.style.setProperty("border-bottom", "1px solid #ccc", "important"), o.style.setProperty("background", "#fff", "important"), o.style.setProperty("cursor", "pointer", "important"), o.style.setProperty("position", "relative", "important");
739
+ const a = (d = r == null ? void 0 : r.title) != null ? d : Ie(i);
740
+ o.title = a, o.setAttribute("aria-label", (h = r == null ? void 0 : r.ariaLabel) != null ? h : a);
741
+ const n = J(r == null ? void 0 : r.className);
742
+ if (n.length > 0 && o.classList.add(...n), r && (o.__geokitToolButtonConfig = r, ee(o, r, { tool: i, groupId: t.id })), !o.querySelector(`.${Le}`)) {
743
+ const p = document.createElement("span");
744
+ p.textContent = Bt(i), p.setAttribute("aria-hidden", "true"), p.style.setProperty("display", "grid", "important"), p.style.setProperty("place-items", "center", "important"), p.style.setProperty("height", "100%", "important"), p.style.setProperty("font", "600 14px system-ui", "important"), o.appendChild(p);
745
+ }
746
+ return o;
747
+ }
748
+ function Lt(i, t = "topright", e) {
749
+ const [r, o] = St(e);
750
+ i.style.setProperty("position", "absolute", "important"), i.style.setProperty("z-index", "1000", "important"), i.style.setProperty("background", "#fff", "important"), i.style.setProperty(
751
+ "box-shadow",
752
+ "0 1px 5px rgba(0,0,0,0.35)",
753
+ "important"
754
+ );
755
+ const [a, n] = t.startsWith("bottom") ? ["bottom", t.endsWith("right") ? "right" : "left"] : ["top", t.endsWith("right") ? "right" : "left"];
756
+ i.style.setProperty(a, `${o}px`, "important"), i.style.setProperty(n, `${r}px`, "important");
757
+ }
758
+ function Mt(i, t, e, r) {
759
+ var s, l, c, d, h, p, g, m;
760
+ if (!e.popover) return;
761
+ R(r.container);
762
+ const o = document.createElement("div");
763
+ if (o.dataset.geokitToolPopover = "true", o.dataset.geokitTool = (l = (s = V[t]) == null ? void 0 : s.dataTool) != null ? l : t, i.dataset.geokitToolInstance && (o.dataset.geokitToolInstance = i.dataset.geokitToolInstance), r.groupId && (o.dataset.geokitToolbarGroup = r.groupId), o.setAttribute("role", "dialog"), o.setAttribute(
764
+ "aria-label",
765
+ (d = (c = e.popover.ariaLabel) != null ? c : e.popover.title) != null ? d : Ie(t)
766
+ ), o.style.setProperty("position", "absolute", "important"), o.style.setProperty("z-index", "10001", "important"), o.style.setProperty("max-width", "260px", "important"), o.style.setProperty("padding", "10px 12px", "important"), o.style.setProperty(
767
+ "border",
768
+ "1px solid rgba(0,0,0,0.22)",
769
+ "important"
770
+ ), o.style.setProperty("border-radius", "8px", "important"), o.style.setProperty("background", "#fff", "important"), o.style.setProperty(
771
+ "box-shadow",
772
+ "0 8px 24px rgba(0,0,0,0.24)",
773
+ "important"
774
+ ), o.style.setProperty("font", "13px system-ui, sans-serif", "important"), o.style.setProperty("line-height", "1.35", "important"), e.popover.title) {
775
+ const f = document.createElement("strong");
776
+ f.textContent = e.popover.title, f.style.setProperty("display", "block", "important"), f.style.setProperty("margin-bottom", "4px", "important"), o.appendChild(f);
777
+ }
778
+ if (e.popover.body) {
779
+ const f = document.createElement("div");
780
+ f.textContent = e.popover.body, o.appendChild(f);
781
+ }
782
+ if (e.popover.html) {
783
+ const f = document.createElement("div");
784
+ f.innerHTML = e.popover.html, o.appendChild(f);
785
+ }
786
+ const a = (p = (h = e.popover).render) == null ? void 0 : p.call(h, {
787
+ tool: t,
788
+ groupId: r.groupId,
789
+ button: i,
790
+ popover: o
791
+ }), n = typeof DocumentFragment != "undefined" && a instanceof DocumentFragment;
792
+ if (a instanceof HTMLElement || n)
793
+ o.appendChild(a);
794
+ else if (typeof a == "string" && a.trim()) {
795
+ const f = document.createElement("div");
796
+ f.innerHTML = a, o.appendChild(f);
797
+ }
798
+ r.container.appendChild(o), Ct(r.container, i, o), i.setAttribute("aria-expanded", "true"), $.set(o, {
799
+ tool: t,
800
+ groupId: r.groupId,
801
+ button: i,
802
+ config: e
803
+ }), It(r.container, i, o), (m = (g = e.popover).onOpen) == null || m.call(g, {
804
+ tool: t,
805
+ groupId: r.groupId,
806
+ button: i,
807
+ popover: o
808
+ });
809
+ }
810
+ function Ct(i, t, e) {
811
+ const r = i.getBoundingClientRect(), o = t.getBoundingClientRect(), a = Math.max(
812
+ 8,
813
+ Math.min(
814
+ o.left - r.left,
815
+ r.width - e.offsetWidth - 8
816
+ )
817
+ ), n = Math.max(
818
+ 8,
819
+ Math.min(
820
+ o.bottom - r.top + 8,
821
+ r.height - e.offsetHeight - 8
822
+ )
823
+ );
824
+ e.style.setProperty("left", `${a}px`, "important"), e.style.setProperty("top", `${n}px`, "important");
825
+ }
826
+ function It(i, t, e) {
827
+ const r = (n) => {
828
+ n.key === "Escape" && R(i);
829
+ }, o = (n) => {
830
+ const s = n.target;
831
+ s instanceof Node && (e.contains(s) || t.contains(s) || R(i));
832
+ };
833
+ document.addEventListener("keydown", r, !0);
834
+ const a = window.setTimeout(() => {
835
+ e.isConnected && document.addEventListener("pointerdown", o, !0);
836
+ }, 0);
837
+ W.set(e, {
838
+ keydown: r,
839
+ pointerdown: o,
840
+ pointerdownTimer: a
841
+ });
842
+ }
843
+ function R(i) {
844
+ i.querySelectorAll(ft).forEach((t) => {
845
+ var o, a, n;
846
+ const e = $.get(t);
847
+ e == null || e.button.removeAttribute("aria-expanded"), e || (o = Tt(i, t)) == null || o.removeAttribute(
848
+ "aria-expanded"
849
+ );
850
+ const r = W.get(t);
851
+ r && (window.clearTimeout(r.pointerdownTimer), document.removeEventListener("keydown", r.keydown, !0), document.removeEventListener(
852
+ "pointerdown",
853
+ r.pointerdown,
854
+ !0
855
+ ), W.delete(t)), t.remove(), e && ((n = (a = e.config.popover) == null ? void 0 : a.onClose) == null || n.call(a, {
856
+ tool: e.tool,
857
+ groupId: e.groupId,
858
+ button: e.button,
859
+ popover: t
860
+ }), $.delete(t));
861
+ });
862
+ }
863
+ function Tt(i, t) {
864
+ const e = i.querySelectorAll(
865
+ gt
866
+ );
867
+ for (const r of e)
868
+ if (t.dataset.geokitToolInstance && r.dataset.geokitToolInstance === t.dataset.geokitToolInstance || r.dataset.geokitTool === t.dataset.geokitTool && r.dataset.geokitToolbarGroup === t.dataset.geokitToolbarGroup)
869
+ return r;
870
+ return null;
871
+ }
872
+ function _t(i, t, e) {
873
+ return `${i}:${t}:${e}`;
874
+ }
875
+ function Ie(i) {
876
+ return {
877
+ polygon: "Draw polygon",
878
+ polyline: "Draw line",
879
+ rectangle: "Draw rectangle",
880
+ circle: "Draw circle",
881
+ marker: "Place marker",
882
+ layerCake: "Draw layer cake",
883
+ move: "Move feature",
884
+ select: "Select feature",
885
+ edit: "Edit features",
886
+ delete: "Delete features",
887
+ ruler: "Measure distance",
888
+ measurementSettings: "Measurement settings",
889
+ layerStyle: "Layer style"
890
+ }[i];
891
+ }
892
+ function Bt(i) {
893
+ return {
894
+ polygon: "P",
895
+ polyline: "L",
896
+ rectangle: "R",
897
+ circle: "C",
898
+ marker: "M",
899
+ layerCake: "Z",
900
+ move: "Mv",
901
+ select: "S",
902
+ edit: "E",
903
+ delete: "D",
904
+ ruler: "m",
905
+ measurementSettings: "Ms",
906
+ layerStyle: "A"
907
+ }[i];
908
+ }
909
+ function St(i) {
910
+ const t = i == null ? void 0 : i[0], e = i == null ? void 0 : i[1];
911
+ return typeof t == "number" && Number.isFinite(t) && t >= 0 && typeof e == "number" && Number.isFinite(e) && e >= 0 ? [t, e] : [10, 10];
912
+ }
913
+ const me = /* @__PURE__ */ new WeakSet();
914
+ function Ot(i = x) {
915
+ var r;
916
+ if (me.has(i)) return;
917
+ const t = i.DrawToolbar;
918
+ if (!((r = t == null ? void 0 : t.prototype) != null && r.getModeHandlers)) return;
533
919
  const e = t.prototype.getModeHandlers;
534
- t.prototype.getModeHandlers = function(r) {
535
- var i, n, l, c;
536
- const a = e.call(this, r);
537
- if ((i = this.options) != null && i.cake) {
538
- const d = (n = s.Draw) == null ? void 0 : n.Cake;
920
+ t.prototype.getModeHandlers = function(o) {
921
+ var n, s, l, c;
922
+ const a = e.call(this, o);
923
+ if ((n = this.options) != null && n.cake) {
924
+ const d = (s = i.Draw) == null ? void 0 : s.Cake;
539
925
  if (!d) return a;
540
926
  a.push({
541
927
  enabled: !0,
542
- handler: new d(r, this.options.cake),
928
+ handler: new d(o, this.options.cake),
543
929
  title: "Draw Layer Cake (Subtractive Zones)"
544
930
  });
545
931
  }
546
932
  if ((l = this.options) != null && l.move) {
547
- const d = (c = s.Draw) == null ? void 0 : c.Move;
933
+ const d = (c = i.Draw) == null ? void 0 : c.Move;
548
934
  if (!d) return a;
549
935
  a.push({
550
936
  enabled: !0,
551
- handler: new d(r, this.options.move),
937
+ handler: new d(o, this.options.move),
552
938
  title: "Move/Translate Features"
553
939
  });
554
940
  }
555
941
  return a;
556
- }, oe.add(s);
942
+ }, me.add(i);
557
943
  }
558
- const U = class U extends v.Draw.Circle {
944
+ const H = class H extends x.Draw.Circle {
559
945
  constructor(t, e) {
560
- super(t, e), this.type = U.TYPE;
946
+ super(t, e), this.type = H.TYPE;
561
947
  }
562
948
  addHooks() {
563
949
  super.addHooks();
@@ -568,15 +954,15 @@ const U = class U extends v.Draw.Circle {
568
954
  });
569
955
  }
570
956
  };
571
- h(U, "TYPE", "cake");
572
- let R = U;
573
- v.Draw.Cake = R;
574
- function je(s) {
575
- const t = s.Draw;
957
+ u(H, "TYPE", "cake");
958
+ let D = H;
959
+ x.Draw.Cake = D;
960
+ function Pt(i) {
961
+ const t = i.Draw;
576
962
  if (!t || t.Cake) return;
577
- const o = class o extends t.Circle {
578
- constructor(a, i) {
579
- super(a, i), this.type = o.TYPE;
963
+ const r = class r extends t.Circle {
964
+ constructor(a, n) {
965
+ super(a, n), this.type = r.TYPE;
580
966
  }
581
967
  addHooks() {
582
968
  super.addHooks();
@@ -587,20 +973,20 @@ function je(s) {
587
973
  });
588
974
  }
589
975
  };
590
- h(o, "TYPE", "cake");
591
- let e = o;
976
+ u(r, "TYPE", "cake");
977
+ let e = r;
592
978
  t.Cake = e;
593
979
  }
594
- const P = class P extends v.Draw.Feature {
595
- constructor(e, o) {
596
- super(e, o);
597
- h(this, "_featureGroup");
598
- h(this, "_selectedLayer", null);
599
- h(this, "_originalLatLngs", null);
600
- h(this, "_dragStartLatLng", null);
601
- h(this, "_isDragging", !1);
602
- h(this, "_pendingMove", null);
603
- this.type = P.TYPE, this._featureGroup = (o == null ? void 0 : o.featureGroup) || new v.FeatureGroup();
980
+ const F = class F extends x.Draw.Feature {
981
+ constructor(e, r) {
982
+ super(e, r);
983
+ u(this, "_featureGroup");
984
+ u(this, "_selectedLayer", null);
985
+ u(this, "_originalLatLngs", null);
986
+ u(this, "_dragStartLatLng", null);
987
+ u(this, "_isDragging", !1);
988
+ u(this, "_pendingMove", null);
989
+ this.type = F.TYPE, this._featureGroup = (r == null ? void 0 : r.featureGroup) || new x.FeatureGroup();
604
990
  }
605
991
  enable() {
606
992
  this._enabled || super.enable();
@@ -611,19 +997,19 @@ const P = class P extends v.Draw.Feature {
611
997
  addHooks() {
612
998
  const e = this._map;
613
999
  if (!e) return;
614
- v.DomUtil.addClass(e.getContainer(), "leaflet-draw-move-mode"), this._featureGroup.eachLayer((r) => {
615
- this._enableLayerHover(r);
1000
+ x.DomUtil.addClass(e.getContainer(), "leaflet-draw-move-mode"), this._featureGroup.eachLayer((o) => {
1001
+ this._enableLayerHover(o);
616
1002
  });
617
- const o = this._tooltip;
618
- o != null && o.updateContent && o.updateContent({
1003
+ const r = this._tooltip;
1004
+ r != null && r.updateContent && r.updateContent({
619
1005
  text: "Click and drag a feature to move it",
620
1006
  subtext: ""
621
1007
  });
622
1008
  }
623
1009
  removeHooks() {
624
1010
  const e = this._map;
625
- e && (v.DomUtil.removeClass(e.getContainer(), "leaflet-draw-move-mode"), this._featureGroup.eachLayer((o) => {
626
- this._disableLayerHover(o);
1011
+ e && (x.DomUtil.removeClass(e.getContainer(), "leaflet-draw-move-mode"), this._featureGroup.eachLayer((r) => {
1012
+ this._disableLayerHover(r);
627
1013
  }), this._cleanupDragging());
628
1014
  }
629
1015
  _enableLayerHover(e) {
@@ -634,34 +1020,34 @@ const P = class P extends v.Draw.Feature {
634
1020
  }
635
1021
  _onLayerMouseOver(e) {
636
1022
  if (this._isDragging) return;
637
- const o = e.target;
638
- if (o.getElement) {
639
- const r = o.getElement();
640
- r && (r.style.cursor = "grab");
641
- } else o._path && (o._path.style.cursor = "grab");
1023
+ const r = e.target;
1024
+ if (r.getElement) {
1025
+ const o = r.getElement();
1026
+ o && (o.style.cursor = "grab");
1027
+ } else r._path && (r._path.style.cursor = "grab");
642
1028
  }
643
1029
  _onLayerMouseOut(e) {
644
1030
  if (this._isDragging) return;
645
- const o = e.target;
646
- if (o.getElement) {
647
- const r = o.getElement();
648
- r && (r.style.cursor = "");
649
- } else o._path && (o._path.style.cursor = "");
1031
+ const r = e.target;
1032
+ if (r.getElement) {
1033
+ const o = r.getElement();
1034
+ o && (o.style.cursor = "");
1035
+ } else r._path && (r._path.style.cursor = "");
650
1036
  }
651
1037
  _onLayerMouseDown(e) {
652
1038
  if (this._isDragging) return;
653
- v.DomEvent.stopPropagation(e.originalEvent), v.DomEvent.preventDefault(e.originalEvent);
654
- const o = e.target;
655
- if (this._selectedLayer = o, this._isDragging = !0, this._dragStartLatLng = e.latlng, this._storeOriginalLatLngs(o), o.getElement) {
656
- const a = o.getElement();
1039
+ x.DomEvent.stopPropagation(e.originalEvent), x.DomEvent.preventDefault(e.originalEvent);
1040
+ const r = e.target;
1041
+ if (this._selectedLayer = r, this._isDragging = !0, this._dragStartLatLng = e.latlng, this._storeOriginalLatLngs(r), r.getElement) {
1042
+ const a = r.getElement();
657
1043
  a && (a.style.cursor = "grabbing");
658
- } else o._path && (o._path.style.cursor = "grabbing");
1044
+ } else r._path && (r._path.style.cursor = "grabbing");
659
1045
  this._map.on("mousemove", this._onMouseMove, this), this._map.on("mouseup", this._onMouseUp, this);
660
- const r = o.toGeoJSON();
1046
+ const o = r.toGeoJSON();
661
1047
  this._pendingMove = {
662
- layer: o,
663
- originalGeoJSON: r,
664
- newGeoJSON: r
1048
+ layer: r,
1049
+ originalGeoJSON: o,
1050
+ newGeoJSON: o
665
1051
  // Will be updated on mouseup
666
1052
  };
667
1053
  }
@@ -673,36 +1059,36 @@ const P = class P extends v.Draw.Feature {
673
1059
  _onMouseMove(e) {
674
1060
  if (!this._isDragging || !this._selectedLayer || !this._dragStartLatLng)
675
1061
  return;
676
- const o = this._selectedLayer, r = {
1062
+ const r = this._selectedLayer, o = {
677
1063
  lat: e.latlng.lat - this._dragStartLatLng.lat,
678
1064
  lng: e.latlng.lng - this._dragStartLatLng.lng
679
1065
  };
680
- if (o.setLatLng) {
681
- const a = v.latLng(
682
- this._originalLatLngs.lat + r.lat,
683
- this._originalLatLngs.lng + r.lng
1066
+ if (r.setLatLng) {
1067
+ const a = x.latLng(
1068
+ this._originalLatLngs.lat + o.lat,
1069
+ this._originalLatLngs.lng + o.lng
684
1070
  );
685
- o.setLatLng(a);
686
- } else if (o.setLatLngs) {
687
- const a = this._offsetLatLngs(this._originalLatLngs, r);
688
- o.setLatLngs(a);
1071
+ r.setLatLng(a);
1072
+ } else if (r.setLatLngs) {
1073
+ const a = this._offsetLatLngs(this._originalLatLngs, o);
1074
+ r.setLatLngs(a);
689
1075
  }
690
1076
  }
691
- _offsetLatLngs(e, o) {
692
- return e instanceof v.LatLng || e.lat !== void 0 && e.lng !== void 0 ? v.latLng(e.lat + o.lat, e.lng + o.lng) : Array.isArray(e) ? e.map((r) => this._offsetLatLngs(r, o)) : e;
1077
+ _offsetLatLngs(e, r) {
1078
+ return e instanceof x.LatLng || e.lat !== void 0 && e.lng !== void 0 ? x.latLng(e.lat + r.lat, e.lng + r.lng) : Array.isArray(e) ? e.map((o) => this._offsetLatLngs(o, r)) : e;
693
1079
  }
694
1080
  _onMouseUp(e) {
695
- var r, a;
1081
+ var o, a;
696
1082
  if (!this._isDragging || !this._selectedLayer) return;
697
1083
  this._pendingMove && (this._pendingMove.newGeoJSON = this._selectedLayer.toGeoJSON());
698
- const o = this._selectedLayer;
699
- if (o.getElement) {
700
- const i = o.getElement();
701
- i && (i.style.cursor = "grab");
702
- } else o._path && (o._path.style.cursor = "grab");
1084
+ const r = this._selectedLayer;
1085
+ if (r.getElement) {
1086
+ const n = r.getElement();
1087
+ n && (n.style.cursor = "grab");
1088
+ } else r._path && (r._path.style.cursor = "grab");
703
1089
  this._map.fire("draw:moveend", {
704
1090
  layer: this._selectedLayer,
705
- originalGeoJSON: (r = this._pendingMove) == null ? void 0 : r.originalGeoJSON,
1091
+ originalGeoJSON: (o = this._pendingMove) == null ? void 0 : o.originalGeoJSON,
706
1092
  newGeoJSON: (a = this._pendingMove) == null ? void 0 : a.newGeoJSON
707
1093
  }), this._map.off("mousemove", this._onMouseMove, this), this._map.off("mouseup", this._onMouseUp, this), this._isDragging = !1;
708
1094
  }
@@ -710,8 +1096,8 @@ const P = class P extends v.Draw.Feature {
710
1096
  if (this._selectedLayer) {
711
1097
  const e = this._selectedLayer;
712
1098
  if (e.getElement) {
713
- const o = e.getElement();
714
- o && (o.style.cursor = "");
1099
+ const r = e.getElement();
1100
+ r && (r.style.cursor = "");
715
1101
  } else e._path && (e._path.style.cursor = "");
716
1102
  }
717
1103
  this._map.off("mousemove", this._onMouseMove, this), this._map.off("mouseup", this._onMouseUp, this), this._selectedLayer = null, this._originalLatLngs = null, this._dragStartLatLng = null, this._isDragging = !1, this._pendingMove = null;
@@ -741,22 +1127,22 @@ const P = class P extends v.Draw.Feature {
741
1127
  return this._pendingMove !== null;
742
1128
  }
743
1129
  };
744
- h(P, "TYPE", "move");
745
- let G = P;
746
- v.Draw.Move = G;
747
- function qe(s) {
748
- const t = s.Draw;
1130
+ u(F, "TYPE", "move");
1131
+ let te = F;
1132
+ x.Draw.Move = te;
1133
+ function zt(i) {
1134
+ const t = i.Draw;
749
1135
  if (!t || t.Move) return;
750
- const o = class o extends t.Feature {
751
- constructor(i, n) {
752
- super(i, n);
753
- h(this, "_featureGroup");
754
- h(this, "_selectedLayer", null);
755
- h(this, "_originalLatLngs", null);
756
- h(this, "_dragStartLatLng", null);
757
- h(this, "_isDragging", !1);
758
- h(this, "_pendingMove", null);
759
- this.type = o.TYPE, this._featureGroup = (n == null ? void 0 : n.featureGroup) || new v.FeatureGroup();
1136
+ const r = class r extends t.Feature {
1137
+ constructor(n, s) {
1138
+ super(n, s);
1139
+ u(this, "_featureGroup");
1140
+ u(this, "_selectedLayer", null);
1141
+ u(this, "_originalLatLngs", null);
1142
+ u(this, "_dragStartLatLng", null);
1143
+ u(this, "_isDragging", !1);
1144
+ u(this, "_pendingMove", null);
1145
+ this.type = r.TYPE, this._featureGroup = (s == null ? void 0 : s.featureGroup) || new x.FeatureGroup();
760
1146
  }
761
1147
  enable() {
762
1148
  this._enabled || super.enable();
@@ -765,96 +1151,96 @@ function qe(s) {
765
1151
  this._enabled && (this._cleanupDragging(), super.disable());
766
1152
  }
767
1153
  addHooks() {
768
- const i = this._map;
769
- if (!i) return;
770
- s.DomUtil.addClass(i.getContainer(), "leaflet-draw-move-mode"), this._featureGroup.eachLayer((l) => {
1154
+ const n = this._map;
1155
+ if (!n) return;
1156
+ i.DomUtil.addClass(n.getContainer(), "leaflet-draw-move-mode"), this._featureGroup.eachLayer((l) => {
771
1157
  this._enableLayerHover(l);
772
1158
  });
773
- const n = this._tooltip;
774
- n != null && n.updateContent && n.updateContent({
1159
+ const s = this._tooltip;
1160
+ s != null && s.updateContent && s.updateContent({
775
1161
  text: "Click and drag a feature to move it",
776
1162
  subtext: ""
777
1163
  });
778
1164
  }
779
1165
  removeHooks() {
780
- const i = this._map;
781
- i && (s.DomUtil.removeClass(i.getContainer(), "leaflet-draw-move-mode"), this._featureGroup.eachLayer((n) => {
782
- this._disableLayerHover(n);
1166
+ const n = this._map;
1167
+ n && (i.DomUtil.removeClass(n.getContainer(), "leaflet-draw-move-mode"), this._featureGroup.eachLayer((s) => {
1168
+ this._disableLayerHover(s);
783
1169
  }), this._cleanupDragging());
784
1170
  }
785
- _enableLayerHover(i) {
786
- i.on && (i.on("mouseover", this._onLayerMouseOver, this), i.on("mouseout", this._onLayerMouseOut, this), i.on("mousedown", this._onLayerMouseDown, this));
1171
+ _enableLayerHover(n) {
1172
+ n.on && (n.on("mouseover", this._onLayerMouseOver, this), n.on("mouseout", this._onLayerMouseOut, this), n.on("mousedown", this._onLayerMouseDown, this));
787
1173
  }
788
- _disableLayerHover(i) {
789
- i.off && (i.off("mouseover", this._onLayerMouseOver, this), i.off("mouseout", this._onLayerMouseOut, this), i.off("mousedown", this._onLayerMouseDown, this));
1174
+ _disableLayerHover(n) {
1175
+ n.off && (n.off("mouseover", this._onLayerMouseOver, this), n.off("mouseout", this._onLayerMouseOut, this), n.off("mousedown", this._onLayerMouseDown, this));
790
1176
  }
791
- _onLayerMouseOver(i) {
1177
+ _onLayerMouseOver(n) {
792
1178
  if (this._isDragging) return;
793
- const n = i.target;
794
- if (n.getElement) {
795
- const l = n.getElement();
1179
+ const s = n.target;
1180
+ if (s.getElement) {
1181
+ const l = s.getElement();
796
1182
  l && (l.style.cursor = "grab");
797
- } else n._path && (n._path.style.cursor = "grab");
1183
+ } else s._path && (s._path.style.cursor = "grab");
798
1184
  }
799
- _onLayerMouseOut(i) {
1185
+ _onLayerMouseOut(n) {
800
1186
  if (this._isDragging) return;
801
- const n = i.target;
802
- if (n.getElement) {
803
- const l = n.getElement();
1187
+ const s = n.target;
1188
+ if (s.getElement) {
1189
+ const l = s.getElement();
804
1190
  l && (l.style.cursor = "");
805
- } else n._path && (n._path.style.cursor = "");
1191
+ } else s._path && (s._path.style.cursor = "");
806
1192
  }
807
- _onLayerMouseDown(i) {
1193
+ _onLayerMouseDown(n) {
808
1194
  if (this._isDragging) return;
809
- s.DomEvent.stopPropagation(i.originalEvent), s.DomEvent.preventDefault(i.originalEvent);
810
- const n = i.target;
811
- if (this._selectedLayer = n, this._isDragging = !0, this._dragStartLatLng = i.latlng, this._storeOriginalLatLngs(n), n.getElement) {
812
- const c = n.getElement();
1195
+ i.DomEvent.stopPropagation(n.originalEvent), i.DomEvent.preventDefault(n.originalEvent);
1196
+ const s = n.target;
1197
+ if (this._selectedLayer = s, this._isDragging = !0, this._dragStartLatLng = n.latlng, this._storeOriginalLatLngs(s), s.getElement) {
1198
+ const c = s.getElement();
813
1199
  c && (c.style.cursor = "grabbing");
814
- } else n._path && (n._path.style.cursor = "grabbing");
1200
+ } else s._path && (s._path.style.cursor = "grabbing");
815
1201
  this._map.on("mousemove", this._onMouseMove, this), this._map.on("mouseup", this._onMouseUp, this);
816
- const l = n.toGeoJSON();
1202
+ const l = s.toGeoJSON();
817
1203
  this._pendingMove = {
818
- layer: n,
1204
+ layer: s,
819
1205
  originalGeoJSON: l,
820
1206
  newGeoJSON: l
821
1207
  };
822
1208
  }
823
- _storeOriginalLatLngs(i) {
824
- i.getLatLng ? this._originalLatLngs = i.getLatLng() : i.getLatLngs && (this._originalLatLngs = JSON.parse(
825
- JSON.stringify(i.getLatLngs())
1209
+ _storeOriginalLatLngs(n) {
1210
+ n.getLatLng ? this._originalLatLngs = n.getLatLng() : n.getLatLngs && (this._originalLatLngs = JSON.parse(
1211
+ JSON.stringify(n.getLatLngs())
826
1212
  ));
827
1213
  }
828
- _onMouseMove(i) {
1214
+ _onMouseMove(n) {
829
1215
  if (!this._isDragging || !this._selectedLayer || !this._dragStartLatLng)
830
1216
  return;
831
- const n = this._selectedLayer, l = {
832
- lat: i.latlng.lat - this._dragStartLatLng.lat,
833
- lng: i.latlng.lng - this._dragStartLatLng.lng
1217
+ const s = this._selectedLayer, l = {
1218
+ lat: n.latlng.lat - this._dragStartLatLng.lat,
1219
+ lng: n.latlng.lng - this._dragStartLatLng.lng
834
1220
  };
835
- if (n.setLatLng) {
836
- const c = s.latLng(
1221
+ if (s.setLatLng) {
1222
+ const c = i.latLng(
837
1223
  this._originalLatLngs.lat + l.lat,
838
1224
  this._originalLatLngs.lng + l.lng
839
1225
  );
840
- n.setLatLng(c);
841
- } else if (n.setLatLngs) {
1226
+ s.setLatLng(c);
1227
+ } else if (s.setLatLngs) {
842
1228
  const c = this._offsetLatLngs(this._originalLatLngs, l);
843
- n.setLatLngs(c);
1229
+ s.setLatLngs(c);
844
1230
  }
845
1231
  }
846
- _offsetLatLngs(i, n) {
847
- return i instanceof s.LatLng || i.lat !== void 0 && i.lng !== void 0 ? s.latLng(i.lat + n.lat, i.lng + n.lng) : Array.isArray(i) ? i.map((l) => this._offsetLatLngs(l, n)) : i;
1232
+ _offsetLatLngs(n, s) {
1233
+ return n instanceof i.LatLng || n.lat !== void 0 && n.lng !== void 0 ? i.latLng(n.lat + s.lat, n.lng + s.lng) : Array.isArray(n) ? n.map((l) => this._offsetLatLngs(l, s)) : n;
848
1234
  }
849
- _onMouseUp(i) {
1235
+ _onMouseUp(n) {
850
1236
  var l, c;
851
1237
  if (!this._isDragging || !this._selectedLayer) return;
852
1238
  this._pendingMove && (this._pendingMove.newGeoJSON = this._selectedLayer.toGeoJSON());
853
- const n = this._selectedLayer;
854
- if (n.getElement) {
855
- const d = n.getElement();
1239
+ const s = this._selectedLayer;
1240
+ if (s.getElement) {
1241
+ const d = s.getElement();
856
1242
  d && (d.style.cursor = "grab");
857
- } else n._path && (n._path.style.cursor = "grab");
1243
+ } else s._path && (s._path.style.cursor = "grab");
858
1244
  this._map.fire("draw:moveend", {
859
1245
  layer: this._selectedLayer,
860
1246
  originalGeoJSON: (l = this._pendingMove) == null ? void 0 : l.originalGeoJSON,
@@ -863,11 +1249,11 @@ function qe(s) {
863
1249
  }
864
1250
  _cleanupDragging() {
865
1251
  if (this._selectedLayer) {
866
- const i = this._selectedLayer;
867
- if (i.getElement) {
868
- const n = i.getElement();
869
- n && (n.style.cursor = "");
870
- } else i._path && (i._path.style.cursor = "");
1252
+ const n = this._selectedLayer;
1253
+ if (n.getElement) {
1254
+ const s = n.getElement();
1255
+ s && (s.style.cursor = "");
1256
+ } else n._path && (n._path.style.cursor = "");
871
1257
  }
872
1258
  this._map.off("mousemove", this._onMouseMove, this), this._map.off("mouseup", this._onMouseUp, this), this._selectedLayer = null, this._originalLatLngs = null, this._dragStartLatLng = null, this._isDragging = !1, this._pendingMove = null;
873
1259
  }
@@ -880,86 +1266,86 @@ function qe(s) {
880
1266
  }
881
1267
  cancelMove() {
882
1268
  if (!this._pendingMove) return;
883
- const i = this._pendingMove.layer;
884
- i.setLatLng && this._originalLatLngs ? i.setLatLng(this._originalLatLngs) : i.setLatLngs && this._originalLatLngs && i.setLatLngs(this._originalLatLngs), this._cleanupDragging();
1269
+ const n = this._pendingMove.layer;
1270
+ n.setLatLng && this._originalLatLngs ? n.setLatLng(this._originalLatLngs) : n.setLatLngs && this._originalLatLngs && n.setLatLngs(this._originalLatLngs), this._cleanupDragging();
885
1271
  }
886
1272
  hasPendingMove() {
887
1273
  return this._pendingMove !== null;
888
1274
  }
889
1275
  };
890
- h(o, "TYPE", "move");
891
- let e = o;
1276
+ u(r, "TYPE", "move");
1277
+ let e = r;
892
1278
  t.Move = e;
893
1279
  }
894
- const Ke = 63710088e-1;
895
- function F(s) {
896
- return s * Math.PI / 180;
1280
+ const Rt = 63710088e-1;
1281
+ function Y(i) {
1282
+ return i * Math.PI / 180;
897
1283
  }
898
- function re(s) {
899
- return s * 180 / Math.PI;
1284
+ function ye(i) {
1285
+ return i * 180 / Math.PI;
900
1286
  }
901
- function Qe(s, t, e) {
902
- const o = t / Ke, r = F(e), a = F(s.lat), i = F(s.lng), n = Math.sin(a), l = Math.cos(a), c = Math.sin(o), d = Math.cos(o), u = n * d + l * c * Math.cos(r), p = Math.asin(u), f = Math.sin(r) * c * l, m = d - n * u, y = i + Math.atan2(f, m);
903
- return { lat: re(p), lng: re(y) };
1287
+ function Ut(i, t, e) {
1288
+ const r = t / Rt, o = Y(e), a = Y(i.lat), n = Y(i.lng), s = Math.sin(a), l = Math.cos(a), c = Math.sin(r), d = Math.cos(r), h = s * d + l * c * Math.cos(o), p = Math.asin(h), g = Math.sin(o) * c * l, m = d - s * h, f = n + Math.atan2(g, m);
1289
+ return { lat: ye(p), lng: ye(f) };
904
1290
  }
905
- function Xe(s) {
1291
+ function Dt(i) {
906
1292
  let t = 0;
907
- for (let e = 0; e < s.length - 1; e++) {
908
- const [o, r] = s[e], [a, i] = s[e + 1];
909
- t += o * i - a * r;
1293
+ for (let e = 0; e < i.length - 1; e++) {
1294
+ const [r, o] = i[e], [a, n] = i[e + 1];
1295
+ t += r * n - a * o;
910
1296
  }
911
1297
  return t / 2;
912
1298
  }
913
- function J(s) {
914
- const t = s[0], e = s.at(-1);
915
- return !t || !e || t[0] === e[0] && t[1] === e[1] ? s : [...s, t];
1299
+ function re(i) {
1300
+ const t = i[0], e = i.at(-1);
1301
+ return !t || !e || t[0] === e[0] && t[1] === e[1] ? i : [...i, t];
916
1302
  }
917
- function Z(s, t) {
918
- const e = J(s);
919
- if (Xe(e) < 0 === t) return e;
1303
+ function oe(i, t) {
1304
+ const e = re(i);
1305
+ if (Dt(e) < 0 === t) return e;
920
1306
  const a = [...e].reverse();
921
- return J(a);
1307
+ return re(a);
922
1308
  }
923
- function Y(s, t, e) {
1309
+ function ie(i, t, e) {
924
1310
  if (e < 4) throw new Error("steps must be >= 4");
925
- const o = [];
926
- for (let r = 0; r < e; r++) {
927
- const a = r / e * 360, i = Qe(s, t, a);
928
- o.push([i.lng, i.lat]);
1311
+ const r = [];
1312
+ for (let o = 0; o < e; o++) {
1313
+ const a = o / e * 360, n = Ut(i, t, a);
1314
+ r.push([n.lng, n.lat]);
929
1315
  }
930
- return J(o);
1316
+ return re(r);
931
1317
  }
932
- function We(s) {
933
- const { id: t, center: e, radiusMeters: o, layerIndex: r, steps: a } = s, i = Z(Y(e, o, a), !1);
1318
+ function Nt(i) {
1319
+ const { id: t, center: e, radiusMeters: r, layerIndex: o, steps: a } = i, n = oe(ie(e, r, a), !1);
934
1320
  return {
935
1321
  type: "Feature",
936
1322
  properties: {
937
1323
  id: t,
938
- layer_index: r,
939
- radius_outer: o,
1324
+ layer_index: o,
1325
+ radius_outer: r,
940
1326
  type: "core",
941
1327
  _meta: {
942
1328
  lat: e.lat,
943
1329
  lng: e.lng,
944
- radius: o
1330
+ radius: r
945
1331
  }
946
1332
  },
947
- geometry: { type: "Polygon", coordinates: [i] }
1333
+ geometry: { type: "Polygon", coordinates: [n] }
948
1334
  };
949
1335
  }
950
- function $e(s) {
1336
+ function Ht(i) {
951
1337
  const {
952
1338
  id: t,
953
1339
  center: e,
954
- radiusOuterMeters: o,
955
- radiusInnerMeters: r,
1340
+ radiusOuterMeters: r,
1341
+ radiusInnerMeters: o,
956
1342
  layerIndex: a,
957
- steps: i
958
- } = s, n = Z(
959
- Y(e, o, i),
1343
+ steps: n
1344
+ } = i, s = oe(
1345
+ ie(e, r, n),
960
1346
  !1
961
- ), l = Z(
962
- Y(e, r, i),
1347
+ ), l = oe(
1348
+ ie(e, o, n),
963
1349
  !0
964
1350
  );
965
1351
  return {
@@ -967,110 +1353,110 @@ function $e(s) {
967
1353
  properties: {
968
1354
  id: t,
969
1355
  layer_index: a,
970
- radius_outer: o,
1356
+ radius_outer: r,
971
1357
  type: "ring",
972
1358
  _meta: {
973
1359
  lat: e.lat,
974
1360
  lng: e.lng,
975
- radius: o
1361
+ radius: r
976
1362
  }
977
1363
  },
978
- geometry: { type: "Polygon", coordinates: [n, l] }
1364
+ geometry: { type: "Polygon", coordinates: [s, l] }
979
1365
  };
980
1366
  }
981
- function et(s) {
982
- const { circles: t, steps: e = 64 } = s, o = [...t].sort((a, i) => a.getRadius() - i.getRadius()), r = [];
983
- return o.forEach((a, i) => {
984
- const n = a.getLatLng(), l = a.getRadius(), c = q();
985
- if (i === 0) {
986
- r.push(
987
- We({ id: c, center: n, radiusMeters: l, layerIndex: i, steps: e })
1367
+ function Ft(i) {
1368
+ const { circles: t, steps: e = 64 } = i, r = [...t].sort((a, n) => a.getRadius() - n.getRadius()), o = [];
1369
+ return r.forEach((a, n) => {
1370
+ const s = a.getLatLng(), l = a.getRadius(), c = ne();
1371
+ if (n === 0) {
1372
+ o.push(
1373
+ Nt({ id: c, center: s, radiusMeters: l, layerIndex: n, steps: e })
988
1374
  );
989
1375
  return;
990
1376
  }
991
- const u = o[i - 1].getRadius();
992
- r.push(
993
- $e({
1377
+ const h = r[n - 1].getRadius();
1378
+ o.push(
1379
+ Ht({
994
1380
  id: c,
995
- center: n,
1381
+ center: s,
996
1382
  radiusOuterMeters: l,
997
- radiusInnerMeters: u,
998
- layerIndex: i,
1383
+ radiusInnerMeters: h,
1384
+ layerIndex: n,
999
1385
  steps: e
1000
1386
  })
1001
1387
  );
1002
- }), { type: "FeatureCollection", features: r };
1388
+ }), { type: "FeatureCollection", features: o };
1003
1389
  }
1004
- function z(s) {
1005
- s.preventDefault(), s.stopPropagation();
1390
+ function P(i) {
1391
+ i.preventDefault(), i.stopPropagation();
1006
1392
  }
1007
- function tt(s) {
1393
+ function Gt(i) {
1008
1394
  var c, d;
1009
- const { root: t, addButtonId: e, saveButtonId: o, onAddRing: r, onSave: a } = s, i = (c = t.querySelector) == null ? void 0 : c.call(t, `#${e}`), n = (d = t.querySelector) == null ? void 0 : d.call(t, `#${o}`);
1010
- if (!i || !n) return;
1395
+ const { root: t, addButtonId: e, saveButtonId: r, onAddRing: o, onSave: a } = i, n = (c = t.querySelector) == null ? void 0 : c.call(t, `#${e}`), s = (d = t.querySelector) == null ? void 0 : d.call(t, `#${r}`);
1396
+ if (!n || !s) return;
1011
1397
  const l = "data-cake-controls-bound";
1012
- if (!(i.hasAttribute(l) || n.hasAttribute(l))) {
1013
- i.setAttribute(l, "true"), n.setAttribute(l, "true");
1014
- for (const u of [i, n])
1015
- u.addEventListener("pointerdown", z), u.addEventListener("mousedown", z), u.addEventListener("touchstart", z);
1016
- i.addEventListener("click", (u) => {
1017
- z(u), r();
1018
- }), n.addEventListener("click", (u) => {
1019
- z(u), a();
1398
+ if (!(n.hasAttribute(l) || s.hasAttribute(l))) {
1399
+ n.setAttribute(l, "true"), s.setAttribute(l, "true");
1400
+ for (const h of [n, s])
1401
+ h.addEventListener("pointerdown", P), h.addEventListener("mousedown", P), h.addEventListener("touchstart", P);
1402
+ n.addEventListener("click", (h) => {
1403
+ P(h), o();
1404
+ }), s.addEventListener("click", (h) => {
1405
+ P(h), a();
1020
1406
  });
1021
1407
  }
1022
1408
  }
1023
- function ot(s) {
1409
+ function Vt(i) {
1024
1410
  var e;
1025
- const t = (e = s.options) != null ? e : {};
1411
+ const t = (e = i.options) != null ? e : {};
1026
1412
  t.original || (t.original = { ...t }), t.editing || (t.editing = { ...t });
1027
1413
  }
1028
- function O(s, t) {
1414
+ function z(i, t) {
1029
1415
  if (t === "imperial") {
1030
- const e = s * 3.28084;
1416
+ const e = i * 3.28084;
1031
1417
  return e >= 5280 ? `${(e / 5280).toFixed(2)} mi` : `${Math.round(e)} ft`;
1032
1418
  }
1033
- return s >= 1e3 ? `${(s / 1e3).toFixed(2)} km` : `${Math.round(s)} m`;
1034
- }
1035
- class rt {
1036
- constructor(t, e, o, r = "metric") {
1037
- h(this, "map");
1038
- h(this, "layers", []);
1039
- h(this, "controlsGroup");
1040
- h(this, "onSave");
1041
- h(this, "sessionId", q().slice(0, 8));
1042
- h(this, "baseCircleOptions");
1043
- h(this, "detachMapListeners", []);
1044
- h(this, "renderScheduled", !1);
1045
- h(this, "measurementSystem");
1046
- this.map = t, this.onSave = o, this.measurementSystem = r, this.controlsGroup = v.layerGroup().addTo(t), this.baseCircleOptions = { ...e.options }, delete this.baseCircleOptions.editing, delete this.baseCircleOptions.original, this.addLayer(e), this.installEditEventBridges(), this.renderControls();
1419
+ return i >= 1e3 ? `${(i / 1e3).toFixed(2)} km` : `${Math.round(i)} m`;
1420
+ }
1421
+ class Jt {
1422
+ constructor(t, e, r, o = "metric") {
1423
+ u(this, "map");
1424
+ u(this, "layers", []);
1425
+ u(this, "controlsGroup");
1426
+ u(this, "onSave");
1427
+ u(this, "sessionId", ne().slice(0, 8));
1428
+ u(this, "baseCircleOptions");
1429
+ u(this, "detachMapListeners", []);
1430
+ u(this, "renderScheduled", !1);
1431
+ u(this, "measurementSystem");
1432
+ this.map = t, this.onSave = r, this.measurementSystem = o, this.controlsGroup = x.layerGroup().addTo(t), this.baseCircleOptions = { ...e.options }, delete this.baseCircleOptions.editing, delete this.baseCircleOptions.original, this.addLayer(e), this.installEditEventBridges(), this.renderControls();
1047
1433
  }
1048
1434
  installEditEventBridges() {
1049
- var d, u, p, f, m, y, b, w;
1050
- const t = v, e = (u = (d = t == null ? void 0 : t.Draw) == null ? void 0 : d.Event) == null ? void 0 : u.EDITMOVE, o = (f = (p = t == null ? void 0 : t.Draw) == null ? void 0 : p.Event) == null ? void 0 : f.EDITRESIZE, r = (y = (m = t == null ? void 0 : t.Draw) == null ? void 0 : m.Event) == null ? void 0 : y.EDITSTART, a = (w = (b = t == null ? void 0 : t.Draw) == null ? void 0 : b.Event) == null ? void 0 : w.EDITSTOP;
1051
- if (!e || !o) return;
1052
- const i = (g) => {
1053
- const A = g == null ? void 0 : g.layer;
1054
- A && this.layers.includes(A) && this.syncCenters(A);
1055
- }, n = (g) => {
1056
- const A = g == null ? void 0 : g.layer;
1057
- A && this.layers.includes(A) && (this.updateLabels(A), this.requestRenderControls());
1058
- }, l = (g) => {
1435
+ var d, h, p, g, m, f, A, w;
1436
+ const t = x, e = (h = (d = t == null ? void 0 : t.Draw) == null ? void 0 : d.Event) == null ? void 0 : h.EDITMOVE, r = (g = (p = t == null ? void 0 : t.Draw) == null ? void 0 : p.Event) == null ? void 0 : g.EDITRESIZE, o = (f = (m = t == null ? void 0 : t.Draw) == null ? void 0 : m.Event) == null ? void 0 : f.EDITSTART, a = (w = (A = t == null ? void 0 : t.Draw) == null ? void 0 : A.Event) == null ? void 0 : w.EDITSTOP;
1437
+ if (!e || !r) return;
1438
+ const n = (y) => {
1439
+ const b = y == null ? void 0 : y.layer;
1440
+ b && this.layers.includes(b) && this.syncCenters(b);
1441
+ }, s = (y) => {
1442
+ const b = y == null ? void 0 : y.layer;
1443
+ b && this.layers.includes(b) && (this.updateLabels(b), this.requestRenderControls());
1444
+ }, l = (y) => {
1059
1445
  var k;
1060
- const A = g == null ? void 0 : g.layer;
1061
- if (!A || !this.layers.includes(A)) return;
1062
- const x = A;
1063
- ((k = x.getTooltip) == null ? void 0 : k.call(x)) && this.updateLabels(x);
1446
+ const b = y == null ? void 0 : y.layer;
1447
+ if (!b || !this.layers.includes(b)) return;
1448
+ const v = b;
1449
+ ((k = v.getTooltip) == null ? void 0 : k.call(v)) && this.updateLabels(v);
1064
1450
  }, c = () => {
1065
- this.layers.forEach((g) => {
1066
- var x;
1067
- const A = (x = g.getTooltip) == null ? void 0 : x.call(g);
1068
- A && (g.setTooltipContent(
1069
- O(g.getRadius(), this.measurementSystem)
1070
- ), A.options.offset = [10, 0], A.options.direction = "right", g.closeTooltip(), g.openTooltip());
1451
+ this.layers.forEach((y) => {
1452
+ var v;
1453
+ const b = (v = y.getTooltip) == null ? void 0 : v.call(y);
1454
+ b && (y.setTooltipContent(
1455
+ z(y.getRadius(), this.measurementSystem)
1456
+ ), b.options.offset = [10, 0], b.options.direction = "right", y.closeTooltip(), y.openTooltip());
1071
1457
  });
1072
1458
  };
1073
- this.map.on(e, i), this.map.on(o, n), r && (this.map.on(r, l), this.detachMapListeners.push(() => this.map.off(r, l))), a && (this.map.on(a, c), this.detachMapListeners.push(() => this.map.off(a, c))), this.detachMapListeners.push(() => this.map.off(e, i)), this.detachMapListeners.push(() => this.map.off(o, n));
1459
+ this.map.on(e, n), this.map.on(r, s), o && (this.map.on(o, l), this.detachMapListeners.push(() => this.map.off(o, l))), a && (this.map.on(a, c), this.detachMapListeners.push(() => this.map.off(a, c))), this.detachMapListeners.push(() => this.map.off(e, n)), this.detachMapListeners.push(() => this.map.off(r, s));
1074
1460
  }
1075
1461
  requestRenderControls() {
1076
1462
  if (this.renderScheduled) return;
@@ -1080,7 +1466,7 @@ class rt {
1080
1466
  }
1081
1467
  addLayer(t) {
1082
1468
  this.layers.push(t), t.addTo(this.map), t.bindTooltip(
1083
- O(t.getRadius(), this.measurementSystem),
1469
+ z(t.getRadius(), this.measurementSystem),
1084
1470
  {
1085
1471
  permanent: !0,
1086
1472
  direction: "right",
@@ -1090,13 +1476,13 @@ class rt {
1090
1476
  );
1091
1477
  const e = t.editing;
1092
1478
  setTimeout(() => {
1093
- var o, r, a, i, n;
1479
+ var r, o, a, n, s;
1094
1480
  try {
1095
- if ((o = t.redraw) == null || o.call(t), ot(t), (r = e == null ? void 0 : e.enabled) != null && r.call(e)) {
1481
+ if ((r = t.redraw) == null || r.call(t), Vt(t), (o = e == null ? void 0 : e.enabled) != null && o.call(e)) {
1096
1482
  (a = e.updateMarkers) == null || a.call(e), this.requestRenderControls();
1097
1483
  return;
1098
1484
  }
1099
- (i = e == null ? void 0 : e.enable) == null || i.call(e), (n = e == null ? void 0 : e.updateMarkers) == null || n.call(e), this.requestRenderControls();
1485
+ (n = e == null ? void 0 : e.enable) == null || n.call(e), (s = e == null ? void 0 : e.updateMarkers) == null || s.call(e), this.requestRenderControls();
1100
1486
  } catch {
1101
1487
  }
1102
1488
  }, 0);
@@ -1105,14 +1491,14 @@ class rt {
1105
1491
  if (this.layers.length >= 10) return;
1106
1492
  const t = this.getLargestCircle();
1107
1493
  if (!t) return;
1108
- const e = t.getRadius() * 1.5, o = v.circle(t.getLatLng(), {
1494
+ const e = t.getRadius() * 1.5, r = x.circle(t.getLatLng(), {
1109
1495
  ...this.baseCircleOptions,
1110
1496
  radius: e
1111
1497
  });
1112
- this.addLayer(o), this.renderControls();
1498
+ this.addLayer(r), this.renderControls();
1113
1499
  }
1114
1500
  save() {
1115
- const t = et({ circles: this.layers });
1501
+ const t = Ft({ circles: this.layers });
1116
1502
  this.onSave(t), this.destroy();
1117
1503
  }
1118
1504
  getLargestCircle() {
@@ -1122,9 +1508,9 @@ class rt {
1122
1508
  }
1123
1509
  syncCenters(t) {
1124
1510
  const e = t.getLatLng();
1125
- this.layers.forEach((o) => {
1126
- var r, a, i;
1127
- o !== t && (o.setLatLng(e), (r = o.redraw) == null || r.call(o), (i = (a = o.editing) == null ? void 0 : a.updateMarkers) == null || i.call(a));
1511
+ this.layers.forEach((r) => {
1512
+ var o, a, n;
1513
+ r !== t && (r.setLatLng(e), (o = r.redraw) == null || o.call(r), (n = (a = r.editing) == null ? void 0 : a.updateMarkers) == null || n.call(a));
1128
1514
  }), this.requestRenderControls();
1129
1515
  }
1130
1516
  /**
@@ -1133,21 +1519,21 @@ class rt {
1133
1519
  * Positions the tooltip on the left side to avoid toolbar interference.
1134
1520
  */
1135
1521
  updateLabels(t) {
1136
- var i;
1522
+ var n;
1137
1523
  const e = t.getRadius();
1138
- let o = O(e, this.measurementSystem);
1139
- const r = this.layers.filter(
1140
- (n) => n !== t && n.getRadius() < e
1524
+ let r = z(e, this.measurementSystem);
1525
+ const o = this.layers.filter(
1526
+ (s) => s !== t && s.getRadius() < e
1141
1527
  );
1142
- if (r.length > 0) {
1143
- const n = r.reduce(
1144
- (d, u) => d.getRadius() > u.getRadius() ? d : u
1145
- ), l = e - n.getRadius(), c = O(l, this.measurementSystem);
1146
- o = `${O(e, this.measurementSystem)} (+${c})`;
1528
+ if (o.length > 0) {
1529
+ const s = o.reduce(
1530
+ (d, h) => d.getRadius() > h.getRadius() ? d : h
1531
+ ), l = e - s.getRadius(), c = z(l, this.measurementSystem);
1532
+ r = `${z(e, this.measurementSystem)} (+${c})`;
1147
1533
  }
1148
- const a = (i = t.getTooltip) == null ? void 0 : i.call(t);
1534
+ const a = (n = t.getTooltip) == null ? void 0 : n.call(t);
1149
1535
  if (a) {
1150
- t.setTooltipContent(o);
1536
+ t.setTooltipContent(r);
1151
1537
  const l = t.getBounds().getSouthWest();
1152
1538
  l.lat = t.getLatLng().lat, a.options.direction = "left", a.options.offset = [-10, 0], a.setLatLng(l), t.closeTooltip(), t.openTooltip();
1153
1539
  }
@@ -1156,27 +1542,27 @@ class rt {
1156
1542
  this.controlsGroup.clearLayers();
1157
1543
  const t = this.getLargestCircle();
1158
1544
  if (!t) return;
1159
- const o = t.getBounds().getNorthEast(), r = `cake-add-${this.sessionId}`, a = `cake-save-${this.sessionId}`, i = v.divIcon({
1545
+ const r = t.getBounds().getNorthEast(), o = `cake-add-${this.sessionId}`, a = `cake-save-${this.sessionId}`, n = x.divIcon({
1160
1546
  className: "layer-cake-controls",
1161
1547
  html: `
1162
1548
  <div class="layer-cake-controls__container">
1163
- <button id="${r}" type="button">➕ Ring</button>
1549
+ <button id="${o}" type="button">➕ Ring</button>
1164
1550
  <button id="${a}" type="button" class="layer-cake-controls__save">💾 Save</button>
1165
1551
  </div>
1166
1552
  `,
1167
1553
  iconSize: [140, 40],
1168
1554
  iconAnchor: [-10, 20]
1169
1555
  });
1170
- v.marker(o, {
1171
- icon: i,
1556
+ x.marker(r, {
1557
+ icon: n,
1172
1558
  interactive: !0,
1173
1559
  keyboard: !1,
1174
1560
  bubblingMouseEvents: !1
1175
1561
  }).addTo(this.controlsGroup), setTimeout(() => {
1176
- const n = this.map.getContainer();
1177
- tt({
1178
- root: n,
1179
- addButtonId: r,
1562
+ const s = this.map.getContainer();
1563
+ Gt({
1564
+ root: s,
1565
+ addButtonId: o,
1180
1566
  saveButtonId: a,
1181
1567
  onAddRing: () => this.addRing(),
1182
1568
  onSave: () => this.save()
@@ -1192,7 +1578,7 @@ class rt {
1192
1578
  }), this.detachMapListeners = [], this.layers.forEach((t) => this.map.removeLayer(t)), this.layers = [], this.controlsGroup.clearLayers(), this.map.removeLayer(this.controlsGroup);
1193
1579
  }
1194
1580
  }
1195
- const it = `<?xml version="1.0" encoding="utf-8"?>
1581
+ const Zt = `<?xml version="1.0" encoding="utf-8"?>
1196
1582
  \r<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
1197
1583
  <svg width="800px" height="800px" viewBox="0 -1.67 47.336 47.336" xmlns="http://www.w3.org/2000/svg">\r
1198
1584
  <g id="Group_42" data-name="Group 42" transform="translate(-172.455 -364.36)">\r
@@ -1203,7 +1589,7 @@ const it = `<?xml version="1.0" encoding="utf-8"?>
1203
1589
  <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
1204
1590
  </g>\r
1205
1591
  </g>\r
1206
- </svg>`, at = `<?xml version="1.0" encoding="utf-8"?>
1592
+ </svg>`, jt = `<?xml version="1.0" encoding="utf-8"?>
1207
1593
  <!-- Four-way directional arrow icon for move tool -->
1208
1594
  <svg width="800px" height="800px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
1209
1595
  <g fill="none" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
@@ -1223,92 +1609,92 @@ const it = `<?xml version="1.0" encoding="utf-8"?>
1223
1609
  <path d="M22 12 L19 15"/>
1224
1610
  </g>
1225
1611
  </svg>
1226
- `, he = 6378137, B = 6356752314245e-6, I = 1 / 298.257223563, nt = Math.PI / 180, st = 180 / Math.PI, D = 1e9;
1227
- function lt(s) {
1228
- const t = BigInt(Math.round(s * D));
1229
- return Number(t) / D;
1612
+ `, Te = 6378137, _ = 6356752314245e-6, T = 1 / 298.257223563, Yt = Math.PI / 180, qt = 180 / Math.PI, N = 1e9;
1613
+ function Kt(i) {
1614
+ const t = BigInt(Math.round(i * N));
1615
+ return Number(t) / N;
1230
1616
  }
1231
- function S(s) {
1232
- return lt(s) * nt;
1617
+ function B(i) {
1618
+ return Kt(i) * Yt;
1233
1619
  }
1234
- function ie(s) {
1235
- const t = s * st % 360;
1620
+ function be(i) {
1621
+ const t = i * qt % 360;
1236
1622
  return t < 0 ? t + 360 : t;
1237
1623
  }
1238
- function j(s) {
1239
- const t = BigInt(Math.round(s * D));
1240
- return Number(t) / D;
1624
+ function ae(i) {
1625
+ const t = BigInt(Math.round(i * N));
1626
+ return Number(t) / N;
1241
1627
  }
1242
- function ct(s, t, e, o) {
1243
- const r = dt(s, t, e, o);
1244
- if (r.converged)
1628
+ function Qt(i, t, e, r) {
1629
+ const o = Xt(i, t, e, r);
1630
+ if (o.converged)
1245
1631
  return {
1246
- meters: j(r.distanceMeters),
1247
- bearingDegrees: ie(r.bearingRad),
1632
+ meters: ae(o.distanceMeters),
1633
+ bearingDegrees: be(o.bearingRad),
1248
1634
  algorithm: "vincenty",
1249
- iterations: r.iterations
1635
+ iterations: o.iterations
1250
1636
  };
1251
- const a = ht(s, t, e, o);
1637
+ const a = Wt(i, t, e, r);
1252
1638
  return {
1253
- meters: j(a.distanceMeters),
1254
- bearingDegrees: ie(a.bearingRad),
1639
+ meters: ae(a.distanceMeters),
1640
+ bearingDegrees: be(a.bearingRad),
1255
1641
  algorithm: "karney",
1256
- iterations: r.iterations
1642
+ iterations: o.iterations
1257
1643
  };
1258
1644
  }
1259
- function dt(s, t, e, o) {
1260
- const r = S(s), a = S(e), i = S(o - t), n = Math.atan((1 - I) * Math.tan(r)), l = Math.atan((1 - I) * Math.tan(a)), c = Math.sin(n), d = Math.cos(n), u = Math.sin(l), p = Math.cos(l);
1261
- let f = i, m = 0, y = 0;
1262
- const b = 200;
1263
- let w = 0, g = 0, A = 0, x = 0, L = 0;
1264
- for (; Math.abs(f - m) > 1e-12 && y < b; ) {
1265
- const Q = Math.sin(f), X = Math.cos(f);
1645
+ function Xt(i, t, e, r) {
1646
+ const o = B(i), a = B(e), n = B(r - t), s = Math.atan((1 - T) * Math.tan(o)), l = Math.atan((1 - T) * Math.tan(a)), c = Math.sin(s), d = Math.cos(s), h = Math.sin(l), p = Math.cos(l);
1647
+ let g = n, m = 0, f = 0;
1648
+ const A = 200;
1649
+ let w = 0, y = 0, b = 0, v = 0, E = 0;
1650
+ for (; Math.abs(g - m) > 1e-12 && f < A; ) {
1651
+ const le = Math.sin(g), ce = Math.cos(g);
1266
1652
  if (w = Math.sqrt(
1267
- (p * Q) ** 2 + (d * u - c * p * X) ** 2
1653
+ (p * le) ** 2 + (d * h - c * p * ce) ** 2
1268
1654
  ), w === 0)
1269
1655
  return {
1270
1656
  distanceMeters: 0,
1271
1657
  bearingRad: 0,
1272
- iterations: y,
1658
+ iterations: f,
1273
1659
  converged: !0
1274
1660
  };
1275
- g = c * u + d * p * X, A = Math.atan2(w, g);
1276
- const W = d * p * Q / w;
1277
- x = 1 - W ** 2, L = x === 0 ? 0 : g - 2 * c * u / x;
1278
- const H = I / 16 * x * (4 + I * (4 - 3 * x));
1279
- m = f, f = i + (1 - H) * I * W * (A + H * w * (L + H * g * (-1 + 2 * L ** 2))), y += 1;
1661
+ y = c * h + d * p * ce, b = Math.atan2(w, y);
1662
+ const de = d * p * le / w;
1663
+ v = 1 - de ** 2, E = v === 0 ? 0 : y - 2 * c * h / v;
1664
+ const Z = T / 16 * v * (4 + T * (4 - 3 * v));
1665
+ m = g, g = n + (1 - Z) * T * de * (b + Z * w * (E + Z * y * (-1 + 2 * E ** 2))), f += 1;
1280
1666
  }
1281
- if (y >= b)
1667
+ if (f >= A)
1282
1668
  return {
1283
1669
  distanceMeters: Number.NaN,
1284
1670
  bearingRad: 0,
1285
- iterations: y,
1671
+ iterations: f,
1286
1672
  converged: !1
1287
1673
  };
1288
- const k = (he ** 2 - B ** 2) / B ** 2 * x, M = 1 + k / 16384 * (4096 + k * (-768 + k * (320 - 175 * k))), C = k / 1024 * (256 + k * (-128 + k * (74 - 47 * k))), K = C * w * (L + C / 4 * (g * (-1 + 2 * L ** 2) - C / 6 * L * (-3 + 4 * w ** 2) * (-3 + 4 * L ** 2))), ge = B * M * (A - K), me = Math.atan2(
1289
- p * Math.sin(f),
1290
- d * u - c * p * Math.cos(f)
1674
+ const k = (Te ** 2 - _ ** 2) / _ ** 2 * v, M = 1 + k / 16384 * (4096 + k * (-768 + k * (320 - 175 * k))), C = k / 1024 * (256 + k * (-128 + k * (74 - 47 * k))), O = C * w * (E + C / 4 * (y * (-1 + 2 * E ** 2) - C / 6 * E * (-3 + 4 * w ** 2) * (-3 + 4 * E ** 2))), Re = _ * M * (b - O), Ue = Math.atan2(
1675
+ p * Math.sin(g),
1676
+ d * h - c * p * Math.cos(g)
1291
1677
  );
1292
1678
  return {
1293
- distanceMeters: ge,
1294
- bearingRad: me,
1295
- iterations: y,
1679
+ distanceMeters: Re,
1680
+ bearingRad: Ue,
1681
+ iterations: f,
1296
1682
  converged: !0
1297
1683
  };
1298
1684
  }
1299
- function ht(s, t, e, o) {
1300
- const r = S(s), a = S(e), i = S(o - t), n = Math.atan((1 - I) * Math.tan(r)), l = Math.atan((1 - I) * Math.tan(a)), c = Math.sin(n), d = Math.cos(n), u = Math.sin(l), p = Math.cos(l), f = Math.sqrt(
1301
- (p * Math.sin(i)) ** 2 + (d * u - c * p * Math.cos(i)) ** 2
1302
- ), m = c * u + d * p * Math.cos(i), y = Math.atan2(f, m);
1303
- if (y === 0)
1685
+ function Wt(i, t, e, r) {
1686
+ const o = B(i), a = B(e), n = B(r - t), s = Math.atan((1 - T) * Math.tan(o)), l = Math.atan((1 - T) * Math.tan(a)), c = Math.sin(s), d = Math.cos(s), h = Math.sin(l), p = Math.cos(l), g = Math.sqrt(
1687
+ (p * Math.sin(n)) ** 2 + (d * h - c * p * Math.cos(n)) ** 2
1688
+ ), m = c * h + d * p * Math.cos(n), f = Math.atan2(g, m);
1689
+ if (f === 0)
1304
1690
  return { distanceMeters: 0, bearingRad: 0 };
1305
- const w = 1 - (d * p * Math.sin(i) / Math.sin(y)) ** 2, g = w === 0 ? 0 : m - 2 * c * u / w, A = (he ** 2 - B ** 2) / B ** 2 * w, x = 1 + A / 16384 * (4096 + A * (-768 + A * (320 - 175 * A))), L = A / 1024 * (256 + A * (-128 + A * (74 - 47 * A))), k = L * f * (g + L / 4 * (m * (-1 + 2 * g ** 2) - L / 6 * g * (-3 + 4 * f ** 2) * (-3 + 4 * g ** 2))), M = B * x * (y - k), C = Math.atan2(
1306
- p * Math.sin(i),
1307
- d * u - c * p * Math.cos(i)
1691
+ const w = 1 - (d * p * Math.sin(n) / Math.sin(f)) ** 2, y = w === 0 ? 0 : m - 2 * c * h / w, b = (Te ** 2 - _ ** 2) / _ ** 2 * w, v = 1 + b / 16384 * (4096 + b * (-768 + b * (320 - 175 * b))), E = b / 1024 * (256 + b * (-128 + b * (74 - 47 * b))), k = E * g * (y + E / 4 * (m * (-1 + 2 * y ** 2) - E / 6 * y * (-3 + 4 * g ** 2) * (-3 + 4 * y ** 2))), M = _ * v * (f - k), C = Math.atan2(
1692
+ p * Math.sin(n),
1693
+ d * h - c * p * Math.cos(n)
1308
1694
  );
1309
1695
  return { distanceMeters: M, bearingRad: C };
1310
1696
  }
1311
- const ut = {
1697
+ const $t = {
1312
1698
  position: "topleft",
1313
1699
  circleMarker: {
1314
1700
  color: "red",
@@ -1324,178 +1710,283 @@ const ut = {
1324
1710
  factor: null,
1325
1711
  label: "Bearing:"
1326
1712
  }
1327
- }, pt = {
1713
+ }, er = {
1328
1714
  display: "km",
1329
1715
  decimal: 2,
1330
1716
  factor: null,
1331
1717
  label: "Distance (km):"
1332
- }, ft = {
1718
+ }, tr = {
1333
1719
  display: "mi",
1334
1720
  decimal: 2,
1335
1721
  factor: 0.621371,
1336
1722
  label: "Distance (mi):"
1337
1723
  };
1338
- function gt(s) {
1339
- const t = s === "imperial" ? { ...ft } : { ...pt };
1724
+ function rr(i) {
1725
+ const t = i === "imperial" ? { ...tr } : { ...er };
1340
1726
  return {
1341
- ...ut,
1727
+ ...$t,
1342
1728
  lengthUnit: t
1343
1729
  };
1344
1730
  }
1345
- const mt = {
1731
+ const or = {
1346
1732
  metric: "Meters / Kilometers",
1347
1733
  imperial: "Feet / Miles"
1348
1734
  };
1349
- function V(s, t = {}) {
1350
- var a, i;
1351
- const e = !!((a = s == null ? void 0 : s.Control) != null && a.Draw), o = !!s.draw, r = e && o;
1352
- return r || (i = t.onError) == null || i.call(
1735
+ function q(i, t = {}) {
1736
+ var a, n;
1737
+ const e = !!((a = i == null ? void 0 : i.Control) != null && a.Draw), r = !!i.draw, o = e && r;
1738
+ return o || (n = t.onError) == null || n.call(
1353
1739
  t,
1354
1740
  "Leaflet.draw is not available on the provided Leaflet instance"
1355
- ), r;
1741
+ ), o;
1356
1742
  }
1357
- let ae = !1;
1358
- const yt = {
1743
+ let Ae = !1;
1744
+ const ir = {
1359
1745
  polygon: "tool:polygon:created",
1360
1746
  polyline: "tool:polyline:created",
1361
1747
  rectangle: "tool:rectangle:created",
1362
1748
  circle: "tool:circle:created",
1363
1749
  marker: "tool:marker:created"
1364
1750
  };
1365
- class At {
1751
+ class ar {
1366
1752
  constructor(t) {
1367
- h(this, "container");
1368
- h(this, "logger");
1369
- h(this, "options");
1753
+ u(this, "container");
1754
+ u(this, "logger");
1755
+ u(this, "options");
1370
1756
  // Active Leaflet namespace (injected or bundled fallback)
1371
- h(this, "L");
1757
+ u(this, "L");
1372
1758
  // Data store (id-centric)
1373
- h(this, "store");
1759
+ u(this, "store");
1374
1760
  // Leaflet entities
1375
- h(this, "map", null);
1376
- h(this, "tileLayer", null);
1377
- h(this, "drawnItems", null);
1761
+ u(this, "map", null);
1762
+ u(this, "tileLayer", null);
1763
+ u(this, "drawnItems", null);
1378
1764
  // Keep 'any' here to avoid type friction across different @types/leaflet-draw versions
1379
- h(this, "drawControl", null);
1380
- h(this, "rulerControl", null);
1381
- h(this, "measurementControl", null);
1382
- h(this, "measurementSystem", "metric");
1383
- h(this, "measurementModalOverlay", null);
1384
- h(this, "measurementModalDialog", null);
1385
- h(this, "measurementModalRadios", {});
1386
- h(this, "measurementModalKeydownHandler", null);
1765
+ u(this, "drawControl", null);
1766
+ u(this, "rulerControl", null);
1767
+ u(this, "measurementControl", null);
1768
+ u(this, "measurementSystem", "metric");
1769
+ u(this, "measurementModalOverlay", null);
1770
+ u(this, "measurementModalDialog", null);
1771
+ u(this, "measurementModalRadios", {});
1772
+ u(this, "measurementModalKeydownHandler", null);
1387
1773
  // Detacher for our polygon close-on-first-vertex patch
1388
- h(this, "detachPolygonFinishPatch", null);
1774
+ u(this, "detachPolygonFinishPatch", null);
1389
1775
  // Context menu for vertex deletion
1390
- h(this, "vertexMenuEl", null);
1391
- h(this, "vertexMenuCleanup", null);
1392
- h(this, "activeCakeSession", null);
1776
+ u(this, "vertexMenuEl", null);
1777
+ u(this, "vertexMenuCleanup", null);
1778
+ u(this, "vertexEditSurfaceCleanup", null);
1779
+ u(this, "activeCakeSession", null);
1393
1780
  // Move tool UI elements
1394
- h(this, "moveConfirmationUI", null);
1395
- h(this, "activeMoveHandler", null);
1396
- var e;
1397
- this.options = t, this.container = t.container, this.logger = ((e = t.logger) != null ? e : N("controller", "debug")).child(
1781
+ u(this, "moveConfirmationUI", null);
1782
+ u(this, "activeMoveHandler", null);
1783
+ u(this, "markerIconConfig", null);
1784
+ u(this, "markerIcon", null);
1785
+ u(this, "toolButtonConfig", null);
1786
+ u(this, "toolbarGroups", null);
1787
+ var e, r, o, a;
1788
+ this.options = t, this.container = t.container, this.logger = ((e = t.logger) != null ? e : G("controller", "debug")).child(
1398
1789
  "map"
1399
- ), this.L = this.resolveLeaflet(t), this.store = new Ze(this.logger.child("store")), this.logger.debug("ctor", {
1790
+ ), this.L = this.resolveLeaflet(t), this.store = new ut(this.logger.child("store")), this.setMarkerIconConfig((r = t.markerIconConfig) != null ? r : null, {
1791
+ reapplyExistingLayers: !1,
1792
+ syncDrawControl: !1
1793
+ }), this.toolButtonConfig = (o = t.toolButtonConfig) != null ? o : null, this.toolbarGroups = (a = t.toolbarGroups) != null ? a : null, this.logger.debug("ctor", {
1400
1794
  config: t.map,
1401
1795
  controls: t.controls,
1402
1796
  readOnly: t.readOnly,
1403
1797
  useExternalLeaflet: t.useExternalLeaflet
1404
- }), je(this.L), qe(this.L), Ye(this.L);
1798
+ }), Pt(this.L), zt(this.L), Ot(this.L);
1405
1799
  }
1406
1800
  emitToolEvent(t, e) {
1407
- var r, a;
1801
+ var o, a;
1408
1802
  try {
1409
- (a = (r = this.options.toolHooks) == null ? void 0 : r[t]) == null || a.call(r, e);
1410
- } catch (i) {
1411
- this._error(`tool hook failed: ${t}`, i);
1803
+ (a = (o = this.options.toolHooks) == null ? void 0 : o[t]) == null || a.call(o, e);
1804
+ } catch (n) {
1805
+ this._error(`tool hook failed: ${t}`, n);
1412
1806
  }
1413
- const o = this.options.toolEventEmitter;
1414
- if (o)
1807
+ const r = this.options.toolEventEmitter;
1808
+ if (r)
1415
1809
  try {
1416
- if (typeof o.emit == "function") {
1417
- o.emit(t, e);
1810
+ if (typeof r.emit == "function") {
1811
+ r.emit(t, e);
1418
1812
  return;
1419
1813
  }
1420
- typeof o.dispatchEvent == "function" && o.dispatchEvent(
1814
+ typeof r.dispatchEvent == "function" && r.dispatchEvent(
1421
1815
  new CustomEvent(t, {
1422
1816
  detail: e
1423
1817
  })
1424
1818
  );
1425
- } catch (i) {
1426
- this._error(`tool emitter failed: ${t}`, i);
1819
+ } catch (n) {
1820
+ this._error(`tool emitter failed: ${t}`, n);
1427
1821
  }
1428
1822
  }
1429
1823
  setToolObservers(t) {
1430
1824
  this.options.toolHooks = t.toolHooks, this.options.toolEventEmitter = t.toolEventEmitter;
1431
1825
  }
1826
+ setMarkerIconConfig(t, e = {}) {
1827
+ const { reapplyExistingLayers: r = !0, syncDrawControl: o = !0 } = e;
1828
+ this.options.markerIconConfig = t, this.markerIconConfig = t, this.markerIcon = this.createMarkerIcon(t), o && this.syncDrawMarkerOptions(), r && this.reapplyMarkerIconsToExistingLayers();
1829
+ }
1830
+ setToolButtonConfig(t) {
1831
+ this.options.toolButtonConfig = t != null ? t : null, this.toolButtonConfig = t != null ? t : null, this.applyToolButtonCustomizations();
1832
+ }
1833
+ setToolbarGroups(t) {
1834
+ this.options.toolbarGroups = t != null ? t : null, this.toolbarGroups = t != null ? t : null, this.applyToolButtonCustomizations();
1835
+ }
1836
+ activateTool(t, e = {}) {
1837
+ var o;
1838
+ const r = (o = e.source) != null ? o : "api";
1839
+ try {
1840
+ if (t === "select")
1841
+ return this.deactivateTool({ source: r, groupId: e.groupId });
1842
+ if (t === "layerStyle")
1843
+ return this.emitToolTrigger({
1844
+ tool: t,
1845
+ source: r,
1846
+ groupId: e.groupId,
1847
+ handled: !0
1848
+ }), !0;
1849
+ if (t === "measurementSettings")
1850
+ return this.toggleMeasurementModal(!0), this.emitToolTrigger({
1851
+ tool: t,
1852
+ source: r,
1853
+ groupId: e.groupId,
1854
+ handled: !0
1855
+ }), !0;
1856
+ if (t === "ruler") {
1857
+ const n = this.triggerRulerTool();
1858
+ return this.emitToolTrigger({
1859
+ tool: t,
1860
+ source: r,
1861
+ groupId: e.groupId,
1862
+ handled: n,
1863
+ error: n ? void 0 : "Ruler control is not available"
1864
+ }), n;
1865
+ }
1866
+ const a = this.findLeafletDrawHandler(t);
1867
+ return !a || typeof a.enable != "function" ? (this.emitToolTrigger({
1868
+ tool: t,
1869
+ source: r,
1870
+ groupId: e.groupId,
1871
+ handled: !1,
1872
+ error: `Tool "${t}" is not available on this map`
1873
+ }), !1) : (a.enable(), this.emitToolTrigger({
1874
+ tool: t,
1875
+ source: r,
1876
+ groupId: e.groupId,
1877
+ handled: !0
1878
+ }), !0);
1879
+ } catch (a) {
1880
+ const n = `Failed to activate tool "${t}"`;
1881
+ return this._error(n, a), this.emitToolTrigger({
1882
+ tool: t,
1883
+ source: r,
1884
+ groupId: e.groupId,
1885
+ handled: !1,
1886
+ error: a instanceof Error ? a.message : n
1887
+ }), !1;
1888
+ }
1889
+ }
1890
+ triggerTool(t, e = {}) {
1891
+ return this.activateTool(t, e);
1892
+ }
1893
+ deactivateTool(t = {}) {
1894
+ var r;
1895
+ const e = (r = t.source) != null ? r : "api";
1896
+ try {
1897
+ return this.disableActiveToolHandlers(), this.toggleMeasurementModal(!1), this.emitToolTrigger({
1898
+ tool: "select",
1899
+ source: e,
1900
+ groupId: t.groupId,
1901
+ handled: !0
1902
+ }), !0;
1903
+ } catch (o) {
1904
+ const a = "Failed to deactivate active map tools";
1905
+ return this._error(a, o), this.emitToolTrigger({
1906
+ tool: "select",
1907
+ source: e,
1908
+ groupId: t.groupId,
1909
+ handled: !1,
1910
+ error: o instanceof Error ? o.message : a
1911
+ }), !1;
1912
+ }
1913
+ }
1432
1914
  resolveLeaflet(t) {
1433
1915
  if (!t.useExternalLeaflet)
1434
- return v;
1435
- if (t.leaflet && V(t.leaflet))
1916
+ return x;
1917
+ if (t.leaflet && q(t.leaflet))
1436
1918
  return this.logger.debug("leaflet-runtime:external-injected"), t.leaflet;
1437
- const o = globalThis.L;
1438
- return o && V(o) ? (this.logger.debug("leaflet-runtime:external-global"), o) : (this.logger.warn("leaflet-runtime:external-fallback-bundled", {
1919
+ const r = globalThis.L;
1920
+ return r && q(r) ? (this.logger.debug("leaflet-runtime:external-global"), r) : (this.logger.warn("leaflet-runtime:external-fallback-bundled", {
1439
1921
  message: "External Leaflet requested but Draw APIs were missing; falling back to bundled Leaflet/Draw"
1440
- }), v);
1922
+ }), x);
1441
1923
  }
1442
1924
  // ---------------- Lifecycle ----------------
1443
1925
  async init() {
1444
- var e, o, r, a, i, n;
1445
- const t = (o = (e = performance.now) == null ? void 0 : e.call(performance)) != null ? o : Date.now();
1926
+ var e, r, o, a, n, s;
1927
+ const t = (r = (e = performance.now) == null ? void 0 : e.call(performance)) != null ? r : Date.now();
1446
1928
  try {
1447
1929
  await this.destroy();
1448
1930
  const {
1449
1931
  latitude: l,
1450
1932
  longitude: c,
1451
1933
  zoom: d,
1452
- minZoom: u,
1934
+ minZoom: h,
1453
1935
  maxZoom: p,
1454
- tileUrl: f,
1936
+ tileUrl: g,
1455
1937
  tileAttribution: m,
1456
- preferCanvas: y = !0,
1938
+ preferCanvas: f = !0,
1457
1939
  // Default to Canvas rendering for better performance
1458
- useExternalLeaflet: b
1459
- } = this.options.map, w = [l, c], g = this.L;
1460
- b && V(g, {
1940
+ useExternalLeaflet: A
1941
+ } = this.options.map, w = [l, c], y = this.L;
1942
+ A && q(y, {
1461
1943
  onError: (M) => this.logger.warn("external-leaflet-missing-draw", { message: M })
1462
- }), this.map = g.map(this.container, {
1944
+ }), this.map = y.map(this.container, {
1463
1945
  zoomControl: !0,
1464
- preferCanvas: y
1465
- }).setView(w, d), this.setTileLayer({
1466
- urlTemplate: f,
1467
- attribution: m != null ? m : "",
1468
- maxZoom: p
1469
- }), this.drawnItems = g.featureGroup().addTo(this.map);
1470
- const A = this.buildDrawOptions(
1946
+ minZoom: h,
1947
+ preferCanvas: f
1948
+ }).setView(w, d), this.setTileLayer(
1949
+ {
1950
+ urlTemplate: g,
1951
+ attribution: m != null ? m : "",
1952
+ maxZoom: p
1953
+ },
1954
+ {
1955
+ onTileError: (M) => {
1956
+ var C, O;
1957
+ (O = (C = this.options.callbacks) == null ? void 0 : C.onTileError) == null || O.call(C, M);
1958
+ }
1959
+ }
1960
+ ), this.drawnItems = y.featureGroup().addTo(this.map);
1961
+ const b = this.buildDrawOptions(
1471
1962
  this.options.controls,
1472
1963
  !!this.options.readOnly
1473
- ), x = g.Control.Draw;
1474
- this.drawControl = new x(A), this.map.addControl(this.drawControl), this.applyLayerCakeToolbarIcon(), this.applyMoveToolbarIcon(), this.options.controls.ruler && (this.logger.debug("init:ruler", {
1475
- available: typeof g.control.ruler == "function"
1476
- }), typeof g.control.ruler == "function" ? (this.addRulerControl(), this.installMeasurementSettingsControl()) : this.logger.warn("init:ruler:missing", {
1964
+ ), v = y.Control.Draw;
1965
+ this.drawControl = new v(b), this.map.addControl(this.drawControl), this.applyLayerCakeToolbarIcon(), this.applyMoveToolbarIcon(), this.restoreVisibleLayersFromStore(), this.options.controls.ruler && (this.logger.debug("init:ruler", {
1966
+ available: typeof y.control.ruler == "function"
1967
+ }), typeof y.control.ruler == "function" ? (this.addRulerControl(), this.installMeasurementSettingsControl()) : this.logger.warn("init:ruler:missing", {
1477
1968
  msg: "L.control.ruler is not defined"
1478
- })), this.patchLeafletDrawBugs(), this.installPolygonFinishPatch(), this.map.invalidateSize(), setTimeout(() => {
1969
+ })), this.applyToolButtonCustomizations(), this.patchLeafletDrawBugs(), this.installPolygonFinishPatch(), this.installVertexEditSurfaceMenu(), this.map.invalidateSize(), setTimeout(() => {
1479
1970
  var M;
1480
1971
  try {
1481
1972
  (M = this.map) == null || M.invalidateSize();
1482
1973
  } catch {
1483
1974
  }
1484
1975
  }, 0), this.bindDrawEvents();
1485
- const L = ((a = (r = performance.now) == null ? void 0 : r.call(performance)) != null ? a : Date.now()) - t;
1486
- this.logger.debug("init:ready", { elapsedMs: Math.round(L) });
1976
+ const E = ((a = (o = performance.now) == null ? void 0 : o.call(performance)) != null ? a : Date.now()) - t;
1977
+ this.logger.debug("init:ready", { elapsedMs: Math.round(E) });
1487
1978
  const k = this.store.bounds();
1488
- (n = (i = this.options.callbacks) == null ? void 0 : i.onReady) == null || n.call(i, k ? { bounds: k } : {});
1979
+ (s = (n = this.options.callbacks) == null ? void 0 : n.onReady) == null || s.call(n, k ? { bounds: k } : {});
1489
1980
  } catch (l) {
1490
1981
  this._error("Failed to initialize Leaflet map", l);
1491
1982
  }
1492
1983
  }
1493
1984
  async destroy() {
1494
- var t, e, o;
1985
+ var t, e, r, o;
1495
1986
  try {
1496
- this.map && (this.map.off(), this.map.remove());
1497
- } catch (r) {
1498
- this._error("Failed to remove Leaflet map", r);
1987
+ j(this.container, null, { toolbarGroups: null }), this.map && (this.map.off(), this.map.remove());
1988
+ } catch (a) {
1989
+ this._error("Failed to remove Leaflet map", a);
1499
1990
  }
1500
1991
  try {
1501
1992
  (t = this.detachPolygonFinishPatch) == null || t.call(this);
@@ -1507,6 +1998,11 @@ class At {
1507
1998
  } catch {
1508
1999
  }
1509
2000
  this.vertexMenuEl = null, this.vertexMenuCleanup = null;
2001
+ try {
2002
+ (r = this.vertexEditSurfaceCleanup) == null || r.call(this);
2003
+ } catch {
2004
+ }
2005
+ this.vertexEditSurfaceCleanup = null;
1510
2006
  try {
1511
2007
  this.hideMoveConfirmationUI();
1512
2008
  } catch {
@@ -1525,14 +2021,10 @@ class At {
1525
2021
  async loadGeoJSON(t, e = !1) {
1526
2022
  if (!this.map || !this.drawnItems) return;
1527
2023
  await this.clearLayers();
1528
- const o = te(t), r = this.store.add(o), a = this.L.geoJSON(o);
1529
- let i = 0;
1530
- a.eachLayer((n) => {
1531
- var l;
1532
- n._fid = (l = r[i]) != null ? l : r[r.length - 1], this.drawnItems.addLayer(n), this.installVertexContextMenu(n), i++;
1533
- }), this.logger.debug("loadGeoJSON", {
1534
- count: o.features.length,
1535
- ids: r
2024
+ const r = pe(t), o = this.store.add(r), a = this.createGeoJSONLayers(r);
2025
+ this.addGeoJSONLayersToDrawnItems(a), this.logger.debug("loadGeoJSON", {
2026
+ count: r.features.length,
2027
+ ids: o
1536
2028
  }), e && await this.fitBoundsToData();
1537
2029
  }
1538
2030
  async clearLayers() {
@@ -1540,15 +2032,23 @@ class At {
1540
2032
  }
1541
2033
  async addFeatures(t) {
1542
2034
  if (!this.map || !this.drawnItems) return [];
1543
- const e = te(t), o = this.store.add(e), r = this.L.geoJSON(e);
1544
- let a = 0;
1545
- return r.eachLayer((i) => {
1546
- var n;
1547
- i._fid = (n = o[a]) != null ? n : o[o.length - 1], this.drawnItems.addLayer(i), this.installVertexContextMenu(i), a++;
1548
- }), o;
2035
+ const e = pe(t), r = this.store.add(e), o = this.createGeoJSONLayers(e);
2036
+ return this.addGeoJSONLayersToDrawnItems(o), r;
1549
2037
  }
1550
2038
  async updateFeature(t, e) {
1551
- this.store.update(t, e);
2039
+ if (!this.store.has(t)) {
2040
+ this.logger.warn("updateFeature:missing", { id: t });
2041
+ return;
2042
+ }
2043
+ if (this.store.update(t, e), !this.drawnItems) return;
2044
+ this.drawnItems.eachLayer((o) => {
2045
+ o._fid === t && this.drawnItems.removeLayer(o);
2046
+ }), this.createGeoJSONLayers({
2047
+ type: "FeatureCollection",
2048
+ features: [{ ...e, id: t }]
2049
+ }).eachLayer((o) => {
2050
+ o._fid = t, this.drawnItems.addLayer(o), this.installVertexContextMenu(o);
2051
+ });
1552
2052
  }
1553
2053
  async removeFeature(t) {
1554
2054
  this.drawnItems && this.drawnItems.eachLayer((e) => {
@@ -1560,30 +2060,30 @@ class At {
1560
2060
  if (!this.map) return;
1561
2061
  const e = this.store.bounds();
1562
2062
  if (!e) return;
1563
- const o = e, r = this.L.latLngBounds(o);
2063
+ const r = e, o = this.L.latLngBounds(r);
1564
2064
  if (t > 0) {
1565
- const a = r.getSouthWest(), i = r.getNorthEast(), n = (i.lat - a.lat) * t, l = (i.lng - a.lng) * t, c = this.L.latLngBounds(
1566
- this.L.latLng(a.lat - n, a.lng - l),
1567
- this.L.latLng(i.lat + n, i.lng + l)
2065
+ const a = o.getSouthWest(), n = o.getNorthEast(), s = (n.lat - a.lat) * t, l = (n.lng - a.lng) * t, c = this.L.latLngBounds(
2066
+ this.L.latLng(a.lat - s, a.lng - l),
2067
+ this.L.latLng(n.lat + s, n.lng + l)
1568
2068
  );
1569
2069
  this.map.fitBounds(c);
1570
2070
  } else
1571
- this.map.fitBounds(r);
2071
+ this.map.fitBounds(o);
1572
2072
  }
1573
2073
  async fitBounds(t, e = 0.05) {
1574
2074
  if (!this.map) return;
1575
- const o = this.L.latLngBounds(t);
2075
+ const r = this.L.latLngBounds(t);
1576
2076
  if (e > 0) {
1577
- const r = o.getSouthWest(), a = o.getNorthEast(), i = (a.lat - r.lat) * e, n = (a.lng - r.lng) * e, l = this.L.latLngBounds(
1578
- this.L.latLng(r.lat - i, r.lng - n),
1579
- this.L.latLng(a.lat + i, a.lng + n)
2077
+ const o = r.getSouthWest(), a = r.getNorthEast(), n = (a.lat - o.lat) * e, s = (a.lng - o.lng) * e, l = this.L.latLngBounds(
2078
+ this.L.latLng(o.lat - n, o.lng - s),
2079
+ this.L.latLng(a.lat + n, a.lng + s)
1580
2080
  );
1581
2081
  this.map.fitBounds(l);
1582
2082
  } else
1583
- this.map.fitBounds(o);
2083
+ this.map.fitBounds(r);
1584
2084
  }
1585
- async setView(t, e, o) {
1586
- this.map && this.map.setView([t, e], o != null ? o : this.map.getZoom());
2085
+ async setView(t, e, r) {
2086
+ this.map && this.map.setView([t, e], r != null ? r : this.map.getZoom());
1587
2087
  }
1588
2088
  setTileLayer(t, e) {
1589
2089
  if (!this.map) {
@@ -1598,21 +2098,21 @@ class At {
1598
2098
  maxZoom: t.maxZoom,
1599
2099
  subdomains: t.subdomains
1600
2100
  }), this.tileLayer && (this.map.removeLayer(this.tileLayer), this.tileLayer = null);
1601
- const o = {
2101
+ const r = {
1602
2102
  attribution: t.attribution,
1603
2103
  minZoom: this.options.map.minZoom,
1604
2104
  maxZoom: t.maxZoom
1605
2105
  };
1606
- t.subdomains !== void 0 ? o.subdomains = t.subdomains : t.urlTemplate.includes("{s}") && (o.subdomains = ["a", "b", "c"]);
1607
- const r = this.L.tileLayer(
2106
+ t.subdomains !== void 0 ? r.subdomains = t.subdomains : t.urlTemplate.includes("{s}") && (r.subdomains = ["a", "b", "c"]);
2107
+ const o = this.L.tileLayer(
1608
2108
  t.urlTemplate,
1609
- o
2109
+ r
1610
2110
  );
1611
2111
  let a = !1;
1612
- r.on("tileerror", (i) => {
1613
- var n;
1614
- this.logger.error("tile-layer:error", { error: i }), a || (a = !0, (n = e == null ? void 0 : e.onTileError) == null || n.call(e, i));
1615
- }), r.addTo(this.map), this.tileLayer = r;
2112
+ o.on("tileerror", (n) => {
2113
+ var s;
2114
+ this.logger.error("tile-layer:error", { error: n }), a || (a = !0, (s = e == null ? void 0 : e.onTileError) == null || s.call(e, n));
2115
+ }), o.addTo(this.map), this.tileLayer = o;
1616
2116
  }
1617
2117
  /**
1618
2118
  * Merge all visible polygon features into a single polygon feature.
@@ -1623,31 +2123,31 @@ class At {
1623
2123
  */
1624
2124
  async mergeVisiblePolygons(t) {
1625
2125
  if (!this.map || !this.drawnItems) return null;
1626
- const o = (await this.getGeoJSON()).features.filter((n) => {
1627
- const l = n.geometry;
1628
- return l && (ce(l) || de(l));
2126
+ const r = (await this.getGeoJSON()).features.filter((s) => {
2127
+ const l = s.geometry;
2128
+ return l && (ke(l) || Ee(l));
1629
2129
  });
1630
- if (o.length <= 1) {
1631
- if (o.length === 1) {
1632
- const n = o[0].id;
1633
- return n ? String(n) : null;
2130
+ if (r.length <= 1) {
2131
+ if (r.length === 1) {
2132
+ const s = r[0].id;
2133
+ return s ? String(s) : null;
1634
2134
  }
1635
2135
  return null;
1636
2136
  }
1637
- const r = Je(o, t == null ? void 0 : t.properties);
1638
- if (!r) return null;
2137
+ const o = dt(r, t == null ? void 0 : t.properties);
2138
+ if (!o) return null;
1639
2139
  const a = [];
1640
- for (const n of o) {
1641
- const l = n.id;
2140
+ for (const s of r) {
2141
+ const l = s.id;
1642
2142
  l && a.push(String(l));
1643
2143
  }
1644
- for (const n of a)
1645
- await this.removeFeature(n);
1646
- const [i] = await this.addFeatures({
2144
+ for (const s of a)
2145
+ await this.removeFeature(s);
2146
+ const [n] = await this.addFeatures({
1647
2147
  type: "FeatureCollection",
1648
- features: [r]
2148
+ features: [o]
1649
2149
  });
1650
- return i || null;
2150
+ return n || null;
1651
2151
  }
1652
2152
  setRulerUnits(t) {
1653
2153
  if (this.measurementSystem === t) return;
@@ -1660,7 +2160,7 @@ class At {
1660
2160
  // ---------------- Internals ----------------
1661
2161
  buildDrawOptions(t, e) {
1662
2162
  var a;
1663
- const o = {
2163
+ const r = {
1664
2164
  polygon: t.polygon ? {
1665
2165
  allowIntersection: (a = this.options.map.polygonAllowIntersection) != null ? a : !1,
1666
2166
  // Disallow self-intersections by default
@@ -1693,18 +2193,164 @@ class At {
1693
2193
  fillOpacity: 0.2
1694
2194
  }
1695
2195
  } : !1,
1696
- marker: t.marker ? {} : !1,
2196
+ marker: t.marker ? this.buildMarkerDrawOptions() : !1,
1697
2197
  move: t.move ? {
1698
2198
  featureGroup: this.drawnItems
1699
2199
  } : !1
1700
2200
  };
1701
- let r = {
2201
+ let o = {
1702
2202
  featureGroup: this.drawnItems
1703
2203
  };
1704
- return t.edit ? t.delete === !1 && (r.remove = !1) : r = !1, e ? {
2204
+ return t.edit ? t.delete === !1 && (o.remove = !1) : o = !1, e ? {
1705
2205
  draw: !1,
1706
2206
  edit: !1
1707
- } : { draw: o, edit: r };
2207
+ } : { draw: r, edit: o };
2208
+ }
2209
+ buildMarkerDrawOptions() {
2210
+ return this.markerIcon ? { icon: this.markerIcon } : {};
2211
+ }
2212
+ createMarkerIcon(t) {
2213
+ return t ? this.L.icon({
2214
+ iconUrl: t.iconUrl,
2215
+ iconRetinaUrl: t.iconRetinaUrl,
2216
+ shadowUrl: t.shadowUrl,
2217
+ iconSize: t.iconSize,
2218
+ iconAnchor: t.iconAnchor,
2219
+ popupAnchor: t.popupAnchor
2220
+ }) : null;
2221
+ }
2222
+ createDefaultMarkerIcon() {
2223
+ var e;
2224
+ const t = (e = this.L.Icon) == null ? void 0 : e.Default;
2225
+ return t ? new t() : null;
2226
+ }
2227
+ createGeoJSONLayers(t) {
2228
+ return this.L.geoJSON(t, {
2229
+ pointToLayer: (e, r) => this.markerIcon ? this.L.marker(r, { icon: this.markerIcon }) : this.L.marker(r),
2230
+ onEachFeature: (e, r) => {
2231
+ const o = se(e);
2232
+ o && (r._fid = o);
2233
+ }
2234
+ });
2235
+ }
2236
+ addGeoJSONLayersToDrawnItems(t) {
2237
+ this.drawnItems && t.eachLayer((e) => {
2238
+ this.drawnItems.addLayer(e), this.installVertexContextMenu(e);
2239
+ });
2240
+ }
2241
+ restoreVisibleLayersFromStore() {
2242
+ if (!this.drawnItems)
2243
+ return;
2244
+ const t = this.store.toFeatureCollection();
2245
+ if (t.features.length === 0)
2246
+ return;
2247
+ const e = this.createGeoJSONLayers(t);
2248
+ this.addGeoJSONLayersToDrawnItems(e);
2249
+ }
2250
+ syncDrawMarkerOptions() {
2251
+ var r, o, a, n;
2252
+ const t = this.drawControl;
2253
+ if (!t)
2254
+ return;
2255
+ const e = this.buildMarkerDrawOptions();
2256
+ (r = t.options) != null || (t.options = {}), (a = (o = t.options).draw) != null || (o.draw = {}), t.options.draw.marker = e, (n = t.setDrawingOptions) == null || n.call(t, { marker: e });
2257
+ }
2258
+ reapplyMarkerIconsToExistingLayers() {
2259
+ if (!this.drawnItems)
2260
+ return;
2261
+ const t = this.markerIcon ? null : this.createDefaultMarkerIcon();
2262
+ this.drawnItems.eachLayer((e) => {
2263
+ if (!(typeof (e == null ? void 0 : e.setIcon) != "function" || typeof (e == null ? void 0 : e.getLatLng) != "function")) {
2264
+ if (this.markerIcon) {
2265
+ e.setIcon(this.markerIcon);
2266
+ return;
2267
+ }
2268
+ t && e.setIcon(t);
2269
+ }
2270
+ });
2271
+ }
2272
+ applyToolButtonCustomizations() {
2273
+ j(this.container, this.toolButtonConfig, {
2274
+ toolbarGroups: this.toolbarGroups,
2275
+ onTrigger: (t, e) => {
2276
+ if (e.activate) {
2277
+ this.activateTool(t, {
2278
+ source: e.source,
2279
+ groupId: e.groupId
2280
+ });
2281
+ return;
2282
+ }
2283
+ this.emitToolTrigger({
2284
+ tool: t,
2285
+ source: e.source,
2286
+ groupId: e.groupId,
2287
+ handled: !0
2288
+ });
2289
+ }
2290
+ }), setTimeout(() => {
2291
+ j(this.container, this.toolButtonConfig, {
2292
+ toolbarGroups: this.toolbarGroups,
2293
+ onTrigger: (t, e) => {
2294
+ if (e.activate) {
2295
+ this.activateTool(t, {
2296
+ source: e.source,
2297
+ groupId: e.groupId
2298
+ });
2299
+ return;
2300
+ }
2301
+ this.emitToolTrigger({
2302
+ tool: t,
2303
+ source: e.source,
2304
+ groupId: e.groupId,
2305
+ handled: !0
2306
+ });
2307
+ }
2308
+ });
2309
+ }, 0);
2310
+ }
2311
+ emitToolTrigger(t) {
2312
+ var e, r;
2313
+ (r = (e = this.options.callbacks) == null ? void 0 : e.onToolTrigger) == null || r.call(e, {
2314
+ ...t,
2315
+ timestamp: Date.now()
2316
+ });
2317
+ }
2318
+ findLeafletDrawHandler(t) {
2319
+ var n, s, l, c, d, h, p, g, m, f;
2320
+ const e = {
2321
+ polygon: "polygon",
2322
+ polyline: "polyline",
2323
+ rectangle: "rectangle",
2324
+ circle: "circle",
2325
+ marker: "marker",
2326
+ layerCake: "cake",
2327
+ move: "move"
2328
+ }, r = {
2329
+ edit: "edit",
2330
+ delete: "remove"
2331
+ }, o = e[t];
2332
+ if (o)
2333
+ return (d = (c = (l = (s = (n = this.drawControl) == null ? void 0 : n._toolbars) == null ? void 0 : s.draw) == null ? void 0 : l._modes) == null ? void 0 : c[o]) == null ? void 0 : d.handler;
2334
+ const a = r[t];
2335
+ return a ? (f = (m = (g = (p = (h = this.drawControl) == null ? void 0 : h._toolbars) == null ? void 0 : p.edit) == null ? void 0 : g._modes) == null ? void 0 : m[a]) == null ? void 0 : f.handler : null;
2336
+ }
2337
+ disableActiveToolHandlers() {
2338
+ var e;
2339
+ const t = (e = this.drawControl) == null ? void 0 : e._toolbars;
2340
+ t && Object.values(t).forEach((r) => {
2341
+ var o;
2342
+ Object.values((o = r == null ? void 0 : r._modes) != null ? o : {}).forEach((a) => {
2343
+ const n = a == null ? void 0 : a.handler;
2344
+ n && typeof n.disable == "function" && n.disable();
2345
+ });
2346
+ });
2347
+ }
2348
+ triggerRulerTool() {
2349
+ const t = this.rulerControl;
2350
+ if (typeof (t == null ? void 0 : t._toggleMeasure) == "function")
2351
+ return t._toggleMeasure(), !0;
2352
+ const e = this.container.querySelector(".leaflet-ruler");
2353
+ return e ? (e.click(), !0) : !1;
1708
2354
  }
1709
2355
  applyLayerCakeToolbarIcon() {
1710
2356
  if (!this.container) return;
@@ -1714,12 +2360,12 @@ class At {
1714
2360
  );
1715
2361
  if (!e) return;
1716
2362
  e.style.setProperty("background-image", "none", "important"), e.style.setProperty("background-color", "#fff", "important"), e.style.setProperty("position", "relative", "important");
1717
- let o = e.querySelector(
2363
+ let r = e.querySelector(
1718
2364
  ".leaflet-geokit-cake-icon"
1719
2365
  );
1720
- 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 = it);
1721
- const r = o.firstElementChild;
1722
- r && (r.style.setProperty("width", "100%", "important"), r.style.setProperty("height", "100%", "important"), r.style.setProperty("display", "block", "important"));
2366
+ r || (r = document.createElement("span"), r.className = "leaflet-geokit-cake-icon", r.setAttribute("aria-hidden", "true"), e.appendChild(r)), r.style.setProperty("position", "absolute", "important"), r.style.setProperty("display", "block", "important"), r.style.setProperty("left", "50%", "important"), r.style.setProperty("top", "50%", "important"), r.style.setProperty("width", "18px", "important"), r.style.setProperty("height", "18px", "important"), r.style.setProperty("transform", "translate(-50%, -50%)", "important"), r.style.setProperty("pointer-events", "none", "important"), r.firstElementChild || (r.innerHTML = Zt);
2367
+ const o = r.firstElementChild;
2368
+ o && (o.style.setProperty("width", "100%", "important"), o.style.setProperty("height", "100%", "important"), o.style.setProperty("display", "block", "important"));
1723
2369
  };
1724
2370
  t(), setTimeout(t, 0);
1725
2371
  }
@@ -1731,12 +2377,12 @@ class At {
1731
2377
  );
1732
2378
  if (!e) return;
1733
2379
  e.style.setProperty("background-image", "none", "important"), e.style.setProperty("background-color", "#fff", "important"), e.style.setProperty("position", "relative", "important");
1734
- let o = e.querySelector(
2380
+ let r = e.querySelector(
1735
2381
  ".leaflet-geokit-move-icon"
1736
2382
  );
1737
- 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 = at);
1738
- const r = o.firstElementChild;
1739
- r && (r.style.setProperty("width", "100%", "important"), r.style.setProperty("height", "100%", "important"), r.style.setProperty("display", "block", "important"));
2383
+ r || (r = document.createElement("span"), r.className = "leaflet-geokit-move-icon", r.setAttribute("aria-hidden", "true"), e.appendChild(r)), r.style.setProperty("position", "absolute", "important"), r.style.setProperty("display", "block", "important"), r.style.setProperty("left", "50%", "important"), r.style.setProperty("top", "50%", "important"), r.style.setProperty("width", "18px", "important"), r.style.setProperty("height", "18px", "important"), r.style.setProperty("transform", "translate(-50%, -50%)", "important"), r.style.setProperty("pointer-events", "none", "important"), r.firstElementChild || (r.innerHTML = jt);
2384
+ const o = r.firstElementChild;
2385
+ o && (o.style.setProperty("width", "100%", "important"), o.style.setProperty("height", "100%", "important"), o.style.setProperty("display", "block", "important"));
1740
2386
  };
1741
2387
  t(), setTimeout(t, 0);
1742
2388
  }
@@ -1744,33 +2390,33 @@ class At {
1744
2390
  addRulerControl() {
1745
2391
  if (!this.map) return;
1746
2392
  this.installRulerPrecisionPatch();
1747
- const t = gt(this.measurementSystem);
2393
+ const t = rr(this.measurementSystem);
1748
2394
  this.rulerControl = this.L.control.ruler(t), this.map.addControl(this.rulerControl);
1749
2395
  }
1750
2396
  installRulerPrecisionPatch() {
1751
- if (ae) return;
2397
+ if (Ae) return;
1752
2398
  const t = this.L.Control.Ruler;
1753
2399
  if (!t || typeof t != "function") return;
1754
- const e = t.prototype, o = e._calculateBearingAndDistance;
1755
- if (typeof o != "function") return;
1756
- const r = this.logger;
2400
+ const e = t.prototype, r = e._calculateBearingAndDistance;
2401
+ if (typeof r != "function") return;
2402
+ const o = this.logger;
1757
2403
  e._calculateBearingAndDistance = function() {
1758
- var i, n, l;
1759
- o.call(this);
2404
+ var n, s, l;
2405
+ r.call(this);
1760
2406
  try {
1761
- const c = this._clickedLatLong, d = (i = this._movingLatLong) != null ? i : this._clickedLatLong;
2407
+ const c = this._clickedLatLong, d = (n = this._movingLatLong) != null ? n : this._clickedLatLong;
1762
2408
  if (!c || !d) return;
1763
- const { meters: u, bearingDegrees: p } = ct(
2409
+ const { meters: h, bearingDegrees: p } = Qt(
1764
2410
  c.lat,
1765
2411
  c.lng,
1766
2412
  d.lat,
1767
2413
  d.lng
1768
- ), f = u / 1e3, m = typeof ((l = (n = this.options) == null ? void 0 : n.lengthUnit) == null ? void 0 : l.factor) == "number" ? this.options.lengthUnit.factor : 1, y = j(f * m);
1769
- this._result = this._result || {}, this._result.Distance = y, this._result.Bearing = p, this._result.meters = u;
2414
+ ), g = h / 1e3, m = typeof ((l = (s = this.options) == null ? void 0 : s.lengthUnit) == null ? void 0 : l.factor) == "number" ? this.options.lengthUnit.factor : 1, f = ae(g * m);
2415
+ this._result = this._result || {}, this._result.Distance = f, this._result.Bearing = p, this._result.meters = h;
1770
2416
  } catch (c) {
1771
- r == null || r.warn("ruler:precision-patch", c);
2417
+ o == null || o.warn("ruler:precision-patch", c);
1772
2418
  }
1773
- }, ae = !0;
2419
+ }, Ae = !0;
1774
2420
  }
1775
2421
  rebuildRulerControl() {
1776
2422
  if (!(!this.map || !this.options.controls.ruler)) {
@@ -1791,17 +2437,17 @@ class At {
1791
2437
  const t = this, e = this.L.Control.extend({
1792
2438
  options: { position: "topleft" },
1793
2439
  onAdd() {
1794
- const o = t.L.DomUtil.create(
2440
+ const r = t.L.DomUtil.create(
1795
2441
  "div",
1796
2442
  "leaflet-bar leaflet-ruler-settings-control"
1797
- ), r = t.L.DomUtil.create(
2443
+ ), o = t.L.DomUtil.create(
1798
2444
  "button",
1799
2445
  "leaflet-ruler-settings-button",
1800
- o
2446
+ r
1801
2447
  );
1802
- return r.type = "button", r.title = "Measurement settings", r.setAttribute("aria-label", "Measurement settings"), r.addEventListener("click", (a) => {
2448
+ return o.type = "button", o.title = "Measurement settings", o.setAttribute("aria-label", "Measurement settings"), o.addEventListener("click", (a) => {
1803
2449
  a.preventDefault(), a.stopPropagation(), t.toggleMeasurementModal(!0);
1804
- }), t.L.DomEvent.disableClickPropagation(o), t.L.DomEvent.disableScrollPropagation(o), o;
2450
+ }), t.L.DomEvent.disableClickPropagation(r), t.L.DomEvent.disableScrollPropagation(r), r;
1805
2451
  }
1806
2452
  });
1807
2453
  this.measurementControl = new e(), this.map.addControl(this.measurementControl);
@@ -1817,10 +2463,10 @@ class At {
1817
2463
  e.className = "leaflet-ruler-modal", e.setAttribute("role", "dialog"), e.setAttribute("aria-modal", "true"), e.tabIndex = -1, t.addEventListener("click", (l) => {
1818
2464
  l.target === t && this.toggleMeasurementModal(!1);
1819
2465
  });
1820
- const o = document.createElement("h2");
1821
- o.className = "leaflet-ruler-modal-title", o.textContent = "Measurement Units", e.appendChild(o);
1822
- const r = document.createElement("p");
1823
- r.className = "leaflet-ruler-modal-description", r.textContent = "Choose how the measurement tool reports distances.", e.appendChild(r);
2466
+ const r = document.createElement("h2");
2467
+ r.className = "leaflet-ruler-modal-title", r.textContent = "Measurement Units", e.appendChild(r);
2468
+ const o = document.createElement("p");
2469
+ o.className = "leaflet-ruler-modal-description", o.textContent = "Choose how the measurement tool reports distances.", e.appendChild(o);
1824
2470
  const a = document.createElement("div");
1825
2471
  a.className = "leaflet-ruler-modal-options", e.appendChild(a), ["metric", "imperial"].forEach((l) => {
1826
2472
  const c = document.createElement("label");
@@ -1829,23 +2475,23 @@ class At {
1829
2475
  d.type = "radio", d.name = "leaflet-ruler-units", d.value = l, d.addEventListener("change", () => {
1830
2476
  d.checked && this.setRulerUnits(l);
1831
2477
  });
1832
- const u = document.createElement("span");
1833
- u.textContent = mt[l], c.appendChild(d), c.appendChild(u), a.appendChild(c), this.measurementModalRadios[l] = d;
2478
+ const h = document.createElement("span");
2479
+ h.textContent = or[l], c.appendChild(d), c.appendChild(h), a.appendChild(c), this.measurementModalRadios[l] = d;
1834
2480
  });
1835
- const i = document.createElement("div");
1836
- i.className = "leaflet-ruler-modal-actions";
1837
- const n = document.createElement("button");
1838
- return n.type = "button", n.className = "leaflet-ruler-modal-close", n.textContent = "Close", n.addEventListener("click", () => this.toggleMeasurementModal(!1)), i.appendChild(n), e.appendChild(i), t.appendChild(e), this.container.appendChild(t), this.measurementModalOverlay = t, this.measurementModalDialog = e, this.syncMeasurementModalState(), t;
2481
+ const n = document.createElement("div");
2482
+ n.className = "leaflet-ruler-modal-actions";
2483
+ const s = document.createElement("button");
2484
+ return s.type = "button", s.className = "leaflet-ruler-modal-close", s.textContent = "Close", s.addEventListener("click", () => this.toggleMeasurementModal(!1)), n.appendChild(s), e.appendChild(n), t.appendChild(e), this.container.appendChild(t), this.measurementModalOverlay = t, this.measurementModalDialog = e, this.syncMeasurementModalState(), t;
1839
2485
  }
1840
2486
  /* c8 ignore next */
1841
2487
  toggleMeasurementModal(t) {
1842
- var o;
2488
+ var r;
1843
2489
  if (!t) {
1844
2490
  this.measurementModalOverlay && (this.measurementModalOverlay.classList.remove("is-open"), this.measurementModalOverlay.setAttribute("aria-hidden", "true")), this.detachMeasurementModalKeydown();
1845
2491
  return;
1846
2492
  }
1847
2493
  const e = this.ensureMeasurementModal();
1848
- e.classList.add("is-open"), e.setAttribute("aria-hidden", "false"), this.syncMeasurementModalState(), this.attachMeasurementModalKeydown(), (o = this.measurementModalDialog) == null || o.focus();
2494
+ e.classList.add("is-open"), e.setAttribute("aria-hidden", "false"), this.syncMeasurementModalState(), this.attachMeasurementModalKeydown(), (r = this.measurementModalDialog) == null || r.focus();
1849
2495
  }
1850
2496
  syncMeasurementModalState() {
1851
2497
  for (const [t, e] of Object.entries(this.measurementModalRadios))
@@ -1876,28 +2522,28 @@ class At {
1876
2522
  * if the click is within a small pixel radius of the first vertex, it triggers finishShape().
1877
2523
  */
1878
2524
  installPolygonFinishPatch() {
1879
- var i, n, l, c, d;
2525
+ var n, s, l, c, d;
1880
2526
  if (!this.map || !this.drawControl) return;
1881
2527
  try {
1882
- (i = this.detachPolygonFinishPatch) == null || i.call(this);
2528
+ (n = this.detachPolygonFinishPatch) == null || n.call(this);
1883
2529
  } catch {
1884
2530
  }
1885
2531
  this.detachPolygonFinishPatch = null;
1886
- const t = this.map, e = (l = (n = this.drawControl) == null ? void 0 : n._toolbars) == null ? void 0 : l.draw;
2532
+ const t = this.map, e = (l = (s = this.drawControl) == null ? void 0 : s._toolbars) == null ? void 0 : l.draw;
1887
2533
  if (!e || !!!((d = (c = e._modes) == null ? void 0 : c.polygon) != null && d.handler)) return;
1888
- const r = 10, a = (u) => {
1889
- var p, f, m, y, b, w, g, A;
2534
+ const o = 10, a = (h) => {
2535
+ var p, g, m, f, A, w, y, b;
1890
2536
  try {
1891
- const x = (f = (p = e._modes) == null ? void 0 : p.polygon) == null ? void 0 : f.handler;
1892
- if (!x || !x._enabled) return;
1893
- const L = x._markers;
1894
- if (!Array.isArray(L) || L.length < 4) return;
1895
- const k = (y = (m = L[0]) == null ? void 0 : m.getLatLng) == null ? void 0 : y.call(m);
2537
+ const v = (g = (p = e._modes) == null ? void 0 : p.polygon) == null ? void 0 : g.handler;
2538
+ if (!v || !v._enabled) return;
2539
+ const E = v._markers;
2540
+ if (!Array.isArray(E) || E.length < 3) return;
2541
+ const k = (f = (m = E[0]) == null ? void 0 : m.getLatLng) == null ? void 0 : f.call(m);
1896
2542
  if (!k) return;
1897
- const M = t.latLngToContainerPoint(k), C = t.latLngToContainerPoint(u.latlng);
1898
- Math.hypot(M.x - C.x, M.y - C.y) <= r && typeof x._finishShape == "function" && ((w = (b = u.originalEvent) == null ? void 0 : b.preventDefault) == null || w.call(b), (A = (g = u.originalEvent) == null ? void 0 : g.stopPropagation) == null || A.call(g), x._finishShape());
1899
- } catch (x) {
1900
- this._error("polygon-finish-patch", x);
2543
+ const M = t.latLngToContainerPoint(k), C = t.latLngToContainerPoint(h.latlng);
2544
+ Math.hypot(M.x - C.x, M.y - C.y) <= o && typeof v._finishShape == "function" && ((w = (A = h.originalEvent) == null ? void 0 : A.preventDefault) == null || w.call(A), (b = (y = h.originalEvent) == null ? void 0 : y.stopPropagation) == null || b.call(y), v._finishShape());
2545
+ } catch (v) {
2546
+ this._error("polygon-finish-patch", v);
1901
2547
  }
1902
2548
  };
1903
2549
  t.on("click", a), this.detachPolygonFinishPatch = () => {
@@ -1908,10 +2554,10 @@ class At {
1908
2554
  };
1909
2555
  }
1910
2556
  patchLeafletDrawBugs() {
1911
- var t, e, o, r, a;
2557
+ var t, e, r, o, a;
1912
2558
  try {
1913
- const i = this.L, n = i.GeometryUtil;
1914
- if (!n) return;
2559
+ const n = this.L, s = n.GeometryUtil;
2560
+ if (!s) return;
1915
2561
  const l = {
1916
2562
  km: 2,
1917
2563
  ha: 2,
@@ -1921,34 +2567,34 @@ class At {
1921
2567
  yd: 0,
1922
2568
  ft: 0,
1923
2569
  nm: 2
1924
- }, c = (e = (t = n.formattedNumber) == null ? void 0 : t.bind(n)) != null ? e : ((d, u) => Number(d).toFixed(u));
1925
- n.readableArea = (d, u, p) => {
1926
- var y;
1927
- const f = (y = i.Util) != null && y.extend ? i.Util.extend({}, l, p || {}) : { ...l, ...p || {} };
2570
+ }, c = (e = (t = s.formattedNumber) == null ? void 0 : t.bind(s)) != null ? e : ((d, h) => Number(d).toFixed(h));
2571
+ s.readableArea = (d, h, p) => {
2572
+ var f;
2573
+ const g = (f = n.Util) != null && f.extend ? n.Util.extend({}, l, p || {}) : { ...l, ...p || {} };
1928
2574
  let m;
1929
- if (u) {
1930
- let b = ["ha", "m"];
1931
- const w = typeof u;
1932
- w === "string" ? b = [u] : w !== "boolean" && (b = Array.isArray(u) ? u : b), d >= 1e6 && b.indexOf("km") !== -1 ? m = `${c(1e-6 * d, f.km)} km²` : d >= 1e4 && b.indexOf("ha") !== -1 ? m = `${c(1e-4 * d, f.ha)} ha` : m = `${c(d, f.m)} m²`;
2575
+ if (h) {
2576
+ let A = ["ha", "m"];
2577
+ const w = typeof h;
2578
+ w === "string" ? A = [h] : w !== "boolean" && (A = Array.isArray(h) ? h : A), d >= 1e6 && A.indexOf("km") !== -1 ? m = `${c(1e-6 * d, g.km)} km²` : d >= 1e4 && A.indexOf("ha") !== -1 ? m = `${c(1e-4 * d, g.ha)} ha` : m = `${c(d, g.m)} m²`;
1933
2579
  } else
1934
- d = d / 0.836127, d >= 3097600 ? m = `${c(d / 3097600, f.mi)} mi²` : d >= 4840 ? m = `${c(d / 4840, f.ac)} acres` : m = `${c(d, f.yd)} yd²`;
2580
+ d = d / 0.836127, d >= 3097600 ? m = `${c(d / 3097600, g.mi)} mi²` : d >= 4840 ? m = `${c(d / 4840, g.ac)} acres` : m = `${c(d, g.yd)} yd²`;
1935
2581
  return m;
1936
2582
  };
1937
- } catch (i) {
1938
- this.logger.warn("leaflet-draw-patch:readableArea", i);
2583
+ } catch (n) {
2584
+ this.logger.warn("leaflet-draw-patch:readableArea", n);
1939
2585
  }
1940
2586
  try {
1941
- const i = this.L, n = (o = i.Edit) == null ? void 0 : o.Circle, l = (r = i.Draw) == null ? void 0 : r.Event, c = i.GeometryUtil;
1942
- if (!((a = n == null ? void 0 : n.prototype) != null && a._resize) || !l || !c) return;
1943
- n.prototype._resize = function(u) {
1944
- var m, y, b;
1945
- const p = this._moveMarker.getLatLng(), f = c.isVersion07x() ? p.distanceTo(u) : this._map.distance(p, u);
1946
- this._shape.setRadius(f);
2587
+ const n = this.L, s = (r = n.Edit) == null ? void 0 : r.Circle, l = (o = n.Draw) == null ? void 0 : o.Event, c = n.GeometryUtil;
2588
+ if (!((a = s == null ? void 0 : s.prototype) != null && a._resize) || !l || !c) return;
2589
+ s.prototype._resize = function(h) {
2590
+ var m, f, A;
2591
+ const p = this._moveMarker.getLatLng(), g = c.isVersion07x() ? p.distanceTo(h) : this._map.distance(p, h);
2592
+ this._shape.setRadius(g);
1947
2593
  try {
1948
- (m = this._map) != null && m.editTooltip && ((b = (y = this._map) == null ? void 0 : y._editTooltip) != null && b.updateContent) && this._map._editTooltip.updateContent({
1949
- text: i.drawLocal.edit.handlers.edit.tooltip.subtext + "<br />" + i.drawLocal.edit.handlers.edit.tooltip.text,
1950
- subtext: i.drawLocal.draw.handlers.circle.radius + ": " + c.readableDistance(
1951
- f,
2594
+ (m = this._map) != null && m.editTooltip && ((A = (f = this._map) == null ? void 0 : f._editTooltip) != null && A.updateContent) && this._map._editTooltip.updateContent({
2595
+ text: n.drawLocal.edit.handlers.edit.tooltip.subtext + "<br />" + n.drawLocal.edit.handlers.edit.tooltip.text,
2596
+ subtext: n.drawLocal.draw.handlers.circle.radius + ": " + c.readableDistance(
2597
+ g,
1952
2598
  !0,
1953
2599
  this.options.feet,
1954
2600
  this.options.nautic
@@ -1958,37 +2604,37 @@ class At {
1958
2604
  }
1959
2605
  this._map.fire(l.EDITRESIZE, { layer: this._shape });
1960
2606
  };
1961
- } catch (i) {
1962
- this.logger.warn("leaflet-draw-patch:circle-resize", i);
2607
+ } catch (n) {
2608
+ this.logger.warn("leaflet-draw-patch:circle-resize", n);
1963
2609
  }
1964
2610
  }
1965
2611
  bindDrawEvents() {
1966
2612
  !this.map || !this.drawnItems || (this.map.on(this.L.Draw.Event.CREATED, (t) => {
1967
- var e, o, r;
2613
+ var e, r, o;
1968
2614
  try {
1969
- const { layer: a, layerType: i } = t;
1970
- if (i === R.TYPE) {
2615
+ const { layer: a, layerType: n } = t;
2616
+ if (n === D.TYPE) {
1971
2617
  try {
1972
2618
  (e = this.activeCakeSession) == null || e.destroy();
1973
2619
  } catch {
1974
2620
  }
1975
- this.activeCakeSession = new rt(
2621
+ this.activeCakeSession = new Jt(
1976
2622
  this.map,
1977
2623
  a,
1978
- (u) => {
2624
+ (h) => {
1979
2625
  if (!this.drawnItems) return;
1980
- const p = this.store.add(u), f = this.L.geoJSON(u);
2626
+ const p = this.store.add(h), g = this.L.geoJSON(h);
1981
2627
  let m = 0;
1982
- f.eachLayer((y) => {
1983
- var w, g, A;
1984
- const b = (w = p[m]) != null ? w : p[p.length - 1];
1985
- y._fid = b, this.drawnItems.addLayer(y), this.installVertexContextMenu(y), (A = (g = this.options.callbacks) == null ? void 0 : g.onCreated) == null || A.call(g, {
1986
- id: b,
2628
+ g.eachLayer((f) => {
2629
+ var w, y, b;
2630
+ const A = (w = p[m]) != null ? w : p[p.length - 1];
2631
+ f._fid = A, this.drawnItems.addLayer(f), this.installVertexContextMenu(f), (b = (y = this.options.callbacks) == null ? void 0 : y.onCreated) == null || b.call(y, {
2632
+ id: A,
1987
2633
  layerType: "polygon",
1988
- geoJSON: y.toGeoJSON()
2634
+ geoJSON: f.toGeoJSON()
1989
2635
  }), m++;
1990
2636
  }), this.activeCakeSession = null, this.emitToolEvent("tool:layer-cake:saved", {
1991
- featureCollection: u
2637
+ featureCollection: h
1992
2638
  });
1993
2639
  },
1994
2640
  this.measurementSystem
@@ -1999,64 +2645,64 @@ class At {
1999
2645
  return;
2000
2646
  }
2001
2647
  this.drawnItems.addLayer(a);
2002
- const n = a.toGeoJSON(), c = this.store.add({
2648
+ const s = a.toGeoJSON(), c = this.store.add({
2003
2649
  type: "FeatureCollection",
2004
- features: [n]
2650
+ features: [s]
2005
2651
  })[0];
2006
- a._fid = c, this.installVertexContextMenu(a), (r = (o = this.options.callbacks) == null ? void 0 : o.onCreated) == null || r.call(o, { id: c, layerType: i, geoJSON: n });
2007
- const d = yt[i];
2652
+ a._fid = c, this.installVertexContextMenu(a), (o = (r = this.options.callbacks) == null ? void 0 : r.onCreated) == null || o.call(r, { id: c, layerType: n, geoJSON: s });
2653
+ const d = ir[n];
2008
2654
  d && this.emitToolEvent(d, {
2009
2655
  id: c,
2010
- geoJSON: n
2656
+ geoJSON: s
2011
2657
  });
2012
2658
  } catch (a) {
2013
2659
  this._error("onCreated handler failed", a);
2014
2660
  }
2015
2661
  }), this.map.on(this.L.Draw.Event.EDITED, (t) => {
2016
- var e, o;
2662
+ var e, r;
2017
2663
  try {
2018
- const r = [];
2019
- t.layers.eachLayer((n) => {
2020
- const l = n.toGeoJSON(), c = n._fid;
2664
+ const o = [];
2665
+ t.layers.eachLayer((s) => {
2666
+ const l = s.toGeoJSON(), c = s._fid;
2021
2667
  if (c)
2022
- this.store.update(c, l), r.push(c);
2668
+ this.store.update(c, l), o.push(c);
2023
2669
  else {
2024
2670
  const d = this.store.add({
2025
2671
  type: "FeatureCollection",
2026
2672
  features: [l]
2027
2673
  })[0];
2028
- n._fid = d, r.push(d);
2674
+ s._fid = d, o.push(d);
2029
2675
  }
2030
2676
  });
2031
- const i = this.store.toFeatureCollection();
2032
- (o = (e = this.options.callbacks) == null ? void 0 : e.onEdited) == null || o.call(e, {
2033
- ids: r,
2034
- geoJSON: i
2677
+ const n = this.store.toFeatureCollection();
2678
+ (r = (e = this.options.callbacks) == null ? void 0 : e.onEdited) == null || r.call(e, {
2679
+ ids: o,
2680
+ geoJSON: n
2035
2681
  }), this.emitToolEvent("tool:edit:applied", {
2036
- ids: r,
2037
- geoJSON: i
2682
+ ids: o,
2683
+ geoJSON: n
2038
2684
  });
2039
- } catch (r) {
2040
- this._error("onEdited handler failed", r);
2685
+ } catch (o) {
2686
+ this._error("onEdited handler failed", o);
2041
2687
  }
2042
2688
  }), this.map.on(this.L.Draw.Event.DELETED, (t) => {
2043
- var e, o;
2689
+ var e, r;
2044
2690
  try {
2045
- const r = [];
2046
- t.layers.eachLayer((n) => {
2047
- const l = n._fid;
2048
- l && (r.push(l), this.store.remove(l));
2691
+ const o = [];
2692
+ t.layers.eachLayer((s) => {
2693
+ const l = s._fid;
2694
+ l && (o.push(l), this.store.remove(l));
2049
2695
  });
2050
- const i = this.store.toFeatureCollection();
2051
- (o = (e = this.options.callbacks) == null ? void 0 : e.onDeleted) == null || o.call(e, {
2052
- ids: r,
2053
- geoJSON: i
2696
+ const n = this.store.toFeatureCollection();
2697
+ (r = (e = this.options.callbacks) == null ? void 0 : e.onDeleted) == null || r.call(e, {
2698
+ ids: o,
2699
+ geoJSON: n
2054
2700
  }), this.emitToolEvent("tool:delete:applied", {
2055
- ids: r,
2056
- geoJSON: i
2701
+ ids: o,
2702
+ geoJSON: n
2057
2703
  });
2058
- } catch (r) {
2059
- this._error("onDeleted handler failed", r);
2704
+ } catch (o) {
2705
+ this._error("onDeleted handler failed", o);
2060
2706
  }
2061
2707
  }), this.map.on("draw:moveend", (t) => {
2062
2708
  var e;
@@ -2066,22 +2712,22 @@ class At {
2066
2712
  originalGeoJSON: t == null ? void 0 : t.originalGeoJSON,
2067
2713
  newGeoJSON: t == null ? void 0 : t.newGeoJSON
2068
2714
  }), this.showMoveConfirmationUI(t.layer);
2069
- } catch (o) {
2070
- this._error("draw:moveend handler failed", o);
2715
+ } catch (r) {
2716
+ this._error("draw:moveend handler failed", r);
2071
2717
  }
2072
2718
  }), this.map.on("draw:moveconfirmed", (t) => {
2073
- var e, o, r;
2719
+ var e, r, o;
2074
2720
  try {
2075
2721
  this.emitToolEvent("tool:move:confirmed", {
2076
2722
  layerId: (e = t == null ? void 0 : t.layer) == null ? void 0 : e._fid,
2077
2723
  originalGeoJSON: t == null ? void 0 : t.originalGeoJSON,
2078
2724
  newGeoJSON: t == null ? void 0 : t.newGeoJSON
2079
2725
  });
2080
- const a = t.layer, i = a._fid;
2081
- if (i) {
2082
- const n = a.toGeoJSON();
2083
- this.store.update(i, n), (r = (o = this.options.callbacks) == null ? void 0 : o.onEdited) == null || r.call(o, {
2084
- ids: [i],
2726
+ const a = t.layer, n = a._fid;
2727
+ if (n) {
2728
+ const s = a.toGeoJSON();
2729
+ this.store.update(n, s), (o = (r = this.options.callbacks) == null ? void 0 : r.onEdited) == null || o.call(r, {
2730
+ ids: [n],
2085
2731
  geoJSON: this.store.toFeatureCollection()
2086
2732
  });
2087
2733
  }
@@ -2092,150 +2738,193 @@ class At {
2092
2738
  }));
2093
2739
  }
2094
2740
  _error(t, e) {
2095
- var o, r;
2096
- this.logger.error("error", { message: t, cause: e }), (r = (o = this.options.callbacks) == null ? void 0 : o.onError) == null || r.call(o, { message: t, cause: e });
2741
+ var r, o;
2742
+ this.logger.error("error", { message: t, cause: e }), (o = (r = this.options.callbacks) == null ? void 0 : r.onError) == null || o.call(r, { message: t, cause: e });
2097
2743
  }
2098
2744
  // -------- Vertex deletion context menu --------
2745
+ installVertexEditSurfaceMenu() {
2746
+ var o;
2747
+ if (!this.map) return;
2748
+ try {
2749
+ (o = this.vertexEditSurfaceCleanup) == null || o.call(this);
2750
+ } catch {
2751
+ }
2752
+ const t = this.map.getContainer(), e = (a) => {
2753
+ this.openNearestEditableVertexMenuFromDomEvent(a);
2754
+ }, r = (a) => {
2755
+ (a.ctrlKey || a.metaKey) && this.openNearestEditableVertexMenuFromDomEvent(a);
2756
+ };
2757
+ t.addEventListener("contextmenu", e, {
2758
+ capture: !0
2759
+ }), t.addEventListener("click", r, { capture: !0 }), this.vertexEditSurfaceCleanup = () => {
2760
+ t.removeEventListener("contextmenu", e, {
2761
+ capture: !0
2762
+ }), t.removeEventListener("click", r, { capture: !0 });
2763
+ };
2764
+ }
2765
+ openNearestEditableVertexMenuFromDomEvent(t) {
2766
+ try {
2767
+ if (!this.map || !this.drawnItems) return;
2768
+ const e = this.map.mouseEventToContainerPoint(t), r = this.map.containerPointToLatLng(e);
2769
+ let o = null;
2770
+ if (this.drawnItems.eachLayer((a) => {
2771
+ if (o) return;
2772
+ const n = a.editing;
2773
+ if (!(n && typeof n.enabled == "function" && n.enabled())) return;
2774
+ const l = this.findNearestVertex(a, r, 16);
2775
+ l && (o = { layer: a, ...l });
2776
+ }), !o) return;
2777
+ t.preventDefault(), t.stopPropagation(), this.showVertexMenu(e, async () => {
2778
+ await this.deleteVertex(
2779
+ o.layer,
2780
+ o.pathIndex,
2781
+ o.vertexIndex
2782
+ );
2783
+ });
2784
+ } catch (e) {
2785
+ this._error("openNearestEditableVertexMenuFromDomEvent", e);
2786
+ }
2787
+ }
2099
2788
  installVertexContextMenu(t) {
2100
2789
  if (!t || typeof t.on != "function") return;
2101
- const e = (r) => {
2102
- var a, i, n, l;
2790
+ const e = (o) => {
2791
+ var a, n, s, l;
2103
2792
  try {
2104
- (i = (a = r == null ? void 0 : r.originalEvent) == null ? void 0 : a.preventDefault) == null || i.call(a), (l = (n = r == null ? void 0 : r.originalEvent) == null ? void 0 : n.stopPropagation) == null || l.call(n);
2793
+ (n = (a = o == null ? void 0 : o.originalEvent) == null ? void 0 : a.preventDefault) == null || n.call(a), (l = (s = o == null ? void 0 : o.originalEvent) == null ? void 0 : s.stopPropagation) == null || l.call(s);
2105
2794
  } catch {
2106
2795
  }
2107
- this.openVertexMenu(t, r);
2108
- }, o = (r) => {
2109
- const a = r == null ? void 0 : r.originalEvent;
2110
- a && (a.ctrlKey || a.metaKey) && this.openVertexMenu(t, r);
2796
+ this.openVertexMenu(t, o);
2797
+ }, r = (o) => {
2798
+ const a = o == null ? void 0 : o.originalEvent;
2799
+ a && (a.ctrlKey || a.metaKey) && this.openVertexMenu(t, o);
2111
2800
  };
2112
2801
  try {
2113
- t.on("contextmenu", e), t.on("click", o);
2802
+ t.on("contextmenu", e), t.on("click", r);
2114
2803
  } catch {
2115
2804
  }
2116
2805
  }
2117
2806
  openVertexMenu(t, e) {
2118
2807
  try {
2119
2808
  if (!this.map || !(typeof t.getLatLngs == "function" && (t instanceof this.L.Polygon || t instanceof this.L.Polyline))) return;
2120
- const r = t.editing;
2121
- if (!r || typeof r.enabled != "function" || !r.enabled())
2809
+ const o = t.editing;
2810
+ if (!o || typeof o.enabled != "function" || !o.enabled())
2122
2811
  return;
2123
- const a = e == null ? void 0 : e.latlng, i = this.map.latLngToContainerPoint(a), n = this.findNearestVertex(t, a, 12);
2124
- if (!n) return;
2125
- this.showVertexMenu(i, async () => {
2126
- await this.deleteVertex(t, n.pathIndex, n.vertexIndex);
2812
+ const a = e == null ? void 0 : e.latlng, n = this.map.latLngToContainerPoint(a), s = this.findNearestVertex(t, a, 12);
2813
+ if (!s) return;
2814
+ this.showVertexMenu(n, async () => {
2815
+ await this.deleteVertex(t, s.pathIndex, s.vertexIndex);
2127
2816
  });
2128
- } catch (o) {
2129
- this._error("openVertexMenu", o);
2817
+ } catch (r) {
2818
+ this._error("openVertexMenu", r);
2130
2819
  }
2131
2820
  }
2132
2821
  showVertexMenu(t, e) {
2133
- var o;
2822
+ var r;
2134
2823
  try {
2135
2824
  try {
2136
- (o = this.vertexMenuCleanup) == null || o.call(this);
2825
+ (r = this.vertexMenuCleanup) == null || r.call(this);
2137
2826
  } catch {
2138
2827
  }
2139
2828
  if (this.vertexMenuCleanup = null, !this.container) return;
2140
- const r = document.createElement("div");
2141
- r.style.position = "absolute", r.style.top = `${t.y}px`, r.style.left = `${t.x}px`, r.style.transform = "translate(-50%, -100%)", r.style.background = "#fff", r.style.border = "1px solid rgba(0,0,0,0.15)", r.style.borderRadius = "6px", r.style.boxShadow = "0 4px 12px rgba(0,0,0,0.15)", r.style.padding = "6px", r.style.zIndex = "10000", r.style.fontSize = "12px", r.style.userSelect = "none";
2829
+ const o = document.createElement("div");
2830
+ o.style.position = "absolute", o.style.top = `${t.y}px`, o.style.left = `${t.x}px`, o.style.transform = "translate(-50%, -100%)", o.style.background = "#fff", o.style.border = "1px solid rgba(0,0,0,0.15)", o.style.borderRadius = "6px", o.style.boxShadow = "0 4px 12px rgba(0,0,0,0.15)", o.style.padding = "6px", o.style.zIndex = "10000", o.style.fontSize = "12px", o.style.userSelect = "none";
2142
2831
  const a = document.createElement("button");
2143
2832
  a.textContent = "Delete vertex", a.style.padding = "6px 10px", a.style.border = "none", a.style.background = "#da1e28", a.style.color = "#fff", a.style.borderRadius = "4px", a.style.cursor = "pointer", a.addEventListener("click", (l) => {
2144
2833
  l.stopPropagation(), l.preventDefault();
2145
2834
  try {
2146
2835
  e();
2147
2836
  } finally {
2148
- i();
2837
+ n();
2149
2838
  }
2150
- }), r.appendChild(a);
2151
- const i = () => {
2839
+ }), o.appendChild(a);
2840
+ const n = () => {
2152
2841
  try {
2153
- window.removeEventListener("pointerdown", n), this.container.removeEventListener("scroll", i, !0), r.remove();
2842
+ window.removeEventListener("pointerdown", s), this.container.removeEventListener("scroll", n, !0), o.remove();
2154
2843
  } catch {
2155
2844
  }
2156
2845
  this.vertexMenuEl = null, this.vertexMenuCleanup = null;
2157
- }, n = (l) => {
2158
- r.contains(l.target) || i();
2846
+ }, s = (l) => {
2847
+ !(typeof l.composedPath == "function" ? l.composedPath() : []).includes(o) && !o.contains(l.target) && n();
2159
2848
  };
2160
- window.addEventListener("pointerdown", n, { capture: !0 }), this.container.addEventListener("scroll", i, !0), this.container.appendChild(r), this.vertexMenuEl = r, this.vertexMenuCleanup = i;
2161
- } catch (r) {
2162
- this._error("showVertexMenu", r);
2849
+ window.addEventListener("pointerdown", s, { capture: !0 }), this.container.addEventListener("scroll", n, !0), this.container.appendChild(o), this.vertexMenuEl = o, this.vertexMenuCleanup = n;
2850
+ } catch (o) {
2851
+ this._error("showVertexMenu", o);
2163
2852
  }
2164
2853
  }
2165
- findNearestVertex(t, e, o) {
2854
+ findNearestVertex(t, e, r) {
2166
2855
  if (!this.map) return null;
2167
- const r = (p) => this.map.latLngToContainerPoint(p), a = (p, f) => Math.hypot(p.x - f.x, p.y - f.y), i = r(e);
2168
- let n = 1 / 0, l = -1, c = -1;
2856
+ const o = (p) => this.map.latLngToContainerPoint(p), a = (p, g) => Math.hypot(p.x - g.x, p.y - g.y), n = o(e);
2857
+ let s = 1 / 0, l = -1, c = -1;
2169
2858
  const d = t.getLatLngs();
2170
- return (Array.isArray(d[0]) ? d : [d]).forEach((p, f) => {
2171
- p.forEach((m, y) => {
2172
- const b = r(m), w = a(b, i);
2173
- w < n && (n = w, l = f, c = y);
2859
+ return (Array.isArray(d[0]) ? d : [d]).forEach((p, g) => {
2860
+ p.forEach((m, f) => {
2861
+ const A = o(m), w = a(A, n);
2862
+ w < s && (s = w, l = g, c = f);
2174
2863
  });
2175
- }), l === -1 || n > o ? null : { pathIndex: l, vertexIndex: c };
2864
+ }), l === -1 || s > r ? null : { pathIndex: l, vertexIndex: c };
2176
2865
  }
2177
- async deleteVertex(t, e, o) {
2178
- var r, a, i;
2866
+ async deleteVertex(t, e, r) {
2867
+ var o, a, n;
2179
2868
  try {
2180
2869
  if (!(typeof t.getLatLngs == "function" && (t instanceof this.L.Polygon || t instanceof this.L.Polyline))) return;
2181
2870
  const l = t.getLatLngs(), c = Array.isArray(l[0]) ? l : [l], d = c[e];
2182
2871
  if (!d) return;
2183
2872
  const p = t instanceof this.L.Polygon ? 3 : 2;
2184
2873
  if (d.length <= p) return;
2185
- if (d.splice(o, 1), c.length === 1)
2874
+ if (d.splice(r, 1), c.length === 1)
2186
2875
  t.setLatLngs(d);
2187
2876
  else {
2188
- const m = c.map((y, b) => b === e ? d : y);
2877
+ const m = c.map((f, A) => A === e ? d : f);
2189
2878
  t.setLatLngs(m);
2190
2879
  }
2191
- (r = t.redraw) == null || r.call(t);
2192
- const f = t._fid;
2193
- if (f) {
2880
+ (o = t.redraw) == null || o.call(t);
2881
+ const g = t._fid;
2882
+ if (g) {
2194
2883
  const m = t.toGeoJSON();
2195
- this.store.update(f, m), (i = (a = this.options.callbacks) == null ? void 0 : a.onEdited) == null || i.call(a, {
2196
- ids: [f],
2884
+ this.store.update(g, m), (n = (a = this.options.callbacks) == null ? void 0 : a.onEdited) == null || n.call(a, {
2885
+ ids: [g],
2197
2886
  geoJSON: this.store.toFeatureCollection()
2198
2887
  });
2199
2888
  }
2200
- } catch (n) {
2201
- this._error("deleteVertex", n);
2889
+ } catch (s) {
2890
+ this._error("deleteVertex", s);
2202
2891
  }
2203
2892
  }
2204
2893
  // -------- Move tool Save/Cancel UI --------
2205
2894
  showMoveConfirmationUI(t) {
2206
- var e, o;
2895
+ var e, r;
2207
2896
  try {
2208
2897
  if (this.hideMoveConfirmationUI(), !this.container || !this.map) return;
2209
- const r = this.drawControl;
2210
- if (!r) return;
2211
- const a = (e = r == null ? void 0 : r._toolbars) == null ? void 0 : e.draw;
2898
+ const o = this.drawControl;
2899
+ if (!o) return;
2900
+ const a = (e = o == null ? void 0 : o._toolbars) == null ? void 0 : e.draw;
2212
2901
  if (!a) return;
2213
- const i = a._modes || {};
2214
- let n = null;
2215
- for (const u in i) {
2216
- const p = i[u];
2217
- if (((o = p == null ? void 0 : p.handler) == null ? void 0 : o.type) === "move") {
2218
- n = p.handler;
2902
+ const n = a._modes || {};
2903
+ let s = null;
2904
+ for (const h in n) {
2905
+ const p = n[h];
2906
+ if (((r = p == null ? void 0 : p.handler) == null ? void 0 : r.type) === "move") {
2907
+ s = p.handler;
2219
2908
  break;
2220
2909
  }
2221
2910
  }
2222
- this.activeMoveHandler = n;
2911
+ this.activeMoveHandler = s;
2223
2912
  const l = document.createElement("div");
2224
2913
  l.style.position = "absolute", l.style.bottom = "60px", l.style.left = "50%", l.style.transform = "translateX(-50%)", l.style.display = "flex", l.style.gap = "8px", l.style.background = "#fff", l.style.border = "2px solid #3388ff", l.style.borderRadius = "8px", l.style.padding = "12px 16px", l.style.boxShadow = "0 4px 12px rgba(0,0,0,0.2)", l.style.zIndex = "10000", l.style.fontSize = "14px", l.style.fontFamily = "system-ui, sans-serif";
2225
2914
  const c = document.createElement("button");
2226
- c.textContent = "✓ Save", c.style.padding = "8px 16px", c.style.border = "none", c.style.background = "#28a745", c.style.color = "#fff", c.style.borderRadius = "4px", c.style.cursor = "pointer", c.style.fontWeight = "600", c.style.fontSize = "14px", c.addEventListener("click", (u) => {
2227
- u.stopPropagation(), u.preventDefault(), n != null && n.confirmMove && n.confirmMove();
2915
+ c.textContent = "✓ Save", c.style.padding = "8px 16px", c.style.border = "none", c.style.background = "#28a745", c.style.color = "#fff", c.style.borderRadius = "4px", c.style.cursor = "pointer", c.style.fontWeight = "600", c.style.fontSize = "14px", c.addEventListener("click", (h) => {
2916
+ h.stopPropagation(), h.preventDefault(), s != null && s.confirmMove && s.confirmMove();
2228
2917
  });
2229
2918
  const d = document.createElement("button");
2230
- d.textContent = "✕ Cancel", d.style.padding = "8px 16px", d.style.border = "1px solid #ccc", d.style.background = "#fff", d.style.color = "#333", d.style.borderRadius = "4px", d.style.cursor = "pointer", d.style.fontWeight = "600", d.style.fontSize = "14px", d.addEventListener("click", (u) => {
2231
- u.stopPropagation(), u.preventDefault(), this.emitToolEvent("tool:move:cancelled", {
2919
+ d.textContent = "✕ Cancel", d.style.padding = "8px 16px", d.style.border = "1px solid #ccc", d.style.background = "#fff", d.style.color = "#333", d.style.borderRadius = "4px", d.style.cursor = "pointer", d.style.fontWeight = "600", d.style.fontSize = "14px", d.addEventListener("click", (h) => {
2920
+ h.stopPropagation(), h.preventDefault(), this.emitToolEvent("tool:move:cancelled", {
2232
2921
  layerId: t == null ? void 0 : t._fid
2233
- }), n != null && n.cancelMove && n.cancelMove(), this.hideMoveConfirmationUI();
2922
+ }), s != null && s.cancelMove && s.cancelMove(), this.hideMoveConfirmationUI();
2234
2923
  }), l.appendChild(c), l.appendChild(d), this.container.appendChild(l), this.moveConfirmationUI = l, this.logger.debug("showMoveConfirmationUI", {
2235
2924
  layerId: t._fid
2236
2925
  });
2237
- } catch (r) {
2238
- this._error("showMoveConfirmationUI", r);
2926
+ } catch (o) {
2927
+ this._error("showMoveConfirmationUI", o);
2239
2928
  }
2240
2929
  }
2241
2930
  hideMoveConfirmationUI() {
@@ -2246,7 +2935,157 @@ class At {
2246
2935
  }
2247
2936
  }
2248
2937
  }
2249
- const _ = {
2938
+ const _e = [25, 41], Be = [12, 41], Se = [1, -34];
2939
+ function S(i, t) {
2940
+ var r, o, a, n;
2941
+ if (i == null)
2942
+ return null;
2943
+ const e = typeof i == "string" ? i.trim() : "";
2944
+ if (!e)
2945
+ return (r = t.reportError) == null || r.call(t, t.errorMessage, t.cause), null;
2946
+ try {
2947
+ return new URL(e, (o = t.baseUrl) != null ? o : document.baseURI).toString();
2948
+ } catch (s) {
2949
+ return (n = t.reportError) == null || n.call(t, t.errorMessage, (a = t.cause) != null ? a : s), null;
2950
+ }
2951
+ }
2952
+ function K(i, t, e) {
2953
+ var l, c;
2954
+ if (i == null)
2955
+ return [...t];
2956
+ if (!Array.isArray(i) || i.length !== 2)
2957
+ return (l = e.reportError) == null || l.call(e, e.errorMessage, e.cause), [...t];
2958
+ const [r, o] = i, a = Number(r), n = Number(o);
2959
+ return Number.isFinite(a) && Number.isFinite(n) && (!e.positiveOnly || a > 0 && n > 0) ? [a, n] : ((c = e.reportError) == null || c.call(e, e.errorMessage, e.cause), [...t]);
2960
+ }
2961
+ function Q(i, t, e) {
2962
+ var l, c, d, h, p;
2963
+ if (i == null)
2964
+ return [...t];
2965
+ const r = typeof i == "string" ? i.trim() : "";
2966
+ if (!r)
2967
+ return (l = e.reportError) == null || l.call(e, e.errorMessage, e.cause), [...t];
2968
+ const o = r.split(",");
2969
+ if (o.length !== 2)
2970
+ return (c = e.reportError) == null || c.call(e, e.errorMessage, e.cause), [...t];
2971
+ const a = Number((d = o[0]) == null ? void 0 : d.trim()), n = Number((h = o[1]) == null ? void 0 : h.trim());
2972
+ return Number.isFinite(a) && Number.isFinite(n) && (!e.positiveOnly || a > 0 && n > 0) ? [a, n] : ((p = e.reportError) == null || p.call(e, e.errorMessage, e.cause), [...t]);
2973
+ }
2974
+ function nr(i, t = {}) {
2975
+ var a, n;
2976
+ if (!i || typeof i != "object")
2977
+ return null;
2978
+ const e = S(i.iconUrl, {
2979
+ ...t,
2980
+ errorMessage: "Invalid marker icon config: iconUrl must be a valid URL",
2981
+ cause: { field: "iconUrl", value: i.iconUrl }
2982
+ });
2983
+ if (!e)
2984
+ return null;
2985
+ const r = (a = S(i.iconRetinaUrl, {
2986
+ ...t,
2987
+ errorMessage: "Invalid marker icon config: iconRetinaUrl must be a valid URL",
2988
+ cause: { field: "iconRetinaUrl", value: i.iconRetinaUrl }
2989
+ })) != null ? a : e, o = (n = S(i.shadowUrl, {
2990
+ ...t,
2991
+ errorMessage: "Invalid marker icon config: shadowUrl must be a valid URL",
2992
+ cause: { field: "shadowUrl", value: i.shadowUrl }
2993
+ })) != null ? n : void 0;
2994
+ return {
2995
+ iconUrl: e,
2996
+ iconRetinaUrl: r,
2997
+ shadowUrl: o,
2998
+ iconSize: K(i.iconSize, _e, {
2999
+ ...t,
3000
+ positiveOnly: !0,
3001
+ errorMessage: "Invalid marker icon config: iconSize must be a [width, height] tuple of positive finite numbers",
3002
+ cause: { field: "iconSize", value: i.iconSize }
3003
+ }),
3004
+ iconAnchor: K(
3005
+ i.iconAnchor,
3006
+ Be,
3007
+ {
3008
+ ...t,
3009
+ errorMessage: "Invalid marker icon config: iconAnchor must be a [x, y] tuple of finite numbers",
3010
+ cause: { field: "iconAnchor", value: i.iconAnchor }
3011
+ }
3012
+ ),
3013
+ popupAnchor: K(
3014
+ i.popupAnchor,
3015
+ Se,
3016
+ {
3017
+ ...t,
3018
+ errorMessage: "Invalid marker icon config: popupAnchor must be a [x, y] tuple of finite numbers",
3019
+ cause: { field: "popupAnchor", value: i.popupAnchor }
3020
+ }
3021
+ )
3022
+ };
3023
+ }
3024
+ function sr(i, t = {}) {
3025
+ var a, n;
3026
+ const e = S(i.iconUrl, {
3027
+ ...t,
3028
+ errorMessage: 'Invalid "marker-icon-url" attribute; falling back to default markers',
3029
+ cause: { attribute: "marker-icon-url", value: i.iconUrl }
3030
+ });
3031
+ if (!e)
3032
+ return null;
3033
+ const r = (a = S(i.iconRetinaUrl, {
3034
+ ...t,
3035
+ errorMessage: 'Invalid "marker-icon-retina-url" attribute; using "marker-icon-url" instead',
3036
+ cause: {
3037
+ attribute: "marker-icon-retina-url",
3038
+ value: i.iconRetinaUrl
3039
+ }
3040
+ })) != null ? a : e, o = (n = S(i.shadowUrl, {
3041
+ ...t,
3042
+ errorMessage: 'Invalid "marker-shadow-url" attribute; dropping the custom marker shadow',
3043
+ cause: { attribute: "marker-shadow-url", value: i.shadowUrl }
3044
+ })) != null ? n : void 0;
3045
+ return {
3046
+ iconUrl: e,
3047
+ iconRetinaUrl: r,
3048
+ shadowUrl: o,
3049
+ iconSize: Q(
3050
+ i.iconSize,
3051
+ _e,
3052
+ {
3053
+ ...t,
3054
+ positiveOnly: !0,
3055
+ errorMessage: 'Invalid "marker-icon-size" attribute; using the default marker size',
3056
+ cause: {
3057
+ attribute: "marker-icon-size",
3058
+ value: i.iconSize
3059
+ }
3060
+ }
3061
+ ),
3062
+ iconAnchor: Q(
3063
+ i.iconAnchor,
3064
+ Be,
3065
+ {
3066
+ ...t,
3067
+ errorMessage: 'Invalid "marker-icon-anchor" attribute; using the default marker anchor',
3068
+ cause: {
3069
+ attribute: "marker-icon-anchor",
3070
+ value: i.iconAnchor
3071
+ }
3072
+ }
3073
+ ),
3074
+ popupAnchor: Q(
3075
+ i.popupAnchor,
3076
+ Se,
3077
+ {
3078
+ ...t,
3079
+ errorMessage: 'Invalid "marker-popup-anchor" attribute; using the default popup anchor',
3080
+ cause: {
3081
+ attribute: "marker-popup-anchor",
3082
+ value: i.popupAnchor
3083
+ }
3084
+ }
3085
+ )
3086
+ };
3087
+ }
3088
+ const I = {
2250
3089
  osm: {
2251
3090
  urlTemplate: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
2252
3091
  attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
@@ -2264,82 +3103,108 @@ const _ = {
2264
3103
  maxZoom: 20
2265
3104
  }
2266
3105
  };
2267
- function ue(s) {
2268
- return typeof s == "string" ? s.trim().toLowerCase() : "";
3106
+ function Oe(i) {
3107
+ return typeof i == "string" ? i.trim().toLowerCase() : "";
2269
3108
  }
2270
- function pe(s) {
2271
- if (typeof s != "string") return;
2272
- const t = s.trim();
3109
+ function Pe(i) {
3110
+ if (typeof i != "string") return;
3111
+ const t = i.trim();
2273
3112
  return t.length > 0 ? t : void 0;
2274
3113
  }
2275
- function bt(s) {
2276
- const { style: t, attribution: e } = s, o = ue(s.provider), r = pe(s.apiKey);
2277
- switch (o) {
3114
+ function lr(i) {
3115
+ const { style: t, attribution: e } = i, r = Oe(i.provider), o = Pe(i.apiKey);
3116
+ switch (r) {
2278
3117
  case "osm":
2279
3118
  return {
2280
- urlTemplate: _.osm.urlTemplate,
2281
- attribution: e || _.osm.attribution,
2282
- maxZoom: _.osm.maxZoom,
2283
- subdomains: [..._.osm.subdomains]
3119
+ urlTemplate: I.osm.urlTemplate,
3120
+ attribution: e || I.osm.attribution,
3121
+ maxZoom: I.osm.maxZoom,
3122
+ subdomains: [...I.osm.subdomains]
2284
3123
  };
2285
3124
  case "here": {
2286
- if (!r)
3125
+ if (!o)
2287
3126
  throw new Error("HERE Maps requires an API key");
2288
- const a = typeof t == "string" ? t.trim() : "", i = a && a in _.here.styles ? a : _.here.defaultStyle;
3127
+ const a = typeof t == "string" ? t.trim() : "", n = a && a in I.here.styles ? a : I.here.defaultStyle;
2289
3128
  return {
2290
- urlTemplate: `https://maps.hereapi.com/v3/base/mc/{z}/{x}/{y}/png8?style=${encodeURIComponent(i)}&apiKey=${encodeURIComponent(r)}`,
2291
- attribution: e || _.here.attribution,
2292
- maxZoom: _.here.maxZoom,
3129
+ urlTemplate: `https://maps.hereapi.com/v3/base/mc/{z}/{x}/{y}/png8?style=${encodeURIComponent(n)}&apiKey=${encodeURIComponent(o)}`,
3130
+ attribution: e || I.here.attribution,
3131
+ maxZoom: I.here.maxZoom,
2293
3132
  subdomains: void 0
2294
3133
  };
2295
3134
  }
2296
3135
  default:
2297
- throw new Error(`Unknown tile provider: ${s.provider}`);
3136
+ throw new Error(`Unknown tile provider: ${i.provider}`);
2298
3137
  }
2299
3138
  }
2300
- function wt(s) {
2301
- const t = ue(s.provider), e = pe(s.apiKey);
3139
+ function cr(i) {
3140
+ const t = Oe(i.provider), e = Pe(i.apiKey);
2302
3141
  return t ? t === "here" && !e ? { valid: !1, error: "HERE Maps requires an API key" } : { valid: !0 } : { valid: !1, error: "Provider is required" };
2303
3142
  }
2304
- class fe extends HTMLElement {
3143
+ class ze extends HTMLElement {
2305
3144
  constructor() {
2306
3145
  super();
2307
3146
  // Shadow DOM and container references
2308
- h(this, "_root");
2309
- h(this, "_container");
3147
+ u(this, "_root");
3148
+ u(this, "_container");
2310
3149
  // Logging
2311
- h(this, "_logger", N("component:leaflet-geokit", "debug"));
3150
+ u(this, "_logger", G("component:leaflet-geokit", "debug"));
2312
3151
  // Internal state mirrors for attributes/properties
2313
- h(this, "_latitude", 0);
2314
- h(this, "_longitude", 0);
2315
- h(this, "_zoom", 2);
2316
- h(this, "_minZoom");
2317
- h(this, "_maxZoom");
2318
- h(this, "_tileUrl", "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png");
2319
- h(this, "_tileAttribution");
2320
- h(this, "_tileProvider");
2321
- h(this, "_tileStyle");
2322
- h(this, "_apiKey");
2323
- h(this, "_activeTileProvider", "tile-url");
2324
- h(this, "_readOnly", !1);
2325
- h(this, "_logLevel", "debug");
2326
- h(this, "_devOverlay", !1);
2327
- h(this, "_polygonAllowIntersection", !1);
2328
- h(this, "_preferCanvas", !0);
3152
+ u(this, "_latitude", 0);
3153
+ u(this, "_longitude", 0);
3154
+ u(this, "_zoom", 2);
3155
+ u(this, "_minZoom");
3156
+ u(this, "_maxZoom");
3157
+ u(this, "_tileUrl", "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png");
3158
+ u(this, "_tileAttribution");
3159
+ u(this, "_tileProvider");
3160
+ u(this, "_tileStyle");
3161
+ u(this, "_apiKey");
3162
+ u(this, "_activeTileProvider", "tile-url");
3163
+ u(this, "_readOnly", !1);
3164
+ u(this, "_logLevel", "debug");
3165
+ u(this, "_devOverlay", !1);
3166
+ u(this, "_polygonAllowIntersection", !1);
3167
+ u(this, "_preferCanvas", !0);
2329
3168
  // Default to Canvas for performance
2330
3169
  // Theming
2331
- h(this, "_themeUrl");
2332
- h(this, "_themeCss", "");
2333
- h(this, "_themeLinkEl", null);
2334
- h(this, "_themeStyleEl", null);
3170
+ u(this, "_themeUrl");
3171
+ u(this, "_themeCss", "");
3172
+ u(this, "_themeLinkEl", null);
3173
+ u(this, "_themeStyleEl", null);
2335
3174
  // Controller
2336
- h(this, "_controller", null);
3175
+ u(this, "_controller", null);
2337
3176
  // External Leaflet configuration
2338
- h(this, "_useExternalLeaflet", !1);
2339
- h(this, "_skipLeafletStyles", !1);
2340
- h(this, "_leafletInstance");
2341
- h(this, "_toolHooks");
2342
- h(this, "_toolEventEmitter");
3177
+ u(this, "_useExternalLeaflet", !1);
3178
+ u(this, "_skipLeafletStyles", !1);
3179
+ u(this, "_leafletInstance");
3180
+ u(this, "_toolHooks");
3181
+ u(this, "_toolEventEmitter");
3182
+ u(this, "_markerIconConfig");
3183
+ u(this, "_toolButtonConfig");
3184
+ u(this, "_toolbarGroups");
3185
+ u(this, "_externalToolTriggerListener", (e) => {
3186
+ var o, a;
3187
+ const r = e.detail;
3188
+ if ((r == null ? void 0 : r.action) === "deactivate" || (r == null ? void 0 : r.active) === !1) {
3189
+ this.deactivateTool({
3190
+ source: (o = r.source) != null ? o : "event",
3191
+ groupId: r.groupId
3192
+ });
3193
+ return;
3194
+ }
3195
+ r != null && r.tool && this.activateTool(r.tool, {
3196
+ source: (a = r.source) != null ? a : "event",
3197
+ groupId: r.groupId
3198
+ });
3199
+ });
3200
+ u(this, "_externalToolDeactivateListener", (e) => {
3201
+ var o;
3202
+ const r = e.detail;
3203
+ this.deactivateTool({
3204
+ source: (o = r == null ? void 0 : r.source) != null ? o : "event",
3205
+ groupId: r == null ? void 0 : r.groupId
3206
+ });
3207
+ });
2343
3208
  this._root = this.attachShadow({ mode: "open" }), this._root.innerHTML = `
2344
3209
  <style>
2345
3210
  :host {
@@ -2358,8 +3223,8 @@ class fe extends HTMLElement {
2358
3223
  if (!(e instanceof HTMLDivElement))
2359
3224
  throw new Error("Failed to initialize map container");
2360
3225
  this._container = e;
2361
- const o = this.getAttribute("log-level");
2362
- o && (this._logLevel = o, this._logger.setLevel(o));
3226
+ const r = this.getAttribute("log-level");
3227
+ r && (this._logLevel = r, this._logger.setLevel(r));
2363
3228
  }
2364
3229
  // Build DrawControlsConfig from boolean attributes
2365
3230
  _controlsFromAttributes() {
@@ -2398,46 +3263,80 @@ class fe extends HTMLElement {
2398
3263
  // Lifecycle
2399
3264
  async connectedCallback() {
2400
3265
  var e;
2401
- this._logger.debug("connectedCallback", this._currentConfig()), Oe({
3266
+ this._logger.debug("connectedCallback", this._currentConfig()), et({
2402
3267
  root: this._root,
2403
3268
  skipStyles: this._skipLeafletStyles
2404
- }), this._applyThemeStyles(), this._controller = new At({
3269
+ }), this._applyThemeStyles(), this._controller = new ar({
2405
3270
  container: this._container,
2406
3271
  map: this._mapConfig(),
2407
3272
  controls: this._controlsFromAttributes(),
2408
3273
  readOnly: this._readOnly,
2409
3274
  logger: this._logger.child("controller"),
2410
3275
  callbacks: {
2411
- onReady: (o) => {
2412
- this.dispatchEvent(new CustomEvent("leaflet-draw:ready", { detail: o }));
3276
+ onReady: (r) => {
3277
+ this.dispatchEvent(new CustomEvent("leaflet-draw:ready", { detail: r }));
2413
3278
  },
2414
- onCreated: (o) => {
3279
+ onCreated: (r) => {
2415
3280
  this.dispatchEvent(
2416
- new CustomEvent("leaflet-draw:created", { detail: o })
3281
+ new CustomEvent("leaflet-draw:created", { detail: r })
2417
3282
  );
2418
3283
  },
2419
- onEdited: (o) => {
3284
+ onEdited: (r) => {
2420
3285
  this.dispatchEvent(
2421
- new CustomEvent("leaflet-draw:edited", { detail: o })
3286
+ new CustomEvent("leaflet-draw:edited", { detail: r })
2422
3287
  );
2423
3288
  },
2424
- onDeleted: (o) => {
3289
+ onDeleted: (r) => {
2425
3290
  this.dispatchEvent(
2426
- new CustomEvent("leaflet-draw:deleted", { detail: o })
3291
+ new CustomEvent("leaflet-draw:deleted", { detail: r })
3292
+ );
3293
+ },
3294
+ onError: (r) => {
3295
+ this.dispatchEvent(new CustomEvent("leaflet-draw:error", { detail: r }));
3296
+ },
3297
+ onTileError: (r) => {
3298
+ if (this._tileProvider)
3299
+ return;
3300
+ const o = this._describeTileLayerError(r, "tile-url");
3301
+ this._handleTileProviderError(
3302
+ "tile_load_failed",
3303
+ o,
3304
+ "tile-url"
2427
3305
  );
2428
3306
  },
2429
- onError: (o) => {
2430
- this.dispatchEvent(new CustomEvent("leaflet-draw:error", { detail: o }));
3307
+ onToolTrigger: (r) => {
3308
+ this._emitToolTriggerResult(r);
2431
3309
  }
2432
3310
  },
2433
3311
  leaflet: (e = this._leafletInstance) != null ? e : void 0,
2434
3312
  useExternalLeaflet: this._useExternalLeaflet,
2435
3313
  toolHooks: this._toolHooks,
2436
- toolEventEmitter: this._toolEventEmitter
2437
- }), await this._controller.init(), this._tileProvider && this._updateTileLayer();
3314
+ toolEventEmitter: this._toolEventEmitter,
3315
+ markerIconConfig: this._effectiveMarkerIconConfig(),
3316
+ toolButtonConfig: this._effectiveToolButtonConfig(),
3317
+ toolbarGroups: this._effectiveToolbarGroups()
3318
+ }), this.addEventListener(
3319
+ "leaflet-geokit:trigger-tool",
3320
+ this._externalToolTriggerListener
3321
+ ), this.addEventListener(
3322
+ "leaflet-geokit:activate-tool",
3323
+ this._externalToolTriggerListener
3324
+ ), this.addEventListener(
3325
+ "leaflet-geokit:deactivate-tool",
3326
+ this._externalToolDeactivateListener
3327
+ ), await this._controller.init(), this._tileProvider && this._updateTileLayer();
2438
3328
  }
2439
3329
  async disconnectedCallback() {
2440
- this._logger.debug("disconnectedCallback"), this._controller && (await this._controller.destroy(), this._controller = null);
3330
+ this._logger.debug("disconnectedCallback"), this._controller && (await this._controller.destroy(), this._controller = null), this.removeEventListener(
3331
+ "leaflet-geokit:trigger-tool",
3332
+ this._externalToolTriggerListener
3333
+ ), this.removeEventListener(
3334
+ "leaflet-geokit:activate-tool",
3335
+ this._externalToolTriggerListener
3336
+ ), this.removeEventListener(
3337
+ "leaflet-geokit:deactivate-tool",
3338
+ this._externalToolDeactivateListener
3339
+ );
2441
3340
  }
2442
3341
  // Observed attributes and reflection
2443
3342
  static get observedAttributes() {
@@ -2459,6 +3358,14 @@ class fe extends HTMLElement {
2459
3358
  "prefer-canvas",
2460
3359
  "use-external-leaflet",
2461
3360
  "skip-leaflet-styles",
3361
+ "marker-icon-url",
3362
+ "marker-icon-retina-url",
3363
+ "marker-shadow-url",
3364
+ "marker-icon-size",
3365
+ "marker-icon-anchor",
3366
+ "marker-popup-anchor",
3367
+ "tool-button-config",
3368
+ "toolbar-groups",
2462
3369
  "theme-url",
2463
3370
  // draw controls
2464
3371
  "draw-polygon",
@@ -2474,74 +3381,74 @@ class fe extends HTMLElement {
2474
3381
  "polygon-allow-intersection"
2475
3382
  ];
2476
3383
  }
2477
- attributeChangedCallback(e, o, r) {
2478
- switch (this._logger.debug("attributeChanged", { name: e, value: r }), e) {
3384
+ attributeChangedCallback(e, r, o) {
3385
+ switch (this._logger.debug("attributeChanged", { name: e, value: o }), e) {
2479
3386
  case "latitude":
2480
- this._latitude = this._coerceNumber(r, 0);
3387
+ this._latitude = this._coerceNumber(o, 0);
2481
3388
  break;
2482
3389
  case "longitude":
2483
- this._longitude = this._coerceNumber(r, 0);
3390
+ this._longitude = this._coerceNumber(o, 0);
2484
3391
  break;
2485
3392
  case "zoom":
2486
- this._zoom = this._coerceNumber(r, 2);
3393
+ this._zoom = this._coerceNumber(o, 2);
2487
3394
  break;
2488
3395
  case "min-zoom":
2489
- this._minZoom = r != null ? this._coerceNumber(r) : void 0;
3396
+ this._minZoom = o != null ? this._coerceNumber(o) : void 0;
2490
3397
  break;
2491
3398
  case "max-zoom":
2492
- this._maxZoom = r != null ? this._coerceNumber(r) : void 0;
3399
+ this._maxZoom = o != null ? this._coerceNumber(o) : void 0;
2493
3400
  break;
2494
3401
  case "tile-url":
2495
- this._tileUrl = r != null ? r : "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", this._controller && this._updateTileLayer();
3402
+ this._tileUrl = o != null ? o : "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", this._controller && this._updateTileLayer();
2496
3403
  break;
2497
3404
  case "tile-attribution":
2498
- this._tileAttribution = r != null ? r : void 0, this._controller && this._updateTileLayer();
3405
+ this._tileAttribution = o != null ? o : void 0, this._controller && this._updateTileLayer();
2499
3406
  break;
2500
3407
  case "tile-provider":
2501
- this._tileProvider = this._normalizeText(r, {
3408
+ this._tileProvider = this._normalizeText(o, {
2502
3409
  lowercase: !0
2503
3410
  }), this._controller && this._updateTileLayer();
2504
3411
  break;
2505
3412
  case "tile-style":
2506
- this._tileStyle = this._normalizeText(r), this._controller && this._updateTileLayer();
3413
+ this._tileStyle = this._normalizeText(o), this._controller && this._updateTileLayer();
2507
3414
  break;
2508
3415
  case "api-key":
2509
3416
  case "here-api-key":
2510
3417
  this._syncApiKeyFromAttributes(), this._controller && this._updateTileLayer();
2511
3418
  break;
2512
3419
  case "theme-url":
2513
- this._themeUrl = r != null ? r : void 0, this.isConnected && this._applyThemeStyles();
3420
+ this._themeUrl = o != null ? o : void 0, this.isConnected && this._applyThemeStyles();
2514
3421
  break;
2515
3422
  case "read-only":
2516
- this._readOnly = r !== null;
3423
+ this._readOnly = o !== null;
2517
3424
  break;
2518
3425
  case "log-level":
2519
- this._logLevel = r != null ? r : this._logLevel, this._logger.setLevel(this._logLevel);
3426
+ this._logLevel = o != null ? o : this._logLevel, this._logger.setLevel(this._logLevel);
2520
3427
  break;
2521
3428
  case "dev-overlay":
2522
- this._devOverlay = r !== null;
3429
+ this._devOverlay = o !== null;
2523
3430
  break;
2524
3431
  case "polygon-allow-intersection":
2525
- this._polygonAllowIntersection = r !== null;
3432
+ this._polygonAllowIntersection = o !== null;
2526
3433
  break;
2527
3434
  case "prefer-canvas":
2528
- this._preferCanvas = r !== null;
3435
+ this._preferCanvas = o !== null;
2529
3436
  break;
2530
3437
  case "use-external-leaflet":
2531
- this._useExternalLeaflet = r !== null;
3438
+ this._useExternalLeaflet = o !== null;
2532
3439
  break;
2533
3440
  case "skip-leaflet-styles":
2534
- this._skipLeafletStyles = r !== null;
3441
+ this._skipLeafletStyles = o !== null;
2535
3442
  break;
2536
3443
  }
2537
3444
  this._controller && (e === "latitude" || e === "longitude" || e === "zoom" ? this._controller.setView(
2538
3445
  this._latitude,
2539
3446
  this._longitude,
2540
3447
  this._zoom
2541
- ) : (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") && this._controller.destroy().then(() => this._controller.init()));
3448
+ ) : this._isMarkerIconAttribute(e) ? this._syncMarkerIconConfig() : e === "tool-button-config" ? this._syncToolButtonConfig() : e === "toolbar-groups" ? this._syncToolbarGroups() : (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") && this._controller.destroy().then(() => this._controller.init()));
2542
3449
  }
2543
3450
  _updateTileLayer() {
2544
- var o, r, a, i;
3451
+ var r, o, a, n;
2545
3452
  if (!this._controller)
2546
3453
  return;
2547
3454
  const e = this._controller;
@@ -2551,58 +3458,70 @@ class fe extends HTMLElement {
2551
3458
  }
2552
3459
  try {
2553
3460
  if (this._tileProvider) {
2554
- const n = this._tileProvider, l = {
2555
- provider: n,
3461
+ const s = this._tileProvider, l = {
3462
+ provider: s,
2556
3463
  style: this._tileStyle,
2557
3464
  apiKey: this._apiKey,
2558
3465
  attribution: this._tileAttribution
2559
- }, c = wt(l);
3466
+ }, c = cr(l);
2560
3467
  if (!c.valid) {
2561
- const p = (o = c.error) != null && o.toLowerCase().includes("api key") ? "missing_api_key" : "tile_load_failed";
3468
+ const p = (r = c.error) != null && r.toLowerCase().includes("api key") ? "missing_api_key" : "tile_load_failed";
2562
3469
  this._handleTileProviderError(
2563
3470
  p,
2564
- (r = c.error) != null ? r : "Invalid tile provider configuration",
2565
- n
3471
+ (o = c.error) != null ? o : "Invalid tile provider configuration",
3472
+ s
2566
3473
  );
2567
3474
  return;
2568
3475
  }
2569
- const d = bt(l), u = this._activeTileProvider;
3476
+ const d = lr(l), h = this._activeTileProvider;
2570
3477
  e.setTileLayer(d, {
2571
3478
  onTileError: (p) => {
2572
- if (this._tileProvider !== n) return;
2573
- const f = this._describeTileLayerError(p, n), m = n === "here" ? this._resolveHereTileLayerErrorCode(f) : "tile_load_failed";
2574
- this._handleTileProviderError(m, f, n);
3479
+ if (this._tileProvider !== s) return;
3480
+ const g = this._describeTileLayerError(p, s), m = s === "here" ? this._resolveHereTileLayerErrorCode(g) : "tile_load_failed";
3481
+ this._handleTileProviderError(m, g, s);
2575
3482
  }
2576
- }), this._activeTileProvider = n, this._emitTileProviderChanged(
2577
- n,
3483
+ }), this._activeTileProvider = s, this._emitTileProviderChanged(
3484
+ s,
2578
3485
  this._tileStyle,
2579
- u
3486
+ h
2580
3487
  );
2581
3488
  return;
2582
3489
  }
2583
- e.setTileLayer({
2584
- urlTemplate: this._tileUrl,
2585
- attribution: (a = this._tileAttribution) != null ? a : "",
2586
- maxZoom: this._maxZoom,
2587
- subdomains: ["a", "b", "c"]
2588
- }), this._activeTileProvider = "tile-url";
2589
- } catch (n) {
2590
- const l = this._resolveTileProviderErrorCode(n);
2591
- this._logger.error("Failed to update tile layer", { error: n, code: l }), this._handleTileProviderError(
3490
+ e.setTileLayer(
3491
+ {
3492
+ urlTemplate: this._tileUrl,
3493
+ attribution: (a = this._tileAttribution) != null ? a : "",
3494
+ maxZoom: this._maxZoom,
3495
+ subdomains: ["a", "b", "c"]
3496
+ },
3497
+ {
3498
+ onTileError: (s) => {
3499
+ const l = this._describeTileLayerError(s, "tile-url");
3500
+ this._handleTileProviderError(
3501
+ "tile_load_failed",
3502
+ l,
3503
+ "tile-url"
3504
+ );
3505
+ }
3506
+ }
3507
+ ), this._activeTileProvider = "tile-url";
3508
+ } catch (s) {
3509
+ const l = this._resolveTileProviderErrorCode(s);
3510
+ this._logger.error("Failed to update tile layer", { error: s, code: l }), this._handleTileProviderError(
2592
3511
  l,
2593
- n instanceof Error ? n.message : "Unknown tile layer error",
2594
- (i = this._tileProvider) != null ? i : "unknown"
3512
+ s instanceof Error ? s.message : "Unknown tile layer error",
3513
+ (n = this._tileProvider) != null ? n : "unknown"
2595
3514
  );
2596
3515
  }
2597
3516
  }
2598
- _handleTileProviderError(e, o, r) {
2599
- this._logger.error(`Tile provider error (${e}): ${o}`), this.dispatchEvent(
3517
+ _handleTileProviderError(e, r, o) {
3518
+ this._logger.error(`Tile provider error (${e}): ${r}`), this.dispatchEvent(
2600
3519
  new CustomEvent("tile-provider-error", {
2601
3520
  bubbles: !0,
2602
3521
  detail: {
2603
3522
  code: e,
2604
- message: o,
2605
- provider: r,
3523
+ message: r,
3524
+ provider: o,
2606
3525
  timestamp: Date.now()
2607
3526
  }
2608
3527
  })
@@ -2615,19 +3534,103 @@ class fe extends HTMLElement {
2615
3534
  subdomains: ["a", "b", "c"]
2616
3535
  }), this._activeTileProvider = "osm");
2617
3536
  }
2618
- _emitTileProviderChanged(e, o, r) {
3537
+ _emitTileProviderChanged(e, r, o) {
2619
3538
  this.dispatchEvent(
2620
3539
  new CustomEvent("tile-provider-changed", {
2621
3540
  bubbles: !0,
2622
3541
  detail: {
2623
3542
  provider: e,
2624
- style: o,
2625
- previousProvider: r,
3543
+ style: r,
3544
+ previousProvider: o,
2626
3545
  timestamp: Date.now()
2627
3546
  }
2628
3547
  })
2629
3548
  );
2630
3549
  }
3550
+ _isMarkerIconAttribute(e) {
3551
+ return e === "marker-icon-url" || e === "marker-icon-retina-url" || e === "marker-shadow-url" || e === "marker-icon-size" || e === "marker-icon-anchor" || e === "marker-popup-anchor";
3552
+ }
3553
+ _effectiveMarkerIconConfig() {
3554
+ const e = (o, a) => {
3555
+ this.dispatchEvent(
3556
+ new CustomEvent("leaflet-draw:error", {
3557
+ detail: { message: o, cause: a }
3558
+ })
3559
+ );
3560
+ };
3561
+ if (this._markerIconConfig === null)
3562
+ return null;
3563
+ if (this._markerIconConfig !== void 0)
3564
+ return nr(this._markerIconConfig, { reportError: e });
3565
+ const r = this.getAttribute("marker-icon-url");
3566
+ return r == null ? null : sr(
3567
+ {
3568
+ iconUrl: r,
3569
+ iconRetinaUrl: this.getAttribute("marker-icon-retina-url"),
3570
+ shadowUrl: this.getAttribute("marker-shadow-url"),
3571
+ iconSize: this.getAttribute("marker-icon-size"),
3572
+ iconAnchor: this.getAttribute("marker-icon-anchor"),
3573
+ popupAnchor: this.getAttribute("marker-popup-anchor")
3574
+ },
3575
+ { reportError: e }
3576
+ );
3577
+ }
3578
+ _syncMarkerIconConfig() {
3579
+ const e = this._controller;
3580
+ typeof (e == null ? void 0 : e.setMarkerIconConfig) == "function" && e.setMarkerIconConfig(this._effectiveMarkerIconConfig());
3581
+ }
3582
+ _effectiveToolButtonConfig() {
3583
+ if (this._toolButtonConfig !== void 0)
3584
+ return this._toolButtonConfig;
3585
+ const e = this.getAttribute("tool-button-config");
3586
+ if (e == null || e.trim() === "")
3587
+ return null;
3588
+ try {
3589
+ const r = JSON.parse(e);
3590
+ if (!r || typeof r != "object" || Array.isArray(r))
3591
+ throw new Error("tool-button-config must be a JSON object");
3592
+ return r;
3593
+ } catch (r) {
3594
+ return this.dispatchEvent(
3595
+ new CustomEvent("leaflet-draw:error", {
3596
+ detail: {
3597
+ message: "Failed to parse tool-button-config",
3598
+ cause: r
3599
+ }
3600
+ })
3601
+ ), null;
3602
+ }
3603
+ }
3604
+ _syncToolButtonConfig() {
3605
+ const e = this._controller;
3606
+ typeof (e == null ? void 0 : e.setToolButtonConfig) == "function" && e.setToolButtonConfig(this._effectiveToolButtonConfig());
3607
+ }
3608
+ _effectiveToolbarGroups() {
3609
+ if (this._toolbarGroups !== void 0)
3610
+ return this._toolbarGroups;
3611
+ const e = this.getAttribute("toolbar-groups");
3612
+ if (e == null || e.trim() === "")
3613
+ return null;
3614
+ try {
3615
+ const r = JSON.parse(e);
3616
+ if (!Array.isArray(r))
3617
+ throw new Error("toolbar-groups must be a JSON array");
3618
+ return r;
3619
+ } catch (r) {
3620
+ return this.dispatchEvent(
3621
+ new CustomEvent("leaflet-draw:error", {
3622
+ detail: {
3623
+ message: "Failed to parse toolbar-groups",
3624
+ cause: r
3625
+ }
3626
+ })
3627
+ ), null;
3628
+ }
3629
+ }
3630
+ _syncToolbarGroups() {
3631
+ const e = this._controller;
3632
+ typeof (e == null ? void 0 : e.setToolbarGroups) == "function" && e.setToolbarGroups(this._effectiveToolbarGroups());
3633
+ }
2631
3634
  // Properties (reflect attributes)
2632
3635
  get latitude() {
2633
3636
  return this._latitude;
@@ -2669,24 +3672,24 @@ class fe extends HTMLElement {
2669
3672
  return this._tileProvider;
2670
3673
  }
2671
3674
  set tileProvider(e) {
2672
- var o;
3675
+ var r;
2673
3676
  this._tileProvider = this._normalizeText(e != null ? e : null, {
2674
3677
  lowercase: !0
2675
- }), this._reflect("tile-provider", (o = this._tileProvider) != null ? o : null), this._controller && this._updateTileLayer();
3678
+ }), this._reflect("tile-provider", (r = this._tileProvider) != null ? r : null), this._controller && this._updateTileLayer();
2676
3679
  }
2677
3680
  get tileStyle() {
2678
3681
  return this._tileStyle;
2679
3682
  }
2680
3683
  set tileStyle(e) {
2681
- var o;
2682
- this._tileStyle = this._normalizeText(e != null ? e : null), this._reflect("tile-style", (o = this._tileStyle) != null ? o : null), this._controller && this._updateTileLayer();
3684
+ var r;
3685
+ this._tileStyle = this._normalizeText(e != null ? e : null), this._reflect("tile-style", (r = this._tileStyle) != null ? r : null), this._controller && this._updateTileLayer();
2683
3686
  }
2684
3687
  get apiKey() {
2685
3688
  return this._apiKey;
2686
3689
  }
2687
3690
  set apiKey(e) {
2688
- var o;
2689
- this._apiKey = this._normalizeText(e != null ? e : null), this._reflect("api-key", (o = this._apiKey) != null ? o : null), this.hasAttribute("here-api-key") && this.removeAttribute("here-api-key"), this._controller && this._updateTileLayer();
3691
+ var r;
3692
+ this._apiKey = this._normalizeText(e != null ? e : null), this._reflect("api-key", (r = this._apiKey) != null ? r : null), this.hasAttribute("here-api-key") && this.removeAttribute("here-api-key"), this._controller && this._updateTileLayer();
2690
3693
  }
2691
3694
  get tileAttribution() {
2692
3695
  return this._tileAttribution;
@@ -2730,6 +3733,24 @@ class fe extends HTMLElement {
2730
3733
  set skipLeafletStyles(e) {
2731
3734
  this._skipLeafletStyles = !!e, this._booleanReflect("skip-leaflet-styles", this._skipLeafletStyles);
2732
3735
  }
3736
+ get markerIconConfig() {
3737
+ return this._markerIconConfig;
3738
+ }
3739
+ set markerIconConfig(e) {
3740
+ this._markerIconConfig = e, this._syncMarkerIconConfig();
3741
+ }
3742
+ get toolButtonConfig() {
3743
+ return this._toolButtonConfig;
3744
+ }
3745
+ set toolButtonConfig(e) {
3746
+ this._toolButtonConfig = e, this._syncToolButtonConfig();
3747
+ }
3748
+ get toolbarGroups() {
3749
+ return this._toolbarGroups;
3750
+ }
3751
+ set toolbarGroups(e) {
3752
+ this._toolbarGroups = e, this._syncToolbarGroups();
3753
+ }
2733
3754
  get leafletInstance() {
2734
3755
  return this._leafletInstance;
2735
3756
  }
@@ -2741,8 +3762,8 @@ class fe extends HTMLElement {
2741
3762
  }
2742
3763
  set toolHooks(e) {
2743
3764
  this._toolHooks = e;
2744
- const o = this._controller;
2745
- typeof (o == null ? void 0 : o.setToolObservers) == "function" && o.setToolObservers({
3765
+ const r = this._controller;
3766
+ typeof (r == null ? void 0 : r.setToolObservers) == "function" && r.setToolObservers({
2746
3767
  toolHooks: this._toolHooks,
2747
3768
  toolEventEmitter: this._toolEventEmitter
2748
3769
  });
@@ -2752,8 +3773,8 @@ class fe extends HTMLElement {
2752
3773
  }
2753
3774
  set toolEventEmitter(e) {
2754
3775
  this._toolEventEmitter = e;
2755
- const o = this._controller;
2756
- typeof (o == null ? void 0 : o.setToolObservers) == "function" && o.setToolObservers({
3776
+ const r = this._controller;
3777
+ typeof (r == null ? void 0 : r.setToolObservers) == "function" && r.setToolObservers({
2757
3778
  toolHooks: this._toolHooks,
2758
3779
  toolEventEmitter: this._toolEventEmitter
2759
3780
  });
@@ -2769,26 +3790,26 @@ class fe extends HTMLElement {
2769
3790
  return this._logger.debug("getGeoJSON"), this._controller ? this._controller.getGeoJSON() : { type: "FeatureCollection", features: [] };
2770
3791
  }
2771
3792
  async loadGeoJSON(e) {
2772
- var a, i;
2773
- if (this._logger.debug("loadGeoJSON", { features: (i = (a = e == null ? void 0 : e.features) == null ? void 0 : a.length) != null ? i : 0 }), !this._controller) return;
2774
- const o = { fc: e, mode: "load" };
2775
- this.dispatchEvent(new CustomEvent("leaflet-draw:ingest", { detail: o }));
2776
- const r = o.fc && o.fc.type === "FeatureCollection" ? o.fc : e;
2777
- await this._controller.loadGeoJSON(r, !1);
3793
+ var a, n;
3794
+ if (this._logger.debug("loadGeoJSON", { features: (n = (a = e == null ? void 0 : e.features) == null ? void 0 : a.length) != null ? n : 0 }), !this._controller) return;
3795
+ const r = { fc: e, mode: "load" };
3796
+ this.dispatchEvent(new CustomEvent("leaflet-draw:ingest", { detail: r }));
3797
+ const o = r.fc && r.fc.type === "FeatureCollection" ? r.fc : e;
3798
+ await this._controller.loadGeoJSON(o, !1);
2778
3799
  }
2779
3800
  async clearLayers() {
2780
3801
  this._logger.debug("clearLayers"), this._controller && await this._controller.clearLayers();
2781
3802
  }
2782
3803
  async addFeatures(e) {
2783
- var a, i;
2784
- if (this._logger.debug("addFeatures", { count: (i = (a = e == null ? void 0 : e.features) == null ? void 0 : a.length) != null ? i : 0 }), !this._controller) return [];
2785
- const o = { fc: e, mode: "add" };
2786
- this.dispatchEvent(new CustomEvent("leaflet-draw:ingest", { detail: o }));
2787
- const r = o.fc && o.fc.type === "FeatureCollection" ? o.fc : e;
2788
- return this._controller.addFeatures(r);
3804
+ var a, n;
3805
+ if (this._logger.debug("addFeatures", { count: (n = (a = e == null ? void 0 : e.features) == null ? void 0 : a.length) != null ? n : 0 }), !this._controller) return [];
3806
+ const r = { fc: e, mode: "add" };
3807
+ this.dispatchEvent(new CustomEvent("leaflet-draw:ingest", { detail: r }));
3808
+ const o = r.fc && r.fc.type === "FeatureCollection" ? r.fc : e;
3809
+ return this._controller.addFeatures(o);
2789
3810
  }
2790
- async updateFeature(e, o) {
2791
- this._logger.debug("updateFeature", { id: e }), this._controller && await this._controller.updateFeature(e, o);
3811
+ async updateFeature(e, r) {
3812
+ this._logger.debug("updateFeature", { id: e }), this._controller && await this._controller.updateFeature(e, r);
2792
3813
  }
2793
3814
  async removeFeature(e) {
2794
3815
  this._logger.debug("removeFeature", { id: e }), this._controller && await this._controller.removeFeature(e);
@@ -2798,19 +3819,19 @@ class fe extends HTMLElement {
2798
3819
  typeof e == "number" ? e : 0.05
2799
3820
  );
2800
3821
  }
2801
- async fitBounds(e, o) {
2802
- this._logger.debug("fitBounds", { bounds: e, padding: o }), this._controller && await this._controller.fitBounds(
3822
+ async fitBounds(e, r) {
3823
+ this._logger.debug("fitBounds", { bounds: e, padding: r }), this._controller && await this._controller.fitBounds(
2803
3824
  e,
2804
- typeof o == "number" ? o : 0.05
3825
+ typeof r == "number" ? r : 0.05
2805
3826
  );
2806
3827
  }
2807
- async setView(e, o, r) {
2808
- 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);
3828
+ async setView(e, r, o) {
3829
+ this._logger.debug("setView", { lat: e, lng: r, zoom: o }), this.latitude = e, this.longitude = r, typeof o == "number" && (this.zoom = o), this._controller && await this._controller.setView(e, r, o);
2809
3830
  }
2810
3831
  async exportGeoJSON() {
2811
3832
  if (this._logger.debug("exportGeoJSON"), !this._controller) return { type: "FeatureCollection", features: [] };
2812
- const e = await this._controller.getGeoJSON(), o = { geoJSON: e, featureCount: e.features.length };
2813
- return this.dispatchEvent(new CustomEvent("leaflet-draw:export", { detail: o })), e;
3833
+ const e = await this._controller.getGeoJSON(), r = { geoJSON: e, featureCount: e.features.length };
3834
+ return this.dispatchEvent(new CustomEvent("leaflet-draw:export", { detail: r })), e;
2814
3835
  }
2815
3836
  /**
2816
3837
  * Merge all visible polygon layers into a single polygon.
@@ -2821,55 +3842,138 @@ class fe extends HTMLElement {
2821
3842
  */
2822
3843
  async mergePolygons(e) {
2823
3844
  if (this._logger.debug("mergePolygons"), !this._controller) return null;
2824
- const r = (await this._controller.getGeoJSON()).features.length, a = await this._controller.mergeVisiblePolygons(e);
3845
+ const o = (await this._controller.getGeoJSON()).features.length, a = await this._controller.mergeVisiblePolygons(e);
2825
3846
  if (a) {
2826
- const i = await this._controller.getGeoJSON(), n = {
3847
+ const n = await this._controller.getGeoJSON(), s = {
2827
3848
  id: a,
2828
- mergedFeatureCount: r - i.features.length + 1,
2829
- geoJSON: i
3849
+ mergedFeatureCount: o - n.features.length + 1,
3850
+ geoJSON: n
2830
3851
  };
2831
- this.dispatchEvent(new CustomEvent("leaflet-draw:merged", { detail: n }));
3852
+ this.dispatchEvent(new CustomEvent("leaflet-draw:merged", { detail: s }));
2832
3853
  }
2833
3854
  return a;
2834
3855
  }
2835
3856
  async setMeasurementUnits(e) {
2836
3857
  this._logger.debug("setMeasurementUnits", { system: e }), this._controller && this._controller.setRulerUnits(e);
2837
3858
  }
3859
+ async activateTool(e, r = {}) {
3860
+ var s, l;
3861
+ const o = (s = r.source) != null ? s : "api";
3862
+ if (this.dispatchEvent(
3863
+ new CustomEvent("leaflet-geokit:tool-trigger-requested", {
3864
+ bubbles: !0,
3865
+ composed: !0,
3866
+ detail: {
3867
+ tool: e,
3868
+ source: o,
3869
+ groupId: r.groupId,
3870
+ handled: !1,
3871
+ timestamp: Date.now()
3872
+ }
3873
+ })
3874
+ ), !this._controller)
3875
+ return this._emitToolTriggerResult({
3876
+ tool: e,
3877
+ source: o,
3878
+ groupId: r.groupId,
3879
+ handled: !1,
3880
+ timestamp: Date.now(),
3881
+ error: "Map controller is not initialized"
3882
+ }), !1;
3883
+ const a = this._controller, n = typeof a.activateTool == "function" ? a.activateTool.bind(a) : (l = a.triggerTool) == null ? void 0 : l.bind(a);
3884
+ return n ? n(e, {
3885
+ source: o,
3886
+ groupId: r.groupId
3887
+ }) : (this._emitToolTriggerResult({
3888
+ tool: e,
3889
+ source: o,
3890
+ groupId: r.groupId,
3891
+ handled: !1,
3892
+ timestamp: Date.now(),
3893
+ error: "Map controller cannot activate tools"
3894
+ }), !1);
3895
+ }
3896
+ async triggerTool(e, r = {}) {
3897
+ return this.activateTool(e, r);
3898
+ }
3899
+ async deactivateTool(e = {}) {
3900
+ var n, s;
3901
+ const r = (n = e.source) != null ? n : "api";
3902
+ if (this.dispatchEvent(
3903
+ new CustomEvent("leaflet-geokit:tool-trigger-requested", {
3904
+ bubbles: !0,
3905
+ composed: !0,
3906
+ detail: {
3907
+ tool: "select",
3908
+ source: r,
3909
+ groupId: e.groupId,
3910
+ handled: !1,
3911
+ timestamp: Date.now()
3912
+ }
3913
+ })
3914
+ ), !this._controller)
3915
+ return this._emitToolTriggerResult({
3916
+ tool: "select",
3917
+ source: r,
3918
+ groupId: e.groupId,
3919
+ handled: !1,
3920
+ timestamp: Date.now(),
3921
+ error: "Map controller is not initialized"
3922
+ }), !1;
3923
+ const o = this._controller;
3924
+ if (typeof o.deactivateTool == "function")
3925
+ return o.deactivateTool({
3926
+ source: r,
3927
+ groupId: e.groupId
3928
+ });
3929
+ const a = typeof o.activateTool == "function" ? o.activateTool.bind(o) : (s = o.triggerTool) == null ? void 0 : s.bind(o);
3930
+ return a ? a("select", {
3931
+ source: r,
3932
+ groupId: e.groupId
3933
+ }) : (this._emitToolTriggerResult({
3934
+ tool: "select",
3935
+ source: r,
3936
+ groupId: e.groupId,
3937
+ handled: !1,
3938
+ timestamp: Date.now(),
3939
+ error: "Map controller cannot deactivate tools"
3940
+ }), !1);
3941
+ }
2838
3942
  async loadGeoJSONFromUrl(e) {
2839
3943
  if (this._logger.debug("loadGeoJSONFromUrl", { url: e }), !this._controller) return;
2840
- const o = await fetch(e, { headers: { Accept: "application/json" } });
2841
- if (!o.ok) {
2842
- const n = new Error(
2843
- `Failed to fetch GeoJSON from ${e}: ${o.status} ${o.statusText}`
3944
+ const r = await fetch(e, { headers: { Accept: "application/json" } });
3945
+ if (!r.ok) {
3946
+ const s = new Error(
3947
+ `Failed to fetch GeoJSON from ${e}: ${r.status} ${r.statusText}`
2844
3948
  );
2845
3949
  throw this.dispatchEvent(
2846
3950
  new CustomEvent("leaflet-draw:error", {
2847
- detail: { message: n.message, cause: n }
3951
+ detail: { message: s.message, cause: s }
2848
3952
  })
2849
- ), n;
3953
+ ), s;
2850
3954
  }
2851
- const r = await o.json(), a = { fc: r, mode: "load" };
3955
+ const o = await r.json(), a = { fc: o, mode: "load" };
2852
3956
  this.dispatchEvent(new CustomEvent("leaflet-draw:ingest", { detail: a }));
2853
- const i = a.fc && a.fc.type === "FeatureCollection" ? a.fc : r;
2854
- await this._controller.loadGeoJSON(i, !0);
3957
+ const n = a.fc && a.fc.type === "FeatureCollection" ? a.fc : o;
3958
+ await this._controller.loadGeoJSON(n, !0);
2855
3959
  }
2856
3960
  async loadGeoJSONFromText(e) {
2857
- var i;
2858
- if (this._logger.debug("loadGeoJSONFromText", { length: (i = e == null ? void 0 : e.length) != null ? i : 0 }), !this._controller) return;
2859
- let o;
3961
+ var n;
3962
+ if (this._logger.debug("loadGeoJSONFromText", { length: (n = e == null ? void 0 : e.length) != null ? n : 0 }), !this._controller) return;
3963
+ let r;
2860
3964
  try {
2861
- o = JSON.parse(e);
2862
- } catch (n) {
3965
+ r = JSON.parse(e);
3966
+ } catch (s) {
2863
3967
  const l = new Error("Failed to parse GeoJSON text");
2864
3968
  throw this.dispatchEvent(
2865
3969
  new CustomEvent("leaflet-draw:error", {
2866
- detail: { message: l.message, cause: n }
3970
+ detail: { message: l.message, cause: s }
2867
3971
  })
2868
3972
  ), l;
2869
3973
  }
2870
- const r = { fc: o, mode: "load" };
2871
- this.dispatchEvent(new CustomEvent("leaflet-draw:ingest", { detail: r }));
2872
- const a = r.fc && r.fc.type === "FeatureCollection" ? r.fc : o;
3974
+ const o = { fc: r, mode: "load" };
3975
+ this.dispatchEvent(new CustomEvent("leaflet-draw:ingest", { detail: o }));
3976
+ const a = o.fc && o.fc.type === "FeatureCollection" ? o.fc : r;
2873
3977
  await this._controller.loadGeoJSON(a, !0);
2874
3978
  }
2875
3979
  // Helpers
@@ -2893,8 +3997,8 @@ class fe extends HTMLElement {
2893
3997
  };
2894
3998
  }
2895
3999
  _applyThemeStyles() {
2896
- var r;
2897
- const e = (r = this._themeUrl) == null ? void 0 : r.trim();
4000
+ var o;
4001
+ const e = (o = this._themeUrl) == null ? void 0 : o.trim();
2898
4002
  if (e) {
2899
4003
  if (!this._themeLinkEl) {
2900
4004
  const a = document.createElement("link");
@@ -2902,65 +4006,77 @@ class fe extends HTMLElement {
2902
4006
  }
2903
4007
  this._themeLinkEl.getAttribute("href") !== e && this._themeLinkEl.setAttribute("href", e);
2904
4008
  } else this._themeLinkEl && (this._themeLinkEl.remove(), this._themeLinkEl = null);
2905
- const o = this._themeCss;
2906
- if (o.trim().length > 0) {
4009
+ const r = this._themeCss;
4010
+ if (r.trim().length > 0) {
2907
4011
  if (!this._themeStyleEl) {
2908
4012
  const a = document.createElement("style");
2909
4013
  a.setAttribute("data-geokit-theme-css", "true"), this._root.appendChild(a), this._themeStyleEl = a;
2910
4014
  }
2911
- this._themeStyleEl.textContent !== o && (this._themeStyleEl.textContent = o);
4015
+ this._themeStyleEl.textContent !== r && (this._themeStyleEl.textContent = r);
2912
4016
  } else this._themeStyleEl && (this._themeStyleEl.remove(), this._themeStyleEl = null);
2913
4017
  }
4018
+ _emitToolTriggerResult(e) {
4019
+ this.dispatchEvent(
4020
+ new CustomEvent(
4021
+ e.handled ? "leaflet-geokit:tool-triggered" : "leaflet-geokit:tool-trigger-failed",
4022
+ {
4023
+ bubbles: !0,
4024
+ composed: !0,
4025
+ detail: e
4026
+ }
4027
+ )
4028
+ );
4029
+ }
2914
4030
  _syncApiKeyFromAttributes() {
2915
- const e = this._normalizeText(this.getAttribute("api-key")), o = this._normalizeText(this.getAttribute("here-api-key"));
2916
- this._apiKey = e != null ? e : o;
4031
+ const e = this._normalizeText(this.getAttribute("api-key")), r = this._normalizeText(this.getAttribute("here-api-key"));
4032
+ this._apiKey = e != null ? e : r;
2917
4033
  }
2918
- _normalizeText(e, o) {
4034
+ _normalizeText(e, r) {
2919
4035
  if (typeof e != "string") return;
2920
- const r = e.trim();
2921
- if (r)
2922
- return o != null && o.lowercase ? r.toLowerCase() : r;
4036
+ const o = e.trim();
4037
+ if (o)
4038
+ return r != null && r.lowercase ? o.toLowerCase() : o;
2923
4039
  }
2924
4040
  _resolveTileProviderErrorCode(e) {
2925
4041
  return e instanceof Error && e.message.toLowerCase().includes("unknown tile provider") ? "unknown_provider" : "tile_load_failed";
2926
4042
  }
2927
4043
  _resolveHereTileLayerErrorCode(e) {
2928
- const o = e.toLowerCase();
2929
- return o.includes("permission") || o.includes("forbidden") || o.includes("403") || o.includes("unauthorized") || o.includes("not authorized") || o.includes("not authorised") || o.includes("access denied") ? "permission_denied" : "invalid_api_key";
4044
+ const r = e.toLowerCase();
4045
+ return r.includes("permission") || r.includes("forbidden") || r.includes("403") || r.includes("unauthorized") || r.includes("not authorized") || r.includes("not authorised") || r.includes("access denied") ? "permission_denied" : "invalid_api_key";
2930
4046
  }
2931
- _describeTileLayerError(e, o) {
4047
+ _describeTileLayerError(e, r) {
2932
4048
  if (e && typeof e == "object" && "error" in e && e.error instanceof Error)
2933
4049
  return e.error.message;
2934
4050
  if (e instanceof Error && e.message)
2935
4051
  return e.message;
2936
4052
  if (e && typeof e == "object" && "message" in e && typeof e.message == "string") {
2937
- const r = e.message.trim();
2938
- if (r.length > 0)
2939
- return r;
4053
+ const o = e.message.trim();
4054
+ if (o.length > 0)
4055
+ return o;
2940
4056
  }
2941
- return o === "here" ? `Failed to load HERE tiles; verify API key, project permissions, and allowed localhost origin/referrer.${this._tileStyle === "satellite.day" ? " If satellite.day fails, try lite.day." : ""}` : "Failed to load tile layer";
4057
+ return r === "here" ? `Failed to load HERE tiles; verify API key, project permissions, and allowed localhost origin/referrer.${this._tileStyle === "satellite.day" ? " If satellite.day fails, try lite.day." : ""}` : "Failed to load tile layer";
2942
4058
  }
2943
- _reflect(e, o) {
2944
- o === null ? this.removeAttribute(e) : this.getAttribute(e) !== o && this.setAttribute(e, o);
4059
+ _reflect(e, r) {
4060
+ r === null ? this.removeAttribute(e) : this.getAttribute(e) !== r && this.setAttribute(e, r);
2945
4061
  }
2946
- _booleanReflect(e, o) {
2947
- o ? this.hasAttribute(e) || this.setAttribute(e, "") : this.hasAttribute(e) && this.removeAttribute(e);
4062
+ _booleanReflect(e, r) {
4063
+ r ? this.hasAttribute(e) || this.setAttribute(e, "") : this.hasAttribute(e) && this.removeAttribute(e);
2948
4064
  }
2949
- _coerceNumber(e, o) {
2950
- if (e == null) return o != null ? o : NaN;
2951
- const r = Number(e);
2952
- return Number.isFinite(r) ? r : o != null ? o : NaN;
4065
+ _coerceNumber(e, r) {
4066
+ if (e == null) return r != null ? r : NaN;
4067
+ const o = Number(e);
4068
+ return Number.isFinite(o) ? o : r != null ? r : NaN;
2953
4069
  }
2954
4070
  }
2955
- const ne = "leaflet-geokit";
2956
- customElements.get(ne) || customElements.define(ne, fe);
2957
- const se = "leaflet-draw-map";
2958
- if (!customElements.get(se)) {
2959
- class s extends fe {
4071
+ const we = "leaflet-geokit";
4072
+ customElements.get(we) || customElements.define(we, ze);
4073
+ const ve = "leaflet-draw-map";
4074
+ if (!customElements.get(ve)) {
4075
+ class i extends ze {
2960
4076
  }
2961
- customElements.define(se, s);
4077
+ customElements.define(ve, i);
2962
4078
  }
2963
4079
  export {
2964
- fe as LeafletDrawMapElement
4080
+ ze as LeafletDrawMapElement
2965
4081
  };
2966
- //# sourceMappingURL=index-CudTfo4O.js.map
4082
+ //# sourceMappingURL=index-x8CrGR_z.js.map