@tricoteuses/tisseuse 0.14.12 → 0.14.13

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.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { $ as e, A as t, At as n, B as r, Bt as i, Ct as a, Dt as o, Et as s, F as c, Ft as l, G as u, H as d, Ht as f, I as p, It as m, J as ee, K as te, L as ne, Lt as re, M as ie, Mt as ae, N as oe, Nt as se, Ot as ce, P as le, Pt as ue, Q as de, R as fe, Rt as pe, St as me, Tt as he, U as ge, Ut as _e, V as ve, Vt as ye, W as be, Wt as xe, X as Se, Z as Ce, _ as we, _t as h, a as g, at as Te, bt as Ee, c as De, ct as Oe, d as ke, dt as Ae, et as je, f as Me, ft as Ne, g as Pe, gt as Fe, h as Ie, ht as Le, i as _, it as Re, j as ze, jt as Be, k as Ve, kt as He, l as Ue, lt as We, m as Ge, mt as Ke, n as qe, nt as Je, o as Ye, ot as Xe, p as Ze, pt as Qe, q as $e, r as et, rt as tt, s as nt, st as rt, t as it, u as v, ut as at, vt as ot, x as st, xt as ct, yt as lt, z as ut, zt as dt } from "./html-Bos7PYtS.js";
2
- import { $ as ft, A as pt, At as mt, B as ht, C as gt, Ct as y, D as b, E as _t, Et as x, F as S, Ft as C, G as vt, H as yt, I as w, J as bt, K as xt, M as St, Mt as Ct, N as wt, Nt as Tt, O as Et, P as Dt, Pt as Ot, Q as T, S as kt, St as At, T as jt, Tt as E, W as Mt, X as Nt, Y as Pt, Z as Ft, _ as D, a as It, b as Lt, bt as Rt, c as zt, ct as Bt, d as Vt, dt as Ht, f as Ut, ft as Wt, g as Gt, gt as O, h as Kt, i as qt, it as Jt, j as Yt, jt as k, k as Xt, kt as A, l as Zt, lt as Qt, m as $t, o as en, ot as tn, p as nn, q as rn, r as an, s as on, t as sn, tt as cn, u as ln, ut as un, v as j, vt as dn, w as fn, wt as M, x as pn, y as mn, yt as hn, z as gn } from "./resolver-D5TCkLkD.js";
1
+ import { $ as e, A as t, At as n, B as r, Bt as i, Ct as a, Dt as o, Et as s, F as c, Ft as l, G as u, Gt as d, H as f, Ht as p, I as m, It as ee, J as te, K as ne, L as re, Lt as ie, M as ae, Mt as oe, N as se, Nt as ce, Ot as le, P as ue, Pt as de, Q as fe, R as pe, Rt as me, S as he, St as ge, U as _e, Ut as ve, V as ye, Vt as be, W as xe, Wt as Se, Y as Ce, Z as we, _ as Te, _t as h, a as g, at as Ee, bt as De, c as Oe, ct as ke, d as Ae, dt as je, et as Me, f as Ne, ft as Pe, g as Fe, gt as Ie, h as Le, ht as Re, i as _, it as ze, j as Be, jt as Ve, kt as He, l as Ue, lt as We, m as Ge, mt as Ke, n as qe, o as Je, ot as Ye, pt as Xe, q as Ze, r as Qe, rt as $e, s as et, st as tt, t as nt, tt as rt, u as v, ut as it, v as at, vt as y, wt as ot, xt as st, yt as ct, z as lt, zt as ut } from "./html-D6-bRvBF.js";
2
+ import { $ as dt, A as ft, C as pt, D as mt, Dt as b, E as ht, Et as x, F as gt, Ft as _t, H as vt, I as yt, It as bt, J as xt, K as St, L as S, Lt as C, M as Ct, Mt as wt, N as Tt, Nt as w, O as Et, Ot as T, P as Dt, Pt as Ot, Q as kt, R as E, S as At, St as jt, T as Mt, Tt as D, V as Nt, W as Pt, X as Ft, Y as It, Z as Lt, _ as Rt, b as O, bt as zt, c as Bt, ct as Vt, d as Ht, dt as Ut, et as k, f as Wt, ft as Gt, g as Kt, h as qt, j as Jt, jt as A, k as j, l as Yt, m as Xt, mt as Zt, n as Qt, ot as $t, p as en, pt as tn, q as nn, r as rn, rt as an, s as on, t as sn, tt as cn, u as ln, ut as un, v as dn, vt as M, w as fn, wt as pn, x as mn, xt as hn, y as N } from "./resolver-CuP8arVX.js";
3
3
  //#region ../../node_modules/@tricoteuses/legifrance/dist/legal/index.js
4
- function _n(e, t) {
4
+ function gn(e, t) {
5
5
  if (e != null) {
6
6
  if (!Array.isArray(e)) return e;
7
7
  for (let n of e) if (n["@debut"] <= t && t <= n["@fin"]) return n;
@@ -10,10 +10,10 @@ function _n(e, t) {
10
10
  }
11
11
  //#endregion
12
12
  //#region src/lib/loaders/legifrance.ts
13
- function N({ data: e, num: t }) {
13
+ function P({ data: e, num: t }) {
14
14
  return t !== null && (e.num = t), e;
15
15
  }
16
- async function P(e, t, n) {
16
+ async function F(e, t, n) {
17
17
  let r = t.get("ARTICLE");
18
18
  r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("ARTICLE", r));
19
19
  let i = r.get(n);
@@ -21,9 +21,9 @@ async function P(e, t, n) {
21
21
  SELECT data, num
22
22
  FROM legifrance.article
23
23
  WHERE id = ${n}
24
- `).map(N)[0], r.set(n, i ?? null)), i ?? void 0;
24
+ `).map(P)[0], r.set(n, i ?? null)), i ?? void 0;
25
25
  }
26
- async function vn(e, t, n) {
26
+ async function _n(e, t, n) {
27
27
  let r = t.get("JO");
28
28
  r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("JO", r));
29
29
  let i = r.get(n);
@@ -34,7 +34,7 @@ async function vn(e, t, n) {
34
34
  WHERE id = ${n}
35
35
  `)[0]?.data, r.set(n, i ?? null)), i ?? void 0;
36
36
  }
37
- async function F(e, t, n) {
37
+ async function I(e, t, n) {
38
38
  let r = t.get("SECTION_TA");
39
39
  r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("SECTION_TA", r));
40
40
  let i = r.get(n);
@@ -45,7 +45,7 @@ async function F(e, t, n) {
45
45
  WHERE id = ${n}
46
46
  `)[0]?.data, r.set(n, i ?? null)), i ?? void 0;
47
47
  }
48
- async function yn(e, t, n) {
48
+ async function vn(e, t, n) {
49
49
  let r = t.get("SECTION_TA");
50
50
  r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("SECTION_TA", r));
51
51
  let i = new Set(n), a = [];
@@ -61,7 +61,7 @@ async function yn(e, t, n) {
61
61
  `).map(({ data: e }) => e)) r.set(t.ID, t), a.push(t);
62
62
  return a;
63
63
  }
64
- async function bn(e, t, n) {
64
+ async function yn(e, t, n) {
65
65
  let r = t.get("TEXTELR");
66
66
  r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("TEXTELR", r));
67
67
  let i = r.get(n);
@@ -72,7 +72,7 @@ async function bn(e, t, n) {
72
72
  WHERE id = ${n}
73
73
  `)[0]?.data, r.set(n, i ?? null)), i ?? void 0;
74
74
  }
75
- async function xn(e, t, n) {
75
+ async function bn(e, t, n) {
76
76
  let r = t.get("TEXTEKALI");
77
77
  r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("TEXTEKALI", r));
78
78
  let i = r.get(n);
@@ -82,7 +82,7 @@ async function xn(e, t, n) {
82
82
  WHERE id = ${n}
83
83
  `)[0]?.data, r.set(n, i ?? null)), i ?? void 0;
84
84
  }
85
- async function Sn(e, t, n) {
85
+ async function xn(e, t, n) {
86
86
  let r = t.get("TEXTELR");
87
87
  r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("TEXTELR", r));
88
88
  let i = new Set(n), a = [];
@@ -97,7 +97,7 @@ async function Sn(e, t, n) {
97
97
  `).map(({ data: e }) => e)) r.set(t.META.META_COMMUN.ID, t), a.push(t);
98
98
  return a;
99
99
  }
