@tricoteuses/assemblee 3.1.0 → 3.1.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/README.md +2 -2
- package/lib/amendements-Blw6Aa6-.js +4133 -0
- package/lib/amendements-DiMsxlUL.js +178 -0
- package/lib/cleaners.js +653 -581
- package/lib/datasets.d.ts +2 -6
- package/lib/git.js +127 -142
- package/lib/index.js +758 -555
- package/lib/loaders.js +2138 -4
- package/lib/parsers.js +10324 -8388
- package/lib/questions-XokaUGcy.js +3037 -0
- package/lib/scripts/retrieve_documents.d.ts +4 -0
- package/lib/scripts/retrieve_open_data.d.ts +4 -0
- package/lib/scripts/shared/cli_helpers.d.ts +8 -0
- package/package.json +1 -1
- package/lib/amendements-DrQ9BA7A.js +0 -3715
- package/lib/amendements-uxFcHcO5.js +0 -152
- package/lib/loaders-BtLzIUCT.js +0 -1348
- package/lib/questions-CxGnKVDB.js +0 -1578
package/lib/index.js
CHANGED
|
@@ -1,580 +1,783 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region src/strings.ts
|
|
11
|
-
function kt(e) {
|
|
12
|
-
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
1
|
+
import { A as k, n as Q, B as J, C as z, D as H, T as W, s as Y, k as K, m as Z, u as ee, o as ie, d as te, a as oe, b as ne, q as re, v as se, w as ae, e as ce, f as ue, c as fe, g as pe, h as le, i as de, j as me, l as ye, p as ge, x as Re, t as Se, y as ve, z as Ae, r as he } from "./amendements-Blw6Aa6-.js";
|
|
2
|
+
import { a0 as Te, C as xe, W as _e, b as Pe, a2 as Ce, e as Ee, a4 as Ue, S as Be, D as be, E as De, F as Le, q as Ie, L as Ne, a6 as Me, a8 as je, aa as $e, M as Ve, ac as Xe, N as we, O as qe, ap as Fe, u as Ge, ae as ke, P as Qe, w as Je, y as ze, Q as He, Y as We, R as Ye, j as Ke, B as Ze, ag as ei, T as ii, _ as ti, I as oi, U as ni, aq as ri, $ as si, c as ai, V as ci, a as ui, a1 as fi, d as pi, a3 as li, ah as di, K as mi, f as yi, ai as gi, ar as Ri, as as Si, aj as vi, an as Ai, k as hi, g as Oi, n as Ti, l as xi, h as _i, a5 as Pi, a7 as Ci, a9 as Ei, m as Ui, ab as Bi, s as bi, o as Di, ao as Li, t as Ii, ad as Ni, p as Mi, v as ji, x as $i, z as Vi, ak as Xi, X as wi, r as qi, i as Fi, al as Gi, A as ki, am as Qi, at as Ji, af as zi, G as Hi, Z as Wi, H as Yi, J as Ki } from "./questions-XokaUGcy.js";
|
|
3
|
+
var R = /* @__PURE__ */ ((e) => (e.Amendements = "amendements", e))(R || {});
|
|
4
|
+
const L = Object.values(R);
|
|
5
|
+
var S = /* @__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))(S || {});
|
|
6
|
+
const I = Object.values(S);
|
|
7
|
+
function N(e) {
|
|
8
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
13
9
|
}
|
|
14
|
-
function
|
|
15
|
-
|
|
10
|
+
function c(e) {
|
|
11
|
+
return e.charAt(0).toLowerCase() + e.slice(1);
|
|
16
12
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
function At(e) {
|
|
25
|
-
if (e.actesLegislatifs !== void 0) {
|
|
26
|
-
for (let t of H(e.actesLegislatifs)) if (t.codeActe.match(/^AN.*-COM-FOND-SAISIE$/) !== null && t.organeRef !== void 0 && t.organeRef !== "PO211494") return t.organeRef;
|
|
27
|
-
}
|
|
13
|
+
var x = /* @__PURE__ */ ((e) => (e.Failure = "FAILURE", e.Success = "SUCCESS", e))(x || {}), _ = /* @__PURE__ */ ((e) => (e.Failure = "FAILURE", e.InProgress = "IN_PROGRESS", e.Success = "SUCCESS", e))(_ || {});
|
|
14
|
+
function M(e) {
|
|
15
|
+
if (e.actesLegislatifs !== void 0) {
|
|
16
|
+
for (const i of A(e.actesLegislatifs))
|
|
17
|
+
if (i.codeActe.match(/^AN.*-COM-FOND-SAISIE$/) !== null && i.organeRef !== void 0 && i.organeRef !== "PO211494")
|
|
18
|
+
return i.organeRef;
|
|
19
|
+
}
|
|
28
20
|
}
|
|
29
|
-
function
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
21
|
+
function u(e) {
|
|
22
|
+
switch (e) {
|
|
23
|
+
case "Accord":
|
|
24
|
+
case "adopté":
|
|
25
|
+
case "adopté, dans les conditions prévues à l'article 45, alinéa 3, de la Constitution":
|
|
26
|
+
case "adoptée":
|
|
27
|
+
case "adopté sans modification":
|
|
28
|
+
case "adoptée sans modification":
|
|
29
|
+
case "Conforme":
|
|
30
|
+
case "considérée comme définitive en application de l'article 151-7 du Règlement":
|
|
31
|
+
case "considérée comme définitive en application de l'article 151-9 du Règlement":
|
|
32
|
+
case "Motion adopté(e)":
|
|
33
|
+
return "SUCCESS";
|
|
34
|
+
case "Désaccord":
|
|
35
|
+
case "Motion rejeté(e)":
|
|
36
|
+
case "rejeté":
|
|
37
|
+
case "rejetée":
|
|
38
|
+
return "FAILURE";
|
|
39
|
+
case "adopté avec modifications":
|
|
40
|
+
case "adoptée avec modifications":
|
|
41
|
+
case "De droit (article 61 alinéa 1 de la Constitution)":
|
|
42
|
+
case "modifié":
|
|
43
|
+
case "modifiée":
|
|
44
|
+
case "Motion de censure 49-2":
|
|
45
|
+
case "Partiellement conforme":
|
|
46
|
+
return "IN_PROGRESS";
|
|
47
|
+
case "Soixante députés au moins":
|
|
48
|
+
case "Soixante sénateurs au moins":
|
|
49
|
+
return "CONSTITU";
|
|
50
|
+
default:
|
|
51
|
+
return "IN_PROGRESS";
|
|
52
|
+
}
|
|
56
53
|
}
|
|
57
|
-
function
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
54
|
+
function P(e, i) {
|
|
55
|
+
const n = i[i.length - 1];
|
|
56
|
+
let t;
|
|
57
|
+
switch (n.xsiType) {
|
|
58
|
+
case "Adoption_Europe_Type": {
|
|
59
|
+
const o = n.statutAdoption.libelle;
|
|
60
|
+
return o === void 0 ? null : {
|
|
61
|
+
currentStatus: u(o),
|
|
62
|
+
label: c(o)
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
case "ConclusionEtapeCC_Type": {
|
|
66
|
+
const o = n.statutConclusion.libelle;
|
|
67
|
+
return o === void 0 ? null : {
|
|
68
|
+
currentStatus: u(o),
|
|
69
|
+
label: c(o)
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
case "Decision_Type": {
|
|
73
|
+
const o = n.statutConclusion.libelle;
|
|
74
|
+
if (o === void 0)
|
|
75
|
+
return null;
|
|
76
|
+
const r = u(o);
|
|
77
|
+
let s;
|
|
78
|
+
switch (e.procedureParlementaire.code) {
|
|
79
|
+
case "PROCEDURE_PARLEMENTAIRE_2":
|
|
80
|
+
["rejeté", "rejetée"].includes(o) && e.actesLegislatifs !== void 0 && e.actesLegislatifs.length === 1 && (s = "FAILURE");
|
|
81
|
+
break;
|
|
82
|
+
case "PROCEDURE_PARLEMENTAIRE_8":
|
|
83
|
+
// Résolution
|
|
84
|
+
case "PROCEDURE_PARLEMENTAIRE_22":
|
|
85
|
+
r === "SUCCESS" ? s = "SUCCESS" : r === "FAILURE" && (s = "FAILURE");
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
currentStatus: r,
|
|
90
|
+
finalStatus: s,
|
|
91
|
+
label: c(o)
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
case "DecisionMotionCensure_Type":
|
|
95
|
+
return t = n.decision.libelle, t === void 0 ? null : {
|
|
96
|
+
currentStatus: u(t),
|
|
97
|
+
finalStatus: (
|
|
98
|
+
// Not sure for other cases => To improve.
|
|
99
|
+
// Engagement de la responsabilité gouvernementale
|
|
100
|
+
e.procedureParlementaire.code === "PROCEDURE_PARLEMENTAIRE_13" && t === "Motion rejeté(e)" ? "FAILURE" : "SUCCESS"
|
|
101
|
+
),
|
|
102
|
+
// TODO: Not sure of this `true` value
|
|
103
|
+
label: c(t)
|
|
104
|
+
};
|
|
105
|
+
case "DecisionRecevabiliteBureau_Type":
|
|
106
|
+
return t = n.decision.libelle, t === void 0 ? null : {
|
|
107
|
+
currentStatus: u(t),
|
|
108
|
+
label: c(t)
|
|
109
|
+
};
|
|
110
|
+
case "DeclarationGouvernement_Type":
|
|
111
|
+
return t = n.typeDeclaration.libelle, t === void 0 ? null : {
|
|
112
|
+
currentStatus: u(t),
|
|
113
|
+
label: c(t)
|
|
114
|
+
};
|
|
115
|
+
case "DepotMotionCensure_Type":
|
|
116
|
+
return t = n.typeMotionCensure.libelle, t === void 0 ? null : {
|
|
117
|
+
currentStatus: u(t),
|
|
118
|
+
label: c(t)
|
|
119
|
+
};
|
|
120
|
+
case "DepotRapport_Type":
|
|
121
|
+
return [
|
|
122
|
+
"DossierCommissionEnquete_Type",
|
|
123
|
+
"DossierMissionControle_Type",
|
|
124
|
+
"DossierMissionInformation_Type"
|
|
125
|
+
].includes(e.xsiType) ? {
|
|
126
|
+
currentStatus: i[0].organe.codeType,
|
|
127
|
+
finalStatus: "SUCCESS",
|
|
128
|
+
label: "rapport déposé"
|
|
129
|
+
} : null;
|
|
130
|
+
case "MotionProcedure_Type":
|
|
131
|
+
return t = n.typeMotion.libelle, t === void 0 ? null : {
|
|
132
|
+
currentStatus: u(t),
|
|
133
|
+
label: c(t)
|
|
134
|
+
};
|
|
135
|
+
case "Promulgation_Type":
|
|
136
|
+
return {
|
|
137
|
+
currentStatus: "SUCCESS",
|
|
138
|
+
finalStatus: "SUCCESS",
|
|
139
|
+
label: "promulgué"
|
|
140
|
+
};
|
|
141
|
+
case "RetraitInitiative_Type":
|
|
142
|
+
return {
|
|
143
|
+
currentStatus: "FAILURE",
|
|
144
|
+
finalStatus: "FAILURE",
|
|
145
|
+
label: "retiré"
|
|
146
|
+
};
|
|
147
|
+
case "SaisineConseilConstit_Type":
|
|
148
|
+
return t = n.casSaisine.libelle, t === void 0 ? null : {
|
|
149
|
+
currentStatus: u(t),
|
|
150
|
+
label: c(t)
|
|
151
|
+
};
|
|
152
|
+
default:
|
|
153
|
+
return null;
|
|
154
|
+
}
|
|
140
155
|
}
|
|
141
|
-
function
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
156
|
+
function v(e, i, n) {
|
|
157
|
+
if (n !== void 0)
|
|
158
|
+
for (const t of [...n].reverse()) {
|
|
159
|
+
const o = t.actesLegislatifs ? v(e, [...i, t], t.actesLegislatifs) : P(e, [...i, t]);
|
|
160
|
+
if (o !== null)
|
|
161
|
+
return o;
|
|
162
|
+
}
|
|
163
|
+
return null;
|
|
147
164
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
165
|
+
function j(e) {
|
|
166
|
+
const i = v(e, [], e.actesLegislatifs);
|
|
167
|
+
return i !== null ? i : {
|
|
168
|
+
currentStatus: "IN_PROGRESS",
|
|
169
|
+
label: "en cours"
|
|
170
|
+
};
|
|
154
171
|
}
|
|
155
|
-
function*
|
|
156
|
-
|
|
172
|
+
function* A(e) {
|
|
173
|
+
for (const i of e)
|
|
174
|
+
yield i, i.actesLegislatifs !== void 0 && (yield* A(i.actesLegislatifs));
|
|
157
175
|
}
|
|
158
|
-
function*
|
|
159
|
-
|
|
160
|
-
|
|
176
|
+
function* C(e) {
|
|
177
|
+
yield e;
|
|
178
|
+
for (const i of e.divisions ?? [])
|
|
179
|
+
yield* C(i);
|
|
161
180
|
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
181
|
+
function h(e, i, n) {
|
|
182
|
+
if (!n.has(e.uid)) {
|
|
183
|
+
if (n.add(e.uid), i.documentByUid !== void 0 && e.depotInitialLectureDefinitiveRef !== void 0) {
|
|
184
|
+
const t = i.documentByUid[e.depotInitialLectureDefinitiveRef];
|
|
185
|
+
t !== void 0 && (e.depotInitialLectureDefinitive = t, m(t, i, n));
|
|
186
|
+
}
|
|
187
|
+
if (i.organeByUid !== void 0 && e.organeRef !== void 0) {
|
|
188
|
+
const t = i.organeByUid[e.organeRef];
|
|
189
|
+
t !== void 0 && (e.organe = t, a(t, i, n));
|
|
190
|
+
}
|
|
191
|
+
if (i.organeByUid !== void 0 && e.provenanceRef !== void 0) {
|
|
192
|
+
const t = i.organeByUid[e.provenanceRef];
|
|
193
|
+
t !== void 0 && (e.provenance = t, a(t, i, n));
|
|
194
|
+
}
|
|
195
|
+
if (i.acteurByUid !== void 0 && e.rapporteurs !== void 0)
|
|
196
|
+
for (const t of e.rapporteurs) {
|
|
197
|
+
const o = i.acteurByUid[t.acteurRef];
|
|
198
|
+
o !== void 0 && (t.acteur = o, p(o, i, n));
|
|
199
|
+
}
|
|
200
|
+
if (i.reunionByUid !== void 0 && e.reunionRef !== void 0) {
|
|
201
|
+
const t = i.reunionByUid[e.reunionRef];
|
|
202
|
+
if (t !== void 0 && (e.reunion = t, E(t, i, n), e.odjRef !== void 0)) {
|
|
203
|
+
const o = t.odj;
|
|
204
|
+
if (o !== void 0 && o.pointsOdj !== void 0) {
|
|
205
|
+
for (const r of o.pointsOdj)
|
|
206
|
+
if (r.uid === e.odjRef) {
|
|
207
|
+
e.odj = r;
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
if (i.documentByUid !== void 0 && e.texteAdopteRef !== void 0) {
|
|
214
|
+
const t = i.documentByUid[e.texteAdopteRef];
|
|
215
|
+
t !== void 0 && (e.texteAdopte = t, m(t, i, n));
|
|
216
|
+
}
|
|
217
|
+
if (i.documentByUid !== void 0 && e.texteAssocieRef !== void 0) {
|
|
218
|
+
const t = i.documentByUid[e.texteAssocieRef];
|
|
219
|
+
t !== void 0 && (e.texteAssocie = t, m(t, i, n));
|
|
220
|
+
}
|
|
221
|
+
if (i.documentByUid !== void 0 && e.textesAssocies !== void 0)
|
|
222
|
+
for (const t of e.textesAssocies) {
|
|
223
|
+
const o = i.documentByUid[t.texteAssocieRef];
|
|
224
|
+
o !== void 0 && (t.texteAssocie = o, m(o, i, n));
|
|
225
|
+
}
|
|
226
|
+
if (i.scrutinByUid !== void 0 && e.voteRefs !== void 0) {
|
|
227
|
+
const t = [];
|
|
228
|
+
for (const o of e.voteRefs) {
|
|
229
|
+
const r = i.scrutinByUid[o];
|
|
230
|
+
r !== void 0 && (t.push(r), U(r, i, n));
|
|
231
|
+
}
|
|
232
|
+
e.votes = t;
|
|
233
|
+
}
|
|
234
|
+
for (const t of e.actesLegislatifs || [])
|
|
235
|
+
h(t, i, n);
|
|
236
|
+
}
|
|
237
|
+
return e;
|
|
217
238
|
}
|
|
218
|
-
function
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
239
|
+
function p(e, i, n) {
|
|
240
|
+
if (!n.has(e.uid) && (n.add(e.uid), i.organeByUid !== void 0))
|
|
241
|
+
for (const t of e.mandats || []) {
|
|
242
|
+
const o = [];
|
|
243
|
+
for (const r of t.organesRefs) {
|
|
244
|
+
const s = i.organeByUid[r];
|
|
245
|
+
s !== void 0 && (o.push(s), a(s, i, n));
|
|
246
|
+
}
|
|
247
|
+
t.organes = o;
|
|
248
|
+
}
|
|
249
|
+
return e;
|
|
228
250
|
}
|
|
229
|
-
function
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
251
|
+
function $(e, i, n) {
|
|
252
|
+
if (!n.has(e.uid)) {
|
|
253
|
+
n.add(e.uid);
|
|
254
|
+
const t = e.signataires, o = t.auteur;
|
|
255
|
+
if (i.acteurByUid !== void 0 && o.acteurRef !== void 0) {
|
|
256
|
+
const r = i.acteurByUid[o.acteurRef];
|
|
257
|
+
r !== void 0 && (o.acteur = r, p(r, i, n));
|
|
258
|
+
}
|
|
259
|
+
if (i.organeByUid !== void 0 && o.auteurRapporteurOrganeRef !== void 0) {
|
|
260
|
+
const r = i.organeByUid[o.auteurRapporteurOrganeRef];
|
|
261
|
+
r !== void 0 && (o.auteurRapporteurOrgane = r, a(r, i, n));
|
|
262
|
+
}
|
|
263
|
+
if (i.organeByUid !== void 0 && o.gouvernementRef !== void 0) {
|
|
264
|
+
const r = i.organeByUid[o.gouvernementRef];
|
|
265
|
+
r !== void 0 && (o.gouvernement = r, a(r, i, n));
|
|
266
|
+
}
|
|
267
|
+
if (i.organeByUid !== void 0 && o.groupePolitiqueRef !== void 0) {
|
|
268
|
+
const r = i.organeByUid[o.groupePolitiqueRef];
|
|
269
|
+
r !== void 0 && (o.groupePolitique = r, a(r, i, n));
|
|
270
|
+
}
|
|
271
|
+
if (i.acteurByUid !== void 0 && t.cosignatairesRefs !== void 0) {
|
|
272
|
+
const s = [];
|
|
273
|
+
for (const l of t.cosignatairesRefs || []) {
|
|
274
|
+
const f = i.acteurByUid[l];
|
|
275
|
+
f !== void 0 && (s.push(f), p(f, i, n));
|
|
276
|
+
}
|
|
277
|
+
t.cosignataires = s;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
return e;
|
|
259
281
|
}
|
|
260
|
-
function
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
282
|
+
function O(e, i, n) {
|
|
283
|
+
for (const t of e.auteurs) {
|
|
284
|
+
const o = t.acteur;
|
|
285
|
+
if (i.acteurByUid !== void 0 && o !== void 0) {
|
|
286
|
+
const r = i.acteurByUid[o.acteurRef];
|
|
287
|
+
r !== void 0 && (o.acteur = r, p(r, i, n));
|
|
288
|
+
}
|
|
289
|
+
if (i.organeByUid !== void 0 && t.organeRef !== void 0) {
|
|
290
|
+
const r = i.organeByUid[t.organeRef];
|
|
291
|
+
r !== void 0 && (t.organe = r, a(r, i, n));
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
if (i.dossierByUid !== void 0) {
|
|
295
|
+
const t = i.dossierByUid[e.dossierRef];
|
|
296
|
+
t !== void 0 && (e.dossier = t, T(t, i, n));
|
|
297
|
+
}
|
|
298
|
+
for (const t of e.divisions || [])
|
|
299
|
+
O(t, i, n);
|
|
300
|
+
return e;
|
|
278
301
|
}
|
|
279
|
-
function
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
302
|
+
function m(e, i, n) {
|
|
303
|
+
if (!n.has(e.uid)) {
|
|
304
|
+
n.add(e.uid);
|
|
305
|
+
for (const t of e.auteurs) {
|
|
306
|
+
const o = t.acteur;
|
|
307
|
+
if (i.acteurByUid !== void 0 && o !== void 0) {
|
|
308
|
+
const r = i.acteurByUid[o.acteurRef];
|
|
309
|
+
r !== void 0 && (o.acteur = r, p(r, i, n));
|
|
310
|
+
}
|
|
311
|
+
if (i.organeByUid !== void 0 && t.organeRef !== void 0) {
|
|
312
|
+
const r = i.organeByUid[t.organeRef];
|
|
313
|
+
r !== void 0 && (t.organe = r, a(r, i, n));
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
if (i.dossierByUid !== void 0) {
|
|
317
|
+
const t = i.dossierByUid[e.dossierRef];
|
|
318
|
+
t !== void 0 && (e.dossier = t, T(t, i, n));
|
|
319
|
+
}
|
|
320
|
+
for (const t of e.divisions || [])
|
|
321
|
+
O(t, i, n);
|
|
322
|
+
}
|
|
323
|
+
return e;
|
|
300
324
|
}
|
|
301
|
-
function
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
325
|
+
function T(e, i, n) {
|
|
326
|
+
if (!n.has(e.uid)) {
|
|
327
|
+
n.add(e.uid);
|
|
328
|
+
for (const o of e.actesLegislatifs ?? [])
|
|
329
|
+
h(o, i, n);
|
|
330
|
+
const t = e.initiateur;
|
|
331
|
+
if (t !== void 0) {
|
|
332
|
+
if (i.acteurByUid !== void 0)
|
|
333
|
+
for (const o of t.acteurs || []) {
|
|
334
|
+
const r = i.acteurByUid[o.acteurRef];
|
|
335
|
+
if (r !== void 0 && (o.acteur = r, p(r, i, n)), r !== void 0 && o.mandatRef !== void 0) {
|
|
336
|
+
for (const s of r.mandats || [])
|
|
337
|
+
if (s.uid === o.mandatRef) {
|
|
338
|
+
o.mandat = s;
|
|
339
|
+
break;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
if (i.organeByUid !== void 0 && t.organeRef !== void 0) {
|
|
344
|
+
const o = i.organeByUid[t.organeRef];
|
|
345
|
+
o !== void 0 && (t.organe = o, a(o, i, n));
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
return e;
|
|
323
350
|
}
|
|
324
|
-
function
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
351
|
+
function a(e, i, n) {
|
|
352
|
+
if (!n.has(e.uid)) {
|
|
353
|
+
if (n.add(e.uid), i.organeByUid !== void 0 && e.organeParentRef !== void 0) {
|
|
354
|
+
const t = i.organeByUid[e.organeParentRef];
|
|
355
|
+
t !== void 0 && (e.organeParent = t, a(t, i, n));
|
|
356
|
+
}
|
|
357
|
+
if (i.organeByUid !== void 0 && e.organePrecedentRef !== void 0) {
|
|
358
|
+
const t = i.organeByUid[e.organePrecedentRef];
|
|
359
|
+
t !== void 0 && (e.organePrecedent = t, a(t, i, n));
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
return e;
|
|
336
363
|
}
|
|
337
|
-
function
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
364
|
+
function E(e, i, n) {
|
|
365
|
+
if (!n.has(e.uid)) {
|
|
366
|
+
n.add(e.uid);
|
|
367
|
+
const t = e.demandeurs;
|
|
368
|
+
if (t !== void 0) {
|
|
369
|
+
if (i.acteurByUid !== void 0)
|
|
370
|
+
for (const o of t.acteurs || []) {
|
|
371
|
+
const r = i.acteurByUid[o.acteurRef];
|
|
372
|
+
r !== void 0 && (o.acteur = r, p(r, i, n));
|
|
373
|
+
}
|
|
374
|
+
if (i.organeByUid !== void 0) {
|
|
375
|
+
const o = t.organe;
|
|
376
|
+
if (o !== void 0) {
|
|
377
|
+
const r = i.organeByUid[o.organeRef];
|
|
378
|
+
r !== void 0 && (o.organe = r, a(r, i, n));
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
if (i.organeByUid !== void 0 && e.organeReuniRef !== void 0) {
|
|
383
|
+
const o = i.organeByUid[e.organeReuniRef];
|
|
384
|
+
o !== void 0 && (e.organeReuni = o, a(o, i, n));
|
|
385
|
+
}
|
|
386
|
+
if (i.acteurByUid !== void 0) {
|
|
387
|
+
const o = e.participants;
|
|
388
|
+
if (o !== void 0)
|
|
389
|
+
for (const r of o.participantsInternes || []) {
|
|
390
|
+
const s = i.acteurByUid[r.acteurRef];
|
|
391
|
+
s !== void 0 && (r.acteur = s, p(s, i, n));
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
return e;
|
|
367
396
|
}
|
|
368
|
-
function
|
|
369
|
-
|
|
397
|
+
function U(e, i, n) {
|
|
398
|
+
return n.has(e.uid) || n.add(e.uid), e;
|
|
370
399
|
}
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
400
|
+
function V(e) {
|
|
401
|
+
if (e == null)
|
|
402
|
+
return "Organe inconnu";
|
|
403
|
+
switch (e.codeType) {
|
|
404
|
+
case "CMP":
|
|
405
|
+
return "Commission mixte paritaire";
|
|
406
|
+
case "GOUVERNEMENT":
|
|
407
|
+
return e.libelle;
|
|
408
|
+
default:
|
|
409
|
+
return e.libelleAbrege;
|
|
410
|
+
}
|
|
380
411
|
}
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
prefix: "r",
|
|
494
|
-
suffix: "-a0"
|
|
495
|
-
}
|
|
412
|
+
var B = /* @__PURE__ */ ((e) => (e.Html = "html", e.Pdf = "pdf", e.RawHtml = "raw-html", e))(B || {});
|
|
413
|
+
const b = {
|
|
414
|
+
ACIN: {
|
|
415
|
+
directory: "projets",
|
|
416
|
+
prefix: "pl",
|
|
417
|
+
suffix: "-ai"
|
|
418
|
+
},
|
|
419
|
+
AVCEPRJLOI: {
|
|
420
|
+
directory: "projets",
|
|
421
|
+
prefix: "pl",
|
|
422
|
+
suffix: "-ace"
|
|
423
|
+
},
|
|
424
|
+
AVCELETTRE: {
|
|
425
|
+
directory: "projets",
|
|
426
|
+
prefix: "pl",
|
|
427
|
+
suffix: "-ace"
|
|
428
|
+
},
|
|
429
|
+
AVCEPIONLOI: {
|
|
430
|
+
directory: "propositions",
|
|
431
|
+
prefix: "pion",
|
|
432
|
+
suffix: "-ace"
|
|
433
|
+
},
|
|
434
|
+
AVIS: {
|
|
435
|
+
directory: "rapports",
|
|
436
|
+
prefix: "r",
|
|
437
|
+
suffix: ""
|
|
438
|
+
},
|
|
439
|
+
ETDI: {
|
|
440
|
+
directory: "projets",
|
|
441
|
+
prefix: "pl",
|
|
442
|
+
suffix: "-ei"
|
|
443
|
+
},
|
|
444
|
+
LETT: {
|
|
445
|
+
directory: "projets",
|
|
446
|
+
prefix: "pl",
|
|
447
|
+
suffix: "-l"
|
|
448
|
+
},
|
|
449
|
+
PION: {
|
|
450
|
+
directory: "propositions",
|
|
451
|
+
prefix: "pion",
|
|
452
|
+
suffix: ""
|
|
453
|
+
},
|
|
454
|
+
PNRE: {
|
|
455
|
+
directory: "propositions",
|
|
456
|
+
prefix: "pion",
|
|
457
|
+
suffix: ""
|
|
458
|
+
},
|
|
459
|
+
PNREAPPART341: {
|
|
460
|
+
directory: "propositions",
|
|
461
|
+
prefix: "pion",
|
|
462
|
+
suffix: ""
|
|
463
|
+
},
|
|
464
|
+
PNRECOMENQ: {
|
|
465
|
+
directory: "propositions",
|
|
466
|
+
prefix: "pion",
|
|
467
|
+
suffix: ""
|
|
468
|
+
},
|
|
469
|
+
PNREMODREGLTAN: {
|
|
470
|
+
directory: "propositions",
|
|
471
|
+
prefix: "pion",
|
|
472
|
+
suffix: ""
|
|
473
|
+
},
|
|
474
|
+
PNRETVXINSTITEUROP: {
|
|
475
|
+
directory: "europe/resolutions",
|
|
476
|
+
prefix: "ppe",
|
|
477
|
+
suffix: ""
|
|
478
|
+
},
|
|
479
|
+
PRJL: {
|
|
480
|
+
directory: "projets",
|
|
481
|
+
prefix: "pl",
|
|
482
|
+
suffix: ""
|
|
483
|
+
},
|
|
484
|
+
RAPP: {
|
|
485
|
+
directory: "rapports",
|
|
486
|
+
prefix: "r",
|
|
487
|
+
suffix: ""
|
|
488
|
+
},
|
|
489
|
+
RINF: {
|
|
490
|
+
directory: "rap-info",
|
|
491
|
+
prefix: "i",
|
|
492
|
+
suffix: ""
|
|
493
|
+
},
|
|
494
|
+
RION: {
|
|
495
|
+
directory: "",
|
|
496
|
+
prefix: "",
|
|
497
|
+
suffix: ""
|
|
498
|
+
},
|
|
499
|
+
TADO: {
|
|
500
|
+
directory: "ta",
|
|
501
|
+
prefix: "ta",
|
|
502
|
+
suffix: ""
|
|
503
|
+
},
|
|
504
|
+
TCOM: {
|
|
505
|
+
directory: "ta-commission",
|
|
506
|
+
prefix: "r",
|
|
507
|
+
suffix: "-a0"
|
|
508
|
+
},
|
|
509
|
+
TCOMCOMENQ: {
|
|
510
|
+
directory: "ta-commission",
|
|
511
|
+
prefix: "r",
|
|
512
|
+
suffix: "-a0"
|
|
513
|
+
},
|
|
514
|
+
TCOMMODREGLTAN: {
|
|
515
|
+
directory: "ta-commission",
|
|
516
|
+
prefix: "r",
|
|
517
|
+
suffix: "-a0"
|
|
518
|
+
},
|
|
519
|
+
TCOMTVXINSTITEUROP: {
|
|
520
|
+
directory: "ta-commission",
|
|
521
|
+
prefix: "r",
|
|
522
|
+
suffix: "-a0"
|
|
523
|
+
}
|
|
496
524
|
};
|
|
497
|
-
function
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
525
|
+
function D(e) {
|
|
526
|
+
switch (e) {
|
|
527
|
+
case "html":
|
|
528
|
+
return ".asp";
|
|
529
|
+
case "pdf":
|
|
530
|
+
return ".pdf";
|
|
531
|
+
case "raw-html":
|
|
532
|
+
return ".asp";
|
|
533
|
+
}
|
|
503
534
|
}
|
|
504
|
-
function*
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
535
|
+
function* X(e, i = void 0, n = !1) {
|
|
536
|
+
if (i === void 0 || i === "raw-html") {
|
|
537
|
+
yield {
|
|
538
|
+
format: "raw-html",
|
|
539
|
+
type: "dyn-opendata",
|
|
540
|
+
url: `https://www.assemblee-nationale.fr/dyn/opendata/${e.uid}.html`
|
|
541
|
+
}, yield {
|
|
542
|
+
format: "raw-html",
|
|
543
|
+
type: "dyn-docs",
|
|
544
|
+
url: `https://www.assemblee-nationale.fr/dyn/docs/${e.uid}.raw`
|
|
545
|
+
};
|
|
546
|
+
const t = y(
|
|
547
|
+
e,
|
|
548
|
+
"raw-html",
|
|
549
|
+
n
|
|
550
|
+
);
|
|
551
|
+
t !== null && (yield {
|
|
552
|
+
format: "raw-html",
|
|
553
|
+
type: t.directory.replaceAll("/", "-"),
|
|
554
|
+
url: t.url
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
if (i === void 0 || i === "html") {
|
|
558
|
+
const t = y(
|
|
559
|
+
e,
|
|
560
|
+
"html",
|
|
561
|
+
n
|
|
562
|
+
);
|
|
563
|
+
t !== null && (yield {
|
|
564
|
+
format: "html",
|
|
565
|
+
type: t.directory.replaceAll("/", "-"),
|
|
566
|
+
url: t.url
|
|
567
|
+
});
|
|
568
|
+
}
|
|
569
|
+
if (i === void 0 || i === "pdf") {
|
|
570
|
+
yield {
|
|
571
|
+
format: "raw-html",
|
|
572
|
+
type: "dyn-opendata",
|
|
573
|
+
url: `https://www.assemblee-nationale.fr/dyn/opendata/${e.uid}.html`
|
|
574
|
+
}, yield {
|
|
575
|
+
format: "pdf",
|
|
576
|
+
type: "dyn-docs",
|
|
577
|
+
url: `https://www.assemblee-nationale.fr/dyn/docs/${e.uid}.pdf`
|
|
578
|
+
};
|
|
579
|
+
const t = y(
|
|
580
|
+
e,
|
|
581
|
+
"pdf"
|
|
582
|
+
/* Pdf */
|
|
583
|
+
);
|
|
584
|
+
t !== null && (yield {
|
|
585
|
+
format: "pdf",
|
|
586
|
+
type: t.directory.replaceAll("/", "-"),
|
|
587
|
+
url: t.url
|
|
588
|
+
});
|
|
589
|
+
}
|
|
547
590
|
}
|
|
548
|
-
function
|
|
549
|
-
|
|
550
|
-
|
|
591
|
+
function w(e, i) {
|
|
592
|
+
const n = y(e, i);
|
|
593
|
+
return n === null ? null : n.url;
|
|
551
594
|
}
|
|
552
|
-
function
|
|
553
|
-
|
|
554
|
-
|
|
595
|
+
function q(e) {
|
|
596
|
+
const i = /^VTANR([0-9]+)L([0-9]+)V([0-9]+)$/.exec(e.uid);
|
|
597
|
+
if (i === null)
|
|
598
|
+
return console.log(
|
|
599
|
+
`Unable to generate URL from scrutin with unexpected UID: "${e.uid}"`
|
|
600
|
+
), null;
|
|
601
|
+
const n = i[2], t = i[3];
|
|
602
|
+
return `http://www2.assemblee-nationale.fr/scrutins/detail/(legislature)/${n}/(num)/${t}`;
|
|
555
603
|
}
|
|
556
|
-
function
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
604
|
+
function y(e, i, n = !1) {
|
|
605
|
+
const t = D(i), o = /^(.{4})([ANS]*)(R[0-9])([LS]*)([0-9]*)([BTACP]*)(.*)$/.exec(
|
|
606
|
+
e.uid
|
|
607
|
+
);
|
|
608
|
+
if (o === null)
|
|
609
|
+
return n && console.log(
|
|
610
|
+
`Unable to generate URL from document or division with unexpected UID: "${e.uid}"`
|
|
611
|
+
), null;
|
|
612
|
+
if (o[2] === "SN")
|
|
613
|
+
return n && console.log(
|
|
614
|
+
`Unable to generate URL for document or division in Sénat. UID: "${e.uid}"`
|
|
615
|
+
), null;
|
|
616
|
+
const s = o[5];
|
|
617
|
+
let l = o[7];
|
|
618
|
+
if (i === "raw-html")
|
|
619
|
+
return {
|
|
620
|
+
directory: "textes",
|
|
621
|
+
url: `https://www.assemblee-nationale.fr/${s}/textes/${l}${t}`
|
|
622
|
+
};
|
|
623
|
+
let f = {
|
|
624
|
+
BTC: "TCOM",
|
|
625
|
+
BTA: "TADO",
|
|
626
|
+
TAP: "TADO"
|
|
627
|
+
}[o[6]] || o[1];
|
|
628
|
+
e.classification !== void 0 && e.classification.sousType !== void 0 && e.classification.sousType.code === "COMPA" && (l = l.replace(/-COMPA/, "-aCOMPA")), f == "AVCE" && (f = `AVCE${e.classification.famille?.classe.code}`);
|
|
629
|
+
const d = b[f];
|
|
630
|
+
if (d === void 0)
|
|
631
|
+
return n && console.log(
|
|
632
|
+
`Unable to generate URL from document or division of UID "${e.uid}" and type "${f}"`
|
|
633
|
+
), null;
|
|
634
|
+
const g = i === "pdf" ? `pdf/${d.directory}` : d.directory;
|
|
635
|
+
return {
|
|
636
|
+
directory: g,
|
|
637
|
+
url: `https://www.assemblee-nationale.fr/${s}/${g}/${d.prefix}${l}${d.suffix}${t}`
|
|
638
|
+
};
|
|
578
639
|
}
|
|
579
|
-
|
|
580
|
-
|
|
640
|
+
export {
|
|
641
|
+
k as AccordGouvernementDepotHorsDelaiSchema,
|
|
642
|
+
Q as ActionSchema,
|
|
643
|
+
J as AmendementsConvert,
|
|
644
|
+
Te as CausePositionVoteSchema,
|
|
645
|
+
xe as CivSchema,
|
|
646
|
+
_e as CodeActeSchema,
|
|
647
|
+
z as CodeEtatSchema,
|
|
648
|
+
Pe as CodeNatureDepSchema,
|
|
649
|
+
Ce as CodeSortScrutinSchema,
|
|
650
|
+
Ee as CodeTypeOrganeSchema,
|
|
651
|
+
Ue as CodeTypeVoteSchema,
|
|
652
|
+
Be as DecisionSchema,
|
|
653
|
+
be as DepNaisSchema,
|
|
654
|
+
H as DivisionTypeSchema,
|
|
655
|
+
B as DocumentUrlFormat,
|
|
656
|
+
De as EtatSchema,
|
|
657
|
+
R as Facet,
|
|
658
|
+
Le as FamSocProEnumSchema,
|
|
659
|
+
x as FinalStatus,
|
|
660
|
+
S as Follow,
|
|
661
|
+
Ie as FormatReunionSchema,
|
|
662
|
+
Ne as LibelleSchema,
|
|
663
|
+
Me as LibelleSortScrutinSchema,
|
|
664
|
+
je as LibelleTypeVoteSchema,
|
|
665
|
+
$e as LieuVoteSchema,
|
|
666
|
+
Ve as MandatXsiTypeSchema,
|
|
667
|
+
Xe as ModePublicationDesVotesSchema,
|
|
668
|
+
we as NatureTravauxOdjSchema,
|
|
669
|
+
qe as OrganeXsiTypeSchema,
|
|
670
|
+
Fe as PersonneAuditionneeXsiTypeSchema,
|
|
671
|
+
Ge as PointOdjXsiTypeSchema,
|
|
672
|
+
ke as PositionMajoritaireSchema,
|
|
673
|
+
Qe as PositionPolitiqueSchema,
|
|
674
|
+
Je as PresenceSchema,
|
|
675
|
+
ze as ProcedureSchema,
|
|
676
|
+
He as QuantiemeSchema,
|
|
677
|
+
We as QuestionXsiTypeSchema,
|
|
678
|
+
Ye as RegimeSchema,
|
|
679
|
+
Ke as RegionTypeSchema,
|
|
680
|
+
Ze as ReunionXsiTypeSchema,
|
|
681
|
+
_ as StatusOnly,
|
|
682
|
+
W as TypeAuteurSchema,
|
|
683
|
+
ei as TypeMajoriteSchema,
|
|
684
|
+
ii as TypePointOdjSchema,
|
|
685
|
+
Y as TypePositionSchema,
|
|
686
|
+
ti as TypeQuestionSchema,
|
|
687
|
+
oi as TypeReunionSchema,
|
|
688
|
+
ni as UidXsiTypeSchema,
|
|
689
|
+
K as accordGouvernementDepotHorsDelaiOptions,
|
|
690
|
+
ri as acteLegislatifXsiTypeOptions,
|
|
691
|
+
Z as actionOptions,
|
|
692
|
+
L as allFacets,
|
|
693
|
+
I as allFollows,
|
|
694
|
+
ee as avantAApresOptions,
|
|
695
|
+
N as capitalizeFirstLetter,
|
|
696
|
+
si as causePositionVoteOptions,
|
|
697
|
+
ai as civOptions,
|
|
698
|
+
ci as codeActeOptions,
|
|
699
|
+
ie as codeEtatOptions,
|
|
700
|
+
ui as codeNatureDepOptions,
|
|
701
|
+
fi as codeSortScrutinOptions,
|
|
702
|
+
pi as codeTypeOrganeOptions,
|
|
703
|
+
li as codeTypeVoteOptions,
|
|
704
|
+
M as commissionFondUidFromDossier,
|
|
705
|
+
di as compteRenduUidRegex,
|
|
706
|
+
te as dateFromNullableDateOrIsoString,
|
|
707
|
+
oe as dateFromYearMonthDayTimezoneString,
|
|
708
|
+
mi as decisionOptions,
|
|
709
|
+
yi as depNaisOptions,
|
|
710
|
+
ne as displayDateFromLocalIsoString,
|
|
711
|
+
re as divisionTypeOptions,
|
|
712
|
+
gi as documentUidRegex,
|
|
713
|
+
Ri as documentXsiTypeOptions,
|
|
714
|
+
Si as dossierParlementaireXsiTypeOptions,
|
|
715
|
+
vi as dossierUidRegex,
|
|
716
|
+
se as etatAmendementCodeOptions,
|
|
717
|
+
ae as etatAmendementLibelleOptions,
|
|
718
|
+
Ai as etatCycleDeVieOptions,
|
|
719
|
+
hi as etatOptions,
|
|
720
|
+
ce as existingDateToJson,
|
|
721
|
+
Oi as famSocProEnumOptions,
|
|
722
|
+
ue as formatRelativeFrenchTime,
|
|
723
|
+
Ti as formatReunionOptions,
|
|
724
|
+
fe as frenchDateFormat,
|
|
725
|
+
pe as frenchDateSameYearShortFormat,
|
|
726
|
+
le as frenchDateWithoutDayOfWeekFromDateOrString,
|
|
727
|
+
de as frenchTimeFormat,
|
|
728
|
+
me as frenchTimeFromDateOrString,
|
|
729
|
+
p as insertActeurReferences,
|
|
730
|
+
$ as insertAmendementReferences,
|
|
731
|
+
m as insertDocumentReferences,
|
|
732
|
+
T as insertDossierReferences,
|
|
733
|
+
a as insertOrganeReferences,
|
|
734
|
+
E as insertReunionReferences,
|
|
735
|
+
U as insertScrutinReferences,
|
|
736
|
+
X as iterDocumentOrDivisionUrls,
|
|
737
|
+
xi as legislatureOptions,
|
|
738
|
+
_i as libelleOptions,
|
|
739
|
+
Pi as libelleSortScrutinOptions,
|
|
740
|
+
Ci as libelleTypeVoteOptions,
|
|
741
|
+
Ei as lieuVoteOptions,
|
|
742
|
+
ye as localIso8601StringFromDate,
|
|
743
|
+
Ui as mandatXsiTypeOptions,
|
|
744
|
+
Bi as modePublicationDesVotesOptions,
|
|
745
|
+
bi as natureTravauxOdjOptions,
|
|
746
|
+
Di as organeXsiTypeOptions,
|
|
747
|
+
ge as patchedDateToJson,
|
|
748
|
+
Li as personneAuditionneeXsiTypeOptions,
|
|
749
|
+
Ii as pointOdjXsiTypeOptions,
|
|
750
|
+
Ni as positionMajoritaireOptions,
|
|
751
|
+
Mi as positionPolitiqueOptions,
|
|
752
|
+
ji as presenceOptions,
|
|
753
|
+
$i as procedureOptions,
|
|
754
|
+
Vi as quantiemeOptions,
|
|
755
|
+
Xi as questionUidRegex,
|
|
756
|
+
wi as questionXsiTypeOptions,
|
|
757
|
+
qi as regimeOptions,
|
|
758
|
+
Fi as regionTypeOptions,
|
|
759
|
+
Gi as reunionUidRegex,
|
|
760
|
+
ki as reunionXsiTypeOptions,
|
|
761
|
+
Qi as scrutinUidRegex,
|
|
762
|
+
V as shortNameFromOrgane,
|
|
763
|
+
Re as sortAmendementOptions,
|
|
764
|
+
P as stateFromActePath,
|
|
765
|
+
v as stateFromActes,
|
|
766
|
+
j as stateFromDossier,
|
|
767
|
+
u as statusFromCodierLibelle,
|
|
768
|
+
Se as typeAuteurOptions,
|
|
769
|
+
Ji as typeJoQuestionOptions,
|
|
770
|
+
zi as typeMajoriteOptions,
|
|
771
|
+
ve as typeMimeNomOptions,
|
|
772
|
+
Ae as typeMimeTypeOptions,
|
|
773
|
+
Hi as typePointOdjOptions,
|
|
774
|
+
he as typePositionOptions,
|
|
775
|
+
Wi as typeQuestionOptions,
|
|
776
|
+
Yi as typeReunionOptions,
|
|
777
|
+
Ki as uidXsiTypeOptions,
|
|
778
|
+
c as uncapitalizeFirstLetter,
|
|
779
|
+
w as urlFromDocument,
|
|
780
|
+
q as urlFromScrutin,
|
|
781
|
+
A as walkActes,
|
|
782
|
+
C as walkDocumentAndDivisions
|
|
783
|
+
};
|