@tricoteuses/tisseuse 0.17.3 → 0.19.0
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-DMnYXx0o.js → html-EuDDYMr2.js} +5208 -5089
- package/dist/index.js +77 -77
- package/dist/{resolver-CuP8arVX.js → resolver-tBQRf8TL.js} +299 -274
- package/dist/server-f-legi.js +18 -12
- package/dist/server.js +570 -570
- package/dist/src/lib/assemblee_document_date.d.ts +5 -0
- package/dist/src/lib/assemblee_document_date.test.d.ts +1 -0
- package/dist/src/lib/extractors/article_portions.d.ts +11 -0
- package/dist/src/lib/extractors/links.code_titles.test.d.ts +1 -0
- package/dist/src/lib/index.d.ts +2 -1
- package/dist/src/lib/legi/text_titles_infos.d.ts +7 -1
- package/dist/src/lib/text_parsers/action_words.d.ts +1 -1
- package/dist/src/lib/text_parsers/articles.d.ts +16 -21
- package/dist/src/lib/text_parsers/ast.d.ts +2 -0
- package/dist/src/lib/text_parsers/portions.d.ts +1 -0
- package/dist/src/lib/text_parsers/prepositions.d.ts +1 -0
- package/dist/src/lib/text_parsers/texts.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as
|
|
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, G as d, Gt as f, H as p, Ht as m, I as ee, It as te, J as ne, Jt as re, K as ie, Kt as ae, L as oe, Lt as se, Mt as ce, Ot as le, P as ue, Pt as de, Q as fe, Qt as pe, R as me, Rt as he, St as ge, T as _e, Tt as h, U as ve, Ut as ye, V as be, Vt as xe, W as Se, Wt as Ce, X as we, Xt as Te, Y as Ee, Yt as De, Z as Oe, Zt as ke, _ as Ae, _t as je, a as g, at as Me, b as Ne, bt as Pe, c as Fe, ct as Ie, d as _, dt 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 Ke, l as qe, lt as Je, mt as Ye, n as Xe, nt as Ze, o as v, ot as Qe, p as $e, pt as et, q as tt, qt as nt, r as y, rt, s as it, st as at, t as ot, tt as st, u as ct, v as lt, vt as ut, wt as dt, xt as ft, y as pt, yt as mt, z as ht, zt as gt } from "./html-EuDDYMr2.js";
|
|
2
|
+
import { $ as _t, A as b, At as x, C as vt, Ct as yt, D as bt, Dt as S, E as xt, Et as St, F as Ct, Ft as C, G as wt, H as Tt, I as Et, It as Dt, J as Ot, L as kt, Lt as At, M as jt, N as Mt, Nt as w, O as Nt, Ot as T, P as Pt, Pt as Ft, Q as It, R as E, Rt as Lt, S as Rt, St as zt, T as Bt, U as Vt, X as Ht, Y as Ut, Z as Wt, _ as Gt, at as Kt, b as D, bt as O, c as qt, ct as Jt, d as Yt, et as Xt, f as Zt, ft as Qt, g as $t, gt as en, h as tn, ht as nn, j as rn, k as an, kt as k, l as on, m as sn, mt as cn, n as ln, nt as A, p as un, pt as dn, q as fn, r as pn, rt as mn, s as hn, t as gn, u as _n, ut as vn, w as yn, wt as bn, x as j, y as xn, z as M, zt as N } from "./resolver-tBQRf8TL.js";
|
|
3
3
|
//#region ../../node_modules/@tricoteuses/legifrance/dist/legal/index.js
|
|
4
|
-
function
|
|
4
|
+
function Sn(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 Cn(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 wn(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 Sn(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 Tn(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 Cn(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 En(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 wn(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 Dn(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 Tn(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 On(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 En(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 kn(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 Dn(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 An(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 jn({ 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 Mn = (e) => {
|
|
150
150
|
if (e !== void 0) for (let t = 0; t < e.length; ++t) {
|
|
151
|
-
let n =
|
|
151
|
+
let n = A(new S(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) => Mn(e["#text"])).find((e) => e !== void 0), Nn = (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 An = (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 Pn(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,9 +195,9 @@ async function Mn(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) => Sn(e.TITRE_TM, a)?.["@id"]);
|
|
199
199
|
break;
|
|
200
|
-
default:
|
|
200
|
+
default: N("getOrLoadArticleSiblingId origine", o);
|
|
201
201
|
}
|
|
202
202
|
return await (r === -1 ? K : G)(e, t, n, a, i.num, l);
|
|
203
203
|
}
|
|
@@ -288,7 +288,7 @@ async function G(e, t, n, r, i, a, o = 0, s = {}, c = void 0) {
|
|
|
288
288
|
}
|
|
289
289
|
return await G(e, t, n, r, i, a, o + 1, s, l);
|
|
290
290
|
}
|
|
291
|
-
default:
|
|
291
|
+
default: N("moveToNextArticleId area", d);
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
async function K(e, t, n, r, i, a, o = 0, s = {}, c = void 0) {
|
|
@@ -317,10 +317,10 @@ async function K(e, t, n, r, i, a, o = 0, s = {}, c = void 0) {
|
|
|
317
317
|
let c = m.LIEN_ART;
|
|
318
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
|
-
default:
|
|
320
|
+
default: N("moveToPreviousArticleId area", d);
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
|
-
var
|
|
323
|
+
var Fn = (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,31 +339,31 @@ var Nn = (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(),
|
|
342
|
+
}, q = () => /* @__PURE__ */ new Map(), In = () => /* @__PURE__ */ new Map(), Ln = () => ({
|
|
343
343
|
assemblee: q(),
|
|
344
|
-
legifrance:
|
|
345
|
-
}),
|
|
346
|
-
function
|
|
347
|
-
return
|
|
344
|
+
legifrance: In()
|
|
345
|
+
}), Rn = new Intl.DateTimeFormat("fr-FR", { dateStyle: "long" });
|
|
346
|
+
function zn(e) {
|
|
347
|
+
return Rn.format(new Date(e)).replace(/^1 /, "1er ");
|
|
348
348
|
}
|
|
349
349
|
//#endregion
|
|
350
350
|
//#region src/lib/json.ts
|
|
351
|
-
var
|
|
351
|
+
var Bn = (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
|
|
354
|
+
function J(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
|
|
360
|
-
let s = t ?? (e === void 0 ? void 0 : new
|
|
359
|
+
async function Vn({ canutesDb: e, legiResolver: t, date: n, linkBaseUrl: r, linkType: i, previousContext: a, text: o }) {
|
|
360
|
+
let s = t ?? (e === void 0 ? void 0 : new $e(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 =
|
|
363
|
+
let c = b(o), l = new S(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 _({
|
|
367
367
|
legiResolver: s,
|
|
368
368
|
context: l,
|
|
369
369
|
date: n,
|
|
@@ -371,10 +371,10 @@ async function Rn({ canutesDb: e, legiResolver: t, date: n, linkBaseUrl: r, link
|
|
|
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 : g(i, r, n) : v(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 =
|
|
377
|
+
let t = M(a, `[${J(E(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 Rn({ canutesDb: e, legiResolver: t, date: n, linkBaseUrl: r, link
|
|
|
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 =
|
|
386
|
+
let a = M(t, `[${J(E(u, t, d))}](${v(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,31 +395,31 @@ async function Rn({ canutesDb: e, legiResolver: t, date: n, linkBaseUrl: r, link
|
|
|
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 = y(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 = v(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 = g(i, r, e.articleId));
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
c === void 0 && (c =
|
|
415
|
-
let f =
|
|
414
|
+
c === void 0 && (c = v(i, r, a.cid));
|
|
415
|
+
let f = M(t, `[${J(E(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;
|
|
418
418
|
}
|
|
419
419
|
case "internal_article": {
|
|
420
420
|
let { definition: t, originalTransformation: n } = e;
|
|
421
421
|
if (n === void 0) throw Error(`Missing originalTransformation attribute in internal article link: ${JSON.stringify(e, null, 2)}`);
|
|
422
|
-
let r =
|
|
422
|
+
let r = M(n, `[${J(E(u, n, d))}](#definition_article_${t.textId}_${t.article.num.replaceAll(" ", "_")})`);
|
|
423
423
|
u = u.slice(0, n.position.start + d) + r + u.slice(n.position.stop + d), d += r.length - (n.position.stop - n.position.start);
|
|
424
424
|
break;
|
|
425
425
|
}
|
|
@@ -427,11 +427,11 @@ async function Rn({ canutesDb: e, legiResolver: t, date: n, linkBaseUrl: r, link
|
|
|
427
427
|
let { url: t, originalTransformation: n } = e;
|
|
428
428
|
if (t === void 0) continue;
|
|
429
429
|
if (n === void 0) throw Error(`Missing originalTransformation attribute in european text link: ${JSON.stringify(e, null, 2)}`);
|
|
430
|
-
let r =
|
|
430
|
+
let r = E(u, n, d), i = M(n, `<a class="lien_texte_european" href="${t}"${t.startsWith("/") ? "" : " target=\"_blank\""}>${r}</a>`);
|
|
431
431
|
u = u.slice(0, n.position.start + d) + i + u.slice(n.position.stop + d), d += i.length - (n.position.stop - n.position.start);
|
|
432
432
|
break;
|
|
433
433
|
}
|
|
434
|
-
default:
|
|
434
|
+
default: N("Link", e);
|
|
435
435
|
}
|
|
436
436
|
return {
|
|
437
437
|
context: l,
|
|
@@ -440,7 +440,7 @@ async function Rn({ canutesDb: e, legiResolver: t, date: n, linkBaseUrl: r, link
|
|
|
440
440
|
}
|
|
441
441
|
//#endregion
|
|
442
442
|
//#region src/lib/loaders/assemblee.ts
|
|
443
|
-
async function
|
|
443
|
+
async function Hn(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 zn(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 Un(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 Bn(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 Wn(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 Vn(e, t, n) {
|
|
|
470
470
|
}
|
|
471
471
|
//#endregion
|
|
472
472
|
//#region src/lib/text_parsers/search_queries.ts
|
|
473
|
-
var
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
473
|
+
var Gn = C("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i" }), Y = k([
|
|
474
|
+
Gn,
|
|
475
|
+
w(O, { default: "" }),
|
|
476
|
+
T(h, c)
|
|
477
477
|
], { value: (e, t) => ({
|
|
478
478
|
num: e[2],
|
|
479
479
|
position: t.position(),
|
|
480
480
|
type: "article"
|
|
481
|
-
}) }),
|
|
481
|
+
}) }), X = T(C("c(?:ode|\\.)? ?civ(?:il)?", {
|
|
482
482
|
flags: "i",
|
|
483
483
|
value: (e, t) => ({
|
|
484
484
|
cid: "LEGITEXT000006070721",
|
|
@@ -487,7 +487,7 @@ var Hn = w("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
487
487
|
title: "Code civil",
|
|
488
488
|
type: "texte"
|
|
489
489
|
})
|
|
490
|
-
}),
|
|
490
|
+
}), C("c(?:ode|\\.)? ?trav(?:ail)?", {
|
|
491
491
|
flags: "i",
|
|
492
492
|
value: (e, t) => ({
|
|
493
493
|
cid: "LEGITEXT000006072050",
|
|
@@ -496,7 +496,7 @@ var Hn = w("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
496
496
|
title: "Code du travail",
|
|
497
497
|
type: "texte"
|
|
498
498
|
})
|
|
499
|
-
}),
|
|
499
|
+
}), C("c(?:ode|\\.)? ?p[eé]n(?:al)?", {
|
|
500
500
|
flags: "i",
|
|
501
501
|
value: (e, t) => ({
|
|
502
502
|
cid: "LEGITEXT000006070719",
|
|
@@ -505,7 +505,7 @@ var Hn = w("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
505
505
|
title: "Code pénal",
|
|
506
506
|
type: "texte"
|
|
507
507
|
})
|
|
508
|
-
}),
|
|
508
|
+
}), C("c(?:ode|\\.)? ?pr(?:oc(?:[eé]dure)?)? ?p[eé]n(?:al)?|cpp", {
|
|
509
509
|
flags: "i",
|
|
510
510
|
value: (e, t) => ({
|
|
511
511
|
cid: "LEGITEXT000006071154",
|
|
@@ -514,7 +514,7 @@ var Hn = w("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
514
514
|
title: "Code de procédure pénale",
|
|
515
515
|
type: "texte"
|
|
516
516
|
})
|
|
517
|
-
}),
|
|
517
|
+
}), C("c(?:ode|\\.)? ?pr(?:oc(?:[eé]dure)?)? ?civ(?:il)?|cpc", {
|
|
518
518
|
flags: "i",
|
|
519
519
|
value: (e, t) => ({
|
|
520
520
|
cid: "LEGITEXT000006070716",
|
|
@@ -523,7 +523,7 @@ var Hn = w("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
523
523
|
title: "Code de procédure civile",
|
|
524
524
|
type: "texte"
|
|
525
525
|
})
|
|
526
|
-
}),
|
|
526
|
+
}), C("c(?:ode|\\.)? ?s[eé]cur(?:it[eé])? ?soc(?:iale)?|css", {
|
|
527
527
|
flags: "i",
|
|
528
528
|
value: (e, t) => ({
|
|
529
529
|
cid: "LEGITEXT000006073189",
|
|
@@ -532,7 +532,7 @@ var Hn = w("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
532
532
|
title: "Code de la sécurité sociale",
|
|
533
533
|
type: "texte"
|
|
534
534
|
})
|
|
535
|
-
}),
|
|
535
|
+
}), C("c(?:ode|\\.)? ?rur(?:al)?(?: et de la p[êe]che maritime)?", {
|
|
536
536
|
flags: "i",
|
|
537
537
|
value: (e, t) => ({
|
|
538
538
|
cid: "LEGITEXT000006071367",
|
|
@@ -541,7 +541,7 @@ var Hn = w("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
541
541
|
title: "Code rural et de la pêche maritime",
|
|
542
542
|
type: "texte"
|
|
543
543
|
})
|
|
544
|
-
}),
|
|
544
|
+
}), C("c(?:ode|\\.)? ?env(?:ironnement)?", {
|
|
545
545
|
flags: "i",
|
|
546
546
|
value: (e, t) => ({
|
|
547
547
|
cid: "LEGITEXT000006074220",
|
|
@@ -550,7 +550,7 @@ var Hn = w("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
550
550
|
title: "Code de l'environnement",
|
|
551
551
|
type: "texte"
|
|
552
552
|
})
|
|
553
|
-
}),
|
|
553
|
+
}), C("c(?:ode|\\.)? ?urb(?:anisme)?", {
|
|
554
554
|
flags: "i",
|
|
555
555
|
value: (e, t) => ({
|
|
556
556
|
cid: "LEGITEXT000006074075",
|
|
@@ -559,7 +559,7 @@ var Hn = w("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
559
559
|
title: "Code de l'urbanisme",
|
|
560
560
|
type: "texte"
|
|
561
561
|
})
|
|
562
|
-
}),
|
|
562
|
+
}), C("c(?:ode|\\.)? ?jus(?:tice)? ?adm(?:in(?:istrative)?)?|cja", {
|
|
563
563
|
flags: "i",
|
|
564
564
|
value: (e, t) => ({
|
|
565
565
|
cid: "LEGITEXT000006070933",
|
|
@@ -568,7 +568,7 @@ var Hn = w("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
568
568
|
title: "Code de justice administrative",
|
|
569
569
|
type: "texte"
|
|
570
570
|
})
|
|
571
|
-
}),
|
|
571
|
+
}), C("cgi", {
|
|
572
572
|
flags: "i",
|
|
573
573
|
value: (e, t) => ({
|
|
574
574
|
cid: "LEGITEXT000006069577",
|
|
@@ -577,7 +577,7 @@ var Hn = w("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
577
577
|
title: "Code général des impôts",
|
|
578
578
|
type: "texte"
|
|
579
579
|
})
|
|
580
|
-
}),
|
|
580
|
+
}), C("c(?:ode|\\.)? ?com(?:merce)?", {
|
|
581
581
|
flags: "i",
|
|
582
582
|
value: (e, t) => ({
|
|
583
583
|
cid: "LEGITEXT000005634379",
|
|
@@ -586,30 +586,30 @@ var Hn = 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
|
-
})), Z =
|
|
589
|
+
})), Z = T(X, x(j, { value: (e, t) => e === void 0 ? void 0 : {
|
|
590
590
|
...e,
|
|
591
591
|
position: t.position()
|
|
592
|
-
} }),
|
|
592
|
+
} }), x(D, { value: (e, t) => ({
|
|
593
593
|
...e,
|
|
594
594
|
position: t.position()
|
|
595
|
-
}) })), Q =
|
|
595
|
+
}) })), Q = w(C(" (?:du |de la |de l'|des |de |d')?", { flags: "i" }), { default: "" }), Kn = C(".+?(?=\\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
|
+
}), $ = C(".+", {
|
|
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
|
+
}), qn = T(k([
|
|
610
610
|
Z,
|
|
611
611
|
Q,
|
|
612
|
-
|
|
612
|
+
Y
|
|
613
613
|
], { value: (e, t) => {
|
|
614
614
|
let n = e[0];
|
|
615
615
|
return {
|
|
@@ -618,8 +618,8 @@ var Hn = w("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
618
618
|
position: t.position(),
|
|
619
619
|
type: "parent-enfant"
|
|
620
620
|
};
|
|
621
|
-
} }),
|
|
622
|
-
|
|
621
|
+
} }), k([
|
|
622
|
+
Y,
|
|
623
623
|
Q,
|
|
624
624
|
Z
|
|
625
625
|
], { value: (e, t) => ({
|
|
@@ -627,10 +627,10 @@ var Hn = w("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
627
627
|
parent: e[2],
|
|
628
628
|
position: t.position(),
|
|
629
629
|
type: "parent-enfant"
|
|
630
|
-
}) }),
|
|
631
|
-
|
|
630
|
+
}) }), k([
|
|
631
|
+
Kn,
|
|
632
632
|
Q,
|
|
633
|
-
|
|
633
|
+
Y
|
|
634
634
|
], { value: (e, t) => {
|
|
635
635
|
let n = e[0];
|
|
636
636
|
return {
|
|
@@ -639,8 +639,8 @@ var Hn = w("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
639
639
|
position: t.position(),
|
|
640
640
|
type: "parent-enfant"
|
|
641
641
|
};
|
|
642
|
-
} }),
|
|
643
|
-
|
|
642
|
+
} }), k([
|
|
643
|
+
Y,
|
|
644
644
|
Q,
|
|
645
645
|
$
|
|
646
646
|
], { value: (e, t) => ({
|
|
@@ -648,6 +648,6 @@ var Hn = w("art(?:icle|icl|ic|i|s)?\\.?|al(?:inéa|inea|in|i)?\\.?", { flags: "i
|
|
|
648
648
|
parent: e[2],
|
|
649
649
|
position: t.position(),
|
|
650
650
|
type: "parent-enfant"
|
|
651
|
-
}) }),
|
|
651
|
+
}) }), Y, Z, $), Jn = Vn;
|
|
652
652
|
//#endregion
|
|
653
|
-
export {
|
|
653
|
+
export { gn as LegiResolver, S as TextParserContext, Se as action, _e as actionDirective, m as actionTargets, te as addChildLeftToLastChild, ot as addLinksOrReferencesToHtmlPage, Xe as addLinksToHtml, Vn as addLinksToMarkdown, Jn as addLinksToText, it as addPositionsToTableOfContentsItems, Kt as adjectifNumeralCardinal, Jt as adjectifNumeralOrdinalCourt, Ot as adjectifTemporelSingulier, vn as adverbeMultiplicatifLatin, Tt as adverbeRelatif, T as alternatives, ut as article, mt as articles, N as assertNever, r as auPortion, Ge as auxPortions, ln as buildAndInstallTextTitlesInfos, rt as buildArticlePortionTreeFromHtml, pn as buildTextTitlesInfos, k as chain, Mt as chainTransformers, we as citation, Oe as citationLigne, fe as citationSimple, e as citationToText, y as citedArticleNumFromTextCitation, jn as classifyArticleTemporalStatus, hn as cleanTexteTitle, ye as compoundReferencesSeparators, x as convert, vt as convertHtmlElementsToText, se as createEnumerationOrBoundedInterval, he as createParentChildTreeFromReferences, A as date, yn as decodeNamedHtmlEntities, Bt as decodeNumericHtmlEntities, Pe as definitionArticleDansCitation, ft as definitionArticleDansProjetOuPropositionLoi, ze as definitionDivision, Yt as definitionTexteFrancais, ge as designationArticle, et as designationDivision, Ut as ditPluriel, Ht as ditSingulier, Ye as division, Ce as divisionTypes, He as divisions, mn as duDate, O as espace, Vt as espaceAdverbeRelatif, f as europeanLawNatures, P as extendLoadedArticle, Be as extractActionDirectiveAstsFromText, Ae as extractActionDirectivesFromHtml, lt as extractActionDirectivesFromText, o as extractArticleDefinitionsFromCitation, Le as extractBillDefinitions, ue as extractCitationReferences, st as extractFrenchCitations, We as extractPortionSelectors, l as extractReferences, ee as extractReferencesWithOriginalTransformations, _ as extractTextLinks, n as findBoundaryPositionCue, zn as formatLongDate, ae as frenchLawNatures, Nn as getArticleDateDebut, V as getArticleDateSignature, oe as getExtractedReferences, me as getExtractedReferencesWithOriginalTransformations, Fe as getExtractedTableOfContentsFromTextBill, Me as getLegalPhraseTextBounds, F as getOrLoadArticle, Pn as getOrLoadArticleSiblingId, Hn as getOrLoadDocument, Un as getOrLoadDocumentsByDossierParlementaireUid, Wn as getOrLoadDossierParlementaire, Cn as getOrLoadJo, I as getOrLoadSectionTa, wn as getOrLoadSectionsTa, kn as getOrLoadTexteVersion, En as getOrLoadTextekali, Tn as getOrLoadTextelr, On as getOrLoadTextesVersions, Dn as getOrLoadTexteslr, qe as getTableOfContentsItems, Qe as getTableUnitNoteRanges, qt as getTexteVersionDateDebut, on as getTexteVersionDateSignature, Zt as identificationTexteEuropeen, nt as internationalLawNatures, Wt as introPluriel, It as introSingulier, at as isArticlePortionStructuralStart, z as isLegifranceSentinelDate, re as isTextAstAtomicReference, De as isTextAstDivision, Te as isTextAstPortion, gt as iterAtomicFirstParentReferences, a as iterAtomicReferences, xe as iterIncludedReferences, Re as iterReferenceLinks, Bn as jsonReplacer, ke as lawNatures, zt as lettreAscii, _t as liaisonPluriel, Xt as liaisonSingulier, Ue as linkTypes, dt as listeArticles, ht as listeReferencesSeules, An as loadArticles, pe as localizationAdverbs, Ve as natureDivisionSingulier, un as natureTexteFrancais, q as newAssembleeObjectCache, In as newLegifranceObjectCache, Ln as newObjectCache, Pt as newReverseTransformationsMergedFromPositionsIterator, h as nomArticle, c as nomSpecialArticle, Qt as nombreAsTextAstNumber, dn as nombreCardinal, cn as nombreRomainCardinal, nn as nombreRomainOrdinal, en as nombreRomainOu0iAsTextAstNumber, yt as nonLettre, s as normalizeBillArticleNumber, bn as numero, je as numeroDivision, sn as numeroEtOuDateTexteFrancais, ce as numeroPortion, tn as numeroTexteEuropeen, $t as numeroTexteFrancais, w as optional, Gt as optionalEspaceDuTerritoire, le as parseArticleNumber, Ie as parseArticleSubdivisionMarker, Ke as parseBillArticleLabel, Ze as parseFrenchCitationAt, Ft as parseText, t as portionTypes, de as portions, i as reference, d as referenceDoctrinale, ie as referenceDoctrinaleArticleAvantSource, tt as referenceDoctrinaleArticlesAvantSource, ne as referenceDoctrinaleSourceAvantArticle, be as referenceSeule, C as regExp, wt as relatifPlurielPrepose, fn as relatifSingulierPrepose, Dt as repeat, xt as replaceHtmlPatterns, bt as replacePattern, Nt as replaceTextPatterns, pt as resolveActionDirectivesFromHtml, Ne as resolveActionDirectivesFromText, Je as resolvePortionSelector, Ct as reversePositionsSplitFromPositions, Et as reverseTransformationFromPosition, kt as reverseTransformationsMergedFromPositions, E as reverseTransformedInnerFragment, M as reverseTransformedReplacement, Y as searchArticle, Gn as searchArticleKeyword, qn as searchQueryReference, Z as searchTexte, X as searchTexteAbbreviations, an as simplifyHtml, b as simplifyPlainText, rn as simplifyText, jt as simplifyUnicodeCharacters, Fn as sortArticlesByDate, _n as sortTextesVersionsByDate, xn as texte, D as texteEuropeen, j as texteFrancais, Ee as texteFrancaisAbrege, Rt as texteInternational, u as unePortion, p as uniteBasePreciseeSingulier, ve as uniteBaseSingulier, g as urlFromArticleVersionsId, v as urlFromLegalId, At as variable, St as virguleOuEspace, ct as walkTableOfContents, Lt as wordsTree };
|