@datagouv/components-next 1.4.1-dev.1374.g4dfe0257 → 1.4.1-dev.1375.ge1f9e509

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 (41) hide show
  1. package/dist/{Control-CeBb5PEu.js → Control-DPuXeUqi.js} +3 -12
  2. package/dist/{Datafair.client-LChXlMI3.js → Datafair.client-LlEgG7WU.js} +2 -3
  3. package/dist/{Image-CBQwYbQB.js → Image-DVWRoLLI.js} +7 -22
  4. package/dist/{ImagePreview.client-DWNGZghK.js → ImagePreview.client-Db5dmxMP.js} +2 -3
  5. package/dist/{JsonPreview.client-DCklbUyJ.js → JsonPreview.client-DKy2AexC.js} +4 -6
  6. package/dist/{Layer-BPuffNS-.js → Layer-D_5tYbVm.js} +7 -9
  7. package/dist/{Map-QeL96qbQ.js → Map-CTBJEae_.js} +937 -967
  8. package/dist/{MapContainer.client-B-aQhH35.js → MapContainer.client-Clk9_bbS.js} +8 -10
  9. package/dist/{OSM-DT4I7v8A.js → OSM-B5Zc3qAf.js} +2 -3
  10. package/dist/{PdfPreview.client-1WFiBcXh.js → PdfPreview.client-D3wHTDb9.js} +130 -378
  11. package/dist/{PdfSkeleton-BvU7ERD1.js → PdfSkeleton-nas5Pmia.js} +2 -3
  12. package/dist/{Pmtiles.client-BlbOlwyy.js → Pmtiles.client-NGYdeSJY.js} +151 -350
  13. package/dist/{PreviewError-BfBCBDEx.js → PreviewError-EeaGx3SL.js} +6854 -6849
  14. package/dist/{PreviewWrapper-DvycGC7l.js → PreviewWrapper-BhldDdXK.js} +2 -3
  15. package/dist/{ScaleLine-Cwwk9wJo.js → ScaleLine-C_tuJ6VG.js} +3 -4
  16. package/dist/Tile-8nHSuqcv.js +571 -0
  17. package/dist/{Tile-4WpHaLOZ.js → Tile-Bu5lF4M5.js} +8 -13
  18. package/dist/{TileImage-CZZ4lgsm.js → TileImage-CgO5alXc.js} +105 -113
  19. package/dist/{View-DWqx4Jqr.js → View-Dad8DfSD.js} +25 -51
  20. package/dist/{XmlPreview.client-ClFD8R3a.js → XmlPreview.client-CmGbc3c3.js} +5 -7
  21. package/dist/assets/maplibre-gl-worker-CEzvAyZY.js +10 -0
  22. package/dist/components-next.js +9634 -10210
  23. package/dist/{en-C_qOt4Jn.js → en-OIaJCts4.js} +1 -2
  24. package/dist/{france-JfC0dOuE.js → france-BtSQqcqV.js} +5 -9
  25. package/dist/{hvd-ZlsiTVFh.js → hvd-CTia2VCz.js} +1 -2
  26. package/dist/{inspire-DZQ-yA5f.js → inspire-Cc-Kc4K-.js} +1 -2
  27. package/dist/{leaflet-src-lLkzhpcP.js → leaflet-src-BY_Zq0V0.js} +77 -126
  28. package/dist/{proj-DM6GW1n3.js → proj-COhZ08DR.js} +19 -37
  29. package/dist/{purify.es-D6pPunDo.js → purify.es-CGAWnSTR.js} +4 -27
  30. package/dist/{rolldown-runtime-CEFd7nDs.js → rolldown-runtime-DsPmjQRF.js} +2 -3
  31. package/dist/{sl-BxQ_ZY_w.js → sl-CKkMwQhf.js} +1 -2
  32. package/dist/{spd-Cs37HjuR.js → spd-Djcs02gw.js} +1 -2
  33. package/dist/{sr-JDtennFO.js → sr-DabGmchD.js} +1 -2
  34. package/dist/{src-D_UE0st7.js → src-D_o-aUzl.js} +1612 -2428
  35. package/dist/{text-clamp.esm-DRvX2Gzm.js → text-clamp.esm-DE3022VR.js} +3 -5
  36. package/dist/{transform-Ct1GejD-.js → transform-CNeEnSK9.js} +7 -13
  37. package/dist/{vue3-json-viewer-BJgUfh-l.js → vue3-json-viewer-CUx5EFVA.js} +1 -2
  38. package/dist/{vue3-xml-viewer.common-DbJwzvCC.js → vue3-xml-viewer.common-C0bbtsGT.js} +2 -3
  39. package/package.json +2 -2
  40. package/dist/Tile-BV44yf69.js +0 -574
  41. package/dist/assets/maplibre-gl-worker-C24SsKwV.js +0 -10
