@hinkal/common 0.0.29 → 0.0.31

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.
@@ -1192,7 +1192,7 @@ const It = /* @__PURE__ */ dt(mt), Ft = () => {
1192
1192
  };
1193
1193
  globalThis.process = It;
1194
1194
  globalThis.Buffer = gr;
1195
- const Tt = import("./snarkjsWorkerLogic-CEwqbPan.js");
1195
+ const Tt = import("./snarkjsWorkerLogic-BQHzNbeq.js");
1196
1196
  addEventListener("message", async (h) => {
1197
1197
  console.log("addEventListener in Snarkjs Launcher starts");
1198
1198
  const { onWorkerMessage: f } = await Tt;
@@ -1,4 +1,4 @@
1
- import { p as process$1, d as dist, B as Buffer$C } from "./snarkjsWorkerLauncher-CA30lfwg.js";
1
+ import { p as process$1, d as dist, B as Buffer$C } from "./snarkjsWorkerLauncher-Cv-YvgDH.js";
2
2
  class WorkerProxy {
3
3
  isNode = !1;
4
4
  /**
@@ -1657,7 +1657,11 @@ function eventTargetAgnosticAddListener(c, t, n, a) {
1657
1657
  else
1658
1658
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof c);
1659
1659
  }
1660
- var eventsExports = events$1.exports, streamBrowser$1 = eventsExports.EventEmitter, util$6 = {}, types = {}, shams$1 = function() {
1660
+ var eventsExports = events$1.exports, streamBrowser$1, hasRequiredStreamBrowser;
1661
+ function requireStreamBrowser() {
1662
+ return hasRequiredStreamBrowser || (hasRequiredStreamBrowser = 1, streamBrowser$1 = eventsExports.EventEmitter), streamBrowser$1;
1663
+ }
1664
+ var util$6 = {}, types = {}, shams$1 = function() {
1661
1665
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
1662
1666
  return !1;
1663
1667
  if (typeof Symbol.iterator == "symbol")
@@ -2996,33 +3000,40 @@ function requireBuffer_list() {
2996
3000
  }]), H;
2997
3001
  }(), buffer_list;
2998
3002
  }
2999
- function destroy$1(c, t) {
3000
- var n = this, a = this._readableState && this._readableState.destroyed, d = this._writableState && this._writableState.destroyed;
3001
- return a || d ? (t ? t(c) : c && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, process$1.nextTick(emitErrorNT$1, this, c)) : process$1.nextTick(emitErrorNT$1, this, c)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(c || null, function(u) {
3002
- !t && u ? n._writableState ? n._writableState.errorEmitted ? process$1.nextTick(emitCloseNT, n) : (n._writableState.errorEmitted = !0, process$1.nextTick(emitErrorAndCloseNT, n, u)) : process$1.nextTick(emitErrorAndCloseNT, n, u) : t ? (process$1.nextTick(emitCloseNT, n), t(u)) : process$1.nextTick(emitCloseNT, n);
3003
- }), this);
3004
- }
3005
- function emitErrorAndCloseNT(c, t) {
3006
- emitErrorNT$1(c, t), emitCloseNT(c);
3007
- }
3008
- function emitCloseNT(c) {
3009
- c._writableState && !c._writableState.emitClose || c._readableState && !c._readableState.emitClose || c.emit("close");
3010
- }
3011
- function undestroy$1() {
3012
- this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1);
3013
- }
3014
- function emitErrorNT$1(c, t) {
3015
- c.emit("error", t);
3016
- }
3017
- function errorOrDestroy(c, t) {
3018
- var n = c._readableState, a = c._writableState;
3019
- n && n.autoDestroy || a && a.autoDestroy ? c.destroy(t) : c.emit("error", t);
3003
+ var destroy_1$1, hasRequiredDestroy;
3004
+ function requireDestroy() {
3005
+ if (hasRequiredDestroy)
3006
+ return destroy_1$1;
3007
+ hasRequiredDestroy = 1;
3008
+ function c(A, M) {
3009
+ var S = this, B = this._readableState && this._readableState.destroyed, _ = this._writableState && this._writableState.destroyed;
3010
+ return B || _ ? (M ? M(A) : A && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, process$1.nextTick(d, this, A)) : process$1.nextTick(d, this, A)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(A || null, function(I) {
3011
+ !M && I ? S._writableState ? S._writableState.errorEmitted ? process$1.nextTick(n, S) : (S._writableState.errorEmitted = !0, process$1.nextTick(t, S, I)) : process$1.nextTick(t, S, I) : M ? (process$1.nextTick(n, S), M(I)) : process$1.nextTick(n, S);
3012
+ }), this);
3013
+ }
3014
+ function t(A, M) {
3015
+ d(A, M), n(A);
3016
+ }
3017
+ function n(A) {
3018
+ A._writableState && !A._writableState.emitClose || A._readableState && !A._readableState.emitClose || A.emit("close");
3019
+ }
3020
+ function a() {
3021
+ this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1);
3022
+ }
3023
+ function d(A, M) {
3024
+ A.emit("error", M);
3025
+ }
3026
+ function u(A, M) {
3027
+ var S = A._readableState, B = A._writableState;
3028
+ S && S.autoDestroy || B && B.autoDestroy ? A.destroy(M) : A.emit("error", M);
3029
+ }
3030
+ return destroy_1$1 = {
3031
+ destroy: c,
3032
+ undestroy: a,
3033
+ errorOrDestroy: u
3034
+ }, destroy_1$1;
3020
3035
  }
3021
- var destroy_1$1 = {
3022
- destroy: destroy$1,
3023
- undestroy: undestroy$1,
3024
- errorOrDestroy
3025
- }, errorsBrowser = {};
3036
+ var errorsBrowser = {};
3026
3037
  function _inheritsLoose(c, t) {
3027
3038
  c.prototype = Object.create(t.prototype), c.prototype.constructor = c, c.__proto__ = t;
3028
3039
  }
@@ -3091,24 +3102,31 @@ createErrorType("ERR_UNKNOWN_ENCODING", function(c) {
3091
3102
  }, TypeError);
3092
3103
  createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event");
3093
3104
  errorsBrowser.codes = codes$1;
3094
- var ERR_INVALID_OPT_VALUE = errorsBrowser.codes.ERR_INVALID_OPT_VALUE;
3095
- function highWaterMarkFrom(c, t, n) {
3096
- return c.highWaterMark != null ? c.highWaterMark : t ? c[n] : null;
3097
- }
3098
- function getHighWaterMark(c, t, n, a) {
3099
- var d = highWaterMarkFrom(t, a, n);
3100
- if (d != null) {
3101
- if (!(isFinite(d) && Math.floor(d) === d) || d < 0) {
3102
- var u = a ? n : "highWaterMark";
3103
- throw new ERR_INVALID_OPT_VALUE(u, d);
3104
- }
3105
- return Math.floor(d);
3106
- }
3107
- return c.objectMode ? 16 : 16 * 1024;
3108
- }
3109
- var state = {
3110
- getHighWaterMark
3111
- }, browser$c = deprecate;
3105
+ var state, hasRequiredState;
3106
+ function requireState() {
3107
+ if (hasRequiredState)
3108
+ return state;
3109
+ hasRequiredState = 1;
3110
+ var c = errorsBrowser.codes.ERR_INVALID_OPT_VALUE;
3111
+ function t(a, d, u) {
3112
+ return a.highWaterMark != null ? a.highWaterMark : d ? a[u] : null;
3113
+ }
3114
+ function n(a, d, u, A) {
3115
+ var M = t(d, A, u);
3116
+ if (M != null) {
3117
+ if (!(isFinite(M) && Math.floor(M) === M) || M < 0) {
3118
+ var S = A ? u : "highWaterMark";
3119
+ throw new c(S, M);
3120
+ }
3121
+ return Math.floor(M);
3122
+ }
3123
+ return a.objectMode ? 16 : 16 * 1024;
3124
+ }
3125
+ return state = {
3126
+ getHighWaterMark: n
3127
+ }, state;
3128
+ }
3129
+ var browser$c = deprecate;
3112
3130
  function deprecate(c, t) {
3113
3131
  if (config("noDeprecation"))
3114
3132
  return c;
@@ -3148,7 +3166,7 @@ function require_stream_writable$1() {
3148
3166
  z.WritableState = et;
3149
3167
  var n = {
3150
3168
  deprecate: browser$c
3151
- }, a = streamBrowser$1, d = require$$0$2.Buffer, u = (typeof commonjsGlobal < "u" ? commonjsGlobal : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
3169
+ }, a = requireStreamBrowser(), d = require$$0$2.Buffer, u = (typeof commonjsGlobal < "u" ? commonjsGlobal : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
3152
3170
  };
3153
3171
  function A(x) {
3154
3172
  return d.from(x);
@@ -3156,7 +3174,7 @@ function require_stream_writable$1() {
3156
3174
  function M(x) {
3157
3175
  return d.isBuffer(x) || x instanceof u;
3158
3176
  }
3159
- var S = destroy_1$1, B = state, _ = B.getHighWaterMark, I = errorsBrowser.codes, O = I.ERR_INVALID_ARG_TYPE, $ = I.ERR_METHOD_NOT_IMPLEMENTED, H = I.ERR_MULTIPLE_CALLBACK, tt = I.ERR_STREAM_CANNOT_PIPE, q = I.ERR_STREAM_DESTROYED, rt = I.ERR_STREAM_NULL_VALUES, Z = I.ERR_STREAM_WRITE_AFTER_END, ot = I.ERR_UNKNOWN_ENCODING, V = S.errorOrDestroy;
3177
+ var S = requireDestroy(), B = requireState(), _ = B.getHighWaterMark, I = errorsBrowser.codes, O = I.ERR_INVALID_ARG_TYPE, $ = I.ERR_METHOD_NOT_IMPLEMENTED, H = I.ERR_MULTIPLE_CALLBACK, tt = I.ERR_STREAM_CANNOT_PIPE, q = I.ERR_STREAM_DESTROYED, rt = I.ERR_STREAM_NULL_VALUES, Z = I.ERR_STREAM_WRITE_AFTER_END, ot = I.ERR_UNKNOWN_ENCODING, V = S.errorOrDestroy;
3160
3178
  inherits_browserExports(z, a);
3161
3179
  function nt() {
3162
3180
  }
@@ -3781,7 +3799,7 @@ function require_stream_readable$1() {
3781
3799
  it.ReadableState = z, eventsExports.EventEmitter;
3782
3800
  var t = function(Y, ct) {
3783
3801
  return Y.listeners(ct).length;
3784
- }, n = streamBrowser$1, a = require$$0$2.Buffer, d = (typeof commonjsGlobal < "u" ? commonjsGlobal : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
3802
+ }, n = requireStreamBrowser(), a = require$$0$2.Buffer, d = (typeof commonjsGlobal < "u" ? commonjsGlobal : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
3785
3803
  };
3786
3804
  function u(F) {
3787
3805
  return a.from(F);
@@ -3792,7 +3810,7 @@ function require_stream_readable$1() {
3792
3810
  var M = util$6, S;
3793
3811
  M && M.debuglog ? S = M.debuglog("stream") : S = function() {
3794
3812
  };
3795
- var B = requireBuffer_list(), _ = destroy_1$1, I = state, O = I.getHighWaterMark, $ = errorsBrowser.codes, H = $.ERR_INVALID_ARG_TYPE, tt = $.ERR_STREAM_PUSH_AFTER_EOF, q = $.ERR_METHOD_NOT_IMPLEMENTED, rt = $.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, Z, ot, V;
3813
+ var B = requireBuffer_list(), _ = requireDestroy(), I = requireState(), O = I.getHighWaterMark, $ = errorsBrowser.codes, H = $.ERR_INVALID_ARG_TYPE, tt = $.ERR_STREAM_PUSH_AFTER_EOF, q = $.ERR_METHOD_NOT_IMPLEMENTED, rt = $.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, Z, ot, V;
3796
3814
  inherits_browserExports(it, n);
3797
3815
  var nt = _.errorOrDestroy, et = ["error", "close", "destroy", "pause", "resume"];
3798
3816
  function D(F, Y, ct) {
@@ -1,5 +1,5 @@
1
- import { p as Se, B as po } from "./zkProofWorkerLauncher-D66Tc6on.js";
2
- import { e as Ua, r as ho, g as Lo, a as mo, b as bo, c as en, d as ja, f as $a, u as zn, h as yo } from "./zkProofWorkerLogic-CrpL7Xvd.js";
1
+ import { p as Se, B as po } from "./zkProofWorkerLauncher-DbQzvpF9.js";
2
+ import { e as Ua, r as ho, g as Lo, a as mo, b as bo, c as en, d as ja, f as $a, u as zn, h as yo } from "./zkProofWorkerLogic-BiPfvEJ9.js";
3
3
  const Co = [0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4];
4
4
  function sn(c, t) {
5
5
  if (!t || t == 10)
@@ -1192,7 +1192,7 @@ const It = /* @__PURE__ */ dt(mt), Ft = () => {
1192
1192
  };
1193
1193
  globalThis.process = It;
1194
1194
  globalThis.Buffer = gr;
1195
- const Tt = import("./utxoWorkerLogic-POijX68C.js");
1195
+ const Tt = import("./utxoWorkerLogic-UebOwVoA.js");
1196
1196
  addEventListener("message", async (h) => {
1197
1197
  console.log("addEventListener in Utxo Launcher starts");
1198
1198
  const { onWorkerMessage: f } = await Tt;
@@ -1,5 +1,5 @@
1
- import { B as U } from "./zkProofWorkerLauncher-D66Tc6on.js";
2
- import { U as l, i as T, h as I, j as f, k as y, l as m, m as h, p as x } from "./zkProofWorkerLogic-CrpL7Xvd.js";
1
+ import { B as U } from "./zkProofWorkerLauncher-DbQzvpF9.js";
2
+ import { U as l, i as T, h as I, j as f, k as y, l as m, m as h, p as x } from "./zkProofWorkerLogic-BiPfvEJ9.js";
3
3
  const g = (e) => {
4
4
  const t = T.decode(
5
5
  ["uint256", "address", "tuple(uint256, uint256, uint256, uint256)", "uint256", "uint256"],