@datagouv/components-next 1.4.1-dev.1382.g7bc1bc5a → 1.4.1-dev.1384.gab4fb984

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.
@@ -9,7 +9,7 @@ import { S as assert, c as multiply, d as setFromArray, h as intersectsLineStrin
9
9
  import { A as deflateCoordinatesArray, B as getStrideForLayout, C as quantizeMultiArray, D as inflateMultiCoordinatesArray, E as inflateCoordinatesArray, F as assignClosestPoint, H as Geometry, I as maxSquaredDelta, L as multiArrayMaxSquaredDelta, M as arrayMaxSquaredDelta, N as assignClosestArrayPoint, O as deflateCoordinate, P as assignClosestMultiArrayPoint, R as SimpleGeometry, S as quantizeArray, T as inflateCoordinates, U as rotate, V as transformGeom2D, W as transform2D, _ as LinearRing, b as douglasPeucker, c as fromCircle, d as linearRingsAreOriented, f as linearRingssAreOriented, g as getInteriorPointsOfMultiArray, h as getInteriorPointOfArray, i as ViewHint_default, j as deflateMultiCoordinatesArray, k as deflateCoordinates, l as fromExtent, m as orientLinearRingsArray, o as Polygon, p as orientLinearRings, r as ViewProperty_default, s as circular, t as View, u as inflateEnds, v as linearRingss$1, w as snap, x as douglasPeuckerArray, y as Point$1, z as getLayoutForStride } from "./View-Dad8DfSD.js";
10
10
  import { c as fromString, o as asArray, p as EventType_default$1, r as BaseLayer, t as Layer$1 } from "./Layer-D_5tYbVm.js";
11
11
  import { a as CanvasLayerRenderer, i as CanvasTileLayerRenderer, o as canvasPool$1, r as TileProperty_default, s as ZIndexContext, t as TileLayer } from "./Tile-8nHSuqcv.js";
12
- import { t as purify_default } from "./purify.es-CGAWnSTR.js";
12
+ import { t as purify_default } from "./purify.es-eElsWhh7.js";
13
13
  // ../node_modules/geopf-extensions-openlayers/package.json
14
14
  var name$1 = "geopf-extensions-openlayers", description$3 = "French Geoportal Extensions for OpenLayers libraries", version$3 = "1.0.0-beta.15", date$2 = "25/09/2026", module$2 = "src/index.js", main$1 = "src/index.js", types$3 = "src/index.d.ts", directories = {}, engines$1 = { node: ">=20" }, repository$1 = {
15
15
  type: "git",
@@ -60844,18 +60844,27 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
60844
60844
  }
60845
60845
  return te.join("");
60846
60846
  }