100
- async function Cn(e, t, n) {
100
+ async function Sn(e, t, n) {
101
101
  let r = t.get("TEXTE_VERSION");
102
102
  r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("TEXTE_VERSION", r));
103
103
  let i = new Set(n), a = [];
@@ -112,7 +112,7 @@ async function Cn(e, t, n) {
112
112
  `).map(({ data: e }) => e)) r.set(t.META.META_COMMUN.ID, t), a.push(t);
113
113
  return a;
114
114
  }
115
- async function wn(e, t, n) {
115
+ async function Cn(e, t, n) {
116
116
  let r = t.get("TEXTE_VERSION");
117
117
  r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("TEXTE_VERSION", r));
118
118
  let i = r.get(n);
@@ -123,7 +123,7 @@ async function wn(e, t, n) {
123
123
  WHERE id = ${n}
124
124
  `)[0]?.data, r.set(n, i ?? null)), i ?? void 0;
125
125
  }
126
- async function Tn(e, t, n) {
126
+ async function wn(e, t, n) {
127
127
  let r = t.get("ARTICLE");
128
128
  r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("ARTICLE", r));
129
129
  let i = [];
@@ -131,80 +131,80 @@ async function Tn(e, t, n) {
131
131
  SELECT data, num
132
132
  FROM legifrance.article
133
133
  ${n}
134
- `).map(N)) r.set(t.META.META_COMMUN.ID, t), i.push(t);
134
+ `).map(P)) r.set(t.META.META_COMMUN.ID, t), i.push(t);
135
135
  return i;
136
136
  }
137
137
  //#endregion
138
138
  //#region src/lib/articles.ts
139
- var I = ["2222-02-22", "2999-01-01"];
140
- function L(e) {
141
- return [e, ...e.TM === void 0 ? [] : L(e.TM)];
142
- }
139
+ var L = ["2222-02-22", "2999-01-01"];
143
140
  function R(e) {
144
- return e !== void 0 && I.includes(e);
141
+ return [e, ...e.TM === void 0 ? [] : R(e.TM)];
142
+ }
143
+ function z(e) {
144
+ return e !== void 0 && L.includes(e);
145
145
  }
