@tricoteuses/tisseuse 0.21.1 → 0.21.2

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