@directcryptopay/sdk 0.2.3 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/README.md +51 -87
  2. package/dist/core/config.d.ts +9 -46
  3. package/dist/core/iframe.d.ts +16 -0
  4. package/dist/dcp-sdk.umd.js +1 -12811
  5. package/dist/dcp.d.ts +12 -5
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.js +219 -2
  8. package/dist/types.d.ts +26 -164
  9. package/package.json +3 -13
  10. package/dist/ExchangeController-CPMQq6Q-.js +0 -217
  11. package/dist/HelpersUtil-DfMFC7Bf.js +0 -120
  12. package/dist/NavigationUtil-kj9LEOOd.js +0 -8
  13. package/dist/PhArrowCircleDown-lsK25DCk.js +0 -73
  14. package/dist/PhArrowClockwise-NeKHZ1co.js +0 -73
  15. package/dist/PhArrowDown-C9AkNvLs.js +0 -73
  16. package/dist/PhArrowLeft-RNfIQP1X.js +0 -73
  17. package/dist/PhArrowRight-DM1tna0G.js +0 -73
  18. package/dist/PhArrowSquareOut-S5XYbAZj.js +0 -73
  19. package/dist/PhArrowUp-DmktzOWy.js +0 -73
  20. package/dist/PhArrowUpRight-BkNeW_5i.js +0 -73
  21. package/dist/PhArrowsClockwise-CQ4pG76b.js +0 -73
  22. package/dist/PhArrowsDownUp-H6gxaNM6.js +0 -73
  23. package/dist/PhArrowsLeftRight-DZSsfMR6.js +0 -73
  24. package/dist/PhBank-4_9QzqIB.js +0 -73
  25. package/dist/PhBrowser-B-JSznId.js +0 -73
  26. package/dist/PhCaretDown-vV5oHMNi.js +0 -73
  27. package/dist/PhCaretLeft-BLo6Y_f4.js +0 -73
  28. package/dist/PhCaretRight-CqQN4TT3.js +0 -73
  29. package/dist/PhCaretUp-Df7UCAHy.js +0 -73
  30. package/dist/PhCheck-gtpfK4ed.js +0 -73
  31. package/dist/PhCircleHalf-Uq7dwDYw.js +0 -73
  32. package/dist/PhClock-SDCW-NmF.js +0 -73
  33. package/dist/PhCompass-B7hgtdx-.js +0 -73
  34. package/dist/PhCopy-BcnhyXCy.js +0 -73
  35. package/dist/PhCreditCard-BJjByVgu.js +0 -73
  36. package/dist/PhCurrencyDollar-B7ZXqXBy.js +0 -73
  37. package/dist/PhDesktop-B3VKPuJx.js +0 -73
  38. package/dist/PhDeviceMobile-Bnd0TYEH.js +0 -73
  39. package/dist/PhDotsThree-yyMWyZ-R.js +0 -73
  40. package/dist/PhEnvelope-67uzHbI9.js +0 -73
  41. package/dist/PhFunnelSimple-B-DCsloI.js +0 -73
  42. package/dist/PhGlobe-TMm_6qGk.js +0 -73
  43. package/dist/PhIdentificationCard-CePPD2xc.js +0 -73
  44. package/dist/PhImage-gY96WtHR.js +0 -73
  45. package/dist/PhInfo-DRQM_ZDP.js +0 -73
  46. package/dist/PhLightbulb-B0TxPfZ1.js +0 -73
  47. package/dist/PhMagnifyingGlass-B8si5_6W.js +0 -73
  48. package/dist/PhPaperPlaneRight-DVu5PLYd.js +0 -73
  49. package/dist/PhPlus-BfTsQnUz.js +0 -73
  50. package/dist/PhPower-CxYUGOWn.js +0 -73
  51. package/dist/PhPuzzlePiece-CQ4wh0gV.js +0 -73
  52. package/dist/PhQrCode-BuJ97NYJ.js +0 -73
  53. package/dist/PhQuestion-kJoP8Mja.js +0 -73
  54. package/dist/PhQuestionMark-C46ZkFpu.js +0 -73
  55. package/dist/PhSealCheck-Eh8jVqSN.js +0 -73
  56. package/dist/PhSignOut-jk97OSVt.js +0 -73
  57. package/dist/PhSpinner-CiYOhwMg.js +0 -73
  58. package/dist/PhTrash-pxerMqzd.js +0 -73
  59. package/dist/PhUser-BMg0VV4A.js +0 -73
  60. package/dist/PhVault-DYQvx5A-.js +0 -73
  61. package/dist/PhWarning-NLC5Mj87.js +0 -73
  62. package/dist/PhWarningCircle-Ch2jU9fA.js +0 -73
  63. package/dist/PhX-Bx4wpwm3.js +0 -73
  64. package/dist/SwapController-Cti0Cyxa.js +0 -457
  65. package/dist/ccip-CKZd2XJ7.js +0 -150
  66. package/dist/core/api.d.ts +0 -39
  67. package/dist/core/logic.d.ts +0 -2
  68. package/dist/core/wallet.d.ts +0 -55
  69. package/dist/data-capture-7D5CL385.js +0 -490
  70. package/dist/email-AmK0INbZ.js +0 -344
  71. package/dist/embedded-wallet-Pn0I_XLn.js +0 -820
  72. package/dist/features-x8XNprEe.js +0 -274
  73. package/dist/hashTypedData-B50-z0AA.js +0 -197
  74. package/dist/if-defined-CdZSZ6UL.js +0 -10
  75. package/dist/index-4ewUtPPp.js +0 -7981
  76. package/dist/index-51l86yqx.js +0 -276
  77. package/dist/index-B6K56LF_.js +0 -85
  78. package/dist/index-BAmv9PxJ.js +0 -257
  79. package/dist/index-BEswjY9r.js +0 -117
  80. package/dist/index-BSKRq56S.js +0 -355
  81. package/dist/index-BaygXQxx.js +0 -172
  82. package/dist/index-BcPxaHr5.js +0 -118
  83. package/dist/index-Bjt7nGaJ.js +0 -199
  84. package/dist/index-BkTSyAJb.js +0 -21991
  85. package/dist/index-Bmnl7l2U.js +0 -555
  86. package/dist/index-BvPvouSq.js +0 -56
  87. package/dist/index-C-6iznUO.js +0 -174
  88. package/dist/index-C1QEJL-2.js +0 -572
  89. package/dist/index-C4M5s_AM.js +0 -228
  90. package/dist/index-CEqcN8QP.js +0 -1175
  91. package/dist/index-CM3YaYca.js +0 -8189
  92. package/dist/index-CclBLA5r.js +0 -517
  93. package/dist/index-ChTxJOiF.js +0 -46
  94. package/dist/index-CmAv0Tzr.js +0 -86
  95. package/dist/index-CmvoKY4x.js +0 -125
  96. package/dist/index-D7PmdQ9B.js +0 -1750
  97. package/dist/index-D7k2Pc4e.js +0 -1083
  98. package/dist/index-D7lmgqUR.js +0 -153
  99. package/dist/index-DG_-qYze.js +0 -107
  100. package/dist/index-DHot9Fdb.js +0 -218
  101. package/dist/index-DV2LrPtU.js +0 -123
  102. package/dist/index-DYBaJQ2W.js +0 -65
  103. package/dist/index-D_8VUmn1.js +0 -41543
  104. package/dist/index-D_gLn3rT.js +0 -100
  105. package/dist/index-DqcVUSC9.js +0 -62
  106. package/dist/index-I7VDqINw.js +0 -128
  107. package/dist/index-Oz72I9VP.js +0 -209
  108. package/dist/index-UclsHkJ0.js +0 -118
  109. package/dist/index-X8zir_1j.js +0 -110
  110. package/dist/index-XvlWKGCu.js +0 -1281
  111. package/dist/index-dO97xPlt.js +0 -171
  112. package/dist/index-uBeF6OAB.js +0 -387
  113. package/dist/index-zeA_RiCV.js +0 -159
  114. package/dist/localBatchGatewayRequest-BUZHGdjw.js +0 -91
  115. package/dist/onramp-CdnBuF0r.js +0 -855
  116. package/dist/parseSignature-CcyTNGr4.js +0 -3304
  117. package/dist/pay-with-exchange-CSM6WCOV.js +0 -525
  118. package/dist/property-Bd8U3_QP.js +0 -618
  119. package/dist/receive-DooMu4Dx.js +0 -232
  120. package/dist/ref-CpgjXAw7.js +0 -107
  121. package/dist/send-3T7CyYic.js +0 -1166
  122. package/dist/socials-Dt-iHL17.js +0 -620
  123. package/dist/swaps-CjA9Es42.js +0 -1760
  124. package/dist/transactions-nRm9DVzn.js +0 -37
  125. package/dist/ui/Modal.d.ts +0 -9
  126. package/dist/ui/index.d.ts +0 -6
  127. package/dist/w3m-modal-NV25AXhM.js +0 -1706