146
- function En({ dateDebut: e, sourceDateDebut: t, sourceDateFin: n }) {
147
- return t !== void 0 && n !== void 0 && !R(t) && !R(n) && n <= t ? "never_effective" : e === void 0 || R(e) ? "unknown" : n === "2999-01-01" ? "open_ended" : n === void 0 || R(n) ? "unknown" : n > e ? "dated" : "unknown";
146
+ function Tn({ dateDebut: e, sourceDateDebut: t, sourceDateFin: n }) {
147
+ return t !== void 0 && n !== void 0 && !z(t) && !z(n) && n <= t ? "never_effective" : e === void 0 || z(e) ? "unknown" : n === "2999-01-01" ? "open_ended" : n === void 0 || z(n) ? "unknown" : n > e ? "dated" : "unknown";
148
148
  }
149
- var Dn = (e) => {
149
+ var En = (e) => {
150
150
  if (e !== void 0) for (let t = 0; t < e.length; ++t) {
151
- let n = T(new y(e, t));
151
+ let n = k(new D(e, t));
152
152
  if (typeof n == "string") return n;
153
153
  }
154
- }, z = (e) => (e === void 0 ? [] : Array.isArray(e) ? e : [e]).map((e) => Dn(e["#text"])).find((e) => e !== void 0), On = (e) => {
154
+ }, B = (e) => (e === void 0 ? [] : Array.isArray(e) ? e : [e]).map((e) => En(e["#text"])).find((e) => e !== void 0), Dn = (e) => {
155
155
  let t = e.META.META_SPEC.META_ARTICLE.DATE_DEBUT;
156
- if (t !== void 0 && !I.includes(t)) return t;
157
- let n = e.CONTEXTE.TEXTE, r = n.TITRE_TXT, i = [...r === void 0 ? [] : (Array.isArray(r) ? r : [r]).map((e) => e["@debut"]), ...n.TM === void 0 ? [] : L(n.TM).map((e) => (Array.isArray(e.TITRE_TM) ? e.TITRE_TM : [e.TITRE_TM]).map((e) => e["@debut"])).flat()].filter((e) => !I.includes(e));
156
+ if (t !== void 0 && !L.includes(t)) return t;
157
+ let n = e.CONTEXTE.TEXTE, r = n.TITRE_TXT, i = [...r === void 0 ? [] : (Array.isArray(r) ? r : [r]).map((e) => e["@debut"]), ...n.TM === void 0 ? [] : R(n.TM).map((e) => (Array.isArray(e.TITRE_TM) ? e.TITRE_TM : [e.TITRE_TM]).map((e) => e["@debut"])).flat()].filter((e) => !L.includes(e));
158
158
  if (i.length > 0) return i.sort().at(-1);
159
159
  let a = n["@date_publi"];
160
- if (a !== void 0 && !I.includes(a)) return a;
160
+ if (a !== void 0 && !L.includes(a)) return a;
161
161
  let o = n["@date_signature"];
162
- if (o !== void 0 && !I.includes(o)) return o;
162
+ if (o !== void 0 && !L.includes(o)) return o;
163
163
  let s = e.META.META_SPEC.META_ARTICLE.DATE_FIN;
164
- if (s !== void 0 && !I.includes(s)) return s;
165
- let c = z(r);
164
+ if (s !== void 0 && !L.includes(s)) return s;
165
+ let c = B(r);
166
166
  if (c !== void 0) return c;
167
- if (I.includes(t ?? "")) return t;
167
+ if (L.includes(t ?? "")) return t;
168
168
  throw Error(`Missing date signature in article ${e.META.META_COMMUN.ID}`);
169
- }, B = (e) => {
169
+ }, V = (e) => {
170
170
  let t = e.META.META_SPEC.META_ARTICLE.DATE_DEBUT;
171
- if (t !== void 0 && !I.includes(t)) return t;
171
+ if (t !== void 0 && !L.includes(t)) return t;
172
172
  let n = e.CONTEXTE.TEXTE, r = n["@date_signature"];
173
- if (r !== void 0 && !I.includes(r)) return r;
173
+ if (r !== void 0 && !L.includes(r)) return r;
174
174
  let i = n["@date_publi"];
175
- if (i !== void 0 && !I.includes(i)) return i;
176
- let a = n.TITRE_TXT, o = [...a === void 0 ? [] : (Array.isArray(a) ? a : [a]).map((e) => e["@debut"]), ...n.TM === void 0 ? [] : L(n.TM).map((e) => (Array.isArray(e.TITRE_TM) ? e.TITRE_TM : [e.TITRE_TM]).map((e) => e["@debut"])).flat()].filter((e) => !I.includes(e));
175
+ if (i !== void 0 && !L.includes(i)) return i;
176
+ let a = n.TITRE_TXT, o = [...a === void 0 ? [] : (Array.isArray(a) ? a : [a]).map((e) => e["@debut"]), ...n.TM === void 0 ? [] : R(n.TM).map((e) => (Array.isArray(e.TITRE_TM) ? e.TITRE_TM : [e.TITRE_TM]).map((e) => e["@debut"])).flat()].filter((e) => !L.includes(e));
177
177
  if (o.length > 0) return o.sort().at(-1);
178
178
  let s = e.META.META_SPEC.META_ARTICLE.DATE_FIN;
179
- if (s !== void 0 && !I.includes(s)) return s;
180
- let c = z(a);
179
+ if (s !== void 0 && !L.includes(s)) return s;
180
+ let c = B(a);
181
181
  if (c !== void 0) return c;
182
- if (I.includes(t ?? "")) return t;
182
+ if (L.includes(t ?? "")) return t;
183
183
  throw Error(`Missing date signature in article ${e.META.META_COMMUN.ID}`);
184
184
  };
185
- async function kn(e, t, n, r) {
186
- let i = await P(e, t, n);
185
+ async function On(e, t, n, r) {
186
+ let i = await F(e, t, n);
187
187
  if (i === void 0) return;
188
- let a = B(i), o = i.META.META_COMMUN.ORIGINE;
188
+ let a = V(i), o = i.META.META_COMMUN.ORIGINE;
189
189
  if (o === "KALI") return;
190
190
  let s = i.CONTEXTE.TEXTE;
191
191
  if (s.TM === void 0) return;
192
- let c = L(s.TM).reverse(), l;
192
+ let c = R(s.TM).reverse(), l;
193
193
  switch (o) {
194
194
  case "JORF":
195
195
  l = c.map((e) => e.TITRE_TM["@id"]);
196
196
  break;
197
197
  case "LEGI":
198
- l = c.map((e) => _n(e.TITRE_TM, a)?.["@id"]);
198
+ l = c.map((e) => gn(e.TITRE_TM, a)?.["@id"]);
199
199
  break;
200
200
  default: C("getOrLoadArticleSiblingId origine", o);
201
201
  }
202
- return await (r === -1 ? G : W)(e, t, n, a, i.num, l);
202
+ return await (r === -1 ? K : G)(e, t, n, a, i.num, l);
203
203
  }
204
- async function V(e, t, n, r, i, a) {
204
+ async function H(e, t, n, r, i, a) {
205
205
  let o = r[n];
206
206
  if (o === void 0) {
207
- let s = await F(e, t, n);
207
+ let s = await I(e, t, n);
208
208
  if (s === void 0) return;
209
209
  let c = s.STRUCTURE_TA;
210
210
  if (c === void 0) return;
@@ -232,8 +232,8 @@ async function V(e, t, n, r, i, a) {
232
232
  }
233
233
  return o;
234
234
  }
235
- async function H(e, t, n) {
236
- let r = await F(e, t, n);
235
+ async function U(e, t, n) {
236
+ let r = await I(e, t, n);
237
237
  if (r === void 0) return;
238
238
  let i = r.STRUCTURE_TA;
239
239
  if (i === void 0) return;
@@ -241,26 +241,26 @@ async function H(e, t, n) {
241
241
  if (a !== void 0) return a[0]["@id"];
242
242
  let o = i.LIEN_SECTION_TA;
243
243
  if (o !== void 0) for (let n of o) {
244
- let r = await H(e, t, n["@id"]);
244
+ let r = await U(e, t, n["@id"]);
245
245
  if (r !== void 0) return r;
246
246
  }
247
247
  }
248
- async function U(e, t, n) {
249
- let r = await F(e, t, n);
248
+ async function W(e, t, n) {
249
+ let r = await I(e, t, n);
250
250
  if (r === void 0) return;
251
251
  let i = r.STRUCTURE_TA;
252
252
  if (i === void 0) return;
253
253
  let a = i.LIEN_SECTION_TA;
254
254
  if (a !== void 0) for (let n of a.toReversed()) {
255
- let r = await U(e, t, n["@id"]);
255
+ let r = await W(e, t, n["@id"]);
256
256
  if (r !== void 0) return r;
257
257
  }
258
258
  return i.LIEN_ART?.at(-1)?.["@id"];
259
259
  }
260
- async function W(e, t, n, r, i, a, o = 0, s = {}, c = void 0) {
260
+ async function G(e, t, n, r, i, a, o = 0, s = {}, c = void 0) {
261
261
  let l = a[o];
262
262
  if (l === void 0) return;
263
- let u = await V(e, t, l, s, n, c);
263
+ let u = await H(e, t, l, s, n, c);
264
264
  if (u === void 0) return;
265
265
  let { area: d, index: f, sectionTa: p } = u, m = p.STRUCTURE_TA;
266
266
  switch (d) {
@@ -269,32 +269,32 @@ async function W(e, t, n, r, i, a, o = 0, s = {}, c = void 0) {
269
269
  for (let n = f + 1; n < c.length; n++) {
270
270
  let a = c[n];
271
271
  if (a["@num"] !== i) {
272
- let n = await P(e, t, a["@id"]);
273
- if (n !== void 0 && B(n) <= r) return a["@id"];
272
+ let n = await F(e, t, a["@id"]);
273
+ if (n !== void 0 && V(n) <= r) return a["@id"];
274
274
  }
275
275
  }
276
276
  let u = m.LIEN_SECTION_TA;
277
277
  if (u !== void 0) for (let n of u) {
278
- let r = await H(e, t, n["@id"]);
278
+ let r = await U(e, t, n["@id"]);
279
279
  if (r !== void 0) return r;
280
280
  }
281
- return await W(e, t, n, r, i, a, o + 1, s, l);
281
+ return await G(e, t, n, r, i, a, o + 1, s, l);
282
282
  }
283
283
  case "LIEN_SECTION_TA": {
284
284
  let c = m.LIEN_SECTION_TA;
285
285
  for (let n = f + 1; n < c.length; n++) {
286
- let r = await H(e, t, c[n]["@id"]);
286
+ let r = await U(e, t, c[n]["@id"]);
287
287
  if (r !== void 0) return r;
288
288
  }
289
- return await W(e, t, n, r, i, a, o + 1, s, l);
289
+ return await G(e, t, n, r, i, a, o + 1, s, l);
290
290
  }
291
291
  default: C("moveToNextArticleId area", d);
292
292
  }
293
293
  }
294
- async function G(e, t, n, r, i, a, o = 0, s = {}, c = void 0) {
294
+ async function K(e, t, n, r, i, a, o = 0, s = {}, c = void 0) {
295
295
  let l = a[o];
296
296
  if (l === void 0) return;
297
- let u = await V(e, t, l, s, n, c);
297
+ let u = await H(e, t, l, s, n, c);
298
298
  if (u === void 0) return;
299
299
  let { area: d, index: f, sectionTa: p } = u, m = p.STRUCTURE_TA;
300
300
  switch (d) {
@@ -303,24 +303,24 @@ async function G(e, t, n, r, i, a, o = 0, s = {}, c = void 0) {
303
303
  for (let n = f - 1; n >= 0; n--) {
304
304
  let a = c[n];
305
305
  if (a["@num"] !== i) {
306
- let n = await P(e, t, a["@id"]);
307
- if (n !== void 0 && B(n) <= r) return a["@id"];
306
+ let n = await F(e, t, a["@id"]);
307
+ if (n !== void 0 && V(n) <= r) return a["@id"];
308
308
  }
309
309
  }
310
- return await G(e, t, n, r, i, a, o + 1, s, l);
310
+ return await K(e, t, n, r, i, a, o + 1, s, l);
311
311
  }
312
312
  case "LIEN_SECTION_TA": {
313
313
  for (let n = f - 1; n >= 0; n--) {
314
- let r = await U(e, t, m.LIEN_SECTION_TA[n]["@id"]);
314
+ let r = await W(e, t, m.LIEN_SECTION_TA[n]["@id"]);
315
315
  if (r !== void 0) return r;
316
316
  }
317
317
  let c = m.LIEN_ART;
318
- return c === void 0 ? await G(e, t, n, r, i, a, o + 1, s, l) : (u.area = "LIEN_ART", u.index = c.length, await G(e, t, n, r, i, a, o, s));
318
+ return c === void 0 ? await K(e, t, n, r, i, a, o + 1, s, l) : (u.area = "LIEN_ART", u.index = c.length, await K(e, t, n, r, i, a, o, s));
319
319
  }
320
320
  default: C("moveToPreviousArticleId area", d);
321
321
  }
322
322
  }
323
- var An = (e) => (t, n) => {
323
+ var kn = (e) => (t, n) => {
324
324
  let r = e(t), i = e(n);
325
325
  if (r !== i) return r.localeCompare(i);
326
326
  let a = t.META.META_COMMUN, o = a.ORIGINE, s = n.META.META_COMMUN, c = s.ORIGINE;
@@ -339,28 +339,28 @@ var An = (e) => (t, n) => {
339
339
  if (m <= i) return 1;
340
340
  }
341
341
  throw Error(`TODO: Unable to sort articles ${a.ID} & ${s.ID} by date.`);
342
- }, K = () => /* @__PURE__ */ new Map(), q = () => /* @__PURE__ */ new Map(), jn = () => ({
343
- assemblee: K(),
344
- legifrance: q()
345
- }), Mn = new Intl.DateTimeFormat("fr-FR", { dateStyle: "long" });
346
- function Nn(e) {
347
- return Mn.format(new Date(e)).replace(/^1 /, "1er ");
342
+ }, q = () => /* @__PURE__ */ new Map(), J = () => /* @__PURE__ */ new Map(), An = () => ({
343
+ assemblee: q(),
344
+ legifrance: J()
345
+ }), jn = new Intl.DateTimeFormat("fr-FR", { dateStyle: "long" });
346
+ function Mn(e) {
347
+ return jn.format(new Date(e)).replace(/^1 /, "1er ");
348
348
  }
349
349
  //#endregion
350
350
  //#region src/lib/json.ts
351
- var Pn = (e, t) => t instanceof Object && !Array.isArray(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t;
351
+ var Nn = (e, t) => t instanceof Object && !Array.isArray(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t;
352
352
  //#endregion
353
353
  //#region src/lib/markdown.ts
354
- function J(e) {
354
+ function Y(e) {
355
355
  return e?.replace(/\s+/g, " ").replaceAll("[", "\\[").replaceAll("]", "\\]");
356
356
  }
357
357
  //#endregion
358
358
  //#region src/lib/linkers/markdown.ts
359
- async function Y({ canutesDb: e, legiResolver: t, date: n, linkBaseUrl: r, linkType: i, previousContext: a, text: o }) {
360
- let s = t ?? (e === void 0 ? void 0 : new Me(e));
359
+ async function X({ canutesDb: e, legiResolver: t, date: n, linkBaseUrl: r, linkType: i, previousContext: a, text: o }) {
360
+ let s = t ?? (e === void 0 ? void 0 : new Ne(e));
361
361
  if (s === void 0) throw Error("A Canutes database or legal resolver is required");
362
362
  await s.preloadTextTitlesInfos();
363
- let c = b(o), l = new y(c.output);
363
+ let c = j(o), l = new D(c.output);
364
364
  l.currentArticle = a?.currentArticle, l.currentText = a?.currentText;
365
365
  let u = o, d = 0;
366
366
  for await (let e of v({
@@ -374,7 +374,7 @@ async function Y({ canutesDb: e, legiResolver: t, date: n, linkBaseUrl: r, linkT
374
374
  let { articleId: t, historyArticleId: n, originalTransformation: a } = e, o = t === void 0 ? n === void 0 ? void 0 : _(i, r, n) : g(i, r, t);
375
375
  if (o !== void 0) {
376
376
  if (a === void 0) throw Error(`Missing originalTransformation attribute in external article link: ${JSON.stringify(e, null, 2)}`);
377
- let t = w(a, `[${J(S(u, a, d))}](${o})`);
377
+ let t = E(a, `[${Y(S(u, a, d))}](${o})`);
378
378
  u = u.slice(0, a.position.start + d) + t + u.slice(a.position.stop + d), d += t.length - (a.position.stop - a.position.start);
379
379
  }
380
380
  break;
@@ -383,7 +383,7 @@ async function Y({ canutesDb: e, legiResolver: t, date: n, linkBaseUrl: r, linkT
383
383
  let { originalTransformation: t, sectionTaId: n } = e;
384
384
  if (n !== void 0) {
385
385
  if (t === void 0) throw Error(`Missing originalTransformation attribute in external division link: ${JSON.stringify(e, null, 2)}`);
386
- let a = w(t, `[${J(S(u, t, d))}](${g(i, r, n)})`);
386
+ let a = E(t, `[${Y(S(u, t, d))}](${g(i, r, n)})`);
387
387
  u = u.slice(0, t.position.start + d) + a + u.slice(t.position.stop + d), d += a.length - (t.position.stop - t.position.start);
388
388
  }
389
389
  break;
@@ -395,14 +395,14 @@ async function Y({ canutesDb: e, legiResolver: t, date: n, linkBaseUrl: r, linkT
395
395
  continue;
396
396
  }
397
397
  if (t === void 0) throw Error(`Missing originalTransformation attribute in external text link: ${JSON.stringify(e, null, 2)}`);
398
- let a = w(t, `[${J(S(u, t, d))}](${g(i, r, n.cid)})`);
398
+ let a = E(t, `[${Y(S(u, t, d))}](${g(i, r, n.cid)})`);
399
399
  u = u.slice(0, t.position.start + d) + a + u.slice(t.position.stop + d), d += a.length - (t.position.stop - t.position.start);
400
400
  break;
401
401
  }
402
402
  case "internal_article": {
403
403
  let { definition: t, originalTransformation: n } = e;
404
404
  if (n === void 0) throw Error(`Missing originalTransformation attribute in internal article link: ${JSON.stringify(e, null, 2)}`);
405
- let r = w(n, `[${J(S(u, n, d))}](#definition_article_${t.textId}_${t.article.num.replaceAll(" ", "_")})`);
405
+ let r = E(n, `[${Y(S(u, n, d))}](#definition_article_${t.textId}_${t.article.num.replaceAll(" ", "_")})`);
406
406
  u = u.slice(0, n.position.start + d) + r + u.slice(n.position.stop + d), d += r.length - (n.position.stop - n.position.start);
407
407
  break;
408
408
  }
@@ -410,7 +410,7 @@ async function Y({ canutesDb: e, legiResolver: t, date: n, linkBaseUrl: r, linkT
410
410
  let { url: t, originalTransformation: n } = e;
411
411
  if (t === void 0) continue;
412
412
  if (n === void 0) throw Error(`Missing originalTransformation attribute in european text link: ${JSON.stringify(e, null, 2)}`);
413
- let r = S(u, n, d), i = w(n, `<a class="lien_texte_european" href="${t}"${t.startsWith("/") ? "" : " target=\"_blank\""}>${r}</a>`);
413
+ let r = S(u, n, d), i = E(n, `<a class="lien_texte_european" href="${t}"${t.startsWith("/") ? "" : " target=\"_blank\""}>${r}</a>`);
414
414
  u = u.slice(0, n.position.start + d) + i + u.slice(n.position.stop + d), d += i.length - (n.position.stop - n.position.start);
415
415
  break;
416
416
  }
@@ -423,7 +423,7 @@ async function Y({ canutesDb: e, legiResolver: t, date: n, linkBaseUrl: r, linkT
423
423
  }
424
424
  //#endregion
425
425
  //#region src/lib/loaders/assemblee.ts
426
- async function Fn(e, t, n) {
426
+ async function Pn(e, t, n) {
427
427
  let r = t.get("Document");
428
428
  r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("Document", r));
429
429
  let i = r.get(n);
@@ -433,7 +433,7 @@ async function Fn(e, t, n) {
433
433
  WHERE uid = ${n}
434
434
  `)[0]?.data, r.set(n, i ?? null)), i ?? void 0;
435
435
  }
436
- async function In(e, t, n) {
436
+ async function Fn(e, t, n) {
437
437
  let r = t.get("Document");
438
438
  return r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("Document", r)), (await e`
439
439
  SELECT data, uid
@@ -441,7 +441,7 @@ async function In(e, t, n) {
441
441
  WHERE data ->> 'dossierRef' = ${n}
442
442
  `).map(({ data: e, uid: t }) => (r.set(t, e ?? null), e));
443
443
  }
444
- async function Ln(e, t, n) {
444
+ async function In(e, t, n) {
445
445
  let r = t.get("DossierParlementaire");
446
446
  r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("DossierParlementaire", r));
447
447
  let i = r.get(n);
@@ -453,15 +453,15 @@ async function Ln(e, t, n) {
453
453
  }
454
454
  //#endregion
455
455
  //#region src/lib/text_parsers/search_queries.ts
456
- var X = k("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i" }), Z = E([
457
- X,
458
- A(O, { default: "" }),
459
- M(Fe, h)
456
+ var Ln = w("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i" }), Z = b([
457
+ Ln,
458
+ A(M, { default: "" }),
459
+ x(h, y)
460
460
  ], { value: (e, t) => ({
461
461
  num: e[2],
462
462
  position: t.position(),
463
463
  type: "article"
464
- }) }), Rn = M(k("c(?:ode|\\.)? ?civ(?:il)?", {
464
+ }) }), Rn = x(w("c(?:ode|\\.)? ?civ(?:il)?", {
465
465
  flags: "i",
466
466
  value: (e, t) => ({
467
467
  cid: "LEGITEXT000006070721",
@@ -470,7 +470,7 @@ var X = k("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
470
470
  title: "Code civil",
471
471
  type: "texte"
472
472
  })
473
- }), k("c(?:ode|\\.)? ?trav(?:ail)?", {
473
+ }), w("c(?:ode|\\.)? ?trav(?:ail)?", {
474
474
  flags: "i",
475
475
  value: (e, t) => ({
476
476
  cid: "LEGITEXT000006072050",
@@ -479,7 +479,7 @@ var X = k("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
479
479
  title: "Code du travail",
480
480
  type: "texte"
481
481
  })
482
- }), k("c(?:ode|\\.)? ?p[eé]n(?:al)?", {
482
+ }), w("c(?:ode|\\.)? ?p[eé]n(?:al)?", {
483
483
  flags: "i",
484
484
  value: (e, t) => ({
485
485
  cid: "LEGITEXT000006070719",
@@ -488,7 +488,7 @@ var X = k("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
488
488
  title: "Code pénal",
489
489
  type: "texte"
490
490
  })
491
- }), k("c(?:ode|\\.)? ?pr(?:oc(?:[eé]dure)?)? ?p[eé]n(?:al)?|cpp", {
491
+ }), w("c(?:ode|\\.)? ?pr(?:oc(?:[eé]dure)?)? ?p[eé]n(?:al)?|cpp", {
492
492
  flags: "i",
493
493
  value: (e, t) => ({
494
494
  cid: "LEGITEXT000006071154",
@@ -497,7 +497,7 @@ var X = k("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
497
497
  title: "Code de procédure pénale",
498
498
  type: "texte"
499
499
  })
500
- }), k("c(?:ode|\\.)? ?pr(?:oc(?:[eé]dure)?)? ?civ(?:il)?|cpc", {
500
+ }), w("c(?:ode|\\.)? ?pr(?:oc(?:[eé]dure)?)? ?civ(?:il)?|cpc", {
501
501
  flags: "i",
502
502
  value: (e, t) => ({
503
503
  cid: "LEGITEXT000006070716",
@@ -506,7 +506,7 @@ var X = k("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
506
506
  title: "Code de procédure civile",
507
507
  type: "texte"
508
508
  })
509
- }), k("c(?:ode|\\.)? ?s[eé]cur(?:it[eé])? ?soc(?:iale)?|css", {
509
+ }), w("c(?:ode|\\.)? ?s[eé]cur(?:it[eé])? ?soc(?:iale)?|css", {
510
510
  flags: "i",
511
511
  value: (e, t) => ({
512
512
  cid: "LEGITEXT000006073189",
@@ -515,7 +515,7 @@ var X = k("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
515
515
  title: "Code de la sécurité sociale",
516
516
  type: "texte"
517
517
  })
518
- }), k("c(?:ode|\\.)? ?rur(?:al)?(?: et de la p[êe]che maritime)?", {
518
+ }), w("c(?:ode|\\.)? ?rur(?:al)?(?: et de la p[êe]che maritime)?", {
519
519
  flags: "i",
520
520
  value: (e, t) => ({
521
521
  cid: "LEGITEXT000006071367",
@@ -524,7 +524,7 @@ var X = k("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
524
524
  title: "Code rural et de la pêche maritime",
525
525
  type: "texte"
526
526
  })
527
- }), k("c(?:ode|\\.)? ?env(?:ironnement)?", {
527
+ }), w("c(?:ode|\\.)? ?env(?:ironnement)?", {
528
528
  flags: "i",
529
529
  value: (e, t) => ({
530
530
  cid: "LEGITEXT000006074220",
@@ -533,7 +533,7 @@ var X = k("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
533
533
  title: "Code de l'environnement",
534
534
  type: "texte"
535
535
  })
536
- }), k("c(?:ode|\\.)? ?urb(?:anisme)?", {
536
+ }), w("c(?:ode|\\.)? ?urb(?:anisme)?", {
537
537
  flags: "i",
538
538
  value: (e, t) => ({
539
539
  cid: "LEGITEXT000006074075",
@@ -542,7 +542,7 @@ var X = k("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
542
542
  title: "Code de l'urbanisme",
543
543
  type: "texte"
544
544
  })
545
- }), k("c(?:ode|\\.)? ?jus(?:tice)? ?adm(?:in(?:istrative)?)?|cja", {
545
+ }), w("c(?:ode|\\.)? ?jus(?:tice)? ?adm(?:in(?:istrative)?)?|cja", {
546
546
  flags: "i",
547
547
  value: (e, t) => ({
548
548
  cid: "LEGITEXT000006070933",
@@ -551,7 +551,7 @@ var X = k("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
551
551
  title: "Code de justice administrative",
552
552
  type: "texte"
553
553
  })
554
- }), k("cgi", {
554
+ }), w("cgi", {
555
555
  flags: "i",
556
556
  value: (e, t) => ({
557
557
  cid: "LEGITEXT000006069577",
@@ -560,7 +560,7 @@ var X = k("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
560
560
  title: "Code général des impôts",
561
561
  type: "texte"
562
562
  })
563
- }), k("c(?:ode|\\.)? ?com(?:merce)?", {
563
+ }), w("c(?:ode|\\.)? ?com(?:merce)?", {
564
564
  flags: "i",
565
565
  value: (e, t) => ({
566
566
  cid: "LEGITEXT000005634379",
@@ -569,27 +569,27 @@ var X = k("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
569
569
  title: "Code de commerce",
570
570
  type: "texte"
571
571
  })
572
- })), Q = M(Rn, x(j, { value: (e, t) => e === void 0 ? void 0 : {
572
+ })), Q = x(Rn, T(O, { value: (e, t) => e === void 0 ? void 0 : {
573
573
  ...e,
574
574
  position: t.position()
575
- } }), x(D, { value: (e, t) => ({
575
+ } }), T(N, { value: (e, t) => ({
576
576
  ...e,
577
577
  position: t.position()
578
- }) })), $ = A(k(" (?:du |de la |de l'|des |de |d')?", { flags: "i" }), { default: "" }), zn = k(".+?(?=\\s*(?:du |de la |de l'|des |de |d')?\\s*(?:art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?))", {
578
+ }) })), $ = A(w(" (?:du |de la |de l'|des |de |d')?", { flags: "i" }), { default: "" }), zn = w(".+?(?=\\s*(?:du |de la |de l'|des |de |d')?\\s*(?:art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?))", {
579
579
  flags: "i",
580
580
  value: (e, t) => ({
581
581
  type: "texte",
582
582
  title: e[0].trim(),
583
583
  position: t.position()
584
584
  })
585
- }), Bn = k(".+", {
585
+ }), Bn = w(".+", {
586
586
  flags: "i",
587
587
  value: (e, t) => ({
588
588
  type: "texte",
589
589
  title: e[0].trim(),
590
590
  position: t.position()
591
591
  })
592
- }), Vn = M(E([
592
+ }), Vn = x(b([
593
593
  Q,
594
594
  $,
595
595
  Z
@@ -601,7 +601,7 @@ var X = k("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
601
601
  position: t.position(),
602
602
  type: "parent-enfant"
603
603
  };
604
- } }), E([
604
+ } }), b([
605
605
  Z,
606
606
  $,
607
607
  Q
@@ -610,7 +610,7 @@ var X = k("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
610
610
  parent: e[2],
611
611
  position: t.position(),
612
612
  type: "parent-enfant"
613
- }) }), E([
613
+ }) }), b([
614
614
  zn,
615
615
  $,
616
616
  Z
@@ -622,7 +622,7 @@ var X = k("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
622
622
  position: t.position(),
623
623
  type: "parent-enfant"
624
624
  };
625
- } }), E([
625
+ } }), b([
626
626
  Z,
627
627
  $,
628
628
  Bn
@@ -631,6 +631,6 @@ var X = k("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i"
631
631
  parent: e[2],
632
632
  position: t.position(),
633
633
  type: "parent-enfant"
634
- }) }), Z, Q, Bn), Hn = Y;
634
+ }) }), Z, Q, Bn), Hn = X;
635
635
  //#endregion
636
- export { sn as LegiResolver, y as TextParserContext, ut as action, st as actionDirective, se as actionTargets, o as addChildLeftToLastChild, it as addLinksOrReferencesToHtmlPage, qe as addLinksToHtml, Y as addLinksToMarkdown, Hn as addLinksToText, Ye as addPositionsToTableOfContentsItems, cn as adjectifNumeralCardinal, Jt as adjectifNumeralOrdinalCourt, vt as adjectifTemporelSingulier, tn as adverbeMultiplicatifLatin, gn as adverbeRelatif, M as alternatives, We as article, at as articles, C as assertNever, ct as auPortion, me as auxPortions, an as buildAndInstallTextTitlesInfos, Se as buildArticlePortionTreeFromHtml, qt as buildTextTitlesInfos, E as chain, pt as chainTransformers, u as citation, te as citationLigne, $e as citationSimple, ee as citationToText, En as classifyArticleTemporalStatus, It as cleanTexteTitle, ue as compoundReferencesSeparators, x as convert, Lt as convertHtmlElementsToText, ce as createEnumerationOrBoundedInterval, He as createParentChildTreeFromReferences, T as date, pn as decodeNamedHtmlEntities, kt as decodeNumericHtmlEntities, Ae as definitionArticleDansCitation, Ne as definitionArticleDansProjetOuPropositionLoi, tt as definitionDivision, Zt as definitionTexteFrancais, Qe as designationArticle, Re as designationDivision, xt as ditPluriel, rn as ditSingulier, Te as division, l as divisionTypes, Xe as divisions, ft as duDate, O as espace, ht as espaceAdverbeRelatif, m as europeanLawNatures, N as extendLoadedArticle, Ze as extractActionDirectiveAstsFromText, Ge as extractActionDirectivesFromHtml, Ie as extractActionDirectivesFromText, Ke as extractArticleDefinitionsFromCitation, Je as extractBillDefinitions, Ve as extractCitationReferences, Ce as extractPortionSelectors, t as extractReferences, ze as extractReferencesWithOriginalTransformations, v as extractTextLinks, Nn as formatLongDate, re as frenchLawNatures, On as getArticleDateDebut, B as getArticleDateSignature, ie as getExtractedReferences, oe as getExtractedReferencesWithOriginalTransformations, nt as getExtractedTableOfContentsFromTextBill, P as getOrLoadArticle, kn as getOrLoadArticleSiblingId, Fn as getOrLoadDocument, In as getOrLoadDocumentsByDossierParlementaireUid, Ln as getOrLoadDossierParlementaire, vn as getOrLoadJo, F as getOrLoadSectionTa, yn as getOrLoadSectionsTa, wn as getOrLoadTexteVersion, xn as getOrLoadTextekali, bn as getOrLoadTextelr, Cn as getOrLoadTextesVersions, Sn as getOrLoadTexteslr, De as getTableOfContentsItems, en as getTexteVersionDateDebut, on as getTexteVersionDateSignature, ln as identificationTexteEuropeen, pe as internationalLawNatures, bt as introPluriel, Pt as introSingulier, de as isArticlePortionStructuralStart, R as isLegifranceSentinelDate, dt as isTextAstAtomicReference, i as isTextAstDivision, ye as isTextAstPortion, n as iterAtomicFirstParentReferences, Be as iterAtomicReferences, ae as iterIncludedReferences, ke as iterReferenceLinks, Pn as jsonReplacer, f as lawNatures, dn as lettreAscii, Nt as liaisonPluriel, Ft as liaisonSingulier, et as linkTypes, Le as listeArticles, le as listeReferencesSeules, Tn as loadArticles, _e as localizationAdverbs, rt as natureDivisionSingulier, Vt as natureTexteFrancais, K as newAssembleeObjectCache, q as newLegifranceObjectCache, jn as newObjectCache, Yt as newReverseTransformationsMergedFromPositionsIterator, Fe as nomArticle, h as nomSpecialArticle, Bt as nombreAsTextAstNumber, Qt as nombreCardinal, un as nombreRomainCardinal, Ht as nombreRomainOrdinal, Wt as nombreRomainOu0iAsTextAstNumber, hn as nonLettre, ot as normalizeBillArticleNumber, Rt as numero, Oe as numeroDivision, Ut as numeroEtOuDateTexteFrancais, a as numeroPortion, nn as numeroTexteEuropeen, $t as numeroTexteFrancais, A as optional, Kt as optionalEspaceDuTerritoire, lt as parseArticleNumber, e as parseArticleSubdivisionMarker, Ee as parseBillArticleLabel, mt as parseText, xe as portionTypes, he as portions, c as reference, r as referenceDoctrinale, ve as referenceDoctrinaleArticleAvantSource, d as referenceDoctrinaleArticlesAvantSource, ge as referenceDoctrinaleSourceAvantArticle, p as referenceSeule, k as regExp, yt as relatifPlurielPrepose, Mt as relatifSingulierPrepose, Ct as repeat, gt as replaceHtmlPatterns, fn as replacePattern, jt as replaceTextPatterns, Pe as resolveActionDirectivesFromHtml, we as resolveActionDirectivesFromText, je as resolvePortionSelector, St as reversePositionsSplitFromPositions, wt as reverseTransformationFromPosition, Dt as reverseTransformationsMergedFromPositions, S as reverseTransformedInnerFragment, w as reverseTransformedReplacement, Z as searchArticle, X as searchArticleKeyword, Vn as searchQueryReference, Q as searchTexte, Rn as searchTexteAbbreviations, _t as simplifyHtml, b as simplifyPlainText, Et as simplifyText, Xt as simplifyUnicodeCharacters, An as sortArticlesByDate, zt as sortTextesVersionsByDate, Gt as texte, D as texteEuropeen, j as texteFrancais, be as texteFrancaisAbrege, mn as texteInternational, s as unePortion, ne as uniteBasePreciseeSingulier, fe as uniteBaseSingulier, _ as urlFromArticleVersionsId, g as urlFromLegalId, Tt as variable, At as virguleOuEspace, Ue as walkTableOfContents, Ot as wordsTree };
636
+ export { sn as LegiResolver, D as TextParserContext, r as action, he as actionDirective, de as actionTargets, le as addChildLeftToLastChild, nt as addLinksOrReferencesToHtmlPage, qe as addLinksToHtml, X as addLinksToMarkdown, Hn as addLinksToText, Je as addPositionsToTableOfContentsItems, an as adjectifNumeralCardinal, $t as adjectifNumeralOrdinalCourt, nn as adjectifTemporelSingulier, Vt as adverbeMultiplicatifLatin, Nt as adverbeRelatif, x as alternatives, it as article, je as articles, C as assertNever, ge as auPortion, a as auxPortions, Qt as buildAndInstallTextTitlesInfos, we as buildArticlePortionTreeFromHtml, rn as buildTextTitlesInfos, b as chain, Ct as chainTransformers, ne as citation, Ze as citationLigne, te as citationSimple, Ce as citationToText, Tn as classifyArticleTemporalStatus, on as cleanTexteTitle, l as compoundReferencesSeparators, T as convert, At as convertHtmlElementsToText, He as createEnumerationOrBoundedInterval, n as createParentChildTreeFromReferences, k as date, pt as decodeNamedHtmlEntities, fn as decodeNumericHtmlEntities, Pe as definitionArticleDansCitation, Xe as definitionArticleDansProjetOuPropositionLoi, ze as definitionDivision, Ht as definitionTexteFrancais, Ke as designationArticle, Ee as designationDivision, xt as ditPluriel, It as ditSingulier, Ye as division, ee as divisionTypes, tt as divisions, cn as duDate, M as espace, vt as espaceAdverbeRelatif, ie as europeanLawNatures, P as extendLoadedArticle, Ge as extractActionDirectiveAstsFromText, Le as extractActionDirectivesFromHtml, Fe as extractActionDirectivesFromText, Re as extractArticleDefinitionsFromCitation, $e as extractBillDefinitions, t as extractCitationReferences, fe as extractPortionSelectors, Be as extractReferences, ae as extractReferencesWithOriginalTransformations, v as extractTextLinks, Mn as formatLongDate, me as frenchLawNatures, Dn as getArticleDateDebut, V as getArticleDateSignature, se as getExtractedReferences, ue as getExtractedReferencesWithOriginalTransformations, et as getExtractedTableOfContentsFromTextBill, F as getOrLoadArticle, On as getOrLoadArticleSiblingId, Pn as getOrLoadDocument, Fn as getOrLoadDocumentsByDossierParlementaireUid, In as getOrLoadDossierParlementaire, _n as getOrLoadJo, I as getOrLoadSectionTa, vn as getOrLoadSectionsTa, Cn as getOrLoadTexteVersion, bn as getOrLoadTextekali, yn as getOrLoadTextelr, Sn as getOrLoadTextesVersions, xn as getOrLoadTexteslr, Oe as getTableOfContentsItems, Bt as getTexteVersionDateDebut, Yt as getTexteVersionDateSignature, Wt as identificationTexteEuropeen, ut as internationalLawNatures, Ft as introPluriel, Lt as introSingulier, e as isArticlePortionStructuralStart, z as isLegifranceSentinelDate, i as isTextAstAtomicReference, be as isTextAstDivision, p as isTextAstPortion, Ve as iterAtomicFirstParentReferences, oe as iterAtomicReferences, ce as iterIncludedReferences, Ae as iterReferenceLinks, Nn as jsonReplacer, ve as lawNatures, zt as lettreAscii, kt as liaisonPluriel, dt as liaisonSingulier, Qe as linkTypes, Ie as listeArticles, c as listeReferencesSeules, wn as loadArticles, Se as localizationAdverbs, ke as natureDivisionSingulier, en as natureTexteFrancais, q as newAssembleeObjectCache, J as newLegifranceObjectCache, An as newObjectCache, Tt as newReverseTransformationsMergedFromPositionsIterator, h as nomArticle, y as nomSpecialArticle, un as nombreAsTextAstNumber, Ut as nombreCardinal, Gt as nombreRomainCardinal, tn as nombreRomainOrdinal, Zt as nombreRomainOu0iAsTextAstNumber, hn as nonLettre, ct as normalizeBillArticleNumber, jt as numero, We as numeroDivision, Xt as numeroEtOuDateTexteFrancais, ot as numeroPortion, qt as numeroTexteEuropeen, Kt as numeroTexteFrancais, A as optional, Rt as optionalEspaceDuTerritoire, De as parseArticleNumber, Me as parseArticleSubdivisionMarker, st as parseBillArticleLabel, wt as parseText, d as portionTypes, s as portions, m as reference, ye as referenceDoctrinale, f as referenceDoctrinaleArticleAvantSource, _e as referenceDoctrinaleArticlesAvantSource, xe as referenceDoctrinaleSourceAvantArticle, re as referenceSeule, w as regExp, Pt as relatifPlurielPrepose, St as relatifSingulierPrepose, Ot as repeat, Mt as replaceHtmlPatterns, ht as replacePattern, mt as replaceTextPatterns, Te as resolveActionDirectivesFromHtml, at as resolveActionDirectivesFromText, rt as resolvePortionSelector, Dt as reversePositionsSplitFromPositions, gt as reverseTransformationFromPosition, yt as reverseTransformationsMergedFromPositions, S as reverseTransformedInnerFragment, E as reverseTransformedReplacement, Z as searchArticle, Ln as searchArticleKeyword, Vn as searchQueryReference, Q as searchTexte, Rn as searchTexteAbbreviations, Et as simplifyHtml, j as simplifyPlainText, ft as simplifyText, Jt as simplifyUnicodeCharacters, kn as sortArticlesByDate, ln as sortTextesVersionsByDate, dn as texte, N as texteEuropeen, O as texteFrancais, u as texteFrancaisAbrege, mn as texteInternational, o as unePortion, pe as uniteBasePreciseeSingulier, lt as uniteBaseSingulier, _ as urlFromArticleVersionsId, g as urlFromLegalId, _t as variable, pn as virguleOuEspace, Ue as walkTableOfContents, bt as wordsTree };