@civet/core 3.0.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -1,14 +1,14 @@
1
- import { createContext as xe, useContext as Ae, useMemo as se, useReducer as Ce, useState as Pe, useEffect as de, useCallback as Le } from "react";
2
- import { jsx as ue } from "react/jsx-runtime";
3
- const ae = xe({});
4
- ae.displayName = "ConfigContext";
5
- const Ze = ae.Consumer, Ue = () => Ae(ae), fe = xe({
1
+ import { createContext as Ie, useContext as xe, useMemo as ie, useReducer as qe, useState as Ce, useEffect as ce, useCallback as Le } from "react";
2
+ import { jsx as se } from "react/jsx-runtime";
3
+ const ue = Ie({});
4
+ ue.displayName = "ConfigContext";
5
+ const Ze = ue.Consumer, Ue = () => xe(ue), ae = Ie({
6
6
  name: "",
7
7
  query: void 0,
8
8
  options: void 0,
9
9
  request: "",
10
10
  revision: "",
11
- data: [],
11
+ data: void 0,
12
12
  meta: {},
13
13
  error: void 0,
14
14
  isEmpty: !0,
@@ -20,9 +20,9 @@ const Ze = ae.Consumer, Ue = () => Ae(ae), fe = xe({
20
20
  next: { request: "", revision: "" },
21
21
  notify: () => Promise.reject(new Error("Missing context provider"))
22
22
  });
23
- fe.displayName = "ResourceContext";
24
- const et = fe.Consumer, tt = () => Ae(fe);
25
- class Be {
23
+ ae.displayName = "ResourceContext";
24
+ const et = ae.Consumer, tt = () => xe(ae);
25
+ class Ae {
26
26
  listeners = /* @__PURE__ */ new Set();
27
27
  subscribe = (s) => {
28
28
  if (typeof s != "function")
@@ -33,11 +33,11 @@ class Be {
33
33
  };
34
34
  isSubscribed = (s) => this.listeners.has(s);
35
35
  trigger = (...s) => {
36
- this.listeners.forEach((u) => u(...s));
36
+ this.listeners.forEach((a) => a(...s));
37
37
  };
38
38
  }
39
- class je {
40
- notifier = new Be();
39
+ class Be {
40
+ notifier = new Ae();
41
41
  locked = !1;
42
42
  aborted = !1;
43
43
  constructor() {
@@ -59,8 +59,8 @@ class je {
59
59
  listen = (s) => {
60
60
  if (this.locked) return () => {
61
61
  };
62
- const u = this.notifier.isSubscribed(s), p = this.notifier.subscribe(s);
63
- return this.aborted && !u && s(), p;
62
+ const a = this.notifier.isSubscribed(s), p = this.notifier.subscribe(s);
63
+ return this.aborted && !a && s(), p;
64
64
  };
65
65
  abort = () => {
66
66
  this.locked || (this.lock(), Object.defineProperty(this, "aborted", {
@@ -81,8 +81,8 @@ class je {
81
81
  proxy = () => {
82
82
  const s = this;
83
83
  return {
84
- listen(u) {
85
- return s.listen(u);
84
+ listen(a) {
85
+ return s.listen(a);
86
86
  },
87
87
  get locked() {
88
88
  return s.locked;
@@ -93,148 +93,148 @@ class je {
93
93
  };
94
94
  };
95
95
  }
96
- class ke {
96
+ class Pe {
97
97
  channels = {};
98
- subscribe = (s, u) => {
98
+ subscribe = (s, a) => {
99
99
  if (s == null || !`${s}`)
100
100
  throw new Error("Channel is required");
101
- return this.channels[s] == null && (this.channels[s] = new Be()), this.channels[s].subscribe(u);
101
+ return this.channels[s] == null && (this.channels[s] = new Ae()), this.channels[s].subscribe(a);
102
102
  };
103
- isSubscribed = (s, u) => {
103
+ isSubscribed = (s, a) => {
104
104
  if (s == null || !`${s}`)
105
105
  throw new Error("Channel is required");
106
- return this.channels[s] != null && this.channels[s].isSubscribed(u);
106
+ return this.channels[s] != null && this.channels[s].isSubscribed(a);
107
107
  };
108
- trigger = (s, ...u) => {
108
+ trigger = (s, ...a) => {
109
109
  s == null ? Object.values(this.channels).forEach(
110
- (p) => p.trigger(...u)
111
- ) : this.channels[s] != null && this.channels[s].trigger(...u);
110
+ (p) => p.trigger(...a)
111
+ ) : this.channels[s] != null && this.channels[s].trigger(...a);
112
112
  };
113
113
  }
114
114
  function rt(...h) {
115
- return h.length === 0 ? (s) => s : h.length === 1 ? h[0] : h.reduce((s, u) => (p) => s(u(p)));
115
+ return h.length === 0 ? (s) => s : h.length === 1 ? h[0] : h.reduce((s, a) => (p) => s(a(p)));
116
116
  }
117
- function Se(h) {
117
+ function je(h) {
118
118
  return h && h.__esModule && Object.prototype.hasOwnProperty.call(h, "default") ? h.default : h;
119
119
  }
120
- var he, Ee;
121
- function De() {
122
- return Ee || (Ee = 1, he = function h(s, u) {
123
- if (s === u) return !0;
124
- if (s && u && typeof s == "object" && typeof u == "object") {
125
- if (s.constructor !== u.constructor) return !1;
126
- var p, g, y;
120
+ var de, _e;
121
+ function ke() {
122
+ return _e || (_e = 1, de = function h(s, a) {
123
+ if (s === a) return !0;
124
+ if (s && a && typeof s == "object" && typeof a == "object") {
125
+ if (s.constructor !== a.constructor) return !1;
126
+ var p, w, b;
127
127
  if (Array.isArray(s)) {
128
- if (p = s.length, p != u.length) return !1;
129
- for (g = p; g-- !== 0; )
130
- if (!h(s[g], u[g])) return !1;
128
+ if (p = s.length, p != a.length) return !1;
129
+ for (w = p; w-- !== 0; )
130
+ if (!h(s[w], a[w])) return !1;
131
131
  return !0;
132
132
  }
133
- if (s.constructor === RegExp) return s.source === u.source && s.flags === u.flags;
134
- if (s.valueOf !== Object.prototype.valueOf) return s.valueOf() === u.valueOf();
135
- if (s.toString !== Object.prototype.toString) return s.toString() === u.toString();
136
- if (y = Object.keys(s), p = y.length, p !== Object.keys(u).length) return !1;
137
- for (g = p; g-- !== 0; )
138
- if (!Object.prototype.hasOwnProperty.call(u, y[g])) return !1;
139
- for (g = p; g-- !== 0; ) {
140
- var B = y[g];
141
- if (!h(s[B], u[B])) return !1;
133
+ if (s.constructor === RegExp) return s.source === a.source && s.flags === a.flags;
134
+ if (s.valueOf !== Object.prototype.valueOf) return s.valueOf() === a.valueOf();
135
+ if (s.toString !== Object.prototype.toString) return s.toString() === a.toString();
136
+ if (b = Object.keys(s), p = b.length, p !== Object.keys(a).length) return !1;
137
+ for (w = p; w-- !== 0; )
138
+ if (!Object.prototype.hasOwnProperty.call(a, b[w])) return !1;
139
+ for (w = p; w-- !== 0; ) {
140
+ var j = b[w];
141
+ if (!h(s[j], a[j])) return !1;
142
142
  }
143
143
  return !0;
144
144
  }
145
- return s !== s && u !== u;
146
- }), he;
145
+ return s !== s && a !== a;
146
+ }), de;
147
147
  }
148
- var Re = De();
149
- const Oe = /* @__PURE__ */ Se(Re);
150
- function ie(h) {
148
+ var De = ke();
149
+ const Oe = /* @__PURE__ */ je(De);
150
+ function oe(h) {
151
151
  throw new Error('Could not dynamically require "' + h + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
152
152
  }
153
- var pe = { exports: {} }, Ie;
154
- function Ne() {
155
- return Ie || (Ie = 1, (function(h, s) {
156
- (function(u) {
157
- h.exports = u();
153
+ var he = { exports: {} }, Ee;
154
+ function Re() {
155
+ return Ee || (Ee = 1, (function(h, s) {
156
+ (function(a) {
157
+ h.exports = a();
158
158
  })(function() {
159
- return (function u(p, g, y) {
160
- function B(q, M) {
161
- if (!g[q]) {
159
+ return (function a(p, w, b) {
160
+ function j(q, T) {
161
+ if (!w[q]) {
162
162
  if (!p[q]) {
163
- var N = typeof ie == "function" && ie;
164
- if (!M && N) return N(q, !0);
163
+ var M = typeof oe == "function" && oe;
164
+ if (!T && M) return M(q, !0);
165
165
  if (k) return k(q, !0);
166
166
  throw new Error("Cannot find module '" + q + "'");
167
167
  }
168
- M = g[q] = { exports: {} }, p[q][0].call(M.exports, function(O) {
169
- var F = p[q][1][O];
170
- return B(F || O);
171
- }, M, M.exports, u, p, g, y);
168
+ T = w[q] = { exports: {} }, p[q][0].call(T.exports, function(R) {
169
+ var F = p[q][1][R];
170
+ return j(F || R);
171
+ }, T, T.exports, a, p, w, b);
172
172
  }
173
- return g[q].exports;
173
+ return w[q].exports;
174
174
  }
175
- for (var k = typeof ie == "function" && ie, U = 0; U < y.length; U++) B(y[U]);
176
- return B;
177
- })({ 1: [function(u, p, g) {
178
- (function(y, B, k, U, q, M, N, O, F) {
179
- var E = u("crypto");
180
- function S(a, d) {
181
- d = A(a, d);
175
+ for (var k = typeof oe == "function" && oe, P = 0; P < b.length; P++) j(b[P]);
176
+ return j;
177
+ })({ 1: [function(a, p, w) {
178
+ (function(b, j, k, P, q, T, M, R, F) {
179
+ var E = a("crypto");
180
+ function S(u, d) {
181
+ d = A(u, d);
182
182
  var r;
183
- return (r = d.algorithm !== "passthrough" ? E.createHash(d.algorithm) : new C()).write === void 0 && (r.write = r.update, r.end = r.update), v(d, r).dispatch(a), r.update || r.end(""), r.digest ? r.digest(d.encoding === "buffer" ? void 0 : d.encoding) : (a = r.read(), d.encoding !== "buffer" ? a.toString(d.encoding) : a);
183
+ return (r = d.algorithm !== "passthrough" ? E.createHash(d.algorithm) : new C()).write === void 0 && (r.write = r.update, r.end = r.update), v(d, r).dispatch(u), r.update || r.end(""), r.digest ? r.digest(d.encoding === "buffer" ? void 0 : d.encoding) : (u = r.read(), d.encoding !== "buffer" ? u.toString(d.encoding) : u);
184
184
  }
185
- (g = p.exports = S).sha1 = function(a) {
186
- return S(a);
187
- }, g.keys = function(a) {
188
- return S(a, { excludeValues: !0, algorithm: "sha1", encoding: "hex" });
189
- }, g.MD5 = function(a) {
190
- return S(a, { algorithm: "md5", encoding: "hex" });
191
- }, g.keysMD5 = function(a) {
192
- return S(a, { algorithm: "md5", encoding: "hex", excludeValues: !0 });
185
+ (w = p.exports = S).sha1 = function(u) {
186
+ return S(u);
187
+ }, w.keys = function(u) {
188
+ return S(u, { excludeValues: !0, algorithm: "sha1", encoding: "hex" });
189
+ }, w.MD5 = function(u) {
190
+ return S(u, { algorithm: "md5", encoding: "hex" });
191
+ }, w.keysMD5 = function(u) {
192
+ return S(u, { algorithm: "md5", encoding: "hex", excludeValues: !0 });
193
193
  };
194
- var c = E.getHashes ? E.getHashes().slice() : ["sha1", "md5"], b = (c.push("passthrough"), ["buffer", "hex", "binary", "base64"]);
195
- function A(a, d) {
194
+ var c = E.getHashes ? E.getHashes().slice() : ["sha1", "md5"], m = (c.push("passthrough"), ["buffer", "hex", "binary", "base64"]);
195
+ function A(u, d) {
196
196
  var r = {};
197
- if (r.algorithm = (d = d || {}).algorithm || "sha1", r.encoding = d.encoding || "hex", r.excludeValues = !!d.excludeValues, r.algorithm = r.algorithm.toLowerCase(), r.encoding = r.encoding.toLowerCase(), r.ignoreUnknown = d.ignoreUnknown === !0, r.respectType = d.respectType !== !1, r.respectFunctionNames = d.respectFunctionNames !== !1, r.respectFunctionProperties = d.respectFunctionProperties !== !1, r.unorderedArrays = d.unorderedArrays === !0, r.unorderedSets = d.unorderedSets !== !1, r.unorderedObjects = d.unorderedObjects !== !1, r.replacer = d.replacer || void 0, r.excludeKeys = d.excludeKeys || void 0, a === void 0) throw new Error("Object argument required.");
197
+ if (r.algorithm = (d = d || {}).algorithm || "sha1", r.encoding = d.encoding || "hex", r.excludeValues = !!d.excludeValues, r.algorithm = r.algorithm.toLowerCase(), r.encoding = r.encoding.toLowerCase(), r.ignoreUnknown = d.ignoreUnknown === !0, r.respectType = d.respectType !== !1, r.respectFunctionNames = d.respectFunctionNames !== !1, r.respectFunctionProperties = d.respectFunctionProperties !== !1, r.unorderedArrays = d.unorderedArrays === !0, r.unorderedSets = d.unorderedSets !== !1, r.unorderedObjects = d.unorderedObjects !== !1, r.replacer = d.replacer || void 0, r.excludeKeys = d.excludeKeys || void 0, u === void 0) throw new Error("Object argument required.");
198
198
  for (var o = 0; o < c.length; ++o) c[o].toLowerCase() === r.algorithm.toLowerCase() && (r.algorithm = c[o]);
199
199
  if (c.indexOf(r.algorithm) === -1) throw new Error('Algorithm "' + r.algorithm + '" not supported. supported values: ' + c.join(", "));
200
- if (b.indexOf(r.encoding) === -1 && r.algorithm !== "passthrough") throw new Error('Encoding "' + r.encoding + '" not supported. supported values: ' + b.join(", "));
200
+ if (m.indexOf(r.encoding) === -1 && r.algorithm !== "passthrough") throw new Error('Encoding "' + r.encoding + '" not supported. supported values: ' + m.join(", "));
201
201
  return r;
202
202
  }
203
- function _(a) {
204
- if (typeof a == "function") return /^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(a)) != null;
203
+ function _(u) {
204
+ if (typeof u == "function") return /^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(u)) != null;
205
205
  }
206
- function v(a, d, r) {
206
+ function v(u, d, r) {
207
207
  r = r || [];
208
208
  function o(t) {
209
209
  return d.update ? d.update(t, "utf8") : d.write(t, "utf8");
210
210
  }
211
211
  return { dispatch: function(t) {
212
- return this["_" + ((t = a.replacer ? a.replacer(t) : t) === null ? "null" : typeof t)](t);
212
+ return this["_" + ((t = u.replacer ? u.replacer(t) : t) === null ? "null" : typeof t)](t);
213
213
  }, _object: function(t) {
214
- var f, l = Object.prototype.toString.call(t), P = /\[object (.*)\]/i.exec(l);
215
- if (P = (P = P ? P[1] : "unknown:[" + l + "]").toLowerCase(), 0 <= (l = r.indexOf(t))) return this.dispatch("[CIRCULAR:" + l + "]");
214
+ var f, l = Object.prototype.toString.call(t), L = /\[object (.*)\]/i.exec(l);
215
+ if (L = (L = L ? L[1] : "unknown:[" + l + "]").toLowerCase(), 0 <= (l = r.indexOf(t))) return this.dispatch("[CIRCULAR:" + l + "]");
216
216
  if (r.push(t), k !== void 0 && k.isBuffer && k.isBuffer(t)) return o("buffer:"), o(t);
217
- if (P === "object" || P === "function" || P === "asyncfunction") return l = Object.keys(t), a.unorderedObjects && (l = l.sort()), a.respectType === !1 || _(t) || l.splice(0, 0, "prototype", "__proto__", "constructor"), a.excludeKeys && (l = l.filter(function(L) {
218
- return !a.excludeKeys(L);
219
- })), o("object:" + l.length + ":"), f = this, l.forEach(function(L) {
220
- f.dispatch(L), o(":"), a.excludeValues || f.dispatch(t[L]), o(",");
217
+ if (L === "object" || L === "function" || L === "asyncfunction") return l = Object.keys(t), u.unorderedObjects && (l = l.sort()), u.respectType === !1 || _(t) || l.splice(0, 0, "prototype", "__proto__", "constructor"), u.excludeKeys && (l = l.filter(function(U) {
218
+ return !u.excludeKeys(U);
219
+ })), o("object:" + l.length + ":"), f = this, l.forEach(function(U) {
220
+ f.dispatch(U), o(":"), u.excludeValues || f.dispatch(t[U]), o(",");
221
221
  });
222
- if (!this["_" + P]) {
223
- if (a.ignoreUnknown) return o("[" + P + "]");
224
- throw new Error('Unknown object type "' + P + '"');
222
+ if (!this["_" + L]) {
223
+ if (u.ignoreUnknown) return o("[" + L + "]");
224
+ throw new Error('Unknown object type "' + L + '"');
225
225
  }
226
- this["_" + P](t);
227
- }, _array: function(t, L) {
228
- L = L !== void 0 ? L : a.unorderedArrays !== !1;
226
+ this["_" + L](t);
227
+ }, _array: function(t, U) {
228
+ U = U !== void 0 ? U : u.unorderedArrays !== !1;
229
229
  var l = this;
230
- if (o("array:" + t.length + ":"), !L || t.length <= 1) return t.forEach(function(D) {
230
+ if (o("array:" + t.length + ":"), !U || t.length <= 1) return t.forEach(function(D) {
231
231
  return l.dispatch(D);
232
232
  });
233
- var P = [], L = t.map(function(D) {
234
- var j = new C(), Y = r.slice();
235
- return v(a, j, Y).dispatch(D), P = P.concat(Y.slice(r.length)), j.read().toString();
233
+ var L = [], U = t.map(function(D) {
234
+ var B = new C(), Y = r.slice();
235
+ return v(u, B, Y).dispatch(D), L = L.concat(Y.slice(r.length)), B.read().toString();
236
236
  });
237
- return r = r.concat(P), L.sort(), this._array(L, !1);
237
+ return r = r.concat(L), U.sort(), this._array(U, !1);
238
238
  }, _date: function(t) {
239
239
  return o("date:" + t.toJSON());
240
240
  }, _symbol: function(t) {
@@ -246,7 +246,7 @@ function Ne() {
246
246
  }, _string: function(t) {
247
247
  o("string:" + t.length + ":"), o(t.toString());
248
248
  }, _function: function(t) {
249
- o("fn:"), _(t) ? this.dispatch("[native]") : this.dispatch(t.toString()), a.respectFunctionNames !== !1 && this.dispatch("function-name:" + String(t.name)), a.respectFunctionProperties && this._object(t);
249
+ o("fn:"), _(t) ? this.dispatch("[native]") : this.dispatch(t.toString()), u.respectFunctionNames !== !1 && this.dispatch("function-name:" + String(t.name)), u.respectFunctionProperties && this._object(t);
250
250
  }, _number: function(t) {
251
251
  return o("number:" + t.toString());
252
252
  }, _xml: function(t) {
@@ -280,13 +280,13 @@ function Ne() {
280
280
  }, _url: function(t) {
281
281
  return o("url:" + t.toString());
282
282
  }, _map: function(t) {
283
- return o("map:"), t = Array.from(t), this._array(t, a.unorderedSets !== !1);
283
+ return o("map:"), t = Array.from(t), this._array(t, u.unorderedSets !== !1);
284
284
  }, _set: function(t) {
285
- return o("set:"), t = Array.from(t), this._array(t, a.unorderedSets !== !1);
285
+ return o("set:"), t = Array.from(t), this._array(t, u.unorderedSets !== !1);
286
286
  }, _file: function(t) {
287
287
  return o("file:"), this.dispatch([t.name, t.size, t.type, t.lastModfied]);
288
288
  }, _blob: function() {
289
- if (a.ignoreUnknown) return o("[blob]");
289
+ if (u.ignoreUnknown) return o("[blob]");
290
290
  throw Error(`Hashing Blob objects is currently not supported
291
291
  (see https://github.com/puleos/object-hash/issues/26)
292
292
  Use "options.replacer" or "options.ignoreUnknown"
@@ -332,129 +332,129 @@ Use "options.replacer" or "options.ignoreUnknown"
332
332
  } };
333
333
  }
334
334
  function C() {
335
- return { buf: "", write: function(a) {
336
- this.buf += a;
337
- }, end: function(a) {
338
- this.buf += a;
335
+ return { buf: "", write: function(u) {
336
+ this.buf += u;
337
+ }, end: function(u) {
338
+ this.buf += u;
339
339
  }, read: function() {
340
340
  return this.buf;
341
341
  } };
342
342
  }
343
- g.writeToStream = function(a, d, r) {
344
- return r === void 0 && (r = d, d = {}), v(d = A(a, d), r).dispatch(a);
343
+ w.writeToStream = function(u, d, r) {
344
+ return r === void 0 && (r = d, d = {}), v(d = A(u, d), r).dispatch(u);
345
345
  };
346
- }).call(this, u("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, u("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/fake_9a5aa49d.js", "/");
347
- }, { buffer: 3, crypto: 5, lYpoI2: 11 }], 2: [function(u, p, g) {
348
- (function(y, B, k, U, q, M, N, O, F) {
346
+ }).call(this, a("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, a("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/fake_9a5aa49d.js", "/");
347
+ }, { buffer: 3, crypto: 5, lYpoI2: 11 }], 2: [function(a, p, w) {
348
+ (function(b, j, k, P, q, T, M, R, F) {
349
349
  (function(E) {
350
- var S = typeof Uint8Array < "u" ? Uint8Array : Array, c = 43, b = 47, A = 48, _ = 97, v = 65, C = 45, a = 95;
350
+ var S = typeof Uint8Array < "u" ? Uint8Array : Array, c = 43, m = 47, A = 48, _ = 97, v = 65, C = 45, u = 95;
351
351
  function d(r) {
352
- return r = r.charCodeAt(0), r === c || r === C ? 62 : r === b || r === a ? 63 : r < A ? -1 : r < A + 10 ? r - A + 26 + 26 : r < v + 26 ? r - v : r < _ + 26 ? r - _ + 26 : void 0;
352
+ return r = r.charCodeAt(0), r === c || r === C ? 62 : r === m || r === u ? 63 : r < A ? -1 : r < A + 10 ? r - A + 26 + 26 : r < v + 26 ? r - v : r < _ + 26 ? r - _ + 26 : void 0;
353
353
  }
354
354
  E.toByteArray = function(r) {
355
355
  var o, t;
356
356
  if (0 < r.length % 4) throw new Error("Invalid string. Length must be a multiple of 4");
357
- var f = r.length, f = r.charAt(f - 2) === "=" ? 2 : r.charAt(f - 1) === "=" ? 1 : 0, l = new S(3 * r.length / 4 - f), P = 0 < f ? r.length - 4 : r.length, L = 0;
358
- function D(j) {
359
- l[L++] = j;
357
+ var f = r.length, f = r.charAt(f - 2) === "=" ? 2 : r.charAt(f - 1) === "=" ? 1 : 0, l = new S(3 * r.length / 4 - f), L = 0 < f ? r.length - 4 : r.length, U = 0;
358
+ function D(B) {
359
+ l[U++] = B;
360
360
  }
361
- for (o = 0; o < P; o += 4, 0) D((16711680 & (t = d(r.charAt(o)) << 18 | d(r.charAt(o + 1)) << 12 | d(r.charAt(o + 2)) << 6 | d(r.charAt(o + 3)))) >> 16), D((65280 & t) >> 8), D(255 & t);
361
+ for (o = 0; o < L; o += 4, 0) D((16711680 & (t = d(r.charAt(o)) << 18 | d(r.charAt(o + 1)) << 12 | d(r.charAt(o + 2)) << 6 | d(r.charAt(o + 3)))) >> 16), D((65280 & t) >> 8), D(255 & t);
362
362
  return f == 2 ? D(255 & (t = d(r.charAt(o)) << 2 | d(r.charAt(o + 1)) >> 4)) : f == 1 && (D((t = d(r.charAt(o)) << 10 | d(r.charAt(o + 1)) << 4 | d(r.charAt(o + 2)) >> 2) >> 8 & 255), D(255 & t)), l;
363
363
  }, E.fromByteArray = function(r) {
364
- var o, t, f, l, P = r.length % 3, L = "";
365
- function D(j) {
366
- return "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(j);
364
+ var o, t, f, l, L = r.length % 3, U = "";
365
+ function D(B) {
366
+ return "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(B);
367
367
  }
368
- for (o = 0, f = r.length - P; o < f; o += 3) t = (r[o] << 16) + (r[o + 1] << 8) + r[o + 2], L += D((l = t) >> 18 & 63) + D(l >> 12 & 63) + D(l >> 6 & 63) + D(63 & l);
369
- switch (P) {
368
+ for (o = 0, f = r.length - L; o < f; o += 3) t = (r[o] << 16) + (r[o + 1] << 8) + r[o + 2], U += D((l = t) >> 18 & 63) + D(l >> 12 & 63) + D(l >> 6 & 63) + D(63 & l);
369
+ switch (L) {
370
370
  case 1:
371
- L = (L += D((t = r[r.length - 1]) >> 2)) + D(t << 4 & 63) + "==";
371
+ U = (U += D((t = r[r.length - 1]) >> 2)) + D(t << 4 & 63) + "==";
372
372
  break;
373
373
  case 2:
374
- L = (L = (L += D((t = (r[r.length - 2] << 8) + r[r.length - 1]) >> 10)) + D(t >> 4 & 63)) + D(t << 2 & 63) + "=";
374
+ U = (U = (U += D((t = (r[r.length - 2] << 8) + r[r.length - 1]) >> 10)) + D(t >> 4 & 63)) + D(t << 2 & 63) + "=";
375
375
  }
376
- return L;
376
+ return U;
377
377
  };
378
- })(g === void 0 ? this.base64js = {} : g);
379
- }).call(this, u("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, u("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js", "/node_modules/gulp-browserify/node_modules/base64-js/lib");
380
- }, { buffer: 3, lYpoI2: 11 }], 3: [function(u, p, g) {
381
- (function(y, B, c, U, q, M, N, O, F) {
382
- var E = u("base64-js"), S = u("ieee754");
378
+ })(w === void 0 ? this.base64js = {} : w);
379
+ }).call(this, a("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, a("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js", "/node_modules/gulp-browserify/node_modules/base64-js/lib");
380
+ }, { buffer: 3, lYpoI2: 11 }], 3: [function(a, p, w) {
381
+ (function(b, j, c, P, q, T, M, R, F) {
382
+ var E = a("base64-js"), S = a("ieee754");
383
383
  function c(e, n, i) {
384
384
  if (!(this instanceof c)) return new c(e, n, i);
385
- var w, m, x, R, V = typeof e;
386
- if (n === "base64" && V == "string") for (e = (R = e).trim ? R.trim() : R.replace(/^\s+|\s+$/g, ""); e.length % 4 != 0; ) e += "=";
387
- if (V == "number") w = J(e);
388
- else if (V == "string") w = c.byteLength(e, n);
385
+ var y, g, x, O, V = typeof e;
386
+ if (n === "base64" && V == "string") for (e = (O = e).trim ? O.trim() : O.replace(/^\s+|\s+$/g, ""); e.length % 4 != 0; ) e += "=";
387
+ if (V == "number") y = J(e);
388
+ else if (V == "string") y = c.byteLength(e, n);
389
389
  else {
390
390
  if (V != "object") throw new Error("First argument needs to be a number, array or string.");
391
- w = J(e.length);
391
+ y = J(e.length);
392
392
  }
393
- if (c._useTypedArrays ? m = c._augment(new Uint8Array(w)) : ((m = this).length = w, m._isBuffer = !0), c._useTypedArrays && typeof e.byteLength == "number") m._set(e);
394
- else if ($(R = e) || c.isBuffer(R) || R && typeof R == "object" && typeof R.length == "number") for (x = 0; x < w; x++) c.isBuffer(e) ? m[x] = e.readUInt8(x) : m[x] = e[x];
395
- else if (V == "string") m.write(e, 0, n);
396
- else if (V == "number" && !c._useTypedArrays && !i) for (x = 0; x < w; x++) m[x] = 0;
397
- return m;
393
+ if (c._useTypedArrays ? g = c._augment(new Uint8Array(y)) : ((g = this).length = y, g._isBuffer = !0), c._useTypedArrays && typeof e.byteLength == "number") g._set(e);
394
+ else if ($(O = e) || c.isBuffer(O) || O && typeof O == "object" && typeof O.length == "number") for (x = 0; x < y; x++) c.isBuffer(e) ? g[x] = e.readUInt8(x) : g[x] = e[x];
395
+ else if (V == "string") g.write(e, 0, n);
396
+ else if (V == "number" && !c._useTypedArrays && !i) for (x = 0; x < y; x++) g[x] = 0;
397
+ return g;
398
398
  }
399
- function b(e, n, i, w) {
400
- return c._charsWritten = oe((function(m) {
401
- for (var x = [], R = 0; R < m.length; R++) x.push(255 & m.charCodeAt(R));
399
+ function m(e, n, i, y) {
400
+ return c._charsWritten = ne((function(g) {
401
+ for (var x = [], O = 0; O < g.length; O++) x.push(255 & g.charCodeAt(O));
402
402
  return x;
403
- })(n), e, i, w);
403
+ })(n), e, i, y);
404
404
  }
405
- function A(e, n, i, w) {
406
- return c._charsWritten = oe((function(m) {
407
- for (var x, R, V = [], G = 0; G < m.length; G++) R = m.charCodeAt(G), x = R >> 8, R = R % 256, V.push(R), V.push(x);
405
+ function A(e, n, i, y) {
406
+ return c._charsWritten = ne((function(g) {
407
+ for (var x, O, V = [], H = 0; H < g.length; H++) O = g.charCodeAt(H), x = O >> 8, O = O % 256, V.push(O), V.push(x);
408
408
  return V;
409
- })(n), e, i, w);
409
+ })(n), e, i, y);
410
410
  }
411
411
  function _(e, n, i) {
412
- var w = "";
412
+ var y = "";
413
413
  i = Math.min(e.length, i);
414
- for (var m = n; m < i; m++) w += String.fromCharCode(e[m]);
415
- return w;
414
+ for (var g = n; g < i; g++) y += String.fromCharCode(e[g]);
415
+ return y;
416
416
  }
417
417
  function v(e, n, i, x) {
418
418
  x || (I(typeof i == "boolean", "missing or invalid endian"), I(n != null, "missing offset"), I(n + 1 < e.length, "Trying to read beyond buffer length"));
419
- var m, x = e.length;
420
- if (!(x <= n)) return i ? (m = e[n], n + 1 < x && (m |= e[n + 1] << 8)) : (m = e[n] << 8, n + 1 < x && (m |= e[n + 1])), m;
419
+ var g, x = e.length;
420
+ if (!(x <= n)) return i ? (g = e[n], n + 1 < x && (g |= e[n + 1] << 8)) : (g = e[n] << 8, n + 1 < x && (g |= e[n + 1])), g;
421
421
  }
422
422
  function C(e, n, i, x) {
423
423
  x || (I(typeof i == "boolean", "missing or invalid endian"), I(n != null, "missing offset"), I(n + 3 < e.length, "Trying to read beyond buffer length"));
424
- var m, x = e.length;
425
- if (!(x <= n)) return i ? (n + 2 < x && (m = e[n + 2] << 16), n + 1 < x && (m |= e[n + 1] << 8), m |= e[n], n + 3 < x && (m += e[n + 3] << 24 >>> 0)) : (n + 1 < x && (m = e[n + 1] << 16), n + 2 < x && (m |= e[n + 2] << 8), n + 3 < x && (m |= e[n + 3]), m += e[n] << 24 >>> 0), m;
424
+ var g, x = e.length;
425
+ if (!(x <= n)) return i ? (n + 2 < x && (g = e[n + 2] << 16), n + 1 < x && (g |= e[n + 1] << 8), g |= e[n], n + 3 < x && (g += e[n + 3] << 24 >>> 0)) : (n + 1 < x && (g = e[n + 1] << 16), n + 2 < x && (g |= e[n + 2] << 8), n + 3 < x && (g |= e[n + 3]), g += e[n] << 24 >>> 0), g;
426
426
  }
427
- function a(e, n, i, w) {
428
- if (w || (I(typeof i == "boolean", "missing or invalid endian"), I(n != null, "missing offset"), I(n + 1 < e.length, "Trying to read beyond buffer length")), !(e.length <= n)) return w = v(e, n, i, !0), 32768 & w ? -1 * (65535 - w + 1) : w;
427
+ function u(e, n, i, y) {
428
+ if (y || (I(typeof i == "boolean", "missing or invalid endian"), I(n != null, "missing offset"), I(n + 1 < e.length, "Trying to read beyond buffer length")), !(e.length <= n)) return y = v(e, n, i, !0), 32768 & y ? -1 * (65535 - y + 1) : y;
429
429
  }
430
- function d(e, n, i, w) {
431
- if (w || (I(typeof i == "boolean", "missing or invalid endian"), I(n != null, "missing offset"), I(n + 3 < e.length, "Trying to read beyond buffer length")), !(e.length <= n)) return w = C(e, n, i, !0), 2147483648 & w ? -1 * (4294967295 - w + 1) : w;
430
+ function d(e, n, i, y) {
431
+ if (y || (I(typeof i == "boolean", "missing or invalid endian"), I(n != null, "missing offset"), I(n + 3 < e.length, "Trying to read beyond buffer length")), !(e.length <= n)) return y = C(e, n, i, !0), 2147483648 & y ? -1 * (4294967295 - y + 1) : y;
432
432
  }
433
- function r(e, n, i, w) {
434
- return w || (I(typeof i == "boolean", "missing or invalid endian"), I(n + 3 < e.length, "Trying to read beyond buffer length")), S.read(e, n, i, 23, 4);
433
+ function r(e, n, i, y) {
434
+ return y || (I(typeof i == "boolean", "missing or invalid endian"), I(n + 3 < e.length, "Trying to read beyond buffer length")), S.read(e, n, i, 23, 4);
435
435
  }
436
- function o(e, n, i, w) {
437
- return w || (I(typeof i == "boolean", "missing or invalid endian"), I(n + 7 < e.length, "Trying to read beyond buffer length")), S.read(e, n, i, 52, 8);
436
+ function o(e, n, i, y) {
437
+ return y || (I(typeof i == "boolean", "missing or invalid endian"), I(n + 7 < e.length, "Trying to read beyond buffer length")), S.read(e, n, i, 52, 8);
438
438
  }
439
- function t(e, n, i, w, m) {
440
- if (m || (I(n != null, "missing value"), I(typeof w == "boolean", "missing or invalid endian"), I(i != null, "missing offset"), I(i + 1 < e.length, "trying to write beyond buffer length"), le(n, 65535)), m = e.length, !(m <= i)) for (var x = 0, R = Math.min(m - i, 2); x < R; x++) e[i + x] = (n & 255 << 8 * (w ? x : 1 - x)) >>> 8 * (w ? x : 1 - x);
439
+ function t(e, n, i, y, g) {
440
+ if (g || (I(n != null, "missing value"), I(typeof y == "boolean", "missing or invalid endian"), I(i != null, "missing offset"), I(i + 1 < e.length, "trying to write beyond buffer length"), fe(n, 65535)), g = e.length, !(g <= i)) for (var x = 0, O = Math.min(g - i, 2); x < O; x++) e[i + x] = (n & 255 << 8 * (y ? x : 1 - x)) >>> 8 * (y ? x : 1 - x);
441
441
  }
442
- function f(e, n, i, w, m) {
443
- if (m || (I(n != null, "missing value"), I(typeof w == "boolean", "missing or invalid endian"), I(i != null, "missing offset"), I(i + 3 < e.length, "trying to write beyond buffer length"), le(n, 4294967295)), m = e.length, !(m <= i)) for (var x = 0, R = Math.min(m - i, 4); x < R; x++) e[i + x] = n >>> 8 * (w ? x : 3 - x) & 255;
442
+ function f(e, n, i, y, g) {
443
+ if (g || (I(n != null, "missing value"), I(typeof y == "boolean", "missing or invalid endian"), I(i != null, "missing offset"), I(i + 3 < e.length, "trying to write beyond buffer length"), fe(n, 4294967295)), g = e.length, !(g <= i)) for (var x = 0, O = Math.min(g - i, 4); x < O; x++) e[i + x] = n >>> 8 * (y ? x : 3 - x) & 255;
444
444
  }
445
- function l(e, n, i, w, m) {
446
- m || (I(n != null, "missing value"), I(typeof w == "boolean", "missing or invalid endian"), I(i != null, "missing offset"), I(i + 1 < e.length, "Trying to write beyond buffer length"), ce(n, 32767, -32768)), e.length <= i || t(e, 0 <= n ? n : 65535 + n + 1, i, w, m);
445
+ function l(e, n, i, y, g) {
446
+ g || (I(n != null, "missing value"), I(typeof y == "boolean", "missing or invalid endian"), I(i != null, "missing offset"), I(i + 1 < e.length, "Trying to write beyond buffer length"), le(n, 32767, -32768)), e.length <= i || t(e, 0 <= n ? n : 65535 + n + 1, i, y, g);
447
447
  }
448
- function P(e, n, i, w, m) {
449
- m || (I(n != null, "missing value"), I(typeof w == "boolean", "missing or invalid endian"), I(i != null, "missing offset"), I(i + 3 < e.length, "Trying to write beyond buffer length"), ce(n, 2147483647, -2147483648)), e.length <= i || f(e, 0 <= n ? n : 4294967295 + n + 1, i, w, m);
448
+ function L(e, n, i, y, g) {
449
+ g || (I(n != null, "missing value"), I(typeof y == "boolean", "missing or invalid endian"), I(i != null, "missing offset"), I(i + 3 < e.length, "Trying to write beyond buffer length"), le(n, 2147483647, -2147483648)), e.length <= i || f(e, 0 <= n ? n : 4294967295 + n + 1, i, y, g);
450
450
  }
451
- function L(e, n, i, w, m) {
452
- m || (I(n != null, "missing value"), I(typeof w == "boolean", "missing or invalid endian"), I(i != null, "missing offset"), I(i + 3 < e.length, "Trying to write beyond buffer length"), ve(n, 34028234663852886e22, -34028234663852886e22)), e.length <= i || S.write(e, n, i, w, 23, 4);
451
+ function U(e, n, i, y, g) {
452
+ g || (I(n != null, "missing value"), I(typeof y == "boolean", "missing or invalid endian"), I(i != null, "missing offset"), I(i + 3 < e.length, "Trying to write beyond buffer length"), be(n, 34028234663852886e22, -34028234663852886e22)), e.length <= i || S.write(e, n, i, y, 23, 4);
453
453
  }
454
- function D(e, n, i, w, m) {
455
- m || (I(n != null, "missing value"), I(typeof w == "boolean", "missing or invalid endian"), I(i != null, "missing offset"), I(i + 7 < e.length, "Trying to write beyond buffer length"), ve(n, 17976931348623157e292, -17976931348623157e292)), e.length <= i || S.write(e, n, i, w, 52, 8);
454
+ function D(e, n, i, y, g) {
455
+ g || (I(n != null, "missing value"), I(typeof y == "boolean", "missing or invalid endian"), I(i != null, "missing offset"), I(i + 7 < e.length, "Trying to write beyond buffer length"), be(n, 17976931348623157e292, -17976931348623157e292)), e.length <= i || S.write(e, n, i, y, 52, 8);
456
456
  }
457
- g.Buffer = c, g.SlowBuffer = c, g.INSPECT_MAX_BYTES = 50, c.poolSize = 8192, c._useTypedArrays = (function() {
457
+ w.Buffer = c, w.SlowBuffer = c, w.INSPECT_MAX_BYTES = 50, c.poolSize = 8192, c._useTypedArrays = (function() {
458
458
  try {
459
459
  var e = new ArrayBuffer(0), n = new Uint8Array(e);
460
460
  return n.foo = function() {
@@ -498,7 +498,7 @@ Use "options.replacer" or "options.ignoreUnknown"
498
498
  i = e.length;
499
499
  break;
500
500
  case "base64":
501
- i = we(e).length;
501
+ i = me(e).length;
502
502
  break;
503
503
  case "ucs2":
504
504
  case "ucs-2":
@@ -514,104 +514,104 @@ Use "options.replacer" or "options.ignoreUnknown"
514
514
  if (I($(e), `Usage: Buffer.concat(list, [totalLength])
515
515
  list should be an Array.`), e.length === 0) return new c(0);
516
516
  if (e.length === 1) return e[0];
517
- if (typeof n != "number") for (m = n = 0; m < e.length; m++) n += e[m].length;
518
- for (var i = new c(n), w = 0, m = 0; m < e.length; m++) {
519
- var x = e[m];
520
- x.copy(i, w), w += x.length;
517
+ if (typeof n != "number") for (g = n = 0; g < e.length; g++) n += e[g].length;
518
+ for (var i = new c(n), y = 0, g = 0; g < e.length; g++) {
519
+ var x = e[g];
520
+ x.copy(i, y), y += x.length;
521
521
  }
522
522
  return i;
523
- }, c.prototype.write = function(e, n, i, w) {
524
- isFinite(n) ? isFinite(i) || (w = i, i = void 0) : (G = w, w = n, n = i, i = G), n = Number(n) || 0;
525
- var m, x, R, V, G = this.length - n;
526
- switch ((!i || G < (i = Number(i))) && (i = G), w = String(w || "utf8").toLowerCase()) {
523
+ }, c.prototype.write = function(e, n, i, y) {
524
+ isFinite(n) ? isFinite(i) || (y = i, i = void 0) : (H = y, y = n, n = i, i = H), n = Number(n) || 0;
525
+ var g, x, O, V, H = this.length - n;
526
+ switch ((!i || H < (i = Number(i))) && (i = H), y = String(y || "utf8").toLowerCase()) {
527
527
  case "hex":
528
- m = (function(Q, K, X, H) {
528
+ g = (function(Q, K, X, G) {
529
529
  X = Number(X) || 0;
530
530
  var z = Q.length - X;
531
- (!H || z < (H = Number(H))) && (H = z), I((z = K.length) % 2 == 0, "Invalid hex string"), z / 2 < H && (H = z / 2);
532
- for (var ee = 0; ee < H; ee++) {
533
- var _e = parseInt(K.substr(2 * ee, 2), 16);
534
- I(!isNaN(_e), "Invalid hex string"), Q[X + ee] = _e;
531
+ (!G || z < (G = Number(G))) && (G = z), I((z = K.length) % 2 == 0, "Invalid hex string"), z / 2 < G && (G = z / 2);
532
+ for (var ee = 0; ee < G; ee++) {
533
+ var ve = parseInt(K.substr(2 * ee, 2), 16);
534
+ I(!isNaN(ve), "Invalid hex string"), Q[X + ee] = ve;
535
535
  }
536
536
  return c._charsWritten = 2 * ee, ee;
537
537
  })(this, e, n, i);
538
538
  break;
539
539
  case "utf8":
540
540
  case "utf-8":
541
- x = this, R = n, V = i, m = c._charsWritten = oe(Z(e), x, R, V);
541
+ x = this, O = n, V = i, g = c._charsWritten = ne(Z(e), x, O, V);
542
542
  break;
543
543
  case "ascii":
544
544
  case "binary":
545
- m = b(this, e, n, i);
545
+ g = m(this, e, n, i);
546
546
  break;
547
547
  case "base64":
548
- x = this, R = n, V = i, m = c._charsWritten = oe(we(e), x, R, V);
548
+ x = this, O = n, V = i, g = c._charsWritten = ne(me(e), x, O, V);
549
549
  break;
550
550
  case "ucs2":
551
551
  case "ucs-2":
552
552
  case "utf16le":
553
553
  case "utf-16le":
554
- m = A(this, e, n, i);
554
+ g = A(this, e, n, i);
555
555
  break;
556
556
  default:
557
557
  throw new Error("Unknown encoding");
558
558
  }
559
- return m;
559
+ return g;
560
560
  }, c.prototype.toString = function(e, n, i) {
561
- var w, m, x, R, V = this;
561
+ var y, g, x, O, V = this;
562
562
  if (e = String(e || "utf8").toLowerCase(), n = Number(n) || 0, (i = i !== void 0 ? Number(i) : V.length) === n) return "";
563
563
  switch (e) {
564
564
  case "hex":
565
- w = (function(G, Q, K) {
566
- var X = G.length;
565
+ y = (function(H, Q, K) {
566
+ var X = H.length;
567
567
  (!Q || Q < 0) && (Q = 0), (!K || K < 0 || X < K) && (K = X);
568
- for (var H = "", z = Q; z < K; z++) H += T(G[z]);
569
- return H;
568
+ for (var G = "", z = Q; z < K; z++) G += N(H[z]);
569
+ return G;
570
570
  })(V, n, i);
571
571
  break;
572
572
  case "utf8":
573
573
  case "utf-8":
574
- w = (function(G, Q, K) {
575
- var X = "", H = "";
576
- K = Math.min(G.length, K);
577
- for (var z = Q; z < K; z++) G[z] <= 127 ? (X += be(H) + String.fromCharCode(G[z]), H = "") : H += "%" + G[z].toString(16);
578
- return X + be(H);
574
+ y = (function(H, Q, K) {
575
+ var X = "", G = "";
576
+ K = Math.min(H.length, K);
577
+ for (var z = Q; z < K; z++) H[z] <= 127 ? (X += we(G) + String.fromCharCode(H[z]), G = "") : G += "%" + H[z].toString(16);
578
+ return X + we(G);
579
579
  })(V, n, i);
580
580
  break;
581
581
  case "ascii":
582
582
  case "binary":
583
- w = _(V, n, i);
583
+ y = _(V, n, i);
584
584
  break;
585
585
  case "base64":
586
- m = V, R = i, w = (x = n) === 0 && R === m.length ? E.fromByteArray(m) : E.fromByteArray(m.slice(x, R));
586
+ g = V, O = i, y = (x = n) === 0 && O === g.length ? E.fromByteArray(g) : E.fromByteArray(g.slice(x, O));
587
587
  break;
588
588
  case "ucs2":
589
589
  case "ucs-2":
590
590
  case "utf16le":
591
591
  case "utf-16le":
592
- w = (function(G, Q, K) {
593
- for (var X = G.slice(Q, K), H = "", z = 0; z < X.length; z += 2) H += String.fromCharCode(X[z] + 256 * X[z + 1]);
594
- return H;
592
+ y = (function(H, Q, K) {
593
+ for (var X = H.slice(Q, K), G = "", z = 0; z < X.length; z += 2) G += String.fromCharCode(X[z] + 256 * X[z + 1]);
594
+ return G;
595
595
  })(V, n, i);
596
596
  break;
597
597
  default:
598
598
  throw new Error("Unknown encoding");
599
599
  }
600
- return w;
600
+ return y;
601
601
  }, c.prototype.toJSON = function() {
602
602
  return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) };
603
- }, c.prototype.copy = function(e, n, i, w) {
604
- if (n = n || 0, (w = w || w === 0 ? w : this.length) !== (i = i || 0) && e.length !== 0 && this.length !== 0) {
605
- I(i <= w, "sourceEnd < sourceStart"), I(0 <= n && n < e.length, "targetStart out of bounds"), I(0 <= i && i < this.length, "sourceStart out of bounds"), I(0 <= w && w <= this.length, "sourceEnd out of bounds"), w > this.length && (w = this.length);
606
- var m = (w = e.length - n < w - i ? e.length - n + i : w) - i;
607
- if (m < 100 || !c._useTypedArrays) for (var x = 0; x < m; x++) e[x + n] = this[x + i];
608
- else e._set(this.subarray(i, i + m), n);
603
+ }, c.prototype.copy = function(e, n, i, y) {
604
+ if (n = n || 0, (y = y || y === 0 ? y : this.length) !== (i = i || 0) && e.length !== 0 && this.length !== 0) {
605
+ I(i <= y, "sourceEnd < sourceStart"), I(0 <= n && n < e.length, "targetStart out of bounds"), I(0 <= i && i < this.length, "sourceStart out of bounds"), I(0 <= y && y <= this.length, "sourceEnd out of bounds"), y > this.length && (y = this.length);
606
+ var g = (y = e.length - n < y - i ? e.length - n + i : y) - i;
607
+ if (g < 100 || !c._useTypedArrays) for (var x = 0; x < g; x++) e[x + n] = this[x + i];
608
+ else e._set(this.subarray(i, i + g), n);
609
609
  }
610
610
  }, c.prototype.slice = function(e, n) {
611
611
  var i = this.length;
612
612
  if (e = Y(e, i, 0), n = Y(n, i, i), c._useTypedArrays) return c._augment(this.subarray(e, n));
613
- for (var w = n - e, m = new c(w, void 0, !0), x = 0; x < w; x++) m[x] = this[x + e];
614
- return m;
613
+ for (var y = n - e, g = new c(y, void 0, !0), x = 0; x < y; x++) g[x] = this[x + e];
614
+ return g;
615
615
  }, c.prototype.get = function(e) {
616
616
  return console.log(".get() is deprecated. Access using array indexes instead."), this.readUInt8(e);
617
617
  }, c.prototype.set = function(e, n) {
@@ -629,9 +629,9 @@ list should be an Array.`), e.length === 0) return new c(0);
629
629
  }, c.prototype.readInt8 = function(e, n) {
630
630
  if (n || (I(e != null, "missing offset"), I(e < this.length, "Trying to read beyond buffer length")), !(e >= this.length)) return 128 & this[e] ? -1 * (255 - this[e] + 1) : this[e];
631
631
  }, c.prototype.readInt16LE = function(e, n) {
632
- return a(this, e, !0, n);
632
+ return u(this, e, !0, n);
633
633
  }, c.prototype.readInt16BE = function(e, n) {
634
- return a(this, e, !1, n);
634
+ return u(this, e, !1, n);
635
635
  }, c.prototype.readInt32LE = function(e, n) {
636
636
  return d(this, e, !0, n);
637
637
  }, c.prototype.readInt32BE = function(e, n) {
@@ -645,7 +645,7 @@ list should be an Array.`), e.length === 0) return new c(0);
645
645
  }, c.prototype.readDoubleBE = function(e, n) {
646
646
  return o(this, e, !1, n);
647
647
  }, c.prototype.writeUInt8 = function(e, n, i) {
648
- i || (I(e != null, "missing value"), I(n != null, "missing offset"), I(n < this.length, "trying to write beyond buffer length"), le(e, 255)), n >= this.length || (this[n] = e);
648
+ i || (I(e != null, "missing value"), I(n != null, "missing offset"), I(n < this.length, "trying to write beyond buffer length"), fe(e, 255)), n >= this.length || (this[n] = e);
649
649
  }, c.prototype.writeUInt16LE = function(e, n, i) {
650
650
  t(this, e, n, !0, i);
651
651
  }, c.prototype.writeUInt16BE = function(e, n, i) {
@@ -655,19 +655,19 @@ list should be an Array.`), e.length === 0) return new c(0);
655
655
  }, c.prototype.writeUInt32BE = function(e, n, i) {
656
656
  f(this, e, n, !1, i);
657
657
  }, c.prototype.writeInt8 = function(e, n, i) {
658
- i || (I(e != null, "missing value"), I(n != null, "missing offset"), I(n < this.length, "Trying to write beyond buffer length"), ce(e, 127, -128)), n >= this.length || (0 <= e ? this.writeUInt8(e, n, i) : this.writeUInt8(255 + e + 1, n, i));
658
+ i || (I(e != null, "missing value"), I(n != null, "missing offset"), I(n < this.length, "Trying to write beyond buffer length"), le(e, 127, -128)), n >= this.length || (0 <= e ? this.writeUInt8(e, n, i) : this.writeUInt8(255 + e + 1, n, i));
659
659
  }, c.prototype.writeInt16LE = function(e, n, i) {
660
660
  l(this, e, n, !0, i);
661
661
  }, c.prototype.writeInt16BE = function(e, n, i) {
662
662
  l(this, e, n, !1, i);
663
663
  }, c.prototype.writeInt32LE = function(e, n, i) {
664
- P(this, e, n, !0, i);
664
+ L(this, e, n, !0, i);
665
665
  }, c.prototype.writeInt32BE = function(e, n, i) {
666
- P(this, e, n, !1, i);
666
+ L(this, e, n, !1, i);
667
667
  }, c.prototype.writeFloatLE = function(e, n, i) {
668
- L(this, e, n, !0, i);
668
+ U(this, e, n, !0, i);
669
669
  }, c.prototype.writeFloatBE = function(e, n, i) {
670
- L(this, e, n, !1, i);
670
+ U(this, e, n, !1, i);
671
671
  }, c.prototype.writeDoubleLE = function(e, n, i) {
672
672
  D(this, e, n, !0, i);
673
673
  }, c.prototype.writeDoubleBE = function(e, n, i) {
@@ -675,10 +675,10 @@ list should be an Array.`), e.length === 0) return new c(0);
675
675
  }, c.prototype.fill = function(e, n, i) {
676
676
  if (n = n || 0, i = i || this.length, I(typeof (e = typeof (e = e || 0) == "string" ? e.charCodeAt(0) : e) == "number" && !isNaN(e), "value is not a number"), I(n <= i, "end < start"), i !== n && this.length !== 0) {
677
677
  I(0 <= n && n < this.length, "start out of bounds"), I(0 <= i && i <= this.length, "end out of bounds");
678
- for (var w = n; w < i; w++) this[w] = e;
678
+ for (var y = n; y < i; y++) this[y] = e;
679
679
  }
680
680
  }, c.prototype.inspect = function() {
681
- for (var e = [], n = this.length, i = 0; i < n; i++) if (e[i] = T(this[i]), i === g.INSPECT_MAX_BYTES) {
681
+ for (var e = [], n = this.length, i = 0; i < n; i++) if (e[i] = N(this[i]), i === w.INSPECT_MAX_BYTES) {
682
682
  e[i + 1] = "...";
683
683
  break;
684
684
  }
@@ -689,7 +689,7 @@ list should be an Array.`), e.length === 0) return new c(0);
689
689
  for (var e = new Uint8Array(this.length), n = 0, i = e.length; n < i; n += 1) e[n] = this[n];
690
690
  return e.buffer;
691
691
  };
692
- var j = c.prototype;
692
+ var B = c.prototype;
693
693
  function Y(e, n, i) {
694
694
  return typeof e != "number" ? i : n <= (e = ~~e) ? n : 0 <= e || 0 <= (e += n) ? e : 0;
695
695
  }
@@ -701,149 +701,149 @@ list should be an Array.`), e.length === 0) return new c(0);
701
701
  return Object.prototype.toString.call(n) === "[object Array]";
702
702
  })(e);
703
703
  }
704
- function T(e) {
704
+ function N(e) {
705
705
  return e < 16 ? "0" + e.toString(16) : e.toString(16);
706
706
  }
707
707
  function Z(e) {
708
708
  for (var n = [], i = 0; i < e.length; i++) {
709
- var w = e.charCodeAt(i);
710
- if (w <= 127) n.push(e.charCodeAt(i));
711
- else for (var m = i, x = (55296 <= w && w <= 57343 && i++, encodeURIComponent(e.slice(m, i + 1)).substr(1).split("%")), R = 0; R < x.length; R++) n.push(parseInt(x[R], 16));
709
+ var y = e.charCodeAt(i);
710
+ if (y <= 127) n.push(e.charCodeAt(i));
711
+ else for (var g = i, x = (55296 <= y && y <= 57343 && i++, encodeURIComponent(e.slice(g, i + 1)).substr(1).split("%")), O = 0; O < x.length; O++) n.push(parseInt(x[O], 16));
712
712
  }
713
713
  return n;
714
714
  }
715
- function we(e) {
715
+ function me(e) {
716
716
  return E.toByteArray(e);
717
717
  }
718
- function oe(e, n, i, w) {
719
- for (var m = 0; m < w && !(m + i >= n.length || m >= e.length); m++) n[m + i] = e[m];
720
- return m;
718
+ function ne(e, n, i, y) {
719
+ for (var g = 0; g < y && !(g + i >= n.length || g >= e.length); g++) n[g + i] = e[g];
720
+ return g;
721
721
  }
722
- function be(e) {
722
+ function we(e) {
723
723
  try {
724
724
  return decodeURIComponent(e);
725
725
  } catch {
726
726
  return "�";
727
727
  }
728
728
  }
729
- function le(e, n) {
729
+ function fe(e, n) {
730
730
  I(typeof e == "number", "cannot write a non-number as a number"), I(0 <= e, "specified a negative value for writing an unsigned value"), I(e <= n, "value is larger than maximum value for type"), I(Math.floor(e) === e, "value has a fractional component");
731
731
  }
732
- function ce(e, n, i) {
732
+ function le(e, n, i) {
733
733
  I(typeof e == "number", "cannot write a non-number as a number"), I(e <= n, "value larger than maximum allowed value"), I(i <= e, "value smaller than minimum allowed value"), I(Math.floor(e) === e, "value has a fractional component");
734
734
  }
735
- function ve(e, n, i) {
735
+ function be(e, n, i) {
736
736
  I(typeof e == "number", "cannot write a non-number as a number"), I(e <= n, "value larger than maximum allowed value"), I(i <= e, "value smaller than minimum allowed value");
737
737
  }
738
738
  function I(e, n) {
739
739
  if (!e) throw new Error(n || "Failed assertion");
740
740
  }
741
741
  c._augment = function(e) {
742
- return e._isBuffer = !0, e._get = e.get, e._set = e.set, e.get = j.get, e.set = j.set, e.write = j.write, e.toString = j.toString, e.toLocaleString = j.toString, e.toJSON = j.toJSON, e.copy = j.copy, e.slice = j.slice, e.readUInt8 = j.readUInt8, e.readUInt16LE = j.readUInt16LE, e.readUInt16BE = j.readUInt16BE, e.readUInt32LE = j.readUInt32LE, e.readUInt32BE = j.readUInt32BE, e.readInt8 = j.readInt8, e.readInt16LE = j.readInt16LE, e.readInt16BE = j.readInt16BE, e.readInt32LE = j.readInt32LE, e.readInt32BE = j.readInt32BE, e.readFloatLE = j.readFloatLE, e.readFloatBE = j.readFloatBE, e.readDoubleLE = j.readDoubleLE, e.readDoubleBE = j.readDoubleBE, e.writeUInt8 = j.writeUInt8, e.writeUInt16LE = j.writeUInt16LE, e.writeUInt16BE = j.writeUInt16BE, e.writeUInt32LE = j.writeUInt32LE, e.writeUInt32BE = j.writeUInt32BE, e.writeInt8 = j.writeInt8, e.writeInt16LE = j.writeInt16LE, e.writeInt16BE = j.writeInt16BE, e.writeInt32LE = j.writeInt32LE, e.writeInt32BE = j.writeInt32BE, e.writeFloatLE = j.writeFloatLE, e.writeFloatBE = j.writeFloatBE, e.writeDoubleLE = j.writeDoubleLE, e.writeDoubleBE = j.writeDoubleBE, e.fill = j.fill, e.inspect = j.inspect, e.toArrayBuffer = j.toArrayBuffer, e;
742
+ return e._isBuffer = !0, e._get = e.get, e._set = e.set, e.get = B.get, e.set = B.set, e.write = B.write, e.toString = B.toString, e.toLocaleString = B.toString, e.toJSON = B.toJSON, e.copy = B.copy, e.slice = B.slice, e.readUInt8 = B.readUInt8, e.readUInt16LE = B.readUInt16LE, e.readUInt16BE = B.readUInt16BE, e.readUInt32LE = B.readUInt32LE, e.readUInt32BE = B.readUInt32BE, e.readInt8 = B.readInt8, e.readInt16LE = B.readInt16LE, e.readInt16BE = B.readInt16BE, e.readInt32LE = B.readInt32LE, e.readInt32BE = B.readInt32BE, e.readFloatLE = B.readFloatLE, e.readFloatBE = B.readFloatBE, e.readDoubleLE = B.readDoubleLE, e.readDoubleBE = B.readDoubleBE, e.writeUInt8 = B.writeUInt8, e.writeUInt16LE = B.writeUInt16LE, e.writeUInt16BE = B.writeUInt16BE, e.writeUInt32LE = B.writeUInt32LE, e.writeUInt32BE = B.writeUInt32BE, e.writeInt8 = B.writeInt8, e.writeInt16LE = B.writeInt16LE, e.writeInt16BE = B.writeInt16BE, e.writeInt32LE = B.writeInt32LE, e.writeInt32BE = B.writeInt32BE, e.writeFloatLE = B.writeFloatLE, e.writeFloatBE = B.writeFloatBE, e.writeDoubleLE = B.writeDoubleLE, e.writeDoubleBE = B.writeDoubleBE, e.fill = B.fill, e.inspect = B.inspect, e.toArrayBuffer = B.toArrayBuffer, e;
743
743
  };
744
- }).call(this, u("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, u("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/buffer/index.js", "/node_modules/gulp-browserify/node_modules/buffer");
745
- }, { "base64-js": 2, buffer: 3, ieee754: 10, lYpoI2: 11 }], 4: [function(u, p, g) {
746
- (function(y, B, E, U, q, M, N, O, F) {
747
- var E = u("buffer").Buffer, S = 4, c = new E(S);
748
- c.fill(0), p.exports = { hash: function(b, A, _, v) {
744
+ }).call(this, a("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, a("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/buffer/index.js", "/node_modules/gulp-browserify/node_modules/buffer");
745
+ }, { "base64-js": 2, buffer: 3, ieee754: 10, lYpoI2: 11 }], 4: [function(a, p, w) {
746
+ (function(b, j, E, P, q, T, M, R, F) {
747
+ var E = a("buffer").Buffer, S = 4, c = new E(S);
748
+ c.fill(0), p.exports = { hash: function(m, A, _, v) {
749
749
  for (var C = A((function(t, f) {
750
750
  t.length % S != 0 && (l = t.length + (S - t.length % S), t = E.concat([t, c], l));
751
- for (var l, P = [], L = f ? t.readInt32BE : t.readInt32LE, D = 0; D < t.length; D += S) P.push(L.call(t, D));
752
- return P;
753
- })(b = E.isBuffer(b) ? b : new E(b), v), 8 * b.length), A = v, a = new E(_), d = A ? a.writeInt32BE : a.writeInt32LE, r = 0; r < C.length; r++) d.call(a, C[r], 4 * r, !0);
754
- return a;
751
+ for (var l, L = [], U = f ? t.readInt32BE : t.readInt32LE, D = 0; D < t.length; D += S) L.push(U.call(t, D));
752
+ return L;
753
+ })(m = E.isBuffer(m) ? m : new E(m), v), 8 * m.length), A = v, u = new E(_), d = A ? u.writeInt32BE : u.writeInt32LE, r = 0; r < C.length; r++) d.call(u, C[r], 4 * r, !0);
754
+ return u;
755
755
  } };
756
- }).call(this, u("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, u("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
757
- }, { buffer: 3, lYpoI2: 11 }], 5: [function(u, p, g) {
758
- (function(y, B, E, U, q, M, N, O, F) {
759
- var E = u("buffer").Buffer, S = u("./sha"), c = u("./sha256"), b = u("./rng"), A = { sha1: S, sha256: c, md5: u("./md5") }, _ = 64, v = new E(_);
756
+ }).call(this, a("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, a("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
757
+ }, { buffer: 3, lYpoI2: 11 }], 5: [function(a, p, w) {
758
+ (function(b, j, E, P, q, T, M, R, F) {
759
+ var E = a("buffer").Buffer, S = a("./sha"), c = a("./sha256"), m = a("./rng"), A = { sha1: S, sha256: c, md5: a("./md5") }, _ = 64, v = new E(_);
760
760
  function C(t, f) {
761
- var l = A[t = t || "sha1"], P = [];
762
- return l || a("algorithm:", t, "is not yet supported"), { update: function(L) {
763
- return E.isBuffer(L) || (L = new E(L)), P.push(L), L.length, this;
764
- }, digest: function(L) {
765
- var D = E.concat(P), D = f ? (function(j, Y, J) {
766
- E.isBuffer(Y) || (Y = new E(Y)), E.isBuffer(J) || (J = new E(J)), Y.length > _ ? Y = j(Y) : Y.length < _ && (Y = E.concat([Y, v], _));
767
- for (var $ = new E(_), T = new E(_), Z = 0; Z < _; Z++) $[Z] = 54 ^ Y[Z], T[Z] = 92 ^ Y[Z];
768
- return J = j(E.concat([$, J])), j(E.concat([T, J]));
761
+ var l = A[t = t || "sha1"], L = [];
762
+ return l || u("algorithm:", t, "is not yet supported"), { update: function(U) {
763
+ return E.isBuffer(U) || (U = new E(U)), L.push(U), U.length, this;
764
+ }, digest: function(U) {
765
+ var D = E.concat(L), D = f ? (function(B, Y, J) {
766
+ E.isBuffer(Y) || (Y = new E(Y)), E.isBuffer(J) || (J = new E(J)), Y.length > _ ? Y = B(Y) : Y.length < _ && (Y = E.concat([Y, v], _));
767
+ for (var $ = new E(_), N = new E(_), Z = 0; Z < _; Z++) $[Z] = 54 ^ Y[Z], N[Z] = 92 ^ Y[Z];
768
+ return J = B(E.concat([$, J])), B(E.concat([N, J]));
769
769
  })(l, f, D) : l(D);
770
- return P = null, L ? D.toString(L) : D;
770
+ return L = null, U ? D.toString(U) : D;
771
771
  } };
772
772
  }
773
- function a() {
773
+ function u() {
774
774
  var t = [].slice.call(arguments).join(" ");
775
775
  throw new Error([t, "we accept pull requests", "http://github.com/dominictarr/crypto-browserify"].join(`
776
776
  `));
777
777
  }
778
- v.fill(0), g.createHash = function(t) {
778
+ v.fill(0), w.createHash = function(t) {
779
779
  return C(t);
780
- }, g.createHmac = C, g.randomBytes = function(t, f) {
781
- if (!f || !f.call) return new E(b(t));
780
+ }, w.createHmac = C, w.randomBytes = function(t, f) {
781
+ if (!f || !f.call) return new E(m(t));
782
782
  try {
783
- f.call(this, void 0, new E(b(t)));
783
+ f.call(this, void 0, new E(m(t)));
784
784
  } catch (l) {
785
785
  f(l);
786
786
  }
787
787
  };
788
788
  var d, r = ["createCredentials", "createCipher", "createCipheriv", "createDecipher", "createDecipheriv", "createSign", "createVerify", "createDiffieHellman", "pbkdf2"], o = function(t) {
789
- g[t] = function() {
790
- a("sorry,", t, "is not implemented yet");
789
+ w[t] = function() {
790
+ u("sorry,", t, "is not implemented yet");
791
791
  };
792
792
  };
793
793
  for (d in r) o(r[d]);
794
- }).call(this, u("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, u("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
795
- }, { "./md5": 6, "./rng": 7, "./sha": 8, "./sha256": 9, buffer: 3, lYpoI2: 11 }], 6: [function(u, p, g) {
796
- (function(y, B, k, U, q, M, N, O, F) {
797
- var E = u("./helpers");
798
- function S(a, d) {
799
- a[d >> 5] |= 128 << d % 32, a[14 + (d + 64 >>> 9 << 4)] = d;
800
- for (var r = 1732584193, o = -271733879, t = -1732584194, f = 271733878, l = 0; l < a.length; l += 16) {
801
- var P = r, L = o, D = t, j = f, r = b(r, o, t, f, a[l + 0], 7, -680876936), f = b(f, r, o, t, a[l + 1], 12, -389564586), t = b(t, f, r, o, a[l + 2], 17, 606105819), o = b(o, t, f, r, a[l + 3], 22, -1044525330);
802
- r = b(r, o, t, f, a[l + 4], 7, -176418897), f = b(f, r, o, t, a[l + 5], 12, 1200080426), t = b(t, f, r, o, a[l + 6], 17, -1473231341), o = b(o, t, f, r, a[l + 7], 22, -45705983), r = b(r, o, t, f, a[l + 8], 7, 1770035416), f = b(f, r, o, t, a[l + 9], 12, -1958414417), t = b(t, f, r, o, a[l + 10], 17, -42063), o = b(o, t, f, r, a[l + 11], 22, -1990404162), r = b(r, o, t, f, a[l + 12], 7, 1804603682), f = b(f, r, o, t, a[l + 13], 12, -40341101), t = b(t, f, r, o, a[l + 14], 17, -1502002290), r = A(r, o = b(o, t, f, r, a[l + 15], 22, 1236535329), t, f, a[l + 1], 5, -165796510), f = A(f, r, o, t, a[l + 6], 9, -1069501632), t = A(t, f, r, o, a[l + 11], 14, 643717713), o = A(o, t, f, r, a[l + 0], 20, -373897302), r = A(r, o, t, f, a[l + 5], 5, -701558691), f = A(f, r, o, t, a[l + 10], 9, 38016083), t = A(t, f, r, o, a[l + 15], 14, -660478335), o = A(o, t, f, r, a[l + 4], 20, -405537848), r = A(r, o, t, f, a[l + 9], 5, 568446438), f = A(f, r, o, t, a[l + 14], 9, -1019803690), t = A(t, f, r, o, a[l + 3], 14, -187363961), o = A(o, t, f, r, a[l + 8], 20, 1163531501), r = A(r, o, t, f, a[l + 13], 5, -1444681467), f = A(f, r, o, t, a[l + 2], 9, -51403784), t = A(t, f, r, o, a[l + 7], 14, 1735328473), r = _(r, o = A(o, t, f, r, a[l + 12], 20, -1926607734), t, f, a[l + 5], 4, -378558), f = _(f, r, o, t, a[l + 8], 11, -2022574463), t = _(t, f, r, o, a[l + 11], 16, 1839030562), o = _(o, t, f, r, a[l + 14], 23, -35309556), r = _(r, o, t, f, a[l + 1], 4, -1530992060), f = _(f, r, o, t, a[l + 4], 11, 1272893353), t = _(t, f, r, o, a[l + 7], 16, -155497632), o = _(o, t, f, r, a[l + 10], 23, -1094730640), r = _(r, o, t, f, a[l + 13], 4, 681279174), f = _(f, r, o, t, a[l + 0], 11, -358537222), t = _(t, f, r, o, a[l + 3], 16, -722521979), o = _(o, t, f, r, a[l + 6], 23, 76029189), r = _(r, o, t, f, a[l + 9], 4, -640364487), f = _(f, r, o, t, a[l + 12], 11, -421815835), t = _(t, f, r, o, a[l + 15], 16, 530742520), r = v(r, o = _(o, t, f, r, a[l + 2], 23, -995338651), t, f, a[l + 0], 6, -198630844), f = v(f, r, o, t, a[l + 7], 10, 1126891415), t = v(t, f, r, o, a[l + 14], 15, -1416354905), o = v(o, t, f, r, a[l + 5], 21, -57434055), r = v(r, o, t, f, a[l + 12], 6, 1700485571), f = v(f, r, o, t, a[l + 3], 10, -1894986606), t = v(t, f, r, o, a[l + 10], 15, -1051523), o = v(o, t, f, r, a[l + 1], 21, -2054922799), r = v(r, o, t, f, a[l + 8], 6, 1873313359), f = v(f, r, o, t, a[l + 15], 10, -30611744), t = v(t, f, r, o, a[l + 6], 15, -1560198380), o = v(o, t, f, r, a[l + 13], 21, 1309151649), r = v(r, o, t, f, a[l + 4], 6, -145523070), f = v(f, r, o, t, a[l + 11], 10, -1120210379), t = v(t, f, r, o, a[l + 2], 15, 718787259), o = v(o, t, f, r, a[l + 9], 21, -343485551), r = C(r, P), o = C(o, L), t = C(t, D), f = C(f, j);
794
+ }).call(this, a("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, a("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
795
+ }, { "./md5": 6, "./rng": 7, "./sha": 8, "./sha256": 9, buffer: 3, lYpoI2: 11 }], 6: [function(a, p, w) {
796
+ (function(b, j, k, P, q, T, M, R, F) {
797
+ var E = a("./helpers");
798
+ function S(u, d) {
799
+ u[d >> 5] |= 128 << d % 32, u[14 + (d + 64 >>> 9 << 4)] = d;
800
+ for (var r = 1732584193, o = -271733879, t = -1732584194, f = 271733878, l = 0; l < u.length; l += 16) {
801
+ var L = r, U = o, D = t, B = f, r = m(r, o, t, f, u[l + 0], 7, -680876936), f = m(f, r, o, t, u[l + 1], 12, -389564586), t = m(t, f, r, o, u[l + 2], 17, 606105819), o = m(o, t, f, r, u[l + 3], 22, -1044525330);
802
+ r = m(r, o, t, f, u[l + 4], 7, -176418897), f = m(f, r, o, t, u[l + 5], 12, 1200080426), t = m(t, f, r, o, u[l + 6], 17, -1473231341), o = m(o, t, f, r, u[l + 7], 22, -45705983), r = m(r, o, t, f, u[l + 8], 7, 1770035416), f = m(f, r, o, t, u[l + 9], 12, -1958414417), t = m(t, f, r, o, u[l + 10], 17, -42063), o = m(o, t, f, r, u[l + 11], 22, -1990404162), r = m(r, o, t, f, u[l + 12], 7, 1804603682), f = m(f, r, o, t, u[l + 13], 12, -40341101), t = m(t, f, r, o, u[l + 14], 17, -1502002290), r = A(r, o = m(o, t, f, r, u[l + 15], 22, 1236535329), t, f, u[l + 1], 5, -165796510), f = A(f, r, o, t, u[l + 6], 9, -1069501632), t = A(t, f, r, o, u[l + 11], 14, 643717713), o = A(o, t, f, r, u[l + 0], 20, -373897302), r = A(r, o, t, f, u[l + 5], 5, -701558691), f = A(f, r, o, t, u[l + 10], 9, 38016083), t = A(t, f, r, o, u[l + 15], 14, -660478335), o = A(o, t, f, r, u[l + 4], 20, -405537848), r = A(r, o, t, f, u[l + 9], 5, 568446438), f = A(f, r, o, t, u[l + 14], 9, -1019803690), t = A(t, f, r, o, u[l + 3], 14, -187363961), o = A(o, t, f, r, u[l + 8], 20, 1163531501), r = A(r, o, t, f, u[l + 13], 5, -1444681467), f = A(f, r, o, t, u[l + 2], 9, -51403784), t = A(t, f, r, o, u[l + 7], 14, 1735328473), r = _(r, o = A(o, t, f, r, u[l + 12], 20, -1926607734), t, f, u[l + 5], 4, -378558), f = _(f, r, o, t, u[l + 8], 11, -2022574463), t = _(t, f, r, o, u[l + 11], 16, 1839030562), o = _(o, t, f, r, u[l + 14], 23, -35309556), r = _(r, o, t, f, u[l + 1], 4, -1530992060), f = _(f, r, o, t, u[l + 4], 11, 1272893353), t = _(t, f, r, o, u[l + 7], 16, -155497632), o = _(o, t, f, r, u[l + 10], 23, -1094730640), r = _(r, o, t, f, u[l + 13], 4, 681279174), f = _(f, r, o, t, u[l + 0], 11, -358537222), t = _(t, f, r, o, u[l + 3], 16, -722521979), o = _(o, t, f, r, u[l + 6], 23, 76029189), r = _(r, o, t, f, u[l + 9], 4, -640364487), f = _(f, r, o, t, u[l + 12], 11, -421815835), t = _(t, f, r, o, u[l + 15], 16, 530742520), r = v(r, o = _(o, t, f, r, u[l + 2], 23, -995338651), t, f, u[l + 0], 6, -198630844), f = v(f, r, o, t, u[l + 7], 10, 1126891415), t = v(t, f, r, o, u[l + 14], 15, -1416354905), o = v(o, t, f, r, u[l + 5], 21, -57434055), r = v(r, o, t, f, u[l + 12], 6, 1700485571), f = v(f, r, o, t, u[l + 3], 10, -1894986606), t = v(t, f, r, o, u[l + 10], 15, -1051523), o = v(o, t, f, r, u[l + 1], 21, -2054922799), r = v(r, o, t, f, u[l + 8], 6, 1873313359), f = v(f, r, o, t, u[l + 15], 10, -30611744), t = v(t, f, r, o, u[l + 6], 15, -1560198380), o = v(o, t, f, r, u[l + 13], 21, 1309151649), r = v(r, o, t, f, u[l + 4], 6, -145523070), f = v(f, r, o, t, u[l + 11], 10, -1120210379), t = v(t, f, r, o, u[l + 2], 15, 718787259), o = v(o, t, f, r, u[l + 9], 21, -343485551), r = C(r, L), o = C(o, U), t = C(t, D), f = C(f, B);
803
803
  }
804
804
  return Array(r, o, t, f);
805
805
  }
806
- function c(a, d, r, o, t, f) {
807
- return C((d = C(C(d, a), C(o, f))) << t | d >>> 32 - t, r);
806
+ function c(u, d, r, o, t, f) {
807
+ return C((d = C(C(d, u), C(o, f))) << t | d >>> 32 - t, r);
808
808
  }
809
- function b(a, d, r, o, t, f, l) {
810
- return c(d & r | ~d & o, a, d, t, f, l);
809
+ function m(u, d, r, o, t, f, l) {
810
+ return c(d & r | ~d & o, u, d, t, f, l);
811
811
  }
812
- function A(a, d, r, o, t, f, l) {
813
- return c(d & o | r & ~o, a, d, t, f, l);
812
+ function A(u, d, r, o, t, f, l) {
813
+ return c(d & o | r & ~o, u, d, t, f, l);
814
814
  }
815
- function _(a, d, r, o, t, f, l) {
816
- return c(d ^ r ^ o, a, d, t, f, l);
815
+ function _(u, d, r, o, t, f, l) {
816
+ return c(d ^ r ^ o, u, d, t, f, l);
817
817
  }
818
- function v(a, d, r, o, t, f, l) {
819
- return c(r ^ (d | ~o), a, d, t, f, l);
818
+ function v(u, d, r, o, t, f, l) {
819
+ return c(r ^ (d | ~o), u, d, t, f, l);
820
820
  }
821
- function C(a, d) {
822
- var r = (65535 & a) + (65535 & d);
823
- return (a >> 16) + (d >> 16) + (r >> 16) << 16 | 65535 & r;
821
+ function C(u, d) {
822
+ var r = (65535 & u) + (65535 & d);
823
+ return (u >> 16) + (d >> 16) + (r >> 16) << 16 | 65535 & r;
824
824
  }
825
- p.exports = function(a) {
826
- return E.hash(a, S, 16);
825
+ p.exports = function(u) {
826
+ return E.hash(u, S, 16);
827
827
  };
828
- }).call(this, u("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, u("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
829
- }, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 7: [function(u, p, g) {
830
- (function(y, B, k, U, q, M, N, O, F) {
828
+ }).call(this, a("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, a("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
829
+ }, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 7: [function(a, p, w) {
830
+ (function(b, j, k, P, q, T, M, R, F) {
831
831
  p.exports = function(E) {
832
- for (var S, c = new Array(E), b = 0; b < E; b++) (3 & b) == 0 && (S = 4294967296 * Math.random()), c[b] = S >>> ((3 & b) << 3) & 255;
832
+ for (var S, c = new Array(E), m = 0; m < E; m++) (3 & m) == 0 && (S = 4294967296 * Math.random()), c[m] = S >>> ((3 & m) << 3) & 255;
833
833
  return c;
834
834
  };
835
- }).call(this, u("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, u("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
836
- }, { buffer: 3, lYpoI2: 11 }], 8: [function(u, p, g) {
837
- (function(y, B, k, U, q, M, N, O, F) {
838
- var E = u("./helpers");
835
+ }).call(this, a("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, a("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
836
+ }, { buffer: 3, lYpoI2: 11 }], 8: [function(a, p, w) {
837
+ (function(b, j, k, P, q, T, M, R, F) {
838
+ var E = a("./helpers");
839
839
  function S(A, _) {
840
840
  A[_ >> 5] |= 128 << 24 - _ % 32, A[15 + (_ + 64 >> 9 << 4)] = _;
841
- for (var v, C, a, d = Array(80), r = 1732584193, o = -271733879, t = -1732584194, f = 271733878, l = -1009589776, P = 0; P < A.length; P += 16) {
842
- for (var L = r, D = o, j = t, Y = f, J = l, $ = 0; $ < 80; $++) {
843
- d[$] = $ < 16 ? A[P + $] : b(d[$ - 3] ^ d[$ - 8] ^ d[$ - 14] ^ d[$ - 16], 1);
844
- var T = c(c(b(r, 5), (T = o, C = t, a = f, (v = $) < 20 ? T & C | ~T & a : !(v < 40) && v < 60 ? T & C | T & a | C & a : T ^ C ^ a)), c(c(l, d[$]), (v = $) < 20 ? 1518500249 : v < 40 ? 1859775393 : v < 60 ? -1894007588 : -899497514)), l = f, f = t, t = b(o, 30), o = r, r = T;
841
+ for (var v, C, u, d = Array(80), r = 1732584193, o = -271733879, t = -1732584194, f = 271733878, l = -1009589776, L = 0; L < A.length; L += 16) {
842
+ for (var U = r, D = o, B = t, Y = f, J = l, $ = 0; $ < 80; $++) {
843
+ d[$] = $ < 16 ? A[L + $] : m(d[$ - 3] ^ d[$ - 8] ^ d[$ - 14] ^ d[$ - 16], 1);
844
+ var N = c(c(m(r, 5), (N = o, C = t, u = f, (v = $) < 20 ? N & C | ~N & u : !(v < 40) && v < 60 ? N & C | N & u | C & u : N ^ C ^ u)), c(c(l, d[$]), (v = $) < 20 ? 1518500249 : v < 40 ? 1859775393 : v < 60 ? -1894007588 : -899497514)), l = f, f = t, t = m(o, 30), o = r, r = N;
845
845
  }
846
- r = c(r, L), o = c(o, D), t = c(t, j), f = c(f, Y), l = c(l, J);
846
+ r = c(r, U), o = c(o, D), t = c(t, B), f = c(f, Y), l = c(l, J);
847
847
  }
848
848
  return Array(r, o, t, f, l);
849
849
  }
@@ -851,29 +851,29 @@ list should be an Array.`), e.length === 0) return new c(0);
851
851
  var v = (65535 & A) + (65535 & _);
852
852
  return (A >> 16) + (_ >> 16) + (v >> 16) << 16 | 65535 & v;
853
853
  }
854
- function b(A, _) {
854
+ function m(A, _) {
855
855
  return A << _ | A >>> 32 - _;
856
856
  }
857
857
  p.exports = function(A) {
858
858
  return E.hash(A, S, 20, !0);
859
859
  };
860
- }).call(this, u("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, u("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
861
- }, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 9: [function(u, p, g) {
862
- (function(y, B, k, U, q, M, N, O, F) {
860
+ }).call(this, a("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, a("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
861
+ }, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 9: [function(a, p, w) {
862
+ (function(b, j, k, P, q, T, M, R, F) {
863
863
  function E(_, v) {
864
864
  var C = (65535 & _) + (65535 & v);
865
865
  return (_ >> 16) + (v >> 16) + (C >> 16) << 16 | 65535 & C;
866
866
  }
867
867
  function S(_, v) {
868
- var C, a = new Array(1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298), d = new Array(1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225), r = new Array(64);
868
+ var C, u = new Array(1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298), d = new Array(1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225), r = new Array(64);
869
869
  _[v >> 5] |= 128 << 24 - v % 32, _[15 + (v + 64 >> 9 << 4)] = v;
870
870
  for (var o, t, f = 0; f < _.length; f += 16) {
871
- for (var l = d[0], P = d[1], L = d[2], D = d[3], j = d[4], Y = d[5], J = d[6], $ = d[7], T = 0; T < 64; T++) r[T] = T < 16 ? _[T + f] : E(E(E((t = r[T - 2], b(t, 17) ^ b(t, 19) ^ A(t, 10)), r[T - 7]), (t = r[T - 15], b(t, 7) ^ b(t, 18) ^ A(t, 3))), r[T - 16]), C = E(E(E(E($, b(t = j, 6) ^ b(t, 11) ^ b(t, 25)), j & Y ^ ~j & J), a[T]), r[T]), o = E(b(o = l, 2) ^ b(o, 13) ^ b(o, 22), l & P ^ l & L ^ P & L), $ = J, J = Y, Y = j, j = E(D, C), D = L, L = P, P = l, l = E(C, o);
872
- d[0] = E(l, d[0]), d[1] = E(P, d[1]), d[2] = E(L, d[2]), d[3] = E(D, d[3]), d[4] = E(j, d[4]), d[5] = E(Y, d[5]), d[6] = E(J, d[6]), d[7] = E($, d[7]);
871
+ for (var l = d[0], L = d[1], U = d[2], D = d[3], B = d[4], Y = d[5], J = d[6], $ = d[7], N = 0; N < 64; N++) r[N] = N < 16 ? _[N + f] : E(E(E((t = r[N - 2], m(t, 17) ^ m(t, 19) ^ A(t, 10)), r[N - 7]), (t = r[N - 15], m(t, 7) ^ m(t, 18) ^ A(t, 3))), r[N - 16]), C = E(E(E(E($, m(t = B, 6) ^ m(t, 11) ^ m(t, 25)), B & Y ^ ~B & J), u[N]), r[N]), o = E(m(o = l, 2) ^ m(o, 13) ^ m(o, 22), l & L ^ l & U ^ L & U), $ = J, J = Y, Y = B, B = E(D, C), D = U, U = L, L = l, l = E(C, o);
872
+ d[0] = E(l, d[0]), d[1] = E(L, d[1]), d[2] = E(U, d[2]), d[3] = E(D, d[3]), d[4] = E(B, d[4]), d[5] = E(Y, d[5]), d[6] = E(J, d[6]), d[7] = E($, d[7]);
873
873
  }
874
874
  return d;
875
875
  }
876
- var c = u("./helpers"), b = function(_, v) {
876
+ var c = a("./helpers"), m = function(_, v) {
877
877
  return _ >>> v | _ << 32 - v;
878
878
  }, A = function(_, v) {
879
879
  return _ >>> v;
@@ -881,32 +881,32 @@ list should be an Array.`), e.length === 0) return new c(0);
881
881
  p.exports = function(_) {
882
882
  return c.hash(_, S, 32, !0);
883
883
  };
884
- }).call(this, u("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, u("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
885
- }, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 10: [function(u, p, g) {
886
- (function(y, B, k, U, q, M, N, O, F) {
887
- g.read = function(E, S, c, b, f) {
888
- var _, v, C = 8 * f - b - 1, a = (1 << C) - 1, d = a >> 1, r = -7, o = c ? f - 1 : 0, t = c ? -1 : 1, f = E[S + o];
884
+ }).call(this, a("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, a("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js", "/node_modules/gulp-browserify/node_modules/crypto-browserify");
885
+ }, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 10: [function(a, p, w) {
886
+ (function(b, j, k, P, q, T, M, R, F) {
887
+ w.read = function(E, S, c, m, f) {
888
+ var _, v, C = 8 * f - m - 1, u = (1 << C) - 1, d = u >> 1, r = -7, o = c ? f - 1 : 0, t = c ? -1 : 1, f = E[S + o];
889
889
  for (o += t, _ = f & (1 << -r) - 1, f >>= -r, r += C; 0 < r; _ = 256 * _ + E[S + o], o += t, r -= 8) ;
890
- for (v = _ & (1 << -r) - 1, _ >>= -r, r += b; 0 < r; v = 256 * v + E[S + o], o += t, r -= 8) ;
890
+ for (v = _ & (1 << -r) - 1, _ >>= -r, r += m; 0 < r; v = 256 * v + E[S + o], o += t, r -= 8) ;
891
891
  if (_ === 0) _ = 1 - d;
892
892
  else {
893
- if (_ === a) return v ? NaN : 1 / 0 * (f ? -1 : 1);
894
- v += Math.pow(2, b), _ -= d;
893
+ if (_ === u) return v ? NaN : 1 / 0 * (f ? -1 : 1);
894
+ v += Math.pow(2, m), _ -= d;
895
895
  }
896
- return (f ? -1 : 1) * v * Math.pow(2, _ - b);
897
- }, g.write = function(E, S, c, b, A, l) {
898
- var v, C, a = 8 * l - A - 1, d = (1 << a) - 1, r = d >> 1, o = A === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, t = b ? 0 : l - 1, f = b ? 1 : -1, l = S < 0 || S === 0 && 1 / S < 0 ? 1 : 0;
899
- for (S = Math.abs(S), isNaN(S) || S === 1 / 0 ? (C = isNaN(S) ? 1 : 0, v = d) : (v = Math.floor(Math.log(S) / Math.LN2), S * (b = Math.pow(2, -v)) < 1 && (v--, b *= 2), 2 <= (S += 1 <= v + r ? o / b : o * Math.pow(2, 1 - r)) * b && (v++, b /= 2), d <= v + r ? (C = 0, v = d) : 1 <= v + r ? (C = (S * b - 1) * Math.pow(2, A), v += r) : (C = S * Math.pow(2, r - 1) * Math.pow(2, A), v = 0)); 8 <= A; E[c + t] = 255 & C, t += f, C /= 256, A -= 8) ;
900
- for (v = v << A | C, a += A; 0 < a; E[c + t] = 255 & v, t += f, v /= 256, a -= 8) ;
896
+ return (f ? -1 : 1) * v * Math.pow(2, _ - m);
897
+ }, w.write = function(E, S, c, m, A, l) {
898
+ var v, C, u = 8 * l - A - 1, d = (1 << u) - 1, r = d >> 1, o = A === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, t = m ? 0 : l - 1, f = m ? 1 : -1, l = S < 0 || S === 0 && 1 / S < 0 ? 1 : 0;
899
+ for (S = Math.abs(S), isNaN(S) || S === 1 / 0 ? (C = isNaN(S) ? 1 : 0, v = d) : (v = Math.floor(Math.log(S) / Math.LN2), S * (m = Math.pow(2, -v)) < 1 && (v--, m *= 2), 2 <= (S += 1 <= v + r ? o / m : o * Math.pow(2, 1 - r)) * m && (v++, m /= 2), d <= v + r ? (C = 0, v = d) : 1 <= v + r ? (C = (S * m - 1) * Math.pow(2, A), v += r) : (C = S * Math.pow(2, r - 1) * Math.pow(2, A), v = 0)); 8 <= A; E[c + t] = 255 & C, t += f, C /= 256, A -= 8) ;
900
+ for (v = v << A | C, u += A; 0 < u; E[c + t] = 255 & v, t += f, v /= 256, u -= 8) ;
901
901
  E[c + t - f] |= 128 * l;
902
902
  };
903
- }).call(this, u("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, u("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/ieee754/index.js", "/node_modules/gulp-browserify/node_modules/ieee754");
904
- }, { buffer: 3, lYpoI2: 11 }], 11: [function(u, p, g) {
905
- (function(y, B, k, U, q, M, N, O, F) {
903
+ }).call(this, a("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, a("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/ieee754/index.js", "/node_modules/gulp-browserify/node_modules/ieee754");
904
+ }, { buffer: 3, lYpoI2: 11 }], 11: [function(a, p, w) {
905
+ (function(b, j, k, P, q, T, M, R, F) {
906
906
  var E, S, c;
907
- function b() {
907
+ function m() {
908
908
  }
909
- (y = p.exports = {}).nextTick = (S = typeof window < "u" && window.setImmediate, c = typeof window < "u" && window.postMessage && window.addEventListener, S ? function(A) {
909
+ (b = p.exports = {}).nextTick = (S = typeof window < "u" && window.setImmediate, c = typeof window < "u" && window.postMessage && window.addEventListener, S ? function(A) {
910
910
  return window.setImmediate(A);
911
911
  } : c ? (E = [], window.addEventListener("message", function(A) {
912
912
  var _ = A.source;
@@ -915,27 +915,27 @@ list should be an Array.`), e.length === 0) return new c(0);
915
915
  E.push(A), window.postMessage("process-tick", "*");
916
916
  }) : function(A) {
917
917
  setTimeout(A, 0);
918
- }), y.title = "browser", y.browser = !0, y.env = {}, y.argv = [], y.on = b, y.addListener = b, y.once = b, y.off = b, y.removeListener = b, y.removeAllListeners = b, y.emit = b, y.binding = function(A) {
918
+ }), b.title = "browser", b.browser = !0, b.env = {}, b.argv = [], b.on = m, b.addListener = m, b.once = m, b.off = m, b.removeListener = m, b.removeAllListeners = m, b.emit = m, b.binding = function(A) {
919
919
  throw new Error("process.binding is not supported");
920
- }, y.cwd = function() {
920
+ }, b.cwd = function() {
921
921
  return "/";
922
- }, y.chdir = function(A) {
922
+ }, b.chdir = function(A) {
923
923
  throw new Error("process.chdir is not supported");
924
924
  };
925
- }).call(this, u("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, u("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/process/browser.js", "/node_modules/gulp-browserify/node_modules/process");
925
+ }).call(this, a("lYpoI2"), typeof self < "u" ? self : typeof window < "u" ? window : {}, a("buffer").Buffer, arguments[3], arguments[4], arguments[5], arguments[6], "/node_modules/gulp-browserify/node_modules/process/browser.js", "/node_modules/gulp-browserify/node_modules/process");
926
926
  }, { buffer: 3, lYpoI2: 11 }] }, {}, [1])(1);
927
927
  });
928
- })(pe)), pe.exports;
928
+ })(he)), he.exports;
929
929
  }
930
- var Me = Ne();
931
- const Te = /* @__PURE__ */ Se(Me);
932
- class ye {
930
+ var Me = Re();
931
+ const Te = /* @__PURE__ */ je(Me);
932
+ class ge {
933
933
  _inferSchema;
934
934
  _inferInstance;
935
935
  data;
936
936
  instance;
937
- constructor(s, u) {
938
- this.data = s ?? {}, this.instance = u;
937
+ constructor(s, a) {
938
+ this.data = s ?? {}, this.instance = a;
939
939
  }
940
940
  clear = () => {
941
941
  Object.keys(this.data).forEach((s) => {
@@ -943,53 +943,46 @@ class ye {
943
943
  });
944
944
  };
945
945
  delete = (s) => {
946
- const u = this.data[s];
947
- return delete this.data[s], u;
946
+ const a = this.data[s];
947
+ return delete this.data[s], a;
948
948
  };
949
949
  entries = () => Object.entries(this.data);
950
950
  get = (s) => this.data[s];
951
951
  has = (s) => Object.prototype.hasOwnProperty.call(this.data, s);
952
952
  keys = () => Object.keys(this.data);
953
- set = (s, u) => {
954
- this.data[s] = u;
953
+ set = (s, a) => {
954
+ this.data[s] = a;
955
955
  };
956
956
  values = () => Object.values(this.data);
957
- commit = (s, u) => {
957
+ commit = (s, a) => {
958
958
  const p = { ...this.data };
959
- u?.forEach((y) => {
960
- delete p[y];
959
+ a?.forEach((b) => {
960
+ delete p[b];
961
961
  });
962
- const g = Object.keys(p);
963
- return s != null && Object.keys(s).length === g.length && g.reduce((y, B) => y && Object.is(p[B], s[B]), !0) ? s : p;
962
+ const w = Object.keys(p);
963
+ return s != null && Object.keys(s).length === w.length && w.reduce((b, j) => b && Object.is(p[j], s[j]), !0) ? s : p;
964
964
  };
965
965
  }
966
- const te = (h) => h instanceof ye ? h : new ye(h);
967
- class qe {
966
+ const Ne = (h) => h instanceof ge ? h : new ge(h);
967
+ class Se {
968
968
  _inferItem;
969
969
  _inferQuery;
970
970
  _inferOptions;
971
971
  _inferMetaType;
972
- _inferGetResult;
973
- _inferCreateData;
974
- _inferCreateResult;
975
- _inferUpdateData;
976
- _inferUpdateResult;
977
- _inferPatchData;
978
- _inferPatchResult;
979
- _inferRemoveResult;
980
- notifier = new ke();
972
+ _inferResponse;
973
+ notifier = new Pe();
981
974
  contextPlugins = [];
982
975
  uiPlugins = [];
983
976
  constructor() {
984
- const s = [], u = [];
977
+ const s = [], a = [];
985
978
  this.extend({
986
979
  context: (p) => {
987
- const g = s;
988
- p != null && !g.includes(p) && g.push(p);
980
+ const w = s;
981
+ p != null && !w.includes(p) && w.push(p);
989
982
  },
990
983
  ui: (p) => {
991
- const g = u;
992
- p != null && !g.includes(p) && g.push(p);
984
+ const w = a;
985
+ p != null && !w.includes(p) && w.push(p);
993
986
  }
994
987
  }), Object.defineProperties(this, {
995
988
  contextPlugins: {
@@ -999,7 +992,7 @@ class qe {
999
992
  configurable: !1
1000
993
  },
1001
994
  uiPlugins: {
1002
- value: Object.freeze([...u]),
995
+ value: Object.freeze([...a]),
1003
996
  enumerable: !0,
1004
997
  writable: !1,
1005
998
  configurable: !1
@@ -1012,144 +1005,117 @@ class qe {
1012
1005
  }
1013
1006
  releaseInstance(s) {
1014
1007
  }
1015
- subscribe(s, u) {
1008
+ subscribe(s, a) {
1016
1009
  if (s == null) throw new Error("No resource name specified");
1017
- return this.notifier.subscribe(s, u);
1010
+ return this.notifier.subscribe(s, a);
1018
1011
  }
1019
1012
  notify(s) {
1020
1013
  this.notifier.trigger(s);
1021
1014
  }
1022
- get(s, u, p, g, y) {
1015
+ get(s, a, p, w, b) {
1023
1016
  return new Promise(
1024
- (B, k) => this.continuousGet(
1017
+ (j, k) => this.continuousGet(
1025
1018
  s,
1026
- u,
1019
+ a,
1027
1020
  p,
1028
- g,
1029
- (U, q, M) => {
1030
- if (U != null) {
1031
- k(U);
1021
+ w,
1022
+ (P, q, T) => {
1023
+ if (P != null) {
1024
+ k(P);
1032
1025
  return;
1033
1026
  }
1034
- q && B(M);
1027
+ q && j(
1028
+ T ?? this.getEmptyResponse({
1029
+ name: s,
1030
+ query: a,
1031
+ empty: !1,
1032
+ options: p
1033
+ })
1034
+ );
1035
1035
  },
1036
- y
1036
+ b
1037
1037
  )
1038
1038
  );
1039
1039
  }
1040
- continuousGet(s, u, p, g, y, B) {
1041
- const k = B ?? new je();
1042
- new Promise((U) => {
1040
+ continuousGet(s, a, p, w, b, j) {
1041
+ const k = j ?? new Be();
1042
+ new Promise((P) => {
1043
1043
  if (s == null) throw new Error("No resource name specified");
1044
- const q = (N, O, F) => {
1045
- k.locked || ((N != null || O) && k.lock(), N != null ? y(N, !0, void 0) : y(void 0, O, F));
1046
- }, M = k.proxy();
1047
- U(
1044
+ const q = (M, R, F) => {
1045
+ k.locked || ((M != null || R) && k.lock(), M != null ? b(M, !0, void 0) : b(
1046
+ void 0,
1047
+ R,
1048
+ F ?? this.getEmptyResponse({
1049
+ name: s,
1050
+ query: a,
1051
+ empty: !1,
1052
+ options: p
1053
+ })
1054
+ ));
1055
+ }, T = k.proxy();
1056
+ P(
1048
1057
  Promise.resolve(
1049
- this.handleGet(s, u, p, te(g), M)
1050
- ).then((N) => {
1051
- typeof N == "function" ? N(q, M) : q(void 0, !0, N);
1058
+ this.handleGet(s, a, p, Ne(w), T)
1059
+ ).then((M) => {
1060
+ typeof M == "function" ? M(q) : q(void 0, !0, M);
1052
1061
  })
1053
1062
  );
1054
- }).catch((U) => {
1055
- k.locked || y(U, !0, void 0);
1056
- });
1057
- }
1058
- create(s, u, p, g) {
1059
- return new Promise((y) => {
1060
- if (s == null) throw new Error("No resource name specified");
1061
- if (u == null) throw new Error("No data specified");
1062
- y(
1063
- Promise.resolve(
1064
- this.handleCreate(s, u, p, te(g))
1065
- )
1066
- );
1067
- });
1068
- }
1069
- update(s, u, p, g, y) {
1070
- return new Promise((B) => {
1071
- if (s == null) throw new Error("No resource name specified");
1072
- if (p == null) throw new Error("No data specified");
1073
- B(
1074
- Promise.resolve(
1075
- this.handleUpdate(s, u, p, g, te(y))
1076
- )
1077
- );
1078
- });
1079
- }
1080
- patch(s, u, p, g, y) {
1081
- return new Promise((B) => {
1082
- if (s == null) throw new Error("No resource name specified");
1083
- if (p == null) throw new Error("No data specified");
1084
- B(
1085
- Promise.resolve(
1086
- this.handlePatch(s, u, p, g, te(y))
1087
- )
1088
- );
1089
- });
1090
- }
1091
- remove(s, u, p, g) {
1092
- return new Promise((y) => {
1093
- if (s == null) throw new Error("No resource name specified");
1094
- y(
1095
- Promise.resolve(
1096
- this.handleRemove(s, u, p, te(g))
1097
- )
1098
- );
1063
+ }).catch((P) => {
1064
+ k.locked || b(P, !0, void 0);
1099
1065
  });
1100
1066
  }
1101
- compareRequests(s, u) {
1102
- return Oe(s, u);
1067
+ compareRequests(s, a) {
1068
+ return Oe(s, a);
1103
1069
  }
1104
1070
  getEmptyResponse(s) {
1105
1071
  }
1106
- shouldPersist(s, u, p, g) {
1107
- return p === "very" || p && u.name === s.name;
1072
+ shouldPersist(s, a, p, w) {
1073
+ return p === "very" || p && a.name === s.name;
1108
1074
  }
1109
- compareItemVersions(s, u) {
1075
+ compareItemVersions(s, a) {
1110
1076
  return !0;
1111
1077
  }
1112
1078
  getItemIdentifier(s) {
1113
1079
  return Te(s);
1114
1080
  }
1115
- transition(s, u) {
1081
+ transition(s, a) {
1116
1082
  return s.data;
1117
1083
  }
1118
- recycleItems(s, u) {
1119
- if (s.data == null || u.data == null)
1084
+ recycleItems(s, a) {
1085
+ if (s.data == null || a.data == null)
1120
1086
  return s.data;
1121
- const p = Array.isArray(s.data) ? s.data : [s.data], g = Array.isArray(u.data) ? u.data : [u.data], y = {};
1122
- p.length > 0 && g.forEach((k) => {
1123
- const U = this.getItemIdentifier(k);
1124
- U != null && (y[U] = k);
1087
+ const p = Array.isArray(s.data) ? s.data : [s.data], w = Array.isArray(a.data) ? a.data : [a.data], b = {};
1088
+ p.length > 0 && w.forEach((k) => {
1089
+ const P = this.getItemIdentifier(k);
1090
+ P != null && (b[P] = k);
1125
1091
  });
1126
- let B;
1127
- return g.length > 0 ? B = p.map((k) => {
1128
- const U = this.getItemIdentifier(k);
1129
- if (U != null && Object.prototype.hasOwnProperty.call(y, U)) {
1130
- const q = y[U];
1092
+ let j;
1093
+ return w.length > 0 ? j = p.map((k) => {
1094
+ const P = this.getItemIdentifier(k);
1095
+ if (P != null && Object.prototype.hasOwnProperty.call(b, P)) {
1096
+ const q = b[P];
1131
1097
  if (this.compareItemVersions(k, q)) return q;
1132
1098
  }
1133
1099
  return k;
1134
- }) : B = p, Array.isArray(s.data) ? g.length === B.length && B.reduce(
1135
- (k, U, q) => k && Object.is(g[q], U),
1100
+ }) : j = p, Array.isArray(s.data) ? w.length === j.length && j.reduce(
1101
+ (k, P, q) => k && Object.is(w[q], P),
1136
1102
  !0
1137
- ) ? g : B : B[0];
1103
+ ) ? w : j : j[0];
1138
1104
  }
1139
1105
  }
1140
- const nt = (h) => h instanceof qe;
1106
+ const nt = (h) => h instanceof Se;
1141
1107
  function ot({
1142
1108
  dataProvider: h,
1143
1109
  children: s
1144
1110
  }) {
1145
- const u = se(() => ({ dataProvider: h }), [h]);
1146
- return /* @__PURE__ */ ue(ae.Provider, { value: u, children: s });
1111
+ const a = ie(() => ({ dataProvider: h }), [h]);
1112
+ return /* @__PURE__ */ se(ue.Provider, { value: a, children: s });
1147
1113
  }
1148
1114
  function it(h) {
1149
1115
  if (typeof h != "function")
1150
1116
  throw new Error("No valid plugin definition specified");
1151
1117
  return (s) => {
1152
- Object.prototype.isPrototypeOf.call(qe, s) || console.error(
1118
+ Object.prototype.isPrototypeOf.call(Se, s) || console.error(
1153
1119
  "A plugin should be given a derivative of the DataProvider class as its first parameter"
1154
1120
  );
1155
1121
  const p = h(class extends s {
@@ -1165,7 +1131,7 @@ function Fe({
1165
1131
  resource: h,
1166
1132
  children: s
1167
1133
  }) {
1168
- return /* @__PURE__ */ ue(fe.Provider, { value: h, children: s });
1134
+ return /* @__PURE__ */ se(ae.Provider, { value: h, children: s });
1169
1135
  }
1170
1136
  const W = [];
1171
1137
  for (let h = 0; h < 256; ++h)
@@ -1173,55 +1139,55 @@ for (let h = 0; h < 256; ++h)
1173
1139
  function Ye(h, s = 0) {
1174
1140
  return (W[h[s + 0]] + W[h[s + 1]] + W[h[s + 2]] + W[h[s + 3]] + "-" + W[h[s + 4]] + W[h[s + 5]] + "-" + W[h[s + 6]] + W[h[s + 7]] + "-" + W[h[s + 8]] + W[h[s + 9]] + "-" + W[h[s + 10]] + W[h[s + 11]] + W[h[s + 12]] + W[h[s + 13]] + W[h[s + 14]] + W[h[s + 15]]).toLowerCase();
1175
1141
  }
1176
- let ge;
1142
+ let pe;
1177
1143
  const $e = new Uint8Array(16);
1178
1144
  function Ve() {
1179
- if (!ge) {
1145
+ if (!pe) {
1180
1146
  if (typeof crypto > "u" || !crypto.getRandomValues)
1181
1147
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1182
- ge = crypto.getRandomValues.bind(crypto);
1148
+ pe = crypto.getRandomValues.bind(crypto);
1183
1149
  }
1184
- return ge($e);
1150
+ return pe($e);
1185
1151
  }
1186
- const re = {};
1187
- function ze(h, s, u) {
1152
+ const te = {};
1153
+ function ze(h, s, a) {
1188
1154
  let p;
1189
1155
  {
1190
- const g = Date.now(), y = Ve();
1191
- Ge(re, g, y), p = He(y, re.msecs, re.nsecs, re.clockseq, re.node, s, u);
1156
+ const w = Date.now(), b = Ve();
1157
+ He(te, w, b), p = Ge(b, te.msecs, te.nsecs, te.clockseq, te.node, s, a);
1192
1158
  }
1193
1159
  return s ?? Ye(p);
1194
1160
  }
1195
- function Ge(h, s, u) {
1196
- return h.msecs ??= -1 / 0, h.nsecs ??= 0, s === h.msecs ? (h.nsecs++, h.nsecs >= 1e4 && (h.node = void 0, h.nsecs = 0)) : s > h.msecs ? h.nsecs = 0 : s < h.msecs && (h.node = void 0), h.node || (h.node = u.slice(10, 16), h.node[0] |= 1, h.clockseq = (u[8] << 8 | u[9]) & 16383), h.msecs = s, h;
1161
+ function He(h, s, a) {
1162
+ return h.msecs ??= -1 / 0, h.nsecs ??= 0, s === h.msecs ? (h.nsecs++, h.nsecs >= 1e4 && (h.node = void 0, h.nsecs = 0)) : s > h.msecs ? h.nsecs = 0 : s < h.msecs && (h.node = void 0), h.node || (h.node = a.slice(10, 16), h.node[0] |= 1, h.clockseq = (a[8] << 8 | a[9]) & 16383), h.msecs = s, h;
1197
1163
  }
1198
- function He(h, s, u, p, g, y, B = 0) {
1164
+ function Ge(h, s, a, p, w, b, j = 0) {
1199
1165
  if (h.length < 16)
1200
1166
  throw new Error("Random bytes length must be >= 16");
1201
- if (!y)
1202
- y = new Uint8Array(16), B = 0;
1203
- else if (B < 0 || B + 16 > y.length)
1204
- throw new RangeError(`UUID byte range ${B}:${B + 15} is out of buffer bounds`);
1205
- s ??= Date.now(), u ??= 0, p ??= (h[8] << 8 | h[9]) & 16383, g ??= h.slice(10, 16), s += 122192928e5;
1206
- const k = ((s & 268435455) * 1e4 + u) % 4294967296;
1207
- y[B++] = k >>> 24 & 255, y[B++] = k >>> 16 & 255, y[B++] = k >>> 8 & 255, y[B++] = k & 255;
1208
- const U = s / 4294967296 * 1e4 & 268435455;
1209
- y[B++] = U >>> 8 & 255, y[B++] = U & 255, y[B++] = U >>> 24 & 15 | 16, y[B++] = U >>> 16 & 255, y[B++] = p >>> 8 | 128, y[B++] = p & 255;
1167
+ if (!b)
1168
+ b = new Uint8Array(16), j = 0;
1169
+ else if (j < 0 || j + 16 > b.length)
1170
+ throw new RangeError(`UUID byte range ${j}:${j + 15} is out of buffer bounds`);
1171
+ s ??= Date.now(), a ??= 0, p ??= (h[8] << 8 | h[9]) & 16383, w ??= h.slice(10, 16), s += 122192928e5;
1172
+ const k = ((s & 268435455) * 1e4 + a) % 4294967296;
1173
+ b[j++] = k >>> 24 & 255, b[j++] = k >>> 16 & 255, b[j++] = k >>> 8 & 255, b[j++] = k & 255;
1174
+ const P = s / 4294967296 * 1e4 & 268435455;
1175
+ b[j++] = P >>> 8 & 255, b[j++] = P & 255, b[j++] = P >>> 24 & 15 | 16, b[j++] = P >>> 16 & 255, b[j++] = p >>> 8 | 128, b[j++] = p & 255;
1210
1176
  for (let q = 0; q < 6; ++q)
1211
- y[B++] = g[q];
1212
- return y;
1177
+ b[j++] = w[q];
1178
+ return b;
1213
1179
  }
1214
- function ne(h) {
1215
- let s, u, p;
1180
+ function re(h) {
1181
+ let s, a, p;
1216
1182
  if (typeof h != "string")
1217
- s = "~", u = 0, p = ze();
1183
+ s = "~", a = 0, p = ze();
1218
1184
  else {
1219
- let g;
1220
- [s, g, p] = h.split("$"), u = ((parseInt(g, 36) || 0) + 1) % Number.MAX_SAFE_INTEGER, u === 0 && (s += "~");
1185
+ let w;
1186
+ [s, w, p] = h.split("$"), a = ((parseInt(w, 36) || 0) + 1) % Number.MAX_SAFE_INTEGER, a === 0 && (s += "~");
1221
1187
  }
1222
- return `${s}$${u.toString(36).padStart(11, "0")}$${p}`;
1188
+ return `${s}$${a.toString(36).padStart(11, "0")}$${p}`;
1223
1189
  }
1224
- function me(h) {
1190
+ function ye(h) {
1225
1191
  return {
1226
1192
  ...h,
1227
1193
  requestInstruction: {
@@ -1237,43 +1203,43 @@ function We(h, s) {
1237
1203
  switch (s.type) {
1238
1204
  // Creates a new request and instructs the resource to fetch data.
1239
1205
  case "next-request": {
1240
- const { requestDetails: u, persistent: p } = s, g = ne(h.request), y = ne(h.revision);
1241
- let B = !1;
1242
- h.persistent === "very" && p === "very" ? B = "very" : h.persistent && p && (B = !0);
1243
- const k = !u.empty && h.dataProvider.shouldPersist(
1244
- u,
1206
+ const { requestDetails: a, persistent: p } = s, w = re(h.request), b = re(h.revision);
1207
+ let j = !1;
1208
+ h.persistent === "very" && p === "very" ? j = "very" : h.persistent && p && (j = !0);
1209
+ const k = !a.empty && h.dataProvider.shouldPersist(
1210
+ a,
1245
1211
  h.requestDetails,
1246
- B,
1212
+ j,
1247
1213
  h.value
1248
1214
  );
1249
- return me({
1215
+ return ye({
1250
1216
  dataProvider: h.dataProvider,
1251
- requestDetails: u,
1252
- request: g,
1253
- revision: y,
1254
- isLoading: !u.empty,
1217
+ requestDetails: a,
1218
+ request: w,
1219
+ revision: b,
1220
+ isLoading: !a.empty,
1255
1221
  value: k ? h.value : {
1256
- name: u.name,
1257
- query: u.query,
1258
- options: u.options,
1259
- request: g,
1260
- revision: y,
1222
+ name: a.name,
1223
+ query: a.query,
1224
+ options: a.options,
1225
+ request: w,
1226
+ revision: b,
1261
1227
  data: h.dataProvider.getEmptyResponse(
1262
- u
1228
+ a
1263
1229
  ),
1264
1230
  meta: {},
1265
1231
  error: void 0,
1266
- isEmpty: !!u.empty,
1267
- isIncomplete: !u.empty,
1268
- isInitial: !u.empty
1232
+ isEmpty: !!a.empty,
1233
+ isIncomplete: !a.empty,
1234
+ isInitial: !a.empty
1269
1235
  },
1270
1236
  persistent: p
1271
1237
  });
1272
1238
  }
1273
1239
  // Creates a new revision for the current request and instructs the resource to fetch data.
1274
1240
  case "next-revision": {
1275
- const { notify: u } = s, p = ne(h.revision);
1276
- return u({ request: h.request, revision: p }), me({
1241
+ const { notify: a } = s, p = re(h.revision);
1242
+ return a({ request: h.request, revision: p }), ye({
1277
1243
  ...h,
1278
1244
  revision: p,
1279
1245
  isLoading: !h.requestDetails.empty
@@ -1281,43 +1247,43 @@ function We(h, s) {
1281
1247
  }
1282
1248
  // Sets a new persistence level.
1283
1249
  case "set-persistence": {
1284
- const { persistent: u } = s;
1250
+ const { persistent: a } = s;
1285
1251
  return {
1286
1252
  ...h,
1287
- persistent: u
1253
+ persistent: a
1288
1254
  };
1289
1255
  }
1290
1256
  // Updates the current request's data.
1291
1257
  case "update-data": {
1292
- const { request: u, revision: p, value: g } = s;
1293
- return u !== h.request || p !== h.revision ? h : {
1258
+ const { request: a, revision: p, value: w } = s;
1259
+ return a !== h.request || p !== h.revision ? h : {
1294
1260
  ...h,
1295
- isLoading: g.isIncomplete,
1296
- value: g
1261
+ isLoading: w.isIncomplete,
1262
+ value: w
1297
1263
  };
1298
1264
  }
1299
1265
  }
1300
1266
  return h;
1301
1267
  }
1302
- function Je(h, s, u, p) {
1303
- const { dataProvider: g, requestDetails: y, request: B, revision: k, value: U } = h, q = new ye({ ...U.meta }, s);
1304
- let M = Promise.resolve(U);
1305
- const N = (O, F, E) => {
1306
- M = M.then((S) => {
1268
+ function Je(h, s, a, p) {
1269
+ const { dataProvider: w, requestDetails: b, request: j, revision: k, value: P } = h, q = new ge({ ...P.meta }, s);
1270
+ let T = Promise.resolve(P);
1271
+ const M = (R, F, E) => {
1272
+ T = T.then((S) => {
1307
1273
  try {
1308
1274
  let c;
1309
- if (O != null)
1275
+ if (R != null)
1310
1276
  c = {
1311
1277
  ...S,
1312
- error: O,
1278
+ error: R,
1313
1279
  isIncomplete: !1
1314
1280
  };
1315
1281
  else {
1316
- const b = {
1317
- name: y.name,
1318
- query: y.query,
1319
- options: y.options,
1320
- request: B,
1282
+ const m = {
1283
+ name: b.name,
1284
+ query: b.query,
1285
+ options: b.options,
1286
+ request: j,
1321
1287
  revision: k,
1322
1288
  data: E,
1323
1289
  meta: q.commit(S.meta),
@@ -1326,61 +1292,61 @@ function Je(h, s, u, p) {
1326
1292
  isIncomplete: !F,
1327
1293
  isInitial: !!S.isInitial && !F
1328
1294
  };
1329
- b.data = g.transition(
1330
- b,
1295
+ m.data = w.transition(
1296
+ m,
1331
1297
  S
1332
- ), b.data = g.recycleItems(
1333
- b,
1298
+ ), m.data = w.recycleItems(
1299
+ m,
1334
1300
  S
1335
- ), c = b;
1301
+ ), c = m;
1336
1302
  }
1337
- return p({ type: "update-data", request: B, revision: k, value: c }), c;
1303
+ return p({ type: "update-data", request: j, revision: k, value: c }), c;
1338
1304
  } catch {
1339
1305
  return S;
1340
1306
  }
1341
1307
  });
1342
1308
  };
1343
- g.continuousGet(
1344
- y.name,
1345
- y.query,
1346
- y.options,
1309
+ w.continuousGet(
1310
+ b.name,
1311
+ b.query,
1312
+ b.options,
1347
1313
  q,
1348
- N,
1349
- u
1314
+ M,
1315
+ a
1350
1316
  );
1351
1317
  }
1352
1318
  function Ke({
1353
1319
  dataProvider: h,
1354
1320
  name: s,
1355
- query: u,
1321
+ query: a,
1356
1322
  empty: p,
1357
- options: g,
1358
- persistent: y,
1359
- ...B
1323
+ options: w,
1324
+ persistent: b,
1325
+ ...j
1360
1326
  }) {
1361
- const k = Ue(), U = h || k.dataProvider, q = se(
1327
+ const k = Ue(), P = h || k.dataProvider, q = ie(
1362
1328
  () => ({
1363
1329
  name: s,
1364
- query: u,
1330
+ query: a,
1365
1331
  empty: !!p,
1366
- options: g
1332
+ options: w
1367
1333
  }),
1368
- [s, u, p, g]
1369
- ), [M, N] = Ce(We, void 0, () => {
1370
- const l = ne(), P = ne();
1371
- return me({
1372
- dataProvider: U,
1334
+ [s, a, p, w]
1335
+ ), [T, M] = qe(We, void 0, () => {
1336
+ const l = re(), L = re();
1337
+ return ye({
1338
+ dataProvider: P,
1373
1339
  requestDetails: q,
1374
1340
  request: l,
1375
- revision: P,
1341
+ revision: L,
1376
1342
  isLoading: !q.empty,
1377
1343
  value: {
1378
1344
  name: q.name,
1379
1345
  query: q.query,
1380
1346
  options: q.options,
1381
1347
  request: l,
1382
- revision: P,
1383
- data: U?.getEmptyResponse(
1348
+ revision: L,
1349
+ data: P?.getEmptyResponse(
1384
1350
  q
1385
1351
  ),
1386
1352
  meta: {},
@@ -1389,100 +1355,100 @@ function Ke({
1389
1355
  isIncomplete: !q.empty,
1390
1356
  isInitial: !q.empty
1391
1357
  },
1392
- persistent: y ?? !1
1358
+ persistent: b ?? !1
1393
1359
  });
1394
1360
  }), {
1395
- dataProvider: O,
1361
+ dataProvider: R,
1396
1362
  requestDetails: F,
1397
1363
  request: E,
1398
1364
  revision: S,
1399
1365
  isLoading: c,
1400
- value: b,
1366
+ value: m,
1401
1367
  persistent: A,
1402
1368
  requestInstruction: _
1403
- } = M;
1404
- if (O == null)
1369
+ } = T;
1370
+ if (R == null)
1405
1371
  throw new Error(
1406
1372
  "Unmet requirement: The DataProvider for the useResource hook is missing - Check your ConfigContext provider and the dataProvider property"
1407
1373
  );
1408
- if (O !== U)
1374
+ if (R !== P)
1409
1375
  throw new Error(
1410
1376
  "Constant violation: The DataProvider provided to the useResource hook must not be replaced - Check your ConfigContext provider and the dataProvider property"
1411
1377
  );
1412
- const [v, C] = Pe();
1413
- de(() => {
1414
- const l = O.createInstance() ?? {};
1378
+ const [v, C] = Ce();
1379
+ ce(() => {
1380
+ const l = R.createInstance() ?? {};
1415
1381
  return C(l), () => {
1416
- O.releaseInstance(l);
1382
+ R.releaseInstance(l);
1417
1383
  };
1418
- }, [O]), F !== q && !O.compareRequests(q, F) ? N({
1384
+ }, [R]), F !== q && !R.compareRequests(q, F) ? M({
1419
1385
  type: "next-request",
1420
1386
  requestDetails: q,
1421
- persistent: y ?? !1
1422
- }) : A !== (y ?? !1) && N({ type: "set-persistence", persistent: y ?? !1 });
1423
- const a = Le(
1387
+ persistent: b ?? !1
1388
+ }) : A !== (b ?? !1) && M({ type: "set-persistence", persistent: b ?? !1 });
1389
+ const u = Le(
1424
1390
  async () => new Promise((l) => {
1425
- N({ type: "next-revision", notify: l });
1391
+ M({ type: "next-revision", notify: l });
1426
1392
  }),
1427
1393
  []
1428
1394
  );
1429
- de(() => F.empty ? void 0 : O.subscribe(F.name, a), [F.empty, O, F.name, a]), de(() => {
1395
+ ce(() => F.empty ? void 0 : R.subscribe(F.name, u), [F.empty, R, F.name, u]), ce(() => {
1430
1396
  if (v == null || _.requestDetails.empty)
1431
1397
  return;
1432
- const l = new je();
1398
+ const l = new Be();
1433
1399
  return Je(
1434
1400
  _,
1435
1401
  v,
1436
1402
  l,
1437
- N
1403
+ M
1438
1404
  ), () => {
1439
1405
  l.abort();
1440
1406
  };
1441
1407
  }, [v, _]);
1442
- const d = S !== b.revision, r = d ? E : b.request, o = d ? S : b.revision, t = se(
1408
+ const d = S !== m.revision, r = d ? E : m.request, o = d ? S : m.revision, t = ie(
1443
1409
  () => ({ request: r, revision: o }),
1444
1410
  [r, o]
1445
- ), f = se(
1446
- () => ({ ...b, dataProvider: O, isLoading: c, isStale: d, next: t, notify: a }),
1447
- [b, O, c, d, t, a]
1411
+ ), f = ie(
1412
+ () => ({ ...m, dataProvider: R, isLoading: c, isStale: d, next: t, notify: u }),
1413
+ [m, R, c, d, t, u]
1448
1414
  );
1449
- return O.contextPlugins.reduce(
1450
- (l, P) => P(l, B),
1415
+ return R.contextPlugins.reduce(
1416
+ (l, L) => L(l, j),
1451
1417
  f
1452
1418
  );
1453
1419
  }
1454
1420
  function st({
1455
1421
  dataProvider: h,
1456
1422
  name: s,
1457
- query: u,
1423
+ query: a,
1458
1424
  empty: p,
1459
- options: g,
1460
- persistent: y,
1461
- children: B,
1425
+ options: w,
1426
+ persistent: b,
1427
+ children: j,
1462
1428
  ...k
1463
1429
  }) {
1464
- const U = Ke({
1430
+ const P = Ke({
1465
1431
  dataProvider: h,
1466
1432
  name: s,
1467
- query: u,
1433
+ query: a,
1468
1434
  empty: p,
1469
- options: g,
1470
- persistent: y,
1435
+ options: w,
1436
+ persistent: b,
1471
1437
  ...k
1472
1438
  });
1473
- return U.dataProvider.uiPlugins.reduceRight(
1474
- (q, M) => (N) => /* @__PURE__ */ ue(M, { ...k, context: N, children: q }),
1475
- (q) => /* @__PURE__ */ ue(Fe, { resource: q, children: B })
1476
- )(U);
1439
+ return P.dataProvider.uiPlugins.reduceRight(
1440
+ (q, T) => (M) => /* @__PURE__ */ se(T, { ...k, context: M, children: q }),
1441
+ (q) => /* @__PURE__ */ se(Fe, { resource: q, children: j })
1442
+ )(P);
1477
1443
  }
1478
1444
  export {
1479
- je as AbortSignal,
1480
- ke as ChannelNotifier,
1445
+ Be as AbortSignal,
1446
+ Pe as ChannelNotifier,
1481
1447
  Ze as ConfigConsumer,
1482
1448
  ot as ConfigProvider,
1483
- qe as DataProvider,
1484
- ye as Meta,
1485
- Be as Notifier,
1449
+ Se as DataProvider,
1450
+ ge as Meta,
1451
+ Ae as Notifier,
1486
1452
  st as Resource,
1487
1453
  et as ResourceConsumer,
1488
1454
  Fe as ResourceProvider,