@@ -1,618 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright 2019 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */
6
- const O = globalThis, j = O.ShadowRoot && (O.ShadyCSS === void 0 || O.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, k = Symbol(), L = /* @__PURE__ */ new WeakMap();
7
- let nt = class {
8
- constructor(t, e, s) {
9
- if (this._$cssResult$ = !0, s !== k) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
- this.cssText = t, this.t = e;
11
- }
12
- get styleSheet() {
13
- let t = this.o;
14
- const e = this.t;
15
- if (j && t === void 0) {
16
- const s = e !== void 0 && e.length === 1;
17
- s && (t = L.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && L.set(e, t));
18
- }
19
- return t;
20
- }
21
- toString() {
22
- return this.cssText;
23
- }
24
- };
25
- const pt = (r) => new nt(typeof r == "string" ? r : r + "", void 0, k), It = (r, ...t) => {
26
- const e = r.length === 1 ? r[0] : t.reduce((s, i, o) => s + ((n) => {
27
- if (n._$cssResult$ === !0) return n.cssText;
28
- if (typeof n == "number") return n;
29
- throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
- })(i) + r[o + 1], r[0]);
31
- return new nt(e, r, k);
32
- }, $t = (r, t) => {
33
- if (j) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
34
- else for (const e of t) {
35
- const s = document.createElement("style"), i = O.litNonce;
36
- i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
37
- }
38
- }, I = j ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
39
- let e = "";
40
- for (const s of t.cssRules) e += s.cssText;
41
- return pt(e);
42
- })(r) : r;
43
- /**
44
- * @license
45
- * Copyright 2017 Google LLC
46
- * SPDX-License-Identifier: BSD-3-Clause
47
- */
48
- const { is: _t, defineProperty: ft, getOwnPropertyDescriptor: vt, getOwnPropertyNames: At, getOwnPropertySymbols: yt, getPrototypeOf: mt } = Object, m = globalThis, B = m.trustedTypes, gt = B ? B.emptyScript : "", V = m.reactiveElementPolyfillSupport, S = (r, t) => r, T = { toAttribute(r, t) {
49
- switch (t) {
50
- case Boolean:
51
- r = r ? gt : null;
52
- break;
53
- case Object:
54
- case Array:
55
- r = r == null ? r : JSON.stringify(r);
56
- }
57
- return r;
58
- }, fromAttribute(r, t) {
59
- let e = r;
60
- switch (t) {
61
- case Boolean:
62
- e = r !== null;
63
- break;
64
- case Number:
65
- e = r === null ? null : Number(r);
66
- break;
67
- case Object:
68
- case Array:
69
- try {
70
- e = JSON.parse(r);
71
- } catch {
72
- e = null;
73
- }
74
- }
75
- return e;
76
- } }, z = (r, t) => !_t(r, t), W = { attribute: !0, type: String, converter: T, reflect: !1, hasChanged: z };
77
- Symbol.metadata != null || (Symbol.metadata = Symbol("metadata")), m.litPropertyMetadata != null || (m.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
- class y extends HTMLElement {
79
- static addInitializer(t) {
80
- var e;
81
- this._$Ei(), ((e = this.l) != null ? e : this.l = []).push(t);
82
- }
83
- static get observedAttributes() {
84
- return this.finalize(), this._$Eh && [...this._$Eh.keys()];
85
- }
86
- static createProperty(t, e = W) {
87
- if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
88
- const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
89
- i !== void 0 && ft(this.prototype, t, i);
90
- }
91
- }
92
- static getPropertyDescriptor(t, e, s) {
93
- var i;
94
- const { get: o, set: n } = (i = vt(this.prototype, t)) != null ? i : { get() {
95
- return this[e];
96
- }, set(l) {
97
- this[e] = l;
98
- } };
99
- return { get() {
100
- return o == null ? void 0 : o.call(this);
101
- }, set(l) {
102
- const a = o == null ? void 0 : o.call(this);
103
- n.call(this, l), this.requestUpdate(t, a, s);
104
- }, configurable: !0, enumerable: !0 };
105
- }
106
- static getPropertyOptions(t) {
107
- var e;
108
- return (e = this.elementProperties.get(t)) != null ? e : W;
109
- }
110
- static _$Ei() {
111
- if (this.hasOwnProperty(S("elementProperties"))) return;
112
- const t = mt(this);
113
- t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
114
- }
115
- static finalize() {
116
- if (this.hasOwnProperty(S("finalized"))) return;
117
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(S("properties"))) {
118
- const e = this.properties, s = [...At(e), ...yt(e)];
119
- for (const i of s) this.createProperty(i, e[i]);
120
- }
121
- const t = this[Symbol.metadata];
122
- if (t !== null) {
123
- const e = litPropertyMetadata.get(t);
124
- if (e !== void 0) for (const [s, i] of e) this.elementProperties.set(s, i);
125
- }
126
- this._$Eh = /* @__PURE__ */ new Map();
127
- for (const [e, s] of this.elementProperties) {
128
- const i = this._$Eu(e, s);
129
- i !== void 0 && this._$Eh.set(i, e);
130
- }
131
- this.elementStyles = this.finalizeStyles(this.styles);
132
- }
133
- static finalizeStyles(t) {
134
- const e = [];
135
- if (Array.isArray(t)) {
136
- const s = new Set(t.flat(1 / 0).reverse());
137
- for (const i of s) e.unshift(I(i));
138
- } else t !== void 0 && e.push(I(t));
139
- return e;
140
- }
141
- static _$Eu(t, e) {
142
- const s = e.attribute;
143
- return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
144
- }
145
- constructor() {
146
- super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
147
- }
148
- _$Ev() {
149
- var t;
150
- this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
151
- }
152
- addController(t) {
153
- var e, s;
154
- ((e = this._$EO) != null ? e : this._$EO = /* @__PURE__ */ new Set()).add(t), this.renderRoot !== void 0 && this.isConnected && ((s = t.hostConnected) == null || s.call(t));
155
- }
156
- removeController(t) {
157
- var e;
158
- (e = this._$EO) == null || e.delete(t);
159
- }
160
- _$E_() {
161
- const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
162
- for (const s of e.keys()) this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
163
- t.size > 0 && (this._$Ep = t);
164
- }
165
- createRenderRoot() {
166
- var t;
167
- const e = (t = this.shadowRoot) != null ? t : this.attachShadow(this.constructor.shadowRootOptions);
168
- return $t(e, this.constructor.elementStyles), e;
169
- }
170
- connectedCallback() {
171
- var t;
172
- this.renderRoot != null || (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
173
- var s;
174
- return (s = e.hostConnected) == null ? void 0 : s.call(e);
175
- });
176
- }
177
- enableUpdating(t) {
178
- }
179
- disconnectedCallback() {
180
- var t;
181
- (t = this._$EO) == null || t.forEach((e) => {
182
- var s;
183
- return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
184
- });
185
- }
186
- attributeChangedCallback(t, e, s) {
187
- this._$AK(t, s);
188
- }
189
- _$EC(t, e) {
190
- var s;
191
- const i = this.constructor.elementProperties.get(t), o = this.constructor._$Eu(t, i);
192
- if (o !== void 0 && i.reflect === !0) {
193
- const n = (((s = i.converter) == null ? void 0 : s.toAttribute) !== void 0 ? i.converter : T).toAttribute(e, i.type);
194
- this._$Em = t, n == null ? this.removeAttribute(o) : this.setAttribute(o, n), this._$Em = null;
195
- }
196
- }
197
- _$AK(t, e) {
198
- var s;
199
- const i = this.constructor, o = i._$Eh.get(t);
200
- if (o !== void 0 && this._$Em !== o) {
201
- const n = i.getPropertyOptions(o), l = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((s = n.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? n.converter : T;
202
- this._$Em = o, this[o] = l.fromAttribute(e, n.type), this._$Em = null;
203
- }
204
- }
205
- requestUpdate(t, e, s) {
206
- var i;
207
- if (t !== void 0) {
208
- if (s != null || (s = this.constructor.getPropertyOptions(t)), !((i = s.hasChanged) != null ? i : z)(this[t], e)) return;
209
- this.P(t, e, s);
210
- }
211
- this.isUpdatePending === !1 && (this._$ES = this._$ET());
212
- }
213
- P(t, e, s) {
214
- var i;
215
- this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && ((i = this._$Ej) != null ? i : this._$Ej = /* @__PURE__ */ new Set()).add(t);
216
- }
217
- async _$ET() {
218
- this.isUpdatePending = !0;
219
- try {
220
- await this._$ES;
221
- } catch (e) {
222
- Promise.reject(e);
223
- }
224
- const t = this.scheduleUpdate();
225
- return t != null && await t, !this.isUpdatePending;
226
- }
227
- scheduleUpdate() {
228
- return this.performUpdate();
229
- }
230
- performUpdate() {
231
- var t;
232
- if (!this.isUpdatePending) return;
233
- if (!this.hasUpdated) {
234
- if (this.renderRoot != null || (this.renderRoot = this.createRenderRoot()), this._$Ep) {
235
- for (const [o, n] of this._$Ep) this[o] = n;
236
- this._$Ep = void 0;
237
- }
238
- const i = this.constructor.elementProperties;
239
- if (i.size > 0) for (const [o, n] of i) n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], n);
240
- }
241
- let e = !1;
242
- const s = this._$AL;
243
- try {
244
- e = this.shouldUpdate(s), e ? (this.willUpdate(s), (t = this._$EO) == null || t.forEach((i) => {
245
- var o;
246
- return (o = i.hostUpdate) == null ? void 0 : o.call(i);
247
- }), this.update(s)) : this._$EU();
248
- } catch (i) {
249
- throw e = !1, this._$EU(), i;
250
- }
251
- e && this._$AE(s);
252
- }
253
- willUpdate(t) {
254
- }
255
- _$AE(t) {
256
- var e;
257
- (e = this._$EO) == null || e.forEach((s) => {
258
- var i;
259
- return (i = s.hostUpdated) == null ? void 0 : i.call(s);
260
- }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
261
- }
262
- _$EU() {
263
- this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
264
- }
265
- get updateComplete() {
266
- return this.getUpdateComplete();
267
- }
268
- getUpdateComplete() {
269
- return this._$ES;
270
- }
271
- shouldUpdate(t) {
272
- return !0;
273
- }
274
- update(t) {
275
- this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
276
- }
277
- updated(t) {
278
- }
279
- firstUpdated(t) {
280
- }
281
- }
282
- var q;
283
- y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[S("elementProperties")] = /* @__PURE__ */ new Map(), y[S("finalized")] = /* @__PURE__ */ new Map(), V == null || V({ ReactiveElement: y }), ((q = m.reactiveElementVersions) != null ? q : m.reactiveElementVersions = []).push("2.0.4");
284
- /**
285
- * @license
286
- * Copyright 2017 Google LLC
287
- * SPDX-License-Identifier: BSD-3-Clause
288
- */
289
- const H = globalThis, M = H.trustedTypes, J = M ? M.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, ot = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, lt = "?" + _, bt = `<${lt}>`, A = document, w = () => A.createComment(""), P = (r) => r === null || typeof r != "object" && typeof r != "function", at = Array.isArray, Et = (r) => at(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", R = `[
290
- \f\r]`, E = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, K = /-->/g, Z = />/g, f = RegExp(`>|${R}(?:([^\\s"'>=/]+)(${R}*=${R}*(?:[^
291
- \f\r"'\`<>=]|("|')|))|$)`, "g"), F = /'/g, G = /"/g, ht = /^(?:script|style|textarea|title)$/i, ct = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), Bt = ct(1), Vt = ct(2), g = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Q = /* @__PURE__ */ new WeakMap(), v = A.createTreeWalker(A, 129);
292
- function ut(r, t) {
293
- if (!Array.isArray(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
294
- return J !== void 0 ? J.createHTML(t) : t;
295
- }
296
- const St = (r, t) => {
297
- const e = r.length - 1, s = [];
298
- let i, o = t === 2 ? "<svg>" : "", n = E;
299
- for (let l = 0; l < e; l++) {
300
- const a = r[l];
301
- let h, u, c = -1, p = 0;
302
- for (; p < a.length && (n.lastIndex = p, u = n.exec(a), u !== null); ) p = n.lastIndex, n === E ? u[1] === "!--" ? n = K : u[1] !== void 0 ? n = Z : u[2] !== void 0 ? (ht.test(u[2]) && (i = RegExp("</" + u[2], "g")), n = f) : u[3] !== void 0 && (n = f) : n === f ? u[0] === ">" ? (n = i ?? E, c = -1) : u[1] === void 0 ? c = -2 : (c = n.lastIndex - u[2].length, h = u[1], n = u[3] === void 0 ? f : u[3] === '"' ? G : F) : n === G || n === F ? n = f : n === K || n === Z ? n = E : (n = f, i = void 0);
303
- const $ = n === f && r[l + 1].startsWith("/>") ? " " : "";
304
- o += n === E ? a + bt : c >= 0 ? (s.push(h), a.slice(0, c) + ot + a.slice(c) + _ + $) : a + _ + (c === -2 ? l : $);
305
- }
306
- return [ut(r, o + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
307
- };
308
- class C {
309
- constructor({ strings: t, _$litType$: e }, s) {
310
- let i;
311
- this.parts = [];
312
- let o = 0, n = 0;
313
- const l = t.length - 1, a = this.parts, [h, u] = St(t, e);
314
- if (this.el = C.createElement(h, s), v.currentNode = this.el.content, e === 2) {
315
- const c = this.el.content.firstChild;
316
- c.replaceWith(...c.childNodes);
317
- }
318
- for (; (i = v.nextNode()) !== null && a.length < l; ) {
319
- if (i.nodeType === 1) {
320
- if (i.hasAttributes()) for (const c of i.getAttributeNames()) if (c.endsWith(ot)) {
321
- const p = u[n++], $ = i.getAttribute(c).split(_), U = /([.?@])?(.*)/.exec(p);
322
- a.push({ type: 1, index: o, name: U[2], strings: $, ctor: U[1] === "." ? Pt : U[1] === "?" ? Ct : U[1] === "@" ? Ut : N }), i.removeAttribute(c);
323
- } else c.startsWith(_) && (a.push({ type: 6, index: o }), i.removeAttribute(c));
324
- if (ht.test(i.tagName)) {
325
- const c = i.textContent.split(_), p = c.length - 1;
326
- if (p > 0) {
327
- i.textContent = M ? M.emptyScript : "";
328
- for (let $ = 0; $ < p; $++) i.append(c[$], w()), v.nextNode(), a.push({ type: 2, index: ++o });
329
- i.append(c[p], w());
330
- }
331
- }
332
- } else if (i.nodeType === 8) if (i.data === lt) a.push({ type: 2, index: o });
333
- else {
334
- let c = -1;
335
- for (; (c = i.data.indexOf(_, c + 1)) !== -1; ) a.push({ type: 7, index: o }), c += _.length - 1;
336
- }
337
- o++;
338
- }
339
- }
340
- static createElement(t, e) {
341
- const s = A.createElement("template");
342
- return s.innerHTML = t, s;
343
- }
344
- }
345
- function b(r, t, e = r, s) {
346
- var i, o, n;
347
- if (t === g) return t;
348
- let l = s !== void 0 ? (i = e._$Co) == null ? void 0 : i[s] : e._$Cl;
349
- const a = P(t) ? void 0 : t._$litDirective$;
350
- return (l == null ? void 0 : l.constructor) !== a && ((o = l == null ? void 0 : l._$AO) == null || o.call(l, !1), a === void 0 ? l = void 0 : (l = new a(r), l._$AT(r, e, s)), s !== void 0 ? ((n = e._$Co) != null ? n : e._$Co = [])[s] = l : e._$Cl = l), l !== void 0 && (t = b(r, l._$AS(r, t.values), l, s)), t;
351
- }
352
- class wt {
353
- constructor(t, e) {
354
- this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
355
- }
356
- get parentNode() {
357
- return this._$AM.parentNode;
358
- }
359
- get _$AU() {
360
- return this._$AM._$AU;
361
- }
362
- u(t) {
363
- var e;
364
- const { el: { content: s }, parts: i } = this._$AD, o = ((e = t == null ? void 0 : t.creationScope) != null ? e : A).importNode(s, !0);
365
- v.currentNode = o;
366
- let n = v.nextNode(), l = 0, a = 0, h = i[0];
367
- for (; h !== void 0; ) {
368
- if (l === h.index) {
369
- let u;
370
- h.type === 2 ? u = new D(n, n.nextSibling, this, t) : h.type === 1 ? u = new h.ctor(n, h.name, h.strings, this, t) : h.type === 6 && (u = new Ot(n, this, t)), this._$AV.push(u), h = i[++a];
371
- }
372
- l !== (h == null ? void 0 : h.index) && (n = v.nextNode(), l++);
373
- }
374
- return v.currentNode = A, o;
375
- }
376
- p(t) {
377
- let e = 0;
378
- for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
379
- }
380
- }
381
- let D = class dt {
382
- get _$AU() {
383
- var t, e;
384
- return (e = (t = this._$AM) == null ? void 0 : t._$AU) != null ? e : this._$Cv;
385
- }
386
- constructor(t, e, s, i) {
387
- var o;
388
- this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = (o = i == null ? void 0 : i.isConnected) != null ? o : !0;
389
- }
390
- get parentNode() {
391
- let t = this._$AA.parentNode;
392
- const e = this._$AM;
393
- return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
394
- }
395
- get startNode() {
396
- return this._$AA;
397
- }
398
- get endNode() {
399
- return this._$AB;
400
- }
401
- _$AI(t, e = this) {
402
- t = b(this, t, e), P(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== g && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Et(t) ? this.k(t) : this._(t);
403
- }
404
- S(t) {
405
- return this._$AA.parentNode.insertBefore(t, this._$AB);
406
- }
407
- T(t) {
408
- this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
409
- }
410
- _(t) {
411
- this._$AH !== d && P(this._$AH) ? this._$AA.nextSibling.data = t : this.T(A.createTextNode(t)), this._$AH = t;
412
- }
413
- $(t) {
414
- var e;
415
- const { values: s, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = C.createElement(ut(i.h, i.h[0]), this.options)), i);
416
- if (((e = this._$AH) == null ? void 0 : e._$AD) === o) this._$AH.p(s);
417
- else {
418
- const n = new wt(o, this), l = n.u(this.options);
419
- n.p(s), this.T(l), this._$AH = n;
420
- }
421
- }
422
- _$AC(t) {
423
- let e = Q.get(t.strings);
424
- return e === void 0 && Q.set(t.strings, e = new C(t)), e;
425
- }
426
- k(t) {
427
- at(this._$AH) || (this._$AH = [], this._$AR());
428
- const e = this._$AH;
429
- let s, i = 0;
430
- for (const o of t) i === e.length ? e.push(s = new dt(this.S(w()), this.S(w()), this, this.options)) : s = e[i], s._$AI(o), i++;
431
- i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
432
- }
433
- _$AR(t = this._$AA.nextSibling, e) {
434
- var s;
435
- for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t && t !== this._$AB; ) {
436
- const i = t.nextSibling;
437
- t.remove(), t = i;
438
- }
439
- }
440
- setConnected(t) {
441
- var e;
442
- this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
443
- }
444
- };
445
- class N {
446
- get tagName() {
447
- return this.element.tagName;
448
- }
449
- get _$AU() {
450
- return this._$AM._$AU;
451
- }
452
- constructor(t, e, s, i, o) {
453
- this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = o, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = d;
454
- }
455
- _$AI(t, e = this, s, i) {
456
- const o = this.strings;
457
- let n = !1;
458
- if (o === void 0) t = b(this, t, e, 0), n = !P(t) || t !== this._$AH && t !== g, n && (this._$AH = t);
459
- else {
460
- const l = t;
461
- let a, h;
462
- for (t = o[0], a = 0; a < o.length - 1; a++) h = b(this, l[s + a], e, a), h === g && (h = this._$AH[a]), n || (n = !P(h) || h !== this._$AH[a]), h === d ? t = d : t !== d && (t += (h ?? "") + o[a + 1]), this._$AH[a] = h;
463
- }
464
- n && !i && this.j(t);
465
- }
466
- j(t) {
467
- t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
468
- }
469
- }
470
- class Pt extends N {
471
- constructor() {
472
- super(...arguments), this.type = 3;
473
- }
474
- j(t) {
475
- this.element[this.name] = t === d ? void 0 : t;
476
- }
477
- }
478
- class Ct extends N {
479
- constructor() {
480
- super(...arguments), this.type = 4;
481
- }
482
- j(t) {
483
- this.element.toggleAttribute(this.name, !!t && t !== d);
484
- }
485
- }
486
- class Ut extends N {
487
- constructor(t, e, s, i, o) {
488
- super(t, e, s, i, o), this.type = 5;
489
- }
490
- _$AI(t, e = this) {
491
- var s;
492
- if ((t = (s = b(this, t, e, 0)) != null ? s : d) === g) return;
493
- const i = this._$AH, o = t === d && i !== d || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== d && (i === d || o);
494
- o && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
495
- }
496
- handleEvent(t) {
497
- var e, s;
498
- typeof this._$AH == "function" ? this._$AH.call((s = (e = this.options) == null ? void 0 : e.host) != null ? s : this.element, t) : this._$AH.handleEvent(t);
499
- }
500
- }
501
- class Ot {
502
- constructor(t, e, s) {
503
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
504
- }
505
- get _$AU() {
506
- return this._$AM._$AU;
507
- }
508
- _$AI(t) {
509
- b(this, t);
510
- }
511
- }
512
- const X = H.litHtmlPolyfillSupport;
513
- var Y;
514
- X == null || X(C, D), ((Y = H.litHtmlVersions) != null ? Y : H.litHtmlVersions = []).push("3.1.4");
515
- const xt = (r, t, e) => {
516
- var s, i;
517
- const o = (s = e == null ? void 0 : e.renderBefore) != null ? s : t;
518
- let n = o._$litPart$;
519
- if (n === void 0) {
520
- const l = (i = e == null ? void 0 : e.renderBefore) != null ? i : null;
521
- o._$litPart$ = n = new D(t.insertBefore(w(), l), l, void 0, e ?? {});
522
- }
523
- return n._$AI(r), n;
524
- };
525
- /**
526
- * @license
527
- * Copyright 2017 Google LLC
528
- * SPDX-License-Identifier: BSD-3-Clause
529
- */
530
- class x extends y {
531
- constructor() {
532
- super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
533
- }
534
- createRenderRoot() {
535
- var t;
536
- const e = super.createRenderRoot();
537
- return (t = this.renderOptions).renderBefore != null || (t.renderBefore = e.firstChild), e;
538
- }
539
- update(t) {
540
- const e = this.render();
541
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = xt(e, this.renderRoot, this.renderOptions);
542
- }
543
- connectedCallback() {
544
- var t;
545
- super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
546
- }
547
- disconnectedCallback() {
548
- var t;
549
- super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
550
- }
551
- render() {
552
- return g;
553
- }
554
- }
555
- var tt;
556
- x._$litElement$ = !0, x.finalized = !0, (tt = globalThis.litElementHydrateSupport) == null || tt.call(globalThis, { LitElement: x });
557
- const et = globalThis.litElementPolyfillSupport;
558
- et == null || et({ LitElement: x });
559
- var st;
560
- ((st = globalThis.litElementVersions) != null ? st : globalThis.litElementVersions = []).push("4.0.6");
561
- /**
562
- * @license
563
- * Copyright 2017 Google LLC
564
- * SPDX-License-Identifier: BSD-3-Clause
565
- */
566
- const Wt = (r) => (t, e) => {
567
- e !== void 0 ? e.addInitializer(() => {
568
- customElements.define(r, t);
569
- }) : customElements.define(r, t);
570
- };
571
- var Tt = Object.defineProperty, Ht = Object.defineProperties, Mt = Object.getOwnPropertyDescriptors, it = Object.getOwnPropertySymbols, Nt = Object.prototype.hasOwnProperty, Rt = Object.prototype.propertyIsEnumerable, rt = (r, t, e) => t in r ? Tt(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, jt = (r, t) => {
572
- for (var e in t || (t = {}))
573
- Nt.call(t, e) && rt(r, e, t[e]);
574
- if (it)
575
- for (var e of it(t))
576
- Rt.call(t, e) && rt(r, e, t[e]);
577
- return r;
578
- }, kt = (r, t) => Ht(r, Mt(t));
579
- /**
580
- * @license
581
- * Copyright 2017 Google LLC
582
- * SPDX-License-Identifier: BSD-3-Clause
583
- */
584
- const zt = { attribute: !0, type: String, converter: T, reflect: !1, hasChanged: z }, Dt = (r = zt, t, e) => {
585
- const { kind: s, metadata: i } = e;
586
- let o = globalThis.litPropertyMetadata.get(i);
587
- if (o === void 0 && globalThis.litPropertyMetadata.set(i, o = /* @__PURE__ */ new Map()), o.set(e.name, r), s === "accessor") {
588
- const { name: n } = e;
589
- return { set(l) {
590
- const a = t.get.call(this);
591
- t.set.call(this, l), this.requestUpdate(n, a, r);
592
- }, init(l) {
593
- return l !== void 0 && this.P(n, void 0, r), l;
594
- } };
595
- }
596
- if (s === "setter") {
597
- const { name: n } = e;
598
- return function(l) {
599
- const a = this[n];
600
- t.call(this, l), this.requestUpdate(n, a, r);
601
- };
602
- }
603
- throw Error("Unsupported decorator location: " + s);
604
- };
605
- function qt(r) {
606
- return (t, e) => typeof e == "object" ? Dt(r, t, e) : ((s, i, o) => {
607
- const n = i.hasOwnProperty(o);
608
- return i.constructor.createProperty(o, n ? kt(jt({}, s), { wrapped: !0 }) : s), n ? Object.getOwnPropertyDescriptor(i, o) : void 0;
609
- })(r, t, e);
610
- }
611
- export {
612
- qt as O,
613
- Bt as Y,
614
- x as n,
615
- It as p,
616
- Wt as s,
617
- Vt as t
618
- };