@eodash/eodash 5.0.0-alpha.2.9 → 5.0.0-rc

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.
Files changed (113) hide show
  1. package/README.md +1 -1
  2. package/core/client/App.vue +13 -1
  3. package/core/client/asWebComponent.js +13 -4
  4. package/core/client/components/DashboardLayout.vue +36 -14
  5. package/core/client/components/Loading.vue +6 -9
  6. package/core/client/components/MobileLayout.vue +16 -14
  7. package/core/client/composables/DefineEodash.js +14 -4
  8. package/core/client/composables/DefineTemplate.js +67 -0
  9. package/core/client/composables/DefineWidgets.js +3 -2
  10. package/core/client/composables/EodashMap.js +360 -0
  11. package/core/client/composables/EodashProcess.js +574 -0
  12. package/core/client/composables/index.js +136 -28
  13. package/core/client/eodash.js +395 -80
  14. package/core/client/eodashSTAC/EodashCollection.js +432 -0
  15. package/core/client/eodashSTAC/createLayers.js +315 -0
  16. package/core/client/eodashSTAC/helpers.js +375 -0
  17. package/core/client/eodashSTAC/triggers.js +43 -0
  18. package/core/client/plugins/axios.js +8 -0
  19. package/core/client/plugins/index.js +2 -1
  20. package/core/client/plugins/vuetify.js +2 -1
  21. package/core/client/store/actions.js +79 -0
  22. package/core/client/store/index.js +4 -18
  23. package/core/client/store/stac.js +99 -9
  24. package/core/client/store/states.js +37 -0
  25. package/core/client/{types.d.ts → types.ts} +66 -20
  26. package/core/client/utils/keys.js +2 -0
  27. package/core/client/utils/states.js +22 -0
  28. package/core/client/views/Dashboard.vue +22 -49
  29. package/core/client/vite-env.d.ts +2 -10
  30. package/dist/client/DashboardLayout-232tRmjz.js +84 -0
  31. package/dist/client/DynamicWebComponent-Cl4LqHU6.js +88 -0
  32. package/dist/client/EodashDatePicker-Pok6bZwU.js +306 -0
  33. package/dist/client/EodashItemFilter-16eMMjTV.js +151 -0
  34. package/dist/client/EodashLayerControl-De7IlCm_.js +120 -0
  35. package/dist/client/EodashLayoutSwitcher-C-3-jjn5.js +52 -0
  36. package/dist/client/EodashMap-CMvbfI6-.js +549 -0
  37. package/dist/client/EodashMapBtns-BeknGDtc.js +107 -0
  38. package/dist/client/EodashProcess-BwKAa9Ee.js +1476 -0
  39. package/dist/client/EodashStacInfo-_BfonNUG.js +85 -0
  40. package/dist/client/EodashTools-PD3XPYuR.js +103 -0
  41. package/dist/client/ExportState-DOrT7M15.js +644 -0
  42. package/dist/client/Footer-CCigxYBo.js +141 -0
  43. package/dist/client/Header-C2cdx4gb.js +437 -0
  44. package/dist/client/IframeWrapper-BgM9aU8f.js +28 -0
  45. package/dist/client/MobileLayout-BdiFjHg7.js +1207 -0
  46. package/dist/client/PopUp--_xn1Cms.js +410 -0
  47. package/dist/client/VImg-9xu2l99m.js +384 -0
  48. package/dist/client/VMain-BUs3kDTd.js +43 -0
  49. package/dist/client/VOverlay-D89omJis.js +1453 -0
  50. package/dist/client/VTooltip-CDu3bErh.js +86 -0
  51. package/dist/client/WidgetsContainer-aFG9yFT6.js +83 -0
  52. package/dist/client/asWebComponent-BRGyP_j5.js +11943 -0
  53. package/dist/client/{style.css → eo-dash.css} +2 -2
  54. package/dist/client/eo-dash.js +2 -6
  55. package/dist/client/forwardRefs-CYrR6bMw.js +245 -0
  56. package/dist/client/index-BZwk0V42.js +199 -0
  57. package/dist/client/ssrBoot-BP7SYRyC.js +22 -0
  58. package/dist/client/transition-DG9nRSW4.js +37 -0
  59. package/dist/node/cli.js +4 -4
  60. package/dist/node/types.d.ts +2 -0
  61. package/package.json +73 -38
  62. package/widgets/EodashDatePicker.vue +176 -134
  63. package/widgets/EodashItemFilter.vue +79 -38
  64. package/widgets/EodashLayerControl.vue +111 -0
  65. package/widgets/EodashLayoutSwitcher.vue +36 -0
  66. package/widgets/EodashMap.vue +108 -133
  67. package/widgets/EodashMapBtns.vue +62 -8
  68. package/widgets/EodashProcess.vue +143 -0
  69. package/widgets/EodashStacInfo.vue +82 -0
  70. package/widgets/EodashTools.vue +83 -0
  71. package/widgets/ExportState.vue +17 -13
  72. package/widgets/PopUp.vue +24 -2
  73. package/core/client/SuspensedDashboard.ce.vue +0 -105
  74. package/core/client/asWebComponent.d.ts +0 -23
  75. package/core/client/store/Actions.js +0 -14
  76. package/core/client/store/States.js +0 -16
  77. package/core/client/utils/eodashSTAC.js +0 -249
  78. package/core/client/utils/helpers.js +0 -38
  79. package/dist/client/DashboardLayout-D0ZF6V2S.js +0 -156
  80. package/dist/client/DynamicWebComponent-CPsMSBHi.js +0 -57
  81. package/dist/client/EodashDatePicker-CBQP7u2X.js +0 -252
  82. package/dist/client/EodashItemFilter-DL2ScI-5.js +0 -7671
  83. package/dist/client/EodashMap-CkKoQlmR.js +0 -86917
  84. package/dist/client/EodashMapBtns-yuO2QmiR.js +0 -36
  85. package/dist/client/ExportState-CCzOhppU.js +0 -558
  86. package/dist/client/Footer-BPAND0yG.js +0 -115
  87. package/dist/client/Header-DLhebNvG.js +0 -350
  88. package/dist/client/IframeWrapper-1GEMHlsW.js +0 -19
  89. package/dist/client/MobileLayout-mGkOYRhu.js +0 -945
  90. package/dist/client/PopUp-1d2bBFjw.js +0 -300
  91. package/dist/client/VImg-DxHcztfM.js +0 -291
  92. package/dist/client/VMain-BLX5vRRn.js +0 -39
  93. package/dist/client/VOverlay-CvrYEmLu.js +0 -967
  94. package/dist/client/WidgetsContainer-CmYjvGm7.js +0 -129
  95. package/dist/client/_commonjsHelpers-DaMA6jEr.js +0 -8
  96. package/dist/client/asWebComponent-B91uK0U7.js +0 -20361
  97. package/dist/client/basedecoder-DHcBySSe-BmCFNFnw.js +0 -88
  98. package/dist/client/decoder-CP4lv0Kb-B6yqkcfC.js +0 -10
  99. package/dist/client/deflate-BXt-9JA_-CWfClgpK.js +0 -10
  100. package/dist/client/eodashSTAC-DBjqe_Ho.js +0 -2788
  101. package/dist/client/eox-stacinfo-l7ALSV90.js +0 -13969
  102. package/dist/client/forwardRefs-BJJiadQP.js +0 -185
  103. package/dist/client/index-Q-bHLjxx.js +0 -153
  104. package/dist/client/jpeg-BAgeD1d3-oeHbFPUL.js +0 -514
  105. package/dist/client/lerc-DzVumYtB-P-KXC0TO.js +0 -1027
  106. package/dist/client/lzw-LAGDNbSC-DkP96qO9.js +0 -84
  107. package/dist/client/packbits-BlDR4Kj5-C66n1-zr.js +0 -24
  108. package/dist/client/pako.esm-CB1uQYY0-DB0PYm1P.js +0 -1081
  109. package/dist/client/raw-CMGvRjfu-BRi6E4i1.js +0 -9
  110. package/dist/client/ssrBoot-yo11mybw.js +0 -17
  111. package/dist/client/transition-CSJhuYGK.js +0 -34
  112. package/dist/client/webfontloader-qotgY98I.js +0 -435
  113. package/dist/client/webimage-BM_pbLN3-L2cGWK5l.js +0 -19