60847
- var yt = {
60847
+ function yt(Y) {
60848
+ if (Y === "" || Y[0] === "/") return vt(Y);
60849
+ let ee = Y.split("/"), te = ee.length - 1, ne = [], xe = !1;
60850
+ for (let Y = 0; Y <= te; Y++) {
60851
+ let Le = ee[Y];
60852
+ Le === "." || Le === ".." ? (Le === ".." && (ne.length !== 0 && ne[ne.length - 1] !== ".." ? ne.pop() : ne.push("..")), xe = Y === te) : ne.push(Le);
60853
+ }
60854
+ return xe && ne[ne.length - 1] !== ".." && ne.push(""), (ne.length === 0 || ne[0] === "" || ne[0].includes(":")) && ne.unshift("."), ne.join("/");
60855
+ }
60856
+ var bt = {
60848
60857
  "@": "%40",
60849
60858
  "/": "%2F",
60850
60859
  "?": "%3F",
60851
60860
  "#": "%23",
60852
60861
  ":": "%3A"
60853
- }, bt = /[@/?#:]/g, xt = /[@/?#]/g;
60854
- function St(Y, ee) {
60855
- let te = ee ? xt : bt;
60856
- return te.lastIndex = 0, Y.replace(te, (Y) => yt[Y]);
60862
+ }, xt = /[@/?#:]/g, St = /[@/?#]/g;
60863
+ function Ct(Y, ee) {
60864
+ let te = ee ? St : xt;
60865
+ return te.lastIndex = 0, Y.replace(te, (Y) => bt[Y]);
60857
60866
  }
60858
- function Ct(Y, ee = !1) {
60867
+ function wt(Y, ee = !1) {
60859
60868
  if (Y.indexOf("%") === -1) return Y;
60860
60869
  let te = "";
60861
60870
  for (let ne = 0; ne < Y.length; ne++) {
@@ -60871,7 +60880,7 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
60871
60880
  }
60872
60881
  return te;
60873
60882
  }
60874
- function wt(Y) {
60883
+ function Tt(Y) {
60875
60884
  let ee = "";
60876
60885
  for (let te = 0; te < Y.length; te++) {
60877
60886
  let ne = Y[te];
@@ -60886,7 +60895,7 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
60886
60895
  if (tt(ne)) ee += ne;
60887
60896
  else {
60888
60897
  let xe = Y.charCodeAt(te);
60889
- if (xe < 128) ee += Mt(xe) ? ne : it[xe];
60898
+ if (xe < 128) ee += Pt(xe) ? ne : it[xe];
60890
60899
  else if (xe < 55296 || xe > 57343) ee += at(xe);
60891
60900
  else if (xe <= 56319 && te + 1 < Y.length) {
60892
60901
  let ne = Y.charCodeAt(te + 1);
@@ -60896,7 +60905,7 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
60896
60905
  }
60897
60906
  return ee;
60898
60907
  }
60899
- function Tt(Y, ee = !1) {
60908
+ function Et(Y, ee = !1) {
60900
60909
  let te = "", ne = ee && Y[0] !== "/";
60901
60910
  for (let ee = 0; ee < Y.length; ee++) {
60902
60911
  let xe = Y[ee];
@@ -60920,7 +60929,7 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
60920
60929
  }
60921
60930
  return te;
60922
60931
  }
60923
- function Et(Y, ee) {
60932
+ function Dt(Y, ee) {
60924
60933
  let te = "";
60925
60934
  for (let ne = 0; ne < Y.length; ne++) {
60926
60935
  let xe = Y[ne];
@@ -60944,19 +60953,19 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
60944
60953
  }
60945
60954
  return te;
60946
60955
  }
60947
- function Dt(Y) {
60948
- return Et(Y, rt);
60949
- }
60950
60956
  function Ot(Y) {
60951
- return Et(Y, nt);
60957
+ return Dt(Y, rt);
60952
60958
  }
60953
60959
  function kt(Y) {
60954
- return Et(Y, nt);
60960
+ return Dt(Y, nt);
60955
60961
  }
60956
60962
  function Mt(Y) {
60957
- return Y >= 48 && Y <= 57 || Y >= 65 && Y <= 90 || Y >= 97 && Y <= 122 || Y === 42 || Y === 43 || Y === 45 || Y === 46 || Y === 47 || Y === 64 || Y === 95;
60963
+ return Dt(Y, nt);
60958
60964
  }
60959
60965
  function Pt(Y) {
60966
+ return Y >= 48 && Y <= 57 || Y >= 65 && Y <= 90 || Y >= 97 && Y <= 122 || Y === 42 || Y === 43 || Y === 45 || Y === 46 || Y === 47 || Y === 64 || Y === 95;
60967
+ }
60968
+ function It(Y) {
60960
60969
  let ee = "";
60961
60970
  for (let te = 0; te < Y.length; te++) {
60962
60971
  let ne = Y[te];
@@ -60971,7 +60980,7 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
60971
60980
  if (nt(ne)) ee += ne;
60972
60981
  else {
60973
60982
  let xe = Y.charCodeAt(te);
60974
- if (xe < 128) ee += Mt(xe) ? ne : it[xe];
60983
+ if (xe < 128) ee += Pt(xe) ? ne : it[xe];
60975
60984
  else if (xe < 55296 || xe > 57343) ee += at(xe);
60976
60985
  else if (xe <= 56319 && te + 1 < Y.length) {
60977
60986
  let ne = Y.charCodeAt(te + 1);
@@ -60981,7 +60990,7 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
60981
60990
  }
60982
60991
  return ee;
60983
60992
  }
60984
- function It(Y) {
60993
+ function Lt(Y) {
60985
60994
  let ee = "";
60986
60995
  for (let te = 0; te < Y.length; te++) {
60987
60996
  if (Y[te] === "%" && te + 2 < Y.length) {
@@ -60995,13 +61004,13 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
60995
61004
  }
60996
61005
  return ee;
60997
61006
  }
60998
- function Lt(Y) {
61007
+ function Rt(Y) {
60999
61008
  let ee = [];
61000
- if (Y.userinfo !== void 0 && (ee.push(Dt(Y.userinfo)), ee.push("@")), Y.host !== void 0) {
61009
+ if (Y.userinfo !== void 0 && (ee.push(Ot(Y.userinfo)), ee.push("@")), Y.host !== void 0) {
61001
61010
  let te = Y.host;
61002
61011
  if (!ne(te)) {
61003
61012
  let Y = ht(te);
61004
- Y.isIPV6 !== !0 && Y.isIPVFuture !== !0 && (te = Ct(te, !0), Y = ht(te)), te = Y.isIPV6 === !0 || Y.isIPVFuture === !0 ? `[${Y.escapedHost}]` : St(te, !1);
61013
+ Y.isIPV6 !== !0 && Y.isIPVFuture !== !0 && (te = wt(te, !0), Y = ht(te)), te = Y.isIPV6 === !0 || Y.isIPVFuture === !0 ? `[${Y.escapedHost}]` : Ct(te, !1);
61005
61014
  }
61006
61015
  ee.push(te);
61007
61016
  }
@@ -61014,17 +61023,18 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
61014
61023
  }
61015
61024
  ee.exports = {
61016
61025
  nonSimpleDomain: dt,
61017
- recomposeAuthority: Lt,
61018
- reescapeHostDelimiters: St,
61019
- normalizePercentEncoding: Ct,
61020
- normalizePathEncoding: wt,
61021
- serializePathEncoding: Tt,
61022
- normalizeQueryFragmentEncoding: Pt,
61023
- encodeUserinfo: Dt,
61024
- encodeQuery: Ot,
61025
- encodeFragment: kt,
61026
- escapePreservingEscapes: It,
61026
+ recomposeAuthority: Rt,
61027
+ reescapeHostDelimiters: Ct,
61028
+ normalizePercentEncoding: wt,
61029
+ normalizePathEncoding: Tt,
61030
+ serializePathEncoding: Et,
61031
+ normalizeQueryFragmentEncoding: It,
61032
+ encodeUserinfo: Ot,
61033
+ encodeQuery: kt,
61034
+ encodeFragment: Mt,
61035
+ escapePreservingEscapes: Lt,
61027
61036
  removeDotSegments: vt,
61037
+ removeDotSegmentsRelative: yt,
61028
61038
  isIPv4: ne,
61029
61039
  isUUID: te,
61030
61040
  normalizeIPv6: ht,
@@ -61137,33 +61147,51 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
61137
61147
  getSchemeHandler: mt
61138
61148
  };
61139
61149
  })), require_fast_uri = /* @__PURE__ */ __commonJSMin(((Y, ee) => {
61140
- var { normalizeIPv6: te, removeDotSegments: ne, recomposeAuthority: xe, normalizePercentEncoding: Le, normalizePathEncoding: et, serializePathEncoding: tt, normalizeQueryFragmentEncoding: nt, encodeQuery: rt, encodeFragment: it, reescapeHostDelimiters: at, isIPv4: ot, nonSimpleDomain: st } = require_utils(), { SCHEMES: ct, getSchemeHandler: ut } = require_schemes(), dt = /^[A-Za-z][A-Za-z0-9+.-]*$/u, ft = "URI scheme is malformed.";
61141
- function pt(Y) {
61142
- let ee = unescape(String(Y));
61143
- if (!dt.test(ee)) throw TypeError(ft);
61150
+ var { normalizeIPv6: te, removeDotSegments: ne, removeDotSegmentsRelative: xe, recomposeAuthority: Le, normalizePercentEncoding: et, normalizePathEncoding: tt, serializePathEncoding: nt, normalizeQueryFragmentEncoding: rt, encodeQuery: it, encodeFragment: at, reescapeHostDelimiters: ot, isIPv4: st, nonSimpleDomain: ct } = require_utils(), { SCHEMES: ut, getSchemeHandler: dt } = require_schemes(), ft = /^[A-Za-z][A-Za-z0-9+.-]*$/u, pt = "URI scheme is malformed.", mt = "URI host is malformed.", ht = /[\0-\x20"#/:<>?@[\\\]^`{|}\x7F]/u;
61151
+ function _t(Y) {
61152
+ let ee = String(Y);
61153
+ if (!ft.test(ee)) throw TypeError(pt);
61144
61154
  return ee;
61145
61155
  }
61146
- function mt(Y, ee) {
61147
- return typeof Y == "string" ? Y = Mt(Y, ee) : typeof Y == "object" && (Y = kt(yt(Y, ee), ee)), Y;
61148
- }
61149
- function ht(Y, ee, ne) {
61150
- let xe = ne ? Object.assign({ scheme: "null" }, ne) : { scheme: "null" }, { parsed: Le, malformedAuthorityOrPort: et, malformedPercentEncoding: tt, malformedSchemeSpecific: nt, malformedHost: rt, malformedScheme: it } = Ot(Y, xe), { parsed: at, malformedAuthorityOrPort: st, malformedPercentEncoding: ct, malformedSchemeSpecific: dt, malformedHost: ft, malformedScheme: pt } = Ot(ee, xe);
61151
- if (et || st || tt || ct || nt || dt || rt || ft || it || pt) throw Error(Le.error || at.error || "URI is malformed.");
61152
- let mt = _t(Le, at, xe, !0), ht = ut(ne && ne.scheme || mt.scheme), vt = mt.host, bt = vt !== void 0 && vt !== "" && (ot(vt) || te(vt).isIPV6);
61153
- Dt(mt, ne || {}, ht, bt);
61156
+ function vt(Y, ee) {
61157
+ return typeof Y == "string" ? Y = zt(Y, ee) : typeof Y == "object" && (Y = Rt(St(Y, ee), ee)), Y;
61158
+ }
61159
+ function yt(Y, ee, ne) {
61160
+ let xe = ne ? Object.assign({ scheme: "null" }, ne) : { scheme: "null" }, { parsed: Le, malformedAuthorityOrPort: et, malformedPercentEncoding: tt, malformedSchemeSpecific: nt, malformedHost: rt, malformedScheme: it } = Lt(Y, xe), { parsed: at, malformedAuthorityOrPort: ot, malformedPercentEncoding: ct, malformedSchemeSpecific: ut, malformedHost: ft, malformedScheme: pt } = Lt(ee, xe);
61161
+ if (et || ot || tt || ct || nt || ut || rt || ft || it || pt) throw Error(Le.error || at.error || "URI is malformed.");
61162
+ let ht = bt(Le, at, xe, !0), _t = dt(ne && ne.scheme || ht.scheme), vt = ht.host, yt = vt !== void 0 && vt !== "" && (st(vt) || te(vt).isIPV6);
61163
+ if (Pt(ht, ne || {}, _t, yt)) throw Error(mt);
61164
+ Mt(ht, ne || {}, _t, yt);
61154
61165
  let xt = vt && vt.indexOf("%") !== -1 && !/\P{ASCII}/u.test(vt);
61155
- if (mt.error && !xt) throw Error(mt.error);
61156
- return xe.skipEscape = !0, yt(mt, xe);
61166
+ if (ht.error && !xt) throw Error(ht.error);
61167
+ return xe.skipEscape = !0, St(ht, xe);
61157
61168
  }
61158
- function _t(Y, ee, te, xe) {
61159
- let Le = {};
61160
- return xe || (Y = kt(yt(Y, te), te), ee = kt(yt(ee, te), te)), te ||= {}, !te.tolerant && ee.scheme ? (Le.scheme = ee.scheme, Le.userinfo = ee.userinfo, Le.host = ee.host, Le.port = ee.port, Le.path = ne(ee.path || ""), Le.query = ee.query) : (ee.userinfo !== void 0 || ee.host !== void 0 || ee.port !== void 0 ? (Le.userinfo = ee.userinfo, Le.host = ee.host, Le.port = ee.port, Le.path = ne(ee.path || ""), Le.query = ee.query) : (ee.path ? (ee.path[0] === "/" ? Le.path = ne(ee.path) : (Le.path = (Y.userinfo !== void 0 || Y.host !== void 0 || Y.port !== void 0) && !Y.path ? "/" + ee.path : Y.path ? Y.path.slice(0, Y.path.lastIndexOf("/") + 1) + ee.path : ee.path, Le.path = ne(Le.path)), Le.query = ee.query) : (Le.path = Y.path, Le.query = ee.query === void 0 ? Y.query : ee.query), Le.userinfo = Y.userinfo, Le.host = Y.host, Le.port = Y.port), Le.scheme = Y.scheme), Le.fragment = ee.fragment, Le;
61169
+ function bt(Y, ee, te, Le) {
61170
+ let et = {};
61171
+ if (Le || (Y = Rt(St(Y, te), te), ee = Rt(St(ee, te), te)), te ||= {}, !te.tolerant && ee.scheme) et.scheme = ee.scheme, et.userinfo = ee.userinfo, et.host = ee.host, et.port = ee.port, et.path = ne(ee.path || ""), et.query = ee.query;
61172
+ else {
61173
+ if (ee.userinfo !== void 0 || ee.host !== void 0 || ee.port !== void 0) et.userinfo = ee.userinfo, et.host = ee.host, et.port = ee.port, et.path = ne(ee.path || ""), et.query = ee.query;
61174
+ else {
61175
+ if (!ee.path) et.path = Y.path, et.query = ee.query === void 0 ? Y.query : ee.query;
61176
+ else {
61177
+ if (ee.path[0] === "/") et.path = ne(ee.path);
61178
+ else {
61179
+ let te = Y.userinfo !== void 0 || Y.host !== void 0 || Y.port !== void 0;
61180
+ et.path = te && !Y.path ? "/" + ee.path : Y.path ? Y.path.slice(0, Y.path.lastIndexOf("/") + 1) + ee.path : ee.path, et.path = Y.scheme === void 0 && !te && et.path[0] !== "/" ? xe(et.path) : ne(et.path);
61181
+ }
61182
+ et.query = ee.query;
61183
+ }
61184
+ et.userinfo = Y.userinfo, et.host = Y.host, et.port = Y.port;
61185
+ }
61186
+ et.scheme = Y.scheme;
61187
+ }
61188
+ return et.fragment = ee.fragment, et;
61161
61189
  }
61162
- function vt(Y, ee, te) {
61163
- let ne = It(Y, te), xe = It(ee, te);
61190
+ function xt(Y, ee, te) {
61191
+ let ne = Vt(Y, te), xe = Vt(ee, te);
61164
61192
  return ne !== void 0 && xe !== void 0 && ne === xe;
61165
61193
  }
61166
- function yt(Y, ee) {
61194
+ function St(Y, ee) {
61167
61195
  let te = {
61168
61196
  host: Y.host,
61169
61197
  scheme: Y.scheme,
@@ -61179,25 +61207,25 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
61179
61207
  resourceName: Y.resourceName,
61180
61208
  secure: Y.secure,
61181
61209
  error: ""
61182
- }, et = Object.assign({}, ee), nt = [];
61183
- te.scheme &&= pt(te.scheme);
61184
- let at = ut(et.scheme || te.scheme);
61185
- at && at.serialize && at.serialize(te, et);
61186
- let ot = te.userinfo !== void 0 || te.host !== void 0 || te.port !== void 0, st = !et.skipEscape && te.scheme === void 0 && !ot;
61187
- te.path !== void 0 && (te.path = et.skipEscape ? Le(te.path) : tt(te.path, st)), et.reference !== "suffix" && te.scheme && (te.scheme = pt(te.scheme), nt.push(te.scheme, ":"));
61188
- let ct = xe(te);
61189
- if (ct !== void 0 && (et.reference !== "suffix" && nt.push("//"), nt.push(ct), te.path && te.path[0] !== "/" && nt.push("/")), te.path !== void 0) {
61210
+ }, tt = Object.assign({}, ee), rt = [];
61211
+ te.scheme &&= _t(te.scheme);
61212
+ let ot = dt(tt.scheme || te.scheme);
61213
+ ot && ot.serialize && ot.serialize(te, tt);
61214
+ let st = te.userinfo !== void 0 || te.host !== void 0 || te.port !== void 0, ct = (te.scheme === void 0 || tt.reference === "suffix") && !st, ut = !tt.skipEscape && ct;
61215
+ te.path !== void 0 && (te.path = tt.skipEscape ? et(te.path) : nt(te.path, ut)), tt.reference !== "suffix" && te.scheme && (te.scheme = _t(te.scheme), rt.push(te.scheme, ":"));
61216
+ let ft = Le(te);
61217
+ if (ft !== void 0 && (tt.reference !== "suffix" && rt.push("//"), rt.push(ft), te.path && te.path[0] !== "/" && rt.push("/")), te.path !== void 0) {
61190
61218
  let Y = te.path;
61191
- et.absolutePath || at && at.absolutePath || (Y = ne(Y)), st && (Y = tt(Y, !0)), ct === void 0 && Y[0] === "/" && Y[1] === "/" && (Y = "/%2F" + Y.slice(2)), nt.push(Y);
61219
+ tt.absolutePath || ot && ot.absolutePath || (Y = ct && Y[0] !== "/" ? xe(Y) : ne(Y)), ct && (Y = nt(Y, !0)), ft === void 0 && Y[0] === "/" && Y[1] === "/" && (Y = "/%2F" + Y.slice(2)), rt.push(Y);
61192
61220
  }
61193
- return te.query !== void 0 && nt.push("?", rt(te.query)), te.fragment !== void 0 && nt.push("#", it(te.fragment)), nt.join("");
61221
+ return te.query !== void 0 && rt.push("?", it(te.query)), te.fragment !== void 0 && rt.push("#", at(te.fragment)), rt.join("");
61194
61222
  }
61195
- var bt = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u, xt = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/, St = /^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;
61196
- function Ct(Y, ee) {
61223
+ var Ct = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u, wt = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/, Tt = /^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;
61224
+ function Et(Y, ee) {
61197
61225
  if (ee[2] !== void 0 && Y.path && Y.path[0] !== "/") return "URI path must start with \"/\" when authority is present.";
61198
61226
  if (typeof Y.port == "number" && (Y.port < 0 || Y.port > 65535)) return "URI port is malformed.";
61199
61227
  }
61200
- function wt(Y) {
61228
+ function Dt(Y) {
61201
61229
  if (Y === void 0) return !1;
61202
61230
  let ee = Y.indexOf("%");
61203
61231
  for (; ee !== -1;) {
@@ -61206,22 +61234,34 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
61206
61234
  }
61207
61235
  return !1;
61208
61236
  }
61209
- function Tt(Y) {
61237
+ function Ot(Y) {
61210
61238
  return Y[0] === "[" && Y[Y.length - 1] === "]";
61211
61239
  }
61212
- function Et(Y) {
61240
+ function kt(Y) {
61213
61241
  let ee = Y[4];
61214
- return wt(Y[3]) || ee !== void 0 && !Tt(ee) && wt(ee) || wt(Y[6]) || wt(Y[7]) || wt(Y[8]);
61242
+ return Dt(Y[3]) || ee !== void 0 && !Ot(ee) && Dt(ee) || Dt(Y[6]) || Dt(Y[7]) || Dt(Y[8]);
61215
61243
  }
61216
- function Dt(Y, ee, te, ne) {
61217
- if (!ee.unicodeSupport && (!te || !te.unicodeSupport) && Y.host && !Tt(Y.host) && (ee.domainHost || te && te.domainHost) && ne === !1 && st(Y.host)) try {
61218
- Y.host = new URL("http://" + Y.host).hostname;
61219
- } catch (ee) {
61220
- return Y.error = Y.error || "Host's domain name can not be converted to ASCII: " + ee, !0;
61244
+ function Mt(Y, ee, te, ne) {
61245
+ if (Pt(Y, ee, te, ne)) return Y.error = Y.error || mt, !0;
61246
+ if (!ee.unicodeSupport && (!te || !te.unicodeSupport) && Y.host && !Ot(Y.host) && (ee.domainHost || te && te.domainHost) && ne === !1 && ct(Y.host)) {
61247
+ let ee;
61248
+ try {
61249
+ ee = new URL("http://" + Y.host);
61250
+ } catch (ee) {
61251
+ return Y.error = Y.error || "Host's domain name can not be converted to ASCII: " + ee, !0;
61252
+ }
61253
+ if (!It(ee)) return Y.error = Y.error || mt, !0;
61254
+ Y.host = ee.hostname;
61221
61255
  }
61222
61256
  return !1;
61223
61257
  }
61224
- function Ot(Y, ee) {
61258
+ function Pt(Y, ee, te, ne) {
61259
+ return !!(Y.host && ne === !1 && !Ot(Y.host) && (ee.domainHost || te && te.domainHost) && ht.test(Y.host));
61260
+ }
61261
+ function It(Y) {
61262
+ return Y.username === "" && Y.password === "" && Y.port === "" && Y.pathname === "/" && Y.search === "" && Y.hash === "" && Y.hostname !== "";
61263
+ }
61264
+ function Lt(Y, ee) {
61225
61265
  let ne = Object.assign({}, ee), xe = {
61226
61266
  scheme: void 0,
61227
61267
  userinfo: void 0,
@@ -61230,56 +61270,52 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
61230
61270
  path: "",
61231
61271
  query: void 0,
61232
61272
  fragment: void 0
61233
- }, tt = !1, rt = !1, it = !1, st = !1, pt = !1, mt = !1, ht = !1;
61273
+ }, Le = !1, nt = !1, it = !1, at = !1, ct = !1, ht = !1, _t = !1;
61234
61274
  ne.reference === "suffix" && (Y = ne.scheme ? ne.scheme + ":" + Y : "//" + Y);
61235
- let _t = Y.match(xt);
61236
- _t !== null && _t[1].indexOf("\\") !== -1 && (xe.error = "URI authority must not contain a literal backslash.", tt = !0);
61237
- let vt = Y.match(St);
61238
- if (vt !== null) {
61239
- let Y = vt[1], ee = Y.replace(/[\t\n\r]/g, "");
61240
- ee.length >= 2 && (ee.slice(0, 2) === "//" ? Y.length !== ee.length && (xe.error = xe.error || "URI authority introducer must not contain whitespace.", tt = !0) : (xe.error = xe.error || "URI authority must not contain a literal backslash.", tt = !0));
61241
- }
61242
- let yt = Y.match(bt);
61243
- if (yt) {
61244
- if (xe.scheme = yt[1], xe.userinfo = yt[3], xe.host = yt[4], xe.port = parseInt(yt[5], 10), xe.path = yt[6] || "", xe.query = yt[7], xe.fragment = yt[8], xe.scheme !== void 0) {
61245
- let Y = unescape(xe.scheme);
61246
- dt.test(Y) ? xe.scheme = Y.toLowerCase() : (xe.error = xe.error || ft, mt = !0);
61247
- }
61248
- rt = Et(yt), rt && (xe.error = xe.error || "URI contains malformed percent-encoding."), isNaN(xe.port) && (xe.port = yt[5]);
61249
- let ee = Ct(xe, yt);
61250
- if (ee !== void 0 && (xe.error = xe.error || ee, tt = !0), xe.host) {
61251
- if (ot(xe.host) === !1) {
61252
- let Y = Tt(xe.host), ee = xe.host.indexOf("[") !== -1 || xe.host.indexOf("]") !== -1, ne = te(xe.host);
61253
- ht = ne.isIPV6 || ne.isIPVFuture === !0, pt = ee && (!Y || ne.error === !0), xe.host = ht ? ne.host : ne.host.toLowerCase(), pt && (xe.error = xe.error || "URI host is malformed.", tt = !0);
61254
- } else ht = !0;
61275
+ let vt = Y.match(wt);
61276
+ vt !== null && vt[1].indexOf("\\") !== -1 && (xe.error = "URI authority must not contain a literal backslash.", Le = !0);
61277
+ let yt = Y.match(Tt);
61278
+ if (yt !== null) {
61279
+ let Y = yt[1], ee = Y.replace(/[\t\n\r]/g, "");
61280
+ ee.length >= 2 && (ee.slice(0, 2) === "//" ? Y.length !== ee.length && (xe.error = xe.error || "URI authority introducer must not contain whitespace.", Le = !0) : (xe.error = xe.error || "URI authority must not contain a literal backslash.", Le = !0));
61281
+ }
61282
+ let bt = Y.match(Ct);
61283
+ if (bt) {
61284
+ xe.scheme = bt[1], xe.userinfo = bt[3], xe.host = bt[4], xe.port = parseInt(bt[5], 10), xe.path = bt[6] || "", xe.query = bt[7], xe.fragment = bt[8], xe.scheme !== void 0 && (ft.test(xe.scheme) ? xe.scheme = xe.scheme.toLowerCase() : (xe.error = xe.error || pt, ht = !0)), nt = kt(bt), nt && (xe.error = xe.error || "URI contains malformed percent-encoding."), isNaN(xe.port) && (xe.port = bt[5]);
61285
+ let ee = Et(xe, bt);
61286
+ if (ee !== void 0 && (xe.error = xe.error || ee, Le = !0), xe.host) {
61287
+ if (st(xe.host) === !1) {
61288
+ let Y = Ot(xe.host), ee = xe.host.indexOf("[") !== -1 || xe.host.indexOf("]") !== -1, ne = te(xe.host);
61289
+ _t = ne.isIPV6 || ne.isIPVFuture === !0, ct = ee && (!Y || ne.error === !0), xe.host = _t ? ne.host : ne.host.toLowerCase(), ct && (xe.error = xe.error || mt, Le = !0);
61290
+ } else _t = !0;
61255
61291
  }
61256
61292
  xe.reference = xe.scheme === void 0 && xe.userinfo === void 0 && xe.host === void 0 && xe.port === void 0 && xe.query === void 0 && !xe.path ? "same-document" : xe.scheme === void 0 ? "relative" : xe.fragment === void 0 ? "absolute" : "uri", ne.reference && ne.reference !== "suffix" && ne.reference !== xe.reference && (xe.error = xe.error || "URI is not a " + ne.reference + " reference.");
61257
- let _t = ut(ne.scheme || xe.scheme);
61258
- if (pt || (st = Dt(xe, ne, _t, ht)), Y.indexOf("%") !== -1 && xe.host !== void 0 && !pt) {
61259
- let Y = ht ? xe.host : Le(xe.host, !0);
61260
- ht || (Y = Le(Y.toLowerCase())), xe.host = at(Y, ht);
61293
+ let vt = dt(ne.scheme || xe.scheme);
61294
+ if (ct || (at = Mt(xe, ne, vt, _t)), Y.indexOf("%") !== -1 && xe.host !== void 0 && !ct) {
61295
+ let Y = _t ? xe.host : et(xe.host, !0);
61296
+ _t || (Y = et(Y.toLowerCase())), xe.host = _t || ne.scheme !== "null" ? ot(Y, _t) : Y;
61261
61297
  }
61262
- (!_t || _t && !_t.skipNormalize) && (xe.path &&= et(xe.path), xe.query &&= nt(xe.query), xe.fragment &&= nt(xe.fragment)), _t && _t.parse && (_t.parse(xe, ne), _t === ct.urn && xe.nid === void 0 && (it = !0));
61298
+ (!vt || vt && !vt.skipNormalize) && (xe.path &&= tt(xe.path), xe.query &&= rt(xe.query), xe.fragment &&= rt(xe.fragment)), vt && vt.parse && (vt.parse(xe, ne), vt === ut.urn && xe.nid === void 0 && (it = !0));
61263
61299
  } else xe.error = xe.error || "URI can not be parsed.";
61264
61300
  return {
61265
61301
  parsed: xe,
61266
- malformedAuthorityOrPort: tt,
61267
- malformedPercentEncoding: rt,
61302
+ malformedAuthorityOrPort: Le,
61303
+ malformedPercentEncoding: nt,
61268
61304
  malformedSchemeSpecific: it,
61269
- malformedHost: st,
61270
- malformedScheme: mt
61305
+ malformedHost: at,
61306
+ malformedScheme: ht
61271
61307
  };
61272
61308
  }
61273
- function kt(Y, ee) {
61274
- return Ot(Y, ee).parsed;
61309
+ function Rt(Y, ee) {
61310
+ return Lt(Y, ee).parsed;
61275
61311
  }
61276
- function Mt(Y, ee) {
61277
- return Pt(Y, ee).normalized;
61312
+ function zt(Y, ee) {
61313
+ return Bt(Y, ee).normalized;
61278
61314
  }
61279
- function Pt(Y, ee) {
61280
- let { parsed: te, malformedAuthorityOrPort: ne, malformedPercentEncoding: xe, malformedSchemeSpecific: Le, malformedHost: et, malformedScheme: tt } = Ot(Y, ee);
61315
+ function Bt(Y, ee) {
61316
+ let { parsed: te, malformedAuthorityOrPort: ne, malformedPercentEncoding: xe, malformedSchemeSpecific: Le, malformedHost: et, malformedScheme: tt } = Lt(Y, ee);
61281
61317
  return {
61282
- normalized: ne || xe || Le || et || tt ? Y : yt(te, ee),
61318
+ normalized: ne || xe || Le || et || tt ? Y : St(te, ee),
61283
61319
  malformedAuthorityOrPort: ne,
61284
61320
  malformedPercentEncoding: xe,
61285
61321
  malformedSchemeSpecific: Le,
@@ -61287,27 +61323,27 @@ var require_code$3 = /* @__PURE__ */ __commonJSMin(((Y) => {
61287
61323
  malformedScheme: tt
61288
61324
  };
61289
61325
  }
61290
- function It(Y, ee) {
61326
+ function Vt(Y, ee) {
61291
61327
  if (typeof Y != "string" && typeof Y != "object") return;
61292
61328
  let te;
61293
61329
  try {
61294
- te = typeof Y == "string" ? Y : yt(Y, ee);
61330
+ te = typeof Y == "string" ? Y : St(Y, ee);
61295
61331
  } catch {
61296
61332
  return;
61297
61333
  }
61298
- let { normalized: ne, malformedAuthorityOrPort: xe, malformedPercentEncoding: Le, malformedSchemeSpecific: et, malformedHost: tt, malformedScheme: nt } = Pt(te, ee);
61334
+ let { normalized: ne, malformedAuthorityOrPort: xe, malformedPercentEncoding: Le, malformedSchemeSpecific: et, malformedHost: tt, malformedScheme: nt } = Bt(te, ee);
61299
61335
  return xe || Le || et || tt || nt ? void 0 : ne;
61300
61336
  }
61301
- var Lt = {
61302
- SCHEMES: ct,
61303
- normalize: mt,
61304
- resolve: ht,
61305
- resolveComponent: _t,
61306
- equal: vt,
61307
- serialize: yt,
61308
- parse: kt
61337
+ var Ht = {
61338
+ SCHEMES: ut,
61339
+ normalize: vt,
61340
+ resolve: yt,
61341
+ resolveComponent: bt,
61342
+ equal: xt,
61343
+ serialize: St,
61344
+ parse: Rt
61309
61345
  };
61310
- ee.exports = Lt, ee.exports.default = Lt, ee.exports.fastUri = Lt;
61346
+ ee.exports = Ht, ee.exports.default = Ht, ee.exports.fastUri = Ht;
61311
61347
  })), require_uri$1 = /* @__PURE__ */ __commonJSMin(((Y) => {
61312
61348
  Object.defineProperty(Y, "__esModule", { value: !0 });
61313
61349
  var ee = require_fast_uri();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datagouv/components-next",
3
- "version": "1.4.1-dev.1382.g7bc1bc5a",
3
+ "version": "1.4.1-dev.1384.gab4fb984",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "engines": {
@@ -32,7 +32,7 @@
32
32
  "@vueuse/core": "^14.4.0",
33
33
  "@vueuse/router": "^14.4.0",
34
34
  "chart.js": "^4.5.1",
35
- "dompurify": "^3.4.16",
35
+ "dompurify": "^3.4.17",
36
36
  "echarts": "^6.1.0",
37
37
  "geopf-extensions-openlayers": "1.0.0-beta.15",
38
38
  "leaflet": "^1.9.4",