@tricoteuses/tisseuse 0.16.2 → 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{html-BTeBbxJE.js → html-UaTiLfCR.js} +948 -843
- package/dist/index.js +55 -55
- package/dist/server.js +611 -623
- package/dist/src/lib/extractors/article_portions.d.ts +6 -0
- package/dist/src/lib/index.d.ts +1 -1
- package/dist/src/lib/text_parsers/table_row_targets.d.ts +2 -0
- package/dist/src/lib/text_parsers/table_unit_notes.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as
|
|
1
|
+
import { At as e, B as t, Bt as n, Ct as r, Dt as i, Et as a, F as o, Ft as s, G as c, Gt as l, H as u, Ht as d, I as f, It as p, J as m, Jt as ee, K as te, Kt as ne, L as re, Lt 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, T as he, Tt as ge, U as _e, Ut as ve, V as ye, Vt as be, W as xe, Wt as Se, X as Ce, Xt as we, Y as Te, Yt as Ee, Z as De, Zt as Oe, _ as ke, _t as Ae, a as h, at as je, b as Me, bt as Ne, c as Pe, d as g, dt as Fe, et as Ie, f as Le, ft as Re, g as ze, gt as Be, ht as Ve, i as He, it as Ue, kt as We, l as Ge, lt as Ke, mt as qe, n as Je, nt as Ye, o as _, ot as Xe, p as Ze, pt as Qe, q as $e, qt as et, r as v, rt as tt, s as nt, st as rt, t as it, tt as at, u as ot, ut as st, v as ct, vt as lt, wt as y, xt as ut, y as dt, yt as ft, z as pt, zt as mt } from "./html-UaTiLfCR.js";
|
|
2
|
+
import { $ as ht, A as gt, C as _t, D as vt, Dt as b, E as yt, Et as x, F as bt, Ft as xt, H as St, I as Ct, It as wt, J as Tt, K as Et, L as S, Lt as C, M as Dt, Mt as Ot, N as kt, Nt as w, O as At, Ot as T, P as jt, Pt as Mt, Q as Nt, R as E, S as Pt, St as Ft, T as It, Tt as D, V as Lt, W as Rt, X as zt, Y as Bt, Z as Vt, _ as Ht, b as O, bt as Ut, c as Wt, ct as Gt, d as Kt, dt as qt, et as k, f as Jt, ft as Yt, g as Xt, h as Zt, j as Qt, jt as A, k as j, l as $t, m as en, mt as tn, n as nn, ot as rn, p as an, pt as on, q as sn, r as cn, rt as ln, s as un, t as dn, tt as fn, u as pn, ut as mn, v as hn, vt as M, w as gn, wt as _n, x as vn, xt as yn, y as N } from "./resolver-CuP8arVX.js";
|
|
3
3
|
//#region ../../node_modules/@tricoteuses/legifrance/dist/legal/index.js
|
|
4
|
-
function
|
|
4
|
+
function bn(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;
|
|
@@ -23,7 +23,7 @@ async function F(e, t, n) {
|
|
|
23
23
|
WHERE id = ${n}
|
|
24
24
|
`).map(P)[0], r.set(n, i ?? null)), i ?? void 0;
|
|
25
25
|
}
|
|
26
|
-
async function
|
|
26
|
+
async function xn(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);
|
|
@@ -45,7 +45,7 @@ async function I(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
|
|
48
|
+
async function Sn(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 xn(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
|
|
64
|
+
async function Cn(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 Sn(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
|
|
75
|
+
async function wn(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 Cn(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
|
|
85
|
+
async function Tn(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 wn(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
|
|
100
|
+
async function En(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 Tn(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
|
|
115
|
+
async function Dn(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 En(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
|
|
126
|
+
async function On(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 = [];
|
|
@@ -143,15 +143,15 @@ function R(e) {
|
|
|
143
143
|
function z(e) {
|
|
144
144
|
return e !== void 0 && L.includes(e);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function kn({ dateDebut: e, sourceDateDebut: t, sourceDateFin: n }) {
|
|
147
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
|
|
149
|
+
var An = (e) => {
|
|
150
150
|
if (e !== void 0) for (let t = 0; t < e.length; ++t) {
|
|
151
151
|
let n = k(new D(e, t));
|
|
152
152
|
if (typeof n == "string") return n;
|
|
153
153
|
}
|
|
154
|
-
}, B = (e) => (e === void 0 ? [] : Array.isArray(e) ? e : [e]).map((e) =>
|
|
154
|
+
}, B = (e) => (e === void 0 ? [] : Array.isArray(e) ? e : [e]).map((e) => An(e["#text"])).find((e) => e !== void 0), jn = (e) => {
|
|
155
155
|
let t = e.META.META_SPEC.META_ARTICLE.DATE_DEBUT;
|
|
156
156
|
if (t !== void 0 && !L.includes(t)) return t;
|
|
157
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));
|
|
@@ -182,7 +182,7 @@ var kn = (e) => {
|
|
|
182
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
|
|
185
|
+
async function Mn(e, t, n, r) {
|
|
186
186
|
let i = await F(e, t, n);
|
|
187
187
|
if (i === void 0) return;
|
|
188
188
|
let a = V(i), o = i.META.META_COMMUN.ORIGINE;
|
|
@@ -195,7 +195,7 @@ async function jn(e, t, n, r) {
|
|
|
195
195
|
l = c.map((e) => e.TITRE_TM["@id"]);
|
|
196
196
|
break;
|
|
197
197
|
case "LEGI":
|
|
198
|
-
l = c.map((e) =>
|
|
198
|
+
l = c.map((e) => bn(e.TITRE_TM, a)?.["@id"]);
|
|
199
199
|
break;
|
|
200
200
|
default: C("getOrLoadArticleSiblingId origine", o);
|
|
201
201
|
}
|
|
@@ -320,7 +320,7 @@ async function K(e, t, n, r, i, a, o = 0, s = {}, c = void 0) {
|
|
|
320
320
|
default: C("moveToPreviousArticleId area", d);
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
|
-
var
|
|
323
|
+
var Nn = (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,16 +339,16 @@ var Mn = (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
|
-
}, q = () => /* @__PURE__ */ new Map(), J = () => /* @__PURE__ */ new Map(),
|
|
342
|
+
}, q = () => /* @__PURE__ */ new Map(), J = () => /* @__PURE__ */ new Map(), Pn = () => ({
|
|
343
343
|
assemblee: q(),
|
|
344
344
|
legifrance: J()
|
|
345
|
-
}),
|
|
346
|
-
function
|
|
347
|
-
return
|
|
345
|
+
}), Fn = new Intl.DateTimeFormat("fr-FR", { dateStyle: "long" });
|
|
346
|
+
function In(e) {
|
|
347
|
+
return Fn.format(new Date(e)).replace(/^1 /, "1er ");
|
|
348
348
|
}
|
|
349
349
|
//#endregion
|
|
350
350
|
//#region src/lib/json.ts
|
|
351
|
-
var
|
|
351
|
+
var Ln = (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
354
|
function Y(e) {
|
|
@@ -356,14 +356,14 @@ function Y(e) {
|
|
|
356
356
|
}
|
|
357
357
|
//#endregion
|
|
358
358
|
//#region src/lib/linkers/markdown.ts
|
|
359
|
-
async function
|
|
360
|
-
let s = t ?? (e === void 0 ? void 0 : new
|
|
359
|
+
async function Rn({ canutesDb: e, legiResolver: t, date: n, linkBaseUrl: r, linkType: i, previousContext: a, text: o }) {
|
|
360
|
+
let s = t ?? (e === void 0 ? void 0 : new Ze(e));
|
|
361
361
|
if (s === void 0) throw Error("A Canutes database or legal resolver is required");
|
|
362
362
|
await s.preloadTextTitlesInfos();
|
|
363
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
|
-
for await (let e of
|
|
366
|
+
for await (let e of g({
|
|
367
367
|
legiResolver: s,
|
|
368
368
|
context: l,
|
|
369
369
|
date: n,
|
|
@@ -371,7 +371,7 @@ async function X({ canutesDb: e, legiResolver: t, date: n, linkBaseUrl: r, linkT
|
|
|
371
371
|
})) switch (e.type) {
|
|
372
372
|
case "article_definition": break;
|
|
373
373
|
case "external_article": {
|
|
374
|
-
let { articleId: t, historyArticleId: n, originalTransformation: a } = e, o = t === void 0 ? n === void 0 ? void 0 :
|
|
374
|
+
let { articleId: t, historyArticleId: n, originalTransformation: a } = e, o = t === void 0 ? n === void 0 ? void 0 : h(i, r, n) : _(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
377
|
let t = E(a, `[${Y(S(u, a, d))}](${o})`);
|
|
@@ -383,7 +383,7 @@ async function X({ 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 = E(t, `[${Y(S(u, t, d))}](${
|
|
386
|
+
let a = E(t, `[${Y(S(u, t, d))}](${_(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,23 +395,23 @@ async function X({ 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 o =
|
|
398
|
+
let o = v(l.text(a.position)), c;
|
|
399
399
|
if (o !== void 0) {
|
|
400
400
|
let e = await s.getActiveArticlesByTextAndNum({
|
|
401
401
|
date: n,
|
|
402
402
|
num: o,
|
|
403
403
|
textId: a.cid
|
|
404
404
|
}), t = e.filter(({ dateDebut: e, dateFin: t }) => e <= n && t > n);
|
|
405
|
-
if (t.length === 1) c =
|
|
405
|
+
if (t.length === 1) c = _(i, r, t[0].id);
|
|
406
406
|
else if (e.length > 0) {
|
|
407
407
|
let e = await s.getArticleHistoryInfo({
|
|
408
408
|
num: o,
|
|
409
409
|
textId: a.cid
|
|
410
410
|
});
|
|
411
|
-
e !== void 0 && (c =
|
|
411
|
+
e !== void 0 && (c = h(i, r, e.articleId));
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
c === void 0 && (c =
|
|
414
|
+
c === void 0 && (c = _(i, r, a.cid));
|
|
415
415
|
let f = E(t, `[${Y(S(u, t, d))}](${c})`);
|
|
416
416
|
u = u.slice(0, t.position.start + d) + f + u.slice(t.position.stop + d), d += f.length - (t.position.stop - t.position.start);
|
|
417
417
|
break;
|
|
@@ -440,7 +440,7 @@ async function X({ canutesDb: e, legiResolver: t, date: n, linkBaseUrl: r, linkT
|
|
|
440
440
|
}
|
|
441
441
|
//#endregion
|
|
442
442
|
//#region src/lib/loaders/assemblee.ts
|
|
443
|
-
async function
|
|
443
|
+
async function zn(e, t, n) {
|
|
444
444
|
let r = t.get("Document");
|
|
445
445
|
r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("Document", r));
|
|
446
446
|
let i = r.get(n);
|
|
@@ -450,7 +450,7 @@ async function Ln(e, t, n) {
|
|
|
450
450
|
WHERE uid = ${n}
|
|
451
451
|
`)[0]?.data, r.set(n, i ?? null)), i ?? void 0;
|
|
452
452
|
}
|
|
453
|
-
async function
|
|
453
|
+
async function Bn(e, t, n) {
|
|
454
454
|
let r = t.get("Document");
|
|
455
455
|
return r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("Document", r)), (await e`
|
|
456
456
|
SELECT data, uid
|
|
@@ -458,7 +458,7 @@ async function Rn(e, t, n) {
|
|
|
458
458
|
WHERE data ->> 'dossierRef' = ${n}
|
|
459
459
|
`).map(({ data: e, uid: t }) => (r.set(t, e ?? null), e));
|
|
460
460
|
}
|
|
461
|
-
async function
|
|
461
|
+
async function Vn(e, t, n) {
|
|
462
462
|
let r = t.get("DossierParlementaire");
|
|
463
463
|
r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("DossierParlementaire", r));
|
|
464
464
|
let i = r.get(n);
|
|
@@ -470,15 +470,15 @@ async function zn(e, t, n) {
|
|
|
470
470
|
}
|
|
471
471
|
//#endregion
|
|
472
472
|
//#region src/lib/text_parsers/search_queries.ts
|
|
473
|
-
var
|
|
474
|
-
|
|
473
|
+
var Hn = w("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i" }), X = b([
|
|
474
|
+
Hn,
|
|
475
475
|
A(M, { default: "" }),
|
|
476
|
-
x(
|
|
476
|
+
x(r, y)
|
|
477
477
|
], { value: (e, t) => ({
|
|
478
478
|
num: e[2],
|
|
479
479
|
position: t.position(),
|
|
480
480
|
type: "article"
|
|
481
|
-
}) }),
|
|
481
|
+
}) }), Un = x(w("c(?:ode|\\.)? ?civ(?:il)?", {
|
|
482
482
|
flags: "i",
|
|
483
483
|
value: (e, t) => ({
|
|
484
484
|
cid: "LEGITEXT000006070721",
|
|
@@ -586,30 +586,30 @@ var Bn = w("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
586
586
|
title: "Code de commerce",
|
|
587
587
|
type: "texte"
|
|
588
588
|
})
|
|
589
|
-
})),
|
|
589
|
+
})), Z = x(Un, T(O, { value: (e, t) => e === void 0 ? void 0 : {
|
|
590
590
|
...e,
|
|
591
591
|
position: t.position()
|
|
592
592
|
} }), T(N, { value: (e, t) => ({
|
|
593
593
|
...e,
|
|
594
594
|
position: t.position()
|
|
595
|
-
}) })),
|
|
595
|
+
}) })), Q = A(w(" (?:du |de la |de l'|des |de |d')?", { flags: "i" }), { default: "" }), Wn = w(".+?(?=\\s*(?:du |de la |de l'|des |de |d')?\\s*(?:art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?))", {
|
|
596
596
|
flags: "i",
|
|
597
597
|
value: (e, t) => ({
|
|
598
598
|
type: "texte",
|
|
599
599
|
title: e[0].trim(),
|
|
600
600
|
position: t.position()
|
|
601
601
|
})
|
|
602
|
-
}),
|
|
602
|
+
}), $ = w(".+", {
|
|
603
603
|
flags: "i",
|
|
604
604
|
value: (e, t) => ({
|
|
605
605
|
type: "texte",
|
|
606
606
|
title: e[0].trim(),
|
|
607
607
|
position: t.position()
|
|
608
608
|
})
|
|
609
|
-
}),
|
|
609
|
+
}), Gn = x(b([
|
|
610
|
+
Z,
|
|
610
611
|
Q,
|
|
611
|
-
|
|
612
|
-
Z
|
|
612
|
+
X
|
|
613
613
|
], { value: (e, t) => {
|
|
614
614
|
let n = e[0];
|
|
615
615
|
return {
|
|
@@ -619,18 +619,18 @@ var Bn = w("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
619
619
|
type: "parent-enfant"
|
|
620
620
|
};
|
|
621
621
|
} }), b([
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
622
|
+
X,
|
|
623
|
+
Q,
|
|
624
|
+
Z
|
|
625
625
|
], { value: (e, t) => ({
|
|
626
626
|
child: e[0],
|
|
627
627
|
parent: e[2],
|
|
628
628
|
position: t.position(),
|
|
629
629
|
type: "parent-enfant"
|
|
630
630
|
}) }), b([
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
631
|
+
Wn,
|
|
632
|
+
Q,
|
|
633
|
+
X
|
|
634
634
|
], { value: (e, t) => {
|
|
635
635
|
let n = e[0];
|
|
636
636
|
return {
|
|
@@ -640,14 +640,14 @@ var Bn = w("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
640
640
|
type: "parent-enfant"
|
|
641
641
|
};
|
|
642
642
|
} }), b([
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
643
|
+
X,
|
|
644
|
+
Q,
|
|
645
|
+
$
|
|
646
646
|
], { value: (e, t) => ({
|
|
647
647
|
child: e[0],
|
|
648
648
|
parent: e[2],
|
|
649
649
|
position: t.position(),
|
|
650
650
|
type: "parent-enfant"
|
|
651
|
-
}) }),
|
|
651
|
+
}) }), X, Z, $), Kn = Rn;
|
|
652
652
|
//#endregion
|
|
653
|
-
export {
|
|
653
|
+
export { dn as LegiResolver, D as TextParserContext, _e as action, he as actionDirective, n as actionTargets, ue as addChildLeftToLastChild, it as addLinksOrReferencesToHtmlPage, Je as addLinksToHtml, Rn as addLinksToMarkdown, Kn as addLinksToText, nt as addPositionsToTableOfContentsItems, ln as adjectifNumeralCardinal, rn as adjectifNumeralOrdinalCourt, sn as adjectifTemporelSingulier, Gt as adverbeMultiplicatifLatin, Lt as adverbeRelatif, x as alternatives, Be as article, Ae as articles, C as assertNever, ce as auPortion, We as auxPortions, nn as buildAndInstallTextTitlesInfos, Ye as buildArticlePortionTreeFromHtml, cn as buildTextTitlesInfos, b as chain, Dt as chainTransformers, Te as citation, Ce as citationLigne, De as citationSimple, de as citationToText, v as citedArticleNumFromTextCitation, kn as classifyArticleTemporalStatus, un as cleanTexteTitle, be as compoundReferencesSeparators, T as convert, Pt as convertHtmlElementsToText, s as createEnumerationOrBoundedInterval, p as createParentChildTreeFromReferences, k as date, _t as decodeNamedHtmlEntities, gn as decodeNumericHtmlEntities, lt as definitionArticleDansCitation, ft as definitionArticleDansProjetOuPropositionLoi, st as definitionDivision, Kt as definitionTexteFrancais, Ne as designationArticle, Fe as designationDivision, Tt as ditPluriel, Bt as ditSingulier, Re as division, d as divisionTypes, Qe as divisions, fn as duDate, M as espace, St as espaceAdverbeRelatif, ve as europeanLawNatures, P as extendLoadedArticle, ze as extractActionDirectiveAstsFromText, ke as extractActionDirectivesFromHtml, ct as extractActionDirectivesFromText, ut as extractArticleDefinitionsFromCitation, Ke as extractBillDefinitions, oe as extractCitationReferences, Ie as extractFrenchCitations, tt as extractPortionSelectors, le as extractReferences, o as extractReferencesWithOriginalTransformations, g as extractTextLinks, In as formatLongDate, Se as frenchLawNatures, jn as getArticleDateDebut, V as getArticleDateSignature, f as getExtractedReferences, re as getExtractedReferencesWithOriginalTransformations, Pe as getExtractedTableOfContentsFromTextBill, F as getOrLoadArticle, Mn as getOrLoadArticleSiblingId, zn as getOrLoadDocument, Bn as getOrLoadDocumentsByDossierParlementaireUid, Vn as getOrLoadDossierParlementaire, xn as getOrLoadJo, I as getOrLoadSectionTa, Sn as getOrLoadSectionsTa, Dn as getOrLoadTexteVersion, wn as getOrLoadTextekali, Cn as getOrLoadTextelr, En as getOrLoadTextesVersions, Tn as getOrLoadTexteslr, Ge as getTableOfContentsItems, Ue as getTableUnitNoteRanges, Wt as getTexteVersionDateDebut, $t as getTexteVersionDateSignature, Jt as identificationTexteEuropeen, l as internationalLawNatures, zt as introPluriel, Vt as introSingulier, je as isArticlePortionStructuralStart, z as isLegifranceSentinelDate, ne as isTextAstAtomicReference, et as isTextAstDivision, ee as isTextAstPortion, ie as iterAtomicFirstParentReferences, pe as iterAtomicReferences, mt as iterIncludedReferences, Le as iterReferenceLinks, Ln as jsonReplacer, Ee as lawNatures, Ut as lettreAscii, Nt as liaisonPluriel, ht as liaisonSingulier, He as linkTypes, me as listeArticles, fe as listeReferencesSeules, On as loadArticles, we as localizationAdverbs, qe as natureDivisionSingulier, an as natureTexteFrancais, q as newAssembleeObjectCache, J as newLegifranceObjectCache, Pn as newObjectCache, kt as newReverseTransformationsMergedFromPositionsIterator, r as nomArticle, y as nomSpecialArticle, mn as nombreAsTextAstNumber, qt as nombreCardinal, Yt as nombreRomainCardinal, on as nombreRomainOrdinal, tn as nombreRomainOu0iAsTextAstNumber, yn as nonLettre, ge as normalizeBillArticleNumber, Ft as numero, Ve as numeroDivision, en as numeroEtOuDateTexteFrancais, e as numeroPortion, Zt as numeroTexteEuropeen, Xt as numeroTexteFrancais, A as optional, Ht as optionalEspaceDuTerritoire, a as parseArticleNumber, Xe as parseArticleSubdivisionMarker, i as parseBillArticleLabel, at as parseFrenchCitationAt, Ot as parseText, Oe as portionTypes, ae as portions, pt as reference, xe as referenceDoctrinale, c as referenceDoctrinaleArticleAvantSource, te as referenceDoctrinaleArticlesAvantSource, $e as referenceDoctrinaleSourceAvantArticle, t as referenceSeule, w as regExp, Rt as relatifPlurielPrepose, Et as relatifSingulierPrepose, Mt as repeat, It as replaceHtmlPatterns, yt as replacePattern, vt as replaceTextPatterns, dt as resolveActionDirectivesFromHtml, Me as resolveActionDirectivesFromText, rt as resolvePortionSelector, jt as reversePositionsSplitFromPositions, bt as reverseTransformationFromPosition, Ct as reverseTransformationsMergedFromPositions, S as reverseTransformedInnerFragment, E as reverseTransformedReplacement, X as searchArticle, Hn as searchArticleKeyword, Gn as searchQueryReference, Z as searchTexte, Un as searchTexteAbbreviations, At as simplifyHtml, j as simplifyPlainText, gt as simplifyText, Qt as simplifyUnicodeCharacters, Nn as sortArticlesByDate, pn as sortTextesVersionsByDate, hn as texte, N as texteEuropeen, O as texteFrancais, m as texteFrancaisAbrege, vn as texteInternational, se as unePortion, ye as uniteBasePreciseeSingulier, u as uniteBaseSingulier, h as urlFromArticleVersionsId, _ as urlFromLegalId, xt as variable, _n as virguleOuEspace, ot as walkTableOfContents, wt as wordsTree };
|