@epam/statgpt-sdmx-toolkit 0.2.0-rc.4 → 0.2.0-rc.40
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/index.cjs +2 -2
- package/index.mjs +335 -328
- package/package.json +3 -3
package/index.mjs
CHANGED
|
@@ -4,61 +4,51 @@ const I = (e) => {
|
|
|
4
4
|
return t.length === 1 ? e : t[1];
|
|
5
5
|
}
|
|
6
6
|
}, p = (e) => {
|
|
7
|
-
var
|
|
7
|
+
var s;
|
|
8
8
|
if (e == null)
|
|
9
9
|
return {};
|
|
10
10
|
const t = I(e), n = {
|
|
11
11
|
agency: "",
|
|
12
12
|
id: "",
|
|
13
13
|
version: ""
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
if (t.includes(":")) {
|
|
17
|
-
const o = t.split(":")[0], i = t.split(":")[1].split("(")[0];
|
|
18
|
-
n.agency = s(o) ? o : "", n.id = s(i) ? i : "";
|
|
19
|
-
}
|
|
20
|
-
if (t.includes("(") && t.includes(")")) {
|
|
21
|
-
const o = (r = t.split("(")[1]) == null ? void 0 : r.split(")")[0];
|
|
22
|
-
n.version = s(o) ? o : "";
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return n;
|
|
14
|
+
};
|
|
15
|
+
return t && (t.includes(":") && (n.agency = t.split(":")[0], n.id = t.split(":")[1].split("(")[0]), t.includes("(") && t.includes(")") && (n.version = (s = t.split("(")[1]) == null ? void 0 : s.split(")")[0])), n;
|
|
26
16
|
}, Pe = (e) => {
|
|
27
17
|
const [t, n] = e.split(")."), { agency: s, id: r, version: o } = p(t + ")");
|
|
28
18
|
return { childId: n, agency: s, id: r, version: o };
|
|
29
|
-
},
|
|
19
|
+
}, Tn = (e, t, n) => {
|
|
30
20
|
const s = t === "" ? "" : `(${t})`;
|
|
31
21
|
return `${n}:${e}${s}`;
|
|
32
22
|
};
|
|
33
|
-
var k = /* @__PURE__ */ ((e) => (e.DESCENDANTS = "descendants", e.NONE = "none", e.ALL = "all", e))(k || {}),
|
|
34
|
-
const
|
|
35
|
-
class
|
|
23
|
+
var k = /* @__PURE__ */ ((e) => (e.DESCENDANTS = "descendants", e.NONE = "none", e.ALL = "all", e))(k || {}), ye = /* @__PURE__ */ ((e) => (e.EXACT = "exact", e.AVAILABLE = "available", e))(ye || {});
|
|
24
|
+
const be = (e = "", t = "", n = "") => `sdmx/3.0/availability/dataflow/${e}/${t}/${n}`;
|
|
25
|
+
class Rn {
|
|
36
26
|
constructor(t) {
|
|
37
27
|
this.client = t;
|
|
38
28
|
}
|
|
39
29
|
async getConstraints(t, n) {
|
|
40
30
|
const { agency: s, id: r, version: o } = p(t), i = {
|
|
41
31
|
filters: n || [],
|
|
42
|
-
mode:
|
|
32
|
+
mode: ye.AVAILABLE,
|
|
43
33
|
references: k.NONE
|
|
44
|
-
}, c =
|
|
34
|
+
}, c = be(s, r, o);
|
|
45
35
|
return await this.client.postRequest(c, { body: i });
|
|
46
36
|
}
|
|
47
37
|
}
|
|
48
|
-
var
|
|
49
|
-
const
|
|
38
|
+
var N = /* @__PURE__ */ ((e) => (e.CSV = "csv", e.JSON = "json", e.XML = "xml", e))(N || {}), Le = /* @__PURE__ */ ((e) => (e.ID = "id", e.NAME = "name", e.ID_NAME = "both", e))(Le || {}), Ue = /* @__PURE__ */ ((e) => (e.FULL_DATASET = "full", e.DATA_IN_TABLE = "query", e))(Ue || {});
|
|
39
|
+
const xe = (e, t) => {
|
|
50
40
|
switch (e) {
|
|
51
|
-
case
|
|
41
|
+
case N.CSV:
|
|
52
42
|
return m(
|
|
53
43
|
"application/vnd.sdmx.data+csv;version=2.0.0",
|
|
54
44
|
t
|
|
55
45
|
);
|
|
56
|
-
case
|
|
46
|
+
case N.XML:
|
|
57
47
|
return m(
|
|
58
48
|
"application/vnd.sdmx.data+xml;version=3.0.0",
|
|
59
49
|
t
|
|
60
50
|
);
|
|
61
|
-
case
|
|
51
|
+
case N.JSON:
|
|
62
52
|
return m(`application/${e}`, t);
|
|
63
53
|
default:
|
|
64
54
|
return m(
|
|
@@ -67,26 +57,26 @@ const Ue = (e, t) => {
|
|
|
67
57
|
);
|
|
68
58
|
}
|
|
69
59
|
}, m = (e, t) => `${e}; labels=${t}`;
|
|
70
|
-
var
|
|
71
|
-
const
|
|
72
|
-
const { filterKey: s, timeFilter: r } = n, { agency: o, id: i, version: c } = p(e), a = [r || "", t].filter((l) => !!l).join(
|
|
73
|
-
return `${`${
|
|
74
|
-
},
|
|
75
|
-
class
|
|
60
|
+
var Se = /* @__PURE__ */ ((e) => (e.REFERENCE_PARTIAL = "referencepartial", e.FULL = "full", e))(Se || {});
|
|
61
|
+
const Ye = "all", Ce = "sdmx/3.0/data/dataflow", Te = "&", se = ":", We = "=", ke = "+", wn = ",", qe = "*", re = (e, t, n) => {
|
|
62
|
+
const { filterKey: s, timeFilter: r } = n, { agency: o, id: i, version: c } = p(e), a = [r || "", t].filter((l) => !!l).join(Te);
|
|
63
|
+
return `${`${Ce}/${o}/${i}/${c}`}/${s || qe}?${a}`;
|
|
64
|
+
}, Me = (e = "", t = "", n = "", s = k.DESCENDANTS) => `sdmx/3.0/structure/dataflow/${e}/${t}/${n}?references=${s}&detail=${Se.REFERENCE_PARTIAL}`;
|
|
65
|
+
class pn {
|
|
76
66
|
constructor(t) {
|
|
77
67
|
this.client = t;
|
|
78
68
|
}
|
|
79
69
|
async getDataSet(t, n) {
|
|
80
70
|
const { agency: s, id: r, version: o } = p(t);
|
|
81
71
|
return await this.client.getRequest(
|
|
82
|
-
|
|
72
|
+
Me(s, r, o, n)
|
|
83
73
|
);
|
|
84
74
|
}
|
|
85
75
|
async getDatasetData(t, n) {
|
|
86
76
|
const s = new URLSearchParams({
|
|
87
77
|
includeHistory: "false",
|
|
88
78
|
limit: "1000",
|
|
89
|
-
attributes:
|
|
79
|
+
attributes: Ye,
|
|
90
80
|
dimensionAtObservation: "TIME_PERIOD"
|
|
91
81
|
// TODO: use time dimensions
|
|
92
82
|
}).toString(), r = re(t, s, n);
|
|
@@ -104,7 +94,7 @@ class wn {
|
|
|
104
94
|
{
|
|
105
95
|
method: "GET",
|
|
106
96
|
headers: {
|
|
107
|
-
Accept:
|
|
97
|
+
Accept: xe(n, r),
|
|
108
98
|
"Accept-language": s
|
|
109
99
|
}
|
|
110
100
|
},
|
|
@@ -112,25 +102,31 @@ class wn {
|
|
|
112
102
|
);
|
|
113
103
|
}
|
|
114
104
|
}
|
|
115
|
-
const
|
|
105
|
+
const Qe = (e, t) => e.error || e.message || `${t.status} ${t.statusText}`, Be = "application/json", Ve = "Content-Type", x = "Api-Key", Fe = "X-CONVERSATION-ID", $ = "Ocp-Apim-Subscription-Key";
|
|
106
|
+
class oe extends Error {
|
|
107
|
+
constructor(t) {
|
|
108
|
+
super(t.message), this.isHttpError = !0, this.name = "HttpError", this.code = t.code, this.status = t.status, this.details = t.details;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
const v = (e) => isNaN(Date.parse(e)) ? null : new Date(e), Y = (e, t, n) => {
|
|
116
112
|
const s = {
|
|
117
|
-
[
|
|
113
|
+
[Ve]: (t == null ? void 0 : t.contentType) || Be
|
|
118
114
|
};
|
|
119
|
-
return t != null && t.jwt && (s.Authorization = `Bearer ${t.jwt}`), t != null && t.chatReference && (s[
|
|
120
|
-
},
|
|
115
|
+
return t != null && t.jwt && (s.Authorization = `Bearer ${t.jwt}`), t != null && t.chatReference && (s[Fe] = t.chatReference), { ...s, ...n };
|
|
116
|
+
}, Ge = (e) => {
|
|
121
117
|
const t = { ...e };
|
|
122
|
-
return t[x] && (t[x] = t[x].substring(0, 8) + "...[REDACTED]"), t.Authorization && (t.Authorization = "Bearer [REDACTED]"), t[
|
|
123
|
-
},
|
|
118
|
+
return t[x] && (t[x] = t[x].substring(0, 8) + "...[REDACTED]"), t.Authorization && (t.Authorization = "Bearer [REDACTED]"), t[$] && (t[$] = t[$].substring(0, 8) + "...[REDACTED]"), t;
|
|
119
|
+
}, ie = async (e, t, n) => await fetch(e, {
|
|
124
120
|
method: n.method || "GET",
|
|
125
121
|
headers: t,
|
|
126
122
|
body: n.body ? JSON.stringify(n.body) : void 0
|
|
127
|
-
}),
|
|
123
|
+
}), Ke = async (e, t, n) => await fetch(e, {
|
|
128
124
|
method: n.method,
|
|
129
125
|
headers: t,
|
|
130
126
|
body: n != null && n.isFormData && typeof (n == null ? void 0 : n.body) == "string" ? n.body : JSON.stringify(n.body),
|
|
131
127
|
signal: n == null ? void 0 : n.signal
|
|
132
128
|
});
|
|
133
|
-
class
|
|
129
|
+
class je {
|
|
134
130
|
constructor() {
|
|
135
131
|
this.decoder = new TextDecoder();
|
|
136
132
|
}
|
|
@@ -151,7 +147,7 @@ class Ke {
|
|
|
151
147
|
async initializeStreamRequest(t, n, s, r) {
|
|
152
148
|
const o = Y(void 0, {
|
|
153
149
|
jwt: r
|
|
154
|
-
}), i = await
|
|
150
|
+
}), i = await Ke(
|
|
155
151
|
t,
|
|
156
152
|
{
|
|
157
153
|
Accept: "text/event-stream",
|
|
@@ -165,12 +161,22 @@ class Ke {
|
|
|
165
161
|
);
|
|
166
162
|
if (!i.ok) {
|
|
167
163
|
const c = await i.text();
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
164
|
+
let a = {};
|
|
165
|
+
try {
|
|
166
|
+
a = JSON.parse(c);
|
|
167
|
+
} catch {
|
|
168
|
+
a.error = "Failed to parse error body";
|
|
169
|
+
}
|
|
170
|
+
throw new oe({
|
|
171
|
+
status: i.status,
|
|
172
|
+
message: a.error ?? "No response body"
|
|
173
|
+
});
|
|
171
174
|
}
|
|
172
175
|
if (!i.body)
|
|
173
|
-
throw new
|
|
176
|
+
throw new oe({
|
|
177
|
+
message: "No response body",
|
|
178
|
+
status: i.status
|
|
179
|
+
});
|
|
174
180
|
return i.body.getReader();
|
|
175
181
|
}
|
|
176
182
|
async processStreamData(t, n) {
|
|
@@ -206,17 +212,18 @@ class Ke {
|
|
|
206
212
|
console.info("SSE: Stream completed");
|
|
207
213
|
return;
|
|
208
214
|
}
|
|
215
|
+
let o;
|
|
209
216
|
try {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
console.error(`Failed to parse SSE data: ${r} ${o}`);
|
|
217
|
+
o = JSON.parse(r);
|
|
218
|
+
} catch (i) {
|
|
219
|
+
console.error(`Failed to parse SSE data: ${r} ${i}`);
|
|
214
220
|
}
|
|
221
|
+
n == null || n(o);
|
|
215
222
|
}
|
|
216
223
|
}
|
|
217
224
|
}
|
|
218
|
-
new
|
|
219
|
-
class
|
|
225
|
+
new je();
|
|
226
|
+
class mn {
|
|
220
227
|
constructor(t) {
|
|
221
228
|
this.config = t, console.info("SdmxApiClient initialized", {
|
|
222
229
|
apiUrl: t.apiUrl || "NOT SET"
|
|
@@ -235,12 +242,12 @@ class pn {
|
|
|
235
242
|
}),
|
|
236
243
|
...n.headers
|
|
237
244
|
};
|
|
238
|
-
this.config.apiKey != null && (o[
|
|
245
|
+
this.config.apiKey != null && (o[$] = this.config.apiKey);
|
|
239
246
|
const i = new ReadableStream({
|
|
240
247
|
async start(a) {
|
|
241
248
|
var u;
|
|
242
249
|
try {
|
|
243
|
-
const l = await
|
|
250
|
+
const l = await ie(r, o, n);
|
|
244
251
|
if (!l.ok) {
|
|
245
252
|
const g = await l.text();
|
|
246
253
|
throw console.error(
|
|
@@ -249,11 +256,11 @@ class pn {
|
|
|
249
256
|
}
|
|
250
257
|
const f = (u = l.body) == null ? void 0 : u.getReader();
|
|
251
258
|
if (!f) throw new Error("Failed to create stream reader");
|
|
252
|
-
const
|
|
253
|
-
a.enqueue(
|
|
259
|
+
const h = new Uint8Array([239, 187, 191]);
|
|
260
|
+
a.enqueue(h);
|
|
254
261
|
const d = async () => {
|
|
255
|
-
const { done: g, value:
|
|
256
|
-
g ? a.close() : (a.enqueue(
|
|
262
|
+
const { done: g, value: E } = await f.read();
|
|
263
|
+
g ? a.close() : (a.enqueue(E), await d());
|
|
257
264
|
};
|
|
258
265
|
d();
|
|
259
266
|
} catch (l) {
|
|
@@ -274,7 +281,7 @@ class pn {
|
|
|
274
281
|
};
|
|
275
282
|
this.config.apiKey != null && (o["Ocp-Apim-Subscription-Key"] = this.config.apiKey), this.addInfoRequestLog("API Request", r, n, o);
|
|
276
283
|
try {
|
|
277
|
-
const i = await
|
|
284
|
+
const i = await ie(r, o, n), c = Date.now() - s;
|
|
278
285
|
let a;
|
|
279
286
|
const u = await i.text();
|
|
280
287
|
try {
|
|
@@ -294,7 +301,7 @@ class pn {
|
|
|
294
301
|
}
|
|
295
302
|
if (!i.ok) {
|
|
296
303
|
this.addErrorRequestLog(r, n, i, c, a);
|
|
297
|
-
const l =
|
|
304
|
+
const l = Qe(a, i);
|
|
298
305
|
throw new Error(`API request failed: ${l}`);
|
|
299
306
|
}
|
|
300
307
|
return a;
|
|
@@ -312,7 +319,7 @@ class pn {
|
|
|
312
319
|
const o = {
|
|
313
320
|
method: s.method || "GET",
|
|
314
321
|
url: n,
|
|
315
|
-
headers:
|
|
322
|
+
headers: Ge(r)
|
|
316
323
|
};
|
|
317
324
|
s.body && (o.body = s.body), console.info(t, o);
|
|
318
325
|
}
|
|
@@ -338,42 +345,42 @@ class pn {
|
|
|
338
345
|
});
|
|
339
346
|
}
|
|
340
347
|
}
|
|
341
|
-
const
|
|
342
|
-
var
|
|
343
|
-
const
|
|
348
|
+
const vn = ["FREQ", "FREQUENCY"];
|
|
349
|
+
var He = /* @__PURE__ */ ((e) => (e.CONDITIONAL = "Conditional", e.MANDATORY = "Mandatory", e))(He || {}), q = /* @__PURE__ */ ((e) => (e.DIMENSION = "Dimension", e.MEASURE_DIMENSION = "MeasureDimension", e.TIME_DIMENSION = "TimeDimension", e))(q || {}), ze = /* @__PURE__ */ ((e) => (e.UNBOUNDED = "unbounded", e))(ze || {});
|
|
350
|
+
const Je = (e, t) => {
|
|
344
351
|
var c, a, u, l, f;
|
|
345
352
|
const n = (a = (c = e == null ? void 0 : e.data) == null ? void 0 : c.dataSets) == null ? void 0 : a[0], s = (l = (u = e == null ? void 0 : e.data) == null ? void 0 : u.structures) == null ? void 0 : l[0], r = ((f = s == null ? void 0 : s.attributes) == null ? void 0 : f.dimensionGroup) || [], o = n == null ? void 0 : n.dimensionGroupAttributes, i = {};
|
|
346
|
-
for (const
|
|
347
|
-
const d =
|
|
353
|
+
for (const h of r) {
|
|
354
|
+
const d = h.relationship.dimensions, { codedSeriesKey: g, decodedSeriesKey: E } = Re(
|
|
348
355
|
e,
|
|
349
356
|
t,
|
|
350
357
|
d
|
|
351
358
|
);
|
|
352
|
-
i[
|
|
359
|
+
i[h.id] = {
|
|
353
360
|
values: (o == null ? void 0 : o[g]) || [],
|
|
354
|
-
decodedSeriesKey:
|
|
361
|
+
decodedSeriesKey: E,
|
|
355
362
|
codedSeriesKey: g
|
|
356
363
|
};
|
|
357
364
|
}
|
|
358
365
|
return i;
|
|
359
|
-
},
|
|
366
|
+
}, Re = (e, t, n) => {
|
|
360
367
|
var c, a;
|
|
361
368
|
const s = (a = (c = e == null ? void 0 : e.data) == null ? void 0 : c.structures) == null ? void 0 : a[0], r = [
|
|
362
369
|
...(s == null ? void 0 : s.dimensions.series) || [],
|
|
363
370
|
...(s == null ? void 0 : s.dimensions.observation) || []
|
|
364
371
|
], o = new Array(r == null ? void 0 : r.length), i = new Array(r == null ? void 0 : r.length);
|
|
365
372
|
return n == null || n.forEach((u) => {
|
|
366
|
-
const l = (r == null ? void 0 : r.findIndex((d) => d.id === u)) || 0, f = t[l],
|
|
373
|
+
const l = (r == null ? void 0 : r.findIndex((d) => d.id === u)) || 0, f = t[l], h = r[l].values.findIndex(
|
|
367
374
|
(d) => d.id === f || d.value === f
|
|
368
375
|
) || 0;
|
|
369
|
-
o[l] =
|
|
376
|
+
o[l] = h >= 0 ? h : f, i[l] = f;
|
|
370
377
|
}), {
|
|
371
378
|
codedSeriesKey: o.join(":"),
|
|
372
379
|
decodedSeriesKey: i.join(":")
|
|
373
380
|
};
|
|
374
|
-
},
|
|
375
|
-
var f,
|
|
376
|
-
const s = (
|
|
381
|
+
}, Nn = (e, t, n) => {
|
|
382
|
+
var f, h, d, g, E;
|
|
383
|
+
const s = (h = (f = e == null ? void 0 : e.data) == null ? void 0 : f.dataSets) == null ? void 0 : h[0], r = (g = (d = e == null ? void 0 : e.data) == null ? void 0 : d.structures) == null ? void 0 : g[0], o = (((E = r == null ? void 0 : r.attributes) == null ? void 0 : E.dimensionGroup) || []).filter(
|
|
377
384
|
(D) => {
|
|
378
385
|
var A;
|
|
379
386
|
return ((A = D.relationship.dimensions) == null ? void 0 : A.length) === 1 && D.relationship.dimensions.includes(t || "");
|
|
@@ -385,7 +392,7 @@ const He = (e, t) => {
|
|
|
385
392
|
u[a] = n || "";
|
|
386
393
|
const l = {};
|
|
387
394
|
for (const D of o) {
|
|
388
|
-
const A = D.relationship.dimensions, { codedSeriesKey: y, decodedSeriesKey: S } =
|
|
395
|
+
const A = D.relationship.dimensions, { codedSeriesKey: y, decodedSeriesKey: S } = Re(
|
|
389
396
|
e,
|
|
390
397
|
u,
|
|
391
398
|
A
|
|
@@ -397,23 +404,23 @@ const He = (e, t) => {
|
|
|
397
404
|
};
|
|
398
405
|
}
|
|
399
406
|
return l;
|
|
400
|
-
},
|
|
407
|
+
}, Xe = (e, t) => {
|
|
401
408
|
var s;
|
|
402
409
|
if (t == null)
|
|
403
410
|
return;
|
|
404
411
|
const n = (s = e.values) == null ? void 0 : s[t];
|
|
405
412
|
return n ?? (t instanceof Array ? { values: t } : { value: t.toString() });
|
|
406
|
-
},
|
|
407
|
-
var u, l, f,
|
|
413
|
+
}, Ze = "Observation", $n = (e) => {
|
|
414
|
+
var u, l, f, h, d, g;
|
|
408
415
|
const t = (u = e == null ? void 0 : e.data) == null ? void 0 : u.dataSets, n = (f = (l = e == null ? void 0 : e.data) == null ? void 0 : l.structures) == null ? void 0 : f[0];
|
|
409
416
|
if (!t || !n)
|
|
410
417
|
return [];
|
|
411
|
-
const s = n.attributes, r = n.dimensions, o = (s == null ? void 0 : s.dimensionGroup) || [], i = t[0].series || t[0].observations, c = (
|
|
412
|
-
for (const
|
|
413
|
-
const D = [], { name: A, parsedTimeSeriesValue: y } =
|
|
414
|
-
|
|
418
|
+
const s = n.attributes, r = n.dimensions, o = (s == null ? void 0 : s.dimensionGroup) || [], i = t[0].series || t[0].observations, c = (h = r.series) != null && h.length ? r.series : r.observation, a = [];
|
|
419
|
+
for (const E in i) {
|
|
420
|
+
const D = [], { name: A, parsedTimeSeriesValue: y } = et(
|
|
421
|
+
E,
|
|
415
422
|
c
|
|
416
|
-
), S = i[
|
|
423
|
+
), S = i[E], O = S.attributes || [];
|
|
417
424
|
if (Object.keys(S).length === 0) {
|
|
418
425
|
a.push({
|
|
419
426
|
name: A,
|
|
@@ -425,25 +432,25 @@ const He = (e, t) => {
|
|
|
425
432
|
continue;
|
|
426
433
|
}
|
|
427
434
|
D.push(
|
|
428
|
-
...
|
|
435
|
+
...rt(S, n)
|
|
429
436
|
);
|
|
430
|
-
const
|
|
437
|
+
const P = C(
|
|
431
438
|
(s == null ? void 0 : s.series) || [],
|
|
432
|
-
(T) =>
|
|
433
|
-
),
|
|
439
|
+
(T) => O[T]
|
|
440
|
+
), b = ot(
|
|
434
441
|
((d = n.attributes) == null ? void 0 : d.dataSet) || [],
|
|
435
442
|
((g = t[0].attributes) == null ? void 0 : g.filter((T) => T != null)) || []
|
|
436
|
-
),
|
|
443
|
+
), L = Je(
|
|
437
444
|
e,
|
|
438
445
|
y
|
|
439
|
-
), U = o.map((T,
|
|
440
|
-
const ne =
|
|
446
|
+
), U = o.map((T, _e) => {
|
|
447
|
+
const ne = L[T.id], Oe = Xe(
|
|
441
448
|
T,
|
|
442
|
-
ne.values[
|
|
449
|
+
ne.values[_e]
|
|
443
450
|
);
|
|
444
451
|
return {
|
|
445
452
|
attribute: T,
|
|
446
|
-
dimensionGroupValue:
|
|
453
|
+
dimensionGroupValue: Oe,
|
|
447
454
|
dimensionGroupData: ne
|
|
448
455
|
};
|
|
449
456
|
});
|
|
@@ -451,13 +458,13 @@ const He = (e, t) => {
|
|
|
451
458
|
name: A,
|
|
452
459
|
parsedTimeSeriesValue: y,
|
|
453
460
|
values: D,
|
|
454
|
-
attributes:
|
|
455
|
-
dataSetAttrs:
|
|
461
|
+
attributes: P,
|
|
462
|
+
dataSetAttrs: b,
|
|
456
463
|
dimensionGroupAttributes: U
|
|
457
464
|
});
|
|
458
465
|
}
|
|
459
466
|
return a;
|
|
460
|
-
},
|
|
467
|
+
}, et = (e, t) => {
|
|
461
468
|
const n = e.split(new RegExp("(?<!\\|):(?!\\||$)")), s = [];
|
|
462
469
|
for (let r = 0; r < n.length; r++) {
|
|
463
470
|
const o = t == null ? void 0 : t[r], i = Number(n[r]);
|
|
@@ -471,42 +478,42 @@ const He = (e, t) => {
|
|
|
471
478
|
s.push((c == null ? void 0 : c.id) || (c == null ? void 0 : c.value) || "");
|
|
472
479
|
}
|
|
473
480
|
return {
|
|
474
|
-
name:
|
|
481
|
+
name: nt(s),
|
|
475
482
|
parsedTimeSeriesValue: s
|
|
476
483
|
};
|
|
477
484
|
}, C = (e, t) => {
|
|
478
485
|
const n = [];
|
|
479
486
|
for (let s = 0; s < e.length; s++) {
|
|
480
|
-
const r = e[s], o = t(s), i = o != null && r.values != null ?
|
|
487
|
+
const r = e[s], o = t(s), i = o != null && r.values != null ? tt(o, r) : void 0;
|
|
481
488
|
n.push({
|
|
482
489
|
name: r.id,
|
|
483
490
|
value: i
|
|
484
491
|
});
|
|
485
492
|
}
|
|
486
493
|
return n;
|
|
487
|
-
},
|
|
494
|
+
}, tt = (e, t) => {
|
|
488
495
|
const n = t.values[e];
|
|
489
496
|
return n == null ? typeof e == "object" ? e : e.toString() : (n == null ? void 0 : n.id) || (n == null ? void 0 : n.value) || (n == null ? void 0 : n.ids) || (n == null ? void 0 : n.values);
|
|
490
|
-
},
|
|
497
|
+
}, nt = (e) => e.map((t) => t ? st(t) : "").join("."), st = (e) => e.replace(/\./g, "|.").replace(/:/g, "|:"), rt = (e, t) => {
|
|
491
498
|
var i, c, a, u, l;
|
|
492
499
|
const n = (c = (i = t.measures) == null ? void 0 : i.observation) == null ? void 0 : c.length;
|
|
493
500
|
if (e.observations == null)
|
|
494
501
|
return [
|
|
495
502
|
{
|
|
496
|
-
values:
|
|
503
|
+
values: ce(e, t.measures),
|
|
497
504
|
obsAttributes: C(
|
|
498
505
|
((a = t.attributes) == null ? void 0 : a.observation) || [],
|
|
499
506
|
(f) => e[f + n]
|
|
500
507
|
),
|
|
501
|
-
dimensionAtObservation:
|
|
508
|
+
dimensionAtObservation: Ze
|
|
502
509
|
}
|
|
503
510
|
];
|
|
504
511
|
const s = e.observations, r = (u = t.dimensions.observation) == null ? void 0 : u[0], o = [];
|
|
505
512
|
for (const f in s) {
|
|
506
|
-
const
|
|
513
|
+
const h = r == null ? void 0 : r.values[f];
|
|
507
514
|
o.push({
|
|
508
|
-
dimensionAtObservation: (
|
|
509
|
-
values:
|
|
515
|
+
dimensionAtObservation: (h == null ? void 0 : h.value) || (h == null ? void 0 : h.id),
|
|
516
|
+
values: ce(
|
|
510
517
|
s[f],
|
|
511
518
|
t.measures
|
|
512
519
|
),
|
|
@@ -517,23 +524,23 @@ const He = (e, t) => {
|
|
|
517
524
|
});
|
|
518
525
|
}
|
|
519
526
|
return o;
|
|
520
|
-
},
|
|
527
|
+
}, ce = (e, t) => {
|
|
521
528
|
var n;
|
|
522
529
|
return ((n = t == null ? void 0 : t.observation) == null ? void 0 : n.map((s, r) => ({ name: s.id, value: e[r] }))) || [];
|
|
523
|
-
},
|
|
530
|
+
}, ot = (e, t) => e.reduce(
|
|
524
531
|
(n, s, r) => {
|
|
525
532
|
const o = t[r];
|
|
526
|
-
return
|
|
533
|
+
return it(n, s, o, ""), n;
|
|
527
534
|
},
|
|
528
535
|
[]
|
|
529
|
-
),
|
|
536
|
+
), it = (e, t, n, s) => {
|
|
530
537
|
var o, i, c;
|
|
531
538
|
const r = n != null ? ((o = t == null ? void 0 : t.values) == null ? void 0 : o.length) > 0 ? ((i = t.values[n]) == null ? void 0 : i.id) || ((c = t.values[n]) == null ? void 0 : c.value) : String(n) : s;
|
|
532
539
|
e.push({
|
|
533
540
|
name: t.id,
|
|
534
541
|
value: r || ""
|
|
535
542
|
});
|
|
536
|
-
},
|
|
543
|
+
}, ct = /^[0-9][0-9][0-9][0-9]-Q[1-4]$/, at = /^[0-9][0-9][0-9][0-9]-W[0-9][0-9]?$/, ut = /^[0-9][0-9][0-9][0-9]-S[1-2]$/, lt = /^[0-9][0-9][0-9][0-9]$/, dt = /^[0-9][0-9][0-9][0-9]-(0[1-9]|1[0-2])-[0-9][0-9]$/, ft = /^[0-9][0-9][0-9][0-9]-M(0[1-9]|(1[0-2]))$/, M = (e) => lt.exec(e), Q = (e) => !!M(e), gt = (e) => ut.exec(e), B = (e) => !!gt(e), V = (e) => ft.exec(e), F = (e) => !!V(e), G = (e) => ct.exec(e), K = (e) => !!G(e), ht = (e) => dt.exec(e), Et = (e) => !!ht(e), At = (e) => at.exec(e), j = (e) => !!At(e), H = 1440 * 60 * 1e3, z = 7 * H;
|
|
537
544
|
function J(e) {
|
|
538
545
|
const t = `${e}-01-01`, n = new Date(t);
|
|
539
546
|
if (n.getDay() !== 4) {
|
|
@@ -542,55 +549,55 @@ function J(e) {
|
|
|
542
549
|
}
|
|
543
550
|
return n;
|
|
544
551
|
}
|
|
545
|
-
function
|
|
552
|
+
function Dt(e) {
|
|
546
553
|
const t = new Date(e), s = -((t.getDay() + 6) % 7) + 3;
|
|
547
554
|
return t.setDate(t.getDate() + s), new Date(t.valueOf());
|
|
548
555
|
}
|
|
549
|
-
function
|
|
556
|
+
function ae(e, t = "W") {
|
|
550
557
|
const n = `${e}-12-31`, s = _(new Date(n), t);
|
|
551
558
|
if (s.weekYear === e)
|
|
552
559
|
return s.weekNumber;
|
|
553
560
|
const r = `${e}-12-24`;
|
|
554
561
|
return _(new Date(r), t).weekNumber;
|
|
555
562
|
}
|
|
556
|
-
function
|
|
563
|
+
function we(e, t, n = "W") {
|
|
557
564
|
return `${e}-${n}${t < 10 ? "0" + t : t}`;
|
|
558
565
|
}
|
|
559
566
|
function _(e, t = "W") {
|
|
560
|
-
const n =
|
|
561
|
-
(n.getTime() - r.getTime()) /
|
|
567
|
+
const n = Dt(e), s = n.getFullYear(), r = J(s), o = 1 + Math.ceil(
|
|
568
|
+
(n.getTime() - r.getTime()) / z
|
|
562
569
|
);
|
|
563
570
|
return {
|
|
564
|
-
code:
|
|
571
|
+
code: we(s, o, t),
|
|
565
572
|
weekNumber: o,
|
|
566
573
|
weekYear: s
|
|
567
574
|
};
|
|
568
575
|
}
|
|
569
|
-
function Dt(e) {
|
|
570
|
-
const [t, n] = e.split("-W"), r = J(+t).getTime() + (+n - 1) * H - 3 * z;
|
|
571
|
-
return new Date(r);
|
|
572
|
-
}
|
|
573
576
|
function yt(e) {
|
|
574
|
-
const [t, n] = e.split("-W"), r = J(+t).getTime() + (+n - 1) *
|
|
577
|
+
const [t, n] = e.split("-W"), r = J(+t).getTime() + (+n - 1) * z - 3 * H;
|
|
575
578
|
return new Date(r);
|
|
576
579
|
}
|
|
577
|
-
function
|
|
578
|
-
|
|
580
|
+
function St(e) {
|
|
581
|
+
const [t, n] = e.split("-W"), r = J(+t).getTime() + (+n - 1) * z + 3 * H;
|
|
582
|
+
return new Date(r);
|
|
579
583
|
}
|
|
580
584
|
function pe(e) {
|
|
581
|
-
return Q(e) ? Tt(e) : B(e) ? wt(e) : K(e) ? mt(e) : F(e) ?
|
|
585
|
+
return Q(e) ? Tt(e) : B(e) ? wt(e) : K(e) ? mt(e) : F(e) ? Nt(e) : j(e) ? yt(e) : It(e);
|
|
582
586
|
}
|
|
583
|
-
function
|
|
587
|
+
function me(e) {
|
|
588
|
+
return Q(e) ? Rt(e) : B(e) ? pt(e) : K(e) ? vt(e) : F(e) ? $t(e) : j(e) ? St(e) : _t(e);
|
|
589
|
+
}
|
|
590
|
+
function Tt(e) {
|
|
584
591
|
const t = M(e);
|
|
585
592
|
if (t)
|
|
586
593
|
return new Date(Number(t[0]), 0, 1);
|
|
587
594
|
}
|
|
588
|
-
function
|
|
595
|
+
function Rt(e) {
|
|
589
596
|
const t = M(e);
|
|
590
597
|
if (t)
|
|
591
598
|
return new Date(Number(t[0]) + 1, 0, 1);
|
|
592
599
|
}
|
|
593
|
-
function
|
|
600
|
+
function wt(e) {
|
|
594
601
|
const [t, n] = e.split("-S");
|
|
595
602
|
switch (+n) {
|
|
596
603
|
case 1:
|
|
@@ -599,7 +606,7 @@ function Rt(e) {
|
|
|
599
606
|
return new Date(+t, 6, 1);
|
|
600
607
|
}
|
|
601
608
|
}
|
|
602
|
-
function
|
|
609
|
+
function pt(e) {
|
|
603
610
|
const [t, n] = e.split("-S");
|
|
604
611
|
switch (+n) {
|
|
605
612
|
case 1:
|
|
@@ -608,7 +615,7 @@ function wt(e) {
|
|
|
608
615
|
return new Date(+t + 1, 0, 1);
|
|
609
616
|
}
|
|
610
617
|
}
|
|
611
|
-
function
|
|
618
|
+
function mt(e) {
|
|
612
619
|
const t = G(e);
|
|
613
620
|
if (!t)
|
|
614
621
|
return;
|
|
@@ -624,7 +631,7 @@ function pt(e) {
|
|
|
624
631
|
return new Date(+n, 9, 1);
|
|
625
632
|
}
|
|
626
633
|
}
|
|
627
|
-
function
|
|
634
|
+
function vt(e) {
|
|
628
635
|
const t = G(e);
|
|
629
636
|
if (!t)
|
|
630
637
|
return;
|
|
@@ -640,7 +647,7 @@ function mt(e) {
|
|
|
640
647
|
return new Date(+n + 1, 0, 1);
|
|
641
648
|
}
|
|
642
649
|
}
|
|
643
|
-
function
|
|
650
|
+
function Nt(e) {
|
|
644
651
|
const t = V(e);
|
|
645
652
|
if (!t)
|
|
646
653
|
return;
|
|
@@ -654,31 +661,31 @@ function $t(e) {
|
|
|
654
661
|
const [n, s] = t[0].split("-M");
|
|
655
662
|
return new Date(+n, +s, 1);
|
|
656
663
|
}
|
|
657
|
-
const
|
|
664
|
+
const It = (e) => /* @__PURE__ */ new Date(`${e}T00:00:00`), _t = (e) => {
|
|
658
665
|
const t = /* @__PURE__ */ new Date(`${e}T23:59:00`);
|
|
659
666
|
return t.setMinutes(t.getMinutes() + 1), t;
|
|
660
|
-
},
|
|
661
|
-
const o = [], i = t && t > 3 ?
|
|
667
|
+
}, Ot = 1, Pt = (e, t, n, s = !0, r = "Q") => {
|
|
668
|
+
const o = [], i = t && t > 3 ? Wt(t, s) : 1, c = n ? Math.floor((n - 1) / 3) : 4;
|
|
662
669
|
for (let a = i; a <= c; a++)
|
|
663
670
|
o.push(`${e}-${r}${a}`);
|
|
664
671
|
return o;
|
|
665
|
-
},
|
|
672
|
+
}, bt = (e, t, n, s = "S") => {
|
|
666
673
|
const r = [];
|
|
667
674
|
return (t || 1) < 7 && (n || 12) > 6 && r.push(`${e}-${s}1`), n == null && r.push(`${e}-${s}2`), r;
|
|
668
|
-
},
|
|
675
|
+
}, In = (e) => Math.ceil(e / 3), ve = (e, t, n = "M") => `${e}-${n}${t.toString().padStart(2, "0")}`, Lt = (e, t, n = "M") => {
|
|
669
676
|
const s = [];
|
|
670
677
|
for (let r = t; r <= 12; r++)
|
|
671
|
-
s.push(
|
|
678
|
+
s.push(ve(e, r, n));
|
|
672
679
|
return s;
|
|
673
|
-
},
|
|
680
|
+
}, Ut = (e, t, n, s = "M") => {
|
|
674
681
|
const r = [];
|
|
675
682
|
for (let o = t; o < n; o++)
|
|
676
|
-
r.push(
|
|
683
|
+
r.push(ve(e, o, s));
|
|
677
684
|
return r;
|
|
678
|
-
},
|
|
685
|
+
}, xt = (e, t, n, s = "M") => {
|
|
679
686
|
const r = t || 1, o = n == null, i = n || 12;
|
|
680
|
-
return o ? Lt(e, r, s) :
|
|
681
|
-
},
|
|
687
|
+
return o ? Lt(e, r, s) : Ut(e, r, i, s);
|
|
688
|
+
}, _n = (e, t, n = "M") => {
|
|
682
689
|
switch (t) {
|
|
683
690
|
case 0:
|
|
684
691
|
return [
|
|
@@ -707,27 +714,27 @@ const Nt = (e) => /* @__PURE__ */ new Date(`${e}T00:00:00`), It = (e) => {
|
|
|
707
714
|
default:
|
|
708
715
|
return [];
|
|
709
716
|
}
|
|
710
|
-
},
|
|
711
|
-
const n = R(t, !0), s = R(e), r = n.getFullYear(), o = s.getFullYear(), i = n.getTime() <= s.getTime() ? o +
|
|
717
|
+
}, Yt = (e, t) => {
|
|
718
|
+
const n = R(t, !0), s = R(e), r = n.getFullYear(), o = s.getFullYear(), i = n.getTime() <= s.getTime() ? o + Ot - r : 0;
|
|
712
719
|
return Array.from({ length: i }, (a, u) => r + u);
|
|
713
720
|
}, R = (e, t = !1) => {
|
|
714
|
-
const n =
|
|
721
|
+
const n = Ct(e, t);
|
|
715
722
|
return n ? (n.getTimezoneOffset() > 0 && n.setMinutes(n.getMinutes() + n.getTimezoneOffset()), n) : /* @__PURE__ */ new Date();
|
|
716
|
-
},
|
|
723
|
+
}, Ct = (e, t = !1) => {
|
|
717
724
|
const n = Number(e);
|
|
718
|
-
return e.toString().length !== 13 ? t ?
|
|
719
|
-
},
|
|
720
|
-
const n =
|
|
725
|
+
return e.toString().length !== 13 ? t ? pe(e) : me(e) : isNaN(n) ? /* @__PURE__ */ new Date(`${e}T00:00:00.000Z`) : new Date(n);
|
|
726
|
+
}, Wt = (e, t) => t ? Math.floor((e + 1) / 3) : Math.ceil((e + 1) / 3), On = (e, t) => {
|
|
727
|
+
const n = le(e) - le(t);
|
|
721
728
|
if (n === 0 && e !== t) {
|
|
722
|
-
const s =
|
|
729
|
+
const s = ue(e), r = ue(t);
|
|
723
730
|
return s - r;
|
|
724
731
|
}
|
|
725
732
|
return n;
|
|
726
|
-
},
|
|
727
|
-
const n = t ?
|
|
733
|
+
}, ue = (e) => Q(e) ? 6 : B(e) ? 5 : K(e) ? 4 : F(e) ? 3 : j(e) ? 2 : Et(e) ? 1 : 0, le = (e, t = !1) => {
|
|
734
|
+
const n = t ? pe(e) : me(e);
|
|
728
735
|
return (n == null ? void 0 : n.getTime()) || 0;
|
|
729
736
|
};
|
|
730
|
-
var X = /* @__PURE__ */ ((e) => (e.LAST_UPDATE_AT = "lastUpdatedAt", e.SERIES_COUNT = "series_count", e))(X || {}),
|
|
737
|
+
var X = /* @__PURE__ */ ((e) => (e.LAST_UPDATE_AT = "lastUpdatedAt", e.SERIES_COUNT = "series_count", e))(X || {}), kt = /* @__PURE__ */ ((e) => (e.C = "c", e))(kt || {}), w = /* @__PURE__ */ ((e) => (e.EQUALS = "eq", e.NOT_EQUALS = "ne", e.LESS = "lt", e.LESS_OR_EQUAL = "le", e.GREATER = "gt", e.GREATER_OR_EQUAL = "ge", e.CONTAINS = "co", e.NOT_CONTAINS = "nc", e.STARTS = "sw", e.ENDS = "ew", e))(w || {}), qt = /* @__PURE__ */ ((e) => (e.BOOLEAN = "Boolean", e.DATE_TIME = "DateTime", e.DECIMAL = "Decimal", e.INTEGER = "Integer", e.OBSERVATION_TIME_PERIOD = "ObservationalTimePeriod", e.STRING = "String", e.TIME = "Time", e.TIME_RANGE = "TimeRange", e.URI = "URI", e))(qt || {}), Mt = /* @__PURE__ */ ((e) => (e.ANNUAL = "A", e.QUARTERLY = "Q", e.MONTHLY = "M", e))(Mt || {});
|
|
731
738
|
function Pn(e) {
|
|
732
739
|
var t, n;
|
|
733
740
|
return (n = (t = e == null ? void 0 : e.annotations) == null ? void 0 : t.find((s) => {
|
|
@@ -735,33 +742,33 @@ function Pn(e) {
|
|
|
735
742
|
return s;
|
|
736
743
|
})) == null ? void 0 : n.value;
|
|
737
744
|
}
|
|
738
|
-
const Z = (e, t) => (e == null ? void 0 : e.names) && (e == null ? void 0 : e.names[t]) || (e == null ? void 0 : e.name),
|
|
745
|
+
const Z = (e, t) => (e == null ? void 0 : e.names) && (e == null ? void 0 : e.names[t]) || (e == null ? void 0 : e.name), Ne = (e, t, n) => {
|
|
739
746
|
if (!(!e || t != null && t.has(e == null ? void 0 : e.id)) && (t == null || t.set(e == null ? void 0 : e.id, e), e != null && e.parent)) {
|
|
740
747
|
const s = n == null ? void 0 : n.get(e == null ? void 0 : e.parent);
|
|
741
|
-
|
|
748
|
+
Ne(s, t, n);
|
|
742
749
|
}
|
|
743
|
-
},
|
|
750
|
+
}, Qt = (e, t) => {
|
|
744
751
|
const n = /* @__PURE__ */ new Map(), s = new Map(e == null ? void 0 : e.map((r) => [r.id, r]));
|
|
745
752
|
return t == null || t.forEach((r) => {
|
|
746
|
-
|
|
753
|
+
Ne(r, n, s);
|
|
747
754
|
}), Array.from(n == null ? void 0 : n.values());
|
|
748
|
-
},
|
|
755
|
+
}, Bt = "time_period_end", Vt = "time_period_start", Ft = "TIME_PERIOD", bn = (e) => {
|
|
749
756
|
const t = e == null ? void 0 : e.find(
|
|
750
|
-
(o) => o.id ===
|
|
757
|
+
(o) => o.id === Vt
|
|
751
758
|
), n = e == null ? void 0 : e.find(
|
|
752
|
-
(o) => o.id ===
|
|
759
|
+
(o) => o.id === Bt
|
|
753
760
|
), s = n != null && n.title ? new Date(n == null ? void 0 : n.title) : null;
|
|
754
761
|
return {
|
|
755
762
|
startPeriod: t != null && t.title ? new Date(t == null ? void 0 : t.title) : null,
|
|
756
763
|
endPeriod: s
|
|
757
764
|
};
|
|
758
|
-
},
|
|
765
|
+
}, Gt = (e, t) => e.id.localeCompare(t.id), Kt = (e, t) => e.memberValue.localeCompare(t.memberValue), jt = (e, t) => {
|
|
759
766
|
const n = new Array(e.length), s = e.map((i, c) => [i, c]);
|
|
760
767
|
s.sort(
|
|
761
|
-
(i, c) =>
|
|
768
|
+
(i, c) => Gt(i[0], c[0])
|
|
762
769
|
);
|
|
763
770
|
const r = [...t];
|
|
764
|
-
r.sort(
|
|
771
|
+
r.sort(Kt);
|
|
765
772
|
let o = 0;
|
|
766
773
|
for (const i of s) {
|
|
767
774
|
const c = i[0];
|
|
@@ -770,7 +777,7 @@ const Z = (e, t) => (e == null ? void 0 : e.names) && (e == null ? void 0 : e.na
|
|
|
770
777
|
o < r.length && r[o].memberValue === c.id && (n[i[1]] = i[0]);
|
|
771
778
|
}
|
|
772
779
|
return n.filter((i) => i != null);
|
|
773
|
-
},
|
|
780
|
+
}, Ht = (e) => !!(e != null && e.some((t) => t.parent)), Ln = (e, t, n, s, r = []) => {
|
|
774
781
|
var i, c;
|
|
775
782
|
let o = e || [];
|
|
776
783
|
if (zt(n || [], t || "")) {
|
|
@@ -784,51 +791,51 @@ const Z = (e, t) => (e == null ? void 0 : e.names) && (e == null ? void 0 : e.na
|
|
|
784
791
|
u ? o = o.length === 0 ? (u.selectionValues || []).map(({ memberValue: l }) => ({
|
|
785
792
|
id: l,
|
|
786
793
|
name: l
|
|
787
|
-
})) :
|
|
794
|
+
})) : jt(o, u.selectionValues) : o = [];
|
|
788
795
|
}
|
|
789
796
|
} else r.length !== 0 && (o = o.filter(({ id: a }) => r.includes(a)));
|
|
790
|
-
return
|
|
797
|
+
return Ht(e) && (o = Qt(e, o)), o == null ? void 0 : o.map((a) => ({
|
|
791
798
|
...a,
|
|
792
799
|
name: s ? Z(a, s) : a == null ? void 0 : a.name
|
|
793
800
|
}));
|
|
794
|
-
}, zt = (e, t) => e != null && e.length > 0 && t != null,
|
|
801
|
+
}, zt = (e, t) => e != null && e.length > 0 && t != null, Un = (e) => {
|
|
795
802
|
var n;
|
|
796
803
|
const t = [];
|
|
797
804
|
return (n = e == null ? void 0 : e.filters) == null || n.forEach((s) => {
|
|
798
|
-
s.componentCode !==
|
|
805
|
+
s.componentCode !== Ft && t.push({
|
|
799
806
|
componentCode: s.componentCode,
|
|
800
807
|
operator: w.EQUALS,
|
|
801
808
|
value: s.values.join(",")
|
|
802
809
|
});
|
|
803
810
|
}), t;
|
|
804
|
-
},
|
|
811
|
+
}, Jt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, de = (e) => {
|
|
805
812
|
if (typeof e != "string")
|
|
806
813
|
throw new TypeError("Invalid argument expected string");
|
|
807
|
-
const t = e.match(
|
|
814
|
+
const t = e.match(Jt);
|
|
808
815
|
if (!t)
|
|
809
816
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
810
817
|
return t.shift(), t;
|
|
811
|
-
},
|
|
818
|
+
}, fe = (e) => e === "*" || e === "x" || e === "X", ge = (e) => {
|
|
812
819
|
const t = parseInt(e, 10);
|
|
813
820
|
return isNaN(t) ? e : t;
|
|
814
|
-
},
|
|
815
|
-
if (
|
|
821
|
+
}, Xt = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], Zt = (e, t) => {
|
|
822
|
+
if (fe(e) || fe(t))
|
|
816
823
|
return 0;
|
|
817
|
-
const [n, s] =
|
|
824
|
+
const [n, s] = Xt(ge(e), ge(t));
|
|
818
825
|
return n > s ? 1 : n < s ? -1 : 0;
|
|
819
|
-
},
|
|
826
|
+
}, he = (e, t) => {
|
|
820
827
|
for (let n = 0; n < Math.max(e.length, t.length); n++) {
|
|
821
|
-
const s =
|
|
828
|
+
const s = Zt(e[n] || "0", t[n] || "0");
|
|
822
829
|
if (s !== 0)
|
|
823
830
|
return s;
|
|
824
831
|
}
|
|
825
832
|
return 0;
|
|
826
|
-
},
|
|
827
|
-
const n =
|
|
828
|
-
return i !== 0 ? i : r && o ?
|
|
829
|
-
},
|
|
830
|
-
|
|
831
|
-
const s =
|
|
833
|
+
}, en = (e, t) => {
|
|
834
|
+
const n = de(e), s = de(t), r = n.pop(), o = s.pop(), i = he(n, s);
|
|
835
|
+
return i !== 0 ? i : r && o ? he(r.split("."), o.split(".")) : r || o ? r ? -1 : 1 : 0;
|
|
836
|
+
}, tn = (e, t, n) => {
|
|
837
|
+
nn(n);
|
|
838
|
+
const s = en(e, t);
|
|
832
839
|
return $e[n].includes(s);
|
|
833
840
|
}, $e = {
|
|
834
841
|
">": [1],
|
|
@@ -837,7 +844,7 @@ const Z = (e, t) => (e == null ? void 0 : e.names) && (e == null ? void 0 : e.na
|
|
|
837
844
|
"<=": [-1, 0],
|
|
838
845
|
"<": [-1],
|
|
839
846
|
"!=": [-1, 1]
|
|
840
|
-
}, Ee = Object.keys($e),
|
|
847
|
+
}, Ee = Object.keys($e), nn = (e) => {
|
|
841
848
|
if (Ee.indexOf(e) === -1)
|
|
842
849
|
throw new Error(`Invalid operator, expected one of ${Ee.join("|")}`);
|
|
843
850
|
}, W = "+", ee = (e, t) => {
|
|
@@ -853,28 +860,28 @@ const Z = (e, t) => (e == null ? void 0 : e.names) && (e == null ? void 0 : e.na
|
|
|
853
860
|
return o.find((a) => a.version === r);
|
|
854
861
|
const i = o.map(
|
|
855
862
|
(a) => a.version
|
|
856
|
-
), c =
|
|
863
|
+
), c = sn(r, i);
|
|
857
864
|
return o.find(
|
|
858
865
|
(a) => a.version === c[0]
|
|
859
866
|
);
|
|
860
|
-
}, nn = (e, t) => {
|
|
861
|
-
const n = sn(e, t);
|
|
862
|
-
return n.length > 0 ? [n[0]] : [];
|
|
863
867
|
}, sn = (e, t) => {
|
|
868
|
+
const n = rn(e, t);
|
|
869
|
+
return n.length > 0 ? [n[0]] : [];
|
|
870
|
+
}, rn = (e, t) => {
|
|
864
871
|
const n = [];
|
|
865
872
|
return t.forEach((s) => {
|
|
866
|
-
|
|
873
|
+
cn(e, s) && n.push(s);
|
|
867
874
|
}), n;
|
|
868
|
-
},
|
|
875
|
+
}, on = (e) => {
|
|
869
876
|
const t = e.trim().replace(/\d+\+/, "*"), [n] = t.split("*");
|
|
870
877
|
return new RegExp(`^${n}`);
|
|
871
|
-
},
|
|
878
|
+
}, cn = (e, t) => {
|
|
872
879
|
const n = e.trim().replace(/\+/, "");
|
|
873
|
-
return
|
|
880
|
+
return on(e).test(t) && tn(t, n, ">=");
|
|
874
881
|
}, te = (e, t) => {
|
|
875
|
-
const { concept: n } =
|
|
882
|
+
const { concept: n } = an(e, t);
|
|
876
883
|
return n;
|
|
877
|
-
},
|
|
884
|
+
}, an = (e, t) => {
|
|
878
885
|
if (e == null)
|
|
879
886
|
return {
|
|
880
887
|
concept: void 0,
|
|
@@ -887,21 +894,21 @@ const Z = (e, t) => (e == null ? void 0 : e.names) && (e == null ? void 0 : e.na
|
|
|
887
894
|
t
|
|
888
895
|
);
|
|
889
896
|
return {
|
|
890
|
-
concept:
|
|
897
|
+
concept: Ae((i == null ? void 0 : i.concepts) || [], n),
|
|
891
898
|
scheme: i
|
|
892
899
|
};
|
|
893
900
|
}
|
|
894
901
|
for (const i of t)
|
|
895
|
-
if (
|
|
902
|
+
if (un(i, r, s, o))
|
|
896
903
|
return {
|
|
897
|
-
concept:
|
|
904
|
+
concept: Ae((i == null ? void 0 : i.concepts) || [], n),
|
|
898
905
|
scheme: i
|
|
899
906
|
};
|
|
900
907
|
return {
|
|
901
908
|
concept: void 0,
|
|
902
909
|
scheme: void 0
|
|
903
910
|
};
|
|
904
|
-
},
|
|
911
|
+
}, Ae = (e, t) => e == null ? void 0 : e.find((n) => n.id === t), un = (e, t, n, s) => e.id === t && e.agencyID === n && e.version === s, xn = (e = [], t = [], n) => {
|
|
905
912
|
var a, u;
|
|
906
913
|
const s = (n == null ? void 0 : n.conceptIdentity) || "", r = te(s, t), o = I(
|
|
907
914
|
(a = n == null ? void 0 : n.localRepresentation) == null ? void 0 : a.enumeration
|
|
@@ -910,7 +917,7 @@ const Z = (e, t) => (e == null ? void 0 : e.names) && (e == null ? void 0 : e.na
|
|
|
910
917
|
), c = o || i;
|
|
911
918
|
if (c != null)
|
|
912
919
|
return ee(c, e);
|
|
913
|
-
},
|
|
920
|
+
}, Yn = (e, t, n, s) => {
|
|
914
921
|
var o, i;
|
|
915
922
|
const r = (o = t == null ? void 0 : t.find(
|
|
916
923
|
(c) => (c == null ? void 0 : c.id) === (e == null ? void 0 : e.id)
|
|
@@ -919,7 +926,7 @@ const Z = (e, t) => (e == null ? void 0 : e.names) && (e == null ? void 0 : e.na
|
|
|
919
926
|
...c,
|
|
920
927
|
name: s ? Z(c, s) : c == null ? void 0 : c.name
|
|
921
928
|
}))) || [];
|
|
922
|
-
},
|
|
929
|
+
}, ln = (e, t) => {
|
|
923
930
|
var r, o, i;
|
|
924
931
|
const n = (r = t == null ? void 0 : t.dataStructureComponents) == null ? void 0 : r.attributeList, s = (o = e == null ? void 0 : e.metadataStructureComponents) == null ? void 0 : o.metadataAttributeList;
|
|
925
932
|
return (i = n == null ? void 0 : n.metadataAttributeUsages) == null ? void 0 : i.map((c) => {
|
|
@@ -933,34 +940,34 @@ const Z = (e, t) => (e == null ? void 0 : e.names) && (e == null ? void 0 : e.na
|
|
|
933
940
|
isMandatory: Number(a == null ? void 0 : a.minOccurs) > 0
|
|
934
941
|
};
|
|
935
942
|
});
|
|
936
|
-
},
|
|
943
|
+
}, Cn = (e = [], t, n) => {
|
|
937
944
|
const s = I(t == null ? void 0 : t.conceptIdentity) || "", r = te(s, e);
|
|
938
945
|
return n ? Z(r, n) : (r == null ? void 0 : r.name) ?? (r == null ? void 0 : r.id) ?? (t == null ? void 0 : t.id);
|
|
939
946
|
};
|
|
940
|
-
function
|
|
947
|
+
function De(e) {
|
|
941
948
|
var t, n, s;
|
|
942
949
|
return (s = (n = (t = e == null ? void 0 : e.dataStructures) == null ? void 0 : t[0]) == null ? void 0 : n.dataStructureComponents) == null ? void 0 : s.dimensionList;
|
|
943
950
|
}
|
|
944
|
-
function
|
|
951
|
+
function Wn(e) {
|
|
945
952
|
var t, n, s, r;
|
|
946
953
|
return ((r = (s = (n = (t = e == null ? void 0 : e.data) == null ? void 0 : t.structures) == null ? void 0 : n[0]) == null ? void 0 : s.dimensions) == null ? void 0 : r.series) || [];
|
|
947
954
|
}
|
|
948
|
-
function
|
|
955
|
+
function kn(e) {
|
|
949
956
|
var t, n, s, r, o;
|
|
950
957
|
return ((o = (r = (s = (n = (t = e == null ? void 0 : e.data) == null ? void 0 : t.structures) == null ? void 0 : n[0]) == null ? void 0 : s.dimensions) == null ? void 0 : r.observation) == null ? void 0 : o[0].values.map((i) => i.value).filter((i) => i != null)) || [];
|
|
951
958
|
}
|
|
952
|
-
function
|
|
959
|
+
function qn(e) {
|
|
953
960
|
return e.find(
|
|
954
961
|
(t) => t.type === q.TIME_DIMENSION
|
|
955
962
|
);
|
|
956
963
|
}
|
|
957
|
-
const
|
|
964
|
+
const Mn = (e) => {
|
|
958
965
|
var i, c, a, u, l, f;
|
|
959
966
|
const t = /* @__PURE__ */ new Map(), n = (i = e == null ? void 0 : e.dataStructures) == null ? void 0 : i[0], s = (c = e == null ? void 0 : e.metadataStructures) == null ? void 0 : c[0], r = (e == null ? void 0 : e.conceptSchemes) || [], o = (e == null ? void 0 : e.codelists) || [];
|
|
960
967
|
return e && [
|
|
961
|
-
...((a =
|
|
962
|
-
...((u =
|
|
963
|
-
...
|
|
968
|
+
...((a = De(e)) == null ? void 0 : a.dimensions) || [],
|
|
969
|
+
...((u = De(e)) == null ? void 0 : u.timeDimensions) || [],
|
|
970
|
+
...ln(s, n),
|
|
964
971
|
...((f = (l = n == null ? void 0 : n.dataStructureComponents) == null ? void 0 : l.attributeList) == null ? void 0 : f.attributes) || []
|
|
965
972
|
].forEach(
|
|
966
973
|
(d) => {
|
|
@@ -968,11 +975,11 @@ const qn = (e) => {
|
|
|
968
975
|
const g = te(
|
|
969
976
|
d == null ? void 0 : d.conceptIdentity,
|
|
970
977
|
r
|
|
971
|
-
),
|
|
972
|
-
|
|
978
|
+
), E = ((A = d == null ? void 0 : d.localRepresentation) == null ? void 0 : A.enumeration) || ((y = g == null ? void 0 : g.coreRepresentation) == null ? void 0 : y.enumeration), D = ee(
|
|
979
|
+
E,
|
|
973
980
|
o
|
|
974
981
|
);
|
|
975
|
-
d != null && d.id && (
|
|
982
|
+
d != null && d.id && (E ? t.set(d == null ? void 0 : d.id, {
|
|
976
983
|
...D,
|
|
977
984
|
name: g == null ? void 0 : g.name,
|
|
978
985
|
names: g == null ? void 0 : g.names
|
|
@@ -983,12 +990,12 @@ const qn = (e) => {
|
|
|
983
990
|
}));
|
|
984
991
|
}
|
|
985
992
|
), t;
|
|
986
|
-
},
|
|
993
|
+
}, Qn = (e) => {
|
|
987
994
|
var t;
|
|
988
995
|
return ((t = e == null ? void 0 : e.find(
|
|
989
996
|
(n) => n.id === X.SERIES_COUNT
|
|
990
997
|
)) == null ? void 0 : t.title) || "";
|
|
991
|
-
},
|
|
998
|
+
}, dn = "/api/download", Bn = (e, t, n, s, r, o, i) => {
|
|
992
999
|
const c = new URLSearchParams({
|
|
993
1000
|
urn: e,
|
|
994
1001
|
format: t,
|
|
@@ -998,19 +1005,19 @@ const qn = (e) => {
|
|
|
998
1005
|
attribute: s,
|
|
999
1006
|
language: n,
|
|
1000
1007
|
isMetadata: i ? "true" : "none"
|
|
1001
|
-
}).toString(), a = `${
|
|
1008
|
+
}).toString(), a = `${dn}?${c}`;
|
|
1002
1009
|
window.open(a, "_blank");
|
|
1003
|
-
},
|
|
1010
|
+
}, Vn = (e, t) => {
|
|
1004
1011
|
var s, r;
|
|
1005
1012
|
const n = [];
|
|
1006
1013
|
for (const o of e) {
|
|
1007
1014
|
if (o.type !== q.DIMENSION)
|
|
1008
1015
|
continue;
|
|
1009
1016
|
const i = t.find((c) => c.componentCode === o.id);
|
|
1010
|
-
i != null && ((s = i.values) == null ? void 0 : s.length) > 0 ? n.push((r = i.values) == null ? void 0 : r.join(
|
|
1017
|
+
i != null && ((s = i.values) == null ? void 0 : s.length) > 0 ? n.push((r = i.values) == null ? void 0 : r.join(ke)) : n.push("*");
|
|
1011
1018
|
}
|
|
1012
1019
|
return n.join(".");
|
|
1013
|
-
},
|
|
1020
|
+
}, fn = (e, t) => {
|
|
1014
1021
|
if (!e || !e.startPeriod && !e.endPeriod)
|
|
1015
1022
|
return null;
|
|
1016
1023
|
const n = [], { startPeriod: s, endPeriod: r } = e;
|
|
@@ -1022,12 +1029,12 @@ const qn = (e) => {
|
|
|
1022
1029
|
return null;
|
|
1023
1030
|
const o = t;
|
|
1024
1031
|
return n.map(
|
|
1025
|
-
(i) => `${encodeURIComponent(`c[${o}]`)}${
|
|
1026
|
-
).join(
|
|
1027
|
-
},
|
|
1028
|
-
const n =
|
|
1029
|
-
return n ?
|
|
1030
|
-
},
|
|
1032
|
+
(i) => `${encodeURIComponent(`c[${o}]`)}${We}${encodeURIComponent(i)}`
|
|
1033
|
+
).join(Te);
|
|
1034
|
+
}, Fn = (e, t) => {
|
|
1035
|
+
const n = gn(e, t) || null;
|
|
1036
|
+
return n ? fn(n, t == null ? void 0 : t.id) : null;
|
|
1037
|
+
}, gn = (e, t) => {
|
|
1031
1038
|
var a, u;
|
|
1032
1039
|
const n = t.id, s = (a = e == null ? void 0 : e.filters) == null ? void 0 : a.find(
|
|
1033
1040
|
(l) => l.componentCode === n
|
|
@@ -1044,26 +1051,26 @@ const qn = (e) => {
|
|
|
1044
1051
|
return { startPeriod: v(r[0]), endPeriod: null };
|
|
1045
1052
|
const i = v(r[0]), c = v(r[1]);
|
|
1046
1053
|
return { startPeriod: i, endPeriod: c };
|
|
1047
|
-
},
|
|
1054
|
+
}, Ie = (e, t, n) => {
|
|
1048
1055
|
const s = R(t, !0), r = R(n), o = R(e, !0), i = R(e), c = s.getTime() > o.getTime() ? s : o, a = r.getTime() < i.getTime() ? r : i;
|
|
1049
1056
|
return {
|
|
1050
1057
|
start: c,
|
|
1051
1058
|
end: a
|
|
1052
1059
|
};
|
|
1053
|
-
},
|
|
1054
|
-
const r = +e, { start: o, end: i } =
|
|
1060
|
+
}, hn = (e, t, n, s = "W") => {
|
|
1061
|
+
const r = +e, { start: o, end: i } = Ie(e, t, n);
|
|
1055
1062
|
if (o.getTime() > i.getTime())
|
|
1056
1063
|
return [];
|
|
1057
|
-
const c = _(o, s), a = c.weekYear === r ? c.weekNumber : c.weekYear < r ? 1 :
|
|
1064
|
+
const c = _(o, s), a = c.weekYear === r ? c.weekNumber : c.weekYear < r ? 1 : ae(r, s), u = _(i, s), l = u.weekYear === r ? u.weekNumber : u.weekYear > r ? ae(r, s) : 1, f = [];
|
|
1058
1065
|
if (a < l)
|
|
1059
|
-
for (let
|
|
1060
|
-
f.push(
|
|
1066
|
+
for (let h = a; h <= l; h++)
|
|
1067
|
+
f.push(we(r, h, s));
|
|
1061
1068
|
return f;
|
|
1062
1069
|
}, En = (e) => {
|
|
1063
1070
|
const t = new Date(e);
|
|
1064
1071
|
return t.setMinutes(t.getMinutes() - t.getTimezoneOffset()), t.toISOString().slice(0, 10);
|
|
1065
|
-
},
|
|
1066
|
-
const { start: s, end: r } =
|
|
1072
|
+
}, An = (e, t, n) => {
|
|
1073
|
+
const { start: s, end: r } = Ie(e, t, n);
|
|
1067
1074
|
if (s.getTime() > r.getTime())
|
|
1068
1075
|
return [];
|
|
1069
1076
|
const o = [], i = new Date(
|
|
@@ -1076,7 +1083,7 @@ const qn = (e) => {
|
|
|
1076
1083
|
o.push(a), i.setDate(i.getDate() + 1);
|
|
1077
1084
|
}
|
|
1078
1085
|
return o;
|
|
1079
|
-
},
|
|
1086
|
+
}, Dn = (e) => ({
|
|
1080
1087
|
isDailyExist: !!(e != null && e.some(({ memberValue: t }) => t === "D")),
|
|
1081
1088
|
isWeeklyExist: !!(e != null && e.some(({ memberValue: t }) => t === "W")),
|
|
1082
1089
|
isMonthlyExist: !!(e != null && e.some(({ memberValue: t }) => t === "M")),
|
|
@@ -1085,146 +1092,146 @@ const qn = (e) => {
|
|
|
1085
1092
|
isYearlyExist: !!(e != null && e.some(
|
|
1086
1093
|
({ memberValue: t }) => t === "A" || t === "Y"
|
|
1087
1094
|
))
|
|
1088
|
-
}),
|
|
1095
|
+
}), yn = (e, t, n, s) => {
|
|
1089
1096
|
var i, c;
|
|
1090
1097
|
const r = s === 0 ? ((i = R(t.toString(), !0)) == null ? void 0 : i.getMonth()) + 1 : void 0, o = s === e.length - 1 ? ((c = R(n.toString())) == null ? void 0 : c.getMonth()) + 1 || 1 : void 0;
|
|
1091
1098
|
return { startMonth: r, endMonth: o };
|
|
1092
|
-
},
|
|
1093
|
-
var a, u, l, f,
|
|
1094
|
-
const n = (
|
|
1095
|
-
(
|
|
1096
|
-
)) == null ? void 0 :
|
|
1097
|
-
return i.forEach((
|
|
1098
|
-
const A = [], { startMonth: y, endMonth: S } =
|
|
1099
|
+
}, Sn = ["FREQUENCY", "FREQ"], Gn = (e, t) => {
|
|
1100
|
+
var a, u, l, f, h, d, g;
|
|
1101
|
+
const n = (h = (f = (l = (u = (a = e == null ? void 0 : e[0]) == null ? void 0 : a.cubeRegions) == null ? void 0 : u[0]) == null ? void 0 : l.memberSelection) == null ? void 0 : f.find(
|
|
1102
|
+
(E) => Sn.includes(E.componentId)
|
|
1103
|
+
)) == null ? void 0 : h.selectionValues, s = Dn(n || []), r = ((d = t == null ? void 0 : t.startPeriod) == null ? void 0 : d.getTime()) || 1, o = ((g = t == null ? void 0 : t.endPeriod) == null ? void 0 : g.getTime()) || 1, i = Yt(o, r), c = [];
|
|
1104
|
+
return i.forEach((E, D) => {
|
|
1105
|
+
const A = [], { startMonth: y, endMonth: S } = yn(
|
|
1099
1106
|
i,
|
|
1100
1107
|
new Date(r),
|
|
1101
1108
|
new Date(o),
|
|
1102
1109
|
D
|
|
1103
1110
|
), {
|
|
1104
|
-
isDailyExist:
|
|
1105
|
-
isWeeklyExist:
|
|
1106
|
-
isMonthlyExist:
|
|
1107
|
-
isQuarterlyExist:
|
|
1111
|
+
isDailyExist: O,
|
|
1112
|
+
isWeeklyExist: P,
|
|
1113
|
+
isMonthlyExist: b,
|
|
1114
|
+
isQuarterlyExist: L,
|
|
1108
1115
|
isSemiAnnualExist: U,
|
|
1109
1116
|
isYearlyExist: T
|
|
1110
1117
|
} = s;
|
|
1111
|
-
T && A.push(
|
|
1112
|
-
...Pt(
|
|
1113
|
-
),
|
|
1114
|
-
...
|
|
1115
|
-
),
|
|
1116
|
-
...
|
|
1118
|
+
T && A.push(E.toString()), U && A.push(...bt(E, y, S)), L && A.push(
|
|
1119
|
+
...Pt(E, y, S, !1)
|
|
1120
|
+
), b && A.push(...xt(E, y, S)), P && A.push(
|
|
1121
|
+
...hn(E, r.toString(), o.toString())
|
|
1122
|
+
), O && A.push(
|
|
1123
|
+
...An(E, r.toString(), o.toString())
|
|
1117
1124
|
), c.push(...A);
|
|
1118
1125
|
}), c;
|
|
1119
1126
|
};
|
|
1120
1127
|
export {
|
|
1121
1128
|
X as Annotations,
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1129
|
+
He as AssignmentStatus,
|
|
1130
|
+
Rn as AvailabilityApi,
|
|
1131
|
+
Ce as DATASET_DATA_URL,
|
|
1132
|
+
pn as DatasetApi,
|
|
1126
1133
|
q as DimensionType,
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1134
|
+
Ue as DownloadType,
|
|
1135
|
+
vn as FREQUENCY_DIMENSION_ID,
|
|
1136
|
+
Sn as FREQUENCY_DIM_ID,
|
|
1130
1137
|
Le as FileColumnsAttribute,
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1138
|
+
qe as GET_v3_FILTER_ALL,
|
|
1139
|
+
wn as GET_v3_FILTER_AND,
|
|
1140
|
+
ke as GET_v3_FILTER_OR,
|
|
1141
|
+
Ze as OBSERVATION_KEY,
|
|
1135
1142
|
ze as OccurrenceType,
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1143
|
+
Mt as Periods,
|
|
1144
|
+
qt as RepresentationTextType,
|
|
1145
|
+
kt as SDMX_DATA_QUERY_PARAMS,
|
|
1139
1146
|
W as SINGLE_WILDCARD_SYMBOL,
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1147
|
+
mn as SdmxApiClient,
|
|
1148
|
+
ye as SdmxAvailabilityMode,
|
|
1149
|
+
N as SdmxDataFormat,
|
|
1150
|
+
Se as SdmxDetails,
|
|
1144
1151
|
k as SdmxReferences,
|
|
1145
1152
|
w as SeriesFilterOperator,
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1153
|
+
Ft as TIME_PERIOD,
|
|
1154
|
+
Bt as TIME_PERIOD_END,
|
|
1155
|
+
Vt as TIME_PERIOD_START,
|
|
1156
|
+
dt as dailyPattern,
|
|
1157
|
+
st as decodeDimensionId,
|
|
1158
|
+
xn as findCodelistByDimension,
|
|
1152
1159
|
re as generateDatasetDataRequest,
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1160
|
+
Tn as generateShortUrn,
|
|
1161
|
+
Gn as getAdditionalColumns,
|
|
1162
|
+
bn as getAnnotationPeriod,
|
|
1156
1163
|
ee as getArtifactByUrnWithWildCard,
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1164
|
+
Nn as getAttachedDimensionsSeriesByDimension,
|
|
1165
|
+
Je as getAttachedDimensionsSeriesByTsId,
|
|
1166
|
+
Re as getAttachedDimensionsSeriesKey,
|
|
1167
|
+
Xe as getAttributeValueFromDataQueryResponse,
|
|
1168
|
+
Yn as getAvailableCodes,
|
|
1162
1169
|
Ln as getAvailableCodesFromConstrains,
|
|
1163
1170
|
Pe as getChildParsedUrn,
|
|
1164
1171
|
te as getConcept,
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1172
|
+
Ae as getConceptByUrn,
|
|
1173
|
+
an as getConceptWithScheme,
|
|
1174
|
+
ln as getConvertedMetaAttributes,
|
|
1175
|
+
ht as getDailyRegExp,
|
|
1176
|
+
An as getDaysColumns,
|
|
1177
|
+
Cn as getDimensionTitle,
|
|
1178
|
+
De as getDimensions,
|
|
1179
|
+
Qt as getFilteredItemsWithParents,
|
|
1180
|
+
Un as getFiltersDtoFromDataQuery,
|
|
1174
1181
|
_ as getISOWeek,
|
|
1175
1182
|
I as getKeyFromUrn,
|
|
1176
1183
|
Pn as getLastUpdatedTime,
|
|
1177
|
-
|
|
1184
|
+
ae as getLastWeekNumberOfYear,
|
|
1178
1185
|
Z as getLocalizedName,
|
|
1179
|
-
|
|
1180
|
-
|
|
1186
|
+
xt as getMonthlyData,
|
|
1187
|
+
_n as getMonthlyDataByQuarter,
|
|
1181
1188
|
V as getMonthlyRegExp,
|
|
1182
|
-
|
|
1189
|
+
me as getParsedEndPeriodDate,
|
|
1183
1190
|
$n as getParsedResponse,
|
|
1184
|
-
|
|
1191
|
+
pe as getParsedStartPeriodDate,
|
|
1185
1192
|
R as getPeriodDate,
|
|
1186
|
-
|
|
1187
|
-
|
|
1193
|
+
Dn as getPeriods,
|
|
1194
|
+
In as getQuarterByMonth,
|
|
1188
1195
|
G as getQuarterlyRegExp,
|
|
1189
1196
|
Pt as getQuartersData,
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1197
|
+
fn as getQueryTimePeriodFilters,
|
|
1198
|
+
xe as getRequestAcceptHeader,
|
|
1199
|
+
sn as getResolvedVersionBySingleWildcard,
|
|
1200
|
+
bt as getSemiAnnualData,
|
|
1201
|
+
gt as getSemiAnnuallyRegExp,
|
|
1195
1202
|
C as getSeriesAttributes,
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1203
|
+
et as getSeriesName,
|
|
1204
|
+
Mn as getStructureComponentsMap,
|
|
1205
|
+
Wn as getStructureDimensions,
|
|
1206
|
+
qn as getTimeDimension,
|
|
1207
|
+
kn as getTimePeriods,
|
|
1208
|
+
Fn as getTimeQueryFilter,
|
|
1209
|
+
gn as getTimeRangeFromAttachment,
|
|
1210
|
+
Qn as getTimeSeriesCount,
|
|
1211
|
+
Vn as getTimeSeriesFilterKey,
|
|
1212
|
+
nt as getTimeSeriesId,
|
|
1213
|
+
we as getWeekCode,
|
|
1214
|
+
St as getWeeklyPeriodEndDate,
|
|
1215
|
+
yt as getWeeklyPeriodStartDate,
|
|
1216
|
+
At as getWeeklyRegExp,
|
|
1217
|
+
hn as getWeeksColumns,
|
|
1218
|
+
on as getWildCardRegexp,
|
|
1219
|
+
Ie as getYearPeriod,
|
|
1213
1220
|
M as getYearlyRegExp,
|
|
1214
|
-
|
|
1221
|
+
Yt as getYears,
|
|
1215
1222
|
Et as isDaily,
|
|
1216
1223
|
F as isMonthly,
|
|
1217
1224
|
K as isQuarterly,
|
|
1218
1225
|
B as isSemiAnnually,
|
|
1219
1226
|
j as isWeekly,
|
|
1220
|
-
|
|
1227
|
+
cn as isWildCardVersionCorrect,
|
|
1221
1228
|
Q as isYearly,
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1229
|
+
ft as monthlyPattern,
|
|
1230
|
+
Bn as openDownloadWindow,
|
|
1231
|
+
ct as quarterPattern,
|
|
1232
|
+
ut as semiAnnuallyPattern,
|
|
1233
|
+
On as sortPeriods,
|
|
1227
1234
|
p as splitUrn,
|
|
1228
|
-
|
|
1229
|
-
|
|
1235
|
+
at as weeklyPattern,
|
|
1236
|
+
lt as yearlyPattern
|
|
1230
1237
|
};
|