@one-payments/web-components 1.1.17 → 1.1.19

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/index.js CHANGED
@@ -3,18 +3,18 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const ye = globalThis, qe = ye.ShadowRoot && (ye.ShadyCSS === void 0 || ye.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Ve = Symbol(), Je = /* @__PURE__ */ new WeakMap();
7
- let ht = class {
8
- constructor(e, r, n) {
9
- if (this._$cssResult$ = !0, n !== Ve) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
- this.cssText = e, this.t = r;
6
+ const ye = globalThis, Ve = ye.ShadowRoot && (ye.ShadyCSS === void 0 || ye.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Ze = Symbol(), Ge = /* @__PURE__ */ new WeakMap();
7
+ let ut = class {
8
+ constructor(e, n, r) {
9
+ if (this._$cssResult$ = !0, r !== Ze) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
10
+ this.cssText = e, this.t = n;
11
11
  }
12
12
  get styleSheet() {
13
13
  let e = this.o;
14
- const r = this.t;
15
- if (qe && e === void 0) {
16
- const n = r !== void 0 && r.length === 1;
17
- n && (e = Je.get(r)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), n && Je.set(r, e));
14
+ const n = this.t;
15
+ if (Ve && e === void 0) {
16
+ const r = n !== void 0 && n.length === 1;
17
+ r && (e = Ge.get(n)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), r && Ge.set(n, e));
18
18
  }
19
19
  return e;
20
20
  }
@@ -22,33 +22,33 @@ let ht = class {
22
22
  return this.cssText;
23
23
  }
24
24
  };
25
- const Ft = (t) => new ht(typeof t == "string" ? t : t + "", void 0, Ve), Lt = (t, ...e) => {
26
- const r = t.length === 1 ? t[0] : e.reduce((n, i, o) => n + ((s) => {
25
+ const Bt = (t) => new ut(typeof t == "string" ? t : t + "", void 0, Ze), Ut = (t, ...e) => {
26
+ const n = t.length === 1 ? t[0] : e.reduce((r, i, o) => r + ((s) => {
27
27
  if (s._$cssResult$ === !0) return s.cssText;
28
28
  if (typeof s == "number") return s;
29
29
  throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
30
  })(i) + t[o + 1], t[0]);
31
- return new ht(r, t, Ve);
32
- }, Bt = (t, e) => {
33
- if (qe) t.adoptedStyleSheets = e.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet);
34
- else for (const r of e) {
35
- const n = document.createElement("style"), i = ye.litNonce;
36
- i !== void 0 && n.setAttribute("nonce", i), n.textContent = r.cssText, t.appendChild(n);
37
- }
38
- }, We = qe ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
39
- let r = "";
40
- for (const n of e.cssRules) r += n.cssText;
41
- return Ft(r);
31
+ return new ut(n, t, Ze);
32
+ }, zt = (t, e) => {
33
+ if (Ve) t.adoptedStyleSheets = e.map((n) => n instanceof CSSStyleSheet ? n : n.styleSheet);
34
+ else for (const n of e) {
35
+ const r = document.createElement("style"), i = ye.litNonce;
36
+ i !== void 0 && r.setAttribute("nonce", i), r.textContent = n.cssText, t.appendChild(r);
37
+ }
38
+ }, _e = Ve ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
39
+ let n = "";
40
+ for (const r of e.cssRules) n += r.cssText;
41
+ return Bt(n);
42
42
  })(t) : t;
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: Ut, defineProperty: Ot, getOwnPropertyDescriptor: zt, getOwnPropertyNames: qt, getOwnPropertySymbols: Vt, getPrototypeOf: Ht } = Object, O = globalThis, Xe = O.trustedTypes, jt = Xe ? Xe.emptyScript : "", Ie = O.reactiveElementPolyfillSupport, ie = (t, e) => t, be = { toAttribute(t, e) {
48
+ const { is: qt, defineProperty: Ot, getOwnPropertyDescriptor: jt, getOwnPropertyNames: Vt, getOwnPropertySymbols: Zt, getPrototypeOf: Yt } = Object, O = globalThis, $e = O.trustedTypes, Ht = $e ? $e.emptyScript : "", Ie = O.reactiveElementPolyfillSupport, ie = (t, e) => t, be = { toAttribute(t, e) {
49
49
  switch (e) {
50
50
  case Boolean:
51
- t = t ? jt : null;
51
+ t = t ? Ht : null;
52
52
  break;
53
53
  case Object:
54
54
  case Array:
@@ -56,24 +56,24 @@ const { is: Ut, defineProperty: Ot, getOwnPropertyDescriptor: zt, getOwnProperty
56
56
  }
57
57
  return t;
58
58
  }, fromAttribute(t, e) {
59
- let r = t;
59
+ let n = t;
60
60
  switch (e) {
61
61
  case Boolean:
62
- r = t !== null;
62
+ n = t !== null;
63
63
  break;
64
64
  case Number:
65
- r = t === null ? null : Number(t);
65
+ n = t === null ? null : Number(t);
66
66
  break;
67
67
  case Object:
68
68
  case Array:
69
69
  try {
70
- r = JSON.parse(t);
70
+ n = JSON.parse(t);
71
71
  } catch {
72
- r = null;
72
+ n = null;
73
73
  }
74
74
  }
75
- return r;
76
- } }, He = (t, e) => !Ut(t, e), et = { attribute: !0, type: String, converter: be, reflect: !1, useDefault: !1, hasChanged: He };
75
+ return n;
76
+ } }, Ye = (t, e) => !qt(t, e), et = { attribute: !0, type: String, converter: be, reflect: !1, useDefault: !1, hasChanged: Ye };
77
77
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), O.litPropertyMetadata ?? (O.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
78
  let Q = class extends HTMLElement {
79
79
  static addInitializer(e) {
@@ -82,21 +82,21 @@ let Q = class extends HTMLElement {
82
82
  static get observedAttributes() {
83
83
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
84
84
  }
85
- static createProperty(e, r = et) {
86
- if (r.state && (r.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((r = Object.create(r)).wrapped = !0), this.elementProperties.set(e, r), !r.noAccessor) {
87
- const n = Symbol(), i = this.getPropertyDescriptor(e, n, r);
85
+ static createProperty(e, n = et) {
86
+ if (n.state && (n.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((n = Object.create(n)).wrapped = !0), this.elementProperties.set(e, n), !n.noAccessor) {
87
+ const r = Symbol(), i = this.getPropertyDescriptor(e, r, n);
88
88
  i !== void 0 && Ot(this.prototype, e, i);
89
89
  }
90
90
  }
91
- static getPropertyDescriptor(e, r, n) {
92
- const { get: i, set: o } = zt(this.prototype, e) ?? { get() {
93
- return this[r];
91
+ static getPropertyDescriptor(e, n, r) {
92
+ const { get: i, set: o } = jt(this.prototype, e) ?? { get() {
93
+ return this[n];
94
94
  }, set(s) {
95
- this[r] = s;
95
+ this[n] = s;
96
96
  } };
97
97
  return { get: i, set(s) {
98
98
  const l = i == null ? void 0 : i.call(this);
99
- o == null || o.call(this, s), this.requestUpdate(e, l, n);
99
+ o == null || o.call(this, s), this.requestUpdate(e, l, r);
100
100
  }, configurable: !0, enumerable: !0 };
101
101
  }
102
102
  static getPropertyOptions(e) {
@@ -104,118 +104,118 @@ let Q = class extends HTMLElement {
104
104
  }
105
105
  static _$Ei() {
106
106
  if (this.hasOwnProperty(ie("elementProperties"))) return;
107
- const e = Ht(this);
107
+ const e = Yt(this);
108
108
  e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
109
109
  }
110
110
  static finalize() {
111
111
  if (this.hasOwnProperty(ie("finalized"))) return;
112
112
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ie("properties"))) {
113
- const r = this.properties, n = [...qt(r), ...Vt(r)];
114
- for (const i of n) this.createProperty(i, r[i]);
113
+ const n = this.properties, r = [...Vt(n), ...Zt(n)];
114
+ for (const i of r) this.createProperty(i, n[i]);
115
115
  }
116
116
  const e = this[Symbol.metadata];
117
117
  if (e !== null) {
118
- const r = litPropertyMetadata.get(e);
119
- if (r !== void 0) for (const [n, i] of r) this.elementProperties.set(n, i);
118
+ const n = litPropertyMetadata.get(e);
119
+ if (n !== void 0) for (const [r, i] of n) this.elementProperties.set(r, i);
120
120
  }
121
121
  this._$Eh = /* @__PURE__ */ new Map();
122
- for (const [r, n] of this.elementProperties) {
123
- const i = this._$Eu(r, n);
124
- i !== void 0 && this._$Eh.set(i, r);
122
+ for (const [n, r] of this.elementProperties) {
123
+ const i = this._$Eu(n, r);
124
+ i !== void 0 && this._$Eh.set(i, n);
125
125
  }
126
126
  this.elementStyles = this.finalizeStyles(this.styles);
127
127
  }
128
128
  static finalizeStyles(e) {
129
- const r = [];
129
+ const n = [];
130
130
  if (Array.isArray(e)) {
131
- const n = new Set(e.flat(1 / 0).reverse());
132
- for (const i of n) r.unshift(We(i));
133
- } else e !== void 0 && r.push(We(e));
134
- return r;
131
+ const r = new Set(e.flat(1 / 0).reverse());
132
+ for (const i of r) n.unshift(_e(i));
133
+ } else e !== void 0 && n.push(_e(e));
134
+ return n;
135
135
  }
136
- static _$Eu(e, r) {
137
- const n = r.attribute;
138
- return n === !1 ? void 0 : typeof n == "string" ? n : typeof e == "string" ? e.toLowerCase() : void 0;
136
+ static _$Eu(e, n) {
137
+ const r = n.attribute;
138
+ return r === !1 ? void 0 : typeof r == "string" ? r : typeof e == "string" ? e.toLowerCase() : void 0;
139
139
  }
140
140
  constructor() {
141
141
  super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
142
142
  }
143
143
  _$Ev() {
144
144
  var e;
145
- this._$ES = new Promise((r) => this.enableUpdating = r), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (e = this.constructor.l) == null || e.forEach((r) => r(this));
145
+ this._$ES = new Promise((n) => this.enableUpdating = n), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (e = this.constructor.l) == null || e.forEach((n) => n(this));
146
146
  }
147
147
  addController(e) {
148
- var r;
149
- (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(e), this.renderRoot !== void 0 && this.isConnected && ((r = e.hostConnected) == null || r.call(e));
148
+ var n;
149
+ (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(e), this.renderRoot !== void 0 && this.isConnected && ((n = e.hostConnected) == null || n.call(e));
150
150
  }
151
151
  removeController(e) {
152
- var r;
153
- (r = this._$EO) == null || r.delete(e);
152
+ var n;
153
+ (n = this._$EO) == null || n.delete(e);
154
154
  }
155
155
  _$E_() {
156
- const e = /* @__PURE__ */ new Map(), r = this.constructor.elementProperties;
157
- for (const n of r.keys()) this.hasOwnProperty(n) && (e.set(n, this[n]), delete this[n]);
156
+ const e = /* @__PURE__ */ new Map(), n = this.constructor.elementProperties;
157
+ for (const r of n.keys()) this.hasOwnProperty(r) && (e.set(r, this[r]), delete this[r]);
158
158
  e.size > 0 && (this._$Ep = e);
159
159
  }
160
160
  createRenderRoot() {
161
161
  const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
162
- return Bt(e, this.constructor.elementStyles), e;
162
+ return zt(e, this.constructor.elementStyles), e;
163
163
  }
164
164
  connectedCallback() {
165
165
  var e;
166
- this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (e = this._$EO) == null || e.forEach((r) => {
167
- var n;
168
- return (n = r.hostConnected) == null ? void 0 : n.call(r);
166
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (e = this._$EO) == null || e.forEach((n) => {
167
+ var r;
168
+ return (r = n.hostConnected) == null ? void 0 : r.call(n);
169
169
  });
170
170
  }
171
171
  enableUpdating(e) {
172
172
  }
173
173
  disconnectedCallback() {
174
174
  var e;
175
- (e = this._$EO) == null || e.forEach((r) => {
176
- var n;
177
- return (n = r.hostDisconnected) == null ? void 0 : n.call(r);
175
+ (e = this._$EO) == null || e.forEach((n) => {
176
+ var r;
177
+ return (r = n.hostDisconnected) == null ? void 0 : r.call(n);
178
178
  });
179
179
  }
180
- attributeChangedCallback(e, r, n) {
181
- this._$AK(e, n);
180
+ attributeChangedCallback(e, n, r) {
181
+ this._$AK(e, r);
182
182
  }
183
- _$ET(e, r) {
183
+ _$ET(e, n) {
184
184
  var o;
185
- const n = this.constructor.elementProperties.get(e), i = this.constructor._$Eu(e, n);
186
- if (i !== void 0 && n.reflect === !0) {
187
- const s = (((o = n.converter) == null ? void 0 : o.toAttribute) !== void 0 ? n.converter : be).toAttribute(r, n.type);
185
+ const r = this.constructor.elementProperties.get(e), i = this.constructor._$Eu(e, r);
186
+ if (i !== void 0 && r.reflect === !0) {
187
+ const s = (((o = r.converter) == null ? void 0 : o.toAttribute) !== void 0 ? r.converter : be).toAttribute(n, r.type);
188
188
  this._$Em = e, s == null ? this.removeAttribute(i) : this.setAttribute(i, s), this._$Em = null;
189
189
  }
190
190
  }
191
- _$AK(e, r) {
191
+ _$AK(e, n) {
192
192
  var o, s;
193
- const n = this.constructor, i = n._$Eh.get(e);
193
+ const r = this.constructor, i = r._$Eh.get(e);
194
194
  if (i !== void 0 && this._$Em !== i) {
195
- const l = n.getPropertyOptions(i), a = typeof l.converter == "function" ? { fromAttribute: l.converter } : ((o = l.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? l.converter : be;
195
+ const l = r.getPropertyOptions(i), a = typeof l.converter == "function" ? { fromAttribute: l.converter } : ((o = l.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? l.converter : be;
196
196
  this._$Em = i;
197
- const d = a.fromAttribute(r, l.type);
197
+ const d = a.fromAttribute(n, l.type);
198
198
  this[i] = d ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? d, this._$Em = null;
199
199
  }
200
200
  }
201
- requestUpdate(e, r, n) {
201
+ requestUpdate(e, n, r) {
202
202
  var i;
203
203
  if (e !== void 0) {
204
204
  const o = this.constructor, s = this[e];
205
- if (n ?? (n = o.getPropertyOptions(e)), !((n.hasChanged ?? He)(s, r) || n.useDefault && n.reflect && s === ((i = this._$Ej) == null ? void 0 : i.get(e)) && !this.hasAttribute(o._$Eu(e, n)))) return;
206
- this.C(e, r, n);
205
+ if (r ?? (r = o.getPropertyOptions(e)), !((r.hasChanged ?? Ye)(s, n) || r.useDefault && r.reflect && s === ((i = this._$Ej) == null ? void 0 : i.get(e)) && !this.hasAttribute(o._$Eu(e, r)))) return;
206
+ this.C(e, n, r);
207
207
  }
208
208
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
209
209
  }
210
- C(e, r, { useDefault: n, reflect: i, wrapped: o }, s) {
211
- n && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, s ?? r ?? this[e]), o !== !0 || s !== void 0) || (this._$AL.has(e) || (this.hasUpdated || n || (r = void 0), this._$AL.set(e, r)), i === !0 && this._$Em !== e && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(e));
210
+ C(e, n, { useDefault: r, reflect: i, wrapped: o }, s) {
211
+ r && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(e) && (this._$Ej.set(e, s ?? n ?? this[e]), o !== !0 || s !== void 0) || (this._$AL.has(e) || (this.hasUpdated || r || (n = void 0), this._$AL.set(e, n)), i === !0 && this._$Em !== e && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(e));
212
212
  }
213
213
  async _$EP() {
214
214
  this.isUpdatePending = !0;
215
215
  try {
216
216
  await this._$ES;
217
- } catch (r) {
218
- Promise.reject(r);
217
+ } catch (n) {
218
+ Promise.reject(n);
219
219
  }
220
220
  const e = this.scheduleUpdate();
221
221
  return e != null && await e, !this.isUpdatePending;
@@ -224,7 +224,7 @@ let Q = class extends HTMLElement {
224
224
  return this.performUpdate();
225
225
  }
226
226
  performUpdate() {
227
- var n;
227
+ var r;
228
228
  if (!this.isUpdatePending) return;
229
229
  if (!this.hasUpdated) {
230
230
  if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
@@ -238,24 +238,24 @@ let Q = class extends HTMLElement {
238
238
  }
239
239
  }
240
240
  let e = !1;
241
- const r = this._$AL;
241
+ const n = this._$AL;
242
242
  try {
243
- e = this.shouldUpdate(r), e ? (this.willUpdate(r), (n = this._$EO) == null || n.forEach((i) => {
243
+ e = this.shouldUpdate(n), e ? (this.willUpdate(n), (r = this._$EO) == null || r.forEach((i) => {
244
244
  var o;
245
245
  return (o = i.hostUpdate) == null ? void 0 : o.call(i);
246
- }), this.update(r)) : this._$EM();
246
+ }), this.update(n)) : this._$EM();
247
247
  } catch (i) {
248
248
  throw e = !1, this._$EM(), i;
249
249
  }
250
- e && this._$AE(r);
250
+ e && this._$AE(n);
251
251
  }
252
252
  willUpdate(e) {
253
253
  }
254
254
  _$AE(e) {
255
- var r;
256
- (r = this._$EO) == null || r.forEach((n) => {
255
+ var n;
256
+ (n = this._$EO) == null || n.forEach((r) => {
257
257
  var i;
258
- return (i = n.hostUpdated) == null ? void 0 : i.call(n);
258
+ return (i = r.hostUpdated) == null ? void 0 : i.call(r);
259
259
  }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e);
260
260
  }
261
261
  _$EM() {
@@ -271,7 +271,7 @@ let Q = class extends HTMLElement {
271
271
  return !0;
272
272
  }
273
273
  update(e) {
274
- this._$Eq && (this._$Eq = this._$Eq.forEach((r) => this._$ET(r, this[r]))), this._$EM();
274
+ this._$Eq && (this._$Eq = this._$Eq.forEach((n) => this._$ET(n, this[n]))), this._$EM();
275
275
  }
276
276
  updated(e) {
277
277
  }
@@ -284,72 +284,72 @@ Q.elementStyles = [], Q.shadowRootOptions = { mode: "open" }, Q[ie("elementPrope
284
284
  * Copyright 2017 Google LLC
285
285
  * SPDX-License-Identifier: BSD-3-Clause
286
286
  */
287
- const oe = globalThis, we = oe.trustedTypes, tt = we ? we.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, ft = "$lit$", B = `lit$${Math.random().toFixed(9).slice(2)}$`, mt = "?" + B, Yt = `<${mt}>`, K = document, le = () => K.createComment(""), de = (t) => t === null || typeof t != "object" && typeof t != "function", je = Array.isArray, Kt = (t) => je(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", _e = `[
288
- \f\r]`, ne = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, rt = /-->/g, nt = />/g, q = RegExp(`>|${_e}(?:([^\\s"'>=/]+)(${_e}*=${_e}*(?:[^
289
- \f\r"'\`<>=]|("|')|))|$)`, "g"), it = /'/g, ot = /"/g, pt = /^(?:script|style|textarea|title)$/i, Qt = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), A = Qt(1), G = Symbol.for("lit-noChange"), I = Symbol.for("lit-nothing"), st = /* @__PURE__ */ new WeakMap(), H = K.createTreeWalker(K, 129);
287
+ const oe = globalThis, we = oe.trustedTypes, tt = we ? we.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, ft = "$lit$", z = `lit$${Math.random().toFixed(9).slice(2)}$`, mt = "?" + z, Wt = `<${mt}>`, K = document, le = () => K.createComment(""), de = (t) => t === null || typeof t != "object" && typeof t != "function", He = Array.isArray, Kt = (t) => He(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", Me = `[
288
+ \f\r]`, re = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, nt = /-->/g, rt = />/g, V = RegExp(`>|${Me}(?:([^\\s"'>=/]+)(${Me}*=${Me}*(?:[^
289
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), it = /'/g, ot = /"/g, pt = /^(?:script|style|textarea|title)$/i, Qt = (t) => (e, ...n) => ({ _$litType$: t, strings: e, values: n }), P = Qt(1), J = Symbol.for("lit-noChange"), I = Symbol.for("lit-nothing"), st = /* @__PURE__ */ new WeakMap(), Y = K.createTreeWalker(K, 129);
290
290
  function gt(t, e) {
291
- if (!je(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
291
+ if (!He(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
292
292
  return tt !== void 0 ? tt.createHTML(e) : e;
293
293
  }
294
- const Zt = (t, e) => {
295
- const r = t.length - 1, n = [];
296
- let i, o = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", s = ne;
297
- for (let l = 0; l < r; l++) {
294
+ const Xt = (t, e) => {
295
+ const n = t.length - 1, r = [];
296
+ let i, o = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", s = re;
297
+ for (let l = 0; l < n; l++) {
298
298
  const a = t[l];
299
- let d, c, h = -1, f = 0;
300
- for (; f < a.length && (s.lastIndex = f, c = s.exec(a), c !== null); ) f = s.lastIndex, s === ne ? c[1] === "!--" ? s = rt : c[1] !== void 0 ? s = nt : c[2] !== void 0 ? (pt.test(c[2]) && (i = RegExp("</" + c[2], "g")), s = q) : c[3] !== void 0 && (s = q) : s === q ? c[0] === ">" ? (s = i ?? ne, h = -1) : c[1] === void 0 ? h = -2 : (h = s.lastIndex - c[2].length, d = c[1], s = c[3] === void 0 ? q : c[3] === '"' ? ot : it) : s === ot || s === it ? s = q : s === rt || s === nt ? s = ne : (s = q, i = void 0);
301
- const u = s === q && t[l + 1].startsWith("/>") ? " " : "";
302
- o += s === ne ? a + Yt : h >= 0 ? (n.push(d), a.slice(0, h) + ft + a.slice(h) + B + u) : a + B + (h === -2 ? l : u);
299
+ let d, c, u = -1, f = 0;
300
+ for (; f < a.length && (s.lastIndex = f, c = s.exec(a), c !== null); ) f = s.lastIndex, s === re ? c[1] === "!--" ? s = nt : c[1] !== void 0 ? s = rt : c[2] !== void 0 ? (pt.test(c[2]) && (i = RegExp("</" + c[2], "g")), s = V) : c[3] !== void 0 && (s = V) : s === V ? c[0] === ">" ? (s = i ?? re, u = -1) : c[1] === void 0 ? u = -2 : (u = s.lastIndex - c[2].length, d = c[1], s = c[3] === void 0 ? V : c[3] === '"' ? ot : it) : s === ot || s === it ? s = V : s === nt || s === rt ? s = re : (s = V, i = void 0);
301
+ const h = s === V && t[l + 1].startsWith("/>") ? " " : "";
302
+ o += s === re ? a + Wt : u >= 0 ? (r.push(d), a.slice(0, u) + ft + a.slice(u) + z + h) : a + z + (u === -2 ? l : h);
303
303
  }
304
- return [gt(t, o + (t[r] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), n];
304
+ return [gt(t, o + (t[n] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), r];
305
305
  };
306
306
  class ce {
307
- constructor({ strings: e, _$litType$: r }, n) {
307
+ constructor({ strings: e, _$litType$: n }, r) {
308
308
  let i;
309
309
  this.parts = [];
310
310
  let o = 0, s = 0;
311
- const l = e.length - 1, a = this.parts, [d, c] = Zt(e, r);
312
- if (this.el = ce.createElement(d, n), H.currentNode = this.el.content, r === 2 || r === 3) {
313
- const h = this.el.content.firstChild;
314
- h.replaceWith(...h.childNodes);
311
+ const l = e.length - 1, a = this.parts, [d, c] = Xt(e, n);
312
+ if (this.el = ce.createElement(d, r), Y.currentNode = this.el.content, n === 2 || n === 3) {
313
+ const u = this.el.content.firstChild;
314
+ u.replaceWith(...u.childNodes);
315
315
  }
316
- for (; (i = H.nextNode()) !== null && a.length < l; ) {
316
+ for (; (i = Y.nextNode()) !== null && a.length < l; ) {
317
317
  if (i.nodeType === 1) {
318
- if (i.hasAttributes()) for (const h of i.getAttributeNames()) if (h.endsWith(ft)) {
319
- const f = c[s++], u = i.getAttribute(h).split(B), m = /([.?@])?(.*)/.exec(f);
320
- a.push({ type: 1, index: o, name: m[2], strings: u, ctor: m[1] === "." ? Jt : m[1] === "?" ? Wt : m[1] === "@" ? Xt : Se }), i.removeAttribute(h);
321
- } else h.startsWith(B) && (a.push({ type: 6, index: o }), i.removeAttribute(h));
318
+ if (i.hasAttributes()) for (const u of i.getAttributeNames()) if (u.endsWith(ft)) {
319
+ const f = c[s++], h = i.getAttribute(u).split(z), m = /([.?@])?(.*)/.exec(f);
320
+ a.push({ type: 1, index: o, name: m[2], strings: h, ctor: m[1] === "." ? Gt : m[1] === "?" ? _t : m[1] === "@" ? $t : Se }), i.removeAttribute(u);
321
+ } else u.startsWith(z) && (a.push({ type: 6, index: o }), i.removeAttribute(u));
322
322
  if (pt.test(i.tagName)) {
323
- const h = i.textContent.split(B), f = h.length - 1;
323
+ const u = i.textContent.split(z), f = u.length - 1;
324
324
  if (f > 0) {
325
325
  i.textContent = we ? we.emptyScript : "";
326
- for (let u = 0; u < f; u++) i.append(h[u], le()), H.nextNode(), a.push({ type: 2, index: ++o });
327
- i.append(h[f], le());
326
+ for (let h = 0; h < f; h++) i.append(u[h], le()), Y.nextNode(), a.push({ type: 2, index: ++o });
327
+ i.append(u[f], le());
328
328
  }
329
329
  }
330
330
  } else if (i.nodeType === 8) if (i.data === mt) a.push({ type: 2, index: o });
331
331
  else {
332
- let h = -1;
333
- for (; (h = i.data.indexOf(B, h + 1)) !== -1; ) a.push({ type: 7, index: o }), h += B.length - 1;
332
+ let u = -1;
333
+ for (; (u = i.data.indexOf(z, u + 1)) !== -1; ) a.push({ type: 7, index: o }), u += z.length - 1;
334
334
  }
335
335
  o++;
336
336
  }
337
337
  }
338
- static createElement(e, r) {
339
- const n = K.createElement("template");
340
- return n.innerHTML = e, n;
338
+ static createElement(e, n) {
339
+ const r = K.createElement("template");
340
+ return r.innerHTML = e, r;
341
341
  }
342
342
  }
343
- function J(t, e, r = t, n) {
343
+ function G(t, e, n = t, r) {
344
344
  var s, l;
345
- if (e === G) return e;
346
- let i = n !== void 0 ? (s = r._$Co) == null ? void 0 : s[n] : r._$Cl;
345
+ if (e === J) return e;
346
+ let i = r !== void 0 ? (s = n._$Co) == null ? void 0 : s[r] : n._$Cl;
347
347
  const o = de(e) ? void 0 : e._$litDirective$;
348
- return (i == null ? void 0 : i.constructor) !== o && ((l = i == null ? void 0 : i._$AO) == null || l.call(i, !1), o === void 0 ? i = void 0 : (i = new o(t), i._$AT(t, r, n)), n !== void 0 ? (r._$Co ?? (r._$Co = []))[n] = i : r._$Cl = i), i !== void 0 && (e = J(t, i._$AS(t, e.values), i, n)), e;
348
+ return (i == null ? void 0 : i.constructor) !== o && ((l = i == null ? void 0 : i._$AO) == null || l.call(i, !1), o === void 0 ? i = void 0 : (i = new o(t), i._$AT(t, n, r)), r !== void 0 ? (n._$Co ?? (n._$Co = []))[r] = i : n._$Cl = i), i !== void 0 && (e = G(t, i._$AS(t, e.values), i, r)), e;
349
349
  }
350
- class Gt {
351
- constructor(e, r) {
352
- this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = r;
350
+ class Jt {
351
+ constructor(e, n) {
352
+ this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = n;
353
353
  }
354
354
  get parentNode() {
355
355
  return this._$AM.parentNode;
@@ -358,35 +358,35 @@ class Gt {
358
358
  return this._$AM._$AU;
359
359
  }
360
360
  u(e) {
361
- const { el: { content: r }, parts: n } = this._$AD, i = ((e == null ? void 0 : e.creationScope) ?? K).importNode(r, !0);
362
- H.currentNode = i;
363
- let o = H.nextNode(), s = 0, l = 0, a = n[0];
361
+ const { el: { content: n }, parts: r } = this._$AD, i = ((e == null ? void 0 : e.creationScope) ?? K).importNode(n, !0);
362
+ Y.currentNode = i;
363
+ let o = Y.nextNode(), s = 0, l = 0, a = r[0];
364
364
  for (; a !== void 0; ) {
365
365
  if (s === a.index) {
366
366
  let d;
367
- a.type === 2 ? d = new he(o, o.nextSibling, this, e) : a.type === 1 ? d = new a.ctor(o, a.name, a.strings, this, e) : a.type === 6 && (d = new er(o, this, e)), this._$AV.push(d), a = n[++l];
367
+ a.type === 2 ? d = new ue(o, o.nextSibling, this, e) : a.type === 1 ? d = new a.ctor(o, a.name, a.strings, this, e) : a.type === 6 && (d = new en(o, this, e)), this._$AV.push(d), a = r[++l];
368
368
  }
369
- s !== (a == null ? void 0 : a.index) && (o = H.nextNode(), s++);
369
+ s !== (a == null ? void 0 : a.index) && (o = Y.nextNode(), s++);
370
370
  }
371
- return H.currentNode = K, i;
371
+ return Y.currentNode = K, i;
372
372
  }
373
373
  p(e) {
374
- let r = 0;
375
- for (const n of this._$AV) n !== void 0 && (n.strings !== void 0 ? (n._$AI(e, n, r), r += n.strings.length - 2) : n._$AI(e[r])), r++;
374
+ let n = 0;
375
+ for (const r of this._$AV) r !== void 0 && (r.strings !== void 0 ? (r._$AI(e, r, n), n += r.strings.length - 2) : r._$AI(e[n])), n++;
376
376
  }
377
377
  }
378
- class he {
378
+ class ue {
379
379
  get _$AU() {
380
380
  var e;
381
381
  return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
382
382
  }
383
- constructor(e, r, n, i) {
384
- this.type = 2, this._$AH = I, this._$AN = void 0, this._$AA = e, this._$AB = r, this._$AM = n, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
383
+ constructor(e, n, r, i) {
384
+ this.type = 2, this._$AH = I, this._$AN = void 0, this._$AA = e, this._$AB = n, this._$AM = r, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
385
385
  }
386
386
  get parentNode() {
387
387
  let e = this._$AA.parentNode;
388
- const r = this._$AM;
389
- return r !== void 0 && (e == null ? void 0 : e.nodeType) === 11 && (e = r.parentNode), e;
388
+ const n = this._$AM;
389
+ return n !== void 0 && (e == null ? void 0 : e.nodeType) === 11 && (e = n.parentNode), e;
390
390
  }
391
391
  get startNode() {
392
392
  return this._$AA;
@@ -394,8 +394,8 @@ class he {
394
394
  get endNode() {
395
395
  return this._$AB;
396
396
  }
397
- _$AI(e, r = this) {
398
- e = J(this, e, r), de(e) ? e === I || e == null || e === "" ? (this._$AH !== I && this._$AR(), this._$AH = I) : e !== this._$AH && e !== G && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Kt(e) ? this.k(e) : this._(e);
397
+ _$AI(e, n = this) {
398
+ e = G(this, e, n), de(e) ? e === I || e == null || e === "" ? (this._$AH !== I && this._$AR(), this._$AH = I) : e !== this._$AH && e !== J && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Kt(e) ? this.k(e) : this._(e);
399
399
  }
400
400
  O(e) {
401
401
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -408,34 +408,34 @@ class he {
408
408
  }
409
409
  $(e) {
410
410
  var o;
411
- const { values: r, _$litType$: n } = e, i = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = ce.createElement(gt(n.h, n.h[0]), this.options)), n);
412
- if (((o = this._$AH) == null ? void 0 : o._$AD) === i) this._$AH.p(r);
411
+ const { values: n, _$litType$: r } = e, i = typeof r == "number" ? this._$AC(e) : (r.el === void 0 && (r.el = ce.createElement(gt(r.h, r.h[0]), this.options)), r);
412
+ if (((o = this._$AH) == null ? void 0 : o._$AD) === i) this._$AH.p(n);
413
413
  else {
414
- const s = new Gt(i, this), l = s.u(this.options);
415
- s.p(r), this.T(l), this._$AH = s;
414
+ const s = new Jt(i, this), l = s.u(this.options);
415
+ s.p(n), this.T(l), this._$AH = s;
416
416
  }
417
417
  }
418
418
  _$AC(e) {
419
- let r = st.get(e.strings);
420
- return r === void 0 && st.set(e.strings, r = new ce(e)), r;
419
+ let n = st.get(e.strings);
420
+ return n === void 0 && st.set(e.strings, n = new ce(e)), n;
421
421
  }
422
422
  k(e) {
423
- je(this._$AH) || (this._$AH = [], this._$AR());
424
- const r = this._$AH;
425
- let n, i = 0;
426
- for (const o of e) i === r.length ? r.push(n = new he(this.O(le()), this.O(le()), this, this.options)) : n = r[i], n._$AI(o), i++;
427
- i < r.length && (this._$AR(n && n._$AB.nextSibling, i), r.length = i);
423
+ He(this._$AH) || (this._$AH = [], this._$AR());
424
+ const n = this._$AH;
425
+ let r, i = 0;
426
+ for (const o of e) i === n.length ? n.push(r = new ue(this.O(le()), this.O(le()), this, this.options)) : r = n[i], r._$AI(o), i++;
427
+ i < n.length && (this._$AR(r && r._$AB.nextSibling, i), n.length = i);
428
428
  }
429
- _$AR(e = this._$AA.nextSibling, r) {
430
- var n;
431
- for ((n = this._$AP) == null ? void 0 : n.call(this, !1, !0, r); e !== this._$AB; ) {
429
+ _$AR(e = this._$AA.nextSibling, n) {
430
+ var r;
431
+ for ((r = this._$AP) == null ? void 0 : r.call(this, !1, !0, n); e !== this._$AB; ) {
432
432
  const i = e.nextSibling;
433
433
  e.remove(), e = i;
434
434
  }
435
435
  }
436
436
  setConnected(e) {
437
- var r;
438
- this._$AM === void 0 && (this._$Cv = e, (r = this._$AP) == null || r.call(this, e));
437
+ var n;
438
+ this._$AM === void 0 && (this._$Cv = e, (n = this._$AP) == null || n.call(this, e));
439
439
  }
440
440
  }
441
441
  class Se {
@@ -445,17 +445,17 @@ class Se {
445
445
  get _$AU() {
446
446
  return this._$AM._$AU;
447
447
  }
448
- constructor(e, r, n, i, o) {
449
- this.type = 1, this._$AH = I, this._$AN = void 0, this.element = e, this.name = r, this._$AM = i, this.options = o, n.length > 2 || n[0] !== "" || n[1] !== "" ? (this._$AH = Array(n.length - 1).fill(new String()), this.strings = n) : this._$AH = I;
448
+ constructor(e, n, r, i, o) {
449
+ this.type = 1, this._$AH = I, this._$AN = void 0, this.element = e, this.name = n, this._$AM = i, this.options = o, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = I;
450
450
  }
451
- _$AI(e, r = this, n, i) {
451
+ _$AI(e, n = this, r, i) {
452
452
  const o = this.strings;
453
453
  let s = !1;
454
- if (o === void 0) e = J(this, e, r, 0), s = !de(e) || e !== this._$AH && e !== G, s && (this._$AH = e);
454
+ if (o === void 0) e = G(this, e, n, 0), s = !de(e) || e !== this._$AH && e !== J, s && (this._$AH = e);
455
455
  else {
456
456
  const l = e;
457
457
  let a, d;
458
- for (e = o[0], a = 0; a < o.length - 1; a++) d = J(this, l[n + a], r, a), d === G && (d = this._$AH[a]), s || (s = !de(d) || d !== this._$AH[a]), d === I ? e = I : e !== I && (e += (d ?? "") + o[a + 1]), this._$AH[a] = d;
458
+ for (e = o[0], a = 0; a < o.length - 1; a++) d = G(this, l[r + a], n, a), d === J && (d = this._$AH[a]), s || (s = !de(d) || d !== this._$AH[a]), d === I ? e = I : e !== I && (e += (d ?? "") + o[a + 1]), this._$AH[a] = d;
459
459
  }
460
460
  s && !i && this.j(e);
461
461
  }
@@ -463,7 +463,7 @@ class Se {
463
463
  e === I ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
464
464
  }
465
465
  }
466
- class Jt extends Se {
466
+ class Gt extends Se {
467
467
  constructor() {
468
468
  super(...arguments), this.type = 3;
469
469
  }
@@ -471,7 +471,7 @@ class Jt extends Se {
471
471
  this.element[this.name] = e === I ? void 0 : e;
472
472
  }
473
473
  }
474
- class Wt extends Se {
474
+ class _t extends Se {
475
475
  constructor() {
476
476
  super(...arguments), this.type = 4;
477
477
  }
@@ -479,39 +479,39 @@ class Wt extends Se {
479
479
  this.element.toggleAttribute(this.name, !!e && e !== I);
480
480
  }
481
481
  }
482
- class Xt extends Se {
483
- constructor(e, r, n, i, o) {
484
- super(e, r, n, i, o), this.type = 5;
482
+ class $t extends Se {
483
+ constructor(e, n, r, i, o) {
484
+ super(e, n, r, i, o), this.type = 5;
485
485
  }
486
- _$AI(e, r = this) {
487
- if ((e = J(this, e, r, 0) ?? I) === G) return;
488
- const n = this._$AH, i = e === I && n !== I || e.capture !== n.capture || e.once !== n.once || e.passive !== n.passive, o = e !== I && (n === I || i);
489
- i && this.element.removeEventListener(this.name, this, n), o && this.element.addEventListener(this.name, this, e), this._$AH = e;
486
+ _$AI(e, n = this) {
487
+ if ((e = G(this, e, n, 0) ?? I) === J) return;
488
+ const r = this._$AH, i = e === I && r !== I || e.capture !== r.capture || e.once !== r.once || e.passive !== r.passive, o = e !== I && (r === I || i);
489
+ i && this.element.removeEventListener(this.name, this, r), o && this.element.addEventListener(this.name, this, e), this._$AH = e;
490
490
  }
491
491
  handleEvent(e) {
492
- var r;
493
- typeof this._$AH == "function" ? this._$AH.call(((r = this.options) == null ? void 0 : r.host) ?? this.element, e) : this._$AH.handleEvent(e);
492
+ var n;
493
+ typeof this._$AH == "function" ? this._$AH.call(((n = this.options) == null ? void 0 : n.host) ?? this.element, e) : this._$AH.handleEvent(e);
494
494
  }
495
495
  }
496
- class er {
497
- constructor(e, r, n) {
498
- this.element = e, this.type = 6, this._$AN = void 0, this._$AM = r, this.options = n;
496
+ class en {
497
+ constructor(e, n, r) {
498
+ this.element = e, this.type = 6, this._$AN = void 0, this._$AM = n, this.options = r;
499
499
  }
500
500
  get _$AU() {
501
501
  return this._$AM._$AU;
502
502
  }
503
503
  _$AI(e) {
504
- J(this, e);
504
+ G(this, e);
505
505
  }
506
506
  }
507
- const Me = oe.litHtmlPolyfillSupport;
508
- Me == null || Me(ce, he), (oe.litHtmlVersions ?? (oe.litHtmlVersions = [])).push("3.3.1");
509
- const tr = (t, e, r) => {
510
- const n = (r == null ? void 0 : r.renderBefore) ?? e;
511
- let i = n._$litPart$;
507
+ const De = oe.litHtmlPolyfillSupport;
508
+ De == null || De(ce, ue), (oe.litHtmlVersions ?? (oe.litHtmlVersions = [])).push("3.3.1");
509
+ const tn = (t, e, n) => {
510
+ const r = (n == null ? void 0 : n.renderBefore) ?? e;
511
+ let i = r._$litPart$;
512
512
  if (i === void 0) {
513
- const o = (r == null ? void 0 : r.renderBefore) ?? null;
514
- n._$litPart$ = i = new he(e.insertBefore(le(), o), o, void 0, r ?? {});
513
+ const o = (n == null ? void 0 : n.renderBefore) ?? null;
514
+ r._$litPart$ = i = new ue(e.insertBefore(le(), o), o, void 0, n ?? {});
515
515
  }
516
516
  return i._$AI(t), i;
517
517
  };
@@ -520,19 +520,19 @@ const tr = (t, e, r) => {
520
520
  * Copyright 2017 Google LLC
521
521
  * SPDX-License-Identifier: BSD-3-Clause
522
522
  */
523
- const Y = globalThis;
523
+ const W = globalThis;
524
524
  class se extends Q {
525
525
  constructor() {
526
526
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
527
527
  }
528
528
  createRenderRoot() {
529
- var r;
529
+ var n;
530
530
  const e = super.createRenderRoot();
531
- return (r = this.renderOptions).renderBefore ?? (r.renderBefore = e.firstChild), e;
531
+ return (n = this.renderOptions).renderBefore ?? (n.renderBefore = e.firstChild), e;
532
532
  }
533
533
  update(e) {
534
- const r = this.render();
535
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = tr(r, this.renderRoot, this.renderOptions);
534
+ const n = this.render();
535
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = tn(n, this.renderRoot, this.renderOptions);
536
536
  }
537
537
  connectedCallback() {
538
538
  var e;
@@ -543,21 +543,21 @@ class se extends Q {
543
543
  super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
544
544
  }
545
545
  render() {
546
- return G;
546
+ return J;
547
547
  }
548
548
  }
549
- var ut;
550
- se._$litElement$ = !0, se.finalized = !0, (ut = Y.litElementHydrateSupport) == null || ut.call(Y, { LitElement: se });
551
- const De = Y.litElementPolyfillSupport;
552
- De == null || De({ LitElement: se });
553
- (Y.litElementVersions ?? (Y.litElementVersions = [])).push("4.2.1");
549
+ var ht;
550
+ se._$litElement$ = !0, se.finalized = !0, (ht = W.litElementHydrateSupport) == null || ht.call(W, { LitElement: se });
551
+ const Te = W.litElementPolyfillSupport;
552
+ Te == null || Te({ LitElement: se });
553
+ (W.litElementVersions ?? (W.litElementVersions = [])).push("4.2.1");
554
554
  /**
555
555
  * @license
556
556
  * Copyright 2017 Google LLC
557
557
  * SPDX-License-Identifier: BSD-3-Clause
558
558
  */
559
- const rr = (t) => (e, r) => {
560
- r !== void 0 ? r.addInitializer(() => {
559
+ const nn = (t) => (e, n) => {
560
+ n !== void 0 ? n.addInitializer(() => {
561
561
  customElements.define(t, e);
562
562
  }) : customElements.define(t, e);
563
563
  };
@@ -566,11 +566,11 @@ const rr = (t) => (e, r) => {
566
566
  * Copyright 2017 Google LLC
567
567
  * SPDX-License-Identifier: BSD-3-Clause
568
568
  */
569
- const nr = { attribute: !0, type: String, converter: be, reflect: !1, hasChanged: He }, ir = (t = nr, e, r) => {
570
- const { kind: n, metadata: i } = r;
569
+ const rn = { attribute: !0, type: String, converter: be, reflect: !1, hasChanged: Ye }, on = (t = rn, e, n) => {
570
+ const { kind: r, metadata: i } = n;
571
571
  let o = globalThis.litPropertyMetadata.get(i);
572
- if (o === void 0 && globalThis.litPropertyMetadata.set(i, o = /* @__PURE__ */ new Map()), n === "setter" && ((t = Object.create(t)).wrapped = !0), o.set(r.name, t), n === "accessor") {
573
- const { name: s } = r;
572
+ if (o === void 0 && globalThis.litPropertyMetadata.set(i, o = /* @__PURE__ */ new Map()), r === "setter" && ((t = Object.create(t)).wrapped = !0), o.set(n.name, t), r === "accessor") {
573
+ const { name: s } = n;
574
574
  return { set(l) {
575
575
  const a = e.get.call(this);
576
576
  e.set.call(this, l), this.requestUpdate(s, a, t);
@@ -578,36 +578,36 @@ const nr = { attribute: !0, type: String, converter: be, reflect: !1, hasChanged
578
578
  return l !== void 0 && this.C(s, void 0, t, l), l;
579
579
  } };
580
580
  }
581
- if (n === "setter") {
582
- const { name: s } = r;
581
+ if (r === "setter") {
582
+ const { name: s } = n;
583
583
  return function(l) {
584
584
  const a = this[s];
585
585
  e.call(this, l), this.requestUpdate(s, a, t);
586
586
  };
587
587
  }
588
- throw Error("Unsupported decorator location: " + n);
588
+ throw Error("Unsupported decorator location: " + r);
589
589
  };
590
- function $(t) {
591
- return (e, r) => typeof r == "object" ? ir(t, e, r) : ((n, i, o) => {
590
+ function F(t) {
591
+ return (e, n) => typeof n == "object" ? on(t, e, n) : ((r, i, o) => {
592
592
  const s = i.hasOwnProperty(o);
593
- return i.constructor.createProperty(o, n), s ? Object.getOwnPropertyDescriptor(i, o) : void 0;
594
- })(t, e, r);
593
+ return i.constructor.createProperty(o, r), s ? Object.getOwnPropertyDescriptor(i, o) : void 0;
594
+ })(t, e, n);
595
595
  }
596
596
  /**
597
597
  * @license
598
598
  * Copyright 2017 Google LLC
599
599
  * SPDX-License-Identifier: BSD-3-Clause
600
600
  */
601
- function _(t) {
602
- return $({ ...t, state: !0, attribute: !1 });
601
+ function M(t) {
602
+ return F({ ...t, state: !0, attribute: !1 });
603
603
  }
604
- function or(t) {
604
+ function sn(t) {
605
605
  return t instanceof Error && ("response" in t && typeof t.response == "object" && t.response !== null || "data" in t && typeof t.data == "object" && t.data !== null);
606
606
  }
607
- var V = {
607
+ var Z = {
608
608
  CARD: "card",
609
609
  PAYNOW: "paynow"
610
- }, D = {
610
+ }, T = {
611
611
  IDLE: "idle",
612
612
  INITIALIZING: "initializing",
613
613
  READY: "ready",
@@ -616,12 +616,12 @@ var V = {
616
616
  SUCCEEDED: "succeeded",
617
617
  FAILED: "failed"
618
618
  };
619
- function sr(t) {
619
+ function an(t) {
620
620
  return t === "paid" ? "succeeded" : t;
621
621
  }
622
- var ar = class {
623
- constructor(t, e, r, n, i = {}, o) {
624
- this.isPolling = !1, this.attempts = 0, this.startTime = 0, this.pollTimeoutId = null, this.adapters = t, this.baseUrl = e, this.token = r, this.onStatusUpdate = n, this.onPollStart = o, this.config = {
622
+ var ln = class {
623
+ constructor(t, e, n, r, i = {}, o) {
624
+ this.isPolling = !1, this.attempts = 0, this.startTime = 0, this.pollTimeoutId = null, this.adapters = t, this.baseUrl = e, this.token = n, this.onStatusUpdate = r, this.onPollStart = o, this.config = {
625
625
  interval: i.interval ?? 3e3,
626
626
  // 3 seconds default
627
627
  maxAttempts: i.maxAttempts ?? 60,
@@ -707,7 +707,7 @@ var ar = class {
707
707
  "x-token": this.token
708
708
  }
709
709
  ), e = {
710
- status: sr(t.result.status),
710
+ status: an(t.result.status),
711
711
  // Map "paid" to "succeeded"
712
712
  paymentIntentId: t.result.paymentIntentId || "",
713
713
  ...t.result.amount !== void 0 && { amount: t.result.amount },
@@ -743,7 +743,7 @@ var ar = class {
743
743
  }
744
744
  }
745
745
  };
746
- function lr(t) {
746
+ function dn(t) {
747
747
  switch (t) {
748
748
  case "prod":
749
749
  return "https://public.one.ooo";
@@ -755,16 +755,16 @@ function lr(t) {
755
755
  return "https://public.dev.one.ooo";
756
756
  }
757
757
  }
758
- var dr = class {
758
+ var cn = class {
759
759
  // Flag to ignore qrCode after user scans it
760
760
  constructor(t, e) {
761
- this.state = { status: D.IDLE }, this.subscribers = /* @__PURE__ */ new Set(), this.eventListeners = {}, this.paymentToken = null, this.paymentIntentId = null, this.pollingService = null, this.ignore3DSInPolling = !1, this.ignoreQRInPolling = !1, this.config = t, this.adapters = e;
761
+ this.state = { status: T.IDLE }, this.subscribers = /* @__PURE__ */ new Set(), this.eventListeners = {}, this.paymentToken = null, this.paymentIntentId = null, this.pollingService = null, this.ignore3DSInPolling = !1, this.ignoreQRInPolling = !1, this.config = t, this.adapters = e;
762
762
  }
763
763
  /**
764
764
  * Get the API base URL - uses apiBaseUrl if provided, otherwise derives from environment
765
765
  */
766
766
  getApiBaseUrl() {
767
- return this.config.apiBaseUrl ?? lr(this.config.environment);
767
+ return this.config.apiBaseUrl ?? dn(this.config.environment);
768
768
  }
769
769
  /**
770
770
  * Get the current payment state
@@ -867,10 +867,10 @@ var dr = class {
867
867
  */
868
868
  on(t, e) {
869
869
  this.eventListeners[t] || (this.eventListeners[t] = []);
870
- const r = this.eventListeners[t];
871
- return r.push(e), () => {
872
- const n = r.indexOf(e);
873
- n > -1 && r.splice(n, 1);
870
+ const n = this.eventListeners[t];
871
+ return n.push(e), () => {
872
+ const r = n.indexOf(e);
873
+ r > -1 && n.splice(r, 1);
874
874
  };
875
875
  }
876
876
  /**
@@ -913,7 +913,7 @@ var dr = class {
913
913
  * @public
914
914
  */
915
915
  async initialize(t) {
916
- this.setState({ status: D.INITIALIZING }), this.emit({
916
+ this.setState({ status: T.INITIALIZING }), this.emit({
917
917
  type: "initialize",
918
918
  payload: t
919
919
  });
@@ -923,12 +923,12 @@ var dr = class {
923
923
  currency: t.currency,
924
924
  notes: t.notes,
925
925
  orderId: t.orderId
926
- }, r = JSON.stringify(e), n = await this.adapters.crypto.hmacSHA256(this.config.secretKey, r), i = await this.adapters.http.post(
926
+ }, n = JSON.stringify(e), r = await this.adapters.crypto.hmacSHA256(this.config.secretKey, n), i = await this.adapters.http.post(
927
927
  `${this.getApiBaseUrl()}/payment-intent/create`,
928
928
  e,
929
929
  {
930
930
  "x-api-key": this.config.apiKey,
931
- "x-signature": n
931
+ "x-signature": r
932
932
  }
933
933
  ), s = new URL(i.result.redirectUrl).searchParams.get("token");
934
934
  if (!s)
@@ -948,19 +948,19 @@ var dr = class {
948
948
  id: this.paymentIntentId,
949
949
  amount: l.result.customerAmount || t.amount,
950
950
  currency: l.result.currency || t.currency,
951
- status: D.READY,
951
+ status: T.READY,
952
952
  ...t.metadata && { metadata: t.metadata }
953
- }, c = a.result.paymentMethods.map((h, f) => {
954
- let u = null;
955
- const m = h.type.toLowerCase(), p = h.capabilities || [];
956
- return m.includes("card") ? u = "card" : (m.includes("paynow") || m.includes("bank transfer") || p.includes("payments_pay_now")) && (u = "paynow"), u === null ? null : {
957
- id: u,
953
+ }, c = a.result.paymentMethods.map((u, f) => {
954
+ let h = null;
955
+ const m = u.type.toLowerCase(), p = u.capabilities || [];
956
+ return m.includes("card") ? h = "card" : (m.includes("paynow") || m.includes("bank transfer") || p.includes("payments_pay_now")) && (h = "paynow"), h === null ? null : {
957
+ id: h,
958
958
  enabled: !0,
959
959
  priority: f
960
960
  };
961
- }).filter((h) => h !== null);
961
+ }).filter((u) => u !== null);
962
962
  return this.setState({
963
- status: D.READY,
963
+ status: T.READY,
964
964
  paymentIntent: d,
965
965
  availableMethods: c
966
966
  }), this.emit({
@@ -971,17 +971,17 @@ var dr = class {
971
971
  }
972
972
  }), d;
973
973
  } catch (e) {
974
- const r = {
974
+ const n = {
975
975
  code: "INITIALIZATION_FAILED",
976
976
  message: e instanceof Error ? e.message : "Unknown error",
977
977
  timestamp: this.adapters.timer.now()
978
978
  };
979
979
  throw this.setState({
980
- status: D.FAILED,
981
- error: r
980
+ status: T.FAILED,
981
+ error: n
982
982
  }), this.emit({
983
983
  type: "payment_failed",
984
- payload: { error: r }
984
+ payload: { error: n }
985
985
  }), e;
986
986
  }
987
987
  }
@@ -1038,21 +1038,21 @@ var dr = class {
1038
1038
  * @public
1039
1039
  */
1040
1040
  async submitPayment(t, e) {
1041
- var n, i, o, s, l;
1042
- const r = this.state;
1043
- if (r.status !== "ready")
1041
+ var r, i, o, s, l;
1042
+ const n = this.state;
1043
+ if (n.status !== "ready")
1044
1044
  throw new Error("Cannot submit payment: SDK not in ready state");
1045
1045
  if (!this.paymentToken)
1046
1046
  throw new Error("Cannot submit payment: No payment token available");
1047
1047
  this.ignore3DSInPolling = !1, this.ignoreQRInPolling = !1, this.setState({
1048
- status: D.PROCESSING,
1049
- paymentIntent: r.paymentIntent,
1048
+ status: T.PROCESSING,
1049
+ paymentIntent: n.paymentIntent,
1050
1050
  selectedMethod: t,
1051
- availableMethods: r.availableMethods
1051
+ availableMethods: n.availableMethods
1052
1052
  }), this.emit({
1053
1053
  type: "payment_processing",
1054
1054
  payload: {
1055
- paymentIntent: r.paymentIntent,
1055
+ paymentIntent: n.paymentIntent,
1056
1056
  methodId: t
1057
1057
  }
1058
1058
  });
@@ -1079,36 +1079,36 @@ var dr = class {
1079
1079
  }
1080
1080
  ), this.startPolling(), {
1081
1081
  id: this.paymentIntentId || "",
1082
- amount: r.paymentIntent.amount,
1083
- currency: r.paymentIntent.currency,
1084
- status: D.PROCESSING
1082
+ amount: n.paymentIntent.amount,
1083
+ currency: n.paymentIntent.currency,
1084
+ status: T.PROCESSING
1085
1085
  };
1086
1086
  } catch (a) {
1087
1087
  let d = "Unknown error", c = "PAYMENT_FAILED";
1088
1088
  if (a instanceof Error)
1089
1089
  try {
1090
- if (or(a)) {
1091
- const f = (n = a.response) == null ? void 0 : n.data, u = a.data;
1092
- f ? (d = f.message || ((i = f.error) == null ? void 0 : i.message) || a.message, c = f.code || ((o = f.error) == null ? void 0 : o.code) || c) : u ? (d = u.message || ((s = u.error) == null ? void 0 : s.message) || a.message, c = u.code || ((l = u.error) == null ? void 0 : l.code) || c) : d = a.message;
1090
+ if (sn(a)) {
1091
+ const f = (r = a.response) == null ? void 0 : r.data, h = a.data;
1092
+ f ? (d = f.message || ((i = f.error) == null ? void 0 : i.message) || a.message, c = f.code || ((o = f.error) == null ? void 0 : o.code) || c) : h ? (d = h.message || ((s = h.error) == null ? void 0 : s.message) || a.message, c = h.code || ((l = h.error) == null ? void 0 : l.code) || c) : d = a.message;
1093
1093
  } else
1094
1094
  d = a.message;
1095
1095
  } catch {
1096
1096
  d = a.message;
1097
1097
  }
1098
- const h = {
1098
+ const u = {
1099
1099
  code: c,
1100
1100
  message: d,
1101
1101
  timestamp: this.adapters.timer.now()
1102
1102
  };
1103
1103
  throw this.setState({
1104
- status: D.FAILED,
1105
- error: h,
1106
- paymentIntent: r.paymentIntent
1104
+ status: T.FAILED,
1105
+ error: u,
1106
+ paymentIntent: n.paymentIntent
1107
1107
  }), this.emit({
1108
1108
  type: "payment_failed",
1109
1109
  payload: {
1110
- error: h,
1111
- paymentIntent: r.paymentIntent
1110
+ error: u,
1111
+ paymentIntent: n.paymentIntent
1112
1112
  }
1113
1113
  }), a;
1114
1114
  }
@@ -1193,7 +1193,7 @@ var dr = class {
1193
1193
  console.warn("Cannot start polling: no payment token available");
1194
1194
  return;
1195
1195
  }
1196
- this.stopPolling(), this.pollingService = new ar(
1196
+ this.stopPolling(), this.pollingService = new ln(
1197
1197
  this.adapters,
1198
1198
  this.getApiBaseUrl(),
1199
1199
  this.paymentToken,
@@ -1265,30 +1265,30 @@ var dr = class {
1265
1265
  return;
1266
1266
  }
1267
1267
  console.log("[SDK] nextActionUrl detected for 3DS");
1268
- const n = {
1268
+ const r = {
1269
1269
  id: t.paymentIntentId,
1270
1270
  amount: t.amount ?? e.paymentIntent.amount,
1271
1271
  currency: t.currency ?? e.paymentIntent.currency,
1272
- status: D.REQUIRES_ACTION,
1272
+ status: T.REQUIRES_ACTION,
1273
1273
  ...t.metadata && { metadata: t.metadata }
1274
1274
  };
1275
1275
  this.setState({
1276
- status: D.REQUIRES_ACTION,
1277
- paymentIntent: n,
1276
+ status: T.REQUIRES_ACTION,
1277
+ paymentIntent: r,
1278
1278
  actionUrl: t.nextActionUrl,
1279
1279
  selectedMethod: e.selectedMethod,
1280
1280
  availableMethods: e.availableMethods
1281
1281
  }), this.emit({
1282
1282
  type: "payment_requires_action",
1283
1283
  payload: {
1284
- paymentIntent: n,
1284
+ paymentIntent: r,
1285
1285
  actionUrl: t.nextActionUrl,
1286
1286
  methodId: e.selectedMethod
1287
1287
  }
1288
1288
  });
1289
1289
  return;
1290
1290
  }
1291
- const r = {
1291
+ const n = {
1292
1292
  id: t.paymentIntentId,
1293
1293
  amount: t.amount ?? e.paymentIntent.amount,
1294
1294
  currency: t.currency ?? e.paymentIntent.currency,
@@ -1297,13 +1297,13 @@ var dr = class {
1297
1297
  };
1298
1298
  if (t.status === "succeeded")
1299
1299
  this.stopPolling(), this.setState({
1300
- status: D.SUCCEEDED,
1301
- paymentIntent: r,
1300
+ status: T.SUCCEEDED,
1301
+ paymentIntent: n,
1302
1302
  selectedMethod: e.selectedMethod
1303
1303
  }), this.emit({
1304
1304
  type: "payment_succeeded",
1305
1305
  payload: {
1306
- paymentIntent: r,
1306
+ paymentIntent: n,
1307
1307
  methodId: e.selectedMethod
1308
1308
  }
1309
1309
  });
@@ -1315,14 +1315,14 @@ var dr = class {
1315
1315
  timestamp: this.adapters.timer.now()
1316
1316
  };
1317
1317
  this.setState({
1318
- status: D.FAILED,
1318
+ status: T.FAILED,
1319
1319
  error: i,
1320
- paymentIntent: r
1320
+ paymentIntent: n
1321
1321
  }), this.emit({
1322
1322
  type: "payment_failed",
1323
1323
  payload: {
1324
1324
  error: i,
1325
- paymentIntent: r
1325
+ paymentIntent: n
1326
1326
  }
1327
1327
  });
1328
1328
  }
@@ -1332,8 +1332,8 @@ var dr = class {
1332
1332
  */
1333
1333
  setState(t) {
1334
1334
  const e = this.state.status;
1335
- this.state = t, this.subscribers.forEach((r) => {
1336
- r(this.state);
1335
+ this.state = t, this.subscribers.forEach((n) => {
1336
+ n(this.state);
1337
1337
  }), e !== t.status && this.emit({
1338
1338
  type: "state_changed",
1339
1339
  payload: {
@@ -1347,47 +1347,47 @@ var dr = class {
1347
1347
  */
1348
1348
  emit(t) {
1349
1349
  const e = this.eventListeners[t.type];
1350
- e !== void 0 && e.forEach((r) => {
1351
- r(t);
1350
+ e !== void 0 && e.forEach((n) => {
1351
+ n(t);
1352
1352
  });
1353
1353
  }
1354
- }, Z = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, j = function(t, e, r, n, i, o, s, l, a, d) {
1354
+ }, X = typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, H = function(t, e, n, r, i, o, s, l, a, d) {
1355
1355
  var c = this;
1356
- c.numeralDecimalMark = t || ".", c.numeralIntegerScale = e > 0 ? e : 0, c.numeralDecimalScale = r >= 0 ? r : 2, c.numeralThousandsGroupStyle = n || j.groupStyle.thousand, c.numeralPositiveOnly = !!i, c.stripLeadingZeroes = o !== !1, c.prefix = s || s === "" ? s : "", c.signBeforePrefix = !!l, c.tailPrefix = !!a, c.delimiter = d || d === "" ? d : ",", c.delimiterRE = d ? new RegExp("\\" + d, "g") : "";
1356
+ c.numeralDecimalMark = t || ".", c.numeralIntegerScale = e > 0 ? e : 0, c.numeralDecimalScale = n >= 0 ? n : 2, c.numeralThousandsGroupStyle = r || H.groupStyle.thousand, c.numeralPositiveOnly = !!i, c.stripLeadingZeroes = o !== !1, c.prefix = s || s === "" ? s : "", c.signBeforePrefix = !!l, c.tailPrefix = !!a, c.delimiter = d || d === "" ? d : ",", c.delimiterRE = d ? new RegExp("\\" + d, "g") : "";
1357
1357
  };
1358
- j.groupStyle = {
1358
+ H.groupStyle = {
1359
1359
  thousand: "thousand",
1360
1360
  lakh: "lakh",
1361
1361
  wan: "wan",
1362
1362
  none: "none"
1363
1363
  };
1364
- j.prototype = {
1364
+ H.prototype = {
1365
1365
  getRawValue: function(t) {
1366
1366
  return t.replace(this.delimiterRE, "").replace(this.numeralDecimalMark, ".");
1367
1367
  },
1368
1368
  format: function(t) {
1369
- var e = this, r, n, i, o, s = "";
1370
- switch (t = t.replace(/[A-Za-z]/g, "").replace(e.numeralDecimalMark, "M").replace(/[^\dM-]/g, "").replace(/^\-/, "N").replace(/\-/g, "").replace("N", e.numeralPositiveOnly ? "" : "-").replace("M", e.numeralDecimalMark), e.stripLeadingZeroes && (t = t.replace(/^(-)?0+(?=\d)/, "$1")), n = t.slice(0, 1) === "-" ? "-" : "", typeof e.prefix < "u" ? e.signBeforePrefix ? i = n + e.prefix : i = e.prefix + n : i = n, o = t, t.indexOf(e.numeralDecimalMark) >= 0 && (r = t.split(e.numeralDecimalMark), o = r[0], s = e.numeralDecimalMark + r[1].slice(0, e.numeralDecimalScale)), n === "-" && (o = o.slice(1)), e.numeralIntegerScale > 0 && (o = o.slice(0, e.numeralIntegerScale)), e.numeralThousandsGroupStyle) {
1371
- case j.groupStyle.lakh:
1369
+ var e = this, n, r, i, o, s = "";
1370
+ switch (t = t.replace(/[A-Za-z]/g, "").replace(e.numeralDecimalMark, "M").replace(/[^\dM-]/g, "").replace(/^\-/, "N").replace(/\-/g, "").replace("N", e.numeralPositiveOnly ? "" : "-").replace("M", e.numeralDecimalMark), e.stripLeadingZeroes && (t = t.replace(/^(-)?0+(?=\d)/, "$1")), r = t.slice(0, 1) === "-" ? "-" : "", typeof e.prefix < "u" ? e.signBeforePrefix ? i = r + e.prefix : i = e.prefix + r : i = r, o = t, t.indexOf(e.numeralDecimalMark) >= 0 && (n = t.split(e.numeralDecimalMark), o = n[0], s = e.numeralDecimalMark + n[1].slice(0, e.numeralDecimalScale)), r === "-" && (o = o.slice(1)), e.numeralIntegerScale > 0 && (o = o.slice(0, e.numeralIntegerScale)), e.numeralThousandsGroupStyle) {
1371
+ case H.groupStyle.lakh:
1372
1372
  o = o.replace(/(\d)(?=(\d\d)+\d$)/g, "$1" + e.delimiter);
1373
1373
  break;
1374
- case j.groupStyle.wan:
1374
+ case H.groupStyle.wan:
1375
1375
  o = o.replace(/(\d)(?=(\d{4})+$)/g, "$1" + e.delimiter);
1376
1376
  break;
1377
- case j.groupStyle.thousand:
1377
+ case H.groupStyle.thousand:
1378
1378
  o = o.replace(/(\d)(?=(\d{3})+$)/g, "$1" + e.delimiter);
1379
1379
  break;
1380
1380
  }
1381
- return e.tailPrefix ? n + o.toString() + (e.numeralDecimalScale > 0 ? s.toString() : "") + e.prefix : i + o.toString() + (e.numeralDecimalScale > 0 ? s.toString() : "");
1381
+ return e.tailPrefix ? r + o.toString() + (e.numeralDecimalScale > 0 ? s.toString() : "") + e.prefix : i + o.toString() + (e.numeralDecimalScale > 0 ? s.toString() : "");
1382
1382
  }
1383
1383
  };
1384
- var cr = j, yt = function(t, e, r) {
1385
- var n = this;
1386
- n.date = [], n.blocks = [], n.datePattern = t, n.dateMin = e.split("-").reverse().map(function(i) {
1384
+ var hn = H, yt = function(t, e, n) {
1385
+ var r = this;
1386
+ r.date = [], r.blocks = [], r.datePattern = t, r.dateMin = e.split("-").reverse().map(function(i) {
1387
1387
  return parseInt(i, 10);
1388
- }), n.dateMin.length === 2 && n.dateMin.unshift(0), n.dateMax = r.split("-").reverse().map(function(i) {
1388
+ }), r.dateMin.length === 2 && r.dateMin.unshift(0), r.dateMax = n.split("-").reverse().map(function(i) {
1389
1389
  return parseInt(i, 10);
1390
- }), n.dateMax.length === 2 && n.dateMax.unshift(0), n.initBlocks();
1390
+ }), r.dateMax.length === 2 && r.dateMax.unshift(0), r.initBlocks();
1391
1391
  };
1392
1392
  yt.prototype = {
1393
1393
  initBlocks: function() {
@@ -1404,10 +1404,10 @@ yt.prototype = {
1404
1404
  return this.blocks;
1405
1405
  },
1406
1406
  getValidatedDate: function(t) {
1407
- var e = this, r = "";
1408
- return t = t.replace(/[^\d]/g, ""), e.blocks.forEach(function(n, i) {
1407
+ var e = this, n = "";
1408
+ return t = t.replace(/[^\d]/g, ""), e.blocks.forEach(function(r, i) {
1409
1409
  if (t.length > 0) {
1410
- var o = t.slice(0, n), s = o.slice(0, 1), l = t.slice(n);
1410
+ var o = t.slice(0, r), s = o.slice(0, 1), l = t.slice(r);
1411
1411
  switch (e.datePattern[i]) {
1412
1412
  case "d":
1413
1413
  o === "00" ? o = "01" : parseInt(s, 10) > 3 ? o = "0" + s : parseInt(o, 10) > 31 && (o = "31");
@@ -1416,13 +1416,13 @@ yt.prototype = {
1416
1416
  o === "00" ? o = "01" : parseInt(s, 10) > 1 ? o = "0" + s : parseInt(o, 10) > 12 && (o = "12");
1417
1417
  break;
1418
1418
  }
1419
- r += o, t = l;
1419
+ n += o, t = l;
1420
1420
  }
1421
- }), this.getFixedDateString(r);
1421
+ }), this.getFixedDateString(n);
1422
1422
  },
1423
1423
  getFixedDateString: function(t) {
1424
- var e = this, r = e.datePattern, n = [], i = 0, o = 0, s = 0, l = 0, a = 0, d = 0, c, h, f, u = !1;
1425
- t.length === 4 && r[0].toLowerCase() !== "y" && r[1].toLowerCase() !== "y" && (l = r[0] === "d" ? 0 : 2, a = 2 - l, c = parseInt(t.slice(l, l + 2), 10), h = parseInt(t.slice(a, a + 2), 10), n = this.getFixedDate(c, h, 0)), t.length === 8 && (r.forEach(function(p, k) {
1424
+ var e = this, n = e.datePattern, r = [], i = 0, o = 0, s = 0, l = 0, a = 0, d = 0, c, u, f, h = !1;
1425
+ t.length === 4 && n[0].toLowerCase() !== "y" && n[1].toLowerCase() !== "y" && (l = n[0] === "d" ? 0 : 2, a = 2 - l, c = parseInt(t.slice(l, l + 2), 10), u = parseInt(t.slice(a, a + 2), 10), r = this.getFixedDate(c, u, 0)), t.length === 8 && (n.forEach(function(p, k) {
1426
1426
  switch (p) {
1427
1427
  case "d":
1428
1428
  i = k;
@@ -1434,29 +1434,29 @@ yt.prototype = {
1434
1434
  s = k;
1435
1435
  break;
1436
1436
  }
1437
- }), d = s * 2, l = i <= s ? i * 2 : i * 2 + 2, a = o <= s ? o * 2 : o * 2 + 2, c = parseInt(t.slice(l, l + 2), 10), h = parseInt(t.slice(a, a + 2), 10), f = parseInt(t.slice(d, d + 4), 10), u = t.slice(d, d + 4).length === 4, n = this.getFixedDate(c, h, f)), t.length === 4 && (r[0] === "y" || r[1] === "y") && (a = r[0] === "m" ? 0 : 2, d = 2 - a, h = parseInt(t.slice(a, a + 2), 10), f = parseInt(t.slice(d, d + 2), 10), u = t.slice(d, d + 2).length === 2, n = [0, h, f]), t.length === 6 && (r[0] === "Y" || r[1] === "Y") && (a = r[0] === "m" ? 0 : 4, d = 2 - 0.5 * a, h = parseInt(t.slice(a, a + 2), 10), f = parseInt(t.slice(d, d + 4), 10), u = t.slice(d, d + 4).length === 4, n = [0, h, f]), n = e.getRangeFixedDate(n), e.date = n;
1438
- var m = n.length === 0 ? t : r.reduce(function(p, k) {
1437
+ }), d = s * 2, l = i <= s ? i * 2 : i * 2 + 2, a = o <= s ? o * 2 : o * 2 + 2, c = parseInt(t.slice(l, l + 2), 10), u = parseInt(t.slice(a, a + 2), 10), f = parseInt(t.slice(d, d + 4), 10), h = t.slice(d, d + 4).length === 4, r = this.getFixedDate(c, u, f)), t.length === 4 && (n[0] === "y" || n[1] === "y") && (a = n[0] === "m" ? 0 : 2, d = 2 - a, u = parseInt(t.slice(a, a + 2), 10), f = parseInt(t.slice(d, d + 2), 10), h = t.slice(d, d + 2).length === 2, r = [0, u, f]), t.length === 6 && (n[0] === "Y" || n[1] === "Y") && (a = n[0] === "m" ? 0 : 4, d = 2 - 0.5 * a, u = parseInt(t.slice(a, a + 2), 10), f = parseInt(t.slice(d, d + 4), 10), h = t.slice(d, d + 4).length === 4, r = [0, u, f]), r = e.getRangeFixedDate(r), e.date = r;
1438
+ var m = r.length === 0 ? t : n.reduce(function(p, k) {
1439
1439
  switch (k) {
1440
1440
  case "d":
1441
- return p + (n[0] === 0 ? "" : e.addLeadingZero(n[0]));
1441
+ return p + (r[0] === 0 ? "" : e.addLeadingZero(r[0]));
1442
1442
  case "m":
1443
- return p + (n[1] === 0 ? "" : e.addLeadingZero(n[1]));
1443
+ return p + (r[1] === 0 ? "" : e.addLeadingZero(r[1]));
1444
1444
  case "y":
1445
- return p + (u ? e.addLeadingZeroForYear(n[2], !1) : "");
1445
+ return p + (h ? e.addLeadingZeroForYear(r[2], !1) : "");
1446
1446
  case "Y":
1447
- return p + (u ? e.addLeadingZeroForYear(n[2], !0) : "");
1447
+ return p + (h ? e.addLeadingZeroForYear(r[2], !0) : "");
1448
1448
  }
1449
1449
  }, "");
1450
1450
  return m;
1451
1451
  },
1452
1452
  getRangeFixedDate: function(t) {
1453
- var e = this, r = e.datePattern, n = e.dateMin || [], i = e.dateMax || [];
1454
- return !t.length || n.length < 3 && i.length < 3 || r.find(function(o) {
1453
+ var e = this, n = e.datePattern, r = e.dateMin || [], i = e.dateMax || [];
1454
+ return !t.length || r.length < 3 && i.length < 3 || n.find(function(o) {
1455
1455
  return o.toLowerCase() === "y";
1456
- }) && t[2] === 0 ? t : i.length && (i[2] < t[2] || i[2] === t[2] && (i[1] < t[1] || i[1] === t[1] && i[0] < t[0])) ? i : n.length && (n[2] > t[2] || n[2] === t[2] && (n[1] > t[1] || n[1] === t[1] && n[0] > t[0])) ? n : t;
1456
+ }) && t[2] === 0 ? t : i.length && (i[2] < t[2] || i[2] === t[2] && (i[1] < t[1] || i[1] === t[1] && i[0] < t[0])) ? i : r.length && (r[2] > t[2] || r[2] === t[2] && (r[1] > t[1] || r[1] === t[1] && r[0] > t[0])) ? r : t;
1457
1457
  },
1458
- getFixedDate: function(t, e, r) {
1459
- return t = Math.min(t, 31), e = Math.min(e, 12), r = parseInt(r || 0, 10), (e < 7 && e % 2 === 0 || e > 8 && e % 2 === 1) && (t = Math.min(t, e === 2 ? this.isLeapYear(r) ? 29 : 28 : 30)), [t, e, r];
1458
+ getFixedDate: function(t, e, n) {
1459
+ return t = Math.min(t, 31), e = Math.min(e, 12), n = parseInt(n || 0, 10), (e < 7 && e % 2 === 0 || e > 8 && e % 2 === 1) && (t = Math.min(t, e === 2 ? this.isLeapYear(n) ? 29 : 28 : 30)), [t, e, n];
1460
1460
  },
1461
1461
  isLeapYear: function(t) {
1462
1462
  return t % 4 === 0 && t % 100 !== 0 || t % 400 === 0;
@@ -1468,9 +1468,9 @@ yt.prototype = {
1468
1468
  return e ? (t < 10 ? "000" : t < 100 ? "00" : t < 1e3 ? "0" : "") + t : (t < 10 ? "0" : "") + t;
1469
1469
  }
1470
1470
  };
1471
- var ur = yt, bt = function(t, e) {
1472
- var r = this;
1473
- r.time = [], r.blocks = [], r.timePattern = t, r.timeFormat = e, r.initBlocks();
1471
+ var un = yt, bt = function(t, e) {
1472
+ var n = this;
1473
+ n.time = [], n.blocks = [], n.timePattern = t, n.timeFormat = e, n.initBlocks();
1474
1474
  };
1475
1475
  bt.prototype = {
1476
1476
  initBlocks: function() {
@@ -1501,29 +1501,29 @@ bt.prototype = {
1501
1501
  };
1502
1502
  },
1503
1503
  getValidatedTime: function(t) {
1504
- var e = this, r = "";
1504
+ var e = this, n = "";
1505
1505
  t = t.replace(/[^\d]/g, "");
1506
- var n = e.getTimeFormatOptions();
1506
+ var r = e.getTimeFormatOptions();
1507
1507
  return e.blocks.forEach(function(i, o) {
1508
1508
  if (t.length > 0) {
1509
1509
  var s = t.slice(0, i), l = s.slice(0, 1), a = t.slice(i);
1510
1510
  switch (e.timePattern[o]) {
1511
1511
  case "h":
1512
- parseInt(l, 10) > n.maxHourFirstDigit ? s = "0" + l : parseInt(s, 10) > n.maxHours && (s = n.maxHours + "");
1512
+ parseInt(l, 10) > r.maxHourFirstDigit ? s = "0" + l : parseInt(s, 10) > r.maxHours && (s = r.maxHours + "");
1513
1513
  break;
1514
1514
  case "m":
1515
1515
  case "s":
1516
- parseInt(l, 10) > n.maxMinutesFirstDigit ? s = "0" + l : parseInt(s, 10) > n.maxMinutes && (s = n.maxMinutes + "");
1516
+ parseInt(l, 10) > r.maxMinutesFirstDigit ? s = "0" + l : parseInt(s, 10) > r.maxMinutes && (s = r.maxMinutes + "");
1517
1517
  break;
1518
1518
  }
1519
- r += s, t = a;
1519
+ n += s, t = a;
1520
1520
  }
1521
- }), this.getFixedTimeString(r);
1521
+ }), this.getFixedTimeString(n);
1522
1522
  },
1523
1523
  getFixedTimeString: function(t) {
1524
- var e = this, r = e.timePattern, n = [], i = 0, o = 0, s = 0, l = 0, a = 0, d = 0, c, h, f;
1525
- return t.length === 6 && (r.forEach(function(u, m) {
1526
- switch (u) {
1524
+ var e = this, n = e.timePattern, r = [], i = 0, o = 0, s = 0, l = 0, a = 0, d = 0, c, u, f;
1525
+ return t.length === 6 && (n.forEach(function(h, m) {
1526
+ switch (h) {
1527
1527
  case "s":
1528
1528
  i = m * 2;
1529
1529
  break;
@@ -1534,8 +1534,8 @@ bt.prototype = {
1534
1534
  s = m * 2;
1535
1535
  break;
1536
1536
  }
1537
- }), d = s, a = o, l = i, c = parseInt(t.slice(l, l + 2), 10), h = parseInt(t.slice(a, a + 2), 10), f = parseInt(t.slice(d, d + 2), 10), n = this.getFixedTime(f, h, c)), t.length === 4 && e.timePattern.indexOf("s") < 0 && (r.forEach(function(u, m) {
1538
- switch (u) {
1537
+ }), d = s, a = o, l = i, c = parseInt(t.slice(l, l + 2), 10), u = parseInt(t.slice(a, a + 2), 10), f = parseInt(t.slice(d, d + 2), 10), r = this.getFixedTime(f, u, c)), t.length === 4 && e.timePattern.indexOf("s") < 0 && (n.forEach(function(h, m) {
1538
+ switch (h) {
1539
1539
  case "m":
1540
1540
  o = m * 2;
1541
1541
  break;
@@ -1543,27 +1543,27 @@ bt.prototype = {
1543
1543
  s = m * 2;
1544
1544
  break;
1545
1545
  }
1546
- }), d = s, a = o, c = 0, h = parseInt(t.slice(a, a + 2), 10), f = parseInt(t.slice(d, d + 2), 10), n = this.getFixedTime(f, h, c)), e.time = n, n.length === 0 ? t : r.reduce(function(u, m) {
1546
+ }), d = s, a = o, c = 0, u = parseInt(t.slice(a, a + 2), 10), f = parseInt(t.slice(d, d + 2), 10), r = this.getFixedTime(f, u, c)), e.time = r, r.length === 0 ? t : n.reduce(function(h, m) {
1547
1547
  switch (m) {
1548
1548
  case "s":
1549
- return u + e.addLeadingZero(n[2]);
1549
+ return h + e.addLeadingZero(r[2]);
1550
1550
  case "m":
1551
- return u + e.addLeadingZero(n[1]);
1551
+ return h + e.addLeadingZero(r[1]);
1552
1552
  case "h":
1553
- return u + e.addLeadingZero(n[0]);
1553
+ return h + e.addLeadingZero(r[0]);
1554
1554
  }
1555
1555
  }, "");
1556
1556
  },
1557
- getFixedTime: function(t, e, r) {
1558
- return r = Math.min(parseInt(r || 0, 10), 60), e = Math.min(e, 60), t = Math.min(t, 60), [t, e, r];
1557
+ getFixedTime: function(t, e, n) {
1558
+ return n = Math.min(parseInt(n || 0, 10), 60), e = Math.min(e, 60), t = Math.min(t, 60), [t, e, n];
1559
1559
  },
1560
1560
  addLeadingZero: function(t) {
1561
1561
  return (t < 10 ? "0" : "") + t;
1562
1562
  }
1563
1563
  };
1564
- var hr = bt, wt = function(t, e) {
1565
- var r = this;
1566
- r.delimiter = e || e === "" ? e : " ", r.delimiterRE = e ? new RegExp("\\" + e, "g") : "", r.formatter = t;
1564
+ var fn = bt, wt = function(t, e) {
1565
+ var n = this;
1566
+ n.delimiter = e || e === "" ? e : " ", n.delimiterRE = e ? new RegExp("\\" + e, "g") : "", n.formatter = t;
1567
1567
  };
1568
1568
  wt.prototype = {
1569
1569
  setFormatter: function(t) {
@@ -1572,12 +1572,12 @@ wt.prototype = {
1572
1572
  format: function(t) {
1573
1573
  var e = this;
1574
1574
  e.formatter.clear(), t = t.replace(/[^\d+]/g, ""), t = t.replace(/^\+/, "B").replace(/\+/g, "").replace("B", "+"), t = t.replace(e.delimiterRE, "");
1575
- for (var r = "", n, i = !1, o = 0, s = t.length; o < s; o++)
1576
- n = e.formatter.inputDigit(t.charAt(o)), /[\s()-]/g.test(n) ? (r = n, i = !0) : i || (r = n);
1577
- return r = r.replace(/[()]/g, ""), r = r.replace(/[\s-]/g, e.delimiter), r;
1575
+ for (var n = "", r, i = !1, o = 0, s = t.length; o < s; o++)
1576
+ r = e.formatter.inputDigit(t.charAt(o)), /[\s()-]/g.test(r) ? (n = r, i = !0) : i || (n = r);
1577
+ return n = n.replace(/[()]/g, ""), n = n.replace(/[\s-]/g, e.delimiter), n;
1578
1578
  }
1579
1579
  };
1580
- var fr = wt, Le = {
1580
+ var mn = wt, Ue = {
1581
1581
  blocks: {
1582
1582
  uatp: [4, 5, 6],
1583
1583
  amex: [4, 6, 5],
@@ -1623,17 +1623,17 @@ var fr = wt, Le = {
1623
1623
  unionPay: /^(62|81)\d{0,14}/
1624
1624
  },
1625
1625
  getStrictBlocks: function(t) {
1626
- var e = t.reduce(function(r, n) {
1627
- return r + n;
1626
+ var e = t.reduce(function(n, r) {
1627
+ return n + r;
1628
1628
  }, 0);
1629
1629
  return t.concat(19 - e);
1630
1630
  },
1631
1631
  getInfo: function(t, e) {
1632
- var r = Le.blocks, n = Le.re;
1632
+ var n = Ue.blocks, r = Ue.re;
1633
1633
  e = !!e;
1634
- for (var i in n)
1635
- if (n[i].test(t)) {
1636
- var o = r[i];
1634
+ for (var i in r)
1635
+ if (r[i].test(t)) {
1636
+ var o = n[i];
1637
1637
  return {
1638
1638
  type: i,
1639
1639
  blocks: e ? this.getStrictBlocks(o) : o
@@ -1641,42 +1641,42 @@ var fr = wt, Le = {
1641
1641
  }
1642
1642
  return {
1643
1643
  type: "unknown",
1644
- blocks: e ? this.getStrictBlocks(r.general) : r.general
1644
+ blocks: e ? this.getStrictBlocks(n.general) : n.general
1645
1645
  };
1646
1646
  }
1647
- }, mr = Le, pr = {
1647
+ }, pn = Ue, gn = {
1648
1648
  noop: function() {
1649
1649
  },
1650
1650
  strip: function(t, e) {
1651
1651
  return t.replace(e, "");
1652
1652
  },
1653
- getPostDelimiter: function(t, e, r) {
1654
- if (r.length === 0)
1653
+ getPostDelimiter: function(t, e, n) {
1654
+ if (n.length === 0)
1655
1655
  return t.slice(-e.length) === e ? e : "";
1656
- var n = "";
1657
- return r.forEach(function(i) {
1658
- t.slice(-i.length) === i && (n = i);
1659
- }), n;
1656
+ var r = "";
1657
+ return n.forEach(function(i) {
1658
+ t.slice(-i.length) === i && (r = i);
1659
+ }), r;
1660
1660
  },
1661
1661
  getDelimiterREByDelimiter: function(t) {
1662
1662
  return new RegExp(t.replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1"), "g");
1663
1663
  },
1664
- getNextCursorPosition: function(t, e, r, n, i) {
1665
- return e.length === t ? r.length : t + this.getPositionOffset(t, e, r, n, i);
1664
+ getNextCursorPosition: function(t, e, n, r, i) {
1665
+ return e.length === t ? n.length : t + this.getPositionOffset(t, e, n, r, i);
1666
1666
  },
1667
- getPositionOffset: function(t, e, r, n, i) {
1667
+ getPositionOffset: function(t, e, n, r, i) {
1668
1668
  var o, s, l;
1669
- return o = this.stripDelimiters(e.slice(0, t), n, i), s = this.stripDelimiters(r.slice(0, t), n, i), l = o.length - s.length, l !== 0 ? l / Math.abs(l) : 0;
1669
+ return o = this.stripDelimiters(e.slice(0, t), r, i), s = this.stripDelimiters(n.slice(0, t), r, i), l = o.length - s.length, l !== 0 ? l / Math.abs(l) : 0;
1670
1670
  },
1671
- stripDelimiters: function(t, e, r) {
1672
- var n = this;
1673
- if (r.length === 0) {
1674
- var i = e ? n.getDelimiterREByDelimiter(e) : "";
1671
+ stripDelimiters: function(t, e, n) {
1672
+ var r = this;
1673
+ if (n.length === 0) {
1674
+ var i = e ? r.getDelimiterREByDelimiter(e) : "";
1675
1675
  return t.replace(i, "");
1676
1676
  }
1677
- return r.forEach(function(o) {
1677
+ return n.forEach(function(o) {
1678
1678
  o.split("").forEach(function(s) {
1679
- t = t.replace(n.getDelimiterREByDelimiter(s), "");
1679
+ t = t.replace(r.getDelimiterREByDelimiter(s), "");
1680
1680
  });
1681
1681
  }), t;
1682
1682
  },
@@ -1684,8 +1684,8 @@ var fr = wt, Le = {
1684
1684
  return t.slice(0, e);
1685
1685
  },
1686
1686
  getMaxLength: function(t) {
1687
- return t.reduce(function(e, r) {
1688
- return e + r;
1687
+ return t.reduce(function(e, n) {
1688
+ return e + n;
1689
1689
  }, 0);
1690
1690
  },
1691
1691
  // strip prefix
@@ -1694,42 +1694,42 @@ var fr = wt, Le = {
1694
1694
  // PREFIX-123 | PEFIX-123 | 123
1695
1695
  // PREFIX-123 | PREFIX-23 | 23
1696
1696
  // PREFIX-123 | PREFIX-1234 | 1234
1697
- getPrefixStrippedValue: function(t, e, r, n, i, o, s, l, a) {
1698
- if (r === 0)
1697
+ getPrefixStrippedValue: function(t, e, n, r, i, o, s, l, a) {
1698
+ if (n === 0)
1699
1699
  return t;
1700
1700
  if (t === e && t !== "")
1701
1701
  return "";
1702
1702
  if (a && t.slice(0, 1) == "-") {
1703
- var d = n.slice(0, 1) == "-" ? n.slice(1) : n;
1704
- return "-" + this.getPrefixStrippedValue(t.slice(1), e, r, d, i, o, s, l, a);
1705
- }
1706
- if (n.slice(0, r) !== e && !l)
1707
- return s && !n && t ? t : "";
1708
- if (n.slice(-r) !== e && l)
1709
- return s && !n && t ? t : "";
1710
- var c = this.stripDelimiters(n, i, o);
1711
- return t.slice(0, r) !== e && !l ? c.slice(r) : t.slice(-r) !== e && l ? c.slice(0, -r - 1) : l ? t.slice(0, -r) : t.slice(r);
1703
+ var d = r.slice(0, 1) == "-" ? r.slice(1) : r;
1704
+ return "-" + this.getPrefixStrippedValue(t.slice(1), e, n, d, i, o, s, l, a);
1705
+ }
1706
+ if (r.slice(0, n) !== e && !l)
1707
+ return s && !r && t ? t : "";
1708
+ if (r.slice(-n) !== e && l)
1709
+ return s && !r && t ? t : "";
1710
+ var c = this.stripDelimiters(r, i, o);
1711
+ return t.slice(0, n) !== e && !l ? c.slice(n) : t.slice(-n) !== e && l ? c.slice(0, -n - 1) : l ? t.slice(0, -n) : t.slice(n);
1712
1712
  },
1713
1713
  getFirstDiffIndex: function(t, e) {
1714
- for (var r = 0; t.charAt(r) === e.charAt(r); )
1715
- if (t.charAt(r++) === "")
1714
+ for (var n = 0; t.charAt(n) === e.charAt(n); )
1715
+ if (t.charAt(n++) === "")
1716
1716
  return -1;
1717
- return r;
1717
+ return n;
1718
1718
  },
1719
- getFormattedValue: function(t, e, r, n, i, o) {
1719
+ getFormattedValue: function(t, e, n, r, i, o) {
1720
1720
  var s = "", l = i.length > 0, a = "";
1721
- return r === 0 ? t : (e.forEach(function(d, c) {
1721
+ return n === 0 ? t : (e.forEach(function(d, c) {
1722
1722
  if (t.length > 0) {
1723
- var h = t.slice(0, d), f = t.slice(d);
1724
- l ? a = i[o ? c - 1 : c] || a : a = n, o ? (c > 0 && (s += a), s += h) : (s += h, h.length === d && c < r - 1 && (s += a)), t = f;
1723
+ var u = t.slice(0, d), f = t.slice(d);
1724
+ l ? a = i[o ? c - 1 : c] || a : a = r, o ? (c > 0 && (s += a), s += u) : (s += u, u.length === d && c < n - 1 && (s += a)), t = f;
1725
1725
  }
1726
1726
  }), s);
1727
1727
  },
1728
1728
  // move cursor to the end
1729
1729
  // the first time user focuses on an input with prefix
1730
- fixPrefixCursor: function(t, e, r, n) {
1730
+ fixPrefixCursor: function(t, e, n, r) {
1731
1731
  if (t) {
1732
- var i = t.value, o = r || n[0] || " ";
1732
+ var i = t.value, o = n || r[0] || " ";
1733
1733
  if (!(!t.setSelectionRange || !e || e.length + o.length <= i.length)) {
1734
1734
  var s = i.length * 2;
1735
1735
  setTimeout(function() {
@@ -1747,11 +1747,11 @@ var fr = wt, Le = {
1747
1747
  }
1748
1748
  return !1;
1749
1749
  },
1750
- setSelection: function(t, e, r) {
1751
- if (t === this.getActiveElement(r) && !(t && t.value.length <= e))
1750
+ setSelection: function(t, e, n) {
1751
+ if (t === this.getActiveElement(n) && !(t && t.value.length <= e))
1752
1752
  if (t.createTextRange) {
1753
- var n = t.createTextRange();
1754
- n.move("character", e), n.select();
1753
+ var r = t.createTextRange();
1754
+ r.move("character", e), r.select();
1755
1755
  } else
1756
1756
  try {
1757
1757
  t.setSelectionRange(e, e);
@@ -1773,24 +1773,24 @@ var fr = wt, Le = {
1773
1773
  isAndroidBackspaceKeydown: function(t, e) {
1774
1774
  return !this.isAndroid() || !t || !e ? !1 : e === t.slice(0, -1);
1775
1775
  }
1776
- }, gr = pr, yr = {
1776
+ }, yn = gn, bn = {
1777
1777
  // Maybe change to object-assign
1778
1778
  // for now just keep it as simple
1779
1779
  assign: function(t, e) {
1780
1780
  return t = t || {}, e = e || {}, t.creditCard = !!e.creditCard, t.creditCardStrictMode = !!e.creditCardStrictMode, t.creditCardType = "", t.onCreditCardTypeChanged = e.onCreditCardTypeChanged || function() {
1781
- }, t.phone = !!e.phone, t.phoneRegionCode = e.phoneRegionCode || "AU", t.phoneFormatter = {}, t.time = !!e.time, t.timePattern = e.timePattern || ["h", "m", "s"], t.timeFormat = e.timeFormat || "24", t.timeFormatter = {}, t.date = !!e.date, t.datePattern = e.datePattern || ["d", "m", "Y"], t.dateMin = e.dateMin || "", t.dateMax = e.dateMax || "", t.dateFormatter = {}, t.numeral = !!e.numeral, t.numeralIntegerScale = e.numeralIntegerScale > 0 ? e.numeralIntegerScale : 0, t.numeralDecimalScale = e.numeralDecimalScale >= 0 ? e.numeralDecimalScale : 2, t.numeralDecimalMark = e.numeralDecimalMark || ".", t.numeralThousandsGroupStyle = e.numeralThousandsGroupStyle || "thousand", t.numeralPositiveOnly = !!e.numeralPositiveOnly, t.stripLeadingZeroes = e.stripLeadingZeroes !== !1, t.signBeforePrefix = !!e.signBeforePrefix, t.tailPrefix = !!e.tailPrefix, t.swapHiddenInput = !!e.swapHiddenInput, t.numericOnly = t.creditCard || t.date || !!e.numericOnly, t.uppercase = !!e.uppercase, t.lowercase = !!e.lowercase, t.prefix = t.creditCard || t.date ? "" : e.prefix || "", t.noImmediatePrefix = !!e.noImmediatePrefix, t.prefixLength = t.prefix.length, t.rawValueTrimPrefix = !!e.rawValueTrimPrefix, t.copyDelimiter = !!e.copyDelimiter, t.initValue = e.initValue !== void 0 && e.initValue !== null ? e.initValue.toString() : "", t.delimiter = e.delimiter || e.delimiter === "" ? e.delimiter : e.date ? "/" : e.time ? ":" : e.numeral ? "," : (e.phone, " "), t.delimiterLength = t.delimiter.length, t.delimiterLazyShow = !!e.delimiterLazyShow, t.delimiters = e.delimiters || [], t.blocks = e.blocks || [], t.blocksLength = t.blocks.length, t.root = typeof Z == "object" && Z ? Z : window, t.document = e.document || t.root.document, t.maxLength = 0, t.backspace = !1, t.result = "", t.onValueChanged = e.onValueChanged || function() {
1781
+ }, t.phone = !!e.phone, t.phoneRegionCode = e.phoneRegionCode || "AU", t.phoneFormatter = {}, t.time = !!e.time, t.timePattern = e.timePattern || ["h", "m", "s"], t.timeFormat = e.timeFormat || "24", t.timeFormatter = {}, t.date = !!e.date, t.datePattern = e.datePattern || ["d", "m", "Y"], t.dateMin = e.dateMin || "", t.dateMax = e.dateMax || "", t.dateFormatter = {}, t.numeral = !!e.numeral, t.numeralIntegerScale = e.numeralIntegerScale > 0 ? e.numeralIntegerScale : 0, t.numeralDecimalScale = e.numeralDecimalScale >= 0 ? e.numeralDecimalScale : 2, t.numeralDecimalMark = e.numeralDecimalMark || ".", t.numeralThousandsGroupStyle = e.numeralThousandsGroupStyle || "thousand", t.numeralPositiveOnly = !!e.numeralPositiveOnly, t.stripLeadingZeroes = e.stripLeadingZeroes !== !1, t.signBeforePrefix = !!e.signBeforePrefix, t.tailPrefix = !!e.tailPrefix, t.swapHiddenInput = !!e.swapHiddenInput, t.numericOnly = t.creditCard || t.date || !!e.numericOnly, t.uppercase = !!e.uppercase, t.lowercase = !!e.lowercase, t.prefix = t.creditCard || t.date ? "" : e.prefix || "", t.noImmediatePrefix = !!e.noImmediatePrefix, t.prefixLength = t.prefix.length, t.rawValueTrimPrefix = !!e.rawValueTrimPrefix, t.copyDelimiter = !!e.copyDelimiter, t.initValue = e.initValue !== void 0 && e.initValue !== null ? e.initValue.toString() : "", t.delimiter = e.delimiter || e.delimiter === "" ? e.delimiter : e.date ? "/" : e.time ? ":" : e.numeral ? "," : (e.phone, " "), t.delimiterLength = t.delimiter.length, t.delimiterLazyShow = !!e.delimiterLazyShow, t.delimiters = e.delimiters || [], t.blocks = e.blocks || [], t.blocksLength = t.blocks.length, t.root = typeof X == "object" && X ? X : window, t.document = e.document || t.root.document, t.maxLength = 0, t.backspace = !1, t.result = "", t.onValueChanged = e.onValueChanged || function() {
1782
1782
  }, t;
1783
1783
  }
1784
- }, br = yr, x = function(t, e) {
1785
- var r = this, n = !1;
1786
- if (typeof t == "string" ? (r.element = document.querySelector(t), n = document.querySelectorAll(t).length > 1) : typeof t.length < "u" && t.length > 0 ? (r.element = t[0], n = t.length > 1) : r.element = t, !r.element)
1784
+ }, wn = bn, x = function(t, e) {
1785
+ var n = this, r = !1;
1786
+ if (typeof t == "string" ? (n.element = document.querySelector(t), r = document.querySelectorAll(t).length > 1) : typeof t.length < "u" && t.length > 0 ? (n.element = t[0], r = t.length > 1) : n.element = t, !n.element)
1787
1787
  throw new Error("[cleave.js] Please check the element");
1788
- if (n)
1788
+ if (r)
1789
1789
  try {
1790
1790
  console.warn("[cleave.js] Multiple input fields matched, cleave.js will only take the first one.");
1791
1791
  } catch {
1792
1792
  }
1793
- e.initValue = r.element.value, r.properties = x.DefaultProperties.assign({}, e), r.init();
1793
+ e.initValue = n.element.value, n.properties = x.DefaultProperties.assign({}, e), n.init();
1794
1794
  };
1795
1795
  x.prototype = {
1796
1796
  init: function() {
@@ -1804,8 +1804,8 @@ x.prototype = {
1804
1804
  initSwapHiddenInput: function() {
1805
1805
  var t = this, e = t.properties;
1806
1806
  if (e.swapHiddenInput) {
1807
- var r = t.element.cloneNode(!0);
1808
- t.element.parentNode.insertBefore(r, t.element), t.elementSwapHidden = t.element, t.elementSwapHidden.type = "hidden", t.element = r, t.element.id = "";
1807
+ var n = t.element.cloneNode(!0);
1808
+ t.element.parentNode.insertBefore(n, t.element), t.elementSwapHidden = t.element, t.elementSwapHidden.type = "hidden", t.element = n, t.element.id = "";
1809
1809
  }
1810
1810
  },
1811
1811
  initNumeralFormatter: function() {
@@ -1844,14 +1844,14 @@ x.prototype = {
1844
1844
  }
1845
1845
  },
1846
1846
  onKeyDown: function(t) {
1847
- var e = this, r = t.which || t.keyCode;
1848
- e.lastInputValue = e.element.value, e.isBackward = r === 8;
1847
+ var e = this, n = t.which || t.keyCode;
1848
+ e.lastInputValue = e.element.value, e.isBackward = n === 8;
1849
1849
  },
1850
1850
  onChange: function(t) {
1851
- var e = this, r = e.properties, n = x.Util;
1851
+ var e = this, n = e.properties, r = x.Util;
1852
1852
  e.isBackward = e.isBackward || t.inputType === "deleteContentBackward";
1853
- var i = n.getPostDelimiter(e.lastInputValue, r.delimiter, r.delimiters);
1854
- e.isBackward && i ? r.postDelimiterBackspace = i : r.postDelimiterBackspace = !1, this.onInput(this.element.value);
1853
+ var i = r.getPostDelimiter(e.lastInputValue, n.delimiter, n.delimiters);
1854
+ e.isBackward && i ? n.postDelimiterBackspace = i : n.postDelimiterBackspace = !1, this.onInput(this.element.value);
1855
1855
  },
1856
1856
  onFocus: function() {
1857
1857
  var t = this, e = t.properties;
@@ -1864,51 +1864,51 @@ x.prototype = {
1864
1864
  x.Util.checkFullSelection(this.element.value) && this.copyClipboardData(t);
1865
1865
  },
1866
1866
  copyClipboardData: function(t) {
1867
- var e = this, r = e.properties, n = x.Util, i = e.element.value, o = "";
1868
- r.copyDelimiter ? o = i : o = n.stripDelimiters(i, r.delimiter, r.delimiters);
1867
+ var e = this, n = e.properties, r = x.Util, i = e.element.value, o = "";
1868
+ n.copyDelimiter ? o = i : o = r.stripDelimiters(i, n.delimiter, n.delimiters);
1869
1869
  try {
1870
1870
  t.clipboardData ? t.clipboardData.setData("Text", o) : window.clipboardData.setData("Text", o), t.preventDefault();
1871
1871
  } catch {
1872
1872
  }
1873
1873
  },
1874
1874
  onInput: function(t) {
1875
- var e = this, r = e.properties, n = x.Util, i = n.getPostDelimiter(t, r.delimiter, r.delimiters);
1876
- if (!r.numeral && r.postDelimiterBackspace && !i && (t = n.headStr(t, t.length - r.postDelimiterBackspace.length)), r.phone) {
1877
- r.prefix && (!r.noImmediatePrefix || t.length) ? r.result = r.prefix + r.phoneFormatter.format(t).slice(r.prefix.length) : r.result = r.phoneFormatter.format(t), e.updateValueState();
1875
+ var e = this, n = e.properties, r = x.Util, i = r.getPostDelimiter(t, n.delimiter, n.delimiters);
1876
+ if (!n.numeral && n.postDelimiterBackspace && !i && (t = r.headStr(t, t.length - n.postDelimiterBackspace.length)), n.phone) {
1877
+ n.prefix && (!n.noImmediatePrefix || t.length) ? n.result = n.prefix + n.phoneFormatter.format(t).slice(n.prefix.length) : n.result = n.phoneFormatter.format(t), e.updateValueState();
1878
1878
  return;
1879
1879
  }
1880
- if (r.numeral) {
1881
- r.prefix && r.noImmediatePrefix && t.length === 0 ? r.result = "" : r.result = r.numeralFormatter.format(t), e.updateValueState();
1880
+ if (n.numeral) {
1881
+ n.prefix && n.noImmediatePrefix && t.length === 0 ? n.result = "" : n.result = n.numeralFormatter.format(t), e.updateValueState();
1882
1882
  return;
1883
1883
  }
1884
- if (r.date && (t = r.dateFormatter.getValidatedDate(t)), r.time && (t = r.timeFormatter.getValidatedTime(t)), t = n.stripDelimiters(t, r.delimiter, r.delimiters), t = n.getPrefixStrippedValue(t, r.prefix, r.prefixLength, r.result, r.delimiter, r.delimiters, r.noImmediatePrefix, r.tailPrefix, r.signBeforePrefix), t = r.numericOnly ? n.strip(t, /[^\d]/g) : t, t = r.uppercase ? t.toUpperCase() : t, t = r.lowercase ? t.toLowerCase() : t, r.prefix && (r.tailPrefix ? t = t + r.prefix : t = r.prefix + t, r.blocksLength === 0)) {
1885
- r.result = t, e.updateValueState();
1884
+ if (n.date && (t = n.dateFormatter.getValidatedDate(t)), n.time && (t = n.timeFormatter.getValidatedTime(t)), t = r.stripDelimiters(t, n.delimiter, n.delimiters), t = r.getPrefixStrippedValue(t, n.prefix, n.prefixLength, n.result, n.delimiter, n.delimiters, n.noImmediatePrefix, n.tailPrefix, n.signBeforePrefix), t = n.numericOnly ? r.strip(t, /[^\d]/g) : t, t = n.uppercase ? t.toUpperCase() : t, t = n.lowercase ? t.toLowerCase() : t, n.prefix && (n.tailPrefix ? t = t + n.prefix : t = n.prefix + t, n.blocksLength === 0)) {
1885
+ n.result = t, e.updateValueState();
1886
1886
  return;
1887
1887
  }
1888
- r.creditCard && e.updateCreditCardPropsByValue(t), t = n.headStr(t, r.maxLength), r.result = n.getFormattedValue(
1888
+ n.creditCard && e.updateCreditCardPropsByValue(t), t = r.headStr(t, n.maxLength), n.result = r.getFormattedValue(
1889
1889
  t,
1890
- r.blocks,
1891
- r.blocksLength,
1892
- r.delimiter,
1893
- r.delimiters,
1894
- r.delimiterLazyShow
1890
+ n.blocks,
1891
+ n.blocksLength,
1892
+ n.delimiter,
1893
+ n.delimiters,
1894
+ n.delimiterLazyShow
1895
1895
  ), e.updateValueState();
1896
1896
  },
1897
1897
  updateCreditCardPropsByValue: function(t) {
1898
- var e = this, r = e.properties, n = x.Util, i;
1899
- n.headStr(r.result, 4) !== n.headStr(t, 4) && (i = x.CreditCardDetector.getInfo(t, r.creditCardStrictMode), r.blocks = i.blocks, r.blocksLength = r.blocks.length, r.maxLength = n.getMaxLength(r.blocks), r.creditCardType !== i.type && (r.creditCardType = i.type, r.onCreditCardTypeChanged.call(e, r.creditCardType)));
1898
+ var e = this, n = e.properties, r = x.Util, i;
1899
+ r.headStr(n.result, 4) !== r.headStr(t, 4) && (i = x.CreditCardDetector.getInfo(t, n.creditCardStrictMode), n.blocks = i.blocks, n.blocksLength = n.blocks.length, n.maxLength = r.getMaxLength(n.blocks), n.creditCardType !== i.type && (n.creditCardType = i.type, n.onCreditCardTypeChanged.call(e, n.creditCardType)));
1900
1900
  },
1901
1901
  updateValueState: function() {
1902
- var t = this, e = x.Util, r = t.properties;
1902
+ var t = this, e = x.Util, n = t.properties;
1903
1903
  if (t.element) {
1904
- var n = t.element.selectionEnd, i = t.element.value, o = r.result;
1905
- if (n = e.getNextCursorPosition(n, i, o, r.delimiter, r.delimiters), t.isAndroid) {
1904
+ var r = t.element.selectionEnd, i = t.element.value, o = n.result;
1905
+ if (r = e.getNextCursorPosition(r, i, o, n.delimiter, n.delimiters), t.isAndroid) {
1906
1906
  window.setTimeout(function() {
1907
- t.element.value = o, e.setSelection(t.element, n, r.document, !1), t.callOnValueChanged();
1907
+ t.element.value = o, e.setSelection(t.element, r, n.document, !1), t.callOnValueChanged();
1908
1908
  }, 1);
1909
1909
  return;
1910
1910
  }
1911
- t.element.value = o, r.swapHiddenInput && (t.elementSwapHidden.value = t.getRawValue()), e.setSelection(t.element, n, r.document, !1), t.callOnValueChanged();
1911
+ t.element.value = o, n.swapHiddenInput && (t.elementSwapHidden.value = t.getRawValue()), e.setSelection(t.element, r, n.document, !1), t.callOnValueChanged();
1912
1912
  }
1913
1913
  },
1914
1914
  callOnValueChanged: function() {
@@ -1922,16 +1922,16 @@ x.prototype = {
1922
1922
  });
1923
1923
  },
1924
1924
  setPhoneRegionCode: function(t) {
1925
- var e = this, r = e.properties;
1926
- r.phoneRegionCode = t, e.initPhoneFormatter(), e.onChange();
1925
+ var e = this, n = e.properties;
1926
+ n.phoneRegionCode = t, e.initPhoneFormatter(), e.onChange();
1927
1927
  },
1928
1928
  setRawValue: function(t) {
1929
- var e = this, r = e.properties;
1930
- t = t != null ? t.toString() : "", r.numeral && (t = t.replace(".", r.numeralDecimalMark)), r.postDelimiterBackspace = !1, e.element.value = t, e.onInput(t);
1929
+ var e = this, n = e.properties;
1930
+ t = t != null ? t.toString() : "", n.numeral && (t = t.replace(".", n.numeralDecimalMark)), n.postDelimiterBackspace = !1, e.element.value = t, e.onInput(t);
1931
1931
  },
1932
1932
  getRawValue: function() {
1933
- var t = this, e = t.properties, r = x.Util, n = t.element.value;
1934
- return e.rawValueTrimPrefix && (n = r.getPrefixStrippedValue(n, e.prefix, e.prefixLength, e.result, e.delimiter, e.delimiters, e.noImmediatePrefix, e.tailPrefix, e.signBeforePrefix)), e.numeral ? n = e.numeralFormatter.getRawValue(n) : n = r.stripDelimiters(n, e.delimiter, e.delimiters), n;
1933
+ var t = this, e = t.properties, n = x.Util, r = t.element.value;
1934
+ return e.rawValueTrimPrefix && (r = n.getPrefixStrippedValue(r, e.prefix, e.prefixLength, e.result, e.delimiter, e.delimiters, e.noImmediatePrefix, e.tailPrefix, e.signBeforePrefix)), e.numeral ? r = e.numeralFormatter.getRawValue(r) : r = n.stripDelimiters(r, e.delimiter, e.delimiters), r;
1935
1935
  },
1936
1936
  getISOFormatDate: function() {
1937
1937
  var t = this, e = t.properties;
@@ -1952,19 +1952,19 @@ x.prototype = {
1952
1952
  return "[Cleave Object]";
1953
1953
  }
1954
1954
  };
1955
- x.NumeralFormatter = cr;
1956
- x.DateFormatter = ur;
1957
- x.TimeFormatter = hr;
1958
- x.PhoneFormatter = fr;
1959
- x.CreditCardDetector = mr;
1960
- x.Util = gr;
1961
- x.DefaultProperties = br;
1962
- (typeof Z == "object" && Z ? Z : window).Cleave = x;
1963
- var at = x, fe = {}, wr = function() {
1955
+ x.NumeralFormatter = hn;
1956
+ x.DateFormatter = un;
1957
+ x.TimeFormatter = fn;
1958
+ x.PhoneFormatter = mn;
1959
+ x.CreditCardDetector = pn;
1960
+ x.Util = yn;
1961
+ x.DefaultProperties = wn;
1962
+ (typeof X == "object" && X ? X : window).Cleave = x;
1963
+ var at = x, fe = {}, vn = function() {
1964
1964
  return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
1965
- }, vt = {}, M = {};
1966
- let Ye;
1967
- const vr = [
1965
+ }, vt = {}, D = {};
1966
+ let We;
1967
+ const xn = [
1968
1968
  0,
1969
1969
  // Not used
1970
1970
  26,
@@ -2008,38 +2008,38 @@ const vr = [
2008
2008
  3532,
2009
2009
  3706
2010
2010
  ];
2011
- M.getSymbolSize = function(e) {
2011
+ D.getSymbolSize = function(e) {
2012
2012
  if (!e) throw new Error('"version" cannot be null or undefined');
2013
2013
  if (e < 1 || e > 40) throw new Error('"version" should be in range from 1 to 40');
2014
2014
  return e * 4 + 17;
2015
2015
  };
2016
- M.getSymbolTotalCodewords = function(e) {
2017
- return vr[e];
2016
+ D.getSymbolTotalCodewords = function(e) {
2017
+ return xn[e];
2018
2018
  };
2019
- M.getBCHDigit = function(t) {
2019
+ D.getBCHDigit = function(t) {
2020
2020
  let e = 0;
2021
2021
  for (; t !== 0; )
2022
2022
  e++, t >>>= 1;
2023
2023
  return e;
2024
2024
  };
2025
- M.setToSJISFunction = function(e) {
2025
+ D.setToSJISFunction = function(e) {
2026
2026
  if (typeof e != "function")
2027
2027
  throw new Error('"toSJISFunc" is not a valid function.');
2028
- Ye = e;
2028
+ We = e;
2029
2029
  };
2030
- M.isKanjiModeEnabled = function() {
2031
- return typeof Ye < "u";
2030
+ D.isKanjiModeEnabled = function() {
2031
+ return typeof We < "u";
2032
2032
  };
2033
- M.toSJIS = function(e) {
2034
- return Ye(e);
2033
+ D.toSJIS = function(e) {
2034
+ return We(e);
2035
2035
  };
2036
2036
  var Ce = {};
2037
2037
  (function(t) {
2038
2038
  t.L = { bit: 1 }, t.M = { bit: 0 }, t.Q = { bit: 3 }, t.H = { bit: 2 };
2039
- function e(r) {
2040
- if (typeof r != "string")
2039
+ function e(n) {
2040
+ if (typeof n != "string")
2041
2041
  throw new Error("Param is not a string");
2042
- switch (r.toLowerCase()) {
2042
+ switch (n.toLowerCase()) {
2043
2043
  case "l":
2044
2044
  case "low":
2045
2045
  return t.L;
@@ -2053,16 +2053,16 @@ var Ce = {};
2053
2053
  case "high":
2054
2054
  return t.H;
2055
2055
  default:
2056
- throw new Error("Unknown EC Level: " + r);
2056
+ throw new Error("Unknown EC Level: " + n);
2057
2057
  }
2058
2058
  }
2059
- t.isValid = function(n) {
2060
- return n && typeof n.bit < "u" && n.bit >= 0 && n.bit < 4;
2061
- }, t.from = function(n, i) {
2062
- if (t.isValid(n))
2063
- return n;
2059
+ t.isValid = function(r) {
2060
+ return r && typeof r.bit < "u" && r.bit >= 0 && r.bit < 4;
2061
+ }, t.from = function(r, i) {
2062
+ if (t.isValid(r))
2063
+ return r;
2064
2064
  try {
2065
- return e(n);
2065
+ return e(r);
2066
2066
  } catch {
2067
2067
  return i;
2068
2068
  }
@@ -2077,8 +2077,8 @@ xt.prototype = {
2077
2077
  return (this.buffer[e] >>> 7 - t % 8 & 1) === 1;
2078
2078
  },
2079
2079
  put: function(t, e) {
2080
- for (let r = 0; r < e; r++)
2081
- this.putBit((t >>> e - r - 1 & 1) === 1);
2080
+ for (let n = 0; n < e; n++)
2081
+ this.putBit((t >>> e - n - 1 & 1) === 1);
2082
2082
  },
2083
2083
  getLengthInBits: function() {
2084
2084
  return this.length;
@@ -2088,36 +2088,36 @@ xt.prototype = {
2088
2088
  this.buffer.length <= e && this.buffer.push(0), t && (this.buffer[e] |= 128 >>> this.length % 8), this.length++;
2089
2089
  }
2090
2090
  };
2091
- var xr = xt;
2091
+ var Sn = xt;
2092
2092
  function me(t) {
2093
2093
  if (!t || t < 1)
2094
2094
  throw new Error("BitMatrix size must be defined and greater than 0");
2095
2095
  this.size = t, this.data = new Uint8Array(t * t), this.reservedBit = new Uint8Array(t * t);
2096
2096
  }
2097
- me.prototype.set = function(t, e, r, n) {
2097
+ me.prototype.set = function(t, e, n, r) {
2098
2098
  const i = t * this.size + e;
2099
- this.data[i] = r, n && (this.reservedBit[i] = !0);
2099
+ this.data[i] = n, r && (this.reservedBit[i] = !0);
2100
2100
  };
2101
2101
  me.prototype.get = function(t, e) {
2102
2102
  return this.data[t * this.size + e];
2103
2103
  };
2104
- me.prototype.xor = function(t, e, r) {
2105
- this.data[t * this.size + e] ^= r;
2104
+ me.prototype.xor = function(t, e, n) {
2105
+ this.data[t * this.size + e] ^= n;
2106
2106
  };
2107
2107
  me.prototype.isReserved = function(t, e) {
2108
2108
  return this.reservedBit[t * this.size + e];
2109
2109
  };
2110
- var Sr = me, St = {};
2110
+ var Cn = me, St = {};
2111
2111
  (function(t) {
2112
- const e = M.getSymbolSize;
2113
- t.getRowColCoords = function(n) {
2114
- if (n === 1) return [];
2115
- const i = Math.floor(n / 7) + 2, o = e(n), s = o === 145 ? 26 : Math.ceil((o - 13) / (2 * i - 2)) * 2, l = [o - 7];
2112
+ const e = D.getSymbolSize;
2113
+ t.getRowColCoords = function(r) {
2114
+ if (r === 1) return [];
2115
+ const i = Math.floor(r / 7) + 2, o = e(r), s = o === 145 ? 26 : Math.ceil((o - 13) / (2 * i - 2)) * 2, l = [o - 7];
2116
2116
  for (let a = 1; a < i - 1; a++)
2117
2117
  l[a] = l[a - 1] - s;
2118
2118
  return l.push(6), l.reverse();
2119
- }, t.getPositions = function(n) {
2120
- const i = [], o = t.getRowColCoords(n), s = o.length;
2119
+ }, t.getPositions = function(r) {
2120
+ const i = [], o = t.getRowColCoords(r), s = o.length;
2121
2121
  for (let l = 0; l < s; l++)
2122
2122
  for (let a = 0; a < s; a++)
2123
2123
  l === 0 && a === 0 || // top-left
@@ -2127,16 +2127,16 @@ var Sr = me, St = {};
2127
2127
  };
2128
2128
  })(St);
2129
2129
  var Ct = {};
2130
- const Cr = M.getSymbolSize, lt = 7;
2130
+ const kn = D.getSymbolSize, lt = 7;
2131
2131
  Ct.getPositions = function(e) {
2132
- const r = Cr(e);
2132
+ const n = kn(e);
2133
2133
  return [
2134
2134
  // top-left
2135
2135
  [0, 0],
2136
2136
  // top-right
2137
- [r - lt, 0],
2137
+ [n - lt, 0],
2138
2138
  // bottom-left
2139
- [0, r - lt]
2139
+ [0, n - lt]
2140
2140
  ];
2141
2141
  };
2142
2142
  var kt = {};
@@ -2164,11 +2164,11 @@ var kt = {};
2164
2164
  }, t.getPenaltyN1 = function(i) {
2165
2165
  const o = i.size;
2166
2166
  let s = 0, l = 0, a = 0, d = null, c = null;
2167
- for (let h = 0; h < o; h++) {
2167
+ for (let u = 0; u < o; u++) {
2168
2168
  l = a = 0, d = c = null;
2169
2169
  for (let f = 0; f < o; f++) {
2170
- let u = i.get(h, f);
2171
- u === d ? l++ : (l >= 5 && (s += e.N1 + (l - 5)), d = u, l = 1), u = i.get(f, h), u === c ? a++ : (a >= 5 && (s += e.N1 + (a - 5)), c = u, a = 1);
2170
+ let h = i.get(u, f);
2171
+ h === d ? l++ : (l >= 5 && (s += e.N1 + (l - 5)), d = h, l = 1), h = i.get(f, u), h === c ? a++ : (a >= 5 && (s += e.N1 + (a - 5)), c = h, a = 1);
2172
2172
  }
2173
2173
  l >= 5 && (s += e.N1 + (l - 5)), a >= 5 && (s += e.N1 + (a - 5));
2174
2174
  }
@@ -2197,8 +2197,8 @@ var kt = {};
2197
2197
  for (let a = 0; a < s; a++) o += i.data[a];
2198
2198
  return Math.abs(Math.ceil(o * 100 / s / 5) - 10) * e.N4;
2199
2199
  };
2200
- function r(n, i, o) {
2201
- switch (n) {
2200
+ function n(r, i, o) {
2201
+ switch (r) {
2202
2202
  case t.Patterns.PATTERN000:
2203
2203
  return (i + o) % 2 === 0;
2204
2204
  case t.Patterns.PATTERN001:
@@ -2216,14 +2216,14 @@ var kt = {};
2216
2216
  case t.Patterns.PATTERN111:
2217
2217
  return (i * o % 3 + (i + o) % 2) % 2 === 0;
2218
2218
  default:
2219
- throw new Error("bad maskPattern:" + n);
2219
+ throw new Error("bad maskPattern:" + r);
2220
2220
  }
2221
2221
  }
2222
2222
  t.applyMask = function(i, o) {
2223
2223
  const s = o.size;
2224
2224
  for (let l = 0; l < s; l++)
2225
2225
  for (let a = 0; a < s; a++)
2226
- o.isReserved(a, l) || o.xor(a, l, r(i, a, l));
2226
+ o.isReserved(a, l) || o.xor(a, l, n(i, a, l));
2227
2227
  }, t.getBestMask = function(i, o) {
2228
2228
  const s = Object.keys(t.Patterns).length;
2229
2229
  let l = 0, a = 1 / 0;
@@ -2236,7 +2236,7 @@ var kt = {};
2236
2236
  };
2237
2237
  })(kt);
2238
2238
  var ke = {};
2239
- const U = Ce, pe = [
2239
+ const q = Ce, pe = [
2240
2240
  // L M Q H
2241
2241
  1,
2242
2242
  1,
@@ -2561,29 +2561,29 @@ const U = Ce, pe = [
2561
2561
  2040,
2562
2562
  2430
2563
2563
  ];
2564
- ke.getBlocksCount = function(e, r) {
2565
- switch (r) {
2566
- case U.L:
2564
+ ke.getBlocksCount = function(e, n) {
2565
+ switch (n) {
2566
+ case q.L:
2567
2567
  return pe[(e - 1) * 4 + 0];
2568
- case U.M:
2568
+ case q.M:
2569
2569
  return pe[(e - 1) * 4 + 1];
2570
- case U.Q:
2570
+ case q.Q:
2571
2571
  return pe[(e - 1) * 4 + 2];
2572
- case U.H:
2572
+ case q.H:
2573
2573
  return pe[(e - 1) * 4 + 3];
2574
2574
  default:
2575
2575
  return;
2576
2576
  }
2577
2577
  };
2578
- ke.getTotalCodewordsCount = function(e, r) {
2579
- switch (r) {
2580
- case U.L:
2578
+ ke.getTotalCodewordsCount = function(e, n) {
2579
+ switch (n) {
2580
+ case q.L:
2581
2581
  return ge[(e - 1) * 4 + 0];
2582
- case U.M:
2582
+ case q.M:
2583
2583
  return ge[(e - 1) * 4 + 1];
2584
- case U.Q:
2584
+ case q.Q:
2585
2585
  return ge[(e - 1) * 4 + 2];
2586
- case U.H:
2586
+ case q.H:
2587
2587
  return ge[(e - 1) * 4 + 3];
2588
2588
  default:
2589
2589
  return;
@@ -2593,10 +2593,10 @@ var Et = {}, Ee = {};
2593
2593
  const ae = new Uint8Array(512), ve = new Uint8Array(256);
2594
2594
  (function() {
2595
2595
  let e = 1;
2596
- for (let r = 0; r < 255; r++)
2597
- ae[r] = e, ve[e] = r, e <<= 1, e & 256 && (e ^= 285);
2598
- for (let r = 255; r < 512; r++)
2599
- ae[r] = ae[r - 255];
2596
+ for (let n = 0; n < 255; n++)
2597
+ ae[n] = e, ve[e] = n, e <<= 1, e & 256 && (e ^= 285);
2598
+ for (let n = 255; n < 512; n++)
2599
+ ae[n] = ae[n - 255];
2600
2600
  })();
2601
2601
  Ee.log = function(e) {
2602
2602
  if (e < 1) throw new Error("log(" + e + ")");
@@ -2605,19 +2605,19 @@ Ee.log = function(e) {
2605
2605
  Ee.exp = function(e) {
2606
2606
  return ae[e];
2607
2607
  };
2608
- Ee.mul = function(e, r) {
2609
- return e === 0 || r === 0 ? 0 : ae[ve[e] + ve[r]];
2608
+ Ee.mul = function(e, n) {
2609
+ return e === 0 || n === 0 ? 0 : ae[ve[e] + ve[n]];
2610
2610
  };
2611
2611
  (function(t) {
2612
2612
  const e = Ee;
2613
- t.mul = function(n, i) {
2614
- const o = new Uint8Array(n.length + i.length - 1);
2615
- for (let s = 0; s < n.length; s++)
2613
+ t.mul = function(r, i) {
2614
+ const o = new Uint8Array(r.length + i.length - 1);
2615
+ for (let s = 0; s < r.length; s++)
2616
2616
  for (let l = 0; l < i.length; l++)
2617
- o[s + l] ^= e.mul(n[s], i[l]);
2617
+ o[s + l] ^= e.mul(r[s], i[l]);
2618
2618
  return o;
2619
- }, t.mod = function(n, i) {
2620
- let o = new Uint8Array(n);
2619
+ }, t.mod = function(r, i) {
2620
+ let o = new Uint8Array(r);
2621
2621
  for (; o.length - i.length >= 0; ) {
2622
2622
  const s = o[0];
2623
2623
  for (let a = 0; a < i.length; a++)
@@ -2627,59 +2627,59 @@ Ee.mul = function(e, r) {
2627
2627
  o = o.slice(l);
2628
2628
  }
2629
2629
  return o;
2630
- }, t.generateECPolynomial = function(n) {
2630
+ }, t.generateECPolynomial = function(r) {
2631
2631
  let i = new Uint8Array([1]);
2632
- for (let o = 0; o < n; o++)
2632
+ for (let o = 0; o < r; o++)
2633
2633
  i = t.mul(i, new Uint8Array([1, e.exp(o)]));
2634
2634
  return i;
2635
2635
  };
2636
2636
  })(Et);
2637
- const At = Et;
2637
+ const Pt = Et;
2638
2638
  function Ke(t) {
2639
2639
  this.genPoly = void 0, this.degree = t, this.degree && this.initialize(this.degree);
2640
2640
  }
2641
2641
  Ke.prototype.initialize = function(e) {
2642
- this.degree = e, this.genPoly = At.generateECPolynomial(this.degree);
2642
+ this.degree = e, this.genPoly = Pt.generateECPolynomial(this.degree);
2643
2643
  };
2644
2644
  Ke.prototype.encode = function(e) {
2645
2645
  if (!this.genPoly)
2646
2646
  throw new Error("Encoder not initialized");
2647
- const r = new Uint8Array(e.length + this.degree);
2648
- r.set(e);
2649
- const n = At.mod(r, this.genPoly), i = this.degree - n.length;
2647
+ const n = new Uint8Array(e.length + this.degree);
2648
+ n.set(e);
2649
+ const r = Pt.mod(n, this.genPoly), i = this.degree - r.length;
2650
2650
  if (i > 0) {
2651
2651
  const o = new Uint8Array(this.degree);
2652
- return o.set(n, i), o;
2652
+ return o.set(r, i), o;
2653
2653
  }
2654
- return n;
2654
+ return r;
2655
2655
  };
2656
- var kr = Ke, Pt = {}, z = {}, Qe = {};
2656
+ var En = Ke, At = {}, j = {}, Qe = {};
2657
2657
  Qe.isValid = function(e) {
2658
2658
  return !isNaN(e) && e >= 1 && e <= 40;
2659
2659
  };
2660
- var R = {};
2661
- const It = "[0-9]+", Er = "[A-Z $%*+\\-./:]+";
2662
- let ue = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
2663
- ue = ue.replace(/u/g, "\\u");
2664
- const Ar = "(?:(?![A-Z0-9 $%*+\\-./:]|" + ue + `)(?:.|[\r
2660
+ var L = {};
2661
+ const It = "[0-9]+", Pn = "[A-Z $%*+\\-./:]+";
2662
+ let he = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
2663
+ he = he.replace(/u/g, "\\u");
2664
+ const An = "(?:(?![A-Z0-9 $%*+\\-./:]|" + he + `)(?:.|[\r
2665
2665
  ]))+`;
2666
- R.KANJI = new RegExp(ue, "g");
2667
- R.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g");
2668
- R.BYTE = new RegExp(Ar, "g");
2669
- R.NUMERIC = new RegExp(It, "g");
2670
- R.ALPHANUMERIC = new RegExp(Er, "g");
2671
- const Pr = new RegExp("^" + ue + "$"), Ir = new RegExp("^" + It + "$"), _r = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
2672
- R.testKanji = function(e) {
2673
- return Pr.test(e);
2666
+ L.KANJI = new RegExp(he, "g");
2667
+ L.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g");
2668
+ L.BYTE = new RegExp(An, "g");
2669
+ L.NUMERIC = new RegExp(It, "g");
2670
+ L.ALPHANUMERIC = new RegExp(Pn, "g");
2671
+ const In = new RegExp("^" + he + "$"), Mn = new RegExp("^" + It + "$"), Dn = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
2672
+ L.testKanji = function(e) {
2673
+ return In.test(e);
2674
2674
  };
2675
- R.testNumeric = function(e) {
2676
- return Ir.test(e);
2675
+ L.testNumeric = function(e) {
2676
+ return Mn.test(e);
2677
2677
  };
2678
- R.testAlphanumeric = function(e) {
2679
- return _r.test(e);
2678
+ L.testAlphanumeric = function(e) {
2679
+ return Dn.test(e);
2680
2680
  };
2681
2681
  (function(t) {
2682
- const e = Qe, r = R;
2682
+ const e = Qe, n = L;
2683
2683
  t.NUMERIC = {
2684
2684
  id: "Numeric",
2685
2685
  bit: 1,
@@ -2704,14 +2704,14 @@ R.testAlphanumeric = function(e) {
2704
2704
  throw new Error("Invalid version: " + s);
2705
2705
  return s >= 1 && s < 10 ? o.ccBits[0] : s < 27 ? o.ccBits[1] : o.ccBits[2];
2706
2706
  }, t.getBestModeForData = function(o) {
2707
- return r.testNumeric(o) ? t.NUMERIC : r.testAlphanumeric(o) ? t.ALPHANUMERIC : r.testKanji(o) ? t.KANJI : t.BYTE;
2707
+ return n.testNumeric(o) ? t.NUMERIC : n.testAlphanumeric(o) ? t.ALPHANUMERIC : n.testKanji(o) ? t.KANJI : t.BYTE;
2708
2708
  }, t.toString = function(o) {
2709
2709
  if (o && o.id) return o.id;
2710
2710
  throw new Error("Invalid mode");
2711
2711
  }, t.isValid = function(o) {
2712
2712
  return o && o.bit && o.ccBits;
2713
2713
  };
2714
- function n(i) {
2714
+ function r(i) {
2715
2715
  if (typeof i != "string")
2716
2716
  throw new Error("Param is not a string");
2717
2717
  switch (i.toLowerCase()) {
@@ -2731,43 +2731,43 @@ R.testAlphanumeric = function(e) {
2731
2731
  if (t.isValid(o))
2732
2732
  return o;
2733
2733
  try {
2734
- return n(o);
2734
+ return r(o);
2735
2735
  } catch {
2736
2736
  return s;
2737
2737
  }
2738
2738
  };
2739
- })(z);
2739
+ })(j);
2740
2740
  (function(t) {
2741
- const e = M, r = ke, n = Ce, i = z, o = Qe, s = 7973, l = e.getBCHDigit(s);
2742
- function a(f, u, m) {
2741
+ const e = D, n = ke, r = Ce, i = j, o = Qe, s = 7973, l = e.getBCHDigit(s);
2742
+ function a(f, h, m) {
2743
2743
  for (let p = 1; p <= 40; p++)
2744
- if (u <= t.getCapacity(p, m, f))
2744
+ if (h <= t.getCapacity(p, m, f))
2745
2745
  return p;
2746
2746
  }
2747
- function d(f, u) {
2748
- return i.getCharCountIndicator(f, u) + 4;
2747
+ function d(f, h) {
2748
+ return i.getCharCountIndicator(f, h) + 4;
2749
2749
  }
2750
- function c(f, u) {
2750
+ function c(f, h) {
2751
2751
  let m = 0;
2752
2752
  return f.forEach(function(p) {
2753
- const k = d(p.mode, u);
2753
+ const k = d(p.mode, h);
2754
2754
  m += k + p.getBitsLength();
2755
2755
  }), m;
2756
2756
  }
2757
- function h(f, u) {
2757
+ function u(f, h) {
2758
2758
  for (let m = 1; m <= 40; m++)
2759
- if (c(f, m) <= t.getCapacity(m, u, i.MIXED))
2759
+ if (c(f, m) <= t.getCapacity(m, h, i.MIXED))
2760
2760
  return m;
2761
2761
  }
2762
- t.from = function(u, m) {
2763
- return o.isValid(u) ? parseInt(u, 10) : m;
2764
- }, t.getCapacity = function(u, m, p) {
2765
- if (!o.isValid(u))
2762
+ t.from = function(h, m) {
2763
+ return o.isValid(h) ? parseInt(h, 10) : m;
2764
+ }, t.getCapacity = function(h, m, p) {
2765
+ if (!o.isValid(h))
2766
2766
  throw new Error("Invalid QR Code version");
2767
2767
  typeof p > "u" && (p = i.BYTE);
2768
- const k = e.getSymbolTotalCodewords(u), b = r.getTotalCodewordsCount(u, m), w = (k - b) * 8;
2768
+ const k = e.getSymbolTotalCodewords(h), b = n.getTotalCodewordsCount(h, m), w = (k - b) * 8;
2769
2769
  if (p === i.MIXED) return w;
2770
- const y = w - d(p, u);
2770
+ const y = w - d(p, h);
2771
2771
  switch (p) {
2772
2772
  case i.NUMERIC:
2773
2773
  return Math.floor(y / 10 * 3);
@@ -2779,59 +2779,59 @@ R.testAlphanumeric = function(e) {
2779
2779
  default:
2780
2780
  return Math.floor(y / 8);
2781
2781
  }
2782
- }, t.getBestVersionForData = function(u, m) {
2782
+ }, t.getBestVersionForData = function(h, m) {
2783
2783
  let p;
2784
- const k = n.from(m, n.M);
2785
- if (Array.isArray(u)) {
2786
- if (u.length > 1)
2787
- return h(u, k);
2788
- if (u.length === 0)
2784
+ const k = r.from(m, r.M);
2785
+ if (Array.isArray(h)) {
2786
+ if (h.length > 1)
2787
+ return u(h, k);
2788
+ if (h.length === 0)
2789
2789
  return 1;
2790
- p = u[0];
2790
+ p = h[0];
2791
2791
  } else
2792
- p = u;
2792
+ p = h;
2793
2793
  return a(p.mode, p.getLength(), k);
2794
- }, t.getEncodedBits = function(u) {
2795
- if (!o.isValid(u) || u < 7)
2794
+ }, t.getEncodedBits = function(h) {
2795
+ if (!o.isValid(h) || h < 7)
2796
2796
  throw new Error("Invalid QR Code version");
2797
- let m = u << 12;
2797
+ let m = h << 12;
2798
2798
  for (; e.getBCHDigit(m) - l >= 0; )
2799
2799
  m ^= s << e.getBCHDigit(m) - l;
2800
- return u << 12 | m;
2800
+ return h << 12 | m;
2801
2801
  };
2802
- })(Pt);
2803
- var _t = {};
2804
- const Be = M, Mt = 1335, Mr = 21522, dt = Be.getBCHDigit(Mt);
2805
- _t.getEncodedBits = function(e, r) {
2806
- const n = e.bit << 3 | r;
2807
- let i = n << 10;
2808
- for (; Be.getBCHDigit(i) - dt >= 0; )
2809
- i ^= Mt << Be.getBCHDigit(i) - dt;
2810
- return (n << 10 | i) ^ Mr;
2802
+ })(At);
2803
+ var Mt = {};
2804
+ const ze = D, Dt = 1335, Tn = 21522, dt = ze.getBCHDigit(Dt);
2805
+ Mt.getEncodedBits = function(e, n) {
2806
+ const r = e.bit << 3 | n;
2807
+ let i = r << 10;
2808
+ for (; ze.getBCHDigit(i) - dt >= 0; )
2809
+ i ^= Dt << ze.getBCHDigit(i) - dt;
2810
+ return (r << 10 | i) ^ Tn;
2811
2811
  };
2812
- var Dt = {};
2813
- const Dr = z;
2814
- function W(t) {
2815
- this.mode = Dr.NUMERIC, this.data = t.toString();
2812
+ var Tt = {};
2813
+ const Fn = j;
2814
+ function _(t) {
2815
+ this.mode = Fn.NUMERIC, this.data = t.toString();
2816
2816
  }
2817
- W.getBitsLength = function(e) {
2817
+ _.getBitsLength = function(e) {
2818
2818
  return 10 * Math.floor(e / 3) + (e % 3 ? e % 3 * 3 + 1 : 0);
2819
2819
  };
2820
- W.prototype.getLength = function() {
2820
+ _.prototype.getLength = function() {
2821
2821
  return this.data.length;
2822
2822
  };
2823
- W.prototype.getBitsLength = function() {
2824
- return W.getBitsLength(this.data.length);
2823
+ _.prototype.getBitsLength = function() {
2824
+ return _.getBitsLength(this.data.length);
2825
2825
  };
2826
- W.prototype.write = function(e) {
2827
- let r, n, i;
2828
- for (r = 0; r + 3 <= this.data.length; r += 3)
2829
- n = this.data.substr(r, 3), i = parseInt(n, 10), e.put(i, 10);
2830
- const o = this.data.length - r;
2831
- o > 0 && (n = this.data.substr(r), i = parseInt(n, 10), e.put(i, o * 3 + 1));
2826
+ _.prototype.write = function(e) {
2827
+ let n, r, i;
2828
+ for (n = 0; n + 3 <= this.data.length; n += 3)
2829
+ r = this.data.substr(n, 3), i = parseInt(r, 10), e.put(i, 10);
2830
+ const o = this.data.length - n;
2831
+ o > 0 && (r = this.data.substr(n), i = parseInt(r, 10), e.put(i, o * 3 + 1));
2832
2832
  };
2833
- var $r = W;
2834
- const Tr = z, $e = [
2833
+ var Nn = _;
2834
+ const Rn = j, Fe = [
2835
2835
  "0",
2836
2836
  "1",
2837
2837
  "2",
@@ -2878,30 +2878,30 @@ const Tr = z, $e = [
2878
2878
  "/",
2879
2879
  ":"
2880
2880
  ];
2881
- function X(t) {
2882
- this.mode = Tr.ALPHANUMERIC, this.data = t;
2881
+ function $(t) {
2882
+ this.mode = Rn.ALPHANUMERIC, this.data = t;
2883
2883
  }
2884
- X.getBitsLength = function(e) {
2884
+ $.getBitsLength = function(e) {
2885
2885
  return 11 * Math.floor(e / 2) + 6 * (e % 2);
2886
2886
  };
2887
- X.prototype.getLength = function() {
2887
+ $.prototype.getLength = function() {
2888
2888
  return this.data.length;
2889
2889
  };
2890
- X.prototype.getBitsLength = function() {
2891
- return X.getBitsLength(this.data.length);
2890
+ $.prototype.getBitsLength = function() {
2891
+ return $.getBitsLength(this.data.length);
2892
2892
  };
2893
- X.prototype.write = function(e) {
2894
- let r;
2895
- for (r = 0; r + 2 <= this.data.length; r += 2) {
2896
- let n = $e.indexOf(this.data[r]) * 45;
2897
- n += $e.indexOf(this.data[r + 1]), e.put(n, 11);
2893
+ $.prototype.write = function(e) {
2894
+ let n;
2895
+ for (n = 0; n + 2 <= this.data.length; n += 2) {
2896
+ let r = Fe.indexOf(this.data[n]) * 45;
2897
+ r += Fe.indexOf(this.data[n + 1]), e.put(r, 11);
2898
2898
  }
2899
- this.data.length % 2 && e.put($e.indexOf(this.data[r]), 6);
2899
+ this.data.length % 2 && e.put(Fe.indexOf(this.data[n]), 6);
2900
2900
  };
2901
- var Nr = X;
2902
- const Rr = z;
2901
+ var Ln = $;
2902
+ const Bn = j;
2903
2903
  function ee(t) {
2904
- this.mode = Rr.BYTE, typeof t == "string" ? this.data = new TextEncoder().encode(t) : this.data = new Uint8Array(t);
2904
+ this.mode = Bn.BYTE, typeof t == "string" ? this.data = new TextEncoder().encode(t) : this.data = new Uint8Array(t);
2905
2905
  }
2906
2906
  ee.getBitsLength = function(e) {
2907
2907
  return e * 8;
@@ -2913,13 +2913,13 @@ ee.prototype.getBitsLength = function() {
2913
2913
  return ee.getBitsLength(this.data.length);
2914
2914
  };
2915
2915
  ee.prototype.write = function(t) {
2916
- for (let e = 0, r = this.data.length; e < r; e++)
2916
+ for (let e = 0, n = this.data.length; e < n; e++)
2917
2917
  t.put(this.data[e], 8);
2918
2918
  };
2919
- var Fr = ee;
2920
- const Lr = z, Br = M;
2919
+ var Un = ee;
2920
+ const zn = j, qn = D;
2921
2921
  function te(t) {
2922
- this.mode = Lr.KANJI, this.data = t;
2922
+ this.mode = zn.KANJI, this.data = t;
2923
2923
  }
2924
2924
  te.getBitsLength = function(e) {
2925
2925
  return e * 13;
@@ -2933,45 +2933,45 @@ te.prototype.getBitsLength = function() {
2933
2933
  te.prototype.write = function(t) {
2934
2934
  let e;
2935
2935
  for (e = 0; e < this.data.length; e++) {
2936
- let r = Br.toSJIS(this.data[e]);
2937
- if (r >= 33088 && r <= 40956)
2938
- r -= 33088;
2939
- else if (r >= 57408 && r <= 60351)
2940
- r -= 49472;
2936
+ let n = qn.toSJIS(this.data[e]);
2937
+ if (n >= 33088 && n <= 40956)
2938
+ n -= 33088;
2939
+ else if (n >= 57408 && n <= 60351)
2940
+ n -= 49472;
2941
2941
  else
2942
2942
  throw new Error(
2943
2943
  "Invalid SJIS character: " + this.data[e] + `
2944
2944
  Make sure your charset is UTF-8`
2945
2945
  );
2946
- r = (r >>> 8 & 255) * 192 + (r & 255), t.put(r, 13);
2946
+ n = (n >>> 8 & 255) * 192 + (n & 255), t.put(n, 13);
2947
2947
  }
2948
2948
  };
2949
- var Ur = te, $t = { exports: {} };
2949
+ var On = te, Ft = { exports: {} };
2950
2950
  (function(t) {
2951
2951
  var e = {
2952
- single_source_shortest_paths: function(r, n, i) {
2952
+ single_source_shortest_paths: function(n, r, i) {
2953
2953
  var o = {}, s = {};
2954
- s[n] = 0;
2954
+ s[r] = 0;
2955
2955
  var l = e.PriorityQueue.make();
2956
- l.push(n, 0);
2957
- for (var a, d, c, h, f, u, m, p, k; !l.empty(); ) {
2958
- a = l.pop(), d = a.value, h = a.cost, f = r[d] || {};
2956
+ l.push(r, 0);
2957
+ for (var a, d, c, u, f, h, m, p, k; !l.empty(); ) {
2958
+ a = l.pop(), d = a.value, u = a.cost, f = n[d] || {};
2959
2959
  for (c in f)
2960
- f.hasOwnProperty(c) && (u = f[c], m = h + u, p = s[c], k = typeof s[c] > "u", (k || p > m) && (s[c] = m, l.push(c, m), o[c] = d));
2960
+ f.hasOwnProperty(c) && (h = f[c], m = u + h, p = s[c], k = typeof s[c] > "u", (k || p > m) && (s[c] = m, l.push(c, m), o[c] = d));
2961
2961
  }
2962
2962
  if (typeof i < "u" && typeof s[i] > "u") {
2963
- var b = ["Could not find a path from ", n, " to ", i, "."].join("");
2963
+ var b = ["Could not find a path from ", r, " to ", i, "."].join("");
2964
2964
  throw new Error(b);
2965
2965
  }
2966
2966
  return o;
2967
2967
  },
2968
- extract_shortest_path_from_predecessor_list: function(r, n) {
2969
- for (var i = [], o = n; o; )
2970
- i.push(o), r[o], o = r[o];
2968
+ extract_shortest_path_from_predecessor_list: function(n, r) {
2969
+ for (var i = [], o = r; o; )
2970
+ i.push(o), n[o], o = n[o];
2971
2971
  return i.reverse(), i;
2972
2972
  },
2973
- find_path: function(r, n, i) {
2974
- var o = e.single_source_shortest_paths(r, n, i);
2973
+ find_path: function(n, r, i) {
2974
+ var o = e.single_source_shortest_paths(n, r, i);
2975
2975
  return e.extract_shortest_path_from_predecessor_list(
2976
2976
  o,
2977
2977
  i
@@ -2981,22 +2981,22 @@ var Ur = te, $t = { exports: {} };
2981
2981
  * A very naive priority queue implementation.
2982
2982
  */
2983
2983
  PriorityQueue: {
2984
- make: function(r) {
2985
- var n = e.PriorityQueue, i = {}, o;
2986
- r = r || {};
2987
- for (o in n)
2988
- n.hasOwnProperty(o) && (i[o] = n[o]);
2989
- return i.queue = [], i.sorter = r.sorter || n.default_sorter, i;
2984
+ make: function(n) {
2985
+ var r = e.PriorityQueue, i = {}, o;
2986
+ n = n || {};
2987
+ for (o in r)
2988
+ r.hasOwnProperty(o) && (i[o] = r[o]);
2989
+ return i.queue = [], i.sorter = n.sorter || r.default_sorter, i;
2990
2990
  },
2991
- default_sorter: function(r, n) {
2992
- return r.cost - n.cost;
2991
+ default_sorter: function(n, r) {
2992
+ return n.cost - r.cost;
2993
2993
  },
2994
2994
  /**
2995
2995
  * Add a new item to the queue and ensure the highest priority element
2996
2996
  * is at the front of the queue.
2997
2997
  */
2998
- push: function(r, n) {
2999
- var i = { value: r, cost: n };
2998
+ push: function(n, r) {
2999
+ var i = { value: n, cost: r };
3000
3000
  this.queue.push(i), this.queue.sort(this.sorter);
3001
3001
  },
3002
3002
  /**
@@ -3011,10 +3011,10 @@ var Ur = te, $t = { exports: {} };
3011
3011
  }
3012
3012
  };
3013
3013
  t.exports = e;
3014
- })($t);
3015
- var Or = $t.exports;
3014
+ })(Ft);
3015
+ var jn = Ft.exports;
3016
3016
  (function(t) {
3017
- const e = z, r = $r, n = Nr, i = Fr, o = Ur, s = R, l = M, a = Or;
3017
+ const e = j, n = Nn, r = Ln, i = Un, o = On, s = L, l = D, a = jn;
3018
3018
  function d(b) {
3019
3019
  return unescape(encodeURIComponent(b)).length;
3020
3020
  }
@@ -3030,32 +3030,32 @@ var Or = $t.exports;
3030
3030
  });
3031
3031
  return g;
3032
3032
  }
3033
- function h(b) {
3033
+ function u(b) {
3034
3034
  const w = c(s.NUMERIC, e.NUMERIC, b), y = c(s.ALPHANUMERIC, e.ALPHANUMERIC, b);
3035
3035
  let g, C;
3036
- return l.isKanjiModeEnabled() ? (g = c(s.BYTE, e.BYTE, b), C = c(s.KANJI, e.KANJI, b)) : (g = c(s.BYTE_KANJI, e.BYTE, b), C = []), w.concat(y, g, C).sort(function(P, T) {
3037
- return P.index - T.index;
3038
- }).map(function(P) {
3036
+ return l.isKanjiModeEnabled() ? (g = c(s.BYTE, e.BYTE, b), C = c(s.KANJI, e.KANJI, b)) : (g = c(s.BYTE_KANJI, e.BYTE, b), C = []), w.concat(y, g, C).sort(function(A, N) {
3037
+ return A.index - N.index;
3038
+ }).map(function(A) {
3039
3039
  return {
3040
- data: P.data,
3041
- mode: P.mode,
3042
- length: P.length
3040
+ data: A.data,
3041
+ mode: A.mode,
3042
+ length: A.length
3043
3043
  };
3044
3044
  });
3045
3045
  }
3046
3046
  function f(b, w) {
3047
3047
  switch (w) {
3048
3048
  case e.NUMERIC:
3049
- return r.getBitsLength(b);
3050
- case e.ALPHANUMERIC:
3051
3049
  return n.getBitsLength(b);
3050
+ case e.ALPHANUMERIC:
3051
+ return r.getBitsLength(b);
3052
3052
  case e.KANJI:
3053
3053
  return o.getBitsLength(b);
3054
3054
  case e.BYTE:
3055
3055
  return i.getBitsLength(b);
3056
3056
  }
3057
3057
  }
3058
- function u(b) {
3058
+ function h(b) {
3059
3059
  return b.reduce(function(w, y) {
3060
3060
  const g = w.length - 1 >= 0 ? w[w.length - 1] : null;
3061
3061
  return g && g.mode === y.mode ? (w[w.length - 1].data += y.data, w) : (w.push(y), w);
@@ -3097,16 +3097,16 @@ var Or = $t.exports;
3097
3097
  const y = {}, g = { start: {} };
3098
3098
  let C = ["start"];
3099
3099
  for (let E = 0; E < b.length; E++) {
3100
- const P = b[E], T = [];
3101
- for (let L = 0; L < P.length; L++) {
3102
- const N = P[L], re = "" + E + L;
3103
- T.push(re), y[re] = { node: N, lastCount: 0 }, g[re] = {};
3104
- for (let Pe = 0; Pe < C.length; Pe++) {
3105
- const F = C[Pe];
3106
- y[F] && y[F].node.mode === N.mode ? (g[F][re] = f(y[F].lastCount + N.length, N.mode) - f(y[F].lastCount, N.mode), y[F].lastCount += N.length) : (y[F] && (y[F].lastCount = N.length), g[F][re] = f(N.length, N.mode) + 4 + e.getCharCountIndicator(N.mode, w));
3100
+ const A = b[E], N = [];
3101
+ for (let U = 0; U < A.length; U++) {
3102
+ const R = A[U], ne = "" + E + U;
3103
+ N.push(ne), y[ne] = { node: R, lastCount: 0 }, g[ne] = {};
3104
+ for (let Ae = 0; Ae < C.length; Ae++) {
3105
+ const B = C[Ae];
3106
+ y[B] && y[B].node.mode === R.mode ? (g[B][ne] = f(y[B].lastCount + R.length, R.mode) - f(y[B].lastCount, R.mode), y[B].lastCount += R.length) : (y[B] && (y[B].lastCount = R.length), g[B][ne] = f(R.length, R.mode) + 4 + e.getCharCountIndicator(R.mode, w));
3107
3107
  }
3108
3108
  }
3109
- C = T;
3109
+ C = N;
3110
3110
  }
3111
3111
  for (let E = 0; E < C.length; E++)
3112
3112
  g[C[E]].end = 0;
@@ -3120,9 +3120,9 @@ var Or = $t.exports;
3120
3120
  Suggested mode is: ` + e.toString(g));
3121
3121
  switch (y === e.KANJI && !l.isKanjiModeEnabled() && (y = e.BYTE), y) {
3122
3122
  case e.NUMERIC:
3123
- return new r(b);
3124
- case e.ALPHANUMERIC:
3125
3123
  return new n(b);
3124
+ case e.ALPHANUMERIC:
3125
+ return new r(b);
3126
3126
  case e.KANJI:
3127
3127
  return new o(b);
3128
3128
  case e.BYTE:
@@ -3134,96 +3134,96 @@ var Or = $t.exports;
3134
3134
  return typeof g == "string" ? y.push(k(g, null)) : g.data && y.push(k(g.data, g.mode)), y;
3135
3135
  }, []);
3136
3136
  }, t.fromString = function(w, y) {
3137
- const g = h(w, l.isKanjiModeEnabled()), C = m(g), E = p(C, y), P = a.find_path(E.map, "start", "end"), T = [];
3138
- for (let L = 1; L < P.length - 1; L++)
3139
- T.push(E.table[P[L]].node);
3140
- return t.fromArray(u(T));
3137
+ const g = u(w, l.isKanjiModeEnabled()), C = m(g), E = p(C, y), A = a.find_path(E.map, "start", "end"), N = [];
3138
+ for (let U = 1; U < A.length - 1; U++)
3139
+ N.push(E.table[A[U]].node);
3140
+ return t.fromArray(h(N));
3141
3141
  }, t.rawSplit = function(w) {
3142
3142
  return t.fromArray(
3143
- h(w, l.isKanjiModeEnabled())
3143
+ u(w, l.isKanjiModeEnabled())
3144
3144
  );
3145
3145
  };
3146
- })(Dt);
3147
- const Ae = M, Te = Ce, zr = xr, qr = Sr, Vr = St, Hr = Ct, Ue = kt, Oe = ke, jr = kr, xe = Pt, Yr = _t, Kr = z, Ne = Dt;
3148
- function Qr(t, e) {
3149
- const r = t.size, n = Hr.getPositions(e);
3150
- for (let i = 0; i < n.length; i++) {
3151
- const o = n[i][0], s = n[i][1];
3146
+ })(Tt);
3147
+ const Pe = D, Ne = Ce, Vn = Sn, Zn = Cn, Yn = St, Hn = Ct, qe = kt, Oe = ke, Wn = En, xe = At, Kn = Mt, Qn = j, Re = Tt;
3148
+ function Xn(t, e) {
3149
+ const n = t.size, r = Hn.getPositions(e);
3150
+ for (let i = 0; i < r.length; i++) {
3151
+ const o = r[i][0], s = r[i][1];
3152
3152
  for (let l = -1; l <= 7; l++)
3153
- if (!(o + l <= -1 || r <= o + l))
3153
+ if (!(o + l <= -1 || n <= o + l))
3154
3154
  for (let a = -1; a <= 7; a++)
3155
- s + a <= -1 || r <= s + a || (l >= 0 && l <= 6 && (a === 0 || a === 6) || a >= 0 && a <= 6 && (l === 0 || l === 6) || l >= 2 && l <= 4 && a >= 2 && a <= 4 ? t.set(o + l, s + a, !0, !0) : t.set(o + l, s + a, !1, !0));
3155
+ s + a <= -1 || n <= s + a || (l >= 0 && l <= 6 && (a === 0 || a === 6) || a >= 0 && a <= 6 && (l === 0 || l === 6) || l >= 2 && l <= 4 && a >= 2 && a <= 4 ? t.set(o + l, s + a, !0, !0) : t.set(o + l, s + a, !1, !0));
3156
3156
  }
3157
3157
  }
3158
- function Zr(t) {
3158
+ function Jn(t) {
3159
3159
  const e = t.size;
3160
- for (let r = 8; r < e - 8; r++) {
3161
- const n = r % 2 === 0;
3162
- t.set(r, 6, n, !0), t.set(6, r, n, !0);
3160
+ for (let n = 8; n < e - 8; n++) {
3161
+ const r = n % 2 === 0;
3162
+ t.set(n, 6, r, !0), t.set(6, n, r, !0);
3163
3163
  }
3164
3164
  }
3165
- function Gr(t, e) {
3166
- const r = Vr.getPositions(e);
3167
- for (let n = 0; n < r.length; n++) {
3168
- const i = r[n][0], o = r[n][1];
3165
+ function Gn(t, e) {
3166
+ const n = Yn.getPositions(e);
3167
+ for (let r = 0; r < n.length; r++) {
3168
+ const i = n[r][0], o = n[r][1];
3169
3169
  for (let s = -2; s <= 2; s++)
3170
3170
  for (let l = -2; l <= 2; l++)
3171
3171
  s === -2 || s === 2 || l === -2 || l === 2 || s === 0 && l === 0 ? t.set(i + s, o + l, !0, !0) : t.set(i + s, o + l, !1, !0);
3172
3172
  }
3173
3173
  }
3174
- function Jr(t, e) {
3175
- const r = t.size, n = xe.getEncodedBits(e);
3174
+ function _n(t, e) {
3175
+ const n = t.size, r = xe.getEncodedBits(e);
3176
3176
  let i, o, s;
3177
3177
  for (let l = 0; l < 18; l++)
3178
- i = Math.floor(l / 3), o = l % 3 + r - 8 - 3, s = (n >> l & 1) === 1, t.set(i, o, s, !0), t.set(o, i, s, !0);
3178
+ i = Math.floor(l / 3), o = l % 3 + n - 8 - 3, s = (r >> l & 1) === 1, t.set(i, o, s, !0), t.set(o, i, s, !0);
3179
3179
  }
3180
- function Re(t, e, r) {
3181
- const n = t.size, i = Yr.getEncodedBits(e, r);
3180
+ function Le(t, e, n) {
3181
+ const r = t.size, i = Kn.getEncodedBits(e, n);
3182
3182
  let o, s;
3183
3183
  for (o = 0; o < 15; o++)
3184
- s = (i >> o & 1) === 1, o < 6 ? t.set(o, 8, s, !0) : o < 8 ? t.set(o + 1, 8, s, !0) : t.set(n - 15 + o, 8, s, !0), o < 8 ? t.set(8, n - o - 1, s, !0) : o < 9 ? t.set(8, 15 - o - 1 + 1, s, !0) : t.set(8, 15 - o - 1, s, !0);
3185
- t.set(n - 8, 8, 1, !0);
3184
+ s = (i >> o & 1) === 1, o < 6 ? t.set(o, 8, s, !0) : o < 8 ? t.set(o + 1, 8, s, !0) : t.set(r - 15 + o, 8, s, !0), o < 8 ? t.set(8, r - o - 1, s, !0) : o < 9 ? t.set(8, 15 - o - 1 + 1, s, !0) : t.set(8, 15 - o - 1, s, !0);
3185
+ t.set(r - 8, 8, 1, !0);
3186
3186
  }
3187
- function Wr(t, e) {
3188
- const r = t.size;
3189
- let n = -1, i = r - 1, o = 7, s = 0;
3190
- for (let l = r - 1; l > 0; l -= 2)
3187
+ function $n(t, e) {
3188
+ const n = t.size;
3189
+ let r = -1, i = n - 1, o = 7, s = 0;
3190
+ for (let l = n - 1; l > 0; l -= 2)
3191
3191
  for (l === 6 && l--; ; ) {
3192
3192
  for (let a = 0; a < 2; a++)
3193
3193
  if (!t.isReserved(i, l - a)) {
3194
3194
  let d = !1;
3195
3195
  s < e.length && (d = (e[s] >>> o & 1) === 1), t.set(i, l - a, d), o--, o === -1 && (s++, o = 7);
3196
3196
  }
3197
- if (i += n, i < 0 || r <= i) {
3198
- i -= n, n = -n;
3197
+ if (i += r, i < 0 || n <= i) {
3198
+ i -= r, r = -r;
3199
3199
  break;
3200
3200
  }
3201
3201
  }
3202
3202
  }
3203
- function Xr(t, e, r) {
3204
- const n = new zr();
3205
- r.forEach(function(a) {
3206
- n.put(a.mode.bit, 4), n.put(a.getLength(), Kr.getCharCountIndicator(a.mode, t)), a.write(n);
3203
+ function er(t, e, n) {
3204
+ const r = new Vn();
3205
+ n.forEach(function(a) {
3206
+ r.put(a.mode.bit, 4), r.put(a.getLength(), Qn.getCharCountIndicator(a.mode, t)), a.write(r);
3207
3207
  });
3208
- const i = Ae.getSymbolTotalCodewords(t), o = Oe.getTotalCodewordsCount(t, e), s = (i - o) * 8;
3209
- for (n.getLengthInBits() + 4 <= s && n.put(0, 4); n.getLengthInBits() % 8 !== 0; )
3210
- n.putBit(0);
3211
- const l = (s - n.getLengthInBits()) / 8;
3208
+ const i = Pe.getSymbolTotalCodewords(t), o = Oe.getTotalCodewordsCount(t, e), s = (i - o) * 8;
3209
+ for (r.getLengthInBits() + 4 <= s && r.put(0, 4); r.getLengthInBits() % 8 !== 0; )
3210
+ r.putBit(0);
3211
+ const l = (s - r.getLengthInBits()) / 8;
3212
3212
  for (let a = 0; a < l; a++)
3213
- n.put(a % 2 ? 17 : 236, 8);
3214
- return en(n, t, e);
3213
+ r.put(a % 2 ? 17 : 236, 8);
3214
+ return tr(r, t, e);
3215
3215
  }
3216
- function en(t, e, r) {
3217
- const n = Ae.getSymbolTotalCodewords(e), i = Oe.getTotalCodewordsCount(e, r), o = n - i, s = Oe.getBlocksCount(e, r), l = n % s, a = s - l, d = Math.floor(n / s), c = Math.floor(o / s), h = c + 1, f = d - c, u = new jr(f);
3216
+ function tr(t, e, n) {
3217
+ const r = Pe.getSymbolTotalCodewords(e), i = Oe.getTotalCodewordsCount(e, n), o = r - i, s = Oe.getBlocksCount(e, n), l = r % s, a = s - l, d = Math.floor(r / s), c = Math.floor(o / s), u = c + 1, f = d - c, h = new Wn(f);
3218
3218
  let m = 0;
3219
3219
  const p = new Array(s), k = new Array(s);
3220
3220
  let b = 0;
3221
3221
  const w = new Uint8Array(t.buffer);
3222
- for (let P = 0; P < s; P++) {
3223
- const T = P < a ? c : h;
3224
- p[P] = w.slice(m, m + T), k[P] = u.encode(p[P]), m += T, b = Math.max(b, T);
3222
+ for (let A = 0; A < s; A++) {
3223
+ const N = A < a ? c : u;
3224
+ p[A] = w.slice(m, m + N), k[A] = h.encode(p[A]), m += N, b = Math.max(b, N);
3225
3225
  }
3226
- const y = new Uint8Array(n);
3226
+ const y = new Uint8Array(r);
3227
3227
  let g = 0, C, E;
3228
3228
  for (C = 0; C < b; C++)
3229
3229
  for (E = 0; E < s; E++)
@@ -3233,20 +3233,20 @@ function en(t, e, r) {
3233
3233
  y[g++] = k[E][C];
3234
3234
  return y;
3235
3235
  }
3236
- function tn(t, e, r, n) {
3236
+ function nr(t, e, n, r) {
3237
3237
  let i;
3238
3238
  if (Array.isArray(t))
3239
- i = Ne.fromArray(t);
3239
+ i = Re.fromArray(t);
3240
3240
  else if (typeof t == "string") {
3241
3241
  let d = e;
3242
3242
  if (!d) {
3243
- const c = Ne.rawSplit(t);
3244
- d = xe.getBestVersionForData(c, r);
3243
+ const c = Re.rawSplit(t);
3244
+ d = xe.getBestVersionForData(c, n);
3245
3245
  }
3246
- i = Ne.fromString(t, d || 40);
3246
+ i = Re.fromString(t, d || 40);
3247
3247
  } else
3248
3248
  throw new Error("Invalid data");
3249
- const o = xe.getBestVersionForData(i, r);
3249
+ const o = xe.getBestVersionForData(i, n);
3250
3250
  if (!o)
3251
3251
  throw new Error("The amount of data is too big to be stored in a QR Code");
3252
3252
  if (!e)
@@ -3258,82 +3258,82 @@ The chosen QR Code version cannot contain this amount of data.
3258
3258
  Minimum version required to store current data is: ` + o + `.
3259
3259
  `
3260
3260
  );
3261
- const s = Xr(e, r, i), l = Ae.getSymbolSize(e), a = new qr(l);
3262
- return Qr(a, e), Zr(a), Gr(a, e), Re(a, r, 0), e >= 7 && Jr(a, e), Wr(a, s), isNaN(n) && (n = Ue.getBestMask(
3261
+ const s = er(e, n, i), l = Pe.getSymbolSize(e), a = new Zn(l);
3262
+ return Xn(a, e), Jn(a), Gn(a, e), Le(a, n, 0), e >= 7 && _n(a, e), $n(a, s), isNaN(r) && (r = qe.getBestMask(
3263
3263
  a,
3264
- Re.bind(null, a, r)
3265
- )), Ue.applyMask(n, a), Re(a, r, n), {
3264
+ Le.bind(null, a, n)
3265
+ )), qe.applyMask(r, a), Le(a, n, r), {
3266
3266
  modules: a,
3267
3267
  version: e,
3268
- errorCorrectionLevel: r,
3269
- maskPattern: n,
3268
+ errorCorrectionLevel: n,
3269
+ maskPattern: r,
3270
3270
  segments: i
3271
3271
  };
3272
3272
  }
3273
- vt.create = function(e, r) {
3273
+ vt.create = function(e, n) {
3274
3274
  if (typeof e > "u" || e === "")
3275
3275
  throw new Error("No input text");
3276
- let n = Te.M, i, o;
3277
- return typeof r < "u" && (n = Te.from(r.errorCorrectionLevel, Te.M), i = xe.from(r.version), o = Ue.from(r.maskPattern), r.toSJISFunc && Ae.setToSJISFunction(r.toSJISFunc)), tn(e, i, n, o);
3276
+ let r = Ne.M, i, o;
3277
+ return typeof n < "u" && (r = Ne.from(n.errorCorrectionLevel, Ne.M), i = xe.from(n.version), o = qe.from(n.maskPattern), n.toSJISFunc && Pe.setToSJISFunction(n.toSJISFunc)), nr(e, i, r, o);
3278
3278
  };
3279
- var Tt = {}, Ze = {};
3279
+ var Nt = {}, Xe = {};
3280
3280
  (function(t) {
3281
- function e(r) {
3282
- if (typeof r == "number" && (r = r.toString()), typeof r != "string")
3281
+ function e(n) {
3282
+ if (typeof n == "number" && (n = n.toString()), typeof n != "string")
3283
3283
  throw new Error("Color should be defined as hex string");
3284
- let n = r.slice().replace("#", "").split("");
3285
- if (n.length < 3 || n.length === 5 || n.length > 8)
3286
- throw new Error("Invalid hex color: " + r);
3287
- (n.length === 3 || n.length === 4) && (n = Array.prototype.concat.apply([], n.map(function(o) {
3284
+ let r = n.slice().replace("#", "").split("");
3285
+ if (r.length < 3 || r.length === 5 || r.length > 8)
3286
+ throw new Error("Invalid hex color: " + n);
3287
+ (r.length === 3 || r.length === 4) && (r = Array.prototype.concat.apply([], r.map(function(o) {
3288
3288
  return [o, o];
3289
- }))), n.length === 6 && n.push("F", "F");
3290
- const i = parseInt(n.join(""), 16);
3289
+ }))), r.length === 6 && r.push("F", "F");
3290
+ const i = parseInt(r.join(""), 16);
3291
3291
  return {
3292
3292
  r: i >> 24 & 255,
3293
3293
  g: i >> 16 & 255,
3294
3294
  b: i >> 8 & 255,
3295
3295
  a: i & 255,
3296
- hex: "#" + n.slice(0, 6).join("")
3296
+ hex: "#" + r.slice(0, 6).join("")
3297
3297
  };
3298
3298
  }
3299
- t.getOptions = function(n) {
3300
- n || (n = {}), n.color || (n.color = {});
3301
- const i = typeof n.margin > "u" || n.margin === null || n.margin < 0 ? 4 : n.margin, o = n.width && n.width >= 21 ? n.width : void 0, s = n.scale || 4;
3299
+ t.getOptions = function(r) {
3300
+ r || (r = {}), r.color || (r.color = {});
3301
+ const i = typeof r.margin > "u" || r.margin === null || r.margin < 0 ? 4 : r.margin, o = r.width && r.width >= 21 ? r.width : void 0, s = r.scale || 4;
3302
3302
  return {
3303
3303
  width: o,
3304
3304
  scale: o ? 4 : s,
3305
3305
  margin: i,
3306
3306
  color: {
3307
- dark: e(n.color.dark || "#000000ff"),
3308
- light: e(n.color.light || "#ffffffff")
3307
+ dark: e(r.color.dark || "#000000ff"),
3308
+ light: e(r.color.light || "#ffffffff")
3309
3309
  },
3310
- type: n.type,
3311
- rendererOpts: n.rendererOpts || {}
3310
+ type: r.type,
3311
+ rendererOpts: r.rendererOpts || {}
3312
3312
  };
3313
- }, t.getScale = function(n, i) {
3314
- return i.width && i.width >= n + i.margin * 2 ? i.width / (n + i.margin * 2) : i.scale;
3315
- }, t.getImageWidth = function(n, i) {
3316
- const o = t.getScale(n, i);
3317
- return Math.floor((n + i.margin * 2) * o);
3318
- }, t.qrToImageData = function(n, i, o) {
3319
- const s = i.modules.size, l = i.modules.data, a = t.getScale(s, o), d = Math.floor((s + o.margin * 2) * a), c = o.margin * a, h = [o.color.light, o.color.dark];
3313
+ }, t.getScale = function(r, i) {
3314
+ return i.width && i.width >= r + i.margin * 2 ? i.width / (r + i.margin * 2) : i.scale;
3315
+ }, t.getImageWidth = function(r, i) {
3316
+ const o = t.getScale(r, i);
3317
+ return Math.floor((r + i.margin * 2) * o);
3318
+ }, t.qrToImageData = function(r, i, o) {
3319
+ const s = i.modules.size, l = i.modules.data, a = t.getScale(s, o), d = Math.floor((s + o.margin * 2) * a), c = o.margin * a, u = [o.color.light, o.color.dark];
3320
3320
  for (let f = 0; f < d; f++)
3321
- for (let u = 0; u < d; u++) {
3322
- let m = (f * d + u) * 4, p = o.color.light;
3323
- if (f >= c && u >= c && f < d - c && u < d - c) {
3324
- const k = Math.floor((f - c) / a), b = Math.floor((u - c) / a);
3325
- p = h[l[k * s + b] ? 1 : 0];
3321
+ for (let h = 0; h < d; h++) {
3322
+ let m = (f * d + h) * 4, p = o.color.light;
3323
+ if (f >= c && h >= c && f < d - c && h < d - c) {
3324
+ const k = Math.floor((f - c) / a), b = Math.floor((h - c) / a);
3325
+ p = u[l[k * s + b] ? 1 : 0];
3326
3326
  }
3327
- n[m++] = p.r, n[m++] = p.g, n[m++] = p.b, n[m] = p.a;
3327
+ r[m++] = p.r, r[m++] = p.g, r[m++] = p.b, r[m] = p.a;
3328
3328
  }
3329
3329
  };
3330
- })(Ze);
3330
+ })(Xe);
3331
3331
  (function(t) {
3332
- const e = Ze;
3333
- function r(i, o, s) {
3332
+ const e = Xe;
3333
+ function n(i, o, s) {
3334
3334
  i.clearRect(0, 0, o.width, o.height), o.style || (o.style = {}), o.height = s, o.width = s, o.style.height = s + "px", o.style.width = s + "px";
3335
3335
  }
3336
- function n() {
3336
+ function r() {
3337
3337
  try {
3338
3338
  return document.createElement("canvas");
3339
3339
  } catch {
@@ -3342,78 +3342,79 @@ var Tt = {}, Ze = {};
3342
3342
  }
3343
3343
  t.render = function(o, s, l) {
3344
3344
  let a = l, d = s;
3345
- typeof a > "u" && (!s || !s.getContext) && (a = s, s = void 0), s || (d = n()), a = e.getOptions(a);
3346
- const c = e.getImageWidth(o.modules.size, a), h = d.getContext("2d"), f = h.createImageData(c, c);
3347
- return e.qrToImageData(f.data, o, a), r(h, d, c), h.putImageData(f, 0, 0), d;
3345
+ typeof a > "u" && (!s || !s.getContext) && (a = s, s = void 0), s || (d = r()), a = e.getOptions(a);
3346
+ const c = e.getImageWidth(o.modules.size, a), u = d.getContext("2d"), f = u.createImageData(c, c);
3347
+ return e.qrToImageData(f.data, o, a), n(u, d, c), u.putImageData(f, 0, 0), d;
3348
3348
  }, t.renderToDataURL = function(o, s, l) {
3349
3349
  let a = l;
3350
3350
  typeof a > "u" && (!s || !s.getContext) && (a = s, s = void 0), a || (a = {});
3351
- const d = t.render(o, s, a), c = a.type || "image/png", h = a.rendererOpts || {};
3352
- return d.toDataURL(c, h.quality);
3351
+ const d = t.render(o, s, a), c = a.type || "image/png", u = a.rendererOpts || {};
3352
+ return d.toDataURL(c, u.quality);
3353
3353
  };
3354
- })(Tt);
3355
- var Nt = {};
3356
- const rn = Ze;
3354
+ })(Nt);
3355
+ var Rt = {};
3356
+ const rr = Xe;
3357
3357
  function ct(t, e) {
3358
- const r = t.a / 255, n = e + '="' + t.hex + '"';
3359
- return r < 1 ? n + " " + e + '-opacity="' + r.toFixed(2).slice(1) + '"' : n;
3358
+ const n = t.a / 255, r = e + '="' + t.hex + '"';
3359
+ return n < 1 ? r + " " + e + '-opacity="' + n.toFixed(2).slice(1) + '"' : r;
3360
3360
  }
3361
- function Fe(t, e, r) {
3362
- let n = t + e;
3363
- return typeof r < "u" && (n += " " + r), n;
3361
+ function Be(t, e, n) {
3362
+ let r = t + e;
3363
+ return typeof n < "u" && (r += " " + n), r;
3364
3364
  }
3365
- function nn(t, e, r) {
3366
- let n = "", i = 0, o = !1, s = 0;
3365
+ function ir(t, e, n) {
3366
+ let r = "", i = 0, o = !1, s = 0;
3367
3367
  for (let l = 0; l < t.length; l++) {
3368
3368
  const a = Math.floor(l % e), d = Math.floor(l / e);
3369
- !a && !o && (o = !0), t[l] ? (s++, l > 0 && a > 0 && t[l - 1] || (n += o ? Fe("M", a + r, 0.5 + d + r) : Fe("m", i, 0), i = 0, o = !1), a + 1 < e && t[l + 1] || (n += Fe("h", s), s = 0)) : i++;
3369
+ !a && !o && (o = !0), t[l] ? (s++, l > 0 && a > 0 && t[l - 1] || (r += o ? Be("M", a + n, 0.5 + d + n) : Be("m", i, 0), i = 0, o = !1), a + 1 < e && t[l + 1] || (r += Be("h", s), s = 0)) : i++;
3370
3370
  }
3371
- return n;
3371
+ return r;
3372
3372
  }
3373
- Nt.render = function(e, r, n) {
3374
- const i = rn.getOptions(r), o = e.modules.size, s = e.modules.data, l = o + i.margin * 2, a = i.color.light.a ? "<path " + ct(i.color.light, "fill") + ' d="M0 0h' + l + "v" + l + 'H0z"/>' : "", d = "<path " + ct(i.color.dark, "stroke") + ' d="' + nn(s, o, i.margin) + '"/>', c = 'viewBox="0 0 ' + l + " " + l + '"', f = '<svg xmlns="http://www.w3.org/2000/svg" ' + (i.width ? 'width="' + i.width + '" height="' + i.width + '" ' : "") + c + ' shape-rendering="crispEdges">' + a + d + `</svg>
3373
+ Rt.render = function(e, n, r) {
3374
+ const i = rr.getOptions(n), o = e.modules.size, s = e.modules.data, l = o + i.margin * 2, a = i.color.light.a ? "<path " + ct(i.color.light, "fill") + ' d="M0 0h' + l + "v" + l + 'H0z"/>' : "", d = "<path " + ct(i.color.dark, "stroke") + ' d="' + ir(s, o, i.margin) + '"/>', c = 'viewBox="0 0 ' + l + " " + l + '"', f = '<svg xmlns="http://www.w3.org/2000/svg" ' + (i.width ? 'width="' + i.width + '" height="' + i.width + '" ' : "") + c + ' shape-rendering="crispEdges">' + a + d + `</svg>
3375
3375
  `;
3376
- return typeof n == "function" && n(null, f), f;
3376
+ return typeof r == "function" && r(null, f), f;
3377
3377
  };
3378
- const on = wr, ze = vt, Rt = Tt, sn = Nt;
3379
- function Ge(t, e, r, n, i) {
3378
+ const or = vn, je = vt, Lt = Nt, sr = Rt;
3379
+ function Je(t, e, n, r, i) {
3380
3380
  const o = [].slice.call(arguments, 1), s = o.length, l = typeof o[s - 1] == "function";
3381
- if (!l && !on())
3381
+ if (!l && !or())
3382
3382
  throw new Error("Callback required as last argument");
3383
3383
  if (l) {
3384
3384
  if (s < 2)
3385
3385
  throw new Error("Too few arguments provided");
3386
- s === 2 ? (i = r, r = e, e = n = void 0) : s === 3 && (e.getContext && typeof i > "u" ? (i = n, n = void 0) : (i = n, n = r, r = e, e = void 0));
3386
+ s === 2 ? (i = n, n = e, e = r = void 0) : s === 3 && (e.getContext && typeof i > "u" ? (i = r, r = void 0) : (i = r, r = n, n = e, e = void 0));
3387
3387
  } else {
3388
3388
  if (s < 1)
3389
3389
  throw new Error("Too few arguments provided");
3390
- return s === 1 ? (r = e, e = n = void 0) : s === 2 && !e.getContext && (n = r, r = e, e = void 0), new Promise(function(a, d) {
3390
+ return s === 1 ? (n = e, e = r = void 0) : s === 2 && !e.getContext && (r = n, n = e, e = void 0), new Promise(function(a, d) {
3391
3391
  try {
3392
- const c = ze.create(r, n);
3393
- a(t(c, e, n));
3392
+ const c = je.create(n, r);
3393
+ a(t(c, e, r));
3394
3394
  } catch (c) {
3395
3395
  d(c);
3396
3396
  }
3397
3397
  });
3398
3398
  }
3399
3399
  try {
3400
- const a = ze.create(r, n);
3401
- i(null, t(a, e, n));
3400
+ const a = je.create(n, r);
3401
+ i(null, t(a, e, r));
3402
3402
  } catch (a) {
3403
3403
  i(a);
3404
3404
  }
3405
3405
  }
3406
- fe.create = ze.create;
3407
- fe.toCanvas = Ge.bind(null, Rt.render);
3408
- fe.toDataURL = Ge.bind(null, Rt.renderToDataURL);
3409
- fe.toString = Ge.bind(null, function(t, e, r) {
3410
- return sn.render(t, r);
3406
+ fe.create = je.create;
3407
+ fe.toCanvas = Je.bind(null, Lt.render);
3408
+ fe.toDataURL = Je.bind(null, Lt.renderToDataURL);
3409
+ fe.toString = Je.bind(null, function(t, e, n) {
3410
+ return sr.render(t, n);
3411
3411
  });
3412
- var an = Object.defineProperty, ln = Object.getOwnPropertyDescriptor, S = (t, e, r, n) => {
3413
- for (var i = n > 1 ? void 0 : n ? ln(e, r) : e, o = t.length - 1, s; o >= 0; o--)
3414
- (s = t[o]) && (i = (n ? s(e, r, i) : s(i)) || i);
3415
- return n && i && an(e, r, i), i;
3412
+ var ar = Object.defineProperty, lr = Object.getOwnPropertyDescriptor, S = (t, e, n, r) => {
3413
+ for (var i = r > 1 ? void 0 : r ? lr(e, n) : e, o = t.length - 1, s; o >= 0; o--)
3414
+ (s = t[o]) && (i = (r ? s(e, n, i) : s(i)) || i);
3415
+ return r && i && ar(e, n, i), i;
3416
3416
  };
3417
+ const dr = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALEAAABxCAYAAACawUJxAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAADY3SURBVHgB7X0HnBRF+vZb1d0TN+ccyEgGRREDnp53KuqdHsYzYODMqCiKcc0ooGDW0zOdn4E7wxnxzFkBT7KEZXfZ3dmcJ3d31VfVM7M7G2amZ3YW+cs+/Iadnq6qru5+qupNVQXw2wKKc9poyotHvsHm3S8hBv5SoOqpyX+c5sHUC3ECBYJMxOhohD1tX3dsavP/jLpPxxf8XpQz807McDhdhSrC8kCJJEpFs8Fc90rjfxrYIWYfEqZMdFLGSblYcWXJCCkQAfx+raJBWN30/s+B+kD0wMeNOk40N5EJet+FREWxS/VUf9L1CX/GBPYzdLf6T0b9c1OD0jwRDUFHIIIARsHQZfM0fmVX7GXX1S9dCz4CccTtob9S8tjpJoxfdZPw794gCABe68xTq+evgwiN6avRr7ftkWtTcHd1w4MRGUOKI749uPzk2eB7vtE0Vq1RfTXq9bYapS5FbybC2kohlKw5ovLUP8J+iG7Gri551NWgtBjZMx+y4Yw1ECpijIqFovpmZ8ef/9pw1fcQe4/Vu2hW8fdGPOuo8FabAMIzjo06pNRY2Dq3/KJMCE804eaCS3ImiuNrWpQ2Eqlcf1WoURRQs8M+eknT0t0QXSNFz+Y+dJZLbP8npfq6E1Y4GWEoQHN3X8TrFo9n+X8O3S+FvUV1KAnsuwZFXqLCTrkiy2Fq/+6D0hc/BN9DF2Bw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AXS5nMJCicULDhBj5lfm/tdPqbwVA4HvZVBBoseb/kqTUOofPYDq+dCJq+RZEe0aKvSKBHtPD91lu08GlyVE0SzEKBlLr+5ZaPjyizveMCfUP2MPpgfyJxAFpP90R22cSRSblvtyitI1yqh2Btz5+A3WDIZGStAzZgEZdI2e0/u3aeeNbuVV/D3hEffrPYH0nMEeAWWZZ/3axJ5hHPe4hnTLPSBiISNCNYnImsaXEJohGVCInN65w1F59VueKt4HrAMGLG/kriALpFjMsy54063nrUXWYJ/6VFbhUd4NY65m63XV/RAgWLGSHMZojPhzNAgZSuOuSm/35rL795se2fP8EweeOK/Z3EAXR72fh/D+XdNL0Q0uenmxPnMqtccQf1IA/p0hw9vTVhduwXkrU518xnYBHMkCZYqUBIS4239YNWr+25x3PWf71+/Xq573WGER8Mk7g/ehFtwYwFUvKu6qIM6/gJFpEeoFJawhwSORliosnIXAE2pcklgdAsIrFKUJVt5WrFlo+xrWK9bb1zoPKGMYxhDGMYwxjGMIaxz+H/Az2jvqCLQeXsAAAAAElFTkSuQmCC";
3417
3418
  let v = class extends se {
3418
3419
  constructor() {
3419
3420
  super(...arguments), this.currentState = { status: "idle" }, this.selectedMethod = null, this.cardFormData = {
@@ -3441,8 +3442,8 @@ let v = class extends se {
3441
3442
  // --- Cleave.js Setup ---
3442
3443
  setupCleave() {
3443
3444
  setTimeout(() => {
3444
- var r, n;
3445
- const t = (r = this.shadowRoot) == null ? void 0 : r.querySelector("#cardNumber"), e = (n = this.shadowRoot) == null ? void 0 : n.querySelector("#expiry");
3445
+ var n, r;
3446
+ const t = (n = this.shadowRoot) == null ? void 0 : n.querySelector("#cardNumber"), e = (r = this.shadowRoot) == null ? void 0 : r.querySelector("#expiry");
3446
3447
  t && !this.cardNumberCleave && (this.cardNumberCleave = new at(t, {
3447
3448
  creditCard: !0,
3448
3449
  delimiter: " ",
@@ -3476,9 +3477,9 @@ let v = class extends se {
3476
3477
  getFilteredPaymentMethods() {
3477
3478
  const t = this.currentState.status === "ready" || this.currentState.status === "processing" || this.currentState.status === "requires_action" ? this.currentState.availableMethods || [] : [];
3478
3479
  return t.length === 0 ? [] : t.filter((e) => {
3479
- var r;
3480
- return !((r = this.excludePaymentMethods) != null && r.includes(e.id));
3481
- }).map((e) => e.id === V.PAYNOW && this.getTransactionData().currency !== "SGD" ? {
3480
+ var n;
3481
+ return !((n = this.excludePaymentMethods) != null && n.includes(e.id));
3482
+ }).map((e) => e.id === Z.PAYNOW && this.getTransactionData().currency !== "SGD" ? {
3482
3483
  id: e.id,
3483
3484
  enabled: !1,
3484
3485
  disabledReason: "PayNow is only available for SGD currency"
@@ -3513,9 +3514,9 @@ let v = class extends se {
3513
3514
  );
3514
3515
  return;
3515
3516
  }
3516
- this.isInitialized || (this.isInitialized = !0, (t = this.sdk) == null || t.destroy(), this.sdk = new dr(this.config, this.adapters), this.sdk.subscribe((e) => {
3517
- var r;
3518
- ((r = this.previousState) == null ? void 0 : r.status) === "requires_action" && e.status !== "requires_action" && this.show3DSModal && (this.show3DSModal = !1, this.nextActionUrl = null, this.leaveEventsCounter = 0, this.sdk && this.sdk.resumePolling()), this.previousState = e, this.currentState = e, this.dispatchEvent(
3517
+ this.isInitialized || (this.isInitialized = !0, (t = this.sdk) == null || t.destroy(), this.sdk = new cn(this.config, this.adapters), this.sdk.subscribe((e) => {
3518
+ var n;
3519
+ ((n = this.previousState) == null ? void 0 : n.status) === "requires_action" && e.status !== "requires_action" && this.show3DSModal && (this.show3DSModal = !1, this.nextActionUrl = null, this.leaveEventsCounter = 0, this.sdk && this.sdk.resumePolling()), this.previousState = e, this.currentState = e, this.dispatchEvent(
3519
3520
  new CustomEvent("state-change", {
3520
3521
  detail: { state: e },
3521
3522
  bubbles: !0,
@@ -3550,8 +3551,8 @@ let v = class extends se {
3550
3551
  async (e) => {
3551
3552
  if (this.qrCode = e.payload.qrCode, !this.qrCode)
3552
3553
  return;
3553
- const r = this.qrCode.startsWith("http://") || this.qrCode.startsWith("https://"), n = this.qrCode.startsWith("data:image");
3554
- if (!r && !n)
3554
+ const n = this.qrCode.startsWith("http://") || this.qrCode.startsWith("https://"), r = this.qrCode.startsWith("data:image");
3555
+ if (!n && !r)
3555
3556
  try {
3556
3557
  const i = await fe.toDataURL(this.qrCode, {
3557
3558
  width: 300,
@@ -3588,8 +3589,8 @@ let v = class extends se {
3588
3589
  }
3589
3590
  handleInputChange(t, e) {
3590
3591
  if (this.cardFormData = { ...this.cardFormData, [t]: e }, this.formErrors[t]) {
3591
- const r = { ...this.formErrors };
3592
- delete r[t], this.formErrors = r;
3592
+ const n = { ...this.formErrors };
3593
+ delete n[t], this.formErrors = n;
3593
3594
  }
3594
3595
  }
3595
3596
  // Luhn algorithm check for card number validation
@@ -3597,14 +3598,14 @@ let v = class extends se {
3597
3598
  const e = t.replace(/\s/g, "");
3598
3599
  if (!/^\d+$/.test(e))
3599
3600
  return !1;
3600
- let r = 0, n = !1;
3601
+ let n = 0, r = !1;
3601
3602
  for (let i = e.length - 1; i >= 0; i--) {
3602
3603
  const o = e.charAt(i);
3603
3604
  if (!o) continue;
3604
3605
  let s = parseInt(o, 10);
3605
- n && (s *= 2, s > 9 && (s -= 9)), r += s, n = !n;
3606
+ r && (s *= 2, s > 9 && (s -= 9)), n += s, r = !r;
3606
3607
  }
3607
- return r % 10 === 0;
3608
+ return n % 10 === 0;
3608
3609
  }
3609
3610
  // Validate expiry date (MM/YY format)
3610
3611
  validateExpiry(t) {
@@ -3618,13 +3619,13 @@ let v = class extends se {
3618
3619
  if (l < 1 || l > 12)
3619
3620
  return { valid: !1, error: "Invalid month (01-12)" };
3620
3621
  const a = /* @__PURE__ */ new Date(), d = a.getFullYear(), c = a.getMonth() + 1;
3621
- let h;
3622
+ let u;
3622
3623
  if (s.length === 2) {
3623
- const f = parseInt(s, 10), u = d % 100, m = Math.floor(d / 100) * 100;
3624
- f < u && u - f > 80 ? h = m + 100 + f : h = m + f;
3624
+ const f = parseInt(s, 10), h = d % 100, m = Math.floor(d / 100) * 100;
3625
+ f < h && h - f > 80 ? u = m + 100 + f : u = m + f;
3625
3626
  } else
3626
3627
  return { valid: !1, error: "Invalid year format" };
3627
- return h < d ? { valid: !1, error: "Card has expired" } : h === d && l < c ? { valid: !1, error: "Card has expired" } : { valid: !0 };
3628
+ return u < d ? { valid: !1, error: "Card has expired" } : u === d && l < c ? { valid: !1, error: "Card has expired" } : { valid: !0 };
3628
3629
  }
3629
3630
  validateCardForm() {
3630
3631
  const t = {};
@@ -3640,11 +3641,11 @@ let v = class extends se {
3640
3641
  if (!this.sdk || this.currentState.status !== "ready" || !this.validateCardForm())
3641
3642
  return;
3642
3643
  this.paymentLocked = !0;
3643
- const t = this.cardFormData.expiry.split("/"), e = (t[0] || "").trim(), n = `20${(t[1] || "").trim().substring(0, 2)}`;
3644
- this.sdk.submitPayment(V.CARD, {
3644
+ const t = this.cardFormData.expiry.split("/"), e = (t[0] || "").trim(), r = `20${(t[1] || "").trim().substring(0, 2)}`;
3645
+ this.sdk.submitPayment(Z.CARD, {
3645
3646
  cardNumber: this.cardFormData.cardNumber.replace(/\s/g, ""),
3646
3647
  expiryMonth: e,
3647
- expiryYear: n,
3648
+ expiryYear: r,
3648
3649
  cvv: this.cardFormData.cvv,
3649
3650
  firstName: this.firstName,
3650
3651
  lastName: this.lastName,
@@ -3652,7 +3653,7 @@ let v = class extends se {
3652
3653
  });
3653
3654
  }
3654
3655
  handlePayNowPayment() {
3655
- !this.sdk || this.currentState.status !== "ready" || (this.paymentLocked = !0, this.sdk.submitPayment(V.PAYNOW, {
3656
+ !this.sdk || this.currentState.status !== "ready" || (this.paymentLocked = !0, this.sdk.submitPayment(Z.PAYNOW, {
3656
3657
  firstName: this.firstName,
3657
3658
  lastName: this.lastName,
3658
3659
  email: this.email
@@ -3674,21 +3675,21 @@ let v = class extends se {
3674
3675
  },
3675
3676
  netAmount: this.amount
3676
3677
  };
3677
- const e = (a = t.fees) == null ? void 0 : a.find((d) => d.owner === "merchant"), r = () => e ? e.type === "percentage" ? `${e.value}%` : `${e.value} ${e.currency}` : "", n = typeof t.totalFee == "number" ? t.totalFee : Number(t.totalFee) || 0, i = typeof t.totalSystemFee == "number" ? t.totalSystemFee : Number(t.totalSystemFee) || 0, o = t.initialAmount != null ? typeof t.initialAmount == "number" ? t.initialAmount : Number(t.initialAmount) || 0 : this.amount, s = t.customerAmount != null ? typeof t.customerAmount == "number" ? t.customerAmount : Number(t.customerAmount) || 0 : o, l = n - i;
3678
+ const e = (a = t.fees) == null ? void 0 : a.find((d) => d.owner === "merchant"), n = () => e ? e.type === "percentage" ? `${e.value}%` : `${e.value} ${e.currency}` : "", r = typeof t.totalFee == "number" ? t.totalFee : Number(t.totalFee) || 0, i = typeof t.totalSystemFee == "number" ? t.totalSystemFee : Number(t.totalSystemFee) || 0, o = t.initialAmount != null ? typeof t.initialAmount == "number" ? t.initialAmount : Number(t.initialAmount) || 0 : this.amount, s = t.customerAmount != null ? typeof t.customerAmount == "number" ? t.customerAmount : Number(t.customerAmount) || 0 : o, l = r - i;
3678
3679
  return {
3679
3680
  currency: t.currency || this.currency,
3680
3681
  charge: o,
3681
- fees: n,
3682
+ fees: r,
3682
3683
  feeBreakdown: {
3683
3684
  transactionFee: l,
3684
3685
  merchantFee: l,
3685
- merchantFeeLabel: r() || "0%"
3686
+ merchantFeeLabel: n() || "0%"
3686
3687
  },
3687
3688
  netAmount: s
3688
3689
  };
3689
3690
  }
3690
3691
  renderTransactionDetailsSkeleton() {
3691
- return A`
3692
+ return P`
3692
3693
  <div class="skeleton-transaction">
3693
3694
  <div class="skeleton skeleton-title"></div>
3694
3695
  <div class="skeleton-row">
@@ -3712,7 +3713,7 @@ let v = class extends se {
3712
3713
  `;
3713
3714
  }
3714
3715
  renderPaymentMethodsSkeleton() {
3715
- return A`
3716
+ return P`
3716
3717
  <div>
3717
3718
  <div class="skeleton-method">
3718
3719
  <div class="skeleton skeleton-radio"></div>
@@ -3732,7 +3733,7 @@ let v = class extends se {
3732
3733
  this.width ? `--one-payment-width: ${this.width}` : "",
3733
3734
  this.maxWidth ? `--one-payment-max-width: ${this.maxWidth}` : ""
3734
3735
  ].filter(Boolean).join("; ");
3735
- return A`
3736
+ return P`
3736
3737
  <div class="payment-element" style="${t}">
3737
3738
  ${this.renderTransactionDetailsSkeleton()}
3738
3739
  <div class="header">Select a payment method</div>
@@ -3741,8 +3742,8 @@ let v = class extends se {
3741
3742
  `;
3742
3743
  }
3743
3744
  renderTransactionDetails() {
3744
- const t = this.getTransactionData(), e = (r) => r.toFixed(2);
3745
- return A`
3745
+ const t = this.getTransactionData(), e = (n) => n.toFixed(2);
3746
+ return P`
3746
3747
  <div class="transaction-details">
3747
3748
  <h2 class="transaction-title">Transaction details</h2>
3748
3749
 
@@ -3777,7 +3778,7 @@ let v = class extends se {
3777
3778
  margin-top: ${this.feesExpanded ? "0.625rem" : "0"};
3778
3779
  `}
3779
3780
  >
3780
- ${t.feeBreakdown ? A`
3781
+ ${t.feeBreakdown ? P`
3781
3782
  <div class="fee-breakdown-inner">
3782
3783
  <div class="breakdown-row">
3783
3784
  <span class="breakdown-label">Transaction fee:</span>
@@ -3811,7 +3812,7 @@ let v = class extends se {
3811
3812
  renderCardForm() {
3812
3813
  setTimeout(() => this.setupCleave(), 0);
3813
3814
  const t = this.cardBrand === "amex" ? 4 : 3, e = this.cardBrand === "amex" ? "1234" : "123";
3814
- return A`
3815
+ return P`
3815
3816
  <div class="card-form">
3816
3817
  <h4 class="form-title">Card Information</h4>
3817
3818
  <div class="form-fields">
@@ -3824,9 +3825,9 @@ let v = class extends se {
3824
3825
  class="input ${this.formErrors.cardNumber ? "input-error" : ""}"
3825
3826
  placeholder="1234 1234 1234 1234"
3826
3827
  .value=${this.cardFormData.cardNumber}
3827
- @input=${(r) => this.handleInputChange("cardNumber", r.target.value)}
3828
+ @input=${(n) => this.handleInputChange("cardNumber", n.target.value)}
3828
3829
  />
3829
- ${this.formErrors.cardNumber ? A`<div class="error-message">${this.formErrors.cardNumber}</div>` : ""}
3830
+ ${this.formErrors.cardNumber ? P`<div class="error-message">${this.formErrors.cardNumber}</div>` : ""}
3830
3831
  </div>
3831
3832
 
3832
3833
  <!-- Single Expiry Field -->
@@ -3838,14 +3839,14 @@ let v = class extends se {
3838
3839
  class="input ${this.formErrors.expiry ? "input-error" : ""}"
3839
3840
  placeholder="MM/YY"
3840
3841
  .value=${this.cardFormData.expiry}
3841
- @input=${(r) => {
3842
- const n = r.target;
3842
+ @input=${(n) => {
3843
+ const r = n.target;
3843
3844
  setTimeout(() => {
3844
- this.handleInputChange("expiry", n.value);
3845
+ this.handleInputChange("expiry", r.value);
3845
3846
  }, 0);
3846
3847
  }}
3847
3848
  />
3848
- ${this.formErrors.expiry ? A`<div class="error-message">${this.formErrors.expiry}</div>` : ""}
3849
+ ${this.formErrors.expiry ? P`<div class="error-message">${this.formErrors.expiry}</div>` : ""}
3849
3850
  </div>
3850
3851
 
3851
3852
  <!-- CVV -->
@@ -3857,12 +3858,12 @@ let v = class extends se {
3857
3858
  placeholder="${e}"
3858
3859
  maxlength="${t}"
3859
3860
  .value=${this.cardFormData.cvv}
3860
- @input=${(r) => {
3861
- const n = r.target.value.replace(/\D/g, "");
3862
- r.target.value = n, this.handleInputChange("cvv", n);
3861
+ @input=${(n) => {
3862
+ const r = n.target.value.replace(/\D/g, "");
3863
+ n.target.value = r, this.handleInputChange("cvv", r);
3863
3864
  }}
3864
3865
  />
3865
- ${this.formErrors.cvv ? A`<div class="error-message">${this.formErrors.cvv}</div>` : ""}
3866
+ ${this.formErrors.cvv ? P`<div class="error-message">${this.formErrors.cvv}</div>` : ""}
3866
3867
  </div>
3867
3868
 
3868
3869
  <!-- Cardholder Name -->
@@ -3873,12 +3874,12 @@ let v = class extends se {
3873
3874
  class="input ${this.formErrors.cardholderName ? "input-error" : ""}"
3874
3875
  placeholder="JOHN DOE"
3875
3876
  .value=${this.cardFormData.cardholderName}
3876
- @input=${(r) => {
3877
- const n = r.target.value.replace(/[^A-Za-z\s]/g, "").toUpperCase();
3878
- r.target.value = n, this.handleInputChange("cardholderName", n);
3877
+ @input=${(n) => {
3878
+ const r = n.target.value.replace(/[^A-Za-z\s]/g, "").toUpperCase();
3879
+ n.target.value = r, this.handleInputChange("cardholderName", r);
3879
3880
  }}
3880
3881
  />
3881
- ${this.formErrors.cardholderName ? A`<div class="error-message">${this.formErrors.cardholderName}</div>` : ""}
3882
+ ${this.formErrors.cardholderName ? P`<div class="error-message">${this.formErrors.cardholderName}</div>` : ""}
3882
3883
  </div>
3883
3884
  </div>
3884
3885
 
@@ -3895,7 +3896,7 @@ let v = class extends se {
3895
3896
  `;
3896
3897
  }
3897
3898
  renderPayNowContent() {
3898
- return this.showQRModal && this.qrCodeDataUrl ? A`
3899
+ return this.showQRModal && this.qrCodeDataUrl ? P`
3899
3900
  <div class="paynow-container">
3900
3901
  <!-- Render generated QR code image -->
3901
3902
  <div class="qr-code-wrapper">
@@ -3912,7 +3913,7 @@ let v = class extends se {
3912
3913
  ${this.qrPollingInProgress ? "Verifying..." : "I Have Scanned the QR Code"}
3913
3914
  </button>
3914
3915
  </div>
3915
- ` : A`
3916
+ ` : P`
3916
3917
  <div class="paynow-container">
3917
3918
  <div class="paynow-instructions">
3918
3919
  <h3 class="instructions-title">How to Pay by QR:</h3>
@@ -3943,7 +3944,7 @@ let v = class extends se {
3943
3944
  `;
3944
3945
  }
3945
3946
  render3DSModal() {
3946
- return !this.show3DSModal || !this.nextActionUrl ? null : A`
3947
+ return !this.show3DSModal || !this.nextActionUrl ? null : P`
3947
3948
  <div class="modal-overlay">
3948
3949
  <div class="modal-content iframe-modal">
3949
3950
  <iframe
@@ -3958,7 +3959,7 @@ let v = class extends se {
3958
3959
  }
3959
3960
  renderStatusBlock() {
3960
3961
  if (this.currentState.status === "succeeded")
3961
- return A`
3962
+ return P`
3962
3963
  <div class="result-card success">
3963
3964
  <div class="result-icon-wrapper">
3964
3965
  <div class="result-icon">✓</div>
@@ -3972,7 +3973,7 @@ let v = class extends se {
3972
3973
  `;
3973
3974
  if (this.currentState.status === "failed") {
3974
3975
  const t = this.currentState.error ? this.currentState.error.message : "An error occurred while processing your payment";
3975
- return A`
3976
+ return P`
3976
3977
  <div class="result-card error">
3977
3978
  <div class="result-icon-wrapper">
3978
3979
  <div class="result-icon">✕</div>
@@ -3989,17 +3990,17 @@ let v = class extends se {
3989
3990
  render() {
3990
3991
  if ((this.currentState.status === "idle" || this.currentState.status === "initializing") && this.isInitializing && !this.paymentData)
3991
3992
  return this.renderSkeletons();
3992
- const t = this.currentState.status === "succeeded" || this.currentState.status === "failed", e = !t, r = this.getFilteredPaymentMethods();
3993
- if (r.length > 0) {
3994
- const s = r.some(
3993
+ const t = this.currentState.status === "succeeded" || this.currentState.status === "failed", e = !t, n = this.getFilteredPaymentMethods();
3994
+ if (n.length > 0) {
3995
+ const s = n.some(
3995
3996
  (l) => l.id === this.selectedMethod && l.enabled
3996
3997
  );
3997
3998
  if (!this.selectedMethod || !s) {
3998
- const l = r.find((a) => a.enabled);
3999
+ const l = n.find((a) => a.enabled);
3999
4000
  l && this.selectedMethod !== l.id && (this.selectedMethod = l.id);
4000
4001
  }
4001
4002
  }
4002
- const n = (s) => s === V.CARD ? "Card" : "PayNow", i = (s) => s === V.CARD ? A`
4003
+ const r = (s) => s === Z.CARD ? "Card" : "PayNow", i = (s) => s === Z.CARD ? P`
4003
4004
  <div class="method-icon-right">
4004
4005
  <svg
4005
4006
  width="24"
@@ -4017,26 +4018,26 @@ let v = class extends se {
4017
4018
  />
4018
4019
  </svg>
4019
4020
  </div>
4020
- ` : s === V.PAYNOW ? A`
4021
+ ` : s === Z.PAYNOW ? P`
4021
4022
  <div class="method-icon-right">
4022
- <img src="/images/pay-now.png" alt="PayNow" />
4023
+ <img src="${dr}" alt="PayNow" />
4023
4024
  </div>
4024
4025
  ` : null, o = [
4025
4026
  this.width ? `--one-payment-width: ${this.width}` : "",
4026
4027
  this.maxWidth ? `--one-payment-max-width: ${this.maxWidth}` : ""
4027
4028
  ].filter(Boolean).join("; ");
4028
- return A`
4029
+ return P`
4029
4030
  <div class="payment-element" style="${o}">
4030
4031
  ${this.renderTransactionDetails()}
4031
- ${e ? A`
4032
+ ${e ? P`
4032
4033
  <div class="header">Select a payment method</div>
4033
4034
  <div class="payment-methods-list">
4034
- ${r.map((s) => {
4035
+ ${n.map((s) => {
4035
4036
  const l = this.selectedMethod === s.id, a = !s.enabled || this.paymentLocked && !l;
4036
- return A`
4037
+ return P`
4037
4038
  <div
4038
4039
  class="payment-method-item"
4039
- ${s.disabledReason ? A`data-tooltip="${s.disabledReason}"` : ""}
4040
+ ${s.disabledReason ? P`data-tooltip="${s.disabledReason}"` : ""}
4040
4041
  >
4041
4042
  <div
4042
4043
  class="method-header ${l ? "selected" : ""} ${a ? "disabled" : ""}"
@@ -4050,11 +4051,11 @@ let v = class extends se {
4050
4051
  ?disabled=${a}
4051
4052
  @click=${(d) => d.stopPropagation()}
4052
4053
  />
4053
- <span class="method-name">${n(s.id)}</span>
4054
+ <span class="method-name">${r(s.id)}</span>
4054
4055
  ${i(s.id)}
4055
4056
  </div>
4056
- ${l ? A`<div class="method-content">
4057
- ${s.id === V.CARD ? this.renderCardForm() : this.renderPayNowContent()}
4057
+ ${l ? P`<div class="method-content">
4058
+ ${s.id === Z.CARD ? this.renderCardForm() : this.renderPayNowContent()}
4058
4059
  </div>` : ""}
4059
4060
  </div>
4060
4061
  `;
@@ -4068,7 +4069,7 @@ let v = class extends se {
4068
4069
  `;
4069
4070
  }
4070
4071
  };
4071
- v.styles = Lt`
4072
+ v.styles = Ut`
4072
4073
  :host {
4073
4074
  display: block;
4074
4075
  font-family:
@@ -4138,6 +4139,7 @@ v.styles = Lt`
4138
4139
  height: 1.25rem;
4139
4140
  min-width: 1.25rem;
4140
4141
  margin: 0;
4142
+ margin-right: 10px;
4141
4143
  flex-shrink: 0;
4142
4144
  cursor: pointer;
4143
4145
  accent-color: #ffbe32;
@@ -4194,7 +4196,6 @@ v.styles = Lt`
4194
4196
  justify-content: center;
4195
4197
  flex-shrink: 0;
4196
4198
  color: #6b7280;
4197
- margin-left: auto;
4198
4199
  }
4199
4200
 
4200
4201
  .method-icon-right svg {
@@ -4212,9 +4213,9 @@ v.styles = Lt`
4212
4213
  font-size: 1rem;
4213
4214
  font-weight: 500;
4214
4215
  color: #111827;
4215
- flex: 1;
4216
- min-width: 0;
4216
+ flex-shrink: 0;
4217
4217
  text-align: left;
4218
+ margin-right: 10px;
4218
4219
  }
4219
4220
 
4220
4221
  /* Accordion Content */
@@ -5356,88 +5357,88 @@ v.styles = Lt`
5356
5357
  }
5357
5358
  `;
5358
5359
  S([
5359
- $({ type: Object })
5360
+ F({ type: Object })
5360
5361
  ], v.prototype, "config", 2);
5361
5362
  S([
5362
- $({ type: Object })
5363
+ F({ type: Object })
5363
5364
  ], v.prototype, "adapters", 2);
5364
5365
  S([
5365
- $({ type: Number })
5366
+ F({ type: Number })
5366
5367
  ], v.prototype, "amount", 2);
5367
5368
  S([
5368
- $({ type: String })
5369
+ F({ type: String })
5369
5370
  ], v.prototype, "currency", 2);
5370
5371
  S([
5371
- $({ type: String })
5372
+ F({ type: String })
5372
5373
  ], v.prototype, "orderId", 2);
5373
5374
  S([
5374
- $({ type: String })
5375
+ F({ type: String })
5375
5376
  ], v.prototype, "firstName", 2);
5376
5377
  S([
5377
- $({ type: String })
5378
+ F({ type: String })
5378
5379
  ], v.prototype, "lastName", 2);
5379
5380
  S([
5380
- $({ type: String })
5381
+ F({ type: String })
5381
5382
  ], v.prototype, "email", 2);
5382
5383
  S([
5383
- $({ type: Array })
5384
+ F({ type: Array })
5384
5385
  ], v.prototype, "excludePaymentMethods", 2);
5385
5386
  S([
5386
- $({ type: String })
5387
+ F({ type: String })
5387
5388
  ], v.prototype, "width", 2);
5388
5389
  S([
5389
- $({ type: String })
5390
+ F({ type: String })
5390
5391
  ], v.prototype, "maxWidth", 2);
5391
5392
  S([
5392
- _()
5393
+ M()
5393
5394
  ], v.prototype, "currentState", 2);
5394
5395
  S([
5395
- _()
5396
+ M()
5396
5397
  ], v.prototype, "selectedMethod", 2);
5397
5398
  S([
5398
- _()
5399
+ M()
5399
5400
  ], v.prototype, "cardFormData", 2);
5400
5401
  S([
5401
- _()
5402
+ M()
5402
5403
  ], v.prototype, "formErrors", 2);
5403
5404
  S([
5404
- _()
5405
+ M()
5405
5406
  ], v.prototype, "paymentData", 2);
5406
5407
  S([
5407
- _()
5408
+ M()
5408
5409
  ], v.prototype, "feesExpanded", 2);
5409
5410
  S([
5410
- _()
5411
+ M()
5411
5412
  ], v.prototype, "isInitializing", 2);
5412
5413
  S([
5413
- _()
5414
+ M()
5414
5415
  ], v.prototype, "cardBrand", 2);
5415
5416
  S([
5416
- _()
5417
+ M()
5417
5418
  ], v.prototype, "paymentLocked", 2);
5418
5419
  S([
5419
- _()
5420
+ M()
5420
5421
  ], v.prototype, "show3DSModal", 2);
5421
5422
  S([
5422
- _()
5423
+ M()
5423
5424
  ], v.prototype, "showQRModal", 2);
5424
5425
  S([
5425
- _()
5426
+ M()
5426
5427
  ], v.prototype, "nextActionUrl", 2);
5427
5428
  S([
5428
- _()
5429
+ M()
5429
5430
  ], v.prototype, "qrCode", 2);
5430
5431
  S([
5431
- _()
5432
+ M()
5432
5433
  ], v.prototype, "qrCodeDataUrl", 2);
5433
5434
  S([
5434
- _()
5435
+ M()
5435
5436
  ], v.prototype, "qrAutoResumeTimer", 2);
5436
5437
  S([
5437
- _()
5438
+ M()
5438
5439
  ], v.prototype, "qrPollingInProgress", 2);
5439
5440
  v = S([
5440
- rr("one-payment")
5441
+ nn("one-payment")
5441
5442
  ], v);
5442
5443
  export {
5443
5444
  v as OnePayment,