@rash2x/bridge-widget 0.6.32 → 0.6.34
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/dist/evaa-bridge.cjs +1 -1
- package/dist/evaa-bridge.mjs +1 -1
- package/dist/{index-D0iCKCsz.js → index-CO2PQtBo.js} +903 -1245
- package/dist/index-CO2PQtBo.js.map +1 -0
- package/dist/{index-BsEjYruO.cjs → index-CmbarigA.cjs} +866 -646
- package/dist/index-CmbarigA.cjs.map +1 -0
- package/dist/{index-BOtiGj6h.cjs → index-DvjGvKnp.cjs} +903 -1245
- package/dist/index-DvjGvKnp.cjs.map +1 -0
- package/dist/{index-BbLtc5UN.js → index-sU0Z-m5M.js} +866 -646
- package/dist/index-sU0Z-m5M.js.map +1 -0
- package/dist/index.html +89 -0
- package/dist/styles.css +1 -1
- package/package.json +13 -11
- package/dist/index-BOtiGj6h.cjs.map +0 -1
- package/dist/index-BbLtc5UN.js.map +0 -1
- package/dist/index-BsEjYruO.cjs.map +0 -1
- package/dist/index-D0iCKCsz.js.map +0 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs, M as ModalCtrl, R as RouterCtrl, T as ToastCtrl, a as ThemeCtrl, E as EventsCtrl, b as ExplorerCtrl, C as ConfigCtrl, c as CoreUtil, O as OptionsCtrl } from "./index-
|
|
1
|
+
import { g as getDefaultExportFromCjs, M as ModalCtrl, R as RouterCtrl, T as ToastCtrl, a as ThemeCtrl, E as EventsCtrl, b as ExplorerCtrl, C as ConfigCtrl, c as CoreUtil, O as OptionsCtrl } from "./index-CO2PQtBo.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2019 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
const t$
|
|
8
|
-
let o$
|
|
7
|
+
const t$4 = window, e$6 = t$4.ShadowRoot && (void 0 === t$4.ShadyCSS || t$4.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$4 = Symbol(), n$6 = /* @__PURE__ */ new WeakMap();
|
|
8
|
+
let o$5 = class o {
|
|
9
9
|
constructor(t2, e2, n2) {
|
|
10
|
-
if (this._$cssResult$ = true, n2 !== s$
|
|
10
|
+
if (this._$cssResult$ = true, n2 !== s$4) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
11
11
|
this.cssText = t2, this.t = e2;
|
|
12
12
|
}
|
|
13
13
|
get styleSheet() {
|
|
14
14
|
let t2 = this.o;
|
|
15
|
-
const
|
|
16
|
-
if (e$
|
|
17
|
-
const e2 = void 0 !==
|
|
18
|
-
e2 && (t2 = n$
|
|
15
|
+
const s3 = this.t;
|
|
16
|
+
if (e$6 && void 0 === t2) {
|
|
17
|
+
const e2 = void 0 !== s3 && 1 === s3.length;
|
|
18
|
+
e2 && (t2 = n$6.get(s3)), void 0 === t2 && ((this.o = t2 = new CSSStyleSheet()).replaceSync(this.cssText), e2 && n$6.set(s3, t2));
|
|
19
19
|
}
|
|
20
20
|
return t2;
|
|
21
21
|
}
|
|
@@ -23,140 +23,140 @@ let o$4 = class o {
|
|
|
23
23
|
return this.cssText;
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
const r$
|
|
27
|
-
const n2 = 1 === t2.length ? t2[0] : e2.reduce(((e3,
|
|
26
|
+
const r$3 = (t2) => new o$5("string" == typeof t2 ? t2 : t2 + "", void 0, s$4), i$4 = (t2, ...e2) => {
|
|
27
|
+
const n2 = 1 === t2.length ? t2[0] : e2.reduce(((e3, s3, n3) => e3 + ((t3) => {
|
|
28
28
|
if (true === t3._$cssResult$) return t3.cssText;
|
|
29
29
|
if ("number" == typeof t3) return t3;
|
|
30
30
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + t3 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
31
|
-
})(
|
|
32
|
-
return new o$
|
|
33
|
-
}, S$
|
|
34
|
-
e$
|
|
35
|
-
const n3 = document.createElement("style"), o3 = t$
|
|
36
|
-
void 0 !== o3 && n3.setAttribute("nonce", o3), n3.textContent = e2.cssText,
|
|
31
|
+
})(s3) + t2[n3 + 1]), t2[0]);
|
|
32
|
+
return new o$5(n2, t2, s$4);
|
|
33
|
+
}, S$2 = (s3, n2) => {
|
|
34
|
+
e$6 ? s3.adoptedStyleSheets = n2.map(((t2) => t2 instanceof CSSStyleSheet ? t2 : t2.styleSheet)) : n2.forEach(((e2) => {
|
|
35
|
+
const n3 = document.createElement("style"), o3 = t$4.litNonce;
|
|
36
|
+
void 0 !== o3 && n3.setAttribute("nonce", o3), n3.textContent = e2.cssText, s3.appendChild(n3);
|
|
37
37
|
}));
|
|
38
|
-
}, c$
|
|
38
|
+
}, c$2 = e$6 ? (t2) => t2 : (t2) => t2 instanceof CSSStyleSheet ? ((t3) => {
|
|
39
39
|
let e2 = "";
|
|
40
|
-
for (const
|
|
41
|
-
return r$
|
|
40
|
+
for (const s3 of t3.cssRules) e2 += s3.cssText;
|
|
41
|
+
return r$3(e2);
|
|
42
42
|
})(t2) : t2;
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
var s$
|
|
49
|
-
const e$
|
|
50
|
-
switch (
|
|
48
|
+
var s$3;
|
|
49
|
+
const e$5 = window, r$2 = e$5.trustedTypes, h$2 = r$2 ? r$2.emptyScript : "", o$4 = e$5.reactiveElementPolyfillSupport, n$5 = { toAttribute(t2, i3) {
|
|
50
|
+
switch (i3) {
|
|
51
51
|
case Boolean:
|
|
52
|
-
t2 = t2 ? h$
|
|
52
|
+
t2 = t2 ? h$2 : null;
|
|
53
53
|
break;
|
|
54
54
|
case Object:
|
|
55
55
|
case Array:
|
|
56
56
|
t2 = null == t2 ? t2 : JSON.stringify(t2);
|
|
57
57
|
}
|
|
58
58
|
return t2;
|
|
59
|
-
}, fromAttribute(t2,
|
|
60
|
-
let
|
|
61
|
-
switch (
|
|
59
|
+
}, fromAttribute(t2, i3) {
|
|
60
|
+
let s3 = t2;
|
|
61
|
+
switch (i3) {
|
|
62
62
|
case Boolean:
|
|
63
|
-
|
|
63
|
+
s3 = null !== t2;
|
|
64
64
|
break;
|
|
65
65
|
case Number:
|
|
66
|
-
|
|
66
|
+
s3 = null === t2 ? null : Number(t2);
|
|
67
67
|
break;
|
|
68
68
|
case Object:
|
|
69
69
|
case Array:
|
|
70
70
|
try {
|
|
71
|
-
|
|
71
|
+
s3 = JSON.parse(t2);
|
|
72
72
|
} catch (t3) {
|
|
73
|
-
|
|
73
|
+
s3 = null;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
return
|
|
77
|
-
} }, a$
|
|
78
|
-
let u$
|
|
76
|
+
return s3;
|
|
77
|
+
} }, a$2 = (t2, i3) => i3 !== t2 && (i3 == i3 || t2 == t2), l$4 = { attribute: true, type: String, converter: n$5, reflect: false, hasChanged: a$2 }, d$2 = "finalized";
|
|
78
|
+
let u$2 = class u extends HTMLElement {
|
|
79
79
|
constructor() {
|
|
80
80
|
super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = false, this.hasUpdated = false, this._$El = null, this._$Eu();
|
|
81
81
|
}
|
|
82
82
|
static addInitializer(t2) {
|
|
83
|
-
var
|
|
84
|
-
this.finalize(), (null !== (
|
|
83
|
+
var i3;
|
|
84
|
+
this.finalize(), (null !== (i3 = this.h) && void 0 !== i3 ? i3 : this.h = []).push(t2);
|
|
85
85
|
}
|
|
86
86
|
static get observedAttributes() {
|
|
87
87
|
this.finalize();
|
|
88
88
|
const t2 = [];
|
|
89
|
-
return this.elementProperties.forEach(((
|
|
90
|
-
const e2 = this._$Ep(
|
|
91
|
-
void 0 !== e2 && (this._$Ev.set(e2,
|
|
89
|
+
return this.elementProperties.forEach(((i3, s3) => {
|
|
90
|
+
const e2 = this._$Ep(s3, i3);
|
|
91
|
+
void 0 !== e2 && (this._$Ev.set(e2, s3), t2.push(e2));
|
|
92
92
|
})), t2;
|
|
93
93
|
}
|
|
94
|
-
static createProperty(t2,
|
|
95
|
-
if (
|
|
96
|
-
const
|
|
94
|
+
static createProperty(t2, i3 = l$4) {
|
|
95
|
+
if (i3.state && (i3.attribute = false), this.finalize(), this.elementProperties.set(t2, i3), !i3.noAccessor && !this.prototype.hasOwnProperty(t2)) {
|
|
96
|
+
const s3 = "symbol" == typeof t2 ? Symbol() : "__" + t2, e2 = this.getPropertyDescriptor(t2, s3, i3);
|
|
97
97
|
void 0 !== e2 && Object.defineProperty(this.prototype, t2, e2);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
static getPropertyDescriptor(t2,
|
|
100
|
+
static getPropertyDescriptor(t2, i3, s3) {
|
|
101
101
|
return { get() {
|
|
102
|
-
return this[
|
|
102
|
+
return this[i3];
|
|
103
103
|
}, set(e2) {
|
|
104
104
|
const r2 = this[t2];
|
|
105
|
-
this[
|
|
105
|
+
this[i3] = e2, this.requestUpdate(t2, r2, s3);
|
|
106
106
|
}, configurable: true, enumerable: true };
|
|
107
107
|
}
|
|
108
108
|
static getPropertyOptions(t2) {
|
|
109
|
-
return this.elementProperties.get(t2) || l$
|
|
109
|
+
return this.elementProperties.get(t2) || l$4;
|
|
110
110
|
}
|
|
111
111
|
static finalize() {
|
|
112
|
-
if (this.hasOwnProperty(d$
|
|
113
|
-
this[d$
|
|
112
|
+
if (this.hasOwnProperty(d$2)) return false;
|
|
113
|
+
this[d$2] = true;
|
|
114
114
|
const t2 = Object.getPrototypeOf(this);
|
|
115
115
|
if (t2.finalize(), void 0 !== t2.h && (this.h = [...t2.h]), this.elementProperties = new Map(t2.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
|
|
116
|
-
const t3 = this.properties,
|
|
117
|
-
for (const
|
|
116
|
+
const t3 = this.properties, i3 = [...Object.getOwnPropertyNames(t3), ...Object.getOwnPropertySymbols(t3)];
|
|
117
|
+
for (const s3 of i3) this.createProperty(s3, t3[s3]);
|
|
118
118
|
}
|
|
119
119
|
return this.elementStyles = this.finalizeStyles(this.styles), true;
|
|
120
120
|
}
|
|
121
|
-
static finalizeStyles(
|
|
122
|
-
const
|
|
123
|
-
if (Array.isArray(
|
|
124
|
-
const e2 = new Set(
|
|
125
|
-
for (const
|
|
126
|
-
} else void 0 !==
|
|
127
|
-
return
|
|
121
|
+
static finalizeStyles(i3) {
|
|
122
|
+
const s3 = [];
|
|
123
|
+
if (Array.isArray(i3)) {
|
|
124
|
+
const e2 = new Set(i3.flat(1 / 0).reverse());
|
|
125
|
+
for (const i4 of e2) s3.unshift(c$2(i4));
|
|
126
|
+
} else void 0 !== i3 && s3.push(c$2(i3));
|
|
127
|
+
return s3;
|
|
128
128
|
}
|
|
129
|
-
static _$Ep(t2,
|
|
130
|
-
const
|
|
131
|
-
return false ===
|
|
129
|
+
static _$Ep(t2, i3) {
|
|
130
|
+
const s3 = i3.attribute;
|
|
131
|
+
return false === s3 ? void 0 : "string" == typeof s3 ? s3 : "string" == typeof t2 ? t2.toLowerCase() : void 0;
|
|
132
132
|
}
|
|
133
133
|
_$Eu() {
|
|
134
134
|
var t2;
|
|
135
135
|
this._$E_ = new Promise(((t3) => this.enableUpdating = t3)), this._$AL = /* @__PURE__ */ new Map(), this._$Eg(), this.requestUpdate(), null === (t2 = this.constructor.h) || void 0 === t2 || t2.forEach(((t3) => t3(this)));
|
|
136
136
|
}
|
|
137
137
|
addController(t2) {
|
|
138
|
-
var
|
|
139
|
-
(null !== (
|
|
138
|
+
var i3, s3;
|
|
139
|
+
(null !== (i3 = this._$ES) && void 0 !== i3 ? i3 : this._$ES = []).push(t2), void 0 !== this.renderRoot && this.isConnected && (null === (s3 = t2.hostConnected) || void 0 === s3 || s3.call(t2));
|
|
140
140
|
}
|
|
141
141
|
removeController(t2) {
|
|
142
|
-
var
|
|
143
|
-
null === (
|
|
142
|
+
var i3;
|
|
143
|
+
null === (i3 = this._$ES) || void 0 === i3 || i3.splice(this._$ES.indexOf(t2) >>> 0, 1);
|
|
144
144
|
}
|
|
145
145
|
_$Eg() {
|
|
146
|
-
this.constructor.elementProperties.forEach(((t2,
|
|
147
|
-
this.hasOwnProperty(
|
|
146
|
+
this.constructor.elementProperties.forEach(((t2, i3) => {
|
|
147
|
+
this.hasOwnProperty(i3) && (this._$Ei.set(i3, this[i3]), delete this[i3]);
|
|
148
148
|
}));
|
|
149
149
|
}
|
|
150
150
|
createRenderRoot() {
|
|
151
151
|
var t2;
|
|
152
|
-
const
|
|
153
|
-
return S$
|
|
152
|
+
const s3 = null !== (t2 = this.shadowRoot) && void 0 !== t2 ? t2 : this.attachShadow(this.constructor.shadowRootOptions);
|
|
153
|
+
return S$2(s3, this.constructor.elementStyles), s3;
|
|
154
154
|
}
|
|
155
155
|
connectedCallback() {
|
|
156
156
|
var t2;
|
|
157
157
|
void 0 === this.renderRoot && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), null === (t2 = this._$ES) || void 0 === t2 || t2.forEach(((t3) => {
|
|
158
|
-
var
|
|
159
|
-
return null === (
|
|
158
|
+
var i3;
|
|
159
|
+
return null === (i3 = t3.hostConnected) || void 0 === i3 ? void 0 : i3.call(t3);
|
|
160
160
|
}));
|
|
161
161
|
}
|
|
162
162
|
enableUpdating(t2) {
|
|
@@ -164,32 +164,32 @@ let u$1 = class u extends HTMLElement {
|
|
|
164
164
|
disconnectedCallback() {
|
|
165
165
|
var t2;
|
|
166
166
|
null === (t2 = this._$ES) || void 0 === t2 || t2.forEach(((t3) => {
|
|
167
|
-
var
|
|
168
|
-
return null === (
|
|
167
|
+
var i3;
|
|
168
|
+
return null === (i3 = t3.hostDisconnected) || void 0 === i3 ? void 0 : i3.call(t3);
|
|
169
169
|
}));
|
|
170
170
|
}
|
|
171
|
-
attributeChangedCallback(t2,
|
|
172
|
-
this._$AK(t2,
|
|
171
|
+
attributeChangedCallback(t2, i3, s3) {
|
|
172
|
+
this._$AK(t2, s3);
|
|
173
173
|
}
|
|
174
|
-
_$EO(t2,
|
|
174
|
+
_$EO(t2, i3, s3 = l$4) {
|
|
175
175
|
var e2;
|
|
176
|
-
const r2 = this.constructor._$Ep(t2,
|
|
177
|
-
if (void 0 !== r2 && true ===
|
|
178
|
-
const h2 = (void 0 !== (null === (e2 =
|
|
176
|
+
const r2 = this.constructor._$Ep(t2, s3);
|
|
177
|
+
if (void 0 !== r2 && true === s3.reflect) {
|
|
178
|
+
const h2 = (void 0 !== (null === (e2 = s3.converter) || void 0 === e2 ? void 0 : e2.toAttribute) ? s3.converter : n$5).toAttribute(i3, s3.type);
|
|
179
179
|
this._$El = t2, null == h2 ? this.removeAttribute(r2) : this.setAttribute(r2, h2), this._$El = null;
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
_$AK(t2,
|
|
183
|
-
var
|
|
182
|
+
_$AK(t2, i3) {
|
|
183
|
+
var s3;
|
|
184
184
|
const e2 = this.constructor, r2 = e2._$Ev.get(t2);
|
|
185
185
|
if (void 0 !== r2 && this._$El !== r2) {
|
|
186
|
-
const t3 = e2.getPropertyOptions(r2), h2 = "function" == typeof t3.converter ? { fromAttribute: t3.converter } : void 0 !== (null === (
|
|
187
|
-
this._$El = r2, this[r2] = h2.fromAttribute(
|
|
186
|
+
const t3 = e2.getPropertyOptions(r2), h2 = "function" == typeof t3.converter ? { fromAttribute: t3.converter } : void 0 !== (null === (s3 = t3.converter) || void 0 === s3 ? void 0 : s3.fromAttribute) ? t3.converter : n$5;
|
|
187
|
+
this._$El = r2, this[r2] = h2.fromAttribute(i3, t3.type), this._$El = null;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
requestUpdate(t2,
|
|
190
|
+
requestUpdate(t2, i3, s3) {
|
|
191
191
|
let e2 = true;
|
|
192
|
-
void 0 !== t2 && (((
|
|
192
|
+
void 0 !== t2 && (((s3 = s3 || this.constructor.getPropertyOptions(t2)).hasChanged || a$2)(this[t2], i3) ? (this._$AL.has(t2) || this._$AL.set(t2, i3), true === s3.reflect && this._$El !== t2 && (void 0 === this._$EC && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t2, s3))) : e2 = false), !this.isUpdatePending && e2 && (this._$E_ = this._$Ej());
|
|
193
193
|
}
|
|
194
194
|
async _$Ej() {
|
|
195
195
|
this.isUpdatePending = true;
|
|
@@ -207,26 +207,26 @@ let u$1 = class u extends HTMLElement {
|
|
|
207
207
|
performUpdate() {
|
|
208
208
|
var t2;
|
|
209
209
|
if (!this.isUpdatePending) return;
|
|
210
|
-
this.hasUpdated, this._$Ei && (this._$Ei.forEach(((t3,
|
|
211
|
-
let
|
|
212
|
-
const
|
|
210
|
+
this.hasUpdated, this._$Ei && (this._$Ei.forEach(((t3, i4) => this[i4] = t3)), this._$Ei = void 0);
|
|
211
|
+
let i3 = false;
|
|
212
|
+
const s3 = this._$AL;
|
|
213
213
|
try {
|
|
214
|
-
|
|
215
|
-
var
|
|
216
|
-
return null === (
|
|
217
|
-
})), this.update(
|
|
214
|
+
i3 = this.shouldUpdate(s3), i3 ? (this.willUpdate(s3), null === (t2 = this._$ES) || void 0 === t2 || t2.forEach(((t3) => {
|
|
215
|
+
var i4;
|
|
216
|
+
return null === (i4 = t3.hostUpdate) || void 0 === i4 ? void 0 : i4.call(t3);
|
|
217
|
+
})), this.update(s3)) : this._$Ek();
|
|
218
218
|
} catch (t3) {
|
|
219
|
-
throw
|
|
219
|
+
throw i3 = false, this._$Ek(), t3;
|
|
220
220
|
}
|
|
221
|
-
|
|
221
|
+
i3 && this._$AE(s3);
|
|
222
222
|
}
|
|
223
223
|
willUpdate(t2) {
|
|
224
224
|
}
|
|
225
225
|
_$AE(t2) {
|
|
226
|
-
var
|
|
227
|
-
null === (
|
|
228
|
-
var
|
|
229
|
-
return null === (
|
|
226
|
+
var i3;
|
|
227
|
+
null === (i3 = this._$ES) || void 0 === i3 || i3.forEach(((t3) => {
|
|
228
|
+
var i4;
|
|
229
|
+
return null === (i4 = t3.hostUpdated) || void 0 === i4 ? void 0 : i4.call(t3);
|
|
230
230
|
})), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t2)), this.updated(t2);
|
|
231
231
|
}
|
|
232
232
|
_$Ek() {
|
|
@@ -242,92 +242,92 @@ let u$1 = class u extends HTMLElement {
|
|
|
242
242
|
return true;
|
|
243
243
|
}
|
|
244
244
|
update(t2) {
|
|
245
|
-
void 0 !== this._$EC && (this._$EC.forEach(((t3,
|
|
245
|
+
void 0 !== this._$EC && (this._$EC.forEach(((t3, i3) => this._$EO(i3, this[i3], t3))), this._$EC = void 0), this._$Ek();
|
|
246
246
|
}
|
|
247
247
|
updated(t2) {
|
|
248
248
|
}
|
|
249
249
|
firstUpdated(t2) {
|
|
250
250
|
}
|
|
251
251
|
};
|
|
252
|
-
u$
|
|
252
|
+
u$2[d$2] = true, u$2.elementProperties = /* @__PURE__ */ new Map(), u$2.elementStyles = [], u$2.shadowRootOptions = { mode: "open" }, null == o$4 || o$4({ ReactiveElement: u$2 }), (null !== (s$3 = e$5.reactiveElementVersions) && void 0 !== s$3 ? s$3 : e$5.reactiveElementVersions = []).push("1.6.3");
|
|
253
253
|
/**
|
|
254
254
|
* @license
|
|
255
255
|
* Copyright 2017 Google LLC
|
|
256
256
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
257
257
|
*/
|
|
258
|
-
var t$
|
|
259
|
-
const i$
|
|
260
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), g = /'/g,
|
|
261
|
-
function P(t2,
|
|
258
|
+
var t$3;
|
|
259
|
+
const i$3 = window, s$2 = i$3.trustedTypes, e$4 = s$2 ? s$2.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, o$3 = "$lit$", n$4 = `lit$${(Math.random() + "").slice(9)}$`, l$3 = "?" + n$4, h$1 = `<${l$3}>`, r$1 = document, u$1 = () => r$1.createComment(""), d$1 = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, c$1 = Array.isArray, v$1 = (t2) => c$1(t2) || "function" == typeof (null == t2 ? void 0 : t2[Symbol.iterator]), a$1 = "[ \n\f\r]", f$1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _$1 = /-->/g, m$1 = />/g, p$1 = RegExp(`>|${a$1}(?:([^\\s"'>=/]+)(${a$1}*=${a$1}*(?:[^
|
|
260
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), g$1 = /'/g, $$1 = /"/g, y$1 = /^(?:script|style|textarea|title)$/i, w = (t2) => (i3, ...s3) => ({ _$litType$: t2, strings: i3, values: s3 }), x = w(1), b$1 = w(2), T$1 = Symbol.for("lit-noChange"), A$1 = Symbol.for("lit-nothing"), E$1 = /* @__PURE__ */ new WeakMap(), C$1 = r$1.createTreeWalker(r$1, 129, null, false);
|
|
261
|
+
function P$1(t2, i3) {
|
|
262
262
|
if (!Array.isArray(t2) || !t2.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
263
|
-
return void 0 !== e$
|
|
263
|
+
return void 0 !== e$4 ? e$4.createHTML(i3) : i3;
|
|
264
264
|
}
|
|
265
|
-
const V = (t2,
|
|
266
|
-
const
|
|
267
|
-
let l2, r2 = 2 ===
|
|
268
|
-
for (let
|
|
269
|
-
const
|
|
265
|
+
const V$1 = (t2, i3) => {
|
|
266
|
+
const s3 = t2.length - 1, e2 = [];
|
|
267
|
+
let l2, r2 = 2 === i3 ? "<svg>" : "", u3 = f$1;
|
|
268
|
+
for (let i4 = 0; i4 < s3; i4++) {
|
|
269
|
+
const s4 = t2[i4];
|
|
270
270
|
let d2, c2, v2 = -1, a2 = 0;
|
|
271
|
-
for (; a2 <
|
|
272
|
-
const w2 = u3 === p && t2[
|
|
273
|
-
r2 += u3 === f ?
|
|
271
|
+
for (; a2 < s4.length && (u3.lastIndex = a2, c2 = u3.exec(s4), null !== c2); ) a2 = u3.lastIndex, u3 === f$1 ? "!--" === c2[1] ? u3 = _$1 : void 0 !== c2[1] ? u3 = m$1 : void 0 !== c2[2] ? (y$1.test(c2[2]) && (l2 = RegExp("</" + c2[2], "g")), u3 = p$1) : void 0 !== c2[3] && (u3 = p$1) : u3 === p$1 ? ">" === c2[0] ? (u3 = null != l2 ? l2 : f$1, v2 = -1) : void 0 === c2[1] ? v2 = -2 : (v2 = u3.lastIndex - c2[2].length, d2 = c2[1], u3 = void 0 === c2[3] ? p$1 : '"' === c2[3] ? $$1 : g$1) : u3 === $$1 || u3 === g$1 ? u3 = p$1 : u3 === _$1 || u3 === m$1 ? u3 = f$1 : (u3 = p$1, l2 = void 0);
|
|
272
|
+
const w2 = u3 === p$1 && t2[i4 + 1].startsWith("/>") ? " " : "";
|
|
273
|
+
r2 += u3 === f$1 ? s4 + h$1 : v2 >= 0 ? (e2.push(d2), s4.slice(0, v2) + o$3 + s4.slice(v2) + n$4 + w2) : s4 + n$4 + (-2 === v2 ? (e2.push(void 0), i4) : w2);
|
|
274
274
|
}
|
|
275
|
-
return [P(t2, r2 + (t2[
|
|
275
|
+
return [P$1(t2, r2 + (t2[s3] || "<?>") + (2 === i3 ? "</svg>" : "")), e2];
|
|
276
276
|
};
|
|
277
|
-
class N {
|
|
278
|
-
constructor({ strings: t2, _$litType$:
|
|
277
|
+
let N$1 = class N {
|
|
278
|
+
constructor({ strings: t2, _$litType$: i3 }, e2) {
|
|
279
279
|
let h2;
|
|
280
280
|
this.parts = [];
|
|
281
281
|
let r2 = 0, d2 = 0;
|
|
282
|
-
const c2 = t2.length - 1, v2 = this.parts, [a2, f2] = V(t2,
|
|
283
|
-
if (this.el = N.createElement(a2, e2), C.currentNode = this.el.content, 2 ===
|
|
284
|
-
const t3 = this.el.content,
|
|
285
|
-
|
|
282
|
+
const c2 = t2.length - 1, v2 = this.parts, [a2, f2] = V$1(t2, i3);
|
|
283
|
+
if (this.el = N.createElement(a2, e2), C$1.currentNode = this.el.content, 2 === i3) {
|
|
284
|
+
const t3 = this.el.content, i4 = t3.firstChild;
|
|
285
|
+
i4.remove(), t3.append(...i4.childNodes);
|
|
286
286
|
}
|
|
287
|
-
for (; null !== (h2 = C.nextNode()) && v2.length < c2; ) {
|
|
287
|
+
for (; null !== (h2 = C$1.nextNode()) && v2.length < c2; ) {
|
|
288
288
|
if (1 === h2.nodeType) {
|
|
289
289
|
if (h2.hasAttributes()) {
|
|
290
290
|
const t3 = [];
|
|
291
|
-
for (const
|
|
292
|
-
const
|
|
293
|
-
if (t3.push(
|
|
294
|
-
const t4 = h2.getAttribute(
|
|
295
|
-
v2.push({ type: 1, index: r2, name:
|
|
291
|
+
for (const i4 of h2.getAttributeNames()) if (i4.endsWith(o$3) || i4.startsWith(n$4)) {
|
|
292
|
+
const s3 = f2[d2++];
|
|
293
|
+
if (t3.push(i4), void 0 !== s3) {
|
|
294
|
+
const t4 = h2.getAttribute(s3.toLowerCase() + o$3).split(n$4), i5 = /([.?@])?(.*)/.exec(s3);
|
|
295
|
+
v2.push({ type: 1, index: r2, name: i5[2], strings: t4, ctor: "." === i5[1] ? H$1 : "?" === i5[1] ? L$1 : "@" === i5[1] ? z$1 : k$1 });
|
|
296
296
|
} else v2.push({ type: 6, index: r2 });
|
|
297
297
|
}
|
|
298
|
-
for (const
|
|
298
|
+
for (const i4 of t3) h2.removeAttribute(i4);
|
|
299
299
|
}
|
|
300
|
-
if (y.test(h2.tagName)) {
|
|
301
|
-
const t3 = h2.textContent.split(n$
|
|
302
|
-
if (
|
|
303
|
-
h2.textContent = s$
|
|
304
|
-
for (let
|
|
305
|
-
h2.append(t3[
|
|
300
|
+
if (y$1.test(h2.tagName)) {
|
|
301
|
+
const t3 = h2.textContent.split(n$4), i4 = t3.length - 1;
|
|
302
|
+
if (i4 > 0) {
|
|
303
|
+
h2.textContent = s$2 ? s$2.emptyScript : "";
|
|
304
|
+
for (let s3 = 0; s3 < i4; s3++) h2.append(t3[s3], u$1()), C$1.nextNode(), v2.push({ type: 2, index: ++r2 });
|
|
305
|
+
h2.append(t3[i4], u$1());
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
|
-
} else if (8 === h2.nodeType) if (h2.data === l$
|
|
308
|
+
} else if (8 === h2.nodeType) if (h2.data === l$3) v2.push({ type: 2, index: r2 });
|
|
309
309
|
else {
|
|
310
310
|
let t3 = -1;
|
|
311
|
-
for (; -1 !== (t3 = h2.data.indexOf(n$
|
|
311
|
+
for (; -1 !== (t3 = h2.data.indexOf(n$4, t3 + 1)); ) v2.push({ type: 7, index: r2 }), t3 += n$4.length - 1;
|
|
312
312
|
}
|
|
313
313
|
r2++;
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
|
-
static createElement(t2,
|
|
317
|
-
const
|
|
318
|
-
return
|
|
316
|
+
static createElement(t2, i3) {
|
|
317
|
+
const s3 = r$1.createElement("template");
|
|
318
|
+
return s3.innerHTML = t2, s3;
|
|
319
319
|
}
|
|
320
|
-
}
|
|
321
|
-
function S(t2,
|
|
320
|
+
};
|
|
321
|
+
function S$1(t2, i3, s3 = t2, e2) {
|
|
322
322
|
var o3, n2, l2, h2;
|
|
323
|
-
if (
|
|
324
|
-
let r2 = void 0 !== e2 ? null === (o3 =
|
|
325
|
-
const u3 = d(
|
|
326
|
-
return (null == r2 ? void 0 : r2.constructor) !== u3 && (null === (n2 = null == r2 ? void 0 : r2._$AO) || void 0 === n2 || n2.call(r2, false), void 0 === u3 ? r2 = void 0 : (r2 = new u3(t2), r2._$AT(t2,
|
|
323
|
+
if (i3 === T$1) return i3;
|
|
324
|
+
let r2 = void 0 !== e2 ? null === (o3 = s3._$Co) || void 0 === o3 ? void 0 : o3[e2] : s3._$Cl;
|
|
325
|
+
const u3 = d$1(i3) ? void 0 : i3._$litDirective$;
|
|
326
|
+
return (null == r2 ? void 0 : r2.constructor) !== u3 && (null === (n2 = null == r2 ? void 0 : r2._$AO) || void 0 === n2 || n2.call(r2, false), void 0 === u3 ? r2 = void 0 : (r2 = new u3(t2), r2._$AT(t2, s3, e2)), void 0 !== e2 ? (null !== (l2 = (h2 = s3)._$Co) && void 0 !== l2 ? l2 : h2._$Co = [])[e2] = r2 : s3._$Cl = r2), void 0 !== r2 && (i3 = S$1(t2, r2._$AS(t2, i3.values), r2, e2)), i3;
|
|
327
327
|
}
|
|
328
|
-
class M {
|
|
329
|
-
constructor(t2,
|
|
330
|
-
this._$AV = [], this._$AN = void 0, this._$AD = t2, this._$AM =
|
|
328
|
+
let M$1 = class M {
|
|
329
|
+
constructor(t2, i3) {
|
|
330
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t2, this._$AM = i3;
|
|
331
331
|
}
|
|
332
332
|
get parentNode() {
|
|
333
333
|
return this._$AM.parentNode;
|
|
@@ -336,37 +336,37 @@ class M {
|
|
|
336
336
|
return this._$AM._$AU;
|
|
337
337
|
}
|
|
338
338
|
u(t2) {
|
|
339
|
-
var
|
|
340
|
-
const { el: { content:
|
|
341
|
-
C.currentNode = o3;
|
|
342
|
-
let n2 = C.nextNode(), l2 = 0, h2 = 0, u3 = e2[0];
|
|
339
|
+
var i3;
|
|
340
|
+
const { el: { content: s3 }, parts: e2 } = this._$AD, o3 = (null !== (i3 = null == t2 ? void 0 : t2.creationScope) && void 0 !== i3 ? i3 : r$1).importNode(s3, true);
|
|
341
|
+
C$1.currentNode = o3;
|
|
342
|
+
let n2 = C$1.nextNode(), l2 = 0, h2 = 0, u3 = e2[0];
|
|
343
343
|
for (; void 0 !== u3; ) {
|
|
344
344
|
if (l2 === u3.index) {
|
|
345
|
-
let
|
|
346
|
-
2 === u3.type ?
|
|
345
|
+
let i4;
|
|
346
|
+
2 === u3.type ? i4 = new R$1(n2, n2.nextSibling, this, t2) : 1 === u3.type ? i4 = new u3.ctor(n2, u3.name, u3.strings, this, t2) : 6 === u3.type && (i4 = new Z(n2, this, t2)), this._$AV.push(i4), u3 = e2[++h2];
|
|
347
347
|
}
|
|
348
|
-
l2 !== (null == u3 ? void 0 : u3.index) && (n2 = C.nextNode(), l2++);
|
|
348
|
+
l2 !== (null == u3 ? void 0 : u3.index) && (n2 = C$1.nextNode(), l2++);
|
|
349
349
|
}
|
|
350
|
-
return C.currentNode = r, o3;
|
|
350
|
+
return C$1.currentNode = r$1, o3;
|
|
351
351
|
}
|
|
352
352
|
v(t2) {
|
|
353
|
-
let
|
|
354
|
-
for (const
|
|
353
|
+
let i3 = 0;
|
|
354
|
+
for (const s3 of this._$AV) void 0 !== s3 && (void 0 !== s3.strings ? (s3._$AI(t2, s3, i3), i3 += s3.strings.length - 2) : s3._$AI(t2[i3])), i3++;
|
|
355
355
|
}
|
|
356
|
-
}
|
|
357
|
-
class R {
|
|
358
|
-
constructor(t2,
|
|
356
|
+
};
|
|
357
|
+
let R$1 = class R {
|
|
358
|
+
constructor(t2, i3, s3, e2) {
|
|
359
359
|
var o3;
|
|
360
|
-
this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t2, this._$AB =
|
|
360
|
+
this.type = 2, this._$AH = A$1, this._$AN = void 0, this._$AA = t2, this._$AB = i3, this._$AM = s3, this.options = e2, this._$Cp = null === (o3 = null == e2 ? void 0 : e2.isConnected) || void 0 === o3 || o3;
|
|
361
361
|
}
|
|
362
362
|
get _$AU() {
|
|
363
|
-
var t2,
|
|
364
|
-
return null !== (
|
|
363
|
+
var t2, i3;
|
|
364
|
+
return null !== (i3 = null === (t2 = this._$AM) || void 0 === t2 ? void 0 : t2._$AU) && void 0 !== i3 ? i3 : this._$Cp;
|
|
365
365
|
}
|
|
366
366
|
get parentNode() {
|
|
367
367
|
let t2 = this._$AA.parentNode;
|
|
368
|
-
const
|
|
369
|
-
return void 0 !==
|
|
368
|
+
const i3 = this._$AM;
|
|
369
|
+
return void 0 !== i3 && 11 === (null == t2 ? void 0 : t2.nodeType) && (t2 = i3.parentNode), t2;
|
|
370
370
|
}
|
|
371
371
|
get startNode() {
|
|
372
372
|
return this._$AA;
|
|
@@ -374,8 +374,8 @@ class R {
|
|
|
374
374
|
get endNode() {
|
|
375
375
|
return this._$AB;
|
|
376
376
|
}
|
|
377
|
-
_$AI(t2,
|
|
378
|
-
t2 = S(this, t2,
|
|
377
|
+
_$AI(t2, i3 = this) {
|
|
378
|
+
t2 = S$1(this, t2, i3), d$1(t2) ? t2 === A$1 || null == t2 || "" === t2 ? (this._$AH !== A$1 && this._$AR(), this._$AH = A$1) : t2 !== this._$AH && t2 !== T$1 && this._(t2) : void 0 !== t2._$litType$ ? this.g(t2) : void 0 !== t2.nodeType ? this.$(t2) : v$1(t2) ? this.T(t2) : this._(t2);
|
|
379
379
|
}
|
|
380
380
|
k(t2) {
|
|
381
381
|
return this._$AA.parentNode.insertBefore(t2, this._$AB);
|
|
@@ -384,43 +384,43 @@ class R {
|
|
|
384
384
|
this._$AH !== t2 && (this._$AR(), this._$AH = this.k(t2));
|
|
385
385
|
}
|
|
386
386
|
_(t2) {
|
|
387
|
-
this._$AH !== A && d(this._$AH) ? this._$AA.nextSibling.data = t2 : this.$(r.createTextNode(t2)), this._$AH = t2;
|
|
387
|
+
this._$AH !== A$1 && d$1(this._$AH) ? this._$AA.nextSibling.data = t2 : this.$(r$1.createTextNode(t2)), this._$AH = t2;
|
|
388
388
|
}
|
|
389
389
|
g(t2) {
|
|
390
|
-
var
|
|
391
|
-
const { values:
|
|
392
|
-
if ((null === (
|
|
390
|
+
var i3;
|
|
391
|
+
const { values: s3, _$litType$: e2 } = t2, o3 = "number" == typeof e2 ? this._$AC(t2) : (void 0 === e2.el && (e2.el = N$1.createElement(P$1(e2.h, e2.h[0]), this.options)), e2);
|
|
392
|
+
if ((null === (i3 = this._$AH) || void 0 === i3 ? void 0 : i3._$AD) === o3) this._$AH.v(s3);
|
|
393
393
|
else {
|
|
394
|
-
const t3 = new M(o3, this),
|
|
395
|
-
t3.v(
|
|
394
|
+
const t3 = new M$1(o3, this), i4 = t3.u(this.options);
|
|
395
|
+
t3.v(s3), this.$(i4), this._$AH = t3;
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
398
|
_$AC(t2) {
|
|
399
|
-
let
|
|
400
|
-
return void 0 ===
|
|
399
|
+
let i3 = E$1.get(t2.strings);
|
|
400
|
+
return void 0 === i3 && E$1.set(t2.strings, i3 = new N$1(t2)), i3;
|
|
401
401
|
}
|
|
402
402
|
T(t2) {
|
|
403
|
-
c(this._$AH) || (this._$AH = [], this._$AR());
|
|
404
|
-
const
|
|
405
|
-
let
|
|
406
|
-
for (const o3 of t2) e2 ===
|
|
407
|
-
e2 <
|
|
403
|
+
c$1(this._$AH) || (this._$AH = [], this._$AR());
|
|
404
|
+
const i3 = this._$AH;
|
|
405
|
+
let s3, e2 = 0;
|
|
406
|
+
for (const o3 of t2) e2 === i3.length ? i3.push(s3 = new R(this.k(u$1()), this.k(u$1()), this, this.options)) : s3 = i3[e2], s3._$AI(o3), e2++;
|
|
407
|
+
e2 < i3.length && (this._$AR(s3 && s3._$AB.nextSibling, e2), i3.length = e2);
|
|
408
408
|
}
|
|
409
|
-
_$AR(t2 = this._$AA.nextSibling,
|
|
410
|
-
var
|
|
411
|
-
for (null === (
|
|
412
|
-
const
|
|
413
|
-
t2.remove(), t2 =
|
|
409
|
+
_$AR(t2 = this._$AA.nextSibling, i3) {
|
|
410
|
+
var s3;
|
|
411
|
+
for (null === (s3 = this._$AP) || void 0 === s3 || s3.call(this, false, true, i3); t2 && t2 !== this._$AB; ) {
|
|
412
|
+
const i4 = t2.nextSibling;
|
|
413
|
+
t2.remove(), t2 = i4;
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
setConnected(t2) {
|
|
417
|
-
var
|
|
418
|
-
void 0 === this._$AM && (this._$Cp = t2, null === (
|
|
417
|
+
var i3;
|
|
418
|
+
void 0 === this._$AM && (this._$Cp = t2, null === (i3 = this._$AP) || void 0 === i3 || i3.call(this, t2));
|
|
419
419
|
}
|
|
420
|
-
}
|
|
421
|
-
class k {
|
|
422
|
-
constructor(t2,
|
|
423
|
-
this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t2, this.name =
|
|
420
|
+
};
|
|
421
|
+
let k$1 = class k {
|
|
422
|
+
constructor(t2, i3, s3, e2, o3) {
|
|
423
|
+
this.type = 1, this._$AH = A$1, this._$AN = void 0, this.element = t2, this.name = i3, this._$AM = e2, this.options = o3, s3.length > 2 || "" !== s3[0] || "" !== s3[1] ? (this._$AH = Array(s3.length - 1).fill(new String()), this.strings = s3) : this._$AH = A$1;
|
|
424
424
|
}
|
|
425
425
|
get tagName() {
|
|
426
426
|
return this.element.tagName;
|
|
@@ -428,73 +428,73 @@ class k {
|
|
|
428
428
|
get _$AU() {
|
|
429
429
|
return this._$AM._$AU;
|
|
430
430
|
}
|
|
431
|
-
_$AI(t2,
|
|
431
|
+
_$AI(t2, i3 = this, s3, e2) {
|
|
432
432
|
const o3 = this.strings;
|
|
433
433
|
let n2 = false;
|
|
434
|
-
if (void 0 === o3) t2 = S(this, t2,
|
|
434
|
+
if (void 0 === o3) t2 = S$1(this, t2, i3, 0), n2 = !d$1(t2) || t2 !== this._$AH && t2 !== T$1, n2 && (this._$AH = t2);
|
|
435
435
|
else {
|
|
436
436
|
const e3 = t2;
|
|
437
437
|
let l2, h2;
|
|
438
|
-
for (t2 = o3[0], l2 = 0; l2 < o3.length - 1; l2++) h2 = S(this, e3[
|
|
438
|
+
for (t2 = o3[0], l2 = 0; l2 < o3.length - 1; l2++) h2 = S$1(this, e3[s3 + l2], i3, l2), h2 === T$1 && (h2 = this._$AH[l2]), n2 || (n2 = !d$1(h2) || h2 !== this._$AH[l2]), h2 === A$1 ? t2 = A$1 : t2 !== A$1 && (t2 += (null != h2 ? h2 : "") + o3[l2 + 1]), this._$AH[l2] = h2;
|
|
439
439
|
}
|
|
440
440
|
n2 && !e2 && this.j(t2);
|
|
441
441
|
}
|
|
442
442
|
j(t2) {
|
|
443
|
-
t2 === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, null != t2 ? t2 : "");
|
|
443
|
+
t2 === A$1 ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, null != t2 ? t2 : "");
|
|
444
444
|
}
|
|
445
|
-
}
|
|
446
|
-
class H extends k {
|
|
445
|
+
};
|
|
446
|
+
let H$1 = class H extends k$1 {
|
|
447
447
|
constructor() {
|
|
448
448
|
super(...arguments), this.type = 3;
|
|
449
449
|
}
|
|
450
450
|
j(t2) {
|
|
451
|
-
this.element[this.name] = t2 === A ? void 0 : t2;
|
|
451
|
+
this.element[this.name] = t2 === A$1 ? void 0 : t2;
|
|
452
452
|
}
|
|
453
|
-
}
|
|
454
|
-
const I = s$
|
|
455
|
-
class L extends k {
|
|
453
|
+
};
|
|
454
|
+
const I$1 = s$2 ? s$2.emptyScript : "";
|
|
455
|
+
let L$1 = class L extends k$1 {
|
|
456
456
|
constructor() {
|
|
457
457
|
super(...arguments), this.type = 4;
|
|
458
458
|
}
|
|
459
459
|
j(t2) {
|
|
460
|
-
t2 && t2 !== A ? this.element.setAttribute(this.name, I) : this.element.removeAttribute(this.name);
|
|
460
|
+
t2 && t2 !== A$1 ? this.element.setAttribute(this.name, I$1) : this.element.removeAttribute(this.name);
|
|
461
461
|
}
|
|
462
|
-
}
|
|
463
|
-
class z extends k {
|
|
464
|
-
constructor(t2,
|
|
465
|
-
super(t2,
|
|
466
|
-
}
|
|
467
|
-
_$AI(t2,
|
|
468
|
-
var
|
|
469
|
-
if ((t2 = null !== (
|
|
470
|
-
const e2 = this._$AH, o3 = t2 === A && e2 !== A || t2.capture !== e2.capture || t2.once !== e2.once || t2.passive !== e2.passive, n2 = t2 !== A && (e2 === A || o3);
|
|
462
|
+
};
|
|
463
|
+
let z$1 = class z extends k$1 {
|
|
464
|
+
constructor(t2, i3, s3, e2, o3) {
|
|
465
|
+
super(t2, i3, s3, e2, o3), this.type = 5;
|
|
466
|
+
}
|
|
467
|
+
_$AI(t2, i3 = this) {
|
|
468
|
+
var s3;
|
|
469
|
+
if ((t2 = null !== (s3 = S$1(this, t2, i3, 0)) && void 0 !== s3 ? s3 : A$1) === T$1) return;
|
|
470
|
+
const e2 = this._$AH, o3 = t2 === A$1 && e2 !== A$1 || t2.capture !== e2.capture || t2.once !== e2.once || t2.passive !== e2.passive, n2 = t2 !== A$1 && (e2 === A$1 || o3);
|
|
471
471
|
o3 && this.element.removeEventListener(this.name, this, e2), n2 && this.element.addEventListener(this.name, this, t2), this._$AH = t2;
|
|
472
472
|
}
|
|
473
473
|
handleEvent(t2) {
|
|
474
|
-
var
|
|
475
|
-
"function" == typeof this._$AH ? this._$AH.call(null !== (
|
|
474
|
+
var i3, s3;
|
|
475
|
+
"function" == typeof this._$AH ? this._$AH.call(null !== (s3 = null === (i3 = this.options) || void 0 === i3 ? void 0 : i3.host) && void 0 !== s3 ? s3 : this.element, t2) : this._$AH.handleEvent(t2);
|
|
476
476
|
}
|
|
477
|
-
}
|
|
477
|
+
};
|
|
478
478
|
class Z {
|
|
479
|
-
constructor(t2,
|
|
480
|
-
this.element = t2, this.type = 6, this._$AN = void 0, this._$AM =
|
|
479
|
+
constructor(t2, i3, s3) {
|
|
480
|
+
this.element = t2, this.type = 6, this._$AN = void 0, this._$AM = i3, this.options = s3;
|
|
481
481
|
}
|
|
482
482
|
get _$AU() {
|
|
483
483
|
return this._$AM._$AU;
|
|
484
484
|
}
|
|
485
485
|
_$AI(t2) {
|
|
486
|
-
S(this, t2);
|
|
486
|
+
S$1(this, t2);
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
|
-
const B = i$
|
|
490
|
-
null == B || B(N, R), (null !== (t$
|
|
491
|
-
const D = (t2,
|
|
489
|
+
const B = i$3.litHtmlPolyfillSupport;
|
|
490
|
+
null == B || B(N$1, R$1), (null !== (t$3 = i$3.litHtmlVersions) && void 0 !== t$3 ? t$3 : i$3.litHtmlVersions = []).push("2.8.0");
|
|
491
|
+
const D = (t2, i3, s3) => {
|
|
492
492
|
var e2, o3;
|
|
493
|
-
const n2 = null !== (e2 = null ==
|
|
493
|
+
const n2 = null !== (e2 = null == s3 ? void 0 : s3.renderBefore) && void 0 !== e2 ? e2 : i3;
|
|
494
494
|
let l2 = n2._$litPart$;
|
|
495
495
|
if (void 0 === l2) {
|
|
496
|
-
const t3 = null !== (o3 = null ==
|
|
497
|
-
n2._$litPart$ = l2 = new R(
|
|
496
|
+
const t3 = null !== (o3 = null == s3 ? void 0 : s3.renderBefore) && void 0 !== o3 ? o3 : null;
|
|
497
|
+
n2._$litPart$ = l2 = new R$1(i3.insertBefore(u$1(), t3), t3, void 0, null != s3 ? s3 : {});
|
|
498
498
|
}
|
|
499
499
|
return l2._$AI(t2), l2;
|
|
500
500
|
};
|
|
@@ -503,19 +503,19 @@ const D = (t2, i2, s2) => {
|
|
|
503
503
|
* Copyright 2017 Google LLC
|
|
504
504
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
505
505
|
*/
|
|
506
|
-
var l$
|
|
507
|
-
class s extends u$
|
|
506
|
+
var l$2, o$2;
|
|
507
|
+
let s$1 = class s extends u$2 {
|
|
508
508
|
constructor() {
|
|
509
509
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
510
510
|
}
|
|
511
511
|
createRenderRoot() {
|
|
512
512
|
var t2, e2;
|
|
513
|
-
const
|
|
514
|
-
return null !== (t2 = (e2 = this.renderOptions).renderBefore) && void 0 !== t2 || (e2.renderBefore =
|
|
513
|
+
const i3 = super.createRenderRoot();
|
|
514
|
+
return null !== (t2 = (e2 = this.renderOptions).renderBefore) && void 0 !== t2 || (e2.renderBefore = i3.firstChild), i3;
|
|
515
515
|
}
|
|
516
516
|
update(t2) {
|
|
517
|
-
const
|
|
518
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t2), this._$Do = D(
|
|
517
|
+
const i3 = this.render();
|
|
518
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t2), this._$Do = D(i3, this.renderRoot, this.renderOptions);
|
|
519
519
|
}
|
|
520
520
|
connectedCallback() {
|
|
521
521
|
var t2;
|
|
@@ -526,21 +526,21 @@ class s extends u$1 {
|
|
|
526
526
|
super.disconnectedCallback(), null === (t2 = this._$Do) || void 0 === t2 || t2.setConnected(false);
|
|
527
527
|
}
|
|
528
528
|
render() {
|
|
529
|
-
return T;
|
|
529
|
+
return T$1;
|
|
530
530
|
}
|
|
531
|
-
}
|
|
532
|
-
s.finalized = true, s._$litElement$ = true, null === (l$
|
|
533
|
-
const n$
|
|
534
|
-
null == n$
|
|
535
|
-
(null !== (o$
|
|
531
|
+
};
|
|
532
|
+
s$1.finalized = true, s$1._$litElement$ = true, null === (l$2 = globalThis.litElementHydrateSupport) || void 0 === l$2 || l$2.call(globalThis, { LitElement: s$1 });
|
|
533
|
+
const n$3 = globalThis.litElementPolyfillSupport;
|
|
534
|
+
null == n$3 || n$3({ LitElement: s$1 });
|
|
535
|
+
(null !== (o$2 = globalThis.litElementVersions) && void 0 !== o$2 ? o$2 : globalThis.litElementVersions = []).push("3.3.3");
|
|
536
536
|
/**
|
|
537
537
|
* @license
|
|
538
538
|
* Copyright 2017 Google LLC
|
|
539
539
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
540
540
|
*/
|
|
541
|
-
const e$
|
|
542
|
-
const { kind: t2, elements:
|
|
543
|
-
return { kind: t2, elements:
|
|
541
|
+
const e$3 = (e2) => (n2) => "function" == typeof n2 ? ((e3, n3) => (customElements.define(e3, n3), n3))(e2, n2) : ((e3, n3) => {
|
|
542
|
+
const { kind: t2, elements: s3 } = n3;
|
|
543
|
+
return { kind: t2, elements: s3, finisher(n4) {
|
|
544
544
|
customElements.define(e3, n4);
|
|
545
545
|
} };
|
|
546
546
|
})(e2, n2);
|
|
@@ -549,47 +549,47 @@ const e$2 = (e2) => (n2) => "function" == typeof n2 ? ((e3, n3) => (customElemen
|
|
|
549
549
|
* Copyright 2017 Google LLC
|
|
550
550
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
551
551
|
*/
|
|
552
|
-
const i$
|
|
553
|
-
n2.createProperty(e2.key,
|
|
552
|
+
const i$2 = (i3, e2) => "method" === e2.kind && e2.descriptor && !("value" in e2.descriptor) ? { ...e2, finisher(n2) {
|
|
553
|
+
n2.createProperty(e2.key, i3);
|
|
554
554
|
} } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: e2.key, initializer() {
|
|
555
555
|
"function" == typeof e2.initializer && (this[e2.key] = e2.initializer.call(this));
|
|
556
556
|
}, finisher(n2) {
|
|
557
|
-
n2.createProperty(e2.key,
|
|
558
|
-
} }, e$
|
|
559
|
-
e2.constructor.createProperty(n2,
|
|
557
|
+
n2.createProperty(e2.key, i3);
|
|
558
|
+
} }, e$2 = (i3, e2, n2) => {
|
|
559
|
+
e2.constructor.createProperty(n2, i3);
|
|
560
560
|
};
|
|
561
|
-
function n$
|
|
562
|
-
return (t2, o3) => void 0 !== o3 ? e$
|
|
561
|
+
function n$2(n2) {
|
|
562
|
+
return (t2, o3) => void 0 !== o3 ? e$2(n2, t2, o3) : i$2(n2, t2);
|
|
563
563
|
}
|
|
564
564
|
/**
|
|
565
565
|
* @license
|
|
566
566
|
* Copyright 2017 Google LLC
|
|
567
567
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
568
568
|
*/
|
|
569
|
-
function t$
|
|
570
|
-
return n$
|
|
569
|
+
function t$2(t2) {
|
|
570
|
+
return n$2({ ...t2, state: true });
|
|
571
571
|
}
|
|
572
572
|
/**
|
|
573
573
|
* @license
|
|
574
574
|
* Copyright 2021 Google LLC
|
|
575
575
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
576
576
|
*/
|
|
577
|
-
var n;
|
|
578
|
-
null != (null === (n = window.HTMLSlotElement) || void 0 === n ? void 0 : n.prototype.assignedElements) ? (o3, n2) => o3.assignedElements(n2) : (o3, n2) => o3.assignedNodes(n2).filter(((o4) => o4.nodeType === Node.ELEMENT_NODE));
|
|
577
|
+
var n$1;
|
|
578
|
+
null != (null === (n$1 = window.HTMLSlotElement) || void 0 === n$1 ? void 0 : n$1.prototype.assignedElements) ? (o3, n2) => o3.assignedElements(n2) : (o3, n2) => o3.assignedNodes(n2).filter(((o4) => o4.nodeType === Node.ELEMENT_NODE));
|
|
579
579
|
/**
|
|
580
580
|
* @license
|
|
581
581
|
* Copyright 2017 Google LLC
|
|
582
582
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
583
583
|
*/
|
|
584
|
-
const t = { ATTRIBUTE: 1 }, e = (t2) => (...e2) => ({ _$litDirective$: t2, values: e2 });
|
|
585
|
-
class i {
|
|
584
|
+
const t$1 = { ATTRIBUTE: 1 }, e$1 = (t2) => (...e2) => ({ _$litDirective$: t2, values: e2 });
|
|
585
|
+
let i$1 = class i {
|
|
586
586
|
constructor(t2) {
|
|
587
587
|
}
|
|
588
588
|
get _$AU() {
|
|
589
589
|
return this._$AM._$AU;
|
|
590
590
|
}
|
|
591
|
-
_$AT(t2, e2,
|
|
592
|
-
this._$Ct = t2, this._$AM = e2, this._$Ci =
|
|
591
|
+
_$AT(t2, e2, i3) {
|
|
592
|
+
this._$Ct = t2, this._$AM = e2, this._$Ci = i3;
|
|
593
593
|
}
|
|
594
594
|
_$AS(t2, e2) {
|
|
595
595
|
return this.update(t2, e2);
|
|
@@ -597,38 +597,258 @@ class i {
|
|
|
597
597
|
update(t2, e2) {
|
|
598
598
|
return this.render(...e2);
|
|
599
599
|
}
|
|
600
|
-
}
|
|
600
|
+
};
|
|
601
601
|
/**
|
|
602
602
|
* @license
|
|
603
603
|
* Copyright 2018 Google LLC
|
|
604
604
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
605
605
|
*/
|
|
606
|
-
const
|
|
607
|
-
constructor(
|
|
608
|
-
var
|
|
609
|
-
if (super(
|
|
606
|
+
const o$1 = e$1(class extends i$1 {
|
|
607
|
+
constructor(t2) {
|
|
608
|
+
var i3;
|
|
609
|
+
if (super(t2), t2.type !== t$1.ATTRIBUTE || "class" !== t2.name || (null === (i3 = t2.strings) || void 0 === i3 ? void 0 : i3.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
610
610
|
}
|
|
611
611
|
render(t2) {
|
|
612
|
-
return " " + Object.keys(t2).filter(((
|
|
612
|
+
return " " + Object.keys(t2).filter(((i3) => t2[i3])).join(" ") + " ";
|
|
613
613
|
}
|
|
614
|
-
update(
|
|
614
|
+
update(i3, [s3]) {
|
|
615
615
|
var r2, o3;
|
|
616
616
|
if (void 0 === this.it) {
|
|
617
|
-
this.it = /* @__PURE__ */ new Set(), void 0 !==
|
|
618
|
-
for (const t2 in
|
|
619
|
-
return this.render(
|
|
617
|
+
this.it = /* @__PURE__ */ new Set(), void 0 !== i3.strings && (this.nt = new Set(i3.strings.join(" ").split(/\s/).filter(((t2) => "" !== t2))));
|
|
618
|
+
for (const t2 in s3) s3[t2] && !(null === (r2 = this.nt) || void 0 === r2 ? void 0 : r2.has(t2)) && this.it.add(t2);
|
|
619
|
+
return this.render(s3);
|
|
620
620
|
}
|
|
621
|
-
const e2 =
|
|
621
|
+
const e2 = i3.element.classList;
|
|
622
622
|
this.it.forEach(((t2) => {
|
|
623
|
-
t2 in
|
|
623
|
+
t2 in s3 || (e2.remove(t2), this.it.delete(t2));
|
|
624
624
|
}));
|
|
625
|
-
for (const t2 in
|
|
626
|
-
const
|
|
627
|
-
|
|
625
|
+
for (const t2 in s3) {
|
|
626
|
+
const i4 = !!s3[t2];
|
|
627
|
+
i4 === this.it.has(t2) || (null === (o3 = this.nt) || void 0 === o3 ? void 0 : o3.has(t2)) || (i4 ? (e2.add(t2), this.it.add(t2)) : (e2.remove(t2), this.it.delete(t2)));
|
|
628
628
|
}
|
|
629
|
-
return T;
|
|
629
|
+
return T$1;
|
|
630
630
|
}
|
|
631
631
|
});
|
|
632
|
+
/**
|
|
633
|
+
* @license
|
|
634
|
+
* Copyright 2017 Google LLC
|
|
635
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
636
|
+
*/
|
|
637
|
+
const t = globalThis, i2 = t.trustedTypes, s2 = i2 ? i2.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, e = "$lit$", h = `lit$${Math.random().toFixed(9).slice(2)}$`, o2 = "?" + h, n = `<${o2}>`, r = document, l$1 = () => r.createComment(""), c = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, a = Array.isArray, u2 = (t2) => a(t2) || "function" == typeof t2?.[Symbol.iterator], d = "[ \n\f\r]", f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v = /-->/g, _ = />/g, m = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^
|
|
638
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), p = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i, y = (t2) => (i3, ...s3) => ({ _$litType$: t2, strings: i3, values: s3 }), b = y(2), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = /* @__PURE__ */ new WeakMap(), C = r.createTreeWalker(r, 129);
|
|
639
|
+
function P(t2, i3) {
|
|
640
|
+
if (!a(t2) || !t2.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
641
|
+
return void 0 !== s2 ? s2.createHTML(i3) : i3;
|
|
642
|
+
}
|
|
643
|
+
const V = (t2, i3) => {
|
|
644
|
+
const s3 = t2.length - 1, o3 = [];
|
|
645
|
+
let r2, l2 = 2 === i3 ? "<svg>" : 3 === i3 ? "<math>" : "", c2 = f;
|
|
646
|
+
for (let i4 = 0; i4 < s3; i4++) {
|
|
647
|
+
const s4 = t2[i4];
|
|
648
|
+
let a2, u3, d2 = -1, y2 = 0;
|
|
649
|
+
for (; y2 < s4.length && (c2.lastIndex = y2, u3 = c2.exec(s4), null !== u3); ) y2 = c2.lastIndex, c2 === f ? "!--" === u3[1] ? c2 = v : void 0 !== u3[1] ? c2 = _ : void 0 !== u3[2] ? ($.test(u3[2]) && (r2 = RegExp("</" + u3[2], "g")), c2 = m) : void 0 !== u3[3] && (c2 = m) : c2 === m ? ">" === u3[0] ? (c2 = r2 ?? f, d2 = -1) : void 0 === u3[1] ? d2 = -2 : (d2 = c2.lastIndex - u3[2].length, a2 = u3[1], c2 = void 0 === u3[3] ? m : '"' === u3[3] ? g : p) : c2 === g || c2 === p ? c2 = m : c2 === v || c2 === _ ? c2 = f : (c2 = m, r2 = void 0);
|
|
650
|
+
const x2 = c2 === m && t2[i4 + 1].startsWith("/>") ? " " : "";
|
|
651
|
+
l2 += c2 === f ? s4 + n : d2 >= 0 ? (o3.push(a2), s4.slice(0, d2) + e + s4.slice(d2) + h + x2) : s4 + h + (-2 === d2 ? i4 : x2);
|
|
652
|
+
}
|
|
653
|
+
return [P(t2, l2 + (t2[s3] || "<?>") + (2 === i3 ? "</svg>" : 3 === i3 ? "</math>" : "")), o3];
|
|
654
|
+
};
|
|
655
|
+
class N2 {
|
|
656
|
+
constructor({ strings: t2, _$litType$: s3 }, n2) {
|
|
657
|
+
let r2;
|
|
658
|
+
this.parts = [];
|
|
659
|
+
let c2 = 0, a2 = 0;
|
|
660
|
+
const u3 = t2.length - 1, d2 = this.parts, [f2, v2] = V(t2, s3);
|
|
661
|
+
if (this.el = N2.createElement(f2, n2), C.currentNode = this.el.content, 2 === s3 || 3 === s3) {
|
|
662
|
+
const t3 = this.el.content.firstChild;
|
|
663
|
+
t3.replaceWith(...t3.childNodes);
|
|
664
|
+
}
|
|
665
|
+
for (; null !== (r2 = C.nextNode()) && d2.length < u3; ) {
|
|
666
|
+
if (1 === r2.nodeType) {
|
|
667
|
+
if (r2.hasAttributes()) for (const t3 of r2.getAttributeNames()) if (t3.endsWith(e)) {
|
|
668
|
+
const i3 = v2[a2++], s4 = r2.getAttribute(t3).split(h), e2 = /([.?@])?(.*)/.exec(i3);
|
|
669
|
+
d2.push({ type: 1, index: c2, name: e2[2], strings: s4, ctor: "." === e2[1] ? H2 : "?" === e2[1] ? I : "@" === e2[1] ? L2 : k2 }), r2.removeAttribute(t3);
|
|
670
|
+
} else t3.startsWith(h) && (d2.push({ type: 6, index: c2 }), r2.removeAttribute(t3));
|
|
671
|
+
if ($.test(r2.tagName)) {
|
|
672
|
+
const t3 = r2.textContent.split(h), s4 = t3.length - 1;
|
|
673
|
+
if (s4 > 0) {
|
|
674
|
+
r2.textContent = i2 ? i2.emptyScript : "";
|
|
675
|
+
for (let i3 = 0; i3 < s4; i3++) r2.append(t3[i3], l$1()), C.nextNode(), d2.push({ type: 2, index: ++c2 });
|
|
676
|
+
r2.append(t3[s4], l$1());
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
} else if (8 === r2.nodeType) if (r2.data === o2) d2.push({ type: 2, index: c2 });
|
|
680
|
+
else {
|
|
681
|
+
let t3 = -1;
|
|
682
|
+
for (; -1 !== (t3 = r2.data.indexOf(h, t3 + 1)); ) d2.push({ type: 7, index: c2 }), t3 += h.length - 1;
|
|
683
|
+
}
|
|
684
|
+
c2++;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
static createElement(t2, i3) {
|
|
688
|
+
const s3 = r.createElement("template");
|
|
689
|
+
return s3.innerHTML = t2, s3;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
function S(t2, i3, s3 = t2, e2) {
|
|
693
|
+
if (i3 === T) return i3;
|
|
694
|
+
let h2 = void 0 !== e2 ? s3._$Co?.[e2] : s3._$Cl;
|
|
695
|
+
const o3 = c(i3) ? void 0 : i3._$litDirective$;
|
|
696
|
+
return h2?.constructor !== o3 && (h2?._$AO?.(false), void 0 === o3 ? h2 = void 0 : (h2 = new o3(t2), h2._$AT(t2, s3, e2)), void 0 !== e2 ? (s3._$Co ?? (s3._$Co = []))[e2] = h2 : s3._$Cl = h2), void 0 !== h2 && (i3 = S(t2, h2._$AS(t2, i3.values), h2, e2)), i3;
|
|
697
|
+
}
|
|
698
|
+
class M2 {
|
|
699
|
+
constructor(t2, i3) {
|
|
700
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t2, this._$AM = i3;
|
|
701
|
+
}
|
|
702
|
+
get parentNode() {
|
|
703
|
+
return this._$AM.parentNode;
|
|
704
|
+
}
|
|
705
|
+
get _$AU() {
|
|
706
|
+
return this._$AM._$AU;
|
|
707
|
+
}
|
|
708
|
+
u(t2) {
|
|
709
|
+
const { el: { content: i3 }, parts: s3 } = this._$AD, e2 = (t2?.creationScope ?? r).importNode(i3, true);
|
|
710
|
+
C.currentNode = e2;
|
|
711
|
+
let h2 = C.nextNode(), o3 = 0, n2 = 0, l2 = s3[0];
|
|
712
|
+
for (; void 0 !== l2; ) {
|
|
713
|
+
if (o3 === l2.index) {
|
|
714
|
+
let i4;
|
|
715
|
+
2 === l2.type ? i4 = new R2(h2, h2.nextSibling, this, t2) : 1 === l2.type ? i4 = new l2.ctor(h2, l2.name, l2.strings, this, t2) : 6 === l2.type && (i4 = new z2(h2, this, t2)), this._$AV.push(i4), l2 = s3[++n2];
|
|
716
|
+
}
|
|
717
|
+
o3 !== l2?.index && (h2 = C.nextNode(), o3++);
|
|
718
|
+
}
|
|
719
|
+
return C.currentNode = r, e2;
|
|
720
|
+
}
|
|
721
|
+
p(t2) {
|
|
722
|
+
let i3 = 0;
|
|
723
|
+
for (const s3 of this._$AV) void 0 !== s3 && (void 0 !== s3.strings ? (s3._$AI(t2, s3, i3), i3 += s3.strings.length - 2) : s3._$AI(t2[i3])), i3++;
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
class R2 {
|
|
727
|
+
get _$AU() {
|
|
728
|
+
return this._$AM?._$AU ?? this._$Cv;
|
|
729
|
+
}
|
|
730
|
+
constructor(t2, i3, s3, e2) {
|
|
731
|
+
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t2, this._$AB = i3, this._$AM = s3, this.options = e2, this._$Cv = e2?.isConnected ?? true;
|
|
732
|
+
}
|
|
733
|
+
get parentNode() {
|
|
734
|
+
let t2 = this._$AA.parentNode;
|
|
735
|
+
const i3 = this._$AM;
|
|
736
|
+
return void 0 !== i3 && 11 === t2?.nodeType && (t2 = i3.parentNode), t2;
|
|
737
|
+
}
|
|
738
|
+
get startNode() {
|
|
739
|
+
return this._$AA;
|
|
740
|
+
}
|
|
741
|
+
get endNode() {
|
|
742
|
+
return this._$AB;
|
|
743
|
+
}
|
|
744
|
+
_$AI(t2, i3 = this) {
|
|
745
|
+
t2 = S(this, t2, i3), c(t2) ? t2 === E || null == t2 || "" === t2 ? (this._$AH !== E && this._$AR(), this._$AH = E) : t2 !== this._$AH && t2 !== T && this._(t2) : void 0 !== t2._$litType$ ? this.$(t2) : void 0 !== t2.nodeType ? this.T(t2) : u2(t2) ? this.k(t2) : this._(t2);
|
|
746
|
+
}
|
|
747
|
+
O(t2) {
|
|
748
|
+
return this._$AA.parentNode.insertBefore(t2, this._$AB);
|
|
749
|
+
}
|
|
750
|
+
T(t2) {
|
|
751
|
+
this._$AH !== t2 && (this._$AR(), this._$AH = this.O(t2));
|
|
752
|
+
}
|
|
753
|
+
_(t2) {
|
|
754
|
+
this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t2 : this.T(r.createTextNode(t2)), this._$AH = t2;
|
|
755
|
+
}
|
|
756
|
+
$(t2) {
|
|
757
|
+
const { values: i3, _$litType$: s3 } = t2, e2 = "number" == typeof s3 ? this._$AC(t2) : (void 0 === s3.el && (s3.el = N2.createElement(P(s3.h, s3.h[0]), this.options)), s3);
|
|
758
|
+
if (this._$AH?._$AD === e2) this._$AH.p(i3);
|
|
759
|
+
else {
|
|
760
|
+
const t3 = new M2(e2, this), s4 = t3.u(this.options);
|
|
761
|
+
t3.p(i3), this.T(s4), this._$AH = t3;
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
_$AC(t2) {
|
|
765
|
+
let i3 = A.get(t2.strings);
|
|
766
|
+
return void 0 === i3 && A.set(t2.strings, i3 = new N2(t2)), i3;
|
|
767
|
+
}
|
|
768
|
+
k(t2) {
|
|
769
|
+
a(this._$AH) || (this._$AH = [], this._$AR());
|
|
770
|
+
const i3 = this._$AH;
|
|
771
|
+
let s3, e2 = 0;
|
|
772
|
+
for (const h2 of t2) e2 === i3.length ? i3.push(s3 = new R2(this.O(l$1()), this.O(l$1()), this, this.options)) : s3 = i3[e2], s3._$AI(h2), e2++;
|
|
773
|
+
e2 < i3.length && (this._$AR(s3 && s3._$AB.nextSibling, e2), i3.length = e2);
|
|
774
|
+
}
|
|
775
|
+
_$AR(t2 = this._$AA.nextSibling, i3) {
|
|
776
|
+
for (this._$AP?.(false, true, i3); t2 !== this._$AB; ) {
|
|
777
|
+
const i4 = t2.nextSibling;
|
|
778
|
+
t2.remove(), t2 = i4;
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
setConnected(t2) {
|
|
782
|
+
void 0 === this._$AM && (this._$Cv = t2, this._$AP?.(t2));
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
class k2 {
|
|
786
|
+
get tagName() {
|
|
787
|
+
return this.element.tagName;
|
|
788
|
+
}
|
|
789
|
+
get _$AU() {
|
|
790
|
+
return this._$AM._$AU;
|
|
791
|
+
}
|
|
792
|
+
constructor(t2, i3, s3, e2, h2) {
|
|
793
|
+
this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t2, this.name = i3, this._$AM = e2, this.options = h2, s3.length > 2 || "" !== s3[0] || "" !== s3[1] ? (this._$AH = Array(s3.length - 1).fill(new String()), this.strings = s3) : this._$AH = E;
|
|
794
|
+
}
|
|
795
|
+
_$AI(t2, i3 = this, s3, e2) {
|
|
796
|
+
const h2 = this.strings;
|
|
797
|
+
let o3 = false;
|
|
798
|
+
if (void 0 === h2) t2 = S(this, t2, i3, 0), o3 = !c(t2) || t2 !== this._$AH && t2 !== T, o3 && (this._$AH = t2);
|
|
799
|
+
else {
|
|
800
|
+
const e3 = t2;
|
|
801
|
+
let n2, r2;
|
|
802
|
+
for (t2 = h2[0], n2 = 0; n2 < h2.length - 1; n2++) r2 = S(this, e3[s3 + n2], i3, n2), r2 === T && (r2 = this._$AH[n2]), o3 || (o3 = !c(r2) || r2 !== this._$AH[n2]), r2 === E ? t2 = E : t2 !== E && (t2 += (r2 ?? "") + h2[n2 + 1]), this._$AH[n2] = r2;
|
|
803
|
+
}
|
|
804
|
+
o3 && !e2 && this.j(t2);
|
|
805
|
+
}
|
|
806
|
+
j(t2) {
|
|
807
|
+
t2 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t2 ?? "");
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
class H2 extends k2 {
|
|
811
|
+
constructor() {
|
|
812
|
+
super(...arguments), this.type = 3;
|
|
813
|
+
}
|
|
814
|
+
j(t2) {
|
|
815
|
+
this.element[this.name] = t2 === E ? void 0 : t2;
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
class I extends k2 {
|
|
819
|
+
constructor() {
|
|
820
|
+
super(...arguments), this.type = 4;
|
|
821
|
+
}
|
|
822
|
+
j(t2) {
|
|
823
|
+
this.element.toggleAttribute(this.name, !!t2 && t2 !== E);
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
class L2 extends k2 {
|
|
827
|
+
constructor(t2, i3, s3, e2, h2) {
|
|
828
|
+
super(t2, i3, s3, e2, h2), this.type = 5;
|
|
829
|
+
}
|
|
830
|
+
_$AI(t2, i3 = this) {
|
|
831
|
+
if ((t2 = S(this, t2, i3, 0) ?? E) === T) return;
|
|
832
|
+
const s3 = this._$AH, e2 = t2 === E && s3 !== E || t2.capture !== s3.capture || t2.once !== s3.once || t2.passive !== s3.passive, h2 = t2 !== E && (s3 === E || e2);
|
|
833
|
+
e2 && this.element.removeEventListener(this.name, this, s3), h2 && this.element.addEventListener(this.name, this, t2), this._$AH = t2;
|
|
834
|
+
}
|
|
835
|
+
handleEvent(t2) {
|
|
836
|
+
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t2) : this._$AH.handleEvent(t2);
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
class z2 {
|
|
840
|
+
constructor(t2, i3, s3) {
|
|
841
|
+
this.element = t2, this.type = 6, this._$AN = void 0, this._$AM = i3, this.options = s3;
|
|
842
|
+
}
|
|
843
|
+
get _$AU() {
|
|
844
|
+
return this._$AM._$AU;
|
|
845
|
+
}
|
|
846
|
+
_$AI(t2) {
|
|
847
|
+
S(this, t2);
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
const j = t.litHtmlPolyfillSupport;
|
|
851
|
+
j?.(N2, R2), (t.litHtmlVersions ?? (t.litHtmlVersions = [])).push("3.3.1");
|
|
632
852
|
function addUniqueItem(array, item) {
|
|
633
853
|
array.indexOf(item) === -1 && array.push(item);
|
|
634
854
|
}
|
|
@@ -646,8 +866,8 @@ const wrap = (min, max, v2) => {
|
|
|
646
866
|
const rangeSize = max - min;
|
|
647
867
|
return ((v2 - min) % rangeSize + rangeSize) % rangeSize + min;
|
|
648
868
|
};
|
|
649
|
-
function getEasingForSegment(easing,
|
|
650
|
-
return isEasingList(easing) ? easing[wrap(0, easing.length,
|
|
869
|
+
function getEasingForSegment(easing, i3) {
|
|
870
|
+
return isEasingList(easing) ? easing[wrap(0, easing.length, i3)] : easing;
|
|
651
871
|
}
|
|
652
872
|
const mix = (min, max, progress2) => -progress2 * min + progress2 * max + min;
|
|
653
873
|
const noop = () => {
|
|
@@ -656,8 +876,8 @@ const noopReturn = (v2) => v2;
|
|
|
656
876
|
const progress = (min, max, value) => max - min === 0 ? 1 : (value - min) / (max - min);
|
|
657
877
|
function fillOffset(offset, remaining) {
|
|
658
878
|
const min = offset[offset.length - 1];
|
|
659
|
-
for (let
|
|
660
|
-
const offsetProgress = progress(0, remaining,
|
|
879
|
+
for (let i3 = 1; i3 <= remaining; i3++) {
|
|
880
|
+
const offsetProgress = progress(0, remaining, i3);
|
|
661
881
|
offset.push(mix(min, 1, offsetProgress));
|
|
662
882
|
}
|
|
663
883
|
}
|
|
@@ -671,15 +891,15 @@ function interpolate(output, input = defaultOffset(output.length), easing = noop
|
|
|
671
891
|
const remainder = length - input.length;
|
|
672
892
|
remainder > 0 && fillOffset(input, remainder);
|
|
673
893
|
return (t2) => {
|
|
674
|
-
let
|
|
675
|
-
for (;
|
|
676
|
-
if (t2 < input[
|
|
894
|
+
let i3 = 0;
|
|
895
|
+
for (; i3 < length - 2; i3++) {
|
|
896
|
+
if (t2 < input[i3 + 1])
|
|
677
897
|
break;
|
|
678
898
|
}
|
|
679
|
-
let progressInRange = clamp(0, 1, progress(input[
|
|
680
|
-
const segmentEasing = getEasingForSegment(easing,
|
|
899
|
+
let progressInRange = clamp(0, 1, progress(input[i3], input[i3 + 1], t2));
|
|
900
|
+
const segmentEasing = getEasingForSegment(easing, i3);
|
|
681
901
|
progressInRange = segmentEasing(progressInRange);
|
|
682
|
-
return mix(output[
|
|
902
|
+
return mix(output[i3], output[i3 + 1], progressInRange);
|
|
683
903
|
};
|
|
684
904
|
}
|
|
685
905
|
const isCubicBezier = (easing) => Array.isArray(easing) && isNumber(easing[0]);
|
|
@@ -696,7 +916,7 @@ const subdivisionMaxIterations = 12;
|
|
|
696
916
|
function binarySubdivide(x2, lowerBound, upperBound, mX1, mX2) {
|
|
697
917
|
let currentX;
|
|
698
918
|
let currentT;
|
|
699
|
-
let
|
|
919
|
+
let i3 = 0;
|
|
700
920
|
do {
|
|
701
921
|
currentT = lowerBound + (upperBound - lowerBound) / 2;
|
|
702
922
|
currentX = calcBezier(currentT, mX1, mX2) - x2;
|
|
@@ -705,7 +925,7 @@ function binarySubdivide(x2, lowerBound, upperBound, mX1, mX2) {
|
|
|
705
925
|
} else {
|
|
706
926
|
lowerBound = currentT;
|
|
707
927
|
}
|
|
708
|
-
} while (Math.abs(currentX) > subdivisionPrecision && ++
|
|
928
|
+
} while (Math.abs(currentX) > subdivisionPrecision && ++i3 < subdivisionMaxIterations);
|
|
709
929
|
return currentT;
|
|
710
930
|
}
|
|
711
931
|
function cubicBezier(mX1, mY1, mX2, mY2) {
|
|
@@ -993,8 +1213,8 @@ const resolution = 0.015;
|
|
|
993
1213
|
const generateLinearEasingPoints = (easing, duration) => {
|
|
994
1214
|
let points = "";
|
|
995
1215
|
const numPoints = Math.round(duration / resolution);
|
|
996
|
-
for (let
|
|
997
|
-
points += easing(progress(0, numPoints - 1,
|
|
1216
|
+
for (let i3 = 0; i3 < numPoints; i3++) {
|
|
1217
|
+
points += easing(progress(0, numPoints - 1, i3)) + ", ";
|
|
998
1218
|
}
|
|
999
1219
|
return points.substring(0, points.length - 2);
|
|
1000
1220
|
};
|
|
@@ -1007,9 +1227,9 @@ const convertEasing = (easing, duration) => {
|
|
|
1007
1227
|
};
|
|
1008
1228
|
const cubicBezierAsString = ([a2, b2, c2, d2]) => `cubic-bezier(${a2}, ${b2}, ${c2}, ${d2})`;
|
|
1009
1229
|
function hydrateKeyframes(keyframes, readInitialValue) {
|
|
1010
|
-
for (let
|
|
1011
|
-
if (keyframes[
|
|
1012
|
-
keyframes[
|
|
1230
|
+
for (let i3 = 0; i3 < keyframes.length; i3++) {
|
|
1231
|
+
if (keyframes[i3] === null) {
|
|
1232
|
+
keyframes[i3] = i3 ? keyframes[i3 - 1] : readInitialValue();
|
|
1013
1233
|
}
|
|
1014
1234
|
}
|
|
1015
1235
|
return keyframes;
|
|
@@ -1230,8 +1450,8 @@ const controls = {
|
|
|
1230
1450
|
value = time.ms(value);
|
|
1231
1451
|
// Fall-through
|
|
1232
1452
|
case "playbackRate":
|
|
1233
|
-
for (let
|
|
1234
|
-
target.animations[
|
|
1453
|
+
for (let i3 = 0; i3 < target.animations.length; i3++) {
|
|
1454
|
+
target.animations[i3][key] = value;
|
|
1235
1455
|
}
|
|
1236
1456
|
return true;
|
|
1237
1457
|
}
|
|
@@ -1239,19 +1459,19 @@ const controls = {
|
|
|
1239
1459
|
}
|
|
1240
1460
|
};
|
|
1241
1461
|
const selectFinished = (animation) => animation.finished;
|
|
1242
|
-
function resolveOption(option,
|
|
1243
|
-
return isFunction(option) ? option(
|
|
1462
|
+
function resolveOption(option, i3, total) {
|
|
1463
|
+
return isFunction(option) ? option(i3, total) : option;
|
|
1244
1464
|
}
|
|
1245
1465
|
function createAnimate(AnimatePolyfill) {
|
|
1246
1466
|
return function animate2(elements, keyframes, options = {}) {
|
|
1247
1467
|
elements = resolveElements(elements);
|
|
1248
1468
|
const numElements = elements.length;
|
|
1249
1469
|
const animationFactories = [];
|
|
1250
|
-
for (let
|
|
1251
|
-
const element = elements[
|
|
1470
|
+
for (let i3 = 0; i3 < numElements; i3++) {
|
|
1471
|
+
const element = elements[i3];
|
|
1252
1472
|
for (const key in keyframes) {
|
|
1253
1473
|
const valueOptions = getOptions(options, key);
|
|
1254
|
-
valueOptions.delay = resolveOption(valueOptions.delay,
|
|
1474
|
+
valueOptions.delay = resolveOption(valueOptions.delay, i3, numElements);
|
|
1255
1475
|
const animation = animateStyle(element, key, keyframes[key], valueOptions, AnimatePolyfill);
|
|
1256
1476
|
animationFactories.push(animation);
|
|
1257
1477
|
}
|
|
@@ -1292,7 +1512,7 @@ function animate(target, keyframesOrOptions, options) {
|
|
|
1292
1512
|
* Copyright 2018 Google LLC
|
|
1293
1513
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1294
1514
|
*/
|
|
1295
|
-
const l = (l2) => null != l2 ? l2 : A;
|
|
1515
|
+
const l = (l2) => null != l2 ? l2 : A$1;
|
|
1296
1516
|
var browser = {};
|
|
1297
1517
|
var canPromise;
|
|
1298
1518
|
var hasRequiredCanPromise;
|
|
@@ -1448,8 +1668,8 @@ function requireBitBuffer() {
|
|
|
1448
1668
|
return (this.buffer[bufIndex] >>> 7 - index % 8 & 1) === 1;
|
|
1449
1669
|
},
|
|
1450
1670
|
put: function(num, length) {
|
|
1451
|
-
for (let
|
|
1452
|
-
this.putBit((num >>> length -
|
|
1671
|
+
for (let i3 = 0; i3 < length; i3++) {
|
|
1672
|
+
this.putBit((num >>> length - i3 - 1 & 1) === 1);
|
|
1453
1673
|
}
|
|
1454
1674
|
},
|
|
1455
1675
|
getLengthInBits: function() {
|
|
@@ -1512,8 +1732,8 @@ function requireAlignmentPattern() {
|
|
|
1512
1732
|
const size = getSymbolSize(version2);
|
|
1513
1733
|
const intervals = size === 145 ? 26 : Math.ceil((size - 13) / (2 * posCount - 2)) * 2;
|
|
1514
1734
|
const positions = [size - 7];
|
|
1515
|
-
for (let
|
|
1516
|
-
positions[
|
|
1735
|
+
for (let i3 = 1; i3 < posCount - 1; i3++) {
|
|
1736
|
+
positions[i3] = positions[i3 - 1] - intervals;
|
|
1517
1737
|
}
|
|
1518
1738
|
positions.push(6);
|
|
1519
1739
|
return positions.reverse();
|
|
@@ -1522,14 +1742,14 @@ function requireAlignmentPattern() {
|
|
|
1522
1742
|
const coords = [];
|
|
1523
1743
|
const pos = exports.getRowColCoords(version2);
|
|
1524
1744
|
const posLength = pos.length;
|
|
1525
|
-
for (let
|
|
1526
|
-
for (let
|
|
1527
|
-
if (
|
|
1528
|
-
|
|
1529
|
-
|
|
1745
|
+
for (let i3 = 0; i3 < posLength; i3++) {
|
|
1746
|
+
for (let j2 = 0; j2 < posLength; j2++) {
|
|
1747
|
+
if (i3 === 0 && j2 === 0 || // top-left
|
|
1748
|
+
i3 === 0 && j2 === posLength - 1 || // bottom-left
|
|
1749
|
+
i3 === posLength - 1 && j2 === 0) {
|
|
1530
1750
|
continue;
|
|
1531
1751
|
}
|
|
1532
|
-
coords.push([pos[
|
|
1752
|
+
coords.push([pos[i3], pos[j2]]);
|
|
1533
1753
|
}
|
|
1534
1754
|
}
|
|
1535
1755
|
return coords;
|
|
@@ -1648,28 +1868,28 @@ function requireMaskPattern() {
|
|
|
1648
1868
|
exports.getPenaltyN4 = function getPenaltyN4(data2) {
|
|
1649
1869
|
let darkCount = 0;
|
|
1650
1870
|
const modulesCount = data2.data.length;
|
|
1651
|
-
for (let
|
|
1652
|
-
const
|
|
1653
|
-
return
|
|
1871
|
+
for (let i3 = 0; i3 < modulesCount; i3++) darkCount += data2.data[i3];
|
|
1872
|
+
const k3 = Math.abs(Math.ceil(darkCount * 100 / modulesCount / 5) - 10);
|
|
1873
|
+
return k3 * PenaltyScores.N4;
|
|
1654
1874
|
};
|
|
1655
|
-
function getMaskAt(maskPattern2,
|
|
1875
|
+
function getMaskAt(maskPattern2, i3, j2) {
|
|
1656
1876
|
switch (maskPattern2) {
|
|
1657
1877
|
case exports.Patterns.PATTERN000:
|
|
1658
|
-
return (
|
|
1878
|
+
return (i3 + j2) % 2 === 0;
|
|
1659
1879
|
case exports.Patterns.PATTERN001:
|
|
1660
|
-
return
|
|
1880
|
+
return i3 % 2 === 0;
|
|
1661
1881
|
case exports.Patterns.PATTERN010:
|
|
1662
|
-
return
|
|
1882
|
+
return j2 % 3 === 0;
|
|
1663
1883
|
case exports.Patterns.PATTERN011:
|
|
1664
|
-
return (
|
|
1884
|
+
return (i3 + j2) % 3 === 0;
|
|
1665
1885
|
case exports.Patterns.PATTERN100:
|
|
1666
|
-
return (Math.floor(
|
|
1886
|
+
return (Math.floor(i3 / 2) + Math.floor(j2 / 3)) % 2 === 0;
|
|
1667
1887
|
case exports.Patterns.PATTERN101:
|
|
1668
|
-
return
|
|
1888
|
+
return i3 * j2 % 2 + i3 * j2 % 3 === 0;
|
|
1669
1889
|
case exports.Patterns.PATTERN110:
|
|
1670
|
-
return (
|
|
1890
|
+
return (i3 * j2 % 2 + i3 * j2 % 3) % 2 === 0;
|
|
1671
1891
|
case exports.Patterns.PATTERN111:
|
|
1672
|
-
return (
|
|
1892
|
+
return (i3 * j2 % 3 + (i3 + j2) % 2) % 2 === 0;
|
|
1673
1893
|
default:
|
|
1674
1894
|
throw new Error("bad maskPattern:" + maskPattern2);
|
|
1675
1895
|
}
|
|
@@ -2074,16 +2294,16 @@ function requireGaloisField() {
|
|
|
2074
2294
|
const LOG_TABLE = new Uint8Array(256);
|
|
2075
2295
|
(function initTables() {
|
|
2076
2296
|
let x2 = 1;
|
|
2077
|
-
for (let
|
|
2078
|
-
EXP_TABLE[
|
|
2079
|
-
LOG_TABLE[x2] =
|
|
2297
|
+
for (let i3 = 0; i3 < 255; i3++) {
|
|
2298
|
+
EXP_TABLE[i3] = x2;
|
|
2299
|
+
LOG_TABLE[x2] = i3;
|
|
2080
2300
|
x2 <<= 1;
|
|
2081
2301
|
if (x2 & 256) {
|
|
2082
2302
|
x2 ^= 285;
|
|
2083
2303
|
}
|
|
2084
2304
|
}
|
|
2085
|
-
for (let
|
|
2086
|
-
EXP_TABLE[
|
|
2305
|
+
for (let i3 = 255; i3 < 512; i3++) {
|
|
2306
|
+
EXP_TABLE[i3] = EXP_TABLE[i3 - 255];
|
|
2087
2307
|
}
|
|
2088
2308
|
})();
|
|
2089
2309
|
galoisField.log = function log(n2) {
|
|
@@ -2107,9 +2327,9 @@ function requirePolynomial() {
|
|
|
2107
2327
|
const GF = requireGaloisField();
|
|
2108
2328
|
exports.mul = function mul(p1, p2) {
|
|
2109
2329
|
const coeff = new Uint8Array(p1.length + p2.length - 1);
|
|
2110
|
-
for (let
|
|
2111
|
-
for (let
|
|
2112
|
-
coeff[
|
|
2330
|
+
for (let i3 = 0; i3 < p1.length; i3++) {
|
|
2331
|
+
for (let j2 = 0; j2 < p2.length; j2++) {
|
|
2332
|
+
coeff[i3 + j2] ^= GF.mul(p1[i3], p2[j2]);
|
|
2113
2333
|
}
|
|
2114
2334
|
}
|
|
2115
2335
|
return coeff;
|
|
@@ -2118,8 +2338,8 @@ function requirePolynomial() {
|
|
|
2118
2338
|
let result = new Uint8Array(divident);
|
|
2119
2339
|
while (result.length - divisor.length >= 0) {
|
|
2120
2340
|
const coeff = result[0];
|
|
2121
|
-
for (let
|
|
2122
|
-
result[
|
|
2341
|
+
for (let i3 = 0; i3 < divisor.length; i3++) {
|
|
2342
|
+
result[i3] ^= GF.mul(divisor[i3], coeff);
|
|
2123
2343
|
}
|
|
2124
2344
|
let offset = 0;
|
|
2125
2345
|
while (offset < result.length && result[offset] === 0) offset++;
|
|
@@ -2129,8 +2349,8 @@ function requirePolynomial() {
|
|
|
2129
2349
|
};
|
|
2130
2350
|
exports.generateECPolynomial = function generateECPolynomial(degree) {
|
|
2131
2351
|
let poly = new Uint8Array([1]);
|
|
2132
|
-
for (let
|
|
2133
|
-
poly = exports.mul(poly, new Uint8Array([1, GF.exp(
|
|
2352
|
+
for (let i3 = 0; i3 < degree; i3++) {
|
|
2353
|
+
poly = exports.mul(poly, new Uint8Array([1, GF.exp(i3)]));
|
|
2134
2354
|
}
|
|
2135
2355
|
return poly;
|
|
2136
2356
|
};
|
|
@@ -2431,15 +2651,15 @@ function requireNumericData() {
|
|
|
2431
2651
|
return NumericData.getBitsLength(this.data.length);
|
|
2432
2652
|
};
|
|
2433
2653
|
NumericData.prototype.write = function write(bitBuffer2) {
|
|
2434
|
-
let
|
|
2435
|
-
for (
|
|
2436
|
-
group = this.data.substr(
|
|
2654
|
+
let i3, group, value;
|
|
2655
|
+
for (i3 = 0; i3 + 3 <= this.data.length; i3 += 3) {
|
|
2656
|
+
group = this.data.substr(i3, 3);
|
|
2437
2657
|
value = parseInt(group, 10);
|
|
2438
2658
|
bitBuffer2.put(value, 10);
|
|
2439
2659
|
}
|
|
2440
|
-
const remainingNum = this.data.length -
|
|
2660
|
+
const remainingNum = this.data.length - i3;
|
|
2441
2661
|
if (remainingNum > 0) {
|
|
2442
|
-
group = this.data.substr(
|
|
2662
|
+
group = this.data.substr(i3);
|
|
2443
2663
|
value = parseInt(group, 10);
|
|
2444
2664
|
bitBuffer2.put(value, remainingNum * 3 + 1);
|
|
2445
2665
|
}
|
|
@@ -2514,14 +2734,14 @@ function requireAlphanumericData() {
|
|
|
2514
2734
|
return AlphanumericData.getBitsLength(this.data.length);
|
|
2515
2735
|
};
|
|
2516
2736
|
AlphanumericData.prototype.write = function write(bitBuffer2) {
|
|
2517
|
-
let
|
|
2518
|
-
for (
|
|
2519
|
-
let value = ALPHA_NUM_CHARS.indexOf(this.data[
|
|
2520
|
-
value += ALPHA_NUM_CHARS.indexOf(this.data[
|
|
2737
|
+
let i3;
|
|
2738
|
+
for (i3 = 0; i3 + 2 <= this.data.length; i3 += 2) {
|
|
2739
|
+
let value = ALPHA_NUM_CHARS.indexOf(this.data[i3]) * 45;
|
|
2740
|
+
value += ALPHA_NUM_CHARS.indexOf(this.data[i3 + 1]);
|
|
2521
2741
|
bitBuffer2.put(value, 11);
|
|
2522
2742
|
}
|
|
2523
2743
|
if (this.data.length % 2) {
|
|
2524
|
-
bitBuffer2.put(ALPHA_NUM_CHARS.indexOf(this.data[
|
|
2744
|
+
bitBuffer2.put(ALPHA_NUM_CHARS.indexOf(this.data[i3]), 6);
|
|
2525
2745
|
}
|
|
2526
2746
|
};
|
|
2527
2747
|
alphanumericData = AlphanumericData;
|
|
@@ -2596,8 +2816,8 @@ function requireByteData() {
|
|
|
2596
2816
|
return ByteData.getBitsLength(this.data.length);
|
|
2597
2817
|
};
|
|
2598
2818
|
ByteData.prototype.write = function(bitBuffer2) {
|
|
2599
|
-
for (let
|
|
2600
|
-
bitBuffer2.put(this.data[
|
|
2819
|
+
for (let i3 = 0, l2 = this.data.length; i3 < l2; i3++) {
|
|
2820
|
+
bitBuffer2.put(this.data[i3], 8);
|
|
2601
2821
|
}
|
|
2602
2822
|
};
|
|
2603
2823
|
byteData = ByteData;
|
|
@@ -2624,16 +2844,16 @@ function requireKanjiData() {
|
|
|
2624
2844
|
return KanjiData.getBitsLength(this.data.length);
|
|
2625
2845
|
};
|
|
2626
2846
|
KanjiData.prototype.write = function(bitBuffer2) {
|
|
2627
|
-
let
|
|
2628
|
-
for (
|
|
2629
|
-
let value = Utils.toSJIS(this.data[
|
|
2847
|
+
let i3;
|
|
2848
|
+
for (i3 = 0; i3 < this.data.length; i3++) {
|
|
2849
|
+
let value = Utils.toSJIS(this.data[i3]);
|
|
2630
2850
|
if (value >= 33088 && value <= 40956) {
|
|
2631
2851
|
value -= 33088;
|
|
2632
2852
|
} else if (value >= 57408 && value <= 60351) {
|
|
2633
2853
|
value -= 49472;
|
|
2634
2854
|
} else {
|
|
2635
2855
|
throw new Error(
|
|
2636
|
-
"Invalid SJIS character: " + this.data[
|
|
2856
|
+
"Invalid SJIS character: " + this.data[i3] + "\nMake sure your charset is UTF-8"
|
|
2637
2857
|
);
|
|
2638
2858
|
}
|
|
2639
2859
|
value = (value >>> 8 & 255) * 192 + (value & 255);
|
|
@@ -2650,12 +2870,12 @@ function requireDijkstra() {
|
|
|
2650
2870
|
hasRequiredDijkstra = 1;
|
|
2651
2871
|
(function(module) {
|
|
2652
2872
|
var dijkstra2 = {
|
|
2653
|
-
single_source_shortest_paths: function(graph,
|
|
2873
|
+
single_source_shortest_paths: function(graph, s3, d2) {
|
|
2654
2874
|
var predecessors = {};
|
|
2655
2875
|
var costs = {};
|
|
2656
|
-
costs[
|
|
2876
|
+
costs[s3] = 0;
|
|
2657
2877
|
var open = dijkstra2.PriorityQueue.make();
|
|
2658
|
-
open.push(
|
|
2878
|
+
open.push(s3, 0);
|
|
2659
2879
|
var closest, u3, v2, cost_of_s_to_u, adjacent_nodes, cost_of_e, cost_of_s_to_u_plus_cost_of_e, cost_of_s_to_v, first_visit;
|
|
2660
2880
|
while (!open.empty()) {
|
|
2661
2881
|
closest = open.pop();
|
|
@@ -2677,7 +2897,7 @@ function requireDijkstra() {
|
|
|
2677
2897
|
}
|
|
2678
2898
|
}
|
|
2679
2899
|
if (typeof d2 !== "undefined" && typeof costs[d2] === "undefined") {
|
|
2680
|
-
var msg = ["Could not find a path from ",
|
|
2900
|
+
var msg = ["Could not find a path from ", s3, " to ", d2, "."].join("");
|
|
2681
2901
|
throw new Error(msg);
|
|
2682
2902
|
}
|
|
2683
2903
|
return predecessors;
|
|
@@ -2693,8 +2913,8 @@ function requireDijkstra() {
|
|
|
2693
2913
|
nodes.reverse();
|
|
2694
2914
|
return nodes;
|
|
2695
2915
|
},
|
|
2696
|
-
find_path: function(graph,
|
|
2697
|
-
var predecessors = dijkstra2.single_source_shortest_paths(graph,
|
|
2916
|
+
find_path: function(graph, s3, d2) {
|
|
2917
|
+
var predecessors = dijkstra2.single_source_shortest_paths(graph, s3, d2);
|
|
2698
2918
|
return dijkstra2.extract_shortest_path_from_predecessor_list(
|
|
2699
2919
|
predecessors,
|
|
2700
2920
|
d2
|
|
@@ -2787,8 +3007,8 @@ function requireSegments() {
|
|
|
2787
3007
|
kanjiSegs = [];
|
|
2788
3008
|
}
|
|
2789
3009
|
const segs = numSegs.concat(alphaNumSegs, byteSegs, kanjiSegs);
|
|
2790
|
-
return segs.sort(function(s1,
|
|
2791
|
-
return s1.index -
|
|
3010
|
+
return segs.sort(function(s1, s22) {
|
|
3011
|
+
return s1.index - s22.index;
|
|
2792
3012
|
}).map(function(obj) {
|
|
2793
3013
|
return {
|
|
2794
3014
|
data: obj.data,
|
|
@@ -2822,8 +3042,8 @@ function requireSegments() {
|
|
|
2822
3042
|
}
|
|
2823
3043
|
function buildNodes(segs) {
|
|
2824
3044
|
const nodes = [];
|
|
2825
|
-
for (let
|
|
2826
|
-
const seg = segs[
|
|
3045
|
+
for (let i3 = 0; i3 < segs.length; i3++) {
|
|
3046
|
+
const seg = segs[i3];
|
|
2827
3047
|
switch (seg.mode) {
|
|
2828
3048
|
case Mode.NUMERIC:
|
|
2829
3049
|
nodes.push([
|
|
@@ -2856,12 +3076,12 @@ function requireSegments() {
|
|
|
2856
3076
|
const table = {};
|
|
2857
3077
|
const graph = { start: {} };
|
|
2858
3078
|
let prevNodeIds = ["start"];
|
|
2859
|
-
for (let
|
|
2860
|
-
const nodeGroup = nodes[
|
|
3079
|
+
for (let i3 = 0; i3 < nodes.length; i3++) {
|
|
3080
|
+
const nodeGroup = nodes[i3];
|
|
2861
3081
|
const currentNodeIds = [];
|
|
2862
|
-
for (let
|
|
2863
|
-
const node = nodeGroup[
|
|
2864
|
-
const key = "" +
|
|
3082
|
+
for (let j2 = 0; j2 < nodeGroup.length; j2++) {
|
|
3083
|
+
const node = nodeGroup[j2];
|
|
3084
|
+
const key = "" + i3 + j2;
|
|
2865
3085
|
currentNodeIds.push(key);
|
|
2866
3086
|
table[key] = { node, lastCount: 0 };
|
|
2867
3087
|
graph[key] = {};
|
|
@@ -2920,8 +3140,8 @@ function requireSegments() {
|
|
|
2920
3140
|
const graph = buildGraph(nodes, version2);
|
|
2921
3141
|
const path = dijkstra2.find_path(graph.map, "start", "end");
|
|
2922
3142
|
const optimizedSegs = [];
|
|
2923
|
-
for (let
|
|
2924
|
-
optimizedSegs.push(graph.table[path[
|
|
3143
|
+
for (let i3 = 1; i3 < path.length - 1; i3++) {
|
|
3144
|
+
optimizedSegs.push(graph.table[path[i3]].node);
|
|
2925
3145
|
}
|
|
2926
3146
|
return exports.fromArray(mergeSegments(optimizedSegs));
|
|
2927
3147
|
};
|
|
@@ -2953,9 +3173,9 @@ function requireQrcode() {
|
|
|
2953
3173
|
function setupFinderPattern(matrix, version2) {
|
|
2954
3174
|
const size = matrix.size;
|
|
2955
3175
|
const pos = FinderPattern.getPositions(version2);
|
|
2956
|
-
for (let
|
|
2957
|
-
const row = pos[
|
|
2958
|
-
const col = pos[
|
|
3176
|
+
for (let i3 = 0; i3 < pos.length; i3++) {
|
|
3177
|
+
const row = pos[i3][0];
|
|
3178
|
+
const col = pos[i3][1];
|
|
2959
3179
|
for (let r2 = -1; r2 <= 7; r2++) {
|
|
2960
3180
|
if (row + r2 <= -1 || size <= row + r2) continue;
|
|
2961
3181
|
for (let c2 = -1; c2 <= 7; c2++) {
|
|
@@ -2979,9 +3199,9 @@ function requireQrcode() {
|
|
|
2979
3199
|
}
|
|
2980
3200
|
function setupAlignmentPattern(matrix, version2) {
|
|
2981
3201
|
const pos = AlignmentPattern.getPositions(version2);
|
|
2982
|
-
for (let
|
|
2983
|
-
const row = pos[
|
|
2984
|
-
const col = pos[
|
|
3202
|
+
for (let i3 = 0; i3 < pos.length; i3++) {
|
|
3203
|
+
const row = pos[i3][0];
|
|
3204
|
+
const col = pos[i3][1];
|
|
2985
3205
|
for (let r2 = -2; r2 <= 2; r2++) {
|
|
2986
3206
|
for (let c2 = -2; c2 <= 2; c2++) {
|
|
2987
3207
|
if (r2 === -2 || r2 === 2 || c2 === -2 || c2 === 2 || r2 === 0 && c2 === 0) {
|
|
@@ -2997,10 +3217,10 @@ function requireQrcode() {
|
|
|
2997
3217
|
const size = matrix.size;
|
|
2998
3218
|
const bits = Version.getEncodedBits(version2);
|
|
2999
3219
|
let row, col, mod;
|
|
3000
|
-
for (let
|
|
3001
|
-
row = Math.floor(
|
|
3002
|
-
col =
|
|
3003
|
-
mod = (bits >>
|
|
3220
|
+
for (let i3 = 0; i3 < 18; i3++) {
|
|
3221
|
+
row = Math.floor(i3 / 3);
|
|
3222
|
+
col = i3 % 3 + size - 8 - 3;
|
|
3223
|
+
mod = (bits >> i3 & 1) === 1;
|
|
3004
3224
|
matrix.set(row, col, mod, true);
|
|
3005
3225
|
matrix.set(col, row, mod, true);
|
|
3006
3226
|
}
|
|
@@ -3008,22 +3228,22 @@ function requireQrcode() {
|
|
|
3008
3228
|
function setupFormatInfo(matrix, errorCorrectionLevel2, maskPattern2) {
|
|
3009
3229
|
const size = matrix.size;
|
|
3010
3230
|
const bits = FormatInfo.getEncodedBits(errorCorrectionLevel2, maskPattern2);
|
|
3011
|
-
let
|
|
3012
|
-
for (
|
|
3013
|
-
mod = (bits >>
|
|
3014
|
-
if (
|
|
3015
|
-
matrix.set(
|
|
3016
|
-
} else if (
|
|
3017
|
-
matrix.set(
|
|
3231
|
+
let i3, mod;
|
|
3232
|
+
for (i3 = 0; i3 < 15; i3++) {
|
|
3233
|
+
mod = (bits >> i3 & 1) === 1;
|
|
3234
|
+
if (i3 < 6) {
|
|
3235
|
+
matrix.set(i3, 8, mod, true);
|
|
3236
|
+
} else if (i3 < 8) {
|
|
3237
|
+
matrix.set(i3 + 1, 8, mod, true);
|
|
3018
3238
|
} else {
|
|
3019
|
-
matrix.set(size - 15 +
|
|
3239
|
+
matrix.set(size - 15 + i3, 8, mod, true);
|
|
3020
3240
|
}
|
|
3021
|
-
if (
|
|
3022
|
-
matrix.set(8, size -
|
|
3023
|
-
} else if (
|
|
3024
|
-
matrix.set(8, 15 -
|
|
3241
|
+
if (i3 < 8) {
|
|
3242
|
+
matrix.set(8, size - i3 - 1, mod, true);
|
|
3243
|
+
} else if (i3 < 9) {
|
|
3244
|
+
matrix.set(8, 15 - i3 - 1 + 1, mod, true);
|
|
3025
3245
|
} else {
|
|
3026
|
-
matrix.set(8, 15 -
|
|
3246
|
+
matrix.set(8, 15 - i3 - 1, mod, true);
|
|
3027
3247
|
}
|
|
3028
3248
|
}
|
|
3029
3249
|
matrix.set(size - 8, 8, 1, true);
|
|
@@ -3077,8 +3297,8 @@ function requireQrcode() {
|
|
|
3077
3297
|
buffer.putBit(0);
|
|
3078
3298
|
}
|
|
3079
3299
|
const remainingByte = (dataTotalCodewordsBits - buffer.getLengthInBits()) / 8;
|
|
3080
|
-
for (let
|
|
3081
|
-
buffer.put(
|
|
3300
|
+
for (let i3 = 0; i3 < remainingByte; i3++) {
|
|
3301
|
+
buffer.put(i3 % 2 ? 17 : 236, 8);
|
|
3082
3302
|
}
|
|
3083
3303
|
return createCodewords(buffer, version2, errorCorrectionLevel2);
|
|
3084
3304
|
}
|
|
@@ -3108,17 +3328,17 @@ function requireQrcode() {
|
|
|
3108
3328
|
}
|
|
3109
3329
|
const data2 = new Uint8Array(totalCodewords);
|
|
3110
3330
|
let index = 0;
|
|
3111
|
-
let
|
|
3112
|
-
for (
|
|
3331
|
+
let i3, r2;
|
|
3332
|
+
for (i3 = 0; i3 < maxDataSize; i3++) {
|
|
3113
3333
|
for (r2 = 0; r2 < ecTotalBlocks; r2++) {
|
|
3114
|
-
if (
|
|
3115
|
-
data2[index++] = dcData[r2][
|
|
3334
|
+
if (i3 < dcData[r2].length) {
|
|
3335
|
+
data2[index++] = dcData[r2][i3];
|
|
3116
3336
|
}
|
|
3117
3337
|
}
|
|
3118
3338
|
}
|
|
3119
|
-
for (
|
|
3339
|
+
for (i3 = 0; i3 < ecCount; i3++) {
|
|
3120
3340
|
for (r2 = 0; r2 < ecTotalBlocks; r2++) {
|
|
3121
|
-
data2[index++] = ecData[r2][
|
|
3341
|
+
data2[index++] = ecData[r2][i3];
|
|
3122
3342
|
}
|
|
3123
3343
|
}
|
|
3124
3344
|
return data2;
|
|
@@ -3259,13 +3479,13 @@ function requireUtils() {
|
|
|
3259
3479
|
const symbolSize = Math.floor((size + opts.margin * 2) * scale);
|
|
3260
3480
|
const scaledMargin = opts.margin * scale;
|
|
3261
3481
|
const palette = [opts.color.light, opts.color.dark];
|
|
3262
|
-
for (let
|
|
3263
|
-
for (let
|
|
3264
|
-
let posDst = (
|
|
3482
|
+
for (let i3 = 0; i3 < symbolSize; i3++) {
|
|
3483
|
+
for (let j2 = 0; j2 < symbolSize; j2++) {
|
|
3484
|
+
let posDst = (i3 * symbolSize + j2) * 4;
|
|
3265
3485
|
let pxColor = opts.color.light;
|
|
3266
|
-
if (
|
|
3267
|
-
const iSrc = Math.floor((
|
|
3268
|
-
const jSrc = Math.floor((
|
|
3486
|
+
if (i3 >= scaledMargin && j2 >= scaledMargin && i3 < symbolSize - scaledMargin && j2 < symbolSize - scaledMargin) {
|
|
3487
|
+
const iSrc = Math.floor((i3 - scaledMargin) / scale);
|
|
3488
|
+
const jSrc = Math.floor((j2 - scaledMargin) / scale);
|
|
3269
3489
|
pxColor = palette[data2[iSrc * size + jSrc] ? 1 : 0];
|
|
3270
3490
|
}
|
|
3271
3491
|
imgData[posDst++] = pxColor.r;
|
|
@@ -3354,18 +3574,18 @@ function requireSvgTag() {
|
|
|
3354
3574
|
let moveBy = 0;
|
|
3355
3575
|
let newRow = false;
|
|
3356
3576
|
let lineLength = 0;
|
|
3357
|
-
for (let
|
|
3358
|
-
const col = Math.floor(
|
|
3359
|
-
const row = Math.floor(
|
|
3577
|
+
for (let i3 = 0; i3 < data2.length; i3++) {
|
|
3578
|
+
const col = Math.floor(i3 % size);
|
|
3579
|
+
const row = Math.floor(i3 / size);
|
|
3360
3580
|
if (!col && !newRow) newRow = true;
|
|
3361
|
-
if (data2[
|
|
3581
|
+
if (data2[i3]) {
|
|
3362
3582
|
lineLength++;
|
|
3363
|
-
if (!(
|
|
3583
|
+
if (!(i3 > 0 && col > 0 && data2[i3 - 1])) {
|
|
3364
3584
|
path += newRow ? svgCmd("M", col + margin, 0.5 + row + margin) : svgCmd("m", moveBy, 0);
|
|
3365
3585
|
moveBy = 0;
|
|
3366
3586
|
newRow = false;
|
|
3367
3587
|
}
|
|
3368
|
-
if (!(col + 1 < size && data2[
|
|
3588
|
+
if (!(col + 1 < size && data2[i3 + 1])) {
|
|
3369
3589
|
path += svgCmd("h", lineLength);
|
|
3370
3590
|
lineLength = 0;
|
|
3371
3591
|
}
|
|
@@ -3573,21 +3793,21 @@ const ThemeUtil = {
|
|
|
3573
3793
|
Object.entries(variables).forEach(([key, val]) => root.style.setProperty(key, val));
|
|
3574
3794
|
}
|
|
3575
3795
|
},
|
|
3576
|
-
globalCss: i$
|
|
3796
|
+
globalCss: i$4`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent;transition:all .2s ease}@media (hover:hover) and (pointer:fine){button:active{transition:all .1s ease;transform:scale(.93)}}button::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button wcm-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--wcm-accent-fill-color);background:var(--wcm-accent-color)}`
|
|
3577
3797
|
};
|
|
3578
|
-
const styles$t = i$
|
|
3798
|
+
const styles$t = i$4`button{border-radius:var(--wcm-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--wcm-accent-color)}button path{fill:var(--wcm-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--wcm-color-overlay)}button:disabled::after{background-color:transparent}.wcm-icon-left svg{margin-right:5px}.wcm-icon-right svg{margin-left:5px}button:active::after{background-color:var(--wcm-color-overlay)}.wcm-ghost,.wcm-ghost:active::after,.wcm-outline{background-color:transparent}.wcm-ghost:active{opacity:.5}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}.wcm-ghost:hover::after{background-color:transparent}.wcm-ghost:hover{opacity:.5}}button:disabled{background-color:var(--wcm-color-bg-3);pointer-events:none}.wcm-ghost::after{border-color:transparent}.wcm-ghost path{fill:var(--wcm-color-fg-2)}.wcm-outline path{fill:var(--wcm-accent-color)}.wcm-outline:disabled{background-color:transparent;opacity:.5}`;
|
|
3579
3799
|
var __defProp$x = Object.defineProperty;
|
|
3580
3800
|
var __getOwnPropDesc$x = Object.getOwnPropertyDescriptor;
|
|
3581
3801
|
var __decorateClass$x = (decorators, target, key, kind) => {
|
|
3582
3802
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$x(target, key) : target;
|
|
3583
|
-
for (var
|
|
3584
|
-
if (decorator = decorators[
|
|
3803
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
3804
|
+
if (decorator = decorators[i3])
|
|
3585
3805
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3586
3806
|
if (kind && result)
|
|
3587
3807
|
__defProp$x(target, key, result);
|
|
3588
3808
|
return result;
|
|
3589
3809
|
};
|
|
3590
|
-
let WcmButton = class extends s {
|
|
3810
|
+
let WcmButton = class extends s$1 {
|
|
3591
3811
|
constructor() {
|
|
3592
3812
|
super(...arguments);
|
|
3593
3813
|
this.disabled = false;
|
|
@@ -3611,41 +3831,41 @@ let WcmButton = class extends s {
|
|
|
3611
3831
|
if (this.variant === "outline") {
|
|
3612
3832
|
textColor = "accent";
|
|
3613
3833
|
}
|
|
3614
|
-
return x`<button class="${
|
|
3834
|
+
return x`<button class="${o$1(classes)}" ?disabled="${this.disabled}" @click="${this.onClick}">${this.iconLeft}<wcm-text variant="small-regular" color="${textColor}"><slot></slot></wcm-text>${this.iconRight}</button>`;
|
|
3615
3835
|
}
|
|
3616
3836
|
};
|
|
3617
3837
|
WcmButton.styles = [ThemeUtil.globalCss, styles$t];
|
|
3618
3838
|
__decorateClass$x([
|
|
3619
|
-
n$
|
|
3839
|
+
n$2({ type: Boolean })
|
|
3620
3840
|
], WcmButton.prototype, "disabled", 2);
|
|
3621
3841
|
__decorateClass$x([
|
|
3622
|
-
n$
|
|
3842
|
+
n$2()
|
|
3623
3843
|
], WcmButton.prototype, "iconLeft", 2);
|
|
3624
3844
|
__decorateClass$x([
|
|
3625
|
-
n$
|
|
3845
|
+
n$2()
|
|
3626
3846
|
], WcmButton.prototype, "iconRight", 2);
|
|
3627
3847
|
__decorateClass$x([
|
|
3628
|
-
n$
|
|
3848
|
+
n$2()
|
|
3629
3849
|
], WcmButton.prototype, "onClick", 2);
|
|
3630
3850
|
__decorateClass$x([
|
|
3631
|
-
n$
|
|
3851
|
+
n$2()
|
|
3632
3852
|
], WcmButton.prototype, "variant", 2);
|
|
3633
3853
|
WcmButton = __decorateClass$x([
|
|
3634
|
-
e$
|
|
3854
|
+
e$3("wcm-button")
|
|
3635
3855
|
], WcmButton);
|
|
3636
|
-
const styles$s = i$
|
|
3856
|
+
const styles$s = i$4`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--wcm-button-border-radius);color:var(--wcm-accent-fill-color);background-color:var(--wcm-accent-color)}button::after{content:'';top:0;bottom:0;left:0;right:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--wcm-color-overlay)}button:active::after{background-color:var(--wcm-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--wcm-color-bg-3);color:var(--wcm-color-fg-3)}.wcm-secondary{color:var(--wcm-accent-color);background-color:transparent}.wcm-secondary::after{display:none}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}}`;
|
|
3637
3857
|
var __defProp$w = Object.defineProperty;
|
|
3638
3858
|
var __getOwnPropDesc$w = Object.getOwnPropertyDescriptor;
|
|
3639
3859
|
var __decorateClass$w = (decorators, target, key, kind) => {
|
|
3640
3860
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$w(target, key) : target;
|
|
3641
|
-
for (var
|
|
3642
|
-
if (decorator = decorators[
|
|
3861
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
3862
|
+
if (decorator = decorators[i3])
|
|
3643
3863
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3644
3864
|
if (kind && result)
|
|
3645
3865
|
__defProp$w(target, key, result);
|
|
3646
3866
|
return result;
|
|
3647
3867
|
};
|
|
3648
|
-
let WcmButtonBig = class extends s {
|
|
3868
|
+
let WcmButtonBig = class extends s$1 {
|
|
3649
3869
|
constructor() {
|
|
3650
3870
|
super(...arguments);
|
|
3651
3871
|
this.disabled = false;
|
|
@@ -3656,29 +3876,29 @@ let WcmButtonBig = class extends s {
|
|
|
3656
3876
|
const classes = {
|
|
3657
3877
|
"wcm-secondary": this.variant === "secondary"
|
|
3658
3878
|
};
|
|
3659
|
-
return x`<button ?disabled="${this.disabled}" class="${
|
|
3879
|
+
return x`<button ?disabled="${this.disabled}" class="${o$1(classes)}"><slot></slot></button>`;
|
|
3660
3880
|
}
|
|
3661
3881
|
};
|
|
3662
3882
|
WcmButtonBig.styles = [ThemeUtil.globalCss, styles$s];
|
|
3663
3883
|
__decorateClass$w([
|
|
3664
|
-
n$
|
|
3884
|
+
n$2({ type: Boolean })
|
|
3665
3885
|
], WcmButtonBig.prototype, "disabled", 2);
|
|
3666
3886
|
__decorateClass$w([
|
|
3667
|
-
n$
|
|
3887
|
+
n$2()
|
|
3668
3888
|
], WcmButtonBig.prototype, "variant", 2);
|
|
3669
3889
|
WcmButtonBig = __decorateClass$w([
|
|
3670
|
-
e$
|
|
3890
|
+
e$3("wcm-button-big")
|
|
3671
3891
|
], WcmButtonBig);
|
|
3672
|
-
const styles$r = i$
|
|
3892
|
+
const styles$r = i$4`:host{background-color:var(--wcm-color-bg-2);border-top:1px solid var(--wcm-color-bg-3)}div{padding:10px 20px;display:inherit;flex-direction:inherit;align-items:inherit;width:inherit;justify-content:inherit}`;
|
|
3673
3893
|
var __getOwnPropDesc$v = Object.getOwnPropertyDescriptor;
|
|
3674
3894
|
var __decorateClass$v = (decorators, target, key, kind) => {
|
|
3675
3895
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$v(target, key) : target;
|
|
3676
|
-
for (var
|
|
3677
|
-
if (decorator = decorators[
|
|
3896
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
3897
|
+
if (decorator = decorators[i3])
|
|
3678
3898
|
result = decorator(result) || result;
|
|
3679
3899
|
return result;
|
|
3680
3900
|
};
|
|
3681
|
-
let WcmInfoFooter = class extends s {
|
|
3901
|
+
let WcmInfoFooter = class extends s$1 {
|
|
3682
3902
|
// -- render ------------------------------------------------------- //
|
|
3683
3903
|
render() {
|
|
3684
3904
|
return x`<div><slot></slot></div>`;
|
|
@@ -3686,7 +3906,7 @@ let WcmInfoFooter = class extends s {
|
|
|
3686
3906
|
};
|
|
3687
3907
|
WcmInfoFooter.styles = [ThemeUtil.globalCss, styles$r];
|
|
3688
3908
|
WcmInfoFooter = __decorateClass$v([
|
|
3689
|
-
e$
|
|
3909
|
+
e$3("wcm-info-footer")
|
|
3690
3910
|
], WcmInfoFooter);
|
|
3691
3911
|
const SvgUtil = {
|
|
3692
3912
|
CROSS_ICON: b`<svg width="12" height="12" viewBox="0 0 12 12"><path d="M9.94 11A.75.75 0 1 0 11 9.94L7.414 6.353a.5.5 0 0 1 0-.708L11 2.061A.75.75 0 1 0 9.94 1L6.353 4.586a.5.5 0 0 1-.708 0L2.061 1A.75.75 0 0 0 1 2.06l3.586 3.586a.5.5 0 0 1 0 .708L1 9.939A.75.75 0 1 0 2.06 11l3.586-3.586a.5.5 0 0 1 .708 0L9.939 11Z" fill="#fff"/></svg>`,
|
|
@@ -3708,16 +3928,16 @@ const SvgUtil = {
|
|
|
3708
3928
|
WALLET_PLACEHOLDER: b`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><g clip-path="url(#q)"><path id="wallet-placeholder-fill" fill="#fff" d="M0 24.9c0-9.251 0-13.877 1.97-17.332a15 15 0 0 1 5.598-5.597C11.023 0 15.648 0 24.9 0h10.2c9.252 0 13.877 0 17.332 1.97a15 15 0 0 1 5.597 5.598C60 11.023 60 15.648 60 24.9v10.2c0 9.252 0 13.877-1.97 17.332a15.001 15.001 0 0 1-5.598 5.597C48.977 60 44.352 60 35.1 60H24.9c-9.251 0-13.877 0-17.332-1.97a15 15 0 0 1-5.597-5.598C0 48.977 0 44.352 0 35.1V24.9Z"/><path id="wallet-placeholder-dash" stroke="#000" stroke-dasharray="4 4" stroke-width="1.5" d="M.04 41.708a231.598 231.598 0 0 1-.039-4.403l.75-.001L.75 35.1v-2.55H0v-5.1h.75V24.9l.001-2.204h-.75c.003-1.617.011-3.077.039-4.404l.75.016c.034-1.65.099-3.08.218-4.343l-.746-.07c.158-1.678.412-3.083.82-4.316l.713.236c.224-.679.497-1.296.827-1.875a14.25 14.25 0 0 1 1.05-1.585L3.076 5.9A15 15 0 0 1 5.9 3.076l.455.596a14.25 14.25 0 0 1 1.585-1.05c.579-.33 1.196-.603 1.875-.827l-.236-.712C10.812.674 12.217.42 13.895.262l.07.746C15.23.89 16.66.824 18.308.79l-.016-.75C19.62.012 21.08.004 22.695.001l.001.75L24.9.75h2.55V0h5.1v.75h2.55l2.204.001v-.75c1.617.003 3.077.011 4.404.039l-.016.75c1.65.034 3.08.099 4.343.218l.07-.746c1.678.158 3.083.412 4.316.82l-.236.713c.679.224 1.296.497 1.875.827a14.24 14.24 0 0 1 1.585 1.05l.455-.596A14.999 14.999 0 0 1 56.924 5.9l-.596.455c.384.502.735 1.032 1.05 1.585.33.579.602 1.196.827 1.875l.712-.236c.409 1.233.663 2.638.822 4.316l-.747.07c.119 1.264.184 2.694.218 4.343l.75-.016c.028 1.327.036 2.787.039 4.403l-.75.001.001 2.204v2.55H60v5.1h-.75v2.55l-.001 2.204h.75a231.431 231.431 0 0 1-.039 4.404l-.75-.016c-.034 1.65-.099 3.08-.218 4.343l.747.07c-.159 1.678-.413 3.083-.822 4.316l-.712-.236a10.255 10.255 0 0 1-.827 1.875 14.242 14.242 0 0 1-1.05 1.585l.596.455a14.997 14.997 0 0 1-2.824 2.824l-.455-.596c-.502.384-1.032.735-1.585 1.05-.579.33-1.196.602-1.875.827l.236.712c-1.233.409-2.638.663-4.316.822l-.07-.747c-1.264.119-2.694.184-4.343.218l.016.75c-1.327.028-2.787.036-4.403.039l-.001-.75-2.204.001h-2.55V60h-5.1v-.75H24.9l-2.204-.001v.75a231.431 231.431 0 0 1-4.404-.039l.016-.75c-1.65-.034-3.08-.099-4.343-.218l-.07.747c-1.678-.159-3.083-.413-4.316-.822l.236-.712a10.258 10.258 0 0 1-1.875-.827 14.252 14.252 0 0 1-1.585-1.05l-.455.596A14.999 14.999 0 0 1 3.076 54.1l.596-.455a14.24 14.24 0 0 1-1.05-1.585 10.259 10.259 0 0 1-.827-1.875l-.712.236C.674 49.188.42 47.783.262 46.105l.746-.07C.89 44.77.824 43.34.79 41.692l-.75.016Z"/><path fill="#fff" fill-rule="evenodd" d="M35.643 32.145c-.297-.743-.445-1.114-.401-1.275a.42.42 0 0 1 .182-.27c.134-.1.463-.1 1.123-.1.742 0 1.499.046 2.236-.05a6 6 0 0 0 5.166-5.166c.051-.39.051-.855.051-1.784 0-.928 0-1.393-.051-1.783a6 6 0 0 0-5.166-5.165c-.39-.052-.854-.052-1.783-.052h-7.72c-4.934 0-7.401 0-9.244 1.051a8 8 0 0 0-2.985 2.986C16.057 22.28 16.003 24.58 16 29 15.998 31.075 16 33.15 16 35.224A7.778 7.778 0 0 0 23.778 43H28.5c1.394 0 2.09 0 2.67-.116a6 6 0 0 0 4.715-4.714c.115-.58.115-1.301.115-2.744 0-1.31 0-1.964-.114-2.49a4.998 4.998 0 0 0-.243-.792Z" clip-rule="evenodd"/><path fill="#9EA9A9" fill-rule="evenodd" d="M37 18h-7.72c-2.494 0-4.266.002-5.647.126-1.361.122-2.197.354-2.854.728a6.5 6.5 0 0 0-2.425 2.426c-.375.657-.607 1.492-.729 2.853-.11 1.233-.123 2.777-.125 4.867 0 .7 0 1.05.097 1.181.096.13.182.181.343.2.163.02.518-.18 1.229-.581a6.195 6.195 0 0 1 3.053-.8H37c.977 0 1.32-.003 1.587-.038a4.5 4.5 0 0 0 3.874-3.874c.036-.268.039-.611.039-1.588 0-.976-.003-1.319-.038-1.587a4.5 4.5 0 0 0-3.875-3.874C38.32 18.004 37.977 18 37 18Zm-7.364 12.5h-7.414a4.722 4.722 0 0 0-4.722 4.723 6.278 6.278 0 0 0 6.278 6.278H28.5c1.466 0 1.98-.008 2.378-.087a4.5 4.5 0 0 0 3.535-3.536c.08-.397.087-.933.087-2.451 0-1.391-.009-1.843-.08-2.17a3.5 3.5 0 0 0-2.676-2.676c-.328-.072-.762-.08-2.108-.08Z" clip-rule="evenodd"/></g><defs><clipPath id="q"><path fill="#fff" d="M0 0h60v60H0z"/></clipPath></defs></svg>`,
|
|
3709
3929
|
GLOBE_ICON: b`<svg width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="#fff" fill-rule="evenodd" d="M15.5 8a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0Zm-2.113.75c.301 0 .535.264.47.558a6.01 6.01 0 0 1-2.867 3.896c-.203.116-.42-.103-.334-.32.409-1.018.691-2.274.797-3.657a.512.512 0 0 1 .507-.477h1.427Zm.47-2.058c.065.294-.169.558-.47.558H11.96a.512.512 0 0 1-.507-.477c-.106-1.383-.389-2.638-.797-3.656-.087-.217.13-.437.333-.32a6.01 6.01 0 0 1 2.868 3.895Zm-4.402.558c.286 0 .515-.24.49-.525-.121-1.361-.429-2.534-.83-3.393-.279-.6-.549-.93-.753-1.112a.535.535 0 0 0-.724 0c-.204.182-.474.513-.754 1.112-.4.859-.708 2.032-.828 3.393a.486.486 0 0 0 .49.525h2.909Zm-5.415 0c.267 0 .486-.21.507-.477.106-1.383.389-2.638.797-3.656.087-.217-.13-.437-.333-.32a6.01 6.01 0 0 0-2.868 3.895c-.065.294.169.558.47.558H4.04ZM2.143 9.308c-.065-.294.169-.558.47-.558H4.04c.267 0 .486.21.507.477.106 1.383.389 2.639.797 3.657.087.217-.13.436-.333.32a6.01 6.01 0 0 1-2.868-3.896Zm3.913-.033a.486.486 0 0 1 .49-.525h2.909c.286 0 .515.24.49.525-.121 1.361-.428 2.535-.83 3.394-.279.6-.549.93-.753 1.112a.535.535 0 0 1-.724 0c-.204-.182-.474-.513-.754-1.112-.4-.859-.708-2.033-.828-3.394Z" clip-rule="evenodd"/></svg>`
|
|
3710
3930
|
};
|
|
3711
|
-
const styles$q = i$
|
|
3931
|
+
const styles$q = i$4`.wcm-toolbar-placeholder{top:0;bottom:0;left:0;right:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--wcm-background-border-radius) * .9);background-color:var(--wcm-background-color);background-position:center;background-size:cover}.wcm-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.wcm-toolbar img,.wcm-toolbar svg{height:28px;object-position:left center;object-fit:contain}#wcm-wc-logo path{fill:var(--wcm-accent-fill-color)}button{width:28px;height:28px;border-radius:var(--wcm-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--wcm-color-bg-1);box-shadow:0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-bg-2)}button svg{display:block;object-position:center}button path{fill:var(--wcm-color-fg-1)}.wcm-toolbar div{display:flex}@media(hover:hover){button:hover{background-color:var(--wcm-color-bg-2)}}`;
|
|
3712
3932
|
var __getOwnPropDesc$u = Object.getOwnPropertyDescriptor;
|
|
3713
3933
|
var __decorateClass$u = (decorators, target, key, kind) => {
|
|
3714
3934
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$u(target, key) : target;
|
|
3715
|
-
for (var
|
|
3716
|
-
if (decorator = decorators[
|
|
3935
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
3936
|
+
if (decorator = decorators[i3])
|
|
3717
3937
|
result = decorator(result) || result;
|
|
3718
3938
|
return result;
|
|
3719
3939
|
};
|
|
3720
|
-
let WcmModalBackcard = class extends s {
|
|
3940
|
+
let WcmModalBackcard = class extends s$1 {
|
|
3721
3941
|
// -- render ------------------------------------------------------- //
|
|
3722
3942
|
render() {
|
|
3723
3943
|
return x`<div class="wcm-toolbar-placeholder"></div><div class="wcm-toolbar">${SvgUtil.WALLET_CONNECT_LOGO} <button @click="${ModalCtrl.close}">${SvgUtil.CROSS_ICON}</button></div>`;
|
|
@@ -3725,18 +3945,18 @@ let WcmModalBackcard = class extends s {
|
|
|
3725
3945
|
};
|
|
3726
3946
|
WcmModalBackcard.styles = [ThemeUtil.globalCss, styles$q];
|
|
3727
3947
|
WcmModalBackcard = __decorateClass$u([
|
|
3728
|
-
e$
|
|
3948
|
+
e$3("wcm-modal-backcard")
|
|
3729
3949
|
], WcmModalBackcard);
|
|
3730
|
-
const styles$p = i$
|
|
3950
|
+
const styles$p = i$4`main{padding:20px;padding-top:0;width:100%}`;
|
|
3731
3951
|
var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
|
|
3732
3952
|
var __decorateClass$t = (decorators, target, key, kind) => {
|
|
3733
3953
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$t(target, key) : target;
|
|
3734
|
-
for (var
|
|
3735
|
-
if (decorator = decorators[
|
|
3954
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
3955
|
+
if (decorator = decorators[i3])
|
|
3736
3956
|
result = decorator(result) || result;
|
|
3737
3957
|
return result;
|
|
3738
3958
|
};
|
|
3739
|
-
let WcmModalContent = class extends s {
|
|
3959
|
+
let WcmModalContent = class extends s$1 {
|
|
3740
3960
|
// -- render ------------------------------------------------------- //
|
|
3741
3961
|
render() {
|
|
3742
3962
|
return x`<main><slot></slot></main>`;
|
|
@@ -3744,18 +3964,18 @@ let WcmModalContent = class extends s {
|
|
|
3744
3964
|
};
|
|
3745
3965
|
WcmModalContent.styles = [ThemeUtil.globalCss, styles$p];
|
|
3746
3966
|
WcmModalContent = __decorateClass$t([
|
|
3747
|
-
e$
|
|
3967
|
+
e$3("wcm-modal-content")
|
|
3748
3968
|
], WcmModalContent);
|
|
3749
|
-
const styles$o = i$
|
|
3969
|
+
const styles$o = i$4`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--wcm-color-bg-2)}`;
|
|
3750
3970
|
var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
|
|
3751
3971
|
var __decorateClass$s = (decorators, target, key, kind) => {
|
|
3752
3972
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$s(target, key) : target;
|
|
3753
|
-
for (var
|
|
3754
|
-
if (decorator = decorators[
|
|
3973
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
3974
|
+
if (decorator = decorators[i3])
|
|
3755
3975
|
result = decorator(result) || result;
|
|
3756
3976
|
return result;
|
|
3757
3977
|
};
|
|
3758
|
-
let WcmModalFooter = class extends s {
|
|
3978
|
+
let WcmModalFooter = class extends s$1 {
|
|
3759
3979
|
// -- render ------------------------------------------------------- //
|
|
3760
3980
|
render() {
|
|
3761
3981
|
return x`<footer><slot></slot></footer>`;
|
|
@@ -3763,21 +3983,21 @@ let WcmModalFooter = class extends s {
|
|
|
3763
3983
|
};
|
|
3764
3984
|
WcmModalFooter.styles = [ThemeUtil.globalCss, styles$o];
|
|
3765
3985
|
WcmModalFooter = __decorateClass$s([
|
|
3766
|
-
e$
|
|
3986
|
+
e$3("wcm-modal-footer")
|
|
3767
3987
|
], WcmModalFooter);
|
|
3768
|
-
const styles$n = i$
|
|
3988
|
+
const styles$n = i$4`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.wcm-border{border-bottom:1px solid var(--wcm-color-bg-2);margin-bottom:20px}header button{padding:15px 20px}header button:active{opacity:.5}@media(hover:hover){header button:hover{opacity:.5}}.wcm-back-btn{position:absolute;left:0}.wcm-action-btn{position:absolute;right:0}path{fill:var(--wcm-accent-color)}`;
|
|
3769
3989
|
var __defProp$r = Object.defineProperty;
|
|
3770
3990
|
var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
|
|
3771
3991
|
var __decorateClass$r = (decorators, target, key, kind) => {
|
|
3772
3992
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
|
|
3773
|
-
for (var
|
|
3774
|
-
if (decorator = decorators[
|
|
3993
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
3994
|
+
if (decorator = decorators[i3])
|
|
3775
3995
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3776
3996
|
if (kind && result)
|
|
3777
3997
|
__defProp$r(target, key, result);
|
|
3778
3998
|
return result;
|
|
3779
3999
|
};
|
|
3780
|
-
let WcmModalHeader = class extends s {
|
|
4000
|
+
let WcmModalHeader = class extends s$1 {
|
|
3781
4001
|
constructor() {
|
|
3782
4002
|
super(...arguments);
|
|
3783
4003
|
this.title = "";
|
|
@@ -3799,24 +4019,24 @@ let WcmModalHeader = class extends s {
|
|
|
3799
4019
|
};
|
|
3800
4020
|
const backBtn = RouterCtrl.state.history.length > 1;
|
|
3801
4021
|
const content = this.title ? x`<wcm-text variant="big-bold">${this.title}</wcm-text>` : x`<slot></slot>`;
|
|
3802
|
-
return x`<header class="${
|
|
4022
|
+
return x`<header class="${o$1(classes)}">${backBtn ? this.backBtnTemplate() : null} ${content} ${this.onAction ? this.actionBtnTemplate() : null}</header>`;
|
|
3803
4023
|
}
|
|
3804
4024
|
};
|
|
3805
4025
|
WcmModalHeader.styles = [ThemeUtil.globalCss, styles$n];
|
|
3806
4026
|
__decorateClass$r([
|
|
3807
|
-
n$
|
|
4027
|
+
n$2()
|
|
3808
4028
|
], WcmModalHeader.prototype, "title", 2);
|
|
3809
4029
|
__decorateClass$r([
|
|
3810
|
-
n$
|
|
4030
|
+
n$2()
|
|
3811
4031
|
], WcmModalHeader.prototype, "onAction", 2);
|
|
3812
4032
|
__decorateClass$r([
|
|
3813
|
-
n$
|
|
4033
|
+
n$2()
|
|
3814
4034
|
], WcmModalHeader.prototype, "actionIcon", 2);
|
|
3815
4035
|
__decorateClass$r([
|
|
3816
|
-
n$
|
|
4036
|
+
n$2({ type: Boolean })
|
|
3817
4037
|
], WcmModalHeader.prototype, "border", 2);
|
|
3818
4038
|
WcmModalHeader = __decorateClass$r([
|
|
3819
|
-
e$
|
|
4039
|
+
e$3("wcm-modal-header")
|
|
3820
4040
|
], WcmModalHeader);
|
|
3821
4041
|
const UiUtil = {
|
|
3822
4042
|
MOBILE_BREAKPOINT: 600,
|
|
@@ -3977,19 +4197,19 @@ const UiUtil = {
|
|
|
3977
4197
|
}
|
|
3978
4198
|
}
|
|
3979
4199
|
};
|
|
3980
|
-
const styles$m = i$
|
|
4200
|
+
const styles$m = i$4`.wcm-router{overflow:hidden;will-change:transform}.wcm-content{display:flex;flex-direction:column}`;
|
|
3981
4201
|
var __defProp$q = Object.defineProperty;
|
|
3982
4202
|
var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
|
|
3983
4203
|
var __decorateClass$q = (decorators, target, key, kind) => {
|
|
3984
4204
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
|
|
3985
|
-
for (var
|
|
3986
|
-
if (decorator = decorators[
|
|
4205
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4206
|
+
if (decorator = decorators[i3])
|
|
3987
4207
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3988
4208
|
if (kind && result)
|
|
3989
4209
|
__defProp$q(target, key, result);
|
|
3990
4210
|
return result;
|
|
3991
4211
|
};
|
|
3992
|
-
let WcmModalRouter = class extends s {
|
|
4212
|
+
let WcmModalRouter = class extends s$1 {
|
|
3993
4213
|
// -- lifecycle ---------------------------------------------------- //
|
|
3994
4214
|
constructor() {
|
|
3995
4215
|
super();
|
|
@@ -4063,27 +4283,27 @@ let WcmModalRouter = class extends s {
|
|
|
4063
4283
|
};
|
|
4064
4284
|
WcmModalRouter.styles = [ThemeUtil.globalCss, styles$m];
|
|
4065
4285
|
__decorateClass$q([
|
|
4066
|
-
t$
|
|
4286
|
+
t$2()
|
|
4067
4287
|
], WcmModalRouter.prototype, "view", 2);
|
|
4068
4288
|
__decorateClass$q([
|
|
4069
|
-
t$
|
|
4289
|
+
t$2()
|
|
4070
4290
|
], WcmModalRouter.prototype, "prevView", 2);
|
|
4071
4291
|
WcmModalRouter = __decorateClass$q([
|
|
4072
|
-
e$
|
|
4292
|
+
e$3("wcm-modal-router")
|
|
4073
4293
|
], WcmModalRouter);
|
|
4074
|
-
const styles$l = i$
|
|
4294
|
+
const styles$l = i$4`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:9px 15px 11px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--wcm-notification-border-radius);border:1px solid var(--wcm-color-overlay);background-color:var(--wcm-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--wcm-color-bg-3)}}.wcm-success path{fill:var(--wcm-accent-color)}.wcm-error path{fill:var(--wcm-error-color)}`;
|
|
4075
4295
|
var __defProp$p = Object.defineProperty;
|
|
4076
4296
|
var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
|
|
4077
4297
|
var __decorateClass$p = (decorators, target, key, kind) => {
|
|
4078
4298
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
|
|
4079
|
-
for (var
|
|
4080
|
-
if (decorator = decorators[
|
|
4299
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4300
|
+
if (decorator = decorators[i3])
|
|
4081
4301
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4082
4302
|
if (kind && result)
|
|
4083
4303
|
__defProp$p(target, key, result);
|
|
4084
4304
|
return result;
|
|
4085
4305
|
};
|
|
4086
|
-
let WcmModalToast = class extends s {
|
|
4306
|
+
let WcmModalToast = class extends s$1 {
|
|
4087
4307
|
constructor() {
|
|
4088
4308
|
super();
|
|
4089
4309
|
this.open = false;
|
|
@@ -4112,15 +4332,15 @@ let WcmModalToast = class extends s {
|
|
|
4112
4332
|
"wcm-success": variant === "success",
|
|
4113
4333
|
"wcm-error": variant === "error"
|
|
4114
4334
|
};
|
|
4115
|
-
return this.open ? x`<div class="${
|
|
4335
|
+
return this.open ? x`<div class="${o$1(classes)}">${variant === "success" ? SvgUtil.CHECKMARK_ICON : null} ${variant === "error" ? SvgUtil.CROSS_ICON : null}<wcm-text variant="small-regular">${message}</wcm-text></div>` : null;
|
|
4116
4336
|
}
|
|
4117
4337
|
};
|
|
4118
4338
|
WcmModalToast.styles = [ThemeUtil.globalCss, styles$l];
|
|
4119
4339
|
__decorateClass$p([
|
|
4120
|
-
t$
|
|
4340
|
+
t$2()
|
|
4121
4341
|
], WcmModalToast.prototype, "open", 2);
|
|
4122
4342
|
WcmModalToast = __decorateClass$p([
|
|
4123
|
-
e$
|
|
4343
|
+
e$3("wcm-modal-toast")
|
|
4124
4344
|
], WcmModalToast);
|
|
4125
4345
|
const CONNECTING_ERROR_MARGIN = 0.1;
|
|
4126
4346
|
const CIRCLE_SIZE_MODIFIER = 2.5;
|
|
@@ -4159,10 +4379,10 @@ const QrCodeUtil = {
|
|
|
4159
4379
|
const x1 = (matrix.length - QRCODE_MATRIX_MARGIN) * cellSize * x2;
|
|
4160
4380
|
const y1 = (matrix.length - QRCODE_MATRIX_MARGIN) * cellSize * y2;
|
|
4161
4381
|
const borderRadius = 0.45;
|
|
4162
|
-
for (let
|
|
4163
|
-
const dotSize = cellSize * (QRCODE_MATRIX_MARGIN -
|
|
4382
|
+
for (let i3 = 0; i3 < qrList.length; i3 += 1) {
|
|
4383
|
+
const dotSize = cellSize * (QRCODE_MATRIX_MARGIN - i3 * 2);
|
|
4164
4384
|
dots.push(
|
|
4165
|
-
b`<rect fill="${
|
|
4385
|
+
b$1`<rect fill="${i3 % 2 === 0 ? dotColor : edgeColor}" height="${dotSize}" rx="${dotSize * borderRadius}" ry="${dotSize * borderRadius}" width="${dotSize}" x="${x1 + cellSize * i3}" y="${y1 + cellSize * i3}">`
|
|
4166
4386
|
);
|
|
4167
4387
|
}
|
|
4168
4388
|
});
|
|
@@ -4170,13 +4390,13 @@ const QrCodeUtil = {
|
|
|
4170
4390
|
const matrixMiddleStart = matrix.length / 2 - clearArenaSize / 2;
|
|
4171
4391
|
const matrixMiddleEnd = matrix.length / 2 + clearArenaSize / 2 - 1;
|
|
4172
4392
|
const circles = [];
|
|
4173
|
-
matrix.forEach((row,
|
|
4174
|
-
row.forEach((_2,
|
|
4175
|
-
if (matrix[
|
|
4176
|
-
if (!(
|
|
4177
|
-
if (!(
|
|
4178
|
-
const cx =
|
|
4179
|
-
const cy =
|
|
4393
|
+
matrix.forEach((row, i3) => {
|
|
4394
|
+
row.forEach((_2, j2) => {
|
|
4395
|
+
if (matrix[i3][j2]) {
|
|
4396
|
+
if (!(i3 < QRCODE_MATRIX_MARGIN && j2 < QRCODE_MATRIX_MARGIN || i3 > matrix.length - (QRCODE_MATRIX_MARGIN + 1) && j2 < QRCODE_MATRIX_MARGIN || i3 < QRCODE_MATRIX_MARGIN && j2 > matrix.length - (QRCODE_MATRIX_MARGIN + 1))) {
|
|
4397
|
+
if (!(i3 > matrixMiddleStart && i3 < matrixMiddleEnd && j2 > matrixMiddleStart && j2 < matrixMiddleEnd)) {
|
|
4398
|
+
const cx = i3 * cellSize + cellSize / 2;
|
|
4399
|
+
const cy = j2 * cellSize + cellSize / 2;
|
|
4180
4400
|
circles.push([cx, cy]);
|
|
4181
4401
|
}
|
|
4182
4402
|
}
|
|
@@ -4199,7 +4419,7 @@ const QrCodeUtil = {
|
|
|
4199
4419
|
}).forEach(([cx, cys]) => {
|
|
4200
4420
|
cys.forEach((cy) => {
|
|
4201
4421
|
dots.push(
|
|
4202
|
-
b`<circle cx="${cx}" cy="${cy}" fill="${dotColor}" r="${cellSize / CIRCLE_SIZE_MODIFIER}">`
|
|
4422
|
+
b$1`<circle cx="${cx}" cy="${cy}" fill="${dotColor}" r="${cellSize / CIRCLE_SIZE_MODIFIER}">`
|
|
4203
4423
|
);
|
|
4204
4424
|
});
|
|
4205
4425
|
});
|
|
@@ -4223,26 +4443,26 @@ const QrCodeUtil = {
|
|
|
4223
4443
|
}).forEach(([cx, groups]) => {
|
|
4224
4444
|
groups.forEach(([y1, y2]) => {
|
|
4225
4445
|
dots.push(
|
|
4226
|
-
b`<line x1="${cx}" x2="${cx}" y1="${y1}" y2="${y2}" stroke="${dotColor}" stroke-width="${cellSize / (CIRCLE_SIZE_MODIFIER / 2)}" stroke-linecap="round">`
|
|
4446
|
+
b$1`<line x1="${cx}" x2="${cx}" y1="${y1}" y2="${y2}" stroke="${dotColor}" stroke-width="${cellSize / (CIRCLE_SIZE_MODIFIER / 2)}" stroke-linecap="round">`
|
|
4227
4447
|
);
|
|
4228
4448
|
});
|
|
4229
4449
|
});
|
|
4230
4450
|
return dots;
|
|
4231
4451
|
}
|
|
4232
4452
|
};
|
|
4233
|
-
const styles$k = i$
|
|
4453
|
+
const styles$k = i$4`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.wcm-dark{background-color:#fff;border-radius:var(--wcm-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,wcm-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{width:25%;height:25%;border-radius:var(--wcm-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--wcm-accent-color)}svg:first-child path:last-child{stroke:var(--wcm-color-overlay)}`;
|
|
4234
4454
|
var __defProp$o = Object.defineProperty;
|
|
4235
4455
|
var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
|
|
4236
4456
|
var __decorateClass$o = (decorators, target, key, kind) => {
|
|
4237
4457
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$o(target, key) : target;
|
|
4238
|
-
for (var
|
|
4239
|
-
if (decorator = decorators[
|
|
4458
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4459
|
+
if (decorator = decorators[i3])
|
|
4240
4460
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4241
4461
|
if (kind && result)
|
|
4242
4462
|
__defProp$o(target, key, result);
|
|
4243
4463
|
return result;
|
|
4244
4464
|
};
|
|
4245
|
-
let WcmQrCode = class extends s {
|
|
4465
|
+
let WcmQrCode = class extends s$1 {
|
|
4246
4466
|
constructor() {
|
|
4247
4467
|
super(...arguments);
|
|
4248
4468
|
this.uri = "";
|
|
@@ -4255,48 +4475,48 @@ let WcmQrCode = class extends s {
|
|
|
4255
4475
|
svgTemplate() {
|
|
4256
4476
|
const isLightMode = ThemeCtrl.state.themeMode === "light";
|
|
4257
4477
|
const size = isLightMode ? this.size : this.size - 18 * 2;
|
|
4258
|
-
return b`<svg height="${size}" width="${size}">${QrCodeUtil.generate(this.uri, size, size / 4)}</svg>`;
|
|
4478
|
+
return b$1`<svg height="${size}" width="${size}">${QrCodeUtil.generate(this.uri, size, size / 4)}</svg>`;
|
|
4259
4479
|
}
|
|
4260
4480
|
// -- render ------------------------------------------------------- //
|
|
4261
4481
|
render() {
|
|
4262
4482
|
const classes = {
|
|
4263
4483
|
"wcm-dark": ThemeCtrl.state.themeMode === "dark"
|
|
4264
4484
|
};
|
|
4265
|
-
return x`<div style="${`width: ${this.size}px`}" class="${
|
|
4485
|
+
return x`<div style="${`width: ${this.size}px`}" class="${o$1(classes)}">${this.walletId || this.imageUrl ? x`<wcm-wallet-image walletId="${l(this.walletId)}" imageId="${l(this.imageId)}" imageUrl="${l(this.imageUrl)}"></wcm-wallet-image>` : SvgUtil.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}</div>`;
|
|
4266
4486
|
}
|
|
4267
4487
|
};
|
|
4268
4488
|
WcmQrCode.styles = [ThemeUtil.globalCss, styles$k];
|
|
4269
4489
|
__decorateClass$o([
|
|
4270
|
-
n$
|
|
4490
|
+
n$2()
|
|
4271
4491
|
], WcmQrCode.prototype, "uri", 2);
|
|
4272
4492
|
__decorateClass$o([
|
|
4273
|
-
n$
|
|
4493
|
+
n$2({ type: Number })
|
|
4274
4494
|
], WcmQrCode.prototype, "size", 2);
|
|
4275
4495
|
__decorateClass$o([
|
|
4276
|
-
n$
|
|
4496
|
+
n$2()
|
|
4277
4497
|
], WcmQrCode.prototype, "imageId", 2);
|
|
4278
4498
|
__decorateClass$o([
|
|
4279
|
-
n$
|
|
4499
|
+
n$2()
|
|
4280
4500
|
], WcmQrCode.prototype, "walletId", 2);
|
|
4281
4501
|
__decorateClass$o([
|
|
4282
|
-
n$
|
|
4502
|
+
n$2()
|
|
4283
4503
|
], WcmQrCode.prototype, "imageUrl", 2);
|
|
4284
4504
|
WcmQrCode = __decorateClass$o([
|
|
4285
|
-
e$
|
|
4505
|
+
e$3("wcm-qrcode")
|
|
4286
4506
|
], WcmQrCode);
|
|
4287
|
-
const styles$j = i$
|
|
4507
|
+
const styles$j = i$4`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--wcm-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:var(--wcm-color-fg-1);background-color:var(--wcm-color-bg-3);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay);caret-color:var(--wcm-accent-color)}input::placeholder{color:var(--wcm-color-fg-2)}svg{left:10px;top:4px;pointer-events:none;position:absolute;width:20px;height:20px}input:focus-within{box-shadow:inset 0 0 0 1px var(--wcm-accent-color)}path{fill:var(--wcm-color-fg-2)}`;
|
|
4288
4508
|
var __defProp$n = Object.defineProperty;
|
|
4289
4509
|
var __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;
|
|
4290
4510
|
var __decorateClass$n = (decorators, target, key, kind) => {
|
|
4291
4511
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$n(target, key) : target;
|
|
4292
|
-
for (var
|
|
4293
|
-
if (decorator = decorators[
|
|
4512
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4513
|
+
if (decorator = decorators[i3])
|
|
4294
4514
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4295
4515
|
if (kind && result)
|
|
4296
4516
|
__defProp$n(target, key, result);
|
|
4297
4517
|
return result;
|
|
4298
4518
|
};
|
|
4299
|
-
let WcmSearchInput = class extends s {
|
|
4519
|
+
let WcmSearchInput = class extends s$1 {
|
|
4300
4520
|
constructor() {
|
|
4301
4521
|
super(...arguments);
|
|
4302
4522
|
this.onChange = () => null;
|
|
@@ -4308,21 +4528,21 @@ let WcmSearchInput = class extends s {
|
|
|
4308
4528
|
};
|
|
4309
4529
|
WcmSearchInput.styles = [ThemeUtil.globalCss, styles$j];
|
|
4310
4530
|
__decorateClass$n([
|
|
4311
|
-
n$
|
|
4531
|
+
n$2()
|
|
4312
4532
|
], WcmSearchInput.prototype, "onChange", 2);
|
|
4313
4533
|
WcmSearchInput = __decorateClass$n([
|
|
4314
|
-
e$
|
|
4534
|
+
e$3("wcm-search-input")
|
|
4315
4535
|
], WcmSearchInput);
|
|
4316
|
-
const styles$i = i$
|
|
4536
|
+
const styles$i = i$4`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--wcm-accent-color)}`;
|
|
4317
4537
|
var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
|
|
4318
4538
|
var __decorateClass$m = (decorators, target, key, kind) => {
|
|
4319
4539
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$m(target, key) : target;
|
|
4320
|
-
for (var
|
|
4321
|
-
if (decorator = decorators[
|
|
4540
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4541
|
+
if (decorator = decorators[i3])
|
|
4322
4542
|
result = decorator(result) || result;
|
|
4323
4543
|
return result;
|
|
4324
4544
|
};
|
|
4325
|
-
let WcmSpinner = class extends s {
|
|
4545
|
+
let WcmSpinner = class extends s$1 {
|
|
4326
4546
|
// -- render ------------------------------------------------------- //
|
|
4327
4547
|
render() {
|
|
4328
4548
|
return x`<svg viewBox="0 0 50 50" width="24" height="24"><circle cx="25" cy="25" r="20" fill="none" stroke-width="4" stroke="#fff"/></svg>`;
|
|
@@ -4330,21 +4550,21 @@ let WcmSpinner = class extends s {
|
|
|
4330
4550
|
};
|
|
4331
4551
|
WcmSpinner.styles = [ThemeUtil.globalCss, styles$i];
|
|
4332
4552
|
WcmSpinner = __decorateClass$m([
|
|
4333
|
-
e$
|
|
4553
|
+
e$3("wcm-spinner")
|
|
4334
4554
|
], WcmSpinner);
|
|
4335
|
-
const styles$h = i$
|
|
4555
|
+
const styles$h = i$4`span{font-style:normal;font-family:var(--wcm-font-family);font-feature-settings:var(--wcm-font-feature-settings)}.wcm-xsmall-bold{font-family:var(--wcm-text-xsmall-bold-font-family);font-weight:var(--wcm-text-xsmall-bold-weight);font-size:var(--wcm-text-xsmall-bold-size);line-height:var(--wcm-text-xsmall-bold-line-height);letter-spacing:var(--wcm-text-xsmall-bold-letter-spacing);text-transform:var(--wcm-text-xsmall-bold-text-transform)}.wcm-xsmall-regular{font-family:var(--wcm-text-xsmall-regular-font-family);font-weight:var(--wcm-text-xsmall-regular-weight);font-size:var(--wcm-text-xsmall-regular-size);line-height:var(--wcm-text-xsmall-regular-line-height);letter-spacing:var(--wcm-text-xsmall-regular-letter-spacing);text-transform:var(--wcm-text-xsmall-regular-text-transform)}.wcm-small-thin{font-family:var(--wcm-text-small-thin-font-family);font-weight:var(--wcm-text-small-thin-weight);font-size:var(--wcm-text-small-thin-size);line-height:var(--wcm-text-small-thin-line-height);letter-spacing:var(--wcm-text-small-thin-letter-spacing);text-transform:var(--wcm-text-small-thin-text-transform)}.wcm-small-regular{font-family:var(--wcm-text-small-regular-font-family);font-weight:var(--wcm-text-small-regular-weight);font-size:var(--wcm-text-small-regular-size);line-height:var(--wcm-text-small-regular-line-height);letter-spacing:var(--wcm-text-small-regular-letter-spacing);text-transform:var(--wcm-text-small-regular-text-transform)}.wcm-medium-regular{font-family:var(--wcm-text-medium-regular-font-family);font-weight:var(--wcm-text-medium-regular-weight);font-size:var(--wcm-text-medium-regular-size);line-height:var(--wcm-text-medium-regular-line-height);letter-spacing:var(--wcm-text-medium-regular-letter-spacing);text-transform:var(--wcm-text-medium-regular-text-transform)}.wcm-big-bold{font-family:var(--wcm-text-big-bold-font-family);font-weight:var(--wcm-text-big-bold-weight);font-size:var(--wcm-text-big-bold-size);line-height:var(--wcm-text-big-bold-line-height);letter-spacing:var(--wcm-text-big-bold-letter-spacing);text-transform:var(--wcm-text-big-bold-text-transform)}:host(*){color:var(--wcm-color-fg-1)}.wcm-color-primary{color:var(--wcm-color-fg-1)}.wcm-color-secondary{color:var(--wcm-color-fg-2)}.wcm-color-tertiary{color:var(--wcm-color-fg-3)}.wcm-color-inverse{color:var(--wcm-accent-fill-color)}.wcm-color-accnt{color:var(--wcm-accent-color)}.wcm-color-error{color:var(--wcm-error-color)}`;
|
|
4336
4556
|
var __defProp$l = Object.defineProperty;
|
|
4337
4557
|
var __getOwnPropDesc$l = Object.getOwnPropertyDescriptor;
|
|
4338
4558
|
var __decorateClass$l = (decorators, target, key, kind) => {
|
|
4339
4559
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$l(target, key) : target;
|
|
4340
|
-
for (var
|
|
4341
|
-
if (decorator = decorators[
|
|
4560
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4561
|
+
if (decorator = decorators[i3])
|
|
4342
4562
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4343
4563
|
if (kind && result)
|
|
4344
4564
|
__defProp$l(target, key, result);
|
|
4345
4565
|
return result;
|
|
4346
4566
|
};
|
|
4347
|
-
let WcmText = class extends s {
|
|
4567
|
+
let WcmText = class extends s$1 {
|
|
4348
4568
|
constructor() {
|
|
4349
4569
|
super(...arguments);
|
|
4350
4570
|
this.variant = "medium-regular";
|
|
@@ -4366,32 +4586,32 @@ let WcmText = class extends s {
|
|
|
4366
4586
|
"wcm-color-accnt": this.color === "accent",
|
|
4367
4587
|
"wcm-color-error": this.color === "error"
|
|
4368
4588
|
};
|
|
4369
|
-
return x`<span><slot class="${
|
|
4589
|
+
return x`<span><slot class="${o$1(classes)}"></slot></span>`;
|
|
4370
4590
|
}
|
|
4371
4591
|
};
|
|
4372
4592
|
WcmText.styles = [ThemeUtil.globalCss, styles$h];
|
|
4373
4593
|
__decorateClass$l([
|
|
4374
|
-
n$
|
|
4594
|
+
n$2()
|
|
4375
4595
|
], WcmText.prototype, "variant", 2);
|
|
4376
4596
|
__decorateClass$l([
|
|
4377
|
-
n$
|
|
4597
|
+
n$2()
|
|
4378
4598
|
], WcmText.prototype, "color", 2);
|
|
4379
4599
|
WcmText = __decorateClass$l([
|
|
4380
|
-
e$
|
|
4600
|
+
e$3("wcm-text")
|
|
4381
4601
|
], WcmText);
|
|
4382
|
-
const styles$g = i$
|
|
4602
|
+
const styles$g = i$4`button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}wcm-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}wcm-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--wcm-wallet-icon-border-radius);margin-bottom:5px}.wcm-sublabel{margin-top:2px}`;
|
|
4383
4603
|
var __defProp$k = Object.defineProperty;
|
|
4384
4604
|
var __getOwnPropDesc$k = Object.getOwnPropertyDescriptor;
|
|
4385
4605
|
var __decorateClass$k = (decorators, target, key, kind) => {
|
|
4386
4606
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$k(target, key) : target;
|
|
4387
|
-
for (var
|
|
4388
|
-
if (decorator = decorators[
|
|
4607
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4608
|
+
if (decorator = decorators[i3])
|
|
4389
4609
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4390
4610
|
if (kind && result)
|
|
4391
4611
|
__defProp$k(target, key, result);
|
|
4392
4612
|
return result;
|
|
4393
4613
|
};
|
|
4394
|
-
let WcmWalletButton = class extends s {
|
|
4614
|
+
let WcmWalletButton = class extends s$1 {
|
|
4395
4615
|
constructor() {
|
|
4396
4616
|
super(...arguments);
|
|
4397
4617
|
this.onClick = () => null;
|
|
@@ -4423,42 +4643,42 @@ let WcmWalletButton = class extends s {
|
|
|
4423
4643
|
};
|
|
4424
4644
|
WcmWalletButton.styles = [ThemeUtil.globalCss, styles$g];
|
|
4425
4645
|
__decorateClass$k([
|
|
4426
|
-
n$
|
|
4646
|
+
n$2()
|
|
4427
4647
|
], WcmWalletButton.prototype, "onClick", 2);
|
|
4428
4648
|
__decorateClass$k([
|
|
4429
|
-
n$
|
|
4649
|
+
n$2()
|
|
4430
4650
|
], WcmWalletButton.prototype, "name", 2);
|
|
4431
4651
|
__decorateClass$k([
|
|
4432
|
-
n$
|
|
4652
|
+
n$2()
|
|
4433
4653
|
], WcmWalletButton.prototype, "walletId", 2);
|
|
4434
4654
|
__decorateClass$k([
|
|
4435
|
-
n$
|
|
4655
|
+
n$2()
|
|
4436
4656
|
], WcmWalletButton.prototype, "label", 2);
|
|
4437
4657
|
__decorateClass$k([
|
|
4438
|
-
n$
|
|
4658
|
+
n$2()
|
|
4439
4659
|
], WcmWalletButton.prototype, "imageId", 2);
|
|
4440
4660
|
__decorateClass$k([
|
|
4441
|
-
n$
|
|
4661
|
+
n$2({ type: Boolean })
|
|
4442
4662
|
], WcmWalletButton.prototype, "installed", 2);
|
|
4443
4663
|
__decorateClass$k([
|
|
4444
|
-
n$
|
|
4664
|
+
n$2({ type: Boolean })
|
|
4445
4665
|
], WcmWalletButton.prototype, "recent", 2);
|
|
4446
4666
|
WcmWalletButton = __decorateClass$k([
|
|
4447
|
-
e$
|
|
4667
|
+
e$3("wcm-wallet-button")
|
|
4448
4668
|
], WcmWalletButton);
|
|
4449
|
-
const styles$f = i$
|
|
4669
|
+
const styles$f = i$4`:host{display:block}div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;background-color:var(--wcm-color-overlay)}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:inherit;border:1px solid var(--wcm-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;
|
|
4450
4670
|
var __defProp$j = Object.defineProperty;
|
|
4451
4671
|
var __getOwnPropDesc$j = Object.getOwnPropertyDescriptor;
|
|
4452
4672
|
var __decorateClass$j = (decorators, target, key, kind) => {
|
|
4453
4673
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$j(target, key) : target;
|
|
4454
|
-
for (var
|
|
4455
|
-
if (decorator = decorators[
|
|
4674
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4675
|
+
if (decorator = decorators[i3])
|
|
4456
4676
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4457
4677
|
if (kind && result)
|
|
4458
4678
|
__defProp$j(target, key, result);
|
|
4459
4679
|
return result;
|
|
4460
4680
|
};
|
|
4461
|
-
let WcmWalletImage = class extends s {
|
|
4681
|
+
let WcmWalletImage = class extends s$1 {
|
|
4462
4682
|
constructor() {
|
|
4463
4683
|
super(...arguments);
|
|
4464
4684
|
this.walletId = "";
|
|
@@ -4474,29 +4694,29 @@ let WcmWalletImage = class extends s {
|
|
|
4474
4694
|
};
|
|
4475
4695
|
WcmWalletImage.styles = [ThemeUtil.globalCss, styles$f];
|
|
4476
4696
|
__decorateClass$j([
|
|
4477
|
-
n$
|
|
4697
|
+
n$2()
|
|
4478
4698
|
], WcmWalletImage.prototype, "walletId", 2);
|
|
4479
4699
|
__decorateClass$j([
|
|
4480
|
-
n$
|
|
4700
|
+
n$2()
|
|
4481
4701
|
], WcmWalletImage.prototype, "imageId", 2);
|
|
4482
4702
|
__decorateClass$j([
|
|
4483
|
-
n$
|
|
4703
|
+
n$2()
|
|
4484
4704
|
], WcmWalletImage.prototype, "imageUrl", 2);
|
|
4485
4705
|
WcmWalletImage = __decorateClass$j([
|
|
4486
|
-
e$
|
|
4706
|
+
e$3("wcm-wallet-image")
|
|
4487
4707
|
], WcmWalletImage);
|
|
4488
4708
|
var __defProp$i = Object.defineProperty;
|
|
4489
4709
|
var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
|
|
4490
4710
|
var __decorateClass$i = (decorators, target, key, kind) => {
|
|
4491
4711
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$i(target, key) : target;
|
|
4492
|
-
for (var
|
|
4493
|
-
if (decorator = decorators[
|
|
4712
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4713
|
+
if (decorator = decorators[i3])
|
|
4494
4714
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4495
4715
|
if (kind && result)
|
|
4496
4716
|
__defProp$i(target, key, result);
|
|
4497
4717
|
return result;
|
|
4498
4718
|
};
|
|
4499
|
-
let WcmExplorerContext = class extends s {
|
|
4719
|
+
let WcmExplorerContext = class extends s$1 {
|
|
4500
4720
|
// -- lifecycle ---------------------------------------------------- //
|
|
4501
4721
|
constructor() {
|
|
4502
4722
|
super();
|
|
@@ -4541,20 +4761,20 @@ let WcmExplorerContext = class extends s {
|
|
|
4541
4761
|
}
|
|
4542
4762
|
};
|
|
4543
4763
|
__decorateClass$i([
|
|
4544
|
-
t$
|
|
4764
|
+
t$2()
|
|
4545
4765
|
], WcmExplorerContext.prototype, "preload", 2);
|
|
4546
4766
|
WcmExplorerContext = __decorateClass$i([
|
|
4547
|
-
e$
|
|
4767
|
+
e$3("wcm-explorer-context")
|
|
4548
4768
|
], WcmExplorerContext);
|
|
4549
4769
|
var __getOwnPropDesc$h = Object.getOwnPropertyDescriptor;
|
|
4550
4770
|
var __decorateClass$h = (decorators, target, key, kind) => {
|
|
4551
4771
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$h(target, key) : target;
|
|
4552
|
-
for (var
|
|
4553
|
-
if (decorator = decorators[
|
|
4772
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4773
|
+
if (decorator = decorators[i3])
|
|
4554
4774
|
result = decorator(result) || result;
|
|
4555
4775
|
return result;
|
|
4556
4776
|
};
|
|
4557
|
-
let WcmThemeContext = class extends s {
|
|
4777
|
+
let WcmThemeContext = class extends s$1 {
|
|
4558
4778
|
// -- lifecycle ---------------------------------------------------- //
|
|
4559
4779
|
constructor() {
|
|
4560
4780
|
super();
|
|
@@ -4568,18 +4788,18 @@ let WcmThemeContext = class extends s {
|
|
|
4568
4788
|
}
|
|
4569
4789
|
};
|
|
4570
4790
|
WcmThemeContext = __decorateClass$h([
|
|
4571
|
-
e$
|
|
4791
|
+
e$3("wcm-theme-context")
|
|
4572
4792
|
], WcmThemeContext);
|
|
4573
|
-
const styles$e = i$
|
|
4793
|
+
const styles$e = i$4`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 9),0,0)}}.wcm-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px;width:calc(100% + 40px)}.wcm-track{display:flex;width:calc(70px * 18);animation:scroll 20s linear infinite;opacity:.7}.wcm-track svg{margin:0 5px}wcm-wallet-image{width:60px;height:60px;margin:0 5px;border-radius:var(--wcm-wallet-icon-border-radius)}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-title{display:flex;align-items:center;margin-bottom:10px}.wcm-title svg{margin-right:6px}.wcm-title path{fill:var(--wcm-accent-color)}wcm-modal-footer .wcm-title{padding:0 10px}wcm-button-big{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);filter:drop-shadow(0 0 17px var(--wcm-color-bg-1))}wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-info-footer wcm-text{text-align:center;margin-bottom:15px}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;
|
|
4574
4794
|
var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
|
|
4575
4795
|
var __decorateClass$g = (decorators, target, key, kind) => {
|
|
4576
4796
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$g(target, key) : target;
|
|
4577
|
-
for (var
|
|
4578
|
-
if (decorator = decorators[
|
|
4797
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4798
|
+
if (decorator = decorators[i3])
|
|
4579
4799
|
result = decorator(result) || result;
|
|
4580
4800
|
return result;
|
|
4581
4801
|
};
|
|
4582
|
-
let WcmAndroidWalletSelection = class extends s {
|
|
4802
|
+
let WcmAndroidWalletSelection = class extends s$1 {
|
|
4583
4803
|
// -- private ------------------------------------------------------ //
|
|
4584
4804
|
onGoToQrcode() {
|
|
4585
4805
|
RouterCtrl.push("Qrcode");
|
|
@@ -4597,21 +4817,21 @@ let WcmAndroidWalletSelection = class extends s {
|
|
|
4597
4817
|
};
|
|
4598
4818
|
WcmAndroidWalletSelection.styles = [ThemeUtil.globalCss, styles$e];
|
|
4599
4819
|
WcmAndroidWalletSelection = __decorateClass$g([
|
|
4600
|
-
e$
|
|
4820
|
+
e$3("wcm-android-wallet-selection")
|
|
4601
4821
|
], WcmAndroidWalletSelection);
|
|
4602
|
-
const styles$d = i$
|
|
4822
|
+
const styles$d = i$4`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:2px;top:0;left:0}use{stroke:var(--wcm-accent-color);animation:loading 1s linear infinite}wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:90px;height:90px}wcm-text{margin-bottom:40px}.wcm-error svg{stroke:var(--wcm-error-color)}.wcm-error use{display:none}.wcm-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}.wcm-stale svg,.wcm-stale use{display:none}`;
|
|
4603
4823
|
var __defProp$f = Object.defineProperty;
|
|
4604
4824
|
var __getOwnPropDesc$f = Object.getOwnPropertyDescriptor;
|
|
4605
4825
|
var __decorateClass$f = (decorators, target, key, kind) => {
|
|
4606
4826
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$f(target, key) : target;
|
|
4607
|
-
for (var
|
|
4608
|
-
if (decorator = decorators[
|
|
4827
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4828
|
+
if (decorator = decorators[i3])
|
|
4609
4829
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4610
4830
|
if (kind && result)
|
|
4611
4831
|
__defProp$f(target, key, result);
|
|
4612
4832
|
return result;
|
|
4613
4833
|
};
|
|
4614
|
-
let WcmConnectorWaiting = class extends s {
|
|
4834
|
+
let WcmConnectorWaiting = class extends s$1 {
|
|
4615
4835
|
constructor() {
|
|
4616
4836
|
super(...arguments);
|
|
4617
4837
|
this.walletId = void 0;
|
|
@@ -4644,27 +4864,27 @@ let WcmConnectorWaiting = class extends s {
|
|
|
4644
4864
|
"wcm-error": this.isError,
|
|
4645
4865
|
"wcm-stale": this.isStale
|
|
4646
4866
|
};
|
|
4647
|
-
return x`<div class="${
|
|
4867
|
+
return x`<div class="${o$1(classes)}">${this.svgLoaderTemplate()}<wcm-wallet-image walletId="${l(this.walletId)}" imageId="${l(this.imageId)}"></wcm-wallet-image></div><wcm-text variant="medium-regular" color="${this.isError ? "error" : "primary"}">${this.isError ? "Connection declined" : this.label}</wcm-text>`;
|
|
4648
4868
|
}
|
|
4649
4869
|
};
|
|
4650
4870
|
WcmConnectorWaiting.styles = [ThemeUtil.globalCss, styles$d];
|
|
4651
4871
|
__decorateClass$f([
|
|
4652
|
-
n$
|
|
4872
|
+
n$2()
|
|
4653
4873
|
], WcmConnectorWaiting.prototype, "walletId", 2);
|
|
4654
4874
|
__decorateClass$f([
|
|
4655
|
-
n$
|
|
4875
|
+
n$2()
|
|
4656
4876
|
], WcmConnectorWaiting.prototype, "imageId", 2);
|
|
4657
4877
|
__decorateClass$f([
|
|
4658
|
-
n$
|
|
4878
|
+
n$2({ type: Boolean })
|
|
4659
4879
|
], WcmConnectorWaiting.prototype, "isError", 2);
|
|
4660
4880
|
__decorateClass$f([
|
|
4661
|
-
n$
|
|
4881
|
+
n$2({ type: Boolean })
|
|
4662
4882
|
], WcmConnectorWaiting.prototype, "isStale", 2);
|
|
4663
4883
|
__decorateClass$f([
|
|
4664
|
-
n$
|
|
4884
|
+
n$2()
|
|
4665
4885
|
], WcmConnectorWaiting.prototype, "label", 2);
|
|
4666
4886
|
WcmConnectorWaiting = __decorateClass$f([
|
|
4667
|
-
e$
|
|
4887
|
+
e$3("wcm-connector-waiting")
|
|
4668
4888
|
], WcmConnectorWaiting);
|
|
4669
4889
|
const DataUtil = {
|
|
4670
4890
|
manualWallets() {
|
|
@@ -4710,16 +4930,16 @@ const TemplateUtil = {
|
|
|
4710
4930
|
return x`<wcm-wallet-button name="${wallet.name}" walletId="${wallet.id}" imageId="${l(wallet.image_id)}" .recent="${true}" .onClick="${() => this.onConnecting(wallet)}"></wcm-wallet-button>`;
|
|
4711
4931
|
}
|
|
4712
4932
|
};
|
|
4713
|
-
const styles$c = i$
|
|
4933
|
+
const styles$c = i$4`.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-desktop-title,.wcm-mobile-title{display:flex;align-items:center}.wcm-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.wcm-desktop-title{margin-bottom:10px;padding:0 10px}.wcm-subtitle{display:flex;align-items:center}.wcm-subtitle:last-child path{fill:var(--wcm-color-fg-3)}.wcm-desktop-title svg,.wcm-mobile-title svg{margin-right:6px}.wcm-desktop-title path,.wcm-mobile-title path{fill:var(--wcm-accent-color)}`;
|
|
4714
4934
|
var __getOwnPropDesc$e = Object.getOwnPropertyDescriptor;
|
|
4715
4935
|
var __decorateClass$e = (decorators, target, key, kind) => {
|
|
4716
4936
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$e(target, key) : target;
|
|
4717
|
-
for (var
|
|
4718
|
-
if (decorator = decorators[
|
|
4937
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4938
|
+
if (decorator = decorators[i3])
|
|
4719
4939
|
result = decorator(result) || result;
|
|
4720
4940
|
return result;
|
|
4721
4941
|
};
|
|
4722
|
-
let WcmDesktopWalletSelection = class extends s {
|
|
4942
|
+
let WcmDesktopWalletSelection = class extends s$1 {
|
|
4723
4943
|
// -- render ------------------------------------------------------- //
|
|
4724
4944
|
render() {
|
|
4725
4945
|
const { explorerExcludedWalletIds, enableExplorer } = ConfigCtrl.state;
|
|
@@ -4742,18 +4962,18 @@ let WcmDesktopWalletSelection = class extends s {
|
|
|
4742
4962
|
};
|
|
4743
4963
|
WcmDesktopWalletSelection.styles = [ThemeUtil.globalCss, styles$c];
|
|
4744
4964
|
WcmDesktopWalletSelection = __decorateClass$e([
|
|
4745
|
-
e$
|
|
4965
|
+
e$3("wcm-desktop-wallet-selection")
|
|
4746
4966
|
], WcmDesktopWalletSelection);
|
|
4747
|
-
const styles$b = i$
|
|
4967
|
+
const styles$b = i$4`div{background-color:var(--wcm-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--wcm-color-bg-3);text-align:center}a{color:var(--wcm-accent-color);text-decoration:none;transition:opacity .2s ease-in-out;display:inline}a:active{opacity:.8}@media(hover:hover){a:hover{opacity:.8}}`;
|
|
4748
4968
|
var __getOwnPropDesc$d = Object.getOwnPropertyDescriptor;
|
|
4749
4969
|
var __decorateClass$d = (decorators, target, key, kind) => {
|
|
4750
4970
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$d(target, key) : target;
|
|
4751
|
-
for (var
|
|
4752
|
-
if (decorator = decorators[
|
|
4971
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4972
|
+
if (decorator = decorators[i3])
|
|
4753
4973
|
result = decorator(result) || result;
|
|
4754
4974
|
return result;
|
|
4755
4975
|
};
|
|
4756
|
-
let WcmLegalNotice = class extends s {
|
|
4976
|
+
let WcmLegalNotice = class extends s$1 {
|
|
4757
4977
|
// -- render ------------------------------------------------------- //
|
|
4758
4978
|
render() {
|
|
4759
4979
|
const { termsOfServiceUrl, privacyPolicyUrl } = ConfigCtrl.state;
|
|
@@ -4766,18 +4986,18 @@ let WcmLegalNotice = class extends s {
|
|
|
4766
4986
|
};
|
|
4767
4987
|
WcmLegalNotice.styles = [ThemeUtil.globalCss, styles$b];
|
|
4768
4988
|
WcmLegalNotice = __decorateClass$d([
|
|
4769
|
-
e$
|
|
4989
|
+
e$3("wcm-legal-notice")
|
|
4770
4990
|
], WcmLegalNotice);
|
|
4771
|
-
const styles$a = i$
|
|
4991
|
+
const styles$a = i$4`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`;
|
|
4772
4992
|
var __getOwnPropDesc$c = Object.getOwnPropertyDescriptor;
|
|
4773
4993
|
var __decorateClass$c = (decorators, target, key, kind) => {
|
|
4774
4994
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$c(target, key) : target;
|
|
4775
|
-
for (var
|
|
4776
|
-
if (decorator = decorators[
|
|
4995
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4996
|
+
if (decorator = decorators[i3])
|
|
4777
4997
|
result = decorator(result) || result;
|
|
4778
4998
|
return result;
|
|
4779
4999
|
};
|
|
4780
|
-
let WcmMobileWalletSelection = class extends s {
|
|
5000
|
+
let WcmMobileWalletSelection = class extends s$1 {
|
|
4781
5001
|
// -- private ------------------------------------------------------ //
|
|
4782
5002
|
onQrcode() {
|
|
4783
5003
|
RouterCtrl.push("Qrcode");
|
|
@@ -4804,21 +5024,21 @@ let WcmMobileWalletSelection = class extends s {
|
|
|
4804
5024
|
};
|
|
4805
5025
|
WcmMobileWalletSelection.styles = [ThemeUtil.globalCss, styles$a];
|
|
4806
5026
|
WcmMobileWalletSelection = __decorateClass$c([
|
|
4807
|
-
e$
|
|
5027
|
+
e$3("wcm-mobile-wallet-selection")
|
|
4808
5028
|
], WcmMobileWalletSelection);
|
|
4809
|
-
const styles$9 = i$
|
|
5029
|
+
const styles$9 = i$4`:host{all:initial}.wcm-overlay{top:0;bottom:0;left:0;right:0;position:fixed;z-index:var(--wcm-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;background-color:var(--wcm-overlay-background-color);backdrop-filter:var(--wcm-overlay-backdrop-filter)}@media(max-height:720px) and (orientation:landscape){.wcm-overlay{overflow:scroll;align-items:flex-start;padding:20px 0}}.wcm-active{pointer-events:auto}.wcm-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) var(--wcm-container-border-radius) var(--wcm-container-border-radius);border:1px solid var(--wcm-color-overlay);overflow:hidden}.wcm-card{width:100%;position:relative;border-radius:var(--wcm-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--wcm-color-overlay);background-color:var(--wcm-color-bg-1);color:var(--wcm-color-fg-1)}@media(max-width:600px){.wcm-container{max-width:440px;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) 0 0}.wcm-card{border-radius:var(--wcm-container-border-radius) var(--wcm-container-border-radius) 0 0}.wcm-overlay{align-items:flex-end}}@media(max-width:440px){.wcm-container{border:0}}`;
|
|
4810
5030
|
var __defProp$b = Object.defineProperty;
|
|
4811
5031
|
var __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;
|
|
4812
5032
|
var __decorateClass$b = (decorators, target, key, kind) => {
|
|
4813
5033
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key) : target;
|
|
4814
|
-
for (var
|
|
4815
|
-
if (decorator = decorators[
|
|
5034
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
5035
|
+
if (decorator = decorators[i3])
|
|
4816
5036
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4817
5037
|
if (kind && result)
|
|
4818
5038
|
__defProp$b(target, key, result);
|
|
4819
5039
|
return result;
|
|
4820
5040
|
};
|
|
4821
|
-
let WcmModal = class extends s {
|
|
5041
|
+
let WcmModal = class extends s$1 {
|
|
4822
5042
|
// -- lifecycle ---------------------------------------------------- //
|
|
4823
5043
|
constructor() {
|
|
4824
5044
|
super();
|
|
@@ -4920,32 +5140,32 @@ let WcmModal = class extends s {
|
|
|
4920
5140
|
"wcm-overlay": true,
|
|
4921
5141
|
"wcm-active": this.active
|
|
4922
5142
|
};
|
|
4923
|
-
return x`<wcm-explorer-context></wcm-explorer-context><wcm-theme-context></wcm-theme-context><div id="wcm-modal" class="${
|
|
5143
|
+
return x`<wcm-explorer-context></wcm-explorer-context><wcm-theme-context></wcm-theme-context><div id="wcm-modal" class="${o$1(classes)}" @click="${this.onCloseModal}" role="alertdialog" aria-modal="true"><div class="wcm-container" tabindex="0">${this.open ? x`<wcm-modal-backcard></wcm-modal-backcard><div class="wcm-card"><wcm-modal-router></wcm-modal-router><wcm-modal-toast></wcm-modal-toast></div>` : null}</div></div>`;
|
|
4924
5144
|
}
|
|
4925
5145
|
};
|
|
4926
5146
|
WcmModal.styles = [ThemeUtil.globalCss, styles$9];
|
|
4927
5147
|
__decorateClass$b([
|
|
4928
|
-
t$
|
|
5148
|
+
t$2()
|
|
4929
5149
|
], WcmModal.prototype, "open", 2);
|
|
4930
5150
|
__decorateClass$b([
|
|
4931
|
-
t$
|
|
5151
|
+
t$2()
|
|
4932
5152
|
], WcmModal.prototype, "active", 2);
|
|
4933
5153
|
WcmModal = __decorateClass$b([
|
|
4934
|
-
e$
|
|
5154
|
+
e$3("wcm-modal")
|
|
4935
5155
|
], WcmModal);
|
|
4936
|
-
const styles$8 = i$
|
|
5156
|
+
const styles$8 = i$4`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}`;
|
|
4937
5157
|
var __defProp$a = Object.defineProperty;
|
|
4938
5158
|
var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
|
|
4939
5159
|
var __decorateClass$a = (decorators, target, key, kind) => {
|
|
4940
5160
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target;
|
|
4941
|
-
for (var
|
|
4942
|
-
if (decorator = decorators[
|
|
5161
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
5162
|
+
if (decorator = decorators[i3])
|
|
4943
5163
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4944
5164
|
if (kind && result)
|
|
4945
5165
|
__defProp$a(target, key, result);
|
|
4946
5166
|
return result;
|
|
4947
5167
|
};
|
|
4948
|
-
let WcmPlatformSelection = class extends s {
|
|
5168
|
+
let WcmPlatformSelection = class extends s$1 {
|
|
4949
5169
|
constructor() {
|
|
4950
5170
|
super(...arguments);
|
|
4951
5171
|
this.isMobile = false;
|
|
@@ -4975,30 +5195,30 @@ let WcmPlatformSelection = class extends s {
|
|
|
4975
5195
|
};
|
|
4976
5196
|
WcmPlatformSelection.styles = [ThemeUtil.globalCss, styles$8];
|
|
4977
5197
|
__decorateClass$a([
|
|
4978
|
-
n$
|
|
5198
|
+
n$2({ type: Boolean })
|
|
4979
5199
|
], WcmPlatformSelection.prototype, "isMobile", 2);
|
|
4980
5200
|
__decorateClass$a([
|
|
4981
|
-
n$
|
|
5201
|
+
n$2({ type: Boolean })
|
|
4982
5202
|
], WcmPlatformSelection.prototype, "isDesktop", 2);
|
|
4983
5203
|
__decorateClass$a([
|
|
4984
|
-
n$
|
|
5204
|
+
n$2({ type: Boolean })
|
|
4985
5205
|
], WcmPlatformSelection.prototype, "isWeb", 2);
|
|
4986
5206
|
__decorateClass$a([
|
|
4987
|
-
n$
|
|
5207
|
+
n$2({ type: Boolean })
|
|
4988
5208
|
], WcmPlatformSelection.prototype, "isRetry", 2);
|
|
4989
5209
|
WcmPlatformSelection = __decorateClass$a([
|
|
4990
|
-
e$
|
|
5210
|
+
e$3("wcm-platform-selection")
|
|
4991
5211
|
], WcmPlatformSelection);
|
|
4992
|
-
const styles$7 = i$
|
|
5212
|
+
const styles$7 = i$4`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--wcm-button-hover-highlight-border-radius);height:100%;justify-content:flex-start}.wcm-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--wcm-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--wcm-color-bg-2);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}.wcm-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--wcm-wallet-icon-border-radius)/ 2);border:1px solid var(--wcm-color-overlay)}.wcm-icons svg{width:21px;height:21px}.wcm-icons img:nth-child(1),.wcm-icons img:nth-child(2),.wcm-icons svg:nth-child(1),.wcm-icons svg:nth-child(2){margin-bottom:4px}wcm-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;
|
|
4993
5213
|
var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
|
|
4994
5214
|
var __decorateClass$9 = (decorators, target, key, kind) => {
|
|
4995
5215
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key) : target;
|
|
4996
|
-
for (var
|
|
4997
|
-
if (decorator = decorators[
|
|
5216
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
5217
|
+
if (decorator = decorators[i3])
|
|
4998
5218
|
result = decorator(result) || result;
|
|
4999
5219
|
return result;
|
|
5000
5220
|
};
|
|
5001
|
-
let WcmViewAllWalletsButton = class extends s {
|
|
5221
|
+
let WcmViewAllWalletsButton = class extends s$1 {
|
|
5002
5222
|
// -- render ------------------------------------------------------- //
|
|
5003
5223
|
onClick() {
|
|
5004
5224
|
RouterCtrl.push("WalletExplorer");
|
|
@@ -5020,21 +5240,21 @@ let WcmViewAllWalletsButton = class extends s {
|
|
|
5020
5240
|
};
|
|
5021
5241
|
WcmViewAllWalletsButton.styles = [ThemeUtil.globalCss, styles$7];
|
|
5022
5242
|
WcmViewAllWalletsButton = __decorateClass$9([
|
|
5023
|
-
e$
|
|
5243
|
+
e$3("wcm-view-all-wallets-button")
|
|
5024
5244
|
], WcmViewAllWalletsButton);
|
|
5025
|
-
const styles$6 = i$
|
|
5245
|
+
const styles$6 = i$4`.wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`;
|
|
5026
5246
|
var __defProp$8 = Object.defineProperty;
|
|
5027
5247
|
var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
|
|
5028
5248
|
var __decorateClass$8 = (decorators, target, key, kind) => {
|
|
5029
5249
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$8(target, key) : target;
|
|
5030
|
-
for (var
|
|
5031
|
-
if (decorator = decorators[
|
|
5250
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
5251
|
+
if (decorator = decorators[i3])
|
|
5032
5252
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5033
5253
|
if (kind && result)
|
|
5034
5254
|
__defProp$8(target, key, result);
|
|
5035
5255
|
return result;
|
|
5036
5256
|
};
|
|
5037
|
-
let WcmWalletConnectQr = class extends s {
|
|
5257
|
+
let WcmWalletConnectQr = class extends s$1 {
|
|
5038
5258
|
// -- lifecycle ---------------------------------------------------- //
|
|
5039
5259
|
constructor() {
|
|
5040
5260
|
super();
|
|
@@ -5057,26 +5277,26 @@ let WcmWalletConnectQr = class extends s {
|
|
|
5057
5277
|
};
|
|
5058
5278
|
WcmWalletConnectQr.styles = [ThemeUtil.globalCss, styles$6];
|
|
5059
5279
|
__decorateClass$8([
|
|
5060
|
-
n$
|
|
5280
|
+
n$2()
|
|
5061
5281
|
], WcmWalletConnectQr.prototype, "walletId", 2);
|
|
5062
5282
|
__decorateClass$8([
|
|
5063
|
-
n$
|
|
5283
|
+
n$2()
|
|
5064
5284
|
], WcmWalletConnectQr.prototype, "imageId", 2);
|
|
5065
5285
|
__decorateClass$8([
|
|
5066
|
-
t$
|
|
5286
|
+
t$2()
|
|
5067
5287
|
], WcmWalletConnectQr.prototype, "uri", 2);
|
|
5068
5288
|
WcmWalletConnectQr = __decorateClass$8([
|
|
5069
|
-
e$
|
|
5289
|
+
e$3("wcm-walletconnect-qr")
|
|
5070
5290
|
], WcmWalletConnectQr);
|
|
5071
5291
|
var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
|
|
5072
5292
|
var __decorateClass$7 = (decorators, target, key, kind) => {
|
|
5073
5293
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key) : target;
|
|
5074
|
-
for (var
|
|
5075
|
-
if (decorator = decorators[
|
|
5294
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
5295
|
+
if (decorator = decorators[i3])
|
|
5076
5296
|
result = decorator(result) || result;
|
|
5077
5297
|
return result;
|
|
5078
5298
|
};
|
|
5079
|
-
let WcmConnectWalletView = class extends s {
|
|
5299
|
+
let WcmConnectWalletView = class extends s$1 {
|
|
5080
5300
|
// -- private ------------------------------------------------------ //
|
|
5081
5301
|
viewTemplate() {
|
|
5082
5302
|
if (CoreUtil.isAndroid() && !CoreUtil.isTelegram()) {
|
|
@@ -5094,21 +5314,21 @@ let WcmConnectWalletView = class extends s {
|
|
|
5094
5314
|
};
|
|
5095
5315
|
WcmConnectWalletView.styles = [ThemeUtil.globalCss];
|
|
5096
5316
|
WcmConnectWalletView = __decorateClass$7([
|
|
5097
|
-
e$
|
|
5317
|
+
e$3("wcm-connect-wallet-view")
|
|
5098
5318
|
], WcmConnectWalletView);
|
|
5099
|
-
const styles$5 = i$
|
|
5319
|
+
const styles$5 = i$4`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;
|
|
5100
5320
|
var __defProp$6 = Object.defineProperty;
|
|
5101
5321
|
var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
|
|
5102
5322
|
var __decorateClass$6 = (decorators, target, key, kind) => {
|
|
5103
5323
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target;
|
|
5104
|
-
for (var
|
|
5105
|
-
if (decorator = decorators[
|
|
5324
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
5325
|
+
if (decorator = decorators[i3])
|
|
5106
5326
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5107
5327
|
if (kind && result)
|
|
5108
5328
|
__defProp$6(target, key, result);
|
|
5109
5329
|
return result;
|
|
5110
5330
|
};
|
|
5111
|
-
let WcmDesktopConnectingView = class extends s {
|
|
5331
|
+
let WcmDesktopConnectingView = class extends s$1 {
|
|
5112
5332
|
// -- lifecycle ---------------------------------------------------- //
|
|
5113
5333
|
constructor() {
|
|
5114
5334
|
super();
|
|
@@ -5145,21 +5365,21 @@ let WcmDesktopConnectingView = class extends s {
|
|
|
5145
5365
|
};
|
|
5146
5366
|
WcmDesktopConnectingView.styles = [ThemeUtil.globalCss, styles$5];
|
|
5147
5367
|
__decorateClass$6([
|
|
5148
|
-
t$
|
|
5368
|
+
t$2()
|
|
5149
5369
|
], WcmDesktopConnectingView.prototype, "isError", 2);
|
|
5150
5370
|
WcmDesktopConnectingView = __decorateClass$6([
|
|
5151
|
-
e$
|
|
5371
|
+
e$3("wcm-desktop-connecting-view")
|
|
5152
5372
|
], WcmDesktopConnectingView);
|
|
5153
|
-
const styles$4 = i$
|
|
5373
|
+
const styles$4 = i$4`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}wcm-button{margin-top:15px}`;
|
|
5154
5374
|
var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
|
|
5155
5375
|
var __decorateClass$5 = (decorators, target, key, kind) => {
|
|
5156
5376
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$5(target, key) : target;
|
|
5157
|
-
for (var
|
|
5158
|
-
if (decorator = decorators[
|
|
5377
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
5378
|
+
if (decorator = decorators[i3])
|
|
5159
5379
|
result = decorator(result) || result;
|
|
5160
5380
|
return result;
|
|
5161
5381
|
};
|
|
5162
|
-
let WcmInstallWalletView = class extends s {
|
|
5382
|
+
let WcmInstallWalletView = class extends s$1 {
|
|
5163
5383
|
// -- private ------------------------------------------------------ //
|
|
5164
5384
|
onInstall(uri) {
|
|
5165
5385
|
if (uri) {
|
|
@@ -5174,21 +5394,21 @@ let WcmInstallWalletView = class extends s {
|
|
|
5174
5394
|
};
|
|
5175
5395
|
WcmInstallWalletView.styles = [ThemeUtil.globalCss, styles$4];
|
|
5176
5396
|
WcmInstallWalletView = __decorateClass$5([
|
|
5177
|
-
e$
|
|
5397
|
+
e$3("wcm-install-wallet-view")
|
|
5178
5398
|
], WcmInstallWalletView);
|
|
5179
|
-
const styles$3 = i$
|
|
5399
|
+
const styles$3 = i$4`wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}wcm-info-footer{display:flex;width:100%}.wcm-app-store{justify-content:space-between}.wcm-app-store wcm-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--wcm-wallet-icon-small-border-radius)}.wcm-app-store div{display:flex;align-items:center}.wcm-app-store wcm-button{margin-right:-10px}.wcm-note{flex-direction:column;align-items:center;padding:5px 0}.wcm-note wcm-text{text-align:center}wcm-platform-selection{margin-top:-15px}.wcm-note wcm-text{margin-top:15px}.wcm-note wcm-text span{color:var(--wcm-accent-color)}`;
|
|
5180
5400
|
var __defProp$4 = Object.defineProperty;
|
|
5181
5401
|
var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
|
|
5182
5402
|
var __decorateClass$4 = (decorators, target, key, kind) => {
|
|
5183
5403
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$4(target, key) : target;
|
|
5184
|
-
for (var
|
|
5185
|
-
if (decorator = decorators[
|
|
5404
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
5405
|
+
if (decorator = decorators[i3])
|
|
5186
5406
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5187
5407
|
if (kind && result)
|
|
5188
5408
|
__defProp$4(target, key, result);
|
|
5189
5409
|
return result;
|
|
5190
5410
|
};
|
|
5191
|
-
let WcmMobileConnectingView = class extends s {
|
|
5411
|
+
let WcmMobileConnectingView = class extends s$1 {
|
|
5192
5412
|
// -- lifecycle ---------------------------------------------------- //
|
|
5193
5413
|
constructor() {
|
|
5194
5414
|
super();
|
|
@@ -5234,21 +5454,21 @@ let WcmMobileConnectingView = class extends s {
|
|
|
5234
5454
|
};
|
|
5235
5455
|
WcmMobileConnectingView.styles = [ThemeUtil.globalCss, styles$3];
|
|
5236
5456
|
__decorateClass$4([
|
|
5237
|
-
t$
|
|
5457
|
+
t$2()
|
|
5238
5458
|
], WcmMobileConnectingView.prototype, "isError", 2);
|
|
5239
5459
|
WcmMobileConnectingView = __decorateClass$4([
|
|
5240
|
-
e$
|
|
5460
|
+
e$3("wcm-mobile-connecting-view")
|
|
5241
5461
|
], WcmMobileConnectingView);
|
|
5242
|
-
const styles$2 = i$
|
|
5462
|
+
const styles$2 = i$4`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;
|
|
5243
5463
|
var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
|
|
5244
5464
|
var __decorateClass$3 = (decorators, target, key, kind) => {
|
|
5245
5465
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$3(target, key) : target;
|
|
5246
|
-
for (var
|
|
5247
|
-
if (decorator = decorators[
|
|
5466
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
5467
|
+
if (decorator = decorators[i3])
|
|
5248
5468
|
result = decorator(result) || result;
|
|
5249
5469
|
return result;
|
|
5250
5470
|
};
|
|
5251
|
-
let WcmMobileQrConnectingView = class extends s {
|
|
5471
|
+
let WcmMobileQrConnectingView = class extends s$1 {
|
|
5252
5472
|
// -- render ------------------------------------------------------- //
|
|
5253
5473
|
render() {
|
|
5254
5474
|
const { name, id, image_id } = CoreUtil.getWalletRouterData();
|
|
@@ -5258,17 +5478,17 @@ let WcmMobileQrConnectingView = class extends s {
|
|
|
5258
5478
|
};
|
|
5259
5479
|
WcmMobileQrConnectingView.styles = [ThemeUtil.globalCss, styles$2];
|
|
5260
5480
|
WcmMobileQrConnectingView = __decorateClass$3([
|
|
5261
|
-
e$
|
|
5481
|
+
e$3("wcm-mobile-qr-connecting-view")
|
|
5262
5482
|
], WcmMobileQrConnectingView);
|
|
5263
5483
|
var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
|
|
5264
5484
|
var __decorateClass$2 = (decorators, target, key, kind) => {
|
|
5265
5485
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target;
|
|
5266
|
-
for (var
|
|
5267
|
-
if (decorator = decorators[
|
|
5486
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
5487
|
+
if (decorator = decorators[i3])
|
|
5268
5488
|
result = decorator(result) || result;
|
|
5269
5489
|
return result;
|
|
5270
5490
|
};
|
|
5271
|
-
let WcmQrcodeView = class extends s {
|
|
5491
|
+
let WcmQrcodeView = class extends s$1 {
|
|
5272
5492
|
// -- render ------------------------------------------------------- //
|
|
5273
5493
|
render() {
|
|
5274
5494
|
return x`<wcm-modal-header title="Scan the code" .onAction="${UiUtil.handleUriCopy}" .actionIcon="${SvgUtil.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-walletconnect-qr></wcm-walletconnect-qr></wcm-modal-content>`;
|
|
@@ -5276,22 +5496,22 @@ let WcmQrcodeView = class extends s {
|
|
|
5276
5496
|
};
|
|
5277
5497
|
WcmQrcodeView.styles = [ThemeUtil.globalCss];
|
|
5278
5498
|
WcmQrcodeView = __decorateClass$2([
|
|
5279
|
-
e$
|
|
5499
|
+
e$3("wcm-qrcode-view")
|
|
5280
5500
|
], WcmQrcodeView);
|
|
5281
|
-
const styles$1 = i$
|
|
5501
|
+
const styles$1 = i$4`wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}wcm-modal-content::after,wcm-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}wcm-modal-content::before{box-shadow:0 -1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(var(--wcm-color-bg-1),rgba(255,255,255,0))}wcm-modal-content::after{box-shadow:0 1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--wcm-color-bg-1));top:calc(100% - 20px)}wcm-modal-content::-webkit-scrollbar{display:none}.wcm-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.wcm-empty,.wcm-loading{display:flex}.wcm-loading .wcm-placeholder-block{height:100%}.wcm-end-reached .wcm-placeholder-block{height:0;opacity:0}.wcm-empty .wcm-placeholder-block{opacity:1;height:100%}wcm-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;
|
|
5282
5502
|
var __defProp$1 = Object.defineProperty;
|
|
5283
5503
|
var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
5284
5504
|
var __decorateClass$1 = (decorators, target, key, kind) => {
|
|
5285
5505
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1(target, key) : target;
|
|
5286
|
-
for (var
|
|
5287
|
-
if (decorator = decorators[
|
|
5506
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
5507
|
+
if (decorator = decorators[i3])
|
|
5288
5508
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5289
5509
|
if (kind && result)
|
|
5290
5510
|
__defProp$1(target, key, result);
|
|
5291
5511
|
return result;
|
|
5292
5512
|
};
|
|
5293
5513
|
const PAGE_ENTRIES = 40;
|
|
5294
|
-
let WcmWalletExplorerView = class extends s {
|
|
5514
|
+
let WcmWalletExplorerView = class extends s$1 {
|
|
5295
5515
|
constructor() {
|
|
5296
5516
|
super(...arguments);
|
|
5297
5517
|
this.loading = !ExplorerCtrl.state.wallets.listings.length;
|
|
@@ -5401,40 +5621,40 @@ let WcmWalletExplorerView = class extends s {
|
|
|
5401
5621
|
"wcm-end-reached": this.endReached || !this.loading,
|
|
5402
5622
|
"wcm-empty": isEmpty
|
|
5403
5623
|
};
|
|
5404
|
-
return x`<wcm-modal-header><wcm-search-input .onChange="${this.onSearchChange.bind(this)}"></wcm-search-input></wcm-modal-header><wcm-modal-content class="${
|
|
5624
|
+
return x`<wcm-modal-header><wcm-search-input .onChange="${this.onSearchChange.bind(this)}"></wcm-search-input></wcm-modal-header><wcm-modal-content class="${o$1(classes)}"><div class="wcm-grid">${isLoading ? null : manualWallets} ${isLoading ? null : recomendedWallets} ${isLoading ? null : listings.map(
|
|
5405
5625
|
(listing) => x`${listing ? x`<wcm-wallet-button imageId="${listing.image_id}" name="${listing.name}" walletId="${listing.id}" .onClick="${() => this.onConnect(listing)}"></wcm-wallet-button>` : null}`
|
|
5406
5626
|
)}</div><div class="wcm-placeholder-block">${isEmpty ? x`<wcm-text variant="big-bold" color="secondary">No results found</wcm-text>` : null} ${!isEmpty && this.loading ? x`<wcm-spinner></wcm-spinner>` : null}</div></wcm-modal-content>`;
|
|
5407
5627
|
}
|
|
5408
5628
|
};
|
|
5409
5629
|
WcmWalletExplorerView.styles = [ThemeUtil.globalCss, styles$1];
|
|
5410
5630
|
__decorateClass$1([
|
|
5411
|
-
t$
|
|
5631
|
+
t$2()
|
|
5412
5632
|
], WcmWalletExplorerView.prototype, "loading", 2);
|
|
5413
5633
|
__decorateClass$1([
|
|
5414
|
-
t$
|
|
5634
|
+
t$2()
|
|
5415
5635
|
], WcmWalletExplorerView.prototype, "firstFetch", 2);
|
|
5416
5636
|
__decorateClass$1([
|
|
5417
|
-
t$
|
|
5637
|
+
t$2()
|
|
5418
5638
|
], WcmWalletExplorerView.prototype, "search", 2);
|
|
5419
5639
|
__decorateClass$1([
|
|
5420
|
-
t$
|
|
5640
|
+
t$2()
|
|
5421
5641
|
], WcmWalletExplorerView.prototype, "endReached", 2);
|
|
5422
5642
|
WcmWalletExplorerView = __decorateClass$1([
|
|
5423
|
-
e$
|
|
5643
|
+
e$3("wcm-wallet-explorer-view")
|
|
5424
5644
|
], WcmWalletExplorerView);
|
|
5425
|
-
const styles = i$
|
|
5645
|
+
const styles = i$4`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;
|
|
5426
5646
|
var __defProp = Object.defineProperty;
|
|
5427
5647
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5428
5648
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
5429
5649
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
5430
|
-
for (var
|
|
5431
|
-
if (decorator = decorators[
|
|
5650
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
5651
|
+
if (decorator = decorators[i3])
|
|
5432
5652
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5433
5653
|
if (kind && result)
|
|
5434
5654
|
__defProp(target, key, result);
|
|
5435
5655
|
return result;
|
|
5436
5656
|
};
|
|
5437
|
-
let WcmWebConnectingView = class extends s {
|
|
5657
|
+
let WcmWebConnectingView = class extends s$1 {
|
|
5438
5658
|
// -- lifecycle ---------------------------------------------------- //
|
|
5439
5659
|
constructor() {
|
|
5440
5660
|
super();
|
|
@@ -5468,13 +5688,13 @@ let WcmWebConnectingView = class extends s {
|
|
|
5468
5688
|
};
|
|
5469
5689
|
WcmWebConnectingView.styles = [ThemeUtil.globalCss, styles];
|
|
5470
5690
|
__decorateClass([
|
|
5471
|
-
t$
|
|
5691
|
+
t$2()
|
|
5472
5692
|
], WcmWebConnectingView.prototype, "isError", 2);
|
|
5473
5693
|
WcmWebConnectingView = __decorateClass([
|
|
5474
|
-
e$
|
|
5694
|
+
e$3("wcm-web-connecting-view")
|
|
5475
5695
|
], WcmWebConnectingView);
|
|
5476
5696
|
export {
|
|
5477
5697
|
WcmModal,
|
|
5478
5698
|
WcmQrCode
|
|
5479
5699
|
};
|
|
5480
|
-
//# sourceMappingURL=index-
|
|
5700
|
+
//# sourceMappingURL=index-sU0Z-m5M.js.map
|