@civet/core 5.0.0 → 6.0.1

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,8 +1,8 @@
1
- import { createContext as Ie, useContext as xe, useMemo as oe, useReducer as qe, useState as Ce, useEffect as ce, useCallback as Le } from "react";
1
+ import { createContext as Ee, useContext as xe, useMemo as oe, useReducer as qe, useState as Ce, useEffect as ce, useCallback as Le } from "react";
2
2
  import { jsx as se } from "react/jsx-runtime";
3
- const ue = Ie({});
3
+ const ue = Ee({});
4
4
  ue.displayName = "ConfigContext";
5
- const Ze = ue.Consumer, Ue = () => xe(ue), ae = Ie({
5
+ const et = ue.Consumer, Pe = () => xe(ue), ae = Ee({
6
6
  name: "",
7
7
  query: void 0,
8
8
  options: void 0,
@@ -21,7 +21,7 @@ const Ze = ue.Consumer, Ue = () => xe(ue), ae = Ie({
21
21
  notify: () => Promise.reject(new Error("Missing context provider"))
22
22
  });
23
23
  ae.displayName = "ResourceContext";
24
- const et = ae.Consumer, tt = () => xe(ae);
24
+ const Ue = ae.Provider, tt = ae.Consumer, rt = () => xe(ae);
25
25
  class Ae {
26
26
  listeners = /* @__PURE__ */ new Set();
27
27
  subscribe = (s) => {
@@ -93,7 +93,7 @@ class Be {
93
93
  };
94
94
  };
95
95
  }
96
- class Pe {
96
+ class ke {
97
97
  channels = {};
98
98
  subscribe = (s, a) => {
99
99
  if (s == null || !`${s}`)
@@ -111,33 +111,33 @@ class Pe {
111
111
  ) : this.channels[s] != null && this.channels[s].trigger(...a);
112
112
  };
113
113
  }
114
- function rt(...h) {
114
+ function nt(...h) {
115
115
  return h.length === 0 ? (s) => s : h.length === 1 ? h[0] : h.reduce((s, a) => (p) => s(a(p)));
116
116
  }
117
117
  function je(h) {
118
118
  return h && h.__esModule && Object.prototype.hasOwnProperty.call(h, "default") ? h.default : h;
119
119
  }
120
120
  var de, _e;
121
- function ke() {
121
+ function De() {
122
122
  return _e || (_e = 1, de = function h(s, a) {
123
123
  if (s === a) return !0;
124
124
  if (s && a && typeof s == "object" && typeof a == "object") {
125
125
  if (s.constructor !== a.constructor) return !1;
126
- var p, b, w;
126
+ var p, m, w;
127
127
  if (Array.isArray(s)) {
128
128
  if (p = s.length, p != a.length) return !1;
129
- for (b = p; b-- !== 0; )
130
- if (!h(s[b], a[b])) return !1;
129
+ for (m = p; m-- !== 0; )
130
+ if (!h(s[m], a[m])) return !1;
131
131
  return !0;
132
132
  }
133
133
  if (s.constructor === RegExp) return s.source === a.source && s.flags === a.flags;
134
134
  if (s.valueOf !== Object.prototype.valueOf) return s.valueOf() === a.valueOf();
135
135
  if (s.toString !== Object.prototype.toString) return s.toString() === a.toString();
136
136
  if (w = Object.keys(s), p = w.length, p !== Object.keys(a).length) return !1;
137
- for (b = p; b-- !== 0; )
138
- if (!Object.prototype.hasOwnProperty.call(a, w[b])) return !1;
139
- for (b = p; b-- !== 0; ) {
140
- var j = w[b];
137
+ for (m = p; m-- !== 0; )
138
+ if (!Object.prototype.hasOwnProperty.call(a, w[m])) return !1;
139
+ for (m = p; m-- !== 0; ) {
140
+ var j = w[m];
141
141
  if (!h(s[j], a[j])) return !1;
142
142
  }
143
143
  return !0;
@@ -145,59 +145,59 @@ function ke() {
145
145
  return s !== s && a !== a;
146
146
  }), de;
147
147
  }
148
- var De = ke();
149
- const Oe = /* @__PURE__ */ je(De);
148
+ var Oe = De();
149
+ const Re = /* @__PURE__ */ je(Oe);
150
150
  function ie(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 he = { exports: {} }, Ee;
154
- function Re() {
155
- return Ee || (Ee = 1, (function(h, s) {
153
+ var he = { exports: {} }, Ie;
154
+ function Te() {
155
+ return Ie || (Ie = 1, (function(h, s) {
156
156
  (function(a) {
157
157
  h.exports = a();
158
158
  })(function() {
159
- return (function a(p, b, w) {
160
- function j(q, T) {
161
- if (!b[q]) {
159
+ return (function a(p, m, w) {
160
+ function j(q, M) {
161
+ if (!m[q]) {
162
162
  if (!p[q]) {
163
- var M = typeof ie == "function" && ie;
164
- if (!T && M) return M(q, !0);
165
- if (k) return k(q, !0);
163
+ var T = typeof ie == "function" && ie;
164
+ if (!M && T) return T(q, !0);
165
+ if (U) return U(q, !0);
166
166
  throw new Error("Cannot find module '" + q + "'");
167
167
  }
168
- T = b[q] = { exports: {} }, p[q][0].call(T.exports, function(R) {
168
+ M = m[q] = { exports: {} }, p[q][0].call(M.exports, function(R) {
169
169
  var F = p[q][1][R];
170
170
  return j(F || R);
171
- }, T, T.exports, a, p, b, w);
171
+ }, M, M.exports, a, p, m, w);
172
172
  }
173
- return b[q].exports;
173
+ return m[q].exports;
174
174
  }
175
- for (var k = typeof ie == "function" && ie, P = 0; P < w.length; P++) j(w[P]);
175
+ for (var U = typeof ie == "function" && ie, k = 0; k < w.length; k++) j(w[k]);
176
176
  return j;
177
- })({ 1: [function(a, p, b) {
178
- (function(w, j, k, P, q, T, M, R, F) {
179
- var E = a("crypto");
177
+ })({ 1: [function(a, p, m) {
178
+ (function(w, j, U, k, q, M, T, R, F) {
179
+ var I = a("crypto");
180
180
  function S(u, d) {
181
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(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);
183
+ return (r = d.algorithm !== "passthrough" ? I.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
- (b = p.exports = S).sha1 = function(u) {
185
+ (m = p.exports = S).sha1 = function(u) {
186
186
  return S(u);
187
- }, b.keys = function(u) {
187
+ }, m.keys = function(u) {
188
188
  return S(u, { excludeValues: !0, algorithm: "sha1", encoding: "hex" });
189
- }, b.MD5 = function(u) {
189
+ }, m.MD5 = function(u) {
190
190
  return S(u, { algorithm: "md5", encoding: "hex" });
191
- }, b.keysMD5 = function(u) {
191
+ }, m.keysMD5 = function(u) {
192
192
  return S(u, { algorithm: "md5", encoding: "hex", excludeValues: !0 });
193
193
  };
194
- var c = E.getHashes ? E.getHashes().slice() : ["sha1", "md5"], m = (c.push("passthrough"), ["buffer", "hex", "binary", "base64"]);
194
+ var c = I.getHashes ? I.getHashes().slice() : ["sha1", "md5"], b = (c.push("passthrough"), ["buffer", "hex", "binary", "base64"]);
195
195
  function A(u, d) {
196
196
  var r = {};
197
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 i = 0; i < c.length; ++i) c[i].toLowerCase() === r.algorithm.toLowerCase() && (r.algorithm = c[i]);
199
199
  if (c.indexOf(r.algorithm) === -1) throw new Error('Algorithm "' + r.algorithm + '" not supported. supported values: ' + c.join(", "));
200
- if (m.indexOf(r.encoding) === -1 && r.algorithm !== "passthrough") throw new Error('Encoding "' + r.encoding + '" not supported. supported values: ' + m.join(", "));
200
+ if (b.indexOf(r.encoding) === -1 && r.algorithm !== "passthrough") throw new Error('Encoding "' + r.encoding + '" not supported. supported values: ' + b.join(", "));
201
201
  return r;
202
202
  }
203
203
  function _(u) {
@@ -213,28 +213,28 @@ function Re() {
213
213
  }, _object: function(t) {
214
214
  var f, l = Object.prototype.toString.call(t), L = /\[object (.*)\]/i.exec(l);
215
215
  if (L = (L = L ? L[1] : "unknown:[" + l + "]").toLowerCase(), 0 <= (l = r.indexOf(t))) return this.dispatch("[CIRCULAR:" + l + "]");
216
- if (r.push(t), k !== void 0 && k.isBuffer && k.isBuffer(t)) return i("buffer:"), i(t);
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
- })), i("object:" + l.length + ":"), f = this, l.forEach(function(U) {
220
- f.dispatch(U), i(":"), u.excludeValues || f.dispatch(t[U]), i(",");
216
+ if (r.push(t), U !== void 0 && U.isBuffer && U.isBuffer(t)) return i("buffer:"), i(t);
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(P) {
218
+ return !u.excludeKeys(P);
219
+ })), i("object:" + l.length + ":"), f = this, l.forEach(function(P) {
220
+ f.dispatch(P), i(":"), u.excludeValues || f.dispatch(t[P]), i(",");
221
221
  });
222
222
  if (!this["_" + L]) {
223
223
  if (u.ignoreUnknown) return i("[" + L + "]");
224
224
  throw new Error('Unknown object type "' + L + '"');
225
225
  }
226
226
  this["_" + L](t);
227
- }, _array: function(t, U) {
228
- U = U !== void 0 ? U : u.unorderedArrays !== !1;
227
+ }, _array: function(t, P) {
228
+ P = P !== void 0 ? P : u.unorderedArrays !== !1;
229
229
  var l = this;
230
- if (i("array:" + t.length + ":"), !U || t.length <= 1) return t.forEach(function(D) {
230
+ if (i("array:" + t.length + ":"), !P || t.length <= 1) return t.forEach(function(D) {
231
231
  return l.dispatch(D);
232
232
  });
233
- var L = [], U = t.map(function(D) {
233
+ var L = [], P = t.map(function(D) {
234
234
  var B = new C(), Y = r.slice();
235
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(L), U.sort(), this._array(U, !1);
237
+ return r = r.concat(L), P.sort(), this._array(P, !1);
238
238
  }, _date: function(t) {
239
239
  return i("date:" + t.toJSON());
240
240
  }, _symbol: function(t) {
@@ -340,46 +340,46 @@ Use "options.replacer" or "options.ignoreUnknown"
340
340
  return this.buf;
341
341
  } };
342
342
  }
343
- b.writeToStream = function(u, d, r) {
343
+ m.writeToStream = function(u, d, r) {
344
344
  return r === void 0 && (r = d, d = {}), v(d = A(u, d), r).dispatch(u);
345
345
  };
346
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, b) {
348
- (function(w, j, k, P, q, T, M, R, F) {
349
- (function(E) {
350
- var S = typeof Uint8Array < "u" ? Uint8Array : Array, c = 43, m = 47, A = 48, _ = 97, v = 65, C = 45, u = 95;
347
+ }, { buffer: 3, crypto: 5, lYpoI2: 11 }], 2: [function(a, p, m) {
348
+ (function(w, j, U, k, q, M, T, R, F) {
349
+ (function(I) {
350
+ var S = typeof Uint8Array < "u" ? Uint8Array : Array, c = 43, b = 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 === 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;
352
+ return r = r.charCodeAt(0), r === c || r === C ? 62 : r === b || 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
- E.toByteArray = function(r) {
354
+ I.toByteArray = function(r) {
355
355
  var i, 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), L = 0 < f ? r.length - 4 : r.length, U = 0;
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, P = 0;
358
358
  function D(B) {
359
- l[U++] = B;
359
+ l[P++] = B;
360
360
  }
361
361
  for (i = 0; i < L; i += 4, 0) D((16711680 & (t = d(r.charAt(i)) << 18 | d(r.charAt(i + 1)) << 12 | d(r.charAt(i + 2)) << 6 | d(r.charAt(i + 3)))) >> 16), D((65280 & t) >> 8), D(255 & t);
362
362
  return f == 2 ? D(255 & (t = d(r.charAt(i)) << 2 | d(r.charAt(i + 1)) >> 4)) : f == 1 && (D((t = d(r.charAt(i)) << 10 | d(r.charAt(i + 1)) << 4 | d(r.charAt(i + 2)) >> 2) >> 8 & 255), D(255 & t)), l;
363
- }, E.fromByteArray = function(r) {
364
- var i, t, f, l, L = r.length % 3, U = "";
363
+ }, I.fromByteArray = function(r) {
364
+ var i, t, f, l, L = r.length % 3, P = "";
365
365
  function D(B) {
366
366
  return "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(B);
367
367
  }
368
- for (i = 0, f = r.length - L; i < f; i += 3) t = (r[i] << 16) + (r[i + 1] << 8) + r[i + 2], U += D((l = t) >> 18 & 63) + D(l >> 12 & 63) + D(l >> 6 & 63) + D(63 & l);
368
+ for (i = 0, f = r.length - L; i < f; i += 3) t = (r[i] << 16) + (r[i + 1] << 8) + r[i + 2], P += D((l = t) >> 18 & 63) + D(l >> 12 & 63) + D(l >> 6 & 63) + D(63 & l);
369
369
  switch (L) {
370
370
  case 1:
371
- U = (U += D((t = r[r.length - 1]) >> 2)) + D(t << 4 & 63) + "==";
371
+ P = (P += D((t = r[r.length - 1]) >> 2)) + D(t << 4 & 63) + "==";
372
372
  break;
373
373
  case 2:
374
- U = (U = (U += D((t = (r[r.length - 2] << 8) + r[r.length - 1]) >> 10)) + D(t >> 4 & 63)) + D(t << 2 & 63) + "=";
374
+ P = (P = (P += D((t = (r[r.length - 2] << 8) + r[r.length - 1]) >> 10)) + D(t >> 4 & 63)) + D(t << 2 & 63) + "=";
375
375
  }
376
- return U;
376
+ return P;
377
377
  };
378
- })(b === void 0 ? this.base64js = {} : b);
378
+ })(m === void 0 ? this.base64js = {} : m);
379
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, b) {
381
- (function(w, j, c, P, q, T, M, R, F) {
382
- var E = a("base64-js"), S = a("ieee754");
380
+ }, { buffer: 3, lYpoI2: 11 }], 3: [function(a, p, m) {
381
+ (function(w, j, c, k, q, M, T, R, F) {
382
+ var I = a("base64-js"), S = a("ieee754");
383
383
  function c(e, n, o) {
384
384
  if (!(this instanceof c)) return new c(e, n, o);
385
385
  var y, g, x, O, V = typeof e;
@@ -396,7 +396,7 @@ Use "options.replacer" or "options.ignoreUnknown"
396
396
  else if (V == "number" && !c._useTypedArrays && !o) for (x = 0; x < y; x++) g[x] = 0;
397
397
  return g;
398
398
  }
399
- function m(e, n, o, y) {
399
+ function b(e, n, o, y) {
400
400
  return c._charsWritten = ne((function(g) {
401
401
  for (var x = [], O = 0; O < g.length; O++) x.push(255 & g.charCodeAt(O));
402
402
  return x;
@@ -415,46 +415,46 @@ Use "options.replacer" or "options.ignoreUnknown"
415
415
  return y;
416
416
  }
417
417
  function v(e, n, o, x) {
418
- x || (I(typeof o == "boolean", "missing or invalid endian"), I(n != null, "missing offset"), I(n + 1 < e.length, "Trying to read beyond buffer length"));
418
+ x || (E(typeof o == "boolean", "missing or invalid endian"), E(n != null, "missing offset"), E(n + 1 < e.length, "Trying to read beyond buffer length"));
419
419
  var g, x = e.length;
420
420
  if (!(x <= n)) return o ? (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, o, x) {
423
- x || (I(typeof o == "boolean", "missing or invalid endian"), I(n != null, "missing offset"), I(n + 3 < e.length, "Trying to read beyond buffer length"));
423
+ x || (E(typeof o == "boolean", "missing or invalid endian"), E(n != null, "missing offset"), E(n + 3 < e.length, "Trying to read beyond buffer length"));
424
424
  var g, x = e.length;
425
425
  if (!(x <= n)) return o ? (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
427
  function u(e, n, o, y) {
428
- if (y || (I(typeof o == "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, o, !0), 32768 & y ? -1 * (65535 - y + 1) : y;
428
+ if (y || (E(typeof o == "boolean", "missing or invalid endian"), E(n != null, "missing offset"), E(n + 1 < e.length, "Trying to read beyond buffer length")), !(e.length <= n)) return y = v(e, n, o, !0), 32768 & y ? -1 * (65535 - y + 1) : y;
429
429
  }
430
430
  function d(e, n, o, y) {
431
- if (y || (I(typeof o == "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, o, !0), 2147483648 & y ? -1 * (4294967295 - y + 1) : y;
431
+ if (y || (E(typeof o == "boolean", "missing or invalid endian"), E(n != null, "missing offset"), E(n + 3 < e.length, "Trying to read beyond buffer length")), !(e.length <= n)) return y = C(e, n, o, !0), 2147483648 & y ? -1 * (4294967295 - y + 1) : y;
432
432
  }
433
433
  function r(e, n, o, y) {
434
- return y || (I(typeof o == "boolean", "missing or invalid endian"), I(n + 3 < e.length, "Trying to read beyond buffer length")), S.read(e, n, o, 23, 4);
434
+ return y || (E(typeof o == "boolean", "missing or invalid endian"), E(n + 3 < e.length, "Trying to read beyond buffer length")), S.read(e, n, o, 23, 4);
435
435
  }
436
436
  function i(e, n, o, y) {
437
- return y || (I(typeof o == "boolean", "missing or invalid endian"), I(n + 7 < e.length, "Trying to read beyond buffer length")), S.read(e, n, o, 52, 8);
437
+ return y || (E(typeof o == "boolean", "missing or invalid endian"), E(n + 7 < e.length, "Trying to read beyond buffer length")), S.read(e, n, o, 52, 8);
438
438
  }
439
439
  function t(e, n, o, y, g) {
440
- if (g || (I(n != null, "missing value"), I(typeof y == "boolean", "missing or invalid endian"), I(o != null, "missing offset"), I(o + 1 < e.length, "trying to write beyond buffer length"), fe(n, 65535)), g = e.length, !(g <= o)) for (var x = 0, O = Math.min(g - o, 2); x < O; x++) e[o + x] = (n & 255 << 8 * (y ? x : 1 - x)) >>> 8 * (y ? x : 1 - x);
440
+ if (g || (E(n != null, "missing value"), E(typeof y == "boolean", "missing or invalid endian"), E(o != null, "missing offset"), E(o + 1 < e.length, "trying to write beyond buffer length"), fe(n, 65535)), g = e.length, !(g <= o)) for (var x = 0, O = Math.min(g - o, 2); x < O; x++) e[o + x] = (n & 255 << 8 * (y ? x : 1 - x)) >>> 8 * (y ? x : 1 - x);
441
441
  }
442
442
  function f(e, n, o, y, g) {
443
- if (g || (I(n != null, "missing value"), I(typeof y == "boolean", "missing or invalid endian"), I(o != null, "missing offset"), I(o + 3 < e.length, "trying to write beyond buffer length"), fe(n, 4294967295)), g = e.length, !(g <= o)) for (var x = 0, O = Math.min(g - o, 4); x < O; x++) e[o + x] = n >>> 8 * (y ? x : 3 - x) & 255;
443
+ if (g || (E(n != null, "missing value"), E(typeof y == "boolean", "missing or invalid endian"), E(o != null, "missing offset"), E(o + 3 < e.length, "trying to write beyond buffer length"), fe(n, 4294967295)), g = e.length, !(g <= o)) for (var x = 0, O = Math.min(g - o, 4); x < O; x++) e[o + x] = n >>> 8 * (y ? x : 3 - x) & 255;
444
444
  }
445
445
  function l(e, n, o, y, g) {
446
- g || (I(n != null, "missing value"), I(typeof y == "boolean", "missing or invalid endian"), I(o != null, "missing offset"), I(o + 1 < e.length, "Trying to write beyond buffer length"), le(n, 32767, -32768)), e.length <= o || t(e, 0 <= n ? n : 65535 + n + 1, o, y, g);
446
+ g || (E(n != null, "missing value"), E(typeof y == "boolean", "missing or invalid endian"), E(o != null, "missing offset"), E(o + 1 < e.length, "Trying to write beyond buffer length"), le(n, 32767, -32768)), e.length <= o || t(e, 0 <= n ? n : 65535 + n + 1, o, y, g);
447
447
  }
448
448
  function L(e, n, o, y, g) {
449
- g || (I(n != null, "missing value"), I(typeof y == "boolean", "missing or invalid endian"), I(o != null, "missing offset"), I(o + 3 < e.length, "Trying to write beyond buffer length"), le(n, 2147483647, -2147483648)), e.length <= o || f(e, 0 <= n ? n : 4294967295 + n + 1, o, y, g);
449
+ g || (E(n != null, "missing value"), E(typeof y == "boolean", "missing or invalid endian"), E(o != null, "missing offset"), E(o + 3 < e.length, "Trying to write beyond buffer length"), le(n, 2147483647, -2147483648)), e.length <= o || f(e, 0 <= n ? n : 4294967295 + n + 1, o, y, g);
450
450
  }
451
- function U(e, n, o, y, g) {
452
- g || (I(n != null, "missing value"), I(typeof y == "boolean", "missing or invalid endian"), I(o != null, "missing offset"), I(o + 3 < e.length, "Trying to write beyond buffer length"), we(n, 34028234663852886e22, -34028234663852886e22)), e.length <= o || S.write(e, n, o, y, 23, 4);
451
+ function P(e, n, o, y, g) {
452
+ g || (E(n != null, "missing value"), E(typeof y == "boolean", "missing or invalid endian"), E(o != null, "missing offset"), E(o + 3 < e.length, "Trying to write beyond buffer length"), we(n, 34028234663852886e22, -34028234663852886e22)), e.length <= o || S.write(e, n, o, y, 23, 4);
453
453
  }
454
454
  function D(e, n, o, y, g) {
455
- g || (I(n != null, "missing value"), I(typeof y == "boolean", "missing or invalid endian"), I(o != null, "missing offset"), I(o + 7 < e.length, "Trying to write beyond buffer length"), we(n, 17976931348623157e292, -17976931348623157e292)), e.length <= o || S.write(e, n, o, y, 52, 8);
455
+ g || (E(n != null, "missing value"), E(typeof y == "boolean", "missing or invalid endian"), E(o != null, "missing offset"), E(o + 7 < e.length, "Trying to write beyond buffer length"), we(n, 17976931348623157e292, -17976931348623157e292)), e.length <= o || S.write(e, n, o, y, 52, 8);
456
456
  }
457
- b.Buffer = c, b.SlowBuffer = c, b.INSPECT_MAX_BYTES = 50, c.poolSize = 8192, c._useTypedArrays = (function() {
457
+ m.Buffer = c, m.SlowBuffer = c, m.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() {
@@ -511,7 +511,7 @@ Use "options.replacer" or "options.ignoreUnknown"
511
511
  }
512
512
  return o;
513
513
  }, c.concat = function(e, n) {
514
- if (I($(e), `Usage: Buffer.concat(list, [totalLength])
514
+ if (E($(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
517
  if (typeof n != "number") for (g = n = 0; g < e.length; g++) n += e[g].length;
@@ -528,10 +528,10 @@ list should be an Array.`), e.length === 0) return new c(0);
528
528
  g = (function(Q, K, X, G) {
529
529
  X = Number(X) || 0;
530
530
  var z = Q.length - X;
531
- (!G || z < (G = Number(G))) && (G = z), I((z = K.length) % 2 == 0, "Invalid hex string"), z / 2 < G && (G = z / 2);
531
+ (!G || z < (G = Number(G))) && (G = z), E((z = K.length) % 2 == 0, "Invalid hex string"), z / 2 < G && (G = z / 2);
532
532
  for (var ee = 0; ee < G; ee++) {
533
533
  var ve = parseInt(K.substr(2 * ee, 2), 16);
534
- I(!isNaN(ve), "Invalid hex string"), Q[X + ee] = ve;
534
+ E(!isNaN(ve), "Invalid hex string"), Q[X + ee] = ve;
535
535
  }
536
536
  return c._charsWritten = 2 * ee, ee;
537
537
  })(this, e, n, o);
@@ -542,7 +542,7 @@ list should be an Array.`), e.length === 0) return new c(0);
542
542
  break;
543
543
  case "ascii":
544
544
  case "binary":
545
- g = m(this, e, n, o);
545
+ g = b(this, e, n, o);
546
546
  break;
547
547
  case "base64":
548
548
  x = this, O = n, V = o, g = c._charsWritten = ne(me(e), x, O, V);
@@ -583,7 +583,7 @@ list should be an Array.`), e.length === 0) return new c(0);
583
583
  y = _(V, n, o);
584
584
  break;
585
585
  case "base64":
586
- g = V, O = o, y = (x = n) === 0 && O === g.length ? E.fromByteArray(g) : E.fromByteArray(g.slice(x, O));
586
+ g = V, O = o, y = (x = n) === 0 && O === g.length ? I.fromByteArray(g) : I.fromByteArray(g.slice(x, O));
587
587
  break;
588
588
  case "ucs2":
589
589
  case "ucs-2":
@@ -602,7 +602,7 @@ list should be an Array.`), e.length === 0) return new c(0);
602
602
  return { type: "Buffer", data: Array.prototype.slice.call(this._arr || this, 0) };
603
603
  }, c.prototype.copy = function(e, n, o, y) {
604
604
  if (n = n || 0, (y = y || y === 0 ? y : this.length) !== (o = o || 0) && e.length !== 0 && this.length !== 0) {
605
- I(o <= y, "sourceEnd < sourceStart"), I(0 <= n && n < e.length, "targetStart out of bounds"), I(0 <= o && o < this.length, "sourceStart out of bounds"), I(0 <= y && y <= this.length, "sourceEnd out of bounds"), y > this.length && (y = this.length);
605
+ E(o <= y, "sourceEnd < sourceStart"), E(0 <= n && n < e.length, "targetStart out of bounds"), E(0 <= o && o < this.length, "sourceStart out of bounds"), E(0 <= y && y <= this.length, "sourceEnd out of bounds"), y > this.length && (y = this.length);
606
606
  var g = (y = e.length - n < y - o ? e.length - n + o : y) - o;
607
607
  if (g < 100 || !c._useTypedArrays) for (var x = 0; x < g; x++) e[x + n] = this[x + o];
608
608
  else e._set(this.subarray(o, o + g), n);
@@ -617,7 +617,7 @@ list should be an Array.`), e.length === 0) return new c(0);
617
617
  }, c.prototype.set = function(e, n) {
618
618
  return console.log(".set() is deprecated. Access using array indexes instead."), this.writeUInt8(e, n);
619
619
  }, c.prototype.readUInt8 = function(e, n) {
620
- if (n || (I(e != null, "missing offset"), I(e < this.length, "Trying to read beyond buffer length")), !(e >= this.length)) return this[e];
620
+ if (n || (E(e != null, "missing offset"), E(e < this.length, "Trying to read beyond buffer length")), !(e >= this.length)) return this[e];
621
621
  }, c.prototype.readUInt16LE = function(e, n) {
622
622
  return v(this, e, !0, n);
623
623
  }, c.prototype.readUInt16BE = function(e, n) {
@@ -627,7 +627,7 @@ list should be an Array.`), e.length === 0) return new c(0);
627
627
  }, c.prototype.readUInt32BE = function(e, n) {
628
628
  return C(this, e, !1, n);
629
629
  }, c.prototype.readInt8 = function(e, n) {
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];
630
+ if (n || (E(e != null, "missing offset"), E(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
632
  return u(this, e, !0, n);
633
633
  }, c.prototype.readInt16BE = 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 i(this, e, !1, n);
647
647
  }, c.prototype.writeUInt8 = function(e, n, o) {
648
- o || (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);
648
+ o || (E(e != null, "missing value"), E(n != null, "missing offset"), E(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, o) {
650
650
  t(this, e, n, !0, o);
651
651
  }, c.prototype.writeUInt16BE = function(e, n, o) {
@@ -655,7 +655,7 @@ list should be an Array.`), e.length === 0) return new c(0);
655
655
  }, c.prototype.writeUInt32BE = function(e, n, o) {
656
656
  f(this, e, n, !1, o);
657
657
  }, c.prototype.writeInt8 = function(e, n, o) {
658
- o || (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, o) : this.writeUInt8(255 + e + 1, n, o));
658
+ o || (E(e != null, "missing value"), E(n != null, "missing offset"), E(n < this.length, "Trying to write beyond buffer length"), le(e, 127, -128)), n >= this.length || (0 <= e ? this.writeUInt8(e, n, o) : this.writeUInt8(255 + e + 1, n, o));
659
659
  }, c.prototype.writeInt16LE = function(e, n, o) {
660
660
  l(this, e, n, !0, o);
661
661
  }, c.prototype.writeInt16BE = function(e, n, o) {
@@ -665,20 +665,20 @@ list should be an Array.`), e.length === 0) return new c(0);
665
665
  }, c.prototype.writeInt32BE = function(e, n, o) {
666
666
  L(this, e, n, !1, o);
667
667
  }, c.prototype.writeFloatLE = function(e, n, o) {
668
- U(this, e, n, !0, o);
668
+ P(this, e, n, !0, o);
669
669
  }, c.prototype.writeFloatBE = function(e, n, o) {
670
- U(this, e, n, !1, o);
670
+ P(this, e, n, !1, o);
671
671
  }, c.prototype.writeDoubleLE = function(e, n, o) {
672
672
  D(this, e, n, !0, o);
673
673
  }, c.prototype.writeDoubleBE = function(e, n, o) {
674
674
  D(this, e, n, !1, o);
675
675
  }, c.prototype.fill = function(e, n, o) {
676
- if (n = n || 0, o = o || this.length, I(typeof (e = typeof (e = e || 0) == "string" ? e.charCodeAt(0) : e) == "number" && !isNaN(e), "value is not a number"), I(n <= o, "end < start"), o !== n && this.length !== 0) {
677
- I(0 <= n && n < this.length, "start out of bounds"), I(0 <= o && o <= this.length, "end out of bounds");
676
+ if (n = n || 0, o = o || this.length, E(typeof (e = typeof (e = e || 0) == "string" ? e.charCodeAt(0) : e) == "number" && !isNaN(e), "value is not a number"), E(n <= o, "end < start"), o !== n && this.length !== 0) {
677
+ E(0 <= n && n < this.length, "start out of bounds"), E(0 <= o && o <= this.length, "end out of bounds");
678
678
  for (var y = n; y < o; y++) this[y] = e;
679
679
  }
680
680
  }, c.prototype.inspect = function() {
681
- for (var e = [], n = this.length, o = 0; o < n; o++) if (e[o] = N(this[o]), o === b.INSPECT_MAX_BYTES) {
681
+ for (var e = [], n = this.length, o = 0; o < n; o++) if (e[o] = N(this[o]), o === m.INSPECT_MAX_BYTES) {
682
682
  e[o + 1] = "...";
683
683
  break;
684
684
  }
@@ -713,7 +713,7 @@ list should be an Array.`), e.length === 0) return new c(0);
713
713
  return n;
714
714
  }
715
715
  function me(e) {
716
- return E.toByteArray(e);
716
+ return I.toByteArray(e);
717
717
  }
718
718
  function ne(e, n, o, y) {
719
719
  for (var g = 0; g < y && !(g + o >= n.length || g >= e.length); g++) n[g + o] = e[g];
@@ -727,47 +727,47 @@ list should be an Array.`), e.length === 0) return new c(0);
727
727
  }
728
728
  }
729
729
  function fe(e, n) {
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");
730
+ E(typeof e == "number", "cannot write a non-number as a number"), E(0 <= e, "specified a negative value for writing an unsigned value"), E(e <= n, "value is larger than maximum value for type"), E(Math.floor(e) === e, "value has a fractional component");
731
731
  }
732
732
  function le(e, n, o) {
733
- I(typeof e == "number", "cannot write a non-number as a number"), I(e <= n, "value larger than maximum allowed value"), I(o <= e, "value smaller than minimum allowed value"), I(Math.floor(e) === e, "value has a fractional component");
733
+ E(typeof e == "number", "cannot write a non-number as a number"), E(e <= n, "value larger than maximum allowed value"), E(o <= e, "value smaller than minimum allowed value"), E(Math.floor(e) === e, "value has a fractional component");
734
734
  }
735
735
  function we(e, n, o) {
736
- I(typeof e == "number", "cannot write a non-number as a number"), I(e <= n, "value larger than maximum allowed value"), I(o <= e, "value smaller than minimum allowed value");
736
+ E(typeof e == "number", "cannot write a non-number as a number"), E(e <= n, "value larger than maximum allowed value"), E(o <= e, "value smaller than minimum allowed value");
737
737
  }
738
- function I(e, n) {
738
+ function E(e, n) {
739
739
  if (!e) throw new Error(n || "Failed assertion");
740
740
  }
741
741
  c._augment = function(e) {
742
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
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, b) {
746
- (function(w, 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) {
745
+ }, { "base64-js": 2, buffer: 3, ieee754: 10, lYpoI2: 11 }], 4: [function(a, p, m) {
746
+ (function(w, j, I, k, q, M, T, R, F) {
747
+ var I = a("buffer").Buffer, S = 4, c = new I(S);
748
+ c.fill(0), p.exports = { hash: function(b, A, _, v) {
749
749
  for (var C = A((function(t, f) {
750
- t.length % S != 0 && (l = t.length + (S - t.length % S), t = E.concat([t, c], l));
751
- for (var l, L = [], U = f ? t.readInt32BE : t.readInt32LE, D = 0; D < t.length; D += S) L.push(U.call(t, D));
750
+ t.length % S != 0 && (l = t.length + (S - t.length % S), t = I.concat([t, c], l));
751
+ for (var l, L = [], P = f ? t.readInt32BE : t.readInt32LE, D = 0; D < t.length; D += S) L.push(P.call(t, D));
752
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);
753
+ })(b = I.isBuffer(b) ? b : new I(b), v), 8 * b.length), A = v, u = new I(_), d = A ? u.writeInt32BE : u.writeInt32LE, r = 0; r < C.length; r++) d.call(u, C[r], 4 * r, !0);
754
754
  return u;
755
755
  } };
756
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, b) {
758
- (function(w, 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(_);
757
+ }, { buffer: 3, lYpoI2: 11 }], 5: [function(a, p, m) {
758
+ (function(w, j, I, k, q, M, T, R, F) {
759
+ var I = a("buffer").Buffer, S = a("./sha"), c = a("./sha256"), b = a("./rng"), A = { sha1: S, sha256: c, md5: a("./md5") }, _ = 64, v = new I(_);
760
760
  function C(t, f) {
761
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]));
762
+ return l || u("algorithm:", t, "is not yet supported"), { update: function(P) {
763
+ return I.isBuffer(P) || (P = new I(P)), L.push(P), P.length, this;
764
+ }, digest: function(P) {
765
+ var D = I.concat(L), D = f ? (function(B, Y, J) {
766
+ I.isBuffer(Y) || (Y = new I(Y)), I.isBuffer(J) || (J = new I(J)), Y.length > _ ? Y = B(Y) : Y.length < _ && (Y = I.concat([Y, v], _));
767
+ for (var $ = new I(_), N = new I(_), Z = 0; Z < _; Z++) $[Z] = 54 ^ Y[Z], N[Z] = 92 ^ Y[Z];
768
+ return J = B(I.concat([$, J])), B(I.concat([N, J]));
769
769
  })(l, f, D) : l(D);
770
- return L = null, U ? D.toString(U) : D;
770
+ return L = null, P ? D.toString(P) : D;
771
771
  } };
772
772
  }
773
773
  function u() {
@@ -775,38 +775,38 @@ list should be an Array.`), e.length === 0) return new c(0);
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), b.createHash = function(t) {
778
+ v.fill(0), m.createHash = function(t) {
779
779
  return C(t);
780
- }, b.createHmac = C, b.randomBytes = function(t, f) {
781
- if (!f || !f.call) return new E(m(t));
780
+ }, m.createHmac = C, m.randomBytes = function(t, f) {
781
+ if (!f || !f.call) return new I(b(t));
782
782
  try {
783
- f.call(this, void 0, new E(m(t)));
783
+ f.call(this, void 0, new I(b(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"], i = function(t) {
789
- b[t] = function() {
789
+ m[t] = function() {
790
790
  u("sorry,", t, "is not implemented yet");
791
791
  };
792
792
  };
793
793
  for (d in r) i(r[d]);
794
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, b) {
796
- (function(w, j, k, P, q, T, M, R, F) {
797
- var E = a("./helpers");
795
+ }, { "./md5": 6, "./rng": 7, "./sha": 8, "./sha256": 9, buffer: 3, lYpoI2: 11 }], 6: [function(a, p, m) {
796
+ (function(w, j, U, k, q, M, T, R, F) {
797
+ var I = a("./helpers");
798
798
  function S(u, d) {
799
799
  u[d >> 5] |= 128 << d % 32, u[14 + (d + 64 >>> 9 << 4)] = d;
800
800
  for (var r = 1732584193, i = -271733879, t = -1732584194, f = 271733878, l = 0; l < u.length; l += 16) {
801
- var L = r, U = i, D = t, B = f, r = m(r, i, t, f, u[l + 0], 7, -680876936), f = m(f, r, i, t, u[l + 1], 12, -389564586), t = m(t, f, r, i, u[l + 2], 17, 606105819), i = m(i, t, f, r, u[l + 3], 22, -1044525330);
802
- r = m(r, i, t, f, u[l + 4], 7, -176418897), f = m(f, r, i, t, u[l + 5], 12, 1200080426), t = m(t, f, r, i, u[l + 6], 17, -1473231341), i = m(i, t, f, r, u[l + 7], 22, -45705983), r = m(r, i, t, f, u[l + 8], 7, 1770035416), f = m(f, r, i, t, u[l + 9], 12, -1958414417), t = m(t, f, r, i, u[l + 10], 17, -42063), i = m(i, t, f, r, u[l + 11], 22, -1990404162), r = m(r, i, t, f, u[l + 12], 7, 1804603682), f = m(f, r, i, t, u[l + 13], 12, -40341101), t = m(t, f, r, i, u[l + 14], 17, -1502002290), r = A(r, i = m(i, t, f, r, u[l + 15], 22, 1236535329), t, f, u[l + 1], 5, -165796510), f = A(f, r, i, t, u[l + 6], 9, -1069501632), t = A(t, f, r, i, u[l + 11], 14, 643717713), i = A(i, t, f, r, u[l + 0], 20, -373897302), r = A(r, i, t, f, u[l + 5], 5, -701558691), f = A(f, r, i, t, u[l + 10], 9, 38016083), t = A(t, f, r, i, u[l + 15], 14, -660478335), i = A(i, t, f, r, u[l + 4], 20, -405537848), r = A(r, i, t, f, u[l + 9], 5, 568446438), f = A(f, r, i, t, u[l + 14], 9, -1019803690), t = A(t, f, r, i, u[l + 3], 14, -187363961), i = A(i, t, f, r, u[l + 8], 20, 1163531501), r = A(r, i, t, f, u[l + 13], 5, -1444681467), f = A(f, r, i, t, u[l + 2], 9, -51403784), t = A(t, f, r, i, u[l + 7], 14, 1735328473), r = _(r, i = A(i, t, f, r, u[l + 12], 20, -1926607734), t, f, u[l + 5], 4, -378558), f = _(f, r, i, t, u[l + 8], 11, -2022574463), t = _(t, f, r, i, u[l + 11], 16, 1839030562), i = _(i, t, f, r, u[l + 14], 23, -35309556), r = _(r, i, t, f, u[l + 1], 4, -1530992060), f = _(f, r, i, t, u[l + 4], 11, 1272893353), t = _(t, f, r, i, u[l + 7], 16, -155497632), i = _(i, t, f, r, u[l + 10], 23, -1094730640), r = _(r, i, t, f, u[l + 13], 4, 681279174), f = _(f, r, i, t, u[l + 0], 11, -358537222), t = _(t, f, r, i, u[l + 3], 16, -722521979), i = _(i, t, f, r, u[l + 6], 23, 76029189), r = _(r, i, t, f, u[l + 9], 4, -640364487), f = _(f, r, i, t, u[l + 12], 11, -421815835), t = _(t, f, r, i, u[l + 15], 16, 530742520), r = v(r, i = _(i, t, f, r, u[l + 2], 23, -995338651), t, f, u[l + 0], 6, -198630844), f = v(f, r, i, t, u[l + 7], 10, 1126891415), t = v(t, f, r, i, u[l + 14], 15, -1416354905), i = v(i, t, f, r, u[l + 5], 21, -57434055), r = v(r, i, t, f, u[l + 12], 6, 1700485571), f = v(f, r, i, t, u[l + 3], 10, -1894986606), t = v(t, f, r, i, u[l + 10], 15, -1051523), i = v(i, t, f, r, u[l + 1], 21, -2054922799), r = v(r, i, t, f, u[l + 8], 6, 1873313359), f = v(f, r, i, t, u[l + 15], 10, -30611744), t = v(t, f, r, i, u[l + 6], 15, -1560198380), i = v(i, t, f, r, u[l + 13], 21, 1309151649), r = v(r, i, t, f, u[l + 4], 6, -145523070), f = v(f, r, i, t, u[l + 11], 10, -1120210379), t = v(t, f, r, i, u[l + 2], 15, 718787259), i = v(i, t, f, r, u[l + 9], 21, -343485551), r = C(r, L), i = C(i, U), t = C(t, D), f = C(f, B);
801
+ var L = r, P = i, D = t, B = f, r = b(r, i, t, f, u[l + 0], 7, -680876936), f = b(f, r, i, t, u[l + 1], 12, -389564586), t = b(t, f, r, i, u[l + 2], 17, 606105819), i = b(i, t, f, r, u[l + 3], 22, -1044525330);
802
+ r = b(r, i, t, f, u[l + 4], 7, -176418897), f = b(f, r, i, t, u[l + 5], 12, 1200080426), t = b(t, f, r, i, u[l + 6], 17, -1473231341), i = b(i, t, f, r, u[l + 7], 22, -45705983), r = b(r, i, t, f, u[l + 8], 7, 1770035416), f = b(f, r, i, t, u[l + 9], 12, -1958414417), t = b(t, f, r, i, u[l + 10], 17, -42063), i = b(i, t, f, r, u[l + 11], 22, -1990404162), r = b(r, i, t, f, u[l + 12], 7, 1804603682), f = b(f, r, i, t, u[l + 13], 12, -40341101), t = b(t, f, r, i, u[l + 14], 17, -1502002290), r = A(r, i = b(i, t, f, r, u[l + 15], 22, 1236535329), t, f, u[l + 1], 5, -165796510), f = A(f, r, i, t, u[l + 6], 9, -1069501632), t = A(t, f, r, i, u[l + 11], 14, 643717713), i = A(i, t, f, r, u[l + 0], 20, -373897302), r = A(r, i, t, f, u[l + 5], 5, -701558691), f = A(f, r, i, t, u[l + 10], 9, 38016083), t = A(t, f, r, i, u[l + 15], 14, -660478335), i = A(i, t, f, r, u[l + 4], 20, -405537848), r = A(r, i, t, f, u[l + 9], 5, 568446438), f = A(f, r, i, t, u[l + 14], 9, -1019803690), t = A(t, f, r, i, u[l + 3], 14, -187363961), i = A(i, t, f, r, u[l + 8], 20, 1163531501), r = A(r, i, t, f, u[l + 13], 5, -1444681467), f = A(f, r, i, t, u[l + 2], 9, -51403784), t = A(t, f, r, i, u[l + 7], 14, 1735328473), r = _(r, i = A(i, t, f, r, u[l + 12], 20, -1926607734), t, f, u[l + 5], 4, -378558), f = _(f, r, i, t, u[l + 8], 11, -2022574463), t = _(t, f, r, i, u[l + 11], 16, 1839030562), i = _(i, t, f, r, u[l + 14], 23, -35309556), r = _(r, i, t, f, u[l + 1], 4, -1530992060), f = _(f, r, i, t, u[l + 4], 11, 1272893353), t = _(t, f, r, i, u[l + 7], 16, -155497632), i = _(i, t, f, r, u[l + 10], 23, -1094730640), r = _(r, i, t, f, u[l + 13], 4, 681279174), f = _(f, r, i, t, u[l + 0], 11, -358537222), t = _(t, f, r, i, u[l + 3], 16, -722521979), i = _(i, t, f, r, u[l + 6], 23, 76029189), r = _(r, i, t, f, u[l + 9], 4, -640364487), f = _(f, r, i, t, u[l + 12], 11, -421815835), t = _(t, f, r, i, u[l + 15], 16, 530742520), r = v(r, i = _(i, t, f, r, u[l + 2], 23, -995338651), t, f, u[l + 0], 6, -198630844), f = v(f, r, i, t, u[l + 7], 10, 1126891415), t = v(t, f, r, i, u[l + 14], 15, -1416354905), i = v(i, t, f, r, u[l + 5], 21, -57434055), r = v(r, i, t, f, u[l + 12], 6, 1700485571), f = v(f, r, i, t, u[l + 3], 10, -1894986606), t = v(t, f, r, i, u[l + 10], 15, -1051523), i = v(i, t, f, r, u[l + 1], 21, -2054922799), r = v(r, i, t, f, u[l + 8], 6, 1873313359), f = v(f, r, i, t, u[l + 15], 10, -30611744), t = v(t, f, r, i, u[l + 6], 15, -1560198380), i = v(i, t, f, r, u[l + 13], 21, 1309151649), r = v(r, i, t, f, u[l + 4], 6, -145523070), f = v(f, r, i, t, u[l + 11], 10, -1120210379), t = v(t, f, r, i, u[l + 2], 15, 718787259), i = v(i, t, f, r, u[l + 9], 21, -343485551), r = C(r, L), i = C(i, P), t = C(t, D), f = C(f, B);
803
803
  }
804
804
  return Array(r, i, t, f);
805
805
  }
806
806
  function c(u, d, r, i, t, f) {
807
807
  return C((d = C(C(d, u), C(i, f))) << t | d >>> 32 - t, r);
808
808
  }
809
- function m(u, d, r, i, t, f, l) {
809
+ function b(u, d, r, i, t, f, l) {
810
810
  return c(d & r | ~d & i, u, d, t, f, l);
811
811
  }
812
812
  function A(u, d, r, i, t, f, l) {
@@ -823,27 +823,27 @@ list should be an Array.`), e.length === 0) return new c(0);
823
823
  return (u >> 16) + (d >> 16) + (r >> 16) << 16 | 65535 & r;
824
824
  }
825
825
  p.exports = function(u) {
826
- return E.hash(u, S, 16);
826
+ return I.hash(u, S, 16);
827
827
  };
828
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, b) {
830
- (function(w, j, k, P, q, T, M, R, F) {
831
- p.exports = function(E) {
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;
829
+ }, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 7: [function(a, p, m) {
830
+ (function(w, j, U, k, q, M, T, R, F) {
831
+ p.exports = function(I) {
832
+ for (var S, c = new Array(I), b = 0; b < I; b++) (3 & b) == 0 && (S = 4294967296 * Math.random()), c[b] = S >>> ((3 & b) << 3) & 255;
833
833
  return c;
834
834
  };
835
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, b) {
837
- (function(w, j, k, P, q, T, M, R, F) {
838
- var E = a("./helpers");
836
+ }, { buffer: 3, lYpoI2: 11 }], 8: [function(a, p, m) {
837
+ (function(w, j, U, k, q, M, T, R, F) {
838
+ var I = a("./helpers");
839
839
  function S(A, _) {
840
840
  A[_ >> 5] |= 128 << 24 - _ % 32, A[15 + (_ + 64 >> 9 << 4)] = _;
841
841
  for (var v, C, u, d = Array(80), r = 1732584193, i = -271733879, t = -1732584194, f = 271733878, l = -1009589776, L = 0; L < A.length; L += 16) {
842
- for (var U = r, D = i, 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 = i, 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(i, 30), i = r, r = N;
842
+ for (var P = r, D = i, B = t, Y = f, J = l, $ = 0; $ < 80; $++) {
843
+ d[$] = $ < 16 ? A[L + $] : b(d[$ - 3] ^ d[$ - 8] ^ d[$ - 14] ^ d[$ - 16], 1);
844
+ var N = c(c(b(r, 5), (N = i, 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 = b(i, 30), i = r, r = N;
845
845
  }
846
- r = c(r, U), i = c(i, D), t = c(t, B), f = c(f, Y), l = c(l, J);
846
+ r = c(r, P), i = c(i, D), t = c(t, B), f = c(f, Y), l = c(l, J);
847
847
  }
848
848
  return Array(r, i, t, f, l);
849
849
  }
@@ -851,16 +851,16 @@ 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 m(A, _) {
854
+ function b(A, _) {
855
855
  return A << _ | A >>> 32 - _;
856
856
  }
857
857
  p.exports = function(A) {
858
- return E.hash(A, S, 20, !0);
858
+ return I.hash(A, S, 20, !0);
859
859
  };
860
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, b) {
862
- (function(w, j, k, P, q, T, M, R, F) {
863
- function E(_, v) {
861
+ }, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 9: [function(a, p, m) {
862
+ (function(w, j, U, k, q, M, T, R, F) {
863
+ function I(_, v) {
864
864
  var C = (65535 & _) + (65535 & v);
865
865
  return (_ >> 16) + (v >> 16) + (C >> 16) << 16 | 65535 & C;
866
866
  }
@@ -868,12 +868,12 @@ list should be an Array.`), e.length === 0) return new c(0);
868
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 i, t, f = 0; f < _.length; f += 16) {
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]), i = E(m(i = l, 2) ^ m(i, 13) ^ m(i, 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, i);
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]);
871
+ for (var l = d[0], L = d[1], P = 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] : I(I(I((t = r[N - 2], b(t, 17) ^ b(t, 19) ^ A(t, 10)), r[N - 7]), (t = r[N - 15], b(t, 7) ^ b(t, 18) ^ A(t, 3))), r[N - 16]), C = I(I(I(I($, b(t = B, 6) ^ b(t, 11) ^ b(t, 25)), B & Y ^ ~B & J), u[N]), r[N]), i = I(b(i = l, 2) ^ b(i, 13) ^ b(i, 22), l & L ^ l & P ^ L & P), $ = J, J = Y, Y = B, B = I(D, C), D = P, P = L, L = l, l = I(C, i);
872
+ d[0] = I(l, d[0]), d[1] = I(L, d[1]), d[2] = I(P, d[2]), d[3] = I(D, d[3]), d[4] = I(B, d[4]), d[5] = I(Y, d[5]), d[6] = I(J, d[6]), d[7] = I($, d[7]);
873
873
  }
874
874
  return d;
875
875
  }
876
- var c = a("./helpers"), m = function(_, v) {
876
+ var c = a("./helpers"), b = function(_, v) {
877
877
  return _ >>> v | _ << 32 - v;
878
878
  }, A = function(_, v) {
879
879
  return _ >>> v;
@@ -882,40 +882,40 @@ list should be an Array.`), e.length === 0) return new c(0);
882
882
  return c.hash(_, S, 32, !0);
883
883
  };
884
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, b) {
886
- (function(w, j, k, P, q, T, M, R, F) {
887
- b.read = function(E, S, c, m, f) {
888
- var _, v, C = 8 * f - m - 1, u = (1 << C) - 1, d = u >> 1, r = -7, i = c ? f - 1 : 0, t = c ? -1 : 1, f = E[S + i];
889
- for (i += t, _ = f & (1 << -r) - 1, f >>= -r, r += C; 0 < r; _ = 256 * _ + E[S + i], i += t, r -= 8) ;
890
- for (v = _ & (1 << -r) - 1, _ >>= -r, r += m; 0 < r; v = 256 * v + E[S + i], i += t, r -= 8) ;
885
+ }, { "./helpers": 4, buffer: 3, lYpoI2: 11 }], 10: [function(a, p, m) {
886
+ (function(w, j, U, k, q, M, T, R, F) {
887
+ m.read = function(I, S, c, b, f) {
888
+ var _, v, C = 8 * f - b - 1, u = (1 << C) - 1, d = u >> 1, r = -7, i = c ? f - 1 : 0, t = c ? -1 : 1, f = I[S + i];
889
+ for (i += t, _ = f & (1 << -r) - 1, f >>= -r, r += C; 0 < r; _ = 256 * _ + I[S + i], i += t, r -= 8) ;
890
+ for (v = _ & (1 << -r) - 1, _ >>= -r, r += b; 0 < r; v = 256 * v + I[S + i], i += t, r -= 8) ;
891
891
  if (_ === 0) _ = 1 - d;
892
892
  else {
893
893
  if (_ === u) return v ? NaN : 1 / 0 * (f ? -1 : 1);
894
- v += Math.pow(2, m), _ -= d;
894
+ v += Math.pow(2, b), _ -= d;
895
895
  }
896
- return (f ? -1 : 1) * v * Math.pow(2, _ - m);
897
- }, b.write = function(E, S, c, m, A, l) {
898
- var v, C, u = 8 * l - A - 1, d = (1 << u) - 1, r = d >> 1, i = 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 ? i / m : i * 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
- E[c + t - f] |= 128 * l;
896
+ return (f ? -1 : 1) * v * Math.pow(2, _ - b);
897
+ }, m.write = function(I, S, c, b, A, l) {
898
+ var v, C, u = 8 * l - A - 1, d = (1 << u) - 1, r = d >> 1, i = 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 ? i / b : i * 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; I[c + t] = 255 & C, t += f, C /= 256, A -= 8) ;
900
+ for (v = v << A | C, u += A; 0 < u; I[c + t] = 255 & v, t += f, v /= 256, u -= 8) ;
901
+ I[c + t - f] |= 128 * l;
902
902
  };
903
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, b) {
905
- (function(w, j, k, P, q, T, M, R, F) {
906
- var E, S, c;
907
- function m() {
904
+ }, { buffer: 3, lYpoI2: 11 }], 11: [function(a, p, m) {
905
+ (function(w, j, U, k, q, M, T, R, F) {
906
+ var I, S, c;
907
+ function b() {
908
908
  }
909
909
  (w = 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
- } : c ? (E = [], window.addEventListener("message", function(A) {
911
+ } : c ? (I = [], window.addEventListener("message", function(A) {
912
912
  var _ = A.source;
913
- _ !== window && _ !== null || A.data !== "process-tick" || (A.stopPropagation(), 0 < E.length && E.shift()());
913
+ _ !== window && _ !== null || A.data !== "process-tick" || (A.stopPropagation(), 0 < I.length && I.shift()());
914
914
  }, !0), function(A) {
915
- E.push(A), window.postMessage("process-tick", "*");
915
+ I.push(A), window.postMessage("process-tick", "*");
916
916
  }) : function(A) {
917
917
  setTimeout(A, 0);
918
- }), w.title = "browser", w.browser = !0, w.env = {}, w.argv = [], w.on = m, w.addListener = m, w.once = m, w.off = m, w.removeListener = m, w.removeAllListeners = m, w.emit = m, w.binding = function(A) {
918
+ }), w.title = "browser", w.browser = !0, w.env = {}, w.argv = [], w.on = b, w.addListener = b, w.once = b, w.off = b, w.removeListener = b, w.removeAllListeners = b, w.emit = b, w.binding = function(A) {
919
919
  throw new Error("process.binding is not supported");
920
920
  }, w.cwd = function() {
921
921
  return "/";
@@ -927,8 +927,8 @@ list should be an Array.`), e.length === 0) return new c(0);
927
927
  });
928
928
  })(he)), he.exports;
929
929
  }
930
- var Me = Re();
931
- const Te = /* @__PURE__ */ je(Me);
930
+ var Me = Te();
931
+ const Ne = /* @__PURE__ */ je(Me);
932
932
  class ge {
933
933
  _inferSchema;
934
934
  _inferInstance;
@@ -959,30 +959,34 @@ class ge {
959
959
  a?.forEach((w) => {
960
960
  delete p[w];
961
961
  });
962
- const b = Object.keys(p);
963
- return s != null && Object.keys(s).length === b.length && b.reduce((w, j) => w && Object.is(p[j], s[j]), !0) ? s : p;
962
+ const m = Object.keys(p);
963
+ return s != null && Object.keys(s).length === m.length && m.reduce((w, j) => w && Object.is(p[j], s[j]), !0) ? s : p;
964
964
  };
965
965
  }
966
- const Ne = (h) => h instanceof ge ? h : new ge(h);
966
+ const Fe = (h) => h instanceof ge ? h : new ge(h);
967
967
  class Se {
968
968
  _inferItem;
969
969
  _inferQuery;
970
970
  _inferOptions;
971
971
  _inferMetaType;
972
972
  _inferResponse;
973
- notifier = new Pe();
973
+ _inferContextPluginProps;
974
+ _inferContextPluginTypes;
975
+ _inferUIPluginProps;
976
+ _inferUIPluginTypes;
977
+ notifier = new ke();
974
978
  contextPlugins = [];
975
979
  uiPlugins = [];
976
980
  constructor() {
977
981
  const s = [], a = [];
978
982
  this.extend({
979
983
  context: (p) => {
980
- const b = s;
981
- p != null && !b.includes(p) && b.push(p);
984
+ const m = s;
985
+ p != null && !m.includes(p) && m.push(p);
982
986
  },
983
987
  ui: (p) => {
984
- const b = a;
985
- p != null && !b.includes(p) && b.push(p);
988
+ const m = a;
989
+ p != null && !m.includes(p) && m.push(p);
986
990
  }
987
991
  }), Object.defineProperties(this, {
988
992
  contextPlugins: {
@@ -1012,20 +1016,20 @@ class Se {
1012
1016
  notify(s) {
1013
1017
  this.notifier.trigger(s);
1014
1018
  }
1015
- get(s, a, p, b, w) {
1019
+ get(s, a, p, m, w) {
1016
1020
  return new Promise(
1017
- (j, k) => this.continuousGet(
1021
+ (j, U) => this.continuousGet(
1018
1022
  s,
1019
1023
  a,
1020
1024
  p,
1021
- b,
1022
- (P, q, T) => {
1023
- if (P != null) {
1024
- k(P);
1025
+ m,
1026
+ (k, q, M) => {
1027
+ if (k != null) {
1028
+ U(k);
1025
1029
  return;
1026
1030
  }
1027
1031
  q && j(
1028
- T ?? this.createEmptyResponse({
1032
+ M ?? this.createEmptyResponse({
1029
1033
  name: s,
1030
1034
  query: a,
1031
1035
  disabled: !1,
@@ -1037,12 +1041,12 @@ class Se {
1037
1041
  )
1038
1042
  );
1039
1043
  }
1040
- continuousGet(s, a, p, b, w, j) {
1041
- const k = j ?? new Be();
1042
- new Promise((P) => {
1044
+ continuousGet(s, a, p, m, w, j) {
1045
+ const U = j ?? new Be();
1046
+ new Promise((k) => {
1043
1047
  if (s == null) throw new Error("No resource name specified");
1044
- const q = (M, R, F) => {
1045
- k.locked || ((M != null || R) && k.lock(), M != null ? w(M, !0, void 0) : w(
1048
+ const q = (T, R, F) => {
1049
+ U.locked || ((T != null || R) && U.lock(), T != null ? w(T, !0, void 0) : w(
1046
1050
  void 0,
1047
1051
  R,
1048
1052
  F ?? this.createEmptyResponse({
@@ -1052,31 +1056,31 @@ class Se {
1052
1056
  options: p
1053
1057
  })
1054
1058
  ));
1055
- }, T = k.proxy();
1056
- P(
1059
+ }, M = U.proxy();
1060
+ k(
1057
1061
  Promise.resolve(
1058
- this.handleGet(s, a, p, Ne(b), T)
1059
- ).then((M) => {
1060
- typeof M == "function" ? M(q) : q(void 0, !0, M);
1062
+ this.handleGet(s, a, p, Fe(m), M)
1063
+ ).then((T) => {
1064
+ typeof T == "function" ? T(q) : q(void 0, !0, T);
1061
1065
  })
1062
1066
  );
1063
- }).catch((P) => {
1064
- k.locked || w(P, !0, void 0);
1067
+ }).catch((k) => {
1068
+ U.locked || w(k, !0, void 0);
1065
1069
  });
1066
1070
  }
1067
1071
  compareRequests(s, a) {
1068
- return Oe(s, a);
1072
+ return Re(s, a);
1069
1073
  }
1070
1074
  createEmptyResponse(s) {
1071
1075
  }
1072
- shouldPersist(s, a, p, b) {
1076
+ shouldPersist(s, a, p, m) {
1073
1077
  return p === "very" || p && a.name === s.name;
1074
1078
  }
1075
1079
  compareItemVersions(s, a) {
1076
1080
  return !0;
1077
1081
  }
1078
1082
  getItemIdentifier(s) {
1079
- return Te(s);
1083
+ return Ne(s);
1080
1084
  }
1081
1085
  transition(s, a) {
1082
1086
  return s.data;
@@ -1084,34 +1088,34 @@ class Se {
1084
1088
  recycleItems(s, a) {
1085
1089
  if (s.data == null || a.data == null)
1086
1090
  return s.data;
1087
- const p = Array.isArray(s.data) ? s.data : [s.data], b = Array.isArray(a.data) ? a.data : [a.data], w = {};
1088
- p.length > 0 && b.forEach((k) => {
1089
- const P = this.getItemIdentifier(k);
1090
- P != null && (w[P] = k);
1091
+ const p = Array.isArray(s.data) ? s.data : [s.data], m = Array.isArray(a.data) ? a.data : [a.data], w = {};
1092
+ p.length > 0 && m.forEach((U) => {
1093
+ const k = this.getItemIdentifier(U);
1094
+ k != null && (w[k] = U);
1091
1095
  });
1092
1096
  let j;
1093
- return b.length > 0 ? j = p.map((k) => {
1094
- const P = this.getItemIdentifier(k);
1095
- if (P != null && Object.prototype.hasOwnProperty.call(w, P)) {
1096
- const q = w[P];
1097
- if (this.compareItemVersions(k, q)) return q;
1097
+ return m.length > 0 ? j = p.map((U) => {
1098
+ const k = this.getItemIdentifier(U);
1099
+ if (k != null && Object.prototype.hasOwnProperty.call(w, k)) {
1100
+ const q = w[k];
1101
+ if (this.compareItemVersions(U, q)) return q;
1098
1102
  }
1099
- return k;
1100
- }) : j = p, Array.isArray(s.data) ? b.length === j.length && j.reduce(
1101
- (k, P, q) => k && Object.is(b[q], P),
1103
+ return U;
1104
+ }) : j = p, Array.isArray(s.data) ? m.length === j.length && j.reduce(
1105
+ (U, k, q) => U && Object.is(m[q], k),
1102
1106
  !0
1103
- ) ? b : j : j[0];
1107
+ ) ? m : j : j[0];
1104
1108
  }
1105
1109
  }
1106
- const nt = (h) => h instanceof Se;
1107
- function it({
1110
+ const it = (h) => h instanceof Se;
1111
+ function ot({
1108
1112
  dataProvider: h,
1109
1113
  children: s
1110
1114
  }) {
1111
1115
  const a = oe(() => ({ dataProvider: h }), [h]);
1112
1116
  return /* @__PURE__ */ se(ue.Provider, { value: a, children: s });
1113
1117
  }
1114
- function ot(h) {
1118
+ function st(h) {
1115
1119
  if (typeof h != "function")
1116
1120
  throw new Error("No valid plugin definition specified");
1117
1121
  return (s) => {
@@ -1119,6 +1123,12 @@ function ot(h) {
1119
1123
  "A plugin should be given a derivative of the DataProvider class as its first parameter"
1120
1124
  );
1121
1125
  const p = h(class extends s {
1126
+ contextPlugins = [
1127
+ ...s.prototype.contextPlugins
1128
+ ];
1129
+ uiPlugins = [
1130
+ ...s.prototype.uiPlugins
1131
+ ];
1122
1132
  });
1123
1133
  if (p == null)
1124
1134
  throw new Error(
@@ -1127,63 +1137,73 @@ function ot(h) {
1127
1137
  return p;
1128
1138
  };
1129
1139
  }
1130
- function Fe({
1140
+ function Ye({
1131
1141
  resource: h,
1132
- children: s
1142
+ children: s,
1143
+ ...a
1133
1144
  }) {
1134
- return /* @__PURE__ */ se(ae.Provider, { value: h, children: s });
1145
+ return h.dataProvider.uiPlugins.reduceRight(
1146
+ (p, m) => (w) => /* @__PURE__ */ se(m, { ...a, context: w, children: p }),
1147
+ (p) => /* @__PURE__ */ se(
1148
+ Ue,
1149
+ {
1150
+ value: p,
1151
+ children: s
1152
+ }
1153
+ )
1154
+ )(h);
1135
1155
  }
1136
1156
  const W = [];
1137
1157
  for (let h = 0; h < 256; ++h)
1138
1158
  W.push((h + 256).toString(16).slice(1));
1139
- function Ye(h, s = 0) {
1159
+ function $e(h, s = 0) {
1140
1160
  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();
1141
1161
  }
1142
1162
  let pe;
1143
- const $e = new Uint8Array(16);
1144
- function Ve() {
1163
+ const Ve = new Uint8Array(16);
1164
+ function ze() {
1145
1165
  if (!pe) {
1146
1166
  if (typeof crypto > "u" || !crypto.getRandomValues)
1147
1167
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1148
1168
  pe = crypto.getRandomValues.bind(crypto);
1149
1169
  }
1150
- return pe($e);
1170
+ return pe(Ve);
1151
1171
  }
1152
1172
  const te = {};
1153
- function ze(h, s, a) {
1173
+ function He(h, s, a) {
1154
1174
  let p;
1155
1175
  {
1156
- const b = Date.now(), w = Ve();
1157
- He(te, b, w), p = Ge(w, te.msecs, te.nsecs, te.clockseq, te.node, s, a);
1176
+ const m = Date.now(), w = ze();
1177
+ Ge(te, m, w), p = We(w, te.msecs, te.nsecs, te.clockseq, te.node, s, a);
1158
1178
  }
1159
- return s ?? Ye(p);
1179
+ return s ?? $e(p);
1160
1180
  }
1161
- function He(h, s, a) {
1181
+ function Ge(h, s, a) {
1162
1182
  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;
1163
1183
  }
1164
- function Ge(h, s, a, p, b, w, j = 0) {
1184
+ function We(h, s, a, p, m, w, j = 0) {
1165
1185
  if (h.length < 16)
1166
1186
  throw new Error("Random bytes length must be >= 16");
1167
1187
  if (!w)
1168
1188
  w = new Uint8Array(16), j = 0;
1169
1189
  else if (j < 0 || j + 16 > w.length)
1170
1190
  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, b ??= h.slice(10, 16), s += 122192928e5;
1172
- const k = ((s & 268435455) * 1e4 + a) % 4294967296;
1173
- w[j++] = k >>> 24 & 255, w[j++] = k >>> 16 & 255, w[j++] = k >>> 8 & 255, w[j++] = k & 255;
1174
- const P = s / 4294967296 * 1e4 & 268435455;
1175
- w[j++] = P >>> 8 & 255, w[j++] = P & 255, w[j++] = P >>> 24 & 15 | 16, w[j++] = P >>> 16 & 255, w[j++] = p >>> 8 | 128, w[j++] = p & 255;
1191
+ s ??= Date.now(), a ??= 0, p ??= (h[8] << 8 | h[9]) & 16383, m ??= h.slice(10, 16), s += 122192928e5;
1192
+ const U = ((s & 268435455) * 1e4 + a) % 4294967296;
1193
+ w[j++] = U >>> 24 & 255, w[j++] = U >>> 16 & 255, w[j++] = U >>> 8 & 255, w[j++] = U & 255;
1194
+ const k = s / 4294967296 * 1e4 & 268435455;
1195
+ w[j++] = k >>> 8 & 255, w[j++] = k & 255, w[j++] = k >>> 24 & 15 | 16, w[j++] = k >>> 16 & 255, w[j++] = p >>> 8 | 128, w[j++] = p & 255;
1176
1196
  for (let q = 0; q < 6; ++q)
1177
- w[j++] = b[q];
1197
+ w[j++] = m[q];
1178
1198
  return w;
1179
1199
  }
1180
1200
  function re(h) {
1181
1201
  let s, a, p;
1182
1202
  if (typeof h != "string")
1183
- s = "~", a = 0, p = ze();
1203
+ s = "~", a = 0, p = He();
1184
1204
  else {
1185
- let b;
1186
- [s, b, p] = h.split("$"), a = ((parseInt(b, 36) || 0) + 1) % Number.MAX_SAFE_INTEGER, a === 0 && (s += "~");
1205
+ let m;
1206
+ [s, m, p] = h.split("$"), a = ((parseInt(m, 36) || 0) + 1) % Number.MAX_SAFE_INTEGER, a === 0 && (s += "~");
1187
1207
  }
1188
1208
  return `${s}$${a.toString(36).padStart(11, "0")}$${p}`;
1189
1209
  }
@@ -1199,14 +1219,14 @@ function ye(h) {
1199
1219
  }
1200
1220
  };
1201
1221
  }
1202
- function We(h, s) {
1222
+ function Je(h, s) {
1203
1223
  switch (s.type) {
1204
1224
  // Creates a new request and instructs the resource to fetch data.
1205
1225
  case "next-request": {
1206
- const { requestDetails: a, persistent: p } = s, b = re(h.request), w = re(h.revision);
1226
+ const { requestDetails: a, persistent: p } = s, m = re(h.request), w = re(h.revision);
1207
1227
  let j = !1;
1208
1228
  h.persistent === "very" && p === "very" ? j = "very" : h.persistent && p && (j = !0);
1209
- const k = !a.disabled && h.dataProvider.shouldPersist(
1229
+ const U = !a.disabled && h.dataProvider.shouldPersist(
1210
1230
  a,
1211
1231
  h.requestDetails,
1212
1232
  j,
@@ -1215,14 +1235,14 @@ function We(h, s) {
1215
1235
  return ye({
1216
1236
  dataProvider: h.dataProvider,
1217
1237
  requestDetails: a,
1218
- request: b,
1238
+ request: m,
1219
1239
  revision: w,
1220
1240
  isLoading: !a.disabled,
1221
- value: k ? h.value : {
1241
+ value: U ? h.value : {
1222
1242
  name: a.name,
1223
1243
  query: a.query,
1224
1244
  options: a.options,
1225
- request: b,
1245
+ request: m,
1226
1246
  revision: w,
1227
1247
  data: h.dataProvider.createEmptyResponse(
1228
1248
  a
@@ -1255,21 +1275,21 @@ function We(h, s) {
1255
1275
  }
1256
1276
  // Updates the current request's data.
1257
1277
  case "update-data": {
1258
- const { request: a, revision: p, value: b } = s;
1278
+ const { request: a, revision: p, value: m } = s;
1259
1279
  return a !== h.request || p !== h.revision ? h : {
1260
1280
  ...h,
1261
- isLoading: b.isIncomplete,
1262
- value: b
1281
+ isLoading: m.isIncomplete,
1282
+ value: m
1263
1283
  };
1264
1284
  }
1265
1285
  }
1266
1286
  return h;
1267
1287
  }
1268
- function Je(h, s, a, p) {
1269
- const { dataProvider: b, requestDetails: w, 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) => {
1288
+ function Ke(h, s, a, p) {
1289
+ const { dataProvider: m, requestDetails: w, request: j, revision: U, value: k } = h, q = new ge({ ...k.meta }, s);
1290
+ let M = Promise.resolve(k);
1291
+ const T = (R, F, I) => {
1292
+ M = M.then((S) => {
1273
1293
  try {
1274
1294
  let c;
1275
1295
  if (R != null)
@@ -1279,63 +1299,63 @@ function Je(h, s, a, p) {
1279
1299
  isIncomplete: !1
1280
1300
  };
1281
1301
  else {
1282
- const m = {
1302
+ const b = {
1283
1303
  name: w.name,
1284
1304
  query: w.query,
1285
1305
  options: w.options,
1286
1306
  request: j,
1287
- revision: k,
1288
- data: E,
1307
+ revision: U,
1308
+ data: I,
1289
1309
  meta: q.commit(S.meta),
1290
1310
  error: void 0,
1291
1311
  isDisabled: !1,
1292
1312
  isIncomplete: !F,
1293
1313
  isInitial: !!S.isInitial && !F
1294
1314
  };
1295
- m.data = b.transition(
1296
- m,
1315
+ b.data = m.transition(
1316
+ b,
1297
1317
  S
1298
- ), m.data = b.recycleItems(
1299
- m,
1318
+ ), b.data = m.recycleItems(
1319
+ b,
1300
1320
  S
1301
- ), c = m;
1321
+ ), c = b;
1302
1322
  }
1303
- return p({ type: "update-data", request: j, revision: k, value: c }), c;
1323
+ return p({ type: "update-data", request: j, revision: U, value: c }), c;
1304
1324
  } catch {
1305
1325
  return S;
1306
1326
  }
1307
1327
  });
1308
1328
  };
1309
- b.continuousGet(
1329
+ m.continuousGet(
1310
1330
  w.name,
1311
1331
  w.query,
1312
1332
  w.options,
1313
1333
  q,
1314
- M,
1334
+ T,
1315
1335
  a
1316
1336
  );
1317
1337
  }
1318
- function Ke({
1338
+ function Xe({
1319
1339
  dataProvider: h,
1320
1340
  name: s,
1321
1341
  query: a,
1322
1342
  disabled: p,
1323
- options: b,
1343
+ options: m,
1324
1344
  persistent: w,
1325
1345
  ...j
1326
1346
  }) {
1327
- const k = Ue(), P = h || k.dataProvider, q = oe(
1347
+ const U = Pe(), k = h || U.dataProvider, q = oe(
1328
1348
  () => ({
1329
1349
  name: s,
1330
1350
  query: a,
1331
1351
  disabled: !!p,
1332
- options: b
1352
+ options: m
1333
1353
  }),
1334
- [s, a, p, b]
1335
- ), [T, M] = qe(We, void 0, () => {
1354
+ [s, a, p, m]
1355
+ ), [M, T] = qe(Je, void 0, () => {
1336
1356
  const l = re(), L = re();
1337
1357
  return ye({
1338
- dataProvider: P,
1358
+ dataProvider: k,
1339
1359
  requestDetails: q,
1340
1360
  request: l,
1341
1361
  revision: L,
@@ -1346,7 +1366,7 @@ function Ke({
1346
1366
  options: q.options,
1347
1367
  request: l,
1348
1368
  revision: L,
1349
- data: P?.createEmptyResponse(
1369
+ data: k?.createEmptyResponse(
1350
1370
  q
1351
1371
  ),
1352
1372
  meta: {},
@@ -1360,18 +1380,18 @@ function Ke({
1360
1380
  }), {
1361
1381
  dataProvider: R,
1362
1382
  requestDetails: F,
1363
- request: E,
1383
+ request: I,
1364
1384
  revision: S,
1365
1385
  isLoading: c,
1366
- value: m,
1386
+ value: b,
1367
1387
  persistent: A,
1368
1388
  requestInstruction: _
1369
- } = T;
1389
+ } = M;
1370
1390
  if (R == null)
1371
1391
  throw new Error(
1372
1392
  "Unmet requirement: The DataProvider for the useResource hook is missing - Check your ConfigContext provider and the dataProvider property"
1373
1393
  );
1374
- if (R !== P)
1394
+ if (R !== k)
1375
1395
  throw new Error(
1376
1396
  "Constant violation: The DataProvider provided to the useResource hook must not be replaced - Check your ConfigContext provider and the dataProvider property"
1377
1397
  );
@@ -1381,14 +1401,14 @@ function Ke({
1381
1401
  return C(l), () => {
1382
1402
  R.releaseInstance(l);
1383
1403
  };
1384
- }, [R]), F !== q && !R.compareRequests(q, F) ? M({
1404
+ }, [R]), F !== q && !R.compareRequests(q, F) ? T({
1385
1405
  type: "next-request",
1386
1406
  requestDetails: q,
1387
1407
  persistent: w ?? !1
1388
- }) : A !== (w ?? !1) && M({ type: "set-persistence", persistent: w ?? !1 });
1408
+ }) : A !== (w ?? !1) && T({ type: "set-persistence", persistent: w ?? !1 });
1389
1409
  const u = Le(
1390
1410
  async () => new Promise((l) => {
1391
- M({ type: "next-revision", notify: l });
1411
+ T({ type: "next-revision", notify: l });
1392
1412
  }),
1393
1413
  []
1394
1414
  );
@@ -1396,66 +1416,67 @@ function Ke({
1396
1416
  if (v == null || _.requestDetails.disabled)
1397
1417
  return;
1398
1418
  const l = new Be();
1399
- return Je(
1419
+ return Ke(
1400
1420
  _,
1401
1421
  v,
1402
1422
  l,
1403
- M
1423
+ T
1404
1424
  ), () => {
1405
1425
  l.abort();
1406
1426
  };
1407
1427
  }, [v, _]);
1408
- const d = S !== m.revision, r = d ? E : m.request, i = d ? S : m.revision, t = oe(
1428
+ const d = S !== b.revision, r = d ? I : b.request, i = d ? S : b.revision, t = oe(
1409
1429
  () => ({ request: r, revision: i }),
1410
1430
  [r, i]
1411
1431
  ), f = oe(
1412
- () => ({ ...m, dataProvider: R, isLoading: c, isStale: d, next: t, notify: u }),
1413
- [m, R, c, d, t, u]
1414
- );
1415
- return R.contextPlugins.reduce(
1416
- (l, L) => L(l, j),
1417
- f
1432
+ () => ({ ...b, dataProvider: R, isLoading: c, isStale: d, next: t, notify: u }),
1433
+ [b, R, c, d, t, u]
1418
1434
  );
1435
+ return R.contextPlugins.reduce((l, L) => L(l, j), f);
1419
1436
  }
1420
- function st({
1437
+ function ut({
1421
1438
  dataProvider: h,
1422
1439
  name: s,
1423
1440
  query: a,
1424
1441
  disabled: p,
1425
- options: b,
1442
+ options: m,
1426
1443
  persistent: w,
1427
1444
  children: j,
1428
- ...k
1445
+ ...U
1429
1446
  }) {
1430
- const P = Ke({
1447
+ const k = Xe({
1431
1448
  dataProvider: h,
1432
1449
  name: s,
1433
1450
  query: a,
1434
1451
  disabled: p,
1435
- options: b,
1452
+ options: m,
1436
1453
  persistent: w,
1437
- ...k
1454
+ ...U
1438
1455
  });
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);
1456
+ return /* @__PURE__ */ se(
1457
+ Ye,
1458
+ {
1459
+ ...U,
1460
+ resource: k,
1461
+ children: j
1462
+ }
1463
+ );
1443
1464
  }
1444
1465
  export {
1445
1466
  Be as AbortSignal,
1446
- Pe as ChannelNotifier,
1447
- Ze as ConfigConsumer,
1448
- it as ConfigProvider,
1467
+ ke as ChannelNotifier,
1468
+ et as ConfigConsumer,
1469
+ ot as ConfigProvider,
1449
1470
  Se as DataProvider,
1450
1471
  ge as Meta,
1451
1472
  Ae as Notifier,
1452
- st as Resource,
1453
- et as ResourceConsumer,
1454
- Fe as ResourceProvider,
1455
- rt as compose,
1456
- ot as createPlugin,
1457
- nt as isDataProvider,
1458
- Ue as useConfigContext,
1459
- Ke as useResource,
1460
- tt as useResourceContext
1473
+ ut as Resource,
1474
+ tt as ResourceConsumer,
1475
+ Ye as ResourceProvider,
1476
+ nt as compose,
1477
+ st as createPlugin,
1478
+ it as isDataProvider,
1479
+ Pe as useConfigContext,
1480
+ Xe as useResource,
1481
+ rt as useResourceContext
1461
1482
  };