@@ -1,9 +0,0 @@
1
- import { g as d } from "./basedecoder-DHcBySSe-BmCFNFnw.js";
2
- class t extends d {
3
- decodeBlock(e) {
4
- return e;
5
- }
6
- }
7
- export {
8
- t as default
9
- };
@@ -1,17 +0,0 @@
1
- import { s, Z as t, c as e, as as n } from "./asWebComponent-B91uK0U7.js";
2
- function i() {
3
- const o = s(!1);
4
- return t(() => {
5
- window.requestAnimationFrame(() => {
6
- o.value = !0;
7
- });
8
- }), {
9
- ssrBootStyles: e(() => o.value ? void 0 : {
10
- transition: "none !important"
11
- }),
12
- isBooted: n(o)
13
- };
14
- }
15
- export {
16
- i as u
17
- };
@@ -1,34 +0,0 @@
1
- import { p as f, ay as m, d, bb as l, ab as u } from "./asWebComponent-B91uK0U7.js";
2
- const j = f({
3
- transition: {
4
- type: [Boolean, String, Object],
5
- default: "fade-transition",
6
- validator: (o) => o !== !0
7
- }
8
- }, "transition"), T = (o, s) => {
9
- let {
10
- slots: e
11
- } = s;
12
- const {
13
- transition: t,
14
- disabled: n,
15
- group: r,
16
- ...a
17
- } = o, {
18
- component: i = r ? l : u,
19
- ...p
20
- } = typeof t == "object" ? t : {};
21
- return m(i, d(typeof t == "string" ? {
22
- name: n ? "" : t
23
- } : p, typeof t == "string" ? {} : Object.fromEntries(Object.entries({
24
- disabled: n,
25
- group: r
26
- }).filter((c) => {
27
- let [y, b] = c;
28
- return b !== void 0;
29
- })), a), e);
30
- };
31
- export {
32
- T as M,
33
- j as m
34
- };
@@ -1,435 +0,0 @@
1
- import { g as Ft } from "./_commonjsHelpers-DaMA6jEr.js";
2
- var ot = { exports: {} };
3
- (function(O) {
4
- (function() {
5
- function st(t, n, e) {
6
- return t.call.apply(t.bind, arguments);
7
- }
8
- function rt(t, n, e) {
9
- if (!t) throw Error();
10
- if (2 < arguments.length) {
11
- var i = Array.prototype.slice.call(arguments, 2);
12
- return function() {
13
- var o = Array.prototype.slice.call(arguments);
14
- return Array.prototype.unshift.apply(o, i), t.apply(n, o);
15
- };
16
- }
17
- return function() {
18
- return t.apply(n, arguments);
19
- };
20
- }
21
- function v(t, n, e) {
22
- return v = Function.prototype.bind && Function.prototype.bind.toString().indexOf("native code") != -1 ? st : rt, v.apply(null, arguments);
23
- }
24
- var x = Date.now || function() {
25
- return +/* @__PURE__ */ new Date();
26
- };
27
- function at(t, n) {
28
- this.a = t, this.o = n || t, this.c = this.o.document;
29
- }
30
- var ft = !!window.FontFace;
31
- function A(t, n, e, i) {
32
- if (n = t.c.createElement(n), e) for (var o in e) e.hasOwnProperty(o) && (o == "style" ? n.style.cssText = e[o] : n.setAttribute(o, e[o]));
33
- return i && n.appendChild(t.c.createTextNode(i)), n;
34
- }
35
- function I(t, n, e) {
36
- t = t.c.getElementsByTagName(n)[0], t || (t = document.documentElement), t.insertBefore(e, t.lastChild);
37
- }
38
- function j(t) {
39
- t.parentNode && t.parentNode.removeChild(t);
40
- }
41
- function d(t, n, e) {
42
- n = n || [], e = e || [];
43
- for (var i = t.className.split(/\s+/), o = 0; o < n.length; o += 1) {
44
- for (var s = !1, r = 0; r < i.length; r += 1) if (n[o] === i[r]) {
45
- s = !0;
46
- break;
47
- }
48
- s || i.push(n[o]);
49
- }
50
- for (n = [], o = 0; o < i.length; o += 1) {
51
- for (s = !1, r = 0; r < e.length; r += 1) if (i[o] === e[r]) {
52
- s = !0;
53
- break;
54
- }
55
- s || n.push(i[o]);
56
- }
57
- t.className = n.join(" ").replace(/\s+/g, " ").replace(/^\s+|\s+$/, "");
58
- }
59
- function P(t, n) {
60
- for (var e = t.className.split(/\s+/), i = 0, o = e.length; i < o; i++) if (e[i] == n) return !0;
61
- return !1;
62
- }
63
- function ct(t) {
64
- return t.o.location.hostname || t.a.location.hostname;
65
- }
66
- function B(t, n, e) {
67
- function i() {
68
- a && o && s && (a(r), a = null);
69
- }
70
- n = A(t, "link", { rel: "stylesheet", href: n, media: "all" });
71
- var o = !1, s = !0, r = null, a = e || null;
72
- ft ? (n.onload = function() {
73
- o = !0, i();
74
- }, n.onerror = function() {
75
- o = !0, r = Error("Stylesheet failed to load"), i();
76
- }) : setTimeout(function() {
77
- o = !0, i();
78
- }, 0), I(t, "head", n);
79
- }
80
- function b(t, n, e, i) {
81
- var o = t.c.getElementsByTagName("head")[0];
82
- if (o) {
83
- var s = A(t, "script", { src: n }), r = !1;
84
- return s.onload = s.onreadystatechange = function() {
85
- r || this.readyState && this.readyState != "loaded" && this.readyState != "complete" || (r = !0, e && e(null), s.onload = s.onreadystatechange = null, s.parentNode.tagName == "HEAD" && o.removeChild(s));
86
- }, o.appendChild(s), setTimeout(function() {
87
- r || (r = !0, e && e(Error("Script load timeout")));
88
- }, i || 5e3), s;
89
- }
90
- return null;
91
- }
92
- function k() {
93
- this.a = 0, this.c = null;
94
- }
95
- function D(t) {
96
- return t.a++, function() {
97
- t.a--, $(t);
98
- };
99
- }
100
- function L(t, n) {
101
- t.c = n, $(t);
102
- }
103
- function $(t) {
104
- t.a == 0 && t.c && (t.c(), t.c = null);
105
- }
106
- function q(t) {
107
- this.a = t || "-";
108
- }
109
- q.prototype.c = function(t) {
110
- for (var n = [], e = 0; e < arguments.length; e++) n.push(arguments[e].replace(/[\W_]+/g, "").toLowerCase());
111
- return n.join(this.a);
112
- };
113
- function p(t, n) {
114
- this.c = t, this.f = 4, this.a = "n";
115
- var e = (n || "n4").match(/^([nio])([1-9])$/i);
116
- e && (this.a = e[1], this.f = parseInt(e[2], 10));
117
- }
118
- function ht(t) {
119
- return H(t) + " " + (t.f + "00") + " 300px " + z(t.c);
120
- }
121
- function z(t) {
122
- var n = [];
123
- t = t.split(/,\s*/);
124
- for (var e = 0; e < t.length; e++) {
125
- var i = t[e].replace(/['"]/g, "");
126
- i.indexOf(" ") != -1 || /^\d/.test(i) ? n.push("'" + i + "'") : n.push(i);
127
- }
128
- return n.join(",");
129
- }
130
- function l(t) {
131
- return t.a + t.f;
132
- }
133
- function H(t) {
134
- var n = "normal";
135
- return t.a === "o" ? n = "oblique" : t.a === "i" && (n = "italic"), n;
136
- }
137
- function ut(t) {
138
- var n = 4, e = "n", i = null;
139
- return t && ((i = t.match(/(normal|oblique|italic)/i)) && i[1] && (e = i[1].substr(0, 1).toLowerCase()), (i = t.match(/([1-9]00|normal|bold)/i)) && i[1] && (/bold/i.test(i[1]) ? n = 7 : /[1-9]00/.test(i[1]) && (n = parseInt(i[1].substr(0, 1), 10)))), e + n;
140
- }
141
- function lt(t, n) {
142
- this.c = t, this.f = t.o.document.documentElement, this.h = n, this.a = new q("-"), this.j = n.events !== !1, this.g = n.classes !== !1;
143
- }
144
- function pt(t) {
145
- t.g && d(t.f, [t.a.c("wf", "loading")]), w(t, "loading");
146
- }
147
- function M(t) {
148
- if (t.g) {
149
- var n = P(t.f, t.a.c("wf", "active")), e = [], i = [t.a.c("wf", "loading")];
150
- n || e.push(t.a.c("wf", "inactive")), d(t.f, e, i);
151
- }
152
- w(t, "inactive");
153
- }
154
- function w(t, n, e) {
155
- t.j && t.h[n] && (e ? t.h[n](e.c, l(e)) : t.h[n]());
156
- }
157
- function gt() {
158
- this.c = {};
159
- }
160
- function vt(t, n, e) {
161
- var i = [], o;
162
- for (o in n) if (n.hasOwnProperty(o)) {
163
- var s = t.c[o];
164
- s && i.push(s(n[o], e));
165
- }
166
- return i;
167
- }
168
- function _(t, n) {
169
- this.c = t, this.f = n, this.a = A(this.c, "span", { "aria-hidden": "true" }, this.f);
170
- }
171
- function T(t) {
172
- I(t.c, "body", t.a);
173
- }
174
- function S(t) {
175
- return "display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:" + z(t.c) + ";" + ("font-style:" + H(t) + ";font-weight:" + (t.f + "00") + ";");
176
- }
177
- function G(t, n, e, i, o, s) {
178
- this.g = t, this.j = n, this.a = i, this.c = e, this.f = o || 3e3, this.h = s || void 0;
179
- }
180
- G.prototype.start = function() {
181
- var t = this.c.o.document, n = this, e = x(), i = new Promise(function(r, a) {
182
- function f() {
183
- x() - e >= n.f ? a() : t.fonts.load(ht(n.a), n.h).then(function(c) {
184
- 1 <= c.length ? r() : setTimeout(f, 25);
185
- }, function() {
186
- a();
187
- });
188
- }
189
- f();
190
- }), o = null, s = new Promise(function(r, a) {
191
- o = setTimeout(a, n.f);
192
- });
193
- Promise.race([s, i]).then(function() {
194
- o && (clearTimeout(o), o = null), n.g(n.a);
195
- }, function() {
196
- n.j(n.a);
197
- });
198
- };
199
- function K(t, n, e, i, o, s, r) {
200
- this.v = t, this.B = n, this.c = e, this.a = i, this.s = r || "BESbswy", this.f = {}, this.w = o || 3e3, this.u = s || null, this.m = this.j = this.h = this.g = null, this.g = new _(this.c, this.s), this.h = new _(this.c, this.s), this.j = new _(this.c, this.s), this.m = new _(this.c, this.s), t = new p(this.a.c + ",serif", l(this.a)), t = S(t), this.g.a.style.cssText = t, t = new p(this.a.c + ",sans-serif", l(this.a)), t = S(t), this.h.a.style.cssText = t, t = new p("serif", l(this.a)), t = S(t), this.j.a.style.cssText = t, t = new p("sans-serif", l(this.a)), t = S(t), this.m.a.style.cssText = t, T(this.g), T(this.h), T(this.j), T(this.m);
201
- }
202
- var E = { D: "serif", C: "sans-serif" }, N = null;
203
- function R() {
204
- if (N === null) {
205
- var t = /AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);
206
- N = !!t && (536 > parseInt(t[1], 10) || parseInt(t[1], 10) === 536 && 11 >= parseInt(t[2], 10));
207
- }
208
- return N;
209
- }
210
- K.prototype.start = function() {
211
- this.f.serif = this.j.a.offsetWidth, this.f["sans-serif"] = this.m.a.offsetWidth, this.A = x(), V(this);
212
- };
213
- function U(t, n, e) {
214
- for (var i in E) if (E.hasOwnProperty(i) && n === t.f[E[i]] && e === t.f[E[i]]) return !0;
215
- return !1;
216
- }
217
- function V(t) {
218
- var n = t.g.a.offsetWidth, e = t.h.a.offsetWidth, i;
219
- (i = n === t.f.serif && e === t.f["sans-serif"]) || (i = R() && U(t, n, e)), i ? x() - t.A >= t.w ? R() && U(t, n, e) && (t.u === null || t.u.hasOwnProperty(t.a.c)) ? F(t, t.v) : F(t, t.B) : mt(t) : F(t, t.v);
220
- }
221
- function mt(t) {
222
- setTimeout(v(function() {
223
- V(this);
224
- }, t), 50);
225
- }
226
- function F(t, n) {
227
- setTimeout(v(function() {
228
- j(this.g.a), j(this.h.a), j(this.j.a), j(this.m.a), n(this.a);
229
- }, t), 0);
230
- }
231
- function W(t, n, e) {
232
- this.c = t, this.a = n, this.f = 0, this.m = this.j = !1, this.s = e;
233
- }
234
- var C = null;
235
- W.prototype.g = function(t) {
236
- var n = this.a;
237
- n.g && d(n.f, [n.a.c("wf", t.c, l(t).toString(), "active")], [n.a.c("wf", t.c, l(t).toString(), "loading"), n.a.c("wf", t.c, l(t).toString(), "inactive")]), w(n, "fontactive", t), this.m = !0, X(this);
238
- }, W.prototype.h = function(t) {
239
- var n = this.a;
240
- if (n.g) {
241
- var e = P(n.f, n.a.c("wf", t.c, l(t).toString(), "active")), i = [], o = [n.a.c("wf", t.c, l(t).toString(), "loading")];
242
- e || i.push(n.a.c("wf", t.c, l(t).toString(), "inactive")), d(n.f, i, o);
243
- }
244
- w(n, "fontinactive", t), X(this);
245
- };
246
- function X(t) {
247
- --t.f == 0 && t.j && (t.m ? (t = t.a, t.g && d(t.f, [t.a.c("wf", "active")], [t.a.c("wf", "loading"), t.a.c("wf", "inactive")]), w(t, "active")) : M(t.a));
248
- }
249
- function J(t) {
250
- this.j = t, this.a = new gt(), this.h = 0, this.f = this.g = !0;
251
- }
252
- J.prototype.load = function(t) {
253
- this.c = new at(this.j, t.context || this.j), this.g = t.events !== !1, this.f = t.classes !== !1, wt(this, new lt(this.c, t), t);
254
- };
255
- function dt(t, n, e, i, o) {
256
- var s = --t.h == 0;
257
- (t.f || t.g) && setTimeout(function() {
258
- var r = o || null, a = i || null || {};
259
- if (e.length === 0 && s) M(n.a);
260
- else {
261
- n.f += e.length, s && (n.j = s);
262
- var f, c = [];
263
- for (f = 0; f < e.length; f++) {
264
- var h = e[f], u = a[h.c], g = n.a, y = h;
265
- if (g.g && d(g.f, [g.a.c("wf", y.c, l(y).toString(), "loading")]), w(g, "fontloading", y), g = null, C === null) if (window.FontFace) {
266
- var y = /Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent), Nt = /OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent) && /Apple/.exec(window.navigator.vendor);
267
- C = y ? 42 < parseInt(y[1], 10) : !Nt;
268
- } else C = !1;
269
- C ? g = new G(v(n.g, n), v(n.h, n), n.c, h, n.s, u) : g = new K(v(n.g, n), v(n.h, n), n.c, h, n.s, r, u), c.push(g);
270
- }
271
- for (f = 0; f < c.length; f++) c[f].start();
272
- }
273
- }, 0);
274
- }
275
- function wt(t, n, e) {
276
- var o = [], i = e.timeout;
277
- pt(n);
278
- var o = vt(t.a, e, t.c), s = new W(t.c, n, i);
279
- for (t.h = o.length, n = 0, e = o.length; n < e; n++) o[n].load(function(r, a, f) {
280
- dt(t, s, r, a, f);
281
- });
282
- }
283
- function Q(t, n) {
284
- this.c = t, this.a = n;
285
- }
286
- Q.prototype.load = function(t) {
287
- function n() {
288
- if (s["__mti_fntLst" + i]) {
289
- var r = s["__mti_fntLst" + i](), a = [], f;
290
- if (r) for (var c = 0; c < r.length; c++) {
291
- var h = r[c].fontfamily;
292
- r[c].fontStyle != null && r[c].fontWeight != null ? (f = r[c].fontStyle + r[c].fontWeight, a.push(new p(h, f))) : a.push(new p(h));
293
- }
294
- t(a);
295
- } else setTimeout(function() {
296
- n();
297
- }, 50);
298
- }
299
- var e = this, i = e.a.projectId, o = e.a.version;
300
- if (i) {
301
- var s = e.c.o;
302
- b(this.c, (e.a.api || "https://fast.fonts.net/jsapi") + "/" + i + ".js" + (o ? "?v=" + o : ""), function(r) {
303
- r ? t([]) : (s["__MonotypeConfiguration__" + i] = function() {
304
- return e.a;
305
- }, n());
306
- }).id = "__MonotypeAPIScript__" + i;
307
- } else t([]);
308
- };
309
- function Y(t, n) {
310
- this.c = t, this.a = n;
311
- }
312
- Y.prototype.load = function(t) {
313
- var n, e, i = this.a.urls || [], o = this.a.families || [], s = this.a.testStrings || {}, r = new k();
314
- for (n = 0, e = i.length; n < e; n++) B(this.c, i[n], D(r));
315
- var a = [];
316
- for (n = 0, e = o.length; n < e; n++) if (i = o[n].split(":"), i[1]) for (var f = i[1].split(","), c = 0; c < f.length; c += 1) a.push(new p(i[0], f[c]));
317
- else a.push(new p(i[0]));
318
- L(r, function() {
319
- t(a, s);
320
- });
321
- };
322
- function yt(t, n) {
323
- t ? this.c = t : this.c = xt, this.a = [], this.f = [], this.g = n || "";
324
- }
325
- var xt = "https://fonts.googleapis.com/css";
326
- function jt(t, n) {
327
- for (var e = n.length, i = 0; i < e; i++) {
328
- var o = n[i].split(":");
329
- o.length == 3 && t.f.push(o.pop());
330
- var s = "";
331
- o.length == 2 && o[1] != "" && (s = ":"), t.a.push(o.join(s));
332
- }
333
- }
334
- function _t(t) {
335
- if (t.a.length == 0) throw Error("No fonts to load!");
336
- if (t.c.indexOf("kit=") != -1) return t.c;
337
- for (var n = t.a.length, e = [], i = 0; i < n; i++) e.push(t.a[i].replace(/ /g, "+"));
338
- return n = t.c + "?family=" + e.join("%7C"), 0 < t.f.length && (n += "&subset=" + t.f.join(",")), 0 < t.g.length && (n += "&text=" + encodeURIComponent(t.g)), n;
339
- }
340
- function Tt(t) {
341
- this.f = t, this.a = [], this.c = {};
342
- }
343
- var Z = { latin: "BESbswy", "latin-ext": "çöüğş", cyrillic: "йяЖ", greek: "αβΣ", khmer: "កខគ", Hanuman: "កខគ" }, St = { thin: "1", extralight: "2", "extra-light": "2", ultralight: "2", "ultra-light": "2", light: "3", regular: "4", book: "4", medium: "5", "semi-bold": "6", semibold: "6", "demi-bold": "6", demibold: "6", bold: "7", "extra-bold": "8", extrabold: "8", "ultra-bold": "8", ultrabold: "8", black: "9", heavy: "9", l: "3", r: "4", b: "7" }, Et = { i: "i", italic: "i", n: "n", normal: "n" }, Ct = /^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;
344
- function At(t) {
345
- for (var n = t.f.length, e = 0; e < n; e++) {
346
- var i = t.f[e].split(":"), o = i[0].replace(/\+/g, " "), s = ["n4"];
347
- if (2 <= i.length) {
348
- var r, a = i[1];
349
- if (r = [], a) for (var a = a.split(","), f = a.length, c = 0; c < f; c++) {
350
- var h;
351
- if (h = a[c], h.match(/^[\w-]+$/)) {
352
- var u = Ct.exec(h.toLowerCase());
353
- if (u == null) h = "";
354
- else {
355
- if (h = u[2], h = h == null || h == "" ? "n" : Et[h], u = u[1], u == null || u == "") u = "4";
356
- else var g = St[u], u = g || (isNaN(u) ? "4" : u.substr(0, 1));
357
- h = [h, u].join("");
358
- }
359
- } else h = "";
360
- h && r.push(h);
361
- }
362
- 0 < r.length && (s = r), i.length == 3 && (i = i[2], r = [], i = i ? i.split(",") : r, 0 < i.length && (i = Z[i[0]]) && (t.c[o] = i));
363
- }
364
- for (t.c[o] || (i = Z[o]) && (t.c[o] = i), i = 0; i < s.length; i += 1) t.a.push(new p(o, s[i]));
365
- }
366
- }
367
- function tt(t, n) {
368
- this.c = t, this.a = n;
369
- }
370
- var bt = { Arimo: !0, Cousine: !0, Tinos: !0 };
371
- tt.prototype.load = function(t) {
372
- var n = new k(), e = this.c, i = new yt(this.a.api, this.a.text), o = this.a.families;
373
- jt(i, o);
374
- var s = new Tt(o);
375
- At(s), B(e, _t(i), D(n)), L(n, function() {
376
- t(s.a, s.c, bt);
377
- });
378
- };
379
- function nt(t, n) {
380
- this.c = t, this.a = n;
381
- }
382
- nt.prototype.load = function(t) {
383
- var n = this.a.id, e = this.c.o;
384
- n ? b(this.c, (this.a.api || "https://use.typekit.net") + "/" + n + ".js", function(i) {
385
- if (i) t([]);
386
- else if (e.Typekit && e.Typekit.config && e.Typekit.config.fn) {
387
- i = e.Typekit.config.fn;
388
- for (var o = [], s = 0; s < i.length; s += 2) for (var r = i[s], a = i[s + 1], f = 0; f < a.length; f++) o.push(new p(r, a[f]));
389
- try {
390
- e.Typekit.load({ events: !1, classes: !1, async: !0 });
391
- } catch {
392
- }
393
- t(o);
394
- }
395
- }, 2e3) : t([]);
396
- };
397
- function it(t, n) {
398
- this.c = t, this.f = n, this.a = [];
399
- }
400
- it.prototype.load = function(t) {
401
- var n = this.f.id, e = this.c.o, i = this;
402
- n ? (e.__webfontfontdeckmodule__ || (e.__webfontfontdeckmodule__ = {}), e.__webfontfontdeckmodule__[n] = function(o, s) {
403
- for (var r = 0, a = s.fonts.length; r < a; ++r) {
404
- var f = s.fonts[r];
405
- i.a.push(new p(f.name, ut("font-weight:" + f.weight + ";font-style:" + f.style)));
406
- }
407
- t(i.a);
408
- }, b(this.c, (this.f.api || "https://f.fontdeck.com/s/css/js/") + ct(this.c) + "/" + n + ".js", function(o) {
409
- o && t([]);
410
- })) : t([]);
411
- };
412
- var m = new J(window);
413
- m.a.c.custom = function(t, n) {
414
- return new Y(n, t);
415
- }, m.a.c.fontdeck = function(t, n) {
416
- return new it(n, t);
417
- }, m.a.c.monotype = function(t, n) {
418
- return new Q(n, t);
419
- }, m.a.c.typekit = function(t, n) {
420
- return new nt(n, t);
421
- }, m.a.c.google = function(t, n) {
422
- return new tt(n, t);
423
- };
424
- var et = { load: v(m.load, m) };
425
- O.exports ? O.exports = et : (window.WebFont = et, window.WebFontConfig && m.load(window.WebFontConfig));
426
- })();
427
- })(ot);
428
- var Wt = ot.exports;
429
- const Ot = /* @__PURE__ */ Ft(Wt), Pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
430
- __proto__: null,
431
- default: Ot
432
- }, Symbol.toStringTag, { value: "Module" }));
433
- export {
434
- Pt as w
435
- };
@@ -1,19 +0,0 @@
1
- import { g as r } from "./basedecoder-DHcBySSe-BmCFNFnw.js";
2
- class d extends r {
3
- constructor() {
4
- if (super(), typeof createImageBitmap > "u")
5
- throw new Error("Cannot decode WebImage as `createImageBitmap` is not available");
6
- if (typeof document > "u" && typeof OffscreenCanvas > "u")
7
- throw new Error("Cannot decode WebImage as neither `document` nor `OffscreenCanvas` is not available");
8
- }
9
- async decode(i, n) {
10
- const o = new Blob([n]), e = await createImageBitmap(o);
11
- let t;
12
- typeof document < "u" ? (t = document.createElement("canvas"), t.width = e.width, t.height = e.height) : t = new OffscreenCanvas(e.width, e.height);
13
- const a = t.getContext("2d");
14
- return a.drawImage(e, 0, 0), a.getImageData(0, 0, e.width, e.height).data.buffer;
15
- }
16
- }
17
- export {
18
- d as default
19
- };