@kopjra/pdf-sentinel 1.11.1 → 1.11.3

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.
@@ -12,21 +12,21 @@ var ji = (d, h, u) => {
12
12
  } else u && d.push([u]);
13
13
  return h;
14
14
  }, nu = (d, h, u) => {
15
- var E = typeof SuppressedError == "function" ? SuppressedError : function(x, p, F, A) {
16
- return A = Error(F), A.name = "SuppressedError", A.error = x, A.suppressed = p, A;
17
- }, w = (x) => h = u ? new E(x, h, "An error was suppressed during disposal") : (u = !0, x), R = (x) => {
18
- for (; x = d.pop(); )
15
+ var E = typeof SuppressedError == "function" ? SuppressedError : function(w, p, F, I) {
16
+ return I = Error(F), I.name = "SuppressedError", I.error = w, I.suppressed = p, I;
17
+ }, x = (w) => h = u ? new E(w, h, "An error was suppressed during disposal") : (u = !0, w), R = (w) => {
18
+ for (; w = d.pop(); )
19
19
  try {
20
- var p = x[1] && x[1].call(x[2]);
21
- if (x[0]) return Promise.resolve(p).then(R, (F) => (w(F), R()));
20
+ var p = w[1] && w[1].call(w[2]);
21
+ if (w[0]) return Promise.resolve(p).then(R, (F) => (x(F), R()));
22
22
  } catch (F) {
23
- w(F);
23
+ x(F);
24
24
  }
25
25
  if (u) throw h;
26
26
  };
27
27
  return R();
28
28
  };
29
- import { jsx as O, jsxs as Vn, Fragment as Qf } from "preact/jsx-runtime";
29
+ import { jsx as L, jsxs as Vn, Fragment as Qf } from "preact/jsx-runtime";
30
30
  import { createContext as ou, useMemo as Mt, useContext as jf, useRef as Pe, useState as mn, useCallback as In, useEffect as Dn, forwardRef as ns, useImperativeHandle as es } from "preact/compat";
31
31
  import { useEngineContext as ts, usePdfiumEngine as jp, PdfEngineProvider as n0 } from "@embedpdf/engines/preact";
32
32
  import { useDocumentState as fu, EmbedPDF as e0 } from "@embedpdf/core/preact";
@@ -56,88 +56,88 @@ function y0(d) {
56
56
  const E = this.pdfiumModule.FPDFAnnot_GetFormFieldFlags(
57
57
  h,
58
58
  u
59
- ), w = this.pdfiumModule.FPDFAnnot_GetFormFieldType(
59
+ ), x = this.pdfiumModule.FPDFAnnot_GetFormFieldType(
60
60
  h,
61
61
  u
62
62
  ), R = Ct(
63
63
  this.pdfiumModule.pdfium,
64
- (S, C) => this.pdfiumModule.FPDFAnnot_GetFormFieldName(
64
+ (S, D) => this.pdfiumModule.FPDFAnnot_GetFormFieldName(
65
65
  h,
66
66
  u,
67
67
  S,
68
- C
68
+ D
69
69
  ),
70
70
  this.pdfiumModule.pdfium.UTF16ToString
71
- ), x = Ct(
71
+ ), w = Ct(
72
72
  this.pdfiumModule.pdfium,
73
- (S, C) => this.pdfiumModule.FPDFAnnot_GetFormFieldAlternateName(
73
+ (S, D) => this.pdfiumModule.FPDFAnnot_GetFormFieldAlternateName(
74
74
  h,
75
75
  u,
76
76
  S,
77
- C
77
+ D
78
78
  ),
79
79
  this.pdfiumModule.pdfium.UTF16ToString
80
80
  ), p = Ct(
81
81
  this.pdfiumModule.pdfium,
82
- (S, C) => this.pdfiumModule.FPDFAnnot_GetFormFieldValue(
82
+ (S, D) => this.pdfiumModule.FPDFAnnot_GetFormFieldValue(
83
83
  h,
84
84
  u,
85
85
  S,
86
- C
86
+ D
87
87
  ),
88
88
  this.pdfiumModule.pdfium.UTF16ToString
89
89
  ), F = [];
90
- if (w === $n.COMBOBOX || w === $n.LISTBOX) {
90
+ if (x === $n.COMBOBOX || x === $n.LISTBOX) {
91
91
  const S = this.pdfiumModule.FPDFAnnot_GetOptionCount(h, u);
92
- for (let C = 0; C < S; C++) {
93
- const ln = Ct(
92
+ for (let D = 0; D < S; D++) {
93
+ const tn = Ct(
94
94
  this.pdfiumModule.pdfium,
95
- (Y, on) => this.pdfiumModule.FPDFAnnot_GetOptionLabel(
95
+ (Q, sn) => this.pdfiumModule.FPDFAnnot_GetOptionLabel(
96
96
  h,
97
97
  u,
98
- C,
99
- Y,
100
- on
98
+ D,
99
+ Q,
100
+ sn
101
101
  ),
102
102
  this.pdfiumModule.pdfium.UTF16ToString
103
103
  ), H = this.pdfiumModule.FPDFAnnot_IsOptionSelected(
104
104
  h,
105
105
  u,
106
- C
106
+ D
107
107
  );
108
108
  F.push({
109
- label: ln,
109
+ label: tn,
110
110
  isSelected: H
111
111
  });
112
112
  }
113
113
  }
114
- let A = !1, T = "";
115
- (w === $n.CHECKBOX || w === $n.RADIOBUTTON) && (A = this.pdfiumModule.FPDFAnnot_IsChecked(h, u), T = Ct(
114
+ let I = !1, T = "";
115
+ (x === $n.CHECKBOX || x === $n.RADIOBUTTON) && (I = this.pdfiumModule.FPDFAnnot_IsChecked(h, u), T = Ct(
116
116
  this.pdfiumModule.pdfium,
117
- (S, C) => this.pdfiumModule.FPDFAnnot_GetFormFieldExportValue(
117
+ (S, D) => this.pdfiumModule.FPDFAnnot_GetFormFieldExportValue(
118
118
  h,
119
119
  u,
120
120
  S,
121
- C
121
+ D
122
122
  ),
123
123
  this.pdfiumModule.pdfium.UTF16ToString
124
124
  ));
125
- let L = !1;
126
- return w === $n.SIGNATURE && (L = F0(this.pdfiumModule, u)), {
125
+ let N = !1;
126
+ return x === $n.SIGNATURE && (N = F0(this.pdfiumModule, u)), {
127
127
  flag: E,
128
- type: w,
128
+ type: x,
129
129
  name: R,
130
- alternateName: x,
130
+ alternateName: w,
131
131
  value: p,
132
- isChecked: A,
132
+ isChecked: I,
133
133
  options: F,
134
134
  exportValue: T,
135
- signed: L
135
+ signed: N
136
136
  };
137
137
  });
138
138
  }
139
139
  function eu() {
140
- return /* @__PURE__ */ O("div", { className: "pdf-spinner", children: /* @__PURE__ */ O("div", { className: "pdf-spinner__circle" }) });
140
+ return /* @__PURE__ */ L("div", { className: "pdf-spinner", children: /* @__PURE__ */ L("div", { className: "pdf-spinner__circle" }) });
141
141
  }
142
142
  class Nr {
143
143
  constructor(h) {
@@ -145,14 +145,14 @@ class Nr {
145
145
  this.field = h;
146
146
  }
147
147
  }
148
- function C0(d, h, u, E = 30, w = 1) {
149
- const R = document.createElement("canvas"), x = R.getContext("2d");
148
+ function C0(d, h, u, E = 30, x = 1) {
149
+ const R = document.createElement("canvas"), w = R.getContext("2d");
150
150
  let p = E, F = 1;
151
- if (!x) return 18;
152
- for (; p > w; ) {
153
- x.font = `bold ${p}px Lato, sans-serif`;
154
- const A = x.measureText(d), T = A.width, L = A.actualBoundingBoxAscent + A.actualBoundingBoxDescent, S = L * 1.4;
155
- if (F = Math.min(h / T, u / S), T <= h && L <= u) break;
151
+ if (!w) return 18;
152
+ for (; p > x; ) {
153
+ w.font = `bold ${p}px Lato, sans-serif`;
154
+ const I = w.measureText(d), T = I.width, N = I.actualBoundingBoxAscent + I.actualBoundingBoxDescent, S = N * 1.4;
155
+ if (F = Math.min(h / T, u / S), T <= h && N <= u) break;
156
156
  p -= 1;
157
157
  }
158
158
  return R.remove(), p * F;
@@ -161,12 +161,12 @@ class D0 extends Nr {
161
161
  constructor(h) {
162
162
  super(h);
163
163
  }
164
- render({ value: h, onChange: u, style: E, key: w, hasError: R, readonly: x }) {
165
- if (x) {
164
+ render({ value: h, onChange: u, style: E, key: x, hasError: R, readonly: w }) {
165
+ if (w) {
166
166
  const p = C0(String(h) || "", Number(E.width), Number(E.height));
167
- return /* @__PURE__ */ O("div", { className: "pdf-form-input-ro", style: { ...E, fontSize: p }, children: h }, w);
167
+ return /* @__PURE__ */ L("div", { className: "pdf-form-input-ro", style: { ...E, fontSize: p }, children: h }, x);
168
168
  } else
169
- return /* @__PURE__ */ O(
169
+ return /* @__PURE__ */ L(
170
170
  "input",
171
171
  {
172
172
  name: this.field.name,
@@ -175,7 +175,7 @@ class D0 extends Nr {
175
175
  value: String(h || ""),
176
176
  onChange: (p) => u(this.handleChange(p.target.value))
177
177
  },
178
- w
178
+ x
179
179
  );
180
180
  }
181
181
  handleChange(h) {
@@ -186,19 +186,19 @@ class M0 extends Nr {
186
186
  constructor(h) {
187
187
  super(h);
188
188
  }
189
- render({ value: h, onChange: u, style: E, key: w, hasError: R, readonly: x }) {
190
- return /* @__PURE__ */ O(
189
+ render({ value: h, onChange: u, style: E, key: x, hasError: R, readonly: w }) {
190
+ return /* @__PURE__ */ L(
191
191
  "input",
192
192
  {
193
193
  name: this.field.name,
194
194
  type: "checkbox",
195
- disabled: x,
195
+ disabled: w,
196
196
  className: `pdf-form-checkbox ${R ? "error" : ""}`,
197
197
  style: { ...E },
198
198
  checked: !!h,
199
199
  onChange: (p) => u(this.handleChange(p.target.checked))
200
200
  },
201
- w
201
+ x
202
202
  );
203
203
  }
204
204
  handleChange(h) {
@@ -209,21 +209,21 @@ class U0 extends Nr {
209
209
  constructor(h) {
210
210
  super(h);
211
211
  }
212
- render({ value: h, onChange: u, style: E, key: w, hasError: R, readonly: x }) {
212
+ render({ value: h, onChange: u, style: E, key: x, hasError: R, readonly: w }) {
213
213
  const p = this.field.radioValue || "";
214
- return /* @__PURE__ */ O(
214
+ return /* @__PURE__ */ L(
215
215
  "input",
216
216
  {
217
217
  name: this.field.name,
218
218
  type: "radio",
219
- disabled: x,
219
+ disabled: w,
220
220
  className: `pdf-form-radio ${R ? "error" : ""}`,
221
221
  style: { ...E },
222
222
  value: p,
223
223
  checked: h === p,
224
224
  onChange: () => u(this.handleChange(p))
225
225
  },
226
- w
226
+ x
227
227
  );
228
228
  }
229
229
  handleChange(h) {
@@ -328,11 +328,11 @@ const fs = ({ locale: d = "en", translations: h = {}, children: u }) => {
328
328
  ...h[p] || {}
329
329
  };
330
330
  }), R;
331
- }, [h]), w = (R, ...x) => {
331
+ }, [h]), x = (R, ...w) => {
332
332
  const F = (E[d] || E.en || {})[R] ?? R;
333
- return x.length ? x.reduce((A, T) => A.replace(new RegExp("%s"), T), F) : F;
333
+ return w.length ? w.reduce((I, T) => I.replace(new RegExp("%s"), T), F) : F;
334
334
  };
335
- return iu = w, /* @__PURE__ */ O(os.Provider, { value: { t: w }, children: u });
335
+ return iu = x, /* @__PURE__ */ L(os.Provider, { value: { t: x }, children: u });
336
336
  };
337
337
  function su() {
338
338
  const d = jf(os);
@@ -340,9 +340,9 @@ function su() {
340
340
  }
341
341
  function B0(d) {
342
342
  const u = d.length;
343
- return [...d.toLowerCase()].reduce((E, w, R) => {
344
- const x = w.charCodeAt(0) - 96, p = Math.pow(26, u - R - 1);
345
- return E + x * p;
343
+ return [...d.toLowerCase()].reduce((E, x, R) => {
344
+ const w = x.charCodeAt(0) - 96, p = Math.pow(26, u - R - 1);
345
+ return E + w * p;
346
346
  }, 0);
347
347
  }
348
348
  function W0(d) {
@@ -370,17 +370,17 @@ class G0 extends Nr {
370
370
  constructor(h) {
371
371
  super(h);
372
372
  }
373
- render({ value: h, onChange: u, style: E, key: w }) {
374
- const { t: R } = su(), x = W0(this.field.conditionalIndex), p = this.field.conditionalIndex, F = Number(E.width), A = Number(E.height);
373
+ render({ value: h, onChange: u, style: E, key: x }) {
374
+ const { t: R } = su(), w = W0(this.field.conditionalIndex), p = this.field.conditionalIndex, F = Number(E.width), I = Number(E.height);
375
375
  let T;
376
376
  if (p) {
377
- const L = A * 0.13, S = F * 0.06;
378
- T = Math.min(L, S, 16);
377
+ const N = I * 0.13, S = F * 0.06;
378
+ T = Math.min(N, S, 16);
379
379
  } else {
380
- const L = A * 0.15, S = F * 0.055;
381
- T = Math.min(L, S, 16);
380
+ const N = I * 0.15, S = F * 0.055;
381
+ T = Math.min(N, S, 16);
382
382
  }
383
- return /* @__PURE__ */ O(
383
+ return /* @__PURE__ */ L(
384
384
  "div",
385
385
  {
386
386
  className: "pdf-form-signature",
@@ -388,62 +388,62 @@ class G0 extends Nr {
388
388
  ...E,
389
389
  fontSize: T,
390
390
  lineHeight: p ? 1.5 : 1,
391
- backgroundColor: x.background,
392
- borderColor: x.border,
393
- color: x.text
391
+ backgroundColor: w.background,
392
+ borderColor: w.border,
393
+ color: w.text
394
394
  },
395
395
  children: this.field.conditionalIndex ? /* @__PURE__ */ Vn(Qf, { children: [
396
- /* @__PURE__ */ O("span", { style: { position: "absolute", top: 0, right: 4, fontWeight: "bold" }, children: this.field.conditionalIndex }),
396
+ /* @__PURE__ */ L("span", { style: { position: "absolute", top: 0, right: 4, fontWeight: "bold" }, children: this.field.conditionalIndex }),
397
397
  R("conditional1", this.field.conditionalIndex),
398
- /* @__PURE__ */ O("br", {}),
398
+ /* @__PURE__ */ L("br", {}),
399
399
  R("conditional2")
400
400
  ] }) : R("signature")
401
401
  },
402
- w
402
+ x
403
403
  );
404
404
  }
405
405
  handleChange(h) {
406
406
  return String(h || "");
407
407
  }
408
408
  }
409
- async function* ss(d, h, u = {}, E = [], w, R = !1) {
410
- var x;
409
+ async function* ss(d, h, u = {}, E = [], x, R = !1) {
410
+ var w;
411
411
  try {
412
412
  for (const p of d.pages) {
413
- const F = await h.getPageAnnotations(d, p).toPromise(), A = p.index;
413
+ const F = await h.getPageAnnotations(d, p).toPromise(), I = p.index;
414
414
  let T = 0;
415
- for (const L of F) {
416
- if (L.type === Ye.WIDGET) {
417
- const S = $0(L.field.type) || "text", C = L.rect, ln = C.origin.x, H = C.origin.y, Y = C.size.width, on = C.size.height, D = L.field.name ? String(L.field.name) : `${A}-${T}`, U = !!(L.field.flag & Zf.READONLY) || !!((x = u[D]) != null && x.readonly), fn = !!(L.field.flag & Zf.REQUIRED), J = S === "radiobutton" && L.field.exportValue ? String(L.field.exportValue) : void 0;
418
- let en;
415
+ for (const N of F) {
416
+ if (N.type === Ye.WIDGET) {
417
+ const S = $0(N.field.type) || "text", D = N.rect, tn = D.origin.x, H = D.origin.y, Q = D.size.width, sn = D.size.height, C = N.field.name ? String(N.field.name) : `${I}-${T}`;
418
+ let M = !!(N.field.flag & Zf.READONLY) || !!((w = u[C]) != null && w.readonly), un = !!(N.field.flag & Zf.REQUIRED);
419
+ const V = S === "radiobutton" && N.field.exportValue ? String(N.field.exportValue) : void 0;
420
+ let nn;
419
421
  if (S === "signature") {
420
- if (!w && !R) {
422
+ if (!x && !R) {
421
423
  T++;
422
424
  continue;
423
425
  }
424
- const tn = E.find((an) => an.fieldNames.includes(D));
425
- if (tn)
426
- en = tn.index;
427
- else if (w && !w.includes(D) && w.length > 0 && !R) {
426
+ const rn = E.find((an) => an.fieldNames.includes(C));
427
+ if (rn)
428
+ nn = rn.index;
429
+ else if (x && !x.includes(C) && x.length > 0 && !R) {
428
430
  T++;
429
431
  continue;
430
432
  }
431
- } else if (!u[D] && !R) {
432
- T++;
433
- continue;
434
- }
433
+ } else
434
+ !u[C] && !R && (M = !0, un = !1);
435
435
  yield {
436
436
  field: {
437
- name: D,
437
+ name: C,
438
438
  type: S,
439
- pageIndex: A,
440
- bbox: { x: ln, y: H, width: Y, height: on },
441
- required: fn,
442
- readonly: U,
443
- radioValue: J,
444
- conditionalIndex: en
439
+ pageIndex: I,
440
+ bbox: { x: tn, y: H, width: Q, height: sn },
441
+ required: un,
442
+ readonly: M,
443
+ radioValue: V,
444
+ conditionalIndex: nn
445
445
  },
446
- annotation: L
446
+ annotation: N
447
447
  };
448
448
  }
449
449
  T++;
@@ -456,25 +456,25 @@ async function* ss(d, h, u = {}, E = [], w, R = !1) {
456
456
  function z0(d) {
457
457
  return d.type === Ye.WIDGET ? d.field.type === $n.CHECKBOX || d.field.type === $n.XFA_CHECKBOX ? d.field.isChecked : d.field.value !== void 0 && d.field.value !== "" : !1;
458
458
  }
459
- async function H0(d, h, u, E, w, R) {
460
- var A;
461
- const x = [], p = {};
462
- if (!w || !R) return { fields: x, values: p };
459
+ async function H0(d, h, u, E, x, R) {
460
+ var I;
461
+ const w = [], p = {};
462
+ if (!x || !R) return { fields: w, values: p };
463
463
  const F = R.getDocument(d);
464
- if (!F) return { fields: x, values: p };
464
+ if (!F) return { fields: w, values: p };
465
465
  try {
466
466
  for await (const {
467
467
  field: T,
468
- annotation: L
469
- } of ss(F, w, h, u, E))
470
- if (x.push(T), L.type === Ye.WIDGET && L.field.value !== void 0) {
471
- const S = (A = h[T.name]) == null ? void 0 : A.value;
472
- T.type === "checkbox" ? p[T.name] = S !== void 0 ? S : L.field.isChecked : T.type === "radiobutton" ? (S === T.radioValue && T.radioValue !== void 0 || L.field.isChecked && T.radioValue !== void 0) && (p[T.name] = T.radioValue) : p[T.name] = S !== void 0 ? S : L.field.value;
468
+ annotation: N
469
+ } of ss(F, x, h, u, E))
470
+ if (w.push(T), N.type === Ye.WIDGET && N.field.value !== void 0) {
471
+ const S = (I = h[T.name]) == null ? void 0 : I.value;
472
+ T.type === "checkbox" ? p[T.name] = S !== void 0 ? S : N.field.isChecked : T.type === "radiobutton" ? (S === T.radioValue && T.radioValue !== void 0 || N.field.isChecked && T.radioValue !== void 0) && (p[T.name] = T.radioValue) : p[T.name] = S !== void 0 ? S : N.field.value;
473
473
  }
474
474
  } catch (T) {
475
475
  console.error(T);
476
476
  }
477
- return { fields: x, values: p };
477
+ return { fields: w, values: p };
478
478
  }
479
479
  function $0(d) {
480
480
  switch (d) {
@@ -493,77 +493,77 @@ function $0(d) {
493
493
  return;
494
494
  }
495
495
  }
496
- function q0(d, h, u = [], E, w, R, x, p) {
497
- const F = Pe([]), [A, T] = mn(F.current), L = Pe({}), [S, C] = mn(L.current), [ln, H] = mn({}), [Y, on] = mn(!1), D = fu(d), U = In(async () => {
498
- if (!w || !R) {
496
+ function q0(d, h, u = [], E, x, R, w, p) {
497
+ const F = Pe([]), [I, T] = mn(F.current), N = Pe({}), [S, D] = mn(N.current), [tn, H] = mn({}), [Q, sn] = mn(!1), C = fu(d), M = In(async () => {
498
+ if (!x || !R) {
499
499
  T([]);
500
500
  return;
501
501
  }
502
502
  if (R.getDocument(d))
503
503
  try {
504
- const { fields: rn, values: N } = await H0(d, h, u, E, w, R);
505
- F.current = rn, T(F.current), L.current = { ...L.current, ...N }, C(L.current);
504
+ const { fields: on, values: en } = await H0(d, h, u, E, x, R);
505
+ F.current = on, T(F.current), N.current = { ...N.current, ...en }, D(N.current);
506
506
  } catch {
507
507
  T([]);
508
508
  }
509
- }, [h, w]);
509
+ }, [h, x]);
510
510
  Dn(() => {
511
- U();
511
+ M();
512
512
  const an = R == null ? void 0 : R.onDocumentOpened(() => {
513
- U();
513
+ M();
514
514
  });
515
515
  return () => {
516
516
  an == null || an();
517
517
  };
518
- }, [U]);
519
- const fn = In((an) => {
520
- var N, $;
521
- const rn = {};
522
- for (const Q of F.current) {
523
- const G = L.current[Q.name];
524
- Q.required && (Q.type === "checkbox" && G !== !0 && (rn[Q.name] = "required"), Q.type === "radiobutton" && (G === void 0 || G === !1 || G === "") && (rn[Q.name] = "required"), Q.type === "text" && (G === void 0 || String(G).trim() === "") && (rn[Q.name] = "required"));
518
+ }, [M]);
519
+ const un = In((an) => {
520
+ var en, P;
521
+ const on = {};
522
+ for (const X of F.current) {
523
+ const G = N.current[X.name];
524
+ X.required && (X.type === "checkbox" && G !== !0 && (on[X.name] = "required"), X.type === "radiobutton" && (G === void 0 || G === !1 || G === "") && (on[X.name] = "required"), X.type === "text" && (G === void 0 || String(G).trim() === "") && (on[X.name] = "required"));
525
525
  }
526
- if (H(rn), on(!0), Object.keys(rn).length > 0 && x && !an) {
527
- const Q = F.current.find((G) => rn[G.name]);
528
- if (Q) {
529
- x.scrollToPage({ pageNumber: Q.pageIndex + 1, behavior: "smooth" });
530
- const G = (D == null ? void 0 : D.scale) || 1, dn = Q.pageIndex * ((($ = (N = D == null ? void 0 : D.document) == null ? void 0 : N.pages[Q.pageIndex]) == null ? void 0 : $.size.height) || 0);
531
- p == null || p.scrollTo({ x: Q.bbox.x * G, y: Q.bbox.y * G + dn * G, behavior: "smooth" });
526
+ if (H(on), sn(!0), Object.keys(on).length > 0 && w && !an) {
527
+ const X = F.current.find((G) => on[G.name]);
528
+ if (X) {
529
+ w.scrollToPage({ pageNumber: X.pageIndex + 1, behavior: "smooth" });
530
+ const G = (C == null ? void 0 : C.scale) || 1, dn = X.pageIndex * (((P = (en = C == null ? void 0 : C.document) == null ? void 0 : en.pages[X.pageIndex]) == null ? void 0 : P.size.height) || 0);
531
+ p == null || p.scrollTo({ x: X.bbox.x * G, y: X.bbox.y * G + dn * G, behavior: "smooth" });
532
532
  }
533
533
  }
534
- return { valid: Object.keys(rn).length === 0, errors: rn };
535
- }, [x, p, H, D]), J = In((an, rn) => {
536
- L.current = { ...L.current, [an]: rn }, C(L.current), Y && fn(!0);
537
- }, [C, fn, Y]), en = In(() => {
538
- U();
539
- }, [U]), tn = In(function* (an) {
540
- var rn, N;
534
+ return { valid: Object.keys(on).length === 0, errors: on };
535
+ }, [w, p, H, C]), V = In((an, on) => {
536
+ N.current = { ...N.current, [an]: on }, D(N.current), Q && un(!0);
537
+ }, [D, un, Q]), nn = In(() => {
538
+ M();
539
+ }, [M]), rn = In(function* (an) {
540
+ var on, en;
541
541
  for (; ; )
542
- for (const $ of F.current.filter((Q) => Q.type === "signature" && Q.conditionalIndex === an)) {
543
- if (x && p) {
544
- x.scrollToPage({ pageNumber: $.pageIndex + 1, behavior: "smooth" });
545
- const Q = (D == null ? void 0 : D.scale) || 1, G = $.pageIndex * (((N = (rn = D == null ? void 0 : D.document) == null ? void 0 : rn.pages[$.pageIndex]) == null ? void 0 : N.size.height) || 0);
546
- p == null || p.scrollTo({ x: $.bbox.x * Q, y: $.bbox.y * Q + G * Q, behavior: "smooth" });
542
+ for (const P of F.current.filter((X) => X.type === "signature" && X.conditionalIndex === an)) {
543
+ if (w && p) {
544
+ w.scrollToPage({ pageNumber: P.pageIndex + 1, behavior: "smooth" });
545
+ const X = (C == null ? void 0 : C.scale) || 1, G = P.pageIndex * (((en = (on = C == null ? void 0 : C.document) == null ? void 0 : on.pages[P.pageIndex]) == null ? void 0 : en.size.height) || 0);
546
+ p == null || p.scrollTo({ x: P.bbox.x * X, y: P.bbox.y * X + G * X, behavior: "smooth" });
547
547
  }
548
- yield $;
548
+ yield P;
549
549
  }
550
- }, [x, p, D == null ? void 0 : D.scale]);
550
+ }, [w, p, C == null ? void 0 : C.scale]);
551
551
  return Mt(() => ({
552
- fields: A,
552
+ fields: I,
553
553
  values: S,
554
- setValue: J,
555
- validate: fn,
556
- reload: en,
557
- errors: ln,
558
- showErrors: Y,
559
- scrollToConditionalSignature: tn
560
- }), [S, A, J, fn, en, ln, x, p, Y]);
554
+ setValue: V,
555
+ validate: un,
556
+ reload: nn,
557
+ errors: tn,
558
+ showErrors: Q,
559
+ scrollToConditionalSignature: rn
560
+ }), [S, I, V, un, nn, tn, w, p, Q]);
561
561
  }
562
562
  const ls = ou(null), K0 = (d) => {
563
- const { children: h, setForm: u, initialValues: E, documentId: w, conditionalSignatures: R, signatureFieldNames: x } = d, { engine: p } = ts(), { provides: F } = s0(), { provides: A } = is(), { provides: T } = rs(), L = q0(w, E, R, x, p, F, A, T);
563
+ const { children: h, setForm: u, initialValues: E, documentId: x, conditionalSignatures: R, signatureFieldNames: w } = d, { engine: p } = ts(), { provides: F } = s0(), { provides: I } = is(), { provides: T } = rs(), N = q0(x, E, R, w, p, F, I, T);
564
564
  return Dn(() => {
565
- u(L);
566
- }, [L]), /* @__PURE__ */ O(ls.Provider, { value: L, children: h });
565
+ u(N);
566
+ }, [N]), /* @__PURE__ */ L(ls.Provider, { value: N, children: h });
567
567
  };
568
568
  function Z0() {
569
569
  return jf(ls);
@@ -572,46 +572,46 @@ const X0 = ({ documentId: d, pageIndex: h }) => {
572
572
  const [, u] = mn(0), E = Z0();
573
573
  if (!E)
574
574
  return null;
575
- const w = fu(d), { values: R, errors: x, fields: p, setValue: F, showErrors: A } = E, T = In((S) => ({
576
- left: S.bbox.x * ((w == null ? void 0 : w.scale) || 1),
577
- top: S.bbox.y * ((w == null ? void 0 : w.scale) || 1),
578
- width: S.bbox.width * ((w == null ? void 0 : w.scale) || 1),
579
- height: S.bbox.height * ((w == null ? void 0 : w.scale) || 1)
580
- }), [w == null ? void 0 : w.scale]), L = In((S, C) => {
581
- F(S, C), u((ln) => ln + 1);
575
+ const x = fu(d), { values: R, errors: w, fields: p, setValue: F, showErrors: I } = E, T = In((S) => ({
576
+ left: S.bbox.x * ((x == null ? void 0 : x.scale) || 1),
577
+ top: S.bbox.y * ((x == null ? void 0 : x.scale) || 1),
578
+ width: S.bbox.width * ((x == null ? void 0 : x.scale) || 1),
579
+ height: S.bbox.height * ((x == null ? void 0 : x.scale) || 1)
580
+ }), [x == null ? void 0 : x.scale]), N = In((S, D) => {
581
+ F(S, D), u((tn) => tn + 1);
582
582
  }, [F]);
583
- return p.length ? /* @__PURE__ */ O("div", { className: `pdf-forms-layer${A && x && Object.keys(x).length > 0 ? " pdf-forms-error" : ""}`, style: { position: "absolute", top: 0, left: 0, width: "100%", height: "100%" }, children: p.filter((S) => S.pageIndex === h).map((S) => {
584
- const C = T(S);
585
- if (!C) return null;
586
- const ln = R[S.name], H = `${S.pageIndex}-${S.name}-${S.radioValue || ""}`, Y = A && x && x[S.name], on = {
583
+ return p.length ? /* @__PURE__ */ L("div", { className: `pdf-forms-layer${I && w && Object.keys(w).length > 0 ? " pdf-forms-error" : ""}`, style: { position: "absolute", top: 0, left: 0, width: "100%", height: "100%" }, children: p.filter((S) => S.pageIndex === h).map((S) => {
584
+ const D = T(S);
585
+ if (!D) return null;
586
+ const tn = R[S.name], H = `${S.pageIndex}-${S.name}-${S.radioValue || ""}`, Q = I && w && w[S.name], sn = {
587
587
  position: "absolute",
588
- left: C.left,
589
- top: C.top,
590
- width: C.width,
591
- height: C.height
588
+ left: D.left,
589
+ top: D.top,
590
+ width: D.width,
591
+ height: D.height
592
592
  };
593
- let D;
593
+ let C;
594
594
  switch (S.type) {
595
595
  case "text":
596
- D = new D0(S);
596
+ C = new D0(S);
597
597
  break;
598
598
  case "checkbox":
599
- D = new M0(S);
599
+ C = new M0(S);
600
600
  break;
601
601
  case "radiobutton":
602
- D = new U0(S);
602
+ C = new U0(S);
603
603
  break;
604
604
  case "signature":
605
605
  default:
606
- D = new G0(S);
606
+ C = new G0(S);
607
607
  break;
608
608
  }
609
- return D.render({
610
- value: ln,
611
- onChange: (U) => L(S.name, U),
612
- style: on,
609
+ return C.render({
610
+ value: tn,
611
+ onChange: (M) => N(S.name, M),
612
+ style: sn,
613
613
  key: H,
614
- hasError: !!Y,
614
+ hasError: !!Q,
615
615
  readonly: !!S.readonly
616
616
  });
617
617
  }) }) : null;
@@ -628,15 +628,15 @@ var Dt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
628
628
  br.exports;
629
629
  (function(d, h) {
630
630
  (function() {
631
- var u, E = "4.17.21", w = 200, R = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", x = "Expected a function", p = "Invalid `variable` option passed into `_.template`", F = "__lodash_hash_undefined__", A = 500, T = "__lodash_placeholder__", L = 1, S = 2, C = 4, ln = 1, H = 2, Y = 1, on = 2, D = 4, U = 8, fn = 16, J = 32, en = 64, tn = 128, an = 256, rn = 512, N = 30, $ = "...", Q = 800, G = 16, dn = 1, Nn = 2, _e = 3, Fn = 1 / 0, Rn = 9007199254740991, Oe = 17976931348623157e292, Pn = NaN, On = 4294967295, at = On - 1, lu = On >>> 1, he = [
632
- ["ary", tn],
633
- ["bind", Y],
634
- ["bindKey", on],
635
- ["curry", U],
636
- ["curryRight", fn],
637
- ["flip", rn],
638
- ["partial", J],
639
- ["partialRight", en],
631
+ var u, E = "4.17.21", x = 200, R = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", w = "Expected a function", p = "Invalid `variable` option passed into `_.template`", F = "__lodash_hash_undefined__", I = 500, T = "__lodash_placeholder__", N = 1, S = 2, D = 4, tn = 1, H = 2, Q = 1, sn = 2, C = 4, M = 8, un = 16, V = 32, nn = 64, rn = 128, an = 256, on = 512, en = 30, P = "...", X = 800, G = 16, dn = 1, Nn = 2, _e = 3, Fn = 1 / 0, Rn = 9007199254740991, Oe = 17976931348623157e292, Pn = NaN, On = 4294967295, at = On - 1, lu = On >>> 1, he = [
632
+ ["ary", rn],
633
+ ["bind", Q],
634
+ ["bindKey", sn],
635
+ ["curry", M],
636
+ ["curryRight", un],
637
+ ["flip", on],
638
+ ["partial", V],
639
+ ["partialRight", nn],
640
640
  ["rearg", an]
641
641
  ], Le = "[object Arguments]", Ut = "[object Array]", hs = "[object AsyncFunction]", ht = "[object Boolean]", dt = "[object Date]", ds = "[object DOMException]", Bt = "[object Error]", Wt = "[object Function]", cu = "[object GeneratorFunction]", ue = "[object Map]", gt = "[object Number]", gs = "[object Null]", ve = "[object Object]", au = "[object Promise]", ps = "[object Proxy]", pt = "[object RegExp]", oe = "[object Set]", _t = "[object String]", Gt = "[object Symbol]", _s = "[object Undefined]", vt = "[object WeakMap]", vs = "[object WeakSet]", mt = "[object ArrayBuffer]", Ve = "[object DataView]", Fr = "[object Float32Array]", yr = "[object Float64Array]", Cr = "[object Int8Array]", Dr = "[object Int16Array]", Mr = "[object Int32Array]", Ur = "[object Uint8Array]", Br = "[object Uint8ClampedArray]", Wr = "[object Uint16Array]", Gr = "[object Uint32Array]", ms = /\b__p \+= '';/g, ws = /\b(__p \+=) '' \+/g, xs = /(__e\(.*?\)|\b__t\)) \+\n'';/g, hu = /&(?:amp|lt|gt|quot|#39);/g, du = /[&<>"']/g, As = RegExp(hu.source), Is = RegExp(du.source), Ts = /<%-([\s\S]+?)%>/g, Es = /<%([\s\S]+?)%>/g, gu = /<%=([\s\S]+?)%>/g, Ss = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Rs = /^\w*$/, Ps = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, zr = /[\\^$.*+?()[\]{}|]/g, Os = RegExp(zr.source), Hr = /^\s+/, Ls = /\s/, bs = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Ns = /\{\n\/\* \[wrapped with (.+)\] \*/, Fs = /,? & /, ys = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Cs = /[()=,{}\[\]\/\s]/, Ds = /\\(\\)?/g, Ms = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, pu = /\w*$/, Us = /^[-+]0x[0-9a-f]+$/i, Bs = /^0b[01]+$/i, Ws = /^\[object .+?Constructor\]$/, Gs = /^0o[0-7]+$/i, zs = /^(?:0|[1-9]\d*)$/, Hs = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, zt = /($^)/, $s = /['\n\r\u2028\u2029\\]/g, Ht = "\\ud800-\\udfff", qs = "\\u0300-\\u036f", Ks = "\\ufe20-\\ufe2f", Zs = "\\u20d0-\\u20ff", _u = qs + Ks + Zs, vu = "\\u2700-\\u27bf", mu = "a-z\\xdf-\\xf6\\xf8-\\xff", Xs = "\\xac\\xb1\\xd7\\xf7", ks = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Ys = "\\u2000-\\u206f", Vs = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", wu = "A-Z\\xc0-\\xd6\\xd8-\\xde", xu = "\\ufe0e\\ufe0f", Au = Xs + ks + Ys + Vs, $r = "['’]", Js = "[" + Ht + "]", Iu = "[" + Au + "]", $t = "[" + _u + "]", Tu = "\\d+", Qs = "[" + vu + "]", Eu = "[" + mu + "]", Su = "[^" + Ht + Au + Tu + vu + mu + wu + "]", qr = "\\ud83c[\\udffb-\\udfff]", js = "(?:" + $t + "|" + qr + ")", Ru = "[^" + Ht + "]", Kr = "(?:\\ud83c[\\udde6-\\uddff]){2}", Zr = "[\\ud800-\\udbff][\\udc00-\\udfff]", Je = "[" + wu + "]", Pu = "\\u200d", Ou = "(?:" + Eu + "|" + Su + ")", nl = "(?:" + Je + "|" + Su + ")", Lu = "(?:" + $r + "(?:d|ll|m|re|s|t|ve))?", bu = "(?:" + $r + "(?:D|LL|M|RE|S|T|VE))?", Nu = js + "?", Fu = "[" + xu + "]?", el = "(?:" + Pu + "(?:" + [Ru, Kr, Zr].join("|") + ")" + Fu + Nu + ")*", tl = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", rl = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", yu = Fu + Nu + el, il = "(?:" + [Qs, Kr, Zr].join("|") + ")" + yu, ul = "(?:" + [Ru + $t + "?", $t, Kr, Zr, Js].join("|") + ")", ol = RegExp($r, "g"), fl = RegExp($t, "g"), Xr = RegExp(qr + "(?=" + qr + ")|" + ul + yu, "g"), sl = RegExp([
642
642
  Je + "?" + Eu + "+" + Lu + "(?=" + [Iu, Je, "$"].join("|") + ")",
@@ -915,8 +915,8 @@ br.exports;
915
915
  return c.apply(_, g);
916
916
  }
917
917
  function xl(c, _, g, b) {
918
- for (var q = -1, un = c == null ? 0 : c.length; ++q < un; ) {
919
- var Tn = c[q];
918
+ for (var $ = -1, fn = c == null ? 0 : c.length; ++$ < fn; ) {
919
+ var Tn = c[$];
920
920
  _(b, Tn, g(Tn), c);
921
921
  }
922
922
  return b;
@@ -938,42 +938,42 @@ br.exports;
938
938
  return !0;
939
939
  }
940
940
  function be(c, _) {
941
- for (var g = -1, b = c == null ? 0 : c.length, q = 0, un = []; ++g < b; ) {
941
+ for (var g = -1, b = c == null ? 0 : c.length, $ = 0, fn = []; ++g < b; ) {
942
942
  var Tn = c[g];
943
- _(Tn, g, c) && (un[q++] = Tn);
943
+ _(Tn, g, c) && (fn[$++] = Tn);
944
944
  }
945
- return un;
945
+ return fn;
946
946
  }
947
947
  function qt(c, _) {
948
948
  var g = c == null ? 0 : c.length;
949
949
  return !!g && Qe(c, _, 0) > -1;
950
950
  }
951
951
  function Vr(c, _, g) {
952
- for (var b = -1, q = c == null ? 0 : c.length; ++b < q; )
952
+ for (var b = -1, $ = c == null ? 0 : c.length; ++b < $; )
953
953
  if (g(_, c[b]))
954
954
  return !0;
955
955
  return !1;
956
956
  }
957
957
  function _n(c, _) {
958
- for (var g = -1, b = c == null ? 0 : c.length, q = Array(b); ++g < b; )
959
- q[g] = _(c[g], g, c);
960
- return q;
958
+ for (var g = -1, b = c == null ? 0 : c.length, $ = Array(b); ++g < b; )
959
+ $[g] = _(c[g], g, c);
960
+ return $;
961
961
  }
962
962
  function Ne(c, _) {
963
- for (var g = -1, b = _.length, q = c.length; ++g < b; )
964
- c[q + g] = _[g];
963
+ for (var g = -1, b = _.length, $ = c.length; ++g < b; )
964
+ c[$ + g] = _[g];
965
965
  return c;
966
966
  }
967
967
  function Jr(c, _, g, b) {
968
- var q = -1, un = c == null ? 0 : c.length;
969
- for (b && un && (g = c[++q]); ++q < un; )
970
- g = _(g, c[q], q, c);
968
+ var $ = -1, fn = c == null ? 0 : c.length;
969
+ for (b && fn && (g = c[++$]); ++$ < fn; )
970
+ g = _(g, c[$], $, c);
971
971
  return g;
972
972
  }
973
973
  function Il(c, _, g, b) {
974
- var q = c == null ? 0 : c.length;
975
- for (b && q && (g = c[--q]); q--; )
976
- g = _(g, c[q], q, c);
974
+ var $ = c == null ? 0 : c.length;
975
+ for (b && $ && (g = c[--$]); $--; )
976
+ g = _(g, c[$], $, c);
977
977
  return g;
978
978
  }
979
979
  function Qr(c, _) {
@@ -991,24 +991,24 @@ br.exports;
991
991
  }
992
992
  function $u(c, _, g) {
993
993
  var b;
994
- return g(c, function(q, un, Tn) {
995
- if (_(q, un, Tn))
996
- return b = un, !1;
994
+ return g(c, function($, fn, Tn) {
995
+ if (_($, fn, Tn))
996
+ return b = fn, !1;
997
997
  }), b;
998
998
  }
999
999
  function Kt(c, _, g, b) {
1000
- for (var q = c.length, un = g + (b ? 1 : -1); b ? un-- : ++un < q; )
1001
- if (_(c[un], un, c))
1002
- return un;
1000
+ for (var $ = c.length, fn = g + (b ? 1 : -1); b ? fn-- : ++fn < $; )
1001
+ if (_(c[fn], fn, c))
1002
+ return fn;
1003
1003
  return -1;
1004
1004
  }
1005
1005
  function Qe(c, _, g) {
1006
1006
  return _ === _ ? Ul(c, _, g) : Kt(c, qu, g);
1007
1007
  }
1008
1008
  function Rl(c, _, g, b) {
1009
- for (var q = g - 1, un = c.length; ++q < un; )
1010
- if (b(c[q], _))
1011
- return q;
1009
+ for (var $ = g - 1, fn = c.length; ++$ < fn; )
1010
+ if (b(c[$], _))
1011
+ return $;
1012
1012
  return -1;
1013
1013
  }
1014
1014
  function qu(c) {
@@ -1028,9 +1028,9 @@ br.exports;
1028
1028
  return c == null ? u : c[_];
1029
1029
  };
1030
1030
  }
1031
- function Zu(c, _, g, b, q) {
1032
- return q(c, function(un, Tn, hn) {
1033
- g = b ? (b = !1, un) : _(g, un, Tn, hn);
1031
+ function Zu(c, _, g, b, $) {
1032
+ return $(c, function(fn, Tn, hn) {
1033
+ g = b ? (b = !1, fn) : _(g, fn, Tn, hn);
1034
1034
  }), g;
1035
1035
  }
1036
1036
  function Pl(c, _) {
@@ -1040,9 +1040,9 @@ br.exports;
1040
1040
  return c;
1041
1041
  }
1042
1042
  function ei(c, _) {
1043
- for (var g, b = -1, q = c.length; ++b < q; ) {
1044
- var un = _(c[b]);
1045
- un !== u && (g = g === u ? un : g + un);
1043
+ for (var g, b = -1, $ = c.length; ++b < $; ) {
1044
+ var fn = _(c[b]);
1045
+ fn !== u && (g = g === u ? fn : g + fn);
1046
1046
  }
1047
1047
  return g;
1048
1048
  }
@@ -1107,8 +1107,8 @@ br.exports;
1107
1107
  }
1108
1108
  function ii(c) {
1109
1109
  var _ = -1, g = Array(c.size);
1110
- return c.forEach(function(b, q) {
1111
- g[++_] = [q, b];
1110
+ return c.forEach(function(b, $) {
1111
+ g[++_] = [$, b];
1112
1112
  }), g;
1113
1113
  }
1114
1114
  function Vu(c, _) {
@@ -1117,11 +1117,11 @@ br.exports;
1117
1117
  };
1118
1118
  }
1119
1119
  function Fe(c, _) {
1120
- for (var g = -1, b = c.length, q = 0, un = []; ++g < b; ) {
1120
+ for (var g = -1, b = c.length, $ = 0, fn = []; ++g < b; ) {
1121
1121
  var Tn = c[g];
1122
- (Tn === _ || Tn === T) && (c[g] = T, un[q++] = g);
1122
+ (Tn === _ || Tn === T) && (c[g] = T, fn[$++] = g);
1123
1123
  }
1124
- return un;
1124
+ return fn;
1125
1125
  }
1126
1126
  function Zt(c) {
1127
1127
  var _ = -1, g = Array(c.size);
@@ -1136,7 +1136,7 @@ br.exports;
1136
1136
  }), g;
1137
1137
  }
1138
1138
  function Ul(c, _, g) {
1139
- for (var b = g - 1, q = c.length; ++b < q; )
1139
+ for (var b = g - 1, $ = c.length; ++b < $; )
1140
1140
  if (c[b] === _)
1141
1141
  return b;
1142
1142
  return -1;
@@ -1172,7 +1172,7 @@ br.exports;
1172
1172
  }
1173
1173
  var $l = function c(_) {
1174
1174
  _ = _ == null ? Ln : et.defaults(Ln.Object(), _, et.pick(Ln, al));
1175
- var g = _.Array, b = _.Date, q = _.Error, un = _.Function, Tn = _.Math, hn = _.Object, ui = _.RegExp, ql = _.String, jn = _.TypeError, Xt = g.prototype, Kl = un.prototype, tt = hn.prototype, kt = _["__core-js_shared__"], Yt = Kl.toString, cn = tt.hasOwnProperty, Zl = 0, Qu = function() {
1175
+ var g = _.Array, b = _.Date, $ = _.Error, fn = _.Function, Tn = _.Math, hn = _.Object, ui = _.RegExp, ql = _.String, jn = _.TypeError, Xt = g.prototype, Kl = fn.prototype, tt = hn.prototype, kt = _["__core-js_shared__"], Yt = Kl.toString, cn = tt.hasOwnProperty, Zl = 0, Qu = function() {
1176
1176
  var n = /[^.]+$/.exec(kt && kt.keys && kt.keys.IE_PROTO || "");
1177
1177
  return n ? "Symbol(src)_1." + n : "";
1178
1178
  }(), Vt = tt.toString, Xl = Yt.call(hn), kl = Ln._, Yl = ui(
@@ -1185,7 +1185,7 @@ br.exports;
1185
1185
  }
1186
1186
  }(), Vl = _.clearTimeout !== Ln.clearTimeout && _.clearTimeout, Jl = b && b.now !== Ln.Date.now && b.now, Ql = _.setTimeout !== Ln.setTimeout && _.setTimeout, tr = Tn.ceil, rr = Tn.floor, oi = hn.getOwnPropertySymbols, jl = Jt ? Jt.isBuffer : u, ro = _.isFinite, nc = Xt.join, ec = Vu(hn.keys, hn), En = Tn.max, yn = Tn.min, tc = b.now, rc = _.parseInt, io = Tn.random, ic = Xt.reverse, fi = Ke(_, "DataView"), At = Ke(_, "Map"), si = Ke(_, "Promise"), rt = Ke(_, "Set"), It = Ke(_, "WeakMap"), Tt = Ke(hn, "create"), ir = It && new It(), it = {}, uc = Ze(fi), oc = Ze(At), fc = Ze(si), sc = Ze(rt), lc = Ze(It), ur = ye ? ye.prototype : u, Et = ur ? ur.valueOf : u, uo = ur ? ur.toString : u;
1187
1187
  function o(n) {
1188
- if (wn(n) && !K(n) && !(n instanceof j)) {
1188
+ if (wn(n) && !q(n) && !(n instanceof J)) {
1189
1189
  if (n instanceof ne)
1190
1190
  return n;
1191
1191
  if (cn.call(n, "__wrapped__"))
@@ -1256,31 +1256,31 @@ br.exports;
1256
1256
  _: o
1257
1257
  }
1258
1258
  }, o.prototype = or.prototype, o.prototype.constructor = o, ne.prototype = ut(or.prototype), ne.prototype.constructor = ne;
1259
- function j(n) {
1259
+ function J(n) {
1260
1260
  this.__wrapped__ = n, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = On, this.__views__ = [];
1261
1261
  }
1262
1262
  function cc() {
1263
- var n = new j(this.__wrapped__);
1263
+ var n = new J(this.__wrapped__);
1264
1264
  return n.__actions__ = Wn(this.__actions__), n.__dir__ = this.__dir__, n.__filtered__ = this.__filtered__, n.__iteratees__ = Wn(this.__iteratees__), n.__takeCount__ = this.__takeCount__, n.__views__ = Wn(this.__views__), n;
1265
1265
  }
1266
1266
  function ac() {
1267
1267
  if (this.__filtered__) {
1268
- var n = new j(this);
1268
+ var n = new J(this);
1269
1269
  n.__dir__ = -1, n.__filtered__ = !0;
1270
1270
  } else
1271
1271
  n = this.clone(), n.__dir__ *= -1;
1272
1272
  return n;
1273
1273
  }
1274
1274
  function hc() {
1275
- var n = this.__wrapped__.value(), e = this.__dir__, t = K(n), r = e < 0, i = t ? n.length : 0, f = Ea(0, i, this.__views__), s = f.start, l = f.end, a = l - s, v = r ? l : s - 1, m = this.__iteratees__, I = m.length, P = 0, y = yn(a, this.__takeCount__);
1275
+ var n = this.__wrapped__.value(), e = this.__dir__, t = q(n), r = e < 0, i = t ? n.length : 0, f = Ea(0, i, this.__views__), s = f.start, l = f.end, a = l - s, v = r ? l : s - 1, m = this.__iteratees__, A = m.length, O = 0, y = yn(a, this.__takeCount__);
1276
1276
  if (!t || !r && i == a && y == a)
1277
1277
  return bo(n, this.__actions__);
1278
1278
  var B = [];
1279
1279
  n:
1280
- for (; a-- && P < y; ) {
1280
+ for (; a-- && O < y; ) {
1281
1281
  v += e;
1282
- for (var X = -1, W = n[v]; ++X < I; ) {
1283
- var V = m[X], nn = V.iteratee, kn = V.type, Bn = nn(W);
1282
+ for (var Z = -1, W = n[v]; ++Z < A; ) {
1283
+ var Y = m[Z], j = Y.iteratee, kn = Y.type, Bn = j(W);
1284
1284
  if (kn == Nn)
1285
1285
  W = Bn;
1286
1286
  else if (!Bn) {
@@ -1289,11 +1289,11 @@ br.exports;
1289
1289
  break n;
1290
1290
  }
1291
1291
  }
1292
- B[P++] = W;
1292
+ B[O++] = W;
1293
1293
  }
1294
1294
  return B;
1295
1295
  }
1296
- j.prototype = ut(or.prototype), j.prototype.constructor = j;
1296
+ J.prototype = ut(or.prototype), J.prototype.constructor = J;
1297
1297
  function ze(n) {
1298
1298
  var e = -1, t = n == null ? 0 : n.length;
1299
1299
  for (this.clear(); ++e < t; ) {
@@ -1416,7 +1416,7 @@ br.exports;
1416
1416
  var t = this.__data__;
1417
1417
  if (t instanceof me) {
1418
1418
  var r = t.__data__;
1419
- if (!At || r.length < w - 1)
1419
+ if (!At || r.length < x - 1)
1420
1420
  return r.push([n, e]), this.size = ++t.size, this;
1421
1421
  t = this.__data__ = new we(r);
1422
1422
  }
@@ -1424,7 +1424,7 @@ br.exports;
1424
1424
  }
1425
1425
  se.prototype.clear = bc, se.prototype.delete = Nc, se.prototype.get = Fc, se.prototype.has = yc, se.prototype.set = Cc;
1426
1426
  function oo(n, e) {
1427
- var t = K(n), r = !t && Xe(n), i = !t && !r && Be(n), f = !t && !r && !i && lt(n), s = t || r || i || f, l = s ? ti(n.length, ql) : [], a = l.length;
1427
+ var t = q(n), r = !t && Xe(n), i = !t && !r && Be(n), f = !t && !r && !i && lt(n), s = t || r || i || f, l = s ? ti(n.length, ql) : [], a = l.length;
1428
1428
  for (var v in n)
1429
1429
  (e || cn.call(n, v)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
1430
1430
  (v == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
@@ -1484,26 +1484,26 @@ br.exports;
1484
1484
  return n === n && (t !== u && (n = n <= t ? n : t), e !== u && (n = n >= e ? n : e)), n;
1485
1485
  }
1486
1486
  function ee(n, e, t, r, i, f) {
1487
- var s, l = e & L, a = e & S, v = e & C;
1487
+ var s, l = e & N, a = e & S, v = e & D;
1488
1488
  if (t && (s = i ? t(n, r, i, f) : t(n)), s !== u)
1489
1489
  return s;
1490
1490
  if (!vn(n))
1491
1491
  return n;
1492
- var m = K(n);
1492
+ var m = q(n);
1493
1493
  if (m) {
1494
1494
  if (s = Ra(n), !l)
1495
1495
  return Wn(n, s);
1496
1496
  } else {
1497
- var I = Cn(n), P = I == Wt || I == cu;
1497
+ var A = Cn(n), O = A == Wt || A == cu;
1498
1498
  if (Be(n))
1499
1499
  return yo(n, l);
1500
- if (I == ve || I == Le || P && !i) {
1501
- if (s = a || P ? {} : Qo(n), !l)
1500
+ if (A == ve || A == Le || O && !i) {
1501
+ if (s = a || O ? {} : Qo(n), !l)
1502
1502
  return a ? pa(n, Bc(s, n)) : ga(n, so(s, n));
1503
1503
  } else {
1504
- if (!gn[I])
1504
+ if (!gn[A])
1505
1505
  return i ? n : {};
1506
- s = Pa(n, I, l);
1506
+ s = Pa(n, A, l);
1507
1507
  }
1508
1508
  }
1509
1509
  f || (f = new se());
@@ -1512,12 +1512,12 @@ br.exports;
1512
1512
  return y;
1513
1513
  f.set(n, s), Of(n) ? n.forEach(function(W) {
1514
1514
  s.add(ee(W, e, t, W, n, f));
1515
- }) : Rf(n) && n.forEach(function(W, V) {
1516
- s.set(V, ee(W, e, t, V, n, f));
1515
+ }) : Rf(n) && n.forEach(function(W, Y) {
1516
+ s.set(Y, ee(W, e, t, Y, n, f));
1517
1517
  });
1518
- var B = v ? a ? bi : Li : a ? zn : Sn, X = m ? u : B(n);
1519
- return Qn(X || n, function(W, V) {
1520
- X && (V = W, W = n[V]), St(s, V, ee(W, e, t, V, n, f));
1518
+ var B = v ? a ? bi : Li : a ? zn : Sn, Z = m ? u : B(n);
1519
+ return Qn(Z || n, function(W, Y) {
1520
+ Z && (Y = W, W = n[Y]), St(s, Y, ee(W, e, t, Y, n, f));
1521
1521
  }), s;
1522
1522
  }
1523
1523
  function Wc(n) {
@@ -1539,7 +1539,7 @@ br.exports;
1539
1539
  }
1540
1540
  function co(n, e, t) {
1541
1541
  if (typeof n != "function")
1542
- throw new jn(x);
1542
+ throw new jn(w);
1543
1543
  return Ft(function() {
1544
1544
  n.apply(u, t);
1545
1545
  }, e);
@@ -1548,16 +1548,16 @@ br.exports;
1548
1548
  var i = -1, f = qt, s = !0, l = n.length, a = [], v = e.length;
1549
1549
  if (!l)
1550
1550
  return a;
1551
- t && (e = _n(e, Kn(t))), r ? (f = Vr, s = !1) : e.length >= w && (f = wt, s = !1, e = new He(e));
1551
+ t && (e = _n(e, Kn(t))), r ? (f = Vr, s = !1) : e.length >= x && (f = wt, s = !1, e = new He(e));
1552
1552
  n:
1553
1553
  for (; ++i < l; ) {
1554
- var m = n[i], I = t == null ? m : t(m);
1555
- if (m = r || m !== 0 ? m : 0, s && I === I) {
1556
- for (var P = v; P--; )
1557
- if (e[P] === I)
1554
+ var m = n[i], A = t == null ? m : t(m);
1555
+ if (m = r || m !== 0 ? m : 0, s && A === A) {
1556
+ for (var O = v; O--; )
1557
+ if (e[O] === A)
1558
1558
  continue n;
1559
1559
  a.push(m);
1560
- } else f(e, I, r) || a.push(m);
1560
+ } else f(e, A, r) || a.push(m);
1561
1561
  }
1562
1562
  return a;
1563
1563
  }
@@ -1578,7 +1578,7 @@ br.exports;
1578
1578
  }
1579
1579
  function zc(n, e, t, r) {
1580
1580
  var i = n.length;
1581
- for (t = Z(t), t < 0 && (t = -t > i ? 0 : i + t), r = r === u || r > i ? i : Z(r), r < 0 && (r += i), r = t > r ? 0 : bf(r); t < r; )
1581
+ for (t = K(t), t < 0 && (t = -t > i ? 0 : i + t), r = r === u || r > i ? i : K(r), r < 0 && (r += i), r = t > r ? 0 : bf(r); t < r; )
1582
1582
  n[t++] = e;
1583
1583
  return n;
1584
1584
  }
@@ -1616,7 +1616,7 @@ br.exports;
1616
1616
  }
1617
1617
  function po(n, e, t) {
1618
1618
  var r = e(n);
1619
- return K(n) ? r : Ne(r, t(n));
1619
+ return q(n) ? r : Ne(r, t(n));
1620
1620
  }
1621
1621
  function Mn(n) {
1622
1622
  return n == null ? n === u ? _s : gs : Ge && Ge in hn(n) ? Ta(n) : Ma(n);
@@ -1639,17 +1639,17 @@ br.exports;
1639
1639
  s && e && (m = _n(m, Kn(e))), a = yn(m.length, a), l[s] = !t && (e || i >= 120 && m.length >= 120) ? new He(s && m) : u;
1640
1640
  }
1641
1641
  m = n[0];
1642
- var I = -1, P = l[0];
1642
+ var A = -1, O = l[0];
1643
1643
  n:
1644
- for (; ++I < i && v.length < a; ) {
1645
- var y = m[I], B = e ? e(y) : y;
1646
- if (y = t || y !== 0 ? y : 0, !(P ? wt(P, B) : r(v, B, t))) {
1644
+ for (; ++A < i && v.length < a; ) {
1645
+ var y = m[A], B = e ? e(y) : y;
1646
+ if (y = t || y !== 0 ? y : 0, !(O ? wt(O, B) : r(v, B, t))) {
1647
1647
  for (s = f; --s; ) {
1648
- var X = l[s];
1649
- if (!(X ? wt(X, B) : r(n[s], B, t)))
1648
+ var Z = l[s];
1649
+ if (!(Z ? wt(Z, B) : r(n[s], B, t)))
1650
1650
  continue n;
1651
1651
  }
1652
- P && P.push(B), v.push(y);
1652
+ O && O.push(B), v.push(y);
1653
1653
  }
1654
1654
  }
1655
1655
  return v;
@@ -1677,24 +1677,24 @@ br.exports;
1677
1677
  return n === e ? !0 : n == null || e == null || !wn(n) && !wn(e) ? n !== n && e !== e : kc(n, e, t, r, Ot, i);
1678
1678
  }
1679
1679
  function kc(n, e, t, r, i, f) {
1680
- var s = K(n), l = K(e), a = s ? Ut : Cn(n), v = l ? Ut : Cn(e);
1680
+ var s = q(n), l = q(e), a = s ? Ut : Cn(n), v = l ? Ut : Cn(e);
1681
1681
  a = a == Le ? ve : a, v = v == Le ? ve : v;
1682
- var m = a == ve, I = v == ve, P = a == v;
1683
- if (P && Be(n)) {
1682
+ var m = a == ve, A = v == ve, O = a == v;
1683
+ if (O && Be(n)) {
1684
1684
  if (!Be(e))
1685
1685
  return !1;
1686
1686
  s = !0, m = !1;
1687
1687
  }
1688
- if (P && !m)
1688
+ if (O && !m)
1689
1689
  return f || (f = new se()), s || lt(n) ? Yo(n, e, t, r, i, f) : Aa(n, e, a, t, r, i, f);
1690
- if (!(t & ln)) {
1691
- var y = m && cn.call(n, "__wrapped__"), B = I && cn.call(e, "__wrapped__");
1690
+ if (!(t & tn)) {
1691
+ var y = m && cn.call(n, "__wrapped__"), B = A && cn.call(e, "__wrapped__");
1692
1692
  if (y || B) {
1693
- var X = y ? n.value() : n, W = B ? e.value() : e;
1694
- return f || (f = new se()), i(X, W, t, r, f);
1693
+ var Z = y ? n.value() : n, W = B ? e.value() : e;
1694
+ return f || (f = new se()), i(Z, W, t, r, f);
1695
1695
  }
1696
1696
  }
1697
- return P ? (f || (f = new se()), Ia(n, e, t, r, i, f)) : !1;
1697
+ return O ? (f || (f = new se()), Ia(n, e, t, r, i, f)) : !1;
1698
1698
  }
1699
1699
  function Yc(n) {
1700
1700
  return wn(n) && Cn(n) == ue;
@@ -1715,10 +1715,10 @@ br.exports;
1715
1715
  if (v === u && !(a in n))
1716
1716
  return !1;
1717
1717
  } else {
1718
- var I = new se();
1718
+ var A = new se();
1719
1719
  if (r)
1720
- var P = r(v, m, a, n, e, I);
1721
- if (!(P === u ? Ot(m, v, ln | H, r, I) : P))
1720
+ var O = r(v, m, a, n, e, A);
1721
+ if (!(O === u ? Ot(m, v, tn | H, r, A) : O))
1722
1722
  return !1;
1723
1723
  }
1724
1724
  }
@@ -1740,7 +1740,7 @@ br.exports;
1740
1740
  return wn(n) && Rr(n.length) && !!pn[Mn(n)];
1741
1741
  }
1742
1742
  function mo(n) {
1743
- return typeof n == "function" ? n : n == null ? Hn : typeof n == "object" ? K(n) ? Ao(n[0], n[1]) : xo(n) : zf(n);
1743
+ return typeof n == "function" ? n : n == null ? Hn : typeof n == "object" ? q(n) ? Ao(n[0], n[1]) : xo(n) : zf(n);
1744
1744
  }
1745
1745
  function _i(n) {
1746
1746
  if (!Nt(n))
@@ -1776,7 +1776,7 @@ br.exports;
1776
1776
  function Ao(n, e) {
1777
1777
  return Ci(n) && jo(e) ? nf(pe(n), e) : function(t) {
1778
1778
  var r = qi(t, n);
1779
- return r === u && r === e ? Ki(t, n) : Ot(e, r, ln | H);
1779
+ return r === u && r === e ? Ki(t, n) : Ot(e, r, tn | H);
1780
1780
  };
1781
1781
  }
1782
1782
  function cr(n, e, t, r, i) {
@@ -1795,12 +1795,12 @@ br.exports;
1795
1795
  li(n, t, v);
1796
1796
  return;
1797
1797
  }
1798
- var m = f ? f(l, a, t + "", n, e, s) : u, I = m === u;
1799
- if (I) {
1800
- var P = K(a), y = !P && Be(a), B = !P && !y && lt(a);
1801
- m = a, P || y || B ? K(l) ? m = l : xn(l) ? m = Wn(l) : y ? (I = !1, m = yo(a, !0)) : B ? (I = !1, m = Co(a, !0)) : m = [] : yt(a) || Xe(a) ? (m = l, Xe(l) ? m = Nf(l) : (!vn(l) || Ee(l)) && (m = Qo(a))) : I = !1;
1798
+ var m = f ? f(l, a, t + "", n, e, s) : u, A = m === u;
1799
+ if (A) {
1800
+ var O = q(a), y = !O && Be(a), B = !O && !y && lt(a);
1801
+ m = a, O || y || B ? q(l) ? m = l : xn(l) ? m = Wn(l) : y ? (A = !1, m = yo(a, !0)) : B ? (A = !1, m = Co(a, !0)) : m = [] : yt(a) || Xe(a) ? (m = l, Xe(l) ? m = Nf(l) : (!vn(l) || Ee(l)) && (m = Qo(a))) : A = !1;
1802
1802
  }
1803
- I && (s.set(a, m), i(m, a, r, f, s), s.delete(a)), li(n, t, m);
1803
+ A && (s.set(a, m), i(m, a, r, f, s), s.delete(a)), li(n, t, m);
1804
1804
  }
1805
1805
  function Io(n, e) {
1806
1806
  var t = n.length;
@@ -1809,12 +1809,12 @@ br.exports;
1809
1809
  }
1810
1810
  function To(n, e, t) {
1811
1811
  e.length ? e = _n(e, function(f) {
1812
- return K(f) ? function(s) {
1812
+ return q(f) ? function(s) {
1813
1813
  return qe(s, f.length === 1 ? f[0] : f);
1814
1814
  } : f;
1815
1815
  }) : e = [Hn];
1816
1816
  var r = -1;
1817
- e = _n(e, Kn(M()));
1817
+ e = _n(e, Kn(U()));
1818
1818
  var i = wo(n, function(f, s, l) {
1819
1819
  var a = _n(e, function(v) {
1820
1820
  return v(f);
@@ -1945,10 +1945,10 @@ br.exports;
1945
1945
  return 0;
1946
1946
  e = t(e);
1947
1947
  for (var s = e !== e, l = e === null, a = Xn(e), v = e === u; i < f; ) {
1948
- var m = rr((i + f) / 2), I = t(n[m]), P = I !== u, y = I === null, B = I === I, X = Xn(I);
1948
+ var m = rr((i + f) / 2), A = t(n[m]), O = A !== u, y = A === null, B = A === A, Z = Xn(A);
1949
1949
  if (s)
1950
1950
  var W = r || B;
1951
- else v ? W = B && (r || P) : l ? W = B && P && (r || !y) : a ? W = B && P && !y && (r || !X) : y || X ? W = !1 : W = r ? I <= e : I < e;
1951
+ else v ? W = B && (r || O) : l ? W = B && O && (r || !y) : a ? W = B && O && !y && (r || !Z) : y || Z ? W = !1 : W = r ? A <= e : A < e;
1952
1952
  W ? i = m + 1 : f = m;
1953
1953
  }
1954
1954
  return yn(f, at);
@@ -1969,7 +1969,7 @@ br.exports;
1969
1969
  function Zn(n) {
1970
1970
  if (typeof n == "string")
1971
1971
  return n;
1972
- if (K(n))
1972
+ if (q(n))
1973
1973
  return _n(n, Zn) + "";
1974
1974
  if (Xn(n))
1975
1975
  return uo ? uo.call(n) : "";
@@ -1980,7 +1980,7 @@ br.exports;
1980
1980
  var r = -1, i = qt, f = n.length, s = !0, l = [], a = l;
1981
1981
  if (t)
1982
1982
  s = !1, i = Vr;
1983
- else if (f >= w) {
1983
+ else if (f >= x) {
1984
1984
  var v = e ? null : wa(n);
1985
1985
  if (v)
1986
1986
  return Zt(v);
@@ -1989,13 +1989,13 @@ br.exports;
1989
1989
  a = e ? [] : l;
1990
1990
  n:
1991
1991
  for (; ++r < f; ) {
1992
- var m = n[r], I = e ? e(m) : m;
1993
- if (m = t || m !== 0 ? m : 0, s && I === I) {
1994
- for (var P = a.length; P--; )
1995
- if (a[P] === I)
1992
+ var m = n[r], A = e ? e(m) : m;
1993
+ if (m = t || m !== 0 ? m : 0, s && A === A) {
1994
+ for (var O = a.length; O--; )
1995
+ if (a[O] === A)
1996
1996
  continue n;
1997
- e && a.push(I), l.push(m);
1998
- } else i(a, I, t) || (a !== l && a.push(I), l.push(m));
1997
+ e && a.push(A), l.push(m);
1998
+ } else i(a, A, t) || (a !== l && a.push(A), l.push(m));
1999
1999
  }
2000
2000
  return l;
2001
2001
  }
@@ -2012,7 +2012,7 @@ br.exports;
2012
2012
  }
2013
2013
  function bo(n, e) {
2014
2014
  var t = n;
2015
- return t instanceof j && (t = t.value()), Jr(e, function(r, i) {
2015
+ return t instanceof J && (t = t.value()), Jr(e, function(r, i) {
2016
2016
  return i.func.apply(i.thisArg, Ne([r], i.args));
2017
2017
  }, t);
2018
2018
  }
@@ -2039,7 +2039,7 @@ br.exports;
2039
2039
  return typeof n == "function" ? n : Hn;
2040
2040
  }
2041
2041
  function Me(n, e) {
2042
- return K(n) ? n : Ci(n, e) ? [n] : ff(sn(n));
2042
+ return q(n) ? n : Ci(n, e) ? [n] : ff(ln(n));
2043
2043
  }
2044
2044
  var la = k;
2045
2045
  function Ue(n, e, t) {
@@ -2097,22 +2097,22 @@ br.exports;
2097
2097
  return n.index - e.index;
2098
2098
  }
2099
2099
  function Mo(n, e, t, r) {
2100
- for (var i = -1, f = n.length, s = t.length, l = -1, a = e.length, v = En(f - s, 0), m = g(a + v), I = !r; ++l < a; )
2100
+ for (var i = -1, f = n.length, s = t.length, l = -1, a = e.length, v = En(f - s, 0), m = g(a + v), A = !r; ++l < a; )
2101
2101
  m[l] = e[l];
2102
2102
  for (; ++i < s; )
2103
- (I || i < f) && (m[t[i]] = n[i]);
2103
+ (A || i < f) && (m[t[i]] = n[i]);
2104
2104
  for (; v--; )
2105
2105
  m[l++] = n[i++];
2106
2106
  return m;
2107
2107
  }
2108
2108
  function Uo(n, e, t, r) {
2109
- for (var i = -1, f = n.length, s = -1, l = t.length, a = -1, v = e.length, m = En(f - l, 0), I = g(m + v), P = !r; ++i < m; )
2110
- I[i] = n[i];
2109
+ for (var i = -1, f = n.length, s = -1, l = t.length, a = -1, v = e.length, m = En(f - l, 0), A = g(m + v), O = !r; ++i < m; )
2110
+ A[i] = n[i];
2111
2111
  for (var y = i; ++a < v; )
2112
- I[y + a] = e[a];
2112
+ A[y + a] = e[a];
2113
2113
  for (; ++s < l; )
2114
- (P || i < f) && (I[y + t[s]] = n[i++]);
2115
- return I;
2114
+ (O || i < f) && (A[y + t[s]] = n[i++]);
2115
+ return A;
2116
2116
  }
2117
2117
  function Wn(n, e) {
2118
2118
  var t = -1, r = n.length;
@@ -2137,8 +2137,8 @@ br.exports;
2137
2137
  }
2138
2138
  function dr(n, e) {
2139
2139
  return function(t, r) {
2140
- var i = K(t) ? xl : Uc, f = e ? e() : {};
2141
- return i(t, n, M(r, 2), f);
2140
+ var i = q(t) ? xl : Uc, f = e ? e() : {};
2141
+ return i(t, n, U(r, 2), f);
2142
2142
  };
2143
2143
  }
2144
2144
  function ot(n) {
@@ -2173,7 +2173,7 @@ br.exports;
2173
2173
  };
2174
2174
  }
2175
2175
  function _a(n, e, t) {
2176
- var r = e & Y, i = bt(n);
2176
+ var r = e & Q, i = bt(n);
2177
2177
  function f() {
2178
2178
  var s = this && this !== Ln && this instanceof f ? i : n;
2179
2179
  return s.apply(r ? t : this, arguments);
@@ -2182,7 +2182,7 @@ br.exports;
2182
2182
  }
2183
2183
  function Go(n) {
2184
2184
  return function(e) {
2185
- e = sn(e);
2185
+ e = ln(e);
2186
2186
  var t = je(e) ? fe(e) : u, r = t ? t[0] : e.charAt(0), i = t ? Ue(t, 1).join("") : e.slice(1);
2187
2187
  return r[n]() + i;
2188
2188
  };
@@ -2245,7 +2245,7 @@ br.exports;
2245
2245
  return function(e, t, r) {
2246
2246
  var i = hn(e);
2247
2247
  if (!Gn(e)) {
2248
- var f = M(t, 3);
2248
+ var f = U(t, 3);
2249
2249
  e = Sn(e), t = function(l) {
2250
2250
  return f(i[l], l, i);
2251
2251
  };
@@ -2260,49 +2260,49 @@ br.exports;
2260
2260
  for (n && e.reverse(); r--; ) {
2261
2261
  var f = e[r];
2262
2262
  if (typeof f != "function")
2263
- throw new jn(x);
2263
+ throw new jn(w);
2264
2264
  if (i && !s && mr(f) == "wrapper")
2265
2265
  var s = new ne([], !0);
2266
2266
  }
2267
2267
  for (r = s ? r : t; ++r < t; ) {
2268
2268
  f = e[r];
2269
2269
  var l = mr(f), a = l == "wrapper" ? Ni(f) : u;
2270
- a && Di(a[0]) && a[1] == (tn | U | J | an) && !a[4].length && a[9] == 1 ? s = s[mr(a[0])].apply(s, a[3]) : s = f.length == 1 && Di(f) ? s[l]() : s.thru(f);
2270
+ a && Di(a[0]) && a[1] == (rn | M | V | an) && !a[4].length && a[9] == 1 ? s = s[mr(a[0])].apply(s, a[3]) : s = f.length == 1 && Di(f) ? s[l]() : s.thru(f);
2271
2271
  }
2272
2272
  return function() {
2273
2273
  var v = arguments, m = v[0];
2274
- if (s && v.length == 1 && K(m))
2274
+ if (s && v.length == 1 && q(m))
2275
2275
  return s.plant(m).value();
2276
- for (var I = 0, P = t ? e[I].apply(this, v) : m; ++I < t; )
2277
- P = e[I].call(this, P);
2278
- return P;
2276
+ for (var A = 0, O = t ? e[A].apply(this, v) : m; ++A < t; )
2277
+ O = e[A].call(this, O);
2278
+ return O;
2279
2279
  };
2280
2280
  });
2281
2281
  }
2282
2282
  function gr(n, e, t, r, i, f, s, l, a, v) {
2283
- var m = e & tn, I = e & Y, P = e & on, y = e & (U | fn), B = e & rn, X = P ? u : bt(n);
2283
+ var m = e & rn, A = e & Q, O = e & sn, y = e & (M | un), B = e & on, Z = O ? u : bt(n);
2284
2284
  function W() {
2285
- for (var V = arguments.length, nn = g(V), kn = V; kn--; )
2286
- nn[kn] = arguments[kn];
2285
+ for (var Y = arguments.length, j = g(Y), kn = Y; kn--; )
2286
+ j[kn] = arguments[kn];
2287
2287
  if (y)
2288
- var Bn = st(W), Yn = Ll(nn, Bn);
2289
- if (r && (nn = Mo(nn, r, i, y)), f && (nn = Uo(nn, f, s, y)), V -= Yn, y && V < v) {
2290
- var An = Fe(nn, Bn);
2288
+ var Bn = st(W), Yn = Ll(j, Bn);
2289
+ if (r && (j = Mo(j, r, i, y)), f && (j = Uo(j, f, s, y)), Y -= Yn, y && Y < v) {
2290
+ var An = Fe(j, Bn);
2291
2291
  return Ko(
2292
2292
  n,
2293
2293
  e,
2294
2294
  gr,
2295
2295
  W.placeholder,
2296
2296
  t,
2297
- nn,
2297
+ j,
2298
2298
  An,
2299
2299
  l,
2300
2300
  a,
2301
- v - V
2301
+ v - Y
2302
2302
  );
2303
2303
  }
2304
- var ce = I ? t : this, Re = P ? ce[n] : n;
2305
- return V = nn.length, l ? nn = Ua(nn, l) : B && V > 1 && nn.reverse(), m && a < V && (nn.length = a), this && this !== Ln && this instanceof W && (Re = X || bt(Re)), Re.apply(ce, nn);
2304
+ var ce = A ? t : this, Re = O ? ce[n] : n;
2305
+ return Y = j.length, l ? j = Ua(j, l) : B && Y > 1 && j.reverse(), m && a < Y && (j.length = a), this && this !== Ln && this instanceof W && (Re = Z || bt(Re)), Re.apply(ce, j);
2306
2306
  }
2307
2307
  return W;
2308
2308
  }
@@ -2326,7 +2326,7 @@ br.exports;
2326
2326
  }
2327
2327
  function Pi(n) {
2328
2328
  return Ie(function(e) {
2329
- return e = _n(e, Kn(M())), k(function(t) {
2329
+ return e = _n(e, Kn(U())), k(function(t) {
2330
2330
  var r = this;
2331
2331
  return n(e, function(i) {
2332
2332
  return qn(i, r, t);
@@ -2343,13 +2343,13 @@ br.exports;
2343
2343
  return je(e) ? Ue(fe(r), 0, n).join("") : r.slice(0, n);
2344
2344
  }
2345
2345
  function ma(n, e, t, r) {
2346
- var i = e & Y, f = bt(n);
2346
+ var i = e & Q, f = bt(n);
2347
2347
  function s() {
2348
- for (var l = -1, a = arguments.length, v = -1, m = r.length, I = g(m + a), P = this && this !== Ln && this instanceof s ? f : n; ++v < m; )
2349
- I[v] = r[v];
2348
+ for (var l = -1, a = arguments.length, v = -1, m = r.length, A = g(m + a), O = this && this !== Ln && this instanceof s ? f : n; ++v < m; )
2349
+ A[v] = r[v];
2350
2350
  for (; a--; )
2351
- I[v++] = arguments[++l];
2352
- return qn(P, i ? t : this, I);
2351
+ A[v++] = arguments[++l];
2352
+ return qn(O, i ? t : this, A);
2353
2353
  }
2354
2354
  return s;
2355
2355
  }
@@ -2364,28 +2364,28 @@ br.exports;
2364
2364
  };
2365
2365
  }
2366
2366
  function Ko(n, e, t, r, i, f, s, l, a, v) {
2367
- var m = e & U, I = m ? s : u, P = m ? u : s, y = m ? f : u, B = m ? u : f;
2368
- e |= m ? J : en, e &= ~(m ? en : J), e & D || (e &= -4);
2369
- var X = [
2367
+ var m = e & M, A = m ? s : u, O = m ? u : s, y = m ? f : u, B = m ? u : f;
2368
+ e |= m ? V : nn, e &= ~(m ? nn : V), e & C || (e &= -4);
2369
+ var Z = [
2370
2370
  n,
2371
2371
  e,
2372
2372
  i,
2373
2373
  y,
2374
- I,
2374
+ A,
2375
2375
  B,
2376
- P,
2376
+ O,
2377
2377
  l,
2378
2378
  a,
2379
2379
  v
2380
- ], W = t.apply(u, X);
2381
- return Di(n) && rf(W, X), W.placeholder = r, uf(W, n, e);
2380
+ ], W = t.apply(u, Z);
2381
+ return Di(n) && rf(W, Z), W.placeholder = r, uf(W, n, e);
2382
2382
  }
2383
2383
  function Oi(n) {
2384
2384
  var e = Tn[n];
2385
2385
  return function(t, r) {
2386
- if (t = ie(t), r = r == null ? 0 : yn(Z(r), 292), r && ro(t)) {
2387
- var i = (sn(t) + "e").split("e"), f = e(i[0] + "e" + (+i[1] + r));
2388
- return i = (sn(f) + "e").split("e"), +(i[0] + "e" + (+i[1] - r));
2386
+ if (t = ie(t), r = r == null ? 0 : yn(K(r), 292), r && ro(t)) {
2387
+ var i = (ln(t) + "e").split("e"), f = e(i[0] + "e" + (+i[1] + r));
2388
+ return i = (ln(f) + "e").split("e"), +(i[0] + "e" + (+i[1] - r));
2389
2389
  }
2390
2390
  return e(t);
2391
2391
  };
@@ -2400,31 +2400,31 @@ br.exports;
2400
2400
  };
2401
2401
  }
2402
2402
  function Ae(n, e, t, r, i, f, s, l) {
2403
- var a = e & on;
2403
+ var a = e & sn;
2404
2404
  if (!a && typeof n != "function")
2405
- throw new jn(x);
2405
+ throw new jn(w);
2406
2406
  var v = r ? r.length : 0;
2407
- if (v || (e &= -97, r = i = u), s = s === u ? s : En(Z(s), 0), l = l === u ? l : Z(l), v -= i ? i.length : 0, e & en) {
2408
- var m = r, I = i;
2407
+ if (v || (e &= -97, r = i = u), s = s === u ? s : En(K(s), 0), l = l === u ? l : K(l), v -= i ? i.length : 0, e & nn) {
2408
+ var m = r, A = i;
2409
2409
  r = i = u;
2410
2410
  }
2411
- var P = a ? u : Ni(n), y = [
2411
+ var O = a ? u : Ni(n), y = [
2412
2412
  n,
2413
2413
  e,
2414
2414
  t,
2415
2415
  r,
2416
2416
  i,
2417
2417
  m,
2418
- I,
2418
+ A,
2419
2419
  f,
2420
2420
  s,
2421
2421
  l
2422
2422
  ];
2423
- if (P && Ca(y, P), n = y[0], e = y[1], t = y[2], r = y[3], i = y[4], l = y[9] = y[9] === u ? a ? 0 : n.length : En(y[9] - v, 0), !l && e & (U | fn) && (e &= -25), !e || e == Y)
2423
+ if (O && Ca(y, O), n = y[0], e = y[1], t = y[2], r = y[3], i = y[4], l = y[9] = y[9] === u ? a ? 0 : n.length : En(y[9] - v, 0), !l && e & (M | un) && (e &= -25), !e || e == Q)
2424
2424
  var B = _a(n, e, t);
2425
- else e == U || e == fn ? B = va(n, e, l) : (e == J || e == (Y | J)) && !i.length ? B = ma(n, e, t, r) : B = gr.apply(u, y);
2426
- var X = P ? Ro : rf;
2427
- return uf(X(B, y), n, e);
2425
+ else e == M || e == un ? B = va(n, e, l) : (e == V || e == (Q | V)) && !i.length ? B = ma(n, e, t, r) : B = gr.apply(u, y);
2426
+ var Z = O ? Ro : rf;
2427
+ return uf(Z(B, y), n, e);
2428
2428
  }
2429
2429
  function Xo(n, e, t, r) {
2430
2430
  return n === u || le(n, tt[t]) && !cn.call(r, t) ? e : n;
@@ -2436,37 +2436,37 @@ br.exports;
2436
2436
  return yt(n) ? u : n;
2437
2437
  }
2438
2438
  function Yo(n, e, t, r, i, f) {
2439
- var s = t & ln, l = n.length, a = e.length;
2439
+ var s = t & tn, l = n.length, a = e.length;
2440
2440
  if (l != a && !(s && a > l))
2441
2441
  return !1;
2442
2442
  var v = f.get(n), m = f.get(e);
2443
2443
  if (v && m)
2444
2444
  return v == e && m == n;
2445
- var I = -1, P = !0, y = t & H ? new He() : u;
2446
- for (f.set(n, e), f.set(e, n); ++I < l; ) {
2447
- var B = n[I], X = e[I];
2445
+ var A = -1, O = !0, y = t & H ? new He() : u;
2446
+ for (f.set(n, e), f.set(e, n); ++A < l; ) {
2447
+ var B = n[A], Z = e[A];
2448
2448
  if (r)
2449
- var W = s ? r(X, B, I, e, n, f) : r(B, X, I, n, e, f);
2449
+ var W = s ? r(Z, B, A, e, n, f) : r(B, Z, A, n, e, f);
2450
2450
  if (W !== u) {
2451
2451
  if (W)
2452
2452
  continue;
2453
- P = !1;
2453
+ O = !1;
2454
2454
  break;
2455
2455
  }
2456
2456
  if (y) {
2457
- if (!Qr(e, function(V, nn) {
2458
- if (!wt(y, nn) && (B === V || i(B, V, t, r, f)))
2459
- return y.push(nn);
2457
+ if (!Qr(e, function(Y, j) {
2458
+ if (!wt(y, j) && (B === Y || i(B, Y, t, r, f)))
2459
+ return y.push(j);
2460
2460
  })) {
2461
- P = !1;
2461
+ O = !1;
2462
2462
  break;
2463
2463
  }
2464
- } else if (!(B === X || i(B, X, t, r, f))) {
2465
- P = !1;
2464
+ } else if (!(B === Z || i(B, Z, t, r, f))) {
2465
+ O = !1;
2466
2466
  break;
2467
2467
  }
2468
2468
  }
2469
- return f.delete(n), f.delete(e), P;
2469
+ return f.delete(n), f.delete(e), O;
2470
2470
  }
2471
2471
  function Aa(n, e, t, r, i, f, s) {
2472
2472
  switch (t) {
@@ -2488,7 +2488,7 @@ br.exports;
2488
2488
  case ue:
2489
2489
  var l = ii;
2490
2490
  case oe:
2491
- var a = r & ln;
2491
+ var a = r & tn;
2492
2492
  if (l || (l = Zt), n.size != e.size && !a)
2493
2493
  return !1;
2494
2494
  var v = s.get(n);
@@ -2504,35 +2504,35 @@ br.exports;
2504
2504
  return !1;
2505
2505
  }
2506
2506
  function Ia(n, e, t, r, i, f) {
2507
- var s = t & ln, l = Li(n), a = l.length, v = Li(e), m = v.length;
2507
+ var s = t & tn, l = Li(n), a = l.length, v = Li(e), m = v.length;
2508
2508
  if (a != m && !s)
2509
2509
  return !1;
2510
- for (var I = a; I--; ) {
2511
- var P = l[I];
2512
- if (!(s ? P in e : cn.call(e, P)))
2510
+ for (var A = a; A--; ) {
2511
+ var O = l[A];
2512
+ if (!(s ? O in e : cn.call(e, O)))
2513
2513
  return !1;
2514
2514
  }
2515
2515
  var y = f.get(n), B = f.get(e);
2516
2516
  if (y && B)
2517
2517
  return y == e && B == n;
2518
- var X = !0;
2518
+ var Z = !0;
2519
2519
  f.set(n, e), f.set(e, n);
2520
- for (var W = s; ++I < a; ) {
2521
- P = l[I];
2522
- var V = n[P], nn = e[P];
2520
+ for (var W = s; ++A < a; ) {
2521
+ O = l[A];
2522
+ var Y = n[O], j = e[O];
2523
2523
  if (r)
2524
- var kn = s ? r(nn, V, P, e, n, f) : r(V, nn, P, n, e, f);
2525
- if (!(kn === u ? V === nn || i(V, nn, t, r, f) : kn)) {
2526
- X = !1;
2524
+ var kn = s ? r(j, Y, O, e, n, f) : r(Y, j, O, n, e, f);
2525
+ if (!(kn === u ? Y === j || i(Y, j, t, r, f) : kn)) {
2526
+ Z = !1;
2527
2527
  break;
2528
2528
  }
2529
- W || (W = P == "constructor");
2529
+ W || (W = O == "constructor");
2530
2530
  }
2531
- if (X && !W) {
2531
+ if (Z && !W) {
2532
2532
  var Bn = n.constructor, Yn = e.constructor;
2533
- Bn != Yn && "constructor" in n && "constructor" in e && !(typeof Bn == "function" && Bn instanceof Bn && typeof Yn == "function" && Yn instanceof Yn) && (X = !1);
2533
+ Bn != Yn && "constructor" in n && "constructor" in e && !(typeof Bn == "function" && Bn instanceof Bn && typeof Yn == "function" && Yn instanceof Yn) && (Z = !1);
2534
2534
  }
2535
- return f.delete(n), f.delete(e), X;
2535
+ return f.delete(n), f.delete(e), Z;
2536
2536
  }
2537
2537
  function Ie(n) {
2538
2538
  return Ui(ef(n, u, af), n + "");
@@ -2558,7 +2558,7 @@ br.exports;
2558
2558
  var e = cn.call(o, "placeholder") ? o : n;
2559
2559
  return e.placeholder;
2560
2560
  }
2561
- function M() {
2561
+ function U() {
2562
2562
  var n = o.iteratee || ki;
2563
2563
  return n = n === ki ? mo : n, arguments.length ? n(arguments[0], arguments[1]) : n;
2564
2564
  }
@@ -2645,7 +2645,7 @@ br.exports;
2645
2645
  break;
2646
2646
  n = n[s];
2647
2647
  }
2648
- return f || ++r != i ? f : (i = n == null ? 0 : n.length, !!i && Rr(i) && Te(s, i) && (K(n) || Xe(n)));
2648
+ return f || ++r != i ? f : (i = n == null ? 0 : n.length, !!i && Rr(i) && Te(s, i) && (q(n) || Xe(n)));
2649
2649
  }
2650
2650
  function Ra(n) {
2651
2651
  var e = n.length, t = new n.constructor(e);
@@ -2697,7 +2697,7 @@ br.exports;
2697
2697
  `);
2698
2698
  }
2699
2699
  function La(n) {
2700
- return K(n) || Xe(n) || !!(to && n && n[to]);
2700
+ return q(n) || Xe(n) || !!(to && n && n[to]);
2701
2701
  }
2702
2702
  function Te(n, e) {
2703
2703
  var t = typeof n;
@@ -2710,7 +2710,7 @@ br.exports;
2710
2710
  return (r == "number" ? Gn(t) && Te(e, t.length) : r == "string" && e in t) ? le(t[e], n) : !1;
2711
2711
  }
2712
2712
  function Ci(n, e) {
2713
- if (K(n))
2713
+ if (q(n))
2714
2714
  return !1;
2715
2715
  var t = typeof n;
2716
2716
  return t == "number" || t == "symbol" || t == "boolean" || n == null || Xn(n) ? !0 : Rs.test(n) || !Ss.test(n) || e != null && n in hn(e);
@@ -2721,7 +2721,7 @@ br.exports;
2721
2721
  }
2722
2722
  function Di(n) {
2723
2723
  var e = mr(n), t = o[e];
2724
- if (typeof t != "function" || !(e in j.prototype))
2724
+ if (typeof t != "function" || !(e in J.prototype))
2725
2725
  return !1;
2726
2726
  if (n === t)
2727
2727
  return !0;
@@ -2746,21 +2746,21 @@ br.exports;
2746
2746
  }
2747
2747
  function ya(n) {
2748
2748
  var e = Er(n, function(r) {
2749
- return t.size === A && t.clear(), r;
2749
+ return t.size === I && t.clear(), r;
2750
2750
  }), t = e.cache;
2751
2751
  return e;
2752
2752
  }
2753
2753
  function Ca(n, e) {
2754
- var t = n[1], r = e[1], i = t | r, f = i < (Y | on | tn), s = r == tn && t == U || r == tn && t == an && n[7].length <= e[8] || r == (tn | an) && e[7].length <= e[8] && t == U;
2754
+ var t = n[1], r = e[1], i = t | r, f = i < (Q | sn | rn), s = r == rn && t == M || r == rn && t == an && n[7].length <= e[8] || r == (rn | an) && e[7].length <= e[8] && t == M;
2755
2755
  if (!(f || s))
2756
2756
  return n;
2757
- r & Y && (n[2] = e[2], i |= t & Y ? 0 : D);
2757
+ r & Q && (n[2] = e[2], i |= t & Q ? 0 : C);
2758
2758
  var l = e[3];
2759
2759
  if (l) {
2760
2760
  var a = n[3];
2761
2761
  n[3] = a ? Mo(a, l, e[4]) : l, n[4] = a ? Fe(n[3], T) : e[4];
2762
2762
  }
2763
- return l = e[5], l && (a = n[5], n[5] = a ? Uo(a, l, e[6]) : l, n[6] = a ? Fe(n[5], T) : e[6]), l = e[7], l && (n[7] = l), r & tn && (n[8] = n[8] == null ? e[8] : yn(n[8], e[8])), n[9] == null && (n[9] = e[9]), n[0] = e[0], n[1] = i, n;
2763
+ return l = e[5], l && (a = n[5], n[5] = a ? Uo(a, l, e[6]) : l, n[6] = a ? Fe(n[5], T) : e[6]), l = e[7], l && (n[7] = l), r & rn && (n[8] = n[8] == null ? e[8] : yn(n[8], e[8])), n[9] == null && (n[9] = e[9]), n[0] = e[0], n[1] = i, n;
2764
2764
  }
2765
2765
  function Da(n) {
2766
2766
  var e = [];
@@ -2808,7 +2808,7 @@ br.exports;
2808
2808
  return function() {
2809
2809
  var r = tc(), i = G - (r - t);
2810
2810
  if (t = r, i > 0) {
2811
- if (++e >= Q)
2811
+ if (++e >= X)
2812
2812
  return arguments[0];
2813
2813
  } else
2814
2814
  e = 0;
@@ -2855,13 +2855,13 @@ br.exports;
2855
2855
  }), n.sort();
2856
2856
  }
2857
2857
  function sf(n) {
2858
- if (n instanceof j)
2858
+ if (n instanceof J)
2859
2859
  return n.clone();
2860
2860
  var e = new ne(n.__wrapped__, n.__chain__);
2861
2861
  return e.__actions__ = Wn(n.__actions__), e.__index__ = n.__index__, e.__values__ = n.__values__, e;
2862
2862
  }
2863
2863
  function Wa(n, e, t) {
2864
- (t ? Un(n, e, t) : e === u) ? e = 1 : e = En(Z(e), 0);
2864
+ (t ? Un(n, e, t) : e === u) ? e = 1 : e = En(K(e), 0);
2865
2865
  var r = n == null ? 0 : n.length;
2866
2866
  if (!r || e < 1)
2867
2867
  return [];
@@ -2882,30 +2882,30 @@ br.exports;
2882
2882
  return [];
2883
2883
  for (var e = g(n - 1), t = arguments[0], r = n; r--; )
2884
2884
  e[r - 1] = arguments[r];
2885
- return Ne(K(t) ? Wn(t) : [t], bn(e, 1));
2885
+ return Ne(q(t) ? Wn(t) : [t], bn(e, 1));
2886
2886
  }
2887
2887
  var Ha = k(function(n, e) {
2888
2888
  return xn(n) ? Rt(n, bn(e, 1, xn, !0)) : [];
2889
2889
  }), $a = k(function(n, e) {
2890
2890
  var t = re(e);
2891
- return xn(t) && (t = u), xn(n) ? Rt(n, bn(e, 1, xn, !0), M(t, 2)) : [];
2891
+ return xn(t) && (t = u), xn(n) ? Rt(n, bn(e, 1, xn, !0), U(t, 2)) : [];
2892
2892
  }), qa = k(function(n, e) {
2893
2893
  var t = re(e);
2894
2894
  return xn(t) && (t = u), xn(n) ? Rt(n, bn(e, 1, xn, !0), u, t) : [];
2895
2895
  });
2896
2896
  function Ka(n, e, t) {
2897
2897
  var r = n == null ? 0 : n.length;
2898
- return r ? (e = t || e === u ? 1 : Z(e), te(n, e < 0 ? 0 : e, r)) : [];
2898
+ return r ? (e = t || e === u ? 1 : K(e), te(n, e < 0 ? 0 : e, r)) : [];
2899
2899
  }
2900
2900
  function Za(n, e, t) {
2901
2901
  var r = n == null ? 0 : n.length;
2902
- return r ? (e = t || e === u ? 1 : Z(e), e = r - e, te(n, 0, e < 0 ? 0 : e)) : [];
2902
+ return r ? (e = t || e === u ? 1 : K(e), e = r - e, te(n, 0, e < 0 ? 0 : e)) : [];
2903
2903
  }
2904
2904
  function Xa(n, e) {
2905
- return n && n.length ? hr(n, M(e, 3), !0, !0) : [];
2905
+ return n && n.length ? hr(n, U(e, 3), !0, !0) : [];
2906
2906
  }
2907
2907
  function ka(n, e) {
2908
- return n && n.length ? hr(n, M(e, 3), !0) : [];
2908
+ return n && n.length ? hr(n, U(e, 3), !0) : [];
2909
2909
  }
2910
2910
  function Ya(n, e, t, r) {
2911
2911
  var i = n == null ? 0 : n.length;
@@ -2915,15 +2915,15 @@ br.exports;
2915
2915
  var r = n == null ? 0 : n.length;
2916
2916
  if (!r)
2917
2917
  return -1;
2918
- var i = t == null ? 0 : Z(t);
2919
- return i < 0 && (i = En(r + i, 0)), Kt(n, M(e, 3), i);
2918
+ var i = t == null ? 0 : K(t);
2919
+ return i < 0 && (i = En(r + i, 0)), Kt(n, U(e, 3), i);
2920
2920
  }
2921
2921
  function cf(n, e, t) {
2922
2922
  var r = n == null ? 0 : n.length;
2923
2923
  if (!r)
2924
2924
  return -1;
2925
2925
  var i = r - 1;
2926
- return t !== u && (i = Z(t), i = t < 0 ? En(r + i, 0) : yn(i, r - 1)), Kt(n, M(e, 3), i, !0);
2926
+ return t !== u && (i = K(t), i = t < 0 ? En(r + i, 0) : yn(i, r - 1)), Kt(n, U(e, 3), i, !0);
2927
2927
  }
2928
2928
  function af(n) {
2929
2929
  var e = n == null ? 0 : n.length;
@@ -2935,7 +2935,7 @@ br.exports;
2935
2935
  }
2936
2936
  function Ja(n, e) {
2937
2937
  var t = n == null ? 0 : n.length;
2938
- return t ? (e = e === u ? 1 : Z(e), bn(n, e)) : [];
2938
+ return t ? (e = e === u ? 1 : K(e), bn(n, e)) : [];
2939
2939
  }
2940
2940
  function Qa(n) {
2941
2941
  for (var e = -1, t = n == null ? 0 : n.length, r = {}; ++e < t; ) {
@@ -2951,7 +2951,7 @@ br.exports;
2951
2951
  var r = n == null ? 0 : n.length;
2952
2952
  if (!r)
2953
2953
  return -1;
2954
- var i = t == null ? 0 : Z(t);
2954
+ var i = t == null ? 0 : K(t);
2955
2955
  return i < 0 && (i = En(r + i, 0)), Qe(n, e, i);
2956
2956
  }
2957
2957
  function nh(n) {
@@ -2963,7 +2963,7 @@ br.exports;
2963
2963
  return e.length && e[0] === n[0] ? gi(e) : [];
2964
2964
  }), th = k(function(n) {
2965
2965
  var e = re(n), t = _n(n, Ei);
2966
- return e === re(t) ? e = u : t.pop(), t.length && t[0] === n[0] ? gi(t, M(e, 2)) : [];
2966
+ return e === re(t) ? e = u : t.pop(), t.length && t[0] === n[0] ? gi(t, U(e, 2)) : [];
2967
2967
  }), rh = k(function(n) {
2968
2968
  var e = re(n), t = _n(n, Ei);
2969
2969
  return e = typeof e == "function" ? e : u, e && t.pop(), t.length && t[0] === n[0] ? gi(t, u, e) : [];
@@ -2980,17 +2980,17 @@ br.exports;
2980
2980
  if (!r)
2981
2981
  return -1;
2982
2982
  var i = r;
2983
- return t !== u && (i = Z(t), i = i < 0 ? En(r + i, 0) : yn(i, r - 1)), e === e ? Bl(n, e, i) : Kt(n, qu, i, !0);
2983
+ return t !== u && (i = K(t), i = i < 0 ? En(r + i, 0) : yn(i, r - 1)), e === e ? Bl(n, e, i) : Kt(n, qu, i, !0);
2984
2984
  }
2985
2985
  function oh(n, e) {
2986
- return n && n.length ? Io(n, Z(e)) : u;
2986
+ return n && n.length ? Io(n, K(e)) : u;
2987
2987
  }
2988
2988
  var fh = k(df);
2989
2989
  function df(n, e) {
2990
2990
  return n && n.length && e && e.length ? mi(n, e) : n;
2991
2991
  }
2992
2992
  function sh(n, e, t) {
2993
- return n && n.length && e && e.length ? mi(n, e, M(t, 2)) : n;
2993
+ return n && n.length && e && e.length ? mi(n, e, U(t, 2)) : n;
2994
2994
  }
2995
2995
  function lh(n, e, t) {
2996
2996
  return n && n.length && e && e.length ? mi(n, e, u, t) : n;
@@ -3006,7 +3006,7 @@ br.exports;
3006
3006
  if (!(n && n.length))
3007
3007
  return t;
3008
3008
  var r = -1, i = [], f = n.length;
3009
- for (e = M(e, 3); ++r < f; ) {
3009
+ for (e = U(e, 3); ++r < f; ) {
3010
3010
  var s = n[r];
3011
3011
  e(s, r, n) && (t.push(s), i.push(r));
3012
3012
  }
@@ -3017,13 +3017,13 @@ br.exports;
3017
3017
  }
3018
3018
  function hh(n, e, t) {
3019
3019
  var r = n == null ? 0 : n.length;
3020
- return r ? (t && typeof t != "number" && Un(n, e, t) ? (e = 0, t = r) : (e = e == null ? 0 : Z(e), t = t === u ? r : Z(t)), te(n, e, t)) : [];
3020
+ return r ? (t && typeof t != "number" && Un(n, e, t) ? (e = 0, t = r) : (e = e == null ? 0 : K(e), t = t === u ? r : K(t)), te(n, e, t)) : [];
3021
3021
  }
3022
3022
  function dh(n, e) {
3023
3023
  return ar(n, e);
3024
3024
  }
3025
3025
  function gh(n, e, t) {
3026
- return Ai(n, e, M(t, 2));
3026
+ return Ai(n, e, U(t, 2));
3027
3027
  }
3028
3028
  function ph(n, e) {
3029
3029
  var t = n == null ? 0 : n.length;
@@ -3038,7 +3038,7 @@ br.exports;
3038
3038
  return ar(n, e, !0);
3039
3039
  }
3040
3040
  function vh(n, e, t) {
3041
- return Ai(n, e, M(t, 2), !0);
3041
+ return Ai(n, e, U(t, 2), !0);
3042
3042
  }
3043
3043
  function mh(n, e) {
3044
3044
  var t = n == null ? 0 : n.length;
@@ -3053,30 +3053,30 @@ br.exports;
3053
3053
  return n && n.length ? Po(n) : [];
3054
3054
  }
3055
3055
  function xh(n, e) {
3056
- return n && n.length ? Po(n, M(e, 2)) : [];
3056
+ return n && n.length ? Po(n, U(e, 2)) : [];
3057
3057
  }
3058
3058
  function Ah(n) {
3059
3059
  var e = n == null ? 0 : n.length;
3060
3060
  return e ? te(n, 1, e) : [];
3061
3061
  }
3062
3062
  function Ih(n, e, t) {
3063
- return n && n.length ? (e = t || e === u ? 1 : Z(e), te(n, 0, e < 0 ? 0 : e)) : [];
3063
+ return n && n.length ? (e = t || e === u ? 1 : K(e), te(n, 0, e < 0 ? 0 : e)) : [];
3064
3064
  }
3065
3065
  function Th(n, e, t) {
3066
3066
  var r = n == null ? 0 : n.length;
3067
- return r ? (e = t || e === u ? 1 : Z(e), e = r - e, te(n, e < 0 ? 0 : e, r)) : [];
3067
+ return r ? (e = t || e === u ? 1 : K(e), e = r - e, te(n, e < 0 ? 0 : e, r)) : [];
3068
3068
  }
3069
3069
  function Eh(n, e) {
3070
- return n && n.length ? hr(n, M(e, 3), !1, !0) : [];
3070
+ return n && n.length ? hr(n, U(e, 3), !1, !0) : [];
3071
3071
  }
3072
3072
  function Sh(n, e) {
3073
- return n && n.length ? hr(n, M(e, 3)) : [];
3073
+ return n && n.length ? hr(n, U(e, 3)) : [];
3074
3074
  }
3075
3075
  var Rh = k(function(n) {
3076
3076
  return De(bn(n, 1, xn, !0));
3077
3077
  }), Ph = k(function(n) {
3078
3078
  var e = re(n);
3079
- return xn(e) && (e = u), De(bn(n, 1, xn, !0), M(e, 2));
3079
+ return xn(e) && (e = u), De(bn(n, 1, xn, !0), U(e, 2));
3080
3080
  }), Oh = k(function(n) {
3081
3081
  var e = re(n);
3082
3082
  return e = typeof e == "function" ? e : u, De(bn(n, 1, xn, !0), u, e);
@@ -3085,7 +3085,7 @@ br.exports;
3085
3085
  return n && n.length ? De(n) : [];
3086
3086
  }
3087
3087
  function bh(n, e) {
3088
- return n && n.length ? De(n, M(e, 2)) : [];
3088
+ return n && n.length ? De(n, U(e, 2)) : [];
3089
3089
  }
3090
3090
  function Nh(n, e) {
3091
3091
  return e = typeof e == "function" ? e : u, n && n.length ? De(n, u, e) : [];
@@ -3115,7 +3115,7 @@ br.exports;
3115
3115
  return Ti(be(n, xn));
3116
3116
  }), Ch = k(function(n) {
3117
3117
  var e = re(n);
3118
- return xn(e) && (e = u), Ti(be(n, xn), M(e, 2));
3118
+ return xn(e) && (e = u), Ti(be(n, xn), U(e, 2));
3119
3119
  }), Dh = k(function(n) {
3120
3120
  var e = re(n);
3121
3121
  return e = typeof e == "function" ? e : u, Ti(be(n, xn), u, e);
@@ -3144,7 +3144,7 @@ br.exports;
3144
3144
  var e = n.length, t = e ? n[0] : 0, r = this.__wrapped__, i = function(f) {
3145
3145
  return ci(f, n);
3146
3146
  };
3147
- return e > 1 || this.__actions__.length || !(r instanceof j) || !Te(t) ? this.thru(i) : (r = r.slice(t, +t + (e ? 1 : 0)), r.__actions__.push({
3147
+ return e > 1 || this.__actions__.length || !(r instanceof J) || !Te(t) ? this.thru(i) : (r = r.slice(t, +t + (e ? 1 : 0)), r.__actions__.push({
3148
3148
  func: Ar,
3149
3149
  args: [i],
3150
3150
  thisArg: u
@@ -3177,9 +3177,9 @@ br.exports;
3177
3177
  }
3178
3178
  function Xh() {
3179
3179
  var n = this.__wrapped__;
3180
- if (n instanceof j) {
3180
+ if (n instanceof J) {
3181
3181
  var e = n;
3182
- return this.__actions__.length && (e = new j(this)), e = e.reverse(), e.__actions__.push({
3182
+ return this.__actions__.length && (e = new J(this)), e = e.reverse(), e.__actions__.push({
3183
3183
  func: Ar,
3184
3184
  args: [Bi],
3185
3185
  thisArg: u
@@ -3194,12 +3194,12 @@ br.exports;
3194
3194
  cn.call(n, t) ? ++n[t] : xe(n, t, 1);
3195
3195
  });
3196
3196
  function Vh(n, e, t) {
3197
- var r = K(n) ? Hu : Gc;
3198
- return t && Un(n, e, t) && (e = u), r(n, M(e, 3));
3197
+ var r = q(n) ? Hu : Gc;
3198
+ return t && Un(n, e, t) && (e = u), r(n, U(e, 3));
3199
3199
  }
3200
3200
  function Jh(n, e) {
3201
- var t = K(n) ? be : ho;
3202
- return t(n, M(e, 3));
3201
+ var t = q(n) ? be : ho;
3202
+ return t(n, U(e, 3));
3203
3203
  }
3204
3204
  var Qh = zo(lf), jh = zo(cf);
3205
3205
  function nd(n, e) {
@@ -3209,21 +3209,21 @@ br.exports;
3209
3209
  return bn(Ir(n, e), Fn);
3210
3210
  }
3211
3211
  function td(n, e, t) {
3212
- return t = t === u ? 1 : Z(t), bn(Ir(n, e), t);
3212
+ return t = t === u ? 1 : K(t), bn(Ir(n, e), t);
3213
3213
  }
3214
3214
  function _f(n, e) {
3215
- var t = K(n) ? Qn : Ce;
3216
- return t(n, M(e, 3));
3215
+ var t = q(n) ? Qn : Ce;
3216
+ return t(n, U(e, 3));
3217
3217
  }
3218
3218
  function vf(n, e) {
3219
- var t = K(n) ? Al : ao;
3220
- return t(n, M(e, 3));
3219
+ var t = q(n) ? Al : ao;
3220
+ return t(n, U(e, 3));
3221
3221
  }
3222
3222
  var rd = dr(function(n, e, t) {
3223
3223
  cn.call(n, t) ? n[t].push(e) : xe(n, t, [e]);
3224
3224
  });
3225
3225
  function id(n, e, t, r) {
3226
- n = Gn(n) ? n : ct(n), t = t && !r ? Z(t) : 0;
3226
+ n = Gn(n) ? n : ct(n), t = t && !r ? K(t) : 0;
3227
3227
  var i = n.length;
3228
3228
  return t < 0 && (t = En(i + t, 0)), Pr(n) ? t <= i && n.indexOf(e, t) > -1 : !!i && Qe(n, e, t) > -1;
3229
3229
  }
@@ -3236,11 +3236,11 @@ br.exports;
3236
3236
  xe(n, t, e);
3237
3237
  });
3238
3238
  function Ir(n, e) {
3239
- var t = K(n) ? _n : wo;
3240
- return t(n, M(e, 3));
3239
+ var t = q(n) ? _n : wo;
3240
+ return t(n, U(e, 3));
3241
3241
  }
3242
3242
  function fd(n, e, t, r) {
3243
- return n == null ? [] : (K(e) || (e = e == null ? [] : [e]), t = r ? u : t, K(t) || (t = t == null ? [] : [t]), To(n, e, t));
3243
+ return n == null ? [] : (q(e) || (e = e == null ? [] : [e]), t = r ? u : t, q(t) || (t = t == null ? [] : [t]), To(n, e, t));
3244
3244
  }
3245
3245
  var sd = dr(function(n, e, t) {
3246
3246
  n[t ? 0 : 1].push(e);
@@ -3248,28 +3248,28 @@ br.exports;
3248
3248
  return [[], []];
3249
3249
  });
3250
3250
  function ld(n, e, t) {
3251
- var r = K(n) ? Jr : Zu, i = arguments.length < 3;
3252
- return r(n, M(e, 4), t, i, Ce);
3251
+ var r = q(n) ? Jr : Zu, i = arguments.length < 3;
3252
+ return r(n, U(e, 4), t, i, Ce);
3253
3253
  }
3254
3254
  function cd(n, e, t) {
3255
- var r = K(n) ? Il : Zu, i = arguments.length < 3;
3256
- return r(n, M(e, 4), t, i, ao);
3255
+ var r = q(n) ? Il : Zu, i = arguments.length < 3;
3256
+ return r(n, U(e, 4), t, i, ao);
3257
3257
  }
3258
3258
  function ad(n, e) {
3259
- var t = K(n) ? be : ho;
3260
- return t(n, Sr(M(e, 3)));
3259
+ var t = q(n) ? be : ho;
3260
+ return t(n, Sr(U(e, 3)));
3261
3261
  }
3262
3262
  function hd(n) {
3263
- var e = K(n) ? fo : ia;
3263
+ var e = q(n) ? fo : ia;
3264
3264
  return e(n);
3265
3265
  }
3266
3266
  function dd(n, e, t) {
3267
- (t ? Un(n, e, t) : e === u) ? e = 1 : e = Z(e);
3268
- var r = K(n) ? Dc : ua;
3267
+ (t ? Un(n, e, t) : e === u) ? e = 1 : e = K(e);
3268
+ var r = q(n) ? Dc : ua;
3269
3269
  return r(n, e);
3270
3270
  }
3271
3271
  function gd(n) {
3272
- var e = K(n) ? Mc : fa;
3272
+ var e = q(n) ? Mc : fa;
3273
3273
  return e(n);
3274
3274
  }
3275
3275
  function pd(n) {
@@ -3281,8 +3281,8 @@ br.exports;
3281
3281
  return e == ue || e == oe ? n.size : _i(n).length;
3282
3282
  }
3283
3283
  function _d(n, e, t) {
3284
- var r = K(n) ? Qr : sa;
3285
- return t && Un(n, e, t) && (e = u), r(n, M(e, 3));
3284
+ var r = q(n) ? Qr : sa;
3285
+ return t && Un(n, e, t) && (e = u), r(n, U(e, 3));
3286
3286
  }
3287
3287
  var vd = k(function(n, e) {
3288
3288
  if (n == null)
@@ -3294,92 +3294,92 @@ br.exports;
3294
3294
  };
3295
3295
  function md(n, e) {
3296
3296
  if (typeof e != "function")
3297
- throw new jn(x);
3298
- return n = Z(n), function() {
3297
+ throw new jn(w);
3298
+ return n = K(n), function() {
3299
3299
  if (--n < 1)
3300
3300
  return e.apply(this, arguments);
3301
3301
  };
3302
3302
  }
3303
3303
  function mf(n, e, t) {
3304
- return e = t ? u : e, e = n && e == null ? n.length : e, Ae(n, tn, u, u, u, u, e);
3304
+ return e = t ? u : e, e = n && e == null ? n.length : e, Ae(n, rn, u, u, u, u, e);
3305
3305
  }
3306
3306
  function wf(n, e) {
3307
3307
  var t;
3308
3308
  if (typeof e != "function")
3309
- throw new jn(x);
3310
- return n = Z(n), function() {
3309
+ throw new jn(w);
3310
+ return n = K(n), function() {
3311
3311
  return --n > 0 && (t = e.apply(this, arguments)), n <= 1 && (e = u), t;
3312
3312
  };
3313
3313
  }
3314
3314
  var Gi = k(function(n, e, t) {
3315
- var r = Y;
3315
+ var r = Q;
3316
3316
  if (t.length) {
3317
3317
  var i = Fe(t, st(Gi));
3318
- r |= J;
3318
+ r |= V;
3319
3319
  }
3320
3320
  return Ae(n, r, e, t, i);
3321
3321
  }), xf = k(function(n, e, t) {
3322
- var r = Y | on;
3322
+ var r = Q | sn;
3323
3323
  if (t.length) {
3324
3324
  var i = Fe(t, st(xf));
3325
- r |= J;
3325
+ r |= V;
3326
3326
  }
3327
3327
  return Ae(e, r, n, t, i);
3328
3328
  });
3329
3329
  function Af(n, e, t) {
3330
3330
  e = t ? u : e;
3331
- var r = Ae(n, U, u, u, u, u, u, e);
3331
+ var r = Ae(n, M, u, u, u, u, u, e);
3332
3332
  return r.placeholder = Af.placeholder, r;
3333
3333
  }
3334
3334
  function If(n, e, t) {
3335
3335
  e = t ? u : e;
3336
- var r = Ae(n, fn, u, u, u, u, u, e);
3336
+ var r = Ae(n, un, u, u, u, u, u, e);
3337
3337
  return r.placeholder = If.placeholder, r;
3338
3338
  }
3339
3339
  function Tf(n, e, t) {
3340
- var r, i, f, s, l, a, v = 0, m = !1, I = !1, P = !0;
3340
+ var r, i, f, s, l, a, v = 0, m = !1, A = !1, O = !0;
3341
3341
  if (typeof n != "function")
3342
- throw new jn(x);
3343
- e = ie(e) || 0, vn(t) && (m = !!t.leading, I = "maxWait" in t, f = I ? En(ie(t.maxWait) || 0, e) : f, P = "trailing" in t ? !!t.trailing : P);
3342
+ throw new jn(w);
3343
+ e = ie(e) || 0, vn(t) && (m = !!t.leading, A = "maxWait" in t, f = A ? En(ie(t.maxWait) || 0, e) : f, O = "trailing" in t ? !!t.trailing : O);
3344
3344
  function y(An) {
3345
3345
  var ce = r, Re = i;
3346
3346
  return r = i = u, v = An, s = n.apply(Re, ce), s;
3347
3347
  }
3348
3348
  function B(An) {
3349
- return v = An, l = Ft(V, e), m ? y(An) : s;
3349
+ return v = An, l = Ft(Y, e), m ? y(An) : s;
3350
3350
  }
3351
- function X(An) {
3351
+ function Z(An) {
3352
3352
  var ce = An - a, Re = An - v, Hf = e - ce;
3353
- return I ? yn(Hf, f - Re) : Hf;
3353
+ return A ? yn(Hf, f - Re) : Hf;
3354
3354
  }
3355
3355
  function W(An) {
3356
3356
  var ce = An - a, Re = An - v;
3357
- return a === u || ce >= e || ce < 0 || I && Re >= f;
3357
+ return a === u || ce >= e || ce < 0 || A && Re >= f;
3358
3358
  }
3359
- function V() {
3359
+ function Y() {
3360
3360
  var An = Tr();
3361
3361
  if (W(An))
3362
- return nn(An);
3363
- l = Ft(V, X(An));
3362
+ return j(An);
3363
+ l = Ft(Y, Z(An));
3364
3364
  }
3365
- function nn(An) {
3366
- return l = u, P && r ? y(An) : (r = i = u, s);
3365
+ function j(An) {
3366
+ return l = u, O && r ? y(An) : (r = i = u, s);
3367
3367
  }
3368
3368
  function kn() {
3369
3369
  l !== u && Fo(l), v = 0, r = a = i = l = u;
3370
3370
  }
3371
3371
  function Bn() {
3372
- return l === u ? s : nn(Tr());
3372
+ return l === u ? s : j(Tr());
3373
3373
  }
3374
3374
  function Yn() {
3375
3375
  var An = Tr(), ce = W(An);
3376
3376
  if (r = arguments, i = this, a = An, ce) {
3377
3377
  if (l === u)
3378
3378
  return B(a);
3379
- if (I)
3380
- return Fo(l), l = Ft(V, e), y(a);
3379
+ if (A)
3380
+ return Fo(l), l = Ft(Y, e), y(a);
3381
3381
  }
3382
- return l === u && (l = Ft(V, e)), s;
3382
+ return l === u && (l = Ft(Y, e)), s;
3383
3383
  }
3384
3384
  return Yn.cancel = kn, Yn.flush = Bn, Yn;
3385
3385
  }
@@ -3389,11 +3389,11 @@ br.exports;
3389
3389
  return co(n, ie(e) || 0, t);
3390
3390
  });
3391
3391
  function Ad(n) {
3392
- return Ae(n, rn);
3392
+ return Ae(n, on);
3393
3393
  }
3394
3394
  function Er(n, e) {
3395
3395
  if (typeof n != "function" || e != null && typeof e != "function")
3396
- throw new jn(x);
3396
+ throw new jn(w);
3397
3397
  var t = function() {
3398
3398
  var r = arguments, i = e ? e.apply(this, r) : r[0], f = t.cache;
3399
3399
  if (f.has(i))
@@ -3406,7 +3406,7 @@ br.exports;
3406
3406
  Er.Cache = we;
3407
3407
  function Sr(n) {
3408
3408
  if (typeof n != "function")
3409
- throw new jn(x);
3409
+ throw new jn(w);
3410
3410
  return function() {
3411
3411
  var e = arguments;
3412
3412
  switch (e.length) {
@@ -3426,7 +3426,7 @@ br.exports;
3426
3426
  return wf(2, n);
3427
3427
  }
3428
3428
  var Td = la(function(n, e) {
3429
- e = e.length == 1 && K(e[0]) ? _n(e[0], Kn(M())) : _n(bn(e, 1), Kn(M()));
3429
+ e = e.length == 1 && q(e[0]) ? _n(e[0], Kn(U())) : _n(bn(e, 1), Kn(U()));
3430
3430
  var t = e.length;
3431
3431
  return k(function(r) {
3432
3432
  for (var i = -1, f = yn(r.length, t); ++i < f; )
@@ -3435,22 +3435,22 @@ br.exports;
3435
3435
  });
3436
3436
  }), zi = k(function(n, e) {
3437
3437
  var t = Fe(e, st(zi));
3438
- return Ae(n, J, u, e, t);
3438
+ return Ae(n, V, u, e, t);
3439
3439
  }), Ef = k(function(n, e) {
3440
3440
  var t = Fe(e, st(Ef));
3441
- return Ae(n, en, u, e, t);
3441
+ return Ae(n, nn, u, e, t);
3442
3442
  }), Ed = Ie(function(n, e) {
3443
3443
  return Ae(n, an, u, u, u, e);
3444
3444
  });
3445
3445
  function Sd(n, e) {
3446
3446
  if (typeof n != "function")
3447
- throw new jn(x);
3448
- return e = e === u ? e : Z(e), k(n, e);
3447
+ throw new jn(w);
3448
+ return e = e === u ? e : K(e), k(n, e);
3449
3449
  }
3450
3450
  function Rd(n, e) {
3451
3451
  if (typeof n != "function")
3452
- throw new jn(x);
3453
- return e = e == null ? 0 : En(Z(e), 0), k(function(t) {
3452
+ throw new jn(w);
3453
+ return e = e == null ? 0 : En(K(e), 0), k(function(t) {
3454
3454
  var r = t[e], i = Ue(t, 0, e);
3455
3455
  return r && Ne(i, r), qn(n, this, i);
3456
3456
  });
@@ -3458,7 +3458,7 @@ br.exports;
3458
3458
  function Pd(n, e, t) {
3459
3459
  var r = !0, i = !0;
3460
3460
  if (typeof n != "function")
3461
- throw new jn(x);
3461
+ throw new jn(w);
3462
3462
  return vn(t) && (r = "leading" in t ? !!t.leading : r, i = "trailing" in t ? !!t.trailing : i), Tf(n, e, {
3463
3463
  leading: r,
3464
3464
  maxWait: e,
@@ -3475,19 +3475,19 @@ br.exports;
3475
3475
  if (!arguments.length)
3476
3476
  return [];
3477
3477
  var n = arguments[0];
3478
- return K(n) ? n : [n];
3478
+ return q(n) ? n : [n];
3479
3479
  }
3480
3480
  function Nd(n) {
3481
- return ee(n, C);
3481
+ return ee(n, D);
3482
3482
  }
3483
3483
  function Fd(n, e) {
3484
- return e = typeof e == "function" ? e : u, ee(n, C, e);
3484
+ return e = typeof e == "function" ? e : u, ee(n, D, e);
3485
3485
  }
3486
3486
  function yd(n) {
3487
- return ee(n, L | C);
3487
+ return ee(n, N | D);
3488
3488
  }
3489
3489
  function Cd(n, e) {
3490
- return e = typeof e == "function" ? e : u, ee(n, L | C, e);
3490
+ return e = typeof e == "function" ? e : u, ee(n, N | D, e);
3491
3491
  }
3492
3492
  function Dd(n, e) {
3493
3493
  return e == null || lo(n, e, Sn(e));
@@ -3501,7 +3501,7 @@ br.exports;
3501
3501
  return arguments;
3502
3502
  }()) ? _o : function(n) {
3503
3503
  return wn(n) && cn.call(n, "callee") && !eo.call(n, "callee");
3504
- }, K = g.isArray, Bd = Mu ? Kn(Mu) : Zc;
3504
+ }, q = g.isArray, Bd = Mu ? Kn(Mu) : Zc;
3505
3505
  function Gn(n) {
3506
3506
  return n != null && Rr(n.length) && !Ee(n);
3507
3507
  }
@@ -3518,7 +3518,7 @@ br.exports;
3518
3518
  function Hd(n) {
3519
3519
  if (n == null)
3520
3520
  return !0;
3521
- if (Gn(n) && (K(n) || typeof n == "string" || typeof n.splice == "function" || Be(n) || lt(n) || Xe(n)))
3521
+ if (Gn(n) && (q(n) || typeof n == "string" || typeof n.splice == "function" || Be(n) || lt(n) || Xe(n)))
3522
3522
  return !n.length;
3523
3523
  var e = Cn(n);
3524
3524
  if (e == ue || e == oe)
@@ -3554,7 +3554,7 @@ br.exports;
3554
3554
  return e == Wt || e == cu || e == hs || e == ps;
3555
3555
  }
3556
3556
  function Sf(n) {
3557
- return typeof n == "number" && n == Z(n);
3557
+ return typeof n == "number" && n == K(n);
3558
3558
  }
3559
3559
  function Rr(n) {
3560
3560
  return typeof n == "number" && n > -1 && n % 1 == 0 && n <= Rn;
@@ -3578,7 +3578,7 @@ br.exports;
3578
3578
  }
3579
3579
  function Yd(n) {
3580
3580
  if (Fa(n))
3581
- throw new q(R);
3581
+ throw new $(R);
3582
3582
  return vo(n);
3583
3583
  }
3584
3584
  function Vd(n) {
@@ -3605,7 +3605,7 @@ br.exports;
3605
3605
  }
3606
3606
  var Of = Gu ? Kn(Gu) : Jc;
3607
3607
  function Pr(n) {
3608
- return typeof n == "string" || !K(n) && wn(n) && Mn(n) == _t;
3608
+ return typeof n == "string" || !q(n) && wn(n) && Mn(n) == _t;
3609
3609
  }
3610
3610
  function Xn(n) {
3611
3611
  return typeof n == "symbol" || wn(n) && Mn(n) == Gt;
@@ -3642,12 +3642,12 @@ br.exports;
3642
3642
  }
3643
3643
  return n === n ? n : 0;
3644
3644
  }
3645
- function Z(n) {
3645
+ function K(n) {
3646
3646
  var e = Se(n), t = e % 1;
3647
3647
  return e === e ? t ? e - t : e : 0;
3648
3648
  }
3649
3649
  function bf(n) {
3650
- return n ? $e(Z(n), 0, On) : 0;
3650
+ return n ? $e(K(n), 0, On) : 0;
3651
3651
  }
3652
3652
  function ie(n) {
3653
3653
  if (typeof n == "number")
@@ -3668,9 +3668,9 @@ br.exports;
3668
3668
  return ge(n, zn(n));
3669
3669
  }
3670
3670
  function ig(n) {
3671
- return n ? $e(Z(n), -Rn, Rn) : n === 0 ? n : 0;
3671
+ return n ? $e(K(n), -Rn, Rn) : n === 0 ? n : 0;
3672
3672
  }
3673
- function sn(n) {
3673
+ function ln(n) {
3674
3674
  return n == null ? "" : Zn(n);
3675
3675
  }
3676
3676
  var ug = ot(function(n, e) {
@@ -3704,22 +3704,22 @@ br.exports;
3704
3704
  return n.push(u, ko), qn(yf, u, n);
3705
3705
  });
3706
3706
  function ag(n, e) {
3707
- return $u(n, M(e, 3), de);
3707
+ return $u(n, U(e, 3), de);
3708
3708
  }
3709
3709
  function hg(n, e) {
3710
- return $u(n, M(e, 3), hi);
3710
+ return $u(n, U(e, 3), hi);
3711
3711
  }
3712
3712
  function dg(n, e) {
3713
- return n == null ? n : ai(n, M(e, 3), zn);
3713
+ return n == null ? n : ai(n, U(e, 3), zn);
3714
3714
  }
3715
3715
  function gg(n, e) {
3716
- return n == null ? n : go(n, M(e, 3), zn);
3716
+ return n == null ? n : go(n, U(e, 3), zn);
3717
3717
  }
3718
3718
  function pg(n, e) {
3719
- return n && de(n, M(e, 3));
3719
+ return n && de(n, U(e, 3));
3720
3720
  }
3721
3721
  function _g(n, e) {
3722
- return n && hi(n, M(e, 3));
3722
+ return n && hi(n, U(e, 3));
3723
3723
  }
3724
3724
  function vg(n) {
3725
3725
  return n == null ? [] : lr(n, Sn(n));
@@ -3741,7 +3741,7 @@ br.exports;
3741
3741
  e != null && typeof e.toString != "function" && (e = Vt.call(e)), n[e] = t;
3742
3742
  }, Xi(Hn)), Ag = $o(function(n, e, t) {
3743
3743
  e != null && typeof e.toString != "function" && (e = Vt.call(e)), cn.call(n, e) ? n[e].push(t) : n[e] = [t];
3744
- }, M), Ig = k(Pt);
3744
+ }, U), Ig = k(Pt);
3745
3745
  function Sn(n) {
3746
3746
  return Gn(n) ? oo(n) : _i(n);
3747
3747
  }
@@ -3750,13 +3750,13 @@ br.exports;
3750
3750
  }
3751
3751
  function Tg(n, e) {
3752
3752
  var t = {};
3753
- return e = M(e, 3), de(n, function(r, i, f) {
3753
+ return e = U(e, 3), de(n, function(r, i, f) {
3754
3754
  xe(t, e(r, i, f), r);
3755
3755
  }), t;
3756
3756
  }
3757
3757
  function Eg(n, e) {
3758
3758
  var t = {};
3759
- return e = M(e, 3), de(n, function(r, i, f) {
3759
+ return e = U(e, 3), de(n, function(r, i, f) {
3760
3760
  xe(t, i, e(r, i, f));
3761
3761
  }), t;
3762
3762
  }
@@ -3771,13 +3771,13 @@ br.exports;
3771
3771
  var r = !1;
3772
3772
  e = _n(e, function(f) {
3773
3773
  return f = Me(f, n), r || (r = f.length > 1), f;
3774
- }), ge(n, bi(n), t), r && (t = ee(t, L | S | C, xa));
3774
+ }), ge(n, bi(n), t), r && (t = ee(t, N | S | D, xa));
3775
3775
  for (var i = e.length; i--; )
3776
3776
  Ii(t, e[i]);
3777
3777
  return t;
3778
3778
  });
3779
3779
  function Pg(n, e) {
3780
- return Cf(n, Sr(M(e)));
3780
+ return Cf(n, Sr(U(e)));
3781
3781
  }
3782
3782
  var Og = Ie(function(n, e) {
3783
3783
  return n == null ? {} : ea(n, e);
@@ -3788,7 +3788,7 @@ br.exports;
3788
3788
  var t = _n(bi(n), function(r) {
3789
3789
  return [r];
3790
3790
  });
3791
- return e = M(e), Eo(n, t, function(r, i) {
3791
+ return e = U(e), Eo(n, t, function(r, i) {
3792
3792
  return e(r, i[0]);
3793
3793
  });
3794
3794
  }
@@ -3809,8 +3809,8 @@ br.exports;
3809
3809
  }
3810
3810
  var Df = Zo(Sn), Mf = Zo(zn);
3811
3811
  function Fg(n, e, t) {
3812
- var r = K(n), i = r || Be(n) || lt(n);
3813
- if (e = M(e, 4), t == null) {
3812
+ var r = q(n), i = r || Be(n) || lt(n);
3813
+ if (e = U(e, 4), t == null) {
3814
3814
  var f = n && n.constructor;
3815
3815
  i ? t = r ? new f() : [] : vn(n) ? t = Ee(f) ? ut(jt(n)) : {} : t = {};
3816
3816
  }
@@ -3854,23 +3854,23 @@ br.exports;
3854
3854
  return e = e.toLowerCase(), n + (t ? Uf(e) : e);
3855
3855
  });
3856
3856
  function Uf(n) {
3857
- return Zi(sn(n).toLowerCase());
3857
+ return Zi(ln(n).toLowerCase());
3858
3858
  }
3859
3859
  function Bf(n) {
3860
- return n = sn(n), n && n.replace(Hs, bl).replace(fl, "");
3860
+ return n = ln(n), n && n.replace(Hs, bl).replace(fl, "");
3861
3861
  }
3862
3862
  function zg(n, e, t) {
3863
- n = sn(n), e = Zn(e);
3863
+ n = ln(n), e = Zn(e);
3864
3864
  var r = n.length;
3865
- t = t === u ? r : $e(Z(t), 0, r);
3865
+ t = t === u ? r : $e(K(t), 0, r);
3866
3866
  var i = t;
3867
3867
  return t -= e.length, t >= 0 && n.slice(t, i) == e;
3868
3868
  }
3869
3869
  function Hg(n) {
3870
- return n = sn(n), n && Is.test(n) ? n.replace(du, Nl) : n;
3870
+ return n = ln(n), n && Is.test(n) ? n.replace(du, Nl) : n;
3871
3871
  }
3872
3872
  function $g(n) {
3873
- return n = sn(n), n && Os.test(n) ? n.replace(zr, "\\$&") : n;
3873
+ return n = ln(n), n && Os.test(n) ? n.replace(zr, "\\$&") : n;
3874
3874
  }
3875
3875
  var qg = ft(function(n, e, t) {
3876
3876
  return n + (t ? "-" : "") + e.toLowerCase();
@@ -3878,7 +3878,7 @@ br.exports;
3878
3878
  return n + (t ? " " : "") + e.toLowerCase();
3879
3879
  }), Zg = Go("toLowerCase");
3880
3880
  function Xg(n, e, t) {
3881
- n = sn(n), e = Z(e);
3881
+ n = ln(n), e = K(e);
3882
3882
  var r = e ? nt(n) : 0;
3883
3883
  if (!e || r >= e)
3884
3884
  return n;
@@ -3886,85 +3886,85 @@ br.exports;
3886
3886
  return _r(rr(i), t) + n + _r(tr(i), t);
3887
3887
  }
3888
3888
  function kg(n, e, t) {
3889
- n = sn(n), e = Z(e);
3889
+ n = ln(n), e = K(e);
3890
3890
  var r = e ? nt(n) : 0;
3891
3891
  return e && r < e ? n + _r(e - r, t) : n;
3892
3892
  }
3893
3893
  function Yg(n, e, t) {
3894
- n = sn(n), e = Z(e);
3894
+ n = ln(n), e = K(e);
3895
3895
  var r = e ? nt(n) : 0;
3896
3896
  return e && r < e ? _r(e - r, t) + n : n;
3897
3897
  }
3898
3898
  function Vg(n, e, t) {
3899
- return t || e == null ? e = 0 : e && (e = +e), rc(sn(n).replace(Hr, ""), e || 0);
3899
+ return t || e == null ? e = 0 : e && (e = +e), rc(ln(n).replace(Hr, ""), e || 0);
3900
3900
  }
3901
3901
  function Jg(n, e, t) {
3902
- return (t ? Un(n, e, t) : e === u) ? e = 1 : e = Z(e), xi(sn(n), e);
3902
+ return (t ? Un(n, e, t) : e === u) ? e = 1 : e = K(e), xi(ln(n), e);
3903
3903
  }
3904
3904
  function Qg() {
3905
- var n = arguments, e = sn(n[0]);
3905
+ var n = arguments, e = ln(n[0]);
3906
3906
  return n.length < 3 ? e : e.replace(n[1], n[2]);
3907
3907
  }
3908
3908
  var jg = ft(function(n, e, t) {
3909
3909
  return n + (t ? "_" : "") + e.toLowerCase();
3910
3910
  });
3911
3911
  function np(n, e, t) {
3912
- return t && typeof t != "number" && Un(n, e, t) && (e = t = u), t = t === u ? On : t >>> 0, t ? (n = sn(n), n && (typeof e == "string" || e != null && !$i(e)) && (e = Zn(e), !e && je(n)) ? Ue(fe(n), 0, t) : n.split(e, t)) : [];
3912
+ return t && typeof t != "number" && Un(n, e, t) && (e = t = u), t = t === u ? On : t >>> 0, t ? (n = ln(n), n && (typeof e == "string" || e != null && !$i(e)) && (e = Zn(e), !e && je(n)) ? Ue(fe(n), 0, t) : n.split(e, t)) : [];
3913
3913
  }
3914
3914
  var ep = ft(function(n, e, t) {
3915
3915
  return n + (t ? " " : "") + Zi(e);
3916
3916
  });
3917
3917
  function tp(n, e, t) {
3918
- return n = sn(n), t = t == null ? 0 : $e(Z(t), 0, n.length), e = Zn(e), n.slice(t, t + e.length) == e;
3918
+ return n = ln(n), t = t == null ? 0 : $e(K(t), 0, n.length), e = Zn(e), n.slice(t, t + e.length) == e;
3919
3919
  }
3920
3920
  function rp(n, e, t) {
3921
3921
  var r = o.templateSettings;
3922
- t && Un(n, e, t) && (e = u), n = sn(n), e = Or({}, e, r, Xo);
3923
- var i = Or({}, e.imports, r.imports, Xo), f = Sn(i), s = ri(i, f), l, a, v = 0, m = e.interpolate || zt, I = "__p += '", P = ui(
3922
+ t && Un(n, e, t) && (e = u), n = ln(n), e = Or({}, e, r, Xo);
3923
+ var i = Or({}, e.imports, r.imports, Xo), f = Sn(i), s = ri(i, f), l, a, v = 0, m = e.interpolate || zt, A = "__p += '", O = ui(
3924
3924
  (e.escape || zt).source + "|" + m.source + "|" + (m === gu ? Ms : zt).source + "|" + (e.evaluate || zt).source + "|$",
3925
3925
  "g"
3926
3926
  ), y = "//# sourceURL=" + (cn.call(e, "sourceURL") ? (e.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++hl + "]") + `
3927
3927
  `;
3928
- n.replace(P, function(W, V, nn, kn, Bn, Yn) {
3929
- return nn || (nn = kn), I += n.slice(v, Yn).replace($s, Fl), V && (l = !0, I += `' +
3930
- __e(` + V + `) +
3931
- '`), Bn && (a = !0, I += `';
3928
+ n.replace(O, function(W, Y, j, kn, Bn, Yn) {
3929
+ return j || (j = kn), A += n.slice(v, Yn).replace($s, Fl), Y && (l = !0, A += `' +
3930
+ __e(` + Y + `) +
3931
+ '`), Bn && (a = !0, A += `';
3932
3932
  ` + Bn + `;
3933
- __p += '`), nn && (I += `' +
3934
- ((__t = (` + nn + `)) == null ? '' : __t) +
3933
+ __p += '`), j && (A += `' +
3934
+ ((__t = (` + j + `)) == null ? '' : __t) +
3935
3935
  '`), v = Yn + W.length, W;
3936
- }), I += `';
3936
+ }), A += `';
3937
3937
  `;
3938
3938
  var B = cn.call(e, "variable") && e.variable;
3939
3939
  if (!B)
3940
- I = `with (obj) {
3941
- ` + I + `
3940
+ A = `with (obj) {
3941
+ ` + A + `
3942
3942
  }
3943
3943
  `;
3944
3944
  else if (Cs.test(B))
3945
- throw new q(p);
3946
- I = (a ? I.replace(ms, "") : I).replace(ws, "$1").replace(xs, "$1;"), I = "function(" + (B || "obj") + `) {
3945
+ throw new $(p);
3946
+ A = (a ? A.replace(ms, "") : A).replace(ws, "$1").replace(xs, "$1;"), A = "function(" + (B || "obj") + `) {
3947
3947
  ` + (B ? "" : `obj || (obj = {});
3948
3948
  `) + "var __t, __p = ''" + (l ? ", __e = _.escape" : "") + (a ? `, __j = Array.prototype.join;
3949
3949
  function print() { __p += __j.call(arguments, '') }
3950
3950
  ` : `;
3951
- `) + I + `return __p
3951
+ `) + A + `return __p
3952
3952
  }`;
3953
- var X = Gf(function() {
3954
- return un(f, y + "return " + I).apply(u, s);
3953
+ var Z = Gf(function() {
3954
+ return fn(f, y + "return " + A).apply(u, s);
3955
3955
  });
3956
- if (X.source = I, Hi(X))
3957
- throw X;
3958
- return X;
3956
+ if (Z.source = A, Hi(Z))
3957
+ throw Z;
3958
+ return Z;
3959
3959
  }
3960
3960
  function ip(n) {
3961
- return sn(n).toLowerCase();
3961
+ return ln(n).toLowerCase();
3962
3962
  }
3963
3963
  function up(n) {
3964
- return sn(n).toUpperCase();
3964
+ return ln(n).toUpperCase();
3965
3965
  }
3966
3966
  function op(n, e, t) {
3967
- if (n = sn(n), n && (t || e === u))
3967
+ if (n = ln(n), n && (t || e === u))
3968
3968
  return Xu(n);
3969
3969
  if (!n || !(e = Zn(e)))
3970
3970
  return n;
@@ -3972,7 +3972,7 @@ function print() { __p += __j.call(arguments, '') }
3972
3972
  return Ue(r, f, s).join("");
3973
3973
  }
3974
3974
  function fp(n, e, t) {
3975
- if (n = sn(n), n && (t || e === u))
3975
+ if (n = ln(n), n && (t || e === u))
3976
3976
  return n.slice(0, Ju(n) + 1);
3977
3977
  if (!n || !(e = Zn(e)))
3978
3978
  return n;
@@ -3980,7 +3980,7 @@ function print() { __p += __j.call(arguments, '') }
3980
3980
  return Ue(r, 0, i).join("");
3981
3981
  }
3982
3982
  function sp(n, e, t) {
3983
- if (n = sn(n), n && (t || e === u))
3983
+ if (n = ln(n), n && (t || e === u))
3984
3984
  return n.replace(Hr, "");
3985
3985
  if (!n || !(e = Zn(e)))
3986
3986
  return n;
@@ -3988,12 +3988,12 @@ function print() { __p += __j.call(arguments, '') }
3988
3988
  return Ue(r, i).join("");
3989
3989
  }
3990
3990
  function lp(n, e) {
3991
- var t = N, r = $;
3991
+ var t = en, r = P;
3992
3992
  if (vn(e)) {
3993
3993
  var i = "separator" in e ? e.separator : i;
3994
- t = "length" in e ? Z(e.length) : t, r = "omission" in e ? Zn(e.omission) : r;
3994
+ t = "length" in e ? K(e.length) : t, r = "omission" in e ? Zn(e.omission) : r;
3995
3995
  }
3996
- n = sn(n);
3996
+ n = ln(n);
3997
3997
  var f = n.length;
3998
3998
  if (je(n)) {
3999
3999
  var s = fe(n);
@@ -4010,30 +4010,30 @@ function print() { __p += __j.call(arguments, '') }
4010
4010
  if (s && (l += a.length - l), $i(i)) {
4011
4011
  if (n.slice(l).search(i)) {
4012
4012
  var v, m = a;
4013
- for (i.global || (i = ui(i.source, sn(pu.exec(i)) + "g")), i.lastIndex = 0; v = i.exec(m); )
4014
- var I = v.index;
4015
- a = a.slice(0, I === u ? l : I);
4013
+ for (i.global || (i = ui(i.source, ln(pu.exec(i)) + "g")), i.lastIndex = 0; v = i.exec(m); )
4014
+ var A = v.index;
4015
+ a = a.slice(0, A === u ? l : A);
4016
4016
  }
4017
4017
  } else if (n.indexOf(Zn(i), l) != l) {
4018
- var P = a.lastIndexOf(i);
4019
- P > -1 && (a = a.slice(0, P));
4018
+ var O = a.lastIndexOf(i);
4019
+ O > -1 && (a = a.slice(0, O));
4020
4020
  }
4021
4021
  return a + r;
4022
4022
  }
4023
4023
  function cp(n) {
4024
- return n = sn(n), n && As.test(n) ? n.replace(hu, Wl) : n;
4024
+ return n = ln(n), n && As.test(n) ? n.replace(hu, Wl) : n;
4025
4025
  }
4026
4026
  var ap = ft(function(n, e, t) {
4027
4027
  return n + (t ? " " : "") + e.toUpperCase();
4028
4028
  }), Zi = Go("toUpperCase");
4029
4029
  function Wf(n, e, t) {
4030
- return n = sn(n), e = t ? u : e, e === u ? Cl(n) ? Hl(n) : Sl(n) : n.match(e) || [];
4030
+ return n = ln(n), e = t ? u : e, e === u ? Cl(n) ? Hl(n) : Sl(n) : n.match(e) || [];
4031
4031
  }
4032
4032
  var Gf = k(function(n, e) {
4033
4033
  try {
4034
4034
  return qn(n, u, e);
4035
4035
  } catch (t) {
4036
- return Hi(t) ? t : new q(t);
4036
+ return Hi(t) ? t : new $(t);
4037
4037
  }
4038
4038
  }), hp = Ie(function(n, e) {
4039
4039
  return Qn(e, function(t) {
@@ -4041,10 +4041,10 @@ function print() { __p += __j.call(arguments, '') }
4041
4041
  }), n;
4042
4042
  });
4043
4043
  function dp(n) {
4044
- var e = n == null ? 0 : n.length, t = M();
4044
+ var e = n == null ? 0 : n.length, t = U();
4045
4045
  return n = e ? _n(n, function(r) {
4046
4046
  if (typeof r[1] != "function")
4047
- throw new jn(x);
4047
+ throw new jn(w);
4048
4048
  return [t(r[0]), r[1]];
4049
4049
  }) : [], k(function(r) {
4050
4050
  for (var i = -1; ++i < e; ) {
@@ -4055,7 +4055,7 @@ function print() { __p += __j.call(arguments, '') }
4055
4055
  });
4056
4056
  }
4057
4057
  function gp(n) {
4058
- return Wc(ee(n, L));
4058
+ return Wc(ee(n, N));
4059
4059
  }
4060
4060
  function Xi(n) {
4061
4061
  return function() {
@@ -4070,13 +4070,13 @@ function print() { __p += __j.call(arguments, '') }
4070
4070
  return n;
4071
4071
  }
4072
4072
  function ki(n) {
4073
- return mo(typeof n == "function" ? n : ee(n, L));
4073
+ return mo(typeof n == "function" ? n : ee(n, N));
4074
4074
  }
4075
4075
  function mp(n) {
4076
- return xo(ee(n, L));
4076
+ return xo(ee(n, N));
4077
4077
  }
4078
4078
  function wp(n, e) {
4079
- return Ao(n, ee(e, L));
4079
+ return Ao(n, ee(e, N));
4080
4080
  }
4081
4081
  var xp = k(function(n, e) {
4082
4082
  return function(t) {
@@ -4096,8 +4096,8 @@ function print() { __p += __j.call(arguments, '') }
4096
4096
  n[l] = a, s && (n.prototype[l] = function() {
4097
4097
  var v = this.__chain__;
4098
4098
  if (f || v) {
4099
- var m = n(this.__wrapped__), I = m.__actions__ = Wn(this.__actions__);
4100
- return I.push({ func: a, args: arguments, thisArg: n }), m.__chain__ = v, m;
4099
+ var m = n(this.__wrapped__), A = m.__actions__ = Wn(this.__actions__);
4100
+ return A.push({ func: a, args: arguments, thisArg: n }), m.__chain__ = v, m;
4101
4101
  }
4102
4102
  return a.apply(n, Ne([this.value()], arguments));
4103
4103
  });
@@ -4109,7 +4109,7 @@ function print() { __p += __j.call(arguments, '') }
4109
4109
  function Vi() {
4110
4110
  }
4111
4111
  function Tp(n) {
4112
- return n = Z(n), k(function(e) {
4112
+ return n = K(n), k(function(e) {
4113
4113
  return Io(e, n);
4114
4114
  });
4115
4115
  }
@@ -4139,20 +4139,20 @@ function print() { __p += __j.call(arguments, '') }
4139
4139
  return !0;
4140
4140
  }
4141
4141
  function yp(n, e) {
4142
- if (n = Z(n), n < 1 || n > Rn)
4142
+ if (n = K(n), n < 1 || n > Rn)
4143
4143
  return [];
4144
4144
  var t = On, r = yn(n, On);
4145
- e = M(e), n -= On;
4145
+ e = U(e), n -= On;
4146
4146
  for (var i = ti(r, e); ++t < n; )
4147
4147
  e(t);
4148
4148
  return i;
4149
4149
  }
4150
4150
  function Cp(n) {
4151
- return K(n) ? _n(n, pe) : Xn(n) ? [n] : Wn(ff(sn(n)));
4151
+ return q(n) ? _n(n, pe) : Xn(n) ? [n] : Wn(ff(ln(n)));
4152
4152
  }
4153
4153
  function Dp(n) {
4154
4154
  var e = ++Zl;
4155
- return sn(n) + e;
4155
+ return ln(n) + e;
4156
4156
  }
4157
4157
  var Mp = pr(function(n, e) {
4158
4158
  return n + e;
@@ -4163,19 +4163,19 @@ function print() { __p += __j.call(arguments, '') }
4163
4163
  return n && n.length ? sr(n, Hn, di) : u;
4164
4164
  }
4165
4165
  function zp(n, e) {
4166
- return n && n.length ? sr(n, M(e, 2), di) : u;
4166
+ return n && n.length ? sr(n, U(e, 2), di) : u;
4167
4167
  }
4168
4168
  function Hp(n) {
4169
4169
  return Ku(n, Hn);
4170
4170
  }
4171
4171
  function $p(n, e) {
4172
- return Ku(n, M(e, 2));
4172
+ return Ku(n, U(e, 2));
4173
4173
  }
4174
4174
  function qp(n) {
4175
4175
  return n && n.length ? sr(n, Hn, vi) : u;
4176
4176
  }
4177
4177
  function Kp(n, e) {
4178
- return n && n.length ? sr(n, M(e, 2), vi) : u;
4178
+ return n && n.length ? sr(n, U(e, 2), vi) : u;
4179
4179
  }
4180
4180
  var Zp = pr(function(n, e) {
4181
4181
  return n * e;
@@ -4186,9 +4186,9 @@ function print() { __p += __j.call(arguments, '') }
4186
4186
  return n && n.length ? ei(n, Hn) : 0;
4187
4187
  }
4188
4188
  function Vp(n, e) {
4189
- return n && n.length ? ei(n, M(e, 2)) : 0;
4189
+ return n && n.length ? ei(n, U(e, 2)) : 0;
4190
4190
  }
4191
- return o.after = md, o.ary = mf, o.assign = ug, o.assignIn = Ff, o.assignInWith = Or, o.assignWith = og, o.at = fg, o.before = wf, o.bind = Gi, o.bindAll = hp, o.bindKey = xf, o.castArray = bd, o.chain = pf, o.chunk = Wa, o.compact = Ga, o.concat = za, o.cond = dp, o.conforms = gp, o.constant = Xi, o.countBy = Yh, o.create = sg, o.curry = Af, o.curryRight = If, o.debounce = Tf, o.defaults = lg, o.defaultsDeep = cg, o.defer = wd, o.delay = xd, o.difference = Ha, o.differenceBy = $a, o.differenceWith = qa, o.drop = Ka, o.dropRight = Za, o.dropRightWhile = Xa, o.dropWhile = ka, o.fill = Ya, o.filter = Jh, o.flatMap = nd, o.flatMapDeep = ed, o.flatMapDepth = td, o.flatten = af, o.flattenDeep = Va, o.flattenDepth = Ja, o.flip = Ad, o.flow = _p, o.flowRight = vp, o.fromPairs = Qa, o.functions = vg, o.functionsIn = mg, o.groupBy = rd, o.initial = nh, o.intersection = eh, o.intersectionBy = th, o.intersectionWith = rh, o.invert = xg, o.invertBy = Ag, o.invokeMap = ud, o.iteratee = ki, o.keyBy = od, o.keys = Sn, o.keysIn = zn, o.map = Ir, o.mapKeys = Tg, o.mapValues = Eg, o.matches = mp, o.matchesProperty = wp, o.memoize = Er, o.merge = Sg, o.mergeWith = yf, o.method = xp, o.methodOf = Ap, o.mixin = Yi, o.negate = Sr, o.nthArg = Tp, o.omit = Rg, o.omitBy = Pg, o.once = Id, o.orderBy = fd, o.over = Ep, o.overArgs = Td, o.overEvery = Sp, o.overSome = Rp, o.partial = zi, o.partialRight = Ef, o.partition = sd, o.pick = Og, o.pickBy = Cf, o.property = zf, o.propertyOf = Pp, o.pull = fh, o.pullAll = df, o.pullAllBy = sh, o.pullAllWith = lh, o.pullAt = ch, o.range = Op, o.rangeRight = Lp, o.rearg = Ed, o.reject = ad, o.remove = ah, o.rest = Sd, o.reverse = Bi, o.sampleSize = dd, o.set = bg, o.setWith = Ng, o.shuffle = gd, o.slice = hh, o.sortBy = vd, o.sortedUniq = wh, o.sortedUniqBy = xh, o.split = np, o.spread = Rd, o.tail = Ah, o.take = Ih, o.takeRight = Th, o.takeRightWhile = Eh, o.takeWhile = Sh, o.tap = Gh, o.throttle = Pd, o.thru = Ar, o.toArray = Lf, o.toPairs = Df, o.toPairsIn = Mf, o.toPath = Cp, o.toPlainObject = Nf, o.transform = Fg, o.unary = Od, o.union = Rh, o.unionBy = Ph, o.unionWith = Oh, o.uniq = Lh, o.uniqBy = bh, o.uniqWith = Nh, o.unset = yg, o.unzip = Wi, o.unzipWith = gf, o.update = Cg, o.updateWith = Dg, o.values = ct, o.valuesIn = Mg, o.without = Fh, o.words = Wf, o.wrap = Ld, o.xor = yh, o.xorBy = Ch, o.xorWith = Dh, o.zip = Mh, o.zipObject = Uh, o.zipObjectDeep = Bh, o.zipWith = Wh, o.entries = Df, o.entriesIn = Mf, o.extend = Ff, o.extendWith = Or, Yi(o, o), o.add = Mp, o.attempt = Gf, o.camelCase = Gg, o.capitalize = Uf, o.ceil = Up, o.clamp = Ug, o.clone = Nd, o.cloneDeep = yd, o.cloneDeepWith = Cd, o.cloneWith = Fd, o.conformsTo = Dd, o.deburr = Bf, o.defaultTo = pp, o.divide = Bp, o.endsWith = zg, o.eq = le, o.escape = Hg, o.escapeRegExp = $g, o.every = Vh, o.find = Qh, o.findIndex = lf, o.findKey = ag, o.findLast = jh, o.findLastIndex = cf, o.findLastKey = hg, o.floor = Wp, o.forEach = _f, o.forEachRight = vf, o.forIn = dg, o.forInRight = gg, o.forOwn = pg, o.forOwnRight = _g, o.get = qi, o.gt = Md, o.gte = Ud, o.has = wg, o.hasIn = Ki, o.head = hf, o.identity = Hn, o.includes = id, o.indexOf = ja, o.inRange = Bg, o.invoke = Ig, o.isArguments = Xe, o.isArray = K, o.isArrayBuffer = Bd, o.isArrayLike = Gn, o.isArrayLikeObject = xn, o.isBoolean = Wd, o.isBuffer = Be, o.isDate = Gd, o.isElement = zd, o.isEmpty = Hd, o.isEqual = $d, o.isEqualWith = qd, o.isError = Hi, o.isFinite = Kd, o.isFunction = Ee, o.isInteger = Sf, o.isLength = Rr, o.isMap = Rf, o.isMatch = Zd, o.isMatchWith = Xd, o.isNaN = kd, o.isNative = Yd, o.isNil = Jd, o.isNull = Vd, o.isNumber = Pf, o.isObject = vn, o.isObjectLike = wn, o.isPlainObject = yt, o.isRegExp = $i, o.isSafeInteger = Qd, o.isSet = Of, o.isString = Pr, o.isSymbol = Xn, o.isTypedArray = lt, o.isUndefined = jd, o.isWeakMap = ng, o.isWeakSet = eg, o.join = ih, o.kebabCase = qg, o.last = re, o.lastIndexOf = uh, o.lowerCase = Kg, o.lowerFirst = Zg, o.lt = tg, o.lte = rg, o.max = Gp, o.maxBy = zp, o.mean = Hp, o.meanBy = $p, o.min = qp, o.minBy = Kp, o.stubArray = Ji, o.stubFalse = Qi, o.stubObject = bp, o.stubString = Np, o.stubTrue = Fp, o.multiply = Zp, o.nth = oh, o.noConflict = Ip, o.noop = Vi, o.now = Tr, o.pad = Xg, o.padEnd = kg, o.padStart = Yg, o.parseInt = Vg, o.random = Wg, o.reduce = ld, o.reduceRight = cd, o.repeat = Jg, o.replace = Qg, o.result = Lg, o.round = Xp, o.runInContext = c, o.sample = hd, o.size = pd, o.snakeCase = jg, o.some = _d, o.sortedIndex = dh, o.sortedIndexBy = gh, o.sortedIndexOf = ph, o.sortedLastIndex = _h, o.sortedLastIndexBy = vh, o.sortedLastIndexOf = mh, o.startCase = ep, o.startsWith = tp, o.subtract = kp, o.sum = Yp, o.sumBy = Vp, o.template = rp, o.times = yp, o.toFinite = Se, o.toInteger = Z, o.toLength = bf, o.toLower = ip, o.toNumber = ie, o.toSafeInteger = ig, o.toString = sn, o.toUpper = up, o.trim = op, o.trimEnd = fp, o.trimStart = sp, o.truncate = lp, o.unescape = cp, o.uniqueId = Dp, o.upperCase = ap, o.upperFirst = Zi, o.each = _f, o.eachRight = vf, o.first = hf, Yi(o, function() {
4191
+ return o.after = md, o.ary = mf, o.assign = ug, o.assignIn = Ff, o.assignInWith = Or, o.assignWith = og, o.at = fg, o.before = wf, o.bind = Gi, o.bindAll = hp, o.bindKey = xf, o.castArray = bd, o.chain = pf, o.chunk = Wa, o.compact = Ga, o.concat = za, o.cond = dp, o.conforms = gp, o.constant = Xi, o.countBy = Yh, o.create = sg, o.curry = Af, o.curryRight = If, o.debounce = Tf, o.defaults = lg, o.defaultsDeep = cg, o.defer = wd, o.delay = xd, o.difference = Ha, o.differenceBy = $a, o.differenceWith = qa, o.drop = Ka, o.dropRight = Za, o.dropRightWhile = Xa, o.dropWhile = ka, o.fill = Ya, o.filter = Jh, o.flatMap = nd, o.flatMapDeep = ed, o.flatMapDepth = td, o.flatten = af, o.flattenDeep = Va, o.flattenDepth = Ja, o.flip = Ad, o.flow = _p, o.flowRight = vp, o.fromPairs = Qa, o.functions = vg, o.functionsIn = mg, o.groupBy = rd, o.initial = nh, o.intersection = eh, o.intersectionBy = th, o.intersectionWith = rh, o.invert = xg, o.invertBy = Ag, o.invokeMap = ud, o.iteratee = ki, o.keyBy = od, o.keys = Sn, o.keysIn = zn, o.map = Ir, o.mapKeys = Tg, o.mapValues = Eg, o.matches = mp, o.matchesProperty = wp, o.memoize = Er, o.merge = Sg, o.mergeWith = yf, o.method = xp, o.methodOf = Ap, o.mixin = Yi, o.negate = Sr, o.nthArg = Tp, o.omit = Rg, o.omitBy = Pg, o.once = Id, o.orderBy = fd, o.over = Ep, o.overArgs = Td, o.overEvery = Sp, o.overSome = Rp, o.partial = zi, o.partialRight = Ef, o.partition = sd, o.pick = Og, o.pickBy = Cf, o.property = zf, o.propertyOf = Pp, o.pull = fh, o.pullAll = df, o.pullAllBy = sh, o.pullAllWith = lh, o.pullAt = ch, o.range = Op, o.rangeRight = Lp, o.rearg = Ed, o.reject = ad, o.remove = ah, o.rest = Sd, o.reverse = Bi, o.sampleSize = dd, o.set = bg, o.setWith = Ng, o.shuffle = gd, o.slice = hh, o.sortBy = vd, o.sortedUniq = wh, o.sortedUniqBy = xh, o.split = np, o.spread = Rd, o.tail = Ah, o.take = Ih, o.takeRight = Th, o.takeRightWhile = Eh, o.takeWhile = Sh, o.tap = Gh, o.throttle = Pd, o.thru = Ar, o.toArray = Lf, o.toPairs = Df, o.toPairsIn = Mf, o.toPath = Cp, o.toPlainObject = Nf, o.transform = Fg, o.unary = Od, o.union = Rh, o.unionBy = Ph, o.unionWith = Oh, o.uniq = Lh, o.uniqBy = bh, o.uniqWith = Nh, o.unset = yg, o.unzip = Wi, o.unzipWith = gf, o.update = Cg, o.updateWith = Dg, o.values = ct, o.valuesIn = Mg, o.without = Fh, o.words = Wf, o.wrap = Ld, o.xor = yh, o.xorBy = Ch, o.xorWith = Dh, o.zip = Mh, o.zipObject = Uh, o.zipObjectDeep = Bh, o.zipWith = Wh, o.entries = Df, o.entriesIn = Mf, o.extend = Ff, o.extendWith = Or, Yi(o, o), o.add = Mp, o.attempt = Gf, o.camelCase = Gg, o.capitalize = Uf, o.ceil = Up, o.clamp = Ug, o.clone = Nd, o.cloneDeep = yd, o.cloneDeepWith = Cd, o.cloneWith = Fd, o.conformsTo = Dd, o.deburr = Bf, o.defaultTo = pp, o.divide = Bp, o.endsWith = zg, o.eq = le, o.escape = Hg, o.escapeRegExp = $g, o.every = Vh, o.find = Qh, o.findIndex = lf, o.findKey = ag, o.findLast = jh, o.findLastIndex = cf, o.findLastKey = hg, o.floor = Wp, o.forEach = _f, o.forEachRight = vf, o.forIn = dg, o.forInRight = gg, o.forOwn = pg, o.forOwnRight = _g, o.get = qi, o.gt = Md, o.gte = Ud, o.has = wg, o.hasIn = Ki, o.head = hf, o.identity = Hn, o.includes = id, o.indexOf = ja, o.inRange = Bg, o.invoke = Ig, o.isArguments = Xe, o.isArray = q, o.isArrayBuffer = Bd, o.isArrayLike = Gn, o.isArrayLikeObject = xn, o.isBoolean = Wd, o.isBuffer = Be, o.isDate = Gd, o.isElement = zd, o.isEmpty = Hd, o.isEqual = $d, o.isEqualWith = qd, o.isError = Hi, o.isFinite = Kd, o.isFunction = Ee, o.isInteger = Sf, o.isLength = Rr, o.isMap = Rf, o.isMatch = Zd, o.isMatchWith = Xd, o.isNaN = kd, o.isNative = Yd, o.isNil = Jd, o.isNull = Vd, o.isNumber = Pf, o.isObject = vn, o.isObjectLike = wn, o.isPlainObject = yt, o.isRegExp = $i, o.isSafeInteger = Qd, o.isSet = Of, o.isString = Pr, o.isSymbol = Xn, o.isTypedArray = lt, o.isUndefined = jd, o.isWeakMap = ng, o.isWeakSet = eg, o.join = ih, o.kebabCase = qg, o.last = re, o.lastIndexOf = uh, o.lowerCase = Kg, o.lowerFirst = Zg, o.lt = tg, o.lte = rg, o.max = Gp, o.maxBy = zp, o.mean = Hp, o.meanBy = $p, o.min = qp, o.minBy = Kp, o.stubArray = Ji, o.stubFalse = Qi, o.stubObject = bp, o.stubString = Np, o.stubTrue = Fp, o.multiply = Zp, o.nth = oh, o.noConflict = Ip, o.noop = Vi, o.now = Tr, o.pad = Xg, o.padEnd = kg, o.padStart = Yg, o.parseInt = Vg, o.random = Wg, o.reduce = ld, o.reduceRight = cd, o.repeat = Jg, o.replace = Qg, o.result = Lg, o.round = Xp, o.runInContext = c, o.sample = hd, o.size = pd, o.snakeCase = jg, o.some = _d, o.sortedIndex = dh, o.sortedIndexBy = gh, o.sortedIndexOf = ph, o.sortedLastIndex = _h, o.sortedLastIndexBy = vh, o.sortedLastIndexOf = mh, o.startCase = ep, o.startsWith = tp, o.subtract = kp, o.sum = Yp, o.sumBy = Vp, o.template = rp, o.times = yp, o.toFinite = Se, o.toInteger = K, o.toLength = bf, o.toLower = ip, o.toNumber = ie, o.toSafeInteger = ig, o.toString = ln, o.toUpper = up, o.trim = op, o.trimEnd = fp, o.trimStart = sp, o.truncate = lp, o.unescape = cp, o.uniqueId = Dp, o.upperCase = ap, o.upperFirst = Zi, o.each = _f, o.eachRight = vf, o.first = hf, Yi(o, function() {
4192
4192
  var n = {};
4193
4193
  return de(o, function(e, t) {
4194
4194
  cn.call(o.prototype, t) || (n[t] = e);
@@ -4196,70 +4196,70 @@ function print() { __p += __j.call(arguments, '') }
4196
4196
  }(), { chain: !1 }), o.VERSION = E, Qn(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(n) {
4197
4197
  o[n].placeholder = o;
4198
4198
  }), Qn(["drop", "take"], function(n, e) {
4199
- j.prototype[n] = function(t) {
4200
- t = t === u ? 1 : En(Z(t), 0);
4201
- var r = this.__filtered__ && !e ? new j(this) : this.clone();
4199
+ J.prototype[n] = function(t) {
4200
+ t = t === u ? 1 : En(K(t), 0);
4201
+ var r = this.__filtered__ && !e ? new J(this) : this.clone();
4202
4202
  return r.__filtered__ ? r.__takeCount__ = yn(t, r.__takeCount__) : r.__views__.push({
4203
4203
  size: yn(t, On),
4204
4204
  type: n + (r.__dir__ < 0 ? "Right" : "")
4205
4205
  }), r;
4206
- }, j.prototype[n + "Right"] = function(t) {
4206
+ }, J.prototype[n + "Right"] = function(t) {
4207
4207
  return this.reverse()[n](t).reverse();
4208
4208
  };
4209
4209
  }), Qn(["filter", "map", "takeWhile"], function(n, e) {
4210
4210
  var t = e + 1, r = t == dn || t == _e;
4211
- j.prototype[n] = function(i) {
4211
+ J.prototype[n] = function(i) {
4212
4212
  var f = this.clone();
4213
4213
  return f.__iteratees__.push({
4214
- iteratee: M(i, 3),
4214
+ iteratee: U(i, 3),
4215
4215
  type: t
4216
4216
  }), f.__filtered__ = f.__filtered__ || r, f;
4217
4217
  };
4218
4218
  }), Qn(["head", "last"], function(n, e) {
4219
4219
  var t = "take" + (e ? "Right" : "");
4220
- j.prototype[n] = function() {
4220
+ J.prototype[n] = function() {
4221
4221
  return this[t](1).value()[0];
4222
4222
  };
4223
4223
  }), Qn(["initial", "tail"], function(n, e) {
4224
4224
  var t = "drop" + (e ? "" : "Right");
4225
- j.prototype[n] = function() {
4226
- return this.__filtered__ ? new j(this) : this[t](1);
4225
+ J.prototype[n] = function() {
4226
+ return this.__filtered__ ? new J(this) : this[t](1);
4227
4227
  };
4228
- }), j.prototype.compact = function() {
4228
+ }), J.prototype.compact = function() {
4229
4229
  return this.filter(Hn);
4230
- }, j.prototype.find = function(n) {
4230
+ }, J.prototype.find = function(n) {
4231
4231
  return this.filter(n).head();
4232
- }, j.prototype.findLast = function(n) {
4232
+ }, J.prototype.findLast = function(n) {
4233
4233
  return this.reverse().find(n);
4234
- }, j.prototype.invokeMap = k(function(n, e) {
4235
- return typeof n == "function" ? new j(this) : this.map(function(t) {
4234
+ }, J.prototype.invokeMap = k(function(n, e) {
4235
+ return typeof n == "function" ? new J(this) : this.map(function(t) {
4236
4236
  return Pt(t, n, e);
4237
4237
  });
4238
- }), j.prototype.reject = function(n) {
4239
- return this.filter(Sr(M(n)));
4240
- }, j.prototype.slice = function(n, e) {
4241
- n = Z(n);
4238
+ }), J.prototype.reject = function(n) {
4239
+ return this.filter(Sr(U(n)));
4240
+ }, J.prototype.slice = function(n, e) {
4241
+ n = K(n);
4242
4242
  var t = this;
4243
- return t.__filtered__ && (n > 0 || e < 0) ? new j(t) : (n < 0 ? t = t.takeRight(-n) : n && (t = t.drop(n)), e !== u && (e = Z(e), t = e < 0 ? t.dropRight(-e) : t.take(e - n)), t);
4244
- }, j.prototype.takeRightWhile = function(n) {
4243
+ return t.__filtered__ && (n > 0 || e < 0) ? new J(t) : (n < 0 ? t = t.takeRight(-n) : n && (t = t.drop(n)), e !== u && (e = K(e), t = e < 0 ? t.dropRight(-e) : t.take(e - n)), t);
4244
+ }, J.prototype.takeRightWhile = function(n) {
4245
4245
  return this.reverse().takeWhile(n).reverse();
4246
- }, j.prototype.toArray = function() {
4246
+ }, J.prototype.toArray = function() {
4247
4247
  return this.take(On);
4248
- }, de(j.prototype, function(n, e) {
4248
+ }, de(J.prototype, function(n, e) {
4249
4249
  var t = /^(?:filter|find|map|reject)|While$/.test(e), r = /^(?:head|last)$/.test(e), i = o[r ? "take" + (e == "last" ? "Right" : "") : e], f = r || /^find/.test(e);
4250
4250
  i && (o.prototype[e] = function() {
4251
- var s = this.__wrapped__, l = r ? [1] : arguments, a = s instanceof j, v = l[0], m = a || K(s), I = function(V) {
4252
- var nn = i.apply(o, Ne([V], l));
4253
- return r && P ? nn[0] : nn;
4251
+ var s = this.__wrapped__, l = r ? [1] : arguments, a = s instanceof J, v = l[0], m = a || q(s), A = function(Y) {
4252
+ var j = i.apply(o, Ne([Y], l));
4253
+ return r && O ? j[0] : j;
4254
4254
  };
4255
4255
  m && t && typeof v == "function" && v.length != 1 && (a = m = !1);
4256
- var P = this.__chain__, y = !!this.__actions__.length, B = f && !P, X = a && !y;
4256
+ var O = this.__chain__, y = !!this.__actions__.length, B = f && !O, Z = a && !y;
4257
4257
  if (!f && m) {
4258
- s = X ? s : new j(this);
4258
+ s = Z ? s : new J(this);
4259
4259
  var W = n.apply(s, l);
4260
- return W.__actions__.push({ func: Ar, args: [I], thisArg: u }), new ne(W, P);
4260
+ return W.__actions__.push({ func: Ar, args: [A], thisArg: u }), new ne(W, O);
4261
4261
  }
4262
- return B && X ? n.apply(this, l) : (W = this.thru(I), B ? r ? W.value()[0] : W.value() : W);
4262
+ return B && Z ? n.apply(this, l) : (W = this.thru(A), B ? r ? W.value()[0] : W.value() : W);
4263
4263
  });
4264
4264
  }), Qn(["pop", "push", "shift", "sort", "splice", "unshift"], function(n) {
4265
4265
  var e = Xt[n], t = /^(?:push|sort|unshift)$/.test(n) ? "tap" : "thru", r = /^(?:pop|shift)$/.test(n);
@@ -4267,22 +4267,22 @@ function print() { __p += __j.call(arguments, '') }
4267
4267
  var i = arguments;
4268
4268
  if (r && !this.__chain__) {
4269
4269
  var f = this.value();
4270
- return e.apply(K(f) ? f : [], i);
4270
+ return e.apply(q(f) ? f : [], i);
4271
4271
  }
4272
4272
  return this[t](function(s) {
4273
- return e.apply(K(s) ? s : [], i);
4273
+ return e.apply(q(s) ? s : [], i);
4274
4274
  });
4275
4275
  };
4276
- }), de(j.prototype, function(n, e) {
4276
+ }), de(J.prototype, function(n, e) {
4277
4277
  var t = o[e];
4278
4278
  if (t) {
4279
4279
  var r = t.name + "";
4280
4280
  cn.call(it, r) || (it[r] = []), it[r].push({ name: e, func: t });
4281
4281
  }
4282
- }), it[gr(u, on).name] = [{
4282
+ }), it[gr(u, sn).name] = [{
4283
4283
  name: "wrapper",
4284
4284
  func: u
4285
- }], j.prototype.clone = cc, j.prototype.reverse = ac, j.prototype.value = hc, o.prototype.at = zh, o.prototype.chain = Hh, o.prototype.commit = $h, o.prototype.next = qh, o.prototype.plant = Zh, o.prototype.reverse = Xh, o.prototype.toJSON = o.prototype.valueOf = o.prototype.value = kh, o.prototype.first = o.prototype.head, xt && (o.prototype[xt] = Kh), o;
4285
+ }], J.prototype.clone = cc, J.prototype.reverse = ac, J.prototype.value = hc, o.prototype.at = zh, o.prototype.chain = Hh, o.prototype.commit = $h, o.prototype.next = qh, o.prototype.plant = Zh, o.prototype.reverse = Xh, o.prototype.toJSON = o.prototype.valueOf = o.prototype.value = kh, o.prototype.first = o.prototype.head, xt && (o.prototype[xt] = Kh), o;
4286
4286
  }, et = $l();
4287
4287
  We ? ((We.exports = et)._ = et, kr._ = et) : Ln._ = et;
4288
4288
  }).call(Dt);
@@ -4323,15 +4323,15 @@ async function J0(d, h) {
4323
4323
  const u = h.executor;
4324
4324
  if (!u || !u.pdfiumModule)
4325
4325
  throw new Error("Cannot access PDFium module from engine");
4326
- const E = u.pdfiumModule, w = (F = u.cache) == null ? void 0 : F.docs, R = w == null ? void 0 : w.get(d.id);
4326
+ const E = u.pdfiumModule, x = (F = u.cache) == null ? void 0 : F.docs, R = x == null ? void 0 : x.get(d.id);
4327
4327
  if (!R)
4328
4328
  throw new Error("Document context not found");
4329
- const x = R.docPtr, p = E.FPDF_CreateNewDocument();
4329
+ const w = R.docPtr, p = E.FPDF_CreateNewDocument();
4330
4330
  if (!p)
4331
4331
  throw new Error("Failed to create new PDF document");
4332
4332
  try {
4333
- const A = d.pageCount, T = A > 0 ? `1-${A}` : "";
4334
- if (!E.FPDF_ImportPages(p, x, T, 0))
4333
+ const I = d.pageCount, T = I > 0 ? `1-${I}` : "";
4334
+ if (!E.FPDF_ImportPages(p, w, T, 0))
4335
4335
  throw new Error("Failed to import pages to new document");
4336
4336
  return await u.saveDocument(p);
4337
4337
  } finally {
@@ -4344,54 +4344,54 @@ async function Q0(d, h) {
4344
4344
  var p = [];
4345
4345
  try {
4346
4346
  const S = [];
4347
- const C = kf();
4348
- const ln = ji(p, await Yf(C, d, h), !0);
4349
- const H = ln.resource;
4350
- const Y = /* @__PURE__ */ new Set();
4351
- let on = !1;
4352
- for await (const { field: D, annotation: U } of ss(H, h, void 0, void 0, void 0, !0)) {
4353
- const fn = Y0[D.type];
4354
- if (D.type === "signature" && (on = !0), fn && !z0(U)) {
4355
- const en = {
4356
- id: U.id,
4357
- name: D.name,
4358
- type: fn,
4359
- page: D.pageIndex + 1,
4360
- rect: D.bbox,
4361
- required: D.required
4347
+ const D = kf();
4348
+ const tn = ji(p, await Yf(D, d, h), !0);
4349
+ const H = tn.resource;
4350
+ const Q = /* @__PURE__ */ new Set();
4351
+ let sn = !1;
4352
+ for await (const { field: C, annotation: M } of ss(H, h, void 0, void 0, void 0, !0)) {
4353
+ const un = Y0[C.type];
4354
+ if (C.type === "signature" && (sn = !0), un && !z0(M)) {
4355
+ const nn = {
4356
+ id: M.id,
4357
+ name: C.name,
4358
+ type: un,
4359
+ page: C.pageIndex + 1,
4360
+ rect: C.bbox,
4361
+ required: C.required
4362
4362
  };
4363
- S.push(en);
4364
- let tn = H.pages[U.pageIndex];
4365
- tn && await h.removePageAnnotation(H, tn, U).toPromise();
4363
+ S.push(nn);
4364
+ let rn = H.pages[M.pageIndex];
4365
+ rn && await h.removePageAnnotation(H, rn, M).toPromise();
4366
4366
  } else
4367
- Y.add(U.pageIndex);
4367
+ Q.add(M.pageIndex);
4368
4368
  }
4369
- for (const D of Y) {
4370
- const U = H.pages[D];
4371
- U && await h.flattenPage(H, U, { flag: N0.Display }).toPromise();
4369
+ for (const C of Q) {
4370
+ const M = H.pages[C];
4371
+ M && await h.flattenPage(H, M, { flag: N0.Display }).toPromise();
4372
4372
  }
4373
- if (on) {
4373
+ if (sn) {
4374
4374
  var u = [];
4375
4375
  try {
4376
- const D = await h.saveAsCopy(H).toPromise();
4377
- const U = kf();
4378
- const fn = ji(u, await Yf(U, D, h), !0);
4379
- const J = fn.resource;
4380
- const en = await J0(J, h);
4381
- return { file: en, annotations: S };
4376
+ const C = await h.saveAsCopy(H).toPromise();
4377
+ const M = kf();
4378
+ const un = ji(u, await Yf(M, C, h), !0);
4379
+ const V = un.resource;
4380
+ const nn = await J0(V, h);
4381
+ return { file: nn, annotations: S };
4382
4382
  } catch (E) {
4383
- var w = E, R = !0;
4383
+ var x = E, R = !0;
4384
4384
  } finally {
4385
- var x = nu(u, w, R);
4386
- x && await x;
4385
+ var w = nu(u, x, R);
4386
+ w && await w;
4387
4387
  }
4388
4388
  }
4389
4389
  return { file: await h.saveAsCopy(H).toPromise(), annotations: S };
4390
4390
  } catch (F) {
4391
- var A = F, T = !0;
4391
+ var I = F, T = !0;
4392
4392
  } finally {
4393
- var L = nu(p, A, T);
4394
- L && await L;
4393
+ var N = nu(p, I, T);
4394
+ N && await N;
4395
4395
  }
4396
4396
  } catch (S) {
4397
4397
  return console.error(S), { file: d, annotations: [] };
@@ -4449,8 +4449,8 @@ function uu(d) {
4449
4449
  };
4450
4450
  }
4451
4451
  function ke(d, h) {
4452
- var w, R;
4453
- typeof d == "string" && (d = ((w = h == null ? void 0 : h.getAnnotationById(d)) == null ? void 0 : w.object) || { id: d });
4452
+ var x, R;
4453
+ typeof d == "string" && (d = ((x = h == null ? void 0 : h.getAnnotationById(d)) == null ? void 0 : x.object) || { id: d });
4454
4454
  const u = d.custom || ((R = h == null ? void 0 : h.getAnnotationById(d.id)) == null ? void 0 : R.object.custom) || { type: z.SIGNATURE, id: d.id }, E = {
4455
4455
  ...u,
4456
4456
  id: d.id,
@@ -4460,63 +4460,63 @@ function ke(d, h) {
4460
4460
  return u.originalId && (E.id = u.originalId), E;
4461
4461
  }
4462
4462
  const n_ = ou(null);
4463
- function e_(d, h, u, E, w, R, x, p, F = !0) {
4463
+ function e_(d, h, u, E, x, R, w, p, F = !0) {
4464
4464
  return {
4465
4465
  getAnnotations: async () => {
4466
4466
  if (h.current) {
4467
- const A = [];
4467
+ const I = [];
4468
4468
  for (let T = 0; T < E; T++) {
4469
- const L = await h.current.getPageAnnotations({ pageIndex: T }).toPromise();
4470
- for (const S of L)
4471
- A.push(ke(S, h.current));
4469
+ const N = await h.current.getPageAnnotations({ pageIndex: T }).toPromise();
4470
+ for (const S of N)
4471
+ I.push(ke(S, h.current));
4472
4472
  }
4473
- return A;
4473
+ return I;
4474
4474
  } else
4475
4475
  return [];
4476
4476
  },
4477
- getAnnotationById: (A) => {
4477
+ getAnnotationById: (I) => {
4478
4478
  if (h.current) {
4479
- const T = h.current.getAnnotationById(d.current[A] || A);
4479
+ const T = h.current.getAnnotationById(d.current[I] || I);
4480
4480
  if (T)
4481
4481
  return ke(T.object);
4482
4482
  }
4483
4483
  },
4484
- addAnnotation: (A) => {
4484
+ addAnnotation: (I) => {
4485
4485
  if (h.current) {
4486
- A.id === void 0 && (A.originalId = A.id, A.id = cs(), A.originalId && (d.current[A.originalId] = A.id)), A.type || (A.type = w), A.page === void 0 && x.current && (A.page = x.current.getCurrentPage()), !A.rect && x.current && (A.rect = {
4486
+ I.id === void 0 && (I.originalId = I.id, I.id = cs(), I.originalId && (d.current[I.originalId] = I.id)), I.type || (I.type = x), I.page === void 0 && w.current && (I.page = w.current.getCurrentPage()), !I.rect && w.current && (I.rect = {
4487
4487
  x: 20 + Math.random() * 20,
4488
4488
  y: 20 + Math.random() * 20,
4489
4489
  width: R.width,
4490
4490
  height: R.height
4491
- }, x.current.scrollToPage({ pageNumber: A.page || 1, behavior: "smooth" }));
4492
- const T = uu(A);
4493
- h.current.createAnnotation(T.pageIndex, T), F && h.current.selectAnnotation(A.page - 1, A.id);
4491
+ }, w.current.scrollToPage({ pageNumber: I.page || 1, behavior: "smooth" }));
4492
+ const T = uu(I);
4493
+ h.current.createAnnotation(T.pageIndex, T), F && h.current.selectAnnotation(I.page - 1, I.id);
4494
4494
  }
4495
4495
  },
4496
- updateAnnotation: (A) => {
4496
+ updateAnnotation: (I) => {
4497
4497
  if (h.current) {
4498
- A = {
4499
- ...A,
4500
- originalId: A.id,
4501
- id: d.current[A.id] || A.id
4498
+ I = {
4499
+ ...I,
4500
+ originalId: I.id,
4501
+ id: d.current[I.id] || I.id
4502
4502
  };
4503
- const T = uu(A);
4503
+ const T = uu(I);
4504
4504
  h.current.updateAnnotation(T.pageIndex, T.id, { custom: T.custom });
4505
4505
  }
4506
4506
  },
4507
- removeAnnotations: (A) => {
4508
- h.current && h.current.deleteAnnotations(A.map((T) => ({
4507
+ removeAnnotations: (I) => {
4508
+ h.current && h.current.deleteAnnotations(I.map((T) => ({
4509
4509
  pageIndex: T.page - 1,
4510
4510
  id: d.current[T.id] || T.id
4511
4511
  })));
4512
4512
  },
4513
- getAnnotationsByPage: async (A) => h.current ? (await h.current.getPageAnnotations({ pageIndex: A - 1 }).toPromise()).map((T) => ke(T, h.current)) : [],
4514
- subscribe: (A) => (u.current.add(A), () => {
4515
- u.current.delete(A);
4513
+ getAnnotationsByPage: async (I) => h.current ? (await h.current.getPageAnnotations({ pageIndex: I - 1 }).toPromise()).map((T) => ke(T, h.current)) : [],
4514
+ subscribe: (I) => (u.current.add(I), () => {
4515
+ u.current.delete(I);
4516
4516
  }),
4517
- selectAnnotations: (A) => {
4518
- if (h.current && (h.current.setSelection((A || []).map((T) => d.current[T] || T)), A && A[0])) {
4519
- const T = h.current.getAnnotationById(d.current[A[0]] || A[0]);
4517
+ selectAnnotations: (I) => {
4518
+ if (h.current && (h.current.setSelection((I || []).map((T) => d.current[T] || T)), I && I[0])) {
4519
+ const T = h.current.getAnnotationById(d.current[I[0]] || I[0]);
4520
4520
  T != null && T.object && p(T.object.rect.origin.x, T.object.rect.origin.y, T.object.pageIndex);
4521
4521
  }
4522
4522
  }
@@ -4527,64 +4527,64 @@ const t_ = ns(({
4527
4527
  initialAnnotations: h = [],
4528
4528
  initialLocale: u = "en",
4529
4529
  setAnnotationsApi: E,
4530
- documentId: w,
4530
+ documentId: x,
4531
4531
  defaultSize: R,
4532
- defaultType: x,
4532
+ defaultType: w,
4533
4533
  selectOnCreation: p = !0
4534
4534
  }, F) => {
4535
- const A = Pe(/* @__PURE__ */ new Set()), [T, L] = mn(u), { provides: S, state: { selectedUids: C, pages: ln } } = R0(w), [H, Y] = mn(!1), { provides: on } = us(w), D = Pe(on), U = Pe(S), fn = Pe(!1), J = Pe({}), en = fu(w), { provides: tn } = rs(), { provides: an } = is();
4535
+ const I = Pe(/* @__PURE__ */ new Set()), [T, N] = mn(u), { provides: S, state: { selectedUids: D, pages: tn } } = R0(x), [H, Q] = mn(!1), { provides: sn } = us(x), C = Pe(sn), M = Pe(S), un = Pe(!1), V = Pe({}), nn = fu(x), { provides: rn } = rs(), { provides: an } = is();
4536
4536
  es(F, () => ({
4537
- setLocale: (G) => L(G)
4537
+ setLocale: (G) => N(G)
4538
4538
  }));
4539
- const rn = In((G, dn, Nn) => {
4539
+ const on = In((G, dn, Nn) => {
4540
4540
  var _e, Fn;
4541
- if (tn && an) {
4541
+ if (rn && an) {
4542
4542
  an.scrollToPage({ pageNumber: Nn + 1, behavior: "smooth" });
4543
- const Rn = (en == null ? void 0 : en.scale) || 1, Oe = Nn * (((Fn = (_e = en == null ? void 0 : en.document) == null ? void 0 : _e.pages[Nn]) == null ? void 0 : Fn.size.height) || 0);
4544
- tn.scrollTo({ x: (G - 5) * Rn, y: (dn - 5) * Rn + Oe * Rn, behavior: "smooth" });
4543
+ const Rn = (nn == null ? void 0 : nn.scale) || 1, Oe = Nn * (((Fn = (_e = nn == null ? void 0 : nn.document) == null ? void 0 : _e.pages[Nn]) == null ? void 0 : Fn.size.height) || 0);
4544
+ rn.scrollTo({ x: (G - 5) * Rn, y: (dn - 5) * Rn + Oe * Rn, behavior: "smooth" });
4545
4545
  }
4546
- }, [tn, en == null ? void 0 : en.scale, an]);
4546
+ }, [rn, nn == null ? void 0 : nn.scale, an]);
4547
4547
  Dn(() => {
4548
- U.current = S;
4548
+ M.current = S;
4549
4549
  }, [S]), Dn(() => {
4550
- D.current = on;
4551
- }, [on]);
4552
- const N = In((G) => {
4553
- fn.current || A.current.forEach((dn) => {
4550
+ C.current = sn;
4551
+ }, [sn]);
4552
+ const en = In((G) => {
4553
+ un.current || I.current.forEach((dn) => {
4554
4554
  dn(G);
4555
4555
  });
4556
- }, []), $ = Mt(() => e_(J, U, A, Object.keys(ln).length, x, R, D, rn, p), [ln, rn]);
4557
- Dn(() => (E && E($), () => {
4556
+ }, []), P = Mt(() => e_(V, M, I, Object.keys(tn).length, w, R, C, on, p), [tn, on]);
4557
+ Dn(() => (E && E(P), () => {
4558
4558
  E && E(null);
4559
- }), [$, E]), Dn(() => {
4559
+ }), [P, E]), Dn(() => {
4560
4560
  if (S) {
4561
4561
  if (h.length > 0) {
4562
- const G = h.map((dn) => (dn.originalId = dn.id, dn.id = cs(), J.current[dn.originalId] = dn.id, {
4562
+ const G = h.map((dn) => (dn.originalId = dn.id, dn.id = cs(), V.current[dn.originalId] = dn.id, {
4563
4563
  annotation: uu(dn)
4564
4564
  }));
4565
4565
  S.importAnnotations(G), S.setActiveTool(as);
4566
4566
  }
4567
- Y(!0);
4567
+ Q(!0);
4568
4568
  }
4569
4569
  }, []), Dn(() => {
4570
- if (!(!S || !$ || !H || !N))
4570
+ if (!(!S || !P || !H || !en))
4571
4571
  return S.onAnnotationEvent(async (G) => {
4572
4572
  switch (G.type) {
4573
4573
  case "create":
4574
- N({
4574
+ en({
4575
4575
  type: G.type,
4576
4576
  annotations: [ke(G.annotation)]
4577
4577
  });
4578
4578
  break;
4579
4579
  case "delete":
4580
- N({
4580
+ en({
4581
4581
  type: G.type,
4582
4582
  annotations: [ke(G.annotation)]
4583
4583
  });
4584
4584
  break;
4585
4585
  case "update":
4586
4586
  const dn = { ...G.annotation, ...G.patch };
4587
- N({
4587
+ en({
4588
4588
  type: "update",
4589
4589
  annotations: [ke(dn)]
4590
4590
  });
@@ -4592,15 +4592,15 @@ const t_ = ns(({
4592
4592
  }
4593
4593
  });
4594
4594
  }, [H]), Dn(() => {
4595
- N && N({
4595
+ en && en({
4596
4596
  type: "selection",
4597
- selectedAnnotationsId: C.map((G) => ke(G, U.current).id)
4597
+ selectedAnnotationsId: D.map((G) => ke(G, M.current).id)
4598
4598
  });
4599
- }, [C]);
4600
- const Q = Mt(() => ({
4601
- api: $
4602
- }), [$]);
4603
- return /* @__PURE__ */ O(n_.Provider, { value: Q, children: /* @__PURE__ */ O(fs, { locale: T, children: d }) });
4599
+ }, [D]);
4600
+ const X = Mt(() => ({
4601
+ api: P
4602
+ }), [P]);
4603
+ return /* @__PURE__ */ L(n_.Provider, { value: X, children: /* @__PURE__ */ L(fs, { locale: T, children: d }) });
4604
4604
  }), Lr = {
4605
4605
  EMAIL: "#5198f4",
4606
4606
  FULLNAME: "#5198f4",
@@ -4614,35 +4614,35 @@ const t_ = ns(({
4614
4614
  context: h,
4615
4615
  documentId: u,
4616
4616
  menuWrapperProps: E,
4617
- rect: w
4617
+ rect: x
4618
4618
  }) => {
4619
- const { provides: R } = O0(), x = R == null ? void 0 : R.forDocument(u), p = () => {
4620
- if (!x) return;
4621
- const { pageIndex: A, id: T } = h.annotation.object;
4622
- x.deleteAnnotation(A, T), x.getPageAnnotations({ pageIndex: 0 }).toPromise().then((L) => {
4623
- L.forEach((S) => {
4624
- var C;
4625
- console.log((C = x.getAnnotationById(S.id)) == null ? void 0 : C.object);
4619
+ const { provides: R } = O0(), w = R == null ? void 0 : R.forDocument(u), p = () => {
4620
+ if (!w) return;
4621
+ const { pageIndex: I, id: T } = h.annotation.object;
4622
+ w.deleteAnnotation(I, T), w.getPageAnnotations({ pageIndex: 0 }).toPromise().then((N) => {
4623
+ N.forEach((S) => {
4624
+ var D;
4625
+ console.log((D = w.getAnnotationById(S.id)) == null ? void 0 : D.object);
4626
4626
  });
4627
4627
  });
4628
4628
  };
4629
4629
  if (!d) return null;
4630
4630
  const F = {
4631
- top: w.size.height + 6
4631
+ top: x.size.height + 6
4632
4632
  };
4633
- return /* @__PURE__ */ O("div", { ...E, children: /* @__PURE__ */ O(
4633
+ return /* @__PURE__ */ L("div", { ...E, children: /* @__PURE__ */ L(
4634
4634
  "div",
4635
4635
  {
4636
4636
  style: F,
4637
4637
  className: "menu-wrapper",
4638
- children: /* @__PURE__ */ O(
4638
+ children: /* @__PURE__ */ L(
4639
4639
  "span",
4640
4640
  {
4641
4641
  onClick: p,
4642
4642
  className: "menu-action danger",
4643
4643
  "aria-label": "Delete annotation",
4644
4644
  title: "Delete annotation",
4645
- children: /* @__PURE__ */ O("i", { className: "fal fa-trash" })
4645
+ children: /* @__PURE__ */ L("i", { className: "fal fa-trash" })
4646
4646
  }
4647
4647
  )
4648
4648
  }
@@ -4660,12 +4660,12 @@ const t_ = ns(({
4660
4660
  documentId: h
4661
4661
  }) => {
4662
4662
  const { t: u } = su();
4663
- return /* @__PURE__ */ O(
4663
+ return /* @__PURE__ */ L(
4664
4664
  P0,
4665
4665
  {
4666
4666
  documentId: h,
4667
4667
  pageIndex: d,
4668
- selectionMenu: (E) => /* @__PURE__ */ O(r_, { ...E, documentId: h }),
4668
+ selectionMenu: (E) => /* @__PURE__ */ L(r_, { ...E, documentId: h }),
4669
4669
  selectionOutline: { color: "#5198F488", style: "dashed" },
4670
4670
  resizeUI: {
4671
4671
  color: "#5198F488"
@@ -4674,36 +4674,36 @@ const t_ = ns(({
4674
4674
  size: 0,
4675
4675
  border: { width: 0 }
4676
4676
  },
4677
- customAnnotationRenderer: ({ annotation: E, scale: w, isSelected: R, onSelect: x }) => {
4677
+ customAnnotationRenderer: ({ annotation: E, scale: x, isSelected: R, onSelect: w }) => {
4678
4678
  const p = E.custom;
4679
4679
  if (!p) return null;
4680
- const F = p.type === z.CUSTOM ? p.name || u(z.CUSTOM) : u(p.type), A = p.assignedEmail;
4680
+ const F = p.type === z.CUSTOM ? p.name || u(z.CUSTOM) : u(p.type), I = p.assignedEmail;
4681
4681
  return E.type === Ye.FREETEXT ? /* @__PURE__ */ Vn(
4682
4682
  "div",
4683
4683
  {
4684
4684
  style: {
4685
4685
  position: "absolute",
4686
- width: (E.rect.size.width - tu / 2 + 1) * w,
4687
- height: (E.rect.size.height - tu / 2 + 1) * w,
4688
- borderWidth: tu * w,
4686
+ width: (E.rect.size.width - tu / 2 + 1) * x,
4687
+ height: (E.rect.size.height - tu / 2 + 1) * x,
4688
+ borderWidth: tu * x,
4689
4689
  borderColor: Lr[p.type] || z.SIGNATURE,
4690
4690
  borderStyle: "solid",
4691
4691
  cursor: R ? "move" : "pointer",
4692
4692
  pointerEvents: R ? "none" : "auto",
4693
4693
  zIndex: 2
4694
4694
  },
4695
- onPointerDown: x,
4696
- onTouchStart: x,
4695
+ onPointerDown: w,
4696
+ onTouchStart: w,
4697
4697
  children: [
4698
- p.required && /* @__PURE__ */ O(
4698
+ p.required && /* @__PURE__ */ L(
4699
4699
  "i",
4700
4700
  {
4701
4701
  className: "fal fa-asterisk",
4702
4702
  style: {
4703
4703
  position: "absolute",
4704
- top: -8 * w,
4705
- right: -8 * w,
4706
- fontSize: 10 * w,
4704
+ top: -8 * x,
4705
+ right: -8 * x,
4706
+ fontSize: 10 * x,
4707
4707
  fontWeight: "bold",
4708
4708
  zIndex: 1e3,
4709
4709
  color: Lr[p.type] || z.SIGNATURE
@@ -4727,23 +4727,23 @@ const t_ = ns(({
4727
4727
  position: "relative",
4728
4728
  whiteSpace: "nowrap",
4729
4729
  textWrap: "nowrap",
4730
- fontSize: 11 * w,
4730
+ fontSize: 11 * x,
4731
4731
  textTransform: "uppercase",
4732
4732
  color: Lr[p.type] || z.SIGNATURE,
4733
- marginTop: 5 * w,
4734
- top: 2 * w,
4735
- marginLeft: 5 * w,
4733
+ marginTop: 5 * x,
4734
+ top: 2 * x,
4735
+ marginLeft: 5 * x,
4736
4736
  fontWeight: "bold",
4737
- letterSpacing: 0.7 * w
4737
+ letterSpacing: 0.7 * x
4738
4738
  },
4739
4739
  children: [
4740
- /* @__PURE__ */ O("i", { className: `fa ${i_[p.type] || "fa-signature"}` }),
4740
+ /* @__PURE__ */ L("i", { className: `fa ${i_[p.type] || "fa-signature"}` }),
4741
4741
  " ",
4742
4742
  F
4743
4743
  ]
4744
4744
  }
4745
4745
  ),
4746
- A && /* @__PURE__ */ O(
4746
+ I && /* @__PURE__ */ L(
4747
4747
  "span",
4748
4748
  {
4749
4749
  style: {
@@ -4752,20 +4752,20 @@ const t_ = ns(({
4752
4752
  textWrap: "nowrap",
4753
4753
  overflow: "hidden",
4754
4754
  textOverflow: "ellipsis",
4755
- fontSize: 7 * w,
4755
+ fontSize: 7 * x,
4756
4756
  color: "#FFF",
4757
4757
  backgroundColor: Lr[p.type] || z.SIGNATURE,
4758
4758
  bottom: 0,
4759
- letterSpacing: 0.5 * w,
4759
+ letterSpacing: 0.5 * x,
4760
4760
  right: 0,
4761
- paddingTop: 5 * w,
4762
- paddingBottom: 5 * w,
4763
- paddingLeft: 3 * w,
4764
- paddingRight: 3 * w,
4761
+ paddingTop: 5 * x,
4762
+ paddingBottom: 5 * x,
4763
+ paddingLeft: 3 * x,
4764
+ paddingRight: 3 * x,
4765
4765
  maxWidth: "50%",
4766
4766
  maxHeight: "30%"
4767
4767
  },
4768
- children: A
4768
+ children: I
4769
4769
  }
4770
4770
  )
4771
4771
  ] })
@@ -4784,132 +4784,132 @@ const t_ = ns(({
4784
4784
  Dn(() => {
4785
4785
  d(E.currentPage);
4786
4786
  }, [E.currentPage]);
4787
- const { provides: w } = E0();
4787
+ const { provides: x } = E0();
4788
4788
  return Dn(() => {
4789
- u(w);
4790
- }, [w]), null;
4789
+ u(x);
4790
+ }, [x]), null;
4791
4791
  }, f_ = ns(({
4792
4792
  plugins: d,
4793
4793
  setForm: h,
4794
4794
  setAnnotationsApi: u,
4795
4795
  hideToolbar: E,
4796
- setZoomCapability: w,
4796
+ setZoomCapability: x,
4797
4797
  setExportCapability: R,
4798
- setScrollCapability: x,
4798
+ setScrollCapability: w,
4799
4799
  setCurrentPage: p,
4800
4800
  setTotalPages: F,
4801
- documentId: A,
4801
+ documentId: I,
4802
4802
  pdf: T,
4803
- name: L,
4803
+ name: N,
4804
4804
  setLoadingPdf: S,
4805
- setLoadingError: C,
4806
- onDocumentLoaded: ln,
4805
+ setLoadingError: D,
4806
+ onDocumentLoaded: tn,
4807
4807
  usage: H,
4808
- initialLocale: Y,
4809
- setHistoryCapability: on,
4810
- setPdfBuffer: D
4811
- }, U) => {
4812
- const { engine: fn, error: J, isLoading: en } = ts(), [tn, an] = mn(null), rn = Pe(null);
4813
- if (es(U, () => ({
4814
- setLocale: (N) => {
4815
- var $;
4816
- return ($ = rn.current) == null ? void 0 : $.setLocale(N);
4808
+ initialLocale: Q,
4809
+ setHistoryCapability: sn,
4810
+ setPdfBuffer: C
4811
+ }, M) => {
4812
+ const { engine: un, error: V, isLoading: nn } = ts(), [rn, an] = mn(null), on = Pe(null);
4813
+ if (es(M, () => ({
4814
+ setLocale: (en) => {
4815
+ var P;
4816
+ return (P = on.current) == null ? void 0 : P.setLocale(en);
4817
4817
  }
4818
4818
  })), Dn(() => {
4819
- S(en), C(!!J);
4820
- }, [en, J]), J) {
4821
- const N = (J == null ? void 0 : J.message) || String(J);
4822
- return /* @__PURE__ */ O("div", { className: "pdf-sentinel-error", children: /* @__PURE__ */ Vn("div", { className: "pdf-sentinel-error-content", children: [
4823
- /* @__PURE__ */ O("h3", { children: "Viewer error" }),
4824
- /* @__PURE__ */ O("p", { className: "pdf-sentinel-error-message", children: N })
4819
+ S(nn), D(!!V);
4820
+ }, [nn, V]), V) {
4821
+ const en = (V == null ? void 0 : V.message) || String(V);
4822
+ return /* @__PURE__ */ L("div", { className: "pdf-sentinel-error", children: /* @__PURE__ */ Vn("div", { className: "pdf-sentinel-error-content", children: [
4823
+ /* @__PURE__ */ L("h3", { children: "Viewer error" }),
4824
+ /* @__PURE__ */ L("p", { className: "pdf-sentinel-error-message", children: en })
4825
4825
  ] }) });
4826
4826
  }
4827
- return en || !fn ? /* @__PURE__ */ O(eu, {}) : /* @__PURE__ */ O(e0, { engine: fn, plugins: d, onInitialized: async (N) => {
4827
+ return nn || !un ? /* @__PURE__ */ L(eu, {}) : /* @__PURE__ */ L(e0, { engine: un, plugins: d, onInitialized: async (en) => {
4828
4828
  var dn, Nn, _e, Fn, Rn, Oe;
4829
- const $ = (dn = N.getPlugin(c0.id)) == null ? void 0 : dn.provides(), Q = (Nn = N.getPlugin(t0.id)) == null ? void 0 : Nn.provides();
4830
- w(((_e = N.getPlugin(v0.id)) == null ? void 0 : _e.provides()) || null), R(((Fn = N.getPlugin(w0.id)) == null ? void 0 : Fn.provides()) || null);
4831
- const G = ((Rn = N.getPlugin(u0.id)) == null ? void 0 : Rn.provides()) || null;
4832
- if (x(G), G && G.onLayoutReady((Pn) => {
4833
- Pn.documentId === A && Pn.isInitial && F(Pn.totalPages);
4834
- }), $) {
4829
+ const P = (dn = en.getPlugin(c0.id)) == null ? void 0 : dn.provides(), X = (Nn = en.getPlugin(t0.id)) == null ? void 0 : Nn.provides();
4830
+ x(((_e = en.getPlugin(v0.id)) == null ? void 0 : _e.provides()) || null), R(((Fn = en.getPlugin(w0.id)) == null ? void 0 : Fn.provides()) || null);
4831
+ const G = ((Rn = en.getPlugin(u0.id)) == null ? void 0 : Rn.provides()) || null;
4832
+ if (w(G), G && G.onLayoutReady((Pn) => {
4833
+ Pn.documentId === I && Pn.isInitial && F(Pn.totalPages);
4834
+ }), P) {
4835
4835
  let Pn;
4836
4836
  if (H.type === "annotation") {
4837
- const { file: On, annotations: at } = await Q0(T, fn);
4837
+ const { file: On, annotations: at } = await Q0(T, un);
4838
4838
  Pn = On, H.initialAnnotations === "readFromDocument" && (H.initialAnnotations = at), an(H.initialAnnotations || []);
4839
4839
  } else
4840
4840
  Pn = T;
4841
4841
  if (typeof Pn == "string") {
4842
- await $.openDocumentUrl({ documentId: A, url: Pn }).toPromise();
4843
- const On = $.getDocument(A);
4844
- On && D(await (fn == null ? void 0 : fn.saveAsCopy(On).toPromise()) || null);
4842
+ await P.openDocumentUrl({ documentId: I, url: Pn }).toPromise();
4843
+ const On = P.getDocument(I);
4844
+ On && C(await (un == null ? void 0 : un.saveAsCopy(On).toPromise()) || null);
4845
4845
  } else
4846
- await $.openDocumentBuffer({
4847
- documentId: A,
4846
+ await P.openDocumentBuffer({
4847
+ documentId: I,
4848
4848
  buffer: Pn,
4849
- name: L
4850
- }).toPromise(), D(Pn);
4851
- Q && Q.scrollTo({ x: 0, y: 0 });
4849
+ name: N
4850
+ }).toPromise(), C(Pn);
4851
+ X && X.scrollTo({ x: 0, y: 0 });
4852
4852
  }
4853
- H.type === "annotation" && j0((Oe = N.getPlugin(L0.id)) == null ? void 0 : Oe.provides(), H.selectOnCreation);
4854
- }, children: ({ pluginsReady: N, activeDocumentId: $ }) => N ? /* @__PURE__ */ Vn(Qf, { children: [
4855
- /* @__PURE__ */ O(
4853
+ H.type === "annotation" && j0((Oe = en.getPlugin(L0.id)) == null ? void 0 : Oe.provides(), H.selectOnCreation);
4854
+ }, children: ({ pluginsReady: en, activeDocumentId: P }) => en ? /* @__PURE__ */ Vn(Qf, { children: [
4855
+ /* @__PURE__ */ L(
4856
4856
  o_,
4857
4857
  {
4858
4858
  setCurrentPage: p,
4859
- documentId: A,
4860
- setHistoryCapability: on
4859
+ documentId: I,
4860
+ setHistoryCapability: sn
4861
4861
  }
4862
4862
  ),
4863
- /* @__PURE__ */ O("div", { style: { height: E ? "100%" : "calc(100% - 40px)", width: "100%" }, children: $ && /* @__PURE__ */ O(l0, { documentId: $, children: ({ isLoading: Q, isError: G }) => {
4863
+ /* @__PURE__ */ L("div", { style: { height: E ? "100%" : "calc(100% - 40px)", width: "100%" }, children: P && /* @__PURE__ */ L(l0, { documentId: P, children: ({ isLoading: X, isError: G }) => {
4864
4864
  Dn(() => {
4865
- C(G), S(Q), !Q && !G && ln && ln();
4866
- }, [Q, G]);
4867
- const dn = /* @__PURE__ */ O(
4865
+ D(G), S(X), !X && !G && tn && tn();
4866
+ }, [X, G]);
4867
+ const dn = /* @__PURE__ */ L(
4868
4868
  g0,
4869
4869
  {
4870
- documentId: $,
4871
- children: /* @__PURE__ */ O(
4870
+ documentId: P,
4871
+ children: /* @__PURE__ */ L(
4872
4872
  r0,
4873
4873
  {
4874
4874
  className: "pdf-sentinel-viewport",
4875
- documentId: $,
4876
- children: /* @__PURE__ */ O(
4875
+ documentId: P,
4876
+ children: /* @__PURE__ */ L(
4877
4877
  o0,
4878
4878
  {
4879
- documentId: $,
4879
+ documentId: P,
4880
4880
  renderPage: ({ pageIndex: Nn }) => /* @__PURE__ */ Vn(
4881
4881
  p0,
4882
4882
  {
4883
- documentId: $,
4883
+ documentId: P,
4884
4884
  pageIndex: Nn,
4885
4885
  children: [
4886
- /* @__PURE__ */ O(
4886
+ /* @__PURE__ */ L(
4887
4887
  h0,
4888
4888
  {
4889
4889
  pageIndex: Nn,
4890
- documentId: $,
4890
+ documentId: P,
4891
4891
  style: { pointerEvents: "none" }
4892
4892
  }
4893
4893
  ),
4894
- /* @__PURE__ */ O(
4894
+ /* @__PURE__ */ L(
4895
4895
  I0,
4896
4896
  {
4897
- documentId: $,
4897
+ documentId: P,
4898
4898
  pageIndex: Nn
4899
4899
  }
4900
4900
  ),
4901
- H.type === "form" && /* @__PURE__ */ O(
4901
+ H.type === "form" && /* @__PURE__ */ L(
4902
4902
  X0,
4903
4903
  {
4904
4904
  pageIndex: Nn,
4905
- documentId: $
4905
+ documentId: P
4906
4906
  }
4907
4907
  ),
4908
- H.type === "annotation" && /* @__PURE__ */ O(
4908
+ H.type === "annotation" && /* @__PURE__ */ L(
4909
4909
  u_,
4910
4910
  {
4911
4911
  pageIndex: Nn,
4912
- documentId: $
4912
+ documentId: P
4913
4913
  }
4914
4914
  )
4915
4915
  ]
@@ -4921,38 +4921,38 @@ const t_ = ns(({
4921
4921
  )
4922
4922
  }
4923
4923
  );
4924
- return Q ? /* @__PURE__ */ O(eu, {}) : G ? /* @__PURE__ */ O("div", { className: "pdf-sentinel-error", children: /* @__PURE__ */ Vn("div", { className: "pdf-sentinel-error-content", children: [
4925
- /* @__PURE__ */ O("h3", { children: "Viewer error" }),
4926
- /* @__PURE__ */ O("p", { className: "pdf-sentinel-error-message", children: "There was a loading error" })
4927
- ] }) }) : H.type === "form" ? /* @__PURE__ */ O(
4924
+ return X ? /* @__PURE__ */ L(eu, {}) : G ? /* @__PURE__ */ L("div", { className: "pdf-sentinel-error", children: /* @__PURE__ */ Vn("div", { className: "pdf-sentinel-error-content", children: [
4925
+ /* @__PURE__ */ L("h3", { children: "Viewer error" }),
4926
+ /* @__PURE__ */ L("p", { className: "pdf-sentinel-error-message", children: "There was a loading error" })
4927
+ ] }) }) : H.type === "form" ? /* @__PURE__ */ L(
4928
4928
  K0,
4929
4929
  {
4930
- documentId: $,
4930
+ documentId: P,
4931
4931
  setForm: h,
4932
4932
  initialValues: H.initialValues || {},
4933
4933
  conditionalSignatures: H.conditionalSignatures,
4934
4934
  signatureFieldNames: H.signatureFieldNames,
4935
4935
  children: dn
4936
4936
  }
4937
- ) : H.type === "annotation" && tn ? /* @__PURE__ */ O(
4937
+ ) : H.type === "annotation" && rn ? /* @__PURE__ */ L(
4938
4938
  t_,
4939
4939
  {
4940
- documentId: $,
4941
- initialLocale: Y,
4942
- initialAnnotations: tn,
4940
+ documentId: P,
4941
+ initialLocale: Q,
4942
+ initialAnnotations: rn,
4943
4943
  setAnnotationsApi: u,
4944
4944
  defaultSize: H.defaultSize || {
4945
4945
  width: 200,
4946
4946
  height: 80
4947
4947
  },
4948
4948
  defaultType: H.defaultType || z.SIGNATURE,
4949
- ref: rn,
4949
+ ref: on,
4950
4950
  selectOnCreation: H.selectOnCreation,
4951
4951
  children: dn
4952
4952
  }
4953
4953
  ) : dn;
4954
4954
  } }) })
4955
- ] }) : /* @__PURE__ */ O(eu, {}) });
4955
+ ] }) : /* @__PURE__ */ L(eu, {}) });
4956
4956
  });
4957
4957
  function Vf(d) {
4958
4958
  return d.type === "button";
@@ -4965,150 +4965,151 @@ function s_({
4965
4965
  currentPage: h,
4966
4966
  zoomCapability: u,
4967
4967
  scrollCapability: E,
4968
- exportCapability: w,
4968
+ exportCapability: x,
4969
4969
  totalPages: R,
4970
- removeButtons: x,
4970
+ removeButtons: w,
4971
4971
  historyCapability: p,
4972
- annotationsApi: F
4972
+ annotationsApi: F,
4973
+ usageType: I
4973
4974
  }) {
4974
- const { t: A } = su(), [T, L] = mn(!1), [S, C] = mn(!1);
4975
+ const { t: T } = su(), [N, S] = mn(!1), [D, tn] = mn(!1);
4975
4976
  Dn(() => F == null ? void 0 : F.subscribe(() => {
4976
- L((p == null ? void 0 : p.canUndo()) || !1), C((p == null ? void 0 : p.canRedo()) || !1);
4977
+ S((p == null ? void 0 : p.canUndo()) || !1), tn((p == null ? void 0 : p.canRedo()) || !1);
4977
4978
  }), [F, p]);
4978
- const ln = d.filter((N) => N.area === "left"), H = d.filter((N) => N.area === "right"), [Y, on] = mn(
4979
+ const H = d.filter((P) => P.area === "left"), Q = d.filter((P) => P.area === "right"), [sn, C] = mn(
4979
4980
  () => h ? String(h) : "1"
4980
4981
  );
4981
4982
  Dn(() => {
4982
- String(h) !== Y && on(String(h));
4983
+ String(h) !== sn && C(String(h));
4983
4984
  }, [h]);
4984
- const D = In(() => {
4985
+ const M = In(() => {
4985
4986
  u == null || u.zoomIn();
4986
- }, [u]), U = In(() => {
4987
+ }, [u]), un = In(() => {
4987
4988
  u == null || u.zoomOut();
4988
- }, [u]), fn = In(() => {
4989
+ }, [u]), V = In(() => {
4989
4990
  u == null || u.requestZoom(ru.FitWidth);
4990
- }, [u]), J = In(() => {
4991
- w == null || w.download();
4992
- }, [w]), en = In(() => {
4993
- p == null || p.undo(), L((p == null ? void 0 : p.canUndo()) || !1), C((p == null ? void 0 : p.canRedo()) || !1);
4994
- }, [p]), tn = In(() => {
4995
- p == null || p.redo(), C((p == null ? void 0 : p.canRedo()) || !1), C((p == null ? void 0 : p.canRedo()) || !1);
4996
- }, [p]), an = In(
4997
- (N) => {
4998
- on(N.target.value);
4991
+ }, [u]), nn = In(() => {
4992
+ x == null || x.download();
4993
+ }, [x]), rn = In(() => {
4994
+ p == null || p.undo(), S((p == null ? void 0 : p.canUndo()) || !1), tn((p == null ? void 0 : p.canRedo()) || !1);
4995
+ }, [p]), an = In(() => {
4996
+ p == null || p.redo(), tn((p == null ? void 0 : p.canRedo()) || !1), tn((p == null ? void 0 : p.canRedo()) || !1);
4997
+ }, [p]), on = In(
4998
+ (P) => {
4999
+ C(P.target.value);
4999
5000
  },
5000
5001
  []
5001
- ), rn = In(() => {
5002
+ ), en = In(() => {
5002
5003
  if (!E)
5003
5004
  return;
5004
- const N = Number.parseInt(Y, 10);
5005
- if (Number.isNaN(N)) {
5006
- on(String(h));
5005
+ const P = Number.parseInt(sn, 10);
5006
+ if (Number.isNaN(P)) {
5007
+ C(String(h));
5007
5008
  return;
5008
5009
  }
5009
- const $ = Math.min(Math.max(N, 1), R || 0);
5010
- on(String($)), E.scrollToPage({
5011
- pageNumber: $
5010
+ const X = Math.min(Math.max(P, 1), R || 0);
5011
+ C(String(X)), E.scrollToPage({
5012
+ pageNumber: X
5012
5013
  });
5013
- }, [h, Y, E, R]);
5014
+ }, [h, sn, E, R]);
5014
5015
  return /* @__PURE__ */ Vn("div", { className: "toolbar", children: [
5015
5016
  /* @__PURE__ */ Vn("div", { className: "leftButtonSet", children: [
5016
- !(x != null && x.includes("zoomOut")) && /* @__PURE__ */ O(
5017
+ !(w != null && w.includes("zoomOut")) && /* @__PURE__ */ L(
5017
5018
  "span",
5018
5019
  {
5019
5020
  className: `tbButton ${u ? "" : "disabled"}`,
5020
- title: A("zoomOut"),
5021
- onClick: U,
5022
- children: /* @__PURE__ */ O("i", { className: "fal fa-minus" })
5021
+ title: T("zoomOut"),
5022
+ onClick: un,
5023
+ children: /* @__PURE__ */ L("i", { className: "fal fa-minus" })
5023
5024
  }
5024
5025
  ),
5025
- !(x != null && x.includes("zoomIn")) && /* @__PURE__ */ O(
5026
+ !(w != null && w.includes("zoomIn")) && /* @__PURE__ */ L(
5026
5027
  "span",
5027
5028
  {
5028
5029
  className: `tbButton ${u ? "" : "disabled"}`,
5029
- title: A("zoomIn"),
5030
- onClick: D,
5031
- children: /* @__PURE__ */ O("i", { className: "fal fa-plus" })
5030
+ title: T("zoomIn"),
5031
+ onClick: M,
5032
+ children: /* @__PURE__ */ L("i", { className: "fal fa-plus" })
5032
5033
  }
5033
5034
  ),
5034
- !(x != null && x.includes("fitWidth")) && /* @__PURE__ */ O(
5035
+ !(w != null && w.includes("fitWidth")) && /* @__PURE__ */ L(
5035
5036
  "span",
5036
5037
  {
5037
5038
  className: `tbButton ${u ? "" : "disabled"}`,
5038
- title: A("resetZoom"),
5039
- onClick: fn,
5040
- children: /* @__PURE__ */ O("i", { className: "fal fa-expand" })
5039
+ title: T("resetZoom"),
5040
+ onClick: V,
5041
+ children: /* @__PURE__ */ L("i", { className: "fal fa-expand" })
5041
5042
  }
5042
5043
  ),
5043
- ln.map((N) => Vf(N) ? /* @__PURE__ */ O(
5044
+ H.map((P) => Vf(P) ? /* @__PURE__ */ L(
5044
5045
  "span",
5045
5046
  {
5046
- className: `tbButton ${N.disabled ? "disabled" : ""}`,
5047
- title: A(N.title),
5048
- onClick: N.onClick,
5049
- children: N.icon ? /* @__PURE__ */ O("i", { className: N.icon }) : N.label
5047
+ className: `tbButton ${P.disabled ? "disabled" : ""}`,
5048
+ title: T(P.title),
5049
+ onClick: P.onClick,
5050
+ children: P.icon ? /* @__PURE__ */ L("i", { className: P.icon }) : P.label
5050
5051
  },
5051
- N.id
5052
- ) : Jf(N) ? /* @__PURE__ */ O("div", { className: "tbSpacer" }, N.id) : null)
5052
+ P.id
5053
+ ) : Jf(P) ? /* @__PURE__ */ L("div", { className: "tbSpacer" }, P.id) : null)
5053
5054
  ] }),
5054
- /* @__PURE__ */ O("div", { className: "centerButtonSet", children: /* @__PURE__ */ Vn("label", { className: "tbInputLabel", children: [
5055
- /* @__PURE__ */ O(
5055
+ /* @__PURE__ */ L("div", { className: "centerButtonSet", children: /* @__PURE__ */ Vn("label", { className: "tbInputLabel", children: [
5056
+ /* @__PURE__ */ L(
5056
5057
  "input",
5057
5058
  {
5058
5059
  type: "text",
5059
- title: A("pageNumberTitle"),
5060
+ title: T("pageNumberTitle"),
5060
5061
  className: `tbInput ${R ? "" : "disabled"}`,
5061
- value: Y,
5062
- onChange: an,
5063
- onBlur: rn,
5062
+ value: sn,
5063
+ onChange: on,
5064
+ onBlur: en,
5064
5065
  min: "1"
5065
5066
  }
5066
5067
  ),
5067
5068
  " / ",
5068
- /* @__PURE__ */ O("span", { id: "viewerContainer-numberPages", children: R ?? "?" })
5069
+ /* @__PURE__ */ L("span", { id: "viewerContainer-numberPages", children: R ?? "?" })
5069
5070
  ] }) }),
5070
5071
  /* @__PURE__ */ Vn("div", { className: "rightButtonSet", children: [
5071
- !(x != null && x.includes("download")) && /* @__PURE__ */ O(
5072
+ !(w != null && w.includes("download")) && /* @__PURE__ */ L(
5072
5073
  "span",
5073
5074
  {
5074
- className: `tbButton ${w ? "" : "disabled"}`,
5075
- title: A("download"),
5076
- onClick: J,
5077
- children: /* @__PURE__ */ O("i", { className: "fal fa-arrow-to-bottom" })
5075
+ className: `tbButton ${x ? "" : "disabled"}`,
5076
+ title: T("download"),
5077
+ onClick: nn,
5078
+ children: /* @__PURE__ */ L("i", { className: "fal fa-arrow-to-bottom" })
5078
5079
  }
5079
5080
  ),
5080
- !(x != null && x.includes("undo")) && /* @__PURE__ */ O(
5081
+ !(w != null && w.includes("undo")) && I === "annotation" && /* @__PURE__ */ L(
5081
5082
  "span",
5082
5083
  {
5083
- className: `tbButton ${!p || !T ? "disabled" : ""}`,
5084
- title: A("undo"),
5085
- onClick: en,
5086
- children: /* @__PURE__ */ O("i", { className: "fal fa-arrow-turn-left" })
5084
+ className: `tbButton ${!p || !N ? "disabled" : ""}`,
5085
+ title: T("undo"),
5086
+ onClick: rn,
5087
+ children: /* @__PURE__ */ L("i", { className: "fal fa-arrow-turn-left" })
5087
5088
  }
5088
5089
  ),
5089
- !(x != null && x.includes("redo")) && /* @__PURE__ */ O(
5090
+ !(w != null && w.includes("redo")) && I === "annotation" && /* @__PURE__ */ L(
5090
5091
  "span",
5091
5092
  {
5092
- className: `tbButton ${!p || !S ? "disabled" : ""}`,
5093
- title: A("redo"),
5094
- onClick: tn,
5095
- children: /* @__PURE__ */ O("i", { className: "fal fa-arrow-turn-right" })
5093
+ className: `tbButton ${!p || !D ? "disabled" : ""}`,
5094
+ title: T("redo"),
5095
+ onClick: an,
5096
+ children: /* @__PURE__ */ L("i", { className: "fal fa-arrow-turn-right" })
5096
5097
  }
5097
5098
  ),
5098
- H.map((N) => Vf(N) ? /* @__PURE__ */ Vn(
5099
+ Q.map((P) => Vf(P) ? /* @__PURE__ */ Vn(
5099
5100
  "span",
5100
5101
  {
5101
- className: `tbButton ${N.disabled ? "disabled" : ""} ${N.primary ? "primary" : ""}`,
5102
- title: A(N.title),
5103
- onClick: N.onClick,
5102
+ className: `tbButton ${P.disabled ? "disabled" : ""} ${P.primary ? "primary" : ""}`,
5103
+ title: T(P.title),
5104
+ onClick: P.onClick,
5104
5105
  children: [
5105
- N.icon && /* @__PURE__ */ O("i", { className: N.icon }),
5106
+ P.icon && /* @__PURE__ */ L("i", { className: P.icon }),
5106
5107
  " ",
5107
- N.label && /* @__PURE__ */ O("span", { className: "label", children: N.label })
5108
+ P.label && /* @__PURE__ */ L("span", { className: "label", children: P.label })
5108
5109
  ]
5109
5110
  },
5110
- N.id
5111
- ) : Jf(N) ? /* @__PURE__ */ O("div", { className: "tbSpacer" }, N.id) : null)
5111
+ P.id
5112
+ ) : Jf(P) ? /* @__PURE__ */ L("div", { className: "tbSpacer" }, P.id) : null)
5112
5113
  ] })
5113
5114
  ] });
5114
5115
  }
@@ -5122,18 +5123,18 @@ function b_({
5122
5123
  name: h,
5123
5124
  hideToolbar: u = !1,
5124
5125
  onDocumentLoaded: E,
5125
- locale: w,
5126
+ locale: x,
5126
5127
  translations: R,
5127
- usage: x
5128
+ usage: w
5128
5129
  }) {
5129
- const { engine: p, isLoading: F, error: A } = jp({
5130
+ const { engine: p, isLoading: F, error: I } = jp({
5130
5131
  worker: !1,
5131
5132
  wasmUrl: `https://kopjra-public.s3.eu-west-1.amazonaws.com/wias/pdfium/pdfium-${c_.config.embedpdf}.wasm`
5132
- }), [T, L] = mn(!1), [S, C] = mn(!1), [ln, H] = mn(!1), Y = Pe(null);
5133
+ }), [T, N] = mn(!1), [S, D] = mn(!1), [tn, H] = mn(!1), Q = Pe(null);
5133
5134
  Dn(() => {
5134
5135
  p && y0(p);
5135
5136
  }, [p]);
5136
- const on = Mt(() => [
5137
+ const sn = Mt(() => [
5137
5138
  ae(a0),
5138
5139
  ae(i0),
5139
5140
  ae(f0),
@@ -5152,78 +5153,79 @@ function b_({
5152
5153
  ae(b0, {
5153
5154
  autoCommit: !0
5154
5155
  })
5155
- ], []), D = `pdf-sentinel-doc-${Math.random().toString(36).substring(2, 9)}`, [U, fn] = mn(null), [J, en] = mn(null), [tn, an] = mn(null), [rn, N] = mn(null), [$, Q] = mn(1), [G, dn] = mn(0), [Nn, _e] = mn(null), [Fn, Rn] = mn(null), [Oe, Pn] = mn(null);
5156
+ ], []), C = `pdf-sentinel-doc-${Math.random().toString(36).substring(2, 9)}`, [M, un] = mn(null), [V, nn] = mn(null), [rn, an] = mn(null), [on, en] = mn(null), [P, X] = mn(1), [G, dn] = mn(0), [Nn, _e] = mn(null), [Fn, Rn] = mn(null), [Oe, Pn] = mn(null);
5156
5157
  Dn(() => {
5157
5158
  var he;
5158
- (he = Y.current) == null || he.setLocale(w);
5159
- }, [w, Y.current]);
5160
- const On = In(({ toolbarButtons: he, removeButtons: Le }) => /* @__PURE__ */ O(fs, { locale: w, translations: R, children: u ? null : /* @__PURE__ */ O(
5159
+ (he = Q.current) == null || he.setLocale(x);
5160
+ }, [x, Q.current]);
5161
+ const On = In(({ toolbarButtons: he, removeButtons: Le }) => /* @__PURE__ */ L(fs, { locale: x, translations: R, children: u ? null : /* @__PURE__ */ L(
5161
5162
  s_,
5162
5163
  {
5163
- documentId: D,
5164
+ documentId: C,
5164
5165
  buttons: he || [],
5165
5166
  removeButtons: Le || [],
5166
- currentPage: $,
5167
+ currentPage: P,
5167
5168
  totalPages: G,
5168
- zoomCapability: U,
5169
- scrollCapability: tn,
5170
- exportCapability: J,
5171
- historyCapability: rn,
5172
- annotationsApi: Fn
5169
+ zoomCapability: M,
5170
+ scrollCapability: rn,
5171
+ exportCapability: V,
5172
+ historyCapability: on,
5173
+ annotationsApi: Fn,
5174
+ usageType: w.type
5173
5175
  }
5174
- ) }), [w, R, $, G, u, U, J, tn, rn]), at = In(() => /* @__PURE__ */ O(n0, { engine: p, isLoading: F, error: A, children: /* @__PURE__ */ O(
5176
+ ) }), [x, R, P, G, u, M, V, rn, on]), at = In(() => /* @__PURE__ */ L(n0, { engine: p, isLoading: F, error: I, children: /* @__PURE__ */ L(
5175
5177
  f_,
5176
5178
  {
5177
- setZoomCapability: fn,
5178
- setExportCapability: en,
5179
+ setZoomCapability: un,
5180
+ setExportCapability: nn,
5179
5181
  setScrollCapability: an,
5180
- setHistoryCapability: N,
5181
- setCurrentPage: Q,
5182
+ setHistoryCapability: en,
5183
+ setCurrentPage: X,
5182
5184
  setTotalPages: dn,
5183
5185
  setForm: _e,
5184
5186
  setAnnotationsApi: Rn,
5185
- plugins: on,
5187
+ plugins: sn,
5186
5188
  hideToolbar: u,
5187
- documentId: D,
5189
+ documentId: C,
5188
5190
  pdf: d,
5189
5191
  name: h,
5190
- setLoadingPdf: C,
5191
- setLoadingError: L,
5192
+ setLoadingPdf: D,
5193
+ setLoadingError: N,
5192
5194
  setClosedPdf: H,
5193
5195
  onDocumentLoaded: E,
5194
- usage: x,
5195
- initialLocale: w,
5196
+ usage: w,
5197
+ initialLocale: x,
5196
5198
  setPdfBuffer: Pn,
5197
- ref: Y
5199
+ ref: Q
5198
5200
  }
5199
- ) }), [p, F, A, u, d]);
5201
+ ) }), [p, F, I, u, d]);
5200
5202
  return {
5201
- PdfSentinelContainer: In(({ children: he }) => /* @__PURE__ */ O("div", { className: "pdf-sentinel-root", children: he }), []),
5203
+ PdfSentinelContainer: In(({ children: he }) => /* @__PURE__ */ L("div", { className: "pdf-sentinel-root", children: he }), []),
5202
5204
  Toolbar: On,
5203
5205
  PdfSentinel: at,
5204
5206
  api: { form: Nn, annotation: Fn },
5205
- currentPage: $,
5207
+ currentPage: P,
5206
5208
  totalPages: G,
5207
5209
  loadingPdf: S,
5208
5210
  loadingError: T,
5209
5211
  initializedDocument: Oe,
5210
5212
  engine: p,
5211
- closedPdf: ln,
5213
+ closedPdf: tn,
5212
5214
  helpers: {
5213
5215
  zoomIn: () => {
5214
- U == null || U.zoomIn();
5216
+ M == null || M.zoomIn();
5215
5217
  },
5216
5218
  zoomOut: () => {
5217
- U == null || U.zoomOut();
5219
+ M == null || M.zoomOut();
5218
5220
  },
5219
5221
  resetZoom: () => {
5220
- U == null || U.requestZoom(ru.FitWidth);
5222
+ M == null || M.requestZoom(ru.FitWidth);
5221
5223
  },
5222
5224
  scrollToPage: (he) => {
5223
- tn == null || tn.scrollToPage({ pageNumber: he });
5225
+ rn == null || rn.scrollToPage({ pageNumber: he });
5224
5226
  },
5225
5227
  download: () => {
5226
- J == null || J.download();
5228
+ V == null || V.download();
5227
5229
  }
5228
5230
  }
5229
5231
  };