@@ -1,9 +1,9 @@
1
- import { t as e } from "./rolldown-runtime-CEFd7nDs.js";
2
- //#region ../node_modules/leaflet/dist/leaflet-src.js
3
- var t = /* @__PURE__ */ e(((e, t) => {
1
+ import { t as e } from "./rolldown-runtime-DsPmjQRF.js";
2
+ // ../node_modules/leaflet/dist/leaflet-src.js
3
+ var t = /* @__PURE__ */ e(((e, t, n) => {
4
4
  (function(n, r) {
5
5
  typeof e == "object" && t !== void 0 ? r(e) : typeof define == "function" && define.amd ? define(["exports"], r) : (n = typeof globalThis < "u" ? globalThis : n || self, r(n.leaflet = {}));
6
- })(e, (function(e) {
6
+ })(n, (function(e) {
7
7
  var t = "1.9.4";
8
8
  function n(e) {
9
9
  for (var t, n = 1, r = arguments.length, i; n < r; n++) for (t in i = arguments[n], i) e[t] = i[t];
@@ -170,11 +170,8 @@ var t = /* @__PURE__ */ e(((e, t) => {
170
170
  return this;
171
171
  },
172
172
  _on: function(e, t, n, r) {
173
- if (typeof t != "function") {
174
- console.warn("wrong listener type: " + typeof t);
175
- return;
176
- }
177
- if (this._listens(e, t, n) === !1) {
173
+ if (typeof t != "function") console.warn("wrong listener type: " + typeof t);
174
+ else if (this._listens(e, t, n) === !1) {
178
175
  n === this && (n = void 0);
179
176
  var i = {
180
177
  fn: t,
@@ -189,16 +186,13 @@ var t = /* @__PURE__ */ e(((e, t) => {
189
186
  if (arguments.length === 1) {
190
187
  if (this._firingCount) for (i = 0, a = r.length; i < a; i++) r[i].fn = l;
191
188
  delete this._events[e];
192
- return;
193
- }
194
- if (typeof t != "function") {
195
- console.warn("wrong listener type: " + typeof t);
196
- return;
197
- }
198
- var o = this._listens(e, t, n);
199
- if (o !== !1) {
200
- var s = r[o];
201
- this._firingCount && (s.fn = l, this._events[e] = r = r.slice()), r.splice(o, 1);
189
+ } else if (typeof t != "function") console.warn("wrong listener type: " + typeof t);
190
+ else {
191
+ var o = this._listens(e, t, n);
192
+ if (o !== !1) {
193
+ var s = r[o];
194
+ this._firingCount && (s.fn = l, this._events[e] = r = r.slice()), r.splice(o, 1);
195
+ }
202
196
  }
203
197
  }
204
198
  },
@@ -568,11 +562,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
568
562
  })()
569
563
  };
570
564
  function me(e, t, n, r) {
571
- if (g(e)) {
572
- this._a = e[0], this._b = e[1], this._c = e[2], this._d = e[3];
573
- return;
574
- }
575
- this._a = e, this._b = t, this._c = n, this._d = r;
565
+ g(e) ? (this._a = e[0], this._b = e[1], this._c = e[2], this._d = e[3]) : (this._a = e, this._b = t, this._c = n, this._d = r);
576
566
  }
577
567
  me.prototype = {
578
568
  transform: function(e, t) {
@@ -684,11 +674,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
684
674
  return t === "touchstart" && gt(), ct[t] ? (n = ct[t].bind(this, n), e.addEventListener(st[t], n, !1), n) : (console.warn("wrong event specified:", t), l);
685
675
  }
686
676
  function ft(e, t, n) {
687
- if (!st[t]) {
688
- console.warn("wrong event specified:", t);
689
- return;
690
- }
691
- e.removeEventListener(st[t], n, !1);
677
+ st[t] ? e.removeEventListener(st[t], n, !1) : console.warn("wrong event specified:", t);
692
678
  }
693
679
  function pt(e) {
694
680
  lt[e.pointerId] = e;
@@ -721,11 +707,8 @@ var t = /* @__PURE__ */ e(((e, t) => {
721
707
  e.addEventListener("dblclick", t);
722
708
  var n = 0, r;
723
709
  function i(e) {
724
- if (e.detail !== 1) {
725
- r = e.detail;
726
- return;
727
- }
728
- if (!(e.pointerType === "mouse" || e.sourceCapabilities && !e.sourceCapabilities.firesTouchEvents)) {
710
+ if (e.detail !== 1) r = e.detail;
711
+ else if (!(e.pointerType === "mouse" || e.sourceCapabilities && !e.sourceCapabilities.firesTouchEvents)) {
729
712
  var i = on(e);
730
713
  if (!i.some(function(e) {
731
714
  return e instanceof HTMLLabelElement && e.attributes.for;
@@ -1614,7 +1597,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
1614
1597
  return F(t, "leaflet-control"), n.indexOf("bottom") === -1 ? r.appendChild(t) : r.insertBefore(t, r.firstChild), this._map.on("unload", this.remove, this), this;
1615
1598
  },
1616
1599
  remove: function() {
1617
- return this._map ? (P(this._container), this.onRemove && this.onRemove(this._map), this._map.off("unload", this.remove, this), this._map = null, this) : this;
1600
+ return this._map &&= (P(this._container), this.onRemove && this.onRemove(this._map), this._map.off("unload", this.remove, this), null), this;
1618
1601
  },
1619
1602
  _refocusOnMap: function(e) {
1620
1603
  this._map && e && e.screenX > 0 && e.screenY > 0 && this._map.getContainer().focus();
@@ -1874,7 +1857,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
1874
1857
  return this.options.prefix = e, this._update(), this;
1875
1858
  },
1876
1859
  addAttribution: function(e) {
1877
- return e ? (this._attributions[e] || (this._attributions[e] = 0), this._attributions[e]++, this._update(), this) : this;
1860
+ return e && (this._attributions[e] || (this._attributions[e] = 0), this._attributions[e]++, this._update()), this;
1878
1861
  },
1879
1862
  removeAttribution: function(e) {
1880
1863
  return e && this._attributions[e] && (this._attributions[e]--, this._update()), this;
@@ -1898,10 +1881,10 @@ var t = /* @__PURE__ */ e(((e, t) => {
1898
1881
  this._map = e;
1899
1882
  },
1900
1883
  enable: function() {
1901
- return this._enabled ? this : (this._enabled = !0, this.addHooks(), this);
1884
+ return this._enabled || (this._enabled = !0, this.addHooks()), this;
1902
1885
  },
1903
1886
  disable: function() {
1904
- return this._enabled ? (this._enabled = !1, this.removeHooks(), this) : this;
1887
+ return this._enabled && (this._enabled = !1, this.removeHooks()), this;
1905
1888
  },
1906
1889
  enabled: function() {
1907
1890
  return !!this._enabled;
@@ -1923,11 +1906,8 @@ var t = /* @__PURE__ */ e(((e, t) => {
1923
1906
  },
1924
1907
  _onDown: function(e) {
1925
1908
  if (this._enabled && (this._moved = !1, !jt(this._element, "leaflet-zoom-anim"))) {
1926
- if (e.touches && e.touches.length !== 1) {
1927
- wn._dragging === this && this.finishDrag();
1928
- return;
1929
- }
1930
- if (!(wn._dragging || e.shiftKey || e.which !== 1 && e.button !== 1 && !e.touches) && (wn._dragging = this, this._preventOutline && Kt(this._element), Ht(), Rt(), !this._moving)) {
1909
+ if (e.touches && e.touches.length !== 1) wn._dragging === this && this.finishDrag();
1910
+ else if (!(wn._dragging || e.shiftKey || e.which !== 1 && e.button !== 1 && !e.touches) && (wn._dragging = this, this._preventOutline && Kt(this._element), Ht(), Rt(), !this._moving)) {
1931
1911
  this.fire("down");
1932
1912
  var t = e.touches ? e.touches[0] : e, n = Jt(this._element);
1933
1913
  this._startPoint = new x(t.clientX, t.clientY), this._startPos = Lt(this._element), this._parentScale = Yt(n);
@@ -1938,12 +1918,11 @@ var t = /* @__PURE__ */ e(((e, t) => {
1938
1918
  },
1939
1919
  _onMove: function(e) {
1940
1920
  if (this._enabled) {
1941
- if (e.touches && e.touches.length > 1) {
1942
- this._moved = !0;
1943
- return;
1921
+ if (e.touches && e.touches.length > 1) this._moved = !0;
1922
+ else {
1923
+ var t = e.touches && e.touches.length === 1 ? e.touches[0] : e, n = new x(t.clientX, t.clientY)._subtract(this._startPoint);
1924
+ (n.x || n.y) && (Math.abs(n.x) + Math.abs(n.y) < this.options.clickTolerance || (n.x /= this._parentScale.x, n.y /= this._parentScale.y, U(e), this._moved || (this.fire("dragstart"), this._moved = !0, F(document.body, "leaflet-dragging"), this._lastTarget = e.target || e.srcElement, window.SVGElementInstance && this._lastTarget instanceof window.SVGElementInstance && (this._lastTarget = this._lastTarget.correspondingUseElement), F(this._lastTarget, "leaflet-drag-target")), this._newPos = this._startPos.add(n), this._moving = !0, this._lastEvent = e, this._updatePosition()));
1944
1925
  }
1945
- var t = e.touches && e.touches.length === 1 ? e.touches[0] : e, n = new x(t.clientX, t.clientY)._subtract(this._startPoint);
1946
- (n.x || n.y) && (Math.abs(n.x) + Math.abs(n.y) < this.options.clickTolerance || (n.x /= this._parentScale.x, n.y /= this._parentScale.y, U(e), this._moved || (this.fire("dragstart"), this._moved = !0, F(document.body, "leaflet-dragging"), this._lastTarget = e.target || e.srcElement, window.SVGElementInstance && this._lastTarget instanceof window.SVGElementInstance && (this._lastTarget = this._lastTarget.correspondingUseElement), F(this._lastTarget, "leaflet-drag-target")), this._newPos = this._startPos.add(n), this._moving = !0, this._lastEvent = e, this._updatePosition()));
1947
1926
  }
1948
1927
  },
1949
1928
  _updatePosition: function() {
@@ -2189,11 +2168,11 @@ var t = /* @__PURE__ */ e(((e, t) => {
2189
2168
  addLayer: function(e) {
2190
2169
  if (!e._layerAdd) throw Error("The provided object is not a Layer.");
2191
2170
  var t = o(e);
2192
- return this._layers[t] ? this : (this._layers[t] = e, e._mapToAdd = this, e.beforeAdd && e.beforeAdd(this), this.whenReady(e._layerAdd, e), this);
2171
+ return this._layers[t] || (this._layers[t] = e, e._mapToAdd = this, e.beforeAdd && e.beforeAdd(this), this.whenReady(e._layerAdd, e)), this;
2193
2172
  },
2194
2173
  removeLayer: function(e) {
2195
2174
  var t = o(e);
2196
- return this._layers[t] ? (this._loaded && e.onRemove(this), delete this._layers[t], this._loaded && (this.fire("layerremove", { layer: e }), e.fire("remove")), e._map = e._mapToAdd = null, this) : this;
2175
+ return this._layers[t] && (this._loaded && e.onRemove(this), delete this._layers[t], this._loaded && (this.fire("layerremove", { layer: e }), e.fire("remove")), e._map = e._mapToAdd = null), this;
2197
2176
  },
2198
2177
  hasLayer: function(e) {
2199
2178
  return o(e) in this._layers;
@@ -2207,7 +2186,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
2207
2186
  for (var t = 0, n = e.length; t < n; t++) this.addLayer(e[t]);
2208
2187
  },
2209
2188
  _addZoomLimit: function(e) {
2210
- (!isNaN(e.options.maxZoom) || !isNaN(e.options.minZoom)) && (this._zoomBoundLayers[o(e)] = e, this._updateZoomLevels());
2189
+ isNaN(e.options.maxZoom) && isNaN(e.options.minZoom) || (this._zoomBoundLayers[o(e)] = e, this._updateZoomLevels());
2211
2190
  },
2212
2191
  _removeZoomLimit: function(e) {
2213
2192
  var t = o(e);
@@ -2732,11 +2711,8 @@ var t = /* @__PURE__ */ e(((e, t) => {
2732
2711
  _clipPoints: function() {
2733
2712
  var e = this._renderer._bounds;
2734
2713
  if (this._parts = [], this._pxBounds && this._pxBounds.intersects(e)) {
2735
- if (this.options.noClip) {
2736
- this._parts = this._rings;
2737
- return;
2738
- }
2739
- for (var t = this._parts, n = 0, r, i = 0, a = this._rings.length, o, s, c; n < a; n++) for (c = this._rings[n], r = 0, o = c.length; r < o - 1; r++) s = In(c[r], c[r + 1], e, r, !0), s && (t[i] = t[i] || [], t[i].push(s[0]), (s[1] !== c[r + 1] || r === o - 2) && (t[i].push(s[1]), i++));
2714
+ if (this.options.noClip) this._parts = this._rings;
2715
+ else for (var t = this._parts, n = 0, r, i = 0, a = this._rings.length, o, s, c; n < a; n++) for (c = this._rings[n], r = 0, o = c.length; r < o - 1; r++) s = In(c[r], c[r + 1], e, r, !0), s && (t[i] = t[i] || [], t[i].push(s[0]), (s[1] !== c[r + 1] || r === o - 2) && (t[i].push(s[1]), i++));
2740
2716
  }
2741
2717
  },
2742
2718
  _simplifyPoints: function() {
@@ -2781,11 +2757,8 @@ var t = /* @__PURE__ */ e(((e, t) => {
2781
2757
  _clipPoints: function() {
2782
2758
  var e = this._renderer._bounds, t = this.options.weight, n = new x(t, t);
2783
2759
  if (e = new C(e.min.subtract(n), e.max.add(n)), this._parts = [], this._pxBounds && this._pxBounds.intersects(e)) {
2784
- if (this.options.noClip) {
2785
- this._parts = this._rings;
2786
- return;
2787
- }
2788
- for (var r = 0, i = this._rings.length, a; r < i; r++) a = Tn(this._rings[r], e, !0), a.length && this._parts.push(a);
2760
+ if (this.options.noClip) this._parts = this._rings;
2761
+ else for (var r = 0, i = this._rings.length, a; r < i; r++) a = Tn(this._rings[r], e, !0), a.length && this._parts.push(a);
2789
2762
  }
2790
2763
  },
2791
2764
  _updatePath: function() {
@@ -2998,11 +2971,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
2998
2971
  },
2999
2972
  _initImage: function() {
3000
2973
  var e = this._url.tagName === "IMG", t = this._image = e ? this._url : N("img");
3001
- if (F(t, "leaflet-image-layer"), this._zoomAnimated && F(t, "leaflet-zoom-animated"), this.options.className && F(t, this.options.className), t.onselectstart = l, t.onmousemove = l, t.onload = i(this.fire, this, "load"), t.onerror = i(this._overlayOnError, this, "error"), (this.options.crossOrigin || this.options.crossOrigin === "") && (t.crossOrigin = this.options.crossOrigin === !0 ? "" : this.options.crossOrigin), this.options.zIndex && this._updateZIndex(), e) {
3002
- this._url = t.src;
3003
- return;
3004
- }
3005
- t.src = this._url, t.alt = this.options.alt;
2974
+ F(t, "leaflet-image-layer"), this._zoomAnimated && F(t, "leaflet-zoom-animated"), this.options.className && F(t, this.options.className), t.onselectstart = l, t.onmousemove = l, t.onload = i(this.fire, this, "load"), t.onerror = i(this._overlayOnError, this, "error"), (this.options.crossOrigin || this.options.crossOrigin === "") && (t.crossOrigin = this.options.crossOrigin === !0 ? "" : this.options.crossOrigin), this.options.zIndex && this._updateZIndex(), e ? this._url = t.src : (t.src = this._url, t.alt = this.options.alt);
3006
2975
  },
3007
2976
  _animateZoom: function(e) {
3008
2977
  var t = this._map.getZoomScale(e.zoom), n = this._map._latLngBoundsToNewLayerBounds(this._bounds, e.zoom, e.center).min;
@@ -3041,12 +3010,12 @@ var t = /* @__PURE__ */ e(((e, t) => {
3041
3010
  if (F(t, "leaflet-image-layer"), this._zoomAnimated && F(t, "leaflet-zoom-animated"), this.options.className && F(t, this.options.className), t.onselectstart = l, t.onmousemove = l, t.onloadeddata = i(this.fire, this, "load"), e) {
3042
3011
  for (var n = t.getElementsByTagName("source"), r = [], a = 0; a < n.length; a++) r.push(n[a].src);
3043
3012
  this._url = n.length > 0 ? r : [t.src];
3044
- return;
3045
- }
3046
- g(this._url) || (this._url = [this._url]), !this.options.keepAspectRatio && Object.prototype.hasOwnProperty.call(t.style, "objectFit") && (t.style.objectFit = "fill"), t.autoplay = !!this.options.autoplay, t.loop = !!this.options.loop, t.muted = !!this.options.muted, t.playsInline = !!this.options.playsInline;
3047
- for (var o = 0; o < this._url.length; o++) {
3048
- var s = N("source");
3049
- s.src = this._url[o], t.appendChild(s);
3013
+ } else {
3014
+ g(this._url) || (this._url = [this._url]), !this.options.keepAspectRatio && Object.prototype.hasOwnProperty.call(t.style, "objectFit") && (t.style.objectFit = "fill"), t.autoplay = !!this.options.autoplay, t.loop = !!this.options.loop, t.muted = !!this.options.muted, t.playsInline = !!this.options.playsInline;
3015
+ for (var o = 0; o < this._url.length; o++) {
3016
+ var s = N("source");
3017
+ s.src = this._url[o], t.appendChild(s);
3018
+ }
3050
3019
  }
3051
3020
  }
3052
3021
  });
@@ -3224,14 +3193,13 @@ var t = /* @__PURE__ */ e(((e, t) => {
3224
3193
  },
3225
3194
  _adjustPan: function() {
3226
3195
  if (this.options.autoPan) {
3227
- if (this._map._panAnim && this._map._panAnim.stop(), this._autopanning) {
3228
- this._autopanning = !1;
3229
- return;
3196
+ if (this._map._panAnim && this._map._panAnim.stop(), this._autopanning) this._autopanning = !1;
3197
+ else {
3198
+ var e = this._map, t = parseInt(Dt(this._container, "marginBottom"), 10) || 0, n = this._container.offsetHeight + t, r = this._containerWidth, i = new x(this._containerLeft, -n - this._containerBottom);
3199
+ i._add(Lt(this._container));
3200
+ var a = e.layerPointToContainerPoint(i), o = S(this.options.autoPanPadding), s = S(this.options.autoPanPaddingTopLeft || o), c = S(this.options.autoPanPaddingBottomRight || o), l = e.getSize(), u = 0, d = 0;
3201
+ a.x + r + c.x > l.x && (u = a.x + r - l.x + c.x), a.x - u - s.x < 0 && (u = a.x - s.x), a.y + n + c.y > l.y && (d = a.y + n - l.y + c.y), a.y - d - s.y < 0 && (d = a.y - s.y), (u || d) && (this.options.keepInView && (this._autopanning = !0), e.fire("autopanstart").panBy([u, d]));
3230
3202
  }
3231
- var e = this._map, t = parseInt(Dt(this._container, "marginBottom"), 10) || 0, n = this._container.offsetHeight + t, r = this._containerWidth, i = new x(this._containerLeft, -n - this._containerBottom);
3232
- i._add(Lt(this._container));
3233
- var a = e.layerPointToContainerPoint(i), o = S(this.options.autoPanPadding), s = S(this.options.autoPanPaddingTopLeft || o), c = S(this.options.autoPanPaddingBottomRight || o), l = e.getSize(), u = 0, d = 0;
3234
- a.x + r + c.x > l.x && (u = a.x + r - l.x + c.x), a.x - u - s.x < 0 && (u = a.x - s.x), a.y + n + c.y > l.y && (d = a.y + n - l.y + c.y), a.y - d - s.y < 0 && (d = a.y - s.y), (u || d) && (this.options.keepInView && (this._autopanning = !0), e.fire("autopanstart").panBy([u, d]));
3235
3203
  }
3236
3204
  },
3237
3205
  _getAnchor: function() {
@@ -3286,11 +3254,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
3286
3254
  if (this._popup && this._map) {
3287
3255
  an(e);
3288
3256
  var t = e.layer || e.target;
3289
- if (this._popup._source === t && !(t instanceof ar)) {
3290
- this._map.hasLayer(this._popup) ? this.closePopup() : this.openPopup(e.latlng);
3291
- return;
3292
- }
3293
- this._popup._source = t, this.openPopup(e.latlng);
3257
+ this._popup._source === t && !(t instanceof ar) ? this._map.hasLayer(this._popup) ? this.closePopup() : this.openPopup(e.latlng) : (this._popup._source = t, this.openPopup(e.latlng));
3294
3258
  }
3295
3259
  },
3296
3260
  _movePopup: function(e) {
@@ -3408,9 +3372,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
3408
3372
  this._map.once("moveend", function() {
3409
3373
  t._openOnceFlag = !1, t._openTooltip(e);
3410
3374
  });
3411
- return;
3412
- }
3413
- this._tooltip._source = e.layer || e.target, this.openTooltip(this._tooltip.options.sticky ? e.latlng : void 0);
3375
+ } else this._tooltip._source = e.layer || e.target, this.openTooltip(this._tooltip.options.sticky ? e.latlng : void 0);
3414
3376
  }
3415
3377
  },
3416
3378
  _moveTooltip: function(e) {
@@ -3552,16 +3514,15 @@ var t = /* @__PURE__ */ e(((e, t) => {
3552
3514
  _pruneTiles: function() {
3553
3515
  if (this._map) {
3554
3516
  var e, t, n = this._map.getZoom();
3555
- if (n > this.options.maxZoom || n < this.options.minZoom) {
3556
- this._removeAllTiles();
3557
- return;
3558
- }
3559
- for (e in this._tiles) t = this._tiles[e], t.retain = t.current;
3560
- for (e in this._tiles) if (t = this._tiles[e], t.current && !t.active) {
3561
- var r = t.coords;
3562
- this._retainParent(r.x, r.y, r.z, r.z - 5) || this._retainChildren(r.x, r.y, r.z, r.z + 2);
3517
+ if (n > this.options.maxZoom || n < this.options.minZoom) this._removeAllTiles();
3518
+ else {
3519
+ for (e in this._tiles) t = this._tiles[e], t.retain = t.current;
3520
+ for (e in this._tiles) if (t = this._tiles[e], t.current && !t.active) {
3521
+ var r = t.coords;
3522
+ this._retainParent(r.x, r.y, r.z, r.z - 5) || this._retainChildren(r.x, r.y, r.z, r.z + 2);
3523
+ }
3524
+ for (e in this._tiles) this._tiles[e].retain || this._removeTile(e);
3563
3525
  }
3564
- for (e in this._tiles) this._tiles[e].retain || this._removeTile(e);
3565
3526
  }
3566
3527
  },
3567
3528
  _removeTilesAtZoom: function(e) {
@@ -3585,11 +3546,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
3585
3546
  var o = new x(i, a);
3586
3547
  o.z = n + 1;
3587
3548
  var s = this._tileCoordsToKey(o), c = this._tiles[s];
3588
- if (c && c.active) {
3589
- c.retain = !0;
3590
- continue;
3591
- }
3592
- c && c.loaded && (c.retain = !0), n + 1 < r && this._retainChildren(i, a, n + 1, r);
3549
+ c && c.active ? c.retain = !0 : (c && c.loaded && (c.retain = !0), n + 1 < r && this._retainChildren(i, a, n + 1, r));
3593
3550
  }
3594
3551
  },
3595
3552
  _resetView: function(e) {
@@ -3636,26 +3593,25 @@ var t = /* @__PURE__ */ e(((e, t) => {
3636
3593
  if (!(isFinite(i.min.x) && isFinite(i.min.y) && isFinite(i.max.x) && isFinite(i.max.y))) throw Error("Attempted to load an infinite number of tiles");
3637
3594
  for (var l in this._tiles) {
3638
3595
  var u = this._tiles[l].coords;
3639
- (u.z !== this._tileZoom || !c.contains(new x(u.x, u.y))) && (this._tiles[l].current = !1);
3596
+ u.z === this._tileZoom && c.contains(new x(u.x, u.y)) || (this._tiles[l].current = !1);
3640
3597
  }
3641
- if (Math.abs(n - this._tileZoom) > 1) {
3642
- this._setView(e, n);
3643
- return;
3644
- }
3645
- for (var d = i.min.y; d <= i.max.y; d++) for (var f = i.min.x; f <= i.max.x; f++) {
3646
- var p = new x(f, d);
3647
- if (p.z = this._tileZoom, this._isValidTile(p)) {
3648
- var m = this._tiles[this._tileCoordsToKey(p)];
3649
- m ? m.current = !0 : o.push(p);
3598
+ if (Math.abs(n - this._tileZoom) > 1) this._setView(e, n);
3599
+ else {
3600
+ for (var d = i.min.y; d <= i.max.y; d++) for (var f = i.min.x; f <= i.max.x; f++) {
3601
+ var p = new x(f, d);
3602
+ if (p.z = this._tileZoom, this._isValidTile(p)) {
3603
+ var m = this._tiles[this._tileCoordsToKey(p)];
3604
+ m ? m.current = !0 : o.push(p);
3605
+ }
3606
+ }
3607
+ if (o.sort(function(e, t) {
3608
+ return e.distanceTo(a) - t.distanceTo(a);
3609
+ }), o.length !== 0) {
3610
+ this._loading || (this._loading = !0, this.fire("loading"));
3611
+ var ee = document.createDocumentFragment();
3612
+ for (f = 0; f < o.length; f++) this._addTile(o[f], ee);
3613
+ this._level.el.appendChild(ee);
3650
3614
  }
3651
- }
3652
- if (o.sort(function(e, t) {
3653
- return e.distanceTo(a) - t.distanceTo(a);
3654
- }), o.length !== 0) {
3655
- this._loading || (this._loading = !0, this.fire("loading"));
3656
- var ee = document.createDocumentFragment();
3657
- for (f = 0; f < o.length; f++) this._addTile(o[f], ee);
3658
- this._level.el.appendChild(ee);
3659
3615
  }
3660
3616
  }
3661
3617
  }
@@ -4132,7 +4088,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
4132
4088
  if (!(this._map._animatingZoom && this._bounds)) {
4133
4089
  $.prototype._update.call(this);
4134
4090
  var e = this._bounds, t = e.getSize(), n = this._container;
4135
- (!this._svgSize || !this._svgSize.equals(t)) && (this._svgSize = t, n.setAttribute("width", t.x), n.setAttribute("height", t.y)), z(n, e.min), n.setAttribute("viewBox", [
4091
+ this._svgSize && this._svgSize.equals(t) || (this._svgSize = t, n.setAttribute("width", t.x), n.setAttribute("height", t.y)), z(n, e.min), n.setAttribute("viewBox", [
4136
4092
  e.min.x,
4137
4093
  e.min.y,
4138
4094
  t.x,
@@ -4563,11 +4519,7 @@ var t = /* @__PURE__ */ e(((e, t) => {
4563
4519
  }
4564
4520
  },
4565
4521
  _onTouchEnd: function() {
4566
- if (!this._moved || !this._zooming) {
4567
- this._zooming = !1;
4568
- return;
4569
- }
4570
- this._zooming = !1, v(this._animRequest), H(document, "touchmove", this._onTouchMove, this), H(document, "touchend touchcancel", this._onTouchEnd, this), this._map.options.zoomAnimation ? this._map._animateZoom(this._center, this._map._limitZoom(this._zoom), !0, this._map.options.zoomSnap) : this._map._resetView(this._center, this._map._limitZoom(this._zoom));
4522
+ !this._moved || !this._zooming ? this._zooming = !1 : (this._zooming = !1, v(this._animRequest), H(document, "touchmove", this._onTouchMove, this), H(document, "touchend touchcancel", this._onTouchEnd, this), this._map.options.zoomAnimation ? this._map._animateZoom(this._center, this._map._limitZoom(this._zoom), !0, this._map.options.zoomSnap) : this._map._resetView(this._center, this._map._limitZoom(this._zoom)));
4571
4523
  }
4572
4524
  });
4573
4525
  W.addInitHook("addHandler", "touchZoom", ii), W.BoxZoom = Zr, W.DoubleClickZoom = Qr, W.Drag = $r, W.Keyboard = ei, W.ScrollWheelZoom = ti, W.TapHold = ri, W.TouchZoom = ii, e.Bounds = C, e.Browser = M, e.CRS = k, e.Canvas = Hr, e.Circle = cr, e.CircleMarker = or, e.Class = y, e.Control = G, e.DivIcon = Pr, e.DivOverlay = Q, e.DomEvent = dn, e.DomUtil = Xt, e.Draggable = wn, e.Evented = ue, e.FeatureGroup = Y, e.GeoJSON = Z, e.GridLayer = Ir, e.Handler = K, e.Icon = $n, e.ImageOverlay = wr, e.LatLng = D, e.LatLngBounds = T, e.Layer = J, e.LayerGroup = Xn, e.LineUtil = Un, e.Map = W, e.Marker = rr, e.Mixin = Sn, e.Path = ar, e.Point = x, e.PolyUtil = On, e.Polygon = dr, e.Polyline = X, e.Popup = Ar, e.PosAnimation = fn, e.Projection = Kn, e.Rectangle = Yr, e.Renderer = $, e.SVG = qr, e.SVGOverlay = Or, e.TileLayer = Rr, e.Tooltip = Mr, e.Transformation = me, e.Util = ce, e.VideoOverlay = Er, e.bind = i, e.bounds = w, e.canvas = Ur, e.circle = lr, e.circleMarker = sr, e.control = mn, e.divIcon = Fr, e.extend = n, e.featureGroup = Qn, e.geoJSON = Sr, e.geoJson = Cr, e.gridLayer = Lr, e.icon = er, e.imageOverlay = Tr, e.latLng = O, e.latLngBounds = E, e.layerGroup = Zn, e.map = pn, e.marker = ir, e.point = S, e.polygon = fr, e.polyline = ur, e.popup = jr, e.rectangle = Xr, e.setOptions = p, e.stamp = o, e.svg = Jr, e.svgOverlay = kr, e.tileLayer = zr, e.tooltip = Nr, e.transformation = he, e.version = t, e.videoOverlay = Dr;
@@ -4577,5 +4529,4 @@ var t = /* @__PURE__ */ e(((e, t) => {
4577
4529
  }, window.L = e;
4578
4530
  }));
4579
4531
  }));
4580
- //#endregion
4581
4532
  export default t();
@@ -1,7 +1,6 @@
1
- //#region ../node_modules/ol/ObjectEventType.js
1
+ // ../node_modules/ol/ObjectEventType.js
2
2
  var e = { PROPERTYCHANGE: "propertychange" };
3
- //#endregion
4
- //#region ../node_modules/ol/obj.js
3
+ // ../node_modules/ol/obj.js
5
4
  function t(e) {
6
5
  for (let t in e) delete e[t];
7
6
  }
@@ -10,8 +9,7 @@ function n(e) {
10
9
  for (t in e) return !1;
11
10
  return !t;
12
11
  }
13
- //#endregion
14
- //#region ../node_modules/ol/events.js
12
+ // ../node_modules/ol/events.js
15
13
  function r(e, t, n, r, i) {
16
14
  if (i) {
17
15
  let i = n;
@@ -32,8 +30,7 @@ function i(e, t, n, i) {
32
30
  function a(e) {
33
31
  e && e.target && (e.target.removeEventListener(e.type, e.listener), t(e));
34
32
  }
35
- //#endregion
36
- //#region ../node_modules/ol/events/EventType.js
33
+ // ../node_modules/ol/events/EventType.js
37
34
  var o = {
38
35
  CHANGE: "change",
39
36
  ERROR: "error",
@@ -61,8 +58,7 @@ var o = {
61
58
  }
62
59
  disposeInternal() {}
63
60
  };
64
- //#endregion
65
- //#region ../node_modules/ol/array.js
61
+ // ../node_modules/ol/array.js
66
62
  function c(e, t, n) {
67
63
  let r, i;
68
64
  n ||= l;
@@ -126,8 +122,7 @@ function h(e, t, n) {
126
122
  return !(a > 0 || n && a === 0);
127
123
  });
128
124
  }
129
- //#endregion
130
- //#region ../node_modules/ol/functions.js
125
+ // ../node_modules/ol/functions.js
131
126
  function g() {
132
127
  return !0;
133
128
  }
@@ -139,7 +134,7 @@ function y(e) {
139
134
  let t, n, r;
140
135
  return function() {
141
136
  let i = Array.prototype.slice.call(arguments);
142
- return (!n || this !== r || !m(i, n)) && (r = this, n = i, t = e.apply(this, arguments)), t;
137
+ return n && this === r && m(i, n) || (r = this, n = i, t = e.apply(this, arguments)), t;
143
138
  };
144
139
  }
145
140
  function b(e) {
@@ -154,8 +149,7 @@ function b(e) {
154
149
  }
155
150
  return t();
156
151
  }
157
- //#endregion
158
- //#region ../node_modules/ol/events/Event.js
152
+ // ../node_modules/ol/events/Event.js
159
153
  var x = class {
160
154
  constructor(e) {
161
155
  this.propagationStopped, this.defaultPrevented, this.type = e, this.target = null;
@@ -249,8 +243,7 @@ function w(e) {
249
243
  if (Array.isArray(e)) for (let t = 0, n = e.length; t < n; ++t) a(e[t]);
250
244
  else a(e);
251
245
  }
252
- //#endregion
253
- //#region ../node_modules/ol/util.js
246
+ // ../node_modules/ol/util.js
254
247
  function ee() {
255
248
  throw Error("Unimplemented abstract method.");
256
249
  }
@@ -258,8 +251,7 @@ var te = 0;
258
251
  function ne(e) {
259
252
  return e.ol_uid ||= String(++te);
260
253
  }
261
- //#endregion
262
- //#region ../node_modules/ol/Object.js
254
+ // ../node_modules/ol/Object.js
263
255
  var re = class extends x {
264
256
  constructor(e, t, n) {
265
257
  super(e), this.key = t, this.oldValue = n;
@@ -322,8 +314,7 @@ var re = class extends x {
322
314
  BELOW: 8,
323
315
  LEFT: 16
324
316
  };
325
- //#endregion
326
- //#region ../node_modules/ol/extent.js
317
+ // ../node_modules/ol/extent.js
327
318
  function ae(e) {
328
319
  let t = E();
329
320
  for (let n = 0, r = e.length; n < r; ++n) ve(t, e[n]);
@@ -591,8 +582,7 @@ function Be(e, t) {
591
582
  }
592
583
  return n;
593
584
  }
594
- //#endregion
595
- //#region ../node_modules/ol/console.js
585
+ // ../node_modules/ol/console.js
596
586
  var Ve = {
597
587
  info: 1,
598
588
  warn: 2,
@@ -602,8 +592,7 @@ var Ve = {
602
592
  function Ue(...e) {
603
593
  He > Ve.warn || console.warn(...e);
604
594
  }
605
- //#endregion
606
- //#region ../node_modules/ol/math.js
595
+ // ../node_modules/ol/math.js
607
596
  function We(e, t, n) {
608
597
  return Math.min(Math.max(e, t), n);
609
598
  }
@@ -673,8 +662,7 @@ function $e(e, t, n) {
673
662
  let r = n - t;
674
663
  return ((e - t) % r + r) % r + t;
675
664
  }
676
- //#endregion
677
- //#region ../node_modules/ol/coordinate.js
665
+ // ../node_modules/ol/coordinate.js
678
666
  function et(e, t) {
679
667
  return e[0] += +t[0], e[1] += +t[1], e;
680
668
  }
@@ -722,8 +710,7 @@ function ut(e, t, n) {
722
710
  let r = Math.sqrt((t[0] - e[0]) * (t[0] - e[0]) + (t[1] - e[1]) * (t[1] - e[1])), i = [(t[0] - e[0]) / r, (t[1] - e[1]) / r], a = [-i[1], i[0]], o = Math.sqrt((n[0] - e[0]) * (n[0] - e[0]) + (n[1] - e[1]) * (n[1] - e[1])), s = [(n[0] - e[0]) / o, (n[1] - e[1]) / o], c = r === 0 || o === 0 ? 0 : Math.acos(We(s[0] * i[0] + s[1] * i[1], -1, 1));
723
711
  return c = Math.max(c, 1e-5), s[0] * a[0] + s[1] * a[1] > 0 ? c : Math.PI * 2 - c;
724
712
  }
725
- //#endregion
726
- //#region ../node_modules/ol/proj/Units.js
713
+ // ../node_modules/ol/proj/Units.js
727
714
  var F = {
728
715
  radians: 6370997 / (2 * Math.PI),
729
716
  degrees: 2 * Math.PI * 6370997 / 360,
@@ -826,8 +813,7 @@ function ht(e, t, n, r) {
826
813
  for (let n = 0; n < i; n += r) t[n] = 180 * e[n] / R, t[n + 1] = 360 * Math.atan(Math.exp(e[n + 1] / L)) / Math.PI - 90;
827
814
  return t;
828
815
  }
829
- //#endregion
830
- //#region ../node_modules/ol/proj/epsg4326.js
816
+ // ../node_modules/ol/proj/epsg4326.js
831
817
  var gt = 6378137, _t = [
832
818
  -180,
833
819
  -90,
@@ -860,8 +846,7 @@ function xt(e) {
860
846
  function St(e, t) {
861
847
  bt[e] = t;
862
848
  }
863
- //#endregion
864
- //#region ../node_modules/ol/proj/transforms.js
849
+ // ../node_modules/ol/proj/transforms.js
865
850
  var H = {};
866
851
  function U(e, t, n) {
867
852
  let r = e.getCode(), i = t.getCode();
@@ -870,8 +855,7 @@ function U(e, t, n) {
870
855
  function W(e, t) {
871
856
  return e in H && t in H[e] ? H[e][t] : null;
872
857
  }
873
- //#endregion
874
- //#region ../node_modules/ol/proj/utm.js
858
+ // ../node_modules/ol/proj/utm.js
875
859
  var G = .9996, K = .00669438, Ct = K * K, wt = Ct * K, q = K / .99330562, Tt = Math.sqrt(.99330562), J = (1 - Tt) / (1 + Tt), Et = J * J, Dt = Et * J, Ot = Dt * J, kt = Ot * J, At = 1 - K / 4 - 3 * Ct / 64 - 5 * wt / 256, jt = .002514607064228144, Mt = 26390466021299826e-22, Nt = 35 * wt / 3072, Pt = 3 / 2 * J - 27 / 32 * Dt + 269 / 512 * kt, Ft = 21 / 16 * Et - 55 / 32 * Ot, It = 151 / 96 * Dt - 417 / 128 * kt, Lt = 1097 / 512 * Ot, Y = 6378137;
876
860
  function Rt(e, t, n) {
877
861
  let r = e - 5e5, i = (n.north ? t : t - 1e7) / G / (Y * At), a = i + Pt * Math.sin(2 * i) + Ft * Math.sin(4 * i) + It * Math.sin(6 * i) + Lt * Math.sin(8 * i), o = Math.sin(a), s = o * o, c = Math.cos(a), l = o / c, u = l * l, d = u * u, f = 1 - K * s, p = Y / Math.sqrt(1 - K * s), m = .99330562 / f, h = q * c ** 2, g = h * h, _ = r / (p * G), v = _ * _, y = v * _, b = y * _, x = b * _, S = x * _, C = a - l / m * (v / 2 - b / 24 * (5 + 3 * u + 10 * h - 4 * g - 9 * q)) + S / 720 * (61 + 90 * u + 298 * h + 45 * d - 252 * q - 3 * g), w = (_ - y / 6 * (1 + 2 * u + h) + x / 120 * (5 - 2 * h + 28 * u - 3 * g + 8 * q + 24 * d)) / c;
@@ -975,8 +959,7 @@ function Qt(e, t, n, r) {
975
959
  let i = N(e[1]), a = N(e[0]), o = t / r, s = Math.asin(Math.sin(i) * Math.cos(o) + Math.cos(i) * Math.sin(o) * Math.cos(n));
976
960
  return [M(a + Math.atan2(Math.sin(n) * Math.sin(o) * Math.cos(i), Math.cos(o) - Math.sin(i) * Math.sin(s))), M(s)];
977
961
  }
978
- //#endregion
979
- //#region ../node_modules/ol/proj.js
962
+ // ../node_modules/ol/proj.js
980
963
  var $t = [Yt], en = [Jt], tn = !0;
981
964
  function nn(e) {
982
965
  tn = !(e === void 0 || e);
@@ -1146,5 +1129,4 @@ function Dn() {
1146
1129
  cn(pt), cn(yt), ln(yt, pt, mt, ht);
1147
1130
  }
1148
1131
  Dn();
1149
- //#endregion
1150
1132
  export { se as $, m as $t, ut as A, Ie as At, We as B, ne as Bt, Zt as C, ke as Ct, I as D, Ne as Dt, W as E, Me as Et, it as F, ze as Ft, qe as G, _ as Gt, Ye as H, w as Ht, at as I, Re as It, P as J, y as Jt, Ke as K, g as Kt, st as L, T as Lt, ot as M, Pe as Mt, nt as N, Fe as Nt, F as O, k as Ot, rt as P, Be as Pt, ae as Q, u as Qt, ct as R, ie as Rt, vn as S, De as St, Qt as T, Oe as Tt, Je as U, S as Ut, Ze as V, C as Vt, Xe as W, x as Wt, Ue as X, l as Xt, N as Y, b as Yt, Le as Z, c as Zt, an as _, Ce as _t, dn as a, o as an, pe as at, Tn as b, Ee as bt, pn as c, a as cn, O as ct, En as d, e as dn, ge as dt, p as en, ce as et, Q as f, _e as ft, bn as g, Se as gt, $ as h, xe as ht, un as i, s as in, fe as it, tt as j, j as jt, et as k, A as kt, Sn as l, t as ln, me as lt, gn as m, ye as mt, cn as n, d as nn, ue as nt, nn as o, r as on, E as ot, sn as p, ve as pt, Ge as q, v as qt, Z as r, f as rn, de as rt, mn as s, i as sn, D as st, fn as t, h as tn, le as tt, wn as u, n as un, he as ut, xn as v, we as vt, Xt as w, Ae as wt, _n as x, je as xt, Cn as y, Te as yt, Qe as z, ee as zt };
@@ -1,4 +1,4 @@
1
- //#region ../node_modules/dompurify/dist/purify.es.mjs
1
+ // ../node_modules/dompurify/dist/purify.es.mjs
2
2
  function e(e, t) {
3
3
  this.v = e, this.k = t;
4
4
  }
@@ -445,7 +445,7 @@ function Ye() {
445
445
  }, nn = function() {
446
446
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
447
447
  if (Y && Y === e) return;
448
- (!e || typeof e != "object") && (e = {}), e = D(e), Qt = $t.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = Qt === "application/xhtml+xml" ? ce : se, I = j(e, "ALLOWED_TAGS", vt, { transform: J }), L = j(e, "ALLOWED_ATTR", yt, { transform: J }), Gt = j(e, "ALLOWED_NAMESPACES", Kt, { transform: ce }), Bt = j(e, "ADD_URI_SAFE_ATTR", Vt, {
448
+ e && typeof e == "object" || (e = {}), e = D(e), Qt = $t.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = Qt === "application/xhtml+xml" ? ce : se, I = j(e, "ALLOWED_TAGS", vt, { transform: J }), L = j(e, "ALLOWED_ATTR", yt, { transform: J }), Gt = j(e, "ALLOWED_NAMESPACES", Kt, { transform: ce }), Bt = j(e, "ADD_URI_SAFE_ATTR", Vt, {
449
449
  transform: J,
450
450
  base: Vt
451
451
  }), Rt = j(e, "ADD_DATA_URI_TAGS", zt, {
@@ -481,7 +481,7 @@ function Ye() {
481
481
  return t.namespaceURI === Ut && !Xt[n] || t.namespaceURI === Ht && !Jt[n] ? !1 : !an[e] && (Zt[e] || !rn[e]);
482
482
  }, ln = function(e) {
483
483
  let t = y(e);
484
- (!t || !t.tagName) && (t = {
484
+ t && t.tagName || (t = {
485
485
  namespaceURI: q,
486
486
  tagName: "template"
487
487
  });
@@ -718,29 +718,7 @@ function Ye() {
718
718
  }, a = r.length, o = J(e.nodeName);
719
719
  for (; a--;) {
720
720
  let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = J(s), d = l, f = s === "value" ? d : fe(d), p = !1;
721
- if (i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, Q(F.uponSanitizeAttribute, e, i), f = i.attrValue, Nt && (u === "id" || u === "name") && de(f, Pt) !== 0 && (Z(s, e, n), f = Pt + f, p = !0), V && S(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, f)) {
722
- Z(s, e, n);
723
- continue;
724
- }
725
- if (u === "attributename" && le(f, "href")) {
726
- Z(s, e, n);
727
- continue;
728
- }
729
- if (!i.forceKeepAttr) {
730
- if (!i.keepAttr) {
731
- Z(s, e, n);
732
- continue;
733
- }
734
- if (!Tt && S(He, f)) {
735
- Z(s, e, n);
736
- continue;
737
- }
738
- if (B && (f = vn(f)), !On(o, u, f)) {
739
- Z(s, e, n);
740
- continue;
741
- }
742
- f = jn(o, u, c, f), f !== d && Mn(e, s, c, f) && p && ie(t.removed);
743
- }
721
+ i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, Q(F.uponSanitizeAttribute, e, i), f = i.attrValue, Nt && (u === "id" || u === "name") && de(f, Pt) !== 0 && (Z(s, e, n), f = Pt + f, p = !0), V && S(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, f) || u === "attributename" && le(f, "href") ? Z(s, e, n) : i.forceKeepAttr || (i.keepAttr ? !Tt && S(He, f) ? Z(s, e, n) : (B && (f = vn(f)), On(o, u, f) ? (f = jn(o, u, c, f), f !== d && Mn(e, s, c, f) && p && ie(t.removed)) : Z(s, e, n)) : Z(s, e, n));
744
722
  }
745
723
  Q(F.afterSanitizeAttributes, e, null), $(e, n);
746
724
  }, Pn = function(e) {
@@ -862,5 +840,4 @@ function Ye() {
862
840
  }, t;
863
841
  }
864
842
  var Xe = Ye();
865
- //#endregion
866
843
  export { Xe as t };
@@ -1,4 +1,4 @@
1
- //#region \0rolldown/runtime.js
1
+ // \0rolldown/runtime.js
2
2
  var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t, n) => () => {
3
3
  if (n) throw n[0];
4
4
  try {
@@ -6,7 +6,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
6
6
  } catch (e) {
7
7
  throw n = [e], e;
8
8
  }
9
- }, s = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), c = (e, n) => {
9
+ }, s = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), c = (e, n) => {
10
10
  let r = {};
11
11
  for (var i in e) t(r, i, {
12
12
  get: e[i],
@@ -26,5 +26,4 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
26
26
  if (typeof require < "u") return require.apply(this, arguments);
27
27
  throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
28
28
  });
29
- //#endregion
30
29
  export { d as a, f as i, o as n, u as o, c as r, s as t };