@tricoteuses/assemblee 2.0.0 → 2.1.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/README.md +26 -8
- package/lib/{amendements-CV3s5a0M.js → amendements-40Z7OJLT.js} +150 -135
- package/lib/{amendements-79bwpkvR.js → amendements-DcffXOt8.js} +1 -1
- package/lib/cleaners.js +23 -23
- package/lib/dossiers_legislatifs.d.ts +1 -2
- package/lib/index.d.ts +8 -8
- package/lib/index.js +323 -274
- package/lib/{loaders-9mHdTl9L.js → loaders-DX6btNsl.js} +1093 -1050
- package/lib/loaders.js +11 -11
- package/lib/parsers/recherche_amendements.d.ts +3 -0
- package/lib/parsers.js +2 -2
- package/lib/raw_types/dossiers_legislatifs.d.ts +8 -8
- package/lib/schemas/acteurs_et_organes.json +26 -26
- package/lib/schemas/agendas.json +47 -47
- package/lib/schemas/amendements.json +69 -68
- package/lib/schemas/dossiers_legislatifs.json +112 -112
- package/lib/schemas/questions.json +25 -25
- package/lib/schemas/scrutins.json +15 -15
- package/lib/types/acteurs_et_organes.d.ts +26 -26
- package/lib/types/agendas.d.ts +21 -21
- package/lib/types/amendements.d.ts +76 -50
- package/lib/types/dossiers_legislatifs.d.ts +51 -51
- package/lib/types/questions.d.ts +22 -24
- package/lib/types/scrutins.d.ts +15 -15
- package/package.json +10 -4
package/lib/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { C as O } from "./loaders-
|
|
3
|
-
import { a as
|
|
4
|
-
import { C as
|
|
1
|
+
import { c as B, t as x, g as _, m as Q, a as s, b as X, d as V, e as z, f as J, h as Z, i as K, l as ee, j as te, k as ne, w as re, n as U, o as k, p as oe, q as C } from "./parse-Ccs6wcUg.js";
|
|
2
|
+
import { C as O } from "./loaders-DX6btNsl.js";
|
|
3
|
+
import { n as mt, H as gt, b as pt, a as yt, c as ht, I as Rt, J as xt, D as Tt, o as Dt, q as wt, E as vt, F as bt, f as St, L as At, K as Et, O as Ot, U as Ct, V as Mt, M as _t, N as Pt, g as Lt, h as Nt, W as It, P as Bt, i as Ut, j as kt, r as Yt, s as Ft, Q as qt, R as jt, d as $t, k as Wt, S as Ht, t as Gt, u as Qt, v as Xt, w as Vt, x as zt, y as Jt, G as Zt, X as Kt, T as en, z as tn, e as nn, l as rn, B as on, m as an, A as sn, p as cn } from "./loaders-DX6btNsl.js";
|
|
4
|
+
import { A as fn, a as dn, C as ln, b as mn, c as gn, D as pn, E as yn, d as hn, S as Rn, T as xn, e as Tn, f as Dn, g as wn } from "./amendements-40Z7OJLT.js";
|
|
5
5
|
var Y = /* @__PURE__ */ ((e) => (e.Amendements = "amendements", e))(Y || {});
|
|
6
|
-
const
|
|
7
|
-
var
|
|
8
|
-
const
|
|
9
|
-
function
|
|
10
|
-
const r =
|
|
6
|
+
const Qe = Object.values(Y);
|
|
7
|
+
var F = /* @__PURE__ */ ((e) => (e.Acte_organe = "acte.organe", e.Acte_provenance = "acte.provenance", e.Acte_rapporteurs_acteur = "acte.rapporteurs.acteur", e.Acte_reunion = "acte.reunion", e.Acte_texteAdopte = "acte.texteAdopte", e.Acte_texteAssocie = "acte.texteAssocie", e.Acte_textesAssocies_texteAssocie = "acte.textesAssocies.texteAssocie", e.Acte_votes = "acte.votes", e.Acteur_mandats_organes = "acteur.mandats.organes", e.Amendement_signataires_auteur_acteur = "amendement.signataires.auteur.acteur", e.Amendement_signataires_auteur_auteurRapporteurOrgane = "amendement.signataires.auteur.auteurRapporteurOrgane", e.Amendement_signataires_auteur_gouvernement = "amendement.signataires.auteur.gouvernement", e.Amendement_signataires_auteur_groupePolitique = "amendement.signataires.auteur.groupePolitique", e.Amendement_signataires_cosignataires = "amendement.signataires.cosignataires", e.Amendement_texteLegislatif = "amendement.texteLegislatif", e.Document_auteurs_acteur_acteur = "document.auteurs.acteur.acteur", e.Document_auteurs_organe = "document.auteurs.organe", e.Document_dossier = "document.dossier", e.Dossier_initiateur_acteurs_acteur = "dossier.initiateur.acteurs.acteur", e.Dossier_initiateur_organe = "dossier.initiateur.organe", e.Organe_organeParent = "organe.organeParent", e.Organe_organePrecedent = "organe.organePrecedent", e.Reunion_demandeurs_acteurs_acteur = "reunion.demandeurs.acteurs.acteur", e.Reunion_demandeurs_organe_organe = "reunion.demandeurs.organe.organe", e.Reunion_organeReuni = "reunion.organeReuni", e.Reunion_participants_participantsInternes_acteur = "reunion.participants.participantsInternes.acteur", e.Scrutin_miseAuPoint = "scrutin.miseAuPoint", e.Scrutin_organe = "scrutin.organe", e.Scrutin_ventilationVotes_groupes_organe = "scrutin.ventilationVotes.groupes.organe", e))(F || {});
|
|
8
|
+
const Xe = Object.values(F);
|
|
9
|
+
function ie(e, ...t) {
|
|
10
|
+
const r = B.bind(
|
|
11
11
|
null,
|
|
12
12
|
t.find((n) => typeof n == "object")
|
|
13
13
|
);
|
|
14
14
|
return t.map(r);
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function P(e, t) {
|
|
17
17
|
const r = x(e, t?.in);
|
|
18
18
|
return r.setHours(0, 0, 0, 0), r;
|
|
19
19
|
}
|
|
20
20
|
function ae(e, t, r) {
|
|
21
|
-
const [n,
|
|
21
|
+
const [n, o] = ie(
|
|
22
22
|
r?.in,
|
|
23
23
|
e,
|
|
24
24
|
t
|
|
25
|
-
),
|
|
25
|
+
), i = P(n), a = P(o), u = +i - _(i), c = +a - _(a);
|
|
26
26
|
return Math.round((u - c) / Q);
|
|
27
27
|
}
|
|
28
28
|
function se(e, t) {
|
|
@@ -82,19 +82,19 @@ const y = {
|
|
|
82
82
|
},
|
|
83
83
|
// Fraction of second
|
|
84
84
|
S(e, t) {
|
|
85
|
-
const r = t.length, n = e.getMilliseconds(),
|
|
85
|
+
const r = t.length, n = e.getMilliseconds(), o = Math.trunc(
|
|
86
86
|
n * Math.pow(10, r - 3)
|
|
87
87
|
);
|
|
88
|
-
return s(
|
|
88
|
+
return s(o, t.length);
|
|
89
89
|
}
|
|
90
|
-
},
|
|
90
|
+
}, T = {
|
|
91
91
|
midnight: "midnight",
|
|
92
92
|
noon: "noon",
|
|
93
93
|
morning: "morning",
|
|
94
94
|
afternoon: "afternoon",
|
|
95
95
|
evening: "evening",
|
|
96
96
|
night: "night"
|
|
97
|
-
},
|
|
97
|
+
}, L = {
|
|
98
98
|
// Era
|
|
99
99
|
G: function(e, t, r) {
|
|
100
100
|
const n = e.getFullYear() > 0 ? 1 : 0;
|
|
@@ -116,19 +116,19 @@ const y = {
|
|
|
116
116
|
// Year
|
|
117
117
|
y: function(e, t, r) {
|
|
118
118
|
if (t === "yo") {
|
|
119
|
-
const n = e.getFullYear(),
|
|
120
|
-
return r.ordinalNumber(
|
|
119
|
+
const n = e.getFullYear(), o = n > 0 ? n : 1 - n;
|
|
120
|
+
return r.ordinalNumber(o, { unit: "year" });
|
|
121
121
|
}
|
|
122
122
|
return y.y(e, t);
|
|
123
123
|
},
|
|
124
124
|
// Local week-numbering year
|
|
125
125
|
Y: function(e, t, r, n) {
|
|
126
|
-
const
|
|
126
|
+
const o = J(e, n), i = o > 0 ? o : 1 - o;
|
|
127
127
|
if (t === "YY") {
|
|
128
|
-
const a =
|
|
128
|
+
const a = i % 100;
|
|
129
129
|
return s(a, 2);
|
|
130
130
|
}
|
|
131
|
-
return t === "Yo" ? r.ordinalNumber(
|
|
131
|
+
return t === "Yo" ? r.ordinalNumber(i, { unit: "year" }) : s(i, t.length);
|
|
132
132
|
},
|
|
133
133
|
// ISO week-numbering year
|
|
134
134
|
R: function(e, t) {
|
|
@@ -277,8 +277,8 @@ const y = {
|
|
|
277
277
|
},
|
|
278
278
|
// Local week of year
|
|
279
279
|
w: function(e, t, r, n) {
|
|
280
|
-
const
|
|
281
|
-
return t === "wo" ? r.ordinalNumber(
|
|
280
|
+
const o = V(e, n);
|
|
281
|
+
return t === "wo" ? r.ordinalNumber(o, { unit: "week" }) : s(o, t.length);
|
|
282
282
|
},
|
|
283
283
|
// ISO week of year
|
|
284
284
|
I: function(e, t, r) {
|
|
@@ -329,38 +329,38 @@ const y = {
|
|
|
329
329
|
},
|
|
330
330
|
// Local day of week
|
|
331
331
|
e: function(e, t, r, n) {
|
|
332
|
-
const
|
|
332
|
+
const o = e.getDay(), i = (o - n.weekStartsOn + 8) % 7 || 7;
|
|
333
333
|
switch (t) {
|
|
334
334
|
// Numerical value (Nth day of week with current locale or weekStartsOn)
|
|
335
335
|
case "e":
|
|
336
|
-
return String(
|
|
336
|
+
return String(i);
|
|
337
337
|
// Padded numerical value
|
|
338
338
|
case "ee":
|
|
339
|
-
return s(
|
|
339
|
+
return s(i, 2);
|
|
340
340
|
// 1st, 2nd, ..., 7th
|
|
341
341
|
case "eo":
|
|
342
|
-
return r.ordinalNumber(
|
|
342
|
+
return r.ordinalNumber(i, { unit: "day" });
|
|
343
343
|
case "eee":
|
|
344
|
-
return r.day(
|
|
344
|
+
return r.day(o, {
|
|
345
345
|
width: "abbreviated",
|
|
346
346
|
context: "formatting"
|
|
347
347
|
});
|
|
348
348
|
// T
|
|
349
349
|
case "eeeee":
|
|
350
|
-
return r.day(
|
|
350
|
+
return r.day(o, {
|
|
351
351
|
width: "narrow",
|
|
352
352
|
context: "formatting"
|
|
353
353
|
});
|
|
354
354
|
// Tu
|
|
355
355
|
case "eeeeee":
|
|
356
|
-
return r.day(
|
|
356
|
+
return r.day(o, {
|
|
357
357
|
width: "short",
|
|
358
358
|
context: "formatting"
|
|
359
359
|
});
|
|
360
360
|
// Tuesday
|
|
361
361
|
case "eeee":
|
|
362
362
|
default:
|
|
363
|
-
return r.day(
|
|
363
|
+
return r.day(o, {
|
|
364
364
|
width: "wide",
|
|
365
365
|
context: "formatting"
|
|
366
366
|
});
|
|
@@ -368,38 +368,38 @@ const y = {
|
|
|
368
368
|
},
|
|
369
369
|
// Stand-alone local day of week
|
|
370
370
|
c: function(e, t, r, n) {
|
|
371
|
-
const
|
|
371
|
+
const o = e.getDay(), i = (o - n.weekStartsOn + 8) % 7 || 7;
|
|
372
372
|
switch (t) {
|
|
373
373
|
// Numerical value (same as in `e`)
|
|
374
374
|
case "c":
|
|
375
|
-
return String(
|
|
375
|
+
return String(i);
|
|
376
376
|
// Padded numerical value
|
|
377
377
|
case "cc":
|
|
378
|
-
return s(
|
|
378
|
+
return s(i, t.length);
|
|
379
379
|
// 1st, 2nd, ..., 7th
|
|
380
380
|
case "co":
|
|
381
|
-
return r.ordinalNumber(
|
|
381
|
+
return r.ordinalNumber(i, { unit: "day" });
|
|
382
382
|
case "ccc":
|
|
383
|
-
return r.day(
|
|
383
|
+
return r.day(o, {
|
|
384
384
|
width: "abbreviated",
|
|
385
385
|
context: "standalone"
|
|
386
386
|
});
|
|
387
387
|
// T
|
|
388
388
|
case "ccccc":
|
|
389
|
-
return r.day(
|
|
389
|
+
return r.day(o, {
|
|
390
390
|
width: "narrow",
|
|
391
391
|
context: "standalone"
|
|
392
392
|
});
|
|
393
393
|
// Tu
|
|
394
394
|
case "cccccc":
|
|
395
|
-
return r.day(
|
|
395
|
+
return r.day(o, {
|
|
396
396
|
width: "short",
|
|
397
397
|
context: "standalone"
|
|
398
398
|
});
|
|
399
399
|
// Tuesday
|
|
400
400
|
case "cccc":
|
|
401
401
|
default:
|
|
402
|
-
return r.day(
|
|
402
|
+
return r.day(o, {
|
|
403
403
|
width: "wide",
|
|
404
404
|
context: "standalone"
|
|
405
405
|
});
|
|
@@ -407,17 +407,17 @@ const y = {
|
|
|
407
407
|
},
|
|
408
408
|
// ISO day of week
|
|
409
409
|
i: function(e, t, r) {
|
|
410
|
-
const n = e.getDay(),
|
|
410
|
+
const n = e.getDay(), o = n === 0 ? 7 : n;
|
|
411
411
|
switch (t) {
|
|
412
412
|
// 2
|
|
413
413
|
case "i":
|
|
414
|
-
return String(
|
|
414
|
+
return String(o);
|
|
415
415
|
// 02
|
|
416
416
|
case "ii":
|
|
417
|
-
return s(
|
|
417
|
+
return s(o, t.length);
|
|
418
418
|
// 2nd
|
|
419
419
|
case "io":
|
|
420
|
-
return r.ordinalNumber(
|
|
420
|
+
return r.ordinalNumber(o, { unit: "day" });
|
|
421
421
|
// Tue
|
|
422
422
|
case "iii":
|
|
423
423
|
return r.day(n, {
|
|
@@ -447,27 +447,27 @@ const y = {
|
|
|
447
447
|
},
|
|
448
448
|
// AM or PM
|
|
449
449
|
a: function(e, t, r) {
|
|
450
|
-
const
|
|
450
|
+
const o = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
451
451
|
switch (t) {
|
|
452
452
|
case "a":
|
|
453
453
|
case "aa":
|
|
454
|
-
return r.dayPeriod(
|
|
454
|
+
return r.dayPeriod(o, {
|
|
455
455
|
width: "abbreviated",
|
|
456
456
|
context: "formatting"
|
|
457
457
|
});
|
|
458
458
|
case "aaa":
|
|
459
|
-
return r.dayPeriod(
|
|
459
|
+
return r.dayPeriod(o, {
|
|
460
460
|
width: "abbreviated",
|
|
461
461
|
context: "formatting"
|
|
462
462
|
}).toLowerCase();
|
|
463
463
|
case "aaaaa":
|
|
464
|
-
return r.dayPeriod(
|
|
464
|
+
return r.dayPeriod(o, {
|
|
465
465
|
width: "narrow",
|
|
466
466
|
context: "formatting"
|
|
467
467
|
});
|
|
468
468
|
case "aaaa":
|
|
469
469
|
default:
|
|
470
|
-
return r.dayPeriod(
|
|
470
|
+
return r.dayPeriod(o, {
|
|
471
471
|
width: "wide",
|
|
472
472
|
context: "formatting"
|
|
473
473
|
});
|
|
@@ -476,27 +476,27 @@ const y = {
|
|
|
476
476
|
// AM, PM, midnight, noon
|
|
477
477
|
b: function(e, t, r) {
|
|
478
478
|
const n = e.getHours();
|
|
479
|
-
let
|
|
480
|
-
switch (n === 12 ?
|
|
479
|
+
let o;
|
|
480
|
+
switch (n === 12 ? o = T.noon : n === 0 ? o = T.midnight : o = n / 12 >= 1 ? "pm" : "am", t) {
|
|
481
481
|
case "b":
|
|
482
482
|
case "bb":
|
|
483
|
-
return r.dayPeriod(
|
|
483
|
+
return r.dayPeriod(o, {
|
|
484
484
|
width: "abbreviated",
|
|
485
485
|
context: "formatting"
|
|
486
486
|
});
|
|
487
487
|
case "bbb":
|
|
488
|
-
return r.dayPeriod(
|
|
488
|
+
return r.dayPeriod(o, {
|
|
489
489
|
width: "abbreviated",
|
|
490
490
|
context: "formatting"
|
|
491
491
|
}).toLowerCase();
|
|
492
492
|
case "bbbbb":
|
|
493
|
-
return r.dayPeriod(
|
|
493
|
+
return r.dayPeriod(o, {
|
|
494
494
|
width: "narrow",
|
|
495
495
|
context: "formatting"
|
|
496
496
|
});
|
|
497
497
|
case "bbbb":
|
|
498
498
|
default:
|
|
499
|
-
return r.dayPeriod(
|
|
499
|
+
return r.dayPeriod(o, {
|
|
500
500
|
width: "wide",
|
|
501
501
|
context: "formatting"
|
|
502
502
|
});
|
|
@@ -505,23 +505,23 @@ const y = {
|
|
|
505
505
|
// in the morning, in the afternoon, in the evening, at night
|
|
506
506
|
B: function(e, t, r) {
|
|
507
507
|
const n = e.getHours();
|
|
508
|
-
let
|
|
509
|
-
switch (n >= 17 ?
|
|
508
|
+
let o;
|
|
509
|
+
switch (n >= 17 ? o = T.evening : n >= 12 ? o = T.afternoon : n >= 4 ? o = T.morning : o = T.night, t) {
|
|
510
510
|
case "B":
|
|
511
511
|
case "BB":
|
|
512
512
|
case "BBB":
|
|
513
|
-
return r.dayPeriod(
|
|
513
|
+
return r.dayPeriod(o, {
|
|
514
514
|
width: "abbreviated",
|
|
515
515
|
context: "formatting"
|
|
516
516
|
});
|
|
517
517
|
case "BBBBB":
|
|
518
|
-
return r.dayPeriod(
|
|
518
|
+
return r.dayPeriod(o, {
|
|
519
519
|
width: "narrow",
|
|
520
520
|
context: "formatting"
|
|
521
521
|
});
|
|
522
522
|
case "BBBB":
|
|
523
523
|
default:
|
|
524
|
-
return r.dayPeriod(
|
|
524
|
+
return r.dayPeriod(o, {
|
|
525
525
|
width: "wide",
|
|
526
526
|
context: "formatting"
|
|
527
527
|
});
|
|
@@ -569,7 +569,7 @@ const y = {
|
|
|
569
569
|
switch (t) {
|
|
570
570
|
// Hours and optional minutes
|
|
571
571
|
case "X":
|
|
572
|
-
return
|
|
572
|
+
return I(n);
|
|
573
573
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
574
574
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
575
575
|
// so this token always has the same output as `XX`
|
|
@@ -592,7 +592,7 @@ const y = {
|
|
|
592
592
|
switch (t) {
|
|
593
593
|
// Hours and optional minutes
|
|
594
594
|
case "x":
|
|
595
|
-
return
|
|
595
|
+
return I(n);
|
|
596
596
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
597
597
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
598
598
|
// so this token always has the same output as `xx`
|
|
@@ -650,15 +650,15 @@ const y = {
|
|
|
650
650
|
}
|
|
651
651
|
};
|
|
652
652
|
function N(e, t = "") {
|
|
653
|
-
const r = e > 0 ? "-" : "+", n = Math.abs(e),
|
|
654
|
-
return
|
|
653
|
+
const r = e > 0 ? "-" : "+", n = Math.abs(e), o = Math.trunc(n / 60), i = n % 60;
|
|
654
|
+
return i === 0 ? r + String(o) : r + String(o) + t + s(i, 2);
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function I(e, t) {
|
|
657
657
|
return e % 60 === 0 ? (e > 0 ? "-" : "+") + s(Math.abs(e) / 60, 2) : R(e, t);
|
|
658
658
|
}
|
|
659
659
|
function R(e, t = "") {
|
|
660
|
-
const r = e > 0 ? "-" : "+", n = Math.abs(e),
|
|
661
|
-
return r +
|
|
660
|
+
const r = e > 0 ? "-" : "+", n = Math.abs(e), o = s(Math.trunc(n / 60), 2), i = s(n % 60, 2);
|
|
661
|
+
return r + o + t + i;
|
|
662
662
|
}
|
|
663
663
|
function ue(e) {
|
|
664
664
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
@@ -668,14 +668,14 @@ function fe(e) {
|
|
|
668
668
|
}
|
|
669
669
|
const de = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, le = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, me = /^'([^]*?)'?$/, ge = /''/g, pe = /[a-zA-Z]/;
|
|
670
670
|
function M(e, t, r) {
|
|
671
|
-
const n =
|
|
671
|
+
const n = Z(), o = r?.locale ?? n.locale ?? K, i = r?.firstWeekContainsDate ?? r?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, a = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, u = x(e, r?.in);
|
|
672
672
|
if (!fe(u))
|
|
673
673
|
throw new RangeError("Invalid time value");
|
|
674
674
|
let c = t.match(le).map((d) => {
|
|
675
675
|
const l = d[0];
|
|
676
676
|
if (l === "p" || l === "P") {
|
|
677
677
|
const A = ee[l];
|
|
678
|
-
return A(d,
|
|
678
|
+
return A(d, o.formatLong);
|
|
679
679
|
}
|
|
680
680
|
return d;
|
|
681
681
|
}).join("").match(de).map((d) => {
|
|
@@ -684,7 +684,7 @@ function M(e, t, r) {
|
|
|
684
684
|
const l = d[0];
|
|
685
685
|
if (l === "'")
|
|
686
686
|
return { isToken: !1, value: ye(d) };
|
|
687
|
-
if (
|
|
687
|
+
if (L[l])
|
|
688
688
|
return { isToken: !0, value: d };
|
|
689
689
|
if (l.match(pe))
|
|
690
690
|
throw new RangeError(
|
|
@@ -692,18 +692,18 @@ function M(e, t, r) {
|
|
|
692
692
|
);
|
|
693
693
|
return { isToken: !1, value: d };
|
|
694
694
|
});
|
|
695
|
-
|
|
695
|
+
o.localize.preprocessor && (c = o.localize.preprocessor(u, c));
|
|
696
696
|
const f = {
|
|
697
|
-
firstWeekContainsDate:
|
|
697
|
+
firstWeekContainsDate: i,
|
|
698
698
|
weekStartsOn: a,
|
|
699
|
-
locale:
|
|
699
|
+
locale: o
|
|
700
700
|
};
|
|
701
701
|
return c.map((d) => {
|
|
702
702
|
if (!d.isToken) return d.value;
|
|
703
703
|
const l = d.value;
|
|
704
704
|
(!r?.useAdditionalWeekYearTokens && te(l) || !r?.useAdditionalDayOfYearTokens && ne(l)) && re(l, t, String(e));
|
|
705
|
-
const A =
|
|
706
|
-
return A(u, l,
|
|
705
|
+
const A = L[l[0]];
|
|
706
|
+
return A(u, l, o.localize, f);
|
|
707
707
|
}).join("");
|
|
708
708
|
}
|
|
709
709
|
function ye(e) {
|
|
@@ -711,19 +711,19 @@ function ye(e) {
|
|
|
711
711
|
return t ? t[1].replace(ge, "'") : e;
|
|
712
712
|
}
|
|
713
713
|
function S(e, t) {
|
|
714
|
-
const r = () =>
|
|
715
|
-
let
|
|
716
|
-
if (
|
|
717
|
-
const f = De(
|
|
718
|
-
|
|
714
|
+
const r = () => B(t?.in, NaN), o = Te(e);
|
|
715
|
+
let i;
|
|
716
|
+
if (o.date) {
|
|
717
|
+
const f = De(o.date, 2);
|
|
718
|
+
i = we(f.restDateString, f.year);
|
|
719
719
|
}
|
|
720
|
-
if (!
|
|
721
|
-
const a = +
|
|
720
|
+
if (!i || isNaN(+i)) return r();
|
|
721
|
+
const a = +i;
|
|
722
722
|
let u = 0, c;
|
|
723
|
-
if (
|
|
723
|
+
if (o.time && (u = ve(o.time), isNaN(u)))
|
|
724
724
|
return r();
|
|
725
|
-
if (
|
|
726
|
-
if (c =
|
|
725
|
+
if (o.timezone) {
|
|
726
|
+
if (c = be(o.timezone), isNaN(c)) return r();
|
|
727
727
|
} else {
|
|
728
728
|
const f = new Date(a + u), d = x(0, t?.in);
|
|
729
729
|
return d.setFullYear(
|
|
@@ -739,22 +739,22 @@ function S(e, t) {
|
|
|
739
739
|
}
|
|
740
740
|
return x(a + u + c, t?.in);
|
|
741
741
|
}
|
|
742
|
-
const
|
|
742
|
+
const w = {
|
|
743
743
|
dateTimeDelimiter: /[T ]/,
|
|
744
744
|
timeZoneDelimiter: /[Z ]/i,
|
|
745
745
|
timezone: /([Z+-].*)$/
|
|
746
746
|
}, he = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, Re = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, xe = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
747
|
-
function
|
|
748
|
-
const t = {}, r = e.split(
|
|
747
|
+
function Te(e) {
|
|
748
|
+
const t = {}, r = e.split(w.dateTimeDelimiter);
|
|
749
749
|
let n;
|
|
750
750
|
if (r.length > 2)
|
|
751
751
|
return t;
|
|
752
|
-
if (/:/.test(r[0]) ? n = r[0] : (t.date = r[0], n = r[1],
|
|
752
|
+
if (/:/.test(r[0]) ? n = r[0] : (t.date = r[0], n = r[1], w.timeZoneDelimiter.test(t.date) && (t.date = e.split(w.timeZoneDelimiter)[0], n = e.substr(
|
|
753
753
|
t.date.length,
|
|
754
754
|
e.length
|
|
755
755
|
))), n) {
|
|
756
|
-
const
|
|
757
|
-
|
|
756
|
+
const o = w.timezone.exec(n);
|
|
757
|
+
o ? (t.time = n.replace(o[1], ""), t.timezone = o[1]) : t.time = n;
|
|
758
758
|
}
|
|
759
759
|
return t;
|
|
760
760
|
}
|
|
@@ -763,22 +763,22 @@ function De(e, t) {
|
|
|
763
763
|
"^(?:(\\d{4}|[+-]\\d{" + (4 + t) + "})|(\\d{2}|[+-]\\d{" + (2 + t) + "})$)"
|
|
764
764
|
), n = e.match(r);
|
|
765
765
|
if (!n) return { year: NaN, restDateString: "" };
|
|
766
|
-
const
|
|
766
|
+
const o = n[1] ? parseInt(n[1]) : null, i = n[2] ? parseInt(n[2]) : null;
|
|
767
767
|
return {
|
|
768
|
-
year:
|
|
768
|
+
year: i === null ? o : i * 100,
|
|
769
769
|
restDateString: e.slice((n[1] || n[2]).length)
|
|
770
770
|
};
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function we(e, t) {
|
|
773
773
|
if (t === null) return /* @__PURE__ */ new Date(NaN);
|
|
774
774
|
const r = e.match(he);
|
|
775
775
|
if (!r) return /* @__PURE__ */ new Date(NaN);
|
|
776
|
-
const n = !!r[4],
|
|
776
|
+
const n = !!r[4], o = D(r[1]), i = D(r[2]) - 1, a = D(r[3]), u = D(r[4]), c = D(r[5]) - 1;
|
|
777
777
|
if (n)
|
|
778
|
-
return
|
|
778
|
+
return Ce(t, u, c) ? Se(t, u, c) : /* @__PURE__ */ new Date(NaN);
|
|
779
779
|
{
|
|
780
780
|
const f = /* @__PURE__ */ new Date(0);
|
|
781
|
-
return !Ee(t,
|
|
781
|
+
return !Ee(t, i, a) || !Oe(t, o) ? /* @__PURE__ */ new Date(NaN) : (f.setUTCFullYear(t, i, Math.max(o, a)), f);
|
|
782
782
|
}
|
|
783
783
|
}
|
|
784
784
|
function D(e) {
|
|
@@ -787,50 +787,50 @@ function D(e) {
|
|
|
787
787
|
function ve(e) {
|
|
788
788
|
const t = e.match(Re);
|
|
789
789
|
if (!t) return NaN;
|
|
790
|
-
const r = E(t[1]), n = E(t[2]),
|
|
791
|
-
return Me(r, n,
|
|
790
|
+
const r = E(t[1]), n = E(t[2]), o = E(t[3]);
|
|
791
|
+
return Me(r, n, o) ? r * U + n * k + o * 1e3 : NaN;
|
|
792
792
|
}
|
|
793
793
|
function E(e) {
|
|
794
794
|
return e && parseFloat(e.replace(",", ".")) || 0;
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function be(e) {
|
|
797
797
|
if (e === "Z") return 0;
|
|
798
798
|
const t = e.match(xe);
|
|
799
799
|
if (!t) return 0;
|
|
800
|
-
const r = t[1] === "+" ? -1 : 1, n = parseInt(t[2]),
|
|
801
|
-
return
|
|
800
|
+
const r = t[1] === "+" ? -1 : 1, n = parseInt(t[2]), o = t[3] && parseInt(t[3]) || 0;
|
|
801
|
+
return _e(n, o) ? r * (n * U + o * k) : NaN;
|
|
802
802
|
}
|
|
803
803
|
function Se(e, t, r) {
|
|
804
804
|
const n = /* @__PURE__ */ new Date(0);
|
|
805
805
|
n.setUTCFullYear(e, 0, 4);
|
|
806
|
-
const
|
|
807
|
-
return n.setUTCDate(n.getUTCDate() +
|
|
806
|
+
const o = n.getUTCDay() || 7, i = (t - 1) * 7 + r + 1 - o;
|
|
807
|
+
return n.setUTCDate(n.getUTCDate() + i), n;
|
|
808
808
|
}
|
|
809
809
|
const Ae = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
810
|
-
function
|
|
810
|
+
function q(e) {
|
|
811
811
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
812
812
|
}
|
|
813
813
|
function Ee(e, t, r) {
|
|
814
|
-
return t >= 0 && t <= 11 && r >= 1 && r <= (Ae[t] || (
|
|
814
|
+
return t >= 0 && t <= 11 && r >= 1 && r <= (Ae[t] || (q(e) ? 29 : 28));
|
|
815
815
|
}
|
|
816
816
|
function Oe(e, t) {
|
|
817
|
-
return t >= 1 && t <= (
|
|
817
|
+
return t >= 1 && t <= (q(e) ? 366 : 365);
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function Ce(e, t, r) {
|
|
820
820
|
return t >= 1 && t <= 53 && r >= 0 && r <= 6;
|
|
821
821
|
}
|
|
822
822
|
function Me(e, t, r) {
|
|
823
823
|
return e === 24 ? t === 0 && r === 0 : r >= 0 && r < 60 && t >= 0 && t < 60 && e >= 0 && e < 25;
|
|
824
824
|
}
|
|
825
|
-
function
|
|
825
|
+
function _e(e, t) {
|
|
826
826
|
return t >= 0 && t <= 59;
|
|
827
827
|
}
|
|
828
|
-
const
|
|
828
|
+
const Pe = Date.prototype.toJSON, Le = function() {
|
|
829
829
|
try {
|
|
830
|
-
const e = this.getHours(), t = this.getMinutes(), r = this.getSeconds(), n = this.getMilliseconds(),
|
|
831
|
-
if (
|
|
830
|
+
const e = this.getHours(), t = this.getMinutes(), r = this.getSeconds(), n = this.getMilliseconds(), o = -(this.getTimezoneOffset() / 60);
|
|
831
|
+
if (o === 0.15 && e === 0 && t === 9 && r === 21 || e - o === 0 && t === 0 && r === 0 && n === 0)
|
|
832
832
|
return this.toISOString().split("T")[0];
|
|
833
|
-
const
|
|
833
|
+
const i = new Date(
|
|
834
834
|
this.getFullYear(),
|
|
835
835
|
this.getMonth(),
|
|
836
836
|
this.getDate(),
|
|
@@ -839,15 +839,15 @@ const Le = Date.prototype.toJSON, Ie = function() {
|
|
|
839
839
|
r,
|
|
840
840
|
n
|
|
841
841
|
);
|
|
842
|
-
|
|
843
|
-
const a =
|
|
844
|
-
return a + u + c + Math.abs(
|
|
842
|
+
i.setHours(this.getHours() + o);
|
|
843
|
+
const a = i.toISOString().replace(/(\.0+)?Z$/, ""), u = o >= 0 ? "+" : "-", c = Math.abs(o) < 10 ? "0" : "";
|
|
844
|
+
return a + u + c + Math.abs(o).toString().split(".")[0] + ":00";
|
|
845
845
|
} catch {
|
|
846
|
-
Date.prototype.toJSON =
|
|
846
|
+
Date.prototype.toJSON = Pe;
|
|
847
847
|
const t = this.toJSON();
|
|
848
|
-
return Date.prototype.toJSON =
|
|
848
|
+
return Date.prototype.toJSON = Le, t;
|
|
849
849
|
}
|
|
850
|
-
},
|
|
850
|
+
}, Ve = new Intl.DateTimeFormat("fr-FR", {
|
|
851
851
|
day: "numeric",
|
|
852
852
|
month: "long",
|
|
853
853
|
weekday: "long",
|
|
@@ -855,45 +855,45 @@ const Le = Date.prototype.toJSON, Ie = function() {
|
|
|
855
855
|
}), Ne = new Intl.DateTimeFormat("fr-FR", {
|
|
856
856
|
day: "numeric",
|
|
857
857
|
month: "short"
|
|
858
|
-
}),
|
|
858
|
+
}), Ie = new Intl.DateTimeFormat("fr-FR", {
|
|
859
859
|
hour: "numeric",
|
|
860
860
|
minute: "2-digit"
|
|
861
861
|
});
|
|
862
|
-
function
|
|
862
|
+
function ze(e, t) {
|
|
863
863
|
return e instanceof Date ? e : typeof e == "string" ? S(e) : t;
|
|
864
864
|
}
|
|
865
|
-
function
|
|
866
|
-
return
|
|
865
|
+
function Je(e) {
|
|
866
|
+
return oe(e, "yyyy-MM-ddXXX", /* @__PURE__ */ new Date());
|
|
867
867
|
}
|
|
868
868
|
function Ze(e) {
|
|
869
869
|
const t = S(e);
|
|
870
|
-
return e = M(t, "EEEE d LLLL yyyy H'h'mm", { locale:
|
|
870
|
+
return e = M(t, "EEEE d LLLL yyyy H'h'mm", { locale: C }), e.endsWith(" 0h00") && (e = e.substring(0, e.length - 5)), e;
|
|
871
871
|
}
|
|
872
|
-
function
|
|
873
|
-
return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate() ?
|
|
872
|
+
function Ke(e, t) {
|
|
873
|
+
return e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate() ? Ie.format(e) : Ne.format(e);
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function et(e) {
|
|
876
876
|
const t = e instanceof Date ? e : S(e);
|
|
877
|
-
let r = M(t, "d LLLL yyyy H'h'mm", { locale:
|
|
877
|
+
let r = M(t, "d LLLL yyyy H'h'mm", { locale: C });
|
|
878
878
|
return r.endsWith(" 0h00") && (r = r.substring(0, r.length - 5)), r;
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function tt(e) {
|
|
881
881
|
const t = e instanceof Date ? e : S(e);
|
|
882
|
-
return M(t, "H'h'mm", { locale:
|
|
882
|
+
return M(t, "H'h'mm", { locale: C });
|
|
883
883
|
}
|
|
884
|
-
function
|
|
884
|
+
function nt(e) {
|
|
885
885
|
return new Date(e.getTime() - e.getTimezoneOffset() * 6e4).toISOString().split("T")[0];
|
|
886
886
|
}
|
|
887
|
-
function
|
|
887
|
+
function rt(e) {
|
|
888
888
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
889
889
|
}
|
|
890
890
|
function g(e) {
|
|
891
891
|
return e.charAt(0).toLowerCase() + e.slice(1);
|
|
892
892
|
}
|
|
893
|
-
var
|
|
894
|
-
function
|
|
893
|
+
var Be = /* @__PURE__ */ ((e) => (e.Failure = "FAILURE", e.Success = "SUCCESS", e))(Be || {}), Ue = /* @__PURE__ */ ((e) => (e.Failure = "FAILURE", e.InProgress = "IN_PROGRESS", e.Success = "SUCCESS", e))(Ue || {});
|
|
894
|
+
function ot(e) {
|
|
895
895
|
if (e.actesLegislatifs !== void 0) {
|
|
896
|
-
for (const t of
|
|
896
|
+
for (const t of $(e.actesLegislatifs))
|
|
897
897
|
if (t.codeActe.match(/^AN.*-COM-FOND-SAISIE$/) !== null && t.organeRef !== void 0 && t.organeRef !== "PO211494")
|
|
898
898
|
return t.organeRef;
|
|
899
899
|
}
|
|
@@ -931,7 +931,7 @@ function p(e) {
|
|
|
931
931
|
return "IN_PROGRESS";
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
|
-
function
|
|
934
|
+
function ke(e, t) {
|
|
935
935
|
const r = t[t.length - 1];
|
|
936
936
|
let n = null;
|
|
937
937
|
switch (r.xsiType) {
|
|
@@ -947,20 +947,20 @@ function Ue(e, t) {
|
|
|
947
947
|
};
|
|
948
948
|
case "Decision_Type": {
|
|
949
949
|
n = r.statutConclusion.libelle;
|
|
950
|
-
let
|
|
950
|
+
let o = p(n), i;
|
|
951
951
|
switch (e.procedureParlementaire.code) {
|
|
952
952
|
case "PROCEDURE_PARLEMENTAIRE_2":
|
|
953
|
-
["rejeté", "rejetée"].includes(n) && e.actesLegislatifs !== void 0 && e.actesLegislatifs.length === 1 && (
|
|
953
|
+
["rejeté", "rejetée"].includes(n) && e.actesLegislatifs !== void 0 && e.actesLegislatifs.length === 1 && (i = "FAILURE");
|
|
954
954
|
break;
|
|
955
955
|
case "PROCEDURE_PARLEMENTAIRE_8":
|
|
956
956
|
// Résolution
|
|
957
957
|
case "PROCEDURE_PARLEMENTAIRE_22":
|
|
958
|
-
|
|
958
|
+
o === "SUCCESS" ? i = "SUCCESS" : o === "FAILURE" && (i = "FAILURE");
|
|
959
959
|
break;
|
|
960
960
|
}
|
|
961
961
|
return {
|
|
962
|
-
currentStatus:
|
|
963
|
-
finalStatus:
|
|
962
|
+
currentStatus: o,
|
|
963
|
+
finalStatus: i,
|
|
964
964
|
label: g(n)
|
|
965
965
|
};
|
|
966
966
|
}
|
|
@@ -1026,32 +1026,32 @@ function Ue(e, t) {
|
|
|
1026
1026
|
return null;
|
|
1027
1027
|
}
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function j(e, t, r) {
|
|
1030
1030
|
if (r !== void 0)
|
|
1031
1031
|
for (const n of [...r].reverse()) {
|
|
1032
|
-
const
|
|
1033
|
-
if (
|
|
1034
|
-
return
|
|
1032
|
+
const o = n.actesLegislatifs ? j(e, [...t, n], n.actesLegislatifs) : ke(e, [...t, n]);
|
|
1033
|
+
if (o !== null)
|
|
1034
|
+
return o;
|
|
1035
1035
|
}
|
|
1036
1036
|
return null;
|
|
1037
1037
|
}
|
|
1038
1038
|
function it(e) {
|
|
1039
|
-
const t =
|
|
1039
|
+
const t = j(e, [], e.actesLegislatifs);
|
|
1040
1040
|
return t !== null ? t : {
|
|
1041
1041
|
currentStatus: "IN_PROGRESS",
|
|
1042
1042
|
label: "en cours"
|
|
1043
1043
|
};
|
|
1044
1044
|
}
|
|
1045
|
-
function*
|
|
1045
|
+
function* $(e) {
|
|
1046
1046
|
for (const t of e)
|
|
1047
|
-
yield t, t.actesLegislatifs !== void 0 && (yield*
|
|
1047
|
+
yield t, t.actesLegislatifs !== void 0 && (yield* $(t.actesLegislatifs));
|
|
1048
1048
|
}
|
|
1049
|
-
function*
|
|
1049
|
+
function* Ye(e) {
|
|
1050
1050
|
yield e;
|
|
1051
1051
|
for (const t of e.divisions ?? [])
|
|
1052
|
-
yield*
|
|
1052
|
+
yield* Ye(t);
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1054
|
+
function W(e, t, r) {
|
|
1055
1055
|
if (!r.has(e.uid)) {
|
|
1056
1056
|
if (r.add(e.uid), t.documentByUid !== void 0 && e.depotInitialLectureDefinitiveRef !== void 0) {
|
|
1057
1057
|
const n = t.documentByUid[e.depotInitialLectureDefinitiveRef];
|
|
@@ -1067,17 +1067,17 @@ function j(e, t, r) {
|
|
|
1067
1067
|
}
|
|
1068
1068
|
if (t.acteurByUid !== void 0 && e.rapporteurs !== void 0)
|
|
1069
1069
|
for (const n of e.rapporteurs) {
|
|
1070
|
-
const
|
|
1071
|
-
|
|
1070
|
+
const o = t.acteurByUid[n.acteurRef];
|
|
1071
|
+
o !== void 0 && (n.acteur = o, h(o, t, r));
|
|
1072
1072
|
}
|
|
1073
1073
|
if (t.reunionByUid !== void 0 && e.reunionRef !== void 0) {
|
|
1074
1074
|
const n = t.reunionByUid[e.reunionRef];
|
|
1075
|
-
if (n !== void 0 && (e.reunion = n,
|
|
1076
|
-
const
|
|
1077
|
-
if (
|
|
1078
|
-
for (const
|
|
1079
|
-
if (
|
|
1080
|
-
e.odj =
|
|
1075
|
+
if (n !== void 0 && (e.reunion = n, Fe(n, t, r), e.odjRef !== void 0)) {
|
|
1076
|
+
const o = n.odj;
|
|
1077
|
+
if (o !== void 0 && o.pointsOdj !== void 0) {
|
|
1078
|
+
for (const i of o.pointsOdj)
|
|
1079
|
+
if (i.uid === e.odjRef) {
|
|
1080
|
+
e.odj = i;
|
|
1081
1081
|
break;
|
|
1082
1082
|
}
|
|
1083
1083
|
}
|
|
@@ -1093,53 +1093,53 @@ function j(e, t, r) {
|
|
|
1093
1093
|
}
|
|
1094
1094
|
if (t.documentByUid !== void 0 && e.textesAssocies !== void 0)
|
|
1095
1095
|
for (const n of e.textesAssocies) {
|
|
1096
|
-
const
|
|
1097
|
-
|
|
1096
|
+
const o = t.documentByUid[n.texteAssocieRef];
|
|
1097
|
+
o !== void 0 && (n.texteAssocie = o, v(o, t, r));
|
|
1098
1098
|
}
|
|
1099
1099
|
if (t.scrutinByUid !== void 0 && e.voteRefs !== void 0) {
|
|
1100
1100
|
const n = [];
|
|
1101
|
-
for (const
|
|
1102
|
-
const
|
|
1103
|
-
|
|
1101
|
+
for (const o of e.voteRefs) {
|
|
1102
|
+
const i = t.scrutinByUid[o];
|
|
1103
|
+
i !== void 0 && (n.push(i), qe(i, t, r));
|
|
1104
1104
|
}
|
|
1105
1105
|
e.votes = n;
|
|
1106
1106
|
}
|
|
1107
1107
|
for (const n of e.actesLegislatifs || [])
|
|
1108
|
-
|
|
1108
|
+
W(n, t, r);
|
|
1109
1109
|
}
|
|
1110
1110
|
return e;
|
|
1111
1111
|
}
|
|
1112
1112
|
function h(e, t, r) {
|
|
1113
1113
|
if (!r.has(e.uid) && (r.add(e.uid), t.organeByUid !== void 0))
|
|
1114
1114
|
for (const n of e.mandats || []) {
|
|
1115
|
-
const
|
|
1116
|
-
for (const
|
|
1117
|
-
const a = t.organeByUid[
|
|
1118
|
-
a !== void 0 && (
|
|
1115
|
+
const o = [];
|
|
1116
|
+
for (const i of n.organesRefs) {
|
|
1117
|
+
const a = t.organeByUid[i];
|
|
1118
|
+
a !== void 0 && (o.push(a), m(a, t, r));
|
|
1119
1119
|
}
|
|
1120
|
-
n.organes =
|
|
1120
|
+
n.organes = o;
|
|
1121
1121
|
}
|
|
1122
1122
|
return e;
|
|
1123
1123
|
}
|
|
1124
|
-
function
|
|
1124
|
+
function at(e, t, r) {
|
|
1125
1125
|
if (!r.has(e.uid)) {
|
|
1126
1126
|
r.add(e.uid);
|
|
1127
|
-
const n = e.signataires,
|
|
1128
|
-
if (t.acteurByUid !== void 0 &&
|
|
1129
|
-
const
|
|
1130
|
-
|
|
1127
|
+
const n = e.signataires, o = n.auteur;
|
|
1128
|
+
if (t.acteurByUid !== void 0 && o.acteurRef !== void 0) {
|
|
1129
|
+
const i = t.acteurByUid[o.acteurRef];
|
|
1130
|
+
i !== void 0 && (o.acteur = i, h(i, t, r));
|
|
1131
1131
|
}
|
|
1132
|
-
if (t.organeByUid !== void 0 &&
|
|
1133
|
-
const
|
|
1134
|
-
|
|
1132
|
+
if (t.organeByUid !== void 0 && o.auteurRapporteurOrganeRef !== void 0) {
|
|
1133
|
+
const i = t.organeByUid[o.auteurRapporteurOrganeRef];
|
|
1134
|
+
i !== void 0 && (o.auteurRapporteurOrgane = i, m(i, t, r));
|
|
1135
1135
|
}
|
|
1136
|
-
if (t.organeByUid !== void 0 &&
|
|
1137
|
-
const
|
|
1138
|
-
|
|
1136
|
+
if (t.organeByUid !== void 0 && o.gouvernementRef !== void 0) {
|
|
1137
|
+
const i = t.organeByUid[o.gouvernementRef];
|
|
1138
|
+
i !== void 0 && (o.gouvernement = i, m(i, t, r));
|
|
1139
1139
|
}
|
|
1140
|
-
if (t.organeByUid !== void 0 &&
|
|
1141
|
-
const
|
|
1142
|
-
|
|
1140
|
+
if (t.organeByUid !== void 0 && o.groupePolitiqueRef !== void 0) {
|
|
1141
|
+
const i = t.organeByUid[o.groupePolitiqueRef];
|
|
1142
|
+
i !== void 0 && (o.groupePolitique = i, m(i, t, r));
|
|
1143
1143
|
}
|
|
1144
1144
|
if (t.acteurByUid !== void 0 && n.cosignatairesRefs !== void 0) {
|
|
1145
1145
|
const a = [];
|
|
@@ -1154,14 +1154,14 @@ function ot(e, t, r) {
|
|
|
1154
1154
|
}
|
|
1155
1155
|
function H(e, t, r) {
|
|
1156
1156
|
for (const n of e.auteurs) {
|
|
1157
|
-
const
|
|
1158
|
-
if (t.acteurByUid !== void 0 &&
|
|
1159
|
-
const
|
|
1160
|
-
|
|
1157
|
+
const o = n.acteur;
|
|
1158
|
+
if (t.acteurByUid !== void 0 && o !== void 0) {
|
|
1159
|
+
const i = t.acteurByUid[o.acteurRef];
|
|
1160
|
+
i !== void 0 && (o.acteur = i, h(i, t, r));
|
|
1161
1161
|
}
|
|
1162
1162
|
if (t.organeByUid !== void 0 && n.organeRef !== void 0) {
|
|
1163
|
-
const
|
|
1164
|
-
|
|
1163
|
+
const i = t.organeByUid[n.organeRef];
|
|
1164
|
+
i !== void 0 && (n.organe = i, m(i, t, r));
|
|
1165
1165
|
}
|
|
1166
1166
|
}
|
|
1167
1167
|
if (t.dossierByUid !== void 0) {
|
|
@@ -1176,14 +1176,14 @@ function v(e, t, r) {
|
|
|
1176
1176
|
if (!r.has(e.uid)) {
|
|
1177
1177
|
r.add(e.uid);
|
|
1178
1178
|
for (const n of e.auteurs) {
|
|
1179
|
-
const
|
|
1180
|
-
if (t.acteurByUid !== void 0 &&
|
|
1181
|
-
const
|
|
1182
|
-
|
|
1179
|
+
const o = n.acteur;
|
|
1180
|
+
if (t.acteurByUid !== void 0 && o !== void 0) {
|
|
1181
|
+
const i = t.acteurByUid[o.acteurRef];
|
|
1182
|
+
i !== void 0 && (o.acteur = i, h(i, t, r));
|
|
1183
1183
|
}
|
|
1184
1184
|
if (t.organeByUid !== void 0 && n.organeRef !== void 0) {
|
|
1185
|
-
const
|
|
1186
|
-
|
|
1185
|
+
const i = t.organeByUid[n.organeRef];
|
|
1186
|
+
i !== void 0 && (n.organe = i, m(i, t, r));
|
|
1187
1187
|
}
|
|
1188
1188
|
}
|
|
1189
1189
|
if (t.dossierByUid !== void 0) {
|
|
@@ -1198,24 +1198,24 @@ function v(e, t, r) {
|
|
|
1198
1198
|
function G(e, t, r) {
|
|
1199
1199
|
if (!r.has(e.uid)) {
|
|
1200
1200
|
r.add(e.uid);
|
|
1201
|
-
for (const
|
|
1202
|
-
|
|
1201
|
+
for (const o of e.actesLegislatifs ?? [])
|
|
1202
|
+
W(o, t, r);
|
|
1203
1203
|
const n = e.initiateur;
|
|
1204
1204
|
if (n !== void 0) {
|
|
1205
1205
|
if (t.acteurByUid !== void 0)
|
|
1206
|
-
for (const
|
|
1207
|
-
const
|
|
1208
|
-
if (
|
|
1209
|
-
for (const a of
|
|
1210
|
-
if (a.uid ===
|
|
1211
|
-
|
|
1206
|
+
for (const o of n.acteurs || []) {
|
|
1207
|
+
const i = t.acteurByUid[o.acteurRef];
|
|
1208
|
+
if (i !== void 0 && (o.acteur = i, h(i, t, r)), i !== void 0 && o.mandatRef !== void 0) {
|
|
1209
|
+
for (const a of i.mandats || [])
|
|
1210
|
+
if (a.uid === o.mandatRef) {
|
|
1211
|
+
o.mandat = a;
|
|
1212
1212
|
break;
|
|
1213
1213
|
}
|
|
1214
1214
|
}
|
|
1215
1215
|
}
|
|
1216
1216
|
if (t.organeByUid !== void 0 && n.organeRef !== void 0) {
|
|
1217
|
-
const
|
|
1218
|
-
|
|
1217
|
+
const o = t.organeByUid[n.organeRef];
|
|
1218
|
+
o !== void 0 && (n.organe = o, m(o, t, r));
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
@@ -1234,34 +1234,34 @@ function m(e, t, r) {
|
|
|
1234
1234
|
}
|
|
1235
1235
|
return e;
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function Fe(e, t, r) {
|
|
1238
1238
|
if (!r.has(e.uid)) {
|
|
1239
1239
|
r.add(e.uid);
|
|
1240
1240
|
const n = e.demandeurs;
|
|
1241
1241
|
if (n !== void 0) {
|
|
1242
1242
|
if (t.acteurByUid !== void 0)
|
|
1243
|
-
for (const
|
|
1244
|
-
const
|
|
1245
|
-
|
|
1243
|
+
for (const o of n.acteurs || []) {
|
|
1244
|
+
const i = t.acteurByUid[o.acteurRef];
|
|
1245
|
+
i !== void 0 && (o.acteur = i, h(i, t, r));
|
|
1246
1246
|
}
|
|
1247
1247
|
if (t.organeByUid !== void 0) {
|
|
1248
|
-
const
|
|
1249
|
-
if (
|
|
1250
|
-
const
|
|
1251
|
-
|
|
1248
|
+
const o = n.organe;
|
|
1249
|
+
if (o !== void 0) {
|
|
1250
|
+
const i = t.organeByUid[o.organeRef];
|
|
1251
|
+
i !== void 0 && (o.organe = i, m(i, t, r));
|
|
1252
1252
|
}
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
1255
1255
|
if (t.organeByUid !== void 0 && e.organeReuniRef !== void 0) {
|
|
1256
|
-
const
|
|
1257
|
-
|
|
1256
|
+
const o = t.organeByUid[e.organeReuniRef];
|
|
1257
|
+
o !== void 0 && (e.organeReuni = o, m(o, t, r));
|
|
1258
1258
|
}
|
|
1259
1259
|
if (t.acteurByUid !== void 0) {
|
|
1260
|
-
const
|
|
1261
|
-
if (
|
|
1262
|
-
for (const
|
|
1263
|
-
const a = t.acteurByUid[
|
|
1264
|
-
a !== void 0 && (
|
|
1260
|
+
const o = e.participants;
|
|
1261
|
+
if (o !== void 0)
|
|
1262
|
+
for (const i of o.participantsInternes || []) {
|
|
1263
|
+
const a = t.acteurByUid[i.acteurRef];
|
|
1264
|
+
a !== void 0 && (i.acteur = a, h(a, t, r));
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
1267
|
}
|
|
@@ -1270,7 +1270,7 @@ function Ye(e, t, r) {
|
|
|
1270
1270
|
function qe(e, t, r) {
|
|
1271
1271
|
return r.has(e.uid) || r.add(e.uid), e;
|
|
1272
1272
|
}
|
|
1273
|
-
function
|
|
1273
|
+
function st(e) {
|
|
1274
1274
|
if (e == null)
|
|
1275
1275
|
return "Organe inconnu";
|
|
1276
1276
|
switch (e.codeType) {
|
|
@@ -1282,7 +1282,7 @@ function at(e) {
|
|
|
1282
1282
|
return e.libelleAbrege;
|
|
1283
1283
|
}
|
|
1284
1284
|
}
|
|
1285
|
-
var
|
|
1285
|
+
var je = /* @__PURE__ */ ((e) => (e.Html = "html", e.Pdf = "pdf", e.RawHtml = "raw-html", e))(je || {});
|
|
1286
1286
|
const $e = {
|
|
1287
1287
|
ACIN: {
|
|
1288
1288
|
directory: "projets",
|
|
@@ -1405,7 +1405,7 @@ function We(e) {
|
|
|
1405
1405
|
return ".asp";
|
|
1406
1406
|
}
|
|
1407
1407
|
}
|
|
1408
|
-
function*
|
|
1408
|
+
function* ct(e, t = void 0) {
|
|
1409
1409
|
if (t === void 0 || t === "raw-html") {
|
|
1410
1410
|
yield {
|
|
1411
1411
|
format: "raw-html",
|
|
@@ -1416,7 +1416,7 @@ function* st(e, t = void 0) {
|
|
|
1416
1416
|
type: "dyn-docs",
|
|
1417
1417
|
url: `https://www.assemblee-nationale.fr/dyn/docs/${e.uid}.raw`
|
|
1418
1418
|
};
|
|
1419
|
-
const r =
|
|
1419
|
+
const r = b(
|
|
1420
1420
|
e,
|
|
1421
1421
|
"raw-html"
|
|
1422
1422
|
/* RawHtml */
|
|
@@ -1428,7 +1428,7 @@ function* st(e, t = void 0) {
|
|
|
1428
1428
|
});
|
|
1429
1429
|
}
|
|
1430
1430
|
if (t === void 0 || t === "html") {
|
|
1431
|
-
const r =
|
|
1431
|
+
const r = b(
|
|
1432
1432
|
e,
|
|
1433
1433
|
"html"
|
|
1434
1434
|
/* Html */
|
|
@@ -1449,7 +1449,7 @@ function* st(e, t = void 0) {
|
|
|
1449
1449
|
type: "dyn-docs",
|
|
1450
1450
|
url: `https://www.assemblee-nationale.fr/dyn/docs/${e.uid}.pdf`
|
|
1451
1451
|
};
|
|
1452
|
-
const r =
|
|
1452
|
+
const r = b(
|
|
1453
1453
|
e,
|
|
1454
1454
|
"pdf"
|
|
1455
1455
|
/* Pdf */
|
|
@@ -1461,11 +1461,11 @@ function* st(e, t = void 0) {
|
|
|
1461
1461
|
});
|
|
1462
1462
|
}
|
|
1463
1463
|
}
|
|
1464
|
-
function
|
|
1465
|
-
const r =
|
|
1464
|
+
function ut(e, t) {
|
|
1465
|
+
const r = b(e, t);
|
|
1466
1466
|
return r === null ? null : r.url;
|
|
1467
1467
|
}
|
|
1468
|
-
function
|
|
1468
|
+
function ft(e) {
|
|
1469
1469
|
const t = /^VTANR([0-9]+)L([0-9]+)V([0-9]+)$/.exec(e.uid);
|
|
1470
1470
|
if (t === null)
|
|
1471
1471
|
return console.log(
|
|
@@ -1474,7 +1474,7 @@ function ut(e) {
|
|
|
1474
1474
|
const r = t[2], n = t[3];
|
|
1475
1475
|
return `http://www2.assemblee-nationale.fr/scrutins/detail/(legislature)/${r}/(num)/${n}`;
|
|
1476
1476
|
}
|
|
1477
|
-
function
|
|
1477
|
+
function b(e, t) {
|
|
1478
1478
|
const r = We(t), n = /^(.{4})([ANS]*)(R[0-9])([LS]*)([0-9]*)([BTACP]*)(.*)$/.exec(
|
|
1479
1479
|
e.uid
|
|
1480
1480
|
);
|
|
@@ -1486,12 +1486,12 @@ function T(e, t) {
|
|
|
1486
1486
|
return console.log(
|
|
1487
1487
|
`Unable to generate URL for document or division in Sénat. UID: "${e.uid}"`
|
|
1488
1488
|
), null;
|
|
1489
|
-
const
|
|
1489
|
+
const i = n[5];
|
|
1490
1490
|
let a = n[7];
|
|
1491
1491
|
if (t === "raw-html")
|
|
1492
1492
|
return {
|
|
1493
1493
|
directory: "textes",
|
|
1494
|
-
url: `https://www.assemblee-nationale.fr/${
|
|
1494
|
+
url: `https://www.assemblee-nationale.fr/${i}/textes/${a}${r}`
|
|
1495
1495
|
};
|
|
1496
1496
|
let u = {
|
|
1497
1497
|
BTC: "TCOM",
|
|
@@ -1507,61 +1507,110 @@ function T(e, t) {
|
|
|
1507
1507
|
const f = t === "pdf" ? `pdf/${c.directory}` : c.directory;
|
|
1508
1508
|
return {
|
|
1509
1509
|
directory: f,
|
|
1510
|
-
url: `https://www.assemblee-nationale.fr/${
|
|
1510
|
+
url: `https://www.assemblee-nationale.fr/${i}/${f}/${c.prefix}${a}${c.suffix}${r}`
|
|
1511
1511
|
};
|
|
1512
1512
|
}
|
|
1513
1513
|
export {
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1514
|
+
fn as AccordGouvernementDepotHorsDelai,
|
|
1515
|
+
dn as Action,
|
|
1516
|
+
ln as AmendementsConvert,
|
|
1517
|
+
mn as AvantAApres,
|
|
1518
|
+
mt as Cause,
|
|
1519
|
+
gt as CausePositionVote,
|
|
1520
|
+
pt as Civ,
|
|
1521
|
+
yt as CodeActe,
|
|
1522
|
+
gn as CodeEtat,
|
|
1523
|
+
ht as CodeNatureDep,
|
|
1524
|
+
Rt as CodeSortScrutin,
|
|
1517
1525
|
O as CodeTypeOrgane,
|
|
1518
|
-
|
|
1519
|
-
Tt as
|
|
1520
|
-
|
|
1526
|
+
xt as CodeTypeVote,
|
|
1527
|
+
Tt as Decision,
|
|
1528
|
+
pn as DivisionType,
|
|
1529
|
+
Dt as DocumentDenominationStructurelle,
|
|
1530
|
+
je as DocumentUrlFormat,
|
|
1531
|
+
wt as DossierParlementaireXsiType,
|
|
1532
|
+
yn as EtatAmendementCode,
|
|
1533
|
+
hn as EtatAmendementLibelle,
|
|
1534
|
+
vt as EtatCycleDeVie,
|
|
1521
1535
|
Y as Facet,
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1536
|
+
bt as FamSocPro,
|
|
1537
|
+
Be as FinalStatus,
|
|
1538
|
+
F as Follow,
|
|
1539
|
+
St as FormatReunion,
|
|
1540
|
+
At as Legislature,
|
|
1541
|
+
Et as LibelleSortScrutin,
|
|
1542
|
+
Ot as LibelleTypeVote,
|
|
1543
|
+
Ct as LieuVote,
|
|
1544
|
+
Mt as ModePublicationDesVotes,
|
|
1545
|
+
_t as Motif,
|
|
1546
|
+
Pt as NatureTravauxOdj,
|
|
1547
|
+
Lt as PersonneAuditionneeXsiType,
|
|
1548
|
+
Nt as PointOdjXsiType,
|
|
1549
|
+
It as PositionMajoritaire,
|
|
1550
|
+
Bt as PositionPolitique,
|
|
1551
|
+
Ut as Presence,
|
|
1552
|
+
kt as Procedure,
|
|
1553
|
+
Yt as Provenance,
|
|
1554
|
+
Ft as Qualite,
|
|
1555
|
+
qt as Quantieme,
|
|
1556
|
+
jt as Regime,
|
|
1557
|
+
$t as RegionType,
|
|
1558
|
+
Wt as ReunionXsiType,
|
|
1559
|
+
Rn as SortAmendement,
|
|
1560
|
+
Ue as StatusOnly,
|
|
1561
|
+
Ht as StatutAdoption,
|
|
1562
|
+
Gt as TexteExterneAssocieTypeDoc,
|
|
1563
|
+
Qt as TypeActeLegislatif,
|
|
1564
|
+
xn as TypeAuteur,
|
|
1565
|
+
Xt as TypeBudget,
|
|
1566
|
+
Vt as TypeCorrection,
|
|
1567
|
+
zt as TypeDocument,
|
|
1568
|
+
Jt as TypeJo,
|
|
1569
|
+
Zt as TypeJoQuestion,
|
|
1570
|
+
Kt as TypeMajorite,
|
|
1571
|
+
en as TypeMandat,
|
|
1572
|
+
Tn as TypeMimeNom,
|
|
1573
|
+
Dn as TypeMimeType,
|
|
1574
|
+
tn as TypeMission,
|
|
1575
|
+
nn as TypeOrgane,
|
|
1576
|
+
rn as TypePointOdj,
|
|
1577
|
+
wn as TypePosition,
|
|
1578
|
+
on as TypeQuestion,
|
|
1579
|
+
an as TypeReunion,
|
|
1580
|
+
sn as TypeTexte,
|
|
1581
|
+
Qe as allFacets,
|
|
1582
|
+
Xe as allFollows,
|
|
1583
|
+
rt as capitalizeFirstLetter,
|
|
1584
|
+
ot as commissionFondUidFromDossier,
|
|
1585
|
+
ze as dateFromNullableDateOrIsoString,
|
|
1586
|
+
Je as dateFromYearMonthDayTimezoneString,
|
|
1538
1587
|
Ze as displayDateFromLocalIsoString,
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1588
|
+
Pe as existingDateToJson,
|
|
1589
|
+
Ke as formatRelativeFrenchTime,
|
|
1590
|
+
Ve as frenchDateFormat,
|
|
1542
1591
|
Ne as frenchDateSameYearShortFormat,
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1592
|
+
et as frenchDateWithoutDayOfWeekFromDateOrString,
|
|
1593
|
+
Ie as frenchTimeFormat,
|
|
1594
|
+
tt as frenchTimeFromDateOrString,
|
|
1546
1595
|
h as insertActeurReferences,
|
|
1547
|
-
|
|
1596
|
+
at as insertAmendementReferences,
|
|
1548
1597
|
v as insertDocumentReferences,
|
|
1549
1598
|
G as insertDossierReferences,
|
|
1550
1599
|
m as insertOrganeReferences,
|
|
1551
|
-
|
|
1600
|
+
Fe as insertReunionReferences,
|
|
1552
1601
|
qe as insertScrutinReferences,
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1602
|
+
ct as iterDocumentOrDivisionUrls,
|
|
1603
|
+
nt as localIso8601StringFromDate,
|
|
1604
|
+
Le as patchedDateToJson,
|
|
1605
|
+
cn as pathFromDocumentUid,
|
|
1606
|
+
st as shortNameFromOrgane,
|
|
1607
|
+
ke as stateFromActePath,
|
|
1608
|
+
j as stateFromActes,
|
|
1560
1609
|
it as stateFromDossier,
|
|
1561
1610
|
p as statusFromCodierLibelle,
|
|
1562
1611
|
g as uncapitalizeFirstLetter,
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1612
|
+
ut as urlFromDocument,
|
|
1613
|
+
ft as urlFromScrutin,
|
|
1614
|
+
$ as walkActes,
|
|
1615
|
+
Ye as walkDocumentAndDivisions
|
|
1567
1616
|
};
|