ds-one 0.3.0-alpha.1 → 0.3.0-alpha.2
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/DS1/0-face/device.ts +180 -34
- package/DS1/1-root/one.css +1 -1
- package/DS1/index.ts +0 -1
- package/README.md +2 -2
- package/dist/0-face/device.d.ts +47 -1
- package/dist/0-face/device.d.ts.map +1 -1
- package/dist/0-face/device.js +132 -25
- package/dist/ds-one.bundle.js +1421 -1436
- package/dist/ds-one.bundle.js.map +1 -1
- package/dist/ds-one.bundle.min.js +1206 -1217
- package/dist/ds-one.bundle.min.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/package.json +1 -1
- package/DS1/0-face/scaling.ts +0 -152
- package/dist/0-face/scaling.d.ts +0 -48
- package/dist/0-face/scaling.d.ts.map +0 -1
- package/dist/0-face/scaling.js +0 -114
- package/dist/2-core/styles/ds-banner.css +0 -77
- package/dist/2-core/styles/ds-button.css +0 -67
- package/dist/2-core/styles/ds-cycle.css +0 -21
- package/dist/2-core/styles/ds-date.css +0 -9
- package/dist/2-core/styles/ds-gap.css +0 -93
- package/dist/2-core/styles/ds-icon.css +0 -30
- package/dist/2-core/styles/ds-input.css +0 -46
- package/dist/2-core/styles/ds-pagedots.css +0 -26
- package/dist/2-core/styles/ds-text.css +0 -29
- package/dist/2-core/styles/ds-tooltip.css +0 -49
- package/dist/3-unit/styles/ds-accordion.css +0 -46
- package/dist/3-unit/styles/ds-list.css +0 -9
- package/dist/3-unit/styles/ds-row.css +0 -19
- package/dist/3-unit/styles/ds-table.css +0 -80
- package/dist/4-page/styles/ds-container.css +0 -35
- package/dist/4-page/styles/ds-grid.css +0 -56
- package/dist/4-page/styles/ds-layout.css +0 -251
- package/dist/ds-one.bundle.css +0 -700
- package/dist/ds-one.bundle.css.map +0 -7
- package/dist/ds-one.bundle.min.css +0 -2
- package/dist/ds-one.bundle.min.css.map +0 -7
|
@@ -1,494 +1,215 @@
|
|
|
1
|
-
|
|
2
|
-
if (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return
|
|
1
|
+
var ir = Object.defineProperty, sr = (t, e, r) => e in t ? ir(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Le = (t, e, r) => (sr(t, typeof e != "symbol" ? e + "" : e, r), r), ar = (t, e, r) => {
|
|
2
|
+
if (!e.has(t))
|
|
3
|
+
throw TypeError("Cannot " + r);
|
|
4
|
+
}, Ee = (t, e) => {
|
|
5
|
+
if (Object(e) !== e)
|
|
6
|
+
throw TypeError('Cannot use the "in" operator on this value');
|
|
7
|
+
return t.has(e);
|
|
8
|
+
}, oe = (t, e, r) => {
|
|
9
|
+
if (e.has(t))
|
|
10
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
11
|
+
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
12
|
+
}, vt = (t, e, r) => (ar(t, e, "access private method"), r);
|
|
13
|
+
/**
|
|
14
|
+
* @license
|
|
15
|
+
* Copyright Google LLC All Rights Reserved.
|
|
16
|
+
*
|
|
17
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
18
|
+
* found in the LICENSE file at https://angular.io/license
|
|
19
|
+
*/
|
|
20
|
+
function Bt(t, e) {
|
|
21
|
+
return Object.is(t, e);
|
|
8
22
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
23
|
+
/**
|
|
24
|
+
* @license
|
|
25
|
+
* Copyright Google LLC All Rights Reserved.
|
|
26
|
+
*
|
|
27
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
28
|
+
* found in the LICENSE file at https://angular.io/license
|
|
29
|
+
*/
|
|
30
|
+
let w = null, U = !1, ie = 1;
|
|
31
|
+
const le = /* @__PURE__ */ Symbol("SIGNAL");
|
|
32
|
+
function z(t) {
|
|
33
|
+
const e = w;
|
|
34
|
+
return w = t, e;
|
|
21
35
|
}
|
|
22
|
-
function
|
|
23
|
-
|
|
24
|
-
if (t.isMobile && typeof document < "u") {
|
|
25
|
-
const o = t.screenWidth / 280;
|
|
26
|
-
document.documentElement.style.setProperty(
|
|
27
|
-
"--sf",
|
|
28
|
-
o.toFixed(3)
|
|
29
|
-
), document.documentElement.style.setProperty(
|
|
30
|
-
"--sf",
|
|
31
|
-
o.toFixed(3)
|
|
32
|
-
), document.documentElement.classList.add("mobile"), document.documentElement.classList.remove("desktop"), console.log(
|
|
33
|
-
`[DS one] Mobile device detected - ${t.deviceType} (${t.screenWidth}x${t.screenHeight}), scaling factor: ${o.toFixed(2)}`
|
|
34
|
-
);
|
|
35
|
-
} else
|
|
36
|
-
typeof document < "u" && (document.documentElement.style.setProperty("--sf", "1"), document.documentElement.style.setProperty("--sf", "1"), document.documentElement.classList.add("desktop"), document.documentElement.classList.remove("mobile")), console.log(
|
|
37
|
-
`[DS one] Desktop device detected (${t.screenWidth}x${t.screenHeight})`
|
|
38
|
-
);
|
|
39
|
-
return typeof window < "u" && window.DS_ONE_DEBUG && console.log("[DS one] Device Info:", {
|
|
40
|
-
type: t.deviceType,
|
|
41
|
-
isMobile: t.isMobile,
|
|
42
|
-
isTablet: t.isTablet,
|
|
43
|
-
isDesktop: t.isDesktop,
|
|
44
|
-
isTouchCapable: t.isTouchCapable,
|
|
45
|
-
viewport: `${t.screenWidth}x${t.screenHeight}`,
|
|
46
|
-
userAgent: t.userAgent
|
|
47
|
-
}), t;
|
|
36
|
+
function lr() {
|
|
37
|
+
return w;
|
|
48
38
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
Le();
|
|
52
|
-
}) : Le();
|
|
53
|
-
let t;
|
|
54
|
-
window.addEventListener("resize", () => {
|
|
55
|
-
clearTimeout(t), t = setTimeout(() => {
|
|
56
|
-
Le();
|
|
57
|
-
}, 100);
|
|
58
|
-
});
|
|
39
|
+
function cr() {
|
|
40
|
+
return U;
|
|
59
41
|
}
|
|
60
|
-
|
|
61
|
-
|
|
42
|
+
const rt = {
|
|
43
|
+
version: 0,
|
|
44
|
+
lastCleanEpoch: 0,
|
|
45
|
+
dirty: !1,
|
|
46
|
+
producerNode: void 0,
|
|
47
|
+
producerLastReadVersion: void 0,
|
|
48
|
+
producerIndexOfThis: void 0,
|
|
49
|
+
nextProducerIndex: 0,
|
|
50
|
+
liveConsumerNode: void 0,
|
|
51
|
+
liveConsumerIndexOfThis: void 0,
|
|
52
|
+
consumerAllowSignalWrites: !1,
|
|
53
|
+
consumerIsAlwaysLive: !1,
|
|
54
|
+
producerMustRecompute: () => !1,
|
|
55
|
+
producerRecomputeValue: () => {
|
|
56
|
+
},
|
|
57
|
+
consumerMarkedDirty: () => {
|
|
58
|
+
},
|
|
59
|
+
consumerOnSignalRead: () => {
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
function _e(t) {
|
|
63
|
+
if (U)
|
|
64
|
+
throw new Error(
|
|
65
|
+
typeof ngDevMode < "u" && ngDevMode ? "Assertion error: signal read during notification phase" : ""
|
|
66
|
+
);
|
|
67
|
+
if (w === null)
|
|
62
68
|
return;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
e.
|
|
70
|
-
* {
|
|
71
|
-
touch-action: pan-x pan-y !important;
|
|
72
|
-
-ms-touch-action: pan-x pan-y !important;
|
|
73
|
-
}
|
|
74
|
-
html, body {
|
|
75
|
-
touch-action: pan-x pan-y !important;
|
|
76
|
-
-ms-touch-action: pan-x pan-y !important;
|
|
77
|
-
}
|
|
78
|
-
`;
|
|
79
|
-
const r = document.getElementById("ds-one-applike-style");
|
|
80
|
-
r && r.remove(), document.head.appendChild(e);
|
|
81
|
-
let o = 0, n = 0;
|
|
82
|
-
const i = (a) => {
|
|
83
|
-
if (a instanceof TouchEvent) {
|
|
84
|
-
if (a.touches.length > 1) {
|
|
85
|
-
a.preventDefault(), a.stopPropagation();
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
const c = Date.now();
|
|
89
|
-
if (a.type === "touchstart") {
|
|
90
|
-
if (c - o < 300) {
|
|
91
|
-
a.preventDefault(), a.stopPropagation();
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
n = c;
|
|
95
|
-
} else if (a.type === "touchend") {
|
|
96
|
-
if (c - n < 300 && c - o < 300) {
|
|
97
|
-
a.preventDefault(), a.stopPropagation();
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
o = c;
|
|
101
|
-
} else if (a.type === "touchmove" && a.touches.length > 1) {
|
|
102
|
-
a.preventDefault(), a.stopPropagation();
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
if (a instanceof WheelEvent && (a.ctrlKey || a.metaKey)) {
|
|
107
|
-
a.preventDefault(), a.stopPropagation();
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
}, s = { passive: !1, capture: !0 };
|
|
111
|
-
document.addEventListener("touchstart", i, s), document.addEventListener("touchmove", i, s), document.addEventListener("touchend", i, s), document.addEventListener("touchcancel", i, s), document.addEventListener("wheel", i, s), document.addEventListener(
|
|
112
|
-
"gesturestart",
|
|
113
|
-
(a) => {
|
|
114
|
-
a.preventDefault(), a.stopPropagation();
|
|
115
|
-
},
|
|
116
|
-
s
|
|
117
|
-
), document.addEventListener(
|
|
118
|
-
"gesturechange",
|
|
119
|
-
(a) => {
|
|
120
|
-
a.preventDefault(), a.stopPropagation();
|
|
121
|
-
},
|
|
122
|
-
s
|
|
123
|
-
), document.addEventListener(
|
|
124
|
-
"gestureend",
|
|
125
|
-
(a) => {
|
|
126
|
-
a.preventDefault(), a.stopPropagation();
|
|
127
|
-
},
|
|
128
|
-
s
|
|
129
|
-
);
|
|
130
|
-
}
|
|
131
|
-
let ar = {};
|
|
132
|
-
const jt = [
|
|
133
|
-
"da",
|
|
134
|
-
"de",
|
|
135
|
-
"en",
|
|
136
|
-
"es",
|
|
137
|
-
"fr",
|
|
138
|
-
"it",
|
|
139
|
-
"ja",
|
|
140
|
-
"pt",
|
|
141
|
-
"sv",
|
|
142
|
-
"zh"
|
|
143
|
-
], lr = new Map(
|
|
144
|
-
jt.map((t, e) => [t, e])
|
|
145
|
-
), vt = {
|
|
146
|
-
da: "Danish",
|
|
147
|
-
"da-dk": "Danish",
|
|
148
|
-
de: "German",
|
|
149
|
-
"de-de": "German",
|
|
150
|
-
en: "English",
|
|
151
|
-
"en-us": "English",
|
|
152
|
-
es: "Spanish",
|
|
153
|
-
"es-es": "Spanish",
|
|
154
|
-
fr: "French",
|
|
155
|
-
"fr-fr": "French",
|
|
156
|
-
it: "Italian",
|
|
157
|
-
"it-it": "Italian",
|
|
158
|
-
ja: "Japanese",
|
|
159
|
-
"ja-jp": "Japanese",
|
|
160
|
-
pt: "Portuguese",
|
|
161
|
-
"pt-pt": "Portuguese",
|
|
162
|
-
sv: "Swedish",
|
|
163
|
-
"sv-se": "Swedish",
|
|
164
|
-
zh: "Chinese",
|
|
165
|
-
"zh-cn": "Chinese",
|
|
166
|
-
"zh-tw": "Chinese",
|
|
167
|
-
"zh-hans": "Chinese",
|
|
168
|
-
"zh-hant": "Chinese"
|
|
169
|
-
}, ft = /* @__PURE__ */ new Map();
|
|
170
|
-
let wt = !1;
|
|
171
|
-
const Rt = "./translations.json";
|
|
172
|
-
let mt = !1;
|
|
173
|
-
function yt(t) {
|
|
174
|
-
if (!t)
|
|
175
|
-
return null;
|
|
176
|
-
const e = t.trim();
|
|
177
|
-
return e ? e.startsWith("./") || e.startsWith("../") || e.startsWith("/") || /^https?:\/\//i.test(e) ? e : `./${e}` : null;
|
|
178
|
-
}
|
|
179
|
-
function cr() {
|
|
180
|
-
if (typeof document > "u")
|
|
181
|
-
return null;
|
|
182
|
-
const e = document.querySelector(
|
|
183
|
-
"script[data-ds-one-translations]"
|
|
184
|
-
)?.getAttribute(
|
|
185
|
-
"data-ds-one-translations"
|
|
186
|
-
);
|
|
187
|
-
if (e)
|
|
188
|
-
return e;
|
|
189
|
-
const r = document.querySelector('meta[name="ds-one:translations"]')?.getAttribute("content");
|
|
190
|
-
if (r)
|
|
191
|
-
return r;
|
|
192
|
-
const o = document.querySelector('link[rel="ds-one-translations"]')?.getAttribute("href");
|
|
193
|
-
return o || null;
|
|
69
|
+
w.consumerOnSignalRead(t);
|
|
70
|
+
const e = w.nextProducerIndex++;
|
|
71
|
+
if (P(w), e < w.producerNode.length && w.producerNode[e] !== t && Te(w)) {
|
|
72
|
+
const r = w.producerNode[e];
|
|
73
|
+
ke(r, w.producerIndexOfThis[e]);
|
|
74
|
+
}
|
|
75
|
+
w.producerNode[e] !== t && (w.producerNode[e] = t, w.producerIndexOfThis[e] = Te(w) ? Rt(t, w, e) : 0), w.producerLastReadVersion[e] = t.version;
|
|
194
76
|
}
|
|
195
77
|
function dr() {
|
|
196
|
-
|
|
197
|
-
o && t.push(o);
|
|
198
|
-
const n = yt(r ?? "");
|
|
199
|
-
return n && !t.includes(n) && t.push(n), t.length === 0 && t.push(Rt), t;
|
|
78
|
+
ie++;
|
|
200
79
|
}
|
|
201
|
-
function
|
|
202
|
-
|
|
203
|
-
(
|
|
204
|
-
|
|
80
|
+
function Dt(t) {
|
|
81
|
+
if (!(!t.dirty && t.lastCleanEpoch === ie)) {
|
|
82
|
+
if (!t.producerMustRecompute(t) && !vr(t)) {
|
|
83
|
+
t.dirty = !1, t.lastCleanEpoch = ie;
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
t.producerRecomputeValue(t), t.dirty = !1, t.lastCleanEpoch = ie;
|
|
87
|
+
}
|
|
205
88
|
}
|
|
206
|
-
|
|
89
|
+
function jt(t) {
|
|
90
|
+
if (t.liveConsumerNode === void 0)
|
|
91
|
+
return;
|
|
92
|
+
const e = U;
|
|
93
|
+
U = !0;
|
|
207
94
|
try {
|
|
208
|
-
const
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
return hr(r) ? Object.keys(r).length === 0 ? (console.warn(`[DS one] No languages found in ${t}`), null) : r : (console.warn(
|
|
213
|
-
`[DS one] Invalid translation format in ${t}. Expected object with language codes as keys.`
|
|
214
|
-
), null);
|
|
215
|
-
} catch {
|
|
216
|
-
return null;
|
|
95
|
+
for (const r of t.liveConsumerNode)
|
|
96
|
+
r.dirty || ur(r);
|
|
97
|
+
} finally {
|
|
98
|
+
U = e;
|
|
217
99
|
}
|
|
218
100
|
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
return !1;
|
|
222
|
-
if (window.DS_ONE_TRANSLATIONS && Object.keys(window.DS_ONE_TRANSLATIONS).length > 0)
|
|
223
|
-
return console.log(
|
|
224
|
-
`[DS one] Translations already loaded (${Object.keys(window.DS_ONE_TRANSLATIONS).length} languages), skipping auto-load`
|
|
225
|
-
), !0;
|
|
226
|
-
const t = dr();
|
|
227
|
-
for (const e of t) {
|
|
228
|
-
const r = await ur(e);
|
|
229
|
-
if (!r)
|
|
230
|
-
continue;
|
|
231
|
-
window.DS_ONE_TRANSLATIONS = r;
|
|
232
|
-
const o = Object.keys(r);
|
|
233
|
-
return console.log(
|
|
234
|
-
`[DS one] External translations loaded from ${e}: ${o.length} language(s) – ${o.join(", ")}`
|
|
235
|
-
), window.dispatchEvent(new CustomEvent("translations-ready")), !0;
|
|
236
|
-
}
|
|
237
|
-
return console.info(
|
|
238
|
-
`[DS one] No external translations found at ${t[0] ?? Rt}. Using bundled translations.`
|
|
239
|
-
), !1;
|
|
101
|
+
function hr() {
|
|
102
|
+
return w?.consumerAllowSignalWrites !== !1;
|
|
240
103
|
}
|
|
241
|
-
function
|
|
242
|
-
|
|
104
|
+
function ur(t) {
|
|
105
|
+
var e;
|
|
106
|
+
t.dirty = !0, jt(t), (e = t.consumerMarkedDirty) == null || e.call(t.wrapper ?? t);
|
|
243
107
|
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
function X(t) {
|
|
247
|
-
return t ? t.toLowerCase().split(/[-_]/)[0] ?? "" : "";
|
|
248
|
-
}
|
|
249
|
-
function xt(t) {
|
|
250
|
-
const e = X(t), r = lr.get(e);
|
|
251
|
-
return typeof r == "number" ? r : jt.length;
|
|
252
|
-
}
|
|
253
|
-
function Ut(t) {
|
|
254
|
-
return [...t].sort((e, r) => {
|
|
255
|
-
const o = xt(e), n = xt(r);
|
|
256
|
-
return o !== n ? o - n : e.localeCompare(r);
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
function pr(t, e) {
|
|
260
|
-
const r = t?.replace("_", "-");
|
|
261
|
-
if (r)
|
|
262
|
-
try {
|
|
263
|
-
let o = ft.get(r);
|
|
264
|
-
o || (o = new Intl.DisplayNames([r], {
|
|
265
|
-
type: "language"
|
|
266
|
-
}), ft.set(r, o));
|
|
267
|
-
const n = e.replace("_", "-"), i = o.of(n);
|
|
268
|
-
if (i && i !== n)
|
|
269
|
-
return i;
|
|
270
|
-
const s = o.of(X(n));
|
|
271
|
-
if (s)
|
|
272
|
-
return s;
|
|
273
|
-
} catch {
|
|
274
|
-
wt || (console.info(
|
|
275
|
-
"[DS one] Intl.DisplayNames is not available, using fallback language names."
|
|
276
|
-
), wt = !0);
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
function gr(t) {
|
|
280
|
-
const e = t.toLowerCase().replace("_", "-"), r = vt[e];
|
|
281
|
-
if (r)
|
|
282
|
-
return r;
|
|
283
|
-
const o = X(e);
|
|
284
|
-
return vt[o];
|
|
108
|
+
function pr(t) {
|
|
109
|
+
return t && (t.nextProducerIndex = 0), z(t);
|
|
285
110
|
}
|
|
286
|
-
function
|
|
287
|
-
if (!t)
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
if (!s || o.has(s))
|
|
294
|
-
continue;
|
|
295
|
-
o.add(s);
|
|
296
|
-
const a = pr(s, t);
|
|
297
|
-
if (a)
|
|
298
|
-
return a;
|
|
111
|
+
function gr(t, e) {
|
|
112
|
+
if (z(e), !(!t || t.producerNode === void 0 || t.producerIndexOfThis === void 0 || t.producerLastReadVersion === void 0)) {
|
|
113
|
+
if (Te(t))
|
|
114
|
+
for (let r = t.nextProducerIndex; r < t.producerNode.length; r++)
|
|
115
|
+
ke(t.producerNode[r], t.producerIndexOfThis[r]);
|
|
116
|
+
for (; t.producerNode.length > t.nextProducerIndex; )
|
|
117
|
+
t.producerNode.pop(), t.producerLastReadVersion.pop(), t.producerIndexOfThis.pop();
|
|
299
118
|
}
|
|
300
|
-
const n = gr(t);
|
|
301
|
-
if (n)
|
|
302
|
-
return n;
|
|
303
|
-
const i = X(t);
|
|
304
|
-
return i ? i.toUpperCase() : t;
|
|
305
119
|
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
es: "es",
|
|
315
|
-
"es-es": "es",
|
|
316
|
-
"es-mx": "es",
|
|
317
|
-
fr: "fr",
|
|
318
|
-
"fr-fr": "fr",
|
|
319
|
-
it: "it",
|
|
320
|
-
"it-it": "it",
|
|
321
|
-
ja: "ja",
|
|
322
|
-
"ja-jp": "ja",
|
|
323
|
-
pt: "pt",
|
|
324
|
-
"pt-pt": "pt",
|
|
325
|
-
"pt-br": "pt",
|
|
326
|
-
sv: "sv",
|
|
327
|
-
"sv-se": "sv",
|
|
328
|
-
zh: "zh",
|
|
329
|
-
"zh-cn": "zh",
|
|
330
|
-
"zh-hans": "zh",
|
|
331
|
-
"zh-tw": "zh",
|
|
332
|
-
"zh-hant": "zh"
|
|
333
|
-
};
|
|
334
|
-
function kt(t) {
|
|
335
|
-
if (!t)
|
|
336
|
-
return null;
|
|
337
|
-
const e = t.toLowerCase().replace("_", "-"), r = _t[e];
|
|
338
|
-
if (r)
|
|
339
|
-
return r;
|
|
340
|
-
const o = X(e), n = _t[o];
|
|
341
|
-
return n || t;
|
|
120
|
+
function vr(t) {
|
|
121
|
+
P(t);
|
|
122
|
+
for (let e = 0; e < t.producerNode.length; e++) {
|
|
123
|
+
const r = t.producerNode[e], o = t.producerLastReadVersion[e];
|
|
124
|
+
if (o !== r.version || (Dt(r), o !== r.version))
|
|
125
|
+
return !0;
|
|
126
|
+
}
|
|
127
|
+
return !1;
|
|
342
128
|
}
|
|
343
|
-
function
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
if (e)
|
|
350
|
-
return e;
|
|
129
|
+
function Rt(t, e, r) {
|
|
130
|
+
var o;
|
|
131
|
+
if (ot(t), P(t), t.liveConsumerNode.length === 0) {
|
|
132
|
+
(o = t.watched) == null || o.call(t.wrapper);
|
|
133
|
+
for (let n = 0; n < t.producerNode.length; n++)
|
|
134
|
+
t.producerIndexOfThis[n] = Rt(t.producerNode[n], t, n);
|
|
351
135
|
}
|
|
352
|
-
|
|
353
|
-
for (const e of navigator.languages) {
|
|
354
|
-
const r = kt(e);
|
|
355
|
-
if (r)
|
|
356
|
-
return r;
|
|
357
|
-
}
|
|
358
|
-
return C;
|
|
136
|
+
return t.liveConsumerIndexOfThis.push(r), t.liveConsumerNode.push(e) - 1;
|
|
359
137
|
}
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
)
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
set: function(t) {
|
|
366
|
-
this.value = t, localStorage.setItem("language", t), window.dispatchEvent(
|
|
367
|
-
new CustomEvent("language-changed", {
|
|
368
|
-
detail: { language: t },
|
|
369
|
-
bubbles: !0,
|
|
370
|
-
composed: !0
|
|
371
|
-
})
|
|
138
|
+
function ke(t, e) {
|
|
139
|
+
var r;
|
|
140
|
+
if (ot(t), P(t), typeof ngDevMode < "u" && ngDevMode && e >= t.liveConsumerNode.length)
|
|
141
|
+
throw new Error(
|
|
142
|
+
`Assertion error: active consumer index ${e} is out of bounds of ${t.liveConsumerNode.length} consumers)`
|
|
372
143
|
);
|
|
144
|
+
if (t.liveConsumerNode.length === 1) {
|
|
145
|
+
(r = t.unwatched) == null || r.call(t.wrapper);
|
|
146
|
+
for (let n = 0; n < t.producerNode.length; n++)
|
|
147
|
+
ke(t.producerNode[n], t.producerIndexOfThis[n]);
|
|
148
|
+
}
|
|
149
|
+
const o = t.liveConsumerNode.length - 1;
|
|
150
|
+
if (t.liveConsumerNode[e] = t.liveConsumerNode[o], t.liveConsumerIndexOfThis[e] = t.liveConsumerIndexOfThis[o], t.liveConsumerNode.length--, t.liveConsumerIndexOfThis.length--, e < t.liveConsumerNode.length) {
|
|
151
|
+
const n = t.liveConsumerIndexOfThis[e], i = t.liveConsumerNode[e];
|
|
152
|
+
P(i), i.producerIndexOfThis[n] = e;
|
|
373
153
|
}
|
|
374
|
-
};
|
|
375
|
-
typeof window < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", () => {
|
|
376
|
-
bt();
|
|
377
|
-
}) : bt());
|
|
378
|
-
typeof window < "u" && window.addEventListener("translations-ready", () => {
|
|
379
|
-
L = xe(), window.dispatchEvent(new CustomEvent("translations-loaded"));
|
|
380
|
-
const t = k.value;
|
|
381
|
-
window.dispatchEvent(
|
|
382
|
-
new CustomEvent("language-changed", {
|
|
383
|
-
detail: { language: t },
|
|
384
|
-
bubbles: !0,
|
|
385
|
-
composed: !0
|
|
386
|
-
})
|
|
387
|
-
);
|
|
388
|
-
});
|
|
389
|
-
setTimeout(() => {
|
|
390
|
-
window.dispatchEvent(new CustomEvent("translations-loaded"));
|
|
391
|
-
const t = k.value;
|
|
392
|
-
window.dispatchEvent(
|
|
393
|
-
new CustomEvent("language-changed", {
|
|
394
|
-
detail: { language: t },
|
|
395
|
-
bubbles: !0,
|
|
396
|
-
composed: !0
|
|
397
|
-
})
|
|
398
|
-
);
|
|
399
|
-
}, 100);
|
|
400
|
-
function R(t) {
|
|
401
|
-
const e = k.value;
|
|
402
|
-
return L?.[e]?.[t] ? L[e][t] : e !== C && L?.[C]?.[t] ? L[C][t] : (console.warn(
|
|
403
|
-
`[DS one (Internationalization)] No translation found for key "${t}"`
|
|
404
|
-
), t);
|
|
405
|
-
}
|
|
406
|
-
function Zn(t, e = k.value) {
|
|
407
|
-
if (!t)
|
|
408
|
-
return !1;
|
|
409
|
-
const r = L?.[e];
|
|
410
|
-
return !!(r && Object.prototype.hasOwnProperty.call(r, t) || e !== C && L?.[C] && Object.prototype.hasOwnProperty.call(L[C], t));
|
|
411
154
|
}
|
|
412
|
-
function
|
|
413
|
-
|
|
155
|
+
function Te(t) {
|
|
156
|
+
var e;
|
|
157
|
+
return t.consumerIsAlwaysLive || (((e = t?.liveConsumerNode) == null ? void 0 : e.length) ?? 0) > 0;
|
|
414
158
|
}
|
|
415
|
-
function
|
|
416
|
-
|
|
417
|
-
if (t && Object.keys(t).length > 0) {
|
|
418
|
-
const e = Object.keys(t);
|
|
419
|
-
return Promise.resolve(Ut(e));
|
|
420
|
-
}
|
|
421
|
-
return Promise.resolve([C]);
|
|
159
|
+
function P(t) {
|
|
160
|
+
t.producerNode ?? (t.producerNode = []), t.producerIndexOfThis ?? (t.producerIndexOfThis = []), t.producerLastReadVersion ?? (t.producerLastReadVersion = []);
|
|
422
161
|
}
|
|
423
|
-
function
|
|
424
|
-
|
|
425
|
-
return t && Object.keys(t).length > 0 ? Ut(Object.keys(t)) : [C];
|
|
162
|
+
function ot(t) {
|
|
163
|
+
t.liveConsumerNode ?? (t.liveConsumerNode = []), t.liveConsumerIndexOfThis ?? (t.liveConsumerIndexOfThis = []);
|
|
426
164
|
}
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
165
|
+
/**
|
|
166
|
+
* @license
|
|
167
|
+
* Copyright Google LLC All Rights Reserved.
|
|
168
|
+
*
|
|
169
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
170
|
+
* found in the LICENSE file at https://angular.io/license
|
|
171
|
+
*/
|
|
172
|
+
function Ut(t) {
|
|
173
|
+
if (Dt(t), _e(t), t.value === Ne)
|
|
174
|
+
throw t.error;
|
|
175
|
+
return t.value;
|
|
433
176
|
}
|
|
434
|
-
function
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
composed: !0
|
|
440
|
-
})
|
|
441
|
-
);
|
|
177
|
+
function fr(t) {
|
|
178
|
+
const e = Object.create(wr);
|
|
179
|
+
e.computation = t;
|
|
180
|
+
const r = () => Ut(e);
|
|
181
|
+
return r[le] = e, r;
|
|
442
182
|
}
|
|
443
|
-
|
|
444
|
-
|
|
183
|
+
const Se = /* @__PURE__ */ Symbol("UNSET"), Ve = /* @__PURE__ */ Symbol("COMPUTING"), Ne = /* @__PURE__ */ Symbol("ERRORED"), wr = {
|
|
184
|
+
...rt,
|
|
185
|
+
value: Se,
|
|
186
|
+
dirty: !0,
|
|
187
|
+
error: null,
|
|
188
|
+
equal: Bt,
|
|
189
|
+
producerMustRecompute(t) {
|
|
190
|
+
return t.value === Se || t.value === Ve;
|
|
191
|
+
},
|
|
192
|
+
producerRecomputeValue(t) {
|
|
193
|
+
if (t.value === Ve)
|
|
194
|
+
throw new Error("Detected cycle in computations.");
|
|
195
|
+
const e = t.value;
|
|
196
|
+
t.value = Ve;
|
|
197
|
+
const r = pr(t);
|
|
198
|
+
let o, n = !1;
|
|
445
199
|
try {
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
200
|
+
o = t.computation.call(t.wrapper), n = e !== Se && e !== Ne && t.equal.call(t.wrapper, e, o);
|
|
201
|
+
} catch (i) {
|
|
202
|
+
o = Ne, t.error = i;
|
|
203
|
+
} finally {
|
|
204
|
+
gr(t, r);
|
|
450
205
|
}
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
de: "€",
|
|
457
|
-
en: "$",
|
|
458
|
-
pt: "€",
|
|
459
|
-
es: "€",
|
|
460
|
-
zh: "¥",
|
|
461
|
-
ja: "¥",
|
|
462
|
-
ko: "₩"
|
|
463
|
-
};
|
|
464
|
-
function Kn(t) {
|
|
465
|
-
const { language: e, country: r } = t;
|
|
466
|
-
if (r) {
|
|
467
|
-
const n = r.toUpperCase();
|
|
468
|
-
if (n === "US" || n === "USA")
|
|
469
|
-
return "$";
|
|
470
|
-
if (n === "GB" || n === "UK")
|
|
471
|
-
return "£";
|
|
472
|
-
if (n === "JP" || n === "JPN" || n === "CN" || n === "CHN")
|
|
473
|
-
return "¥";
|
|
474
|
-
if (n === "KR" || n === "KOR")
|
|
475
|
-
return "₩";
|
|
206
|
+
if (n) {
|
|
207
|
+
t.value = e;
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
t.value = o, t.version++;
|
|
476
211
|
}
|
|
477
|
-
|
|
478
|
-
return wr[o] || "$";
|
|
479
|
-
}
|
|
480
|
-
var mr = Object.defineProperty, yr = (t, e, r) => e in t ? mr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Ee = (t, e, r) => (yr(t, typeof e != "symbol" ? e + "" : e, r), r), br = (t, e, r) => {
|
|
481
|
-
if (!e.has(t))
|
|
482
|
-
throw TypeError("Cannot " + r);
|
|
483
|
-
}, Se = (t, e) => {
|
|
484
|
-
if (Object(e) !== e)
|
|
485
|
-
throw TypeError('Cannot use the "in" operator on this value');
|
|
486
|
-
return t.has(e);
|
|
487
|
-
}, te = (t, e, r) => {
|
|
488
|
-
if (e.has(t))
|
|
489
|
-
throw TypeError("Cannot add the same private member more than once");
|
|
490
|
-
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
|
491
|
-
}, At = (t, e, r) => (br(t, e, "access private method"), r);
|
|
212
|
+
};
|
|
492
213
|
/**
|
|
493
214
|
* @license
|
|
494
215
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -496,8 +217,12 @@ var mr = Object.defineProperty, yr = (t, e, r) => e in t ? mr(t, e, { enumerable
|
|
|
496
217
|
* Use of this source code is governed by an MIT-style license that can be
|
|
497
218
|
* found in the LICENSE file at https://angular.io/license
|
|
498
219
|
*/
|
|
499
|
-
function
|
|
500
|
-
|
|
220
|
+
function mr() {
|
|
221
|
+
throw new Error();
|
|
222
|
+
}
|
|
223
|
+
let br = mr;
|
|
224
|
+
function yr() {
|
|
225
|
+
br();
|
|
501
226
|
}
|
|
502
227
|
/**
|
|
503
228
|
* @license
|
|
@@ -506,229 +231,25 @@ function qt(t, e) {
|
|
|
506
231
|
* Use of this source code is governed by an MIT-style license that can be
|
|
507
232
|
* found in the LICENSE file at https://angular.io/license
|
|
508
233
|
*/
|
|
509
|
-
|
|
510
|
-
const
|
|
511
|
-
|
|
512
|
-
const
|
|
513
|
-
return
|
|
514
|
-
}
|
|
515
|
-
function xr() {
|
|
516
|
-
return w;
|
|
234
|
+
function xr(t) {
|
|
235
|
+
const e = Object.create(Cr);
|
|
236
|
+
e.value = t;
|
|
237
|
+
const r = () => (_e(e), e.value);
|
|
238
|
+
return r[le] = e, r;
|
|
517
239
|
}
|
|
518
240
|
function _r() {
|
|
519
|
-
return
|
|
241
|
+
return _e(this), this.value;
|
|
520
242
|
}
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
lastCleanEpoch: 0,
|
|
524
|
-
dirty: !1,
|
|
525
|
-
producerNode: void 0,
|
|
526
|
-
producerLastReadVersion: void 0,
|
|
527
|
-
producerIndexOfThis: void 0,
|
|
528
|
-
nextProducerIndex: 0,
|
|
529
|
-
liveConsumerNode: void 0,
|
|
530
|
-
liveConsumerIndexOfThis: void 0,
|
|
531
|
-
consumerAllowSignalWrites: !1,
|
|
532
|
-
consumerIsAlwaysLive: !1,
|
|
533
|
-
producerMustRecompute: () => !1,
|
|
534
|
-
producerRecomputeValue: () => {
|
|
535
|
-
},
|
|
536
|
-
consumerMarkedDirty: () => {
|
|
537
|
-
},
|
|
538
|
-
consumerOnSignalRead: () => {
|
|
539
|
-
}
|
|
540
|
-
};
|
|
541
|
-
function _e(t) {
|
|
542
|
-
if (U)
|
|
543
|
-
throw new Error(
|
|
544
|
-
typeof ngDevMode < "u" && ngDevMode ? "Assertion error: signal read during notification phase" : ""
|
|
545
|
-
);
|
|
546
|
-
if (w === null)
|
|
547
|
-
return;
|
|
548
|
-
w.consumerOnSignalRead(t);
|
|
549
|
-
const e = w.nextProducerIndex++;
|
|
550
|
-
if (P(w), e < w.producerNode.length && w.producerNode[e] !== t && Ne(w)) {
|
|
551
|
-
const r = w.producerNode[e];
|
|
552
|
-
ke(r, w.producerIndexOfThis[e]);
|
|
553
|
-
}
|
|
554
|
-
w.producerNode[e] !== t && (w.producerNode[e] = t, w.producerIndexOfThis[e] = Ne(w) ? Ft(t, w, e) : 0), w.producerLastReadVersion[e] = t.version;
|
|
555
|
-
}
|
|
556
|
-
function kr() {
|
|
557
|
-
oe++;
|
|
558
|
-
}
|
|
559
|
-
function Zt(t) {
|
|
560
|
-
if (!(!t.dirty && t.lastCleanEpoch === oe)) {
|
|
561
|
-
if (!t.producerMustRecompute(t) && !Er(t)) {
|
|
562
|
-
t.dirty = !1, t.lastCleanEpoch = oe;
|
|
563
|
-
return;
|
|
564
|
-
}
|
|
565
|
-
t.producerRecomputeValue(t), t.dirty = !1, t.lastCleanEpoch = oe;
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
function Wt(t) {
|
|
569
|
-
if (t.liveConsumerNode === void 0)
|
|
570
|
-
return;
|
|
571
|
-
const e = U;
|
|
572
|
-
U = !0;
|
|
573
|
-
try {
|
|
574
|
-
for (const r of t.liveConsumerNode)
|
|
575
|
-
r.dirty || $r(r);
|
|
576
|
-
} finally {
|
|
577
|
-
U = e;
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
function Cr() {
|
|
581
|
-
return w?.consumerAllowSignalWrites !== !1;
|
|
582
|
-
}
|
|
583
|
-
function $r(t) {
|
|
584
|
-
var e;
|
|
585
|
-
t.dirty = !0, Wt(t), (e = t.consumerMarkedDirty) == null || e.call(t.wrapper ?? t);
|
|
586
|
-
}
|
|
587
|
-
function Ar(t) {
|
|
588
|
-
return t && (t.nextProducerIndex = 0), z(t);
|
|
589
|
-
}
|
|
590
|
-
function Lr(t, e) {
|
|
591
|
-
if (z(e), !(!t || t.producerNode === void 0 || t.producerIndexOfThis === void 0 || t.producerLastReadVersion === void 0)) {
|
|
592
|
-
if (Ne(t))
|
|
593
|
-
for (let r = t.nextProducerIndex; r < t.producerNode.length; r++)
|
|
594
|
-
ke(t.producerNode[r], t.producerIndexOfThis[r]);
|
|
595
|
-
for (; t.producerNode.length > t.nextProducerIndex; )
|
|
596
|
-
t.producerNode.pop(), t.producerLastReadVersion.pop(), t.producerIndexOfThis.pop();
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
function Er(t) {
|
|
600
|
-
P(t);
|
|
601
|
-
for (let e = 0; e < t.producerNode.length; e++) {
|
|
602
|
-
const r = t.producerNode[e], o = t.producerLastReadVersion[e];
|
|
603
|
-
if (o !== r.version || (Zt(r), o !== r.version))
|
|
604
|
-
return !0;
|
|
605
|
-
}
|
|
606
|
-
return !1;
|
|
607
|
-
}
|
|
608
|
-
function Ft(t, e, r) {
|
|
609
|
-
var o;
|
|
610
|
-
if (nt(t), P(t), t.liveConsumerNode.length === 0) {
|
|
611
|
-
(o = t.watched) == null || o.call(t.wrapper);
|
|
612
|
-
for (let n = 0; n < t.producerNode.length; n++)
|
|
613
|
-
t.producerIndexOfThis[n] = Ft(t.producerNode[n], t, n);
|
|
614
|
-
}
|
|
615
|
-
return t.liveConsumerIndexOfThis.push(r), t.liveConsumerNode.push(e) - 1;
|
|
616
|
-
}
|
|
617
|
-
function ke(t, e) {
|
|
618
|
-
var r;
|
|
619
|
-
if (nt(t), P(t), typeof ngDevMode < "u" && ngDevMode && e >= t.liveConsumerNode.length)
|
|
620
|
-
throw new Error(
|
|
621
|
-
`Assertion error: active consumer index ${e} is out of bounds of ${t.liveConsumerNode.length} consumers)`
|
|
622
|
-
);
|
|
623
|
-
if (t.liveConsumerNode.length === 1) {
|
|
624
|
-
(r = t.unwatched) == null || r.call(t.wrapper);
|
|
625
|
-
for (let n = 0; n < t.producerNode.length; n++)
|
|
626
|
-
ke(t.producerNode[n], t.producerIndexOfThis[n]);
|
|
627
|
-
}
|
|
628
|
-
const o = t.liveConsumerNode.length - 1;
|
|
629
|
-
if (t.liveConsumerNode[e] = t.liveConsumerNode[o], t.liveConsumerIndexOfThis[e] = t.liveConsumerIndexOfThis[o], t.liveConsumerNode.length--, t.liveConsumerIndexOfThis.length--, e < t.liveConsumerNode.length) {
|
|
630
|
-
const n = t.liveConsumerIndexOfThis[e], i = t.liveConsumerNode[e];
|
|
631
|
-
P(i), i.producerIndexOfThis[n] = e;
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
function Ne(t) {
|
|
635
|
-
var e;
|
|
636
|
-
return t.consumerIsAlwaysLive || (((e = t?.liveConsumerNode) == null ? void 0 : e.length) ?? 0) > 0;
|
|
637
|
-
}
|
|
638
|
-
function P(t) {
|
|
639
|
-
t.producerNode ?? (t.producerNode = []), t.producerIndexOfThis ?? (t.producerIndexOfThis = []), t.producerLastReadVersion ?? (t.producerLastReadVersion = []);
|
|
640
|
-
}
|
|
641
|
-
function nt(t) {
|
|
642
|
-
t.liveConsumerNode ?? (t.liveConsumerNode = []), t.liveConsumerIndexOfThis ?? (t.liveConsumerIndexOfThis = []);
|
|
643
|
-
}
|
|
644
|
-
/**
|
|
645
|
-
* @license
|
|
646
|
-
* Copyright Google LLC All Rights Reserved.
|
|
647
|
-
*
|
|
648
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
649
|
-
* found in the LICENSE file at https://angular.io/license
|
|
650
|
-
*/
|
|
651
|
-
function Kt(t) {
|
|
652
|
-
if (Zt(t), _e(t), t.value === Ie)
|
|
653
|
-
throw t.error;
|
|
654
|
-
return t.value;
|
|
655
|
-
}
|
|
656
|
-
function Sr(t) {
|
|
657
|
-
const e = Object.create(Vr);
|
|
658
|
-
e.computation = t;
|
|
659
|
-
const r = () => Kt(e);
|
|
660
|
-
return r[se] = e, r;
|
|
661
|
-
}
|
|
662
|
-
const Ve = /* @__PURE__ */ Symbol("UNSET"), He = /* @__PURE__ */ Symbol("COMPUTING"), Ie = /* @__PURE__ */ Symbol("ERRORED"), Vr = {
|
|
663
|
-
...ot,
|
|
664
|
-
value: Ve,
|
|
665
|
-
dirty: !0,
|
|
666
|
-
error: null,
|
|
667
|
-
equal: qt,
|
|
668
|
-
producerMustRecompute(t) {
|
|
669
|
-
return t.value === Ve || t.value === He;
|
|
670
|
-
},
|
|
671
|
-
producerRecomputeValue(t) {
|
|
672
|
-
if (t.value === He)
|
|
673
|
-
throw new Error("Detected cycle in computations.");
|
|
674
|
-
const e = t.value;
|
|
675
|
-
t.value = He;
|
|
676
|
-
const r = Ar(t);
|
|
677
|
-
let o, n = !1;
|
|
678
|
-
try {
|
|
679
|
-
o = t.computation.call(t.wrapper), n = e !== Ve && e !== Ie && t.equal.call(t.wrapper, e, o);
|
|
680
|
-
} catch (i) {
|
|
681
|
-
o = Ie, t.error = i;
|
|
682
|
-
} finally {
|
|
683
|
-
Lr(t, r);
|
|
684
|
-
}
|
|
685
|
-
if (n) {
|
|
686
|
-
t.value = e;
|
|
687
|
-
return;
|
|
688
|
-
}
|
|
689
|
-
t.value = o, t.version++;
|
|
690
|
-
}
|
|
691
|
-
};
|
|
692
|
-
/**
|
|
693
|
-
* @license
|
|
694
|
-
* Copyright Google LLC All Rights Reserved.
|
|
695
|
-
*
|
|
696
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
697
|
-
* found in the LICENSE file at https://angular.io/license
|
|
698
|
-
*/
|
|
699
|
-
function Hr() {
|
|
700
|
-
throw new Error();
|
|
701
|
-
}
|
|
702
|
-
let Mr = Hr;
|
|
703
|
-
function Tr() {
|
|
704
|
-
Mr();
|
|
705
|
-
}
|
|
706
|
-
/**
|
|
707
|
-
* @license
|
|
708
|
-
* Copyright Google LLC All Rights Reserved.
|
|
709
|
-
*
|
|
710
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
711
|
-
* found in the LICENSE file at https://angular.io/license
|
|
712
|
-
*/
|
|
713
|
-
function Nr(t) {
|
|
714
|
-
const e = Object.create(Or);
|
|
715
|
-
e.value = t;
|
|
716
|
-
const r = () => (_e(e), e.value);
|
|
717
|
-
return r[se] = e, r;
|
|
718
|
-
}
|
|
719
|
-
function Ir() {
|
|
720
|
-
return _e(this), this.value;
|
|
721
|
-
}
|
|
722
|
-
function zr(t, e) {
|
|
723
|
-
Cr() || Tr(), t.equal.call(t.wrapper, t.value, e) || (t.value = e, Pr(t));
|
|
243
|
+
function kr(t, e) {
|
|
244
|
+
hr() || yr(), t.equal.call(t.wrapper, t.value, e) || (t.value = e, $r(t));
|
|
724
245
|
}
|
|
725
|
-
const
|
|
726
|
-
...
|
|
727
|
-
equal:
|
|
246
|
+
const Cr = {
|
|
247
|
+
...rt,
|
|
248
|
+
equal: Bt,
|
|
728
249
|
value: void 0
|
|
729
250
|
};
|
|
730
|
-
function
|
|
731
|
-
t.version++,
|
|
251
|
+
function $r(t) {
|
|
252
|
+
t.version++, dr(), jt(t);
|
|
732
253
|
}
|
|
733
254
|
/**
|
|
734
255
|
* @license
|
|
@@ -746,54 +267,54 @@ function Pr(t) {
|
|
|
746
267
|
* See the License for the specific language governing permissions and
|
|
747
268
|
* limitations under the License.
|
|
748
269
|
*/
|
|
749
|
-
const
|
|
750
|
-
var
|
|
270
|
+
const y = Symbol("node");
|
|
271
|
+
var K;
|
|
751
272
|
((t) => {
|
|
752
273
|
var e, r, o, n;
|
|
753
274
|
class i {
|
|
754
275
|
constructor(c, u = {}) {
|
|
755
|
-
|
|
756
|
-
const d =
|
|
757
|
-
if (this[
|
|
758
|
-
const
|
|
759
|
-
|
|
276
|
+
oe(this, r), Le(this, e);
|
|
277
|
+
const d = xr(c)[le];
|
|
278
|
+
if (this[y] = d, d.wrapper = this, u) {
|
|
279
|
+
const b = u.equals;
|
|
280
|
+
b && (d.equal = b), d.watched = u[t.subtle.watched], d.unwatched = u[t.subtle.unwatched];
|
|
760
281
|
}
|
|
761
282
|
}
|
|
762
283
|
get() {
|
|
763
284
|
if (!(0, t.isState)(this))
|
|
764
285
|
throw new TypeError("Wrong receiver type for Signal.State.prototype.get");
|
|
765
|
-
return
|
|
286
|
+
return _r.call(this[y]);
|
|
766
287
|
}
|
|
767
288
|
set(c) {
|
|
768
289
|
if (!(0, t.isState)(this))
|
|
769
290
|
throw new TypeError("Wrong receiver type for Signal.State.prototype.set");
|
|
770
|
-
if (
|
|
291
|
+
if (cr())
|
|
771
292
|
throw new Error("Writes to signals not permitted during Watcher callback");
|
|
772
|
-
const u = this[
|
|
773
|
-
|
|
293
|
+
const u = this[y];
|
|
294
|
+
kr(u, c);
|
|
774
295
|
}
|
|
775
296
|
}
|
|
776
|
-
e =
|
|
297
|
+
e = y, r = /* @__PURE__ */ new WeakSet(), t.isState = (a) => typeof a == "object" && Ee(r, a), t.State = i;
|
|
777
298
|
class s {
|
|
778
299
|
// Create a Signal which evaluates to the value returned by the callback.
|
|
779
300
|
// Callback is called with this signal as the parameter.
|
|
780
301
|
constructor(c, u) {
|
|
781
|
-
|
|
782
|
-
const d =
|
|
783
|
-
if (d.consumerAllowSignalWrites = !0, this[
|
|
784
|
-
const
|
|
785
|
-
|
|
302
|
+
oe(this, n), Le(this, o);
|
|
303
|
+
const d = fr(c)[le];
|
|
304
|
+
if (d.consumerAllowSignalWrites = !0, this[y] = d, d.wrapper = this, u) {
|
|
305
|
+
const b = u.equals;
|
|
306
|
+
b && (d.equal = b), d.watched = u[t.subtle.watched], d.unwatched = u[t.subtle.unwatched];
|
|
786
307
|
}
|
|
787
308
|
}
|
|
788
309
|
get() {
|
|
789
310
|
if (!(0, t.isComputed)(this))
|
|
790
311
|
throw new TypeError("Wrong receiver type for Signal.Computed.prototype.get");
|
|
791
|
-
return
|
|
312
|
+
return Ut(this[y]);
|
|
792
313
|
}
|
|
793
314
|
}
|
|
794
|
-
o =
|
|
315
|
+
o = y, n = /* @__PURE__ */ new WeakSet(), t.isComputed = (a) => typeof a == "object" && Ee(n, a), t.Computed = s, ((a) => {
|
|
795
316
|
var c, u, v, d;
|
|
796
|
-
function
|
|
317
|
+
function b(g) {
|
|
797
318
|
let p, h = null;
|
|
798
319
|
try {
|
|
799
320
|
h = z(null), p = g();
|
|
@@ -802,43 +323,43 @@ var F;
|
|
|
802
323
|
}
|
|
803
324
|
return p;
|
|
804
325
|
}
|
|
805
|
-
a.untrack =
|
|
326
|
+
a.untrack = b;
|
|
806
327
|
function $(g) {
|
|
807
328
|
var p;
|
|
808
329
|
if (!(0, t.isComputed)(g) && !(0, t.isWatcher)(g))
|
|
809
330
|
throw new TypeError("Called introspectSources without a Computed or Watcher argument");
|
|
810
|
-
return ((p = g[
|
|
331
|
+
return ((p = g[y].producerNode) == null ? void 0 : p.map((h) => h.wrapper)) ?? [];
|
|
811
332
|
}
|
|
812
333
|
a.introspectSources = $;
|
|
813
334
|
function T(g) {
|
|
814
335
|
var p;
|
|
815
336
|
if (!(0, t.isComputed)(g) && !(0, t.isState)(g))
|
|
816
337
|
throw new TypeError("Called introspectSinks without a Signal argument");
|
|
817
|
-
return ((p = g[
|
|
338
|
+
return ((p = g[y].liveConsumerNode) == null ? void 0 : p.map((h) => h.wrapper)) ?? [];
|
|
818
339
|
}
|
|
819
340
|
a.introspectSinks = T;
|
|
820
|
-
function
|
|
341
|
+
function er(g) {
|
|
821
342
|
if (!(0, t.isComputed)(g) && !(0, t.isState)(g))
|
|
822
343
|
throw new TypeError("Called hasSinks without a Signal argument");
|
|
823
|
-
const p = g[
|
|
344
|
+
const p = g[y].liveConsumerNode;
|
|
824
345
|
return p ? p.length > 0 : !1;
|
|
825
346
|
}
|
|
826
|
-
a.hasSinks =
|
|
827
|
-
function
|
|
347
|
+
a.hasSinks = er;
|
|
348
|
+
function tr(g) {
|
|
828
349
|
if (!(0, t.isComputed)(g) && !(0, t.isWatcher)(g))
|
|
829
350
|
throw new TypeError("Called hasSources without a Computed or Watcher argument");
|
|
830
|
-
const p = g[
|
|
351
|
+
const p = g[y].producerNode;
|
|
831
352
|
return p ? p.length > 0 : !1;
|
|
832
353
|
}
|
|
833
|
-
a.hasSources =
|
|
834
|
-
class
|
|
354
|
+
a.hasSources = tr;
|
|
355
|
+
class rr {
|
|
835
356
|
// When a (recursive) source of Watcher is written to, call this callback,
|
|
836
357
|
// if it hasn't already been called since the last `watch` call.
|
|
837
358
|
// No signals may be read or written during the notify.
|
|
838
359
|
constructor(p) {
|
|
839
|
-
|
|
840
|
-
let h = Object.create(
|
|
841
|
-
h.wrapper = this, h.consumerMarkedDirty = p, h.consumerIsAlwaysLive = !0, h.consumerAllowSignalWrites = !1, h.producerNode = [], this[
|
|
360
|
+
oe(this, u), oe(this, v), Le(this, c);
|
|
361
|
+
let h = Object.create(rt);
|
|
362
|
+
h.wrapper = this, h.consumerMarkedDirty = p, h.consumerIsAlwaysLive = !0, h.consumerAllowSignalWrites = !1, h.producerNode = [], this[y] = h;
|
|
842
363
|
}
|
|
843
364
|
// Add these signals to the Watcher's set, and set the watcher to run its
|
|
844
365
|
// notify callback next time any signal in the set (or one of its dependencies) changes.
|
|
@@ -847,28 +368,28 @@ var F;
|
|
|
847
368
|
watch(...p) {
|
|
848
369
|
if (!(0, t.isWatcher)(this))
|
|
849
370
|
throw new TypeError("Called unwatch without Watcher receiver");
|
|
850
|
-
|
|
851
|
-
const h = this[
|
|
371
|
+
vt(this, v, d).call(this, p);
|
|
372
|
+
const h = this[y];
|
|
852
373
|
h.dirty = !1;
|
|
853
374
|
const _ = z(h);
|
|
854
|
-
for (const
|
|
855
|
-
_e(
|
|
375
|
+
for (const re of p)
|
|
376
|
+
_e(re[y]);
|
|
856
377
|
z(_);
|
|
857
378
|
}
|
|
858
379
|
// Remove these signals from the watched set (e.g., for an effect which is disposed)
|
|
859
380
|
unwatch(...p) {
|
|
860
381
|
if (!(0, t.isWatcher)(this))
|
|
861
382
|
throw new TypeError("Called unwatch without Watcher receiver");
|
|
862
|
-
|
|
863
|
-
const h = this[
|
|
383
|
+
vt(this, v, d).call(this, p);
|
|
384
|
+
const h = this[y];
|
|
864
385
|
P(h);
|
|
865
386
|
for (let _ = h.producerNode.length - 1; _ >= 0; _--)
|
|
866
387
|
if (p.includes(h.producerNode[_].wrapper)) {
|
|
867
388
|
ke(h.producerNode[_], h.producerIndexOfThis[_]);
|
|
868
|
-
const
|
|
869
|
-
if (h.producerNode[_] = h.producerNode[
|
|
870
|
-
const
|
|
871
|
-
|
|
389
|
+
const re = h.producerNode.length - 1;
|
|
390
|
+
if (h.producerNode[_] = h.producerNode[re], h.producerIndexOfThis[_] = h.producerIndexOfThis[re], h.producerNode.length--, h.producerIndexOfThis.length--, h.nextProducerIndex--, _ < h.producerNode.length) {
|
|
391
|
+
const nr = h.producerIndexOfThis[_], gt = h.producerNode[_];
|
|
392
|
+
ot(gt), gt.liveConsumerIndexOfThis[nr] = _;
|
|
872
393
|
}
|
|
873
394
|
}
|
|
874
395
|
}
|
|
@@ -877,21 +398,21 @@ var F;
|
|
|
877
398
|
getPending() {
|
|
878
399
|
if (!(0, t.isWatcher)(this))
|
|
879
400
|
throw new TypeError("Called getPending without Watcher receiver");
|
|
880
|
-
return this[
|
|
401
|
+
return this[y].producerNode.filter((h) => h.dirty).map((h) => h.wrapper);
|
|
881
402
|
}
|
|
882
403
|
}
|
|
883
|
-
c =
|
|
404
|
+
c = y, u = /* @__PURE__ */ new WeakSet(), v = /* @__PURE__ */ new WeakSet(), d = function(g) {
|
|
884
405
|
for (const p of g)
|
|
885
406
|
if (!(0, t.isComputed)(p) && !(0, t.isState)(p))
|
|
886
407
|
throw new TypeError("Called watch/unwatch without a Computed or State argument");
|
|
887
|
-
}, t.isWatcher = (g) =>
|
|
888
|
-
function
|
|
408
|
+
}, t.isWatcher = (g) => Ee(u, g), a.Watcher = rr;
|
|
409
|
+
function or() {
|
|
889
410
|
var g;
|
|
890
|
-
return (g =
|
|
411
|
+
return (g = lr()) == null ? void 0 : g.wrapper;
|
|
891
412
|
}
|
|
892
|
-
a.currentComputed =
|
|
413
|
+
a.currentComputed = or, a.watched = Symbol("watched"), a.unwatched = Symbol("unwatched");
|
|
893
414
|
})(t.subtle || (t.subtle = {}));
|
|
894
|
-
})(
|
|
415
|
+
})(K || (K = {}));
|
|
895
416
|
/**
|
|
896
417
|
* @license
|
|
897
418
|
* Copyright 2023 Google LLC
|
|
@@ -905,8 +426,8 @@ new FinalizationRegistry((({ watcher: t, signal: e }) => {
|
|
|
905
426
|
* Copyright 2017 Google LLC
|
|
906
427
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
907
428
|
*/
|
|
908
|
-
const
|
|
909
|
-
let
|
|
429
|
+
const Ar = { CHILD: 2 }, Lr = (t) => (...e) => ({ _$litDirective$: t, values: e });
|
|
430
|
+
let Er = class {
|
|
910
431
|
constructor(e) {
|
|
911
432
|
}
|
|
912
433
|
get _$AU() {
|
|
@@ -927,50 +448,50 @@ let jr = class {
|
|
|
927
448
|
* Copyright 2017 Google LLC
|
|
928
449
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
929
450
|
*/
|
|
930
|
-
const q = globalThis,
|
|
931
|
-
\f\r]`,
|
|
932
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
933
|
-
function
|
|
934
|
-
if (!
|
|
935
|
-
return
|
|
451
|
+
const q = globalThis, ce = q.trustedTypes, ft = ce ? ce.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, qt = "$lit$", A = `lit$${Math.random().toFixed(9).slice(2)}$`, Zt = "?" + A, Sr = `<${Zt}>`, H = document, G = () => H.createComment(""), J = (t) => t === null || typeof t != "object" && typeof t != "function", nt = Array.isArray, Vr = (t) => nt(t) || typeof t?.[Symbol.iterator] == "function", He = `[
|
|
452
|
+
\f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, wt = /-->/g, mt = />/g, S = RegExp(`>|${He}(?:([^\\s"'>=/]+)(${He}*=${He}*(?:[^
|
|
453
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), bt = /'/g, yt = /"/g, Wt = /^(?:script|style|textarea|title)$/i, Hr = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), l = Hr(1), M = Symbol.for("lit-noChange"), m = Symbol.for("lit-nothing"), xt = /* @__PURE__ */ new WeakMap(), V = H.createTreeWalker(H, 129);
|
|
454
|
+
function Ft(t, e) {
|
|
455
|
+
if (!nt(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
456
|
+
return ft !== void 0 ? ft.createHTML(e) : e;
|
|
936
457
|
}
|
|
937
|
-
const
|
|
458
|
+
const Mr = (t, e) => {
|
|
938
459
|
const r = t.length - 1, o = [];
|
|
939
|
-
let n, i = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", s =
|
|
460
|
+
let n, i = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", s = j;
|
|
940
461
|
for (let a = 0; a < r; a++) {
|
|
941
462
|
const c = t[a];
|
|
942
|
-
let u, v, d = -1,
|
|
943
|
-
for (;
|
|
463
|
+
let u, v, d = -1, b = 0;
|
|
464
|
+
for (; b < c.length && (s.lastIndex = b, v = s.exec(c), v !== null); ) b = s.lastIndex, s === j ? v[1] === "!--" ? s = wt : v[1] !== void 0 ? s = mt : v[2] !== void 0 ? (Wt.test(v[2]) && (n = RegExp("</" + v[2], "g")), s = S) : v[3] !== void 0 && (s = S) : s === S ? v[0] === ">" ? (s = n ?? j, d = -1) : v[1] === void 0 ? d = -2 : (d = s.lastIndex - v[2].length, u = v[1], s = v[3] === void 0 ? S : v[3] === '"' ? yt : bt) : s === yt || s === bt ? s = S : s === wt || s === mt ? s = j : (s = S, n = void 0);
|
|
944
465
|
const $ = s === S && t[a + 1].startsWith("/>") ? " " : "";
|
|
945
|
-
i += s ===
|
|
466
|
+
i += s === j ? c + Sr : d >= 0 ? (o.push(u), c.slice(0, d) + qt + c.slice(d) + A + $) : c + A + (d === -2 ? a : $);
|
|
946
467
|
}
|
|
947
|
-
return [
|
|
468
|
+
return [Ft(t, i + (t[r] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), o];
|
|
948
469
|
};
|
|
949
|
-
class
|
|
470
|
+
class Y {
|
|
950
471
|
constructor({ strings: e, _$litType$: r }, o) {
|
|
951
472
|
let n;
|
|
952
473
|
this.parts = [];
|
|
953
474
|
let i = 0, s = 0;
|
|
954
|
-
const a = e.length - 1, c = this.parts, [u, v] =
|
|
955
|
-
if (this.el =
|
|
475
|
+
const a = e.length - 1, c = this.parts, [u, v] = Mr(e, r);
|
|
476
|
+
if (this.el = Y.createElement(u, o), V.currentNode = this.el.content, r === 2 || r === 3) {
|
|
956
477
|
const d = this.el.content.firstChild;
|
|
957
478
|
d.replaceWith(...d.childNodes);
|
|
958
479
|
}
|
|
959
480
|
for (; (n = V.nextNode()) !== null && c.length < a; ) {
|
|
960
481
|
if (n.nodeType === 1) {
|
|
961
|
-
if (n.hasAttributes()) for (const d of n.getAttributeNames()) if (d.endsWith(
|
|
962
|
-
const
|
|
963
|
-
c.push({ type: 1, index: i, name: T[2], strings: $, ctor: T[1] === "." ?
|
|
482
|
+
if (n.hasAttributes()) for (const d of n.getAttributeNames()) if (d.endsWith(qt)) {
|
|
483
|
+
const b = v[s++], $ = n.getAttribute(d).split(A), T = /([.?@])?(.*)/.exec(b);
|
|
484
|
+
c.push({ type: 1, index: i, name: T[2], strings: $, ctor: T[1] === "." ? Nr : T[1] === "?" ? Ir : T[1] === "@" ? zr : Ce }), n.removeAttribute(d);
|
|
964
485
|
} else d.startsWith(A) && (c.push({ type: 6, index: i }), n.removeAttribute(d));
|
|
965
|
-
if (
|
|
966
|
-
const d = n.textContent.split(A),
|
|
967
|
-
if (
|
|
968
|
-
n.textContent =
|
|
969
|
-
for (let $ = 0; $ <
|
|
970
|
-
n.append(d[
|
|
486
|
+
if (Wt.test(n.tagName)) {
|
|
487
|
+
const d = n.textContent.split(A), b = d.length - 1;
|
|
488
|
+
if (b > 0) {
|
|
489
|
+
n.textContent = ce ? ce.emptyScript : "";
|
|
490
|
+
for (let $ = 0; $ < b; $++) n.append(d[$], G()), V.nextNode(), c.push({ type: 2, index: ++i });
|
|
491
|
+
n.append(d[b], G());
|
|
971
492
|
}
|
|
972
493
|
}
|
|
973
|
-
} else if (n.nodeType === 8) if (n.data ===
|
|
494
|
+
} else if (n.nodeType === 8) if (n.data === Zt) c.push({ type: 2, index: i });
|
|
974
495
|
else {
|
|
975
496
|
let d = -1;
|
|
976
497
|
for (; (d = n.data.indexOf(A, d + 1)) !== -1; ) c.push({ type: 7, index: i }), d += A.length - 1;
|
|
@@ -986,10 +507,10 @@ class J {
|
|
|
986
507
|
function B(t, e, r = t, o) {
|
|
987
508
|
if (e === M) return e;
|
|
988
509
|
let n = o !== void 0 ? r._$Co?.[o] : r._$Cl;
|
|
989
|
-
const i =
|
|
510
|
+
const i = J(e) ? void 0 : e._$litDirective$;
|
|
990
511
|
return n?.constructor !== i && (n?._$AO?.(!1), i === void 0 ? n = void 0 : (n = new i(t), n._$AT(t, r, o)), o !== void 0 ? (r._$Co ?? (r._$Co = []))[o] = n : r._$Cl = n), n !== void 0 && (e = B(t, n._$AS(t, e.values), n, o)), e;
|
|
991
512
|
}
|
|
992
|
-
class
|
|
513
|
+
class Tr {
|
|
993
514
|
constructor(e, r) {
|
|
994
515
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = r;
|
|
995
516
|
}
|
|
@@ -1006,7 +527,7 @@ class Wr {
|
|
|
1006
527
|
for (; c !== void 0; ) {
|
|
1007
528
|
if (s === c.index) {
|
|
1008
529
|
let u;
|
|
1009
|
-
c.type === 2 ? u = new
|
|
530
|
+
c.type === 2 ? u = new ee(i, i.nextSibling, this, e) : c.type === 1 ? u = new c.ctor(i, c.name, c.strings, this, e) : c.type === 6 && (u = new Or(i, this, e)), this._$AV.push(u), c = o[++a];
|
|
1010
531
|
}
|
|
1011
532
|
s !== c?.index && (i = V.nextNode(), s++);
|
|
1012
533
|
}
|
|
@@ -1017,7 +538,7 @@ class Wr {
|
|
|
1017
538
|
for (const o of this._$AV) o !== void 0 && (o.strings !== void 0 ? (o._$AI(e, o, r), r += o.strings.length - 2) : o._$AI(e[r])), r++;
|
|
1018
539
|
}
|
|
1019
540
|
}
|
|
1020
|
-
class
|
|
541
|
+
class ee {
|
|
1021
542
|
get _$AU() {
|
|
1022
543
|
return this._$AM?._$AU ?? this._$Cv;
|
|
1023
544
|
}
|
|
@@ -1036,7 +557,7 @@ class Q {
|
|
|
1036
557
|
return this._$AB;
|
|
1037
558
|
}
|
|
1038
559
|
_$AI(e, r = this) {
|
|
1039
|
-
e = B(this, e, r),
|
|
560
|
+
e = B(this, e, r), J(e) ? e === m || e == null || e === "" ? (this._$AH !== m && this._$AR(), this._$AH = m) : e !== this._$AH && e !== M && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Vr(e) ? this.k(e) : this._(e);
|
|
1040
561
|
}
|
|
1041
562
|
O(e) {
|
|
1042
563
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -1045,25 +566,25 @@ class Q {
|
|
|
1045
566
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
1046
567
|
}
|
|
1047
568
|
_(e) {
|
|
1048
|
-
this._$AH !== m &&
|
|
569
|
+
this._$AH !== m && J(this._$AH) ? this._$AA.nextSibling.data = e : this.T(H.createTextNode(e)), this._$AH = e;
|
|
1049
570
|
}
|
|
1050
571
|
$(e) {
|
|
1051
|
-
const { values: r, _$litType$: o } = e, n = typeof o == "number" ? this._$AC(e) : (o.el === void 0 && (o.el =
|
|
572
|
+
const { values: r, _$litType$: o } = e, n = typeof o == "number" ? this._$AC(e) : (o.el === void 0 && (o.el = Y.createElement(Ft(o.h, o.h[0]), this.options)), o);
|
|
1052
573
|
if (this._$AH?._$AD === n) this._$AH.p(r);
|
|
1053
574
|
else {
|
|
1054
|
-
const i = new
|
|
575
|
+
const i = new Tr(n, this), s = i.u(this.options);
|
|
1055
576
|
i.p(r), this.T(s), this._$AH = i;
|
|
1056
577
|
}
|
|
1057
578
|
}
|
|
1058
579
|
_$AC(e) {
|
|
1059
|
-
let r =
|
|
1060
|
-
return r === void 0 &&
|
|
580
|
+
let r = xt.get(e.strings);
|
|
581
|
+
return r === void 0 && xt.set(e.strings, r = new Y(e)), r;
|
|
1061
582
|
}
|
|
1062
583
|
k(e) {
|
|
1063
|
-
|
|
584
|
+
nt(this._$AH) || (this._$AH = [], this._$AR());
|
|
1064
585
|
const r = this._$AH;
|
|
1065
586
|
let o, n = 0;
|
|
1066
|
-
for (const i of e) n === r.length ? r.push(o = new
|
|
587
|
+
for (const i of e) n === r.length ? r.push(o = new ee(this.O(G()), this.O(G()), this, this.options)) : o = r[n], o._$AI(i), n++;
|
|
1067
588
|
n < r.length && (this._$AR(o && o._$AB.nextSibling, n), r.length = n);
|
|
1068
589
|
}
|
|
1069
590
|
_$AR(e = this._$AA.nextSibling, r) {
|
|
@@ -1076,151 +597,620 @@ class Q {
|
|
|
1076
597
|
this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
|
|
1077
598
|
}
|
|
1078
599
|
}
|
|
1079
|
-
class Ce {
|
|
1080
|
-
get tagName() {
|
|
1081
|
-
return this.element.tagName;
|
|
1082
|
-
}
|
|
1083
|
-
get _$AU() {
|
|
1084
|
-
return this._$AM._$AU;
|
|
1085
|
-
}
|
|
1086
|
-
constructor(e, r, o, n, i) {
|
|
1087
|
-
this.type = 1, this._$AH = m, this._$AN = void 0, this.element = e, this.name = r, this._$AM = n, this.options = i, o.length > 2 || o[0] !== "" || o[1] !== "" ? (this._$AH = Array(o.length - 1).fill(new String()), this.strings = o) : this._$AH = m;
|
|
600
|
+
class Ce {
|
|
601
|
+
get tagName() {
|
|
602
|
+
return this.element.tagName;
|
|
603
|
+
}
|
|
604
|
+
get _$AU() {
|
|
605
|
+
return this._$AM._$AU;
|
|
606
|
+
}
|
|
607
|
+
constructor(e, r, o, n, i) {
|
|
608
|
+
this.type = 1, this._$AH = m, this._$AN = void 0, this.element = e, this.name = r, this._$AM = n, this.options = i, o.length > 2 || o[0] !== "" || o[1] !== "" ? (this._$AH = Array(o.length - 1).fill(new String()), this.strings = o) : this._$AH = m;
|
|
609
|
+
}
|
|
610
|
+
_$AI(e, r = this, o, n) {
|
|
611
|
+
const i = this.strings;
|
|
612
|
+
let s = !1;
|
|
613
|
+
if (i === void 0) e = B(this, e, r, 0), s = !J(e) || e !== this._$AH && e !== M, s && (this._$AH = e);
|
|
614
|
+
else {
|
|
615
|
+
const a = e;
|
|
616
|
+
let c, u;
|
|
617
|
+
for (e = i[0], c = 0; c < i.length - 1; c++) u = B(this, a[o + c], r, c), u === M && (u = this._$AH[c]), s || (s = !J(u) || u !== this._$AH[c]), u === m ? e = m : e !== m && (e += (u ?? "") + i[c + 1]), this._$AH[c] = u;
|
|
618
|
+
}
|
|
619
|
+
s && !n && this.j(e);
|
|
620
|
+
}
|
|
621
|
+
j(e) {
|
|
622
|
+
e === m ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
class Nr extends Ce {
|
|
626
|
+
constructor() {
|
|
627
|
+
super(...arguments), this.type = 3;
|
|
628
|
+
}
|
|
629
|
+
j(e) {
|
|
630
|
+
this.element[this.name] = e === m ? void 0 : e;
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
class Ir extends Ce {
|
|
634
|
+
constructor() {
|
|
635
|
+
super(...arguments), this.type = 4;
|
|
636
|
+
}
|
|
637
|
+
j(e) {
|
|
638
|
+
this.element.toggleAttribute(this.name, !!e && e !== m);
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
class zr extends Ce {
|
|
642
|
+
constructor(e, r, o, n, i) {
|
|
643
|
+
super(e, r, o, n, i), this.type = 5;
|
|
644
|
+
}
|
|
645
|
+
_$AI(e, r = this) {
|
|
646
|
+
if ((e = B(this, e, r, 0) ?? m) === M) return;
|
|
647
|
+
const o = this._$AH, n = e === m && o !== m || e.capture !== o.capture || e.once !== o.once || e.passive !== o.passive, i = e !== m && (o === m || n);
|
|
648
|
+
n && this.element.removeEventListener(this.name, this, o), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
649
|
+
}
|
|
650
|
+
handleEvent(e) {
|
|
651
|
+
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
class Or {
|
|
655
|
+
constructor(e, r, o) {
|
|
656
|
+
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = r, this.options = o;
|
|
657
|
+
}
|
|
658
|
+
get _$AU() {
|
|
659
|
+
return this._$AM._$AU;
|
|
660
|
+
}
|
|
661
|
+
_$AI(e) {
|
|
662
|
+
B(this, e);
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
const Pr = q.litHtmlPolyfillSupport;
|
|
666
|
+
Pr?.(Y, ee), (q.litHtmlVersions ?? (q.litHtmlVersions = [])).push("3.3.1");
|
|
667
|
+
const Br = (t, e, r) => {
|
|
668
|
+
const o = r?.renderBefore ?? e;
|
|
669
|
+
let n = o._$litPart$;
|
|
670
|
+
if (n === void 0) {
|
|
671
|
+
const i = r?.renderBefore ?? null;
|
|
672
|
+
o._$litPart$ = n = new ee(e.insertBefore(G(), i), i, void 0, r ?? {});
|
|
673
|
+
}
|
|
674
|
+
return n._$AI(t), n;
|
|
675
|
+
};
|
|
676
|
+
/**
|
|
677
|
+
* @license
|
|
678
|
+
* Copyright 2023 Google LLC
|
|
679
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
680
|
+
*/
|
|
681
|
+
K.State;
|
|
682
|
+
K.Computed;
|
|
683
|
+
const it = (t, e) => new K.State(t, e), Dr = {
|
|
684
|
+
mode: "auto",
|
|
685
|
+
baseWidth: 280,
|
|
686
|
+
minScale: 0.75,
|
|
687
|
+
maxScale: 2
|
|
688
|
+
}, D = it(1), X = it(Dr);
|
|
689
|
+
function st() {
|
|
690
|
+
if (typeof navigator > "u" || typeof window > "u")
|
|
691
|
+
return !1;
|
|
692
|
+
const t = navigator, e = window, r = t && (t.userAgent || t.vendor) || e && e.opera || "", o = /Mobile|Android|iP(ad|hone|od)|IEMobile|BlackBerry|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)|Windows Phone|Phone|Tablet/i.test(
|
|
693
|
+
r
|
|
694
|
+
), i = (t && t.maxTouchPoints || 0) > 1, s = e ? Math.min(e.innerWidth || 0, e.innerHeight || 0) <= 820 : !1;
|
|
695
|
+
return o || i && s;
|
|
696
|
+
}
|
|
697
|
+
function jr() {
|
|
698
|
+
const t = st(), e = navigator, r = window, n = (e && e.maxTouchPoints || 0) > 1, i = typeof document < "u" ? document.documentElement.clientWidth : r?.innerWidth || 0, s = typeof document < "u" ? document.documentElement.clientHeight : r?.innerHeight || 0, a = t && Math.min(i, s) >= 600;
|
|
699
|
+
return {
|
|
700
|
+
isMobile: t,
|
|
701
|
+
isTablet: a,
|
|
702
|
+
isDesktop: !t,
|
|
703
|
+
isTouchCapable: n,
|
|
704
|
+
deviceType: t ? a ? "tablet" : "mobile" : "desktop",
|
|
705
|
+
userAgent: e && (e.userAgent || e.vendor) || "",
|
|
706
|
+
screenWidth: i,
|
|
707
|
+
screenHeight: s
|
|
708
|
+
};
|
|
709
|
+
}
|
|
710
|
+
function Rr(t, e = X.get()) {
|
|
711
|
+
if (e.mode === "fixed")
|
|
712
|
+
return 1;
|
|
713
|
+
const r = t / e.baseWidth, o = Math.max(
|
|
714
|
+
e.minScale,
|
|
715
|
+
Math.min(e.maxScale, r)
|
|
716
|
+
);
|
|
717
|
+
return Number(o.toFixed(3));
|
|
718
|
+
}
|
|
719
|
+
function qn(t) {
|
|
720
|
+
const r = { ...X.get(), ...t };
|
|
721
|
+
X.set(r), typeof window < "u" && Kt();
|
|
722
|
+
}
|
|
723
|
+
function Kt() {
|
|
724
|
+
if (typeof window > "u" || typeof document > "u")
|
|
725
|
+
return;
|
|
726
|
+
if (!st()) {
|
|
727
|
+
D.set(1), document.documentElement.style.setProperty("--sf", "1"), window.dispatchEvent(
|
|
728
|
+
new CustomEvent("scaling-changed", {
|
|
729
|
+
detail: { scalingFactor: 1, config: X.get() }
|
|
730
|
+
})
|
|
731
|
+
);
|
|
732
|
+
return;
|
|
733
|
+
}
|
|
734
|
+
const e = document.documentElement.clientWidth, r = X.get(), o = Rr(e, r);
|
|
735
|
+
D.set(o), document.documentElement.style.setProperty("--sf", o.toString()), window.dispatchEvent(
|
|
736
|
+
new CustomEvent("scaling-changed", {
|
|
737
|
+
detail: { scalingFactor: o, config: r }
|
|
738
|
+
})
|
|
739
|
+
);
|
|
740
|
+
}
|
|
741
|
+
function Zn() {
|
|
742
|
+
return D.get();
|
|
743
|
+
}
|
|
744
|
+
function Wn(t) {
|
|
745
|
+
return t * D.get();
|
|
746
|
+
}
|
|
747
|
+
function Fn(t) {
|
|
748
|
+
const e = D.get();
|
|
749
|
+
return e === 0 ? t : t / e;
|
|
750
|
+
}
|
|
751
|
+
function ne() {
|
|
752
|
+
const t = jr();
|
|
753
|
+
if (typeof document > "u")
|
|
754
|
+
return t;
|
|
755
|
+
t.isMobile ? (document.documentElement.classList.add("mobile"), document.documentElement.classList.remove("desktop")) : (document.documentElement.classList.add("desktop"), document.documentElement.classList.remove("mobile")), Kt();
|
|
756
|
+
const e = D.get();
|
|
757
|
+
return t.isMobile ? console.log(
|
|
758
|
+
`[DS one] Mobile device detected - ${t.deviceType} (${t.screenWidth}x${t.screenHeight}), scaling factor: ${e.toFixed(2)}`
|
|
759
|
+
) : console.log(
|
|
760
|
+
`[DS one] Desktop device detected (${t.screenWidth}x${t.screenHeight})`
|
|
761
|
+
), typeof window < "u" && window.DS_ONE_DEBUG && console.log("[DS one] Device Info:", {
|
|
762
|
+
type: t.deviceType,
|
|
763
|
+
isMobile: t.isMobile,
|
|
764
|
+
isTablet: t.isTablet,
|
|
765
|
+
isDesktop: t.isDesktop,
|
|
766
|
+
isTouchCapable: t.isTouchCapable,
|
|
767
|
+
viewport: `${t.screenWidth}x${t.screenHeight}`,
|
|
768
|
+
scalingFactor: e,
|
|
769
|
+
userAgent: t.userAgent
|
|
770
|
+
}), t;
|
|
771
|
+
}
|
|
772
|
+
if (typeof window < "u") {
|
|
773
|
+
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", () => {
|
|
774
|
+
ne();
|
|
775
|
+
}) : ne();
|
|
776
|
+
let t;
|
|
777
|
+
window.addEventListener("resize", () => {
|
|
778
|
+
clearTimeout(t), t = setTimeout(() => {
|
|
779
|
+
ne();
|
|
780
|
+
}, 100);
|
|
781
|
+
}), window.addEventListener("orientationchange", () => {
|
|
782
|
+
setTimeout(ne, 100);
|
|
783
|
+
});
|
|
784
|
+
}
|
|
785
|
+
function Kn() {
|
|
786
|
+
if (typeof document > "u" || typeof window > "u")
|
|
787
|
+
return;
|
|
788
|
+
let t = document.querySelector('meta[name="viewport"]');
|
|
789
|
+
t || (t = document.createElement("meta"), t.setAttribute("name", "viewport"), document.head.appendChild(t)), t.setAttribute(
|
|
790
|
+
"content",
|
|
791
|
+
"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
|
|
792
|
+
);
|
|
793
|
+
const e = document.createElement("style");
|
|
794
|
+
e.id = "ds-one-applike-style", e.textContent = `
|
|
795
|
+
* {
|
|
796
|
+
touch-action: pan-x pan-y !important;
|
|
797
|
+
-ms-touch-action: pan-x pan-y !important;
|
|
798
|
+
}
|
|
799
|
+
html, body {
|
|
800
|
+
touch-action: pan-x pan-y !important;
|
|
801
|
+
-ms-touch-action: pan-x pan-y !important;
|
|
802
|
+
}
|
|
803
|
+
`;
|
|
804
|
+
const r = document.getElementById("ds-one-applike-style");
|
|
805
|
+
r && r.remove(), document.head.appendChild(e);
|
|
806
|
+
let o = 0, n = 0;
|
|
807
|
+
const i = (a) => {
|
|
808
|
+
if (a instanceof TouchEvent) {
|
|
809
|
+
if (a.touches.length > 1) {
|
|
810
|
+
a.preventDefault(), a.stopPropagation();
|
|
811
|
+
return;
|
|
812
|
+
}
|
|
813
|
+
const c = Date.now();
|
|
814
|
+
if (a.type === "touchstart") {
|
|
815
|
+
if (c - o < 300) {
|
|
816
|
+
a.preventDefault(), a.stopPropagation();
|
|
817
|
+
return;
|
|
818
|
+
}
|
|
819
|
+
n = c;
|
|
820
|
+
} else if (a.type === "touchend") {
|
|
821
|
+
if (c - n < 300 && c - o < 300) {
|
|
822
|
+
a.preventDefault(), a.stopPropagation();
|
|
823
|
+
return;
|
|
824
|
+
}
|
|
825
|
+
o = c;
|
|
826
|
+
} else if (a.type === "touchmove" && a.touches.length > 1) {
|
|
827
|
+
a.preventDefault(), a.stopPropagation();
|
|
828
|
+
return;
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
if (a instanceof WheelEvent && (a.ctrlKey || a.metaKey)) {
|
|
832
|
+
a.preventDefault(), a.stopPropagation();
|
|
833
|
+
return;
|
|
834
|
+
}
|
|
835
|
+
}, s = { passive: !1, capture: !0 };
|
|
836
|
+
document.addEventListener("touchstart", i, s), document.addEventListener("touchmove", i, s), document.addEventListener("touchend", i, s), document.addEventListener("touchcancel", i, s), document.addEventListener("wheel", i, s), document.addEventListener(
|
|
837
|
+
"gesturestart",
|
|
838
|
+
(a) => {
|
|
839
|
+
a.preventDefault(), a.stopPropagation();
|
|
840
|
+
},
|
|
841
|
+
s
|
|
842
|
+
), document.addEventListener(
|
|
843
|
+
"gesturechange",
|
|
844
|
+
(a) => {
|
|
845
|
+
a.preventDefault(), a.stopPropagation();
|
|
846
|
+
},
|
|
847
|
+
s
|
|
848
|
+
), document.addEventListener(
|
|
849
|
+
"gestureend",
|
|
850
|
+
(a) => {
|
|
851
|
+
a.preventDefault(), a.stopPropagation();
|
|
852
|
+
},
|
|
853
|
+
s
|
|
854
|
+
);
|
|
855
|
+
}
|
|
856
|
+
let Ur = {};
|
|
857
|
+
const Gt = [
|
|
858
|
+
"da",
|
|
859
|
+
"de",
|
|
860
|
+
"en",
|
|
861
|
+
"es",
|
|
862
|
+
"fr",
|
|
863
|
+
"it",
|
|
864
|
+
"ja",
|
|
865
|
+
"pt",
|
|
866
|
+
"sv",
|
|
867
|
+
"zh"
|
|
868
|
+
], qr = new Map(
|
|
869
|
+
Gt.map((t, e) => [t, e])
|
|
870
|
+
), _t = {
|
|
871
|
+
da: "Danish",
|
|
872
|
+
"da-dk": "Danish",
|
|
873
|
+
de: "German",
|
|
874
|
+
"de-de": "German",
|
|
875
|
+
en: "English",
|
|
876
|
+
"en-us": "English",
|
|
877
|
+
es: "Spanish",
|
|
878
|
+
"es-es": "Spanish",
|
|
879
|
+
fr: "French",
|
|
880
|
+
"fr-fr": "French",
|
|
881
|
+
it: "Italian",
|
|
882
|
+
"it-it": "Italian",
|
|
883
|
+
ja: "Japanese",
|
|
884
|
+
"ja-jp": "Japanese",
|
|
885
|
+
pt: "Portuguese",
|
|
886
|
+
"pt-pt": "Portuguese",
|
|
887
|
+
sv: "Swedish",
|
|
888
|
+
"sv-se": "Swedish",
|
|
889
|
+
zh: "Chinese",
|
|
890
|
+
"zh-cn": "Chinese",
|
|
891
|
+
"zh-tw": "Chinese",
|
|
892
|
+
"zh-hans": "Chinese",
|
|
893
|
+
"zh-hant": "Chinese"
|
|
894
|
+
}, kt = /* @__PURE__ */ new Map();
|
|
895
|
+
let Ct = !1;
|
|
896
|
+
const Jt = "./translations.json";
|
|
897
|
+
let $t = !1;
|
|
898
|
+
function At(t) {
|
|
899
|
+
if (!t)
|
|
900
|
+
return null;
|
|
901
|
+
const e = t.trim();
|
|
902
|
+
return e ? e.startsWith("./") || e.startsWith("../") || e.startsWith("/") || /^https?:\/\//i.test(e) ? e : `./${e}` : null;
|
|
903
|
+
}
|
|
904
|
+
function Zr() {
|
|
905
|
+
if (typeof document > "u")
|
|
906
|
+
return null;
|
|
907
|
+
const e = document.querySelector(
|
|
908
|
+
"script[data-ds-one-translations]"
|
|
909
|
+
)?.getAttribute(
|
|
910
|
+
"data-ds-one-translations"
|
|
911
|
+
);
|
|
912
|
+
if (e)
|
|
913
|
+
return e;
|
|
914
|
+
const r = document.querySelector('meta[name="ds-one:translations"]')?.getAttribute("content");
|
|
915
|
+
if (r)
|
|
916
|
+
return r;
|
|
917
|
+
const o = document.querySelector('link[rel="ds-one-translations"]')?.getAttribute("href");
|
|
918
|
+
return o || null;
|
|
919
|
+
}
|
|
920
|
+
function Wr() {
|
|
921
|
+
const t = [], e = typeof window < "u" ? window.DS_ONE_TRANSLATIONS_FILE : null, r = Zr(), o = At(e ?? "");
|
|
922
|
+
o && t.push(o);
|
|
923
|
+
const n = At(r ?? "");
|
|
924
|
+
return n && !t.includes(n) && t.push(n), t.length === 0 && t.push(Jt), t;
|
|
925
|
+
}
|
|
926
|
+
function Fr(t) {
|
|
927
|
+
return !t || typeof t != "object" ? !1 : Object.values(t).every(
|
|
928
|
+
(e) => e && typeof e == "object"
|
|
929
|
+
);
|
|
930
|
+
}
|
|
931
|
+
async function Kr(t) {
|
|
932
|
+
try {
|
|
933
|
+
const e = await fetch(t);
|
|
934
|
+
if (!e.ok)
|
|
935
|
+
return null;
|
|
936
|
+
const r = await e.json();
|
|
937
|
+
return Fr(r) ? Object.keys(r).length === 0 ? (console.warn(`[DS one] No languages found in ${t}`), null) : r : (console.warn(
|
|
938
|
+
`[DS one] Invalid translation format in ${t}. Expected object with language codes as keys.`
|
|
939
|
+
), null);
|
|
940
|
+
} catch {
|
|
941
|
+
return null;
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
async function Lt() {
|
|
945
|
+
if ($t || ($t = !0, typeof window > "u"))
|
|
946
|
+
return !1;
|
|
947
|
+
if (window.DS_ONE_TRANSLATIONS && Object.keys(window.DS_ONE_TRANSLATIONS).length > 0)
|
|
948
|
+
return console.log(
|
|
949
|
+
`[DS one] Translations already loaded (${Object.keys(window.DS_ONE_TRANSLATIONS).length} languages), skipping auto-load`
|
|
950
|
+
), !0;
|
|
951
|
+
const t = Wr();
|
|
952
|
+
for (const e of t) {
|
|
953
|
+
const r = await Kr(e);
|
|
954
|
+
if (!r)
|
|
955
|
+
continue;
|
|
956
|
+
window.DS_ONE_TRANSLATIONS = r;
|
|
957
|
+
const o = Object.keys(r);
|
|
958
|
+
return console.log(
|
|
959
|
+
`[DS one] External translations loaded from ${e}: ${o.length} language(s) – ${o.join(", ")}`
|
|
960
|
+
), window.dispatchEvent(new CustomEvent("translations-ready")), !0;
|
|
961
|
+
}
|
|
962
|
+
return console.info(
|
|
963
|
+
`[DS one] No external translations found at ${t[0] ?? Jt}. Using bundled translations.`
|
|
964
|
+
), !1;
|
|
965
|
+
}
|
|
966
|
+
function $e() {
|
|
967
|
+
return typeof window < "u" && window.DS_ONE_TRANSLATIONS ? window.DS_ONE_TRANSLATIONS : Ur;
|
|
968
|
+
}
|
|
969
|
+
let L = $e();
|
|
970
|
+
const C = "en";
|
|
971
|
+
function te(t) {
|
|
972
|
+
return t ? t.toLowerCase().split(/[-_]/)[0] ?? "" : "";
|
|
973
|
+
}
|
|
974
|
+
function Et(t) {
|
|
975
|
+
const e = te(t), r = qr.get(e);
|
|
976
|
+
return typeof r == "number" ? r : Gt.length;
|
|
977
|
+
}
|
|
978
|
+
function Yt(t) {
|
|
979
|
+
return [...t].sort((e, r) => {
|
|
980
|
+
const o = Et(e), n = Et(r);
|
|
981
|
+
return o !== n ? o - n : e.localeCompare(r);
|
|
982
|
+
});
|
|
983
|
+
}
|
|
984
|
+
function Gr(t, e) {
|
|
985
|
+
const r = t?.replace("_", "-");
|
|
986
|
+
if (r)
|
|
987
|
+
try {
|
|
988
|
+
let o = kt.get(r);
|
|
989
|
+
o || (o = new Intl.DisplayNames([r], {
|
|
990
|
+
type: "language"
|
|
991
|
+
}), kt.set(r, o));
|
|
992
|
+
const n = e.replace("_", "-"), i = o.of(n);
|
|
993
|
+
if (i && i !== n)
|
|
994
|
+
return i;
|
|
995
|
+
const s = o.of(te(n));
|
|
996
|
+
if (s)
|
|
997
|
+
return s;
|
|
998
|
+
} catch {
|
|
999
|
+
Ct || (console.info(
|
|
1000
|
+
"[DS one] Intl.DisplayNames is not available, using fallback language names."
|
|
1001
|
+
), Ct = !0);
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
function Jr(t) {
|
|
1005
|
+
const e = t.toLowerCase().replace("_", "-"), r = _t[e];
|
|
1006
|
+
if (r)
|
|
1007
|
+
return r;
|
|
1008
|
+
const o = te(e);
|
|
1009
|
+
return _t[o];
|
|
1010
|
+
}
|
|
1011
|
+
function Yr(t, e = {}) {
|
|
1012
|
+
if (!t)
|
|
1013
|
+
return "";
|
|
1014
|
+
const r = [];
|
|
1015
|
+
e.locale && r.push(e.locale), typeof navigator < "u" && (Array.isArray(navigator.languages) && r.push(...navigator.languages), navigator.language && r.push(navigator.language)), r.push(C), r.push("en");
|
|
1016
|
+
const o = /* @__PURE__ */ new Set();
|
|
1017
|
+
for (const s of r) {
|
|
1018
|
+
if (!s || o.has(s))
|
|
1019
|
+
continue;
|
|
1020
|
+
o.add(s);
|
|
1021
|
+
const a = Gr(s, t);
|
|
1022
|
+
if (a)
|
|
1023
|
+
return a;
|
|
1024
|
+
}
|
|
1025
|
+
const n = Jr(t);
|
|
1026
|
+
if (n)
|
|
1027
|
+
return n;
|
|
1028
|
+
const i = te(t);
|
|
1029
|
+
return i ? i.toUpperCase() : t;
|
|
1030
|
+
}
|
|
1031
|
+
const St = {
|
|
1032
|
+
da: "da",
|
|
1033
|
+
"da-dk": "da",
|
|
1034
|
+
de: "de",
|
|
1035
|
+
"de-de": "de",
|
|
1036
|
+
en: "en",
|
|
1037
|
+
"en-us": "en",
|
|
1038
|
+
"en-gb": "en",
|
|
1039
|
+
es: "es",
|
|
1040
|
+
"es-es": "es",
|
|
1041
|
+
"es-mx": "es",
|
|
1042
|
+
fr: "fr",
|
|
1043
|
+
"fr-fr": "fr",
|
|
1044
|
+
it: "it",
|
|
1045
|
+
"it-it": "it",
|
|
1046
|
+
ja: "ja",
|
|
1047
|
+
"ja-jp": "ja",
|
|
1048
|
+
pt: "pt",
|
|
1049
|
+
"pt-pt": "pt",
|
|
1050
|
+
"pt-br": "pt",
|
|
1051
|
+
sv: "sv",
|
|
1052
|
+
"sv-se": "sv",
|
|
1053
|
+
zh: "zh",
|
|
1054
|
+
"zh-cn": "zh",
|
|
1055
|
+
"zh-hans": "zh",
|
|
1056
|
+
"zh-tw": "zh",
|
|
1057
|
+
"zh-hant": "zh"
|
|
1058
|
+
};
|
|
1059
|
+
function Vt(t) {
|
|
1060
|
+
if (!t)
|
|
1061
|
+
return null;
|
|
1062
|
+
const e = t.toLowerCase().replace("_", "-"), r = St[e];
|
|
1063
|
+
if (r)
|
|
1064
|
+
return r;
|
|
1065
|
+
const o = te(e), n = St[o];
|
|
1066
|
+
return n || t;
|
|
1067
|
+
}
|
|
1068
|
+
function Xr() {
|
|
1069
|
+
if (typeof navigator > "u")
|
|
1070
|
+
return C;
|
|
1071
|
+
const t = navigator.language;
|
|
1072
|
+
if (t) {
|
|
1073
|
+
const e = Vt(t);
|
|
1074
|
+
if (e)
|
|
1075
|
+
return e;
|
|
1088
1076
|
}
|
|
1089
|
-
|
|
1090
|
-
const
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
const a = e;
|
|
1095
|
-
let c, u;
|
|
1096
|
-
for (e = i[0], c = 0; c < i.length - 1; c++) u = B(this, a[o + c], r, c), u === M && (u = this._$AH[c]), s || (s = !G(u) || u !== this._$AH[c]), u === m ? e = m : e !== m && (e += (u ?? "") + i[c + 1]), this._$AH[c] = u;
|
|
1077
|
+
if (Array.isArray(navigator.languages))
|
|
1078
|
+
for (const e of navigator.languages) {
|
|
1079
|
+
const r = Vt(e);
|
|
1080
|
+
if (r)
|
|
1081
|
+
return r;
|
|
1097
1082
|
}
|
|
1098
|
-
|
|
1099
|
-
}
|
|
1100
|
-
j(e) {
|
|
1101
|
-
e === m ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
1102
|
-
}
|
|
1083
|
+
return C;
|
|
1103
1084
|
}
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1085
|
+
typeof window < "u" && window.localStorage?.getItem(
|
|
1086
|
+
"ds-one:language"
|
|
1087
|
+
);
|
|
1088
|
+
const k = {
|
|
1089
|
+
value: localStorage.getItem("language") || Xr(),
|
|
1090
|
+
set: function(t) {
|
|
1091
|
+
this.value = t, localStorage.setItem("language", t), window.dispatchEvent(
|
|
1092
|
+
new CustomEvent("language-changed", {
|
|
1093
|
+
detail: { language: t },
|
|
1094
|
+
bubbles: !0,
|
|
1095
|
+
composed: !0
|
|
1096
|
+
})
|
|
1097
|
+
);
|
|
1110
1098
|
}
|
|
1099
|
+
};
|
|
1100
|
+
typeof window < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", () => {
|
|
1101
|
+
Lt();
|
|
1102
|
+
}) : Lt());
|
|
1103
|
+
typeof window < "u" && window.addEventListener("translations-ready", () => {
|
|
1104
|
+
L = $e(), window.dispatchEvent(new CustomEvent("translations-loaded"));
|
|
1105
|
+
const t = k.value;
|
|
1106
|
+
window.dispatchEvent(
|
|
1107
|
+
new CustomEvent("language-changed", {
|
|
1108
|
+
detail: { language: t },
|
|
1109
|
+
bubbles: !0,
|
|
1110
|
+
composed: !0
|
|
1111
|
+
})
|
|
1112
|
+
);
|
|
1113
|
+
});
|
|
1114
|
+
setTimeout(() => {
|
|
1115
|
+
window.dispatchEvent(new CustomEvent("translations-loaded"));
|
|
1116
|
+
const t = k.value;
|
|
1117
|
+
window.dispatchEvent(
|
|
1118
|
+
new CustomEvent("language-changed", {
|
|
1119
|
+
detail: { language: t },
|
|
1120
|
+
bubbles: !0,
|
|
1121
|
+
composed: !0
|
|
1122
|
+
})
|
|
1123
|
+
);
|
|
1124
|
+
}, 100);
|
|
1125
|
+
function Z(t) {
|
|
1126
|
+
const e = k.value;
|
|
1127
|
+
return L?.[e]?.[t] ? L[e][t] : e !== C && L?.[C]?.[t] ? L[C][t] : (console.warn(
|
|
1128
|
+
`[DS one (Internationalization)] No translation found for key "${t}"`
|
|
1129
|
+
), t);
|
|
1111
1130
|
}
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
this.element.toggleAttribute(this.name, !!e && e !== m);
|
|
1118
|
-
}
|
|
1131
|
+
function Gn(t, e = k.value) {
|
|
1132
|
+
if (!t)
|
|
1133
|
+
return !1;
|
|
1134
|
+
const r = L?.[e];
|
|
1135
|
+
return !!(r && Object.prototype.hasOwnProperty.call(r, t) || e !== C && L?.[C] && Object.prototype.hasOwnProperty.call(L[C], t));
|
|
1119
1136
|
}
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
super(e, r, o, n, i), this.type = 5;
|
|
1123
|
-
}
|
|
1124
|
-
_$AI(e, r = this) {
|
|
1125
|
-
if ((e = B(this, e, r, 0) ?? m) === M) return;
|
|
1126
|
-
const o = this._$AH, n = e === m && o !== m || e.capture !== o.capture || e.once !== o.once || e.passive !== o.passive, i = e !== m && (o === m || n);
|
|
1127
|
-
n && this.element.removeEventListener(this.name, this, o), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
1128
|
-
}
|
|
1129
|
-
handleEvent(e) {
|
|
1130
|
-
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
|
|
1131
|
-
}
|
|
1137
|
+
function se(t) {
|
|
1138
|
+
return Z(t);
|
|
1132
1139
|
}
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
return this._$AM._$AU;
|
|
1139
|
-
}
|
|
1140
|
-
_$AI(e) {
|
|
1141
|
-
B(this, e);
|
|
1140
|
+
function Jn() {
|
|
1141
|
+
const t = $e();
|
|
1142
|
+
if (t && Object.keys(t).length > 0) {
|
|
1143
|
+
const e = Object.keys(t);
|
|
1144
|
+
return Promise.resolve(Yt(e));
|
|
1142
1145
|
}
|
|
1146
|
+
return Promise.resolve([C]);
|
|
1143
1147
|
}
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
const o = r?.renderBefore ?? e;
|
|
1148
|
-
let n = o._$litPart$;
|
|
1149
|
-
if (n === void 0) {
|
|
1150
|
-
const i = r?.renderBefore ?? null;
|
|
1151
|
-
o._$litPart$ = n = new Q(e.insertBefore(K(), i), i, void 0, r ?? {});
|
|
1152
|
-
}
|
|
1153
|
-
return n._$AI(t), n;
|
|
1154
|
-
};
|
|
1155
|
-
/**
|
|
1156
|
-
* @license
|
|
1157
|
-
* Copyright 2023 Google LLC
|
|
1158
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
1159
|
-
*/
|
|
1160
|
-
F.State;
|
|
1161
|
-
F.Computed;
|
|
1162
|
-
const st = (t, e) => new F.State(t, e), Qr = {
|
|
1163
|
-
mode: "auto",
|
|
1164
|
-
baseWidth: 280,
|
|
1165
|
-
minScale: 0.75,
|
|
1166
|
-
maxScale: 2
|
|
1167
|
-
}, $e = st(1), le = st(Qr);
|
|
1168
|
-
function eo(t, e = le.get()) {
|
|
1169
|
-
if (e.mode === "fixed")
|
|
1170
|
-
return 1;
|
|
1171
|
-
const r = t / e.baseWidth, o = Math.max(
|
|
1172
|
-
e.minScale,
|
|
1173
|
-
Math.min(e.maxScale, r)
|
|
1174
|
-
);
|
|
1175
|
-
return Number(o.toFixed(3));
|
|
1148
|
+
function Ht() {
|
|
1149
|
+
const t = $e();
|
|
1150
|
+
return t && Object.keys(t).length > 0 ? Yt(Object.keys(t)) : [C];
|
|
1176
1151
|
}
|
|
1177
|
-
function
|
|
1178
|
-
|
|
1179
|
-
|
|
1152
|
+
function Yn(t, e) {
|
|
1153
|
+
console.log(
|
|
1154
|
+
`Loading additional translations for ${t}:`,
|
|
1155
|
+
Object.keys(e).length,
|
|
1156
|
+
"keys"
|
|
1157
|
+
);
|
|
1180
1158
|
}
|
|
1181
|
-
function
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
detail: { scalingFactor: r, config: e }
|
|
1159
|
+
function Mt(t) {
|
|
1160
|
+
localStorage.setItem("language", t), k.set(t), window.dispatchEvent(
|
|
1161
|
+
new CustomEvent("language-changed", {
|
|
1162
|
+
detail: { language: t },
|
|
1163
|
+
bubbles: !0,
|
|
1164
|
+
composed: !0
|
|
1188
1165
|
})
|
|
1189
1166
|
);
|
|
1190
1167
|
}
|
|
1191
|
-
function
|
|
1192
|
-
|
|
1168
|
+
function N(t) {
|
|
1169
|
+
if (!(typeof window > "u"))
|
|
1170
|
+
try {
|
|
1171
|
+
const e = window.localStorage?.getItem("ds-one:preferences"), o = { ...e ? JSON.parse(e) : {}, ...t };
|
|
1172
|
+
window.localStorage?.setItem("ds-one:preferences", JSON.stringify(o));
|
|
1173
|
+
} catch (e) {
|
|
1174
|
+
console.warn("ds-one: unable to persist preferences", e);
|
|
1175
|
+
}
|
|
1193
1176
|
}
|
|
1177
|
+
const Qr = {
|
|
1178
|
+
da: "kr.",
|
|
1179
|
+
nb: "kr.",
|
|
1180
|
+
sv: "kr.",
|
|
1181
|
+
de: "€",
|
|
1182
|
+
en: "$",
|
|
1183
|
+
pt: "€",
|
|
1184
|
+
es: "€",
|
|
1185
|
+
zh: "¥",
|
|
1186
|
+
ja: "¥",
|
|
1187
|
+
ko: "₩"
|
|
1188
|
+
};
|
|
1194
1189
|
function Xn(t) {
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
}, 100);
|
|
1210
|
-
}), window.addEventListener("orientationchange", () => {
|
|
1211
|
-
setTimeout(ne, 100);
|
|
1212
|
-
});
|
|
1190
|
+
const { language: e, country: r } = t;
|
|
1191
|
+
if (r) {
|
|
1192
|
+
const n = r.toUpperCase();
|
|
1193
|
+
if (n === "US" || n === "USA")
|
|
1194
|
+
return "$";
|
|
1195
|
+
if (n === "GB" || n === "UK")
|
|
1196
|
+
return "£";
|
|
1197
|
+
if (n === "JP" || n === "JPN" || n === "CN" || n === "CHN")
|
|
1198
|
+
return "¥";
|
|
1199
|
+
if (n === "KR" || n === "KOR")
|
|
1200
|
+
return "₩";
|
|
1201
|
+
}
|
|
1202
|
+
const o = e.toLowerCase().split(/[-_]/)[0];
|
|
1203
|
+
return Qr[o] || "$";
|
|
1213
1204
|
}
|
|
1214
|
-
|
|
1215
|
-
function to() {
|
|
1205
|
+
function eo() {
|
|
1216
1206
|
if (typeof window > "u")
|
|
1217
1207
|
return "light";
|
|
1218
1208
|
const t = window.localStorage?.getItem("ds-one:theme");
|
|
1219
1209
|
return t === "light" || t === "dark" ? t : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
1220
1210
|
}
|
|
1221
|
-
const
|
|
1222
|
-
function
|
|
1223
|
-
if (t !==
|
|
1211
|
+
const Q = it(eo());
|
|
1212
|
+
function to(t) {
|
|
1213
|
+
if (t !== Q.get() && (Q.set(t), typeof window < "u")) {
|
|
1224
1214
|
try {
|
|
1225
1215
|
window.localStorage?.setItem("ds-one:theme", t);
|
|
1226
1216
|
} catch (r) {
|
|
@@ -1233,7 +1223,7 @@ function ro(t) {
|
|
|
1233
1223
|
}
|
|
1234
1224
|
}
|
|
1235
1225
|
if (typeof window < "u") {
|
|
1236
|
-
const t =
|
|
1226
|
+
const t = Q.get(), e = window.document?.documentElement;
|
|
1237
1227
|
e && (e.classList.remove("light-theme", "dark-theme"), e.classList.add(`${t}-theme`));
|
|
1238
1228
|
}
|
|
1239
1229
|
/**
|
|
@@ -1241,8 +1231,8 @@ if (typeof window < "u") {
|
|
|
1241
1231
|
* Copyright 2019 Google LLC
|
|
1242
1232
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1243
1233
|
*/
|
|
1244
|
-
const
|
|
1245
|
-
let
|
|
1234
|
+
const ae = globalThis, at = ae.ShadowRoot && (ae.ShadyCSS === void 0 || ae.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, lt = Symbol(), Tt = /* @__PURE__ */ new WeakMap();
|
|
1235
|
+
let Xt = class {
|
|
1246
1236
|
constructor(e, r, o) {
|
|
1247
1237
|
if (this._$cssResult$ = !0, o !== lt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
1248
1238
|
this.cssText = e, this.t = r;
|
|
@@ -1252,7 +1242,7 @@ let Qt = class {
|
|
|
1252
1242
|
const r = this.t;
|
|
1253
1243
|
if (at && e === void 0) {
|
|
1254
1244
|
const o = r !== void 0 && r.length === 1;
|
|
1255
|
-
o && (e =
|
|
1245
|
+
o && (e = Tt.get(r)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), o && Tt.set(r, e));
|
|
1256
1246
|
}
|
|
1257
1247
|
return e;
|
|
1258
1248
|
}
|
|
@@ -1260,20 +1250,20 @@ let Qt = class {
|
|
|
1260
1250
|
return this.cssText;
|
|
1261
1251
|
}
|
|
1262
1252
|
};
|
|
1263
|
-
const x = (t) => new
|
|
1253
|
+
const x = (t) => new Xt(typeof t == "string" ? t : t + "", void 0, lt), Ae = (t, ...e) => {
|
|
1264
1254
|
const r = t.length === 1 ? t[0] : e.reduce(((o, n, i) => o + ((s) => {
|
|
1265
1255
|
if (s._$cssResult$ === !0) return s.cssText;
|
|
1266
1256
|
if (typeof s == "number") return s;
|
|
1267
1257
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
1268
1258
|
})(n) + t[i + 1]), t[0]);
|
|
1269
|
-
return new
|
|
1270
|
-
},
|
|
1259
|
+
return new Xt(r, t, lt);
|
|
1260
|
+
}, ro = (t, e) => {
|
|
1271
1261
|
if (at) t.adoptedStyleSheets = e.map(((r) => r instanceof CSSStyleSheet ? r : r.styleSheet));
|
|
1272
1262
|
else for (const r of e) {
|
|
1273
|
-
const o = document.createElement("style"), n =
|
|
1263
|
+
const o = document.createElement("style"), n = ae.litNonce;
|
|
1274
1264
|
n !== void 0 && o.setAttribute("nonce", n), o.textContent = r.cssText, t.appendChild(o);
|
|
1275
1265
|
}
|
|
1276
|
-
},
|
|
1266
|
+
}, Nt = at ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
|
|
1277
1267
|
let r = "";
|
|
1278
1268
|
for (const o of e.cssRules) r += o.cssText;
|
|
1279
1269
|
return x(r);
|
|
@@ -1283,10 +1273,10 @@ const x = (t) => new Qt(typeof t == "string" ? t : t + "", void 0, lt), Ae = (t,
|
|
|
1283
1273
|
* Copyright 2017 Google LLC
|
|
1284
1274
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1285
1275
|
*/
|
|
1286
|
-
const { is:
|
|
1276
|
+
const { is: oo, defineProperty: no, getOwnPropertyDescriptor: io, getOwnPropertyNames: so, getOwnPropertySymbols: ao, getPrototypeOf: lo } = Object, E = globalThis, It = E.trustedTypes, co = It ? It.emptyScript : "", ho = E.reactiveElementPolyfillSupport, W = (t, e) => t, Ie = { toAttribute(t, e) {
|
|
1287
1277
|
switch (e) {
|
|
1288
1278
|
case Boolean:
|
|
1289
|
-
t = t ?
|
|
1279
|
+
t = t ? co : null;
|
|
1290
1280
|
break;
|
|
1291
1281
|
case Object:
|
|
1292
1282
|
case Array:
|
|
@@ -1311,7 +1301,7 @@ const { is: no, defineProperty: io, getOwnPropertyDescriptor: so, getOwnProperty
|
|
|
1311
1301
|
}
|
|
1312
1302
|
}
|
|
1313
1303
|
return r;
|
|
1314
|
-
} },
|
|
1304
|
+
} }, Qt = (t, e) => !oo(t, e), zt = { attribute: !0, type: String, converter: Ie, reflect: !1, useDefault: !1, hasChanged: Qt };
|
|
1315
1305
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), E.litPropertyMetadata ?? (E.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
1316
1306
|
class I extends HTMLElement {
|
|
1317
1307
|
static addInitializer(e) {
|
|
@@ -1320,14 +1310,14 @@ class I extends HTMLElement {
|
|
|
1320
1310
|
static get observedAttributes() {
|
|
1321
1311
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
1322
1312
|
}
|
|
1323
|
-
static createProperty(e, r =
|
|
1313
|
+
static createProperty(e, r = zt) {
|
|
1324
1314
|
if (r.state && (r.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((r = Object.create(r)).wrapped = !0), this.elementProperties.set(e, r), !r.noAccessor) {
|
|
1325
1315
|
const o = Symbol(), n = this.getPropertyDescriptor(e, o, r);
|
|
1326
|
-
n !== void 0 &&
|
|
1316
|
+
n !== void 0 && no(this.prototype, e, n);
|
|
1327
1317
|
}
|
|
1328
1318
|
}
|
|
1329
1319
|
static getPropertyDescriptor(e, r, o) {
|
|
1330
|
-
const { get: n, set: i } =
|
|
1320
|
+
const { get: n, set: i } = io(this.prototype, e) ?? { get() {
|
|
1331
1321
|
return this[r];
|
|
1332
1322
|
}, set(s) {
|
|
1333
1323
|
this[r] = s;
|
|
@@ -1338,17 +1328,17 @@ class I extends HTMLElement {
|
|
|
1338
1328
|
}, configurable: !0, enumerable: !0 };
|
|
1339
1329
|
}
|
|
1340
1330
|
static getPropertyOptions(e) {
|
|
1341
|
-
return this.elementProperties.get(e) ??
|
|
1331
|
+
return this.elementProperties.get(e) ?? zt;
|
|
1342
1332
|
}
|
|
1343
1333
|
static _$Ei() {
|
|
1344
|
-
if (this.hasOwnProperty(
|
|
1345
|
-
const e =
|
|
1334
|
+
if (this.hasOwnProperty(W("elementProperties"))) return;
|
|
1335
|
+
const e = lo(this);
|
|
1346
1336
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
1347
1337
|
}
|
|
1348
1338
|
static finalize() {
|
|
1349
|
-
if (this.hasOwnProperty(
|
|
1350
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
1351
|
-
const r = this.properties, o = [...
|
|
1339
|
+
if (this.hasOwnProperty(W("finalized"))) return;
|
|
1340
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(W("properties"))) {
|
|
1341
|
+
const r = this.properties, o = [...so(r), ...ao(r)];
|
|
1352
1342
|
for (const n of o) this.createProperty(n, r[n]);
|
|
1353
1343
|
}
|
|
1354
1344
|
const e = this[Symbol.metadata];
|
|
@@ -1367,8 +1357,8 @@ class I extends HTMLElement {
|
|
|
1367
1357
|
const r = [];
|
|
1368
1358
|
if (Array.isArray(e)) {
|
|
1369
1359
|
const o = new Set(e.flat(1 / 0).reverse());
|
|
1370
|
-
for (const n of o) r.unshift(
|
|
1371
|
-
} else e !== void 0 && r.push(
|
|
1360
|
+
for (const n of o) r.unshift(Nt(n));
|
|
1361
|
+
} else e !== void 0 && r.push(Nt(e));
|
|
1372
1362
|
return r;
|
|
1373
1363
|
}
|
|
1374
1364
|
static _$Eu(e, r) {
|
|
@@ -1394,7 +1384,7 @@ class I extends HTMLElement {
|
|
|
1394
1384
|
}
|
|
1395
1385
|
createRenderRoot() {
|
|
1396
1386
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
1397
|
-
return
|
|
1387
|
+
return ro(e, this.constructor.elementStyles), e;
|
|
1398
1388
|
}
|
|
1399
1389
|
connectedCallback() {
|
|
1400
1390
|
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), this._$EO?.forEach(((e) => e.hostConnected?.()));
|
|
@@ -1410,14 +1400,14 @@ class I extends HTMLElement {
|
|
|
1410
1400
|
_$ET(e, r) {
|
|
1411
1401
|
const o = this.constructor.elementProperties.get(e), n = this.constructor._$Eu(e, o);
|
|
1412
1402
|
if (n !== void 0 && o.reflect === !0) {
|
|
1413
|
-
const i = (o.converter?.toAttribute !== void 0 ? o.converter :
|
|
1403
|
+
const i = (o.converter?.toAttribute !== void 0 ? o.converter : Ie).toAttribute(r, o.type);
|
|
1414
1404
|
this._$Em = e, i == null ? this.removeAttribute(n) : this.setAttribute(n, i), this._$Em = null;
|
|
1415
1405
|
}
|
|
1416
1406
|
}
|
|
1417
1407
|
_$AK(e, r) {
|
|
1418
1408
|
const o = this.constructor, n = o._$Eh.get(e);
|
|
1419
1409
|
if (n !== void 0 && this._$Em !== n) {
|
|
1420
|
-
const i = o.getPropertyOptions(n), s = typeof i.converter == "function" ? { fromAttribute: i.converter } : i.converter?.fromAttribute !== void 0 ? i.converter :
|
|
1410
|
+
const i = o.getPropertyOptions(n), s = typeof i.converter == "function" ? { fromAttribute: i.converter } : i.converter?.fromAttribute !== void 0 ? i.converter : Ie;
|
|
1421
1411
|
this._$Em = n;
|
|
1422
1412
|
const a = s.fromAttribute(r, i.type);
|
|
1423
1413
|
this[n] = a ?? this._$Ej?.get(n) ?? a, this._$Em = null;
|
|
@@ -1426,7 +1416,7 @@ class I extends HTMLElement {
|
|
|
1426
1416
|
requestUpdate(e, r, o) {
|
|
1427
1417
|
if (e !== void 0) {
|
|
1428
1418
|
const n = this.constructor, i = this[e];
|
|
1429
|
-
if (o ?? (o = n.getPropertyOptions(e)), !((o.hasChanged ??
|
|
1419
|
+
if (o ?? (o = n.getPropertyOptions(e)), !((o.hasChanged ?? Qt)(i, r) || o.useDefault && o.reflect && i === this._$Ej?.get(e) && !this.hasAttribute(n._$Eu(e, o)))) return;
|
|
1430
1420
|
this.C(e, r, o);
|
|
1431
1421
|
}
|
|
1432
1422
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -1494,13 +1484,13 @@ class I extends HTMLElement {
|
|
|
1494
1484
|
firstUpdated(e) {
|
|
1495
1485
|
}
|
|
1496
1486
|
}
|
|
1497
|
-
I.elementStyles = [], I.shadowRootOptions = { mode: "open" }, I[
|
|
1487
|
+
I.elementStyles = [], I.shadowRootOptions = { mode: "open" }, I[W("elementProperties")] = /* @__PURE__ */ new Map(), I[W("finalized")] = /* @__PURE__ */ new Map(), ho?.({ ReactiveElement: I }), (E.reactiveElementVersions ?? (E.reactiveElementVersions = [])).push("2.1.1");
|
|
1498
1488
|
/**
|
|
1499
1489
|
* @license
|
|
1500
1490
|
* Copyright 2017 Google LLC
|
|
1501
1491
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1502
1492
|
*/
|
|
1503
|
-
const
|
|
1493
|
+
const F = globalThis;
|
|
1504
1494
|
class f extends I {
|
|
1505
1495
|
constructor() {
|
|
1506
1496
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
@@ -1512,7 +1502,7 @@ class f extends I {
|
|
|
1512
1502
|
}
|
|
1513
1503
|
update(e) {
|
|
1514
1504
|
const r = this.render();
|
|
1515
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
|
1505
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Br(r, this.renderRoot, this.renderOptions);
|
|
1516
1506
|
}
|
|
1517
1507
|
connectedCallback() {
|
|
1518
1508
|
super.connectedCallback(), this._$Do?.setConnected(!0);
|
|
@@ -1524,11 +1514,11 @@ class f extends I {
|
|
|
1524
1514
|
return M;
|
|
1525
1515
|
}
|
|
1526
1516
|
}
|
|
1527
|
-
f._$litElement$ = !0, f.finalized = !0,
|
|
1528
|
-
const
|
|
1529
|
-
|
|
1530
|
-
(
|
|
1531
|
-
const
|
|
1517
|
+
f._$litElement$ = !0, f.finalized = !0, F.litElementHydrateSupport?.({ LitElement: f });
|
|
1518
|
+
const uo = F.litElementPolyfillSupport;
|
|
1519
|
+
uo?.({ LitElement: f });
|
|
1520
|
+
(F.litElementVersions ?? (F.litElementVersions = [])).push("4.2.1");
|
|
1521
|
+
const po = ':host{display:inline;font-family:var(--typeface-regular);font-size:var(--type-size-default);font-weight:var(--type-weight-default);line-height:calc(var(--type-lineheight-default) * var(--sf));letter-spacing:calc(var(--type-letterspacing-default) * var(--sf));text-align:var(--text-align-default);text-transform:var(--text-transform-default);text-decoration:var(--text-decoration-default)}:host([data-language="ja"]){font-family:var(--typeface-regular-jp)}:host([data-language="zh"]),:host([data-language="zh-hant"]){font-family:var(--typeface-regular-zh-hant);font-weight:800}:host([data-language="zh-hans"]){font-family:var(--typeface-regular-zh-hans);font-weight:800}', ct = class ct extends f {
|
|
1532
1522
|
static get properties() {
|
|
1533
1523
|
return {
|
|
1534
1524
|
text: { type: String, reflect: !0 },
|
|
@@ -1585,7 +1575,7 @@ const go = ':host{display:inline;font-family:var(--typeface-regular);font-size:v
|
|
|
1585
1575
|
return;
|
|
1586
1576
|
}
|
|
1587
1577
|
try {
|
|
1588
|
-
const e =
|
|
1578
|
+
const e = se(this.text);
|
|
1589
1579
|
this._text = e || this.defaultValue || this.fallback || this.text;
|
|
1590
1580
|
} catch (e) {
|
|
1591
1581
|
console.error("Error loading text for text:", this.text, e), this._text = this.defaultValue || this.fallback || this.text;
|
|
@@ -1596,10 +1586,10 @@ const go = ':host{display:inline;font-family:var(--typeface-regular);font-size:v
|
|
|
1596
1586
|
return l`<span>${this._text || this.defaultValue || this.text}</span>`;
|
|
1597
1587
|
}
|
|
1598
1588
|
};
|
|
1599
|
-
ct.styles = x(
|
|
1600
|
-
let
|
|
1601
|
-
customElements.define("ds-text",
|
|
1602
|
-
const
|
|
1589
|
+
ct.styles = x(po);
|
|
1590
|
+
let ze = ct;
|
|
1591
|
+
customElements.define("ds-text", ze);
|
|
1592
|
+
const go = "button{max-height:calc(var(--08) * var(--sf));display:inline-flex;align-items:center;justify-content:center;border:none;cursor:pointer;padding:0 calc(.5px * var(--sf));color:var(--button-text-color);font-family:var(--typeface-regular)}button.title{background-color:var(--button-background-color-secondary);color:var(--button-text-color)}button.primary{background-color:var(--accent-color);color:var(--button-text-color);text-decoration-line:none;font-family:var(--typeface-regular)}button.secondary{background-color:var(--button-background-color-secondary);color:var(--button-text-color);font-family:var(--typeface-regular)}button.text{background-color:transparent;color:var(--button-color, var(--button-text-color));font-family:var(--typeface-regular);padding:0;text-decoration:none}button.text:hover{opacity:.8;text-decoration:none}button[bold]{font-weight:var(--type-weight-bold);font-family:var(--typeface-medium)}button[no-background]{background-color:transparent;max-height:var(--1);padding:0;color:var(--button-color, var(--button-text-color-secondary))}button[no-background][bold]{font-weight:var(--type-weight-bold);font-family:var(--typeface-medium);color:var(--button-color, var(--button-text-color-secondary))}.loading{opacity:.7}", de = class de extends f {
|
|
1603
1593
|
constructor() {
|
|
1604
1594
|
super(), this.variant = "title", this.disabled = !1, this.bold = !1, this["no-background"] = !1, this.blank = !1, this.text = "", this.fallback = "", this.language = "en-US", this.defaultText = "", this.href = "", this._loading = !1;
|
|
1605
1595
|
}
|
|
@@ -1635,7 +1625,7 @@ const vo = "button{max-height:calc(var(--08) * var(--sf));display:inline-flex;al
|
|
|
1635
1625
|
}
|
|
1636
1626
|
}
|
|
1637
1627
|
};
|
|
1638
|
-
|
|
1628
|
+
de.properties = {
|
|
1639
1629
|
variant: { type: String, reflect: !0 },
|
|
1640
1630
|
disabled: { type: Boolean, reflect: !0 },
|
|
1641
1631
|
bold: { type: Boolean, reflect: !0 },
|
|
@@ -1651,10 +1641,10 @@ ce.properties = {
|
|
|
1651
1641
|
defaultText: { type: String, attribute: "default-text" },
|
|
1652
1642
|
href: { type: String },
|
|
1653
1643
|
_loading: { type: Boolean, state: !0 }
|
|
1654
|
-
},
|
|
1655
|
-
let
|
|
1656
|
-
customElements.define("ds-button",
|
|
1657
|
-
const
|
|
1644
|
+
}, de.styles = x(go);
|
|
1645
|
+
let Oe = de;
|
|
1646
|
+
customElements.define("ds-button", Oe);
|
|
1647
|
+
const vo = ':host{display:flex;position:absolute;top:0;left:0;right:0;width:100%;height:calc(var(--unit) * var(--sf, 1));align-items:center;justify-content:space-between;padding:0 calc(var(--unit) * var(--sf, 1));box-sizing:border-box;z-index:9999}:host([variant="warning"]){background-color:color-mix(in srgb,var(--yellow) 50%,transparent);--banner-text-color: color-mix(in srgb, var(--black) 50%, transparent);--banner-action-color: var(--slate)}:host([variant="info"]){background-color:rgba(var(--sharp-blue-rgb, 0, 122, 255),.7);--banner-text-color: var(--white, #fff);--banner-action-color: var(--white, #fff)}:host([variant="success"]){background-color:rgba(var(--apple-green-rgb, 52, 199, 89),.7);--banner-text-color: var(--white, #fff);--banner-action-color: var(--white, #fff)}:host([variant="error"]){background-color:rgba(var(--tuned-red-rgb, 255, 59, 48),.7);--banner-text-color: var(--white, #fff);--banner-action-color: var(--slate, #1e1e1e)}.text-wrapper{flex:1;cursor:pointer;user-select:none}.text-wrapper ds-text,.text-wrapper .version{color:var(--banner-text-color)}.action-wrapper{font-size:calc(12px * var(--sf, 1))}.action-wrapper a{color:var(--banner-action-color);text-decoration:none;font-family:var(--typeface-regular);font-size:calc(12px * var(--sf, 1));cursor:pointer;pointer-events:auto;display:inline-block}.action-wrapper a:hover{opacity:.8}.action-wrapper ds-text{color:var(--banner-action-color);font-family:var(--typeface-regular);font-size:calc(12px * var(--sf, 1));pointer-events:none}', he = class he extends f {
|
|
1658
1648
|
constructor() {
|
|
1659
1649
|
super(...arguments), this.text = "", this.action = "", this.href = "", this.mailto = "", this.subject = "", this.describe = "", this.appVersion = "", this.variant = "warning", this.version = "", this._showVersion = !1, this._boundUpdate = () => this.requestUpdate();
|
|
1660
1650
|
}
|
|
@@ -1671,7 +1661,7 @@ const fo = ':host{display:flex;position:absolute;top:0;left:0;right:0;width:100%
|
|
|
1671
1661
|
if (this.href && this.href !== "#") return this.href;
|
|
1672
1662
|
if (this.mailto)
|
|
1673
1663
|
try {
|
|
1674
|
-
const e = this.subject ?
|
|
1664
|
+
const e = this.subject ? se(this.subject) || this.subject : "Issue report", r = this.describe ? se(this.describe) || this.describe : "Describe the issue:", o = this.appVersion ? se(this.appVersion) || this.appVersion : "App version:", n = `${r}
|
|
1675
1665
|
|
|
1676
1666
|
|
|
1677
1667
|
${o} ${this.version || ""}`;
|
|
@@ -1697,7 +1687,7 @@ ${o} ${this.version || ""}`;
|
|
|
1697
1687
|
`;
|
|
1698
1688
|
}
|
|
1699
1689
|
};
|
|
1700
|
-
|
|
1690
|
+
he.properties = {
|
|
1701
1691
|
text: { type: String },
|
|
1702
1692
|
action: { type: String },
|
|
1703
1693
|
href: { type: String },
|
|
@@ -1708,10 +1698,10 @@ de.properties = {
|
|
|
1708
1698
|
variant: { type: String },
|
|
1709
1699
|
version: { type: String },
|
|
1710
1700
|
_showVersion: { type: Boolean, state: !0 }
|
|
1711
|
-
},
|
|
1712
|
-
let
|
|
1713
|
-
customElements.define("ds-banner",
|
|
1714
|
-
const
|
|
1701
|
+
}, he.styles = x(vo);
|
|
1702
|
+
let Pe = he;
|
|
1703
|
+
customElements.define("ds-banner", Pe);
|
|
1704
|
+
const ue = class ue extends f {
|
|
1715
1705
|
constructor() {
|
|
1716
1706
|
super(), this.variant = "default", this.elevation = 1, this.interactive = !1, this.disabled = !1, this.padding = "medium";
|
|
1717
1707
|
}
|
|
@@ -1723,13 +1713,13 @@ const he = class he extends f {
|
|
|
1723
1713
|
`;
|
|
1724
1714
|
}
|
|
1725
1715
|
};
|
|
1726
|
-
|
|
1716
|
+
ue.properties = {
|
|
1727
1717
|
variant: { type: String, reflect: !0 },
|
|
1728
1718
|
elevation: { type: Number, reflect: !0 },
|
|
1729
1719
|
interactive: { type: Boolean, reflect: !0 },
|
|
1730
1720
|
disabled: { type: Boolean, reflect: !0 },
|
|
1731
1721
|
padding: { type: String, reflect: !0 }
|
|
1732
|
-
},
|
|
1722
|
+
}, ue.styles = Ae`
|
|
1733
1723
|
:host {
|
|
1734
1724
|
display: block;
|
|
1735
1725
|
box-sizing: border-box;
|
|
@@ -1820,13 +1810,13 @@ he.properties = {
|
|
|
1820
1810
|
height: 100%;
|
|
1821
1811
|
}
|
|
1822
1812
|
`;
|
|
1823
|
-
let
|
|
1824
|
-
customElements.define("ds-card",
|
|
1825
|
-
const
|
|
1813
|
+
let Be = ue;
|
|
1814
|
+
customElements.define("ds-card", Be);
|
|
1815
|
+
const fo = `<svg width="9" height="8" viewBox="0 0 9 8" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1826
1816
|
<path d="M2.20008 2.1176C1.96088 2.3776 1.48248 2.5024 1.09768 2.5024H0.848083V1.4H1.01448C1.68008 1.4 2.21048 1.0464 2.41848 0.307999H3.39608V7.692H2.20008V2.1176Z" fill="#2A2A2A"/>
|
|
1827
1817
|
<path d="M4.27992 7.692L5.81912 4.9776L4.39432 2.492H5.68392L6.30792 3.7816C6.41192 3.9896 6.48472 4.1456 6.52632 4.312H6.54712C6.57832 4.156 6.65112 3.9792 6.75512 3.7712L7.33752 2.492H8.60632L7.21272 5.0088L8.75192 7.692H7.44152L6.72392 6.2672C6.61992 6.0592 6.53672 5.872 6.50552 5.7368H6.48472C6.45352 5.8512 6.37032 6.0488 6.25592 6.2672L5.53832 7.692H4.27992Z" fill="#2A2A2A"/>
|
|
1828
1818
|
</svg>
|
|
1829
|
-
`,
|
|
1819
|
+
`, wo = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1830
1820
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.28996 0.148769V1.16877H0.269958V0.148769H1.28996Z" fill="#2A2A2A"/>
|
|
1831
1821
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.30998 0.148769V1.16877H5.28998V0.148769H6.30998Z" fill="#2A2A2A"/>
|
|
1832
1822
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.33 0.148769V1.16877H10.31V0.148769H11.33Z" fill="#2A2A2A"/>
|
|
@@ -1837,7 +1827,7 @@ const wo = `<svg width="9" height="8" viewBox="0 0 9 8" fill="none" xmlns="http:
|
|
|
1837
1827
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.30998 10.1888V11.2088H5.28998V10.1888H6.30998Z" fill="#2A2A2A"/>
|
|
1838
1828
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M11.33 10.1888V11.2088H10.31V10.1888H11.33Z" fill="#2A2A2A"/>
|
|
1839
1829
|
</svg>
|
|
1840
|
-
`,
|
|
1830
|
+
`, mo = `<svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1841
1831
|
<path d="M0.799988 3.34877L16.8 3.34877V4.36877L0.799988 4.36877V3.34877Z" fill="#2A2A2A"/>
|
|
1842
1832
|
<path d="M0.799988 8.16877L16.8 8.16877V9.18877L0.799988 9.18877V8.16877Z" fill="#2A2A2A"/>
|
|
1843
1833
|
<path d="M0.799988 12.9888H16.8V14.0088L0.799988 14.0088V12.9888Z" fill="#2A2A2A"/>
|
|
@@ -1850,11 +1840,11 @@ const wo = `<svg width="9" height="8" viewBox="0 0 9 8" fill="none" xmlns="http:
|
|
|
1850
1840
|
<path d="M0.799988 5.16877L16.8 5.16877V6.18877L0.799988 6.18877V5.16877Z" fill="#2A2A2A"/>
|
|
1851
1841
|
<path d="M0.799988 10.1888H16.8V11.2088L0.799988 11.2088V10.1888Z" fill="#2A2A2A"/>
|
|
1852
1842
|
</svg>
|
|
1853
|
-
`,
|
|
1843
|
+
`, yo = `<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1854
1844
|
<path d="M3.2 2.12C2.96 2.38 2.48 2.5 2.1 2.5H1.85V1.4H2.01C2.68 1.4 3.21 1.05 3.42 0.31H4.4V7.69H3.2V2.12Z" fill="currentColor"/>
|
|
1855
1845
|
<path d="M5.28 7.69L6.82 4.98L5.39 2.49H6.68L7.31 3.78C7.41 3.99 7.48 4.15 7.53 4.31H7.55C7.58 4.16 7.65 3.98 7.76 3.77L8.34 2.49H9.61L8.21 5.01L9.75 7.69H8.44L7.72 6.27C7.62 6.06 7.54 5.87 7.51 5.74H7.48C7.45 5.85 7.37 6.05 7.26 6.27L6.54 7.69H5.28Z" fill="currentColor"/>
|
|
1856
1846
|
</svg>
|
|
1857
|
-
`,
|
|
1847
|
+
`, xo = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1858
1848
|
<circle cx="1" cy="1" r="0.75" fill="currentColor"/>
|
|
1859
1849
|
<circle cx="4" cy="1" r="0.75" fill="currentColor"/>
|
|
1860
1850
|
<circle cx="7" cy="1" r="0.75" fill="currentColor"/>
|
|
@@ -1872,19 +1862,19 @@ const wo = `<svg width="9" height="8" viewBox="0 0 9 8" fill="none" xmlns="http:
|
|
|
1872
1862
|
<circle cx="7" cy="10" r="0.75" fill="currentColor"/>
|
|
1873
1863
|
<circle cx="10" cy="10" r="0.75" fill="currentColor"/>
|
|
1874
1864
|
</svg>
|
|
1875
|
-
`,
|
|
1865
|
+
`, _o = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1876
1866
|
<rect x="0" y="0" width="5.5" height="5.5" fill="currentColor"/>
|
|
1877
1867
|
<rect x="6.5" y="0" width="5.5" height="5.5" fill="currentColor"/>
|
|
1878
1868
|
<rect x="0" y="6.5" width="5.5" height="5.5" fill="currentColor"/>
|
|
1879
1869
|
<rect x="6.5" y="6.5" width="5.5" height="5.5" fill="currentColor"/>
|
|
1880
1870
|
</svg>
|
|
1881
|
-
`,
|
|
1871
|
+
`, ko = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1882
1872
|
<line x1="0" y1="1" x2="12" y2="1" stroke="currentColor" stroke-width="1"/>
|
|
1883
1873
|
<line x1="0" y1="4" x2="12" y2="4" stroke="currentColor" stroke-width="1"/>
|
|
1884
1874
|
<line x1="0" y1="7" x2="12" y2="7" stroke="currentColor" stroke-width="1"/>
|
|
1885
1875
|
<line x1="0" y1="10" x2="12" y2="10" stroke="currentColor" stroke-width="1"/>
|
|
1886
1876
|
</svg>
|
|
1887
|
-
`,
|
|
1877
|
+
`, Co = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1888
1878
|
<rect x="0" y="0" width="2.5" height="2.5" fill="currentColor"/>
|
|
1889
1879
|
<rect x="3.5" y="0" width="2.5" height="2.5" fill="currentColor"/>
|
|
1890
1880
|
<rect x="7" y="0" width="2.5" height="2.5" fill="currentColor"/>
|
|
@@ -1902,229 +1892,229 @@ const wo = `<svg width="9" height="8" viewBox="0 0 9 8" fill="none" xmlns="http:
|
|
|
1902
1892
|
<rect x="7" y="10.5" width="2.5" height="1.5" fill="currentColor"/>
|
|
1903
1893
|
<rect x="10.5" y="10.5" width="1.5" height="1.5" fill="currentColor"/>
|
|
1904
1894
|
</svg>
|
|
1905
|
-
`,
|
|
1895
|
+
`, $o = `<svg width="12" height="14" viewBox="0 0 12 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1906
1896
|
<path d="M9.87 7.12C9.85 5.38 11.27 4.56 11.34 4.51C10.5 3.31 9.21 3.14 8.77 3.13C7.65 3.01 6.57 3.8 6 3.8C5.42 3.8 4.52 3.14 3.58 3.16C2.36 3.18 1.22 3.88 0.6 4.97C-0.68 7.18 0.28 10.44 1.51 12.23C2.13 13.1 2.85 14.09 3.79 14.06C4.7 14.02 5.05 13.47 6.15 13.47C7.24 13.47 7.56 14.06 8.52 14.03C9.5 14.01 10.12 13.15 10.71 12.27C11.42 11.26 11.7 10.28 11.71 10.23C11.69 10.22 9.89 9.52 9.87 7.12Z" fill="currentColor"/>
|
|
1907
1897
|
<path d="M8.15 2.06C8.65 1.45 9 0.62 8.91 0C8.18 0.03 7.29 0.49 6.77 1.08C6.31 1.61 5.88 2.47 5.99 3.08C6.79 3.14 7.63 2.66 8.15 2.06Z" fill="currentColor"/>
|
|
1908
1898
|
</svg>
|
|
1909
|
-
`,
|
|
1899
|
+
`, Ao = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1910
1900
|
<circle cx="6" cy="3.5" r="2.5" fill="currentColor"/>
|
|
1911
1901
|
<path d="M1 11C1 8.23858 3.23858 6 6 6C8.76142 6 11 8.23858 11 11V12H1V11Z" fill="currentColor"/>
|
|
1912
1902
|
</svg>
|
|
1913
|
-
`,
|
|
1903
|
+
`, Lo = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1914
1904
|
<rect x="1" y="1" width="10" height="10" rx="1" stroke="currentColor" stroke-width="1.2" fill="none"/>
|
|
1915
1905
|
<path d="M4 6L6 4L8 6M6 4V8" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1916
1906
|
</svg>
|
|
1917
|
-
`,
|
|
1907
|
+
`, Eo = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1918
1908
|
<rect x="1" y="0.5" width="10" height="11" rx="1" stroke="currentColor" stroke-width="1" fill="none"/>
|
|
1919
1909
|
</svg>
|
|
1920
|
-
`,
|
|
1910
|
+
`, So = `<svg width="12" height="10" viewBox="0 0 12 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1921
1911
|
<path d="M1 5L4.5 8.5L11 1.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1922
1912
|
</svg>
|
|
1923
|
-
`,
|
|
1913
|
+
`, Vo = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1924
1914
|
<path d="M2 2L10 10M10 2L2 10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
|
|
1925
1915
|
</svg>
|
|
1926
|
-
`,
|
|
1916
|
+
`, Ho = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1927
1917
|
<path d="M2 4L6 8L10 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1928
1918
|
</svg>
|
|
1929
|
-
`,
|
|
1919
|
+
`, Mo = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1930
1920
|
<circle cx="6" cy="6" r="5" stroke="currentColor" stroke-width="1.2" fill="none"/>
|
|
1931
1921
|
<circle cx="6" cy="6" r="3" fill="currentColor"/>
|
|
1932
1922
|
</svg>
|
|
1933
|
-
`,
|
|
1923
|
+
`, To = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1934
1924
|
<rect x="0.5" y="0.5" width="3" height="11" stroke="currentColor" stroke-width="1" fill="none"/>
|
|
1935
1925
|
<rect x="4.5" y="0.5" width="3" height="11" stroke="currentColor" stroke-width="1" fill="none"/>
|
|
1936
1926
|
<rect x="8.5" y="0.5" width="3" height="11" stroke="currentColor" stroke-width="1" fill="none"/>
|
|
1937
1927
|
</svg>
|
|
1938
|
-
`,
|
|
1928
|
+
`, No = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1939
1929
|
<rect x="1" y="1" width="10" height="10" rx="1" stroke="currentColor" stroke-width="1.2" fill="none"/>
|
|
1940
1930
|
</svg>
|
|
1941
|
-
`,
|
|
1931
|
+
`, Io = `<svg width="12" height="14" viewBox="0 0 12 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1942
1932
|
<path d="M1 3H11M4.5 3V1.5H7.5V3M2.5 3V12.5C2.5 13.0523 2.94772 13.5 3.5 13.5H8.5C9.05228 13.5 9.5 13.0523 9.5 12.5V3" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
1943
1933
|
<line x1="4.5" y1="5.5" x2="4.5" y2="11" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
|
|
1944
1934
|
<line x1="7.5" y1="5.5" x2="7.5" y2="11" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
|
|
1945
1935
|
</svg>
|
|
1946
|
-
`,
|
|
1936
|
+
`, zo = `<svg width="12" height="14" viewBox="0 0 12 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1947
1937
|
<rect x="3.5" y="0" width="5" height="8" rx="2.5" fill="currentColor"/>
|
|
1948
1938
|
<path d="M1 6C1 8.76142 3.23858 11 6 11C8.76142 11 11 8.76142 11 6" stroke="currentColor" stroke-width="1.2" fill="none"/>
|
|
1949
1939
|
<line x1="6" y1="11" x2="6" y2="14" stroke="currentColor" stroke-width="1.2"/>
|
|
1950
1940
|
<line x1="3.5" y1="14" x2="8.5" y2="14" stroke="currentColor" stroke-width="1.2"/>
|
|
1951
1941
|
</svg>
|
|
1952
|
-
`,
|
|
1942
|
+
`, Oo = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1953
1943
|
<path d="M10 3L4.5 9L2 6.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1954
1944
|
</svg>
|
|
1955
|
-
`,
|
|
1945
|
+
`, Po = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1956
1946
|
<path d="M6 2V10M6 10L2 6M6 10L10 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1957
1947
|
</svg>
|
|
1958
|
-
`,
|
|
1948
|
+
`, Bo = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1959
1949
|
<rect x="3" y="3" width="8" height="8" rx="1" stroke="currentColor" stroke-width="1.2" fill="none"/>
|
|
1960
1950
|
<path d="M9 3V2C9 1.44772 8.55228 1 8 1H2C1.44772 1 1 1.44772 1 2V8C1 8.55228 1.44772 9 2 9H3" stroke="currentColor" stroke-width="1.2" fill="none"/>
|
|
1961
1951
|
</svg>
|
|
1962
|
-
`,
|
|
1952
|
+
`, Do = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="11" viewBox="0 0 16 11" fill="none">
|
|
1963
1953
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.0871 0.989435L0.930906 0.988037L0.930542 11L13.0753 11H14.0871V0.989435ZM7.50709 8.0566L1.94249 2.49201L1.94248 9.98814H13.0753V2.48839L7.50709 8.0566ZM2.85116 2L7.50709 6.65593L12.1515 1.99952L2.85116 2Z" fill="currentColor"/>
|
|
1964
1954
|
</svg>
|
|
1965
1955
|
|
|
1966
|
-
`,
|
|
1956
|
+
`, jo = `<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none">
|
|
1967
1957
|
<path d="M0 5.81415V0H5.80924L5.81842 0.990424H1.70698L11.0089 10.2943L10.9997 6.18585H12V12H6.19076L6.18158 11.0096H10.293L0.99115 1.70573L1.00033 5.81415H0Z" fill="currentColor"/>
|
|
1968
1958
|
</svg>
|
|
1969
1959
|
|
|
1970
|
-
`,
|
|
1960
|
+
`, Ro = `<svg width="12" height="10" viewBox="0 0 12 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1971
1961
|
<rect x="0.5" y="0.5" width="11" height="9" rx="0.5" stroke="currentColor" stroke-width="1" fill="none"/>
|
|
1972
1962
|
<circle cx="3.5" cy="3.5" r="1.5" fill="currentColor"/>
|
|
1973
1963
|
<path d="M0 8L4 5L7 7L12 3" stroke="currentColor" stroke-width="1" stroke-linejoin="round"/>
|
|
1974
1964
|
</svg>
|
|
1975
|
-
`,
|
|
1965
|
+
`, Uo = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1976
1966
|
<path d="M11.82 6.13C11.82 5.72 11.79 5.32 11.71 4.93H6.12V7.2H9.31C9.18 7.91 8.78 8.52 8.18 8.92V10.4H10.08C11.19 9.38 11.82 7.9 11.82 6.13Z" fill="currentColor"/>
|
|
1977
1967
|
<path d="M6.12 11.82C7.76 11.82 9.15 11.28 10.08 10.4L8.18 8.92C7.67 9.27 7.01 9.47 6.12 9.47C4.54 9.47 3.2 8.44 2.76 7.05H0.81V8.58C1.76 10.46 3.8 11.82 6.12 11.82Z" fill="currentColor"/>
|
|
1978
1968
|
<path d="M2.76 7.05C2.63 6.65 2.55 6.23 2.55 5.79C2.55 5.35 2.63 4.93 2.76 4.53V3H0.81C0.29 4.02 0 5.17 0 6.41C0 7.65 0.29 8.8 0.81 9.82L2.76 7.05Z" fill="currentColor"/>
|
|
1979
1969
|
<path d="M6.12 2.12C7.08 2.12 7.95 2.45 8.63 3.1L10.13 1.6C9.15 0.69 7.76 0.18 6.12 0.18C3.8 0.18 1.76 1.54 0.81 3.42L2.76 4.95C3.2 3.56 4.54 2.53 6.12 2.53V2.12Z" fill="currentColor"/>
|
|
1980
1970
|
</svg>
|
|
1981
|
-
`,
|
|
1971
|
+
`, qo = `<svg width="9" height="11" viewBox="0 0 9 11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1982
1972
|
<path d="M4.87149 10.5148C4.04816 10.5148 3.32882 10.3068 2.71349 9.89077C2.10682 9.47477 1.63882 8.90277 1.30949 8.17477C0.988825 7.4381 0.828491 6.6061 0.828491 5.67877C0.828491 4.7341 0.993158 3.89777 1.32249 3.16977C1.66049 2.4331 2.14582 1.8611 2.77849 1.45377C3.41982 1.04643 4.18682 0.842768 5.07949 0.842768C5.85949 0.842768 6.50082 0.994435 7.00349 1.29777C7.51483 1.6011 7.89183 1.9651 8.13449 2.38977C8.38583 2.80577 8.54183 3.22177 8.60249 3.63777L7.38049 3.80677C7.29383 3.3041 7.06416 2.85777 6.69149 2.46777C6.32749 2.07777 5.77716 1.88277 5.04049 1.88277C4.42516 1.88277 3.89216 2.0431 3.44149 2.36377C2.99949 2.68444 2.66149 3.13077 2.42749 3.70277C2.20216 4.27477 2.08949 4.93777 2.08949 5.69177C2.08949 6.80977 2.34082 7.71977 2.84349 8.42177C3.35483 9.12377 4.09149 9.47477 5.05349 9.47477C5.74683 9.47477 6.28849 9.31877 6.67849 9.00677C7.06849 8.6861 7.32849 8.31344 7.45849 7.88877C7.59716 7.4641 7.66649 7.05677 7.66649 6.66677V6.51077H4.96249V5.47077H8.77149V10.2938H7.87449L7.70549 8.81177C7.49749 9.3231 7.14216 9.73477 6.63949 10.0468C6.13683 10.3588 5.54749 10.5148 4.87149 10.5148Z" fill="#2A2A2A"/>
|
|
1983
1973
|
</svg>
|
|
1984
|
-
`,
|
|
1974
|
+
`, Zo = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1985
1975
|
<path d="M1 4H11M1 4V2C1 1.44772 1.44772 1 2 1H10C10.5523 1 11 1.44772 11 2V4M1 4V10C1 10.5523 1.44772 11 2 11H10C10.5523 11 11 10.5523 11 10V4" stroke="currentColor" stroke-width="1.2" fill="none"/>
|
|
1986
1976
|
<line x1="4" y1="6.5" x2="8" y2="6.5" stroke="currentColor" stroke-width="1" stroke-linecap="round"/>
|
|
1987
1977
|
<line x1="4" y1="8.5" x2="8" y2="8.5" stroke="currentColor" stroke-width="1" stroke-linecap="round"/>
|
|
1988
1978
|
</svg>
|
|
1989
|
-
`,
|
|
1979
|
+
`, Wo = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1990
1980
|
<path d="M1 5L6 1L11 5V11H7.5V7.5H4.5V11H1V5Z" fill="currentColor"/>
|
|
1991
1981
|
</svg>
|
|
1992
|
-
`,
|
|
1982
|
+
`, Fo = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1993
1983
|
<rect x="1" y="1" width="10" height="10" rx="2" stroke="currentColor" stroke-width="1.2" fill="none"/>
|
|
1994
1984
|
<circle cx="6" cy="6" r="2.5" fill="currentColor"/>
|
|
1995
1985
|
</svg>
|
|
1996
|
-
`,
|
|
1986
|
+
`, Ko = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1997
1987
|
<path d="M6 1L6 8M6 8L3 5M6 8L9 5" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
1998
1988
|
<path d="M2 10H10" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
|
|
1999
1989
|
</svg>
|
|
2000
|
-
`,
|
|
1990
|
+
`, Go = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="9" viewBox="0 0 16 9" fill="none">
|
|
2001
1991
|
<path d="M1.90697 3.60594H15.0636V4.61651L1.90734 4.61791L4.81456 7.52513L4.10774 8.21898L-1.23978e-05 4.11123L4.11122 0L4.81855 0.707338L1.90697 3.60594Z" fill="currentColor"/>
|
|
2002
1992
|
</svg>
|
|
2003
1993
|
|
|
2004
|
-
`,
|
|
1994
|
+
`, Jo = `<svg width="10" height="12" viewBox="0 0 10 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2005
1995
|
<rect x="1" y="5" width="8" height="6" rx="1" stroke="currentColor" stroke-width="1.2" fill="none"/>
|
|
2006
1996
|
<path d="M3 5V3C3 1.89543 3.89543 1 5 1C6.10457 1 7 1.89543 7 3V5" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" fill="none"/>
|
|
2007
1997
|
<circle cx="5" cy="8" r="1" fill="currentColor"/>
|
|
2008
1998
|
</svg>
|
|
2009
|
-
`,
|
|
1999
|
+
`, Yo = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2010
2000
|
<path d="M10 3H2C1.44772 3 1 3.44772 1 4V8C1 8.55228 1.44772 9 2 9H10C10.5523 9 11 8.55228 11 8V4C11 3.44772 10.5523 3 10 3Z" stroke="currentColor" stroke-width="1.2" fill="none"/>
|
|
2011
2001
|
<path d="M8.5 1L10.5 3L8.5 5" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
2012
2002
|
<path d="M3.5 7L1.5 9L3.5 11" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
2013
2003
|
</svg>
|
|
2014
|
-
`,
|
|
2004
|
+
`, Xo = `<svg width="10" height="14" viewBox="0 0 10 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2015
2005
|
<rect x="2.5" y="1" width="5" height="7" rx="2.5" stroke="currentColor" stroke-width="1.2" fill="none"/>
|
|
2016
2006
|
<path d="M1 6C1 8.76142 2.79086 11 5 11C7.20914 11 9 8.76142 9 6" stroke="currentColor" stroke-width="1.2" fill="none"/>
|
|
2017
2007
|
<line x1="5" y1="11" x2="5" y2="13" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
|
|
2018
2008
|
</svg>
|
|
2019
|
-
`,
|
|
2009
|
+
`, Qo = `<svg width="12" height="2" viewBox="0 0 12 2" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2020
2010
|
<line x1="1" y1="1" x2="11" y2="1" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
|
|
2021
2011
|
</svg>
|
|
2022
|
-
`,
|
|
2012
|
+
`, en = `<svg width="12" height="4" viewBox="0 0 12 4" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2023
2013
|
<circle cx="2" cy="2" r="1.5" fill="currentColor"/>
|
|
2024
2014
|
<circle cx="6" cy="2" r="1.5" fill="currentColor"/>
|
|
2025
2015
|
<circle cx="10" cy="2" r="1.5" fill="currentColor"/>
|
|
2026
2016
|
</svg>
|
|
2027
|
-
`,
|
|
2017
|
+
`, tn = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2028
2018
|
<circle cx="6" cy="6" r="5" stroke="currentColor" stroke-width="1.2" fill="none"/>
|
|
2029
2019
|
<circle cx="4" cy="5" r="1" fill="currentColor"/>
|
|
2030
2020
|
<circle cx="8" cy="5" r="1" fill="currentColor"/>
|
|
2031
2021
|
<line x1="4" y1="8" x2="8" y2="8" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
|
|
2032
2022
|
</svg>
|
|
2033
|
-
`,
|
|
2023
|
+
`, rn = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2034
2024
|
<path d="M1 2C1 1.44772 1.44772 1 2 1H7L11 5V10C11 10.5523 10.5523 11 10 11H2C1.44772 11 1 10.5523 1 10V2Z" stroke="currentColor" stroke-width="1.2" fill="none"/>
|
|
2035
2025
|
<path d="M7 1V5H11" stroke="currentColor" stroke-width="1.2" fill="none"/>
|
|
2036
2026
|
<line x1="3" y1="7" x2="9" y2="7" stroke="currentColor" stroke-width="1" stroke-linecap="round"/>
|
|
2037
2027
|
<line x1="3" y1="9" x2="7" y2="9" stroke="currentColor" stroke-width="1" stroke-linecap="round"/>
|
|
2038
2028
|
</svg>
|
|
2039
|
-
`,
|
|
2029
|
+
`, on = `<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none">
|
|
2040
2030
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 0.688477V6.54217H10.9936L11.0028 2.40581L1.64458 11.7729L0.924406 11.0528L10.2827 1.68564H6.14631L6.15554 0.688477H12Z" fill="currentColor"/>
|
|
2041
2031
|
</svg>
|
|
2042
2032
|
|
|
2043
|
-
`,
|
|
2033
|
+
`, nn = `<svg width="10" height="12" viewBox="0 0 10 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2044
2034
|
<path d="M1 2C1 1.44772 1.44772 1 2 1H6L9 4V10C9 10.5523 8.55228 11 8 11H2C1.44772 11 1 10.5523 1 10V2Z" stroke="currentColor" stroke-width="1.2" fill="none"/>
|
|
2045
2035
|
<path d="M6 1V4H9" stroke="currentColor" stroke-width="1.2" fill="none"/>
|
|
2046
2036
|
</svg>
|
|
2047
|
-
`,
|
|
2037
|
+
`, sn = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2048
2038
|
<path d="M6 2V10M2 6H10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
|
|
2049
2039
|
</svg>
|
|
2050
|
-
`,
|
|
2040
|
+
`, an = `<svg width="12" height="10" viewBox="0 0 12 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2051
2041
|
<path d="M6 1L1 5L6 9V1Z" fill="currentColor"/>
|
|
2052
2042
|
<path d="M12 1L7 5L12 9V1Z" fill="currentColor"/>
|
|
2053
2043
|
</svg>
|
|
2054
|
-
`,
|
|
2044
|
+
`, ln = `<svg xmlns="http://www.w3.org/2000/svg" width="15.064" height="8.219" viewBox="0 0 15.064 8.219" fill="none">
|
|
2055
2045
|
<path d="M14.5815 4.48047L11.0815 8.21047L10.4315 7.59047L13.1315 4.71047H0.581543V3.71047H13.1315L10.4315 0.830469L11.0815 0.210469L14.5815 3.94047C14.7815 4.15047 14.7815 4.27047 14.5815 4.48047Z" fill="currentColor"/>
|
|
2056
2046
|
</svg>
|
|
2057
2047
|
|
|
2058
|
-
`,
|
|
2048
|
+
`, cn = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2059
2049
|
<rect x="0.5" y="0.5" width="11" height="3" stroke="currentColor" stroke-width="1" fill="none"/>
|
|
2060
2050
|
<rect x="0.5" y="4.5" width="11" height="3" stroke="currentColor" stroke-width="1" fill="none"/>
|
|
2061
2051
|
<rect x="0.5" y="8.5" width="11" height="3" stroke="currentColor" stroke-width="1" fill="none"/>
|
|
2062
2052
|
</svg>
|
|
2063
|
-
`,
|
|
2053
|
+
`, dn = `<svg width="8" height="5" viewBox="0 0 8 5" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2064
2054
|
<path d="M1 1L4 4L7 1" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
2065
2055
|
</svg>
|
|
2066
|
-
`,
|
|
2056
|
+
`, hn = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2067
2057
|
<circle cx="5" cy="5" r="4" stroke="currentColor" stroke-width="1.2" fill="none"/>
|
|
2068
2058
|
<line x1="8" y1="8" x2="11" y2="11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
|
|
2069
2059
|
</svg>
|
|
2070
|
-
`,
|
|
2060
|
+
`, un = `<svg width="14" height="10" viewBox="0 0 14 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2071
2061
|
<path d="M7 1C3.5 1 1 5 1 5C1 5 3.5 9 7 9C10.5 9 13 5 13 5C13 5 10.5 1 7 1Z" stroke="currentColor" stroke-width="1.2" fill="none"/>
|
|
2072
2062
|
<circle cx="7" cy="5" r="2" fill="currentColor"/>
|
|
2073
2063
|
</svg>
|
|
2074
|
-
`,
|
|
2064
|
+
`, pn = `<svg width="14" height="12" viewBox="0 0 14 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2075
2065
|
<path d="M2 8L1 11H13L12 8" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
2076
2066
|
<path d="M3 8V4H6V1H8V4H11V8H3Z" fill="currentColor"/>
|
|
2077
2067
|
<rect x="5" y="5" width="4" height="2" fill="var(--surface-color, #fff)"/>
|
|
2078
2068
|
</svg>
|
|
2079
|
-
`,
|
|
2069
|
+
`, gn = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2080
2070
|
<path d="M6 1L7.5 4.5L11 5L8.5 7.5L9 11L6 9.5L3 11L3.5 7.5L1 5L4.5 4.5L6 1Z" stroke="currentColor" stroke-width="1.2" stroke-linejoin="round" fill="none"/>
|
|
2081
2071
|
</svg>
|
|
2082
|
-
`,
|
|
2072
|
+
`, vn = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2083
2073
|
<circle cx="6" cy="6" r="5" stroke="currentColor" stroke-width="1.2" fill="none"/>
|
|
2084
2074
|
<circle cx="6" cy="6" r="2" fill="currentColor"/>
|
|
2085
2075
|
</svg>
|
|
2086
|
-
`,
|
|
2076
|
+
`, fn = `<svg width="8" height="5" viewBox="0 0 8 5" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2087
2077
|
<path d="M1 4L4 1L7 4" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
2088
2078
|
</svg>
|
|
2089
|
-
`,
|
|
2079
|
+
`, wn = `<svg width="12" height="10" viewBox="0 0 12 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2090
2080
|
<path d="M1 1H11M6 1V9M3 9H9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
|
|
2091
2081
|
</svg>
|
|
2092
|
-
`,
|
|
2082
|
+
`, mn = `<svg width="12" height="10" viewBox="0 0 12 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2093
2083
|
<path d="M1 4L4 1M1 4L4 7M1 4H8C9.65685 4 11 5.34315 11 7V9" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
|
|
2094
2084
|
</svg>
|
|
2095
2085
|
`, bn = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2096
2086
|
<rect x="0.5" y="0.5" width="5" height="5" stroke="currentColor" stroke-width="1" stroke-dasharray="2 1" fill="none"/>
|
|
2097
2087
|
<rect x="6.5" y="6.5" width="5" height="5" stroke="currentColor" stroke-width="1" stroke-dasharray="2 1" fill="none"/>
|
|
2098
2088
|
</svg>
|
|
2099
|
-
`,
|
|
2089
|
+
`, yn = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2100
2090
|
<path d="M1 1H11M1 1V10C1 10.5523 1.44772 11 2 11H10C10.5523 11 11 10.5523 11 10V1" stroke="currentColor" stroke-width="1.2" stroke-dasharray="2 1" fill="none"/>
|
|
2101
2091
|
</svg>
|
|
2102
|
-
`,
|
|
2092
|
+
`, xn = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2103
2093
|
<rect x="1" y="1" width="10" height="10" rx="2" stroke="currentColor" stroke-width="1.2" stroke-dasharray="2 1" fill="none"/>
|
|
2104
2094
|
</svg>
|
|
2105
|
-
`,
|
|
2095
|
+
`, _n = `<svg width="10" height="12" viewBox="0 0 10 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2106
2096
|
<rect x="1" y="5" width="8" height="6" rx="1" stroke="currentColor" stroke-width="1.2" fill="none"/>
|
|
2107
2097
|
<path d="M3 5V3C3 1.89543 3.89543 1 5 1C6.10457 1 7 1.89543 7 3" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" fill="none"/>
|
|
2108
2098
|
<circle cx="5" cy="8" r="1" fill="currentColor"/>
|
|
2109
2099
|
</svg>
|
|
2110
|
-
`,
|
|
2100
|
+
`, kn = `<svg width="10" height="14" viewBox="0 0 10 14" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2111
2101
|
<rect x="2.5" y="1" width="5" height="7" rx="2.5" stroke="currentColor" stroke-width="1.2" fill="none"/>
|
|
2112
2102
|
<path d="M1 6C1 8.76142 2.79086 11 5 11C7.20914 11 9 8.76142 9 6" stroke="currentColor" stroke-width="1.2" fill="none"/>
|
|
2113
2103
|
<line x1="5" y1="11" x2="5" y2="13" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
|
|
2114
2104
|
<line x1="1" y1="1" x2="9" y2="13" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
|
|
2115
2105
|
</svg>
|
|
2116
|
-
`,
|
|
2106
|
+
`, Cn = `<svg width="14" height="12" viewBox="0 0 14 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2117
2107
|
<path d="M7 2C3.5 2 1 6 1 6C1 6 3.5 10 7 10C10.5 10 13 6 13 6C13 6 10.5 2 7 2Z" stroke="currentColor" stroke-width="1.2" fill="none"/>
|
|
2118
2108
|
<circle cx="7" cy="6" r="2" stroke="currentColor" stroke-width="1.2" fill="none"/>
|
|
2119
2109
|
<line x1="2" y1="1" x2="12" y2="11" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
|
|
2120
2110
|
</svg>
|
|
2121
|
-
`,
|
|
2111
|
+
`, $n = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2122
2112
|
<path d="M6 1L7.5 4.5L11 5L8.5 7.5L9 11L6 9.5L3 11L3.5 7.5L1 5L4.5 4.5L6 1Z" stroke="currentColor" stroke-width="1.2" stroke-linejoin="round" stroke-dasharray="2 1" fill="none"/>
|
|
2123
2113
|
</svg>
|
|
2124
|
-
`,
|
|
2114
|
+
`, An = `<svg width="12" height="10" viewBox="0 0 12 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2125
2115
|
<path d="M1 1H11M6 1V9M3 9H9" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-dasharray="2 1"/>
|
|
2126
2116
|
</svg>
|
|
2127
|
-
`,
|
|
2117
|
+
`, Ln = `<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2128
2118
|
<path d="M6 10V2M6 2L2 6M6 2L10 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
2129
2119
|
</svg>
|
|
2130
2120
|
`;
|
|
@@ -2133,9 +2123,9 @@ const wo = `<svg width="9" height="8" viewBox="0 0 9 8" fill="none" xmlns="http:
|
|
|
2133
2123
|
* Copyright 2017 Google LLC
|
|
2134
2124
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2135
2125
|
*/
|
|
2136
|
-
class
|
|
2126
|
+
class De extends Er {
|
|
2137
2127
|
constructor(e) {
|
|
2138
|
-
if (super(e), this.it = m, e.type !==
|
|
2128
|
+
if (super(e), this.it = m, e.type !== Ar.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
2139
2129
|
}
|
|
2140
2130
|
render(e) {
|
|
2141
2131
|
if (e === m || e == null) return this._t = void 0, this.it = e;
|
|
@@ -2147,8 +2137,8 @@ class je extends jr {
|
|
|
2147
2137
|
return r.raw = r, this._t = { _$litType$: this.constructor.resultType, strings: r, values: [] };
|
|
2148
2138
|
}
|
|
2149
2139
|
}
|
|
2150
|
-
|
|
2151
|
-
const
|
|
2140
|
+
De.directiveName = "unsafeHTML", De.resultType = 1;
|
|
2141
|
+
const En = Lr(De), Sn = ":host{display:inline-flex;justify-content:center;align-items:center;width:calc(16px * var(--sf));height:calc(16px * var(--sf));--notes-style-color: #ffb6b9}svg{width:100%;height:100%;fill:var(--icon-color, currentColor)}path{fill:var(--icon-color, currentColor)}.icon-container{display:flex;justify-content:center;align-items:center;width:calc(16px * var(--sf));height:calc(16px * var(--sf))}", O = class O extends f {
|
|
2152
2142
|
constructor() {
|
|
2153
2143
|
super(), this._type = "", this.size = "1em", this.color = "currentColor", this.background = "transparent", console.log("Icon constructor", this._type);
|
|
2154
2144
|
}
|
|
@@ -2167,7 +2157,7 @@ const Sn = Dr(je), Vn = ":host{display:inline-flex;justify-content:center;align-
|
|
|
2167
2157
|
return console.log("No type specified, rendering default slot"), l`<div class="icon-container"><slot></slot></div>`;
|
|
2168
2158
|
const e = O.iconNameToSvgMap[this._type.toLowerCase()];
|
|
2169
2159
|
if (e)
|
|
2170
|
-
return l`<div class="icon-container">${
|
|
2160
|
+
return l`<div class="icon-container">${En(e)}</div>`;
|
|
2171
2161
|
switch (this._type.toLowerCase()) {
|
|
2172
2162
|
case "close":
|
|
2173
2163
|
return console.log("Rendering close icon"), l`
|
|
@@ -2358,74 +2348,74 @@ const Sn = Dr(je), Vn = ":host{display:inline-flex;justify-content:center;align-
|
|
|
2358
2348
|
};
|
|
2359
2349
|
O.properties = {
|
|
2360
2350
|
type: { type: String, reflect: !0 }
|
|
2361
|
-
}, O.styles = x(
|
|
2351
|
+
}, O.styles = x(Sn), O.iconNameToSvgMap = (() => {
|
|
2362
2352
|
try {
|
|
2363
2353
|
const e = /* @__PURE__ */ Object.assign({
|
|
2364
|
-
"../x-icon/1x.svg":
|
|
2365
|
-
"../x-icon/1xdots.svg":
|
|
2366
|
-
"../x-icon/1xgrid.svg":
|
|
2354
|
+
"../x-icon/1x.svg": fo,
|
|
2355
|
+
"../x-icon/1xdots.svg": wo,
|
|
2356
|
+
"../x-icon/1xgrid.svg": mo,
|
|
2367
2357
|
"../x-icon/1xlines.svg": bo,
|
|
2368
|
-
"../x-icon/2x.svg":
|
|
2369
|
-
"../x-icon/2xdots.svg":
|
|
2370
|
-
"../x-icon/2xgrid.svg":
|
|
2371
|
-
"../x-icon/2xlines.svg":
|
|
2372
|
-
"../x-icon/4x4.svg":
|
|
2373
|
-
"../x-icon/apple.svg":
|
|
2374
|
-
"../x-icon/avatar.svg":
|
|
2375
|
-
"../x-icon/big.svg":
|
|
2376
|
-
"../x-icon/blank.svg":
|
|
2377
|
-
"../x-icon/check.svg":
|
|
2378
|
-
"../x-icon/close.svg":
|
|
2379
|
-
"../x-icon/collapse.svg":
|
|
2380
|
-
"../x-icon/color.svg":
|
|
2381
|
-
"../x-icon/column.svg":
|
|
2382
|
-
"../x-icon/default.svg":
|
|
2383
|
-
"../x-icon/delete.svg":
|
|
2384
|
-
"../x-icon/dictate.svg":
|
|
2385
|
-
"../x-icon/do.svg":
|
|
2386
|
-
"../x-icon/down.svg":
|
|
2387
|
-
"../x-icon/duplicate.svg":
|
|
2388
|
-
"../x-icon/email.svg":
|
|
2389
|
-
"../x-icon/expand.svg":
|
|
2390
|
-
"../x-icon/gallery.svg":
|
|
2391
|
-
"../x-icon/google.svg":
|
|
2392
|
-
"../x-icon/group.svg":
|
|
2393
|
-
"../x-icon/head.svg":
|
|
2394
|
-
"../x-icon/home.svg":
|
|
2395
|
-
"../x-icon/icon.svg":
|
|
2396
|
-
"../x-icon/in.svg":
|
|
2397
|
-
"../x-icon/left.svg":
|
|
2398
|
-
"../x-icon/lock.svg":
|
|
2399
|
-
"../x-icon/loop.svg":
|
|
2400
|
-
"../x-icon/mic.svg":
|
|
2401
|
-
"../x-icon/minimize.svg":
|
|
2402
|
-
"../x-icon/more.svg":
|
|
2403
|
-
"../x-icon/neutral.svg":
|
|
2404
|
-
"../x-icon/note.svg":
|
|
2405
|
-
"../x-icon/open.svg":
|
|
2406
|
-
"../x-icon/page.svg":
|
|
2407
|
-
"../x-icon/plus.svg":
|
|
2408
|
-
"../x-icon/rewind.svg":
|
|
2409
|
-
"../x-icon/right.svg":
|
|
2410
|
-
"../x-icon/row.svg":
|
|
2411
|
-
"../x-icon/sdown.svg":
|
|
2412
|
-
"../x-icon/search.svg":
|
|
2413
|
-
"../x-icon/see.svg":
|
|
2414
|
-
"../x-icon/ship.svg":
|
|
2415
|
-
"../x-icon/star.svg":
|
|
2416
|
-
"../x-icon/status.svg":
|
|
2417
|
-
"../x-icon/sup.svg":
|
|
2418
|
-
"../x-icon/title.svg":
|
|
2419
|
-
"../x-icon/undo.svg":
|
|
2358
|
+
"../x-icon/2x.svg": yo,
|
|
2359
|
+
"../x-icon/2xdots.svg": xo,
|
|
2360
|
+
"../x-icon/2xgrid.svg": _o,
|
|
2361
|
+
"../x-icon/2xlines.svg": ko,
|
|
2362
|
+
"../x-icon/4x4.svg": Co,
|
|
2363
|
+
"../x-icon/apple.svg": $o,
|
|
2364
|
+
"../x-icon/avatar.svg": Ao,
|
|
2365
|
+
"../x-icon/big.svg": Lo,
|
|
2366
|
+
"../x-icon/blank.svg": Eo,
|
|
2367
|
+
"../x-icon/check.svg": So,
|
|
2368
|
+
"../x-icon/close.svg": Vo,
|
|
2369
|
+
"../x-icon/collapse.svg": Ho,
|
|
2370
|
+
"../x-icon/color.svg": Mo,
|
|
2371
|
+
"../x-icon/column.svg": To,
|
|
2372
|
+
"../x-icon/default.svg": No,
|
|
2373
|
+
"../x-icon/delete.svg": Io,
|
|
2374
|
+
"../x-icon/dictate.svg": zo,
|
|
2375
|
+
"../x-icon/do.svg": Oo,
|
|
2376
|
+
"../x-icon/down.svg": Po,
|
|
2377
|
+
"../x-icon/duplicate.svg": Bo,
|
|
2378
|
+
"../x-icon/email.svg": Do,
|
|
2379
|
+
"../x-icon/expand.svg": jo,
|
|
2380
|
+
"../x-icon/gallery.svg": Ro,
|
|
2381
|
+
"../x-icon/google.svg": Uo,
|
|
2382
|
+
"../x-icon/group.svg": qo,
|
|
2383
|
+
"../x-icon/head.svg": Zo,
|
|
2384
|
+
"../x-icon/home.svg": Wo,
|
|
2385
|
+
"../x-icon/icon.svg": Fo,
|
|
2386
|
+
"../x-icon/in.svg": Ko,
|
|
2387
|
+
"../x-icon/left.svg": Go,
|
|
2388
|
+
"../x-icon/lock.svg": Jo,
|
|
2389
|
+
"../x-icon/loop.svg": Yo,
|
|
2390
|
+
"../x-icon/mic.svg": Xo,
|
|
2391
|
+
"../x-icon/minimize.svg": Qo,
|
|
2392
|
+
"../x-icon/more.svg": en,
|
|
2393
|
+
"../x-icon/neutral.svg": tn,
|
|
2394
|
+
"../x-icon/note.svg": rn,
|
|
2395
|
+
"../x-icon/open.svg": on,
|
|
2396
|
+
"../x-icon/page.svg": nn,
|
|
2397
|
+
"../x-icon/plus.svg": sn,
|
|
2398
|
+
"../x-icon/rewind.svg": an,
|
|
2399
|
+
"../x-icon/right.svg": ln,
|
|
2400
|
+
"../x-icon/row.svg": cn,
|
|
2401
|
+
"../x-icon/sdown.svg": dn,
|
|
2402
|
+
"../x-icon/search.svg": hn,
|
|
2403
|
+
"../x-icon/see.svg": un,
|
|
2404
|
+
"../x-icon/ship.svg": pn,
|
|
2405
|
+
"../x-icon/star.svg": gn,
|
|
2406
|
+
"../x-icon/status.svg": vn,
|
|
2407
|
+
"../x-icon/sup.svg": fn,
|
|
2408
|
+
"../x-icon/title.svg": wn,
|
|
2409
|
+
"../x-icon/undo.svg": mn,
|
|
2420
2410
|
"../x-icon/ungroup.svg": bn,
|
|
2421
|
-
"../x-icon/unhead.svg":
|
|
2422
|
-
"../x-icon/unicon.svg":
|
|
2423
|
-
"../x-icon/unlock.svg":
|
|
2424
|
-
"../x-icon/unmic.svg":
|
|
2425
|
-
"../x-icon/unsee.svg":
|
|
2426
|
-
"../x-icon/unstar.svg":
|
|
2427
|
-
"../x-icon/untitle.svg":
|
|
2428
|
-
"../x-icon/up.svg":
|
|
2411
|
+
"../x-icon/unhead.svg": yn,
|
|
2412
|
+
"../x-icon/unicon.svg": xn,
|
|
2413
|
+
"../x-icon/unlock.svg": _n,
|
|
2414
|
+
"../x-icon/unmic.svg": kn,
|
|
2415
|
+
"../x-icon/unsee.svg": Cn,
|
|
2416
|
+
"../x-icon/unstar.svg": $n,
|
|
2417
|
+
"../x-icon/untitle.svg": An,
|
|
2418
|
+
"../x-icon/up.svg": Ln
|
|
2429
2419
|
}), r = {};
|
|
2430
2420
|
for (const [o, n] of Object.entries(e)) {
|
|
2431
2421
|
const s = (o.split("/").pop() ?? "").replace(/\.svg$/i, "").toLowerCase();
|
|
@@ -2439,19 +2429,19 @@ O.properties = {
|
|
|
2439
2429
|
), {};
|
|
2440
2430
|
}
|
|
2441
2431
|
})();
|
|
2442
|
-
let
|
|
2443
|
-
customElements.define("ds-icon",
|
|
2432
|
+
let je = O;
|
|
2433
|
+
customElements.define("ds-icon", je);
|
|
2444
2434
|
console.log("Icon component registered with custom elements registry");
|
|
2445
|
-
const
|
|
2435
|
+
const Vn = ":host{display:inline-flex;align-items:center}.cycle{display:inline-flex;align-items:center;gap:var(--025)}.color-preview{width:var(--05);height:var(--05);border-radius:999px;border:1px solid color-mix(in srgb,var(--text-color-primary) 20%,transparent);flex:0 0 auto}", Hn = (t) => {
|
|
2446
2436
|
localStorage.setItem("accentColor", t);
|
|
2447
|
-
},
|
|
2448
|
-
const t =
|
|
2437
|
+
}, Re = () => localStorage.getItem("accentColor") || "--sharp-blue", Me = () => {
|
|
2438
|
+
const t = Re();
|
|
2449
2439
|
document.documentElement.style.setProperty("--accent-color", `var(${t})`);
|
|
2450
|
-
},
|
|
2440
|
+
}, Mn = (t) => {
|
|
2451
2441
|
localStorage.setItem("notesStyleMedium", t);
|
|
2452
|
-
},
|
|
2442
|
+
}, Ot = () => localStorage.getItem("notesStyleMedium") || "note", Pt = (t) => {
|
|
2453
2443
|
localStorage.setItem("pageStyle", t);
|
|
2454
|
-
},
|
|
2444
|
+
}, R = () => localStorage.getItem("pageStyle") || "note", dt = class dt extends f {
|
|
2455
2445
|
// Define reactive properties using Lit's property system
|
|
2456
2446
|
static get properties() {
|
|
2457
2447
|
return {
|
|
@@ -2495,11 +2485,11 @@ const Hn = ":host{display:inline-flex;align-items:center}.cycle{display:inline-f
|
|
|
2495
2485
|
}
|
|
2496
2486
|
async initializeValues() {
|
|
2497
2487
|
if (this.type === "language") {
|
|
2498
|
-
const e =
|
|
2488
|
+
const e = Ht();
|
|
2499
2489
|
this.values = e, this.currentValue = k.value;
|
|
2500
2490
|
} else if (this.type === "theme") {
|
|
2501
2491
|
this.values = ["light", "dark"];
|
|
2502
|
-
const e =
|
|
2492
|
+
const e = Q.get();
|
|
2503
2493
|
this.currentValue = e;
|
|
2504
2494
|
} else if (this.type === "accent-color") {
|
|
2505
2495
|
this.values = [
|
|
@@ -2512,17 +2502,17 @@ const Hn = ":host{display:inline-flex;align-items:center}.cycle{display:inline-f
|
|
|
2512
2502
|
"--orange",
|
|
2513
2503
|
"--yellow"
|
|
2514
2504
|
];
|
|
2515
|
-
const e =
|
|
2516
|
-
this.currentValue = e,
|
|
2505
|
+
const e = Re();
|
|
2506
|
+
this.currentValue = e, Me();
|
|
2517
2507
|
} else if (this.type === "notes-style-medium") {
|
|
2518
2508
|
this.values = ["default", "big", "gallery"];
|
|
2519
|
-
const e =
|
|
2509
|
+
const e = Ot();
|
|
2520
2510
|
this.currentValue = e;
|
|
2521
|
-
const r =
|
|
2511
|
+
const r = R();
|
|
2522
2512
|
this.disabled = r === "note";
|
|
2523
2513
|
} else if (this.type === "page-style") {
|
|
2524
2514
|
this.values = ["note", "page"];
|
|
2525
|
-
const e =
|
|
2515
|
+
const e = R();
|
|
2526
2516
|
this.currentValue = e;
|
|
2527
2517
|
} else this.type === "icon-only" && (this.values = ["note", "page"], this.currentValue = this.values[0]);
|
|
2528
2518
|
this.requestUpdate();
|
|
@@ -2543,21 +2533,21 @@ const Hn = ":host{display:inline-flex;align-items:center}.cycle{display:inline-f
|
|
|
2543
2533
|
const e = k.value;
|
|
2544
2534
|
this.currentValue = e;
|
|
2545
2535
|
} else if (this.type === "theme") {
|
|
2546
|
-
const e =
|
|
2536
|
+
const e = Q.get();
|
|
2547
2537
|
this.currentValue = e;
|
|
2548
2538
|
} else if (this.type === "accent-color") {
|
|
2549
|
-
const e =
|
|
2550
|
-
this.currentValue = e,
|
|
2539
|
+
const e = Re();
|
|
2540
|
+
this.currentValue = e, Me();
|
|
2551
2541
|
} else if (this.type === "notes-style-medium") {
|
|
2552
|
-
const e =
|
|
2542
|
+
const e = Ot();
|
|
2553
2543
|
this.currentValue = e;
|
|
2554
|
-
const r =
|
|
2544
|
+
const r = R();
|
|
2555
2545
|
this.disabled = r === "note";
|
|
2556
2546
|
} else if (this.type === "page-style") {
|
|
2557
|
-
const e =
|
|
2547
|
+
const e = R();
|
|
2558
2548
|
this.currentValue = e;
|
|
2559
2549
|
} else if (this.type === "icon-only") {
|
|
2560
|
-
const e =
|
|
2550
|
+
const e = R();
|
|
2561
2551
|
this.currentValue = e;
|
|
2562
2552
|
}
|
|
2563
2553
|
this.requestUpdate();
|
|
@@ -2588,39 +2578,39 @@ const Hn = ":host{display:inline-flex;align-items:center}.cycle{display:inline-f
|
|
|
2588
2578
|
if (this.type === "language") {
|
|
2589
2579
|
const o = (this.values.indexOf(this.currentValue) + 1) % this.values.length, n = this.values[o];
|
|
2590
2580
|
this.currentValue = n, document.startViewTransition ? document.startViewTransition(() => {
|
|
2591
|
-
|
|
2592
|
-
}) :
|
|
2581
|
+
Mt(n);
|
|
2582
|
+
}) : Mt(n), N({ language: n }), window.dispatchEvent(
|
|
2593
2583
|
new CustomEvent("language-changed", {
|
|
2594
2584
|
detail: { language: n }
|
|
2595
2585
|
})
|
|
2596
2586
|
);
|
|
2597
2587
|
} else if (this.type === "theme") {
|
|
2598
2588
|
const o = (this.values.indexOf(this.currentValue) + 1) % this.values.length, n = this.values[o];
|
|
2599
|
-
this.currentValue = n,
|
|
2589
|
+
this.currentValue = n, to(n), N({ theme: n });
|
|
2600
2590
|
} else if (this.type === "accent-color") {
|
|
2601
2591
|
const o = (this.values.indexOf(this.currentValue) + 1) % this.values.length, n = this.values[o];
|
|
2602
|
-
this.currentValue = n,
|
|
2592
|
+
this.currentValue = n, Hn(n), Me(), N({ accentColor: n }), window.dispatchEvent(
|
|
2603
2593
|
new CustomEvent("accent-color-changed", {
|
|
2604
2594
|
detail: { color: n }
|
|
2605
2595
|
})
|
|
2606
2596
|
);
|
|
2607
2597
|
} else if (this.type === "notes-style-medium") {
|
|
2608
2598
|
const o = (this.values.indexOf(this.currentValue) + 1) % this.values.length, n = this.values[o];
|
|
2609
|
-
this.currentValue = n,
|
|
2599
|
+
this.currentValue = n, Mn(n), N({ notesStyleMedium: n }), window.dispatchEvent(
|
|
2610
2600
|
new CustomEvent("notes-style-medium-changed", {
|
|
2611
2601
|
detail: { style: n }
|
|
2612
2602
|
})
|
|
2613
2603
|
);
|
|
2614
2604
|
} else if (this.type === "page-style") {
|
|
2615
2605
|
const o = (this.values.indexOf(this.currentValue) + 1) % this.values.length, n = this.values[o];
|
|
2616
|
-
this.currentValue = n,
|
|
2606
|
+
this.currentValue = n, Pt(n), N({ pageStyle: n }), window.dispatchEvent(
|
|
2617
2607
|
new CustomEvent("page-style-changed", {
|
|
2618
2608
|
detail: { behavior: n }
|
|
2619
2609
|
})
|
|
2620
2610
|
);
|
|
2621
2611
|
} else if (this.type === "icon-only") {
|
|
2622
2612
|
const o = (this.values.indexOf(this.currentValue) + 1) % this.values.length, n = this.values[o];
|
|
2623
|
-
this.currentValue = n,
|
|
2613
|
+
this.currentValue = n, Pt(n), N({ pageStyle: n }), window.dispatchEvent(
|
|
2624
2614
|
new CustomEvent("page-style-changed", {
|
|
2625
2615
|
detail: { behavior: n }
|
|
2626
2616
|
})
|
|
@@ -2631,12 +2621,12 @@ const Hn = ":host{display:inline-flex;align-items:center}.cycle{display:inline-f
|
|
|
2631
2621
|
}
|
|
2632
2622
|
getValueDisplay(e) {
|
|
2633
2623
|
if (this.type === "language")
|
|
2634
|
-
return
|
|
2624
|
+
return Yr(e, {
|
|
2635
2625
|
locale: k.value
|
|
2636
2626
|
});
|
|
2637
2627
|
if (this.type === "theme") {
|
|
2638
2628
|
if (this.translationsReady) {
|
|
2639
|
-
const r =
|
|
2629
|
+
const r = Z(e);
|
|
2640
2630
|
if (r && r !== e)
|
|
2641
2631
|
return r;
|
|
2642
2632
|
}
|
|
@@ -2648,7 +2638,7 @@ const Hn = ":host{display:inline-flex;align-items:center}.cycle{display:inline-f
|
|
|
2648
2638
|
return this.getNotesStyleIcon(e);
|
|
2649
2639
|
if (this.type === "page-style") {
|
|
2650
2640
|
if (this.translationsReady) {
|
|
2651
|
-
const r =
|
|
2641
|
+
const r = Z(e === "note" ? "Note" : "Page");
|
|
2652
2642
|
if (r && r !== (e === "note" ? "Note" : "Page"))
|
|
2653
2643
|
return r;
|
|
2654
2644
|
}
|
|
@@ -2682,7 +2672,7 @@ const Hn = ":host{display:inline-flex;align-items:center}.cycle{display:inline-f
|
|
|
2682
2672
|
"--pink": "Pink"
|
|
2683
2673
|
}[e];
|
|
2684
2674
|
if (o && this.translationsReady) {
|
|
2685
|
-
const n =
|
|
2675
|
+
const n = Z(o);
|
|
2686
2676
|
if (n && n !== o)
|
|
2687
2677
|
return n;
|
|
2688
2678
|
}
|
|
@@ -2745,7 +2735,7 @@ const Hn = ":host{display:inline-flex;align-items:center}.cycle{display:inline-f
|
|
|
2745
2735
|
}
|
|
2746
2736
|
handleTranslationsLoaded() {
|
|
2747
2737
|
if (this.translationsReady = !0, this.type === "language") {
|
|
2748
|
-
const e =
|
|
2738
|
+
const e = Ht();
|
|
2749
2739
|
this.values = e;
|
|
2750
2740
|
}
|
|
2751
2741
|
this.setupInitialValue();
|
|
@@ -2763,19 +2753,19 @@ const Hn = ":host{display:inline-flex;align-items:center}.cycle{display:inline-f
|
|
|
2763
2753
|
this.setupInitialValue();
|
|
2764
2754
|
}
|
|
2765
2755
|
};
|
|
2766
|
-
dt.styles = x(
|
|
2767
|
-
let
|
|
2768
|
-
customElements.define("ds-cycle",
|
|
2769
|
-
const
|
|
2756
|
+
dt.styles = x(Vn);
|
|
2757
|
+
let Ue = dt;
|
|
2758
|
+
customElements.define("ds-cycle", Ue);
|
|
2759
|
+
const Tn = ":host{display:inline;font-family:var(--typeface-regular, var(--typeface-regular-regular));font-size:inherit;color:inherit}", ht = class ht extends f {
|
|
2770
2760
|
render() {
|
|
2771
2761
|
const e = (/* @__PURE__ */ new Date()).getFullYear();
|
|
2772
2762
|
return l`<span>${e}</span>`;
|
|
2773
2763
|
}
|
|
2774
2764
|
};
|
|
2775
|
-
ht.styles = x(
|
|
2776
|
-
let
|
|
2777
|
-
customElements.define("ds-date",
|
|
2778
|
-
const
|
|
2765
|
+
ht.styles = x(Tn);
|
|
2766
|
+
let qe = ht;
|
|
2767
|
+
customElements.define("ds-date", qe);
|
|
2768
|
+
const Nn = ':host{display:block;width:100%;--gap-size: var(--unit);height:var(--gap-size);flex:0 0 auto}:host([tenth]){--gap-size: var(--tenth)}:host([quarter]){--gap-size: var(--quarter)}:host([half]){--gap-size: var(--half)}:host([eight-tenth]){--gap-size: var(--eight-tenth)}:host([unit]){--gap-size: var(--unit)}:host([double]){--gap-size: var(--double)}:host([triple]){--gap-size: var(--triple)}:host([quad]){--gap-size: var(--quad)}:host([oct]){--gap-size: var(--oct)}:host([dozen]){--gap-size: var(--dozen)}:host([size="01"]){--gap-size: var(--01)}:host([size="025"]){--gap-size: var(--025)}:host([size="05"]){--gap-size: var(--05)}:host([size="08"]){--gap-size: var(--08)}:host([size="1"]){--gap-size: var(--1)}:host([size="2"]){--gap-size: var(--2)}:host([size="3"]){--gap-size: var(--3)}:host([size="4"]){--gap-size: var(--4)}:host([size="8"]){--gap-size: var(--8)}:host([size="12"]){--gap-size: var(--12)}', pe = class pe extends f {
|
|
2779
2769
|
constructor() {
|
|
2780
2770
|
super(), this.size = "";
|
|
2781
2771
|
}
|
|
@@ -2783,13 +2773,13 @@ const In = ':host{display:block;width:100%;--gap-size: var(--unit);height:var(--
|
|
|
2783
2773
|
return l``;
|
|
2784
2774
|
}
|
|
2785
2775
|
};
|
|
2786
|
-
|
|
2776
|
+
pe.properties = {
|
|
2787
2777
|
/** Raw scale token selector ("01", "025", "05", "08", "1", "2", "3", "4", "8", "12") */
|
|
2788
2778
|
size: { type: String, reflect: !0 }
|
|
2789
|
-
},
|
|
2790
|
-
let
|
|
2791
|
-
customElements.define("ds-gap",
|
|
2792
|
-
const
|
|
2779
|
+
}, pe.styles = x(Nn);
|
|
2780
|
+
let Ze = pe;
|
|
2781
|
+
customElements.define("ds-gap", Ze);
|
|
2782
|
+
const ge = class ge extends f {
|
|
2793
2783
|
constructor() {
|
|
2794
2784
|
super(), this.type = "text", this.name = "", this.value = "", this.placeholder = "", this.placeholderKey = "", this.label = "", this.labelText = "", this.disabled = !1, this.readonly = !1, this.required = !1, this.autofocus = !1, this.autocomplete = "off", this.pattern = "", this.minlength = 0, this.maxlength = 0, this.min = "", this.max = "", this.step = "", this.variant = "default", this.error = "", this.errorText = "", this._focused = !1;
|
|
2795
2785
|
}
|
|
@@ -2870,7 +2860,7 @@ const pe = class pe extends f {
|
|
|
2870
2860
|
`;
|
|
2871
2861
|
}
|
|
2872
2862
|
};
|
|
2873
|
-
|
|
2863
|
+
ge.properties = {
|
|
2874
2864
|
type: { type: String, reflect: !0 },
|
|
2875
2865
|
name: { type: String, reflect: !0 },
|
|
2876
2866
|
value: { type: String },
|
|
@@ -2893,7 +2883,7 @@ pe.properties = {
|
|
|
2893
2883
|
error: { type: String },
|
|
2894
2884
|
errorText: { type: String, attribute: "error-text" },
|
|
2895
2885
|
_focused: { type: Boolean, state: !0 }
|
|
2896
|
-
},
|
|
2886
|
+
}, ge.styles = Ae`
|
|
2897
2887
|
:host {
|
|
2898
2888
|
display: block;
|
|
2899
2889
|
width: 100%;
|
|
@@ -3001,9 +2991,9 @@ pe.properties = {
|
|
|
3001
2991
|
box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.2);
|
|
3002
2992
|
}
|
|
3003
2993
|
`;
|
|
3004
|
-
let
|
|
3005
|
-
customElements.define("ds-input",
|
|
3006
|
-
const
|
|
2994
|
+
let We = ge;
|
|
2995
|
+
customElements.define("ds-input", We);
|
|
2996
|
+
const In = ':host{position:relative;display:inline-block}.slot-wrapper{display:inline-flex;align-items:center}.bubble{display:flex;align-items:center;justify-content:center;position:absolute;left:50%;bottom:100%;transform:translate(-50%,calc(-2px * var(--sf)));z-index:1000;pointer-events:none;height:calc(var(--08) * var(--sf));opacity:0;transition:opacity .12s ease,transform .12s ease;background-color:light-dark(var(--black),var(--white));color:light-dark(var(--white),var(--black));border-radius:0;font-size:var(--type-size-default);padding:0px calc(1px * var(--sf));font-family:var( --typeface-regular, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif );font-weight:500;white-space:nowrap;min-width:max-content}.bubble.visible{opacity:1}', ve = class ve extends f {
|
|
3007
2997
|
constructor() {
|
|
3008
2998
|
super(), this.text = "", this.defaultValue = "", this._text = "", this._visible = !1, this.boundWindowHandlers = {
|
|
3009
2999
|
languageChanged: (() => {
|
|
@@ -3054,7 +3044,7 @@ const zn = ':host{position:relative;display:inline-block}.slot-wrapper{display:i
|
|
|
3054
3044
|
return;
|
|
3055
3045
|
}
|
|
3056
3046
|
try {
|
|
3057
|
-
const e =
|
|
3047
|
+
const e = Z(this.text);
|
|
3058
3048
|
this._text = e && e !== this.text ? e : this.defaultValue || this.text;
|
|
3059
3049
|
} catch (e) {
|
|
3060
3050
|
console.error("ds-tooltip: error loading text for text", this.text, e), this._text = this.defaultValue || this.text;
|
|
@@ -3069,15 +3059,15 @@ const zn = ':host{position:relative;display:inline-block}.slot-wrapper{display:i
|
|
|
3069
3059
|
`;
|
|
3070
3060
|
}
|
|
3071
3061
|
};
|
|
3072
|
-
|
|
3062
|
+
ve.properties = {
|
|
3073
3063
|
text: { type: String, reflect: !0 },
|
|
3074
3064
|
defaultValue: { type: String, reflect: !0, attribute: "default-value" },
|
|
3075
3065
|
_text: { state: !0 },
|
|
3076
3066
|
_visible: { state: !0 }
|
|
3077
|
-
},
|
|
3078
|
-
let
|
|
3079
|
-
customElements.define("ds-tooltip",
|
|
3080
|
-
const
|
|
3067
|
+
}, ve.styles = x(In);
|
|
3068
|
+
let Fe = ve;
|
|
3069
|
+
customElements.define("ds-tooltip", Fe);
|
|
3070
|
+
const zn = ':host{display:flex;align-items:end;width:calc(240px * var(--sf))}:host([type="fill"]){justify-content:space-between;height:calc(var(--1) * var(--sf))}:host([type="centered"]){justify-content:center;height:calc(var(--1) * var(--sf));gap:calc(var(--025) * var(--sf))}', fe = class fe extends f {
|
|
3081
3071
|
constructor() {
|
|
3082
3072
|
super(), this.type = "fill";
|
|
3083
3073
|
}
|
|
@@ -3085,12 +3075,12 @@ const On = ':host{display:flex;align-items:end;width:calc(240px * var(--sf))}:ho
|
|
|
3085
3075
|
return l`<slot></slot>`;
|
|
3086
3076
|
}
|
|
3087
3077
|
};
|
|
3088
|
-
|
|
3078
|
+
fe.properties = {
|
|
3089
3079
|
type: { type: String, reflect: !0 }
|
|
3090
|
-
},
|
|
3091
|
-
let
|
|
3092
|
-
customElements.define("ds-row",
|
|
3093
|
-
const
|
|
3080
|
+
}, fe.styles = x(zn);
|
|
3081
|
+
let Ke = fe;
|
|
3082
|
+
customElements.define("ds-row", Ke);
|
|
3083
|
+
const On = ":host{display:block;width:calc(240px * var(--sf));color:var(--text-color-primary)}details{width:100%}summary{cursor:pointer;user-select:none;list-style:none;outline:none}summary::-webkit-details-marker{display:none}.summaryRow{width:100%}ds-icon.chevron{transform:rotate(0);transition:transform .14s ease}details[open] ds-icon.chevron{transform:rotate(180deg)}.detailsBody{padding-top:calc(var(--half) * var(--sf))}.detailsText{display:block;white-space:normal;text-align:left}", we = class we extends f {
|
|
3094
3084
|
constructor() {
|
|
3095
3085
|
super(), this.summary = "", this.details = "", this.open = !1, this._hasSlottedContent = !1;
|
|
3096
3086
|
}
|
|
@@ -3133,15 +3123,15 @@ const Pn = ":host{display:block;width:calc(240px * var(--sf));color:var(--text-c
|
|
|
3133
3123
|
`;
|
|
3134
3124
|
}
|
|
3135
3125
|
};
|
|
3136
|
-
|
|
3126
|
+
we.properties = {
|
|
3137
3127
|
summary: { type: String },
|
|
3138
3128
|
details: { type: String },
|
|
3139
3129
|
open: { type: Boolean, reflect: !0 },
|
|
3140
3130
|
_hasSlottedContent: { type: Boolean, state: !0 }
|
|
3141
|
-
},
|
|
3142
|
-
let
|
|
3143
|
-
customElements.define("ds-accordion",
|
|
3144
|
-
const
|
|
3131
|
+
}, we.styles = x(On);
|
|
3132
|
+
let Ge = we;
|
|
3133
|
+
customElements.define("ds-accordion", Ge);
|
|
3134
|
+
const me = class me extends f {
|
|
3145
3135
|
constructor() {
|
|
3146
3136
|
super(), this.action = "", this.method = "post", this.name = "", this.novalidate = !1, this.autocomplete = "on", this._isSubmitting = !1;
|
|
3147
3137
|
}
|
|
@@ -3272,14 +3262,14 @@ const we = class we extends f {
|
|
|
3272
3262
|
`;
|
|
3273
3263
|
}
|
|
3274
3264
|
};
|
|
3275
|
-
|
|
3265
|
+
me.properties = {
|
|
3276
3266
|
action: { type: String },
|
|
3277
3267
|
method: { type: String },
|
|
3278
3268
|
name: { type: String },
|
|
3279
3269
|
novalidate: { type: Boolean, reflect: !0 },
|
|
3280
3270
|
autocomplete: { type: String },
|
|
3281
3271
|
_isSubmitting: { type: Boolean, state: !0 }
|
|
3282
|
-
},
|
|
3272
|
+
}, me.styles = Ae`
|
|
3283
3273
|
:host {
|
|
3284
3274
|
display: block;
|
|
3285
3275
|
width: 100%;
|
|
@@ -3301,17 +3291,17 @@ we.properties = {
|
|
|
3301
3291
|
pointer-events: none;
|
|
3302
3292
|
}
|
|
3303
3293
|
`;
|
|
3304
|
-
let
|
|
3305
|
-
customElements.define("ds-form",
|
|
3306
|
-
const
|
|
3294
|
+
let Je = me;
|
|
3295
|
+
customElements.define("ds-form", Je);
|
|
3296
|
+
const Pn = ":host{display:flex;flex-direction:column;gap:0;width:100%}", ut = class ut extends f {
|
|
3307
3297
|
render() {
|
|
3308
3298
|
return l`<slot></slot>`;
|
|
3309
3299
|
}
|
|
3310
3300
|
};
|
|
3311
|
-
ut.styles = x(
|
|
3312
|
-
let
|
|
3313
|
-
customElements.define("ds-list",
|
|
3314
|
-
const
|
|
3301
|
+
ut.styles = x(Pn);
|
|
3302
|
+
let Ye = ut;
|
|
3303
|
+
customElements.define("ds-list", Ye);
|
|
3304
|
+
const Bn = ":host{display:block;width:100%}.table-container{display:flex;flex-direction:column;width:100%}.table-header{display:grid;grid-template-columns:160px 80px 80px 80px;height:20px;width:400px}.table-body{display:grid;grid-template-columns:160px 80px 80px 80px;border:1px solid var(--black);width:400px}.header-cell{height:20px;display:flex;align-items:center;justify-content:left;padding:0 2px;font-family:var(--typeface-regular);font-size:var(--type-size-default);font-weight:var(--type-weight-default);line-height:var(--type-lineheight-default);color:var(--black);letter-spacing:-.26px}.data-cell{height:20px;margin-top:-1px;display:flex;align-items:center;justify-content:left;outline:1px solid var(--black);font-family:var(--typeface-regular);font-size:var(--type-size-default);font-weight:var(--type-weight-default);line-height:var(--type-lineheight-default);color:var(--black);letter-spacing:-.26px}.status-cell{background-color:var(--apple-green);text-align:center}.product-cell{text-align:left;justify-content:flex-start}.users-cell,.retention-cell{text-align:center}@media (max-width: 480px){.table-header,.table-body{width:100%;grid-template-columns:1fr 60px 60px 60px}}", be = class be extends f {
|
|
3315
3305
|
constructor() {
|
|
3316
3306
|
super(), this.data = [], this.columns = ["Product", "Users", "Retention"], this.showStatus = !0;
|
|
3317
3307
|
}
|
|
@@ -3340,22 +3330,22 @@ const Dn = ":host{display:block;width:100%}.table-container{display:flex;flex-di
|
|
|
3340
3330
|
`;
|
|
3341
3331
|
}
|
|
3342
3332
|
};
|
|
3343
|
-
|
|
3333
|
+
be.properties = {
|
|
3344
3334
|
data: { type: Array },
|
|
3345
3335
|
columns: { type: Array },
|
|
3346
3336
|
showStatus: { type: Boolean, attribute: "show-status" }
|
|
3347
|
-
},
|
|
3348
|
-
let
|
|
3349
|
-
customElements.define("ds-table",
|
|
3350
|
-
const
|
|
3337
|
+
}, be.styles = x(Bn);
|
|
3338
|
+
let Xe = be;
|
|
3339
|
+
customElements.define("ds-table", Xe);
|
|
3340
|
+
const Dn = ":host{display:flex;width:100%;max-width:100%;flex-direction:column;background-color:var(--background-color);box-sizing:border-box}:host ::slotted(*){max-width:100%;box-sizing:border-box}@media (max-width: 820px){:host{width:100%;max-width:100%}}@media (min-width: 821px){:host{max-width:1000px;margin-left:auto;margin-right:auto;width:100%}}", pt = class pt extends f {
|
|
3351
3341
|
render() {
|
|
3352
3342
|
return l`<slot></slot>`;
|
|
3353
3343
|
}
|
|
3354
3344
|
};
|
|
3355
|
-
pt.styles = x(
|
|
3356
|
-
let
|
|
3357
|
-
customElements.define("ds-container",
|
|
3358
|
-
const
|
|
3345
|
+
pt.styles = x(Dn);
|
|
3346
|
+
let Qe = pt;
|
|
3347
|
+
customElements.define("ds-container", Qe);
|
|
3348
|
+
const jn = ':host{margin-top:.5px!important;margin-left:.5px!important;display:grid;width:1440px;height:1280px;grid-template-columns:repeat(auto-fill,19px);grid-template-rows:repeat(auto-fill,19px);gap:1px;row-rule:calc(1px * var(--sf)) solid var(--grid-color);column-rule:calc(1px * var(--sf)) solid var(--grid-color);outline:calc(1px * var(--sf)) solid light-dark(var(--sharp-blue),var(--yellow));position:fixed;top:0;left:50%;transform:translate(-50%);pointer-events:none;z-index:300}:host(.mobile){width:calc(100% - calc(1px * var(--sf)));max-width:100vw;margin-left:.5px!important;margin-top:0!important;box-sizing:border-box;position:fixed;top:calc(.5px * var(--sf));left:50%;transform:translate(-50%);pointer-events:none;z-index:300;gap:calc(1px * var(--sf));grid-template-columns:repeat(14,calc(19px * var(--sf)));grid-template-rows:repeat(auto-fill,calc(19px * var(--sf)))}:host([align="left"]){left:0;transform:none}:host([align="center"]){left:50%;transform:translate(-50%)}:host([align="right"]){left:auto;right:0;transform:none}', ye = class ye extends f {
|
|
3359
3349
|
connectedCallback() {
|
|
3360
3350
|
super.connectedCallback(), this.updateMobileClass(), this.resizeObserver = () => {
|
|
3361
3351
|
this.resizeTimeout && clearTimeout(this.resizeTimeout), this.resizeTimeout = setTimeout(() => {
|
|
@@ -3367,7 +3357,7 @@ const Rn = ':host{margin-top:.5px!important;margin-left:.5px!important;display:g
|
|
|
3367
3357
|
super.disconnectedCallback(), this.resizeObserver && window.removeEventListener("resize", this.resizeObserver), this.resizeTimeout && clearTimeout(this.resizeTimeout);
|
|
3368
3358
|
}
|
|
3369
3359
|
updateMobileClass() {
|
|
3370
|
-
|
|
3360
|
+
st() ? (this.classList.add("mobile"), this.classList.remove("desktop")) : (this.classList.add("desktop"), this.classList.remove("mobile"));
|
|
3371
3361
|
}
|
|
3372
3362
|
render() {
|
|
3373
3363
|
return l``;
|
|
@@ -3375,10 +3365,10 @@ const Rn = ':host{margin-top:.5px!important;margin-left:.5px!important;display:g
|
|
|
3375
3365
|
};
|
|
3376
3366
|
ye.properties = {
|
|
3377
3367
|
align: { type: String }
|
|
3378
|
-
}, ye.styles = x(
|
|
3379
|
-
let
|
|
3380
|
-
customElements.define("ds-grid",
|
|
3381
|
-
const
|
|
3368
|
+
}, ye.styles = x(jn);
|
|
3369
|
+
let et = ye;
|
|
3370
|
+
customElements.define("ds-grid", et);
|
|
3371
|
+
const Rn = ':host{display:grid;position:relative;width:100%}slot{display:contents}:host([mode="portfolio"]){--portfolio-cols: 120px 480px 40px;--portfolio-rows: 120px 120px 60px 180px 60px 120px 60px 20px 120px 120px;--portfolio-areas: "square . ." ". title ." ". header ." ". projects ." ". . ." ". bio ." ". . ." ". nav ." ". . ." ". footer ." ". . .";--portfolio-overlay-cols: 120px 480px;--portfolio-overlay-areas: "square ." ". title" ". header" ". projects" ". ." ". bio" ". ." ". nav" ". ." ". footer" ". .";grid-template-columns:var(--portfolio-cols);grid-template-rows:var(--portfolio-rows);grid-template-areas:var(--portfolio-areas);min-height:600px;background-color:#a5a5a508;max-width:640px;margin:0}:host([mode="portfolio"]) .view-overlay{grid-template-columns:var(--portfolio-overlay-cols);grid-template-rows:var(--portfolio-rows);grid-template-areas:var(--portfolio-overlay-areas)}:host([mode="company"]){--company-cols: auto 400px auto;--company-rows: 80px 20px 20px 120px 20px 120px;--company-areas: ". . ." ". header ." ". . ." ". content ." ". . ." ". footer .";grid-template-columns:var(--company-cols);grid-template-rows:var(--company-rows);grid-template-areas:var(--company-areas);gap:0;max-width:100%}:host([mode="company"]) .view-overlay{grid-template-columns:var(--company-cols);grid-template-rows:var(--company-rows);grid-template-areas:var(--company-areas);gap:0}:host([align="left"]),:host([mode="portfolio"][align="left"]),:host([mode="company"][align="left"]),:host([mode="app"][align="left"]){margin:0;justify-self:start}:host([align="center"]),:host([mode="portfolio"][align="center"]),:host([mode="company"][align="center"]),:host([mode="app"][align="center"]){margin:0 auto;justify-self:center}:host([align="right"]),:host([mode="portfolio"][align="right"]),:host([mode="company"][align="right"]),:host([mode="app"][align="right"]){margin:0 0 0 auto;justify-self:end}:host([mode="app"]){--app-cols: 100%;--app-rows: calc(var(--unit) * var(--sf)) calc(var(--unit) * var(--sf)) calc(var(--unit) * var(--sf)) calc(var(--double) * var(--sf)) calc(var(--dozen) * var(--sf)) calc(var(--unit) * var(--sf)) calc(var(--quad) * var(--sf)) calc(var(--double) * var(--sf));--app-areas: "banner" "." "header" "." "main" "page-dots" "." "footer";--app-overlay-cols: 100%;--app-overlay-rows: calc(var(--unit) * var(--sf)) calc(var(--unit) * var(--sf)) calc(var(--unit) * var(--sf)) calc(var(--double) * var(--sf)) calc(var(--dozen) * var(--sf)) calc(var(--unit) * var(--sf)) calc(var(--quad) * var(--sf)) calc(var(--double) * var(--sf));--app-overlay-areas: "banner" "." "header" "." "main" "page-dots" "." "footer";grid-template-columns:var(--app-cols);grid-template-rows:var(--app-rows);grid-template-areas:var(--app-areas);min-height:100vh;background-color:transparent;width:calc(240px * var(--sf, 1));max-width:calc(240px * var(--sf, 1));margin:0 auto}:host([mode="app"]) .view-overlay{grid-template-columns:var(--app-overlay-cols);grid-template-rows:var(--app-overlay-rows);grid-template-areas:var(--app-overlay-areas)}.view-overlay{position:absolute;margin-left:-1px;inset:0;pointer-events:none;z-index:1000;display:grid}.view-area{display:flex;width:calc(240px * var(--sf, 1));height:100%;align-items:center;justify-content:center;font-family:var(--typeface-regular);font-size:calc(var(--type-size-default) * var(--05));color:color-mix(in srgb,var(--tuned-red) 25%,transparent);background-color:color-mix(in srgb,var(--accent-color) 25%,transparent);opacity:1}:host([mode="portfolio"]) .view-area:nth-of-type(1){background-color:color-mix(in srgb,var(--tuned-red) 25%,transparent)}:host([mode="portfolio"]) .view-area:nth-of-type(2){border-color:var(--sharp-blue)}:host([mode="portfolio"]) .view-area:nth-of-type(3){border-color:var(--yellow)}:host([mode="portfolio"]) .view-area:nth-of-type(4){border-color:var(--apple-green)}:host([mode="portfolio"]) .view-area:nth-of-type(5){border-color:var(--pink)}:host([mode="portfolio"]) .view-area:nth-of-type(6){border-color:var(--orange)}:host([mode="portfolio"]) .view-area:nth-of-type(7){border-color:var(--zenith-blue)}:host([mode="company"]) .view-area:nth-of-type(1){border-color:var(--tuned-red)}:host([mode="company"]) .view-area:nth-of-type(2){border-color:var(--sharp-blue)}:host([mode="company"]) .view-area:nth-of-type(3){border-color:var(--yellow)}:host([mode="app"]) .view-area:nth-of-type(1){background-color:color-mix(in srgb,var(--tuned-red) 25%,transparent)}:host([mode="app"]) .view-area:nth-of-type(2){background-color:color-mix(in srgb,var(--sharp-blue) 25%,transparent)}:host([mode="app"]) .view-area:nth-of-type(3){background-color:color-mix(in srgb,var(--yellow) 25%,transparent)}:host([mode="app"]) .view-area:nth-of-type(4){background-color:color-mix(in srgb,var(--apple-green) 25%,transparent)}:host([mode="app"]) .view-area:nth-of-type(5){background-color:color-mix(in srgb,var(--pink) 25%,transparent)}.view-square{grid-area:square}.view-title{grid-area:title}.view-header{grid-area:header}.view-projects{grid-area:projects}.view-bio{grid-area:bio}.view-nav{grid-area:nav}.view-footer{grid-area:footer}.view-content{grid-area:content}.view-banner{grid-area:banner}.view-main{grid-area:main}.view-page-dots{grid-area:page-dots}', xe = class xe extends f {
|
|
3382
3372
|
constructor() {
|
|
3383
3373
|
super(...arguments), this.mode = "portfolio";
|
|
3384
3374
|
}
|
|
@@ -3565,12 +3555,12 @@ const Un = ':host{display:grid;position:relative;width:100%}slot{display:content
|
|
|
3565
3555
|
`;
|
|
3566
3556
|
}
|
|
3567
3557
|
};
|
|
3568
|
-
|
|
3558
|
+
xe.properties = {
|
|
3569
3559
|
mode: { type: String },
|
|
3570
3560
|
align: { type: String },
|
|
3571
3561
|
view: { type: Boolean }
|
|
3572
|
-
},
|
|
3573
|
-
x(
|
|
3562
|
+
}, xe.styles = [
|
|
3563
|
+
x(Rn),
|
|
3574
3564
|
Ae`
|
|
3575
3565
|
:host {
|
|
3576
3566
|
display: grid;
|
|
@@ -4136,53 +4126,52 @@ be.properties = {
|
|
|
4136
4126
|
}
|
|
4137
4127
|
`
|
|
4138
4128
|
];
|
|
4139
|
-
let
|
|
4140
|
-
customElements.define("ds-layout",
|
|
4129
|
+
let tt = xe;
|
|
4130
|
+
customElements.define("ds-layout", tt);
|
|
4141
4131
|
export {
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4132
|
+
Ge as Accordion,
|
|
4133
|
+
Pe as Banner,
|
|
4134
|
+
Oe as Button,
|
|
4135
|
+
Be as Card,
|
|
4136
|
+
Qe as Container,
|
|
4137
|
+
Ue as Cycle,
|
|
4138
|
+
qe as DateComponent,
|
|
4139
|
+
Xe as DsTable,
|
|
4140
|
+
Je as Form,
|
|
4141
|
+
Ze as Gap,
|
|
4142
|
+
et as Grid,
|
|
4143
|
+
je as Icon,
|
|
4144
|
+
We as Input,
|
|
4145
|
+
tt as Layout,
|
|
4146
|
+
Ye as List,
|
|
4147
|
+
Ke as Row,
|
|
4148
|
+
ze as Text,
|
|
4149
|
+
Fe as Tooltip,
|
|
4150
|
+
Kn as applike,
|
|
4151
|
+
Rr as calculateScalingFactor,
|
|
4162
4152
|
k as currentLanguage,
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
Fn as loadTranslations,
|
|
4153
|
+
Q as currentTheme,
|
|
4154
|
+
st as detectMobileDevice,
|
|
4155
|
+
Jn as getAvailableLanguages,
|
|
4156
|
+
Ht as getAvailableLanguagesSync,
|
|
4157
|
+
Xr as getBrowserLanguage,
|
|
4158
|
+
jr as getDeviceInfo,
|
|
4159
|
+
Yr as getLanguageDisplayName,
|
|
4160
|
+
Xn as getPriceLabel,
|
|
4161
|
+
Zn as getScalingFactor,
|
|
4162
|
+
se as getText,
|
|
4163
|
+
Gn as hasTranslation,
|
|
4164
|
+
ne as initDeviceDetection,
|
|
4165
|
+
Yn as loadTranslations,
|
|
4177
4166
|
N as savePreferences,
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4167
|
+
Wn as scale,
|
|
4168
|
+
X as scalingConfig,
|
|
4169
|
+
D as scalingFactor,
|
|
4170
|
+
Mt as setLanguage,
|
|
4171
|
+
qn as setScalingConfig,
|
|
4172
|
+
to as setTheme,
|
|
4173
|
+
Z as translate,
|
|
4174
|
+
Fn as unscale,
|
|
4175
|
+
Kt as updateScalingFactor
|
|
4187
4176
|
};
|
|
4188
4177
|
//# sourceMappingURL=ds-one.bundle.min.js.map
|